@univerjs-pro/docs-code 0.24.0-insiders.20260530-98808ab → 0.25.0

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/facade.js CHANGED
@@ -1 +1 @@
1
- const _0x4eda42=_0x120b;(function(_0x26526c,_0x375c12){const _0x5dd907=_0x120b,_0xc9a994=_0x26526c();while(!![]){try{const _0x4ce187=parseInt(_0x5dd907(0x189))/0x1*(parseInt(_0x5dd907(0x1e5))/0x2)+-parseInt(_0x5dd907(0x1ee))/0x3+-parseInt(_0x5dd907(0x1bb))/0x4+-parseInt(_0x5dd907(0x182))/0x5+parseInt(_0x5dd907(0x1d2))/0x6*(-parseInt(_0x5dd907(0x196))/0x7)+parseInt(_0x5dd907(0x17e))/0x8+parseInt(_0x5dd907(0x197))/0x9;if(_0x4ce187===_0x375c12)break;else _0xc9a994['push'](_0xc9a994['shift']());}catch(_0x4609d8){_0xc9a994['push'](_0xc9a994['shift']());}}}(_0x2ca1,0x5dfe1));import{CommandType as _0x1a9309,DataStreamTreeTokenType as _0x212422,Disposable as _0x207dae,ICommandService as _0x4da3ce,IUniverInstanceService as _0x23aeb7,JSONX as _0x238fe4,Tools as _0x49d96f,UniverInstanceType as _0x111228,generateRandomId as _0x46d562}from'@univerjs/core';import{FDocument as _0x41dd8a}from'@univerjs/docs-ui/facade';import{DocSelectionManagerService as _0x1bfc20,RichTextEditingMutation as _0x44b7b2}from'@univerjs/docs';import'@univerjs/docs-ui';import{Subject as _0x463d46}from'rxjs';const p=_0x4eda42(0x1bd),m={'language':_0x4eda42(0x1bc),'showLineNumbers':!0x1,'tabSize':0x4,'wrap':!0x0};function h(_0x23bd18){return{...m,..._0x23bd18};}function g(_0x5a5035){const _0xb7f046=_0x4eda42;var _0x3da5db;let _0x41f8ef=(_0x3da5db=_0x5a5035==null?void 0x0:_0x5a5035[_0xb7f046(0x1f6)])==null?{}:_0x3da5db;return{'codes':Object['fromEntries'](Object['entries'](_0x41f8ef)[_0xb7f046(0x1a1)](([_0x5339e7,_0x22101c])=>[_0x5339e7,h(_0x22101c)]))};}function _(_0x3bf775,_0xaafc2,_0x3414ef){const _0x5791c1=_0x4eda42;let _0x58d544=g(_0x3bf775);return _0x58d544[_0x5791c1(0x1f6)][_0xaafc2]=h({..._0x58d544[_0x5791c1(0x1f6)][_0xaafc2],..._0x3414ef}),_0x58d544;}function _0x120b(_0x55968c,_0x473383){_0x55968c=_0x55968c-0x17b;const _0x2ca1a9=_0x2ca1();let _0x120bcf=_0x2ca1a9[_0x55968c];return _0x120bcf;}function v(_0x5298ef,_0x40d6b3){const _0x163b87=_0x4eda42;let _0x5710cd=g(_0x5298ef);return delete _0x5710cd[_0x163b87(0x1f6)][_0x40d6b3],_0x5710cd;}const y='monospace';function b(_0x5c27f6){const _0x57e450=_0x4eda42;var _0x2fd0b7,_0x45b942,_0x28c086;let _0x3f95e6=E(_0x5c27f6['documentData']),_0x1667b3=D(_0x3f95e6),_0xdbbaf3=ee(_0x5c27f6[_0x57e450(0x19a)],_0x5c27f6['endOffset']),_0x39072c=_0xdbbaf3?(_0x2fd0b7=_0x1667b3['blockRanges'])==null?void 0x0:_0x2fd0b7['find'](_0x584887=>_0x584887['startIndex']===_0xdbbaf3[_0x57e450(0x19a)]&&_0x584887[_0x57e450(0x1d7)]+0x1===_0xdbbaf3[_0x57e450(0x1d8)]):void 0x0,{startOffset:_0x2e672c,endOffset:_0xc83a5a}=_0x39072c?_0xdbbaf3:se(_0x1667b3,_0x5c27f6[_0x57e450(0x19a)],_0x5c27f6[_0x57e450(0x1d8)]),_0x5398ba=le(_0x1667b3,_0x2e672c,_0xc83a5a),_0x4b2ece=(_0x45b942=_0x39072c==null?void 0x0:_0x39072c[_0x57e450(0x181)])==null?_0x5c27f6['blockId']:_0x45b942,_0x150fb0=_(_0x5c27f6[_0x57e450(0x1f2)],_0x4b2ece,{...m,..._0x5c27f6[_0x57e450(0x18b)]});if(_0x39072c)return _0x39072c[_0x57e450(0x1ec)]=p,x(_0x1667b3,_0x2e672c,_0xc83a5a),w(_0x1667b3,_0x2e672c,_0xc83a5a,_0x5398ba),{'nextDocumentData':_0x3f95e6,'nextMetadata':_0x150fb0,'cursorOffset':_0x2e672c+0x1};if(_0x2e672c===_0xc83a5a){let _0x45ea87=''+_0x212422['BLOCK_START']+_0x212422[_0x57e450(0x1f0)]+_0x212422[_0x57e450(0x1ac)];return j(_0x1667b3,_0x2e672c,_0x45ea87,{'paragraphs':[{'startIndex':0x1,'paragraphStyle':C(!0x0,!0x0,_0x5398ba)}],'blockRanges':[{'blockId':_0x4b2ece,'blockType':p,'startIndex':0x0,'endIndex':_0x45ea87[_0x57e450(0x1a8)]-0x1}]}),{'nextDocumentData':_0x3f95e6,'nextMetadata':_0x150fb0,'cursorOffset':_0x2e672c+0x1};}return j(_0x1667b3,_0xc83a5a,_0x212422[_0x57e450(0x1ac)]),j(_0x1667b3,_0x2e672c,_0x212422[_0x57e450(0x1a4)]),w(_0x1667b3,_0x2e672c,_0xc83a5a+0x1,_0x5398ba),_0x1667b3[_0x57e450(0x1cb)]=[...(_0x28c086=_0x1667b3['blockRanges'])==null?[]:_0x28c086,{'blockId':_0x4b2ece,'blockType':p,'startIndex':_0x2e672c,'endIndex':_0xc83a5a+0x1}][_0x57e450(0x1ab)]((_0x28b73b,_0x217fa7)=>_0x28b73b[_0x57e450(0x1a9)]-_0x217fa7[_0x57e450(0x1a9)]),{'nextDocumentData':_0x3f95e6,'nextMetadata':_0x150fb0,'cursorOffset':_0x2e672c+0x1};}function x(_0x140406,_0x2193cd,_0x3bf528){const _0x5f4786=_0x4eda42;var _0x345144;((_0x345144=_0x140406[_0x5f4786(0x1af)])==null?[]:_0x345144)[_0x5f4786(0x194)](_0x2ead26=>_0x2ead26[_0x5f4786(0x1a9)]>_0x2193cd&&_0x2ead26[_0x5f4786(0x1a9)]<_0x3bf528)['forEach'](_0xad0887=>{const _0x11cb6d=_0x5f4786;var _0x10957b;let _0x592ff7={...(_0x10957b=_0xad0887[_0x11cb6d(0x1d9)])==null?{}:_0x10957b};delete _0x592ff7[_0x11cb6d(0x198)],delete _0x592ff7['spaceBelow'],_0xad0887[_0x11cb6d(0x1d9)]=_0x592ff7;});}function ee(_0x1b0488,_0x5b2a5c){const _0x4ed4e4=_0x4eda42;return _0x1b0488==null||_0x5b2a5c==null||_0x1b0488===_0x5b2a5c?null:{'startOffset':Math['min'](_0x1b0488,_0x5b2a5c),'endOffset':Math[_0x4ed4e4(0x1c2)](_0x1b0488,_0x5b2a5c)};}function te(_0x4c4a95){const _0x51966b=_0x4eda42;return{'nextDocumentData':E(_0x4c4a95[_0x51966b(0x1e2)]),'nextMetadata':_(_0x4c4a95[_0x51966b(0x1f2)],_0x4c4a95[_0x51966b(0x181)],_0x4c4a95[_0x51966b(0x18b)]),'cursorOffset':0x0};}function ne(_0x3b04cf){const _0x51943f=_0x4eda42;var _0xf23e70,_0x130f66;let _0x56796f=E(_0x3b04cf[_0x51943f(0x1e2)]),_0x37e417=D(_0x56796f),_0x123618=S(_0x37e417,_0x3b04cf[_0x51943f(0x17c)]);if(!_0x123618)return null;let _0x423ebf=T(_0x37e417,_0x123618),_0x3b5717=_0x423ebf[_0x423ebf['length']-0x1];if(!_0x3b5717||!oe(_0x37e417,_0x123618,_0x3b5717)||_0x3b04cf[_0x51943f(0x17c)]<_0x3b5717[_0x51943f(0x1a9)])return null;let _0x11ce38=k(_0x37e417,_0x123618,_0x3b5717);if(_0x11ce38>=_0x123618[_0x51943f(0x1d7)])return null;_0x37e417['dataStream']=[_0x37e417[_0x51943f(0x1f5)][_0x51943f(0x1de)](0x0,_0x11ce38),_0x212422[_0x51943f(0x1ac)],_0x37e417[_0x51943f(0x1f5)][_0x51943f(0x1de)](_0x11ce38,_0x123618['endIndex']),_0x37e417[_0x51943f(0x1f5)][_0x51943f(0x1de)](_0x123618[_0x51943f(0x1d7)]+0x1)][_0x51943f(0x1e0)](''),z(_0x37e417[_0x51943f(0x1af)],_0x11ce38,_0x123618[_0x51943f(0x1d7)],0x1),z(_0x37e417[_0x51943f(0x17f)],_0x11ce38,_0x123618[_0x51943f(0x1d7)],0x1),z(_0x37e417['customBlocks'],_0x11ce38,_0x123618[_0x51943f(0x1d7)],0x1),pe(_0x37e417[_0x51943f(0x1b4)],_0x11ce38,_0x123618[_0x51943f(0x1d7)],0x1),B(_0x37e417[_0x51943f(0x1e4)],_0x11ce38,_0x123618['endIndex'],0x1),B(_0x37e417[_0x51943f(0x18a)],_0x11ce38,_0x123618[_0x51943f(0x1d7)],0x1),B(_0x37e417[_0x51943f(0x18c)],_0x11ce38,_0x123618[_0x51943f(0x1d7)],0x1),(_0xf23e70=_0x37e417[_0x51943f(0x1cb)])==null||_0xf23e70['forEach'](_0x210223=>{const _0x229911=_0x51943f;_0x210223===_0x123618||_0x210223[_0x229911(0x181)]===_0x123618[_0x229911(0x181)]?_0x210223[_0x229911(0x1d7)]=_0x11ce38:_0x210223[_0x229911(0x1a9)]>=_0x11ce38&&_0x210223[_0x229911(0x1a9)]<_0x123618[_0x229911(0x1d7)]&&(_0x210223[_0x229911(0x1a9)]+=0x1,_0x210223[_0x229911(0x1d7)]+=0x1);});let _0x2b33ef=T(_0x37e417,{..._0x123618,'endIndex':_0x11ce38});_0x2b33ef['forEach']((_0x17ba71,_0x1bacaf)=>{const _0x4ad550=_0x51943f;var _0x35c225;_0x17ba71[_0x4ad550(0x1d9)]={...(_0x35c225=_0x17ba71[_0x4ad550(0x1d9)])==null?{}:_0x35c225,...C(_0x1bacaf===0x0,_0x1bacaf===_0x2b33ef[_0x4ad550(0x1a8)]-0x1)};});let _0x2aa794=(_0x130f66=_0x37e417[_0x51943f(0x1af)])==null?void 0x0:_0x130f66[_0x51943f(0x186)](_0x51f7f4=>_0x51f7f4[_0x51943f(0x1a9)]===_0x11ce38+0x1);return _0x2aa794&&(_0x2aa794[_0x51943f(0x1d9)]=ae(_0x2aa794[_0x51943f(0x1d9)])),{'nextDocumentData':_0x56796f,'cursorOffset':_0x11ce38+0x1};}function re(_0x36d164){const _0x5ff448=_0x4eda42;let _0x8f1ede=E(_0x36d164[_0x5ff448(0x1e2)]),_0x2c9912=D(_0x8f1ede),_0x513f52=S(_0x2c9912,_0x36d164[_0x5ff448(0x17c)]);return _0x513f52&&ie(_0x8f1ede,_0x2c9912,_0x513f52,_0x36d164['cursorOffset'],_0x36d164[_0x5ff448(0x188)])||null;}function ie(_0x573f6f,_0x4b1904,_0x215fae,_0x406fa8,_0x851c7){const _0x3a822b=_0x4eda42;let _0x49bdcb=de(_0x4b1904,_0x215fae,_0x406fa8,_0x851c7);if(!_0x49bdcb)return null;let _0x249ebf=_0x49bdcb['endTokenOffset']-0x1;return M(_0x4b1904,_0x49bdcb[_0x3a822b(0x1cf)][_0x3a822b(0x1a9)],_0x49bdcb[_0x3a822b(0x1cf)][_0x3a822b(0x1a9)]+0x1),{'nextDocumentData':_0x573f6f,'cursorOffset':_0x249ebf};}function _0x2ca1(){const _0x27ef4b=['startIndex','getRange','sort','BLOCK_END','deserialize','set','paragraphs','indentEnd','exit','spaceBelow','getConfig','textRuns','setCodeConfig','deepClone','constructor','SECTION_BREAK','replace','commandService','456196ROAofU','javascript','code','getUniverDocInstance','getUnitId','indexOf','getText','max','_runtime','getCurrentUnitOfType','_setResource','describe','model','some','reduce','endsWith','blockRanges','string','getTextRanges','Document\x20body\x20is\x20required','paragraph','every','prototype','12UsvkGy','text','findCodes','serialize','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','endIndex','endOffset','paragraphStyle','dispose','replaceOp','get','nextDocumentData','slice','iterator','join','nextMetadata','documentData','min','tables','509528hlHXQp','getCodes','unitId','asObservable','cancelEmptyParagraph','_commandService','docs-code-','blockType','_resources','676584cOCImr','symbol','PARAGRAPH','function','metadata','next','_getBlockRange','dataStream','codes','from','cursorOffset','change$','1218744oNqSpF','sectionBreaks','compose','blockId','293290jKukXt','now','_change$','default','find','docs-code.command.cancel-empty-paragraph','paragraphStartIndex','1CbSUvC','customRanges','config','customDecorations','textStyle','object','body','defineProperty','assign','removeUnit','removeCode','filter','delete','1321243qwBSZx','6782571AlEOcX','spaceAbove','getId','startOffset','getCodeConfig','COMMAND','getDocumentData','getSnapshot','forEach','syncExecuteCommand','map','previousDocumentData','getInstance','BLOCK_START','updateConfig','docs-code.command.insert','customBlocks','length'];_0x2ca1=function(){return _0x27ef4b;};return _0x2ca1();}function S(_0x56be54,_0x41588f){const _0x457e84=_0x4eda42;var _0x6ef918;return(_0x6ef918=_0x56be54['blockRanges'])==null?void 0x0:_0x6ef918[_0x457e84(0x186)](_0x450d96=>{const _0x2826ec=_0x457e84;let _0x138fab=A(_0x56be54,_0x450d96);return _0x450d96[_0x2826ec(0x1ec)]===_0x2826ec(0x1bd)&&_0x450d96[_0x2826ec(0x1a9)]<=_0x41588f&&_0x41588f<=_0x138fab+0x2;});}function C(_0x58cf64,_0x260fec,_0x193138=!0x1){return{'indentEnd':{'v':0x14},'indentStart':{'v':0x14},..._0x58cf64&&_0x193138?{'spaceAbove':{'v':0x8}}:{},'textStyle':{'ff':y,'fs':0xc}};}function w(_0x361f7c,_0x6c4ef7,_0x1a070a,_0x185c53=!0x1){const _0x571839=_0x4eda42;var _0xe95fb6;let _0xaf7259=((_0xe95fb6=_0x361f7c[_0x571839(0x1af)])==null?[]:_0xe95fb6)[_0x571839(0x194)](_0x4273c2=>_0x4273c2[_0x571839(0x1a9)]>_0x6c4ef7&&_0x4273c2[_0x571839(0x1a9)]<_0x1a070a);_0xaf7259['forEach']((_0x5a1367,_0x2ea7b1)=>{const _0x447f03=_0x571839;var _0x9ca899;_0x5a1367[_0x447f03(0x1d9)]={...(_0x9ca899=_0x5a1367[_0x447f03(0x1d9)])==null?{}:_0x9ca899,...C(_0x2ea7b1===0x0,_0x2ea7b1===_0xaf7259[_0x447f03(0x1a8)]-0x1,_0x185c53)};});}function ae(_0xf4b326){const _0x3ee534=_0x4eda42;var _0x43fc72,_0x3a5fdc;let _0x510486={..._0xf4b326==null?{}:_0xf4b326};return delete _0x510486[_0x3ee534(0x1b0)],delete _0x510486['indentStart'],delete _0x510486['spaceAbove'],delete _0x510486[_0x3ee534(0x1b2)],((_0x43fc72=_0x510486['textStyle'])==null?void 0x0:_0x43fc72['ff'])===y&&((_0x3a5fdc=_0x510486[_0x3ee534(0x18d)])==null?void 0x0:_0x3a5fdc['fs'])===0xc&&delete _0x510486['textStyle'],_0x510486;}function T(_0x5c753e,_0xe09618){const _0x1e2ab6=_0x4eda42;var _0x449f17;let _0x17e8c5=A(_0x5c753e,_0xe09618);return((_0x449f17=_0x5c753e[_0x1e2ab6(0x1af)])==null?[]:_0x449f17)['filter'](_0x4d6a61=>_0x4d6a61[_0x1e2ab6(0x1a9)]>_0xe09618[_0x1e2ab6(0x1a9)]&&_0x4d6a61[_0x1e2ab6(0x1a9)]<_0x17e8c5);}function oe(_0x453f49,_0x4680f0,_0x225f17){const _0x15c9df=_0x4eda42;let _0x9ed2c=k(_0x453f49,_0x4680f0,_0x225f17),_0x434cd7=_0x453f49[_0x15c9df(0x1f5)]['slice'](_0x9ed2c,_0x225f17[_0x15c9df(0x1a9)]);return Array[_0x15c9df(0x17b)](_0x434cd7)[_0x15c9df(0x1d0)](_0x2e4327=>_0x2e4327===_0x212422[_0x15c9df(0x1a4)]||_0x2e4327===_0x212422[_0x15c9df(0x1ac)]);}function E(_0x101d96){const _0x2e3ea1=_0x4eda42;return _0x49d96f[_0x2e3ea1(0x1b6)](_0x101d96);}function D(_0x3aa15d){const _0x505f18=_0x4eda42;if(!_0x3aa15d[_0x505f18(0x18f)])throw Error(_0x505f18(0x1ce));return _0x3aa15d[_0x505f18(0x18f)];}function se(_0x2843b3,_0x11e145,_0x1847dc){const _0x2a0cdf=_0x4eda42;if(_0x11e145==null||_0x1847dc==null){let _0x592331=ce(_0x2843b3);return{'startOffset':_0x592331,'endOffset':_0x592331};}let _0x214dd3=Math[_0x2a0cdf(0x1e3)](_0x11e145,_0x1847dc),_0x54523b=Math[_0x2a0cdf(0x1c2)](_0x11e145,_0x1847dc);return _0x214dd3===_0x54523b?{'startOffset':_0x214dd3,'endOffset':_0x214dd3}:ue(_0x2843b3,_0x214dd3,_0x54523b);}function ce(_0x1e0e7f){const _0x42c79a=_0x4eda42;return _0x1e0e7f[_0x42c79a(0x1f5)][_0x42c79a(0x1ca)](_0x212422[_0x42c79a(0x1b8)])?Math[_0x42c79a(0x1c2)](0x0,_0x1e0e7f[_0x42c79a(0x1f5)][_0x42c79a(0x1a8)]-0x1):_0x1e0e7f[_0x42c79a(0x1f5)][_0x42c79a(0x1a8)];}function le(_0x401d98,_0x3c391a,_0x22a4b7){const _0x5b40a4=_0x4eda42;var _0x5b8af6;let _0x30bb5b=Math['min'](_0x3c391a,_0x22a4b7),_0x542433=Math['max'](_0x3c391a,_0x22a4b7);return!!((_0x5b8af6=_0x401d98[_0x5b40a4(0x1e4)])!=null&&_0x5b8af6[_0x5b40a4(0x1c8)](_0x1330b7=>_0x30bb5b>_0x1330b7[_0x5b40a4(0x1a9)]&&_0x30bb5b<_0x1330b7['endIndex']||_0x542433>_0x1330b7[_0x5b40a4(0x1a9)]&&_0x542433<_0x1330b7[_0x5b40a4(0x1d7)]||_0x30bb5b<=_0x1330b7['startIndex']&&_0x542433>=_0x1330b7[_0x5b40a4(0x1d7)]));}function ue(_0x5c1430,_0x521c89,_0x49925c){const _0x1f60fa=_0x4eda42;var _0x2c63be,_0x478a83;let _0x3ef2e8=[...(_0x2c63be=_0x5c1430[_0x1f60fa(0x1af)])==null?[]:_0x2c63be][_0x1f60fa(0x1ab)]((_0x139452,_0x5c9653)=>_0x139452[_0x1f60fa(0x1a9)]-_0x5c9653[_0x1f60fa(0x1a9)]),_0x14c7cd=_0x3ef2e8[_0x1f60fa(0x186)]((_0x6f865c,_0x58b90f)=>(_0x58b90f===0x0?0x0:_0x3ef2e8[_0x58b90f-0x1][_0x1f60fa(0x1a9)]+0x1)<=_0x521c89&&_0x521c89<=_0x6f865c[_0x1f60fa(0x1a9)]),_0x35c053=(_0x478a83=_0x3ef2e8[_0x1f60fa(0x186)](_0x78ba1a=>_0x78ba1a[_0x1f60fa(0x1a9)]>=_0x49925c-0x1))==null?_0x3ef2e8[_0x3ef2e8[_0x1f60fa(0x1a8)]-0x1]:_0x478a83;return{'startOffset':_0x14c7cd?O(_0x3ef2e8,_0x14c7cd):_0x521c89,'endOffset':_0x35c053?_0x35c053[_0x1f60fa(0x1a9)]+0x1:_0x49925c};}function O(_0x1ede80,_0x2c1899){const _0x484bac=_0x4eda42;let _0x3bc944=_0x1ede80[_0x484bac(0x1c0)](_0x2c1899);return _0x3bc944>0x0?_0x1ede80[_0x3bc944-0x1][_0x484bac(0x1a9)]+0x1:0x0;}function k(_0x5d12a9,_0xbd41e6,_0x494189){const _0x5df25f=_0x4eda42;var _0x868a7f;return Math[_0x5df25f(0x1c2)](O((_0x868a7f=_0x5d12a9['paragraphs'])==null?[]:_0x868a7f,_0x494189),_0xbd41e6[_0x5df25f(0x1a9)]+0x1);}function A(_0x145148,_0x4c7364){const _0x45cd73=_0x4eda42;return _0x145148[_0x45cd73(0x1f5)][_0x4c7364[_0x45cd73(0x1d7)]]===_0x212422['BLOCK_END']?_0x4c7364[_0x45cd73(0x1d7)]:_0x145148[_0x45cd73(0x1f5)][_0x4c7364[_0x45cd73(0x1d7)]+0x1]===_0x212422['BLOCK_END']?_0x4c7364[_0x45cd73(0x1d7)]+0x1:_0x4c7364[_0x45cd73(0x1d7)];}function de(_0xdd246b,_0x261cd6,_0x48e198,_0x1610c2){const _0x3c31a8=_0x4eda42;var _0x143362,_0x21f2f0;let _0x485402=A(_0xdd246b,_0x261cd6),_0x334dc7=((_0x143362=_0xdd246b[_0x3c31a8(0x1af)])==null?[]:_0x143362)['find'](_0xb6d5f0=>_0xb6d5f0[_0x3c31a8(0x1a9)]===_0x485402+0x1);if(!_0x334dc7||_0x1610c2!=null&&_0x334dc7[_0x3c31a8(0x1a9)]!==_0x1610c2||_0x48e198<_0x485402||_0x48e198>_0x334dc7[_0x3c31a8(0x1a9)]+0x1||_0xdd246b[_0x3c31a8(0x1f5)][_0x334dc7[_0x3c31a8(0x1a9)]]!==_0x212422[_0x3c31a8(0x1f0)])return null;let _0xb04d=O((_0x21f2f0=_0xdd246b['paragraphs'])==null?[]:_0x21f2f0,_0x334dc7),_0x22a028=_0xdd246b[_0x3c31a8(0x1f5)]['slice'](_0xb04d,_0x334dc7[_0x3c31a8(0x1a9)]);return Array[_0x3c31a8(0x17b)](_0x22a028)[_0x3c31a8(0x1d0)](_0x235f7b=>_0x235f7b===_0x212422['BLOCK_END'])?{'paragraph':_0x334dc7,'endTokenOffset':_0x485402}:null;}function j(_0x48e5df,_0x3de63b,_0x3e8e0c,_0x44c24e={}){const _0x23b32d=_0x4eda42;var _0x43998c,_0x56d73a;if(_0x3e8e0c){if(_0x48e5df['dataStream']=''+_0x48e5df[_0x23b32d(0x1f5)][_0x23b32d(0x1de)](0x0,_0x3de63b)+_0x3e8e0c+_0x48e5df[_0x23b32d(0x1f5)][_0x23b32d(0x1de)](_0x3de63b),N(_0x48e5df,_0x3de63b,_0x3e8e0c[_0x23b32d(0x1a8)]),(_0x43998c=_0x44c24e[_0x23b32d(0x1af)])!=null&&_0x43998c['length']){var _0x35a54f;_0x48e5df[_0x23b32d(0x1af)]=[...(_0x35a54f=_0x48e5df[_0x23b32d(0x1af)])==null?[]:_0x35a54f,..._0x44c24e[_0x23b32d(0x1af)][_0x23b32d(0x1a1)](_0xa1e844=>({..._0xa1e844,'startIndex':_0xa1e844[_0x23b32d(0x1a9)]+_0x3de63b}))][_0x23b32d(0x1ab)]((_0x576b76,_0x7d2cf5)=>_0x576b76['startIndex']-_0x7d2cf5[_0x23b32d(0x1a9)]);}if((_0x56d73a=_0x44c24e[_0x23b32d(0x1cb)])!=null&&_0x56d73a[_0x23b32d(0x1a8)]){var _0x122fbe;_0x48e5df[_0x23b32d(0x1cb)]=[...(_0x122fbe=_0x48e5df[_0x23b32d(0x1cb)])==null?[]:_0x122fbe,..._0x44c24e['blockRanges'][_0x23b32d(0x1a1)](_0x4faac5=>({..._0x4faac5,'startIndex':_0x4faac5['startIndex']+_0x3de63b,'endIndex':_0x4faac5[_0x23b32d(0x1d7)]+_0x3de63b}))][_0x23b32d(0x1ab)]((_0x30ef67,_0x29cf97)=>_0x30ef67[_0x23b32d(0x1a9)]-_0x29cf97[_0x23b32d(0x1a9)]);}}}function M(_0x4880c1,_0x2d9ca3,_0x3a1db9){const _0x23bee7=_0x4eda42;let _0x2737d5=_0x3a1db9-_0x2d9ca3;_0x4880c1[_0x23bee7(0x1f5)]=''+_0x4880c1[_0x23bee7(0x1f5)][_0x23bee7(0x1de)](0x0,_0x2d9ca3)+_0x4880c1['dataStream'][_0x23bee7(0x1de)](_0x3a1db9),P(_0x4880c1,_0x2d9ca3,_0x2737d5);}function N(_0x3d523d,_0x194f30,_0x1e08ef){const _0x366f5d=_0x4eda42;_0x3d523d[_0x366f5d(0x1af)]=F(_0x3d523d[_0x366f5d(0x1af)],_0x194f30,_0x1e08ef),_0x3d523d['sectionBreaks']=F(_0x3d523d[_0x366f5d(0x17f)],_0x194f30,_0x1e08ef),_0x3d523d[_0x366f5d(0x1a7)]=F(_0x3d523d[_0x366f5d(0x1a7)],_0x194f30,_0x1e08ef),_0x3d523d[_0x366f5d(0x1b4)]=fe(_0x3d523d[_0x366f5d(0x1b4)],_0x194f30,_0x1e08ef),_0x3d523d['tables']=L(_0x3d523d[_0x366f5d(0x1e4)],_0x194f30,_0x1e08ef),_0x3d523d[_0x366f5d(0x18a)]=L(_0x3d523d[_0x366f5d(0x18a)],_0x194f30,_0x1e08ef),_0x3d523d[_0x366f5d(0x18c)]=L(_0x3d523d[_0x366f5d(0x18c)],_0x194f30,_0x1e08ef),_0x3d523d['blockRanges']=L(_0x3d523d[_0x366f5d(0x1cb)],_0x194f30,_0x1e08ef);}function P(_0x4ee322,_0x487744,_0x100b68){const _0x321727=_0x4eda42;var _0x3ac4ea,_0x25425c;_0x4ee322[_0x321727(0x1af)]=I(_0x4ee322[_0x321727(0x1af)],_0x487744,_0x100b68),_0x4ee322[_0x321727(0x17f)]=I(_0x4ee322[_0x321727(0x17f)],_0x487744,_0x100b68),_0x4ee322[_0x321727(0x1a7)]=I(_0x4ee322['customBlocks'],_0x487744,_0x100b68),_0x4ee322[_0x321727(0x1b4)]=(_0x3ac4ea=R((_0x25425c=_0x4ee322[_0x321727(0x1b4)])==null?void 0x0:_0x25425c['map'](_0x5c807b=>({..._0x5c807b,'startIndex':_0x5c807b['st'],'endIndex':_0x5c807b['ed']})),_0x487744,_0x100b68))==null?void 0x0:_0x3ac4ea[_0x321727(0x1a1)](_0x32b33b=>{let {startIndex:_0x377f2e,endIndex:_0x458135,..._0x5925e8}=_0x32b33b;return{..._0x5925e8,'st':_0x377f2e,'ed':_0x458135};}),_0x4ee322[_0x321727(0x1e4)]=R(_0x4ee322[_0x321727(0x1e4)],_0x487744,_0x100b68),_0x4ee322[_0x321727(0x18a)]=R(_0x4ee322['customRanges'],_0x487744,_0x100b68),_0x4ee322['customDecorations']=R(_0x4ee322[_0x321727(0x18c)],_0x487744,_0x100b68),_0x4ee322['blockRanges']=R(_0x4ee322[_0x321727(0x1cb)],_0x487744,_0x100b68);}function F(_0x1223a0,_0xd403f6,_0x23c4c0){const _0x201181=_0x4eda42;return _0x1223a0==null?void 0x0:_0x1223a0[_0x201181(0x1a1)](_0x576035=>_0x576035['startIndex']>=_0xd403f6?{..._0x576035,'startIndex':_0x576035[_0x201181(0x1a9)]+_0x23c4c0}:_0x576035);}function I(_0x6f7bc2,_0x1ff358,_0x4761ab){const _0x46b92e=_0x4eda42;let _0x1ba9e9=_0x1ff358+_0x4761ab;return _0x6f7bc2==null?void 0x0:_0x6f7bc2[_0x46b92e(0x1a1)](_0x148529=>_0x148529[_0x46b92e(0x1a9)]>=_0x1ff358&&_0x148529['startIndex']<_0x1ba9e9?null:_0x148529[_0x46b92e(0x1a9)]>=_0x1ba9e9?{..._0x148529,'startIndex':_0x148529[_0x46b92e(0x1a9)]-_0x4761ab}:_0x148529)[_0x46b92e(0x194)](_0x5e2f61=>_0x5e2f61!=null);}function fe(_0x4dc59d,_0x20a8bb,_0x4aed82){return _0x4dc59d==null?void 0x0:_0x4dc59d['map'](_0x58f5df=>_0x58f5df['st']>=_0x20a8bb?{..._0x58f5df,'st':_0x58f5df['st']+_0x4aed82,'ed':_0x58f5df['ed']+_0x4aed82}:_0x58f5df['ed']>_0x20a8bb?{..._0x58f5df,'ed':_0x58f5df['ed']+_0x4aed82}:_0x58f5df);}function L(_0x550e0d,_0x19f77c,_0x41846c){const _0x2361c3=_0x4eda42;return _0x550e0d==null?void 0x0:_0x550e0d[_0x2361c3(0x1a1)](_0x19a7e5=>_0x19a7e5[_0x2361c3(0x1a9)]>=_0x19f77c?{..._0x19a7e5,'startIndex':_0x19a7e5['startIndex']+_0x41846c,'endIndex':_0x19a7e5[_0x2361c3(0x1d7)]+_0x41846c}:_0x19a7e5[_0x2361c3(0x1d7)]>=_0x19f77c?{..._0x19a7e5,'endIndex':_0x19a7e5[_0x2361c3(0x1d7)]+_0x41846c}:_0x19a7e5);}function R(_0x1a6616,_0x5c975d,_0x3ca8ac){const _0x45fece=_0x4eda42;let _0x91460c=_0x5c975d+_0x3ca8ac;return _0x1a6616==null?void 0x0:_0x1a6616['map'](_0x1462b9=>_0x1462b9[_0x45fece(0x1a9)]>=_0x5c975d&&_0x1462b9[_0x45fece(0x1d7)]<_0x91460c?null:_0x1462b9['startIndex']>=_0x91460c?{..._0x1462b9,'startIndex':_0x1462b9[_0x45fece(0x1a9)]-_0x3ca8ac,'endIndex':_0x1462b9[_0x45fece(0x1d7)]-_0x3ca8ac}:_0x1462b9[_0x45fece(0x1d7)]>=_0x5c975d?{..._0x1462b9,'startIndex':_0x1462b9[_0x45fece(0x1a9)]<_0x5c975d?_0x1462b9['startIndex']:_0x5c975d,'endIndex':Math[_0x45fece(0x1c2)](_0x5c975d,_0x1462b9[_0x45fece(0x1d7)]-_0x3ca8ac)}:_0x1462b9)[_0x45fece(0x194)](_0x4cf8e8=>_0x4cf8e8!=null);}function z(_0xfbfb09,_0x49a344,_0x530816,_0x32dc2d){const _0x4bafe4=_0x4eda42;_0xfbfb09==null||_0xfbfb09[_0x4bafe4(0x19f)](_0x29a57e=>{const _0x48c80c=_0x4bafe4;_0x29a57e[_0x48c80c(0x1a9)]>=_0x49a344&&_0x29a57e[_0x48c80c(0x1a9)]<_0x530816&&(_0x29a57e['startIndex']+=_0x32dc2d);});}function pe(_0x48e784,_0x5e707d,_0x11aad7,_0x1a2872){_0x48e784==null||_0x48e784['forEach'](_0x778eb8=>{_0x778eb8['st']>=_0x5e707d&&_0x778eb8['st']<_0x11aad7?(_0x778eb8['st']+=_0x1a2872,_0x778eb8['ed']+=_0x1a2872):_0x778eb8['ed']>_0x5e707d&&_0x778eb8['ed']<_0x11aad7&&(_0x778eb8['ed']+=_0x1a2872);});}function B(_0x3a41fe,_0x101166,_0x23ce88,_0x3932b5){const _0x3e686f=_0x4eda42;_0x3a41fe==null||_0x3a41fe[_0x3e686f(0x19f)](_0x1cef8d=>{const _0x51cd0=_0x3e686f;_0x1cef8d[_0x51cd0(0x1a9)]>=_0x101166&&_0x1cef8d[_0x51cd0(0x1a9)]<_0x23ce88?(_0x1cef8d[_0x51cd0(0x1a9)]+=_0x3932b5,_0x1cef8d[_0x51cd0(0x1d7)]+=_0x3932b5):_0x1cef8d[_0x51cd0(0x1d7)]>_0x101166&&_0x1cef8d[_0x51cd0(0x1d7)]<_0x23ce88&&(_0x1cef8d[_0x51cd0(0x1d7)]+=_0x3932b5);});}function V(_0x1e5b10){'@babel/helpers - typeof';const _0x1cfbfe=_0x4eda42;return V=typeof Symbol==_0x1cfbfe(0x1f1)&&typeof Symbol[_0x1cfbfe(0x1df)]==_0x1cfbfe(0x1ef)?function(_0x4f676d){return typeof _0x4f676d;}:function(_0x4cfdb1){const _0x174640=_0x1cfbfe;return _0x4cfdb1&&typeof Symbol==_0x174640(0x1f1)&&_0x4cfdb1[_0x174640(0x1b7)]===Symbol&&_0x4cfdb1!==Symbol[_0x174640(0x1d1)]?_0x174640(0x1ef):typeof _0x4cfdb1;},V(_0x1e5b10);}function me(_0x6af159,_0x2e0ff8){const _0x435805=_0x4eda42;if(V(_0x6af159)!=_0x435805(0x18e)||!_0x6af159)return _0x6af159;var _0x1fc1dc=_0x6af159[Symbol['toPrimitive']];if(_0x1fc1dc!==void 0x0){var _0x522355=_0x1fc1dc['call'](_0x6af159,_0x2e0ff8||_0x435805(0x185));if(V(_0x522355)!=_0x435805(0x18e))return _0x522355;throw TypeError(_0x435805(0x1d6));}return(_0x2e0ff8===_0x435805(0x1cc)?String:Number)(_0x6af159);}function he(_0x5af750){const _0xb8ea09=_0x4eda42;var _0x4345b9=me(_0x5af750,'string');return V(_0x4345b9)==_0xb8ea09(0x1ef)?_0x4345b9:_0x4345b9+'';}function H(_0x203b8a,_0x250239,_0x31a71d){const _0x3310d3=_0x4eda42;return(_0x250239=he(_0x250239))in _0x203b8a?Object[_0x3310d3(0x190)](_0x203b8a,_0x250239,{'value':_0x31a71d,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x203b8a[_0x250239]=_0x31a71d,_0x203b8a;}var U=class extends _0x207dae{constructor(..._0x279fb7){const _0x5d23de=_0x4eda42;super(..._0x279fb7),H(this,_0x5d23de(0x1ed),new Map()),H(this,_0x5d23de(0x184),new _0x463d46()),H(this,_0x5d23de(0x17d),this[_0x5d23de(0x184)][_0x5d23de(0x1e8)]());}['getCodeConfig'](_0x4c5553,_0x1bb813){const _0xe5fa79=_0x4eda42;return g(this[_0xe5fa79(0x1ed)][_0xe5fa79(0x1dc)](_0x4c5553))[_0xe5fa79(0x1f6)][_0x1bb813];}[_0x4eda42(0x1b5)](_0x393ad9,_0x469394,_0x56776e){const _0x50bf71=_0x4eda42;this[_0x50bf71(0x1c5)](_0x393ad9,_0x469394,_(this[_0x50bf71(0x1ed)]['get'](_0x393ad9),_0x469394,_0x56776e));}[_0x4eda42(0x193)](_0x3a85ba,_0x498b5a){const _0x1460da=_0x4eda42;this[_0x1460da(0x1c5)](_0x3a85ba,_0x498b5a,v(this[_0x1460da(0x1ed)][_0x1460da(0x1dc)](_0x3a85ba),_0x498b5a));}[_0x4eda42(0x1d5)](_0x568b6b){const _0xc1ca9=_0x4eda42;return g(this[_0xc1ca9(0x1ed)][_0xc1ca9(0x1dc)](_0x568b6b));}[_0x4eda42(0x1ad)](_0x3f6435,_0x4f8dd3){const _0x8c1811=_0x4eda42;this[_0x8c1811(0x1ed)][_0x8c1811(0x1ae)](_0x3f6435,g(_0x4f8dd3)),this[_0x8c1811(0x184)][_0x8c1811(0x1f3)]({'unitId':_0x3f6435});}[_0x4eda42(0x192)](_0x12b423){const _0x3d5e75=_0x4eda42;this['_resources'][_0x3d5e75(0x195)](_0x12b423),this[_0x3d5e75(0x184)][_0x3d5e75(0x1f3)]({'unitId':_0x12b423});}[_0x4eda42(0x1da)](){const _0x3063d0=_0x4eda42;super[_0x3063d0(0x1da)](),this['_resources']['clear'](),this[_0x3063d0(0x184)]['complete']();}['_setResource'](_0x325af7,_0x3cadc9,_0x46b482){const _0xb18d2e=_0x4eda42;this['_resources'][_0xb18d2e(0x1ae)](_0x325af7,_0x46b482),this[_0xb18d2e(0x184)][_0xb18d2e(0x1f3)]({'unitId':_0x325af7,'blockId':_0x3cadc9});}};_0x1a9309[_0x4eda42(0x19c)],_0x1a9309['COMMAND'];const ge={'id':_0x4eda42(0x1a6),'type':_0x1a9309[_0x4eda42(0x19c)],'handler':(_0x5394ee,_0x13bc3e)=>{const _0x360e76=_0x4eda42;var _0x2856aa,_0x4d50f3,_0x14551c;let _0x1d42f3=K(_0x5394ee,_0x13bc3e==null?void 0x0:_0x13bc3e[_0x360e76(0x1e7)]);if(!_0x1d42f3)return!0x1;let _0x12c683=q(_0x5394ee),_0x784c26=b({'blockId':(_0x2856aa=_0x13bc3e==null?void 0x0:_0x13bc3e[_0x360e76(0x181)])==null?_0x46d562(0x6):_0x2856aa,'config':_0x13bc3e==null?void 0x0:_0x13bc3e[_0x360e76(0x18b)],'documentData':_0x1d42f3[_0x360e76(0x1a2)],'endOffset':(_0x4d50f3=_0x13bc3e==null?void 0x0:_0x13bc3e['endOffset'])==null?_0x12c683==null?void 0x0:_0x12c683[_0x360e76(0x1d8)]:_0x4d50f3,'metadata':_0x1d42f3[_0x360e76(0x1c7)]['serialize'](_0x1d42f3[_0x360e76(0x1e7)]),'startOffset':(_0x14551c=_0x13bc3e==null?void 0x0:_0x13bc3e[_0x360e76(0x19a)])==null?_0x12c683==null?void 0x0:_0x12c683[_0x360e76(0x19a)]:_0x14551c}),_0x581328=Y(_0x1d42f3[_0x360e76(0x1ba)],_0x1d42f3[_0x360e76(0x1e7)],_0x1d42f3[_0x360e76(0x1a2)],_0x784c26[_0x360e76(0x1dd)],_0x784c26[_0x360e76(0x17c)]);return _0x581328&&_0x784c26['nextMetadata']&&_0x1d42f3[_0x360e76(0x1c7)][_0x360e76(0x1ad)](_0x1d42f3['unitId'],_0x784c26['nextMetadata']),_0x581328;}},_e={'id':'docs-code.command.update','type':_0x1a9309['COMMAND'],'handler':(_0x627b7e,_0x4a7799)=>{const _0xa6c2a1=_0x4eda42;if(!_0x4a7799)return!0x1;let _0x379663=K(_0x627b7e,_0x4a7799[_0xa6c2a1(0x1e7)]);if(!_0x379663)return!0x1;let _0x17028d=te({'blockId':_0x4a7799[_0xa6c2a1(0x181)],'config':_0x4a7799['config'],'documentData':_0x379663[_0xa6c2a1(0x1a2)],'metadata':_0x379663[_0xa6c2a1(0x1c7)][_0xa6c2a1(0x1d5)](_0x379663[_0xa6c2a1(0x1e7)])});return _0x17028d[_0xa6c2a1(0x1e1)]&&_0x379663[_0xa6c2a1(0x1c7)][_0xa6c2a1(0x1ad)](_0x379663[_0xa6c2a1(0x1e7)],_0x17028d[_0xa6c2a1(0x1e1)]),!0x0;}},W={'id':'docs-code.command.exit','type':_0x1a9309[_0x4eda42(0x19c)],'handler':(_0x561abb,_0x2a9ecf)=>{const _0x3e1ca8=_0x4eda42;var _0x306559,_0x3ad58b;let _0x4d2191=K(_0x561abb,_0x2a9ecf==null?void 0x0:_0x2a9ecf[_0x3e1ca8(0x1e7)]);if(!_0x4d2191)return!0x1;let _0x481330=(_0x306559=_0x2a9ecf==null?void 0x0:_0x2a9ecf[_0x3e1ca8(0x17c)])==null?(_0x3ad58b=q(_0x561abb))==null?void 0x0:_0x3ad58b[_0x3e1ca8(0x19a)]:_0x306559;if(_0x481330==null)return!0x1;let _0x340418=ne({'cursorOffset':_0x481330,'documentData':_0x4d2191[_0x3e1ca8(0x1a2)]});return _0x340418?Y(_0x4d2191['commandService'],_0x4d2191[_0x3e1ca8(0x1e7)],_0x4d2191[_0x3e1ca8(0x1a2)],_0x340418[_0x3e1ca8(0x1dd)],_0x340418[_0x3e1ca8(0x17c)]):!0x1;}},G={'id':_0x4eda42(0x187),'type':_0x1a9309[_0x4eda42(0x19c)],'handler':(_0x5e6f3e,_0x15a8e2)=>{const _0x3e6a1e=_0x4eda42;var _0x28c3e7,_0x2b5200;let _0x10ee8a=K(_0x5e6f3e,_0x15a8e2==null?void 0x0:_0x15a8e2[_0x3e6a1e(0x1e7)]);if(!_0x10ee8a)return!0x1;let _0x385e0b=(_0x28c3e7=_0x15a8e2==null?void 0x0:_0x15a8e2['cursorOffset'])==null?(_0x2b5200=q(_0x5e6f3e))==null?void 0x0:_0x2b5200[_0x3e6a1e(0x19a)]:_0x28c3e7;if(_0x385e0b==null)return!0x1;let _0x56ed96=re({'cursorOffset':_0x385e0b,'documentData':_0x10ee8a[_0x3e6a1e(0x1a2)],'paragraphStartIndex':_0x15a8e2==null?void 0x0:_0x15a8e2[_0x3e6a1e(0x188)]});return _0x56ed96?Y(_0x10ee8a[_0x3e6a1e(0x1ba)],_0x10ee8a[_0x3e6a1e(0x1e7)],_0x10ee8a['previousDocumentData'],_0x56ed96[_0x3e6a1e(0x1dd)],_0x56ed96[_0x3e6a1e(0x17c)]):!0x1;}};function K(_0x325a73,_0x22da7c){const _0x26b906=_0x4eda42;let _0x25eb53=_0x325a73[_0x26b906(0x1dc)](_0x23aeb7),_0x5f4846=_0x22da7c?_0x25eb53[_0x26b906(0x1be)](_0x22da7c):_0x25eb53[_0x26b906(0x1c4)](_0x111228['UNIVER_DOC']);return _0x5f4846?{'commandService':_0x325a73['get'](_0x4da3ce),'model':_0x325a73['get'](U),'previousDocumentData':_0x5f4846[_0x26b906(0x19e)](),'unitId':_0x5f4846[_0x26b906(0x1bf)]()}:null;}function q(_0x57a0ac){const _0x532c60=_0x4eda42;var _0x171f88;return(_0x171f88=_0x57a0ac[_0x532c60(0x1dc)](_0x1bfc20)[_0x532c60(0x1cd)]())==null?void 0x0:_0x171f88[0x0];}function ve(_0x6ba0e6,_0x19d7e8){const _0x35da52=_0x4eda42;var _0x59e229,_0x1e5e02,_0x4d1ff4,_0x5ad2e3,_0x2e4c71,_0x19f927,_0x3ef2bc,_0x583d60,_0x4647e4,_0x21c1d7,_0x3c5990,_0x37d555,_0x2db09c,_0x30c664,_0x4731da,_0x31c562,_0x5d65c5,_0x54f533;let _0x1bb2b3=_0x238fe4[_0x35da52(0x1a3)]();return[J(_0x1bb2b3,[_0x35da52(0x18f),_0x35da52(0x1f5)],(_0x59e229=_0x6ba0e6[_0x35da52(0x18f)])==null?void 0x0:_0x59e229[_0x35da52(0x1f5)],(_0x1e5e02=_0x19d7e8[_0x35da52(0x18f)])==null?void 0x0:_0x1e5e02[_0x35da52(0x1f5)]),J(_0x1bb2b3,[_0x35da52(0x18f),_0x35da52(0x1af)],(_0x4d1ff4=_0x6ba0e6['body'])==null?void 0x0:_0x4d1ff4['paragraphs'],(_0x5ad2e3=_0x19d7e8['body'])==null?void 0x0:_0x5ad2e3[_0x35da52(0x1af)]),J(_0x1bb2b3,[_0x35da52(0x18f),_0x35da52(0x17f)],(_0x2e4c71=_0x6ba0e6[_0x35da52(0x18f)])==null?void 0x0:_0x2e4c71['sectionBreaks'],(_0x19f927=_0x19d7e8[_0x35da52(0x18f)])==null?void 0x0:_0x19f927['sectionBreaks']),J(_0x1bb2b3,[_0x35da52(0x18f),_0x35da52(0x1b4)],(_0x3ef2bc=_0x6ba0e6[_0x35da52(0x18f)])==null?void 0x0:_0x3ef2bc[_0x35da52(0x1b4)],(_0x583d60=_0x19d7e8[_0x35da52(0x18f)])==null?void 0x0:_0x583d60[_0x35da52(0x1b4)]),J(_0x1bb2b3,[_0x35da52(0x18f),_0x35da52(0x1a7)],(_0x4647e4=_0x6ba0e6[_0x35da52(0x18f)])==null?void 0x0:_0x4647e4[_0x35da52(0x1a7)],(_0x21c1d7=_0x19d7e8['body'])==null?void 0x0:_0x21c1d7[_0x35da52(0x1a7)]),J(_0x1bb2b3,[_0x35da52(0x18f),'customRanges'],(_0x3c5990=_0x6ba0e6['body'])==null?void 0x0:_0x3c5990['customRanges'],(_0x37d555=_0x19d7e8[_0x35da52(0x18f)])==null?void 0x0:_0x37d555[_0x35da52(0x18a)]),J(_0x1bb2b3,[_0x35da52(0x18f),_0x35da52(0x18c)],(_0x2db09c=_0x6ba0e6[_0x35da52(0x18f)])==null?void 0x0:_0x2db09c[_0x35da52(0x18c)],(_0x30c664=_0x19d7e8[_0x35da52(0x18f)])==null?void 0x0:_0x30c664[_0x35da52(0x18c)]),J(_0x1bb2b3,[_0x35da52(0x18f),_0x35da52(0x1e4)],(_0x4731da=_0x6ba0e6['body'])==null?void 0x0:_0x4731da[_0x35da52(0x1e4)],(_0x31c562=_0x19d7e8[_0x35da52(0x18f)])==null?void 0x0:_0x31c562['tables']),J(_0x1bb2b3,[_0x35da52(0x18f),'blockRanges'],(_0x5d65c5=_0x6ba0e6[_0x35da52(0x18f)])==null?void 0x0:_0x5d65c5[_0x35da52(0x1cb)],(_0x54f533=_0x19d7e8[_0x35da52(0x18f)])==null?void 0x0:_0x54f533[_0x35da52(0x1cb)])][_0x35da52(0x194)](Boolean)[_0x35da52(0x1c9)]((_0xc48ee2,_0x10ee4a)=>_0x238fe4[_0x35da52(0x180)](_0xc48ee2,_0x10ee4a),null);}function J(_0x104994,_0x1b58ce,_0x372bc1,_0xb7cf6c){const _0x715021=_0x4eda42;return _0x49d96f['diffValue'](_0x372bc1,_0xb7cf6c)?null:_0x104994[_0x715021(0x1db)](_0x1b58ce,_0x372bc1,_0xb7cf6c);}function Y(_0x3addf5,_0x57771a,_0x4277f6,_0x1c7b5e,_0x16ce7e){const _0x267aba=_0x4eda42;let _0x4ec386=ve(_0x4277f6,_0x1c7b5e);return _0x4ec386?!!_0x3addf5[_0x267aba(0x1a0)](_0x44b7b2['id'],{'unitId':_0x57771a,'actions':_0x4ec386,'textRanges':[{'startOffset':_0x16ce7e,'endOffset':_0x16ce7e,'collapsed':!0x0}],'isEditing':!0x1}):!0x1;}var X=class{constructor(_0x9ba6d2){const _0x4267c3=_0x4eda42;this[_0x4267c3(0x1c3)]=_0x9ba6d2;}[_0x4eda42(0x199)](){const _0x39007a=_0x4eda42;return this[_0x39007a(0x1c3)][_0x39007a(0x181)];}[_0x4eda42(0x1aa)](){const _0x47844f=_0x4eda42;let _0x282374=this[_0x47844f(0x1f4)]();return _0x282374?{'blockId':_0x282374[_0x47844f(0x181)],'endIndex':_0x282374[_0x47844f(0x1d7)],'startIndex':_0x282374[_0x47844f(0x1a9)]}:null;}[_0x4eda42(0x1c1)](){const _0x184eda=_0x4eda42;var _0x28b33d;let _0x17e8c8=this[_0x184eda(0x1f4)](),_0x3efbde=(_0x28b33d=this[_0x184eda(0x1c3)]['getDocumentData']()[_0x184eda(0x18f)])==null?void 0x0:_0x28b33d[_0x184eda(0x1f5)];return!_0x17e8c8||!_0x3efbde?'':ye(_0x3efbde[_0x184eda(0x1de)](_0x17e8c8['startIndex']+0x1,_0x17e8c8[_0x184eda(0x1d7)]));}[_0x4eda42(0x1c6)](){const _0x25b2e7=_0x4eda42;let _0x285fe1=this['getRange']();return _0x285fe1?{..._0x285fe1,'config':this[_0x25b2e7(0x1b3)](),'text':this[_0x25b2e7(0x1c1)](),'type':_0x25b2e7(0x1bd)}:null;}['getConfig'](){const _0x98fe61=_0x4eda42;var _0x25c455;return h((_0x25c455=this['_runtime'][_0x98fe61(0x1c7)])==null?void 0x0:_0x25c455[_0x98fe61(0x19b)](this[_0x98fe61(0x1c3)][_0x98fe61(0x1e7)],this[_0x98fe61(0x1c3)][_0x98fe61(0x181)]));}[_0x4eda42(0x1a5)](_0x405c34){const _0x1aadcd=_0x4eda42;var _0x4af367;return!!((_0x4af367=this[_0x1aadcd(0x1c3)]['commandService'])!=null&&_0x4af367['syncExecuteCommand'](_e['id'],{'blockId':this[_0x1aadcd(0x1c3)][_0x1aadcd(0x181)],'config':_0x405c34[_0x1aadcd(0x18b)],'unitId':this[_0x1aadcd(0x1c3)]['unitId']}));}[_0x4eda42(0x1b1)](_0x5010f7){const _0x49799e=_0x4eda42;var _0x400ca9;return!!((_0x400ca9=this['_runtime'][_0x49799e(0x1ba)])!=null&&_0x400ca9[_0x49799e(0x1a0)](W['id'],{'cursorOffset':_0x5010f7,'unitId':this['_runtime'][_0x49799e(0x1e7)]}));}[_0x4eda42(0x1e9)](_0x506450={}){const _0x318663=_0x4eda42;var _0x3aabce;return!!((_0x3aabce=this[_0x318663(0x1c3)][_0x318663(0x1ba)])!=null&&_0x3aabce[_0x318663(0x1a0)](G['id'],{..._0x506450,'unitId':this[_0x318663(0x1c3)][_0x318663(0x1e7)]}));}['_getBlockRange'](){const _0x45e098=_0x4eda42;var _0x5ef787;return(_0x5ef787=this['_runtime'][_0x45e098(0x19d)]()['body'])==null||(_0x5ef787=_0x5ef787[_0x45e098(0x1cb)])==null?void 0x0:_0x5ef787[_0x45e098(0x186)](_0x5f57ac=>_0x5f57ac['blockId']===this[_0x45e098(0x1c3)][_0x45e098(0x181)]&&_0x5f57ac[_0x45e098(0x1ec)]===_0x45e098(0x1bd));}};function ye(_0x17e49e){const _0x4be26b=_0x4eda42;return Array[_0x4be26b(0x17b)](_0x17e49e)['map'](_0xa0a762=>_0xa0a762===_0x212422[_0x4be26b(0x1f0)]?'\x0a':_0xa0a762)[_0x4be26b(0x194)](_0x37bf1f=>_0x37bf1f!==_0x212422[_0x4be26b(0x1a4)]&&_0x37bf1f!==_0x212422[_0x4be26b(0x1ac)]&&_0x37bf1f!==_0x212422['SECTION_BREAK'])['join']('')[_0x4be26b(0x1b9)](/\n$/,'');}Object[_0x4eda42(0x191)](_0x41dd8a[_0x4eda42(0x1d1)],{'getCodes'(){const _0x321c36=_0x4eda42;var _0x433a8c,_0x552f2e;return(_0x433a8c=(_0x552f2e=this[_0x321c36(0x19e)]()[_0x321c36(0x18f)])==null||(_0x552f2e=_0x552f2e['blockRanges'])==null?void 0x0:_0x552f2e[_0x321c36(0x194)](_0x46877c=>_0x46877c[_0x321c36(0x1ec)]===_0x321c36(0x1bd))['map'](_0x3a466f=>Z(this,_0x3a466f['blockId'])))==null?[]:_0x433a8c;},'getCode'(_0x1d64fb){const _0x394716=_0x4eda42;var _0x3bb8c1;return!((_0x3bb8c1=this[_0x394716(0x19e)]()[_0x394716(0x18f)])==null||(_0x3bb8c1=_0x3bb8c1[_0x394716(0x1cb)])==null)&&_0x3bb8c1['some'](_0x14f66d=>_0x14f66d[_0x394716(0x181)]===_0x1d64fb&&_0x14f66d[_0x394716(0x1ec)]===_0x394716(0x1bd))?Z(this,_0x1d64fb):null;},'getCodeAt'(_0xd6a3b){const _0x5dee90=_0x4eda42;var _0x49a4c2;let _0x10577b=(_0x49a4c2=this[_0x5dee90(0x19e)]()[_0x5dee90(0x18f)])==null||(_0x49a4c2=_0x49a4c2[_0x5dee90(0x1cb)])==null||(_0x49a4c2=_0x49a4c2[_0x5dee90(0x186)](_0x542c54=>_0x542c54[_0x5dee90(0x1ec)]===_0x5dee90(0x1bd)&&_0x542c54['startIndex']<=_0xd6a3b&&_0xd6a3b<=_0x542c54[_0x5dee90(0x1d7)]))==null?void 0x0:_0x49a4c2[_0x5dee90(0x181)];return _0x10577b?Z(this,_0x10577b):null;},'findCodeByText'(_0x502bfd){const _0x1f2905=_0x4eda42;var _0x49aa31;return(_0x49aa31=this[_0x1f2905(0x1d4)](_0x502bfd)[0x0])==null?null:_0x49aa31;},'findCodes'(_0x5f29af){const _0x5ba801=_0x4eda42;let _0x4a3a14=typeof _0x5f29af=='string'?{'text':_0x5f29af}:_0x5f29af;return this[_0x5ba801(0x1e6)]()['filter'](_0x4f07d0=>!(_0x4a3a14['blockId']&&_0x4f07d0[_0x5ba801(0x199)]()!==_0x4a3a14[_0x5ba801(0x181)]||_0x4a3a14[_0x5ba801(0x1d3)]&&!_0x4f07d0[_0x5ba801(0x1c1)]()['includes'](_0x4a3a14[_0x5ba801(0x1d3)])));},'insertCode'(_0x1d2869={}){const _0x2505b7=_0x4eda42;var _0x4073c1,_0x470a2a;let _0x758097=(_0x4073c1=_0x1d2869[_0x2505b7(0x181)])==null?_0x2505b7(0x1eb)+Date[_0x2505b7(0x183)]():_0x4073c1;return(_0x470a2a=Q(this))!=null&&_0x470a2a[_0x2505b7(0x1a0)](ge['id'],{..._0x1d2869,'blockId':_0x758097,'unitId':this['getId']()})?Z(this,_0x758097):null;},'exitCode'(_0x2b431d){const _0x5cef3b=_0x4eda42;var _0x2652c8;return!!((_0x2652c8=Q(this))!=null&&_0x2652c8[_0x5cef3b(0x1a0)](W['id'],{'cursorOffset':_0x2b431d,'unitId':this['getId']()}));},'cancelEmptyCodeParagraph'(_0x200a38={}){const _0xe5c3e2=_0x4eda42;var _0x548cef;return!!((_0x548cef=Q(this))!=null&&_0x548cef['syncExecuteCommand'](G['id'],{..._0x200a38,'unitId':this[_0xe5c3e2(0x199)]()}));}});function Z(_0x1281d1,_0x485781){const _0x14382=_0x4eda42;let _0x45531d=$(_0x1281d1);return new X({'blockId':_0x485781,'commandService':Q(_0x1281d1),'getDocumentData':()=>_0x1281d1[_0x14382(0x19e)](),'model':_0x45531d==null?void 0x0:_0x45531d[_0x14382(0x1dc)](U),'unitId':_0x1281d1['getId']()});}function Q(_0x3a6d9f){const _0x2b9c55=_0x4eda42;var _0x88588e,_0x570f03;return(_0x88588e=_0x3a6d9f[_0x2b9c55(0x1ea)])==null?(_0x570f03=$(_0x3a6d9f))==null?void 0x0:_0x570f03[_0x2b9c55(0x1dc)](_0x4da3ce):_0x88588e;}function $(_0x2ed206){return _0x2ed206['_injector'];}export{X as FDocsCode};
1
+ const _0x5d89db=_0x1854;(function(_0x7b897a,_0x26c335){const _0x55ad36=_0x1854,_0x589cce=_0x7b897a();while(!![]){try{const _0x4292fc=-parseInt(_0x55ad36(0x183))/0x1+parseInt(_0x55ad36(0x184))/0x2*(-parseInt(_0x55ad36(0x1bf))/0x3)+parseInt(_0x55ad36(0x1bc))/0x4+parseInt(_0x55ad36(0x1d2))/0x5+parseInt(_0x55ad36(0x169))/0x6*(-parseInt(_0x55ad36(0x1ce))/0x7)+parseInt(_0x55ad36(0x1b7))/0x8+parseInt(_0x55ad36(0x1ab))/0x9;if(_0x4292fc===_0x26c335)break;else _0x589cce['push'](_0x589cce['shift']());}catch(_0x45cf00){_0x589cce['push'](_0x589cce['shift']());}}}(_0x15c7,0x9133d));import{CommandType as _0x22f4b7,DataStreamTreeTokenType as _0x180f7a,Disposable as _0x4bc668,ICommandService as _0x2afc20,IUniverInstanceService as _0x40925a,JSONX as _0x209e0e,Tools as _0x20dd72,UniverInstanceType as _0x10a714,generateRandomId as _0x29ed6a}from'@univerjs/core';import{FDocument as _0x19b331}from'@univerjs/docs-ui/facade';import{DocSelectionManagerService as _0x1206d3,RichTextEditingMutation as _0x3d459c}from'@univerjs/docs';import'@univerjs/docs-ui';import{Subject as _0xf3e6d5}from'rxjs';const p=_0x5d89db(0x1c3),m={'language':_0x5d89db(0x18f),'showLineNumbers':!0x1,'tabSize':0x4,'wrap':!0x0};function h(_0x1ec33f){return{...m,..._0x1ec33f};}function g(_0x5ea74a){const _0x87bc6c=_0x5d89db;var _0x1ef1b5;let _0x377ca0=(_0x1ef1b5=_0x5ea74a==null?void 0x0:_0x5ea74a['codes'])==null?{}:_0x1ef1b5;return{'codes':Object[_0x87bc6c(0x192)](Object[_0x87bc6c(0x1af)](_0x377ca0)['map'](([_0x177b68,_0x239938])=>[_0x177b68,h(_0x239938)]))};}function _(_0x355e4b,_0x7b7f9d,_0x194441){const _0x557168=_0x5d89db;let _0x59518b=g(_0x355e4b);return _0x59518b['codes'][_0x7b7f9d]=h({..._0x59518b[_0x557168(0x181)][_0x7b7f9d],..._0x194441}),_0x59518b;}function v(_0x392a07,_0x36f641){const _0x3eab39=_0x5d89db;let _0x4f4fb2=g(_0x392a07);return delete _0x4f4fb2[_0x3eab39(0x181)][_0x36f641],_0x4f4fb2;}const y=_0x5d89db(0x172);function b(_0x14296b){const _0x28ff2c=_0x5d89db;var _0x2833cb,_0x347dd8,_0x404e4d;let _0x41ae25=E(_0x14296b[_0x28ff2c(0x16f)]),_0x4b41df=D(_0x41ae25),_0x4c0388=ee(_0x14296b['startOffset'],_0x14296b[_0x28ff2c(0x16e)]),_0x190045=_0x4c0388?(_0x2833cb=_0x4b41df['blockRanges'])==null?void 0x0:_0x2833cb['find'](_0x4842fb=>_0x4842fb[_0x28ff2c(0x18b)]===_0x4c0388[_0x28ff2c(0x1aa)]&&_0x4842fb['endIndex']+0x1===_0x4c0388[_0x28ff2c(0x16e)]):void 0x0,{startOffset:_0x5236ac,endOffset:_0x1c60d9}=_0x190045?_0x4c0388:se(_0x4b41df,_0x14296b['startOffset'],_0x14296b[_0x28ff2c(0x16e)]),_0x436bf5=le(_0x4b41df,_0x5236ac,_0x1c60d9),_0x1dc3db=(_0x347dd8=_0x190045==null?void 0x0:_0x190045['blockId'])==null?_0x14296b[_0x28ff2c(0x1c6)]:_0x347dd8,_0x28952e=_(_0x14296b[_0x28ff2c(0x1ca)],_0x1dc3db,{...m,..._0x14296b[_0x28ff2c(0x171)]});if(_0x190045)return _0x190045[_0x28ff2c(0x1a5)]=p,x(_0x4b41df,_0x5236ac,_0x1c60d9),w(_0x4b41df,_0x5236ac,_0x1c60d9,_0x436bf5),{'nextDocumentData':_0x41ae25,'nextMetadata':_0x28952e,'cursorOffset':_0x5236ac+0x1};if(_0x5236ac===_0x1c60d9){let _0x3f03e0=''+_0x180f7a[_0x28ff2c(0x16a)]+_0x180f7a[_0x28ff2c(0x17c)]+_0x180f7a[_0x28ff2c(0x1ba)];return j(_0x4b41df,_0x5236ac,_0x3f03e0,{'paragraphs':[{'startIndex':0x1,'paragraphStyle':C(!0x0,!0x0,_0x436bf5)}],'blockRanges':[{'blockId':_0x1dc3db,'blockType':p,'startIndex':0x0,'endIndex':_0x3f03e0[_0x28ff2c(0x1df)]-0x1}]}),{'nextDocumentData':_0x41ae25,'nextMetadata':_0x28952e,'cursorOffset':_0x5236ac+0x1};}return j(_0x4b41df,_0x1c60d9,_0x180f7a[_0x28ff2c(0x1ba)]),j(_0x4b41df,_0x5236ac,_0x180f7a['BLOCK_START']),w(_0x4b41df,_0x5236ac,_0x1c60d9+0x1,_0x436bf5),_0x4b41df[_0x28ff2c(0x1d1)]=[...(_0x404e4d=_0x4b41df[_0x28ff2c(0x1d1)])==null?[]:_0x404e4d,{'blockId':_0x1dc3db,'blockType':p,'startIndex':_0x5236ac,'endIndex':_0x1c60d9+0x1}][_0x28ff2c(0x1b8)]((_0x349f4f,_0x5a5628)=>_0x349f4f[_0x28ff2c(0x18b)]-_0x5a5628[_0x28ff2c(0x18b)]),{'nextDocumentData':_0x41ae25,'nextMetadata':_0x28952e,'cursorOffset':_0x5236ac+0x1};}function x(_0x3bc76e,_0x438d29,_0x5927f0){const _0x3ae9db=_0x5d89db;var _0x48d2d6;((_0x48d2d6=_0x3bc76e['paragraphs'])==null?[]:_0x48d2d6)[_0x3ae9db(0x17f)](_0x207d22=>_0x207d22[_0x3ae9db(0x18b)]>_0x438d29&&_0x207d22['startIndex']<_0x5927f0)['forEach'](_0x343e72=>{const _0x42712e=_0x3ae9db;var _0xe98acd;let _0x5da6d6={...(_0xe98acd=_0x343e72[_0x42712e(0x19f)])==null?{}:_0xe98acd};delete _0x5da6d6['spaceAbove'],delete _0x5da6d6[_0x42712e(0x1b3)],_0x343e72[_0x42712e(0x19f)]=_0x5da6d6;});}function ee(_0x2428ba,_0x59cb11){const _0x2d6b0a=_0x5d89db;return _0x2428ba==null||_0x59cb11==null||_0x2428ba===_0x59cb11?null:{'startOffset':Math['min'](_0x2428ba,_0x59cb11),'endOffset':Math[_0x2d6b0a(0x1b1)](_0x2428ba,_0x59cb11)};}function te(_0x123960){const _0x3e1eb0=_0x5d89db;return{'nextDocumentData':E(_0x123960['documentData']),'nextMetadata':_(_0x123960[_0x3e1eb0(0x1ca)],_0x123960['blockId'],_0x123960[_0x3e1eb0(0x171)]),'cursorOffset':0x0};}function ne(_0x3f1747){const _0x4b4503=_0x5d89db;var _0x436565,_0x30ddc3;let _0x1ac352=E(_0x3f1747[_0x4b4503(0x16f)]),_0x18951f=D(_0x1ac352),_0x1baad2=S(_0x18951f,_0x3f1747[_0x4b4503(0x17b)]);if(!_0x1baad2)return null;let _0xfbf700=T(_0x18951f,_0x1baad2),_0x474e31=_0xfbf700[_0xfbf700[_0x4b4503(0x1df)]-0x1];if(!_0x474e31||!oe(_0x18951f,_0x1baad2,_0x474e31)||_0x3f1747[_0x4b4503(0x17b)]<_0x474e31[_0x4b4503(0x18b)])return null;let _0x552c99=k(_0x18951f,_0x1baad2,_0x474e31);if(_0x552c99>=_0x1baad2[_0x4b4503(0x1e0)])return null;_0x18951f['dataStream']=[_0x18951f['dataStream']['slice'](0x0,_0x552c99),_0x180f7a['BLOCK_END'],_0x18951f[_0x4b4503(0x167)][_0x4b4503(0x19c)](_0x552c99,_0x1baad2['endIndex']),_0x18951f[_0x4b4503(0x167)]['slice'](_0x1baad2[_0x4b4503(0x1e0)]+0x1)]['join'](''),z(_0x18951f[_0x4b4503(0x1cd)],_0x552c99,_0x1baad2[_0x4b4503(0x1e0)],0x1),z(_0x18951f[_0x4b4503(0x1d9)],_0x552c99,_0x1baad2[_0x4b4503(0x1e0)],0x1),z(_0x18951f['customBlocks'],_0x552c99,_0x1baad2['endIndex'],0x1),pe(_0x18951f[_0x4b4503(0x193)],_0x552c99,_0x1baad2[_0x4b4503(0x1e0)],0x1),B(_0x18951f[_0x4b4503(0x1b9)],_0x552c99,_0x1baad2[_0x4b4503(0x1e0)],0x1),B(_0x18951f[_0x4b4503(0x1b6)],_0x552c99,_0x1baad2[_0x4b4503(0x1e0)],0x1),B(_0x18951f[_0x4b4503(0x186)],_0x552c99,_0x1baad2[_0x4b4503(0x1e0)],0x1),(_0x436565=_0x18951f[_0x4b4503(0x1d1)])==null||_0x436565[_0x4b4503(0x1ae)](_0x53ef3f=>{const _0x2e6b54=_0x4b4503;_0x53ef3f===_0x1baad2||_0x53ef3f['blockId']===_0x1baad2[_0x2e6b54(0x1c6)]?_0x53ef3f[_0x2e6b54(0x1e0)]=_0x552c99:_0x53ef3f['startIndex']>=_0x552c99&&_0x53ef3f[_0x2e6b54(0x18b)]<_0x1baad2[_0x2e6b54(0x1e0)]&&(_0x53ef3f['startIndex']+=0x1,_0x53ef3f['endIndex']+=0x1);});let _0x1e928c=T(_0x18951f,{..._0x1baad2,'endIndex':_0x552c99});_0x1e928c[_0x4b4503(0x1ae)]((_0x4b8e10,_0x1fb964)=>{const _0xf8cec9=_0x4b4503;var _0x16ed39;_0x4b8e10[_0xf8cec9(0x19f)]={...(_0x16ed39=_0x4b8e10['paragraphStyle'])==null?{}:_0x16ed39,...C(_0x1fb964===0x0,_0x1fb964===_0x1e928c[_0xf8cec9(0x1df)]-0x1)};});let _0x30044a=(_0x30ddc3=_0x18951f[_0x4b4503(0x1cd)])==null?void 0x0:_0x30ddc3['find'](_0x425d4f=>_0x425d4f[_0x4b4503(0x18b)]===_0x552c99+0x1);return _0x30044a&&(_0x30044a[_0x4b4503(0x19f)]=ae(_0x30044a['paragraphStyle'])),{'nextDocumentData':_0x1ac352,'cursorOffset':_0x552c99+0x1};}function re(_0x2fa921){let _0x1a02c2=E(_0x2fa921['documentData']),_0x59944c=D(_0x1a02c2),_0x427edd=S(_0x59944c,_0x2fa921['cursorOffset']);return _0x427edd&&ie(_0x1a02c2,_0x59944c,_0x427edd,_0x2fa921['cursorOffset'],_0x2fa921['paragraphStartIndex'])||null;}function ie(_0x1055e6,_0x2279d3,_0x2e0fe6,_0x28f00f,_0x2e9eff){const _0x51ea55=_0x5d89db;let _0x52e1ef=de(_0x2279d3,_0x2e0fe6,_0x28f00f,_0x2e9eff);if(!_0x52e1ef)return null;let _0x3a65a9=_0x52e1ef['endTokenOffset']-0x1;return M(_0x2279d3,_0x52e1ef[_0x51ea55(0x1d4)][_0x51ea55(0x18b)],_0x52e1ef[_0x51ea55(0x1d4)][_0x51ea55(0x18b)]+0x1),{'nextDocumentData':_0x1055e6,'cursorOffset':_0x3a65a9};}function S(_0x488eeb,_0x27eda6){const _0x58c2df=_0x5d89db;var _0x5db9ee;return(_0x5db9ee=_0x488eeb[_0x58c2df(0x1d1)])==null?void 0x0:_0x5db9ee['find'](_0x5246c9=>{const _0x2db0f6=_0x58c2df;let _0x3438e5=A(_0x488eeb,_0x5246c9);return _0x5246c9[_0x2db0f6(0x1a5)]===_0x2db0f6(0x1c3)&&_0x5246c9[_0x2db0f6(0x18b)]<=_0x27eda6&&_0x27eda6<=_0x3438e5+0x2;});}function C(_0x464941,_0xc196a9,_0x32c1c9=!0x1){return{'indentEnd':{'v':0x14},'indentStart':{'v':0x14},..._0x464941&&_0x32c1c9?{'spaceAbove':{'v':0x8}}:{},'textStyle':{'ff':y,'fs':0xc}};}function w(_0x3ae6ec,_0xbce770,_0x274b60,_0x252afb=!0x1){const _0x2e95dc=_0x5d89db;var _0x20cab8;let _0x32cfbd=((_0x20cab8=_0x3ae6ec[_0x2e95dc(0x1cd)])==null?[]:_0x20cab8)['filter'](_0x309b31=>_0x309b31[_0x2e95dc(0x18b)]>_0xbce770&&_0x309b31[_0x2e95dc(0x18b)]<_0x274b60);_0x32cfbd[_0x2e95dc(0x1ae)]((_0x5047a3,_0x4fc965)=>{const _0x1dfc56=_0x2e95dc;var _0x2598f5;_0x5047a3['paragraphStyle']={...(_0x2598f5=_0x5047a3[_0x1dfc56(0x19f)])==null?{}:_0x2598f5,...C(_0x4fc965===0x0,_0x4fc965===_0x32cfbd[_0x1dfc56(0x1df)]-0x1,_0x252afb)};});}function ae(_0x9c423d){const _0x45f1c7=_0x5d89db;var _0x3698ba,_0x55becb;let _0x1b8e8d={..._0x9c423d==null?{}:_0x9c423d};return delete _0x1b8e8d[_0x45f1c7(0x16c)],delete _0x1b8e8d[_0x45f1c7(0x1ad)],delete _0x1b8e8d[_0x45f1c7(0x1bb)],delete _0x1b8e8d['spaceBelow'],((_0x3698ba=_0x1b8e8d['textStyle'])==null?void 0x0:_0x3698ba['ff'])===y&&((_0x55becb=_0x1b8e8d[_0x45f1c7(0x196)])==null?void 0x0:_0x55becb['fs'])===0xc&&delete _0x1b8e8d[_0x45f1c7(0x196)],_0x1b8e8d;}function T(_0x7384b0,_0x56f1da){const _0xe053af=_0x5d89db;var _0x704972;let _0x9ad8b7=A(_0x7384b0,_0x56f1da);return((_0x704972=_0x7384b0['paragraphs'])==null?[]:_0x704972)[_0xe053af(0x17f)](_0x2cab86=>_0x2cab86[_0xe053af(0x18b)]>_0x56f1da[_0xe053af(0x18b)]&&_0x2cab86[_0xe053af(0x18b)]<_0x9ad8b7);}function oe(_0x263e05,_0x58c442,_0x572df9){const _0x3e95bd=_0x5d89db;let _0x33beef=k(_0x263e05,_0x58c442,_0x572df9),_0x297e16=_0x263e05[_0x3e95bd(0x167)][_0x3e95bd(0x19c)](_0x33beef,_0x572df9[_0x3e95bd(0x18b)]);return Array['from'](_0x297e16)[_0x3e95bd(0x19e)](_0x27c5a4=>_0x27c5a4===_0x180f7a[_0x3e95bd(0x16a)]||_0x27c5a4===_0x180f7a[_0x3e95bd(0x1ba)]);}function E(_0x29845f){const _0x4316e8=_0x5d89db;return _0x20dd72[_0x4316e8(0x1b0)](_0x29845f);}function D(_0x58e932){if(!_0x58e932['body'])throw Error('Document\x20body\x20is\x20required');return _0x58e932['body'];}function se(_0x36f4e8,_0x3bd5d6,_0x25166a){const _0x235829=_0x5d89db;if(_0x3bd5d6==null||_0x25166a==null){let _0x25fce0=ce(_0x36f4e8);return{'startOffset':_0x25fce0,'endOffset':_0x25fce0};}let _0x4ef7a4=Math['min'](_0x3bd5d6,_0x25166a),_0x46f537=Math[_0x235829(0x1b1)](_0x3bd5d6,_0x25166a);return _0x4ef7a4===_0x46f537?{'startOffset':_0x4ef7a4,'endOffset':_0x4ef7a4}:ue(_0x36f4e8,_0x4ef7a4,_0x46f537);}function ce(_0x496e6a){const _0x37ea06=_0x5d89db;return _0x496e6a[_0x37ea06(0x167)]['endsWith'](_0x180f7a[_0x37ea06(0x1d5)])?Math[_0x37ea06(0x1b1)](0x0,_0x496e6a[_0x37ea06(0x167)]['length']-0x1):_0x496e6a[_0x37ea06(0x167)][_0x37ea06(0x1df)];}function le(_0x5726fc,_0xc40240,_0x1eb7dd){const _0x529f64=_0x5d89db;var _0x53d910;let _0x140a9b=Math[_0x529f64(0x180)](_0xc40240,_0x1eb7dd),_0x393ebb=Math['max'](_0xc40240,_0x1eb7dd);return!!((_0x53d910=_0x5726fc['tables'])!=null&&_0x53d910[_0x529f64(0x1ac)](_0x526107=>_0x140a9b>_0x526107[_0x529f64(0x18b)]&&_0x140a9b<_0x526107['endIndex']||_0x393ebb>_0x526107['startIndex']&&_0x393ebb<_0x526107[_0x529f64(0x1e0)]||_0x140a9b<=_0x526107['startIndex']&&_0x393ebb>=_0x526107[_0x529f64(0x1e0)]));}function ue(_0x4626b9,_0x1d6f01,_0x3dc196){const _0x2da2f8=_0x5d89db;var _0x154a6f,_0x2f341b;let _0x4ffbed=[...(_0x154a6f=_0x4626b9[_0x2da2f8(0x1cd)])==null?[]:_0x154a6f][_0x2da2f8(0x1b8)]((_0x3f90de,_0x959ee1)=>_0x3f90de[_0x2da2f8(0x18b)]-_0x959ee1[_0x2da2f8(0x18b)]),_0x12ab00=_0x4ffbed[_0x2da2f8(0x17a)]((_0x2c6f5f,_0x5538a6)=>(_0x5538a6===0x0?0x0:_0x4ffbed[_0x5538a6-0x1][_0x2da2f8(0x18b)]+0x1)<=_0x1d6f01&&_0x1d6f01<=_0x2c6f5f['startIndex']),_0x502b5b=(_0x2f341b=_0x4ffbed[_0x2da2f8(0x17a)](_0x3dd08e=>_0x3dd08e[_0x2da2f8(0x18b)]>=_0x3dc196-0x1))==null?_0x4ffbed[_0x4ffbed['length']-0x1]:_0x2f341b;return{'startOffset':_0x12ab00?O(_0x4ffbed,_0x12ab00):_0x1d6f01,'endOffset':_0x502b5b?_0x502b5b[_0x2da2f8(0x18b)]+0x1:_0x3dc196};}function O(_0x52bb99,_0x257b34){const _0x4ba524=_0x5d89db;let _0x296f7d=_0x52bb99[_0x4ba524(0x18e)](_0x257b34);return _0x296f7d>0x0?_0x52bb99[_0x296f7d-0x1][_0x4ba524(0x18b)]+0x1:0x0;}function k(_0x40997d,_0x368fc9,_0x2004ca){const _0xdc78f1=_0x5d89db;var _0x447af6;return Math[_0xdc78f1(0x1b1)](O((_0x447af6=_0x40997d[_0xdc78f1(0x1cd)])==null?[]:_0x447af6,_0x2004ca),_0x368fc9[_0xdc78f1(0x18b)]+0x1);}function A(_0x31a5f1,_0x3837ff){const _0x4ae2a5=_0x5d89db;return _0x31a5f1[_0x4ae2a5(0x167)][_0x3837ff['endIndex']]===_0x180f7a['BLOCK_END']?_0x3837ff[_0x4ae2a5(0x1e0)]:_0x31a5f1[_0x4ae2a5(0x167)][_0x3837ff[_0x4ae2a5(0x1e0)]+0x1]===_0x180f7a[_0x4ae2a5(0x1ba)]?_0x3837ff[_0x4ae2a5(0x1e0)]+0x1:_0x3837ff[_0x4ae2a5(0x1e0)];}function de(_0x406db7,_0xe8b75b,_0x5d3cc7,_0x1b8be9){const _0x2b6f7c=_0x5d89db;var _0x4603f1,_0x311b17;let _0x33b84d=A(_0x406db7,_0xe8b75b),_0x2f0eb3=((_0x4603f1=_0x406db7[_0x2b6f7c(0x1cd)])==null?[]:_0x4603f1)[_0x2b6f7c(0x17a)](_0x213bf2=>_0x213bf2['startIndex']===_0x33b84d+0x1);if(!_0x2f0eb3||_0x1b8be9!=null&&_0x2f0eb3[_0x2b6f7c(0x18b)]!==_0x1b8be9||_0x5d3cc7<_0x33b84d||_0x5d3cc7>_0x2f0eb3[_0x2b6f7c(0x18b)]+0x1||_0x406db7['dataStream'][_0x2f0eb3['startIndex']]!==_0x180f7a['PARAGRAPH'])return null;let _0x5ded07=O((_0x311b17=_0x406db7[_0x2b6f7c(0x1cd)])==null?[]:_0x311b17,_0x2f0eb3),_0x1f6e0b=_0x406db7[_0x2b6f7c(0x167)][_0x2b6f7c(0x19c)](_0x5ded07,_0x2f0eb3[_0x2b6f7c(0x18b)]);return Array[_0x2b6f7c(0x19b)](_0x1f6e0b)[_0x2b6f7c(0x19e)](_0x496223=>_0x496223===_0x180f7a['BLOCK_END'])?{'paragraph':_0x2f0eb3,'endTokenOffset':_0x33b84d}:null;}function j(_0x148b30,_0x272251,_0x3ecb02,_0x3c2dbd={}){const _0x5d6590=_0x5d89db;var _0x59270d,_0x406a2a;if(_0x3ecb02){if(_0x148b30[_0x5d6590(0x167)]=''+_0x148b30['dataStream'][_0x5d6590(0x19c)](0x0,_0x272251)+_0x3ecb02+_0x148b30[_0x5d6590(0x167)][_0x5d6590(0x19c)](_0x272251),N(_0x148b30,_0x272251,_0x3ecb02[_0x5d6590(0x1df)]),(_0x59270d=_0x3c2dbd[_0x5d6590(0x1cd)])!=null&&_0x59270d['length']){var _0x2d1b30;_0x148b30[_0x5d6590(0x1cd)]=[...(_0x2d1b30=_0x148b30[_0x5d6590(0x1cd)])==null?[]:_0x2d1b30,..._0x3c2dbd[_0x5d6590(0x1cd)]['map'](_0x5745c0=>({..._0x5745c0,'startIndex':_0x5745c0[_0x5d6590(0x18b)]+_0x272251}))][_0x5d6590(0x1b8)]((_0x1a2b43,_0x5776be)=>_0x1a2b43[_0x5d6590(0x18b)]-_0x5776be[_0x5d6590(0x18b)]);}if((_0x406a2a=_0x3c2dbd[_0x5d6590(0x1d1)])!=null&&_0x406a2a[_0x5d6590(0x1df)]){var _0x40dd97;_0x148b30['blockRanges']=[...(_0x40dd97=_0x148b30[_0x5d6590(0x1d1)])==null?[]:_0x40dd97,..._0x3c2dbd[_0x5d6590(0x1d1)][_0x5d6590(0x197)](_0x46d1ae=>({..._0x46d1ae,'startIndex':_0x46d1ae['startIndex']+_0x272251,'endIndex':_0x46d1ae['endIndex']+_0x272251}))][_0x5d6590(0x1b8)]((_0xdb31dd,_0x478c6c)=>_0xdb31dd[_0x5d6590(0x18b)]-_0x478c6c[_0x5d6590(0x18b)]);}}}function M(_0x1ec24b,_0x1e247d,_0x248914){const _0x2b455c=_0x5d89db;let _0x12b852=_0x248914-_0x1e247d;_0x1ec24b[_0x2b455c(0x167)]=''+_0x1ec24b[_0x2b455c(0x167)][_0x2b455c(0x19c)](0x0,_0x1e247d)+_0x1ec24b[_0x2b455c(0x167)]['slice'](_0x248914),P(_0x1ec24b,_0x1e247d,_0x12b852);}function N(_0x63c3d1,_0x4a1b30,_0x4527a5){const _0x1731c2=_0x5d89db;_0x63c3d1[_0x1731c2(0x1cd)]=F(_0x63c3d1[_0x1731c2(0x1cd)],_0x4a1b30,_0x4527a5),_0x63c3d1[_0x1731c2(0x1d9)]=F(_0x63c3d1[_0x1731c2(0x1d9)],_0x4a1b30,_0x4527a5),_0x63c3d1[_0x1731c2(0x1cf)]=F(_0x63c3d1[_0x1731c2(0x1cf)],_0x4a1b30,_0x4527a5),_0x63c3d1[_0x1731c2(0x193)]=fe(_0x63c3d1[_0x1731c2(0x193)],_0x4a1b30,_0x4527a5),_0x63c3d1[_0x1731c2(0x1b9)]=L(_0x63c3d1[_0x1731c2(0x1b9)],_0x4a1b30,_0x4527a5),_0x63c3d1[_0x1731c2(0x1b6)]=L(_0x63c3d1[_0x1731c2(0x1b6)],_0x4a1b30,_0x4527a5),_0x63c3d1[_0x1731c2(0x186)]=L(_0x63c3d1[_0x1731c2(0x186)],_0x4a1b30,_0x4527a5),_0x63c3d1['blockRanges']=L(_0x63c3d1[_0x1731c2(0x1d1)],_0x4a1b30,_0x4527a5);}function P(_0x24fcf5,_0x2093a1,_0x34c49c){const _0x461e01=_0x5d89db;var _0x4909de,_0x341484;_0x24fcf5[_0x461e01(0x1cd)]=I(_0x24fcf5['paragraphs'],_0x2093a1,_0x34c49c),_0x24fcf5[_0x461e01(0x1d9)]=I(_0x24fcf5['sectionBreaks'],_0x2093a1,_0x34c49c),_0x24fcf5[_0x461e01(0x1cf)]=I(_0x24fcf5[_0x461e01(0x1cf)],_0x2093a1,_0x34c49c),_0x24fcf5['textRuns']=(_0x4909de=R((_0x341484=_0x24fcf5[_0x461e01(0x193)])==null?void 0x0:_0x341484[_0x461e01(0x197)](_0x26a58f=>({..._0x26a58f,'startIndex':_0x26a58f['st'],'endIndex':_0x26a58f['ed']})),_0x2093a1,_0x34c49c))==null?void 0x0:_0x4909de[_0x461e01(0x197)](_0x11977a=>{let {startIndex:_0x3fc5d7,endIndex:_0x40b783,..._0x36ed1d}=_0x11977a;return{..._0x36ed1d,'st':_0x3fc5d7,'ed':_0x40b783};}),_0x24fcf5[_0x461e01(0x1b9)]=R(_0x24fcf5[_0x461e01(0x1b9)],_0x2093a1,_0x34c49c),_0x24fcf5[_0x461e01(0x1b6)]=R(_0x24fcf5[_0x461e01(0x1b6)],_0x2093a1,_0x34c49c),_0x24fcf5[_0x461e01(0x186)]=R(_0x24fcf5[_0x461e01(0x186)],_0x2093a1,_0x34c49c),_0x24fcf5[_0x461e01(0x1d1)]=R(_0x24fcf5[_0x461e01(0x1d1)],_0x2093a1,_0x34c49c);}function F(_0x228944,_0x4e0696,_0x7d41f5){const _0x4df949=_0x5d89db;return _0x228944==null?void 0x0:_0x228944['map'](_0x2a62a1=>_0x2a62a1['startIndex']>=_0x4e0696?{..._0x2a62a1,'startIndex':_0x2a62a1[_0x4df949(0x18b)]+_0x7d41f5}:_0x2a62a1);}function I(_0x40bfcd,_0x15617a,_0x3d6e6d){const _0x5b4e60=_0x5d89db;let _0xf7074d=_0x15617a+_0x3d6e6d;return _0x40bfcd==null?void 0x0:_0x40bfcd[_0x5b4e60(0x197)](_0x28f8b2=>_0x28f8b2[_0x5b4e60(0x18b)]>=_0x15617a&&_0x28f8b2[_0x5b4e60(0x18b)]<_0xf7074d?null:_0x28f8b2[_0x5b4e60(0x18b)]>=_0xf7074d?{..._0x28f8b2,'startIndex':_0x28f8b2[_0x5b4e60(0x18b)]-_0x3d6e6d}:_0x28f8b2)[_0x5b4e60(0x17f)](_0x3e7c4e=>_0x3e7c4e!=null);}function fe(_0x2aa63b,_0x1cd250,_0x2f4997){const _0x5b0840=_0x5d89db;return _0x2aa63b==null?void 0x0:_0x2aa63b[_0x5b0840(0x197)](_0x5ad183=>_0x5ad183['st']>=_0x1cd250?{..._0x5ad183,'st':_0x5ad183['st']+_0x2f4997,'ed':_0x5ad183['ed']+_0x2f4997}:_0x5ad183['ed']>_0x1cd250?{..._0x5ad183,'ed':_0x5ad183['ed']+_0x2f4997}:_0x5ad183);}function L(_0x2c077c,_0x2fa6f9,_0x516a1e){const _0x1b3190=_0x5d89db;return _0x2c077c==null?void 0x0:_0x2c077c['map'](_0x232066=>_0x232066[_0x1b3190(0x18b)]>=_0x2fa6f9?{..._0x232066,'startIndex':_0x232066['startIndex']+_0x516a1e,'endIndex':_0x232066[_0x1b3190(0x1e0)]+_0x516a1e}:_0x232066[_0x1b3190(0x1e0)]>=_0x2fa6f9?{..._0x232066,'endIndex':_0x232066['endIndex']+_0x516a1e}:_0x232066);}function R(_0x48a13d,_0x3662ff,_0x2cba16){const _0x22ac11=_0x5d89db;let _0x2b90e5=_0x3662ff+_0x2cba16;return _0x48a13d==null?void 0x0:_0x48a13d['map'](_0x264c7b=>_0x264c7b[_0x22ac11(0x18b)]>=_0x3662ff&&_0x264c7b[_0x22ac11(0x1e0)]<_0x2b90e5?null:_0x264c7b[_0x22ac11(0x18b)]>=_0x2b90e5?{..._0x264c7b,'startIndex':_0x264c7b['startIndex']-_0x2cba16,'endIndex':_0x264c7b[_0x22ac11(0x1e0)]-_0x2cba16}:_0x264c7b[_0x22ac11(0x1e0)]>=_0x3662ff?{..._0x264c7b,'startIndex':_0x264c7b['startIndex']<_0x3662ff?_0x264c7b[_0x22ac11(0x18b)]:_0x3662ff,'endIndex':Math['max'](_0x3662ff,_0x264c7b[_0x22ac11(0x1e0)]-_0x2cba16)}:_0x264c7b)[_0x22ac11(0x17f)](_0x386b00=>_0x386b00!=null);}function z(_0x551695,_0xb6dc78,_0x58d401,_0x511853){const _0x4e06b7=_0x5d89db;_0x551695==null||_0x551695[_0x4e06b7(0x1ae)](_0x37764=>{const _0x57ba2c=_0x4e06b7;_0x37764['startIndex']>=_0xb6dc78&&_0x37764[_0x57ba2c(0x18b)]<_0x58d401&&(_0x37764['startIndex']+=_0x511853);});}function pe(_0x168cdc,_0x29198a,_0x22ceec,_0x5585f0){_0x168cdc==null||_0x168cdc['forEach'](_0x4520bc=>{_0x4520bc['st']>=_0x29198a&&_0x4520bc['st']<_0x22ceec?(_0x4520bc['st']+=_0x5585f0,_0x4520bc['ed']+=_0x5585f0):_0x4520bc['ed']>_0x29198a&&_0x4520bc['ed']<_0x22ceec&&(_0x4520bc['ed']+=_0x5585f0);});}function B(_0x523c77,_0x318ef9,_0x4657bb,_0x4f32a3){const _0x59986d=_0x5d89db;_0x523c77==null||_0x523c77[_0x59986d(0x1ae)](_0x13d3e6=>{const _0x3c8de1=_0x59986d;_0x13d3e6[_0x3c8de1(0x18b)]>=_0x318ef9&&_0x13d3e6[_0x3c8de1(0x18b)]<_0x4657bb?(_0x13d3e6[_0x3c8de1(0x18b)]+=_0x4f32a3,_0x13d3e6['endIndex']+=_0x4f32a3):_0x13d3e6[_0x3c8de1(0x1e0)]>_0x318ef9&&_0x13d3e6[_0x3c8de1(0x1e0)]<_0x4657bb&&(_0x13d3e6[_0x3c8de1(0x1e0)]+=_0x4f32a3);});}function _0x15c7(){const _0x46d774=['sort','tables','BLOCK_END','spaceAbove','104408iUUFUv','complete','docs-code.command.insert','1750191DsIkZw','_runtime','compose','getUnitId','code','next','reduce','blockId','syncExecuteCommand','dispose','docs-code.command.exit','metadata','UNIVER_DOC','removeUnit','paragraphs','63aJTywD','customBlocks','join','blockRanges','2319365sUToex','string','paragraph','SECTION_BREAK','COMMAND','cancelEmptyParagraph','text','sectionBreaks','getId','getTextRanges','replace','getDocumentData','_getBlockRange','length','endIndex','dataStream','commandService','545112IMeicc','BLOCK_START','getCodeConfig','indentEnd','delete','endOffset','documentData','getConfig','config','monospace','getSnapshot','now','docs-code.command.update','getText','getRange','body','function','find','cursorOffset','PARAGRAPH','nextMetadata','clear','filter','min','codes','object','337124KZSZGK','4eFxccj','includes','customDecorations','get','getCurrentUnitOfType','toPrimitive','call','startIndex','_resources','serialize','indexOf','javascript','docs-code.command.cancel-empty-paragraph','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','fromEntries','textRuns','previousDocumentData','paragraphStartIndex','textStyle','map','prototype','exit','model','from','slice','_change$','every','paragraphStyle','_commandService','assign','unitId','_injector','nextDocumentData','blockType','describe','set','setCodeConfig','iterator','startOffset','11645280uUTYsW','some','indentStart','forEach','entries','deepClone','max','getCodes','spaceBelow','updateConfig','deserialize','customRanges','9059520AltEjz'];_0x15c7=function(){return _0x46d774;};return _0x15c7();}function V(_0x5cae6c){'@babel/helpers - typeof';const _0x2d8f5b=_0x5d89db;return V=typeof Symbol==_0x2d8f5b(0x179)&&typeof Symbol[_0x2d8f5b(0x1a9)]=='symbol'?function(_0x338cab){return typeof _0x338cab;}:function(_0x11fad8){const _0x374883=_0x2d8f5b;return _0x11fad8&&typeof Symbol==_0x374883(0x179)&&_0x11fad8['constructor']===Symbol&&_0x11fad8!==Symbol[_0x374883(0x198)]?'symbol':typeof _0x11fad8;},V(_0x5cae6c);}function me(_0xfde3a9,_0x4297e4){const _0x46d0ee=_0x5d89db;if(V(_0xfde3a9)!=_0x46d0ee(0x182)||!_0xfde3a9)return _0xfde3a9;var _0x4bbc02=_0xfde3a9[Symbol[_0x46d0ee(0x189)]];if(_0x4bbc02!==void 0x0){var _0x525cf0=_0x4bbc02[_0x46d0ee(0x18a)](_0xfde3a9,_0x4297e4||'default');if(V(_0x525cf0)!=_0x46d0ee(0x182))return _0x525cf0;throw TypeError(_0x46d0ee(0x191));}return(_0x4297e4===_0x46d0ee(0x1d3)?String:Number)(_0xfde3a9);}function he(_0x2064ea){const _0x4b8115=_0x5d89db;var _0x1ed15f=me(_0x2064ea,_0x4b8115(0x1d3));return V(_0x1ed15f)=='symbol'?_0x1ed15f:_0x1ed15f+'';}function H(_0xe6d4b6,_0x1f3318,_0x35e827){return(_0x1f3318=he(_0x1f3318))in _0xe6d4b6?Object['defineProperty'](_0xe6d4b6,_0x1f3318,{'value':_0x35e827,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0xe6d4b6[_0x1f3318]=_0x35e827,_0xe6d4b6;}var U=class extends _0x4bc668{constructor(..._0x8836a6){const _0x578043=_0x5d89db;super(..._0x8836a6),H(this,_0x578043(0x18c),new Map()),H(this,_0x578043(0x19d),new _0xf3e6d5()),H(this,'change$',this[_0x578043(0x19d)]['asObservable']());}['getCodeConfig'](_0xa00113,_0x473da4){const _0x2e8ac5=_0x5d89db;return g(this['_resources'][_0x2e8ac5(0x187)](_0xa00113))['codes'][_0x473da4];}[_0x5d89db(0x1a8)](_0x302cc3,_0x735714,_0x191b94){const _0x517a82=_0x5d89db;this['_setResource'](_0x302cc3,_0x735714,_(this['_resources'][_0x517a82(0x187)](_0x302cc3),_0x735714,_0x191b94));}['removeCode'](_0x357037,_0x288e2a){const _0x195484=_0x5d89db;this['_setResource'](_0x357037,_0x288e2a,v(this[_0x195484(0x18c)][_0x195484(0x187)](_0x357037),_0x288e2a));}['serialize'](_0x55f8a2){const _0x4538d4=_0x5d89db;return g(this[_0x4538d4(0x18c)][_0x4538d4(0x187)](_0x55f8a2));}[_0x5d89db(0x1b5)](_0x6848d0,_0x4d0cc7){const _0x486d05=_0x5d89db;this[_0x486d05(0x18c)][_0x486d05(0x1a7)](_0x6848d0,g(_0x4d0cc7)),this[_0x486d05(0x19d)][_0x486d05(0x1c4)]({'unitId':_0x6848d0});}[_0x5d89db(0x1cc)](_0x2664f3){const _0x265885=_0x5d89db;this[_0x265885(0x18c)][_0x265885(0x16d)](_0x2664f3),this[_0x265885(0x19d)][_0x265885(0x1c4)]({'unitId':_0x2664f3});}[_0x5d89db(0x1c8)](){const _0x36d107=_0x5d89db;super[_0x36d107(0x1c8)](),this[_0x36d107(0x18c)][_0x36d107(0x17e)](),this['_change$'][_0x36d107(0x1bd)]();}['_setResource'](_0x50b617,_0x5c9e94,_0xfae61e){const _0x569e5b=_0x5d89db;this[_0x569e5b(0x18c)][_0x569e5b(0x1a7)](_0x50b617,_0xfae61e),this[_0x569e5b(0x19d)][_0x569e5b(0x1c4)]({'unitId':_0x50b617,'blockId':_0x5c9e94});}};_0x22f4b7[_0x5d89db(0x1d6)],_0x22f4b7[_0x5d89db(0x1d6)];const ge={'id':_0x5d89db(0x1be),'type':_0x22f4b7['COMMAND'],'handler':(_0x54956a,_0x1c7865)=>{const _0x716ed4=_0x5d89db;var _0x13aa30,_0xd95464,_0xc946fa;let _0x2595ae=K(_0x54956a,_0x1c7865==null?void 0x0:_0x1c7865[_0x716ed4(0x1a2)]);if(!_0x2595ae)return!0x1;let _0x3b1199=q(_0x54956a),_0x4314e0=b({'blockId':(_0x13aa30=_0x1c7865==null?void 0x0:_0x1c7865[_0x716ed4(0x1c6)])==null?_0x29ed6a(0x6):_0x13aa30,'config':_0x1c7865==null?void 0x0:_0x1c7865[_0x716ed4(0x171)],'documentData':_0x2595ae['previousDocumentData'],'endOffset':(_0xd95464=_0x1c7865==null?void 0x0:_0x1c7865['endOffset'])==null?_0x3b1199==null?void 0x0:_0x3b1199[_0x716ed4(0x16e)]:_0xd95464,'metadata':_0x2595ae[_0x716ed4(0x19a)][_0x716ed4(0x18d)](_0x2595ae[_0x716ed4(0x1a2)]),'startOffset':(_0xc946fa=_0x1c7865==null?void 0x0:_0x1c7865[_0x716ed4(0x1aa)])==null?_0x3b1199==null?void 0x0:_0x3b1199['startOffset']:_0xc946fa}),_0x351938=Y(_0x2595ae[_0x716ed4(0x168)],_0x2595ae[_0x716ed4(0x1a2)],_0x2595ae[_0x716ed4(0x194)],_0x4314e0[_0x716ed4(0x1a4)],_0x4314e0[_0x716ed4(0x17b)]);return _0x351938&&_0x4314e0['nextMetadata']&&_0x2595ae[_0x716ed4(0x19a)][_0x716ed4(0x1b5)](_0x2595ae[_0x716ed4(0x1a2)],_0x4314e0[_0x716ed4(0x17d)]),_0x351938;}},_e={'id':_0x5d89db(0x175),'type':_0x22f4b7[_0x5d89db(0x1d6)],'handler':(_0x37acd8,_0x566a9f)=>{const _0x19da76=_0x5d89db;if(!_0x566a9f)return!0x1;let _0x5191cc=K(_0x37acd8,_0x566a9f[_0x19da76(0x1a2)]);if(!_0x5191cc)return!0x1;let _0x4dda3f=te({'blockId':_0x566a9f['blockId'],'config':_0x566a9f[_0x19da76(0x171)],'documentData':_0x5191cc[_0x19da76(0x194)],'metadata':_0x5191cc['model'][_0x19da76(0x18d)](_0x5191cc['unitId'])});return _0x4dda3f[_0x19da76(0x17d)]&&_0x5191cc[_0x19da76(0x19a)]['deserialize'](_0x5191cc[_0x19da76(0x1a2)],_0x4dda3f[_0x19da76(0x17d)]),!0x0;}},W={'id':_0x5d89db(0x1c9),'type':_0x22f4b7[_0x5d89db(0x1d6)],'handler':(_0x1e4598,_0x2a2215)=>{const _0x15e536=_0x5d89db;var _0x40f0ba,_0x43afb6;let _0x1483b5=K(_0x1e4598,_0x2a2215==null?void 0x0:_0x2a2215[_0x15e536(0x1a2)]);if(!_0x1483b5)return!0x1;let _0x27af81=(_0x40f0ba=_0x2a2215==null?void 0x0:_0x2a2215[_0x15e536(0x17b)])==null?(_0x43afb6=q(_0x1e4598))==null?void 0x0:_0x43afb6[_0x15e536(0x1aa)]:_0x40f0ba;if(_0x27af81==null)return!0x1;let _0x10f223=ne({'cursorOffset':_0x27af81,'documentData':_0x1483b5[_0x15e536(0x194)]});return _0x10f223?Y(_0x1483b5[_0x15e536(0x168)],_0x1483b5[_0x15e536(0x1a2)],_0x1483b5[_0x15e536(0x194)],_0x10f223['nextDocumentData'],_0x10f223[_0x15e536(0x17b)]):!0x1;}},G={'id':_0x5d89db(0x190),'type':_0x22f4b7['COMMAND'],'handler':(_0x230a6d,_0x562f3e)=>{const _0x159815=_0x5d89db;var _0x47da98,_0x478e31;let _0x279caf=K(_0x230a6d,_0x562f3e==null?void 0x0:_0x562f3e[_0x159815(0x1a2)]);if(!_0x279caf)return!0x1;let _0x179489=(_0x47da98=_0x562f3e==null?void 0x0:_0x562f3e['cursorOffset'])==null?(_0x478e31=q(_0x230a6d))==null?void 0x0:_0x478e31[_0x159815(0x1aa)]:_0x47da98;if(_0x179489==null)return!0x1;let _0x110a69=re({'cursorOffset':_0x179489,'documentData':_0x279caf['previousDocumentData'],'paragraphStartIndex':_0x562f3e==null?void 0x0:_0x562f3e[_0x159815(0x195)]});return _0x110a69?Y(_0x279caf['commandService'],_0x279caf[_0x159815(0x1a2)],_0x279caf[_0x159815(0x194)],_0x110a69['nextDocumentData'],_0x110a69['cursorOffset']):!0x1;}};function _0x1854(_0x239d0b,_0x31542a){_0x239d0b=_0x239d0b-0x167;const _0x15c7e8=_0x15c7();let _0x185481=_0x15c7e8[_0x239d0b];return _0x185481;}function K(_0x5e171b,_0x48bf39){const _0x6f7490=_0x5d89db;let _0x344c59=_0x5e171b[_0x6f7490(0x187)](_0x40925a),_0x553d7d=_0x48bf39?_0x344c59['getUniverDocInstance'](_0x48bf39):_0x344c59[_0x6f7490(0x188)](_0x10a714[_0x6f7490(0x1cb)]);return _0x553d7d?{'commandService':_0x5e171b[_0x6f7490(0x187)](_0x2afc20),'model':_0x5e171b[_0x6f7490(0x187)](U),'previousDocumentData':_0x553d7d['getSnapshot'](),'unitId':_0x553d7d[_0x6f7490(0x1c2)]()}:null;}function q(_0x497fd5){const _0x4bbd74=_0x5d89db;var _0x2d5faa;return(_0x2d5faa=_0x497fd5[_0x4bbd74(0x187)](_0x1206d3)[_0x4bbd74(0x1db)]())==null?void 0x0:_0x2d5faa[0x0];}function ve(_0x564d54,_0x1a1099){const _0x3556b8=_0x5d89db;var _0x1f05e1,_0x4fc269,_0x576ca6,_0x374eb4,_0x278086,_0x26e873,_0x22986d,_0x41e761,_0x4fc049,_0x433796,_0x54280b,_0x2acb9a,_0x1fad92,_0x34c240,_0x2ac03e,_0x4a8a75,_0x414c94,_0x5735d8;let _0x3b36d5=_0x209e0e['getInstance']();return[J(_0x3b36d5,[_0x3556b8(0x178),_0x3556b8(0x167)],(_0x1f05e1=_0x564d54['body'])==null?void 0x0:_0x1f05e1[_0x3556b8(0x167)],(_0x4fc269=_0x1a1099['body'])==null?void 0x0:_0x4fc269['dataStream']),J(_0x3b36d5,[_0x3556b8(0x178),_0x3556b8(0x1cd)],(_0x576ca6=_0x564d54[_0x3556b8(0x178)])==null?void 0x0:_0x576ca6['paragraphs'],(_0x374eb4=_0x1a1099[_0x3556b8(0x178)])==null?void 0x0:_0x374eb4['paragraphs']),J(_0x3b36d5,[_0x3556b8(0x178),_0x3556b8(0x1d9)],(_0x278086=_0x564d54['body'])==null?void 0x0:_0x278086['sectionBreaks'],(_0x26e873=_0x1a1099[_0x3556b8(0x178)])==null?void 0x0:_0x26e873[_0x3556b8(0x1d9)]),J(_0x3b36d5,[_0x3556b8(0x178),_0x3556b8(0x193)],(_0x22986d=_0x564d54[_0x3556b8(0x178)])==null?void 0x0:_0x22986d[_0x3556b8(0x193)],(_0x41e761=_0x1a1099[_0x3556b8(0x178)])==null?void 0x0:_0x41e761[_0x3556b8(0x193)]),J(_0x3b36d5,[_0x3556b8(0x178),_0x3556b8(0x1cf)],(_0x4fc049=_0x564d54[_0x3556b8(0x178)])==null?void 0x0:_0x4fc049[_0x3556b8(0x1cf)],(_0x433796=_0x1a1099[_0x3556b8(0x178)])==null?void 0x0:_0x433796[_0x3556b8(0x1cf)]),J(_0x3b36d5,[_0x3556b8(0x178),_0x3556b8(0x1b6)],(_0x54280b=_0x564d54[_0x3556b8(0x178)])==null?void 0x0:_0x54280b[_0x3556b8(0x1b6)],(_0x2acb9a=_0x1a1099[_0x3556b8(0x178)])==null?void 0x0:_0x2acb9a[_0x3556b8(0x1b6)]),J(_0x3b36d5,[_0x3556b8(0x178),_0x3556b8(0x186)],(_0x1fad92=_0x564d54[_0x3556b8(0x178)])==null?void 0x0:_0x1fad92[_0x3556b8(0x186)],(_0x34c240=_0x1a1099[_0x3556b8(0x178)])==null?void 0x0:_0x34c240[_0x3556b8(0x186)]),J(_0x3b36d5,[_0x3556b8(0x178),_0x3556b8(0x1b9)],(_0x2ac03e=_0x564d54[_0x3556b8(0x178)])==null?void 0x0:_0x2ac03e[_0x3556b8(0x1b9)],(_0x4a8a75=_0x1a1099[_0x3556b8(0x178)])==null?void 0x0:_0x4a8a75[_0x3556b8(0x1b9)]),J(_0x3b36d5,[_0x3556b8(0x178),_0x3556b8(0x1d1)],(_0x414c94=_0x564d54['body'])==null?void 0x0:_0x414c94[_0x3556b8(0x1d1)],(_0x5735d8=_0x1a1099[_0x3556b8(0x178)])==null?void 0x0:_0x5735d8['blockRanges'])][_0x3556b8(0x17f)](Boolean)[_0x3556b8(0x1c5)]((_0x3ae940,_0x5e2108)=>_0x209e0e[_0x3556b8(0x1c1)](_0x3ae940,_0x5e2108),null);}function J(_0x535166,_0x2d2f74,_0x1b8e83,_0xbd79f2){return _0x20dd72['diffValue'](_0x1b8e83,_0xbd79f2)?null:_0x535166['replaceOp'](_0x2d2f74,_0x1b8e83,_0xbd79f2);}function Y(_0xe4d6f,_0x266f72,_0x24ca3d,_0xf4ff8e,_0x225eca){const _0x131f7a=_0x5d89db;let _0x299448=ve(_0x24ca3d,_0xf4ff8e);return _0x299448?!!_0xe4d6f[_0x131f7a(0x1c7)](_0x3d459c['id'],{'unitId':_0x266f72,'actions':_0x299448,'textRanges':[{'startOffset':_0x225eca,'endOffset':_0x225eca,'collapsed':!0x0}],'isEditing':!0x1}):!0x1;}var X=class{constructor(_0xab58e4){const _0xd97675=_0x5d89db;this[_0xd97675(0x1c0)]=_0xab58e4;}[_0x5d89db(0x1da)](){const _0x20fb2f=_0x5d89db;return this[_0x20fb2f(0x1c0)]['blockId'];}[_0x5d89db(0x177)](){const _0x201cde=_0x5d89db;let _0xc4a2e2=this['_getBlockRange']();return _0xc4a2e2?{'blockId':_0xc4a2e2['blockId'],'endIndex':_0xc4a2e2['endIndex'],'startIndex':_0xc4a2e2[_0x201cde(0x18b)]}:null;}[_0x5d89db(0x176)](){const _0x44497f=_0x5d89db;var _0x256330;let _0x42615c=this['_getBlockRange'](),_0x23ef27=(_0x256330=this[_0x44497f(0x1c0)][_0x44497f(0x1dd)]()['body'])==null?void 0x0:_0x256330[_0x44497f(0x167)];return!_0x42615c||!_0x23ef27?'':ye(_0x23ef27['slice'](_0x42615c[_0x44497f(0x18b)]+0x1,_0x42615c[_0x44497f(0x1e0)]));}[_0x5d89db(0x1a6)](){const _0x2367bd=_0x5d89db;let _0x5ee491=this[_0x2367bd(0x177)]();return _0x5ee491?{..._0x5ee491,'config':this[_0x2367bd(0x170)](),'text':this['getText'](),'type':_0x2367bd(0x1c3)}:null;}['getConfig'](){const _0x3420fa=_0x5d89db;var _0x59c01a;return h((_0x59c01a=this[_0x3420fa(0x1c0)][_0x3420fa(0x19a)])==null?void 0x0:_0x59c01a[_0x3420fa(0x16b)](this[_0x3420fa(0x1c0)][_0x3420fa(0x1a2)],this[_0x3420fa(0x1c0)]['blockId']));}[_0x5d89db(0x1b4)](_0x533d12){const _0x387749=_0x5d89db;var _0x449260;return!!((_0x449260=this[_0x387749(0x1c0)]['commandService'])!=null&&_0x449260[_0x387749(0x1c7)](_e['id'],{'blockId':this[_0x387749(0x1c0)][_0x387749(0x1c6)],'config':_0x533d12[_0x387749(0x171)],'unitId':this[_0x387749(0x1c0)][_0x387749(0x1a2)]}));}[_0x5d89db(0x199)](_0x4c83df){const _0x56090c=_0x5d89db;var _0x50eacb;return!!((_0x50eacb=this[_0x56090c(0x1c0)]['commandService'])!=null&&_0x50eacb[_0x56090c(0x1c7)](W['id'],{'cursorOffset':_0x4c83df,'unitId':this[_0x56090c(0x1c0)]['unitId']}));}[_0x5d89db(0x1d7)](_0x93e404={}){const _0x903ed7=_0x5d89db;var _0xd9888c;return!!((_0xd9888c=this[_0x903ed7(0x1c0)][_0x903ed7(0x168)])!=null&&_0xd9888c[_0x903ed7(0x1c7)](G['id'],{..._0x93e404,'unitId':this[_0x903ed7(0x1c0)][_0x903ed7(0x1a2)]}));}[_0x5d89db(0x1de)](){const _0x1530bf=_0x5d89db;var _0x40092b;return(_0x40092b=this['_runtime'][_0x1530bf(0x1dd)]()[_0x1530bf(0x178)])==null||(_0x40092b=_0x40092b[_0x1530bf(0x1d1)])==null?void 0x0:_0x40092b[_0x1530bf(0x17a)](_0x56f897=>_0x56f897[_0x1530bf(0x1c6)]===this['_runtime'][_0x1530bf(0x1c6)]&&_0x56f897[_0x1530bf(0x1a5)]===_0x1530bf(0x1c3));}};function ye(_0x1af559){const _0x2af04f=_0x5d89db;return Array[_0x2af04f(0x19b)](_0x1af559)[_0x2af04f(0x197)](_0x413d55=>_0x413d55===_0x180f7a[_0x2af04f(0x17c)]?'\x0a':_0x413d55)[_0x2af04f(0x17f)](_0x900462=>_0x900462!==_0x180f7a[_0x2af04f(0x16a)]&&_0x900462!==_0x180f7a[_0x2af04f(0x1ba)]&&_0x900462!==_0x180f7a[_0x2af04f(0x1d5)])[_0x2af04f(0x1d0)]('')[_0x2af04f(0x1dc)](/\n$/,'');}Object[_0x5d89db(0x1a1)](_0x19b331[_0x5d89db(0x198)],{'getCodes'(){const _0x548804=_0x5d89db;var _0x23d4e8,_0x14eb0e;return(_0x23d4e8=(_0x14eb0e=this[_0x548804(0x173)]()[_0x548804(0x178)])==null||(_0x14eb0e=_0x14eb0e['blockRanges'])==null?void 0x0:_0x14eb0e[_0x548804(0x17f)](_0x317a3f=>_0x317a3f['blockType']===_0x548804(0x1c3))[_0x548804(0x197)](_0x1b9a7a=>Z(this,_0x1b9a7a[_0x548804(0x1c6)])))==null?[]:_0x23d4e8;},'getCode'(_0x8216e1){const _0x465615=_0x5d89db;var _0x18a6ee;return!((_0x18a6ee=this[_0x465615(0x173)]()[_0x465615(0x178)])==null||(_0x18a6ee=_0x18a6ee[_0x465615(0x1d1)])==null)&&_0x18a6ee[_0x465615(0x1ac)](_0x41e95c=>_0x41e95c[_0x465615(0x1c6)]===_0x8216e1&&_0x41e95c[_0x465615(0x1a5)]==='code')?Z(this,_0x8216e1):null;},'getCodeAt'(_0x415225){const _0x1efb84=_0x5d89db;var _0x37e4b6;let _0x189e5c=(_0x37e4b6=this['getSnapshot']()['body'])==null||(_0x37e4b6=_0x37e4b6[_0x1efb84(0x1d1)])==null||(_0x37e4b6=_0x37e4b6[_0x1efb84(0x17a)](_0x59572c=>_0x59572c['blockType']===_0x1efb84(0x1c3)&&_0x59572c[_0x1efb84(0x18b)]<=_0x415225&&_0x415225<=_0x59572c[_0x1efb84(0x1e0)]))==null?void 0x0:_0x37e4b6[_0x1efb84(0x1c6)];return _0x189e5c?Z(this,_0x189e5c):null;},'findCodeByText'(_0x3c9ba5){var _0x362aed;return(_0x362aed=this['findCodes'](_0x3c9ba5)[0x0])==null?null:_0x362aed;},'findCodes'(_0x1e62c5){const _0x475334=_0x5d89db;let _0x4700a2=typeof _0x1e62c5=='string'?{'text':_0x1e62c5}:_0x1e62c5;return this[_0x475334(0x1b2)]()['filter'](_0x1d6ec5=>!(_0x4700a2[_0x475334(0x1c6)]&&_0x1d6ec5[_0x475334(0x1da)]()!==_0x4700a2[_0x475334(0x1c6)]||_0x4700a2[_0x475334(0x1d8)]&&!_0x1d6ec5['getText']()[_0x475334(0x185)](_0x4700a2[_0x475334(0x1d8)])));},'insertCode'(_0x43ab34={}){const _0x2e95f8=_0x5d89db;var _0x18b226,_0x2b1335;let _0x83a209=(_0x18b226=_0x43ab34[_0x2e95f8(0x1c6)])==null?'docs-code-'+Date[_0x2e95f8(0x174)]():_0x18b226;return(_0x2b1335=Q(this))!=null&&_0x2b1335[_0x2e95f8(0x1c7)](ge['id'],{..._0x43ab34,'blockId':_0x83a209,'unitId':this['getId']()})?Z(this,_0x83a209):null;},'exitCode'(_0x4b4116){const _0x4d0cd3=_0x5d89db;var _0x303e91;return!!((_0x303e91=Q(this))!=null&&_0x303e91[_0x4d0cd3(0x1c7)](W['id'],{'cursorOffset':_0x4b4116,'unitId':this[_0x4d0cd3(0x1da)]()}));},'cancelEmptyCodeParagraph'(_0x2c1886={}){const _0x5c4f8d=_0x5d89db;var _0x37bbf1;return!!((_0x37bbf1=Q(this))!=null&&_0x37bbf1[_0x5c4f8d(0x1c7)](G['id'],{..._0x2c1886,'unitId':this[_0x5c4f8d(0x1da)]()}));}});function Z(_0x2e7898,_0x509d96){const _0x583551=_0x5d89db;let _0x929d36=$(_0x2e7898);return new X({'blockId':_0x509d96,'commandService':Q(_0x2e7898),'getDocumentData':()=>_0x2e7898[_0x583551(0x173)](),'model':_0x929d36==null?void 0x0:_0x929d36[_0x583551(0x187)](U),'unitId':_0x2e7898['getId']()});}function Q(_0x4a253f){const _0x4d9100=_0x5d89db;var _0x12b10d,_0x566e71;return(_0x12b10d=_0x4a253f[_0x4d9100(0x1a0)])==null?(_0x566e71=$(_0x4a253f))==null?void 0x0:_0x566e71[_0x4d9100(0x187)](_0x2afc20):_0x12b10d;}function $(_0x320f85){const _0x2292aa=_0x5d89db;return _0x320f85[_0x2292aa(0x1a3)];}export{X as FDocsCode};
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x5dff43=_0xefc6;(function(_0x20b2ba,_0x3b81c4){const _0x384c4d=_0xefc6,_0xd3fdeb=_0x20b2ba();while(!![]){try{const _0x2485be=parseInt(_0x384c4d(0x12c))/0x1*(parseInt(_0x384c4d(0xfe))/0x2)+parseInt(_0x384c4d(0x15c))/0x3*(-parseInt(_0x384c4d(0x162))/0x4)+parseInt(_0x384c4d(0x123))/0x5*(parseInt(_0x384c4d(0x119))/0x6)+-parseInt(_0x384c4d(0x155))/0x7+parseInt(_0x384c4d(0x14e))/0x8+parseInt(_0x384c4d(0x14c))/0x9+-parseInt(_0x384c4d(0x14f))/0xa*(parseInt(_0x384c4d(0x125))/0xb);if(_0x2485be===_0x3b81c4)break;else _0xd3fdeb['push'](_0xd3fdeb['shift']());}catch(_0x2342f9){_0xd3fdeb['push'](_0xd3fdeb['shift']());}}}(_0x3697,0xf2f0a));import{BuildTextUtils as _0x3f3466,CommandType as _0x429366,DataStreamTreeTokenType as _0x118780,DependentOn as _0x1f3f5d,Disposable as _0x4f4652,ICommandService as _0x30d956,IConfigService as _0x593dcf,IResourceManagerService as _0x87f109,IUniverInstanceService as _0x4b9d11,Inject as _0x12904a,Injector as _0x149eef,JSONX as _0x258410,Plugin as _0x4c26b0,Tools as _0x31f673,UniverInstanceType as _0x4ff86,generateRandomId as _0x2ccb14,merge as _0x59ac2a}from'@univerjs/core';import{DocSelectionManagerService as _0x13a39e,RichTextEditingMutation as _0x4d43df,UniverDocsPlugin as _0x67b571}from'@univerjs/docs';import{DocContentInsertService as _0x4b89f8}from'@univerjs/docs-ui';import{Subject as _0x4c1f8d}from'rxjs';import{UniverLicensePlugin as _0x327916}from'@univerjs-pro/license';const S=_0x5dff43(0x148),C=_0x5dff43(0x140),w={'language':'javascript','showLineNumbers':!0x1,'tabSize':0x4,'wrap':!0x0};function T(_0x31d379){return{...w,..._0x31d379};}function E(_0x286772){const _0x44aae7=_0x5dff43;var _0x5935d7;let _0x2d7b37=(_0x5935d7=_0x286772==null?void 0x0:_0x286772[_0x44aae7(0x10a)])==null?{}:_0x5935d7;return{'codes':Object['fromEntries'](Object[_0x44aae7(0xfb)](_0x2d7b37)['map'](([_0x15c3e6,_0x2e32ee])=>[_0x15c3e6,T(_0x2e32ee)]))};}function D(_0xb3fde1,_0x18b005,_0x464cce){const _0x3f5917=_0x5dff43;let _0x40e5bf=E(_0xb3fde1);return _0x40e5bf[_0x3f5917(0x10a)][_0x18b005]=T({..._0x40e5bf[_0x3f5917(0x10a)][_0x18b005],..._0x464cce}),_0x40e5bf;}function te(_0x7d1235,_0x428d6c){let _0x5ccb34=E(_0x7d1235);return delete _0x5ccb34['codes'][_0x428d6c],_0x5ccb34;}const ne=_0x5dff43(0x153);function re(_0x11b0b1){const _0x37906e=_0x5dff43;var _0x4cabaa,_0x45923c,_0x18beee;let _0x46a091=A(_0x11b0b1[_0x37906e(0xe3)]),_0x296b1d=j(_0x46a091),_0x23d7a7=ae(_0x11b0b1['startOffset'],_0x11b0b1[_0x37906e(0x11e)]),_0x11e421=_0x23d7a7?(_0x4cabaa=_0x296b1d['blockRanges'])==null?void 0x0:_0x4cabaa[_0x37906e(0x115)](_0xb536f1=>_0xb536f1[_0x37906e(0x165)]===_0x23d7a7[_0x37906e(0x121)]&&_0xb536f1[_0x37906e(0x145)]+0x1===_0x23d7a7['endOffset']):void 0x0,{startOffset:_0x30d293,endOffset:_0x9bbd5}=_0x11e421?_0x23d7a7:ge(_0x296b1d,_0x11b0b1[_0x37906e(0x121)],_0x11b0b1[_0x37906e(0x11e)]),_0x4e341e=ve(_0x296b1d,_0x30d293,_0x9bbd5),_0x51e93c=(_0x45923c=_0x11e421==null?void 0x0:_0x11e421['blockId'])==null?_0x11b0b1[_0x37906e(0x152)]:_0x45923c,_0x3f111c=D(_0x11b0b1[_0x37906e(0x126)],_0x51e93c,{...w,..._0x11b0b1['config']});if(_0x11e421)return _0x11e421['blockType']=C,ie(_0x296b1d,_0x30d293,_0x9bbd5),fe(_0x296b1d,_0x30d293,_0x9bbd5,_0x4e341e),{'nextDocumentData':_0x46a091,'nextMetadata':_0x3f111c,'cursorOffset':_0x30d293+0x1};if(_0x30d293===_0x9bbd5){let _0x37e614=''+_0x118780['BLOCK_START']+_0x118780[_0x37906e(0x12e)]+_0x118780[_0x37906e(0x11f)];return F(_0x296b1d,_0x30d293,_0x37e614,{'paragraphs':[{'startIndex':0x1,'paragraphStyle':k(!0x0,!0x0,_0x4e341e)}],'blockRanges':[{'blockId':_0x51e93c,'blockType':C,'startIndex':0x0,'endIndex':_0x37e614[_0x37906e(0x150)]-0x1}]}),{'nextDocumentData':_0x46a091,'nextMetadata':_0x3f111c,'cursorOffset':_0x30d293+0x1};}return F(_0x296b1d,_0x9bbd5,_0x118780[_0x37906e(0x11f)]),F(_0x296b1d,_0x30d293,_0x118780['BLOCK_START']),fe(_0x296b1d,_0x30d293,_0x9bbd5+0x1,_0x4e341e),_0x296b1d[_0x37906e(0xe6)]=[...(_0x18beee=_0x296b1d[_0x37906e(0xe6)])==null?[]:_0x18beee,{'blockId':_0x51e93c,'blockType':C,'startIndex':_0x30d293,'endIndex':_0x9bbd5+0x1}][_0x37906e(0x135)]((_0x24871f,_0x51e111)=>_0x24871f[_0x37906e(0x165)]-_0x51e111[_0x37906e(0x165)]),{'nextDocumentData':_0x46a091,'nextMetadata':_0x3f111c,'cursorOffset':_0x30d293+0x1};}function ie(_0x49c1cd,_0x65bb75,_0x412fd9){const _0x7e9c53=_0x5dff43;var _0x171107;((_0x171107=_0x49c1cd[_0x7e9c53(0x158)])==null?[]:_0x171107)[_0x7e9c53(0xf9)](_0x332309=>_0x332309[_0x7e9c53(0x165)]>_0x65bb75&&_0x332309[_0x7e9c53(0x165)]<_0x412fd9)[_0x7e9c53(0x124)](_0x2f04f8=>{const _0x22c99e=_0x7e9c53;var _0x3f9416;let _0xcc843f={...(_0x3f9416=_0x2f04f8['paragraphStyle'])==null?{}:_0x3f9416};delete _0xcc843f[_0x22c99e(0x13a)],delete _0xcc843f[_0x22c99e(0x159)],_0x2f04f8[_0x22c99e(0x164)]=_0xcc843f;});}function ae(_0x563893,_0x59c902){const _0x13fabf=_0x5dff43;return _0x563893==null||_0x59c902==null||_0x563893===_0x59c902?null:{'startOffset':Math[_0x13fabf(0x154)](_0x563893,_0x59c902),'endOffset':Math[_0x13fabf(0x13d)](_0x563893,_0x59c902)};}function O(_0x23ef57){const _0x206ffa=_0x5dff43;return{'nextDocumentData':A(_0x23ef57[_0x206ffa(0xe3)]),'nextMetadata':D(_0x23ef57[_0x206ffa(0x126)],_0x23ef57[_0x206ffa(0x152)],_0x23ef57[_0x206ffa(0x102)]),'cursorOffset':0x0};}function oe(_0xe25892){const _0x15d12b=_0x5dff43;var _0x18fe62,_0xdf3fdb;let _0x3027e4=A(_0xe25892['documentData']),_0x4fdf5d=j(_0x3027e4),_0x3c6800=de(_0x4fdf5d,_0xe25892[_0x15d12b(0x143)]);if(!_0x3c6800)return null;let _0x496f50=me(_0x4fdf5d,_0x3c6800),_0x3ada5a=_0x496f50[_0x496f50[_0x15d12b(0x150)]-0x1];if(!_0x3ada5a||!he(_0x4fdf5d,_0x3c6800,_0x3ada5a)||_0xe25892['cursorOffset']<_0x3ada5a[_0x15d12b(0x165)])return null;let _0x3cdc80=N(_0x4fdf5d,_0x3c6800,_0x3ada5a);if(_0x3cdc80>=_0x3c6800['endIndex'])return null;_0x4fdf5d[_0x15d12b(0x112)]=[_0x4fdf5d[_0x15d12b(0x112)][_0x15d12b(0x108)](0x0,_0x3cdc80),_0x118780[_0x15d12b(0x11f)],_0x4fdf5d[_0x15d12b(0x112)][_0x15d12b(0x108)](_0x3cdc80,_0x3c6800[_0x15d12b(0x145)]),_0x4fdf5d['dataStream'][_0x15d12b(0x108)](_0x3c6800[_0x15d12b(0x145)]+0x1)][_0x15d12b(0x12f)](''),B(_0x4fdf5d[_0x15d12b(0x158)],_0x3cdc80,_0x3c6800['endIndex'],0x1),B(_0x4fdf5d[_0x15d12b(0x139)],_0x3cdc80,_0x3c6800[_0x15d12b(0x145)],0x1),B(_0x4fdf5d[_0x15d12b(0x147)],_0x3cdc80,_0x3c6800['endIndex'],0x1),Te(_0x4fdf5d['textRuns'],_0x3cdc80,_0x3c6800[_0x15d12b(0x145)],0x1),V(_0x4fdf5d['tables'],_0x3cdc80,_0x3c6800[_0x15d12b(0x145)],0x1),V(_0x4fdf5d[_0x15d12b(0xef)],_0x3cdc80,_0x3c6800[_0x15d12b(0x145)],0x1),V(_0x4fdf5d[_0x15d12b(0x111)],_0x3cdc80,_0x3c6800['endIndex'],0x1),(_0x18fe62=_0x4fdf5d[_0x15d12b(0xe6)])==null||_0x18fe62[_0x15d12b(0x124)](_0x7cca86=>{const _0x209ea4=_0x15d12b;_0x7cca86===_0x3c6800||_0x7cca86[_0x209ea4(0x152)]===_0x3c6800['blockId']?_0x7cca86['endIndex']=_0x3cdc80:_0x7cca86[_0x209ea4(0x165)]>=_0x3cdc80&&_0x7cca86[_0x209ea4(0x165)]<_0x3c6800[_0x209ea4(0x145)]&&(_0x7cca86[_0x209ea4(0x165)]+=0x1,_0x7cca86[_0x209ea4(0x145)]+=0x1);});let _0x17d243=me(_0x4fdf5d,{..._0x3c6800,'endIndex':_0x3cdc80});_0x17d243['forEach']((_0x4fea0d,_0x51acf5)=>{const _0x591fb8=_0x15d12b;var _0x388543;_0x4fea0d['paragraphStyle']={...(_0x388543=_0x4fea0d[_0x591fb8(0x164)])==null?{}:_0x388543,...k(_0x51acf5===0x0,_0x51acf5===_0x17d243[_0x591fb8(0x150)]-0x1)};});let _0x2bd312=(_0xdf3fdb=_0x4fdf5d['paragraphs'])==null?void 0x0:_0xdf3fdb[_0x15d12b(0x115)](_0x41dbc9=>_0x41dbc9['startIndex']===_0x3cdc80+0x1);return _0x2bd312&&(_0x2bd312[_0x15d12b(0x164)]=pe(_0x2bd312[_0x15d12b(0x164)])),{'nextDocumentData':_0x3027e4,'cursorOffset':_0x3cdc80+0x1};}function se(_0x16611e){const _0x3db832=_0x5dff43;let _0x247f2f=A(_0x16611e[_0x3db832(0xe3)]),_0x5b98c0=j(_0x247f2f),_0x23bd0f=de(_0x5b98c0,_0x16611e[_0x3db832(0x143)]);return _0x23bd0f&&ce(_0x247f2f,_0x5b98c0,_0x23bd0f,_0x16611e[_0x3db832(0x143)],_0x16611e[_0x3db832(0xe5)])||null;}function ce(_0x21e6d4,_0xadb4cd,_0x423df0,_0x300052,_0x166dc7){const _0x1cdfd2=_0x5dff43;let _0x3109c6=be(_0xadb4cd,_0x423df0,_0x300052,_0x166dc7);if(!_0x3109c6)return null;let _0x55eeed=_0x3109c6[_0x1cdfd2(0xec)]-0x1;return xe(_0xadb4cd,_0x3109c6[_0x1cdfd2(0x14d)]['startIndex'],_0x3109c6[_0x1cdfd2(0x14d)][_0x1cdfd2(0x165)]+0x1),{'nextDocumentData':_0x21e6d4,'cursorOffset':_0x55eeed};}function le(_0x55dc0b,_0x5f5ddd){const _0x36ec14=_0x5dff43;var _0x2986d0;return _0x55dc0b==null||(_0x2986d0=_0x55dc0b['blockRanges'])==null?void 0x0:_0x2986d0['find'](_0x15f380=>_0x15f380['blockType']==='code'&&_0x15f380['startIndex']<=_0x5f5ddd&&_0x5f5ddd<=_0x15f380[_0x36ec14(0x145)]);}function ue(_0xba3528){const _0x586e1b=_0x5dff43;var _0x3e6a0c;let _0x2cb082=_0xba3528[_0x586e1b(0xe3)][_0x586e1b(0x127)];if(!_0x2cb082)return!0x1;let _0x35ca2f=_0xba3528[_0x586e1b(0x141)]===_0x586e1b(0x149)?_0xba3528[_0x586e1b(0x143)]-0x1:_0xba3528[_0x586e1b(0x143)],_0x10de4b=_0xba3528['direction']==='right'?_0xba3528[_0x586e1b(0x143)]+0x1:_0x35ca2f;return((_0x3e6a0c=_0x2cb082[_0x586e1b(0xe6)])==null?[]:_0x3e6a0c)[_0x586e1b(0x146)](_0x503c33=>_0x503c33['blockType']===_0x586e1b(0x140)?_0x35ca2f===_0x503c33['startIndex']||_0x35ca2f===_0x503c33[_0x586e1b(0x145)]||_0x10de4b===_0x503c33['startIndex']||_0x10de4b===_0x503c33[_0x586e1b(0x145)]:!0x1);}function de(_0x47cc05,_0x5d9cc6){var _0x39eb6b;return(_0x39eb6b=_0x47cc05['blockRanges'])==null?void 0x0:_0x39eb6b['find'](_0x13b32a=>{const _0x147f8f=_0xefc6;let _0x27c180=P(_0x47cc05,_0x13b32a);return _0x13b32a['blockType']==='code'&&_0x13b32a[_0x147f8f(0x165)]<=_0x5d9cc6&&_0x5d9cc6<=_0x27c180+0x2;});}function k(_0x12c481,_0x12b51a,_0x4594b5=!0x1){return{'indentEnd':{'v':0x14},'indentStart':{'v':0x14},..._0x12c481&&_0x4594b5?{'spaceAbove':{'v':0x8}}:{},'textStyle':{'ff':ne,'fs':0xc}};}function fe(_0x13289e,_0x50edc6,_0x3de04a,_0x541d09=!0x1){const _0x118ffb=_0x5dff43;var _0xe70630;let _0x7a3e6d=((_0xe70630=_0x13289e[_0x118ffb(0x158)])==null?[]:_0xe70630)['filter'](_0x5e67eb=>_0x5e67eb['startIndex']>_0x50edc6&&_0x5e67eb['startIndex']<_0x3de04a);_0x7a3e6d[_0x118ffb(0x124)]((_0x450365,_0x65c969)=>{const _0x4602f=_0x118ffb;var _0x55ff9d;_0x450365[_0x4602f(0x164)]={...(_0x55ff9d=_0x450365[_0x4602f(0x164)])==null?{}:_0x55ff9d,...k(_0x65c969===0x0,_0x65c969===_0x7a3e6d[_0x4602f(0x150)]-0x1,_0x541d09)};});}function pe(_0x1fd862){const _0x47b574=_0x5dff43;var _0x3032e0,_0x414733;let _0x422a70={..._0x1fd862==null?{}:_0x1fd862};return delete _0x422a70[_0x47b574(0x13e)],delete _0x422a70[_0x47b574(0x156)],delete _0x422a70[_0x47b574(0x13a)],delete _0x422a70['spaceBelow'],((_0x3032e0=_0x422a70[_0x47b574(0xdf)])==null?void 0x0:_0x3032e0['ff'])===ne&&((_0x414733=_0x422a70[_0x47b574(0xdf)])==null?void 0x0:_0x414733['fs'])===0xc&&delete _0x422a70[_0x47b574(0xdf)],_0x422a70;}function me(_0x46d1da,_0x55f110){const _0xa0c95=_0x5dff43;var _0x4f4ba0;let _0x63ac5f=P(_0x46d1da,_0x55f110);return((_0x4f4ba0=_0x46d1da[_0xa0c95(0x158)])==null?[]:_0x4f4ba0)[_0xa0c95(0xf9)](_0x2d6ce8=>_0x2d6ce8[_0xa0c95(0x165)]>_0x55f110['startIndex']&&_0x2d6ce8[_0xa0c95(0x165)]<_0x63ac5f);}function he(_0x15db71,_0x55a44d,_0x16bab4){const _0x555f83=_0x5dff43;let _0x270b5a=N(_0x15db71,_0x55a44d,_0x16bab4),_0x36d495=_0x15db71['dataStream'][_0x555f83(0x108)](_0x270b5a,_0x16bab4[_0x555f83(0x165)]);return Array['from'](_0x36d495)[_0x555f83(0x144)](_0x3d63a4=>_0x3d63a4===_0x118780[_0x555f83(0x13b)]||_0x3d63a4===_0x118780[_0x555f83(0x11f)]);}function A(_0xc1e142){return _0x31f673['deepClone'](_0xc1e142);}function j(_0x2543b2){const _0x3a33fc=_0x5dff43;if(!_0x2543b2['body'])throw Error(_0x3a33fc(0x107));return _0x2543b2[_0x3a33fc(0x127)];}function ge(_0x4246c4,_0x4e0987,_0x551d53){const _0x299498=_0x5dff43;if(_0x4e0987==null||_0x551d53==null){let _0x5d36e3=_e(_0x4246c4);return{'startOffset':_0x5d36e3,'endOffset':_0x5d36e3};}let _0x589934=Math[_0x299498(0x154)](_0x4e0987,_0x551d53),_0x4344ac=Math[_0x299498(0x13d)](_0x4e0987,_0x551d53);return _0x589934===_0x4344ac?{'startOffset':_0x589934,'endOffset':_0x589934}:ye(_0x4246c4,_0x589934,_0x4344ac);}function _e(_0x16aead){const _0x13e0ac=_0x5dff43;return _0x16aead['dataStream']['endsWith'](_0x118780[_0x13e0ac(0xf8)])?Math[_0x13e0ac(0x13d)](0x0,_0x16aead[_0x13e0ac(0x112)]['length']-0x1):_0x16aead['dataStream'][_0x13e0ac(0x150)];}function ve(_0x22779b,_0x493e76,_0x1eb04e){const _0xbe7acd=_0x5dff43;var _0x1e16e8;let _0x1eb7f4=Math[_0xbe7acd(0x154)](_0x493e76,_0x1eb04e),_0x5b58ea=Math[_0xbe7acd(0x13d)](_0x493e76,_0x1eb04e);return!!((_0x1e16e8=_0x22779b[_0xbe7acd(0x151)])!=null&&_0x1e16e8[_0xbe7acd(0x146)](_0x4ea22a=>_0x1eb7f4>_0x4ea22a[_0xbe7acd(0x165)]&&_0x1eb7f4<_0x4ea22a[_0xbe7acd(0x145)]||_0x5b58ea>_0x4ea22a[_0xbe7acd(0x165)]&&_0x5b58ea<_0x4ea22a[_0xbe7acd(0x145)]||_0x1eb7f4<=_0x4ea22a[_0xbe7acd(0x165)]&&_0x5b58ea>=_0x4ea22a[_0xbe7acd(0x145)]));}function ye(_0x6ae499,_0x159bd8,_0x38adb0){const _0x4311da=_0x5dff43;var _0x392353,_0x35f346;let _0x24f1fd=[...(_0x392353=_0x6ae499[_0x4311da(0x158)])==null?[]:_0x392353]['sort']((_0x175e17,_0x48d9b3)=>_0x175e17[_0x4311da(0x165)]-_0x48d9b3[_0x4311da(0x165)]),_0x19a821=_0x24f1fd[_0x4311da(0x115)]((_0x8b1304,_0x366485)=>(_0x366485===0x0?0x0:_0x24f1fd[_0x366485-0x1][_0x4311da(0x165)]+0x1)<=_0x159bd8&&_0x159bd8<=_0x8b1304[_0x4311da(0x165)]),_0x3d95b9=(_0x35f346=_0x24f1fd[_0x4311da(0x115)](_0x283153=>_0x283153['startIndex']>=_0x38adb0-0x1))==null?_0x24f1fd[_0x24f1fd[_0x4311da(0x150)]-0x1]:_0x35f346;return{'startOffset':_0x19a821?M(_0x24f1fd,_0x19a821):_0x159bd8,'endOffset':_0x3d95b9?_0x3d95b9[_0x4311da(0x165)]+0x1:_0x38adb0};}function M(_0x1238df,_0x19a722){let _0x5ed569=_0x1238df['indexOf'](_0x19a722);return _0x5ed569>0x0?_0x1238df[_0x5ed569-0x1]['startIndex']+0x1:0x0;}function N(_0x23b502,_0x5dbc84,_0x2a1a12){const _0x116ac8=_0x5dff43;var _0x3ef958;return Math[_0x116ac8(0x13d)](M((_0x3ef958=_0x23b502[_0x116ac8(0x158)])==null?[]:_0x3ef958,_0x2a1a12),_0x5dbc84['startIndex']+0x1);}function P(_0x20affb,_0x557669){const _0x383b28=_0x5dff43;return _0x20affb['dataStream'][_0x557669[_0x383b28(0x145)]]===_0x118780[_0x383b28(0x11f)]?_0x557669[_0x383b28(0x145)]:_0x20affb['dataStream'][_0x557669[_0x383b28(0x145)]+0x1]===_0x118780['BLOCK_END']?_0x557669[_0x383b28(0x145)]+0x1:_0x557669[_0x383b28(0x145)];}function be(_0x327f39,_0x15aac7,_0xc76281,_0x14833c){const _0x6b60f7=_0x5dff43;var _0x594175,_0x57f858;let _0x34948e=P(_0x327f39,_0x15aac7),_0x2aa67d=((_0x594175=_0x327f39[_0x6b60f7(0x158)])==null?[]:_0x594175)[_0x6b60f7(0x115)](_0x18ee71=>_0x18ee71[_0x6b60f7(0x165)]===_0x34948e+0x1);if(!_0x2aa67d||_0x14833c!=null&&_0x2aa67d[_0x6b60f7(0x165)]!==_0x14833c||_0xc76281<_0x34948e||_0xc76281>_0x2aa67d[_0x6b60f7(0x165)]+0x1||_0x327f39[_0x6b60f7(0x112)][_0x2aa67d['startIndex']]!==_0x118780['PARAGRAPH'])return null;let _0x155e54=M((_0x57f858=_0x327f39[_0x6b60f7(0x158)])==null?[]:_0x57f858,_0x2aa67d),_0x44b302=_0x327f39[_0x6b60f7(0x112)][_0x6b60f7(0x108)](_0x155e54,_0x2aa67d[_0x6b60f7(0x165)]);return Array[_0x6b60f7(0x117)](_0x44b302)[_0x6b60f7(0x144)](_0x5b04a6=>_0x5b04a6===_0x118780[_0x6b60f7(0x11f)])?{'paragraph':_0x2aa67d,'endTokenOffset':_0x34948e}:null;}function F(_0x4f7092,_0x1cdd8e,_0x1a8d4f,_0x43d7ef={}){const _0x474c0e=_0x5dff43;var _0x4a4d24,_0x34181f;if(_0x1a8d4f){if(_0x4f7092['dataStream']=''+_0x4f7092[_0x474c0e(0x112)][_0x474c0e(0x108)](0x0,_0x1cdd8e)+_0x1a8d4f+_0x4f7092[_0x474c0e(0x112)]['slice'](_0x1cdd8e),Se(_0x4f7092,_0x1cdd8e,_0x1a8d4f[_0x474c0e(0x150)]),(_0x4a4d24=_0x43d7ef[_0x474c0e(0x158)])!=null&&_0x4a4d24[_0x474c0e(0x150)]){var _0x52e49c;_0x4f7092[_0x474c0e(0x158)]=[...(_0x52e49c=_0x4f7092[_0x474c0e(0x158)])==null?[]:_0x52e49c,..._0x43d7ef[_0x474c0e(0x158)]['map'](_0x1d14ef=>({..._0x1d14ef,'startIndex':_0x1d14ef[_0x474c0e(0x165)]+_0x1cdd8e}))][_0x474c0e(0x135)]((_0x31c234,_0x15656e)=>_0x31c234['startIndex']-_0x15656e['startIndex']);}if((_0x34181f=_0x43d7ef[_0x474c0e(0xe6)])!=null&&_0x34181f[_0x474c0e(0x150)]){var _0x4dc31c;_0x4f7092[_0x474c0e(0xe6)]=[...(_0x4dc31c=_0x4f7092[_0x474c0e(0xe6)])==null?[]:_0x4dc31c,..._0x43d7ef[_0x474c0e(0xe6)][_0x474c0e(0x132)](_0x580bc6=>({..._0x580bc6,'startIndex':_0x580bc6['startIndex']+_0x1cdd8e,'endIndex':_0x580bc6[_0x474c0e(0x145)]+_0x1cdd8e}))]['sort']((_0x198f13,_0x331572)=>_0x198f13[_0x474c0e(0x165)]-_0x331572[_0x474c0e(0x165)]);}}}function _0x3697(){const _0x5d2d39=['paragraphStyle','startIndex','getUniverDocInstance','complete','textStyle','docs-code.command.exit','serialize','diffValue','documentData','default','paragraphStartIndex','blockRanges','_commandService','packageName','_change$','COMMAND','nextDocumentData','endTokenOffset','nextMetadata','docs-code.config','customRanges','asObservable','prototype','deserialize','textRuns','removeUnit','function','change$','type','SECTION_BREAK','filter','previousDocumentData','entries','model','docs-code.command.insert','2tDfhwY','commandService','constructor','consumeInsertRange','config','registerPluginResource','getInstance','getCurrentUnitOfType','_resourceManagerService','Document\x20body\x20is\x20required','slice','get','codes','setCodeConfig','clear','defineProperty','next','delete','dispose','customDecorations','dataStream','decorate','docs-code.command.insert-below','find','pluginName','from','add','6qwnczc','UNIVER_DOC','0.24.0-insiders.20260530-98808ab','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','symbol','endOffset','BLOCK_END','_resources','startOffset','_setResource','2186195XTctNc','forEach','1662430LTRiWU','metadata','body','docs-code.command.update','getTextRanges','compose','_docsCodeModel','739231JrMddD','call','PARAGRAPH','join','iterator','syncExecuteCommand','map','_config','set','sort','_injector','getUnitId','disposeWithMe','sectionBreaks','spaceAbove','BLOCK_START','registerCommand','max','indentEnd','setConfig','code','direction','removeCode','cursorOffset','every','endIndex','some','customBlocks','DOC_CODE_PLUGIN','left','unitId','onStarting','14057199vjgptq','paragraph','14548136zgXLSi','50rjkmgi','length','tables','blockId','monospace','min','12072823aNceGB','indentStart','stringify','paragraphs','spaceBelow','parse','object','3aCXzOB','_configService','string','getCodeConfig','getBody','docs-code.command.consume-boundary-delete','4325908KHFtMx','docs-code.command.cancel-empty-paragraph'];_0x3697=function(){return _0x5d2d39;};return _0x3697();}function xe(_0x96c527,_0x58f2c6,_0x5ee3b2){const _0x397e49=_0x5dff43;let _0x13ec13=_0x5ee3b2-_0x58f2c6;_0x96c527[_0x397e49(0x112)]=''+_0x96c527[_0x397e49(0x112)][_0x397e49(0x108)](0x0,_0x58f2c6)+_0x96c527[_0x397e49(0x112)]['slice'](_0x5ee3b2),Ce(_0x96c527,_0x58f2c6,_0x13ec13);}function Se(_0x179206,_0x290bb8,_0x1248d5){const _0xc8eb4f=_0x5dff43;_0x179206[_0xc8eb4f(0x158)]=I(_0x179206['paragraphs'],_0x290bb8,_0x1248d5),_0x179206[_0xc8eb4f(0x139)]=I(_0x179206[_0xc8eb4f(0x139)],_0x290bb8,_0x1248d5),_0x179206[_0xc8eb4f(0x147)]=I(_0x179206['customBlocks'],_0x290bb8,_0x1248d5),_0x179206[_0xc8eb4f(0xf3)]=we(_0x179206[_0xc8eb4f(0xf3)],_0x290bb8,_0x1248d5),_0x179206['tables']=R(_0x179206[_0xc8eb4f(0x151)],_0x290bb8,_0x1248d5),_0x179206[_0xc8eb4f(0xef)]=R(_0x179206[_0xc8eb4f(0xef)],_0x290bb8,_0x1248d5),_0x179206['customDecorations']=R(_0x179206[_0xc8eb4f(0x111)],_0x290bb8,_0x1248d5),_0x179206[_0xc8eb4f(0xe6)]=R(_0x179206[_0xc8eb4f(0xe6)],_0x290bb8,_0x1248d5);}function Ce(_0x4ded39,_0x4730dc,_0x20b0f2){const _0x151ff0=_0x5dff43;var _0x5edd47,_0x55442f;_0x4ded39[_0x151ff0(0x158)]=L(_0x4ded39[_0x151ff0(0x158)],_0x4730dc,_0x20b0f2),_0x4ded39[_0x151ff0(0x139)]=L(_0x4ded39[_0x151ff0(0x139)],_0x4730dc,_0x20b0f2),_0x4ded39[_0x151ff0(0x147)]=L(_0x4ded39['customBlocks'],_0x4730dc,_0x20b0f2),_0x4ded39[_0x151ff0(0xf3)]=(_0x5edd47=z((_0x55442f=_0x4ded39['textRuns'])==null?void 0x0:_0x55442f[_0x151ff0(0x132)](_0x236980=>({..._0x236980,'startIndex':_0x236980['st'],'endIndex':_0x236980['ed']})),_0x4730dc,_0x20b0f2))==null?void 0x0:_0x5edd47[_0x151ff0(0x132)](_0x377f96=>{let {startIndex:_0x586f3d,endIndex:_0x47e9e4,..._0x2fd2a1}=_0x377f96;return{..._0x2fd2a1,'st':_0x586f3d,'ed':_0x47e9e4};}),_0x4ded39[_0x151ff0(0x151)]=z(_0x4ded39[_0x151ff0(0x151)],_0x4730dc,_0x20b0f2),_0x4ded39[_0x151ff0(0xef)]=z(_0x4ded39[_0x151ff0(0xef)],_0x4730dc,_0x20b0f2),_0x4ded39[_0x151ff0(0x111)]=z(_0x4ded39[_0x151ff0(0x111)],_0x4730dc,_0x20b0f2),_0x4ded39[_0x151ff0(0xe6)]=z(_0x4ded39['blockRanges'],_0x4730dc,_0x20b0f2);}function I(_0x34faed,_0x3d48aa,_0x15d598){const _0x5f22ac=_0x5dff43;return _0x34faed==null?void 0x0:_0x34faed['map'](_0x5dd0b5=>_0x5dd0b5['startIndex']>=_0x3d48aa?{..._0x5dd0b5,'startIndex':_0x5dd0b5[_0x5f22ac(0x165)]+_0x15d598}:_0x5dd0b5);}function L(_0x3a7ece,_0x55f07c,_0x195163){const _0x17f118=_0x5dff43;let _0x1e8b06=_0x55f07c+_0x195163;return _0x3a7ece==null?void 0x0:_0x3a7ece[_0x17f118(0x132)](_0x33876d=>_0x33876d[_0x17f118(0x165)]>=_0x55f07c&&_0x33876d[_0x17f118(0x165)]<_0x1e8b06?null:_0x33876d['startIndex']>=_0x1e8b06?{..._0x33876d,'startIndex':_0x33876d[_0x17f118(0x165)]-_0x195163}:_0x33876d)[_0x17f118(0xf9)](_0xfca116=>_0xfca116!=null);}function we(_0x1cd07c,_0xa75c94,_0x1090e6){const _0x1ca3b1=_0x5dff43;return _0x1cd07c==null?void 0x0:_0x1cd07c[_0x1ca3b1(0x132)](_0xc3e8e8=>_0xc3e8e8['st']>=_0xa75c94?{..._0xc3e8e8,'st':_0xc3e8e8['st']+_0x1090e6,'ed':_0xc3e8e8['ed']+_0x1090e6}:_0xc3e8e8['ed']>_0xa75c94?{..._0xc3e8e8,'ed':_0xc3e8e8['ed']+_0x1090e6}:_0xc3e8e8);}function R(_0x3fd435,_0x229dc2,_0x15acf1){const _0x390c4f=_0x5dff43;return _0x3fd435==null?void 0x0:_0x3fd435[_0x390c4f(0x132)](_0x3558a9=>_0x3558a9[_0x390c4f(0x165)]>=_0x229dc2?{..._0x3558a9,'startIndex':_0x3558a9[_0x390c4f(0x165)]+_0x15acf1,'endIndex':_0x3558a9['endIndex']+_0x15acf1}:_0x3558a9[_0x390c4f(0x145)]>=_0x229dc2?{..._0x3558a9,'endIndex':_0x3558a9[_0x390c4f(0x145)]+_0x15acf1}:_0x3558a9);}function z(_0x5be004,_0x3114b2,_0x37e70f){const _0x2af766=_0x5dff43;let _0xb589f8=_0x3114b2+_0x37e70f;return _0x5be004==null?void 0x0:_0x5be004[_0x2af766(0x132)](_0x32f3be=>_0x32f3be[_0x2af766(0x165)]>=_0x3114b2&&_0x32f3be[_0x2af766(0x145)]<_0xb589f8?null:_0x32f3be[_0x2af766(0x165)]>=_0xb589f8?{..._0x32f3be,'startIndex':_0x32f3be[_0x2af766(0x165)]-_0x37e70f,'endIndex':_0x32f3be[_0x2af766(0x145)]-_0x37e70f}:_0x32f3be[_0x2af766(0x145)]>=_0x3114b2?{..._0x32f3be,'startIndex':_0x32f3be[_0x2af766(0x165)]<_0x3114b2?_0x32f3be[_0x2af766(0x165)]:_0x3114b2,'endIndex':Math[_0x2af766(0x13d)](_0x3114b2,_0x32f3be[_0x2af766(0x145)]-_0x37e70f)}:_0x32f3be)[_0x2af766(0xf9)](_0x20f13c=>_0x20f13c!=null);}function B(_0x25b2be,_0x1cefec,_0x25d59c,_0x4fcfa3){const _0x886a92=_0x5dff43;_0x25b2be==null||_0x25b2be[_0x886a92(0x124)](_0x49455a=>{const _0x485bfc=_0x886a92;_0x49455a[_0x485bfc(0x165)]>=_0x1cefec&&_0x49455a['startIndex']<_0x25d59c&&(_0x49455a['startIndex']+=_0x4fcfa3);});}function Te(_0x42578a,_0x3e0ac5,_0x96194a,_0x78129d){_0x42578a==null||_0x42578a['forEach'](_0x15fc18=>{_0x15fc18['st']>=_0x3e0ac5&&_0x15fc18['st']<_0x96194a?(_0x15fc18['st']+=_0x78129d,_0x15fc18['ed']+=_0x78129d):_0x15fc18['ed']>_0x3e0ac5&&_0x15fc18['ed']<_0x96194a&&(_0x15fc18['ed']+=_0x78129d);});}function V(_0x34cf90,_0x17b2b8,_0x181f5a,_0x4ebf5c){_0x34cf90==null||_0x34cf90['forEach'](_0x2e4ec5=>{const _0x1cbedb=_0xefc6;_0x2e4ec5[_0x1cbedb(0x165)]>=_0x17b2b8&&_0x2e4ec5[_0x1cbedb(0x165)]<_0x181f5a?(_0x2e4ec5['startIndex']+=_0x4ebf5c,_0x2e4ec5[_0x1cbedb(0x145)]+=_0x4ebf5c):_0x2e4ec5[_0x1cbedb(0x145)]>_0x17b2b8&&_0x2e4ec5[_0x1cbedb(0x145)]<_0x181f5a&&(_0x2e4ec5[_0x1cbedb(0x145)]+=_0x4ebf5c);});}function H(_0x46d198){'@babel/helpers - typeof';const _0x2e5e6d=_0x5dff43;return H=typeof Symbol==_0x2e5e6d(0xf5)&&typeof Symbol[_0x2e5e6d(0x130)]=='symbol'?function(_0x5cb6dd){return typeof _0x5cb6dd;}:function(_0x1a7e3e){const _0x32c361=_0x2e5e6d;return _0x1a7e3e&&typeof Symbol==_0x32c361(0xf5)&&_0x1a7e3e[_0x32c361(0x100)]===Symbol&&_0x1a7e3e!==Symbol[_0x32c361(0xf1)]?_0x32c361(0x11d):typeof _0x1a7e3e;},H(_0x46d198);}function Ee(_0x44122b,_0x1b147b){const _0x4c759d=_0x5dff43;if(H(_0x44122b)!='object'||!_0x44122b)return _0x44122b;var _0x48a991=_0x44122b[Symbol['toPrimitive']];if(_0x48a991!==void 0x0){var _0x3e5626=_0x48a991[_0x4c759d(0x12d)](_0x44122b,_0x1b147b||_0x4c759d(0xe4));if(H(_0x3e5626)!=_0x4c759d(0x15b))return _0x3e5626;throw TypeError(_0x4c759d(0x11c));}return(_0x1b147b==='string'?String:Number)(_0x44122b);}function De(_0x425c3f){const _0x3d3ccc=_0x5dff43;var _0x4aedac=Ee(_0x425c3f,_0x3d3ccc(0x15e));return H(_0x4aedac)==_0x3d3ccc(0x11d)?_0x4aedac:_0x4aedac+'';}function U(_0x4c218e,_0x526830,_0x15f4b6){return(_0x526830=De(_0x526830))in _0x4c218e?Object['defineProperty'](_0x4c218e,_0x526830,{'value':_0x15f4b6,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4c218e[_0x526830]=_0x15f4b6,_0x4c218e;}var W=class extends _0x4f4652{constructor(..._0x4b207e){const _0xe842bb=_0x5dff43;super(..._0x4b207e),U(this,_0xe842bb(0x120),new Map()),U(this,'_change$',new _0x4c1f8d()),U(this,_0xe842bb(0xf6),this['_change$'][_0xe842bb(0xf0)]());}[_0x5dff43(0x15f)](_0x40873a,_0x41c12b){const _0x5b38d5=_0x5dff43;return E(this[_0x5b38d5(0x120)][_0x5b38d5(0x109)](_0x40873a))['codes'][_0x41c12b];}[_0x5dff43(0x10b)](_0x3a6752,_0x4be00d,_0x68df9a){const _0x2a7a35=_0x5dff43;this[_0x2a7a35(0x122)](_0x3a6752,_0x4be00d,D(this['_resources']['get'](_0x3a6752),_0x4be00d,_0x68df9a));}[_0x5dff43(0x142)](_0x4f14c1,_0x15b7c0){const _0x1b6b0f=_0x5dff43;this[_0x1b6b0f(0x122)](_0x4f14c1,_0x15b7c0,te(this[_0x1b6b0f(0x120)][_0x1b6b0f(0x109)](_0x4f14c1),_0x15b7c0));}[_0x5dff43(0xe1)](_0x2f1909){const _0x2e2c3a=_0x5dff43;return E(this[_0x2e2c3a(0x120)][_0x2e2c3a(0x109)](_0x2f1909));}['deserialize'](_0x200ddc,_0x1bc455){const _0x36dae6=_0x5dff43;this[_0x36dae6(0x120)][_0x36dae6(0x134)](_0x200ddc,E(_0x1bc455)),this[_0x36dae6(0xe9)][_0x36dae6(0x10e)]({'unitId':_0x200ddc});}[_0x5dff43(0xf4)](_0x2d454a){const _0x382126=_0x5dff43;this[_0x382126(0x120)][_0x382126(0x10f)](_0x2d454a),this[_0x382126(0xe9)][_0x382126(0x10e)]({'unitId':_0x2d454a});}[_0x5dff43(0x110)](){const _0x456934=_0x5dff43;super[_0x456934(0x110)](),this[_0x456934(0x120)][_0x456934(0x10c)](),this[_0x456934(0xe9)][_0x456934(0x167)]();}[_0x5dff43(0x122)](_0x18b345,_0x137259,_0x5b4639){const _0xc24be3=_0x5dff43;this['_resources'][_0xc24be3(0x134)](_0x18b345,_0x5b4639),this['_change$'][_0xc24be3(0x10e)]({'unitId':_0x18b345,'blockId':_0x137259});}};const Oe={'id':_0x5dff43(0x114),'type':_0x429366[_0x5dff43(0xea)],'handler':_0x51e7d9=>{const _0x548b5f=_0x5dff43;let _0x12657e=Me(_0x51e7d9);if(_0x12657e)return _0x51e7d9[_0x548b5f(0x109)](_0x30d956)['syncExecuteCommand'](G['id'],{'startOffset':_0x12657e[_0x548b5f(0x121)],'endOffset':_0x12657e['endOffset'],'unitId':_0x12657e['unitId']});let _0x4e126e=Ne(_0x51e7d9);if(!_0x4e126e)return!0x1;let _0xfe0635=_0x4e126e[_0x548b5f(0x165)]+0x1;return _0x51e7d9['get'](_0x30d956)[_0x548b5f(0x131)](G['id'],{'startOffset':_0xfe0635,'endOffset':_0xfe0635});}},ke={'id':_0x5dff43(0x161),'type':_0x429366[_0x5dff43(0xea)],'handler':()=>!0x0},G={'id':_0x5dff43(0xfd),'type':_0x429366[_0x5dff43(0xea)],'handler':(_0x462403,_0x4c9683)=>{const _0x3e5eaa=_0x5dff43;var _0x3a229c,_0x5e3245,_0x480c46;let _0xec7c25=q(_0x462403,_0x4c9683==null?void 0x0:_0x4c9683[_0x3e5eaa(0x14a)]);if(!_0xec7c25)return!0x1;let _0x3c3bab=J(_0x462403),_0x2873b8=re({'blockId':(_0x3a229c=_0x4c9683==null?void 0x0:_0x4c9683[_0x3e5eaa(0x152)])==null?_0x2ccb14(0x6):_0x3a229c,'config':_0x4c9683==null?void 0x0:_0x4c9683[_0x3e5eaa(0x102)],'documentData':_0xec7c25[_0x3e5eaa(0xfa)],'endOffset':(_0x5e3245=_0x4c9683==null?void 0x0:_0x4c9683[_0x3e5eaa(0x11e)])==null?_0x3c3bab==null?void 0x0:_0x3c3bab[_0x3e5eaa(0x11e)]:_0x5e3245,'metadata':_0xec7c25['model']['serialize'](_0xec7c25[_0x3e5eaa(0x14a)]),'startOffset':(_0x480c46=_0x4c9683==null?void 0x0:_0x4c9683[_0x3e5eaa(0x121)])==null?_0x3c3bab==null?void 0x0:_0x3c3bab[_0x3e5eaa(0x121)]:_0x480c46}),_0x33e9bb=X(_0xec7c25[_0x3e5eaa(0xff)],_0xec7c25[_0x3e5eaa(0x14a)],_0xec7c25['previousDocumentData'],_0x2873b8[_0x3e5eaa(0xeb)],_0x2873b8[_0x3e5eaa(0x143)]);return _0x33e9bb&&_0x2873b8[_0x3e5eaa(0xed)]&&_0xec7c25[_0x3e5eaa(0xfc)]['deserialize'](_0xec7c25[_0x3e5eaa(0x14a)],_0x2873b8[_0x3e5eaa(0xed)]),_0x33e9bb;}},Ae={'id':_0x5dff43(0x128),'type':_0x429366[_0x5dff43(0xea)],'handler':(_0x124577,_0x5ba0d0)=>{const _0x134f44=_0x5dff43;if(!_0x5ba0d0)return!0x1;let _0x3c6b0b=q(_0x124577,_0x5ba0d0[_0x134f44(0x14a)]);if(!_0x3c6b0b)return!0x1;let _0xbe5138=O({'blockId':_0x5ba0d0['blockId'],'config':_0x5ba0d0[_0x134f44(0x102)],'documentData':_0x3c6b0b[_0x134f44(0xfa)],'metadata':_0x3c6b0b[_0x134f44(0xfc)][_0x134f44(0xe1)](_0x3c6b0b[_0x134f44(0x14a)])});return _0xbe5138['nextMetadata']&&_0x3c6b0b[_0x134f44(0xfc)][_0x134f44(0xf2)](_0x3c6b0b[_0x134f44(0x14a)],_0xbe5138[_0x134f44(0xed)]),!0x0;}},K={'id':_0x5dff43(0xe0),'type':_0x429366['COMMAND'],'handler':(_0x40e783,_0x3fe147)=>{const _0x38d1b7=_0x5dff43;var _0x246125,_0x5eb69f;let _0x59b0d1=q(_0x40e783,_0x3fe147==null?void 0x0:_0x3fe147[_0x38d1b7(0x14a)]);if(!_0x59b0d1)return!0x1;let _0x592322=(_0x246125=_0x3fe147==null?void 0x0:_0x3fe147[_0x38d1b7(0x143)])==null?(_0x5eb69f=J(_0x40e783))==null?void 0x0:_0x5eb69f[_0x38d1b7(0x121)]:_0x246125;if(_0x592322==null)return!0x1;let _0x34acda=oe({'cursorOffset':_0x592322,'documentData':_0x59b0d1[_0x38d1b7(0xfa)]});return _0x34acda?X(_0x59b0d1[_0x38d1b7(0xff)],_0x59b0d1[_0x38d1b7(0x14a)],_0x59b0d1['previousDocumentData'],_0x34acda[_0x38d1b7(0xeb)],_0x34acda[_0x38d1b7(0x143)]):!0x1;}},je={'id':_0x5dff43(0x163),'type':_0x429366[_0x5dff43(0xea)],'handler':(_0x2df949,_0x3c26ea)=>{const _0x62bfa0=_0x5dff43;var _0x9d6d95,_0x49e98a;let _0x3615f9=q(_0x2df949,_0x3c26ea==null?void 0x0:_0x3c26ea['unitId']);if(!_0x3615f9)return!0x1;let _0x30df64=(_0x9d6d95=_0x3c26ea==null?void 0x0:_0x3c26ea[_0x62bfa0(0x143)])==null?(_0x49e98a=J(_0x2df949))==null?void 0x0:_0x49e98a['startOffset']:_0x9d6d95;if(_0x30df64==null)return!0x1;let _0x484cc9=se({'cursorOffset':_0x30df64,'documentData':_0x3615f9['previousDocumentData'],'paragraphStartIndex':_0x3c26ea==null?void 0x0:_0x3c26ea[_0x62bfa0(0xe5)]});return _0x484cc9?X(_0x3615f9[_0x62bfa0(0xff)],_0x3615f9['unitId'],_0x3615f9['previousDocumentData'],_0x484cc9[_0x62bfa0(0xeb)],_0x484cc9['cursorOffset']):!0x1;}};function q(_0x2c503e,_0x48b84a){const _0x28e3f8=_0x5dff43;let _0x5dda59=_0x2c503e['get'](_0x4b9d11),_0x8a2d93=_0x48b84a?_0x5dda59[_0x28e3f8(0x166)](_0x48b84a):_0x5dda59[_0x28e3f8(0x105)](_0x4ff86[_0x28e3f8(0x11a)]);return _0x8a2d93?{'commandService':_0x2c503e['get'](_0x30d956),'model':_0x2c503e[_0x28e3f8(0x109)](W),'previousDocumentData':_0x8a2d93['getSnapshot'](),'unitId':_0x8a2d93['getUnitId']()}:null;}function J(_0x3db994){const _0x32357f=_0x5dff43;var _0x5b7580;return(_0x5b7580=_0x3db994[_0x32357f(0x109)](_0x13a39e)[_0x32357f(0x129)]())==null?void 0x0:_0x5b7580[0x0];}function _0xefc6(_0x1a73a8,_0x212192){_0x1a73a8=_0x1a73a8-0xdf;const _0x369727=_0x3697();let _0xefc6b4=_0x369727[_0x1a73a8];return _0xefc6b4;}function Me(_0x1b1cb1){const _0x5b086e=_0x5dff43;var _0xa4fe5b;let _0x40ab32=(_0xa4fe5b=_0x1b1cb1[_0x5b086e(0x109)](_0x4b9d11)[_0x5b086e(0x105)](_0x4ff86[_0x5b086e(0x11a)]))==null?void 0x0:_0xa4fe5b[_0x5b086e(0x137)]();try{return _0x1b1cb1[_0x5b086e(0x109)](_0x4b89f8)[_0x5b086e(0x101)](_0x40ab32);}catch{return null;}}function Ne(_0x4d64ab){const _0x13fca8=_0x5dff43;var _0x175860,_0x51f04d,_0x2a51ab;let _0x1dde23=J(_0x4d64ab);if(!_0x1dde23)return null;let _0x3cae17=_0x4d64ab['get'](_0x4b9d11)[_0x13fca8(0x105)](_0x4ff86['UNIVER_DOC']),_0x8e1a59=_0x3cae17==null?void 0x0:_0x3cae17[_0x13fca8(0x160)]();return _0x8e1a59?(_0x175860=_0x3f3466['range']['getParagraphsInRange'](_0x1dde23,(_0x51f04d=_0x8e1a59[_0x13fca8(0x158)])==null?[]:_0x51f04d,(_0x2a51ab=_0x8e1a59['dataStream'])==null?'':_0x2a51ab)[0x0])==null?null:_0x175860:null;}function Pe(_0x3a25f2,_0x10ac86){const _0x2ddf7e=_0x5dff43;var _0x2a3900,_0x15de20,_0x5f5213,_0x385612,_0x50e5b1,_0x44775b,_0x49ae23,_0x48a046,_0x265af5,_0x528d76,_0x598034,_0x3bb72a,_0x5b4849,_0x17447b,_0x89d6b8,_0x398981,_0x26887f,_0x4a5ad0;let _0x14c09c=_0x258410[_0x2ddf7e(0x104)]();return[Y(_0x14c09c,['body',_0x2ddf7e(0x112)],(_0x2a3900=_0x3a25f2['body'])==null?void 0x0:_0x2a3900[_0x2ddf7e(0x112)],(_0x15de20=_0x10ac86['body'])==null?void 0x0:_0x15de20['dataStream']),Y(_0x14c09c,[_0x2ddf7e(0x127),_0x2ddf7e(0x158)],(_0x5f5213=_0x3a25f2[_0x2ddf7e(0x127)])==null?void 0x0:_0x5f5213[_0x2ddf7e(0x158)],(_0x385612=_0x10ac86[_0x2ddf7e(0x127)])==null?void 0x0:_0x385612[_0x2ddf7e(0x158)]),Y(_0x14c09c,[_0x2ddf7e(0x127),_0x2ddf7e(0x139)],(_0x50e5b1=_0x3a25f2[_0x2ddf7e(0x127)])==null?void 0x0:_0x50e5b1['sectionBreaks'],(_0x44775b=_0x10ac86['body'])==null?void 0x0:_0x44775b[_0x2ddf7e(0x139)]),Y(_0x14c09c,[_0x2ddf7e(0x127),_0x2ddf7e(0xf3)],(_0x49ae23=_0x3a25f2[_0x2ddf7e(0x127)])==null?void 0x0:_0x49ae23[_0x2ddf7e(0xf3)],(_0x48a046=_0x10ac86[_0x2ddf7e(0x127)])==null?void 0x0:_0x48a046['textRuns']),Y(_0x14c09c,[_0x2ddf7e(0x127),_0x2ddf7e(0x147)],(_0x265af5=_0x3a25f2[_0x2ddf7e(0x127)])==null?void 0x0:_0x265af5[_0x2ddf7e(0x147)],(_0x528d76=_0x10ac86['body'])==null?void 0x0:_0x528d76[_0x2ddf7e(0x147)]),Y(_0x14c09c,[_0x2ddf7e(0x127),_0x2ddf7e(0xef)],(_0x598034=_0x3a25f2[_0x2ddf7e(0x127)])==null?void 0x0:_0x598034['customRanges'],(_0x3bb72a=_0x10ac86['body'])==null?void 0x0:_0x3bb72a[_0x2ddf7e(0xef)]),Y(_0x14c09c,[_0x2ddf7e(0x127),_0x2ddf7e(0x111)],(_0x5b4849=_0x3a25f2[_0x2ddf7e(0x127)])==null?void 0x0:_0x5b4849[_0x2ddf7e(0x111)],(_0x17447b=_0x10ac86[_0x2ddf7e(0x127)])==null?void 0x0:_0x17447b[_0x2ddf7e(0x111)]),Y(_0x14c09c,['body','tables'],(_0x89d6b8=_0x3a25f2[_0x2ddf7e(0x127)])==null?void 0x0:_0x89d6b8['tables'],(_0x398981=_0x10ac86[_0x2ddf7e(0x127)])==null?void 0x0:_0x398981['tables']),Y(_0x14c09c,['body',_0x2ddf7e(0xe6)],(_0x26887f=_0x3a25f2[_0x2ddf7e(0x127)])==null?void 0x0:_0x26887f[_0x2ddf7e(0xe6)],(_0x4a5ad0=_0x10ac86[_0x2ddf7e(0x127)])==null?void 0x0:_0x4a5ad0['blockRanges'])][_0x2ddf7e(0xf9)](Boolean)['reduce']((_0x4f198c,_0x42751e)=>_0x258410[_0x2ddf7e(0x12a)](_0x4f198c,_0x42751e),null);}function Y(_0x3a4a6f,_0x282187,_0x44486d,_0x103f9a){const _0x1fd775=_0x5dff43;return _0x31f673[_0x1fd775(0xe2)](_0x44486d,_0x103f9a)?null:_0x3a4a6f['replaceOp'](_0x282187,_0x44486d,_0x103f9a);}function X(_0xf773a2,_0x3ce153,_0x10693f,_0x4d1b05,_0x4d2781){let _0x17cf94=Pe(_0x10693f,_0x4d1b05);return _0x17cf94?!!_0xf773a2['syncExecuteCommand'](_0x4d43df['id'],{'unitId':_0x3ce153,'actions':_0x17cf94,'textRanges':[{'startOffset':_0x4d2781,'endOffset':_0x4d2781,'collapsed':!0x0}],'isEditing':!0x1}):!0x1;}var Fe='@univerjs-pro/docs-code',Ie=_0x5dff43(0x11b);const Le={};function Z(_0x249dd6,_0x32ee2f){return function(_0x31f5ab,_0x28c9e8){_0x32ee2f(_0x31f5ab,_0x28c9e8,_0x249dd6);};}function Re(_0x418382,_0x56af89,_0x2b7552,_0x31c2f4){const _0x465069=_0x5dff43;var _0x3718e7=arguments[_0x465069(0x150)],_0xdf20bb=_0x3718e7<0x3?_0x56af89:_0x31c2f4===null?_0x31c2f4=Object['getOwnPropertyDescriptor'](_0x56af89,_0x2b7552):_0x31c2f4,_0x13a63f;if(typeof Reflect==_0x465069(0x15b)&&typeof Reflect[_0x465069(0x113)]==_0x465069(0xf5))_0xdf20bb=Reflect[_0x465069(0x113)](_0x418382,_0x56af89,_0x2b7552,_0x31c2f4);else{for(var _0x625dc0=_0x418382[_0x465069(0x150)]-0x1;_0x625dc0>=0x0;_0x625dc0--)(_0x13a63f=_0x418382[_0x625dc0])&&(_0xdf20bb=(_0x3718e7<0x3?_0x13a63f(_0xdf20bb):_0x3718e7>0x3?_0x13a63f(_0x56af89,_0x2b7552,_0xdf20bb):_0x13a63f(_0x56af89,_0x2b7552))||_0xdf20bb);}return _0x3718e7>0x3&&_0xdf20bb&&Object[_0x465069(0x10d)](_0x56af89,_0x2b7552,_0xdf20bb),_0xdf20bb;}let Q=class extends _0x4f4652{constructor(_0x50397c,_0x11b8c9){const _0x11a95e=_0x5dff43;super(),this['_resourceManagerService']=_0x50397c,this[_0x11a95e(0x12b)]=_0x11b8c9,this['_initResource']();}['_initResource'](){const _0x1d52ce=_0x5dff43;this[_0x1d52ce(0x138)](this[_0x1d52ce(0x106)][_0x1d52ce(0x103)]({'pluginName':S,'businesses':[_0x4ff86['UNIVER_DOC']],'toJson':_0x23f8b1=>JSON[_0x1d52ce(0x157)](this[_0x1d52ce(0x12b)][_0x1d52ce(0xe1)](_0x23f8b1)),'parseJson':_0x2ec791=>E(JSON[_0x1d52ce(0x15a)](_0x2ec791)),'onLoad':(_0x116348,_0x1254ed)=>this[_0x1d52ce(0x12b)][_0x1d52ce(0xf2)](_0x116348,_0x1254ed),'onUnLoad':_0x433db9=>this[_0x1d52ce(0x12b)][_0x1d52ce(0xf4)](_0x433db9)}));}};Q=Re([Z(0x0,_0x87f109),Z(0x1,_0x12904a(W))],Q);let $=class extends _0x4c26b0{constructor(_0x57ab68=Le,_0x40eac3,_0x5d9730,_0x204eb9){const _0x1c00af=_0x5dff43;super(),this[_0x1c00af(0x133)]=_0x57ab68,this[_0x1c00af(0x136)]=_0x40eac3,this[_0x1c00af(0xe7)]=_0x5d9730,this[_0x1c00af(0x15d)]=_0x204eb9;let {..._0x5ee215}=_0x59ac2a({},Le,this[_0x1c00af(0x133)]);this[_0x1c00af(0x15d)][_0x1c00af(0x13f)](_0x1c00af(0xee),_0x5ee215);}[_0x5dff43(0x14b)](){const _0x5d0bc5=_0x5dff43;this['_injector'][_0x5d0bc5(0x118)]([W]),this[_0x5d0bc5(0x136)][_0x5d0bc5(0x118)]([Q]),this['_injector']['get'](W),this['_injector'][_0x5d0bc5(0x109)](Q),[G,Oe,Ae,K,je,ke]['forEach'](_0x32a54a=>this[_0x5d0bc5(0x138)](this[_0x5d0bc5(0xe7)][_0x5d0bc5(0x13c)](_0x32a54a)));}};U($,_0x5dff43(0x116),S),U($,_0x5dff43(0xe8),Fe),U($,'version',Ie),U($,_0x5dff43(0xf7),_0x4ff86['UNIVER_DOC']),$=Re([_0x1f3f5d(_0x327916,_0x67b571),Z(0x1,_0x12904a(_0x149eef)),Z(0x2,_0x30d956),Z(0x3,_0x593dcf)],$);export{w as DEFAULT_CODE_CONFIG,C as DOCS_CODE_BLOCK_TYPE,S as DOCS_CODE_PLUGIN,je as DocsCodeCancelEmptyParagraphCommand,ke as DocsCodeConsumeBoundaryDeleteCommand,K as DocsCodeExitCommand,Oe as DocsCodeInsertBelowCommand,G as DocsCodeInsertCommand,W as DocsCodeModel,Ae as DocsCodeUpdateCommand,$ as UniverDocsCodePlugin,se as buildCancelEmptyCodeParagraphActions,oe as buildExitCodeActions,re as buildInsertCodeActions,O as buildUpdateCodeActions,le as findCodeRangeAtOffset,ue as isCodeBoundaryDelete,T as normalizeDocsCodeConfig};
1
+ const _0x90b1ed=_0x34cc;(function(_0x198309,_0xb2f495){const _0x335818=_0x34cc,_0x27eefe=_0x198309();while(!![]){try{const _0x1bc96e=parseInt(_0x335818(0xa4))/0x1*(-parseInt(_0x335818(0x82))/0x2)+-parseInt(_0x335818(0xb6))/0x3+-parseInt(_0x335818(0xb4))/0x4*(-parseInt(_0x335818(0xc2))/0x5)+parseInt(_0x335818(0x7c))/0x6*(parseInt(_0x335818(0x91))/0x7)+-parseInt(_0x335818(0xc4))/0x8*(-parseInt(_0x335818(0x7a))/0x9)+parseInt(_0x335818(0xf1))/0xa+-parseInt(_0x335818(0xf2))/0xb*(-parseInt(_0x335818(0xa1))/0xc);if(_0x1bc96e===_0xb2f495)break;else _0x27eefe['push'](_0x27eefe['shift']());}catch(_0x597831){_0x27eefe['push'](_0x27eefe['shift']());}}}(_0x4a0e,0x9085b));import{BuildTextUtils as _0x51dd86,CommandType as _0x123b49,DataStreamTreeTokenType as _0x803f1c,DependentOn as _0x5955c6,Disposable as _0x58c269,ICommandService as _0x170d8a,IConfigService as _0x28e32f,IResourceManagerService as _0x5bcb88,IUniverInstanceService as _0x2bbfcb,Inject as _0x1f43cb,Injector as _0x5121c,JSONX as _0x104200,Plugin as _0x3c090e,Tools as _0x2fe1ea,UniverInstanceType as _0x333d99,generateRandomId as _0x3a4ef4,merge as _0x4a14fb}from'@univerjs/core';import{DocSelectionManagerService as _0xd6548f,RichTextEditingMutation as _0x2ef7f4,UniverDocsPlugin as _0x5e48ad}from'@univerjs/docs';import{DocContentInsertService as _0xaf51af}from'@univerjs/docs-ui';import{Subject as _0x1f73cb}from'rxjs';import{UniverLicensePlugin as _0x111d9d}from'@univerjs-pro/license';function _0x4a0e(){const _0x12a79d=['dispose','packageName','find','registerPluginResource','1843681phDxgz','_setResource','getParagraphsInRange','docs-code.command.exit','function','max','sort','getOwnPropertyDescriptor','_injector','documentData','set','length','right','deepClone','Document\x20body\x20is\x20required','disposeWithMe','12NznGSa','_commandService','forEach','1CiKTGP','cursorOffset','indentEnd','map','paragraph','docs-code.command.update','nextMetadata','javascript','spaceAbove','decorate','blockId','consumeInsertRange','0.25.0','code','customBlocks','BLOCK_END','237868dolhID','getBody','1121148FSQEvE','onStarting','object','UNIVER_DOC','change$','startIndex','getCurrentUnitOfType','docs-code.command.consume-boundary-delete','version','pluginName','blockType','_configService','75wxfkeR','paragraphStyle','152jRzghH','_initResource','docs-code.config','stringify','join','deserialize','_resources','slice','customDecorations','textStyle','customRanges','BLOCK_START','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','endOffset','unitId','every','model','getSnapshot','setCodeConfig','paragraphStartIndex','PARAGRAPH','string','type','next','body','parse','replaceOp','some','paragraphs','sectionBreaks','from','nextDocumentData','_resourceManagerService','SECTION_BREAK','compose','codes','getCodeConfig','call','add','indentStart','getUniverDocInstance','asObservable','blockRanges','_change$','commandService','3601060xyTSNQ','2215169WKDFUj','defineProperty','get','syncExecuteCommand','setConfig','monospace','docs-code.command.cancel-empty-paragraph','config','endTokenOffset','endIndex','startOffset','81045yjlOhk','_docsCodeModel','6RuUNEC','symbol','_config','removeUnit','textRuns','COMMAND','1844578smFXcD','spaceBelow','filter','dataStream','min','metadata','prototype','serialize','previousDocumentData','tables','removeCode'];_0x4a0e=function(){return _0x12a79d;};return _0x4a0e();}const S='DOC_CODE_PLUGIN',C=_0x90b1ed(0xb1),w={'language':_0x90b1ed(0xab),'showLineNumbers':!0x1,'tabSize':0x4,'wrap':!0x0};function T(_0x2bbcce){return{...w,..._0x2bbcce};}function E(_0x2daa30){const _0x169acb=_0x90b1ed;var _0x1dc7cf;let _0x2d323e=(_0x1dc7cf=_0x2daa30==null?void 0x0:_0x2daa30[_0x169acb(0xe7)])==null?{}:_0x1dc7cf;return{'codes':Object['fromEntries'](Object['entries'](_0x2d323e)[_0x169acb(0xa7)](([_0x3ecc73,_0x4be8f8])=>[_0x3ecc73,T(_0x4be8f8)]))};}function D(_0x4d4757,_0x135638,_0x858367){const _0x21f90c=_0x90b1ed;let _0x5b4c0b=E(_0x4d4757);return _0x5b4c0b['codes'][_0x135638]=T({..._0x5b4c0b[_0x21f90c(0xe7)][_0x135638],..._0x858367}),_0x5b4c0b;}function te(_0x102d5a,_0x27b80c){let _0xecf63=E(_0x102d5a);return delete _0xecf63['codes'][_0x27b80c],_0xecf63;}const ne=_0x90b1ed(0xf7);function re(_0x1cdc26){const _0x3a2977=_0x90b1ed;var _0x5a0878,_0x357e56,_0x2374f2;let _0x3807a4=A(_0x1cdc26['documentData']),_0x2b0476=j(_0x3807a4),_0x331446=ae(_0x1cdc26[_0x3a2977(0x79)],_0x1cdc26[_0x3a2977(0xd1)]),_0x13e473=_0x331446?(_0x5a0878=_0x2b0476[_0x3a2977(0xee)])==null?void 0x0:_0x5a0878['find'](_0x126cd1=>_0x126cd1[_0x3a2977(0xbb)]===_0x331446[_0x3a2977(0x79)]&&_0x126cd1[_0x3a2977(0x78)]+0x1===_0x331446['endOffset']):void 0x0,{startOffset:_0x309ed4,endOffset:_0x45db4d}=_0x13e473?_0x331446:ge(_0x2b0476,_0x1cdc26[_0x3a2977(0x79)],_0x1cdc26[_0x3a2977(0xd1)]),_0x2c0e77=ve(_0x2b0476,_0x309ed4,_0x45db4d),_0x41d8de=(_0x357e56=_0x13e473==null?void 0x0:_0x13e473[_0x3a2977(0xae)])==null?_0x1cdc26['blockId']:_0x357e56,_0x4eeb8=D(_0x1cdc26[_0x3a2977(0x87)],_0x41d8de,{...w,..._0x1cdc26[_0x3a2977(0x76)]});if(_0x13e473)return _0x13e473['blockType']=C,ie(_0x2b0476,_0x309ed4,_0x45db4d),fe(_0x2b0476,_0x309ed4,_0x45db4d,_0x2c0e77),{'nextDocumentData':_0x3807a4,'nextMetadata':_0x4eeb8,'cursorOffset':_0x309ed4+0x1};if(_0x309ed4===_0x45db4d){let _0x6c2c11=''+_0x803f1c[_0x3a2977(0xcf)]+_0x803f1c[_0x3a2977(0xd8)]+_0x803f1c[_0x3a2977(0xb3)];return F(_0x2b0476,_0x309ed4,_0x6c2c11,{'paragraphs':[{'startIndex':0x1,'paragraphStyle':k(!0x0,!0x0,_0x2c0e77)}],'blockRanges':[{'blockId':_0x41d8de,'blockType':C,'startIndex':0x0,'endIndex':_0x6c2c11[_0x3a2977(0x9c)]-0x1}]}),{'nextDocumentData':_0x3807a4,'nextMetadata':_0x4eeb8,'cursorOffset':_0x309ed4+0x1};}return F(_0x2b0476,_0x45db4d,_0x803f1c[_0x3a2977(0xb3)]),F(_0x2b0476,_0x309ed4,_0x803f1c['BLOCK_START']),fe(_0x2b0476,_0x309ed4,_0x45db4d+0x1,_0x2c0e77),_0x2b0476[_0x3a2977(0xee)]=[...(_0x2374f2=_0x2b0476[_0x3a2977(0xee)])==null?[]:_0x2374f2,{'blockId':_0x41d8de,'blockType':C,'startIndex':_0x309ed4,'endIndex':_0x45db4d+0x1}]['sort']((_0x3d253d,_0x5f3da3)=>_0x3d253d[_0x3a2977(0xbb)]-_0x5f3da3[_0x3a2977(0xbb)]),{'nextDocumentData':_0x3807a4,'nextMetadata':_0x4eeb8,'cursorOffset':_0x309ed4+0x1};}function ie(_0x555c29,_0x44a37f,_0x2860ea){const _0x4b1347=_0x90b1ed;var _0xedc91d;((_0xedc91d=_0x555c29[_0x4b1347(0xe0)])==null?[]:_0xedc91d)[_0x4b1347(0x84)](_0x364b33=>_0x364b33[_0x4b1347(0xbb)]>_0x44a37f&&_0x364b33[_0x4b1347(0xbb)]<_0x2860ea)[_0x4b1347(0xa3)](_0x5cecb4=>{const _0x4a9d46=_0x4b1347;var _0x45b881;let _0x5a7498={...(_0x45b881=_0x5cecb4['paragraphStyle'])==null?{}:_0x45b881};delete _0x5a7498[_0x4a9d46(0xac)],delete _0x5a7498[_0x4a9d46(0x83)],_0x5cecb4[_0x4a9d46(0xc3)]=_0x5a7498;});}function ae(_0x248605,_0x3cfcd1){const _0x28297d=_0x90b1ed;return _0x248605==null||_0x3cfcd1==null||_0x248605===_0x3cfcd1?null:{'startOffset':Math['min'](_0x248605,_0x3cfcd1),'endOffset':Math[_0x28297d(0x96)](_0x248605,_0x3cfcd1)};}function O(_0x5574c1){const _0x29d83c=_0x90b1ed;return{'nextDocumentData':A(_0x5574c1[_0x29d83c(0x9a)]),'nextMetadata':D(_0x5574c1['metadata'],_0x5574c1[_0x29d83c(0xae)],_0x5574c1[_0x29d83c(0x76)]),'cursorOffset':0x0};}function oe(_0x398cbe){const _0x351df6=_0x90b1ed;var _0x27916a,_0x1fa555;let _0x2819b1=A(_0x398cbe['documentData']),_0x59c82d=j(_0x2819b1),_0x3d2711=de(_0x59c82d,_0x398cbe[_0x351df6(0xa5)]);if(!_0x3d2711)return null;let _0x20f40c=me(_0x59c82d,_0x3d2711),_0x491255=_0x20f40c[_0x20f40c[_0x351df6(0x9c)]-0x1];if(!_0x491255||!he(_0x59c82d,_0x3d2711,_0x491255)||_0x398cbe[_0x351df6(0xa5)]<_0x491255[_0x351df6(0xbb)])return null;let _0x47b389=N(_0x59c82d,_0x3d2711,_0x491255);if(_0x47b389>=_0x3d2711['endIndex'])return null;_0x59c82d[_0x351df6(0x85)]=[_0x59c82d['dataStream']['slice'](0x0,_0x47b389),_0x803f1c['BLOCK_END'],_0x59c82d['dataStream'][_0x351df6(0xcb)](_0x47b389,_0x3d2711[_0x351df6(0x78)]),_0x59c82d['dataStream'][_0x351df6(0xcb)](_0x3d2711[_0x351df6(0x78)]+0x1)][_0x351df6(0xc8)](''),B(_0x59c82d[_0x351df6(0xe0)],_0x47b389,_0x3d2711[_0x351df6(0x78)],0x1),B(_0x59c82d[_0x351df6(0xe1)],_0x47b389,_0x3d2711[_0x351df6(0x78)],0x1),B(_0x59c82d[_0x351df6(0xb2)],_0x47b389,_0x3d2711[_0x351df6(0x78)],0x1),Te(_0x59c82d['textRuns'],_0x47b389,_0x3d2711['endIndex'],0x1),V(_0x59c82d[_0x351df6(0x8b)],_0x47b389,_0x3d2711['endIndex'],0x1),V(_0x59c82d[_0x351df6(0xce)],_0x47b389,_0x3d2711[_0x351df6(0x78)],0x1),V(_0x59c82d[_0x351df6(0xcc)],_0x47b389,_0x3d2711[_0x351df6(0x78)],0x1),(_0x27916a=_0x59c82d[_0x351df6(0xee)])==null||_0x27916a[_0x351df6(0xa3)](_0x39d35b=>{const _0x249d05=_0x351df6;_0x39d35b===_0x3d2711||_0x39d35b['blockId']===_0x3d2711[_0x249d05(0xae)]?_0x39d35b[_0x249d05(0x78)]=_0x47b389:_0x39d35b[_0x249d05(0xbb)]>=_0x47b389&&_0x39d35b[_0x249d05(0xbb)]<_0x3d2711[_0x249d05(0x78)]&&(_0x39d35b[_0x249d05(0xbb)]+=0x1,_0x39d35b[_0x249d05(0x78)]+=0x1);});let _0x3daca0=me(_0x59c82d,{..._0x3d2711,'endIndex':_0x47b389});_0x3daca0['forEach']((_0x241ff1,_0x5e05f4)=>{const _0x4d51b3=_0x351df6;var _0x3ca0d6;_0x241ff1[_0x4d51b3(0xc3)]={...(_0x3ca0d6=_0x241ff1[_0x4d51b3(0xc3)])==null?{}:_0x3ca0d6,...k(_0x5e05f4===0x0,_0x5e05f4===_0x3daca0[_0x4d51b3(0x9c)]-0x1)};});let _0xd93a9e=(_0x1fa555=_0x59c82d[_0x351df6(0xe0)])==null?void 0x0:_0x1fa555[_0x351df6(0x8f)](_0x471087=>_0x471087[_0x351df6(0xbb)]===_0x47b389+0x1);return _0xd93a9e&&(_0xd93a9e[_0x351df6(0xc3)]=pe(_0xd93a9e[_0x351df6(0xc3)])),{'nextDocumentData':_0x2819b1,'cursorOffset':_0x47b389+0x1};}function se(_0x56e485){const _0x44ce01=_0x90b1ed;let _0x33b8f7=A(_0x56e485[_0x44ce01(0x9a)]),_0x2500a7=j(_0x33b8f7),_0x39c77d=de(_0x2500a7,_0x56e485['cursorOffset']);return _0x39c77d&&ce(_0x33b8f7,_0x2500a7,_0x39c77d,_0x56e485[_0x44ce01(0xa5)],_0x56e485['paragraphStartIndex'])||null;}function ce(_0x356e1a,_0x4a59fc,_0x12c6ce,_0x3931fd,_0x310c2f){const _0x14ebb0=_0x90b1ed;let _0x1dfe69=be(_0x4a59fc,_0x12c6ce,_0x3931fd,_0x310c2f);if(!_0x1dfe69)return null;let _0x57d8a7=_0x1dfe69[_0x14ebb0(0x77)]-0x1;return xe(_0x4a59fc,_0x1dfe69['paragraph'][_0x14ebb0(0xbb)],_0x1dfe69[_0x14ebb0(0xa8)][_0x14ebb0(0xbb)]+0x1),{'nextDocumentData':_0x356e1a,'cursorOffset':_0x57d8a7};}function le(_0x38adfc,_0x3d43d6){const _0x594ea6=_0x90b1ed;var _0x4c7069;return _0x38adfc==null||(_0x4c7069=_0x38adfc[_0x594ea6(0xee)])==null?void 0x0:_0x4c7069['find'](_0x1a8dd3=>_0x1a8dd3[_0x594ea6(0xc0)]===_0x594ea6(0xb1)&&_0x1a8dd3[_0x594ea6(0xbb)]<=_0x3d43d6&&_0x3d43d6<=_0x1a8dd3[_0x594ea6(0x78)]);}function ue(_0x323253){const _0x30969c=_0x90b1ed;var _0x4424e0;let _0x1f7f3=_0x323253['documentData'][_0x30969c(0xdc)];if(!_0x1f7f3)return!0x1;let _0x575235=_0x323253['direction']==='left'?_0x323253['cursorOffset']-0x1:_0x323253[_0x30969c(0xa5)],_0x473e1a=_0x323253['direction']===_0x30969c(0x9d)?_0x323253[_0x30969c(0xa5)]+0x1:_0x575235;return((_0x4424e0=_0x1f7f3[_0x30969c(0xee)])==null?[]:_0x4424e0)[_0x30969c(0xdf)](_0x2b42f3=>_0x2b42f3[_0x30969c(0xc0)]===_0x30969c(0xb1)?_0x575235===_0x2b42f3['startIndex']||_0x575235===_0x2b42f3[_0x30969c(0x78)]||_0x473e1a===_0x2b42f3[_0x30969c(0xbb)]||_0x473e1a===_0x2b42f3[_0x30969c(0x78)]:!0x1);}function de(_0x48b38b,_0x813b06){const _0x475248=_0x90b1ed;var _0x163cb8;return(_0x163cb8=_0x48b38b[_0x475248(0xee)])==null?void 0x0:_0x163cb8[_0x475248(0x8f)](_0x1aa7b1=>{const _0x789e7f=_0x475248;let _0x1aba1b=P(_0x48b38b,_0x1aa7b1);return _0x1aa7b1['blockType']===_0x789e7f(0xb1)&&_0x1aa7b1['startIndex']<=_0x813b06&&_0x813b06<=_0x1aba1b+0x2;});}function k(_0x4b49f2,_0x2c2e64,_0x4c8672=!0x1){return{'indentEnd':{'v':0x14},'indentStart':{'v':0x14},..._0x4b49f2&&_0x4c8672?{'spaceAbove':{'v':0x8}}:{},'textStyle':{'ff':ne,'fs':0xc}};}function fe(_0x36ad79,_0x2a8036,_0x4212cf,_0x467be2=!0x1){const _0x57d279=_0x90b1ed;var _0x14b618;let _0x3b87a0=((_0x14b618=_0x36ad79[_0x57d279(0xe0)])==null?[]:_0x14b618)[_0x57d279(0x84)](_0x537127=>_0x537127['startIndex']>_0x2a8036&&_0x537127[_0x57d279(0xbb)]<_0x4212cf);_0x3b87a0[_0x57d279(0xa3)]((_0x2e494c,_0x52c09d)=>{const _0x24e0ad=_0x57d279;var _0x5ac0ce;_0x2e494c['paragraphStyle']={...(_0x5ac0ce=_0x2e494c[_0x24e0ad(0xc3)])==null?{}:_0x5ac0ce,...k(_0x52c09d===0x0,_0x52c09d===_0x3b87a0[_0x24e0ad(0x9c)]-0x1,_0x467be2)};});}function pe(_0xa565de){const _0x42b261=_0x90b1ed;var _0xc2c383,_0x33ddf2;let _0x236066={..._0xa565de==null?{}:_0xa565de};return delete _0x236066[_0x42b261(0xa6)],delete _0x236066[_0x42b261(0xeb)],delete _0x236066[_0x42b261(0xac)],delete _0x236066[_0x42b261(0x83)],((_0xc2c383=_0x236066[_0x42b261(0xcd)])==null?void 0x0:_0xc2c383['ff'])===ne&&((_0x33ddf2=_0x236066[_0x42b261(0xcd)])==null?void 0x0:_0x33ddf2['fs'])===0xc&&delete _0x236066[_0x42b261(0xcd)],_0x236066;}function me(_0x505a69,_0x2eac84){const _0x2b4483=_0x90b1ed;var _0x12d19d;let _0x5f41c7=P(_0x505a69,_0x2eac84);return((_0x12d19d=_0x505a69['paragraphs'])==null?[]:_0x12d19d)[_0x2b4483(0x84)](_0xa8f510=>_0xa8f510['startIndex']>_0x2eac84['startIndex']&&_0xa8f510[_0x2b4483(0xbb)]<_0x5f41c7);}function he(_0x41b373,_0x38b037,_0x5b06e9){const _0x34b5a7=_0x90b1ed;let _0x3937ce=N(_0x41b373,_0x38b037,_0x5b06e9),_0x3b42d3=_0x41b373[_0x34b5a7(0x85)][_0x34b5a7(0xcb)](_0x3937ce,_0x5b06e9[_0x34b5a7(0xbb)]);return Array[_0x34b5a7(0xe2)](_0x3b42d3)['every'](_0x5ab010=>_0x5ab010===_0x803f1c['BLOCK_START']||_0x5ab010===_0x803f1c[_0x34b5a7(0xb3)]);}function A(_0x38e1ec){const _0x4ff6f9=_0x90b1ed;return _0x2fe1ea[_0x4ff6f9(0x9e)](_0x38e1ec);}function j(_0x2215f9){const _0x43a9f0=_0x90b1ed;if(!_0x2215f9[_0x43a9f0(0xdc)])throw Error(_0x43a9f0(0x9f));return _0x2215f9[_0x43a9f0(0xdc)];}function ge(_0xbaafec,_0xd68723,_0x568516){const _0x5f11e9=_0x90b1ed;if(_0xd68723==null||_0x568516==null){let _0x353037=_e(_0xbaafec);return{'startOffset':_0x353037,'endOffset':_0x353037};}let _0x13bb5b=Math[_0x5f11e9(0x86)](_0xd68723,_0x568516),_0x1a9d87=Math[_0x5f11e9(0x96)](_0xd68723,_0x568516);return _0x13bb5b===_0x1a9d87?{'startOffset':_0x13bb5b,'endOffset':_0x13bb5b}:ye(_0xbaafec,_0x13bb5b,_0x1a9d87);}function _e(_0x2e255b){const _0x215692=_0x90b1ed;return _0x2e255b['dataStream']['endsWith'](_0x803f1c[_0x215692(0xe5)])?Math[_0x215692(0x96)](0x0,_0x2e255b[_0x215692(0x85)][_0x215692(0x9c)]-0x1):_0x2e255b[_0x215692(0x85)]['length'];}function ve(_0x52278a,_0x31b780,_0x5cb472){const _0x1d8f24=_0x90b1ed;var _0x1607eb;let _0x117584=Math[_0x1d8f24(0x86)](_0x31b780,_0x5cb472),_0x1e38cd=Math[_0x1d8f24(0x96)](_0x31b780,_0x5cb472);return!!((_0x1607eb=_0x52278a[_0x1d8f24(0x8b)])!=null&&_0x1607eb['some'](_0x4b824d=>_0x117584>_0x4b824d[_0x1d8f24(0xbb)]&&_0x117584<_0x4b824d[_0x1d8f24(0x78)]||_0x1e38cd>_0x4b824d['startIndex']&&_0x1e38cd<_0x4b824d['endIndex']||_0x117584<=_0x4b824d[_0x1d8f24(0xbb)]&&_0x1e38cd>=_0x4b824d[_0x1d8f24(0x78)]));}function ye(_0x58376c,_0x48e439,_0x5b5ab9){const _0x56c5dd=_0x90b1ed;var _0x11b57c,_0x36a876;let _0x3c8461=[...(_0x11b57c=_0x58376c[_0x56c5dd(0xe0)])==null?[]:_0x11b57c]['sort']((_0x33cd25,_0x539b3c)=>_0x33cd25['startIndex']-_0x539b3c[_0x56c5dd(0xbb)]),_0x5af445=_0x3c8461[_0x56c5dd(0x8f)]((_0x32087b,_0x3223f5)=>(_0x3223f5===0x0?0x0:_0x3c8461[_0x3223f5-0x1][_0x56c5dd(0xbb)]+0x1)<=_0x48e439&&_0x48e439<=_0x32087b[_0x56c5dd(0xbb)]),_0x121695=(_0x36a876=_0x3c8461['find'](_0x155bb2=>_0x155bb2['startIndex']>=_0x5b5ab9-0x1))==null?_0x3c8461[_0x3c8461[_0x56c5dd(0x9c)]-0x1]:_0x36a876;return{'startOffset':_0x5af445?M(_0x3c8461,_0x5af445):_0x48e439,'endOffset':_0x121695?_0x121695[_0x56c5dd(0xbb)]+0x1:_0x5b5ab9};}function M(_0x1f2509,_0x3b267d){const _0x4f6cfb=_0x90b1ed;let _0x48901f=_0x1f2509['indexOf'](_0x3b267d);return _0x48901f>0x0?_0x1f2509[_0x48901f-0x1][_0x4f6cfb(0xbb)]+0x1:0x0;}function N(_0x2332d5,_0x1637ee,_0xf876c5){const _0x8e9199=_0x90b1ed;var _0xfb1a33;return Math[_0x8e9199(0x96)](M((_0xfb1a33=_0x2332d5[_0x8e9199(0xe0)])==null?[]:_0xfb1a33,_0xf876c5),_0x1637ee[_0x8e9199(0xbb)]+0x1);}function P(_0x262c7b,_0x249fa2){const _0x4b8d36=_0x90b1ed;return _0x262c7b['dataStream'][_0x249fa2[_0x4b8d36(0x78)]]===_0x803f1c[_0x4b8d36(0xb3)]?_0x249fa2[_0x4b8d36(0x78)]:_0x262c7b[_0x4b8d36(0x85)][_0x249fa2[_0x4b8d36(0x78)]+0x1]===_0x803f1c[_0x4b8d36(0xb3)]?_0x249fa2[_0x4b8d36(0x78)]+0x1:_0x249fa2[_0x4b8d36(0x78)];}function be(_0x585a7f,_0x26b05e,_0x3a80ee,_0x5ef1ff){const _0x1e2216=_0x90b1ed;var _0x447587,_0x1a18b9;let _0x4b7d82=P(_0x585a7f,_0x26b05e),_0x455939=((_0x447587=_0x585a7f[_0x1e2216(0xe0)])==null?[]:_0x447587)[_0x1e2216(0x8f)](_0x580665=>_0x580665['startIndex']===_0x4b7d82+0x1);if(!_0x455939||_0x5ef1ff!=null&&_0x455939[_0x1e2216(0xbb)]!==_0x5ef1ff||_0x3a80ee<_0x4b7d82||_0x3a80ee>_0x455939[_0x1e2216(0xbb)]+0x1||_0x585a7f['dataStream'][_0x455939['startIndex']]!==_0x803f1c['PARAGRAPH'])return null;let _0x2a98bf=M((_0x1a18b9=_0x585a7f[_0x1e2216(0xe0)])==null?[]:_0x1a18b9,_0x455939),_0x5395cd=_0x585a7f[_0x1e2216(0x85)][_0x1e2216(0xcb)](_0x2a98bf,_0x455939[_0x1e2216(0xbb)]);return Array['from'](_0x5395cd)[_0x1e2216(0xd3)](_0x331a57=>_0x331a57===_0x803f1c['BLOCK_END'])?{'paragraph':_0x455939,'endTokenOffset':_0x4b7d82}:null;}function F(_0x34aa91,_0x2aeb25,_0x2065e1,_0xa373c3={}){const _0x56cd43=_0x90b1ed;var _0x42f966,_0xcaaedc;if(_0x2065e1){if(_0x34aa91[_0x56cd43(0x85)]=''+_0x34aa91[_0x56cd43(0x85)][_0x56cd43(0xcb)](0x0,_0x2aeb25)+_0x2065e1+_0x34aa91[_0x56cd43(0x85)][_0x56cd43(0xcb)](_0x2aeb25),Se(_0x34aa91,_0x2aeb25,_0x2065e1[_0x56cd43(0x9c)]),(_0x42f966=_0xa373c3['paragraphs'])!=null&&_0x42f966['length']){var _0x4d1542;_0x34aa91[_0x56cd43(0xe0)]=[...(_0x4d1542=_0x34aa91['paragraphs'])==null?[]:_0x4d1542,..._0xa373c3[_0x56cd43(0xe0)][_0x56cd43(0xa7)](_0x39c84f=>({..._0x39c84f,'startIndex':_0x39c84f[_0x56cd43(0xbb)]+_0x2aeb25}))]['sort']((_0xbac976,_0x389c21)=>_0xbac976[_0x56cd43(0xbb)]-_0x389c21[_0x56cd43(0xbb)]);}if((_0xcaaedc=_0xa373c3[_0x56cd43(0xee)])!=null&&_0xcaaedc[_0x56cd43(0x9c)]){var _0x40a146;_0x34aa91[_0x56cd43(0xee)]=[...(_0x40a146=_0x34aa91['blockRanges'])==null?[]:_0x40a146,..._0xa373c3['blockRanges'][_0x56cd43(0xa7)](_0x4b99a1=>({..._0x4b99a1,'startIndex':_0x4b99a1[_0x56cd43(0xbb)]+_0x2aeb25,'endIndex':_0x4b99a1[_0x56cd43(0x78)]+_0x2aeb25}))][_0x56cd43(0x97)]((_0x996444,_0x28c629)=>_0x996444[_0x56cd43(0xbb)]-_0x28c629['startIndex']);}}}function xe(_0x3add5f,_0x5d38d6,_0x112552){const _0x825238=_0x90b1ed;let _0x1a39ef=_0x112552-_0x5d38d6;_0x3add5f[_0x825238(0x85)]=''+_0x3add5f[_0x825238(0x85)][_0x825238(0xcb)](0x0,_0x5d38d6)+_0x3add5f[_0x825238(0x85)][_0x825238(0xcb)](_0x112552),Ce(_0x3add5f,_0x5d38d6,_0x1a39ef);}function Se(_0x4e990c,_0x11bb3c,_0x13e1c3){const _0xb6d7ba=_0x90b1ed;_0x4e990c[_0xb6d7ba(0xe0)]=I(_0x4e990c[_0xb6d7ba(0xe0)],_0x11bb3c,_0x13e1c3),_0x4e990c[_0xb6d7ba(0xe1)]=I(_0x4e990c[_0xb6d7ba(0xe1)],_0x11bb3c,_0x13e1c3),_0x4e990c[_0xb6d7ba(0xb2)]=I(_0x4e990c['customBlocks'],_0x11bb3c,_0x13e1c3),_0x4e990c[_0xb6d7ba(0x80)]=we(_0x4e990c['textRuns'],_0x11bb3c,_0x13e1c3),_0x4e990c[_0xb6d7ba(0x8b)]=R(_0x4e990c['tables'],_0x11bb3c,_0x13e1c3),_0x4e990c[_0xb6d7ba(0xce)]=R(_0x4e990c[_0xb6d7ba(0xce)],_0x11bb3c,_0x13e1c3),_0x4e990c[_0xb6d7ba(0xcc)]=R(_0x4e990c[_0xb6d7ba(0xcc)],_0x11bb3c,_0x13e1c3),_0x4e990c[_0xb6d7ba(0xee)]=R(_0x4e990c['blockRanges'],_0x11bb3c,_0x13e1c3);}function Ce(_0x91e6b5,_0x3a4500,_0x3be86c){const _0x4f1fec=_0x90b1ed;var _0x1fb56e,_0x18551d;_0x91e6b5['paragraphs']=L(_0x91e6b5[_0x4f1fec(0xe0)],_0x3a4500,_0x3be86c),_0x91e6b5[_0x4f1fec(0xe1)]=L(_0x91e6b5[_0x4f1fec(0xe1)],_0x3a4500,_0x3be86c),_0x91e6b5[_0x4f1fec(0xb2)]=L(_0x91e6b5[_0x4f1fec(0xb2)],_0x3a4500,_0x3be86c),_0x91e6b5[_0x4f1fec(0x80)]=(_0x1fb56e=z((_0x18551d=_0x91e6b5[_0x4f1fec(0x80)])==null?void 0x0:_0x18551d['map'](_0x42bd4e=>({..._0x42bd4e,'startIndex':_0x42bd4e['st'],'endIndex':_0x42bd4e['ed']})),_0x3a4500,_0x3be86c))==null?void 0x0:_0x1fb56e[_0x4f1fec(0xa7)](_0x1ab5b4=>{let {startIndex:_0x1babc9,endIndex:_0x267df8,..._0x474662}=_0x1ab5b4;return{..._0x474662,'st':_0x1babc9,'ed':_0x267df8};}),_0x91e6b5[_0x4f1fec(0x8b)]=z(_0x91e6b5[_0x4f1fec(0x8b)],_0x3a4500,_0x3be86c),_0x91e6b5['customRanges']=z(_0x91e6b5['customRanges'],_0x3a4500,_0x3be86c),_0x91e6b5[_0x4f1fec(0xcc)]=z(_0x91e6b5[_0x4f1fec(0xcc)],_0x3a4500,_0x3be86c),_0x91e6b5[_0x4f1fec(0xee)]=z(_0x91e6b5[_0x4f1fec(0xee)],_0x3a4500,_0x3be86c);}function I(_0x19bb9f,_0x448546,_0x22d083){const _0x218961=_0x90b1ed;return _0x19bb9f==null?void 0x0:_0x19bb9f[_0x218961(0xa7)](_0x1b4290=>_0x1b4290['startIndex']>=_0x448546?{..._0x1b4290,'startIndex':_0x1b4290[_0x218961(0xbb)]+_0x22d083}:_0x1b4290);}function L(_0x190366,_0x1a1505,_0x108fe5){const _0x58f4e8=_0x90b1ed;let _0x143efc=_0x1a1505+_0x108fe5;return _0x190366==null?void 0x0:_0x190366[_0x58f4e8(0xa7)](_0x2bc329=>_0x2bc329[_0x58f4e8(0xbb)]>=_0x1a1505&&_0x2bc329[_0x58f4e8(0xbb)]<_0x143efc?null:_0x2bc329['startIndex']>=_0x143efc?{..._0x2bc329,'startIndex':_0x2bc329['startIndex']-_0x108fe5}:_0x2bc329)[_0x58f4e8(0x84)](_0x141ac8=>_0x141ac8!=null);}function we(_0x36d861,_0x1cf88e,_0x20cd33){const _0x58e5e7=_0x90b1ed;return _0x36d861==null?void 0x0:_0x36d861[_0x58e5e7(0xa7)](_0x1dc49e=>_0x1dc49e['st']>=_0x1cf88e?{..._0x1dc49e,'st':_0x1dc49e['st']+_0x20cd33,'ed':_0x1dc49e['ed']+_0x20cd33}:_0x1dc49e['ed']>_0x1cf88e?{..._0x1dc49e,'ed':_0x1dc49e['ed']+_0x20cd33}:_0x1dc49e);}function R(_0x33e44b,_0x428c7b,_0x59f0d0){const _0x3aaf15=_0x90b1ed;return _0x33e44b==null?void 0x0:_0x33e44b[_0x3aaf15(0xa7)](_0x1732fb=>_0x1732fb['startIndex']>=_0x428c7b?{..._0x1732fb,'startIndex':_0x1732fb[_0x3aaf15(0xbb)]+_0x59f0d0,'endIndex':_0x1732fb[_0x3aaf15(0x78)]+_0x59f0d0}:_0x1732fb[_0x3aaf15(0x78)]>=_0x428c7b?{..._0x1732fb,'endIndex':_0x1732fb['endIndex']+_0x59f0d0}:_0x1732fb);}function z(_0x315c34,_0x2be22a,_0x4c4798){const _0x4298bb=_0x90b1ed;let _0x516b92=_0x2be22a+_0x4c4798;return _0x315c34==null?void 0x0:_0x315c34[_0x4298bb(0xa7)](_0x4d563a=>_0x4d563a[_0x4298bb(0xbb)]>=_0x2be22a&&_0x4d563a[_0x4298bb(0x78)]<_0x516b92?null:_0x4d563a[_0x4298bb(0xbb)]>=_0x516b92?{..._0x4d563a,'startIndex':_0x4d563a[_0x4298bb(0xbb)]-_0x4c4798,'endIndex':_0x4d563a[_0x4298bb(0x78)]-_0x4c4798}:_0x4d563a[_0x4298bb(0x78)]>=_0x2be22a?{..._0x4d563a,'startIndex':_0x4d563a[_0x4298bb(0xbb)]<_0x2be22a?_0x4d563a['startIndex']:_0x2be22a,'endIndex':Math['max'](_0x2be22a,_0x4d563a[_0x4298bb(0x78)]-_0x4c4798)}:_0x4d563a)[_0x4298bb(0x84)](_0x4b9986=>_0x4b9986!=null);}function B(_0x50aef1,_0x465f64,_0x429c33,_0x101da2){const _0x4ba317=_0x90b1ed;_0x50aef1==null||_0x50aef1[_0x4ba317(0xa3)](_0x22d9c1=>{const _0xdfe8=_0x4ba317;_0x22d9c1[_0xdfe8(0xbb)]>=_0x465f64&&_0x22d9c1[_0xdfe8(0xbb)]<_0x429c33&&(_0x22d9c1['startIndex']+=_0x101da2);});}function Te(_0x57bfb3,_0x4cf9f,_0x3c9f9e,_0x427d8c){const _0xbd390c=_0x90b1ed;_0x57bfb3==null||_0x57bfb3[_0xbd390c(0xa3)](_0x4b5dca=>{_0x4b5dca['st']>=_0x4cf9f&&_0x4b5dca['st']<_0x3c9f9e?(_0x4b5dca['st']+=_0x427d8c,_0x4b5dca['ed']+=_0x427d8c):_0x4b5dca['ed']>_0x4cf9f&&_0x4b5dca['ed']<_0x3c9f9e&&(_0x4b5dca['ed']+=_0x427d8c);});}function V(_0x18f6bb,_0xff5d9c,_0x2a8482,_0x4c7e7e){const _0x142e18=_0x90b1ed;_0x18f6bb==null||_0x18f6bb[_0x142e18(0xa3)](_0x25bef4=>{const _0x532773=_0x142e18;_0x25bef4[_0x532773(0xbb)]>=_0xff5d9c&&_0x25bef4['startIndex']<_0x2a8482?(_0x25bef4[_0x532773(0xbb)]+=_0x4c7e7e,_0x25bef4[_0x532773(0x78)]+=_0x4c7e7e):_0x25bef4[_0x532773(0x78)]>_0xff5d9c&&_0x25bef4[_0x532773(0x78)]<_0x2a8482&&(_0x25bef4[_0x532773(0x78)]+=_0x4c7e7e);});}function H(_0x302838){'@babel/helpers - typeof';const _0x37dcbe=_0x90b1ed;return H=typeof Symbol==_0x37dcbe(0x95)&&typeof Symbol['iterator']==_0x37dcbe(0x7d)?function(_0xbdc232){return typeof _0xbdc232;}:function(_0x3d641b){const _0x451961=_0x37dcbe;return _0x3d641b&&typeof Symbol==_0x451961(0x95)&&_0x3d641b['constructor']===Symbol&&_0x3d641b!==Symbol[_0x451961(0x88)]?'symbol':typeof _0x3d641b;},H(_0x302838);}function Ee(_0x192548,_0xaab2b2){const _0x35fd6f=_0x90b1ed;if(H(_0x192548)!=_0x35fd6f(0xb8)||!_0x192548)return _0x192548;var _0x11bac5=_0x192548[Symbol['toPrimitive']];if(_0x11bac5!==void 0x0){var _0x3013c2=_0x11bac5[_0x35fd6f(0xe9)](_0x192548,_0xaab2b2||'default');if(H(_0x3013c2)!=_0x35fd6f(0xb8))return _0x3013c2;throw TypeError(_0x35fd6f(0xd0));}return(_0xaab2b2===_0x35fd6f(0xd9)?String:Number)(_0x192548);}function De(_0x3ca631){const _0x2df239=_0x90b1ed;var _0x3dde7e=Ee(_0x3ca631,'string');return H(_0x3dde7e)==_0x2df239(0x7d)?_0x3dde7e:_0x3dde7e+'';}function U(_0x2e6d97,_0x30be5d,_0x5cec6b){const _0xaa99c1=_0x90b1ed;return(_0x30be5d=De(_0x30be5d))in _0x2e6d97?Object[_0xaa99c1(0xf3)](_0x2e6d97,_0x30be5d,{'value':_0x5cec6b,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x2e6d97[_0x30be5d]=_0x5cec6b,_0x2e6d97;}var W=class extends _0x58c269{constructor(..._0x4205aa){const _0x4651b6=_0x90b1ed;super(..._0x4205aa),U(this,_0x4651b6(0xca),new Map()),U(this,_0x4651b6(0xef),new _0x1f73cb()),U(this,_0x4651b6(0xba),this['_change$'][_0x4651b6(0xed)]());}[_0x90b1ed(0xe8)](_0x112960,_0x16fabc){const _0x44746d=_0x90b1ed;return E(this[_0x44746d(0xca)][_0x44746d(0xf4)](_0x112960))[_0x44746d(0xe7)][_0x16fabc];}[_0x90b1ed(0xd6)](_0x1e1604,_0x598fb3,_0x6a5b50){const _0x3aa9f6=_0x90b1ed;this['_setResource'](_0x1e1604,_0x598fb3,D(this[_0x3aa9f6(0xca)]['get'](_0x1e1604),_0x598fb3,_0x6a5b50));}[_0x90b1ed(0x8c)](_0x4200e5,_0xc1c07e){const _0x41abda=_0x90b1ed;this[_0x41abda(0x92)](_0x4200e5,_0xc1c07e,te(this[_0x41abda(0xca)]['get'](_0x4200e5),_0xc1c07e));}['serialize'](_0x2b6f7f){const _0x4dccc9=_0x90b1ed;return E(this[_0x4dccc9(0xca)]['get'](_0x2b6f7f));}[_0x90b1ed(0xc9)](_0x5d71f7,_0x12e961){const _0x15391b=_0x90b1ed;this[_0x15391b(0xca)][_0x15391b(0x9b)](_0x5d71f7,E(_0x12e961)),this['_change$'][_0x15391b(0xdb)]({'unitId':_0x5d71f7});}[_0x90b1ed(0x7f)](_0x7d2cf7){const _0x56adfd=_0x90b1ed;this[_0x56adfd(0xca)]['delete'](_0x7d2cf7),this[_0x56adfd(0xef)][_0x56adfd(0xdb)]({'unitId':_0x7d2cf7});}['dispose'](){const _0x3ba5a4=_0x90b1ed;super[_0x3ba5a4(0x8d)](),this[_0x3ba5a4(0xca)]['clear'](),this['_change$']['complete']();}[_0x90b1ed(0x92)](_0x1a2a77,_0x1d8fca,_0x4bc07a){const _0x24fb80=_0x90b1ed;this[_0x24fb80(0xca)][_0x24fb80(0x9b)](_0x1a2a77,_0x4bc07a),this[_0x24fb80(0xef)][_0x24fb80(0xdb)]({'unitId':_0x1a2a77,'blockId':_0x1d8fca});}};const Oe={'id':'docs-code.command.insert-below','type':_0x123b49['COMMAND'],'handler':_0x180095=>{const _0xf948ac=_0x90b1ed;let _0x5e6be7=Me(_0x180095);if(_0x5e6be7)return _0x180095[_0xf948ac(0xf4)](_0x170d8a)[_0xf948ac(0xf5)](G['id'],{'startOffset':_0x5e6be7[_0xf948ac(0x79)],'endOffset':_0x5e6be7[_0xf948ac(0xd1)],'unitId':_0x5e6be7['unitId']});let _0x675b18=Ne(_0x180095);if(!_0x675b18)return!0x1;let _0x22cade=_0x675b18[_0xf948ac(0xbb)]+0x1;return _0x180095[_0xf948ac(0xf4)](_0x170d8a)[_0xf948ac(0xf5)](G['id'],{'startOffset':_0x22cade,'endOffset':_0x22cade});}},ke={'id':_0x90b1ed(0xbd),'type':_0x123b49[_0x90b1ed(0x81)],'handler':()=>!0x0},G={'id':'docs-code.command.insert','type':_0x123b49['COMMAND'],'handler':(_0x173ef0,_0x488acc)=>{const _0x30dd4f=_0x90b1ed;var _0x462f86,_0x3aad8a,_0x59c79a;let _0x205ede=q(_0x173ef0,_0x488acc==null?void 0x0:_0x488acc[_0x30dd4f(0xd2)]);if(!_0x205ede)return!0x1;let _0x253baa=J(_0x173ef0),_0x461d77=re({'blockId':(_0x462f86=_0x488acc==null?void 0x0:_0x488acc['blockId'])==null?_0x3a4ef4(0x6):_0x462f86,'config':_0x488acc==null?void 0x0:_0x488acc['config'],'documentData':_0x205ede[_0x30dd4f(0x8a)],'endOffset':(_0x3aad8a=_0x488acc==null?void 0x0:_0x488acc[_0x30dd4f(0xd1)])==null?_0x253baa==null?void 0x0:_0x253baa['endOffset']:_0x3aad8a,'metadata':_0x205ede['model'][_0x30dd4f(0x89)](_0x205ede['unitId']),'startOffset':(_0x59c79a=_0x488acc==null?void 0x0:_0x488acc[_0x30dd4f(0x79)])==null?_0x253baa==null?void 0x0:_0x253baa['startOffset']:_0x59c79a}),_0x41939f=X(_0x205ede[_0x30dd4f(0xf0)],_0x205ede['unitId'],_0x205ede['previousDocumentData'],_0x461d77[_0x30dd4f(0xe3)],_0x461d77[_0x30dd4f(0xa5)]);return _0x41939f&&_0x461d77[_0x30dd4f(0xaa)]&&_0x205ede[_0x30dd4f(0xd4)][_0x30dd4f(0xc9)](_0x205ede['unitId'],_0x461d77[_0x30dd4f(0xaa)]),_0x41939f;}},Ae={'id':_0x90b1ed(0xa9),'type':_0x123b49[_0x90b1ed(0x81)],'handler':(_0x8ea343,_0x374bef)=>{const _0x112213=_0x90b1ed;if(!_0x374bef)return!0x1;let _0x149893=q(_0x8ea343,_0x374bef[_0x112213(0xd2)]);if(!_0x149893)return!0x1;let _0x3e5eab=O({'blockId':_0x374bef[_0x112213(0xae)],'config':_0x374bef['config'],'documentData':_0x149893[_0x112213(0x8a)],'metadata':_0x149893[_0x112213(0xd4)]['serialize'](_0x149893[_0x112213(0xd2)])});return _0x3e5eab[_0x112213(0xaa)]&&_0x149893[_0x112213(0xd4)][_0x112213(0xc9)](_0x149893[_0x112213(0xd2)],_0x3e5eab[_0x112213(0xaa)]),!0x0;}},K={'id':_0x90b1ed(0x94),'type':_0x123b49[_0x90b1ed(0x81)],'handler':(_0x5e1e16,_0x2352e4)=>{const _0x475967=_0x90b1ed;var _0x2a56ff,_0x5ea6cb;let _0x591866=q(_0x5e1e16,_0x2352e4==null?void 0x0:_0x2352e4[_0x475967(0xd2)]);if(!_0x591866)return!0x1;let _0x537847=(_0x2a56ff=_0x2352e4==null?void 0x0:_0x2352e4['cursorOffset'])==null?(_0x5ea6cb=J(_0x5e1e16))==null?void 0x0:_0x5ea6cb[_0x475967(0x79)]:_0x2a56ff;if(_0x537847==null)return!0x1;let _0x3fd2a6=oe({'cursorOffset':_0x537847,'documentData':_0x591866[_0x475967(0x8a)]});return _0x3fd2a6?X(_0x591866[_0x475967(0xf0)],_0x591866['unitId'],_0x591866[_0x475967(0x8a)],_0x3fd2a6['nextDocumentData'],_0x3fd2a6[_0x475967(0xa5)]):!0x1;}},je={'id':_0x90b1ed(0xf8),'type':_0x123b49[_0x90b1ed(0x81)],'handler':(_0x4c232c,_0x3485e7)=>{const _0x55ec3a=_0x90b1ed;var _0x17b352,_0x5ece58;let _0x49d701=q(_0x4c232c,_0x3485e7==null?void 0x0:_0x3485e7[_0x55ec3a(0xd2)]);if(!_0x49d701)return!0x1;let _0x414869=(_0x17b352=_0x3485e7==null?void 0x0:_0x3485e7[_0x55ec3a(0xa5)])==null?(_0x5ece58=J(_0x4c232c))==null?void 0x0:_0x5ece58[_0x55ec3a(0x79)]:_0x17b352;if(_0x414869==null)return!0x1;let _0x20db5e=se({'cursorOffset':_0x414869,'documentData':_0x49d701['previousDocumentData'],'paragraphStartIndex':_0x3485e7==null?void 0x0:_0x3485e7[_0x55ec3a(0xd7)]});return _0x20db5e?X(_0x49d701['commandService'],_0x49d701[_0x55ec3a(0xd2)],_0x49d701[_0x55ec3a(0x8a)],_0x20db5e['nextDocumentData'],_0x20db5e[_0x55ec3a(0xa5)]):!0x1;}};function q(_0x2c43b1,_0x3b6d54){const _0x1648c6=_0x90b1ed;let _0x3aac76=_0x2c43b1[_0x1648c6(0xf4)](_0x2bbfcb),_0x16c22b=_0x3b6d54?_0x3aac76[_0x1648c6(0xec)](_0x3b6d54):_0x3aac76['getCurrentUnitOfType'](_0x333d99[_0x1648c6(0xb9)]);return _0x16c22b?{'commandService':_0x2c43b1[_0x1648c6(0xf4)](_0x170d8a),'model':_0x2c43b1[_0x1648c6(0xf4)](W),'previousDocumentData':_0x16c22b[_0x1648c6(0xd5)](),'unitId':_0x16c22b['getUnitId']()}:null;}function J(_0x55c760){const _0x2a3cd1=_0x90b1ed;var _0x3c4d0d;return(_0x3c4d0d=_0x55c760[_0x2a3cd1(0xf4)](_0xd6548f)['getTextRanges']())==null?void 0x0:_0x3c4d0d[0x0];}function Me(_0x5281e2){const _0x4ee214=_0x90b1ed;var _0x44eb11;let _0xc735e4=(_0x44eb11=_0x5281e2[_0x4ee214(0xf4)](_0x2bbfcb)[_0x4ee214(0xbc)](_0x333d99['UNIVER_DOC']))==null?void 0x0:_0x44eb11['getUnitId']();try{return _0x5281e2[_0x4ee214(0xf4)](_0xaf51af)[_0x4ee214(0xaf)](_0xc735e4);}catch{return null;}}function Ne(_0x545037){const _0x15928b=_0x90b1ed;var _0x35607c,_0xebd823,_0x31b1ea;let _0x2eda2b=J(_0x545037);if(!_0x2eda2b)return null;let _0x2e3d34=_0x545037[_0x15928b(0xf4)](_0x2bbfcb)['getCurrentUnitOfType'](_0x333d99['UNIVER_DOC']),_0x29244e=_0x2e3d34==null?void 0x0:_0x2e3d34[_0x15928b(0xb5)]();return _0x29244e?(_0x35607c=_0x51dd86['range'][_0x15928b(0x93)](_0x2eda2b,(_0xebd823=_0x29244e['paragraphs'])==null?[]:_0xebd823,(_0x31b1ea=_0x29244e['dataStream'])==null?'':_0x31b1ea)[0x0])==null?null:_0x35607c:null;}function Pe(_0x33941b,_0x16ca57){const _0x573e2b=_0x90b1ed;var _0x20defe,_0x437c12,_0x248225,_0x5a12f8,_0x34d205,_0x5de325,_0xf40731,_0x3c4d0e,_0x32d155,_0x18bdcb,_0x325579,_0x45cb21,_0x4c41ac,_0xc8df4f,_0xdef250,_0x291908,_0x1e914d,_0x3a2e54;let _0x523645=_0x104200['getInstance']();return[Y(_0x523645,[_0x573e2b(0xdc),_0x573e2b(0x85)],(_0x20defe=_0x33941b[_0x573e2b(0xdc)])==null?void 0x0:_0x20defe[_0x573e2b(0x85)],(_0x437c12=_0x16ca57[_0x573e2b(0xdc)])==null?void 0x0:_0x437c12['dataStream']),Y(_0x523645,[_0x573e2b(0xdc),_0x573e2b(0xe0)],(_0x248225=_0x33941b[_0x573e2b(0xdc)])==null?void 0x0:_0x248225[_0x573e2b(0xe0)],(_0x5a12f8=_0x16ca57[_0x573e2b(0xdc)])==null?void 0x0:_0x5a12f8[_0x573e2b(0xe0)]),Y(_0x523645,[_0x573e2b(0xdc),_0x573e2b(0xe1)],(_0x34d205=_0x33941b[_0x573e2b(0xdc)])==null?void 0x0:_0x34d205['sectionBreaks'],(_0x5de325=_0x16ca57[_0x573e2b(0xdc)])==null?void 0x0:_0x5de325[_0x573e2b(0xe1)]),Y(_0x523645,['body',_0x573e2b(0x80)],(_0xf40731=_0x33941b[_0x573e2b(0xdc)])==null?void 0x0:_0xf40731[_0x573e2b(0x80)],(_0x3c4d0e=_0x16ca57[_0x573e2b(0xdc)])==null?void 0x0:_0x3c4d0e['textRuns']),Y(_0x523645,[_0x573e2b(0xdc),'customBlocks'],(_0x32d155=_0x33941b[_0x573e2b(0xdc)])==null?void 0x0:_0x32d155[_0x573e2b(0xb2)],(_0x18bdcb=_0x16ca57['body'])==null?void 0x0:_0x18bdcb[_0x573e2b(0xb2)]),Y(_0x523645,['body',_0x573e2b(0xce)],(_0x325579=_0x33941b['body'])==null?void 0x0:_0x325579[_0x573e2b(0xce)],(_0x45cb21=_0x16ca57[_0x573e2b(0xdc)])==null?void 0x0:_0x45cb21[_0x573e2b(0xce)]),Y(_0x523645,['body',_0x573e2b(0xcc)],(_0x4c41ac=_0x33941b[_0x573e2b(0xdc)])==null?void 0x0:_0x4c41ac[_0x573e2b(0xcc)],(_0xc8df4f=_0x16ca57[_0x573e2b(0xdc)])==null?void 0x0:_0xc8df4f['customDecorations']),Y(_0x523645,[_0x573e2b(0xdc),'tables'],(_0xdef250=_0x33941b['body'])==null?void 0x0:_0xdef250[_0x573e2b(0x8b)],(_0x291908=_0x16ca57['body'])==null?void 0x0:_0x291908[_0x573e2b(0x8b)]),Y(_0x523645,[_0x573e2b(0xdc),_0x573e2b(0xee)],(_0x1e914d=_0x33941b[_0x573e2b(0xdc)])==null?void 0x0:_0x1e914d['blockRanges'],(_0x3a2e54=_0x16ca57[_0x573e2b(0xdc)])==null?void 0x0:_0x3a2e54[_0x573e2b(0xee)])][_0x573e2b(0x84)](Boolean)['reduce']((_0x50b0c7,_0x5e92ad)=>_0x104200[_0x573e2b(0xe6)](_0x50b0c7,_0x5e92ad),null);}function Y(_0x15ea1f,_0x2c8670,_0x1098b1,_0x54d820){const _0x1330dc=_0x90b1ed;return _0x2fe1ea['diffValue'](_0x1098b1,_0x54d820)?null:_0x15ea1f[_0x1330dc(0xde)](_0x2c8670,_0x1098b1,_0x54d820);}function X(_0x3ef515,_0x568fa0,_0x14ea64,_0x271602,_0x1f9a7d){const _0x12c7cb=_0x90b1ed;let _0x2c90bf=Pe(_0x14ea64,_0x271602);return _0x2c90bf?!!_0x3ef515[_0x12c7cb(0xf5)](_0x2ef7f4['id'],{'unitId':_0x568fa0,'actions':_0x2c90bf,'textRanges':[{'startOffset':_0x1f9a7d,'endOffset':_0x1f9a7d,'collapsed':!0x0}],'isEditing':!0x1}):!0x1;}function _0x34cc(_0x5cc710,_0x3b84d2){_0x5cc710=_0x5cc710-0x76;const _0x4a0e08=_0x4a0e();let _0x34ccc5=_0x4a0e08[_0x5cc710];return _0x34ccc5;}var Fe='@univerjs-pro/docs-code',Ie=_0x90b1ed(0xb0);const Le={};function Z(_0x123199,_0x2e51a8){return function(_0x4ad631,_0x20854d){_0x2e51a8(_0x4ad631,_0x20854d,_0x123199);};}function Re(_0x2b6b47,_0x397759,_0x3ca90a,_0x402ea2){const _0x3e8fe6=_0x90b1ed;var _0x397c1e=arguments['length'],_0x3ddb73=_0x397c1e<0x3?_0x397759:_0x402ea2===null?_0x402ea2=Object[_0x3e8fe6(0x98)](_0x397759,_0x3ca90a):_0x402ea2,_0xe3f69d;if(typeof Reflect==_0x3e8fe6(0xb8)&&typeof Reflect[_0x3e8fe6(0xad)]==_0x3e8fe6(0x95))_0x3ddb73=Reflect['decorate'](_0x2b6b47,_0x397759,_0x3ca90a,_0x402ea2);else{for(var _0x576d74=_0x2b6b47['length']-0x1;_0x576d74>=0x0;_0x576d74--)(_0xe3f69d=_0x2b6b47[_0x576d74])&&(_0x3ddb73=(_0x397c1e<0x3?_0xe3f69d(_0x3ddb73):_0x397c1e>0x3?_0xe3f69d(_0x397759,_0x3ca90a,_0x3ddb73):_0xe3f69d(_0x397759,_0x3ca90a))||_0x3ddb73);}return _0x397c1e>0x3&&_0x3ddb73&&Object[_0x3e8fe6(0xf3)](_0x397759,_0x3ca90a,_0x3ddb73),_0x3ddb73;}let Q=class extends _0x58c269{constructor(_0x24cb6e,_0x10159c){const _0x6eb239=_0x90b1ed;super(),this[_0x6eb239(0xe4)]=_0x24cb6e,this[_0x6eb239(0x7b)]=_0x10159c,this['_initResource']();}[_0x90b1ed(0xc5)](){const _0x3c5f9b=_0x90b1ed;this[_0x3c5f9b(0xa0)](this[_0x3c5f9b(0xe4)][_0x3c5f9b(0x90)]({'pluginName':S,'businesses':[_0x333d99['UNIVER_DOC']],'toJson':_0xc1bee2=>JSON[_0x3c5f9b(0xc7)](this[_0x3c5f9b(0x7b)][_0x3c5f9b(0x89)](_0xc1bee2)),'parseJson':_0x3dd93c=>E(JSON[_0x3c5f9b(0xdd)](_0x3dd93c)),'onLoad':(_0x4a5d3e,_0x2cb583)=>this['_docsCodeModel']['deserialize'](_0x4a5d3e,_0x2cb583),'onUnLoad':_0x5f2188=>this[_0x3c5f9b(0x7b)][_0x3c5f9b(0x7f)](_0x5f2188)}));}};Q=Re([Z(0x0,_0x5bcb88),Z(0x1,_0x1f43cb(W))],Q);let $=class extends _0x3c090e{constructor(_0x4b66fa=Le,_0x431bea,_0x929542,_0x364725){const _0x59a12a=_0x90b1ed;super(),this[_0x59a12a(0x7e)]=_0x4b66fa,this['_injector']=_0x431bea,this[_0x59a12a(0xa2)]=_0x929542,this[_0x59a12a(0xc1)]=_0x364725;let {..._0x1162cc}=_0x4a14fb({},Le,this[_0x59a12a(0x7e)]);this['_configService'][_0x59a12a(0xf6)](_0x59a12a(0xc6),_0x1162cc);}[_0x90b1ed(0xb7)](){const _0x3d59b2=_0x90b1ed;this['_injector'][_0x3d59b2(0xea)]([W]),this[_0x3d59b2(0x99)]['add']([Q]),this['_injector'][_0x3d59b2(0xf4)](W),this[_0x3d59b2(0x99)][_0x3d59b2(0xf4)](Q),[G,Oe,Ae,K,je,ke][_0x3d59b2(0xa3)](_0x323553=>this['disposeWithMe'](this[_0x3d59b2(0xa2)]['registerCommand'](_0x323553)));}};U($,_0x90b1ed(0xbf),S),U($,_0x90b1ed(0x8e),Fe),U($,_0x90b1ed(0xbe),Ie),U($,_0x90b1ed(0xda),_0x333d99[_0x90b1ed(0xb9)]),$=Re([_0x5955c6(_0x111d9d,_0x5e48ad),Z(0x1,_0x1f43cb(_0x5121c)),Z(0x2,_0x170d8a),Z(0x3,_0x28e32f)],$);export{w as DEFAULT_CODE_CONFIG,C as DOCS_CODE_BLOCK_TYPE,S as DOCS_CODE_PLUGIN,je as DocsCodeCancelEmptyParagraphCommand,ke as DocsCodeConsumeBoundaryDeleteCommand,K as DocsCodeExitCommand,Oe as DocsCodeInsertBelowCommand,G as DocsCodeInsertCommand,W as DocsCodeModel,Ae as DocsCodeUpdateCommand,$ as UniverDocsCodePlugin,se as buildCancelEmptyCodeParagraphActions,oe as buildExitCodeActions,re as buildInsertCodeActions,O as buildUpdateCodeActions,le as findCodeRangeAtOffset,ue as isCodeBoundaryDelete,T as normalizeDocsCodeConfig};
package/lib/facade.js CHANGED
@@ -1 +1 @@
1
- const _0x4eda42=_0x120b;(function(_0x26526c,_0x375c12){const _0x5dd907=_0x120b,_0xc9a994=_0x26526c();while(!![]){try{const _0x4ce187=parseInt(_0x5dd907(0x189))/0x1*(parseInt(_0x5dd907(0x1e5))/0x2)+-parseInt(_0x5dd907(0x1ee))/0x3+-parseInt(_0x5dd907(0x1bb))/0x4+-parseInt(_0x5dd907(0x182))/0x5+parseInt(_0x5dd907(0x1d2))/0x6*(-parseInt(_0x5dd907(0x196))/0x7)+parseInt(_0x5dd907(0x17e))/0x8+parseInt(_0x5dd907(0x197))/0x9;if(_0x4ce187===_0x375c12)break;else _0xc9a994['push'](_0xc9a994['shift']());}catch(_0x4609d8){_0xc9a994['push'](_0xc9a994['shift']());}}}(_0x2ca1,0x5dfe1));import{CommandType as _0x1a9309,DataStreamTreeTokenType as _0x212422,Disposable as _0x207dae,ICommandService as _0x4da3ce,IUniverInstanceService as _0x23aeb7,JSONX as _0x238fe4,Tools as _0x49d96f,UniverInstanceType as _0x111228,generateRandomId as _0x46d562}from'@univerjs/core';import{FDocument as _0x41dd8a}from'@univerjs/docs-ui/facade';import{DocSelectionManagerService as _0x1bfc20,RichTextEditingMutation as _0x44b7b2}from'@univerjs/docs';import'@univerjs/docs-ui';import{Subject as _0x463d46}from'rxjs';const p=_0x4eda42(0x1bd),m={'language':_0x4eda42(0x1bc),'showLineNumbers':!0x1,'tabSize':0x4,'wrap':!0x0};function h(_0x23bd18){return{...m,..._0x23bd18};}function g(_0x5a5035){const _0xb7f046=_0x4eda42;var _0x3da5db;let _0x41f8ef=(_0x3da5db=_0x5a5035==null?void 0x0:_0x5a5035[_0xb7f046(0x1f6)])==null?{}:_0x3da5db;return{'codes':Object['fromEntries'](Object['entries'](_0x41f8ef)[_0xb7f046(0x1a1)](([_0x5339e7,_0x22101c])=>[_0x5339e7,h(_0x22101c)]))};}function _(_0x3bf775,_0xaafc2,_0x3414ef){const _0x5791c1=_0x4eda42;let _0x58d544=g(_0x3bf775);return _0x58d544[_0x5791c1(0x1f6)][_0xaafc2]=h({..._0x58d544[_0x5791c1(0x1f6)][_0xaafc2],..._0x3414ef}),_0x58d544;}function _0x120b(_0x55968c,_0x473383){_0x55968c=_0x55968c-0x17b;const _0x2ca1a9=_0x2ca1();let _0x120bcf=_0x2ca1a9[_0x55968c];return _0x120bcf;}function v(_0x5298ef,_0x40d6b3){const _0x163b87=_0x4eda42;let _0x5710cd=g(_0x5298ef);return delete _0x5710cd[_0x163b87(0x1f6)][_0x40d6b3],_0x5710cd;}const y='monospace';function b(_0x5c27f6){const _0x57e450=_0x4eda42;var _0x2fd0b7,_0x45b942,_0x28c086;let _0x3f95e6=E(_0x5c27f6['documentData']),_0x1667b3=D(_0x3f95e6),_0xdbbaf3=ee(_0x5c27f6[_0x57e450(0x19a)],_0x5c27f6['endOffset']),_0x39072c=_0xdbbaf3?(_0x2fd0b7=_0x1667b3['blockRanges'])==null?void 0x0:_0x2fd0b7['find'](_0x584887=>_0x584887['startIndex']===_0xdbbaf3[_0x57e450(0x19a)]&&_0x584887[_0x57e450(0x1d7)]+0x1===_0xdbbaf3[_0x57e450(0x1d8)]):void 0x0,{startOffset:_0x2e672c,endOffset:_0xc83a5a}=_0x39072c?_0xdbbaf3:se(_0x1667b3,_0x5c27f6[_0x57e450(0x19a)],_0x5c27f6[_0x57e450(0x1d8)]),_0x5398ba=le(_0x1667b3,_0x2e672c,_0xc83a5a),_0x4b2ece=(_0x45b942=_0x39072c==null?void 0x0:_0x39072c[_0x57e450(0x181)])==null?_0x5c27f6['blockId']:_0x45b942,_0x150fb0=_(_0x5c27f6[_0x57e450(0x1f2)],_0x4b2ece,{...m,..._0x5c27f6[_0x57e450(0x18b)]});if(_0x39072c)return _0x39072c[_0x57e450(0x1ec)]=p,x(_0x1667b3,_0x2e672c,_0xc83a5a),w(_0x1667b3,_0x2e672c,_0xc83a5a,_0x5398ba),{'nextDocumentData':_0x3f95e6,'nextMetadata':_0x150fb0,'cursorOffset':_0x2e672c+0x1};if(_0x2e672c===_0xc83a5a){let _0x45ea87=''+_0x212422['BLOCK_START']+_0x212422[_0x57e450(0x1f0)]+_0x212422[_0x57e450(0x1ac)];return j(_0x1667b3,_0x2e672c,_0x45ea87,{'paragraphs':[{'startIndex':0x1,'paragraphStyle':C(!0x0,!0x0,_0x5398ba)}],'blockRanges':[{'blockId':_0x4b2ece,'blockType':p,'startIndex':0x0,'endIndex':_0x45ea87[_0x57e450(0x1a8)]-0x1}]}),{'nextDocumentData':_0x3f95e6,'nextMetadata':_0x150fb0,'cursorOffset':_0x2e672c+0x1};}return j(_0x1667b3,_0xc83a5a,_0x212422[_0x57e450(0x1ac)]),j(_0x1667b3,_0x2e672c,_0x212422[_0x57e450(0x1a4)]),w(_0x1667b3,_0x2e672c,_0xc83a5a+0x1,_0x5398ba),_0x1667b3[_0x57e450(0x1cb)]=[...(_0x28c086=_0x1667b3['blockRanges'])==null?[]:_0x28c086,{'blockId':_0x4b2ece,'blockType':p,'startIndex':_0x2e672c,'endIndex':_0xc83a5a+0x1}][_0x57e450(0x1ab)]((_0x28b73b,_0x217fa7)=>_0x28b73b[_0x57e450(0x1a9)]-_0x217fa7[_0x57e450(0x1a9)]),{'nextDocumentData':_0x3f95e6,'nextMetadata':_0x150fb0,'cursorOffset':_0x2e672c+0x1};}function x(_0x140406,_0x2193cd,_0x3bf528){const _0x5f4786=_0x4eda42;var _0x345144;((_0x345144=_0x140406[_0x5f4786(0x1af)])==null?[]:_0x345144)[_0x5f4786(0x194)](_0x2ead26=>_0x2ead26[_0x5f4786(0x1a9)]>_0x2193cd&&_0x2ead26[_0x5f4786(0x1a9)]<_0x3bf528)['forEach'](_0xad0887=>{const _0x11cb6d=_0x5f4786;var _0x10957b;let _0x592ff7={...(_0x10957b=_0xad0887[_0x11cb6d(0x1d9)])==null?{}:_0x10957b};delete _0x592ff7[_0x11cb6d(0x198)],delete _0x592ff7['spaceBelow'],_0xad0887[_0x11cb6d(0x1d9)]=_0x592ff7;});}function ee(_0x1b0488,_0x5b2a5c){const _0x4ed4e4=_0x4eda42;return _0x1b0488==null||_0x5b2a5c==null||_0x1b0488===_0x5b2a5c?null:{'startOffset':Math['min'](_0x1b0488,_0x5b2a5c),'endOffset':Math[_0x4ed4e4(0x1c2)](_0x1b0488,_0x5b2a5c)};}function te(_0x4c4a95){const _0x51966b=_0x4eda42;return{'nextDocumentData':E(_0x4c4a95[_0x51966b(0x1e2)]),'nextMetadata':_(_0x4c4a95[_0x51966b(0x1f2)],_0x4c4a95[_0x51966b(0x181)],_0x4c4a95[_0x51966b(0x18b)]),'cursorOffset':0x0};}function ne(_0x3b04cf){const _0x51943f=_0x4eda42;var _0xf23e70,_0x130f66;let _0x56796f=E(_0x3b04cf[_0x51943f(0x1e2)]),_0x37e417=D(_0x56796f),_0x123618=S(_0x37e417,_0x3b04cf[_0x51943f(0x17c)]);if(!_0x123618)return null;let _0x423ebf=T(_0x37e417,_0x123618),_0x3b5717=_0x423ebf[_0x423ebf['length']-0x1];if(!_0x3b5717||!oe(_0x37e417,_0x123618,_0x3b5717)||_0x3b04cf[_0x51943f(0x17c)]<_0x3b5717[_0x51943f(0x1a9)])return null;let _0x11ce38=k(_0x37e417,_0x123618,_0x3b5717);if(_0x11ce38>=_0x123618[_0x51943f(0x1d7)])return null;_0x37e417['dataStream']=[_0x37e417[_0x51943f(0x1f5)][_0x51943f(0x1de)](0x0,_0x11ce38),_0x212422[_0x51943f(0x1ac)],_0x37e417[_0x51943f(0x1f5)][_0x51943f(0x1de)](_0x11ce38,_0x123618['endIndex']),_0x37e417[_0x51943f(0x1f5)][_0x51943f(0x1de)](_0x123618[_0x51943f(0x1d7)]+0x1)][_0x51943f(0x1e0)](''),z(_0x37e417[_0x51943f(0x1af)],_0x11ce38,_0x123618[_0x51943f(0x1d7)],0x1),z(_0x37e417[_0x51943f(0x17f)],_0x11ce38,_0x123618[_0x51943f(0x1d7)],0x1),z(_0x37e417['customBlocks'],_0x11ce38,_0x123618[_0x51943f(0x1d7)],0x1),pe(_0x37e417[_0x51943f(0x1b4)],_0x11ce38,_0x123618[_0x51943f(0x1d7)],0x1),B(_0x37e417[_0x51943f(0x1e4)],_0x11ce38,_0x123618['endIndex'],0x1),B(_0x37e417[_0x51943f(0x18a)],_0x11ce38,_0x123618[_0x51943f(0x1d7)],0x1),B(_0x37e417[_0x51943f(0x18c)],_0x11ce38,_0x123618[_0x51943f(0x1d7)],0x1),(_0xf23e70=_0x37e417[_0x51943f(0x1cb)])==null||_0xf23e70['forEach'](_0x210223=>{const _0x229911=_0x51943f;_0x210223===_0x123618||_0x210223[_0x229911(0x181)]===_0x123618[_0x229911(0x181)]?_0x210223[_0x229911(0x1d7)]=_0x11ce38:_0x210223[_0x229911(0x1a9)]>=_0x11ce38&&_0x210223[_0x229911(0x1a9)]<_0x123618[_0x229911(0x1d7)]&&(_0x210223[_0x229911(0x1a9)]+=0x1,_0x210223[_0x229911(0x1d7)]+=0x1);});let _0x2b33ef=T(_0x37e417,{..._0x123618,'endIndex':_0x11ce38});_0x2b33ef['forEach']((_0x17ba71,_0x1bacaf)=>{const _0x4ad550=_0x51943f;var _0x35c225;_0x17ba71[_0x4ad550(0x1d9)]={...(_0x35c225=_0x17ba71[_0x4ad550(0x1d9)])==null?{}:_0x35c225,...C(_0x1bacaf===0x0,_0x1bacaf===_0x2b33ef[_0x4ad550(0x1a8)]-0x1)};});let _0x2aa794=(_0x130f66=_0x37e417[_0x51943f(0x1af)])==null?void 0x0:_0x130f66[_0x51943f(0x186)](_0x51f7f4=>_0x51f7f4[_0x51943f(0x1a9)]===_0x11ce38+0x1);return _0x2aa794&&(_0x2aa794[_0x51943f(0x1d9)]=ae(_0x2aa794[_0x51943f(0x1d9)])),{'nextDocumentData':_0x56796f,'cursorOffset':_0x11ce38+0x1};}function re(_0x36d164){const _0x5ff448=_0x4eda42;let _0x8f1ede=E(_0x36d164[_0x5ff448(0x1e2)]),_0x2c9912=D(_0x8f1ede),_0x513f52=S(_0x2c9912,_0x36d164[_0x5ff448(0x17c)]);return _0x513f52&&ie(_0x8f1ede,_0x2c9912,_0x513f52,_0x36d164['cursorOffset'],_0x36d164[_0x5ff448(0x188)])||null;}function ie(_0x573f6f,_0x4b1904,_0x215fae,_0x406fa8,_0x851c7){const _0x3a822b=_0x4eda42;let _0x49bdcb=de(_0x4b1904,_0x215fae,_0x406fa8,_0x851c7);if(!_0x49bdcb)return null;let _0x249ebf=_0x49bdcb['endTokenOffset']-0x1;return M(_0x4b1904,_0x49bdcb[_0x3a822b(0x1cf)][_0x3a822b(0x1a9)],_0x49bdcb[_0x3a822b(0x1cf)][_0x3a822b(0x1a9)]+0x1),{'nextDocumentData':_0x573f6f,'cursorOffset':_0x249ebf};}function _0x2ca1(){const _0x27ef4b=['startIndex','getRange','sort','BLOCK_END','deserialize','set','paragraphs','indentEnd','exit','spaceBelow','getConfig','textRuns','setCodeConfig','deepClone','constructor','SECTION_BREAK','replace','commandService','456196ROAofU','javascript','code','getUniverDocInstance','getUnitId','indexOf','getText','max','_runtime','getCurrentUnitOfType','_setResource','describe','model','some','reduce','endsWith','blockRanges','string','getTextRanges','Document\x20body\x20is\x20required','paragraph','every','prototype','12UsvkGy','text','findCodes','serialize','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','endIndex','endOffset','paragraphStyle','dispose','replaceOp','get','nextDocumentData','slice','iterator','join','nextMetadata','documentData','min','tables','509528hlHXQp','getCodes','unitId','asObservable','cancelEmptyParagraph','_commandService','docs-code-','blockType','_resources','676584cOCImr','symbol','PARAGRAPH','function','metadata','next','_getBlockRange','dataStream','codes','from','cursorOffset','change$','1218744oNqSpF','sectionBreaks','compose','blockId','293290jKukXt','now','_change$','default','find','docs-code.command.cancel-empty-paragraph','paragraphStartIndex','1CbSUvC','customRanges','config','customDecorations','textStyle','object','body','defineProperty','assign','removeUnit','removeCode','filter','delete','1321243qwBSZx','6782571AlEOcX','spaceAbove','getId','startOffset','getCodeConfig','COMMAND','getDocumentData','getSnapshot','forEach','syncExecuteCommand','map','previousDocumentData','getInstance','BLOCK_START','updateConfig','docs-code.command.insert','customBlocks','length'];_0x2ca1=function(){return _0x27ef4b;};return _0x2ca1();}function S(_0x56be54,_0x41588f){const _0x457e84=_0x4eda42;var _0x6ef918;return(_0x6ef918=_0x56be54['blockRanges'])==null?void 0x0:_0x6ef918[_0x457e84(0x186)](_0x450d96=>{const _0x2826ec=_0x457e84;let _0x138fab=A(_0x56be54,_0x450d96);return _0x450d96[_0x2826ec(0x1ec)]===_0x2826ec(0x1bd)&&_0x450d96[_0x2826ec(0x1a9)]<=_0x41588f&&_0x41588f<=_0x138fab+0x2;});}function C(_0x58cf64,_0x260fec,_0x193138=!0x1){return{'indentEnd':{'v':0x14},'indentStart':{'v':0x14},..._0x58cf64&&_0x193138?{'spaceAbove':{'v':0x8}}:{},'textStyle':{'ff':y,'fs':0xc}};}function w(_0x361f7c,_0x6c4ef7,_0x1a070a,_0x185c53=!0x1){const _0x571839=_0x4eda42;var _0xe95fb6;let _0xaf7259=((_0xe95fb6=_0x361f7c[_0x571839(0x1af)])==null?[]:_0xe95fb6)[_0x571839(0x194)](_0x4273c2=>_0x4273c2[_0x571839(0x1a9)]>_0x6c4ef7&&_0x4273c2[_0x571839(0x1a9)]<_0x1a070a);_0xaf7259['forEach']((_0x5a1367,_0x2ea7b1)=>{const _0x447f03=_0x571839;var _0x9ca899;_0x5a1367[_0x447f03(0x1d9)]={...(_0x9ca899=_0x5a1367[_0x447f03(0x1d9)])==null?{}:_0x9ca899,...C(_0x2ea7b1===0x0,_0x2ea7b1===_0xaf7259[_0x447f03(0x1a8)]-0x1,_0x185c53)};});}function ae(_0xf4b326){const _0x3ee534=_0x4eda42;var _0x43fc72,_0x3a5fdc;let _0x510486={..._0xf4b326==null?{}:_0xf4b326};return delete _0x510486[_0x3ee534(0x1b0)],delete _0x510486['indentStart'],delete _0x510486['spaceAbove'],delete _0x510486[_0x3ee534(0x1b2)],((_0x43fc72=_0x510486['textStyle'])==null?void 0x0:_0x43fc72['ff'])===y&&((_0x3a5fdc=_0x510486[_0x3ee534(0x18d)])==null?void 0x0:_0x3a5fdc['fs'])===0xc&&delete _0x510486['textStyle'],_0x510486;}function T(_0x5c753e,_0xe09618){const _0x1e2ab6=_0x4eda42;var _0x449f17;let _0x17e8c5=A(_0x5c753e,_0xe09618);return((_0x449f17=_0x5c753e[_0x1e2ab6(0x1af)])==null?[]:_0x449f17)['filter'](_0x4d6a61=>_0x4d6a61[_0x1e2ab6(0x1a9)]>_0xe09618[_0x1e2ab6(0x1a9)]&&_0x4d6a61[_0x1e2ab6(0x1a9)]<_0x17e8c5);}function oe(_0x453f49,_0x4680f0,_0x225f17){const _0x15c9df=_0x4eda42;let _0x9ed2c=k(_0x453f49,_0x4680f0,_0x225f17),_0x434cd7=_0x453f49[_0x15c9df(0x1f5)]['slice'](_0x9ed2c,_0x225f17[_0x15c9df(0x1a9)]);return Array[_0x15c9df(0x17b)](_0x434cd7)[_0x15c9df(0x1d0)](_0x2e4327=>_0x2e4327===_0x212422[_0x15c9df(0x1a4)]||_0x2e4327===_0x212422[_0x15c9df(0x1ac)]);}function E(_0x101d96){const _0x2e3ea1=_0x4eda42;return _0x49d96f[_0x2e3ea1(0x1b6)](_0x101d96);}function D(_0x3aa15d){const _0x505f18=_0x4eda42;if(!_0x3aa15d[_0x505f18(0x18f)])throw Error(_0x505f18(0x1ce));return _0x3aa15d[_0x505f18(0x18f)];}function se(_0x2843b3,_0x11e145,_0x1847dc){const _0x2a0cdf=_0x4eda42;if(_0x11e145==null||_0x1847dc==null){let _0x592331=ce(_0x2843b3);return{'startOffset':_0x592331,'endOffset':_0x592331};}let _0x214dd3=Math[_0x2a0cdf(0x1e3)](_0x11e145,_0x1847dc),_0x54523b=Math[_0x2a0cdf(0x1c2)](_0x11e145,_0x1847dc);return _0x214dd3===_0x54523b?{'startOffset':_0x214dd3,'endOffset':_0x214dd3}:ue(_0x2843b3,_0x214dd3,_0x54523b);}function ce(_0x1e0e7f){const _0x42c79a=_0x4eda42;return _0x1e0e7f[_0x42c79a(0x1f5)][_0x42c79a(0x1ca)](_0x212422[_0x42c79a(0x1b8)])?Math[_0x42c79a(0x1c2)](0x0,_0x1e0e7f[_0x42c79a(0x1f5)][_0x42c79a(0x1a8)]-0x1):_0x1e0e7f[_0x42c79a(0x1f5)][_0x42c79a(0x1a8)];}function le(_0x401d98,_0x3c391a,_0x22a4b7){const _0x5b40a4=_0x4eda42;var _0x5b8af6;let _0x30bb5b=Math['min'](_0x3c391a,_0x22a4b7),_0x542433=Math['max'](_0x3c391a,_0x22a4b7);return!!((_0x5b8af6=_0x401d98[_0x5b40a4(0x1e4)])!=null&&_0x5b8af6[_0x5b40a4(0x1c8)](_0x1330b7=>_0x30bb5b>_0x1330b7[_0x5b40a4(0x1a9)]&&_0x30bb5b<_0x1330b7['endIndex']||_0x542433>_0x1330b7[_0x5b40a4(0x1a9)]&&_0x542433<_0x1330b7[_0x5b40a4(0x1d7)]||_0x30bb5b<=_0x1330b7['startIndex']&&_0x542433>=_0x1330b7[_0x5b40a4(0x1d7)]));}function ue(_0x5c1430,_0x521c89,_0x49925c){const _0x1f60fa=_0x4eda42;var _0x2c63be,_0x478a83;let _0x3ef2e8=[...(_0x2c63be=_0x5c1430[_0x1f60fa(0x1af)])==null?[]:_0x2c63be][_0x1f60fa(0x1ab)]((_0x139452,_0x5c9653)=>_0x139452[_0x1f60fa(0x1a9)]-_0x5c9653[_0x1f60fa(0x1a9)]),_0x14c7cd=_0x3ef2e8[_0x1f60fa(0x186)]((_0x6f865c,_0x58b90f)=>(_0x58b90f===0x0?0x0:_0x3ef2e8[_0x58b90f-0x1][_0x1f60fa(0x1a9)]+0x1)<=_0x521c89&&_0x521c89<=_0x6f865c[_0x1f60fa(0x1a9)]),_0x35c053=(_0x478a83=_0x3ef2e8[_0x1f60fa(0x186)](_0x78ba1a=>_0x78ba1a[_0x1f60fa(0x1a9)]>=_0x49925c-0x1))==null?_0x3ef2e8[_0x3ef2e8[_0x1f60fa(0x1a8)]-0x1]:_0x478a83;return{'startOffset':_0x14c7cd?O(_0x3ef2e8,_0x14c7cd):_0x521c89,'endOffset':_0x35c053?_0x35c053[_0x1f60fa(0x1a9)]+0x1:_0x49925c};}function O(_0x1ede80,_0x2c1899){const _0x484bac=_0x4eda42;let _0x3bc944=_0x1ede80[_0x484bac(0x1c0)](_0x2c1899);return _0x3bc944>0x0?_0x1ede80[_0x3bc944-0x1][_0x484bac(0x1a9)]+0x1:0x0;}function k(_0x5d12a9,_0xbd41e6,_0x494189){const _0x5df25f=_0x4eda42;var _0x868a7f;return Math[_0x5df25f(0x1c2)](O((_0x868a7f=_0x5d12a9['paragraphs'])==null?[]:_0x868a7f,_0x494189),_0xbd41e6[_0x5df25f(0x1a9)]+0x1);}function A(_0x145148,_0x4c7364){const _0x45cd73=_0x4eda42;return _0x145148[_0x45cd73(0x1f5)][_0x4c7364[_0x45cd73(0x1d7)]]===_0x212422['BLOCK_END']?_0x4c7364[_0x45cd73(0x1d7)]:_0x145148[_0x45cd73(0x1f5)][_0x4c7364[_0x45cd73(0x1d7)]+0x1]===_0x212422['BLOCK_END']?_0x4c7364[_0x45cd73(0x1d7)]+0x1:_0x4c7364[_0x45cd73(0x1d7)];}function de(_0xdd246b,_0x261cd6,_0x48e198,_0x1610c2){const _0x3c31a8=_0x4eda42;var _0x143362,_0x21f2f0;let _0x485402=A(_0xdd246b,_0x261cd6),_0x334dc7=((_0x143362=_0xdd246b[_0x3c31a8(0x1af)])==null?[]:_0x143362)['find'](_0xb6d5f0=>_0xb6d5f0[_0x3c31a8(0x1a9)]===_0x485402+0x1);if(!_0x334dc7||_0x1610c2!=null&&_0x334dc7[_0x3c31a8(0x1a9)]!==_0x1610c2||_0x48e198<_0x485402||_0x48e198>_0x334dc7[_0x3c31a8(0x1a9)]+0x1||_0xdd246b[_0x3c31a8(0x1f5)][_0x334dc7[_0x3c31a8(0x1a9)]]!==_0x212422[_0x3c31a8(0x1f0)])return null;let _0xb04d=O((_0x21f2f0=_0xdd246b['paragraphs'])==null?[]:_0x21f2f0,_0x334dc7),_0x22a028=_0xdd246b[_0x3c31a8(0x1f5)]['slice'](_0xb04d,_0x334dc7[_0x3c31a8(0x1a9)]);return Array[_0x3c31a8(0x17b)](_0x22a028)[_0x3c31a8(0x1d0)](_0x235f7b=>_0x235f7b===_0x212422['BLOCK_END'])?{'paragraph':_0x334dc7,'endTokenOffset':_0x485402}:null;}function j(_0x48e5df,_0x3de63b,_0x3e8e0c,_0x44c24e={}){const _0x23b32d=_0x4eda42;var _0x43998c,_0x56d73a;if(_0x3e8e0c){if(_0x48e5df['dataStream']=''+_0x48e5df[_0x23b32d(0x1f5)][_0x23b32d(0x1de)](0x0,_0x3de63b)+_0x3e8e0c+_0x48e5df[_0x23b32d(0x1f5)][_0x23b32d(0x1de)](_0x3de63b),N(_0x48e5df,_0x3de63b,_0x3e8e0c[_0x23b32d(0x1a8)]),(_0x43998c=_0x44c24e[_0x23b32d(0x1af)])!=null&&_0x43998c['length']){var _0x35a54f;_0x48e5df[_0x23b32d(0x1af)]=[...(_0x35a54f=_0x48e5df[_0x23b32d(0x1af)])==null?[]:_0x35a54f,..._0x44c24e[_0x23b32d(0x1af)][_0x23b32d(0x1a1)](_0xa1e844=>({..._0xa1e844,'startIndex':_0xa1e844[_0x23b32d(0x1a9)]+_0x3de63b}))][_0x23b32d(0x1ab)]((_0x576b76,_0x7d2cf5)=>_0x576b76['startIndex']-_0x7d2cf5[_0x23b32d(0x1a9)]);}if((_0x56d73a=_0x44c24e[_0x23b32d(0x1cb)])!=null&&_0x56d73a[_0x23b32d(0x1a8)]){var _0x122fbe;_0x48e5df[_0x23b32d(0x1cb)]=[...(_0x122fbe=_0x48e5df[_0x23b32d(0x1cb)])==null?[]:_0x122fbe,..._0x44c24e['blockRanges'][_0x23b32d(0x1a1)](_0x4faac5=>({..._0x4faac5,'startIndex':_0x4faac5['startIndex']+_0x3de63b,'endIndex':_0x4faac5[_0x23b32d(0x1d7)]+_0x3de63b}))][_0x23b32d(0x1ab)]((_0x30ef67,_0x29cf97)=>_0x30ef67[_0x23b32d(0x1a9)]-_0x29cf97[_0x23b32d(0x1a9)]);}}}function M(_0x4880c1,_0x2d9ca3,_0x3a1db9){const _0x23bee7=_0x4eda42;let _0x2737d5=_0x3a1db9-_0x2d9ca3;_0x4880c1[_0x23bee7(0x1f5)]=''+_0x4880c1[_0x23bee7(0x1f5)][_0x23bee7(0x1de)](0x0,_0x2d9ca3)+_0x4880c1['dataStream'][_0x23bee7(0x1de)](_0x3a1db9),P(_0x4880c1,_0x2d9ca3,_0x2737d5);}function N(_0x3d523d,_0x194f30,_0x1e08ef){const _0x366f5d=_0x4eda42;_0x3d523d[_0x366f5d(0x1af)]=F(_0x3d523d[_0x366f5d(0x1af)],_0x194f30,_0x1e08ef),_0x3d523d['sectionBreaks']=F(_0x3d523d[_0x366f5d(0x17f)],_0x194f30,_0x1e08ef),_0x3d523d[_0x366f5d(0x1a7)]=F(_0x3d523d[_0x366f5d(0x1a7)],_0x194f30,_0x1e08ef),_0x3d523d[_0x366f5d(0x1b4)]=fe(_0x3d523d[_0x366f5d(0x1b4)],_0x194f30,_0x1e08ef),_0x3d523d['tables']=L(_0x3d523d[_0x366f5d(0x1e4)],_0x194f30,_0x1e08ef),_0x3d523d[_0x366f5d(0x18a)]=L(_0x3d523d[_0x366f5d(0x18a)],_0x194f30,_0x1e08ef),_0x3d523d[_0x366f5d(0x18c)]=L(_0x3d523d[_0x366f5d(0x18c)],_0x194f30,_0x1e08ef),_0x3d523d['blockRanges']=L(_0x3d523d[_0x366f5d(0x1cb)],_0x194f30,_0x1e08ef);}function P(_0x4ee322,_0x487744,_0x100b68){const _0x321727=_0x4eda42;var _0x3ac4ea,_0x25425c;_0x4ee322[_0x321727(0x1af)]=I(_0x4ee322[_0x321727(0x1af)],_0x487744,_0x100b68),_0x4ee322[_0x321727(0x17f)]=I(_0x4ee322[_0x321727(0x17f)],_0x487744,_0x100b68),_0x4ee322[_0x321727(0x1a7)]=I(_0x4ee322['customBlocks'],_0x487744,_0x100b68),_0x4ee322[_0x321727(0x1b4)]=(_0x3ac4ea=R((_0x25425c=_0x4ee322[_0x321727(0x1b4)])==null?void 0x0:_0x25425c['map'](_0x5c807b=>({..._0x5c807b,'startIndex':_0x5c807b['st'],'endIndex':_0x5c807b['ed']})),_0x487744,_0x100b68))==null?void 0x0:_0x3ac4ea[_0x321727(0x1a1)](_0x32b33b=>{let {startIndex:_0x377f2e,endIndex:_0x458135,..._0x5925e8}=_0x32b33b;return{..._0x5925e8,'st':_0x377f2e,'ed':_0x458135};}),_0x4ee322[_0x321727(0x1e4)]=R(_0x4ee322[_0x321727(0x1e4)],_0x487744,_0x100b68),_0x4ee322[_0x321727(0x18a)]=R(_0x4ee322['customRanges'],_0x487744,_0x100b68),_0x4ee322['customDecorations']=R(_0x4ee322[_0x321727(0x18c)],_0x487744,_0x100b68),_0x4ee322['blockRanges']=R(_0x4ee322[_0x321727(0x1cb)],_0x487744,_0x100b68);}function F(_0x1223a0,_0xd403f6,_0x23c4c0){const _0x201181=_0x4eda42;return _0x1223a0==null?void 0x0:_0x1223a0[_0x201181(0x1a1)](_0x576035=>_0x576035['startIndex']>=_0xd403f6?{..._0x576035,'startIndex':_0x576035[_0x201181(0x1a9)]+_0x23c4c0}:_0x576035);}function I(_0x6f7bc2,_0x1ff358,_0x4761ab){const _0x46b92e=_0x4eda42;let _0x1ba9e9=_0x1ff358+_0x4761ab;return _0x6f7bc2==null?void 0x0:_0x6f7bc2[_0x46b92e(0x1a1)](_0x148529=>_0x148529[_0x46b92e(0x1a9)]>=_0x1ff358&&_0x148529['startIndex']<_0x1ba9e9?null:_0x148529[_0x46b92e(0x1a9)]>=_0x1ba9e9?{..._0x148529,'startIndex':_0x148529[_0x46b92e(0x1a9)]-_0x4761ab}:_0x148529)[_0x46b92e(0x194)](_0x5e2f61=>_0x5e2f61!=null);}function fe(_0x4dc59d,_0x20a8bb,_0x4aed82){return _0x4dc59d==null?void 0x0:_0x4dc59d['map'](_0x58f5df=>_0x58f5df['st']>=_0x20a8bb?{..._0x58f5df,'st':_0x58f5df['st']+_0x4aed82,'ed':_0x58f5df['ed']+_0x4aed82}:_0x58f5df['ed']>_0x20a8bb?{..._0x58f5df,'ed':_0x58f5df['ed']+_0x4aed82}:_0x58f5df);}function L(_0x550e0d,_0x19f77c,_0x41846c){const _0x2361c3=_0x4eda42;return _0x550e0d==null?void 0x0:_0x550e0d[_0x2361c3(0x1a1)](_0x19a7e5=>_0x19a7e5[_0x2361c3(0x1a9)]>=_0x19f77c?{..._0x19a7e5,'startIndex':_0x19a7e5['startIndex']+_0x41846c,'endIndex':_0x19a7e5[_0x2361c3(0x1d7)]+_0x41846c}:_0x19a7e5[_0x2361c3(0x1d7)]>=_0x19f77c?{..._0x19a7e5,'endIndex':_0x19a7e5[_0x2361c3(0x1d7)]+_0x41846c}:_0x19a7e5);}function R(_0x1a6616,_0x5c975d,_0x3ca8ac){const _0x45fece=_0x4eda42;let _0x91460c=_0x5c975d+_0x3ca8ac;return _0x1a6616==null?void 0x0:_0x1a6616['map'](_0x1462b9=>_0x1462b9[_0x45fece(0x1a9)]>=_0x5c975d&&_0x1462b9[_0x45fece(0x1d7)]<_0x91460c?null:_0x1462b9['startIndex']>=_0x91460c?{..._0x1462b9,'startIndex':_0x1462b9[_0x45fece(0x1a9)]-_0x3ca8ac,'endIndex':_0x1462b9[_0x45fece(0x1d7)]-_0x3ca8ac}:_0x1462b9[_0x45fece(0x1d7)]>=_0x5c975d?{..._0x1462b9,'startIndex':_0x1462b9[_0x45fece(0x1a9)]<_0x5c975d?_0x1462b9['startIndex']:_0x5c975d,'endIndex':Math[_0x45fece(0x1c2)](_0x5c975d,_0x1462b9[_0x45fece(0x1d7)]-_0x3ca8ac)}:_0x1462b9)[_0x45fece(0x194)](_0x4cf8e8=>_0x4cf8e8!=null);}function z(_0xfbfb09,_0x49a344,_0x530816,_0x32dc2d){const _0x4bafe4=_0x4eda42;_0xfbfb09==null||_0xfbfb09[_0x4bafe4(0x19f)](_0x29a57e=>{const _0x48c80c=_0x4bafe4;_0x29a57e[_0x48c80c(0x1a9)]>=_0x49a344&&_0x29a57e[_0x48c80c(0x1a9)]<_0x530816&&(_0x29a57e['startIndex']+=_0x32dc2d);});}function pe(_0x48e784,_0x5e707d,_0x11aad7,_0x1a2872){_0x48e784==null||_0x48e784['forEach'](_0x778eb8=>{_0x778eb8['st']>=_0x5e707d&&_0x778eb8['st']<_0x11aad7?(_0x778eb8['st']+=_0x1a2872,_0x778eb8['ed']+=_0x1a2872):_0x778eb8['ed']>_0x5e707d&&_0x778eb8['ed']<_0x11aad7&&(_0x778eb8['ed']+=_0x1a2872);});}function B(_0x3a41fe,_0x101166,_0x23ce88,_0x3932b5){const _0x3e686f=_0x4eda42;_0x3a41fe==null||_0x3a41fe[_0x3e686f(0x19f)](_0x1cef8d=>{const _0x51cd0=_0x3e686f;_0x1cef8d[_0x51cd0(0x1a9)]>=_0x101166&&_0x1cef8d[_0x51cd0(0x1a9)]<_0x23ce88?(_0x1cef8d[_0x51cd0(0x1a9)]+=_0x3932b5,_0x1cef8d[_0x51cd0(0x1d7)]+=_0x3932b5):_0x1cef8d[_0x51cd0(0x1d7)]>_0x101166&&_0x1cef8d[_0x51cd0(0x1d7)]<_0x23ce88&&(_0x1cef8d[_0x51cd0(0x1d7)]+=_0x3932b5);});}function V(_0x1e5b10){'@babel/helpers - typeof';const _0x1cfbfe=_0x4eda42;return V=typeof Symbol==_0x1cfbfe(0x1f1)&&typeof Symbol[_0x1cfbfe(0x1df)]==_0x1cfbfe(0x1ef)?function(_0x4f676d){return typeof _0x4f676d;}:function(_0x4cfdb1){const _0x174640=_0x1cfbfe;return _0x4cfdb1&&typeof Symbol==_0x174640(0x1f1)&&_0x4cfdb1[_0x174640(0x1b7)]===Symbol&&_0x4cfdb1!==Symbol[_0x174640(0x1d1)]?_0x174640(0x1ef):typeof _0x4cfdb1;},V(_0x1e5b10);}function me(_0x6af159,_0x2e0ff8){const _0x435805=_0x4eda42;if(V(_0x6af159)!=_0x435805(0x18e)||!_0x6af159)return _0x6af159;var _0x1fc1dc=_0x6af159[Symbol['toPrimitive']];if(_0x1fc1dc!==void 0x0){var _0x522355=_0x1fc1dc['call'](_0x6af159,_0x2e0ff8||_0x435805(0x185));if(V(_0x522355)!=_0x435805(0x18e))return _0x522355;throw TypeError(_0x435805(0x1d6));}return(_0x2e0ff8===_0x435805(0x1cc)?String:Number)(_0x6af159);}function he(_0x5af750){const _0xb8ea09=_0x4eda42;var _0x4345b9=me(_0x5af750,'string');return V(_0x4345b9)==_0xb8ea09(0x1ef)?_0x4345b9:_0x4345b9+'';}function H(_0x203b8a,_0x250239,_0x31a71d){const _0x3310d3=_0x4eda42;return(_0x250239=he(_0x250239))in _0x203b8a?Object[_0x3310d3(0x190)](_0x203b8a,_0x250239,{'value':_0x31a71d,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x203b8a[_0x250239]=_0x31a71d,_0x203b8a;}var U=class extends _0x207dae{constructor(..._0x279fb7){const _0x5d23de=_0x4eda42;super(..._0x279fb7),H(this,_0x5d23de(0x1ed),new Map()),H(this,_0x5d23de(0x184),new _0x463d46()),H(this,_0x5d23de(0x17d),this[_0x5d23de(0x184)][_0x5d23de(0x1e8)]());}['getCodeConfig'](_0x4c5553,_0x1bb813){const _0xe5fa79=_0x4eda42;return g(this[_0xe5fa79(0x1ed)][_0xe5fa79(0x1dc)](_0x4c5553))[_0xe5fa79(0x1f6)][_0x1bb813];}[_0x4eda42(0x1b5)](_0x393ad9,_0x469394,_0x56776e){const _0x50bf71=_0x4eda42;this[_0x50bf71(0x1c5)](_0x393ad9,_0x469394,_(this[_0x50bf71(0x1ed)]['get'](_0x393ad9),_0x469394,_0x56776e));}[_0x4eda42(0x193)](_0x3a85ba,_0x498b5a){const _0x1460da=_0x4eda42;this[_0x1460da(0x1c5)](_0x3a85ba,_0x498b5a,v(this[_0x1460da(0x1ed)][_0x1460da(0x1dc)](_0x3a85ba),_0x498b5a));}[_0x4eda42(0x1d5)](_0x568b6b){const _0xc1ca9=_0x4eda42;return g(this[_0xc1ca9(0x1ed)][_0xc1ca9(0x1dc)](_0x568b6b));}[_0x4eda42(0x1ad)](_0x3f6435,_0x4f8dd3){const _0x8c1811=_0x4eda42;this[_0x8c1811(0x1ed)][_0x8c1811(0x1ae)](_0x3f6435,g(_0x4f8dd3)),this[_0x8c1811(0x184)][_0x8c1811(0x1f3)]({'unitId':_0x3f6435});}[_0x4eda42(0x192)](_0x12b423){const _0x3d5e75=_0x4eda42;this['_resources'][_0x3d5e75(0x195)](_0x12b423),this[_0x3d5e75(0x184)][_0x3d5e75(0x1f3)]({'unitId':_0x12b423});}[_0x4eda42(0x1da)](){const _0x3063d0=_0x4eda42;super[_0x3063d0(0x1da)](),this['_resources']['clear'](),this[_0x3063d0(0x184)]['complete']();}['_setResource'](_0x325af7,_0x3cadc9,_0x46b482){const _0xb18d2e=_0x4eda42;this['_resources'][_0xb18d2e(0x1ae)](_0x325af7,_0x46b482),this[_0xb18d2e(0x184)][_0xb18d2e(0x1f3)]({'unitId':_0x325af7,'blockId':_0x3cadc9});}};_0x1a9309[_0x4eda42(0x19c)],_0x1a9309['COMMAND'];const ge={'id':_0x4eda42(0x1a6),'type':_0x1a9309[_0x4eda42(0x19c)],'handler':(_0x5394ee,_0x13bc3e)=>{const _0x360e76=_0x4eda42;var _0x2856aa,_0x4d50f3,_0x14551c;let _0x1d42f3=K(_0x5394ee,_0x13bc3e==null?void 0x0:_0x13bc3e[_0x360e76(0x1e7)]);if(!_0x1d42f3)return!0x1;let _0x12c683=q(_0x5394ee),_0x784c26=b({'blockId':(_0x2856aa=_0x13bc3e==null?void 0x0:_0x13bc3e[_0x360e76(0x181)])==null?_0x46d562(0x6):_0x2856aa,'config':_0x13bc3e==null?void 0x0:_0x13bc3e[_0x360e76(0x18b)],'documentData':_0x1d42f3[_0x360e76(0x1a2)],'endOffset':(_0x4d50f3=_0x13bc3e==null?void 0x0:_0x13bc3e['endOffset'])==null?_0x12c683==null?void 0x0:_0x12c683[_0x360e76(0x1d8)]:_0x4d50f3,'metadata':_0x1d42f3[_0x360e76(0x1c7)]['serialize'](_0x1d42f3[_0x360e76(0x1e7)]),'startOffset':(_0x14551c=_0x13bc3e==null?void 0x0:_0x13bc3e[_0x360e76(0x19a)])==null?_0x12c683==null?void 0x0:_0x12c683[_0x360e76(0x19a)]:_0x14551c}),_0x581328=Y(_0x1d42f3[_0x360e76(0x1ba)],_0x1d42f3[_0x360e76(0x1e7)],_0x1d42f3[_0x360e76(0x1a2)],_0x784c26[_0x360e76(0x1dd)],_0x784c26[_0x360e76(0x17c)]);return _0x581328&&_0x784c26['nextMetadata']&&_0x1d42f3[_0x360e76(0x1c7)][_0x360e76(0x1ad)](_0x1d42f3['unitId'],_0x784c26['nextMetadata']),_0x581328;}},_e={'id':'docs-code.command.update','type':_0x1a9309['COMMAND'],'handler':(_0x627b7e,_0x4a7799)=>{const _0xa6c2a1=_0x4eda42;if(!_0x4a7799)return!0x1;let _0x379663=K(_0x627b7e,_0x4a7799[_0xa6c2a1(0x1e7)]);if(!_0x379663)return!0x1;let _0x17028d=te({'blockId':_0x4a7799[_0xa6c2a1(0x181)],'config':_0x4a7799['config'],'documentData':_0x379663[_0xa6c2a1(0x1a2)],'metadata':_0x379663[_0xa6c2a1(0x1c7)][_0xa6c2a1(0x1d5)](_0x379663[_0xa6c2a1(0x1e7)])});return _0x17028d[_0xa6c2a1(0x1e1)]&&_0x379663[_0xa6c2a1(0x1c7)][_0xa6c2a1(0x1ad)](_0x379663[_0xa6c2a1(0x1e7)],_0x17028d[_0xa6c2a1(0x1e1)]),!0x0;}},W={'id':'docs-code.command.exit','type':_0x1a9309[_0x4eda42(0x19c)],'handler':(_0x561abb,_0x2a9ecf)=>{const _0x3e1ca8=_0x4eda42;var _0x306559,_0x3ad58b;let _0x4d2191=K(_0x561abb,_0x2a9ecf==null?void 0x0:_0x2a9ecf[_0x3e1ca8(0x1e7)]);if(!_0x4d2191)return!0x1;let _0x481330=(_0x306559=_0x2a9ecf==null?void 0x0:_0x2a9ecf[_0x3e1ca8(0x17c)])==null?(_0x3ad58b=q(_0x561abb))==null?void 0x0:_0x3ad58b[_0x3e1ca8(0x19a)]:_0x306559;if(_0x481330==null)return!0x1;let _0x340418=ne({'cursorOffset':_0x481330,'documentData':_0x4d2191[_0x3e1ca8(0x1a2)]});return _0x340418?Y(_0x4d2191['commandService'],_0x4d2191[_0x3e1ca8(0x1e7)],_0x4d2191[_0x3e1ca8(0x1a2)],_0x340418[_0x3e1ca8(0x1dd)],_0x340418[_0x3e1ca8(0x17c)]):!0x1;}},G={'id':_0x4eda42(0x187),'type':_0x1a9309[_0x4eda42(0x19c)],'handler':(_0x5e6f3e,_0x15a8e2)=>{const _0x3e6a1e=_0x4eda42;var _0x28c3e7,_0x2b5200;let _0x10ee8a=K(_0x5e6f3e,_0x15a8e2==null?void 0x0:_0x15a8e2[_0x3e6a1e(0x1e7)]);if(!_0x10ee8a)return!0x1;let _0x385e0b=(_0x28c3e7=_0x15a8e2==null?void 0x0:_0x15a8e2['cursorOffset'])==null?(_0x2b5200=q(_0x5e6f3e))==null?void 0x0:_0x2b5200[_0x3e6a1e(0x19a)]:_0x28c3e7;if(_0x385e0b==null)return!0x1;let _0x56ed96=re({'cursorOffset':_0x385e0b,'documentData':_0x10ee8a[_0x3e6a1e(0x1a2)],'paragraphStartIndex':_0x15a8e2==null?void 0x0:_0x15a8e2[_0x3e6a1e(0x188)]});return _0x56ed96?Y(_0x10ee8a[_0x3e6a1e(0x1ba)],_0x10ee8a[_0x3e6a1e(0x1e7)],_0x10ee8a['previousDocumentData'],_0x56ed96[_0x3e6a1e(0x1dd)],_0x56ed96[_0x3e6a1e(0x17c)]):!0x1;}};function K(_0x325a73,_0x22da7c){const _0x26b906=_0x4eda42;let _0x25eb53=_0x325a73[_0x26b906(0x1dc)](_0x23aeb7),_0x5f4846=_0x22da7c?_0x25eb53[_0x26b906(0x1be)](_0x22da7c):_0x25eb53[_0x26b906(0x1c4)](_0x111228['UNIVER_DOC']);return _0x5f4846?{'commandService':_0x325a73['get'](_0x4da3ce),'model':_0x325a73['get'](U),'previousDocumentData':_0x5f4846[_0x26b906(0x19e)](),'unitId':_0x5f4846[_0x26b906(0x1bf)]()}:null;}function q(_0x57a0ac){const _0x532c60=_0x4eda42;var _0x171f88;return(_0x171f88=_0x57a0ac[_0x532c60(0x1dc)](_0x1bfc20)[_0x532c60(0x1cd)]())==null?void 0x0:_0x171f88[0x0];}function ve(_0x6ba0e6,_0x19d7e8){const _0x35da52=_0x4eda42;var _0x59e229,_0x1e5e02,_0x4d1ff4,_0x5ad2e3,_0x2e4c71,_0x19f927,_0x3ef2bc,_0x583d60,_0x4647e4,_0x21c1d7,_0x3c5990,_0x37d555,_0x2db09c,_0x30c664,_0x4731da,_0x31c562,_0x5d65c5,_0x54f533;let _0x1bb2b3=_0x238fe4[_0x35da52(0x1a3)]();return[J(_0x1bb2b3,[_0x35da52(0x18f),_0x35da52(0x1f5)],(_0x59e229=_0x6ba0e6[_0x35da52(0x18f)])==null?void 0x0:_0x59e229[_0x35da52(0x1f5)],(_0x1e5e02=_0x19d7e8[_0x35da52(0x18f)])==null?void 0x0:_0x1e5e02[_0x35da52(0x1f5)]),J(_0x1bb2b3,[_0x35da52(0x18f),_0x35da52(0x1af)],(_0x4d1ff4=_0x6ba0e6['body'])==null?void 0x0:_0x4d1ff4['paragraphs'],(_0x5ad2e3=_0x19d7e8['body'])==null?void 0x0:_0x5ad2e3[_0x35da52(0x1af)]),J(_0x1bb2b3,[_0x35da52(0x18f),_0x35da52(0x17f)],(_0x2e4c71=_0x6ba0e6[_0x35da52(0x18f)])==null?void 0x0:_0x2e4c71['sectionBreaks'],(_0x19f927=_0x19d7e8[_0x35da52(0x18f)])==null?void 0x0:_0x19f927['sectionBreaks']),J(_0x1bb2b3,[_0x35da52(0x18f),_0x35da52(0x1b4)],(_0x3ef2bc=_0x6ba0e6[_0x35da52(0x18f)])==null?void 0x0:_0x3ef2bc[_0x35da52(0x1b4)],(_0x583d60=_0x19d7e8[_0x35da52(0x18f)])==null?void 0x0:_0x583d60[_0x35da52(0x1b4)]),J(_0x1bb2b3,[_0x35da52(0x18f),_0x35da52(0x1a7)],(_0x4647e4=_0x6ba0e6[_0x35da52(0x18f)])==null?void 0x0:_0x4647e4[_0x35da52(0x1a7)],(_0x21c1d7=_0x19d7e8['body'])==null?void 0x0:_0x21c1d7[_0x35da52(0x1a7)]),J(_0x1bb2b3,[_0x35da52(0x18f),'customRanges'],(_0x3c5990=_0x6ba0e6['body'])==null?void 0x0:_0x3c5990['customRanges'],(_0x37d555=_0x19d7e8[_0x35da52(0x18f)])==null?void 0x0:_0x37d555[_0x35da52(0x18a)]),J(_0x1bb2b3,[_0x35da52(0x18f),_0x35da52(0x18c)],(_0x2db09c=_0x6ba0e6[_0x35da52(0x18f)])==null?void 0x0:_0x2db09c[_0x35da52(0x18c)],(_0x30c664=_0x19d7e8[_0x35da52(0x18f)])==null?void 0x0:_0x30c664[_0x35da52(0x18c)]),J(_0x1bb2b3,[_0x35da52(0x18f),_0x35da52(0x1e4)],(_0x4731da=_0x6ba0e6['body'])==null?void 0x0:_0x4731da[_0x35da52(0x1e4)],(_0x31c562=_0x19d7e8[_0x35da52(0x18f)])==null?void 0x0:_0x31c562['tables']),J(_0x1bb2b3,[_0x35da52(0x18f),'blockRanges'],(_0x5d65c5=_0x6ba0e6[_0x35da52(0x18f)])==null?void 0x0:_0x5d65c5[_0x35da52(0x1cb)],(_0x54f533=_0x19d7e8[_0x35da52(0x18f)])==null?void 0x0:_0x54f533[_0x35da52(0x1cb)])][_0x35da52(0x194)](Boolean)[_0x35da52(0x1c9)]((_0xc48ee2,_0x10ee4a)=>_0x238fe4[_0x35da52(0x180)](_0xc48ee2,_0x10ee4a),null);}function J(_0x104994,_0x1b58ce,_0x372bc1,_0xb7cf6c){const _0x715021=_0x4eda42;return _0x49d96f['diffValue'](_0x372bc1,_0xb7cf6c)?null:_0x104994[_0x715021(0x1db)](_0x1b58ce,_0x372bc1,_0xb7cf6c);}function Y(_0x3addf5,_0x57771a,_0x4277f6,_0x1c7b5e,_0x16ce7e){const _0x267aba=_0x4eda42;let _0x4ec386=ve(_0x4277f6,_0x1c7b5e);return _0x4ec386?!!_0x3addf5[_0x267aba(0x1a0)](_0x44b7b2['id'],{'unitId':_0x57771a,'actions':_0x4ec386,'textRanges':[{'startOffset':_0x16ce7e,'endOffset':_0x16ce7e,'collapsed':!0x0}],'isEditing':!0x1}):!0x1;}var X=class{constructor(_0x9ba6d2){const _0x4267c3=_0x4eda42;this[_0x4267c3(0x1c3)]=_0x9ba6d2;}[_0x4eda42(0x199)](){const _0x39007a=_0x4eda42;return this[_0x39007a(0x1c3)][_0x39007a(0x181)];}[_0x4eda42(0x1aa)](){const _0x47844f=_0x4eda42;let _0x282374=this[_0x47844f(0x1f4)]();return _0x282374?{'blockId':_0x282374[_0x47844f(0x181)],'endIndex':_0x282374[_0x47844f(0x1d7)],'startIndex':_0x282374[_0x47844f(0x1a9)]}:null;}[_0x4eda42(0x1c1)](){const _0x184eda=_0x4eda42;var _0x28b33d;let _0x17e8c8=this[_0x184eda(0x1f4)](),_0x3efbde=(_0x28b33d=this[_0x184eda(0x1c3)]['getDocumentData']()[_0x184eda(0x18f)])==null?void 0x0:_0x28b33d[_0x184eda(0x1f5)];return!_0x17e8c8||!_0x3efbde?'':ye(_0x3efbde[_0x184eda(0x1de)](_0x17e8c8['startIndex']+0x1,_0x17e8c8[_0x184eda(0x1d7)]));}[_0x4eda42(0x1c6)](){const _0x25b2e7=_0x4eda42;let _0x285fe1=this['getRange']();return _0x285fe1?{..._0x285fe1,'config':this[_0x25b2e7(0x1b3)](),'text':this[_0x25b2e7(0x1c1)](),'type':_0x25b2e7(0x1bd)}:null;}['getConfig'](){const _0x98fe61=_0x4eda42;var _0x25c455;return h((_0x25c455=this['_runtime'][_0x98fe61(0x1c7)])==null?void 0x0:_0x25c455[_0x98fe61(0x19b)](this[_0x98fe61(0x1c3)][_0x98fe61(0x1e7)],this[_0x98fe61(0x1c3)][_0x98fe61(0x181)]));}[_0x4eda42(0x1a5)](_0x405c34){const _0x1aadcd=_0x4eda42;var _0x4af367;return!!((_0x4af367=this[_0x1aadcd(0x1c3)]['commandService'])!=null&&_0x4af367['syncExecuteCommand'](_e['id'],{'blockId':this[_0x1aadcd(0x1c3)][_0x1aadcd(0x181)],'config':_0x405c34[_0x1aadcd(0x18b)],'unitId':this[_0x1aadcd(0x1c3)]['unitId']}));}[_0x4eda42(0x1b1)](_0x5010f7){const _0x49799e=_0x4eda42;var _0x400ca9;return!!((_0x400ca9=this['_runtime'][_0x49799e(0x1ba)])!=null&&_0x400ca9[_0x49799e(0x1a0)](W['id'],{'cursorOffset':_0x5010f7,'unitId':this['_runtime'][_0x49799e(0x1e7)]}));}[_0x4eda42(0x1e9)](_0x506450={}){const _0x318663=_0x4eda42;var _0x3aabce;return!!((_0x3aabce=this[_0x318663(0x1c3)][_0x318663(0x1ba)])!=null&&_0x3aabce[_0x318663(0x1a0)](G['id'],{..._0x506450,'unitId':this[_0x318663(0x1c3)][_0x318663(0x1e7)]}));}['_getBlockRange'](){const _0x45e098=_0x4eda42;var _0x5ef787;return(_0x5ef787=this['_runtime'][_0x45e098(0x19d)]()['body'])==null||(_0x5ef787=_0x5ef787[_0x45e098(0x1cb)])==null?void 0x0:_0x5ef787[_0x45e098(0x186)](_0x5f57ac=>_0x5f57ac['blockId']===this[_0x45e098(0x1c3)][_0x45e098(0x181)]&&_0x5f57ac[_0x45e098(0x1ec)]===_0x45e098(0x1bd));}};function ye(_0x17e49e){const _0x4be26b=_0x4eda42;return Array[_0x4be26b(0x17b)](_0x17e49e)['map'](_0xa0a762=>_0xa0a762===_0x212422[_0x4be26b(0x1f0)]?'\x0a':_0xa0a762)[_0x4be26b(0x194)](_0x37bf1f=>_0x37bf1f!==_0x212422[_0x4be26b(0x1a4)]&&_0x37bf1f!==_0x212422[_0x4be26b(0x1ac)]&&_0x37bf1f!==_0x212422['SECTION_BREAK'])['join']('')[_0x4be26b(0x1b9)](/\n$/,'');}Object[_0x4eda42(0x191)](_0x41dd8a[_0x4eda42(0x1d1)],{'getCodes'(){const _0x321c36=_0x4eda42;var _0x433a8c,_0x552f2e;return(_0x433a8c=(_0x552f2e=this[_0x321c36(0x19e)]()[_0x321c36(0x18f)])==null||(_0x552f2e=_0x552f2e['blockRanges'])==null?void 0x0:_0x552f2e[_0x321c36(0x194)](_0x46877c=>_0x46877c[_0x321c36(0x1ec)]===_0x321c36(0x1bd))['map'](_0x3a466f=>Z(this,_0x3a466f['blockId'])))==null?[]:_0x433a8c;},'getCode'(_0x1d64fb){const _0x394716=_0x4eda42;var _0x3bb8c1;return!((_0x3bb8c1=this[_0x394716(0x19e)]()[_0x394716(0x18f)])==null||(_0x3bb8c1=_0x3bb8c1[_0x394716(0x1cb)])==null)&&_0x3bb8c1['some'](_0x14f66d=>_0x14f66d[_0x394716(0x181)]===_0x1d64fb&&_0x14f66d[_0x394716(0x1ec)]===_0x394716(0x1bd))?Z(this,_0x1d64fb):null;},'getCodeAt'(_0xd6a3b){const _0x5dee90=_0x4eda42;var _0x49a4c2;let _0x10577b=(_0x49a4c2=this[_0x5dee90(0x19e)]()[_0x5dee90(0x18f)])==null||(_0x49a4c2=_0x49a4c2[_0x5dee90(0x1cb)])==null||(_0x49a4c2=_0x49a4c2[_0x5dee90(0x186)](_0x542c54=>_0x542c54[_0x5dee90(0x1ec)]===_0x5dee90(0x1bd)&&_0x542c54['startIndex']<=_0xd6a3b&&_0xd6a3b<=_0x542c54[_0x5dee90(0x1d7)]))==null?void 0x0:_0x49a4c2[_0x5dee90(0x181)];return _0x10577b?Z(this,_0x10577b):null;},'findCodeByText'(_0x502bfd){const _0x1f2905=_0x4eda42;var _0x49aa31;return(_0x49aa31=this[_0x1f2905(0x1d4)](_0x502bfd)[0x0])==null?null:_0x49aa31;},'findCodes'(_0x5f29af){const _0x5ba801=_0x4eda42;let _0x4a3a14=typeof _0x5f29af=='string'?{'text':_0x5f29af}:_0x5f29af;return this[_0x5ba801(0x1e6)]()['filter'](_0x4f07d0=>!(_0x4a3a14['blockId']&&_0x4f07d0[_0x5ba801(0x199)]()!==_0x4a3a14[_0x5ba801(0x181)]||_0x4a3a14[_0x5ba801(0x1d3)]&&!_0x4f07d0[_0x5ba801(0x1c1)]()['includes'](_0x4a3a14[_0x5ba801(0x1d3)])));},'insertCode'(_0x1d2869={}){const _0x2505b7=_0x4eda42;var _0x4073c1,_0x470a2a;let _0x758097=(_0x4073c1=_0x1d2869[_0x2505b7(0x181)])==null?_0x2505b7(0x1eb)+Date[_0x2505b7(0x183)]():_0x4073c1;return(_0x470a2a=Q(this))!=null&&_0x470a2a[_0x2505b7(0x1a0)](ge['id'],{..._0x1d2869,'blockId':_0x758097,'unitId':this['getId']()})?Z(this,_0x758097):null;},'exitCode'(_0x2b431d){const _0x5cef3b=_0x4eda42;var _0x2652c8;return!!((_0x2652c8=Q(this))!=null&&_0x2652c8[_0x5cef3b(0x1a0)](W['id'],{'cursorOffset':_0x2b431d,'unitId':this['getId']()}));},'cancelEmptyCodeParagraph'(_0x200a38={}){const _0xe5c3e2=_0x4eda42;var _0x548cef;return!!((_0x548cef=Q(this))!=null&&_0x548cef['syncExecuteCommand'](G['id'],{..._0x200a38,'unitId':this[_0xe5c3e2(0x199)]()}));}});function Z(_0x1281d1,_0x485781){const _0x14382=_0x4eda42;let _0x45531d=$(_0x1281d1);return new X({'blockId':_0x485781,'commandService':Q(_0x1281d1),'getDocumentData':()=>_0x1281d1[_0x14382(0x19e)](),'model':_0x45531d==null?void 0x0:_0x45531d[_0x14382(0x1dc)](U),'unitId':_0x1281d1['getId']()});}function Q(_0x3a6d9f){const _0x2b9c55=_0x4eda42;var _0x88588e,_0x570f03;return(_0x88588e=_0x3a6d9f[_0x2b9c55(0x1ea)])==null?(_0x570f03=$(_0x3a6d9f))==null?void 0x0:_0x570f03[_0x2b9c55(0x1dc)](_0x4da3ce):_0x88588e;}function $(_0x2ed206){return _0x2ed206['_injector'];}export{X as FDocsCode};
1
+ const _0x5d89db=_0x1854;(function(_0x7b897a,_0x26c335){const _0x55ad36=_0x1854,_0x589cce=_0x7b897a();while(!![]){try{const _0x4292fc=-parseInt(_0x55ad36(0x183))/0x1+parseInt(_0x55ad36(0x184))/0x2*(-parseInt(_0x55ad36(0x1bf))/0x3)+parseInt(_0x55ad36(0x1bc))/0x4+parseInt(_0x55ad36(0x1d2))/0x5+parseInt(_0x55ad36(0x169))/0x6*(-parseInt(_0x55ad36(0x1ce))/0x7)+parseInt(_0x55ad36(0x1b7))/0x8+parseInt(_0x55ad36(0x1ab))/0x9;if(_0x4292fc===_0x26c335)break;else _0x589cce['push'](_0x589cce['shift']());}catch(_0x45cf00){_0x589cce['push'](_0x589cce['shift']());}}}(_0x15c7,0x9133d));import{CommandType as _0x22f4b7,DataStreamTreeTokenType as _0x180f7a,Disposable as _0x4bc668,ICommandService as _0x2afc20,IUniverInstanceService as _0x40925a,JSONX as _0x209e0e,Tools as _0x20dd72,UniverInstanceType as _0x10a714,generateRandomId as _0x29ed6a}from'@univerjs/core';import{FDocument as _0x19b331}from'@univerjs/docs-ui/facade';import{DocSelectionManagerService as _0x1206d3,RichTextEditingMutation as _0x3d459c}from'@univerjs/docs';import'@univerjs/docs-ui';import{Subject as _0xf3e6d5}from'rxjs';const p=_0x5d89db(0x1c3),m={'language':_0x5d89db(0x18f),'showLineNumbers':!0x1,'tabSize':0x4,'wrap':!0x0};function h(_0x1ec33f){return{...m,..._0x1ec33f};}function g(_0x5ea74a){const _0x87bc6c=_0x5d89db;var _0x1ef1b5;let _0x377ca0=(_0x1ef1b5=_0x5ea74a==null?void 0x0:_0x5ea74a['codes'])==null?{}:_0x1ef1b5;return{'codes':Object[_0x87bc6c(0x192)](Object[_0x87bc6c(0x1af)](_0x377ca0)['map'](([_0x177b68,_0x239938])=>[_0x177b68,h(_0x239938)]))};}function _(_0x355e4b,_0x7b7f9d,_0x194441){const _0x557168=_0x5d89db;let _0x59518b=g(_0x355e4b);return _0x59518b['codes'][_0x7b7f9d]=h({..._0x59518b[_0x557168(0x181)][_0x7b7f9d],..._0x194441}),_0x59518b;}function v(_0x392a07,_0x36f641){const _0x3eab39=_0x5d89db;let _0x4f4fb2=g(_0x392a07);return delete _0x4f4fb2[_0x3eab39(0x181)][_0x36f641],_0x4f4fb2;}const y=_0x5d89db(0x172);function b(_0x14296b){const _0x28ff2c=_0x5d89db;var _0x2833cb,_0x347dd8,_0x404e4d;let _0x41ae25=E(_0x14296b[_0x28ff2c(0x16f)]),_0x4b41df=D(_0x41ae25),_0x4c0388=ee(_0x14296b['startOffset'],_0x14296b[_0x28ff2c(0x16e)]),_0x190045=_0x4c0388?(_0x2833cb=_0x4b41df['blockRanges'])==null?void 0x0:_0x2833cb['find'](_0x4842fb=>_0x4842fb[_0x28ff2c(0x18b)]===_0x4c0388[_0x28ff2c(0x1aa)]&&_0x4842fb['endIndex']+0x1===_0x4c0388[_0x28ff2c(0x16e)]):void 0x0,{startOffset:_0x5236ac,endOffset:_0x1c60d9}=_0x190045?_0x4c0388:se(_0x4b41df,_0x14296b['startOffset'],_0x14296b[_0x28ff2c(0x16e)]),_0x436bf5=le(_0x4b41df,_0x5236ac,_0x1c60d9),_0x1dc3db=(_0x347dd8=_0x190045==null?void 0x0:_0x190045['blockId'])==null?_0x14296b[_0x28ff2c(0x1c6)]:_0x347dd8,_0x28952e=_(_0x14296b[_0x28ff2c(0x1ca)],_0x1dc3db,{...m,..._0x14296b[_0x28ff2c(0x171)]});if(_0x190045)return _0x190045[_0x28ff2c(0x1a5)]=p,x(_0x4b41df,_0x5236ac,_0x1c60d9),w(_0x4b41df,_0x5236ac,_0x1c60d9,_0x436bf5),{'nextDocumentData':_0x41ae25,'nextMetadata':_0x28952e,'cursorOffset':_0x5236ac+0x1};if(_0x5236ac===_0x1c60d9){let _0x3f03e0=''+_0x180f7a[_0x28ff2c(0x16a)]+_0x180f7a[_0x28ff2c(0x17c)]+_0x180f7a[_0x28ff2c(0x1ba)];return j(_0x4b41df,_0x5236ac,_0x3f03e0,{'paragraphs':[{'startIndex':0x1,'paragraphStyle':C(!0x0,!0x0,_0x436bf5)}],'blockRanges':[{'blockId':_0x1dc3db,'blockType':p,'startIndex':0x0,'endIndex':_0x3f03e0[_0x28ff2c(0x1df)]-0x1}]}),{'nextDocumentData':_0x41ae25,'nextMetadata':_0x28952e,'cursorOffset':_0x5236ac+0x1};}return j(_0x4b41df,_0x1c60d9,_0x180f7a[_0x28ff2c(0x1ba)]),j(_0x4b41df,_0x5236ac,_0x180f7a['BLOCK_START']),w(_0x4b41df,_0x5236ac,_0x1c60d9+0x1,_0x436bf5),_0x4b41df[_0x28ff2c(0x1d1)]=[...(_0x404e4d=_0x4b41df[_0x28ff2c(0x1d1)])==null?[]:_0x404e4d,{'blockId':_0x1dc3db,'blockType':p,'startIndex':_0x5236ac,'endIndex':_0x1c60d9+0x1}][_0x28ff2c(0x1b8)]((_0x349f4f,_0x5a5628)=>_0x349f4f[_0x28ff2c(0x18b)]-_0x5a5628[_0x28ff2c(0x18b)]),{'nextDocumentData':_0x41ae25,'nextMetadata':_0x28952e,'cursorOffset':_0x5236ac+0x1};}function x(_0x3bc76e,_0x438d29,_0x5927f0){const _0x3ae9db=_0x5d89db;var _0x48d2d6;((_0x48d2d6=_0x3bc76e['paragraphs'])==null?[]:_0x48d2d6)[_0x3ae9db(0x17f)](_0x207d22=>_0x207d22[_0x3ae9db(0x18b)]>_0x438d29&&_0x207d22['startIndex']<_0x5927f0)['forEach'](_0x343e72=>{const _0x42712e=_0x3ae9db;var _0xe98acd;let _0x5da6d6={...(_0xe98acd=_0x343e72[_0x42712e(0x19f)])==null?{}:_0xe98acd};delete _0x5da6d6['spaceAbove'],delete _0x5da6d6[_0x42712e(0x1b3)],_0x343e72[_0x42712e(0x19f)]=_0x5da6d6;});}function ee(_0x2428ba,_0x59cb11){const _0x2d6b0a=_0x5d89db;return _0x2428ba==null||_0x59cb11==null||_0x2428ba===_0x59cb11?null:{'startOffset':Math['min'](_0x2428ba,_0x59cb11),'endOffset':Math[_0x2d6b0a(0x1b1)](_0x2428ba,_0x59cb11)};}function te(_0x123960){const _0x3e1eb0=_0x5d89db;return{'nextDocumentData':E(_0x123960['documentData']),'nextMetadata':_(_0x123960[_0x3e1eb0(0x1ca)],_0x123960['blockId'],_0x123960[_0x3e1eb0(0x171)]),'cursorOffset':0x0};}function ne(_0x3f1747){const _0x4b4503=_0x5d89db;var _0x436565,_0x30ddc3;let _0x1ac352=E(_0x3f1747[_0x4b4503(0x16f)]),_0x18951f=D(_0x1ac352),_0x1baad2=S(_0x18951f,_0x3f1747[_0x4b4503(0x17b)]);if(!_0x1baad2)return null;let _0xfbf700=T(_0x18951f,_0x1baad2),_0x474e31=_0xfbf700[_0xfbf700[_0x4b4503(0x1df)]-0x1];if(!_0x474e31||!oe(_0x18951f,_0x1baad2,_0x474e31)||_0x3f1747[_0x4b4503(0x17b)]<_0x474e31[_0x4b4503(0x18b)])return null;let _0x552c99=k(_0x18951f,_0x1baad2,_0x474e31);if(_0x552c99>=_0x1baad2[_0x4b4503(0x1e0)])return null;_0x18951f['dataStream']=[_0x18951f['dataStream']['slice'](0x0,_0x552c99),_0x180f7a['BLOCK_END'],_0x18951f[_0x4b4503(0x167)][_0x4b4503(0x19c)](_0x552c99,_0x1baad2['endIndex']),_0x18951f[_0x4b4503(0x167)]['slice'](_0x1baad2[_0x4b4503(0x1e0)]+0x1)]['join'](''),z(_0x18951f[_0x4b4503(0x1cd)],_0x552c99,_0x1baad2[_0x4b4503(0x1e0)],0x1),z(_0x18951f[_0x4b4503(0x1d9)],_0x552c99,_0x1baad2[_0x4b4503(0x1e0)],0x1),z(_0x18951f['customBlocks'],_0x552c99,_0x1baad2['endIndex'],0x1),pe(_0x18951f[_0x4b4503(0x193)],_0x552c99,_0x1baad2[_0x4b4503(0x1e0)],0x1),B(_0x18951f[_0x4b4503(0x1b9)],_0x552c99,_0x1baad2[_0x4b4503(0x1e0)],0x1),B(_0x18951f[_0x4b4503(0x1b6)],_0x552c99,_0x1baad2[_0x4b4503(0x1e0)],0x1),B(_0x18951f[_0x4b4503(0x186)],_0x552c99,_0x1baad2[_0x4b4503(0x1e0)],0x1),(_0x436565=_0x18951f[_0x4b4503(0x1d1)])==null||_0x436565[_0x4b4503(0x1ae)](_0x53ef3f=>{const _0x2e6b54=_0x4b4503;_0x53ef3f===_0x1baad2||_0x53ef3f['blockId']===_0x1baad2[_0x2e6b54(0x1c6)]?_0x53ef3f[_0x2e6b54(0x1e0)]=_0x552c99:_0x53ef3f['startIndex']>=_0x552c99&&_0x53ef3f[_0x2e6b54(0x18b)]<_0x1baad2[_0x2e6b54(0x1e0)]&&(_0x53ef3f['startIndex']+=0x1,_0x53ef3f['endIndex']+=0x1);});let _0x1e928c=T(_0x18951f,{..._0x1baad2,'endIndex':_0x552c99});_0x1e928c[_0x4b4503(0x1ae)]((_0x4b8e10,_0x1fb964)=>{const _0xf8cec9=_0x4b4503;var _0x16ed39;_0x4b8e10[_0xf8cec9(0x19f)]={...(_0x16ed39=_0x4b8e10['paragraphStyle'])==null?{}:_0x16ed39,...C(_0x1fb964===0x0,_0x1fb964===_0x1e928c[_0xf8cec9(0x1df)]-0x1)};});let _0x30044a=(_0x30ddc3=_0x18951f[_0x4b4503(0x1cd)])==null?void 0x0:_0x30ddc3['find'](_0x425d4f=>_0x425d4f[_0x4b4503(0x18b)]===_0x552c99+0x1);return _0x30044a&&(_0x30044a[_0x4b4503(0x19f)]=ae(_0x30044a['paragraphStyle'])),{'nextDocumentData':_0x1ac352,'cursorOffset':_0x552c99+0x1};}function re(_0x2fa921){let _0x1a02c2=E(_0x2fa921['documentData']),_0x59944c=D(_0x1a02c2),_0x427edd=S(_0x59944c,_0x2fa921['cursorOffset']);return _0x427edd&&ie(_0x1a02c2,_0x59944c,_0x427edd,_0x2fa921['cursorOffset'],_0x2fa921['paragraphStartIndex'])||null;}function ie(_0x1055e6,_0x2279d3,_0x2e0fe6,_0x28f00f,_0x2e9eff){const _0x51ea55=_0x5d89db;let _0x52e1ef=de(_0x2279d3,_0x2e0fe6,_0x28f00f,_0x2e9eff);if(!_0x52e1ef)return null;let _0x3a65a9=_0x52e1ef['endTokenOffset']-0x1;return M(_0x2279d3,_0x52e1ef[_0x51ea55(0x1d4)][_0x51ea55(0x18b)],_0x52e1ef[_0x51ea55(0x1d4)][_0x51ea55(0x18b)]+0x1),{'nextDocumentData':_0x1055e6,'cursorOffset':_0x3a65a9};}function S(_0x488eeb,_0x27eda6){const _0x58c2df=_0x5d89db;var _0x5db9ee;return(_0x5db9ee=_0x488eeb[_0x58c2df(0x1d1)])==null?void 0x0:_0x5db9ee['find'](_0x5246c9=>{const _0x2db0f6=_0x58c2df;let _0x3438e5=A(_0x488eeb,_0x5246c9);return _0x5246c9[_0x2db0f6(0x1a5)]===_0x2db0f6(0x1c3)&&_0x5246c9[_0x2db0f6(0x18b)]<=_0x27eda6&&_0x27eda6<=_0x3438e5+0x2;});}function C(_0x464941,_0xc196a9,_0x32c1c9=!0x1){return{'indentEnd':{'v':0x14},'indentStart':{'v':0x14},..._0x464941&&_0x32c1c9?{'spaceAbove':{'v':0x8}}:{},'textStyle':{'ff':y,'fs':0xc}};}function w(_0x3ae6ec,_0xbce770,_0x274b60,_0x252afb=!0x1){const _0x2e95dc=_0x5d89db;var _0x20cab8;let _0x32cfbd=((_0x20cab8=_0x3ae6ec[_0x2e95dc(0x1cd)])==null?[]:_0x20cab8)['filter'](_0x309b31=>_0x309b31[_0x2e95dc(0x18b)]>_0xbce770&&_0x309b31[_0x2e95dc(0x18b)]<_0x274b60);_0x32cfbd[_0x2e95dc(0x1ae)]((_0x5047a3,_0x4fc965)=>{const _0x1dfc56=_0x2e95dc;var _0x2598f5;_0x5047a3['paragraphStyle']={...(_0x2598f5=_0x5047a3[_0x1dfc56(0x19f)])==null?{}:_0x2598f5,...C(_0x4fc965===0x0,_0x4fc965===_0x32cfbd[_0x1dfc56(0x1df)]-0x1,_0x252afb)};});}function ae(_0x9c423d){const _0x45f1c7=_0x5d89db;var _0x3698ba,_0x55becb;let _0x1b8e8d={..._0x9c423d==null?{}:_0x9c423d};return delete _0x1b8e8d[_0x45f1c7(0x16c)],delete _0x1b8e8d[_0x45f1c7(0x1ad)],delete _0x1b8e8d[_0x45f1c7(0x1bb)],delete _0x1b8e8d['spaceBelow'],((_0x3698ba=_0x1b8e8d['textStyle'])==null?void 0x0:_0x3698ba['ff'])===y&&((_0x55becb=_0x1b8e8d[_0x45f1c7(0x196)])==null?void 0x0:_0x55becb['fs'])===0xc&&delete _0x1b8e8d[_0x45f1c7(0x196)],_0x1b8e8d;}function T(_0x7384b0,_0x56f1da){const _0xe053af=_0x5d89db;var _0x704972;let _0x9ad8b7=A(_0x7384b0,_0x56f1da);return((_0x704972=_0x7384b0['paragraphs'])==null?[]:_0x704972)[_0xe053af(0x17f)](_0x2cab86=>_0x2cab86[_0xe053af(0x18b)]>_0x56f1da[_0xe053af(0x18b)]&&_0x2cab86[_0xe053af(0x18b)]<_0x9ad8b7);}function oe(_0x263e05,_0x58c442,_0x572df9){const _0x3e95bd=_0x5d89db;let _0x33beef=k(_0x263e05,_0x58c442,_0x572df9),_0x297e16=_0x263e05[_0x3e95bd(0x167)][_0x3e95bd(0x19c)](_0x33beef,_0x572df9[_0x3e95bd(0x18b)]);return Array['from'](_0x297e16)[_0x3e95bd(0x19e)](_0x27c5a4=>_0x27c5a4===_0x180f7a[_0x3e95bd(0x16a)]||_0x27c5a4===_0x180f7a[_0x3e95bd(0x1ba)]);}function E(_0x29845f){const _0x4316e8=_0x5d89db;return _0x20dd72[_0x4316e8(0x1b0)](_0x29845f);}function D(_0x58e932){if(!_0x58e932['body'])throw Error('Document\x20body\x20is\x20required');return _0x58e932['body'];}function se(_0x36f4e8,_0x3bd5d6,_0x25166a){const _0x235829=_0x5d89db;if(_0x3bd5d6==null||_0x25166a==null){let _0x25fce0=ce(_0x36f4e8);return{'startOffset':_0x25fce0,'endOffset':_0x25fce0};}let _0x4ef7a4=Math['min'](_0x3bd5d6,_0x25166a),_0x46f537=Math[_0x235829(0x1b1)](_0x3bd5d6,_0x25166a);return _0x4ef7a4===_0x46f537?{'startOffset':_0x4ef7a4,'endOffset':_0x4ef7a4}:ue(_0x36f4e8,_0x4ef7a4,_0x46f537);}function ce(_0x496e6a){const _0x37ea06=_0x5d89db;return _0x496e6a[_0x37ea06(0x167)]['endsWith'](_0x180f7a[_0x37ea06(0x1d5)])?Math[_0x37ea06(0x1b1)](0x0,_0x496e6a[_0x37ea06(0x167)]['length']-0x1):_0x496e6a[_0x37ea06(0x167)][_0x37ea06(0x1df)];}function le(_0x5726fc,_0xc40240,_0x1eb7dd){const _0x529f64=_0x5d89db;var _0x53d910;let _0x140a9b=Math[_0x529f64(0x180)](_0xc40240,_0x1eb7dd),_0x393ebb=Math['max'](_0xc40240,_0x1eb7dd);return!!((_0x53d910=_0x5726fc['tables'])!=null&&_0x53d910[_0x529f64(0x1ac)](_0x526107=>_0x140a9b>_0x526107[_0x529f64(0x18b)]&&_0x140a9b<_0x526107['endIndex']||_0x393ebb>_0x526107['startIndex']&&_0x393ebb<_0x526107[_0x529f64(0x1e0)]||_0x140a9b<=_0x526107['startIndex']&&_0x393ebb>=_0x526107[_0x529f64(0x1e0)]));}function ue(_0x4626b9,_0x1d6f01,_0x3dc196){const _0x2da2f8=_0x5d89db;var _0x154a6f,_0x2f341b;let _0x4ffbed=[...(_0x154a6f=_0x4626b9[_0x2da2f8(0x1cd)])==null?[]:_0x154a6f][_0x2da2f8(0x1b8)]((_0x3f90de,_0x959ee1)=>_0x3f90de[_0x2da2f8(0x18b)]-_0x959ee1[_0x2da2f8(0x18b)]),_0x12ab00=_0x4ffbed[_0x2da2f8(0x17a)]((_0x2c6f5f,_0x5538a6)=>(_0x5538a6===0x0?0x0:_0x4ffbed[_0x5538a6-0x1][_0x2da2f8(0x18b)]+0x1)<=_0x1d6f01&&_0x1d6f01<=_0x2c6f5f['startIndex']),_0x502b5b=(_0x2f341b=_0x4ffbed[_0x2da2f8(0x17a)](_0x3dd08e=>_0x3dd08e[_0x2da2f8(0x18b)]>=_0x3dc196-0x1))==null?_0x4ffbed[_0x4ffbed['length']-0x1]:_0x2f341b;return{'startOffset':_0x12ab00?O(_0x4ffbed,_0x12ab00):_0x1d6f01,'endOffset':_0x502b5b?_0x502b5b[_0x2da2f8(0x18b)]+0x1:_0x3dc196};}function O(_0x52bb99,_0x257b34){const _0x4ba524=_0x5d89db;let _0x296f7d=_0x52bb99[_0x4ba524(0x18e)](_0x257b34);return _0x296f7d>0x0?_0x52bb99[_0x296f7d-0x1][_0x4ba524(0x18b)]+0x1:0x0;}function k(_0x40997d,_0x368fc9,_0x2004ca){const _0xdc78f1=_0x5d89db;var _0x447af6;return Math[_0xdc78f1(0x1b1)](O((_0x447af6=_0x40997d[_0xdc78f1(0x1cd)])==null?[]:_0x447af6,_0x2004ca),_0x368fc9[_0xdc78f1(0x18b)]+0x1);}function A(_0x31a5f1,_0x3837ff){const _0x4ae2a5=_0x5d89db;return _0x31a5f1[_0x4ae2a5(0x167)][_0x3837ff['endIndex']]===_0x180f7a['BLOCK_END']?_0x3837ff[_0x4ae2a5(0x1e0)]:_0x31a5f1[_0x4ae2a5(0x167)][_0x3837ff[_0x4ae2a5(0x1e0)]+0x1]===_0x180f7a[_0x4ae2a5(0x1ba)]?_0x3837ff[_0x4ae2a5(0x1e0)]+0x1:_0x3837ff[_0x4ae2a5(0x1e0)];}function de(_0x406db7,_0xe8b75b,_0x5d3cc7,_0x1b8be9){const _0x2b6f7c=_0x5d89db;var _0x4603f1,_0x311b17;let _0x33b84d=A(_0x406db7,_0xe8b75b),_0x2f0eb3=((_0x4603f1=_0x406db7[_0x2b6f7c(0x1cd)])==null?[]:_0x4603f1)[_0x2b6f7c(0x17a)](_0x213bf2=>_0x213bf2['startIndex']===_0x33b84d+0x1);if(!_0x2f0eb3||_0x1b8be9!=null&&_0x2f0eb3[_0x2b6f7c(0x18b)]!==_0x1b8be9||_0x5d3cc7<_0x33b84d||_0x5d3cc7>_0x2f0eb3[_0x2b6f7c(0x18b)]+0x1||_0x406db7['dataStream'][_0x2f0eb3['startIndex']]!==_0x180f7a['PARAGRAPH'])return null;let _0x5ded07=O((_0x311b17=_0x406db7[_0x2b6f7c(0x1cd)])==null?[]:_0x311b17,_0x2f0eb3),_0x1f6e0b=_0x406db7[_0x2b6f7c(0x167)][_0x2b6f7c(0x19c)](_0x5ded07,_0x2f0eb3[_0x2b6f7c(0x18b)]);return Array[_0x2b6f7c(0x19b)](_0x1f6e0b)[_0x2b6f7c(0x19e)](_0x496223=>_0x496223===_0x180f7a['BLOCK_END'])?{'paragraph':_0x2f0eb3,'endTokenOffset':_0x33b84d}:null;}function j(_0x148b30,_0x272251,_0x3ecb02,_0x3c2dbd={}){const _0x5d6590=_0x5d89db;var _0x59270d,_0x406a2a;if(_0x3ecb02){if(_0x148b30[_0x5d6590(0x167)]=''+_0x148b30['dataStream'][_0x5d6590(0x19c)](0x0,_0x272251)+_0x3ecb02+_0x148b30[_0x5d6590(0x167)][_0x5d6590(0x19c)](_0x272251),N(_0x148b30,_0x272251,_0x3ecb02[_0x5d6590(0x1df)]),(_0x59270d=_0x3c2dbd[_0x5d6590(0x1cd)])!=null&&_0x59270d['length']){var _0x2d1b30;_0x148b30[_0x5d6590(0x1cd)]=[...(_0x2d1b30=_0x148b30[_0x5d6590(0x1cd)])==null?[]:_0x2d1b30,..._0x3c2dbd[_0x5d6590(0x1cd)]['map'](_0x5745c0=>({..._0x5745c0,'startIndex':_0x5745c0[_0x5d6590(0x18b)]+_0x272251}))][_0x5d6590(0x1b8)]((_0x1a2b43,_0x5776be)=>_0x1a2b43[_0x5d6590(0x18b)]-_0x5776be[_0x5d6590(0x18b)]);}if((_0x406a2a=_0x3c2dbd[_0x5d6590(0x1d1)])!=null&&_0x406a2a[_0x5d6590(0x1df)]){var _0x40dd97;_0x148b30['blockRanges']=[...(_0x40dd97=_0x148b30[_0x5d6590(0x1d1)])==null?[]:_0x40dd97,..._0x3c2dbd[_0x5d6590(0x1d1)][_0x5d6590(0x197)](_0x46d1ae=>({..._0x46d1ae,'startIndex':_0x46d1ae['startIndex']+_0x272251,'endIndex':_0x46d1ae['endIndex']+_0x272251}))][_0x5d6590(0x1b8)]((_0xdb31dd,_0x478c6c)=>_0xdb31dd[_0x5d6590(0x18b)]-_0x478c6c[_0x5d6590(0x18b)]);}}}function M(_0x1ec24b,_0x1e247d,_0x248914){const _0x2b455c=_0x5d89db;let _0x12b852=_0x248914-_0x1e247d;_0x1ec24b[_0x2b455c(0x167)]=''+_0x1ec24b[_0x2b455c(0x167)][_0x2b455c(0x19c)](0x0,_0x1e247d)+_0x1ec24b[_0x2b455c(0x167)]['slice'](_0x248914),P(_0x1ec24b,_0x1e247d,_0x12b852);}function N(_0x63c3d1,_0x4a1b30,_0x4527a5){const _0x1731c2=_0x5d89db;_0x63c3d1[_0x1731c2(0x1cd)]=F(_0x63c3d1[_0x1731c2(0x1cd)],_0x4a1b30,_0x4527a5),_0x63c3d1[_0x1731c2(0x1d9)]=F(_0x63c3d1[_0x1731c2(0x1d9)],_0x4a1b30,_0x4527a5),_0x63c3d1[_0x1731c2(0x1cf)]=F(_0x63c3d1[_0x1731c2(0x1cf)],_0x4a1b30,_0x4527a5),_0x63c3d1[_0x1731c2(0x193)]=fe(_0x63c3d1[_0x1731c2(0x193)],_0x4a1b30,_0x4527a5),_0x63c3d1[_0x1731c2(0x1b9)]=L(_0x63c3d1[_0x1731c2(0x1b9)],_0x4a1b30,_0x4527a5),_0x63c3d1[_0x1731c2(0x1b6)]=L(_0x63c3d1[_0x1731c2(0x1b6)],_0x4a1b30,_0x4527a5),_0x63c3d1[_0x1731c2(0x186)]=L(_0x63c3d1[_0x1731c2(0x186)],_0x4a1b30,_0x4527a5),_0x63c3d1['blockRanges']=L(_0x63c3d1[_0x1731c2(0x1d1)],_0x4a1b30,_0x4527a5);}function P(_0x24fcf5,_0x2093a1,_0x34c49c){const _0x461e01=_0x5d89db;var _0x4909de,_0x341484;_0x24fcf5[_0x461e01(0x1cd)]=I(_0x24fcf5['paragraphs'],_0x2093a1,_0x34c49c),_0x24fcf5[_0x461e01(0x1d9)]=I(_0x24fcf5['sectionBreaks'],_0x2093a1,_0x34c49c),_0x24fcf5[_0x461e01(0x1cf)]=I(_0x24fcf5[_0x461e01(0x1cf)],_0x2093a1,_0x34c49c),_0x24fcf5['textRuns']=(_0x4909de=R((_0x341484=_0x24fcf5[_0x461e01(0x193)])==null?void 0x0:_0x341484[_0x461e01(0x197)](_0x26a58f=>({..._0x26a58f,'startIndex':_0x26a58f['st'],'endIndex':_0x26a58f['ed']})),_0x2093a1,_0x34c49c))==null?void 0x0:_0x4909de[_0x461e01(0x197)](_0x11977a=>{let {startIndex:_0x3fc5d7,endIndex:_0x40b783,..._0x36ed1d}=_0x11977a;return{..._0x36ed1d,'st':_0x3fc5d7,'ed':_0x40b783};}),_0x24fcf5[_0x461e01(0x1b9)]=R(_0x24fcf5[_0x461e01(0x1b9)],_0x2093a1,_0x34c49c),_0x24fcf5[_0x461e01(0x1b6)]=R(_0x24fcf5[_0x461e01(0x1b6)],_0x2093a1,_0x34c49c),_0x24fcf5[_0x461e01(0x186)]=R(_0x24fcf5[_0x461e01(0x186)],_0x2093a1,_0x34c49c),_0x24fcf5[_0x461e01(0x1d1)]=R(_0x24fcf5[_0x461e01(0x1d1)],_0x2093a1,_0x34c49c);}function F(_0x228944,_0x4e0696,_0x7d41f5){const _0x4df949=_0x5d89db;return _0x228944==null?void 0x0:_0x228944['map'](_0x2a62a1=>_0x2a62a1['startIndex']>=_0x4e0696?{..._0x2a62a1,'startIndex':_0x2a62a1[_0x4df949(0x18b)]+_0x7d41f5}:_0x2a62a1);}function I(_0x40bfcd,_0x15617a,_0x3d6e6d){const _0x5b4e60=_0x5d89db;let _0xf7074d=_0x15617a+_0x3d6e6d;return _0x40bfcd==null?void 0x0:_0x40bfcd[_0x5b4e60(0x197)](_0x28f8b2=>_0x28f8b2[_0x5b4e60(0x18b)]>=_0x15617a&&_0x28f8b2[_0x5b4e60(0x18b)]<_0xf7074d?null:_0x28f8b2[_0x5b4e60(0x18b)]>=_0xf7074d?{..._0x28f8b2,'startIndex':_0x28f8b2[_0x5b4e60(0x18b)]-_0x3d6e6d}:_0x28f8b2)[_0x5b4e60(0x17f)](_0x3e7c4e=>_0x3e7c4e!=null);}function fe(_0x2aa63b,_0x1cd250,_0x2f4997){const _0x5b0840=_0x5d89db;return _0x2aa63b==null?void 0x0:_0x2aa63b[_0x5b0840(0x197)](_0x5ad183=>_0x5ad183['st']>=_0x1cd250?{..._0x5ad183,'st':_0x5ad183['st']+_0x2f4997,'ed':_0x5ad183['ed']+_0x2f4997}:_0x5ad183['ed']>_0x1cd250?{..._0x5ad183,'ed':_0x5ad183['ed']+_0x2f4997}:_0x5ad183);}function L(_0x2c077c,_0x2fa6f9,_0x516a1e){const _0x1b3190=_0x5d89db;return _0x2c077c==null?void 0x0:_0x2c077c['map'](_0x232066=>_0x232066[_0x1b3190(0x18b)]>=_0x2fa6f9?{..._0x232066,'startIndex':_0x232066['startIndex']+_0x516a1e,'endIndex':_0x232066[_0x1b3190(0x1e0)]+_0x516a1e}:_0x232066[_0x1b3190(0x1e0)]>=_0x2fa6f9?{..._0x232066,'endIndex':_0x232066['endIndex']+_0x516a1e}:_0x232066);}function R(_0x48a13d,_0x3662ff,_0x2cba16){const _0x22ac11=_0x5d89db;let _0x2b90e5=_0x3662ff+_0x2cba16;return _0x48a13d==null?void 0x0:_0x48a13d['map'](_0x264c7b=>_0x264c7b[_0x22ac11(0x18b)]>=_0x3662ff&&_0x264c7b[_0x22ac11(0x1e0)]<_0x2b90e5?null:_0x264c7b[_0x22ac11(0x18b)]>=_0x2b90e5?{..._0x264c7b,'startIndex':_0x264c7b['startIndex']-_0x2cba16,'endIndex':_0x264c7b[_0x22ac11(0x1e0)]-_0x2cba16}:_0x264c7b[_0x22ac11(0x1e0)]>=_0x3662ff?{..._0x264c7b,'startIndex':_0x264c7b['startIndex']<_0x3662ff?_0x264c7b[_0x22ac11(0x18b)]:_0x3662ff,'endIndex':Math['max'](_0x3662ff,_0x264c7b[_0x22ac11(0x1e0)]-_0x2cba16)}:_0x264c7b)[_0x22ac11(0x17f)](_0x386b00=>_0x386b00!=null);}function z(_0x551695,_0xb6dc78,_0x58d401,_0x511853){const _0x4e06b7=_0x5d89db;_0x551695==null||_0x551695[_0x4e06b7(0x1ae)](_0x37764=>{const _0x57ba2c=_0x4e06b7;_0x37764['startIndex']>=_0xb6dc78&&_0x37764[_0x57ba2c(0x18b)]<_0x58d401&&(_0x37764['startIndex']+=_0x511853);});}function pe(_0x168cdc,_0x29198a,_0x22ceec,_0x5585f0){_0x168cdc==null||_0x168cdc['forEach'](_0x4520bc=>{_0x4520bc['st']>=_0x29198a&&_0x4520bc['st']<_0x22ceec?(_0x4520bc['st']+=_0x5585f0,_0x4520bc['ed']+=_0x5585f0):_0x4520bc['ed']>_0x29198a&&_0x4520bc['ed']<_0x22ceec&&(_0x4520bc['ed']+=_0x5585f0);});}function B(_0x523c77,_0x318ef9,_0x4657bb,_0x4f32a3){const _0x59986d=_0x5d89db;_0x523c77==null||_0x523c77[_0x59986d(0x1ae)](_0x13d3e6=>{const _0x3c8de1=_0x59986d;_0x13d3e6[_0x3c8de1(0x18b)]>=_0x318ef9&&_0x13d3e6[_0x3c8de1(0x18b)]<_0x4657bb?(_0x13d3e6[_0x3c8de1(0x18b)]+=_0x4f32a3,_0x13d3e6['endIndex']+=_0x4f32a3):_0x13d3e6[_0x3c8de1(0x1e0)]>_0x318ef9&&_0x13d3e6[_0x3c8de1(0x1e0)]<_0x4657bb&&(_0x13d3e6[_0x3c8de1(0x1e0)]+=_0x4f32a3);});}function _0x15c7(){const _0x46d774=['sort','tables','BLOCK_END','spaceAbove','104408iUUFUv','complete','docs-code.command.insert','1750191DsIkZw','_runtime','compose','getUnitId','code','next','reduce','blockId','syncExecuteCommand','dispose','docs-code.command.exit','metadata','UNIVER_DOC','removeUnit','paragraphs','63aJTywD','customBlocks','join','blockRanges','2319365sUToex','string','paragraph','SECTION_BREAK','COMMAND','cancelEmptyParagraph','text','sectionBreaks','getId','getTextRanges','replace','getDocumentData','_getBlockRange','length','endIndex','dataStream','commandService','545112IMeicc','BLOCK_START','getCodeConfig','indentEnd','delete','endOffset','documentData','getConfig','config','monospace','getSnapshot','now','docs-code.command.update','getText','getRange','body','function','find','cursorOffset','PARAGRAPH','nextMetadata','clear','filter','min','codes','object','337124KZSZGK','4eFxccj','includes','customDecorations','get','getCurrentUnitOfType','toPrimitive','call','startIndex','_resources','serialize','indexOf','javascript','docs-code.command.cancel-empty-paragraph','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','fromEntries','textRuns','previousDocumentData','paragraphStartIndex','textStyle','map','prototype','exit','model','from','slice','_change$','every','paragraphStyle','_commandService','assign','unitId','_injector','nextDocumentData','blockType','describe','set','setCodeConfig','iterator','startOffset','11645280uUTYsW','some','indentStart','forEach','entries','deepClone','max','getCodes','spaceBelow','updateConfig','deserialize','customRanges','9059520AltEjz'];_0x15c7=function(){return _0x46d774;};return _0x15c7();}function V(_0x5cae6c){'@babel/helpers - typeof';const _0x2d8f5b=_0x5d89db;return V=typeof Symbol==_0x2d8f5b(0x179)&&typeof Symbol[_0x2d8f5b(0x1a9)]=='symbol'?function(_0x338cab){return typeof _0x338cab;}:function(_0x11fad8){const _0x374883=_0x2d8f5b;return _0x11fad8&&typeof Symbol==_0x374883(0x179)&&_0x11fad8['constructor']===Symbol&&_0x11fad8!==Symbol[_0x374883(0x198)]?'symbol':typeof _0x11fad8;},V(_0x5cae6c);}function me(_0xfde3a9,_0x4297e4){const _0x46d0ee=_0x5d89db;if(V(_0xfde3a9)!=_0x46d0ee(0x182)||!_0xfde3a9)return _0xfde3a9;var _0x4bbc02=_0xfde3a9[Symbol[_0x46d0ee(0x189)]];if(_0x4bbc02!==void 0x0){var _0x525cf0=_0x4bbc02[_0x46d0ee(0x18a)](_0xfde3a9,_0x4297e4||'default');if(V(_0x525cf0)!=_0x46d0ee(0x182))return _0x525cf0;throw TypeError(_0x46d0ee(0x191));}return(_0x4297e4===_0x46d0ee(0x1d3)?String:Number)(_0xfde3a9);}function he(_0x2064ea){const _0x4b8115=_0x5d89db;var _0x1ed15f=me(_0x2064ea,_0x4b8115(0x1d3));return V(_0x1ed15f)=='symbol'?_0x1ed15f:_0x1ed15f+'';}function H(_0xe6d4b6,_0x1f3318,_0x35e827){return(_0x1f3318=he(_0x1f3318))in _0xe6d4b6?Object['defineProperty'](_0xe6d4b6,_0x1f3318,{'value':_0x35e827,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0xe6d4b6[_0x1f3318]=_0x35e827,_0xe6d4b6;}var U=class extends _0x4bc668{constructor(..._0x8836a6){const _0x578043=_0x5d89db;super(..._0x8836a6),H(this,_0x578043(0x18c),new Map()),H(this,_0x578043(0x19d),new _0xf3e6d5()),H(this,'change$',this[_0x578043(0x19d)]['asObservable']());}['getCodeConfig'](_0xa00113,_0x473da4){const _0x2e8ac5=_0x5d89db;return g(this['_resources'][_0x2e8ac5(0x187)](_0xa00113))['codes'][_0x473da4];}[_0x5d89db(0x1a8)](_0x302cc3,_0x735714,_0x191b94){const _0x517a82=_0x5d89db;this['_setResource'](_0x302cc3,_0x735714,_(this['_resources'][_0x517a82(0x187)](_0x302cc3),_0x735714,_0x191b94));}['removeCode'](_0x357037,_0x288e2a){const _0x195484=_0x5d89db;this['_setResource'](_0x357037,_0x288e2a,v(this[_0x195484(0x18c)][_0x195484(0x187)](_0x357037),_0x288e2a));}['serialize'](_0x55f8a2){const _0x4538d4=_0x5d89db;return g(this[_0x4538d4(0x18c)][_0x4538d4(0x187)](_0x55f8a2));}[_0x5d89db(0x1b5)](_0x6848d0,_0x4d0cc7){const _0x486d05=_0x5d89db;this[_0x486d05(0x18c)][_0x486d05(0x1a7)](_0x6848d0,g(_0x4d0cc7)),this[_0x486d05(0x19d)][_0x486d05(0x1c4)]({'unitId':_0x6848d0});}[_0x5d89db(0x1cc)](_0x2664f3){const _0x265885=_0x5d89db;this[_0x265885(0x18c)][_0x265885(0x16d)](_0x2664f3),this[_0x265885(0x19d)][_0x265885(0x1c4)]({'unitId':_0x2664f3});}[_0x5d89db(0x1c8)](){const _0x36d107=_0x5d89db;super[_0x36d107(0x1c8)](),this[_0x36d107(0x18c)][_0x36d107(0x17e)](),this['_change$'][_0x36d107(0x1bd)]();}['_setResource'](_0x50b617,_0x5c9e94,_0xfae61e){const _0x569e5b=_0x5d89db;this[_0x569e5b(0x18c)][_0x569e5b(0x1a7)](_0x50b617,_0xfae61e),this[_0x569e5b(0x19d)][_0x569e5b(0x1c4)]({'unitId':_0x50b617,'blockId':_0x5c9e94});}};_0x22f4b7[_0x5d89db(0x1d6)],_0x22f4b7[_0x5d89db(0x1d6)];const ge={'id':_0x5d89db(0x1be),'type':_0x22f4b7['COMMAND'],'handler':(_0x54956a,_0x1c7865)=>{const _0x716ed4=_0x5d89db;var _0x13aa30,_0xd95464,_0xc946fa;let _0x2595ae=K(_0x54956a,_0x1c7865==null?void 0x0:_0x1c7865[_0x716ed4(0x1a2)]);if(!_0x2595ae)return!0x1;let _0x3b1199=q(_0x54956a),_0x4314e0=b({'blockId':(_0x13aa30=_0x1c7865==null?void 0x0:_0x1c7865[_0x716ed4(0x1c6)])==null?_0x29ed6a(0x6):_0x13aa30,'config':_0x1c7865==null?void 0x0:_0x1c7865[_0x716ed4(0x171)],'documentData':_0x2595ae['previousDocumentData'],'endOffset':(_0xd95464=_0x1c7865==null?void 0x0:_0x1c7865['endOffset'])==null?_0x3b1199==null?void 0x0:_0x3b1199[_0x716ed4(0x16e)]:_0xd95464,'metadata':_0x2595ae[_0x716ed4(0x19a)][_0x716ed4(0x18d)](_0x2595ae[_0x716ed4(0x1a2)]),'startOffset':(_0xc946fa=_0x1c7865==null?void 0x0:_0x1c7865[_0x716ed4(0x1aa)])==null?_0x3b1199==null?void 0x0:_0x3b1199['startOffset']:_0xc946fa}),_0x351938=Y(_0x2595ae[_0x716ed4(0x168)],_0x2595ae[_0x716ed4(0x1a2)],_0x2595ae[_0x716ed4(0x194)],_0x4314e0[_0x716ed4(0x1a4)],_0x4314e0[_0x716ed4(0x17b)]);return _0x351938&&_0x4314e0['nextMetadata']&&_0x2595ae[_0x716ed4(0x19a)][_0x716ed4(0x1b5)](_0x2595ae[_0x716ed4(0x1a2)],_0x4314e0[_0x716ed4(0x17d)]),_0x351938;}},_e={'id':_0x5d89db(0x175),'type':_0x22f4b7[_0x5d89db(0x1d6)],'handler':(_0x37acd8,_0x566a9f)=>{const _0x19da76=_0x5d89db;if(!_0x566a9f)return!0x1;let _0x5191cc=K(_0x37acd8,_0x566a9f[_0x19da76(0x1a2)]);if(!_0x5191cc)return!0x1;let _0x4dda3f=te({'blockId':_0x566a9f['blockId'],'config':_0x566a9f[_0x19da76(0x171)],'documentData':_0x5191cc[_0x19da76(0x194)],'metadata':_0x5191cc['model'][_0x19da76(0x18d)](_0x5191cc['unitId'])});return _0x4dda3f[_0x19da76(0x17d)]&&_0x5191cc[_0x19da76(0x19a)]['deserialize'](_0x5191cc[_0x19da76(0x1a2)],_0x4dda3f[_0x19da76(0x17d)]),!0x0;}},W={'id':_0x5d89db(0x1c9),'type':_0x22f4b7[_0x5d89db(0x1d6)],'handler':(_0x1e4598,_0x2a2215)=>{const _0x15e536=_0x5d89db;var _0x40f0ba,_0x43afb6;let _0x1483b5=K(_0x1e4598,_0x2a2215==null?void 0x0:_0x2a2215[_0x15e536(0x1a2)]);if(!_0x1483b5)return!0x1;let _0x27af81=(_0x40f0ba=_0x2a2215==null?void 0x0:_0x2a2215[_0x15e536(0x17b)])==null?(_0x43afb6=q(_0x1e4598))==null?void 0x0:_0x43afb6[_0x15e536(0x1aa)]:_0x40f0ba;if(_0x27af81==null)return!0x1;let _0x10f223=ne({'cursorOffset':_0x27af81,'documentData':_0x1483b5[_0x15e536(0x194)]});return _0x10f223?Y(_0x1483b5[_0x15e536(0x168)],_0x1483b5[_0x15e536(0x1a2)],_0x1483b5[_0x15e536(0x194)],_0x10f223['nextDocumentData'],_0x10f223[_0x15e536(0x17b)]):!0x1;}},G={'id':_0x5d89db(0x190),'type':_0x22f4b7['COMMAND'],'handler':(_0x230a6d,_0x562f3e)=>{const _0x159815=_0x5d89db;var _0x47da98,_0x478e31;let _0x279caf=K(_0x230a6d,_0x562f3e==null?void 0x0:_0x562f3e[_0x159815(0x1a2)]);if(!_0x279caf)return!0x1;let _0x179489=(_0x47da98=_0x562f3e==null?void 0x0:_0x562f3e['cursorOffset'])==null?(_0x478e31=q(_0x230a6d))==null?void 0x0:_0x478e31[_0x159815(0x1aa)]:_0x47da98;if(_0x179489==null)return!0x1;let _0x110a69=re({'cursorOffset':_0x179489,'documentData':_0x279caf['previousDocumentData'],'paragraphStartIndex':_0x562f3e==null?void 0x0:_0x562f3e[_0x159815(0x195)]});return _0x110a69?Y(_0x279caf['commandService'],_0x279caf[_0x159815(0x1a2)],_0x279caf[_0x159815(0x194)],_0x110a69['nextDocumentData'],_0x110a69['cursorOffset']):!0x1;}};function _0x1854(_0x239d0b,_0x31542a){_0x239d0b=_0x239d0b-0x167;const _0x15c7e8=_0x15c7();let _0x185481=_0x15c7e8[_0x239d0b];return _0x185481;}function K(_0x5e171b,_0x48bf39){const _0x6f7490=_0x5d89db;let _0x344c59=_0x5e171b[_0x6f7490(0x187)](_0x40925a),_0x553d7d=_0x48bf39?_0x344c59['getUniverDocInstance'](_0x48bf39):_0x344c59[_0x6f7490(0x188)](_0x10a714[_0x6f7490(0x1cb)]);return _0x553d7d?{'commandService':_0x5e171b[_0x6f7490(0x187)](_0x2afc20),'model':_0x5e171b[_0x6f7490(0x187)](U),'previousDocumentData':_0x553d7d['getSnapshot'](),'unitId':_0x553d7d[_0x6f7490(0x1c2)]()}:null;}function q(_0x497fd5){const _0x4bbd74=_0x5d89db;var _0x2d5faa;return(_0x2d5faa=_0x497fd5[_0x4bbd74(0x187)](_0x1206d3)[_0x4bbd74(0x1db)]())==null?void 0x0:_0x2d5faa[0x0];}function ve(_0x564d54,_0x1a1099){const _0x3556b8=_0x5d89db;var _0x1f05e1,_0x4fc269,_0x576ca6,_0x374eb4,_0x278086,_0x26e873,_0x22986d,_0x41e761,_0x4fc049,_0x433796,_0x54280b,_0x2acb9a,_0x1fad92,_0x34c240,_0x2ac03e,_0x4a8a75,_0x414c94,_0x5735d8;let _0x3b36d5=_0x209e0e['getInstance']();return[J(_0x3b36d5,[_0x3556b8(0x178),_0x3556b8(0x167)],(_0x1f05e1=_0x564d54['body'])==null?void 0x0:_0x1f05e1[_0x3556b8(0x167)],(_0x4fc269=_0x1a1099['body'])==null?void 0x0:_0x4fc269['dataStream']),J(_0x3b36d5,[_0x3556b8(0x178),_0x3556b8(0x1cd)],(_0x576ca6=_0x564d54[_0x3556b8(0x178)])==null?void 0x0:_0x576ca6['paragraphs'],(_0x374eb4=_0x1a1099[_0x3556b8(0x178)])==null?void 0x0:_0x374eb4['paragraphs']),J(_0x3b36d5,[_0x3556b8(0x178),_0x3556b8(0x1d9)],(_0x278086=_0x564d54['body'])==null?void 0x0:_0x278086['sectionBreaks'],(_0x26e873=_0x1a1099[_0x3556b8(0x178)])==null?void 0x0:_0x26e873[_0x3556b8(0x1d9)]),J(_0x3b36d5,[_0x3556b8(0x178),_0x3556b8(0x193)],(_0x22986d=_0x564d54[_0x3556b8(0x178)])==null?void 0x0:_0x22986d[_0x3556b8(0x193)],(_0x41e761=_0x1a1099[_0x3556b8(0x178)])==null?void 0x0:_0x41e761[_0x3556b8(0x193)]),J(_0x3b36d5,[_0x3556b8(0x178),_0x3556b8(0x1cf)],(_0x4fc049=_0x564d54[_0x3556b8(0x178)])==null?void 0x0:_0x4fc049[_0x3556b8(0x1cf)],(_0x433796=_0x1a1099[_0x3556b8(0x178)])==null?void 0x0:_0x433796[_0x3556b8(0x1cf)]),J(_0x3b36d5,[_0x3556b8(0x178),_0x3556b8(0x1b6)],(_0x54280b=_0x564d54[_0x3556b8(0x178)])==null?void 0x0:_0x54280b[_0x3556b8(0x1b6)],(_0x2acb9a=_0x1a1099[_0x3556b8(0x178)])==null?void 0x0:_0x2acb9a[_0x3556b8(0x1b6)]),J(_0x3b36d5,[_0x3556b8(0x178),_0x3556b8(0x186)],(_0x1fad92=_0x564d54[_0x3556b8(0x178)])==null?void 0x0:_0x1fad92[_0x3556b8(0x186)],(_0x34c240=_0x1a1099[_0x3556b8(0x178)])==null?void 0x0:_0x34c240[_0x3556b8(0x186)]),J(_0x3b36d5,[_0x3556b8(0x178),_0x3556b8(0x1b9)],(_0x2ac03e=_0x564d54[_0x3556b8(0x178)])==null?void 0x0:_0x2ac03e[_0x3556b8(0x1b9)],(_0x4a8a75=_0x1a1099[_0x3556b8(0x178)])==null?void 0x0:_0x4a8a75[_0x3556b8(0x1b9)]),J(_0x3b36d5,[_0x3556b8(0x178),_0x3556b8(0x1d1)],(_0x414c94=_0x564d54['body'])==null?void 0x0:_0x414c94[_0x3556b8(0x1d1)],(_0x5735d8=_0x1a1099[_0x3556b8(0x178)])==null?void 0x0:_0x5735d8['blockRanges'])][_0x3556b8(0x17f)](Boolean)[_0x3556b8(0x1c5)]((_0x3ae940,_0x5e2108)=>_0x209e0e[_0x3556b8(0x1c1)](_0x3ae940,_0x5e2108),null);}function J(_0x535166,_0x2d2f74,_0x1b8e83,_0xbd79f2){return _0x20dd72['diffValue'](_0x1b8e83,_0xbd79f2)?null:_0x535166['replaceOp'](_0x2d2f74,_0x1b8e83,_0xbd79f2);}function Y(_0xe4d6f,_0x266f72,_0x24ca3d,_0xf4ff8e,_0x225eca){const _0x131f7a=_0x5d89db;let _0x299448=ve(_0x24ca3d,_0xf4ff8e);return _0x299448?!!_0xe4d6f[_0x131f7a(0x1c7)](_0x3d459c['id'],{'unitId':_0x266f72,'actions':_0x299448,'textRanges':[{'startOffset':_0x225eca,'endOffset':_0x225eca,'collapsed':!0x0}],'isEditing':!0x1}):!0x1;}var X=class{constructor(_0xab58e4){const _0xd97675=_0x5d89db;this[_0xd97675(0x1c0)]=_0xab58e4;}[_0x5d89db(0x1da)](){const _0x20fb2f=_0x5d89db;return this[_0x20fb2f(0x1c0)]['blockId'];}[_0x5d89db(0x177)](){const _0x201cde=_0x5d89db;let _0xc4a2e2=this['_getBlockRange']();return _0xc4a2e2?{'blockId':_0xc4a2e2['blockId'],'endIndex':_0xc4a2e2['endIndex'],'startIndex':_0xc4a2e2[_0x201cde(0x18b)]}:null;}[_0x5d89db(0x176)](){const _0x44497f=_0x5d89db;var _0x256330;let _0x42615c=this['_getBlockRange'](),_0x23ef27=(_0x256330=this[_0x44497f(0x1c0)][_0x44497f(0x1dd)]()['body'])==null?void 0x0:_0x256330[_0x44497f(0x167)];return!_0x42615c||!_0x23ef27?'':ye(_0x23ef27['slice'](_0x42615c[_0x44497f(0x18b)]+0x1,_0x42615c[_0x44497f(0x1e0)]));}[_0x5d89db(0x1a6)](){const _0x2367bd=_0x5d89db;let _0x5ee491=this[_0x2367bd(0x177)]();return _0x5ee491?{..._0x5ee491,'config':this[_0x2367bd(0x170)](),'text':this['getText'](),'type':_0x2367bd(0x1c3)}:null;}['getConfig'](){const _0x3420fa=_0x5d89db;var _0x59c01a;return h((_0x59c01a=this[_0x3420fa(0x1c0)][_0x3420fa(0x19a)])==null?void 0x0:_0x59c01a[_0x3420fa(0x16b)](this[_0x3420fa(0x1c0)][_0x3420fa(0x1a2)],this[_0x3420fa(0x1c0)]['blockId']));}[_0x5d89db(0x1b4)](_0x533d12){const _0x387749=_0x5d89db;var _0x449260;return!!((_0x449260=this[_0x387749(0x1c0)]['commandService'])!=null&&_0x449260[_0x387749(0x1c7)](_e['id'],{'blockId':this[_0x387749(0x1c0)][_0x387749(0x1c6)],'config':_0x533d12[_0x387749(0x171)],'unitId':this[_0x387749(0x1c0)][_0x387749(0x1a2)]}));}[_0x5d89db(0x199)](_0x4c83df){const _0x56090c=_0x5d89db;var _0x50eacb;return!!((_0x50eacb=this[_0x56090c(0x1c0)]['commandService'])!=null&&_0x50eacb[_0x56090c(0x1c7)](W['id'],{'cursorOffset':_0x4c83df,'unitId':this[_0x56090c(0x1c0)]['unitId']}));}[_0x5d89db(0x1d7)](_0x93e404={}){const _0x903ed7=_0x5d89db;var _0xd9888c;return!!((_0xd9888c=this[_0x903ed7(0x1c0)][_0x903ed7(0x168)])!=null&&_0xd9888c[_0x903ed7(0x1c7)](G['id'],{..._0x93e404,'unitId':this[_0x903ed7(0x1c0)][_0x903ed7(0x1a2)]}));}[_0x5d89db(0x1de)](){const _0x1530bf=_0x5d89db;var _0x40092b;return(_0x40092b=this['_runtime'][_0x1530bf(0x1dd)]()[_0x1530bf(0x178)])==null||(_0x40092b=_0x40092b[_0x1530bf(0x1d1)])==null?void 0x0:_0x40092b[_0x1530bf(0x17a)](_0x56f897=>_0x56f897[_0x1530bf(0x1c6)]===this['_runtime'][_0x1530bf(0x1c6)]&&_0x56f897[_0x1530bf(0x1a5)]===_0x1530bf(0x1c3));}};function ye(_0x1af559){const _0x2af04f=_0x5d89db;return Array[_0x2af04f(0x19b)](_0x1af559)[_0x2af04f(0x197)](_0x413d55=>_0x413d55===_0x180f7a[_0x2af04f(0x17c)]?'\x0a':_0x413d55)[_0x2af04f(0x17f)](_0x900462=>_0x900462!==_0x180f7a[_0x2af04f(0x16a)]&&_0x900462!==_0x180f7a[_0x2af04f(0x1ba)]&&_0x900462!==_0x180f7a[_0x2af04f(0x1d5)])[_0x2af04f(0x1d0)]('')[_0x2af04f(0x1dc)](/\n$/,'');}Object[_0x5d89db(0x1a1)](_0x19b331[_0x5d89db(0x198)],{'getCodes'(){const _0x548804=_0x5d89db;var _0x23d4e8,_0x14eb0e;return(_0x23d4e8=(_0x14eb0e=this[_0x548804(0x173)]()[_0x548804(0x178)])==null||(_0x14eb0e=_0x14eb0e['blockRanges'])==null?void 0x0:_0x14eb0e[_0x548804(0x17f)](_0x317a3f=>_0x317a3f['blockType']===_0x548804(0x1c3))[_0x548804(0x197)](_0x1b9a7a=>Z(this,_0x1b9a7a[_0x548804(0x1c6)])))==null?[]:_0x23d4e8;},'getCode'(_0x8216e1){const _0x465615=_0x5d89db;var _0x18a6ee;return!((_0x18a6ee=this[_0x465615(0x173)]()[_0x465615(0x178)])==null||(_0x18a6ee=_0x18a6ee[_0x465615(0x1d1)])==null)&&_0x18a6ee[_0x465615(0x1ac)](_0x41e95c=>_0x41e95c[_0x465615(0x1c6)]===_0x8216e1&&_0x41e95c[_0x465615(0x1a5)]==='code')?Z(this,_0x8216e1):null;},'getCodeAt'(_0x415225){const _0x1efb84=_0x5d89db;var _0x37e4b6;let _0x189e5c=(_0x37e4b6=this['getSnapshot']()['body'])==null||(_0x37e4b6=_0x37e4b6[_0x1efb84(0x1d1)])==null||(_0x37e4b6=_0x37e4b6[_0x1efb84(0x17a)](_0x59572c=>_0x59572c['blockType']===_0x1efb84(0x1c3)&&_0x59572c[_0x1efb84(0x18b)]<=_0x415225&&_0x415225<=_0x59572c[_0x1efb84(0x1e0)]))==null?void 0x0:_0x37e4b6[_0x1efb84(0x1c6)];return _0x189e5c?Z(this,_0x189e5c):null;},'findCodeByText'(_0x3c9ba5){var _0x362aed;return(_0x362aed=this['findCodes'](_0x3c9ba5)[0x0])==null?null:_0x362aed;},'findCodes'(_0x1e62c5){const _0x475334=_0x5d89db;let _0x4700a2=typeof _0x1e62c5=='string'?{'text':_0x1e62c5}:_0x1e62c5;return this[_0x475334(0x1b2)]()['filter'](_0x1d6ec5=>!(_0x4700a2[_0x475334(0x1c6)]&&_0x1d6ec5[_0x475334(0x1da)]()!==_0x4700a2[_0x475334(0x1c6)]||_0x4700a2[_0x475334(0x1d8)]&&!_0x1d6ec5['getText']()[_0x475334(0x185)](_0x4700a2[_0x475334(0x1d8)])));},'insertCode'(_0x43ab34={}){const _0x2e95f8=_0x5d89db;var _0x18b226,_0x2b1335;let _0x83a209=(_0x18b226=_0x43ab34[_0x2e95f8(0x1c6)])==null?'docs-code-'+Date[_0x2e95f8(0x174)]():_0x18b226;return(_0x2b1335=Q(this))!=null&&_0x2b1335[_0x2e95f8(0x1c7)](ge['id'],{..._0x43ab34,'blockId':_0x83a209,'unitId':this['getId']()})?Z(this,_0x83a209):null;},'exitCode'(_0x4b4116){const _0x4d0cd3=_0x5d89db;var _0x303e91;return!!((_0x303e91=Q(this))!=null&&_0x303e91[_0x4d0cd3(0x1c7)](W['id'],{'cursorOffset':_0x4b4116,'unitId':this[_0x4d0cd3(0x1da)]()}));},'cancelEmptyCodeParagraph'(_0x2c1886={}){const _0x5c4f8d=_0x5d89db;var _0x37bbf1;return!!((_0x37bbf1=Q(this))!=null&&_0x37bbf1[_0x5c4f8d(0x1c7)](G['id'],{..._0x2c1886,'unitId':this[_0x5c4f8d(0x1da)]()}));}});function Z(_0x2e7898,_0x509d96){const _0x583551=_0x5d89db;let _0x929d36=$(_0x2e7898);return new X({'blockId':_0x509d96,'commandService':Q(_0x2e7898),'getDocumentData':()=>_0x2e7898[_0x583551(0x173)](),'model':_0x929d36==null?void 0x0:_0x929d36[_0x583551(0x187)](U),'unitId':_0x2e7898['getId']()});}function Q(_0x4a253f){const _0x4d9100=_0x5d89db;var _0x12b10d,_0x566e71;return(_0x12b10d=_0x4a253f[_0x4d9100(0x1a0)])==null?(_0x566e71=$(_0x4a253f))==null?void 0x0:_0x566e71[_0x4d9100(0x187)](_0x2afc20):_0x12b10d;}function $(_0x320f85){const _0x2292aa=_0x5d89db;return _0x320f85[_0x2292aa(0x1a3)];}export{X as FDocsCode};