@univerjs-pro/docs-code 1.0.1 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +5 -5
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x3ab0de=_0x8b82;(function(_0x552d13,_0xc65cac){const _0x53a41b=_0x8b82,_0x39a2ac=_0x552d13();while(!![]){try{const _0x49c374=-parseInt(_0x53a41b(0x1ba))/0x1+parseInt(_0x53a41b(0x1b3))/0x2*(-parseInt(_0x53a41b(0x1e8))/0x3)+-parseInt(_0x53a41b(0x1e2))/0x4*(parseInt(_0x53a41b(0x20d))/0x5)+-parseInt(_0x53a41b(0x1e6))/0x6+-parseInt(_0x53a41b(0x238))/0x7+-parseInt(_0x53a41b(0x224))/0x8+parseInt(_0x53a41b(0x1f1))/0x9;if(_0x49c374===_0xc65cac)break;else _0x39a2ac['push'](_0x39a2ac['shift']());}catch(_0x578f4c){_0x39a2ac['push'](_0x39a2ac['shift']());}}}(_0x12f8,0x35492));import{BooleanNumber as _0x1b778a,BuildTextUtils as _0x58acab,CommandType as _0x41a6f1,DataStreamTreeTokenType as _0x1e79a7,DependentOn as _0x3dbf34,Disposable as _0x562207,DocumentBlockRangeType as _0x435faa,ICommandService as _0x15ccf6,IConfigService as _0x1a34db,IResourceManagerService as _0x22a43b,IUniverInstanceService as _0x964d3a,Inject as _0x57b8aa,Injector as _0x584fc0,JSONX as _0x5e3e53,Plugin as _0x5733e8,TextX as _0x443f5a,UniverInstanceType as _0x48efbf,containsInteriorInsertionOffset as _0x300592,containsStreamIndex as _0x114c5d,createParagraphId as _0x403b8e,generateRandomId as _0x2991d6,getBlockRangeInterval as _0x31f500,getBodySliceForTextXAction as _0x2b04e8,getParagraphContentStartOffset as _0x5d088e,getParagraphContentStartOffsets as _0x1b2f31,getParagraphFollowingBlockOffset as _0x1831c1,getSingleDataStreamChange as _0x2f99b7,intersectsOperationalIntervals as _0x1e2ab3,merge as _0x18c64b,shiftExclusiveRangeOnDelete as _0x2a6859,shiftExclusiveRangeOnInsert as _0x126e80,shiftInclusiveRangeOnDelete as _0x168a73,shiftInclusiveRangeOnInsert as _0x905e98}from'@univerjs/core';import{Subject as _0x579692}from'rxjs';import{DocSelectionManagerService as _0x47ac4f,RichTextEditingMutation as _0x388771,UniverDocsPlugin as _0x32f376,getContentInsertRange as _0x3760de,isHeaderFooterSelection as _0x21b5bf}from'@univerjs/docs';import{UniverLicensePlugin as _0x3b72f5}from'@univerjs-pro/license';const Se={'language':_0x3ab0de(0x201),'showLineNumbers':!0x1,'tabSize':0x4,'wrap':!0x0};function v(_0x519f47){return{...Se,..._0x519f47};}function y(_0x1a0803){const _0x4a9701=_0x3ab0de;let _0x47ae62=(_0x1a0803==null?void 0x0:_0x1a0803[_0x4a9701(0x220)])??{};return{'codes':Object[_0x4a9701(0x1eb)](Object['entries'](_0x47ae62)['map'](([_0x2169d6,_0x148e23])=>[_0x2169d6,v(_0x148e23)]))};}function b(_0x4a57aa,_0x1948d7,_0x4484f2){const _0x326ad8=_0x3ab0de;let _0x16580c=y(_0x4a57aa);return _0x16580c[_0x326ad8(0x220)][_0x1948d7]=v({..._0x16580c[_0x326ad8(0x220)][_0x1948d7],..._0x4484f2}),_0x16580c;}function x(_0x15182d,_0x504b31){const _0x5b5631=_0x3ab0de;let _0x33c5e8=y(_0x15182d);return delete _0x33c5e8[_0x5b5631(0x220)][_0x504b31],_0x33c5e8;}function S(_0x1462e6){'@babel/helpers - typeof';const _0x3db065=_0x3ab0de;return S=typeof Symbol==_0x3db065(0x210)&&typeof Symbol['iterator']==_0x3db065(0x236)?function(_0xe57005){return typeof _0xe57005;}:function(_0x2491ef){const _0x12e227=_0x3db065;return _0x2491ef&&typeof Symbol==_0x12e227(0x210)&&_0x2491ef[_0x12e227(0x1ec)]===Symbol&&_0x2491ef!==Symbol[_0x12e227(0x202)]?_0x12e227(0x236):typeof _0x2491ef;},S(_0x1462e6);}function Ce(_0x56072d,_0x2ca0aa){const _0x18074f=_0x3ab0de;if(S(_0x56072d)!=_0x18074f(0x1d9)||!_0x56072d)return _0x56072d;var _0x238268=_0x56072d[Symbol[_0x18074f(0x1ae)]];if(_0x238268!==void 0x0){var _0x3a3255=_0x238268[_0x18074f(0x20c)](_0x56072d,_0x2ca0aa||_0x18074f(0x204));if(S(_0x3a3255)!='object')return _0x3a3255;throw TypeError(_0x18074f(0x1d5));}return(_0x2ca0aa===_0x18074f(0x195)?String:Number)(_0x56072d);}function we(_0x47b1aa){const _0x9196a6=_0x3ab0de;var _0x1b5237=Ce(_0x47b1aa,_0x9196a6(0x195));return S(_0x1b5237)==_0x9196a6(0x236)?_0x1b5237:_0x1b5237+'';}function C(_0x141520,_0x4b5495,_0x324a1e){const _0x5c857c=_0x3ab0de;return(_0x4b5495=we(_0x4b5495))in _0x141520?Object[_0x5c857c(0x1d6)](_0x141520,_0x4b5495,{'value':_0x324a1e,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x141520[_0x4b5495]=_0x324a1e,_0x141520;}function _0x8b82(_0x5791ea,_0x45abe5){_0x5791ea=_0x5791ea-0x194;const _0x12f85a=_0x12f8();let _0x8b8270=_0x12f85a[_0x5791ea];return _0x8b8270;}var w=class extends _0x562207{constructor(..._0x3908d2){const _0x352c3d=_0x3ab0de;super(..._0x3908d2),C(this,_0x352c3d(0x1ad),new Map()),C(this,_0x352c3d(0x20e),new _0x579692()),C(this,_0x352c3d(0x1af),this['_change$'][_0x352c3d(0x229)]());}[_0x3ab0de(0x1b0)](_0x21d30c,_0x3767e0){const _0x29c113=_0x3ab0de;return y(this[_0x29c113(0x1ad)][_0x29c113(0x21e)](_0x21d30c))[_0x29c113(0x220)][_0x3767e0];}[_0x3ab0de(0x1b5)](_0x382789,_0x1c8089,_0x455fe3){const _0x215649=_0x3ab0de;this[_0x215649(0x1a5)](_0x382789,_0x1c8089,b(this[_0x215649(0x1ad)][_0x215649(0x21e)](_0x382789),_0x1c8089,_0x455fe3));}['removeCode'](_0x4a8137,_0x5de15a){const _0x4d9213=_0x3ab0de;this['_setResource'](_0x4a8137,_0x5de15a,x(this[_0x4d9213(0x1ad)]['get'](_0x4a8137),_0x5de15a));}[_0x3ab0de(0x1b7)](_0x180b79){const _0x49d4a6=_0x3ab0de;return y(this[_0x49d4a6(0x1ad)][_0x49d4a6(0x21e)](_0x180b79));}[_0x3ab0de(0x1f7)](_0x1f84ad,_0x4d8e5c){const _0x1fc026=_0x3ab0de;this['_resources'][_0x1fc026(0x1f9)](_0x1f84ad,y(_0x4d8e5c)),this['_change$'][_0x1fc026(0x1c1)]({'unitId':_0x1f84ad});}[_0x3ab0de(0x205)](_0x594ce4){const _0x33034e=_0x3ab0de;this[_0x33034e(0x1ad)]['delete'](_0x594ce4),this[_0x33034e(0x20e)][_0x33034e(0x1c1)]({'unitId':_0x594ce4});}[_0x3ab0de(0x1f2)](){const _0x8e3948=_0x3ab0de;super['dispose'](),this['_resources'][_0x8e3948(0x208)](),this[_0x8e3948(0x20e)]['complete']();}[_0x3ab0de(0x1a5)](_0x2bff85,_0xc3040,_0x40b1fd){const _0x77b7ae=_0x3ab0de;this[_0x77b7ae(0x1ad)]['set'](_0x2bff85,_0x40b1fd),this[_0x77b7ae(0x20e)][_0x77b7ae(0x1c1)]({'unitId':_0x2bff85,'blockId':_0xc3040});}};const Te={'id':'docs-code.mutation.set-config','type':_0x41a6f1[_0x3ab0de(0x214)],'handler':(_0x44b3f1,_0x175eca)=>!(_0x175eca!=null&&_0x175eca[_0x3ab0de(0x219)])||!_0x175eca[_0x3ab0de(0x1c9)]?!0x1:(_0x44b3f1['get'](w)[_0x3ab0de(0x1b5)](_0x175eca['unitId'],_0x175eca['blockId'],_0x175eca[_0x3ab0de(0x222)]),!0x0)},T={'id':_0x3ab0de(0x196),'type':_0x41a6f1[_0x3ab0de(0x214)],'handler':(_0x5f4b50,_0x548cdb)=>!(_0x548cdb!=null&&_0x548cdb[_0x3ab0de(0x219)])||!_0x548cdb[_0x3ab0de(0x1c9)]?!0x1:(_0x5f4b50['get'](w)[_0x3ab0de(0x234)](_0x548cdb['unitId'],_0x548cdb[_0x3ab0de(0x1c9)]),!0x0)},Ee=_0x3ab0de(0x21c);var E=class extends Error{constructor(_0x116d2f=_0x3ab0de(0x1db)){super(_0x116d2f);}};function De(_0x254b71){const _0x787661=_0x3ab0de;var _0x4e8519;let _0x4f9727=O(_0x254b71['documentData']),_0x359a1e=A(_0x4f9727),_0x1d9a68=ke(_0x254b71[_0x787661(0x1bf)],_0x254b71[_0x787661(0x1ca)]),_0x1714cc=_0x1d9a68?(_0x4e8519=_0x359a1e['blockRanges'])==null?void 0x0:_0x4e8519[_0x787661(0x1e5)](_0x27d86e=>{const _0x396510=_0x787661;let _0x90f1f8=_0x31f500(_0x27d86e);return _0x90f1f8[_0x396510(0x1bf)]===_0x1d9a68[_0x396510(0x1bf)]&&_0x90f1f8['endOffset']===_0x1d9a68[_0x396510(0x1ca)];}):void 0x0,{startOffset:_0x540690,endOffset:_0x20deb7}=_0x1714cc?_0x1d9a68:We(_0x359a1e,_0x254b71[_0x787661(0x1bf)],_0x254b71[_0x787661(0x1ca)],_0x254b71[_0x787661(0x1d7)]);if(!_0x1714cc&&Ae(_0x359a1e,_0x540690,_0x20deb7))throw new E(_0x787661(0x1fb));let _0x27229d=qe(_0x359a1e,_0x540690,_0x20deb7),_0x5c1502=(_0x1714cc==null?void 0x0:_0x1714cc['blockId'])??_0x254b71[_0x787661(0x1c9)],_0x5a9d01=b(_0x254b71[_0x787661(0x226)],_0x5c1502,{...Se,..._0x254b71[_0x787661(0x222)]});if(_0x1714cc)return _0x1714cc['blockType']=_0x435faa[_0x787661(0x1e7)],Oe(_0x359a1e,_0x540690,_0x20deb7),ze(_0x359a1e,_0x540690,_0x20deb7,_0x27229d),N(_0x359a1e,_0x1714cc),{'nextDocumentData':_0x4f9727,'nextMetadata':_0x5a9d01,'cursorOffset':_0x540690+0x1};if(_0x540690===_0x20deb7){var _0x129603,_0x3aa27e;let _0x485aa2=''+_0x1e79a7[_0x787661(0x1dc)]+_0x1e79a7[_0x787661(0x1c8)]+_0x1e79a7['BLOCK_END'];P(_0x359a1e,_0x540690,_0x485aa2,{'paragraphs':[{'startIndex':0x1,'paragraphId':_0x403b8e(new Set((_0x129603=_0x359a1e[_0x787661(0x1a9)])==null?void 0x0:_0x129603[_0x787661(0x1e9)](_0x28da0c=>_0x28da0c[_0x787661(0x199)]))),'paragraphStyle':Re(!0x0,!0x0,_0x27229d)}],'blockRanges':[{'blockId':_0x5c1502,'blockType':_0x435faa[_0x787661(0x1e7)],'startIndex':0x0,'endIndex':_0x485aa2['length']-0x1}]});let _0x444f3c=(_0x3aa27e=_0x359a1e['blockRanges'])==null?void 0x0:_0x3aa27e['find'](_0x15a51b=>_0x15a51b[_0x787661(0x1c9)]===_0x5c1502);return _0x444f3c&&N(_0x359a1e,_0x444f3c),{'nextDocumentData':_0x4f9727,'nextMetadata':_0x5a9d01,'cursorOffset':_0x540690+0x1};}P(_0x359a1e,_0x20deb7,_0x1e79a7[_0x787661(0x1b1)]),P(_0x359a1e,_0x540690,_0x1e79a7['BLOCK_START']),ze(_0x359a1e,_0x540690,_0x20deb7+0x1,_0x27229d);let _0x444610={'blockId':_0x5c1502,'blockType':_0x435faa['CODE'],'startIndex':_0x540690,'endIndex':_0x20deb7+0x1};return _0x359a1e[_0x787661(0x230)]=[..._0x359a1e[_0x787661(0x230)]??[],_0x444610]['sort']((_0x43184f,_0xa78984)=>_0x43184f[_0x787661(0x21f)]-_0xa78984[_0x787661(0x21f)]),N(_0x359a1e,_0x444610),{'nextDocumentData':_0x4f9727,'nextMetadata':_0x5a9d01,'cursorOffset':_0x540690+0x1};}function Oe(_0x5e2a6a,_0x4a70d9,_0x4b963e){const _0x4b8913=_0x3ab0de;(_0x5e2a6a[_0x4b8913(0x1a9)]??[])[_0x4b8913(0x1bb)](_0x165435=>_0x165435['startIndex']>_0x4a70d9&&_0x165435[_0x4b8913(0x21f)]<_0x4b963e)['forEach'](_0x47ec5c=>{const _0xa527c5=_0x4b8913;let _0x9513b3={..._0x47ec5c[_0xa527c5(0x20b)]??{}};delete _0x9513b3[_0xa527c5(0x1b8)],delete _0x9513b3[_0xa527c5(0x206)],_0x47ec5c[_0xa527c5(0x20b)]=_0x9513b3;});}function ke(_0x5342bd,_0x462e87){const _0x3e224f=_0x3ab0de;return _0x5342bd==null||_0x462e87==null||_0x5342bd===_0x462e87?null:{'startOffset':Math[_0x3e224f(0x22f)](_0x5342bd,_0x462e87),'endOffset':Math[_0x3e224f(0x1a1)](_0x5342bd,_0x462e87)};}function Ae(_0x5ad7ff,_0x4d6e86,_0x3dcf81){const _0x3c54f8=_0x3ab0de;return(_0x5ad7ff[_0x3c54f8(0x230)]??[])[_0x3c54f8(0x1ce)](_0x3abbf5=>{let _0x305fa2=_0x31f500(_0x3abbf5);return _0x4d6e86===_0x3dcf81?_0x300592(_0x305fa2,_0x4d6e86):_0x1e2ab3(_0x305fa2,{'startOffset':_0x4d6e86,'endOffset':_0x3dcf81});});}function je(_0x495060){const _0x1bab38=_0x3ab0de;return{'nextDocumentData':O(_0x495060[_0x1bab38(0x1f8)]),'nextMetadata':b(_0x495060[_0x1bab38(0x226)],_0x495060['blockId'],_0x495060[_0x1bab38(0x222)]),'cursorOffset':0x0};}function D(_0x2ba430){const _0x5a5fb5=_0x3ab0de;let _0x51f88b=O(_0x2ba430[_0x5a5fb5(0x1f8)]),_0x3db213=A(_0x51f88b),_0x4ab016=Fe(_0x3db213,_0x2ba430[_0x5a5fb5(0x1c9)]);if(!_0x4ab016)return null;let _0x5cd787=He(_0x3db213,_0x4ab016);return{'nextDocumentData':_0x51f88b,'nextMetadata':x(_0x2ba430[_0x5a5fb5(0x226)],_0x2ba430['blockId']),'cursorOffset':_0x5cd787};}function Me(_0x2c66d3){const _0x4006d3=_0x3ab0de;var _0x133987;let _0x336a9b=O(_0x2c66d3[_0x4006d3(0x1f8)]),_0x5b6303=A(_0x336a9b),_0xb1e519=Fe(_0x5b6303,_0x2c66d3[_0x4006d3(0x1c9)]);if(!_0xb1e519)return null;let _0x517884=_0x31f500(_0xb1e519);return F(_0x5b6303,_0x517884[_0x4006d3(0x1bf)],_0x517884[_0x4006d3(0x1ca)]),_0x5b6303[_0x4006d3(0x230)]=(_0x133987=_0x5b6303[_0x4006d3(0x230)])==null?void 0x0:_0x133987[_0x4006d3(0x1bb)](_0x1d7e4f=>_0x1d7e4f[_0x4006d3(0x1c9)]!==_0x2c66d3[_0x4006d3(0x1c9)]),{'nextDocumentData':_0x336a9b,'nextMetadata':x(_0x2c66d3[_0x4006d3(0x226)],_0x2c66d3[_0x4006d3(0x1c9)]),'cursorOffset':_0xb1e519['startIndex']};}function Ne(_0x26abf8){const _0x5c3b07=_0x3ab0de;let _0x3be9df=O(_0x26abf8['documentData']),_0x314523=A(_0x3be9df),_0x41e83b=Le(_0x314523,_0x26abf8[_0x5c3b07(0x1da)]);return _0x41e83b&&Pe(_0x3be9df,_0x314523,_0x41e83b,_0x26abf8[_0x5c3b07(0x1da)],_0x26abf8[_0x5c3b07(0x1ee)])||null;}function Pe(_0x40a604,_0x58aee4,_0x1cb05b,_0x2db033,_0x35f12b){const _0x53b996=_0x3ab0de;let _0x3c11db=$e(_0x58aee4,_0x1cb05b,_0x2db033,_0x35f12b);if(!_0x3c11db)return null;let _0x24d90d=_0x3c11db[_0x53b996(0x1d3)]-0x1;return F(_0x58aee4,_0x3c11db[_0x53b996(0x19f)][_0x53b996(0x21f)],_0x3c11db[_0x53b996(0x19f)][_0x53b996(0x21f)]+0x1),{'nextDocumentData':_0x40a604,'cursorOffset':_0x24d90d};}function Fe(_0x1a3786,_0x2df8b4){const _0x238952=_0x3ab0de;var _0x5cba74;return _0x1a3786==null||(_0x5cba74=_0x1a3786[_0x238952(0x230)])==null?void 0x0:_0x5cba74['find'](_0x419bd1=>_0x419bd1['blockType']===_0x435faa[_0x238952(0x1e7)]&&_0x419bd1[_0x238952(0x1c9)]===_0x2df8b4);}function Ie(_0x5eeae0){const _0x12ea2b=_0x3ab0de;let _0x1c47ea=_0x5eeae0[_0x12ea2b(0x1f8)][_0x12ea2b(0x1f3)];if(!_0x1c47ea)return!0x1;let _0x52857b=_0x5eeae0[_0x12ea2b(0x1df)]==='left'?_0x5eeae0[_0x12ea2b(0x1da)]-0x1:_0x5eeae0[_0x12ea2b(0x1da)],_0x24a346=_0x5eeae0[_0x12ea2b(0x1df)]===_0x12ea2b(0x1c5)?_0x5eeae0[_0x12ea2b(0x1da)]+0x1:_0x52857b;return(_0x1c47ea[_0x12ea2b(0x230)]??[])['some'](_0xcf3cc5=>_0xcf3cc5[_0x12ea2b(0x197)]===_0x435faa[_0x12ea2b(0x1e7)]?_0x52857b===_0xcf3cc5[_0x12ea2b(0x21f)]||_0x52857b===_0xcf3cc5[_0x12ea2b(0x1f5)]||_0x24a346===_0xcf3cc5[_0x12ea2b(0x21f)]||_0x24a346===_0xcf3cc5[_0x12ea2b(0x1f5)]:!0x1);}function Le(_0x55ae65,_0x2e1f52){const _0x13054a=_0x3ab0de;var _0x43fac6;return(_0x43fac6=_0x55ae65[_0x13054a(0x230)])==null?void 0x0:_0x43fac6[_0x13054a(0x1e5)](_0x5203f5=>{const _0x3ebd61=_0x13054a;let _0x2d5b5e=M(_0x5203f5);return _0x5203f5['blockType']===_0x435faa[_0x3ebd61(0x1e7)]&&_0x5203f5['startIndex']<=_0x2e1f52&&_0x2e1f52<=_0x2d5b5e+0x2;});}function Re(_0x1c6ed8,_0x2ab88d,_0x4fc263=!0x1){const _0x495493=_0x3ab0de;return{'indentEnd':{'v':0x14},'indentStart':{'v':0x14},'keepLines':_0x1b778a['TRUE'],'keepNext':_0x2ab88d?_0x1b778a['FALSE']:_0x1b778a['TRUE'],'widowControl':_0x1b778a[_0x495493(0x1cb)],..._0x1c6ed8&&_0x4fc263?{'spaceAbove':{'v':0x8}}:{},'textStyle':{'ff':Ee,'fs':0xc}};}function ze(_0x3b356e,_0x5dd872,_0x34f2f7,_0x493e79=!0x1){const _0x56d026=_0x3ab0de;let _0x28325d=(_0x3b356e[_0x56d026(0x1a9)]??[])[_0x56d026(0x1bb)](_0x53ac34=>_0x53ac34['startIndex']>_0x5dd872&&_0x53ac34[_0x56d026(0x21f)]<_0x34f2f7);_0x28325d[_0x56d026(0x237)]((_0x57455f,_0xdaff55)=>{const _0x4bad37=_0x56d026;_0x57455f[_0x4bad37(0x20b)]={..._0x57455f[_0x4bad37(0x20b)]??{},...Re(_0xdaff55===0x0,_0xdaff55===_0x28325d['length']-0x1,_0x493e79)};});}function Be(_0x477491){const _0x29fd5f=_0x3ab0de;var _0x1d1edd,_0x520d50;let _0x572806={..._0x477491??{}};return delete _0x572806[_0x29fd5f(0x239)],delete _0x572806[_0x29fd5f(0x1ed)],delete _0x572806['spaceAbove'],delete _0x572806['spaceBelow'],delete _0x572806[_0x29fd5f(0x1c3)],delete _0x572806[_0x29fd5f(0x1aa)],delete _0x572806['widowControl'],((_0x1d1edd=_0x572806[_0x29fd5f(0x1b2)])==null?void 0x0:_0x1d1edd['ff'])===Ee&&((_0x520d50=_0x572806[_0x29fd5f(0x1b2)])==null?void 0x0:_0x520d50['fs'])===0xc&&delete _0x572806[_0x29fd5f(0x1b2)],_0x572806;}function Ve(_0x49a8f4,_0x5f55dc){const _0x5176ce=_0x3ab0de;let _0x6e5203=M(_0x5f55dc);return(_0x49a8f4[_0x5176ce(0x1a9)]??[])[_0x5176ce(0x1bb)](_0x392d95=>_0x392d95[_0x5176ce(0x21f)]>_0x5f55dc[_0x5176ce(0x21f)]&&_0x392d95[_0x5176ce(0x21f)]<_0x6e5203);}function He(_0x356a9e,_0x78ad56){const _0x33441f=_0x3ab0de;var _0x1c1582;let _0x5a32e9=M(_0x78ad56);return Ve(_0x356a9e,_0x78ad56)[_0x33441f(0x237)](_0x59fdad=>{const _0x1b4202=_0x33441f;_0x59fdad[_0x1b4202(0x20b)]=Be(_0x59fdad['paragraphStyle']);}),F(_0x356a9e,_0x5a32e9,_0x5a32e9+0x1),F(_0x356a9e,_0x78ad56['startIndex'],_0x78ad56[_0x33441f(0x21f)]+0x1),_0x356a9e['blockRanges']=(_0x1c1582=_0x356a9e[_0x33441f(0x230)])==null?void 0x0:_0x1c1582[_0x33441f(0x1bb)](_0xb2ad55=>_0xb2ad55[_0x33441f(0x1c9)]!==_0x78ad56[_0x33441f(0x1c9)]),_0x78ad56[_0x33441f(0x21f)];}function O(_0x495e74){const _0x386da5=_0x3ab0de;return{..._0x495e74,'body':_0x495e74['body']?Ue(_0x495e74['body']):_0x495e74[_0x386da5(0x1f3)]};}function Ue(_0x1ff267){const _0x37dfa0=_0x3ab0de;var _0x32e686,_0x42123c,_0x2463cb,_0x50e9c2,_0xd8c2f3,_0x2334a8,_0x4dafa1,_0x3745d3,_0x4ec152;return{..._0x1ff267,'paragraphs':(_0x32e686=_0x1ff267[_0x37dfa0(0x1a9)])==null?void 0x0:_0x32e686[_0x37dfa0(0x1e9)](_0x2828bb=>({..._0x2828bb,'bullet':k(_0x2828bb[_0x37dfa0(0x19b)]),'paragraphStyle':k(_0x2828bb[_0x37dfa0(0x20b)])})),'sectionBreaks':(_0x42123c=_0x1ff267[_0x37dfa0(0x1c7)])==null?void 0x0:_0x42123c[_0x37dfa0(0x1e9)](_0x1291fe=>({..._0x1291fe})),'textRuns':(_0x2463cb=_0x1ff267[_0x37dfa0(0x1be)])==null?void 0x0:_0x2463cb[_0x37dfa0(0x1e9)](_0x572307=>({..._0x572307})),'tables':(_0x50e9c2=_0x1ff267[_0x37dfa0(0x1bd)])==null?void 0x0:_0x50e9c2['map'](_0x3c9d76=>({..._0x3c9d76})),'columnGroups':(_0xd8c2f3=_0x1ff267[_0x37dfa0(0x209)])==null?void 0x0:_0xd8c2f3[_0x37dfa0(0x1e9)](_0x52ec25=>{const _0x56dedf=_0x37dfa0;var _0x366a8d;return{..._0x52ec25,'columns':(_0x366a8d=_0x52ec25[_0x56dedf(0x1bc)])==null?void 0x0:_0x366a8d[_0x56dedf(0x1e9)](_0xde7cdf=>k(_0xde7cdf))};}),'blockRanges':(_0x2334a8=_0x1ff267[_0x37dfa0(0x230)])==null?void 0x0:_0x2334a8[_0x37dfa0(0x1e9)](_0x19f00a=>({..._0x19f00a})),'customRanges':(_0x4dafa1=_0x1ff267[_0x37dfa0(0x1ab)])==null?void 0x0:_0x4dafa1['map'](_0x5ddfc3=>({..._0x5ddfc3})),'customDecorations':(_0x3745d3=_0x1ff267[_0x37dfa0(0x218)])==null?void 0x0:_0x3745d3['map'](_0x126964=>({..._0x126964})),'customBlocks':(_0x4ec152=_0x1ff267['customBlocks'])==null?void 0x0:_0x4ec152[_0x37dfa0(0x1e9)](_0x43dd67=>({..._0x43dd67}))};}function k(_0x90b5b6){const _0x230d56=_0x3ab0de;return Array['isArray'](_0x90b5b6)?_0x90b5b6['map'](_0x42e117=>k(_0x42e117)):!_0x90b5b6||typeof _0x90b5b6!=_0x230d56(0x1d9)?_0x90b5b6:Object[_0x230d56(0x1eb)](Object[_0x230d56(0x1fa)](_0x90b5b6)['map'](([_0x427f60,_0x2697c5])=>[_0x427f60,k(_0x2697c5)]));}function A(_0x725649){const _0x496824=_0x3ab0de;if(!_0x725649['body'])throw Error(_0x496824(0x1fd));return _0x725649[_0x496824(0x1f3)];}function We(_0x5981e7,_0x504896,_0xc085c1,_0x1ccd89=_0x3ab0de(0x1b6)){const _0x5b1fea=_0x3ab0de;if(_0x504896==null||_0xc085c1==null){let _0x2fd74f=Ke(_0x5981e7);return{'startOffset':_0x2fd74f,'endOffset':_0x2fd74f};}let _0x212e0e=Math[_0x5b1fea(0x22f)](_0x504896,_0xc085c1),_0x274bdb=Math[_0x5b1fea(0x1a1)](_0x504896,_0xc085c1),_0x261029=Ze(_0x5981e7,_0x212e0e,_0x274bdb);return _0x212e0e===_0x274bdb?_0x1ccd89==='insert-new'?{'startOffset':_0x212e0e,'endOffset':_0x274bdb}:Ge(_0x5981e7,_0x212e0e,_0x261029):Je(_0x5981e7,_0x212e0e,_0x274bdb,_0x261029);}function Ge(_0x31fbcf,_0x5421b3,_0x39f5f0){const _0x505b52=_0x3ab0de;let _0x475e48=Ye(_0x31fbcf,_0x5421b3);if(_0x475e48){let _0x2f839d=j(_0x31fbcf,_0x475e48,_0x39f5f0);if(_0x2f839d<_0x475e48[_0x505b52(0x21f)])return{'startOffset':_0x2f839d,'endOffset':_0x39f5f0?Math[_0x505b52(0x22f)](_0x475e48[_0x505b52(0x21f)]+0x1,_0x39f5f0['endOffset']):_0x475e48[_0x505b52(0x21f)]+0x1};}let _0x18acfd=_0x5421b3===0x0&&_0x31fbcf['dataStream'][0x0]===_0x1e79a7[_0x505b52(0x1c8)]?0x1:_0x5421b3;return{'startOffset':_0x18acfd,'endOffset':_0x18acfd};}function Ke(_0x3fb61c){const _0x3a746c=_0x3ab0de;return _0x3fb61c[_0x3a746c(0x217)][_0x3a746c(0x1a3)](_0x1e79a7[_0x3a746c(0x1f0)])?Math[_0x3a746c(0x1a1)](0x0,_0x3fb61c[_0x3a746c(0x217)][_0x3a746c(0x203)]-0x1):_0x3fb61c[_0x3a746c(0x217)][_0x3a746c(0x203)];}function qe(_0x2e90d6,_0x59654b,_0x294372){const _0x5e803c=_0x3ab0de;var _0x1c0d05;let _0x3f3509=Math[_0x5e803c(0x22f)](_0x59654b,_0x294372),_0x4ed357=Math[_0x5e803c(0x1a1)](_0x59654b,_0x294372);return!!((_0x1c0d05=_0x2e90d6[_0x5e803c(0x1bd)])!=null&&_0x1c0d05['some'](_0x30c61a=>_0x3f3509>_0x30c61a[_0x5e803c(0x21f)]&&_0x3f3509<_0x30c61a[_0x5e803c(0x1f5)]||_0x4ed357>_0x30c61a[_0x5e803c(0x21f)]&&_0x4ed357<_0x30c61a[_0x5e803c(0x1f5)]||_0x3f3509<=_0x30c61a['startIndex']&&_0x4ed357>=_0x30c61a[_0x5e803c(0x1f5)]));}function Je(_0x1902e6,_0x102e24,_0x1cc35b,_0x77dc6d){const _0xfedf01=_0x3ab0de;let _0x5dbf65=[..._0x1902e6[_0xfedf01(0x1a9)]??[]][_0xfedf01(0x1cc)]((_0x3e30d0,_0x596cad)=>_0x3e30d0[_0xfedf01(0x21f)]-_0x596cad[_0xfedf01(0x21f)]),_0x4b417e=_0x1b2f31(_0x1902e6),_0x1f0efe=_0x5dbf65['find'](_0xf9cb68=>j(_0x1902e6,_0xf9cb68,_0x77dc6d,_0x4b417e)<=_0x102e24&&_0x102e24<=_0xf9cb68[_0xfedf01(0x21f)]),_0x193a42=_0x5dbf65[_0xfedf01(0x1e5)](_0xa8fb93=>_0xa8fb93[_0xfedf01(0x21f)]>=_0x1cc35b-0x1)??_0x5dbf65[_0x5dbf65[_0xfedf01(0x203)]-0x1];return{'startOffset':_0x1f0efe?j(_0x1902e6,_0x1f0efe,_0x77dc6d,_0x4b417e):_0x102e24,'endOffset':_0x193a42?Xe(_0x193a42,_0x77dc6d):_0x1cc35b};}function Ye(_0x56c184,_0x3975bc){const _0x290390=_0x3ab0de;let _0x25f6a1=[..._0x56c184[_0x290390(0x1a9)]??[]][_0x290390(0x1cc)]((_0x1056e2,_0x5b52de)=>_0x1056e2['startIndex']-_0x5b52de[_0x290390(0x21f)]),_0x436902=_0x1b2f31(_0x56c184);return _0x25f6a1[_0x290390(0x1e5)](_0x187426=>(_0x436902[_0x290390(0x21e)](_0x187426[_0x290390(0x21f)])??0x0)<=_0x3975bc&&_0x3975bc<=_0x187426[_0x290390(0x21f)]);}function j(_0x42208e,_0x1fbf38,_0x45d808,_0x213766){const _0x344477=_0x3ab0de;let _0x410950=(_0x213766==null?void 0x0:_0x213766[_0x344477(0x21e)](_0x1fbf38[_0x344477(0x21f)]))??_0x5d088e(_0x42208e,_0x1fbf38);return _0x45d808?Math['max'](_0x410950,_0x45d808[_0x344477(0x1bf)]):_0x410950;}function Xe(_0x10a3cc,_0x5986ef){const _0x457f44=_0x3ab0de;let _0x1b03f4=_0x10a3cc[_0x457f44(0x21f)]+0x1;return _0x5986ef?Math[_0x457f44(0x22f)](_0x1b03f4,_0x5986ef[_0x457f44(0x1ca)]):_0x1b03f4;}function Ze(_0x54128a,_0x425a79,_0x5e8cf8){const _0x2b1338=_0x3ab0de;let _0x45f794=Qe(_0x54128a,_0x425a79),_0x48b259=Qe(_0x54128a,_0x425a79===_0x5e8cf8?_0x5e8cf8:Math[_0x2b1338(0x1a1)](_0x425a79,_0x5e8cf8-0x1));if(_0x45f794||_0x48b259){if(!_0x45f794||!_0x48b259||_0x45f794[_0x2b1338(0x20f)]!==_0x48b259['startTokenOffset']||_0x45f794['endTokenOffset']!==_0x48b259[_0x2b1338(0x1d3)])throw new E();return _0x45f794;}}function Qe(_0x504c25,_0x5411f6){const _0x223a40=_0x3ab0de;let _0x302404=_0x504c25[_0x223a40(0x217)],_0x39f334=-0x1;for(let _0x1ed22f=Math['min'](_0x5411f6,_0x302404[_0x223a40(0x203)]-0x1);_0x1ed22f>=0x0;_0x1ed22f--){let _0x125723=_0x302404[_0x1ed22f];if(_0x125723===_0x1e79a7[_0x223a40(0x1a8)])return;if(_0x125723===_0x1e79a7[_0x223a40(0x22e)]){_0x39f334=_0x1ed22f;break;}}if(_0x39f334<0x0)return;let _0x1157fa=_0x302404[_0x223a40(0x1b9)](_0x1e79a7[_0x223a40(0x1a8)],_0x39f334+0x1);if(!(_0x1157fa<0x0||_0x5411f6<_0x39f334+0x1||_0x5411f6>_0x1157fa-0x1))return{'startOffset':_0x39f334+0x1,'endOffset':Math[_0x223a40(0x1a1)](_0x39f334+0x1,_0x1157fa-0x1),'startTokenOffset':_0x39f334,'endTokenOffset':_0x1157fa};}function M(_0x52557b){return _0x31f500(_0x52557b)['endOffset']-0x1;}function $e(_0x2308c5,_0x2b38dc,_0x48c353,_0x341168){const _0x353f02=_0x3ab0de;let _0x545b36=M(_0x2b38dc),_0x2ed266=(_0x2308c5[_0x353f02(0x1a9)]??[])[_0x353f02(0x1e5)](_0x2a513f=>_0x2a513f[_0x353f02(0x21f)]===_0x545b36+0x1);if(!_0x2ed266||_0x341168!=null&&_0x2ed266[_0x353f02(0x21f)]!==_0x341168||_0x48c353!=null&&(_0x48c353<_0x545b36||_0x48c353>_0x2ed266[_0x353f02(0x21f)]+0x1)||_0x2308c5[_0x353f02(0x217)][_0x2ed266[_0x353f02(0x21f)]]!==_0x1e79a7['PARAGRAPH'])return null;let _0x73cec5=_0x5d088e(_0x2308c5,_0x2ed266),_0x3cece7=_0x2308c5['dataStream']['slice'](_0x73cec5,_0x2ed266['startIndex']);return Array[_0x353f02(0x223)](_0x3cece7)[_0x353f02(0x19c)](_0xb63170=>_0xb63170===_0x1e79a7['BLOCK_END'])?{'paragraph':_0x2ed266,'endTokenOffset':_0x545b36}:null;}function N(_0x5455fd,_0x5b57dd){const _0x1684c6=_0x3ab0de;var _0x5c66c2;let _0x38ee87=M(_0x5b57dd),_0x30d223=_0x5455fd[_0x1684c6(0x217)][_0x38ee87+0x1];(_0x30d223===_0x1e79a7[_0x1684c6(0x1f0)]||_0x30d223===void 0x0)&&P(_0x5455fd,_0x38ee87+0x1,_0x1e79a7[_0x1684c6(0x1c8)],{'paragraphs':[{'startIndex':0x0,'paragraphId':_0x403b8e(new Set((_0x5c66c2=_0x5455fd[_0x1684c6(0x1a9)])==null?void 0x0:_0x5c66c2[_0x1684c6(0x1e9)](_0x379907=>_0x379907[_0x1684c6(0x199)])))}]});}function P(_0x57f62f,_0x127cf1,_0xc3d068,_0x5f5b0a={}){const _0x2c1943=_0x3ab0de;var _0x1decb0,_0x3628b1;_0xc3d068&&(_0x57f62f[_0x2c1943(0x217)]=''+_0x57f62f[_0x2c1943(0x217)][_0x2c1943(0x1ac)](0x0,_0x127cf1)+_0xc3d068+_0x57f62f[_0x2c1943(0x217)][_0x2c1943(0x1ac)](_0x127cf1),et(_0x57f62f,_0x127cf1,_0xc3d068['length']),(_0x1decb0=_0x5f5b0a[_0x2c1943(0x1a9)])!=null&&_0x1decb0[_0x2c1943(0x203)]&&(_0x57f62f[_0x2c1943(0x1a9)]=[..._0x57f62f[_0x2c1943(0x1a9)]??[],..._0x5f5b0a[_0x2c1943(0x1a9)][_0x2c1943(0x1e9)](_0x23d34f=>({..._0x23d34f,'startIndex':_0x23d34f['startIndex']+_0x127cf1}))][_0x2c1943(0x1cc)]((_0x5b8f01,_0x37e712)=>_0x5b8f01['startIndex']-_0x37e712['startIndex'])),(_0x3628b1=_0x5f5b0a[_0x2c1943(0x230)])!=null&&_0x3628b1['length']&&(_0x57f62f[_0x2c1943(0x230)]=[..._0x57f62f[_0x2c1943(0x230)]??[],..._0x5f5b0a[_0x2c1943(0x230)][_0x2c1943(0x1e9)](_0x8f5bdb=>({..._0x8f5bdb,'startIndex':_0x8f5bdb['startIndex']+_0x127cf1,'endIndex':_0x8f5bdb[_0x2c1943(0x1f5)]+_0x127cf1}))]['sort']((_0x19cc6,_0x5b0744)=>_0x19cc6[_0x2c1943(0x21f)]-_0x5b0744[_0x2c1943(0x21f)])));}function F(_0x210625,_0x2fedb0,_0x5dd3d9){const _0x16e306=_0x3ab0de;let _0x58e995=_0x5dd3d9-_0x2fedb0;_0x210625['dataStream']=''+_0x210625[_0x16e306(0x217)]['slice'](0x0,_0x2fedb0)+_0x210625[_0x16e306(0x217)][_0x16e306(0x1ac)](_0x5dd3d9),tt(_0x210625,_0x2fedb0,_0x58e995);}function et(_0x474c85,_0x50d013,_0x15e899){const _0x29e94d=_0x3ab0de;_0x474c85[_0x29e94d(0x1a9)]=I(_0x474c85[_0x29e94d(0x1a9)],_0x50d013,_0x15e899),_0x474c85[_0x29e94d(0x1c7)]=I(_0x474c85[_0x29e94d(0x1c7)],_0x50d013,_0x15e899),_0x474c85['customBlocks']=I(_0x474c85[_0x29e94d(0x1c4)],_0x50d013,_0x15e899),_0x474c85[_0x29e94d(0x1be)]=nt(_0x474c85[_0x29e94d(0x1be)],_0x50d013,_0x15e899),_0x474c85[_0x29e94d(0x1bd)]=rt(_0x474c85[_0x29e94d(0x1bd)],_0x50d013,_0x15e899),_0x474c85[_0x29e94d(0x209)]=R(_0x474c85[_0x29e94d(0x209)],_0x50d013,_0x15e899),_0x474c85[_0x29e94d(0x1ab)]=R(_0x474c85[_0x29e94d(0x1ab)],_0x50d013,_0x15e899),_0x474c85['customDecorations']=R(_0x474c85['customDecorations'],_0x50d013,_0x15e899),_0x474c85['blockRanges']=R(_0x474c85[_0x29e94d(0x230)],_0x50d013,_0x15e899);}function tt(_0x3b71fd,_0x1144a6,_0x2b044b){const _0x286a8c=_0x3ab0de;var _0xcec638,_0xf5f53f;_0x3b71fd['paragraphs']=L(_0x3b71fd[_0x286a8c(0x1a9)],_0x1144a6,_0x2b044b),_0x3b71fd[_0x286a8c(0x1c7)]=L(_0x3b71fd[_0x286a8c(0x1c7)],_0x1144a6,_0x2b044b),_0x3b71fd[_0x286a8c(0x1c4)]=L(_0x3b71fd[_0x286a8c(0x1c4)],_0x1144a6,_0x2b044b),_0x3b71fd['textRuns']=(_0xcec638=it((_0xf5f53f=_0x3b71fd['textRuns'])==null?void 0x0:_0xf5f53f[_0x286a8c(0x1e9)](_0x52f560=>({..._0x52f560,'startIndex':_0x52f560['st'],'endIndex':_0x52f560['ed']})),_0x1144a6,_0x2b044b))==null?void 0x0:_0xcec638['map'](_0x6fb793=>{let {startIndex:_0xa0599b,endIndex:_0xa906f7,..._0x4ade84}=_0x6fb793;return{..._0x4ade84,'st':_0xa0599b,'ed':_0xa906f7};}),_0x3b71fd[_0x286a8c(0x1bd)]=it(_0x3b71fd[_0x286a8c(0x1bd)],_0x1144a6,_0x2b044b),_0x3b71fd[_0x286a8c(0x209)]=z(_0x3b71fd[_0x286a8c(0x209)],_0x1144a6,_0x2b044b),_0x3b71fd['customRanges']=z(_0x3b71fd[_0x286a8c(0x1ab)],_0x1144a6,_0x2b044b),_0x3b71fd[_0x286a8c(0x218)]=z(_0x3b71fd[_0x286a8c(0x218)],_0x1144a6,_0x2b044b),_0x3b71fd[_0x286a8c(0x230)]=z(_0x3b71fd[_0x286a8c(0x230)],_0x1144a6,_0x2b044b);}function I(_0x4c09a2,_0x97c2e8,_0xb24df7){const _0x6d975f=_0x3ab0de;return _0x4c09a2==null?void 0x0:_0x4c09a2[_0x6d975f(0x1e9)](_0x2e1d9e=>_0x2e1d9e['startIndex']>=_0x97c2e8?{..._0x2e1d9e,'startIndex':_0x2e1d9e[_0x6d975f(0x21f)]+_0xb24df7}:_0x2e1d9e);}function L(_0x119419,_0x116959,_0x16a401){const _0x2e9261=_0x3ab0de;let _0x522ddb=_0x116959+_0x16a401;return _0x119419==null?void 0x0:_0x119419[_0x2e9261(0x1e9)](_0x5bb652=>_0x5bb652[_0x2e9261(0x21f)]>=_0x116959&&_0x5bb652[_0x2e9261(0x21f)]<_0x522ddb?null:_0x5bb652[_0x2e9261(0x21f)]>=_0x522ddb?{..._0x5bb652,'startIndex':_0x5bb652['startIndex']-_0x16a401}:_0x5bb652)[_0x2e9261(0x1bb)](_0x379a8d=>_0x379a8d!=null);}function _0x12f8(){const _0x5bcc44=['docs-code.command.insert-below','endsWith','editOp','_setResource','replaceDocRanges','isArray','TABLE_CELL_END','paragraphs','keepNext','customRanges','slice','_resources','toPrimitive','change$','getCodeConfig','BLOCK_END','textStyle','2myvPGS','_resourceManagerService','setCodeConfig','convert-paragraph','serialize','spaceAbove','indexOf','409004Qpgkvy','filter','columns','tables','textRuns','startOffset','_docsCodeModel','next','decorate','keepLines','customBlocks','right','range','sectionBreaks','PARAGRAPH','blockId','endOffset','TRUE','sort','UNIVER_DOC','some','push','pluginName','compose','_initResource','endTokenOffset','registerPluginResource','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','defineProperty','insertionMode','_injector','object','cursorOffset','Insert\x20range\x20cannot\x20cross\x20table\x20cell\x20boundaries','BLOCK_START','getBody','disposeWithMe','direction','getUnitId','nextMetadata','4jylYcq','_config','insertOp','find','2110308VyXHIO','CODE','205914BRcxpc','map','getParagraphsInRange','fromEntries','constructor','indentStart','paragraphStartIndex','DOC_CODE_PLUGIN','SECTION_BREAK','16533180ZLIQcr','dispose','body','setConfig','endIndex','nextDocumentData','deserialize','documentData','set','entries','Insert\x20range\x20cannot\x20overlap\x20an\x20existing\x20document\x20block','getCurrentUnitOfType','Document\x20body\x20is\x20required','packageName','add','insert-new','javascript','prototype','length','default','removeUnit','spaceBelow','reduce','clear','columnGroups','docs-code.command.update','paragraphStyle','call','1478315ddsvLK','_change$','startTokenOffset','function','keys','insertLength','previousDocumentData','MUTATION','docs-code.config','handler','dataStream','customDecorations','unitId','_configService','model','monospace','docs-code.command.remove','get','startIndex','codes','COMMAND','config','from','2999344WpZusz','onStarting','metadata','docs-code.command.cancel-empty-paragraph','replaceOp','asObservable','retain','start','getInstance','docs-code.command.unwrap','TABLE_CELL_START','min','blockRanges','type','parse','getTextRanges','removeCode','syncExecuteCommand','symbol','forEach','831747UqwISI','indentEnd','docs-code.command.consume-boundary-delete','commandService','deleteLength','string','docs-code.mutation.remove-config','blockType','stringify','paragraphId','_commandService','bullet','every','@univerjs-pro/docs-code','selectionManager','paragraph','version','max'];_0x12f8=function(){return _0x5bcc44;};return _0x12f8();}function nt(_0x167b69,_0x181d52,_0x8ddc98){return _0x167b69==null?void 0x0:_0x167b69['map'](_0xd16525=>_0xd16525['st']>=_0x181d52?{..._0xd16525,'st':_0xd16525['st']+_0x8ddc98,'ed':_0xd16525['ed']+_0x8ddc98}:_0xd16525['ed']>_0x181d52?{..._0xd16525,'ed':_0xd16525['ed']+_0x8ddc98}:_0xd16525);}function R(_0x4432c6,_0x44dacb,_0x4212be){const _0x1a399a=_0x3ab0de;return _0x4432c6==null?void 0x0:_0x4432c6[_0x1a399a(0x1e9)](_0x381126=>_0x905e98(_0x381126,_0x44dacb,_0x4212be));}function rt(_0x4fd975,_0x4bdab8,_0x27c9a5){const _0x4da922=_0x3ab0de;return _0x4fd975==null?void 0x0:_0x4fd975[_0x4da922(0x1e9)](_0x102d65=>_0x126e80(_0x102d65,_0x4bdab8,_0x27c9a5));}function z(_0x410e2f,_0x252d5f,_0x54bb59){const _0x457fe3=_0x3ab0de;return _0x410e2f==null?void 0x0:_0x410e2f[_0x457fe3(0x1e9)](_0x1ebf38=>_0x168a73(_0x1ebf38,_0x252d5f,_0x54bb59))[_0x457fe3(0x1bb)](_0x448d95=>_0x448d95!=null);}function it(_0x1fd29e,_0x1d6287,_0x5a13b5){const _0x586f1=_0x3ab0de;return _0x1fd29e==null?void 0x0:_0x1fd29e['map'](_0x40cf9c=>_0x2a6859(_0x40cf9c,_0x1d6287,_0x5a13b5))[_0x586f1(0x1bb)](_0x170721=>_0x170721!=null);}const at={'id':_0x3ab0de(0x1a2),'type':_0x41a6f1['COMMAND'],'handler':_0x55eb44=>{const _0x11e4c5=_0x3ab0de;var _0x39d914;if(_0x21b5bf(G(_0x55eb44)))return!0x1;let _0x35896a=_0x3760de(_0x55eb44);if(_0x35896a)return _0x55eb44[_0x11e4c5(0x21e)](_0x15ccf6)['syncExecuteCommand'](B['id'],{'startOffset':_0x35896a['startOffset'],'endOffset':_0x35896a[_0x11e4c5(0x1ca)],'insertionMode':_0x11e4c5(0x200),'unitId':_0x35896a['unitId']});let _0x5d9128=ft(_0x55eb44);if(!_0x5d9128)return!0x1;let _0x5e2ac8=(_0x39d914=_0x55eb44['get'](_0x964d3a)['getCurrentUnitOfType'](_0x48efbf[_0x11e4c5(0x1cd)]))==null?void 0x0:_0x39d914[_0x11e4c5(0x1dd)](),_0x4ca85e=_0x5e2ac8?_0x1831c1(_0x5e2ac8,_0x5d9128):_0x5d9128[_0x11e4c5(0x21f)]+0x1;return _0x55eb44[_0x11e4c5(0x21e)](_0x15ccf6)[_0x11e4c5(0x235)](B['id'],{'startOffset':_0x4ca85e,'endOffset':_0x4ca85e});}},ot={'id':_0x3ab0de(0x23a),'type':_0x41a6f1[_0x3ab0de(0x221)],'handler':()=>!0x0},B={'id':'docs-code.command.insert','type':_0x41a6f1[_0x3ab0de(0x221)],'handler':(_0x17fee5,_0x3c02cc)=>{const _0x357e63=_0x3ab0de;let _0x2c1e71=W(_0x17fee5,_0x3c02cc==null?void 0x0:_0x3c02cc[_0x357e63(0x219)]);if(!_0x2c1e71)return!0x1;let _0x5b2a5a=G(_0x17fee5);if(_0x21b5bf(_0x5b2a5a))return!0x1;let _0x2b801b=_0x2c1e71[_0x357e63(0x21b)][_0x357e63(0x1b7)](_0x2c1e71[_0x357e63(0x219)]),_0x14cb38=lt(_0x3c02cc,_0x5b2a5a),_0x5e0a81=ut(_0x2c1e71[_0x357e63(0x213)],_0x14cb38);if(_0x5e0a81){if(_0x5e0a81[_0x357e63(0x197)]!==_0x435faa[_0x357e63(0x1e7)])return!0x1;let _0x8ab0c8=D({'blockId':_0x5e0a81[_0x357e63(0x1c9)],'documentData':_0x2c1e71[_0x357e63(0x213)],'metadata':_0x2b801b});if(!_0x8ab0c8)return!0x1;let _0x5b6863=Y(_0x2c1e71[_0x357e63(0x23b)],_0x2c1e71[_0x357e63(0x19e)],_0x2c1e71[_0x357e63(0x219)],_0x2c1e71[_0x357e63(0x213)],_0x8ab0c8[_0x357e63(0x1f6)],B['id'],_0x8ab0c8['cursorOffset']);return _0x5b6863&&_0x8ab0c8[_0x357e63(0x1e1)]&&_0x2c1e71[_0x357e63(0x21b)][_0x357e63(0x1f7)](_0x2c1e71['unitId'],_0x8ab0c8[_0x357e63(0x1e1)]),_0x5b6863;}let _0x554dec=(_0x3c02cc==null?void 0x0:_0x3c02cc['blockId'])??_0x2991d6(0x6),_0x41b866;try{_0x41b866=De({'blockId':_0x554dec,'config':_0x3c02cc==null?void 0x0:_0x3c02cc['config'],'documentData':_0x2c1e71[_0x357e63(0x213)],'endOffset':_0x14cb38==null?void 0x0:_0x14cb38[_0x357e63(0x1ca)],'insertionMode':_0x3c02cc==null?void 0x0:_0x3c02cc[_0x357e63(0x1d7)],'metadata':_0x2b801b,'startOffset':_0x14cb38==null?void 0x0:_0x14cb38[_0x357e63(0x1bf)]});}catch(_0x3ff4b8){if(_0x3ff4b8 instanceof E)return!0x1;throw _0x3ff4b8;}let _0x270854=Y(_0x2c1e71['commandService'],_0x2c1e71[_0x357e63(0x19e)],_0x2c1e71[_0x357e63(0x219)],_0x2c1e71[_0x357e63(0x213)],_0x41b866[_0x357e63(0x1f6)],B['id'],_0x41b866[_0x357e63(0x1da)]);return _0x270854&&_0x41b866[_0x357e63(0x1e1)]&&_0x2c1e71[_0x357e63(0x21b)][_0x357e63(0x1f7)](_0x2c1e71[_0x357e63(0x219)],_0x41b866[_0x357e63(0x1e1)]),_0x270854;}},st={'id':_0x3ab0de(0x20a),'type':_0x41a6f1[_0x3ab0de(0x221)],'handler':(_0x2e9cdc,_0x361f34)=>{const _0x2ee026=_0x3ab0de;if(!_0x361f34)return!0x1;let _0x977d32=W(_0x2e9cdc,_0x361f34[_0x2ee026(0x219)]);if(!_0x977d32)return!0x1;let _0x29756c=je({'blockId':_0x361f34[_0x2ee026(0x1c9)],'config':_0x361f34[_0x2ee026(0x222)],'documentData':_0x977d32[_0x2ee026(0x213)],'metadata':_0x977d32[_0x2ee026(0x21b)][_0x2ee026(0x1b7)](_0x977d32['unitId'])});return _0x29756c[_0x2ee026(0x1e1)]&&_0x977d32[_0x2ee026(0x21b)][_0x2ee026(0x1f7)](_0x977d32[_0x2ee026(0x219)],_0x29756c[_0x2ee026(0x1e1)]),!0x0;}},ct={'id':'docs-code.command.exit','type':_0x41a6f1['COMMAND'],'handler':(_0x55cf45,_0x24dbc5)=>V[_0x3ab0de(0x216)](_0x55cf45,_0x24dbc5)},V={'id':_0x3ab0de(0x22d),'type':_0x41a6f1['COMMAND'],'handler':(_0xb65b53,_0x3cfc93)=>{const _0x4bcbd4=_0x3ab0de;if(!_0x3cfc93)return!0x1;let _0x15ddb4=W(_0xb65b53,_0x3cfc93==null?void 0x0:_0x3cfc93[_0x4bcbd4(0x219)]);if(!_0x15ddb4)return!0x1;let _0x590f70=D({'blockId':_0x3cfc93[_0x4bcbd4(0x1c9)],'documentData':_0x15ddb4[_0x4bcbd4(0x213)],'metadata':_0x15ddb4[_0x4bcbd4(0x21b)]['serialize'](_0x15ddb4[_0x4bcbd4(0x219)])});if(!_0x590f70)return!0x1;let _0x2b78a3=Y(_0x15ddb4[_0x4bcbd4(0x23b)],_0x15ddb4[_0x4bcbd4(0x19e)],_0x15ddb4[_0x4bcbd4(0x219)],_0x15ddb4[_0x4bcbd4(0x213)],_0x590f70[_0x4bcbd4(0x1f6)],V['id'],_0x590f70[_0x4bcbd4(0x1da)]);return _0x2b78a3&&_0x590f70[_0x4bcbd4(0x1e1)]&&_0x15ddb4[_0x4bcbd4(0x21b)]['deserialize'](_0x15ddb4['unitId'],_0x590f70[_0x4bcbd4(0x1e1)]),_0x2b78a3;}},H={'id':_0x3ab0de(0x21d),'type':_0x41a6f1['COMMAND'],'handler':(_0x46136f,_0x202a06)=>{const _0x337597=_0x3ab0de;if(!_0x202a06)return!0x1;let _0xecab45=W(_0x46136f,_0x202a06==null?void 0x0:_0x202a06[_0x337597(0x219)]);if(!_0xecab45)return!0x1;let _0x47ab34=Me({'blockId':_0x202a06[_0x337597(0x1c9)],'documentData':_0xecab45[_0x337597(0x213)],'metadata':_0xecab45['model']['serialize'](_0xecab45['unitId'])});if(!_0x47ab34)return!0x1;let _0x5edddb=Y(_0xecab45[_0x337597(0x23b)],_0xecab45[_0x337597(0x19e)],_0xecab45[_0x337597(0x219)],_0xecab45['previousDocumentData'],_0x47ab34[_0x337597(0x1f6)],H['id'],_0x47ab34[_0x337597(0x1da)]);return _0x5edddb&&_0x47ab34[_0x337597(0x1e1)]&&_0xecab45['model'][_0x337597(0x1f7)](_0xecab45['unitId'],_0x47ab34[_0x337597(0x1e1)]),_0x5edddb;}},U={'id':_0x3ab0de(0x227),'type':_0x41a6f1[_0x3ab0de(0x221)],'handler':(_0x211ce3,_0x257f7d)=>{const _0x5184e0=_0x3ab0de;var _0x5cff4a;let _0x4a45b0=W(_0x211ce3,_0x257f7d==null?void 0x0:_0x257f7d[_0x5184e0(0x219)]);if(!_0x4a45b0)return!0x1;let _0x5a9d81=(_0x257f7d==null?void 0x0:_0x257f7d[_0x5184e0(0x1da)])??((_0x5cff4a=G(_0x211ce3))==null?void 0x0:_0x5cff4a['startOffset']);if(_0x5a9d81==null)return!0x1;let _0x129776=Ne({'cursorOffset':_0x5a9d81,'documentData':_0x4a45b0['previousDocumentData'],'paragraphStartIndex':_0x257f7d==null?void 0x0:_0x257f7d[_0x5184e0(0x1ee)]});return _0x129776?Y(_0x4a45b0[_0x5184e0(0x23b)],_0x4a45b0[_0x5184e0(0x19e)],_0x4a45b0[_0x5184e0(0x219)],_0x4a45b0[_0x5184e0(0x213)],_0x129776[_0x5184e0(0x1f6)],U['id'],_0x129776[_0x5184e0(0x1da)]):!0x1;}};function W(_0x53c2b0,_0x1260c3){const _0x48b90a=_0x3ab0de;let _0xb8eeae=_0x53c2b0[_0x48b90a(0x21e)](_0x964d3a),_0x5744b7=_0x1260c3?_0xb8eeae['getUnit'](_0x1260c3,_0x48efbf[_0x48b90a(0x1cd)]):_0xb8eeae[_0x48b90a(0x1fc)](_0x48efbf['UNIVER_DOC']);return _0x5744b7?{'commandService':_0x53c2b0[_0x48b90a(0x21e)](_0x15ccf6),'model':_0x53c2b0['get'](w),'previousDocumentData':_0x5744b7['getSnapshot'](),'selectionManager':_0x53c2b0[_0x48b90a(0x21e)](_0x47ac4f),'unitId':_0x5744b7[_0x48b90a(0x1e0)]()}:null;}function G(_0x33152b){const _0x1201d4=_0x3ab0de;var _0x4e2653;return(_0x4e2653=_0x33152b[_0x1201d4(0x21e)](_0x47ac4f)[_0x1201d4(0x233)]())==null?void 0x0:_0x4e2653[0x0];}function lt(_0x1df402,_0x430091){const _0x306b6b=_0x3ab0de;let _0x2ed7d4=(_0x1df402==null?void 0x0:_0x1df402[_0x306b6b(0x1bf)])??(_0x430091==null?void 0x0:_0x430091[_0x306b6b(0x1bf)]),_0x56bc86=(_0x1df402==null?void 0x0:_0x1df402[_0x306b6b(0x1ca)])??(_0x430091==null?void 0x0:_0x430091[_0x306b6b(0x1ca)]);if(_0x2ed7d4!=null&&_0x56bc86!=null)return{'endOffset':Math[_0x306b6b(0x1a1)](_0x2ed7d4,_0x56bc86),'startOffset':Math['min'](_0x2ed7d4,_0x56bc86)};}function ut(_0x103095,_0x5ce19e){const _0x53306f=_0x3ab0de;var _0x1d459f;if(!_0x5ce19e)return;let _0x24fdee=dt(_0x5ce19e);return(_0x1d459f=_0x103095['body'])==null||(_0x1d459f=_0x1d459f[_0x53306f(0x230)])==null?void 0x0:_0x1d459f[_0x53306f(0x1e5)](_0x338e19=>{const _0x186ec7=_0x53306f;let _0x300d67=_0x31f500(_0x338e19);return _0x5ce19e[_0x186ec7(0x1bf)]===_0x5ce19e[_0x186ec7(0x1ca)]?_0x300592(_0x300d67,_0x24fdee):_0x114c5d(_0x300d67,_0x24fdee);});}function dt(_0x2944aa){const _0x18587e=_0x3ab0de;return _0x2944aa['startOffset']===_0x2944aa['endOffset']?_0x2944aa['startOffset']:_0x2944aa[_0x18587e(0x1bf)]+0x1;}function ft(_0x21ba25){const _0x49ff96=_0x3ab0de;let _0x4fbb48=G(_0x21ba25);if(!_0x4fbb48)return null;let _0x745d23=_0x21ba25[_0x49ff96(0x21e)](_0x964d3a)['getCurrentUnitOfType'](_0x48efbf[_0x49ff96(0x1cd)]),_0x5279e0=_0x745d23==null?void 0x0:_0x745d23[_0x49ff96(0x1dd)]();return _0x5279e0?_0x58acab[_0x49ff96(0x1c6)][_0x49ff96(0x1ea)](_0x4fbb48,_0x5279e0['paragraphs']??[],_0x5279e0[_0x49ff96(0x217)]??'')[0x0]??null:null;}function pt(_0xad234c,_0x469ef4){const _0x279b10=_0x3ab0de;let _0x310522=_0xad234c['body'],_0x38db8c=_0x469ef4[_0x279b10(0x1f3)],_0x7d158a=_0x2f99b7(_0x310522,_0x38db8c);return[_0x7d158a&&_0x38db8c?mt(_0x38db8c,_0x7d158a):null,_0x7d158a?null:ht(_0x310522,_0x38db8c)]['filter'](Boolean)['reduce']((_0x5acc95,_0x349644)=>_0x5e3e53[_0x279b10(0x1d1)](_0x5acc95,_0x349644),null);}function mt(_0x47014e,_0x23d102){const _0x2e3aec=_0x3ab0de;let _0x14aa65=new _0x443f5a();return _0x14aa65[_0x2e3aec(0x22a)](_0x23d102['start']),_0x23d102[_0x2e3aec(0x212)]>0x0&&_0x14aa65['insert'](_0x23d102['insertLength'],_0x2b04e8(_0x47014e,_0x23d102[_0x2e3aec(0x22b)],_0x23d102[_0x2e3aec(0x22b)]+_0x23d102['insertLength'],!0x1)),_0x23d102[_0x2e3aec(0x194)]>0x0&&_0x14aa65['delete'](_0x23d102[_0x2e3aec(0x194)]),_0x5e3e53[_0x2e3aec(0x22c)]()[_0x2e3aec(0x1a4)](_0x14aa65[_0x2e3aec(0x1b7)](),[_0x2e3aec(0x1f3)]);}function ht(_0x261765,_0x30350f){const _0x263692=_0x3ab0de;let _0x1cfcb3=[],_0x3111ed=_0x261765?_t(_0x261765):void 0x0,_0x3e1514=_0x30350f?_t(_0x30350f):void 0x0;for(let _0xd52bc0 of gt)K(_0x5e3e53[_0x263692(0x22c)](),[_0x263692(0x1f3),_0xd52bc0],_0x3111ed==null?void 0x0:_0x3111ed[_0xd52bc0],_0x3e1514==null?void 0x0:_0x3e1514[_0xd52bc0],_0x1cfcb3);return _0x1cfcb3[_0x263692(0x207)]((_0x1f1ad2,_0x55aed3)=>_0x5e3e53[_0x263692(0x1d1)](_0x1f1ad2,_0x55aed3),null);}const gt=[_0x3ab0de(0x1a9),'sectionBreaks','tables',_0x3ab0de(0x209),_0x3ab0de(0x230),_0x3ab0de(0x1c4),_0x3ab0de(0x1ab),_0x3ab0de(0x218),_0x3ab0de(0x1be)];function _t(_0x380e90){return _0x380e90;}function K(_0x31d451,_0x9cae8a,_0xee46f2,_0x2f1d5a,_0x1a7fc9){const _0x38cdce=_0x3ab0de;if(!J(_0xee46f2,_0x2f1d5a)){if(_0xee46f2==null){_0x1a7fc9[_0x38cdce(0x1cf)](_0x31d451['insertOp'](_0x9cae8a,_0x2f1d5a));return;}if(_0x2f1d5a==null){_0x1a7fc9['push'](_0x31d451['removeOp'](_0x9cae8a,_0xee46f2));return;}if(Array[_0x38cdce(0x1a7)](_0xee46f2)&&Array['isArray'](_0x2f1d5a)){vt(_0x31d451,_0x9cae8a,_0xee46f2,_0x2f1d5a,_0x1a7fc9);return;}if(q(_0xee46f2)&&q(_0x2f1d5a)){new Set([...Object[_0x38cdce(0x211)](_0xee46f2),...Object[_0x38cdce(0x211)](_0x2f1d5a)])[_0x38cdce(0x237)](_0x2fee23=>{K(_0x31d451,[..._0x9cae8a,_0x2fee23],_0xee46f2[_0x2fee23],_0x2f1d5a[_0x2fee23],_0x1a7fc9);});return;}_0x1a7fc9[_0x38cdce(0x1cf)](_0x31d451[_0x38cdce(0x228)](_0x9cae8a,_0xee46f2,_0x2f1d5a));}}function vt(_0x3494d5,_0x4620d7,_0x393a0b,_0xc20ad3,_0x24519f){const _0x14ec4b=_0x3ab0de;if(_0x393a0b[_0x14ec4b(0x203)]===_0xc20ad3[_0x14ec4b(0x203)]){_0x393a0b['forEach']((_0x18c212,_0x4f630f)=>K(_0x3494d5,[..._0x4620d7,_0x4f630f],_0x18c212,_0xc20ad3[_0x4f630f],_0x24519f));return;}let _0x5d127e=0x0;for(;_0x5d127e<_0x393a0b[_0x14ec4b(0x203)]&&_0x5d127e<_0xc20ad3['length']&&J(_0x393a0b[_0x5d127e],_0xc20ad3[_0x5d127e]);)_0x5d127e++;let _0x4cc7c2=_0x393a0b[_0x14ec4b(0x203)]-0x1,_0x1f2ec4=_0xc20ad3['length']-0x1;for(;_0x4cc7c2>=_0x5d127e&&_0x1f2ec4>=_0x5d127e&&J(_0x393a0b[_0x4cc7c2],_0xc20ad3[_0x1f2ec4]);)_0x4cc7c2--,_0x1f2ec4--;for(let _0x468652=_0x4cc7c2;_0x468652>=_0x5d127e;_0x468652--)_0x24519f[_0x14ec4b(0x1cf)](_0x3494d5['removeOp']([..._0x4620d7,_0x468652],_0x393a0b[_0x468652]));for(let _0x5d7ad2=_0x5d127e;_0x5d7ad2<=_0x1f2ec4;_0x5d7ad2++)_0x24519f[_0x14ec4b(0x1cf)](_0x3494d5[_0x14ec4b(0x1e4)]([..._0x4620d7,_0x5d7ad2],_0xc20ad3[_0x5d7ad2]));}function q(_0x2aa9ad){const _0x36c725=_0x3ab0de;return typeof _0x2aa9ad==_0x36c725(0x1d9)&&!!_0x2aa9ad&&!Array['isArray'](_0x2aa9ad);}function J(_0x61e505,_0x299b70){const _0x452bd4=_0x3ab0de;return JSON['stringify'](_0x61e505)===JSON[_0x452bd4(0x198)](_0x299b70);}function Y(_0x2acb24,_0x2a5bb8,_0x23406e,_0x215c55,_0x8bd1ad,_0x247c11,_0x17dd6a){const _0x5984d8=_0x3ab0de;let _0x4291cf=pt(_0x215c55,_0x8bd1ad);return _0x4291cf?!!_0x2acb24[_0x5984d8(0x235)](_0x388771['id'],{'unitId':_0x23406e,'actions':_0x4291cf,'textRanges':[{'startOffset':_0x17dd6a,'endOffset':_0x17dd6a,'collapsed':!0x0}],'isEditing':!0x1,'trigger':_0x247c11}):(_0x2a5bb8[_0x5984d8(0x1a6)]([{'startOffset':_0x17dd6a,'endOffset':_0x17dd6a}],{'unitId':_0x23406e,'subUnitId':_0x23406e},!0x1),!0x0);}const X=_0x3ab0de(0x1ef);var yt=_0x3ab0de(0x19d),bt='1.0.1';const xt={};function Z(_0x306196,_0xc449b3){return function(_0xb6c42,_0xff4b51){_0xc449b3(_0xb6c42,_0xff4b51,_0x306196);};}function St(_0x1509b0,_0x13156d,_0x38c417,_0x547e8c){const _0x40a9b7=_0x3ab0de;var _0x4068d3=arguments[_0x40a9b7(0x203)],_0x5ab783=_0x4068d3<0x3?_0x13156d:_0x547e8c===null?_0x547e8c=Object['getOwnPropertyDescriptor'](_0x13156d,_0x38c417):_0x547e8c,_0x48588f;if(typeof Reflect==_0x40a9b7(0x1d9)&&typeof Reflect[_0x40a9b7(0x1c2)]==_0x40a9b7(0x210))_0x5ab783=Reflect['decorate'](_0x1509b0,_0x13156d,_0x38c417,_0x547e8c);else{for(var _0x5b2670=_0x1509b0[_0x40a9b7(0x203)]-0x1;_0x5b2670>=0x0;_0x5b2670--)(_0x48588f=_0x1509b0[_0x5b2670])&&(_0x5ab783=(_0x4068d3<0x3?_0x48588f(_0x5ab783):_0x4068d3>0x3?_0x48588f(_0x13156d,_0x38c417,_0x5ab783):_0x48588f(_0x13156d,_0x38c417))||_0x5ab783);}return _0x4068d3>0x3&&_0x5ab783&&Object['defineProperty'](_0x13156d,_0x38c417,_0x5ab783),_0x5ab783;}let Q=class extends _0x562207{constructor(_0x103c62,_0x26bd89){const _0x533e71=_0x3ab0de;super(),this[_0x533e71(0x1b4)]=_0x103c62,this[_0x533e71(0x1c0)]=_0x26bd89,this[_0x533e71(0x1d2)]();}[_0x3ab0de(0x1d2)](){const _0x320881=_0x3ab0de;this[_0x320881(0x1de)](this[_0x320881(0x1b4)][_0x320881(0x1d4)]({'pluginName':X,'businesses':[_0x48efbf['UNIVER_DOC']],'toJson':_0x4e5e4e=>JSON[_0x320881(0x198)](this['_docsCodeModel'][_0x320881(0x1b7)](_0x4e5e4e)),'parseJson':_0x1ed1cb=>y(JSON[_0x320881(0x232)](_0x1ed1cb)),'onLoad':(_0x92cc48,_0x22db5b)=>this['_docsCodeModel'][_0x320881(0x1f7)](_0x92cc48,_0x22db5b),'onUnLoad':_0x17d96a=>this['_docsCodeModel'][_0x320881(0x205)](_0x17d96a)}));}};Q=St([Z(0x0,_0x22a43b),Z(0x1,_0x57b8aa(w))],Q);let $=class extends _0x5733e8{constructor(_0x47712d=xt,_0x14146a,_0x45ca49,_0x13ab26){const _0x3a86ca=_0x3ab0de;super(),this[_0x3a86ca(0x1e3)]=_0x47712d,this[_0x3a86ca(0x1d8)]=_0x14146a,this[_0x3a86ca(0x19a)]=_0x45ca49,this[_0x3a86ca(0x21a)]=_0x13ab26;let {..._0x568be0}=_0x18c64b({},xt,this[_0x3a86ca(0x1e3)]);this[_0x3a86ca(0x21a)][_0x3a86ca(0x1f4)](_0x3a86ca(0x215),_0x568be0);}[_0x3ab0de(0x225)](){const _0x376cd6=_0x3ab0de;this[_0x376cd6(0x1d8)][_0x376cd6(0x1ff)]([w]),this[_0x376cd6(0x1d8)]['add']([Q]),this[_0x376cd6(0x1d8)][_0x376cd6(0x21e)](w),this['_injector'][_0x376cd6(0x21e)](Q),[B,at,st,V,H,ct,U,ot,Te,T][_0x376cd6(0x237)](_0x306ca1=>this[_0x376cd6(0x1de)](this['_commandService']['registerCommand'](_0x306ca1)));}};C($,_0x3ab0de(0x1d0),X),C($,_0x3ab0de(0x1fe),yt),C($,_0x3ab0de(0x1a0),bt),C($,_0x3ab0de(0x231),_0x48efbf[_0x3ab0de(0x1cd)]),$=St([_0x3dbf34(_0x3b72f5,_0x32f376),Z(0x1,_0x57b8aa(_0x584fc0)),Z(0x2,_0x15ccf6),Z(0x3,_0x1a34db)],$);export{X as DOCS_CODE_PLUGIN,U as DocsCodeCancelEmptyParagraphCommand,ot as DocsCodeConsumeBoundaryDeleteCommand,at as DocsCodeInsertBelowCommand,B as DocsCodeInsertCommand,w as DocsCodeModel,H as DocsCodeRemoveCommand,V as DocsCodeUnwrapCommand,st as DocsCodeUpdateCommand,T as RemoveDocsCodeConfigMutation,Te as SetDocsCodeConfigMutation,$ as UniverDocsCodePlugin,Ne as buildCancelEmptyCodeParagraphActions,Ie as isCodeBoundaryDelete,v as normalizeDocsCodeConfig,y as normalizeDocsCodeMetadataResource};
|
|
1
|
+
const _0x49483d=_0x10b3;(function(_0x14b103,_0x5c8c9e){const _0x591240=_0x10b3,_0x58d2a8=_0x14b103();while(!![]){try{const _0x51f231=parseInt(_0x591240(0xb9))/0x1+-parseInt(_0x591240(0x10a))/0x2+parseInt(_0x591240(0xeb))/0x3+-parseInt(_0x591240(0x7f))/0x4+parseInt(_0x591240(0x103))/0x5+parseInt(_0x591240(0x98))/0x6*(parseInt(_0x591240(0x85))/0x7)+parseInt(_0x591240(0x9a))/0x8;if(_0x51f231===_0x5c8c9e)break;else _0x58d2a8['push'](_0x58d2a8['shift']());}catch(_0x11e292){_0x58d2a8['push'](_0x58d2a8['shift']());}}}(_0x1d98,0x51901));import{BooleanNumber as _0x29f404,BuildTextUtils as _0x18ba16,CommandType as _0x446cfc,DataStreamTreeTokenType as _0x23e365,DependentOn as _0x5aaaeb,Disposable as _0x24e448,DocumentBlockRangeType as _0x2324fb,ICommandService as _0x330d40,IConfigService as _0x5ce515,IResourceManagerService as _0x4ec5e9,IUniverInstanceService as _0x1f322c,Inject as _0x34c829,Injector as _0x38f326,JSONX as _0x424cd6,Plugin as _0x5a8ee0,TextX as _0x227fc3,UniverInstanceType as _0x2fc27d,containsInteriorInsertionOffset as _0x116958,containsStreamIndex as _0x2d8224,createParagraphId as _0x338f66,generateRandomId as _0x5cf7a0,getBlockRangeInterval as _0x5c8dbe,getBodySliceForTextXAction as _0x25d42f,getParagraphContentStartOffset as _0x53b91f,getParagraphContentStartOffsets as _0x43bde5,getParagraphFollowingBlockOffset as _0x15574e,getSingleDataStreamChange as _0x5c68b1,intersectsOperationalIntervals as _0x467d94,merge as _0x1470e9,shiftExclusiveRangeOnDelete as _0xc1b9cd,shiftExclusiveRangeOnInsert as _0x3f24e6,shiftInclusiveRangeOnDelete as _0x2cee19,shiftInclusiveRangeOnInsert as _0x4cbd10}from'@univerjs/core';import{Subject as _0x4c06b3}from'rxjs';import{DocSelectionManagerService as _0x2baf85,RichTextEditingMutation as _0x274029,UniverDocsPlugin as _0x565d36,getContentInsertRange as _0x34eb39,isHeaderFooterSelection as _0x584ad5}from'@univerjs/docs';import{UniverLicensePlugin as _0xecd332}from'@univerjs-pro/license';const Se={'language':_0x49483d(0x73),'showLineNumbers':!0x1,'tabSize':0x4,'wrap':!0x0};function v(_0x2fd8ec){return{...Se,..._0x2fd8ec};}function y(_0x27f3e7){const _0x4284c3=_0x49483d;let _0x465372=(_0x27f3e7==null?void 0x0:_0x27f3e7['codes'])??{};return{'codes':Object[_0x4284c3(0xf4)](Object[_0x4284c3(0x6c)](_0x465372)['map'](([_0x4c64c2,_0x3cc3df])=>[_0x4c64c2,v(_0x3cc3df)]))};}function b(_0x2b3291,_0x55e095,_0x39c847){const _0x212846=_0x49483d;let _0xfbdd86=y(_0x2b3291);return _0xfbdd86[_0x212846(0x77)][_0x55e095]=v({..._0xfbdd86[_0x212846(0x77)][_0x55e095],..._0x39c847}),_0xfbdd86;}function x(_0x430777,_0x5ad778){const _0xf072f4=_0x49483d;let _0x4cedd0=y(_0x430777);return delete _0x4cedd0[_0xf072f4(0x77)][_0x5ad778],_0x4cedd0;}function S(_0x5c9d49){'@babel/helpers - typeof';const _0x384cd5=_0x49483d;return S=typeof Symbol==_0x384cd5(0x104)&&typeof Symbol[_0x384cd5(0xee)]==_0x384cd5(0xb4)?function(_0x1da516){return typeof _0x1da516;}:function(_0xb7294b){const _0x58d62e=_0x384cd5;return _0xb7294b&&typeof Symbol==_0x58d62e(0x104)&&_0xb7294b[_0x58d62e(0xb3)]===Symbol&&_0xb7294b!==Symbol[_0x58d62e(0x81)]?'symbol':typeof _0xb7294b;},S(_0x5c9d49);}function Ce(_0x19f620,_0x75fe26){const _0x2d2432=_0x49483d;if(S(_0x19f620)!=_0x2d2432(0xa8)||!_0x19f620)return _0x19f620;var _0x35571a=_0x19f620[Symbol[_0x2d2432(0x10c)]];if(_0x35571a!==void 0x0){var _0x45a69c=_0x35571a['call'](_0x19f620,_0x75fe26||_0x2d2432(0xb1));if(S(_0x45a69c)!=_0x2d2432(0xa8))return _0x45a69c;throw TypeError(_0x2d2432(0xb7));}return(_0x75fe26===_0x2d2432(0xa2)?String:Number)(_0x19f620);}function we(_0x1cdb53){const _0x28ce26=_0x49483d;var _0x3f9364=Ce(_0x1cdb53,_0x28ce26(0xa2));return S(_0x3f9364)=='symbol'?_0x3f9364:_0x3f9364+'';}function C(_0x53414e,_0xd559ea,_0x485df3){const _0x441a36=_0x49483d;return(_0xd559ea=we(_0xd559ea))in _0x53414e?Object[_0x441a36(0xc0)](_0x53414e,_0xd559ea,{'value':_0x485df3,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x53414e[_0xd559ea]=_0x485df3,_0x53414e;}var w=class extends _0x24e448{constructor(..._0x3f7706){const _0x567a72=_0x49483d;super(..._0x3f7706),C(this,_0x567a72(0xcf),new Map()),C(this,_0x567a72(0xf2),new _0x4c06b3()),C(this,_0x567a72(0x7b),this[_0x567a72(0xf2)][_0x567a72(0xd0)]());}[_0x49483d(0xa6)](_0x2d1548,_0x208336){const _0x157562=_0x49483d;return y(this[_0x157562(0xcf)][_0x157562(0xbd)](_0x2d1548))[_0x157562(0x77)][_0x208336];}['setCodeConfig'](_0x15f6c5,_0x24609d,_0x1c0038){const _0x2e993c=_0x49483d;this[_0x2e993c(0x8d)](_0x15f6c5,_0x24609d,b(this[_0x2e993c(0xcf)][_0x2e993c(0xbd)](_0x15f6c5),_0x24609d,_0x1c0038));}[_0x49483d(0xfd)](_0x58caac,_0x316b73){const _0x5a0ec4=_0x49483d;this['_setResource'](_0x58caac,_0x316b73,x(this[_0x5a0ec4(0xcf)][_0x5a0ec4(0xbd)](_0x58caac),_0x316b73));}['serialize'](_0x31ee18){const _0x5bcac=_0x49483d;return y(this[_0x5bcac(0xcf)][_0x5bcac(0xbd)](_0x31ee18));}['deserialize'](_0xe9376d,_0x32d901){const _0x515507=_0x49483d;this[_0x515507(0xcf)]['set'](_0xe9376d,y(_0x32d901)),this[_0x515507(0xf2)][_0x515507(0xd4)]({'unitId':_0xe9376d});}[_0x49483d(0xed)](_0x15de40){const _0x3cdd62=_0x49483d;this[_0x3cdd62(0xcf)][_0x3cdd62(0xe1)](_0x15de40),this[_0x3cdd62(0xf2)][_0x3cdd62(0xd4)]({'unitId':_0x15de40});}[_0x49483d(0x7a)](){const _0x885d59=_0x49483d;super[_0x885d59(0x7a)](),this[_0x885d59(0xcf)]['clear'](),this[_0x885d59(0xf2)][_0x885d59(0x68)]();}['_setResource'](_0x35c54b,_0x99d3eb,_0x54c80f){const _0x4bd794=_0x49483d;this[_0x4bd794(0xcf)][_0x4bd794(0xf3)](_0x35c54b,_0x54c80f),this['_change$'][_0x4bd794(0xd4)]({'unitId':_0x35c54b,'blockId':_0x99d3eb});}};const Te={'id':_0x49483d(0xc8),'type':_0x446cfc['MUTATION'],'handler':(_0x3b7a40,_0x74202d)=>!(_0x74202d!=null&&_0x74202d[_0x49483d(0x10b)])||!_0x74202d['blockId']?!0x1:(_0x3b7a40[_0x49483d(0xbd)](w)[_0x49483d(0xb2)](_0x74202d[_0x49483d(0x10b)],_0x74202d['blockId'],_0x74202d['config']),!0x0)},T={'id':_0x49483d(0xf6),'type':_0x446cfc[_0x49483d(0x8e)],'handler':(_0x189ccb,_0x5e75f1)=>!(_0x5e75f1!=null&&_0x5e75f1[_0x49483d(0x10b)])||!_0x5e75f1[_0x49483d(0x96)]?!0x1:(_0x189ccb[_0x49483d(0xbd)](w)[_0x49483d(0xfd)](_0x5e75f1[_0x49483d(0x10b)],_0x5e75f1[_0x49483d(0x96)]),!0x0)},Ee=_0x49483d(0x93);var E=class extends Error{constructor(_0x6af3ef=_0x49483d(0xd9)){super(_0x6af3ef);}};function De(_0x1e38d4){const _0x1e421d=_0x49483d;var _0x14805d;let _0x1292a6=O(_0x1e38d4[_0x1e421d(0xc6)]),_0x3b113a=A(_0x1292a6),_0x4fc674=ke(_0x1e38d4['startOffset'],_0x1e38d4[_0x1e421d(0x105)]),_0x58ddd1=_0x4fc674?(_0x14805d=_0x3b113a[_0x1e421d(0x79)])==null?void 0x0:_0x14805d[_0x1e421d(0xd5)](_0x56aba9=>{const _0x44d97e=_0x1e421d;let _0x47f8fe=_0x5c8dbe(_0x56aba9);return _0x47f8fe[_0x44d97e(0x10e)]===_0x4fc674[_0x44d97e(0x10e)]&&_0x47f8fe[_0x44d97e(0x105)]===_0x4fc674[_0x44d97e(0x105)];}):void 0x0,{startOffset:_0x21361e,endOffset:_0x486c81}=_0x58ddd1?_0x4fc674:We(_0x3b113a,_0x1e38d4[_0x1e421d(0x10e)],_0x1e38d4[_0x1e421d(0x105)],_0x1e38d4[_0x1e421d(0xa9)]);if(!_0x58ddd1&&Ae(_0x3b113a,_0x21361e,_0x486c81))throw new E(_0x1e421d(0x9e));let _0x9cadf8=qe(_0x3b113a,_0x21361e,_0x486c81),_0x1538e9=(_0x58ddd1==null?void 0x0:_0x58ddd1[_0x1e421d(0x96)])??_0x1e38d4[_0x1e421d(0x96)],_0xd79115=b(_0x1e38d4[_0x1e421d(0xd1)],_0x1538e9,{...Se,..._0x1e38d4[_0x1e421d(0x9c)]});if(_0x58ddd1)return _0x58ddd1['blockType']=_0x2324fb['CODE'],Oe(_0x3b113a,_0x21361e,_0x486c81),ze(_0x3b113a,_0x21361e,_0x486c81,_0x9cadf8),N(_0x3b113a,_0x58ddd1),{'nextDocumentData':_0x1292a6,'nextMetadata':_0xd79115,'cursorOffset':_0x21361e+0x1};if(_0x21361e===_0x486c81){var _0x27b7c0,_0x3f1ad0;let _0x71142d=''+_0x23e365[_0x1e421d(0xea)]+_0x23e365[_0x1e421d(0xff)]+_0x23e365[_0x1e421d(0x94)];P(_0x3b113a,_0x21361e,_0x71142d,{'paragraphs':[{'startIndex':0x1,'paragraphId':_0x338f66(new Set((_0x27b7c0=_0x3b113a[_0x1e421d(0x8a)])==null?void 0x0:_0x27b7c0[_0x1e421d(0x10f)](_0x140ef2=>_0x140ef2[_0x1e421d(0xe3)]))),'paragraphStyle':Re(!0x0,!0x0,_0x9cadf8)}],'blockRanges':[{'blockId':_0x1538e9,'blockType':_0x2324fb[_0x1e421d(0x89)],'startIndex':0x0,'endIndex':_0x71142d['length']-0x1}]});let _0xa00bb6=(_0x3f1ad0=_0x3b113a[_0x1e421d(0x79)])==null?void 0x0:_0x3f1ad0[_0x1e421d(0xd5)](_0x2d2851=>_0x2d2851['blockId']===_0x1538e9);return _0xa00bb6&&N(_0x3b113a,_0xa00bb6),{'nextDocumentData':_0x1292a6,'nextMetadata':_0xd79115,'cursorOffset':_0x21361e+0x1};}P(_0x3b113a,_0x486c81,_0x23e365[_0x1e421d(0x94)]),P(_0x3b113a,_0x21361e,_0x23e365[_0x1e421d(0xea)]),ze(_0x3b113a,_0x21361e,_0x486c81+0x1,_0x9cadf8);let _0xa825fe={'blockId':_0x1538e9,'blockType':_0x2324fb['CODE'],'startIndex':_0x21361e,'endIndex':_0x486c81+0x1};return _0x3b113a[_0x1e421d(0x79)]=[..._0x3b113a['blockRanges']??[],_0xa825fe][_0x1e421d(0x8f)]((_0x42c256,_0x4958a6)=>_0x42c256[_0x1e421d(0xca)]-_0x4958a6['startIndex']),N(_0x3b113a,_0xa825fe),{'nextDocumentData':_0x1292a6,'nextMetadata':_0xd79115,'cursorOffset':_0x21361e+0x1};}function Oe(_0x569f5a,_0xc9ffed,_0x7f39ee){const _0x31a78e=_0x49483d;(_0x569f5a[_0x31a78e(0x8a)]??[])[_0x31a78e(0xf1)](_0xa460f6=>_0xa460f6[_0x31a78e(0xca)]>_0xc9ffed&&_0xa460f6[_0x31a78e(0xca)]<_0x7f39ee)[_0x31a78e(0xe5)](_0x2df4eb=>{const _0x546be9=_0x31a78e;let _0x27ff86={..._0x2df4eb['paragraphStyle']??{}};delete _0x27ff86['spaceAbove'],delete _0x27ff86[_0x546be9(0xe4)],_0x2df4eb[_0x546be9(0xdc)]=_0x27ff86;});}function ke(_0x5ee40c,_0x1a06f8){const _0x4acf41=_0x49483d;return _0x5ee40c==null||_0x1a06f8==null||_0x5ee40c===_0x1a06f8?null:{'startOffset':Math[_0x4acf41(0xef)](_0x5ee40c,_0x1a06f8),'endOffset':Math[_0x4acf41(0xda)](_0x5ee40c,_0x1a06f8)};}function Ae(_0x4d375f,_0x29f319,_0x5a009b){const _0xb2567=_0x49483d;return(_0x4d375f[_0xb2567(0x79)]??[])[_0xb2567(0xbf)](_0x65238=>{let _0x142255=_0x5c8dbe(_0x65238);return _0x29f319===_0x5a009b?_0x116958(_0x142255,_0x29f319):_0x467d94(_0x142255,{'startOffset':_0x29f319,'endOffset':_0x5a009b});});}function je(_0x7091ae){const _0x18f848=_0x49483d;return{'nextDocumentData':O(_0x7091ae[_0x18f848(0xc6)]),'nextMetadata':b(_0x7091ae[_0x18f848(0xd1)],_0x7091ae['blockId'],_0x7091ae[_0x18f848(0x9c)]),'cursorOffset':0x0};}function D(_0x187855){const _0x43f178=_0x49483d;let _0x14ae2b=O(_0x187855[_0x43f178(0xc6)]),_0x17a60e=A(_0x14ae2b),_0x4e97d7=Fe(_0x17a60e,_0x187855[_0x43f178(0x96)]);if(!_0x4e97d7)return null;let _0x44597e=He(_0x17a60e,_0x4e97d7);return{'nextDocumentData':_0x14ae2b,'nextMetadata':x(_0x187855['metadata'],_0x187855[_0x43f178(0x96)]),'cursorOffset':_0x44597e};}function Me(_0x5c21a1){const _0x5aa05d=_0x49483d;var _0x3c4db0;let _0x100d51=O(_0x5c21a1[_0x5aa05d(0xc6)]),_0xd4c3d0=A(_0x100d51),_0x58bb3d=Fe(_0xd4c3d0,_0x5c21a1[_0x5aa05d(0x96)]);if(!_0x58bb3d)return null;let _0x488ce2=_0x5c8dbe(_0x58bb3d);return F(_0xd4c3d0,_0x488ce2[_0x5aa05d(0x10e)],_0x488ce2[_0x5aa05d(0x105)]),_0xd4c3d0['blockRanges']=(_0x3c4db0=_0xd4c3d0[_0x5aa05d(0x79)])==null?void 0x0:_0x3c4db0[_0x5aa05d(0xf1)](_0x295d33=>_0x295d33[_0x5aa05d(0x96)]!==_0x5c21a1[_0x5aa05d(0x96)]),{'nextDocumentData':_0x100d51,'nextMetadata':x(_0x5c21a1[_0x5aa05d(0xd1)],_0x5c21a1[_0x5aa05d(0x96)]),'cursorOffset':_0x58bb3d['startIndex']};}function Ne(_0x2cd8b9){const _0x21104c=_0x49483d;let _0x13d538=O(_0x2cd8b9[_0x21104c(0xc6)]),_0x1200fb=A(_0x13d538),_0x5c0da3=Le(_0x1200fb,_0x2cd8b9[_0x21104c(0xdb)]);return _0x5c0da3&&Pe(_0x13d538,_0x1200fb,_0x5c0da3,_0x2cd8b9[_0x21104c(0xdb)],_0x2cd8b9[_0x21104c(0x87)])||null;}function Pe(_0xf4e8f8,_0x740478,_0x55f7e3,_0x4fd208,_0x2c5134){const _0x420437=_0x49483d;let _0x5812b1=$e(_0x740478,_0x55f7e3,_0x4fd208,_0x2c5134);if(!_0x5812b1)return null;let _0x3bd5de=_0x5812b1[_0x420437(0xd3)]-0x1;return F(_0x740478,_0x5812b1[_0x420437(0x6b)][_0x420437(0xca)],_0x5812b1[_0x420437(0x6b)][_0x420437(0xca)]+0x1),{'nextDocumentData':_0xf4e8f8,'cursorOffset':_0x3bd5de};}function Fe(_0x2a8ec7,_0x221057){const _0x4f4f12=_0x49483d;var _0x2e9c51;return _0x2a8ec7==null||(_0x2e9c51=_0x2a8ec7[_0x4f4f12(0x79)])==null?void 0x0:_0x2e9c51['find'](_0x227b86=>_0x227b86[_0x4f4f12(0xc4)]===_0x2324fb[_0x4f4f12(0x89)]&&_0x227b86[_0x4f4f12(0x96)]===_0x221057);}function Ie(_0x339bef){const _0x34ba6c=_0x49483d;let _0x1ad03d=_0x339bef[_0x34ba6c(0xc6)][_0x34ba6c(0xc3)];if(!_0x1ad03d)return!0x1;let _0x406129=_0x339bef[_0x34ba6c(0x92)]==='left'?_0x339bef[_0x34ba6c(0xdb)]-0x1:_0x339bef[_0x34ba6c(0xdb)],_0x97ab16=_0x339bef[_0x34ba6c(0x92)]===_0x34ba6c(0xe9)?_0x339bef[_0x34ba6c(0xdb)]+0x1:_0x406129;return(_0x1ad03d[_0x34ba6c(0x79)]??[])['some'](_0x2e8d0b=>_0x2e8d0b[_0x34ba6c(0xc4)]===_0x2324fb[_0x34ba6c(0x89)]?_0x406129===_0x2e8d0b[_0x34ba6c(0xca)]||_0x406129===_0x2e8d0b[_0x34ba6c(0xfb)]||_0x97ab16===_0x2e8d0b['startIndex']||_0x97ab16===_0x2e8d0b[_0x34ba6c(0xfb)]:!0x1);}function Le(_0x28d177,_0x22f150){const _0xa78fcf=_0x49483d;var _0x332593;return(_0x332593=_0x28d177[_0xa78fcf(0x79)])==null?void 0x0:_0x332593[_0xa78fcf(0xd5)](_0x2b0e39=>{const _0x36e1e9=_0xa78fcf;let _0x44e7dc=M(_0x2b0e39);return _0x2b0e39['blockType']===_0x2324fb[_0x36e1e9(0x89)]&&_0x2b0e39[_0x36e1e9(0xca)]<=_0x22f150&&_0x22f150<=_0x44e7dc+0x2;});}function Re(_0x3f45ae,_0x3b02a5,_0x1ed424=!0x1){const _0x1efc96=_0x49483d;return{'indentEnd':{'v':0x14},'indentStart':{'v':0x14},'keepLines':_0x29f404[_0x1efc96(0x97)],'keepNext':_0x3b02a5?_0x29f404[_0x1efc96(0x78)]:_0x29f404[_0x1efc96(0x97)],'widowControl':_0x29f404['TRUE'],..._0x3f45ae&&_0x1ed424?{'spaceAbove':{'v':0x8}}:{},'textStyle':{'ff':Ee,'fs':0xc}};}function ze(_0x391312,_0x11c35b,_0x28e67c,_0x5572d3=!0x1){const _0x16e5ba=_0x49483d;let _0x527240=(_0x391312[_0x16e5ba(0x8a)]??[])[_0x16e5ba(0xf1)](_0x12170c=>_0x12170c[_0x16e5ba(0xca)]>_0x11c35b&&_0x12170c[_0x16e5ba(0xca)]<_0x28e67c);_0x527240[_0x16e5ba(0xe5)]((_0x13d09f,_0x2e86f2)=>{const _0x403290=_0x16e5ba;_0x13d09f[_0x403290(0xdc)]={..._0x13d09f[_0x403290(0xdc)]??{},...Re(_0x2e86f2===0x0,_0x2e86f2===_0x527240[_0x403290(0xa3)]-0x1,_0x5572d3)};});}function Be(_0x424465){const _0x5a0cb9=_0x49483d;var _0x42d594,_0x4f90ba;let _0x55c935={..._0x424465??{}};return delete _0x55c935['indentEnd'],delete _0x55c935[_0x5a0cb9(0xb8)],delete _0x55c935[_0x5a0cb9(0xa7)],delete _0x55c935[_0x5a0cb9(0xe4)],delete _0x55c935['keepLines'],delete _0x55c935[_0x5a0cb9(0xf7)],delete _0x55c935[_0x5a0cb9(0xfa)],((_0x42d594=_0x55c935['textStyle'])==null?void 0x0:_0x42d594['ff'])===Ee&&((_0x4f90ba=_0x55c935[_0x5a0cb9(0x69)])==null?void 0x0:_0x4f90ba['fs'])===0xc&&delete _0x55c935['textStyle'],_0x55c935;}function Ve(_0x136751,_0x3c0278){const _0xdd4f7d=_0x49483d;let _0x597b01=M(_0x3c0278);return(_0x136751[_0xdd4f7d(0x8a)]??[])[_0xdd4f7d(0xf1)](_0x12be88=>_0x12be88['startIndex']>_0x3c0278[_0xdd4f7d(0xca)]&&_0x12be88[_0xdd4f7d(0xca)]<_0x597b01);}function He(_0x319a34,_0x4a07f4){const _0x466d3d=_0x49483d;var _0x33e5e9;let _0x2a8141=M(_0x4a07f4);return Ve(_0x319a34,_0x4a07f4)[_0x466d3d(0xe5)](_0x3a5f34=>{const _0x50da24=_0x466d3d;_0x3a5f34[_0x50da24(0xdc)]=Be(_0x3a5f34[_0x50da24(0xdc)]);}),F(_0x319a34,_0x2a8141,_0x2a8141+0x1),F(_0x319a34,_0x4a07f4[_0x466d3d(0xca)],_0x4a07f4[_0x466d3d(0xca)]+0x1),_0x319a34[_0x466d3d(0x79)]=(_0x33e5e9=_0x319a34[_0x466d3d(0x79)])==null?void 0x0:_0x33e5e9[_0x466d3d(0xf1)](_0x1dd917=>_0x1dd917[_0x466d3d(0x96)]!==_0x4a07f4['blockId']),_0x4a07f4[_0x466d3d(0xca)];}function O(_0x14d594){const _0x16d08f=_0x49483d;return{..._0x14d594,'body':_0x14d594['body']?Ue(_0x14d594[_0x16d08f(0xc3)]):_0x14d594[_0x16d08f(0xc3)]};}function Ue(_0x1d1a3a){const _0x6a3fdc=_0x49483d;var _0x2c65ae,_0x1310ed,_0x32a5ee,_0x17552f,_0x36149d,_0x50d486,_0x257a93,_0x29d0a9,_0x2109ec;return{..._0x1d1a3a,'paragraphs':(_0x2c65ae=_0x1d1a3a[_0x6a3fdc(0x8a)])==null?void 0x0:_0x2c65ae[_0x6a3fdc(0x10f)](_0x48404c=>({..._0x48404c,'bullet':k(_0x48404c[_0x6a3fdc(0xe7)]),'paragraphStyle':k(_0x48404c['paragraphStyle'])})),'sectionBreaks':(_0x1310ed=_0x1d1a3a['sectionBreaks'])==null?void 0x0:_0x1310ed[_0x6a3fdc(0x10f)](_0x50877c=>({..._0x50877c})),'textRuns':(_0x32a5ee=_0x1d1a3a[_0x6a3fdc(0x95)])==null?void 0x0:_0x32a5ee[_0x6a3fdc(0x10f)](_0x539eba=>({..._0x539eba})),'tables':(_0x17552f=_0x1d1a3a[_0x6a3fdc(0xe8)])==null?void 0x0:_0x17552f[_0x6a3fdc(0x10f)](_0x52e5db=>({..._0x52e5db})),'columnGroups':(_0x36149d=_0x1d1a3a[_0x6a3fdc(0xc9)])==null?void 0x0:_0x36149d[_0x6a3fdc(0x10f)](_0x38835a=>{const _0x580558=_0x6a3fdc;var _0x23fa8b;return{..._0x38835a,'columns':(_0x23fa8b=_0x38835a[_0x580558(0xbc)])==null?void 0x0:_0x23fa8b['map'](_0x32505a=>k(_0x32505a))};}),'blockRanges':(_0x50d486=_0x1d1a3a[_0x6a3fdc(0x79)])==null?void 0x0:_0x50d486['map'](_0x118697=>({..._0x118697})),'customRanges':(_0x257a93=_0x1d1a3a[_0x6a3fdc(0x90)])==null?void 0x0:_0x257a93[_0x6a3fdc(0x10f)](_0x53ebbc=>({..._0x53ebbc})),'customDecorations':(_0x29d0a9=_0x1d1a3a[_0x6a3fdc(0xd8)])==null?void 0x0:_0x29d0a9[_0x6a3fdc(0x10f)](_0x4bf904=>({..._0x4bf904})),'customBlocks':(_0x2109ec=_0x1d1a3a[_0x6a3fdc(0x9b)])==null?void 0x0:_0x2109ec['map'](_0x3775bd=>({..._0x3775bd}))};}function k(_0x11b15f){const _0x11112b=_0x49483d;return Array['isArray'](_0x11b15f)?_0x11b15f[_0x11112b(0x10f)](_0x3431e0=>k(_0x3431e0)):!_0x11b15f||typeof _0x11b15f!=_0x11112b(0xa8)?_0x11b15f:Object[_0x11112b(0xf4)](Object[_0x11112b(0x6c)](_0x11b15f)[_0x11112b(0x10f)](([_0x4eff42,_0x4228b3])=>[_0x4eff42,k(_0x4228b3)]));}function _0x1d98(){const _0x53b81e=['paragraphs','registerCommand','TABLE_CELL_END','_setResource','MUTATION','sort','customRanges','getCurrentUnitOfType','direction','monospace','BLOCK_END','textRuns','blockId','TRUE','1356fFBjhY','convert-paragraph','1521960qbcpJR','customBlocks','config','dataStream','Insert\x20range\x20cannot\x20overlap\x20an\x20existing\x20document\x20block','stringify','docs-code.command.remove','packageName','string','length','replaceDocRanges','_initResource','getCodeConfig','spaceAbove','object','insertionMode','replaceOp','_docsCodeModel','selectionManager','endsWith','model','getUnit','handler','default','setCodeConfig','constructor','symbol','_config','getSnapshot','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','indentStart','500717rmLAri','COMMAND','_resourceManagerService','columns','get','every','some','defineProperty','keys','docs-code.command.unwrap','body','blockType','compose','documentData','commandService','docs-code.mutation.set-config','columnGroups','startIndex','insert','registerPluginResource','decorate','nextDocumentData','_resources','asObservable','metadata','parse','endTokenOffset','next','find','_commandService','getParagraphsInRange','customDecorations','Insert\x20range\x20cannot\x20cross\x20table\x20cell\x20boundaries','max','cursorOffset','paragraphStyle','indexOf','push','docs-code.command.cancel-empty-paragraph','from','delete','disposeWithMe','paragraphId','spaceBelow','forEach','syncExecuteCommand','bullet','tables','right','BLOCK_START','1855260FWutor','insertLength','removeUnit','iterator','min','removeOp','filter','_change$','set','fromEntries','insert-new','docs-code.mutation.remove-config','keepNext','pluginName','docs-code.command.consume-boundary-delete','widowControl','endIndex','_configService','removeCode','getInstance','PARAGRAPH','UNIVER_DOC','insertOp','start','34295QHiICr','function','endOffset','previousDocumentData','onStarting','type','version','1245408jwONUG','unitId','toPrimitive','range','startOffset','map','deserialize','getUnitId','isArray','complete','textStyle','_injector','paragraph','entries','sectionBreaks','docs-code.config','getTextRanges','editOp','startTokenOffset','TABLE_CELL_START','javascript','retain','Document\x20body\x20is\x20required','DOC_CODE_PLUGIN','codes','FALSE','blockRanges','dispose','change$','serialize','1.0.2','add','2458440iBVkEC','SECTION_BREAK','prototype','docs-code.command.insert-below','reduce','nextMetadata','7903SHlkbH','slice','paragraphStartIndex','@univerjs-pro/docs-code','CODE'];_0x1d98=function(){return _0x53b81e;};return _0x1d98();}function A(_0x26f889){const _0x49f3d3=_0x49483d;if(!_0x26f889['body'])throw Error(_0x49f3d3(0x75));return _0x26f889[_0x49f3d3(0xc3)];}function We(_0x527721,_0x3d912d,_0x3ddc6f,_0x2e2e3b=_0x49483d(0x99)){const _0x418e8a=_0x49483d;if(_0x3d912d==null||_0x3ddc6f==null){let _0x30a532=Ke(_0x527721);return{'startOffset':_0x30a532,'endOffset':_0x30a532};}let _0x11590e=Math[_0x418e8a(0xef)](_0x3d912d,_0x3ddc6f),_0x40eb22=Math[_0x418e8a(0xda)](_0x3d912d,_0x3ddc6f),_0x42d7ec=Ze(_0x527721,_0x11590e,_0x40eb22);return _0x11590e===_0x40eb22?_0x2e2e3b===_0x418e8a(0xf5)?{'startOffset':_0x11590e,'endOffset':_0x40eb22}:Ge(_0x527721,_0x11590e,_0x42d7ec):Je(_0x527721,_0x11590e,_0x40eb22,_0x42d7ec);}function Ge(_0x372ccf,_0x42cbbc,_0x32c72a){const _0x16b1c7=_0x49483d;let _0x4a3047=Ye(_0x372ccf,_0x42cbbc);if(_0x4a3047){let _0x481536=j(_0x372ccf,_0x4a3047,_0x32c72a);if(_0x481536<_0x4a3047[_0x16b1c7(0xca)])return{'startOffset':_0x481536,'endOffset':_0x32c72a?Math[_0x16b1c7(0xef)](_0x4a3047['startIndex']+0x1,_0x32c72a['endOffset']):_0x4a3047[_0x16b1c7(0xca)]+0x1};}let _0x2aa04f=_0x42cbbc===0x0&&_0x372ccf[_0x16b1c7(0x9d)][0x0]===_0x23e365[_0x16b1c7(0xff)]?0x1:_0x42cbbc;return{'startOffset':_0x2aa04f,'endOffset':_0x2aa04f};}function Ke(_0x315d7c){const _0x2616af=_0x49483d;return _0x315d7c['dataStream'][_0x2616af(0xad)](_0x23e365[_0x2616af(0x80)])?Math[_0x2616af(0xda)](0x0,_0x315d7c[_0x2616af(0x9d)][_0x2616af(0xa3)]-0x1):_0x315d7c[_0x2616af(0x9d)]['length'];}function qe(_0x5aa023,_0x1f7304,_0x498d94){const _0x235637=_0x49483d;var _0x3cc270;let _0x88649a=Math[_0x235637(0xef)](_0x1f7304,_0x498d94),_0x9138e5=Math[_0x235637(0xda)](_0x1f7304,_0x498d94);return!!((_0x3cc270=_0x5aa023[_0x235637(0xe8)])!=null&&_0x3cc270[_0x235637(0xbf)](_0x5d51c6=>_0x88649a>_0x5d51c6['startIndex']&&_0x88649a<_0x5d51c6[_0x235637(0xfb)]||_0x9138e5>_0x5d51c6['startIndex']&&_0x9138e5<_0x5d51c6[_0x235637(0xfb)]||_0x88649a<=_0x5d51c6[_0x235637(0xca)]&&_0x9138e5>=_0x5d51c6['endIndex']));}function Je(_0x3ce0cc,_0x3510e7,_0x94affa,_0x5bc6f9){const _0x118174=_0x49483d;let _0x5334a5=[..._0x3ce0cc[_0x118174(0x8a)]??[]][_0x118174(0x8f)]((_0x3d9f89,_0x233e69)=>_0x3d9f89[_0x118174(0xca)]-_0x233e69['startIndex']),_0x58dfaf=_0x43bde5(_0x3ce0cc),_0x277b49=_0x5334a5[_0x118174(0xd5)](_0x3bfc51=>j(_0x3ce0cc,_0x3bfc51,_0x5bc6f9,_0x58dfaf)<=_0x3510e7&&_0x3510e7<=_0x3bfc51[_0x118174(0xca)]),_0x27158e=_0x5334a5['find'](_0x168630=>_0x168630[_0x118174(0xca)]>=_0x94affa-0x1)??_0x5334a5[_0x5334a5['length']-0x1];return{'startOffset':_0x277b49?j(_0x3ce0cc,_0x277b49,_0x5bc6f9,_0x58dfaf):_0x3510e7,'endOffset':_0x27158e?Xe(_0x27158e,_0x5bc6f9):_0x94affa};}function Ye(_0x1558ed,_0x811343){const _0x53791f=_0x49483d;let _0x19b046=[..._0x1558ed[_0x53791f(0x8a)]??[]]['sort']((_0x56b8c4,_0xcc6c14)=>_0x56b8c4['startIndex']-_0xcc6c14[_0x53791f(0xca)]),_0x1fd7f7=_0x43bde5(_0x1558ed);return _0x19b046[_0x53791f(0xd5)](_0x3085e1=>(_0x1fd7f7[_0x53791f(0xbd)](_0x3085e1[_0x53791f(0xca)])??0x0)<=_0x811343&&_0x811343<=_0x3085e1[_0x53791f(0xca)]);}function j(_0xa29b8a,_0x555624,_0x228966,_0x2021c8){const _0x8e7edf=_0x49483d;let _0x42c9b0=(_0x2021c8==null?void 0x0:_0x2021c8['get'](_0x555624[_0x8e7edf(0xca)]))??_0x53b91f(_0xa29b8a,_0x555624);return _0x228966?Math['max'](_0x42c9b0,_0x228966[_0x8e7edf(0x10e)]):_0x42c9b0;}function Xe(_0x1e78c7,_0x2884b2){const _0x22ada6=_0x49483d;let _0x40fb21=_0x1e78c7[_0x22ada6(0xca)]+0x1;return _0x2884b2?Math[_0x22ada6(0xef)](_0x40fb21,_0x2884b2['endOffset']):_0x40fb21;}function Ze(_0x3fd946,_0x21e92d,_0xba3d8){const _0x2ab049=_0x49483d;let _0x2165e6=Qe(_0x3fd946,_0x21e92d),_0x5f3da5=Qe(_0x3fd946,_0x21e92d===_0xba3d8?_0xba3d8:Math['max'](_0x21e92d,_0xba3d8-0x1));if(_0x2165e6||_0x5f3da5){if(!_0x2165e6||!_0x5f3da5||_0x2165e6[_0x2ab049(0x71)]!==_0x5f3da5['startTokenOffset']||_0x2165e6[_0x2ab049(0xd3)]!==_0x5f3da5['endTokenOffset'])throw new E();return _0x2165e6;}}function Qe(_0x9ed5aa,_0x457200){const _0x245c1f=_0x49483d;let _0x37eb87=_0x9ed5aa['dataStream'],_0x22d64c=-0x1;for(let _0x887331=Math['min'](_0x457200,_0x37eb87[_0x245c1f(0xa3)]-0x1);_0x887331>=0x0;_0x887331--){let _0x752d27=_0x37eb87[_0x887331];if(_0x752d27===_0x23e365['TABLE_CELL_END'])return;if(_0x752d27===_0x23e365[_0x245c1f(0x72)]){_0x22d64c=_0x887331;break;}}if(_0x22d64c<0x0)return;let _0x375215=_0x37eb87[_0x245c1f(0xdd)](_0x23e365[_0x245c1f(0x8c)],_0x22d64c+0x1);if(!(_0x375215<0x0||_0x457200<_0x22d64c+0x1||_0x457200>_0x375215-0x1))return{'startOffset':_0x22d64c+0x1,'endOffset':Math[_0x245c1f(0xda)](_0x22d64c+0x1,_0x375215-0x1),'startTokenOffset':_0x22d64c,'endTokenOffset':_0x375215};}function M(_0x16bd20){const _0x1cffa3=_0x49483d;return _0x5c8dbe(_0x16bd20)[_0x1cffa3(0x105)]-0x1;}function $e(_0x1dd05a,_0x50ea1f,_0x4c76dc,_0x1a7407){const _0xba63fb=_0x49483d;let _0x1d9a80=M(_0x50ea1f),_0x3473f6=(_0x1dd05a[_0xba63fb(0x8a)]??[])[_0xba63fb(0xd5)](_0x534be5=>_0x534be5[_0xba63fb(0xca)]===_0x1d9a80+0x1);if(!_0x3473f6||_0x1a7407!=null&&_0x3473f6[_0xba63fb(0xca)]!==_0x1a7407||_0x4c76dc!=null&&(_0x4c76dc<_0x1d9a80||_0x4c76dc>_0x3473f6[_0xba63fb(0xca)]+0x1)||_0x1dd05a[_0xba63fb(0x9d)][_0x3473f6[_0xba63fb(0xca)]]!==_0x23e365[_0xba63fb(0xff)])return null;let _0x3faa15=_0x53b91f(_0x1dd05a,_0x3473f6),_0x40f6b0=_0x1dd05a[_0xba63fb(0x9d)][_0xba63fb(0x86)](_0x3faa15,_0x3473f6['startIndex']);return Array[_0xba63fb(0xe0)](_0x40f6b0)[_0xba63fb(0xbe)](_0x1c3817=>_0x1c3817===_0x23e365[_0xba63fb(0x94)])?{'paragraph':_0x3473f6,'endTokenOffset':_0x1d9a80}:null;}function N(_0x4aac1c,_0x57183e){const _0x595756=_0x49483d;var _0x28a092;let _0x1a104d=M(_0x57183e),_0x57cb3c=_0x4aac1c[_0x595756(0x9d)][_0x1a104d+0x1];(_0x57cb3c===_0x23e365[_0x595756(0x80)]||_0x57cb3c===void 0x0)&&P(_0x4aac1c,_0x1a104d+0x1,_0x23e365[_0x595756(0xff)],{'paragraphs':[{'startIndex':0x0,'paragraphId':_0x338f66(new Set((_0x28a092=_0x4aac1c[_0x595756(0x8a)])==null?void 0x0:_0x28a092[_0x595756(0x10f)](_0xf7aa0=>_0xf7aa0[_0x595756(0xe3)])))}]});}function P(_0x3c719f,_0x1266f0,_0x15fe14,_0x51a13c={}){const _0x31ff68=_0x49483d;var _0x38a78a,_0x28a5a2;_0x15fe14&&(_0x3c719f[_0x31ff68(0x9d)]=''+_0x3c719f['dataStream']['slice'](0x0,_0x1266f0)+_0x15fe14+_0x3c719f[_0x31ff68(0x9d)]['slice'](_0x1266f0),et(_0x3c719f,_0x1266f0,_0x15fe14[_0x31ff68(0xa3)]),(_0x38a78a=_0x51a13c['paragraphs'])!=null&&_0x38a78a[_0x31ff68(0xa3)]&&(_0x3c719f[_0x31ff68(0x8a)]=[..._0x3c719f['paragraphs']??[],..._0x51a13c[_0x31ff68(0x8a)][_0x31ff68(0x10f)](_0x27a966=>({..._0x27a966,'startIndex':_0x27a966[_0x31ff68(0xca)]+_0x1266f0}))][_0x31ff68(0x8f)]((_0x58d0c1,_0x5efc5c)=>_0x58d0c1[_0x31ff68(0xca)]-_0x5efc5c['startIndex'])),(_0x28a5a2=_0x51a13c['blockRanges'])!=null&&_0x28a5a2[_0x31ff68(0xa3)]&&(_0x3c719f[_0x31ff68(0x79)]=[..._0x3c719f[_0x31ff68(0x79)]??[],..._0x51a13c[_0x31ff68(0x79)]['map'](_0x19ed57=>({..._0x19ed57,'startIndex':_0x19ed57[_0x31ff68(0xca)]+_0x1266f0,'endIndex':_0x19ed57[_0x31ff68(0xfb)]+_0x1266f0}))][_0x31ff68(0x8f)]((_0x2aa1d1,_0x57c34b)=>_0x2aa1d1[_0x31ff68(0xca)]-_0x57c34b['startIndex'])));}function F(_0x48e2a9,_0x4c0fd9,_0x582d97){const _0x177543=_0x49483d;let _0x53e781=_0x582d97-_0x4c0fd9;_0x48e2a9[_0x177543(0x9d)]=''+_0x48e2a9[_0x177543(0x9d)][_0x177543(0x86)](0x0,_0x4c0fd9)+_0x48e2a9[_0x177543(0x9d)][_0x177543(0x86)](_0x582d97),tt(_0x48e2a9,_0x4c0fd9,_0x53e781);}function et(_0x54ca30,_0x2b9eb2,_0x5cf9e1){const _0x5afbfb=_0x49483d;_0x54ca30[_0x5afbfb(0x8a)]=I(_0x54ca30[_0x5afbfb(0x8a)],_0x2b9eb2,_0x5cf9e1),_0x54ca30[_0x5afbfb(0x6d)]=I(_0x54ca30[_0x5afbfb(0x6d)],_0x2b9eb2,_0x5cf9e1),_0x54ca30[_0x5afbfb(0x9b)]=I(_0x54ca30[_0x5afbfb(0x9b)],_0x2b9eb2,_0x5cf9e1),_0x54ca30['textRuns']=nt(_0x54ca30[_0x5afbfb(0x95)],_0x2b9eb2,_0x5cf9e1),_0x54ca30[_0x5afbfb(0xe8)]=rt(_0x54ca30['tables'],_0x2b9eb2,_0x5cf9e1),_0x54ca30[_0x5afbfb(0xc9)]=R(_0x54ca30[_0x5afbfb(0xc9)],_0x2b9eb2,_0x5cf9e1),_0x54ca30[_0x5afbfb(0x90)]=R(_0x54ca30[_0x5afbfb(0x90)],_0x2b9eb2,_0x5cf9e1),_0x54ca30[_0x5afbfb(0xd8)]=R(_0x54ca30[_0x5afbfb(0xd8)],_0x2b9eb2,_0x5cf9e1),_0x54ca30[_0x5afbfb(0x79)]=R(_0x54ca30[_0x5afbfb(0x79)],_0x2b9eb2,_0x5cf9e1);}function tt(_0x4b784f,_0x1811bf,_0x11d3a5){const _0x55f1a0=_0x49483d;var _0x55f068,_0x3fa23d;_0x4b784f['paragraphs']=L(_0x4b784f[_0x55f1a0(0x8a)],_0x1811bf,_0x11d3a5),_0x4b784f[_0x55f1a0(0x6d)]=L(_0x4b784f['sectionBreaks'],_0x1811bf,_0x11d3a5),_0x4b784f[_0x55f1a0(0x9b)]=L(_0x4b784f[_0x55f1a0(0x9b)],_0x1811bf,_0x11d3a5),_0x4b784f[_0x55f1a0(0x95)]=(_0x55f068=it((_0x3fa23d=_0x4b784f[_0x55f1a0(0x95)])==null?void 0x0:_0x3fa23d[_0x55f1a0(0x10f)](_0xa8dc8c=>({..._0xa8dc8c,'startIndex':_0xa8dc8c['st'],'endIndex':_0xa8dc8c['ed']})),_0x1811bf,_0x11d3a5))==null?void 0x0:_0x55f068[_0x55f1a0(0x10f)](_0x44d1b4=>{let {startIndex:_0x3c5a04,endIndex:_0x2ba6af,..._0x1b2e46}=_0x44d1b4;return{..._0x1b2e46,'st':_0x3c5a04,'ed':_0x2ba6af};}),_0x4b784f[_0x55f1a0(0xe8)]=it(_0x4b784f[_0x55f1a0(0xe8)],_0x1811bf,_0x11d3a5),_0x4b784f['columnGroups']=z(_0x4b784f[_0x55f1a0(0xc9)],_0x1811bf,_0x11d3a5),_0x4b784f[_0x55f1a0(0x90)]=z(_0x4b784f[_0x55f1a0(0x90)],_0x1811bf,_0x11d3a5),_0x4b784f[_0x55f1a0(0xd8)]=z(_0x4b784f['customDecorations'],_0x1811bf,_0x11d3a5),_0x4b784f[_0x55f1a0(0x79)]=z(_0x4b784f[_0x55f1a0(0x79)],_0x1811bf,_0x11d3a5);}function I(_0x35a8ac,_0xb5d92,_0x3536ca){const _0x2989c3=_0x49483d;return _0x35a8ac==null?void 0x0:_0x35a8ac[_0x2989c3(0x10f)](_0x49764d=>_0x49764d[_0x2989c3(0xca)]>=_0xb5d92?{..._0x49764d,'startIndex':_0x49764d['startIndex']+_0x3536ca}:_0x49764d);}function L(_0x1d4770,_0x34a2d7,_0x15307b){const _0xacf524=_0x49483d;let _0xc61e6c=_0x34a2d7+_0x15307b;return _0x1d4770==null?void 0x0:_0x1d4770[_0xacf524(0x10f)](_0x49ce98=>_0x49ce98[_0xacf524(0xca)]>=_0x34a2d7&&_0x49ce98['startIndex']<_0xc61e6c?null:_0x49ce98[_0xacf524(0xca)]>=_0xc61e6c?{..._0x49ce98,'startIndex':_0x49ce98['startIndex']-_0x15307b}:_0x49ce98)[_0xacf524(0xf1)](_0x41efe3=>_0x41efe3!=null);}function nt(_0x430eea,_0x12f39b,_0x3714b7){const _0x314ba2=_0x49483d;return _0x430eea==null?void 0x0:_0x430eea[_0x314ba2(0x10f)](_0x173020=>_0x173020['st']>=_0x12f39b?{..._0x173020,'st':_0x173020['st']+_0x3714b7,'ed':_0x173020['ed']+_0x3714b7}:_0x173020['ed']>_0x12f39b?{..._0x173020,'ed':_0x173020['ed']+_0x3714b7}:_0x173020);}function R(_0x2264a,_0x249d9e,_0x791a33){const _0x1728bd=_0x49483d;return _0x2264a==null?void 0x0:_0x2264a[_0x1728bd(0x10f)](_0x48860e=>_0x4cbd10(_0x48860e,_0x249d9e,_0x791a33));}function rt(_0x37cbe8,_0x148210,_0x320124){const _0x48a36e=_0x49483d;return _0x37cbe8==null?void 0x0:_0x37cbe8[_0x48a36e(0x10f)](_0xbe57dc=>_0x3f24e6(_0xbe57dc,_0x148210,_0x320124));}function z(_0x26908f,_0x45c75c,_0x522636){const _0x44a783=_0x49483d;return _0x26908f==null?void 0x0:_0x26908f[_0x44a783(0x10f)](_0x35cd26=>_0x2cee19(_0x35cd26,_0x45c75c,_0x522636))['filter'](_0x58a29c=>_0x58a29c!=null);}function it(_0x43824b,_0x53de3f,_0x15acc3){const _0xab3232=_0x49483d;return _0x43824b==null?void 0x0:_0x43824b['map'](_0x5786c3=>_0xc1b9cd(_0x5786c3,_0x53de3f,_0x15acc3))[_0xab3232(0xf1)](_0x3e1274=>_0x3e1274!=null);}function _0x10b3(_0x139bf2,_0x367a17){_0x139bf2=_0x139bf2-0x65;const _0x1d98ba=_0x1d98();let _0x10b317=_0x1d98ba[_0x139bf2];return _0x10b317;}const at={'id':_0x49483d(0x82),'type':_0x446cfc[_0x49483d(0xba)],'handler':_0x54aef2=>{const _0x45975b=_0x49483d;var _0x2e7799;if(_0x584ad5(G(_0x54aef2)))return!0x1;let _0x29ef0f=_0x34eb39(_0x54aef2);if(_0x29ef0f)return _0x54aef2[_0x45975b(0xbd)](_0x330d40)['syncExecuteCommand'](B['id'],{'startOffset':_0x29ef0f[_0x45975b(0x10e)],'endOffset':_0x29ef0f[_0x45975b(0x105)],'insertionMode':_0x45975b(0xf5),'unitId':_0x29ef0f[_0x45975b(0x10b)]});let _0x1cc77b=ft(_0x54aef2);if(!_0x1cc77b)return!0x1;let _0x4c2b84=(_0x2e7799=_0x54aef2[_0x45975b(0xbd)](_0x1f322c)[_0x45975b(0x91)](_0x2fc27d[_0x45975b(0x100)]))==null?void 0x0:_0x2e7799['getBody'](),_0x4d02b7=_0x4c2b84?_0x15574e(_0x4c2b84,_0x1cc77b):_0x1cc77b[_0x45975b(0xca)]+0x1;return _0x54aef2[_0x45975b(0xbd)](_0x330d40)['syncExecuteCommand'](B['id'],{'startOffset':_0x4d02b7,'endOffset':_0x4d02b7});}},ot={'id':_0x49483d(0xf9),'type':_0x446cfc[_0x49483d(0xba)],'handler':()=>!0x0},B={'id':'docs-code.command.insert','type':_0x446cfc[_0x49483d(0xba)],'handler':(_0x5ced54,_0xfff347)=>{const _0x11f6f6=_0x49483d;let _0x4364cb=W(_0x5ced54,_0xfff347==null?void 0x0:_0xfff347[_0x11f6f6(0x10b)]);if(!_0x4364cb)return!0x1;let _0x2f4f7b=G(_0x5ced54);if(_0x584ad5(_0x2f4f7b))return!0x1;let _0x470f30=_0x4364cb[_0x11f6f6(0xae)][_0x11f6f6(0x7c)](_0x4364cb[_0x11f6f6(0x10b)]),_0x447e02=lt(_0xfff347,_0x2f4f7b),_0x36928e=ut(_0x4364cb[_0x11f6f6(0x106)],_0x447e02);if(_0x36928e){if(_0x36928e[_0x11f6f6(0xc4)]!==_0x2324fb['CODE'])return!0x1;let _0x4f47c4=D({'blockId':_0x36928e['blockId'],'documentData':_0x4364cb[_0x11f6f6(0x106)],'metadata':_0x470f30});if(!_0x4f47c4)return!0x1;let _0xc56bdf=Y(_0x4364cb[_0x11f6f6(0xc7)],_0x4364cb[_0x11f6f6(0xac)],_0x4364cb[_0x11f6f6(0x10b)],_0x4364cb[_0x11f6f6(0x106)],_0x4f47c4[_0x11f6f6(0xce)],B['id'],_0x4f47c4[_0x11f6f6(0xdb)]);return _0xc56bdf&&_0x4f47c4[_0x11f6f6(0x84)]&&_0x4364cb[_0x11f6f6(0xae)]['deserialize'](_0x4364cb[_0x11f6f6(0x10b)],_0x4f47c4['nextMetadata']),_0xc56bdf;}let _0x57aa41=(_0xfff347==null?void 0x0:_0xfff347[_0x11f6f6(0x96)])??_0x5cf7a0(0x6),_0xe03c18;try{_0xe03c18=De({'blockId':_0x57aa41,'config':_0xfff347==null?void 0x0:_0xfff347[_0x11f6f6(0x9c)],'documentData':_0x4364cb[_0x11f6f6(0x106)],'endOffset':_0x447e02==null?void 0x0:_0x447e02[_0x11f6f6(0x105)],'insertionMode':_0xfff347==null?void 0x0:_0xfff347[_0x11f6f6(0xa9)],'metadata':_0x470f30,'startOffset':_0x447e02==null?void 0x0:_0x447e02[_0x11f6f6(0x10e)]});}catch(_0x272d0a){if(_0x272d0a instanceof E)return!0x1;throw _0x272d0a;}let _0x28b016=Y(_0x4364cb[_0x11f6f6(0xc7)],_0x4364cb['selectionManager'],_0x4364cb[_0x11f6f6(0x10b)],_0x4364cb['previousDocumentData'],_0xe03c18[_0x11f6f6(0xce)],B['id'],_0xe03c18[_0x11f6f6(0xdb)]);return _0x28b016&&_0xe03c18[_0x11f6f6(0x84)]&&_0x4364cb[_0x11f6f6(0xae)][_0x11f6f6(0x65)](_0x4364cb[_0x11f6f6(0x10b)],_0xe03c18[_0x11f6f6(0x84)]),_0x28b016;}},st={'id':'docs-code.command.update','type':_0x446cfc['COMMAND'],'handler':(_0x6a12c2,_0x2a753a)=>{const _0x13a052=_0x49483d;if(!_0x2a753a)return!0x1;let _0x92192=W(_0x6a12c2,_0x2a753a[_0x13a052(0x10b)]);if(!_0x92192)return!0x1;let _0x1319af=je({'blockId':_0x2a753a[_0x13a052(0x96)],'config':_0x2a753a[_0x13a052(0x9c)],'documentData':_0x92192[_0x13a052(0x106)],'metadata':_0x92192['model'][_0x13a052(0x7c)](_0x92192[_0x13a052(0x10b)])});return _0x1319af[_0x13a052(0x84)]&&_0x92192[_0x13a052(0xae)]['deserialize'](_0x92192[_0x13a052(0x10b)],_0x1319af[_0x13a052(0x84)]),!0x0;}},ct={'id':'docs-code.command.exit','type':_0x446cfc['COMMAND'],'handler':(_0xa76678,_0x21d0f2)=>V[_0x49483d(0xb0)](_0xa76678,_0x21d0f2)},V={'id':_0x49483d(0xc2),'type':_0x446cfc[_0x49483d(0xba)],'handler':(_0x4317f9,_0x1ac49a)=>{const _0xb165f0=_0x49483d;if(!_0x1ac49a)return!0x1;let _0x128479=W(_0x4317f9,_0x1ac49a==null?void 0x0:_0x1ac49a[_0xb165f0(0x10b)]);if(!_0x128479)return!0x1;let _0x27a2db=D({'blockId':_0x1ac49a[_0xb165f0(0x96)],'documentData':_0x128479['previousDocumentData'],'metadata':_0x128479[_0xb165f0(0xae)][_0xb165f0(0x7c)](_0x128479[_0xb165f0(0x10b)])});if(!_0x27a2db)return!0x1;let _0x5bf9be=Y(_0x128479[_0xb165f0(0xc7)],_0x128479[_0xb165f0(0xac)],_0x128479['unitId'],_0x128479[_0xb165f0(0x106)],_0x27a2db[_0xb165f0(0xce)],V['id'],_0x27a2db['cursorOffset']);return _0x5bf9be&&_0x27a2db[_0xb165f0(0x84)]&&_0x128479['model']['deserialize'](_0x128479[_0xb165f0(0x10b)],_0x27a2db[_0xb165f0(0x84)]),_0x5bf9be;}},H={'id':_0x49483d(0xa0),'type':_0x446cfc[_0x49483d(0xba)],'handler':(_0x32bd2a,_0x71fc0f)=>{const _0xe9b79c=_0x49483d;if(!_0x71fc0f)return!0x1;let _0x8665ad=W(_0x32bd2a,_0x71fc0f==null?void 0x0:_0x71fc0f[_0xe9b79c(0x10b)]);if(!_0x8665ad)return!0x1;let _0xf6f7ec=Me({'blockId':_0x71fc0f[_0xe9b79c(0x96)],'documentData':_0x8665ad[_0xe9b79c(0x106)],'metadata':_0x8665ad[_0xe9b79c(0xae)][_0xe9b79c(0x7c)](_0x8665ad[_0xe9b79c(0x10b)])});if(!_0xf6f7ec)return!0x1;let _0x29a4fb=Y(_0x8665ad['commandService'],_0x8665ad[_0xe9b79c(0xac)],_0x8665ad['unitId'],_0x8665ad[_0xe9b79c(0x106)],_0xf6f7ec[_0xe9b79c(0xce)],H['id'],_0xf6f7ec[_0xe9b79c(0xdb)]);return _0x29a4fb&&_0xf6f7ec[_0xe9b79c(0x84)]&&_0x8665ad[_0xe9b79c(0xae)][_0xe9b79c(0x65)](_0x8665ad[_0xe9b79c(0x10b)],_0xf6f7ec[_0xe9b79c(0x84)]),_0x29a4fb;}},U={'id':_0x49483d(0xdf),'type':_0x446cfc[_0x49483d(0xba)],'handler':(_0x1a7e0e,_0x39ac38)=>{const _0x36bd4e=_0x49483d;var _0x33d82f;let _0x373be3=W(_0x1a7e0e,_0x39ac38==null?void 0x0:_0x39ac38['unitId']);if(!_0x373be3)return!0x1;let _0x3c9908=(_0x39ac38==null?void 0x0:_0x39ac38['cursorOffset'])??((_0x33d82f=G(_0x1a7e0e))==null?void 0x0:_0x33d82f[_0x36bd4e(0x10e)]);if(_0x3c9908==null)return!0x1;let _0x54d46e=Ne({'cursorOffset':_0x3c9908,'documentData':_0x373be3[_0x36bd4e(0x106)],'paragraphStartIndex':_0x39ac38==null?void 0x0:_0x39ac38['paragraphStartIndex']});return _0x54d46e?Y(_0x373be3[_0x36bd4e(0xc7)],_0x373be3['selectionManager'],_0x373be3['unitId'],_0x373be3[_0x36bd4e(0x106)],_0x54d46e[_0x36bd4e(0xce)],U['id'],_0x54d46e[_0x36bd4e(0xdb)]):!0x1;}};function W(_0xd4eb6a,_0x4cb76d){const _0x24888c=_0x49483d;let _0x4ee59d=_0xd4eb6a[_0x24888c(0xbd)](_0x1f322c),_0x3ffd57=_0x4cb76d?_0x4ee59d[_0x24888c(0xaf)](_0x4cb76d,_0x2fc27d[_0x24888c(0x100)]):_0x4ee59d['getCurrentUnitOfType'](_0x2fc27d[_0x24888c(0x100)]);return _0x3ffd57?{'commandService':_0xd4eb6a[_0x24888c(0xbd)](_0x330d40),'model':_0xd4eb6a[_0x24888c(0xbd)](w),'previousDocumentData':_0x3ffd57[_0x24888c(0xb6)](),'selectionManager':_0xd4eb6a['get'](_0x2baf85),'unitId':_0x3ffd57[_0x24888c(0x66)]()}:null;}function G(_0x34f940){const _0x4f44bd=_0x49483d;var _0x5a03b0;return(_0x5a03b0=_0x34f940[_0x4f44bd(0xbd)](_0x2baf85)[_0x4f44bd(0x6f)]())==null?void 0x0:_0x5a03b0[0x0];}function lt(_0x555859,_0x19d3df){const _0x377f13=_0x49483d;let _0x14de05=(_0x555859==null?void 0x0:_0x555859[_0x377f13(0x10e)])??(_0x19d3df==null?void 0x0:_0x19d3df[_0x377f13(0x10e)]),_0x21b04f=(_0x555859==null?void 0x0:_0x555859[_0x377f13(0x105)])??(_0x19d3df==null?void 0x0:_0x19d3df[_0x377f13(0x105)]);if(_0x14de05!=null&&_0x21b04f!=null)return{'endOffset':Math[_0x377f13(0xda)](_0x14de05,_0x21b04f),'startOffset':Math[_0x377f13(0xef)](_0x14de05,_0x21b04f)};}function ut(_0xa33196,_0x56ce2c){const _0x591e07=_0x49483d;var _0xf3b25;if(!_0x56ce2c)return;let _0x520d36=dt(_0x56ce2c);return(_0xf3b25=_0xa33196['body'])==null||(_0xf3b25=_0xf3b25[_0x591e07(0x79)])==null?void 0x0:_0xf3b25[_0x591e07(0xd5)](_0x5e51ee=>{const _0x7cb9f8=_0x591e07;let _0x5dfe9c=_0x5c8dbe(_0x5e51ee);return _0x56ce2c[_0x7cb9f8(0x10e)]===_0x56ce2c['endOffset']?_0x116958(_0x5dfe9c,_0x520d36):_0x2d8224(_0x5dfe9c,_0x520d36);});}function dt(_0x2e8a1f){const _0x35289b=_0x49483d;return _0x2e8a1f[_0x35289b(0x10e)]===_0x2e8a1f[_0x35289b(0x105)]?_0x2e8a1f[_0x35289b(0x10e)]:_0x2e8a1f['startOffset']+0x1;}function ft(_0x427789){const _0x19f654=_0x49483d;let _0x405096=G(_0x427789);if(!_0x405096)return null;let _0x2b49f8=_0x427789[_0x19f654(0xbd)](_0x1f322c)['getCurrentUnitOfType'](_0x2fc27d[_0x19f654(0x100)]),_0x21ddc4=_0x2b49f8==null?void 0x0:_0x2b49f8['getBody']();return _0x21ddc4?_0x18ba16[_0x19f654(0x10d)][_0x19f654(0xd7)](_0x405096,_0x21ddc4['paragraphs']??[],_0x21ddc4['dataStream']??'')[0x0]??null:null;}function pt(_0x222ea4,_0x2c117a){const _0x261dfb=_0x49483d;let _0x2a1c3c=_0x222ea4['body'],_0x79e5c3=_0x2c117a['body'],_0x4de52e=_0x5c68b1(_0x2a1c3c,_0x79e5c3);return[_0x4de52e&&_0x79e5c3?mt(_0x79e5c3,_0x4de52e):null,_0x4de52e?null:ht(_0x2a1c3c,_0x79e5c3)]['filter'](Boolean)[_0x261dfb(0x83)]((_0x570cd9,_0x648e99)=>_0x424cd6[_0x261dfb(0xc5)](_0x570cd9,_0x648e99),null);}function mt(_0x53d23b,_0x4171f5){const _0xb39234=_0x49483d;let _0x434ce8=new _0x227fc3();return _0x434ce8[_0xb39234(0x74)](_0x4171f5[_0xb39234(0x102)]),_0x4171f5['insertLength']>0x0&&_0x434ce8[_0xb39234(0xcb)](_0x4171f5[_0xb39234(0xec)],_0x25d42f(_0x53d23b,_0x4171f5[_0xb39234(0x102)],_0x4171f5['start']+_0x4171f5['insertLength'],!0x1)),_0x4171f5['deleteLength']>0x0&&_0x434ce8[_0xb39234(0xe1)](_0x4171f5['deleteLength']),_0x424cd6[_0xb39234(0xfe)]()[_0xb39234(0x70)](_0x434ce8[_0xb39234(0x7c)](),[_0xb39234(0xc3)]);}function ht(_0x1da439,_0x1ed598){const _0x1d21a5=_0x49483d;let _0x253ce5=[],_0x2b67a7=_0x1da439?_t(_0x1da439):void 0x0,_0x3691f0=_0x1ed598?_t(_0x1ed598):void 0x0;for(let _0x38473a of gt)K(_0x424cd6[_0x1d21a5(0xfe)](),[_0x1d21a5(0xc3),_0x38473a],_0x2b67a7==null?void 0x0:_0x2b67a7[_0x38473a],_0x3691f0==null?void 0x0:_0x3691f0[_0x38473a],_0x253ce5);return _0x253ce5[_0x1d21a5(0x83)]((_0x5dbd29,_0x57f324)=>_0x424cd6[_0x1d21a5(0xc5)](_0x5dbd29,_0x57f324),null);}const gt=[_0x49483d(0x8a),_0x49483d(0x6d),_0x49483d(0xe8),_0x49483d(0xc9),_0x49483d(0x79),_0x49483d(0x9b),'customRanges',_0x49483d(0xd8),_0x49483d(0x95)];function _t(_0x788228){return _0x788228;}function K(_0x24a0fd,_0x36df53,_0x356f6e,_0x16d58f,_0x19a41a){const _0xfba002=_0x49483d;if(!J(_0x356f6e,_0x16d58f)){if(_0x356f6e==null){_0x19a41a[_0xfba002(0xde)](_0x24a0fd[_0xfba002(0x101)](_0x36df53,_0x16d58f));return;}if(_0x16d58f==null){_0x19a41a[_0xfba002(0xde)](_0x24a0fd[_0xfba002(0xf0)](_0x36df53,_0x356f6e));return;}if(Array[_0xfba002(0x67)](_0x356f6e)&&Array[_0xfba002(0x67)](_0x16d58f)){vt(_0x24a0fd,_0x36df53,_0x356f6e,_0x16d58f,_0x19a41a);return;}if(q(_0x356f6e)&&q(_0x16d58f)){new Set([...Object[_0xfba002(0xc1)](_0x356f6e),...Object[_0xfba002(0xc1)](_0x16d58f)])['forEach'](_0x4efe8b=>{K(_0x24a0fd,[..._0x36df53,_0x4efe8b],_0x356f6e[_0x4efe8b],_0x16d58f[_0x4efe8b],_0x19a41a);});return;}_0x19a41a[_0xfba002(0xde)](_0x24a0fd[_0xfba002(0xaa)](_0x36df53,_0x356f6e,_0x16d58f));}}function vt(_0x308964,_0x597f92,_0x1a7922,_0x3ef404,_0x1663fc){const _0x22e6c0=_0x49483d;if(_0x1a7922[_0x22e6c0(0xa3)]===_0x3ef404[_0x22e6c0(0xa3)]){_0x1a7922[_0x22e6c0(0xe5)]((_0x211b4e,_0x1d73d1)=>K(_0x308964,[..._0x597f92,_0x1d73d1],_0x211b4e,_0x3ef404[_0x1d73d1],_0x1663fc));return;}let _0x117c98=0x0;for(;_0x117c98<_0x1a7922[_0x22e6c0(0xa3)]&&_0x117c98<_0x3ef404['length']&&J(_0x1a7922[_0x117c98],_0x3ef404[_0x117c98]);)_0x117c98++;let _0x15a85a=_0x1a7922['length']-0x1,_0x278a39=_0x3ef404[_0x22e6c0(0xa3)]-0x1;for(;_0x15a85a>=_0x117c98&&_0x278a39>=_0x117c98&&J(_0x1a7922[_0x15a85a],_0x3ef404[_0x278a39]);)_0x15a85a--,_0x278a39--;for(let _0x43fb6a=_0x15a85a;_0x43fb6a>=_0x117c98;_0x43fb6a--)_0x1663fc[_0x22e6c0(0xde)](_0x308964[_0x22e6c0(0xf0)]([..._0x597f92,_0x43fb6a],_0x1a7922[_0x43fb6a]));for(let _0x3c12d1=_0x117c98;_0x3c12d1<=_0x278a39;_0x3c12d1++)_0x1663fc[_0x22e6c0(0xde)](_0x308964[_0x22e6c0(0x101)]([..._0x597f92,_0x3c12d1],_0x3ef404[_0x3c12d1]));}function q(_0x4797f5){const _0x5d12d5=_0x49483d;return typeof _0x4797f5=='object'&&!!_0x4797f5&&!Array[_0x5d12d5(0x67)](_0x4797f5);}function J(_0x5a92d8,_0x3219c0){const _0x534fbb=_0x49483d;return JSON[_0x534fbb(0x9f)](_0x5a92d8)===JSON[_0x534fbb(0x9f)](_0x3219c0);}function Y(_0x2b8fb0,_0x5ae991,_0x13d374,_0x2c033f,_0x31579f,_0x308447,_0x3db8be){const _0x2c80f3=_0x49483d;let _0x528c68=pt(_0x2c033f,_0x31579f);return _0x528c68?!!_0x2b8fb0[_0x2c80f3(0xe6)](_0x274029['id'],{'unitId':_0x13d374,'actions':_0x528c68,'textRanges':[{'startOffset':_0x3db8be,'endOffset':_0x3db8be,'collapsed':!0x0}],'isEditing':!0x1,'trigger':_0x308447}):(_0x5ae991[_0x2c80f3(0xa4)]([{'startOffset':_0x3db8be,'endOffset':_0x3db8be}],{'unitId':_0x13d374,'subUnitId':_0x13d374},!0x1),!0x0);}const X=_0x49483d(0x76);var yt=_0x49483d(0x88),bt=_0x49483d(0x7d);const xt={};function Z(_0x42699c,_0x3da817){return function(_0x78651b,_0x411faa){_0x3da817(_0x78651b,_0x411faa,_0x42699c);};}function St(_0x1fb6a7,_0x440249,_0x3b8ed4,_0x561e80){const _0x1f96ee=_0x49483d;var _0x1b43ba=arguments[_0x1f96ee(0xa3)],_0x423ae9=_0x1b43ba<0x3?_0x440249:_0x561e80===null?_0x561e80=Object['getOwnPropertyDescriptor'](_0x440249,_0x3b8ed4):_0x561e80,_0x2ba52f;if(typeof Reflect=='object'&&typeof Reflect['decorate']==_0x1f96ee(0x104))_0x423ae9=Reflect[_0x1f96ee(0xcd)](_0x1fb6a7,_0x440249,_0x3b8ed4,_0x561e80);else{for(var _0x12c472=_0x1fb6a7[_0x1f96ee(0xa3)]-0x1;_0x12c472>=0x0;_0x12c472--)(_0x2ba52f=_0x1fb6a7[_0x12c472])&&(_0x423ae9=(_0x1b43ba<0x3?_0x2ba52f(_0x423ae9):_0x1b43ba>0x3?_0x2ba52f(_0x440249,_0x3b8ed4,_0x423ae9):_0x2ba52f(_0x440249,_0x3b8ed4))||_0x423ae9);}return _0x1b43ba>0x3&&_0x423ae9&&Object['defineProperty'](_0x440249,_0x3b8ed4,_0x423ae9),_0x423ae9;}let Q=class extends _0x24e448{constructor(_0x1ee959,_0xb4519d){const _0x58c2d7=_0x49483d;super(),this[_0x58c2d7(0xbb)]=_0x1ee959,this[_0x58c2d7(0xab)]=_0xb4519d,this[_0x58c2d7(0xa5)]();}['_initResource'](){const _0x296147=_0x49483d;this[_0x296147(0xe2)](this[_0x296147(0xbb)][_0x296147(0xcc)]({'pluginName':X,'businesses':[_0x2fc27d[_0x296147(0x100)]],'toJson':_0x300f4=>JSON['stringify'](this[_0x296147(0xab)][_0x296147(0x7c)](_0x300f4)),'parseJson':_0x3cfe2e=>y(JSON[_0x296147(0xd2)](_0x3cfe2e)),'onLoad':(_0x2b4d4d,_0x20dbc8)=>this[_0x296147(0xab)][_0x296147(0x65)](_0x2b4d4d,_0x20dbc8),'onUnLoad':_0x16b5c9=>this[_0x296147(0xab)]['removeUnit'](_0x16b5c9)}));}};Q=St([Z(0x0,_0x4ec5e9),Z(0x1,_0x34c829(w))],Q);let $=class extends _0x5a8ee0{constructor(_0x222113=xt,_0x18758b,_0x590d25,_0x26903b){const _0x146d8d=_0x49483d;super(),this[_0x146d8d(0xb5)]=_0x222113,this[_0x146d8d(0x6a)]=_0x18758b,this[_0x146d8d(0xd6)]=_0x590d25,this[_0x146d8d(0xfc)]=_0x26903b;let {..._0x172860}=_0x1470e9({},xt,this[_0x146d8d(0xb5)]);this[_0x146d8d(0xfc)]['setConfig'](_0x146d8d(0x6e),_0x172860);}[_0x49483d(0x107)](){const _0x5207d1=_0x49483d;this['_injector'][_0x5207d1(0x7e)]([w]),this[_0x5207d1(0x6a)]['add']([Q]),this['_injector'][_0x5207d1(0xbd)](w),this[_0x5207d1(0x6a)][_0x5207d1(0xbd)](Q),[B,at,st,V,H,ct,U,ot,Te,T][_0x5207d1(0xe5)](_0x5dc876=>this['disposeWithMe'](this['_commandService'][_0x5207d1(0x8b)](_0x5dc876)));}};C($,_0x49483d(0xf8),X),C($,_0x49483d(0xa1),yt),C($,_0x49483d(0x109),bt),C($,_0x49483d(0x108),_0x2fc27d[_0x49483d(0x100)]),$=St([_0x5aaaeb(_0xecd332,_0x565d36),Z(0x1,_0x34c829(_0x38f326)),Z(0x2,_0x330d40),Z(0x3,_0x5ce515)],$);export{X as DOCS_CODE_PLUGIN,U as DocsCodeCancelEmptyParagraphCommand,ot as DocsCodeConsumeBoundaryDeleteCommand,at as DocsCodeInsertBelowCommand,B as DocsCodeInsertCommand,w as DocsCodeModel,H as DocsCodeRemoveCommand,V as DocsCodeUnwrapCommand,st as DocsCodeUpdateCommand,T as RemoveDocsCodeConfigMutation,Te as SetDocsCodeConfigMutation,$ as UniverDocsCodePlugin,Ne as buildCancelEmptyCodeParagraphActions,Ie as isCodeBoundaryDelete,v as normalizeDocsCodeConfig,y as normalizeDocsCodeMetadataResource};
|
package/lib/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var _0x38946e=_0x2f5f;(function(_0x4bcdc6,_0xadef16){var _0x516704=_0x2f5f,_0x2d7b0d=_0x4bcdc6();while(!![]){try{var _0x4a63f0=-parseInt(_0x516704(0x9f))/0x1+-parseInt(_0x516704(0xc7))/0x2*(-parseInt(_0x516704(0xbe))/0x3)+-parseInt(_0x516704(0xae))/0x4+parseInt(_0x516704(0xc9))/0x5+parseInt(_0x516704(0x96))/0x6*(parseInt(_0x516704(0xda))/0x7)+parseInt(_0x516704(0xad))/0x8*(-parseInt(_0x516704(0x97))/0x9)+-parseInt(_0x516704(0xa8))/0xa;if(_0x4a63f0===_0xadef16)break;else _0x2d7b0d['push'](_0x2d7b0d['shift']());}catch(_0x1f9ab4){_0x2d7b0d['push'](_0x2d7b0d['shift']());}}}(_0xeaa7,0xa99a0));import{DocsCodeInsertCommand as _0xe4d73,DocsCodeModel as _0x4ad876,DocsCodeRemoveCommand as _0x2a8caf,DocsCodeUnwrapCommand as _0x238623,DocsCodeUpdateCommand as _0x4f0288,normalizeDocsCodeConfig as _0x290c1a}from'@univerjs-pro/docs-code';import{DataStreamTreeTokenType as _0x41ab50,DocumentBlockRangeType as _0x59ca1e,ICommandService as _0x2172ab,Inject as _0x175244,Injector as _0x18e1ac,generateRandomId as _0x4de038}from'@univerjs/core';import{FDocument as _0x8122f,isParagraphFacade as _0x3e8111}from'@univerjs/docs/facade';function m(_0x25bbaf){'@babel/helpers - typeof';var _0x2fa8aa=_0x2f5f;return m=typeof Symbol=='function'&&typeof Symbol[_0x2fa8aa(0xb9)]==_0x2fa8aa(0xb3)?function(_0x2d6b76){return typeof _0x2d6b76;}:function(_0x28c7b9){var _0xa34637=_0x2fa8aa;return _0x28c7b9&&typeof Symbol==_0xa34637(0xb7)&&_0x28c7b9[_0xa34637(0xbd)]===Symbol&&_0x28c7b9!==Symbol[_0xa34637(0xac)]?'symbol':typeof _0x28c7b9;},m(_0x25bbaf);}function h(_0x44f722,_0x315e0f){var _0x3d2d5b=_0x2f5f;if(m(_0x44f722)!='object'||!_0x44f722)return _0x44f722;var _0x5b8768=_0x44f722[Symbol[_0x3d2d5b(0xcf)]];if(_0x5b8768!==void 0x0){var _0x4d16e8=_0x5b8768[_0x3d2d5b(0xd5)](_0x44f722,_0x315e0f||_0x3d2d5b(0x9e));if(m(_0x4d16e8)!=_0x3d2d5b(0x98))return _0x4d16e8;throw TypeError(_0x3d2d5b(0xcd));}return(_0x315e0f===_0x3d2d5b(0x9b)?String:Number)(_0x44f722);}function _0xeaa7(){var _0x93ca6b=['prototype','297664eHmEFC','3588876MYYmzs','_blockId','extend','createInstance','_getBlockRange','symbol','replace','find','length','function','getCodeConfig','iterator','map','save','endIndex','constructor','21CjUMVF','get','dataStream','getRange','findCodes','SECTION_BREAK','BLOCK_END','_getBlockRanges','slice','268316eNkjVO','blockType','3652890AGCZWC','_unitId','getConfig','updateConfig','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','includes','toPrimitive','getId','startIndex','unwrap','CODE','_createFDocumentCode','call','_getDocumentData','findCodeByText','some','blockId','77fcefOy','config','241062qoGzQQ','36mgEQjg','object','getText','getCodes','string','getCode','describe','default','4846ajOPkv','_document','decorate','PARAGRAPH','blockRanges','_injector','BLOCK_START','text','filter','3660460CHarpO','syncExecuteCommand','body','insertCode'];_0xeaa7=function(){return _0x93ca6b;};return _0xeaa7();}function g(_0x1c0094){var _0x3d16ce=_0x2f5f,_0x5530da=h(_0x1c0094,_0x3d16ce(0x9b));return m(_0x5530da)==_0x3d16ce(0xb3)?_0x5530da:_0x5530da+'';}function _(_0x2a7a33,_0x4f6f26,_0x224bea){return(_0x4f6f26=g(_0x4f6f26))in _0x2a7a33?Object['defineProperty'](_0x2a7a33,_0x4f6f26,{'value':_0x224bea,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x2a7a33[_0x4f6f26]=_0x224bea,_0x2a7a33;}function v(_0x5871a1,_0x119db8){return function(_0x348237,_0x45cf01){_0x119db8(_0x348237,_0x45cf01,_0x5871a1);};}function y(_0x4e0f2a,_0x2a1d1e,_0x162750,_0x2fbfab){var _0x31b9ae=_0x2f5f,_0x28ff29=arguments[_0x31b9ae(0xb6)],_0x361445=_0x28ff29<0x3?_0x2a1d1e:_0x2fbfab===null?_0x2fbfab=Object['getOwnPropertyDescriptor'](_0x2a1d1e,_0x162750):_0x2fbfab,_0x599e39;if(typeof Reflect=='object'&&typeof Reflect[_0x31b9ae(0xa1)]=='function')_0x361445=Reflect[_0x31b9ae(0xa1)](_0x4e0f2a,_0x2a1d1e,_0x162750,_0x2fbfab);else{for(var _0x34c980=_0x4e0f2a['length']-0x1;_0x34c980>=0x0;_0x34c980--)(_0x599e39=_0x4e0f2a[_0x34c980])&&(_0x361445=(_0x28ff29<0x3?_0x599e39(_0x361445):_0x28ff29>0x3?_0x599e39(_0x2a1d1e,_0x162750,_0x361445):_0x599e39(_0x2a1d1e,_0x162750))||_0x361445);}return _0x28ff29>0x3&&_0x361445&&Object['defineProperty'](_0x2a1d1e,_0x162750,_0x361445),_0x361445;}let b=class{constructor(_0x5b9eea,_0x3b7478,_0x4db584){var _0x4cc084=_0x2f5f;this[_0x4cc084(0xa0)]=_0x5b9eea,this[_0x4cc084(0xaf)]=_0x3b7478,this[_0x4cc084(0xa4)]=_0x4db584,_(this,_0x4cc084(0xca),void 0x0),this[_0x4cc084(0xca)]=this[_0x4cc084(0xa0)]['getId']();}['getId'](){return this['_blockId'];}[_0x38946e(0xc1)](){var _0x41d0d6=_0x38946e;let _0x658f3=this[_0x41d0d6(0xb2)]();return _0x658f3?{'blockId':_0x658f3[_0x41d0d6(0xd9)],'endIndex':_0x658f3[_0x41d0d6(0xbc)],'startIndex':_0x658f3[_0x41d0d6(0xd1)]}:null;}[_0x38946e(0x99)](){var _0x2903f9=_0x38946e,_0x451f68;let _0x25ab76=this[_0x2903f9(0xb2)](),_0x2fc659=(_0x451f68=this['_getDocumentData']()[_0x2903f9(0xaa)])==null?void 0x0:_0x451f68[_0x2903f9(0xc0)];return!_0x25ab76||!_0x2fc659?'':x(_0x2fc659[_0x2903f9(0xc6)](_0x25ab76[_0x2903f9(0xd1)]+0x1,_0x25ab76[_0x2903f9(0xbc)]));}[_0x38946e(0x9d)](){var _0x4bd1e3=_0x38946e;let _0x536185=this[_0x4bd1e3(0xc1)]();return _0x536185?{..._0x536185,'config':this[_0x4bd1e3(0xcb)](),'text':this['getText'](),'type':_0x59ca1e[_0x4bd1e3(0xd3)]}:null;}['getConfig'](){var _0x15230c=_0x38946e;let _0x44cdc9=this[_0x15230c(0xa4)][_0x15230c(0xbf)](_0x4ad876);return _0x290c1a(_0x44cdc9[_0x15230c(0xb8)](this[_0x15230c(0xca)],this[_0x15230c(0xaf)]));}[_0x38946e(0xcc)](_0x12cccf){var _0x506a5d=_0x38946e;return this[_0x506a5d(0xa4)][_0x506a5d(0xbf)](_0x2172ab)['syncExecuteCommand'](_0x4f0288['id'],{'blockId':this[_0x506a5d(0xaf)],'config':_0x12cccf[_0x506a5d(0x95)],'unitId':this[_0x506a5d(0xca)]});}[_0x38946e(0xd2)](){var _0xa6ba68=_0x38946e;return this[_0xa6ba68(0xa4)][_0xa6ba68(0xbf)](_0x2172ab)[_0xa6ba68(0xa9)](_0x238623['id'],{'blockId':this[_0xa6ba68(0xaf)],'unitId':this['_unitId']});}['remove'](){var _0x1642a3=_0x38946e;return this[_0x1642a3(0xa4)]['get'](_0x2172ab)[_0x1642a3(0xa9)](_0x2a8caf['id'],{'blockId':this[_0x1642a3(0xaf)],'unitId':this[_0x1642a3(0xca)]});}[_0x38946e(0xb2)](){var _0x100482=_0x38946e,_0x228050;return((_0x228050=this['_getDocumentData']()['body'])==null||(_0x228050=_0x228050[_0x100482(0xa3)])==null?void 0x0:_0x228050[_0x100482(0xb5)](_0x11802c=>_0x11802c[_0x100482(0xd9)]===this[_0x100482(0xaf)]&&_0x11802c[_0x100482(0xc8)]===_0x59ca1e[_0x100482(0xd3)]))??null;}[_0x38946e(0xd6)](){var _0x1c30cc=_0x38946e;return this[_0x1c30cc(0xa0)][_0x1c30cc(0xbb)]();}};b=y([v(0x2,_0x175244(_0x18e1ac))],b);function x(_0xd92af0){var _0x141059=_0x38946e;return Array['from'](_0xd92af0)[_0x141059(0xba)](_0x507369=>_0x507369===_0x41ab50[_0x141059(0xa2)]?'\x0a':_0x507369)[_0x141059(0xa7)](_0x50139e=>_0x50139e!==_0x41ab50[_0x141059(0xa5)]&&_0x50139e!==_0x41ab50[_0x141059(0xc4)]&&_0x50139e!==_0x41ab50[_0x141059(0xc3)])['join']('')[_0x141059(0xb4)](/\n$/,'');}function _0x2f5f(_0x2ff405,_0x41be0b){_0x2ff405=_0x2ff405-0x95;var _0xeaa7fb=_0xeaa7();var _0x2f5f33=_0xeaa7fb[_0x2ff405];return _0x2f5f33;}var S=class extends _0x8122f{[_0x38946e(0x9a)](){var _0xcc6647=_0x38946e;return this[_0xcc6647(0xc5)]()[_0xcc6647(0xa7)](_0x459313=>_0x459313[_0xcc6647(0xc8)]===_0x59ca1e[_0xcc6647(0xd3)])['map'](_0x2d207e=>this['_createFDocumentCode'](_0x2d207e[_0xcc6647(0xd9)]));}[_0x38946e(0x9c)](_0x22ba83){var _0x81fc7b=_0x38946e;return this[_0x81fc7b(0xc5)]()[_0x81fc7b(0xd8)](_0x15c74f=>_0x15c74f[_0x81fc7b(0xd9)]===_0x22ba83&&_0x15c74f[_0x81fc7b(0xc8)]===_0x59ca1e[_0x81fc7b(0xd3)])?this[_0x81fc7b(0xd4)](_0x22ba83):null;}['getCodeAt'](_0x2e7d3c){var _0x1018dc=_0x38946e;let _0x900bc6=this[_0x1018dc(0xc5)]()['find'](_0x59d4fd=>_0x59d4fd[_0x1018dc(0xc8)]===_0x59ca1e[_0x1018dc(0xd3)]&&_0x59d4fd[_0x1018dc(0xd1)]<=_0x2e7d3c&&_0x2e7d3c<=_0x59d4fd[_0x1018dc(0xbc)]);return _0x900bc6?this[_0x1018dc(0xd4)](_0x900bc6[_0x1018dc(0xd9)]):null;}[_0x38946e(0xd7)](_0x495a5c){var _0x49b2ac=_0x38946e;return this[_0x49b2ac(0xc2)](_0x495a5c)[0x0]??null;}[_0x38946e(0xc2)](_0x249775){var _0x262b09=_0x38946e;let _0x1d940c=typeof _0x249775==_0x262b09(0x9b)?{'text':_0x249775}:_0x249775;return this[_0x262b09(0x9a)]()[_0x262b09(0xa7)](_0x438b36=>!(_0x1d940c['blockId']&&_0x438b36[_0x262b09(0xd0)]()!==_0x1d940c[_0x262b09(0xd9)]||_0x1d940c[_0x262b09(0xa6)]&&!_0x438b36[_0x262b09(0x99)]()[_0x262b09(0xce)](_0x1d940c['text'])));}[_0x38946e(0xab)](_0x1dfc19={},_0x1033cf={}){var _0xaeae06=_0x38946e;let _0x531a8c=this[_0xaeae06(0xa4)]['get'](_0x2172ab),_0x293e72=_0x3e8111(_0x1dfc19)?{..._0x1033cf,..._0x1dfc19[_0xaeae06(0xc1)]()}:_0x1dfc19,_0xff4dd2=_0x293e72['blockId']??_0x4de038(0x6);return _0x531a8c[_0xaeae06(0xa9)](_0xe4d73['id'],{..._0x293e72,'blockId':_0xff4dd2,'unitId':this['getId']()})?this[_0xaeae06(0x9c)](_0xff4dd2):null;}['_getBlockRanges'](){var _0x25d736=_0x38946e,_0x55ec89;return((_0x55ec89=this[_0x25d736(0xbb)]()[_0x25d736(0xaa)])==null?void 0x0:_0x55ec89[_0x25d736(0xa3)])??[];}[_0x38946e(0xd4)](_0x21629f){var _0x39cc97=_0x38946e;return this['_injector'][_0x39cc97(0xb1)](b,this,_0x21629f);}};_0x8122f[_0x38946e(0xb0)](S);export{b as FDocumentCode};
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x3ab0de=_0x8b82;(function(_0x552d13,_0xc65cac){const _0x53a41b=_0x8b82,_0x39a2ac=_0x552d13();while(!![]){try{const _0x49c374=-parseInt(_0x53a41b(0x1ba))/0x1+parseInt(_0x53a41b(0x1b3))/0x2*(-parseInt(_0x53a41b(0x1e8))/0x3)+-parseInt(_0x53a41b(0x1e2))/0x4*(parseInt(_0x53a41b(0x20d))/0x5)+-parseInt(_0x53a41b(0x1e6))/0x6+-parseInt(_0x53a41b(0x238))/0x7+-parseInt(_0x53a41b(0x224))/0x8+parseInt(_0x53a41b(0x1f1))/0x9;if(_0x49c374===_0xc65cac)break;else _0x39a2ac['push'](_0x39a2ac['shift']());}catch(_0x578f4c){_0x39a2ac['push'](_0x39a2ac['shift']());}}}(_0x12f8,0x35492));import{BooleanNumber as _0x1b778a,BuildTextUtils as _0x58acab,CommandType as _0x41a6f1,DataStreamTreeTokenType as _0x1e79a7,DependentOn as _0x3dbf34,Disposable as _0x562207,DocumentBlockRangeType as _0x435faa,ICommandService as _0x15ccf6,IConfigService as _0x1a34db,IResourceManagerService as _0x22a43b,IUniverInstanceService as _0x964d3a,Inject as _0x57b8aa,Injector as _0x584fc0,JSONX as _0x5e3e53,Plugin as _0x5733e8,TextX as _0x443f5a,UniverInstanceType as _0x48efbf,containsInteriorInsertionOffset as _0x300592,containsStreamIndex as _0x114c5d,createParagraphId as _0x403b8e,generateRandomId as _0x2991d6,getBlockRangeInterval as _0x31f500,getBodySliceForTextXAction as _0x2b04e8,getParagraphContentStartOffset as _0x5d088e,getParagraphContentStartOffsets as _0x1b2f31,getParagraphFollowingBlockOffset as _0x1831c1,getSingleDataStreamChange as _0x2f99b7,intersectsOperationalIntervals as _0x1e2ab3,merge as _0x18c64b,shiftExclusiveRangeOnDelete as _0x2a6859,shiftExclusiveRangeOnInsert as _0x126e80,shiftInclusiveRangeOnDelete as _0x168a73,shiftInclusiveRangeOnInsert as _0x905e98}from'@univerjs/core';import{Subject as _0x579692}from'rxjs';import{DocSelectionManagerService as _0x47ac4f,RichTextEditingMutation as _0x388771,UniverDocsPlugin as _0x32f376,getContentInsertRange as _0x3760de,isHeaderFooterSelection as _0x21b5bf}from'@univerjs/docs';import{UniverLicensePlugin as _0x3b72f5}from'@univerjs-pro/license';const Se={'language':_0x3ab0de(0x201),'showLineNumbers':!0x1,'tabSize':0x4,'wrap':!0x0};function v(_0x519f47){return{...Se,..._0x519f47};}function y(_0x1a0803){const _0x4a9701=_0x3ab0de;let _0x47ae62=(_0x1a0803==null?void 0x0:_0x1a0803[_0x4a9701(0x220)])??{};return{'codes':Object[_0x4a9701(0x1eb)](Object['entries'](_0x47ae62)['map'](([_0x2169d6,_0x148e23])=>[_0x2169d6,v(_0x148e23)]))};}function b(_0x4a57aa,_0x1948d7,_0x4484f2){const _0x326ad8=_0x3ab0de;let _0x16580c=y(_0x4a57aa);return _0x16580c[_0x326ad8(0x220)][_0x1948d7]=v({..._0x16580c[_0x326ad8(0x220)][_0x1948d7],..._0x4484f2}),_0x16580c;}function x(_0x15182d,_0x504b31){const _0x5b5631=_0x3ab0de;let _0x33c5e8=y(_0x15182d);return delete _0x33c5e8[_0x5b5631(0x220)][_0x504b31],_0x33c5e8;}function S(_0x1462e6){'@babel/helpers - typeof';const _0x3db065=_0x3ab0de;return S=typeof Symbol==_0x3db065(0x210)&&typeof Symbol['iterator']==_0x3db065(0x236)?function(_0xe57005){return typeof _0xe57005;}:function(_0x2491ef){const _0x12e227=_0x3db065;return _0x2491ef&&typeof Symbol==_0x12e227(0x210)&&_0x2491ef[_0x12e227(0x1ec)]===Symbol&&_0x2491ef!==Symbol[_0x12e227(0x202)]?_0x12e227(0x236):typeof _0x2491ef;},S(_0x1462e6);}function Ce(_0x56072d,_0x2ca0aa){const _0x18074f=_0x3ab0de;if(S(_0x56072d)!=_0x18074f(0x1d9)||!_0x56072d)return _0x56072d;var _0x238268=_0x56072d[Symbol[_0x18074f(0x1ae)]];if(_0x238268!==void 0x0){var _0x3a3255=_0x238268[_0x18074f(0x20c)](_0x56072d,_0x2ca0aa||_0x18074f(0x204));if(S(_0x3a3255)!='object')return _0x3a3255;throw TypeError(_0x18074f(0x1d5));}return(_0x2ca0aa===_0x18074f(0x195)?String:Number)(_0x56072d);}function we(_0x47b1aa){const _0x9196a6=_0x3ab0de;var _0x1b5237=Ce(_0x47b1aa,_0x9196a6(0x195));return S(_0x1b5237)==_0x9196a6(0x236)?_0x1b5237:_0x1b5237+'';}function C(_0x141520,_0x4b5495,_0x324a1e){const _0x5c857c=_0x3ab0de;return(_0x4b5495=we(_0x4b5495))in _0x141520?Object[_0x5c857c(0x1d6)](_0x141520,_0x4b5495,{'value':_0x324a1e,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x141520[_0x4b5495]=_0x324a1e,_0x141520;}function _0x8b82(_0x5791ea,_0x45abe5){_0x5791ea=_0x5791ea-0x194;const _0x12f85a=_0x12f8();let _0x8b8270=_0x12f85a[_0x5791ea];return _0x8b8270;}var w=class extends _0x562207{constructor(..._0x3908d2){const _0x352c3d=_0x3ab0de;super(..._0x3908d2),C(this,_0x352c3d(0x1ad),new Map()),C(this,_0x352c3d(0x20e),new _0x579692()),C(this,_0x352c3d(0x1af),this['_change$'][_0x352c3d(0x229)]());}[_0x3ab0de(0x1b0)](_0x21d30c,_0x3767e0){const _0x29c113=_0x3ab0de;return y(this[_0x29c113(0x1ad)][_0x29c113(0x21e)](_0x21d30c))[_0x29c113(0x220)][_0x3767e0];}[_0x3ab0de(0x1b5)](_0x382789,_0x1c8089,_0x455fe3){const _0x215649=_0x3ab0de;this[_0x215649(0x1a5)](_0x382789,_0x1c8089,b(this[_0x215649(0x1ad)][_0x215649(0x21e)](_0x382789),_0x1c8089,_0x455fe3));}['removeCode'](_0x4a8137,_0x5de15a){const _0x4d9213=_0x3ab0de;this['_setResource'](_0x4a8137,_0x5de15a,x(this[_0x4d9213(0x1ad)]['get'](_0x4a8137),_0x5de15a));}[_0x3ab0de(0x1b7)](_0x180b79){const _0x49d4a6=_0x3ab0de;return y(this[_0x49d4a6(0x1ad)][_0x49d4a6(0x21e)](_0x180b79));}[_0x3ab0de(0x1f7)](_0x1f84ad,_0x4d8e5c){const _0x1fc026=_0x3ab0de;this['_resources'][_0x1fc026(0x1f9)](_0x1f84ad,y(_0x4d8e5c)),this['_change$'][_0x1fc026(0x1c1)]({'unitId':_0x1f84ad});}[_0x3ab0de(0x205)](_0x594ce4){const _0x33034e=_0x3ab0de;this[_0x33034e(0x1ad)]['delete'](_0x594ce4),this[_0x33034e(0x20e)][_0x33034e(0x1c1)]({'unitId':_0x594ce4});}[_0x3ab0de(0x1f2)](){const _0x8e3948=_0x3ab0de;super['dispose'](),this['_resources'][_0x8e3948(0x208)](),this[_0x8e3948(0x20e)]['complete']();}[_0x3ab0de(0x1a5)](_0x2bff85,_0xc3040,_0x40b1fd){const _0x77b7ae=_0x3ab0de;this[_0x77b7ae(0x1ad)]['set'](_0x2bff85,_0x40b1fd),this[_0x77b7ae(0x20e)][_0x77b7ae(0x1c1)]({'unitId':_0x2bff85,'blockId':_0xc3040});}};const Te={'id':'docs-code.mutation.set-config','type':_0x41a6f1[_0x3ab0de(0x214)],'handler':(_0x44b3f1,_0x175eca)=>!(_0x175eca!=null&&_0x175eca[_0x3ab0de(0x219)])||!_0x175eca[_0x3ab0de(0x1c9)]?!0x1:(_0x44b3f1['get'](w)[_0x3ab0de(0x1b5)](_0x175eca['unitId'],_0x175eca['blockId'],_0x175eca[_0x3ab0de(0x222)]),!0x0)},T={'id':_0x3ab0de(0x196),'type':_0x41a6f1[_0x3ab0de(0x214)],'handler':(_0x5f4b50,_0x548cdb)=>!(_0x548cdb!=null&&_0x548cdb[_0x3ab0de(0x219)])||!_0x548cdb[_0x3ab0de(0x1c9)]?!0x1:(_0x5f4b50['get'](w)[_0x3ab0de(0x234)](_0x548cdb['unitId'],_0x548cdb[_0x3ab0de(0x1c9)]),!0x0)},Ee=_0x3ab0de(0x21c);var E=class extends Error{constructor(_0x116d2f=_0x3ab0de(0x1db)){super(_0x116d2f);}};function De(_0x254b71){const _0x787661=_0x3ab0de;var _0x4e8519;let _0x4f9727=O(_0x254b71['documentData']),_0x359a1e=A(_0x4f9727),_0x1d9a68=ke(_0x254b71[_0x787661(0x1bf)],_0x254b71[_0x787661(0x1ca)]),_0x1714cc=_0x1d9a68?(_0x4e8519=_0x359a1e['blockRanges'])==null?void 0x0:_0x4e8519[_0x787661(0x1e5)](_0x27d86e=>{const _0x396510=_0x787661;let _0x90f1f8=_0x31f500(_0x27d86e);return _0x90f1f8[_0x396510(0x1bf)]===_0x1d9a68[_0x396510(0x1bf)]&&_0x90f1f8['endOffset']===_0x1d9a68[_0x396510(0x1ca)];}):void 0x0,{startOffset:_0x540690,endOffset:_0x20deb7}=_0x1714cc?_0x1d9a68:We(_0x359a1e,_0x254b71[_0x787661(0x1bf)],_0x254b71[_0x787661(0x1ca)],_0x254b71[_0x787661(0x1d7)]);if(!_0x1714cc&&Ae(_0x359a1e,_0x540690,_0x20deb7))throw new E(_0x787661(0x1fb));let _0x27229d=qe(_0x359a1e,_0x540690,_0x20deb7),_0x5c1502=(_0x1714cc==null?void 0x0:_0x1714cc['blockId'])??_0x254b71[_0x787661(0x1c9)],_0x5a9d01=b(_0x254b71[_0x787661(0x226)],_0x5c1502,{...Se,..._0x254b71[_0x787661(0x222)]});if(_0x1714cc)return _0x1714cc['blockType']=_0x435faa[_0x787661(0x1e7)],Oe(_0x359a1e,_0x540690,_0x20deb7),ze(_0x359a1e,_0x540690,_0x20deb7,_0x27229d),N(_0x359a1e,_0x1714cc),{'nextDocumentData':_0x4f9727,'nextMetadata':_0x5a9d01,'cursorOffset':_0x540690+0x1};if(_0x540690===_0x20deb7){var _0x129603,_0x3aa27e;let _0x485aa2=''+_0x1e79a7[_0x787661(0x1dc)]+_0x1e79a7[_0x787661(0x1c8)]+_0x1e79a7['BLOCK_END'];P(_0x359a1e,_0x540690,_0x485aa2,{'paragraphs':[{'startIndex':0x1,'paragraphId':_0x403b8e(new Set((_0x129603=_0x359a1e[_0x787661(0x1a9)])==null?void 0x0:_0x129603[_0x787661(0x1e9)](_0x28da0c=>_0x28da0c[_0x787661(0x199)]))),'paragraphStyle':Re(!0x0,!0x0,_0x27229d)}],'blockRanges':[{'blockId':_0x5c1502,'blockType':_0x435faa[_0x787661(0x1e7)],'startIndex':0x0,'endIndex':_0x485aa2['length']-0x1}]});let _0x444f3c=(_0x3aa27e=_0x359a1e['blockRanges'])==null?void 0x0:_0x3aa27e['find'](_0x15a51b=>_0x15a51b[_0x787661(0x1c9)]===_0x5c1502);return _0x444f3c&&N(_0x359a1e,_0x444f3c),{'nextDocumentData':_0x4f9727,'nextMetadata':_0x5a9d01,'cursorOffset':_0x540690+0x1};}P(_0x359a1e,_0x20deb7,_0x1e79a7[_0x787661(0x1b1)]),P(_0x359a1e,_0x540690,_0x1e79a7['BLOCK_START']),ze(_0x359a1e,_0x540690,_0x20deb7+0x1,_0x27229d);let _0x444610={'blockId':_0x5c1502,'blockType':_0x435faa['CODE'],'startIndex':_0x540690,'endIndex':_0x20deb7+0x1};return _0x359a1e[_0x787661(0x230)]=[..._0x359a1e[_0x787661(0x230)]??[],_0x444610]['sort']((_0x43184f,_0xa78984)=>_0x43184f[_0x787661(0x21f)]-_0xa78984[_0x787661(0x21f)]),N(_0x359a1e,_0x444610),{'nextDocumentData':_0x4f9727,'nextMetadata':_0x5a9d01,'cursorOffset':_0x540690+0x1};}function Oe(_0x5e2a6a,_0x4a70d9,_0x4b963e){const _0x4b8913=_0x3ab0de;(_0x5e2a6a[_0x4b8913(0x1a9)]??[])[_0x4b8913(0x1bb)](_0x165435=>_0x165435['startIndex']>_0x4a70d9&&_0x165435[_0x4b8913(0x21f)]<_0x4b963e)['forEach'](_0x47ec5c=>{const _0xa527c5=_0x4b8913;let _0x9513b3={..._0x47ec5c[_0xa527c5(0x20b)]??{}};delete _0x9513b3[_0xa527c5(0x1b8)],delete _0x9513b3[_0xa527c5(0x206)],_0x47ec5c[_0xa527c5(0x20b)]=_0x9513b3;});}function ke(_0x5342bd,_0x462e87){const _0x3e224f=_0x3ab0de;return _0x5342bd==null||_0x462e87==null||_0x5342bd===_0x462e87?null:{'startOffset':Math[_0x3e224f(0x22f)](_0x5342bd,_0x462e87),'endOffset':Math[_0x3e224f(0x1a1)](_0x5342bd,_0x462e87)};}function Ae(_0x5ad7ff,_0x4d6e86,_0x3dcf81){const _0x3c54f8=_0x3ab0de;return(_0x5ad7ff[_0x3c54f8(0x230)]??[])[_0x3c54f8(0x1ce)](_0x3abbf5=>{let _0x305fa2=_0x31f500(_0x3abbf5);return _0x4d6e86===_0x3dcf81?_0x300592(_0x305fa2,_0x4d6e86):_0x1e2ab3(_0x305fa2,{'startOffset':_0x4d6e86,'endOffset':_0x3dcf81});});}function je(_0x495060){const _0x1bab38=_0x3ab0de;return{'nextDocumentData':O(_0x495060[_0x1bab38(0x1f8)]),'nextMetadata':b(_0x495060[_0x1bab38(0x226)],_0x495060['blockId'],_0x495060[_0x1bab38(0x222)]),'cursorOffset':0x0};}function D(_0x2ba430){const _0x5a5fb5=_0x3ab0de;let _0x51f88b=O(_0x2ba430[_0x5a5fb5(0x1f8)]),_0x3db213=A(_0x51f88b),_0x4ab016=Fe(_0x3db213,_0x2ba430[_0x5a5fb5(0x1c9)]);if(!_0x4ab016)return null;let _0x5cd787=He(_0x3db213,_0x4ab016);return{'nextDocumentData':_0x51f88b,'nextMetadata':x(_0x2ba430[_0x5a5fb5(0x226)],_0x2ba430['blockId']),'cursorOffset':_0x5cd787};}function Me(_0x2c66d3){const _0x4006d3=_0x3ab0de;var _0x133987;let _0x336a9b=O(_0x2c66d3[_0x4006d3(0x1f8)]),_0x5b6303=A(_0x336a9b),_0xb1e519=Fe(_0x5b6303,_0x2c66d3[_0x4006d3(0x1c9)]);if(!_0xb1e519)return null;let _0x517884=_0x31f500(_0xb1e519);return F(_0x5b6303,_0x517884[_0x4006d3(0x1bf)],_0x517884[_0x4006d3(0x1ca)]),_0x5b6303[_0x4006d3(0x230)]=(_0x133987=_0x5b6303[_0x4006d3(0x230)])==null?void 0x0:_0x133987[_0x4006d3(0x1bb)](_0x1d7e4f=>_0x1d7e4f[_0x4006d3(0x1c9)]!==_0x2c66d3[_0x4006d3(0x1c9)]),{'nextDocumentData':_0x336a9b,'nextMetadata':x(_0x2c66d3[_0x4006d3(0x226)],_0x2c66d3[_0x4006d3(0x1c9)]),'cursorOffset':_0xb1e519['startIndex']};}function Ne(_0x26abf8){const _0x5c3b07=_0x3ab0de;let _0x3be9df=O(_0x26abf8['documentData']),_0x314523=A(_0x3be9df),_0x41e83b=Le(_0x314523,_0x26abf8[_0x5c3b07(0x1da)]);return _0x41e83b&&Pe(_0x3be9df,_0x314523,_0x41e83b,_0x26abf8[_0x5c3b07(0x1da)],_0x26abf8[_0x5c3b07(0x1ee)])||null;}function Pe(_0x40a604,_0x58aee4,_0x1cb05b,_0x2db033,_0x35f12b){const _0x53b996=_0x3ab0de;let _0x3c11db=$e(_0x58aee4,_0x1cb05b,_0x2db033,_0x35f12b);if(!_0x3c11db)return null;let _0x24d90d=_0x3c11db[_0x53b996(0x1d3)]-0x1;return F(_0x58aee4,_0x3c11db[_0x53b996(0x19f)][_0x53b996(0x21f)],_0x3c11db[_0x53b996(0x19f)][_0x53b996(0x21f)]+0x1),{'nextDocumentData':_0x40a604,'cursorOffset':_0x24d90d};}function Fe(_0x1a3786,_0x2df8b4){const _0x238952=_0x3ab0de;var _0x5cba74;return _0x1a3786==null||(_0x5cba74=_0x1a3786[_0x238952(0x230)])==null?void 0x0:_0x5cba74['find'](_0x419bd1=>_0x419bd1['blockType']===_0x435faa[_0x238952(0x1e7)]&&_0x419bd1[_0x238952(0x1c9)]===_0x2df8b4);}function Ie(_0x5eeae0){const _0x12ea2b=_0x3ab0de;let _0x1c47ea=_0x5eeae0[_0x12ea2b(0x1f8)][_0x12ea2b(0x1f3)];if(!_0x1c47ea)return!0x1;let _0x52857b=_0x5eeae0[_0x12ea2b(0x1df)]==='left'?_0x5eeae0[_0x12ea2b(0x1da)]-0x1:_0x5eeae0[_0x12ea2b(0x1da)],_0x24a346=_0x5eeae0[_0x12ea2b(0x1df)]===_0x12ea2b(0x1c5)?_0x5eeae0[_0x12ea2b(0x1da)]+0x1:_0x52857b;return(_0x1c47ea[_0x12ea2b(0x230)]??[])['some'](_0xcf3cc5=>_0xcf3cc5[_0x12ea2b(0x197)]===_0x435faa[_0x12ea2b(0x1e7)]?_0x52857b===_0xcf3cc5[_0x12ea2b(0x21f)]||_0x52857b===_0xcf3cc5[_0x12ea2b(0x1f5)]||_0x24a346===_0xcf3cc5[_0x12ea2b(0x21f)]||_0x24a346===_0xcf3cc5[_0x12ea2b(0x1f5)]:!0x1);}function Le(_0x55ae65,_0x2e1f52){const _0x13054a=_0x3ab0de;var _0x43fac6;return(_0x43fac6=_0x55ae65[_0x13054a(0x230)])==null?void 0x0:_0x43fac6[_0x13054a(0x1e5)](_0x5203f5=>{const _0x3ebd61=_0x13054a;let _0x2d5b5e=M(_0x5203f5);return _0x5203f5['blockType']===_0x435faa[_0x3ebd61(0x1e7)]&&_0x5203f5['startIndex']<=_0x2e1f52&&_0x2e1f52<=_0x2d5b5e+0x2;});}function Re(_0x1c6ed8,_0x2ab88d,_0x4fc263=!0x1){const _0x495493=_0x3ab0de;return{'indentEnd':{'v':0x14},'indentStart':{'v':0x14},'keepLines':_0x1b778a['TRUE'],'keepNext':_0x2ab88d?_0x1b778a['FALSE']:_0x1b778a['TRUE'],'widowControl':_0x1b778a[_0x495493(0x1cb)],..._0x1c6ed8&&_0x4fc263?{'spaceAbove':{'v':0x8}}:{},'textStyle':{'ff':Ee,'fs':0xc}};}function ze(_0x3b356e,_0x5dd872,_0x34f2f7,_0x493e79=!0x1){const _0x56d026=_0x3ab0de;let _0x28325d=(_0x3b356e[_0x56d026(0x1a9)]??[])[_0x56d026(0x1bb)](_0x53ac34=>_0x53ac34['startIndex']>_0x5dd872&&_0x53ac34[_0x56d026(0x21f)]<_0x34f2f7);_0x28325d[_0x56d026(0x237)]((_0x57455f,_0xdaff55)=>{const _0x4bad37=_0x56d026;_0x57455f[_0x4bad37(0x20b)]={..._0x57455f[_0x4bad37(0x20b)]??{},...Re(_0xdaff55===0x0,_0xdaff55===_0x28325d['length']-0x1,_0x493e79)};});}function Be(_0x477491){const _0x29fd5f=_0x3ab0de;var _0x1d1edd,_0x520d50;let _0x572806={..._0x477491??{}};return delete _0x572806[_0x29fd5f(0x239)],delete _0x572806[_0x29fd5f(0x1ed)],delete _0x572806['spaceAbove'],delete _0x572806['spaceBelow'],delete _0x572806[_0x29fd5f(0x1c3)],delete _0x572806[_0x29fd5f(0x1aa)],delete _0x572806['widowControl'],((_0x1d1edd=_0x572806[_0x29fd5f(0x1b2)])==null?void 0x0:_0x1d1edd['ff'])===Ee&&((_0x520d50=_0x572806[_0x29fd5f(0x1b2)])==null?void 0x0:_0x520d50['fs'])===0xc&&delete _0x572806[_0x29fd5f(0x1b2)],_0x572806;}function Ve(_0x49a8f4,_0x5f55dc){const _0x5176ce=_0x3ab0de;let _0x6e5203=M(_0x5f55dc);return(_0x49a8f4[_0x5176ce(0x1a9)]??[])[_0x5176ce(0x1bb)](_0x392d95=>_0x392d95[_0x5176ce(0x21f)]>_0x5f55dc[_0x5176ce(0x21f)]&&_0x392d95[_0x5176ce(0x21f)]<_0x6e5203);}function He(_0x356a9e,_0x78ad56){const _0x33441f=_0x3ab0de;var _0x1c1582;let _0x5a32e9=M(_0x78ad56);return Ve(_0x356a9e,_0x78ad56)[_0x33441f(0x237)](_0x59fdad=>{const _0x1b4202=_0x33441f;_0x59fdad[_0x1b4202(0x20b)]=Be(_0x59fdad['paragraphStyle']);}),F(_0x356a9e,_0x5a32e9,_0x5a32e9+0x1),F(_0x356a9e,_0x78ad56['startIndex'],_0x78ad56[_0x33441f(0x21f)]+0x1),_0x356a9e['blockRanges']=(_0x1c1582=_0x356a9e[_0x33441f(0x230)])==null?void 0x0:_0x1c1582[_0x33441f(0x1bb)](_0xb2ad55=>_0xb2ad55[_0x33441f(0x1c9)]!==_0x78ad56[_0x33441f(0x1c9)]),_0x78ad56[_0x33441f(0x21f)];}function O(_0x495e74){const _0x386da5=_0x3ab0de;return{..._0x495e74,'body':_0x495e74['body']?Ue(_0x495e74['body']):_0x495e74[_0x386da5(0x1f3)]};}function Ue(_0x1ff267){const _0x37dfa0=_0x3ab0de;var _0x32e686,_0x42123c,_0x2463cb,_0x50e9c2,_0xd8c2f3,_0x2334a8,_0x4dafa1,_0x3745d3,_0x4ec152;return{..._0x1ff267,'paragraphs':(_0x32e686=_0x1ff267[_0x37dfa0(0x1a9)])==null?void 0x0:_0x32e686[_0x37dfa0(0x1e9)](_0x2828bb=>({..._0x2828bb,'bullet':k(_0x2828bb[_0x37dfa0(0x19b)]),'paragraphStyle':k(_0x2828bb[_0x37dfa0(0x20b)])})),'sectionBreaks':(_0x42123c=_0x1ff267[_0x37dfa0(0x1c7)])==null?void 0x0:_0x42123c[_0x37dfa0(0x1e9)](_0x1291fe=>({..._0x1291fe})),'textRuns':(_0x2463cb=_0x1ff267[_0x37dfa0(0x1be)])==null?void 0x0:_0x2463cb[_0x37dfa0(0x1e9)](_0x572307=>({..._0x572307})),'tables':(_0x50e9c2=_0x1ff267[_0x37dfa0(0x1bd)])==null?void 0x0:_0x50e9c2['map'](_0x3c9d76=>({..._0x3c9d76})),'columnGroups':(_0xd8c2f3=_0x1ff267[_0x37dfa0(0x209)])==null?void 0x0:_0xd8c2f3[_0x37dfa0(0x1e9)](_0x52ec25=>{const _0x56dedf=_0x37dfa0;var _0x366a8d;return{..._0x52ec25,'columns':(_0x366a8d=_0x52ec25[_0x56dedf(0x1bc)])==null?void 0x0:_0x366a8d[_0x56dedf(0x1e9)](_0xde7cdf=>k(_0xde7cdf))};}),'blockRanges':(_0x2334a8=_0x1ff267[_0x37dfa0(0x230)])==null?void 0x0:_0x2334a8[_0x37dfa0(0x1e9)](_0x19f00a=>({..._0x19f00a})),'customRanges':(_0x4dafa1=_0x1ff267[_0x37dfa0(0x1ab)])==null?void 0x0:_0x4dafa1['map'](_0x5ddfc3=>({..._0x5ddfc3})),'customDecorations':(_0x3745d3=_0x1ff267[_0x37dfa0(0x218)])==null?void 0x0:_0x3745d3['map'](_0x126964=>({..._0x126964})),'customBlocks':(_0x4ec152=_0x1ff267['customBlocks'])==null?void 0x0:_0x4ec152[_0x37dfa0(0x1e9)](_0x43dd67=>({..._0x43dd67}))};}function k(_0x90b5b6){const _0x230d56=_0x3ab0de;return Array['isArray'](_0x90b5b6)?_0x90b5b6['map'](_0x42e117=>k(_0x42e117)):!_0x90b5b6||typeof _0x90b5b6!=_0x230d56(0x1d9)?_0x90b5b6:Object[_0x230d56(0x1eb)](Object[_0x230d56(0x1fa)](_0x90b5b6)['map'](([_0x427f60,_0x2697c5])=>[_0x427f60,k(_0x2697c5)]));}function A(_0x725649){const _0x496824=_0x3ab0de;if(!_0x725649['body'])throw Error(_0x496824(0x1fd));return _0x725649[_0x496824(0x1f3)];}function We(_0x5981e7,_0x504896,_0xc085c1,_0x1ccd89=_0x3ab0de(0x1b6)){const _0x5b1fea=_0x3ab0de;if(_0x504896==null||_0xc085c1==null){let _0x2fd74f=Ke(_0x5981e7);return{'startOffset':_0x2fd74f,'endOffset':_0x2fd74f};}let _0x212e0e=Math[_0x5b1fea(0x22f)](_0x504896,_0xc085c1),_0x274bdb=Math[_0x5b1fea(0x1a1)](_0x504896,_0xc085c1),_0x261029=Ze(_0x5981e7,_0x212e0e,_0x274bdb);return _0x212e0e===_0x274bdb?_0x1ccd89==='insert-new'?{'startOffset':_0x212e0e,'endOffset':_0x274bdb}:Ge(_0x5981e7,_0x212e0e,_0x261029):Je(_0x5981e7,_0x212e0e,_0x274bdb,_0x261029);}function Ge(_0x31fbcf,_0x5421b3,_0x39f5f0){const _0x505b52=_0x3ab0de;let _0x475e48=Ye(_0x31fbcf,_0x5421b3);if(_0x475e48){let _0x2f839d=j(_0x31fbcf,_0x475e48,_0x39f5f0);if(_0x2f839d<_0x475e48[_0x505b52(0x21f)])return{'startOffset':_0x2f839d,'endOffset':_0x39f5f0?Math[_0x505b52(0x22f)](_0x475e48[_0x505b52(0x21f)]+0x1,_0x39f5f0['endOffset']):_0x475e48[_0x505b52(0x21f)]+0x1};}let _0x18acfd=_0x5421b3===0x0&&_0x31fbcf['dataStream'][0x0]===_0x1e79a7[_0x505b52(0x1c8)]?0x1:_0x5421b3;return{'startOffset':_0x18acfd,'endOffset':_0x18acfd};}function Ke(_0x3fb61c){const _0x3a746c=_0x3ab0de;return _0x3fb61c[_0x3a746c(0x217)][_0x3a746c(0x1a3)](_0x1e79a7[_0x3a746c(0x1f0)])?Math[_0x3a746c(0x1a1)](0x0,_0x3fb61c[_0x3a746c(0x217)][_0x3a746c(0x203)]-0x1):_0x3fb61c[_0x3a746c(0x217)][_0x3a746c(0x203)];}function qe(_0x2e90d6,_0x59654b,_0x294372){const _0x5e803c=_0x3ab0de;var _0x1c0d05;let _0x3f3509=Math[_0x5e803c(0x22f)](_0x59654b,_0x294372),_0x4ed357=Math[_0x5e803c(0x1a1)](_0x59654b,_0x294372);return!!((_0x1c0d05=_0x2e90d6[_0x5e803c(0x1bd)])!=null&&_0x1c0d05['some'](_0x30c61a=>_0x3f3509>_0x30c61a[_0x5e803c(0x21f)]&&_0x3f3509<_0x30c61a[_0x5e803c(0x1f5)]||_0x4ed357>_0x30c61a[_0x5e803c(0x21f)]&&_0x4ed357<_0x30c61a[_0x5e803c(0x1f5)]||_0x3f3509<=_0x30c61a['startIndex']&&_0x4ed357>=_0x30c61a[_0x5e803c(0x1f5)]));}function Je(_0x1902e6,_0x102e24,_0x1cc35b,_0x77dc6d){const _0xfedf01=_0x3ab0de;let _0x5dbf65=[..._0x1902e6[_0xfedf01(0x1a9)]??[]][_0xfedf01(0x1cc)]((_0x3e30d0,_0x596cad)=>_0x3e30d0[_0xfedf01(0x21f)]-_0x596cad[_0xfedf01(0x21f)]),_0x4b417e=_0x1b2f31(_0x1902e6),_0x1f0efe=_0x5dbf65['find'](_0xf9cb68=>j(_0x1902e6,_0xf9cb68,_0x77dc6d,_0x4b417e)<=_0x102e24&&_0x102e24<=_0xf9cb68[_0xfedf01(0x21f)]),_0x193a42=_0x5dbf65[_0xfedf01(0x1e5)](_0xa8fb93=>_0xa8fb93[_0xfedf01(0x21f)]>=_0x1cc35b-0x1)??_0x5dbf65[_0x5dbf65[_0xfedf01(0x203)]-0x1];return{'startOffset':_0x1f0efe?j(_0x1902e6,_0x1f0efe,_0x77dc6d,_0x4b417e):_0x102e24,'endOffset':_0x193a42?Xe(_0x193a42,_0x77dc6d):_0x1cc35b};}function Ye(_0x56c184,_0x3975bc){const _0x290390=_0x3ab0de;let _0x25f6a1=[..._0x56c184[_0x290390(0x1a9)]??[]][_0x290390(0x1cc)]((_0x1056e2,_0x5b52de)=>_0x1056e2['startIndex']-_0x5b52de[_0x290390(0x21f)]),_0x436902=_0x1b2f31(_0x56c184);return _0x25f6a1[_0x290390(0x1e5)](_0x187426=>(_0x436902[_0x290390(0x21e)](_0x187426[_0x290390(0x21f)])??0x0)<=_0x3975bc&&_0x3975bc<=_0x187426[_0x290390(0x21f)]);}function j(_0x42208e,_0x1fbf38,_0x45d808,_0x213766){const _0x344477=_0x3ab0de;let _0x410950=(_0x213766==null?void 0x0:_0x213766[_0x344477(0x21e)](_0x1fbf38[_0x344477(0x21f)]))??_0x5d088e(_0x42208e,_0x1fbf38);return _0x45d808?Math['max'](_0x410950,_0x45d808[_0x344477(0x1bf)]):_0x410950;}function Xe(_0x10a3cc,_0x5986ef){const _0x457f44=_0x3ab0de;let _0x1b03f4=_0x10a3cc[_0x457f44(0x21f)]+0x1;return _0x5986ef?Math[_0x457f44(0x22f)](_0x1b03f4,_0x5986ef[_0x457f44(0x1ca)]):_0x1b03f4;}function Ze(_0x54128a,_0x425a79,_0x5e8cf8){const _0x2b1338=_0x3ab0de;let _0x45f794=Qe(_0x54128a,_0x425a79),_0x48b259=Qe(_0x54128a,_0x425a79===_0x5e8cf8?_0x5e8cf8:Math[_0x2b1338(0x1a1)](_0x425a79,_0x5e8cf8-0x1));if(_0x45f794||_0x48b259){if(!_0x45f794||!_0x48b259||_0x45f794[_0x2b1338(0x20f)]!==_0x48b259['startTokenOffset']||_0x45f794['endTokenOffset']!==_0x48b259[_0x2b1338(0x1d3)])throw new E();return _0x45f794;}}function Qe(_0x504c25,_0x5411f6){const _0x223a40=_0x3ab0de;let _0x302404=_0x504c25[_0x223a40(0x217)],_0x39f334=-0x1;for(let _0x1ed22f=Math['min'](_0x5411f6,_0x302404[_0x223a40(0x203)]-0x1);_0x1ed22f>=0x0;_0x1ed22f--){let _0x125723=_0x302404[_0x1ed22f];if(_0x125723===_0x1e79a7[_0x223a40(0x1a8)])return;if(_0x125723===_0x1e79a7[_0x223a40(0x22e)]){_0x39f334=_0x1ed22f;break;}}if(_0x39f334<0x0)return;let _0x1157fa=_0x302404[_0x223a40(0x1b9)](_0x1e79a7[_0x223a40(0x1a8)],_0x39f334+0x1);if(!(_0x1157fa<0x0||_0x5411f6<_0x39f334+0x1||_0x5411f6>_0x1157fa-0x1))return{'startOffset':_0x39f334+0x1,'endOffset':Math[_0x223a40(0x1a1)](_0x39f334+0x1,_0x1157fa-0x1),'startTokenOffset':_0x39f334,'endTokenOffset':_0x1157fa};}function M(_0x52557b){return _0x31f500(_0x52557b)['endOffset']-0x1;}function $e(_0x2308c5,_0x2b38dc,_0x48c353,_0x341168){const _0x353f02=_0x3ab0de;let _0x545b36=M(_0x2b38dc),_0x2ed266=(_0x2308c5[_0x353f02(0x1a9)]??[])[_0x353f02(0x1e5)](_0x2a513f=>_0x2a513f[_0x353f02(0x21f)]===_0x545b36+0x1);if(!_0x2ed266||_0x341168!=null&&_0x2ed266[_0x353f02(0x21f)]!==_0x341168||_0x48c353!=null&&(_0x48c353<_0x545b36||_0x48c353>_0x2ed266[_0x353f02(0x21f)]+0x1)||_0x2308c5[_0x353f02(0x217)][_0x2ed266[_0x353f02(0x21f)]]!==_0x1e79a7['PARAGRAPH'])return null;let _0x73cec5=_0x5d088e(_0x2308c5,_0x2ed266),_0x3cece7=_0x2308c5['dataStream']['slice'](_0x73cec5,_0x2ed266['startIndex']);return Array[_0x353f02(0x223)](_0x3cece7)[_0x353f02(0x19c)](_0xb63170=>_0xb63170===_0x1e79a7['BLOCK_END'])?{'paragraph':_0x2ed266,'endTokenOffset':_0x545b36}:null;}function N(_0x5455fd,_0x5b57dd){const _0x1684c6=_0x3ab0de;var _0x5c66c2;let _0x38ee87=M(_0x5b57dd),_0x30d223=_0x5455fd[_0x1684c6(0x217)][_0x38ee87+0x1];(_0x30d223===_0x1e79a7[_0x1684c6(0x1f0)]||_0x30d223===void 0x0)&&P(_0x5455fd,_0x38ee87+0x1,_0x1e79a7[_0x1684c6(0x1c8)],{'paragraphs':[{'startIndex':0x0,'paragraphId':_0x403b8e(new Set((_0x5c66c2=_0x5455fd[_0x1684c6(0x1a9)])==null?void 0x0:_0x5c66c2[_0x1684c6(0x1e9)](_0x379907=>_0x379907[_0x1684c6(0x199)])))}]});}function P(_0x57f62f,_0x127cf1,_0xc3d068,_0x5f5b0a={}){const _0x2c1943=_0x3ab0de;var _0x1decb0,_0x3628b1;_0xc3d068&&(_0x57f62f[_0x2c1943(0x217)]=''+_0x57f62f[_0x2c1943(0x217)][_0x2c1943(0x1ac)](0x0,_0x127cf1)+_0xc3d068+_0x57f62f[_0x2c1943(0x217)][_0x2c1943(0x1ac)](_0x127cf1),et(_0x57f62f,_0x127cf1,_0xc3d068['length']),(_0x1decb0=_0x5f5b0a[_0x2c1943(0x1a9)])!=null&&_0x1decb0[_0x2c1943(0x203)]&&(_0x57f62f[_0x2c1943(0x1a9)]=[..._0x57f62f[_0x2c1943(0x1a9)]??[],..._0x5f5b0a[_0x2c1943(0x1a9)][_0x2c1943(0x1e9)](_0x23d34f=>({..._0x23d34f,'startIndex':_0x23d34f['startIndex']+_0x127cf1}))][_0x2c1943(0x1cc)]((_0x5b8f01,_0x37e712)=>_0x5b8f01['startIndex']-_0x37e712['startIndex'])),(_0x3628b1=_0x5f5b0a[_0x2c1943(0x230)])!=null&&_0x3628b1['length']&&(_0x57f62f[_0x2c1943(0x230)]=[..._0x57f62f[_0x2c1943(0x230)]??[],..._0x5f5b0a[_0x2c1943(0x230)][_0x2c1943(0x1e9)](_0x8f5bdb=>({..._0x8f5bdb,'startIndex':_0x8f5bdb['startIndex']+_0x127cf1,'endIndex':_0x8f5bdb[_0x2c1943(0x1f5)]+_0x127cf1}))]['sort']((_0x19cc6,_0x5b0744)=>_0x19cc6[_0x2c1943(0x21f)]-_0x5b0744[_0x2c1943(0x21f)])));}function F(_0x210625,_0x2fedb0,_0x5dd3d9){const _0x16e306=_0x3ab0de;let _0x58e995=_0x5dd3d9-_0x2fedb0;_0x210625['dataStream']=''+_0x210625[_0x16e306(0x217)]['slice'](0x0,_0x2fedb0)+_0x210625[_0x16e306(0x217)][_0x16e306(0x1ac)](_0x5dd3d9),tt(_0x210625,_0x2fedb0,_0x58e995);}function et(_0x474c85,_0x50d013,_0x15e899){const _0x29e94d=_0x3ab0de;_0x474c85[_0x29e94d(0x1a9)]=I(_0x474c85[_0x29e94d(0x1a9)],_0x50d013,_0x15e899),_0x474c85[_0x29e94d(0x1c7)]=I(_0x474c85[_0x29e94d(0x1c7)],_0x50d013,_0x15e899),_0x474c85['customBlocks']=I(_0x474c85[_0x29e94d(0x1c4)],_0x50d013,_0x15e899),_0x474c85[_0x29e94d(0x1be)]=nt(_0x474c85[_0x29e94d(0x1be)],_0x50d013,_0x15e899),_0x474c85[_0x29e94d(0x1bd)]=rt(_0x474c85[_0x29e94d(0x1bd)],_0x50d013,_0x15e899),_0x474c85[_0x29e94d(0x209)]=R(_0x474c85[_0x29e94d(0x209)],_0x50d013,_0x15e899),_0x474c85[_0x29e94d(0x1ab)]=R(_0x474c85[_0x29e94d(0x1ab)],_0x50d013,_0x15e899),_0x474c85['customDecorations']=R(_0x474c85['customDecorations'],_0x50d013,_0x15e899),_0x474c85['blockRanges']=R(_0x474c85[_0x29e94d(0x230)],_0x50d013,_0x15e899);}function tt(_0x3b71fd,_0x1144a6,_0x2b044b){const _0x286a8c=_0x3ab0de;var _0xcec638,_0xf5f53f;_0x3b71fd['paragraphs']=L(_0x3b71fd[_0x286a8c(0x1a9)],_0x1144a6,_0x2b044b),_0x3b71fd[_0x286a8c(0x1c7)]=L(_0x3b71fd[_0x286a8c(0x1c7)],_0x1144a6,_0x2b044b),_0x3b71fd[_0x286a8c(0x1c4)]=L(_0x3b71fd[_0x286a8c(0x1c4)],_0x1144a6,_0x2b044b),_0x3b71fd['textRuns']=(_0xcec638=it((_0xf5f53f=_0x3b71fd['textRuns'])==null?void 0x0:_0xf5f53f[_0x286a8c(0x1e9)](_0x52f560=>({..._0x52f560,'startIndex':_0x52f560['st'],'endIndex':_0x52f560['ed']})),_0x1144a6,_0x2b044b))==null?void 0x0:_0xcec638['map'](_0x6fb793=>{let {startIndex:_0xa0599b,endIndex:_0xa906f7,..._0x4ade84}=_0x6fb793;return{..._0x4ade84,'st':_0xa0599b,'ed':_0xa906f7};}),_0x3b71fd[_0x286a8c(0x1bd)]=it(_0x3b71fd[_0x286a8c(0x1bd)],_0x1144a6,_0x2b044b),_0x3b71fd[_0x286a8c(0x209)]=z(_0x3b71fd[_0x286a8c(0x209)],_0x1144a6,_0x2b044b),_0x3b71fd['customRanges']=z(_0x3b71fd[_0x286a8c(0x1ab)],_0x1144a6,_0x2b044b),_0x3b71fd[_0x286a8c(0x218)]=z(_0x3b71fd[_0x286a8c(0x218)],_0x1144a6,_0x2b044b),_0x3b71fd[_0x286a8c(0x230)]=z(_0x3b71fd[_0x286a8c(0x230)],_0x1144a6,_0x2b044b);}function I(_0x4c09a2,_0x97c2e8,_0xb24df7){const _0x6d975f=_0x3ab0de;return _0x4c09a2==null?void 0x0:_0x4c09a2[_0x6d975f(0x1e9)](_0x2e1d9e=>_0x2e1d9e['startIndex']>=_0x97c2e8?{..._0x2e1d9e,'startIndex':_0x2e1d9e[_0x6d975f(0x21f)]+_0xb24df7}:_0x2e1d9e);}function L(_0x119419,_0x116959,_0x16a401){const _0x2e9261=_0x3ab0de;let _0x522ddb=_0x116959+_0x16a401;return _0x119419==null?void 0x0:_0x119419[_0x2e9261(0x1e9)](_0x5bb652=>_0x5bb652[_0x2e9261(0x21f)]>=_0x116959&&_0x5bb652[_0x2e9261(0x21f)]<_0x522ddb?null:_0x5bb652[_0x2e9261(0x21f)]>=_0x522ddb?{..._0x5bb652,'startIndex':_0x5bb652['startIndex']-_0x16a401}:_0x5bb652)[_0x2e9261(0x1bb)](_0x379a8d=>_0x379a8d!=null);}function _0x12f8(){const _0x5bcc44=['docs-code.command.insert-below','endsWith','editOp','_setResource','replaceDocRanges','isArray','TABLE_CELL_END','paragraphs','keepNext','customRanges','slice','_resources','toPrimitive','change$','getCodeConfig','BLOCK_END','textStyle','2myvPGS','_resourceManagerService','setCodeConfig','convert-paragraph','serialize','spaceAbove','indexOf','409004Qpgkvy','filter','columns','tables','textRuns','startOffset','_docsCodeModel','next','decorate','keepLines','customBlocks','right','range','sectionBreaks','PARAGRAPH','blockId','endOffset','TRUE','sort','UNIVER_DOC','some','push','pluginName','compose','_initResource','endTokenOffset','registerPluginResource','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','defineProperty','insertionMode','_injector','object','cursorOffset','Insert\x20range\x20cannot\x20cross\x20table\x20cell\x20boundaries','BLOCK_START','getBody','disposeWithMe','direction','getUnitId','nextMetadata','4jylYcq','_config','insertOp','find','2110308VyXHIO','CODE','205914BRcxpc','map','getParagraphsInRange','fromEntries','constructor','indentStart','paragraphStartIndex','DOC_CODE_PLUGIN','SECTION_BREAK','16533180ZLIQcr','dispose','body','setConfig','endIndex','nextDocumentData','deserialize','documentData','set','entries','Insert\x20range\x20cannot\x20overlap\x20an\x20existing\x20document\x20block','getCurrentUnitOfType','Document\x20body\x20is\x20required','packageName','add','insert-new','javascript','prototype','length','default','removeUnit','spaceBelow','reduce','clear','columnGroups','docs-code.command.update','paragraphStyle','call','1478315ddsvLK','_change$','startTokenOffset','function','keys','insertLength','previousDocumentData','MUTATION','docs-code.config','handler','dataStream','customDecorations','unitId','_configService','model','monospace','docs-code.command.remove','get','startIndex','codes','COMMAND','config','from','2999344WpZusz','onStarting','metadata','docs-code.command.cancel-empty-paragraph','replaceOp','asObservable','retain','start','getInstance','docs-code.command.unwrap','TABLE_CELL_START','min','blockRanges','type','parse','getTextRanges','removeCode','syncExecuteCommand','symbol','forEach','831747UqwISI','indentEnd','docs-code.command.consume-boundary-delete','commandService','deleteLength','string','docs-code.mutation.remove-config','blockType','stringify','paragraphId','_commandService','bullet','every','@univerjs-pro/docs-code','selectionManager','paragraph','version','max'];_0x12f8=function(){return _0x5bcc44;};return _0x12f8();}function nt(_0x167b69,_0x181d52,_0x8ddc98){return _0x167b69==null?void 0x0:_0x167b69['map'](_0xd16525=>_0xd16525['st']>=_0x181d52?{..._0xd16525,'st':_0xd16525['st']+_0x8ddc98,'ed':_0xd16525['ed']+_0x8ddc98}:_0xd16525['ed']>_0x181d52?{..._0xd16525,'ed':_0xd16525['ed']+_0x8ddc98}:_0xd16525);}function R(_0x4432c6,_0x44dacb,_0x4212be){const _0x1a399a=_0x3ab0de;return _0x4432c6==null?void 0x0:_0x4432c6[_0x1a399a(0x1e9)](_0x381126=>_0x905e98(_0x381126,_0x44dacb,_0x4212be));}function rt(_0x4fd975,_0x4bdab8,_0x27c9a5){const _0x4da922=_0x3ab0de;return _0x4fd975==null?void 0x0:_0x4fd975[_0x4da922(0x1e9)](_0x102d65=>_0x126e80(_0x102d65,_0x4bdab8,_0x27c9a5));}function z(_0x410e2f,_0x252d5f,_0x54bb59){const _0x457fe3=_0x3ab0de;return _0x410e2f==null?void 0x0:_0x410e2f[_0x457fe3(0x1e9)](_0x1ebf38=>_0x168a73(_0x1ebf38,_0x252d5f,_0x54bb59))[_0x457fe3(0x1bb)](_0x448d95=>_0x448d95!=null);}function it(_0x1fd29e,_0x1d6287,_0x5a13b5){const _0x586f1=_0x3ab0de;return _0x1fd29e==null?void 0x0:_0x1fd29e['map'](_0x40cf9c=>_0x2a6859(_0x40cf9c,_0x1d6287,_0x5a13b5))[_0x586f1(0x1bb)](_0x170721=>_0x170721!=null);}const at={'id':_0x3ab0de(0x1a2),'type':_0x41a6f1['COMMAND'],'handler':_0x55eb44=>{const _0x11e4c5=_0x3ab0de;var _0x39d914;if(_0x21b5bf(G(_0x55eb44)))return!0x1;let _0x35896a=_0x3760de(_0x55eb44);if(_0x35896a)return _0x55eb44[_0x11e4c5(0x21e)](_0x15ccf6)['syncExecuteCommand'](B['id'],{'startOffset':_0x35896a['startOffset'],'endOffset':_0x35896a[_0x11e4c5(0x1ca)],'insertionMode':_0x11e4c5(0x200),'unitId':_0x35896a['unitId']});let _0x5d9128=ft(_0x55eb44);if(!_0x5d9128)return!0x1;let _0x5e2ac8=(_0x39d914=_0x55eb44['get'](_0x964d3a)['getCurrentUnitOfType'](_0x48efbf[_0x11e4c5(0x1cd)]))==null?void 0x0:_0x39d914[_0x11e4c5(0x1dd)](),_0x4ca85e=_0x5e2ac8?_0x1831c1(_0x5e2ac8,_0x5d9128):_0x5d9128[_0x11e4c5(0x21f)]+0x1;return _0x55eb44[_0x11e4c5(0x21e)](_0x15ccf6)[_0x11e4c5(0x235)](B['id'],{'startOffset':_0x4ca85e,'endOffset':_0x4ca85e});}},ot={'id':_0x3ab0de(0x23a),'type':_0x41a6f1[_0x3ab0de(0x221)],'handler':()=>!0x0},B={'id':'docs-code.command.insert','type':_0x41a6f1[_0x3ab0de(0x221)],'handler':(_0x17fee5,_0x3c02cc)=>{const _0x357e63=_0x3ab0de;let _0x2c1e71=W(_0x17fee5,_0x3c02cc==null?void 0x0:_0x3c02cc[_0x357e63(0x219)]);if(!_0x2c1e71)return!0x1;let _0x5b2a5a=G(_0x17fee5);if(_0x21b5bf(_0x5b2a5a))return!0x1;let _0x2b801b=_0x2c1e71[_0x357e63(0x21b)][_0x357e63(0x1b7)](_0x2c1e71[_0x357e63(0x219)]),_0x14cb38=lt(_0x3c02cc,_0x5b2a5a),_0x5e0a81=ut(_0x2c1e71[_0x357e63(0x213)],_0x14cb38);if(_0x5e0a81){if(_0x5e0a81[_0x357e63(0x197)]!==_0x435faa[_0x357e63(0x1e7)])return!0x1;let _0x8ab0c8=D({'blockId':_0x5e0a81[_0x357e63(0x1c9)],'documentData':_0x2c1e71[_0x357e63(0x213)],'metadata':_0x2b801b});if(!_0x8ab0c8)return!0x1;let _0x5b6863=Y(_0x2c1e71[_0x357e63(0x23b)],_0x2c1e71[_0x357e63(0x19e)],_0x2c1e71[_0x357e63(0x219)],_0x2c1e71[_0x357e63(0x213)],_0x8ab0c8[_0x357e63(0x1f6)],B['id'],_0x8ab0c8['cursorOffset']);return _0x5b6863&&_0x8ab0c8[_0x357e63(0x1e1)]&&_0x2c1e71[_0x357e63(0x21b)][_0x357e63(0x1f7)](_0x2c1e71['unitId'],_0x8ab0c8[_0x357e63(0x1e1)]),_0x5b6863;}let _0x554dec=(_0x3c02cc==null?void 0x0:_0x3c02cc['blockId'])??_0x2991d6(0x6),_0x41b866;try{_0x41b866=De({'blockId':_0x554dec,'config':_0x3c02cc==null?void 0x0:_0x3c02cc['config'],'documentData':_0x2c1e71[_0x357e63(0x213)],'endOffset':_0x14cb38==null?void 0x0:_0x14cb38[_0x357e63(0x1ca)],'insertionMode':_0x3c02cc==null?void 0x0:_0x3c02cc[_0x357e63(0x1d7)],'metadata':_0x2b801b,'startOffset':_0x14cb38==null?void 0x0:_0x14cb38[_0x357e63(0x1bf)]});}catch(_0x3ff4b8){if(_0x3ff4b8 instanceof E)return!0x1;throw _0x3ff4b8;}let _0x270854=Y(_0x2c1e71['commandService'],_0x2c1e71[_0x357e63(0x19e)],_0x2c1e71[_0x357e63(0x219)],_0x2c1e71[_0x357e63(0x213)],_0x41b866[_0x357e63(0x1f6)],B['id'],_0x41b866[_0x357e63(0x1da)]);return _0x270854&&_0x41b866[_0x357e63(0x1e1)]&&_0x2c1e71[_0x357e63(0x21b)][_0x357e63(0x1f7)](_0x2c1e71[_0x357e63(0x219)],_0x41b866[_0x357e63(0x1e1)]),_0x270854;}},st={'id':_0x3ab0de(0x20a),'type':_0x41a6f1[_0x3ab0de(0x221)],'handler':(_0x2e9cdc,_0x361f34)=>{const _0x2ee026=_0x3ab0de;if(!_0x361f34)return!0x1;let _0x977d32=W(_0x2e9cdc,_0x361f34[_0x2ee026(0x219)]);if(!_0x977d32)return!0x1;let _0x29756c=je({'blockId':_0x361f34[_0x2ee026(0x1c9)],'config':_0x361f34[_0x2ee026(0x222)],'documentData':_0x977d32[_0x2ee026(0x213)],'metadata':_0x977d32[_0x2ee026(0x21b)][_0x2ee026(0x1b7)](_0x977d32['unitId'])});return _0x29756c[_0x2ee026(0x1e1)]&&_0x977d32[_0x2ee026(0x21b)][_0x2ee026(0x1f7)](_0x977d32[_0x2ee026(0x219)],_0x29756c[_0x2ee026(0x1e1)]),!0x0;}},ct={'id':'docs-code.command.exit','type':_0x41a6f1['COMMAND'],'handler':(_0x55cf45,_0x24dbc5)=>V[_0x3ab0de(0x216)](_0x55cf45,_0x24dbc5)},V={'id':_0x3ab0de(0x22d),'type':_0x41a6f1['COMMAND'],'handler':(_0xb65b53,_0x3cfc93)=>{const _0x4bcbd4=_0x3ab0de;if(!_0x3cfc93)return!0x1;let _0x15ddb4=W(_0xb65b53,_0x3cfc93==null?void 0x0:_0x3cfc93[_0x4bcbd4(0x219)]);if(!_0x15ddb4)return!0x1;let _0x590f70=D({'blockId':_0x3cfc93[_0x4bcbd4(0x1c9)],'documentData':_0x15ddb4[_0x4bcbd4(0x213)],'metadata':_0x15ddb4[_0x4bcbd4(0x21b)]['serialize'](_0x15ddb4[_0x4bcbd4(0x219)])});if(!_0x590f70)return!0x1;let _0x2b78a3=Y(_0x15ddb4[_0x4bcbd4(0x23b)],_0x15ddb4[_0x4bcbd4(0x19e)],_0x15ddb4[_0x4bcbd4(0x219)],_0x15ddb4[_0x4bcbd4(0x213)],_0x590f70[_0x4bcbd4(0x1f6)],V['id'],_0x590f70[_0x4bcbd4(0x1da)]);return _0x2b78a3&&_0x590f70[_0x4bcbd4(0x1e1)]&&_0x15ddb4[_0x4bcbd4(0x21b)]['deserialize'](_0x15ddb4['unitId'],_0x590f70[_0x4bcbd4(0x1e1)]),_0x2b78a3;}},H={'id':_0x3ab0de(0x21d),'type':_0x41a6f1['COMMAND'],'handler':(_0x46136f,_0x202a06)=>{const _0x337597=_0x3ab0de;if(!_0x202a06)return!0x1;let _0xecab45=W(_0x46136f,_0x202a06==null?void 0x0:_0x202a06[_0x337597(0x219)]);if(!_0xecab45)return!0x1;let _0x47ab34=Me({'blockId':_0x202a06[_0x337597(0x1c9)],'documentData':_0xecab45[_0x337597(0x213)],'metadata':_0xecab45['model']['serialize'](_0xecab45['unitId'])});if(!_0x47ab34)return!0x1;let _0x5edddb=Y(_0xecab45[_0x337597(0x23b)],_0xecab45[_0x337597(0x19e)],_0xecab45[_0x337597(0x219)],_0xecab45['previousDocumentData'],_0x47ab34[_0x337597(0x1f6)],H['id'],_0x47ab34[_0x337597(0x1da)]);return _0x5edddb&&_0x47ab34[_0x337597(0x1e1)]&&_0xecab45['model'][_0x337597(0x1f7)](_0xecab45['unitId'],_0x47ab34[_0x337597(0x1e1)]),_0x5edddb;}},U={'id':_0x3ab0de(0x227),'type':_0x41a6f1[_0x3ab0de(0x221)],'handler':(_0x211ce3,_0x257f7d)=>{const _0x5184e0=_0x3ab0de;var _0x5cff4a;let _0x4a45b0=W(_0x211ce3,_0x257f7d==null?void 0x0:_0x257f7d[_0x5184e0(0x219)]);if(!_0x4a45b0)return!0x1;let _0x5a9d81=(_0x257f7d==null?void 0x0:_0x257f7d[_0x5184e0(0x1da)])??((_0x5cff4a=G(_0x211ce3))==null?void 0x0:_0x5cff4a['startOffset']);if(_0x5a9d81==null)return!0x1;let _0x129776=Ne({'cursorOffset':_0x5a9d81,'documentData':_0x4a45b0['previousDocumentData'],'paragraphStartIndex':_0x257f7d==null?void 0x0:_0x257f7d[_0x5184e0(0x1ee)]});return _0x129776?Y(_0x4a45b0[_0x5184e0(0x23b)],_0x4a45b0[_0x5184e0(0x19e)],_0x4a45b0[_0x5184e0(0x219)],_0x4a45b0[_0x5184e0(0x213)],_0x129776[_0x5184e0(0x1f6)],U['id'],_0x129776[_0x5184e0(0x1da)]):!0x1;}};function W(_0x53c2b0,_0x1260c3){const _0x48b90a=_0x3ab0de;let _0xb8eeae=_0x53c2b0[_0x48b90a(0x21e)](_0x964d3a),_0x5744b7=_0x1260c3?_0xb8eeae['getUnit'](_0x1260c3,_0x48efbf[_0x48b90a(0x1cd)]):_0xb8eeae[_0x48b90a(0x1fc)](_0x48efbf['UNIVER_DOC']);return _0x5744b7?{'commandService':_0x53c2b0[_0x48b90a(0x21e)](_0x15ccf6),'model':_0x53c2b0['get'](w),'previousDocumentData':_0x5744b7['getSnapshot'](),'selectionManager':_0x53c2b0[_0x48b90a(0x21e)](_0x47ac4f),'unitId':_0x5744b7[_0x48b90a(0x1e0)]()}:null;}function G(_0x33152b){const _0x1201d4=_0x3ab0de;var _0x4e2653;return(_0x4e2653=_0x33152b[_0x1201d4(0x21e)](_0x47ac4f)[_0x1201d4(0x233)]())==null?void 0x0:_0x4e2653[0x0];}function lt(_0x1df402,_0x430091){const _0x306b6b=_0x3ab0de;let _0x2ed7d4=(_0x1df402==null?void 0x0:_0x1df402[_0x306b6b(0x1bf)])??(_0x430091==null?void 0x0:_0x430091[_0x306b6b(0x1bf)]),_0x56bc86=(_0x1df402==null?void 0x0:_0x1df402[_0x306b6b(0x1ca)])??(_0x430091==null?void 0x0:_0x430091[_0x306b6b(0x1ca)]);if(_0x2ed7d4!=null&&_0x56bc86!=null)return{'endOffset':Math[_0x306b6b(0x1a1)](_0x2ed7d4,_0x56bc86),'startOffset':Math['min'](_0x2ed7d4,_0x56bc86)};}function ut(_0x103095,_0x5ce19e){const _0x53306f=_0x3ab0de;var _0x1d459f;if(!_0x5ce19e)return;let _0x24fdee=dt(_0x5ce19e);return(_0x1d459f=_0x103095['body'])==null||(_0x1d459f=_0x1d459f[_0x53306f(0x230)])==null?void 0x0:_0x1d459f[_0x53306f(0x1e5)](_0x338e19=>{const _0x186ec7=_0x53306f;let _0x300d67=_0x31f500(_0x338e19);return _0x5ce19e[_0x186ec7(0x1bf)]===_0x5ce19e[_0x186ec7(0x1ca)]?_0x300592(_0x300d67,_0x24fdee):_0x114c5d(_0x300d67,_0x24fdee);});}function dt(_0x2944aa){const _0x18587e=_0x3ab0de;return _0x2944aa['startOffset']===_0x2944aa['endOffset']?_0x2944aa['startOffset']:_0x2944aa[_0x18587e(0x1bf)]+0x1;}function ft(_0x21ba25){const _0x49ff96=_0x3ab0de;let _0x4fbb48=G(_0x21ba25);if(!_0x4fbb48)return null;let _0x745d23=_0x21ba25[_0x49ff96(0x21e)](_0x964d3a)['getCurrentUnitOfType'](_0x48efbf[_0x49ff96(0x1cd)]),_0x5279e0=_0x745d23==null?void 0x0:_0x745d23[_0x49ff96(0x1dd)]();return _0x5279e0?_0x58acab[_0x49ff96(0x1c6)][_0x49ff96(0x1ea)](_0x4fbb48,_0x5279e0['paragraphs']??[],_0x5279e0[_0x49ff96(0x217)]??'')[0x0]??null:null;}function pt(_0xad234c,_0x469ef4){const _0x279b10=_0x3ab0de;let _0x310522=_0xad234c['body'],_0x38db8c=_0x469ef4[_0x279b10(0x1f3)],_0x7d158a=_0x2f99b7(_0x310522,_0x38db8c);return[_0x7d158a&&_0x38db8c?mt(_0x38db8c,_0x7d158a):null,_0x7d158a?null:ht(_0x310522,_0x38db8c)]['filter'](Boolean)['reduce']((_0x5acc95,_0x349644)=>_0x5e3e53[_0x279b10(0x1d1)](_0x5acc95,_0x349644),null);}function mt(_0x47014e,_0x23d102){const _0x2e3aec=_0x3ab0de;let _0x14aa65=new _0x443f5a();return _0x14aa65[_0x2e3aec(0x22a)](_0x23d102['start']),_0x23d102[_0x2e3aec(0x212)]>0x0&&_0x14aa65['insert'](_0x23d102['insertLength'],_0x2b04e8(_0x47014e,_0x23d102[_0x2e3aec(0x22b)],_0x23d102[_0x2e3aec(0x22b)]+_0x23d102['insertLength'],!0x1)),_0x23d102[_0x2e3aec(0x194)]>0x0&&_0x14aa65['delete'](_0x23d102[_0x2e3aec(0x194)]),_0x5e3e53[_0x2e3aec(0x22c)]()[_0x2e3aec(0x1a4)](_0x14aa65[_0x2e3aec(0x1b7)](),[_0x2e3aec(0x1f3)]);}function ht(_0x261765,_0x30350f){const _0x263692=_0x3ab0de;let _0x1cfcb3=[],_0x3111ed=_0x261765?_t(_0x261765):void 0x0,_0x3e1514=_0x30350f?_t(_0x30350f):void 0x0;for(let _0xd52bc0 of gt)K(_0x5e3e53[_0x263692(0x22c)](),[_0x263692(0x1f3),_0xd52bc0],_0x3111ed==null?void 0x0:_0x3111ed[_0xd52bc0],_0x3e1514==null?void 0x0:_0x3e1514[_0xd52bc0],_0x1cfcb3);return _0x1cfcb3[_0x263692(0x207)]((_0x1f1ad2,_0x55aed3)=>_0x5e3e53[_0x263692(0x1d1)](_0x1f1ad2,_0x55aed3),null);}const gt=[_0x3ab0de(0x1a9),'sectionBreaks','tables',_0x3ab0de(0x209),_0x3ab0de(0x230),_0x3ab0de(0x1c4),_0x3ab0de(0x1ab),_0x3ab0de(0x218),_0x3ab0de(0x1be)];function _t(_0x380e90){return _0x380e90;}function K(_0x31d451,_0x9cae8a,_0xee46f2,_0x2f1d5a,_0x1a7fc9){const _0x38cdce=_0x3ab0de;if(!J(_0xee46f2,_0x2f1d5a)){if(_0xee46f2==null){_0x1a7fc9[_0x38cdce(0x1cf)](_0x31d451['insertOp'](_0x9cae8a,_0x2f1d5a));return;}if(_0x2f1d5a==null){_0x1a7fc9['push'](_0x31d451['removeOp'](_0x9cae8a,_0xee46f2));return;}if(Array[_0x38cdce(0x1a7)](_0xee46f2)&&Array['isArray'](_0x2f1d5a)){vt(_0x31d451,_0x9cae8a,_0xee46f2,_0x2f1d5a,_0x1a7fc9);return;}if(q(_0xee46f2)&&q(_0x2f1d5a)){new Set([...Object[_0x38cdce(0x211)](_0xee46f2),...Object[_0x38cdce(0x211)](_0x2f1d5a)])[_0x38cdce(0x237)](_0x2fee23=>{K(_0x31d451,[..._0x9cae8a,_0x2fee23],_0xee46f2[_0x2fee23],_0x2f1d5a[_0x2fee23],_0x1a7fc9);});return;}_0x1a7fc9[_0x38cdce(0x1cf)](_0x31d451[_0x38cdce(0x228)](_0x9cae8a,_0xee46f2,_0x2f1d5a));}}function vt(_0x3494d5,_0x4620d7,_0x393a0b,_0xc20ad3,_0x24519f){const _0x14ec4b=_0x3ab0de;if(_0x393a0b[_0x14ec4b(0x203)]===_0xc20ad3[_0x14ec4b(0x203)]){_0x393a0b['forEach']((_0x18c212,_0x4f630f)=>K(_0x3494d5,[..._0x4620d7,_0x4f630f],_0x18c212,_0xc20ad3[_0x4f630f],_0x24519f));return;}let _0x5d127e=0x0;for(;_0x5d127e<_0x393a0b[_0x14ec4b(0x203)]&&_0x5d127e<_0xc20ad3['length']&&J(_0x393a0b[_0x5d127e],_0xc20ad3[_0x5d127e]);)_0x5d127e++;let _0x4cc7c2=_0x393a0b[_0x14ec4b(0x203)]-0x1,_0x1f2ec4=_0xc20ad3['length']-0x1;for(;_0x4cc7c2>=_0x5d127e&&_0x1f2ec4>=_0x5d127e&&J(_0x393a0b[_0x4cc7c2],_0xc20ad3[_0x1f2ec4]);)_0x4cc7c2--,_0x1f2ec4--;for(let _0x468652=_0x4cc7c2;_0x468652>=_0x5d127e;_0x468652--)_0x24519f[_0x14ec4b(0x1cf)](_0x3494d5['removeOp']([..._0x4620d7,_0x468652],_0x393a0b[_0x468652]));for(let _0x5d7ad2=_0x5d127e;_0x5d7ad2<=_0x1f2ec4;_0x5d7ad2++)_0x24519f[_0x14ec4b(0x1cf)](_0x3494d5[_0x14ec4b(0x1e4)]([..._0x4620d7,_0x5d7ad2],_0xc20ad3[_0x5d7ad2]));}function q(_0x2aa9ad){const _0x36c725=_0x3ab0de;return typeof _0x2aa9ad==_0x36c725(0x1d9)&&!!_0x2aa9ad&&!Array['isArray'](_0x2aa9ad);}function J(_0x61e505,_0x299b70){const _0x452bd4=_0x3ab0de;return JSON['stringify'](_0x61e505)===JSON[_0x452bd4(0x198)](_0x299b70);}function Y(_0x2acb24,_0x2a5bb8,_0x23406e,_0x215c55,_0x8bd1ad,_0x247c11,_0x17dd6a){const _0x5984d8=_0x3ab0de;let _0x4291cf=pt(_0x215c55,_0x8bd1ad);return _0x4291cf?!!_0x2acb24[_0x5984d8(0x235)](_0x388771['id'],{'unitId':_0x23406e,'actions':_0x4291cf,'textRanges':[{'startOffset':_0x17dd6a,'endOffset':_0x17dd6a,'collapsed':!0x0}],'isEditing':!0x1,'trigger':_0x247c11}):(_0x2a5bb8[_0x5984d8(0x1a6)]([{'startOffset':_0x17dd6a,'endOffset':_0x17dd6a}],{'unitId':_0x23406e,'subUnitId':_0x23406e},!0x1),!0x0);}const X=_0x3ab0de(0x1ef);var yt=_0x3ab0de(0x19d),bt='1.0.1';const xt={};function Z(_0x306196,_0xc449b3){return function(_0xb6c42,_0xff4b51){_0xc449b3(_0xb6c42,_0xff4b51,_0x306196);};}function St(_0x1509b0,_0x13156d,_0x38c417,_0x547e8c){const _0x40a9b7=_0x3ab0de;var _0x4068d3=arguments[_0x40a9b7(0x203)],_0x5ab783=_0x4068d3<0x3?_0x13156d:_0x547e8c===null?_0x547e8c=Object['getOwnPropertyDescriptor'](_0x13156d,_0x38c417):_0x547e8c,_0x48588f;if(typeof Reflect==_0x40a9b7(0x1d9)&&typeof Reflect[_0x40a9b7(0x1c2)]==_0x40a9b7(0x210))_0x5ab783=Reflect['decorate'](_0x1509b0,_0x13156d,_0x38c417,_0x547e8c);else{for(var _0x5b2670=_0x1509b0[_0x40a9b7(0x203)]-0x1;_0x5b2670>=0x0;_0x5b2670--)(_0x48588f=_0x1509b0[_0x5b2670])&&(_0x5ab783=(_0x4068d3<0x3?_0x48588f(_0x5ab783):_0x4068d3>0x3?_0x48588f(_0x13156d,_0x38c417,_0x5ab783):_0x48588f(_0x13156d,_0x38c417))||_0x5ab783);}return _0x4068d3>0x3&&_0x5ab783&&Object['defineProperty'](_0x13156d,_0x38c417,_0x5ab783),_0x5ab783;}let Q=class extends _0x562207{constructor(_0x103c62,_0x26bd89){const _0x533e71=_0x3ab0de;super(),this[_0x533e71(0x1b4)]=_0x103c62,this[_0x533e71(0x1c0)]=_0x26bd89,this[_0x533e71(0x1d2)]();}[_0x3ab0de(0x1d2)](){const _0x320881=_0x3ab0de;this[_0x320881(0x1de)](this[_0x320881(0x1b4)][_0x320881(0x1d4)]({'pluginName':X,'businesses':[_0x48efbf['UNIVER_DOC']],'toJson':_0x4e5e4e=>JSON[_0x320881(0x198)](this['_docsCodeModel'][_0x320881(0x1b7)](_0x4e5e4e)),'parseJson':_0x1ed1cb=>y(JSON[_0x320881(0x232)](_0x1ed1cb)),'onLoad':(_0x92cc48,_0x22db5b)=>this['_docsCodeModel'][_0x320881(0x1f7)](_0x92cc48,_0x22db5b),'onUnLoad':_0x17d96a=>this['_docsCodeModel'][_0x320881(0x205)](_0x17d96a)}));}};Q=St([Z(0x0,_0x22a43b),Z(0x1,_0x57b8aa(w))],Q);let $=class extends _0x5733e8{constructor(_0x47712d=xt,_0x14146a,_0x45ca49,_0x13ab26){const _0x3a86ca=_0x3ab0de;super(),this[_0x3a86ca(0x1e3)]=_0x47712d,this[_0x3a86ca(0x1d8)]=_0x14146a,this[_0x3a86ca(0x19a)]=_0x45ca49,this[_0x3a86ca(0x21a)]=_0x13ab26;let {..._0x568be0}=_0x18c64b({},xt,this[_0x3a86ca(0x1e3)]);this[_0x3a86ca(0x21a)][_0x3a86ca(0x1f4)](_0x3a86ca(0x215),_0x568be0);}[_0x3ab0de(0x225)](){const _0x376cd6=_0x3ab0de;this[_0x376cd6(0x1d8)][_0x376cd6(0x1ff)]([w]),this[_0x376cd6(0x1d8)]['add']([Q]),this[_0x376cd6(0x1d8)][_0x376cd6(0x21e)](w),this['_injector'][_0x376cd6(0x21e)](Q),[B,at,st,V,H,ct,U,ot,Te,T][_0x376cd6(0x237)](_0x306ca1=>this[_0x376cd6(0x1de)](this['_commandService']['registerCommand'](_0x306ca1)));}};C($,_0x3ab0de(0x1d0),X),C($,_0x3ab0de(0x1fe),yt),C($,_0x3ab0de(0x1a0),bt),C($,_0x3ab0de(0x231),_0x48efbf[_0x3ab0de(0x1cd)]),$=St([_0x3dbf34(_0x3b72f5,_0x32f376),Z(0x1,_0x57b8aa(_0x584fc0)),Z(0x2,_0x15ccf6),Z(0x3,_0x1a34db)],$);export{X as DOCS_CODE_PLUGIN,U as DocsCodeCancelEmptyParagraphCommand,ot as DocsCodeConsumeBoundaryDeleteCommand,at as DocsCodeInsertBelowCommand,B as DocsCodeInsertCommand,w as DocsCodeModel,H as DocsCodeRemoveCommand,V as DocsCodeUnwrapCommand,st as DocsCodeUpdateCommand,T as RemoveDocsCodeConfigMutation,Te as SetDocsCodeConfigMutation,$ as UniverDocsCodePlugin,Ne as buildCancelEmptyCodeParagraphActions,Ie as isCodeBoundaryDelete,v as normalizeDocsCodeConfig,y as normalizeDocsCodeMetadataResource};
|
|
1
|
+
const _0x49483d=_0x10b3;(function(_0x14b103,_0x5c8c9e){const _0x591240=_0x10b3,_0x58d2a8=_0x14b103();while(!![]){try{const _0x51f231=parseInt(_0x591240(0xb9))/0x1+-parseInt(_0x591240(0x10a))/0x2+parseInt(_0x591240(0xeb))/0x3+-parseInt(_0x591240(0x7f))/0x4+parseInt(_0x591240(0x103))/0x5+parseInt(_0x591240(0x98))/0x6*(parseInt(_0x591240(0x85))/0x7)+parseInt(_0x591240(0x9a))/0x8;if(_0x51f231===_0x5c8c9e)break;else _0x58d2a8['push'](_0x58d2a8['shift']());}catch(_0x11e292){_0x58d2a8['push'](_0x58d2a8['shift']());}}}(_0x1d98,0x51901));import{BooleanNumber as _0x29f404,BuildTextUtils as _0x18ba16,CommandType as _0x446cfc,DataStreamTreeTokenType as _0x23e365,DependentOn as _0x5aaaeb,Disposable as _0x24e448,DocumentBlockRangeType as _0x2324fb,ICommandService as _0x330d40,IConfigService as _0x5ce515,IResourceManagerService as _0x4ec5e9,IUniverInstanceService as _0x1f322c,Inject as _0x34c829,Injector as _0x38f326,JSONX as _0x424cd6,Plugin as _0x5a8ee0,TextX as _0x227fc3,UniverInstanceType as _0x2fc27d,containsInteriorInsertionOffset as _0x116958,containsStreamIndex as _0x2d8224,createParagraphId as _0x338f66,generateRandomId as _0x5cf7a0,getBlockRangeInterval as _0x5c8dbe,getBodySliceForTextXAction as _0x25d42f,getParagraphContentStartOffset as _0x53b91f,getParagraphContentStartOffsets as _0x43bde5,getParagraphFollowingBlockOffset as _0x15574e,getSingleDataStreamChange as _0x5c68b1,intersectsOperationalIntervals as _0x467d94,merge as _0x1470e9,shiftExclusiveRangeOnDelete as _0xc1b9cd,shiftExclusiveRangeOnInsert as _0x3f24e6,shiftInclusiveRangeOnDelete as _0x2cee19,shiftInclusiveRangeOnInsert as _0x4cbd10}from'@univerjs/core';import{Subject as _0x4c06b3}from'rxjs';import{DocSelectionManagerService as _0x2baf85,RichTextEditingMutation as _0x274029,UniverDocsPlugin as _0x565d36,getContentInsertRange as _0x34eb39,isHeaderFooterSelection as _0x584ad5}from'@univerjs/docs';import{UniverLicensePlugin as _0xecd332}from'@univerjs-pro/license';const Se={'language':_0x49483d(0x73),'showLineNumbers':!0x1,'tabSize':0x4,'wrap':!0x0};function v(_0x2fd8ec){return{...Se,..._0x2fd8ec};}function y(_0x27f3e7){const _0x4284c3=_0x49483d;let _0x465372=(_0x27f3e7==null?void 0x0:_0x27f3e7['codes'])??{};return{'codes':Object[_0x4284c3(0xf4)](Object[_0x4284c3(0x6c)](_0x465372)['map'](([_0x4c64c2,_0x3cc3df])=>[_0x4c64c2,v(_0x3cc3df)]))};}function b(_0x2b3291,_0x55e095,_0x39c847){const _0x212846=_0x49483d;let _0xfbdd86=y(_0x2b3291);return _0xfbdd86[_0x212846(0x77)][_0x55e095]=v({..._0xfbdd86[_0x212846(0x77)][_0x55e095],..._0x39c847}),_0xfbdd86;}function x(_0x430777,_0x5ad778){const _0xf072f4=_0x49483d;let _0x4cedd0=y(_0x430777);return delete _0x4cedd0[_0xf072f4(0x77)][_0x5ad778],_0x4cedd0;}function S(_0x5c9d49){'@babel/helpers - typeof';const _0x384cd5=_0x49483d;return S=typeof Symbol==_0x384cd5(0x104)&&typeof Symbol[_0x384cd5(0xee)]==_0x384cd5(0xb4)?function(_0x1da516){return typeof _0x1da516;}:function(_0xb7294b){const _0x58d62e=_0x384cd5;return _0xb7294b&&typeof Symbol==_0x58d62e(0x104)&&_0xb7294b[_0x58d62e(0xb3)]===Symbol&&_0xb7294b!==Symbol[_0x58d62e(0x81)]?'symbol':typeof _0xb7294b;},S(_0x5c9d49);}function Ce(_0x19f620,_0x75fe26){const _0x2d2432=_0x49483d;if(S(_0x19f620)!=_0x2d2432(0xa8)||!_0x19f620)return _0x19f620;var _0x35571a=_0x19f620[Symbol[_0x2d2432(0x10c)]];if(_0x35571a!==void 0x0){var _0x45a69c=_0x35571a['call'](_0x19f620,_0x75fe26||_0x2d2432(0xb1));if(S(_0x45a69c)!=_0x2d2432(0xa8))return _0x45a69c;throw TypeError(_0x2d2432(0xb7));}return(_0x75fe26===_0x2d2432(0xa2)?String:Number)(_0x19f620);}function we(_0x1cdb53){const _0x28ce26=_0x49483d;var _0x3f9364=Ce(_0x1cdb53,_0x28ce26(0xa2));return S(_0x3f9364)=='symbol'?_0x3f9364:_0x3f9364+'';}function C(_0x53414e,_0xd559ea,_0x485df3){const _0x441a36=_0x49483d;return(_0xd559ea=we(_0xd559ea))in _0x53414e?Object[_0x441a36(0xc0)](_0x53414e,_0xd559ea,{'value':_0x485df3,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x53414e[_0xd559ea]=_0x485df3,_0x53414e;}var w=class extends _0x24e448{constructor(..._0x3f7706){const _0x567a72=_0x49483d;super(..._0x3f7706),C(this,_0x567a72(0xcf),new Map()),C(this,_0x567a72(0xf2),new _0x4c06b3()),C(this,_0x567a72(0x7b),this[_0x567a72(0xf2)][_0x567a72(0xd0)]());}[_0x49483d(0xa6)](_0x2d1548,_0x208336){const _0x157562=_0x49483d;return y(this[_0x157562(0xcf)][_0x157562(0xbd)](_0x2d1548))[_0x157562(0x77)][_0x208336];}['setCodeConfig'](_0x15f6c5,_0x24609d,_0x1c0038){const _0x2e993c=_0x49483d;this[_0x2e993c(0x8d)](_0x15f6c5,_0x24609d,b(this[_0x2e993c(0xcf)][_0x2e993c(0xbd)](_0x15f6c5),_0x24609d,_0x1c0038));}[_0x49483d(0xfd)](_0x58caac,_0x316b73){const _0x5a0ec4=_0x49483d;this['_setResource'](_0x58caac,_0x316b73,x(this[_0x5a0ec4(0xcf)][_0x5a0ec4(0xbd)](_0x58caac),_0x316b73));}['serialize'](_0x31ee18){const _0x5bcac=_0x49483d;return y(this[_0x5bcac(0xcf)][_0x5bcac(0xbd)](_0x31ee18));}['deserialize'](_0xe9376d,_0x32d901){const _0x515507=_0x49483d;this[_0x515507(0xcf)]['set'](_0xe9376d,y(_0x32d901)),this[_0x515507(0xf2)][_0x515507(0xd4)]({'unitId':_0xe9376d});}[_0x49483d(0xed)](_0x15de40){const _0x3cdd62=_0x49483d;this[_0x3cdd62(0xcf)][_0x3cdd62(0xe1)](_0x15de40),this[_0x3cdd62(0xf2)][_0x3cdd62(0xd4)]({'unitId':_0x15de40});}[_0x49483d(0x7a)](){const _0x885d59=_0x49483d;super[_0x885d59(0x7a)](),this[_0x885d59(0xcf)]['clear'](),this[_0x885d59(0xf2)][_0x885d59(0x68)]();}['_setResource'](_0x35c54b,_0x99d3eb,_0x54c80f){const _0x4bd794=_0x49483d;this[_0x4bd794(0xcf)][_0x4bd794(0xf3)](_0x35c54b,_0x54c80f),this['_change$'][_0x4bd794(0xd4)]({'unitId':_0x35c54b,'blockId':_0x99d3eb});}};const Te={'id':_0x49483d(0xc8),'type':_0x446cfc['MUTATION'],'handler':(_0x3b7a40,_0x74202d)=>!(_0x74202d!=null&&_0x74202d[_0x49483d(0x10b)])||!_0x74202d['blockId']?!0x1:(_0x3b7a40[_0x49483d(0xbd)](w)[_0x49483d(0xb2)](_0x74202d[_0x49483d(0x10b)],_0x74202d['blockId'],_0x74202d['config']),!0x0)},T={'id':_0x49483d(0xf6),'type':_0x446cfc[_0x49483d(0x8e)],'handler':(_0x189ccb,_0x5e75f1)=>!(_0x5e75f1!=null&&_0x5e75f1[_0x49483d(0x10b)])||!_0x5e75f1[_0x49483d(0x96)]?!0x1:(_0x189ccb[_0x49483d(0xbd)](w)[_0x49483d(0xfd)](_0x5e75f1[_0x49483d(0x10b)],_0x5e75f1[_0x49483d(0x96)]),!0x0)},Ee=_0x49483d(0x93);var E=class extends Error{constructor(_0x6af3ef=_0x49483d(0xd9)){super(_0x6af3ef);}};function De(_0x1e38d4){const _0x1e421d=_0x49483d;var _0x14805d;let _0x1292a6=O(_0x1e38d4[_0x1e421d(0xc6)]),_0x3b113a=A(_0x1292a6),_0x4fc674=ke(_0x1e38d4['startOffset'],_0x1e38d4[_0x1e421d(0x105)]),_0x58ddd1=_0x4fc674?(_0x14805d=_0x3b113a[_0x1e421d(0x79)])==null?void 0x0:_0x14805d[_0x1e421d(0xd5)](_0x56aba9=>{const _0x44d97e=_0x1e421d;let _0x47f8fe=_0x5c8dbe(_0x56aba9);return _0x47f8fe[_0x44d97e(0x10e)]===_0x4fc674[_0x44d97e(0x10e)]&&_0x47f8fe[_0x44d97e(0x105)]===_0x4fc674[_0x44d97e(0x105)];}):void 0x0,{startOffset:_0x21361e,endOffset:_0x486c81}=_0x58ddd1?_0x4fc674:We(_0x3b113a,_0x1e38d4[_0x1e421d(0x10e)],_0x1e38d4[_0x1e421d(0x105)],_0x1e38d4[_0x1e421d(0xa9)]);if(!_0x58ddd1&&Ae(_0x3b113a,_0x21361e,_0x486c81))throw new E(_0x1e421d(0x9e));let _0x9cadf8=qe(_0x3b113a,_0x21361e,_0x486c81),_0x1538e9=(_0x58ddd1==null?void 0x0:_0x58ddd1[_0x1e421d(0x96)])??_0x1e38d4[_0x1e421d(0x96)],_0xd79115=b(_0x1e38d4[_0x1e421d(0xd1)],_0x1538e9,{...Se,..._0x1e38d4[_0x1e421d(0x9c)]});if(_0x58ddd1)return _0x58ddd1['blockType']=_0x2324fb['CODE'],Oe(_0x3b113a,_0x21361e,_0x486c81),ze(_0x3b113a,_0x21361e,_0x486c81,_0x9cadf8),N(_0x3b113a,_0x58ddd1),{'nextDocumentData':_0x1292a6,'nextMetadata':_0xd79115,'cursorOffset':_0x21361e+0x1};if(_0x21361e===_0x486c81){var _0x27b7c0,_0x3f1ad0;let _0x71142d=''+_0x23e365[_0x1e421d(0xea)]+_0x23e365[_0x1e421d(0xff)]+_0x23e365[_0x1e421d(0x94)];P(_0x3b113a,_0x21361e,_0x71142d,{'paragraphs':[{'startIndex':0x1,'paragraphId':_0x338f66(new Set((_0x27b7c0=_0x3b113a[_0x1e421d(0x8a)])==null?void 0x0:_0x27b7c0[_0x1e421d(0x10f)](_0x140ef2=>_0x140ef2[_0x1e421d(0xe3)]))),'paragraphStyle':Re(!0x0,!0x0,_0x9cadf8)}],'blockRanges':[{'blockId':_0x1538e9,'blockType':_0x2324fb[_0x1e421d(0x89)],'startIndex':0x0,'endIndex':_0x71142d['length']-0x1}]});let _0xa00bb6=(_0x3f1ad0=_0x3b113a[_0x1e421d(0x79)])==null?void 0x0:_0x3f1ad0[_0x1e421d(0xd5)](_0x2d2851=>_0x2d2851['blockId']===_0x1538e9);return _0xa00bb6&&N(_0x3b113a,_0xa00bb6),{'nextDocumentData':_0x1292a6,'nextMetadata':_0xd79115,'cursorOffset':_0x21361e+0x1};}P(_0x3b113a,_0x486c81,_0x23e365[_0x1e421d(0x94)]),P(_0x3b113a,_0x21361e,_0x23e365[_0x1e421d(0xea)]),ze(_0x3b113a,_0x21361e,_0x486c81+0x1,_0x9cadf8);let _0xa825fe={'blockId':_0x1538e9,'blockType':_0x2324fb['CODE'],'startIndex':_0x21361e,'endIndex':_0x486c81+0x1};return _0x3b113a[_0x1e421d(0x79)]=[..._0x3b113a['blockRanges']??[],_0xa825fe][_0x1e421d(0x8f)]((_0x42c256,_0x4958a6)=>_0x42c256[_0x1e421d(0xca)]-_0x4958a6['startIndex']),N(_0x3b113a,_0xa825fe),{'nextDocumentData':_0x1292a6,'nextMetadata':_0xd79115,'cursorOffset':_0x21361e+0x1};}function Oe(_0x569f5a,_0xc9ffed,_0x7f39ee){const _0x31a78e=_0x49483d;(_0x569f5a[_0x31a78e(0x8a)]??[])[_0x31a78e(0xf1)](_0xa460f6=>_0xa460f6[_0x31a78e(0xca)]>_0xc9ffed&&_0xa460f6[_0x31a78e(0xca)]<_0x7f39ee)[_0x31a78e(0xe5)](_0x2df4eb=>{const _0x546be9=_0x31a78e;let _0x27ff86={..._0x2df4eb['paragraphStyle']??{}};delete _0x27ff86['spaceAbove'],delete _0x27ff86[_0x546be9(0xe4)],_0x2df4eb[_0x546be9(0xdc)]=_0x27ff86;});}function ke(_0x5ee40c,_0x1a06f8){const _0x4acf41=_0x49483d;return _0x5ee40c==null||_0x1a06f8==null||_0x5ee40c===_0x1a06f8?null:{'startOffset':Math[_0x4acf41(0xef)](_0x5ee40c,_0x1a06f8),'endOffset':Math[_0x4acf41(0xda)](_0x5ee40c,_0x1a06f8)};}function Ae(_0x4d375f,_0x29f319,_0x5a009b){const _0xb2567=_0x49483d;return(_0x4d375f[_0xb2567(0x79)]??[])[_0xb2567(0xbf)](_0x65238=>{let _0x142255=_0x5c8dbe(_0x65238);return _0x29f319===_0x5a009b?_0x116958(_0x142255,_0x29f319):_0x467d94(_0x142255,{'startOffset':_0x29f319,'endOffset':_0x5a009b});});}function je(_0x7091ae){const _0x18f848=_0x49483d;return{'nextDocumentData':O(_0x7091ae[_0x18f848(0xc6)]),'nextMetadata':b(_0x7091ae[_0x18f848(0xd1)],_0x7091ae['blockId'],_0x7091ae[_0x18f848(0x9c)]),'cursorOffset':0x0};}function D(_0x187855){const _0x43f178=_0x49483d;let _0x14ae2b=O(_0x187855[_0x43f178(0xc6)]),_0x17a60e=A(_0x14ae2b),_0x4e97d7=Fe(_0x17a60e,_0x187855[_0x43f178(0x96)]);if(!_0x4e97d7)return null;let _0x44597e=He(_0x17a60e,_0x4e97d7);return{'nextDocumentData':_0x14ae2b,'nextMetadata':x(_0x187855['metadata'],_0x187855[_0x43f178(0x96)]),'cursorOffset':_0x44597e};}function Me(_0x5c21a1){const _0x5aa05d=_0x49483d;var _0x3c4db0;let _0x100d51=O(_0x5c21a1[_0x5aa05d(0xc6)]),_0xd4c3d0=A(_0x100d51),_0x58bb3d=Fe(_0xd4c3d0,_0x5c21a1[_0x5aa05d(0x96)]);if(!_0x58bb3d)return null;let _0x488ce2=_0x5c8dbe(_0x58bb3d);return F(_0xd4c3d0,_0x488ce2[_0x5aa05d(0x10e)],_0x488ce2[_0x5aa05d(0x105)]),_0xd4c3d0['blockRanges']=(_0x3c4db0=_0xd4c3d0[_0x5aa05d(0x79)])==null?void 0x0:_0x3c4db0[_0x5aa05d(0xf1)](_0x295d33=>_0x295d33[_0x5aa05d(0x96)]!==_0x5c21a1[_0x5aa05d(0x96)]),{'nextDocumentData':_0x100d51,'nextMetadata':x(_0x5c21a1[_0x5aa05d(0xd1)],_0x5c21a1[_0x5aa05d(0x96)]),'cursorOffset':_0x58bb3d['startIndex']};}function Ne(_0x2cd8b9){const _0x21104c=_0x49483d;let _0x13d538=O(_0x2cd8b9[_0x21104c(0xc6)]),_0x1200fb=A(_0x13d538),_0x5c0da3=Le(_0x1200fb,_0x2cd8b9[_0x21104c(0xdb)]);return _0x5c0da3&&Pe(_0x13d538,_0x1200fb,_0x5c0da3,_0x2cd8b9[_0x21104c(0xdb)],_0x2cd8b9[_0x21104c(0x87)])||null;}function Pe(_0xf4e8f8,_0x740478,_0x55f7e3,_0x4fd208,_0x2c5134){const _0x420437=_0x49483d;let _0x5812b1=$e(_0x740478,_0x55f7e3,_0x4fd208,_0x2c5134);if(!_0x5812b1)return null;let _0x3bd5de=_0x5812b1[_0x420437(0xd3)]-0x1;return F(_0x740478,_0x5812b1[_0x420437(0x6b)][_0x420437(0xca)],_0x5812b1[_0x420437(0x6b)][_0x420437(0xca)]+0x1),{'nextDocumentData':_0xf4e8f8,'cursorOffset':_0x3bd5de};}function Fe(_0x2a8ec7,_0x221057){const _0x4f4f12=_0x49483d;var _0x2e9c51;return _0x2a8ec7==null||(_0x2e9c51=_0x2a8ec7[_0x4f4f12(0x79)])==null?void 0x0:_0x2e9c51['find'](_0x227b86=>_0x227b86[_0x4f4f12(0xc4)]===_0x2324fb[_0x4f4f12(0x89)]&&_0x227b86[_0x4f4f12(0x96)]===_0x221057);}function Ie(_0x339bef){const _0x34ba6c=_0x49483d;let _0x1ad03d=_0x339bef[_0x34ba6c(0xc6)][_0x34ba6c(0xc3)];if(!_0x1ad03d)return!0x1;let _0x406129=_0x339bef[_0x34ba6c(0x92)]==='left'?_0x339bef[_0x34ba6c(0xdb)]-0x1:_0x339bef[_0x34ba6c(0xdb)],_0x97ab16=_0x339bef[_0x34ba6c(0x92)]===_0x34ba6c(0xe9)?_0x339bef[_0x34ba6c(0xdb)]+0x1:_0x406129;return(_0x1ad03d[_0x34ba6c(0x79)]??[])['some'](_0x2e8d0b=>_0x2e8d0b[_0x34ba6c(0xc4)]===_0x2324fb[_0x34ba6c(0x89)]?_0x406129===_0x2e8d0b[_0x34ba6c(0xca)]||_0x406129===_0x2e8d0b[_0x34ba6c(0xfb)]||_0x97ab16===_0x2e8d0b['startIndex']||_0x97ab16===_0x2e8d0b[_0x34ba6c(0xfb)]:!0x1);}function Le(_0x28d177,_0x22f150){const _0xa78fcf=_0x49483d;var _0x332593;return(_0x332593=_0x28d177[_0xa78fcf(0x79)])==null?void 0x0:_0x332593[_0xa78fcf(0xd5)](_0x2b0e39=>{const _0x36e1e9=_0xa78fcf;let _0x44e7dc=M(_0x2b0e39);return _0x2b0e39['blockType']===_0x2324fb[_0x36e1e9(0x89)]&&_0x2b0e39[_0x36e1e9(0xca)]<=_0x22f150&&_0x22f150<=_0x44e7dc+0x2;});}function Re(_0x3f45ae,_0x3b02a5,_0x1ed424=!0x1){const _0x1efc96=_0x49483d;return{'indentEnd':{'v':0x14},'indentStart':{'v':0x14},'keepLines':_0x29f404[_0x1efc96(0x97)],'keepNext':_0x3b02a5?_0x29f404[_0x1efc96(0x78)]:_0x29f404[_0x1efc96(0x97)],'widowControl':_0x29f404['TRUE'],..._0x3f45ae&&_0x1ed424?{'spaceAbove':{'v':0x8}}:{},'textStyle':{'ff':Ee,'fs':0xc}};}function ze(_0x391312,_0x11c35b,_0x28e67c,_0x5572d3=!0x1){const _0x16e5ba=_0x49483d;let _0x527240=(_0x391312[_0x16e5ba(0x8a)]??[])[_0x16e5ba(0xf1)](_0x12170c=>_0x12170c[_0x16e5ba(0xca)]>_0x11c35b&&_0x12170c[_0x16e5ba(0xca)]<_0x28e67c);_0x527240[_0x16e5ba(0xe5)]((_0x13d09f,_0x2e86f2)=>{const _0x403290=_0x16e5ba;_0x13d09f[_0x403290(0xdc)]={..._0x13d09f[_0x403290(0xdc)]??{},...Re(_0x2e86f2===0x0,_0x2e86f2===_0x527240[_0x403290(0xa3)]-0x1,_0x5572d3)};});}function Be(_0x424465){const _0x5a0cb9=_0x49483d;var _0x42d594,_0x4f90ba;let _0x55c935={..._0x424465??{}};return delete _0x55c935['indentEnd'],delete _0x55c935[_0x5a0cb9(0xb8)],delete _0x55c935[_0x5a0cb9(0xa7)],delete _0x55c935[_0x5a0cb9(0xe4)],delete _0x55c935['keepLines'],delete _0x55c935[_0x5a0cb9(0xf7)],delete _0x55c935[_0x5a0cb9(0xfa)],((_0x42d594=_0x55c935['textStyle'])==null?void 0x0:_0x42d594['ff'])===Ee&&((_0x4f90ba=_0x55c935[_0x5a0cb9(0x69)])==null?void 0x0:_0x4f90ba['fs'])===0xc&&delete _0x55c935['textStyle'],_0x55c935;}function Ve(_0x136751,_0x3c0278){const _0xdd4f7d=_0x49483d;let _0x597b01=M(_0x3c0278);return(_0x136751[_0xdd4f7d(0x8a)]??[])[_0xdd4f7d(0xf1)](_0x12be88=>_0x12be88['startIndex']>_0x3c0278[_0xdd4f7d(0xca)]&&_0x12be88[_0xdd4f7d(0xca)]<_0x597b01);}function He(_0x319a34,_0x4a07f4){const _0x466d3d=_0x49483d;var _0x33e5e9;let _0x2a8141=M(_0x4a07f4);return Ve(_0x319a34,_0x4a07f4)[_0x466d3d(0xe5)](_0x3a5f34=>{const _0x50da24=_0x466d3d;_0x3a5f34[_0x50da24(0xdc)]=Be(_0x3a5f34[_0x50da24(0xdc)]);}),F(_0x319a34,_0x2a8141,_0x2a8141+0x1),F(_0x319a34,_0x4a07f4[_0x466d3d(0xca)],_0x4a07f4[_0x466d3d(0xca)]+0x1),_0x319a34[_0x466d3d(0x79)]=(_0x33e5e9=_0x319a34[_0x466d3d(0x79)])==null?void 0x0:_0x33e5e9[_0x466d3d(0xf1)](_0x1dd917=>_0x1dd917[_0x466d3d(0x96)]!==_0x4a07f4['blockId']),_0x4a07f4[_0x466d3d(0xca)];}function O(_0x14d594){const _0x16d08f=_0x49483d;return{..._0x14d594,'body':_0x14d594['body']?Ue(_0x14d594[_0x16d08f(0xc3)]):_0x14d594[_0x16d08f(0xc3)]};}function Ue(_0x1d1a3a){const _0x6a3fdc=_0x49483d;var _0x2c65ae,_0x1310ed,_0x32a5ee,_0x17552f,_0x36149d,_0x50d486,_0x257a93,_0x29d0a9,_0x2109ec;return{..._0x1d1a3a,'paragraphs':(_0x2c65ae=_0x1d1a3a[_0x6a3fdc(0x8a)])==null?void 0x0:_0x2c65ae[_0x6a3fdc(0x10f)](_0x48404c=>({..._0x48404c,'bullet':k(_0x48404c[_0x6a3fdc(0xe7)]),'paragraphStyle':k(_0x48404c['paragraphStyle'])})),'sectionBreaks':(_0x1310ed=_0x1d1a3a['sectionBreaks'])==null?void 0x0:_0x1310ed[_0x6a3fdc(0x10f)](_0x50877c=>({..._0x50877c})),'textRuns':(_0x32a5ee=_0x1d1a3a[_0x6a3fdc(0x95)])==null?void 0x0:_0x32a5ee[_0x6a3fdc(0x10f)](_0x539eba=>({..._0x539eba})),'tables':(_0x17552f=_0x1d1a3a[_0x6a3fdc(0xe8)])==null?void 0x0:_0x17552f[_0x6a3fdc(0x10f)](_0x52e5db=>({..._0x52e5db})),'columnGroups':(_0x36149d=_0x1d1a3a[_0x6a3fdc(0xc9)])==null?void 0x0:_0x36149d[_0x6a3fdc(0x10f)](_0x38835a=>{const _0x580558=_0x6a3fdc;var _0x23fa8b;return{..._0x38835a,'columns':(_0x23fa8b=_0x38835a[_0x580558(0xbc)])==null?void 0x0:_0x23fa8b['map'](_0x32505a=>k(_0x32505a))};}),'blockRanges':(_0x50d486=_0x1d1a3a[_0x6a3fdc(0x79)])==null?void 0x0:_0x50d486['map'](_0x118697=>({..._0x118697})),'customRanges':(_0x257a93=_0x1d1a3a[_0x6a3fdc(0x90)])==null?void 0x0:_0x257a93[_0x6a3fdc(0x10f)](_0x53ebbc=>({..._0x53ebbc})),'customDecorations':(_0x29d0a9=_0x1d1a3a[_0x6a3fdc(0xd8)])==null?void 0x0:_0x29d0a9[_0x6a3fdc(0x10f)](_0x4bf904=>({..._0x4bf904})),'customBlocks':(_0x2109ec=_0x1d1a3a[_0x6a3fdc(0x9b)])==null?void 0x0:_0x2109ec['map'](_0x3775bd=>({..._0x3775bd}))};}function k(_0x11b15f){const _0x11112b=_0x49483d;return Array['isArray'](_0x11b15f)?_0x11b15f[_0x11112b(0x10f)](_0x3431e0=>k(_0x3431e0)):!_0x11b15f||typeof _0x11b15f!=_0x11112b(0xa8)?_0x11b15f:Object[_0x11112b(0xf4)](Object[_0x11112b(0x6c)](_0x11b15f)[_0x11112b(0x10f)](([_0x4eff42,_0x4228b3])=>[_0x4eff42,k(_0x4228b3)]));}function _0x1d98(){const _0x53b81e=['paragraphs','registerCommand','TABLE_CELL_END','_setResource','MUTATION','sort','customRanges','getCurrentUnitOfType','direction','monospace','BLOCK_END','textRuns','blockId','TRUE','1356fFBjhY','convert-paragraph','1521960qbcpJR','customBlocks','config','dataStream','Insert\x20range\x20cannot\x20overlap\x20an\x20existing\x20document\x20block','stringify','docs-code.command.remove','packageName','string','length','replaceDocRanges','_initResource','getCodeConfig','spaceAbove','object','insertionMode','replaceOp','_docsCodeModel','selectionManager','endsWith','model','getUnit','handler','default','setCodeConfig','constructor','symbol','_config','getSnapshot','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','indentStart','500717rmLAri','COMMAND','_resourceManagerService','columns','get','every','some','defineProperty','keys','docs-code.command.unwrap','body','blockType','compose','documentData','commandService','docs-code.mutation.set-config','columnGroups','startIndex','insert','registerPluginResource','decorate','nextDocumentData','_resources','asObservable','metadata','parse','endTokenOffset','next','find','_commandService','getParagraphsInRange','customDecorations','Insert\x20range\x20cannot\x20cross\x20table\x20cell\x20boundaries','max','cursorOffset','paragraphStyle','indexOf','push','docs-code.command.cancel-empty-paragraph','from','delete','disposeWithMe','paragraphId','spaceBelow','forEach','syncExecuteCommand','bullet','tables','right','BLOCK_START','1855260FWutor','insertLength','removeUnit','iterator','min','removeOp','filter','_change$','set','fromEntries','insert-new','docs-code.mutation.remove-config','keepNext','pluginName','docs-code.command.consume-boundary-delete','widowControl','endIndex','_configService','removeCode','getInstance','PARAGRAPH','UNIVER_DOC','insertOp','start','34295QHiICr','function','endOffset','previousDocumentData','onStarting','type','version','1245408jwONUG','unitId','toPrimitive','range','startOffset','map','deserialize','getUnitId','isArray','complete','textStyle','_injector','paragraph','entries','sectionBreaks','docs-code.config','getTextRanges','editOp','startTokenOffset','TABLE_CELL_START','javascript','retain','Document\x20body\x20is\x20required','DOC_CODE_PLUGIN','codes','FALSE','blockRanges','dispose','change$','serialize','1.0.2','add','2458440iBVkEC','SECTION_BREAK','prototype','docs-code.command.insert-below','reduce','nextMetadata','7903SHlkbH','slice','paragraphStartIndex','@univerjs-pro/docs-code','CODE'];_0x1d98=function(){return _0x53b81e;};return _0x1d98();}function A(_0x26f889){const _0x49f3d3=_0x49483d;if(!_0x26f889['body'])throw Error(_0x49f3d3(0x75));return _0x26f889[_0x49f3d3(0xc3)];}function We(_0x527721,_0x3d912d,_0x3ddc6f,_0x2e2e3b=_0x49483d(0x99)){const _0x418e8a=_0x49483d;if(_0x3d912d==null||_0x3ddc6f==null){let _0x30a532=Ke(_0x527721);return{'startOffset':_0x30a532,'endOffset':_0x30a532};}let _0x11590e=Math[_0x418e8a(0xef)](_0x3d912d,_0x3ddc6f),_0x40eb22=Math[_0x418e8a(0xda)](_0x3d912d,_0x3ddc6f),_0x42d7ec=Ze(_0x527721,_0x11590e,_0x40eb22);return _0x11590e===_0x40eb22?_0x2e2e3b===_0x418e8a(0xf5)?{'startOffset':_0x11590e,'endOffset':_0x40eb22}:Ge(_0x527721,_0x11590e,_0x42d7ec):Je(_0x527721,_0x11590e,_0x40eb22,_0x42d7ec);}function Ge(_0x372ccf,_0x42cbbc,_0x32c72a){const _0x16b1c7=_0x49483d;let _0x4a3047=Ye(_0x372ccf,_0x42cbbc);if(_0x4a3047){let _0x481536=j(_0x372ccf,_0x4a3047,_0x32c72a);if(_0x481536<_0x4a3047[_0x16b1c7(0xca)])return{'startOffset':_0x481536,'endOffset':_0x32c72a?Math[_0x16b1c7(0xef)](_0x4a3047['startIndex']+0x1,_0x32c72a['endOffset']):_0x4a3047[_0x16b1c7(0xca)]+0x1};}let _0x2aa04f=_0x42cbbc===0x0&&_0x372ccf[_0x16b1c7(0x9d)][0x0]===_0x23e365[_0x16b1c7(0xff)]?0x1:_0x42cbbc;return{'startOffset':_0x2aa04f,'endOffset':_0x2aa04f};}function Ke(_0x315d7c){const _0x2616af=_0x49483d;return _0x315d7c['dataStream'][_0x2616af(0xad)](_0x23e365[_0x2616af(0x80)])?Math[_0x2616af(0xda)](0x0,_0x315d7c[_0x2616af(0x9d)][_0x2616af(0xa3)]-0x1):_0x315d7c[_0x2616af(0x9d)]['length'];}function qe(_0x5aa023,_0x1f7304,_0x498d94){const _0x235637=_0x49483d;var _0x3cc270;let _0x88649a=Math[_0x235637(0xef)](_0x1f7304,_0x498d94),_0x9138e5=Math[_0x235637(0xda)](_0x1f7304,_0x498d94);return!!((_0x3cc270=_0x5aa023[_0x235637(0xe8)])!=null&&_0x3cc270[_0x235637(0xbf)](_0x5d51c6=>_0x88649a>_0x5d51c6['startIndex']&&_0x88649a<_0x5d51c6[_0x235637(0xfb)]||_0x9138e5>_0x5d51c6['startIndex']&&_0x9138e5<_0x5d51c6[_0x235637(0xfb)]||_0x88649a<=_0x5d51c6[_0x235637(0xca)]&&_0x9138e5>=_0x5d51c6['endIndex']));}function Je(_0x3ce0cc,_0x3510e7,_0x94affa,_0x5bc6f9){const _0x118174=_0x49483d;let _0x5334a5=[..._0x3ce0cc[_0x118174(0x8a)]??[]][_0x118174(0x8f)]((_0x3d9f89,_0x233e69)=>_0x3d9f89[_0x118174(0xca)]-_0x233e69['startIndex']),_0x58dfaf=_0x43bde5(_0x3ce0cc),_0x277b49=_0x5334a5[_0x118174(0xd5)](_0x3bfc51=>j(_0x3ce0cc,_0x3bfc51,_0x5bc6f9,_0x58dfaf)<=_0x3510e7&&_0x3510e7<=_0x3bfc51[_0x118174(0xca)]),_0x27158e=_0x5334a5['find'](_0x168630=>_0x168630[_0x118174(0xca)]>=_0x94affa-0x1)??_0x5334a5[_0x5334a5['length']-0x1];return{'startOffset':_0x277b49?j(_0x3ce0cc,_0x277b49,_0x5bc6f9,_0x58dfaf):_0x3510e7,'endOffset':_0x27158e?Xe(_0x27158e,_0x5bc6f9):_0x94affa};}function Ye(_0x1558ed,_0x811343){const _0x53791f=_0x49483d;let _0x19b046=[..._0x1558ed[_0x53791f(0x8a)]??[]]['sort']((_0x56b8c4,_0xcc6c14)=>_0x56b8c4['startIndex']-_0xcc6c14[_0x53791f(0xca)]),_0x1fd7f7=_0x43bde5(_0x1558ed);return _0x19b046[_0x53791f(0xd5)](_0x3085e1=>(_0x1fd7f7[_0x53791f(0xbd)](_0x3085e1[_0x53791f(0xca)])??0x0)<=_0x811343&&_0x811343<=_0x3085e1[_0x53791f(0xca)]);}function j(_0xa29b8a,_0x555624,_0x228966,_0x2021c8){const _0x8e7edf=_0x49483d;let _0x42c9b0=(_0x2021c8==null?void 0x0:_0x2021c8['get'](_0x555624[_0x8e7edf(0xca)]))??_0x53b91f(_0xa29b8a,_0x555624);return _0x228966?Math['max'](_0x42c9b0,_0x228966[_0x8e7edf(0x10e)]):_0x42c9b0;}function Xe(_0x1e78c7,_0x2884b2){const _0x22ada6=_0x49483d;let _0x40fb21=_0x1e78c7[_0x22ada6(0xca)]+0x1;return _0x2884b2?Math[_0x22ada6(0xef)](_0x40fb21,_0x2884b2['endOffset']):_0x40fb21;}function Ze(_0x3fd946,_0x21e92d,_0xba3d8){const _0x2ab049=_0x49483d;let _0x2165e6=Qe(_0x3fd946,_0x21e92d),_0x5f3da5=Qe(_0x3fd946,_0x21e92d===_0xba3d8?_0xba3d8:Math['max'](_0x21e92d,_0xba3d8-0x1));if(_0x2165e6||_0x5f3da5){if(!_0x2165e6||!_0x5f3da5||_0x2165e6[_0x2ab049(0x71)]!==_0x5f3da5['startTokenOffset']||_0x2165e6[_0x2ab049(0xd3)]!==_0x5f3da5['endTokenOffset'])throw new E();return _0x2165e6;}}function Qe(_0x9ed5aa,_0x457200){const _0x245c1f=_0x49483d;let _0x37eb87=_0x9ed5aa['dataStream'],_0x22d64c=-0x1;for(let _0x887331=Math['min'](_0x457200,_0x37eb87[_0x245c1f(0xa3)]-0x1);_0x887331>=0x0;_0x887331--){let _0x752d27=_0x37eb87[_0x887331];if(_0x752d27===_0x23e365['TABLE_CELL_END'])return;if(_0x752d27===_0x23e365[_0x245c1f(0x72)]){_0x22d64c=_0x887331;break;}}if(_0x22d64c<0x0)return;let _0x375215=_0x37eb87[_0x245c1f(0xdd)](_0x23e365[_0x245c1f(0x8c)],_0x22d64c+0x1);if(!(_0x375215<0x0||_0x457200<_0x22d64c+0x1||_0x457200>_0x375215-0x1))return{'startOffset':_0x22d64c+0x1,'endOffset':Math[_0x245c1f(0xda)](_0x22d64c+0x1,_0x375215-0x1),'startTokenOffset':_0x22d64c,'endTokenOffset':_0x375215};}function M(_0x16bd20){const _0x1cffa3=_0x49483d;return _0x5c8dbe(_0x16bd20)[_0x1cffa3(0x105)]-0x1;}function $e(_0x1dd05a,_0x50ea1f,_0x4c76dc,_0x1a7407){const _0xba63fb=_0x49483d;let _0x1d9a80=M(_0x50ea1f),_0x3473f6=(_0x1dd05a[_0xba63fb(0x8a)]??[])[_0xba63fb(0xd5)](_0x534be5=>_0x534be5[_0xba63fb(0xca)]===_0x1d9a80+0x1);if(!_0x3473f6||_0x1a7407!=null&&_0x3473f6[_0xba63fb(0xca)]!==_0x1a7407||_0x4c76dc!=null&&(_0x4c76dc<_0x1d9a80||_0x4c76dc>_0x3473f6[_0xba63fb(0xca)]+0x1)||_0x1dd05a[_0xba63fb(0x9d)][_0x3473f6[_0xba63fb(0xca)]]!==_0x23e365[_0xba63fb(0xff)])return null;let _0x3faa15=_0x53b91f(_0x1dd05a,_0x3473f6),_0x40f6b0=_0x1dd05a[_0xba63fb(0x9d)][_0xba63fb(0x86)](_0x3faa15,_0x3473f6['startIndex']);return Array[_0xba63fb(0xe0)](_0x40f6b0)[_0xba63fb(0xbe)](_0x1c3817=>_0x1c3817===_0x23e365[_0xba63fb(0x94)])?{'paragraph':_0x3473f6,'endTokenOffset':_0x1d9a80}:null;}function N(_0x4aac1c,_0x57183e){const _0x595756=_0x49483d;var _0x28a092;let _0x1a104d=M(_0x57183e),_0x57cb3c=_0x4aac1c[_0x595756(0x9d)][_0x1a104d+0x1];(_0x57cb3c===_0x23e365[_0x595756(0x80)]||_0x57cb3c===void 0x0)&&P(_0x4aac1c,_0x1a104d+0x1,_0x23e365[_0x595756(0xff)],{'paragraphs':[{'startIndex':0x0,'paragraphId':_0x338f66(new Set((_0x28a092=_0x4aac1c[_0x595756(0x8a)])==null?void 0x0:_0x28a092[_0x595756(0x10f)](_0xf7aa0=>_0xf7aa0[_0x595756(0xe3)])))}]});}function P(_0x3c719f,_0x1266f0,_0x15fe14,_0x51a13c={}){const _0x31ff68=_0x49483d;var _0x38a78a,_0x28a5a2;_0x15fe14&&(_0x3c719f[_0x31ff68(0x9d)]=''+_0x3c719f['dataStream']['slice'](0x0,_0x1266f0)+_0x15fe14+_0x3c719f[_0x31ff68(0x9d)]['slice'](_0x1266f0),et(_0x3c719f,_0x1266f0,_0x15fe14[_0x31ff68(0xa3)]),(_0x38a78a=_0x51a13c['paragraphs'])!=null&&_0x38a78a[_0x31ff68(0xa3)]&&(_0x3c719f[_0x31ff68(0x8a)]=[..._0x3c719f['paragraphs']??[],..._0x51a13c[_0x31ff68(0x8a)][_0x31ff68(0x10f)](_0x27a966=>({..._0x27a966,'startIndex':_0x27a966[_0x31ff68(0xca)]+_0x1266f0}))][_0x31ff68(0x8f)]((_0x58d0c1,_0x5efc5c)=>_0x58d0c1[_0x31ff68(0xca)]-_0x5efc5c['startIndex'])),(_0x28a5a2=_0x51a13c['blockRanges'])!=null&&_0x28a5a2[_0x31ff68(0xa3)]&&(_0x3c719f[_0x31ff68(0x79)]=[..._0x3c719f[_0x31ff68(0x79)]??[],..._0x51a13c[_0x31ff68(0x79)]['map'](_0x19ed57=>({..._0x19ed57,'startIndex':_0x19ed57[_0x31ff68(0xca)]+_0x1266f0,'endIndex':_0x19ed57[_0x31ff68(0xfb)]+_0x1266f0}))][_0x31ff68(0x8f)]((_0x2aa1d1,_0x57c34b)=>_0x2aa1d1[_0x31ff68(0xca)]-_0x57c34b['startIndex'])));}function F(_0x48e2a9,_0x4c0fd9,_0x582d97){const _0x177543=_0x49483d;let _0x53e781=_0x582d97-_0x4c0fd9;_0x48e2a9[_0x177543(0x9d)]=''+_0x48e2a9[_0x177543(0x9d)][_0x177543(0x86)](0x0,_0x4c0fd9)+_0x48e2a9[_0x177543(0x9d)][_0x177543(0x86)](_0x582d97),tt(_0x48e2a9,_0x4c0fd9,_0x53e781);}function et(_0x54ca30,_0x2b9eb2,_0x5cf9e1){const _0x5afbfb=_0x49483d;_0x54ca30[_0x5afbfb(0x8a)]=I(_0x54ca30[_0x5afbfb(0x8a)],_0x2b9eb2,_0x5cf9e1),_0x54ca30[_0x5afbfb(0x6d)]=I(_0x54ca30[_0x5afbfb(0x6d)],_0x2b9eb2,_0x5cf9e1),_0x54ca30[_0x5afbfb(0x9b)]=I(_0x54ca30[_0x5afbfb(0x9b)],_0x2b9eb2,_0x5cf9e1),_0x54ca30['textRuns']=nt(_0x54ca30[_0x5afbfb(0x95)],_0x2b9eb2,_0x5cf9e1),_0x54ca30[_0x5afbfb(0xe8)]=rt(_0x54ca30['tables'],_0x2b9eb2,_0x5cf9e1),_0x54ca30[_0x5afbfb(0xc9)]=R(_0x54ca30[_0x5afbfb(0xc9)],_0x2b9eb2,_0x5cf9e1),_0x54ca30[_0x5afbfb(0x90)]=R(_0x54ca30[_0x5afbfb(0x90)],_0x2b9eb2,_0x5cf9e1),_0x54ca30[_0x5afbfb(0xd8)]=R(_0x54ca30[_0x5afbfb(0xd8)],_0x2b9eb2,_0x5cf9e1),_0x54ca30[_0x5afbfb(0x79)]=R(_0x54ca30[_0x5afbfb(0x79)],_0x2b9eb2,_0x5cf9e1);}function tt(_0x4b784f,_0x1811bf,_0x11d3a5){const _0x55f1a0=_0x49483d;var _0x55f068,_0x3fa23d;_0x4b784f['paragraphs']=L(_0x4b784f[_0x55f1a0(0x8a)],_0x1811bf,_0x11d3a5),_0x4b784f[_0x55f1a0(0x6d)]=L(_0x4b784f['sectionBreaks'],_0x1811bf,_0x11d3a5),_0x4b784f[_0x55f1a0(0x9b)]=L(_0x4b784f[_0x55f1a0(0x9b)],_0x1811bf,_0x11d3a5),_0x4b784f[_0x55f1a0(0x95)]=(_0x55f068=it((_0x3fa23d=_0x4b784f[_0x55f1a0(0x95)])==null?void 0x0:_0x3fa23d[_0x55f1a0(0x10f)](_0xa8dc8c=>({..._0xa8dc8c,'startIndex':_0xa8dc8c['st'],'endIndex':_0xa8dc8c['ed']})),_0x1811bf,_0x11d3a5))==null?void 0x0:_0x55f068[_0x55f1a0(0x10f)](_0x44d1b4=>{let {startIndex:_0x3c5a04,endIndex:_0x2ba6af,..._0x1b2e46}=_0x44d1b4;return{..._0x1b2e46,'st':_0x3c5a04,'ed':_0x2ba6af};}),_0x4b784f[_0x55f1a0(0xe8)]=it(_0x4b784f[_0x55f1a0(0xe8)],_0x1811bf,_0x11d3a5),_0x4b784f['columnGroups']=z(_0x4b784f[_0x55f1a0(0xc9)],_0x1811bf,_0x11d3a5),_0x4b784f[_0x55f1a0(0x90)]=z(_0x4b784f[_0x55f1a0(0x90)],_0x1811bf,_0x11d3a5),_0x4b784f[_0x55f1a0(0xd8)]=z(_0x4b784f['customDecorations'],_0x1811bf,_0x11d3a5),_0x4b784f[_0x55f1a0(0x79)]=z(_0x4b784f[_0x55f1a0(0x79)],_0x1811bf,_0x11d3a5);}function I(_0x35a8ac,_0xb5d92,_0x3536ca){const _0x2989c3=_0x49483d;return _0x35a8ac==null?void 0x0:_0x35a8ac[_0x2989c3(0x10f)](_0x49764d=>_0x49764d[_0x2989c3(0xca)]>=_0xb5d92?{..._0x49764d,'startIndex':_0x49764d['startIndex']+_0x3536ca}:_0x49764d);}function L(_0x1d4770,_0x34a2d7,_0x15307b){const _0xacf524=_0x49483d;let _0xc61e6c=_0x34a2d7+_0x15307b;return _0x1d4770==null?void 0x0:_0x1d4770[_0xacf524(0x10f)](_0x49ce98=>_0x49ce98[_0xacf524(0xca)]>=_0x34a2d7&&_0x49ce98['startIndex']<_0xc61e6c?null:_0x49ce98[_0xacf524(0xca)]>=_0xc61e6c?{..._0x49ce98,'startIndex':_0x49ce98['startIndex']-_0x15307b}:_0x49ce98)[_0xacf524(0xf1)](_0x41efe3=>_0x41efe3!=null);}function nt(_0x430eea,_0x12f39b,_0x3714b7){const _0x314ba2=_0x49483d;return _0x430eea==null?void 0x0:_0x430eea[_0x314ba2(0x10f)](_0x173020=>_0x173020['st']>=_0x12f39b?{..._0x173020,'st':_0x173020['st']+_0x3714b7,'ed':_0x173020['ed']+_0x3714b7}:_0x173020['ed']>_0x12f39b?{..._0x173020,'ed':_0x173020['ed']+_0x3714b7}:_0x173020);}function R(_0x2264a,_0x249d9e,_0x791a33){const _0x1728bd=_0x49483d;return _0x2264a==null?void 0x0:_0x2264a[_0x1728bd(0x10f)](_0x48860e=>_0x4cbd10(_0x48860e,_0x249d9e,_0x791a33));}function rt(_0x37cbe8,_0x148210,_0x320124){const _0x48a36e=_0x49483d;return _0x37cbe8==null?void 0x0:_0x37cbe8[_0x48a36e(0x10f)](_0xbe57dc=>_0x3f24e6(_0xbe57dc,_0x148210,_0x320124));}function z(_0x26908f,_0x45c75c,_0x522636){const _0x44a783=_0x49483d;return _0x26908f==null?void 0x0:_0x26908f[_0x44a783(0x10f)](_0x35cd26=>_0x2cee19(_0x35cd26,_0x45c75c,_0x522636))['filter'](_0x58a29c=>_0x58a29c!=null);}function it(_0x43824b,_0x53de3f,_0x15acc3){const _0xab3232=_0x49483d;return _0x43824b==null?void 0x0:_0x43824b['map'](_0x5786c3=>_0xc1b9cd(_0x5786c3,_0x53de3f,_0x15acc3))[_0xab3232(0xf1)](_0x3e1274=>_0x3e1274!=null);}function _0x10b3(_0x139bf2,_0x367a17){_0x139bf2=_0x139bf2-0x65;const _0x1d98ba=_0x1d98();let _0x10b317=_0x1d98ba[_0x139bf2];return _0x10b317;}const at={'id':_0x49483d(0x82),'type':_0x446cfc[_0x49483d(0xba)],'handler':_0x54aef2=>{const _0x45975b=_0x49483d;var _0x2e7799;if(_0x584ad5(G(_0x54aef2)))return!0x1;let _0x29ef0f=_0x34eb39(_0x54aef2);if(_0x29ef0f)return _0x54aef2[_0x45975b(0xbd)](_0x330d40)['syncExecuteCommand'](B['id'],{'startOffset':_0x29ef0f[_0x45975b(0x10e)],'endOffset':_0x29ef0f[_0x45975b(0x105)],'insertionMode':_0x45975b(0xf5),'unitId':_0x29ef0f[_0x45975b(0x10b)]});let _0x1cc77b=ft(_0x54aef2);if(!_0x1cc77b)return!0x1;let _0x4c2b84=(_0x2e7799=_0x54aef2[_0x45975b(0xbd)](_0x1f322c)[_0x45975b(0x91)](_0x2fc27d[_0x45975b(0x100)]))==null?void 0x0:_0x2e7799['getBody'](),_0x4d02b7=_0x4c2b84?_0x15574e(_0x4c2b84,_0x1cc77b):_0x1cc77b[_0x45975b(0xca)]+0x1;return _0x54aef2[_0x45975b(0xbd)](_0x330d40)['syncExecuteCommand'](B['id'],{'startOffset':_0x4d02b7,'endOffset':_0x4d02b7});}},ot={'id':_0x49483d(0xf9),'type':_0x446cfc[_0x49483d(0xba)],'handler':()=>!0x0},B={'id':'docs-code.command.insert','type':_0x446cfc[_0x49483d(0xba)],'handler':(_0x5ced54,_0xfff347)=>{const _0x11f6f6=_0x49483d;let _0x4364cb=W(_0x5ced54,_0xfff347==null?void 0x0:_0xfff347[_0x11f6f6(0x10b)]);if(!_0x4364cb)return!0x1;let _0x2f4f7b=G(_0x5ced54);if(_0x584ad5(_0x2f4f7b))return!0x1;let _0x470f30=_0x4364cb[_0x11f6f6(0xae)][_0x11f6f6(0x7c)](_0x4364cb[_0x11f6f6(0x10b)]),_0x447e02=lt(_0xfff347,_0x2f4f7b),_0x36928e=ut(_0x4364cb[_0x11f6f6(0x106)],_0x447e02);if(_0x36928e){if(_0x36928e[_0x11f6f6(0xc4)]!==_0x2324fb['CODE'])return!0x1;let _0x4f47c4=D({'blockId':_0x36928e['blockId'],'documentData':_0x4364cb[_0x11f6f6(0x106)],'metadata':_0x470f30});if(!_0x4f47c4)return!0x1;let _0xc56bdf=Y(_0x4364cb[_0x11f6f6(0xc7)],_0x4364cb[_0x11f6f6(0xac)],_0x4364cb[_0x11f6f6(0x10b)],_0x4364cb[_0x11f6f6(0x106)],_0x4f47c4[_0x11f6f6(0xce)],B['id'],_0x4f47c4[_0x11f6f6(0xdb)]);return _0xc56bdf&&_0x4f47c4[_0x11f6f6(0x84)]&&_0x4364cb[_0x11f6f6(0xae)]['deserialize'](_0x4364cb[_0x11f6f6(0x10b)],_0x4f47c4['nextMetadata']),_0xc56bdf;}let _0x57aa41=(_0xfff347==null?void 0x0:_0xfff347[_0x11f6f6(0x96)])??_0x5cf7a0(0x6),_0xe03c18;try{_0xe03c18=De({'blockId':_0x57aa41,'config':_0xfff347==null?void 0x0:_0xfff347[_0x11f6f6(0x9c)],'documentData':_0x4364cb[_0x11f6f6(0x106)],'endOffset':_0x447e02==null?void 0x0:_0x447e02[_0x11f6f6(0x105)],'insertionMode':_0xfff347==null?void 0x0:_0xfff347[_0x11f6f6(0xa9)],'metadata':_0x470f30,'startOffset':_0x447e02==null?void 0x0:_0x447e02[_0x11f6f6(0x10e)]});}catch(_0x272d0a){if(_0x272d0a instanceof E)return!0x1;throw _0x272d0a;}let _0x28b016=Y(_0x4364cb[_0x11f6f6(0xc7)],_0x4364cb['selectionManager'],_0x4364cb[_0x11f6f6(0x10b)],_0x4364cb['previousDocumentData'],_0xe03c18[_0x11f6f6(0xce)],B['id'],_0xe03c18[_0x11f6f6(0xdb)]);return _0x28b016&&_0xe03c18[_0x11f6f6(0x84)]&&_0x4364cb[_0x11f6f6(0xae)][_0x11f6f6(0x65)](_0x4364cb[_0x11f6f6(0x10b)],_0xe03c18[_0x11f6f6(0x84)]),_0x28b016;}},st={'id':'docs-code.command.update','type':_0x446cfc['COMMAND'],'handler':(_0x6a12c2,_0x2a753a)=>{const _0x13a052=_0x49483d;if(!_0x2a753a)return!0x1;let _0x92192=W(_0x6a12c2,_0x2a753a[_0x13a052(0x10b)]);if(!_0x92192)return!0x1;let _0x1319af=je({'blockId':_0x2a753a[_0x13a052(0x96)],'config':_0x2a753a[_0x13a052(0x9c)],'documentData':_0x92192[_0x13a052(0x106)],'metadata':_0x92192['model'][_0x13a052(0x7c)](_0x92192[_0x13a052(0x10b)])});return _0x1319af[_0x13a052(0x84)]&&_0x92192[_0x13a052(0xae)]['deserialize'](_0x92192[_0x13a052(0x10b)],_0x1319af[_0x13a052(0x84)]),!0x0;}},ct={'id':'docs-code.command.exit','type':_0x446cfc['COMMAND'],'handler':(_0xa76678,_0x21d0f2)=>V[_0x49483d(0xb0)](_0xa76678,_0x21d0f2)},V={'id':_0x49483d(0xc2),'type':_0x446cfc[_0x49483d(0xba)],'handler':(_0x4317f9,_0x1ac49a)=>{const _0xb165f0=_0x49483d;if(!_0x1ac49a)return!0x1;let _0x128479=W(_0x4317f9,_0x1ac49a==null?void 0x0:_0x1ac49a[_0xb165f0(0x10b)]);if(!_0x128479)return!0x1;let _0x27a2db=D({'blockId':_0x1ac49a[_0xb165f0(0x96)],'documentData':_0x128479['previousDocumentData'],'metadata':_0x128479[_0xb165f0(0xae)][_0xb165f0(0x7c)](_0x128479[_0xb165f0(0x10b)])});if(!_0x27a2db)return!0x1;let _0x5bf9be=Y(_0x128479[_0xb165f0(0xc7)],_0x128479[_0xb165f0(0xac)],_0x128479['unitId'],_0x128479[_0xb165f0(0x106)],_0x27a2db[_0xb165f0(0xce)],V['id'],_0x27a2db['cursorOffset']);return _0x5bf9be&&_0x27a2db[_0xb165f0(0x84)]&&_0x128479['model']['deserialize'](_0x128479[_0xb165f0(0x10b)],_0x27a2db[_0xb165f0(0x84)]),_0x5bf9be;}},H={'id':_0x49483d(0xa0),'type':_0x446cfc[_0x49483d(0xba)],'handler':(_0x32bd2a,_0x71fc0f)=>{const _0xe9b79c=_0x49483d;if(!_0x71fc0f)return!0x1;let _0x8665ad=W(_0x32bd2a,_0x71fc0f==null?void 0x0:_0x71fc0f[_0xe9b79c(0x10b)]);if(!_0x8665ad)return!0x1;let _0xf6f7ec=Me({'blockId':_0x71fc0f[_0xe9b79c(0x96)],'documentData':_0x8665ad[_0xe9b79c(0x106)],'metadata':_0x8665ad[_0xe9b79c(0xae)][_0xe9b79c(0x7c)](_0x8665ad[_0xe9b79c(0x10b)])});if(!_0xf6f7ec)return!0x1;let _0x29a4fb=Y(_0x8665ad['commandService'],_0x8665ad[_0xe9b79c(0xac)],_0x8665ad['unitId'],_0x8665ad[_0xe9b79c(0x106)],_0xf6f7ec[_0xe9b79c(0xce)],H['id'],_0xf6f7ec[_0xe9b79c(0xdb)]);return _0x29a4fb&&_0xf6f7ec[_0xe9b79c(0x84)]&&_0x8665ad[_0xe9b79c(0xae)][_0xe9b79c(0x65)](_0x8665ad[_0xe9b79c(0x10b)],_0xf6f7ec[_0xe9b79c(0x84)]),_0x29a4fb;}},U={'id':_0x49483d(0xdf),'type':_0x446cfc[_0x49483d(0xba)],'handler':(_0x1a7e0e,_0x39ac38)=>{const _0x36bd4e=_0x49483d;var _0x33d82f;let _0x373be3=W(_0x1a7e0e,_0x39ac38==null?void 0x0:_0x39ac38['unitId']);if(!_0x373be3)return!0x1;let _0x3c9908=(_0x39ac38==null?void 0x0:_0x39ac38['cursorOffset'])??((_0x33d82f=G(_0x1a7e0e))==null?void 0x0:_0x33d82f[_0x36bd4e(0x10e)]);if(_0x3c9908==null)return!0x1;let _0x54d46e=Ne({'cursorOffset':_0x3c9908,'documentData':_0x373be3[_0x36bd4e(0x106)],'paragraphStartIndex':_0x39ac38==null?void 0x0:_0x39ac38['paragraphStartIndex']});return _0x54d46e?Y(_0x373be3[_0x36bd4e(0xc7)],_0x373be3['selectionManager'],_0x373be3['unitId'],_0x373be3[_0x36bd4e(0x106)],_0x54d46e[_0x36bd4e(0xce)],U['id'],_0x54d46e[_0x36bd4e(0xdb)]):!0x1;}};function W(_0xd4eb6a,_0x4cb76d){const _0x24888c=_0x49483d;let _0x4ee59d=_0xd4eb6a[_0x24888c(0xbd)](_0x1f322c),_0x3ffd57=_0x4cb76d?_0x4ee59d[_0x24888c(0xaf)](_0x4cb76d,_0x2fc27d[_0x24888c(0x100)]):_0x4ee59d['getCurrentUnitOfType'](_0x2fc27d[_0x24888c(0x100)]);return _0x3ffd57?{'commandService':_0xd4eb6a[_0x24888c(0xbd)](_0x330d40),'model':_0xd4eb6a[_0x24888c(0xbd)](w),'previousDocumentData':_0x3ffd57[_0x24888c(0xb6)](),'selectionManager':_0xd4eb6a['get'](_0x2baf85),'unitId':_0x3ffd57[_0x24888c(0x66)]()}:null;}function G(_0x34f940){const _0x4f44bd=_0x49483d;var _0x5a03b0;return(_0x5a03b0=_0x34f940[_0x4f44bd(0xbd)](_0x2baf85)[_0x4f44bd(0x6f)]())==null?void 0x0:_0x5a03b0[0x0];}function lt(_0x555859,_0x19d3df){const _0x377f13=_0x49483d;let _0x14de05=(_0x555859==null?void 0x0:_0x555859[_0x377f13(0x10e)])??(_0x19d3df==null?void 0x0:_0x19d3df[_0x377f13(0x10e)]),_0x21b04f=(_0x555859==null?void 0x0:_0x555859[_0x377f13(0x105)])??(_0x19d3df==null?void 0x0:_0x19d3df[_0x377f13(0x105)]);if(_0x14de05!=null&&_0x21b04f!=null)return{'endOffset':Math[_0x377f13(0xda)](_0x14de05,_0x21b04f),'startOffset':Math[_0x377f13(0xef)](_0x14de05,_0x21b04f)};}function ut(_0xa33196,_0x56ce2c){const _0x591e07=_0x49483d;var _0xf3b25;if(!_0x56ce2c)return;let _0x520d36=dt(_0x56ce2c);return(_0xf3b25=_0xa33196['body'])==null||(_0xf3b25=_0xf3b25[_0x591e07(0x79)])==null?void 0x0:_0xf3b25[_0x591e07(0xd5)](_0x5e51ee=>{const _0x7cb9f8=_0x591e07;let _0x5dfe9c=_0x5c8dbe(_0x5e51ee);return _0x56ce2c[_0x7cb9f8(0x10e)]===_0x56ce2c['endOffset']?_0x116958(_0x5dfe9c,_0x520d36):_0x2d8224(_0x5dfe9c,_0x520d36);});}function dt(_0x2e8a1f){const _0x35289b=_0x49483d;return _0x2e8a1f[_0x35289b(0x10e)]===_0x2e8a1f[_0x35289b(0x105)]?_0x2e8a1f[_0x35289b(0x10e)]:_0x2e8a1f['startOffset']+0x1;}function ft(_0x427789){const _0x19f654=_0x49483d;let _0x405096=G(_0x427789);if(!_0x405096)return null;let _0x2b49f8=_0x427789[_0x19f654(0xbd)](_0x1f322c)['getCurrentUnitOfType'](_0x2fc27d[_0x19f654(0x100)]),_0x21ddc4=_0x2b49f8==null?void 0x0:_0x2b49f8['getBody']();return _0x21ddc4?_0x18ba16[_0x19f654(0x10d)][_0x19f654(0xd7)](_0x405096,_0x21ddc4['paragraphs']??[],_0x21ddc4['dataStream']??'')[0x0]??null:null;}function pt(_0x222ea4,_0x2c117a){const _0x261dfb=_0x49483d;let _0x2a1c3c=_0x222ea4['body'],_0x79e5c3=_0x2c117a['body'],_0x4de52e=_0x5c68b1(_0x2a1c3c,_0x79e5c3);return[_0x4de52e&&_0x79e5c3?mt(_0x79e5c3,_0x4de52e):null,_0x4de52e?null:ht(_0x2a1c3c,_0x79e5c3)]['filter'](Boolean)[_0x261dfb(0x83)]((_0x570cd9,_0x648e99)=>_0x424cd6[_0x261dfb(0xc5)](_0x570cd9,_0x648e99),null);}function mt(_0x53d23b,_0x4171f5){const _0xb39234=_0x49483d;let _0x434ce8=new _0x227fc3();return _0x434ce8[_0xb39234(0x74)](_0x4171f5[_0xb39234(0x102)]),_0x4171f5['insertLength']>0x0&&_0x434ce8[_0xb39234(0xcb)](_0x4171f5[_0xb39234(0xec)],_0x25d42f(_0x53d23b,_0x4171f5[_0xb39234(0x102)],_0x4171f5['start']+_0x4171f5['insertLength'],!0x1)),_0x4171f5['deleteLength']>0x0&&_0x434ce8[_0xb39234(0xe1)](_0x4171f5['deleteLength']),_0x424cd6[_0xb39234(0xfe)]()[_0xb39234(0x70)](_0x434ce8[_0xb39234(0x7c)](),[_0xb39234(0xc3)]);}function ht(_0x1da439,_0x1ed598){const _0x1d21a5=_0x49483d;let _0x253ce5=[],_0x2b67a7=_0x1da439?_t(_0x1da439):void 0x0,_0x3691f0=_0x1ed598?_t(_0x1ed598):void 0x0;for(let _0x38473a of gt)K(_0x424cd6[_0x1d21a5(0xfe)](),[_0x1d21a5(0xc3),_0x38473a],_0x2b67a7==null?void 0x0:_0x2b67a7[_0x38473a],_0x3691f0==null?void 0x0:_0x3691f0[_0x38473a],_0x253ce5);return _0x253ce5[_0x1d21a5(0x83)]((_0x5dbd29,_0x57f324)=>_0x424cd6[_0x1d21a5(0xc5)](_0x5dbd29,_0x57f324),null);}const gt=[_0x49483d(0x8a),_0x49483d(0x6d),_0x49483d(0xe8),_0x49483d(0xc9),_0x49483d(0x79),_0x49483d(0x9b),'customRanges',_0x49483d(0xd8),_0x49483d(0x95)];function _t(_0x788228){return _0x788228;}function K(_0x24a0fd,_0x36df53,_0x356f6e,_0x16d58f,_0x19a41a){const _0xfba002=_0x49483d;if(!J(_0x356f6e,_0x16d58f)){if(_0x356f6e==null){_0x19a41a[_0xfba002(0xde)](_0x24a0fd[_0xfba002(0x101)](_0x36df53,_0x16d58f));return;}if(_0x16d58f==null){_0x19a41a[_0xfba002(0xde)](_0x24a0fd[_0xfba002(0xf0)](_0x36df53,_0x356f6e));return;}if(Array[_0xfba002(0x67)](_0x356f6e)&&Array[_0xfba002(0x67)](_0x16d58f)){vt(_0x24a0fd,_0x36df53,_0x356f6e,_0x16d58f,_0x19a41a);return;}if(q(_0x356f6e)&&q(_0x16d58f)){new Set([...Object[_0xfba002(0xc1)](_0x356f6e),...Object[_0xfba002(0xc1)](_0x16d58f)])['forEach'](_0x4efe8b=>{K(_0x24a0fd,[..._0x36df53,_0x4efe8b],_0x356f6e[_0x4efe8b],_0x16d58f[_0x4efe8b],_0x19a41a);});return;}_0x19a41a[_0xfba002(0xde)](_0x24a0fd[_0xfba002(0xaa)](_0x36df53,_0x356f6e,_0x16d58f));}}function vt(_0x308964,_0x597f92,_0x1a7922,_0x3ef404,_0x1663fc){const _0x22e6c0=_0x49483d;if(_0x1a7922[_0x22e6c0(0xa3)]===_0x3ef404[_0x22e6c0(0xa3)]){_0x1a7922[_0x22e6c0(0xe5)]((_0x211b4e,_0x1d73d1)=>K(_0x308964,[..._0x597f92,_0x1d73d1],_0x211b4e,_0x3ef404[_0x1d73d1],_0x1663fc));return;}let _0x117c98=0x0;for(;_0x117c98<_0x1a7922[_0x22e6c0(0xa3)]&&_0x117c98<_0x3ef404['length']&&J(_0x1a7922[_0x117c98],_0x3ef404[_0x117c98]);)_0x117c98++;let _0x15a85a=_0x1a7922['length']-0x1,_0x278a39=_0x3ef404[_0x22e6c0(0xa3)]-0x1;for(;_0x15a85a>=_0x117c98&&_0x278a39>=_0x117c98&&J(_0x1a7922[_0x15a85a],_0x3ef404[_0x278a39]);)_0x15a85a--,_0x278a39--;for(let _0x43fb6a=_0x15a85a;_0x43fb6a>=_0x117c98;_0x43fb6a--)_0x1663fc[_0x22e6c0(0xde)](_0x308964[_0x22e6c0(0xf0)]([..._0x597f92,_0x43fb6a],_0x1a7922[_0x43fb6a]));for(let _0x3c12d1=_0x117c98;_0x3c12d1<=_0x278a39;_0x3c12d1++)_0x1663fc[_0x22e6c0(0xde)](_0x308964[_0x22e6c0(0x101)]([..._0x597f92,_0x3c12d1],_0x3ef404[_0x3c12d1]));}function q(_0x4797f5){const _0x5d12d5=_0x49483d;return typeof _0x4797f5=='object'&&!!_0x4797f5&&!Array[_0x5d12d5(0x67)](_0x4797f5);}function J(_0x5a92d8,_0x3219c0){const _0x534fbb=_0x49483d;return JSON[_0x534fbb(0x9f)](_0x5a92d8)===JSON[_0x534fbb(0x9f)](_0x3219c0);}function Y(_0x2b8fb0,_0x5ae991,_0x13d374,_0x2c033f,_0x31579f,_0x308447,_0x3db8be){const _0x2c80f3=_0x49483d;let _0x528c68=pt(_0x2c033f,_0x31579f);return _0x528c68?!!_0x2b8fb0[_0x2c80f3(0xe6)](_0x274029['id'],{'unitId':_0x13d374,'actions':_0x528c68,'textRanges':[{'startOffset':_0x3db8be,'endOffset':_0x3db8be,'collapsed':!0x0}],'isEditing':!0x1,'trigger':_0x308447}):(_0x5ae991[_0x2c80f3(0xa4)]([{'startOffset':_0x3db8be,'endOffset':_0x3db8be}],{'unitId':_0x13d374,'subUnitId':_0x13d374},!0x1),!0x0);}const X=_0x49483d(0x76);var yt=_0x49483d(0x88),bt=_0x49483d(0x7d);const xt={};function Z(_0x42699c,_0x3da817){return function(_0x78651b,_0x411faa){_0x3da817(_0x78651b,_0x411faa,_0x42699c);};}function St(_0x1fb6a7,_0x440249,_0x3b8ed4,_0x561e80){const _0x1f96ee=_0x49483d;var _0x1b43ba=arguments[_0x1f96ee(0xa3)],_0x423ae9=_0x1b43ba<0x3?_0x440249:_0x561e80===null?_0x561e80=Object['getOwnPropertyDescriptor'](_0x440249,_0x3b8ed4):_0x561e80,_0x2ba52f;if(typeof Reflect=='object'&&typeof Reflect['decorate']==_0x1f96ee(0x104))_0x423ae9=Reflect[_0x1f96ee(0xcd)](_0x1fb6a7,_0x440249,_0x3b8ed4,_0x561e80);else{for(var _0x12c472=_0x1fb6a7[_0x1f96ee(0xa3)]-0x1;_0x12c472>=0x0;_0x12c472--)(_0x2ba52f=_0x1fb6a7[_0x12c472])&&(_0x423ae9=(_0x1b43ba<0x3?_0x2ba52f(_0x423ae9):_0x1b43ba>0x3?_0x2ba52f(_0x440249,_0x3b8ed4,_0x423ae9):_0x2ba52f(_0x440249,_0x3b8ed4))||_0x423ae9);}return _0x1b43ba>0x3&&_0x423ae9&&Object['defineProperty'](_0x440249,_0x3b8ed4,_0x423ae9),_0x423ae9;}let Q=class extends _0x24e448{constructor(_0x1ee959,_0xb4519d){const _0x58c2d7=_0x49483d;super(),this[_0x58c2d7(0xbb)]=_0x1ee959,this[_0x58c2d7(0xab)]=_0xb4519d,this[_0x58c2d7(0xa5)]();}['_initResource'](){const _0x296147=_0x49483d;this[_0x296147(0xe2)](this[_0x296147(0xbb)][_0x296147(0xcc)]({'pluginName':X,'businesses':[_0x2fc27d[_0x296147(0x100)]],'toJson':_0x300f4=>JSON['stringify'](this[_0x296147(0xab)][_0x296147(0x7c)](_0x300f4)),'parseJson':_0x3cfe2e=>y(JSON[_0x296147(0xd2)](_0x3cfe2e)),'onLoad':(_0x2b4d4d,_0x20dbc8)=>this[_0x296147(0xab)][_0x296147(0x65)](_0x2b4d4d,_0x20dbc8),'onUnLoad':_0x16b5c9=>this[_0x296147(0xab)]['removeUnit'](_0x16b5c9)}));}};Q=St([Z(0x0,_0x4ec5e9),Z(0x1,_0x34c829(w))],Q);let $=class extends _0x5a8ee0{constructor(_0x222113=xt,_0x18758b,_0x590d25,_0x26903b){const _0x146d8d=_0x49483d;super(),this[_0x146d8d(0xb5)]=_0x222113,this[_0x146d8d(0x6a)]=_0x18758b,this[_0x146d8d(0xd6)]=_0x590d25,this[_0x146d8d(0xfc)]=_0x26903b;let {..._0x172860}=_0x1470e9({},xt,this[_0x146d8d(0xb5)]);this[_0x146d8d(0xfc)]['setConfig'](_0x146d8d(0x6e),_0x172860);}[_0x49483d(0x107)](){const _0x5207d1=_0x49483d;this['_injector'][_0x5207d1(0x7e)]([w]),this[_0x5207d1(0x6a)]['add']([Q]),this['_injector'][_0x5207d1(0xbd)](w),this[_0x5207d1(0x6a)][_0x5207d1(0xbd)](Q),[B,at,st,V,H,ct,U,ot,Te,T][_0x5207d1(0xe5)](_0x5dc876=>this['disposeWithMe'](this['_commandService'][_0x5207d1(0x8b)](_0x5dc876)));}};C($,_0x49483d(0xf8),X),C($,_0x49483d(0xa1),yt),C($,_0x49483d(0x109),bt),C($,_0x49483d(0x108),_0x2fc27d[_0x49483d(0x100)]),$=St([_0x5aaaeb(_0xecd332,_0x565d36),Z(0x1,_0x34c829(_0x38f326)),Z(0x2,_0x330d40),Z(0x3,_0x5ce515)],$);export{X as DOCS_CODE_PLUGIN,U as DocsCodeCancelEmptyParagraphCommand,ot as DocsCodeConsumeBoundaryDeleteCommand,at as DocsCodeInsertBelowCommand,B as DocsCodeInsertCommand,w as DocsCodeModel,H as DocsCodeRemoveCommand,V as DocsCodeUnwrapCommand,st as DocsCodeUpdateCommand,T as RemoveDocsCodeConfigMutation,Te as SetDocsCodeConfigMutation,$ as UniverDocsCodePlugin,Ne as buildCancelEmptyCodeParagraphActions,Ie as isCodeBoundaryDelete,v as normalizeDocsCodeConfig,y as normalizeDocsCodeMetadataResource};
|