@univerjs-pro/docs-code 1.0.2 → 1.0.3

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/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x49483d=_0x10b3;(function(_0x14b103,_0x5c8c9e){const _0x591240=_0x10b3,_0x58d2a8=_0x14b103();while(!![]){try{const _0x51f231=parseInt(_0x591240(0xb9))/0x1+-parseInt(_0x591240(0x10a))/0x2+parseInt(_0x591240(0xeb))/0x3+-parseInt(_0x591240(0x7f))/0x4+parseInt(_0x591240(0x103))/0x5+parseInt(_0x591240(0x98))/0x6*(parseInt(_0x591240(0x85))/0x7)+parseInt(_0x591240(0x9a))/0x8;if(_0x51f231===_0x5c8c9e)break;else _0x58d2a8['push'](_0x58d2a8['shift']());}catch(_0x11e292){_0x58d2a8['push'](_0x58d2a8['shift']());}}}(_0x1d98,0x51901));import{BooleanNumber as _0x29f404,BuildTextUtils as _0x18ba16,CommandType as _0x446cfc,DataStreamTreeTokenType as _0x23e365,DependentOn as _0x5aaaeb,Disposable as _0x24e448,DocumentBlockRangeType as _0x2324fb,ICommandService as _0x330d40,IConfigService as _0x5ce515,IResourceManagerService as _0x4ec5e9,IUniverInstanceService as _0x1f322c,Inject as _0x34c829,Injector as _0x38f326,JSONX as _0x424cd6,Plugin as _0x5a8ee0,TextX as _0x227fc3,UniverInstanceType as _0x2fc27d,containsInteriorInsertionOffset as _0x116958,containsStreamIndex as _0x2d8224,createParagraphId as _0x338f66,generateRandomId as _0x5cf7a0,getBlockRangeInterval as _0x5c8dbe,getBodySliceForTextXAction as _0x25d42f,getParagraphContentStartOffset as _0x53b91f,getParagraphContentStartOffsets as _0x43bde5,getParagraphFollowingBlockOffset as _0x15574e,getSingleDataStreamChange as _0x5c68b1,intersectsOperationalIntervals as _0x467d94,merge as _0x1470e9,shiftExclusiveRangeOnDelete as _0xc1b9cd,shiftExclusiveRangeOnInsert as _0x3f24e6,shiftInclusiveRangeOnDelete as _0x2cee19,shiftInclusiveRangeOnInsert as _0x4cbd10}from'@univerjs/core';import{Subject as _0x4c06b3}from'rxjs';import{DocSelectionManagerService as _0x2baf85,RichTextEditingMutation as _0x274029,UniverDocsPlugin as _0x565d36,getContentInsertRange as _0x34eb39,isHeaderFooterSelection as _0x584ad5}from'@univerjs/docs';import{UniverLicensePlugin as _0xecd332}from'@univerjs-pro/license';const Se={'language':_0x49483d(0x73),'showLineNumbers':!0x1,'tabSize':0x4,'wrap':!0x0};function v(_0x2fd8ec){return{...Se,..._0x2fd8ec};}function y(_0x27f3e7){const _0x4284c3=_0x49483d;let _0x465372=(_0x27f3e7==null?void 0x0:_0x27f3e7['codes'])??{};return{'codes':Object[_0x4284c3(0xf4)](Object[_0x4284c3(0x6c)](_0x465372)['map'](([_0x4c64c2,_0x3cc3df])=>[_0x4c64c2,v(_0x3cc3df)]))};}function b(_0x2b3291,_0x55e095,_0x39c847){const _0x212846=_0x49483d;let _0xfbdd86=y(_0x2b3291);return _0xfbdd86[_0x212846(0x77)][_0x55e095]=v({..._0xfbdd86[_0x212846(0x77)][_0x55e095],..._0x39c847}),_0xfbdd86;}function x(_0x430777,_0x5ad778){const _0xf072f4=_0x49483d;let _0x4cedd0=y(_0x430777);return delete _0x4cedd0[_0xf072f4(0x77)][_0x5ad778],_0x4cedd0;}function S(_0x5c9d49){'@babel/helpers - typeof';const _0x384cd5=_0x49483d;return S=typeof Symbol==_0x384cd5(0x104)&&typeof Symbol[_0x384cd5(0xee)]==_0x384cd5(0xb4)?function(_0x1da516){return typeof _0x1da516;}:function(_0xb7294b){const _0x58d62e=_0x384cd5;return _0xb7294b&&typeof Symbol==_0x58d62e(0x104)&&_0xb7294b[_0x58d62e(0xb3)]===Symbol&&_0xb7294b!==Symbol[_0x58d62e(0x81)]?'symbol':typeof _0xb7294b;},S(_0x5c9d49);}function Ce(_0x19f620,_0x75fe26){const _0x2d2432=_0x49483d;if(S(_0x19f620)!=_0x2d2432(0xa8)||!_0x19f620)return _0x19f620;var _0x35571a=_0x19f620[Symbol[_0x2d2432(0x10c)]];if(_0x35571a!==void 0x0){var _0x45a69c=_0x35571a['call'](_0x19f620,_0x75fe26||_0x2d2432(0xb1));if(S(_0x45a69c)!=_0x2d2432(0xa8))return _0x45a69c;throw TypeError(_0x2d2432(0xb7));}return(_0x75fe26===_0x2d2432(0xa2)?String:Number)(_0x19f620);}function we(_0x1cdb53){const _0x28ce26=_0x49483d;var _0x3f9364=Ce(_0x1cdb53,_0x28ce26(0xa2));return S(_0x3f9364)=='symbol'?_0x3f9364:_0x3f9364+'';}function C(_0x53414e,_0xd559ea,_0x485df3){const _0x441a36=_0x49483d;return(_0xd559ea=we(_0xd559ea))in _0x53414e?Object[_0x441a36(0xc0)](_0x53414e,_0xd559ea,{'value':_0x485df3,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x53414e[_0xd559ea]=_0x485df3,_0x53414e;}var w=class extends _0x24e448{constructor(..._0x3f7706){const _0x567a72=_0x49483d;super(..._0x3f7706),C(this,_0x567a72(0xcf),new Map()),C(this,_0x567a72(0xf2),new _0x4c06b3()),C(this,_0x567a72(0x7b),this[_0x567a72(0xf2)][_0x567a72(0xd0)]());}[_0x49483d(0xa6)](_0x2d1548,_0x208336){const _0x157562=_0x49483d;return y(this[_0x157562(0xcf)][_0x157562(0xbd)](_0x2d1548))[_0x157562(0x77)][_0x208336];}['setCodeConfig'](_0x15f6c5,_0x24609d,_0x1c0038){const _0x2e993c=_0x49483d;this[_0x2e993c(0x8d)](_0x15f6c5,_0x24609d,b(this[_0x2e993c(0xcf)][_0x2e993c(0xbd)](_0x15f6c5),_0x24609d,_0x1c0038));}[_0x49483d(0xfd)](_0x58caac,_0x316b73){const _0x5a0ec4=_0x49483d;this['_setResource'](_0x58caac,_0x316b73,x(this[_0x5a0ec4(0xcf)][_0x5a0ec4(0xbd)](_0x58caac),_0x316b73));}['serialize'](_0x31ee18){const _0x5bcac=_0x49483d;return y(this[_0x5bcac(0xcf)][_0x5bcac(0xbd)](_0x31ee18));}['deserialize'](_0xe9376d,_0x32d901){const _0x515507=_0x49483d;this[_0x515507(0xcf)]['set'](_0xe9376d,y(_0x32d901)),this[_0x515507(0xf2)][_0x515507(0xd4)]({'unitId':_0xe9376d});}[_0x49483d(0xed)](_0x15de40){const _0x3cdd62=_0x49483d;this[_0x3cdd62(0xcf)][_0x3cdd62(0xe1)](_0x15de40),this[_0x3cdd62(0xf2)][_0x3cdd62(0xd4)]({'unitId':_0x15de40});}[_0x49483d(0x7a)](){const _0x885d59=_0x49483d;super[_0x885d59(0x7a)](),this[_0x885d59(0xcf)]['clear'](),this[_0x885d59(0xf2)][_0x885d59(0x68)]();}['_setResource'](_0x35c54b,_0x99d3eb,_0x54c80f){const _0x4bd794=_0x49483d;this[_0x4bd794(0xcf)][_0x4bd794(0xf3)](_0x35c54b,_0x54c80f),this['_change$'][_0x4bd794(0xd4)]({'unitId':_0x35c54b,'blockId':_0x99d3eb});}};const Te={'id':_0x49483d(0xc8),'type':_0x446cfc['MUTATION'],'handler':(_0x3b7a40,_0x74202d)=>!(_0x74202d!=null&&_0x74202d[_0x49483d(0x10b)])||!_0x74202d['blockId']?!0x1:(_0x3b7a40[_0x49483d(0xbd)](w)[_0x49483d(0xb2)](_0x74202d[_0x49483d(0x10b)],_0x74202d['blockId'],_0x74202d['config']),!0x0)},T={'id':_0x49483d(0xf6),'type':_0x446cfc[_0x49483d(0x8e)],'handler':(_0x189ccb,_0x5e75f1)=>!(_0x5e75f1!=null&&_0x5e75f1[_0x49483d(0x10b)])||!_0x5e75f1[_0x49483d(0x96)]?!0x1:(_0x189ccb[_0x49483d(0xbd)](w)[_0x49483d(0xfd)](_0x5e75f1[_0x49483d(0x10b)],_0x5e75f1[_0x49483d(0x96)]),!0x0)},Ee=_0x49483d(0x93);var E=class extends Error{constructor(_0x6af3ef=_0x49483d(0xd9)){super(_0x6af3ef);}};function De(_0x1e38d4){const _0x1e421d=_0x49483d;var _0x14805d;let _0x1292a6=O(_0x1e38d4[_0x1e421d(0xc6)]),_0x3b113a=A(_0x1292a6),_0x4fc674=ke(_0x1e38d4['startOffset'],_0x1e38d4[_0x1e421d(0x105)]),_0x58ddd1=_0x4fc674?(_0x14805d=_0x3b113a[_0x1e421d(0x79)])==null?void 0x0:_0x14805d[_0x1e421d(0xd5)](_0x56aba9=>{const _0x44d97e=_0x1e421d;let _0x47f8fe=_0x5c8dbe(_0x56aba9);return _0x47f8fe[_0x44d97e(0x10e)]===_0x4fc674[_0x44d97e(0x10e)]&&_0x47f8fe[_0x44d97e(0x105)]===_0x4fc674[_0x44d97e(0x105)];}):void 0x0,{startOffset:_0x21361e,endOffset:_0x486c81}=_0x58ddd1?_0x4fc674:We(_0x3b113a,_0x1e38d4[_0x1e421d(0x10e)],_0x1e38d4[_0x1e421d(0x105)],_0x1e38d4[_0x1e421d(0xa9)]);if(!_0x58ddd1&&Ae(_0x3b113a,_0x21361e,_0x486c81))throw new E(_0x1e421d(0x9e));let _0x9cadf8=qe(_0x3b113a,_0x21361e,_0x486c81),_0x1538e9=(_0x58ddd1==null?void 0x0:_0x58ddd1[_0x1e421d(0x96)])??_0x1e38d4[_0x1e421d(0x96)],_0xd79115=b(_0x1e38d4[_0x1e421d(0xd1)],_0x1538e9,{...Se,..._0x1e38d4[_0x1e421d(0x9c)]});if(_0x58ddd1)return _0x58ddd1['blockType']=_0x2324fb['CODE'],Oe(_0x3b113a,_0x21361e,_0x486c81),ze(_0x3b113a,_0x21361e,_0x486c81,_0x9cadf8),N(_0x3b113a,_0x58ddd1),{'nextDocumentData':_0x1292a6,'nextMetadata':_0xd79115,'cursorOffset':_0x21361e+0x1};if(_0x21361e===_0x486c81){var _0x27b7c0,_0x3f1ad0;let _0x71142d=''+_0x23e365[_0x1e421d(0xea)]+_0x23e365[_0x1e421d(0xff)]+_0x23e365[_0x1e421d(0x94)];P(_0x3b113a,_0x21361e,_0x71142d,{'paragraphs':[{'startIndex':0x1,'paragraphId':_0x338f66(new Set((_0x27b7c0=_0x3b113a[_0x1e421d(0x8a)])==null?void 0x0:_0x27b7c0[_0x1e421d(0x10f)](_0x140ef2=>_0x140ef2[_0x1e421d(0xe3)]))),'paragraphStyle':Re(!0x0,!0x0,_0x9cadf8)}],'blockRanges':[{'blockId':_0x1538e9,'blockType':_0x2324fb[_0x1e421d(0x89)],'startIndex':0x0,'endIndex':_0x71142d['length']-0x1}]});let _0xa00bb6=(_0x3f1ad0=_0x3b113a[_0x1e421d(0x79)])==null?void 0x0:_0x3f1ad0[_0x1e421d(0xd5)](_0x2d2851=>_0x2d2851['blockId']===_0x1538e9);return _0xa00bb6&&N(_0x3b113a,_0xa00bb6),{'nextDocumentData':_0x1292a6,'nextMetadata':_0xd79115,'cursorOffset':_0x21361e+0x1};}P(_0x3b113a,_0x486c81,_0x23e365[_0x1e421d(0x94)]),P(_0x3b113a,_0x21361e,_0x23e365[_0x1e421d(0xea)]),ze(_0x3b113a,_0x21361e,_0x486c81+0x1,_0x9cadf8);let _0xa825fe={'blockId':_0x1538e9,'blockType':_0x2324fb['CODE'],'startIndex':_0x21361e,'endIndex':_0x486c81+0x1};return _0x3b113a[_0x1e421d(0x79)]=[..._0x3b113a['blockRanges']??[],_0xa825fe][_0x1e421d(0x8f)]((_0x42c256,_0x4958a6)=>_0x42c256[_0x1e421d(0xca)]-_0x4958a6['startIndex']),N(_0x3b113a,_0xa825fe),{'nextDocumentData':_0x1292a6,'nextMetadata':_0xd79115,'cursorOffset':_0x21361e+0x1};}function Oe(_0x569f5a,_0xc9ffed,_0x7f39ee){const _0x31a78e=_0x49483d;(_0x569f5a[_0x31a78e(0x8a)]??[])[_0x31a78e(0xf1)](_0xa460f6=>_0xa460f6[_0x31a78e(0xca)]>_0xc9ffed&&_0xa460f6[_0x31a78e(0xca)]<_0x7f39ee)[_0x31a78e(0xe5)](_0x2df4eb=>{const _0x546be9=_0x31a78e;let _0x27ff86={..._0x2df4eb['paragraphStyle']??{}};delete _0x27ff86['spaceAbove'],delete _0x27ff86[_0x546be9(0xe4)],_0x2df4eb[_0x546be9(0xdc)]=_0x27ff86;});}function ke(_0x5ee40c,_0x1a06f8){const _0x4acf41=_0x49483d;return _0x5ee40c==null||_0x1a06f8==null||_0x5ee40c===_0x1a06f8?null:{'startOffset':Math[_0x4acf41(0xef)](_0x5ee40c,_0x1a06f8),'endOffset':Math[_0x4acf41(0xda)](_0x5ee40c,_0x1a06f8)};}function Ae(_0x4d375f,_0x29f319,_0x5a009b){const _0xb2567=_0x49483d;return(_0x4d375f[_0xb2567(0x79)]??[])[_0xb2567(0xbf)](_0x65238=>{let _0x142255=_0x5c8dbe(_0x65238);return _0x29f319===_0x5a009b?_0x116958(_0x142255,_0x29f319):_0x467d94(_0x142255,{'startOffset':_0x29f319,'endOffset':_0x5a009b});});}function je(_0x7091ae){const _0x18f848=_0x49483d;return{'nextDocumentData':O(_0x7091ae[_0x18f848(0xc6)]),'nextMetadata':b(_0x7091ae[_0x18f848(0xd1)],_0x7091ae['blockId'],_0x7091ae[_0x18f848(0x9c)]),'cursorOffset':0x0};}function D(_0x187855){const _0x43f178=_0x49483d;let _0x14ae2b=O(_0x187855[_0x43f178(0xc6)]),_0x17a60e=A(_0x14ae2b),_0x4e97d7=Fe(_0x17a60e,_0x187855[_0x43f178(0x96)]);if(!_0x4e97d7)return null;let _0x44597e=He(_0x17a60e,_0x4e97d7);return{'nextDocumentData':_0x14ae2b,'nextMetadata':x(_0x187855['metadata'],_0x187855[_0x43f178(0x96)]),'cursorOffset':_0x44597e};}function Me(_0x5c21a1){const _0x5aa05d=_0x49483d;var _0x3c4db0;let _0x100d51=O(_0x5c21a1[_0x5aa05d(0xc6)]),_0xd4c3d0=A(_0x100d51),_0x58bb3d=Fe(_0xd4c3d0,_0x5c21a1[_0x5aa05d(0x96)]);if(!_0x58bb3d)return null;let _0x488ce2=_0x5c8dbe(_0x58bb3d);return F(_0xd4c3d0,_0x488ce2[_0x5aa05d(0x10e)],_0x488ce2[_0x5aa05d(0x105)]),_0xd4c3d0['blockRanges']=(_0x3c4db0=_0xd4c3d0[_0x5aa05d(0x79)])==null?void 0x0:_0x3c4db0[_0x5aa05d(0xf1)](_0x295d33=>_0x295d33[_0x5aa05d(0x96)]!==_0x5c21a1[_0x5aa05d(0x96)]),{'nextDocumentData':_0x100d51,'nextMetadata':x(_0x5c21a1[_0x5aa05d(0xd1)],_0x5c21a1[_0x5aa05d(0x96)]),'cursorOffset':_0x58bb3d['startIndex']};}function Ne(_0x2cd8b9){const _0x21104c=_0x49483d;let _0x13d538=O(_0x2cd8b9[_0x21104c(0xc6)]),_0x1200fb=A(_0x13d538),_0x5c0da3=Le(_0x1200fb,_0x2cd8b9[_0x21104c(0xdb)]);return _0x5c0da3&&Pe(_0x13d538,_0x1200fb,_0x5c0da3,_0x2cd8b9[_0x21104c(0xdb)],_0x2cd8b9[_0x21104c(0x87)])||null;}function Pe(_0xf4e8f8,_0x740478,_0x55f7e3,_0x4fd208,_0x2c5134){const _0x420437=_0x49483d;let _0x5812b1=$e(_0x740478,_0x55f7e3,_0x4fd208,_0x2c5134);if(!_0x5812b1)return null;let _0x3bd5de=_0x5812b1[_0x420437(0xd3)]-0x1;return F(_0x740478,_0x5812b1[_0x420437(0x6b)][_0x420437(0xca)],_0x5812b1[_0x420437(0x6b)][_0x420437(0xca)]+0x1),{'nextDocumentData':_0xf4e8f8,'cursorOffset':_0x3bd5de};}function Fe(_0x2a8ec7,_0x221057){const _0x4f4f12=_0x49483d;var _0x2e9c51;return _0x2a8ec7==null||(_0x2e9c51=_0x2a8ec7[_0x4f4f12(0x79)])==null?void 0x0:_0x2e9c51['find'](_0x227b86=>_0x227b86[_0x4f4f12(0xc4)]===_0x2324fb[_0x4f4f12(0x89)]&&_0x227b86[_0x4f4f12(0x96)]===_0x221057);}function Ie(_0x339bef){const _0x34ba6c=_0x49483d;let _0x1ad03d=_0x339bef[_0x34ba6c(0xc6)][_0x34ba6c(0xc3)];if(!_0x1ad03d)return!0x1;let _0x406129=_0x339bef[_0x34ba6c(0x92)]==='left'?_0x339bef[_0x34ba6c(0xdb)]-0x1:_0x339bef[_0x34ba6c(0xdb)],_0x97ab16=_0x339bef[_0x34ba6c(0x92)]===_0x34ba6c(0xe9)?_0x339bef[_0x34ba6c(0xdb)]+0x1:_0x406129;return(_0x1ad03d[_0x34ba6c(0x79)]??[])['some'](_0x2e8d0b=>_0x2e8d0b[_0x34ba6c(0xc4)]===_0x2324fb[_0x34ba6c(0x89)]?_0x406129===_0x2e8d0b[_0x34ba6c(0xca)]||_0x406129===_0x2e8d0b[_0x34ba6c(0xfb)]||_0x97ab16===_0x2e8d0b['startIndex']||_0x97ab16===_0x2e8d0b[_0x34ba6c(0xfb)]:!0x1);}function Le(_0x28d177,_0x22f150){const _0xa78fcf=_0x49483d;var _0x332593;return(_0x332593=_0x28d177[_0xa78fcf(0x79)])==null?void 0x0:_0x332593[_0xa78fcf(0xd5)](_0x2b0e39=>{const _0x36e1e9=_0xa78fcf;let _0x44e7dc=M(_0x2b0e39);return _0x2b0e39['blockType']===_0x2324fb[_0x36e1e9(0x89)]&&_0x2b0e39[_0x36e1e9(0xca)]<=_0x22f150&&_0x22f150<=_0x44e7dc+0x2;});}function Re(_0x3f45ae,_0x3b02a5,_0x1ed424=!0x1){const _0x1efc96=_0x49483d;return{'indentEnd':{'v':0x14},'indentStart':{'v':0x14},'keepLines':_0x29f404[_0x1efc96(0x97)],'keepNext':_0x3b02a5?_0x29f404[_0x1efc96(0x78)]:_0x29f404[_0x1efc96(0x97)],'widowControl':_0x29f404['TRUE'],..._0x3f45ae&&_0x1ed424?{'spaceAbove':{'v':0x8}}:{},'textStyle':{'ff':Ee,'fs':0xc}};}function ze(_0x391312,_0x11c35b,_0x28e67c,_0x5572d3=!0x1){const _0x16e5ba=_0x49483d;let _0x527240=(_0x391312[_0x16e5ba(0x8a)]??[])[_0x16e5ba(0xf1)](_0x12170c=>_0x12170c[_0x16e5ba(0xca)]>_0x11c35b&&_0x12170c[_0x16e5ba(0xca)]<_0x28e67c);_0x527240[_0x16e5ba(0xe5)]((_0x13d09f,_0x2e86f2)=>{const _0x403290=_0x16e5ba;_0x13d09f[_0x403290(0xdc)]={..._0x13d09f[_0x403290(0xdc)]??{},...Re(_0x2e86f2===0x0,_0x2e86f2===_0x527240[_0x403290(0xa3)]-0x1,_0x5572d3)};});}function Be(_0x424465){const _0x5a0cb9=_0x49483d;var _0x42d594,_0x4f90ba;let _0x55c935={..._0x424465??{}};return delete _0x55c935['indentEnd'],delete _0x55c935[_0x5a0cb9(0xb8)],delete _0x55c935[_0x5a0cb9(0xa7)],delete _0x55c935[_0x5a0cb9(0xe4)],delete _0x55c935['keepLines'],delete _0x55c935[_0x5a0cb9(0xf7)],delete _0x55c935[_0x5a0cb9(0xfa)],((_0x42d594=_0x55c935['textStyle'])==null?void 0x0:_0x42d594['ff'])===Ee&&((_0x4f90ba=_0x55c935[_0x5a0cb9(0x69)])==null?void 0x0:_0x4f90ba['fs'])===0xc&&delete _0x55c935['textStyle'],_0x55c935;}function Ve(_0x136751,_0x3c0278){const _0xdd4f7d=_0x49483d;let _0x597b01=M(_0x3c0278);return(_0x136751[_0xdd4f7d(0x8a)]??[])[_0xdd4f7d(0xf1)](_0x12be88=>_0x12be88['startIndex']>_0x3c0278[_0xdd4f7d(0xca)]&&_0x12be88[_0xdd4f7d(0xca)]<_0x597b01);}function He(_0x319a34,_0x4a07f4){const _0x466d3d=_0x49483d;var _0x33e5e9;let _0x2a8141=M(_0x4a07f4);return Ve(_0x319a34,_0x4a07f4)[_0x466d3d(0xe5)](_0x3a5f34=>{const _0x50da24=_0x466d3d;_0x3a5f34[_0x50da24(0xdc)]=Be(_0x3a5f34[_0x50da24(0xdc)]);}),F(_0x319a34,_0x2a8141,_0x2a8141+0x1),F(_0x319a34,_0x4a07f4[_0x466d3d(0xca)],_0x4a07f4[_0x466d3d(0xca)]+0x1),_0x319a34[_0x466d3d(0x79)]=(_0x33e5e9=_0x319a34[_0x466d3d(0x79)])==null?void 0x0:_0x33e5e9[_0x466d3d(0xf1)](_0x1dd917=>_0x1dd917[_0x466d3d(0x96)]!==_0x4a07f4['blockId']),_0x4a07f4[_0x466d3d(0xca)];}function O(_0x14d594){const _0x16d08f=_0x49483d;return{..._0x14d594,'body':_0x14d594['body']?Ue(_0x14d594[_0x16d08f(0xc3)]):_0x14d594[_0x16d08f(0xc3)]};}function Ue(_0x1d1a3a){const _0x6a3fdc=_0x49483d;var _0x2c65ae,_0x1310ed,_0x32a5ee,_0x17552f,_0x36149d,_0x50d486,_0x257a93,_0x29d0a9,_0x2109ec;return{..._0x1d1a3a,'paragraphs':(_0x2c65ae=_0x1d1a3a[_0x6a3fdc(0x8a)])==null?void 0x0:_0x2c65ae[_0x6a3fdc(0x10f)](_0x48404c=>({..._0x48404c,'bullet':k(_0x48404c[_0x6a3fdc(0xe7)]),'paragraphStyle':k(_0x48404c['paragraphStyle'])})),'sectionBreaks':(_0x1310ed=_0x1d1a3a['sectionBreaks'])==null?void 0x0:_0x1310ed[_0x6a3fdc(0x10f)](_0x50877c=>({..._0x50877c})),'textRuns':(_0x32a5ee=_0x1d1a3a[_0x6a3fdc(0x95)])==null?void 0x0:_0x32a5ee[_0x6a3fdc(0x10f)](_0x539eba=>({..._0x539eba})),'tables':(_0x17552f=_0x1d1a3a[_0x6a3fdc(0xe8)])==null?void 0x0:_0x17552f[_0x6a3fdc(0x10f)](_0x52e5db=>({..._0x52e5db})),'columnGroups':(_0x36149d=_0x1d1a3a[_0x6a3fdc(0xc9)])==null?void 0x0:_0x36149d[_0x6a3fdc(0x10f)](_0x38835a=>{const _0x580558=_0x6a3fdc;var _0x23fa8b;return{..._0x38835a,'columns':(_0x23fa8b=_0x38835a[_0x580558(0xbc)])==null?void 0x0:_0x23fa8b['map'](_0x32505a=>k(_0x32505a))};}),'blockRanges':(_0x50d486=_0x1d1a3a[_0x6a3fdc(0x79)])==null?void 0x0:_0x50d486['map'](_0x118697=>({..._0x118697})),'customRanges':(_0x257a93=_0x1d1a3a[_0x6a3fdc(0x90)])==null?void 0x0:_0x257a93[_0x6a3fdc(0x10f)](_0x53ebbc=>({..._0x53ebbc})),'customDecorations':(_0x29d0a9=_0x1d1a3a[_0x6a3fdc(0xd8)])==null?void 0x0:_0x29d0a9[_0x6a3fdc(0x10f)](_0x4bf904=>({..._0x4bf904})),'customBlocks':(_0x2109ec=_0x1d1a3a[_0x6a3fdc(0x9b)])==null?void 0x0:_0x2109ec['map'](_0x3775bd=>({..._0x3775bd}))};}function k(_0x11b15f){const _0x11112b=_0x49483d;return Array['isArray'](_0x11b15f)?_0x11b15f[_0x11112b(0x10f)](_0x3431e0=>k(_0x3431e0)):!_0x11b15f||typeof _0x11b15f!=_0x11112b(0xa8)?_0x11b15f:Object[_0x11112b(0xf4)](Object[_0x11112b(0x6c)](_0x11b15f)[_0x11112b(0x10f)](([_0x4eff42,_0x4228b3])=>[_0x4eff42,k(_0x4228b3)]));}function _0x1d98(){const _0x53b81e=['paragraphs','registerCommand','TABLE_CELL_END','_setResource','MUTATION','sort','customRanges','getCurrentUnitOfType','direction','monospace','BLOCK_END','textRuns','blockId','TRUE','1356fFBjhY','convert-paragraph','1521960qbcpJR','customBlocks','config','dataStream','Insert\x20range\x20cannot\x20overlap\x20an\x20existing\x20document\x20block','stringify','docs-code.command.remove','packageName','string','length','replaceDocRanges','_initResource','getCodeConfig','spaceAbove','object','insertionMode','replaceOp','_docsCodeModel','selectionManager','endsWith','model','getUnit','handler','default','setCodeConfig','constructor','symbol','_config','getSnapshot','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','indentStart','500717rmLAri','COMMAND','_resourceManagerService','columns','get','every','some','defineProperty','keys','docs-code.command.unwrap','body','blockType','compose','documentData','commandService','docs-code.mutation.set-config','columnGroups','startIndex','insert','registerPluginResource','decorate','nextDocumentData','_resources','asObservable','metadata','parse','endTokenOffset','next','find','_commandService','getParagraphsInRange','customDecorations','Insert\x20range\x20cannot\x20cross\x20table\x20cell\x20boundaries','max','cursorOffset','paragraphStyle','indexOf','push','docs-code.command.cancel-empty-paragraph','from','delete','disposeWithMe','paragraphId','spaceBelow','forEach','syncExecuteCommand','bullet','tables','right','BLOCK_START','1855260FWutor','insertLength','removeUnit','iterator','min','removeOp','filter','_change$','set','fromEntries','insert-new','docs-code.mutation.remove-config','keepNext','pluginName','docs-code.command.consume-boundary-delete','widowControl','endIndex','_configService','removeCode','getInstance','PARAGRAPH','UNIVER_DOC','insertOp','start','34295QHiICr','function','endOffset','previousDocumentData','onStarting','type','version','1245408jwONUG','unitId','toPrimitive','range','startOffset','map','deserialize','getUnitId','isArray','complete','textStyle','_injector','paragraph','entries','sectionBreaks','docs-code.config','getTextRanges','editOp','startTokenOffset','TABLE_CELL_START','javascript','retain','Document\x20body\x20is\x20required','DOC_CODE_PLUGIN','codes','FALSE','blockRanges','dispose','change$','serialize','1.0.2','add','2458440iBVkEC','SECTION_BREAK','prototype','docs-code.command.insert-below','reduce','nextMetadata','7903SHlkbH','slice','paragraphStartIndex','@univerjs-pro/docs-code','CODE'];_0x1d98=function(){return _0x53b81e;};return _0x1d98();}function A(_0x26f889){const _0x49f3d3=_0x49483d;if(!_0x26f889['body'])throw Error(_0x49f3d3(0x75));return _0x26f889[_0x49f3d3(0xc3)];}function We(_0x527721,_0x3d912d,_0x3ddc6f,_0x2e2e3b=_0x49483d(0x99)){const _0x418e8a=_0x49483d;if(_0x3d912d==null||_0x3ddc6f==null){let _0x30a532=Ke(_0x527721);return{'startOffset':_0x30a532,'endOffset':_0x30a532};}let _0x11590e=Math[_0x418e8a(0xef)](_0x3d912d,_0x3ddc6f),_0x40eb22=Math[_0x418e8a(0xda)](_0x3d912d,_0x3ddc6f),_0x42d7ec=Ze(_0x527721,_0x11590e,_0x40eb22);return _0x11590e===_0x40eb22?_0x2e2e3b===_0x418e8a(0xf5)?{'startOffset':_0x11590e,'endOffset':_0x40eb22}:Ge(_0x527721,_0x11590e,_0x42d7ec):Je(_0x527721,_0x11590e,_0x40eb22,_0x42d7ec);}function Ge(_0x372ccf,_0x42cbbc,_0x32c72a){const _0x16b1c7=_0x49483d;let _0x4a3047=Ye(_0x372ccf,_0x42cbbc);if(_0x4a3047){let _0x481536=j(_0x372ccf,_0x4a3047,_0x32c72a);if(_0x481536<_0x4a3047[_0x16b1c7(0xca)])return{'startOffset':_0x481536,'endOffset':_0x32c72a?Math[_0x16b1c7(0xef)](_0x4a3047['startIndex']+0x1,_0x32c72a['endOffset']):_0x4a3047[_0x16b1c7(0xca)]+0x1};}let _0x2aa04f=_0x42cbbc===0x0&&_0x372ccf[_0x16b1c7(0x9d)][0x0]===_0x23e365[_0x16b1c7(0xff)]?0x1:_0x42cbbc;return{'startOffset':_0x2aa04f,'endOffset':_0x2aa04f};}function Ke(_0x315d7c){const _0x2616af=_0x49483d;return _0x315d7c['dataStream'][_0x2616af(0xad)](_0x23e365[_0x2616af(0x80)])?Math[_0x2616af(0xda)](0x0,_0x315d7c[_0x2616af(0x9d)][_0x2616af(0xa3)]-0x1):_0x315d7c[_0x2616af(0x9d)]['length'];}function qe(_0x5aa023,_0x1f7304,_0x498d94){const _0x235637=_0x49483d;var _0x3cc270;let _0x88649a=Math[_0x235637(0xef)](_0x1f7304,_0x498d94),_0x9138e5=Math[_0x235637(0xda)](_0x1f7304,_0x498d94);return!!((_0x3cc270=_0x5aa023[_0x235637(0xe8)])!=null&&_0x3cc270[_0x235637(0xbf)](_0x5d51c6=>_0x88649a>_0x5d51c6['startIndex']&&_0x88649a<_0x5d51c6[_0x235637(0xfb)]||_0x9138e5>_0x5d51c6['startIndex']&&_0x9138e5<_0x5d51c6[_0x235637(0xfb)]||_0x88649a<=_0x5d51c6[_0x235637(0xca)]&&_0x9138e5>=_0x5d51c6['endIndex']));}function Je(_0x3ce0cc,_0x3510e7,_0x94affa,_0x5bc6f9){const _0x118174=_0x49483d;let _0x5334a5=[..._0x3ce0cc[_0x118174(0x8a)]??[]][_0x118174(0x8f)]((_0x3d9f89,_0x233e69)=>_0x3d9f89[_0x118174(0xca)]-_0x233e69['startIndex']),_0x58dfaf=_0x43bde5(_0x3ce0cc),_0x277b49=_0x5334a5[_0x118174(0xd5)](_0x3bfc51=>j(_0x3ce0cc,_0x3bfc51,_0x5bc6f9,_0x58dfaf)<=_0x3510e7&&_0x3510e7<=_0x3bfc51[_0x118174(0xca)]),_0x27158e=_0x5334a5['find'](_0x168630=>_0x168630[_0x118174(0xca)]>=_0x94affa-0x1)??_0x5334a5[_0x5334a5['length']-0x1];return{'startOffset':_0x277b49?j(_0x3ce0cc,_0x277b49,_0x5bc6f9,_0x58dfaf):_0x3510e7,'endOffset':_0x27158e?Xe(_0x27158e,_0x5bc6f9):_0x94affa};}function Ye(_0x1558ed,_0x811343){const _0x53791f=_0x49483d;let _0x19b046=[..._0x1558ed[_0x53791f(0x8a)]??[]]['sort']((_0x56b8c4,_0xcc6c14)=>_0x56b8c4['startIndex']-_0xcc6c14[_0x53791f(0xca)]),_0x1fd7f7=_0x43bde5(_0x1558ed);return _0x19b046[_0x53791f(0xd5)](_0x3085e1=>(_0x1fd7f7[_0x53791f(0xbd)](_0x3085e1[_0x53791f(0xca)])??0x0)<=_0x811343&&_0x811343<=_0x3085e1[_0x53791f(0xca)]);}function j(_0xa29b8a,_0x555624,_0x228966,_0x2021c8){const _0x8e7edf=_0x49483d;let _0x42c9b0=(_0x2021c8==null?void 0x0:_0x2021c8['get'](_0x555624[_0x8e7edf(0xca)]))??_0x53b91f(_0xa29b8a,_0x555624);return _0x228966?Math['max'](_0x42c9b0,_0x228966[_0x8e7edf(0x10e)]):_0x42c9b0;}function Xe(_0x1e78c7,_0x2884b2){const _0x22ada6=_0x49483d;let _0x40fb21=_0x1e78c7[_0x22ada6(0xca)]+0x1;return _0x2884b2?Math[_0x22ada6(0xef)](_0x40fb21,_0x2884b2['endOffset']):_0x40fb21;}function Ze(_0x3fd946,_0x21e92d,_0xba3d8){const _0x2ab049=_0x49483d;let _0x2165e6=Qe(_0x3fd946,_0x21e92d),_0x5f3da5=Qe(_0x3fd946,_0x21e92d===_0xba3d8?_0xba3d8:Math['max'](_0x21e92d,_0xba3d8-0x1));if(_0x2165e6||_0x5f3da5){if(!_0x2165e6||!_0x5f3da5||_0x2165e6[_0x2ab049(0x71)]!==_0x5f3da5['startTokenOffset']||_0x2165e6[_0x2ab049(0xd3)]!==_0x5f3da5['endTokenOffset'])throw new E();return _0x2165e6;}}function Qe(_0x9ed5aa,_0x457200){const _0x245c1f=_0x49483d;let _0x37eb87=_0x9ed5aa['dataStream'],_0x22d64c=-0x1;for(let _0x887331=Math['min'](_0x457200,_0x37eb87[_0x245c1f(0xa3)]-0x1);_0x887331>=0x0;_0x887331--){let _0x752d27=_0x37eb87[_0x887331];if(_0x752d27===_0x23e365['TABLE_CELL_END'])return;if(_0x752d27===_0x23e365[_0x245c1f(0x72)]){_0x22d64c=_0x887331;break;}}if(_0x22d64c<0x0)return;let _0x375215=_0x37eb87[_0x245c1f(0xdd)](_0x23e365[_0x245c1f(0x8c)],_0x22d64c+0x1);if(!(_0x375215<0x0||_0x457200<_0x22d64c+0x1||_0x457200>_0x375215-0x1))return{'startOffset':_0x22d64c+0x1,'endOffset':Math[_0x245c1f(0xda)](_0x22d64c+0x1,_0x375215-0x1),'startTokenOffset':_0x22d64c,'endTokenOffset':_0x375215};}function M(_0x16bd20){const _0x1cffa3=_0x49483d;return _0x5c8dbe(_0x16bd20)[_0x1cffa3(0x105)]-0x1;}function $e(_0x1dd05a,_0x50ea1f,_0x4c76dc,_0x1a7407){const _0xba63fb=_0x49483d;let _0x1d9a80=M(_0x50ea1f),_0x3473f6=(_0x1dd05a[_0xba63fb(0x8a)]??[])[_0xba63fb(0xd5)](_0x534be5=>_0x534be5[_0xba63fb(0xca)]===_0x1d9a80+0x1);if(!_0x3473f6||_0x1a7407!=null&&_0x3473f6[_0xba63fb(0xca)]!==_0x1a7407||_0x4c76dc!=null&&(_0x4c76dc<_0x1d9a80||_0x4c76dc>_0x3473f6[_0xba63fb(0xca)]+0x1)||_0x1dd05a[_0xba63fb(0x9d)][_0x3473f6[_0xba63fb(0xca)]]!==_0x23e365[_0xba63fb(0xff)])return null;let _0x3faa15=_0x53b91f(_0x1dd05a,_0x3473f6),_0x40f6b0=_0x1dd05a[_0xba63fb(0x9d)][_0xba63fb(0x86)](_0x3faa15,_0x3473f6['startIndex']);return Array[_0xba63fb(0xe0)](_0x40f6b0)[_0xba63fb(0xbe)](_0x1c3817=>_0x1c3817===_0x23e365[_0xba63fb(0x94)])?{'paragraph':_0x3473f6,'endTokenOffset':_0x1d9a80}:null;}function N(_0x4aac1c,_0x57183e){const _0x595756=_0x49483d;var _0x28a092;let _0x1a104d=M(_0x57183e),_0x57cb3c=_0x4aac1c[_0x595756(0x9d)][_0x1a104d+0x1];(_0x57cb3c===_0x23e365[_0x595756(0x80)]||_0x57cb3c===void 0x0)&&P(_0x4aac1c,_0x1a104d+0x1,_0x23e365[_0x595756(0xff)],{'paragraphs':[{'startIndex':0x0,'paragraphId':_0x338f66(new Set((_0x28a092=_0x4aac1c[_0x595756(0x8a)])==null?void 0x0:_0x28a092[_0x595756(0x10f)](_0xf7aa0=>_0xf7aa0[_0x595756(0xe3)])))}]});}function P(_0x3c719f,_0x1266f0,_0x15fe14,_0x51a13c={}){const _0x31ff68=_0x49483d;var _0x38a78a,_0x28a5a2;_0x15fe14&&(_0x3c719f[_0x31ff68(0x9d)]=''+_0x3c719f['dataStream']['slice'](0x0,_0x1266f0)+_0x15fe14+_0x3c719f[_0x31ff68(0x9d)]['slice'](_0x1266f0),et(_0x3c719f,_0x1266f0,_0x15fe14[_0x31ff68(0xa3)]),(_0x38a78a=_0x51a13c['paragraphs'])!=null&&_0x38a78a[_0x31ff68(0xa3)]&&(_0x3c719f[_0x31ff68(0x8a)]=[..._0x3c719f['paragraphs']??[],..._0x51a13c[_0x31ff68(0x8a)][_0x31ff68(0x10f)](_0x27a966=>({..._0x27a966,'startIndex':_0x27a966[_0x31ff68(0xca)]+_0x1266f0}))][_0x31ff68(0x8f)]((_0x58d0c1,_0x5efc5c)=>_0x58d0c1[_0x31ff68(0xca)]-_0x5efc5c['startIndex'])),(_0x28a5a2=_0x51a13c['blockRanges'])!=null&&_0x28a5a2[_0x31ff68(0xa3)]&&(_0x3c719f[_0x31ff68(0x79)]=[..._0x3c719f[_0x31ff68(0x79)]??[],..._0x51a13c[_0x31ff68(0x79)]['map'](_0x19ed57=>({..._0x19ed57,'startIndex':_0x19ed57[_0x31ff68(0xca)]+_0x1266f0,'endIndex':_0x19ed57[_0x31ff68(0xfb)]+_0x1266f0}))][_0x31ff68(0x8f)]((_0x2aa1d1,_0x57c34b)=>_0x2aa1d1[_0x31ff68(0xca)]-_0x57c34b['startIndex'])));}function F(_0x48e2a9,_0x4c0fd9,_0x582d97){const _0x177543=_0x49483d;let _0x53e781=_0x582d97-_0x4c0fd9;_0x48e2a9[_0x177543(0x9d)]=''+_0x48e2a9[_0x177543(0x9d)][_0x177543(0x86)](0x0,_0x4c0fd9)+_0x48e2a9[_0x177543(0x9d)][_0x177543(0x86)](_0x582d97),tt(_0x48e2a9,_0x4c0fd9,_0x53e781);}function et(_0x54ca30,_0x2b9eb2,_0x5cf9e1){const _0x5afbfb=_0x49483d;_0x54ca30[_0x5afbfb(0x8a)]=I(_0x54ca30[_0x5afbfb(0x8a)],_0x2b9eb2,_0x5cf9e1),_0x54ca30[_0x5afbfb(0x6d)]=I(_0x54ca30[_0x5afbfb(0x6d)],_0x2b9eb2,_0x5cf9e1),_0x54ca30[_0x5afbfb(0x9b)]=I(_0x54ca30[_0x5afbfb(0x9b)],_0x2b9eb2,_0x5cf9e1),_0x54ca30['textRuns']=nt(_0x54ca30[_0x5afbfb(0x95)],_0x2b9eb2,_0x5cf9e1),_0x54ca30[_0x5afbfb(0xe8)]=rt(_0x54ca30['tables'],_0x2b9eb2,_0x5cf9e1),_0x54ca30[_0x5afbfb(0xc9)]=R(_0x54ca30[_0x5afbfb(0xc9)],_0x2b9eb2,_0x5cf9e1),_0x54ca30[_0x5afbfb(0x90)]=R(_0x54ca30[_0x5afbfb(0x90)],_0x2b9eb2,_0x5cf9e1),_0x54ca30[_0x5afbfb(0xd8)]=R(_0x54ca30[_0x5afbfb(0xd8)],_0x2b9eb2,_0x5cf9e1),_0x54ca30[_0x5afbfb(0x79)]=R(_0x54ca30[_0x5afbfb(0x79)],_0x2b9eb2,_0x5cf9e1);}function tt(_0x4b784f,_0x1811bf,_0x11d3a5){const _0x55f1a0=_0x49483d;var _0x55f068,_0x3fa23d;_0x4b784f['paragraphs']=L(_0x4b784f[_0x55f1a0(0x8a)],_0x1811bf,_0x11d3a5),_0x4b784f[_0x55f1a0(0x6d)]=L(_0x4b784f['sectionBreaks'],_0x1811bf,_0x11d3a5),_0x4b784f[_0x55f1a0(0x9b)]=L(_0x4b784f[_0x55f1a0(0x9b)],_0x1811bf,_0x11d3a5),_0x4b784f[_0x55f1a0(0x95)]=(_0x55f068=it((_0x3fa23d=_0x4b784f[_0x55f1a0(0x95)])==null?void 0x0:_0x3fa23d[_0x55f1a0(0x10f)](_0xa8dc8c=>({..._0xa8dc8c,'startIndex':_0xa8dc8c['st'],'endIndex':_0xa8dc8c['ed']})),_0x1811bf,_0x11d3a5))==null?void 0x0:_0x55f068[_0x55f1a0(0x10f)](_0x44d1b4=>{let {startIndex:_0x3c5a04,endIndex:_0x2ba6af,..._0x1b2e46}=_0x44d1b4;return{..._0x1b2e46,'st':_0x3c5a04,'ed':_0x2ba6af};}),_0x4b784f[_0x55f1a0(0xe8)]=it(_0x4b784f[_0x55f1a0(0xe8)],_0x1811bf,_0x11d3a5),_0x4b784f['columnGroups']=z(_0x4b784f[_0x55f1a0(0xc9)],_0x1811bf,_0x11d3a5),_0x4b784f[_0x55f1a0(0x90)]=z(_0x4b784f[_0x55f1a0(0x90)],_0x1811bf,_0x11d3a5),_0x4b784f[_0x55f1a0(0xd8)]=z(_0x4b784f['customDecorations'],_0x1811bf,_0x11d3a5),_0x4b784f[_0x55f1a0(0x79)]=z(_0x4b784f[_0x55f1a0(0x79)],_0x1811bf,_0x11d3a5);}function I(_0x35a8ac,_0xb5d92,_0x3536ca){const _0x2989c3=_0x49483d;return _0x35a8ac==null?void 0x0:_0x35a8ac[_0x2989c3(0x10f)](_0x49764d=>_0x49764d[_0x2989c3(0xca)]>=_0xb5d92?{..._0x49764d,'startIndex':_0x49764d['startIndex']+_0x3536ca}:_0x49764d);}function L(_0x1d4770,_0x34a2d7,_0x15307b){const _0xacf524=_0x49483d;let _0xc61e6c=_0x34a2d7+_0x15307b;return _0x1d4770==null?void 0x0:_0x1d4770[_0xacf524(0x10f)](_0x49ce98=>_0x49ce98[_0xacf524(0xca)]>=_0x34a2d7&&_0x49ce98['startIndex']<_0xc61e6c?null:_0x49ce98[_0xacf524(0xca)]>=_0xc61e6c?{..._0x49ce98,'startIndex':_0x49ce98['startIndex']-_0x15307b}:_0x49ce98)[_0xacf524(0xf1)](_0x41efe3=>_0x41efe3!=null);}function nt(_0x430eea,_0x12f39b,_0x3714b7){const _0x314ba2=_0x49483d;return _0x430eea==null?void 0x0:_0x430eea[_0x314ba2(0x10f)](_0x173020=>_0x173020['st']>=_0x12f39b?{..._0x173020,'st':_0x173020['st']+_0x3714b7,'ed':_0x173020['ed']+_0x3714b7}:_0x173020['ed']>_0x12f39b?{..._0x173020,'ed':_0x173020['ed']+_0x3714b7}:_0x173020);}function R(_0x2264a,_0x249d9e,_0x791a33){const _0x1728bd=_0x49483d;return _0x2264a==null?void 0x0:_0x2264a[_0x1728bd(0x10f)](_0x48860e=>_0x4cbd10(_0x48860e,_0x249d9e,_0x791a33));}function rt(_0x37cbe8,_0x148210,_0x320124){const _0x48a36e=_0x49483d;return _0x37cbe8==null?void 0x0:_0x37cbe8[_0x48a36e(0x10f)](_0xbe57dc=>_0x3f24e6(_0xbe57dc,_0x148210,_0x320124));}function z(_0x26908f,_0x45c75c,_0x522636){const _0x44a783=_0x49483d;return _0x26908f==null?void 0x0:_0x26908f[_0x44a783(0x10f)](_0x35cd26=>_0x2cee19(_0x35cd26,_0x45c75c,_0x522636))['filter'](_0x58a29c=>_0x58a29c!=null);}function it(_0x43824b,_0x53de3f,_0x15acc3){const _0xab3232=_0x49483d;return _0x43824b==null?void 0x0:_0x43824b['map'](_0x5786c3=>_0xc1b9cd(_0x5786c3,_0x53de3f,_0x15acc3))[_0xab3232(0xf1)](_0x3e1274=>_0x3e1274!=null);}function _0x10b3(_0x139bf2,_0x367a17){_0x139bf2=_0x139bf2-0x65;const _0x1d98ba=_0x1d98();let _0x10b317=_0x1d98ba[_0x139bf2];return _0x10b317;}const at={'id':_0x49483d(0x82),'type':_0x446cfc[_0x49483d(0xba)],'handler':_0x54aef2=>{const _0x45975b=_0x49483d;var _0x2e7799;if(_0x584ad5(G(_0x54aef2)))return!0x1;let _0x29ef0f=_0x34eb39(_0x54aef2);if(_0x29ef0f)return _0x54aef2[_0x45975b(0xbd)](_0x330d40)['syncExecuteCommand'](B['id'],{'startOffset':_0x29ef0f[_0x45975b(0x10e)],'endOffset':_0x29ef0f[_0x45975b(0x105)],'insertionMode':_0x45975b(0xf5),'unitId':_0x29ef0f[_0x45975b(0x10b)]});let _0x1cc77b=ft(_0x54aef2);if(!_0x1cc77b)return!0x1;let _0x4c2b84=(_0x2e7799=_0x54aef2[_0x45975b(0xbd)](_0x1f322c)[_0x45975b(0x91)](_0x2fc27d[_0x45975b(0x100)]))==null?void 0x0:_0x2e7799['getBody'](),_0x4d02b7=_0x4c2b84?_0x15574e(_0x4c2b84,_0x1cc77b):_0x1cc77b[_0x45975b(0xca)]+0x1;return _0x54aef2[_0x45975b(0xbd)](_0x330d40)['syncExecuteCommand'](B['id'],{'startOffset':_0x4d02b7,'endOffset':_0x4d02b7});}},ot={'id':_0x49483d(0xf9),'type':_0x446cfc[_0x49483d(0xba)],'handler':()=>!0x0},B={'id':'docs-code.command.insert','type':_0x446cfc[_0x49483d(0xba)],'handler':(_0x5ced54,_0xfff347)=>{const _0x11f6f6=_0x49483d;let _0x4364cb=W(_0x5ced54,_0xfff347==null?void 0x0:_0xfff347[_0x11f6f6(0x10b)]);if(!_0x4364cb)return!0x1;let _0x2f4f7b=G(_0x5ced54);if(_0x584ad5(_0x2f4f7b))return!0x1;let _0x470f30=_0x4364cb[_0x11f6f6(0xae)][_0x11f6f6(0x7c)](_0x4364cb[_0x11f6f6(0x10b)]),_0x447e02=lt(_0xfff347,_0x2f4f7b),_0x36928e=ut(_0x4364cb[_0x11f6f6(0x106)],_0x447e02);if(_0x36928e){if(_0x36928e[_0x11f6f6(0xc4)]!==_0x2324fb['CODE'])return!0x1;let _0x4f47c4=D({'blockId':_0x36928e['blockId'],'documentData':_0x4364cb[_0x11f6f6(0x106)],'metadata':_0x470f30});if(!_0x4f47c4)return!0x1;let _0xc56bdf=Y(_0x4364cb[_0x11f6f6(0xc7)],_0x4364cb[_0x11f6f6(0xac)],_0x4364cb[_0x11f6f6(0x10b)],_0x4364cb[_0x11f6f6(0x106)],_0x4f47c4[_0x11f6f6(0xce)],B['id'],_0x4f47c4[_0x11f6f6(0xdb)]);return _0xc56bdf&&_0x4f47c4[_0x11f6f6(0x84)]&&_0x4364cb[_0x11f6f6(0xae)]['deserialize'](_0x4364cb[_0x11f6f6(0x10b)],_0x4f47c4['nextMetadata']),_0xc56bdf;}let _0x57aa41=(_0xfff347==null?void 0x0:_0xfff347[_0x11f6f6(0x96)])??_0x5cf7a0(0x6),_0xe03c18;try{_0xe03c18=De({'blockId':_0x57aa41,'config':_0xfff347==null?void 0x0:_0xfff347[_0x11f6f6(0x9c)],'documentData':_0x4364cb[_0x11f6f6(0x106)],'endOffset':_0x447e02==null?void 0x0:_0x447e02[_0x11f6f6(0x105)],'insertionMode':_0xfff347==null?void 0x0:_0xfff347[_0x11f6f6(0xa9)],'metadata':_0x470f30,'startOffset':_0x447e02==null?void 0x0:_0x447e02[_0x11f6f6(0x10e)]});}catch(_0x272d0a){if(_0x272d0a instanceof E)return!0x1;throw _0x272d0a;}let _0x28b016=Y(_0x4364cb[_0x11f6f6(0xc7)],_0x4364cb['selectionManager'],_0x4364cb[_0x11f6f6(0x10b)],_0x4364cb['previousDocumentData'],_0xe03c18[_0x11f6f6(0xce)],B['id'],_0xe03c18[_0x11f6f6(0xdb)]);return _0x28b016&&_0xe03c18[_0x11f6f6(0x84)]&&_0x4364cb[_0x11f6f6(0xae)][_0x11f6f6(0x65)](_0x4364cb[_0x11f6f6(0x10b)],_0xe03c18[_0x11f6f6(0x84)]),_0x28b016;}},st={'id':'docs-code.command.update','type':_0x446cfc['COMMAND'],'handler':(_0x6a12c2,_0x2a753a)=>{const _0x13a052=_0x49483d;if(!_0x2a753a)return!0x1;let _0x92192=W(_0x6a12c2,_0x2a753a[_0x13a052(0x10b)]);if(!_0x92192)return!0x1;let _0x1319af=je({'blockId':_0x2a753a[_0x13a052(0x96)],'config':_0x2a753a[_0x13a052(0x9c)],'documentData':_0x92192[_0x13a052(0x106)],'metadata':_0x92192['model'][_0x13a052(0x7c)](_0x92192[_0x13a052(0x10b)])});return _0x1319af[_0x13a052(0x84)]&&_0x92192[_0x13a052(0xae)]['deserialize'](_0x92192[_0x13a052(0x10b)],_0x1319af[_0x13a052(0x84)]),!0x0;}},ct={'id':'docs-code.command.exit','type':_0x446cfc['COMMAND'],'handler':(_0xa76678,_0x21d0f2)=>V[_0x49483d(0xb0)](_0xa76678,_0x21d0f2)},V={'id':_0x49483d(0xc2),'type':_0x446cfc[_0x49483d(0xba)],'handler':(_0x4317f9,_0x1ac49a)=>{const _0xb165f0=_0x49483d;if(!_0x1ac49a)return!0x1;let _0x128479=W(_0x4317f9,_0x1ac49a==null?void 0x0:_0x1ac49a[_0xb165f0(0x10b)]);if(!_0x128479)return!0x1;let _0x27a2db=D({'blockId':_0x1ac49a[_0xb165f0(0x96)],'documentData':_0x128479['previousDocumentData'],'metadata':_0x128479[_0xb165f0(0xae)][_0xb165f0(0x7c)](_0x128479[_0xb165f0(0x10b)])});if(!_0x27a2db)return!0x1;let _0x5bf9be=Y(_0x128479[_0xb165f0(0xc7)],_0x128479[_0xb165f0(0xac)],_0x128479['unitId'],_0x128479[_0xb165f0(0x106)],_0x27a2db[_0xb165f0(0xce)],V['id'],_0x27a2db['cursorOffset']);return _0x5bf9be&&_0x27a2db[_0xb165f0(0x84)]&&_0x128479['model']['deserialize'](_0x128479[_0xb165f0(0x10b)],_0x27a2db[_0xb165f0(0x84)]),_0x5bf9be;}},H={'id':_0x49483d(0xa0),'type':_0x446cfc[_0x49483d(0xba)],'handler':(_0x32bd2a,_0x71fc0f)=>{const _0xe9b79c=_0x49483d;if(!_0x71fc0f)return!0x1;let _0x8665ad=W(_0x32bd2a,_0x71fc0f==null?void 0x0:_0x71fc0f[_0xe9b79c(0x10b)]);if(!_0x8665ad)return!0x1;let _0xf6f7ec=Me({'blockId':_0x71fc0f[_0xe9b79c(0x96)],'documentData':_0x8665ad[_0xe9b79c(0x106)],'metadata':_0x8665ad[_0xe9b79c(0xae)][_0xe9b79c(0x7c)](_0x8665ad[_0xe9b79c(0x10b)])});if(!_0xf6f7ec)return!0x1;let _0x29a4fb=Y(_0x8665ad['commandService'],_0x8665ad[_0xe9b79c(0xac)],_0x8665ad['unitId'],_0x8665ad[_0xe9b79c(0x106)],_0xf6f7ec[_0xe9b79c(0xce)],H['id'],_0xf6f7ec[_0xe9b79c(0xdb)]);return _0x29a4fb&&_0xf6f7ec[_0xe9b79c(0x84)]&&_0x8665ad[_0xe9b79c(0xae)][_0xe9b79c(0x65)](_0x8665ad[_0xe9b79c(0x10b)],_0xf6f7ec[_0xe9b79c(0x84)]),_0x29a4fb;}},U={'id':_0x49483d(0xdf),'type':_0x446cfc[_0x49483d(0xba)],'handler':(_0x1a7e0e,_0x39ac38)=>{const _0x36bd4e=_0x49483d;var _0x33d82f;let _0x373be3=W(_0x1a7e0e,_0x39ac38==null?void 0x0:_0x39ac38['unitId']);if(!_0x373be3)return!0x1;let _0x3c9908=(_0x39ac38==null?void 0x0:_0x39ac38['cursorOffset'])??((_0x33d82f=G(_0x1a7e0e))==null?void 0x0:_0x33d82f[_0x36bd4e(0x10e)]);if(_0x3c9908==null)return!0x1;let _0x54d46e=Ne({'cursorOffset':_0x3c9908,'documentData':_0x373be3[_0x36bd4e(0x106)],'paragraphStartIndex':_0x39ac38==null?void 0x0:_0x39ac38['paragraphStartIndex']});return _0x54d46e?Y(_0x373be3[_0x36bd4e(0xc7)],_0x373be3['selectionManager'],_0x373be3['unitId'],_0x373be3[_0x36bd4e(0x106)],_0x54d46e[_0x36bd4e(0xce)],U['id'],_0x54d46e[_0x36bd4e(0xdb)]):!0x1;}};function W(_0xd4eb6a,_0x4cb76d){const _0x24888c=_0x49483d;let _0x4ee59d=_0xd4eb6a[_0x24888c(0xbd)](_0x1f322c),_0x3ffd57=_0x4cb76d?_0x4ee59d[_0x24888c(0xaf)](_0x4cb76d,_0x2fc27d[_0x24888c(0x100)]):_0x4ee59d['getCurrentUnitOfType'](_0x2fc27d[_0x24888c(0x100)]);return _0x3ffd57?{'commandService':_0xd4eb6a[_0x24888c(0xbd)](_0x330d40),'model':_0xd4eb6a[_0x24888c(0xbd)](w),'previousDocumentData':_0x3ffd57[_0x24888c(0xb6)](),'selectionManager':_0xd4eb6a['get'](_0x2baf85),'unitId':_0x3ffd57[_0x24888c(0x66)]()}:null;}function G(_0x34f940){const _0x4f44bd=_0x49483d;var _0x5a03b0;return(_0x5a03b0=_0x34f940[_0x4f44bd(0xbd)](_0x2baf85)[_0x4f44bd(0x6f)]())==null?void 0x0:_0x5a03b0[0x0];}function lt(_0x555859,_0x19d3df){const _0x377f13=_0x49483d;let _0x14de05=(_0x555859==null?void 0x0:_0x555859[_0x377f13(0x10e)])??(_0x19d3df==null?void 0x0:_0x19d3df[_0x377f13(0x10e)]),_0x21b04f=(_0x555859==null?void 0x0:_0x555859[_0x377f13(0x105)])??(_0x19d3df==null?void 0x0:_0x19d3df[_0x377f13(0x105)]);if(_0x14de05!=null&&_0x21b04f!=null)return{'endOffset':Math[_0x377f13(0xda)](_0x14de05,_0x21b04f),'startOffset':Math[_0x377f13(0xef)](_0x14de05,_0x21b04f)};}function ut(_0xa33196,_0x56ce2c){const _0x591e07=_0x49483d;var _0xf3b25;if(!_0x56ce2c)return;let _0x520d36=dt(_0x56ce2c);return(_0xf3b25=_0xa33196['body'])==null||(_0xf3b25=_0xf3b25[_0x591e07(0x79)])==null?void 0x0:_0xf3b25[_0x591e07(0xd5)](_0x5e51ee=>{const _0x7cb9f8=_0x591e07;let _0x5dfe9c=_0x5c8dbe(_0x5e51ee);return _0x56ce2c[_0x7cb9f8(0x10e)]===_0x56ce2c['endOffset']?_0x116958(_0x5dfe9c,_0x520d36):_0x2d8224(_0x5dfe9c,_0x520d36);});}function dt(_0x2e8a1f){const _0x35289b=_0x49483d;return _0x2e8a1f[_0x35289b(0x10e)]===_0x2e8a1f[_0x35289b(0x105)]?_0x2e8a1f[_0x35289b(0x10e)]:_0x2e8a1f['startOffset']+0x1;}function ft(_0x427789){const _0x19f654=_0x49483d;let _0x405096=G(_0x427789);if(!_0x405096)return null;let _0x2b49f8=_0x427789[_0x19f654(0xbd)](_0x1f322c)['getCurrentUnitOfType'](_0x2fc27d[_0x19f654(0x100)]),_0x21ddc4=_0x2b49f8==null?void 0x0:_0x2b49f8['getBody']();return _0x21ddc4?_0x18ba16[_0x19f654(0x10d)][_0x19f654(0xd7)](_0x405096,_0x21ddc4['paragraphs']??[],_0x21ddc4['dataStream']??'')[0x0]??null:null;}function pt(_0x222ea4,_0x2c117a){const _0x261dfb=_0x49483d;let _0x2a1c3c=_0x222ea4['body'],_0x79e5c3=_0x2c117a['body'],_0x4de52e=_0x5c68b1(_0x2a1c3c,_0x79e5c3);return[_0x4de52e&&_0x79e5c3?mt(_0x79e5c3,_0x4de52e):null,_0x4de52e?null:ht(_0x2a1c3c,_0x79e5c3)]['filter'](Boolean)[_0x261dfb(0x83)]((_0x570cd9,_0x648e99)=>_0x424cd6[_0x261dfb(0xc5)](_0x570cd9,_0x648e99),null);}function mt(_0x53d23b,_0x4171f5){const _0xb39234=_0x49483d;let _0x434ce8=new _0x227fc3();return _0x434ce8[_0xb39234(0x74)](_0x4171f5[_0xb39234(0x102)]),_0x4171f5['insertLength']>0x0&&_0x434ce8[_0xb39234(0xcb)](_0x4171f5[_0xb39234(0xec)],_0x25d42f(_0x53d23b,_0x4171f5[_0xb39234(0x102)],_0x4171f5['start']+_0x4171f5['insertLength'],!0x1)),_0x4171f5['deleteLength']>0x0&&_0x434ce8[_0xb39234(0xe1)](_0x4171f5['deleteLength']),_0x424cd6[_0xb39234(0xfe)]()[_0xb39234(0x70)](_0x434ce8[_0xb39234(0x7c)](),[_0xb39234(0xc3)]);}function ht(_0x1da439,_0x1ed598){const _0x1d21a5=_0x49483d;let _0x253ce5=[],_0x2b67a7=_0x1da439?_t(_0x1da439):void 0x0,_0x3691f0=_0x1ed598?_t(_0x1ed598):void 0x0;for(let _0x38473a of gt)K(_0x424cd6[_0x1d21a5(0xfe)](),[_0x1d21a5(0xc3),_0x38473a],_0x2b67a7==null?void 0x0:_0x2b67a7[_0x38473a],_0x3691f0==null?void 0x0:_0x3691f0[_0x38473a],_0x253ce5);return _0x253ce5[_0x1d21a5(0x83)]((_0x5dbd29,_0x57f324)=>_0x424cd6[_0x1d21a5(0xc5)](_0x5dbd29,_0x57f324),null);}const gt=[_0x49483d(0x8a),_0x49483d(0x6d),_0x49483d(0xe8),_0x49483d(0xc9),_0x49483d(0x79),_0x49483d(0x9b),'customRanges',_0x49483d(0xd8),_0x49483d(0x95)];function _t(_0x788228){return _0x788228;}function K(_0x24a0fd,_0x36df53,_0x356f6e,_0x16d58f,_0x19a41a){const _0xfba002=_0x49483d;if(!J(_0x356f6e,_0x16d58f)){if(_0x356f6e==null){_0x19a41a[_0xfba002(0xde)](_0x24a0fd[_0xfba002(0x101)](_0x36df53,_0x16d58f));return;}if(_0x16d58f==null){_0x19a41a[_0xfba002(0xde)](_0x24a0fd[_0xfba002(0xf0)](_0x36df53,_0x356f6e));return;}if(Array[_0xfba002(0x67)](_0x356f6e)&&Array[_0xfba002(0x67)](_0x16d58f)){vt(_0x24a0fd,_0x36df53,_0x356f6e,_0x16d58f,_0x19a41a);return;}if(q(_0x356f6e)&&q(_0x16d58f)){new Set([...Object[_0xfba002(0xc1)](_0x356f6e),...Object[_0xfba002(0xc1)](_0x16d58f)])['forEach'](_0x4efe8b=>{K(_0x24a0fd,[..._0x36df53,_0x4efe8b],_0x356f6e[_0x4efe8b],_0x16d58f[_0x4efe8b],_0x19a41a);});return;}_0x19a41a[_0xfba002(0xde)](_0x24a0fd[_0xfba002(0xaa)](_0x36df53,_0x356f6e,_0x16d58f));}}function vt(_0x308964,_0x597f92,_0x1a7922,_0x3ef404,_0x1663fc){const _0x22e6c0=_0x49483d;if(_0x1a7922[_0x22e6c0(0xa3)]===_0x3ef404[_0x22e6c0(0xa3)]){_0x1a7922[_0x22e6c0(0xe5)]((_0x211b4e,_0x1d73d1)=>K(_0x308964,[..._0x597f92,_0x1d73d1],_0x211b4e,_0x3ef404[_0x1d73d1],_0x1663fc));return;}let _0x117c98=0x0;for(;_0x117c98<_0x1a7922[_0x22e6c0(0xa3)]&&_0x117c98<_0x3ef404['length']&&J(_0x1a7922[_0x117c98],_0x3ef404[_0x117c98]);)_0x117c98++;let _0x15a85a=_0x1a7922['length']-0x1,_0x278a39=_0x3ef404[_0x22e6c0(0xa3)]-0x1;for(;_0x15a85a>=_0x117c98&&_0x278a39>=_0x117c98&&J(_0x1a7922[_0x15a85a],_0x3ef404[_0x278a39]);)_0x15a85a--,_0x278a39--;for(let _0x43fb6a=_0x15a85a;_0x43fb6a>=_0x117c98;_0x43fb6a--)_0x1663fc[_0x22e6c0(0xde)](_0x308964[_0x22e6c0(0xf0)]([..._0x597f92,_0x43fb6a],_0x1a7922[_0x43fb6a]));for(let _0x3c12d1=_0x117c98;_0x3c12d1<=_0x278a39;_0x3c12d1++)_0x1663fc[_0x22e6c0(0xde)](_0x308964[_0x22e6c0(0x101)]([..._0x597f92,_0x3c12d1],_0x3ef404[_0x3c12d1]));}function q(_0x4797f5){const _0x5d12d5=_0x49483d;return typeof _0x4797f5=='object'&&!!_0x4797f5&&!Array[_0x5d12d5(0x67)](_0x4797f5);}function J(_0x5a92d8,_0x3219c0){const _0x534fbb=_0x49483d;return JSON[_0x534fbb(0x9f)](_0x5a92d8)===JSON[_0x534fbb(0x9f)](_0x3219c0);}function Y(_0x2b8fb0,_0x5ae991,_0x13d374,_0x2c033f,_0x31579f,_0x308447,_0x3db8be){const _0x2c80f3=_0x49483d;let _0x528c68=pt(_0x2c033f,_0x31579f);return _0x528c68?!!_0x2b8fb0[_0x2c80f3(0xe6)](_0x274029['id'],{'unitId':_0x13d374,'actions':_0x528c68,'textRanges':[{'startOffset':_0x3db8be,'endOffset':_0x3db8be,'collapsed':!0x0}],'isEditing':!0x1,'trigger':_0x308447}):(_0x5ae991[_0x2c80f3(0xa4)]([{'startOffset':_0x3db8be,'endOffset':_0x3db8be}],{'unitId':_0x13d374,'subUnitId':_0x13d374},!0x1),!0x0);}const X=_0x49483d(0x76);var yt=_0x49483d(0x88),bt=_0x49483d(0x7d);const xt={};function Z(_0x42699c,_0x3da817){return function(_0x78651b,_0x411faa){_0x3da817(_0x78651b,_0x411faa,_0x42699c);};}function St(_0x1fb6a7,_0x440249,_0x3b8ed4,_0x561e80){const _0x1f96ee=_0x49483d;var _0x1b43ba=arguments[_0x1f96ee(0xa3)],_0x423ae9=_0x1b43ba<0x3?_0x440249:_0x561e80===null?_0x561e80=Object['getOwnPropertyDescriptor'](_0x440249,_0x3b8ed4):_0x561e80,_0x2ba52f;if(typeof Reflect=='object'&&typeof Reflect['decorate']==_0x1f96ee(0x104))_0x423ae9=Reflect[_0x1f96ee(0xcd)](_0x1fb6a7,_0x440249,_0x3b8ed4,_0x561e80);else{for(var _0x12c472=_0x1fb6a7[_0x1f96ee(0xa3)]-0x1;_0x12c472>=0x0;_0x12c472--)(_0x2ba52f=_0x1fb6a7[_0x12c472])&&(_0x423ae9=(_0x1b43ba<0x3?_0x2ba52f(_0x423ae9):_0x1b43ba>0x3?_0x2ba52f(_0x440249,_0x3b8ed4,_0x423ae9):_0x2ba52f(_0x440249,_0x3b8ed4))||_0x423ae9);}return _0x1b43ba>0x3&&_0x423ae9&&Object['defineProperty'](_0x440249,_0x3b8ed4,_0x423ae9),_0x423ae9;}let Q=class extends _0x24e448{constructor(_0x1ee959,_0xb4519d){const _0x58c2d7=_0x49483d;super(),this[_0x58c2d7(0xbb)]=_0x1ee959,this[_0x58c2d7(0xab)]=_0xb4519d,this[_0x58c2d7(0xa5)]();}['_initResource'](){const _0x296147=_0x49483d;this[_0x296147(0xe2)](this[_0x296147(0xbb)][_0x296147(0xcc)]({'pluginName':X,'businesses':[_0x2fc27d[_0x296147(0x100)]],'toJson':_0x300f4=>JSON['stringify'](this[_0x296147(0xab)][_0x296147(0x7c)](_0x300f4)),'parseJson':_0x3cfe2e=>y(JSON[_0x296147(0xd2)](_0x3cfe2e)),'onLoad':(_0x2b4d4d,_0x20dbc8)=>this[_0x296147(0xab)][_0x296147(0x65)](_0x2b4d4d,_0x20dbc8),'onUnLoad':_0x16b5c9=>this[_0x296147(0xab)]['removeUnit'](_0x16b5c9)}));}};Q=St([Z(0x0,_0x4ec5e9),Z(0x1,_0x34c829(w))],Q);let $=class extends _0x5a8ee0{constructor(_0x222113=xt,_0x18758b,_0x590d25,_0x26903b){const _0x146d8d=_0x49483d;super(),this[_0x146d8d(0xb5)]=_0x222113,this[_0x146d8d(0x6a)]=_0x18758b,this[_0x146d8d(0xd6)]=_0x590d25,this[_0x146d8d(0xfc)]=_0x26903b;let {..._0x172860}=_0x1470e9({},xt,this[_0x146d8d(0xb5)]);this[_0x146d8d(0xfc)]['setConfig'](_0x146d8d(0x6e),_0x172860);}[_0x49483d(0x107)](){const _0x5207d1=_0x49483d;this['_injector'][_0x5207d1(0x7e)]([w]),this[_0x5207d1(0x6a)]['add']([Q]),this['_injector'][_0x5207d1(0xbd)](w),this[_0x5207d1(0x6a)][_0x5207d1(0xbd)](Q),[B,at,st,V,H,ct,U,ot,Te,T][_0x5207d1(0xe5)](_0x5dc876=>this['disposeWithMe'](this['_commandService'][_0x5207d1(0x8b)](_0x5dc876)));}};C($,_0x49483d(0xf8),X),C($,_0x49483d(0xa1),yt),C($,_0x49483d(0x109),bt),C($,_0x49483d(0x108),_0x2fc27d[_0x49483d(0x100)]),$=St([_0x5aaaeb(_0xecd332,_0x565d36),Z(0x1,_0x34c829(_0x38f326)),Z(0x2,_0x330d40),Z(0x3,_0x5ce515)],$);export{X as DOCS_CODE_PLUGIN,U as DocsCodeCancelEmptyParagraphCommand,ot as DocsCodeConsumeBoundaryDeleteCommand,at as DocsCodeInsertBelowCommand,B as DocsCodeInsertCommand,w as DocsCodeModel,H as DocsCodeRemoveCommand,V as DocsCodeUnwrapCommand,st as DocsCodeUpdateCommand,T as RemoveDocsCodeConfigMutation,Te as SetDocsCodeConfigMutation,$ as UniverDocsCodePlugin,Ne as buildCancelEmptyCodeParagraphActions,Ie as isCodeBoundaryDelete,v as normalizeDocsCodeConfig,y as normalizeDocsCodeMetadataResource};
1
+ const _0x47262e=_0x4005;(function(_0x20f793,_0x48c8e1){const _0x419890=_0x4005,_0x4847af=_0x20f793();while(!![]){try{const _0x36931d=parseInt(_0x419890(0x10a))/0x1+parseInt(_0x419890(0x117))/0x2+parseInt(_0x419890(0xae))/0x3+-parseInt(_0x419890(0x10b))/0x4+parseInt(_0x419890(0x139))/0x5*(-parseInt(_0x419890(0x145))/0x6)+-parseInt(_0x419890(0xcd))/0x7+parseInt(_0x419890(0x146))/0x8;if(_0x36931d===_0x48c8e1)break;else _0x4847af['push'](_0x4847af['shift']());}catch(_0x30764d){_0x4847af['push'](_0x4847af['shift']());}}}(_0x305b,0x33a15));import{BooleanNumber as _0x305636,BuildTextUtils as _0x39a794,CommandType as _0x56cb03,DataStreamTreeTokenType as _0x4e2eb9,DependentOn as _0x5a7055,Disposable as _0x4a683f,DocumentBlockRangeType as _0x5e660a,ICommandService as _0x590f1e,IConfigService as _0x5308c5,IResourceManagerService as _0x5bbb3a,IUniverInstanceService as _0x3505d2,Inject as _0x20224e,Injector as _0x31802d,JSONX as _0x1d5524,Plugin as _0x947f63,TextX as _0x4d07a5,UniverInstanceType as _0x4c80f2,containsInteriorInsertionOffset as _0xa244f6,containsStreamIndex as _0x8a4026,createParagraphId as _0x4e2158,generateRandomId as _0x339fc6,getBlockRangeInterval as _0x13b73c,getBodySliceForTextXAction as _0x36cb78,getParagraphContentStartOffset as _0x420e80,getParagraphContentStartOffsets as _0x412152,getParagraphFollowingBlockOffset as _0x5e6434,getSingleDataStreamChange as _0x10a6bd,intersectsOperationalIntervals as _0xaf64f7,merge as _0x3335f3,shiftExclusiveRangeOnDelete as _0x31ca35,shiftExclusiveRangeOnInsert as _0x5cd158,shiftInclusiveRangeOnDelete as _0x2ab905,shiftInclusiveRangeOnInsert as _0x243408}from'@univerjs/core';import{Subject as _0x3d9f3e}from'rxjs';import{DocSelectionManagerService as _0xa4b078,RichTextEditingMutation as _0x1711e6,UniverDocsPlugin as _0x18c0f9,getContentInsertRange as _0x50d82b,isHeaderFooterSelection as _0x288372}from'@univerjs/docs';import{UniverLicensePlugin as _0x4d7e7b}from'@univerjs-pro/license';const Se={'language':'javascript','showLineNumbers':!0x1,'tabSize':0x4,'wrap':!0x0};function v(_0x512d50){return{...Se,..._0x512d50};}function y(_0x3040cd){const _0x38a0bd=_0x4005;let _0x28398e=(_0x3040cd==null?void 0x0:_0x3040cd[_0x38a0bd(0x130)])??{};return{'codes':Object[_0x38a0bd(0xe6)](Object[_0x38a0bd(0xbd)](_0x28398e)[_0x38a0bd(0xb2)](([_0x1dde0f,_0x537a27])=>[_0x1dde0f,v(_0x537a27)]))};}function b(_0xf75148,_0x27d725,_0x1d233d){const _0x29f86e=_0x4005;let _0xc4681f=y(_0xf75148);return _0xc4681f[_0x29f86e(0x130)][_0x27d725]=v({..._0xc4681f[_0x29f86e(0x130)][_0x27d725],..._0x1d233d}),_0xc4681f;}function x(_0x1a660c,_0x200ddf){const _0x4ba688=_0x4005;let _0x41a85c=y(_0x1a660c);return delete _0x41a85c[_0x4ba688(0x130)][_0x200ddf],_0x41a85c;}function S(_0x169a72){'@babel/helpers - typeof';return S=typeof Symbol=='function'&&typeof Symbol['iterator']=='symbol'?function(_0x5d7bcb){return typeof _0x5d7bcb;}:function(_0x30004e){const _0x3538b9=_0x4005;return _0x30004e&&typeof Symbol==_0x3538b9(0x13d)&&_0x30004e[_0x3538b9(0x133)]===Symbol&&_0x30004e!==Symbol['prototype']?'symbol':typeof _0x30004e;},S(_0x169a72);}function _0x4005(_0x531beb,_0x4ff2e7){_0x531beb=_0x531beb-0xa5;const _0x305b34=_0x305b();let _0x4005a5=_0x305b34[_0x531beb];return _0x4005a5;}function Ce(_0x493049,_0x2223ab){const _0x2f34f3=_0x4005;if(S(_0x493049)!=_0x2f34f3(0x115)||!_0x493049)return _0x493049;var _0x3ba476=_0x493049[Symbol[_0x2f34f3(0x118)]];if(_0x3ba476!==void 0x0){var _0x202826=_0x3ba476[_0x2f34f3(0xb8)](_0x493049,_0x2223ab||'default');if(S(_0x202826)!='object')return _0x202826;throw TypeError(_0x2f34f3(0x111));}return(_0x2223ab===_0x2f34f3(0x129)?String:Number)(_0x493049);}function we(_0x2cba79){const _0x3e00ec=_0x4005;var _0x13e4c6=Ce(_0x2cba79,_0x3e00ec(0x129));return S(_0x13e4c6)==_0x3e00ec(0xda)?_0x13e4c6:_0x13e4c6+'';}function C(_0x4a464c,_0x213333,_0x421672){return(_0x213333=we(_0x213333))in _0x4a464c?Object['defineProperty'](_0x4a464c,_0x213333,{'value':_0x421672,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4a464c[_0x213333]=_0x421672,_0x4a464c;}var w=class extends _0x4a683f{constructor(..._0x3d0cd1){const _0x216d9c=_0x4005;super(..._0x3d0cd1),C(this,_0x216d9c(0xf2),new Map()),C(this,_0x216d9c(0x101),new _0x3d9f3e()),C(this,_0x216d9c(0xcc),this['_change$'][_0x216d9c(0xc2)]());}[_0x47262e(0xaa)](_0x574a61,_0x9f83e3){const _0x59ccc1=_0x47262e;return y(this['_resources'][_0x59ccc1(0xfd)](_0x574a61))[_0x59ccc1(0x130)][_0x9f83e3];}[_0x47262e(0xab)](_0x4f47b2,_0x560a7f,_0x37935a){const _0x544f46=_0x47262e;this['_setResource'](_0x4f47b2,_0x560a7f,b(this['_resources'][_0x544f46(0xfd)](_0x4f47b2),_0x560a7f,_0x37935a));}[_0x47262e(0xf7)](_0x3efc68,_0x3dd3d1){const _0x2efab6=_0x47262e;this['_setResource'](_0x3efc68,_0x3dd3d1,x(this[_0x2efab6(0xf2)][_0x2efab6(0xfd)](_0x3efc68),_0x3dd3d1));}['serialize'](_0x4cb589){const _0x22b4e7=_0x47262e;return y(this[_0x22b4e7(0xf2)][_0x22b4e7(0xfd)](_0x4cb589));}[_0x47262e(0x12f)](_0x2ae3b0,_0x3b4dc4){const _0x14910d=_0x47262e;this['_resources'][_0x14910d(0xe2)](_0x2ae3b0,y(_0x3b4dc4)),this[_0x14910d(0x101)][_0x14910d(0x149)]({'unitId':_0x2ae3b0});}['removeUnit'](_0x3257f0){const _0x2c44ec=_0x47262e;this[_0x2c44ec(0xf2)][_0x2c44ec(0xe3)](_0x3257f0),this['_change$'][_0x2c44ec(0x149)]({'unitId':_0x3257f0});}[_0x47262e(0xe4)](){const _0x15adbb=_0x47262e;super['dispose'](),this['_resources']['clear'](),this['_change$'][_0x15adbb(0x11f)]();}['_setResource'](_0x2873e4,_0x2ccee3,_0x40b4dd){const _0x16233a=_0x47262e;this[_0x16233a(0xf2)][_0x16233a(0xe2)](_0x2873e4,_0x40b4dd),this[_0x16233a(0x101)]['next']({'unitId':_0x2873e4,'blockId':_0x2ccee3});}};const Te={'id':_0x47262e(0xea),'type':_0x56cb03[_0x47262e(0x131)],'handler':(_0x61756b,_0x547f17)=>!(_0x547f17!=null&&_0x547f17[_0x47262e(0x136)])||!_0x547f17[_0x47262e(0xb1)]?!0x1:(_0x61756b[_0x47262e(0xfd)](w)[_0x47262e(0xab)](_0x547f17[_0x47262e(0x136)],_0x547f17['blockId'],_0x547f17[_0x47262e(0xf8)]),!0x0)},T={'id':_0x47262e(0x109),'type':_0x56cb03[_0x47262e(0x131)],'handler':(_0x1c7334,_0x344aa0)=>!(_0x344aa0!=null&&_0x344aa0[_0x47262e(0x136)])||!_0x344aa0[_0x47262e(0xb1)]?!0x1:(_0x1c7334['get'](w)['removeCode'](_0x344aa0[_0x47262e(0x136)],_0x344aa0['blockId']),!0x0)},Ee=_0x47262e(0xba);var E=class extends Error{constructor(_0x5ebdcc=_0x47262e(0xd7)){super(_0x5ebdcc);}};function De(_0x3bf6d5){const _0x379c6f=_0x47262e;var _0xabfdfe;let _0x5c9390=O(_0x3bf6d5['documentData']),_0x2a16de=A(_0x5c9390),_0xe6b726=ke(_0x3bf6d5['startOffset'],_0x3bf6d5[_0x379c6f(0xe1)]),_0x30f1d4=_0xe6b726?(_0xabfdfe=_0x2a16de['blockRanges'])==null?void 0x0:_0xabfdfe['find'](_0x53f219=>{const _0x537923=_0x379c6f;let _0x430a3c=_0x13b73c(_0x53f219);return _0x430a3c[_0x537923(0xe7)]===_0xe6b726[_0x537923(0xe7)]&&_0x430a3c['endOffset']===_0xe6b726['endOffset'];}):void 0x0,{startOffset:_0x7fc4d0,endOffset:_0x3f886f}=_0x30f1d4?_0xe6b726:We(_0x2a16de,_0x3bf6d5[_0x379c6f(0xe7)],_0x3bf6d5[_0x379c6f(0xe1)],_0x3bf6d5[_0x379c6f(0xc4)]);if(!_0x30f1d4&&Ae(_0x2a16de,_0x7fc4d0,_0x3f886f))throw new E(_0x379c6f(0x11a));let _0x33c25a=qe(_0x2a16de,_0x7fc4d0,_0x3f886f),_0x98b365=(_0x30f1d4==null?void 0x0:_0x30f1d4[_0x379c6f(0xb1)])??_0x3bf6d5[_0x379c6f(0xb1)],_0x3f3610=b(_0x3bf6d5['metadata'],_0x98b365,{...Se,..._0x3bf6d5[_0x379c6f(0xf8)]});if(_0x30f1d4)return _0x30f1d4[_0x379c6f(0x107)]=_0x5e660a[_0x379c6f(0x113)],Oe(_0x2a16de,_0x7fc4d0,_0x3f886f),ze(_0x2a16de,_0x7fc4d0,_0x3f886f,_0x33c25a),N(_0x2a16de,_0x30f1d4),{'nextDocumentData':_0x5c9390,'nextMetadata':_0x3f3610,'cursorOffset':_0x7fc4d0+0x1};if(_0x7fc4d0===_0x3f886f){var _0x4f4dc7,_0x14ce34;let _0x4d8275=''+_0x4e2eb9[_0x379c6f(0xd9)]+_0x4e2eb9[_0x379c6f(0xf3)]+_0x4e2eb9[_0x379c6f(0xd8)];P(_0x2a16de,_0x7fc4d0,_0x4d8275,{'paragraphs':[{'startIndex':0x1,'paragraphId':_0x4e2158(new Set((_0x4f4dc7=_0x2a16de[_0x379c6f(0xa8)])==null?void 0x0:_0x4f4dc7['map'](_0x514e03=>_0x514e03[_0x379c6f(0xd5)]))),'paragraphStyle':Re(!0x0,!0x0,_0x33c25a)}],'blockRanges':[{'blockId':_0x98b365,'blockType':_0x5e660a[_0x379c6f(0x113)],'startIndex':0x0,'endIndex':_0x4d8275['length']-0x1}]});let _0x1269be=(_0x14ce34=_0x2a16de[_0x379c6f(0x13e)])==null?void 0x0:_0x14ce34[_0x379c6f(0x124)](_0x58f73f=>_0x58f73f[_0x379c6f(0xb1)]===_0x98b365);return _0x1269be&&N(_0x2a16de,_0x1269be),{'nextDocumentData':_0x5c9390,'nextMetadata':_0x3f3610,'cursorOffset':_0x7fc4d0+0x1};}P(_0x2a16de,_0x3f886f,_0x4e2eb9[_0x379c6f(0xd8)]),P(_0x2a16de,_0x7fc4d0,_0x4e2eb9[_0x379c6f(0xd9)]),ze(_0x2a16de,_0x7fc4d0,_0x3f886f+0x1,_0x33c25a);let _0x540b7a={'blockId':_0x98b365,'blockType':_0x5e660a[_0x379c6f(0x113)],'startIndex':_0x7fc4d0,'endIndex':_0x3f886f+0x1};return _0x2a16de['blockRanges']=[..._0x2a16de[_0x379c6f(0x13e)]??[],_0x540b7a]['sort']((_0x1f7eb3,_0x5a5f81)=>_0x1f7eb3[_0x379c6f(0x108)]-_0x5a5f81[_0x379c6f(0x108)]),N(_0x2a16de,_0x540b7a),{'nextDocumentData':_0x5c9390,'nextMetadata':_0x3f3610,'cursorOffset':_0x7fc4d0+0x1};}function Oe(_0x30deb0,_0x2e0320,_0x3a55d6){const _0x3fcd78=_0x47262e;(_0x30deb0['paragraphs']??[])[_0x3fcd78(0x112)](_0x18a442=>_0x18a442[_0x3fcd78(0x108)]>_0x2e0320&&_0x18a442[_0x3fcd78(0x108)]<_0x3a55d6)[_0x3fcd78(0x138)](_0x53de5f=>{const _0x568120=_0x3fcd78;let _0x544edc={..._0x53de5f['paragraphStyle']??{}};delete _0x544edc[_0x568120(0xf4)],delete _0x544edc[_0x568120(0xf5)],_0x53de5f[_0x568120(0x14a)]=_0x544edc;});}function ke(_0x158462,_0x3f9328){const _0x9df4c=_0x47262e;return _0x158462==null||_0x3f9328==null||_0x158462===_0x3f9328?null:{'startOffset':Math['min'](_0x158462,_0x3f9328),'endOffset':Math[_0x9df4c(0x140)](_0x158462,_0x3f9328)};}function Ae(_0x229926,_0x3ee356,_0x20cf6a){const _0x1e0604=_0x47262e;return(_0x229926[_0x1e0604(0x13e)]??[])[_0x1e0604(0xaf)](_0x56eb56=>{let _0x539e1e=_0x13b73c(_0x56eb56);return _0x3ee356===_0x20cf6a?_0xa244f6(_0x539e1e,_0x3ee356):_0xaf64f7(_0x539e1e,{'startOffset':_0x3ee356,'endOffset':_0x20cf6a});});}function je(_0x2b6bd2){const _0x2b5404=_0x47262e;return{'nextDocumentData':O(_0x2b6bd2[_0x2b5404(0xa5)]),'nextMetadata':b(_0x2b6bd2[_0x2b5404(0xee)],_0x2b6bd2[_0x2b5404(0xb1)],_0x2b6bd2[_0x2b5404(0xf8)]),'cursorOffset':0x0};}function D(_0x4e4e8d){const _0x4f5fe8=_0x47262e;let _0x45a44f=O(_0x4e4e8d[_0x4f5fe8(0xa5)]),_0x485101=A(_0x45a44f),_0x2e9cb6=Fe(_0x485101,_0x4e4e8d['blockId']);if(!_0x2e9cb6)return null;let _0x5c5417=He(_0x485101,_0x2e9cb6);return{'nextDocumentData':_0x45a44f,'nextMetadata':x(_0x4e4e8d[_0x4f5fe8(0xee)],_0x4e4e8d['blockId']),'cursorOffset':_0x5c5417};}function Me(_0x5bd67a){const _0x2c8f4c=_0x47262e;var _0x75e3c4;let _0x12a5f6=O(_0x5bd67a[_0x2c8f4c(0xa5)]),_0x5cdb7d=A(_0x12a5f6),_0x11e0a2=Fe(_0x5cdb7d,_0x5bd67a[_0x2c8f4c(0xb1)]);if(!_0x11e0a2)return null;let _0x50cca8=_0x13b73c(_0x11e0a2);return F(_0x5cdb7d,_0x50cca8[_0x2c8f4c(0xe7)],_0x50cca8[_0x2c8f4c(0xe1)]),_0x5cdb7d[_0x2c8f4c(0x13e)]=(_0x75e3c4=_0x5cdb7d[_0x2c8f4c(0x13e)])==null?void 0x0:_0x75e3c4[_0x2c8f4c(0x112)](_0x53e3b1=>_0x53e3b1['blockId']!==_0x5bd67a[_0x2c8f4c(0xb1)]),{'nextDocumentData':_0x12a5f6,'nextMetadata':x(_0x5bd67a['metadata'],_0x5bd67a[_0x2c8f4c(0xb1)]),'cursorOffset':_0x11e0a2[_0x2c8f4c(0x108)]};}function Ne(_0x4c7542){const _0x49139a=_0x47262e;let _0x390cf4=O(_0x4c7542[_0x49139a(0xa5)]),_0x4c64a4=A(_0x390cf4),_0x1f94f3=Le(_0x4c64a4,_0x4c7542[_0x49139a(0x126)]);return _0x1f94f3&&Pe(_0x390cf4,_0x4c64a4,_0x1f94f3,_0x4c7542['cursorOffset'],_0x4c7542['paragraphStartIndex'])||null;}function Pe(_0x53243f,_0x43ca75,_0x2ae445,_0x47c42f,_0xf8b813){const _0x571978=_0x47262e;let _0x2d60ad=$e(_0x43ca75,_0x2ae445,_0x47c42f,_0xf8b813);if(!_0x2d60ad)return null;let _0x31b531=_0x2d60ad[_0x571978(0x128)]-0x1;return F(_0x43ca75,_0x2d60ad[_0x571978(0x120)][_0x571978(0x108)],_0x2d60ad[_0x571978(0x120)][_0x571978(0x108)]+0x1),{'nextDocumentData':_0x53243f,'cursorOffset':_0x31b531};}function Fe(_0x493169,_0x54cdce){const _0x253d89=_0x47262e;var _0x4f7d67;return _0x493169==null||(_0x4f7d67=_0x493169[_0x253d89(0x13e)])==null?void 0x0:_0x4f7d67['find'](_0x35c05b=>_0x35c05b[_0x253d89(0x107)]===_0x5e660a[_0x253d89(0x113)]&&_0x35c05b[_0x253d89(0xb1)]===_0x54cdce);}function Ie(_0x8ef6fe){const _0x309300=_0x47262e;let _0x56915c=_0x8ef6fe[_0x309300(0xa5)][_0x309300(0xa7)];if(!_0x56915c)return!0x1;let _0x12eaa0=_0x8ef6fe[_0x309300(0xb5)]===_0x309300(0xef)?_0x8ef6fe[_0x309300(0x126)]-0x1:_0x8ef6fe[_0x309300(0x126)],_0x1b4de5=_0x8ef6fe[_0x309300(0xb5)]===_0x309300(0xd6)?_0x8ef6fe[_0x309300(0x126)]+0x1:_0x12eaa0;return(_0x56915c[_0x309300(0x13e)]??[])[_0x309300(0xaf)](_0x14967c=>_0x14967c[_0x309300(0x107)]===_0x5e660a[_0x309300(0x113)]?_0x12eaa0===_0x14967c[_0x309300(0x108)]||_0x12eaa0===_0x14967c['endIndex']||_0x1b4de5===_0x14967c['startIndex']||_0x1b4de5===_0x14967c['endIndex']:!0x1);}function Le(_0x584f31,_0x28a6ad){const _0x28ce1a=_0x47262e;var _0x3a8a84;return(_0x3a8a84=_0x584f31[_0x28ce1a(0x13e)])==null?void 0x0:_0x3a8a84['find'](_0x14f07c=>{const _0x2700c4=_0x28ce1a;let _0x275f21=M(_0x14f07c);return _0x14f07c[_0x2700c4(0x107)]===_0x5e660a[_0x2700c4(0x113)]&&_0x14f07c['startIndex']<=_0x28a6ad&&_0x28a6ad<=_0x275f21+0x2;});}function Re(_0x5b2eba,_0x2143dc,_0x29729b=!0x1){const _0x46a91b=_0x47262e;return{'indentEnd':{'v':0x14},'indentStart':{'v':0x14},'keepLines':_0x305636[_0x46a91b(0xb9)],'keepNext':_0x2143dc?_0x305636[_0x46a91b(0x10d)]:_0x305636[_0x46a91b(0xb9)],'widowControl':_0x305636[_0x46a91b(0xb9)],..._0x5b2eba&&_0x29729b?{'spaceAbove':{'v':0x8}}:{},'textStyle':{'ff':Ee,'fs':0xc}};}function ze(_0x357c1d,_0x12cbd9,_0x58f251,_0x4070de=!0x1){const _0x291c04=_0x47262e;let _0x27e209=(_0x357c1d[_0x291c04(0xa8)]??[])[_0x291c04(0x112)](_0x246028=>_0x246028[_0x291c04(0x108)]>_0x12cbd9&&_0x246028[_0x291c04(0x108)]<_0x58f251);_0x27e209[_0x291c04(0x138)]((_0xabd74,_0x20aa41)=>{const _0x3abca3=_0x291c04;_0xabd74['paragraphStyle']={..._0xabd74[_0x3abca3(0x14a)]??{},...Re(_0x20aa41===0x0,_0x20aa41===_0x27e209[_0x3abca3(0xcb)]-0x1,_0x4070de)};});}function Be(_0x22aedc){const _0x2cf7ae=_0x47262e;var _0x591490,_0x205438;let _0x4406ff={..._0x22aedc??{}};return delete _0x4406ff[_0x2cf7ae(0x102)],delete _0x4406ff[_0x2cf7ae(0x142)],delete _0x4406ff[_0x2cf7ae(0xf4)],delete _0x4406ff[_0x2cf7ae(0xf5)],delete _0x4406ff[_0x2cf7ae(0x11c)],delete _0x4406ff[_0x2cf7ae(0xed)],delete _0x4406ff['widowControl'],((_0x591490=_0x4406ff[_0x2cf7ae(0xcf)])==null?void 0x0:_0x591490['ff'])===Ee&&((_0x205438=_0x4406ff['textStyle'])==null?void 0x0:_0x205438['fs'])===0xc&&delete _0x4406ff[_0x2cf7ae(0xcf)],_0x4406ff;}function Ve(_0x5e93f2,_0x3495c5){const _0x26eafe=_0x47262e;let _0x47c684=M(_0x3495c5);return(_0x5e93f2[_0x26eafe(0xa8)]??[])[_0x26eafe(0x112)](_0x259742=>_0x259742[_0x26eafe(0x108)]>_0x3495c5[_0x26eafe(0x108)]&&_0x259742[_0x26eafe(0x108)]<_0x47c684);}function He(_0x1ba698,_0xa9a9a0){const _0x401b16=_0x47262e;var _0x11d6eb;let _0x5b6ef2=M(_0xa9a9a0);return Ve(_0x1ba698,_0xa9a9a0)['forEach'](_0x3a423f=>{const _0x25a1de=_0x4005;_0x3a423f[_0x25a1de(0x14a)]=Be(_0x3a423f[_0x25a1de(0x14a)]);}),F(_0x1ba698,_0x5b6ef2,_0x5b6ef2+0x1),F(_0x1ba698,_0xa9a9a0['startIndex'],_0xa9a9a0[_0x401b16(0x108)]+0x1),_0x1ba698[_0x401b16(0x13e)]=(_0x11d6eb=_0x1ba698[_0x401b16(0x13e)])==null?void 0x0:_0x11d6eb['filter'](_0x4921c2=>_0x4921c2['blockId']!==_0xa9a9a0[_0x401b16(0xb1)]),_0xa9a9a0[_0x401b16(0x108)];}function O(_0xb676eb){const _0xc33668=_0x47262e;return{..._0xb676eb,'body':_0xb676eb[_0xc33668(0xa7)]?Ue(_0xb676eb[_0xc33668(0xa7)]):_0xb676eb['body']};}function Ue(_0x553898){const _0x4fac51=_0x47262e;var _0x485758,_0x33dded,_0x5c7e47,_0x5c4098,_0x280d13,_0x428dc2,_0x1d4b36,_0x38aaa9,_0x1bec98;return{..._0x553898,'paragraphs':(_0x485758=_0x553898[_0x4fac51(0xa8)])==null?void 0x0:_0x485758['map'](_0x2525ba=>({..._0x2525ba,'bullet':k(_0x2525ba[_0x4fac51(0x135)]),'paragraphStyle':k(_0x2525ba[_0x4fac51(0x14a)])})),'sectionBreaks':(_0x33dded=_0x553898[_0x4fac51(0xc8)])==null?void 0x0:_0x33dded[_0x4fac51(0xb2)](_0x2d60e8=>({..._0x2d60e8})),'textRuns':(_0x5c7e47=_0x553898[_0x4fac51(0x13f)])==null?void 0x0:_0x5c7e47['map'](_0x1e51ab=>({..._0x1e51ab})),'tables':(_0x5c4098=_0x553898[_0x4fac51(0xdb)])==null?void 0x0:_0x5c4098[_0x4fac51(0xb2)](_0x2bb0a5=>({..._0x2bb0a5})),'columnGroups':(_0x280d13=_0x553898['columnGroups'])==null?void 0x0:_0x280d13[_0x4fac51(0xb2)](_0x41f704=>{const _0xe80414=_0x4fac51;var _0x1487c8;return{..._0x41f704,'columns':(_0x1487c8=_0x41f704[_0xe80414(0x11d)])==null?void 0x0:_0x1487c8[_0xe80414(0xb2)](_0x2a5db3=>k(_0x2a5db3))};}),'blockRanges':(_0x428dc2=_0x553898[_0x4fac51(0x13e)])==null?void 0x0:_0x428dc2[_0x4fac51(0xb2)](_0x41c4a4=>({..._0x41c4a4})),'customRanges':(_0x1d4b36=_0x553898['customRanges'])==null?void 0x0:_0x1d4b36[_0x4fac51(0xb2)](_0x446350=>({..._0x446350})),'customDecorations':(_0x38aaa9=_0x553898[_0x4fac51(0x141)])==null?void 0x0:_0x38aaa9[_0x4fac51(0xb2)](_0x2f2266=>({..._0x2f2266})),'customBlocks':(_0x1bec98=_0x553898[_0x4fac51(0x12e)])==null?void 0x0:_0x1bec98[_0x4fac51(0xb2)](_0x2986e8=>({..._0x2986e8}))};}function k(_0x8b792e){const _0x1fa3de=_0x47262e;return Array[_0x1fa3de(0xe0)](_0x8b792e)?_0x8b792e[_0x1fa3de(0xb2)](_0x460a77=>k(_0x460a77)):!_0x8b792e||typeof _0x8b792e!='object'?_0x8b792e:Object[_0x1fa3de(0xe6)](Object[_0x1fa3de(0xbd)](_0x8b792e)['map'](([_0x5a5c9f,_0x5329dd])=>[_0x5a5c9f,k(_0x5329dd)]));}function A(_0x40132d){const _0x2c0b68=_0x47262e;if(!_0x40132d[_0x2c0b68(0xa7)])throw Error(_0x2c0b68(0xf9));return _0x40132d[_0x2c0b68(0xa7)];}function _0x305b(){const _0x4df336=['828808wQwmbj','editOp','FALSE','every','_docsCodeModel','reduce','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','filter','CODE','endIndex','object','version','502652rCojPO','toPrimitive','getInstance','Insert\x20range\x20cannot\x20overlap\x20an\x20existing\x20document\x20block','dataStream','keepLines','columns','getSnapshot','complete','paragraph','registerCommand','_resourceManagerService','getCurrentUnitOfType','find','replaceDocRanges','cursorOffset','columnGroups','endTokenOffset','string','push','onStarting','slice','docs-code.command.cancel-empty-paragraph','customBlocks','deserialize','codes','MUTATION','_injector','constructor','SECTION_BREAK','bullet','unitId','commandService','forEach','370FZirck','removeUnit','min','stringify','function','blockRanges','textRuns','max','customDecorations','indentStart','serialize','getUnit','11754lEWgYT','278208wxbUAr','getOwnPropertyDescriptor','docs-code.command.consume-boundary-delete','next','paragraphStyle','documentData','disposeWithMe','body','paragraphs','defineProperty','getCodeConfig','setCodeConfig','COMMAND','insertOp','520758obMFiW','some','packageName','blockId','map','from','setConfig','direction','DOC_CODE_PLUGIN','removeOp','call','TRUE','monospace','docs-code.command.remove','UNIVER_DOC','entries','handler','endsWith','nextDocumentData','start','asObservable','retain','insertionMode','_initResource','getUnitId','TABLE_CELL_END','sectionBreaks','previousDocumentData','range','length','change$','351869nbecNb','pluginName','textStyle','customRanges','syncExecuteCommand','paragraphStartIndex','docs-code.command.insert','insertLength','paragraphId','right','Insert\x20range\x20cannot\x20cross\x20table\x20cell\x20boundaries','BLOCK_END','BLOCK_START','symbol','tables','TABLE_CELL_START','_configService','docs-code.command.update','deleteLength','isArray','endOffset','set','delete','dispose','getBody','fromEntries','startOffset','parse','nextMetadata','docs-code.mutation.set-config','insert','getTextRanges','keepNext','metadata','left','_config','indexOf','_resources','PARAGRAPH','spaceAbove','spaceBelow','1.0.3','removeCode','config','Document\x20body\x20is\x20required','startTokenOffset','sort','insert-new','get','@univerjs-pro/docs-code','selectionManager','model','_change$','indentEnd','decorate','registerPluginResource','add','keys','blockType','startIndex','docs-code.mutation.remove-config','154224RvZXBi'];_0x305b=function(){return _0x4df336;};return _0x305b();}function We(_0x2f35c7,_0x5685d0,_0x3a1076,_0x8995c5='convert-paragraph'){const _0x563f43=_0x47262e;if(_0x5685d0==null||_0x3a1076==null){let _0x305c52=Ke(_0x2f35c7);return{'startOffset':_0x305c52,'endOffset':_0x305c52};}let _0xe09a70=Math[_0x563f43(0x13b)](_0x5685d0,_0x3a1076),_0x30a176=Math['max'](_0x5685d0,_0x3a1076),_0x13828c=Ze(_0x2f35c7,_0xe09a70,_0x30a176);return _0xe09a70===_0x30a176?_0x8995c5===_0x563f43(0xfc)?{'startOffset':_0xe09a70,'endOffset':_0x30a176}:Ge(_0x2f35c7,_0xe09a70,_0x13828c):Je(_0x2f35c7,_0xe09a70,_0x30a176,_0x13828c);}function Ge(_0x3aac02,_0x58918c,_0x3e373d){const _0x453504=_0x47262e;let _0x418cf8=Ye(_0x3aac02,_0x58918c);if(_0x418cf8){let _0x4f077c=j(_0x3aac02,_0x418cf8,_0x3e373d);if(_0x4f077c<_0x418cf8[_0x453504(0x108)])return{'startOffset':_0x4f077c,'endOffset':_0x3e373d?Math[_0x453504(0x13b)](_0x418cf8[_0x453504(0x108)]+0x1,_0x3e373d[_0x453504(0xe1)]):_0x418cf8['startIndex']+0x1};}let _0x159ac1=_0x58918c===0x0&&_0x3aac02[_0x453504(0x11b)][0x0]===_0x4e2eb9['PARAGRAPH']?0x1:_0x58918c;return{'startOffset':_0x159ac1,'endOffset':_0x159ac1};}function Ke(_0x5994d4){const _0x4ac359=_0x47262e;return _0x5994d4[_0x4ac359(0x11b)][_0x4ac359(0xbf)](_0x4e2eb9[_0x4ac359(0x134)])?Math['max'](0x0,_0x5994d4[_0x4ac359(0x11b)][_0x4ac359(0xcb)]-0x1):_0x5994d4[_0x4ac359(0x11b)][_0x4ac359(0xcb)];}function qe(_0x134211,_0x79d171,_0x4234a5){const _0x5dbe9c=_0x47262e;var _0x38cc19;let _0x34f406=Math[_0x5dbe9c(0x13b)](_0x79d171,_0x4234a5),_0x141f8f=Math['max'](_0x79d171,_0x4234a5);return!!((_0x38cc19=_0x134211['tables'])!=null&&_0x38cc19[_0x5dbe9c(0xaf)](_0x3bd783=>_0x34f406>_0x3bd783[_0x5dbe9c(0x108)]&&_0x34f406<_0x3bd783[_0x5dbe9c(0x114)]||_0x141f8f>_0x3bd783['startIndex']&&_0x141f8f<_0x3bd783[_0x5dbe9c(0x114)]||_0x34f406<=_0x3bd783[_0x5dbe9c(0x108)]&&_0x141f8f>=_0x3bd783[_0x5dbe9c(0x114)]));}function Je(_0x268327,_0x4a239c,_0x3f9997,_0x1a5e82){const _0x5b085d=_0x47262e;let _0x3f12f6=[..._0x268327['paragraphs']??[]][_0x5b085d(0xfb)]((_0x49030b,_0x37699c)=>_0x49030b['startIndex']-_0x37699c[_0x5b085d(0x108)]),_0x424d38=_0x412152(_0x268327),_0x339bbf=_0x3f12f6[_0x5b085d(0x124)](_0x41b8db=>j(_0x268327,_0x41b8db,_0x1a5e82,_0x424d38)<=_0x4a239c&&_0x4a239c<=_0x41b8db[_0x5b085d(0x108)]),_0x1f4192=_0x3f12f6[_0x5b085d(0x124)](_0x56bc8=>_0x56bc8['startIndex']>=_0x3f9997-0x1)??_0x3f12f6[_0x3f12f6[_0x5b085d(0xcb)]-0x1];return{'startOffset':_0x339bbf?j(_0x268327,_0x339bbf,_0x1a5e82,_0x424d38):_0x4a239c,'endOffset':_0x1f4192?Xe(_0x1f4192,_0x1a5e82):_0x3f9997};}function Ye(_0x5ba20f,_0x4655f3){const _0x5419cf=_0x47262e;let _0x126abd=[..._0x5ba20f[_0x5419cf(0xa8)]??[]][_0x5419cf(0xfb)]((_0x5b3002,_0xdb3da7)=>_0x5b3002[_0x5419cf(0x108)]-_0xdb3da7[_0x5419cf(0x108)]),_0x2c37f6=_0x412152(_0x5ba20f);return _0x126abd[_0x5419cf(0x124)](_0x4651bb=>(_0x2c37f6[_0x5419cf(0xfd)](_0x4651bb[_0x5419cf(0x108)])??0x0)<=_0x4655f3&&_0x4655f3<=_0x4651bb[_0x5419cf(0x108)]);}function j(_0x191e56,_0x3e08d4,_0x3c6e89,_0x35b663){const _0x46c23f=_0x47262e;let _0x4bb2ec=(_0x35b663==null?void 0x0:_0x35b663['get'](_0x3e08d4[_0x46c23f(0x108)]))??_0x420e80(_0x191e56,_0x3e08d4);return _0x3c6e89?Math[_0x46c23f(0x140)](_0x4bb2ec,_0x3c6e89['startOffset']):_0x4bb2ec;}function Xe(_0x27193f,_0x3cdd01){const _0xe16e96=_0x47262e;let _0x530fed=_0x27193f[_0xe16e96(0x108)]+0x1;return _0x3cdd01?Math[_0xe16e96(0x13b)](_0x530fed,_0x3cdd01['endOffset']):_0x530fed;}function Ze(_0x386d4a,_0x2f3387,_0x244643){const _0x268ad7=_0x47262e;let _0x5ddc8e=Qe(_0x386d4a,_0x2f3387),_0x3dc1c7=Qe(_0x386d4a,_0x2f3387===_0x244643?_0x244643:Math[_0x268ad7(0x140)](_0x2f3387,_0x244643-0x1));if(_0x5ddc8e||_0x3dc1c7){if(!_0x5ddc8e||!_0x3dc1c7||_0x5ddc8e[_0x268ad7(0xfa)]!==_0x3dc1c7['startTokenOffset']||_0x5ddc8e[_0x268ad7(0x128)]!==_0x3dc1c7[_0x268ad7(0x128)])throw new E();return _0x5ddc8e;}}function Qe(_0x183fbb,_0x8d8dd6){const _0x4866cf=_0x47262e;let _0x2b2733=_0x183fbb[_0x4866cf(0x11b)],_0x59dcd5=-0x1;for(let _0x2b841d=Math[_0x4866cf(0x13b)](_0x8d8dd6,_0x2b2733[_0x4866cf(0xcb)]-0x1);_0x2b841d>=0x0;_0x2b841d--){let _0x45ef38=_0x2b2733[_0x2b841d];if(_0x45ef38===_0x4e2eb9['TABLE_CELL_END'])return;if(_0x45ef38===_0x4e2eb9[_0x4866cf(0xdc)]){_0x59dcd5=_0x2b841d;break;}}if(_0x59dcd5<0x0)return;let _0x584920=_0x2b2733[_0x4866cf(0xf1)](_0x4e2eb9[_0x4866cf(0xc7)],_0x59dcd5+0x1);if(!(_0x584920<0x0||_0x8d8dd6<_0x59dcd5+0x1||_0x8d8dd6>_0x584920-0x1))return{'startOffset':_0x59dcd5+0x1,'endOffset':Math[_0x4866cf(0x140)](_0x59dcd5+0x1,_0x584920-0x1),'startTokenOffset':_0x59dcd5,'endTokenOffset':_0x584920};}function M(_0x5d3bd4){return _0x13b73c(_0x5d3bd4)['endOffset']-0x1;}function $e(_0x4a1ca4,_0x499791,_0x2c7e67,_0x4df8d9){const _0x4f3036=_0x47262e;let _0x3a2602=M(_0x499791),_0x3ea20c=(_0x4a1ca4[_0x4f3036(0xa8)]??[])[_0x4f3036(0x124)](_0x3d3b2c=>_0x3d3b2c[_0x4f3036(0x108)]===_0x3a2602+0x1);if(!_0x3ea20c||_0x4df8d9!=null&&_0x3ea20c[_0x4f3036(0x108)]!==_0x4df8d9||_0x2c7e67!=null&&(_0x2c7e67<_0x3a2602||_0x2c7e67>_0x3ea20c[_0x4f3036(0x108)]+0x1)||_0x4a1ca4[_0x4f3036(0x11b)][_0x3ea20c[_0x4f3036(0x108)]]!==_0x4e2eb9[_0x4f3036(0xf3)])return null;let _0xa892d9=_0x420e80(_0x4a1ca4,_0x3ea20c),_0x49f7fb=_0x4a1ca4[_0x4f3036(0x11b)][_0x4f3036(0x12c)](_0xa892d9,_0x3ea20c[_0x4f3036(0x108)]);return Array[_0x4f3036(0xb3)](_0x49f7fb)[_0x4f3036(0x10e)](_0x39ff90=>_0x39ff90===_0x4e2eb9[_0x4f3036(0xd8)])?{'paragraph':_0x3ea20c,'endTokenOffset':_0x3a2602}:null;}function N(_0x501601,_0x35e791){const _0xd927eb=_0x47262e;var _0x550b0f;let _0x524252=M(_0x35e791),_0x53a94c=_0x501601['dataStream'][_0x524252+0x1];(_0x53a94c===_0x4e2eb9[_0xd927eb(0x134)]||_0x53a94c===void 0x0)&&P(_0x501601,_0x524252+0x1,_0x4e2eb9['PARAGRAPH'],{'paragraphs':[{'startIndex':0x0,'paragraphId':_0x4e2158(new Set((_0x550b0f=_0x501601[_0xd927eb(0xa8)])==null?void 0x0:_0x550b0f[_0xd927eb(0xb2)](_0x14f923=>_0x14f923[_0xd927eb(0xd5)])))}]});}function P(_0xf543da,_0x13e78b,_0x188b5d,_0x579bbc={}){const _0x1b7549=_0x47262e;var _0x1817c5,_0x291b29;_0x188b5d&&(_0xf543da[_0x1b7549(0x11b)]=''+_0xf543da[_0x1b7549(0x11b)]['slice'](0x0,_0x13e78b)+_0x188b5d+_0xf543da[_0x1b7549(0x11b)][_0x1b7549(0x12c)](_0x13e78b),et(_0xf543da,_0x13e78b,_0x188b5d[_0x1b7549(0xcb)]),(_0x1817c5=_0x579bbc[_0x1b7549(0xa8)])!=null&&_0x1817c5[_0x1b7549(0xcb)]&&(_0xf543da[_0x1b7549(0xa8)]=[..._0xf543da['paragraphs']??[],..._0x579bbc[_0x1b7549(0xa8)][_0x1b7549(0xb2)](_0x26a5f3=>({..._0x26a5f3,'startIndex':_0x26a5f3[_0x1b7549(0x108)]+_0x13e78b}))][_0x1b7549(0xfb)]((_0x1108ff,_0x5672e8)=>_0x1108ff[_0x1b7549(0x108)]-_0x5672e8[_0x1b7549(0x108)])),(_0x291b29=_0x579bbc['blockRanges'])!=null&&_0x291b29[_0x1b7549(0xcb)]&&(_0xf543da[_0x1b7549(0x13e)]=[..._0xf543da[_0x1b7549(0x13e)]??[],..._0x579bbc[_0x1b7549(0x13e)][_0x1b7549(0xb2)](_0x33d64f=>({..._0x33d64f,'startIndex':_0x33d64f[_0x1b7549(0x108)]+_0x13e78b,'endIndex':_0x33d64f[_0x1b7549(0x114)]+_0x13e78b}))][_0x1b7549(0xfb)]((_0x498e79,_0x16daec)=>_0x498e79['startIndex']-_0x16daec[_0x1b7549(0x108)])));}function F(_0xcdbbe9,_0x2c3263,_0x2fdf80){const _0x37f594=_0x47262e;let _0x5bb469=_0x2fdf80-_0x2c3263;_0xcdbbe9[_0x37f594(0x11b)]=''+_0xcdbbe9[_0x37f594(0x11b)][_0x37f594(0x12c)](0x0,_0x2c3263)+_0xcdbbe9[_0x37f594(0x11b)][_0x37f594(0x12c)](_0x2fdf80),tt(_0xcdbbe9,_0x2c3263,_0x5bb469);}function et(_0x482ff5,_0x50a13d,_0x2c4148){const _0x4c40d9=_0x47262e;_0x482ff5[_0x4c40d9(0xa8)]=I(_0x482ff5[_0x4c40d9(0xa8)],_0x50a13d,_0x2c4148),_0x482ff5[_0x4c40d9(0xc8)]=I(_0x482ff5[_0x4c40d9(0xc8)],_0x50a13d,_0x2c4148),_0x482ff5[_0x4c40d9(0x12e)]=I(_0x482ff5[_0x4c40d9(0x12e)],_0x50a13d,_0x2c4148),_0x482ff5[_0x4c40d9(0x13f)]=nt(_0x482ff5[_0x4c40d9(0x13f)],_0x50a13d,_0x2c4148),_0x482ff5[_0x4c40d9(0xdb)]=rt(_0x482ff5[_0x4c40d9(0xdb)],_0x50a13d,_0x2c4148),_0x482ff5['columnGroups']=R(_0x482ff5[_0x4c40d9(0x127)],_0x50a13d,_0x2c4148),_0x482ff5[_0x4c40d9(0xd0)]=R(_0x482ff5[_0x4c40d9(0xd0)],_0x50a13d,_0x2c4148),_0x482ff5[_0x4c40d9(0x141)]=R(_0x482ff5['customDecorations'],_0x50a13d,_0x2c4148),_0x482ff5[_0x4c40d9(0x13e)]=R(_0x482ff5[_0x4c40d9(0x13e)],_0x50a13d,_0x2c4148);}function tt(_0x26c348,_0x5d7fab,_0x8b1c19){const _0x31768f=_0x47262e;var _0xce4ec7,_0x470158;_0x26c348[_0x31768f(0xa8)]=L(_0x26c348[_0x31768f(0xa8)],_0x5d7fab,_0x8b1c19),_0x26c348[_0x31768f(0xc8)]=L(_0x26c348['sectionBreaks'],_0x5d7fab,_0x8b1c19),_0x26c348[_0x31768f(0x12e)]=L(_0x26c348[_0x31768f(0x12e)],_0x5d7fab,_0x8b1c19),_0x26c348[_0x31768f(0x13f)]=(_0xce4ec7=it((_0x470158=_0x26c348[_0x31768f(0x13f)])==null?void 0x0:_0x470158[_0x31768f(0xb2)](_0x11ae97=>({..._0x11ae97,'startIndex':_0x11ae97['st'],'endIndex':_0x11ae97['ed']})),_0x5d7fab,_0x8b1c19))==null?void 0x0:_0xce4ec7[_0x31768f(0xb2)](_0x17d9c7=>{let {startIndex:_0x4e9338,endIndex:_0xd4d691,..._0x32f5c4}=_0x17d9c7;return{..._0x32f5c4,'st':_0x4e9338,'ed':_0xd4d691};}),_0x26c348[_0x31768f(0xdb)]=it(_0x26c348[_0x31768f(0xdb)],_0x5d7fab,_0x8b1c19),_0x26c348[_0x31768f(0x127)]=z(_0x26c348[_0x31768f(0x127)],_0x5d7fab,_0x8b1c19),_0x26c348[_0x31768f(0xd0)]=z(_0x26c348[_0x31768f(0xd0)],_0x5d7fab,_0x8b1c19),_0x26c348['customDecorations']=z(_0x26c348[_0x31768f(0x141)],_0x5d7fab,_0x8b1c19),_0x26c348[_0x31768f(0x13e)]=z(_0x26c348[_0x31768f(0x13e)],_0x5d7fab,_0x8b1c19);}function I(_0x1767ba,_0x2059c7,_0x58ada6){const _0x596a1f=_0x47262e;return _0x1767ba==null?void 0x0:_0x1767ba[_0x596a1f(0xb2)](_0xe1c518=>_0xe1c518[_0x596a1f(0x108)]>=_0x2059c7?{..._0xe1c518,'startIndex':_0xe1c518[_0x596a1f(0x108)]+_0x58ada6}:_0xe1c518);}function L(_0x5c56bf,_0x2b8fce,_0x332aff){const _0xda086d=_0x47262e;let _0x862433=_0x2b8fce+_0x332aff;return _0x5c56bf==null?void 0x0:_0x5c56bf[_0xda086d(0xb2)](_0x5b6891=>_0x5b6891[_0xda086d(0x108)]>=_0x2b8fce&&_0x5b6891[_0xda086d(0x108)]<_0x862433?null:_0x5b6891[_0xda086d(0x108)]>=_0x862433?{..._0x5b6891,'startIndex':_0x5b6891['startIndex']-_0x332aff}:_0x5b6891)['filter'](_0x427e4b=>_0x427e4b!=null);}function nt(_0x1ee832,_0x18b6c4,_0x3c2943){const _0x54abca=_0x47262e;return _0x1ee832==null?void 0x0:_0x1ee832[_0x54abca(0xb2)](_0x55b284=>_0x55b284['st']>=_0x18b6c4?{..._0x55b284,'st':_0x55b284['st']+_0x3c2943,'ed':_0x55b284['ed']+_0x3c2943}:_0x55b284['ed']>_0x18b6c4?{..._0x55b284,'ed':_0x55b284['ed']+_0x3c2943}:_0x55b284);}function R(_0x4673de,_0x4f755d,_0x1c15f6){const _0x46edd3=_0x47262e;return _0x4673de==null?void 0x0:_0x4673de[_0x46edd3(0xb2)](_0x31fec1=>_0x243408(_0x31fec1,_0x4f755d,_0x1c15f6));}function rt(_0x58557f,_0x4e5f9c,_0x18b67a){const _0x163836=_0x47262e;return _0x58557f==null?void 0x0:_0x58557f[_0x163836(0xb2)](_0x55c438=>_0x5cd158(_0x55c438,_0x4e5f9c,_0x18b67a));}function z(_0x2d663b,_0x300983,_0x57bcef){const _0x196e17=_0x47262e;return _0x2d663b==null?void 0x0:_0x2d663b[_0x196e17(0xb2)](_0x224ec8=>_0x2ab905(_0x224ec8,_0x300983,_0x57bcef))['filter'](_0x332a01=>_0x332a01!=null);}function it(_0x440631,_0x40125f,_0x1b160a){const _0x47f687=_0x47262e;return _0x440631==null?void 0x0:_0x440631[_0x47f687(0xb2)](_0x37b6bd=>_0x31ca35(_0x37b6bd,_0x40125f,_0x1b160a))[_0x47f687(0x112)](_0xe5b00b=>_0xe5b00b!=null);}const at={'id':'docs-code.command.insert-below','type':_0x56cb03['COMMAND'],'handler':_0x2cebf6=>{const _0x28eaf7=_0x47262e;var _0x46eb06;if(_0x288372(G(_0x2cebf6)))return!0x1;let _0x11a883=_0x50d82b(_0x2cebf6);if(_0x11a883)return _0x2cebf6[_0x28eaf7(0xfd)](_0x590f1e)[_0x28eaf7(0xd1)](B['id'],{'startOffset':_0x11a883[_0x28eaf7(0xe7)],'endOffset':_0x11a883[_0x28eaf7(0xe1)],'insertionMode':'insert-new','unitId':_0x11a883[_0x28eaf7(0x136)]});let _0x309501=ft(_0x2cebf6);if(!_0x309501)return!0x1;let _0x9973f4=(_0x46eb06=_0x2cebf6[_0x28eaf7(0xfd)](_0x3505d2)['getCurrentUnitOfType'](_0x4c80f2['UNIVER_DOC']))==null?void 0x0:_0x46eb06['getBody'](),_0x546c01=_0x9973f4?_0x5e6434(_0x9973f4,_0x309501):_0x309501[_0x28eaf7(0x108)]+0x1;return _0x2cebf6['get'](_0x590f1e)[_0x28eaf7(0xd1)](B['id'],{'startOffset':_0x546c01,'endOffset':_0x546c01});}},ot={'id':_0x47262e(0x148),'type':_0x56cb03[_0x47262e(0xac)],'handler':()=>!0x0},B={'id':_0x47262e(0xd3),'type':_0x56cb03['COMMAND'],'handler':(_0x2a41e4,_0x3a48e0)=>{const _0x6db573=_0x47262e;let _0x145a29=W(_0x2a41e4,_0x3a48e0==null?void 0x0:_0x3a48e0[_0x6db573(0x136)]);if(!_0x145a29)return!0x1;let _0x33ede7=G(_0x2a41e4);if(_0x288372(_0x33ede7))return!0x1;let _0x1e0e67=_0x145a29[_0x6db573(0x100)][_0x6db573(0x143)](_0x145a29[_0x6db573(0x136)]),_0x50d4f6=lt(_0x3a48e0,_0x33ede7),_0x2bf6fa=ut(_0x145a29[_0x6db573(0xc9)],_0x50d4f6);if(_0x2bf6fa){if(_0x2bf6fa[_0x6db573(0x107)]!==_0x5e660a[_0x6db573(0x113)])return!0x1;let _0x2df964=D({'blockId':_0x2bf6fa[_0x6db573(0xb1)],'documentData':_0x145a29[_0x6db573(0xc9)],'metadata':_0x1e0e67});if(!_0x2df964)return!0x1;let _0x4b7bd8=Y(_0x145a29[_0x6db573(0x137)],_0x145a29[_0x6db573(0xff)],_0x145a29['unitId'],_0x145a29[_0x6db573(0xc9)],_0x2df964[_0x6db573(0xc0)],B['id'],_0x2df964[_0x6db573(0x126)]);return _0x4b7bd8&&_0x2df964['nextMetadata']&&_0x145a29[_0x6db573(0x100)][_0x6db573(0x12f)](_0x145a29[_0x6db573(0x136)],_0x2df964['nextMetadata']),_0x4b7bd8;}let _0xd2f885=(_0x3a48e0==null?void 0x0:_0x3a48e0['blockId'])??_0x339fc6(0x6),_0x5e265a;try{_0x5e265a=De({'blockId':_0xd2f885,'config':_0x3a48e0==null?void 0x0:_0x3a48e0[_0x6db573(0xf8)],'documentData':_0x145a29[_0x6db573(0xc9)],'endOffset':_0x50d4f6==null?void 0x0:_0x50d4f6[_0x6db573(0xe1)],'insertionMode':_0x3a48e0==null?void 0x0:_0x3a48e0[_0x6db573(0xc4)],'metadata':_0x1e0e67,'startOffset':_0x50d4f6==null?void 0x0:_0x50d4f6[_0x6db573(0xe7)]});}catch(_0x2b4283){if(_0x2b4283 instanceof E)return!0x1;throw _0x2b4283;}let _0x3a4903=Y(_0x145a29['commandService'],_0x145a29[_0x6db573(0xff)],_0x145a29[_0x6db573(0x136)],_0x145a29[_0x6db573(0xc9)],_0x5e265a['nextDocumentData'],B['id'],_0x5e265a[_0x6db573(0x126)]);return _0x3a4903&&_0x5e265a['nextMetadata']&&_0x145a29[_0x6db573(0x100)][_0x6db573(0x12f)](_0x145a29['unitId'],_0x5e265a[_0x6db573(0xe9)]),_0x3a4903;}},st={'id':_0x47262e(0xde),'type':_0x56cb03[_0x47262e(0xac)],'handler':(_0x3f7a21,_0x109f0c)=>{const _0x4fe02b=_0x47262e;if(!_0x109f0c)return!0x1;let _0x13f37d=W(_0x3f7a21,_0x109f0c['unitId']);if(!_0x13f37d)return!0x1;let _0x3e3828=je({'blockId':_0x109f0c[_0x4fe02b(0xb1)],'config':_0x109f0c[_0x4fe02b(0xf8)],'documentData':_0x13f37d[_0x4fe02b(0xc9)],'metadata':_0x13f37d[_0x4fe02b(0x100)][_0x4fe02b(0x143)](_0x13f37d[_0x4fe02b(0x136)])});return _0x3e3828[_0x4fe02b(0xe9)]&&_0x13f37d['model'][_0x4fe02b(0x12f)](_0x13f37d['unitId'],_0x3e3828[_0x4fe02b(0xe9)]),!0x0;}},ct={'id':'docs-code.command.exit','type':_0x56cb03['COMMAND'],'handler':(_0x21d857,_0x188925)=>V[_0x47262e(0xbe)](_0x21d857,_0x188925)},V={'id':'docs-code.command.unwrap','type':_0x56cb03[_0x47262e(0xac)],'handler':(_0x5ac4b7,_0x23fc16)=>{const _0x5304ab=_0x47262e;if(!_0x23fc16)return!0x1;let _0x1a7705=W(_0x5ac4b7,_0x23fc16==null?void 0x0:_0x23fc16['unitId']);if(!_0x1a7705)return!0x1;let _0x597e8a=D({'blockId':_0x23fc16['blockId'],'documentData':_0x1a7705[_0x5304ab(0xc9)],'metadata':_0x1a7705[_0x5304ab(0x100)][_0x5304ab(0x143)](_0x1a7705[_0x5304ab(0x136)])});if(!_0x597e8a)return!0x1;let _0x4f8331=Y(_0x1a7705[_0x5304ab(0x137)],_0x1a7705[_0x5304ab(0xff)],_0x1a7705[_0x5304ab(0x136)],_0x1a7705[_0x5304ab(0xc9)],_0x597e8a['nextDocumentData'],V['id'],_0x597e8a[_0x5304ab(0x126)]);return _0x4f8331&&_0x597e8a[_0x5304ab(0xe9)]&&_0x1a7705['model'][_0x5304ab(0x12f)](_0x1a7705[_0x5304ab(0x136)],_0x597e8a[_0x5304ab(0xe9)]),_0x4f8331;}},H={'id':_0x47262e(0xbb),'type':_0x56cb03[_0x47262e(0xac)],'handler':(_0x3cd248,_0x1c8234)=>{const _0xb2d54d=_0x47262e;if(!_0x1c8234)return!0x1;let _0x390808=W(_0x3cd248,_0x1c8234==null?void 0x0:_0x1c8234[_0xb2d54d(0x136)]);if(!_0x390808)return!0x1;let _0x3122d6=Me({'blockId':_0x1c8234[_0xb2d54d(0xb1)],'documentData':_0x390808[_0xb2d54d(0xc9)],'metadata':_0x390808[_0xb2d54d(0x100)][_0xb2d54d(0x143)](_0x390808['unitId'])});if(!_0x3122d6)return!0x1;let _0x9fac48=Y(_0x390808[_0xb2d54d(0x137)],_0x390808[_0xb2d54d(0xff)],_0x390808[_0xb2d54d(0x136)],_0x390808['previousDocumentData'],_0x3122d6[_0xb2d54d(0xc0)],H['id'],_0x3122d6[_0xb2d54d(0x126)]);return _0x9fac48&&_0x3122d6[_0xb2d54d(0xe9)]&&_0x390808[_0xb2d54d(0x100)][_0xb2d54d(0x12f)](_0x390808['unitId'],_0x3122d6[_0xb2d54d(0xe9)]),_0x9fac48;}},U={'id':_0x47262e(0x12d),'type':_0x56cb03[_0x47262e(0xac)],'handler':(_0x21c440,_0x5cbc9c)=>{const _0x15b1b5=_0x47262e;var _0x1e1f44;let _0x224234=W(_0x21c440,_0x5cbc9c==null?void 0x0:_0x5cbc9c[_0x15b1b5(0x136)]);if(!_0x224234)return!0x1;let _0x411894=(_0x5cbc9c==null?void 0x0:_0x5cbc9c[_0x15b1b5(0x126)])??((_0x1e1f44=G(_0x21c440))==null?void 0x0:_0x1e1f44[_0x15b1b5(0xe7)]);if(_0x411894==null)return!0x1;let _0x16a8e4=Ne({'cursorOffset':_0x411894,'documentData':_0x224234[_0x15b1b5(0xc9)],'paragraphStartIndex':_0x5cbc9c==null?void 0x0:_0x5cbc9c[_0x15b1b5(0xd2)]});return _0x16a8e4?Y(_0x224234[_0x15b1b5(0x137)],_0x224234[_0x15b1b5(0xff)],_0x224234[_0x15b1b5(0x136)],_0x224234['previousDocumentData'],_0x16a8e4['nextDocumentData'],U['id'],_0x16a8e4[_0x15b1b5(0x126)]):!0x1;}};function W(_0x19215e,_0x5fcef8){const _0x460854=_0x47262e;let _0x34d05e=_0x19215e[_0x460854(0xfd)](_0x3505d2),_0x3a0abd=_0x5fcef8?_0x34d05e[_0x460854(0x144)](_0x5fcef8,_0x4c80f2[_0x460854(0xbc)]):_0x34d05e['getCurrentUnitOfType'](_0x4c80f2[_0x460854(0xbc)]);return _0x3a0abd?{'commandService':_0x19215e[_0x460854(0xfd)](_0x590f1e),'model':_0x19215e[_0x460854(0xfd)](w),'previousDocumentData':_0x3a0abd[_0x460854(0x11e)](),'selectionManager':_0x19215e['get'](_0xa4b078),'unitId':_0x3a0abd[_0x460854(0xc6)]()}:null;}function G(_0x18b18f){const _0x53f3e2=_0x47262e;var _0x5dd09c;return(_0x5dd09c=_0x18b18f[_0x53f3e2(0xfd)](_0xa4b078)[_0x53f3e2(0xec)]())==null?void 0x0:_0x5dd09c[0x0];}function lt(_0x4f274a,_0x49134d){const _0x2b262b=_0x47262e;let _0x419968=(_0x4f274a==null?void 0x0:_0x4f274a[_0x2b262b(0xe7)])??(_0x49134d==null?void 0x0:_0x49134d[_0x2b262b(0xe7)]),_0x4e7cb1=(_0x4f274a==null?void 0x0:_0x4f274a[_0x2b262b(0xe1)])??(_0x49134d==null?void 0x0:_0x49134d[_0x2b262b(0xe1)]);if(_0x419968!=null&&_0x4e7cb1!=null)return{'endOffset':Math[_0x2b262b(0x140)](_0x419968,_0x4e7cb1),'startOffset':Math[_0x2b262b(0x13b)](_0x419968,_0x4e7cb1)};}function ut(_0x4cf86f,_0x410818){const _0xb65fd1=_0x47262e;var _0x350fc7;if(!_0x410818)return;let _0x20fd23=dt(_0x410818);return(_0x350fc7=_0x4cf86f['body'])==null||(_0x350fc7=_0x350fc7[_0xb65fd1(0x13e)])==null?void 0x0:_0x350fc7['find'](_0x4a6f0d=>{const _0x576b4b=_0xb65fd1;let _0x21d73a=_0x13b73c(_0x4a6f0d);return _0x410818['startOffset']===_0x410818[_0x576b4b(0xe1)]?_0xa244f6(_0x21d73a,_0x20fd23):_0x8a4026(_0x21d73a,_0x20fd23);});}function dt(_0x372a01){const _0xaecb3f=_0x47262e;return _0x372a01['startOffset']===_0x372a01[_0xaecb3f(0xe1)]?_0x372a01[_0xaecb3f(0xe7)]:_0x372a01[_0xaecb3f(0xe7)]+0x1;}function ft(_0x4f2db9){const _0x287fe8=_0x47262e;let _0x1e4a07=G(_0x4f2db9);if(!_0x1e4a07)return null;let _0xc255e2=_0x4f2db9[_0x287fe8(0xfd)](_0x3505d2)[_0x287fe8(0x123)](_0x4c80f2['UNIVER_DOC']),_0x4d3a07=_0xc255e2==null?void 0x0:_0xc255e2[_0x287fe8(0xe5)]();return _0x4d3a07?_0x39a794[_0x287fe8(0xca)]['getParagraphsInRange'](_0x1e4a07,_0x4d3a07[_0x287fe8(0xa8)]??[],_0x4d3a07[_0x287fe8(0x11b)]??'')[0x0]??null:null;}function pt(_0x55c859,_0x46567a){const _0x31fc30=_0x47262e;let _0x16520a=_0x55c859[_0x31fc30(0xa7)],_0x456f04=_0x46567a['body'],_0x24438e=_0x10a6bd(_0x16520a,_0x456f04);return[_0x24438e&&_0x456f04?mt(_0x456f04,_0x24438e):null,_0x24438e?null:ht(_0x16520a,_0x456f04)]['filter'](Boolean)[_0x31fc30(0x110)]((_0x5f3a78,_0x1765bf)=>_0x1d5524['compose'](_0x5f3a78,_0x1765bf),null);}function mt(_0x3f76c1,_0x1e1268){const _0x611a1e=_0x47262e;let _0xf02700=new _0x4d07a5();return _0xf02700[_0x611a1e(0xc3)](_0x1e1268[_0x611a1e(0xc1)]),_0x1e1268['insertLength']>0x0&&_0xf02700[_0x611a1e(0xeb)](_0x1e1268[_0x611a1e(0xd4)],_0x36cb78(_0x3f76c1,_0x1e1268['start'],_0x1e1268[_0x611a1e(0xc1)]+_0x1e1268['insertLength'],!0x1)),_0x1e1268[_0x611a1e(0xdf)]>0x0&&_0xf02700[_0x611a1e(0xe3)](_0x1e1268['deleteLength']),_0x1d5524['getInstance']()[_0x611a1e(0x10c)](_0xf02700[_0x611a1e(0x143)](),[_0x611a1e(0xa7)]);}function ht(_0x794fa9,_0x130741){const _0x290dbd=_0x47262e;let _0x283686=[],_0x2726b6=_0x794fa9?_t(_0x794fa9):void 0x0,_0x39b2e1=_0x130741?_t(_0x130741):void 0x0;for(let _0x2c125d of gt)K(_0x1d5524[_0x290dbd(0x119)](),['body',_0x2c125d],_0x2726b6==null?void 0x0:_0x2726b6[_0x2c125d],_0x39b2e1==null?void 0x0:_0x39b2e1[_0x2c125d],_0x283686);return _0x283686[_0x290dbd(0x110)]((_0x28959f,_0x191508)=>_0x1d5524['compose'](_0x28959f,_0x191508),null);}const gt=[_0x47262e(0xa8),_0x47262e(0xc8),_0x47262e(0xdb),'columnGroups',_0x47262e(0x13e),_0x47262e(0x12e),_0x47262e(0xd0),'customDecorations',_0x47262e(0x13f)];function _t(_0x1b2104){return _0x1b2104;}function K(_0x13f69f,_0x1099aa,_0x37b03a,_0xeee68a,_0x45a84b){const _0x11a9e9=_0x47262e;if(!J(_0x37b03a,_0xeee68a)){if(_0x37b03a==null){_0x45a84b[_0x11a9e9(0x12a)](_0x13f69f[_0x11a9e9(0xad)](_0x1099aa,_0xeee68a));return;}if(_0xeee68a==null){_0x45a84b['push'](_0x13f69f[_0x11a9e9(0xb7)](_0x1099aa,_0x37b03a));return;}if(Array['isArray'](_0x37b03a)&&Array[_0x11a9e9(0xe0)](_0xeee68a)){vt(_0x13f69f,_0x1099aa,_0x37b03a,_0xeee68a,_0x45a84b);return;}if(q(_0x37b03a)&&q(_0xeee68a)){new Set([...Object[_0x11a9e9(0x106)](_0x37b03a),...Object['keys'](_0xeee68a)])[_0x11a9e9(0x138)](_0x592b06=>{K(_0x13f69f,[..._0x1099aa,_0x592b06],_0x37b03a[_0x592b06],_0xeee68a[_0x592b06],_0x45a84b);});return;}_0x45a84b[_0x11a9e9(0x12a)](_0x13f69f['replaceOp'](_0x1099aa,_0x37b03a,_0xeee68a));}}function vt(_0x1e9125,_0x290219,_0x38ab39,_0x22fdc2,_0x2251f2){const _0x2d6316=_0x47262e;if(_0x38ab39[_0x2d6316(0xcb)]===_0x22fdc2[_0x2d6316(0xcb)]){_0x38ab39[_0x2d6316(0x138)]((_0x403cb0,_0x5b37a4)=>K(_0x1e9125,[..._0x290219,_0x5b37a4],_0x403cb0,_0x22fdc2[_0x5b37a4],_0x2251f2));return;}let _0x448307=0x0;for(;_0x448307<_0x38ab39['length']&&_0x448307<_0x22fdc2[_0x2d6316(0xcb)]&&J(_0x38ab39[_0x448307],_0x22fdc2[_0x448307]);)_0x448307++;let _0x2e4d68=_0x38ab39[_0x2d6316(0xcb)]-0x1,_0x1a4b9c=_0x22fdc2['length']-0x1;for(;_0x2e4d68>=_0x448307&&_0x1a4b9c>=_0x448307&&J(_0x38ab39[_0x2e4d68],_0x22fdc2[_0x1a4b9c]);)_0x2e4d68--,_0x1a4b9c--;for(let _0x2fda2b=_0x2e4d68;_0x2fda2b>=_0x448307;_0x2fda2b--)_0x2251f2[_0x2d6316(0x12a)](_0x1e9125[_0x2d6316(0xb7)]([..._0x290219,_0x2fda2b],_0x38ab39[_0x2fda2b]));for(let _0x1e769b=_0x448307;_0x1e769b<=_0x1a4b9c;_0x1e769b++)_0x2251f2[_0x2d6316(0x12a)](_0x1e9125[_0x2d6316(0xad)]([..._0x290219,_0x1e769b],_0x22fdc2[_0x1e769b]));}function q(_0x8476f6){const _0x40e38b=_0x47262e;return typeof _0x8476f6==_0x40e38b(0x115)&&!!_0x8476f6&&!Array[_0x40e38b(0xe0)](_0x8476f6);}function J(_0x19e448,_0x517746){const _0x2dc7ed=_0x47262e;return JSON[_0x2dc7ed(0x13c)](_0x19e448)===JSON[_0x2dc7ed(0x13c)](_0x517746);}function Y(_0x150d63,_0x13e996,_0x343ff5,_0x5b6426,_0x42f782,_0x56a171,_0x590f8a){const _0x2487a1=_0x47262e;let _0x3cc25b=pt(_0x5b6426,_0x42f782);return _0x3cc25b?!!_0x150d63[_0x2487a1(0xd1)](_0x1711e6['id'],{'unitId':_0x343ff5,'actions':_0x3cc25b,'textRanges':[{'startOffset':_0x590f8a,'endOffset':_0x590f8a,'collapsed':!0x0}],'isEditing':!0x1,'trigger':_0x56a171}):(_0x13e996[_0x2487a1(0x125)]([{'startOffset':_0x590f8a,'endOffset':_0x590f8a}],{'unitId':_0x343ff5,'subUnitId':_0x343ff5},!0x1),!0x0);}const X=_0x47262e(0xb6);var yt=_0x47262e(0xfe),bt=_0x47262e(0xf6);const xt={};function Z(_0x2192fa,_0x3c3c25){return function(_0xa20550,_0x5ef777){_0x3c3c25(_0xa20550,_0x5ef777,_0x2192fa);};}function St(_0x4f2e66,_0x299933,_0x567b90,_0x125486){const _0x5c94e5=_0x47262e;var _0x4851ae=arguments[_0x5c94e5(0xcb)],_0x36dfe2=_0x4851ae<0x3?_0x299933:_0x125486===null?_0x125486=Object[_0x5c94e5(0x147)](_0x299933,_0x567b90):_0x125486,_0xfd1769;if(typeof Reflect==_0x5c94e5(0x115)&&typeof Reflect['decorate']==_0x5c94e5(0x13d))_0x36dfe2=Reflect[_0x5c94e5(0x103)](_0x4f2e66,_0x299933,_0x567b90,_0x125486);else{for(var _0x2f2853=_0x4f2e66[_0x5c94e5(0xcb)]-0x1;_0x2f2853>=0x0;_0x2f2853--)(_0xfd1769=_0x4f2e66[_0x2f2853])&&(_0x36dfe2=(_0x4851ae<0x3?_0xfd1769(_0x36dfe2):_0x4851ae>0x3?_0xfd1769(_0x299933,_0x567b90,_0x36dfe2):_0xfd1769(_0x299933,_0x567b90))||_0x36dfe2);}return _0x4851ae>0x3&&_0x36dfe2&&Object[_0x5c94e5(0xa9)](_0x299933,_0x567b90,_0x36dfe2),_0x36dfe2;}let Q=class extends _0x4a683f{constructor(_0x2f6481,_0x4a114f){const _0x36edb7=_0x47262e;super(),this['_resourceManagerService']=_0x2f6481,this[_0x36edb7(0x10f)]=_0x4a114f,this[_0x36edb7(0xc5)]();}[_0x47262e(0xc5)](){const _0x5d9004=_0x47262e;this['disposeWithMe'](this[_0x5d9004(0x122)][_0x5d9004(0x104)]({'pluginName':X,'businesses':[_0x4c80f2[_0x5d9004(0xbc)]],'toJson':_0x1f2d34=>JSON[_0x5d9004(0x13c)](this['_docsCodeModel'][_0x5d9004(0x143)](_0x1f2d34)),'parseJson':_0x412a0d=>y(JSON[_0x5d9004(0xe8)](_0x412a0d)),'onLoad':(_0x5b85a,_0x26ae26)=>this[_0x5d9004(0x10f)][_0x5d9004(0x12f)](_0x5b85a,_0x26ae26),'onUnLoad':_0x2000aa=>this[_0x5d9004(0x10f)][_0x5d9004(0x13a)](_0x2000aa)}));}};Q=St([Z(0x0,_0x5bbb3a),Z(0x1,_0x20224e(w))],Q);let $=class extends _0x947f63{constructor(_0x5302fa=xt,_0x426c7b,_0x43f0ef,_0x36b15a){const _0x950805=_0x47262e;super(),this['_config']=_0x5302fa,this[_0x950805(0x132)]=_0x426c7b,this['_commandService']=_0x43f0ef,this['_configService']=_0x36b15a;let {..._0xecb0e2}=_0x3335f3({},xt,this[_0x950805(0xf0)]);this[_0x950805(0xdd)][_0x950805(0xb4)]('docs-code.config',_0xecb0e2);}[_0x47262e(0x12b)](){const _0x1a92f6=_0x47262e;this[_0x1a92f6(0x132)][_0x1a92f6(0x105)]([w]),this[_0x1a92f6(0x132)][_0x1a92f6(0x105)]([Q]),this[_0x1a92f6(0x132)][_0x1a92f6(0xfd)](w),this[_0x1a92f6(0x132)][_0x1a92f6(0xfd)](Q),[B,at,st,V,H,ct,U,ot,Te,T][_0x1a92f6(0x138)](_0xd4956b=>this[_0x1a92f6(0xa6)](this['_commandService'][_0x1a92f6(0x121)](_0xd4956b)));}};C($,_0x47262e(0xce),X),C($,_0x47262e(0xb0),yt),C($,_0x47262e(0x116),bt),C($,'type',_0x4c80f2[_0x47262e(0xbc)]),$=St([_0x5a7055(_0x4d7e7b,_0x18c0f9),Z(0x1,_0x20224e(_0x31802d)),Z(0x2,_0x590f1e),Z(0x3,_0x5308c5)],$);export{X as DOCS_CODE_PLUGIN,U as DocsCodeCancelEmptyParagraphCommand,ot as DocsCodeConsumeBoundaryDeleteCommand,at as DocsCodeInsertBelowCommand,B as DocsCodeInsertCommand,w as DocsCodeModel,H as DocsCodeRemoveCommand,V as DocsCodeUnwrapCommand,st as DocsCodeUpdateCommand,T as RemoveDocsCodeConfigMutation,Te as SetDocsCodeConfigMutation,$ as UniverDocsCodePlugin,Ne as buildCancelEmptyCodeParagraphActions,Ie as isCodeBoundaryDelete,v as normalizeDocsCodeConfig,y as normalizeDocsCodeMetadataResource};
package/lib/facade.js CHANGED
@@ -1 +1 @@
1
- var _0x38946e=_0x2f5f;(function(_0x4bcdc6,_0xadef16){var _0x516704=_0x2f5f,_0x2d7b0d=_0x4bcdc6();while(!![]){try{var _0x4a63f0=-parseInt(_0x516704(0x9f))/0x1+-parseInt(_0x516704(0xc7))/0x2*(-parseInt(_0x516704(0xbe))/0x3)+-parseInt(_0x516704(0xae))/0x4+parseInt(_0x516704(0xc9))/0x5+parseInt(_0x516704(0x96))/0x6*(parseInt(_0x516704(0xda))/0x7)+parseInt(_0x516704(0xad))/0x8*(-parseInt(_0x516704(0x97))/0x9)+-parseInt(_0x516704(0xa8))/0xa;if(_0x4a63f0===_0xadef16)break;else _0x2d7b0d['push'](_0x2d7b0d['shift']());}catch(_0x1f9ab4){_0x2d7b0d['push'](_0x2d7b0d['shift']());}}}(_0xeaa7,0xa99a0));import{DocsCodeInsertCommand as _0xe4d73,DocsCodeModel as _0x4ad876,DocsCodeRemoveCommand as _0x2a8caf,DocsCodeUnwrapCommand as _0x238623,DocsCodeUpdateCommand as _0x4f0288,normalizeDocsCodeConfig as _0x290c1a}from'@univerjs-pro/docs-code';import{DataStreamTreeTokenType as _0x41ab50,DocumentBlockRangeType as _0x59ca1e,ICommandService as _0x2172ab,Inject as _0x175244,Injector as _0x18e1ac,generateRandomId as _0x4de038}from'@univerjs/core';import{FDocument as _0x8122f,isParagraphFacade as _0x3e8111}from'@univerjs/docs/facade';function m(_0x25bbaf){'@babel/helpers - typeof';var _0x2fa8aa=_0x2f5f;return m=typeof Symbol=='function'&&typeof Symbol[_0x2fa8aa(0xb9)]==_0x2fa8aa(0xb3)?function(_0x2d6b76){return typeof _0x2d6b76;}:function(_0x28c7b9){var _0xa34637=_0x2fa8aa;return _0x28c7b9&&typeof Symbol==_0xa34637(0xb7)&&_0x28c7b9[_0xa34637(0xbd)]===Symbol&&_0x28c7b9!==Symbol[_0xa34637(0xac)]?'symbol':typeof _0x28c7b9;},m(_0x25bbaf);}function h(_0x44f722,_0x315e0f){var _0x3d2d5b=_0x2f5f;if(m(_0x44f722)!='object'||!_0x44f722)return _0x44f722;var _0x5b8768=_0x44f722[Symbol[_0x3d2d5b(0xcf)]];if(_0x5b8768!==void 0x0){var _0x4d16e8=_0x5b8768[_0x3d2d5b(0xd5)](_0x44f722,_0x315e0f||_0x3d2d5b(0x9e));if(m(_0x4d16e8)!=_0x3d2d5b(0x98))return _0x4d16e8;throw TypeError(_0x3d2d5b(0xcd));}return(_0x315e0f===_0x3d2d5b(0x9b)?String:Number)(_0x44f722);}function _0xeaa7(){var _0x93ca6b=['prototype','297664eHmEFC','3588876MYYmzs','_blockId','extend','createInstance','_getBlockRange','symbol','replace','find','length','function','getCodeConfig','iterator','map','save','endIndex','constructor','21CjUMVF','get','dataStream','getRange','findCodes','SECTION_BREAK','BLOCK_END','_getBlockRanges','slice','268316eNkjVO','blockType','3652890AGCZWC','_unitId','getConfig','updateConfig','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','includes','toPrimitive','getId','startIndex','unwrap','CODE','_createFDocumentCode','call','_getDocumentData','findCodeByText','some','blockId','77fcefOy','config','241062qoGzQQ','36mgEQjg','object','getText','getCodes','string','getCode','describe','default','4846ajOPkv','_document','decorate','PARAGRAPH','blockRanges','_injector','BLOCK_START','text','filter','3660460CHarpO','syncExecuteCommand','body','insertCode'];_0xeaa7=function(){return _0x93ca6b;};return _0xeaa7();}function g(_0x1c0094){var _0x3d16ce=_0x2f5f,_0x5530da=h(_0x1c0094,_0x3d16ce(0x9b));return m(_0x5530da)==_0x3d16ce(0xb3)?_0x5530da:_0x5530da+'';}function _(_0x2a7a33,_0x4f6f26,_0x224bea){return(_0x4f6f26=g(_0x4f6f26))in _0x2a7a33?Object['defineProperty'](_0x2a7a33,_0x4f6f26,{'value':_0x224bea,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x2a7a33[_0x4f6f26]=_0x224bea,_0x2a7a33;}function v(_0x5871a1,_0x119db8){return function(_0x348237,_0x45cf01){_0x119db8(_0x348237,_0x45cf01,_0x5871a1);};}function y(_0x4e0f2a,_0x2a1d1e,_0x162750,_0x2fbfab){var _0x31b9ae=_0x2f5f,_0x28ff29=arguments[_0x31b9ae(0xb6)],_0x361445=_0x28ff29<0x3?_0x2a1d1e:_0x2fbfab===null?_0x2fbfab=Object['getOwnPropertyDescriptor'](_0x2a1d1e,_0x162750):_0x2fbfab,_0x599e39;if(typeof Reflect=='object'&&typeof Reflect[_0x31b9ae(0xa1)]=='function')_0x361445=Reflect[_0x31b9ae(0xa1)](_0x4e0f2a,_0x2a1d1e,_0x162750,_0x2fbfab);else{for(var _0x34c980=_0x4e0f2a['length']-0x1;_0x34c980>=0x0;_0x34c980--)(_0x599e39=_0x4e0f2a[_0x34c980])&&(_0x361445=(_0x28ff29<0x3?_0x599e39(_0x361445):_0x28ff29>0x3?_0x599e39(_0x2a1d1e,_0x162750,_0x361445):_0x599e39(_0x2a1d1e,_0x162750))||_0x361445);}return _0x28ff29>0x3&&_0x361445&&Object['defineProperty'](_0x2a1d1e,_0x162750,_0x361445),_0x361445;}let b=class{constructor(_0x5b9eea,_0x3b7478,_0x4db584){var _0x4cc084=_0x2f5f;this[_0x4cc084(0xa0)]=_0x5b9eea,this[_0x4cc084(0xaf)]=_0x3b7478,this[_0x4cc084(0xa4)]=_0x4db584,_(this,_0x4cc084(0xca),void 0x0),this[_0x4cc084(0xca)]=this[_0x4cc084(0xa0)]['getId']();}['getId'](){return this['_blockId'];}[_0x38946e(0xc1)](){var _0x41d0d6=_0x38946e;let _0x658f3=this[_0x41d0d6(0xb2)]();return _0x658f3?{'blockId':_0x658f3[_0x41d0d6(0xd9)],'endIndex':_0x658f3[_0x41d0d6(0xbc)],'startIndex':_0x658f3[_0x41d0d6(0xd1)]}:null;}[_0x38946e(0x99)](){var _0x2903f9=_0x38946e,_0x451f68;let _0x25ab76=this[_0x2903f9(0xb2)](),_0x2fc659=(_0x451f68=this['_getDocumentData']()[_0x2903f9(0xaa)])==null?void 0x0:_0x451f68[_0x2903f9(0xc0)];return!_0x25ab76||!_0x2fc659?'':x(_0x2fc659[_0x2903f9(0xc6)](_0x25ab76[_0x2903f9(0xd1)]+0x1,_0x25ab76[_0x2903f9(0xbc)]));}[_0x38946e(0x9d)](){var _0x4bd1e3=_0x38946e;let _0x536185=this[_0x4bd1e3(0xc1)]();return _0x536185?{..._0x536185,'config':this[_0x4bd1e3(0xcb)](),'text':this['getText'](),'type':_0x59ca1e[_0x4bd1e3(0xd3)]}:null;}['getConfig'](){var _0x15230c=_0x38946e;let _0x44cdc9=this[_0x15230c(0xa4)][_0x15230c(0xbf)](_0x4ad876);return _0x290c1a(_0x44cdc9[_0x15230c(0xb8)](this[_0x15230c(0xca)],this[_0x15230c(0xaf)]));}[_0x38946e(0xcc)](_0x12cccf){var _0x506a5d=_0x38946e;return this[_0x506a5d(0xa4)][_0x506a5d(0xbf)](_0x2172ab)['syncExecuteCommand'](_0x4f0288['id'],{'blockId':this[_0x506a5d(0xaf)],'config':_0x12cccf[_0x506a5d(0x95)],'unitId':this[_0x506a5d(0xca)]});}[_0x38946e(0xd2)](){var _0xa6ba68=_0x38946e;return this[_0xa6ba68(0xa4)][_0xa6ba68(0xbf)](_0x2172ab)[_0xa6ba68(0xa9)](_0x238623['id'],{'blockId':this[_0xa6ba68(0xaf)],'unitId':this['_unitId']});}['remove'](){var _0x1642a3=_0x38946e;return this[_0x1642a3(0xa4)]['get'](_0x2172ab)[_0x1642a3(0xa9)](_0x2a8caf['id'],{'blockId':this[_0x1642a3(0xaf)],'unitId':this[_0x1642a3(0xca)]});}[_0x38946e(0xb2)](){var _0x100482=_0x38946e,_0x228050;return((_0x228050=this['_getDocumentData']()['body'])==null||(_0x228050=_0x228050[_0x100482(0xa3)])==null?void 0x0:_0x228050[_0x100482(0xb5)](_0x11802c=>_0x11802c[_0x100482(0xd9)]===this[_0x100482(0xaf)]&&_0x11802c[_0x100482(0xc8)]===_0x59ca1e[_0x100482(0xd3)]))??null;}[_0x38946e(0xd6)](){var _0x1c30cc=_0x38946e;return this[_0x1c30cc(0xa0)][_0x1c30cc(0xbb)]();}};b=y([v(0x2,_0x175244(_0x18e1ac))],b);function x(_0xd92af0){var _0x141059=_0x38946e;return Array['from'](_0xd92af0)[_0x141059(0xba)](_0x507369=>_0x507369===_0x41ab50[_0x141059(0xa2)]?'\x0a':_0x507369)[_0x141059(0xa7)](_0x50139e=>_0x50139e!==_0x41ab50[_0x141059(0xa5)]&&_0x50139e!==_0x41ab50[_0x141059(0xc4)]&&_0x50139e!==_0x41ab50[_0x141059(0xc3)])['join']('')[_0x141059(0xb4)](/\n$/,'');}function _0x2f5f(_0x2ff405,_0x41be0b){_0x2ff405=_0x2ff405-0x95;var _0xeaa7fb=_0xeaa7();var _0x2f5f33=_0xeaa7fb[_0x2ff405];return _0x2f5f33;}var S=class extends _0x8122f{[_0x38946e(0x9a)](){var _0xcc6647=_0x38946e;return this[_0xcc6647(0xc5)]()[_0xcc6647(0xa7)](_0x459313=>_0x459313[_0xcc6647(0xc8)]===_0x59ca1e[_0xcc6647(0xd3)])['map'](_0x2d207e=>this['_createFDocumentCode'](_0x2d207e[_0xcc6647(0xd9)]));}[_0x38946e(0x9c)](_0x22ba83){var _0x81fc7b=_0x38946e;return this[_0x81fc7b(0xc5)]()[_0x81fc7b(0xd8)](_0x15c74f=>_0x15c74f[_0x81fc7b(0xd9)]===_0x22ba83&&_0x15c74f[_0x81fc7b(0xc8)]===_0x59ca1e[_0x81fc7b(0xd3)])?this[_0x81fc7b(0xd4)](_0x22ba83):null;}['getCodeAt'](_0x2e7d3c){var _0x1018dc=_0x38946e;let _0x900bc6=this[_0x1018dc(0xc5)]()['find'](_0x59d4fd=>_0x59d4fd[_0x1018dc(0xc8)]===_0x59ca1e[_0x1018dc(0xd3)]&&_0x59d4fd[_0x1018dc(0xd1)]<=_0x2e7d3c&&_0x2e7d3c<=_0x59d4fd[_0x1018dc(0xbc)]);return _0x900bc6?this[_0x1018dc(0xd4)](_0x900bc6[_0x1018dc(0xd9)]):null;}[_0x38946e(0xd7)](_0x495a5c){var _0x49b2ac=_0x38946e;return this[_0x49b2ac(0xc2)](_0x495a5c)[0x0]??null;}[_0x38946e(0xc2)](_0x249775){var _0x262b09=_0x38946e;let _0x1d940c=typeof _0x249775==_0x262b09(0x9b)?{'text':_0x249775}:_0x249775;return this[_0x262b09(0x9a)]()[_0x262b09(0xa7)](_0x438b36=>!(_0x1d940c['blockId']&&_0x438b36[_0x262b09(0xd0)]()!==_0x1d940c[_0x262b09(0xd9)]||_0x1d940c[_0x262b09(0xa6)]&&!_0x438b36[_0x262b09(0x99)]()[_0x262b09(0xce)](_0x1d940c['text'])));}[_0x38946e(0xab)](_0x1dfc19={},_0x1033cf={}){var _0xaeae06=_0x38946e;let _0x531a8c=this[_0xaeae06(0xa4)]['get'](_0x2172ab),_0x293e72=_0x3e8111(_0x1dfc19)?{..._0x1033cf,..._0x1dfc19[_0xaeae06(0xc1)]()}:_0x1dfc19,_0xff4dd2=_0x293e72['blockId']??_0x4de038(0x6);return _0x531a8c[_0xaeae06(0xa9)](_0xe4d73['id'],{..._0x293e72,'blockId':_0xff4dd2,'unitId':this['getId']()})?this[_0xaeae06(0x9c)](_0xff4dd2):null;}['_getBlockRanges'](){var _0x25d736=_0x38946e,_0x55ec89;return((_0x55ec89=this[_0x25d736(0xbb)]()[_0x25d736(0xaa)])==null?void 0x0:_0x55ec89[_0x25d736(0xa3)])??[];}[_0x38946e(0xd4)](_0x21629f){var _0x39cc97=_0x38946e;return this['_injector'][_0x39cc97(0xb1)](b,this,_0x21629f);}};_0x8122f[_0x38946e(0xb0)](S);export{b as FDocumentCode};
1
+ var _0x50df91=_0x4af0;function _0x2c7b(){var _0x57019c=['34922UlPUgl','find','7921375vCmVoc','remove','object','function','_createFDocumentCode','syncExecuteCommand','_getDocumentData','createInstance','decorate','_blockId','5345862rIwted','7ySKJWj','3276684RAYUfZ','blockId','getCodeAt','22qlbSCF','slice','prototype','2453684ZGXXgl','defineProperty','symbol','get','PARAGRAPH','updateConfig','string','endIndex','getRange','3bRcBuW','replace','dataStream','filter','_getBlockRanges','from','join','CODE','_unitId','map','default','toPrimitive','constructor','save','getText','getConfig','getId','blockRanges','4424920FuAFKY','SECTION_BREAK','insertCode','BLOCK_START','_injector','body','includes','_document','getCodes','text','describe','some','findCodeByText','101NbpHxL','blockType','findCodes','_getBlockRange','length','call','3616664vAbPQq','getCode','unwrap','startIndex'];_0x2c7b=function(){return _0x57019c;};return _0x2c7b();}(function(_0x5d9d1d,_0x539376){var _0x45828b=_0x4af0,_0xc764e8=_0x5d9d1d();while(!![]){try{var _0x2300af=-parseInt(_0x45828b(0x165))/0x1*(parseInt(_0x45828b(0x16f))/0x2)+-parseInt(_0x45828b(0x146))/0x3*(parseInt(_0x45828b(0x183))/0x4)+parseInt(_0x45828b(0x171))/0x5+parseInt(_0x45828b(0x17b))/0x6+parseInt(_0x45828b(0x17c))/0x7*(-parseInt(_0x45828b(0x16b))/0x8)+parseInt(_0x45828b(0x17d))/0x9+parseInt(_0x45828b(0x158))/0xa*(parseInt(_0x45828b(0x180))/0xb);if(_0x2300af===_0x539376)break;else _0xc764e8['push'](_0xc764e8['shift']());}catch(_0x38bd4d){_0xc764e8['push'](_0xc764e8['shift']());}}}(_0x2c7b,0xda90f));import{DocsCodeInsertCommand as _0x32cf21,DocsCodeModel as _0x3875bb,DocsCodeRemoveCommand as _0x524845,DocsCodeUnwrapCommand as _0x2040b4,DocsCodeUpdateCommand as _0x1439fc,normalizeDocsCodeConfig as _0x1766de}from'@univerjs-pro/docs-code';import{DataStreamTreeTokenType as _0x32615c,DocumentBlockRangeType as _0x5180d0,ICommandService as _0x3533ac,Inject as _0x18b97e,Injector as _0xc932f,generateRandomId as _0x59dbc5}from'@univerjs/core';import{FDocument as _0x4c9ba5,isParagraphFacade as _0x22c8cb}from'@univerjs/docs/facade';function m(_0x450bd7){'@babel/helpers - typeof';var _0x5ed0f6=_0x4af0;return m=typeof Symbol==_0x5ed0f6(0x174)&&typeof Symbol['iterator']==_0x5ed0f6(0x185)?function(_0x4099e5){return typeof _0x4099e5;}:function(_0x4e5eee){var _0x46da6c=_0x5ed0f6;return _0x4e5eee&&typeof Symbol==_0x46da6c(0x174)&&_0x4e5eee[_0x46da6c(0x152)]===Symbol&&_0x4e5eee!==Symbol[_0x46da6c(0x182)]?_0x46da6c(0x185):typeof _0x4e5eee;},m(_0x450bd7);}function h(_0x4c135b,_0x3e63bc){var _0x1a733e=_0x4af0;if(m(_0x4c135b)!=_0x1a733e(0x173)||!_0x4c135b)return _0x4c135b;var _0x11ea03=_0x4c135b[Symbol[_0x1a733e(0x151)]];if(_0x11ea03!==void 0x0){var _0x20052e=_0x11ea03[_0x1a733e(0x16a)](_0x4c135b,_0x3e63bc||_0x1a733e(0x150));if(m(_0x20052e)!='object')return _0x20052e;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x3e63bc===_0x1a733e(0x189)?String:Number)(_0x4c135b);}function _0x4af0(_0x160821,_0x1adf2e){_0x160821=_0x160821-0x145;var _0x2c7b3d=_0x2c7b();var _0x4af0a=_0x2c7b3d[_0x160821];return _0x4af0a;}function g(_0x2f554f){var _0x3d0253=_0x4af0,_0x296d97=h(_0x2f554f,_0x3d0253(0x189));return m(_0x296d97)==_0x3d0253(0x185)?_0x296d97:_0x296d97+'';}function _(_0xd42c49,_0x108d81,_0x1274bf){var _0x2748f5=_0x4af0;return(_0x108d81=g(_0x108d81))in _0xd42c49?Object[_0x2748f5(0x184)](_0xd42c49,_0x108d81,{'value':_0x1274bf,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0xd42c49[_0x108d81]=_0x1274bf,_0xd42c49;}function v(_0x1dabb3,_0x3b1ee8){return function(_0x1ae6b4,_0x484974){_0x3b1ee8(_0x1ae6b4,_0x484974,_0x1dabb3);};}function y(_0x145255,_0x236770,_0x195529,_0x39a232){var _0xd7d0ef=_0x4af0,_0x529035=arguments['length'],_0x6bf0c0=_0x529035<0x3?_0x236770:_0x39a232===null?_0x39a232=Object['getOwnPropertyDescriptor'](_0x236770,_0x195529):_0x39a232,_0x30036d;if(typeof Reflect==_0xd7d0ef(0x173)&&typeof Reflect[_0xd7d0ef(0x179)]==_0xd7d0ef(0x174))_0x6bf0c0=Reflect[_0xd7d0ef(0x179)](_0x145255,_0x236770,_0x195529,_0x39a232);else{for(var _0x769f22=_0x145255[_0xd7d0ef(0x169)]-0x1;_0x769f22>=0x0;_0x769f22--)(_0x30036d=_0x145255[_0x769f22])&&(_0x6bf0c0=(_0x529035<0x3?_0x30036d(_0x6bf0c0):_0x529035>0x3?_0x30036d(_0x236770,_0x195529,_0x6bf0c0):_0x30036d(_0x236770,_0x195529))||_0x6bf0c0);}return _0x529035>0x3&&_0x6bf0c0&&Object['defineProperty'](_0x236770,_0x195529,_0x6bf0c0),_0x6bf0c0;}let b=class{constructor(_0xf0a8e9,_0x214f13,_0x52c9ac){var _0x1f9c22=_0x4af0;this[_0x1f9c22(0x15f)]=_0xf0a8e9,this[_0x1f9c22(0x17a)]=_0x214f13,this['_injector']=_0x52c9ac,_(this,_0x1f9c22(0x14e),void 0x0),this[_0x1f9c22(0x14e)]=this['_document'][_0x1f9c22(0x156)]();}[_0x50df91(0x156)](){var _0x5cca44=_0x50df91;return this[_0x5cca44(0x17a)];}[_0x50df91(0x145)](){var _0x144b33=_0x50df91;let _0x53fdd6=this[_0x144b33(0x168)]();return _0x53fdd6?{'blockId':_0x53fdd6['blockId'],'endIndex':_0x53fdd6[_0x144b33(0x18a)],'startIndex':_0x53fdd6[_0x144b33(0x16e)]}:null;}[_0x50df91(0x154)](){var _0x45cd02=_0x50df91,_0x4b4133;let _0x1ce17d=this[_0x45cd02(0x168)](),_0x36507d=(_0x4b4133=this['_getDocumentData']()[_0x45cd02(0x15d)])==null?void 0x0:_0x4b4133[_0x45cd02(0x148)];return!_0x1ce17d||!_0x36507d?'':x(_0x36507d[_0x45cd02(0x181)](_0x1ce17d[_0x45cd02(0x16e)]+0x1,_0x1ce17d['endIndex']));}[_0x50df91(0x162)](){var _0x17b11d=_0x50df91;let _0x168997=this[_0x17b11d(0x145)]();return _0x168997?{..._0x168997,'config':this[_0x17b11d(0x155)](),'text':this[_0x17b11d(0x154)](),'type':_0x5180d0[_0x17b11d(0x14d)]}:null;}[_0x50df91(0x155)](){var _0x1831c8=_0x50df91;let _0x58b2b6=this[_0x1831c8(0x15c)][_0x1831c8(0x186)](_0x3875bb);return _0x1766de(_0x58b2b6['getCodeConfig'](this['_unitId'],this[_0x1831c8(0x17a)]));}[_0x50df91(0x188)](_0xb939c){var _0x126e3b=_0x50df91;return this['_injector']['get'](_0x3533ac)[_0x126e3b(0x176)](_0x1439fc['id'],{'blockId':this[_0x126e3b(0x17a)],'config':_0xb939c['config'],'unitId':this[_0x126e3b(0x14e)]});}[_0x50df91(0x16d)](){var _0xacd21b=_0x50df91;return this[_0xacd21b(0x15c)][_0xacd21b(0x186)](_0x3533ac)['syncExecuteCommand'](_0x2040b4['id'],{'blockId':this[_0xacd21b(0x17a)],'unitId':this[_0xacd21b(0x14e)]});}[_0x50df91(0x172)](){var _0x4d56c8=_0x50df91;return this[_0x4d56c8(0x15c)][_0x4d56c8(0x186)](_0x3533ac)['syncExecuteCommand'](_0x524845['id'],{'blockId':this[_0x4d56c8(0x17a)],'unitId':this[_0x4d56c8(0x14e)]});}[_0x50df91(0x168)](){var _0x3a3e21=_0x50df91,_0x20f9f1;return((_0x20f9f1=this[_0x3a3e21(0x177)]()['body'])==null||(_0x20f9f1=_0x20f9f1[_0x3a3e21(0x157)])==null?void 0x0:_0x20f9f1[_0x3a3e21(0x170)](_0x5f2dbe=>_0x5f2dbe['blockId']===this[_0x3a3e21(0x17a)]&&_0x5f2dbe[_0x3a3e21(0x166)]===_0x5180d0[_0x3a3e21(0x14d)]))??null;}['_getDocumentData'](){var _0x4aa676=_0x50df91;return this[_0x4aa676(0x15f)][_0x4aa676(0x153)]();}};b=y([v(0x2,_0x18b97e(_0xc932f))],b);function x(_0xaeaf75){var _0x16cdcf=_0x50df91;return Array[_0x16cdcf(0x14b)](_0xaeaf75)[_0x16cdcf(0x14f)](_0x42ac63=>_0x42ac63===_0x32615c[_0x16cdcf(0x187)]?'\x0a':_0x42ac63)[_0x16cdcf(0x149)](_0x43d764=>_0x43d764!==_0x32615c[_0x16cdcf(0x15b)]&&_0x43d764!==_0x32615c['BLOCK_END']&&_0x43d764!==_0x32615c[_0x16cdcf(0x159)])[_0x16cdcf(0x14c)]('')[_0x16cdcf(0x147)](/\n$/,'');}var S=class extends _0x4c9ba5{[_0x50df91(0x160)](){var _0x2bdc8d=_0x50df91;return this[_0x2bdc8d(0x14a)]()[_0x2bdc8d(0x149)](_0x4e915b=>_0x4e915b['blockType']===_0x5180d0[_0x2bdc8d(0x14d)])[_0x2bdc8d(0x14f)](_0x38b6e9=>this[_0x2bdc8d(0x175)](_0x38b6e9[_0x2bdc8d(0x17e)]));}[_0x50df91(0x16c)](_0x579c52){var _0x289643=_0x50df91;return this[_0x289643(0x14a)]()[_0x289643(0x163)](_0x550622=>_0x550622[_0x289643(0x17e)]===_0x579c52&&_0x550622[_0x289643(0x166)]===_0x5180d0[_0x289643(0x14d)])?this[_0x289643(0x175)](_0x579c52):null;}[_0x50df91(0x17f)](_0x5aa91e){var _0x1b7467=_0x50df91;let _0x205f04=this[_0x1b7467(0x14a)]()[_0x1b7467(0x170)](_0x5dd936=>_0x5dd936['blockType']===_0x5180d0[_0x1b7467(0x14d)]&&_0x5dd936[_0x1b7467(0x16e)]<=_0x5aa91e&&_0x5aa91e<=_0x5dd936[_0x1b7467(0x18a)]);return _0x205f04?this[_0x1b7467(0x175)](_0x205f04[_0x1b7467(0x17e)]):null;}[_0x50df91(0x164)](_0x18bb11){var _0x339f4c=_0x50df91;return this[_0x339f4c(0x167)](_0x18bb11)[0x0]??null;}['findCodes'](_0x548bd9){var _0x5773a5=_0x50df91;let _0x2044ba=typeof _0x548bd9==_0x5773a5(0x189)?{'text':_0x548bd9}:_0x548bd9;return this[_0x5773a5(0x160)]()[_0x5773a5(0x149)](_0x1a3ca8=>!(_0x2044ba['blockId']&&_0x1a3ca8[_0x5773a5(0x156)]()!==_0x2044ba[_0x5773a5(0x17e)]||_0x2044ba['text']&&!_0x1a3ca8['getText']()[_0x5773a5(0x15e)](_0x2044ba[_0x5773a5(0x161)])));}[_0x50df91(0x15a)](_0x29467f={},_0x6b5f14={}){var _0x5af6bb=_0x50df91;let _0x518e64=this['_injector'][_0x5af6bb(0x186)](_0x3533ac),_0x428c60=_0x22c8cb(_0x29467f)?{..._0x6b5f14,..._0x29467f[_0x5af6bb(0x145)]()}:_0x29467f,_0x35781c=_0x428c60[_0x5af6bb(0x17e)]??_0x59dbc5(0x6);return _0x518e64[_0x5af6bb(0x176)](_0x32cf21['id'],{..._0x428c60,'blockId':_0x35781c,'unitId':this[_0x5af6bb(0x156)]()})?this['getCode'](_0x35781c):null;}[_0x50df91(0x14a)](){var _0x164049=_0x50df91,_0x58504c;return((_0x58504c=this['save']()[_0x164049(0x15d)])==null?void 0x0:_0x58504c[_0x164049(0x157)])??[];}[_0x50df91(0x175)](_0x56a5ce){var _0x59e8cf=_0x50df91;return this['_injector'][_0x59e8cf(0x178)](b,this,_0x56a5ce);}};_0x4c9ba5['extend'](S);export{b as FDocumentCode};
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x49483d=_0x10b3;(function(_0x14b103,_0x5c8c9e){const _0x591240=_0x10b3,_0x58d2a8=_0x14b103();while(!![]){try{const _0x51f231=parseInt(_0x591240(0xb9))/0x1+-parseInt(_0x591240(0x10a))/0x2+parseInt(_0x591240(0xeb))/0x3+-parseInt(_0x591240(0x7f))/0x4+parseInt(_0x591240(0x103))/0x5+parseInt(_0x591240(0x98))/0x6*(parseInt(_0x591240(0x85))/0x7)+parseInt(_0x591240(0x9a))/0x8;if(_0x51f231===_0x5c8c9e)break;else _0x58d2a8['push'](_0x58d2a8['shift']());}catch(_0x11e292){_0x58d2a8['push'](_0x58d2a8['shift']());}}}(_0x1d98,0x51901));import{BooleanNumber as _0x29f404,BuildTextUtils as _0x18ba16,CommandType as _0x446cfc,DataStreamTreeTokenType as _0x23e365,DependentOn as _0x5aaaeb,Disposable as _0x24e448,DocumentBlockRangeType as _0x2324fb,ICommandService as _0x330d40,IConfigService as _0x5ce515,IResourceManagerService as _0x4ec5e9,IUniverInstanceService as _0x1f322c,Inject as _0x34c829,Injector as _0x38f326,JSONX as _0x424cd6,Plugin as _0x5a8ee0,TextX as _0x227fc3,UniverInstanceType as _0x2fc27d,containsInteriorInsertionOffset as _0x116958,containsStreamIndex as _0x2d8224,createParagraphId as _0x338f66,generateRandomId as _0x5cf7a0,getBlockRangeInterval as _0x5c8dbe,getBodySliceForTextXAction as _0x25d42f,getParagraphContentStartOffset as _0x53b91f,getParagraphContentStartOffsets as _0x43bde5,getParagraphFollowingBlockOffset as _0x15574e,getSingleDataStreamChange as _0x5c68b1,intersectsOperationalIntervals as _0x467d94,merge as _0x1470e9,shiftExclusiveRangeOnDelete as _0xc1b9cd,shiftExclusiveRangeOnInsert as _0x3f24e6,shiftInclusiveRangeOnDelete as _0x2cee19,shiftInclusiveRangeOnInsert as _0x4cbd10}from'@univerjs/core';import{Subject as _0x4c06b3}from'rxjs';import{DocSelectionManagerService as _0x2baf85,RichTextEditingMutation as _0x274029,UniverDocsPlugin as _0x565d36,getContentInsertRange as _0x34eb39,isHeaderFooterSelection as _0x584ad5}from'@univerjs/docs';import{UniverLicensePlugin as _0xecd332}from'@univerjs-pro/license';const Se={'language':_0x49483d(0x73),'showLineNumbers':!0x1,'tabSize':0x4,'wrap':!0x0};function v(_0x2fd8ec){return{...Se,..._0x2fd8ec};}function y(_0x27f3e7){const _0x4284c3=_0x49483d;let _0x465372=(_0x27f3e7==null?void 0x0:_0x27f3e7['codes'])??{};return{'codes':Object[_0x4284c3(0xf4)](Object[_0x4284c3(0x6c)](_0x465372)['map'](([_0x4c64c2,_0x3cc3df])=>[_0x4c64c2,v(_0x3cc3df)]))};}function b(_0x2b3291,_0x55e095,_0x39c847){const _0x212846=_0x49483d;let _0xfbdd86=y(_0x2b3291);return _0xfbdd86[_0x212846(0x77)][_0x55e095]=v({..._0xfbdd86[_0x212846(0x77)][_0x55e095],..._0x39c847}),_0xfbdd86;}function x(_0x430777,_0x5ad778){const _0xf072f4=_0x49483d;let _0x4cedd0=y(_0x430777);return delete _0x4cedd0[_0xf072f4(0x77)][_0x5ad778],_0x4cedd0;}function S(_0x5c9d49){'@babel/helpers - typeof';const _0x384cd5=_0x49483d;return S=typeof Symbol==_0x384cd5(0x104)&&typeof Symbol[_0x384cd5(0xee)]==_0x384cd5(0xb4)?function(_0x1da516){return typeof _0x1da516;}:function(_0xb7294b){const _0x58d62e=_0x384cd5;return _0xb7294b&&typeof Symbol==_0x58d62e(0x104)&&_0xb7294b[_0x58d62e(0xb3)]===Symbol&&_0xb7294b!==Symbol[_0x58d62e(0x81)]?'symbol':typeof _0xb7294b;},S(_0x5c9d49);}function Ce(_0x19f620,_0x75fe26){const _0x2d2432=_0x49483d;if(S(_0x19f620)!=_0x2d2432(0xa8)||!_0x19f620)return _0x19f620;var _0x35571a=_0x19f620[Symbol[_0x2d2432(0x10c)]];if(_0x35571a!==void 0x0){var _0x45a69c=_0x35571a['call'](_0x19f620,_0x75fe26||_0x2d2432(0xb1));if(S(_0x45a69c)!=_0x2d2432(0xa8))return _0x45a69c;throw TypeError(_0x2d2432(0xb7));}return(_0x75fe26===_0x2d2432(0xa2)?String:Number)(_0x19f620);}function we(_0x1cdb53){const _0x28ce26=_0x49483d;var _0x3f9364=Ce(_0x1cdb53,_0x28ce26(0xa2));return S(_0x3f9364)=='symbol'?_0x3f9364:_0x3f9364+'';}function C(_0x53414e,_0xd559ea,_0x485df3){const _0x441a36=_0x49483d;return(_0xd559ea=we(_0xd559ea))in _0x53414e?Object[_0x441a36(0xc0)](_0x53414e,_0xd559ea,{'value':_0x485df3,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x53414e[_0xd559ea]=_0x485df3,_0x53414e;}var w=class extends _0x24e448{constructor(..._0x3f7706){const _0x567a72=_0x49483d;super(..._0x3f7706),C(this,_0x567a72(0xcf),new Map()),C(this,_0x567a72(0xf2),new _0x4c06b3()),C(this,_0x567a72(0x7b),this[_0x567a72(0xf2)][_0x567a72(0xd0)]());}[_0x49483d(0xa6)](_0x2d1548,_0x208336){const _0x157562=_0x49483d;return y(this[_0x157562(0xcf)][_0x157562(0xbd)](_0x2d1548))[_0x157562(0x77)][_0x208336];}['setCodeConfig'](_0x15f6c5,_0x24609d,_0x1c0038){const _0x2e993c=_0x49483d;this[_0x2e993c(0x8d)](_0x15f6c5,_0x24609d,b(this[_0x2e993c(0xcf)][_0x2e993c(0xbd)](_0x15f6c5),_0x24609d,_0x1c0038));}[_0x49483d(0xfd)](_0x58caac,_0x316b73){const _0x5a0ec4=_0x49483d;this['_setResource'](_0x58caac,_0x316b73,x(this[_0x5a0ec4(0xcf)][_0x5a0ec4(0xbd)](_0x58caac),_0x316b73));}['serialize'](_0x31ee18){const _0x5bcac=_0x49483d;return y(this[_0x5bcac(0xcf)][_0x5bcac(0xbd)](_0x31ee18));}['deserialize'](_0xe9376d,_0x32d901){const _0x515507=_0x49483d;this[_0x515507(0xcf)]['set'](_0xe9376d,y(_0x32d901)),this[_0x515507(0xf2)][_0x515507(0xd4)]({'unitId':_0xe9376d});}[_0x49483d(0xed)](_0x15de40){const _0x3cdd62=_0x49483d;this[_0x3cdd62(0xcf)][_0x3cdd62(0xe1)](_0x15de40),this[_0x3cdd62(0xf2)][_0x3cdd62(0xd4)]({'unitId':_0x15de40});}[_0x49483d(0x7a)](){const _0x885d59=_0x49483d;super[_0x885d59(0x7a)](),this[_0x885d59(0xcf)]['clear'](),this[_0x885d59(0xf2)][_0x885d59(0x68)]();}['_setResource'](_0x35c54b,_0x99d3eb,_0x54c80f){const _0x4bd794=_0x49483d;this[_0x4bd794(0xcf)][_0x4bd794(0xf3)](_0x35c54b,_0x54c80f),this['_change$'][_0x4bd794(0xd4)]({'unitId':_0x35c54b,'blockId':_0x99d3eb});}};const Te={'id':_0x49483d(0xc8),'type':_0x446cfc['MUTATION'],'handler':(_0x3b7a40,_0x74202d)=>!(_0x74202d!=null&&_0x74202d[_0x49483d(0x10b)])||!_0x74202d['blockId']?!0x1:(_0x3b7a40[_0x49483d(0xbd)](w)[_0x49483d(0xb2)](_0x74202d[_0x49483d(0x10b)],_0x74202d['blockId'],_0x74202d['config']),!0x0)},T={'id':_0x49483d(0xf6),'type':_0x446cfc[_0x49483d(0x8e)],'handler':(_0x189ccb,_0x5e75f1)=>!(_0x5e75f1!=null&&_0x5e75f1[_0x49483d(0x10b)])||!_0x5e75f1[_0x49483d(0x96)]?!0x1:(_0x189ccb[_0x49483d(0xbd)](w)[_0x49483d(0xfd)](_0x5e75f1[_0x49483d(0x10b)],_0x5e75f1[_0x49483d(0x96)]),!0x0)},Ee=_0x49483d(0x93);var E=class extends Error{constructor(_0x6af3ef=_0x49483d(0xd9)){super(_0x6af3ef);}};function De(_0x1e38d4){const _0x1e421d=_0x49483d;var _0x14805d;let _0x1292a6=O(_0x1e38d4[_0x1e421d(0xc6)]),_0x3b113a=A(_0x1292a6),_0x4fc674=ke(_0x1e38d4['startOffset'],_0x1e38d4[_0x1e421d(0x105)]),_0x58ddd1=_0x4fc674?(_0x14805d=_0x3b113a[_0x1e421d(0x79)])==null?void 0x0:_0x14805d[_0x1e421d(0xd5)](_0x56aba9=>{const _0x44d97e=_0x1e421d;let _0x47f8fe=_0x5c8dbe(_0x56aba9);return _0x47f8fe[_0x44d97e(0x10e)]===_0x4fc674[_0x44d97e(0x10e)]&&_0x47f8fe[_0x44d97e(0x105)]===_0x4fc674[_0x44d97e(0x105)];}):void 0x0,{startOffset:_0x21361e,endOffset:_0x486c81}=_0x58ddd1?_0x4fc674:We(_0x3b113a,_0x1e38d4[_0x1e421d(0x10e)],_0x1e38d4[_0x1e421d(0x105)],_0x1e38d4[_0x1e421d(0xa9)]);if(!_0x58ddd1&&Ae(_0x3b113a,_0x21361e,_0x486c81))throw new E(_0x1e421d(0x9e));let _0x9cadf8=qe(_0x3b113a,_0x21361e,_0x486c81),_0x1538e9=(_0x58ddd1==null?void 0x0:_0x58ddd1[_0x1e421d(0x96)])??_0x1e38d4[_0x1e421d(0x96)],_0xd79115=b(_0x1e38d4[_0x1e421d(0xd1)],_0x1538e9,{...Se,..._0x1e38d4[_0x1e421d(0x9c)]});if(_0x58ddd1)return _0x58ddd1['blockType']=_0x2324fb['CODE'],Oe(_0x3b113a,_0x21361e,_0x486c81),ze(_0x3b113a,_0x21361e,_0x486c81,_0x9cadf8),N(_0x3b113a,_0x58ddd1),{'nextDocumentData':_0x1292a6,'nextMetadata':_0xd79115,'cursorOffset':_0x21361e+0x1};if(_0x21361e===_0x486c81){var _0x27b7c0,_0x3f1ad0;let _0x71142d=''+_0x23e365[_0x1e421d(0xea)]+_0x23e365[_0x1e421d(0xff)]+_0x23e365[_0x1e421d(0x94)];P(_0x3b113a,_0x21361e,_0x71142d,{'paragraphs':[{'startIndex':0x1,'paragraphId':_0x338f66(new Set((_0x27b7c0=_0x3b113a[_0x1e421d(0x8a)])==null?void 0x0:_0x27b7c0[_0x1e421d(0x10f)](_0x140ef2=>_0x140ef2[_0x1e421d(0xe3)]))),'paragraphStyle':Re(!0x0,!0x0,_0x9cadf8)}],'blockRanges':[{'blockId':_0x1538e9,'blockType':_0x2324fb[_0x1e421d(0x89)],'startIndex':0x0,'endIndex':_0x71142d['length']-0x1}]});let _0xa00bb6=(_0x3f1ad0=_0x3b113a[_0x1e421d(0x79)])==null?void 0x0:_0x3f1ad0[_0x1e421d(0xd5)](_0x2d2851=>_0x2d2851['blockId']===_0x1538e9);return _0xa00bb6&&N(_0x3b113a,_0xa00bb6),{'nextDocumentData':_0x1292a6,'nextMetadata':_0xd79115,'cursorOffset':_0x21361e+0x1};}P(_0x3b113a,_0x486c81,_0x23e365[_0x1e421d(0x94)]),P(_0x3b113a,_0x21361e,_0x23e365[_0x1e421d(0xea)]),ze(_0x3b113a,_0x21361e,_0x486c81+0x1,_0x9cadf8);let _0xa825fe={'blockId':_0x1538e9,'blockType':_0x2324fb['CODE'],'startIndex':_0x21361e,'endIndex':_0x486c81+0x1};return _0x3b113a[_0x1e421d(0x79)]=[..._0x3b113a['blockRanges']??[],_0xa825fe][_0x1e421d(0x8f)]((_0x42c256,_0x4958a6)=>_0x42c256[_0x1e421d(0xca)]-_0x4958a6['startIndex']),N(_0x3b113a,_0xa825fe),{'nextDocumentData':_0x1292a6,'nextMetadata':_0xd79115,'cursorOffset':_0x21361e+0x1};}function Oe(_0x569f5a,_0xc9ffed,_0x7f39ee){const _0x31a78e=_0x49483d;(_0x569f5a[_0x31a78e(0x8a)]??[])[_0x31a78e(0xf1)](_0xa460f6=>_0xa460f6[_0x31a78e(0xca)]>_0xc9ffed&&_0xa460f6[_0x31a78e(0xca)]<_0x7f39ee)[_0x31a78e(0xe5)](_0x2df4eb=>{const _0x546be9=_0x31a78e;let _0x27ff86={..._0x2df4eb['paragraphStyle']??{}};delete _0x27ff86['spaceAbove'],delete _0x27ff86[_0x546be9(0xe4)],_0x2df4eb[_0x546be9(0xdc)]=_0x27ff86;});}function ke(_0x5ee40c,_0x1a06f8){const _0x4acf41=_0x49483d;return _0x5ee40c==null||_0x1a06f8==null||_0x5ee40c===_0x1a06f8?null:{'startOffset':Math[_0x4acf41(0xef)](_0x5ee40c,_0x1a06f8),'endOffset':Math[_0x4acf41(0xda)](_0x5ee40c,_0x1a06f8)};}function Ae(_0x4d375f,_0x29f319,_0x5a009b){const _0xb2567=_0x49483d;return(_0x4d375f[_0xb2567(0x79)]??[])[_0xb2567(0xbf)](_0x65238=>{let _0x142255=_0x5c8dbe(_0x65238);return _0x29f319===_0x5a009b?_0x116958(_0x142255,_0x29f319):_0x467d94(_0x142255,{'startOffset':_0x29f319,'endOffset':_0x5a009b});});}function je(_0x7091ae){const _0x18f848=_0x49483d;return{'nextDocumentData':O(_0x7091ae[_0x18f848(0xc6)]),'nextMetadata':b(_0x7091ae[_0x18f848(0xd1)],_0x7091ae['blockId'],_0x7091ae[_0x18f848(0x9c)]),'cursorOffset':0x0};}function D(_0x187855){const _0x43f178=_0x49483d;let _0x14ae2b=O(_0x187855[_0x43f178(0xc6)]),_0x17a60e=A(_0x14ae2b),_0x4e97d7=Fe(_0x17a60e,_0x187855[_0x43f178(0x96)]);if(!_0x4e97d7)return null;let _0x44597e=He(_0x17a60e,_0x4e97d7);return{'nextDocumentData':_0x14ae2b,'nextMetadata':x(_0x187855['metadata'],_0x187855[_0x43f178(0x96)]),'cursorOffset':_0x44597e};}function Me(_0x5c21a1){const _0x5aa05d=_0x49483d;var _0x3c4db0;let _0x100d51=O(_0x5c21a1[_0x5aa05d(0xc6)]),_0xd4c3d0=A(_0x100d51),_0x58bb3d=Fe(_0xd4c3d0,_0x5c21a1[_0x5aa05d(0x96)]);if(!_0x58bb3d)return null;let _0x488ce2=_0x5c8dbe(_0x58bb3d);return F(_0xd4c3d0,_0x488ce2[_0x5aa05d(0x10e)],_0x488ce2[_0x5aa05d(0x105)]),_0xd4c3d0['blockRanges']=(_0x3c4db0=_0xd4c3d0[_0x5aa05d(0x79)])==null?void 0x0:_0x3c4db0[_0x5aa05d(0xf1)](_0x295d33=>_0x295d33[_0x5aa05d(0x96)]!==_0x5c21a1[_0x5aa05d(0x96)]),{'nextDocumentData':_0x100d51,'nextMetadata':x(_0x5c21a1[_0x5aa05d(0xd1)],_0x5c21a1[_0x5aa05d(0x96)]),'cursorOffset':_0x58bb3d['startIndex']};}function Ne(_0x2cd8b9){const _0x21104c=_0x49483d;let _0x13d538=O(_0x2cd8b9[_0x21104c(0xc6)]),_0x1200fb=A(_0x13d538),_0x5c0da3=Le(_0x1200fb,_0x2cd8b9[_0x21104c(0xdb)]);return _0x5c0da3&&Pe(_0x13d538,_0x1200fb,_0x5c0da3,_0x2cd8b9[_0x21104c(0xdb)],_0x2cd8b9[_0x21104c(0x87)])||null;}function Pe(_0xf4e8f8,_0x740478,_0x55f7e3,_0x4fd208,_0x2c5134){const _0x420437=_0x49483d;let _0x5812b1=$e(_0x740478,_0x55f7e3,_0x4fd208,_0x2c5134);if(!_0x5812b1)return null;let _0x3bd5de=_0x5812b1[_0x420437(0xd3)]-0x1;return F(_0x740478,_0x5812b1[_0x420437(0x6b)][_0x420437(0xca)],_0x5812b1[_0x420437(0x6b)][_0x420437(0xca)]+0x1),{'nextDocumentData':_0xf4e8f8,'cursorOffset':_0x3bd5de};}function Fe(_0x2a8ec7,_0x221057){const _0x4f4f12=_0x49483d;var _0x2e9c51;return _0x2a8ec7==null||(_0x2e9c51=_0x2a8ec7[_0x4f4f12(0x79)])==null?void 0x0:_0x2e9c51['find'](_0x227b86=>_0x227b86[_0x4f4f12(0xc4)]===_0x2324fb[_0x4f4f12(0x89)]&&_0x227b86[_0x4f4f12(0x96)]===_0x221057);}function Ie(_0x339bef){const _0x34ba6c=_0x49483d;let _0x1ad03d=_0x339bef[_0x34ba6c(0xc6)][_0x34ba6c(0xc3)];if(!_0x1ad03d)return!0x1;let _0x406129=_0x339bef[_0x34ba6c(0x92)]==='left'?_0x339bef[_0x34ba6c(0xdb)]-0x1:_0x339bef[_0x34ba6c(0xdb)],_0x97ab16=_0x339bef[_0x34ba6c(0x92)]===_0x34ba6c(0xe9)?_0x339bef[_0x34ba6c(0xdb)]+0x1:_0x406129;return(_0x1ad03d[_0x34ba6c(0x79)]??[])['some'](_0x2e8d0b=>_0x2e8d0b[_0x34ba6c(0xc4)]===_0x2324fb[_0x34ba6c(0x89)]?_0x406129===_0x2e8d0b[_0x34ba6c(0xca)]||_0x406129===_0x2e8d0b[_0x34ba6c(0xfb)]||_0x97ab16===_0x2e8d0b['startIndex']||_0x97ab16===_0x2e8d0b[_0x34ba6c(0xfb)]:!0x1);}function Le(_0x28d177,_0x22f150){const _0xa78fcf=_0x49483d;var _0x332593;return(_0x332593=_0x28d177[_0xa78fcf(0x79)])==null?void 0x0:_0x332593[_0xa78fcf(0xd5)](_0x2b0e39=>{const _0x36e1e9=_0xa78fcf;let _0x44e7dc=M(_0x2b0e39);return _0x2b0e39['blockType']===_0x2324fb[_0x36e1e9(0x89)]&&_0x2b0e39[_0x36e1e9(0xca)]<=_0x22f150&&_0x22f150<=_0x44e7dc+0x2;});}function Re(_0x3f45ae,_0x3b02a5,_0x1ed424=!0x1){const _0x1efc96=_0x49483d;return{'indentEnd':{'v':0x14},'indentStart':{'v':0x14},'keepLines':_0x29f404[_0x1efc96(0x97)],'keepNext':_0x3b02a5?_0x29f404[_0x1efc96(0x78)]:_0x29f404[_0x1efc96(0x97)],'widowControl':_0x29f404['TRUE'],..._0x3f45ae&&_0x1ed424?{'spaceAbove':{'v':0x8}}:{},'textStyle':{'ff':Ee,'fs':0xc}};}function ze(_0x391312,_0x11c35b,_0x28e67c,_0x5572d3=!0x1){const _0x16e5ba=_0x49483d;let _0x527240=(_0x391312[_0x16e5ba(0x8a)]??[])[_0x16e5ba(0xf1)](_0x12170c=>_0x12170c[_0x16e5ba(0xca)]>_0x11c35b&&_0x12170c[_0x16e5ba(0xca)]<_0x28e67c);_0x527240[_0x16e5ba(0xe5)]((_0x13d09f,_0x2e86f2)=>{const _0x403290=_0x16e5ba;_0x13d09f[_0x403290(0xdc)]={..._0x13d09f[_0x403290(0xdc)]??{},...Re(_0x2e86f2===0x0,_0x2e86f2===_0x527240[_0x403290(0xa3)]-0x1,_0x5572d3)};});}function Be(_0x424465){const _0x5a0cb9=_0x49483d;var _0x42d594,_0x4f90ba;let _0x55c935={..._0x424465??{}};return delete _0x55c935['indentEnd'],delete _0x55c935[_0x5a0cb9(0xb8)],delete _0x55c935[_0x5a0cb9(0xa7)],delete _0x55c935[_0x5a0cb9(0xe4)],delete _0x55c935['keepLines'],delete _0x55c935[_0x5a0cb9(0xf7)],delete _0x55c935[_0x5a0cb9(0xfa)],((_0x42d594=_0x55c935['textStyle'])==null?void 0x0:_0x42d594['ff'])===Ee&&((_0x4f90ba=_0x55c935[_0x5a0cb9(0x69)])==null?void 0x0:_0x4f90ba['fs'])===0xc&&delete _0x55c935['textStyle'],_0x55c935;}function Ve(_0x136751,_0x3c0278){const _0xdd4f7d=_0x49483d;let _0x597b01=M(_0x3c0278);return(_0x136751[_0xdd4f7d(0x8a)]??[])[_0xdd4f7d(0xf1)](_0x12be88=>_0x12be88['startIndex']>_0x3c0278[_0xdd4f7d(0xca)]&&_0x12be88[_0xdd4f7d(0xca)]<_0x597b01);}function He(_0x319a34,_0x4a07f4){const _0x466d3d=_0x49483d;var _0x33e5e9;let _0x2a8141=M(_0x4a07f4);return Ve(_0x319a34,_0x4a07f4)[_0x466d3d(0xe5)](_0x3a5f34=>{const _0x50da24=_0x466d3d;_0x3a5f34[_0x50da24(0xdc)]=Be(_0x3a5f34[_0x50da24(0xdc)]);}),F(_0x319a34,_0x2a8141,_0x2a8141+0x1),F(_0x319a34,_0x4a07f4[_0x466d3d(0xca)],_0x4a07f4[_0x466d3d(0xca)]+0x1),_0x319a34[_0x466d3d(0x79)]=(_0x33e5e9=_0x319a34[_0x466d3d(0x79)])==null?void 0x0:_0x33e5e9[_0x466d3d(0xf1)](_0x1dd917=>_0x1dd917[_0x466d3d(0x96)]!==_0x4a07f4['blockId']),_0x4a07f4[_0x466d3d(0xca)];}function O(_0x14d594){const _0x16d08f=_0x49483d;return{..._0x14d594,'body':_0x14d594['body']?Ue(_0x14d594[_0x16d08f(0xc3)]):_0x14d594[_0x16d08f(0xc3)]};}function Ue(_0x1d1a3a){const _0x6a3fdc=_0x49483d;var _0x2c65ae,_0x1310ed,_0x32a5ee,_0x17552f,_0x36149d,_0x50d486,_0x257a93,_0x29d0a9,_0x2109ec;return{..._0x1d1a3a,'paragraphs':(_0x2c65ae=_0x1d1a3a[_0x6a3fdc(0x8a)])==null?void 0x0:_0x2c65ae[_0x6a3fdc(0x10f)](_0x48404c=>({..._0x48404c,'bullet':k(_0x48404c[_0x6a3fdc(0xe7)]),'paragraphStyle':k(_0x48404c['paragraphStyle'])})),'sectionBreaks':(_0x1310ed=_0x1d1a3a['sectionBreaks'])==null?void 0x0:_0x1310ed[_0x6a3fdc(0x10f)](_0x50877c=>({..._0x50877c})),'textRuns':(_0x32a5ee=_0x1d1a3a[_0x6a3fdc(0x95)])==null?void 0x0:_0x32a5ee[_0x6a3fdc(0x10f)](_0x539eba=>({..._0x539eba})),'tables':(_0x17552f=_0x1d1a3a[_0x6a3fdc(0xe8)])==null?void 0x0:_0x17552f[_0x6a3fdc(0x10f)](_0x52e5db=>({..._0x52e5db})),'columnGroups':(_0x36149d=_0x1d1a3a[_0x6a3fdc(0xc9)])==null?void 0x0:_0x36149d[_0x6a3fdc(0x10f)](_0x38835a=>{const _0x580558=_0x6a3fdc;var _0x23fa8b;return{..._0x38835a,'columns':(_0x23fa8b=_0x38835a[_0x580558(0xbc)])==null?void 0x0:_0x23fa8b['map'](_0x32505a=>k(_0x32505a))};}),'blockRanges':(_0x50d486=_0x1d1a3a[_0x6a3fdc(0x79)])==null?void 0x0:_0x50d486['map'](_0x118697=>({..._0x118697})),'customRanges':(_0x257a93=_0x1d1a3a[_0x6a3fdc(0x90)])==null?void 0x0:_0x257a93[_0x6a3fdc(0x10f)](_0x53ebbc=>({..._0x53ebbc})),'customDecorations':(_0x29d0a9=_0x1d1a3a[_0x6a3fdc(0xd8)])==null?void 0x0:_0x29d0a9[_0x6a3fdc(0x10f)](_0x4bf904=>({..._0x4bf904})),'customBlocks':(_0x2109ec=_0x1d1a3a[_0x6a3fdc(0x9b)])==null?void 0x0:_0x2109ec['map'](_0x3775bd=>({..._0x3775bd}))};}function k(_0x11b15f){const _0x11112b=_0x49483d;return Array['isArray'](_0x11b15f)?_0x11b15f[_0x11112b(0x10f)](_0x3431e0=>k(_0x3431e0)):!_0x11b15f||typeof _0x11b15f!=_0x11112b(0xa8)?_0x11b15f:Object[_0x11112b(0xf4)](Object[_0x11112b(0x6c)](_0x11b15f)[_0x11112b(0x10f)](([_0x4eff42,_0x4228b3])=>[_0x4eff42,k(_0x4228b3)]));}function _0x1d98(){const _0x53b81e=['paragraphs','registerCommand','TABLE_CELL_END','_setResource','MUTATION','sort','customRanges','getCurrentUnitOfType','direction','monospace','BLOCK_END','textRuns','blockId','TRUE','1356fFBjhY','convert-paragraph','1521960qbcpJR','customBlocks','config','dataStream','Insert\x20range\x20cannot\x20overlap\x20an\x20existing\x20document\x20block','stringify','docs-code.command.remove','packageName','string','length','replaceDocRanges','_initResource','getCodeConfig','spaceAbove','object','insertionMode','replaceOp','_docsCodeModel','selectionManager','endsWith','model','getUnit','handler','default','setCodeConfig','constructor','symbol','_config','getSnapshot','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','indentStart','500717rmLAri','COMMAND','_resourceManagerService','columns','get','every','some','defineProperty','keys','docs-code.command.unwrap','body','blockType','compose','documentData','commandService','docs-code.mutation.set-config','columnGroups','startIndex','insert','registerPluginResource','decorate','nextDocumentData','_resources','asObservable','metadata','parse','endTokenOffset','next','find','_commandService','getParagraphsInRange','customDecorations','Insert\x20range\x20cannot\x20cross\x20table\x20cell\x20boundaries','max','cursorOffset','paragraphStyle','indexOf','push','docs-code.command.cancel-empty-paragraph','from','delete','disposeWithMe','paragraphId','spaceBelow','forEach','syncExecuteCommand','bullet','tables','right','BLOCK_START','1855260FWutor','insertLength','removeUnit','iterator','min','removeOp','filter','_change$','set','fromEntries','insert-new','docs-code.mutation.remove-config','keepNext','pluginName','docs-code.command.consume-boundary-delete','widowControl','endIndex','_configService','removeCode','getInstance','PARAGRAPH','UNIVER_DOC','insertOp','start','34295QHiICr','function','endOffset','previousDocumentData','onStarting','type','version','1245408jwONUG','unitId','toPrimitive','range','startOffset','map','deserialize','getUnitId','isArray','complete','textStyle','_injector','paragraph','entries','sectionBreaks','docs-code.config','getTextRanges','editOp','startTokenOffset','TABLE_CELL_START','javascript','retain','Document\x20body\x20is\x20required','DOC_CODE_PLUGIN','codes','FALSE','blockRanges','dispose','change$','serialize','1.0.2','add','2458440iBVkEC','SECTION_BREAK','prototype','docs-code.command.insert-below','reduce','nextMetadata','7903SHlkbH','slice','paragraphStartIndex','@univerjs-pro/docs-code','CODE'];_0x1d98=function(){return _0x53b81e;};return _0x1d98();}function A(_0x26f889){const _0x49f3d3=_0x49483d;if(!_0x26f889['body'])throw Error(_0x49f3d3(0x75));return _0x26f889[_0x49f3d3(0xc3)];}function We(_0x527721,_0x3d912d,_0x3ddc6f,_0x2e2e3b=_0x49483d(0x99)){const _0x418e8a=_0x49483d;if(_0x3d912d==null||_0x3ddc6f==null){let _0x30a532=Ke(_0x527721);return{'startOffset':_0x30a532,'endOffset':_0x30a532};}let _0x11590e=Math[_0x418e8a(0xef)](_0x3d912d,_0x3ddc6f),_0x40eb22=Math[_0x418e8a(0xda)](_0x3d912d,_0x3ddc6f),_0x42d7ec=Ze(_0x527721,_0x11590e,_0x40eb22);return _0x11590e===_0x40eb22?_0x2e2e3b===_0x418e8a(0xf5)?{'startOffset':_0x11590e,'endOffset':_0x40eb22}:Ge(_0x527721,_0x11590e,_0x42d7ec):Je(_0x527721,_0x11590e,_0x40eb22,_0x42d7ec);}function Ge(_0x372ccf,_0x42cbbc,_0x32c72a){const _0x16b1c7=_0x49483d;let _0x4a3047=Ye(_0x372ccf,_0x42cbbc);if(_0x4a3047){let _0x481536=j(_0x372ccf,_0x4a3047,_0x32c72a);if(_0x481536<_0x4a3047[_0x16b1c7(0xca)])return{'startOffset':_0x481536,'endOffset':_0x32c72a?Math[_0x16b1c7(0xef)](_0x4a3047['startIndex']+0x1,_0x32c72a['endOffset']):_0x4a3047[_0x16b1c7(0xca)]+0x1};}let _0x2aa04f=_0x42cbbc===0x0&&_0x372ccf[_0x16b1c7(0x9d)][0x0]===_0x23e365[_0x16b1c7(0xff)]?0x1:_0x42cbbc;return{'startOffset':_0x2aa04f,'endOffset':_0x2aa04f};}function Ke(_0x315d7c){const _0x2616af=_0x49483d;return _0x315d7c['dataStream'][_0x2616af(0xad)](_0x23e365[_0x2616af(0x80)])?Math[_0x2616af(0xda)](0x0,_0x315d7c[_0x2616af(0x9d)][_0x2616af(0xa3)]-0x1):_0x315d7c[_0x2616af(0x9d)]['length'];}function qe(_0x5aa023,_0x1f7304,_0x498d94){const _0x235637=_0x49483d;var _0x3cc270;let _0x88649a=Math[_0x235637(0xef)](_0x1f7304,_0x498d94),_0x9138e5=Math[_0x235637(0xda)](_0x1f7304,_0x498d94);return!!((_0x3cc270=_0x5aa023[_0x235637(0xe8)])!=null&&_0x3cc270[_0x235637(0xbf)](_0x5d51c6=>_0x88649a>_0x5d51c6['startIndex']&&_0x88649a<_0x5d51c6[_0x235637(0xfb)]||_0x9138e5>_0x5d51c6['startIndex']&&_0x9138e5<_0x5d51c6[_0x235637(0xfb)]||_0x88649a<=_0x5d51c6[_0x235637(0xca)]&&_0x9138e5>=_0x5d51c6['endIndex']));}function Je(_0x3ce0cc,_0x3510e7,_0x94affa,_0x5bc6f9){const _0x118174=_0x49483d;let _0x5334a5=[..._0x3ce0cc[_0x118174(0x8a)]??[]][_0x118174(0x8f)]((_0x3d9f89,_0x233e69)=>_0x3d9f89[_0x118174(0xca)]-_0x233e69['startIndex']),_0x58dfaf=_0x43bde5(_0x3ce0cc),_0x277b49=_0x5334a5[_0x118174(0xd5)](_0x3bfc51=>j(_0x3ce0cc,_0x3bfc51,_0x5bc6f9,_0x58dfaf)<=_0x3510e7&&_0x3510e7<=_0x3bfc51[_0x118174(0xca)]),_0x27158e=_0x5334a5['find'](_0x168630=>_0x168630[_0x118174(0xca)]>=_0x94affa-0x1)??_0x5334a5[_0x5334a5['length']-0x1];return{'startOffset':_0x277b49?j(_0x3ce0cc,_0x277b49,_0x5bc6f9,_0x58dfaf):_0x3510e7,'endOffset':_0x27158e?Xe(_0x27158e,_0x5bc6f9):_0x94affa};}function Ye(_0x1558ed,_0x811343){const _0x53791f=_0x49483d;let _0x19b046=[..._0x1558ed[_0x53791f(0x8a)]??[]]['sort']((_0x56b8c4,_0xcc6c14)=>_0x56b8c4['startIndex']-_0xcc6c14[_0x53791f(0xca)]),_0x1fd7f7=_0x43bde5(_0x1558ed);return _0x19b046[_0x53791f(0xd5)](_0x3085e1=>(_0x1fd7f7[_0x53791f(0xbd)](_0x3085e1[_0x53791f(0xca)])??0x0)<=_0x811343&&_0x811343<=_0x3085e1[_0x53791f(0xca)]);}function j(_0xa29b8a,_0x555624,_0x228966,_0x2021c8){const _0x8e7edf=_0x49483d;let _0x42c9b0=(_0x2021c8==null?void 0x0:_0x2021c8['get'](_0x555624[_0x8e7edf(0xca)]))??_0x53b91f(_0xa29b8a,_0x555624);return _0x228966?Math['max'](_0x42c9b0,_0x228966[_0x8e7edf(0x10e)]):_0x42c9b0;}function Xe(_0x1e78c7,_0x2884b2){const _0x22ada6=_0x49483d;let _0x40fb21=_0x1e78c7[_0x22ada6(0xca)]+0x1;return _0x2884b2?Math[_0x22ada6(0xef)](_0x40fb21,_0x2884b2['endOffset']):_0x40fb21;}function Ze(_0x3fd946,_0x21e92d,_0xba3d8){const _0x2ab049=_0x49483d;let _0x2165e6=Qe(_0x3fd946,_0x21e92d),_0x5f3da5=Qe(_0x3fd946,_0x21e92d===_0xba3d8?_0xba3d8:Math['max'](_0x21e92d,_0xba3d8-0x1));if(_0x2165e6||_0x5f3da5){if(!_0x2165e6||!_0x5f3da5||_0x2165e6[_0x2ab049(0x71)]!==_0x5f3da5['startTokenOffset']||_0x2165e6[_0x2ab049(0xd3)]!==_0x5f3da5['endTokenOffset'])throw new E();return _0x2165e6;}}function Qe(_0x9ed5aa,_0x457200){const _0x245c1f=_0x49483d;let _0x37eb87=_0x9ed5aa['dataStream'],_0x22d64c=-0x1;for(let _0x887331=Math['min'](_0x457200,_0x37eb87[_0x245c1f(0xa3)]-0x1);_0x887331>=0x0;_0x887331--){let _0x752d27=_0x37eb87[_0x887331];if(_0x752d27===_0x23e365['TABLE_CELL_END'])return;if(_0x752d27===_0x23e365[_0x245c1f(0x72)]){_0x22d64c=_0x887331;break;}}if(_0x22d64c<0x0)return;let _0x375215=_0x37eb87[_0x245c1f(0xdd)](_0x23e365[_0x245c1f(0x8c)],_0x22d64c+0x1);if(!(_0x375215<0x0||_0x457200<_0x22d64c+0x1||_0x457200>_0x375215-0x1))return{'startOffset':_0x22d64c+0x1,'endOffset':Math[_0x245c1f(0xda)](_0x22d64c+0x1,_0x375215-0x1),'startTokenOffset':_0x22d64c,'endTokenOffset':_0x375215};}function M(_0x16bd20){const _0x1cffa3=_0x49483d;return _0x5c8dbe(_0x16bd20)[_0x1cffa3(0x105)]-0x1;}function $e(_0x1dd05a,_0x50ea1f,_0x4c76dc,_0x1a7407){const _0xba63fb=_0x49483d;let _0x1d9a80=M(_0x50ea1f),_0x3473f6=(_0x1dd05a[_0xba63fb(0x8a)]??[])[_0xba63fb(0xd5)](_0x534be5=>_0x534be5[_0xba63fb(0xca)]===_0x1d9a80+0x1);if(!_0x3473f6||_0x1a7407!=null&&_0x3473f6[_0xba63fb(0xca)]!==_0x1a7407||_0x4c76dc!=null&&(_0x4c76dc<_0x1d9a80||_0x4c76dc>_0x3473f6[_0xba63fb(0xca)]+0x1)||_0x1dd05a[_0xba63fb(0x9d)][_0x3473f6[_0xba63fb(0xca)]]!==_0x23e365[_0xba63fb(0xff)])return null;let _0x3faa15=_0x53b91f(_0x1dd05a,_0x3473f6),_0x40f6b0=_0x1dd05a[_0xba63fb(0x9d)][_0xba63fb(0x86)](_0x3faa15,_0x3473f6['startIndex']);return Array[_0xba63fb(0xe0)](_0x40f6b0)[_0xba63fb(0xbe)](_0x1c3817=>_0x1c3817===_0x23e365[_0xba63fb(0x94)])?{'paragraph':_0x3473f6,'endTokenOffset':_0x1d9a80}:null;}function N(_0x4aac1c,_0x57183e){const _0x595756=_0x49483d;var _0x28a092;let _0x1a104d=M(_0x57183e),_0x57cb3c=_0x4aac1c[_0x595756(0x9d)][_0x1a104d+0x1];(_0x57cb3c===_0x23e365[_0x595756(0x80)]||_0x57cb3c===void 0x0)&&P(_0x4aac1c,_0x1a104d+0x1,_0x23e365[_0x595756(0xff)],{'paragraphs':[{'startIndex':0x0,'paragraphId':_0x338f66(new Set((_0x28a092=_0x4aac1c[_0x595756(0x8a)])==null?void 0x0:_0x28a092[_0x595756(0x10f)](_0xf7aa0=>_0xf7aa0[_0x595756(0xe3)])))}]});}function P(_0x3c719f,_0x1266f0,_0x15fe14,_0x51a13c={}){const _0x31ff68=_0x49483d;var _0x38a78a,_0x28a5a2;_0x15fe14&&(_0x3c719f[_0x31ff68(0x9d)]=''+_0x3c719f['dataStream']['slice'](0x0,_0x1266f0)+_0x15fe14+_0x3c719f[_0x31ff68(0x9d)]['slice'](_0x1266f0),et(_0x3c719f,_0x1266f0,_0x15fe14[_0x31ff68(0xa3)]),(_0x38a78a=_0x51a13c['paragraphs'])!=null&&_0x38a78a[_0x31ff68(0xa3)]&&(_0x3c719f[_0x31ff68(0x8a)]=[..._0x3c719f['paragraphs']??[],..._0x51a13c[_0x31ff68(0x8a)][_0x31ff68(0x10f)](_0x27a966=>({..._0x27a966,'startIndex':_0x27a966[_0x31ff68(0xca)]+_0x1266f0}))][_0x31ff68(0x8f)]((_0x58d0c1,_0x5efc5c)=>_0x58d0c1[_0x31ff68(0xca)]-_0x5efc5c['startIndex'])),(_0x28a5a2=_0x51a13c['blockRanges'])!=null&&_0x28a5a2[_0x31ff68(0xa3)]&&(_0x3c719f[_0x31ff68(0x79)]=[..._0x3c719f[_0x31ff68(0x79)]??[],..._0x51a13c[_0x31ff68(0x79)]['map'](_0x19ed57=>({..._0x19ed57,'startIndex':_0x19ed57[_0x31ff68(0xca)]+_0x1266f0,'endIndex':_0x19ed57[_0x31ff68(0xfb)]+_0x1266f0}))][_0x31ff68(0x8f)]((_0x2aa1d1,_0x57c34b)=>_0x2aa1d1[_0x31ff68(0xca)]-_0x57c34b['startIndex'])));}function F(_0x48e2a9,_0x4c0fd9,_0x582d97){const _0x177543=_0x49483d;let _0x53e781=_0x582d97-_0x4c0fd9;_0x48e2a9[_0x177543(0x9d)]=''+_0x48e2a9[_0x177543(0x9d)][_0x177543(0x86)](0x0,_0x4c0fd9)+_0x48e2a9[_0x177543(0x9d)][_0x177543(0x86)](_0x582d97),tt(_0x48e2a9,_0x4c0fd9,_0x53e781);}function et(_0x54ca30,_0x2b9eb2,_0x5cf9e1){const _0x5afbfb=_0x49483d;_0x54ca30[_0x5afbfb(0x8a)]=I(_0x54ca30[_0x5afbfb(0x8a)],_0x2b9eb2,_0x5cf9e1),_0x54ca30[_0x5afbfb(0x6d)]=I(_0x54ca30[_0x5afbfb(0x6d)],_0x2b9eb2,_0x5cf9e1),_0x54ca30[_0x5afbfb(0x9b)]=I(_0x54ca30[_0x5afbfb(0x9b)],_0x2b9eb2,_0x5cf9e1),_0x54ca30['textRuns']=nt(_0x54ca30[_0x5afbfb(0x95)],_0x2b9eb2,_0x5cf9e1),_0x54ca30[_0x5afbfb(0xe8)]=rt(_0x54ca30['tables'],_0x2b9eb2,_0x5cf9e1),_0x54ca30[_0x5afbfb(0xc9)]=R(_0x54ca30[_0x5afbfb(0xc9)],_0x2b9eb2,_0x5cf9e1),_0x54ca30[_0x5afbfb(0x90)]=R(_0x54ca30[_0x5afbfb(0x90)],_0x2b9eb2,_0x5cf9e1),_0x54ca30[_0x5afbfb(0xd8)]=R(_0x54ca30[_0x5afbfb(0xd8)],_0x2b9eb2,_0x5cf9e1),_0x54ca30[_0x5afbfb(0x79)]=R(_0x54ca30[_0x5afbfb(0x79)],_0x2b9eb2,_0x5cf9e1);}function tt(_0x4b784f,_0x1811bf,_0x11d3a5){const _0x55f1a0=_0x49483d;var _0x55f068,_0x3fa23d;_0x4b784f['paragraphs']=L(_0x4b784f[_0x55f1a0(0x8a)],_0x1811bf,_0x11d3a5),_0x4b784f[_0x55f1a0(0x6d)]=L(_0x4b784f['sectionBreaks'],_0x1811bf,_0x11d3a5),_0x4b784f[_0x55f1a0(0x9b)]=L(_0x4b784f[_0x55f1a0(0x9b)],_0x1811bf,_0x11d3a5),_0x4b784f[_0x55f1a0(0x95)]=(_0x55f068=it((_0x3fa23d=_0x4b784f[_0x55f1a0(0x95)])==null?void 0x0:_0x3fa23d[_0x55f1a0(0x10f)](_0xa8dc8c=>({..._0xa8dc8c,'startIndex':_0xa8dc8c['st'],'endIndex':_0xa8dc8c['ed']})),_0x1811bf,_0x11d3a5))==null?void 0x0:_0x55f068[_0x55f1a0(0x10f)](_0x44d1b4=>{let {startIndex:_0x3c5a04,endIndex:_0x2ba6af,..._0x1b2e46}=_0x44d1b4;return{..._0x1b2e46,'st':_0x3c5a04,'ed':_0x2ba6af};}),_0x4b784f[_0x55f1a0(0xe8)]=it(_0x4b784f[_0x55f1a0(0xe8)],_0x1811bf,_0x11d3a5),_0x4b784f['columnGroups']=z(_0x4b784f[_0x55f1a0(0xc9)],_0x1811bf,_0x11d3a5),_0x4b784f[_0x55f1a0(0x90)]=z(_0x4b784f[_0x55f1a0(0x90)],_0x1811bf,_0x11d3a5),_0x4b784f[_0x55f1a0(0xd8)]=z(_0x4b784f['customDecorations'],_0x1811bf,_0x11d3a5),_0x4b784f[_0x55f1a0(0x79)]=z(_0x4b784f[_0x55f1a0(0x79)],_0x1811bf,_0x11d3a5);}function I(_0x35a8ac,_0xb5d92,_0x3536ca){const _0x2989c3=_0x49483d;return _0x35a8ac==null?void 0x0:_0x35a8ac[_0x2989c3(0x10f)](_0x49764d=>_0x49764d[_0x2989c3(0xca)]>=_0xb5d92?{..._0x49764d,'startIndex':_0x49764d['startIndex']+_0x3536ca}:_0x49764d);}function L(_0x1d4770,_0x34a2d7,_0x15307b){const _0xacf524=_0x49483d;let _0xc61e6c=_0x34a2d7+_0x15307b;return _0x1d4770==null?void 0x0:_0x1d4770[_0xacf524(0x10f)](_0x49ce98=>_0x49ce98[_0xacf524(0xca)]>=_0x34a2d7&&_0x49ce98['startIndex']<_0xc61e6c?null:_0x49ce98[_0xacf524(0xca)]>=_0xc61e6c?{..._0x49ce98,'startIndex':_0x49ce98['startIndex']-_0x15307b}:_0x49ce98)[_0xacf524(0xf1)](_0x41efe3=>_0x41efe3!=null);}function nt(_0x430eea,_0x12f39b,_0x3714b7){const _0x314ba2=_0x49483d;return _0x430eea==null?void 0x0:_0x430eea[_0x314ba2(0x10f)](_0x173020=>_0x173020['st']>=_0x12f39b?{..._0x173020,'st':_0x173020['st']+_0x3714b7,'ed':_0x173020['ed']+_0x3714b7}:_0x173020['ed']>_0x12f39b?{..._0x173020,'ed':_0x173020['ed']+_0x3714b7}:_0x173020);}function R(_0x2264a,_0x249d9e,_0x791a33){const _0x1728bd=_0x49483d;return _0x2264a==null?void 0x0:_0x2264a[_0x1728bd(0x10f)](_0x48860e=>_0x4cbd10(_0x48860e,_0x249d9e,_0x791a33));}function rt(_0x37cbe8,_0x148210,_0x320124){const _0x48a36e=_0x49483d;return _0x37cbe8==null?void 0x0:_0x37cbe8[_0x48a36e(0x10f)](_0xbe57dc=>_0x3f24e6(_0xbe57dc,_0x148210,_0x320124));}function z(_0x26908f,_0x45c75c,_0x522636){const _0x44a783=_0x49483d;return _0x26908f==null?void 0x0:_0x26908f[_0x44a783(0x10f)](_0x35cd26=>_0x2cee19(_0x35cd26,_0x45c75c,_0x522636))['filter'](_0x58a29c=>_0x58a29c!=null);}function it(_0x43824b,_0x53de3f,_0x15acc3){const _0xab3232=_0x49483d;return _0x43824b==null?void 0x0:_0x43824b['map'](_0x5786c3=>_0xc1b9cd(_0x5786c3,_0x53de3f,_0x15acc3))[_0xab3232(0xf1)](_0x3e1274=>_0x3e1274!=null);}function _0x10b3(_0x139bf2,_0x367a17){_0x139bf2=_0x139bf2-0x65;const _0x1d98ba=_0x1d98();let _0x10b317=_0x1d98ba[_0x139bf2];return _0x10b317;}const at={'id':_0x49483d(0x82),'type':_0x446cfc[_0x49483d(0xba)],'handler':_0x54aef2=>{const _0x45975b=_0x49483d;var _0x2e7799;if(_0x584ad5(G(_0x54aef2)))return!0x1;let _0x29ef0f=_0x34eb39(_0x54aef2);if(_0x29ef0f)return _0x54aef2[_0x45975b(0xbd)](_0x330d40)['syncExecuteCommand'](B['id'],{'startOffset':_0x29ef0f[_0x45975b(0x10e)],'endOffset':_0x29ef0f[_0x45975b(0x105)],'insertionMode':_0x45975b(0xf5),'unitId':_0x29ef0f[_0x45975b(0x10b)]});let _0x1cc77b=ft(_0x54aef2);if(!_0x1cc77b)return!0x1;let _0x4c2b84=(_0x2e7799=_0x54aef2[_0x45975b(0xbd)](_0x1f322c)[_0x45975b(0x91)](_0x2fc27d[_0x45975b(0x100)]))==null?void 0x0:_0x2e7799['getBody'](),_0x4d02b7=_0x4c2b84?_0x15574e(_0x4c2b84,_0x1cc77b):_0x1cc77b[_0x45975b(0xca)]+0x1;return _0x54aef2[_0x45975b(0xbd)](_0x330d40)['syncExecuteCommand'](B['id'],{'startOffset':_0x4d02b7,'endOffset':_0x4d02b7});}},ot={'id':_0x49483d(0xf9),'type':_0x446cfc[_0x49483d(0xba)],'handler':()=>!0x0},B={'id':'docs-code.command.insert','type':_0x446cfc[_0x49483d(0xba)],'handler':(_0x5ced54,_0xfff347)=>{const _0x11f6f6=_0x49483d;let _0x4364cb=W(_0x5ced54,_0xfff347==null?void 0x0:_0xfff347[_0x11f6f6(0x10b)]);if(!_0x4364cb)return!0x1;let _0x2f4f7b=G(_0x5ced54);if(_0x584ad5(_0x2f4f7b))return!0x1;let _0x470f30=_0x4364cb[_0x11f6f6(0xae)][_0x11f6f6(0x7c)](_0x4364cb[_0x11f6f6(0x10b)]),_0x447e02=lt(_0xfff347,_0x2f4f7b),_0x36928e=ut(_0x4364cb[_0x11f6f6(0x106)],_0x447e02);if(_0x36928e){if(_0x36928e[_0x11f6f6(0xc4)]!==_0x2324fb['CODE'])return!0x1;let _0x4f47c4=D({'blockId':_0x36928e['blockId'],'documentData':_0x4364cb[_0x11f6f6(0x106)],'metadata':_0x470f30});if(!_0x4f47c4)return!0x1;let _0xc56bdf=Y(_0x4364cb[_0x11f6f6(0xc7)],_0x4364cb[_0x11f6f6(0xac)],_0x4364cb[_0x11f6f6(0x10b)],_0x4364cb[_0x11f6f6(0x106)],_0x4f47c4[_0x11f6f6(0xce)],B['id'],_0x4f47c4[_0x11f6f6(0xdb)]);return _0xc56bdf&&_0x4f47c4[_0x11f6f6(0x84)]&&_0x4364cb[_0x11f6f6(0xae)]['deserialize'](_0x4364cb[_0x11f6f6(0x10b)],_0x4f47c4['nextMetadata']),_0xc56bdf;}let _0x57aa41=(_0xfff347==null?void 0x0:_0xfff347[_0x11f6f6(0x96)])??_0x5cf7a0(0x6),_0xe03c18;try{_0xe03c18=De({'blockId':_0x57aa41,'config':_0xfff347==null?void 0x0:_0xfff347[_0x11f6f6(0x9c)],'documentData':_0x4364cb[_0x11f6f6(0x106)],'endOffset':_0x447e02==null?void 0x0:_0x447e02[_0x11f6f6(0x105)],'insertionMode':_0xfff347==null?void 0x0:_0xfff347[_0x11f6f6(0xa9)],'metadata':_0x470f30,'startOffset':_0x447e02==null?void 0x0:_0x447e02[_0x11f6f6(0x10e)]});}catch(_0x272d0a){if(_0x272d0a instanceof E)return!0x1;throw _0x272d0a;}let _0x28b016=Y(_0x4364cb[_0x11f6f6(0xc7)],_0x4364cb['selectionManager'],_0x4364cb[_0x11f6f6(0x10b)],_0x4364cb['previousDocumentData'],_0xe03c18[_0x11f6f6(0xce)],B['id'],_0xe03c18[_0x11f6f6(0xdb)]);return _0x28b016&&_0xe03c18[_0x11f6f6(0x84)]&&_0x4364cb[_0x11f6f6(0xae)][_0x11f6f6(0x65)](_0x4364cb[_0x11f6f6(0x10b)],_0xe03c18[_0x11f6f6(0x84)]),_0x28b016;}},st={'id':'docs-code.command.update','type':_0x446cfc['COMMAND'],'handler':(_0x6a12c2,_0x2a753a)=>{const _0x13a052=_0x49483d;if(!_0x2a753a)return!0x1;let _0x92192=W(_0x6a12c2,_0x2a753a[_0x13a052(0x10b)]);if(!_0x92192)return!0x1;let _0x1319af=je({'blockId':_0x2a753a[_0x13a052(0x96)],'config':_0x2a753a[_0x13a052(0x9c)],'documentData':_0x92192[_0x13a052(0x106)],'metadata':_0x92192['model'][_0x13a052(0x7c)](_0x92192[_0x13a052(0x10b)])});return _0x1319af[_0x13a052(0x84)]&&_0x92192[_0x13a052(0xae)]['deserialize'](_0x92192[_0x13a052(0x10b)],_0x1319af[_0x13a052(0x84)]),!0x0;}},ct={'id':'docs-code.command.exit','type':_0x446cfc['COMMAND'],'handler':(_0xa76678,_0x21d0f2)=>V[_0x49483d(0xb0)](_0xa76678,_0x21d0f2)},V={'id':_0x49483d(0xc2),'type':_0x446cfc[_0x49483d(0xba)],'handler':(_0x4317f9,_0x1ac49a)=>{const _0xb165f0=_0x49483d;if(!_0x1ac49a)return!0x1;let _0x128479=W(_0x4317f9,_0x1ac49a==null?void 0x0:_0x1ac49a[_0xb165f0(0x10b)]);if(!_0x128479)return!0x1;let _0x27a2db=D({'blockId':_0x1ac49a[_0xb165f0(0x96)],'documentData':_0x128479['previousDocumentData'],'metadata':_0x128479[_0xb165f0(0xae)][_0xb165f0(0x7c)](_0x128479[_0xb165f0(0x10b)])});if(!_0x27a2db)return!0x1;let _0x5bf9be=Y(_0x128479[_0xb165f0(0xc7)],_0x128479[_0xb165f0(0xac)],_0x128479['unitId'],_0x128479[_0xb165f0(0x106)],_0x27a2db[_0xb165f0(0xce)],V['id'],_0x27a2db['cursorOffset']);return _0x5bf9be&&_0x27a2db[_0xb165f0(0x84)]&&_0x128479['model']['deserialize'](_0x128479[_0xb165f0(0x10b)],_0x27a2db[_0xb165f0(0x84)]),_0x5bf9be;}},H={'id':_0x49483d(0xa0),'type':_0x446cfc[_0x49483d(0xba)],'handler':(_0x32bd2a,_0x71fc0f)=>{const _0xe9b79c=_0x49483d;if(!_0x71fc0f)return!0x1;let _0x8665ad=W(_0x32bd2a,_0x71fc0f==null?void 0x0:_0x71fc0f[_0xe9b79c(0x10b)]);if(!_0x8665ad)return!0x1;let _0xf6f7ec=Me({'blockId':_0x71fc0f[_0xe9b79c(0x96)],'documentData':_0x8665ad[_0xe9b79c(0x106)],'metadata':_0x8665ad[_0xe9b79c(0xae)][_0xe9b79c(0x7c)](_0x8665ad[_0xe9b79c(0x10b)])});if(!_0xf6f7ec)return!0x1;let _0x29a4fb=Y(_0x8665ad['commandService'],_0x8665ad[_0xe9b79c(0xac)],_0x8665ad['unitId'],_0x8665ad[_0xe9b79c(0x106)],_0xf6f7ec[_0xe9b79c(0xce)],H['id'],_0xf6f7ec[_0xe9b79c(0xdb)]);return _0x29a4fb&&_0xf6f7ec[_0xe9b79c(0x84)]&&_0x8665ad[_0xe9b79c(0xae)][_0xe9b79c(0x65)](_0x8665ad[_0xe9b79c(0x10b)],_0xf6f7ec[_0xe9b79c(0x84)]),_0x29a4fb;}},U={'id':_0x49483d(0xdf),'type':_0x446cfc[_0x49483d(0xba)],'handler':(_0x1a7e0e,_0x39ac38)=>{const _0x36bd4e=_0x49483d;var _0x33d82f;let _0x373be3=W(_0x1a7e0e,_0x39ac38==null?void 0x0:_0x39ac38['unitId']);if(!_0x373be3)return!0x1;let _0x3c9908=(_0x39ac38==null?void 0x0:_0x39ac38['cursorOffset'])??((_0x33d82f=G(_0x1a7e0e))==null?void 0x0:_0x33d82f[_0x36bd4e(0x10e)]);if(_0x3c9908==null)return!0x1;let _0x54d46e=Ne({'cursorOffset':_0x3c9908,'documentData':_0x373be3[_0x36bd4e(0x106)],'paragraphStartIndex':_0x39ac38==null?void 0x0:_0x39ac38['paragraphStartIndex']});return _0x54d46e?Y(_0x373be3[_0x36bd4e(0xc7)],_0x373be3['selectionManager'],_0x373be3['unitId'],_0x373be3[_0x36bd4e(0x106)],_0x54d46e[_0x36bd4e(0xce)],U['id'],_0x54d46e[_0x36bd4e(0xdb)]):!0x1;}};function W(_0xd4eb6a,_0x4cb76d){const _0x24888c=_0x49483d;let _0x4ee59d=_0xd4eb6a[_0x24888c(0xbd)](_0x1f322c),_0x3ffd57=_0x4cb76d?_0x4ee59d[_0x24888c(0xaf)](_0x4cb76d,_0x2fc27d[_0x24888c(0x100)]):_0x4ee59d['getCurrentUnitOfType'](_0x2fc27d[_0x24888c(0x100)]);return _0x3ffd57?{'commandService':_0xd4eb6a[_0x24888c(0xbd)](_0x330d40),'model':_0xd4eb6a[_0x24888c(0xbd)](w),'previousDocumentData':_0x3ffd57[_0x24888c(0xb6)](),'selectionManager':_0xd4eb6a['get'](_0x2baf85),'unitId':_0x3ffd57[_0x24888c(0x66)]()}:null;}function G(_0x34f940){const _0x4f44bd=_0x49483d;var _0x5a03b0;return(_0x5a03b0=_0x34f940[_0x4f44bd(0xbd)](_0x2baf85)[_0x4f44bd(0x6f)]())==null?void 0x0:_0x5a03b0[0x0];}function lt(_0x555859,_0x19d3df){const _0x377f13=_0x49483d;let _0x14de05=(_0x555859==null?void 0x0:_0x555859[_0x377f13(0x10e)])??(_0x19d3df==null?void 0x0:_0x19d3df[_0x377f13(0x10e)]),_0x21b04f=(_0x555859==null?void 0x0:_0x555859[_0x377f13(0x105)])??(_0x19d3df==null?void 0x0:_0x19d3df[_0x377f13(0x105)]);if(_0x14de05!=null&&_0x21b04f!=null)return{'endOffset':Math[_0x377f13(0xda)](_0x14de05,_0x21b04f),'startOffset':Math[_0x377f13(0xef)](_0x14de05,_0x21b04f)};}function ut(_0xa33196,_0x56ce2c){const _0x591e07=_0x49483d;var _0xf3b25;if(!_0x56ce2c)return;let _0x520d36=dt(_0x56ce2c);return(_0xf3b25=_0xa33196['body'])==null||(_0xf3b25=_0xf3b25[_0x591e07(0x79)])==null?void 0x0:_0xf3b25[_0x591e07(0xd5)](_0x5e51ee=>{const _0x7cb9f8=_0x591e07;let _0x5dfe9c=_0x5c8dbe(_0x5e51ee);return _0x56ce2c[_0x7cb9f8(0x10e)]===_0x56ce2c['endOffset']?_0x116958(_0x5dfe9c,_0x520d36):_0x2d8224(_0x5dfe9c,_0x520d36);});}function dt(_0x2e8a1f){const _0x35289b=_0x49483d;return _0x2e8a1f[_0x35289b(0x10e)]===_0x2e8a1f[_0x35289b(0x105)]?_0x2e8a1f[_0x35289b(0x10e)]:_0x2e8a1f['startOffset']+0x1;}function ft(_0x427789){const _0x19f654=_0x49483d;let _0x405096=G(_0x427789);if(!_0x405096)return null;let _0x2b49f8=_0x427789[_0x19f654(0xbd)](_0x1f322c)['getCurrentUnitOfType'](_0x2fc27d[_0x19f654(0x100)]),_0x21ddc4=_0x2b49f8==null?void 0x0:_0x2b49f8['getBody']();return _0x21ddc4?_0x18ba16[_0x19f654(0x10d)][_0x19f654(0xd7)](_0x405096,_0x21ddc4['paragraphs']??[],_0x21ddc4['dataStream']??'')[0x0]??null:null;}function pt(_0x222ea4,_0x2c117a){const _0x261dfb=_0x49483d;let _0x2a1c3c=_0x222ea4['body'],_0x79e5c3=_0x2c117a['body'],_0x4de52e=_0x5c68b1(_0x2a1c3c,_0x79e5c3);return[_0x4de52e&&_0x79e5c3?mt(_0x79e5c3,_0x4de52e):null,_0x4de52e?null:ht(_0x2a1c3c,_0x79e5c3)]['filter'](Boolean)[_0x261dfb(0x83)]((_0x570cd9,_0x648e99)=>_0x424cd6[_0x261dfb(0xc5)](_0x570cd9,_0x648e99),null);}function mt(_0x53d23b,_0x4171f5){const _0xb39234=_0x49483d;let _0x434ce8=new _0x227fc3();return _0x434ce8[_0xb39234(0x74)](_0x4171f5[_0xb39234(0x102)]),_0x4171f5['insertLength']>0x0&&_0x434ce8[_0xb39234(0xcb)](_0x4171f5[_0xb39234(0xec)],_0x25d42f(_0x53d23b,_0x4171f5[_0xb39234(0x102)],_0x4171f5['start']+_0x4171f5['insertLength'],!0x1)),_0x4171f5['deleteLength']>0x0&&_0x434ce8[_0xb39234(0xe1)](_0x4171f5['deleteLength']),_0x424cd6[_0xb39234(0xfe)]()[_0xb39234(0x70)](_0x434ce8[_0xb39234(0x7c)](),[_0xb39234(0xc3)]);}function ht(_0x1da439,_0x1ed598){const _0x1d21a5=_0x49483d;let _0x253ce5=[],_0x2b67a7=_0x1da439?_t(_0x1da439):void 0x0,_0x3691f0=_0x1ed598?_t(_0x1ed598):void 0x0;for(let _0x38473a of gt)K(_0x424cd6[_0x1d21a5(0xfe)](),[_0x1d21a5(0xc3),_0x38473a],_0x2b67a7==null?void 0x0:_0x2b67a7[_0x38473a],_0x3691f0==null?void 0x0:_0x3691f0[_0x38473a],_0x253ce5);return _0x253ce5[_0x1d21a5(0x83)]((_0x5dbd29,_0x57f324)=>_0x424cd6[_0x1d21a5(0xc5)](_0x5dbd29,_0x57f324),null);}const gt=[_0x49483d(0x8a),_0x49483d(0x6d),_0x49483d(0xe8),_0x49483d(0xc9),_0x49483d(0x79),_0x49483d(0x9b),'customRanges',_0x49483d(0xd8),_0x49483d(0x95)];function _t(_0x788228){return _0x788228;}function K(_0x24a0fd,_0x36df53,_0x356f6e,_0x16d58f,_0x19a41a){const _0xfba002=_0x49483d;if(!J(_0x356f6e,_0x16d58f)){if(_0x356f6e==null){_0x19a41a[_0xfba002(0xde)](_0x24a0fd[_0xfba002(0x101)](_0x36df53,_0x16d58f));return;}if(_0x16d58f==null){_0x19a41a[_0xfba002(0xde)](_0x24a0fd[_0xfba002(0xf0)](_0x36df53,_0x356f6e));return;}if(Array[_0xfba002(0x67)](_0x356f6e)&&Array[_0xfba002(0x67)](_0x16d58f)){vt(_0x24a0fd,_0x36df53,_0x356f6e,_0x16d58f,_0x19a41a);return;}if(q(_0x356f6e)&&q(_0x16d58f)){new Set([...Object[_0xfba002(0xc1)](_0x356f6e),...Object[_0xfba002(0xc1)](_0x16d58f)])['forEach'](_0x4efe8b=>{K(_0x24a0fd,[..._0x36df53,_0x4efe8b],_0x356f6e[_0x4efe8b],_0x16d58f[_0x4efe8b],_0x19a41a);});return;}_0x19a41a[_0xfba002(0xde)](_0x24a0fd[_0xfba002(0xaa)](_0x36df53,_0x356f6e,_0x16d58f));}}function vt(_0x308964,_0x597f92,_0x1a7922,_0x3ef404,_0x1663fc){const _0x22e6c0=_0x49483d;if(_0x1a7922[_0x22e6c0(0xa3)]===_0x3ef404[_0x22e6c0(0xa3)]){_0x1a7922[_0x22e6c0(0xe5)]((_0x211b4e,_0x1d73d1)=>K(_0x308964,[..._0x597f92,_0x1d73d1],_0x211b4e,_0x3ef404[_0x1d73d1],_0x1663fc));return;}let _0x117c98=0x0;for(;_0x117c98<_0x1a7922[_0x22e6c0(0xa3)]&&_0x117c98<_0x3ef404['length']&&J(_0x1a7922[_0x117c98],_0x3ef404[_0x117c98]);)_0x117c98++;let _0x15a85a=_0x1a7922['length']-0x1,_0x278a39=_0x3ef404[_0x22e6c0(0xa3)]-0x1;for(;_0x15a85a>=_0x117c98&&_0x278a39>=_0x117c98&&J(_0x1a7922[_0x15a85a],_0x3ef404[_0x278a39]);)_0x15a85a--,_0x278a39--;for(let _0x43fb6a=_0x15a85a;_0x43fb6a>=_0x117c98;_0x43fb6a--)_0x1663fc[_0x22e6c0(0xde)](_0x308964[_0x22e6c0(0xf0)]([..._0x597f92,_0x43fb6a],_0x1a7922[_0x43fb6a]));for(let _0x3c12d1=_0x117c98;_0x3c12d1<=_0x278a39;_0x3c12d1++)_0x1663fc[_0x22e6c0(0xde)](_0x308964[_0x22e6c0(0x101)]([..._0x597f92,_0x3c12d1],_0x3ef404[_0x3c12d1]));}function q(_0x4797f5){const _0x5d12d5=_0x49483d;return typeof _0x4797f5=='object'&&!!_0x4797f5&&!Array[_0x5d12d5(0x67)](_0x4797f5);}function J(_0x5a92d8,_0x3219c0){const _0x534fbb=_0x49483d;return JSON[_0x534fbb(0x9f)](_0x5a92d8)===JSON[_0x534fbb(0x9f)](_0x3219c0);}function Y(_0x2b8fb0,_0x5ae991,_0x13d374,_0x2c033f,_0x31579f,_0x308447,_0x3db8be){const _0x2c80f3=_0x49483d;let _0x528c68=pt(_0x2c033f,_0x31579f);return _0x528c68?!!_0x2b8fb0[_0x2c80f3(0xe6)](_0x274029['id'],{'unitId':_0x13d374,'actions':_0x528c68,'textRanges':[{'startOffset':_0x3db8be,'endOffset':_0x3db8be,'collapsed':!0x0}],'isEditing':!0x1,'trigger':_0x308447}):(_0x5ae991[_0x2c80f3(0xa4)]([{'startOffset':_0x3db8be,'endOffset':_0x3db8be}],{'unitId':_0x13d374,'subUnitId':_0x13d374},!0x1),!0x0);}const X=_0x49483d(0x76);var yt=_0x49483d(0x88),bt=_0x49483d(0x7d);const xt={};function Z(_0x42699c,_0x3da817){return function(_0x78651b,_0x411faa){_0x3da817(_0x78651b,_0x411faa,_0x42699c);};}function St(_0x1fb6a7,_0x440249,_0x3b8ed4,_0x561e80){const _0x1f96ee=_0x49483d;var _0x1b43ba=arguments[_0x1f96ee(0xa3)],_0x423ae9=_0x1b43ba<0x3?_0x440249:_0x561e80===null?_0x561e80=Object['getOwnPropertyDescriptor'](_0x440249,_0x3b8ed4):_0x561e80,_0x2ba52f;if(typeof Reflect=='object'&&typeof Reflect['decorate']==_0x1f96ee(0x104))_0x423ae9=Reflect[_0x1f96ee(0xcd)](_0x1fb6a7,_0x440249,_0x3b8ed4,_0x561e80);else{for(var _0x12c472=_0x1fb6a7[_0x1f96ee(0xa3)]-0x1;_0x12c472>=0x0;_0x12c472--)(_0x2ba52f=_0x1fb6a7[_0x12c472])&&(_0x423ae9=(_0x1b43ba<0x3?_0x2ba52f(_0x423ae9):_0x1b43ba>0x3?_0x2ba52f(_0x440249,_0x3b8ed4,_0x423ae9):_0x2ba52f(_0x440249,_0x3b8ed4))||_0x423ae9);}return _0x1b43ba>0x3&&_0x423ae9&&Object['defineProperty'](_0x440249,_0x3b8ed4,_0x423ae9),_0x423ae9;}let Q=class extends _0x24e448{constructor(_0x1ee959,_0xb4519d){const _0x58c2d7=_0x49483d;super(),this[_0x58c2d7(0xbb)]=_0x1ee959,this[_0x58c2d7(0xab)]=_0xb4519d,this[_0x58c2d7(0xa5)]();}['_initResource'](){const _0x296147=_0x49483d;this[_0x296147(0xe2)](this[_0x296147(0xbb)][_0x296147(0xcc)]({'pluginName':X,'businesses':[_0x2fc27d[_0x296147(0x100)]],'toJson':_0x300f4=>JSON['stringify'](this[_0x296147(0xab)][_0x296147(0x7c)](_0x300f4)),'parseJson':_0x3cfe2e=>y(JSON[_0x296147(0xd2)](_0x3cfe2e)),'onLoad':(_0x2b4d4d,_0x20dbc8)=>this[_0x296147(0xab)][_0x296147(0x65)](_0x2b4d4d,_0x20dbc8),'onUnLoad':_0x16b5c9=>this[_0x296147(0xab)]['removeUnit'](_0x16b5c9)}));}};Q=St([Z(0x0,_0x4ec5e9),Z(0x1,_0x34c829(w))],Q);let $=class extends _0x5a8ee0{constructor(_0x222113=xt,_0x18758b,_0x590d25,_0x26903b){const _0x146d8d=_0x49483d;super(),this[_0x146d8d(0xb5)]=_0x222113,this[_0x146d8d(0x6a)]=_0x18758b,this[_0x146d8d(0xd6)]=_0x590d25,this[_0x146d8d(0xfc)]=_0x26903b;let {..._0x172860}=_0x1470e9({},xt,this[_0x146d8d(0xb5)]);this[_0x146d8d(0xfc)]['setConfig'](_0x146d8d(0x6e),_0x172860);}[_0x49483d(0x107)](){const _0x5207d1=_0x49483d;this['_injector'][_0x5207d1(0x7e)]([w]),this[_0x5207d1(0x6a)]['add']([Q]),this['_injector'][_0x5207d1(0xbd)](w),this[_0x5207d1(0x6a)][_0x5207d1(0xbd)](Q),[B,at,st,V,H,ct,U,ot,Te,T][_0x5207d1(0xe5)](_0x5dc876=>this['disposeWithMe'](this['_commandService'][_0x5207d1(0x8b)](_0x5dc876)));}};C($,_0x49483d(0xf8),X),C($,_0x49483d(0xa1),yt),C($,_0x49483d(0x109),bt),C($,_0x49483d(0x108),_0x2fc27d[_0x49483d(0x100)]),$=St([_0x5aaaeb(_0xecd332,_0x565d36),Z(0x1,_0x34c829(_0x38f326)),Z(0x2,_0x330d40),Z(0x3,_0x5ce515)],$);export{X as DOCS_CODE_PLUGIN,U as DocsCodeCancelEmptyParagraphCommand,ot as DocsCodeConsumeBoundaryDeleteCommand,at as DocsCodeInsertBelowCommand,B as DocsCodeInsertCommand,w as DocsCodeModel,H as DocsCodeRemoveCommand,V as DocsCodeUnwrapCommand,st as DocsCodeUpdateCommand,T as RemoveDocsCodeConfigMutation,Te as SetDocsCodeConfigMutation,$ as UniverDocsCodePlugin,Ne as buildCancelEmptyCodeParagraphActions,Ie as isCodeBoundaryDelete,v as normalizeDocsCodeConfig,y as normalizeDocsCodeMetadataResource};
1
+ const _0x47262e=_0x4005;(function(_0x20f793,_0x48c8e1){const _0x419890=_0x4005,_0x4847af=_0x20f793();while(!![]){try{const _0x36931d=parseInt(_0x419890(0x10a))/0x1+parseInt(_0x419890(0x117))/0x2+parseInt(_0x419890(0xae))/0x3+-parseInt(_0x419890(0x10b))/0x4+parseInt(_0x419890(0x139))/0x5*(-parseInt(_0x419890(0x145))/0x6)+-parseInt(_0x419890(0xcd))/0x7+parseInt(_0x419890(0x146))/0x8;if(_0x36931d===_0x48c8e1)break;else _0x4847af['push'](_0x4847af['shift']());}catch(_0x30764d){_0x4847af['push'](_0x4847af['shift']());}}}(_0x305b,0x33a15));import{BooleanNumber as _0x305636,BuildTextUtils as _0x39a794,CommandType as _0x56cb03,DataStreamTreeTokenType as _0x4e2eb9,DependentOn as _0x5a7055,Disposable as _0x4a683f,DocumentBlockRangeType as _0x5e660a,ICommandService as _0x590f1e,IConfigService as _0x5308c5,IResourceManagerService as _0x5bbb3a,IUniverInstanceService as _0x3505d2,Inject as _0x20224e,Injector as _0x31802d,JSONX as _0x1d5524,Plugin as _0x947f63,TextX as _0x4d07a5,UniverInstanceType as _0x4c80f2,containsInteriorInsertionOffset as _0xa244f6,containsStreamIndex as _0x8a4026,createParagraphId as _0x4e2158,generateRandomId as _0x339fc6,getBlockRangeInterval as _0x13b73c,getBodySliceForTextXAction as _0x36cb78,getParagraphContentStartOffset as _0x420e80,getParagraphContentStartOffsets as _0x412152,getParagraphFollowingBlockOffset as _0x5e6434,getSingleDataStreamChange as _0x10a6bd,intersectsOperationalIntervals as _0xaf64f7,merge as _0x3335f3,shiftExclusiveRangeOnDelete as _0x31ca35,shiftExclusiveRangeOnInsert as _0x5cd158,shiftInclusiveRangeOnDelete as _0x2ab905,shiftInclusiveRangeOnInsert as _0x243408}from'@univerjs/core';import{Subject as _0x3d9f3e}from'rxjs';import{DocSelectionManagerService as _0xa4b078,RichTextEditingMutation as _0x1711e6,UniverDocsPlugin as _0x18c0f9,getContentInsertRange as _0x50d82b,isHeaderFooterSelection as _0x288372}from'@univerjs/docs';import{UniverLicensePlugin as _0x4d7e7b}from'@univerjs-pro/license';const Se={'language':'javascript','showLineNumbers':!0x1,'tabSize':0x4,'wrap':!0x0};function v(_0x512d50){return{...Se,..._0x512d50};}function y(_0x3040cd){const _0x38a0bd=_0x4005;let _0x28398e=(_0x3040cd==null?void 0x0:_0x3040cd[_0x38a0bd(0x130)])??{};return{'codes':Object[_0x38a0bd(0xe6)](Object[_0x38a0bd(0xbd)](_0x28398e)[_0x38a0bd(0xb2)](([_0x1dde0f,_0x537a27])=>[_0x1dde0f,v(_0x537a27)]))};}function b(_0xf75148,_0x27d725,_0x1d233d){const _0x29f86e=_0x4005;let _0xc4681f=y(_0xf75148);return _0xc4681f[_0x29f86e(0x130)][_0x27d725]=v({..._0xc4681f[_0x29f86e(0x130)][_0x27d725],..._0x1d233d}),_0xc4681f;}function x(_0x1a660c,_0x200ddf){const _0x4ba688=_0x4005;let _0x41a85c=y(_0x1a660c);return delete _0x41a85c[_0x4ba688(0x130)][_0x200ddf],_0x41a85c;}function S(_0x169a72){'@babel/helpers - typeof';return S=typeof Symbol=='function'&&typeof Symbol['iterator']=='symbol'?function(_0x5d7bcb){return typeof _0x5d7bcb;}:function(_0x30004e){const _0x3538b9=_0x4005;return _0x30004e&&typeof Symbol==_0x3538b9(0x13d)&&_0x30004e[_0x3538b9(0x133)]===Symbol&&_0x30004e!==Symbol['prototype']?'symbol':typeof _0x30004e;},S(_0x169a72);}function _0x4005(_0x531beb,_0x4ff2e7){_0x531beb=_0x531beb-0xa5;const _0x305b34=_0x305b();let _0x4005a5=_0x305b34[_0x531beb];return _0x4005a5;}function Ce(_0x493049,_0x2223ab){const _0x2f34f3=_0x4005;if(S(_0x493049)!=_0x2f34f3(0x115)||!_0x493049)return _0x493049;var _0x3ba476=_0x493049[Symbol[_0x2f34f3(0x118)]];if(_0x3ba476!==void 0x0){var _0x202826=_0x3ba476[_0x2f34f3(0xb8)](_0x493049,_0x2223ab||'default');if(S(_0x202826)!='object')return _0x202826;throw TypeError(_0x2f34f3(0x111));}return(_0x2223ab===_0x2f34f3(0x129)?String:Number)(_0x493049);}function we(_0x2cba79){const _0x3e00ec=_0x4005;var _0x13e4c6=Ce(_0x2cba79,_0x3e00ec(0x129));return S(_0x13e4c6)==_0x3e00ec(0xda)?_0x13e4c6:_0x13e4c6+'';}function C(_0x4a464c,_0x213333,_0x421672){return(_0x213333=we(_0x213333))in _0x4a464c?Object['defineProperty'](_0x4a464c,_0x213333,{'value':_0x421672,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4a464c[_0x213333]=_0x421672,_0x4a464c;}var w=class extends _0x4a683f{constructor(..._0x3d0cd1){const _0x216d9c=_0x4005;super(..._0x3d0cd1),C(this,_0x216d9c(0xf2),new Map()),C(this,_0x216d9c(0x101),new _0x3d9f3e()),C(this,_0x216d9c(0xcc),this['_change$'][_0x216d9c(0xc2)]());}[_0x47262e(0xaa)](_0x574a61,_0x9f83e3){const _0x59ccc1=_0x47262e;return y(this['_resources'][_0x59ccc1(0xfd)](_0x574a61))[_0x59ccc1(0x130)][_0x9f83e3];}[_0x47262e(0xab)](_0x4f47b2,_0x560a7f,_0x37935a){const _0x544f46=_0x47262e;this['_setResource'](_0x4f47b2,_0x560a7f,b(this['_resources'][_0x544f46(0xfd)](_0x4f47b2),_0x560a7f,_0x37935a));}[_0x47262e(0xf7)](_0x3efc68,_0x3dd3d1){const _0x2efab6=_0x47262e;this['_setResource'](_0x3efc68,_0x3dd3d1,x(this[_0x2efab6(0xf2)][_0x2efab6(0xfd)](_0x3efc68),_0x3dd3d1));}['serialize'](_0x4cb589){const _0x22b4e7=_0x47262e;return y(this[_0x22b4e7(0xf2)][_0x22b4e7(0xfd)](_0x4cb589));}[_0x47262e(0x12f)](_0x2ae3b0,_0x3b4dc4){const _0x14910d=_0x47262e;this['_resources'][_0x14910d(0xe2)](_0x2ae3b0,y(_0x3b4dc4)),this[_0x14910d(0x101)][_0x14910d(0x149)]({'unitId':_0x2ae3b0});}['removeUnit'](_0x3257f0){const _0x2c44ec=_0x47262e;this[_0x2c44ec(0xf2)][_0x2c44ec(0xe3)](_0x3257f0),this['_change$'][_0x2c44ec(0x149)]({'unitId':_0x3257f0});}[_0x47262e(0xe4)](){const _0x15adbb=_0x47262e;super['dispose'](),this['_resources']['clear'](),this['_change$'][_0x15adbb(0x11f)]();}['_setResource'](_0x2873e4,_0x2ccee3,_0x40b4dd){const _0x16233a=_0x47262e;this[_0x16233a(0xf2)][_0x16233a(0xe2)](_0x2873e4,_0x40b4dd),this[_0x16233a(0x101)]['next']({'unitId':_0x2873e4,'blockId':_0x2ccee3});}};const Te={'id':_0x47262e(0xea),'type':_0x56cb03[_0x47262e(0x131)],'handler':(_0x61756b,_0x547f17)=>!(_0x547f17!=null&&_0x547f17[_0x47262e(0x136)])||!_0x547f17[_0x47262e(0xb1)]?!0x1:(_0x61756b[_0x47262e(0xfd)](w)[_0x47262e(0xab)](_0x547f17[_0x47262e(0x136)],_0x547f17['blockId'],_0x547f17[_0x47262e(0xf8)]),!0x0)},T={'id':_0x47262e(0x109),'type':_0x56cb03[_0x47262e(0x131)],'handler':(_0x1c7334,_0x344aa0)=>!(_0x344aa0!=null&&_0x344aa0[_0x47262e(0x136)])||!_0x344aa0[_0x47262e(0xb1)]?!0x1:(_0x1c7334['get'](w)['removeCode'](_0x344aa0[_0x47262e(0x136)],_0x344aa0['blockId']),!0x0)},Ee=_0x47262e(0xba);var E=class extends Error{constructor(_0x5ebdcc=_0x47262e(0xd7)){super(_0x5ebdcc);}};function De(_0x3bf6d5){const _0x379c6f=_0x47262e;var _0xabfdfe;let _0x5c9390=O(_0x3bf6d5['documentData']),_0x2a16de=A(_0x5c9390),_0xe6b726=ke(_0x3bf6d5['startOffset'],_0x3bf6d5[_0x379c6f(0xe1)]),_0x30f1d4=_0xe6b726?(_0xabfdfe=_0x2a16de['blockRanges'])==null?void 0x0:_0xabfdfe['find'](_0x53f219=>{const _0x537923=_0x379c6f;let _0x430a3c=_0x13b73c(_0x53f219);return _0x430a3c[_0x537923(0xe7)]===_0xe6b726[_0x537923(0xe7)]&&_0x430a3c['endOffset']===_0xe6b726['endOffset'];}):void 0x0,{startOffset:_0x7fc4d0,endOffset:_0x3f886f}=_0x30f1d4?_0xe6b726:We(_0x2a16de,_0x3bf6d5[_0x379c6f(0xe7)],_0x3bf6d5[_0x379c6f(0xe1)],_0x3bf6d5[_0x379c6f(0xc4)]);if(!_0x30f1d4&&Ae(_0x2a16de,_0x7fc4d0,_0x3f886f))throw new E(_0x379c6f(0x11a));let _0x33c25a=qe(_0x2a16de,_0x7fc4d0,_0x3f886f),_0x98b365=(_0x30f1d4==null?void 0x0:_0x30f1d4[_0x379c6f(0xb1)])??_0x3bf6d5[_0x379c6f(0xb1)],_0x3f3610=b(_0x3bf6d5['metadata'],_0x98b365,{...Se,..._0x3bf6d5[_0x379c6f(0xf8)]});if(_0x30f1d4)return _0x30f1d4[_0x379c6f(0x107)]=_0x5e660a[_0x379c6f(0x113)],Oe(_0x2a16de,_0x7fc4d0,_0x3f886f),ze(_0x2a16de,_0x7fc4d0,_0x3f886f,_0x33c25a),N(_0x2a16de,_0x30f1d4),{'nextDocumentData':_0x5c9390,'nextMetadata':_0x3f3610,'cursorOffset':_0x7fc4d0+0x1};if(_0x7fc4d0===_0x3f886f){var _0x4f4dc7,_0x14ce34;let _0x4d8275=''+_0x4e2eb9[_0x379c6f(0xd9)]+_0x4e2eb9[_0x379c6f(0xf3)]+_0x4e2eb9[_0x379c6f(0xd8)];P(_0x2a16de,_0x7fc4d0,_0x4d8275,{'paragraphs':[{'startIndex':0x1,'paragraphId':_0x4e2158(new Set((_0x4f4dc7=_0x2a16de[_0x379c6f(0xa8)])==null?void 0x0:_0x4f4dc7['map'](_0x514e03=>_0x514e03[_0x379c6f(0xd5)]))),'paragraphStyle':Re(!0x0,!0x0,_0x33c25a)}],'blockRanges':[{'blockId':_0x98b365,'blockType':_0x5e660a[_0x379c6f(0x113)],'startIndex':0x0,'endIndex':_0x4d8275['length']-0x1}]});let _0x1269be=(_0x14ce34=_0x2a16de[_0x379c6f(0x13e)])==null?void 0x0:_0x14ce34[_0x379c6f(0x124)](_0x58f73f=>_0x58f73f[_0x379c6f(0xb1)]===_0x98b365);return _0x1269be&&N(_0x2a16de,_0x1269be),{'nextDocumentData':_0x5c9390,'nextMetadata':_0x3f3610,'cursorOffset':_0x7fc4d0+0x1};}P(_0x2a16de,_0x3f886f,_0x4e2eb9[_0x379c6f(0xd8)]),P(_0x2a16de,_0x7fc4d0,_0x4e2eb9[_0x379c6f(0xd9)]),ze(_0x2a16de,_0x7fc4d0,_0x3f886f+0x1,_0x33c25a);let _0x540b7a={'blockId':_0x98b365,'blockType':_0x5e660a[_0x379c6f(0x113)],'startIndex':_0x7fc4d0,'endIndex':_0x3f886f+0x1};return _0x2a16de['blockRanges']=[..._0x2a16de[_0x379c6f(0x13e)]??[],_0x540b7a]['sort']((_0x1f7eb3,_0x5a5f81)=>_0x1f7eb3[_0x379c6f(0x108)]-_0x5a5f81[_0x379c6f(0x108)]),N(_0x2a16de,_0x540b7a),{'nextDocumentData':_0x5c9390,'nextMetadata':_0x3f3610,'cursorOffset':_0x7fc4d0+0x1};}function Oe(_0x30deb0,_0x2e0320,_0x3a55d6){const _0x3fcd78=_0x47262e;(_0x30deb0['paragraphs']??[])[_0x3fcd78(0x112)](_0x18a442=>_0x18a442[_0x3fcd78(0x108)]>_0x2e0320&&_0x18a442[_0x3fcd78(0x108)]<_0x3a55d6)[_0x3fcd78(0x138)](_0x53de5f=>{const _0x568120=_0x3fcd78;let _0x544edc={..._0x53de5f['paragraphStyle']??{}};delete _0x544edc[_0x568120(0xf4)],delete _0x544edc[_0x568120(0xf5)],_0x53de5f[_0x568120(0x14a)]=_0x544edc;});}function ke(_0x158462,_0x3f9328){const _0x9df4c=_0x47262e;return _0x158462==null||_0x3f9328==null||_0x158462===_0x3f9328?null:{'startOffset':Math['min'](_0x158462,_0x3f9328),'endOffset':Math[_0x9df4c(0x140)](_0x158462,_0x3f9328)};}function Ae(_0x229926,_0x3ee356,_0x20cf6a){const _0x1e0604=_0x47262e;return(_0x229926[_0x1e0604(0x13e)]??[])[_0x1e0604(0xaf)](_0x56eb56=>{let _0x539e1e=_0x13b73c(_0x56eb56);return _0x3ee356===_0x20cf6a?_0xa244f6(_0x539e1e,_0x3ee356):_0xaf64f7(_0x539e1e,{'startOffset':_0x3ee356,'endOffset':_0x20cf6a});});}function je(_0x2b6bd2){const _0x2b5404=_0x47262e;return{'nextDocumentData':O(_0x2b6bd2[_0x2b5404(0xa5)]),'nextMetadata':b(_0x2b6bd2[_0x2b5404(0xee)],_0x2b6bd2[_0x2b5404(0xb1)],_0x2b6bd2[_0x2b5404(0xf8)]),'cursorOffset':0x0};}function D(_0x4e4e8d){const _0x4f5fe8=_0x47262e;let _0x45a44f=O(_0x4e4e8d[_0x4f5fe8(0xa5)]),_0x485101=A(_0x45a44f),_0x2e9cb6=Fe(_0x485101,_0x4e4e8d['blockId']);if(!_0x2e9cb6)return null;let _0x5c5417=He(_0x485101,_0x2e9cb6);return{'nextDocumentData':_0x45a44f,'nextMetadata':x(_0x4e4e8d[_0x4f5fe8(0xee)],_0x4e4e8d['blockId']),'cursorOffset':_0x5c5417};}function Me(_0x5bd67a){const _0x2c8f4c=_0x47262e;var _0x75e3c4;let _0x12a5f6=O(_0x5bd67a[_0x2c8f4c(0xa5)]),_0x5cdb7d=A(_0x12a5f6),_0x11e0a2=Fe(_0x5cdb7d,_0x5bd67a[_0x2c8f4c(0xb1)]);if(!_0x11e0a2)return null;let _0x50cca8=_0x13b73c(_0x11e0a2);return F(_0x5cdb7d,_0x50cca8[_0x2c8f4c(0xe7)],_0x50cca8[_0x2c8f4c(0xe1)]),_0x5cdb7d[_0x2c8f4c(0x13e)]=(_0x75e3c4=_0x5cdb7d[_0x2c8f4c(0x13e)])==null?void 0x0:_0x75e3c4[_0x2c8f4c(0x112)](_0x53e3b1=>_0x53e3b1['blockId']!==_0x5bd67a[_0x2c8f4c(0xb1)]),{'nextDocumentData':_0x12a5f6,'nextMetadata':x(_0x5bd67a['metadata'],_0x5bd67a[_0x2c8f4c(0xb1)]),'cursorOffset':_0x11e0a2[_0x2c8f4c(0x108)]};}function Ne(_0x4c7542){const _0x49139a=_0x47262e;let _0x390cf4=O(_0x4c7542[_0x49139a(0xa5)]),_0x4c64a4=A(_0x390cf4),_0x1f94f3=Le(_0x4c64a4,_0x4c7542[_0x49139a(0x126)]);return _0x1f94f3&&Pe(_0x390cf4,_0x4c64a4,_0x1f94f3,_0x4c7542['cursorOffset'],_0x4c7542['paragraphStartIndex'])||null;}function Pe(_0x53243f,_0x43ca75,_0x2ae445,_0x47c42f,_0xf8b813){const _0x571978=_0x47262e;let _0x2d60ad=$e(_0x43ca75,_0x2ae445,_0x47c42f,_0xf8b813);if(!_0x2d60ad)return null;let _0x31b531=_0x2d60ad[_0x571978(0x128)]-0x1;return F(_0x43ca75,_0x2d60ad[_0x571978(0x120)][_0x571978(0x108)],_0x2d60ad[_0x571978(0x120)][_0x571978(0x108)]+0x1),{'nextDocumentData':_0x53243f,'cursorOffset':_0x31b531};}function Fe(_0x493169,_0x54cdce){const _0x253d89=_0x47262e;var _0x4f7d67;return _0x493169==null||(_0x4f7d67=_0x493169[_0x253d89(0x13e)])==null?void 0x0:_0x4f7d67['find'](_0x35c05b=>_0x35c05b[_0x253d89(0x107)]===_0x5e660a[_0x253d89(0x113)]&&_0x35c05b[_0x253d89(0xb1)]===_0x54cdce);}function Ie(_0x8ef6fe){const _0x309300=_0x47262e;let _0x56915c=_0x8ef6fe[_0x309300(0xa5)][_0x309300(0xa7)];if(!_0x56915c)return!0x1;let _0x12eaa0=_0x8ef6fe[_0x309300(0xb5)]===_0x309300(0xef)?_0x8ef6fe[_0x309300(0x126)]-0x1:_0x8ef6fe[_0x309300(0x126)],_0x1b4de5=_0x8ef6fe[_0x309300(0xb5)]===_0x309300(0xd6)?_0x8ef6fe[_0x309300(0x126)]+0x1:_0x12eaa0;return(_0x56915c[_0x309300(0x13e)]??[])[_0x309300(0xaf)](_0x14967c=>_0x14967c[_0x309300(0x107)]===_0x5e660a[_0x309300(0x113)]?_0x12eaa0===_0x14967c[_0x309300(0x108)]||_0x12eaa0===_0x14967c['endIndex']||_0x1b4de5===_0x14967c['startIndex']||_0x1b4de5===_0x14967c['endIndex']:!0x1);}function Le(_0x584f31,_0x28a6ad){const _0x28ce1a=_0x47262e;var _0x3a8a84;return(_0x3a8a84=_0x584f31[_0x28ce1a(0x13e)])==null?void 0x0:_0x3a8a84['find'](_0x14f07c=>{const _0x2700c4=_0x28ce1a;let _0x275f21=M(_0x14f07c);return _0x14f07c[_0x2700c4(0x107)]===_0x5e660a[_0x2700c4(0x113)]&&_0x14f07c['startIndex']<=_0x28a6ad&&_0x28a6ad<=_0x275f21+0x2;});}function Re(_0x5b2eba,_0x2143dc,_0x29729b=!0x1){const _0x46a91b=_0x47262e;return{'indentEnd':{'v':0x14},'indentStart':{'v':0x14},'keepLines':_0x305636[_0x46a91b(0xb9)],'keepNext':_0x2143dc?_0x305636[_0x46a91b(0x10d)]:_0x305636[_0x46a91b(0xb9)],'widowControl':_0x305636[_0x46a91b(0xb9)],..._0x5b2eba&&_0x29729b?{'spaceAbove':{'v':0x8}}:{},'textStyle':{'ff':Ee,'fs':0xc}};}function ze(_0x357c1d,_0x12cbd9,_0x58f251,_0x4070de=!0x1){const _0x291c04=_0x47262e;let _0x27e209=(_0x357c1d[_0x291c04(0xa8)]??[])[_0x291c04(0x112)](_0x246028=>_0x246028[_0x291c04(0x108)]>_0x12cbd9&&_0x246028[_0x291c04(0x108)]<_0x58f251);_0x27e209[_0x291c04(0x138)]((_0xabd74,_0x20aa41)=>{const _0x3abca3=_0x291c04;_0xabd74['paragraphStyle']={..._0xabd74[_0x3abca3(0x14a)]??{},...Re(_0x20aa41===0x0,_0x20aa41===_0x27e209[_0x3abca3(0xcb)]-0x1,_0x4070de)};});}function Be(_0x22aedc){const _0x2cf7ae=_0x47262e;var _0x591490,_0x205438;let _0x4406ff={..._0x22aedc??{}};return delete _0x4406ff[_0x2cf7ae(0x102)],delete _0x4406ff[_0x2cf7ae(0x142)],delete _0x4406ff[_0x2cf7ae(0xf4)],delete _0x4406ff[_0x2cf7ae(0xf5)],delete _0x4406ff[_0x2cf7ae(0x11c)],delete _0x4406ff[_0x2cf7ae(0xed)],delete _0x4406ff['widowControl'],((_0x591490=_0x4406ff[_0x2cf7ae(0xcf)])==null?void 0x0:_0x591490['ff'])===Ee&&((_0x205438=_0x4406ff['textStyle'])==null?void 0x0:_0x205438['fs'])===0xc&&delete _0x4406ff[_0x2cf7ae(0xcf)],_0x4406ff;}function Ve(_0x5e93f2,_0x3495c5){const _0x26eafe=_0x47262e;let _0x47c684=M(_0x3495c5);return(_0x5e93f2[_0x26eafe(0xa8)]??[])[_0x26eafe(0x112)](_0x259742=>_0x259742[_0x26eafe(0x108)]>_0x3495c5[_0x26eafe(0x108)]&&_0x259742[_0x26eafe(0x108)]<_0x47c684);}function He(_0x1ba698,_0xa9a9a0){const _0x401b16=_0x47262e;var _0x11d6eb;let _0x5b6ef2=M(_0xa9a9a0);return Ve(_0x1ba698,_0xa9a9a0)['forEach'](_0x3a423f=>{const _0x25a1de=_0x4005;_0x3a423f[_0x25a1de(0x14a)]=Be(_0x3a423f[_0x25a1de(0x14a)]);}),F(_0x1ba698,_0x5b6ef2,_0x5b6ef2+0x1),F(_0x1ba698,_0xa9a9a0['startIndex'],_0xa9a9a0[_0x401b16(0x108)]+0x1),_0x1ba698[_0x401b16(0x13e)]=(_0x11d6eb=_0x1ba698[_0x401b16(0x13e)])==null?void 0x0:_0x11d6eb['filter'](_0x4921c2=>_0x4921c2['blockId']!==_0xa9a9a0[_0x401b16(0xb1)]),_0xa9a9a0[_0x401b16(0x108)];}function O(_0xb676eb){const _0xc33668=_0x47262e;return{..._0xb676eb,'body':_0xb676eb[_0xc33668(0xa7)]?Ue(_0xb676eb[_0xc33668(0xa7)]):_0xb676eb['body']};}function Ue(_0x553898){const _0x4fac51=_0x47262e;var _0x485758,_0x33dded,_0x5c7e47,_0x5c4098,_0x280d13,_0x428dc2,_0x1d4b36,_0x38aaa9,_0x1bec98;return{..._0x553898,'paragraphs':(_0x485758=_0x553898[_0x4fac51(0xa8)])==null?void 0x0:_0x485758['map'](_0x2525ba=>({..._0x2525ba,'bullet':k(_0x2525ba[_0x4fac51(0x135)]),'paragraphStyle':k(_0x2525ba[_0x4fac51(0x14a)])})),'sectionBreaks':(_0x33dded=_0x553898[_0x4fac51(0xc8)])==null?void 0x0:_0x33dded[_0x4fac51(0xb2)](_0x2d60e8=>({..._0x2d60e8})),'textRuns':(_0x5c7e47=_0x553898[_0x4fac51(0x13f)])==null?void 0x0:_0x5c7e47['map'](_0x1e51ab=>({..._0x1e51ab})),'tables':(_0x5c4098=_0x553898[_0x4fac51(0xdb)])==null?void 0x0:_0x5c4098[_0x4fac51(0xb2)](_0x2bb0a5=>({..._0x2bb0a5})),'columnGroups':(_0x280d13=_0x553898['columnGroups'])==null?void 0x0:_0x280d13[_0x4fac51(0xb2)](_0x41f704=>{const _0xe80414=_0x4fac51;var _0x1487c8;return{..._0x41f704,'columns':(_0x1487c8=_0x41f704[_0xe80414(0x11d)])==null?void 0x0:_0x1487c8[_0xe80414(0xb2)](_0x2a5db3=>k(_0x2a5db3))};}),'blockRanges':(_0x428dc2=_0x553898[_0x4fac51(0x13e)])==null?void 0x0:_0x428dc2[_0x4fac51(0xb2)](_0x41c4a4=>({..._0x41c4a4})),'customRanges':(_0x1d4b36=_0x553898['customRanges'])==null?void 0x0:_0x1d4b36[_0x4fac51(0xb2)](_0x446350=>({..._0x446350})),'customDecorations':(_0x38aaa9=_0x553898[_0x4fac51(0x141)])==null?void 0x0:_0x38aaa9[_0x4fac51(0xb2)](_0x2f2266=>({..._0x2f2266})),'customBlocks':(_0x1bec98=_0x553898[_0x4fac51(0x12e)])==null?void 0x0:_0x1bec98[_0x4fac51(0xb2)](_0x2986e8=>({..._0x2986e8}))};}function k(_0x8b792e){const _0x1fa3de=_0x47262e;return Array[_0x1fa3de(0xe0)](_0x8b792e)?_0x8b792e[_0x1fa3de(0xb2)](_0x460a77=>k(_0x460a77)):!_0x8b792e||typeof _0x8b792e!='object'?_0x8b792e:Object[_0x1fa3de(0xe6)](Object[_0x1fa3de(0xbd)](_0x8b792e)['map'](([_0x5a5c9f,_0x5329dd])=>[_0x5a5c9f,k(_0x5329dd)]));}function A(_0x40132d){const _0x2c0b68=_0x47262e;if(!_0x40132d[_0x2c0b68(0xa7)])throw Error(_0x2c0b68(0xf9));return _0x40132d[_0x2c0b68(0xa7)];}function _0x305b(){const _0x4df336=['828808wQwmbj','editOp','FALSE','every','_docsCodeModel','reduce','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','filter','CODE','endIndex','object','version','502652rCojPO','toPrimitive','getInstance','Insert\x20range\x20cannot\x20overlap\x20an\x20existing\x20document\x20block','dataStream','keepLines','columns','getSnapshot','complete','paragraph','registerCommand','_resourceManagerService','getCurrentUnitOfType','find','replaceDocRanges','cursorOffset','columnGroups','endTokenOffset','string','push','onStarting','slice','docs-code.command.cancel-empty-paragraph','customBlocks','deserialize','codes','MUTATION','_injector','constructor','SECTION_BREAK','bullet','unitId','commandService','forEach','370FZirck','removeUnit','min','stringify','function','blockRanges','textRuns','max','customDecorations','indentStart','serialize','getUnit','11754lEWgYT','278208wxbUAr','getOwnPropertyDescriptor','docs-code.command.consume-boundary-delete','next','paragraphStyle','documentData','disposeWithMe','body','paragraphs','defineProperty','getCodeConfig','setCodeConfig','COMMAND','insertOp','520758obMFiW','some','packageName','blockId','map','from','setConfig','direction','DOC_CODE_PLUGIN','removeOp','call','TRUE','monospace','docs-code.command.remove','UNIVER_DOC','entries','handler','endsWith','nextDocumentData','start','asObservable','retain','insertionMode','_initResource','getUnitId','TABLE_CELL_END','sectionBreaks','previousDocumentData','range','length','change$','351869nbecNb','pluginName','textStyle','customRanges','syncExecuteCommand','paragraphStartIndex','docs-code.command.insert','insertLength','paragraphId','right','Insert\x20range\x20cannot\x20cross\x20table\x20cell\x20boundaries','BLOCK_END','BLOCK_START','symbol','tables','TABLE_CELL_START','_configService','docs-code.command.update','deleteLength','isArray','endOffset','set','delete','dispose','getBody','fromEntries','startOffset','parse','nextMetadata','docs-code.mutation.set-config','insert','getTextRanges','keepNext','metadata','left','_config','indexOf','_resources','PARAGRAPH','spaceAbove','spaceBelow','1.0.3','removeCode','config','Document\x20body\x20is\x20required','startTokenOffset','sort','insert-new','get','@univerjs-pro/docs-code','selectionManager','model','_change$','indentEnd','decorate','registerPluginResource','add','keys','blockType','startIndex','docs-code.mutation.remove-config','154224RvZXBi'];_0x305b=function(){return _0x4df336;};return _0x305b();}function We(_0x2f35c7,_0x5685d0,_0x3a1076,_0x8995c5='convert-paragraph'){const _0x563f43=_0x47262e;if(_0x5685d0==null||_0x3a1076==null){let _0x305c52=Ke(_0x2f35c7);return{'startOffset':_0x305c52,'endOffset':_0x305c52};}let _0xe09a70=Math[_0x563f43(0x13b)](_0x5685d0,_0x3a1076),_0x30a176=Math['max'](_0x5685d0,_0x3a1076),_0x13828c=Ze(_0x2f35c7,_0xe09a70,_0x30a176);return _0xe09a70===_0x30a176?_0x8995c5===_0x563f43(0xfc)?{'startOffset':_0xe09a70,'endOffset':_0x30a176}:Ge(_0x2f35c7,_0xe09a70,_0x13828c):Je(_0x2f35c7,_0xe09a70,_0x30a176,_0x13828c);}function Ge(_0x3aac02,_0x58918c,_0x3e373d){const _0x453504=_0x47262e;let _0x418cf8=Ye(_0x3aac02,_0x58918c);if(_0x418cf8){let _0x4f077c=j(_0x3aac02,_0x418cf8,_0x3e373d);if(_0x4f077c<_0x418cf8[_0x453504(0x108)])return{'startOffset':_0x4f077c,'endOffset':_0x3e373d?Math[_0x453504(0x13b)](_0x418cf8[_0x453504(0x108)]+0x1,_0x3e373d[_0x453504(0xe1)]):_0x418cf8['startIndex']+0x1};}let _0x159ac1=_0x58918c===0x0&&_0x3aac02[_0x453504(0x11b)][0x0]===_0x4e2eb9['PARAGRAPH']?0x1:_0x58918c;return{'startOffset':_0x159ac1,'endOffset':_0x159ac1};}function Ke(_0x5994d4){const _0x4ac359=_0x47262e;return _0x5994d4[_0x4ac359(0x11b)][_0x4ac359(0xbf)](_0x4e2eb9[_0x4ac359(0x134)])?Math['max'](0x0,_0x5994d4[_0x4ac359(0x11b)][_0x4ac359(0xcb)]-0x1):_0x5994d4[_0x4ac359(0x11b)][_0x4ac359(0xcb)];}function qe(_0x134211,_0x79d171,_0x4234a5){const _0x5dbe9c=_0x47262e;var _0x38cc19;let _0x34f406=Math[_0x5dbe9c(0x13b)](_0x79d171,_0x4234a5),_0x141f8f=Math['max'](_0x79d171,_0x4234a5);return!!((_0x38cc19=_0x134211['tables'])!=null&&_0x38cc19[_0x5dbe9c(0xaf)](_0x3bd783=>_0x34f406>_0x3bd783[_0x5dbe9c(0x108)]&&_0x34f406<_0x3bd783[_0x5dbe9c(0x114)]||_0x141f8f>_0x3bd783['startIndex']&&_0x141f8f<_0x3bd783[_0x5dbe9c(0x114)]||_0x34f406<=_0x3bd783[_0x5dbe9c(0x108)]&&_0x141f8f>=_0x3bd783[_0x5dbe9c(0x114)]));}function Je(_0x268327,_0x4a239c,_0x3f9997,_0x1a5e82){const _0x5b085d=_0x47262e;let _0x3f12f6=[..._0x268327['paragraphs']??[]][_0x5b085d(0xfb)]((_0x49030b,_0x37699c)=>_0x49030b['startIndex']-_0x37699c[_0x5b085d(0x108)]),_0x424d38=_0x412152(_0x268327),_0x339bbf=_0x3f12f6[_0x5b085d(0x124)](_0x41b8db=>j(_0x268327,_0x41b8db,_0x1a5e82,_0x424d38)<=_0x4a239c&&_0x4a239c<=_0x41b8db[_0x5b085d(0x108)]),_0x1f4192=_0x3f12f6[_0x5b085d(0x124)](_0x56bc8=>_0x56bc8['startIndex']>=_0x3f9997-0x1)??_0x3f12f6[_0x3f12f6[_0x5b085d(0xcb)]-0x1];return{'startOffset':_0x339bbf?j(_0x268327,_0x339bbf,_0x1a5e82,_0x424d38):_0x4a239c,'endOffset':_0x1f4192?Xe(_0x1f4192,_0x1a5e82):_0x3f9997};}function Ye(_0x5ba20f,_0x4655f3){const _0x5419cf=_0x47262e;let _0x126abd=[..._0x5ba20f[_0x5419cf(0xa8)]??[]][_0x5419cf(0xfb)]((_0x5b3002,_0xdb3da7)=>_0x5b3002[_0x5419cf(0x108)]-_0xdb3da7[_0x5419cf(0x108)]),_0x2c37f6=_0x412152(_0x5ba20f);return _0x126abd[_0x5419cf(0x124)](_0x4651bb=>(_0x2c37f6[_0x5419cf(0xfd)](_0x4651bb[_0x5419cf(0x108)])??0x0)<=_0x4655f3&&_0x4655f3<=_0x4651bb[_0x5419cf(0x108)]);}function j(_0x191e56,_0x3e08d4,_0x3c6e89,_0x35b663){const _0x46c23f=_0x47262e;let _0x4bb2ec=(_0x35b663==null?void 0x0:_0x35b663['get'](_0x3e08d4[_0x46c23f(0x108)]))??_0x420e80(_0x191e56,_0x3e08d4);return _0x3c6e89?Math[_0x46c23f(0x140)](_0x4bb2ec,_0x3c6e89['startOffset']):_0x4bb2ec;}function Xe(_0x27193f,_0x3cdd01){const _0xe16e96=_0x47262e;let _0x530fed=_0x27193f[_0xe16e96(0x108)]+0x1;return _0x3cdd01?Math[_0xe16e96(0x13b)](_0x530fed,_0x3cdd01['endOffset']):_0x530fed;}function Ze(_0x386d4a,_0x2f3387,_0x244643){const _0x268ad7=_0x47262e;let _0x5ddc8e=Qe(_0x386d4a,_0x2f3387),_0x3dc1c7=Qe(_0x386d4a,_0x2f3387===_0x244643?_0x244643:Math[_0x268ad7(0x140)](_0x2f3387,_0x244643-0x1));if(_0x5ddc8e||_0x3dc1c7){if(!_0x5ddc8e||!_0x3dc1c7||_0x5ddc8e[_0x268ad7(0xfa)]!==_0x3dc1c7['startTokenOffset']||_0x5ddc8e[_0x268ad7(0x128)]!==_0x3dc1c7[_0x268ad7(0x128)])throw new E();return _0x5ddc8e;}}function Qe(_0x183fbb,_0x8d8dd6){const _0x4866cf=_0x47262e;let _0x2b2733=_0x183fbb[_0x4866cf(0x11b)],_0x59dcd5=-0x1;for(let _0x2b841d=Math[_0x4866cf(0x13b)](_0x8d8dd6,_0x2b2733[_0x4866cf(0xcb)]-0x1);_0x2b841d>=0x0;_0x2b841d--){let _0x45ef38=_0x2b2733[_0x2b841d];if(_0x45ef38===_0x4e2eb9['TABLE_CELL_END'])return;if(_0x45ef38===_0x4e2eb9[_0x4866cf(0xdc)]){_0x59dcd5=_0x2b841d;break;}}if(_0x59dcd5<0x0)return;let _0x584920=_0x2b2733[_0x4866cf(0xf1)](_0x4e2eb9[_0x4866cf(0xc7)],_0x59dcd5+0x1);if(!(_0x584920<0x0||_0x8d8dd6<_0x59dcd5+0x1||_0x8d8dd6>_0x584920-0x1))return{'startOffset':_0x59dcd5+0x1,'endOffset':Math[_0x4866cf(0x140)](_0x59dcd5+0x1,_0x584920-0x1),'startTokenOffset':_0x59dcd5,'endTokenOffset':_0x584920};}function M(_0x5d3bd4){return _0x13b73c(_0x5d3bd4)['endOffset']-0x1;}function $e(_0x4a1ca4,_0x499791,_0x2c7e67,_0x4df8d9){const _0x4f3036=_0x47262e;let _0x3a2602=M(_0x499791),_0x3ea20c=(_0x4a1ca4[_0x4f3036(0xa8)]??[])[_0x4f3036(0x124)](_0x3d3b2c=>_0x3d3b2c[_0x4f3036(0x108)]===_0x3a2602+0x1);if(!_0x3ea20c||_0x4df8d9!=null&&_0x3ea20c[_0x4f3036(0x108)]!==_0x4df8d9||_0x2c7e67!=null&&(_0x2c7e67<_0x3a2602||_0x2c7e67>_0x3ea20c[_0x4f3036(0x108)]+0x1)||_0x4a1ca4[_0x4f3036(0x11b)][_0x3ea20c[_0x4f3036(0x108)]]!==_0x4e2eb9[_0x4f3036(0xf3)])return null;let _0xa892d9=_0x420e80(_0x4a1ca4,_0x3ea20c),_0x49f7fb=_0x4a1ca4[_0x4f3036(0x11b)][_0x4f3036(0x12c)](_0xa892d9,_0x3ea20c[_0x4f3036(0x108)]);return Array[_0x4f3036(0xb3)](_0x49f7fb)[_0x4f3036(0x10e)](_0x39ff90=>_0x39ff90===_0x4e2eb9[_0x4f3036(0xd8)])?{'paragraph':_0x3ea20c,'endTokenOffset':_0x3a2602}:null;}function N(_0x501601,_0x35e791){const _0xd927eb=_0x47262e;var _0x550b0f;let _0x524252=M(_0x35e791),_0x53a94c=_0x501601['dataStream'][_0x524252+0x1];(_0x53a94c===_0x4e2eb9[_0xd927eb(0x134)]||_0x53a94c===void 0x0)&&P(_0x501601,_0x524252+0x1,_0x4e2eb9['PARAGRAPH'],{'paragraphs':[{'startIndex':0x0,'paragraphId':_0x4e2158(new Set((_0x550b0f=_0x501601[_0xd927eb(0xa8)])==null?void 0x0:_0x550b0f[_0xd927eb(0xb2)](_0x14f923=>_0x14f923[_0xd927eb(0xd5)])))}]});}function P(_0xf543da,_0x13e78b,_0x188b5d,_0x579bbc={}){const _0x1b7549=_0x47262e;var _0x1817c5,_0x291b29;_0x188b5d&&(_0xf543da[_0x1b7549(0x11b)]=''+_0xf543da[_0x1b7549(0x11b)]['slice'](0x0,_0x13e78b)+_0x188b5d+_0xf543da[_0x1b7549(0x11b)][_0x1b7549(0x12c)](_0x13e78b),et(_0xf543da,_0x13e78b,_0x188b5d[_0x1b7549(0xcb)]),(_0x1817c5=_0x579bbc[_0x1b7549(0xa8)])!=null&&_0x1817c5[_0x1b7549(0xcb)]&&(_0xf543da[_0x1b7549(0xa8)]=[..._0xf543da['paragraphs']??[],..._0x579bbc[_0x1b7549(0xa8)][_0x1b7549(0xb2)](_0x26a5f3=>({..._0x26a5f3,'startIndex':_0x26a5f3[_0x1b7549(0x108)]+_0x13e78b}))][_0x1b7549(0xfb)]((_0x1108ff,_0x5672e8)=>_0x1108ff[_0x1b7549(0x108)]-_0x5672e8[_0x1b7549(0x108)])),(_0x291b29=_0x579bbc['blockRanges'])!=null&&_0x291b29[_0x1b7549(0xcb)]&&(_0xf543da[_0x1b7549(0x13e)]=[..._0xf543da[_0x1b7549(0x13e)]??[],..._0x579bbc[_0x1b7549(0x13e)][_0x1b7549(0xb2)](_0x33d64f=>({..._0x33d64f,'startIndex':_0x33d64f[_0x1b7549(0x108)]+_0x13e78b,'endIndex':_0x33d64f[_0x1b7549(0x114)]+_0x13e78b}))][_0x1b7549(0xfb)]((_0x498e79,_0x16daec)=>_0x498e79['startIndex']-_0x16daec[_0x1b7549(0x108)])));}function F(_0xcdbbe9,_0x2c3263,_0x2fdf80){const _0x37f594=_0x47262e;let _0x5bb469=_0x2fdf80-_0x2c3263;_0xcdbbe9[_0x37f594(0x11b)]=''+_0xcdbbe9[_0x37f594(0x11b)][_0x37f594(0x12c)](0x0,_0x2c3263)+_0xcdbbe9[_0x37f594(0x11b)][_0x37f594(0x12c)](_0x2fdf80),tt(_0xcdbbe9,_0x2c3263,_0x5bb469);}function et(_0x482ff5,_0x50a13d,_0x2c4148){const _0x4c40d9=_0x47262e;_0x482ff5[_0x4c40d9(0xa8)]=I(_0x482ff5[_0x4c40d9(0xa8)],_0x50a13d,_0x2c4148),_0x482ff5[_0x4c40d9(0xc8)]=I(_0x482ff5[_0x4c40d9(0xc8)],_0x50a13d,_0x2c4148),_0x482ff5[_0x4c40d9(0x12e)]=I(_0x482ff5[_0x4c40d9(0x12e)],_0x50a13d,_0x2c4148),_0x482ff5[_0x4c40d9(0x13f)]=nt(_0x482ff5[_0x4c40d9(0x13f)],_0x50a13d,_0x2c4148),_0x482ff5[_0x4c40d9(0xdb)]=rt(_0x482ff5[_0x4c40d9(0xdb)],_0x50a13d,_0x2c4148),_0x482ff5['columnGroups']=R(_0x482ff5[_0x4c40d9(0x127)],_0x50a13d,_0x2c4148),_0x482ff5[_0x4c40d9(0xd0)]=R(_0x482ff5[_0x4c40d9(0xd0)],_0x50a13d,_0x2c4148),_0x482ff5[_0x4c40d9(0x141)]=R(_0x482ff5['customDecorations'],_0x50a13d,_0x2c4148),_0x482ff5[_0x4c40d9(0x13e)]=R(_0x482ff5[_0x4c40d9(0x13e)],_0x50a13d,_0x2c4148);}function tt(_0x26c348,_0x5d7fab,_0x8b1c19){const _0x31768f=_0x47262e;var _0xce4ec7,_0x470158;_0x26c348[_0x31768f(0xa8)]=L(_0x26c348[_0x31768f(0xa8)],_0x5d7fab,_0x8b1c19),_0x26c348[_0x31768f(0xc8)]=L(_0x26c348['sectionBreaks'],_0x5d7fab,_0x8b1c19),_0x26c348[_0x31768f(0x12e)]=L(_0x26c348[_0x31768f(0x12e)],_0x5d7fab,_0x8b1c19),_0x26c348[_0x31768f(0x13f)]=(_0xce4ec7=it((_0x470158=_0x26c348[_0x31768f(0x13f)])==null?void 0x0:_0x470158[_0x31768f(0xb2)](_0x11ae97=>({..._0x11ae97,'startIndex':_0x11ae97['st'],'endIndex':_0x11ae97['ed']})),_0x5d7fab,_0x8b1c19))==null?void 0x0:_0xce4ec7[_0x31768f(0xb2)](_0x17d9c7=>{let {startIndex:_0x4e9338,endIndex:_0xd4d691,..._0x32f5c4}=_0x17d9c7;return{..._0x32f5c4,'st':_0x4e9338,'ed':_0xd4d691};}),_0x26c348[_0x31768f(0xdb)]=it(_0x26c348[_0x31768f(0xdb)],_0x5d7fab,_0x8b1c19),_0x26c348[_0x31768f(0x127)]=z(_0x26c348[_0x31768f(0x127)],_0x5d7fab,_0x8b1c19),_0x26c348[_0x31768f(0xd0)]=z(_0x26c348[_0x31768f(0xd0)],_0x5d7fab,_0x8b1c19),_0x26c348['customDecorations']=z(_0x26c348[_0x31768f(0x141)],_0x5d7fab,_0x8b1c19),_0x26c348[_0x31768f(0x13e)]=z(_0x26c348[_0x31768f(0x13e)],_0x5d7fab,_0x8b1c19);}function I(_0x1767ba,_0x2059c7,_0x58ada6){const _0x596a1f=_0x47262e;return _0x1767ba==null?void 0x0:_0x1767ba[_0x596a1f(0xb2)](_0xe1c518=>_0xe1c518[_0x596a1f(0x108)]>=_0x2059c7?{..._0xe1c518,'startIndex':_0xe1c518[_0x596a1f(0x108)]+_0x58ada6}:_0xe1c518);}function L(_0x5c56bf,_0x2b8fce,_0x332aff){const _0xda086d=_0x47262e;let _0x862433=_0x2b8fce+_0x332aff;return _0x5c56bf==null?void 0x0:_0x5c56bf[_0xda086d(0xb2)](_0x5b6891=>_0x5b6891[_0xda086d(0x108)]>=_0x2b8fce&&_0x5b6891[_0xda086d(0x108)]<_0x862433?null:_0x5b6891[_0xda086d(0x108)]>=_0x862433?{..._0x5b6891,'startIndex':_0x5b6891['startIndex']-_0x332aff}:_0x5b6891)['filter'](_0x427e4b=>_0x427e4b!=null);}function nt(_0x1ee832,_0x18b6c4,_0x3c2943){const _0x54abca=_0x47262e;return _0x1ee832==null?void 0x0:_0x1ee832[_0x54abca(0xb2)](_0x55b284=>_0x55b284['st']>=_0x18b6c4?{..._0x55b284,'st':_0x55b284['st']+_0x3c2943,'ed':_0x55b284['ed']+_0x3c2943}:_0x55b284['ed']>_0x18b6c4?{..._0x55b284,'ed':_0x55b284['ed']+_0x3c2943}:_0x55b284);}function R(_0x4673de,_0x4f755d,_0x1c15f6){const _0x46edd3=_0x47262e;return _0x4673de==null?void 0x0:_0x4673de[_0x46edd3(0xb2)](_0x31fec1=>_0x243408(_0x31fec1,_0x4f755d,_0x1c15f6));}function rt(_0x58557f,_0x4e5f9c,_0x18b67a){const _0x163836=_0x47262e;return _0x58557f==null?void 0x0:_0x58557f[_0x163836(0xb2)](_0x55c438=>_0x5cd158(_0x55c438,_0x4e5f9c,_0x18b67a));}function z(_0x2d663b,_0x300983,_0x57bcef){const _0x196e17=_0x47262e;return _0x2d663b==null?void 0x0:_0x2d663b[_0x196e17(0xb2)](_0x224ec8=>_0x2ab905(_0x224ec8,_0x300983,_0x57bcef))['filter'](_0x332a01=>_0x332a01!=null);}function it(_0x440631,_0x40125f,_0x1b160a){const _0x47f687=_0x47262e;return _0x440631==null?void 0x0:_0x440631[_0x47f687(0xb2)](_0x37b6bd=>_0x31ca35(_0x37b6bd,_0x40125f,_0x1b160a))[_0x47f687(0x112)](_0xe5b00b=>_0xe5b00b!=null);}const at={'id':'docs-code.command.insert-below','type':_0x56cb03['COMMAND'],'handler':_0x2cebf6=>{const _0x28eaf7=_0x47262e;var _0x46eb06;if(_0x288372(G(_0x2cebf6)))return!0x1;let _0x11a883=_0x50d82b(_0x2cebf6);if(_0x11a883)return _0x2cebf6[_0x28eaf7(0xfd)](_0x590f1e)[_0x28eaf7(0xd1)](B['id'],{'startOffset':_0x11a883[_0x28eaf7(0xe7)],'endOffset':_0x11a883[_0x28eaf7(0xe1)],'insertionMode':'insert-new','unitId':_0x11a883[_0x28eaf7(0x136)]});let _0x309501=ft(_0x2cebf6);if(!_0x309501)return!0x1;let _0x9973f4=(_0x46eb06=_0x2cebf6[_0x28eaf7(0xfd)](_0x3505d2)['getCurrentUnitOfType'](_0x4c80f2['UNIVER_DOC']))==null?void 0x0:_0x46eb06['getBody'](),_0x546c01=_0x9973f4?_0x5e6434(_0x9973f4,_0x309501):_0x309501[_0x28eaf7(0x108)]+0x1;return _0x2cebf6['get'](_0x590f1e)[_0x28eaf7(0xd1)](B['id'],{'startOffset':_0x546c01,'endOffset':_0x546c01});}},ot={'id':_0x47262e(0x148),'type':_0x56cb03[_0x47262e(0xac)],'handler':()=>!0x0},B={'id':_0x47262e(0xd3),'type':_0x56cb03['COMMAND'],'handler':(_0x2a41e4,_0x3a48e0)=>{const _0x6db573=_0x47262e;let _0x145a29=W(_0x2a41e4,_0x3a48e0==null?void 0x0:_0x3a48e0[_0x6db573(0x136)]);if(!_0x145a29)return!0x1;let _0x33ede7=G(_0x2a41e4);if(_0x288372(_0x33ede7))return!0x1;let _0x1e0e67=_0x145a29[_0x6db573(0x100)][_0x6db573(0x143)](_0x145a29[_0x6db573(0x136)]),_0x50d4f6=lt(_0x3a48e0,_0x33ede7),_0x2bf6fa=ut(_0x145a29[_0x6db573(0xc9)],_0x50d4f6);if(_0x2bf6fa){if(_0x2bf6fa[_0x6db573(0x107)]!==_0x5e660a[_0x6db573(0x113)])return!0x1;let _0x2df964=D({'blockId':_0x2bf6fa[_0x6db573(0xb1)],'documentData':_0x145a29[_0x6db573(0xc9)],'metadata':_0x1e0e67});if(!_0x2df964)return!0x1;let _0x4b7bd8=Y(_0x145a29[_0x6db573(0x137)],_0x145a29[_0x6db573(0xff)],_0x145a29['unitId'],_0x145a29[_0x6db573(0xc9)],_0x2df964[_0x6db573(0xc0)],B['id'],_0x2df964[_0x6db573(0x126)]);return _0x4b7bd8&&_0x2df964['nextMetadata']&&_0x145a29[_0x6db573(0x100)][_0x6db573(0x12f)](_0x145a29[_0x6db573(0x136)],_0x2df964['nextMetadata']),_0x4b7bd8;}let _0xd2f885=(_0x3a48e0==null?void 0x0:_0x3a48e0['blockId'])??_0x339fc6(0x6),_0x5e265a;try{_0x5e265a=De({'blockId':_0xd2f885,'config':_0x3a48e0==null?void 0x0:_0x3a48e0[_0x6db573(0xf8)],'documentData':_0x145a29[_0x6db573(0xc9)],'endOffset':_0x50d4f6==null?void 0x0:_0x50d4f6[_0x6db573(0xe1)],'insertionMode':_0x3a48e0==null?void 0x0:_0x3a48e0[_0x6db573(0xc4)],'metadata':_0x1e0e67,'startOffset':_0x50d4f6==null?void 0x0:_0x50d4f6[_0x6db573(0xe7)]});}catch(_0x2b4283){if(_0x2b4283 instanceof E)return!0x1;throw _0x2b4283;}let _0x3a4903=Y(_0x145a29['commandService'],_0x145a29[_0x6db573(0xff)],_0x145a29[_0x6db573(0x136)],_0x145a29[_0x6db573(0xc9)],_0x5e265a['nextDocumentData'],B['id'],_0x5e265a[_0x6db573(0x126)]);return _0x3a4903&&_0x5e265a['nextMetadata']&&_0x145a29[_0x6db573(0x100)][_0x6db573(0x12f)](_0x145a29['unitId'],_0x5e265a[_0x6db573(0xe9)]),_0x3a4903;}},st={'id':_0x47262e(0xde),'type':_0x56cb03[_0x47262e(0xac)],'handler':(_0x3f7a21,_0x109f0c)=>{const _0x4fe02b=_0x47262e;if(!_0x109f0c)return!0x1;let _0x13f37d=W(_0x3f7a21,_0x109f0c['unitId']);if(!_0x13f37d)return!0x1;let _0x3e3828=je({'blockId':_0x109f0c[_0x4fe02b(0xb1)],'config':_0x109f0c[_0x4fe02b(0xf8)],'documentData':_0x13f37d[_0x4fe02b(0xc9)],'metadata':_0x13f37d[_0x4fe02b(0x100)][_0x4fe02b(0x143)](_0x13f37d[_0x4fe02b(0x136)])});return _0x3e3828[_0x4fe02b(0xe9)]&&_0x13f37d['model'][_0x4fe02b(0x12f)](_0x13f37d['unitId'],_0x3e3828[_0x4fe02b(0xe9)]),!0x0;}},ct={'id':'docs-code.command.exit','type':_0x56cb03['COMMAND'],'handler':(_0x21d857,_0x188925)=>V[_0x47262e(0xbe)](_0x21d857,_0x188925)},V={'id':'docs-code.command.unwrap','type':_0x56cb03[_0x47262e(0xac)],'handler':(_0x5ac4b7,_0x23fc16)=>{const _0x5304ab=_0x47262e;if(!_0x23fc16)return!0x1;let _0x1a7705=W(_0x5ac4b7,_0x23fc16==null?void 0x0:_0x23fc16['unitId']);if(!_0x1a7705)return!0x1;let _0x597e8a=D({'blockId':_0x23fc16['blockId'],'documentData':_0x1a7705[_0x5304ab(0xc9)],'metadata':_0x1a7705[_0x5304ab(0x100)][_0x5304ab(0x143)](_0x1a7705[_0x5304ab(0x136)])});if(!_0x597e8a)return!0x1;let _0x4f8331=Y(_0x1a7705[_0x5304ab(0x137)],_0x1a7705[_0x5304ab(0xff)],_0x1a7705[_0x5304ab(0x136)],_0x1a7705[_0x5304ab(0xc9)],_0x597e8a['nextDocumentData'],V['id'],_0x597e8a[_0x5304ab(0x126)]);return _0x4f8331&&_0x597e8a[_0x5304ab(0xe9)]&&_0x1a7705['model'][_0x5304ab(0x12f)](_0x1a7705[_0x5304ab(0x136)],_0x597e8a[_0x5304ab(0xe9)]),_0x4f8331;}},H={'id':_0x47262e(0xbb),'type':_0x56cb03[_0x47262e(0xac)],'handler':(_0x3cd248,_0x1c8234)=>{const _0xb2d54d=_0x47262e;if(!_0x1c8234)return!0x1;let _0x390808=W(_0x3cd248,_0x1c8234==null?void 0x0:_0x1c8234[_0xb2d54d(0x136)]);if(!_0x390808)return!0x1;let _0x3122d6=Me({'blockId':_0x1c8234[_0xb2d54d(0xb1)],'documentData':_0x390808[_0xb2d54d(0xc9)],'metadata':_0x390808[_0xb2d54d(0x100)][_0xb2d54d(0x143)](_0x390808['unitId'])});if(!_0x3122d6)return!0x1;let _0x9fac48=Y(_0x390808[_0xb2d54d(0x137)],_0x390808[_0xb2d54d(0xff)],_0x390808[_0xb2d54d(0x136)],_0x390808['previousDocumentData'],_0x3122d6[_0xb2d54d(0xc0)],H['id'],_0x3122d6[_0xb2d54d(0x126)]);return _0x9fac48&&_0x3122d6[_0xb2d54d(0xe9)]&&_0x390808[_0xb2d54d(0x100)][_0xb2d54d(0x12f)](_0x390808['unitId'],_0x3122d6[_0xb2d54d(0xe9)]),_0x9fac48;}},U={'id':_0x47262e(0x12d),'type':_0x56cb03[_0x47262e(0xac)],'handler':(_0x21c440,_0x5cbc9c)=>{const _0x15b1b5=_0x47262e;var _0x1e1f44;let _0x224234=W(_0x21c440,_0x5cbc9c==null?void 0x0:_0x5cbc9c[_0x15b1b5(0x136)]);if(!_0x224234)return!0x1;let _0x411894=(_0x5cbc9c==null?void 0x0:_0x5cbc9c[_0x15b1b5(0x126)])??((_0x1e1f44=G(_0x21c440))==null?void 0x0:_0x1e1f44[_0x15b1b5(0xe7)]);if(_0x411894==null)return!0x1;let _0x16a8e4=Ne({'cursorOffset':_0x411894,'documentData':_0x224234[_0x15b1b5(0xc9)],'paragraphStartIndex':_0x5cbc9c==null?void 0x0:_0x5cbc9c[_0x15b1b5(0xd2)]});return _0x16a8e4?Y(_0x224234[_0x15b1b5(0x137)],_0x224234[_0x15b1b5(0xff)],_0x224234[_0x15b1b5(0x136)],_0x224234['previousDocumentData'],_0x16a8e4['nextDocumentData'],U['id'],_0x16a8e4[_0x15b1b5(0x126)]):!0x1;}};function W(_0x19215e,_0x5fcef8){const _0x460854=_0x47262e;let _0x34d05e=_0x19215e[_0x460854(0xfd)](_0x3505d2),_0x3a0abd=_0x5fcef8?_0x34d05e[_0x460854(0x144)](_0x5fcef8,_0x4c80f2[_0x460854(0xbc)]):_0x34d05e['getCurrentUnitOfType'](_0x4c80f2[_0x460854(0xbc)]);return _0x3a0abd?{'commandService':_0x19215e[_0x460854(0xfd)](_0x590f1e),'model':_0x19215e[_0x460854(0xfd)](w),'previousDocumentData':_0x3a0abd[_0x460854(0x11e)](),'selectionManager':_0x19215e['get'](_0xa4b078),'unitId':_0x3a0abd[_0x460854(0xc6)]()}:null;}function G(_0x18b18f){const _0x53f3e2=_0x47262e;var _0x5dd09c;return(_0x5dd09c=_0x18b18f[_0x53f3e2(0xfd)](_0xa4b078)[_0x53f3e2(0xec)]())==null?void 0x0:_0x5dd09c[0x0];}function lt(_0x4f274a,_0x49134d){const _0x2b262b=_0x47262e;let _0x419968=(_0x4f274a==null?void 0x0:_0x4f274a[_0x2b262b(0xe7)])??(_0x49134d==null?void 0x0:_0x49134d[_0x2b262b(0xe7)]),_0x4e7cb1=(_0x4f274a==null?void 0x0:_0x4f274a[_0x2b262b(0xe1)])??(_0x49134d==null?void 0x0:_0x49134d[_0x2b262b(0xe1)]);if(_0x419968!=null&&_0x4e7cb1!=null)return{'endOffset':Math[_0x2b262b(0x140)](_0x419968,_0x4e7cb1),'startOffset':Math[_0x2b262b(0x13b)](_0x419968,_0x4e7cb1)};}function ut(_0x4cf86f,_0x410818){const _0xb65fd1=_0x47262e;var _0x350fc7;if(!_0x410818)return;let _0x20fd23=dt(_0x410818);return(_0x350fc7=_0x4cf86f['body'])==null||(_0x350fc7=_0x350fc7[_0xb65fd1(0x13e)])==null?void 0x0:_0x350fc7['find'](_0x4a6f0d=>{const _0x576b4b=_0xb65fd1;let _0x21d73a=_0x13b73c(_0x4a6f0d);return _0x410818['startOffset']===_0x410818[_0x576b4b(0xe1)]?_0xa244f6(_0x21d73a,_0x20fd23):_0x8a4026(_0x21d73a,_0x20fd23);});}function dt(_0x372a01){const _0xaecb3f=_0x47262e;return _0x372a01['startOffset']===_0x372a01[_0xaecb3f(0xe1)]?_0x372a01[_0xaecb3f(0xe7)]:_0x372a01[_0xaecb3f(0xe7)]+0x1;}function ft(_0x4f2db9){const _0x287fe8=_0x47262e;let _0x1e4a07=G(_0x4f2db9);if(!_0x1e4a07)return null;let _0xc255e2=_0x4f2db9[_0x287fe8(0xfd)](_0x3505d2)[_0x287fe8(0x123)](_0x4c80f2['UNIVER_DOC']),_0x4d3a07=_0xc255e2==null?void 0x0:_0xc255e2[_0x287fe8(0xe5)]();return _0x4d3a07?_0x39a794[_0x287fe8(0xca)]['getParagraphsInRange'](_0x1e4a07,_0x4d3a07[_0x287fe8(0xa8)]??[],_0x4d3a07[_0x287fe8(0x11b)]??'')[0x0]??null:null;}function pt(_0x55c859,_0x46567a){const _0x31fc30=_0x47262e;let _0x16520a=_0x55c859[_0x31fc30(0xa7)],_0x456f04=_0x46567a['body'],_0x24438e=_0x10a6bd(_0x16520a,_0x456f04);return[_0x24438e&&_0x456f04?mt(_0x456f04,_0x24438e):null,_0x24438e?null:ht(_0x16520a,_0x456f04)]['filter'](Boolean)[_0x31fc30(0x110)]((_0x5f3a78,_0x1765bf)=>_0x1d5524['compose'](_0x5f3a78,_0x1765bf),null);}function mt(_0x3f76c1,_0x1e1268){const _0x611a1e=_0x47262e;let _0xf02700=new _0x4d07a5();return _0xf02700[_0x611a1e(0xc3)](_0x1e1268[_0x611a1e(0xc1)]),_0x1e1268['insertLength']>0x0&&_0xf02700[_0x611a1e(0xeb)](_0x1e1268[_0x611a1e(0xd4)],_0x36cb78(_0x3f76c1,_0x1e1268['start'],_0x1e1268[_0x611a1e(0xc1)]+_0x1e1268['insertLength'],!0x1)),_0x1e1268[_0x611a1e(0xdf)]>0x0&&_0xf02700[_0x611a1e(0xe3)](_0x1e1268['deleteLength']),_0x1d5524['getInstance']()[_0x611a1e(0x10c)](_0xf02700[_0x611a1e(0x143)](),[_0x611a1e(0xa7)]);}function ht(_0x794fa9,_0x130741){const _0x290dbd=_0x47262e;let _0x283686=[],_0x2726b6=_0x794fa9?_t(_0x794fa9):void 0x0,_0x39b2e1=_0x130741?_t(_0x130741):void 0x0;for(let _0x2c125d of gt)K(_0x1d5524[_0x290dbd(0x119)](),['body',_0x2c125d],_0x2726b6==null?void 0x0:_0x2726b6[_0x2c125d],_0x39b2e1==null?void 0x0:_0x39b2e1[_0x2c125d],_0x283686);return _0x283686[_0x290dbd(0x110)]((_0x28959f,_0x191508)=>_0x1d5524['compose'](_0x28959f,_0x191508),null);}const gt=[_0x47262e(0xa8),_0x47262e(0xc8),_0x47262e(0xdb),'columnGroups',_0x47262e(0x13e),_0x47262e(0x12e),_0x47262e(0xd0),'customDecorations',_0x47262e(0x13f)];function _t(_0x1b2104){return _0x1b2104;}function K(_0x13f69f,_0x1099aa,_0x37b03a,_0xeee68a,_0x45a84b){const _0x11a9e9=_0x47262e;if(!J(_0x37b03a,_0xeee68a)){if(_0x37b03a==null){_0x45a84b[_0x11a9e9(0x12a)](_0x13f69f[_0x11a9e9(0xad)](_0x1099aa,_0xeee68a));return;}if(_0xeee68a==null){_0x45a84b['push'](_0x13f69f[_0x11a9e9(0xb7)](_0x1099aa,_0x37b03a));return;}if(Array['isArray'](_0x37b03a)&&Array[_0x11a9e9(0xe0)](_0xeee68a)){vt(_0x13f69f,_0x1099aa,_0x37b03a,_0xeee68a,_0x45a84b);return;}if(q(_0x37b03a)&&q(_0xeee68a)){new Set([...Object[_0x11a9e9(0x106)](_0x37b03a),...Object['keys'](_0xeee68a)])[_0x11a9e9(0x138)](_0x592b06=>{K(_0x13f69f,[..._0x1099aa,_0x592b06],_0x37b03a[_0x592b06],_0xeee68a[_0x592b06],_0x45a84b);});return;}_0x45a84b[_0x11a9e9(0x12a)](_0x13f69f['replaceOp'](_0x1099aa,_0x37b03a,_0xeee68a));}}function vt(_0x1e9125,_0x290219,_0x38ab39,_0x22fdc2,_0x2251f2){const _0x2d6316=_0x47262e;if(_0x38ab39[_0x2d6316(0xcb)]===_0x22fdc2[_0x2d6316(0xcb)]){_0x38ab39[_0x2d6316(0x138)]((_0x403cb0,_0x5b37a4)=>K(_0x1e9125,[..._0x290219,_0x5b37a4],_0x403cb0,_0x22fdc2[_0x5b37a4],_0x2251f2));return;}let _0x448307=0x0;for(;_0x448307<_0x38ab39['length']&&_0x448307<_0x22fdc2[_0x2d6316(0xcb)]&&J(_0x38ab39[_0x448307],_0x22fdc2[_0x448307]);)_0x448307++;let _0x2e4d68=_0x38ab39[_0x2d6316(0xcb)]-0x1,_0x1a4b9c=_0x22fdc2['length']-0x1;for(;_0x2e4d68>=_0x448307&&_0x1a4b9c>=_0x448307&&J(_0x38ab39[_0x2e4d68],_0x22fdc2[_0x1a4b9c]);)_0x2e4d68--,_0x1a4b9c--;for(let _0x2fda2b=_0x2e4d68;_0x2fda2b>=_0x448307;_0x2fda2b--)_0x2251f2[_0x2d6316(0x12a)](_0x1e9125[_0x2d6316(0xb7)]([..._0x290219,_0x2fda2b],_0x38ab39[_0x2fda2b]));for(let _0x1e769b=_0x448307;_0x1e769b<=_0x1a4b9c;_0x1e769b++)_0x2251f2[_0x2d6316(0x12a)](_0x1e9125[_0x2d6316(0xad)]([..._0x290219,_0x1e769b],_0x22fdc2[_0x1e769b]));}function q(_0x8476f6){const _0x40e38b=_0x47262e;return typeof _0x8476f6==_0x40e38b(0x115)&&!!_0x8476f6&&!Array[_0x40e38b(0xe0)](_0x8476f6);}function J(_0x19e448,_0x517746){const _0x2dc7ed=_0x47262e;return JSON[_0x2dc7ed(0x13c)](_0x19e448)===JSON[_0x2dc7ed(0x13c)](_0x517746);}function Y(_0x150d63,_0x13e996,_0x343ff5,_0x5b6426,_0x42f782,_0x56a171,_0x590f8a){const _0x2487a1=_0x47262e;let _0x3cc25b=pt(_0x5b6426,_0x42f782);return _0x3cc25b?!!_0x150d63[_0x2487a1(0xd1)](_0x1711e6['id'],{'unitId':_0x343ff5,'actions':_0x3cc25b,'textRanges':[{'startOffset':_0x590f8a,'endOffset':_0x590f8a,'collapsed':!0x0}],'isEditing':!0x1,'trigger':_0x56a171}):(_0x13e996[_0x2487a1(0x125)]([{'startOffset':_0x590f8a,'endOffset':_0x590f8a}],{'unitId':_0x343ff5,'subUnitId':_0x343ff5},!0x1),!0x0);}const X=_0x47262e(0xb6);var yt=_0x47262e(0xfe),bt=_0x47262e(0xf6);const xt={};function Z(_0x2192fa,_0x3c3c25){return function(_0xa20550,_0x5ef777){_0x3c3c25(_0xa20550,_0x5ef777,_0x2192fa);};}function St(_0x4f2e66,_0x299933,_0x567b90,_0x125486){const _0x5c94e5=_0x47262e;var _0x4851ae=arguments[_0x5c94e5(0xcb)],_0x36dfe2=_0x4851ae<0x3?_0x299933:_0x125486===null?_0x125486=Object[_0x5c94e5(0x147)](_0x299933,_0x567b90):_0x125486,_0xfd1769;if(typeof Reflect==_0x5c94e5(0x115)&&typeof Reflect['decorate']==_0x5c94e5(0x13d))_0x36dfe2=Reflect[_0x5c94e5(0x103)](_0x4f2e66,_0x299933,_0x567b90,_0x125486);else{for(var _0x2f2853=_0x4f2e66[_0x5c94e5(0xcb)]-0x1;_0x2f2853>=0x0;_0x2f2853--)(_0xfd1769=_0x4f2e66[_0x2f2853])&&(_0x36dfe2=(_0x4851ae<0x3?_0xfd1769(_0x36dfe2):_0x4851ae>0x3?_0xfd1769(_0x299933,_0x567b90,_0x36dfe2):_0xfd1769(_0x299933,_0x567b90))||_0x36dfe2);}return _0x4851ae>0x3&&_0x36dfe2&&Object[_0x5c94e5(0xa9)](_0x299933,_0x567b90,_0x36dfe2),_0x36dfe2;}let Q=class extends _0x4a683f{constructor(_0x2f6481,_0x4a114f){const _0x36edb7=_0x47262e;super(),this['_resourceManagerService']=_0x2f6481,this[_0x36edb7(0x10f)]=_0x4a114f,this[_0x36edb7(0xc5)]();}[_0x47262e(0xc5)](){const _0x5d9004=_0x47262e;this['disposeWithMe'](this[_0x5d9004(0x122)][_0x5d9004(0x104)]({'pluginName':X,'businesses':[_0x4c80f2[_0x5d9004(0xbc)]],'toJson':_0x1f2d34=>JSON[_0x5d9004(0x13c)](this['_docsCodeModel'][_0x5d9004(0x143)](_0x1f2d34)),'parseJson':_0x412a0d=>y(JSON[_0x5d9004(0xe8)](_0x412a0d)),'onLoad':(_0x5b85a,_0x26ae26)=>this[_0x5d9004(0x10f)][_0x5d9004(0x12f)](_0x5b85a,_0x26ae26),'onUnLoad':_0x2000aa=>this[_0x5d9004(0x10f)][_0x5d9004(0x13a)](_0x2000aa)}));}};Q=St([Z(0x0,_0x5bbb3a),Z(0x1,_0x20224e(w))],Q);let $=class extends _0x947f63{constructor(_0x5302fa=xt,_0x426c7b,_0x43f0ef,_0x36b15a){const _0x950805=_0x47262e;super(),this['_config']=_0x5302fa,this[_0x950805(0x132)]=_0x426c7b,this['_commandService']=_0x43f0ef,this['_configService']=_0x36b15a;let {..._0xecb0e2}=_0x3335f3({},xt,this[_0x950805(0xf0)]);this[_0x950805(0xdd)][_0x950805(0xb4)]('docs-code.config',_0xecb0e2);}[_0x47262e(0x12b)](){const _0x1a92f6=_0x47262e;this[_0x1a92f6(0x132)][_0x1a92f6(0x105)]([w]),this[_0x1a92f6(0x132)][_0x1a92f6(0x105)]([Q]),this[_0x1a92f6(0x132)][_0x1a92f6(0xfd)](w),this[_0x1a92f6(0x132)][_0x1a92f6(0xfd)](Q),[B,at,st,V,H,ct,U,ot,Te,T][_0x1a92f6(0x138)](_0xd4956b=>this[_0x1a92f6(0xa6)](this['_commandService'][_0x1a92f6(0x121)](_0xd4956b)));}};C($,_0x47262e(0xce),X),C($,_0x47262e(0xb0),yt),C($,_0x47262e(0x116),bt),C($,'type',_0x4c80f2[_0x47262e(0xbc)]),$=St([_0x5a7055(_0x4d7e7b,_0x18c0f9),Z(0x1,_0x20224e(_0x31802d)),Z(0x2,_0x590f1e),Z(0x3,_0x5308c5)],$);export{X as DOCS_CODE_PLUGIN,U as DocsCodeCancelEmptyParagraphCommand,ot as DocsCodeConsumeBoundaryDeleteCommand,at as DocsCodeInsertBelowCommand,B as DocsCodeInsertCommand,w as DocsCodeModel,H as DocsCodeRemoveCommand,V as DocsCodeUnwrapCommand,st as DocsCodeUpdateCommand,T as RemoveDocsCodeConfigMutation,Te as SetDocsCodeConfigMutation,$ as UniverDocsCodePlugin,Ne as buildCancelEmptyCodeParagraphActions,Ie as isCodeBoundaryDelete,v as normalizeDocsCodeConfig,y as normalizeDocsCodeMetadataResource};