@univerjs-pro/docs-code 1.0.0-insiders.20260808-70eefdd → 1.0.0-insiders.20260809-70eefdd

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 _0x3c7b6e=_0x558e;(function(_0xaa1e07,_0x4311cf){const _0x4b221b=_0x558e,_0x5eb718=_0xaa1e07();while(!![]){try{const _0x3a3b51=parseInt(_0x4b221b(0xc7))/0x1*(parseInt(_0x4b221b(0x111))/0x2)+parseInt(_0x4b221b(0x8b))/0x3+-parseInt(_0x4b221b(0xfb))/0x4+-parseInt(_0x4b221b(0x113))/0x5*(-parseInt(_0x4b221b(0x114))/0x6)+-parseInt(_0x4b221b(0x8e))/0x7+parseInt(_0x4b221b(0xc8))/0x8+-parseInt(_0x4b221b(0xa5))/0x9*(-parseInt(_0x4b221b(0xb1))/0xa);if(_0x3a3b51===_0x4311cf)break;else _0x5eb718['push'](_0x5eb718['shift']());}catch(_0x54f9bb){_0x5eb718['push'](_0x5eb718['shift']());}}}(_0x5970,0xad4f9));import{BooleanNumber as _0x184149,BuildTextUtils as _0x5e634c,CommandType as _0x40c7ba,DataStreamTreeTokenType as _0x1d5afe,DependentOn as _0x362164,Disposable as _0x5ddd1d,DocumentBlockRangeType as _0xc66df5,ICommandService as _0x530cfb,IConfigService as _0x440bd3,IResourceManagerService as _0x5b5ca8,IUniverInstanceService as _0x23502f,Inject as _0x3fdb21,Injector as _0x587b27,JSONX as _0x42b9cd,Plugin as _0x1d23e9,TextX as _0x196b0d,UniverInstanceType as _0x33d288,containsInteriorInsertionOffset as _0x218fd5,containsStreamIndex as _0xb8136f,createParagraphId as _0xc658af,generateRandomId as _0x30261f,getBlockRangeInterval as _0x42484b,getBodySliceForTextXAction as _0x1eeac7,getParagraphContentStartOffset as _0xb008c0,getParagraphContentStartOffsets as _0x3fa0c0,getParagraphFollowingBlockOffset as _0x411e27,getSingleDataStreamChange as _0x4bad03,intersectsOperationalIntervals as _0x4dc471,merge as _0x2e149b,shiftExclusiveRangeOnDelete as _0x1764e6,shiftExclusiveRangeOnInsert as _0x4311be,shiftInclusiveRangeOnDelete as _0x555381,shiftInclusiveRangeOnInsert as _0x18b46b}from'@univerjs/core';import{Subject as _0x485654}from'rxjs';import{DocSelectionManagerService as _0x576bc0,RichTextEditingMutation as _0x12d7c6,UniverDocsPlugin as _0x5b5832,getContentInsertRange as _0x579c32,isHeaderFooterSelection as _0x4f2a1b}from'@univerjs/docs';import{UniverLicensePlugin as _0x5a6240}from'@univerjs-pro/license';const Se={'language':'javascript','showLineNumbers':!0x1,'tabSize':0x4,'wrap':!0x0};function v(_0x57f32a){return{...Se,..._0x57f32a};}function y(_0x1a4232){const _0x9a8e9e=_0x558e;let _0x26bd8a=(_0x1a4232==null?void 0x0:_0x1a4232['codes'])??{};return{'codes':Object[_0x9a8e9e(0xa8)](Object[_0x9a8e9e(0x73)](_0x26bd8a)[_0x9a8e9e(0xcc)](([_0x4a9cd1,_0xa658f0])=>[_0x4a9cd1,v(_0xa658f0)]))};}function b(_0x5253c0,_0x289adc,_0x472a62){const _0xe165d0=_0x558e;let _0x1f2519=y(_0x5253c0);return _0x1f2519['codes'][_0x289adc]=v({..._0x1f2519[_0xe165d0(0x75)][_0x289adc],..._0x472a62}),_0x1f2519;}function x(_0x2caa36,_0x548fa4){const _0x2b09f6=_0x558e;let _0x761bd6=y(_0x2caa36);return delete _0x761bd6[_0x2b09f6(0x75)][_0x548fa4],_0x761bd6;}function S(_0x156224){'@babel/helpers - typeof';const _0x1e95de=_0x558e;return S=typeof Symbol==_0x1e95de(0xfe)&&typeof Symbol[_0x1e95de(0xc9)]==_0x1e95de(0xc2)?function(_0x272da9){return typeof _0x272da9;}:function(_0x2c22ba){const _0x2f7b20=_0x1e95de;return _0x2c22ba&&typeof Symbol==_0x2f7b20(0xfe)&&_0x2c22ba['constructor']===Symbol&&_0x2c22ba!==Symbol[_0x2f7b20(0xb4)]?_0x2f7b20(0xc2):typeof _0x2c22ba;},S(_0x156224);}function Ce(_0x4195a0,_0x18c7cb){const _0x1dc619=_0x558e;if(S(_0x4195a0)!='object'||!_0x4195a0)return _0x4195a0;var _0x139536=_0x4195a0[Symbol[_0x1dc619(0x87)]];if(_0x139536!==void 0x0){var _0x59077f=_0x139536['call'](_0x4195a0,_0x18c7cb||_0x1dc619(0xd7));if(S(_0x59077f)!=_0x1dc619(0xa9))return _0x59077f;throw TypeError(_0x1dc619(0xe3));}return(_0x18c7cb==='string'?String:Number)(_0x4195a0);}function we(_0x49ae28){const _0x489541=_0x558e;var _0x570841=Ce(_0x49ae28,_0x489541(0xef));return S(_0x570841)=='symbol'?_0x570841:_0x570841+'';}function C(_0x51da53,_0x2cc238,_0x3f23f2){const _0x36d2a7=_0x558e;return(_0x2cc238=we(_0x2cc238))in _0x51da53?Object[_0x36d2a7(0x8c)](_0x51da53,_0x2cc238,{'value':_0x3f23f2,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x51da53[_0x2cc238]=_0x3f23f2,_0x51da53;}var w=class extends _0x5ddd1d{constructor(..._0x33f12c){const _0x283bb9=_0x558e;super(..._0x33f12c),C(this,_0x283bb9(0xb7),new Map()),C(this,'_change$',new _0x485654()),C(this,'change$',this['_change$']['asObservable']());}[_0x3c7b6e(0xd5)](_0x57b103,_0x1b50e0){const _0x20ffe5=_0x3c7b6e;return y(this['_resources'][_0x20ffe5(0xb8)](_0x57b103))['codes'][_0x1b50e0];}['setCodeConfig'](_0x420249,_0x15d97b,_0x56b3d0){const _0x334b14=_0x3c7b6e;this['_setResource'](_0x420249,_0x15d97b,b(this[_0x334b14(0xb7)][_0x334b14(0xb8)](_0x420249),_0x15d97b,_0x56b3d0));}[_0x3c7b6e(0x108)](_0x16223f,_0x409bfb){const _0x2107a5=_0x3c7b6e;this[_0x2107a5(0xff)](_0x16223f,_0x409bfb,x(this[_0x2107a5(0xb7)][_0x2107a5(0xb8)](_0x16223f),_0x409bfb));}[_0x3c7b6e(0xab)](_0x5931e2){const _0x43fbc8=_0x3c7b6e;return y(this[_0x43fbc8(0xb7)][_0x43fbc8(0xb8)](_0x5931e2));}['deserialize'](_0x18fd49,_0x104545){const _0x46452b=_0x3c7b6e;this[_0x46452b(0xb7)][_0x46452b(0xcf)](_0x18fd49,y(_0x104545)),this[_0x46452b(0xee)]['next']({'unitId':_0x18fd49});}[_0x3c7b6e(0x7c)](_0x27835b){const _0x898fc9=_0x3c7b6e;this[_0x898fc9(0xb7)][_0x898fc9(0xa6)](_0x27835b),this['_change$'][_0x898fc9(0xe8)]({'unitId':_0x27835b});}[_0x3c7b6e(0xed)](){const _0x27fbce=_0x3c7b6e;super[_0x27fbce(0xed)](),this[_0x27fbce(0xb7)][_0x27fbce(0xcb)](),this['_change$'][_0x27fbce(0xe4)]();}[_0x3c7b6e(0xff)](_0x29a318,_0x265922,_0x595718){const _0x1ed186=_0x3c7b6e;this[_0x1ed186(0xb7)][_0x1ed186(0xcf)](_0x29a318,_0x595718),this[_0x1ed186(0xee)]['next']({'unitId':_0x29a318,'blockId':_0x265922});}};const Te={'id':_0x3c7b6e(0x8f),'type':_0x40c7ba['MUTATION'],'handler':(_0x1ef530,_0xb8705e)=>!(_0xb8705e!=null&&_0xb8705e['unitId'])||!_0xb8705e[_0x3c7b6e(0xeb)]?!0x1:(_0x1ef530[_0x3c7b6e(0xb8)](w)[_0x3c7b6e(0xd2)](_0xb8705e[_0x3c7b6e(0x101)],_0xb8705e[_0x3c7b6e(0xeb)],_0xb8705e[_0x3c7b6e(0xf0)]),!0x0)},T={'id':_0x3c7b6e(0xc3),'type':_0x40c7ba['MUTATION'],'handler':(_0x28dd2c,_0x19d352)=>!(_0x19d352!=null&&_0x19d352['unitId'])||!_0x19d352[_0x3c7b6e(0xeb)]?!0x1:(_0x28dd2c['get'](w)['removeCode'](_0x19d352[_0x3c7b6e(0x101)],_0x19d352[_0x3c7b6e(0xeb)]),!0x0)},Ee=_0x3c7b6e(0xe9);var E=class extends Error{constructor(_0x14e4e4=_0x3c7b6e(0x116)){super(_0x14e4e4);}};function De(_0x3f520a){const _0x49ce69=_0x3c7b6e;var _0x435d68;let _0x38300e=O(_0x3f520a[_0x49ce69(0xf4)]),_0x5e1465=A(_0x38300e),_0x19d3a9=ke(_0x3f520a[_0x49ce69(0xfd)],_0x3f520a[_0x49ce69(0x103)]),_0x89441b=_0x19d3a9?(_0x435d68=_0x5e1465[_0x49ce69(0xf5)])==null?void 0x0:_0x435d68[_0x49ce69(0xba)](_0x479e7d=>{const _0x39a3c8=_0x49ce69;let _0x1880a5=_0x42484b(_0x479e7d);return _0x1880a5[_0x39a3c8(0xfd)]===_0x19d3a9[_0x39a3c8(0xfd)]&&_0x1880a5[_0x39a3c8(0x103)]===_0x19d3a9[_0x39a3c8(0x103)];}):void 0x0,{startOffset:_0x549d38,endOffset:_0x2c8a28}=_0x89441b?_0x19d3a9:We(_0x5e1465,_0x3f520a[_0x49ce69(0xfd)],_0x3f520a[_0x49ce69(0x103)],_0x3f520a[_0x49ce69(0xa2)]);if(!_0x89441b&&Ae(_0x5e1465,_0x549d38,_0x2c8a28))throw new E(_0x49ce69(0xad));let _0x2f8fd5=qe(_0x5e1465,_0x549d38,_0x2c8a28),_0x481afa=(_0x89441b==null?void 0x0:_0x89441b[_0x49ce69(0xeb)])??_0x3f520a[_0x49ce69(0xeb)],_0x2654bd=b(_0x3f520a['metadata'],_0x481afa,{...Se,..._0x3f520a[_0x49ce69(0xf0)]});if(_0x89441b)return _0x89441b[_0x49ce69(0x99)]=_0xc66df5[_0x49ce69(0xd3)],Oe(_0x5e1465,_0x549d38,_0x2c8a28),ze(_0x5e1465,_0x549d38,_0x2c8a28,_0x2f8fd5),N(_0x5e1465,_0x89441b),{'nextDocumentData':_0x38300e,'nextMetadata':_0x2654bd,'cursorOffset':_0x549d38+0x1};if(_0x549d38===_0x2c8a28){var _0xf2fb7e,_0x5d3811;let _0x365364=''+_0x1d5afe[_0x49ce69(0xbe)]+_0x1d5afe[_0x49ce69(0x9d)]+_0x1d5afe['BLOCK_END'];P(_0x5e1465,_0x549d38,_0x365364,{'paragraphs':[{'startIndex':0x1,'paragraphId':_0xc658af(new Set((_0xf2fb7e=_0x5e1465['paragraphs'])==null?void 0x0:_0xf2fb7e[_0x49ce69(0xcc)](_0x1c339b=>_0x1c339b[_0x49ce69(0xfa)]))),'paragraphStyle':Re(!0x0,!0x0,_0x2f8fd5)}],'blockRanges':[{'blockId':_0x481afa,'blockType':_0xc66df5[_0x49ce69(0xd3)],'startIndex':0x0,'endIndex':_0x365364[_0x49ce69(0x7b)]-0x1}]});let _0x6a6a39=(_0x5d3811=_0x5e1465[_0x49ce69(0xf5)])==null?void 0x0:_0x5d3811[_0x49ce69(0xba)](_0xdee882=>_0xdee882['blockId']===_0x481afa);return _0x6a6a39&&N(_0x5e1465,_0x6a6a39),{'nextDocumentData':_0x38300e,'nextMetadata':_0x2654bd,'cursorOffset':_0x549d38+0x1};}P(_0x5e1465,_0x2c8a28,_0x1d5afe[_0x49ce69(0xec)]),P(_0x5e1465,_0x549d38,_0x1d5afe[_0x49ce69(0xbe)]),ze(_0x5e1465,_0x549d38,_0x2c8a28+0x1,_0x2f8fd5);let _0x43dc03={'blockId':_0x481afa,'blockType':_0xc66df5[_0x49ce69(0xd3)],'startIndex':_0x549d38,'endIndex':_0x2c8a28+0x1};return _0x5e1465[_0x49ce69(0xf5)]=[..._0x5e1465['blockRanges']??[],_0x43dc03][_0x49ce69(0xb2)]((_0x1cd60e,_0x3990f4)=>_0x1cd60e[_0x49ce69(0xe1)]-_0x3990f4[_0x49ce69(0xe1)]),N(_0x5e1465,_0x43dc03),{'nextDocumentData':_0x38300e,'nextMetadata':_0x2654bd,'cursorOffset':_0x549d38+0x1};}function Oe(_0x3afc66,_0x3cfd01,_0x4c8364){const _0x347d54=_0x3c7b6e;(_0x3afc66[_0x347d54(0x85)]??[])[_0x347d54(0xea)](_0x16103f=>_0x16103f['startIndex']>_0x3cfd01&&_0x16103f[_0x347d54(0xe1)]<_0x4c8364)[_0x347d54(0xaa)](_0xba38ec=>{const _0x54f4ec=_0x347d54;let _0x369803={..._0xba38ec[_0x54f4ec(0xdb)]??{}};delete _0x369803[_0x54f4ec(0xcd)],delete _0x369803[_0x54f4ec(0xb9)],_0xba38ec[_0x54f4ec(0xdb)]=_0x369803;});}function ke(_0x284ec3,_0x677dbe){return _0x284ec3==null||_0x677dbe==null||_0x284ec3===_0x677dbe?null:{'startOffset':Math['min'](_0x284ec3,_0x677dbe),'endOffset':Math['max'](_0x284ec3,_0x677dbe)};}function Ae(_0x4526cf,_0x3968db,_0x2e59ea){const _0x2f8f05=_0x3c7b6e;return(_0x4526cf[_0x2f8f05(0xf5)]??[])['some'](_0x4f087b=>{let _0xdcfa7d=_0x42484b(_0x4f087b);return _0x3968db===_0x2e59ea?_0x218fd5(_0xdcfa7d,_0x3968db):_0x4dc471(_0xdcfa7d,{'startOffset':_0x3968db,'endOffset':_0x2e59ea});});}function je(_0x147d30){const _0x2f8df4=_0x3c7b6e;return{'nextDocumentData':O(_0x147d30[_0x2f8df4(0xf4)]),'nextMetadata':b(_0x147d30[_0x2f8df4(0xfc)],_0x147d30[_0x2f8df4(0xeb)],_0x147d30[_0x2f8df4(0xf0)]),'cursorOffset':0x0};}function D(_0x46aa15){const _0x5dbadc=_0x3c7b6e;let _0x23709c=O(_0x46aa15[_0x5dbadc(0xf4)]),_0x306fa4=A(_0x23709c),_0x48c40e=Fe(_0x306fa4,_0x46aa15[_0x5dbadc(0xeb)]);if(!_0x48c40e)return null;let _0xf015a4=He(_0x306fa4,_0x48c40e);return{'nextDocumentData':_0x23709c,'nextMetadata':x(_0x46aa15['metadata'],_0x46aa15[_0x5dbadc(0xeb)]),'cursorOffset':_0xf015a4};}function Me(_0x360fb1){const _0x1cda80=_0x3c7b6e;var _0x4aed73;let _0x1f4af9=O(_0x360fb1[_0x1cda80(0xf4)]),_0x46af95=A(_0x1f4af9),_0x9d8ba6=Fe(_0x46af95,_0x360fb1[_0x1cda80(0xeb)]);if(!_0x9d8ba6)return null;let _0x18acf6=_0x42484b(_0x9d8ba6);return F(_0x46af95,_0x18acf6[_0x1cda80(0xfd)],_0x18acf6[_0x1cda80(0x103)]),_0x46af95[_0x1cda80(0xf5)]=(_0x4aed73=_0x46af95[_0x1cda80(0xf5)])==null?void 0x0:_0x4aed73[_0x1cda80(0xea)](_0x5b1804=>_0x5b1804['blockId']!==_0x360fb1['blockId']),{'nextDocumentData':_0x1f4af9,'nextMetadata':x(_0x360fb1[_0x1cda80(0xfc)],_0x360fb1[_0x1cda80(0xeb)]),'cursorOffset':_0x9d8ba6[_0x1cda80(0xe1)]};}function Ne(_0x2ea073){const _0x338fc5=_0x3c7b6e;let _0x58c6e2=O(_0x2ea073[_0x338fc5(0xf4)]),_0x44446d=A(_0x58c6e2),_0x1c6ca3=Le(_0x44446d,_0x2ea073['cursorOffset']);return _0x1c6ca3&&Pe(_0x58c6e2,_0x44446d,_0x1c6ca3,_0x2ea073[_0x338fc5(0x9c)],_0x2ea073[_0x338fc5(0x80)])||null;}function Pe(_0x340c21,_0x26b6e5,_0x427bc6,_0x5259de,_0x574488){const _0x28b318=_0x3c7b6e;let _0x59e731=$e(_0x26b6e5,_0x427bc6,_0x5259de,_0x574488);if(!_0x59e731)return null;let _0x5072e3=_0x59e731[_0x28b318(0xf8)]-0x1;return F(_0x26b6e5,_0x59e731[_0x28b318(0x9a)][_0x28b318(0xe1)],_0x59e731['paragraph'][_0x28b318(0xe1)]+0x1),{'nextDocumentData':_0x340c21,'cursorOffset':_0x5072e3};}function Fe(_0x162127,_0x5a621d){const _0x3f0584=_0x3c7b6e;var _0x5da4cd;return _0x162127==null||(_0x5da4cd=_0x162127['blockRanges'])==null?void 0x0:_0x5da4cd[_0x3f0584(0xba)](_0x4abbf4=>_0x4abbf4[_0x3f0584(0x99)]===_0xc66df5[_0x3f0584(0xd3)]&&_0x4abbf4[_0x3f0584(0xeb)]===_0x5a621d);}function Ie(_0x508ee7){const _0x27de00=_0x3c7b6e;let _0x53a9e9=_0x508ee7[_0x27de00(0xf4)][_0x27de00(0x92)];if(!_0x53a9e9)return!0x1;let _0x3a6eac=_0x508ee7[_0x27de00(0x10f)]==='left'?_0x508ee7[_0x27de00(0x9c)]-0x1:_0x508ee7[_0x27de00(0x9c)],_0x397b8c=_0x508ee7[_0x27de00(0x10f)]==='right'?_0x508ee7[_0x27de00(0x9c)]+0x1:_0x3a6eac;return(_0x53a9e9[_0x27de00(0xf5)]??[])[_0x27de00(0x91)](_0x272ed2=>_0x272ed2[_0x27de00(0x99)]===_0xc66df5[_0x27de00(0xd3)]?_0x3a6eac===_0x272ed2[_0x27de00(0xe1)]||_0x3a6eac===_0x272ed2[_0x27de00(0xac)]||_0x397b8c===_0x272ed2[_0x27de00(0xe1)]||_0x397b8c===_0x272ed2['endIndex']:!0x1);}function Le(_0x17e986,_0x4fd5cf){const _0x431ca7=_0x3c7b6e;var _0x239c43;return(_0x239c43=_0x17e986[_0x431ca7(0xf5)])==null?void 0x0:_0x239c43[_0x431ca7(0xba)](_0x40549c=>{const _0x489e88=_0x431ca7;let _0x23f170=M(_0x40549c);return _0x40549c[_0x489e88(0x99)]===_0xc66df5['CODE']&&_0x40549c[_0x489e88(0xe1)]<=_0x4fd5cf&&_0x4fd5cf<=_0x23f170+0x2;});}function Re(_0x46b370,_0x2934cd,_0x14f0c4=!0x1){const _0x3b4270=_0x3c7b6e;return{'indentEnd':{'v':0x14},'indentStart':{'v':0x14},'keepLines':_0x184149['TRUE'],'keepNext':_0x2934cd?_0x184149['FALSE']:_0x184149[_0x3b4270(0x10a)],'widowControl':_0x184149[_0x3b4270(0x10a)],..._0x46b370&&_0x14f0c4?{'spaceAbove':{'v':0x8}}:{},'textStyle':{'ff':Ee,'fs':0xc}};}function ze(_0x38c756,_0x37b843,_0x486ee3,_0xef11=!0x1){const _0x33f627=_0x3c7b6e;let _0x354a5b=(_0x38c756[_0x33f627(0x85)]??[])[_0x33f627(0xea)](_0x1159bd=>_0x1159bd['startIndex']>_0x37b843&&_0x1159bd['startIndex']<_0x486ee3);_0x354a5b[_0x33f627(0xaa)]((_0x1a9bcb,_0x3bc9fb)=>{const _0x24ad56=_0x33f627;_0x1a9bcb[_0x24ad56(0xdb)]={..._0x1a9bcb[_0x24ad56(0xdb)]??{},...Re(_0x3bc9fb===0x0,_0x3bc9fb===_0x354a5b[_0x24ad56(0x7b)]-0x1,_0xef11)};});}function Be(_0x170a33){const _0x327e4a=_0x3c7b6e;var _0x1aad8e,_0xc3e226;let _0x43050b={..._0x170a33??{}};return delete _0x43050b[_0x327e4a(0x110)],delete _0x43050b[_0x327e4a(0xc4)],delete _0x43050b[_0x327e4a(0xcd)],delete _0x43050b[_0x327e4a(0xb9)],delete _0x43050b[_0x327e4a(0x7e)],delete _0x43050b[_0x327e4a(0xda)],delete _0x43050b[_0x327e4a(0xf2)],((_0x1aad8e=_0x43050b[_0x327e4a(0xd1)])==null?void 0x0:_0x1aad8e['ff'])===Ee&&((_0xc3e226=_0x43050b[_0x327e4a(0xd1)])==null?void 0x0:_0xc3e226['fs'])===0xc&&delete _0x43050b[_0x327e4a(0xd1)],_0x43050b;}function Ve(_0x5f9743,_0x450123){const _0x3b5363=_0x3c7b6e;let _0x5896cd=M(_0x450123);return(_0x5f9743['paragraphs']??[])['filter'](_0x1ab7fe=>_0x1ab7fe[_0x3b5363(0xe1)]>_0x450123[_0x3b5363(0xe1)]&&_0x1ab7fe['startIndex']<_0x5896cd);}function He(_0x364c41,_0x6d8d16){const _0xc6dc87=_0x3c7b6e;var _0x86406;let _0x130564=M(_0x6d8d16);return Ve(_0x364c41,_0x6d8d16)[_0xc6dc87(0xaa)](_0x1bef4e=>{const _0x39d953=_0xc6dc87;_0x1bef4e[_0x39d953(0xdb)]=Be(_0x1bef4e[_0x39d953(0xdb)]);}),F(_0x364c41,_0x130564,_0x130564+0x1),F(_0x364c41,_0x6d8d16[_0xc6dc87(0xe1)],_0x6d8d16[_0xc6dc87(0xe1)]+0x1),_0x364c41['blockRanges']=(_0x86406=_0x364c41[_0xc6dc87(0xf5)])==null?void 0x0:_0x86406[_0xc6dc87(0xea)](_0x2fc29e=>_0x2fc29e[_0xc6dc87(0xeb)]!==_0x6d8d16[_0xc6dc87(0xeb)]),_0x6d8d16[_0xc6dc87(0xe1)];}function O(_0x1945c7){const _0x366efc=_0x3c7b6e;return{..._0x1945c7,'body':_0x1945c7[_0x366efc(0x92)]?Ue(_0x1945c7[_0x366efc(0x92)]):_0x1945c7[_0x366efc(0x92)]};}function Ue(_0x402305){const _0x4b96b3=_0x3c7b6e;var _0x5f2673,_0x37b71f,_0x35d50b,_0x3349f2,_0x1d1616,_0x28fed1,_0x17b260,_0xa8a457,_0xb0fbc7;return{..._0x402305,'paragraphs':(_0x5f2673=_0x402305['paragraphs'])==null?void 0x0:_0x5f2673[_0x4b96b3(0xcc)](_0x46398e=>({..._0x46398e,'bullet':k(_0x46398e['bullet']),'paragraphStyle':k(_0x46398e['paragraphStyle'])})),'sectionBreaks':(_0x37b71f=_0x402305[_0x4b96b3(0x81)])==null?void 0x0:_0x37b71f[_0x4b96b3(0xcc)](_0x54aa6a=>({..._0x54aa6a})),'textRuns':(_0x35d50b=_0x402305['textRuns'])==null?void 0x0:_0x35d50b['map'](_0x3a8d41=>({..._0x3a8d41})),'tables':(_0x3349f2=_0x402305[_0x4b96b3(0xf7)])==null?void 0x0:_0x3349f2[_0x4b96b3(0xcc)](_0x2af65=>({..._0x2af65})),'columnGroups':(_0x1d1616=_0x402305[_0x4b96b3(0xb0)])==null?void 0x0:_0x1d1616[_0x4b96b3(0xcc)](_0x2194bf=>{const _0x653f3f=_0x4b96b3;var _0x1d67fe;return{..._0x2194bf,'columns':(_0x1d67fe=_0x2194bf[_0x653f3f(0x77)])==null?void 0x0:_0x1d67fe[_0x653f3f(0xcc)](_0x498b24=>k(_0x498b24))};}),'blockRanges':(_0x28fed1=_0x402305['blockRanges'])==null?void 0x0:_0x28fed1['map'](_0x462641=>({..._0x462641})),'customRanges':(_0x17b260=_0x402305[_0x4b96b3(0x100)])==null?void 0x0:_0x17b260['map'](_0x527fbc=>({..._0x527fbc})),'customDecorations':(_0xa8a457=_0x402305[_0x4b96b3(0xa0)])==null?void 0x0:_0xa8a457[_0x4b96b3(0xcc)](_0x4bd677=>({..._0x4bd677})),'customBlocks':(_0xb0fbc7=_0x402305[_0x4b96b3(0x88)])==null?void 0x0:_0xb0fbc7[_0x4b96b3(0xcc)](_0x34e4c4=>({..._0x34e4c4}))};}function k(_0x5daa31){const _0x3b7a55=_0x3c7b6e;return Array[_0x3b7a55(0x119)](_0x5daa31)?_0x5daa31['map'](_0x3f4fe0=>k(_0x3f4fe0)):!_0x5daa31||typeof _0x5daa31!=_0x3b7a55(0xa9)?_0x5daa31:Object[_0x3b7a55(0xa8)](Object[_0x3b7a55(0x73)](_0x5daa31)['map'](([_0x384be0,_0x4a11fa])=>[_0x384be0,k(_0x4a11fa)]));}function A(_0x508fb6){const _0x4449f2=_0x3c7b6e;if(!_0x508fb6[_0x4449f2(0x92)])throw Error(_0x4449f2(0x94));return _0x508fb6['body'];}function We(_0x33756b,_0x5a4028,_0xa938f9,_0xbc7f12=_0x3c7b6e(0x95)){const _0x123960=_0x3c7b6e;if(_0x5a4028==null||_0xa938f9==null){let _0x5574b2=Ke(_0x33756b);return{'startOffset':_0x5574b2,'endOffset':_0x5574b2};}let _0x77b9aa=Math[_0x123960(0xa1)](_0x5a4028,_0xa938f9),_0x17eb2a=Math[_0x123960(0xbb)](_0x5a4028,_0xa938f9),_0x2e8934=Ze(_0x33756b,_0x77b9aa,_0x17eb2a);return _0x77b9aa===_0x17eb2a?_0xbc7f12==='insert-new'?{'startOffset':_0x77b9aa,'endOffset':_0x17eb2a}:Ge(_0x33756b,_0x77b9aa,_0x2e8934):Je(_0x33756b,_0x77b9aa,_0x17eb2a,_0x2e8934);}function Ge(_0x478c71,_0x446a0e,_0x7641f7){const _0x46bc5e=_0x3c7b6e;let _0x18d37c=Ye(_0x478c71,_0x446a0e);if(_0x18d37c){let _0x325228=j(_0x478c71,_0x18d37c,_0x7641f7);if(_0x325228<_0x18d37c[_0x46bc5e(0xe1)])return{'startOffset':_0x325228,'endOffset':_0x7641f7?Math[_0x46bc5e(0xa1)](_0x18d37c[_0x46bc5e(0xe1)]+0x1,_0x7641f7['endOffset']):_0x18d37c[_0x46bc5e(0xe1)]+0x1};}let _0x15d9c0=_0x446a0e===0x0&&_0x478c71[_0x46bc5e(0xd9)][0x0]===_0x1d5afe['PARAGRAPH']?0x1:_0x446a0e;return{'startOffset':_0x15d9c0,'endOffset':_0x15d9c0};}function Ke(_0x36b4c6){const _0x1c3619=_0x3c7b6e;return _0x36b4c6['dataStream'][_0x1c3619(0x96)](_0x1d5afe['SECTION_BREAK'])?Math['max'](0x0,_0x36b4c6[_0x1c3619(0xd9)][_0x1c3619(0x7b)]-0x1):_0x36b4c6[_0x1c3619(0xd9)][_0x1c3619(0x7b)];}function qe(_0x30c1ec,_0x52f984,_0x149326){const _0x5ce732=_0x3c7b6e;var _0x181581;let _0x103557=Math[_0x5ce732(0xa1)](_0x52f984,_0x149326),_0x6124c7=Math[_0x5ce732(0xbb)](_0x52f984,_0x149326);return!!((_0x181581=_0x30c1ec[_0x5ce732(0xf7)])!=null&&_0x181581[_0x5ce732(0x91)](_0x35d0b4=>_0x103557>_0x35d0b4['startIndex']&&_0x103557<_0x35d0b4[_0x5ce732(0xac)]||_0x6124c7>_0x35d0b4[_0x5ce732(0xe1)]&&_0x6124c7<_0x35d0b4[_0x5ce732(0xac)]||_0x103557<=_0x35d0b4[_0x5ce732(0xe1)]&&_0x6124c7>=_0x35d0b4[_0x5ce732(0xac)]));}function Je(_0x3f04b6,_0x39f8ec,_0x3f2c4e,_0x1520e1){const _0xa97e76=_0x3c7b6e;let _0x1bd8b8=[..._0x3f04b6[_0xa97e76(0x85)]??[]][_0xa97e76(0xb2)]((_0x4f0a77,_0x54d0d6)=>_0x4f0a77[_0xa97e76(0xe1)]-_0x54d0d6[_0xa97e76(0xe1)]),_0x3b827c=_0x3fa0c0(_0x3f04b6),_0x99a10e=_0x1bd8b8[_0xa97e76(0xba)](_0x2d34ff=>j(_0x3f04b6,_0x2d34ff,_0x1520e1,_0x3b827c)<=_0x39f8ec&&_0x39f8ec<=_0x2d34ff[_0xa97e76(0xe1)]),_0xf1724=_0x1bd8b8[_0xa97e76(0xba)](_0x596954=>_0x596954['startIndex']>=_0x3f2c4e-0x1)??_0x1bd8b8[_0x1bd8b8[_0xa97e76(0x7b)]-0x1];return{'startOffset':_0x99a10e?j(_0x3f04b6,_0x99a10e,_0x1520e1,_0x3b827c):_0x39f8ec,'endOffset':_0xf1724?Xe(_0xf1724,_0x1520e1):_0x3f2c4e};}function Ye(_0x4a2736,_0x2d072a){const _0x46b8c5=_0x3c7b6e;let _0x1d1267=[..._0x4a2736['paragraphs']??[]][_0x46b8c5(0xb2)]((_0xa8e2e8,_0x3f3277)=>_0xa8e2e8[_0x46b8c5(0xe1)]-_0x3f3277[_0x46b8c5(0xe1)]),_0x452dc4=_0x3fa0c0(_0x4a2736);return _0x1d1267['find'](_0x2596bc=>(_0x452dc4[_0x46b8c5(0xb8)](_0x2596bc['startIndex'])??0x0)<=_0x2d072a&&_0x2d072a<=_0x2596bc[_0x46b8c5(0xe1)]);}function j(_0x106479,_0x3804a8,_0x32e566,_0x436f30){const _0x321bd3=_0x3c7b6e;let _0xdb6c15=(_0x436f30==null?void 0x0:_0x436f30[_0x321bd3(0xb8)](_0x3804a8[_0x321bd3(0xe1)]))??_0xb008c0(_0x106479,_0x3804a8);return _0x32e566?Math[_0x321bd3(0xbb)](_0xdb6c15,_0x32e566['startOffset']):_0xdb6c15;}function Xe(_0x8d24f8,_0x13a2f0){const _0x1d9339=_0x3c7b6e;let _0x248abd=_0x8d24f8[_0x1d9339(0xe1)]+0x1;return _0x13a2f0?Math['min'](_0x248abd,_0x13a2f0[_0x1d9339(0x103)]):_0x248abd;}function Ze(_0x19fd4e,_0x1cf219,_0x1357e1){const _0x1a344d=_0x3c7b6e;let _0x4600eb=Qe(_0x19fd4e,_0x1cf219),_0x5d4ae4=Qe(_0x19fd4e,_0x1cf219===_0x1357e1?_0x1357e1:Math[_0x1a344d(0xbb)](_0x1cf219,_0x1357e1-0x1));if(!(!_0x4600eb&&!_0x5d4ae4)){if(!_0x4600eb||!_0x5d4ae4||_0x4600eb[_0x1a344d(0x102)]!==_0x5d4ae4[_0x1a344d(0x102)]||_0x4600eb[_0x1a344d(0xf8)]!==_0x5d4ae4[_0x1a344d(0xf8)])throw new E();return _0x4600eb;}}function Qe(_0x4b4c6c,_0x5eeb7d){const _0x24650c=_0x3c7b6e;let _0x8e55a=_0x4b4c6c[_0x24650c(0xd9)],_0x35da85=-0x1;for(let _0xb18b6f=Math[_0x24650c(0xa1)](_0x5eeb7d,_0x8e55a[_0x24650c(0x7b)]-0x1);_0xb18b6f>=0x0;_0xb18b6f--){let _0x4c92df=_0x8e55a[_0xb18b6f];if(_0x4c92df===_0x1d5afe['TABLE_CELL_END'])return;if(_0x4c92df===_0x1d5afe[_0x24650c(0x7a)]){_0x35da85=_0xb18b6f;break;}}if(_0x35da85<0x0)return;let _0x11d7d2=_0x8e55a[_0x24650c(0x97)](_0x1d5afe[_0x24650c(0xbc)],_0x35da85+0x1);if(!(_0x11d7d2<0x0||_0x5eeb7d<_0x35da85+0x1||_0x5eeb7d>_0x11d7d2-0x1))return{'startOffset':_0x35da85+0x1,'endOffset':Math[_0x24650c(0xbb)](_0x35da85+0x1,_0x11d7d2-0x1),'startTokenOffset':_0x35da85,'endTokenOffset':_0x11d7d2};}function _0x558e(_0x2dcb39,_0x478625){_0x2dcb39=_0x2dcb39-0x73;const _0x597083=_0x5970();let _0x558e2e=_0x597083[_0x2dcb39];return _0x558e2e;}function M(_0x49b234){const _0x1afbc0=_0x3c7b6e;return _0x42484b(_0x49b234)[_0x1afbc0(0x103)]-0x1;}function $e(_0x588585,_0x4bda5e,_0x46fd64,_0x1bf2b1){const _0x309bec=_0x3c7b6e;let _0x26567e=M(_0x4bda5e),_0x88f566=(_0x588585[_0x309bec(0x85)]??[])['find'](_0x5da80d=>_0x5da80d[_0x309bec(0xe1)]===_0x26567e+0x1);if(!_0x88f566||_0x1bf2b1!=null&&_0x88f566[_0x309bec(0xe1)]!==_0x1bf2b1||_0x46fd64!=null&&(_0x46fd64<_0x26567e||_0x46fd64>_0x88f566[_0x309bec(0xe1)]+0x1)||_0x588585['dataStream'][_0x88f566['startIndex']]!==_0x1d5afe[_0x309bec(0x9d)])return null;let _0x31d83e=_0xb008c0(_0x588585,_0x88f566),_0xbebde0=_0x588585[_0x309bec(0xd9)][_0x309bec(0x9f)](_0x31d83e,_0x88f566[_0x309bec(0xe1)]);return Array[_0x309bec(0x76)](_0xbebde0)[_0x309bec(0xca)](_0x4e39bc=>_0x4e39bc===_0x1d5afe[_0x309bec(0xec)])?{'paragraph':_0x88f566,'endTokenOffset':_0x26567e}:null;}function N(_0x3e194f,_0x4183d3){const _0x48098c=_0x3c7b6e;var _0x49fed7;let _0x38a40d=M(_0x4183d3),_0x245c84=_0x3e194f[_0x48098c(0xd9)][_0x38a40d+0x1];(_0x245c84===_0x1d5afe['SECTION_BREAK']||_0x245c84===void 0x0)&&P(_0x3e194f,_0x38a40d+0x1,_0x1d5afe[_0x48098c(0x9d)],{'paragraphs':[{'startIndex':0x0,'paragraphId':_0xc658af(new Set((_0x49fed7=_0x3e194f[_0x48098c(0x85)])==null?void 0x0:_0x49fed7[_0x48098c(0xcc)](_0x3ce260=>_0x3ce260[_0x48098c(0xfa)])))}]});}function P(_0x2c8480,_0x4cef2b,_0x505ba4,_0x1543f2={}){const _0x1bf047=_0x3c7b6e;var _0x1b27bf,_0x4c52c8;_0x505ba4&&(_0x2c8480[_0x1bf047(0xd9)]=''+_0x2c8480[_0x1bf047(0xd9)]['slice'](0x0,_0x4cef2b)+_0x505ba4+_0x2c8480[_0x1bf047(0xd9)][_0x1bf047(0x9f)](_0x4cef2b),et(_0x2c8480,_0x4cef2b,_0x505ba4['length']),(_0x1b27bf=_0x1543f2[_0x1bf047(0x85)])!=null&&_0x1b27bf[_0x1bf047(0x7b)]&&(_0x2c8480[_0x1bf047(0x85)]=[..._0x2c8480[_0x1bf047(0x85)]??[],..._0x1543f2['paragraphs'][_0x1bf047(0xcc)](_0x137f3f=>({..._0x137f3f,'startIndex':_0x137f3f[_0x1bf047(0xe1)]+_0x4cef2b}))]['sort']((_0x534f2a,_0x33abb5)=>_0x534f2a[_0x1bf047(0xe1)]-_0x33abb5['startIndex'])),(_0x4c52c8=_0x1543f2['blockRanges'])!=null&&_0x4c52c8[_0x1bf047(0x7b)]&&(_0x2c8480[_0x1bf047(0xf5)]=[..._0x2c8480['blockRanges']??[],..._0x1543f2[_0x1bf047(0xf5)]['map'](_0x154b23=>({..._0x154b23,'startIndex':_0x154b23['startIndex']+_0x4cef2b,'endIndex':_0x154b23[_0x1bf047(0xac)]+_0x4cef2b}))][_0x1bf047(0xb2)]((_0x218c39,_0x24368f)=>_0x218c39[_0x1bf047(0xe1)]-_0x24368f[_0x1bf047(0xe1)])));}function F(_0x57efba,_0x49f451,_0x2c1a6d){const _0x52292a=_0x3c7b6e;let _0x323785=_0x2c1a6d-_0x49f451;_0x57efba[_0x52292a(0xd9)]=''+_0x57efba[_0x52292a(0xd9)][_0x52292a(0x9f)](0x0,_0x49f451)+_0x57efba[_0x52292a(0xd9)][_0x52292a(0x9f)](_0x2c1a6d),tt(_0x57efba,_0x49f451,_0x323785);}function et(_0x389b70,_0x35e266,_0x629198){const _0x19f021=_0x3c7b6e;_0x389b70[_0x19f021(0x85)]=I(_0x389b70[_0x19f021(0x85)],_0x35e266,_0x629198),_0x389b70[_0x19f021(0x81)]=I(_0x389b70['sectionBreaks'],_0x35e266,_0x629198),_0x389b70['customBlocks']=I(_0x389b70[_0x19f021(0x88)],_0x35e266,_0x629198),_0x389b70[_0x19f021(0xbf)]=nt(_0x389b70[_0x19f021(0xbf)],_0x35e266,_0x629198),_0x389b70[_0x19f021(0xf7)]=rt(_0x389b70['tables'],_0x35e266,_0x629198),_0x389b70[_0x19f021(0xb0)]=R(_0x389b70['columnGroups'],_0x35e266,_0x629198),_0x389b70['customRanges']=R(_0x389b70[_0x19f021(0x100)],_0x35e266,_0x629198),_0x389b70[_0x19f021(0xa0)]=R(_0x389b70[_0x19f021(0xa0)],_0x35e266,_0x629198),_0x389b70[_0x19f021(0xf5)]=R(_0x389b70['blockRanges'],_0x35e266,_0x629198);}function tt(_0x8372e6,_0x41a78d,_0x27806d){const _0x51a846=_0x3c7b6e;var _0xd26463,_0x362c73;_0x8372e6['paragraphs']=L(_0x8372e6[_0x51a846(0x85)],_0x41a78d,_0x27806d),_0x8372e6[_0x51a846(0x81)]=L(_0x8372e6[_0x51a846(0x81)],_0x41a78d,_0x27806d),_0x8372e6['customBlocks']=L(_0x8372e6[_0x51a846(0x88)],_0x41a78d,_0x27806d),_0x8372e6[_0x51a846(0xbf)]=(_0xd26463=it((_0x362c73=_0x8372e6[_0x51a846(0xbf)])==null?void 0x0:_0x362c73[_0x51a846(0xcc)](_0x1f500e=>({..._0x1f500e,'startIndex':_0x1f500e['st'],'endIndex':_0x1f500e['ed']})),_0x41a78d,_0x27806d))==null?void 0x0:_0xd26463[_0x51a846(0xcc)](_0xc9e4e4=>{let {startIndex:_0xfa123,endIndex:_0x34d3b7,..._0x26a6e4}=_0xc9e4e4;return{..._0x26a6e4,'st':_0xfa123,'ed':_0x34d3b7};}),_0x8372e6[_0x51a846(0xf7)]=it(_0x8372e6['tables'],_0x41a78d,_0x27806d),_0x8372e6[_0x51a846(0xb0)]=z(_0x8372e6['columnGroups'],_0x41a78d,_0x27806d),_0x8372e6['customRanges']=z(_0x8372e6[_0x51a846(0x100)],_0x41a78d,_0x27806d),_0x8372e6[_0x51a846(0xa0)]=z(_0x8372e6[_0x51a846(0xa0)],_0x41a78d,_0x27806d),_0x8372e6[_0x51a846(0xf5)]=z(_0x8372e6[_0x51a846(0xf5)],_0x41a78d,_0x27806d);}function I(_0x1c0be1,_0x529c5b,_0x4e4757){const _0x106b26=_0x3c7b6e;return _0x1c0be1==null?void 0x0:_0x1c0be1[_0x106b26(0xcc)](_0x4aa057=>_0x4aa057[_0x106b26(0xe1)]>=_0x529c5b?{..._0x4aa057,'startIndex':_0x4aa057[_0x106b26(0xe1)]+_0x4e4757}:_0x4aa057);}function L(_0x74cdac,_0x3e6215,_0x56bf85){const _0x1b3a45=_0x3c7b6e;let _0x14b8dd=_0x3e6215+_0x56bf85;return _0x74cdac==null?void 0x0:_0x74cdac[_0x1b3a45(0xcc)](_0x3d7028=>_0x3d7028[_0x1b3a45(0xe1)]>=_0x3e6215&&_0x3d7028['startIndex']<_0x14b8dd?null:_0x3d7028[_0x1b3a45(0xe1)]>=_0x14b8dd?{..._0x3d7028,'startIndex':_0x3d7028['startIndex']-_0x56bf85}:_0x3d7028)[_0x1b3a45(0xea)](_0x504626=>_0x504626!=null);}function nt(_0x1c7a37,_0x358443,_0x24c345){const _0x5756f4=_0x3c7b6e;return _0x1c7a37==null?void 0x0:_0x1c7a37[_0x5756f4(0xcc)](_0x27060c=>_0x27060c['st']>=_0x358443?{..._0x27060c,'st':_0x27060c['st']+_0x24c345,'ed':_0x27060c['ed']+_0x24c345}:_0x27060c['ed']>_0x358443?{..._0x27060c,'ed':_0x27060c['ed']+_0x24c345}:_0x27060c);}function R(_0x2edd68,_0x24c494,_0x8eabae){const _0x226f0=_0x3c7b6e;return _0x2edd68==null?void 0x0:_0x2edd68[_0x226f0(0xcc)](_0x5898af=>_0x18b46b(_0x5898af,_0x24c494,_0x8eabae));}function rt(_0x15c829,_0x5c9d43,_0x9a2674){const _0x1a4b91=_0x3c7b6e;return _0x15c829==null?void 0x0:_0x15c829[_0x1a4b91(0xcc)](_0x18a2c2=>_0x4311be(_0x18a2c2,_0x5c9d43,_0x9a2674));}function z(_0x4f9b84,_0x366469,_0x531eee){const _0x34a9c4=_0x3c7b6e;return _0x4f9b84==null?void 0x0:_0x4f9b84[_0x34a9c4(0xcc)](_0x4c6963=>_0x555381(_0x4c6963,_0x366469,_0x531eee))['filter'](_0x4bb1f3=>_0x4bb1f3!=null);}function it(_0x4d3bae,_0x240e07,_0x5015f6){const _0x465353=_0x3c7b6e;return _0x4d3bae==null?void 0x0:_0x4d3bae['map'](_0x3b3449=>_0x1764e6(_0x3b3449,_0x240e07,_0x5015f6))[_0x465353(0xea)](_0x197e18=>_0x197e18!=null);}const at={'id':_0x3c7b6e(0x10b),'type':_0x40c7ba[_0x3c7b6e(0x82)],'handler':_0x133d5e=>{const _0x9678af=_0x3c7b6e;var _0x48ed66;if(_0x4f2a1b(G(_0x133d5e)))return!0x1;let _0x50c7e6=_0x579c32(_0x133d5e);if(_0x50c7e6)return _0x133d5e[_0x9678af(0xb8)](_0x530cfb)[_0x9678af(0xe7)](B['id'],{'startOffset':_0x50c7e6[_0x9678af(0xfd)],'endOffset':_0x50c7e6[_0x9678af(0x103)],'insertionMode':_0x9678af(0xdc),'unitId':_0x50c7e6['unitId']});let _0x4e81b2=ft(_0x133d5e);if(!_0x4e81b2)return!0x1;let _0x257874=(_0x48ed66=_0x133d5e[_0x9678af(0xb8)](_0x23502f)[_0x9678af(0x107)](_0x33d288[_0x9678af(0xa4)]))==null?void 0x0:_0x48ed66['getBody'](),_0xa17ee9=_0x257874?_0x411e27(_0x257874,_0x4e81b2):_0x4e81b2[_0x9678af(0xe1)]+0x1;return _0x133d5e[_0x9678af(0xb8)](_0x530cfb)[_0x9678af(0xe7)](B['id'],{'startOffset':_0xa17ee9,'endOffset':_0xa17ee9});}},ot={'id':_0x3c7b6e(0xb5),'type':_0x40c7ba[_0x3c7b6e(0x82)],'handler':()=>!0x0},B={'id':_0x3c7b6e(0x93),'type':_0x40c7ba[_0x3c7b6e(0x82)],'handler':(_0xbb4211,_0x262cc6)=>{const _0x2e26f9=_0x3c7b6e;let _0x4d844f=W(_0xbb4211,_0x262cc6==null?void 0x0:_0x262cc6['unitId']);if(!_0x4d844f)return!0x1;let _0x144ea3=G(_0xbb4211);if(_0x4f2a1b(_0x144ea3))return!0x1;let _0x295026=_0x4d844f['model'][_0x2e26f9(0xab)](_0x4d844f[_0x2e26f9(0x101)]),_0x4f2169=lt(_0x262cc6,_0x144ea3),_0x2e2eb4=ut(_0x4d844f['previousDocumentData'],_0x4f2169);if(_0x2e2eb4){if(_0x2e2eb4['blockType']!==_0xc66df5[_0x2e26f9(0xd3)])return!0x1;let _0x553fec=D({'blockId':_0x2e2eb4[_0x2e26f9(0xeb)],'documentData':_0x4d844f[_0x2e26f9(0x8d)],'metadata':_0x295026});if(!_0x553fec)return!0x1;let _0x4bcae9=Y(_0x4d844f[_0x2e26f9(0xce)],_0x4d844f[_0x2e26f9(0xb3)],_0x4d844f['unitId'],_0x4d844f[_0x2e26f9(0x8d)],_0x553fec['nextDocumentData'],B['id'],_0x553fec[_0x2e26f9(0x9c)]);return _0x4bcae9&&_0x553fec[_0x2e26f9(0xe2)]&&_0x4d844f[_0x2e26f9(0x104)][_0x2e26f9(0x83)](_0x4d844f[_0x2e26f9(0x101)],_0x553fec['nextMetadata']),_0x4bcae9;}let _0x2811c0=(_0x262cc6==null?void 0x0:_0x262cc6[_0x2e26f9(0xeb)])??_0x30261f(0x6),_0x4f9855;try{_0x4f9855=De({'blockId':_0x2811c0,'config':_0x262cc6==null?void 0x0:_0x262cc6[_0x2e26f9(0xf0)],'documentData':_0x4d844f[_0x2e26f9(0x8d)],'endOffset':_0x4f2169==null?void 0x0:_0x4f2169[_0x2e26f9(0x103)],'insertionMode':_0x262cc6==null?void 0x0:_0x262cc6[_0x2e26f9(0xa2)],'metadata':_0x295026,'startOffset':_0x4f2169==null?void 0x0:_0x4f2169[_0x2e26f9(0xfd)]});}catch(_0x2edb0e){if(_0x2edb0e instanceof E)return!0x1;throw _0x2edb0e;}let _0x176e09=Y(_0x4d844f[_0x2e26f9(0xce)],_0x4d844f['selectionManager'],_0x4d844f['unitId'],_0x4d844f[_0x2e26f9(0x8d)],_0x4f9855['nextDocumentData'],B['id'],_0x4f9855['cursorOffset']);return _0x176e09&&_0x4f9855['nextMetadata']&&_0x4d844f[_0x2e26f9(0x104)][_0x2e26f9(0x83)](_0x4d844f['unitId'],_0x4f9855['nextMetadata']),_0x176e09;}},st={'id':_0x3c7b6e(0x86),'type':_0x40c7ba['COMMAND'],'handler':(_0x2f1e4c,_0x27352a)=>{const _0xfa51b9=_0x3c7b6e;if(!_0x27352a)return!0x1;let _0x341cb1=W(_0x2f1e4c,_0x27352a[_0xfa51b9(0x101)]);if(!_0x341cb1)return!0x1;let _0x4b7dae=je({'blockId':_0x27352a['blockId'],'config':_0x27352a[_0xfa51b9(0xf0)],'documentData':_0x341cb1['previousDocumentData'],'metadata':_0x341cb1['model'][_0xfa51b9(0xab)](_0x341cb1[_0xfa51b9(0x101)])});return _0x4b7dae[_0xfa51b9(0xe2)]&&_0x341cb1['model'][_0xfa51b9(0x83)](_0x341cb1[_0xfa51b9(0x101)],_0x4b7dae[_0xfa51b9(0xe2)]),!0x0;}},ct={'id':_0x3c7b6e(0xd8),'type':_0x40c7ba[_0x3c7b6e(0x82)],'handler':(_0x16ceaf,_0x24a252)=>V['handler'](_0x16ceaf,_0x24a252)},V={'id':_0x3c7b6e(0xd4),'type':_0x40c7ba['COMMAND'],'handler':(_0x25e510,_0x24038e)=>{const _0x1d04b0=_0x3c7b6e;if(!_0x24038e)return!0x1;let _0x2a7bf8=W(_0x25e510,_0x24038e==null?void 0x0:_0x24038e[_0x1d04b0(0x101)]);if(!_0x2a7bf8)return!0x1;let _0x4c69d4=D({'blockId':_0x24038e[_0x1d04b0(0xeb)],'documentData':_0x2a7bf8[_0x1d04b0(0x8d)],'metadata':_0x2a7bf8[_0x1d04b0(0x104)][_0x1d04b0(0xab)](_0x2a7bf8[_0x1d04b0(0x101)])});if(!_0x4c69d4)return!0x1;let _0x5d5b57=Y(_0x2a7bf8[_0x1d04b0(0xce)],_0x2a7bf8['selectionManager'],_0x2a7bf8[_0x1d04b0(0x101)],_0x2a7bf8[_0x1d04b0(0x8d)],_0x4c69d4[_0x1d04b0(0xf3)],V['id'],_0x4c69d4[_0x1d04b0(0x9c)]);return _0x5d5b57&&_0x4c69d4[_0x1d04b0(0xe2)]&&_0x2a7bf8[_0x1d04b0(0x104)][_0x1d04b0(0x83)](_0x2a7bf8[_0x1d04b0(0x101)],_0x4c69d4[_0x1d04b0(0xe2)]),_0x5d5b57;}},H={'id':_0x3c7b6e(0x106),'type':_0x40c7ba[_0x3c7b6e(0x82)],'handler':(_0x389f68,_0x2e3faa)=>{const _0x28941a=_0x3c7b6e;if(!_0x2e3faa)return!0x1;let _0x509f55=W(_0x389f68,_0x2e3faa==null?void 0x0:_0x2e3faa[_0x28941a(0x101)]);if(!_0x509f55)return!0x1;let _0x146548=Me({'blockId':_0x2e3faa[_0x28941a(0xeb)],'documentData':_0x509f55[_0x28941a(0x8d)],'metadata':_0x509f55[_0x28941a(0x104)][_0x28941a(0xab)](_0x509f55['unitId'])});if(!_0x146548)return!0x1;let _0x55718e=Y(_0x509f55['commandService'],_0x509f55['selectionManager'],_0x509f55[_0x28941a(0x101)],_0x509f55[_0x28941a(0x8d)],_0x146548['nextDocumentData'],H['id'],_0x146548[_0x28941a(0x9c)]);return _0x55718e&&_0x146548['nextMetadata']&&_0x509f55[_0x28941a(0x104)][_0x28941a(0x83)](_0x509f55[_0x28941a(0x101)],_0x146548[_0x28941a(0xe2)]),_0x55718e;}},U={'id':_0x3c7b6e(0xe0),'type':_0x40c7ba[_0x3c7b6e(0x82)],'handler':(_0x5d1d7d,_0x2e5d37)=>{const _0x5c3a8e=_0x3c7b6e;var _0x323337;let _0x38c5fc=W(_0x5d1d7d,_0x2e5d37==null?void 0x0:_0x2e5d37['unitId']);if(!_0x38c5fc)return!0x1;let _0x2b04f4=(_0x2e5d37==null?void 0x0:_0x2e5d37['cursorOffset'])??((_0x323337=G(_0x5d1d7d))==null?void 0x0:_0x323337[_0x5c3a8e(0xfd)]);if(_0x2b04f4==null)return!0x1;let _0x182bbf=Ne({'cursorOffset':_0x2b04f4,'documentData':_0x38c5fc['previousDocumentData'],'paragraphStartIndex':_0x2e5d37==null?void 0x0:_0x2e5d37[_0x5c3a8e(0x80)]});return _0x182bbf?Y(_0x38c5fc[_0x5c3a8e(0xce)],_0x38c5fc['selectionManager'],_0x38c5fc[_0x5c3a8e(0x101)],_0x38c5fc[_0x5c3a8e(0x8d)],_0x182bbf[_0x5c3a8e(0xf3)],U['id'],_0x182bbf[_0x5c3a8e(0x9c)]):!0x1;}};function W(_0x578cd1,_0x592498){const _0x114efa=_0x3c7b6e;let _0x45052d=_0x578cd1[_0x114efa(0xb8)](_0x23502f),_0x267358=_0x592498?_0x45052d[_0x114efa(0x8a)](_0x592498,_0x33d288[_0x114efa(0xa4)]):_0x45052d['getCurrentUnitOfType'](_0x33d288[_0x114efa(0xa4)]);return _0x267358?{'commandService':_0x578cd1[_0x114efa(0xb8)](_0x530cfb),'model':_0x578cd1[_0x114efa(0xb8)](w),'previousDocumentData':_0x267358[_0x114efa(0xae)](),'selectionManager':_0x578cd1[_0x114efa(0xb8)](_0x576bc0),'unitId':_0x267358[_0x114efa(0xe6)]()}:null;}function G(_0x11c39f){const _0x124a73=_0x3c7b6e;var _0x168633;return(_0x168633=_0x11c39f[_0x124a73(0xb8)](_0x576bc0)['getTextRanges']())==null?void 0x0:_0x168633[0x0];}function lt(_0x226049,_0x4cd097){const _0xa5f18d=_0x3c7b6e;let _0x5073ff=(_0x226049==null?void 0x0:_0x226049[_0xa5f18d(0xfd)])??(_0x4cd097==null?void 0x0:_0x4cd097[_0xa5f18d(0xfd)]),_0xb5916f=(_0x226049==null?void 0x0:_0x226049['endOffset'])??(_0x4cd097==null?void 0x0:_0x4cd097[_0xa5f18d(0x103)]);if(_0x5073ff!=null&&_0xb5916f!=null)return{'endOffset':Math['max'](_0x5073ff,_0xb5916f),'startOffset':Math[_0xa5f18d(0xa1)](_0x5073ff,_0xb5916f)};}function ut(_0x2f2ac1,_0x4aa070){const _0x2548c9=_0x3c7b6e;var _0x5cb11b;if(!_0x4aa070)return;let _0x508532=dt(_0x4aa070);return(_0x5cb11b=_0x2f2ac1[_0x2548c9(0x92)])==null||(_0x5cb11b=_0x5cb11b[_0x2548c9(0xf5)])==null?void 0x0:_0x5cb11b[_0x2548c9(0xba)](_0x4fb311=>{const _0x53243c=_0x2548c9;let _0x1b5920=_0x42484b(_0x4fb311);return _0x4aa070['startOffset']===_0x4aa070[_0x53243c(0x103)]?_0x218fd5(_0x1b5920,_0x508532):_0xb8136f(_0x1b5920,_0x508532);});}function dt(_0x34c069){const _0x2e9b52=_0x3c7b6e;return _0x34c069[_0x2e9b52(0xfd)]===_0x34c069[_0x2e9b52(0x103)]?_0x34c069[_0x2e9b52(0xfd)]:_0x34c069[_0x2e9b52(0xfd)]+0x1;}function ft(_0x5e5d30){const _0x2dad97=_0x3c7b6e;let _0x3a3b32=G(_0x5e5d30);if(!_0x3a3b32)return null;let _0xa3ada1=_0x5e5d30[_0x2dad97(0xb8)](_0x23502f)[_0x2dad97(0x107)](_0x33d288[_0x2dad97(0xa4)]),_0x44059a=_0xa3ada1==null?void 0x0:_0xa3ada1[_0x2dad97(0x10e)]();return _0x44059a?_0x5e634c[_0x2dad97(0xdf)][_0x2dad97(0xd6)](_0x3a3b32,_0x44059a[_0x2dad97(0x85)]??[],_0x44059a['dataStream']??'')[0x0]??null:null;}function pt(_0x3ec56d,_0x3fb497){const _0x1a36b5=_0x3c7b6e;let _0x3b9be2=_0x3ec56d[_0x1a36b5(0x92)],_0x3fcac8=_0x3fb497[_0x1a36b5(0x92)],_0x5434e4=_0x4bad03(_0x3b9be2,_0x3fcac8);return[_0x5434e4&&_0x3fcac8?mt(_0x3fcac8,_0x5434e4):null,_0x5434e4?null:ht(_0x3b9be2,_0x3fcac8)][_0x1a36b5(0xea)](Boolean)[_0x1a36b5(0xaf)]((_0xde3c06,_0x1517a2)=>_0x42b9cd[_0x1a36b5(0xd0)](_0xde3c06,_0x1517a2),null);}function mt(_0x4e19cd,_0x31d23d){const _0x1a8fe2=_0x3c7b6e;let _0x2af621=new _0x196b0d();return _0x2af621[_0x1a8fe2(0xde)](_0x31d23d['start']),_0x31d23d[_0x1a8fe2(0xc6)]>0x0&&_0x2af621['insert'](_0x31d23d[_0x1a8fe2(0xc6)],_0x1eeac7(_0x4e19cd,_0x31d23d['start'],_0x31d23d[_0x1a8fe2(0xe5)]+_0x31d23d['insertLength'],!0x1)),_0x31d23d[_0x1a8fe2(0x9e)]>0x0&&_0x2af621[_0x1a8fe2(0xa6)](_0x31d23d[_0x1a8fe2(0x9e)]),_0x42b9cd[_0x1a8fe2(0xbd)]()[_0x1a8fe2(0x10d)](_0x2af621[_0x1a8fe2(0xab)](),['body']);}function ht(_0x19dbfa,_0x5c0177){const _0x272b02=_0x3c7b6e;let _0x19e6a1=[],_0x4440c9=_0x19dbfa?_t(_0x19dbfa):void 0x0,_0x15c4c8=_0x5c0177?_t(_0x5c0177):void 0x0;for(let _0x241110 of gt)K(_0x42b9cd[_0x272b02(0xbd)](),[_0x272b02(0x92),_0x241110],_0x4440c9==null?void 0x0:_0x4440c9[_0x241110],_0x15c4c8==null?void 0x0:_0x15c4c8[_0x241110],_0x19e6a1);return _0x19e6a1['reduce']((_0x348497,_0x5a0add)=>_0x42b9cd['compose'](_0x348497,_0x5a0add),null);}const gt=[_0x3c7b6e(0x85),_0x3c7b6e(0x81),_0x3c7b6e(0xf7),'columnGroups',_0x3c7b6e(0xf5),_0x3c7b6e(0x88),_0x3c7b6e(0x100),_0x3c7b6e(0xa0),'textRuns'];function _t(_0x39be50){return _0x39be50;}function K(_0x313fdc,_0x56b8e7,_0x43b44b,_0x2f6a00,_0x3588aa){const _0x1fb9b1=_0x3c7b6e;if(!J(_0x43b44b,_0x2f6a00)){if(_0x43b44b==null){_0x3588aa['push'](_0x313fdc[_0x1fb9b1(0x117)](_0x56b8e7,_0x2f6a00));return;}if(_0x2f6a00==null){_0x3588aa[_0x1fb9b1(0x115)](_0x313fdc[_0x1fb9b1(0x79)](_0x56b8e7,_0x43b44b));return;}if(Array['isArray'](_0x43b44b)&&Array['isArray'](_0x2f6a00)){vt(_0x313fdc,_0x56b8e7,_0x43b44b,_0x2f6a00,_0x3588aa);return;}if(q(_0x43b44b)&&q(_0x2f6a00)){new Set([...Object[_0x1fb9b1(0xf9)](_0x43b44b),...Object[_0x1fb9b1(0xf9)](_0x2f6a00)])['forEach'](_0x9c0b1c=>{K(_0x313fdc,[..._0x56b8e7,_0x9c0b1c],_0x43b44b[_0x9c0b1c],_0x2f6a00[_0x9c0b1c],_0x3588aa);});return;}_0x3588aa[_0x1fb9b1(0x115)](_0x313fdc[_0x1fb9b1(0xc5)](_0x56b8e7,_0x43b44b,_0x2f6a00));}}function vt(_0x400f71,_0x4a20a0,_0x1a2aac,_0x55edba,_0x1653dc){const _0x26101a=_0x3c7b6e;if(_0x1a2aac[_0x26101a(0x7b)]===_0x55edba[_0x26101a(0x7b)]){_0x1a2aac[_0x26101a(0xaa)]((_0x3d5a9c,_0x5d1858)=>K(_0x400f71,[..._0x4a20a0,_0x5d1858],_0x3d5a9c,_0x55edba[_0x5d1858],_0x1653dc));return;}let _0x81e401=0x0;for(;_0x81e401<_0x1a2aac[_0x26101a(0x7b)]&&_0x81e401<_0x55edba[_0x26101a(0x7b)]&&J(_0x1a2aac[_0x81e401],_0x55edba[_0x81e401]);)_0x81e401++;let _0x54d553=_0x1a2aac[_0x26101a(0x7b)]-0x1,_0x11276a=_0x55edba[_0x26101a(0x7b)]-0x1;for(;_0x54d553>=_0x81e401&&_0x11276a>=_0x81e401&&J(_0x1a2aac[_0x54d553],_0x55edba[_0x11276a]);)_0x54d553--,_0x11276a--;for(let _0x502655=_0x54d553;_0x502655>=_0x81e401;_0x502655--)_0x1653dc[_0x26101a(0x115)](_0x400f71[_0x26101a(0x79)]([..._0x4a20a0,_0x502655],_0x1a2aac[_0x502655]));for(let _0xefa399=_0x81e401;_0xefa399<=_0x11276a;_0xefa399++)_0x1653dc['push'](_0x400f71[_0x26101a(0x117)]([..._0x4a20a0,_0xefa399],_0x55edba[_0xefa399]));}function q(_0x475f80){const _0x86345d=_0x3c7b6e;return typeof _0x475f80==_0x86345d(0xa9)&&!!_0x475f80&&!Array['isArray'](_0x475f80);}function J(_0x18fb67,_0x364827){const _0x12e19e=_0x3c7b6e;return JSON[_0x12e19e(0x7d)](_0x18fb67)===JSON[_0x12e19e(0x7d)](_0x364827);}function Y(_0x55fcea,_0x300b66,_0x90695f,_0x152f5a,_0x3cad88,_0x2a0547,_0x21c5e3){const _0x324390=_0x3c7b6e;let _0x33869d=pt(_0x152f5a,_0x3cad88);return _0x33869d?!!_0x55fcea[_0x324390(0xe7)](_0x12d7c6['id'],{'unitId':_0x90695f,'actions':_0x33869d,'textRanges':[{'startOffset':_0x21c5e3,'endOffset':_0x21c5e3,'collapsed':!0x0}],'isEditing':!0x1,'trigger':_0x2a0547}):(_0x300b66[_0x324390(0x112)]([{'startOffset':_0x21c5e3,'endOffset':_0x21c5e3}],{'unitId':_0x90695f,'subUnitId':_0x90695f},!0x1),!0x0);}const X=_0x3c7b6e(0x109);var yt=_0x3c7b6e(0x9b),bt=_0x3c7b6e(0x118);const xt={};function Z(_0x48bdc6,_0x3f0162){return function(_0x1115ed,_0x610fad){_0x3f0162(_0x1115ed,_0x610fad,_0x48bdc6);};}function St(_0x4c63f6,_0x50d8b7,_0x580ca0,_0x50588d){const _0x1bbf81=_0x3c7b6e;var _0xb046b2=arguments[_0x1bbf81(0x7b)],_0x4751ee=_0xb046b2<0x3?_0x50d8b7:_0x50588d===null?_0x50588d=Object['getOwnPropertyDescriptor'](_0x50d8b7,_0x580ca0):_0x50588d,_0x5b031a;if(typeof Reflect==_0x1bbf81(0xa9)&&typeof Reflect['decorate']=='function')_0x4751ee=Reflect['decorate'](_0x4c63f6,_0x50d8b7,_0x580ca0,_0x50588d);else{for(var _0x31f715=_0x4c63f6[_0x1bbf81(0x7b)]-0x1;_0x31f715>=0x0;_0x31f715--)(_0x5b031a=_0x4c63f6[_0x31f715])&&(_0x4751ee=(_0xb046b2<0x3?_0x5b031a(_0x4751ee):_0xb046b2>0x3?_0x5b031a(_0x50d8b7,_0x580ca0,_0x4751ee):_0x5b031a(_0x50d8b7,_0x580ca0))||_0x4751ee);}return _0xb046b2>0x3&&_0x4751ee&&Object['defineProperty'](_0x50d8b7,_0x580ca0,_0x4751ee),_0x4751ee;}let Q=class extends _0x5ddd1d{constructor(_0x502fa8,_0x57ef35){const _0x5c155f=_0x3c7b6e;super(),this['_resourceManagerService']=_0x502fa8,this[_0x5c155f(0x105)]=_0x57ef35,this['_initResource']();}['_initResource'](){const _0x45551f=_0x3c7b6e;this[_0x45551f(0xf6)](this[_0x45551f(0xa3)]['registerPluginResource']({'pluginName':X,'businesses':[_0x33d288[_0x45551f(0xa4)]],'toJson':_0x451bac=>JSON['stringify'](this['_docsCodeModel']['serialize'](_0x451bac)),'parseJson':_0x5e6ddc=>y(JSON[_0x45551f(0x98)](_0x5e6ddc)),'onLoad':(_0x9b2a70,_0x5912fd)=>this[_0x45551f(0x105)][_0x45551f(0x83)](_0x9b2a70,_0x5912fd),'onUnLoad':_0x4429f6=>this[_0x45551f(0x105)][_0x45551f(0x7c)](_0x4429f6)}));}};Q=St([Z(0x0,_0x5b5ca8),Z(0x1,_0x3fdb21(w))],Q);let $=class extends _0x1d23e9{constructor(_0x581b1a=xt,_0xeb5bad,_0x4d5128,_0x3e4836){const _0x1cb276=_0x3c7b6e;super(),this['_config']=_0x581b1a,this[_0x1cb276(0x10c)]=_0xeb5bad,this['_commandService']=_0x4d5128,this[_0x1cb276(0x90)]=_0x3e4836;let {..._0x431413}=_0x2e149b({},xt,this[_0x1cb276(0x7f)]);this[_0x1cb276(0x90)][_0x1cb276(0x78)](_0x1cb276(0xa7),_0x431413);}[_0x3c7b6e(0x89)](){const _0x394b08=_0x3c7b6e;this[_0x394b08(0x10c)][_0x394b08(0xdd)]([w]),this['_injector'][_0x394b08(0xdd)]([Q]),this[_0x394b08(0x10c)]['get'](w),this['_injector'][_0x394b08(0xb8)](Q),[B,at,st,V,H,ct,U,ot,Te,T]['forEach'](_0x51b495=>this[_0x394b08(0xf6)](this[_0x394b08(0x84)][_0x394b08(0xc0)](_0x51b495)));}};function _0x5970(){const _0x282a9c=['_config','paragraphStartIndex','sectionBreaks','COMMAND','deserialize','_commandService','paragraphs','docs-code.command.update','toPrimitive','customBlocks','onStarting','getUnit','888411RVGdgk','defineProperty','previousDocumentData','8456861mOKiXR','docs-code.mutation.set-config','_configService','some','body','docs-code.command.insert','Document\x20body\x20is\x20required','convert-paragraph','endsWith','indexOf','parse','blockType','paragraph','@univerjs-pro/docs-code','cursorOffset','PARAGRAPH','deleteLength','slice','customDecorations','min','insertionMode','_resourceManagerService','UNIVER_DOC','16893UaNVuX','delete','docs-code.config','fromEntries','object','forEach','serialize','endIndex','Insert\x20range\x20cannot\x20overlap\x20an\x20existing\x20document\x20block','getSnapshot','reduce','columnGroups','3110cOGRhO','sort','selectionManager','prototype','docs-code.command.consume-boundary-delete','version','_resources','get','spaceBelow','find','max','TABLE_CELL_END','getInstance','BLOCK_START','textRuns','registerCommand','pluginName','symbol','docs-code.mutation.remove-config','indentStart','replaceOp','insertLength','86693mIUlXg','9833304QjyzvZ','iterator','every','clear','map','spaceAbove','commandService','set','compose','textStyle','setCodeConfig','CODE','docs-code.command.unwrap','getCodeConfig','getParagraphsInRange','default','docs-code.command.exit','dataStream','keepNext','paragraphStyle','insert-new','add','retain','range','docs-code.command.cancel-empty-paragraph','startIndex','nextMetadata','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','complete','start','getUnitId','syncExecuteCommand','next','monospace','filter','blockId','BLOCK_END','dispose','_change$','string','config','type','widowControl','nextDocumentData','documentData','blockRanges','disposeWithMe','tables','endTokenOffset','keys','paragraphId','2172020TmSAJD','metadata','startOffset','function','_setResource','customRanges','unitId','startTokenOffset','endOffset','model','_docsCodeModel','docs-code.command.remove','getCurrentUnitOfType','removeCode','DOC_CODE_PLUGIN','TRUE','docs-code.command.insert-below','_injector','editOp','getBody','direction','indentEnd','2nljvmw','replaceDocRanges','442115dLMKnz','18XxnWkO','push','Insert\x20range\x20cannot\x20cross\x20table\x20cell\x20boundaries','insertOp','1.0.0-insiders.20260808-70eefdd','isArray','entries','packageName','codes','from','columns','setConfig','removeOp','TABLE_CELL_START','length','removeUnit','stringify','keepLines'];_0x5970=function(){return _0x282a9c;};return _0x5970();}C($,_0x3c7b6e(0xc1),X),C($,_0x3c7b6e(0x74),yt),C($,_0x3c7b6e(0xb6),bt),C($,_0x3c7b6e(0xf1),_0x33d288[_0x3c7b6e(0xa4)]),$=St([_0x362164(_0x5a6240,_0x5b5832),Z(0x1,_0x3fdb21(_0x587b27)),Z(0x2,_0x530cfb),Z(0x3,_0x440bd3)],$);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 _0x578284=_0x5216;(function(_0x470c17,_0xd7c9b6){const _0x43f2ee=_0x5216,_0x3ad987=_0x470c17();while(!![]){try{const _0x194465=parseInt(_0x43f2ee(0x17c))/0x1+-parseInt(_0x43f2ee(0x117))/0x2+parseInt(_0x43f2ee(0x159))/0x3*(parseInt(_0x43f2ee(0x109))/0x4)+-parseInt(_0x43f2ee(0x112))/0x5*(-parseInt(_0x43f2ee(0x18d))/0x6)+parseInt(_0x43f2ee(0x16d))/0x7*(parseInt(_0x43f2ee(0x15a))/0x8)+parseInt(_0x43f2ee(0x195))/0x9+-parseInt(_0x43f2ee(0x146))/0xa;if(_0x194465===_0xd7c9b6)break;else _0x3ad987['push'](_0x3ad987['shift']());}catch(_0x4280fb){_0x3ad987['push'](_0x3ad987['shift']());}}}(_0x379c,0x7af79));import{BooleanNumber as _0xfb6348,BuildTextUtils as _0x436562,CommandType as _0x35ad4f,DataStreamTreeTokenType as _0x6f7a33,DependentOn as _0x3f9ced,Disposable as _0xc9b18a,DocumentBlockRangeType as _0x2b195a,ICommandService as _0x1488c2,IConfigService as _0x322276,IResourceManagerService as _0x15472f,IUniverInstanceService as _0x13b6f2,Inject as _0x8d4d91,Injector as _0x5f0624,JSONX as _0x142004,Plugin as _0x46ce77,TextX as _0xd2211,UniverInstanceType as _0xdb135d,containsInteriorInsertionOffset as _0x10793e,containsStreamIndex as _0x24ffbf,createParagraphId as _0x1d6f01,generateRandomId as _0x390162,getBlockRangeInterval as _0x3e8421,getBodySliceForTextXAction as _0x35244e,getParagraphContentStartOffset as _0x225d77,getParagraphContentStartOffsets as _0x1ccbd7,getParagraphFollowingBlockOffset as _0x35c6e9,getSingleDataStreamChange as _0x101b28,intersectsOperationalIntervals as _0x2c6d10,merge as _0x4b0430,shiftExclusiveRangeOnDelete as _0x3f3b1a,shiftExclusiveRangeOnInsert as _0x56252a,shiftInclusiveRangeOnDelete as _0x2c30bd,shiftInclusiveRangeOnInsert as _0x56f453}from'@univerjs/core';import{Subject as _0x4750dc}from'rxjs';import{DocSelectionManagerService as _0x31b1fc,RichTextEditingMutation as _0x20121c,UniverDocsPlugin as _0x48415b,getContentInsertRange as _0x4ed4ca,isHeaderFooterSelection as _0x43c1c3}from'@univerjs/docs';import{UniverLicensePlugin as _0x1a4448}from'@univerjs-pro/license';const Se={'language':_0x578284(0x106),'showLineNumbers':!0x1,'tabSize':0x4,'wrap':!0x0};function v(_0x211c2f){return{...Se,..._0x211c2f};}function y(_0x35c034){const _0x2f2534=_0x578284;let _0x3552be=(_0x35c034==null?void 0x0:_0x35c034[_0x2f2534(0x160)])??{};return{'codes':Object['fromEntries'](Object['entries'](_0x3552be)[_0x2f2534(0x151)](([_0x236c6d,_0x389d0f])=>[_0x236c6d,v(_0x389d0f)]))};}function b(_0x32f146,_0x1f99ba,_0x785b8f){const _0x449224=_0x578284;let _0x193f3a=y(_0x32f146);return _0x193f3a[_0x449224(0x160)][_0x1f99ba]=v({..._0x193f3a[_0x449224(0x160)][_0x1f99ba],..._0x785b8f}),_0x193f3a;}function x(_0x5eb124,_0x137128){let _0x2503cc=y(_0x5eb124);return delete _0x2503cc['codes'][_0x137128],_0x2503cc;}function S(_0x48af54){'@babel/helpers - typeof';const _0x376244=_0x578284;return S=typeof Symbol==_0x376244(0x128)&&typeof Symbol[_0x376244(0x13e)]==_0x376244(0x13f)?function(_0xc0cb9e){return typeof _0xc0cb9e;}:function(_0x5c9608){const _0x179169=_0x376244;return _0x5c9608&&typeof Symbol==_0x179169(0x128)&&_0x5c9608[_0x179169(0x174)]===Symbol&&_0x5c9608!==Symbol[_0x179169(0x170)]?_0x179169(0x13f):typeof _0x5c9608;},S(_0x48af54);}function Ce(_0x3c330a,_0x3ae4e7){const _0x1a27e3=_0x578284;if(S(_0x3c330a)!=_0x1a27e3(0x11a)||!_0x3c330a)return _0x3c330a;var _0x31ab3b=_0x3c330a[Symbol['toPrimitive']];if(_0x31ab3b!==void 0x0){var _0x1bf8ba=_0x31ab3b['call'](_0x3c330a,_0x3ae4e7||'default');if(S(_0x1bf8ba)!=_0x1a27e3(0x11a))return _0x1bf8ba;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x3ae4e7===_0x1a27e3(0x145)?String:Number)(_0x3c330a);}function we(_0x4cec87){const _0x4fef48=_0x578284;var _0xa0ec27=Ce(_0x4cec87,_0x4fef48(0x145));return S(_0xa0ec27)==_0x4fef48(0x13f)?_0xa0ec27:_0xa0ec27+'';}function C(_0x542584,_0x267e70,_0x55b0c5){const _0x1f4e49=_0x578284;return(_0x267e70=we(_0x267e70))in _0x542584?Object[_0x1f4e49(0x167)](_0x542584,_0x267e70,{'value':_0x55b0c5,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x542584[_0x267e70]=_0x55b0c5,_0x542584;}var w=class extends _0xc9b18a{constructor(..._0x57469f){const _0x29b113=_0x578284;super(..._0x57469f),C(this,_0x29b113(0x161),new Map()),C(this,_0x29b113(0x12a),new _0x4750dc()),C(this,_0x29b113(0x18b),this[_0x29b113(0x12a)][_0x29b113(0x13d)]());}[_0x578284(0x176)](_0x12215e,_0x2c3bcf){const _0x3b4515=_0x578284;return y(this[_0x3b4515(0x161)][_0x3b4515(0x11d)](_0x12215e))['codes'][_0x2c3bcf];}[_0x578284(0x154)](_0x38128d,_0xf77910,_0x35f0a4){const _0x140f70=_0x578284;this[_0x140f70(0x137)](_0x38128d,_0xf77910,b(this['_resources'][_0x140f70(0x11d)](_0x38128d),_0xf77910,_0x35f0a4));}[_0x578284(0x144)](_0x35ad4b,_0x1bfac9){const _0x3c5e29=_0x578284;this['_setResource'](_0x35ad4b,_0x1bfac9,x(this[_0x3c5e29(0x161)]['get'](_0x35ad4b),_0x1bfac9));}[_0x578284(0x14c)](_0x59355d){const _0x5a4e08=_0x578284;return y(this['_resources'][_0x5a4e08(0x11d)](_0x59355d));}[_0x578284(0x15d)](_0xe3eaaa,_0x469467){const _0x15a660=_0x578284;this[_0x15a660(0x161)][_0x15a660(0x111)](_0xe3eaaa,y(_0x469467)),this[_0x15a660(0x12a)][_0x15a660(0x136)]({'unitId':_0xe3eaaa});}[_0x578284(0x143)](_0x11573d){const _0x443fba=_0x578284;this[_0x443fba(0x161)][_0x443fba(0x15e)](_0x11573d),this[_0x443fba(0x12a)]['next']({'unitId':_0x11573d});}[_0x578284(0x194)](){const _0x1021fb=_0x578284;super['dispose'](),this[_0x1021fb(0x161)][_0x1021fb(0x15c)](),this[_0x1021fb(0x12a)][_0x1021fb(0x105)]();}[_0x578284(0x137)](_0x92c408,_0x364127,_0x50ee88){const _0x4b1ef9=_0x578284;this['_resources'][_0x4b1ef9(0x111)](_0x92c408,_0x50ee88),this[_0x4b1ef9(0x12a)][_0x4b1ef9(0x136)]({'unitId':_0x92c408,'blockId':_0x364127});}};const Te={'id':_0x578284(0x165),'type':_0x35ad4f[_0x578284(0x127)],'handler':(_0x944d4a,_0x3c68a0)=>!(_0x3c68a0!=null&&_0x3c68a0[_0x578284(0x16c)])||!_0x3c68a0[_0x578284(0x134)]?!0x1:(_0x944d4a[_0x578284(0x11d)](w)[_0x578284(0x154)](_0x3c68a0[_0x578284(0x16c)],_0x3c68a0[_0x578284(0x134)],_0x3c68a0['config']),!0x0)},T={'id':'docs-code.mutation.remove-config','type':_0x35ad4f[_0x578284(0x127)],'handler':(_0x481a4a,_0x4740bf)=>!(_0x4740bf!=null&&_0x4740bf[_0x578284(0x16c)])||!_0x4740bf[_0x578284(0x134)]?!0x1:(_0x481a4a[_0x578284(0x11d)](w)['removeCode'](_0x4740bf[_0x578284(0x16c)],_0x4740bf['blockId']),!0x0)},Ee=_0x578284(0x10c);var E=class extends Error{constructor(_0x5b0594=_0x578284(0x132)){super(_0x5b0594);}};function De(_0x273039){const _0x233786=_0x578284;var _0xfaadf4;let _0x39d14b=O(_0x273039['documentData']),_0x3f7134=A(_0x39d14b),_0x35550b=ke(_0x273039['startOffset'],_0x273039[_0x233786(0x17d)]),_0x93437a=_0x35550b?(_0xfaadf4=_0x3f7134[_0x233786(0x177)])==null?void 0x0:_0xfaadf4['find'](_0x48c259=>{const _0xdb0df1=_0x233786;let _0x4901dc=_0x3e8421(_0x48c259);return _0x4901dc[_0xdb0df1(0x15b)]===_0x35550b[_0xdb0df1(0x15b)]&&_0x4901dc[_0xdb0df1(0x17d)]===_0x35550b[_0xdb0df1(0x17d)];}):void 0x0,{startOffset:_0x3bee91,endOffset:_0x1df804}=_0x93437a?_0x35550b:We(_0x3f7134,_0x273039[_0x233786(0x15b)],_0x273039[_0x233786(0x17d)],_0x273039[_0x233786(0x10e)]);if(!_0x93437a&&Ae(_0x3f7134,_0x3bee91,_0x1df804))throw new E(_0x233786(0x121));let _0x5218f7=qe(_0x3f7134,_0x3bee91,_0x1df804),_0x23b2dd=(_0x93437a==null?void 0x0:_0x93437a[_0x233786(0x134)])??_0x273039[_0x233786(0x134)],_0x2e2983=b(_0x273039[_0x233786(0x113)],_0x23b2dd,{...Se,..._0x273039['config']});if(_0x93437a)return _0x93437a[_0x233786(0x142)]=_0x2b195a[_0x233786(0x101)],Oe(_0x3f7134,_0x3bee91,_0x1df804),ze(_0x3f7134,_0x3bee91,_0x1df804,_0x5218f7),N(_0x3f7134,_0x93437a),{'nextDocumentData':_0x39d14b,'nextMetadata':_0x2e2983,'cursorOffset':_0x3bee91+0x1};if(_0x3bee91===_0x1df804){var _0x43817b,_0x10e4c5;let _0x48cd54=''+_0x6f7a33['BLOCK_START']+_0x6f7a33['PARAGRAPH']+_0x6f7a33[_0x233786(0x155)];P(_0x3f7134,_0x3bee91,_0x48cd54,{'paragraphs':[{'startIndex':0x1,'paragraphId':_0x1d6f01(new Set((_0x43817b=_0x3f7134[_0x233786(0x16f)])==null?void 0x0:_0x43817b[_0x233786(0x151)](_0x2a9873=>_0x2a9873[_0x233786(0x10f)]))),'paragraphStyle':Re(!0x0,!0x0,_0x5218f7)}],'blockRanges':[{'blockId':_0x23b2dd,'blockType':_0x2b195a[_0x233786(0x101)],'startIndex':0x0,'endIndex':_0x48cd54[_0x233786(0x198)]-0x1}]});let _0x18c747=(_0x10e4c5=_0x3f7134['blockRanges'])==null?void 0x0:_0x10e4c5[_0x233786(0x125)](_0x101c01=>_0x101c01[_0x233786(0x134)]===_0x23b2dd);return _0x18c747&&N(_0x3f7134,_0x18c747),{'nextDocumentData':_0x39d14b,'nextMetadata':_0x2e2983,'cursorOffset':_0x3bee91+0x1};}P(_0x3f7134,_0x1df804,_0x6f7a33['BLOCK_END']),P(_0x3f7134,_0x3bee91,_0x6f7a33[_0x233786(0x186)]),ze(_0x3f7134,_0x3bee91,_0x1df804+0x1,_0x5218f7);let _0x5af75a={'blockId':_0x23b2dd,'blockType':_0x2b195a['CODE'],'startIndex':_0x3bee91,'endIndex':_0x1df804+0x1};return _0x3f7134[_0x233786(0x177)]=[..._0x3f7134[_0x233786(0x177)]??[],_0x5af75a][_0x233786(0x120)]((_0x1b9bbe,_0x2bac31)=>_0x1b9bbe[_0x233786(0x156)]-_0x2bac31[_0x233786(0x156)]),N(_0x3f7134,_0x5af75a),{'nextDocumentData':_0x39d14b,'nextMetadata':_0x2e2983,'cursorOffset':_0x3bee91+0x1};}function Oe(_0x5316c1,_0x1db4df,_0x518425){const _0x5bbff9=_0x578284;(_0x5316c1[_0x5bbff9(0x16f)]??[])[_0x5bbff9(0x13b)](_0x1b0f1b=>_0x1b0f1b[_0x5bbff9(0x156)]>_0x1db4df&&_0x1b0f1b[_0x5bbff9(0x156)]<_0x518425)['forEach'](_0xbe4b11=>{const _0x6dedea=_0x5bbff9;let _0x1f5498={..._0xbe4b11[_0x6dedea(0x17f)]??{}};delete _0x1f5498[_0x6dedea(0x12c)],delete _0x1f5498[_0x6dedea(0x169)],_0xbe4b11[_0x6dedea(0x17f)]=_0x1f5498;});}function ke(_0x5e9e94,_0x1b075e){return _0x5e9e94==null||_0x1b075e==null||_0x5e9e94===_0x1b075e?null:{'startOffset':Math['min'](_0x5e9e94,_0x1b075e),'endOffset':Math['max'](_0x5e9e94,_0x1b075e)};}function Ae(_0x11d3b9,_0x3273d9,_0x3a2e14){const _0x2c25ed=_0x578284;return(_0x11d3b9[_0x2c25ed(0x177)]??[])[_0x2c25ed(0x131)](_0x2da80a=>{let _0x2ebafe=_0x3e8421(_0x2da80a);return _0x3273d9===_0x3a2e14?_0x10793e(_0x2ebafe,_0x3273d9):_0x2c6d10(_0x2ebafe,{'startOffset':_0x3273d9,'endOffset':_0x3a2e14});});}function je(_0x1de190){const _0x20427c=_0x578284;return{'nextDocumentData':O(_0x1de190[_0x20427c(0x12f)]),'nextMetadata':b(_0x1de190['metadata'],_0x1de190[_0x20427c(0x134)],_0x1de190['config']),'cursorOffset':0x0};}function D(_0x6b4d0a){const _0x3be3b7=_0x578284;let _0x42d424=O(_0x6b4d0a['documentData']),_0x50fb3b=A(_0x42d424),_0x5a3e78=Fe(_0x50fb3b,_0x6b4d0a['blockId']);if(!_0x5a3e78)return null;let _0x407c75=He(_0x50fb3b,_0x5a3e78);return{'nextDocumentData':_0x42d424,'nextMetadata':x(_0x6b4d0a[_0x3be3b7(0x113)],_0x6b4d0a['blockId']),'cursorOffset':_0x407c75};}function Me(_0x28080e){const _0x1ed64=_0x578284;var _0x179871;let _0x450538=O(_0x28080e[_0x1ed64(0x12f)]),_0x384edf=A(_0x450538),_0x583ed8=Fe(_0x384edf,_0x28080e[_0x1ed64(0x134)]);if(!_0x583ed8)return null;let _0x3eb5a0=_0x3e8421(_0x583ed8);return F(_0x384edf,_0x3eb5a0[_0x1ed64(0x15b)],_0x3eb5a0[_0x1ed64(0x17d)]),_0x384edf[_0x1ed64(0x177)]=(_0x179871=_0x384edf[_0x1ed64(0x177)])==null?void 0x0:_0x179871[_0x1ed64(0x13b)](_0x1c17ce=>_0x1c17ce[_0x1ed64(0x134)]!==_0x28080e[_0x1ed64(0x134)]),{'nextDocumentData':_0x450538,'nextMetadata':x(_0x28080e[_0x1ed64(0x113)],_0x28080e[_0x1ed64(0x134)]),'cursorOffset':_0x583ed8[_0x1ed64(0x156)]};}function Ne(_0x44fa96){const _0x11b041=_0x578284;let _0x3e8b0c=O(_0x44fa96[_0x11b041(0x12f)]),_0x578e4b=A(_0x3e8b0c),_0xc16556=Le(_0x578e4b,_0x44fa96[_0x11b041(0x179)]);return _0xc16556&&Pe(_0x3e8b0c,_0x578e4b,_0xc16556,_0x44fa96[_0x11b041(0x179)],_0x44fa96[_0x11b041(0xfb)])||null;}function Pe(_0xb31f4e,_0x6080e4,_0x4dadf2,_0x87d048,_0x3448d5){const _0x5dfb6a=_0x578284;let _0x33b4a6=$e(_0x6080e4,_0x4dadf2,_0x87d048,_0x3448d5);if(!_0x33b4a6)return null;let _0x1f250a=_0x33b4a6['endTokenOffset']-0x1;return F(_0x6080e4,_0x33b4a6[_0x5dfb6a(0x152)][_0x5dfb6a(0x156)],_0x33b4a6[_0x5dfb6a(0x152)]['startIndex']+0x1),{'nextDocumentData':_0xb31f4e,'cursorOffset':_0x1f250a};}function Fe(_0x3ef73c,_0x5ea48d){const _0x47f696=_0x578284;var _0x140d5e;return _0x3ef73c==null||(_0x140d5e=_0x3ef73c[_0x47f696(0x177)])==null?void 0x0:_0x140d5e[_0x47f696(0x125)](_0x44303a=>_0x44303a[_0x47f696(0x142)]===_0x2b195a[_0x47f696(0x101)]&&_0x44303a[_0x47f696(0x134)]===_0x5ea48d);}function Ie(_0x6ff0b5){const _0x43c2b5=_0x578284;let _0x5b40a7=_0x6ff0b5[_0x43c2b5(0x12f)][_0x43c2b5(0x116)];if(!_0x5b40a7)return!0x1;let _0x3bd28=_0x6ff0b5[_0x43c2b5(0x171)]===_0x43c2b5(0x163)?_0x6ff0b5['cursorOffset']-0x1:_0x6ff0b5[_0x43c2b5(0x179)],_0x5b1343=_0x6ff0b5[_0x43c2b5(0x171)]===_0x43c2b5(0x141)?_0x6ff0b5['cursorOffset']+0x1:_0x3bd28;return(_0x5b40a7[_0x43c2b5(0x177)]??[])[_0x43c2b5(0x131)](_0x1fdb56=>_0x1fdb56[_0x43c2b5(0x142)]===_0x2b195a[_0x43c2b5(0x101)]?_0x3bd28===_0x1fdb56[_0x43c2b5(0x156)]||_0x3bd28===_0x1fdb56[_0x43c2b5(0x17b)]||_0x5b1343===_0x1fdb56[_0x43c2b5(0x156)]||_0x5b1343===_0x1fdb56[_0x43c2b5(0x17b)]:!0x1);}function Le(_0x5955b0,_0xe03955){const _0x48fb87=_0x578284;var _0x10ff73;return(_0x10ff73=_0x5955b0[_0x48fb87(0x177)])==null?void 0x0:_0x10ff73[_0x48fb87(0x125)](_0x514b61=>{const _0x591c40=_0x48fb87;let _0x29ef5e=M(_0x514b61);return _0x514b61['blockType']===_0x2b195a[_0x591c40(0x101)]&&_0x514b61[_0x591c40(0x156)]<=_0xe03955&&_0xe03955<=_0x29ef5e+0x2;});}function Re(_0x4d9642,_0x542152,_0xe3e7f=!0x1){const _0x5c3cdf=_0x578284;return{'indentEnd':{'v':0x14},'indentStart':{'v':0x14},'keepLines':_0xfb6348[_0x5c3cdf(0x188)],'keepNext':_0x542152?_0xfb6348[_0x5c3cdf(0x14e)]:_0xfb6348[_0x5c3cdf(0x188)],'widowControl':_0xfb6348['TRUE'],..._0x4d9642&&_0xe3e7f?{'spaceAbove':{'v':0x8}}:{},'textStyle':{'ff':Ee,'fs':0xc}};}function ze(_0x409d4a,_0x5f217d,_0x572c4e,_0x996624=!0x1){const _0x1f4dbf=_0x578284;let _0x518b72=(_0x409d4a[_0x1f4dbf(0x16f)]??[])[_0x1f4dbf(0x13b)](_0x59a45a=>_0x59a45a[_0x1f4dbf(0x156)]>_0x5f217d&&_0x59a45a[_0x1f4dbf(0x156)]<_0x572c4e);_0x518b72[_0x1f4dbf(0x197)]((_0x55e278,_0x504bc3)=>{const _0x2115e2=_0x1f4dbf;_0x55e278['paragraphStyle']={..._0x55e278[_0x2115e2(0x17f)]??{},...Re(_0x504bc3===0x0,_0x504bc3===_0x518b72[_0x2115e2(0x198)]-0x1,_0x996624)};});}function Be(_0x127ce4){const _0x3e2ce9=_0x578284;var _0x5ceb66,_0x3aba9c;let _0x3a1002={..._0x127ce4??{}};return delete _0x3a1002['indentEnd'],delete _0x3a1002[_0x3e2ce9(0x181)],delete _0x3a1002['spaceAbove'],delete _0x3a1002[_0x3e2ce9(0x169)],delete _0x3a1002[_0x3e2ce9(0x123)],delete _0x3a1002[_0x3e2ce9(0x147)],delete _0x3a1002[_0x3e2ce9(0x11b)],((_0x5ceb66=_0x3a1002[_0x3e2ce9(0x15f)])==null?void 0x0:_0x5ceb66['ff'])===Ee&&((_0x3aba9c=_0x3a1002[_0x3e2ce9(0x15f)])==null?void 0x0:_0x3aba9c['fs'])===0xc&&delete _0x3a1002[_0x3e2ce9(0x15f)],_0x3a1002;}function Ve(_0x342bbe,_0x2a10a3){const _0x3c407b=_0x578284;let _0x5323a0=M(_0x2a10a3);return(_0x342bbe[_0x3c407b(0x16f)]??[])[_0x3c407b(0x13b)](_0x439879=>_0x439879[_0x3c407b(0x156)]>_0x2a10a3[_0x3c407b(0x156)]&&_0x439879['startIndex']<_0x5323a0);}function He(_0x457a2f,_0x22de84){const _0x1ef97f=_0x578284;var _0x3c8825;let _0x3fa988=M(_0x22de84);return Ve(_0x457a2f,_0x22de84)[_0x1ef97f(0x197)](_0x209152=>{const _0xf0afc=_0x1ef97f;_0x209152[_0xf0afc(0x17f)]=Be(_0x209152['paragraphStyle']);}),F(_0x457a2f,_0x3fa988,_0x3fa988+0x1),F(_0x457a2f,_0x22de84[_0x1ef97f(0x156)],_0x22de84[_0x1ef97f(0x156)]+0x1),_0x457a2f[_0x1ef97f(0x177)]=(_0x3c8825=_0x457a2f[_0x1ef97f(0x177)])==null?void 0x0:_0x3c8825[_0x1ef97f(0x13b)](_0x5c8469=>_0x5c8469[_0x1ef97f(0x134)]!==_0x22de84['blockId']),_0x22de84[_0x1ef97f(0x156)];}function O(_0x6e950a){const _0x4374fa=_0x578284;return{..._0x6e950a,'body':_0x6e950a['body']?Ue(_0x6e950a['body']):_0x6e950a[_0x4374fa(0x116)]};}function Ue(_0x540785){const _0x4ce41f=_0x578284;var _0x56bfa0,_0x39ec9e,_0x251218,_0x4b1f7f,_0x5ab01b,_0xddeba9,_0x578134,_0x4836d4,_0x13676e;return{..._0x540785,'paragraphs':(_0x56bfa0=_0x540785[_0x4ce41f(0x16f)])==null?void 0x0:_0x56bfa0['map'](_0x1a0929=>({..._0x1a0929,'bullet':k(_0x1a0929[_0x4ce41f(0x10d)]),'paragraphStyle':k(_0x1a0929['paragraphStyle'])})),'sectionBreaks':(_0x39ec9e=_0x540785['sectionBreaks'])==null?void 0x0:_0x39ec9e['map'](_0x3b8a1d=>({..._0x3b8a1d})),'textRuns':(_0x251218=_0x540785[_0x4ce41f(0x173)])==null?void 0x0:_0x251218[_0x4ce41f(0x151)](_0x37542a=>({..._0x37542a})),'tables':(_0x4b1f7f=_0x540785[_0x4ce41f(0x183)])==null?void 0x0:_0x4b1f7f['map'](_0x542710=>({..._0x542710})),'columnGroups':(_0x5ab01b=_0x540785[_0x4ce41f(0x199)])==null?void 0x0:_0x5ab01b[_0x4ce41f(0x151)](_0x20b2a4=>{const _0x37a424=_0x4ce41f;var _0x4089b1;return{..._0x20b2a4,'columns':(_0x4089b1=_0x20b2a4[_0x37a424(0x110)])==null?void 0x0:_0x4089b1[_0x37a424(0x151)](_0x3d5ac8=>k(_0x3d5ac8))};}),'blockRanges':(_0xddeba9=_0x540785[_0x4ce41f(0x177)])==null?void 0x0:_0xddeba9[_0x4ce41f(0x151)](_0x58ec1b=>({..._0x58ec1b})),'customRanges':(_0x578134=_0x540785[_0x4ce41f(0x118)])==null?void 0x0:_0x578134[_0x4ce41f(0x151)](_0x1b3a9c=>({..._0x1b3a9c})),'customDecorations':(_0x4836d4=_0x540785['customDecorations'])==null?void 0x0:_0x4836d4[_0x4ce41f(0x151)](_0x547790=>({..._0x547790})),'customBlocks':(_0x13676e=_0x540785[_0x4ce41f(0x180)])==null?void 0x0:_0x13676e[_0x4ce41f(0x151)](_0x591704=>({..._0x591704}))};}function k(_0x4fbf92){const _0x520ad5=_0x578284;return Array[_0x520ad5(0x18e)](_0x4fbf92)?_0x4fbf92['map'](_0x5e1a6c=>k(_0x5e1a6c)):!_0x4fbf92||typeof _0x4fbf92!=_0x520ad5(0x11a)?_0x4fbf92:Object['fromEntries'](Object['entries'](_0x4fbf92)['map'](([_0x26ec59,_0x147432])=>[_0x26ec59,k(_0x147432)]));}function A(_0x19dbe6){const _0x5b2311=_0x578284;if(!_0x19dbe6[_0x5b2311(0x116)])throw Error(_0x5b2311(0x185));return _0x19dbe6[_0x5b2311(0x116)];}function We(_0x183ba8,_0x1a040c,_0x2df900,_0x203241='convert-paragraph'){const _0x3890c7=_0x578284;if(_0x1a040c==null||_0x2df900==null){let _0x445ecc=Ke(_0x183ba8);return{'startOffset':_0x445ecc,'endOffset':_0x445ecc};}let _0x39ff7a=Math['min'](_0x1a040c,_0x2df900),_0x366622=Math[_0x3890c7(0x168)](_0x1a040c,_0x2df900),_0x16f2f3=Ze(_0x183ba8,_0x39ff7a,_0x366622);return _0x39ff7a===_0x366622?_0x203241===_0x3890c7(0x14f)?{'startOffset':_0x39ff7a,'endOffset':_0x366622}:Ge(_0x183ba8,_0x39ff7a,_0x16f2f3):Je(_0x183ba8,_0x39ff7a,_0x366622,_0x16f2f3);}function Ge(_0x29cc63,_0x3f9421,_0xceb69b){const _0x33bd21=_0x578284;let _0x4839b6=Ye(_0x29cc63,_0x3f9421);if(_0x4839b6){let _0x1c1ee3=j(_0x29cc63,_0x4839b6,_0xceb69b);if(_0x1c1ee3<_0x4839b6['startIndex'])return{'startOffset':_0x1c1ee3,'endOffset':_0xceb69b?Math[_0x33bd21(0x13a)](_0x4839b6[_0x33bd21(0x156)]+0x1,_0xceb69b[_0x33bd21(0x17d)]):_0x4839b6[_0x33bd21(0x156)]+0x1};}let _0xfc72c2=_0x3f9421===0x0&&_0x29cc63[_0x33bd21(0x187)][0x0]===_0x6f7a33['PARAGRAPH']?0x1:_0x3f9421;return{'startOffset':_0xfc72c2,'endOffset':_0xfc72c2};}function Ke(_0x2e953d){const _0x1288a3=_0x578284;return _0x2e953d[_0x1288a3(0x187)][_0x1288a3(0x164)](_0x6f7a33['SECTION_BREAK'])?Math['max'](0x0,_0x2e953d[_0x1288a3(0x187)][_0x1288a3(0x198)]-0x1):_0x2e953d[_0x1288a3(0x187)][_0x1288a3(0x198)];}function _0x379c(){const _0x24768e=['_resources','@univerjs-pro/docs-code','left','endsWith','docs-code.mutation.set-config','docs-code.command.cancel-empty-paragraph','defineProperty','max','spaceBelow','nextMetadata','add','unitId','24633RsyueL','_config','paragraphs','prototype','direction','docs-code.command.insert','textRuns','constructor','getParagraphsInRange','getCodeConfig','blockRanges','from','cursorOffset','disposeWithMe','endIndex','588759fHeeqU','endOffset','_docsCodeModel','paragraphStyle','customBlocks','indentStart','COMMAND','tables','version','Document\x20body\x20is\x20required','BLOCK_START','dataStream','TRUE','config','retain','change$','getTextRanges','1854CWBoia','isArray','TABLE_CELL_END','getUnit','slice','insert','setConfig','dispose','8667747sPDinv','_initResource','forEach','length','columnGroups','decorate','keys','previousDocumentData','paragraphStartIndex','replaceDocRanges','deleteLength','type','_configService','_injector','CODE','start','insertOp','PARAGRAPH','complete','javascript','docs-code.command.exit','_resourceManagerService','160EIcuRj','nextDocumentData','push','monospace','bullet','insertionMode','paragraphId','columns','set','7090pyhYkc','metadata','_commandService','docs-code.command.remove','body','1607940ZLdnXy','customRanges','customDecorations','object','widowControl','docs-code.command.consume-boundary-delete','get','getInstance','reduce','sort','Insert\x20range\x20cannot\x20overlap\x20an\x20existing\x20document\x20block','removeOp','keepLines','insertLength','find','getBody','MUTATION','function','SECTION_BREAK','_change$','docs-code.command.unwrap','spaceAbove','handler','compose','documentData','endTokenOffset','some','Insert\x20range\x20cannot\x20cross\x20table\x20cell\x20boundaries','selectionManager','blockId','editOp','next','_setResource','model','getSnapshot','min','filter','startTokenOffset','asObservable','iterator','symbol','getUnitId','right','blockType','removeUnit','removeCode','string','18467140IvdRNp','keepNext','packageName','getCurrentUnitOfType','range','stringify','serialize','commandService','FALSE','insert-new','sectionBreaks','map','paragraph','TABLE_CELL_START','setCodeConfig','BLOCK_END','startIndex','registerCommand','UNIVER_DOC','74922WbNWTI','376JtbUkr','startOffset','clear','deserialize','delete','textStyle','codes'];_0x379c=function(){return _0x24768e;};return _0x379c();}function qe(_0x29b02a,_0x5088d9,_0x344724){const _0x35616a=_0x578284;var _0x36e5e9;let _0x2be8b2=Math[_0x35616a(0x13a)](_0x5088d9,_0x344724),_0x1b83d6=Math[_0x35616a(0x168)](_0x5088d9,_0x344724);return!!((_0x36e5e9=_0x29b02a['tables'])!=null&&_0x36e5e9[_0x35616a(0x131)](_0x5a4047=>_0x2be8b2>_0x5a4047[_0x35616a(0x156)]&&_0x2be8b2<_0x5a4047[_0x35616a(0x17b)]||_0x1b83d6>_0x5a4047[_0x35616a(0x156)]&&_0x1b83d6<_0x5a4047['endIndex']||_0x2be8b2<=_0x5a4047[_0x35616a(0x156)]&&_0x1b83d6>=_0x5a4047[_0x35616a(0x17b)]));}function Je(_0x4103c2,_0x2966f9,_0x17559e,_0x59bdf8){const _0x515eb4=_0x578284;let _0x2b402e=[..._0x4103c2[_0x515eb4(0x16f)]??[]][_0x515eb4(0x120)]((_0x38f02a,_0x1c4a7c)=>_0x38f02a['startIndex']-_0x1c4a7c[_0x515eb4(0x156)]),_0x2bd0a7=_0x1ccbd7(_0x4103c2),_0x553d3d=_0x2b402e[_0x515eb4(0x125)](_0x550e5e=>j(_0x4103c2,_0x550e5e,_0x59bdf8,_0x2bd0a7)<=_0x2966f9&&_0x2966f9<=_0x550e5e[_0x515eb4(0x156)]),_0x3c40db=_0x2b402e[_0x515eb4(0x125)](_0x2d6859=>_0x2d6859[_0x515eb4(0x156)]>=_0x17559e-0x1)??_0x2b402e[_0x2b402e['length']-0x1];return{'startOffset':_0x553d3d?j(_0x4103c2,_0x553d3d,_0x59bdf8,_0x2bd0a7):_0x2966f9,'endOffset':_0x3c40db?Xe(_0x3c40db,_0x59bdf8):_0x17559e};}function Ye(_0x120162,_0x42b63b){const _0x3b6a2c=_0x578284;let _0x5df0ad=[..._0x120162[_0x3b6a2c(0x16f)]??[]][_0x3b6a2c(0x120)]((_0x3369d4,_0x571c57)=>_0x3369d4[_0x3b6a2c(0x156)]-_0x571c57['startIndex']),_0x1f1d88=_0x1ccbd7(_0x120162);return _0x5df0ad[_0x3b6a2c(0x125)](_0x30a5f1=>(_0x1f1d88[_0x3b6a2c(0x11d)](_0x30a5f1[_0x3b6a2c(0x156)])??0x0)<=_0x42b63b&&_0x42b63b<=_0x30a5f1['startIndex']);}function j(_0x4dea2d,_0x324c88,_0x2e9539,_0x1347cf){const _0x3906f6=_0x578284;let _0x71984b=(_0x1347cf==null?void 0x0:_0x1347cf[_0x3906f6(0x11d)](_0x324c88[_0x3906f6(0x156)]))??_0x225d77(_0x4dea2d,_0x324c88);return _0x2e9539?Math[_0x3906f6(0x168)](_0x71984b,_0x2e9539['startOffset']):_0x71984b;}function Xe(_0x3f4822,_0x330b5a){const _0x1adcb7=_0x578284;let _0x213ebf=_0x3f4822[_0x1adcb7(0x156)]+0x1;return _0x330b5a?Math[_0x1adcb7(0x13a)](_0x213ebf,_0x330b5a[_0x1adcb7(0x17d)]):_0x213ebf;}function Ze(_0xa17aee,_0x336d87,_0x235208){const _0x4c4b2c=_0x578284;let _0x5e98ca=Qe(_0xa17aee,_0x336d87),_0x48360b=Qe(_0xa17aee,_0x336d87===_0x235208?_0x235208:Math[_0x4c4b2c(0x168)](_0x336d87,_0x235208-0x1));if(!(!_0x5e98ca&&!_0x48360b)){if(!_0x5e98ca||!_0x48360b||_0x5e98ca[_0x4c4b2c(0x13c)]!==_0x48360b[_0x4c4b2c(0x13c)]||_0x5e98ca[_0x4c4b2c(0x130)]!==_0x48360b[_0x4c4b2c(0x130)])throw new E();return _0x5e98ca;}}function Qe(_0x505408,_0x26084a){const _0x3295b7=_0x578284;let _0x21b122=_0x505408[_0x3295b7(0x187)],_0x6a5240=-0x1;for(let _0x49ed5a=Math[_0x3295b7(0x13a)](_0x26084a,_0x21b122[_0x3295b7(0x198)]-0x1);_0x49ed5a>=0x0;_0x49ed5a--){let _0x2925eb=_0x21b122[_0x49ed5a];if(_0x2925eb===_0x6f7a33[_0x3295b7(0x18f)])return;if(_0x2925eb===_0x6f7a33[_0x3295b7(0x153)]){_0x6a5240=_0x49ed5a;break;}}if(_0x6a5240<0x0)return;let _0x58478f=_0x21b122['indexOf'](_0x6f7a33[_0x3295b7(0x18f)],_0x6a5240+0x1);if(!(_0x58478f<0x0||_0x26084a<_0x6a5240+0x1||_0x26084a>_0x58478f-0x1))return{'startOffset':_0x6a5240+0x1,'endOffset':Math[_0x3295b7(0x168)](_0x6a5240+0x1,_0x58478f-0x1),'startTokenOffset':_0x6a5240,'endTokenOffset':_0x58478f};}function M(_0x166aee){return _0x3e8421(_0x166aee)['endOffset']-0x1;}function $e(_0x15945b,_0x1ac4a3,_0x59c440,_0x57c420){const _0x1dfb8a=_0x578284;let _0x1d6640=M(_0x1ac4a3),_0x337e10=(_0x15945b[_0x1dfb8a(0x16f)]??[])[_0x1dfb8a(0x125)](_0x3b644f=>_0x3b644f['startIndex']===_0x1d6640+0x1);if(!_0x337e10||_0x57c420!=null&&_0x337e10[_0x1dfb8a(0x156)]!==_0x57c420||_0x59c440!=null&&(_0x59c440<_0x1d6640||_0x59c440>_0x337e10['startIndex']+0x1)||_0x15945b[_0x1dfb8a(0x187)][_0x337e10['startIndex']]!==_0x6f7a33[_0x1dfb8a(0x104)])return null;let _0x1488e2=_0x225d77(_0x15945b,_0x337e10),_0x1a05d9=_0x15945b[_0x1dfb8a(0x187)][_0x1dfb8a(0x191)](_0x1488e2,_0x337e10[_0x1dfb8a(0x156)]);return Array[_0x1dfb8a(0x178)](_0x1a05d9)['every'](_0x893dbe=>_0x893dbe===_0x6f7a33['BLOCK_END'])?{'paragraph':_0x337e10,'endTokenOffset':_0x1d6640}:null;}function N(_0x23cdac,_0x3136c5){const _0x4a87fa=_0x578284;var _0x282c03;let _0x235445=M(_0x3136c5),_0x18a857=_0x23cdac[_0x4a87fa(0x187)][_0x235445+0x1];(_0x18a857===_0x6f7a33[_0x4a87fa(0x129)]||_0x18a857===void 0x0)&&P(_0x23cdac,_0x235445+0x1,_0x6f7a33['PARAGRAPH'],{'paragraphs':[{'startIndex':0x0,'paragraphId':_0x1d6f01(new Set((_0x282c03=_0x23cdac['paragraphs'])==null?void 0x0:_0x282c03[_0x4a87fa(0x151)](_0x13a374=>_0x13a374[_0x4a87fa(0x10f)])))}]});}function P(_0x3b4a59,_0x367d5e,_0x50d0be,_0x406604={}){const _0x350fca=_0x578284;var _0x1598df,_0x561a49;_0x50d0be&&(_0x3b4a59[_0x350fca(0x187)]=''+_0x3b4a59[_0x350fca(0x187)][_0x350fca(0x191)](0x0,_0x367d5e)+_0x50d0be+_0x3b4a59[_0x350fca(0x187)]['slice'](_0x367d5e),et(_0x3b4a59,_0x367d5e,_0x50d0be[_0x350fca(0x198)]),(_0x1598df=_0x406604[_0x350fca(0x16f)])!=null&&_0x1598df['length']&&(_0x3b4a59[_0x350fca(0x16f)]=[..._0x3b4a59[_0x350fca(0x16f)]??[],..._0x406604[_0x350fca(0x16f)][_0x350fca(0x151)](_0x1aacf6=>({..._0x1aacf6,'startIndex':_0x1aacf6[_0x350fca(0x156)]+_0x367d5e}))][_0x350fca(0x120)]((_0x8369a9,_0x172258)=>_0x8369a9[_0x350fca(0x156)]-_0x172258[_0x350fca(0x156)])),(_0x561a49=_0x406604[_0x350fca(0x177)])!=null&&_0x561a49[_0x350fca(0x198)]&&(_0x3b4a59['blockRanges']=[..._0x3b4a59['blockRanges']??[],..._0x406604[_0x350fca(0x177)][_0x350fca(0x151)](_0x57868b=>({..._0x57868b,'startIndex':_0x57868b['startIndex']+_0x367d5e,'endIndex':_0x57868b[_0x350fca(0x17b)]+_0x367d5e}))][_0x350fca(0x120)]((_0x15eaca,_0x28a61d)=>_0x15eaca[_0x350fca(0x156)]-_0x28a61d[_0x350fca(0x156)])));}function F(_0x53307f,_0x3fab51,_0x1d060c){const _0x9b7f0c=_0x578284;let _0x54767a=_0x1d060c-_0x3fab51;_0x53307f[_0x9b7f0c(0x187)]=''+_0x53307f[_0x9b7f0c(0x187)][_0x9b7f0c(0x191)](0x0,_0x3fab51)+_0x53307f[_0x9b7f0c(0x187)][_0x9b7f0c(0x191)](_0x1d060c),tt(_0x53307f,_0x3fab51,_0x54767a);}function et(_0x1ab87,_0x19ca8a,_0x16af4b){const _0x4be273=_0x578284;_0x1ab87['paragraphs']=I(_0x1ab87[_0x4be273(0x16f)],_0x19ca8a,_0x16af4b),_0x1ab87[_0x4be273(0x150)]=I(_0x1ab87[_0x4be273(0x150)],_0x19ca8a,_0x16af4b),_0x1ab87[_0x4be273(0x180)]=I(_0x1ab87['customBlocks'],_0x19ca8a,_0x16af4b),_0x1ab87[_0x4be273(0x173)]=nt(_0x1ab87[_0x4be273(0x173)],_0x19ca8a,_0x16af4b),_0x1ab87[_0x4be273(0x183)]=rt(_0x1ab87[_0x4be273(0x183)],_0x19ca8a,_0x16af4b),_0x1ab87[_0x4be273(0x199)]=R(_0x1ab87[_0x4be273(0x199)],_0x19ca8a,_0x16af4b),_0x1ab87[_0x4be273(0x118)]=R(_0x1ab87[_0x4be273(0x118)],_0x19ca8a,_0x16af4b),_0x1ab87[_0x4be273(0x119)]=R(_0x1ab87[_0x4be273(0x119)],_0x19ca8a,_0x16af4b),_0x1ab87[_0x4be273(0x177)]=R(_0x1ab87['blockRanges'],_0x19ca8a,_0x16af4b);}function tt(_0x211f2e,_0x50398f,_0x52b488){const _0x27e8d3=_0x578284;var _0x1942dc,_0x31c325;_0x211f2e[_0x27e8d3(0x16f)]=L(_0x211f2e['paragraphs'],_0x50398f,_0x52b488),_0x211f2e[_0x27e8d3(0x150)]=L(_0x211f2e[_0x27e8d3(0x150)],_0x50398f,_0x52b488),_0x211f2e['customBlocks']=L(_0x211f2e[_0x27e8d3(0x180)],_0x50398f,_0x52b488),_0x211f2e[_0x27e8d3(0x173)]=(_0x1942dc=it((_0x31c325=_0x211f2e[_0x27e8d3(0x173)])==null?void 0x0:_0x31c325[_0x27e8d3(0x151)](_0x32cf99=>({..._0x32cf99,'startIndex':_0x32cf99['st'],'endIndex':_0x32cf99['ed']})),_0x50398f,_0x52b488))==null?void 0x0:_0x1942dc[_0x27e8d3(0x151)](_0x3169d7=>{let {startIndex:_0x48b537,endIndex:_0x51de36,..._0x4f090d}=_0x3169d7;return{..._0x4f090d,'st':_0x48b537,'ed':_0x51de36};}),_0x211f2e[_0x27e8d3(0x183)]=it(_0x211f2e[_0x27e8d3(0x183)],_0x50398f,_0x52b488),_0x211f2e[_0x27e8d3(0x199)]=z(_0x211f2e[_0x27e8d3(0x199)],_0x50398f,_0x52b488),_0x211f2e[_0x27e8d3(0x118)]=z(_0x211f2e[_0x27e8d3(0x118)],_0x50398f,_0x52b488),_0x211f2e[_0x27e8d3(0x119)]=z(_0x211f2e[_0x27e8d3(0x119)],_0x50398f,_0x52b488),_0x211f2e['blockRanges']=z(_0x211f2e[_0x27e8d3(0x177)],_0x50398f,_0x52b488);}function I(_0x21df32,_0x23667e,_0x520e0f){const _0x1c5a6e=_0x578284;return _0x21df32==null?void 0x0:_0x21df32[_0x1c5a6e(0x151)](_0x5f2f27=>_0x5f2f27[_0x1c5a6e(0x156)]>=_0x23667e?{..._0x5f2f27,'startIndex':_0x5f2f27['startIndex']+_0x520e0f}:_0x5f2f27);}function _0x5216(_0xcbae4c,_0x1ccf24){_0xcbae4c=_0xcbae4c-0xf9;const _0x379cc3=_0x379c();let _0x521687=_0x379cc3[_0xcbae4c];return _0x521687;}function L(_0x425044,_0x428112,_0x46f623){const _0x1527df=_0x578284;let _0x572472=_0x428112+_0x46f623;return _0x425044==null?void 0x0:_0x425044[_0x1527df(0x151)](_0x5a5070=>_0x5a5070[_0x1527df(0x156)]>=_0x428112&&_0x5a5070[_0x1527df(0x156)]<_0x572472?null:_0x5a5070[_0x1527df(0x156)]>=_0x572472?{..._0x5a5070,'startIndex':_0x5a5070[_0x1527df(0x156)]-_0x46f623}:_0x5a5070)['filter'](_0x8dde6=>_0x8dde6!=null);}function nt(_0x264be4,_0x1657fa,_0x193591){const _0x32fd7e=_0x578284;return _0x264be4==null?void 0x0:_0x264be4[_0x32fd7e(0x151)](_0x338b15=>_0x338b15['st']>=_0x1657fa?{..._0x338b15,'st':_0x338b15['st']+_0x193591,'ed':_0x338b15['ed']+_0x193591}:_0x338b15['ed']>_0x1657fa?{..._0x338b15,'ed':_0x338b15['ed']+_0x193591}:_0x338b15);}function R(_0x4388d0,_0x5cdfda,_0x2653f8){return _0x4388d0==null?void 0x0:_0x4388d0['map'](_0x17edf6=>_0x56f453(_0x17edf6,_0x5cdfda,_0x2653f8));}function rt(_0x3154ee,_0x226c37,_0x4506df){const _0x18ed18=_0x578284;return _0x3154ee==null?void 0x0:_0x3154ee[_0x18ed18(0x151)](_0x13e881=>_0x56252a(_0x13e881,_0x226c37,_0x4506df));}function z(_0x5dec7b,_0x4fd324,_0x25ee21){const _0x279294=_0x578284;return _0x5dec7b==null?void 0x0:_0x5dec7b[_0x279294(0x151)](_0x24d599=>_0x2c30bd(_0x24d599,_0x4fd324,_0x25ee21))[_0x279294(0x13b)](_0x1ee864=>_0x1ee864!=null);}function it(_0x3012bd,_0x345aaa,_0x2e378c){const _0x3b4317=_0x578284;return _0x3012bd==null?void 0x0:_0x3012bd[_0x3b4317(0x151)](_0x33de97=>_0x3f3b1a(_0x33de97,_0x345aaa,_0x2e378c))[_0x3b4317(0x13b)](_0x32aeec=>_0x32aeec!=null);}const at={'id':'docs-code.command.insert-below','type':_0x35ad4f['COMMAND'],'handler':_0x197288=>{const _0x4fc9bc=_0x578284;var _0x12c8a9;if(_0x43c1c3(G(_0x197288)))return!0x1;let _0x2128b8=_0x4ed4ca(_0x197288);if(_0x2128b8)return _0x197288['get'](_0x1488c2)['syncExecuteCommand'](B['id'],{'startOffset':_0x2128b8[_0x4fc9bc(0x15b)],'endOffset':_0x2128b8[_0x4fc9bc(0x17d)],'insertionMode':_0x4fc9bc(0x14f),'unitId':_0x2128b8['unitId']});let _0x245dc9=ft(_0x197288);if(!_0x245dc9)return!0x1;let _0x38f8d7=(_0x12c8a9=_0x197288['get'](_0x13b6f2)[_0x4fc9bc(0x149)](_0xdb135d[_0x4fc9bc(0x158)]))==null?void 0x0:_0x12c8a9[_0x4fc9bc(0x126)](),_0x9da907=_0x38f8d7?_0x35c6e9(_0x38f8d7,_0x245dc9):_0x245dc9[_0x4fc9bc(0x156)]+0x1;return _0x197288[_0x4fc9bc(0x11d)](_0x1488c2)['syncExecuteCommand'](B['id'],{'startOffset':_0x9da907,'endOffset':_0x9da907});}},ot={'id':_0x578284(0x11c),'type':_0x35ad4f[_0x578284(0x182)],'handler':()=>!0x0},B={'id':_0x578284(0x172),'type':_0x35ad4f['COMMAND'],'handler':(_0x2d0592,_0x2a9c33)=>{const _0x587837=_0x578284;let _0x480e85=W(_0x2d0592,_0x2a9c33==null?void 0x0:_0x2a9c33[_0x587837(0x16c)]);if(!_0x480e85)return!0x1;let _0x32fecb=G(_0x2d0592);if(_0x43c1c3(_0x32fecb))return!0x1;let _0x1d44a9=_0x480e85[_0x587837(0x138)][_0x587837(0x14c)](_0x480e85[_0x587837(0x16c)]),_0x369d54=lt(_0x2a9c33,_0x32fecb),_0x25f426=ut(_0x480e85[_0x587837(0xfa)],_0x369d54);if(_0x25f426){if(_0x25f426[_0x587837(0x142)]!==_0x2b195a['CODE'])return!0x1;let _0x9eb76a=D({'blockId':_0x25f426[_0x587837(0x134)],'documentData':_0x480e85[_0x587837(0xfa)],'metadata':_0x1d44a9});if(!_0x9eb76a)return!0x1;let _0x2e7113=Y(_0x480e85[_0x587837(0x14d)],_0x480e85[_0x587837(0x133)],_0x480e85[_0x587837(0x16c)],_0x480e85['previousDocumentData'],_0x9eb76a['nextDocumentData'],B['id'],_0x9eb76a[_0x587837(0x179)]);return _0x2e7113&&_0x9eb76a[_0x587837(0x16a)]&&_0x480e85[_0x587837(0x138)][_0x587837(0x15d)](_0x480e85['unitId'],_0x9eb76a[_0x587837(0x16a)]),_0x2e7113;}let _0x53cc9d=(_0x2a9c33==null?void 0x0:_0x2a9c33[_0x587837(0x134)])??_0x390162(0x6),_0x2bf405;try{_0x2bf405=De({'blockId':_0x53cc9d,'config':_0x2a9c33==null?void 0x0:_0x2a9c33[_0x587837(0x189)],'documentData':_0x480e85[_0x587837(0xfa)],'endOffset':_0x369d54==null?void 0x0:_0x369d54['endOffset'],'insertionMode':_0x2a9c33==null?void 0x0:_0x2a9c33[_0x587837(0x10e)],'metadata':_0x1d44a9,'startOffset':_0x369d54==null?void 0x0:_0x369d54[_0x587837(0x15b)]});}catch(_0x33f0c9){if(_0x33f0c9 instanceof E)return!0x1;throw _0x33f0c9;}let _0xb07e92=Y(_0x480e85['commandService'],_0x480e85[_0x587837(0x133)],_0x480e85[_0x587837(0x16c)],_0x480e85['previousDocumentData'],_0x2bf405[_0x587837(0x10a)],B['id'],_0x2bf405['cursorOffset']);return _0xb07e92&&_0x2bf405[_0x587837(0x16a)]&&_0x480e85['model'][_0x587837(0x15d)](_0x480e85[_0x587837(0x16c)],_0x2bf405[_0x587837(0x16a)]),_0xb07e92;}},st={'id':'docs-code.command.update','type':_0x35ad4f['COMMAND'],'handler':(_0x4cf3ee,_0x4c1672)=>{const _0x218ef8=_0x578284;if(!_0x4c1672)return!0x1;let _0x3d1dd5=W(_0x4cf3ee,_0x4c1672[_0x218ef8(0x16c)]);if(!_0x3d1dd5)return!0x1;let _0x4ba36f=je({'blockId':_0x4c1672[_0x218ef8(0x134)],'config':_0x4c1672[_0x218ef8(0x189)],'documentData':_0x3d1dd5[_0x218ef8(0xfa)],'metadata':_0x3d1dd5['model'][_0x218ef8(0x14c)](_0x3d1dd5[_0x218ef8(0x16c)])});return _0x4ba36f[_0x218ef8(0x16a)]&&_0x3d1dd5['model']['deserialize'](_0x3d1dd5[_0x218ef8(0x16c)],_0x4ba36f[_0x218ef8(0x16a)]),!0x0;}},ct={'id':_0x578284(0x107),'type':_0x35ad4f['COMMAND'],'handler':(_0x5a4ec9,_0x4f77bb)=>V[_0x578284(0x12d)](_0x5a4ec9,_0x4f77bb)},V={'id':_0x578284(0x12b),'type':_0x35ad4f[_0x578284(0x182)],'handler':(_0x4163d8,_0x13437d)=>{const _0x2ae708=_0x578284;if(!_0x13437d)return!0x1;let _0x4c6c2d=W(_0x4163d8,_0x13437d==null?void 0x0:_0x13437d['unitId']);if(!_0x4c6c2d)return!0x1;let _0x5c6c6b=D({'blockId':_0x13437d[_0x2ae708(0x134)],'documentData':_0x4c6c2d[_0x2ae708(0xfa)],'metadata':_0x4c6c2d[_0x2ae708(0x138)][_0x2ae708(0x14c)](_0x4c6c2d[_0x2ae708(0x16c)])});if(!_0x5c6c6b)return!0x1;let _0xb71a44=Y(_0x4c6c2d[_0x2ae708(0x14d)],_0x4c6c2d[_0x2ae708(0x133)],_0x4c6c2d[_0x2ae708(0x16c)],_0x4c6c2d[_0x2ae708(0xfa)],_0x5c6c6b[_0x2ae708(0x10a)],V['id'],_0x5c6c6b[_0x2ae708(0x179)]);return _0xb71a44&&_0x5c6c6b[_0x2ae708(0x16a)]&&_0x4c6c2d[_0x2ae708(0x138)][_0x2ae708(0x15d)](_0x4c6c2d[_0x2ae708(0x16c)],_0x5c6c6b[_0x2ae708(0x16a)]),_0xb71a44;}},H={'id':_0x578284(0x115),'type':_0x35ad4f[_0x578284(0x182)],'handler':(_0x391b30,_0x1abd2a)=>{const _0xba49c2=_0x578284;if(!_0x1abd2a)return!0x1;let _0x296950=W(_0x391b30,_0x1abd2a==null?void 0x0:_0x1abd2a[_0xba49c2(0x16c)]);if(!_0x296950)return!0x1;let _0x466c34=Me({'blockId':_0x1abd2a[_0xba49c2(0x134)],'documentData':_0x296950[_0xba49c2(0xfa)],'metadata':_0x296950[_0xba49c2(0x138)][_0xba49c2(0x14c)](_0x296950[_0xba49c2(0x16c)])});if(!_0x466c34)return!0x1;let _0x5e524a=Y(_0x296950['commandService'],_0x296950[_0xba49c2(0x133)],_0x296950['unitId'],_0x296950['previousDocumentData'],_0x466c34[_0xba49c2(0x10a)],H['id'],_0x466c34[_0xba49c2(0x179)]);return _0x5e524a&&_0x466c34[_0xba49c2(0x16a)]&&_0x296950[_0xba49c2(0x138)][_0xba49c2(0x15d)](_0x296950[_0xba49c2(0x16c)],_0x466c34[_0xba49c2(0x16a)]),_0x5e524a;}},U={'id':_0x578284(0x166),'type':_0x35ad4f[_0x578284(0x182)],'handler':(_0x43a078,_0x5c9de2)=>{const _0x3039a5=_0x578284;var _0x58dc23;let _0x16e29f=W(_0x43a078,_0x5c9de2==null?void 0x0:_0x5c9de2[_0x3039a5(0x16c)]);if(!_0x16e29f)return!0x1;let _0x17cbe7=(_0x5c9de2==null?void 0x0:_0x5c9de2[_0x3039a5(0x179)])??((_0x58dc23=G(_0x43a078))==null?void 0x0:_0x58dc23[_0x3039a5(0x15b)]);if(_0x17cbe7==null)return!0x1;let _0x4ce67b=Ne({'cursorOffset':_0x17cbe7,'documentData':_0x16e29f['previousDocumentData'],'paragraphStartIndex':_0x5c9de2==null?void 0x0:_0x5c9de2['paragraphStartIndex']});return _0x4ce67b?Y(_0x16e29f['commandService'],_0x16e29f['selectionManager'],_0x16e29f[_0x3039a5(0x16c)],_0x16e29f[_0x3039a5(0xfa)],_0x4ce67b[_0x3039a5(0x10a)],U['id'],_0x4ce67b[_0x3039a5(0x179)]):!0x1;}};function W(_0x16911a,_0x22807e){const _0x5a99ed=_0x578284;let _0x115762=_0x16911a[_0x5a99ed(0x11d)](_0x13b6f2),_0x67e06b=_0x22807e?_0x115762[_0x5a99ed(0x190)](_0x22807e,_0xdb135d[_0x5a99ed(0x158)]):_0x115762['getCurrentUnitOfType'](_0xdb135d[_0x5a99ed(0x158)]);return _0x67e06b?{'commandService':_0x16911a[_0x5a99ed(0x11d)](_0x1488c2),'model':_0x16911a[_0x5a99ed(0x11d)](w),'previousDocumentData':_0x67e06b[_0x5a99ed(0x139)](),'selectionManager':_0x16911a[_0x5a99ed(0x11d)](_0x31b1fc),'unitId':_0x67e06b[_0x5a99ed(0x140)]()}:null;}function G(_0x4bc2b6){const _0x27907c=_0x578284;var _0x2c7f1f;return(_0x2c7f1f=_0x4bc2b6[_0x27907c(0x11d)](_0x31b1fc)[_0x27907c(0x18c)]())==null?void 0x0:_0x2c7f1f[0x0];}function lt(_0x53c845,_0x762873){const _0x3acd16=_0x578284;let _0x35c2e4=(_0x53c845==null?void 0x0:_0x53c845[_0x3acd16(0x15b)])??(_0x762873==null?void 0x0:_0x762873['startOffset']),_0xd1e80f=(_0x53c845==null?void 0x0:_0x53c845['endOffset'])??(_0x762873==null?void 0x0:_0x762873[_0x3acd16(0x17d)]);if(_0x35c2e4!=null&&_0xd1e80f!=null)return{'endOffset':Math['max'](_0x35c2e4,_0xd1e80f),'startOffset':Math['min'](_0x35c2e4,_0xd1e80f)};}function ut(_0x38239f,_0x3fa4bc){const _0x305e6b=_0x578284;var _0x53ae3a;if(!_0x3fa4bc)return;let _0x1e6c0f=dt(_0x3fa4bc);return(_0x53ae3a=_0x38239f['body'])==null||(_0x53ae3a=_0x53ae3a[_0x305e6b(0x177)])==null?void 0x0:_0x53ae3a['find'](_0x3ae4a1=>{const _0x1005a8=_0x305e6b;let _0xe61b30=_0x3e8421(_0x3ae4a1);return _0x3fa4bc[_0x1005a8(0x15b)]===_0x3fa4bc[_0x1005a8(0x17d)]?_0x10793e(_0xe61b30,_0x1e6c0f):_0x24ffbf(_0xe61b30,_0x1e6c0f);});}function dt(_0x19fba4){const _0x4709c0=_0x578284;return _0x19fba4[_0x4709c0(0x15b)]===_0x19fba4['endOffset']?_0x19fba4[_0x4709c0(0x15b)]:_0x19fba4[_0x4709c0(0x15b)]+0x1;}function ft(_0xd9055c){const _0x2413e3=_0x578284;let _0x30726a=G(_0xd9055c);if(!_0x30726a)return null;let _0xdc9680=_0xd9055c[_0x2413e3(0x11d)](_0x13b6f2)[_0x2413e3(0x149)](_0xdb135d['UNIVER_DOC']),_0x300fdf=_0xdc9680==null?void 0x0:_0xdc9680[_0x2413e3(0x126)]();return _0x300fdf?_0x436562[_0x2413e3(0x14a)][_0x2413e3(0x175)](_0x30726a,_0x300fdf[_0x2413e3(0x16f)]??[],_0x300fdf[_0x2413e3(0x187)]??'')[0x0]??null:null;}function pt(_0x2496b9,_0x3cbc95){const _0x2299b4=_0x578284;let _0x54c2f0=_0x2496b9[_0x2299b4(0x116)],_0x29922a=_0x3cbc95[_0x2299b4(0x116)],_0x193aec=_0x101b28(_0x54c2f0,_0x29922a);return[_0x193aec&&_0x29922a?mt(_0x29922a,_0x193aec):null,_0x193aec?null:ht(_0x54c2f0,_0x29922a)][_0x2299b4(0x13b)](Boolean)[_0x2299b4(0x11f)]((_0x6dfb8b,_0x332be2)=>_0x142004[_0x2299b4(0x12e)](_0x6dfb8b,_0x332be2),null);}function mt(_0x9e3276,_0x2550e0){const _0x4184c0=_0x578284;let _0x5c3dd4=new _0xd2211();return _0x5c3dd4[_0x4184c0(0x18a)](_0x2550e0[_0x4184c0(0x102)]),_0x2550e0['insertLength']>0x0&&_0x5c3dd4[_0x4184c0(0x192)](_0x2550e0[_0x4184c0(0x124)],_0x35244e(_0x9e3276,_0x2550e0['start'],_0x2550e0['start']+_0x2550e0[_0x4184c0(0x124)],!0x1)),_0x2550e0[_0x4184c0(0xfd)]>0x0&&_0x5c3dd4[_0x4184c0(0x15e)](_0x2550e0[_0x4184c0(0xfd)]),_0x142004[_0x4184c0(0x11e)]()[_0x4184c0(0x135)](_0x5c3dd4[_0x4184c0(0x14c)](),[_0x4184c0(0x116)]);}function ht(_0x446fdd,_0x42e2b0){const _0x144914=_0x578284;let _0x288c6c=[],_0x2f7d8f=_0x446fdd?_t(_0x446fdd):void 0x0,_0x1a8822=_0x42e2b0?_t(_0x42e2b0):void 0x0;for(let _0x3a6d52 of gt)K(_0x142004[_0x144914(0x11e)](),[_0x144914(0x116),_0x3a6d52],_0x2f7d8f==null?void 0x0:_0x2f7d8f[_0x3a6d52],_0x1a8822==null?void 0x0:_0x1a8822[_0x3a6d52],_0x288c6c);return _0x288c6c['reduce']((_0x8896a1,_0x8475b8)=>_0x142004[_0x144914(0x12e)](_0x8896a1,_0x8475b8),null);}const gt=[_0x578284(0x16f),'sectionBreaks',_0x578284(0x183),_0x578284(0x199),_0x578284(0x177),_0x578284(0x180),_0x578284(0x118),'customDecorations',_0x578284(0x173)];function _t(_0x18bb89){return _0x18bb89;}function K(_0x51680e,_0x5189ee,_0x44256c,_0x1df394,_0x3e0050){const _0x57ccb=_0x578284;if(!J(_0x44256c,_0x1df394)){if(_0x44256c==null){_0x3e0050[_0x57ccb(0x10b)](_0x51680e[_0x57ccb(0x103)](_0x5189ee,_0x1df394));return;}if(_0x1df394==null){_0x3e0050[_0x57ccb(0x10b)](_0x51680e[_0x57ccb(0x122)](_0x5189ee,_0x44256c));return;}if(Array[_0x57ccb(0x18e)](_0x44256c)&&Array[_0x57ccb(0x18e)](_0x1df394)){vt(_0x51680e,_0x5189ee,_0x44256c,_0x1df394,_0x3e0050);return;}if(q(_0x44256c)&&q(_0x1df394)){new Set([...Object['keys'](_0x44256c),...Object[_0x57ccb(0xf9)](_0x1df394)])['forEach'](_0x3e909d=>{K(_0x51680e,[..._0x5189ee,_0x3e909d],_0x44256c[_0x3e909d],_0x1df394[_0x3e909d],_0x3e0050);});return;}_0x3e0050[_0x57ccb(0x10b)](_0x51680e['replaceOp'](_0x5189ee,_0x44256c,_0x1df394));}}function vt(_0x43ee99,_0x18d63a,_0x51616d,_0x3bb338,_0x142217){const _0x1957d3=_0x578284;if(_0x51616d[_0x1957d3(0x198)]===_0x3bb338[_0x1957d3(0x198)]){_0x51616d[_0x1957d3(0x197)]((_0x204db8,_0x1af266)=>K(_0x43ee99,[..._0x18d63a,_0x1af266],_0x204db8,_0x3bb338[_0x1af266],_0x142217));return;}let _0x50adc3=0x0;for(;_0x50adc3<_0x51616d[_0x1957d3(0x198)]&&_0x50adc3<_0x3bb338[_0x1957d3(0x198)]&&J(_0x51616d[_0x50adc3],_0x3bb338[_0x50adc3]);)_0x50adc3++;let _0x1f30c8=_0x51616d[_0x1957d3(0x198)]-0x1,_0x321047=_0x3bb338[_0x1957d3(0x198)]-0x1;for(;_0x1f30c8>=_0x50adc3&&_0x321047>=_0x50adc3&&J(_0x51616d[_0x1f30c8],_0x3bb338[_0x321047]);)_0x1f30c8--,_0x321047--;for(let _0x5a5519=_0x1f30c8;_0x5a5519>=_0x50adc3;_0x5a5519--)_0x142217['push'](_0x43ee99[_0x1957d3(0x122)]([..._0x18d63a,_0x5a5519],_0x51616d[_0x5a5519]));for(let _0xe8bb35=_0x50adc3;_0xe8bb35<=_0x321047;_0xe8bb35++)_0x142217[_0x1957d3(0x10b)](_0x43ee99[_0x1957d3(0x103)]([..._0x18d63a,_0xe8bb35],_0x3bb338[_0xe8bb35]));}function q(_0x412503){const _0x1fb10c=_0x578284;return typeof _0x412503==_0x1fb10c(0x11a)&&!!_0x412503&&!Array[_0x1fb10c(0x18e)](_0x412503);}function J(_0x380c4b,_0x45f328){return JSON['stringify'](_0x380c4b)===JSON['stringify'](_0x45f328);}function Y(_0x2626da,_0x2b6077,_0x5c92ca,_0x1ec5c6,_0x315d9a,_0x15c875,_0x7326a5){const _0x2074b8=_0x578284;let _0x37b0f2=pt(_0x1ec5c6,_0x315d9a);return _0x37b0f2?!!_0x2626da['syncExecuteCommand'](_0x20121c['id'],{'unitId':_0x5c92ca,'actions':_0x37b0f2,'textRanges':[{'startOffset':_0x7326a5,'endOffset':_0x7326a5,'collapsed':!0x0}],'isEditing':!0x1,'trigger':_0x15c875}):(_0x2b6077[_0x2074b8(0xfc)]([{'startOffset':_0x7326a5,'endOffset':_0x7326a5}],{'unitId':_0x5c92ca,'subUnitId':_0x5c92ca},!0x1),!0x0);}const X='DOC_CODE_PLUGIN';var yt=_0x578284(0x162),bt='1.0.0-insiders.20260809-70eefdd';const xt={};function Z(_0x330a0c,_0x550bb6){return function(_0x31ef6e,_0x184800){_0x550bb6(_0x31ef6e,_0x184800,_0x330a0c);};}function St(_0x46bb41,_0x9723ac,_0x1d1446,_0x9804a0){const _0x1162f2=_0x578284;var _0x116dc1=arguments[_0x1162f2(0x198)],_0x5b6d4e=_0x116dc1<0x3?_0x9723ac:_0x9804a0===null?_0x9804a0=Object['getOwnPropertyDescriptor'](_0x9723ac,_0x1d1446):_0x9804a0,_0x12d2be;if(typeof Reflect==_0x1162f2(0x11a)&&typeof Reflect[_0x1162f2(0x19a)]==_0x1162f2(0x128))_0x5b6d4e=Reflect[_0x1162f2(0x19a)](_0x46bb41,_0x9723ac,_0x1d1446,_0x9804a0);else{for(var _0x5bab14=_0x46bb41['length']-0x1;_0x5bab14>=0x0;_0x5bab14--)(_0x12d2be=_0x46bb41[_0x5bab14])&&(_0x5b6d4e=(_0x116dc1<0x3?_0x12d2be(_0x5b6d4e):_0x116dc1>0x3?_0x12d2be(_0x9723ac,_0x1d1446,_0x5b6d4e):_0x12d2be(_0x9723ac,_0x1d1446))||_0x5b6d4e);}return _0x116dc1>0x3&&_0x5b6d4e&&Object[_0x1162f2(0x167)](_0x9723ac,_0x1d1446,_0x5b6d4e),_0x5b6d4e;}let Q=class extends _0xc9b18a{constructor(_0x52cb68,_0x43dff0){const _0x3f63e1=_0x578284;super(),this[_0x3f63e1(0x108)]=_0x52cb68,this['_docsCodeModel']=_0x43dff0,this[_0x3f63e1(0x196)]();}[_0x578284(0x196)](){const _0x409dd6=_0x578284;this[_0x409dd6(0x17a)](this[_0x409dd6(0x108)]['registerPluginResource']({'pluginName':X,'businesses':[_0xdb135d['UNIVER_DOC']],'toJson':_0x597364=>JSON[_0x409dd6(0x14b)](this[_0x409dd6(0x17e)][_0x409dd6(0x14c)](_0x597364)),'parseJson':_0x596a7f=>y(JSON['parse'](_0x596a7f)),'onLoad':(_0x475ac5,_0x1f82fd)=>this[_0x409dd6(0x17e)]['deserialize'](_0x475ac5,_0x1f82fd),'onUnLoad':_0x36f55e=>this[_0x409dd6(0x17e)][_0x409dd6(0x143)](_0x36f55e)}));}};Q=St([Z(0x0,_0x15472f),Z(0x1,_0x8d4d91(w))],Q);let $=class extends _0x46ce77{constructor(_0x50c25a=xt,_0x55c26a,_0x1f3c62,_0x5ab276){const _0x239ed9=_0x578284;super(),this[_0x239ed9(0x16e)]=_0x50c25a,this['_injector']=_0x55c26a,this[_0x239ed9(0x114)]=_0x1f3c62,this[_0x239ed9(0xff)]=_0x5ab276;let {..._0x5087ec}=_0x4b0430({},xt,this[_0x239ed9(0x16e)]);this[_0x239ed9(0xff)][_0x239ed9(0x193)]('docs-code.config',_0x5087ec);}['onStarting'](){const _0x1f69b8=_0x578284;this[_0x1f69b8(0x100)][_0x1f69b8(0x16b)]([w]),this[_0x1f69b8(0x100)][_0x1f69b8(0x16b)]([Q]),this[_0x1f69b8(0x100)][_0x1f69b8(0x11d)](w),this['_injector'][_0x1f69b8(0x11d)](Q),[B,at,st,V,H,ct,U,ot,Te,T][_0x1f69b8(0x197)](_0x501edb=>this[_0x1f69b8(0x17a)](this[_0x1f69b8(0x114)][_0x1f69b8(0x157)](_0x501edb)));}};C($,'pluginName',X),C($,_0x578284(0x148),yt),C($,_0x578284(0x184),bt),C($,_0x578284(0xfe),_0xdb135d[_0x578284(0x158)]),$=St([_0x3f9ced(_0x1a4448,_0x48415b),Z(0x1,_0x8d4d91(_0x5f0624)),Z(0x2,_0x1488c2),Z(0x3,_0x322276)],$);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 _0x3e8e76=_0x5454;(function(_0x572d47,_0x1cad6a){var _0x47617d=_0x5454,_0xe1965b=_0x572d47();while(!![]){try{var _0x19c7a8=parseInt(_0x47617d(0x169))/0x1+-parseInt(_0x47617d(0x13d))/0x2+parseInt(_0x47617d(0x14b))/0x3*(-parseInt(_0x47617d(0x144))/0x4)+-parseInt(_0x47617d(0x156))/0x5*(parseInt(_0x47617d(0x152))/0x6)+parseInt(_0x47617d(0x166))/0x7*(parseInt(_0x47617d(0x140))/0x8)+parseInt(_0x47617d(0x153))/0x9*(parseInt(_0x47617d(0x134))/0xa)+-parseInt(_0x47617d(0x159))/0xb;if(_0x19c7a8===_0x1cad6a)break;else _0xe1965b['push'](_0xe1965b['shift']());}catch(_0x5f1107){_0xe1965b['push'](_0xe1965b['shift']());}}}(_0x3023,0x68956));import{DocsCodeInsertCommand as _0x5aeb8b,DocsCodeModel as _0x486b62,DocsCodeRemoveCommand as _0x538317,DocsCodeUnwrapCommand as _0x21283a,DocsCodeUpdateCommand as _0x39a9f8,normalizeDocsCodeConfig as _0xf999d0}from'@univerjs-pro/docs-code';import{DataStreamTreeTokenType as _0x4bec09,DocumentBlockRangeType as _0x16c9fd,ICommandService as _0x287e9d,Inject as _0x14ce65,Injector as _0x5d9620,generateRandomId as _0x497ecc}from'@univerjs/core';import{FDocument as _0x413d00,isParagraphFacade as _0x440641}from'@univerjs/docs/facade';function m(_0x1a716b){'@babel/helpers - typeof';var _0x57da8=_0x5454;return m=typeof Symbol==_0x57da8(0x164)&&typeof Symbol[_0x57da8(0x15e)]=='symbol'?function(_0x55d4c7){return typeof _0x55d4c7;}:function(_0x5b6da4){var _0x4c871f=_0x57da8;return _0x5b6da4&&typeof Symbol==_0x4c871f(0x164)&&_0x5b6da4['constructor']===Symbol&&_0x5b6da4!==Symbol[_0x4c871f(0x13a)]?_0x4c871f(0x16c):typeof _0x5b6da4;},m(_0x1a716b);}function h(_0x2fa868,_0x426beb){var _0x1e728=_0x5454;if(m(_0x2fa868)!=_0x1e728(0x148)||!_0x2fa868)return _0x2fa868;var _0x521ce5=_0x2fa868[Symbol[_0x1e728(0x14c)]];if(_0x521ce5!==void 0x0){var _0x558653=_0x521ce5['call'](_0x2fa868,_0x426beb||_0x1e728(0x163));if(m(_0x558653)!=_0x1e728(0x148))return _0x558653;throw TypeError(_0x1e728(0x15c));}return(_0x426beb===_0x1e728(0x147)?String:Number)(_0x2fa868);}function g(_0x390f7d){var _0x5e284c=_0x5454,_0x198dca=h(_0x390f7d,_0x5e284c(0x147));return m(_0x198dca)==_0x5e284c(0x16c)?_0x198dca:_0x198dca+'';}function _(_0x18f687,_0x2f2ebf,_0x292346){return(_0x2f2ebf=g(_0x2f2ebf))in _0x18f687?Object['defineProperty'](_0x18f687,_0x2f2ebf,{'value':_0x292346,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x18f687[_0x2f2ebf]=_0x292346,_0x18f687;}function v(_0x9d52bb,_0x13f5e7){return function(_0xf0442c,_0x3942ef){_0x13f5e7(_0xf0442c,_0x3942ef,_0x9d52bb);};}function _0x5454(_0x215473,_0x38a84f){_0x215473=_0x215473-0x134;var _0x3023eb=_0x3023();var _0x54541a=_0x3023eb[_0x215473];return _0x54541a;}function y(_0x1f9e86,_0x4e8b78,_0x5ebb51,_0x1be458){var _0x5d088a=_0x5454,_0xbabd3d=arguments['length'],_0x322ffa=_0xbabd3d<0x3?_0x4e8b78:_0x1be458===null?_0x1be458=Object[_0x5d088a(0x155)](_0x4e8b78,_0x5ebb51):_0x1be458,_0x31044b;if(typeof Reflect==_0x5d088a(0x148)&&typeof Reflect[_0x5d088a(0x171)]==_0x5d088a(0x164))_0x322ffa=Reflect[_0x5d088a(0x171)](_0x1f9e86,_0x4e8b78,_0x5ebb51,_0x1be458);else{for(var _0x5b846c=_0x1f9e86[_0x5d088a(0x14f)]-0x1;_0x5b846c>=0x0;_0x5b846c--)(_0x31044b=_0x1f9e86[_0x5b846c])&&(_0x322ffa=(_0xbabd3d<0x3?_0x31044b(_0x322ffa):_0xbabd3d>0x3?_0x31044b(_0x4e8b78,_0x5ebb51,_0x322ffa):_0x31044b(_0x4e8b78,_0x5ebb51))||_0x322ffa);}return _0xbabd3d>0x3&&_0x322ffa&&Object[_0x5d088a(0x136)](_0x4e8b78,_0x5ebb51,_0x322ffa),_0x322ffa;}function _0x3023(){var _0x411387=['getOwnPropertyDescriptor','15PBoFaq','dataStream','blockType','10991068vDNbDD','getCode','startIndex','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','findCodes','iterator','_createFDocumentCode','_blockId','getCodes','some','default','function','insertCode','689927oyqJrQ','getConfig','endIndex','633178mFkoip','remove','_getBlockRange','symbol','BLOCK_END','extend','_document','getCodeAt','decorate','body','SECTION_BREAK','save','text','getId','from','10uMwUta','syncExecuteCommand','defineProperty','get','_injector','_getBlockRanges','prototype','BLOCK_START','getRange','277464YdMxen','blockRanges','describe','56TrUDuh','_unitId','getCodeConfig','map','49124inGdtA','createInstance','blockId','string','object','getText','find','30lPbFkq','toPrimitive','CODE','unwrap','length','_getDocumentData','join','523104VFsrTy','5647959ImUBUv','filter'];_0x3023=function(){return _0x411387;};return _0x3023();}let b=class{constructor(_0x108149,_0x5758f5,_0x39c500){var _0x17ed45=_0x5454;this[_0x17ed45(0x16f)]=_0x108149,this[_0x17ed45(0x160)]=_0x5758f5,this[_0x17ed45(0x138)]=_0x39c500,_(this,_0x17ed45(0x141),void 0x0),this[_0x17ed45(0x141)]=this['_document'][_0x17ed45(0x176)]();}[_0x3e8e76(0x176)](){var _0x441721=_0x3e8e76;return this[_0x441721(0x160)];}[_0x3e8e76(0x13c)](){var _0x4d0696=_0x3e8e76;let _0x57f095=this['_getBlockRange']();return _0x57f095?{'blockId':_0x57f095[_0x4d0696(0x146)],'endIndex':_0x57f095[_0x4d0696(0x168)],'startIndex':_0x57f095[_0x4d0696(0x15b)]}:null;}['getText'](){var _0x2d6ff6=_0x3e8e76,_0x5453ff;let _0x189b6e=this[_0x2d6ff6(0x16b)](),_0x140243=(_0x5453ff=this[_0x2d6ff6(0x150)]()[_0x2d6ff6(0x172)])==null?void 0x0:_0x5453ff[_0x2d6ff6(0x157)];return!_0x189b6e||!_0x140243?'':x(_0x140243['slice'](_0x189b6e[_0x2d6ff6(0x15b)]+0x1,_0x189b6e[_0x2d6ff6(0x168)]));}[_0x3e8e76(0x13f)](){var _0x2465b4=_0x3e8e76;let _0x726b70=this[_0x2465b4(0x13c)]();return _0x726b70?{..._0x726b70,'config':this[_0x2465b4(0x167)](),'text':this['getText'](),'type':_0x16c9fd['CODE']}:null;}[_0x3e8e76(0x167)](){var _0x2922c0=_0x3e8e76;return _0xf999d0(this[_0x2922c0(0x138)][_0x2922c0(0x137)](_0x486b62)[_0x2922c0(0x142)](this[_0x2922c0(0x141)],this[_0x2922c0(0x160)]));}['updateConfig'](_0x17dbef){var _0x2ddbf5=_0x3e8e76;return this[_0x2ddbf5(0x138)]['get'](_0x287e9d)['syncExecuteCommand'](_0x39a9f8['id'],{'blockId':this[_0x2ddbf5(0x160)],'config':_0x17dbef['config'],'unitId':this[_0x2ddbf5(0x141)]});}[_0x3e8e76(0x14e)](){var _0x4f0614=_0x3e8e76;return this[_0x4f0614(0x138)]['get'](_0x287e9d)[_0x4f0614(0x135)](_0x21283a['id'],{'blockId':this[_0x4f0614(0x160)],'unitId':this['_unitId']});}[_0x3e8e76(0x16a)](){var _0x25b8bb=_0x3e8e76;return this[_0x25b8bb(0x138)]['get'](_0x287e9d)[_0x25b8bb(0x135)](_0x538317['id'],{'blockId':this['_blockId'],'unitId':this[_0x25b8bb(0x141)]});}[_0x3e8e76(0x16b)](){var _0x457054=_0x3e8e76,_0x440ca9;return((_0x440ca9=this['_getDocumentData']()['body'])==null||(_0x440ca9=_0x440ca9[_0x457054(0x13e)])==null?void 0x0:_0x440ca9[_0x457054(0x14a)](_0x82dda5=>_0x82dda5[_0x457054(0x146)]===this[_0x457054(0x160)]&&_0x82dda5[_0x457054(0x158)]===_0x16c9fd[_0x457054(0x14d)]))??null;}[_0x3e8e76(0x150)](){var _0x214d1d=_0x3e8e76;return this[_0x214d1d(0x16f)][_0x214d1d(0x174)]();}};b=y([v(0x2,_0x14ce65(_0x5d9620))],b);function x(_0x30b393){var _0x278534=_0x3e8e76;return Array[_0x278534(0x177)](_0x30b393)[_0x278534(0x143)](_0x35f34d=>_0x35f34d===_0x4bec09['PARAGRAPH']?'\x0a':_0x35f34d)[_0x278534(0x154)](_0x1056ab=>_0x1056ab!==_0x4bec09[_0x278534(0x13b)]&&_0x1056ab!==_0x4bec09[_0x278534(0x16d)]&&_0x1056ab!==_0x4bec09[_0x278534(0x173)])[_0x278534(0x151)]('')['replace'](/\n$/,'');}var S=class extends _0x413d00{[_0x3e8e76(0x161)](){var _0x15d5bc=_0x3e8e76;return this['_getBlockRanges']()[_0x15d5bc(0x154)](_0x2d33e2=>_0x2d33e2[_0x15d5bc(0x158)]===_0x16c9fd[_0x15d5bc(0x14d)])[_0x15d5bc(0x143)](_0x1deb39=>this[_0x15d5bc(0x15f)](_0x1deb39[_0x15d5bc(0x146)]));}[_0x3e8e76(0x15a)](_0x2ecb22){var _0x53b664=_0x3e8e76;return this[_0x53b664(0x139)]()[_0x53b664(0x162)](_0x1b8391=>_0x1b8391[_0x53b664(0x146)]===_0x2ecb22&&_0x1b8391['blockType']===_0x16c9fd[_0x53b664(0x14d)])?this[_0x53b664(0x15f)](_0x2ecb22):null;}[_0x3e8e76(0x170)](_0x499b3e){var _0x31bf1d=_0x3e8e76;let _0x206b08=this['_getBlockRanges']()[_0x31bf1d(0x14a)](_0x196a8a=>_0x196a8a[_0x31bf1d(0x158)]===_0x16c9fd['CODE']&&_0x196a8a[_0x31bf1d(0x15b)]<=_0x499b3e&&_0x499b3e<=_0x196a8a[_0x31bf1d(0x168)]);return _0x206b08?this['_createFDocumentCode'](_0x206b08['blockId']):null;}['findCodeByText'](_0x1e8404){var _0x17e367=_0x3e8e76;return this[_0x17e367(0x15d)](_0x1e8404)[0x0]??null;}[_0x3e8e76(0x15d)](_0x254d5f){var _0x119749=_0x3e8e76;let _0x3fc450=typeof _0x254d5f==_0x119749(0x147)?{'text':_0x254d5f}:_0x254d5f;return this[_0x119749(0x161)]()['filter'](_0x53d15f=>!(_0x3fc450['blockId']&&_0x53d15f[_0x119749(0x176)]()!==_0x3fc450['blockId']||_0x3fc450['text']&&!_0x53d15f[_0x119749(0x149)]()['includes'](_0x3fc450[_0x119749(0x175)])));}[_0x3e8e76(0x165)](_0x463e52={},_0x1ea1b8={}){var _0x15c896=_0x3e8e76;let _0x14c2e5=this[_0x15c896(0x138)]['get'](_0x287e9d),_0x2cd27c=_0x440641(_0x463e52)?{..._0x1ea1b8,..._0x463e52[_0x15c896(0x13c)]()}:_0x463e52,_0x3205ec=_0x2cd27c[_0x15c896(0x146)]??_0x497ecc(0x6);return _0x14c2e5[_0x15c896(0x135)](_0x5aeb8b['id'],{..._0x2cd27c,'blockId':_0x3205ec,'unitId':this[_0x15c896(0x176)]()})?this[_0x15c896(0x15a)](_0x3205ec):null;}[_0x3e8e76(0x139)](){var _0x2f6453=_0x3e8e76,_0x530564;return((_0x530564=this[_0x2f6453(0x174)]()[_0x2f6453(0x172)])==null?void 0x0:_0x530564[_0x2f6453(0x13e)])??[];}['_createFDocumentCode'](_0x1ba99b){var _0x2b1cbc=_0x3e8e76;return this['_injector'][_0x2b1cbc(0x145)](b,this,_0x1ba99b);}};_0x413d00[_0x3e8e76(0x16e)](S);export{b as FDocumentCode};
1
+ var _0x5a3bed=_0x99f2;(function(_0x284151,_0x100330){var _0x46b10c=_0x99f2,_0x54b06a=_0x284151();while(!![]){try{var _0x4d1250=parseInt(_0x46b10c(0xd0))/0x1*(-parseInt(_0x46b10c(0xce))/0x2)+parseInt(_0x46b10c(0xf2))/0x3*(-parseInt(_0x46b10c(0x101))/0x4)+-parseInt(_0x46b10c(0x103))/0x5*(parseInt(_0x46b10c(0xe9))/0x6)+parseInt(_0x46b10c(0x100))/0x7*(parseInt(_0x46b10c(0x102))/0x8)+-parseInt(_0x46b10c(0xdf))/0x9+-parseInt(_0x46b10c(0xec))/0xa+parseInt(_0x46b10c(0xdb))/0xb;if(_0x4d1250===_0x100330)break;else _0x54b06a['push'](_0x54b06a['shift']());}catch(_0x492102){_0x54b06a['push'](_0x54b06a['shift']());}}}(_0x5c40,0x331d0));import{DocsCodeInsertCommand as _0x55e7af,DocsCodeModel as _0x1807cb,DocsCodeRemoveCommand as _0x1e475b,DocsCodeUnwrapCommand as _0x43b689,DocsCodeUpdateCommand as _0x490b74,normalizeDocsCodeConfig as _0x32ae0d}from'@univerjs-pro/docs-code';import{DataStreamTreeTokenType as _0x384c50,DocumentBlockRangeType as _0xdbafce,ICommandService as _0x3b896e,Inject as _0x13e0e9,Injector as _0xa6685,generateRandomId as _0x47f85b}from'@univerjs/core';import{FDocument as _0x4a7a19,isParagraphFacade as _0x2ffa4e}from'@univerjs/docs/facade';function _0x99f2(_0x49091c,_0x17b303){_0x49091c=_0x49091c-0xc5;var _0x5c4011=_0x5c40();var _0x99f254=_0x5c4011[_0x49091c];return _0x99f254;}function m(_0x26b523){'@babel/helpers - typeof';var _0x45f69f=_0x99f2;return m=typeof Symbol==_0x45f69f(0xf6)&&typeof Symbol['iterator']==_0x45f69f(0xfe)?function(_0x8415ab){return typeof _0x8415ab;}:function(_0x38783e){var _0x298656=_0x45f69f;return _0x38783e&&typeof Symbol==_0x298656(0xf6)&&_0x38783e['constructor']===Symbol&&_0x38783e!==Symbol[_0x298656(0xe1)]?_0x298656(0xfe):typeof _0x38783e;},m(_0x26b523);}function h(_0x31e1c2,_0x4578ea){var _0x148a1a=_0x99f2;if(m(_0x31e1c2)!=_0x148a1a(0xd8)||!_0x31e1c2)return _0x31e1c2;var _0x3ea3be=_0x31e1c2[Symbol[_0x148a1a(0xf1)]];if(_0x3ea3be!==void 0x0){var _0x306d67=_0x3ea3be[_0x148a1a(0xdd)](_0x31e1c2,_0x4578ea||_0x148a1a(0xd1));if(m(_0x306d67)!='object')return _0x306d67;throw TypeError(_0x148a1a(0xf3));}return(_0x4578ea===_0x148a1a(0xc7)?String:Number)(_0x31e1c2);}function g(_0x14c2a8){var _0x50fd8a=_0x99f2,_0x3196b1=h(_0x14c2a8,_0x50fd8a(0xc7));return m(_0x3196b1)==_0x50fd8a(0xfe)?_0x3196b1:_0x3196b1+'';}function _(_0x4b22ec,_0x433e0b,_0x288be9){return(_0x433e0b=g(_0x433e0b))in _0x4b22ec?Object['defineProperty'](_0x4b22ec,_0x433e0b,{'value':_0x288be9,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4b22ec[_0x433e0b]=_0x288be9,_0x4b22ec;}function _0x5c40(){var _0x313f99=['findCodeByText','symbol','_getBlockRange','553OvwIcY','735044oWgABA','7472yvZFWh','5aPtkyI','slice','findCodes','unwrap','_getBlockRanges','length','CODE','string','_getDocumentData','BLOCK_END','blockType','filter','map','getRange','394mdcpsr','config','1909toFLHU','default','_createFDocumentCode','getCodeAt','remove','endIndex','getCodes','body','object','text','syncExecuteCommand','14763474OxeHya','decorate','call','BLOCK_START','2681856lvUwnL','updateConfig','prototype','get','blockId','blockRanges','_document','save','includes','find','237084cnRTSk','join','startIndex','1254670hTckLG','_unitId','getConfig','from','dataStream','toPrimitive','6HqprMS','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','PARAGRAPH','getText','function','some','getCode','_blockId','getId','getOwnPropertyDescriptor','_injector'];_0x5c40=function(){return _0x313f99;};return _0x5c40();}function v(_0x415a87,_0x3b59d2){return function(_0x30a106,_0x5e4733){_0x3b59d2(_0x30a106,_0x5e4733,_0x415a87);};}function y(_0x33a3e8,_0x2de506,_0x561447,_0x9e1afa){var _0x189820=_0x99f2,_0x5b850e=arguments['length'],_0x5563b0=_0x5b850e<0x3?_0x2de506:_0x9e1afa===null?_0x9e1afa=Object[_0x189820(0xfb)](_0x2de506,_0x561447):_0x9e1afa,_0x489a33;if(typeof Reflect==_0x189820(0xd8)&&typeof Reflect[_0x189820(0xdc)]==_0x189820(0xf6))_0x5563b0=Reflect[_0x189820(0xdc)](_0x33a3e8,_0x2de506,_0x561447,_0x9e1afa);else{for(var _0x2ad707=_0x33a3e8[_0x189820(0xc5)]-0x1;_0x2ad707>=0x0;_0x2ad707--)(_0x489a33=_0x33a3e8[_0x2ad707])&&(_0x5563b0=(_0x5b850e<0x3?_0x489a33(_0x5563b0):_0x5b850e>0x3?_0x489a33(_0x2de506,_0x561447,_0x5563b0):_0x489a33(_0x2de506,_0x561447))||_0x5563b0);}return _0x5b850e>0x3&&_0x5563b0&&Object['defineProperty'](_0x2de506,_0x561447,_0x5563b0),_0x5563b0;}let b=class{constructor(_0x328d3d,_0x3a644f,_0x4abf7b){var _0x31f69d=_0x99f2;this[_0x31f69d(0xe5)]=_0x328d3d,this[_0x31f69d(0xf9)]=_0x3a644f,this[_0x31f69d(0xfc)]=_0x4abf7b,_(this,_0x31f69d(0xed),void 0x0),this[_0x31f69d(0xed)]=this[_0x31f69d(0xe5)][_0x31f69d(0xfa)]();}[_0x5a3bed(0xfa)](){return this['_blockId'];}[_0x5a3bed(0xcd)](){var _0x56ed4f=_0x5a3bed;let _0x592b52=this[_0x56ed4f(0xff)]();return _0x592b52?{'blockId':_0x592b52[_0x56ed4f(0xe3)],'endIndex':_0x592b52[_0x56ed4f(0xd5)],'startIndex':_0x592b52[_0x56ed4f(0xeb)]}:null;}[_0x5a3bed(0xf5)](){var _0xbe3e84=_0x5a3bed,_0x1f89aa;let _0x15082b=this['_getBlockRange'](),_0x311b49=(_0x1f89aa=this[_0xbe3e84(0xc8)]()[_0xbe3e84(0xd7)])==null?void 0x0:_0x1f89aa[_0xbe3e84(0xf0)];return!_0x15082b||!_0x311b49?'':x(_0x311b49[_0xbe3e84(0x104)](_0x15082b['startIndex']+0x1,_0x15082b[_0xbe3e84(0xd5)]));}['describe'](){var _0x40b583=_0x5a3bed;let _0x4e61ab=this[_0x40b583(0xcd)]();return _0x4e61ab?{..._0x4e61ab,'config':this['getConfig'](),'text':this[_0x40b583(0xf5)](),'type':_0xdbafce['CODE']}:null;}[_0x5a3bed(0xee)](){var _0x275ed0=_0x5a3bed;return _0x32ae0d(this['_injector']['get'](_0x1807cb)['getCodeConfig'](this['_unitId'],this[_0x275ed0(0xf9)]));}[_0x5a3bed(0xe0)](_0xa18bbc){var _0x3b0f00=_0x5a3bed;return this[_0x3b0f00(0xfc)][_0x3b0f00(0xe2)](_0x3b896e)['syncExecuteCommand'](_0x490b74['id'],{'blockId':this[_0x3b0f00(0xf9)],'config':_0xa18bbc[_0x3b0f00(0xcf)],'unitId':this[_0x3b0f00(0xed)]});}[_0x5a3bed(0x106)](){var _0x25a024=_0x5a3bed;return this['_injector'][_0x25a024(0xe2)](_0x3b896e)[_0x25a024(0xda)](_0x43b689['id'],{'blockId':this[_0x25a024(0xf9)],'unitId':this[_0x25a024(0xed)]});}[_0x5a3bed(0xd4)](){var _0x135184=_0x5a3bed;return this[_0x135184(0xfc)][_0x135184(0xe2)](_0x3b896e)['syncExecuteCommand'](_0x1e475b['id'],{'blockId':this['_blockId'],'unitId':this[_0x135184(0xed)]});}['_getBlockRange'](){var _0x52883e=_0x5a3bed,_0x19e5bb;return((_0x19e5bb=this['_getDocumentData']()[_0x52883e(0xd7)])==null||(_0x19e5bb=_0x19e5bb[_0x52883e(0xe4)])==null?void 0x0:_0x19e5bb['find'](_0x16dd82=>_0x16dd82[_0x52883e(0xe3)]===this[_0x52883e(0xf9)]&&_0x16dd82['blockType']===_0xdbafce[_0x52883e(0xc6)]))??null;}['_getDocumentData'](){var _0x45b8bd=_0x5a3bed;return this[_0x45b8bd(0xe5)][_0x45b8bd(0xe6)]();}};b=y([v(0x2,_0x13e0e9(_0xa6685))],b);function x(_0x51b8b6){var _0x5807aa=_0x5a3bed;return Array[_0x5807aa(0xef)](_0x51b8b6)[_0x5807aa(0xcc)](_0x1b8147=>_0x1b8147===_0x384c50[_0x5807aa(0xf4)]?'\x0a':_0x1b8147)[_0x5807aa(0xcb)](_0x41df82=>_0x41df82!==_0x384c50[_0x5807aa(0xde)]&&_0x41df82!==_0x384c50[_0x5807aa(0xc9)]&&_0x41df82!==_0x384c50['SECTION_BREAK'])[_0x5807aa(0xea)]('')['replace'](/\n$/,'');}var S=class extends _0x4a7a19{['getCodes'](){var _0x42787a=_0x5a3bed;return this[_0x42787a(0x107)]()['filter'](_0x7011c4=>_0x7011c4[_0x42787a(0xca)]===_0xdbafce[_0x42787a(0xc6)])[_0x42787a(0xcc)](_0x16409d=>this['_createFDocumentCode'](_0x16409d[_0x42787a(0xe3)]));}[_0x5a3bed(0xf8)](_0x242ff5){var _0x22aca5=_0x5a3bed;return this[_0x22aca5(0x107)]()[_0x22aca5(0xf7)](_0x3f130c=>_0x3f130c['blockId']===_0x242ff5&&_0x3f130c['blockType']===_0xdbafce[_0x22aca5(0xc6)])?this[_0x22aca5(0xd2)](_0x242ff5):null;}[_0x5a3bed(0xd3)](_0x23e0e0){var _0x179df6=_0x5a3bed;let _0x5b3008=this[_0x179df6(0x107)]()[_0x179df6(0xe8)](_0x54facd=>_0x54facd[_0x179df6(0xca)]===_0xdbafce['CODE']&&_0x54facd[_0x179df6(0xeb)]<=_0x23e0e0&&_0x23e0e0<=_0x54facd[_0x179df6(0xd5)]);return _0x5b3008?this[_0x179df6(0xd2)](_0x5b3008[_0x179df6(0xe3)]):null;}[_0x5a3bed(0xfd)](_0x97f77c){var _0x1507b0=_0x5a3bed;return this[_0x1507b0(0x105)](_0x97f77c)[0x0]??null;}[_0x5a3bed(0x105)](_0xb44f26){var _0x2264c3=_0x5a3bed;let _0x446b57=typeof _0xb44f26==_0x2264c3(0xc7)?{'text':_0xb44f26}:_0xb44f26;return this[_0x2264c3(0xd6)]()['filter'](_0x1c010a=>!(_0x446b57[_0x2264c3(0xe3)]&&_0x1c010a['getId']()!==_0x446b57['blockId']||_0x446b57[_0x2264c3(0xd9)]&&!_0x1c010a[_0x2264c3(0xf5)]()[_0x2264c3(0xe7)](_0x446b57['text'])));}['insertCode'](_0x3101ed={},_0x2639eb={}){var _0x3ba04c=_0x5a3bed;let _0x34022a=this[_0x3ba04c(0xfc)][_0x3ba04c(0xe2)](_0x3b896e),_0x4e8973=_0x2ffa4e(_0x3101ed)?{..._0x2639eb,..._0x3101ed[_0x3ba04c(0xcd)]()}:_0x3101ed,_0x5456f4=_0x4e8973[_0x3ba04c(0xe3)]??_0x47f85b(0x6);return _0x34022a[_0x3ba04c(0xda)](_0x55e7af['id'],{..._0x4e8973,'blockId':_0x5456f4,'unitId':this['getId']()})?this[_0x3ba04c(0xf8)](_0x5456f4):null;}['_getBlockRanges'](){var _0x4bd9f9=_0x5a3bed,_0x4449fb;return((_0x4449fb=this[_0x4bd9f9(0xe6)]()[_0x4bd9f9(0xd7)])==null?void 0x0:_0x4449fb['blockRanges'])??[];}[_0x5a3bed(0xd2)](_0x46a762){return this['_injector']['createInstance'](b,this,_0x46a762);}};_0x4a7a19['extend'](S);export{b as FDocumentCode};
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x3c7b6e=_0x558e;(function(_0xaa1e07,_0x4311cf){const _0x4b221b=_0x558e,_0x5eb718=_0xaa1e07();while(!![]){try{const _0x3a3b51=parseInt(_0x4b221b(0xc7))/0x1*(parseInt(_0x4b221b(0x111))/0x2)+parseInt(_0x4b221b(0x8b))/0x3+-parseInt(_0x4b221b(0xfb))/0x4+-parseInt(_0x4b221b(0x113))/0x5*(-parseInt(_0x4b221b(0x114))/0x6)+-parseInt(_0x4b221b(0x8e))/0x7+parseInt(_0x4b221b(0xc8))/0x8+-parseInt(_0x4b221b(0xa5))/0x9*(-parseInt(_0x4b221b(0xb1))/0xa);if(_0x3a3b51===_0x4311cf)break;else _0x5eb718['push'](_0x5eb718['shift']());}catch(_0x54f9bb){_0x5eb718['push'](_0x5eb718['shift']());}}}(_0x5970,0xad4f9));import{BooleanNumber as _0x184149,BuildTextUtils as _0x5e634c,CommandType as _0x40c7ba,DataStreamTreeTokenType as _0x1d5afe,DependentOn as _0x362164,Disposable as _0x5ddd1d,DocumentBlockRangeType as _0xc66df5,ICommandService as _0x530cfb,IConfigService as _0x440bd3,IResourceManagerService as _0x5b5ca8,IUniverInstanceService as _0x23502f,Inject as _0x3fdb21,Injector as _0x587b27,JSONX as _0x42b9cd,Plugin as _0x1d23e9,TextX as _0x196b0d,UniverInstanceType as _0x33d288,containsInteriorInsertionOffset as _0x218fd5,containsStreamIndex as _0xb8136f,createParagraphId as _0xc658af,generateRandomId as _0x30261f,getBlockRangeInterval as _0x42484b,getBodySliceForTextXAction as _0x1eeac7,getParagraphContentStartOffset as _0xb008c0,getParagraphContentStartOffsets as _0x3fa0c0,getParagraphFollowingBlockOffset as _0x411e27,getSingleDataStreamChange as _0x4bad03,intersectsOperationalIntervals as _0x4dc471,merge as _0x2e149b,shiftExclusiveRangeOnDelete as _0x1764e6,shiftExclusiveRangeOnInsert as _0x4311be,shiftInclusiveRangeOnDelete as _0x555381,shiftInclusiveRangeOnInsert as _0x18b46b}from'@univerjs/core';import{Subject as _0x485654}from'rxjs';import{DocSelectionManagerService as _0x576bc0,RichTextEditingMutation as _0x12d7c6,UniverDocsPlugin as _0x5b5832,getContentInsertRange as _0x579c32,isHeaderFooterSelection as _0x4f2a1b}from'@univerjs/docs';import{UniverLicensePlugin as _0x5a6240}from'@univerjs-pro/license';const Se={'language':'javascript','showLineNumbers':!0x1,'tabSize':0x4,'wrap':!0x0};function v(_0x57f32a){return{...Se,..._0x57f32a};}function y(_0x1a4232){const _0x9a8e9e=_0x558e;let _0x26bd8a=(_0x1a4232==null?void 0x0:_0x1a4232['codes'])??{};return{'codes':Object[_0x9a8e9e(0xa8)](Object[_0x9a8e9e(0x73)](_0x26bd8a)[_0x9a8e9e(0xcc)](([_0x4a9cd1,_0xa658f0])=>[_0x4a9cd1,v(_0xa658f0)]))};}function b(_0x5253c0,_0x289adc,_0x472a62){const _0xe165d0=_0x558e;let _0x1f2519=y(_0x5253c0);return _0x1f2519['codes'][_0x289adc]=v({..._0x1f2519[_0xe165d0(0x75)][_0x289adc],..._0x472a62}),_0x1f2519;}function x(_0x2caa36,_0x548fa4){const _0x2b09f6=_0x558e;let _0x761bd6=y(_0x2caa36);return delete _0x761bd6[_0x2b09f6(0x75)][_0x548fa4],_0x761bd6;}function S(_0x156224){'@babel/helpers - typeof';const _0x1e95de=_0x558e;return S=typeof Symbol==_0x1e95de(0xfe)&&typeof Symbol[_0x1e95de(0xc9)]==_0x1e95de(0xc2)?function(_0x272da9){return typeof _0x272da9;}:function(_0x2c22ba){const _0x2f7b20=_0x1e95de;return _0x2c22ba&&typeof Symbol==_0x2f7b20(0xfe)&&_0x2c22ba['constructor']===Symbol&&_0x2c22ba!==Symbol[_0x2f7b20(0xb4)]?_0x2f7b20(0xc2):typeof _0x2c22ba;},S(_0x156224);}function Ce(_0x4195a0,_0x18c7cb){const _0x1dc619=_0x558e;if(S(_0x4195a0)!='object'||!_0x4195a0)return _0x4195a0;var _0x139536=_0x4195a0[Symbol[_0x1dc619(0x87)]];if(_0x139536!==void 0x0){var _0x59077f=_0x139536['call'](_0x4195a0,_0x18c7cb||_0x1dc619(0xd7));if(S(_0x59077f)!=_0x1dc619(0xa9))return _0x59077f;throw TypeError(_0x1dc619(0xe3));}return(_0x18c7cb==='string'?String:Number)(_0x4195a0);}function we(_0x49ae28){const _0x489541=_0x558e;var _0x570841=Ce(_0x49ae28,_0x489541(0xef));return S(_0x570841)=='symbol'?_0x570841:_0x570841+'';}function C(_0x51da53,_0x2cc238,_0x3f23f2){const _0x36d2a7=_0x558e;return(_0x2cc238=we(_0x2cc238))in _0x51da53?Object[_0x36d2a7(0x8c)](_0x51da53,_0x2cc238,{'value':_0x3f23f2,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x51da53[_0x2cc238]=_0x3f23f2,_0x51da53;}var w=class extends _0x5ddd1d{constructor(..._0x33f12c){const _0x283bb9=_0x558e;super(..._0x33f12c),C(this,_0x283bb9(0xb7),new Map()),C(this,'_change$',new _0x485654()),C(this,'change$',this['_change$']['asObservable']());}[_0x3c7b6e(0xd5)](_0x57b103,_0x1b50e0){const _0x20ffe5=_0x3c7b6e;return y(this['_resources'][_0x20ffe5(0xb8)](_0x57b103))['codes'][_0x1b50e0];}['setCodeConfig'](_0x420249,_0x15d97b,_0x56b3d0){const _0x334b14=_0x3c7b6e;this['_setResource'](_0x420249,_0x15d97b,b(this[_0x334b14(0xb7)][_0x334b14(0xb8)](_0x420249),_0x15d97b,_0x56b3d0));}[_0x3c7b6e(0x108)](_0x16223f,_0x409bfb){const _0x2107a5=_0x3c7b6e;this[_0x2107a5(0xff)](_0x16223f,_0x409bfb,x(this[_0x2107a5(0xb7)][_0x2107a5(0xb8)](_0x16223f),_0x409bfb));}[_0x3c7b6e(0xab)](_0x5931e2){const _0x43fbc8=_0x3c7b6e;return y(this[_0x43fbc8(0xb7)][_0x43fbc8(0xb8)](_0x5931e2));}['deserialize'](_0x18fd49,_0x104545){const _0x46452b=_0x3c7b6e;this[_0x46452b(0xb7)][_0x46452b(0xcf)](_0x18fd49,y(_0x104545)),this[_0x46452b(0xee)]['next']({'unitId':_0x18fd49});}[_0x3c7b6e(0x7c)](_0x27835b){const _0x898fc9=_0x3c7b6e;this[_0x898fc9(0xb7)][_0x898fc9(0xa6)](_0x27835b),this['_change$'][_0x898fc9(0xe8)]({'unitId':_0x27835b});}[_0x3c7b6e(0xed)](){const _0x27fbce=_0x3c7b6e;super[_0x27fbce(0xed)](),this[_0x27fbce(0xb7)][_0x27fbce(0xcb)](),this['_change$'][_0x27fbce(0xe4)]();}[_0x3c7b6e(0xff)](_0x29a318,_0x265922,_0x595718){const _0x1ed186=_0x3c7b6e;this[_0x1ed186(0xb7)][_0x1ed186(0xcf)](_0x29a318,_0x595718),this[_0x1ed186(0xee)]['next']({'unitId':_0x29a318,'blockId':_0x265922});}};const Te={'id':_0x3c7b6e(0x8f),'type':_0x40c7ba['MUTATION'],'handler':(_0x1ef530,_0xb8705e)=>!(_0xb8705e!=null&&_0xb8705e['unitId'])||!_0xb8705e[_0x3c7b6e(0xeb)]?!0x1:(_0x1ef530[_0x3c7b6e(0xb8)](w)[_0x3c7b6e(0xd2)](_0xb8705e[_0x3c7b6e(0x101)],_0xb8705e[_0x3c7b6e(0xeb)],_0xb8705e[_0x3c7b6e(0xf0)]),!0x0)},T={'id':_0x3c7b6e(0xc3),'type':_0x40c7ba['MUTATION'],'handler':(_0x28dd2c,_0x19d352)=>!(_0x19d352!=null&&_0x19d352['unitId'])||!_0x19d352[_0x3c7b6e(0xeb)]?!0x1:(_0x28dd2c['get'](w)['removeCode'](_0x19d352[_0x3c7b6e(0x101)],_0x19d352[_0x3c7b6e(0xeb)]),!0x0)},Ee=_0x3c7b6e(0xe9);var E=class extends Error{constructor(_0x14e4e4=_0x3c7b6e(0x116)){super(_0x14e4e4);}};function De(_0x3f520a){const _0x49ce69=_0x3c7b6e;var _0x435d68;let _0x38300e=O(_0x3f520a[_0x49ce69(0xf4)]),_0x5e1465=A(_0x38300e),_0x19d3a9=ke(_0x3f520a[_0x49ce69(0xfd)],_0x3f520a[_0x49ce69(0x103)]),_0x89441b=_0x19d3a9?(_0x435d68=_0x5e1465[_0x49ce69(0xf5)])==null?void 0x0:_0x435d68[_0x49ce69(0xba)](_0x479e7d=>{const _0x39a3c8=_0x49ce69;let _0x1880a5=_0x42484b(_0x479e7d);return _0x1880a5[_0x39a3c8(0xfd)]===_0x19d3a9[_0x39a3c8(0xfd)]&&_0x1880a5[_0x39a3c8(0x103)]===_0x19d3a9[_0x39a3c8(0x103)];}):void 0x0,{startOffset:_0x549d38,endOffset:_0x2c8a28}=_0x89441b?_0x19d3a9:We(_0x5e1465,_0x3f520a[_0x49ce69(0xfd)],_0x3f520a[_0x49ce69(0x103)],_0x3f520a[_0x49ce69(0xa2)]);if(!_0x89441b&&Ae(_0x5e1465,_0x549d38,_0x2c8a28))throw new E(_0x49ce69(0xad));let _0x2f8fd5=qe(_0x5e1465,_0x549d38,_0x2c8a28),_0x481afa=(_0x89441b==null?void 0x0:_0x89441b[_0x49ce69(0xeb)])??_0x3f520a[_0x49ce69(0xeb)],_0x2654bd=b(_0x3f520a['metadata'],_0x481afa,{...Se,..._0x3f520a[_0x49ce69(0xf0)]});if(_0x89441b)return _0x89441b[_0x49ce69(0x99)]=_0xc66df5[_0x49ce69(0xd3)],Oe(_0x5e1465,_0x549d38,_0x2c8a28),ze(_0x5e1465,_0x549d38,_0x2c8a28,_0x2f8fd5),N(_0x5e1465,_0x89441b),{'nextDocumentData':_0x38300e,'nextMetadata':_0x2654bd,'cursorOffset':_0x549d38+0x1};if(_0x549d38===_0x2c8a28){var _0xf2fb7e,_0x5d3811;let _0x365364=''+_0x1d5afe[_0x49ce69(0xbe)]+_0x1d5afe[_0x49ce69(0x9d)]+_0x1d5afe['BLOCK_END'];P(_0x5e1465,_0x549d38,_0x365364,{'paragraphs':[{'startIndex':0x1,'paragraphId':_0xc658af(new Set((_0xf2fb7e=_0x5e1465['paragraphs'])==null?void 0x0:_0xf2fb7e[_0x49ce69(0xcc)](_0x1c339b=>_0x1c339b[_0x49ce69(0xfa)]))),'paragraphStyle':Re(!0x0,!0x0,_0x2f8fd5)}],'blockRanges':[{'blockId':_0x481afa,'blockType':_0xc66df5[_0x49ce69(0xd3)],'startIndex':0x0,'endIndex':_0x365364[_0x49ce69(0x7b)]-0x1}]});let _0x6a6a39=(_0x5d3811=_0x5e1465[_0x49ce69(0xf5)])==null?void 0x0:_0x5d3811[_0x49ce69(0xba)](_0xdee882=>_0xdee882['blockId']===_0x481afa);return _0x6a6a39&&N(_0x5e1465,_0x6a6a39),{'nextDocumentData':_0x38300e,'nextMetadata':_0x2654bd,'cursorOffset':_0x549d38+0x1};}P(_0x5e1465,_0x2c8a28,_0x1d5afe[_0x49ce69(0xec)]),P(_0x5e1465,_0x549d38,_0x1d5afe[_0x49ce69(0xbe)]),ze(_0x5e1465,_0x549d38,_0x2c8a28+0x1,_0x2f8fd5);let _0x43dc03={'blockId':_0x481afa,'blockType':_0xc66df5[_0x49ce69(0xd3)],'startIndex':_0x549d38,'endIndex':_0x2c8a28+0x1};return _0x5e1465[_0x49ce69(0xf5)]=[..._0x5e1465['blockRanges']??[],_0x43dc03][_0x49ce69(0xb2)]((_0x1cd60e,_0x3990f4)=>_0x1cd60e[_0x49ce69(0xe1)]-_0x3990f4[_0x49ce69(0xe1)]),N(_0x5e1465,_0x43dc03),{'nextDocumentData':_0x38300e,'nextMetadata':_0x2654bd,'cursorOffset':_0x549d38+0x1};}function Oe(_0x3afc66,_0x3cfd01,_0x4c8364){const _0x347d54=_0x3c7b6e;(_0x3afc66[_0x347d54(0x85)]??[])[_0x347d54(0xea)](_0x16103f=>_0x16103f['startIndex']>_0x3cfd01&&_0x16103f[_0x347d54(0xe1)]<_0x4c8364)[_0x347d54(0xaa)](_0xba38ec=>{const _0x54f4ec=_0x347d54;let _0x369803={..._0xba38ec[_0x54f4ec(0xdb)]??{}};delete _0x369803[_0x54f4ec(0xcd)],delete _0x369803[_0x54f4ec(0xb9)],_0xba38ec[_0x54f4ec(0xdb)]=_0x369803;});}function ke(_0x284ec3,_0x677dbe){return _0x284ec3==null||_0x677dbe==null||_0x284ec3===_0x677dbe?null:{'startOffset':Math['min'](_0x284ec3,_0x677dbe),'endOffset':Math['max'](_0x284ec3,_0x677dbe)};}function Ae(_0x4526cf,_0x3968db,_0x2e59ea){const _0x2f8f05=_0x3c7b6e;return(_0x4526cf[_0x2f8f05(0xf5)]??[])['some'](_0x4f087b=>{let _0xdcfa7d=_0x42484b(_0x4f087b);return _0x3968db===_0x2e59ea?_0x218fd5(_0xdcfa7d,_0x3968db):_0x4dc471(_0xdcfa7d,{'startOffset':_0x3968db,'endOffset':_0x2e59ea});});}function je(_0x147d30){const _0x2f8df4=_0x3c7b6e;return{'nextDocumentData':O(_0x147d30[_0x2f8df4(0xf4)]),'nextMetadata':b(_0x147d30[_0x2f8df4(0xfc)],_0x147d30[_0x2f8df4(0xeb)],_0x147d30[_0x2f8df4(0xf0)]),'cursorOffset':0x0};}function D(_0x46aa15){const _0x5dbadc=_0x3c7b6e;let _0x23709c=O(_0x46aa15[_0x5dbadc(0xf4)]),_0x306fa4=A(_0x23709c),_0x48c40e=Fe(_0x306fa4,_0x46aa15[_0x5dbadc(0xeb)]);if(!_0x48c40e)return null;let _0xf015a4=He(_0x306fa4,_0x48c40e);return{'nextDocumentData':_0x23709c,'nextMetadata':x(_0x46aa15['metadata'],_0x46aa15[_0x5dbadc(0xeb)]),'cursorOffset':_0xf015a4};}function Me(_0x360fb1){const _0x1cda80=_0x3c7b6e;var _0x4aed73;let _0x1f4af9=O(_0x360fb1[_0x1cda80(0xf4)]),_0x46af95=A(_0x1f4af9),_0x9d8ba6=Fe(_0x46af95,_0x360fb1[_0x1cda80(0xeb)]);if(!_0x9d8ba6)return null;let _0x18acf6=_0x42484b(_0x9d8ba6);return F(_0x46af95,_0x18acf6[_0x1cda80(0xfd)],_0x18acf6[_0x1cda80(0x103)]),_0x46af95[_0x1cda80(0xf5)]=(_0x4aed73=_0x46af95[_0x1cda80(0xf5)])==null?void 0x0:_0x4aed73[_0x1cda80(0xea)](_0x5b1804=>_0x5b1804['blockId']!==_0x360fb1['blockId']),{'nextDocumentData':_0x1f4af9,'nextMetadata':x(_0x360fb1[_0x1cda80(0xfc)],_0x360fb1[_0x1cda80(0xeb)]),'cursorOffset':_0x9d8ba6[_0x1cda80(0xe1)]};}function Ne(_0x2ea073){const _0x338fc5=_0x3c7b6e;let _0x58c6e2=O(_0x2ea073[_0x338fc5(0xf4)]),_0x44446d=A(_0x58c6e2),_0x1c6ca3=Le(_0x44446d,_0x2ea073['cursorOffset']);return _0x1c6ca3&&Pe(_0x58c6e2,_0x44446d,_0x1c6ca3,_0x2ea073[_0x338fc5(0x9c)],_0x2ea073[_0x338fc5(0x80)])||null;}function Pe(_0x340c21,_0x26b6e5,_0x427bc6,_0x5259de,_0x574488){const _0x28b318=_0x3c7b6e;let _0x59e731=$e(_0x26b6e5,_0x427bc6,_0x5259de,_0x574488);if(!_0x59e731)return null;let _0x5072e3=_0x59e731[_0x28b318(0xf8)]-0x1;return F(_0x26b6e5,_0x59e731[_0x28b318(0x9a)][_0x28b318(0xe1)],_0x59e731['paragraph'][_0x28b318(0xe1)]+0x1),{'nextDocumentData':_0x340c21,'cursorOffset':_0x5072e3};}function Fe(_0x162127,_0x5a621d){const _0x3f0584=_0x3c7b6e;var _0x5da4cd;return _0x162127==null||(_0x5da4cd=_0x162127['blockRanges'])==null?void 0x0:_0x5da4cd[_0x3f0584(0xba)](_0x4abbf4=>_0x4abbf4[_0x3f0584(0x99)]===_0xc66df5[_0x3f0584(0xd3)]&&_0x4abbf4[_0x3f0584(0xeb)]===_0x5a621d);}function Ie(_0x508ee7){const _0x27de00=_0x3c7b6e;let _0x53a9e9=_0x508ee7[_0x27de00(0xf4)][_0x27de00(0x92)];if(!_0x53a9e9)return!0x1;let _0x3a6eac=_0x508ee7[_0x27de00(0x10f)]==='left'?_0x508ee7[_0x27de00(0x9c)]-0x1:_0x508ee7[_0x27de00(0x9c)],_0x397b8c=_0x508ee7[_0x27de00(0x10f)]==='right'?_0x508ee7[_0x27de00(0x9c)]+0x1:_0x3a6eac;return(_0x53a9e9[_0x27de00(0xf5)]??[])[_0x27de00(0x91)](_0x272ed2=>_0x272ed2[_0x27de00(0x99)]===_0xc66df5[_0x27de00(0xd3)]?_0x3a6eac===_0x272ed2[_0x27de00(0xe1)]||_0x3a6eac===_0x272ed2[_0x27de00(0xac)]||_0x397b8c===_0x272ed2[_0x27de00(0xe1)]||_0x397b8c===_0x272ed2['endIndex']:!0x1);}function Le(_0x17e986,_0x4fd5cf){const _0x431ca7=_0x3c7b6e;var _0x239c43;return(_0x239c43=_0x17e986[_0x431ca7(0xf5)])==null?void 0x0:_0x239c43[_0x431ca7(0xba)](_0x40549c=>{const _0x489e88=_0x431ca7;let _0x23f170=M(_0x40549c);return _0x40549c[_0x489e88(0x99)]===_0xc66df5['CODE']&&_0x40549c[_0x489e88(0xe1)]<=_0x4fd5cf&&_0x4fd5cf<=_0x23f170+0x2;});}function Re(_0x46b370,_0x2934cd,_0x14f0c4=!0x1){const _0x3b4270=_0x3c7b6e;return{'indentEnd':{'v':0x14},'indentStart':{'v':0x14},'keepLines':_0x184149['TRUE'],'keepNext':_0x2934cd?_0x184149['FALSE']:_0x184149[_0x3b4270(0x10a)],'widowControl':_0x184149[_0x3b4270(0x10a)],..._0x46b370&&_0x14f0c4?{'spaceAbove':{'v':0x8}}:{},'textStyle':{'ff':Ee,'fs':0xc}};}function ze(_0x38c756,_0x37b843,_0x486ee3,_0xef11=!0x1){const _0x33f627=_0x3c7b6e;let _0x354a5b=(_0x38c756[_0x33f627(0x85)]??[])[_0x33f627(0xea)](_0x1159bd=>_0x1159bd['startIndex']>_0x37b843&&_0x1159bd['startIndex']<_0x486ee3);_0x354a5b[_0x33f627(0xaa)]((_0x1a9bcb,_0x3bc9fb)=>{const _0x24ad56=_0x33f627;_0x1a9bcb[_0x24ad56(0xdb)]={..._0x1a9bcb[_0x24ad56(0xdb)]??{},...Re(_0x3bc9fb===0x0,_0x3bc9fb===_0x354a5b[_0x24ad56(0x7b)]-0x1,_0xef11)};});}function Be(_0x170a33){const _0x327e4a=_0x3c7b6e;var _0x1aad8e,_0xc3e226;let _0x43050b={..._0x170a33??{}};return delete _0x43050b[_0x327e4a(0x110)],delete _0x43050b[_0x327e4a(0xc4)],delete _0x43050b[_0x327e4a(0xcd)],delete _0x43050b[_0x327e4a(0xb9)],delete _0x43050b[_0x327e4a(0x7e)],delete _0x43050b[_0x327e4a(0xda)],delete _0x43050b[_0x327e4a(0xf2)],((_0x1aad8e=_0x43050b[_0x327e4a(0xd1)])==null?void 0x0:_0x1aad8e['ff'])===Ee&&((_0xc3e226=_0x43050b[_0x327e4a(0xd1)])==null?void 0x0:_0xc3e226['fs'])===0xc&&delete _0x43050b[_0x327e4a(0xd1)],_0x43050b;}function Ve(_0x5f9743,_0x450123){const _0x3b5363=_0x3c7b6e;let _0x5896cd=M(_0x450123);return(_0x5f9743['paragraphs']??[])['filter'](_0x1ab7fe=>_0x1ab7fe[_0x3b5363(0xe1)]>_0x450123[_0x3b5363(0xe1)]&&_0x1ab7fe['startIndex']<_0x5896cd);}function He(_0x364c41,_0x6d8d16){const _0xc6dc87=_0x3c7b6e;var _0x86406;let _0x130564=M(_0x6d8d16);return Ve(_0x364c41,_0x6d8d16)[_0xc6dc87(0xaa)](_0x1bef4e=>{const _0x39d953=_0xc6dc87;_0x1bef4e[_0x39d953(0xdb)]=Be(_0x1bef4e[_0x39d953(0xdb)]);}),F(_0x364c41,_0x130564,_0x130564+0x1),F(_0x364c41,_0x6d8d16[_0xc6dc87(0xe1)],_0x6d8d16[_0xc6dc87(0xe1)]+0x1),_0x364c41['blockRanges']=(_0x86406=_0x364c41[_0xc6dc87(0xf5)])==null?void 0x0:_0x86406[_0xc6dc87(0xea)](_0x2fc29e=>_0x2fc29e[_0xc6dc87(0xeb)]!==_0x6d8d16[_0xc6dc87(0xeb)]),_0x6d8d16[_0xc6dc87(0xe1)];}function O(_0x1945c7){const _0x366efc=_0x3c7b6e;return{..._0x1945c7,'body':_0x1945c7[_0x366efc(0x92)]?Ue(_0x1945c7[_0x366efc(0x92)]):_0x1945c7[_0x366efc(0x92)]};}function Ue(_0x402305){const _0x4b96b3=_0x3c7b6e;var _0x5f2673,_0x37b71f,_0x35d50b,_0x3349f2,_0x1d1616,_0x28fed1,_0x17b260,_0xa8a457,_0xb0fbc7;return{..._0x402305,'paragraphs':(_0x5f2673=_0x402305['paragraphs'])==null?void 0x0:_0x5f2673[_0x4b96b3(0xcc)](_0x46398e=>({..._0x46398e,'bullet':k(_0x46398e['bullet']),'paragraphStyle':k(_0x46398e['paragraphStyle'])})),'sectionBreaks':(_0x37b71f=_0x402305[_0x4b96b3(0x81)])==null?void 0x0:_0x37b71f[_0x4b96b3(0xcc)](_0x54aa6a=>({..._0x54aa6a})),'textRuns':(_0x35d50b=_0x402305['textRuns'])==null?void 0x0:_0x35d50b['map'](_0x3a8d41=>({..._0x3a8d41})),'tables':(_0x3349f2=_0x402305[_0x4b96b3(0xf7)])==null?void 0x0:_0x3349f2[_0x4b96b3(0xcc)](_0x2af65=>({..._0x2af65})),'columnGroups':(_0x1d1616=_0x402305[_0x4b96b3(0xb0)])==null?void 0x0:_0x1d1616[_0x4b96b3(0xcc)](_0x2194bf=>{const _0x653f3f=_0x4b96b3;var _0x1d67fe;return{..._0x2194bf,'columns':(_0x1d67fe=_0x2194bf[_0x653f3f(0x77)])==null?void 0x0:_0x1d67fe[_0x653f3f(0xcc)](_0x498b24=>k(_0x498b24))};}),'blockRanges':(_0x28fed1=_0x402305['blockRanges'])==null?void 0x0:_0x28fed1['map'](_0x462641=>({..._0x462641})),'customRanges':(_0x17b260=_0x402305[_0x4b96b3(0x100)])==null?void 0x0:_0x17b260['map'](_0x527fbc=>({..._0x527fbc})),'customDecorations':(_0xa8a457=_0x402305[_0x4b96b3(0xa0)])==null?void 0x0:_0xa8a457[_0x4b96b3(0xcc)](_0x4bd677=>({..._0x4bd677})),'customBlocks':(_0xb0fbc7=_0x402305[_0x4b96b3(0x88)])==null?void 0x0:_0xb0fbc7[_0x4b96b3(0xcc)](_0x34e4c4=>({..._0x34e4c4}))};}function k(_0x5daa31){const _0x3b7a55=_0x3c7b6e;return Array[_0x3b7a55(0x119)](_0x5daa31)?_0x5daa31['map'](_0x3f4fe0=>k(_0x3f4fe0)):!_0x5daa31||typeof _0x5daa31!=_0x3b7a55(0xa9)?_0x5daa31:Object[_0x3b7a55(0xa8)](Object[_0x3b7a55(0x73)](_0x5daa31)['map'](([_0x384be0,_0x4a11fa])=>[_0x384be0,k(_0x4a11fa)]));}function A(_0x508fb6){const _0x4449f2=_0x3c7b6e;if(!_0x508fb6[_0x4449f2(0x92)])throw Error(_0x4449f2(0x94));return _0x508fb6['body'];}function We(_0x33756b,_0x5a4028,_0xa938f9,_0xbc7f12=_0x3c7b6e(0x95)){const _0x123960=_0x3c7b6e;if(_0x5a4028==null||_0xa938f9==null){let _0x5574b2=Ke(_0x33756b);return{'startOffset':_0x5574b2,'endOffset':_0x5574b2};}let _0x77b9aa=Math[_0x123960(0xa1)](_0x5a4028,_0xa938f9),_0x17eb2a=Math[_0x123960(0xbb)](_0x5a4028,_0xa938f9),_0x2e8934=Ze(_0x33756b,_0x77b9aa,_0x17eb2a);return _0x77b9aa===_0x17eb2a?_0xbc7f12==='insert-new'?{'startOffset':_0x77b9aa,'endOffset':_0x17eb2a}:Ge(_0x33756b,_0x77b9aa,_0x2e8934):Je(_0x33756b,_0x77b9aa,_0x17eb2a,_0x2e8934);}function Ge(_0x478c71,_0x446a0e,_0x7641f7){const _0x46bc5e=_0x3c7b6e;let _0x18d37c=Ye(_0x478c71,_0x446a0e);if(_0x18d37c){let _0x325228=j(_0x478c71,_0x18d37c,_0x7641f7);if(_0x325228<_0x18d37c[_0x46bc5e(0xe1)])return{'startOffset':_0x325228,'endOffset':_0x7641f7?Math[_0x46bc5e(0xa1)](_0x18d37c[_0x46bc5e(0xe1)]+0x1,_0x7641f7['endOffset']):_0x18d37c[_0x46bc5e(0xe1)]+0x1};}let _0x15d9c0=_0x446a0e===0x0&&_0x478c71[_0x46bc5e(0xd9)][0x0]===_0x1d5afe['PARAGRAPH']?0x1:_0x446a0e;return{'startOffset':_0x15d9c0,'endOffset':_0x15d9c0};}function Ke(_0x36b4c6){const _0x1c3619=_0x3c7b6e;return _0x36b4c6['dataStream'][_0x1c3619(0x96)](_0x1d5afe['SECTION_BREAK'])?Math['max'](0x0,_0x36b4c6[_0x1c3619(0xd9)][_0x1c3619(0x7b)]-0x1):_0x36b4c6[_0x1c3619(0xd9)][_0x1c3619(0x7b)];}function qe(_0x30c1ec,_0x52f984,_0x149326){const _0x5ce732=_0x3c7b6e;var _0x181581;let _0x103557=Math[_0x5ce732(0xa1)](_0x52f984,_0x149326),_0x6124c7=Math[_0x5ce732(0xbb)](_0x52f984,_0x149326);return!!((_0x181581=_0x30c1ec[_0x5ce732(0xf7)])!=null&&_0x181581[_0x5ce732(0x91)](_0x35d0b4=>_0x103557>_0x35d0b4['startIndex']&&_0x103557<_0x35d0b4[_0x5ce732(0xac)]||_0x6124c7>_0x35d0b4[_0x5ce732(0xe1)]&&_0x6124c7<_0x35d0b4[_0x5ce732(0xac)]||_0x103557<=_0x35d0b4[_0x5ce732(0xe1)]&&_0x6124c7>=_0x35d0b4[_0x5ce732(0xac)]));}function Je(_0x3f04b6,_0x39f8ec,_0x3f2c4e,_0x1520e1){const _0xa97e76=_0x3c7b6e;let _0x1bd8b8=[..._0x3f04b6[_0xa97e76(0x85)]??[]][_0xa97e76(0xb2)]((_0x4f0a77,_0x54d0d6)=>_0x4f0a77[_0xa97e76(0xe1)]-_0x54d0d6[_0xa97e76(0xe1)]),_0x3b827c=_0x3fa0c0(_0x3f04b6),_0x99a10e=_0x1bd8b8[_0xa97e76(0xba)](_0x2d34ff=>j(_0x3f04b6,_0x2d34ff,_0x1520e1,_0x3b827c)<=_0x39f8ec&&_0x39f8ec<=_0x2d34ff[_0xa97e76(0xe1)]),_0xf1724=_0x1bd8b8[_0xa97e76(0xba)](_0x596954=>_0x596954['startIndex']>=_0x3f2c4e-0x1)??_0x1bd8b8[_0x1bd8b8[_0xa97e76(0x7b)]-0x1];return{'startOffset':_0x99a10e?j(_0x3f04b6,_0x99a10e,_0x1520e1,_0x3b827c):_0x39f8ec,'endOffset':_0xf1724?Xe(_0xf1724,_0x1520e1):_0x3f2c4e};}function Ye(_0x4a2736,_0x2d072a){const _0x46b8c5=_0x3c7b6e;let _0x1d1267=[..._0x4a2736['paragraphs']??[]][_0x46b8c5(0xb2)]((_0xa8e2e8,_0x3f3277)=>_0xa8e2e8[_0x46b8c5(0xe1)]-_0x3f3277[_0x46b8c5(0xe1)]),_0x452dc4=_0x3fa0c0(_0x4a2736);return _0x1d1267['find'](_0x2596bc=>(_0x452dc4[_0x46b8c5(0xb8)](_0x2596bc['startIndex'])??0x0)<=_0x2d072a&&_0x2d072a<=_0x2596bc[_0x46b8c5(0xe1)]);}function j(_0x106479,_0x3804a8,_0x32e566,_0x436f30){const _0x321bd3=_0x3c7b6e;let _0xdb6c15=(_0x436f30==null?void 0x0:_0x436f30[_0x321bd3(0xb8)](_0x3804a8[_0x321bd3(0xe1)]))??_0xb008c0(_0x106479,_0x3804a8);return _0x32e566?Math[_0x321bd3(0xbb)](_0xdb6c15,_0x32e566['startOffset']):_0xdb6c15;}function Xe(_0x8d24f8,_0x13a2f0){const _0x1d9339=_0x3c7b6e;let _0x248abd=_0x8d24f8[_0x1d9339(0xe1)]+0x1;return _0x13a2f0?Math['min'](_0x248abd,_0x13a2f0[_0x1d9339(0x103)]):_0x248abd;}function Ze(_0x19fd4e,_0x1cf219,_0x1357e1){const _0x1a344d=_0x3c7b6e;let _0x4600eb=Qe(_0x19fd4e,_0x1cf219),_0x5d4ae4=Qe(_0x19fd4e,_0x1cf219===_0x1357e1?_0x1357e1:Math[_0x1a344d(0xbb)](_0x1cf219,_0x1357e1-0x1));if(!(!_0x4600eb&&!_0x5d4ae4)){if(!_0x4600eb||!_0x5d4ae4||_0x4600eb[_0x1a344d(0x102)]!==_0x5d4ae4[_0x1a344d(0x102)]||_0x4600eb[_0x1a344d(0xf8)]!==_0x5d4ae4[_0x1a344d(0xf8)])throw new E();return _0x4600eb;}}function Qe(_0x4b4c6c,_0x5eeb7d){const _0x24650c=_0x3c7b6e;let _0x8e55a=_0x4b4c6c[_0x24650c(0xd9)],_0x35da85=-0x1;for(let _0xb18b6f=Math[_0x24650c(0xa1)](_0x5eeb7d,_0x8e55a[_0x24650c(0x7b)]-0x1);_0xb18b6f>=0x0;_0xb18b6f--){let _0x4c92df=_0x8e55a[_0xb18b6f];if(_0x4c92df===_0x1d5afe['TABLE_CELL_END'])return;if(_0x4c92df===_0x1d5afe[_0x24650c(0x7a)]){_0x35da85=_0xb18b6f;break;}}if(_0x35da85<0x0)return;let _0x11d7d2=_0x8e55a[_0x24650c(0x97)](_0x1d5afe[_0x24650c(0xbc)],_0x35da85+0x1);if(!(_0x11d7d2<0x0||_0x5eeb7d<_0x35da85+0x1||_0x5eeb7d>_0x11d7d2-0x1))return{'startOffset':_0x35da85+0x1,'endOffset':Math[_0x24650c(0xbb)](_0x35da85+0x1,_0x11d7d2-0x1),'startTokenOffset':_0x35da85,'endTokenOffset':_0x11d7d2};}function _0x558e(_0x2dcb39,_0x478625){_0x2dcb39=_0x2dcb39-0x73;const _0x597083=_0x5970();let _0x558e2e=_0x597083[_0x2dcb39];return _0x558e2e;}function M(_0x49b234){const _0x1afbc0=_0x3c7b6e;return _0x42484b(_0x49b234)[_0x1afbc0(0x103)]-0x1;}function $e(_0x588585,_0x4bda5e,_0x46fd64,_0x1bf2b1){const _0x309bec=_0x3c7b6e;let _0x26567e=M(_0x4bda5e),_0x88f566=(_0x588585[_0x309bec(0x85)]??[])['find'](_0x5da80d=>_0x5da80d[_0x309bec(0xe1)]===_0x26567e+0x1);if(!_0x88f566||_0x1bf2b1!=null&&_0x88f566[_0x309bec(0xe1)]!==_0x1bf2b1||_0x46fd64!=null&&(_0x46fd64<_0x26567e||_0x46fd64>_0x88f566[_0x309bec(0xe1)]+0x1)||_0x588585['dataStream'][_0x88f566['startIndex']]!==_0x1d5afe[_0x309bec(0x9d)])return null;let _0x31d83e=_0xb008c0(_0x588585,_0x88f566),_0xbebde0=_0x588585[_0x309bec(0xd9)][_0x309bec(0x9f)](_0x31d83e,_0x88f566[_0x309bec(0xe1)]);return Array[_0x309bec(0x76)](_0xbebde0)[_0x309bec(0xca)](_0x4e39bc=>_0x4e39bc===_0x1d5afe[_0x309bec(0xec)])?{'paragraph':_0x88f566,'endTokenOffset':_0x26567e}:null;}function N(_0x3e194f,_0x4183d3){const _0x48098c=_0x3c7b6e;var _0x49fed7;let _0x38a40d=M(_0x4183d3),_0x245c84=_0x3e194f[_0x48098c(0xd9)][_0x38a40d+0x1];(_0x245c84===_0x1d5afe['SECTION_BREAK']||_0x245c84===void 0x0)&&P(_0x3e194f,_0x38a40d+0x1,_0x1d5afe[_0x48098c(0x9d)],{'paragraphs':[{'startIndex':0x0,'paragraphId':_0xc658af(new Set((_0x49fed7=_0x3e194f[_0x48098c(0x85)])==null?void 0x0:_0x49fed7[_0x48098c(0xcc)](_0x3ce260=>_0x3ce260[_0x48098c(0xfa)])))}]});}function P(_0x2c8480,_0x4cef2b,_0x505ba4,_0x1543f2={}){const _0x1bf047=_0x3c7b6e;var _0x1b27bf,_0x4c52c8;_0x505ba4&&(_0x2c8480[_0x1bf047(0xd9)]=''+_0x2c8480[_0x1bf047(0xd9)]['slice'](0x0,_0x4cef2b)+_0x505ba4+_0x2c8480[_0x1bf047(0xd9)][_0x1bf047(0x9f)](_0x4cef2b),et(_0x2c8480,_0x4cef2b,_0x505ba4['length']),(_0x1b27bf=_0x1543f2[_0x1bf047(0x85)])!=null&&_0x1b27bf[_0x1bf047(0x7b)]&&(_0x2c8480[_0x1bf047(0x85)]=[..._0x2c8480[_0x1bf047(0x85)]??[],..._0x1543f2['paragraphs'][_0x1bf047(0xcc)](_0x137f3f=>({..._0x137f3f,'startIndex':_0x137f3f[_0x1bf047(0xe1)]+_0x4cef2b}))]['sort']((_0x534f2a,_0x33abb5)=>_0x534f2a[_0x1bf047(0xe1)]-_0x33abb5['startIndex'])),(_0x4c52c8=_0x1543f2['blockRanges'])!=null&&_0x4c52c8[_0x1bf047(0x7b)]&&(_0x2c8480[_0x1bf047(0xf5)]=[..._0x2c8480['blockRanges']??[],..._0x1543f2[_0x1bf047(0xf5)]['map'](_0x154b23=>({..._0x154b23,'startIndex':_0x154b23['startIndex']+_0x4cef2b,'endIndex':_0x154b23[_0x1bf047(0xac)]+_0x4cef2b}))][_0x1bf047(0xb2)]((_0x218c39,_0x24368f)=>_0x218c39[_0x1bf047(0xe1)]-_0x24368f[_0x1bf047(0xe1)])));}function F(_0x57efba,_0x49f451,_0x2c1a6d){const _0x52292a=_0x3c7b6e;let _0x323785=_0x2c1a6d-_0x49f451;_0x57efba[_0x52292a(0xd9)]=''+_0x57efba[_0x52292a(0xd9)][_0x52292a(0x9f)](0x0,_0x49f451)+_0x57efba[_0x52292a(0xd9)][_0x52292a(0x9f)](_0x2c1a6d),tt(_0x57efba,_0x49f451,_0x323785);}function et(_0x389b70,_0x35e266,_0x629198){const _0x19f021=_0x3c7b6e;_0x389b70[_0x19f021(0x85)]=I(_0x389b70[_0x19f021(0x85)],_0x35e266,_0x629198),_0x389b70[_0x19f021(0x81)]=I(_0x389b70['sectionBreaks'],_0x35e266,_0x629198),_0x389b70['customBlocks']=I(_0x389b70[_0x19f021(0x88)],_0x35e266,_0x629198),_0x389b70[_0x19f021(0xbf)]=nt(_0x389b70[_0x19f021(0xbf)],_0x35e266,_0x629198),_0x389b70[_0x19f021(0xf7)]=rt(_0x389b70['tables'],_0x35e266,_0x629198),_0x389b70[_0x19f021(0xb0)]=R(_0x389b70['columnGroups'],_0x35e266,_0x629198),_0x389b70['customRanges']=R(_0x389b70[_0x19f021(0x100)],_0x35e266,_0x629198),_0x389b70[_0x19f021(0xa0)]=R(_0x389b70[_0x19f021(0xa0)],_0x35e266,_0x629198),_0x389b70[_0x19f021(0xf5)]=R(_0x389b70['blockRanges'],_0x35e266,_0x629198);}function tt(_0x8372e6,_0x41a78d,_0x27806d){const _0x51a846=_0x3c7b6e;var _0xd26463,_0x362c73;_0x8372e6['paragraphs']=L(_0x8372e6[_0x51a846(0x85)],_0x41a78d,_0x27806d),_0x8372e6[_0x51a846(0x81)]=L(_0x8372e6[_0x51a846(0x81)],_0x41a78d,_0x27806d),_0x8372e6['customBlocks']=L(_0x8372e6[_0x51a846(0x88)],_0x41a78d,_0x27806d),_0x8372e6[_0x51a846(0xbf)]=(_0xd26463=it((_0x362c73=_0x8372e6[_0x51a846(0xbf)])==null?void 0x0:_0x362c73[_0x51a846(0xcc)](_0x1f500e=>({..._0x1f500e,'startIndex':_0x1f500e['st'],'endIndex':_0x1f500e['ed']})),_0x41a78d,_0x27806d))==null?void 0x0:_0xd26463[_0x51a846(0xcc)](_0xc9e4e4=>{let {startIndex:_0xfa123,endIndex:_0x34d3b7,..._0x26a6e4}=_0xc9e4e4;return{..._0x26a6e4,'st':_0xfa123,'ed':_0x34d3b7};}),_0x8372e6[_0x51a846(0xf7)]=it(_0x8372e6['tables'],_0x41a78d,_0x27806d),_0x8372e6[_0x51a846(0xb0)]=z(_0x8372e6['columnGroups'],_0x41a78d,_0x27806d),_0x8372e6['customRanges']=z(_0x8372e6[_0x51a846(0x100)],_0x41a78d,_0x27806d),_0x8372e6[_0x51a846(0xa0)]=z(_0x8372e6[_0x51a846(0xa0)],_0x41a78d,_0x27806d),_0x8372e6[_0x51a846(0xf5)]=z(_0x8372e6[_0x51a846(0xf5)],_0x41a78d,_0x27806d);}function I(_0x1c0be1,_0x529c5b,_0x4e4757){const _0x106b26=_0x3c7b6e;return _0x1c0be1==null?void 0x0:_0x1c0be1[_0x106b26(0xcc)](_0x4aa057=>_0x4aa057[_0x106b26(0xe1)]>=_0x529c5b?{..._0x4aa057,'startIndex':_0x4aa057[_0x106b26(0xe1)]+_0x4e4757}:_0x4aa057);}function L(_0x74cdac,_0x3e6215,_0x56bf85){const _0x1b3a45=_0x3c7b6e;let _0x14b8dd=_0x3e6215+_0x56bf85;return _0x74cdac==null?void 0x0:_0x74cdac[_0x1b3a45(0xcc)](_0x3d7028=>_0x3d7028[_0x1b3a45(0xe1)]>=_0x3e6215&&_0x3d7028['startIndex']<_0x14b8dd?null:_0x3d7028[_0x1b3a45(0xe1)]>=_0x14b8dd?{..._0x3d7028,'startIndex':_0x3d7028['startIndex']-_0x56bf85}:_0x3d7028)[_0x1b3a45(0xea)](_0x504626=>_0x504626!=null);}function nt(_0x1c7a37,_0x358443,_0x24c345){const _0x5756f4=_0x3c7b6e;return _0x1c7a37==null?void 0x0:_0x1c7a37[_0x5756f4(0xcc)](_0x27060c=>_0x27060c['st']>=_0x358443?{..._0x27060c,'st':_0x27060c['st']+_0x24c345,'ed':_0x27060c['ed']+_0x24c345}:_0x27060c['ed']>_0x358443?{..._0x27060c,'ed':_0x27060c['ed']+_0x24c345}:_0x27060c);}function R(_0x2edd68,_0x24c494,_0x8eabae){const _0x226f0=_0x3c7b6e;return _0x2edd68==null?void 0x0:_0x2edd68[_0x226f0(0xcc)](_0x5898af=>_0x18b46b(_0x5898af,_0x24c494,_0x8eabae));}function rt(_0x15c829,_0x5c9d43,_0x9a2674){const _0x1a4b91=_0x3c7b6e;return _0x15c829==null?void 0x0:_0x15c829[_0x1a4b91(0xcc)](_0x18a2c2=>_0x4311be(_0x18a2c2,_0x5c9d43,_0x9a2674));}function z(_0x4f9b84,_0x366469,_0x531eee){const _0x34a9c4=_0x3c7b6e;return _0x4f9b84==null?void 0x0:_0x4f9b84[_0x34a9c4(0xcc)](_0x4c6963=>_0x555381(_0x4c6963,_0x366469,_0x531eee))['filter'](_0x4bb1f3=>_0x4bb1f3!=null);}function it(_0x4d3bae,_0x240e07,_0x5015f6){const _0x465353=_0x3c7b6e;return _0x4d3bae==null?void 0x0:_0x4d3bae['map'](_0x3b3449=>_0x1764e6(_0x3b3449,_0x240e07,_0x5015f6))[_0x465353(0xea)](_0x197e18=>_0x197e18!=null);}const at={'id':_0x3c7b6e(0x10b),'type':_0x40c7ba[_0x3c7b6e(0x82)],'handler':_0x133d5e=>{const _0x9678af=_0x3c7b6e;var _0x48ed66;if(_0x4f2a1b(G(_0x133d5e)))return!0x1;let _0x50c7e6=_0x579c32(_0x133d5e);if(_0x50c7e6)return _0x133d5e[_0x9678af(0xb8)](_0x530cfb)[_0x9678af(0xe7)](B['id'],{'startOffset':_0x50c7e6[_0x9678af(0xfd)],'endOffset':_0x50c7e6[_0x9678af(0x103)],'insertionMode':_0x9678af(0xdc),'unitId':_0x50c7e6['unitId']});let _0x4e81b2=ft(_0x133d5e);if(!_0x4e81b2)return!0x1;let _0x257874=(_0x48ed66=_0x133d5e[_0x9678af(0xb8)](_0x23502f)[_0x9678af(0x107)](_0x33d288[_0x9678af(0xa4)]))==null?void 0x0:_0x48ed66['getBody'](),_0xa17ee9=_0x257874?_0x411e27(_0x257874,_0x4e81b2):_0x4e81b2[_0x9678af(0xe1)]+0x1;return _0x133d5e[_0x9678af(0xb8)](_0x530cfb)[_0x9678af(0xe7)](B['id'],{'startOffset':_0xa17ee9,'endOffset':_0xa17ee9});}},ot={'id':_0x3c7b6e(0xb5),'type':_0x40c7ba[_0x3c7b6e(0x82)],'handler':()=>!0x0},B={'id':_0x3c7b6e(0x93),'type':_0x40c7ba[_0x3c7b6e(0x82)],'handler':(_0xbb4211,_0x262cc6)=>{const _0x2e26f9=_0x3c7b6e;let _0x4d844f=W(_0xbb4211,_0x262cc6==null?void 0x0:_0x262cc6['unitId']);if(!_0x4d844f)return!0x1;let _0x144ea3=G(_0xbb4211);if(_0x4f2a1b(_0x144ea3))return!0x1;let _0x295026=_0x4d844f['model'][_0x2e26f9(0xab)](_0x4d844f[_0x2e26f9(0x101)]),_0x4f2169=lt(_0x262cc6,_0x144ea3),_0x2e2eb4=ut(_0x4d844f['previousDocumentData'],_0x4f2169);if(_0x2e2eb4){if(_0x2e2eb4['blockType']!==_0xc66df5[_0x2e26f9(0xd3)])return!0x1;let _0x553fec=D({'blockId':_0x2e2eb4[_0x2e26f9(0xeb)],'documentData':_0x4d844f[_0x2e26f9(0x8d)],'metadata':_0x295026});if(!_0x553fec)return!0x1;let _0x4bcae9=Y(_0x4d844f[_0x2e26f9(0xce)],_0x4d844f[_0x2e26f9(0xb3)],_0x4d844f['unitId'],_0x4d844f[_0x2e26f9(0x8d)],_0x553fec['nextDocumentData'],B['id'],_0x553fec[_0x2e26f9(0x9c)]);return _0x4bcae9&&_0x553fec[_0x2e26f9(0xe2)]&&_0x4d844f[_0x2e26f9(0x104)][_0x2e26f9(0x83)](_0x4d844f[_0x2e26f9(0x101)],_0x553fec['nextMetadata']),_0x4bcae9;}let _0x2811c0=(_0x262cc6==null?void 0x0:_0x262cc6[_0x2e26f9(0xeb)])??_0x30261f(0x6),_0x4f9855;try{_0x4f9855=De({'blockId':_0x2811c0,'config':_0x262cc6==null?void 0x0:_0x262cc6[_0x2e26f9(0xf0)],'documentData':_0x4d844f[_0x2e26f9(0x8d)],'endOffset':_0x4f2169==null?void 0x0:_0x4f2169[_0x2e26f9(0x103)],'insertionMode':_0x262cc6==null?void 0x0:_0x262cc6[_0x2e26f9(0xa2)],'metadata':_0x295026,'startOffset':_0x4f2169==null?void 0x0:_0x4f2169[_0x2e26f9(0xfd)]});}catch(_0x2edb0e){if(_0x2edb0e instanceof E)return!0x1;throw _0x2edb0e;}let _0x176e09=Y(_0x4d844f[_0x2e26f9(0xce)],_0x4d844f['selectionManager'],_0x4d844f['unitId'],_0x4d844f[_0x2e26f9(0x8d)],_0x4f9855['nextDocumentData'],B['id'],_0x4f9855['cursorOffset']);return _0x176e09&&_0x4f9855['nextMetadata']&&_0x4d844f[_0x2e26f9(0x104)][_0x2e26f9(0x83)](_0x4d844f['unitId'],_0x4f9855['nextMetadata']),_0x176e09;}},st={'id':_0x3c7b6e(0x86),'type':_0x40c7ba['COMMAND'],'handler':(_0x2f1e4c,_0x27352a)=>{const _0xfa51b9=_0x3c7b6e;if(!_0x27352a)return!0x1;let _0x341cb1=W(_0x2f1e4c,_0x27352a[_0xfa51b9(0x101)]);if(!_0x341cb1)return!0x1;let _0x4b7dae=je({'blockId':_0x27352a['blockId'],'config':_0x27352a[_0xfa51b9(0xf0)],'documentData':_0x341cb1['previousDocumentData'],'metadata':_0x341cb1['model'][_0xfa51b9(0xab)](_0x341cb1[_0xfa51b9(0x101)])});return _0x4b7dae[_0xfa51b9(0xe2)]&&_0x341cb1['model'][_0xfa51b9(0x83)](_0x341cb1[_0xfa51b9(0x101)],_0x4b7dae[_0xfa51b9(0xe2)]),!0x0;}},ct={'id':_0x3c7b6e(0xd8),'type':_0x40c7ba[_0x3c7b6e(0x82)],'handler':(_0x16ceaf,_0x24a252)=>V['handler'](_0x16ceaf,_0x24a252)},V={'id':_0x3c7b6e(0xd4),'type':_0x40c7ba['COMMAND'],'handler':(_0x25e510,_0x24038e)=>{const _0x1d04b0=_0x3c7b6e;if(!_0x24038e)return!0x1;let _0x2a7bf8=W(_0x25e510,_0x24038e==null?void 0x0:_0x24038e[_0x1d04b0(0x101)]);if(!_0x2a7bf8)return!0x1;let _0x4c69d4=D({'blockId':_0x24038e[_0x1d04b0(0xeb)],'documentData':_0x2a7bf8[_0x1d04b0(0x8d)],'metadata':_0x2a7bf8[_0x1d04b0(0x104)][_0x1d04b0(0xab)](_0x2a7bf8[_0x1d04b0(0x101)])});if(!_0x4c69d4)return!0x1;let _0x5d5b57=Y(_0x2a7bf8[_0x1d04b0(0xce)],_0x2a7bf8['selectionManager'],_0x2a7bf8[_0x1d04b0(0x101)],_0x2a7bf8[_0x1d04b0(0x8d)],_0x4c69d4[_0x1d04b0(0xf3)],V['id'],_0x4c69d4[_0x1d04b0(0x9c)]);return _0x5d5b57&&_0x4c69d4[_0x1d04b0(0xe2)]&&_0x2a7bf8[_0x1d04b0(0x104)][_0x1d04b0(0x83)](_0x2a7bf8[_0x1d04b0(0x101)],_0x4c69d4[_0x1d04b0(0xe2)]),_0x5d5b57;}},H={'id':_0x3c7b6e(0x106),'type':_0x40c7ba[_0x3c7b6e(0x82)],'handler':(_0x389f68,_0x2e3faa)=>{const _0x28941a=_0x3c7b6e;if(!_0x2e3faa)return!0x1;let _0x509f55=W(_0x389f68,_0x2e3faa==null?void 0x0:_0x2e3faa[_0x28941a(0x101)]);if(!_0x509f55)return!0x1;let _0x146548=Me({'blockId':_0x2e3faa[_0x28941a(0xeb)],'documentData':_0x509f55[_0x28941a(0x8d)],'metadata':_0x509f55[_0x28941a(0x104)][_0x28941a(0xab)](_0x509f55['unitId'])});if(!_0x146548)return!0x1;let _0x55718e=Y(_0x509f55['commandService'],_0x509f55['selectionManager'],_0x509f55[_0x28941a(0x101)],_0x509f55[_0x28941a(0x8d)],_0x146548['nextDocumentData'],H['id'],_0x146548[_0x28941a(0x9c)]);return _0x55718e&&_0x146548['nextMetadata']&&_0x509f55[_0x28941a(0x104)][_0x28941a(0x83)](_0x509f55[_0x28941a(0x101)],_0x146548[_0x28941a(0xe2)]),_0x55718e;}},U={'id':_0x3c7b6e(0xe0),'type':_0x40c7ba[_0x3c7b6e(0x82)],'handler':(_0x5d1d7d,_0x2e5d37)=>{const _0x5c3a8e=_0x3c7b6e;var _0x323337;let _0x38c5fc=W(_0x5d1d7d,_0x2e5d37==null?void 0x0:_0x2e5d37['unitId']);if(!_0x38c5fc)return!0x1;let _0x2b04f4=(_0x2e5d37==null?void 0x0:_0x2e5d37['cursorOffset'])??((_0x323337=G(_0x5d1d7d))==null?void 0x0:_0x323337[_0x5c3a8e(0xfd)]);if(_0x2b04f4==null)return!0x1;let _0x182bbf=Ne({'cursorOffset':_0x2b04f4,'documentData':_0x38c5fc['previousDocumentData'],'paragraphStartIndex':_0x2e5d37==null?void 0x0:_0x2e5d37[_0x5c3a8e(0x80)]});return _0x182bbf?Y(_0x38c5fc[_0x5c3a8e(0xce)],_0x38c5fc['selectionManager'],_0x38c5fc[_0x5c3a8e(0x101)],_0x38c5fc[_0x5c3a8e(0x8d)],_0x182bbf[_0x5c3a8e(0xf3)],U['id'],_0x182bbf[_0x5c3a8e(0x9c)]):!0x1;}};function W(_0x578cd1,_0x592498){const _0x114efa=_0x3c7b6e;let _0x45052d=_0x578cd1[_0x114efa(0xb8)](_0x23502f),_0x267358=_0x592498?_0x45052d[_0x114efa(0x8a)](_0x592498,_0x33d288[_0x114efa(0xa4)]):_0x45052d['getCurrentUnitOfType'](_0x33d288[_0x114efa(0xa4)]);return _0x267358?{'commandService':_0x578cd1[_0x114efa(0xb8)](_0x530cfb),'model':_0x578cd1[_0x114efa(0xb8)](w),'previousDocumentData':_0x267358[_0x114efa(0xae)](),'selectionManager':_0x578cd1[_0x114efa(0xb8)](_0x576bc0),'unitId':_0x267358[_0x114efa(0xe6)]()}:null;}function G(_0x11c39f){const _0x124a73=_0x3c7b6e;var _0x168633;return(_0x168633=_0x11c39f[_0x124a73(0xb8)](_0x576bc0)['getTextRanges']())==null?void 0x0:_0x168633[0x0];}function lt(_0x226049,_0x4cd097){const _0xa5f18d=_0x3c7b6e;let _0x5073ff=(_0x226049==null?void 0x0:_0x226049[_0xa5f18d(0xfd)])??(_0x4cd097==null?void 0x0:_0x4cd097[_0xa5f18d(0xfd)]),_0xb5916f=(_0x226049==null?void 0x0:_0x226049['endOffset'])??(_0x4cd097==null?void 0x0:_0x4cd097[_0xa5f18d(0x103)]);if(_0x5073ff!=null&&_0xb5916f!=null)return{'endOffset':Math['max'](_0x5073ff,_0xb5916f),'startOffset':Math[_0xa5f18d(0xa1)](_0x5073ff,_0xb5916f)};}function ut(_0x2f2ac1,_0x4aa070){const _0x2548c9=_0x3c7b6e;var _0x5cb11b;if(!_0x4aa070)return;let _0x508532=dt(_0x4aa070);return(_0x5cb11b=_0x2f2ac1[_0x2548c9(0x92)])==null||(_0x5cb11b=_0x5cb11b[_0x2548c9(0xf5)])==null?void 0x0:_0x5cb11b[_0x2548c9(0xba)](_0x4fb311=>{const _0x53243c=_0x2548c9;let _0x1b5920=_0x42484b(_0x4fb311);return _0x4aa070['startOffset']===_0x4aa070[_0x53243c(0x103)]?_0x218fd5(_0x1b5920,_0x508532):_0xb8136f(_0x1b5920,_0x508532);});}function dt(_0x34c069){const _0x2e9b52=_0x3c7b6e;return _0x34c069[_0x2e9b52(0xfd)]===_0x34c069[_0x2e9b52(0x103)]?_0x34c069[_0x2e9b52(0xfd)]:_0x34c069[_0x2e9b52(0xfd)]+0x1;}function ft(_0x5e5d30){const _0x2dad97=_0x3c7b6e;let _0x3a3b32=G(_0x5e5d30);if(!_0x3a3b32)return null;let _0xa3ada1=_0x5e5d30[_0x2dad97(0xb8)](_0x23502f)[_0x2dad97(0x107)](_0x33d288[_0x2dad97(0xa4)]),_0x44059a=_0xa3ada1==null?void 0x0:_0xa3ada1[_0x2dad97(0x10e)]();return _0x44059a?_0x5e634c[_0x2dad97(0xdf)][_0x2dad97(0xd6)](_0x3a3b32,_0x44059a[_0x2dad97(0x85)]??[],_0x44059a['dataStream']??'')[0x0]??null:null;}function pt(_0x3ec56d,_0x3fb497){const _0x1a36b5=_0x3c7b6e;let _0x3b9be2=_0x3ec56d[_0x1a36b5(0x92)],_0x3fcac8=_0x3fb497[_0x1a36b5(0x92)],_0x5434e4=_0x4bad03(_0x3b9be2,_0x3fcac8);return[_0x5434e4&&_0x3fcac8?mt(_0x3fcac8,_0x5434e4):null,_0x5434e4?null:ht(_0x3b9be2,_0x3fcac8)][_0x1a36b5(0xea)](Boolean)[_0x1a36b5(0xaf)]((_0xde3c06,_0x1517a2)=>_0x42b9cd[_0x1a36b5(0xd0)](_0xde3c06,_0x1517a2),null);}function mt(_0x4e19cd,_0x31d23d){const _0x1a8fe2=_0x3c7b6e;let _0x2af621=new _0x196b0d();return _0x2af621[_0x1a8fe2(0xde)](_0x31d23d['start']),_0x31d23d[_0x1a8fe2(0xc6)]>0x0&&_0x2af621['insert'](_0x31d23d[_0x1a8fe2(0xc6)],_0x1eeac7(_0x4e19cd,_0x31d23d['start'],_0x31d23d[_0x1a8fe2(0xe5)]+_0x31d23d['insertLength'],!0x1)),_0x31d23d[_0x1a8fe2(0x9e)]>0x0&&_0x2af621[_0x1a8fe2(0xa6)](_0x31d23d[_0x1a8fe2(0x9e)]),_0x42b9cd[_0x1a8fe2(0xbd)]()[_0x1a8fe2(0x10d)](_0x2af621[_0x1a8fe2(0xab)](),['body']);}function ht(_0x19dbfa,_0x5c0177){const _0x272b02=_0x3c7b6e;let _0x19e6a1=[],_0x4440c9=_0x19dbfa?_t(_0x19dbfa):void 0x0,_0x15c4c8=_0x5c0177?_t(_0x5c0177):void 0x0;for(let _0x241110 of gt)K(_0x42b9cd[_0x272b02(0xbd)](),[_0x272b02(0x92),_0x241110],_0x4440c9==null?void 0x0:_0x4440c9[_0x241110],_0x15c4c8==null?void 0x0:_0x15c4c8[_0x241110],_0x19e6a1);return _0x19e6a1['reduce']((_0x348497,_0x5a0add)=>_0x42b9cd['compose'](_0x348497,_0x5a0add),null);}const gt=[_0x3c7b6e(0x85),_0x3c7b6e(0x81),_0x3c7b6e(0xf7),'columnGroups',_0x3c7b6e(0xf5),_0x3c7b6e(0x88),_0x3c7b6e(0x100),_0x3c7b6e(0xa0),'textRuns'];function _t(_0x39be50){return _0x39be50;}function K(_0x313fdc,_0x56b8e7,_0x43b44b,_0x2f6a00,_0x3588aa){const _0x1fb9b1=_0x3c7b6e;if(!J(_0x43b44b,_0x2f6a00)){if(_0x43b44b==null){_0x3588aa['push'](_0x313fdc[_0x1fb9b1(0x117)](_0x56b8e7,_0x2f6a00));return;}if(_0x2f6a00==null){_0x3588aa[_0x1fb9b1(0x115)](_0x313fdc[_0x1fb9b1(0x79)](_0x56b8e7,_0x43b44b));return;}if(Array['isArray'](_0x43b44b)&&Array['isArray'](_0x2f6a00)){vt(_0x313fdc,_0x56b8e7,_0x43b44b,_0x2f6a00,_0x3588aa);return;}if(q(_0x43b44b)&&q(_0x2f6a00)){new Set([...Object[_0x1fb9b1(0xf9)](_0x43b44b),...Object[_0x1fb9b1(0xf9)](_0x2f6a00)])['forEach'](_0x9c0b1c=>{K(_0x313fdc,[..._0x56b8e7,_0x9c0b1c],_0x43b44b[_0x9c0b1c],_0x2f6a00[_0x9c0b1c],_0x3588aa);});return;}_0x3588aa[_0x1fb9b1(0x115)](_0x313fdc[_0x1fb9b1(0xc5)](_0x56b8e7,_0x43b44b,_0x2f6a00));}}function vt(_0x400f71,_0x4a20a0,_0x1a2aac,_0x55edba,_0x1653dc){const _0x26101a=_0x3c7b6e;if(_0x1a2aac[_0x26101a(0x7b)]===_0x55edba[_0x26101a(0x7b)]){_0x1a2aac[_0x26101a(0xaa)]((_0x3d5a9c,_0x5d1858)=>K(_0x400f71,[..._0x4a20a0,_0x5d1858],_0x3d5a9c,_0x55edba[_0x5d1858],_0x1653dc));return;}let _0x81e401=0x0;for(;_0x81e401<_0x1a2aac[_0x26101a(0x7b)]&&_0x81e401<_0x55edba[_0x26101a(0x7b)]&&J(_0x1a2aac[_0x81e401],_0x55edba[_0x81e401]);)_0x81e401++;let _0x54d553=_0x1a2aac[_0x26101a(0x7b)]-0x1,_0x11276a=_0x55edba[_0x26101a(0x7b)]-0x1;for(;_0x54d553>=_0x81e401&&_0x11276a>=_0x81e401&&J(_0x1a2aac[_0x54d553],_0x55edba[_0x11276a]);)_0x54d553--,_0x11276a--;for(let _0x502655=_0x54d553;_0x502655>=_0x81e401;_0x502655--)_0x1653dc[_0x26101a(0x115)](_0x400f71[_0x26101a(0x79)]([..._0x4a20a0,_0x502655],_0x1a2aac[_0x502655]));for(let _0xefa399=_0x81e401;_0xefa399<=_0x11276a;_0xefa399++)_0x1653dc['push'](_0x400f71[_0x26101a(0x117)]([..._0x4a20a0,_0xefa399],_0x55edba[_0xefa399]));}function q(_0x475f80){const _0x86345d=_0x3c7b6e;return typeof _0x475f80==_0x86345d(0xa9)&&!!_0x475f80&&!Array['isArray'](_0x475f80);}function J(_0x18fb67,_0x364827){const _0x12e19e=_0x3c7b6e;return JSON[_0x12e19e(0x7d)](_0x18fb67)===JSON[_0x12e19e(0x7d)](_0x364827);}function Y(_0x55fcea,_0x300b66,_0x90695f,_0x152f5a,_0x3cad88,_0x2a0547,_0x21c5e3){const _0x324390=_0x3c7b6e;let _0x33869d=pt(_0x152f5a,_0x3cad88);return _0x33869d?!!_0x55fcea[_0x324390(0xe7)](_0x12d7c6['id'],{'unitId':_0x90695f,'actions':_0x33869d,'textRanges':[{'startOffset':_0x21c5e3,'endOffset':_0x21c5e3,'collapsed':!0x0}],'isEditing':!0x1,'trigger':_0x2a0547}):(_0x300b66[_0x324390(0x112)]([{'startOffset':_0x21c5e3,'endOffset':_0x21c5e3}],{'unitId':_0x90695f,'subUnitId':_0x90695f},!0x1),!0x0);}const X=_0x3c7b6e(0x109);var yt=_0x3c7b6e(0x9b),bt=_0x3c7b6e(0x118);const xt={};function Z(_0x48bdc6,_0x3f0162){return function(_0x1115ed,_0x610fad){_0x3f0162(_0x1115ed,_0x610fad,_0x48bdc6);};}function St(_0x4c63f6,_0x50d8b7,_0x580ca0,_0x50588d){const _0x1bbf81=_0x3c7b6e;var _0xb046b2=arguments[_0x1bbf81(0x7b)],_0x4751ee=_0xb046b2<0x3?_0x50d8b7:_0x50588d===null?_0x50588d=Object['getOwnPropertyDescriptor'](_0x50d8b7,_0x580ca0):_0x50588d,_0x5b031a;if(typeof Reflect==_0x1bbf81(0xa9)&&typeof Reflect['decorate']=='function')_0x4751ee=Reflect['decorate'](_0x4c63f6,_0x50d8b7,_0x580ca0,_0x50588d);else{for(var _0x31f715=_0x4c63f6[_0x1bbf81(0x7b)]-0x1;_0x31f715>=0x0;_0x31f715--)(_0x5b031a=_0x4c63f6[_0x31f715])&&(_0x4751ee=(_0xb046b2<0x3?_0x5b031a(_0x4751ee):_0xb046b2>0x3?_0x5b031a(_0x50d8b7,_0x580ca0,_0x4751ee):_0x5b031a(_0x50d8b7,_0x580ca0))||_0x4751ee);}return _0xb046b2>0x3&&_0x4751ee&&Object['defineProperty'](_0x50d8b7,_0x580ca0,_0x4751ee),_0x4751ee;}let Q=class extends _0x5ddd1d{constructor(_0x502fa8,_0x57ef35){const _0x5c155f=_0x3c7b6e;super(),this['_resourceManagerService']=_0x502fa8,this[_0x5c155f(0x105)]=_0x57ef35,this['_initResource']();}['_initResource'](){const _0x45551f=_0x3c7b6e;this[_0x45551f(0xf6)](this[_0x45551f(0xa3)]['registerPluginResource']({'pluginName':X,'businesses':[_0x33d288[_0x45551f(0xa4)]],'toJson':_0x451bac=>JSON['stringify'](this['_docsCodeModel']['serialize'](_0x451bac)),'parseJson':_0x5e6ddc=>y(JSON[_0x45551f(0x98)](_0x5e6ddc)),'onLoad':(_0x9b2a70,_0x5912fd)=>this[_0x45551f(0x105)][_0x45551f(0x83)](_0x9b2a70,_0x5912fd),'onUnLoad':_0x4429f6=>this[_0x45551f(0x105)][_0x45551f(0x7c)](_0x4429f6)}));}};Q=St([Z(0x0,_0x5b5ca8),Z(0x1,_0x3fdb21(w))],Q);let $=class extends _0x1d23e9{constructor(_0x581b1a=xt,_0xeb5bad,_0x4d5128,_0x3e4836){const _0x1cb276=_0x3c7b6e;super(),this['_config']=_0x581b1a,this[_0x1cb276(0x10c)]=_0xeb5bad,this['_commandService']=_0x4d5128,this[_0x1cb276(0x90)]=_0x3e4836;let {..._0x431413}=_0x2e149b({},xt,this[_0x1cb276(0x7f)]);this[_0x1cb276(0x90)][_0x1cb276(0x78)](_0x1cb276(0xa7),_0x431413);}[_0x3c7b6e(0x89)](){const _0x394b08=_0x3c7b6e;this[_0x394b08(0x10c)][_0x394b08(0xdd)]([w]),this['_injector'][_0x394b08(0xdd)]([Q]),this[_0x394b08(0x10c)]['get'](w),this['_injector'][_0x394b08(0xb8)](Q),[B,at,st,V,H,ct,U,ot,Te,T]['forEach'](_0x51b495=>this[_0x394b08(0xf6)](this[_0x394b08(0x84)][_0x394b08(0xc0)](_0x51b495)));}};function _0x5970(){const _0x282a9c=['_config','paragraphStartIndex','sectionBreaks','COMMAND','deserialize','_commandService','paragraphs','docs-code.command.update','toPrimitive','customBlocks','onStarting','getUnit','888411RVGdgk','defineProperty','previousDocumentData','8456861mOKiXR','docs-code.mutation.set-config','_configService','some','body','docs-code.command.insert','Document\x20body\x20is\x20required','convert-paragraph','endsWith','indexOf','parse','blockType','paragraph','@univerjs-pro/docs-code','cursorOffset','PARAGRAPH','deleteLength','slice','customDecorations','min','insertionMode','_resourceManagerService','UNIVER_DOC','16893UaNVuX','delete','docs-code.config','fromEntries','object','forEach','serialize','endIndex','Insert\x20range\x20cannot\x20overlap\x20an\x20existing\x20document\x20block','getSnapshot','reduce','columnGroups','3110cOGRhO','sort','selectionManager','prototype','docs-code.command.consume-boundary-delete','version','_resources','get','spaceBelow','find','max','TABLE_CELL_END','getInstance','BLOCK_START','textRuns','registerCommand','pluginName','symbol','docs-code.mutation.remove-config','indentStart','replaceOp','insertLength','86693mIUlXg','9833304QjyzvZ','iterator','every','clear','map','spaceAbove','commandService','set','compose','textStyle','setCodeConfig','CODE','docs-code.command.unwrap','getCodeConfig','getParagraphsInRange','default','docs-code.command.exit','dataStream','keepNext','paragraphStyle','insert-new','add','retain','range','docs-code.command.cancel-empty-paragraph','startIndex','nextMetadata','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','complete','start','getUnitId','syncExecuteCommand','next','monospace','filter','blockId','BLOCK_END','dispose','_change$','string','config','type','widowControl','nextDocumentData','documentData','blockRanges','disposeWithMe','tables','endTokenOffset','keys','paragraphId','2172020TmSAJD','metadata','startOffset','function','_setResource','customRanges','unitId','startTokenOffset','endOffset','model','_docsCodeModel','docs-code.command.remove','getCurrentUnitOfType','removeCode','DOC_CODE_PLUGIN','TRUE','docs-code.command.insert-below','_injector','editOp','getBody','direction','indentEnd','2nljvmw','replaceDocRanges','442115dLMKnz','18XxnWkO','push','Insert\x20range\x20cannot\x20cross\x20table\x20cell\x20boundaries','insertOp','1.0.0-insiders.20260808-70eefdd','isArray','entries','packageName','codes','from','columns','setConfig','removeOp','TABLE_CELL_START','length','removeUnit','stringify','keepLines'];_0x5970=function(){return _0x282a9c;};return _0x5970();}C($,_0x3c7b6e(0xc1),X),C($,_0x3c7b6e(0x74),yt),C($,_0x3c7b6e(0xb6),bt),C($,_0x3c7b6e(0xf1),_0x33d288[_0x3c7b6e(0xa4)]),$=St([_0x362164(_0x5a6240,_0x5b5832),Z(0x1,_0x3fdb21(_0x587b27)),Z(0x2,_0x530cfb),Z(0x3,_0x440bd3)],$);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 _0x578284=_0x5216;(function(_0x470c17,_0xd7c9b6){const _0x43f2ee=_0x5216,_0x3ad987=_0x470c17();while(!![]){try{const _0x194465=parseInt(_0x43f2ee(0x17c))/0x1+-parseInt(_0x43f2ee(0x117))/0x2+parseInt(_0x43f2ee(0x159))/0x3*(parseInt(_0x43f2ee(0x109))/0x4)+-parseInt(_0x43f2ee(0x112))/0x5*(-parseInt(_0x43f2ee(0x18d))/0x6)+parseInt(_0x43f2ee(0x16d))/0x7*(parseInt(_0x43f2ee(0x15a))/0x8)+parseInt(_0x43f2ee(0x195))/0x9+-parseInt(_0x43f2ee(0x146))/0xa;if(_0x194465===_0xd7c9b6)break;else _0x3ad987['push'](_0x3ad987['shift']());}catch(_0x4280fb){_0x3ad987['push'](_0x3ad987['shift']());}}}(_0x379c,0x7af79));import{BooleanNumber as _0xfb6348,BuildTextUtils as _0x436562,CommandType as _0x35ad4f,DataStreamTreeTokenType as _0x6f7a33,DependentOn as _0x3f9ced,Disposable as _0xc9b18a,DocumentBlockRangeType as _0x2b195a,ICommandService as _0x1488c2,IConfigService as _0x322276,IResourceManagerService as _0x15472f,IUniverInstanceService as _0x13b6f2,Inject as _0x8d4d91,Injector as _0x5f0624,JSONX as _0x142004,Plugin as _0x46ce77,TextX as _0xd2211,UniverInstanceType as _0xdb135d,containsInteriorInsertionOffset as _0x10793e,containsStreamIndex as _0x24ffbf,createParagraphId as _0x1d6f01,generateRandomId as _0x390162,getBlockRangeInterval as _0x3e8421,getBodySliceForTextXAction as _0x35244e,getParagraphContentStartOffset as _0x225d77,getParagraphContentStartOffsets as _0x1ccbd7,getParagraphFollowingBlockOffset as _0x35c6e9,getSingleDataStreamChange as _0x101b28,intersectsOperationalIntervals as _0x2c6d10,merge as _0x4b0430,shiftExclusiveRangeOnDelete as _0x3f3b1a,shiftExclusiveRangeOnInsert as _0x56252a,shiftInclusiveRangeOnDelete as _0x2c30bd,shiftInclusiveRangeOnInsert as _0x56f453}from'@univerjs/core';import{Subject as _0x4750dc}from'rxjs';import{DocSelectionManagerService as _0x31b1fc,RichTextEditingMutation as _0x20121c,UniverDocsPlugin as _0x48415b,getContentInsertRange as _0x4ed4ca,isHeaderFooterSelection as _0x43c1c3}from'@univerjs/docs';import{UniverLicensePlugin as _0x1a4448}from'@univerjs-pro/license';const Se={'language':_0x578284(0x106),'showLineNumbers':!0x1,'tabSize':0x4,'wrap':!0x0};function v(_0x211c2f){return{...Se,..._0x211c2f};}function y(_0x35c034){const _0x2f2534=_0x578284;let _0x3552be=(_0x35c034==null?void 0x0:_0x35c034[_0x2f2534(0x160)])??{};return{'codes':Object['fromEntries'](Object['entries'](_0x3552be)[_0x2f2534(0x151)](([_0x236c6d,_0x389d0f])=>[_0x236c6d,v(_0x389d0f)]))};}function b(_0x32f146,_0x1f99ba,_0x785b8f){const _0x449224=_0x578284;let _0x193f3a=y(_0x32f146);return _0x193f3a[_0x449224(0x160)][_0x1f99ba]=v({..._0x193f3a[_0x449224(0x160)][_0x1f99ba],..._0x785b8f}),_0x193f3a;}function x(_0x5eb124,_0x137128){let _0x2503cc=y(_0x5eb124);return delete _0x2503cc['codes'][_0x137128],_0x2503cc;}function S(_0x48af54){'@babel/helpers - typeof';const _0x376244=_0x578284;return S=typeof Symbol==_0x376244(0x128)&&typeof Symbol[_0x376244(0x13e)]==_0x376244(0x13f)?function(_0xc0cb9e){return typeof _0xc0cb9e;}:function(_0x5c9608){const _0x179169=_0x376244;return _0x5c9608&&typeof Symbol==_0x179169(0x128)&&_0x5c9608[_0x179169(0x174)]===Symbol&&_0x5c9608!==Symbol[_0x179169(0x170)]?_0x179169(0x13f):typeof _0x5c9608;},S(_0x48af54);}function Ce(_0x3c330a,_0x3ae4e7){const _0x1a27e3=_0x578284;if(S(_0x3c330a)!=_0x1a27e3(0x11a)||!_0x3c330a)return _0x3c330a;var _0x31ab3b=_0x3c330a[Symbol['toPrimitive']];if(_0x31ab3b!==void 0x0){var _0x1bf8ba=_0x31ab3b['call'](_0x3c330a,_0x3ae4e7||'default');if(S(_0x1bf8ba)!=_0x1a27e3(0x11a))return _0x1bf8ba;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x3ae4e7===_0x1a27e3(0x145)?String:Number)(_0x3c330a);}function we(_0x4cec87){const _0x4fef48=_0x578284;var _0xa0ec27=Ce(_0x4cec87,_0x4fef48(0x145));return S(_0xa0ec27)==_0x4fef48(0x13f)?_0xa0ec27:_0xa0ec27+'';}function C(_0x542584,_0x267e70,_0x55b0c5){const _0x1f4e49=_0x578284;return(_0x267e70=we(_0x267e70))in _0x542584?Object[_0x1f4e49(0x167)](_0x542584,_0x267e70,{'value':_0x55b0c5,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x542584[_0x267e70]=_0x55b0c5,_0x542584;}var w=class extends _0xc9b18a{constructor(..._0x57469f){const _0x29b113=_0x578284;super(..._0x57469f),C(this,_0x29b113(0x161),new Map()),C(this,_0x29b113(0x12a),new _0x4750dc()),C(this,_0x29b113(0x18b),this[_0x29b113(0x12a)][_0x29b113(0x13d)]());}[_0x578284(0x176)](_0x12215e,_0x2c3bcf){const _0x3b4515=_0x578284;return y(this[_0x3b4515(0x161)][_0x3b4515(0x11d)](_0x12215e))['codes'][_0x2c3bcf];}[_0x578284(0x154)](_0x38128d,_0xf77910,_0x35f0a4){const _0x140f70=_0x578284;this[_0x140f70(0x137)](_0x38128d,_0xf77910,b(this['_resources'][_0x140f70(0x11d)](_0x38128d),_0xf77910,_0x35f0a4));}[_0x578284(0x144)](_0x35ad4b,_0x1bfac9){const _0x3c5e29=_0x578284;this['_setResource'](_0x35ad4b,_0x1bfac9,x(this[_0x3c5e29(0x161)]['get'](_0x35ad4b),_0x1bfac9));}[_0x578284(0x14c)](_0x59355d){const _0x5a4e08=_0x578284;return y(this['_resources'][_0x5a4e08(0x11d)](_0x59355d));}[_0x578284(0x15d)](_0xe3eaaa,_0x469467){const _0x15a660=_0x578284;this[_0x15a660(0x161)][_0x15a660(0x111)](_0xe3eaaa,y(_0x469467)),this[_0x15a660(0x12a)][_0x15a660(0x136)]({'unitId':_0xe3eaaa});}[_0x578284(0x143)](_0x11573d){const _0x443fba=_0x578284;this[_0x443fba(0x161)][_0x443fba(0x15e)](_0x11573d),this[_0x443fba(0x12a)]['next']({'unitId':_0x11573d});}[_0x578284(0x194)](){const _0x1021fb=_0x578284;super['dispose'](),this[_0x1021fb(0x161)][_0x1021fb(0x15c)](),this[_0x1021fb(0x12a)][_0x1021fb(0x105)]();}[_0x578284(0x137)](_0x92c408,_0x364127,_0x50ee88){const _0x4b1ef9=_0x578284;this['_resources'][_0x4b1ef9(0x111)](_0x92c408,_0x50ee88),this[_0x4b1ef9(0x12a)][_0x4b1ef9(0x136)]({'unitId':_0x92c408,'blockId':_0x364127});}};const Te={'id':_0x578284(0x165),'type':_0x35ad4f[_0x578284(0x127)],'handler':(_0x944d4a,_0x3c68a0)=>!(_0x3c68a0!=null&&_0x3c68a0[_0x578284(0x16c)])||!_0x3c68a0[_0x578284(0x134)]?!0x1:(_0x944d4a[_0x578284(0x11d)](w)[_0x578284(0x154)](_0x3c68a0[_0x578284(0x16c)],_0x3c68a0[_0x578284(0x134)],_0x3c68a0['config']),!0x0)},T={'id':'docs-code.mutation.remove-config','type':_0x35ad4f[_0x578284(0x127)],'handler':(_0x481a4a,_0x4740bf)=>!(_0x4740bf!=null&&_0x4740bf[_0x578284(0x16c)])||!_0x4740bf[_0x578284(0x134)]?!0x1:(_0x481a4a[_0x578284(0x11d)](w)['removeCode'](_0x4740bf[_0x578284(0x16c)],_0x4740bf['blockId']),!0x0)},Ee=_0x578284(0x10c);var E=class extends Error{constructor(_0x5b0594=_0x578284(0x132)){super(_0x5b0594);}};function De(_0x273039){const _0x233786=_0x578284;var _0xfaadf4;let _0x39d14b=O(_0x273039['documentData']),_0x3f7134=A(_0x39d14b),_0x35550b=ke(_0x273039['startOffset'],_0x273039[_0x233786(0x17d)]),_0x93437a=_0x35550b?(_0xfaadf4=_0x3f7134[_0x233786(0x177)])==null?void 0x0:_0xfaadf4['find'](_0x48c259=>{const _0xdb0df1=_0x233786;let _0x4901dc=_0x3e8421(_0x48c259);return _0x4901dc[_0xdb0df1(0x15b)]===_0x35550b[_0xdb0df1(0x15b)]&&_0x4901dc[_0xdb0df1(0x17d)]===_0x35550b[_0xdb0df1(0x17d)];}):void 0x0,{startOffset:_0x3bee91,endOffset:_0x1df804}=_0x93437a?_0x35550b:We(_0x3f7134,_0x273039[_0x233786(0x15b)],_0x273039[_0x233786(0x17d)],_0x273039[_0x233786(0x10e)]);if(!_0x93437a&&Ae(_0x3f7134,_0x3bee91,_0x1df804))throw new E(_0x233786(0x121));let _0x5218f7=qe(_0x3f7134,_0x3bee91,_0x1df804),_0x23b2dd=(_0x93437a==null?void 0x0:_0x93437a[_0x233786(0x134)])??_0x273039[_0x233786(0x134)],_0x2e2983=b(_0x273039[_0x233786(0x113)],_0x23b2dd,{...Se,..._0x273039['config']});if(_0x93437a)return _0x93437a[_0x233786(0x142)]=_0x2b195a[_0x233786(0x101)],Oe(_0x3f7134,_0x3bee91,_0x1df804),ze(_0x3f7134,_0x3bee91,_0x1df804,_0x5218f7),N(_0x3f7134,_0x93437a),{'nextDocumentData':_0x39d14b,'nextMetadata':_0x2e2983,'cursorOffset':_0x3bee91+0x1};if(_0x3bee91===_0x1df804){var _0x43817b,_0x10e4c5;let _0x48cd54=''+_0x6f7a33['BLOCK_START']+_0x6f7a33['PARAGRAPH']+_0x6f7a33[_0x233786(0x155)];P(_0x3f7134,_0x3bee91,_0x48cd54,{'paragraphs':[{'startIndex':0x1,'paragraphId':_0x1d6f01(new Set((_0x43817b=_0x3f7134[_0x233786(0x16f)])==null?void 0x0:_0x43817b[_0x233786(0x151)](_0x2a9873=>_0x2a9873[_0x233786(0x10f)]))),'paragraphStyle':Re(!0x0,!0x0,_0x5218f7)}],'blockRanges':[{'blockId':_0x23b2dd,'blockType':_0x2b195a[_0x233786(0x101)],'startIndex':0x0,'endIndex':_0x48cd54[_0x233786(0x198)]-0x1}]});let _0x18c747=(_0x10e4c5=_0x3f7134['blockRanges'])==null?void 0x0:_0x10e4c5[_0x233786(0x125)](_0x101c01=>_0x101c01[_0x233786(0x134)]===_0x23b2dd);return _0x18c747&&N(_0x3f7134,_0x18c747),{'nextDocumentData':_0x39d14b,'nextMetadata':_0x2e2983,'cursorOffset':_0x3bee91+0x1};}P(_0x3f7134,_0x1df804,_0x6f7a33['BLOCK_END']),P(_0x3f7134,_0x3bee91,_0x6f7a33[_0x233786(0x186)]),ze(_0x3f7134,_0x3bee91,_0x1df804+0x1,_0x5218f7);let _0x5af75a={'blockId':_0x23b2dd,'blockType':_0x2b195a['CODE'],'startIndex':_0x3bee91,'endIndex':_0x1df804+0x1};return _0x3f7134[_0x233786(0x177)]=[..._0x3f7134[_0x233786(0x177)]??[],_0x5af75a][_0x233786(0x120)]((_0x1b9bbe,_0x2bac31)=>_0x1b9bbe[_0x233786(0x156)]-_0x2bac31[_0x233786(0x156)]),N(_0x3f7134,_0x5af75a),{'nextDocumentData':_0x39d14b,'nextMetadata':_0x2e2983,'cursorOffset':_0x3bee91+0x1};}function Oe(_0x5316c1,_0x1db4df,_0x518425){const _0x5bbff9=_0x578284;(_0x5316c1[_0x5bbff9(0x16f)]??[])[_0x5bbff9(0x13b)](_0x1b0f1b=>_0x1b0f1b[_0x5bbff9(0x156)]>_0x1db4df&&_0x1b0f1b[_0x5bbff9(0x156)]<_0x518425)['forEach'](_0xbe4b11=>{const _0x6dedea=_0x5bbff9;let _0x1f5498={..._0xbe4b11[_0x6dedea(0x17f)]??{}};delete _0x1f5498[_0x6dedea(0x12c)],delete _0x1f5498[_0x6dedea(0x169)],_0xbe4b11[_0x6dedea(0x17f)]=_0x1f5498;});}function ke(_0x5e9e94,_0x1b075e){return _0x5e9e94==null||_0x1b075e==null||_0x5e9e94===_0x1b075e?null:{'startOffset':Math['min'](_0x5e9e94,_0x1b075e),'endOffset':Math['max'](_0x5e9e94,_0x1b075e)};}function Ae(_0x11d3b9,_0x3273d9,_0x3a2e14){const _0x2c25ed=_0x578284;return(_0x11d3b9[_0x2c25ed(0x177)]??[])[_0x2c25ed(0x131)](_0x2da80a=>{let _0x2ebafe=_0x3e8421(_0x2da80a);return _0x3273d9===_0x3a2e14?_0x10793e(_0x2ebafe,_0x3273d9):_0x2c6d10(_0x2ebafe,{'startOffset':_0x3273d9,'endOffset':_0x3a2e14});});}function je(_0x1de190){const _0x20427c=_0x578284;return{'nextDocumentData':O(_0x1de190[_0x20427c(0x12f)]),'nextMetadata':b(_0x1de190['metadata'],_0x1de190[_0x20427c(0x134)],_0x1de190['config']),'cursorOffset':0x0};}function D(_0x6b4d0a){const _0x3be3b7=_0x578284;let _0x42d424=O(_0x6b4d0a['documentData']),_0x50fb3b=A(_0x42d424),_0x5a3e78=Fe(_0x50fb3b,_0x6b4d0a['blockId']);if(!_0x5a3e78)return null;let _0x407c75=He(_0x50fb3b,_0x5a3e78);return{'nextDocumentData':_0x42d424,'nextMetadata':x(_0x6b4d0a[_0x3be3b7(0x113)],_0x6b4d0a['blockId']),'cursorOffset':_0x407c75};}function Me(_0x28080e){const _0x1ed64=_0x578284;var _0x179871;let _0x450538=O(_0x28080e[_0x1ed64(0x12f)]),_0x384edf=A(_0x450538),_0x583ed8=Fe(_0x384edf,_0x28080e[_0x1ed64(0x134)]);if(!_0x583ed8)return null;let _0x3eb5a0=_0x3e8421(_0x583ed8);return F(_0x384edf,_0x3eb5a0[_0x1ed64(0x15b)],_0x3eb5a0[_0x1ed64(0x17d)]),_0x384edf[_0x1ed64(0x177)]=(_0x179871=_0x384edf[_0x1ed64(0x177)])==null?void 0x0:_0x179871[_0x1ed64(0x13b)](_0x1c17ce=>_0x1c17ce[_0x1ed64(0x134)]!==_0x28080e[_0x1ed64(0x134)]),{'nextDocumentData':_0x450538,'nextMetadata':x(_0x28080e[_0x1ed64(0x113)],_0x28080e[_0x1ed64(0x134)]),'cursorOffset':_0x583ed8[_0x1ed64(0x156)]};}function Ne(_0x44fa96){const _0x11b041=_0x578284;let _0x3e8b0c=O(_0x44fa96[_0x11b041(0x12f)]),_0x578e4b=A(_0x3e8b0c),_0xc16556=Le(_0x578e4b,_0x44fa96[_0x11b041(0x179)]);return _0xc16556&&Pe(_0x3e8b0c,_0x578e4b,_0xc16556,_0x44fa96[_0x11b041(0x179)],_0x44fa96[_0x11b041(0xfb)])||null;}function Pe(_0xb31f4e,_0x6080e4,_0x4dadf2,_0x87d048,_0x3448d5){const _0x5dfb6a=_0x578284;let _0x33b4a6=$e(_0x6080e4,_0x4dadf2,_0x87d048,_0x3448d5);if(!_0x33b4a6)return null;let _0x1f250a=_0x33b4a6['endTokenOffset']-0x1;return F(_0x6080e4,_0x33b4a6[_0x5dfb6a(0x152)][_0x5dfb6a(0x156)],_0x33b4a6[_0x5dfb6a(0x152)]['startIndex']+0x1),{'nextDocumentData':_0xb31f4e,'cursorOffset':_0x1f250a};}function Fe(_0x3ef73c,_0x5ea48d){const _0x47f696=_0x578284;var _0x140d5e;return _0x3ef73c==null||(_0x140d5e=_0x3ef73c[_0x47f696(0x177)])==null?void 0x0:_0x140d5e[_0x47f696(0x125)](_0x44303a=>_0x44303a[_0x47f696(0x142)]===_0x2b195a[_0x47f696(0x101)]&&_0x44303a[_0x47f696(0x134)]===_0x5ea48d);}function Ie(_0x6ff0b5){const _0x43c2b5=_0x578284;let _0x5b40a7=_0x6ff0b5[_0x43c2b5(0x12f)][_0x43c2b5(0x116)];if(!_0x5b40a7)return!0x1;let _0x3bd28=_0x6ff0b5[_0x43c2b5(0x171)]===_0x43c2b5(0x163)?_0x6ff0b5['cursorOffset']-0x1:_0x6ff0b5[_0x43c2b5(0x179)],_0x5b1343=_0x6ff0b5[_0x43c2b5(0x171)]===_0x43c2b5(0x141)?_0x6ff0b5['cursorOffset']+0x1:_0x3bd28;return(_0x5b40a7[_0x43c2b5(0x177)]??[])[_0x43c2b5(0x131)](_0x1fdb56=>_0x1fdb56[_0x43c2b5(0x142)]===_0x2b195a[_0x43c2b5(0x101)]?_0x3bd28===_0x1fdb56[_0x43c2b5(0x156)]||_0x3bd28===_0x1fdb56[_0x43c2b5(0x17b)]||_0x5b1343===_0x1fdb56[_0x43c2b5(0x156)]||_0x5b1343===_0x1fdb56[_0x43c2b5(0x17b)]:!0x1);}function Le(_0x5955b0,_0xe03955){const _0x48fb87=_0x578284;var _0x10ff73;return(_0x10ff73=_0x5955b0[_0x48fb87(0x177)])==null?void 0x0:_0x10ff73[_0x48fb87(0x125)](_0x514b61=>{const _0x591c40=_0x48fb87;let _0x29ef5e=M(_0x514b61);return _0x514b61['blockType']===_0x2b195a[_0x591c40(0x101)]&&_0x514b61[_0x591c40(0x156)]<=_0xe03955&&_0xe03955<=_0x29ef5e+0x2;});}function Re(_0x4d9642,_0x542152,_0xe3e7f=!0x1){const _0x5c3cdf=_0x578284;return{'indentEnd':{'v':0x14},'indentStart':{'v':0x14},'keepLines':_0xfb6348[_0x5c3cdf(0x188)],'keepNext':_0x542152?_0xfb6348[_0x5c3cdf(0x14e)]:_0xfb6348[_0x5c3cdf(0x188)],'widowControl':_0xfb6348['TRUE'],..._0x4d9642&&_0xe3e7f?{'spaceAbove':{'v':0x8}}:{},'textStyle':{'ff':Ee,'fs':0xc}};}function ze(_0x409d4a,_0x5f217d,_0x572c4e,_0x996624=!0x1){const _0x1f4dbf=_0x578284;let _0x518b72=(_0x409d4a[_0x1f4dbf(0x16f)]??[])[_0x1f4dbf(0x13b)](_0x59a45a=>_0x59a45a[_0x1f4dbf(0x156)]>_0x5f217d&&_0x59a45a[_0x1f4dbf(0x156)]<_0x572c4e);_0x518b72[_0x1f4dbf(0x197)]((_0x55e278,_0x504bc3)=>{const _0x2115e2=_0x1f4dbf;_0x55e278['paragraphStyle']={..._0x55e278[_0x2115e2(0x17f)]??{},...Re(_0x504bc3===0x0,_0x504bc3===_0x518b72[_0x2115e2(0x198)]-0x1,_0x996624)};});}function Be(_0x127ce4){const _0x3e2ce9=_0x578284;var _0x5ceb66,_0x3aba9c;let _0x3a1002={..._0x127ce4??{}};return delete _0x3a1002['indentEnd'],delete _0x3a1002[_0x3e2ce9(0x181)],delete _0x3a1002['spaceAbove'],delete _0x3a1002[_0x3e2ce9(0x169)],delete _0x3a1002[_0x3e2ce9(0x123)],delete _0x3a1002[_0x3e2ce9(0x147)],delete _0x3a1002[_0x3e2ce9(0x11b)],((_0x5ceb66=_0x3a1002[_0x3e2ce9(0x15f)])==null?void 0x0:_0x5ceb66['ff'])===Ee&&((_0x3aba9c=_0x3a1002[_0x3e2ce9(0x15f)])==null?void 0x0:_0x3aba9c['fs'])===0xc&&delete _0x3a1002[_0x3e2ce9(0x15f)],_0x3a1002;}function Ve(_0x342bbe,_0x2a10a3){const _0x3c407b=_0x578284;let _0x5323a0=M(_0x2a10a3);return(_0x342bbe[_0x3c407b(0x16f)]??[])[_0x3c407b(0x13b)](_0x439879=>_0x439879[_0x3c407b(0x156)]>_0x2a10a3[_0x3c407b(0x156)]&&_0x439879['startIndex']<_0x5323a0);}function He(_0x457a2f,_0x22de84){const _0x1ef97f=_0x578284;var _0x3c8825;let _0x3fa988=M(_0x22de84);return Ve(_0x457a2f,_0x22de84)[_0x1ef97f(0x197)](_0x209152=>{const _0xf0afc=_0x1ef97f;_0x209152[_0xf0afc(0x17f)]=Be(_0x209152['paragraphStyle']);}),F(_0x457a2f,_0x3fa988,_0x3fa988+0x1),F(_0x457a2f,_0x22de84[_0x1ef97f(0x156)],_0x22de84[_0x1ef97f(0x156)]+0x1),_0x457a2f[_0x1ef97f(0x177)]=(_0x3c8825=_0x457a2f[_0x1ef97f(0x177)])==null?void 0x0:_0x3c8825[_0x1ef97f(0x13b)](_0x5c8469=>_0x5c8469[_0x1ef97f(0x134)]!==_0x22de84['blockId']),_0x22de84[_0x1ef97f(0x156)];}function O(_0x6e950a){const _0x4374fa=_0x578284;return{..._0x6e950a,'body':_0x6e950a['body']?Ue(_0x6e950a['body']):_0x6e950a[_0x4374fa(0x116)]};}function Ue(_0x540785){const _0x4ce41f=_0x578284;var _0x56bfa0,_0x39ec9e,_0x251218,_0x4b1f7f,_0x5ab01b,_0xddeba9,_0x578134,_0x4836d4,_0x13676e;return{..._0x540785,'paragraphs':(_0x56bfa0=_0x540785[_0x4ce41f(0x16f)])==null?void 0x0:_0x56bfa0['map'](_0x1a0929=>({..._0x1a0929,'bullet':k(_0x1a0929[_0x4ce41f(0x10d)]),'paragraphStyle':k(_0x1a0929['paragraphStyle'])})),'sectionBreaks':(_0x39ec9e=_0x540785['sectionBreaks'])==null?void 0x0:_0x39ec9e['map'](_0x3b8a1d=>({..._0x3b8a1d})),'textRuns':(_0x251218=_0x540785[_0x4ce41f(0x173)])==null?void 0x0:_0x251218[_0x4ce41f(0x151)](_0x37542a=>({..._0x37542a})),'tables':(_0x4b1f7f=_0x540785[_0x4ce41f(0x183)])==null?void 0x0:_0x4b1f7f['map'](_0x542710=>({..._0x542710})),'columnGroups':(_0x5ab01b=_0x540785[_0x4ce41f(0x199)])==null?void 0x0:_0x5ab01b[_0x4ce41f(0x151)](_0x20b2a4=>{const _0x37a424=_0x4ce41f;var _0x4089b1;return{..._0x20b2a4,'columns':(_0x4089b1=_0x20b2a4[_0x37a424(0x110)])==null?void 0x0:_0x4089b1[_0x37a424(0x151)](_0x3d5ac8=>k(_0x3d5ac8))};}),'blockRanges':(_0xddeba9=_0x540785[_0x4ce41f(0x177)])==null?void 0x0:_0xddeba9[_0x4ce41f(0x151)](_0x58ec1b=>({..._0x58ec1b})),'customRanges':(_0x578134=_0x540785[_0x4ce41f(0x118)])==null?void 0x0:_0x578134[_0x4ce41f(0x151)](_0x1b3a9c=>({..._0x1b3a9c})),'customDecorations':(_0x4836d4=_0x540785['customDecorations'])==null?void 0x0:_0x4836d4[_0x4ce41f(0x151)](_0x547790=>({..._0x547790})),'customBlocks':(_0x13676e=_0x540785[_0x4ce41f(0x180)])==null?void 0x0:_0x13676e[_0x4ce41f(0x151)](_0x591704=>({..._0x591704}))};}function k(_0x4fbf92){const _0x520ad5=_0x578284;return Array[_0x520ad5(0x18e)](_0x4fbf92)?_0x4fbf92['map'](_0x5e1a6c=>k(_0x5e1a6c)):!_0x4fbf92||typeof _0x4fbf92!=_0x520ad5(0x11a)?_0x4fbf92:Object['fromEntries'](Object['entries'](_0x4fbf92)['map'](([_0x26ec59,_0x147432])=>[_0x26ec59,k(_0x147432)]));}function A(_0x19dbe6){const _0x5b2311=_0x578284;if(!_0x19dbe6[_0x5b2311(0x116)])throw Error(_0x5b2311(0x185));return _0x19dbe6[_0x5b2311(0x116)];}function We(_0x183ba8,_0x1a040c,_0x2df900,_0x203241='convert-paragraph'){const _0x3890c7=_0x578284;if(_0x1a040c==null||_0x2df900==null){let _0x445ecc=Ke(_0x183ba8);return{'startOffset':_0x445ecc,'endOffset':_0x445ecc};}let _0x39ff7a=Math['min'](_0x1a040c,_0x2df900),_0x366622=Math[_0x3890c7(0x168)](_0x1a040c,_0x2df900),_0x16f2f3=Ze(_0x183ba8,_0x39ff7a,_0x366622);return _0x39ff7a===_0x366622?_0x203241===_0x3890c7(0x14f)?{'startOffset':_0x39ff7a,'endOffset':_0x366622}:Ge(_0x183ba8,_0x39ff7a,_0x16f2f3):Je(_0x183ba8,_0x39ff7a,_0x366622,_0x16f2f3);}function Ge(_0x29cc63,_0x3f9421,_0xceb69b){const _0x33bd21=_0x578284;let _0x4839b6=Ye(_0x29cc63,_0x3f9421);if(_0x4839b6){let _0x1c1ee3=j(_0x29cc63,_0x4839b6,_0xceb69b);if(_0x1c1ee3<_0x4839b6['startIndex'])return{'startOffset':_0x1c1ee3,'endOffset':_0xceb69b?Math[_0x33bd21(0x13a)](_0x4839b6[_0x33bd21(0x156)]+0x1,_0xceb69b[_0x33bd21(0x17d)]):_0x4839b6[_0x33bd21(0x156)]+0x1};}let _0xfc72c2=_0x3f9421===0x0&&_0x29cc63[_0x33bd21(0x187)][0x0]===_0x6f7a33['PARAGRAPH']?0x1:_0x3f9421;return{'startOffset':_0xfc72c2,'endOffset':_0xfc72c2};}function Ke(_0x2e953d){const _0x1288a3=_0x578284;return _0x2e953d[_0x1288a3(0x187)][_0x1288a3(0x164)](_0x6f7a33['SECTION_BREAK'])?Math['max'](0x0,_0x2e953d[_0x1288a3(0x187)][_0x1288a3(0x198)]-0x1):_0x2e953d[_0x1288a3(0x187)][_0x1288a3(0x198)];}function _0x379c(){const _0x24768e=['_resources','@univerjs-pro/docs-code','left','endsWith','docs-code.mutation.set-config','docs-code.command.cancel-empty-paragraph','defineProperty','max','spaceBelow','nextMetadata','add','unitId','24633RsyueL','_config','paragraphs','prototype','direction','docs-code.command.insert','textRuns','constructor','getParagraphsInRange','getCodeConfig','blockRanges','from','cursorOffset','disposeWithMe','endIndex','588759fHeeqU','endOffset','_docsCodeModel','paragraphStyle','customBlocks','indentStart','COMMAND','tables','version','Document\x20body\x20is\x20required','BLOCK_START','dataStream','TRUE','config','retain','change$','getTextRanges','1854CWBoia','isArray','TABLE_CELL_END','getUnit','slice','insert','setConfig','dispose','8667747sPDinv','_initResource','forEach','length','columnGroups','decorate','keys','previousDocumentData','paragraphStartIndex','replaceDocRanges','deleteLength','type','_configService','_injector','CODE','start','insertOp','PARAGRAPH','complete','javascript','docs-code.command.exit','_resourceManagerService','160EIcuRj','nextDocumentData','push','monospace','bullet','insertionMode','paragraphId','columns','set','7090pyhYkc','metadata','_commandService','docs-code.command.remove','body','1607940ZLdnXy','customRanges','customDecorations','object','widowControl','docs-code.command.consume-boundary-delete','get','getInstance','reduce','sort','Insert\x20range\x20cannot\x20overlap\x20an\x20existing\x20document\x20block','removeOp','keepLines','insertLength','find','getBody','MUTATION','function','SECTION_BREAK','_change$','docs-code.command.unwrap','spaceAbove','handler','compose','documentData','endTokenOffset','some','Insert\x20range\x20cannot\x20cross\x20table\x20cell\x20boundaries','selectionManager','blockId','editOp','next','_setResource','model','getSnapshot','min','filter','startTokenOffset','asObservable','iterator','symbol','getUnitId','right','blockType','removeUnit','removeCode','string','18467140IvdRNp','keepNext','packageName','getCurrentUnitOfType','range','stringify','serialize','commandService','FALSE','insert-new','sectionBreaks','map','paragraph','TABLE_CELL_START','setCodeConfig','BLOCK_END','startIndex','registerCommand','UNIVER_DOC','74922WbNWTI','376JtbUkr','startOffset','clear','deserialize','delete','textStyle','codes'];_0x379c=function(){return _0x24768e;};return _0x379c();}function qe(_0x29b02a,_0x5088d9,_0x344724){const _0x35616a=_0x578284;var _0x36e5e9;let _0x2be8b2=Math[_0x35616a(0x13a)](_0x5088d9,_0x344724),_0x1b83d6=Math[_0x35616a(0x168)](_0x5088d9,_0x344724);return!!((_0x36e5e9=_0x29b02a['tables'])!=null&&_0x36e5e9[_0x35616a(0x131)](_0x5a4047=>_0x2be8b2>_0x5a4047[_0x35616a(0x156)]&&_0x2be8b2<_0x5a4047[_0x35616a(0x17b)]||_0x1b83d6>_0x5a4047[_0x35616a(0x156)]&&_0x1b83d6<_0x5a4047['endIndex']||_0x2be8b2<=_0x5a4047[_0x35616a(0x156)]&&_0x1b83d6>=_0x5a4047[_0x35616a(0x17b)]));}function Je(_0x4103c2,_0x2966f9,_0x17559e,_0x59bdf8){const _0x515eb4=_0x578284;let _0x2b402e=[..._0x4103c2[_0x515eb4(0x16f)]??[]][_0x515eb4(0x120)]((_0x38f02a,_0x1c4a7c)=>_0x38f02a['startIndex']-_0x1c4a7c[_0x515eb4(0x156)]),_0x2bd0a7=_0x1ccbd7(_0x4103c2),_0x553d3d=_0x2b402e[_0x515eb4(0x125)](_0x550e5e=>j(_0x4103c2,_0x550e5e,_0x59bdf8,_0x2bd0a7)<=_0x2966f9&&_0x2966f9<=_0x550e5e[_0x515eb4(0x156)]),_0x3c40db=_0x2b402e[_0x515eb4(0x125)](_0x2d6859=>_0x2d6859[_0x515eb4(0x156)]>=_0x17559e-0x1)??_0x2b402e[_0x2b402e['length']-0x1];return{'startOffset':_0x553d3d?j(_0x4103c2,_0x553d3d,_0x59bdf8,_0x2bd0a7):_0x2966f9,'endOffset':_0x3c40db?Xe(_0x3c40db,_0x59bdf8):_0x17559e};}function Ye(_0x120162,_0x42b63b){const _0x3b6a2c=_0x578284;let _0x5df0ad=[..._0x120162[_0x3b6a2c(0x16f)]??[]][_0x3b6a2c(0x120)]((_0x3369d4,_0x571c57)=>_0x3369d4[_0x3b6a2c(0x156)]-_0x571c57['startIndex']),_0x1f1d88=_0x1ccbd7(_0x120162);return _0x5df0ad[_0x3b6a2c(0x125)](_0x30a5f1=>(_0x1f1d88[_0x3b6a2c(0x11d)](_0x30a5f1[_0x3b6a2c(0x156)])??0x0)<=_0x42b63b&&_0x42b63b<=_0x30a5f1['startIndex']);}function j(_0x4dea2d,_0x324c88,_0x2e9539,_0x1347cf){const _0x3906f6=_0x578284;let _0x71984b=(_0x1347cf==null?void 0x0:_0x1347cf[_0x3906f6(0x11d)](_0x324c88[_0x3906f6(0x156)]))??_0x225d77(_0x4dea2d,_0x324c88);return _0x2e9539?Math[_0x3906f6(0x168)](_0x71984b,_0x2e9539['startOffset']):_0x71984b;}function Xe(_0x3f4822,_0x330b5a){const _0x1adcb7=_0x578284;let _0x213ebf=_0x3f4822[_0x1adcb7(0x156)]+0x1;return _0x330b5a?Math[_0x1adcb7(0x13a)](_0x213ebf,_0x330b5a[_0x1adcb7(0x17d)]):_0x213ebf;}function Ze(_0xa17aee,_0x336d87,_0x235208){const _0x4c4b2c=_0x578284;let _0x5e98ca=Qe(_0xa17aee,_0x336d87),_0x48360b=Qe(_0xa17aee,_0x336d87===_0x235208?_0x235208:Math[_0x4c4b2c(0x168)](_0x336d87,_0x235208-0x1));if(!(!_0x5e98ca&&!_0x48360b)){if(!_0x5e98ca||!_0x48360b||_0x5e98ca[_0x4c4b2c(0x13c)]!==_0x48360b[_0x4c4b2c(0x13c)]||_0x5e98ca[_0x4c4b2c(0x130)]!==_0x48360b[_0x4c4b2c(0x130)])throw new E();return _0x5e98ca;}}function Qe(_0x505408,_0x26084a){const _0x3295b7=_0x578284;let _0x21b122=_0x505408[_0x3295b7(0x187)],_0x6a5240=-0x1;for(let _0x49ed5a=Math[_0x3295b7(0x13a)](_0x26084a,_0x21b122[_0x3295b7(0x198)]-0x1);_0x49ed5a>=0x0;_0x49ed5a--){let _0x2925eb=_0x21b122[_0x49ed5a];if(_0x2925eb===_0x6f7a33[_0x3295b7(0x18f)])return;if(_0x2925eb===_0x6f7a33[_0x3295b7(0x153)]){_0x6a5240=_0x49ed5a;break;}}if(_0x6a5240<0x0)return;let _0x58478f=_0x21b122['indexOf'](_0x6f7a33[_0x3295b7(0x18f)],_0x6a5240+0x1);if(!(_0x58478f<0x0||_0x26084a<_0x6a5240+0x1||_0x26084a>_0x58478f-0x1))return{'startOffset':_0x6a5240+0x1,'endOffset':Math[_0x3295b7(0x168)](_0x6a5240+0x1,_0x58478f-0x1),'startTokenOffset':_0x6a5240,'endTokenOffset':_0x58478f};}function M(_0x166aee){return _0x3e8421(_0x166aee)['endOffset']-0x1;}function $e(_0x15945b,_0x1ac4a3,_0x59c440,_0x57c420){const _0x1dfb8a=_0x578284;let _0x1d6640=M(_0x1ac4a3),_0x337e10=(_0x15945b[_0x1dfb8a(0x16f)]??[])[_0x1dfb8a(0x125)](_0x3b644f=>_0x3b644f['startIndex']===_0x1d6640+0x1);if(!_0x337e10||_0x57c420!=null&&_0x337e10[_0x1dfb8a(0x156)]!==_0x57c420||_0x59c440!=null&&(_0x59c440<_0x1d6640||_0x59c440>_0x337e10['startIndex']+0x1)||_0x15945b[_0x1dfb8a(0x187)][_0x337e10['startIndex']]!==_0x6f7a33[_0x1dfb8a(0x104)])return null;let _0x1488e2=_0x225d77(_0x15945b,_0x337e10),_0x1a05d9=_0x15945b[_0x1dfb8a(0x187)][_0x1dfb8a(0x191)](_0x1488e2,_0x337e10[_0x1dfb8a(0x156)]);return Array[_0x1dfb8a(0x178)](_0x1a05d9)['every'](_0x893dbe=>_0x893dbe===_0x6f7a33['BLOCK_END'])?{'paragraph':_0x337e10,'endTokenOffset':_0x1d6640}:null;}function N(_0x23cdac,_0x3136c5){const _0x4a87fa=_0x578284;var _0x282c03;let _0x235445=M(_0x3136c5),_0x18a857=_0x23cdac[_0x4a87fa(0x187)][_0x235445+0x1];(_0x18a857===_0x6f7a33[_0x4a87fa(0x129)]||_0x18a857===void 0x0)&&P(_0x23cdac,_0x235445+0x1,_0x6f7a33['PARAGRAPH'],{'paragraphs':[{'startIndex':0x0,'paragraphId':_0x1d6f01(new Set((_0x282c03=_0x23cdac['paragraphs'])==null?void 0x0:_0x282c03[_0x4a87fa(0x151)](_0x13a374=>_0x13a374[_0x4a87fa(0x10f)])))}]});}function P(_0x3b4a59,_0x367d5e,_0x50d0be,_0x406604={}){const _0x350fca=_0x578284;var _0x1598df,_0x561a49;_0x50d0be&&(_0x3b4a59[_0x350fca(0x187)]=''+_0x3b4a59[_0x350fca(0x187)][_0x350fca(0x191)](0x0,_0x367d5e)+_0x50d0be+_0x3b4a59[_0x350fca(0x187)]['slice'](_0x367d5e),et(_0x3b4a59,_0x367d5e,_0x50d0be[_0x350fca(0x198)]),(_0x1598df=_0x406604[_0x350fca(0x16f)])!=null&&_0x1598df['length']&&(_0x3b4a59[_0x350fca(0x16f)]=[..._0x3b4a59[_0x350fca(0x16f)]??[],..._0x406604[_0x350fca(0x16f)][_0x350fca(0x151)](_0x1aacf6=>({..._0x1aacf6,'startIndex':_0x1aacf6[_0x350fca(0x156)]+_0x367d5e}))][_0x350fca(0x120)]((_0x8369a9,_0x172258)=>_0x8369a9[_0x350fca(0x156)]-_0x172258[_0x350fca(0x156)])),(_0x561a49=_0x406604[_0x350fca(0x177)])!=null&&_0x561a49[_0x350fca(0x198)]&&(_0x3b4a59['blockRanges']=[..._0x3b4a59['blockRanges']??[],..._0x406604[_0x350fca(0x177)][_0x350fca(0x151)](_0x57868b=>({..._0x57868b,'startIndex':_0x57868b['startIndex']+_0x367d5e,'endIndex':_0x57868b[_0x350fca(0x17b)]+_0x367d5e}))][_0x350fca(0x120)]((_0x15eaca,_0x28a61d)=>_0x15eaca[_0x350fca(0x156)]-_0x28a61d[_0x350fca(0x156)])));}function F(_0x53307f,_0x3fab51,_0x1d060c){const _0x9b7f0c=_0x578284;let _0x54767a=_0x1d060c-_0x3fab51;_0x53307f[_0x9b7f0c(0x187)]=''+_0x53307f[_0x9b7f0c(0x187)][_0x9b7f0c(0x191)](0x0,_0x3fab51)+_0x53307f[_0x9b7f0c(0x187)][_0x9b7f0c(0x191)](_0x1d060c),tt(_0x53307f,_0x3fab51,_0x54767a);}function et(_0x1ab87,_0x19ca8a,_0x16af4b){const _0x4be273=_0x578284;_0x1ab87['paragraphs']=I(_0x1ab87[_0x4be273(0x16f)],_0x19ca8a,_0x16af4b),_0x1ab87[_0x4be273(0x150)]=I(_0x1ab87[_0x4be273(0x150)],_0x19ca8a,_0x16af4b),_0x1ab87[_0x4be273(0x180)]=I(_0x1ab87['customBlocks'],_0x19ca8a,_0x16af4b),_0x1ab87[_0x4be273(0x173)]=nt(_0x1ab87[_0x4be273(0x173)],_0x19ca8a,_0x16af4b),_0x1ab87[_0x4be273(0x183)]=rt(_0x1ab87[_0x4be273(0x183)],_0x19ca8a,_0x16af4b),_0x1ab87[_0x4be273(0x199)]=R(_0x1ab87[_0x4be273(0x199)],_0x19ca8a,_0x16af4b),_0x1ab87[_0x4be273(0x118)]=R(_0x1ab87[_0x4be273(0x118)],_0x19ca8a,_0x16af4b),_0x1ab87[_0x4be273(0x119)]=R(_0x1ab87[_0x4be273(0x119)],_0x19ca8a,_0x16af4b),_0x1ab87[_0x4be273(0x177)]=R(_0x1ab87['blockRanges'],_0x19ca8a,_0x16af4b);}function tt(_0x211f2e,_0x50398f,_0x52b488){const _0x27e8d3=_0x578284;var _0x1942dc,_0x31c325;_0x211f2e[_0x27e8d3(0x16f)]=L(_0x211f2e['paragraphs'],_0x50398f,_0x52b488),_0x211f2e[_0x27e8d3(0x150)]=L(_0x211f2e[_0x27e8d3(0x150)],_0x50398f,_0x52b488),_0x211f2e['customBlocks']=L(_0x211f2e[_0x27e8d3(0x180)],_0x50398f,_0x52b488),_0x211f2e[_0x27e8d3(0x173)]=(_0x1942dc=it((_0x31c325=_0x211f2e[_0x27e8d3(0x173)])==null?void 0x0:_0x31c325[_0x27e8d3(0x151)](_0x32cf99=>({..._0x32cf99,'startIndex':_0x32cf99['st'],'endIndex':_0x32cf99['ed']})),_0x50398f,_0x52b488))==null?void 0x0:_0x1942dc[_0x27e8d3(0x151)](_0x3169d7=>{let {startIndex:_0x48b537,endIndex:_0x51de36,..._0x4f090d}=_0x3169d7;return{..._0x4f090d,'st':_0x48b537,'ed':_0x51de36};}),_0x211f2e[_0x27e8d3(0x183)]=it(_0x211f2e[_0x27e8d3(0x183)],_0x50398f,_0x52b488),_0x211f2e[_0x27e8d3(0x199)]=z(_0x211f2e[_0x27e8d3(0x199)],_0x50398f,_0x52b488),_0x211f2e[_0x27e8d3(0x118)]=z(_0x211f2e[_0x27e8d3(0x118)],_0x50398f,_0x52b488),_0x211f2e[_0x27e8d3(0x119)]=z(_0x211f2e[_0x27e8d3(0x119)],_0x50398f,_0x52b488),_0x211f2e['blockRanges']=z(_0x211f2e[_0x27e8d3(0x177)],_0x50398f,_0x52b488);}function I(_0x21df32,_0x23667e,_0x520e0f){const _0x1c5a6e=_0x578284;return _0x21df32==null?void 0x0:_0x21df32[_0x1c5a6e(0x151)](_0x5f2f27=>_0x5f2f27[_0x1c5a6e(0x156)]>=_0x23667e?{..._0x5f2f27,'startIndex':_0x5f2f27['startIndex']+_0x520e0f}:_0x5f2f27);}function _0x5216(_0xcbae4c,_0x1ccf24){_0xcbae4c=_0xcbae4c-0xf9;const _0x379cc3=_0x379c();let _0x521687=_0x379cc3[_0xcbae4c];return _0x521687;}function L(_0x425044,_0x428112,_0x46f623){const _0x1527df=_0x578284;let _0x572472=_0x428112+_0x46f623;return _0x425044==null?void 0x0:_0x425044[_0x1527df(0x151)](_0x5a5070=>_0x5a5070[_0x1527df(0x156)]>=_0x428112&&_0x5a5070[_0x1527df(0x156)]<_0x572472?null:_0x5a5070[_0x1527df(0x156)]>=_0x572472?{..._0x5a5070,'startIndex':_0x5a5070[_0x1527df(0x156)]-_0x46f623}:_0x5a5070)['filter'](_0x8dde6=>_0x8dde6!=null);}function nt(_0x264be4,_0x1657fa,_0x193591){const _0x32fd7e=_0x578284;return _0x264be4==null?void 0x0:_0x264be4[_0x32fd7e(0x151)](_0x338b15=>_0x338b15['st']>=_0x1657fa?{..._0x338b15,'st':_0x338b15['st']+_0x193591,'ed':_0x338b15['ed']+_0x193591}:_0x338b15['ed']>_0x1657fa?{..._0x338b15,'ed':_0x338b15['ed']+_0x193591}:_0x338b15);}function R(_0x4388d0,_0x5cdfda,_0x2653f8){return _0x4388d0==null?void 0x0:_0x4388d0['map'](_0x17edf6=>_0x56f453(_0x17edf6,_0x5cdfda,_0x2653f8));}function rt(_0x3154ee,_0x226c37,_0x4506df){const _0x18ed18=_0x578284;return _0x3154ee==null?void 0x0:_0x3154ee[_0x18ed18(0x151)](_0x13e881=>_0x56252a(_0x13e881,_0x226c37,_0x4506df));}function z(_0x5dec7b,_0x4fd324,_0x25ee21){const _0x279294=_0x578284;return _0x5dec7b==null?void 0x0:_0x5dec7b[_0x279294(0x151)](_0x24d599=>_0x2c30bd(_0x24d599,_0x4fd324,_0x25ee21))[_0x279294(0x13b)](_0x1ee864=>_0x1ee864!=null);}function it(_0x3012bd,_0x345aaa,_0x2e378c){const _0x3b4317=_0x578284;return _0x3012bd==null?void 0x0:_0x3012bd[_0x3b4317(0x151)](_0x33de97=>_0x3f3b1a(_0x33de97,_0x345aaa,_0x2e378c))[_0x3b4317(0x13b)](_0x32aeec=>_0x32aeec!=null);}const at={'id':'docs-code.command.insert-below','type':_0x35ad4f['COMMAND'],'handler':_0x197288=>{const _0x4fc9bc=_0x578284;var _0x12c8a9;if(_0x43c1c3(G(_0x197288)))return!0x1;let _0x2128b8=_0x4ed4ca(_0x197288);if(_0x2128b8)return _0x197288['get'](_0x1488c2)['syncExecuteCommand'](B['id'],{'startOffset':_0x2128b8[_0x4fc9bc(0x15b)],'endOffset':_0x2128b8[_0x4fc9bc(0x17d)],'insertionMode':_0x4fc9bc(0x14f),'unitId':_0x2128b8['unitId']});let _0x245dc9=ft(_0x197288);if(!_0x245dc9)return!0x1;let _0x38f8d7=(_0x12c8a9=_0x197288['get'](_0x13b6f2)[_0x4fc9bc(0x149)](_0xdb135d[_0x4fc9bc(0x158)]))==null?void 0x0:_0x12c8a9[_0x4fc9bc(0x126)](),_0x9da907=_0x38f8d7?_0x35c6e9(_0x38f8d7,_0x245dc9):_0x245dc9[_0x4fc9bc(0x156)]+0x1;return _0x197288[_0x4fc9bc(0x11d)](_0x1488c2)['syncExecuteCommand'](B['id'],{'startOffset':_0x9da907,'endOffset':_0x9da907});}},ot={'id':_0x578284(0x11c),'type':_0x35ad4f[_0x578284(0x182)],'handler':()=>!0x0},B={'id':_0x578284(0x172),'type':_0x35ad4f['COMMAND'],'handler':(_0x2d0592,_0x2a9c33)=>{const _0x587837=_0x578284;let _0x480e85=W(_0x2d0592,_0x2a9c33==null?void 0x0:_0x2a9c33[_0x587837(0x16c)]);if(!_0x480e85)return!0x1;let _0x32fecb=G(_0x2d0592);if(_0x43c1c3(_0x32fecb))return!0x1;let _0x1d44a9=_0x480e85[_0x587837(0x138)][_0x587837(0x14c)](_0x480e85[_0x587837(0x16c)]),_0x369d54=lt(_0x2a9c33,_0x32fecb),_0x25f426=ut(_0x480e85[_0x587837(0xfa)],_0x369d54);if(_0x25f426){if(_0x25f426[_0x587837(0x142)]!==_0x2b195a['CODE'])return!0x1;let _0x9eb76a=D({'blockId':_0x25f426[_0x587837(0x134)],'documentData':_0x480e85[_0x587837(0xfa)],'metadata':_0x1d44a9});if(!_0x9eb76a)return!0x1;let _0x2e7113=Y(_0x480e85[_0x587837(0x14d)],_0x480e85[_0x587837(0x133)],_0x480e85[_0x587837(0x16c)],_0x480e85['previousDocumentData'],_0x9eb76a['nextDocumentData'],B['id'],_0x9eb76a[_0x587837(0x179)]);return _0x2e7113&&_0x9eb76a[_0x587837(0x16a)]&&_0x480e85[_0x587837(0x138)][_0x587837(0x15d)](_0x480e85['unitId'],_0x9eb76a[_0x587837(0x16a)]),_0x2e7113;}let _0x53cc9d=(_0x2a9c33==null?void 0x0:_0x2a9c33[_0x587837(0x134)])??_0x390162(0x6),_0x2bf405;try{_0x2bf405=De({'blockId':_0x53cc9d,'config':_0x2a9c33==null?void 0x0:_0x2a9c33[_0x587837(0x189)],'documentData':_0x480e85[_0x587837(0xfa)],'endOffset':_0x369d54==null?void 0x0:_0x369d54['endOffset'],'insertionMode':_0x2a9c33==null?void 0x0:_0x2a9c33[_0x587837(0x10e)],'metadata':_0x1d44a9,'startOffset':_0x369d54==null?void 0x0:_0x369d54[_0x587837(0x15b)]});}catch(_0x33f0c9){if(_0x33f0c9 instanceof E)return!0x1;throw _0x33f0c9;}let _0xb07e92=Y(_0x480e85['commandService'],_0x480e85[_0x587837(0x133)],_0x480e85[_0x587837(0x16c)],_0x480e85['previousDocumentData'],_0x2bf405[_0x587837(0x10a)],B['id'],_0x2bf405['cursorOffset']);return _0xb07e92&&_0x2bf405[_0x587837(0x16a)]&&_0x480e85['model'][_0x587837(0x15d)](_0x480e85[_0x587837(0x16c)],_0x2bf405[_0x587837(0x16a)]),_0xb07e92;}},st={'id':'docs-code.command.update','type':_0x35ad4f['COMMAND'],'handler':(_0x4cf3ee,_0x4c1672)=>{const _0x218ef8=_0x578284;if(!_0x4c1672)return!0x1;let _0x3d1dd5=W(_0x4cf3ee,_0x4c1672[_0x218ef8(0x16c)]);if(!_0x3d1dd5)return!0x1;let _0x4ba36f=je({'blockId':_0x4c1672[_0x218ef8(0x134)],'config':_0x4c1672[_0x218ef8(0x189)],'documentData':_0x3d1dd5[_0x218ef8(0xfa)],'metadata':_0x3d1dd5['model'][_0x218ef8(0x14c)](_0x3d1dd5[_0x218ef8(0x16c)])});return _0x4ba36f[_0x218ef8(0x16a)]&&_0x3d1dd5['model']['deserialize'](_0x3d1dd5[_0x218ef8(0x16c)],_0x4ba36f[_0x218ef8(0x16a)]),!0x0;}},ct={'id':_0x578284(0x107),'type':_0x35ad4f['COMMAND'],'handler':(_0x5a4ec9,_0x4f77bb)=>V[_0x578284(0x12d)](_0x5a4ec9,_0x4f77bb)},V={'id':_0x578284(0x12b),'type':_0x35ad4f[_0x578284(0x182)],'handler':(_0x4163d8,_0x13437d)=>{const _0x2ae708=_0x578284;if(!_0x13437d)return!0x1;let _0x4c6c2d=W(_0x4163d8,_0x13437d==null?void 0x0:_0x13437d['unitId']);if(!_0x4c6c2d)return!0x1;let _0x5c6c6b=D({'blockId':_0x13437d[_0x2ae708(0x134)],'documentData':_0x4c6c2d[_0x2ae708(0xfa)],'metadata':_0x4c6c2d[_0x2ae708(0x138)][_0x2ae708(0x14c)](_0x4c6c2d[_0x2ae708(0x16c)])});if(!_0x5c6c6b)return!0x1;let _0xb71a44=Y(_0x4c6c2d[_0x2ae708(0x14d)],_0x4c6c2d[_0x2ae708(0x133)],_0x4c6c2d[_0x2ae708(0x16c)],_0x4c6c2d[_0x2ae708(0xfa)],_0x5c6c6b[_0x2ae708(0x10a)],V['id'],_0x5c6c6b[_0x2ae708(0x179)]);return _0xb71a44&&_0x5c6c6b[_0x2ae708(0x16a)]&&_0x4c6c2d[_0x2ae708(0x138)][_0x2ae708(0x15d)](_0x4c6c2d[_0x2ae708(0x16c)],_0x5c6c6b[_0x2ae708(0x16a)]),_0xb71a44;}},H={'id':_0x578284(0x115),'type':_0x35ad4f[_0x578284(0x182)],'handler':(_0x391b30,_0x1abd2a)=>{const _0xba49c2=_0x578284;if(!_0x1abd2a)return!0x1;let _0x296950=W(_0x391b30,_0x1abd2a==null?void 0x0:_0x1abd2a[_0xba49c2(0x16c)]);if(!_0x296950)return!0x1;let _0x466c34=Me({'blockId':_0x1abd2a[_0xba49c2(0x134)],'documentData':_0x296950[_0xba49c2(0xfa)],'metadata':_0x296950[_0xba49c2(0x138)][_0xba49c2(0x14c)](_0x296950[_0xba49c2(0x16c)])});if(!_0x466c34)return!0x1;let _0x5e524a=Y(_0x296950['commandService'],_0x296950[_0xba49c2(0x133)],_0x296950['unitId'],_0x296950['previousDocumentData'],_0x466c34[_0xba49c2(0x10a)],H['id'],_0x466c34[_0xba49c2(0x179)]);return _0x5e524a&&_0x466c34[_0xba49c2(0x16a)]&&_0x296950[_0xba49c2(0x138)][_0xba49c2(0x15d)](_0x296950[_0xba49c2(0x16c)],_0x466c34[_0xba49c2(0x16a)]),_0x5e524a;}},U={'id':_0x578284(0x166),'type':_0x35ad4f[_0x578284(0x182)],'handler':(_0x43a078,_0x5c9de2)=>{const _0x3039a5=_0x578284;var _0x58dc23;let _0x16e29f=W(_0x43a078,_0x5c9de2==null?void 0x0:_0x5c9de2[_0x3039a5(0x16c)]);if(!_0x16e29f)return!0x1;let _0x17cbe7=(_0x5c9de2==null?void 0x0:_0x5c9de2[_0x3039a5(0x179)])??((_0x58dc23=G(_0x43a078))==null?void 0x0:_0x58dc23[_0x3039a5(0x15b)]);if(_0x17cbe7==null)return!0x1;let _0x4ce67b=Ne({'cursorOffset':_0x17cbe7,'documentData':_0x16e29f['previousDocumentData'],'paragraphStartIndex':_0x5c9de2==null?void 0x0:_0x5c9de2['paragraphStartIndex']});return _0x4ce67b?Y(_0x16e29f['commandService'],_0x16e29f['selectionManager'],_0x16e29f[_0x3039a5(0x16c)],_0x16e29f[_0x3039a5(0xfa)],_0x4ce67b[_0x3039a5(0x10a)],U['id'],_0x4ce67b[_0x3039a5(0x179)]):!0x1;}};function W(_0x16911a,_0x22807e){const _0x5a99ed=_0x578284;let _0x115762=_0x16911a[_0x5a99ed(0x11d)](_0x13b6f2),_0x67e06b=_0x22807e?_0x115762[_0x5a99ed(0x190)](_0x22807e,_0xdb135d[_0x5a99ed(0x158)]):_0x115762['getCurrentUnitOfType'](_0xdb135d[_0x5a99ed(0x158)]);return _0x67e06b?{'commandService':_0x16911a[_0x5a99ed(0x11d)](_0x1488c2),'model':_0x16911a[_0x5a99ed(0x11d)](w),'previousDocumentData':_0x67e06b[_0x5a99ed(0x139)](),'selectionManager':_0x16911a[_0x5a99ed(0x11d)](_0x31b1fc),'unitId':_0x67e06b[_0x5a99ed(0x140)]()}:null;}function G(_0x4bc2b6){const _0x27907c=_0x578284;var _0x2c7f1f;return(_0x2c7f1f=_0x4bc2b6[_0x27907c(0x11d)](_0x31b1fc)[_0x27907c(0x18c)]())==null?void 0x0:_0x2c7f1f[0x0];}function lt(_0x53c845,_0x762873){const _0x3acd16=_0x578284;let _0x35c2e4=(_0x53c845==null?void 0x0:_0x53c845[_0x3acd16(0x15b)])??(_0x762873==null?void 0x0:_0x762873['startOffset']),_0xd1e80f=(_0x53c845==null?void 0x0:_0x53c845['endOffset'])??(_0x762873==null?void 0x0:_0x762873[_0x3acd16(0x17d)]);if(_0x35c2e4!=null&&_0xd1e80f!=null)return{'endOffset':Math['max'](_0x35c2e4,_0xd1e80f),'startOffset':Math['min'](_0x35c2e4,_0xd1e80f)};}function ut(_0x38239f,_0x3fa4bc){const _0x305e6b=_0x578284;var _0x53ae3a;if(!_0x3fa4bc)return;let _0x1e6c0f=dt(_0x3fa4bc);return(_0x53ae3a=_0x38239f['body'])==null||(_0x53ae3a=_0x53ae3a[_0x305e6b(0x177)])==null?void 0x0:_0x53ae3a['find'](_0x3ae4a1=>{const _0x1005a8=_0x305e6b;let _0xe61b30=_0x3e8421(_0x3ae4a1);return _0x3fa4bc[_0x1005a8(0x15b)]===_0x3fa4bc[_0x1005a8(0x17d)]?_0x10793e(_0xe61b30,_0x1e6c0f):_0x24ffbf(_0xe61b30,_0x1e6c0f);});}function dt(_0x19fba4){const _0x4709c0=_0x578284;return _0x19fba4[_0x4709c0(0x15b)]===_0x19fba4['endOffset']?_0x19fba4[_0x4709c0(0x15b)]:_0x19fba4[_0x4709c0(0x15b)]+0x1;}function ft(_0xd9055c){const _0x2413e3=_0x578284;let _0x30726a=G(_0xd9055c);if(!_0x30726a)return null;let _0xdc9680=_0xd9055c[_0x2413e3(0x11d)](_0x13b6f2)[_0x2413e3(0x149)](_0xdb135d['UNIVER_DOC']),_0x300fdf=_0xdc9680==null?void 0x0:_0xdc9680[_0x2413e3(0x126)]();return _0x300fdf?_0x436562[_0x2413e3(0x14a)][_0x2413e3(0x175)](_0x30726a,_0x300fdf[_0x2413e3(0x16f)]??[],_0x300fdf[_0x2413e3(0x187)]??'')[0x0]??null:null;}function pt(_0x2496b9,_0x3cbc95){const _0x2299b4=_0x578284;let _0x54c2f0=_0x2496b9[_0x2299b4(0x116)],_0x29922a=_0x3cbc95[_0x2299b4(0x116)],_0x193aec=_0x101b28(_0x54c2f0,_0x29922a);return[_0x193aec&&_0x29922a?mt(_0x29922a,_0x193aec):null,_0x193aec?null:ht(_0x54c2f0,_0x29922a)][_0x2299b4(0x13b)](Boolean)[_0x2299b4(0x11f)]((_0x6dfb8b,_0x332be2)=>_0x142004[_0x2299b4(0x12e)](_0x6dfb8b,_0x332be2),null);}function mt(_0x9e3276,_0x2550e0){const _0x4184c0=_0x578284;let _0x5c3dd4=new _0xd2211();return _0x5c3dd4[_0x4184c0(0x18a)](_0x2550e0[_0x4184c0(0x102)]),_0x2550e0['insertLength']>0x0&&_0x5c3dd4[_0x4184c0(0x192)](_0x2550e0[_0x4184c0(0x124)],_0x35244e(_0x9e3276,_0x2550e0['start'],_0x2550e0['start']+_0x2550e0[_0x4184c0(0x124)],!0x1)),_0x2550e0[_0x4184c0(0xfd)]>0x0&&_0x5c3dd4[_0x4184c0(0x15e)](_0x2550e0[_0x4184c0(0xfd)]),_0x142004[_0x4184c0(0x11e)]()[_0x4184c0(0x135)](_0x5c3dd4[_0x4184c0(0x14c)](),[_0x4184c0(0x116)]);}function ht(_0x446fdd,_0x42e2b0){const _0x144914=_0x578284;let _0x288c6c=[],_0x2f7d8f=_0x446fdd?_t(_0x446fdd):void 0x0,_0x1a8822=_0x42e2b0?_t(_0x42e2b0):void 0x0;for(let _0x3a6d52 of gt)K(_0x142004[_0x144914(0x11e)](),[_0x144914(0x116),_0x3a6d52],_0x2f7d8f==null?void 0x0:_0x2f7d8f[_0x3a6d52],_0x1a8822==null?void 0x0:_0x1a8822[_0x3a6d52],_0x288c6c);return _0x288c6c['reduce']((_0x8896a1,_0x8475b8)=>_0x142004[_0x144914(0x12e)](_0x8896a1,_0x8475b8),null);}const gt=[_0x578284(0x16f),'sectionBreaks',_0x578284(0x183),_0x578284(0x199),_0x578284(0x177),_0x578284(0x180),_0x578284(0x118),'customDecorations',_0x578284(0x173)];function _t(_0x18bb89){return _0x18bb89;}function K(_0x51680e,_0x5189ee,_0x44256c,_0x1df394,_0x3e0050){const _0x57ccb=_0x578284;if(!J(_0x44256c,_0x1df394)){if(_0x44256c==null){_0x3e0050[_0x57ccb(0x10b)](_0x51680e[_0x57ccb(0x103)](_0x5189ee,_0x1df394));return;}if(_0x1df394==null){_0x3e0050[_0x57ccb(0x10b)](_0x51680e[_0x57ccb(0x122)](_0x5189ee,_0x44256c));return;}if(Array[_0x57ccb(0x18e)](_0x44256c)&&Array[_0x57ccb(0x18e)](_0x1df394)){vt(_0x51680e,_0x5189ee,_0x44256c,_0x1df394,_0x3e0050);return;}if(q(_0x44256c)&&q(_0x1df394)){new Set([...Object['keys'](_0x44256c),...Object[_0x57ccb(0xf9)](_0x1df394)])['forEach'](_0x3e909d=>{K(_0x51680e,[..._0x5189ee,_0x3e909d],_0x44256c[_0x3e909d],_0x1df394[_0x3e909d],_0x3e0050);});return;}_0x3e0050[_0x57ccb(0x10b)](_0x51680e['replaceOp'](_0x5189ee,_0x44256c,_0x1df394));}}function vt(_0x43ee99,_0x18d63a,_0x51616d,_0x3bb338,_0x142217){const _0x1957d3=_0x578284;if(_0x51616d[_0x1957d3(0x198)]===_0x3bb338[_0x1957d3(0x198)]){_0x51616d[_0x1957d3(0x197)]((_0x204db8,_0x1af266)=>K(_0x43ee99,[..._0x18d63a,_0x1af266],_0x204db8,_0x3bb338[_0x1af266],_0x142217));return;}let _0x50adc3=0x0;for(;_0x50adc3<_0x51616d[_0x1957d3(0x198)]&&_0x50adc3<_0x3bb338[_0x1957d3(0x198)]&&J(_0x51616d[_0x50adc3],_0x3bb338[_0x50adc3]);)_0x50adc3++;let _0x1f30c8=_0x51616d[_0x1957d3(0x198)]-0x1,_0x321047=_0x3bb338[_0x1957d3(0x198)]-0x1;for(;_0x1f30c8>=_0x50adc3&&_0x321047>=_0x50adc3&&J(_0x51616d[_0x1f30c8],_0x3bb338[_0x321047]);)_0x1f30c8--,_0x321047--;for(let _0x5a5519=_0x1f30c8;_0x5a5519>=_0x50adc3;_0x5a5519--)_0x142217['push'](_0x43ee99[_0x1957d3(0x122)]([..._0x18d63a,_0x5a5519],_0x51616d[_0x5a5519]));for(let _0xe8bb35=_0x50adc3;_0xe8bb35<=_0x321047;_0xe8bb35++)_0x142217[_0x1957d3(0x10b)](_0x43ee99[_0x1957d3(0x103)]([..._0x18d63a,_0xe8bb35],_0x3bb338[_0xe8bb35]));}function q(_0x412503){const _0x1fb10c=_0x578284;return typeof _0x412503==_0x1fb10c(0x11a)&&!!_0x412503&&!Array[_0x1fb10c(0x18e)](_0x412503);}function J(_0x380c4b,_0x45f328){return JSON['stringify'](_0x380c4b)===JSON['stringify'](_0x45f328);}function Y(_0x2626da,_0x2b6077,_0x5c92ca,_0x1ec5c6,_0x315d9a,_0x15c875,_0x7326a5){const _0x2074b8=_0x578284;let _0x37b0f2=pt(_0x1ec5c6,_0x315d9a);return _0x37b0f2?!!_0x2626da['syncExecuteCommand'](_0x20121c['id'],{'unitId':_0x5c92ca,'actions':_0x37b0f2,'textRanges':[{'startOffset':_0x7326a5,'endOffset':_0x7326a5,'collapsed':!0x0}],'isEditing':!0x1,'trigger':_0x15c875}):(_0x2b6077[_0x2074b8(0xfc)]([{'startOffset':_0x7326a5,'endOffset':_0x7326a5}],{'unitId':_0x5c92ca,'subUnitId':_0x5c92ca},!0x1),!0x0);}const X='DOC_CODE_PLUGIN';var yt=_0x578284(0x162),bt='1.0.0-insiders.20260809-70eefdd';const xt={};function Z(_0x330a0c,_0x550bb6){return function(_0x31ef6e,_0x184800){_0x550bb6(_0x31ef6e,_0x184800,_0x330a0c);};}function St(_0x46bb41,_0x9723ac,_0x1d1446,_0x9804a0){const _0x1162f2=_0x578284;var _0x116dc1=arguments[_0x1162f2(0x198)],_0x5b6d4e=_0x116dc1<0x3?_0x9723ac:_0x9804a0===null?_0x9804a0=Object['getOwnPropertyDescriptor'](_0x9723ac,_0x1d1446):_0x9804a0,_0x12d2be;if(typeof Reflect==_0x1162f2(0x11a)&&typeof Reflect[_0x1162f2(0x19a)]==_0x1162f2(0x128))_0x5b6d4e=Reflect[_0x1162f2(0x19a)](_0x46bb41,_0x9723ac,_0x1d1446,_0x9804a0);else{for(var _0x5bab14=_0x46bb41['length']-0x1;_0x5bab14>=0x0;_0x5bab14--)(_0x12d2be=_0x46bb41[_0x5bab14])&&(_0x5b6d4e=(_0x116dc1<0x3?_0x12d2be(_0x5b6d4e):_0x116dc1>0x3?_0x12d2be(_0x9723ac,_0x1d1446,_0x5b6d4e):_0x12d2be(_0x9723ac,_0x1d1446))||_0x5b6d4e);}return _0x116dc1>0x3&&_0x5b6d4e&&Object[_0x1162f2(0x167)](_0x9723ac,_0x1d1446,_0x5b6d4e),_0x5b6d4e;}let Q=class extends _0xc9b18a{constructor(_0x52cb68,_0x43dff0){const _0x3f63e1=_0x578284;super(),this[_0x3f63e1(0x108)]=_0x52cb68,this['_docsCodeModel']=_0x43dff0,this[_0x3f63e1(0x196)]();}[_0x578284(0x196)](){const _0x409dd6=_0x578284;this[_0x409dd6(0x17a)](this[_0x409dd6(0x108)]['registerPluginResource']({'pluginName':X,'businesses':[_0xdb135d['UNIVER_DOC']],'toJson':_0x597364=>JSON[_0x409dd6(0x14b)](this[_0x409dd6(0x17e)][_0x409dd6(0x14c)](_0x597364)),'parseJson':_0x596a7f=>y(JSON['parse'](_0x596a7f)),'onLoad':(_0x475ac5,_0x1f82fd)=>this[_0x409dd6(0x17e)]['deserialize'](_0x475ac5,_0x1f82fd),'onUnLoad':_0x36f55e=>this[_0x409dd6(0x17e)][_0x409dd6(0x143)](_0x36f55e)}));}};Q=St([Z(0x0,_0x15472f),Z(0x1,_0x8d4d91(w))],Q);let $=class extends _0x46ce77{constructor(_0x50c25a=xt,_0x55c26a,_0x1f3c62,_0x5ab276){const _0x239ed9=_0x578284;super(),this[_0x239ed9(0x16e)]=_0x50c25a,this['_injector']=_0x55c26a,this[_0x239ed9(0x114)]=_0x1f3c62,this[_0x239ed9(0xff)]=_0x5ab276;let {..._0x5087ec}=_0x4b0430({},xt,this[_0x239ed9(0x16e)]);this[_0x239ed9(0xff)][_0x239ed9(0x193)]('docs-code.config',_0x5087ec);}['onStarting'](){const _0x1f69b8=_0x578284;this[_0x1f69b8(0x100)][_0x1f69b8(0x16b)]([w]),this[_0x1f69b8(0x100)][_0x1f69b8(0x16b)]([Q]),this[_0x1f69b8(0x100)][_0x1f69b8(0x11d)](w),this['_injector'][_0x1f69b8(0x11d)](Q),[B,at,st,V,H,ct,U,ot,Te,T][_0x1f69b8(0x197)](_0x501edb=>this[_0x1f69b8(0x17a)](this[_0x1f69b8(0x114)][_0x1f69b8(0x157)](_0x501edb)));}};C($,'pluginName',X),C($,_0x578284(0x148),yt),C($,_0x578284(0x184),bt),C($,_0x578284(0xfe),_0xdb135d[_0x578284(0x158)]),$=St([_0x3f9ced(_0x1a4448,_0x48415b),Z(0x1,_0x8d4d91(_0x5f0624)),Z(0x2,_0x1488c2),Z(0x3,_0x322276)],$);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};