@univerjs-pro/docs-code 0.25.0-insiders.20260608-e4336f7 → 0.25.0-insiders.20260613-a210f12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/cjs/facade.js CHANGED
@@ -1 +1 @@
1
- var _0x12d875=_0x5aed;(function(_0x31e971,_0x1ab577){var _0x310de9=_0x5aed,_0x43d5af=_0x31e971();while(!![]){try{var _0x593b90=parseInt(_0x310de9(0x14a))/0x1*(parseInt(_0x310de9(0x15a))/0x2)+parseInt(_0x310de9(0x148))/0x3*(-parseInt(_0x310de9(0x136))/0x4)+-parseInt(_0x310de9(0x13d))/0x5+parseInt(_0x310de9(0x146))/0x6*(-parseInt(_0x310de9(0x145))/0x7)+-parseInt(_0x310de9(0x160))/0x8*(parseInt(_0x310de9(0x131))/0x9)+-parseInt(_0x310de9(0x182))/0xa*(-parseInt(_0x310de9(0x16c))/0xb)+parseInt(_0x310de9(0x150))/0xc;if(_0x593b90===_0x1ab577)break;else _0x43d5af['push'](_0x43d5af['shift']());}catch(_0xb63366){_0x43d5af['push'](_0x43d5af['shift']());}}}(_0x916a,0x3c76c),Object[_0x12d875(0x177)](exports,Symbol[_0x12d875(0x147)],{'value':_0x12d875(0x15b)}));let e=require('@univerjs-pro/docs-code'),t=require('@univerjs/core'),n=require('@univerjs/docs/facade');function r(_0x1d34ee){'@babel/helpers - typeof';var _0x20bd74=_0x12d875;return r=typeof Symbol=='function'&&typeof Symbol[_0x20bd74(0x17c)]==_0x20bd74(0x140)?function(_0x3f7b3e){return typeof _0x3f7b3e;}:function(_0x43b239){var _0x36e1ad=_0x20bd74;return _0x43b239&&typeof Symbol==_0x36e1ad(0x173)&&_0x43b239['constructor']===Symbol&&_0x43b239!==Symbol[_0x36e1ad(0x14b)]?_0x36e1ad(0x140):typeof _0x43b239;},r(_0x1d34ee);}function i(_0x4ccf8a,_0x504eaf){var _0x25dd4f=_0x12d875;if(r(_0x4ccf8a)!=_0x25dd4f(0x16f)||!_0x4ccf8a)return _0x4ccf8a;var _0x23ee9b=_0x4ccf8a[Symbol[_0x25dd4f(0x13a)]];if(_0x23ee9b!==void 0x0){var _0xb719f=_0x23ee9b[_0x25dd4f(0x158)](_0x4ccf8a,_0x504eaf||_0x25dd4f(0x181));if(r(_0xb719f)!=_0x25dd4f(0x16f))return _0xb719f;throw TypeError(_0x25dd4f(0x16a));}return(_0x504eaf===_0x25dd4f(0x16d)?String:Number)(_0x4ccf8a);}function _0x916a(){var _0x417a4a=['toPrimitive','some','blockType','1528650PsGQgu','getOwnPropertyDescriptor','DocumentBlockRangeType','symbol','cancelEmptyParagraph','CODE','DocsCodeExitCommand','DocsCodeCancelEmptyParagraphCommand','14zBRvbg','180396vVPVGU','toStringTag','3rmHsJs','getId','268049UYLysm','prototype','_unitId','ICommandService','_document','DocsCodeModel','4889904sGbMrF','_getDocumentData','startIndex','_blockId','from','replace','getCode','map','call','_injector','2JPigcL','Module','config','exitCode','describe','findCodes','33976PmYYMf','getRange','DataStreamTreeTokenType','text','includes','blockRanges','body','getCodeConfig','getConfig','FDocument','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','endIndex','33FAPnUq','string','extend','object','length','_getBlockRange','BLOCK_START','function','_getBlockRanges','decorate','slice','defineProperty','blockId','createInstance','Inject','FDocumentCode','iterator','DocsCodeUpdateCommand','SECTION_BREAK','filter','getCodeAt','default','1636270KvZhKY','join','getText','720ULUobo','getCodes','find','findCodeByText','get','852560GErGQM','_createFDocumentCode','save','syncExecuteCommand'];_0x916a=function(){return _0x417a4a;};return _0x916a();}function a(_0x18f3c7){var _0x140be2=i(_0x18f3c7,'string');return r(_0x140be2)=='symbol'?_0x140be2:_0x140be2+'';}function o(_0x1457e1,_0x314336,_0x1e2e10){var _0x12c790=_0x12d875;return(_0x314336=a(_0x314336))in _0x1457e1?Object[_0x12c790(0x177)](_0x1457e1,_0x314336,{'value':_0x1e2e10,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x1457e1[_0x314336]=_0x1e2e10,_0x1457e1;}function s(_0x4fdfa7,_0x1bde2d){return function(_0x40e4fe,_0x295edf){_0x1bde2d(_0x40e4fe,_0x295edf,_0x4fdfa7);};}function c(_0x203028,_0x535bb6,_0x4776be,_0x5a26bc){var _0x3a377f=_0x12d875,_0x1582b9=arguments[_0x3a377f(0x170)],_0xaf68c4=_0x1582b9<0x3?_0x535bb6:_0x5a26bc===null?_0x5a26bc=Object[_0x3a377f(0x13e)](_0x535bb6,_0x4776be):_0x5a26bc,_0x228c23;if(typeof Reflect==_0x3a377f(0x16f)&&typeof Reflect[_0x3a377f(0x175)]==_0x3a377f(0x173))_0xaf68c4=Reflect['decorate'](_0x203028,_0x535bb6,_0x4776be,_0x5a26bc);else{for(var _0x5e0d50=_0x203028['length']-0x1;_0x5e0d50>=0x0;_0x5e0d50--)(_0x228c23=_0x203028[_0x5e0d50])&&(_0xaf68c4=(_0x1582b9<0x3?_0x228c23(_0xaf68c4):_0x1582b9>0x3?_0x228c23(_0x535bb6,_0x4776be,_0xaf68c4):_0x228c23(_0x535bb6,_0x4776be))||_0xaf68c4);}return _0x1582b9>0x3&&_0xaf68c4&&Object[_0x3a377f(0x177)](_0x535bb6,_0x4776be,_0xaf68c4),_0xaf68c4;}function _0x5aed(_0x3c2a4e,_0x692dad){_0x3c2a4e=_0x3c2a4e-0x12f;var _0x916afd=_0x916a();var _0x5aed97=_0x916afd[_0x3c2a4e];return _0x5aed97;}let l=class{constructor(_0x556bd1,_0x5df084,_0x34a782){var _0x4d5b06=_0x12d875;this[_0x4d5b06(0x14e)]=_0x556bd1,this['_blockId']=_0x5df084,this[_0x4d5b06(0x159)]=_0x34a782,o(this,_0x4d5b06(0x14c),void 0x0),this[_0x4d5b06(0x14c)]=this[_0x4d5b06(0x14e)]['getId']();}[_0x12d875(0x149)](){var _0x3ec93b=_0x12d875;return this[_0x3ec93b(0x153)];}['getRange'](){var _0x10904f=_0x12d875;let _0x36f61b=this[_0x10904f(0x171)]();return _0x36f61b?{'blockId':_0x36f61b['blockId'],'endIndex':_0x36f61b[_0x10904f(0x16b)],'startIndex':_0x36f61b['startIndex']}:null;}['getText'](){var _0x3aecd3=_0x12d875,_0x3c0a67;let _0x49f1cb=this[_0x3aecd3(0x171)](),_0x545827=(_0x3c0a67=this['_getDocumentData']()[_0x3aecd3(0x166)])==null?void 0x0:_0x3c0a67['dataStream'];return!_0x49f1cb||!_0x545827?'':u(_0x545827[_0x3aecd3(0x176)](_0x49f1cb[_0x3aecd3(0x152)]+0x1,_0x49f1cb[_0x3aecd3(0x16b)]));}[_0x12d875(0x15e)](){var _0x5d7d93=_0x12d875;let _0x320d00=this[_0x5d7d93(0x161)]();return _0x320d00?{..._0x320d00,'config':this[_0x5d7d93(0x168)](),'text':this[_0x5d7d93(0x130)](),'type':t[_0x5d7d93(0x13f)][_0x5d7d93(0x142)]}:null;}[_0x12d875(0x168)](){var _0x13a032=_0x12d875;return(0x0,e['normalizeDocsCodeConfig'])(this[_0x13a032(0x159)][_0x13a032(0x135)](e[_0x13a032(0x14f)])[_0x13a032(0x167)](this[_0x13a032(0x14c)],this[_0x13a032(0x153)]));}['updateConfig'](_0x2b8032){var _0x21bb89=_0x12d875;return this[_0x21bb89(0x159)]['get'](t[_0x21bb89(0x14d)])[_0x21bb89(0x139)](e[_0x21bb89(0x17d)]['id'],{'blockId':this[_0x21bb89(0x153)],'config':_0x2b8032[_0x21bb89(0x15c)],'unitId':this['_unitId']});}['exit'](_0x51c39c){var _0x545a2c=_0x12d875;return this[_0x545a2c(0x159)][_0x545a2c(0x135)](t['ICommandService'])[_0x545a2c(0x139)](e[_0x545a2c(0x143)]['id'],{'cursorOffset':_0x51c39c,'unitId':this[_0x545a2c(0x14c)]});}[_0x12d875(0x141)](_0x1125a1={}){var _0x981a37=_0x12d875;return this[_0x981a37(0x159)]['get'](t[_0x981a37(0x14d)])[_0x981a37(0x139)](e['DocsCodeCancelEmptyParagraphCommand']['id'],{..._0x1125a1,'unitId':this['_unitId']});}[_0x12d875(0x151)](){var _0x54f9e9=_0x12d875;return this[_0x54f9e9(0x14e)][_0x54f9e9(0x138)]();}[_0x12d875(0x171)](){var _0x4454cd=_0x12d875,_0x560c5a;let _0xc1f355=(_0x560c5a=this[_0x4454cd(0x151)]()['body'])==null||(_0x560c5a=_0x560c5a[_0x4454cd(0x165)])==null?void 0x0:_0x560c5a[_0x4454cd(0x133)](_0x5291df=>_0x5291df[_0x4454cd(0x178)]===this[_0x4454cd(0x153)]&&_0x5291df[_0x4454cd(0x13c)]===t[_0x4454cd(0x13f)][_0x4454cd(0x142)]);return _0xc1f355==null?null:_0xc1f355;}};l=c([s(0x2,(0x0,t[_0x12d875(0x17a)])(t['Injector']))],l);function u(_0x2bc030){var _0x5cf952=_0x12d875;return Array[_0x5cf952(0x154)](_0x2bc030)[_0x5cf952(0x157)](_0x41cae8=>_0x41cae8===t[_0x5cf952(0x162)]['PARAGRAPH']?'\x0a':_0x41cae8)['filter'](_0x2049d2=>_0x2049d2!==t['DataStreamTreeTokenType'][_0x5cf952(0x172)]&&_0x2049d2!==t[_0x5cf952(0x162)]['BLOCK_END']&&_0x2049d2!==t[_0x5cf952(0x162)][_0x5cf952(0x17e)])[_0x5cf952(0x12f)]('')[_0x5cf952(0x155)](/\n$/,'');}var d=class extends n[_0x12d875(0x169)]{[_0x12d875(0x132)](){var _0x8309fe=_0x12d875;return this['_getBlockRanges']()[_0x8309fe(0x17f)](_0x564045=>_0x564045[_0x8309fe(0x13c)]===t[_0x8309fe(0x13f)][_0x8309fe(0x142)])['map'](_0x18472d=>this[_0x8309fe(0x137)](_0x18472d[_0x8309fe(0x178)]));}[_0x12d875(0x156)](_0x11ba1b){var _0x1acebe=_0x12d875;return this[_0x1acebe(0x174)]()[_0x1acebe(0x13b)](_0x9fab48=>_0x9fab48[_0x1acebe(0x178)]===_0x11ba1b&&_0x9fab48[_0x1acebe(0x13c)]===t['DocumentBlockRangeType'][_0x1acebe(0x142)])?this[_0x1acebe(0x137)](_0x11ba1b):null;}[_0x12d875(0x180)](_0x4a0e01){var _0x1b03d3=_0x12d875;let _0x5e84fb=this[_0x1b03d3(0x174)]()[_0x1b03d3(0x133)](_0x4d64ab=>_0x4d64ab['blockType']===t[_0x1b03d3(0x13f)]['CODE']&&_0x4d64ab[_0x1b03d3(0x152)]<=_0x4a0e01&&_0x4a0e01<=_0x4d64ab[_0x1b03d3(0x16b)]);return _0x5e84fb?this['_createFDocumentCode'](_0x5e84fb[_0x1b03d3(0x178)]):null;}[_0x12d875(0x134)](_0x42ab9d){var _0x489ac7=_0x12d875,_0xac7a6c;return(_0xac7a6c=this[_0x489ac7(0x15f)](_0x42ab9d)[0x0])==null?null:_0xac7a6c;}[_0x12d875(0x15f)](_0x4c1e45){var _0x286819=_0x12d875;let _0x5cc85c=typeof _0x4c1e45==_0x286819(0x16d)?{'text':_0x4c1e45}:_0x4c1e45;return this[_0x286819(0x132)]()[_0x286819(0x17f)](_0x5ba84f=>!(_0x5cc85c[_0x286819(0x178)]&&_0x5ba84f[_0x286819(0x149)]()!==_0x5cc85c[_0x286819(0x178)]||_0x5cc85c[_0x286819(0x163)]&&!_0x5ba84f['getText']()[_0x286819(0x164)](_0x5cc85c['text'])));}['insertCode'](_0x3343c5={}){var _0x576123=_0x12d875,_0x178144;let _0x3ee6cb=this[_0x576123(0x159)][_0x576123(0x135)](t[_0x576123(0x14d)]),_0x15dfbe=(_0x178144=_0x3343c5[_0x576123(0x178)])==null?(0x0,t['generateRandomId'])(0x6):_0x178144;return _0x3ee6cb[_0x576123(0x139)](e['DocsCodeInsertCommand']['id'],{..._0x3343c5,'blockId':_0x15dfbe,'unitId':this[_0x576123(0x149)]()})?this[_0x576123(0x137)](_0x15dfbe):null;}[_0x12d875(0x15d)](_0x207f69){var _0x1daae9=_0x12d875;return this[_0x1daae9(0x159)][_0x1daae9(0x135)](t[_0x1daae9(0x14d)])[_0x1daae9(0x139)](e['DocsCodeExitCommand']['id'],{'cursorOffset':_0x207f69,'unitId':this[_0x1daae9(0x149)]()});}['cancelEmptyCodeParagraph'](_0x32b702={}){var _0x57fecf=_0x12d875;return this[_0x57fecf(0x159)][_0x57fecf(0x135)](t['ICommandService'])[_0x57fecf(0x139)](e[_0x57fecf(0x144)]['id'],{..._0x32b702,'unitId':this[_0x57fecf(0x149)]()});}['_getBlockRanges'](){var _0xe43435=_0x12d875,_0x58f8fc,_0x1e93d0;return(_0x58f8fc=(_0x1e93d0=this[_0xe43435(0x138)]()[_0xe43435(0x166)])==null?void 0x0:_0x1e93d0[_0xe43435(0x165)])==null?[]:_0x58f8fc;}[_0x12d875(0x137)](_0x47656e){var _0x481a81=_0x12d875;return this['_injector'][_0x481a81(0x179)](l,this,_0x47656e);}};n['FDocument'][_0x12d875(0x16e)](d),Object[_0x12d875(0x177)](exports,_0x12d875(0x17b),{'enumerable':!0x0,'get':function(){return l;}});
1
+ var _0x17db53=_0x39a9;(function(_0x3df481,_0x3c4726){var _0x2ba561=_0x39a9,_0x1b412e=_0x3df481();while(!![]){try{var _0xc69474=-parseInt(_0x2ba561(0x94))/0x1+parseInt(_0x2ba561(0x90))/0x2+parseInt(_0x2ba561(0x9c))/0x3*(parseInt(_0x2ba561(0x88))/0x4)+parseInt(_0x2ba561(0xb9))/0x5+parseInt(_0x2ba561(0xa5))/0x6+-parseInt(_0x2ba561(0xce))/0x7*(parseInt(_0x2ba561(0xc6))/0x8)+-parseInt(_0x2ba561(0xa0))/0x9*(parseInt(_0x2ba561(0x98))/0xa);if(_0xc69474===_0x3c4726)break;else _0x1b412e['push'](_0x1b412e['shift']());}catch(_0x14eeba){_0x1b412e['push'](_0x1b412e['shift']());}}}(_0x3067,0xcb0ae),Object[_0x17db53(0x85)](exports,Symbol[_0x17db53(0xa4)],{'value':_0x17db53(0x91)}));let e=require('@univerjs-pro/docs-code'),t=require('@univerjs/core'),n=require('@univerjs/docs/facade');function r(_0x2e7c95){'@babel/helpers - typeof';var _0x31b6c2=_0x17db53;return r=typeof Symbol==_0x31b6c2(0x84)&&typeof Symbol[_0x31b6c2(0x86)]==_0x31b6c2(0x8c)?function(_0x2096bf){return typeof _0x2096bf;}:function(_0x1fa98d){var _0x5e8214=_0x31b6c2;return _0x1fa98d&&typeof Symbol==_0x5e8214(0x84)&&_0x1fa98d[_0x5e8214(0xaa)]===Symbol&&_0x1fa98d!==Symbol[_0x5e8214(0xc2)]?_0x5e8214(0x8c):typeof _0x1fa98d;},r(_0x2e7c95);}function i(_0x3d42d0,_0x372184){var _0x4f28d2=_0x17db53;if(r(_0x3d42d0)!=_0x4f28d2(0xba)||!_0x3d42d0)return _0x3d42d0;var _0x511c67=_0x3d42d0[Symbol['toPrimitive']];if(_0x511c67!==void 0x0){var _0x1444c4=_0x511c67[_0x4f28d2(0xb1)](_0x3d42d0,_0x372184||_0x4f28d2(0x9a));if(r(_0x1444c4)!=_0x4f28d2(0xba))return _0x1444c4;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x372184==='string'?String:Number)(_0x3d42d0);}function a(_0x233f41){var _0x154e30=_0x17db53,_0x3f4426=i(_0x233f41,_0x154e30(0xcc));return r(_0x3f4426)=='symbol'?_0x3f4426:_0x3f4426+'';}function o(_0x3b61a8,_0x569e7a,_0xd18863){var _0x3413a9=_0x17db53;return(_0x569e7a=a(_0x569e7a))in _0x3b61a8?Object[_0x3413a9(0x85)](_0x3b61a8,_0x569e7a,{'value':_0xd18863,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x3b61a8[_0x569e7a]=_0xd18863,_0x3b61a8;}function s(_0x383b70,_0x2cf93f){return function(_0x2973c4,_0x11210d){_0x2cf93f(_0x2973c4,_0x11210d,_0x383b70);};}function c(_0x243ab1,_0x1592ae,_0x37905f,_0x4f2ea5){var _0x24de30=_0x17db53,_0x1d21a3=arguments['length'],_0x314210=_0x1d21a3<0x3?_0x1592ae:_0x4f2ea5===null?_0x4f2ea5=Object[_0x24de30(0x97)](_0x1592ae,_0x37905f):_0x4f2ea5,_0x14a4ec;if(typeof Reflect==_0x24de30(0xba)&&typeof Reflect[_0x24de30(0xb2)]==_0x24de30(0x84))_0x314210=Reflect[_0x24de30(0xb2)](_0x243ab1,_0x1592ae,_0x37905f,_0x4f2ea5);else{for(var _0x605c0c=_0x243ab1['length']-0x1;_0x605c0c>=0x0;_0x605c0c--)(_0x14a4ec=_0x243ab1[_0x605c0c])&&(_0x314210=(_0x1d21a3<0x3?_0x14a4ec(_0x314210):_0x1d21a3>0x3?_0x14a4ec(_0x1592ae,_0x37905f,_0x314210):_0x14a4ec(_0x1592ae,_0x37905f))||_0x314210);}return _0x1d21a3>0x3&&_0x314210&&Object[_0x24de30(0x85)](_0x1592ae,_0x37905f,_0x314210),_0x314210;}function _0x3067(){var _0x2b298e=['get','body','ICommandService','text','prototype','getId','includes','some','946104NWZiqh','exit','_getBlockRanges','DocsCodeCancelEmptyParagraphCommand','generateRandomId','getConfig','string','FDocument','35SzojkT','getRange','findCodes','save','cancelEmptyCodeParagraph','FDocumentCode','updateConfig','find','DocsCodeInsertCommand','function','defineProperty','iterator','getCodeConfig','2457740giSrTj','dataStream','getKey','_injector','symbol','DataStreamTreeTokenType','blockId','filter','47466iuKtxi','Module','BLOCK_END','join','548800XvWtjo','getCodeAt','_blockId','getOwnPropertyDescriptor','30JMNOAx','_createFDocumentCode','default','config','6kuOUOB','insertCode','_document','syncExecuteCommand','2601495QOEjPk','exitCode','endIndex','normalizeDocsCodeConfig','toStringTag','6087582KwiIac','describe','getCodes','getType','createInstance','constructor','blockRanges','_unitId','SECTION_BREAK','CODE','map','_getBlockRange','call','decorate','DocsCodeModel','DocsCodeExitCommand','Injector','blockType','getText','DocumentBlockRangeType','2858710LepXDo','object','PARAGRAPH','startIndex','getCode'];_0x3067=function(){return _0x2b298e;};return _0x3067();}let l=class{constructor(_0x4d7786,_0x3c3aff,_0x487856){var _0x4cfcd0=_0x17db53;this[_0x4cfcd0(0x9e)]=_0x4d7786,this['_blockId']=_0x3c3aff,this[_0x4cfcd0(0x8b)]=_0x487856,o(this,_0x4cfcd0(0xac),void 0x0),this['_unitId']=this[_0x4cfcd0(0x9e)][_0x4cfcd0(0xc3)]();}[_0x17db53(0xc3)](){var _0x396a04=_0x17db53;return this[_0x396a04(0x96)];}[_0x17db53(0xcf)](){var _0x364633=_0x17db53;let _0x5f246f=this['_getBlockRange']();return _0x5f246f?{'blockId':_0x5f246f[_0x364633(0x8e)],'endIndex':_0x5f246f[_0x364633(0xa2)],'startIndex':_0x5f246f['startIndex']}:null;}[_0x17db53(0xb7)](){var _0x5cdca4=_0x17db53,_0x1d5289;let _0x47bd8d=this[_0x5cdca4(0xb0)](),_0x4aea5e=(_0x1d5289=this['_getDocumentData']()[_0x5cdca4(0xbf)])==null?void 0x0:_0x1d5289[_0x5cdca4(0x89)];return!_0x47bd8d||!_0x4aea5e?'':u(_0x4aea5e['slice'](_0x47bd8d[_0x5cdca4(0xbc)]+0x1,_0x47bd8d[_0x5cdca4(0xa2)]));}[_0x17db53(0xa6)](){var _0x1c34e4=_0x17db53;let _0x9c45bc=this['getRange']();return _0x9c45bc?{..._0x9c45bc,'config':this[_0x1c34e4(0xcb)](),'text':this[_0x1c34e4(0xb7)](),'type':t[_0x1c34e4(0xb8)][_0x1c34e4(0xae)]}:null;}[_0x17db53(0xcb)](){var _0x1cf695=_0x17db53;return(0x0,e[_0x1cf695(0xa3)])(this[_0x1cf695(0x8b)]['get'](e[_0x1cf695(0xb3)])[_0x1cf695(0x87)](this[_0x1cf695(0xac)],this['_blockId']));}[_0x17db53(0x81)](_0x59045b){var _0x5e03fb=_0x17db53;return this[_0x5e03fb(0x8b)][_0x5e03fb(0xbe)](t['ICommandService'])[_0x5e03fb(0x9f)](e['DocsCodeUpdateCommand']['id'],{'blockId':this[_0x5e03fb(0x96)],'config':_0x59045b[_0x5e03fb(0x9b)],'unitId':this['_unitId']});}[_0x17db53(0xc7)](_0x1d33c9){var _0x38bd98=_0x17db53;return this[_0x38bd98(0x8b)][_0x38bd98(0xbe)](t[_0x38bd98(0xc0)])[_0x38bd98(0x9f)](e[_0x38bd98(0xb4)]['id'],{'cursorOffset':_0x1d33c9,'unitId':this['_unitId']});}['cancelEmptyParagraph'](_0x4ec648={}){var _0x36d724=_0x17db53;return this['_injector'][_0x36d724(0xbe)](t[_0x36d724(0xc0)])[_0x36d724(0x9f)](e[_0x36d724(0xc9)]['id'],{..._0x4ec648,'unitId':this['_unitId']});}['_getDocumentData'](){var _0x4e6639=_0x17db53;return this[_0x4e6639(0x9e)][_0x4e6639(0xd1)]();}[_0x17db53(0xb0)](){var _0x227211=_0x17db53,_0x1cf598;let _0x53d057=(_0x1cf598=this['_getDocumentData']()['body'])==null||(_0x1cf598=_0x1cf598[_0x227211(0xab)])==null?void 0x0:_0x1cf598['find'](_0x2e7b5b=>_0x2e7b5b['blockId']===this[_0x227211(0x96)]&&_0x2e7b5b[_0x227211(0xb6)]===t[_0x227211(0xb8)][_0x227211(0xae)]);return _0x53d057==null?null:_0x53d057;}};l=c([s(0x2,(0x0,t['Inject'])(t[_0x17db53(0xb5)]))],l);function u(_0x260e6c){var _0x1e51ad=_0x17db53;return Array['from'](_0x260e6c)[_0x1e51ad(0xaf)](_0x2931d2=>_0x2931d2===t['DataStreamTreeTokenType'][_0x1e51ad(0xbb)]?'\x0a':_0x2931d2)['filter'](_0x7671de=>_0x7671de!==t[_0x1e51ad(0x8d)]['BLOCK_START']&&_0x7671de!==t['DataStreamTreeTokenType'][_0x1e51ad(0x92)]&&_0x7671de!==t['DataStreamTreeTokenType'][_0x1e51ad(0xad)])[_0x1e51ad(0x93)]('')['replace'](/\n$/,'');}function _0x39a9(_0xb5d4f2,_0x5b08e7){_0xb5d4f2=_0xb5d4f2-0x81;var _0x306741=_0x3067();var _0x39a90d=_0x306741[_0xb5d4f2];return _0x39a90d;}var d=class extends n[_0x17db53(0xcd)]{[_0x17db53(0xa7)](){var _0x33ee9d=_0x17db53;return this[_0x33ee9d(0xc8)]()[_0x33ee9d(0x8f)](_0x38faa0=>_0x38faa0['blockType']===t[_0x33ee9d(0xb8)][_0x33ee9d(0xae)])['map'](_0x1c0f4b=>this['_createFDocumentCode'](_0x1c0f4b[_0x33ee9d(0x8e)]));}[_0x17db53(0xbd)](_0x58d8dc){var _0x3b861e=_0x17db53;return this[_0x3b861e(0xc8)]()[_0x3b861e(0xc5)](_0x59221c=>_0x59221c[_0x3b861e(0x8e)]===_0x58d8dc&&_0x59221c[_0x3b861e(0xb6)]===t['DocumentBlockRangeType'][_0x3b861e(0xae)])?this[_0x3b861e(0x99)](_0x58d8dc):null;}[_0x17db53(0x95)](_0x36d052){var _0x3b95db=_0x17db53;let _0x267270=this['_getBlockRanges']()[_0x3b95db(0x82)](_0x27c30c=>_0x27c30c[_0x3b95db(0xb6)]===t['DocumentBlockRangeType'][_0x3b95db(0xae)]&&_0x27c30c[_0x3b95db(0xbc)]<=_0x36d052&&_0x36d052<=_0x27c30c[_0x3b95db(0xa2)]);return _0x267270?this[_0x3b95db(0x99)](_0x267270[_0x3b95db(0x8e)]):null;}['findCodeByText'](_0x12554c){var _0x5dc1a8=_0x17db53,_0x23a948;return(_0x23a948=this[_0x5dc1a8(0xd0)](_0x12554c)[0x0])==null?null:_0x23a948;}[_0x17db53(0xd0)](_0x100cd4){var _0x5358f9=_0x17db53;let _0x31be31=typeof _0x100cd4==_0x5358f9(0xcc)?{'text':_0x100cd4}:_0x100cd4;return this['getCodes']()[_0x5358f9(0x8f)](_0x48ba03=>!(_0x31be31[_0x5358f9(0x8e)]&&_0x48ba03[_0x5358f9(0xc3)]()!==_0x31be31[_0x5358f9(0x8e)]||_0x31be31[_0x5358f9(0xc1)]&&!_0x48ba03[_0x5358f9(0xb7)]()[_0x5358f9(0xc4)](_0x31be31[_0x5358f9(0xc1)])));}[_0x17db53(0x9d)](_0x34881b={},_0x171e41={}){var _0x517925=_0x17db53,_0x20e322;let _0x5fd405=this[_0x517925(0x8b)][_0x517925(0xbe)](t[_0x517925(0xc0)]),_0xad4b61=f(_0x34881b)?{..._0x171e41,...p(_0x34881b)}:_0x34881b,_0x41bacd=(_0x20e322=_0xad4b61[_0x517925(0x8e)])==null?(0x0,t[_0x517925(0xca)])(0x6):_0x20e322;return _0x5fd405[_0x517925(0x9f)](e[_0x517925(0x83)]['id'],{..._0xad4b61,'blockId':_0x41bacd,'unitId':this[_0x517925(0xc3)]()})?this['_createFDocumentCode'](_0x41bacd):null;}[_0x17db53(0xa1)](_0x53a339){var _0x9b218e=_0x17db53;return this['_injector'][_0x9b218e(0xbe)](t[_0x9b218e(0xc0)])[_0x9b218e(0x9f)](e[_0x9b218e(0xb4)]['id'],{'cursorOffset':_0x53a339,'unitId':this[_0x9b218e(0xc3)]()});}[_0x17db53(0xd2)](_0x456a0a={}){var _0x56c031=_0x17db53;return this[_0x56c031(0x8b)][_0x56c031(0xbe)](t[_0x56c031(0xc0)])[_0x56c031(0x9f)](e[_0x56c031(0xc9)]['id'],{..._0x456a0a,'unitId':this[_0x56c031(0xc3)]()});}[_0x17db53(0xc8)](){var _0x5545e8=_0x17db53,_0x386c4c,_0x53b586;return(_0x386c4c=(_0x53b586=this['save']()[_0x5545e8(0xbf)])==null?void 0x0:_0x53b586[_0x5545e8(0xab)])==null?[]:_0x386c4c;}[_0x17db53(0x99)](_0x2fc73b){var _0x2f5116=_0x17db53;return this[_0x2f5116(0x8b)][_0x2f5116(0xa9)](l,this,_0x2fc73b);}};function f(_0xfa910){var _0x1526fe=_0x17db53;return typeof _0xfa910==_0x1526fe(0xba)&&!!_0xfa910&&typeof _0xfa910[_0x1526fe(0x8a)]==_0x1526fe(0x84)&&typeof _0xfa910[_0x1526fe(0xcf)]=='function'&&typeof _0xfa910[_0x1526fe(0xa8)]==_0x1526fe(0x84)&&_0xfa910[_0x1526fe(0xa8)]()==='paragraph';}function p(_0x27c220){var _0x3a10d9=_0x17db53;return _0x27c220[_0x3a10d9(0xcf)]();}n['FDocument']['extend'](d),Object[_0x17db53(0x85)](exports,_0x17db53(0xd3),{'enumerable':!0x0,'get':function(){return l;}});
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- const _0x1c0538=_0x5a44;function _0x5a44(_0x45906c,_0x4f5153){_0x45906c=_0x45906c-0xf7;const _0x380d25=_0x380d();let _0x5a4466=_0x380d25[_0x45906c];return _0x5a4466;}(function(_0xed4e32,_0xcc5219){const _0x2b2e64=_0x5a44,_0x5cce7a=_0xed4e32();while(!![]){try{const _0x2061f3=parseInt(_0x2b2e64(0xfd))/0x1+-parseInt(_0x2b2e64(0x126))/0x2*(parseInt(_0x2b2e64(0x156))/0x3)+-parseInt(_0x2b2e64(0x193))/0x4+parseInt(_0x2b2e64(0x14d))/0x5*(-parseInt(_0x2b2e64(0x16d))/0x6)+parseInt(_0x2b2e64(0x173))/0x7+-parseInt(_0x2b2e64(0x19a))/0x8+parseInt(_0x2b2e64(0x139))/0x9*(parseInt(_0x2b2e64(0x182))/0xa);if(_0x2061f3===_0xcc5219)break;else _0x5cce7a['push'](_0x5cce7a['shift']());}catch(_0x56ec9b){_0x5cce7a['push'](_0x5cce7a['shift']());}}}(_0x380d,0xaa2ef),Object[_0x1c0538(0x10e)](exports,Symbol[_0x1c0538(0x134)],{'value':_0x1c0538(0x108)}));let e=require('@univerjs/core'),t=require('@univerjs/docs'),n=require('rxjs'),r=require('@univerjs-pro/license');const i={'language':_0x1c0538(0x178),'showLineNumbers':!0x1,'tabSize':0x4,'wrap':!0x0};function a(_0x5b3366){return{...i,..._0x5b3366};}function o(_0x55f2df){const _0x5d0a55=_0x1c0538;var _0x5aaa82;let _0x1d98ac=(_0x5aaa82=_0x55f2df==null?void 0x0:_0x55f2df['codes'])==null?{}:_0x5aaa82;return{'codes':Object[_0x5d0a55(0x187)](Object[_0x5d0a55(0x100)](_0x1d98ac)[_0x5d0a55(0x11a)](([_0x4ae315,_0x13defc])=>[_0x4ae315,a(_0x13defc)]))};}function s(_0x2ebcec,_0x57fa31,_0x37b5c7){const _0x7d64f8=_0x1c0538;let _0x1e05fd=o(_0x2ebcec);return _0x1e05fd[_0x7d64f8(0x132)][_0x57fa31]=a({..._0x1e05fd['codes'][_0x57fa31],..._0x37b5c7}),_0x1e05fd;}function c(_0xac6a9c,_0x3d49d2){let _0x3e3150=o(_0xac6a9c);return delete _0x3e3150['codes'][_0x3d49d2],_0x3e3150;}const l=_0x1c0538(0x17b);function u(_0x490a0f){const _0xeeb4d7=_0x1c0538;var _0x22cb93,_0x3f0078,_0x545da5;let _0x45c0e2=C(_0x490a0f['documentData']),_0x588de9=w(_0x45c0e2),_0x2d7aa4=f(_0x490a0f[_0xeeb4d7(0x119)],_0x490a0f[_0xeeb4d7(0x13a)]),_0x1d51ee=_0x2d7aa4?(_0x22cb93=_0x588de9[_0xeeb4d7(0x121)])==null?void 0x0:_0x22cb93[_0xeeb4d7(0x14f)](_0x584f46=>_0x584f46[_0xeeb4d7(0x19c)]===_0x2d7aa4['startOffset']&&_0x584f46[_0xeeb4d7(0x120)]+0x1===_0x2d7aa4['endOffset']):void 0x0,{startOffset:_0x107dc2,endOffset:_0x282ee4}=_0x1d51ee?_0x2d7aa4:ne(_0x588de9,_0x490a0f['startOffset'],_0x490a0f[_0xeeb4d7(0x13a)]),_0x3da1c8=ie(_0x588de9,_0x107dc2,_0x282ee4),_0x2249be=(_0x3f0078=_0x1d51ee==null?void 0x0:_0x1d51ee[_0xeeb4d7(0x137)])==null?_0x490a0f[_0xeeb4d7(0x137)]:_0x3f0078,_0x567510=s(_0x490a0f['metadata'],_0x2249be,{...i,..._0x490a0f['config']});if(_0x1d51ee)return _0x1d51ee[_0xeeb4d7(0x14c)]=e['DocumentBlockRangeType'][_0xeeb4d7(0x169)],d(_0x588de9,_0x107dc2,_0x282ee4),x(_0x588de9,_0x107dc2,_0x282ee4,_0x3da1c8),{'nextDocumentData':_0x45c0e2,'nextMetadata':_0x567510,'cursorOffset':_0x107dc2+0x1};if(_0x107dc2===_0x282ee4){let _0x32665b=''+e['DataStreamTreeTokenType'][_0xeeb4d7(0x175)]+e[_0xeeb4d7(0x10d)]['PARAGRAPH']+e[_0xeeb4d7(0x10d)][_0xeeb4d7(0x151)];return O(_0x588de9,_0x107dc2,_0x32665b,{'paragraphs':[{'startIndex':0x1,'paragraphStyle':b(!0x0,!0x0,_0x3da1c8)}],'blockRanges':[{'blockId':_0x2249be,'blockType':e['DocumentBlockRangeType'][_0xeeb4d7(0x169)],'startIndex':0x0,'endIndex':_0x32665b[_0xeeb4d7(0x167)]-0x1}]}),{'nextDocumentData':_0x45c0e2,'nextMetadata':_0x567510,'cursorOffset':_0x107dc2+0x1};}return O(_0x588de9,_0x282ee4,e[_0xeeb4d7(0x10d)][_0xeeb4d7(0x151)]),O(_0x588de9,_0x107dc2,e[_0xeeb4d7(0x10d)]['BLOCK_START']),x(_0x588de9,_0x107dc2,_0x282ee4+0x1,_0x3da1c8),_0x588de9[_0xeeb4d7(0x121)]=[...(_0x545da5=_0x588de9[_0xeeb4d7(0x121)])==null?[]:_0x545da5,{'blockId':_0x2249be,'blockType':e['DocumentBlockRangeType'][_0xeeb4d7(0x169)],'startIndex':_0x107dc2,'endIndex':_0x282ee4+0x1}][_0xeeb4d7(0x194)]((_0xd3a151,_0x59cbdc)=>_0xd3a151[_0xeeb4d7(0x19c)]-_0x59cbdc[_0xeeb4d7(0x19c)]),{'nextDocumentData':_0x45c0e2,'nextMetadata':_0x567510,'cursorOffset':_0x107dc2+0x1};}function d(_0x1812cc,_0x1c1350,_0x2bdadf){const _0x4979e9=_0x1c0538;var _0x17c5bf;((_0x17c5bf=_0x1812cc[_0x4979e9(0x11c)])==null?[]:_0x17c5bf)[_0x4979e9(0x163)](_0x21b919=>_0x21b919[_0x4979e9(0x19c)]>_0x1c1350&&_0x21b919[_0x4979e9(0x19c)]<_0x2bdadf)[_0x4979e9(0x140)](_0x2cf6c0=>{const _0xcc011c=_0x4979e9;var _0x36caa4;let _0x5debe9={...(_0x36caa4=_0x2cf6c0[_0xcc011c(0x10a)])==null?{}:_0x36caa4};delete _0x5debe9['spaceAbove'],delete _0x5debe9[_0xcc011c(0x128)],_0x2cf6c0[_0xcc011c(0x10a)]=_0x5debe9;});}function f(_0x30fbde,_0x19589c){const _0x39dd6d=_0x1c0538;return _0x30fbde==null||_0x19589c==null||_0x30fbde===_0x19589c?null:{'startOffset':Math[_0x39dd6d(0x190)](_0x30fbde,_0x19589c),'endOffset':Math[_0x39dd6d(0x18d)](_0x30fbde,_0x19589c)};}function p(_0x5b9f1b){const _0x3eef9=_0x1c0538;return{'nextDocumentData':C(_0x5b9f1b[_0x3eef9(0x11b)]),'nextMetadata':s(_0x5b9f1b['metadata'],_0x5b9f1b[_0x3eef9(0x137)],_0x5b9f1b[_0x3eef9(0x183)]),'cursorOffset':0x0};}function m(_0x2a35f3){const _0x3741c2=_0x1c0538;var _0x181dd9,_0x29380e;let _0x32298c=C(_0x2a35f3[_0x3741c2(0x11b)]),_0x3805fb=w(_0x32298c),_0x52b583=y(_0x3805fb,_0x2a35f3[_0x3741c2(0x13e)]);if(!_0x52b583)return null;let _0x48743c=S(_0x3805fb,_0x52b583),_0x4a450a=_0x48743c[_0x48743c[_0x3741c2(0x167)]-0x1];if(!_0x4a450a||!te(_0x3805fb,_0x52b583,_0x4a450a)||_0x2a35f3[_0x3741c2(0x13e)]<_0x4a450a['startIndex'])return null;let _0x30bfce=E(_0x3805fb,_0x52b583,_0x4a450a);if(_0x30bfce>=_0x52b583['endIndex'])return null;_0x3805fb[_0x3741c2(0x102)]=[_0x3805fb[_0x3741c2(0x102)]['slice'](0x0,_0x30bfce),e[_0x3741c2(0x10d)][_0x3741c2(0x151)],_0x3805fb['dataStream'][_0x3741c2(0x166)](_0x30bfce,_0x52b583[_0x3741c2(0x120)]),_0x3805fb['dataStream'][_0x3741c2(0x166)](_0x52b583[_0x3741c2(0x120)]+0x1)][_0x3741c2(0x177)](''),N(_0x3805fb[_0x3741c2(0x11c)],_0x30bfce,_0x52b583['endIndex'],0x1),N(_0x3805fb[_0x3741c2(0x165)],_0x30bfce,_0x52b583[_0x3741c2(0x120)],0x1),N(_0x3805fb['customBlocks'],_0x30bfce,_0x52b583['endIndex'],0x1),de(_0x3805fb[_0x3741c2(0x174)],_0x30bfce,_0x52b583['endIndex'],0x1),P(_0x3805fb[_0x3741c2(0x191)],_0x30bfce,_0x52b583[_0x3741c2(0x120)],0x1),P(_0x3805fb[_0x3741c2(0x150)],_0x30bfce,_0x52b583[_0x3741c2(0x120)],0x1),P(_0x3805fb[_0x3741c2(0x16f)],_0x30bfce,_0x52b583[_0x3741c2(0x120)],0x1),(_0x181dd9=_0x3805fb[_0x3741c2(0x121)])==null||_0x181dd9[_0x3741c2(0x140)](_0x34bca8=>{const _0x3a2a70=_0x3741c2;_0x34bca8===_0x52b583||_0x34bca8[_0x3a2a70(0x137)]===_0x52b583[_0x3a2a70(0x137)]?_0x34bca8[_0x3a2a70(0x120)]=_0x30bfce:_0x34bca8[_0x3a2a70(0x19c)]>=_0x30bfce&&_0x34bca8[_0x3a2a70(0x19c)]<_0x52b583['endIndex']&&(_0x34bca8[_0x3a2a70(0x19c)]+=0x1,_0x34bca8[_0x3a2a70(0x120)]+=0x1);});let _0x4fce3d=S(_0x3805fb,{..._0x52b583,'endIndex':_0x30bfce});_0x4fce3d[_0x3741c2(0x140)]((_0x6bafbb,_0x4d1da3)=>{const _0x1a744e=_0x3741c2;var _0x2659f7;_0x6bafbb['paragraphStyle']={...(_0x2659f7=_0x6bafbb['paragraphStyle'])==null?{}:_0x2659f7,...b(_0x4d1da3===0x0,_0x4d1da3===_0x4fce3d[_0x1a744e(0x167)]-0x1)};});let _0x2955e3=(_0x29380e=_0x3805fb[_0x3741c2(0x11c)])==null?void 0x0:_0x29380e[_0x3741c2(0x14f)](_0x292001=>_0x292001['startIndex']===_0x30bfce+0x1);return _0x2955e3&&(_0x2955e3[_0x3741c2(0x10a)]=ee(_0x2955e3[_0x3741c2(0x10a)])),{'nextDocumentData':_0x32298c,'cursorOffset':_0x30bfce+0x1};}function h(_0x11edb6){const _0x114e72=_0x1c0538;let _0x3cda68=C(_0x11edb6[_0x114e72(0x11b)]),_0x43f33a=w(_0x3cda68),_0x13171d=y(_0x43f33a,_0x11edb6[_0x114e72(0x13e)]);return _0x13171d&&g(_0x3cda68,_0x43f33a,_0x13171d,_0x11edb6['cursorOffset'],_0x11edb6[_0x114e72(0x14e)])||null;}function g(_0x1db384,_0x3c013a,_0x213f68,_0x1b50b5,_0x365e59){const _0x207b20=_0x1c0538;let _0x429287=oe(_0x3c013a,_0x213f68,_0x1b50b5,_0x365e59);if(!_0x429287)return null;let _0x2c60c1=_0x429287['endTokenOffset']-0x1;return se(_0x3c013a,_0x429287[_0x207b20(0x19d)][_0x207b20(0x19c)],_0x429287['paragraph'][_0x207b20(0x19c)]+0x1),{'nextDocumentData':_0x1db384,'cursorOffset':_0x2c60c1};}function _(_0xbd8bad,_0x85e263){const _0x367b46=_0x1c0538;var _0xa49d31;return _0xbd8bad==null||(_0xa49d31=_0xbd8bad['blockRanges'])==null?void 0x0:_0xa49d31[_0x367b46(0x14f)](_0x496cb2=>_0x496cb2[_0x367b46(0x14c)]===e[_0x367b46(0x145)]['CODE']&&_0x496cb2[_0x367b46(0x19c)]<=_0x85e263&&_0x85e263<=_0x496cb2['endIndex']);}function v(_0x3d2f30){const _0x3874ff=_0x1c0538;var _0x240a4a;let _0x77d2c5=_0x3d2f30['documentData'][_0x3874ff(0x11d)];if(!_0x77d2c5)return!0x1;let _0x3d6275=_0x3d2f30[_0x3874ff(0x10c)]===_0x3874ff(0x130)?_0x3d2f30[_0x3874ff(0x13e)]-0x1:_0x3d2f30['cursorOffset'],_0x25a41e=_0x3d2f30[_0x3874ff(0x10c)]==='right'?_0x3d2f30['cursorOffset']+0x1:_0x3d6275;return((_0x240a4a=_0x77d2c5['blockRanges'])==null?[]:_0x240a4a)['some'](_0x12d184=>_0x12d184[_0x3874ff(0x14c)]===e[_0x3874ff(0x145)]['CODE']?_0x3d6275===_0x12d184[_0x3874ff(0x19c)]||_0x3d6275===_0x12d184[_0x3874ff(0x120)]||_0x25a41e===_0x12d184['startIndex']||_0x25a41e===_0x12d184['endIndex']:!0x1);}function y(_0x1a42ac,_0x5ed0e2){const _0x1c7526=_0x1c0538;var _0x1cd84a;return(_0x1cd84a=_0x1a42ac[_0x1c7526(0x121)])==null?void 0x0:_0x1cd84a[_0x1c7526(0x14f)](_0x2f75e2=>{const _0x17d6ee=_0x1c7526;let _0x1f8196=D(_0x1a42ac,_0x2f75e2);return _0x2f75e2['blockType']===e[_0x17d6ee(0x145)]['CODE']&&_0x2f75e2['startIndex']<=_0x5ed0e2&&_0x5ed0e2<=_0x1f8196+0x2;});}function b(_0x120371,_0x3eae83,_0x58b49c=!0x1){return{'indentEnd':{'v':0x14},'indentStart':{'v':0x14},..._0x120371&&_0x58b49c?{'spaceAbove':{'v':0x8}}:{},'textStyle':{'ff':l,'fs':0xc}};}function x(_0x4de46c,_0xe3fc03,_0x2ab9d7,_0x2acf54=!0x1){const _0x1c5996=_0x1c0538;var _0x54795e;let _0xa1cf5b=((_0x54795e=_0x4de46c['paragraphs'])==null?[]:_0x54795e)[_0x1c5996(0x163)](_0x4eb343=>_0x4eb343[_0x1c5996(0x19c)]>_0xe3fc03&&_0x4eb343[_0x1c5996(0x19c)]<_0x2ab9d7);_0xa1cf5b[_0x1c5996(0x140)]((_0x7f315b,_0x492a25)=>{const _0x42ca84=_0x1c5996;var _0x1e8a4c;_0x7f315b['paragraphStyle']={...(_0x1e8a4c=_0x7f315b[_0x42ca84(0x10a)])==null?{}:_0x1e8a4c,...b(_0x492a25===0x0,_0x492a25===_0xa1cf5b[_0x42ca84(0x167)]-0x1,_0x2acf54)};});}function ee(_0x304410){const _0x59ab9f=_0x1c0538;var _0x582e4a,_0x87c37e;let _0x299b7a={..._0x304410==null?{}:_0x304410};return delete _0x299b7a[_0x59ab9f(0x18c)],delete _0x299b7a[_0x59ab9f(0x12b)],delete _0x299b7a[_0x59ab9f(0x129)],delete _0x299b7a[_0x59ab9f(0x128)],((_0x582e4a=_0x299b7a[_0x59ab9f(0x10f)])==null?void 0x0:_0x582e4a['ff'])===l&&((_0x87c37e=_0x299b7a[_0x59ab9f(0x10f)])==null?void 0x0:_0x87c37e['fs'])===0xc&&delete _0x299b7a[_0x59ab9f(0x10f)],_0x299b7a;}function S(_0xcede40,_0x54ed29){const _0x1fd625=_0x1c0538;var _0x4d6182;let _0x57de6d=D(_0xcede40,_0x54ed29);return((_0x4d6182=_0xcede40[_0x1fd625(0x11c)])==null?[]:_0x4d6182)[_0x1fd625(0x163)](_0x2ddd83=>_0x2ddd83[_0x1fd625(0x19c)]>_0x54ed29[_0x1fd625(0x19c)]&&_0x2ddd83[_0x1fd625(0x19c)]<_0x57de6d);}function te(_0x537d01,_0xae6968,_0x324ee0){const _0x5e087f=_0x1c0538;let _0x2eff80=E(_0x537d01,_0xae6968,_0x324ee0),_0x590d50=_0x537d01[_0x5e087f(0x102)]['slice'](_0x2eff80,_0x324ee0[_0x5e087f(0x19c)]);return Array['from'](_0x590d50)[_0x5e087f(0x16c)](_0x52e59a=>_0x52e59a===e[_0x5e087f(0x10d)][_0x5e087f(0x175)]||_0x52e59a===e['DataStreamTreeTokenType'][_0x5e087f(0x151)]);}function C(_0xec58f1){const _0x1cda4f=_0x1c0538;return e[_0x1cda4f(0x15f)][_0x1cda4f(0x180)](_0xec58f1);}function w(_0x5b3016){const _0x45ce65=_0x1c0538;if(!_0x5b3016[_0x45ce65(0x11d)])throw Error('Document\x20body\x20is\x20required');return _0x5b3016[_0x45ce65(0x11d)];}function ne(_0x9ac820,_0x388211,_0x349442){const _0x5f16c2=_0x1c0538;if(_0x388211==null||_0x349442==null){let _0x137b32=re(_0x9ac820);return{'startOffset':_0x137b32,'endOffset':_0x137b32};}let _0x497364=Math[_0x5f16c2(0x190)](_0x388211,_0x349442),_0x316c39=Math['max'](_0x388211,_0x349442);return _0x497364===_0x316c39?{'startOffset':_0x497364,'endOffset':_0x497364}:ae(_0x9ac820,_0x497364,_0x316c39);}function re(_0x172bd3){const _0x307a61=_0x1c0538;return _0x172bd3[_0x307a61(0x102)][_0x307a61(0x15a)](e[_0x307a61(0x10d)][_0x307a61(0x13f)])?Math[_0x307a61(0x18d)](0x0,_0x172bd3[_0x307a61(0x102)][_0x307a61(0x167)]-0x1):_0x172bd3['dataStream'][_0x307a61(0x167)];}function ie(_0xfbf2c2,_0x470e91,_0x7d21ca){const _0x1341d9=_0x1c0538;var _0x146028;let _0x52ce02=Math['min'](_0x470e91,_0x7d21ca),_0x323013=Math[_0x1341d9(0x18d)](_0x470e91,_0x7d21ca);return!!((_0x146028=_0xfbf2c2[_0x1341d9(0x191)])!=null&&_0x146028[_0x1341d9(0x115)](_0x18c826=>_0x52ce02>_0x18c826[_0x1341d9(0x19c)]&&_0x52ce02<_0x18c826['endIndex']||_0x323013>_0x18c826['startIndex']&&_0x323013<_0x18c826[_0x1341d9(0x120)]||_0x52ce02<=_0x18c826[_0x1341d9(0x19c)]&&_0x323013>=_0x18c826['endIndex']));}function ae(_0x1b7da5,_0x44fc93,_0x1ce943){const _0x3c26c4=_0x1c0538;var _0x1026ad,_0x227fb2;let _0x5542d2=[...(_0x1026ad=_0x1b7da5[_0x3c26c4(0x11c)])==null?[]:_0x1026ad][_0x3c26c4(0x194)]((_0x4da2fa,_0x66e9cd)=>_0x4da2fa[_0x3c26c4(0x19c)]-_0x66e9cd['startIndex']),_0x444796=_0x5542d2[_0x3c26c4(0x14f)]((_0x3ec9b9,_0x127ce5)=>(_0x127ce5===0x0?0x0:_0x5542d2[_0x127ce5-0x1][_0x3c26c4(0x19c)]+0x1)<=_0x44fc93&&_0x44fc93<=_0x3ec9b9[_0x3c26c4(0x19c)]),_0x508cc6=(_0x227fb2=_0x5542d2[_0x3c26c4(0x14f)](_0x39427f=>_0x39427f[_0x3c26c4(0x19c)]>=_0x1ce943-0x1))==null?_0x5542d2[_0x5542d2[_0x3c26c4(0x167)]-0x1]:_0x227fb2;return{'startOffset':_0x444796?T(_0x5542d2,_0x444796):_0x44fc93,'endOffset':_0x508cc6?_0x508cc6['startIndex']+0x1:_0x1ce943};}function T(_0x461cda,_0x4c3c1a){const _0x575762=_0x1c0538;let _0x4342fa=_0x461cda[_0x575762(0x155)](_0x4c3c1a);return _0x4342fa>0x0?_0x461cda[_0x4342fa-0x1][_0x575762(0x19c)]+0x1:0x0;}function E(_0x29de7c,_0x2224d5,_0x30559d){const _0x1edf3f=_0x1c0538;var _0x36340b;return Math[_0x1edf3f(0x18d)](T((_0x36340b=_0x29de7c[_0x1edf3f(0x11c)])==null?[]:_0x36340b,_0x30559d),_0x2224d5[_0x1edf3f(0x19c)]+0x1);}function D(_0x33c14e,_0x23f1c4){const _0x36702d=_0x1c0538;return _0x33c14e[_0x36702d(0x102)][_0x23f1c4['endIndex']]===e['DataStreamTreeTokenType'][_0x36702d(0x151)]?_0x23f1c4['endIndex']:_0x33c14e[_0x36702d(0x102)][_0x23f1c4[_0x36702d(0x120)]+0x1]===e['DataStreamTreeTokenType'][_0x36702d(0x151)]?_0x23f1c4['endIndex']+0x1:_0x23f1c4[_0x36702d(0x120)];}function oe(_0x41f6e1,_0x486bf6,_0x240627,_0x5bedfc){const _0x541722=_0x1c0538;var _0x351154,_0x13c940;let _0x5c33c5=D(_0x41f6e1,_0x486bf6),_0x264a71=((_0x351154=_0x41f6e1[_0x541722(0x11c)])==null?[]:_0x351154)[_0x541722(0x14f)](_0x3b8edc=>_0x3b8edc[_0x541722(0x19c)]===_0x5c33c5+0x1);if(!_0x264a71||_0x5bedfc!=null&&_0x264a71[_0x541722(0x19c)]!==_0x5bedfc||_0x240627<_0x5c33c5||_0x240627>_0x264a71['startIndex']+0x1||_0x41f6e1['dataStream'][_0x264a71[_0x541722(0x19c)]]!==e[_0x541722(0x10d)][_0x541722(0x18f)])return null;let _0x4bf92e=T((_0x13c940=_0x41f6e1[_0x541722(0x11c)])==null?[]:_0x13c940,_0x264a71),_0x3e2102=_0x41f6e1[_0x541722(0x102)]['slice'](_0x4bf92e,_0x264a71[_0x541722(0x19c)]);return Array['from'](_0x3e2102)[_0x541722(0x16c)](_0x33a2ba=>_0x33a2ba===e[_0x541722(0x10d)]['BLOCK_END'])?{'paragraph':_0x264a71,'endTokenOffset':_0x5c33c5}:null;}function O(_0x4af231,_0x3315c8,_0x54984e,_0xa74881={}){const _0x1f8924=_0x1c0538;var _0x8ffdd1,_0x40c112;if(_0x54984e){if(_0x4af231[_0x1f8924(0x102)]=''+_0x4af231[_0x1f8924(0x102)]['slice'](0x0,_0x3315c8)+_0x54984e+_0x4af231[_0x1f8924(0x102)][_0x1f8924(0x166)](_0x3315c8),ce(_0x4af231,_0x3315c8,_0x54984e[_0x1f8924(0x167)]),(_0x8ffdd1=_0xa74881[_0x1f8924(0x11c)])!=null&&_0x8ffdd1[_0x1f8924(0x167)]){var _0x2734b3;_0x4af231['paragraphs']=[...(_0x2734b3=_0x4af231[_0x1f8924(0x11c)])==null?[]:_0x2734b3,..._0xa74881[_0x1f8924(0x11c)][_0x1f8924(0x11a)](_0x50a3d4=>({..._0x50a3d4,'startIndex':_0x50a3d4[_0x1f8924(0x19c)]+_0x3315c8}))][_0x1f8924(0x194)]((_0x1c49e2,_0x5d45af)=>_0x1c49e2['startIndex']-_0x5d45af[_0x1f8924(0x19c)]);}if((_0x40c112=_0xa74881[_0x1f8924(0x121)])!=null&&_0x40c112[_0x1f8924(0x167)]){var _0x509c24;_0x4af231['blockRanges']=[...(_0x509c24=_0x4af231[_0x1f8924(0x121)])==null?[]:_0x509c24,..._0xa74881[_0x1f8924(0x121)][_0x1f8924(0x11a)](_0x3dbed4=>({..._0x3dbed4,'startIndex':_0x3dbed4['startIndex']+_0x3315c8,'endIndex':_0x3dbed4['endIndex']+_0x3315c8}))][_0x1f8924(0x194)]((_0x134957,_0x5a1e0d)=>_0x134957[_0x1f8924(0x19c)]-_0x5a1e0d[_0x1f8924(0x19c)]);}}}function se(_0x243263,_0x1bbfa4,_0x57b22c){const _0x4da2df=_0x1c0538;let _0xf9743b=_0x57b22c-_0x1bbfa4;_0x243263[_0x4da2df(0x102)]=''+_0x243263['dataStream'][_0x4da2df(0x166)](0x0,_0x1bbfa4)+_0x243263[_0x4da2df(0x102)][_0x4da2df(0x166)](_0x57b22c),le(_0x243263,_0x1bbfa4,_0xf9743b);}function ce(_0xb9b306,_0x27ec0e,_0x4d8bf2){const _0x5a33d7=_0x1c0538;_0xb9b306[_0x5a33d7(0x11c)]=k(_0xb9b306[_0x5a33d7(0x11c)],_0x27ec0e,_0x4d8bf2),_0xb9b306[_0x5a33d7(0x165)]=k(_0xb9b306[_0x5a33d7(0x165)],_0x27ec0e,_0x4d8bf2),_0xb9b306[_0x5a33d7(0x184)]=k(_0xb9b306[_0x5a33d7(0x184)],_0x27ec0e,_0x4d8bf2),_0xb9b306['textRuns']=ue(_0xb9b306[_0x5a33d7(0x174)],_0x27ec0e,_0x4d8bf2),_0xb9b306['tables']=j(_0xb9b306[_0x5a33d7(0x191)],_0x27ec0e,_0x4d8bf2),_0xb9b306[_0x5a33d7(0x150)]=j(_0xb9b306['customRanges'],_0x27ec0e,_0x4d8bf2),_0xb9b306['customDecorations']=j(_0xb9b306['customDecorations'],_0x27ec0e,_0x4d8bf2),_0xb9b306[_0x5a33d7(0x121)]=j(_0xb9b306[_0x5a33d7(0x121)],_0x27ec0e,_0x4d8bf2);}function le(_0x370514,_0x315578,_0x1a50b8){const _0x5025ed=_0x1c0538;var _0x3e80d6,_0x5e62c4;_0x370514[_0x5025ed(0x11c)]=A(_0x370514[_0x5025ed(0x11c)],_0x315578,_0x1a50b8),_0x370514[_0x5025ed(0x165)]=A(_0x370514[_0x5025ed(0x165)],_0x315578,_0x1a50b8),_0x370514['customBlocks']=A(_0x370514[_0x5025ed(0x184)],_0x315578,_0x1a50b8),_0x370514[_0x5025ed(0x174)]=(_0x3e80d6=M((_0x5e62c4=_0x370514['textRuns'])==null?void 0x0:_0x5e62c4[_0x5025ed(0x11a)](_0x5957d9=>({..._0x5957d9,'startIndex':_0x5957d9['st'],'endIndex':_0x5957d9['ed']})),_0x315578,_0x1a50b8))==null?void 0x0:_0x3e80d6[_0x5025ed(0x11a)](_0x3787fd=>{let {startIndex:_0x65dfe3,endIndex:_0xd30cab,..._0x3546de}=_0x3787fd;return{..._0x3546de,'st':_0x65dfe3,'ed':_0xd30cab};}),_0x370514[_0x5025ed(0x191)]=M(_0x370514[_0x5025ed(0x191)],_0x315578,_0x1a50b8),_0x370514['customRanges']=M(_0x370514[_0x5025ed(0x150)],_0x315578,_0x1a50b8),_0x370514[_0x5025ed(0x16f)]=M(_0x370514[_0x5025ed(0x16f)],_0x315578,_0x1a50b8),_0x370514[_0x5025ed(0x121)]=M(_0x370514[_0x5025ed(0x121)],_0x315578,_0x1a50b8);}function k(_0x75cf27,_0x1ce58f,_0x56d0ae){const _0x1fe1d1=_0x1c0538;return _0x75cf27==null?void 0x0:_0x75cf27[_0x1fe1d1(0x11a)](_0x34c37d=>_0x34c37d[_0x1fe1d1(0x19c)]>=_0x1ce58f?{..._0x34c37d,'startIndex':_0x34c37d['startIndex']+_0x56d0ae}:_0x34c37d);}function A(_0x8d033a,_0x160943,_0x32ea92){const _0x344f73=_0x1c0538;let _0x1ddfa3=_0x160943+_0x32ea92;return _0x8d033a==null?void 0x0:_0x8d033a[_0x344f73(0x11a)](_0x254b44=>_0x254b44[_0x344f73(0x19c)]>=_0x160943&&_0x254b44[_0x344f73(0x19c)]<_0x1ddfa3?null:_0x254b44[_0x344f73(0x19c)]>=_0x1ddfa3?{..._0x254b44,'startIndex':_0x254b44[_0x344f73(0x19c)]-_0x32ea92}:_0x254b44)[_0x344f73(0x163)](_0x310591=>_0x310591!=null);}function ue(_0x4a54ae,_0x238e32,_0x2fd151){const _0x3c8503=_0x1c0538;return _0x4a54ae==null?void 0x0:_0x4a54ae[_0x3c8503(0x11a)](_0x17a228=>_0x17a228['st']>=_0x238e32?{..._0x17a228,'st':_0x17a228['st']+_0x2fd151,'ed':_0x17a228['ed']+_0x2fd151}:_0x17a228['ed']>_0x238e32?{..._0x17a228,'ed':_0x17a228['ed']+_0x2fd151}:_0x17a228);}function j(_0x27f34a,_0x2c44e3,_0x5b1b1a){const _0x347063=_0x1c0538;return _0x27f34a==null?void 0x0:_0x27f34a[_0x347063(0x11a)](_0x3a39ba=>_0x3a39ba[_0x347063(0x19c)]>=_0x2c44e3?{..._0x3a39ba,'startIndex':_0x3a39ba[_0x347063(0x19c)]+_0x5b1b1a,'endIndex':_0x3a39ba[_0x347063(0x120)]+_0x5b1b1a}:_0x3a39ba[_0x347063(0x120)]>=_0x2c44e3?{..._0x3a39ba,'endIndex':_0x3a39ba['endIndex']+_0x5b1b1a}:_0x3a39ba);}function M(_0x2397a5,_0x123b9c,_0x467a20){const _0x2af656=_0x1c0538;let _0x1b96ae=_0x123b9c+_0x467a20;return _0x2397a5==null?void 0x0:_0x2397a5[_0x2af656(0x11a)](_0x47dbcc=>_0x47dbcc[_0x2af656(0x19c)]>=_0x123b9c&&_0x47dbcc['endIndex']<_0x1b96ae?null:_0x47dbcc[_0x2af656(0x19c)]>=_0x1b96ae?{..._0x47dbcc,'startIndex':_0x47dbcc['startIndex']-_0x467a20,'endIndex':_0x47dbcc[_0x2af656(0x120)]-_0x467a20}:_0x47dbcc[_0x2af656(0x120)]>=_0x123b9c?{..._0x47dbcc,'startIndex':_0x47dbcc[_0x2af656(0x19c)]<_0x123b9c?_0x47dbcc['startIndex']:_0x123b9c,'endIndex':Math[_0x2af656(0x18d)](_0x123b9c,_0x47dbcc[_0x2af656(0x120)]-_0x467a20)}:_0x47dbcc)[_0x2af656(0x163)](_0x7399cb=>_0x7399cb!=null);}function N(_0x2cba26,_0x310d77,_0x547064,_0x5a97d9){const _0x1bd49d=_0x1c0538;_0x2cba26==null||_0x2cba26[_0x1bd49d(0x140)](_0x5be326=>{const _0x58a1db=_0x1bd49d;_0x5be326[_0x58a1db(0x19c)]>=_0x310d77&&_0x5be326[_0x58a1db(0x19c)]<_0x547064&&(_0x5be326[_0x58a1db(0x19c)]+=_0x5a97d9);});}function de(_0x148a0f,_0x48588e,_0x25dcf9,_0x51b1d9){const _0x4f2bb0=_0x1c0538;_0x148a0f==null||_0x148a0f[_0x4f2bb0(0x140)](_0xfb3d39=>{_0xfb3d39['st']>=_0x48588e&&_0xfb3d39['st']<_0x25dcf9?(_0xfb3d39['st']+=_0x51b1d9,_0xfb3d39['ed']+=_0x51b1d9):_0xfb3d39['ed']>_0x48588e&&_0xfb3d39['ed']<_0x25dcf9&&(_0xfb3d39['ed']+=_0x51b1d9);});}function P(_0x1010d7,_0x483c30,_0x12f215,_0x2baf6e){const _0x328839=_0x1c0538;_0x1010d7==null||_0x1010d7[_0x328839(0x140)](_0x563dff=>{const _0x40aa2f=_0x328839;_0x563dff[_0x40aa2f(0x19c)]>=_0x483c30&&_0x563dff[_0x40aa2f(0x19c)]<_0x12f215?(_0x563dff['startIndex']+=_0x2baf6e,_0x563dff[_0x40aa2f(0x120)]+=_0x2baf6e):_0x563dff[_0x40aa2f(0x120)]>_0x483c30&&_0x563dff[_0x40aa2f(0x120)]<_0x12f215&&(_0x563dff[_0x40aa2f(0x120)]+=_0x2baf6e);});}function F(_0x196558){'@babel/helpers - typeof';const _0x1996c1=_0x1c0538;return F=typeof Symbol=='function'&&typeof Symbol[_0x1996c1(0x127)]==_0x1996c1(0x116)?function(_0x1763b0){return typeof _0x1763b0;}:function(_0x37223a){const _0x4c57ae=_0x1996c1;return _0x37223a&&typeof Symbol==_0x4c57ae(0x154)&&_0x37223a['constructor']===Symbol&&_0x37223a!==Symbol['prototype']?'symbol':typeof _0x37223a;},F(_0x196558);}function fe(_0x48286f,_0x2996f4){const _0x36f1da=_0x1c0538;if(F(_0x48286f)!=_0x36f1da(0x186)||!_0x48286f)return _0x48286f;var _0x409d3f=_0x48286f[Symbol[_0x36f1da(0x12e)]];if(_0x409d3f!==void 0x0){var _0x1e9132=_0x409d3f[_0x36f1da(0x146)](_0x48286f,_0x2996f4||_0x36f1da(0x12a));if(F(_0x1e9132)!='object')return _0x1e9132;throw TypeError(_0x36f1da(0x181));}return(_0x2996f4==='string'?String:Number)(_0x48286f);}function pe(_0x38d297){const _0x21ab99=_0x1c0538;var _0x14b024=fe(_0x38d297,_0x21ab99(0x198));return F(_0x14b024)==_0x21ab99(0x116)?_0x14b024:_0x14b024+'';}function I(_0x3beda6,_0x45398e,_0xc284a1){const _0x490ddc=_0x1c0538;return(_0x45398e=pe(_0x45398e))in _0x3beda6?Object[_0x490ddc(0x10e)](_0x3beda6,_0x45398e,{'value':_0xc284a1,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x3beda6[_0x45398e]=_0xc284a1,_0x3beda6;}var L=class extends e['Disposable']{constructor(..._0x8faf27){const _0x38146d=_0x1c0538;super(..._0x8faf27),I(this,_0x38146d(0x106),new Map()),I(this,'_change$',new n[(_0x38146d(0x136))]()),I(this,_0x38146d(0x16b),this[_0x38146d(0x159)][_0x38146d(0x118)]());}[_0x1c0538(0x113)](_0x1069c2,_0x2e1c3b){const _0x941295=_0x1c0538;return o(this[_0x941295(0x106)][_0x941295(0x11e)](_0x1069c2))[_0x941295(0x132)][_0x2e1c3b];}['setCodeConfig'](_0x1a411e,_0x194df2,_0x16c503){const _0x1b7d03=_0x1c0538;this[_0x1b7d03(0x185)](_0x1a411e,_0x194df2,s(this[_0x1b7d03(0x106)][_0x1b7d03(0x11e)](_0x1a411e),_0x194df2,_0x16c503));}[_0x1c0538(0x160)](_0x32cc5a,_0x13c829){const _0x13349f=_0x1c0538;this[_0x13349f(0x185)](_0x32cc5a,_0x13c829,c(this[_0x13349f(0x106)][_0x13349f(0x11e)](_0x32cc5a),_0x13c829));}[_0x1c0538(0x110)](_0x4dce3a){const _0x4d140f=_0x1c0538;return o(this[_0x4d140f(0x106)][_0x4d140f(0x11e)](_0x4dce3a));}[_0x1c0538(0x17d)](_0x246c06,_0x2b0aa0){const _0x35750d=_0x1c0538;this['_resources'][_0x35750d(0x17a)](_0x246c06,o(_0x2b0aa0)),this[_0x35750d(0x159)][_0x35750d(0x143)]({'unitId':_0x246c06});}[_0x1c0538(0x158)](_0x11c049){const _0x116a7d=_0x1c0538;this[_0x116a7d(0x106)]['delete'](_0x11c049),this['_change$']['next']({'unitId':_0x11c049});}[_0x1c0538(0x13c)](){const _0x22060a=_0x1c0538;super['dispose'](),this[_0x22060a(0x106)]['clear'](),this['_change$']['complete']();}[_0x1c0538(0x185)](_0x4f2c77,_0x716d7b,_0x169d51){const _0x26ac39=_0x1c0538;this['_resources'][_0x26ac39(0x17a)](_0x4f2c77,_0x169d51),this['_change$'][_0x26ac39(0x143)]({'unitId':_0x4f2c77,'blockId':_0x716d7b});}};const R={'id':_0x1c0538(0x142),'type':e[_0x1c0538(0x117)]['COMMAND'],'handler':_0x2d0688=>{const _0x1b3dbb=_0x1c0538;let _0x50a96a=me(_0x2d0688);if(_0x50a96a)return _0x2d0688[_0x1b3dbb(0x11e)](e['ICommandService'])[_0x1b3dbb(0x18a)](B['id'],{'startOffset':_0x50a96a['startOffset'],'endOffset':_0x50a96a[_0x1b3dbb(0x13a)],'unitId':_0x50a96a[_0x1b3dbb(0x19b)]});let _0x540ca3=he(_0x2d0688);if(!_0x540ca3)return!0x1;let _0x31aa5d=_0x540ca3[_0x1b3dbb(0x19c)]+0x1;return _0x2d0688[_0x1b3dbb(0x11e)](e['ICommandService'])['syncExecuteCommand'](B['id'],{'startOffset':_0x31aa5d,'endOffset':_0x31aa5d});}},z={'id':_0x1c0538(0x179),'type':e['CommandType'][_0x1c0538(0x133)],'handler':()=>!0x0},B={'id':_0x1c0538(0x104),'type':e[_0x1c0538(0x117)][_0x1c0538(0x133)],'handler':(_0x11b311,_0x39a9bd)=>{const _0x147db9=_0x1c0538;var _0x19c240,_0x3b8b87,_0x2a925b;let _0xa17655=W(_0x11b311,_0x39a9bd==null?void 0x0:_0x39a9bd[_0x147db9(0x19b)]);if(!_0xa17655)return!0x1;let _0x1bb256=G(_0x11b311),_0x92464c=u({'blockId':(_0x19c240=_0x39a9bd==null?void 0x0:_0x39a9bd['blockId'])==null?(0x0,e[_0x147db9(0x101)])(0x6):_0x19c240,'config':_0x39a9bd==null?void 0x0:_0x39a9bd[_0x147db9(0x183)],'documentData':_0xa17655[_0x147db9(0x14a)],'endOffset':(_0x3b8b87=_0x39a9bd==null?void 0x0:_0x39a9bd[_0x147db9(0x13a)])==null?_0x1bb256==null?void 0x0:_0x1bb256[_0x147db9(0x13a)]:_0x3b8b87,'metadata':_0xa17655['model'][_0x147db9(0x110)](_0xa17655['unitId']),'startOffset':(_0x2a925b=_0x39a9bd==null?void 0x0:_0x39a9bd['startOffset'])==null?_0x1bb256==null?void 0x0:_0x1bb256['startOffset']:_0x2a925b}),_0x3e8e27=q(_0xa17655[_0x147db9(0x13d)],_0xa17655['unitId'],_0xa17655[_0x147db9(0x14a)],_0x92464c[_0x147db9(0x176)],_0x92464c[_0x147db9(0x13e)]);return _0x3e8e27&&_0x92464c[_0x147db9(0x152)]&&_0xa17655[_0x147db9(0x149)]['deserialize'](_0xa17655[_0x147db9(0x19b)],_0x92464c['nextMetadata']),_0x3e8e27;}},V={'id':_0x1c0538(0x12f),'type':e[_0x1c0538(0x117)][_0x1c0538(0x133)],'handler':(_0x131470,_0x4516d0)=>{const _0x5b9429=_0x1c0538;if(!_0x4516d0)return!0x1;let _0x2423e0=W(_0x131470,_0x4516d0[_0x5b9429(0x19b)]);if(!_0x2423e0)return!0x1;let _0x186dbb=p({'blockId':_0x4516d0[_0x5b9429(0x137)],'config':_0x4516d0['config'],'documentData':_0x2423e0[_0x5b9429(0x14a)],'metadata':_0x2423e0[_0x5b9429(0x149)][_0x5b9429(0x110)](_0x2423e0[_0x5b9429(0x19b)])});return _0x186dbb[_0x5b9429(0x152)]&&_0x2423e0[_0x5b9429(0x149)][_0x5b9429(0x17d)](_0x2423e0[_0x5b9429(0x19b)],_0x186dbb['nextMetadata']),!0x0;}},H={'id':_0x1c0538(0x164),'type':e[_0x1c0538(0x117)][_0x1c0538(0x133)],'handler':(_0x5d5144,_0x2c213f)=>{const _0x2d532b=_0x1c0538;var _0x404c2c,_0xbafd6f;let _0x3e90c0=W(_0x5d5144,_0x2c213f==null?void 0x0:_0x2c213f[_0x2d532b(0x19b)]);if(!_0x3e90c0)return!0x1;let _0x1d7578=(_0x404c2c=_0x2c213f==null?void 0x0:_0x2c213f['cursorOffset'])==null?(_0xbafd6f=G(_0x5d5144))==null?void 0x0:_0xbafd6f[_0x2d532b(0x119)]:_0x404c2c;if(_0x1d7578==null)return!0x1;let _0x36776c=m({'cursorOffset':_0x1d7578,'documentData':_0x3e90c0['previousDocumentData']});return _0x36776c?q(_0x3e90c0['commandService'],_0x3e90c0['unitId'],_0x3e90c0[_0x2d532b(0x14a)],_0x36776c[_0x2d532b(0x176)],_0x36776c['cursorOffset']):!0x1;}},U={'id':_0x1c0538(0x16e),'type':e[_0x1c0538(0x117)][_0x1c0538(0x133)],'handler':(_0x3922d5,_0x4ec96c)=>{const _0x52ed22=_0x1c0538;var _0x4a33b1,_0x256c26;let _0x53ba62=W(_0x3922d5,_0x4ec96c==null?void 0x0:_0x4ec96c[_0x52ed22(0x19b)]);if(!_0x53ba62)return!0x1;let _0x37c9f3=(_0x4a33b1=_0x4ec96c==null?void 0x0:_0x4ec96c[_0x52ed22(0x13e)])==null?(_0x256c26=G(_0x3922d5))==null?void 0x0:_0x256c26['startOffset']:_0x4a33b1;if(_0x37c9f3==null)return!0x1;let _0x247c4e=h({'cursorOffset':_0x37c9f3,'documentData':_0x53ba62[_0x52ed22(0x14a)],'paragraphStartIndex':_0x4ec96c==null?void 0x0:_0x4ec96c['paragraphStartIndex']});return _0x247c4e?q(_0x53ba62['commandService'],_0x53ba62[_0x52ed22(0x19b)],_0x53ba62['previousDocumentData'],_0x247c4e[_0x52ed22(0x176)],_0x247c4e[_0x52ed22(0x13e)]):!0x1;}};function _0x380d(){const _0x3e02d1=['paragraphStyle','IUniverInstanceService','direction','DataStreamTreeTokenType','defineProperty','textStyle','serialize','registerCommand','consumeInsertRange','getCodeConfig','parse','some','symbol','CommandType','asObservable','startOffset','map','documentData','paragraphs','body','get','replaceOp','endIndex','blockRanges','IResourceManagerService','version','0.25.0-insiders.20260608-e4336f7','type','524966FQuNPe','iterator','spaceBelow','spaceAbove','default','indentStart','getCurrentUnitOfType','DocContentInsertService','toPrimitive','docs-code.command.update','left','_injector','codes','COMMAND','toStringTag','normalizeDocsCodeConfig','Subject','blockId','_config','1928781tFZnWF','endOffset','setConfig','dispose','commandService','cursorOffset','SECTION_BREAK','forEach','_configService','docs-code.command.insert-below','next','getSnapshot','DocumentBlockRangeType','call','decorate','getParagraphsInRange','model','previousDocumentData','IConfigService','blockType','15VvGbfu','paragraphStartIndex','find','customRanges','BLOCK_END','nextMetadata','UniverDocsCodePlugin','function','indexOf','3JyxiJm','DocsCodeConsumeBoundaryDeleteCommand','removeUnit','_change$','endsWith','disposeWithMe','UNIVER_DOC','range','getTextRanges','Tools','removeCode','DocsCodeInsertCommand','buildUpdateCodeActions','filter','docs-code.command.exit','sectionBreaks','slice','length','buildExitCodeActions','CODE','getUniverDocInstance','change$','every','2735418opFYGb','docs-code.command.cancel-empty-paragraph','customDecorations','Plugin','Inject','docs-code.config','5463955wiGxwe','textRuns','BLOCK_START','nextDocumentData','join','javascript','docs-code.command.consume-boundary-delete','set','monospace','getOwnPropertyDescriptor','deserialize','UniverLicensePlugin','DocsCodeUpdateCommand','deepClone','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','130uQpNEr','config','customBlocks','_setResource','object','fromEntries','registerPluginResource','getUnitId','syncExecuteCommand','compose','indentEnd','max','buildCancelEmptyCodeParagraphActions','PARAGRAPH','min','tables','diffValue','4216804ZORFLp','sort','_commandService','UniverInstanceType','reduce','string','@univerjs-pro/docs-code','2195888lWTGZu','unitId','startIndex','paragraph','pluginName','UniverDocsPlugin','DEFAULT_CODE_CONFIG','JSONX','DOCS_CODE_PLUGIN','_docsCodeModel','89368peyBdf','DocsCodeModel','ICommandService','entries','generateRandomId','dataStream','DOC_CODE_PLUGIN','docs-code.command.insert','add','_resources','stringify','Module','findCodeRangeAtOffset'];_0x380d=function(){return _0x3e02d1;};return _0x380d();}function W(_0xb1d81a,_0x159854){const _0x5341fe=_0x1c0538;let _0xe0c2bc=_0xb1d81a['get'](e[_0x5341fe(0x10b)]),_0x1753ef=_0x159854?_0xe0c2bc[_0x5341fe(0x16a)](_0x159854):_0xe0c2bc[_0x5341fe(0x12c)](e[_0x5341fe(0x196)][_0x5341fe(0x15c)]);return _0x1753ef?{'commandService':_0xb1d81a['get'](e[_0x5341fe(0xff)]),'model':_0xb1d81a[_0x5341fe(0x11e)](L),'previousDocumentData':_0x1753ef[_0x5341fe(0x144)](),'unitId':_0x1753ef[_0x5341fe(0x189)]()}:null;}function G(_0x231f8c){const _0x205735=_0x1c0538;var _0x1424b5;return(_0x1424b5=_0x231f8c[_0x205735(0x11e)](t['DocSelectionManagerService'])[_0x205735(0x15e)]())==null?void 0x0:_0x1424b5[0x0];}function me(_0x3f98e0){const _0x144427=_0x1c0538;var _0x1d5e20;let _0x222b1d=(_0x1d5e20=_0x3f98e0[_0x144427(0x11e)](e['IUniverInstanceService'])['getCurrentUnitOfType'](e[_0x144427(0x196)]['UNIVER_DOC']))==null?void 0x0:_0x1d5e20[_0x144427(0x189)]();try{return _0x3f98e0[_0x144427(0x11e)](t[_0x144427(0x12d)])[_0x144427(0x112)](_0x222b1d);}catch{return null;}}function he(_0x50003e){const _0x553c0c=_0x1c0538;var _0x48e082,_0x44634e,_0x552fa5;let _0x161eba=G(_0x50003e);if(!_0x161eba)return null;let _0x50d392=_0x50003e['get'](e[_0x553c0c(0x10b)])[_0x553c0c(0x12c)](e[_0x553c0c(0x196)][_0x553c0c(0x15c)]),_0x23c383=_0x50d392==null?void 0x0:_0x50d392['getBody']();return _0x23c383?(_0x48e082=e['BuildTextUtils'][_0x553c0c(0x15d)][_0x553c0c(0x148)](_0x161eba,(_0x44634e=_0x23c383[_0x553c0c(0x11c)])==null?[]:_0x44634e,(_0x552fa5=_0x23c383[_0x553c0c(0x102)])==null?'':_0x552fa5)[0x0])==null?null:_0x48e082:null;}function ge(_0x3c7ae5,_0x1db199){const _0x195e8f=_0x1c0538;var _0x373acc,_0x3ccf37,_0x4580f0,_0x503fe8,_0x139dc6,_0x3af7ac,_0x53ee24,_0x11e748,_0x406bb2,_0x3485b4,_0x36dedf,_0x16fc11,_0x4cd71c,_0x1e84de,_0xcbfb19,_0x350cec,_0x764828,_0x542f32;let _0x410358=e[_0x195e8f(0xfa)]['getInstance']();return[K(_0x410358,[_0x195e8f(0x11d),_0x195e8f(0x102)],(_0x373acc=_0x3c7ae5['body'])==null?void 0x0:_0x373acc[_0x195e8f(0x102)],(_0x3ccf37=_0x1db199['body'])==null?void 0x0:_0x3ccf37['dataStream']),K(_0x410358,[_0x195e8f(0x11d),_0x195e8f(0x11c)],(_0x4580f0=_0x3c7ae5[_0x195e8f(0x11d)])==null?void 0x0:_0x4580f0[_0x195e8f(0x11c)],(_0x503fe8=_0x1db199[_0x195e8f(0x11d)])==null?void 0x0:_0x503fe8[_0x195e8f(0x11c)]),K(_0x410358,['body','sectionBreaks'],(_0x139dc6=_0x3c7ae5[_0x195e8f(0x11d)])==null?void 0x0:_0x139dc6[_0x195e8f(0x165)],(_0x3af7ac=_0x1db199[_0x195e8f(0x11d)])==null?void 0x0:_0x3af7ac[_0x195e8f(0x165)]),K(_0x410358,[_0x195e8f(0x11d),'textRuns'],(_0x53ee24=_0x3c7ae5[_0x195e8f(0x11d)])==null?void 0x0:_0x53ee24['textRuns'],(_0x11e748=_0x1db199[_0x195e8f(0x11d)])==null?void 0x0:_0x11e748[_0x195e8f(0x174)]),K(_0x410358,[_0x195e8f(0x11d),_0x195e8f(0x184)],(_0x406bb2=_0x3c7ae5[_0x195e8f(0x11d)])==null?void 0x0:_0x406bb2[_0x195e8f(0x184)],(_0x3485b4=_0x1db199[_0x195e8f(0x11d)])==null?void 0x0:_0x3485b4[_0x195e8f(0x184)]),K(_0x410358,[_0x195e8f(0x11d),'customRanges'],(_0x36dedf=_0x3c7ae5[_0x195e8f(0x11d)])==null?void 0x0:_0x36dedf['customRanges'],(_0x16fc11=_0x1db199[_0x195e8f(0x11d)])==null?void 0x0:_0x16fc11[_0x195e8f(0x150)]),K(_0x410358,['body',_0x195e8f(0x16f)],(_0x4cd71c=_0x3c7ae5[_0x195e8f(0x11d)])==null?void 0x0:_0x4cd71c[_0x195e8f(0x16f)],(_0x1e84de=_0x1db199[_0x195e8f(0x11d)])==null?void 0x0:_0x1e84de[_0x195e8f(0x16f)]),K(_0x410358,['body',_0x195e8f(0x191)],(_0xcbfb19=_0x3c7ae5[_0x195e8f(0x11d)])==null?void 0x0:_0xcbfb19[_0x195e8f(0x191)],(_0x350cec=_0x1db199[_0x195e8f(0x11d)])==null?void 0x0:_0x350cec[_0x195e8f(0x191)]),K(_0x410358,[_0x195e8f(0x11d),_0x195e8f(0x121)],(_0x764828=_0x3c7ae5[_0x195e8f(0x11d)])==null?void 0x0:_0x764828['blockRanges'],(_0x542f32=_0x1db199['body'])==null?void 0x0:_0x542f32[_0x195e8f(0x121)])][_0x195e8f(0x163)](Boolean)[_0x195e8f(0x197)]((_0x14c667,_0xb450ad)=>e[_0x195e8f(0xfa)][_0x195e8f(0x18b)](_0x14c667,_0xb450ad),null);}function K(_0x5e2706,_0x377881,_0x5eeef2,_0x44c101){const _0x5d9c52=_0x1c0538;return e[_0x5d9c52(0x15f)][_0x5d9c52(0x192)](_0x5eeef2,_0x44c101)?null:_0x5e2706[_0x5d9c52(0x11f)](_0x377881,_0x5eeef2,_0x44c101);}function q(_0xba4ade,_0x32d64e,_0x2917da,_0x54a5df,_0x4d5fe7){const _0x28a9ee=_0x1c0538;let _0x166c07=ge(_0x2917da,_0x54a5df);return _0x166c07?!!_0xba4ade[_0x28a9ee(0x18a)](t['RichTextEditingMutation']['id'],{'unitId':_0x32d64e,'actions':_0x166c07,'textRanges':[{'startOffset':_0x4d5fe7,'endOffset':_0x4d5fe7,'collapsed':!0x0}],'isEditing':!0x1}):!0x1;}const J=_0x1c0538(0x103);var _e=_0x1c0538(0x199),ve=_0x1c0538(0x124);const Y={};function X(_0x2d050f,_0x5c0dcd){return function(_0x835ccc,_0x15fcc7){_0x5c0dcd(_0x835ccc,_0x15fcc7,_0x2d050f);};}function Z(_0x15262c,_0x3d952a,_0x2d543f,_0x43b16e){const _0x3b9b5a=_0x1c0538;var _0x490cb7=arguments['length'],_0x3ab4b8=_0x490cb7<0x3?_0x3d952a:_0x43b16e===null?_0x43b16e=Object[_0x3b9b5a(0x17c)](_0x3d952a,_0x2d543f):_0x43b16e,_0x36f013;if(typeof Reflect==_0x3b9b5a(0x186)&&typeof Reflect[_0x3b9b5a(0x147)]==_0x3b9b5a(0x154))_0x3ab4b8=Reflect['decorate'](_0x15262c,_0x3d952a,_0x2d543f,_0x43b16e);else{for(var _0x5c05d4=_0x15262c[_0x3b9b5a(0x167)]-0x1;_0x5c05d4>=0x0;_0x5c05d4--)(_0x36f013=_0x15262c[_0x5c05d4])&&(_0x3ab4b8=(_0x490cb7<0x3?_0x36f013(_0x3ab4b8):_0x490cb7>0x3?_0x36f013(_0x3d952a,_0x2d543f,_0x3ab4b8):_0x36f013(_0x3d952a,_0x2d543f))||_0x3ab4b8);}return _0x490cb7>0x3&&_0x3ab4b8&&Object[_0x3b9b5a(0x10e)](_0x3d952a,_0x2d543f,_0x3ab4b8),_0x3ab4b8;}let Q=class extends e['Disposable']{constructor(_0x1e7f9c,_0x402be6){const _0x4f83ef=_0x1c0538;super(),this['_resourceManagerService']=_0x1e7f9c,this[_0x4f83ef(0xfc)]=_0x402be6,this['_initResource']();}['_initResource'](){const _0x4131ac=_0x1c0538;this[_0x4131ac(0x15b)](this['_resourceManagerService'][_0x4131ac(0x188)]({'pluginName':J,'businesses':[e['UniverInstanceType'][_0x4131ac(0x15c)]],'toJson':_0x46a94d=>JSON[_0x4131ac(0x107)](this[_0x4131ac(0xfc)][_0x4131ac(0x110)](_0x46a94d)),'parseJson':_0x421f18=>o(JSON[_0x4131ac(0x114)](_0x421f18)),'onLoad':(_0x451d62,_0x29b4bf)=>this[_0x4131ac(0xfc)]['deserialize'](_0x451d62,_0x29b4bf),'onUnLoad':_0x1897ac=>this[_0x4131ac(0xfc)]['removeUnit'](_0x1897ac)}));}};Q=Z([X(0x0,e[_0x1c0538(0x122)]),X(0x1,(0x0,e[_0x1c0538(0x171)])(L))],Q);let $=class extends e[_0x1c0538(0x170)]{constructor(_0x11a10f=Y,_0x383a22,_0x9c8e4,_0x25b260){const _0x58fe06=_0x1c0538;super(),this[_0x58fe06(0x138)]=_0x11a10f,this[_0x58fe06(0x131)]=_0x383a22,this['_commandService']=_0x9c8e4,this['_configService']=_0x25b260;let {..._0x405005}=(0x0,e['merge'])({},Y,this['_config']);this[_0x58fe06(0x141)][_0x58fe06(0x13b)](_0x58fe06(0x172),_0x405005);}['onStarting'](){const _0xd98f14=_0x1c0538;this[_0xd98f14(0x131)][_0xd98f14(0x105)]([L]),this[_0xd98f14(0x131)][_0xd98f14(0x105)]([Q]),this['_injector'][_0xd98f14(0x11e)](L),this[_0xd98f14(0x131)][_0xd98f14(0x11e)](Q),[B,R,V,H,U,z][_0xd98f14(0x140)](_0x1b84c0=>this[_0xd98f14(0x15b)](this[_0xd98f14(0x195)][_0xd98f14(0x111)](_0x1b84c0)));}};I($,_0x1c0538(0xf7),J),I($,'packageName',_e),I($,_0x1c0538(0x123),ve),I($,_0x1c0538(0x125),e[_0x1c0538(0x196)][_0x1c0538(0x15c)]),$=Z([(0x0,e['DependentOn'])(r[_0x1c0538(0x17e)],t[_0x1c0538(0xf8)]),X(0x1,(0x0,e[_0x1c0538(0x171)])(e['Injector'])),X(0x2,e[_0x1c0538(0xff)]),X(0x3,e[_0x1c0538(0x14b)])],$),exports[_0x1c0538(0xf9)]=i,exports[_0x1c0538(0xfb)]=J,exports['DocsCodeCancelEmptyParagraphCommand']=U,exports[_0x1c0538(0x157)]=z,exports['DocsCodeExitCommand']=H,exports['DocsCodeInsertBelowCommand']=R,exports[_0x1c0538(0x161)]=B,exports[_0x1c0538(0xfe)]=L,exports[_0x1c0538(0x17f)]=V,Object[_0x1c0538(0x10e)](exports,_0x1c0538(0x153),{'enumerable':!0x0,'get':function(){return $;}}),exports[_0x1c0538(0x18e)]=h,exports[_0x1c0538(0x168)]=m,exports['buildInsertCodeActions']=u,exports[_0x1c0538(0x162)]=p,exports[_0x1c0538(0x109)]=_,exports['isCodeBoundaryDelete']=v,exports[_0x1c0538(0x135)]=a;
1
+ const _0x22d1a6=_0x2a4f;(function(_0xf31f36,_0x10e904){const _0x157f18=_0x2a4f,_0x42cf96=_0xf31f36();while(!![]){try{const _0x22cc45=-parseInt(_0x157f18(0x1e6))/0x1+parseInt(_0x157f18(0x1f8))/0x2*(-parseInt(_0x157f18(0x256))/0x3)+parseInt(_0x157f18(0x26a))/0x4*(parseInt(_0x157f18(0x1fe))/0x5)+parseInt(_0x157f18(0x25a))/0x6*(-parseInt(_0x157f18(0x1de))/0x7)+parseInt(_0x157f18(0x1f7))/0x8+parseInt(_0x157f18(0x1f4))/0x9+parseInt(_0x157f18(0x248))/0xa*(-parseInt(_0x157f18(0x229))/0xb);if(_0x22cc45===_0x10e904)break;else _0x42cf96['push'](_0x42cf96['shift']());}catch(_0x480619){_0x42cf96['push'](_0x42cf96['shift']());}}}(_0xa2e2,0x5c38c),Object[_0x22d1a6(0x243)](exports,Symbol['toStringTag'],{'value':_0x22d1a6(0x263)}));let e=require('@univerjs/core'),t=require('@univerjs/docs'),n=require('rxjs'),r=require('@univerjs-pro/license');const i={'language':'javascript','showLineNumbers':!0x1,'tabSize':0x4,'wrap':!0x0};function a(_0x4d9de1){return{...i,..._0x4d9de1};}function o(_0x5c0b4b){const _0x51d550=_0x22d1a6;var _0x3303e4;let _0xfcc37b=(_0x3303e4=_0x5c0b4b==null?void 0x0:_0x5c0b4b[_0x51d550(0x1d6)])==null?{}:_0x3303e4;return{'codes':Object[_0x51d550(0x20a)](Object['entries'](_0xfcc37b)[_0x51d550(0x22b)](([_0xbbeb96,_0x5070de])=>[_0xbbeb96,a(_0x5070de)]))};}function s(_0x58f3ed,_0x286f94,_0x3fbefb){const _0x1e9b8f=_0x22d1a6;let _0x356a9a=o(_0x58f3ed);return _0x356a9a[_0x1e9b8f(0x1d6)][_0x286f94]=a({..._0x356a9a[_0x1e9b8f(0x1d6)][_0x286f94],..._0x3fbefb}),_0x356a9a;}function c(_0x525ea7,_0x3e7e3f){const _0x13330b=_0x22d1a6;let _0x2189b4=o(_0x525ea7);return delete _0x2189b4[_0x13330b(0x1d6)][_0x3e7e3f],_0x2189b4;}const l=_0x22d1a6(0x1c3);function u(_0x18a15c){const _0x51d644=_0x22d1a6;var _0x4adb1b,_0x527dd9,_0x2972a1;let _0x2fdbc0=w(_0x18a15c['documentData']),_0x284793=T(_0x2fdbc0),_0x24d9ad=f(_0x18a15c['startOffset'],_0x18a15c['endOffset']),_0x41ba46=_0x24d9ad?(_0x4adb1b=_0x284793[_0x51d644(0x1f3)])==null?void 0x0:_0x4adb1b['find'](_0x483886=>_0x483886[_0x51d644(0x1be)]===_0x24d9ad[_0x51d644(0x241)]&&_0x483886['endIndex']+0x1===_0x24d9ad[_0x51d644(0x203)]):void 0x0,{startOffset:_0xba6647,endOffset:_0x1a18aa}=_0x41ba46?_0x24d9ad:te(_0x284793,_0x18a15c['startOffset'],_0x18a15c[_0x51d644(0x203)]),_0x12ebd5=ie(_0x284793,_0xba6647,_0x1a18aa),_0x310829=(_0x527dd9=_0x41ba46==null?void 0x0:_0x41ba46[_0x51d644(0x1dc)])==null?_0x18a15c[_0x51d644(0x1dc)]:_0x527dd9,_0x58bd0f=s(_0x18a15c[_0x51d644(0x1fc)],_0x310829,{...i,..._0x18a15c['config']});if(_0x41ba46)return _0x41ba46['blockType']=e[_0x51d644(0x1d9)][_0x51d644(0x231)],d(_0x284793,_0xba6647,_0x1a18aa),x(_0x284793,_0xba6647,_0x1a18aa,_0x12ebd5),O(_0x284793,_0x41ba46),{'nextDocumentData':_0x2fdbc0,'nextMetadata':_0x58bd0f,'cursorOffset':_0xba6647+0x1};if(_0xba6647===_0x1a18aa){var _0x40ab07,_0x52ea22;let _0xa5f624=''+e[_0x51d644(0x1cb)][_0x51d644(0x1e5)]+e[_0x51d644(0x1cb)][_0x51d644(0x1e9)]+e[_0x51d644(0x1cb)][_0x51d644(0x208)];k(_0x284793,_0xba6647,_0xa5f624,{'paragraphs':[{'startIndex':0x1,'paragraphId':(0x0,e[_0x51d644(0x235)])(new Set((_0x40ab07=_0x284793['paragraphs'])==null?void 0x0:_0x40ab07[_0x51d644(0x22b)](_0xa6cf8a=>_0xa6cf8a[_0x51d644(0x24b)]))),'paragraphStyle':b(!0x0,!0x0,_0x12ebd5)}],'blockRanges':[{'blockId':_0x310829,'blockType':e[_0x51d644(0x1d9)][_0x51d644(0x231)],'startIndex':0x0,'endIndex':_0xa5f624[_0x51d644(0x234)]-0x1}]});let _0x4b4213=(_0x52ea22=_0x284793['blockRanges'])==null?void 0x0:_0x52ea22[_0x51d644(0x22f)](_0x1fdd93=>_0x1fdd93['blockId']===_0x310829);return _0x4b4213&&O(_0x284793,_0x4b4213),{'nextDocumentData':_0x2fdbc0,'nextMetadata':_0x58bd0f,'cursorOffset':_0xba6647+0x1};}k(_0x284793,_0x1a18aa,e['DataStreamTreeTokenType']['BLOCK_END']),k(_0x284793,_0xba6647,e['DataStreamTreeTokenType']['BLOCK_START']),x(_0x284793,_0xba6647,_0x1a18aa+0x1,_0x12ebd5);let _0x5ab0ad={'blockId':_0x310829,'blockType':e[_0x51d644(0x1d9)][_0x51d644(0x231)],'startIndex':_0xba6647,'endIndex':_0x1a18aa+0x1};return _0x284793['blockRanges']=[...(_0x2972a1=_0x284793['blockRanges'])==null?[]:_0x2972a1,_0x5ab0ad][_0x51d644(0x242)]((_0x42867,_0x25f7d8)=>_0x42867[_0x51d644(0x1be)]-_0x25f7d8[_0x51d644(0x1be)]),O(_0x284793,_0x5ab0ad),{'nextDocumentData':_0x2fdbc0,'nextMetadata':_0x58bd0f,'cursorOffset':_0xba6647+0x1};}function _0xa2e2(){const _0x5c3df0=['symbol','call','nextMetadata','dispose','customRanges','2274LLeCsS','buildInsertCodeActions','registerCommand','spaceAbove','270456aYVAWY','IUniverInstanceService','_configService','indentStart','deepClone','replaceOp','docs-code.config','IConfigService','DocsCodeExitCommand','Module','UniverLicensePlugin','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','getSnapshot','BuildTextUtils','object','UniverDocsCodePlugin','196QeIjPh','constructor','COMMAND','body','startIndex','next','range','sectionBreaks','decorate','monospace','paragraphs','config','_setResource','model','CommandType','RichTextEditingMutation','spaceBelow','DataStreamTreeTokenType','_config','DocsCodeConsumeBoundaryDeleteCommand','getCodeConfig','Tools','deserialize','textRuns','setCodeConfig','asObservable','DocsCodeModel','DocsCodeInsertBelowCommand','codes','DOCS_CODE_PLUGIN','blockType','DocumentBlockRangeType','slice','DEFAULT_CODE_CONFIG','blockId','Inject','14NaFzNe','onStarting','DocsCodeCancelEmptyParagraphCommand','docs-code.command.exit','Disposable','previousDocumentData','add','BLOCK_START','268921PvEvoV','documentData','customDecorations','PARAGRAPH','left','Injector','0.25.0-insiders.20260613-a210f12','normalizeDocsCodeConfig','dataStream','min','Subject','clear','buildUpdateCodeActions','blockRanges','2841696mhANmO','UniverInstanceType','DocContentInsertService','5051824uZSphF','526NPzLMz','ICommandService','Plugin','indentEnd','metadata','DependentOn','9070uekOwe','parse','docs-code.command.update','iterator','docs-code.command.insert-below','endOffset','setConfig','max','direction','forEach','BLOCK_END','commandService','fromEntries','customBlocks','textStyle','UNIVER_DOC','function','nextDocumentData','disposeWithMe','getInstance','IResourceManagerService','DocSelectionManagerService','cursorOffset','getUnitId','complete','_commandService','docs-code.command.insert','_change$','paragraph','DocsCodeUpdateCommand','generateRandomId','tables','@univerjs-pro/docs-code','endsWith','from','merge','_initResource','getOwnPropertyDescriptor','serialize','get','compose','_injector','every','1529sMbBLg','SECTION_BREAK','map','reduce','type','docs-code.command.consume-boundary-delete','find','string','CODE','Document\x20body\x20is\x20required','buildExitCodeActions','length','createParagraphId','DOC_CODE_PLUGIN','default','_docsCodeModel','paragraphStyle','_resourceManagerService','set','stringify','paragraphStartIndex','indexOf','JSONX','filter','startOffset','sort','defineProperty','isCodeBoundaryDelete','join','syncExecuteCommand','_resources','7190fyetyr','docs-code.command.cancel-empty-paragraph','getCurrentUnitOfType','paragraphId','getParagraphsInRange','buildCancelEmptyCodeParagraphActions','unitId','removeUnit','endIndex'];_0xa2e2=function(){return _0x5c3df0;};return _0xa2e2();}function d(_0x569db4,_0xbd13c0,_0x4341fc){const _0x5bfdd4=_0x22d1a6;var _0x3a3a54;((_0x3a3a54=_0x569db4['paragraphs'])==null?[]:_0x3a3a54)[_0x5bfdd4(0x240)](_0x656ea9=>_0x656ea9['startIndex']>_0xbd13c0&&_0x656ea9[_0x5bfdd4(0x1be)]<_0x4341fc)[_0x5bfdd4(0x207)](_0x5f2f76=>{const _0x554cfc=_0x5bfdd4;var _0x4cd3a8;let _0x4492a8={...(_0x4cd3a8=_0x5f2f76[_0x554cfc(0x239)])==null?{}:_0x4cd3a8};delete _0x4492a8[_0x554cfc(0x259)],delete _0x4492a8[_0x554cfc(0x1ca)],_0x5f2f76[_0x554cfc(0x239)]=_0x4492a8;});}function f(_0x24dbf2,_0x2edc11){const _0x189c2b=_0x22d1a6;return _0x24dbf2==null||_0x2edc11==null||_0x24dbf2===_0x2edc11?null:{'startOffset':Math['min'](_0x24dbf2,_0x2edc11),'endOffset':Math[_0x189c2b(0x205)](_0x24dbf2,_0x2edc11)};}function p(_0x37c57){const _0x3cb836=_0x22d1a6;return{'nextDocumentData':w(_0x37c57[_0x3cb836(0x1e7)]),'nextMetadata':s(_0x37c57[_0x3cb836(0x1fc)],_0x37c57[_0x3cb836(0x1dc)],_0x37c57[_0x3cb836(0x1c5)]),'cursorOffset':0x0};}function m(_0x218f2d){const _0x54122a=_0x22d1a6;var _0x21d594,_0x21113f;let _0x2f5c7a=w(_0x218f2d[_0x54122a(0x1e7)]),_0x50354f=T(_0x2f5c7a),_0x3fe8b2=y(_0x50354f,_0x218f2d['cursorOffset']);if(!_0x3fe8b2)return null;let _0x89be0=C(_0x50354f,_0x3fe8b2),_0x4cebbf=_0x89be0[_0x89be0[_0x54122a(0x234)]-0x1];if(!_0x4cebbf||!ee(_0x50354f,_0x3fe8b2,_0x4cebbf)||_0x218f2d[_0x54122a(0x214)]<_0x4cebbf[_0x54122a(0x1be)])return null;let _0x1cd758=oe(_0x50354f,_0x3fe8b2,_0x4cebbf);if(_0x1cd758>=_0x3fe8b2[_0x54122a(0x250)])return null;_0x50354f[_0x54122a(0x1ee)]=[_0x50354f[_0x54122a(0x1ee)]['slice'](0x0,_0x1cd758),e[_0x54122a(0x1cb)][_0x54122a(0x208)],_0x50354f['dataStream'][_0x54122a(0x1da)](_0x1cd758,_0x3fe8b2[_0x54122a(0x250)]),_0x50354f[_0x54122a(0x1ee)][_0x54122a(0x1da)](_0x3fe8b2[_0x54122a(0x250)]+0x1)][_0x54122a(0x245)](''),P(_0x50354f[_0x54122a(0x1c4)],_0x1cd758,_0x3fe8b2[_0x54122a(0x250)],0x1),P(_0x50354f[_0x54122a(0x1c1)],_0x1cd758,_0x3fe8b2[_0x54122a(0x250)],0x1),P(_0x50354f[_0x54122a(0x20b)],_0x1cd758,_0x3fe8b2[_0x54122a(0x250)],0x1),fe(_0x50354f['textRuns'],_0x1cd758,_0x3fe8b2[_0x54122a(0x250)],0x1),F(_0x50354f[_0x54122a(0x21d)],_0x1cd758,_0x3fe8b2[_0x54122a(0x250)],0x1),F(_0x50354f['customRanges'],_0x1cd758,_0x3fe8b2[_0x54122a(0x250)],0x1),F(_0x50354f[_0x54122a(0x1e8)],_0x1cd758,_0x3fe8b2[_0x54122a(0x250)],0x1),(_0x21d594=_0x50354f['blockRanges'])==null||_0x21d594[_0x54122a(0x207)](_0x4e13a9=>{const _0x1d0eaf=_0x54122a;_0x4e13a9===_0x3fe8b2||_0x4e13a9['blockId']===_0x3fe8b2[_0x1d0eaf(0x1dc)]?_0x4e13a9['endIndex']=_0x1cd758:_0x4e13a9[_0x1d0eaf(0x1be)]>=_0x1cd758&&_0x4e13a9['startIndex']<_0x3fe8b2[_0x1d0eaf(0x250)]&&(_0x4e13a9[_0x1d0eaf(0x1be)]+=0x1,_0x4e13a9[_0x1d0eaf(0x250)]+=0x1);});let _0x3c8f5e=C(_0x50354f,{..._0x3fe8b2,'endIndex':_0x1cd758});_0x3c8f5e['forEach']((_0x5e7137,_0x5600c9)=>{const _0x2a9fed=_0x54122a;var _0xff671b;_0x5e7137[_0x2a9fed(0x239)]={...(_0xff671b=_0x5e7137[_0x2a9fed(0x239)])==null?{}:_0xff671b,...b(_0x5600c9===0x0,_0x5600c9===_0x3c8f5e['length']-0x1)};});let _0x78852a=(_0x21113f=_0x50354f[_0x54122a(0x1c4)])==null?void 0x0:_0x21113f['find'](_0x16e3c1=>_0x16e3c1[_0x54122a(0x1be)]===_0x1cd758+0x1);return _0x78852a&&(_0x78852a[_0x54122a(0x239)]=S(_0x78852a[_0x54122a(0x239)])),{'nextDocumentData':_0x2f5c7a,'cursorOffset':_0x1cd758+0x1};}function h(_0x18293b){const _0x5a2e87=_0x22d1a6;let _0x598dc0=w(_0x18293b['documentData']),_0x125cba=T(_0x598dc0),_0x41d1a7=y(_0x125cba,_0x18293b[_0x5a2e87(0x214)]);return _0x41d1a7&&g(_0x598dc0,_0x125cba,_0x41d1a7,_0x18293b[_0x5a2e87(0x214)],_0x18293b['paragraphStartIndex'])||null;}function g(_0x19a9f0,_0x31ff4a,_0x534a51,_0x474627,_0x2ed869){const _0x4f7fc3=_0x22d1a6;let _0x42fff6=se(_0x31ff4a,_0x534a51,_0x474627,_0x2ed869);if(!_0x42fff6)return null;let _0x39961e=_0x42fff6['endTokenOffset']-0x1;return ce(_0x31ff4a,_0x42fff6[_0x4f7fc3(0x21a)][_0x4f7fc3(0x1be)],_0x42fff6[_0x4f7fc3(0x21a)][_0x4f7fc3(0x1be)]+0x1),{'nextDocumentData':_0x19a9f0,'cursorOffset':_0x39961e};}function _(_0x1c1a60,_0x82bb2d){const _0x3e4428=_0x22d1a6;var _0x57cb70;return _0x1c1a60==null||(_0x57cb70=_0x1c1a60[_0x3e4428(0x1f3)])==null?void 0x0:_0x57cb70[_0x3e4428(0x22f)](_0x418d5c=>_0x418d5c[_0x3e4428(0x1d8)]===e['DocumentBlockRangeType']['CODE']&&_0x418d5c[_0x3e4428(0x1be)]<=_0x82bb2d&&_0x82bb2d<=_0x418d5c[_0x3e4428(0x250)]);}function v(_0xffb6ec){const _0x2d3d07=_0x22d1a6;var _0x35e047;let _0x36a63b=_0xffb6ec[_0x2d3d07(0x1e7)][_0x2d3d07(0x1bd)];if(!_0x36a63b)return!0x1;let _0x5a6a46=_0xffb6ec[_0x2d3d07(0x206)]===_0x2d3d07(0x1ea)?_0xffb6ec[_0x2d3d07(0x214)]-0x1:_0xffb6ec[_0x2d3d07(0x214)],_0x2ca0e8=_0xffb6ec[_0x2d3d07(0x206)]==='right'?_0xffb6ec[_0x2d3d07(0x214)]+0x1:_0x5a6a46;return((_0x35e047=_0x36a63b[_0x2d3d07(0x1f3)])==null?[]:_0x35e047)['some'](_0x16aaf7=>_0x16aaf7['blockType']===e[_0x2d3d07(0x1d9)][_0x2d3d07(0x231)]?_0x5a6a46===_0x16aaf7[_0x2d3d07(0x1be)]||_0x5a6a46===_0x16aaf7[_0x2d3d07(0x250)]||_0x2ca0e8===_0x16aaf7['startIndex']||_0x2ca0e8===_0x16aaf7[_0x2d3d07(0x250)]:!0x1);}function y(_0x5dec8b,_0x555f02){const _0xde6623=_0x22d1a6;var _0x14eea7;return(_0x14eea7=_0x5dec8b[_0xde6623(0x1f3)])==null?void 0x0:_0x14eea7[_0xde6623(0x22f)](_0x5236f0=>{const _0x477a46=_0xde6623;let _0x2d48f6=D(_0x5dec8b,_0x5236f0);return _0x5236f0['blockType']===e['DocumentBlockRangeType'][_0x477a46(0x231)]&&_0x5236f0[_0x477a46(0x1be)]<=_0x555f02&&_0x555f02<=_0x2d48f6+0x2;});}function b(_0x4e1858,_0x330559,_0x9fea9f=!0x1){return{'indentEnd':{'v':0x14},'indentStart':{'v':0x14},..._0x4e1858&&_0x9fea9f?{'spaceAbove':{'v':0x8}}:{},'textStyle':{'ff':l,'fs':0xc}};}function x(_0x44cd86,_0x49480e,_0x5e24f7,_0x57276c=!0x1){const _0x36e535=_0x22d1a6;var _0x4c8135;let _0x3ad480=((_0x4c8135=_0x44cd86[_0x36e535(0x1c4)])==null?[]:_0x4c8135)[_0x36e535(0x240)](_0x528ae3=>_0x528ae3['startIndex']>_0x49480e&&_0x528ae3['startIndex']<_0x5e24f7);_0x3ad480[_0x36e535(0x207)]((_0x4af7c8,_0x4fdd8d)=>{const _0x2ede1b=_0x36e535;var _0x17c931;_0x4af7c8['paragraphStyle']={...(_0x17c931=_0x4af7c8[_0x2ede1b(0x239)])==null?{}:_0x17c931,...b(_0x4fdd8d===0x0,_0x4fdd8d===_0x3ad480[_0x2ede1b(0x234)]-0x1,_0x57276c)};});}function S(_0x1d29e5){const _0x157376=_0x22d1a6;var _0x121008,_0x5d5c21;let _0x1116bf={..._0x1d29e5==null?{}:_0x1d29e5};return delete _0x1116bf[_0x157376(0x1fb)],delete _0x1116bf[_0x157376(0x25d)],delete _0x1116bf[_0x157376(0x259)],delete _0x1116bf[_0x157376(0x1ca)],((_0x121008=_0x1116bf['textStyle'])==null?void 0x0:_0x121008['ff'])===l&&((_0x5d5c21=_0x1116bf[_0x157376(0x20c)])==null?void 0x0:_0x5d5c21['fs'])===0xc&&delete _0x1116bf[_0x157376(0x20c)],_0x1116bf;}function C(_0x490993,_0x398208){const _0x2a08d3=_0x22d1a6;var _0x3b9bf6;let _0x1b4564=D(_0x490993,_0x398208);return((_0x3b9bf6=_0x490993[_0x2a08d3(0x1c4)])==null?[]:_0x3b9bf6)['filter'](_0x20773f=>_0x20773f[_0x2a08d3(0x1be)]>_0x398208[_0x2a08d3(0x1be)]&&_0x20773f[_0x2a08d3(0x1be)]<_0x1b4564);}function ee(_0xc3dd9d,_0x1857e2,_0x5b4c0c){const _0x39d514=_0x22d1a6;let _0x512ce2=oe(_0xc3dd9d,_0x1857e2,_0x5b4c0c),_0x48388c=_0xc3dd9d[_0x39d514(0x1ee)][_0x39d514(0x1da)](_0x512ce2,_0x5b4c0c['startIndex']);return Array[_0x39d514(0x220)](_0x48388c)[_0x39d514(0x228)](_0x33b269=>_0x33b269===e['DataStreamTreeTokenType']['BLOCK_START']||_0x33b269===e[_0x39d514(0x1cb)][_0x39d514(0x208)]);}function w(_0x521a04){const _0x269f26=_0x22d1a6;return e[_0x269f26(0x1cf)][_0x269f26(0x25e)](_0x521a04);}function T(_0x9ada48){const _0x302807=_0x22d1a6;if(!_0x9ada48[_0x302807(0x1bd)])throw Error(_0x302807(0x232));return _0x9ada48[_0x302807(0x1bd)];}function te(_0x1d7daf,_0xe56078,_0x20c0a8){const _0x31b9d8=_0x22d1a6;if(_0xe56078==null||_0x20c0a8==null){let _0x366615=re(_0x1d7daf);return{'startOffset':_0x366615,'endOffset':_0x366615};}let _0x155f4f=Math[_0x31b9d8(0x1ef)](_0xe56078,_0x20c0a8),_0xe1665a=Math[_0x31b9d8(0x205)](_0xe56078,_0x20c0a8);if(_0x155f4f===_0xe1665a){let _0x29d1f0=ne(_0x1d7daf,_0x155f4f);return{'startOffset':_0x29d1f0,'endOffset':_0x29d1f0};}return ae(_0x1d7daf,_0x155f4f,_0xe1665a);}function ne(_0x6a60ff,_0x2d2596){const _0x5864fc=_0x22d1a6;return _0x2d2596===0x0&&_0x6a60ff[_0x5864fc(0x1ee)][0x0]===e['DataStreamTreeTokenType'][_0x5864fc(0x1e9)]?0x1:_0x2d2596;}function re(_0x4b1ec5){const _0x15f1f0=_0x22d1a6;return _0x4b1ec5['dataStream'][_0x15f1f0(0x21f)](e['DataStreamTreeTokenType'][_0x15f1f0(0x22a)])?Math[_0x15f1f0(0x205)](0x0,_0x4b1ec5[_0x15f1f0(0x1ee)][_0x15f1f0(0x234)]-0x1):_0x4b1ec5[_0x15f1f0(0x1ee)]['length'];}function ie(_0x5dd142,_0x2c47b4,_0x61df13){const _0x3ed9bd=_0x22d1a6;var _0x1092ec;let _0x9c444d=Math[_0x3ed9bd(0x1ef)](_0x2c47b4,_0x61df13),_0x4346d0=Math[_0x3ed9bd(0x205)](_0x2c47b4,_0x61df13);return!!((_0x1092ec=_0x5dd142[_0x3ed9bd(0x21d)])!=null&&_0x1092ec['some'](_0x5e716c=>_0x9c444d>_0x5e716c[_0x3ed9bd(0x1be)]&&_0x9c444d<_0x5e716c[_0x3ed9bd(0x250)]||_0x4346d0>_0x5e716c['startIndex']&&_0x4346d0<_0x5e716c[_0x3ed9bd(0x250)]||_0x9c444d<=_0x5e716c[_0x3ed9bd(0x1be)]&&_0x4346d0>=_0x5e716c[_0x3ed9bd(0x250)]));}function ae(_0x204cf2,_0x30a0ca,_0x440d60){const _0x24c8aa=_0x22d1a6;var _0x4937fe,_0x415f9f;let _0x5381a6=[...(_0x4937fe=_0x204cf2['paragraphs'])==null?[]:_0x4937fe][_0x24c8aa(0x242)]((_0x1a10a5,_0x383dc4)=>_0x1a10a5[_0x24c8aa(0x1be)]-_0x383dc4[_0x24c8aa(0x1be)]),_0x33d7c6=_0x5381a6[_0x24c8aa(0x22f)]((_0x3cdb20,_0x28c64e)=>(_0x28c64e===0x0?0x0:_0x5381a6[_0x28c64e-0x1]['startIndex']+0x1)<=_0x30a0ca&&_0x30a0ca<=_0x3cdb20[_0x24c8aa(0x1be)]),_0x3f2dff=(_0x415f9f=_0x5381a6[_0x24c8aa(0x22f)](_0x4c5a4b=>_0x4c5a4b[_0x24c8aa(0x1be)]>=_0x440d60-0x1))==null?_0x5381a6[_0x5381a6[_0x24c8aa(0x234)]-0x1]:_0x415f9f;return{'startOffset':_0x33d7c6?E(_0x5381a6,_0x33d7c6):_0x30a0ca,'endOffset':_0x3f2dff?_0x3f2dff[_0x24c8aa(0x1be)]+0x1:_0x440d60};}function E(_0x2da42b,_0x3de513){const _0x292087=_0x22d1a6;let _0x3cbe46=_0x2da42b[_0x292087(0x23e)](_0x3de513);return _0x3cbe46>0x0?_0x2da42b[_0x3cbe46-0x1][_0x292087(0x1be)]+0x1:0x0;}function oe(_0x18f0fd,_0x5a6ee0,_0x4ddfb2){const _0x18b207=_0x22d1a6;var _0x3e186b;return Math['max'](E((_0x3e186b=_0x18f0fd[_0x18b207(0x1c4)])==null?[]:_0x3e186b,_0x4ddfb2),_0x5a6ee0[_0x18b207(0x1be)]+0x1);}function D(_0x51a084,_0x156fa3){const _0x37ea19=_0x22d1a6;return _0x51a084[_0x37ea19(0x1ee)][_0x156fa3[_0x37ea19(0x250)]]===e[_0x37ea19(0x1cb)][_0x37ea19(0x208)]?_0x156fa3[_0x37ea19(0x250)]:_0x51a084[_0x37ea19(0x1ee)][_0x156fa3[_0x37ea19(0x250)]+0x1]===e[_0x37ea19(0x1cb)][_0x37ea19(0x208)]?_0x156fa3[_0x37ea19(0x250)]+0x1:_0x156fa3[_0x37ea19(0x250)];}function se(_0x2e0aa3,_0x5007bb,_0x596a02,_0x151fa4){const _0x5b39c2=_0x22d1a6;var _0x3f474e,_0x590817;let _0x3ff6aa=D(_0x2e0aa3,_0x5007bb),_0x3d4adc=((_0x3f474e=_0x2e0aa3[_0x5b39c2(0x1c4)])==null?[]:_0x3f474e)[_0x5b39c2(0x22f)](_0xad1f1f=>_0xad1f1f[_0x5b39c2(0x1be)]===_0x3ff6aa+0x1);if(!_0x3d4adc||_0x151fa4!=null&&_0x3d4adc[_0x5b39c2(0x1be)]!==_0x151fa4||_0x596a02<_0x3ff6aa||_0x596a02>_0x3d4adc[_0x5b39c2(0x1be)]+0x1||_0x2e0aa3['dataStream'][_0x3d4adc['startIndex']]!==e['DataStreamTreeTokenType'][_0x5b39c2(0x1e9)])return null;let _0x53f45c=E((_0x590817=_0x2e0aa3[_0x5b39c2(0x1c4)])==null?[]:_0x590817,_0x3d4adc),_0x2e9cdc=_0x2e0aa3[_0x5b39c2(0x1ee)][_0x5b39c2(0x1da)](_0x53f45c,_0x3d4adc[_0x5b39c2(0x1be)]);return Array[_0x5b39c2(0x220)](_0x2e9cdc)[_0x5b39c2(0x228)](_0x2a61db=>_0x2a61db===e['DataStreamTreeTokenType'][_0x5b39c2(0x208)])?{'paragraph':_0x3d4adc,'endTokenOffset':_0x3ff6aa}:null;}function O(_0x105555,_0x556b4d){const _0x5bf01c=_0x22d1a6;var _0x11c403;let _0x470573=D(_0x105555,_0x556b4d),_0x2a1bb2=_0x105555[_0x5bf01c(0x1ee)][_0x470573+0x1];_0x2a1bb2!==e[_0x5bf01c(0x1cb)]['SECTION_BREAK']&&_0x2a1bb2!==void 0x0||k(_0x105555,_0x470573+0x1,e[_0x5bf01c(0x1cb)][_0x5bf01c(0x1e9)],{'paragraphs':[{'startIndex':0x0,'paragraphId':(0x0,e[_0x5bf01c(0x235)])(new Set((_0x11c403=_0x105555[_0x5bf01c(0x1c4)])==null?void 0x0:_0x11c403[_0x5bf01c(0x22b)](_0x359aa5=>_0x359aa5['paragraphId'])))}]});}function k(_0x51b2b8,_0x3d6821,_0x1b61f2,_0x57d3ed={}){const _0x459834=_0x22d1a6;var _0x513231,_0x20c781;if(_0x1b61f2){if(_0x51b2b8[_0x459834(0x1ee)]=''+_0x51b2b8[_0x459834(0x1ee)][_0x459834(0x1da)](0x0,_0x3d6821)+_0x1b61f2+_0x51b2b8['dataStream']['slice'](_0x3d6821),le(_0x51b2b8,_0x3d6821,_0x1b61f2[_0x459834(0x234)]),(_0x513231=_0x57d3ed['paragraphs'])!=null&&_0x513231[_0x459834(0x234)]){var _0x5636dd;_0x51b2b8[_0x459834(0x1c4)]=[...(_0x5636dd=_0x51b2b8[_0x459834(0x1c4)])==null?[]:_0x5636dd,..._0x57d3ed[_0x459834(0x1c4)][_0x459834(0x22b)](_0x4e437b=>({..._0x4e437b,'startIndex':_0x4e437b['startIndex']+_0x3d6821}))][_0x459834(0x242)]((_0x38f03c,_0x10fbef)=>_0x38f03c[_0x459834(0x1be)]-_0x10fbef[_0x459834(0x1be)]);}if((_0x20c781=_0x57d3ed[_0x459834(0x1f3)])!=null&&_0x20c781[_0x459834(0x234)]){var _0x599944;_0x51b2b8[_0x459834(0x1f3)]=[...(_0x599944=_0x51b2b8[_0x459834(0x1f3)])==null?[]:_0x599944,..._0x57d3ed[_0x459834(0x1f3)][_0x459834(0x22b)](_0x587913=>({..._0x587913,'startIndex':_0x587913['startIndex']+_0x3d6821,'endIndex':_0x587913[_0x459834(0x250)]+_0x3d6821}))][_0x459834(0x242)]((_0x373418,_0x3253f3)=>_0x373418['startIndex']-_0x3253f3[_0x459834(0x1be)]);}}}function _0x2a4f(_0xada792,_0x50cfa6){_0xada792=_0xada792-0x1bd;const _0xa2e2cb=_0xa2e2();let _0x2a4fde=_0xa2e2cb[_0xada792];return _0x2a4fde;}function ce(_0x409e4f,_0x27f70d,_0x5e92fb){const _0x22718c=_0x22d1a6;let _0x1104fd=_0x5e92fb-_0x27f70d;_0x409e4f[_0x22718c(0x1ee)]=''+_0x409e4f[_0x22718c(0x1ee)][_0x22718c(0x1da)](0x0,_0x27f70d)+_0x409e4f['dataStream']['slice'](_0x5e92fb),ue(_0x409e4f,_0x27f70d,_0x1104fd);}function le(_0x5fcbe1,_0x5a4f30,_0x15190e){const _0x1266d1=_0x22d1a6;_0x5fcbe1[_0x1266d1(0x1c4)]=A(_0x5fcbe1[_0x1266d1(0x1c4)],_0x5a4f30,_0x15190e),_0x5fcbe1[_0x1266d1(0x1c1)]=A(_0x5fcbe1[_0x1266d1(0x1c1)],_0x5a4f30,_0x15190e),_0x5fcbe1[_0x1266d1(0x20b)]=A(_0x5fcbe1['customBlocks'],_0x5a4f30,_0x15190e),_0x5fcbe1[_0x1266d1(0x1d1)]=de(_0x5fcbe1[_0x1266d1(0x1d1)],_0x5a4f30,_0x15190e),_0x5fcbe1[_0x1266d1(0x21d)]=M(_0x5fcbe1['tables'],_0x5a4f30,_0x15190e),_0x5fcbe1['customRanges']=M(_0x5fcbe1[_0x1266d1(0x255)],_0x5a4f30,_0x15190e),_0x5fcbe1['customDecorations']=M(_0x5fcbe1[_0x1266d1(0x1e8)],_0x5a4f30,_0x15190e),_0x5fcbe1[_0x1266d1(0x1f3)]=M(_0x5fcbe1[_0x1266d1(0x1f3)],_0x5a4f30,_0x15190e);}function ue(_0x1f4477,_0x391d25,_0x49c9dc){const _0x33fc8e=_0x22d1a6;var _0x5f2d65,_0x33cec3;_0x1f4477['paragraphs']=j(_0x1f4477[_0x33fc8e(0x1c4)],_0x391d25,_0x49c9dc),_0x1f4477[_0x33fc8e(0x1c1)]=j(_0x1f4477[_0x33fc8e(0x1c1)],_0x391d25,_0x49c9dc),_0x1f4477[_0x33fc8e(0x20b)]=j(_0x1f4477['customBlocks'],_0x391d25,_0x49c9dc),_0x1f4477[_0x33fc8e(0x1d1)]=(_0x5f2d65=N((_0x33cec3=_0x1f4477[_0x33fc8e(0x1d1)])==null?void 0x0:_0x33cec3[_0x33fc8e(0x22b)](_0x18286e=>({..._0x18286e,'startIndex':_0x18286e['st'],'endIndex':_0x18286e['ed']})),_0x391d25,_0x49c9dc))==null?void 0x0:_0x5f2d65[_0x33fc8e(0x22b)](_0x3e416f=>{let {startIndex:_0x4ca4d8,endIndex:_0x4cb3f6,..._0x4d50bc}=_0x3e416f;return{..._0x4d50bc,'st':_0x4ca4d8,'ed':_0x4cb3f6};}),_0x1f4477[_0x33fc8e(0x21d)]=N(_0x1f4477[_0x33fc8e(0x21d)],_0x391d25,_0x49c9dc),_0x1f4477[_0x33fc8e(0x255)]=N(_0x1f4477[_0x33fc8e(0x255)],_0x391d25,_0x49c9dc),_0x1f4477[_0x33fc8e(0x1e8)]=N(_0x1f4477[_0x33fc8e(0x1e8)],_0x391d25,_0x49c9dc),_0x1f4477[_0x33fc8e(0x1f3)]=N(_0x1f4477[_0x33fc8e(0x1f3)],_0x391d25,_0x49c9dc);}function A(_0x5b8b44,_0x3f5dc7,_0x1f55a5){const _0x1498b4=_0x22d1a6;return _0x5b8b44==null?void 0x0:_0x5b8b44[_0x1498b4(0x22b)](_0x554b7d=>_0x554b7d['startIndex']>=_0x3f5dc7?{..._0x554b7d,'startIndex':_0x554b7d['startIndex']+_0x1f55a5}:_0x554b7d);}function j(_0x5049cf,_0xccfd3a,_0x44dcfd){const _0x545ac4=_0x22d1a6;let _0x266cf6=_0xccfd3a+_0x44dcfd;return _0x5049cf==null?void 0x0:_0x5049cf[_0x545ac4(0x22b)](_0x42844a=>_0x42844a[_0x545ac4(0x1be)]>=_0xccfd3a&&_0x42844a['startIndex']<_0x266cf6?null:_0x42844a[_0x545ac4(0x1be)]>=_0x266cf6?{..._0x42844a,'startIndex':_0x42844a[_0x545ac4(0x1be)]-_0x44dcfd}:_0x42844a)[_0x545ac4(0x240)](_0x22e598=>_0x22e598!=null);}function de(_0x289182,_0x302f2f,_0x4edc94){const _0x369c79=_0x22d1a6;return _0x289182==null?void 0x0:_0x289182[_0x369c79(0x22b)](_0x46e88a=>_0x46e88a['st']>=_0x302f2f?{..._0x46e88a,'st':_0x46e88a['st']+_0x4edc94,'ed':_0x46e88a['ed']+_0x4edc94}:_0x46e88a['ed']>_0x302f2f?{..._0x46e88a,'ed':_0x46e88a['ed']+_0x4edc94}:_0x46e88a);}function M(_0x1dbdda,_0x405a49,_0x4d115c){const _0x586089=_0x22d1a6;return _0x1dbdda==null?void 0x0:_0x1dbdda[_0x586089(0x22b)](_0x16193f=>_0x16193f['startIndex']>=_0x405a49?{..._0x16193f,'startIndex':_0x16193f[_0x586089(0x1be)]+_0x4d115c,'endIndex':_0x16193f[_0x586089(0x250)]+_0x4d115c}:_0x16193f['endIndex']>=_0x405a49?{..._0x16193f,'endIndex':_0x16193f[_0x586089(0x250)]+_0x4d115c}:_0x16193f);}function N(_0x46fec1,_0x2afa4e,_0x3f64e6){const _0x242f8b=_0x22d1a6;let _0xe7f40f=_0x2afa4e+_0x3f64e6;return _0x46fec1==null?void 0x0:_0x46fec1[_0x242f8b(0x22b)](_0x7d77f3=>_0x7d77f3[_0x242f8b(0x1be)]>=_0x2afa4e&&_0x7d77f3['endIndex']<_0xe7f40f?null:_0x7d77f3[_0x242f8b(0x1be)]>=_0xe7f40f?{..._0x7d77f3,'startIndex':_0x7d77f3[_0x242f8b(0x1be)]-_0x3f64e6,'endIndex':_0x7d77f3[_0x242f8b(0x250)]-_0x3f64e6}:_0x7d77f3[_0x242f8b(0x250)]>=_0x2afa4e?{..._0x7d77f3,'startIndex':_0x7d77f3[_0x242f8b(0x1be)]<_0x2afa4e?_0x7d77f3[_0x242f8b(0x1be)]:_0x2afa4e,'endIndex':Math[_0x242f8b(0x205)](_0x2afa4e,_0x7d77f3['endIndex']-_0x3f64e6)}:_0x7d77f3)[_0x242f8b(0x240)](_0x316ad8=>_0x316ad8!=null);}function P(_0x14108e,_0x21bbad,_0x232bc8,_0x3b94b7){const _0x182aa0=_0x22d1a6;_0x14108e==null||_0x14108e[_0x182aa0(0x207)](_0x963756=>{const _0x3bcaa5=_0x182aa0;_0x963756['startIndex']>=_0x21bbad&&_0x963756[_0x3bcaa5(0x1be)]<_0x232bc8&&(_0x963756[_0x3bcaa5(0x1be)]+=_0x3b94b7);});}function fe(_0x4d2b4f,_0x1cbf16,_0x88470,_0x2b53de){const _0x1b1a8d=_0x22d1a6;_0x4d2b4f==null||_0x4d2b4f[_0x1b1a8d(0x207)](_0x550922=>{_0x550922['st']>=_0x1cbf16&&_0x550922['st']<_0x88470?(_0x550922['st']+=_0x2b53de,_0x550922['ed']+=_0x2b53de):_0x550922['ed']>_0x1cbf16&&_0x550922['ed']<_0x88470&&(_0x550922['ed']+=_0x2b53de);});}function F(_0xafaa21,_0x59186f,_0x3c57d4,_0x2312fd){const _0xa38cf0=_0x22d1a6;_0xafaa21==null||_0xafaa21[_0xa38cf0(0x207)](_0x1c66d4=>{const _0x562cdb=_0xa38cf0;_0x1c66d4[_0x562cdb(0x1be)]>=_0x59186f&&_0x1c66d4[_0x562cdb(0x1be)]<_0x3c57d4?(_0x1c66d4['startIndex']+=_0x2312fd,_0x1c66d4[_0x562cdb(0x250)]+=_0x2312fd):_0x1c66d4[_0x562cdb(0x250)]>_0x59186f&&_0x1c66d4['endIndex']<_0x3c57d4&&(_0x1c66d4[_0x562cdb(0x250)]+=_0x2312fd);});}function I(_0x5ebcf5){'@babel/helpers - typeof';const _0x214e4e=_0x22d1a6;return I=typeof Symbol=='function'&&typeof Symbol[_0x214e4e(0x201)]=='symbol'?function(_0x57155d){return typeof _0x57155d;}:function(_0x5a2586){const _0x193670=_0x214e4e;return _0x5a2586&&typeof Symbol=='function'&&_0x5a2586[_0x193670(0x26b)]===Symbol&&_0x5a2586!==Symbol['prototype']?_0x193670(0x251):typeof _0x5a2586;},I(_0x5ebcf5);}function pe(_0x2029ae,_0x33407c){const _0x179f55=_0x22d1a6;if(I(_0x2029ae)!='object'||!_0x2029ae)return _0x2029ae;var _0x1adc64=_0x2029ae[Symbol['toPrimitive']];if(_0x1adc64!==void 0x0){var _0x15b837=_0x1adc64[_0x179f55(0x252)](_0x2029ae,_0x33407c||_0x179f55(0x237));if(I(_0x15b837)!=_0x179f55(0x268))return _0x15b837;throw TypeError(_0x179f55(0x265));}return(_0x33407c===_0x179f55(0x230)?String:Number)(_0x2029ae);}function me(_0x49f236){var _0x24e7d2=pe(_0x49f236,'string');return I(_0x24e7d2)=='symbol'?_0x24e7d2:_0x24e7d2+'';}function L(_0x2f8563,_0x484c05,_0x1877b3){const _0x256ae2=_0x22d1a6;return(_0x484c05=me(_0x484c05))in _0x2f8563?Object[_0x256ae2(0x243)](_0x2f8563,_0x484c05,{'value':_0x1877b3,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x2f8563[_0x484c05]=_0x1877b3,_0x2f8563;}var R=class extends e[_0x22d1a6(0x1e2)]{constructor(..._0x1b3ddc){const _0x4b9349=_0x22d1a6;super(..._0x1b3ddc),L(this,_0x4b9349(0x247),new Map()),L(this,_0x4b9349(0x219),new n[(_0x4b9349(0x1f0))]()),L(this,'change$',this[_0x4b9349(0x219)][_0x4b9349(0x1d3)]());}[_0x22d1a6(0x1ce)](_0x3309cf,_0x29571b){const _0x56e8d6=_0x22d1a6;return o(this[_0x56e8d6(0x247)]['get'](_0x3309cf))['codes'][_0x29571b];}[_0x22d1a6(0x1d2)](_0x2d1646,_0x9d230d,_0x364925){const _0x3a9e7e=_0x22d1a6;this[_0x3a9e7e(0x1c6)](_0x2d1646,_0x9d230d,s(this[_0x3a9e7e(0x247)][_0x3a9e7e(0x225)](_0x2d1646),_0x9d230d,_0x364925));}['removeCode'](_0x241122,_0x4f409e){const _0x5b461a=_0x22d1a6;this[_0x5b461a(0x1c6)](_0x241122,_0x4f409e,c(this['_resources'][_0x5b461a(0x225)](_0x241122),_0x4f409e));}[_0x22d1a6(0x224)](_0x2eb119){const _0x3bad36=_0x22d1a6;return o(this[_0x3bad36(0x247)]['get'](_0x2eb119));}[_0x22d1a6(0x1d0)](_0x1308f9,_0x3bf227){const _0x3c461a=_0x22d1a6;this[_0x3c461a(0x247)][_0x3c461a(0x23b)](_0x1308f9,o(_0x3bf227)),this['_change$'][_0x3c461a(0x1bf)]({'unitId':_0x1308f9});}[_0x22d1a6(0x24f)](_0x4db416){const _0x3f725e=_0x22d1a6;this[_0x3f725e(0x247)]['delete'](_0x4db416),this['_change$']['next']({'unitId':_0x4db416});}[_0x22d1a6(0x254)](){const _0x130e3d=_0x22d1a6;super['dispose'](),this[_0x130e3d(0x247)][_0x130e3d(0x1f1)](),this['_change$'][_0x130e3d(0x216)]();}[_0x22d1a6(0x1c6)](_0x20905e,_0x5a9928,_0x3a2727){const _0x16db14=_0x22d1a6;this['_resources']['set'](_0x20905e,_0x3a2727),this['_change$'][_0x16db14(0x1bf)]({'unitId':_0x20905e,'blockId':_0x5a9928});}};const z={'id':_0x22d1a6(0x202),'type':e['CommandType']['COMMAND'],'handler':_0x4261b0=>{const _0x5add31=_0x22d1a6;let _0x2fa560=he(_0x4261b0);if(_0x2fa560)return _0x4261b0[_0x5add31(0x225)](e[_0x5add31(0x1f9)])[_0x5add31(0x246)](V['id'],{'startOffset':_0x2fa560[_0x5add31(0x241)],'endOffset':_0x2fa560[_0x5add31(0x203)],'unitId':_0x2fa560[_0x5add31(0x24e)]});let _0x15dc1d=ge(_0x4261b0);if(!_0x15dc1d)return!0x1;let _0x4e76a0=_0x15dc1d[_0x5add31(0x1be)]+0x1;return _0x4261b0[_0x5add31(0x225)](e[_0x5add31(0x1f9)])[_0x5add31(0x246)](V['id'],{'startOffset':_0x4e76a0,'endOffset':_0x4e76a0});}},B={'id':_0x22d1a6(0x22e),'type':e[_0x22d1a6(0x1c8)]['COMMAND'],'handler':()=>!0x0},V={'id':_0x22d1a6(0x218),'type':e[_0x22d1a6(0x1c8)][_0x22d1a6(0x26c)],'handler':(_0x327d8f,_0x639c16)=>{const _0x34d768=_0x22d1a6;var _0x4069e1,_0xca9a93,_0x4af026;let _0x5b0108=G(_0x327d8f,_0x639c16==null?void 0x0:_0x639c16['unitId']);if(!_0x5b0108)return!0x1;let _0x3e7651=K(_0x327d8f),_0x5c4dd0=u({'blockId':(_0x4069e1=_0x639c16==null?void 0x0:_0x639c16[_0x34d768(0x1dc)])==null?(0x0,e[_0x34d768(0x21c)])(0x6):_0x4069e1,'config':_0x639c16==null?void 0x0:_0x639c16[_0x34d768(0x1c5)],'documentData':_0x5b0108[_0x34d768(0x1e3)],'endOffset':(_0xca9a93=_0x639c16==null?void 0x0:_0x639c16[_0x34d768(0x203)])==null?_0x3e7651==null?void 0x0:_0x3e7651[_0x34d768(0x203)]:_0xca9a93,'metadata':_0x5b0108['model']['serialize'](_0x5b0108[_0x34d768(0x24e)]),'startOffset':(_0x4af026=_0x639c16==null?void 0x0:_0x639c16[_0x34d768(0x241)])==null?_0x3e7651==null?void 0x0:_0x3e7651['startOffset']:_0x4af026}),_0x44091b=J(_0x5b0108['commandService'],_0x5b0108[_0x34d768(0x24e)],_0x5b0108[_0x34d768(0x1e3)],_0x5c4dd0[_0x34d768(0x20f)],_0x5c4dd0['cursorOffset']);return _0x44091b&&_0x5c4dd0[_0x34d768(0x253)]&&_0x5b0108[_0x34d768(0x1c7)][_0x34d768(0x1d0)](_0x5b0108['unitId'],_0x5c4dd0[_0x34d768(0x253)]),_0x44091b;}},H={'id':_0x22d1a6(0x200),'type':e[_0x22d1a6(0x1c8)][_0x22d1a6(0x26c)],'handler':(_0x33d84b,_0x2262cc)=>{const _0x319595=_0x22d1a6;if(!_0x2262cc)return!0x1;let _0x30598d=G(_0x33d84b,_0x2262cc[_0x319595(0x24e)]);if(!_0x30598d)return!0x1;let _0x3f314d=p({'blockId':_0x2262cc[_0x319595(0x1dc)],'config':_0x2262cc[_0x319595(0x1c5)],'documentData':_0x30598d[_0x319595(0x1e3)],'metadata':_0x30598d[_0x319595(0x1c7)][_0x319595(0x224)](_0x30598d['unitId'])});return _0x3f314d[_0x319595(0x253)]&&_0x30598d[_0x319595(0x1c7)]['deserialize'](_0x30598d[_0x319595(0x24e)],_0x3f314d[_0x319595(0x253)]),!0x0;}},U={'id':_0x22d1a6(0x1e1),'type':e[_0x22d1a6(0x1c8)][_0x22d1a6(0x26c)],'handler':(_0x2623ff,_0x33cbb7)=>{const _0x28bff1=_0x22d1a6;var _0x1f3d7c,_0x5108e7;let _0xb73849=G(_0x2623ff,_0x33cbb7==null?void 0x0:_0x33cbb7['unitId']);if(!_0xb73849)return!0x1;let _0x172010=(_0x1f3d7c=_0x33cbb7==null?void 0x0:_0x33cbb7[_0x28bff1(0x214)])==null?(_0x5108e7=K(_0x2623ff))==null?void 0x0:_0x5108e7[_0x28bff1(0x241)]:_0x1f3d7c;if(_0x172010==null)return!0x1;let _0x19b7e7=m({'cursorOffset':_0x172010,'documentData':_0xb73849[_0x28bff1(0x1e3)]});return _0x19b7e7?J(_0xb73849[_0x28bff1(0x209)],_0xb73849[_0x28bff1(0x24e)],_0xb73849[_0x28bff1(0x1e3)],_0x19b7e7[_0x28bff1(0x20f)],_0x19b7e7[_0x28bff1(0x214)]):!0x1;}},W={'id':_0x22d1a6(0x249),'type':e['CommandType'][_0x22d1a6(0x26c)],'handler':(_0x4fa9a6,_0x458b0b)=>{const _0x22e80f=_0x22d1a6;var _0x73f8aa,_0x522598;let _0x2ed508=G(_0x4fa9a6,_0x458b0b==null?void 0x0:_0x458b0b['unitId']);if(!_0x2ed508)return!0x1;let _0xd99c75=(_0x73f8aa=_0x458b0b==null?void 0x0:_0x458b0b[_0x22e80f(0x214)])==null?(_0x522598=K(_0x4fa9a6))==null?void 0x0:_0x522598[_0x22e80f(0x241)]:_0x73f8aa;if(_0xd99c75==null)return!0x1;let _0x2c27db=h({'cursorOffset':_0xd99c75,'documentData':_0x2ed508['previousDocumentData'],'paragraphStartIndex':_0x458b0b==null?void 0x0:_0x458b0b[_0x22e80f(0x23d)]});return _0x2c27db?J(_0x2ed508[_0x22e80f(0x209)],_0x2ed508['unitId'],_0x2ed508[_0x22e80f(0x1e3)],_0x2c27db[_0x22e80f(0x20f)],_0x2c27db[_0x22e80f(0x214)]):!0x1;}};function G(_0x5ad48d,_0x5ce5a2){const _0x170fd3=_0x22d1a6;let _0x2a8599=_0x5ad48d['get'](e[_0x170fd3(0x25b)]),_0x57e92c=_0x5ce5a2?_0x2a8599['getUniverDocInstance'](_0x5ce5a2):_0x2a8599['getCurrentUnitOfType'](e[_0x170fd3(0x1f5)]['UNIVER_DOC']);return _0x57e92c?{'commandService':_0x5ad48d[_0x170fd3(0x225)](e[_0x170fd3(0x1f9)]),'model':_0x5ad48d[_0x170fd3(0x225)](R),'previousDocumentData':_0x57e92c[_0x170fd3(0x266)](),'unitId':_0x57e92c[_0x170fd3(0x215)]()}:null;}function K(_0x43e1b7){const _0xe03a98=_0x22d1a6;var _0x2ef603;return(_0x2ef603=_0x43e1b7[_0xe03a98(0x225)](t[_0xe03a98(0x213)])['getTextRanges']())==null?void 0x0:_0x2ef603[0x0];}function he(_0x47193e){const _0x4751e4=_0x22d1a6;var _0x545d4b;let _0x5f06d9=(_0x545d4b=_0x47193e[_0x4751e4(0x225)](e['IUniverInstanceService'])[_0x4751e4(0x24a)](e[_0x4751e4(0x1f5)]['UNIVER_DOC']))==null?void 0x0:_0x545d4b[_0x4751e4(0x215)]();try{return _0x47193e[_0x4751e4(0x225)](t[_0x4751e4(0x1f6)])['consumeInsertRange'](_0x5f06d9);}catch{return null;}}function ge(_0x32e1ed){const _0x45324c=_0x22d1a6;var _0x386154,_0xaa74b4,_0x4164c;let _0x21e32b=K(_0x32e1ed);if(!_0x21e32b)return null;let _0xaf3e23=_0x32e1ed[_0x45324c(0x225)](e[_0x45324c(0x25b)])[_0x45324c(0x24a)](e[_0x45324c(0x1f5)][_0x45324c(0x20d)]),_0x4f544b=_0xaf3e23==null?void 0x0:_0xaf3e23['getBody']();return _0x4f544b?(_0x386154=e[_0x45324c(0x267)][_0x45324c(0x1c0)][_0x45324c(0x24c)](_0x21e32b,(_0xaa74b4=_0x4f544b[_0x45324c(0x1c4)])==null?[]:_0xaa74b4,(_0x4164c=_0x4f544b[_0x45324c(0x1ee)])==null?'':_0x4164c)[0x0])==null?null:_0x386154:null;}function _e(_0x59c0df,_0x583675){const _0x2fe2dc=_0x22d1a6;var _0x3dd193,_0x4358db,_0x3e17be,_0x553f49,_0x242bee,_0x12b148,_0x29e7b1,_0x4486b9,_0x2c6579,_0x32492a,_0x4ba8dd,_0x527081,_0x36bedb,_0x339a20,_0x45450c,_0x517c82,_0x33023b,_0x5abd7c;let _0x3a2ae3=e[_0x2fe2dc(0x23f)][_0x2fe2dc(0x211)]();return[q(_0x3a2ae3,['body',_0x2fe2dc(0x1ee)],(_0x3dd193=_0x59c0df[_0x2fe2dc(0x1bd)])==null?void 0x0:_0x3dd193[_0x2fe2dc(0x1ee)],(_0x4358db=_0x583675[_0x2fe2dc(0x1bd)])==null?void 0x0:_0x4358db[_0x2fe2dc(0x1ee)]),q(_0x3a2ae3,[_0x2fe2dc(0x1bd),_0x2fe2dc(0x1c4)],(_0x3e17be=_0x59c0df['body'])==null?void 0x0:_0x3e17be[_0x2fe2dc(0x1c4)],(_0x553f49=_0x583675[_0x2fe2dc(0x1bd)])==null?void 0x0:_0x553f49[_0x2fe2dc(0x1c4)]),q(_0x3a2ae3,[_0x2fe2dc(0x1bd),_0x2fe2dc(0x1c1)],(_0x242bee=_0x59c0df[_0x2fe2dc(0x1bd)])==null?void 0x0:_0x242bee['sectionBreaks'],(_0x12b148=_0x583675[_0x2fe2dc(0x1bd)])==null?void 0x0:_0x12b148[_0x2fe2dc(0x1c1)]),q(_0x3a2ae3,['body',_0x2fe2dc(0x1d1)],(_0x29e7b1=_0x59c0df[_0x2fe2dc(0x1bd)])==null?void 0x0:_0x29e7b1['textRuns'],(_0x4486b9=_0x583675[_0x2fe2dc(0x1bd)])==null?void 0x0:_0x4486b9[_0x2fe2dc(0x1d1)]),q(_0x3a2ae3,[_0x2fe2dc(0x1bd),_0x2fe2dc(0x20b)],(_0x2c6579=_0x59c0df[_0x2fe2dc(0x1bd)])==null?void 0x0:_0x2c6579['customBlocks'],(_0x32492a=_0x583675['body'])==null?void 0x0:_0x32492a[_0x2fe2dc(0x20b)]),q(_0x3a2ae3,['body',_0x2fe2dc(0x255)],(_0x4ba8dd=_0x59c0df['body'])==null?void 0x0:_0x4ba8dd[_0x2fe2dc(0x255)],(_0x527081=_0x583675['body'])==null?void 0x0:_0x527081['customRanges']),q(_0x3a2ae3,[_0x2fe2dc(0x1bd),'customDecorations'],(_0x36bedb=_0x59c0df[_0x2fe2dc(0x1bd)])==null?void 0x0:_0x36bedb[_0x2fe2dc(0x1e8)],(_0x339a20=_0x583675[_0x2fe2dc(0x1bd)])==null?void 0x0:_0x339a20[_0x2fe2dc(0x1e8)]),q(_0x3a2ae3,[_0x2fe2dc(0x1bd),'tables'],(_0x45450c=_0x59c0df[_0x2fe2dc(0x1bd)])==null?void 0x0:_0x45450c[_0x2fe2dc(0x21d)],(_0x517c82=_0x583675[_0x2fe2dc(0x1bd)])==null?void 0x0:_0x517c82[_0x2fe2dc(0x21d)]),q(_0x3a2ae3,[_0x2fe2dc(0x1bd),'blockRanges'],(_0x33023b=_0x59c0df[_0x2fe2dc(0x1bd)])==null?void 0x0:_0x33023b[_0x2fe2dc(0x1f3)],(_0x5abd7c=_0x583675[_0x2fe2dc(0x1bd)])==null?void 0x0:_0x5abd7c[_0x2fe2dc(0x1f3)])][_0x2fe2dc(0x240)](Boolean)[_0x2fe2dc(0x22c)]((_0x23dc1f,_0x102106)=>e[_0x2fe2dc(0x23f)][_0x2fe2dc(0x226)](_0x23dc1f,_0x102106),null);}function q(_0x917d1d,_0x285ef2,_0x2840e6,_0x3b3e42){const _0x53d6e3=_0x22d1a6;return e[_0x53d6e3(0x1cf)]['diffValue'](_0x2840e6,_0x3b3e42)?null:_0x917d1d[_0x53d6e3(0x25f)](_0x285ef2,_0x2840e6,_0x3b3e42);}function J(_0x5e6682,_0x52498f,_0x5b8e85,_0x62a398,_0x57108f){const _0x497f27=_0x22d1a6;let _0x320080=_e(_0x5b8e85,_0x62a398);return _0x320080?!!_0x5e6682[_0x497f27(0x246)](t[_0x497f27(0x1c9)]['id'],{'unitId':_0x52498f,'actions':_0x320080,'textRanges':[{'startOffset':_0x57108f,'endOffset':_0x57108f,'collapsed':!0x0}],'isEditing':!0x1}):!0x1;}const Y=_0x22d1a6(0x236);var ve=_0x22d1a6(0x21e),ye=_0x22d1a6(0x1ec);const X={};function Z(_0x495098,_0x4b759c){return function(_0x37b57e,_0x1b8cb1){_0x4b759c(_0x37b57e,_0x1b8cb1,_0x495098);};}function be(_0x323fa5,_0x9273e9,_0x1b99a1,_0x534b20){const _0x58d84d=_0x22d1a6;var _0x3bfdf2=arguments['length'],_0xabed65=_0x3bfdf2<0x3?_0x9273e9:_0x534b20===null?_0x534b20=Object[_0x58d84d(0x223)](_0x9273e9,_0x1b99a1):_0x534b20,_0x3f82b4;if(typeof Reflect==_0x58d84d(0x268)&&typeof Reflect['decorate']==_0x58d84d(0x20e))_0xabed65=Reflect[_0x58d84d(0x1c2)](_0x323fa5,_0x9273e9,_0x1b99a1,_0x534b20);else{for(var _0x48f0ae=_0x323fa5[_0x58d84d(0x234)]-0x1;_0x48f0ae>=0x0;_0x48f0ae--)(_0x3f82b4=_0x323fa5[_0x48f0ae])&&(_0xabed65=(_0x3bfdf2<0x3?_0x3f82b4(_0xabed65):_0x3bfdf2>0x3?_0x3f82b4(_0x9273e9,_0x1b99a1,_0xabed65):_0x3f82b4(_0x9273e9,_0x1b99a1))||_0xabed65);}return _0x3bfdf2>0x3&&_0xabed65&&Object[_0x58d84d(0x243)](_0x9273e9,_0x1b99a1,_0xabed65),_0xabed65;}let Q=class extends e[_0x22d1a6(0x1e2)]{constructor(_0x22bcc7,_0x475fca){const _0x4332d6=_0x22d1a6;super(),this[_0x4332d6(0x23a)]=_0x22bcc7,this[_0x4332d6(0x238)]=_0x475fca,this[_0x4332d6(0x222)]();}[_0x22d1a6(0x222)](){const _0x4a694c=_0x22d1a6;this[_0x4a694c(0x210)](this[_0x4a694c(0x23a)]['registerPluginResource']({'pluginName':Y,'businesses':[e[_0x4a694c(0x1f5)][_0x4a694c(0x20d)]],'toJson':_0x3235b2=>JSON[_0x4a694c(0x23c)](this[_0x4a694c(0x238)]['serialize'](_0x3235b2)),'parseJson':_0x4a52d9=>o(JSON[_0x4a694c(0x1ff)](_0x4a52d9)),'onLoad':(_0x164b08,_0x2e6521)=>this[_0x4a694c(0x238)][_0x4a694c(0x1d0)](_0x164b08,_0x2e6521),'onUnLoad':_0x4a5984=>this[_0x4a694c(0x238)]['removeUnit'](_0x4a5984)}));}};Q=be([Z(0x0,e[_0x22d1a6(0x212)]),Z(0x1,(0x0,e['Inject'])(R))],Q);let $=class extends e[_0x22d1a6(0x1fa)]{constructor(_0x3bf61a=X,_0x4b1271,_0x1cc5f4,_0x8d8280){const _0x47e3d3=_0x22d1a6;super(),this[_0x47e3d3(0x1cc)]=_0x3bf61a,this[_0x47e3d3(0x227)]=_0x4b1271,this[_0x47e3d3(0x217)]=_0x1cc5f4,this[_0x47e3d3(0x25c)]=_0x8d8280;let {..._0x3b9b3a}=(0x0,e[_0x47e3d3(0x221)])({},X,this[_0x47e3d3(0x1cc)]);this[_0x47e3d3(0x25c)][_0x47e3d3(0x204)](_0x47e3d3(0x260),_0x3b9b3a);}[_0x22d1a6(0x1df)](){const _0x489ee1=_0x22d1a6;this[_0x489ee1(0x227)][_0x489ee1(0x1e4)]([R]),this[_0x489ee1(0x227)][_0x489ee1(0x1e4)]([Q]),this[_0x489ee1(0x227)][_0x489ee1(0x225)](R),this[_0x489ee1(0x227)][_0x489ee1(0x225)](Q),[V,z,H,U,W,B][_0x489ee1(0x207)](_0x272673=>this[_0x489ee1(0x210)](this[_0x489ee1(0x217)][_0x489ee1(0x258)](_0x272673)));}};L($,'pluginName',Y),L($,'packageName',ve),L($,'version',ye),L($,_0x22d1a6(0x22d),e[_0x22d1a6(0x1f5)][_0x22d1a6(0x20d)]),$=be([(0x0,e[_0x22d1a6(0x1fd)])(r[_0x22d1a6(0x264)],t['UniverDocsPlugin']),Z(0x1,(0x0,e[_0x22d1a6(0x1dd)])(e[_0x22d1a6(0x1eb)])),Z(0x2,e[_0x22d1a6(0x1f9)]),Z(0x3,e[_0x22d1a6(0x261)])],$),exports[_0x22d1a6(0x1db)]=i,exports[_0x22d1a6(0x1d7)]=Y,exports[_0x22d1a6(0x1e0)]=W,exports[_0x22d1a6(0x1cd)]=B,exports[_0x22d1a6(0x262)]=U,exports[_0x22d1a6(0x1d5)]=z,exports['DocsCodeInsertCommand']=V,exports[_0x22d1a6(0x1d4)]=R,exports[_0x22d1a6(0x21b)]=H,Object[_0x22d1a6(0x243)](exports,_0x22d1a6(0x269),{'enumerable':!0x0,'get':function(){return $;}}),exports[_0x22d1a6(0x24d)]=h,exports[_0x22d1a6(0x233)]=m,exports[_0x22d1a6(0x257)]=u,exports[_0x22d1a6(0x1f2)]=p,exports['findCodeRangeAtOffset']=_,exports[_0x22d1a6(0x244)]=v,exports[_0x22d1a6(0x1ed)]=a;
package/lib/es/facade.js CHANGED
@@ -1 +1 @@
1
- var _0x2699ee=_0x1368;function _0x5077(){var _0x87e7dd=['SECTION_BREAK','createInstance','symbol','replace','text','findCodes','32lJYrhU','from','function','_injector','getCodes','BLOCK_END','join','973DrQDun','map','_getBlockRange','slice','getCode','1161786otxpdD','defineProperty','toPrimitive','_unitId','find','_document','cancelEmptyParagraph','endIndex','862191SMHkzP','describe','12634AVHzKa','getRange','2302600sOtQuX','get','length','string','call','updateConfig','BLOCK_START','getCodeAt','blockType','decorate','iterator','filter','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','5zuVtpa','CODE','startIndex','extend','exitCode','7400FzZlXW','getText','getCodeConfig','save','body','39UqEDQy','blockId','_getBlockRanges','_blockId','9774JUenLk','_createFDocumentCode','dataStream','PARAGRAPH','85340NVRheH','syncExecuteCommand','getOwnPropertyDescriptor','blockRanges','object','getId','constructor','config','insertCode','_getDocumentData'];_0x5077=function(){return _0x87e7dd;};return _0x5077();}(function(_0xe2de25,_0x30438b){var _0xea7fca=_0x1368,_0x11dd70=_0xe2de25();while(!![]){try{var _0x4cc259=parseInt(_0xea7fca(0xe2))/0x1*(-parseInt(_0xea7fca(0xcc))/0x2)+-parseInt(_0xea7fca(0xfb))/0x3*(parseInt(_0xea7fca(0x103))/0x4)+-parseInt(_0xea7fca(0xf1))/0x5*(-parseInt(_0xea7fca(0xd8))/0x6)+-parseInt(_0xea7fca(0xd3))/0x7*(-parseInt(_0xea7fca(0xf6))/0x8)+parseInt(_0xea7fca(0xff))/0x9+parseInt(_0xea7fca(0xe4))/0xa+parseInt(_0xea7fca(0xe0))/0xb;if(_0x4cc259===_0x30438b)break;else _0x11dd70['push'](_0x11dd70['shift']());}catch(_0x2c6289){_0x11dd70['push'](_0x11dd70['shift']());}}}(_0x5077,0x25372));import{DocsCodeCancelEmptyParagraphCommand as _0xa9487b,DocsCodeExitCommand as _0x6bd294,DocsCodeInsertCommand as _0x478b1e,DocsCodeModel as _0x404cd1,DocsCodeUpdateCommand as _0x370048,normalizeDocsCodeConfig as _0x3cd8a}from'@univerjs-pro/docs-code';import{DataStreamTreeTokenType as _0x5a0cc1,DocumentBlockRangeType as _0x4f43e3,ICommandService as _0x4c1c14,Inject as _0x5d099d,Injector as _0x12ce22,generateRandomId as _0x5b6778}from'@univerjs/core';import{FDocument as _0x184985}from'@univerjs/docs/facade';function p(_0x2c988f){'@babel/helpers - typeof';var _0x89a06=_0x1368;return p=typeof Symbol==_0x89a06(0xce)&&typeof Symbol[_0x89a06(0xee)]==_0x89a06(0xc8)?function(_0xb9d91a){return typeof _0xb9d91a;}:function(_0xe9ffff){var _0xf66b89=_0x89a06;return _0xe9ffff&&typeof Symbol==_0xf66b89(0xce)&&_0xe9ffff[_0xf66b89(0xc2)]===Symbol&&_0xe9ffff!==Symbol['prototype']?_0xf66b89(0xc8):typeof _0xe9ffff;},p(_0x2c988f);}function m(_0x31b1a0,_0x6a0c6a){var _0x1321ff=_0x1368;if(p(_0x31b1a0)!=_0x1321ff(0xc0)||!_0x31b1a0)return _0x31b1a0;var _0x4ddb9f=_0x31b1a0[Symbol[_0x1321ff(0xda)]];if(_0x4ddb9f!==void 0x0){var _0x5af1f1=_0x4ddb9f[_0x1321ff(0xe8)](_0x31b1a0,_0x6a0c6a||'default');if(p(_0x5af1f1)!='object')return _0x5af1f1;throw TypeError(_0x1321ff(0xf0));}return(_0x6a0c6a===_0x1321ff(0xe7)?String:Number)(_0x31b1a0);}function _0x1368(_0x3c2ab4,_0x3739e9){_0x3c2ab4=_0x3c2ab4-0xbe;var _0x5077ce=_0x5077();var _0x13687c=_0x5077ce[_0x3c2ab4];return _0x13687c;}function h(_0x4aef64){var _0x43e9f6=_0x1368,_0x462e31=m(_0x4aef64,_0x43e9f6(0xe7));return p(_0x462e31)==_0x43e9f6(0xc8)?_0x462e31:_0x462e31+'';}function g(_0x4df008,_0x342691,_0xdfb07b){var _0x12efa1=_0x1368;return(_0x342691=h(_0x342691))in _0x4df008?Object[_0x12efa1(0xd9)](_0x4df008,_0x342691,{'value':_0xdfb07b,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4df008[_0x342691]=_0xdfb07b,_0x4df008;}function _(_0x150fe1,_0x5597b5){return function(_0x34f9af,_0x5952be){_0x5597b5(_0x34f9af,_0x5952be,_0x150fe1);};}function v(_0x1c3965,_0x2a1655,_0x1ffb12,_0x5951c2){var _0x308e4e=_0x1368,_0x45d921=arguments[_0x308e4e(0xe6)],_0x203e48=_0x45d921<0x3?_0x2a1655:_0x5951c2===null?_0x5951c2=Object[_0x308e4e(0xbe)](_0x2a1655,_0x1ffb12):_0x5951c2,_0x338f3a;if(typeof Reflect==_0x308e4e(0xc0)&&typeof Reflect[_0x308e4e(0xed)]==_0x308e4e(0xce))_0x203e48=Reflect[_0x308e4e(0xed)](_0x1c3965,_0x2a1655,_0x1ffb12,_0x5951c2);else{for(var _0x23efc5=_0x1c3965[_0x308e4e(0xe6)]-0x1;_0x23efc5>=0x0;_0x23efc5--)(_0x338f3a=_0x1c3965[_0x23efc5])&&(_0x203e48=(_0x45d921<0x3?_0x338f3a(_0x203e48):_0x45d921>0x3?_0x338f3a(_0x2a1655,_0x1ffb12,_0x203e48):_0x338f3a(_0x2a1655,_0x1ffb12))||_0x203e48);}return _0x45d921>0x3&&_0x203e48&&Object[_0x308e4e(0xd9)](_0x2a1655,_0x1ffb12,_0x203e48),_0x203e48;}let y=class{constructor(_0x3bbc14,_0x1eabd7,_0x530bcc){var _0xafcab7=_0x1368;this[_0xafcab7(0xdd)]=_0x3bbc14,this[_0xafcab7(0xfe)]=_0x1eabd7,this[_0xafcab7(0xcf)]=_0x530bcc,g(this,_0xafcab7(0xdb),void 0x0),this['_unitId']=this['_document'][_0xafcab7(0xc1)]();}[_0x2699ee(0xc1)](){var _0x1df39f=_0x2699ee;return this[_0x1df39f(0xfe)];}[_0x2699ee(0xe3)](){var _0x1d14f8=_0x2699ee;let _0x382527=this[_0x1d14f8(0xd5)]();return _0x382527?{'blockId':_0x382527[_0x1d14f8(0xfc)],'endIndex':_0x382527[_0x1d14f8(0xdf)],'startIndex':_0x382527[_0x1d14f8(0xf3)]}:null;}['getText'](){var _0xfecaf=_0x2699ee,_0x2befa6;let _0x2c02d1=this['_getBlockRange'](),_0x1f92e9=(_0x2befa6=this[_0xfecaf(0xc5)]()[_0xfecaf(0xfa)])==null?void 0x0:_0x2befa6[_0xfecaf(0x101)];return!_0x2c02d1||!_0x1f92e9?'':b(_0x1f92e9[_0xfecaf(0xd6)](_0x2c02d1['startIndex']+0x1,_0x2c02d1[_0xfecaf(0xdf)]));}[_0x2699ee(0xe1)](){var _0x2bda3b=_0x2699ee;let _0x5138e4=this[_0x2bda3b(0xe3)]();return _0x5138e4?{..._0x5138e4,'config':this['getConfig'](),'text':this['getText'](),'type':_0x4f43e3[_0x2bda3b(0xf2)]}:null;}['getConfig'](){var _0xb63a58=_0x2699ee;return _0x3cd8a(this['_injector'][_0xb63a58(0xe5)](_0x404cd1)[_0xb63a58(0xf8)](this[_0xb63a58(0xdb)],this[_0xb63a58(0xfe)]));}[_0x2699ee(0xe9)](_0x448b6e){var _0x1c8abc=_0x2699ee;return this['_injector']['get'](_0x4c1c14)['syncExecuteCommand'](_0x370048['id'],{'blockId':this['_blockId'],'config':_0x448b6e[_0x1c8abc(0xc3)],'unitId':this['_unitId']});}['exit'](_0x23f5ac){var _0x2183e3=_0x2699ee;return this['_injector'][_0x2183e3(0xe5)](_0x4c1c14)['syncExecuteCommand'](_0x6bd294['id'],{'cursorOffset':_0x23f5ac,'unitId':this[_0x2183e3(0xdb)]});}[_0x2699ee(0xde)](_0xe6de84={}){var _0x5cb88a=_0x2699ee;return this['_injector'][_0x5cb88a(0xe5)](_0x4c1c14)['syncExecuteCommand'](_0xa9487b['id'],{..._0xe6de84,'unitId':this[_0x5cb88a(0xdb)]});}[_0x2699ee(0xc5)](){var _0x216e3e=_0x2699ee;return this['_document'][_0x216e3e(0xf9)]();}[_0x2699ee(0xd5)](){var _0x574945=_0x2699ee,_0x2bbc6b;let _0x4b7e90=(_0x2bbc6b=this[_0x574945(0xc5)]()['body'])==null||(_0x2bbc6b=_0x2bbc6b[_0x574945(0xbf)])==null?void 0x0:_0x2bbc6b[_0x574945(0xdc)](_0x37d732=>_0x37d732[_0x574945(0xfc)]===this[_0x574945(0xfe)]&&_0x37d732[_0x574945(0xec)]===_0x4f43e3[_0x574945(0xf2)]);return _0x4b7e90==null?null:_0x4b7e90;}};y=v([_(0x2,_0x5d099d(_0x12ce22))],y);function b(_0x5c137a){var _0x3397f3=_0x2699ee;return Array[_0x3397f3(0xcd)](_0x5c137a)[_0x3397f3(0xd4)](_0x23939d=>_0x23939d===_0x5a0cc1[_0x3397f3(0x102)]?'\x0a':_0x23939d)[_0x3397f3(0xef)](_0x4f9663=>_0x4f9663!==_0x5a0cc1[_0x3397f3(0xea)]&&_0x4f9663!==_0x5a0cc1[_0x3397f3(0xd1)]&&_0x4f9663!==_0x5a0cc1[_0x3397f3(0xc6)])[_0x3397f3(0xd2)]('')[_0x3397f3(0xc9)](/\n$/,'');}var x=class extends _0x184985{[_0x2699ee(0xd0)](){var _0x4dac0a=_0x2699ee;return this['_getBlockRanges']()[_0x4dac0a(0xef)](_0x3c457c=>_0x3c457c[_0x4dac0a(0xec)]===_0x4f43e3[_0x4dac0a(0xf2)])[_0x4dac0a(0xd4)](_0x30312b=>this[_0x4dac0a(0x100)](_0x30312b['blockId']));}[_0x2699ee(0xd7)](_0x11ccbd){var _0x12e66a=_0x2699ee;return this['_getBlockRanges']()['some'](_0x1cf529=>_0x1cf529[_0x12e66a(0xfc)]===_0x11ccbd&&_0x1cf529[_0x12e66a(0xec)]===_0x4f43e3[_0x12e66a(0xf2)])?this[_0x12e66a(0x100)](_0x11ccbd):null;}[_0x2699ee(0xeb)](_0x25ce36){var _0x37b459=_0x2699ee;let _0x38e568=this[_0x37b459(0xfd)]()[_0x37b459(0xdc)](_0x4a65bd=>_0x4a65bd[_0x37b459(0xec)]===_0x4f43e3['CODE']&&_0x4a65bd['startIndex']<=_0x25ce36&&_0x25ce36<=_0x4a65bd[_0x37b459(0xdf)]);return _0x38e568?this[_0x37b459(0x100)](_0x38e568[_0x37b459(0xfc)]):null;}['findCodeByText'](_0x198444){var _0x58c169=_0x2699ee,_0x21a187;return(_0x21a187=this[_0x58c169(0xcb)](_0x198444)[0x0])==null?null:_0x21a187;}['findCodes'](_0x318448){var _0x30817d=_0x2699ee;let _0x127049=typeof _0x318448==_0x30817d(0xe7)?{'text':_0x318448}:_0x318448;return this['getCodes']()['filter'](_0x53fed6=>!(_0x127049[_0x30817d(0xfc)]&&_0x53fed6[_0x30817d(0xc1)]()!==_0x127049['blockId']||_0x127049[_0x30817d(0xca)]&&!_0x53fed6[_0x30817d(0xf7)]()['includes'](_0x127049['text'])));}[_0x2699ee(0xc4)](_0x13f1f8={}){var _0x28fc06=_0x2699ee,_0x4e49ad;let _0x1c47a5=this[_0x28fc06(0xcf)][_0x28fc06(0xe5)](_0x4c1c14),_0x56136b=(_0x4e49ad=_0x13f1f8[_0x28fc06(0xfc)])==null?_0x5b6778(0x6):_0x4e49ad;return _0x1c47a5[_0x28fc06(0x104)](_0x478b1e['id'],{..._0x13f1f8,'blockId':_0x56136b,'unitId':this[_0x28fc06(0xc1)]()})?this[_0x28fc06(0x100)](_0x56136b):null;}[_0x2699ee(0xf5)](_0x3dde3c){var _0x2dbb0b=_0x2699ee;return this[_0x2dbb0b(0xcf)][_0x2dbb0b(0xe5)](_0x4c1c14)[_0x2dbb0b(0x104)](_0x6bd294['id'],{'cursorOffset':_0x3dde3c,'unitId':this[_0x2dbb0b(0xc1)]()});}['cancelEmptyCodeParagraph'](_0x48482b={}){var _0xe82510=_0x2699ee;return this['_injector'][_0xe82510(0xe5)](_0x4c1c14)[_0xe82510(0x104)](_0xa9487b['id'],{..._0x48482b,'unitId':this[_0xe82510(0xc1)]()});}[_0x2699ee(0xfd)](){var _0x53d18a=_0x2699ee,_0x519e22,_0x409d16;return(_0x519e22=(_0x409d16=this[_0x53d18a(0xf9)]()['body'])==null?void 0x0:_0x409d16[_0x53d18a(0xbf)])==null?[]:_0x519e22;}[_0x2699ee(0x100)](_0x3c4da1){var _0x260581=_0x2699ee;return this[_0x260581(0xcf)][_0x260581(0xc7)](y,this,_0x3c4da1);}};_0x184985[_0x2699ee(0xf4)](x);export{y as FDocumentCode};
1
+ var _0x23880a=_0x18c9;(function(_0x36805e,_0x4b7cfa){var _0x47dcca=_0x18c9,_0x5b95b3=_0x36805e();while(!![]){try{var _0x502c85=parseInt(_0x47dcca(0x11a))/0x1*(-parseInt(_0x47dcca(0x114))/0x2)+-parseInt(_0x47dcca(0x111))/0x3+parseInt(_0x47dcca(0x141))/0x4+-parseInt(_0x47dcca(0x12d))/0x5+-parseInt(_0x47dcca(0x13f))/0x6*(-parseInt(_0x47dcca(0x138))/0x7)+-parseInt(_0x47dcca(0x10c))/0x8*(parseInt(_0x47dcca(0x122))/0x9)+parseInt(_0x47dcca(0x127))/0xa;if(_0x502c85===_0x4b7cfa)break;else _0x5b95b3['push'](_0x5b95b3['shift']());}catch(_0x3f344b){_0x5b95b3['push'](_0x5b95b3['shift']());}}}(_0x150e,0x629a9));import{DocsCodeCancelEmptyParagraphCommand as _0x4d0f02,DocsCodeExitCommand as _0x4d14af,DocsCodeInsertCommand as _0x529303,DocsCodeModel as _0x559543,DocsCodeUpdateCommand as _0x464115,normalizeDocsCodeConfig as _0xf6f9a6}from'@univerjs-pro/docs-code';import{DataStreamTreeTokenType as _0x2d7d12,DocumentBlockRangeType as _0x288e49,ICommandService as _0xebe6a2,Inject as _0x4516c2,Injector as _0x5e4eba,generateRandomId as _0x119d93}from'@univerjs/core';import{FDocument as _0x1f0b1a}from'@univerjs/docs/facade';function p(_0x3ddc68){'@babel/helpers - typeof';var _0x41845c=_0x18c9;return p=typeof Symbol==_0x41845c(0x13e)&&typeof Symbol[_0x41845c(0x11d)]==_0x41845c(0x110)?function(_0x320725){return typeof _0x320725;}:function(_0x4159de){var _0x4f43ae=_0x41845c;return _0x4159de&&typeof Symbol==_0x4f43ae(0x13e)&&_0x4159de[_0x4f43ae(0x10d)]===Symbol&&_0x4159de!==Symbol['prototype']?'symbol':typeof _0x4159de;},p(_0x3ddc68);}function m(_0x170594,_0x1d9cfa){var _0x202976=_0x18c9;if(p(_0x170594)!=_0x202976(0x104)||!_0x170594)return _0x170594;var _0xe23f65=_0x170594[Symbol['toPrimitive']];if(_0xe23f65!==void 0x0){var _0x254ab4=_0xe23f65[_0x202976(0x136)](_0x170594,_0x1d9cfa||'default');if(p(_0x254ab4)!='object')return _0x254ab4;throw TypeError(_0x202976(0x116));}return(_0x1d9cfa===_0x202976(0x10b)?String:Number)(_0x170594);}function h(_0x400975){var _0x35aac8=_0x18c9,_0x8587fe=m(_0x400975,_0x35aac8(0x10b));return p(_0x8587fe)==_0x35aac8(0x110)?_0x8587fe:_0x8587fe+'';}function g(_0x59ba2b,_0x446c79,_0x423ae2){var _0x307908=_0x18c9;return(_0x446c79=h(_0x446c79))in _0x59ba2b?Object[_0x307908(0x126)](_0x59ba2b,_0x446c79,{'value':_0x423ae2,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x59ba2b[_0x446c79]=_0x423ae2,_0x59ba2b;}function _(_0x16e7b5,_0x59faa5){return function(_0x362d94,_0x5730ea){_0x59faa5(_0x362d94,_0x5730ea,_0x16e7b5);};}function v(_0x45c050,_0x59cb2c,_0x32dfae,_0xfa5f16){var _0x75b24f=_0x18c9,_0x115364=arguments['length'],_0x49efde=_0x115364<0x3?_0x59cb2c:_0xfa5f16===null?_0xfa5f16=Object['getOwnPropertyDescriptor'](_0x59cb2c,_0x32dfae):_0xfa5f16,_0xbd09ee;if(typeof Reflect=='object'&&typeof Reflect[_0x75b24f(0x10a)]=='function')_0x49efde=Reflect[_0x75b24f(0x10a)](_0x45c050,_0x59cb2c,_0x32dfae,_0xfa5f16);else{for(var _0x1d1072=_0x45c050['length']-0x1;_0x1d1072>=0x0;_0x1d1072--)(_0xbd09ee=_0x45c050[_0x1d1072])&&(_0x49efde=(_0x115364<0x3?_0xbd09ee(_0x49efde):_0x115364>0x3?_0xbd09ee(_0x59cb2c,_0x32dfae,_0x49efde):_0xbd09ee(_0x59cb2c,_0x32dfae))||_0x49efde);}return _0x115364>0x3&&_0x49efde&&Object[_0x75b24f(0x126)](_0x59cb2c,_0x32dfae,_0x49efde),_0x49efde;}function _0x150e(){var _0x93b1e8=['defineProperty','6457780rLUbLC','get','_document','find','SECTION_BREAK','config','873750ijQTva','blockId','getCodeAt','PARAGRAPH','slice','CODE','_getDocumentData','endIndex','join','call','extend','12698sAtdPN','save','_injector','exitCode','_getBlockRange','getConfig','function','510ZdoPyR','getId','1856816WFRufG','cancelEmptyCodeParagraph','cancelEmptyParagraph','getCode','_createFDocumentCode','exit','BLOCK_END','_unitId','object','getText','map','getCodeConfig','_blockId','filter','decorate','string','1336MteCjF','constructor','blockType','getKey','symbol','899262heTSva','from','insertCode','697092QDhSnX','syncExecuteCommand','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','getRange','getCodes','blockRanges','1RBQjTI','text','findCodes','iterator','includes','startIndex','_getBlockRanges','describe','2007lxEsmQ','body','paragraph','getType'];_0x150e=function(){return _0x93b1e8;};return _0x150e();}function _0x18c9(_0x1836f5,_0x2544a4){_0x1836f5=_0x1836f5-0xfd;var _0x150e57=_0x150e();var _0x18c94d=_0x150e57[_0x1836f5];return _0x18c94d;}let y=class{constructor(_0x403186,_0x5db0bc,_0x45f219){var _0x2b086f=_0x18c9;this[_0x2b086f(0x129)]=_0x403186,this[_0x2b086f(0x108)]=_0x5db0bc,this['_injector']=_0x45f219,g(this,_0x2b086f(0x103),void 0x0),this[_0x2b086f(0x103)]=this[_0x2b086f(0x129)][_0x2b086f(0x140)]();}[_0x23880a(0x140)](){var _0x1d2987=_0x23880a;return this[_0x1d2987(0x108)];}[_0x23880a(0x117)](){var _0xa97bdb=_0x23880a;let _0x3f86ea=this[_0xa97bdb(0x13c)]();return _0x3f86ea?{'blockId':_0x3f86ea[_0xa97bdb(0x12e)],'endIndex':_0x3f86ea['endIndex'],'startIndex':_0x3f86ea['startIndex']}:null;}['getText'](){var _0xb72eee=_0x23880a,_0x3edf11;let _0x46a40e=this[_0xb72eee(0x13c)](),_0x2b5b05=(_0x3edf11=this[_0xb72eee(0x133)]()['body'])==null?void 0x0:_0x3edf11['dataStream'];return!_0x46a40e||!_0x2b5b05?'':b(_0x2b5b05[_0xb72eee(0x131)](_0x46a40e[_0xb72eee(0x11f)]+0x1,_0x46a40e[_0xb72eee(0x134)]));}[_0x23880a(0x121)](){var _0x43eedb=_0x23880a;let _0x5ed1bd=this['getRange']();return _0x5ed1bd?{..._0x5ed1bd,'config':this['getConfig'](),'text':this[_0x43eedb(0x105)](),'type':_0x288e49[_0x43eedb(0x132)]}:null;}[_0x23880a(0x13d)](){var _0x486bbc=_0x23880a;return _0xf6f9a6(this[_0x486bbc(0x13a)][_0x486bbc(0x128)](_0x559543)[_0x486bbc(0x107)](this[_0x486bbc(0x103)],this[_0x486bbc(0x108)]));}['updateConfig'](_0x3ef929){var _0x25eb18=_0x23880a;return this[_0x25eb18(0x13a)][_0x25eb18(0x128)](_0xebe6a2)[_0x25eb18(0x115)](_0x464115['id'],{'blockId':this[_0x25eb18(0x108)],'config':_0x3ef929[_0x25eb18(0x12c)],'unitId':this[_0x25eb18(0x103)]});}[_0x23880a(0x101)](_0xcb7fad){var _0x2a5ceb=_0x23880a;return this[_0x2a5ceb(0x13a)][_0x2a5ceb(0x128)](_0xebe6a2)[_0x2a5ceb(0x115)](_0x4d14af['id'],{'cursorOffset':_0xcb7fad,'unitId':this[_0x2a5ceb(0x103)]});}[_0x23880a(0xfe)](_0x5c7b58={}){var _0xbb7d67=_0x23880a;return this[_0xbb7d67(0x13a)][_0xbb7d67(0x128)](_0xebe6a2)[_0xbb7d67(0x115)](_0x4d0f02['id'],{..._0x5c7b58,'unitId':this[_0xbb7d67(0x103)]});}[_0x23880a(0x133)](){var _0x3255bc=_0x23880a;return this[_0x3255bc(0x129)]['save']();}[_0x23880a(0x13c)](){var _0x158296=_0x23880a,_0x19837b;let _0xe27e38=(_0x19837b=this[_0x158296(0x133)]()['body'])==null||(_0x19837b=_0x19837b[_0x158296(0x119)])==null?void 0x0:_0x19837b[_0x158296(0x12a)](_0x21e0fc=>_0x21e0fc[_0x158296(0x12e)]===this[_0x158296(0x108)]&&_0x21e0fc[_0x158296(0x10e)]===_0x288e49['CODE']);return _0xe27e38==null?null:_0xe27e38;}};y=v([_(0x2,_0x4516c2(_0x5e4eba))],y);function b(_0x383a7a){var _0x4acaed=_0x23880a;return Array[_0x4acaed(0x112)](_0x383a7a)['map'](_0x21e7de=>_0x21e7de===_0x2d7d12[_0x4acaed(0x130)]?'\x0a':_0x21e7de)[_0x4acaed(0x109)](_0xb05706=>_0xb05706!==_0x2d7d12['BLOCK_START']&&_0xb05706!==_0x2d7d12[_0x4acaed(0x102)]&&_0xb05706!==_0x2d7d12[_0x4acaed(0x12b)])[_0x4acaed(0x135)]('')['replace'](/\n$/,'');}var x=class extends _0x1f0b1a{['getCodes'](){var _0x55ee07=_0x23880a;return this[_0x55ee07(0x120)]()[_0x55ee07(0x109)](_0x11f514=>_0x11f514[_0x55ee07(0x10e)]===_0x288e49[_0x55ee07(0x132)])[_0x55ee07(0x106)](_0x17cf65=>this['_createFDocumentCode'](_0x17cf65['blockId']));}[_0x23880a(0xff)](_0x28b903){var _0x4e5e56=_0x23880a;return this[_0x4e5e56(0x120)]()['some'](_0x4b1c01=>_0x4b1c01['blockId']===_0x28b903&&_0x4b1c01['blockType']===_0x288e49[_0x4e5e56(0x132)])?this['_createFDocumentCode'](_0x28b903):null;}[_0x23880a(0x12f)](_0x5d6dc3){var _0x4b4b59=_0x23880a;let _0x21718c=this[_0x4b4b59(0x120)]()[_0x4b4b59(0x12a)](_0x5cce27=>_0x5cce27[_0x4b4b59(0x10e)]===_0x288e49[_0x4b4b59(0x132)]&&_0x5cce27['startIndex']<=_0x5d6dc3&&_0x5d6dc3<=_0x5cce27[_0x4b4b59(0x134)]);return _0x21718c?this['_createFDocumentCode'](_0x21718c[_0x4b4b59(0x12e)]):null;}['findCodeByText'](_0x544379){var _0x4e4db8=_0x23880a,_0x3ca051;return(_0x3ca051=this[_0x4e4db8(0x11c)](_0x544379)[0x0])==null?null:_0x3ca051;}['findCodes'](_0x172c10){var _0x223642=_0x23880a;let _0x51a0aa=typeof _0x172c10==_0x223642(0x10b)?{'text':_0x172c10}:_0x172c10;return this[_0x223642(0x118)]()[_0x223642(0x109)](_0x3ce6be=>!(_0x51a0aa[_0x223642(0x12e)]&&_0x3ce6be[_0x223642(0x140)]()!==_0x51a0aa['blockId']||_0x51a0aa[_0x223642(0x11b)]&&!_0x3ce6be[_0x223642(0x105)]()[_0x223642(0x11e)](_0x51a0aa[_0x223642(0x11b)])));}[_0x23880a(0x113)](_0x257798={},_0x2b9773={}){var _0x328b52=_0x23880a,_0x5eaf25;let _0x33d115=this['_injector']['get'](_0xebe6a2),_0x120c29=S(_0x257798)?{..._0x2b9773,...C(_0x257798)}:_0x257798,_0xb418a6=(_0x5eaf25=_0x120c29[_0x328b52(0x12e)])==null?_0x119d93(0x6):_0x5eaf25;return _0x33d115[_0x328b52(0x115)](_0x529303['id'],{..._0x120c29,'blockId':_0xb418a6,'unitId':this[_0x328b52(0x140)]()})?this[_0x328b52(0x100)](_0xb418a6):null;}[_0x23880a(0x13b)](_0x4932c4){var _0x1a5f8d=_0x23880a;return this['_injector'][_0x1a5f8d(0x128)](_0xebe6a2)[_0x1a5f8d(0x115)](_0x4d14af['id'],{'cursorOffset':_0x4932c4,'unitId':this[_0x1a5f8d(0x140)]()});}[_0x23880a(0xfd)](_0x2c7afc={}){var _0x19e4c9=_0x23880a;return this['_injector']['get'](_0xebe6a2)[_0x19e4c9(0x115)](_0x4d0f02['id'],{..._0x2c7afc,'unitId':this[_0x19e4c9(0x140)]()});}[_0x23880a(0x120)](){var _0x40e56e=_0x23880a,_0x1e0af0,_0x357109;return(_0x1e0af0=(_0x357109=this[_0x40e56e(0x139)]()[_0x40e56e(0x123)])==null?void 0x0:_0x357109[_0x40e56e(0x119)])==null?[]:_0x1e0af0;}[_0x23880a(0x100)](_0x289934){var _0x578d2a=_0x23880a;return this[_0x578d2a(0x13a)]['createInstance'](y,this,_0x289934);}};function S(_0x335334){var _0x449f3f=_0x23880a;return typeof _0x335334==_0x449f3f(0x104)&&!!_0x335334&&typeof _0x335334[_0x449f3f(0x10f)]==_0x449f3f(0x13e)&&typeof _0x335334['getRange']==_0x449f3f(0x13e)&&typeof _0x335334[_0x449f3f(0x125)]==_0x449f3f(0x13e)&&_0x335334[_0x449f3f(0x125)]()===_0x449f3f(0x124);}function C(_0x5aa4de){var _0x519f9a=_0x23880a;return _0x5aa4de[_0x519f9a(0x117)]();}_0x1f0b1a[_0x23880a(0x137)](x);export{y as FDocumentCode};
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x3fb85f=_0x58fb;(function(_0x2d7f1f,_0x247fad){const _0x1473bb=_0x58fb,_0x4482cd=_0x2d7f1f();while(!![]){try{const _0x3aafd7=-parseInt(_0x1473bb(0x1ab))/0x1*(parseInt(_0x1473bb(0x1fa))/0x2)+parseInt(_0x1473bb(0x1f6))/0x3*(-parseInt(_0x1473bb(0x1b2))/0x4)+parseInt(_0x1473bb(0x1d0))/0x5*(parseInt(_0x1473bb(0x1eb))/0x6)+-parseInt(_0x1473bb(0x20f))/0x7*(parseInt(_0x1473bb(0x1cb))/0x8)+parseInt(_0x1473bb(0x1c1))/0x9*(parseInt(_0x1473bb(0x1bd))/0xa)+-parseInt(_0x1473bb(0x1dc))/0xb+parseInt(_0x1473bb(0x1b6))/0xc;if(_0x3aafd7===_0x247fad)break;else _0x4482cd['push'](_0x4482cd['shift']());}catch(_0x241a37){_0x4482cd['push'](_0x4482cd['shift']());}}}(_0x557c,0xe372b));import{BuildTextUtils as _0x409809,CommandType as _0x4f0b2b,DataStreamTreeTokenType as _0x225989,DependentOn as _0x20cd03,Disposable as _0x4b273f,DocumentBlockRangeType as _0x18cfaa,ICommandService as _0x47dec0,IConfigService as _0x5c230c,IResourceManagerService as _0x16435a,IUniverInstanceService as _0x2d0bd1,Inject as _0x3ba08f,Injector as _0x160d3c,JSONX as _0x1f7576,Plugin as _0x36058a,Tools as _0x1ad342,UniverInstanceType as _0x2d29fd,generateRandomId as _0x57a8f5,merge as _0x57e027}from'@univerjs/core';import{DocContentInsertService as _0x498fcb,DocSelectionManagerService as _0x566c02,RichTextEditingMutation as _0x40822b,UniverDocsPlugin as _0x38efde}from'@univerjs/docs';import{Subject as _0x161704}from'rxjs';import{UniverLicensePlugin as _0x3dc60a}from'@univerjs-pro/license';const S={'language':_0x3fb85f(0x1ec),'showLineNumbers':!0x1,'tabSize':0x4,'wrap':!0x0};function C(_0x4307d3){return{...S,..._0x4307d3};}function w(_0xa50848){const _0xf75f68=_0x3fb85f;var _0x474cb7;let _0x545458=(_0x474cb7=_0xa50848==null?void 0x0:_0xa50848[_0xf75f68(0x1b9)])==null?{}:_0x474cb7;return{'codes':Object[_0xf75f68(0x1c8)](Object[_0xf75f68(0x211)](_0x545458)[_0xf75f68(0x1d6)](([_0x15e18e,_0x5b54c3])=>[_0x15e18e,C(_0x5b54c3)]))};}function T(_0x43ba68,_0x36ec1c,_0x29514e){const _0x5da7b1=_0x3fb85f;let _0x2c185d=w(_0x43ba68);return _0x2c185d['codes'][_0x36ec1c]=C({..._0x2c185d[_0x5da7b1(0x1b9)][_0x36ec1c],..._0x29514e}),_0x2c185d;}function ne(_0x2e8d3d,_0x33d51e){const _0x45417c=_0x3fb85f;let _0x33bd28=w(_0x2e8d3d);return delete _0x33bd28[_0x45417c(0x1b9)][_0x33d51e],_0x33bd28;}const re=_0x3fb85f(0x1a0);function E(_0x198cae){const _0x587684=_0x3fb85f;var _0x488c75,_0x542045,_0x3a0d48;let _0x502fd9=k(_0x198cae['documentData']),_0x3d57ff=A(_0x502fd9),_0x195fe2=ae(_0x198cae[_0x587684(0x229)],_0x198cae[_0x587684(0x1a1)]),_0x3bb992=_0x195fe2?(_0x488c75=_0x3d57ff[_0x587684(0x1ca)])==null?void 0x0:_0x488c75[_0x587684(0x1f8)](_0x385cc3=>_0x385cc3['startIndex']===_0x195fe2[_0x587684(0x229)]&&_0x385cc3['endIndex']+0x1===_0x195fe2[_0x587684(0x1a1)]):void 0x0,{startOffset:_0x1473e3,endOffset:_0x2a8642}=_0x3bb992?_0x195fe2:ge(_0x3d57ff,_0x198cae[_0x587684(0x229)],_0x198cae['endOffset']),_0x357550=ve(_0x3d57ff,_0x1473e3,_0x2a8642),_0x37becf=(_0x542045=_0x3bb992==null?void 0x0:_0x3bb992[_0x587684(0x1de)])==null?_0x198cae[_0x587684(0x1de)]:_0x542045,_0x52370e=T(_0x198cae['metadata'],_0x37becf,{...S,..._0x198cae['config']});if(_0x3bb992)return _0x3bb992[_0x587684(0x1e9)]=_0x18cfaa['CODE'],ie(_0x3d57ff,_0x1473e3,_0x2a8642),fe(_0x3d57ff,_0x1473e3,_0x2a8642,_0x357550),{'nextDocumentData':_0x502fd9,'nextMetadata':_0x52370e,'cursorOffset':_0x1473e3+0x1};if(_0x1473e3===_0x2a8642){let _0x3f5e11=''+_0x225989[_0x587684(0x219)]+_0x225989[_0x587684(0x1a4)]+_0x225989['BLOCK_END'];return P(_0x3d57ff,_0x1473e3,_0x3f5e11,{'paragraphs':[{'startIndex':0x1,'paragraphStyle':O(!0x0,!0x0,_0x357550)}],'blockRanges':[{'blockId':_0x37becf,'blockType':_0x18cfaa[_0x587684(0x1e2)],'startIndex':0x0,'endIndex':_0x3f5e11[_0x587684(0x1fe)]-0x1}]}),{'nextDocumentData':_0x502fd9,'nextMetadata':_0x52370e,'cursorOffset':_0x1473e3+0x1};}return P(_0x3d57ff,_0x2a8642,_0x225989[_0x587684(0x1fb)]),P(_0x3d57ff,_0x1473e3,_0x225989[_0x587684(0x219)]),fe(_0x3d57ff,_0x1473e3,_0x2a8642+0x1,_0x357550),_0x3d57ff[_0x587684(0x1ca)]=[...(_0x3a0d48=_0x3d57ff[_0x587684(0x1ca)])==null?[]:_0x3a0d48,{'blockId':_0x37becf,'blockType':_0x18cfaa[_0x587684(0x1e2)],'startIndex':_0x1473e3,'endIndex':_0x2a8642+0x1}]['sort']((_0x27827a,_0x56377c)=>_0x27827a['startIndex']-_0x56377c['startIndex']),{'nextDocumentData':_0x502fd9,'nextMetadata':_0x52370e,'cursorOffset':_0x1473e3+0x1};}function ie(_0x2c2b9f,_0x4cb9a2,_0x1bccaf){const _0x226e6a=_0x3fb85f;var _0x559953;((_0x559953=_0x2c2b9f[_0x226e6a(0x1e3)])==null?[]:_0x559953)[_0x226e6a(0x21d)](_0x299205=>_0x299205[_0x226e6a(0x20b)]>_0x4cb9a2&&_0x299205[_0x226e6a(0x20b)]<_0x1bccaf)['forEach'](_0x27e45d=>{const _0x3c94fc=_0x226e6a;var _0x1279b8;let _0x424d78={...(_0x1279b8=_0x27e45d['paragraphStyle'])==null?{}:_0x1279b8};delete _0x424d78[_0x3c94fc(0x1e5)],delete _0x424d78[_0x3c94fc(0x205)],_0x27e45d['paragraphStyle']=_0x424d78;});}function ae(_0x4ce535,_0x159848){return _0x4ce535==null||_0x159848==null||_0x4ce535===_0x159848?null:{'startOffset':Math['min'](_0x4ce535,_0x159848),'endOffset':Math['max'](_0x4ce535,_0x159848)};}function D(_0x5339c9){const _0x4db0fa=_0x3fb85f;return{'nextDocumentData':k(_0x5339c9[_0x4db0fa(0x1cd)]),'nextMetadata':T(_0x5339c9[_0x4db0fa(0x1d5)],_0x5339c9['blockId'],_0x5339c9[_0x4db0fa(0x207)]),'cursorOffset':0x0};}function oe(_0x13be90){const _0x3990da=_0x3fb85f;var _0x25cc06,_0x40a3bd;let _0x138a3b=k(_0x13be90['documentData']),_0x447467=A(_0x138a3b),_0x493344=de(_0x447467,_0x13be90[_0x3990da(0x201)]);if(!_0x493344)return null;let _0x1bbacb=me(_0x447467,_0x493344),_0x4c8f23=_0x1bbacb[_0x1bbacb[_0x3990da(0x1fe)]-0x1];if(!_0x4c8f23||!he(_0x447467,_0x493344,_0x4c8f23)||_0x13be90['cursorOffset']<_0x4c8f23['startIndex'])return null;let _0xf4c56b=M(_0x447467,_0x493344,_0x4c8f23);if(_0xf4c56b>=_0x493344[_0x3990da(0x1d9)])return null;_0x447467[_0x3990da(0x1f2)]=[_0x447467[_0x3990da(0x1f2)][_0x3990da(0x21a)](0x0,_0xf4c56b),_0x225989['BLOCK_END'],_0x447467[_0x3990da(0x1f2)][_0x3990da(0x21a)](_0xf4c56b,_0x493344[_0x3990da(0x1d9)]),_0x447467[_0x3990da(0x1f2)]['slice'](_0x493344[_0x3990da(0x1d9)]+0x1)][_0x3990da(0x222)](''),z(_0x447467['paragraphs'],_0xf4c56b,_0x493344['endIndex'],0x1),z(_0x447467[_0x3990da(0x1ac)],_0xf4c56b,_0x493344[_0x3990da(0x1d9)],0x1),z(_0x447467[_0x3990da(0x1ba)],_0xf4c56b,_0x493344[_0x3990da(0x1d9)],0x1),Te(_0x447467[_0x3990da(0x1f1)],_0xf4c56b,_0x493344[_0x3990da(0x1d9)],0x1),B(_0x447467[_0x3990da(0x1d1)],_0xf4c56b,_0x493344[_0x3990da(0x1d9)],0x1),B(_0x447467[_0x3990da(0x21b)],_0xf4c56b,_0x493344['endIndex'],0x1),B(_0x447467[_0x3990da(0x1b0)],_0xf4c56b,_0x493344[_0x3990da(0x1d9)],0x1),(_0x25cc06=_0x447467[_0x3990da(0x1ca)])==null||_0x25cc06[_0x3990da(0x1df)](_0xf3a485=>{const _0x6062b9=_0x3990da;_0xf3a485===_0x493344||_0xf3a485[_0x6062b9(0x1de)]===_0x493344['blockId']?_0xf3a485[_0x6062b9(0x1d9)]=_0xf4c56b:_0xf3a485[_0x6062b9(0x20b)]>=_0xf4c56b&&_0xf3a485[_0x6062b9(0x20b)]<_0x493344[_0x6062b9(0x1d9)]&&(_0xf3a485[_0x6062b9(0x20b)]+=0x1,_0xf3a485[_0x6062b9(0x1d9)]+=0x1);});let _0x4eac21=me(_0x447467,{..._0x493344,'endIndex':_0xf4c56b});_0x4eac21[_0x3990da(0x1df)]((_0x41b052,_0x2a659e)=>{const _0x5225b2=_0x3990da;var _0x4227d3;_0x41b052[_0x5225b2(0x1f9)]={...(_0x4227d3=_0x41b052['paragraphStyle'])==null?{}:_0x4227d3,...O(_0x2a659e===0x0,_0x2a659e===_0x4eac21['length']-0x1)};});let _0xf2c7b6=(_0x40a3bd=_0x447467[_0x3990da(0x1e3)])==null?void 0x0:_0x40a3bd[_0x3990da(0x1f8)](_0x196c80=>_0x196c80[_0x3990da(0x20b)]===_0xf4c56b+0x1);return _0xf2c7b6&&(_0xf2c7b6[_0x3990da(0x1f9)]=pe(_0xf2c7b6[_0x3990da(0x1f9)])),{'nextDocumentData':_0x138a3b,'cursorOffset':_0xf4c56b+0x1};}function se(_0x316c23){const _0xa9b2b=_0x3fb85f;let _0x17a2d6=k(_0x316c23[_0xa9b2b(0x1cd)]),_0x5aa231=A(_0x17a2d6),_0x31d9bd=de(_0x5aa231,_0x316c23[_0xa9b2b(0x201)]);return _0x31d9bd&&ce(_0x17a2d6,_0x5aa231,_0x31d9bd,_0x316c23[_0xa9b2b(0x201)],_0x316c23[_0xa9b2b(0x202)])||null;}function ce(_0x23d68c,_0x3cbbdc,_0x3092a9,_0x25b94d,_0x49f5b3){const _0x21665c=_0x3fb85f;let _0x190564=be(_0x3cbbdc,_0x3092a9,_0x25b94d,_0x49f5b3);if(!_0x190564)return null;let _0x5b9220=_0x190564['endTokenOffset']-0x1;return xe(_0x3cbbdc,_0x190564['paragraph'][_0x21665c(0x20b)],_0x190564[_0x21665c(0x1b3)]['startIndex']+0x1),{'nextDocumentData':_0x23d68c,'cursorOffset':_0x5b9220};}function le(_0x4c377f,_0x535596){const _0x48ab69=_0x3fb85f;var _0x1aaf57;return _0x4c377f==null||(_0x1aaf57=_0x4c377f[_0x48ab69(0x1ca)])==null?void 0x0:_0x1aaf57['find'](_0x1327ad=>_0x1327ad[_0x48ab69(0x1e9)]===_0x18cfaa[_0x48ab69(0x1e2)]&&_0x1327ad[_0x48ab69(0x20b)]<=_0x535596&&_0x535596<=_0x1327ad[_0x48ab69(0x1d9)]);}function ue(_0x2dd1f0){const _0x483ba0=_0x3fb85f;var _0x10bba7;let _0x35a987=_0x2dd1f0[_0x483ba0(0x1cd)][_0x483ba0(0x1c5)];if(!_0x35a987)return!0x1;let _0x589c68=_0x2dd1f0[_0x483ba0(0x1b7)]==='left'?_0x2dd1f0['cursorOffset']-0x1:_0x2dd1f0[_0x483ba0(0x201)],_0x501c09=_0x2dd1f0[_0x483ba0(0x1b7)]===_0x483ba0(0x214)?_0x2dd1f0[_0x483ba0(0x201)]+0x1:_0x589c68;return((_0x10bba7=_0x35a987[_0x483ba0(0x1ca)])==null?[]:_0x10bba7)[_0x483ba0(0x1c2)](_0x4e8200=>_0x4e8200[_0x483ba0(0x1e9)]===_0x18cfaa[_0x483ba0(0x1e2)]?_0x589c68===_0x4e8200[_0x483ba0(0x20b)]||_0x589c68===_0x4e8200[_0x483ba0(0x1d9)]||_0x501c09===_0x4e8200[_0x483ba0(0x20b)]||_0x501c09===_0x4e8200[_0x483ba0(0x1d9)]:!0x1);}function de(_0x43b3dd,_0x4cf679){const _0xec8ba6=_0x3fb85f;var _0x496013;return(_0x496013=_0x43b3dd[_0xec8ba6(0x1ca)])==null?void 0x0:_0x496013[_0xec8ba6(0x1f8)](_0x495d5e=>{const _0x5aaec2=_0xec8ba6;let _0x2c2dae=N(_0x43b3dd,_0x495d5e);return _0x495d5e[_0x5aaec2(0x1e9)]===_0x18cfaa[_0x5aaec2(0x1e2)]&&_0x495d5e['startIndex']<=_0x4cf679&&_0x4cf679<=_0x2c2dae+0x2;});}function O(_0x314e39,_0x71e749,_0x385185=!0x1){return{'indentEnd':{'v':0x14},'indentStart':{'v':0x14},..._0x314e39&&_0x385185?{'spaceAbove':{'v':0x8}}:{},'textStyle':{'ff':re,'fs':0xc}};}function fe(_0x3904c2,_0x16d89e,_0x3093ac,_0x13a6f7=!0x1){const _0x10f4d0=_0x3fb85f;var _0xc969a9;let _0x32f0bd=((_0xc969a9=_0x3904c2[_0x10f4d0(0x1e3)])==null?[]:_0xc969a9)['filter'](_0x191279=>_0x191279['startIndex']>_0x16d89e&&_0x191279[_0x10f4d0(0x20b)]<_0x3093ac);_0x32f0bd['forEach']((_0x4b9545,_0xbc2ade)=>{var _0x52bb2d;_0x4b9545['paragraphStyle']={...(_0x52bb2d=_0x4b9545['paragraphStyle'])==null?{}:_0x52bb2d,...O(_0xbc2ade===0x0,_0xbc2ade===_0x32f0bd['length']-0x1,_0x13a6f7)};});}function pe(_0x19d39e){const _0x3d8e64=_0x3fb85f;var _0x5e73dd,_0xca1597;let _0xa82380={..._0x19d39e==null?{}:_0x19d39e};return delete _0xa82380[_0x3d8e64(0x217)],delete _0xa82380[_0x3d8e64(0x1b1)],delete _0xa82380[_0x3d8e64(0x1e5)],delete _0xa82380[_0x3d8e64(0x205)],((_0x5e73dd=_0xa82380[_0x3d8e64(0x228)])==null?void 0x0:_0x5e73dd['ff'])===re&&((_0xca1597=_0xa82380[_0x3d8e64(0x228)])==null?void 0x0:_0xca1597['fs'])===0xc&&delete _0xa82380['textStyle'],_0xa82380;}function me(_0x395ec0,_0x5c18a5){const _0x162ca3=_0x3fb85f;var _0x3d3d0c;let _0x4f2229=N(_0x395ec0,_0x5c18a5);return((_0x3d3d0c=_0x395ec0[_0x162ca3(0x1e3)])==null?[]:_0x3d3d0c)['filter'](_0x2e397e=>_0x2e397e[_0x162ca3(0x20b)]>_0x5c18a5[_0x162ca3(0x20b)]&&_0x2e397e['startIndex']<_0x4f2229);}function he(_0x41b82b,_0x4093d6,_0x22badd){const _0x486cc0=_0x3fb85f;let _0x4d4864=M(_0x41b82b,_0x4093d6,_0x22badd),_0xbdcafb=_0x41b82b[_0x486cc0(0x1f2)]['slice'](_0x4d4864,_0x22badd[_0x486cc0(0x20b)]);return Array[_0x486cc0(0x1c0)](_0xbdcafb)[_0x486cc0(0x1a3)](_0x2adc06=>_0x2adc06===_0x225989[_0x486cc0(0x219)]||_0x2adc06===_0x225989[_0x486cc0(0x1fb)]);}function k(_0x5222d4){const _0x2ee14d=_0x3fb85f;return _0x1ad342[_0x2ee14d(0x204)](_0x5222d4);}function A(_0x29dc56){const _0x2ab416=_0x3fb85f;if(!_0x29dc56[_0x2ab416(0x1c5)])throw Error(_0x2ab416(0x20e));return _0x29dc56[_0x2ab416(0x1c5)];}function ge(_0x19382b,_0x32fcfb,_0x5a4290){const _0x22efcf=_0x3fb85f;if(_0x32fcfb==null||_0x5a4290==null){let _0x396e50=_e(_0x19382b);return{'startOffset':_0x396e50,'endOffset':_0x396e50};}let _0x2d437c=Math[_0x22efcf(0x227)](_0x32fcfb,_0x5a4290),_0x3a13a4=Math[_0x22efcf(0x1c3)](_0x32fcfb,_0x5a4290);return _0x2d437c===_0x3a13a4?{'startOffset':_0x2d437c,'endOffset':_0x2d437c}:ye(_0x19382b,_0x2d437c,_0x3a13a4);}function _e(_0x3a16e1){const _0x1457c2=_0x3fb85f;return _0x3a16e1[_0x1457c2(0x1f2)]['endsWith'](_0x225989['SECTION_BREAK'])?Math[_0x1457c2(0x1c3)](0x0,_0x3a16e1[_0x1457c2(0x1f2)][_0x1457c2(0x1fe)]-0x1):_0x3a16e1[_0x1457c2(0x1f2)]['length'];}function ve(_0x4db78f,_0x8e3bd0,_0x1e558e){const _0x5165ed=_0x3fb85f;var _0x14923b;let _0x53d7a6=Math[_0x5165ed(0x227)](_0x8e3bd0,_0x1e558e),_0x2af70a=Math['max'](_0x8e3bd0,_0x1e558e);return!!((_0x14923b=_0x4db78f[_0x5165ed(0x1d1)])!=null&&_0x14923b[_0x5165ed(0x1c2)](_0x198b8f=>_0x53d7a6>_0x198b8f['startIndex']&&_0x53d7a6<_0x198b8f[_0x5165ed(0x1d9)]||_0x2af70a>_0x198b8f[_0x5165ed(0x20b)]&&_0x2af70a<_0x198b8f[_0x5165ed(0x1d9)]||_0x53d7a6<=_0x198b8f[_0x5165ed(0x20b)]&&_0x2af70a>=_0x198b8f['endIndex']));}function ye(_0x18169e,_0x2b2a00,_0x4c79da){const _0x3e4fe8=_0x3fb85f;var _0x4c9998,_0x2c0128;let _0x534b57=[...(_0x4c9998=_0x18169e[_0x3e4fe8(0x1e3)])==null?[]:_0x4c9998][_0x3e4fe8(0x1ea)]((_0x456a64,_0x2ab3dd)=>_0x456a64[_0x3e4fe8(0x20b)]-_0x2ab3dd[_0x3e4fe8(0x20b)]),_0x1932bc=_0x534b57[_0x3e4fe8(0x1f8)]((_0x26882e,_0xe9dd96)=>(_0xe9dd96===0x0?0x0:_0x534b57[_0xe9dd96-0x1]['startIndex']+0x1)<=_0x2b2a00&&_0x2b2a00<=_0x26882e['startIndex']),_0x1fc47f=(_0x2c0128=_0x534b57[_0x3e4fe8(0x1f8)](_0x5a2df7=>_0x5a2df7[_0x3e4fe8(0x20b)]>=_0x4c79da-0x1))==null?_0x534b57[_0x534b57['length']-0x1]:_0x2c0128;return{'startOffset':_0x1932bc?j(_0x534b57,_0x1932bc):_0x2b2a00,'endOffset':_0x1fc47f?_0x1fc47f[_0x3e4fe8(0x20b)]+0x1:_0x4c79da};}function _0x58fb(_0x497824,_0xdd7ed){_0x497824=_0x497824-0x19f;const _0x557c9c=_0x557c();let _0x58fb32=_0x557c9c[_0x497824];return _0x58fb32;}function j(_0x387988,_0x24566e){const _0x22cdf8=_0x3fb85f;let _0x5bdd04=_0x387988[_0x22cdf8(0x1e1)](_0x24566e);return _0x5bdd04>0x0?_0x387988[_0x5bdd04-0x1][_0x22cdf8(0x20b)]+0x1:0x0;}function M(_0x36d16e,_0x140253,_0x3ec73f){const _0xf760fb=_0x3fb85f;var _0x22ddc7;return Math[_0xf760fb(0x1c3)](j((_0x22ddc7=_0x36d16e[_0xf760fb(0x1e3)])==null?[]:_0x22ddc7,_0x3ec73f),_0x140253[_0xf760fb(0x20b)]+0x1);}function N(_0x223251,_0x31926b){const _0x349234=_0x3fb85f;return _0x223251['dataStream'][_0x31926b[_0x349234(0x1d9)]]===_0x225989[_0x349234(0x1fb)]?_0x31926b[_0x349234(0x1d9)]:_0x223251[_0x349234(0x1f2)][_0x31926b[_0x349234(0x1d9)]+0x1]===_0x225989[_0x349234(0x1fb)]?_0x31926b['endIndex']+0x1:_0x31926b[_0x349234(0x1d9)];}function be(_0x15450c,_0xe8e3e3,_0x4e3d95,_0x2a39ab){const _0x2a6ad0=_0x3fb85f;var _0x29b386,_0x2c4bf5;let _0x3e48d6=N(_0x15450c,_0xe8e3e3),_0x23ca61=((_0x29b386=_0x15450c[_0x2a6ad0(0x1e3)])==null?[]:_0x29b386)[_0x2a6ad0(0x1f8)](_0x2e48c0=>_0x2e48c0[_0x2a6ad0(0x20b)]===_0x3e48d6+0x1);if(!_0x23ca61||_0x2a39ab!=null&&_0x23ca61[_0x2a6ad0(0x20b)]!==_0x2a39ab||_0x4e3d95<_0x3e48d6||_0x4e3d95>_0x23ca61[_0x2a6ad0(0x20b)]+0x1||_0x15450c['dataStream'][_0x23ca61[_0x2a6ad0(0x20b)]]!==_0x225989[_0x2a6ad0(0x1a4)])return null;let _0x2ab279=j((_0x2c4bf5=_0x15450c['paragraphs'])==null?[]:_0x2c4bf5,_0x23ca61),_0x1f83ae=_0x15450c[_0x2a6ad0(0x1f2)][_0x2a6ad0(0x21a)](_0x2ab279,_0x23ca61[_0x2a6ad0(0x20b)]);return Array[_0x2a6ad0(0x1c0)](_0x1f83ae)[_0x2a6ad0(0x1a3)](_0x39fc05=>_0x39fc05===_0x225989['BLOCK_END'])?{'paragraph':_0x23ca61,'endTokenOffset':_0x3e48d6}:null;}function P(_0x402fa3,_0x22c61b,_0x1866db,_0x5d14fb={}){const _0x8e7ad1=_0x3fb85f;var _0x44a98d,_0x3bf90e;if(_0x1866db){if(_0x402fa3[_0x8e7ad1(0x1f2)]=''+_0x402fa3[_0x8e7ad1(0x1f2)]['slice'](0x0,_0x22c61b)+_0x1866db+_0x402fa3[_0x8e7ad1(0x1f2)][_0x8e7ad1(0x21a)](_0x22c61b),Se(_0x402fa3,_0x22c61b,_0x1866db[_0x8e7ad1(0x1fe)]),(_0x44a98d=_0x5d14fb['paragraphs'])!=null&&_0x44a98d[_0x8e7ad1(0x1fe)]){var _0x1857ef;_0x402fa3[_0x8e7ad1(0x1e3)]=[...(_0x1857ef=_0x402fa3[_0x8e7ad1(0x1e3)])==null?[]:_0x1857ef,..._0x5d14fb[_0x8e7ad1(0x1e3)]['map'](_0xd48c79=>({..._0xd48c79,'startIndex':_0xd48c79[_0x8e7ad1(0x20b)]+_0x22c61b}))][_0x8e7ad1(0x1ea)]((_0x3902e3,_0x3c9184)=>_0x3902e3['startIndex']-_0x3c9184[_0x8e7ad1(0x20b)]);}if((_0x3bf90e=_0x5d14fb['blockRanges'])!=null&&_0x3bf90e[_0x8e7ad1(0x1fe)]){var _0x50b120;_0x402fa3[_0x8e7ad1(0x1ca)]=[...(_0x50b120=_0x402fa3['blockRanges'])==null?[]:_0x50b120,..._0x5d14fb[_0x8e7ad1(0x1ca)][_0x8e7ad1(0x1d6)](_0x432cc7=>({..._0x432cc7,'startIndex':_0x432cc7[_0x8e7ad1(0x20b)]+_0x22c61b,'endIndex':_0x432cc7['endIndex']+_0x22c61b}))][_0x8e7ad1(0x1ea)]((_0x1b3c02,_0x4f0a59)=>_0x1b3c02[_0x8e7ad1(0x20b)]-_0x4f0a59['startIndex']);}}}function xe(_0x242e76,_0x522992,_0x25e26b){const _0x250453=_0x3fb85f;let _0x41e6b2=_0x25e26b-_0x522992;_0x242e76['dataStream']=''+_0x242e76[_0x250453(0x1f2)][_0x250453(0x21a)](0x0,_0x522992)+_0x242e76[_0x250453(0x1f2)][_0x250453(0x21a)](_0x25e26b),Ce(_0x242e76,_0x522992,_0x41e6b2);}function Se(_0x4ae172,_0x1554db,_0x10ca8c){const _0x559c8b=_0x3fb85f;_0x4ae172[_0x559c8b(0x1e3)]=F(_0x4ae172['paragraphs'],_0x1554db,_0x10ca8c),_0x4ae172['sectionBreaks']=F(_0x4ae172[_0x559c8b(0x1ac)],_0x1554db,_0x10ca8c),_0x4ae172['customBlocks']=F(_0x4ae172['customBlocks'],_0x1554db,_0x10ca8c),_0x4ae172[_0x559c8b(0x1f1)]=we(_0x4ae172[_0x559c8b(0x1f1)],_0x1554db,_0x10ca8c),_0x4ae172['tables']=L(_0x4ae172[_0x559c8b(0x1d1)],_0x1554db,_0x10ca8c),_0x4ae172[_0x559c8b(0x21b)]=L(_0x4ae172[_0x559c8b(0x21b)],_0x1554db,_0x10ca8c),_0x4ae172[_0x559c8b(0x1b0)]=L(_0x4ae172[_0x559c8b(0x1b0)],_0x1554db,_0x10ca8c),_0x4ae172[_0x559c8b(0x1ca)]=L(_0x4ae172['blockRanges'],_0x1554db,_0x10ca8c);}function Ce(_0x49524f,_0x4bfd3a,_0x7dfb72){const _0x2d5fe6=_0x3fb85f;var _0x3f3c33,_0x5e0af3;_0x49524f['paragraphs']=I(_0x49524f[_0x2d5fe6(0x1e3)],_0x4bfd3a,_0x7dfb72),_0x49524f['sectionBreaks']=I(_0x49524f[_0x2d5fe6(0x1ac)],_0x4bfd3a,_0x7dfb72),_0x49524f[_0x2d5fe6(0x1ba)]=I(_0x49524f[_0x2d5fe6(0x1ba)],_0x4bfd3a,_0x7dfb72),_0x49524f[_0x2d5fe6(0x1f1)]=(_0x3f3c33=R((_0x5e0af3=_0x49524f['textRuns'])==null?void 0x0:_0x5e0af3[_0x2d5fe6(0x1d6)](_0x3f92d8=>({..._0x3f92d8,'startIndex':_0x3f92d8['st'],'endIndex':_0x3f92d8['ed']})),_0x4bfd3a,_0x7dfb72))==null?void 0x0:_0x3f3c33[_0x2d5fe6(0x1d6)](_0x559209=>{let {startIndex:_0x3fcbd4,endIndex:_0x535f29,..._0x20150b}=_0x559209;return{..._0x20150b,'st':_0x3fcbd4,'ed':_0x535f29};}),_0x49524f[_0x2d5fe6(0x1d1)]=R(_0x49524f[_0x2d5fe6(0x1d1)],_0x4bfd3a,_0x7dfb72),_0x49524f[_0x2d5fe6(0x21b)]=R(_0x49524f[_0x2d5fe6(0x21b)],_0x4bfd3a,_0x7dfb72),_0x49524f['customDecorations']=R(_0x49524f['customDecorations'],_0x4bfd3a,_0x7dfb72),_0x49524f[_0x2d5fe6(0x1ca)]=R(_0x49524f['blockRanges'],_0x4bfd3a,_0x7dfb72);}function F(_0x1e2f1c,_0x40b665,_0x125ae5){const _0xfd74df=_0x3fb85f;return _0x1e2f1c==null?void 0x0:_0x1e2f1c[_0xfd74df(0x1d6)](_0x25cba7=>_0x25cba7[_0xfd74df(0x20b)]>=_0x40b665?{..._0x25cba7,'startIndex':_0x25cba7[_0xfd74df(0x20b)]+_0x125ae5}:_0x25cba7);}function I(_0x9408a0,_0x43e282,_0x3e1ed8){const _0x2127b5=_0x3fb85f;let _0x37374d=_0x43e282+_0x3e1ed8;return _0x9408a0==null?void 0x0:_0x9408a0['map'](_0x492570=>_0x492570['startIndex']>=_0x43e282&&_0x492570[_0x2127b5(0x20b)]<_0x37374d?null:_0x492570[_0x2127b5(0x20b)]>=_0x37374d?{..._0x492570,'startIndex':_0x492570[_0x2127b5(0x20b)]-_0x3e1ed8}:_0x492570)[_0x2127b5(0x21d)](_0x39664a=>_0x39664a!=null);}function we(_0x26326c,_0x41cba7,_0x5154ef){return _0x26326c==null?void 0x0:_0x26326c['map'](_0x28302c=>_0x28302c['st']>=_0x41cba7?{..._0x28302c,'st':_0x28302c['st']+_0x5154ef,'ed':_0x28302c['ed']+_0x5154ef}:_0x28302c['ed']>_0x41cba7?{..._0x28302c,'ed':_0x28302c['ed']+_0x5154ef}:_0x28302c);}function _0x557c(){const _0x14dae9=['previousDocumentData','call','_resourceManagerService','nextMetadata','syncExecuteCommand','326219CuxoFB','sectionBreaks','_injector','disposeWithMe','get','customDecorations','indentStart','49860JsDXQq','paragraph','getCurrentUnitOfType','registerPluginResource','53221656FCmwwH','direction','deserialize','codes','customBlocks','constructor','UNIVER_DOC','70lQGHsz','next','packageName','from','373014NvdCLV','some','max','add','body','_change$','_setResource','fromEntries','setCodeConfig','blockRanges','1480mLYOVr','function','documentData','replaceOp','unitId','31555DgSLdV','tables','set','_resources','parse','metadata','map','removeUnit','docs-code.command.exit','endIndex','_commandService','_initResource','12284888YyKWaj','getUniverDocInstance','blockId','forEach','object','indexOf','CODE','paragraphs','docs-code.command.cancel-empty-paragraph','spaceAbove','compose','decorate','asObservable','blockType','sort','72mGSbPV','javascript','model','getParagraphsInRange','COMMAND','_configService','textRuns','dataStream','prototype','symbol','setConfig','21wnhwXI','getOwnPropertyDescriptor','find','paragraphStyle','6jPpkwL','BLOCK_END','getInstance','delete','length','onStarting','diffValue','cursorOffset','paragraphStartIndex','@univerjs-pro/docs-code','deepClone','spaceBelow','0.25.0-insiders.20260608-e4336f7','config','commandService','pluginName','iterator','startIndex','change$','toPrimitive','Document\x20body\x20is\x20required','63819EmZXMh','_config','entries','complete','DOC_CODE_PLUGIN','right','docs-code.command.insert','string','indentEnd','docs-code.command.update','BLOCK_START','slice','customRanges','serialize','filter','getCodeConfig','_docsCodeModel','docs-code.command.insert-below','registerCommand','join','getBody','stringify','nextDocumentData','reduce','min','textStyle','startOffset','default','getUnitId','monospace','endOffset','removeCode','every','PARAGRAPH','defineProperty'];_0x557c=function(){return _0x14dae9;};return _0x557c();}function L(_0x5d6bf5,_0x5b3616,_0x17c38f){const _0x38477d=_0x3fb85f;return _0x5d6bf5==null?void 0x0:_0x5d6bf5[_0x38477d(0x1d6)](_0x48806c=>_0x48806c[_0x38477d(0x20b)]>=_0x5b3616?{..._0x48806c,'startIndex':_0x48806c[_0x38477d(0x20b)]+_0x17c38f,'endIndex':_0x48806c[_0x38477d(0x1d9)]+_0x17c38f}:_0x48806c['endIndex']>=_0x5b3616?{..._0x48806c,'endIndex':_0x48806c[_0x38477d(0x1d9)]+_0x17c38f}:_0x48806c);}function R(_0x1edc54,_0x4ad8dd,_0x729d9e){const _0x85ef5e=_0x3fb85f;let _0x422e3c=_0x4ad8dd+_0x729d9e;return _0x1edc54==null?void 0x0:_0x1edc54[_0x85ef5e(0x1d6)](_0x2e1130=>_0x2e1130[_0x85ef5e(0x20b)]>=_0x4ad8dd&&_0x2e1130[_0x85ef5e(0x1d9)]<_0x422e3c?null:_0x2e1130[_0x85ef5e(0x20b)]>=_0x422e3c?{..._0x2e1130,'startIndex':_0x2e1130[_0x85ef5e(0x20b)]-_0x729d9e,'endIndex':_0x2e1130[_0x85ef5e(0x1d9)]-_0x729d9e}:_0x2e1130['endIndex']>=_0x4ad8dd?{..._0x2e1130,'startIndex':_0x2e1130[_0x85ef5e(0x20b)]<_0x4ad8dd?_0x2e1130['startIndex']:_0x4ad8dd,'endIndex':Math['max'](_0x4ad8dd,_0x2e1130[_0x85ef5e(0x1d9)]-_0x729d9e)}:_0x2e1130)[_0x85ef5e(0x21d)](_0x46225a=>_0x46225a!=null);}function z(_0x21c99f,_0x4a4f01,_0x54cc99,_0x18760b){const _0xe8576a=_0x3fb85f;_0x21c99f==null||_0x21c99f[_0xe8576a(0x1df)](_0x579e0e=>{const _0x167c77=_0xe8576a;_0x579e0e[_0x167c77(0x20b)]>=_0x4a4f01&&_0x579e0e['startIndex']<_0x54cc99&&(_0x579e0e['startIndex']+=_0x18760b);});}function Te(_0x47ffb7,_0x1307c0,_0x86bc49,_0x1f37e5){const _0x437aae=_0x3fb85f;_0x47ffb7==null||_0x47ffb7[_0x437aae(0x1df)](_0x376625=>{_0x376625['st']>=_0x1307c0&&_0x376625['st']<_0x86bc49?(_0x376625['st']+=_0x1f37e5,_0x376625['ed']+=_0x1f37e5):_0x376625['ed']>_0x1307c0&&_0x376625['ed']<_0x86bc49&&(_0x376625['ed']+=_0x1f37e5);});}function B(_0xa730c7,_0x48c0f4,_0x4f464f,_0x44718b){_0xa730c7==null||_0xa730c7['forEach'](_0x54171e=>{const _0xd51997=_0x58fb;_0x54171e['startIndex']>=_0x48c0f4&&_0x54171e[_0xd51997(0x20b)]<_0x4f464f?(_0x54171e[_0xd51997(0x20b)]+=_0x44718b,_0x54171e['endIndex']+=_0x44718b):_0x54171e[_0xd51997(0x1d9)]>_0x48c0f4&&_0x54171e[_0xd51997(0x1d9)]<_0x4f464f&&(_0x54171e['endIndex']+=_0x44718b);});}function V(_0x3f0e1d){'@babel/helpers - typeof';const _0xfe8132=_0x3fb85f;return V=typeof Symbol==_0xfe8132(0x1cc)&&typeof Symbol[_0xfe8132(0x20a)]==_0xfe8132(0x1f4)?function(_0x1c22c4){return typeof _0x1c22c4;}:function(_0x2ffe8f){const _0x11db04=_0xfe8132;return _0x2ffe8f&&typeof Symbol==_0x11db04(0x1cc)&&_0x2ffe8f[_0x11db04(0x1bb)]===Symbol&&_0x2ffe8f!==Symbol[_0x11db04(0x1f3)]?_0x11db04(0x1f4):typeof _0x2ffe8f;},V(_0x3f0e1d);}function Ee(_0x52883b,_0xa8062a){const _0x13ce3a=_0x3fb85f;if(V(_0x52883b)!=_0x13ce3a(0x1e0)||!_0x52883b)return _0x52883b;var _0x485562=_0x52883b[Symbol[_0x13ce3a(0x20d)]];if(_0x485562!==void 0x0){var _0x1cb47d=_0x485562[_0x13ce3a(0x1a7)](_0x52883b,_0xa8062a||_0x13ce3a(0x22a));if(V(_0x1cb47d)!=_0x13ce3a(0x1e0))return _0x1cb47d;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0xa8062a==='string'?String:Number)(_0x52883b);}function De(_0x2b5506){const _0x143a58=_0x3fb85f;var _0x5e607d=Ee(_0x2b5506,_0x143a58(0x216));return V(_0x5e607d)=='symbol'?_0x5e607d:_0x5e607d+'';}function H(_0xfd318f,_0x22270a,_0x1b6faa){const _0x12e9ef=_0x3fb85f;return(_0x22270a=De(_0x22270a))in _0xfd318f?Object[_0x12e9ef(0x1a5)](_0xfd318f,_0x22270a,{'value':_0x1b6faa,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0xfd318f[_0x22270a]=_0x1b6faa,_0xfd318f;}var U=class extends _0x4b273f{constructor(..._0x20ae6a){const _0x44aec1=_0x3fb85f;super(..._0x20ae6a),H(this,_0x44aec1(0x1d3),new Map()),H(this,_0x44aec1(0x1c6),new _0x161704()),H(this,_0x44aec1(0x20c),this['_change$'][_0x44aec1(0x1e8)]());}[_0x3fb85f(0x21e)](_0x2bbec5,_0x3bc513){const _0x43a42b=_0x3fb85f;return w(this[_0x43a42b(0x1d3)][_0x43a42b(0x1af)](_0x2bbec5))[_0x43a42b(0x1b9)][_0x3bc513];}[_0x3fb85f(0x1c9)](_0x5bab5e,_0x40831e,_0x9593fc){const _0x5cf984=_0x3fb85f;this['_setResource'](_0x5bab5e,_0x40831e,T(this[_0x5cf984(0x1d3)]['get'](_0x5bab5e),_0x40831e,_0x9593fc));}[_0x3fb85f(0x1a2)](_0x462577,_0x11091f){const _0x566a0d=_0x3fb85f;this[_0x566a0d(0x1c7)](_0x462577,_0x11091f,ne(this[_0x566a0d(0x1d3)][_0x566a0d(0x1af)](_0x462577),_0x11091f));}[_0x3fb85f(0x21c)](_0x425442){const _0x395716=_0x3fb85f;return w(this[_0x395716(0x1d3)]['get'](_0x425442));}[_0x3fb85f(0x1b8)](_0x56a997,_0x546c34){const _0x1aebfa=_0x3fb85f;this[_0x1aebfa(0x1d3)]['set'](_0x56a997,w(_0x546c34)),this['_change$'][_0x1aebfa(0x1be)]({'unitId':_0x56a997});}[_0x3fb85f(0x1d7)](_0x4539d8){const _0x53a378=_0x3fb85f;this[_0x53a378(0x1d3)][_0x53a378(0x1fd)](_0x4539d8),this[_0x53a378(0x1c6)][_0x53a378(0x1be)]({'unitId':_0x4539d8});}['dispose'](){const _0x5e15be=_0x3fb85f;super['dispose'](),this[_0x5e15be(0x1d3)]['clear'](),this[_0x5e15be(0x1c6)][_0x5e15be(0x212)]();}['_setResource'](_0x2d585f,_0x2d4157,_0x5b54cd){const _0x3e90da=_0x3fb85f;this['_resources'][_0x3e90da(0x1d2)](_0x2d585f,_0x5b54cd),this[_0x3e90da(0x1c6)][_0x3e90da(0x1be)]({'unitId':_0x2d585f,'blockId':_0x2d4157});}};const Oe={'id':_0x3fb85f(0x220),'type':_0x4f0b2b[_0x3fb85f(0x1ef)],'handler':_0x195e6f=>{const _0x5396f1=_0x3fb85f;let _0x2a2b22=Me(_0x195e6f);if(_0x2a2b22)return _0x195e6f[_0x5396f1(0x1af)](_0x47dec0)[_0x5396f1(0x1aa)](W['id'],{'startOffset':_0x2a2b22[_0x5396f1(0x229)],'endOffset':_0x2a2b22['endOffset'],'unitId':_0x2a2b22['unitId']});let _0x1b0c17=Ne(_0x195e6f);if(!_0x1b0c17)return!0x1;let _0x55cfa2=_0x1b0c17['startIndex']+0x1;return _0x195e6f[_0x5396f1(0x1af)](_0x47dec0)[_0x5396f1(0x1aa)](W['id'],{'startOffset':_0x55cfa2,'endOffset':_0x55cfa2});}},ke={'id':'docs-code.command.consume-boundary-delete','type':_0x4f0b2b[_0x3fb85f(0x1ef)],'handler':()=>!0x0},W={'id':_0x3fb85f(0x215),'type':_0x4f0b2b[_0x3fb85f(0x1ef)],'handler':(_0x4b32d9,_0x212c4a)=>{const _0x4b8b3c=_0x3fb85f;var _0x18b0c0,_0x3a4c62,_0x5375a1;let _0x348635=K(_0x4b32d9,_0x212c4a==null?void 0x0:_0x212c4a[_0x4b8b3c(0x1cf)]);if(!_0x348635)return!0x1;let _0x300801=q(_0x4b32d9),_0xb8c053=E({'blockId':(_0x18b0c0=_0x212c4a==null?void 0x0:_0x212c4a['blockId'])==null?_0x57a8f5(0x6):_0x18b0c0,'config':_0x212c4a==null?void 0x0:_0x212c4a[_0x4b8b3c(0x207)],'documentData':_0x348635[_0x4b8b3c(0x1a6)],'endOffset':(_0x3a4c62=_0x212c4a==null?void 0x0:_0x212c4a[_0x4b8b3c(0x1a1)])==null?_0x300801==null?void 0x0:_0x300801[_0x4b8b3c(0x1a1)]:_0x3a4c62,'metadata':_0x348635[_0x4b8b3c(0x1ed)][_0x4b8b3c(0x21c)](_0x348635[_0x4b8b3c(0x1cf)]),'startOffset':(_0x5375a1=_0x212c4a==null?void 0x0:_0x212c4a[_0x4b8b3c(0x229)])==null?_0x300801==null?void 0x0:_0x300801['startOffset']:_0x5375a1}),_0x527e9e=Y(_0x348635['commandService'],_0x348635['unitId'],_0x348635[_0x4b8b3c(0x1a6)],_0xb8c053[_0x4b8b3c(0x225)],_0xb8c053[_0x4b8b3c(0x201)]);return _0x527e9e&&_0xb8c053[_0x4b8b3c(0x1a9)]&&_0x348635[_0x4b8b3c(0x1ed)][_0x4b8b3c(0x1b8)](_0x348635[_0x4b8b3c(0x1cf)],_0xb8c053[_0x4b8b3c(0x1a9)]),_0x527e9e;}},Ae={'id':_0x3fb85f(0x218),'type':_0x4f0b2b[_0x3fb85f(0x1ef)],'handler':(_0x4dec8d,_0x37418e)=>{const _0x3b90ab=_0x3fb85f;if(!_0x37418e)return!0x1;let _0x3ec3d3=K(_0x4dec8d,_0x37418e[_0x3b90ab(0x1cf)]);if(!_0x3ec3d3)return!0x1;let _0x548d7b=D({'blockId':_0x37418e[_0x3b90ab(0x1de)],'config':_0x37418e['config'],'documentData':_0x3ec3d3[_0x3b90ab(0x1a6)],'metadata':_0x3ec3d3['model'][_0x3b90ab(0x21c)](_0x3ec3d3[_0x3b90ab(0x1cf)])});return _0x548d7b[_0x3b90ab(0x1a9)]&&_0x3ec3d3['model'][_0x3b90ab(0x1b8)](_0x3ec3d3['unitId'],_0x548d7b[_0x3b90ab(0x1a9)]),!0x0;}},je={'id':_0x3fb85f(0x1d8),'type':_0x4f0b2b['COMMAND'],'handler':(_0x5db04a,_0x134e87)=>{const _0x1b0854=_0x3fb85f;var _0x58ff85,_0x399cf2;let _0xa0c014=K(_0x5db04a,_0x134e87==null?void 0x0:_0x134e87[_0x1b0854(0x1cf)]);if(!_0xa0c014)return!0x1;let _0xfa8329=(_0x58ff85=_0x134e87==null?void 0x0:_0x134e87[_0x1b0854(0x201)])==null?(_0x399cf2=q(_0x5db04a))==null?void 0x0:_0x399cf2[_0x1b0854(0x229)]:_0x58ff85;if(_0xfa8329==null)return!0x1;let _0x5e61b8=oe({'cursorOffset':_0xfa8329,'documentData':_0xa0c014[_0x1b0854(0x1a6)]});return _0x5e61b8?Y(_0xa0c014['commandService'],_0xa0c014['unitId'],_0xa0c014[_0x1b0854(0x1a6)],_0x5e61b8[_0x1b0854(0x225)],_0x5e61b8[_0x1b0854(0x201)]):!0x1;}},G={'id':_0x3fb85f(0x1e4),'type':_0x4f0b2b[_0x3fb85f(0x1ef)],'handler':(_0x4232cf,_0x8cd504)=>{const _0x11040=_0x3fb85f;var _0x452d62,_0x278241;let _0x2078d9=K(_0x4232cf,_0x8cd504==null?void 0x0:_0x8cd504[_0x11040(0x1cf)]);if(!_0x2078d9)return!0x1;let _0xab630c=(_0x452d62=_0x8cd504==null?void 0x0:_0x8cd504['cursorOffset'])==null?(_0x278241=q(_0x4232cf))==null?void 0x0:_0x278241[_0x11040(0x229)]:_0x452d62;if(_0xab630c==null)return!0x1;let _0x59dd11=se({'cursorOffset':_0xab630c,'documentData':_0x2078d9['previousDocumentData'],'paragraphStartIndex':_0x8cd504==null?void 0x0:_0x8cd504['paragraphStartIndex']});return _0x59dd11?Y(_0x2078d9[_0x11040(0x208)],_0x2078d9[_0x11040(0x1cf)],_0x2078d9[_0x11040(0x1a6)],_0x59dd11[_0x11040(0x225)],_0x59dd11[_0x11040(0x201)]):!0x1;}};function K(_0x1a74e6,_0x2d2147){const _0x51f7dc=_0x3fb85f;let _0x3da0eb=_0x1a74e6[_0x51f7dc(0x1af)](_0x2d0bd1),_0xb7717c=_0x2d2147?_0x3da0eb[_0x51f7dc(0x1dd)](_0x2d2147):_0x3da0eb[_0x51f7dc(0x1b4)](_0x2d29fd['UNIVER_DOC']);return _0xb7717c?{'commandService':_0x1a74e6['get'](_0x47dec0),'model':_0x1a74e6[_0x51f7dc(0x1af)](U),'previousDocumentData':_0xb7717c['getSnapshot'](),'unitId':_0xb7717c[_0x51f7dc(0x19f)]()}:null;}function q(_0x488d41){const _0x204df5=_0x3fb85f;var _0x3b7a0b;return(_0x3b7a0b=_0x488d41[_0x204df5(0x1af)](_0x566c02)['getTextRanges']())==null?void 0x0:_0x3b7a0b[0x0];}function Me(_0x3e6cd2){const _0x55a1ed=_0x3fb85f;var _0x539cad;let _0x5d5257=(_0x539cad=_0x3e6cd2[_0x55a1ed(0x1af)](_0x2d0bd1)[_0x55a1ed(0x1b4)](_0x2d29fd['UNIVER_DOC']))==null?void 0x0:_0x539cad[_0x55a1ed(0x19f)]();try{return _0x3e6cd2[_0x55a1ed(0x1af)](_0x498fcb)['consumeInsertRange'](_0x5d5257);}catch{return null;}}function Ne(_0x3fef2f){const _0x2ba428=_0x3fb85f;var _0x5e4f76,_0xbe5b32,_0x37e410;let _0x2c9dd5=q(_0x3fef2f);if(!_0x2c9dd5)return null;let _0x3a102e=_0x3fef2f[_0x2ba428(0x1af)](_0x2d0bd1)[_0x2ba428(0x1b4)](_0x2d29fd['UNIVER_DOC']),_0x318092=_0x3a102e==null?void 0x0:_0x3a102e[_0x2ba428(0x223)]();return _0x318092?(_0x5e4f76=_0x409809['range'][_0x2ba428(0x1ee)](_0x2c9dd5,(_0xbe5b32=_0x318092['paragraphs'])==null?[]:_0xbe5b32,(_0x37e410=_0x318092[_0x2ba428(0x1f2)])==null?'':_0x37e410)[0x0])==null?null:_0x5e4f76:null;}function Pe(_0x1865c2,_0x3a8e0d){const _0x228a6d=_0x3fb85f;var _0x4a603a,_0x2f69b1,_0x2d896c,_0x16e823,_0x226de1,_0x3b9903,_0x13443b,_0x1bb52b,_0x279ce4,_0x50bca4,_0x535454,_0x2d9cd0,_0x54fa3b,_0x50c362,_0x250ea3,_0x4b9ce7,_0x543644,_0x2567d9;let _0x472a0c=_0x1f7576[_0x228a6d(0x1fc)]();return[J(_0x472a0c,[_0x228a6d(0x1c5),_0x228a6d(0x1f2)],(_0x4a603a=_0x1865c2[_0x228a6d(0x1c5)])==null?void 0x0:_0x4a603a[_0x228a6d(0x1f2)],(_0x2f69b1=_0x3a8e0d['body'])==null?void 0x0:_0x2f69b1[_0x228a6d(0x1f2)]),J(_0x472a0c,['body',_0x228a6d(0x1e3)],(_0x2d896c=_0x1865c2['body'])==null?void 0x0:_0x2d896c[_0x228a6d(0x1e3)],(_0x16e823=_0x3a8e0d[_0x228a6d(0x1c5)])==null?void 0x0:_0x16e823[_0x228a6d(0x1e3)]),J(_0x472a0c,[_0x228a6d(0x1c5),_0x228a6d(0x1ac)],(_0x226de1=_0x1865c2[_0x228a6d(0x1c5)])==null?void 0x0:_0x226de1['sectionBreaks'],(_0x3b9903=_0x3a8e0d[_0x228a6d(0x1c5)])==null?void 0x0:_0x3b9903[_0x228a6d(0x1ac)]),J(_0x472a0c,['body',_0x228a6d(0x1f1)],(_0x13443b=_0x1865c2[_0x228a6d(0x1c5)])==null?void 0x0:_0x13443b[_0x228a6d(0x1f1)],(_0x1bb52b=_0x3a8e0d[_0x228a6d(0x1c5)])==null?void 0x0:_0x1bb52b[_0x228a6d(0x1f1)]),J(_0x472a0c,[_0x228a6d(0x1c5),_0x228a6d(0x1ba)],(_0x279ce4=_0x1865c2[_0x228a6d(0x1c5)])==null?void 0x0:_0x279ce4[_0x228a6d(0x1ba)],(_0x50bca4=_0x3a8e0d['body'])==null?void 0x0:_0x50bca4['customBlocks']),J(_0x472a0c,['body',_0x228a6d(0x21b)],(_0x535454=_0x1865c2['body'])==null?void 0x0:_0x535454['customRanges'],(_0x2d9cd0=_0x3a8e0d[_0x228a6d(0x1c5)])==null?void 0x0:_0x2d9cd0[_0x228a6d(0x21b)]),J(_0x472a0c,[_0x228a6d(0x1c5),_0x228a6d(0x1b0)],(_0x54fa3b=_0x1865c2[_0x228a6d(0x1c5)])==null?void 0x0:_0x54fa3b[_0x228a6d(0x1b0)],(_0x50c362=_0x3a8e0d[_0x228a6d(0x1c5)])==null?void 0x0:_0x50c362[_0x228a6d(0x1b0)]),J(_0x472a0c,[_0x228a6d(0x1c5),'tables'],(_0x250ea3=_0x1865c2[_0x228a6d(0x1c5)])==null?void 0x0:_0x250ea3[_0x228a6d(0x1d1)],(_0x4b9ce7=_0x3a8e0d[_0x228a6d(0x1c5)])==null?void 0x0:_0x4b9ce7[_0x228a6d(0x1d1)]),J(_0x472a0c,[_0x228a6d(0x1c5),_0x228a6d(0x1ca)],(_0x543644=_0x1865c2['body'])==null?void 0x0:_0x543644[_0x228a6d(0x1ca)],(_0x2567d9=_0x3a8e0d[_0x228a6d(0x1c5)])==null?void 0x0:_0x2567d9[_0x228a6d(0x1ca)])][_0x228a6d(0x21d)](Boolean)[_0x228a6d(0x226)]((_0x5e7f35,_0xe057aa)=>_0x1f7576[_0x228a6d(0x1e6)](_0x5e7f35,_0xe057aa),null);}function J(_0x54d604,_0x21f501,_0x1240c3,_0x386965){const _0x2c7ce2=_0x3fb85f;return _0x1ad342[_0x2c7ce2(0x200)](_0x1240c3,_0x386965)?null:_0x54d604[_0x2c7ce2(0x1ce)](_0x21f501,_0x1240c3,_0x386965);}function Y(_0x97788b,_0x3e53de,_0x36f227,_0x28d8e1,_0x2d2691){const _0x3f5da4=_0x3fb85f;let _0x50dc82=Pe(_0x36f227,_0x28d8e1);return _0x50dc82?!!_0x97788b[_0x3f5da4(0x1aa)](_0x40822b['id'],{'unitId':_0x3e53de,'actions':_0x50dc82,'textRanges':[{'startOffset':_0x2d2691,'endOffset':_0x2d2691,'collapsed':!0x0}],'isEditing':!0x1}):!0x1;}const X=_0x3fb85f(0x213);var Fe=_0x3fb85f(0x203),Ie=_0x3fb85f(0x206);const Le={};function Z(_0x7b6ba,_0x4ad921){return function(_0x4aadbe,_0x498a5f){_0x4ad921(_0x4aadbe,_0x498a5f,_0x7b6ba);};}function Re(_0x5eb841,_0x142657,_0x5d6729,_0x385222){const _0x148f02=_0x3fb85f;var _0x17f38e=arguments[_0x148f02(0x1fe)],_0x2ae755=_0x17f38e<0x3?_0x142657:_0x385222===null?_0x385222=Object[_0x148f02(0x1f7)](_0x142657,_0x5d6729):_0x385222,_0x1509be;if(typeof Reflect==_0x148f02(0x1e0)&&typeof Reflect[_0x148f02(0x1e7)]==_0x148f02(0x1cc))_0x2ae755=Reflect[_0x148f02(0x1e7)](_0x5eb841,_0x142657,_0x5d6729,_0x385222);else{for(var _0x14ef8a=_0x5eb841[_0x148f02(0x1fe)]-0x1;_0x14ef8a>=0x0;_0x14ef8a--)(_0x1509be=_0x5eb841[_0x14ef8a])&&(_0x2ae755=(_0x17f38e<0x3?_0x1509be(_0x2ae755):_0x17f38e>0x3?_0x1509be(_0x142657,_0x5d6729,_0x2ae755):_0x1509be(_0x142657,_0x5d6729))||_0x2ae755);}return _0x17f38e>0x3&&_0x2ae755&&Object['defineProperty'](_0x142657,_0x5d6729,_0x2ae755),_0x2ae755;}let Q=class extends _0x4b273f{constructor(_0x598712,_0x5812ef){const _0x2fdd3c=_0x3fb85f;super(),this['_resourceManagerService']=_0x598712,this[_0x2fdd3c(0x21f)]=_0x5812ef,this['_initResource']();}[_0x3fb85f(0x1db)](){const _0x1056bf=_0x3fb85f;this[_0x1056bf(0x1ae)](this[_0x1056bf(0x1a8)][_0x1056bf(0x1b5)]({'pluginName':X,'businesses':[_0x2d29fd[_0x1056bf(0x1bc)]],'toJson':_0x2d601e=>JSON[_0x1056bf(0x224)](this[_0x1056bf(0x21f)][_0x1056bf(0x21c)](_0x2d601e)),'parseJson':_0x33da72=>w(JSON[_0x1056bf(0x1d4)](_0x33da72)),'onLoad':(_0x57886b,_0x2c581b)=>this['_docsCodeModel']['deserialize'](_0x57886b,_0x2c581b),'onUnLoad':_0xfdae1d=>this[_0x1056bf(0x21f)][_0x1056bf(0x1d7)](_0xfdae1d)}));}};Q=Re([Z(0x0,_0x16435a),Z(0x1,_0x3ba08f(U))],Q);let $=class extends _0x36058a{constructor(_0x568bb6=Le,_0x1157ce,_0x4f98e8,_0x1f3169){const _0x7c4e5f=_0x3fb85f;super(),this[_0x7c4e5f(0x210)]=_0x568bb6,this[_0x7c4e5f(0x1ad)]=_0x1157ce,this[_0x7c4e5f(0x1da)]=_0x4f98e8,this[_0x7c4e5f(0x1f0)]=_0x1f3169;let {..._0x224155}=_0x57e027({},Le,this['_config']);this[_0x7c4e5f(0x1f0)][_0x7c4e5f(0x1f5)]('docs-code.config',_0x224155);}[_0x3fb85f(0x1ff)](){const _0x35b60d=_0x3fb85f;this[_0x35b60d(0x1ad)]['add']([U]),this[_0x35b60d(0x1ad)][_0x35b60d(0x1c4)]([Q]),this['_injector'][_0x35b60d(0x1af)](U),this['_injector'][_0x35b60d(0x1af)](Q),[W,Oe,Ae,je,G,ke][_0x35b60d(0x1df)](_0x353ea2=>this[_0x35b60d(0x1ae)](this['_commandService'][_0x35b60d(0x221)](_0x353ea2)));}};H($,_0x3fb85f(0x209),X),H($,_0x3fb85f(0x1bf),Fe),H($,'version',Ie),H($,'type',_0x2d29fd[_0x3fb85f(0x1bc)]),$=Re([_0x20cd03(_0x3dc60a,_0x38efde),Z(0x1,_0x3ba08f(_0x160d3c)),Z(0x2,_0x47dec0),Z(0x3,_0x5c230c)],$);export{S as DEFAULT_CODE_CONFIG,X as DOCS_CODE_PLUGIN,G as DocsCodeCancelEmptyParagraphCommand,ke as DocsCodeConsumeBoundaryDeleteCommand,je as DocsCodeExitCommand,Oe as DocsCodeInsertBelowCommand,W as DocsCodeInsertCommand,U as DocsCodeModel,Ae as DocsCodeUpdateCommand,$ as UniverDocsCodePlugin,se as buildCancelEmptyCodeParagraphActions,oe as buildExitCodeActions,E as buildInsertCodeActions,D as buildUpdateCodeActions,le as findCodeRangeAtOffset,ue as isCodeBoundaryDelete,C as normalizeDocsCodeConfig};
1
+ const _0x560653=_0x54d9;(function(_0x30f1e1,_0x435b81){const _0x4c2ace=_0x54d9,_0x87253b=_0x30f1e1();while(!![]){try{const _0xcf4897=-parseInt(_0x4c2ace(0x164))/0x1+-parseInt(_0x4c2ace(0x159))/0x2*(parseInt(_0x4c2ace(0x125))/0x3)+-parseInt(_0x4c2ace(0x18b))/0x4+parseInt(_0x4c2ace(0x150))/0x5*(-parseInt(_0x4c2ace(0x12d))/0x6)+-parseInt(_0x4c2ace(0x162))/0x7*(-parseInt(_0x4c2ace(0x13b))/0x8)+parseInt(_0x4c2ace(0x186))/0x9+parseInt(_0x4c2ace(0x189))/0xa;if(_0xcf4897===_0x435b81)break;else _0x87253b['push'](_0x87253b['shift']());}catch(_0x2e0bee){_0x87253b['push'](_0x87253b['shift']());}}}(_0x4e4f,0x40196));import{BuildTextUtils as _0x17de4b,CommandType as _0x3163ae,DataStreamTreeTokenType as _0x22b95f,DependentOn as _0x545704,Disposable as _0x4d4eaf,DocumentBlockRangeType as _0x2156e3,ICommandService as _0x464daf,IConfigService as _0x42ffe8,IResourceManagerService as _0x53b05f,IUniverInstanceService as _0x3824cb,Inject as _0x554295,Injector as _0x144991,JSONX as _0x204cdd,Plugin as _0x3dff2c,Tools as _0x3b2d45,UniverInstanceType as _0x3e4192,createParagraphId as _0x11d706,generateRandomId as _0x590119,merge as _0x16de9b}from'@univerjs/core';import{DocContentInsertService as _0x312533,DocSelectionManagerService as _0x5e656f,RichTextEditingMutation as _0x447dce,UniverDocsPlugin as _0x3a0230}from'@univerjs/docs';import{Subject as _0x2b2e5b}from'rxjs';import{UniverLicensePlugin as _0x59fb22}from'@univerjs-pro/license';const S={'language':'javascript','showLineNumbers':!0x1,'tabSize':0x4,'wrap':!0x0};function C(_0x3376c6){return{...S,..._0x3376c6};}function w(_0x134153){const _0x3ed091=_0x54d9;var _0x23a42b;let _0x2c03ba=(_0x23a42b=_0x134153==null?void 0x0:_0x134153[_0x3ed091(0x16f)])==null?{}:_0x23a42b;return{'codes':Object['fromEntries'](Object['entries'](_0x2c03ba)[_0x3ed091(0x178)](([_0x2a73f1,_0x218c37])=>[_0x2a73f1,C(_0x218c37)]))};}function T(_0xb13c96,_0x1309cd,_0x6d8440){const _0x25bb04=_0x54d9;let _0x157c9a=w(_0xb13c96);return _0x157c9a[_0x25bb04(0x16f)][_0x1309cd]=C({..._0x157c9a[_0x25bb04(0x16f)][_0x1309cd],..._0x6d8440}),_0x157c9a;}function re(_0x50095c,_0x44f98d){const _0x31d495=_0x54d9;let _0x3eae5f=w(_0x50095c);return delete _0x3eae5f[_0x31d495(0x16f)][_0x44f98d],_0x3eae5f;}const ie='monospace';function ae(_0xb6ec2a){const _0x351fd4=_0x54d9;var _0x3b38f2,_0x186f1e,_0x287dab;let _0x656131=D(_0xb6ec2a[_0x351fd4(0x176)]),_0xd43709=O(_0x656131),_0x6a4590=se(_0xb6ec2a[_0x351fd4(0x15f)],_0xb6ec2a[_0x351fd4(0x17c)]),_0x3a079d=_0x6a4590?(_0x3b38f2=_0xd43709['blockRanges'])==null?void 0x0:_0x3b38f2[_0x351fd4(0x154)](_0x4b5163=>_0x4b5163['startIndex']===_0x6a4590['startOffset']&&_0x4b5163[_0x351fd4(0x131)]+0x1===_0x6a4590[_0x351fd4(0x17c)]):void 0x0,{startOffset:_0x3c6ae1,endOffset:_0x5df767}=_0x3a079d?_0x6a4590:ye(_0xd43709,_0xb6ec2a[_0x351fd4(0x15f)],_0xb6ec2a['endOffset']),_0x34b36a=Se(_0xd43709,_0x3c6ae1,_0x5df767),_0x45145f=(_0x186f1e=_0x3a079d==null?void 0x0:_0x3a079d[_0x351fd4(0x123)])==null?_0xb6ec2a['blockId']:_0x186f1e,_0x3e1459=T(_0xb6ec2a[_0x351fd4(0x115)],_0x45145f,{...S,..._0xb6ec2a['config']});if(_0x3a079d)return _0x3a079d[_0x351fd4(0x15d)]=_0x2156e3[_0x351fd4(0x18a)],oe(_0xd43709,_0x3c6ae1,_0x5df767),he(_0xd43709,_0x3c6ae1,_0x5df767,_0x34b36a),M(_0xd43709,_0x3a079d),{'nextDocumentData':_0x656131,'nextMetadata':_0x3e1459,'cursorOffset':_0x3c6ae1+0x1};if(_0x3c6ae1===_0x5df767){var _0x3b4fa5,_0xed586;let _0x5d7471=''+_0x22b95f[_0x351fd4(0x15b)]+_0x22b95f['PARAGRAPH']+_0x22b95f['BLOCK_END'];N(_0xd43709,_0x3c6ae1,_0x5d7471,{'paragraphs':[{'startIndex':0x1,'paragraphId':_0x11d706(new Set((_0x3b4fa5=_0xd43709[_0x351fd4(0x137)])==null?void 0x0:_0x3b4fa5[_0x351fd4(0x178)](_0x3febea=>_0x3febea[_0x351fd4(0x167)]))),'paragraphStyle':E(!0x0,!0x0,_0x34b36a)}],'blockRanges':[{'blockId':_0x45145f,'blockType':_0x2156e3[_0x351fd4(0x18a)],'startIndex':0x0,'endIndex':_0x5d7471[_0x351fd4(0x13c)]-0x1}]});let _0x1d3efe=(_0xed586=_0xd43709[_0x351fd4(0x168)])==null?void 0x0:_0xed586['find'](_0x123118=>_0x123118[_0x351fd4(0x123)]===_0x45145f);return _0x1d3efe&&M(_0xd43709,_0x1d3efe),{'nextDocumentData':_0x656131,'nextMetadata':_0x3e1459,'cursorOffset':_0x3c6ae1+0x1};}N(_0xd43709,_0x5df767,_0x22b95f[_0x351fd4(0x13f)]),N(_0xd43709,_0x3c6ae1,_0x22b95f[_0x351fd4(0x15b)]),he(_0xd43709,_0x3c6ae1,_0x5df767+0x1,_0x34b36a);let _0xc05468={'blockId':_0x45145f,'blockType':_0x2156e3[_0x351fd4(0x18a)],'startIndex':_0x3c6ae1,'endIndex':_0x5df767+0x1};return _0xd43709['blockRanges']=[...(_0x287dab=_0xd43709['blockRanges'])==null?[]:_0x287dab,_0xc05468][_0x351fd4(0x15a)]((_0x45c031,_0xadf710)=>_0x45c031[_0x351fd4(0x174)]-_0xadf710[_0x351fd4(0x174)]),M(_0xd43709,_0xc05468),{'nextDocumentData':_0x656131,'nextMetadata':_0x3e1459,'cursorOffset':_0x3c6ae1+0x1};}function oe(_0x3c0c4b,_0x1df480,_0x249040){const _0x2f51cc=_0x54d9;var _0x51c377;((_0x51c377=_0x3c0c4b[_0x2f51cc(0x137)])==null?[]:_0x51c377)['filter'](_0x415ac8=>_0x415ac8[_0x2f51cc(0x174)]>_0x1df480&&_0x415ac8[_0x2f51cc(0x174)]<_0x249040)[_0x2f51cc(0x126)](_0x40b8ed=>{const _0x227e91=_0x2f51cc;var _0xcd5082;let _0x2b1472={...(_0xcd5082=_0x40b8ed[_0x227e91(0x158)])==null?{}:_0xcd5082};delete _0x2b1472[_0x227e91(0x17f)],delete _0x2b1472[_0x227e91(0x175)],_0x40b8ed[_0x227e91(0x158)]=_0x2b1472;});}function se(_0x5babde,_0x4d23bf){const _0x23a60c=_0x54d9;return _0x5babde==null||_0x4d23bf==null||_0x5babde===_0x4d23bf?null:{'startOffset':Math[_0x23a60c(0x14b)](_0x5babde,_0x4d23bf),'endOffset':Math[_0x23a60c(0x156)](_0x5babde,_0x4d23bf)};}function ce(_0x2955e7){const _0x5a1952=_0x54d9;return{'nextDocumentData':D(_0x2955e7['documentData']),'nextMetadata':T(_0x2955e7[_0x5a1952(0x115)],_0x2955e7['blockId'],_0x2955e7[_0x5a1952(0x12c)]),'cursorOffset':0x0};}function le(_0x46edbe){const _0x33933c=_0x54d9;var _0x12e431,_0x3f4bee;let _0x4a2813=D(_0x46edbe[_0x33933c(0x176)]),_0x38287b=O(_0x4a2813),_0x2ea800=me(_0x38287b,_0x46edbe[_0x33933c(0x177)]);if(!_0x2ea800)return null;let _0x9cb33c=_e(_0x38287b,_0x2ea800),_0x314933=_0x9cb33c[_0x9cb33c[_0x33933c(0x13c)]-0x1];if(!_0x314933||!ve(_0x38287b,_0x2ea800,_0x314933)||_0x46edbe[_0x33933c(0x177)]<_0x314933[_0x33933c(0x174)])return null;let _0x462808=A(_0x38287b,_0x2ea800,_0x314933);if(_0x462808>=_0x2ea800[_0x33933c(0x131)])return null;_0x38287b[_0x33933c(0x119)]=[_0x38287b[_0x33933c(0x119)]['slice'](0x0,_0x462808),_0x22b95f[_0x33933c(0x13f)],_0x38287b[_0x33933c(0x119)][_0x33933c(0x142)](_0x462808,_0x2ea800[_0x33933c(0x131)]),_0x38287b['dataStream']['slice'](_0x2ea800['endIndex']+0x1)]['join'](''),R(_0x38287b[_0x33933c(0x137)],_0x462808,_0x2ea800['endIndex'],0x1),R(_0x38287b[_0x33933c(0x135)],_0x462808,_0x2ea800[_0x33933c(0x131)],0x1),R(_0x38287b[_0x33933c(0x15e)],_0x462808,_0x2ea800[_0x33933c(0x131)],0x1),ke(_0x38287b['textRuns'],_0x462808,_0x2ea800[_0x33933c(0x131)],0x1),z(_0x38287b[_0x33933c(0x114)],_0x462808,_0x2ea800[_0x33933c(0x131)],0x1),z(_0x38287b[_0x33933c(0x136)],_0x462808,_0x2ea800[_0x33933c(0x131)],0x1),z(_0x38287b[_0x33933c(0x10e)],_0x462808,_0x2ea800[_0x33933c(0x131)],0x1),(_0x12e431=_0x38287b['blockRanges'])==null||_0x12e431[_0x33933c(0x126)](_0x35b4a6=>{const _0x1d86a6=_0x33933c;_0x35b4a6===_0x2ea800||_0x35b4a6[_0x1d86a6(0x123)]===_0x2ea800['blockId']?_0x35b4a6[_0x1d86a6(0x131)]=_0x462808:_0x35b4a6[_0x1d86a6(0x174)]>=_0x462808&&_0x35b4a6[_0x1d86a6(0x174)]<_0x2ea800['endIndex']&&(_0x35b4a6['startIndex']+=0x1,_0x35b4a6[_0x1d86a6(0x131)]+=0x1);});let _0x5f5ab0=_e(_0x38287b,{..._0x2ea800,'endIndex':_0x462808});_0x5f5ab0[_0x33933c(0x126)]((_0x5faf2b,_0x47cf7c)=>{var _0x1a8da7;_0x5faf2b['paragraphStyle']={...(_0x1a8da7=_0x5faf2b['paragraphStyle'])==null?{}:_0x1a8da7,...E(_0x47cf7c===0x0,_0x47cf7c===_0x5f5ab0['length']-0x1)};});let _0x3dd699=(_0x3f4bee=_0x38287b[_0x33933c(0x137)])==null?void 0x0:_0x3f4bee['find'](_0x216683=>_0x216683[_0x33933c(0x174)]===_0x462808+0x1);return _0x3dd699&&(_0x3dd699[_0x33933c(0x158)]=ge(_0x3dd699['paragraphStyle'])),{'nextDocumentData':_0x4a2813,'cursorOffset':_0x462808+0x1};}function ue(_0x27c407){const _0x584460=_0x54d9;let _0x1e3552=D(_0x27c407[_0x584460(0x176)]),_0x179c65=O(_0x1e3552),_0x4ae90d=me(_0x179c65,_0x27c407[_0x584460(0x177)]);return _0x4ae90d&&de(_0x1e3552,_0x179c65,_0x4ae90d,_0x27c407['cursorOffset'],_0x27c407['paragraphStartIndex'])||null;}function de(_0x445eef,_0xc981cc,_0x5efe21,_0x160ec5,_0x32d6ec){const _0x47145a=_0x54d9;let _0x5711c4=we(_0xc981cc,_0x5efe21,_0x160ec5,_0x32d6ec);if(!_0x5711c4)return null;let _0x490116=_0x5711c4['endTokenOffset']-0x1;return Te(_0xc981cc,_0x5711c4['paragraph'][_0x47145a(0x174)],_0x5711c4[_0x47145a(0x11a)]['startIndex']+0x1),{'nextDocumentData':_0x445eef,'cursorOffset':_0x490116};}function fe(_0x52e3ac,_0x2594a1){const _0x16dc58=_0x54d9;var _0x241b0f;return _0x52e3ac==null||(_0x241b0f=_0x52e3ac[_0x16dc58(0x168)])==null?void 0x0:_0x241b0f[_0x16dc58(0x154)](_0x34dd61=>_0x34dd61['blockType']===_0x2156e3[_0x16dc58(0x18a)]&&_0x34dd61['startIndex']<=_0x2594a1&&_0x2594a1<=_0x34dd61[_0x16dc58(0x131)]);}function pe(_0x342135){const _0x4ca01f=_0x54d9;var _0x64435f;let _0x4bafc2=_0x342135[_0x4ca01f(0x176)][_0x4ca01f(0x11e)];if(!_0x4bafc2)return!0x1;let _0x24098e=_0x342135[_0x4ca01f(0x132)]===_0x4ca01f(0x17b)?_0x342135['cursorOffset']-0x1:_0x342135[_0x4ca01f(0x177)],_0x211807=_0x342135[_0x4ca01f(0x132)]===_0x4ca01f(0x11c)?_0x342135['cursorOffset']+0x1:_0x24098e;return((_0x64435f=_0x4bafc2[_0x4ca01f(0x168)])==null?[]:_0x64435f)['some'](_0x550511=>_0x550511[_0x4ca01f(0x15d)]===_0x2156e3[_0x4ca01f(0x18a)]?_0x24098e===_0x550511[_0x4ca01f(0x174)]||_0x24098e===_0x550511['endIndex']||_0x211807===_0x550511[_0x4ca01f(0x174)]||_0x211807===_0x550511[_0x4ca01f(0x131)]:!0x1);}function me(_0x474f87,_0x4e1e81){const _0xa59775=_0x54d9;var _0x520a8a;return(_0x520a8a=_0x474f87['blockRanges'])==null?void 0x0:_0x520a8a[_0xa59775(0x154)](_0x7998ae=>{const _0x3e39f2=_0xa59775;let _0x58797d=j(_0x474f87,_0x7998ae);return _0x7998ae[_0x3e39f2(0x15d)]===_0x2156e3[_0x3e39f2(0x18a)]&&_0x7998ae['startIndex']<=_0x4e1e81&&_0x4e1e81<=_0x58797d+0x2;});}function E(_0x49e345,_0x11d6bd,_0x197c3f=!0x1){return{'indentEnd':{'v':0x14},'indentStart':{'v':0x14},..._0x49e345&&_0x197c3f?{'spaceAbove':{'v':0x8}}:{},'textStyle':{'ff':ie,'fs':0xc}};}function he(_0xbb8e27,_0x205245,_0xf2c1ca,_0x419c11=!0x1){const _0x17156b=_0x54d9;var _0x3a0a5f;let _0x11ce0c=((_0x3a0a5f=_0xbb8e27[_0x17156b(0x137)])==null?[]:_0x3a0a5f)['filter'](_0x17867c=>_0x17867c[_0x17156b(0x174)]>_0x205245&&_0x17867c[_0x17156b(0x174)]<_0xf2c1ca);_0x11ce0c[_0x17156b(0x126)]((_0x1a0477,_0x247beb)=>{const _0x459681=_0x17156b;var _0x2a707b;_0x1a0477['paragraphStyle']={...(_0x2a707b=_0x1a0477['paragraphStyle'])==null?{}:_0x2a707b,...E(_0x247beb===0x0,_0x247beb===_0x11ce0c[_0x459681(0x13c)]-0x1,_0x419c11)};});}function ge(_0x37283a){const _0x5a5f48=_0x54d9;var _0x4b2293,_0x361b06;let _0x3626a9={..._0x37283a==null?{}:_0x37283a};return delete _0x3626a9[_0x5a5f48(0x141)],delete _0x3626a9[_0x5a5f48(0x121)],delete _0x3626a9[_0x5a5f48(0x17f)],delete _0x3626a9[_0x5a5f48(0x175)],((_0x4b2293=_0x3626a9[_0x5a5f48(0x134)])==null?void 0x0:_0x4b2293['ff'])===ie&&((_0x361b06=_0x3626a9[_0x5a5f48(0x134)])==null?void 0x0:_0x361b06['fs'])===0xc&&delete _0x3626a9[_0x5a5f48(0x134)],_0x3626a9;}function _e(_0x1df388,_0x54d5e1){const _0x7ef541=_0x54d9;var _0x4b1d2a;let _0x31ccf5=j(_0x1df388,_0x54d5e1);return((_0x4b1d2a=_0x1df388[_0x7ef541(0x137)])==null?[]:_0x4b1d2a)['filter'](_0x484274=>_0x484274[_0x7ef541(0x174)]>_0x54d5e1[_0x7ef541(0x174)]&&_0x484274[_0x7ef541(0x174)]<_0x31ccf5);}function ve(_0x2fdaa9,_0x41e06f,_0x3267cd){const _0x891b4b=_0x54d9;let _0xb147bd=A(_0x2fdaa9,_0x41e06f,_0x3267cd),_0x12150e=_0x2fdaa9[_0x891b4b(0x119)]['slice'](_0xb147bd,_0x3267cd[_0x891b4b(0x174)]);return Array['from'](_0x12150e)[_0x891b4b(0x17a)](_0x1a4f86=>_0x1a4f86===_0x22b95f['BLOCK_START']||_0x1a4f86===_0x22b95f['BLOCK_END']);}function D(_0x5c6cb0){const _0x22c804=_0x54d9;return _0x3b2d45[_0x22c804(0x149)](_0x5c6cb0);}function O(_0x22e438){const _0x199796=_0x54d9;if(!_0x22e438[_0x199796(0x11e)])throw Error(_0x199796(0x12b));return _0x22e438['body'];}function ye(_0x278e3b,_0x16302b,_0x5a9e1b){const _0x50aa7b=_0x54d9;if(_0x16302b==null||_0x5a9e1b==null){let _0x3cc5c0=xe(_0x278e3b);return{'startOffset':_0x3cc5c0,'endOffset':_0x3cc5c0};}let _0x141839=Math[_0x50aa7b(0x14b)](_0x16302b,_0x5a9e1b),_0x3798d7=Math[_0x50aa7b(0x156)](_0x16302b,_0x5a9e1b);if(_0x141839===_0x3798d7){let _0x448bfb=be(_0x278e3b,_0x141839);return{'startOffset':_0x448bfb,'endOffset':_0x448bfb};}return Ce(_0x278e3b,_0x141839,_0x3798d7);}function be(_0x12b176,_0x22f0ca){const _0x20afe2=_0x54d9;return _0x22f0ca===0x0&&_0x12b176['dataStream'][0x0]===_0x22b95f[_0x20afe2(0x16e)]?0x1:_0x22f0ca;}function xe(_0xbefce0){const _0x12291f=_0x54d9;return _0xbefce0['dataStream']['endsWith'](_0x22b95f[_0x12291f(0x152)])?Math[_0x12291f(0x156)](0x0,_0xbefce0['dataStream'][_0x12291f(0x13c)]-0x1):_0xbefce0[_0x12291f(0x119)]['length'];}function Se(_0x32f2e4,_0x59f493,_0xe864f8){const _0x2ea818=_0x54d9;var _0x1156f5;let _0x32ec75=Math[_0x2ea818(0x14b)](_0x59f493,_0xe864f8),_0x5a22dd=Math[_0x2ea818(0x156)](_0x59f493,_0xe864f8);return!!((_0x1156f5=_0x32f2e4[_0x2ea818(0x114)])!=null&&_0x1156f5[_0x2ea818(0x140)](_0x4ce1ca=>_0x32ec75>_0x4ce1ca['startIndex']&&_0x32ec75<_0x4ce1ca['endIndex']||_0x5a22dd>_0x4ce1ca[_0x2ea818(0x174)]&&_0x5a22dd<_0x4ce1ca[_0x2ea818(0x131)]||_0x32ec75<=_0x4ce1ca['startIndex']&&_0x5a22dd>=_0x4ce1ca[_0x2ea818(0x131)]));}function Ce(_0x172dd1,_0x5d53b7,_0x36637c){const _0x39478b=_0x54d9;var _0x12bc0d,_0x355c33;let _0x55370d=[...(_0x12bc0d=_0x172dd1[_0x39478b(0x137)])==null?[]:_0x12bc0d][_0x39478b(0x15a)]((_0x21cc7f,_0x3f2c8e)=>_0x21cc7f[_0x39478b(0x174)]-_0x3f2c8e[_0x39478b(0x174)]),_0x29eec6=_0x55370d[_0x39478b(0x154)]((_0xc742b5,_0x1dc246)=>(_0x1dc246===0x0?0x0:_0x55370d[_0x1dc246-0x1]['startIndex']+0x1)<=_0x5d53b7&&_0x5d53b7<=_0xc742b5[_0x39478b(0x174)]),_0x265f3c=(_0x355c33=_0x55370d[_0x39478b(0x154)](_0x1a912b=>_0x1a912b[_0x39478b(0x174)]>=_0x36637c-0x1))==null?_0x55370d[_0x55370d['length']-0x1]:_0x355c33;return{'startOffset':_0x29eec6?k(_0x55370d,_0x29eec6):_0x5d53b7,'endOffset':_0x265f3c?_0x265f3c[_0x39478b(0x174)]+0x1:_0x36637c};}function k(_0x33e905,_0x35d6de){const _0x39197a=_0x54d9;let _0x2066ee=_0x33e905[_0x39197a(0x187)](_0x35d6de);return _0x2066ee>0x0?_0x33e905[_0x2066ee-0x1][_0x39197a(0x174)]+0x1:0x0;}function A(_0x36f6c4,_0x3c6247,_0x481684){const _0x543950=_0x54d9;var _0x25a0df;return Math[_0x543950(0x156)](k((_0x25a0df=_0x36f6c4[_0x543950(0x137)])==null?[]:_0x25a0df,_0x481684),_0x3c6247[_0x543950(0x174)]+0x1);}function j(_0x2c2191,_0x1e13c9){const _0x1818bc=_0x54d9;return _0x2c2191[_0x1818bc(0x119)][_0x1e13c9[_0x1818bc(0x131)]]===_0x22b95f[_0x1818bc(0x13f)]?_0x1e13c9['endIndex']:_0x2c2191[_0x1818bc(0x119)][_0x1e13c9[_0x1818bc(0x131)]+0x1]===_0x22b95f['BLOCK_END']?_0x1e13c9[_0x1818bc(0x131)]+0x1:_0x1e13c9['endIndex'];}function we(_0x5c1808,_0x516210,_0x5747da,_0x1df26a){const _0x525531=_0x54d9;var _0x5e6640,_0x2b675d;let _0x1831bd=j(_0x5c1808,_0x516210),_0xa6082=((_0x5e6640=_0x5c1808[_0x525531(0x137)])==null?[]:_0x5e6640)[_0x525531(0x154)](_0x33d013=>_0x33d013[_0x525531(0x174)]===_0x1831bd+0x1);if(!_0xa6082||_0x1df26a!=null&&_0xa6082[_0x525531(0x174)]!==_0x1df26a||_0x5747da<_0x1831bd||_0x5747da>_0xa6082[_0x525531(0x174)]+0x1||_0x5c1808[_0x525531(0x119)][_0xa6082['startIndex']]!==_0x22b95f[_0x525531(0x16e)])return null;let _0x1f175a=k((_0x2b675d=_0x5c1808[_0x525531(0x137)])==null?[]:_0x2b675d,_0xa6082),_0x4e1bc5=_0x5c1808[_0x525531(0x119)][_0x525531(0x142)](_0x1f175a,_0xa6082[_0x525531(0x174)]);return Array[_0x525531(0x138)](_0x4e1bc5)[_0x525531(0x17a)](_0x1b1ae2=>_0x1b1ae2===_0x22b95f[_0x525531(0x13f)])?{'paragraph':_0xa6082,'endTokenOffset':_0x1831bd}:null;}function M(_0x15a9b5,_0x5ed2eb){const _0x41d3a3=_0x54d9;var _0x4a4363;let _0x4f7cb8=j(_0x15a9b5,_0x5ed2eb),_0x5485ce=_0x15a9b5[_0x41d3a3(0x119)][_0x4f7cb8+0x1];_0x5485ce!==_0x22b95f[_0x41d3a3(0x152)]&&_0x5485ce!==void 0x0||N(_0x15a9b5,_0x4f7cb8+0x1,_0x22b95f[_0x41d3a3(0x16e)],{'paragraphs':[{'startIndex':0x0,'paragraphId':_0x11d706(new Set((_0x4a4363=_0x15a9b5[_0x41d3a3(0x137)])==null?void 0x0:_0x4a4363[_0x41d3a3(0x178)](_0x357e02=>_0x357e02['paragraphId'])))}]});}function N(_0x10f401,_0x13f80f,_0x2f5872,_0x2637dc={}){const _0x208376=_0x54d9;var _0x55f87b,_0x5f395f;if(_0x2f5872){if(_0x10f401[_0x208376(0x119)]=''+_0x10f401[_0x208376(0x119)][_0x208376(0x142)](0x0,_0x13f80f)+_0x2f5872+_0x10f401[_0x208376(0x119)][_0x208376(0x142)](_0x13f80f),Ee(_0x10f401,_0x13f80f,_0x2f5872[_0x208376(0x13c)]),(_0x55f87b=_0x2637dc[_0x208376(0x137)])!=null&&_0x55f87b[_0x208376(0x13c)]){var _0x30aa56;_0x10f401['paragraphs']=[...(_0x30aa56=_0x10f401['paragraphs'])==null?[]:_0x30aa56,..._0x2637dc[_0x208376(0x137)][_0x208376(0x178)](_0x2b6390=>({..._0x2b6390,'startIndex':_0x2b6390[_0x208376(0x174)]+_0x13f80f}))][_0x208376(0x15a)]((_0x5d33aa,_0x5e0f97)=>_0x5d33aa[_0x208376(0x174)]-_0x5e0f97[_0x208376(0x174)]);}if((_0x5f395f=_0x2637dc[_0x208376(0x168)])!=null&&_0x5f395f[_0x208376(0x13c)]){var _0x1b2ed4;_0x10f401[_0x208376(0x168)]=[...(_0x1b2ed4=_0x10f401[_0x208376(0x168)])==null?[]:_0x1b2ed4,..._0x2637dc[_0x208376(0x168)][_0x208376(0x178)](_0x3910c4=>({..._0x3910c4,'startIndex':_0x3910c4[_0x208376(0x174)]+_0x13f80f,'endIndex':_0x3910c4['endIndex']+_0x13f80f}))]['sort']((_0x4e4504,_0x5c3d36)=>_0x4e4504[_0x208376(0x174)]-_0x5c3d36[_0x208376(0x174)]);}}}function Te(_0x42d57e,_0x295df6,_0x2d333c){const _0x5abdbc=_0x54d9;let _0x184ff9=_0x2d333c-_0x295df6;_0x42d57e[_0x5abdbc(0x119)]=''+_0x42d57e[_0x5abdbc(0x119)][_0x5abdbc(0x142)](0x0,_0x295df6)+_0x42d57e['dataStream']['slice'](_0x2d333c),De(_0x42d57e,_0x295df6,_0x184ff9);}function Ee(_0x5086dd,_0x429808,_0x517d8b){const _0x591d56=_0x54d9;_0x5086dd[_0x591d56(0x137)]=P(_0x5086dd[_0x591d56(0x137)],_0x429808,_0x517d8b),_0x5086dd[_0x591d56(0x135)]=P(_0x5086dd[_0x591d56(0x135)],_0x429808,_0x517d8b),_0x5086dd['customBlocks']=P(_0x5086dd[_0x591d56(0x15e)],_0x429808,_0x517d8b),_0x5086dd[_0x591d56(0x171)]=Oe(_0x5086dd[_0x591d56(0x171)],_0x429808,_0x517d8b),_0x5086dd[_0x591d56(0x114)]=I(_0x5086dd[_0x591d56(0x114)],_0x429808,_0x517d8b),_0x5086dd['customRanges']=I(_0x5086dd[_0x591d56(0x136)],_0x429808,_0x517d8b),_0x5086dd[_0x591d56(0x10e)]=I(_0x5086dd['customDecorations'],_0x429808,_0x517d8b),_0x5086dd[_0x591d56(0x168)]=I(_0x5086dd[_0x591d56(0x168)],_0x429808,_0x517d8b);}function De(_0x5ce363,_0x583753,_0x5acff4){const _0x2773bc=_0x54d9;var _0x1b7034,_0x5eacb0;_0x5ce363[_0x2773bc(0x137)]=F(_0x5ce363[_0x2773bc(0x137)],_0x583753,_0x5acff4),_0x5ce363[_0x2773bc(0x135)]=F(_0x5ce363['sectionBreaks'],_0x583753,_0x5acff4),_0x5ce363[_0x2773bc(0x15e)]=F(_0x5ce363['customBlocks'],_0x583753,_0x5acff4),_0x5ce363['textRuns']=(_0x1b7034=L((_0x5eacb0=_0x5ce363[_0x2773bc(0x171)])==null?void 0x0:_0x5eacb0[_0x2773bc(0x178)](_0x44f99d=>({..._0x44f99d,'startIndex':_0x44f99d['st'],'endIndex':_0x44f99d['ed']})),_0x583753,_0x5acff4))==null?void 0x0:_0x1b7034[_0x2773bc(0x178)](_0x4e56ec=>{let {startIndex:_0x2e6150,endIndex:_0x460a74,..._0x5906ae}=_0x4e56ec;return{..._0x5906ae,'st':_0x2e6150,'ed':_0x460a74};}),_0x5ce363[_0x2773bc(0x114)]=L(_0x5ce363[_0x2773bc(0x114)],_0x583753,_0x5acff4),_0x5ce363[_0x2773bc(0x136)]=L(_0x5ce363[_0x2773bc(0x136)],_0x583753,_0x5acff4),_0x5ce363[_0x2773bc(0x10e)]=L(_0x5ce363['customDecorations'],_0x583753,_0x5acff4),_0x5ce363[_0x2773bc(0x168)]=L(_0x5ce363[_0x2773bc(0x168)],_0x583753,_0x5acff4);}function P(_0x30c41e,_0x3b453b,_0x62aa12){const _0x1a28ea=_0x54d9;return _0x30c41e==null?void 0x0:_0x30c41e[_0x1a28ea(0x178)](_0xdf2fdb=>_0xdf2fdb[_0x1a28ea(0x174)]>=_0x3b453b?{..._0xdf2fdb,'startIndex':_0xdf2fdb[_0x1a28ea(0x174)]+_0x62aa12}:_0xdf2fdb);}function F(_0x4b1548,_0x1984de,_0x1f0471){const _0x5a4155=_0x54d9;let _0x46aa45=_0x1984de+_0x1f0471;return _0x4b1548==null?void 0x0:_0x4b1548['map'](_0xfe7fb9=>_0xfe7fb9['startIndex']>=_0x1984de&&_0xfe7fb9[_0x5a4155(0x174)]<_0x46aa45?null:_0xfe7fb9[_0x5a4155(0x174)]>=_0x46aa45?{..._0xfe7fb9,'startIndex':_0xfe7fb9[_0x5a4155(0x174)]-_0x1f0471}:_0xfe7fb9)['filter'](_0x37613f=>_0x37613f!=null);}function Oe(_0x49e85f,_0x1edd5e,_0x14bd04){const _0x33529f=_0x54d9;return _0x49e85f==null?void 0x0:_0x49e85f[_0x33529f(0x178)](_0x3213cc=>_0x3213cc['st']>=_0x1edd5e?{..._0x3213cc,'st':_0x3213cc['st']+_0x14bd04,'ed':_0x3213cc['ed']+_0x14bd04}:_0x3213cc['ed']>_0x1edd5e?{..._0x3213cc,'ed':_0x3213cc['ed']+_0x14bd04}:_0x3213cc);}function I(_0x48206e,_0x12fb62,_0x3b2d2a){const _0x3d9aa2=_0x54d9;return _0x48206e==null?void 0x0:_0x48206e[_0x3d9aa2(0x178)](_0x32c433=>_0x32c433[_0x3d9aa2(0x174)]>=_0x12fb62?{..._0x32c433,'startIndex':_0x32c433[_0x3d9aa2(0x174)]+_0x3b2d2a,'endIndex':_0x32c433[_0x3d9aa2(0x131)]+_0x3b2d2a}:_0x32c433[_0x3d9aa2(0x131)]>=_0x12fb62?{..._0x32c433,'endIndex':_0x32c433[_0x3d9aa2(0x131)]+_0x3b2d2a}:_0x32c433);}function L(_0x563a05,_0x3fe9c5,_0x5a1dd5){const _0x446aae=_0x54d9;let _0x2879b6=_0x3fe9c5+_0x5a1dd5;return _0x563a05==null?void 0x0:_0x563a05['map'](_0x260fe6=>_0x260fe6[_0x446aae(0x174)]>=_0x3fe9c5&&_0x260fe6[_0x446aae(0x131)]<_0x2879b6?null:_0x260fe6[_0x446aae(0x174)]>=_0x2879b6?{..._0x260fe6,'startIndex':_0x260fe6[_0x446aae(0x174)]-_0x5a1dd5,'endIndex':_0x260fe6['endIndex']-_0x5a1dd5}:_0x260fe6[_0x446aae(0x131)]>=_0x3fe9c5?{..._0x260fe6,'startIndex':_0x260fe6[_0x446aae(0x174)]<_0x3fe9c5?_0x260fe6[_0x446aae(0x174)]:_0x3fe9c5,'endIndex':Math[_0x446aae(0x156)](_0x3fe9c5,_0x260fe6[_0x446aae(0x131)]-_0x5a1dd5)}:_0x260fe6)[_0x446aae(0x129)](_0x4f8c99=>_0x4f8c99!=null);}function R(_0x55c8ce,_0x52e6a2,_0x4b821d,_0x5527fb){_0x55c8ce==null||_0x55c8ce['forEach'](_0x56ec32=>{const _0x56ea6f=_0x54d9;_0x56ec32['startIndex']>=_0x52e6a2&&_0x56ec32[_0x56ea6f(0x174)]<_0x4b821d&&(_0x56ec32[_0x56ea6f(0x174)]+=_0x5527fb);});}function ke(_0x4f8942,_0x442573,_0x59cd64,_0x4e0154){_0x4f8942==null||_0x4f8942['forEach'](_0x4a48ee=>{_0x4a48ee['st']>=_0x442573&&_0x4a48ee['st']<_0x59cd64?(_0x4a48ee['st']+=_0x4e0154,_0x4a48ee['ed']+=_0x4e0154):_0x4a48ee['ed']>_0x442573&&_0x4a48ee['ed']<_0x59cd64&&(_0x4a48ee['ed']+=_0x4e0154);});}function z(_0x263fdb,_0x225c91,_0x415f51,_0x4271ed){const _0x572307=_0x54d9;_0x263fdb==null||_0x263fdb[_0x572307(0x126)](_0x2bbd46=>{const _0x4b0187=_0x572307;_0x2bbd46['startIndex']>=_0x225c91&&_0x2bbd46['startIndex']<_0x415f51?(_0x2bbd46[_0x4b0187(0x174)]+=_0x4271ed,_0x2bbd46[_0x4b0187(0x131)]+=_0x4271ed):_0x2bbd46[_0x4b0187(0x131)]>_0x225c91&&_0x2bbd46['endIndex']<_0x415f51&&(_0x2bbd46[_0x4b0187(0x131)]+=_0x4271ed);});}function B(_0x5f5b97){'@babel/helpers - typeof';const _0x2d9e27=_0x54d9;return B=typeof Symbol=='function'&&typeof Symbol[_0x2d9e27(0x122)]==_0x2d9e27(0x181)?function(_0xb12779){return typeof _0xb12779;}:function(_0xd09dd5){const _0x177e89=_0x2d9e27;return _0xd09dd5&&typeof Symbol=='function'&&_0xd09dd5['constructor']===Symbol&&_0xd09dd5!==Symbol[_0x177e89(0x13a)]?_0x177e89(0x181):typeof _0xd09dd5;},B(_0x5f5b97);}function Ae(_0x1ed163,_0x3585cf){const _0x15428d=_0x54d9;if(B(_0x1ed163)!=_0x15428d(0x117)||!_0x1ed163)return _0x1ed163;var _0x17afd6=_0x1ed163[Symbol[_0x15428d(0x160)]];if(_0x17afd6!==void 0x0){var _0x520b00=_0x17afd6[_0x15428d(0x169)](_0x1ed163,_0x3585cf||_0x15428d(0x155));if(B(_0x520b00)!=_0x15428d(0x117))return _0x520b00;throw TypeError(_0x15428d(0x185));}return(_0x3585cf===_0x15428d(0x116)?String:Number)(_0x1ed163);}function je(_0xd70608){const _0x3b3b5e=_0x54d9;var _0x19ec96=Ae(_0xd70608,_0x3b3b5e(0x116));return B(_0x19ec96)==_0x3b3b5e(0x181)?_0x19ec96:_0x19ec96+'';}function V(_0x3939c0,_0x50904f,_0xd9bd19){const _0xbed579=_0x54d9;return(_0x50904f=je(_0x50904f))in _0x3939c0?Object[_0xbed579(0x11f)](_0x3939c0,_0x50904f,{'value':_0xd9bd19,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x3939c0[_0x50904f]=_0xd9bd19,_0x3939c0;}function _0x4e4f(){const _0xc76ecf=['_initResource','paragraphId','blockRanges','call','disposeWithMe','getCodeConfig','_commandService','model','PARAGRAPH','codes','UNIVER_DOC','textRuns','docs-code.command.insert-below','docs-code.command.cancel-empty-paragraph','startIndex','spaceBelow','documentData','cursorOffset','map','setCodeConfig','every','left','endOffset','_docsCodeModel','_config','spaceAbove','get','symbol','previousDocumentData','nextMetadata','_configService','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','3801798BQqfBS','indexOf','reduce','7549850RMTTcI','CODE','1565016hNGzXe','getTextRanges','@univerjs-pro/docs-code','commandService','set','change$','COMMAND','customDecorations','decorate','diffValue','docs-code.config','getUnitId','unitId','tables','metadata','string','object','deserialize','dataStream','paragraph','type','right','_change$','body','defineProperty','registerPluginResource','indentStart','iterator','blockId','onStarting','3lweciD','forEach','getUniverDocInstance','registerCommand','filter','getOwnPropertyDescriptor','Document\x20body\x20is\x20required','config','24PCyzzO','removeUnit','docs-code.command.exit','getSnapshot','endIndex','direction','_injector','textStyle','sectionBreaks','customRanges','paragraphs','from','setConfig','prototype','8cgVMSA','length','getCurrentUnitOfType','version','BLOCK_END','some','indentEnd','slice','stringify','parse','_setResource','DOC_CODE_PLUGIN','getBody','delete','deepClone','_resources','min','asObservable','complete','removeCode','_resourceManagerService','186720HcxwcB','next','SECTION_BREAK','nextDocumentData','find','default','max','clear','paragraphStyle','1036414TfveFk','sort','BLOCK_START','dispose','blockType','customBlocks','startOffset','toPrimitive','serialize','2801519FRZypX','add','256237yzKVvR','compose'];_0x4e4f=function(){return _0xc76ecf;};return _0x4e4f();}var H=class extends _0x4d4eaf{constructor(..._0x370c70){const _0x52f34a=_0x54d9;super(..._0x370c70),V(this,_0x52f34a(0x14a),new Map()),V(this,_0x52f34a(0x11d),new _0x2b2e5b()),V(this,_0x52f34a(0x190),this[_0x52f34a(0x11d)][_0x52f34a(0x14c)]());}[_0x560653(0x16b)](_0x5bb953,_0x45d128){const _0x48da10=_0x560653;return w(this['_resources'][_0x48da10(0x180)](_0x5bb953))[_0x48da10(0x16f)][_0x45d128];}[_0x560653(0x179)](_0x46c988,_0x174333,_0x456f65){const _0x290387=_0x560653;this[_0x290387(0x145)](_0x46c988,_0x174333,T(this[_0x290387(0x14a)][_0x290387(0x180)](_0x46c988),_0x174333,_0x456f65));}[_0x560653(0x14e)](_0x4874c5,_0x27aae9){const _0x140587=_0x560653;this[_0x140587(0x145)](_0x4874c5,_0x27aae9,re(this['_resources'][_0x140587(0x180)](_0x4874c5),_0x27aae9));}['serialize'](_0x40d17c){const _0xb9b657=_0x560653;return w(this['_resources'][_0xb9b657(0x180)](_0x40d17c));}['deserialize'](_0x42ad3a,_0x4641ba){const _0xe27a79=_0x560653;this[_0xe27a79(0x14a)][_0xe27a79(0x18f)](_0x42ad3a,w(_0x4641ba)),this[_0xe27a79(0x11d)][_0xe27a79(0x151)]({'unitId':_0x42ad3a});}[_0x560653(0x12e)](_0x2847a2){const _0x260ecd=_0x560653;this['_resources'][_0x260ecd(0x148)](_0x2847a2),this[_0x260ecd(0x11d)][_0x260ecd(0x151)]({'unitId':_0x2847a2});}[_0x560653(0x15c)](){const _0x45e734=_0x560653;super[_0x45e734(0x15c)](),this['_resources'][_0x45e734(0x157)](),this[_0x45e734(0x11d)][_0x45e734(0x14d)]();}[_0x560653(0x145)](_0x469920,_0x11aaff,_0x10ba39){const _0x213aaf=_0x560653;this['_resources'][_0x213aaf(0x18f)](_0x469920,_0x10ba39),this[_0x213aaf(0x11d)][_0x213aaf(0x151)]({'unitId':_0x469920,'blockId':_0x11aaff});}};const Me={'id':_0x560653(0x172),'type':_0x3163ae[_0x560653(0x191)],'handler':_0x2544f0=>{const _0x101e0=_0x560653;let _0x149df6=Le(_0x2544f0);if(_0x149df6)return _0x2544f0[_0x101e0(0x180)](_0x464daf)['syncExecuteCommand'](U['id'],{'startOffset':_0x149df6[_0x101e0(0x15f)],'endOffset':_0x149df6['endOffset'],'unitId':_0x149df6[_0x101e0(0x113)]});let _0x439ecb=Re(_0x2544f0);if(!_0x439ecb)return!0x1;let _0x3027dd=_0x439ecb[_0x101e0(0x174)]+0x1;return _0x2544f0[_0x101e0(0x180)](_0x464daf)['syncExecuteCommand'](U['id'],{'startOffset':_0x3027dd,'endOffset':_0x3027dd});}},Ne={'id':'docs-code.command.consume-boundary-delete','type':_0x3163ae[_0x560653(0x191)],'handler':()=>!0x0},U={'id':'docs-code.command.insert','type':_0x3163ae['COMMAND'],'handler':(_0x1aefc8,_0x4aef41)=>{const _0x7e2e70=_0x560653;var _0x1e59bf,_0x1d6324,_0x24f74b;let _0x540523=W(_0x1aefc8,_0x4aef41==null?void 0x0:_0x4aef41[_0x7e2e70(0x113)]);if(!_0x540523)return!0x1;let _0x4443d5=G(_0x1aefc8),_0x5860e6=ae({'blockId':(_0x1e59bf=_0x4aef41==null?void 0x0:_0x4aef41['blockId'])==null?_0x590119(0x6):_0x1e59bf,'config':_0x4aef41==null?void 0x0:_0x4aef41['config'],'documentData':_0x540523[_0x7e2e70(0x182)],'endOffset':(_0x1d6324=_0x4aef41==null?void 0x0:_0x4aef41['endOffset'])==null?_0x4443d5==null?void 0x0:_0x4443d5[_0x7e2e70(0x17c)]:_0x1d6324,'metadata':_0x540523[_0x7e2e70(0x16d)][_0x7e2e70(0x161)](_0x540523['unitId']),'startOffset':(_0x24f74b=_0x4aef41==null?void 0x0:_0x4aef41[_0x7e2e70(0x15f)])==null?_0x4443d5==null?void 0x0:_0x4443d5[_0x7e2e70(0x15f)]:_0x24f74b}),_0x3f3e0f=q(_0x540523[_0x7e2e70(0x18e)],_0x540523[_0x7e2e70(0x113)],_0x540523[_0x7e2e70(0x182)],_0x5860e6[_0x7e2e70(0x153)],_0x5860e6[_0x7e2e70(0x177)]);return _0x3f3e0f&&_0x5860e6[_0x7e2e70(0x183)]&&_0x540523[_0x7e2e70(0x16d)][_0x7e2e70(0x118)](_0x540523[_0x7e2e70(0x113)],_0x5860e6[_0x7e2e70(0x183)]),_0x3f3e0f;}},Pe={'id':'docs-code.command.update','type':_0x3163ae[_0x560653(0x191)],'handler':(_0x35185a,_0x3ce2bd)=>{const _0x1d79af=_0x560653;if(!_0x3ce2bd)return!0x1;let _0x341c01=W(_0x35185a,_0x3ce2bd['unitId']);if(!_0x341c01)return!0x1;let _0x6fa79d=ce({'blockId':_0x3ce2bd['blockId'],'config':_0x3ce2bd['config'],'documentData':_0x341c01[_0x1d79af(0x182)],'metadata':_0x341c01['model'][_0x1d79af(0x161)](_0x341c01[_0x1d79af(0x113)])});return _0x6fa79d[_0x1d79af(0x183)]&&_0x341c01['model'][_0x1d79af(0x118)](_0x341c01[_0x1d79af(0x113)],_0x6fa79d[_0x1d79af(0x183)]),!0x0;}},Fe={'id':_0x560653(0x12f),'type':_0x3163ae['COMMAND'],'handler':(_0x2f2816,_0x27c88c)=>{const _0x2f4a42=_0x560653;var _0x3b62b5,_0x381a07;let _0x1e51be=W(_0x2f2816,_0x27c88c==null?void 0x0:_0x27c88c['unitId']);if(!_0x1e51be)return!0x1;let _0x22424a=(_0x3b62b5=_0x27c88c==null?void 0x0:_0x27c88c[_0x2f4a42(0x177)])==null?(_0x381a07=G(_0x2f2816))==null?void 0x0:_0x381a07[_0x2f4a42(0x15f)]:_0x3b62b5;if(_0x22424a==null)return!0x1;let _0x3c0cf3=le({'cursorOffset':_0x22424a,'documentData':_0x1e51be[_0x2f4a42(0x182)]});return _0x3c0cf3?q(_0x1e51be[_0x2f4a42(0x18e)],_0x1e51be[_0x2f4a42(0x113)],_0x1e51be[_0x2f4a42(0x182)],_0x3c0cf3[_0x2f4a42(0x153)],_0x3c0cf3[_0x2f4a42(0x177)]):!0x1;}},Ie={'id':_0x560653(0x173),'type':_0x3163ae[_0x560653(0x191)],'handler':(_0x16230d,_0x2d44c3)=>{const _0x352552=_0x560653;var _0x27f02b,_0x20ddd3;let _0x17c4ff=W(_0x16230d,_0x2d44c3==null?void 0x0:_0x2d44c3[_0x352552(0x113)]);if(!_0x17c4ff)return!0x1;let _0x4971df=(_0x27f02b=_0x2d44c3==null?void 0x0:_0x2d44c3[_0x352552(0x177)])==null?(_0x20ddd3=G(_0x16230d))==null?void 0x0:_0x20ddd3[_0x352552(0x15f)]:_0x27f02b;if(_0x4971df==null)return!0x1;let _0x5035de=ue({'cursorOffset':_0x4971df,'documentData':_0x17c4ff['previousDocumentData'],'paragraphStartIndex':_0x2d44c3==null?void 0x0:_0x2d44c3['paragraphStartIndex']});return _0x5035de?q(_0x17c4ff[_0x352552(0x18e)],_0x17c4ff[_0x352552(0x113)],_0x17c4ff[_0x352552(0x182)],_0x5035de[_0x352552(0x153)],_0x5035de[_0x352552(0x177)]):!0x1;}};function W(_0x177fc2,_0x178bd9){const _0x3d8eee=_0x560653;let _0x58881f=_0x177fc2['get'](_0x3824cb),_0x3a01a4=_0x178bd9?_0x58881f[_0x3d8eee(0x127)](_0x178bd9):_0x58881f[_0x3d8eee(0x13d)](_0x3e4192[_0x3d8eee(0x170)]);return _0x3a01a4?{'commandService':_0x177fc2[_0x3d8eee(0x180)](_0x464daf),'model':_0x177fc2[_0x3d8eee(0x180)](H),'previousDocumentData':_0x3a01a4[_0x3d8eee(0x130)](),'unitId':_0x3a01a4[_0x3d8eee(0x112)]()}:null;}function _0x54d9(_0x16e321,_0x492a69){_0x16e321=_0x16e321-0x10e;const _0x4e4fef=_0x4e4f();let _0x54d99c=_0x4e4fef[_0x16e321];return _0x54d99c;}function G(_0x3ff3f2){const _0x2a410f=_0x560653;var _0x12b31e;return(_0x12b31e=_0x3ff3f2[_0x2a410f(0x180)](_0x5e656f)[_0x2a410f(0x18c)]())==null?void 0x0:_0x12b31e[0x0];}function Le(_0x3cc0cc){const _0x2c0c92=_0x560653;var _0x839b08;let _0x2564f6=(_0x839b08=_0x3cc0cc[_0x2c0c92(0x180)](_0x3824cb)['getCurrentUnitOfType'](_0x3e4192[_0x2c0c92(0x170)]))==null?void 0x0:_0x839b08[_0x2c0c92(0x112)]();try{return _0x3cc0cc[_0x2c0c92(0x180)](_0x312533)['consumeInsertRange'](_0x2564f6);}catch{return null;}}function Re(_0x4e0d9e){const _0x1cbcf0=_0x560653;var _0x4add28,_0x17eb63,_0xc764e9;let _0x26dc70=G(_0x4e0d9e);if(!_0x26dc70)return null;let _0x530623=_0x4e0d9e[_0x1cbcf0(0x180)](_0x3824cb)['getCurrentUnitOfType'](_0x3e4192[_0x1cbcf0(0x170)]),_0x22cd5a=_0x530623==null?void 0x0:_0x530623[_0x1cbcf0(0x147)]();return _0x22cd5a?(_0x4add28=_0x17de4b['range']['getParagraphsInRange'](_0x26dc70,(_0x17eb63=_0x22cd5a[_0x1cbcf0(0x137)])==null?[]:_0x17eb63,(_0xc764e9=_0x22cd5a[_0x1cbcf0(0x119)])==null?'':_0xc764e9)[0x0])==null?null:_0x4add28:null;}function ze(_0x967cc2,_0x276eaa){const _0x15bf74=_0x560653;var _0x121343,_0x363a90,_0x5850a1,_0x2199ca,_0x12780b,_0x596131,_0x3f0686,_0x2332d9,_0x5bafac,_0x3c1bdc,_0x85d677,_0xa25208,_0x266cf8,_0x5868d5,_0x450659,_0x326bb0,_0x295643,_0x191189;let _0x475569=_0x204cdd['getInstance']();return[K(_0x475569,['body',_0x15bf74(0x119)],(_0x121343=_0x967cc2['body'])==null?void 0x0:_0x121343[_0x15bf74(0x119)],(_0x363a90=_0x276eaa[_0x15bf74(0x11e)])==null?void 0x0:_0x363a90['dataStream']),K(_0x475569,[_0x15bf74(0x11e),'paragraphs'],(_0x5850a1=_0x967cc2['body'])==null?void 0x0:_0x5850a1[_0x15bf74(0x137)],(_0x2199ca=_0x276eaa[_0x15bf74(0x11e)])==null?void 0x0:_0x2199ca[_0x15bf74(0x137)]),K(_0x475569,[_0x15bf74(0x11e),_0x15bf74(0x135)],(_0x12780b=_0x967cc2[_0x15bf74(0x11e)])==null?void 0x0:_0x12780b['sectionBreaks'],(_0x596131=_0x276eaa[_0x15bf74(0x11e)])==null?void 0x0:_0x596131[_0x15bf74(0x135)]),K(_0x475569,[_0x15bf74(0x11e),_0x15bf74(0x171)],(_0x3f0686=_0x967cc2['body'])==null?void 0x0:_0x3f0686[_0x15bf74(0x171)],(_0x2332d9=_0x276eaa[_0x15bf74(0x11e)])==null?void 0x0:_0x2332d9[_0x15bf74(0x171)]),K(_0x475569,['body',_0x15bf74(0x15e)],(_0x5bafac=_0x967cc2[_0x15bf74(0x11e)])==null?void 0x0:_0x5bafac['customBlocks'],(_0x3c1bdc=_0x276eaa[_0x15bf74(0x11e)])==null?void 0x0:_0x3c1bdc[_0x15bf74(0x15e)]),K(_0x475569,[_0x15bf74(0x11e),'customRanges'],(_0x85d677=_0x967cc2[_0x15bf74(0x11e)])==null?void 0x0:_0x85d677[_0x15bf74(0x136)],(_0xa25208=_0x276eaa['body'])==null?void 0x0:_0xa25208['customRanges']),K(_0x475569,[_0x15bf74(0x11e),_0x15bf74(0x10e)],(_0x266cf8=_0x967cc2[_0x15bf74(0x11e)])==null?void 0x0:_0x266cf8[_0x15bf74(0x10e)],(_0x5868d5=_0x276eaa[_0x15bf74(0x11e)])==null?void 0x0:_0x5868d5[_0x15bf74(0x10e)]),K(_0x475569,['body',_0x15bf74(0x114)],(_0x450659=_0x967cc2[_0x15bf74(0x11e)])==null?void 0x0:_0x450659[_0x15bf74(0x114)],(_0x326bb0=_0x276eaa[_0x15bf74(0x11e)])==null?void 0x0:_0x326bb0['tables']),K(_0x475569,[_0x15bf74(0x11e),'blockRanges'],(_0x295643=_0x967cc2[_0x15bf74(0x11e)])==null?void 0x0:_0x295643['blockRanges'],(_0x191189=_0x276eaa['body'])==null?void 0x0:_0x191189[_0x15bf74(0x168)])][_0x15bf74(0x129)](Boolean)[_0x15bf74(0x188)]((_0x13609e,_0x9469d0)=>_0x204cdd[_0x15bf74(0x165)](_0x13609e,_0x9469d0),null);}function K(_0x1408a8,_0x43ffca,_0x567ad4,_0x2a079a){const _0x21367b=_0x560653;return _0x3b2d45[_0x21367b(0x110)](_0x567ad4,_0x2a079a)?null:_0x1408a8['replaceOp'](_0x43ffca,_0x567ad4,_0x2a079a);}function q(_0x84cf9d,_0x20f6c5,_0x21575c,_0x4e5aa5,_0x45113c){let _0xabead=ze(_0x21575c,_0x4e5aa5);return _0xabead?!!_0x84cf9d['syncExecuteCommand'](_0x447dce['id'],{'unitId':_0x20f6c5,'actions':_0xabead,'textRanges':[{'startOffset':_0x45113c,'endOffset':_0x45113c,'collapsed':!0x0}],'isEditing':!0x1}):!0x1;}const J=_0x560653(0x146);var Be=_0x560653(0x18d),Ve='0.25.0-insiders.20260613-a210f12';const Y={};function X(_0x26fab4,_0x46f02f){return function(_0x11d6fc,_0x2749d0){_0x46f02f(_0x11d6fc,_0x2749d0,_0x26fab4);};}function Z(_0x190134,_0x845f8d,_0x5b38a1,_0x1b209c){const _0x4cb196=_0x560653;var _0x177380=arguments[_0x4cb196(0x13c)],_0x39ecd4=_0x177380<0x3?_0x845f8d:_0x1b209c===null?_0x1b209c=Object[_0x4cb196(0x12a)](_0x845f8d,_0x5b38a1):_0x1b209c,_0xd800c0;if(typeof Reflect=='object'&&typeof Reflect[_0x4cb196(0x10f)]=='function')_0x39ecd4=Reflect[_0x4cb196(0x10f)](_0x190134,_0x845f8d,_0x5b38a1,_0x1b209c);else{for(var _0x3f3c7f=_0x190134['length']-0x1;_0x3f3c7f>=0x0;_0x3f3c7f--)(_0xd800c0=_0x190134[_0x3f3c7f])&&(_0x39ecd4=(_0x177380<0x3?_0xd800c0(_0x39ecd4):_0x177380>0x3?_0xd800c0(_0x845f8d,_0x5b38a1,_0x39ecd4):_0xd800c0(_0x845f8d,_0x5b38a1))||_0x39ecd4);}return _0x177380>0x3&&_0x39ecd4&&Object['defineProperty'](_0x845f8d,_0x5b38a1,_0x39ecd4),_0x39ecd4;}let Q=class extends _0x4d4eaf{constructor(_0x1b2887,_0x3b1caa){const _0x5f19cb=_0x560653;super(),this[_0x5f19cb(0x14f)]=_0x1b2887,this[_0x5f19cb(0x17d)]=_0x3b1caa,this[_0x5f19cb(0x166)]();}[_0x560653(0x166)](){const _0x3b7239=_0x560653;this[_0x3b7239(0x16a)](this[_0x3b7239(0x14f)][_0x3b7239(0x120)]({'pluginName':J,'businesses':[_0x3e4192['UNIVER_DOC']],'toJson':_0x587e40=>JSON[_0x3b7239(0x143)](this[_0x3b7239(0x17d)]['serialize'](_0x587e40)),'parseJson':_0x1c2385=>w(JSON[_0x3b7239(0x144)](_0x1c2385)),'onLoad':(_0x11716a,_0x54d662)=>this[_0x3b7239(0x17d)][_0x3b7239(0x118)](_0x11716a,_0x54d662),'onUnLoad':_0x401597=>this[_0x3b7239(0x17d)][_0x3b7239(0x12e)](_0x401597)}));}};Q=Z([X(0x0,_0x53b05f),X(0x1,_0x554295(H))],Q);let $=class extends _0x3dff2c{constructor(_0x3aba51=Y,_0xbd46dd,_0x5552a8,_0x184d5b){const _0x217334=_0x560653;super(),this['_config']=_0x3aba51,this['_injector']=_0xbd46dd,this[_0x217334(0x16c)]=_0x5552a8,this[_0x217334(0x184)]=_0x184d5b;let {..._0x382f62}=_0x16de9b({},Y,this[_0x217334(0x17e)]);this[_0x217334(0x184)][_0x217334(0x139)](_0x217334(0x111),_0x382f62);}[_0x560653(0x124)](){const _0x880ef4=_0x560653;this['_injector'][_0x880ef4(0x163)]([H]),this[_0x880ef4(0x133)][_0x880ef4(0x163)]([Q]),this[_0x880ef4(0x133)][_0x880ef4(0x180)](H),this[_0x880ef4(0x133)][_0x880ef4(0x180)](Q),[U,Me,Pe,Fe,Ie,Ne][_0x880ef4(0x126)](_0x75d11e=>this['disposeWithMe'](this['_commandService'][_0x880ef4(0x128)](_0x75d11e)));}};V($,'pluginName',J),V($,'packageName',Be),V($,_0x560653(0x13e),Ve),V($,_0x560653(0x11b),_0x3e4192[_0x560653(0x170)]),$=Z([_0x545704(_0x59fb22,_0x3a0230),X(0x1,_0x554295(_0x144991)),X(0x2,_0x464daf),X(0x3,_0x42ffe8)],$);export{S as DEFAULT_CODE_CONFIG,J as DOCS_CODE_PLUGIN,Ie as DocsCodeCancelEmptyParagraphCommand,Ne as DocsCodeConsumeBoundaryDeleteCommand,Fe as DocsCodeExitCommand,Me as DocsCodeInsertBelowCommand,U as DocsCodeInsertCommand,H as DocsCodeModel,Pe as DocsCodeUpdateCommand,$ as UniverDocsCodePlugin,ue as buildCancelEmptyCodeParagraphActions,le as buildExitCodeActions,ae as buildInsertCodeActions,ce as buildUpdateCodeActions,fe as findCodeRangeAtOffset,pe as isCodeBoundaryDelete,C as normalizeDocsCodeConfig};
package/lib/facade.js CHANGED
@@ -1 +1 @@
1
- var _0x2699ee=_0x1368;function _0x5077(){var _0x87e7dd=['SECTION_BREAK','createInstance','symbol','replace','text','findCodes','32lJYrhU','from','function','_injector','getCodes','BLOCK_END','join','973DrQDun','map','_getBlockRange','slice','getCode','1161786otxpdD','defineProperty','toPrimitive','_unitId','find','_document','cancelEmptyParagraph','endIndex','862191SMHkzP','describe','12634AVHzKa','getRange','2302600sOtQuX','get','length','string','call','updateConfig','BLOCK_START','getCodeAt','blockType','decorate','iterator','filter','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','5zuVtpa','CODE','startIndex','extend','exitCode','7400FzZlXW','getText','getCodeConfig','save','body','39UqEDQy','blockId','_getBlockRanges','_blockId','9774JUenLk','_createFDocumentCode','dataStream','PARAGRAPH','85340NVRheH','syncExecuteCommand','getOwnPropertyDescriptor','blockRanges','object','getId','constructor','config','insertCode','_getDocumentData'];_0x5077=function(){return _0x87e7dd;};return _0x5077();}(function(_0xe2de25,_0x30438b){var _0xea7fca=_0x1368,_0x11dd70=_0xe2de25();while(!![]){try{var _0x4cc259=parseInt(_0xea7fca(0xe2))/0x1*(-parseInt(_0xea7fca(0xcc))/0x2)+-parseInt(_0xea7fca(0xfb))/0x3*(parseInt(_0xea7fca(0x103))/0x4)+-parseInt(_0xea7fca(0xf1))/0x5*(-parseInt(_0xea7fca(0xd8))/0x6)+-parseInt(_0xea7fca(0xd3))/0x7*(-parseInt(_0xea7fca(0xf6))/0x8)+parseInt(_0xea7fca(0xff))/0x9+parseInt(_0xea7fca(0xe4))/0xa+parseInt(_0xea7fca(0xe0))/0xb;if(_0x4cc259===_0x30438b)break;else _0x11dd70['push'](_0x11dd70['shift']());}catch(_0x2c6289){_0x11dd70['push'](_0x11dd70['shift']());}}}(_0x5077,0x25372));import{DocsCodeCancelEmptyParagraphCommand as _0xa9487b,DocsCodeExitCommand as _0x6bd294,DocsCodeInsertCommand as _0x478b1e,DocsCodeModel as _0x404cd1,DocsCodeUpdateCommand as _0x370048,normalizeDocsCodeConfig as _0x3cd8a}from'@univerjs-pro/docs-code';import{DataStreamTreeTokenType as _0x5a0cc1,DocumentBlockRangeType as _0x4f43e3,ICommandService as _0x4c1c14,Inject as _0x5d099d,Injector as _0x12ce22,generateRandomId as _0x5b6778}from'@univerjs/core';import{FDocument as _0x184985}from'@univerjs/docs/facade';function p(_0x2c988f){'@babel/helpers - typeof';var _0x89a06=_0x1368;return p=typeof Symbol==_0x89a06(0xce)&&typeof Symbol[_0x89a06(0xee)]==_0x89a06(0xc8)?function(_0xb9d91a){return typeof _0xb9d91a;}:function(_0xe9ffff){var _0xf66b89=_0x89a06;return _0xe9ffff&&typeof Symbol==_0xf66b89(0xce)&&_0xe9ffff[_0xf66b89(0xc2)]===Symbol&&_0xe9ffff!==Symbol['prototype']?_0xf66b89(0xc8):typeof _0xe9ffff;},p(_0x2c988f);}function m(_0x31b1a0,_0x6a0c6a){var _0x1321ff=_0x1368;if(p(_0x31b1a0)!=_0x1321ff(0xc0)||!_0x31b1a0)return _0x31b1a0;var _0x4ddb9f=_0x31b1a0[Symbol[_0x1321ff(0xda)]];if(_0x4ddb9f!==void 0x0){var _0x5af1f1=_0x4ddb9f[_0x1321ff(0xe8)](_0x31b1a0,_0x6a0c6a||'default');if(p(_0x5af1f1)!='object')return _0x5af1f1;throw TypeError(_0x1321ff(0xf0));}return(_0x6a0c6a===_0x1321ff(0xe7)?String:Number)(_0x31b1a0);}function _0x1368(_0x3c2ab4,_0x3739e9){_0x3c2ab4=_0x3c2ab4-0xbe;var _0x5077ce=_0x5077();var _0x13687c=_0x5077ce[_0x3c2ab4];return _0x13687c;}function h(_0x4aef64){var _0x43e9f6=_0x1368,_0x462e31=m(_0x4aef64,_0x43e9f6(0xe7));return p(_0x462e31)==_0x43e9f6(0xc8)?_0x462e31:_0x462e31+'';}function g(_0x4df008,_0x342691,_0xdfb07b){var _0x12efa1=_0x1368;return(_0x342691=h(_0x342691))in _0x4df008?Object[_0x12efa1(0xd9)](_0x4df008,_0x342691,{'value':_0xdfb07b,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4df008[_0x342691]=_0xdfb07b,_0x4df008;}function _(_0x150fe1,_0x5597b5){return function(_0x34f9af,_0x5952be){_0x5597b5(_0x34f9af,_0x5952be,_0x150fe1);};}function v(_0x1c3965,_0x2a1655,_0x1ffb12,_0x5951c2){var _0x308e4e=_0x1368,_0x45d921=arguments[_0x308e4e(0xe6)],_0x203e48=_0x45d921<0x3?_0x2a1655:_0x5951c2===null?_0x5951c2=Object[_0x308e4e(0xbe)](_0x2a1655,_0x1ffb12):_0x5951c2,_0x338f3a;if(typeof Reflect==_0x308e4e(0xc0)&&typeof Reflect[_0x308e4e(0xed)]==_0x308e4e(0xce))_0x203e48=Reflect[_0x308e4e(0xed)](_0x1c3965,_0x2a1655,_0x1ffb12,_0x5951c2);else{for(var _0x23efc5=_0x1c3965[_0x308e4e(0xe6)]-0x1;_0x23efc5>=0x0;_0x23efc5--)(_0x338f3a=_0x1c3965[_0x23efc5])&&(_0x203e48=(_0x45d921<0x3?_0x338f3a(_0x203e48):_0x45d921>0x3?_0x338f3a(_0x2a1655,_0x1ffb12,_0x203e48):_0x338f3a(_0x2a1655,_0x1ffb12))||_0x203e48);}return _0x45d921>0x3&&_0x203e48&&Object[_0x308e4e(0xd9)](_0x2a1655,_0x1ffb12,_0x203e48),_0x203e48;}let y=class{constructor(_0x3bbc14,_0x1eabd7,_0x530bcc){var _0xafcab7=_0x1368;this[_0xafcab7(0xdd)]=_0x3bbc14,this[_0xafcab7(0xfe)]=_0x1eabd7,this[_0xafcab7(0xcf)]=_0x530bcc,g(this,_0xafcab7(0xdb),void 0x0),this['_unitId']=this['_document'][_0xafcab7(0xc1)]();}[_0x2699ee(0xc1)](){var _0x1df39f=_0x2699ee;return this[_0x1df39f(0xfe)];}[_0x2699ee(0xe3)](){var _0x1d14f8=_0x2699ee;let _0x382527=this[_0x1d14f8(0xd5)]();return _0x382527?{'blockId':_0x382527[_0x1d14f8(0xfc)],'endIndex':_0x382527[_0x1d14f8(0xdf)],'startIndex':_0x382527[_0x1d14f8(0xf3)]}:null;}['getText'](){var _0xfecaf=_0x2699ee,_0x2befa6;let _0x2c02d1=this['_getBlockRange'](),_0x1f92e9=(_0x2befa6=this[_0xfecaf(0xc5)]()[_0xfecaf(0xfa)])==null?void 0x0:_0x2befa6[_0xfecaf(0x101)];return!_0x2c02d1||!_0x1f92e9?'':b(_0x1f92e9[_0xfecaf(0xd6)](_0x2c02d1['startIndex']+0x1,_0x2c02d1[_0xfecaf(0xdf)]));}[_0x2699ee(0xe1)](){var _0x2bda3b=_0x2699ee;let _0x5138e4=this[_0x2bda3b(0xe3)]();return _0x5138e4?{..._0x5138e4,'config':this['getConfig'](),'text':this['getText'](),'type':_0x4f43e3[_0x2bda3b(0xf2)]}:null;}['getConfig'](){var _0xb63a58=_0x2699ee;return _0x3cd8a(this['_injector'][_0xb63a58(0xe5)](_0x404cd1)[_0xb63a58(0xf8)](this[_0xb63a58(0xdb)],this[_0xb63a58(0xfe)]));}[_0x2699ee(0xe9)](_0x448b6e){var _0x1c8abc=_0x2699ee;return this['_injector']['get'](_0x4c1c14)['syncExecuteCommand'](_0x370048['id'],{'blockId':this['_blockId'],'config':_0x448b6e[_0x1c8abc(0xc3)],'unitId':this['_unitId']});}['exit'](_0x23f5ac){var _0x2183e3=_0x2699ee;return this['_injector'][_0x2183e3(0xe5)](_0x4c1c14)['syncExecuteCommand'](_0x6bd294['id'],{'cursorOffset':_0x23f5ac,'unitId':this[_0x2183e3(0xdb)]});}[_0x2699ee(0xde)](_0xe6de84={}){var _0x5cb88a=_0x2699ee;return this['_injector'][_0x5cb88a(0xe5)](_0x4c1c14)['syncExecuteCommand'](_0xa9487b['id'],{..._0xe6de84,'unitId':this[_0x5cb88a(0xdb)]});}[_0x2699ee(0xc5)](){var _0x216e3e=_0x2699ee;return this['_document'][_0x216e3e(0xf9)]();}[_0x2699ee(0xd5)](){var _0x574945=_0x2699ee,_0x2bbc6b;let _0x4b7e90=(_0x2bbc6b=this[_0x574945(0xc5)]()['body'])==null||(_0x2bbc6b=_0x2bbc6b[_0x574945(0xbf)])==null?void 0x0:_0x2bbc6b[_0x574945(0xdc)](_0x37d732=>_0x37d732[_0x574945(0xfc)]===this[_0x574945(0xfe)]&&_0x37d732[_0x574945(0xec)]===_0x4f43e3[_0x574945(0xf2)]);return _0x4b7e90==null?null:_0x4b7e90;}};y=v([_(0x2,_0x5d099d(_0x12ce22))],y);function b(_0x5c137a){var _0x3397f3=_0x2699ee;return Array[_0x3397f3(0xcd)](_0x5c137a)[_0x3397f3(0xd4)](_0x23939d=>_0x23939d===_0x5a0cc1[_0x3397f3(0x102)]?'\x0a':_0x23939d)[_0x3397f3(0xef)](_0x4f9663=>_0x4f9663!==_0x5a0cc1[_0x3397f3(0xea)]&&_0x4f9663!==_0x5a0cc1[_0x3397f3(0xd1)]&&_0x4f9663!==_0x5a0cc1[_0x3397f3(0xc6)])[_0x3397f3(0xd2)]('')[_0x3397f3(0xc9)](/\n$/,'');}var x=class extends _0x184985{[_0x2699ee(0xd0)](){var _0x4dac0a=_0x2699ee;return this['_getBlockRanges']()[_0x4dac0a(0xef)](_0x3c457c=>_0x3c457c[_0x4dac0a(0xec)]===_0x4f43e3[_0x4dac0a(0xf2)])[_0x4dac0a(0xd4)](_0x30312b=>this[_0x4dac0a(0x100)](_0x30312b['blockId']));}[_0x2699ee(0xd7)](_0x11ccbd){var _0x12e66a=_0x2699ee;return this['_getBlockRanges']()['some'](_0x1cf529=>_0x1cf529[_0x12e66a(0xfc)]===_0x11ccbd&&_0x1cf529[_0x12e66a(0xec)]===_0x4f43e3[_0x12e66a(0xf2)])?this[_0x12e66a(0x100)](_0x11ccbd):null;}[_0x2699ee(0xeb)](_0x25ce36){var _0x37b459=_0x2699ee;let _0x38e568=this[_0x37b459(0xfd)]()[_0x37b459(0xdc)](_0x4a65bd=>_0x4a65bd[_0x37b459(0xec)]===_0x4f43e3['CODE']&&_0x4a65bd['startIndex']<=_0x25ce36&&_0x25ce36<=_0x4a65bd[_0x37b459(0xdf)]);return _0x38e568?this[_0x37b459(0x100)](_0x38e568[_0x37b459(0xfc)]):null;}['findCodeByText'](_0x198444){var _0x58c169=_0x2699ee,_0x21a187;return(_0x21a187=this[_0x58c169(0xcb)](_0x198444)[0x0])==null?null:_0x21a187;}['findCodes'](_0x318448){var _0x30817d=_0x2699ee;let _0x127049=typeof _0x318448==_0x30817d(0xe7)?{'text':_0x318448}:_0x318448;return this['getCodes']()['filter'](_0x53fed6=>!(_0x127049[_0x30817d(0xfc)]&&_0x53fed6[_0x30817d(0xc1)]()!==_0x127049['blockId']||_0x127049[_0x30817d(0xca)]&&!_0x53fed6[_0x30817d(0xf7)]()['includes'](_0x127049['text'])));}[_0x2699ee(0xc4)](_0x13f1f8={}){var _0x28fc06=_0x2699ee,_0x4e49ad;let _0x1c47a5=this[_0x28fc06(0xcf)][_0x28fc06(0xe5)](_0x4c1c14),_0x56136b=(_0x4e49ad=_0x13f1f8[_0x28fc06(0xfc)])==null?_0x5b6778(0x6):_0x4e49ad;return _0x1c47a5[_0x28fc06(0x104)](_0x478b1e['id'],{..._0x13f1f8,'blockId':_0x56136b,'unitId':this[_0x28fc06(0xc1)]()})?this[_0x28fc06(0x100)](_0x56136b):null;}[_0x2699ee(0xf5)](_0x3dde3c){var _0x2dbb0b=_0x2699ee;return this[_0x2dbb0b(0xcf)][_0x2dbb0b(0xe5)](_0x4c1c14)[_0x2dbb0b(0x104)](_0x6bd294['id'],{'cursorOffset':_0x3dde3c,'unitId':this[_0x2dbb0b(0xc1)]()});}['cancelEmptyCodeParagraph'](_0x48482b={}){var _0xe82510=_0x2699ee;return this['_injector'][_0xe82510(0xe5)](_0x4c1c14)[_0xe82510(0x104)](_0xa9487b['id'],{..._0x48482b,'unitId':this[_0xe82510(0xc1)]()});}[_0x2699ee(0xfd)](){var _0x53d18a=_0x2699ee,_0x519e22,_0x409d16;return(_0x519e22=(_0x409d16=this[_0x53d18a(0xf9)]()['body'])==null?void 0x0:_0x409d16[_0x53d18a(0xbf)])==null?[]:_0x519e22;}[_0x2699ee(0x100)](_0x3c4da1){var _0x260581=_0x2699ee;return this[_0x260581(0xcf)][_0x260581(0xc7)](y,this,_0x3c4da1);}};_0x184985[_0x2699ee(0xf4)](x);export{y as FDocumentCode};
1
+ var _0x23880a=_0x18c9;(function(_0x36805e,_0x4b7cfa){var _0x47dcca=_0x18c9,_0x5b95b3=_0x36805e();while(!![]){try{var _0x502c85=parseInt(_0x47dcca(0x11a))/0x1*(-parseInt(_0x47dcca(0x114))/0x2)+-parseInt(_0x47dcca(0x111))/0x3+parseInt(_0x47dcca(0x141))/0x4+-parseInt(_0x47dcca(0x12d))/0x5+-parseInt(_0x47dcca(0x13f))/0x6*(-parseInt(_0x47dcca(0x138))/0x7)+-parseInt(_0x47dcca(0x10c))/0x8*(parseInt(_0x47dcca(0x122))/0x9)+parseInt(_0x47dcca(0x127))/0xa;if(_0x502c85===_0x4b7cfa)break;else _0x5b95b3['push'](_0x5b95b3['shift']());}catch(_0x3f344b){_0x5b95b3['push'](_0x5b95b3['shift']());}}}(_0x150e,0x629a9));import{DocsCodeCancelEmptyParagraphCommand as _0x4d0f02,DocsCodeExitCommand as _0x4d14af,DocsCodeInsertCommand as _0x529303,DocsCodeModel as _0x559543,DocsCodeUpdateCommand as _0x464115,normalizeDocsCodeConfig as _0xf6f9a6}from'@univerjs-pro/docs-code';import{DataStreamTreeTokenType as _0x2d7d12,DocumentBlockRangeType as _0x288e49,ICommandService as _0xebe6a2,Inject as _0x4516c2,Injector as _0x5e4eba,generateRandomId as _0x119d93}from'@univerjs/core';import{FDocument as _0x1f0b1a}from'@univerjs/docs/facade';function p(_0x3ddc68){'@babel/helpers - typeof';var _0x41845c=_0x18c9;return p=typeof Symbol==_0x41845c(0x13e)&&typeof Symbol[_0x41845c(0x11d)]==_0x41845c(0x110)?function(_0x320725){return typeof _0x320725;}:function(_0x4159de){var _0x4f43ae=_0x41845c;return _0x4159de&&typeof Symbol==_0x4f43ae(0x13e)&&_0x4159de[_0x4f43ae(0x10d)]===Symbol&&_0x4159de!==Symbol['prototype']?'symbol':typeof _0x4159de;},p(_0x3ddc68);}function m(_0x170594,_0x1d9cfa){var _0x202976=_0x18c9;if(p(_0x170594)!=_0x202976(0x104)||!_0x170594)return _0x170594;var _0xe23f65=_0x170594[Symbol['toPrimitive']];if(_0xe23f65!==void 0x0){var _0x254ab4=_0xe23f65[_0x202976(0x136)](_0x170594,_0x1d9cfa||'default');if(p(_0x254ab4)!='object')return _0x254ab4;throw TypeError(_0x202976(0x116));}return(_0x1d9cfa===_0x202976(0x10b)?String:Number)(_0x170594);}function h(_0x400975){var _0x35aac8=_0x18c9,_0x8587fe=m(_0x400975,_0x35aac8(0x10b));return p(_0x8587fe)==_0x35aac8(0x110)?_0x8587fe:_0x8587fe+'';}function g(_0x59ba2b,_0x446c79,_0x423ae2){var _0x307908=_0x18c9;return(_0x446c79=h(_0x446c79))in _0x59ba2b?Object[_0x307908(0x126)](_0x59ba2b,_0x446c79,{'value':_0x423ae2,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x59ba2b[_0x446c79]=_0x423ae2,_0x59ba2b;}function _(_0x16e7b5,_0x59faa5){return function(_0x362d94,_0x5730ea){_0x59faa5(_0x362d94,_0x5730ea,_0x16e7b5);};}function v(_0x45c050,_0x59cb2c,_0x32dfae,_0xfa5f16){var _0x75b24f=_0x18c9,_0x115364=arguments['length'],_0x49efde=_0x115364<0x3?_0x59cb2c:_0xfa5f16===null?_0xfa5f16=Object['getOwnPropertyDescriptor'](_0x59cb2c,_0x32dfae):_0xfa5f16,_0xbd09ee;if(typeof Reflect=='object'&&typeof Reflect[_0x75b24f(0x10a)]=='function')_0x49efde=Reflect[_0x75b24f(0x10a)](_0x45c050,_0x59cb2c,_0x32dfae,_0xfa5f16);else{for(var _0x1d1072=_0x45c050['length']-0x1;_0x1d1072>=0x0;_0x1d1072--)(_0xbd09ee=_0x45c050[_0x1d1072])&&(_0x49efde=(_0x115364<0x3?_0xbd09ee(_0x49efde):_0x115364>0x3?_0xbd09ee(_0x59cb2c,_0x32dfae,_0x49efde):_0xbd09ee(_0x59cb2c,_0x32dfae))||_0x49efde);}return _0x115364>0x3&&_0x49efde&&Object[_0x75b24f(0x126)](_0x59cb2c,_0x32dfae,_0x49efde),_0x49efde;}function _0x150e(){var _0x93b1e8=['defineProperty','6457780rLUbLC','get','_document','find','SECTION_BREAK','config','873750ijQTva','blockId','getCodeAt','PARAGRAPH','slice','CODE','_getDocumentData','endIndex','join','call','extend','12698sAtdPN','save','_injector','exitCode','_getBlockRange','getConfig','function','510ZdoPyR','getId','1856816WFRufG','cancelEmptyCodeParagraph','cancelEmptyParagraph','getCode','_createFDocumentCode','exit','BLOCK_END','_unitId','object','getText','map','getCodeConfig','_blockId','filter','decorate','string','1336MteCjF','constructor','blockType','getKey','symbol','899262heTSva','from','insertCode','697092QDhSnX','syncExecuteCommand','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','getRange','getCodes','blockRanges','1RBQjTI','text','findCodes','iterator','includes','startIndex','_getBlockRanges','describe','2007lxEsmQ','body','paragraph','getType'];_0x150e=function(){return _0x93b1e8;};return _0x150e();}function _0x18c9(_0x1836f5,_0x2544a4){_0x1836f5=_0x1836f5-0xfd;var _0x150e57=_0x150e();var _0x18c94d=_0x150e57[_0x1836f5];return _0x18c94d;}let y=class{constructor(_0x403186,_0x5db0bc,_0x45f219){var _0x2b086f=_0x18c9;this[_0x2b086f(0x129)]=_0x403186,this[_0x2b086f(0x108)]=_0x5db0bc,this['_injector']=_0x45f219,g(this,_0x2b086f(0x103),void 0x0),this[_0x2b086f(0x103)]=this[_0x2b086f(0x129)][_0x2b086f(0x140)]();}[_0x23880a(0x140)](){var _0x1d2987=_0x23880a;return this[_0x1d2987(0x108)];}[_0x23880a(0x117)](){var _0xa97bdb=_0x23880a;let _0x3f86ea=this[_0xa97bdb(0x13c)]();return _0x3f86ea?{'blockId':_0x3f86ea[_0xa97bdb(0x12e)],'endIndex':_0x3f86ea['endIndex'],'startIndex':_0x3f86ea['startIndex']}:null;}['getText'](){var _0xb72eee=_0x23880a,_0x3edf11;let _0x46a40e=this[_0xb72eee(0x13c)](),_0x2b5b05=(_0x3edf11=this[_0xb72eee(0x133)]()['body'])==null?void 0x0:_0x3edf11['dataStream'];return!_0x46a40e||!_0x2b5b05?'':b(_0x2b5b05[_0xb72eee(0x131)](_0x46a40e[_0xb72eee(0x11f)]+0x1,_0x46a40e[_0xb72eee(0x134)]));}[_0x23880a(0x121)](){var _0x43eedb=_0x23880a;let _0x5ed1bd=this['getRange']();return _0x5ed1bd?{..._0x5ed1bd,'config':this['getConfig'](),'text':this[_0x43eedb(0x105)](),'type':_0x288e49[_0x43eedb(0x132)]}:null;}[_0x23880a(0x13d)](){var _0x486bbc=_0x23880a;return _0xf6f9a6(this[_0x486bbc(0x13a)][_0x486bbc(0x128)](_0x559543)[_0x486bbc(0x107)](this[_0x486bbc(0x103)],this[_0x486bbc(0x108)]));}['updateConfig'](_0x3ef929){var _0x25eb18=_0x23880a;return this[_0x25eb18(0x13a)][_0x25eb18(0x128)](_0xebe6a2)[_0x25eb18(0x115)](_0x464115['id'],{'blockId':this[_0x25eb18(0x108)],'config':_0x3ef929[_0x25eb18(0x12c)],'unitId':this[_0x25eb18(0x103)]});}[_0x23880a(0x101)](_0xcb7fad){var _0x2a5ceb=_0x23880a;return this[_0x2a5ceb(0x13a)][_0x2a5ceb(0x128)](_0xebe6a2)[_0x2a5ceb(0x115)](_0x4d14af['id'],{'cursorOffset':_0xcb7fad,'unitId':this[_0x2a5ceb(0x103)]});}[_0x23880a(0xfe)](_0x5c7b58={}){var _0xbb7d67=_0x23880a;return this[_0xbb7d67(0x13a)][_0xbb7d67(0x128)](_0xebe6a2)[_0xbb7d67(0x115)](_0x4d0f02['id'],{..._0x5c7b58,'unitId':this[_0xbb7d67(0x103)]});}[_0x23880a(0x133)](){var _0x3255bc=_0x23880a;return this[_0x3255bc(0x129)]['save']();}[_0x23880a(0x13c)](){var _0x158296=_0x23880a,_0x19837b;let _0xe27e38=(_0x19837b=this[_0x158296(0x133)]()['body'])==null||(_0x19837b=_0x19837b[_0x158296(0x119)])==null?void 0x0:_0x19837b[_0x158296(0x12a)](_0x21e0fc=>_0x21e0fc[_0x158296(0x12e)]===this[_0x158296(0x108)]&&_0x21e0fc[_0x158296(0x10e)]===_0x288e49['CODE']);return _0xe27e38==null?null:_0xe27e38;}};y=v([_(0x2,_0x4516c2(_0x5e4eba))],y);function b(_0x383a7a){var _0x4acaed=_0x23880a;return Array[_0x4acaed(0x112)](_0x383a7a)['map'](_0x21e7de=>_0x21e7de===_0x2d7d12[_0x4acaed(0x130)]?'\x0a':_0x21e7de)[_0x4acaed(0x109)](_0xb05706=>_0xb05706!==_0x2d7d12['BLOCK_START']&&_0xb05706!==_0x2d7d12[_0x4acaed(0x102)]&&_0xb05706!==_0x2d7d12[_0x4acaed(0x12b)])[_0x4acaed(0x135)]('')['replace'](/\n$/,'');}var x=class extends _0x1f0b1a{['getCodes'](){var _0x55ee07=_0x23880a;return this[_0x55ee07(0x120)]()[_0x55ee07(0x109)](_0x11f514=>_0x11f514[_0x55ee07(0x10e)]===_0x288e49[_0x55ee07(0x132)])[_0x55ee07(0x106)](_0x17cf65=>this['_createFDocumentCode'](_0x17cf65['blockId']));}[_0x23880a(0xff)](_0x28b903){var _0x4e5e56=_0x23880a;return this[_0x4e5e56(0x120)]()['some'](_0x4b1c01=>_0x4b1c01['blockId']===_0x28b903&&_0x4b1c01['blockType']===_0x288e49[_0x4e5e56(0x132)])?this['_createFDocumentCode'](_0x28b903):null;}[_0x23880a(0x12f)](_0x5d6dc3){var _0x4b4b59=_0x23880a;let _0x21718c=this[_0x4b4b59(0x120)]()[_0x4b4b59(0x12a)](_0x5cce27=>_0x5cce27[_0x4b4b59(0x10e)]===_0x288e49[_0x4b4b59(0x132)]&&_0x5cce27['startIndex']<=_0x5d6dc3&&_0x5d6dc3<=_0x5cce27[_0x4b4b59(0x134)]);return _0x21718c?this['_createFDocumentCode'](_0x21718c[_0x4b4b59(0x12e)]):null;}['findCodeByText'](_0x544379){var _0x4e4db8=_0x23880a,_0x3ca051;return(_0x3ca051=this[_0x4e4db8(0x11c)](_0x544379)[0x0])==null?null:_0x3ca051;}['findCodes'](_0x172c10){var _0x223642=_0x23880a;let _0x51a0aa=typeof _0x172c10==_0x223642(0x10b)?{'text':_0x172c10}:_0x172c10;return this[_0x223642(0x118)]()[_0x223642(0x109)](_0x3ce6be=>!(_0x51a0aa[_0x223642(0x12e)]&&_0x3ce6be[_0x223642(0x140)]()!==_0x51a0aa['blockId']||_0x51a0aa[_0x223642(0x11b)]&&!_0x3ce6be[_0x223642(0x105)]()[_0x223642(0x11e)](_0x51a0aa[_0x223642(0x11b)])));}[_0x23880a(0x113)](_0x257798={},_0x2b9773={}){var _0x328b52=_0x23880a,_0x5eaf25;let _0x33d115=this['_injector']['get'](_0xebe6a2),_0x120c29=S(_0x257798)?{..._0x2b9773,...C(_0x257798)}:_0x257798,_0xb418a6=(_0x5eaf25=_0x120c29[_0x328b52(0x12e)])==null?_0x119d93(0x6):_0x5eaf25;return _0x33d115[_0x328b52(0x115)](_0x529303['id'],{..._0x120c29,'blockId':_0xb418a6,'unitId':this[_0x328b52(0x140)]()})?this[_0x328b52(0x100)](_0xb418a6):null;}[_0x23880a(0x13b)](_0x4932c4){var _0x1a5f8d=_0x23880a;return this['_injector'][_0x1a5f8d(0x128)](_0xebe6a2)[_0x1a5f8d(0x115)](_0x4d14af['id'],{'cursorOffset':_0x4932c4,'unitId':this[_0x1a5f8d(0x140)]()});}[_0x23880a(0xfd)](_0x2c7afc={}){var _0x19e4c9=_0x23880a;return this['_injector']['get'](_0xebe6a2)[_0x19e4c9(0x115)](_0x4d0f02['id'],{..._0x2c7afc,'unitId':this[_0x19e4c9(0x140)]()});}[_0x23880a(0x120)](){var _0x40e56e=_0x23880a,_0x1e0af0,_0x357109;return(_0x1e0af0=(_0x357109=this[_0x40e56e(0x139)]()[_0x40e56e(0x123)])==null?void 0x0:_0x357109[_0x40e56e(0x119)])==null?[]:_0x1e0af0;}[_0x23880a(0x100)](_0x289934){var _0x578d2a=_0x23880a;return this[_0x578d2a(0x13a)]['createInstance'](y,this,_0x289934);}};function S(_0x335334){var _0x449f3f=_0x23880a;return typeof _0x335334==_0x449f3f(0x104)&&!!_0x335334&&typeof _0x335334[_0x449f3f(0x10f)]==_0x449f3f(0x13e)&&typeof _0x335334['getRange']==_0x449f3f(0x13e)&&typeof _0x335334[_0x449f3f(0x125)]==_0x449f3f(0x13e)&&_0x335334[_0x449f3f(0x125)]()===_0x449f3f(0x124);}function C(_0x5aa4de){var _0x519f9a=_0x23880a;return _0x5aa4de[_0x519f9a(0x117)]();}_0x1f0b1a[_0x23880a(0x137)](x);export{y as FDocumentCode};
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x3fb85f=_0x58fb;(function(_0x2d7f1f,_0x247fad){const _0x1473bb=_0x58fb,_0x4482cd=_0x2d7f1f();while(!![]){try{const _0x3aafd7=-parseInt(_0x1473bb(0x1ab))/0x1*(parseInt(_0x1473bb(0x1fa))/0x2)+parseInt(_0x1473bb(0x1f6))/0x3*(-parseInt(_0x1473bb(0x1b2))/0x4)+parseInt(_0x1473bb(0x1d0))/0x5*(parseInt(_0x1473bb(0x1eb))/0x6)+-parseInt(_0x1473bb(0x20f))/0x7*(parseInt(_0x1473bb(0x1cb))/0x8)+parseInt(_0x1473bb(0x1c1))/0x9*(parseInt(_0x1473bb(0x1bd))/0xa)+-parseInt(_0x1473bb(0x1dc))/0xb+parseInt(_0x1473bb(0x1b6))/0xc;if(_0x3aafd7===_0x247fad)break;else _0x4482cd['push'](_0x4482cd['shift']());}catch(_0x241a37){_0x4482cd['push'](_0x4482cd['shift']());}}}(_0x557c,0xe372b));import{BuildTextUtils as _0x409809,CommandType as _0x4f0b2b,DataStreamTreeTokenType as _0x225989,DependentOn as _0x20cd03,Disposable as _0x4b273f,DocumentBlockRangeType as _0x18cfaa,ICommandService as _0x47dec0,IConfigService as _0x5c230c,IResourceManagerService as _0x16435a,IUniverInstanceService as _0x2d0bd1,Inject as _0x3ba08f,Injector as _0x160d3c,JSONX as _0x1f7576,Plugin as _0x36058a,Tools as _0x1ad342,UniverInstanceType as _0x2d29fd,generateRandomId as _0x57a8f5,merge as _0x57e027}from'@univerjs/core';import{DocContentInsertService as _0x498fcb,DocSelectionManagerService as _0x566c02,RichTextEditingMutation as _0x40822b,UniverDocsPlugin as _0x38efde}from'@univerjs/docs';import{Subject as _0x161704}from'rxjs';import{UniverLicensePlugin as _0x3dc60a}from'@univerjs-pro/license';const S={'language':_0x3fb85f(0x1ec),'showLineNumbers':!0x1,'tabSize':0x4,'wrap':!0x0};function C(_0x4307d3){return{...S,..._0x4307d3};}function w(_0xa50848){const _0xf75f68=_0x3fb85f;var _0x474cb7;let _0x545458=(_0x474cb7=_0xa50848==null?void 0x0:_0xa50848[_0xf75f68(0x1b9)])==null?{}:_0x474cb7;return{'codes':Object[_0xf75f68(0x1c8)](Object[_0xf75f68(0x211)](_0x545458)[_0xf75f68(0x1d6)](([_0x15e18e,_0x5b54c3])=>[_0x15e18e,C(_0x5b54c3)]))};}function T(_0x43ba68,_0x36ec1c,_0x29514e){const _0x5da7b1=_0x3fb85f;let _0x2c185d=w(_0x43ba68);return _0x2c185d['codes'][_0x36ec1c]=C({..._0x2c185d[_0x5da7b1(0x1b9)][_0x36ec1c],..._0x29514e}),_0x2c185d;}function ne(_0x2e8d3d,_0x33d51e){const _0x45417c=_0x3fb85f;let _0x33bd28=w(_0x2e8d3d);return delete _0x33bd28[_0x45417c(0x1b9)][_0x33d51e],_0x33bd28;}const re=_0x3fb85f(0x1a0);function E(_0x198cae){const _0x587684=_0x3fb85f;var _0x488c75,_0x542045,_0x3a0d48;let _0x502fd9=k(_0x198cae['documentData']),_0x3d57ff=A(_0x502fd9),_0x195fe2=ae(_0x198cae[_0x587684(0x229)],_0x198cae[_0x587684(0x1a1)]),_0x3bb992=_0x195fe2?(_0x488c75=_0x3d57ff[_0x587684(0x1ca)])==null?void 0x0:_0x488c75[_0x587684(0x1f8)](_0x385cc3=>_0x385cc3['startIndex']===_0x195fe2[_0x587684(0x229)]&&_0x385cc3['endIndex']+0x1===_0x195fe2[_0x587684(0x1a1)]):void 0x0,{startOffset:_0x1473e3,endOffset:_0x2a8642}=_0x3bb992?_0x195fe2:ge(_0x3d57ff,_0x198cae[_0x587684(0x229)],_0x198cae['endOffset']),_0x357550=ve(_0x3d57ff,_0x1473e3,_0x2a8642),_0x37becf=(_0x542045=_0x3bb992==null?void 0x0:_0x3bb992[_0x587684(0x1de)])==null?_0x198cae[_0x587684(0x1de)]:_0x542045,_0x52370e=T(_0x198cae['metadata'],_0x37becf,{...S,..._0x198cae['config']});if(_0x3bb992)return _0x3bb992[_0x587684(0x1e9)]=_0x18cfaa['CODE'],ie(_0x3d57ff,_0x1473e3,_0x2a8642),fe(_0x3d57ff,_0x1473e3,_0x2a8642,_0x357550),{'nextDocumentData':_0x502fd9,'nextMetadata':_0x52370e,'cursorOffset':_0x1473e3+0x1};if(_0x1473e3===_0x2a8642){let _0x3f5e11=''+_0x225989[_0x587684(0x219)]+_0x225989[_0x587684(0x1a4)]+_0x225989['BLOCK_END'];return P(_0x3d57ff,_0x1473e3,_0x3f5e11,{'paragraphs':[{'startIndex':0x1,'paragraphStyle':O(!0x0,!0x0,_0x357550)}],'blockRanges':[{'blockId':_0x37becf,'blockType':_0x18cfaa[_0x587684(0x1e2)],'startIndex':0x0,'endIndex':_0x3f5e11[_0x587684(0x1fe)]-0x1}]}),{'nextDocumentData':_0x502fd9,'nextMetadata':_0x52370e,'cursorOffset':_0x1473e3+0x1};}return P(_0x3d57ff,_0x2a8642,_0x225989[_0x587684(0x1fb)]),P(_0x3d57ff,_0x1473e3,_0x225989[_0x587684(0x219)]),fe(_0x3d57ff,_0x1473e3,_0x2a8642+0x1,_0x357550),_0x3d57ff[_0x587684(0x1ca)]=[...(_0x3a0d48=_0x3d57ff[_0x587684(0x1ca)])==null?[]:_0x3a0d48,{'blockId':_0x37becf,'blockType':_0x18cfaa[_0x587684(0x1e2)],'startIndex':_0x1473e3,'endIndex':_0x2a8642+0x1}]['sort']((_0x27827a,_0x56377c)=>_0x27827a['startIndex']-_0x56377c['startIndex']),{'nextDocumentData':_0x502fd9,'nextMetadata':_0x52370e,'cursorOffset':_0x1473e3+0x1};}function ie(_0x2c2b9f,_0x4cb9a2,_0x1bccaf){const _0x226e6a=_0x3fb85f;var _0x559953;((_0x559953=_0x2c2b9f[_0x226e6a(0x1e3)])==null?[]:_0x559953)[_0x226e6a(0x21d)](_0x299205=>_0x299205[_0x226e6a(0x20b)]>_0x4cb9a2&&_0x299205[_0x226e6a(0x20b)]<_0x1bccaf)['forEach'](_0x27e45d=>{const _0x3c94fc=_0x226e6a;var _0x1279b8;let _0x424d78={...(_0x1279b8=_0x27e45d['paragraphStyle'])==null?{}:_0x1279b8};delete _0x424d78[_0x3c94fc(0x1e5)],delete _0x424d78[_0x3c94fc(0x205)],_0x27e45d['paragraphStyle']=_0x424d78;});}function ae(_0x4ce535,_0x159848){return _0x4ce535==null||_0x159848==null||_0x4ce535===_0x159848?null:{'startOffset':Math['min'](_0x4ce535,_0x159848),'endOffset':Math['max'](_0x4ce535,_0x159848)};}function D(_0x5339c9){const _0x4db0fa=_0x3fb85f;return{'nextDocumentData':k(_0x5339c9[_0x4db0fa(0x1cd)]),'nextMetadata':T(_0x5339c9[_0x4db0fa(0x1d5)],_0x5339c9['blockId'],_0x5339c9[_0x4db0fa(0x207)]),'cursorOffset':0x0};}function oe(_0x13be90){const _0x3990da=_0x3fb85f;var _0x25cc06,_0x40a3bd;let _0x138a3b=k(_0x13be90['documentData']),_0x447467=A(_0x138a3b),_0x493344=de(_0x447467,_0x13be90[_0x3990da(0x201)]);if(!_0x493344)return null;let _0x1bbacb=me(_0x447467,_0x493344),_0x4c8f23=_0x1bbacb[_0x1bbacb[_0x3990da(0x1fe)]-0x1];if(!_0x4c8f23||!he(_0x447467,_0x493344,_0x4c8f23)||_0x13be90['cursorOffset']<_0x4c8f23['startIndex'])return null;let _0xf4c56b=M(_0x447467,_0x493344,_0x4c8f23);if(_0xf4c56b>=_0x493344[_0x3990da(0x1d9)])return null;_0x447467[_0x3990da(0x1f2)]=[_0x447467[_0x3990da(0x1f2)][_0x3990da(0x21a)](0x0,_0xf4c56b),_0x225989['BLOCK_END'],_0x447467[_0x3990da(0x1f2)][_0x3990da(0x21a)](_0xf4c56b,_0x493344[_0x3990da(0x1d9)]),_0x447467[_0x3990da(0x1f2)]['slice'](_0x493344[_0x3990da(0x1d9)]+0x1)][_0x3990da(0x222)](''),z(_0x447467['paragraphs'],_0xf4c56b,_0x493344['endIndex'],0x1),z(_0x447467[_0x3990da(0x1ac)],_0xf4c56b,_0x493344[_0x3990da(0x1d9)],0x1),z(_0x447467[_0x3990da(0x1ba)],_0xf4c56b,_0x493344[_0x3990da(0x1d9)],0x1),Te(_0x447467[_0x3990da(0x1f1)],_0xf4c56b,_0x493344[_0x3990da(0x1d9)],0x1),B(_0x447467[_0x3990da(0x1d1)],_0xf4c56b,_0x493344[_0x3990da(0x1d9)],0x1),B(_0x447467[_0x3990da(0x21b)],_0xf4c56b,_0x493344['endIndex'],0x1),B(_0x447467[_0x3990da(0x1b0)],_0xf4c56b,_0x493344[_0x3990da(0x1d9)],0x1),(_0x25cc06=_0x447467[_0x3990da(0x1ca)])==null||_0x25cc06[_0x3990da(0x1df)](_0xf3a485=>{const _0x6062b9=_0x3990da;_0xf3a485===_0x493344||_0xf3a485[_0x6062b9(0x1de)]===_0x493344['blockId']?_0xf3a485[_0x6062b9(0x1d9)]=_0xf4c56b:_0xf3a485[_0x6062b9(0x20b)]>=_0xf4c56b&&_0xf3a485[_0x6062b9(0x20b)]<_0x493344[_0x6062b9(0x1d9)]&&(_0xf3a485[_0x6062b9(0x20b)]+=0x1,_0xf3a485[_0x6062b9(0x1d9)]+=0x1);});let _0x4eac21=me(_0x447467,{..._0x493344,'endIndex':_0xf4c56b});_0x4eac21[_0x3990da(0x1df)]((_0x41b052,_0x2a659e)=>{const _0x5225b2=_0x3990da;var _0x4227d3;_0x41b052[_0x5225b2(0x1f9)]={...(_0x4227d3=_0x41b052['paragraphStyle'])==null?{}:_0x4227d3,...O(_0x2a659e===0x0,_0x2a659e===_0x4eac21['length']-0x1)};});let _0xf2c7b6=(_0x40a3bd=_0x447467[_0x3990da(0x1e3)])==null?void 0x0:_0x40a3bd[_0x3990da(0x1f8)](_0x196c80=>_0x196c80[_0x3990da(0x20b)]===_0xf4c56b+0x1);return _0xf2c7b6&&(_0xf2c7b6[_0x3990da(0x1f9)]=pe(_0xf2c7b6[_0x3990da(0x1f9)])),{'nextDocumentData':_0x138a3b,'cursorOffset':_0xf4c56b+0x1};}function se(_0x316c23){const _0xa9b2b=_0x3fb85f;let _0x17a2d6=k(_0x316c23[_0xa9b2b(0x1cd)]),_0x5aa231=A(_0x17a2d6),_0x31d9bd=de(_0x5aa231,_0x316c23[_0xa9b2b(0x201)]);return _0x31d9bd&&ce(_0x17a2d6,_0x5aa231,_0x31d9bd,_0x316c23[_0xa9b2b(0x201)],_0x316c23[_0xa9b2b(0x202)])||null;}function ce(_0x23d68c,_0x3cbbdc,_0x3092a9,_0x25b94d,_0x49f5b3){const _0x21665c=_0x3fb85f;let _0x190564=be(_0x3cbbdc,_0x3092a9,_0x25b94d,_0x49f5b3);if(!_0x190564)return null;let _0x5b9220=_0x190564['endTokenOffset']-0x1;return xe(_0x3cbbdc,_0x190564['paragraph'][_0x21665c(0x20b)],_0x190564[_0x21665c(0x1b3)]['startIndex']+0x1),{'nextDocumentData':_0x23d68c,'cursorOffset':_0x5b9220};}function le(_0x4c377f,_0x535596){const _0x48ab69=_0x3fb85f;var _0x1aaf57;return _0x4c377f==null||(_0x1aaf57=_0x4c377f[_0x48ab69(0x1ca)])==null?void 0x0:_0x1aaf57['find'](_0x1327ad=>_0x1327ad[_0x48ab69(0x1e9)]===_0x18cfaa[_0x48ab69(0x1e2)]&&_0x1327ad[_0x48ab69(0x20b)]<=_0x535596&&_0x535596<=_0x1327ad[_0x48ab69(0x1d9)]);}function ue(_0x2dd1f0){const _0x483ba0=_0x3fb85f;var _0x10bba7;let _0x35a987=_0x2dd1f0[_0x483ba0(0x1cd)][_0x483ba0(0x1c5)];if(!_0x35a987)return!0x1;let _0x589c68=_0x2dd1f0[_0x483ba0(0x1b7)]==='left'?_0x2dd1f0['cursorOffset']-0x1:_0x2dd1f0[_0x483ba0(0x201)],_0x501c09=_0x2dd1f0[_0x483ba0(0x1b7)]===_0x483ba0(0x214)?_0x2dd1f0[_0x483ba0(0x201)]+0x1:_0x589c68;return((_0x10bba7=_0x35a987[_0x483ba0(0x1ca)])==null?[]:_0x10bba7)[_0x483ba0(0x1c2)](_0x4e8200=>_0x4e8200[_0x483ba0(0x1e9)]===_0x18cfaa[_0x483ba0(0x1e2)]?_0x589c68===_0x4e8200[_0x483ba0(0x20b)]||_0x589c68===_0x4e8200[_0x483ba0(0x1d9)]||_0x501c09===_0x4e8200[_0x483ba0(0x20b)]||_0x501c09===_0x4e8200[_0x483ba0(0x1d9)]:!0x1);}function de(_0x43b3dd,_0x4cf679){const _0xec8ba6=_0x3fb85f;var _0x496013;return(_0x496013=_0x43b3dd[_0xec8ba6(0x1ca)])==null?void 0x0:_0x496013[_0xec8ba6(0x1f8)](_0x495d5e=>{const _0x5aaec2=_0xec8ba6;let _0x2c2dae=N(_0x43b3dd,_0x495d5e);return _0x495d5e[_0x5aaec2(0x1e9)]===_0x18cfaa[_0x5aaec2(0x1e2)]&&_0x495d5e['startIndex']<=_0x4cf679&&_0x4cf679<=_0x2c2dae+0x2;});}function O(_0x314e39,_0x71e749,_0x385185=!0x1){return{'indentEnd':{'v':0x14},'indentStart':{'v':0x14},..._0x314e39&&_0x385185?{'spaceAbove':{'v':0x8}}:{},'textStyle':{'ff':re,'fs':0xc}};}function fe(_0x3904c2,_0x16d89e,_0x3093ac,_0x13a6f7=!0x1){const _0x10f4d0=_0x3fb85f;var _0xc969a9;let _0x32f0bd=((_0xc969a9=_0x3904c2[_0x10f4d0(0x1e3)])==null?[]:_0xc969a9)['filter'](_0x191279=>_0x191279['startIndex']>_0x16d89e&&_0x191279[_0x10f4d0(0x20b)]<_0x3093ac);_0x32f0bd['forEach']((_0x4b9545,_0xbc2ade)=>{var _0x52bb2d;_0x4b9545['paragraphStyle']={...(_0x52bb2d=_0x4b9545['paragraphStyle'])==null?{}:_0x52bb2d,...O(_0xbc2ade===0x0,_0xbc2ade===_0x32f0bd['length']-0x1,_0x13a6f7)};});}function pe(_0x19d39e){const _0x3d8e64=_0x3fb85f;var _0x5e73dd,_0xca1597;let _0xa82380={..._0x19d39e==null?{}:_0x19d39e};return delete _0xa82380[_0x3d8e64(0x217)],delete _0xa82380[_0x3d8e64(0x1b1)],delete _0xa82380[_0x3d8e64(0x1e5)],delete _0xa82380[_0x3d8e64(0x205)],((_0x5e73dd=_0xa82380[_0x3d8e64(0x228)])==null?void 0x0:_0x5e73dd['ff'])===re&&((_0xca1597=_0xa82380[_0x3d8e64(0x228)])==null?void 0x0:_0xca1597['fs'])===0xc&&delete _0xa82380['textStyle'],_0xa82380;}function me(_0x395ec0,_0x5c18a5){const _0x162ca3=_0x3fb85f;var _0x3d3d0c;let _0x4f2229=N(_0x395ec0,_0x5c18a5);return((_0x3d3d0c=_0x395ec0[_0x162ca3(0x1e3)])==null?[]:_0x3d3d0c)['filter'](_0x2e397e=>_0x2e397e[_0x162ca3(0x20b)]>_0x5c18a5[_0x162ca3(0x20b)]&&_0x2e397e['startIndex']<_0x4f2229);}function he(_0x41b82b,_0x4093d6,_0x22badd){const _0x486cc0=_0x3fb85f;let _0x4d4864=M(_0x41b82b,_0x4093d6,_0x22badd),_0xbdcafb=_0x41b82b[_0x486cc0(0x1f2)]['slice'](_0x4d4864,_0x22badd[_0x486cc0(0x20b)]);return Array[_0x486cc0(0x1c0)](_0xbdcafb)[_0x486cc0(0x1a3)](_0x2adc06=>_0x2adc06===_0x225989[_0x486cc0(0x219)]||_0x2adc06===_0x225989[_0x486cc0(0x1fb)]);}function k(_0x5222d4){const _0x2ee14d=_0x3fb85f;return _0x1ad342[_0x2ee14d(0x204)](_0x5222d4);}function A(_0x29dc56){const _0x2ab416=_0x3fb85f;if(!_0x29dc56[_0x2ab416(0x1c5)])throw Error(_0x2ab416(0x20e));return _0x29dc56[_0x2ab416(0x1c5)];}function ge(_0x19382b,_0x32fcfb,_0x5a4290){const _0x22efcf=_0x3fb85f;if(_0x32fcfb==null||_0x5a4290==null){let _0x396e50=_e(_0x19382b);return{'startOffset':_0x396e50,'endOffset':_0x396e50};}let _0x2d437c=Math[_0x22efcf(0x227)](_0x32fcfb,_0x5a4290),_0x3a13a4=Math[_0x22efcf(0x1c3)](_0x32fcfb,_0x5a4290);return _0x2d437c===_0x3a13a4?{'startOffset':_0x2d437c,'endOffset':_0x2d437c}:ye(_0x19382b,_0x2d437c,_0x3a13a4);}function _e(_0x3a16e1){const _0x1457c2=_0x3fb85f;return _0x3a16e1[_0x1457c2(0x1f2)]['endsWith'](_0x225989['SECTION_BREAK'])?Math[_0x1457c2(0x1c3)](0x0,_0x3a16e1[_0x1457c2(0x1f2)][_0x1457c2(0x1fe)]-0x1):_0x3a16e1[_0x1457c2(0x1f2)]['length'];}function ve(_0x4db78f,_0x8e3bd0,_0x1e558e){const _0x5165ed=_0x3fb85f;var _0x14923b;let _0x53d7a6=Math[_0x5165ed(0x227)](_0x8e3bd0,_0x1e558e),_0x2af70a=Math['max'](_0x8e3bd0,_0x1e558e);return!!((_0x14923b=_0x4db78f[_0x5165ed(0x1d1)])!=null&&_0x14923b[_0x5165ed(0x1c2)](_0x198b8f=>_0x53d7a6>_0x198b8f['startIndex']&&_0x53d7a6<_0x198b8f[_0x5165ed(0x1d9)]||_0x2af70a>_0x198b8f[_0x5165ed(0x20b)]&&_0x2af70a<_0x198b8f[_0x5165ed(0x1d9)]||_0x53d7a6<=_0x198b8f[_0x5165ed(0x20b)]&&_0x2af70a>=_0x198b8f['endIndex']));}function ye(_0x18169e,_0x2b2a00,_0x4c79da){const _0x3e4fe8=_0x3fb85f;var _0x4c9998,_0x2c0128;let _0x534b57=[...(_0x4c9998=_0x18169e[_0x3e4fe8(0x1e3)])==null?[]:_0x4c9998][_0x3e4fe8(0x1ea)]((_0x456a64,_0x2ab3dd)=>_0x456a64[_0x3e4fe8(0x20b)]-_0x2ab3dd[_0x3e4fe8(0x20b)]),_0x1932bc=_0x534b57[_0x3e4fe8(0x1f8)]((_0x26882e,_0xe9dd96)=>(_0xe9dd96===0x0?0x0:_0x534b57[_0xe9dd96-0x1]['startIndex']+0x1)<=_0x2b2a00&&_0x2b2a00<=_0x26882e['startIndex']),_0x1fc47f=(_0x2c0128=_0x534b57[_0x3e4fe8(0x1f8)](_0x5a2df7=>_0x5a2df7[_0x3e4fe8(0x20b)]>=_0x4c79da-0x1))==null?_0x534b57[_0x534b57['length']-0x1]:_0x2c0128;return{'startOffset':_0x1932bc?j(_0x534b57,_0x1932bc):_0x2b2a00,'endOffset':_0x1fc47f?_0x1fc47f[_0x3e4fe8(0x20b)]+0x1:_0x4c79da};}function _0x58fb(_0x497824,_0xdd7ed){_0x497824=_0x497824-0x19f;const _0x557c9c=_0x557c();let _0x58fb32=_0x557c9c[_0x497824];return _0x58fb32;}function j(_0x387988,_0x24566e){const _0x22cdf8=_0x3fb85f;let _0x5bdd04=_0x387988[_0x22cdf8(0x1e1)](_0x24566e);return _0x5bdd04>0x0?_0x387988[_0x5bdd04-0x1][_0x22cdf8(0x20b)]+0x1:0x0;}function M(_0x36d16e,_0x140253,_0x3ec73f){const _0xf760fb=_0x3fb85f;var _0x22ddc7;return Math[_0xf760fb(0x1c3)](j((_0x22ddc7=_0x36d16e[_0xf760fb(0x1e3)])==null?[]:_0x22ddc7,_0x3ec73f),_0x140253[_0xf760fb(0x20b)]+0x1);}function N(_0x223251,_0x31926b){const _0x349234=_0x3fb85f;return _0x223251['dataStream'][_0x31926b[_0x349234(0x1d9)]]===_0x225989[_0x349234(0x1fb)]?_0x31926b[_0x349234(0x1d9)]:_0x223251[_0x349234(0x1f2)][_0x31926b[_0x349234(0x1d9)]+0x1]===_0x225989[_0x349234(0x1fb)]?_0x31926b['endIndex']+0x1:_0x31926b[_0x349234(0x1d9)];}function be(_0x15450c,_0xe8e3e3,_0x4e3d95,_0x2a39ab){const _0x2a6ad0=_0x3fb85f;var _0x29b386,_0x2c4bf5;let _0x3e48d6=N(_0x15450c,_0xe8e3e3),_0x23ca61=((_0x29b386=_0x15450c[_0x2a6ad0(0x1e3)])==null?[]:_0x29b386)[_0x2a6ad0(0x1f8)](_0x2e48c0=>_0x2e48c0[_0x2a6ad0(0x20b)]===_0x3e48d6+0x1);if(!_0x23ca61||_0x2a39ab!=null&&_0x23ca61[_0x2a6ad0(0x20b)]!==_0x2a39ab||_0x4e3d95<_0x3e48d6||_0x4e3d95>_0x23ca61[_0x2a6ad0(0x20b)]+0x1||_0x15450c['dataStream'][_0x23ca61[_0x2a6ad0(0x20b)]]!==_0x225989[_0x2a6ad0(0x1a4)])return null;let _0x2ab279=j((_0x2c4bf5=_0x15450c['paragraphs'])==null?[]:_0x2c4bf5,_0x23ca61),_0x1f83ae=_0x15450c[_0x2a6ad0(0x1f2)][_0x2a6ad0(0x21a)](_0x2ab279,_0x23ca61[_0x2a6ad0(0x20b)]);return Array[_0x2a6ad0(0x1c0)](_0x1f83ae)[_0x2a6ad0(0x1a3)](_0x39fc05=>_0x39fc05===_0x225989['BLOCK_END'])?{'paragraph':_0x23ca61,'endTokenOffset':_0x3e48d6}:null;}function P(_0x402fa3,_0x22c61b,_0x1866db,_0x5d14fb={}){const _0x8e7ad1=_0x3fb85f;var _0x44a98d,_0x3bf90e;if(_0x1866db){if(_0x402fa3[_0x8e7ad1(0x1f2)]=''+_0x402fa3[_0x8e7ad1(0x1f2)]['slice'](0x0,_0x22c61b)+_0x1866db+_0x402fa3[_0x8e7ad1(0x1f2)][_0x8e7ad1(0x21a)](_0x22c61b),Se(_0x402fa3,_0x22c61b,_0x1866db[_0x8e7ad1(0x1fe)]),(_0x44a98d=_0x5d14fb['paragraphs'])!=null&&_0x44a98d[_0x8e7ad1(0x1fe)]){var _0x1857ef;_0x402fa3[_0x8e7ad1(0x1e3)]=[...(_0x1857ef=_0x402fa3[_0x8e7ad1(0x1e3)])==null?[]:_0x1857ef,..._0x5d14fb[_0x8e7ad1(0x1e3)]['map'](_0xd48c79=>({..._0xd48c79,'startIndex':_0xd48c79[_0x8e7ad1(0x20b)]+_0x22c61b}))][_0x8e7ad1(0x1ea)]((_0x3902e3,_0x3c9184)=>_0x3902e3['startIndex']-_0x3c9184[_0x8e7ad1(0x20b)]);}if((_0x3bf90e=_0x5d14fb['blockRanges'])!=null&&_0x3bf90e[_0x8e7ad1(0x1fe)]){var _0x50b120;_0x402fa3[_0x8e7ad1(0x1ca)]=[...(_0x50b120=_0x402fa3['blockRanges'])==null?[]:_0x50b120,..._0x5d14fb[_0x8e7ad1(0x1ca)][_0x8e7ad1(0x1d6)](_0x432cc7=>({..._0x432cc7,'startIndex':_0x432cc7[_0x8e7ad1(0x20b)]+_0x22c61b,'endIndex':_0x432cc7['endIndex']+_0x22c61b}))][_0x8e7ad1(0x1ea)]((_0x1b3c02,_0x4f0a59)=>_0x1b3c02[_0x8e7ad1(0x20b)]-_0x4f0a59['startIndex']);}}}function xe(_0x242e76,_0x522992,_0x25e26b){const _0x250453=_0x3fb85f;let _0x41e6b2=_0x25e26b-_0x522992;_0x242e76['dataStream']=''+_0x242e76[_0x250453(0x1f2)][_0x250453(0x21a)](0x0,_0x522992)+_0x242e76[_0x250453(0x1f2)][_0x250453(0x21a)](_0x25e26b),Ce(_0x242e76,_0x522992,_0x41e6b2);}function Se(_0x4ae172,_0x1554db,_0x10ca8c){const _0x559c8b=_0x3fb85f;_0x4ae172[_0x559c8b(0x1e3)]=F(_0x4ae172['paragraphs'],_0x1554db,_0x10ca8c),_0x4ae172['sectionBreaks']=F(_0x4ae172[_0x559c8b(0x1ac)],_0x1554db,_0x10ca8c),_0x4ae172['customBlocks']=F(_0x4ae172['customBlocks'],_0x1554db,_0x10ca8c),_0x4ae172[_0x559c8b(0x1f1)]=we(_0x4ae172[_0x559c8b(0x1f1)],_0x1554db,_0x10ca8c),_0x4ae172['tables']=L(_0x4ae172[_0x559c8b(0x1d1)],_0x1554db,_0x10ca8c),_0x4ae172[_0x559c8b(0x21b)]=L(_0x4ae172[_0x559c8b(0x21b)],_0x1554db,_0x10ca8c),_0x4ae172[_0x559c8b(0x1b0)]=L(_0x4ae172[_0x559c8b(0x1b0)],_0x1554db,_0x10ca8c),_0x4ae172[_0x559c8b(0x1ca)]=L(_0x4ae172['blockRanges'],_0x1554db,_0x10ca8c);}function Ce(_0x49524f,_0x4bfd3a,_0x7dfb72){const _0x2d5fe6=_0x3fb85f;var _0x3f3c33,_0x5e0af3;_0x49524f['paragraphs']=I(_0x49524f[_0x2d5fe6(0x1e3)],_0x4bfd3a,_0x7dfb72),_0x49524f['sectionBreaks']=I(_0x49524f[_0x2d5fe6(0x1ac)],_0x4bfd3a,_0x7dfb72),_0x49524f[_0x2d5fe6(0x1ba)]=I(_0x49524f[_0x2d5fe6(0x1ba)],_0x4bfd3a,_0x7dfb72),_0x49524f[_0x2d5fe6(0x1f1)]=(_0x3f3c33=R((_0x5e0af3=_0x49524f['textRuns'])==null?void 0x0:_0x5e0af3[_0x2d5fe6(0x1d6)](_0x3f92d8=>({..._0x3f92d8,'startIndex':_0x3f92d8['st'],'endIndex':_0x3f92d8['ed']})),_0x4bfd3a,_0x7dfb72))==null?void 0x0:_0x3f3c33[_0x2d5fe6(0x1d6)](_0x559209=>{let {startIndex:_0x3fcbd4,endIndex:_0x535f29,..._0x20150b}=_0x559209;return{..._0x20150b,'st':_0x3fcbd4,'ed':_0x535f29};}),_0x49524f[_0x2d5fe6(0x1d1)]=R(_0x49524f[_0x2d5fe6(0x1d1)],_0x4bfd3a,_0x7dfb72),_0x49524f[_0x2d5fe6(0x21b)]=R(_0x49524f[_0x2d5fe6(0x21b)],_0x4bfd3a,_0x7dfb72),_0x49524f['customDecorations']=R(_0x49524f['customDecorations'],_0x4bfd3a,_0x7dfb72),_0x49524f[_0x2d5fe6(0x1ca)]=R(_0x49524f['blockRanges'],_0x4bfd3a,_0x7dfb72);}function F(_0x1e2f1c,_0x40b665,_0x125ae5){const _0xfd74df=_0x3fb85f;return _0x1e2f1c==null?void 0x0:_0x1e2f1c[_0xfd74df(0x1d6)](_0x25cba7=>_0x25cba7[_0xfd74df(0x20b)]>=_0x40b665?{..._0x25cba7,'startIndex':_0x25cba7[_0xfd74df(0x20b)]+_0x125ae5}:_0x25cba7);}function I(_0x9408a0,_0x43e282,_0x3e1ed8){const _0x2127b5=_0x3fb85f;let _0x37374d=_0x43e282+_0x3e1ed8;return _0x9408a0==null?void 0x0:_0x9408a0['map'](_0x492570=>_0x492570['startIndex']>=_0x43e282&&_0x492570[_0x2127b5(0x20b)]<_0x37374d?null:_0x492570[_0x2127b5(0x20b)]>=_0x37374d?{..._0x492570,'startIndex':_0x492570[_0x2127b5(0x20b)]-_0x3e1ed8}:_0x492570)[_0x2127b5(0x21d)](_0x39664a=>_0x39664a!=null);}function we(_0x26326c,_0x41cba7,_0x5154ef){return _0x26326c==null?void 0x0:_0x26326c['map'](_0x28302c=>_0x28302c['st']>=_0x41cba7?{..._0x28302c,'st':_0x28302c['st']+_0x5154ef,'ed':_0x28302c['ed']+_0x5154ef}:_0x28302c['ed']>_0x41cba7?{..._0x28302c,'ed':_0x28302c['ed']+_0x5154ef}:_0x28302c);}function _0x557c(){const _0x14dae9=['previousDocumentData','call','_resourceManagerService','nextMetadata','syncExecuteCommand','326219CuxoFB','sectionBreaks','_injector','disposeWithMe','get','customDecorations','indentStart','49860JsDXQq','paragraph','getCurrentUnitOfType','registerPluginResource','53221656FCmwwH','direction','deserialize','codes','customBlocks','constructor','UNIVER_DOC','70lQGHsz','next','packageName','from','373014NvdCLV','some','max','add','body','_change$','_setResource','fromEntries','setCodeConfig','blockRanges','1480mLYOVr','function','documentData','replaceOp','unitId','31555DgSLdV','tables','set','_resources','parse','metadata','map','removeUnit','docs-code.command.exit','endIndex','_commandService','_initResource','12284888YyKWaj','getUniverDocInstance','blockId','forEach','object','indexOf','CODE','paragraphs','docs-code.command.cancel-empty-paragraph','spaceAbove','compose','decorate','asObservable','blockType','sort','72mGSbPV','javascript','model','getParagraphsInRange','COMMAND','_configService','textRuns','dataStream','prototype','symbol','setConfig','21wnhwXI','getOwnPropertyDescriptor','find','paragraphStyle','6jPpkwL','BLOCK_END','getInstance','delete','length','onStarting','diffValue','cursorOffset','paragraphStartIndex','@univerjs-pro/docs-code','deepClone','spaceBelow','0.25.0-insiders.20260608-e4336f7','config','commandService','pluginName','iterator','startIndex','change$','toPrimitive','Document\x20body\x20is\x20required','63819EmZXMh','_config','entries','complete','DOC_CODE_PLUGIN','right','docs-code.command.insert','string','indentEnd','docs-code.command.update','BLOCK_START','slice','customRanges','serialize','filter','getCodeConfig','_docsCodeModel','docs-code.command.insert-below','registerCommand','join','getBody','stringify','nextDocumentData','reduce','min','textStyle','startOffset','default','getUnitId','monospace','endOffset','removeCode','every','PARAGRAPH','defineProperty'];_0x557c=function(){return _0x14dae9;};return _0x557c();}function L(_0x5d6bf5,_0x5b3616,_0x17c38f){const _0x38477d=_0x3fb85f;return _0x5d6bf5==null?void 0x0:_0x5d6bf5[_0x38477d(0x1d6)](_0x48806c=>_0x48806c[_0x38477d(0x20b)]>=_0x5b3616?{..._0x48806c,'startIndex':_0x48806c[_0x38477d(0x20b)]+_0x17c38f,'endIndex':_0x48806c[_0x38477d(0x1d9)]+_0x17c38f}:_0x48806c['endIndex']>=_0x5b3616?{..._0x48806c,'endIndex':_0x48806c[_0x38477d(0x1d9)]+_0x17c38f}:_0x48806c);}function R(_0x1edc54,_0x4ad8dd,_0x729d9e){const _0x85ef5e=_0x3fb85f;let _0x422e3c=_0x4ad8dd+_0x729d9e;return _0x1edc54==null?void 0x0:_0x1edc54[_0x85ef5e(0x1d6)](_0x2e1130=>_0x2e1130[_0x85ef5e(0x20b)]>=_0x4ad8dd&&_0x2e1130[_0x85ef5e(0x1d9)]<_0x422e3c?null:_0x2e1130[_0x85ef5e(0x20b)]>=_0x422e3c?{..._0x2e1130,'startIndex':_0x2e1130[_0x85ef5e(0x20b)]-_0x729d9e,'endIndex':_0x2e1130[_0x85ef5e(0x1d9)]-_0x729d9e}:_0x2e1130['endIndex']>=_0x4ad8dd?{..._0x2e1130,'startIndex':_0x2e1130[_0x85ef5e(0x20b)]<_0x4ad8dd?_0x2e1130['startIndex']:_0x4ad8dd,'endIndex':Math['max'](_0x4ad8dd,_0x2e1130[_0x85ef5e(0x1d9)]-_0x729d9e)}:_0x2e1130)[_0x85ef5e(0x21d)](_0x46225a=>_0x46225a!=null);}function z(_0x21c99f,_0x4a4f01,_0x54cc99,_0x18760b){const _0xe8576a=_0x3fb85f;_0x21c99f==null||_0x21c99f[_0xe8576a(0x1df)](_0x579e0e=>{const _0x167c77=_0xe8576a;_0x579e0e[_0x167c77(0x20b)]>=_0x4a4f01&&_0x579e0e['startIndex']<_0x54cc99&&(_0x579e0e['startIndex']+=_0x18760b);});}function Te(_0x47ffb7,_0x1307c0,_0x86bc49,_0x1f37e5){const _0x437aae=_0x3fb85f;_0x47ffb7==null||_0x47ffb7[_0x437aae(0x1df)](_0x376625=>{_0x376625['st']>=_0x1307c0&&_0x376625['st']<_0x86bc49?(_0x376625['st']+=_0x1f37e5,_0x376625['ed']+=_0x1f37e5):_0x376625['ed']>_0x1307c0&&_0x376625['ed']<_0x86bc49&&(_0x376625['ed']+=_0x1f37e5);});}function B(_0xa730c7,_0x48c0f4,_0x4f464f,_0x44718b){_0xa730c7==null||_0xa730c7['forEach'](_0x54171e=>{const _0xd51997=_0x58fb;_0x54171e['startIndex']>=_0x48c0f4&&_0x54171e[_0xd51997(0x20b)]<_0x4f464f?(_0x54171e[_0xd51997(0x20b)]+=_0x44718b,_0x54171e['endIndex']+=_0x44718b):_0x54171e[_0xd51997(0x1d9)]>_0x48c0f4&&_0x54171e[_0xd51997(0x1d9)]<_0x4f464f&&(_0x54171e['endIndex']+=_0x44718b);});}function V(_0x3f0e1d){'@babel/helpers - typeof';const _0xfe8132=_0x3fb85f;return V=typeof Symbol==_0xfe8132(0x1cc)&&typeof Symbol[_0xfe8132(0x20a)]==_0xfe8132(0x1f4)?function(_0x1c22c4){return typeof _0x1c22c4;}:function(_0x2ffe8f){const _0x11db04=_0xfe8132;return _0x2ffe8f&&typeof Symbol==_0x11db04(0x1cc)&&_0x2ffe8f[_0x11db04(0x1bb)]===Symbol&&_0x2ffe8f!==Symbol[_0x11db04(0x1f3)]?_0x11db04(0x1f4):typeof _0x2ffe8f;},V(_0x3f0e1d);}function Ee(_0x52883b,_0xa8062a){const _0x13ce3a=_0x3fb85f;if(V(_0x52883b)!=_0x13ce3a(0x1e0)||!_0x52883b)return _0x52883b;var _0x485562=_0x52883b[Symbol[_0x13ce3a(0x20d)]];if(_0x485562!==void 0x0){var _0x1cb47d=_0x485562[_0x13ce3a(0x1a7)](_0x52883b,_0xa8062a||_0x13ce3a(0x22a));if(V(_0x1cb47d)!=_0x13ce3a(0x1e0))return _0x1cb47d;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0xa8062a==='string'?String:Number)(_0x52883b);}function De(_0x2b5506){const _0x143a58=_0x3fb85f;var _0x5e607d=Ee(_0x2b5506,_0x143a58(0x216));return V(_0x5e607d)=='symbol'?_0x5e607d:_0x5e607d+'';}function H(_0xfd318f,_0x22270a,_0x1b6faa){const _0x12e9ef=_0x3fb85f;return(_0x22270a=De(_0x22270a))in _0xfd318f?Object[_0x12e9ef(0x1a5)](_0xfd318f,_0x22270a,{'value':_0x1b6faa,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0xfd318f[_0x22270a]=_0x1b6faa,_0xfd318f;}var U=class extends _0x4b273f{constructor(..._0x20ae6a){const _0x44aec1=_0x3fb85f;super(..._0x20ae6a),H(this,_0x44aec1(0x1d3),new Map()),H(this,_0x44aec1(0x1c6),new _0x161704()),H(this,_0x44aec1(0x20c),this['_change$'][_0x44aec1(0x1e8)]());}[_0x3fb85f(0x21e)](_0x2bbec5,_0x3bc513){const _0x43a42b=_0x3fb85f;return w(this[_0x43a42b(0x1d3)][_0x43a42b(0x1af)](_0x2bbec5))[_0x43a42b(0x1b9)][_0x3bc513];}[_0x3fb85f(0x1c9)](_0x5bab5e,_0x40831e,_0x9593fc){const _0x5cf984=_0x3fb85f;this['_setResource'](_0x5bab5e,_0x40831e,T(this[_0x5cf984(0x1d3)]['get'](_0x5bab5e),_0x40831e,_0x9593fc));}[_0x3fb85f(0x1a2)](_0x462577,_0x11091f){const _0x566a0d=_0x3fb85f;this[_0x566a0d(0x1c7)](_0x462577,_0x11091f,ne(this[_0x566a0d(0x1d3)][_0x566a0d(0x1af)](_0x462577),_0x11091f));}[_0x3fb85f(0x21c)](_0x425442){const _0x395716=_0x3fb85f;return w(this[_0x395716(0x1d3)]['get'](_0x425442));}[_0x3fb85f(0x1b8)](_0x56a997,_0x546c34){const _0x1aebfa=_0x3fb85f;this[_0x1aebfa(0x1d3)]['set'](_0x56a997,w(_0x546c34)),this['_change$'][_0x1aebfa(0x1be)]({'unitId':_0x56a997});}[_0x3fb85f(0x1d7)](_0x4539d8){const _0x53a378=_0x3fb85f;this[_0x53a378(0x1d3)][_0x53a378(0x1fd)](_0x4539d8),this[_0x53a378(0x1c6)][_0x53a378(0x1be)]({'unitId':_0x4539d8});}['dispose'](){const _0x5e15be=_0x3fb85f;super['dispose'](),this[_0x5e15be(0x1d3)]['clear'](),this[_0x5e15be(0x1c6)][_0x5e15be(0x212)]();}['_setResource'](_0x2d585f,_0x2d4157,_0x5b54cd){const _0x3e90da=_0x3fb85f;this['_resources'][_0x3e90da(0x1d2)](_0x2d585f,_0x5b54cd),this[_0x3e90da(0x1c6)][_0x3e90da(0x1be)]({'unitId':_0x2d585f,'blockId':_0x2d4157});}};const Oe={'id':_0x3fb85f(0x220),'type':_0x4f0b2b[_0x3fb85f(0x1ef)],'handler':_0x195e6f=>{const _0x5396f1=_0x3fb85f;let _0x2a2b22=Me(_0x195e6f);if(_0x2a2b22)return _0x195e6f[_0x5396f1(0x1af)](_0x47dec0)[_0x5396f1(0x1aa)](W['id'],{'startOffset':_0x2a2b22[_0x5396f1(0x229)],'endOffset':_0x2a2b22['endOffset'],'unitId':_0x2a2b22['unitId']});let _0x1b0c17=Ne(_0x195e6f);if(!_0x1b0c17)return!0x1;let _0x55cfa2=_0x1b0c17['startIndex']+0x1;return _0x195e6f[_0x5396f1(0x1af)](_0x47dec0)[_0x5396f1(0x1aa)](W['id'],{'startOffset':_0x55cfa2,'endOffset':_0x55cfa2});}},ke={'id':'docs-code.command.consume-boundary-delete','type':_0x4f0b2b[_0x3fb85f(0x1ef)],'handler':()=>!0x0},W={'id':_0x3fb85f(0x215),'type':_0x4f0b2b[_0x3fb85f(0x1ef)],'handler':(_0x4b32d9,_0x212c4a)=>{const _0x4b8b3c=_0x3fb85f;var _0x18b0c0,_0x3a4c62,_0x5375a1;let _0x348635=K(_0x4b32d9,_0x212c4a==null?void 0x0:_0x212c4a[_0x4b8b3c(0x1cf)]);if(!_0x348635)return!0x1;let _0x300801=q(_0x4b32d9),_0xb8c053=E({'blockId':(_0x18b0c0=_0x212c4a==null?void 0x0:_0x212c4a['blockId'])==null?_0x57a8f5(0x6):_0x18b0c0,'config':_0x212c4a==null?void 0x0:_0x212c4a[_0x4b8b3c(0x207)],'documentData':_0x348635[_0x4b8b3c(0x1a6)],'endOffset':(_0x3a4c62=_0x212c4a==null?void 0x0:_0x212c4a[_0x4b8b3c(0x1a1)])==null?_0x300801==null?void 0x0:_0x300801[_0x4b8b3c(0x1a1)]:_0x3a4c62,'metadata':_0x348635[_0x4b8b3c(0x1ed)][_0x4b8b3c(0x21c)](_0x348635[_0x4b8b3c(0x1cf)]),'startOffset':(_0x5375a1=_0x212c4a==null?void 0x0:_0x212c4a[_0x4b8b3c(0x229)])==null?_0x300801==null?void 0x0:_0x300801['startOffset']:_0x5375a1}),_0x527e9e=Y(_0x348635['commandService'],_0x348635['unitId'],_0x348635[_0x4b8b3c(0x1a6)],_0xb8c053[_0x4b8b3c(0x225)],_0xb8c053[_0x4b8b3c(0x201)]);return _0x527e9e&&_0xb8c053[_0x4b8b3c(0x1a9)]&&_0x348635[_0x4b8b3c(0x1ed)][_0x4b8b3c(0x1b8)](_0x348635[_0x4b8b3c(0x1cf)],_0xb8c053[_0x4b8b3c(0x1a9)]),_0x527e9e;}},Ae={'id':_0x3fb85f(0x218),'type':_0x4f0b2b[_0x3fb85f(0x1ef)],'handler':(_0x4dec8d,_0x37418e)=>{const _0x3b90ab=_0x3fb85f;if(!_0x37418e)return!0x1;let _0x3ec3d3=K(_0x4dec8d,_0x37418e[_0x3b90ab(0x1cf)]);if(!_0x3ec3d3)return!0x1;let _0x548d7b=D({'blockId':_0x37418e[_0x3b90ab(0x1de)],'config':_0x37418e['config'],'documentData':_0x3ec3d3[_0x3b90ab(0x1a6)],'metadata':_0x3ec3d3['model'][_0x3b90ab(0x21c)](_0x3ec3d3[_0x3b90ab(0x1cf)])});return _0x548d7b[_0x3b90ab(0x1a9)]&&_0x3ec3d3['model'][_0x3b90ab(0x1b8)](_0x3ec3d3['unitId'],_0x548d7b[_0x3b90ab(0x1a9)]),!0x0;}},je={'id':_0x3fb85f(0x1d8),'type':_0x4f0b2b['COMMAND'],'handler':(_0x5db04a,_0x134e87)=>{const _0x1b0854=_0x3fb85f;var _0x58ff85,_0x399cf2;let _0xa0c014=K(_0x5db04a,_0x134e87==null?void 0x0:_0x134e87[_0x1b0854(0x1cf)]);if(!_0xa0c014)return!0x1;let _0xfa8329=(_0x58ff85=_0x134e87==null?void 0x0:_0x134e87[_0x1b0854(0x201)])==null?(_0x399cf2=q(_0x5db04a))==null?void 0x0:_0x399cf2[_0x1b0854(0x229)]:_0x58ff85;if(_0xfa8329==null)return!0x1;let _0x5e61b8=oe({'cursorOffset':_0xfa8329,'documentData':_0xa0c014[_0x1b0854(0x1a6)]});return _0x5e61b8?Y(_0xa0c014['commandService'],_0xa0c014['unitId'],_0xa0c014[_0x1b0854(0x1a6)],_0x5e61b8[_0x1b0854(0x225)],_0x5e61b8[_0x1b0854(0x201)]):!0x1;}},G={'id':_0x3fb85f(0x1e4),'type':_0x4f0b2b[_0x3fb85f(0x1ef)],'handler':(_0x4232cf,_0x8cd504)=>{const _0x11040=_0x3fb85f;var _0x452d62,_0x278241;let _0x2078d9=K(_0x4232cf,_0x8cd504==null?void 0x0:_0x8cd504[_0x11040(0x1cf)]);if(!_0x2078d9)return!0x1;let _0xab630c=(_0x452d62=_0x8cd504==null?void 0x0:_0x8cd504['cursorOffset'])==null?(_0x278241=q(_0x4232cf))==null?void 0x0:_0x278241[_0x11040(0x229)]:_0x452d62;if(_0xab630c==null)return!0x1;let _0x59dd11=se({'cursorOffset':_0xab630c,'documentData':_0x2078d9['previousDocumentData'],'paragraphStartIndex':_0x8cd504==null?void 0x0:_0x8cd504['paragraphStartIndex']});return _0x59dd11?Y(_0x2078d9[_0x11040(0x208)],_0x2078d9[_0x11040(0x1cf)],_0x2078d9[_0x11040(0x1a6)],_0x59dd11[_0x11040(0x225)],_0x59dd11[_0x11040(0x201)]):!0x1;}};function K(_0x1a74e6,_0x2d2147){const _0x51f7dc=_0x3fb85f;let _0x3da0eb=_0x1a74e6[_0x51f7dc(0x1af)](_0x2d0bd1),_0xb7717c=_0x2d2147?_0x3da0eb[_0x51f7dc(0x1dd)](_0x2d2147):_0x3da0eb[_0x51f7dc(0x1b4)](_0x2d29fd['UNIVER_DOC']);return _0xb7717c?{'commandService':_0x1a74e6['get'](_0x47dec0),'model':_0x1a74e6[_0x51f7dc(0x1af)](U),'previousDocumentData':_0xb7717c['getSnapshot'](),'unitId':_0xb7717c[_0x51f7dc(0x19f)]()}:null;}function q(_0x488d41){const _0x204df5=_0x3fb85f;var _0x3b7a0b;return(_0x3b7a0b=_0x488d41[_0x204df5(0x1af)](_0x566c02)['getTextRanges']())==null?void 0x0:_0x3b7a0b[0x0];}function Me(_0x3e6cd2){const _0x55a1ed=_0x3fb85f;var _0x539cad;let _0x5d5257=(_0x539cad=_0x3e6cd2[_0x55a1ed(0x1af)](_0x2d0bd1)[_0x55a1ed(0x1b4)](_0x2d29fd['UNIVER_DOC']))==null?void 0x0:_0x539cad[_0x55a1ed(0x19f)]();try{return _0x3e6cd2[_0x55a1ed(0x1af)](_0x498fcb)['consumeInsertRange'](_0x5d5257);}catch{return null;}}function Ne(_0x3fef2f){const _0x2ba428=_0x3fb85f;var _0x5e4f76,_0xbe5b32,_0x37e410;let _0x2c9dd5=q(_0x3fef2f);if(!_0x2c9dd5)return null;let _0x3a102e=_0x3fef2f[_0x2ba428(0x1af)](_0x2d0bd1)[_0x2ba428(0x1b4)](_0x2d29fd['UNIVER_DOC']),_0x318092=_0x3a102e==null?void 0x0:_0x3a102e[_0x2ba428(0x223)]();return _0x318092?(_0x5e4f76=_0x409809['range'][_0x2ba428(0x1ee)](_0x2c9dd5,(_0xbe5b32=_0x318092['paragraphs'])==null?[]:_0xbe5b32,(_0x37e410=_0x318092[_0x2ba428(0x1f2)])==null?'':_0x37e410)[0x0])==null?null:_0x5e4f76:null;}function Pe(_0x1865c2,_0x3a8e0d){const _0x228a6d=_0x3fb85f;var _0x4a603a,_0x2f69b1,_0x2d896c,_0x16e823,_0x226de1,_0x3b9903,_0x13443b,_0x1bb52b,_0x279ce4,_0x50bca4,_0x535454,_0x2d9cd0,_0x54fa3b,_0x50c362,_0x250ea3,_0x4b9ce7,_0x543644,_0x2567d9;let _0x472a0c=_0x1f7576[_0x228a6d(0x1fc)]();return[J(_0x472a0c,[_0x228a6d(0x1c5),_0x228a6d(0x1f2)],(_0x4a603a=_0x1865c2[_0x228a6d(0x1c5)])==null?void 0x0:_0x4a603a[_0x228a6d(0x1f2)],(_0x2f69b1=_0x3a8e0d['body'])==null?void 0x0:_0x2f69b1[_0x228a6d(0x1f2)]),J(_0x472a0c,['body',_0x228a6d(0x1e3)],(_0x2d896c=_0x1865c2['body'])==null?void 0x0:_0x2d896c[_0x228a6d(0x1e3)],(_0x16e823=_0x3a8e0d[_0x228a6d(0x1c5)])==null?void 0x0:_0x16e823[_0x228a6d(0x1e3)]),J(_0x472a0c,[_0x228a6d(0x1c5),_0x228a6d(0x1ac)],(_0x226de1=_0x1865c2[_0x228a6d(0x1c5)])==null?void 0x0:_0x226de1['sectionBreaks'],(_0x3b9903=_0x3a8e0d[_0x228a6d(0x1c5)])==null?void 0x0:_0x3b9903[_0x228a6d(0x1ac)]),J(_0x472a0c,['body',_0x228a6d(0x1f1)],(_0x13443b=_0x1865c2[_0x228a6d(0x1c5)])==null?void 0x0:_0x13443b[_0x228a6d(0x1f1)],(_0x1bb52b=_0x3a8e0d[_0x228a6d(0x1c5)])==null?void 0x0:_0x1bb52b[_0x228a6d(0x1f1)]),J(_0x472a0c,[_0x228a6d(0x1c5),_0x228a6d(0x1ba)],(_0x279ce4=_0x1865c2[_0x228a6d(0x1c5)])==null?void 0x0:_0x279ce4[_0x228a6d(0x1ba)],(_0x50bca4=_0x3a8e0d['body'])==null?void 0x0:_0x50bca4['customBlocks']),J(_0x472a0c,['body',_0x228a6d(0x21b)],(_0x535454=_0x1865c2['body'])==null?void 0x0:_0x535454['customRanges'],(_0x2d9cd0=_0x3a8e0d[_0x228a6d(0x1c5)])==null?void 0x0:_0x2d9cd0[_0x228a6d(0x21b)]),J(_0x472a0c,[_0x228a6d(0x1c5),_0x228a6d(0x1b0)],(_0x54fa3b=_0x1865c2[_0x228a6d(0x1c5)])==null?void 0x0:_0x54fa3b[_0x228a6d(0x1b0)],(_0x50c362=_0x3a8e0d[_0x228a6d(0x1c5)])==null?void 0x0:_0x50c362[_0x228a6d(0x1b0)]),J(_0x472a0c,[_0x228a6d(0x1c5),'tables'],(_0x250ea3=_0x1865c2[_0x228a6d(0x1c5)])==null?void 0x0:_0x250ea3[_0x228a6d(0x1d1)],(_0x4b9ce7=_0x3a8e0d[_0x228a6d(0x1c5)])==null?void 0x0:_0x4b9ce7[_0x228a6d(0x1d1)]),J(_0x472a0c,[_0x228a6d(0x1c5),_0x228a6d(0x1ca)],(_0x543644=_0x1865c2['body'])==null?void 0x0:_0x543644[_0x228a6d(0x1ca)],(_0x2567d9=_0x3a8e0d[_0x228a6d(0x1c5)])==null?void 0x0:_0x2567d9[_0x228a6d(0x1ca)])][_0x228a6d(0x21d)](Boolean)[_0x228a6d(0x226)]((_0x5e7f35,_0xe057aa)=>_0x1f7576[_0x228a6d(0x1e6)](_0x5e7f35,_0xe057aa),null);}function J(_0x54d604,_0x21f501,_0x1240c3,_0x386965){const _0x2c7ce2=_0x3fb85f;return _0x1ad342[_0x2c7ce2(0x200)](_0x1240c3,_0x386965)?null:_0x54d604[_0x2c7ce2(0x1ce)](_0x21f501,_0x1240c3,_0x386965);}function Y(_0x97788b,_0x3e53de,_0x36f227,_0x28d8e1,_0x2d2691){const _0x3f5da4=_0x3fb85f;let _0x50dc82=Pe(_0x36f227,_0x28d8e1);return _0x50dc82?!!_0x97788b[_0x3f5da4(0x1aa)](_0x40822b['id'],{'unitId':_0x3e53de,'actions':_0x50dc82,'textRanges':[{'startOffset':_0x2d2691,'endOffset':_0x2d2691,'collapsed':!0x0}],'isEditing':!0x1}):!0x1;}const X=_0x3fb85f(0x213);var Fe=_0x3fb85f(0x203),Ie=_0x3fb85f(0x206);const Le={};function Z(_0x7b6ba,_0x4ad921){return function(_0x4aadbe,_0x498a5f){_0x4ad921(_0x4aadbe,_0x498a5f,_0x7b6ba);};}function Re(_0x5eb841,_0x142657,_0x5d6729,_0x385222){const _0x148f02=_0x3fb85f;var _0x17f38e=arguments[_0x148f02(0x1fe)],_0x2ae755=_0x17f38e<0x3?_0x142657:_0x385222===null?_0x385222=Object[_0x148f02(0x1f7)](_0x142657,_0x5d6729):_0x385222,_0x1509be;if(typeof Reflect==_0x148f02(0x1e0)&&typeof Reflect[_0x148f02(0x1e7)]==_0x148f02(0x1cc))_0x2ae755=Reflect[_0x148f02(0x1e7)](_0x5eb841,_0x142657,_0x5d6729,_0x385222);else{for(var _0x14ef8a=_0x5eb841[_0x148f02(0x1fe)]-0x1;_0x14ef8a>=0x0;_0x14ef8a--)(_0x1509be=_0x5eb841[_0x14ef8a])&&(_0x2ae755=(_0x17f38e<0x3?_0x1509be(_0x2ae755):_0x17f38e>0x3?_0x1509be(_0x142657,_0x5d6729,_0x2ae755):_0x1509be(_0x142657,_0x5d6729))||_0x2ae755);}return _0x17f38e>0x3&&_0x2ae755&&Object['defineProperty'](_0x142657,_0x5d6729,_0x2ae755),_0x2ae755;}let Q=class extends _0x4b273f{constructor(_0x598712,_0x5812ef){const _0x2fdd3c=_0x3fb85f;super(),this['_resourceManagerService']=_0x598712,this[_0x2fdd3c(0x21f)]=_0x5812ef,this['_initResource']();}[_0x3fb85f(0x1db)](){const _0x1056bf=_0x3fb85f;this[_0x1056bf(0x1ae)](this[_0x1056bf(0x1a8)][_0x1056bf(0x1b5)]({'pluginName':X,'businesses':[_0x2d29fd[_0x1056bf(0x1bc)]],'toJson':_0x2d601e=>JSON[_0x1056bf(0x224)](this[_0x1056bf(0x21f)][_0x1056bf(0x21c)](_0x2d601e)),'parseJson':_0x33da72=>w(JSON[_0x1056bf(0x1d4)](_0x33da72)),'onLoad':(_0x57886b,_0x2c581b)=>this['_docsCodeModel']['deserialize'](_0x57886b,_0x2c581b),'onUnLoad':_0xfdae1d=>this[_0x1056bf(0x21f)][_0x1056bf(0x1d7)](_0xfdae1d)}));}};Q=Re([Z(0x0,_0x16435a),Z(0x1,_0x3ba08f(U))],Q);let $=class extends _0x36058a{constructor(_0x568bb6=Le,_0x1157ce,_0x4f98e8,_0x1f3169){const _0x7c4e5f=_0x3fb85f;super(),this[_0x7c4e5f(0x210)]=_0x568bb6,this[_0x7c4e5f(0x1ad)]=_0x1157ce,this[_0x7c4e5f(0x1da)]=_0x4f98e8,this[_0x7c4e5f(0x1f0)]=_0x1f3169;let {..._0x224155}=_0x57e027({},Le,this['_config']);this[_0x7c4e5f(0x1f0)][_0x7c4e5f(0x1f5)]('docs-code.config',_0x224155);}[_0x3fb85f(0x1ff)](){const _0x35b60d=_0x3fb85f;this[_0x35b60d(0x1ad)]['add']([U]),this[_0x35b60d(0x1ad)][_0x35b60d(0x1c4)]([Q]),this['_injector'][_0x35b60d(0x1af)](U),this['_injector'][_0x35b60d(0x1af)](Q),[W,Oe,Ae,je,G,ke][_0x35b60d(0x1df)](_0x353ea2=>this[_0x35b60d(0x1ae)](this['_commandService'][_0x35b60d(0x221)](_0x353ea2)));}};H($,_0x3fb85f(0x209),X),H($,_0x3fb85f(0x1bf),Fe),H($,'version',Ie),H($,'type',_0x2d29fd[_0x3fb85f(0x1bc)]),$=Re([_0x20cd03(_0x3dc60a,_0x38efde),Z(0x1,_0x3ba08f(_0x160d3c)),Z(0x2,_0x47dec0),Z(0x3,_0x5c230c)],$);export{S as DEFAULT_CODE_CONFIG,X as DOCS_CODE_PLUGIN,G as DocsCodeCancelEmptyParagraphCommand,ke as DocsCodeConsumeBoundaryDeleteCommand,je as DocsCodeExitCommand,Oe as DocsCodeInsertBelowCommand,W as DocsCodeInsertCommand,U as DocsCodeModel,Ae as DocsCodeUpdateCommand,$ as UniverDocsCodePlugin,se as buildCancelEmptyCodeParagraphActions,oe as buildExitCodeActions,E as buildInsertCodeActions,D as buildUpdateCodeActions,le as findCodeRangeAtOffset,ue as isCodeBoundaryDelete,C as normalizeDocsCodeConfig};
1
+ const _0x560653=_0x54d9;(function(_0x30f1e1,_0x435b81){const _0x4c2ace=_0x54d9,_0x87253b=_0x30f1e1();while(!![]){try{const _0xcf4897=-parseInt(_0x4c2ace(0x164))/0x1+-parseInt(_0x4c2ace(0x159))/0x2*(parseInt(_0x4c2ace(0x125))/0x3)+-parseInt(_0x4c2ace(0x18b))/0x4+parseInt(_0x4c2ace(0x150))/0x5*(-parseInt(_0x4c2ace(0x12d))/0x6)+-parseInt(_0x4c2ace(0x162))/0x7*(-parseInt(_0x4c2ace(0x13b))/0x8)+parseInt(_0x4c2ace(0x186))/0x9+parseInt(_0x4c2ace(0x189))/0xa;if(_0xcf4897===_0x435b81)break;else _0x87253b['push'](_0x87253b['shift']());}catch(_0x2e0bee){_0x87253b['push'](_0x87253b['shift']());}}}(_0x4e4f,0x40196));import{BuildTextUtils as _0x17de4b,CommandType as _0x3163ae,DataStreamTreeTokenType as _0x22b95f,DependentOn as _0x545704,Disposable as _0x4d4eaf,DocumentBlockRangeType as _0x2156e3,ICommandService as _0x464daf,IConfigService as _0x42ffe8,IResourceManagerService as _0x53b05f,IUniverInstanceService as _0x3824cb,Inject as _0x554295,Injector as _0x144991,JSONX as _0x204cdd,Plugin as _0x3dff2c,Tools as _0x3b2d45,UniverInstanceType as _0x3e4192,createParagraphId as _0x11d706,generateRandomId as _0x590119,merge as _0x16de9b}from'@univerjs/core';import{DocContentInsertService as _0x312533,DocSelectionManagerService as _0x5e656f,RichTextEditingMutation as _0x447dce,UniverDocsPlugin as _0x3a0230}from'@univerjs/docs';import{Subject as _0x2b2e5b}from'rxjs';import{UniverLicensePlugin as _0x59fb22}from'@univerjs-pro/license';const S={'language':'javascript','showLineNumbers':!0x1,'tabSize':0x4,'wrap':!0x0};function C(_0x3376c6){return{...S,..._0x3376c6};}function w(_0x134153){const _0x3ed091=_0x54d9;var _0x23a42b;let _0x2c03ba=(_0x23a42b=_0x134153==null?void 0x0:_0x134153[_0x3ed091(0x16f)])==null?{}:_0x23a42b;return{'codes':Object['fromEntries'](Object['entries'](_0x2c03ba)[_0x3ed091(0x178)](([_0x2a73f1,_0x218c37])=>[_0x2a73f1,C(_0x218c37)]))};}function T(_0xb13c96,_0x1309cd,_0x6d8440){const _0x25bb04=_0x54d9;let _0x157c9a=w(_0xb13c96);return _0x157c9a[_0x25bb04(0x16f)][_0x1309cd]=C({..._0x157c9a[_0x25bb04(0x16f)][_0x1309cd],..._0x6d8440}),_0x157c9a;}function re(_0x50095c,_0x44f98d){const _0x31d495=_0x54d9;let _0x3eae5f=w(_0x50095c);return delete _0x3eae5f[_0x31d495(0x16f)][_0x44f98d],_0x3eae5f;}const ie='monospace';function ae(_0xb6ec2a){const _0x351fd4=_0x54d9;var _0x3b38f2,_0x186f1e,_0x287dab;let _0x656131=D(_0xb6ec2a[_0x351fd4(0x176)]),_0xd43709=O(_0x656131),_0x6a4590=se(_0xb6ec2a[_0x351fd4(0x15f)],_0xb6ec2a[_0x351fd4(0x17c)]),_0x3a079d=_0x6a4590?(_0x3b38f2=_0xd43709['blockRanges'])==null?void 0x0:_0x3b38f2[_0x351fd4(0x154)](_0x4b5163=>_0x4b5163['startIndex']===_0x6a4590['startOffset']&&_0x4b5163[_0x351fd4(0x131)]+0x1===_0x6a4590[_0x351fd4(0x17c)]):void 0x0,{startOffset:_0x3c6ae1,endOffset:_0x5df767}=_0x3a079d?_0x6a4590:ye(_0xd43709,_0xb6ec2a[_0x351fd4(0x15f)],_0xb6ec2a['endOffset']),_0x34b36a=Se(_0xd43709,_0x3c6ae1,_0x5df767),_0x45145f=(_0x186f1e=_0x3a079d==null?void 0x0:_0x3a079d[_0x351fd4(0x123)])==null?_0xb6ec2a['blockId']:_0x186f1e,_0x3e1459=T(_0xb6ec2a[_0x351fd4(0x115)],_0x45145f,{...S,..._0xb6ec2a['config']});if(_0x3a079d)return _0x3a079d[_0x351fd4(0x15d)]=_0x2156e3[_0x351fd4(0x18a)],oe(_0xd43709,_0x3c6ae1,_0x5df767),he(_0xd43709,_0x3c6ae1,_0x5df767,_0x34b36a),M(_0xd43709,_0x3a079d),{'nextDocumentData':_0x656131,'nextMetadata':_0x3e1459,'cursorOffset':_0x3c6ae1+0x1};if(_0x3c6ae1===_0x5df767){var _0x3b4fa5,_0xed586;let _0x5d7471=''+_0x22b95f[_0x351fd4(0x15b)]+_0x22b95f['PARAGRAPH']+_0x22b95f['BLOCK_END'];N(_0xd43709,_0x3c6ae1,_0x5d7471,{'paragraphs':[{'startIndex':0x1,'paragraphId':_0x11d706(new Set((_0x3b4fa5=_0xd43709[_0x351fd4(0x137)])==null?void 0x0:_0x3b4fa5[_0x351fd4(0x178)](_0x3febea=>_0x3febea[_0x351fd4(0x167)]))),'paragraphStyle':E(!0x0,!0x0,_0x34b36a)}],'blockRanges':[{'blockId':_0x45145f,'blockType':_0x2156e3[_0x351fd4(0x18a)],'startIndex':0x0,'endIndex':_0x5d7471[_0x351fd4(0x13c)]-0x1}]});let _0x1d3efe=(_0xed586=_0xd43709[_0x351fd4(0x168)])==null?void 0x0:_0xed586['find'](_0x123118=>_0x123118[_0x351fd4(0x123)]===_0x45145f);return _0x1d3efe&&M(_0xd43709,_0x1d3efe),{'nextDocumentData':_0x656131,'nextMetadata':_0x3e1459,'cursorOffset':_0x3c6ae1+0x1};}N(_0xd43709,_0x5df767,_0x22b95f[_0x351fd4(0x13f)]),N(_0xd43709,_0x3c6ae1,_0x22b95f[_0x351fd4(0x15b)]),he(_0xd43709,_0x3c6ae1,_0x5df767+0x1,_0x34b36a);let _0xc05468={'blockId':_0x45145f,'blockType':_0x2156e3[_0x351fd4(0x18a)],'startIndex':_0x3c6ae1,'endIndex':_0x5df767+0x1};return _0xd43709['blockRanges']=[...(_0x287dab=_0xd43709['blockRanges'])==null?[]:_0x287dab,_0xc05468][_0x351fd4(0x15a)]((_0x45c031,_0xadf710)=>_0x45c031[_0x351fd4(0x174)]-_0xadf710[_0x351fd4(0x174)]),M(_0xd43709,_0xc05468),{'nextDocumentData':_0x656131,'nextMetadata':_0x3e1459,'cursorOffset':_0x3c6ae1+0x1};}function oe(_0x3c0c4b,_0x1df480,_0x249040){const _0x2f51cc=_0x54d9;var _0x51c377;((_0x51c377=_0x3c0c4b[_0x2f51cc(0x137)])==null?[]:_0x51c377)['filter'](_0x415ac8=>_0x415ac8[_0x2f51cc(0x174)]>_0x1df480&&_0x415ac8[_0x2f51cc(0x174)]<_0x249040)[_0x2f51cc(0x126)](_0x40b8ed=>{const _0x227e91=_0x2f51cc;var _0xcd5082;let _0x2b1472={...(_0xcd5082=_0x40b8ed[_0x227e91(0x158)])==null?{}:_0xcd5082};delete _0x2b1472[_0x227e91(0x17f)],delete _0x2b1472[_0x227e91(0x175)],_0x40b8ed[_0x227e91(0x158)]=_0x2b1472;});}function se(_0x5babde,_0x4d23bf){const _0x23a60c=_0x54d9;return _0x5babde==null||_0x4d23bf==null||_0x5babde===_0x4d23bf?null:{'startOffset':Math[_0x23a60c(0x14b)](_0x5babde,_0x4d23bf),'endOffset':Math[_0x23a60c(0x156)](_0x5babde,_0x4d23bf)};}function ce(_0x2955e7){const _0x5a1952=_0x54d9;return{'nextDocumentData':D(_0x2955e7['documentData']),'nextMetadata':T(_0x2955e7[_0x5a1952(0x115)],_0x2955e7['blockId'],_0x2955e7[_0x5a1952(0x12c)]),'cursorOffset':0x0};}function le(_0x46edbe){const _0x33933c=_0x54d9;var _0x12e431,_0x3f4bee;let _0x4a2813=D(_0x46edbe[_0x33933c(0x176)]),_0x38287b=O(_0x4a2813),_0x2ea800=me(_0x38287b,_0x46edbe[_0x33933c(0x177)]);if(!_0x2ea800)return null;let _0x9cb33c=_e(_0x38287b,_0x2ea800),_0x314933=_0x9cb33c[_0x9cb33c[_0x33933c(0x13c)]-0x1];if(!_0x314933||!ve(_0x38287b,_0x2ea800,_0x314933)||_0x46edbe[_0x33933c(0x177)]<_0x314933[_0x33933c(0x174)])return null;let _0x462808=A(_0x38287b,_0x2ea800,_0x314933);if(_0x462808>=_0x2ea800[_0x33933c(0x131)])return null;_0x38287b[_0x33933c(0x119)]=[_0x38287b[_0x33933c(0x119)]['slice'](0x0,_0x462808),_0x22b95f[_0x33933c(0x13f)],_0x38287b[_0x33933c(0x119)][_0x33933c(0x142)](_0x462808,_0x2ea800[_0x33933c(0x131)]),_0x38287b['dataStream']['slice'](_0x2ea800['endIndex']+0x1)]['join'](''),R(_0x38287b[_0x33933c(0x137)],_0x462808,_0x2ea800['endIndex'],0x1),R(_0x38287b[_0x33933c(0x135)],_0x462808,_0x2ea800[_0x33933c(0x131)],0x1),R(_0x38287b[_0x33933c(0x15e)],_0x462808,_0x2ea800[_0x33933c(0x131)],0x1),ke(_0x38287b['textRuns'],_0x462808,_0x2ea800[_0x33933c(0x131)],0x1),z(_0x38287b[_0x33933c(0x114)],_0x462808,_0x2ea800[_0x33933c(0x131)],0x1),z(_0x38287b[_0x33933c(0x136)],_0x462808,_0x2ea800[_0x33933c(0x131)],0x1),z(_0x38287b[_0x33933c(0x10e)],_0x462808,_0x2ea800[_0x33933c(0x131)],0x1),(_0x12e431=_0x38287b['blockRanges'])==null||_0x12e431[_0x33933c(0x126)](_0x35b4a6=>{const _0x1d86a6=_0x33933c;_0x35b4a6===_0x2ea800||_0x35b4a6[_0x1d86a6(0x123)]===_0x2ea800['blockId']?_0x35b4a6[_0x1d86a6(0x131)]=_0x462808:_0x35b4a6[_0x1d86a6(0x174)]>=_0x462808&&_0x35b4a6[_0x1d86a6(0x174)]<_0x2ea800['endIndex']&&(_0x35b4a6['startIndex']+=0x1,_0x35b4a6[_0x1d86a6(0x131)]+=0x1);});let _0x5f5ab0=_e(_0x38287b,{..._0x2ea800,'endIndex':_0x462808});_0x5f5ab0[_0x33933c(0x126)]((_0x5faf2b,_0x47cf7c)=>{var _0x1a8da7;_0x5faf2b['paragraphStyle']={...(_0x1a8da7=_0x5faf2b['paragraphStyle'])==null?{}:_0x1a8da7,...E(_0x47cf7c===0x0,_0x47cf7c===_0x5f5ab0['length']-0x1)};});let _0x3dd699=(_0x3f4bee=_0x38287b[_0x33933c(0x137)])==null?void 0x0:_0x3f4bee['find'](_0x216683=>_0x216683[_0x33933c(0x174)]===_0x462808+0x1);return _0x3dd699&&(_0x3dd699[_0x33933c(0x158)]=ge(_0x3dd699['paragraphStyle'])),{'nextDocumentData':_0x4a2813,'cursorOffset':_0x462808+0x1};}function ue(_0x27c407){const _0x584460=_0x54d9;let _0x1e3552=D(_0x27c407[_0x584460(0x176)]),_0x179c65=O(_0x1e3552),_0x4ae90d=me(_0x179c65,_0x27c407[_0x584460(0x177)]);return _0x4ae90d&&de(_0x1e3552,_0x179c65,_0x4ae90d,_0x27c407['cursorOffset'],_0x27c407['paragraphStartIndex'])||null;}function de(_0x445eef,_0xc981cc,_0x5efe21,_0x160ec5,_0x32d6ec){const _0x47145a=_0x54d9;let _0x5711c4=we(_0xc981cc,_0x5efe21,_0x160ec5,_0x32d6ec);if(!_0x5711c4)return null;let _0x490116=_0x5711c4['endTokenOffset']-0x1;return Te(_0xc981cc,_0x5711c4['paragraph'][_0x47145a(0x174)],_0x5711c4[_0x47145a(0x11a)]['startIndex']+0x1),{'nextDocumentData':_0x445eef,'cursorOffset':_0x490116};}function fe(_0x52e3ac,_0x2594a1){const _0x16dc58=_0x54d9;var _0x241b0f;return _0x52e3ac==null||(_0x241b0f=_0x52e3ac[_0x16dc58(0x168)])==null?void 0x0:_0x241b0f[_0x16dc58(0x154)](_0x34dd61=>_0x34dd61['blockType']===_0x2156e3[_0x16dc58(0x18a)]&&_0x34dd61['startIndex']<=_0x2594a1&&_0x2594a1<=_0x34dd61[_0x16dc58(0x131)]);}function pe(_0x342135){const _0x4ca01f=_0x54d9;var _0x64435f;let _0x4bafc2=_0x342135[_0x4ca01f(0x176)][_0x4ca01f(0x11e)];if(!_0x4bafc2)return!0x1;let _0x24098e=_0x342135[_0x4ca01f(0x132)]===_0x4ca01f(0x17b)?_0x342135['cursorOffset']-0x1:_0x342135[_0x4ca01f(0x177)],_0x211807=_0x342135[_0x4ca01f(0x132)]===_0x4ca01f(0x11c)?_0x342135['cursorOffset']+0x1:_0x24098e;return((_0x64435f=_0x4bafc2[_0x4ca01f(0x168)])==null?[]:_0x64435f)['some'](_0x550511=>_0x550511[_0x4ca01f(0x15d)]===_0x2156e3[_0x4ca01f(0x18a)]?_0x24098e===_0x550511[_0x4ca01f(0x174)]||_0x24098e===_0x550511['endIndex']||_0x211807===_0x550511[_0x4ca01f(0x174)]||_0x211807===_0x550511[_0x4ca01f(0x131)]:!0x1);}function me(_0x474f87,_0x4e1e81){const _0xa59775=_0x54d9;var _0x520a8a;return(_0x520a8a=_0x474f87['blockRanges'])==null?void 0x0:_0x520a8a[_0xa59775(0x154)](_0x7998ae=>{const _0x3e39f2=_0xa59775;let _0x58797d=j(_0x474f87,_0x7998ae);return _0x7998ae[_0x3e39f2(0x15d)]===_0x2156e3[_0x3e39f2(0x18a)]&&_0x7998ae['startIndex']<=_0x4e1e81&&_0x4e1e81<=_0x58797d+0x2;});}function E(_0x49e345,_0x11d6bd,_0x197c3f=!0x1){return{'indentEnd':{'v':0x14},'indentStart':{'v':0x14},..._0x49e345&&_0x197c3f?{'spaceAbove':{'v':0x8}}:{},'textStyle':{'ff':ie,'fs':0xc}};}function he(_0xbb8e27,_0x205245,_0xf2c1ca,_0x419c11=!0x1){const _0x17156b=_0x54d9;var _0x3a0a5f;let _0x11ce0c=((_0x3a0a5f=_0xbb8e27[_0x17156b(0x137)])==null?[]:_0x3a0a5f)['filter'](_0x17867c=>_0x17867c[_0x17156b(0x174)]>_0x205245&&_0x17867c[_0x17156b(0x174)]<_0xf2c1ca);_0x11ce0c[_0x17156b(0x126)]((_0x1a0477,_0x247beb)=>{const _0x459681=_0x17156b;var _0x2a707b;_0x1a0477['paragraphStyle']={...(_0x2a707b=_0x1a0477['paragraphStyle'])==null?{}:_0x2a707b,...E(_0x247beb===0x0,_0x247beb===_0x11ce0c[_0x459681(0x13c)]-0x1,_0x419c11)};});}function ge(_0x37283a){const _0x5a5f48=_0x54d9;var _0x4b2293,_0x361b06;let _0x3626a9={..._0x37283a==null?{}:_0x37283a};return delete _0x3626a9[_0x5a5f48(0x141)],delete _0x3626a9[_0x5a5f48(0x121)],delete _0x3626a9[_0x5a5f48(0x17f)],delete _0x3626a9[_0x5a5f48(0x175)],((_0x4b2293=_0x3626a9[_0x5a5f48(0x134)])==null?void 0x0:_0x4b2293['ff'])===ie&&((_0x361b06=_0x3626a9[_0x5a5f48(0x134)])==null?void 0x0:_0x361b06['fs'])===0xc&&delete _0x3626a9[_0x5a5f48(0x134)],_0x3626a9;}function _e(_0x1df388,_0x54d5e1){const _0x7ef541=_0x54d9;var _0x4b1d2a;let _0x31ccf5=j(_0x1df388,_0x54d5e1);return((_0x4b1d2a=_0x1df388[_0x7ef541(0x137)])==null?[]:_0x4b1d2a)['filter'](_0x484274=>_0x484274[_0x7ef541(0x174)]>_0x54d5e1[_0x7ef541(0x174)]&&_0x484274[_0x7ef541(0x174)]<_0x31ccf5);}function ve(_0x2fdaa9,_0x41e06f,_0x3267cd){const _0x891b4b=_0x54d9;let _0xb147bd=A(_0x2fdaa9,_0x41e06f,_0x3267cd),_0x12150e=_0x2fdaa9[_0x891b4b(0x119)]['slice'](_0xb147bd,_0x3267cd[_0x891b4b(0x174)]);return Array['from'](_0x12150e)[_0x891b4b(0x17a)](_0x1a4f86=>_0x1a4f86===_0x22b95f['BLOCK_START']||_0x1a4f86===_0x22b95f['BLOCK_END']);}function D(_0x5c6cb0){const _0x22c804=_0x54d9;return _0x3b2d45[_0x22c804(0x149)](_0x5c6cb0);}function O(_0x22e438){const _0x199796=_0x54d9;if(!_0x22e438[_0x199796(0x11e)])throw Error(_0x199796(0x12b));return _0x22e438['body'];}function ye(_0x278e3b,_0x16302b,_0x5a9e1b){const _0x50aa7b=_0x54d9;if(_0x16302b==null||_0x5a9e1b==null){let _0x3cc5c0=xe(_0x278e3b);return{'startOffset':_0x3cc5c0,'endOffset':_0x3cc5c0};}let _0x141839=Math[_0x50aa7b(0x14b)](_0x16302b,_0x5a9e1b),_0x3798d7=Math[_0x50aa7b(0x156)](_0x16302b,_0x5a9e1b);if(_0x141839===_0x3798d7){let _0x448bfb=be(_0x278e3b,_0x141839);return{'startOffset':_0x448bfb,'endOffset':_0x448bfb};}return Ce(_0x278e3b,_0x141839,_0x3798d7);}function be(_0x12b176,_0x22f0ca){const _0x20afe2=_0x54d9;return _0x22f0ca===0x0&&_0x12b176['dataStream'][0x0]===_0x22b95f[_0x20afe2(0x16e)]?0x1:_0x22f0ca;}function xe(_0xbefce0){const _0x12291f=_0x54d9;return _0xbefce0['dataStream']['endsWith'](_0x22b95f[_0x12291f(0x152)])?Math[_0x12291f(0x156)](0x0,_0xbefce0['dataStream'][_0x12291f(0x13c)]-0x1):_0xbefce0[_0x12291f(0x119)]['length'];}function Se(_0x32f2e4,_0x59f493,_0xe864f8){const _0x2ea818=_0x54d9;var _0x1156f5;let _0x32ec75=Math[_0x2ea818(0x14b)](_0x59f493,_0xe864f8),_0x5a22dd=Math[_0x2ea818(0x156)](_0x59f493,_0xe864f8);return!!((_0x1156f5=_0x32f2e4[_0x2ea818(0x114)])!=null&&_0x1156f5[_0x2ea818(0x140)](_0x4ce1ca=>_0x32ec75>_0x4ce1ca['startIndex']&&_0x32ec75<_0x4ce1ca['endIndex']||_0x5a22dd>_0x4ce1ca[_0x2ea818(0x174)]&&_0x5a22dd<_0x4ce1ca[_0x2ea818(0x131)]||_0x32ec75<=_0x4ce1ca['startIndex']&&_0x5a22dd>=_0x4ce1ca[_0x2ea818(0x131)]));}function Ce(_0x172dd1,_0x5d53b7,_0x36637c){const _0x39478b=_0x54d9;var _0x12bc0d,_0x355c33;let _0x55370d=[...(_0x12bc0d=_0x172dd1[_0x39478b(0x137)])==null?[]:_0x12bc0d][_0x39478b(0x15a)]((_0x21cc7f,_0x3f2c8e)=>_0x21cc7f[_0x39478b(0x174)]-_0x3f2c8e[_0x39478b(0x174)]),_0x29eec6=_0x55370d[_0x39478b(0x154)]((_0xc742b5,_0x1dc246)=>(_0x1dc246===0x0?0x0:_0x55370d[_0x1dc246-0x1]['startIndex']+0x1)<=_0x5d53b7&&_0x5d53b7<=_0xc742b5[_0x39478b(0x174)]),_0x265f3c=(_0x355c33=_0x55370d[_0x39478b(0x154)](_0x1a912b=>_0x1a912b[_0x39478b(0x174)]>=_0x36637c-0x1))==null?_0x55370d[_0x55370d['length']-0x1]:_0x355c33;return{'startOffset':_0x29eec6?k(_0x55370d,_0x29eec6):_0x5d53b7,'endOffset':_0x265f3c?_0x265f3c[_0x39478b(0x174)]+0x1:_0x36637c};}function k(_0x33e905,_0x35d6de){const _0x39197a=_0x54d9;let _0x2066ee=_0x33e905[_0x39197a(0x187)](_0x35d6de);return _0x2066ee>0x0?_0x33e905[_0x2066ee-0x1][_0x39197a(0x174)]+0x1:0x0;}function A(_0x36f6c4,_0x3c6247,_0x481684){const _0x543950=_0x54d9;var _0x25a0df;return Math[_0x543950(0x156)](k((_0x25a0df=_0x36f6c4[_0x543950(0x137)])==null?[]:_0x25a0df,_0x481684),_0x3c6247[_0x543950(0x174)]+0x1);}function j(_0x2c2191,_0x1e13c9){const _0x1818bc=_0x54d9;return _0x2c2191[_0x1818bc(0x119)][_0x1e13c9[_0x1818bc(0x131)]]===_0x22b95f[_0x1818bc(0x13f)]?_0x1e13c9['endIndex']:_0x2c2191[_0x1818bc(0x119)][_0x1e13c9[_0x1818bc(0x131)]+0x1]===_0x22b95f['BLOCK_END']?_0x1e13c9[_0x1818bc(0x131)]+0x1:_0x1e13c9['endIndex'];}function we(_0x5c1808,_0x516210,_0x5747da,_0x1df26a){const _0x525531=_0x54d9;var _0x5e6640,_0x2b675d;let _0x1831bd=j(_0x5c1808,_0x516210),_0xa6082=((_0x5e6640=_0x5c1808[_0x525531(0x137)])==null?[]:_0x5e6640)[_0x525531(0x154)](_0x33d013=>_0x33d013[_0x525531(0x174)]===_0x1831bd+0x1);if(!_0xa6082||_0x1df26a!=null&&_0xa6082[_0x525531(0x174)]!==_0x1df26a||_0x5747da<_0x1831bd||_0x5747da>_0xa6082[_0x525531(0x174)]+0x1||_0x5c1808[_0x525531(0x119)][_0xa6082['startIndex']]!==_0x22b95f[_0x525531(0x16e)])return null;let _0x1f175a=k((_0x2b675d=_0x5c1808[_0x525531(0x137)])==null?[]:_0x2b675d,_0xa6082),_0x4e1bc5=_0x5c1808[_0x525531(0x119)][_0x525531(0x142)](_0x1f175a,_0xa6082[_0x525531(0x174)]);return Array[_0x525531(0x138)](_0x4e1bc5)[_0x525531(0x17a)](_0x1b1ae2=>_0x1b1ae2===_0x22b95f[_0x525531(0x13f)])?{'paragraph':_0xa6082,'endTokenOffset':_0x1831bd}:null;}function M(_0x15a9b5,_0x5ed2eb){const _0x41d3a3=_0x54d9;var _0x4a4363;let _0x4f7cb8=j(_0x15a9b5,_0x5ed2eb),_0x5485ce=_0x15a9b5[_0x41d3a3(0x119)][_0x4f7cb8+0x1];_0x5485ce!==_0x22b95f[_0x41d3a3(0x152)]&&_0x5485ce!==void 0x0||N(_0x15a9b5,_0x4f7cb8+0x1,_0x22b95f[_0x41d3a3(0x16e)],{'paragraphs':[{'startIndex':0x0,'paragraphId':_0x11d706(new Set((_0x4a4363=_0x15a9b5[_0x41d3a3(0x137)])==null?void 0x0:_0x4a4363[_0x41d3a3(0x178)](_0x357e02=>_0x357e02['paragraphId'])))}]});}function N(_0x10f401,_0x13f80f,_0x2f5872,_0x2637dc={}){const _0x208376=_0x54d9;var _0x55f87b,_0x5f395f;if(_0x2f5872){if(_0x10f401[_0x208376(0x119)]=''+_0x10f401[_0x208376(0x119)][_0x208376(0x142)](0x0,_0x13f80f)+_0x2f5872+_0x10f401[_0x208376(0x119)][_0x208376(0x142)](_0x13f80f),Ee(_0x10f401,_0x13f80f,_0x2f5872[_0x208376(0x13c)]),(_0x55f87b=_0x2637dc[_0x208376(0x137)])!=null&&_0x55f87b[_0x208376(0x13c)]){var _0x30aa56;_0x10f401['paragraphs']=[...(_0x30aa56=_0x10f401['paragraphs'])==null?[]:_0x30aa56,..._0x2637dc[_0x208376(0x137)][_0x208376(0x178)](_0x2b6390=>({..._0x2b6390,'startIndex':_0x2b6390[_0x208376(0x174)]+_0x13f80f}))][_0x208376(0x15a)]((_0x5d33aa,_0x5e0f97)=>_0x5d33aa[_0x208376(0x174)]-_0x5e0f97[_0x208376(0x174)]);}if((_0x5f395f=_0x2637dc[_0x208376(0x168)])!=null&&_0x5f395f[_0x208376(0x13c)]){var _0x1b2ed4;_0x10f401[_0x208376(0x168)]=[...(_0x1b2ed4=_0x10f401[_0x208376(0x168)])==null?[]:_0x1b2ed4,..._0x2637dc[_0x208376(0x168)][_0x208376(0x178)](_0x3910c4=>({..._0x3910c4,'startIndex':_0x3910c4[_0x208376(0x174)]+_0x13f80f,'endIndex':_0x3910c4['endIndex']+_0x13f80f}))]['sort']((_0x4e4504,_0x5c3d36)=>_0x4e4504[_0x208376(0x174)]-_0x5c3d36[_0x208376(0x174)]);}}}function Te(_0x42d57e,_0x295df6,_0x2d333c){const _0x5abdbc=_0x54d9;let _0x184ff9=_0x2d333c-_0x295df6;_0x42d57e[_0x5abdbc(0x119)]=''+_0x42d57e[_0x5abdbc(0x119)][_0x5abdbc(0x142)](0x0,_0x295df6)+_0x42d57e['dataStream']['slice'](_0x2d333c),De(_0x42d57e,_0x295df6,_0x184ff9);}function Ee(_0x5086dd,_0x429808,_0x517d8b){const _0x591d56=_0x54d9;_0x5086dd[_0x591d56(0x137)]=P(_0x5086dd[_0x591d56(0x137)],_0x429808,_0x517d8b),_0x5086dd[_0x591d56(0x135)]=P(_0x5086dd[_0x591d56(0x135)],_0x429808,_0x517d8b),_0x5086dd['customBlocks']=P(_0x5086dd[_0x591d56(0x15e)],_0x429808,_0x517d8b),_0x5086dd[_0x591d56(0x171)]=Oe(_0x5086dd[_0x591d56(0x171)],_0x429808,_0x517d8b),_0x5086dd[_0x591d56(0x114)]=I(_0x5086dd[_0x591d56(0x114)],_0x429808,_0x517d8b),_0x5086dd['customRanges']=I(_0x5086dd[_0x591d56(0x136)],_0x429808,_0x517d8b),_0x5086dd[_0x591d56(0x10e)]=I(_0x5086dd['customDecorations'],_0x429808,_0x517d8b),_0x5086dd[_0x591d56(0x168)]=I(_0x5086dd[_0x591d56(0x168)],_0x429808,_0x517d8b);}function De(_0x5ce363,_0x583753,_0x5acff4){const _0x2773bc=_0x54d9;var _0x1b7034,_0x5eacb0;_0x5ce363[_0x2773bc(0x137)]=F(_0x5ce363[_0x2773bc(0x137)],_0x583753,_0x5acff4),_0x5ce363[_0x2773bc(0x135)]=F(_0x5ce363['sectionBreaks'],_0x583753,_0x5acff4),_0x5ce363[_0x2773bc(0x15e)]=F(_0x5ce363['customBlocks'],_0x583753,_0x5acff4),_0x5ce363['textRuns']=(_0x1b7034=L((_0x5eacb0=_0x5ce363[_0x2773bc(0x171)])==null?void 0x0:_0x5eacb0[_0x2773bc(0x178)](_0x44f99d=>({..._0x44f99d,'startIndex':_0x44f99d['st'],'endIndex':_0x44f99d['ed']})),_0x583753,_0x5acff4))==null?void 0x0:_0x1b7034[_0x2773bc(0x178)](_0x4e56ec=>{let {startIndex:_0x2e6150,endIndex:_0x460a74,..._0x5906ae}=_0x4e56ec;return{..._0x5906ae,'st':_0x2e6150,'ed':_0x460a74};}),_0x5ce363[_0x2773bc(0x114)]=L(_0x5ce363[_0x2773bc(0x114)],_0x583753,_0x5acff4),_0x5ce363[_0x2773bc(0x136)]=L(_0x5ce363[_0x2773bc(0x136)],_0x583753,_0x5acff4),_0x5ce363[_0x2773bc(0x10e)]=L(_0x5ce363['customDecorations'],_0x583753,_0x5acff4),_0x5ce363[_0x2773bc(0x168)]=L(_0x5ce363[_0x2773bc(0x168)],_0x583753,_0x5acff4);}function P(_0x30c41e,_0x3b453b,_0x62aa12){const _0x1a28ea=_0x54d9;return _0x30c41e==null?void 0x0:_0x30c41e[_0x1a28ea(0x178)](_0xdf2fdb=>_0xdf2fdb[_0x1a28ea(0x174)]>=_0x3b453b?{..._0xdf2fdb,'startIndex':_0xdf2fdb[_0x1a28ea(0x174)]+_0x62aa12}:_0xdf2fdb);}function F(_0x4b1548,_0x1984de,_0x1f0471){const _0x5a4155=_0x54d9;let _0x46aa45=_0x1984de+_0x1f0471;return _0x4b1548==null?void 0x0:_0x4b1548['map'](_0xfe7fb9=>_0xfe7fb9['startIndex']>=_0x1984de&&_0xfe7fb9[_0x5a4155(0x174)]<_0x46aa45?null:_0xfe7fb9[_0x5a4155(0x174)]>=_0x46aa45?{..._0xfe7fb9,'startIndex':_0xfe7fb9[_0x5a4155(0x174)]-_0x1f0471}:_0xfe7fb9)['filter'](_0x37613f=>_0x37613f!=null);}function Oe(_0x49e85f,_0x1edd5e,_0x14bd04){const _0x33529f=_0x54d9;return _0x49e85f==null?void 0x0:_0x49e85f[_0x33529f(0x178)](_0x3213cc=>_0x3213cc['st']>=_0x1edd5e?{..._0x3213cc,'st':_0x3213cc['st']+_0x14bd04,'ed':_0x3213cc['ed']+_0x14bd04}:_0x3213cc['ed']>_0x1edd5e?{..._0x3213cc,'ed':_0x3213cc['ed']+_0x14bd04}:_0x3213cc);}function I(_0x48206e,_0x12fb62,_0x3b2d2a){const _0x3d9aa2=_0x54d9;return _0x48206e==null?void 0x0:_0x48206e[_0x3d9aa2(0x178)](_0x32c433=>_0x32c433[_0x3d9aa2(0x174)]>=_0x12fb62?{..._0x32c433,'startIndex':_0x32c433[_0x3d9aa2(0x174)]+_0x3b2d2a,'endIndex':_0x32c433[_0x3d9aa2(0x131)]+_0x3b2d2a}:_0x32c433[_0x3d9aa2(0x131)]>=_0x12fb62?{..._0x32c433,'endIndex':_0x32c433[_0x3d9aa2(0x131)]+_0x3b2d2a}:_0x32c433);}function L(_0x563a05,_0x3fe9c5,_0x5a1dd5){const _0x446aae=_0x54d9;let _0x2879b6=_0x3fe9c5+_0x5a1dd5;return _0x563a05==null?void 0x0:_0x563a05['map'](_0x260fe6=>_0x260fe6[_0x446aae(0x174)]>=_0x3fe9c5&&_0x260fe6[_0x446aae(0x131)]<_0x2879b6?null:_0x260fe6[_0x446aae(0x174)]>=_0x2879b6?{..._0x260fe6,'startIndex':_0x260fe6[_0x446aae(0x174)]-_0x5a1dd5,'endIndex':_0x260fe6['endIndex']-_0x5a1dd5}:_0x260fe6[_0x446aae(0x131)]>=_0x3fe9c5?{..._0x260fe6,'startIndex':_0x260fe6[_0x446aae(0x174)]<_0x3fe9c5?_0x260fe6[_0x446aae(0x174)]:_0x3fe9c5,'endIndex':Math[_0x446aae(0x156)](_0x3fe9c5,_0x260fe6[_0x446aae(0x131)]-_0x5a1dd5)}:_0x260fe6)[_0x446aae(0x129)](_0x4f8c99=>_0x4f8c99!=null);}function R(_0x55c8ce,_0x52e6a2,_0x4b821d,_0x5527fb){_0x55c8ce==null||_0x55c8ce['forEach'](_0x56ec32=>{const _0x56ea6f=_0x54d9;_0x56ec32['startIndex']>=_0x52e6a2&&_0x56ec32[_0x56ea6f(0x174)]<_0x4b821d&&(_0x56ec32[_0x56ea6f(0x174)]+=_0x5527fb);});}function ke(_0x4f8942,_0x442573,_0x59cd64,_0x4e0154){_0x4f8942==null||_0x4f8942['forEach'](_0x4a48ee=>{_0x4a48ee['st']>=_0x442573&&_0x4a48ee['st']<_0x59cd64?(_0x4a48ee['st']+=_0x4e0154,_0x4a48ee['ed']+=_0x4e0154):_0x4a48ee['ed']>_0x442573&&_0x4a48ee['ed']<_0x59cd64&&(_0x4a48ee['ed']+=_0x4e0154);});}function z(_0x263fdb,_0x225c91,_0x415f51,_0x4271ed){const _0x572307=_0x54d9;_0x263fdb==null||_0x263fdb[_0x572307(0x126)](_0x2bbd46=>{const _0x4b0187=_0x572307;_0x2bbd46['startIndex']>=_0x225c91&&_0x2bbd46['startIndex']<_0x415f51?(_0x2bbd46[_0x4b0187(0x174)]+=_0x4271ed,_0x2bbd46[_0x4b0187(0x131)]+=_0x4271ed):_0x2bbd46[_0x4b0187(0x131)]>_0x225c91&&_0x2bbd46['endIndex']<_0x415f51&&(_0x2bbd46[_0x4b0187(0x131)]+=_0x4271ed);});}function B(_0x5f5b97){'@babel/helpers - typeof';const _0x2d9e27=_0x54d9;return B=typeof Symbol=='function'&&typeof Symbol[_0x2d9e27(0x122)]==_0x2d9e27(0x181)?function(_0xb12779){return typeof _0xb12779;}:function(_0xd09dd5){const _0x177e89=_0x2d9e27;return _0xd09dd5&&typeof Symbol=='function'&&_0xd09dd5['constructor']===Symbol&&_0xd09dd5!==Symbol[_0x177e89(0x13a)]?_0x177e89(0x181):typeof _0xd09dd5;},B(_0x5f5b97);}function Ae(_0x1ed163,_0x3585cf){const _0x15428d=_0x54d9;if(B(_0x1ed163)!=_0x15428d(0x117)||!_0x1ed163)return _0x1ed163;var _0x17afd6=_0x1ed163[Symbol[_0x15428d(0x160)]];if(_0x17afd6!==void 0x0){var _0x520b00=_0x17afd6[_0x15428d(0x169)](_0x1ed163,_0x3585cf||_0x15428d(0x155));if(B(_0x520b00)!=_0x15428d(0x117))return _0x520b00;throw TypeError(_0x15428d(0x185));}return(_0x3585cf===_0x15428d(0x116)?String:Number)(_0x1ed163);}function je(_0xd70608){const _0x3b3b5e=_0x54d9;var _0x19ec96=Ae(_0xd70608,_0x3b3b5e(0x116));return B(_0x19ec96)==_0x3b3b5e(0x181)?_0x19ec96:_0x19ec96+'';}function V(_0x3939c0,_0x50904f,_0xd9bd19){const _0xbed579=_0x54d9;return(_0x50904f=je(_0x50904f))in _0x3939c0?Object[_0xbed579(0x11f)](_0x3939c0,_0x50904f,{'value':_0xd9bd19,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x3939c0[_0x50904f]=_0xd9bd19,_0x3939c0;}function _0x4e4f(){const _0xc76ecf=['_initResource','paragraphId','blockRanges','call','disposeWithMe','getCodeConfig','_commandService','model','PARAGRAPH','codes','UNIVER_DOC','textRuns','docs-code.command.insert-below','docs-code.command.cancel-empty-paragraph','startIndex','spaceBelow','documentData','cursorOffset','map','setCodeConfig','every','left','endOffset','_docsCodeModel','_config','spaceAbove','get','symbol','previousDocumentData','nextMetadata','_configService','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','3801798BQqfBS','indexOf','reduce','7549850RMTTcI','CODE','1565016hNGzXe','getTextRanges','@univerjs-pro/docs-code','commandService','set','change$','COMMAND','customDecorations','decorate','diffValue','docs-code.config','getUnitId','unitId','tables','metadata','string','object','deserialize','dataStream','paragraph','type','right','_change$','body','defineProperty','registerPluginResource','indentStart','iterator','blockId','onStarting','3lweciD','forEach','getUniverDocInstance','registerCommand','filter','getOwnPropertyDescriptor','Document\x20body\x20is\x20required','config','24PCyzzO','removeUnit','docs-code.command.exit','getSnapshot','endIndex','direction','_injector','textStyle','sectionBreaks','customRanges','paragraphs','from','setConfig','prototype','8cgVMSA','length','getCurrentUnitOfType','version','BLOCK_END','some','indentEnd','slice','stringify','parse','_setResource','DOC_CODE_PLUGIN','getBody','delete','deepClone','_resources','min','asObservable','complete','removeCode','_resourceManagerService','186720HcxwcB','next','SECTION_BREAK','nextDocumentData','find','default','max','clear','paragraphStyle','1036414TfveFk','sort','BLOCK_START','dispose','blockType','customBlocks','startOffset','toPrimitive','serialize','2801519FRZypX','add','256237yzKVvR','compose'];_0x4e4f=function(){return _0xc76ecf;};return _0x4e4f();}var H=class extends _0x4d4eaf{constructor(..._0x370c70){const _0x52f34a=_0x54d9;super(..._0x370c70),V(this,_0x52f34a(0x14a),new Map()),V(this,_0x52f34a(0x11d),new _0x2b2e5b()),V(this,_0x52f34a(0x190),this[_0x52f34a(0x11d)][_0x52f34a(0x14c)]());}[_0x560653(0x16b)](_0x5bb953,_0x45d128){const _0x48da10=_0x560653;return w(this['_resources'][_0x48da10(0x180)](_0x5bb953))[_0x48da10(0x16f)][_0x45d128];}[_0x560653(0x179)](_0x46c988,_0x174333,_0x456f65){const _0x290387=_0x560653;this[_0x290387(0x145)](_0x46c988,_0x174333,T(this[_0x290387(0x14a)][_0x290387(0x180)](_0x46c988),_0x174333,_0x456f65));}[_0x560653(0x14e)](_0x4874c5,_0x27aae9){const _0x140587=_0x560653;this[_0x140587(0x145)](_0x4874c5,_0x27aae9,re(this['_resources'][_0x140587(0x180)](_0x4874c5),_0x27aae9));}['serialize'](_0x40d17c){const _0xb9b657=_0x560653;return w(this['_resources'][_0xb9b657(0x180)](_0x40d17c));}['deserialize'](_0x42ad3a,_0x4641ba){const _0xe27a79=_0x560653;this[_0xe27a79(0x14a)][_0xe27a79(0x18f)](_0x42ad3a,w(_0x4641ba)),this[_0xe27a79(0x11d)][_0xe27a79(0x151)]({'unitId':_0x42ad3a});}[_0x560653(0x12e)](_0x2847a2){const _0x260ecd=_0x560653;this['_resources'][_0x260ecd(0x148)](_0x2847a2),this[_0x260ecd(0x11d)][_0x260ecd(0x151)]({'unitId':_0x2847a2});}[_0x560653(0x15c)](){const _0x45e734=_0x560653;super[_0x45e734(0x15c)](),this['_resources'][_0x45e734(0x157)](),this[_0x45e734(0x11d)][_0x45e734(0x14d)]();}[_0x560653(0x145)](_0x469920,_0x11aaff,_0x10ba39){const _0x213aaf=_0x560653;this['_resources'][_0x213aaf(0x18f)](_0x469920,_0x10ba39),this[_0x213aaf(0x11d)][_0x213aaf(0x151)]({'unitId':_0x469920,'blockId':_0x11aaff});}};const Me={'id':_0x560653(0x172),'type':_0x3163ae[_0x560653(0x191)],'handler':_0x2544f0=>{const _0x101e0=_0x560653;let _0x149df6=Le(_0x2544f0);if(_0x149df6)return _0x2544f0[_0x101e0(0x180)](_0x464daf)['syncExecuteCommand'](U['id'],{'startOffset':_0x149df6[_0x101e0(0x15f)],'endOffset':_0x149df6['endOffset'],'unitId':_0x149df6[_0x101e0(0x113)]});let _0x439ecb=Re(_0x2544f0);if(!_0x439ecb)return!0x1;let _0x3027dd=_0x439ecb[_0x101e0(0x174)]+0x1;return _0x2544f0[_0x101e0(0x180)](_0x464daf)['syncExecuteCommand'](U['id'],{'startOffset':_0x3027dd,'endOffset':_0x3027dd});}},Ne={'id':'docs-code.command.consume-boundary-delete','type':_0x3163ae[_0x560653(0x191)],'handler':()=>!0x0},U={'id':'docs-code.command.insert','type':_0x3163ae['COMMAND'],'handler':(_0x1aefc8,_0x4aef41)=>{const _0x7e2e70=_0x560653;var _0x1e59bf,_0x1d6324,_0x24f74b;let _0x540523=W(_0x1aefc8,_0x4aef41==null?void 0x0:_0x4aef41[_0x7e2e70(0x113)]);if(!_0x540523)return!0x1;let _0x4443d5=G(_0x1aefc8),_0x5860e6=ae({'blockId':(_0x1e59bf=_0x4aef41==null?void 0x0:_0x4aef41['blockId'])==null?_0x590119(0x6):_0x1e59bf,'config':_0x4aef41==null?void 0x0:_0x4aef41['config'],'documentData':_0x540523[_0x7e2e70(0x182)],'endOffset':(_0x1d6324=_0x4aef41==null?void 0x0:_0x4aef41['endOffset'])==null?_0x4443d5==null?void 0x0:_0x4443d5[_0x7e2e70(0x17c)]:_0x1d6324,'metadata':_0x540523[_0x7e2e70(0x16d)][_0x7e2e70(0x161)](_0x540523['unitId']),'startOffset':(_0x24f74b=_0x4aef41==null?void 0x0:_0x4aef41[_0x7e2e70(0x15f)])==null?_0x4443d5==null?void 0x0:_0x4443d5[_0x7e2e70(0x15f)]:_0x24f74b}),_0x3f3e0f=q(_0x540523[_0x7e2e70(0x18e)],_0x540523[_0x7e2e70(0x113)],_0x540523[_0x7e2e70(0x182)],_0x5860e6[_0x7e2e70(0x153)],_0x5860e6[_0x7e2e70(0x177)]);return _0x3f3e0f&&_0x5860e6[_0x7e2e70(0x183)]&&_0x540523[_0x7e2e70(0x16d)][_0x7e2e70(0x118)](_0x540523[_0x7e2e70(0x113)],_0x5860e6[_0x7e2e70(0x183)]),_0x3f3e0f;}},Pe={'id':'docs-code.command.update','type':_0x3163ae[_0x560653(0x191)],'handler':(_0x35185a,_0x3ce2bd)=>{const _0x1d79af=_0x560653;if(!_0x3ce2bd)return!0x1;let _0x341c01=W(_0x35185a,_0x3ce2bd['unitId']);if(!_0x341c01)return!0x1;let _0x6fa79d=ce({'blockId':_0x3ce2bd['blockId'],'config':_0x3ce2bd['config'],'documentData':_0x341c01[_0x1d79af(0x182)],'metadata':_0x341c01['model'][_0x1d79af(0x161)](_0x341c01[_0x1d79af(0x113)])});return _0x6fa79d[_0x1d79af(0x183)]&&_0x341c01['model'][_0x1d79af(0x118)](_0x341c01[_0x1d79af(0x113)],_0x6fa79d[_0x1d79af(0x183)]),!0x0;}},Fe={'id':_0x560653(0x12f),'type':_0x3163ae['COMMAND'],'handler':(_0x2f2816,_0x27c88c)=>{const _0x2f4a42=_0x560653;var _0x3b62b5,_0x381a07;let _0x1e51be=W(_0x2f2816,_0x27c88c==null?void 0x0:_0x27c88c['unitId']);if(!_0x1e51be)return!0x1;let _0x22424a=(_0x3b62b5=_0x27c88c==null?void 0x0:_0x27c88c[_0x2f4a42(0x177)])==null?(_0x381a07=G(_0x2f2816))==null?void 0x0:_0x381a07[_0x2f4a42(0x15f)]:_0x3b62b5;if(_0x22424a==null)return!0x1;let _0x3c0cf3=le({'cursorOffset':_0x22424a,'documentData':_0x1e51be[_0x2f4a42(0x182)]});return _0x3c0cf3?q(_0x1e51be[_0x2f4a42(0x18e)],_0x1e51be[_0x2f4a42(0x113)],_0x1e51be[_0x2f4a42(0x182)],_0x3c0cf3[_0x2f4a42(0x153)],_0x3c0cf3[_0x2f4a42(0x177)]):!0x1;}},Ie={'id':_0x560653(0x173),'type':_0x3163ae[_0x560653(0x191)],'handler':(_0x16230d,_0x2d44c3)=>{const _0x352552=_0x560653;var _0x27f02b,_0x20ddd3;let _0x17c4ff=W(_0x16230d,_0x2d44c3==null?void 0x0:_0x2d44c3[_0x352552(0x113)]);if(!_0x17c4ff)return!0x1;let _0x4971df=(_0x27f02b=_0x2d44c3==null?void 0x0:_0x2d44c3[_0x352552(0x177)])==null?(_0x20ddd3=G(_0x16230d))==null?void 0x0:_0x20ddd3[_0x352552(0x15f)]:_0x27f02b;if(_0x4971df==null)return!0x1;let _0x5035de=ue({'cursorOffset':_0x4971df,'documentData':_0x17c4ff['previousDocumentData'],'paragraphStartIndex':_0x2d44c3==null?void 0x0:_0x2d44c3['paragraphStartIndex']});return _0x5035de?q(_0x17c4ff[_0x352552(0x18e)],_0x17c4ff[_0x352552(0x113)],_0x17c4ff[_0x352552(0x182)],_0x5035de[_0x352552(0x153)],_0x5035de[_0x352552(0x177)]):!0x1;}};function W(_0x177fc2,_0x178bd9){const _0x3d8eee=_0x560653;let _0x58881f=_0x177fc2['get'](_0x3824cb),_0x3a01a4=_0x178bd9?_0x58881f[_0x3d8eee(0x127)](_0x178bd9):_0x58881f[_0x3d8eee(0x13d)](_0x3e4192[_0x3d8eee(0x170)]);return _0x3a01a4?{'commandService':_0x177fc2[_0x3d8eee(0x180)](_0x464daf),'model':_0x177fc2[_0x3d8eee(0x180)](H),'previousDocumentData':_0x3a01a4[_0x3d8eee(0x130)](),'unitId':_0x3a01a4[_0x3d8eee(0x112)]()}:null;}function _0x54d9(_0x16e321,_0x492a69){_0x16e321=_0x16e321-0x10e;const _0x4e4fef=_0x4e4f();let _0x54d99c=_0x4e4fef[_0x16e321];return _0x54d99c;}function G(_0x3ff3f2){const _0x2a410f=_0x560653;var _0x12b31e;return(_0x12b31e=_0x3ff3f2[_0x2a410f(0x180)](_0x5e656f)[_0x2a410f(0x18c)]())==null?void 0x0:_0x12b31e[0x0];}function Le(_0x3cc0cc){const _0x2c0c92=_0x560653;var _0x839b08;let _0x2564f6=(_0x839b08=_0x3cc0cc[_0x2c0c92(0x180)](_0x3824cb)['getCurrentUnitOfType'](_0x3e4192[_0x2c0c92(0x170)]))==null?void 0x0:_0x839b08[_0x2c0c92(0x112)]();try{return _0x3cc0cc[_0x2c0c92(0x180)](_0x312533)['consumeInsertRange'](_0x2564f6);}catch{return null;}}function Re(_0x4e0d9e){const _0x1cbcf0=_0x560653;var _0x4add28,_0x17eb63,_0xc764e9;let _0x26dc70=G(_0x4e0d9e);if(!_0x26dc70)return null;let _0x530623=_0x4e0d9e[_0x1cbcf0(0x180)](_0x3824cb)['getCurrentUnitOfType'](_0x3e4192[_0x1cbcf0(0x170)]),_0x22cd5a=_0x530623==null?void 0x0:_0x530623[_0x1cbcf0(0x147)]();return _0x22cd5a?(_0x4add28=_0x17de4b['range']['getParagraphsInRange'](_0x26dc70,(_0x17eb63=_0x22cd5a[_0x1cbcf0(0x137)])==null?[]:_0x17eb63,(_0xc764e9=_0x22cd5a[_0x1cbcf0(0x119)])==null?'':_0xc764e9)[0x0])==null?null:_0x4add28:null;}function ze(_0x967cc2,_0x276eaa){const _0x15bf74=_0x560653;var _0x121343,_0x363a90,_0x5850a1,_0x2199ca,_0x12780b,_0x596131,_0x3f0686,_0x2332d9,_0x5bafac,_0x3c1bdc,_0x85d677,_0xa25208,_0x266cf8,_0x5868d5,_0x450659,_0x326bb0,_0x295643,_0x191189;let _0x475569=_0x204cdd['getInstance']();return[K(_0x475569,['body',_0x15bf74(0x119)],(_0x121343=_0x967cc2['body'])==null?void 0x0:_0x121343[_0x15bf74(0x119)],(_0x363a90=_0x276eaa[_0x15bf74(0x11e)])==null?void 0x0:_0x363a90['dataStream']),K(_0x475569,[_0x15bf74(0x11e),'paragraphs'],(_0x5850a1=_0x967cc2['body'])==null?void 0x0:_0x5850a1[_0x15bf74(0x137)],(_0x2199ca=_0x276eaa[_0x15bf74(0x11e)])==null?void 0x0:_0x2199ca[_0x15bf74(0x137)]),K(_0x475569,[_0x15bf74(0x11e),_0x15bf74(0x135)],(_0x12780b=_0x967cc2[_0x15bf74(0x11e)])==null?void 0x0:_0x12780b['sectionBreaks'],(_0x596131=_0x276eaa[_0x15bf74(0x11e)])==null?void 0x0:_0x596131[_0x15bf74(0x135)]),K(_0x475569,[_0x15bf74(0x11e),_0x15bf74(0x171)],(_0x3f0686=_0x967cc2['body'])==null?void 0x0:_0x3f0686[_0x15bf74(0x171)],(_0x2332d9=_0x276eaa[_0x15bf74(0x11e)])==null?void 0x0:_0x2332d9[_0x15bf74(0x171)]),K(_0x475569,['body',_0x15bf74(0x15e)],(_0x5bafac=_0x967cc2[_0x15bf74(0x11e)])==null?void 0x0:_0x5bafac['customBlocks'],(_0x3c1bdc=_0x276eaa[_0x15bf74(0x11e)])==null?void 0x0:_0x3c1bdc[_0x15bf74(0x15e)]),K(_0x475569,[_0x15bf74(0x11e),'customRanges'],(_0x85d677=_0x967cc2[_0x15bf74(0x11e)])==null?void 0x0:_0x85d677[_0x15bf74(0x136)],(_0xa25208=_0x276eaa['body'])==null?void 0x0:_0xa25208['customRanges']),K(_0x475569,[_0x15bf74(0x11e),_0x15bf74(0x10e)],(_0x266cf8=_0x967cc2[_0x15bf74(0x11e)])==null?void 0x0:_0x266cf8[_0x15bf74(0x10e)],(_0x5868d5=_0x276eaa[_0x15bf74(0x11e)])==null?void 0x0:_0x5868d5[_0x15bf74(0x10e)]),K(_0x475569,['body',_0x15bf74(0x114)],(_0x450659=_0x967cc2[_0x15bf74(0x11e)])==null?void 0x0:_0x450659[_0x15bf74(0x114)],(_0x326bb0=_0x276eaa[_0x15bf74(0x11e)])==null?void 0x0:_0x326bb0['tables']),K(_0x475569,[_0x15bf74(0x11e),'blockRanges'],(_0x295643=_0x967cc2[_0x15bf74(0x11e)])==null?void 0x0:_0x295643['blockRanges'],(_0x191189=_0x276eaa['body'])==null?void 0x0:_0x191189[_0x15bf74(0x168)])][_0x15bf74(0x129)](Boolean)[_0x15bf74(0x188)]((_0x13609e,_0x9469d0)=>_0x204cdd[_0x15bf74(0x165)](_0x13609e,_0x9469d0),null);}function K(_0x1408a8,_0x43ffca,_0x567ad4,_0x2a079a){const _0x21367b=_0x560653;return _0x3b2d45[_0x21367b(0x110)](_0x567ad4,_0x2a079a)?null:_0x1408a8['replaceOp'](_0x43ffca,_0x567ad4,_0x2a079a);}function q(_0x84cf9d,_0x20f6c5,_0x21575c,_0x4e5aa5,_0x45113c){let _0xabead=ze(_0x21575c,_0x4e5aa5);return _0xabead?!!_0x84cf9d['syncExecuteCommand'](_0x447dce['id'],{'unitId':_0x20f6c5,'actions':_0xabead,'textRanges':[{'startOffset':_0x45113c,'endOffset':_0x45113c,'collapsed':!0x0}],'isEditing':!0x1}):!0x1;}const J=_0x560653(0x146);var Be=_0x560653(0x18d),Ve='0.25.0-insiders.20260613-a210f12';const Y={};function X(_0x26fab4,_0x46f02f){return function(_0x11d6fc,_0x2749d0){_0x46f02f(_0x11d6fc,_0x2749d0,_0x26fab4);};}function Z(_0x190134,_0x845f8d,_0x5b38a1,_0x1b209c){const _0x4cb196=_0x560653;var _0x177380=arguments[_0x4cb196(0x13c)],_0x39ecd4=_0x177380<0x3?_0x845f8d:_0x1b209c===null?_0x1b209c=Object[_0x4cb196(0x12a)](_0x845f8d,_0x5b38a1):_0x1b209c,_0xd800c0;if(typeof Reflect=='object'&&typeof Reflect[_0x4cb196(0x10f)]=='function')_0x39ecd4=Reflect[_0x4cb196(0x10f)](_0x190134,_0x845f8d,_0x5b38a1,_0x1b209c);else{for(var _0x3f3c7f=_0x190134['length']-0x1;_0x3f3c7f>=0x0;_0x3f3c7f--)(_0xd800c0=_0x190134[_0x3f3c7f])&&(_0x39ecd4=(_0x177380<0x3?_0xd800c0(_0x39ecd4):_0x177380>0x3?_0xd800c0(_0x845f8d,_0x5b38a1,_0x39ecd4):_0xd800c0(_0x845f8d,_0x5b38a1))||_0x39ecd4);}return _0x177380>0x3&&_0x39ecd4&&Object['defineProperty'](_0x845f8d,_0x5b38a1,_0x39ecd4),_0x39ecd4;}let Q=class extends _0x4d4eaf{constructor(_0x1b2887,_0x3b1caa){const _0x5f19cb=_0x560653;super(),this[_0x5f19cb(0x14f)]=_0x1b2887,this[_0x5f19cb(0x17d)]=_0x3b1caa,this[_0x5f19cb(0x166)]();}[_0x560653(0x166)](){const _0x3b7239=_0x560653;this[_0x3b7239(0x16a)](this[_0x3b7239(0x14f)][_0x3b7239(0x120)]({'pluginName':J,'businesses':[_0x3e4192['UNIVER_DOC']],'toJson':_0x587e40=>JSON[_0x3b7239(0x143)](this[_0x3b7239(0x17d)]['serialize'](_0x587e40)),'parseJson':_0x1c2385=>w(JSON[_0x3b7239(0x144)](_0x1c2385)),'onLoad':(_0x11716a,_0x54d662)=>this[_0x3b7239(0x17d)][_0x3b7239(0x118)](_0x11716a,_0x54d662),'onUnLoad':_0x401597=>this[_0x3b7239(0x17d)][_0x3b7239(0x12e)](_0x401597)}));}};Q=Z([X(0x0,_0x53b05f),X(0x1,_0x554295(H))],Q);let $=class extends _0x3dff2c{constructor(_0x3aba51=Y,_0xbd46dd,_0x5552a8,_0x184d5b){const _0x217334=_0x560653;super(),this['_config']=_0x3aba51,this['_injector']=_0xbd46dd,this[_0x217334(0x16c)]=_0x5552a8,this[_0x217334(0x184)]=_0x184d5b;let {..._0x382f62}=_0x16de9b({},Y,this[_0x217334(0x17e)]);this[_0x217334(0x184)][_0x217334(0x139)](_0x217334(0x111),_0x382f62);}[_0x560653(0x124)](){const _0x880ef4=_0x560653;this['_injector'][_0x880ef4(0x163)]([H]),this[_0x880ef4(0x133)][_0x880ef4(0x163)]([Q]),this[_0x880ef4(0x133)][_0x880ef4(0x180)](H),this[_0x880ef4(0x133)][_0x880ef4(0x180)](Q),[U,Me,Pe,Fe,Ie,Ne][_0x880ef4(0x126)](_0x75d11e=>this['disposeWithMe'](this['_commandService'][_0x880ef4(0x128)](_0x75d11e)));}};V($,'pluginName',J),V($,'packageName',Be),V($,_0x560653(0x13e),Ve),V($,_0x560653(0x11b),_0x3e4192[_0x560653(0x170)]),$=Z([_0x545704(_0x59fb22,_0x3a0230),X(0x1,_0x554295(_0x144991)),X(0x2,_0x464daf),X(0x3,_0x42ffe8)],$);export{S as DEFAULT_CODE_CONFIG,J as DOCS_CODE_PLUGIN,Ie as DocsCodeCancelEmptyParagraphCommand,Ne as DocsCodeConsumeBoundaryDeleteCommand,Fe as DocsCodeExitCommand,Me as DocsCodeInsertBelowCommand,U as DocsCodeInsertCommand,H as DocsCodeModel,Pe as DocsCodeUpdateCommand,$ as UniverDocsCodePlugin,ue as buildCancelEmptyCodeParagraphActions,le as buildExitCodeActions,ae as buildInsertCodeActions,ce as buildUpdateCodeActions,fe as findCodeRangeAtOffset,pe as isCodeBoundaryDelete,C as normalizeDocsCodeConfig};
package/lib/umd/facade.js CHANGED
@@ -1 +1 @@
1
- function _0x3e44(){var _0xd7fff3=['slice','startIndex','defineProperty','join','SECTION_BREAK','describe','BLOCK_START','toPrimitive','exports','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','DocsCodeCancelEmptyParagraphCommand','40KADGHX','length','_document','filter','@univerjs/core','_getBlockRange','FDocumentCode','DocsCodeUpdateCommand','UniverProDocsCodeFacade','1885389NVLqKe','getConfig','extend','UniverProDocsCode','getCode','5631400VoylDg','save','getCodes','ICommandService','decorate','includes','getCodeConfig','map','DataStreamTreeTokenType','text','endIndex','4435eGVEOf','CODE','_getDocumentData','2ljWxyt','getText','Injector','DocsCodeInsertCommand','call','PARAGRAPH','DocsCodeExitCommand','function','insertCode','blockType','get','_getBlockRanges','1570113ZedhIl','getOwnPropertyDescriptor','BLOCK_END','FDocument','1768227mlDKrM','prototype','UniverCore','375902ZRHHnT','getRange','Inject','some','13258TPtmLs','_unitId','@univerjs/docs/facade','cancelEmptyCodeParagraph','syncExecuteCommand','_createFDocumentCode','blockId','string','_blockId','findCodes','DocumentBlockRangeType','find','getId','replace','symbol','_injector','DocsCodeModel','findCodeByText','dataStream','Module','70HXsBdh','blockRanges','body','1068ypPwWK','createInstance','toStringTag','iterator','generateRandomId','@univerjs-pro/docs-code'];_0x3e44=function(){return _0xd7fff3;};return _0x3e44();}function _0x17c5(_0x1e2740,_0x3cb716){_0x1e2740=_0x1e2740-0x1ae;var _0x3e4496=_0x3e44();var _0x17c52a=_0x3e4496[_0x1e2740];return _0x17c52a;}(function(_0x228394,_0x472255){var _0x44b206=_0x17c5,_0x5787b=_0x228394();while(!![]){try{var _0x10a324=parseInt(_0x44b206(0x1b9))/0x1*(parseInt(_0x44b206(0x1cc))/0x2)+parseInt(_0x44b206(0x1c9))/0x3+-parseInt(_0x44b206(0x206))/0x4+-parseInt(_0x44b206(0x1b6))/0x5*(-parseInt(_0x44b206(0x1e7))/0x6)+parseInt(_0x44b206(0x1d0))/0x7*(parseInt(_0x44b206(0x1f8))/0x8)+-parseInt(_0x44b206(0x1c5))/0x9*(-parseInt(_0x44b206(0x1e4))/0xa)+-parseInt(_0x44b206(0x201))/0xb;if(_0x10a324===_0x472255)break;else _0x5787b['push'](_0x5787b['shift']());}catch(_0x4cbd4f){_0x5787b['push'](_0x5787b['shift']());}}}(_0x3e44,0xbd1d9),function(_0xd6e1c2,_0x2abe4a){var _0x38511d=_0x17c5;typeof exports=='object'&&typeof module<'u'?_0x2abe4a(exports,require('@univerjs-pro/docs-code'),require('@univerjs/core'),require('@univerjs/docs/facade')):typeof define==_0x38511d(0x1c0)&&define['amd']?define([_0x38511d(0x1f5),_0x38511d(0x1ec),_0x38511d(0x1fc),_0x38511d(0x1d2)],_0x2abe4a):(_0xd6e1c2=typeof globalThis<'u'?globalThis:_0xd6e1c2||self,_0x2abe4a(_0xd6e1c2[_0x38511d(0x200)]={},_0xd6e1c2[_0x38511d(0x204)],_0xd6e1c2[_0x38511d(0x1cb)],_0xd6e1c2['UniverDocsFacade']));}(this,function(_0x4bba2a,_0x405d90,_0x775f80,_0x2f14c5){var _0x9e4cf2=_0x17c5;Object[_0x9e4cf2(0x1ef)](_0x4bba2a,Symbol[_0x9e4cf2(0x1e9)],{'value':_0x9e4cf2(0x1e3)});function _0x3f6f35(_0x4a562e){'@babel/helpers - typeof';var _0x43549c=_0x9e4cf2;return _0x3f6f35=typeof Symbol=='function'&&typeof Symbol[_0x43549c(0x1ea)]==_0x43549c(0x1de)?function(_0x5420db){return typeof _0x5420db;}:function(_0x433124){var _0x17fed6=_0x43549c;return _0x433124&&typeof Symbol==_0x17fed6(0x1c0)&&_0x433124['constructor']===Symbol&&_0x433124!==Symbol[_0x17fed6(0x1ca)]?'symbol':typeof _0x433124;},_0x3f6f35(_0x4a562e);}function _0x2e9b1e(_0x38b8e7,_0x443273){var _0x17e1ef=_0x9e4cf2;if(_0x3f6f35(_0x38b8e7)!='object'||!_0x38b8e7)return _0x38b8e7;var _0xaae1e9=_0x38b8e7[Symbol[_0x17e1ef(0x1f4)]];if(_0xaae1e9!==void 0x0){var _0xa9ae74=_0xaae1e9[_0x17e1ef(0x1bd)](_0x38b8e7,_0x443273||'default');if(_0x3f6f35(_0xa9ae74)!='object')return _0xa9ae74;throw TypeError(_0x17e1ef(0x1f6));}return(_0x443273===_0x17e1ef(0x1d7)?String:Number)(_0x38b8e7);}function _0x2c33c6(_0x32b334){var _0x590372=_0x9e4cf2,_0x1099ad=_0x2e9b1e(_0x32b334,_0x590372(0x1d7));return _0x3f6f35(_0x1099ad)==_0x590372(0x1de)?_0x1099ad:_0x1099ad+'';}function _0x3d54cd(_0x34e78d,_0x1d659d,_0x4b47e5){var _0x55a6c7=_0x9e4cf2;return(_0x1d659d=_0x2c33c6(_0x1d659d))in _0x34e78d?Object[_0x55a6c7(0x1ef)](_0x34e78d,_0x1d659d,{'value':_0x4b47e5,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x34e78d[_0x1d659d]=_0x4b47e5,_0x34e78d;}function _0x877ab8(_0x1ad1a7,_0x329b29){return function(_0x331b83,_0x4a8de4){_0x329b29(_0x331b83,_0x4a8de4,_0x1ad1a7);};}function _0x588ae9(_0x470efb,_0x5d6a6c,_0x20d05d,_0x2f3b4b){var _0x3ff607=_0x9e4cf2,_0x1acd71=arguments[_0x3ff607(0x1f9)],_0x401d7d=_0x1acd71<0x3?_0x5d6a6c:_0x2f3b4b===null?_0x2f3b4b=Object[_0x3ff607(0x1c6)](_0x5d6a6c,_0x20d05d):_0x2f3b4b,_0x567972;if(typeof Reflect=='object'&&typeof Reflect[_0x3ff607(0x1af)]==_0x3ff607(0x1c0))_0x401d7d=Reflect[_0x3ff607(0x1af)](_0x470efb,_0x5d6a6c,_0x20d05d,_0x2f3b4b);else{for(var _0x2e3b4f=_0x470efb[_0x3ff607(0x1f9)]-0x1;_0x2e3b4f>=0x0;_0x2e3b4f--)(_0x567972=_0x470efb[_0x2e3b4f])&&(_0x401d7d=(_0x1acd71<0x3?_0x567972(_0x401d7d):_0x1acd71>0x3?_0x567972(_0x5d6a6c,_0x20d05d,_0x401d7d):_0x567972(_0x5d6a6c,_0x20d05d))||_0x401d7d);}return _0x1acd71>0x3&&_0x401d7d&&Object[_0x3ff607(0x1ef)](_0x5d6a6c,_0x20d05d,_0x401d7d),_0x401d7d;}let _0x384006=class{constructor(_0x1782c2,_0x18db5f,_0x43405e){var _0x462ceb=_0x9e4cf2;this[_0x462ceb(0x1fa)]=_0x1782c2,this[_0x462ceb(0x1d8)]=_0x18db5f,this['_injector']=_0x43405e,_0x3d54cd(this,_0x462ceb(0x1d1),void 0x0),this[_0x462ceb(0x1d1)]=this['_document'][_0x462ceb(0x1dc)]();}['getId'](){var _0x3d1e6d=_0x9e4cf2;return this[_0x3d1e6d(0x1d8)];}[_0x9e4cf2(0x1cd)](){var _0x282c49=_0x9e4cf2;let _0x3c98cd=this['_getBlockRange']();return _0x3c98cd?{'blockId':_0x3c98cd[_0x282c49(0x1d6)],'endIndex':_0x3c98cd[_0x282c49(0x1b5)],'startIndex':_0x3c98cd[_0x282c49(0x1ee)]}:null;}[_0x9e4cf2(0x1ba)](){var _0x575fb9=_0x9e4cf2,_0x2cd642;let _0x403d6a=this[_0x575fb9(0x1fd)](),_0x4c728b=(_0x2cd642=this[_0x575fb9(0x1b8)]()['body'])==null?void 0x0:_0x2cd642[_0x575fb9(0x1e2)];return!_0x403d6a||!_0x4c728b?'':_0x412ffb(_0x4c728b[_0x575fb9(0x1ed)](_0x403d6a[_0x575fb9(0x1ee)]+0x1,_0x403d6a['endIndex']));}[_0x9e4cf2(0x1f2)](){var _0x470ffa=_0x9e4cf2;let _0x15ffc5=this[_0x470ffa(0x1cd)]();return _0x15ffc5?{..._0x15ffc5,'config':this[_0x470ffa(0x202)](),'text':this[_0x470ffa(0x1ba)](),'type':_0x775f80[_0x470ffa(0x1da)][_0x470ffa(0x1b7)]}:null;}['getConfig'](){var _0x583cd1=_0x9e4cf2;return(0x0,_0x405d90['normalizeDocsCodeConfig'])(this[_0x583cd1(0x1df)][_0x583cd1(0x1c3)](_0x405d90[_0x583cd1(0x1e0)])[_0x583cd1(0x1b1)](this[_0x583cd1(0x1d1)],this[_0x583cd1(0x1d8)]));}['updateConfig'](_0xe82239){var _0xca1d30=_0x9e4cf2;return this[_0xca1d30(0x1df)]['get'](_0x775f80['ICommandService'])[_0xca1d30(0x1d4)](_0x405d90[_0xca1d30(0x1ff)]['id'],{'blockId':this[_0xca1d30(0x1d8)],'config':_0xe82239['config'],'unitId':this['_unitId']});}['exit'](_0x21361e){var _0x4f278c=_0x9e4cf2;return this[_0x4f278c(0x1df)][_0x4f278c(0x1c3)](_0x775f80['ICommandService'])['syncExecuteCommand'](_0x405d90[_0x4f278c(0x1bf)]['id'],{'cursorOffset':_0x21361e,'unitId':this[_0x4f278c(0x1d1)]});}['cancelEmptyParagraph'](_0x435736={}){var _0x1fee5a=_0x9e4cf2;return this[_0x1fee5a(0x1df)]['get'](_0x775f80[_0x1fee5a(0x1ae)])[_0x1fee5a(0x1d4)](_0x405d90[_0x1fee5a(0x1f7)]['id'],{..._0x435736,'unitId':this['_unitId']});}['_getDocumentData'](){var _0xf107d5=_0x9e4cf2;return this['_document'][_0xf107d5(0x207)]();}['_getBlockRange'](){var _0x4ac142=_0x9e4cf2,_0x536b08;let _0x1367b7=(_0x536b08=this['_getDocumentData']()[_0x4ac142(0x1e6)])==null||(_0x536b08=_0x536b08['blockRanges'])==null?void 0x0:_0x536b08[_0x4ac142(0x1db)](_0xf9c52a=>_0xf9c52a[_0x4ac142(0x1d6)]===this['_blockId']&&_0xf9c52a[_0x4ac142(0x1c2)]===_0x775f80[_0x4ac142(0x1da)][_0x4ac142(0x1b7)]);return _0x1367b7==null?null:_0x1367b7;}};_0x384006=_0x588ae9([_0x877ab8(0x2,(0x0,_0x775f80[_0x9e4cf2(0x1ce)])(_0x775f80[_0x9e4cf2(0x1bb)]))],_0x384006);function _0x412ffb(_0x5b3505){var _0x3028e7=_0x9e4cf2;return Array['from'](_0x5b3505)[_0x3028e7(0x1b2)](_0x1b0192=>_0x1b0192===_0x775f80[_0x3028e7(0x1b3)][_0x3028e7(0x1be)]?'\x0a':_0x1b0192)['filter'](_0x3b1d15=>_0x3b1d15!==_0x775f80[_0x3028e7(0x1b3)][_0x3028e7(0x1f3)]&&_0x3b1d15!==_0x775f80[_0x3028e7(0x1b3)][_0x3028e7(0x1c7)]&&_0x3b1d15!==_0x775f80[_0x3028e7(0x1b3)][_0x3028e7(0x1f1)])[_0x3028e7(0x1f0)]('')[_0x3028e7(0x1dd)](/\n$/,'');}var _0x1e7ffb=class extends _0x2f14c5[_0x9e4cf2(0x1c8)]{[_0x9e4cf2(0x208)](){var _0x11468c=_0x9e4cf2;return this[_0x11468c(0x1c4)]()[_0x11468c(0x1fb)](_0x237f4a=>_0x237f4a[_0x11468c(0x1c2)]===_0x775f80[_0x11468c(0x1da)][_0x11468c(0x1b7)])[_0x11468c(0x1b2)](_0x5b8c3f=>this['_createFDocumentCode'](_0x5b8c3f[_0x11468c(0x1d6)]));}[_0x9e4cf2(0x205)](_0x30ac9c){var _0x1b5ad0=_0x9e4cf2;return this['_getBlockRanges']()[_0x1b5ad0(0x1cf)](_0xe84041=>_0xe84041[_0x1b5ad0(0x1d6)]===_0x30ac9c&&_0xe84041[_0x1b5ad0(0x1c2)]===_0x775f80[_0x1b5ad0(0x1da)][_0x1b5ad0(0x1b7)])?this[_0x1b5ad0(0x1d5)](_0x30ac9c):null;}['getCodeAt'](_0x156f1b){var _0x3d73a8=_0x9e4cf2;let _0x3a5315=this['_getBlockRanges']()[_0x3d73a8(0x1db)](_0x157ebb=>_0x157ebb[_0x3d73a8(0x1c2)]===_0x775f80['DocumentBlockRangeType'][_0x3d73a8(0x1b7)]&&_0x157ebb[_0x3d73a8(0x1ee)]<=_0x156f1b&&_0x156f1b<=_0x157ebb[_0x3d73a8(0x1b5)]);return _0x3a5315?this[_0x3d73a8(0x1d5)](_0x3a5315[_0x3d73a8(0x1d6)]):null;}[_0x9e4cf2(0x1e1)](_0x2536fa){var _0x3019c4=_0x9e4cf2,_0x59e084;return(_0x59e084=this[_0x3019c4(0x1d9)](_0x2536fa)[0x0])==null?null:_0x59e084;}['findCodes'](_0x2a0d21){var _0x485d6f=_0x9e4cf2;let _0x30f8e4=typeof _0x2a0d21==_0x485d6f(0x1d7)?{'text':_0x2a0d21}:_0x2a0d21;return this[_0x485d6f(0x208)]()[_0x485d6f(0x1fb)](_0x2ee2ac=>!(_0x30f8e4[_0x485d6f(0x1d6)]&&_0x2ee2ac[_0x485d6f(0x1dc)]()!==_0x30f8e4[_0x485d6f(0x1d6)]||_0x30f8e4[_0x485d6f(0x1b4)]&&!_0x2ee2ac[_0x485d6f(0x1ba)]()[_0x485d6f(0x1b0)](_0x30f8e4[_0x485d6f(0x1b4)])));}[_0x9e4cf2(0x1c1)](_0x11973a={}){var _0x58c8d0=_0x9e4cf2,_0x4ae3ae;let _0x12e10b=this[_0x58c8d0(0x1df)]['get'](_0x775f80[_0x58c8d0(0x1ae)]),_0x28024d=(_0x4ae3ae=_0x11973a[_0x58c8d0(0x1d6)])==null?(0x0,_0x775f80[_0x58c8d0(0x1eb)])(0x6):_0x4ae3ae;return _0x12e10b[_0x58c8d0(0x1d4)](_0x405d90[_0x58c8d0(0x1bc)]['id'],{..._0x11973a,'blockId':_0x28024d,'unitId':this[_0x58c8d0(0x1dc)]()})?this[_0x58c8d0(0x1d5)](_0x28024d):null;}['exitCode'](_0x133328){var _0x3cf83e=_0x9e4cf2;return this[_0x3cf83e(0x1df)][_0x3cf83e(0x1c3)](_0x775f80[_0x3cf83e(0x1ae)])[_0x3cf83e(0x1d4)](_0x405d90['DocsCodeExitCommand']['id'],{'cursorOffset':_0x133328,'unitId':this[_0x3cf83e(0x1dc)]()});}[_0x9e4cf2(0x1d3)](_0x50aabb={}){var _0x3d7e49=_0x9e4cf2;return this[_0x3d7e49(0x1df)][_0x3d7e49(0x1c3)](_0x775f80['ICommandService'])[_0x3d7e49(0x1d4)](_0x405d90[_0x3d7e49(0x1f7)]['id'],{..._0x50aabb,'unitId':this[_0x3d7e49(0x1dc)]()});}[_0x9e4cf2(0x1c4)](){var _0x171087=_0x9e4cf2,_0x58e6f6,_0x18ecb2;return(_0x58e6f6=(_0x18ecb2=this[_0x171087(0x207)]()['body'])==null?void 0x0:_0x18ecb2[_0x171087(0x1e5)])==null?[]:_0x58e6f6;}[_0x9e4cf2(0x1d5)](_0x4ddc71){var _0x285120=_0x9e4cf2;return this[_0x285120(0x1df)][_0x285120(0x1e8)](_0x384006,this,_0x4ddc71);}};_0x2f14c5[_0x9e4cf2(0x1c8)][_0x9e4cf2(0x203)](_0x1e7ffb),Object[_0x9e4cf2(0x1ef)](_0x4bba2a,_0x9e4cf2(0x1fe),{'enumerable':!0x0,'get':function(){return _0x384006;}});}));
1
+ function _0x34ce(_0x3b7e00,_0x3754a7){_0x3b7e00=_0x3b7e00-0x195;var _0xb889c8=_0xb889();var _0x34ce09=_0xb889c8[_0x3b7e00];return _0x34ce09;}(function(_0x553a37,_0x5dd821){var _0x3c2050=_0x34ce,_0x1e192b=_0x553a37();while(!![]){try{var _0x454cbe=parseInt(_0x3c2050(0x1a1))/0x1+-parseInt(_0x3c2050(0x1d3))/0x2+parseInt(_0x3c2050(0x19d))/0x3+-parseInt(_0x3c2050(0x1b5))/0x4+parseInt(_0x3c2050(0x1b0))/0x5+parseInt(_0x3c2050(0x1d7))/0x6*(-parseInt(_0x3c2050(0x1ce))/0x7)+parseInt(_0x3c2050(0x1d2))/0x8;if(_0x454cbe===_0x5dd821)break;else _0x1e192b['push'](_0x1e192b['shift']());}catch(_0x5f392f){_0x1e192b['push'](_0x1e192b['shift']());}}}(_0xb889,0xef261),function(_0x2bb8d0,_0x5b6258){var _0x34eb1d=_0x34ce;typeof exports==_0x34eb1d(0x1a2)&&typeof module<'u'?_0x5b6258(exports,require('@univerjs-pro/docs-code'),require('@univerjs/core'),require('@univerjs/docs/facade')):typeof define==_0x34eb1d(0x1b2)&&define['amd']?define([_0x34eb1d(0x1aa),'@univerjs-pro/docs-code',_0x34eb1d(0x1d6),'@univerjs/docs/facade'],_0x5b6258):(_0x2bb8d0=typeof globalThis<'u'?globalThis:_0x2bb8d0||self,_0x5b6258(_0x2bb8d0[_0x34eb1d(0x19e)]={},_0x2bb8d0[_0x34eb1d(0x19c)],_0x2bb8d0[_0x34eb1d(0x1bf)],_0x2bb8d0['UniverDocsFacade']));}(this,function(_0xa21727,_0x475604,_0x3ed00d,_0x43c084){var _0x4ce80a=_0x34ce;Object[_0x4ce80a(0x197)](_0xa21727,Symbol[_0x4ce80a(0x1b3)],{'value':'Module'});function _0x5bc077(_0x331164){'@babel/helpers - typeof';var _0x3f5921=_0x4ce80a;return _0x5bc077=typeof Symbol=='function'&&typeof Symbol[_0x3f5921(0x19a)]==_0x3f5921(0x1a7)?function(_0x18419e){return typeof _0x18419e;}:function(_0x361dbe){var _0x1664fe=_0x3f5921;return _0x361dbe&&typeof Symbol=='function'&&_0x361dbe[_0x1664fe(0x1ac)]===Symbol&&_0x361dbe!==Symbol[_0x1664fe(0x1ea)]?'symbol':typeof _0x361dbe;},_0x5bc077(_0x331164);}function _0xc3ba79(_0x3e2066,_0x1cadf5){var _0x3279eb=_0x4ce80a;if(_0x5bc077(_0x3e2066)!=_0x3279eb(0x1a2)||!_0x3e2066)return _0x3e2066;var _0x4c4da7=_0x3e2066[Symbol[_0x3279eb(0x1b9)]];if(_0x4c4da7!==void 0x0){var _0x5de9bc=_0x4c4da7[_0x3279eb(0x1ae)](_0x3e2066,_0x1cadf5||_0x3279eb(0x1a6));if(_0x5bc077(_0x5de9bc)!=_0x3279eb(0x1a2))return _0x5de9bc;throw TypeError(_0x3279eb(0x1d4));}return(_0x1cadf5==='string'?String:Number)(_0x3e2066);}function _0x438607(_0x3fd0e3){var _0x4619f0=_0xc3ba79(_0x3fd0e3,'string');return _0x5bc077(_0x4619f0)=='symbol'?_0x4619f0:_0x4619f0+'';}function _0x59af1c(_0x174a76,_0x14acb4,_0x5bc681){var _0x281d6a=_0x4ce80a;return(_0x14acb4=_0x438607(_0x14acb4))in _0x174a76?Object[_0x281d6a(0x197)](_0x174a76,_0x14acb4,{'value':_0x5bc681,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x174a76[_0x14acb4]=_0x5bc681,_0x174a76;}function _0xdff66b(_0x52aafc,_0x3496e2){return function(_0x53b6c1,_0x2f6753){_0x3496e2(_0x53b6c1,_0x2f6753,_0x52aafc);};}function _0x505aac(_0x1647a8,_0x56c4c9,_0x3394cf,_0x3adf7b){var _0x196b9f=_0x4ce80a,_0x2fcf53=arguments[_0x196b9f(0x1be)],_0x387321=_0x2fcf53<0x3?_0x56c4c9:_0x3adf7b===null?_0x3adf7b=Object[_0x196b9f(0x1e9)](_0x56c4c9,_0x3394cf):_0x3adf7b,_0x31ec64;if(typeof Reflect==_0x196b9f(0x1a2)&&typeof Reflect[_0x196b9f(0x1dc)]==_0x196b9f(0x1b2))_0x387321=Reflect[_0x196b9f(0x1dc)](_0x1647a8,_0x56c4c9,_0x3394cf,_0x3adf7b);else{for(var _0x549d6b=_0x1647a8[_0x196b9f(0x1be)]-0x1;_0x549d6b>=0x0;_0x549d6b--)(_0x31ec64=_0x1647a8[_0x549d6b])&&(_0x387321=(_0x2fcf53<0x3?_0x31ec64(_0x387321):_0x2fcf53>0x3?_0x31ec64(_0x56c4c9,_0x3394cf,_0x387321):_0x31ec64(_0x56c4c9,_0x3394cf))||_0x387321);}return _0x2fcf53>0x3&&_0x387321&&Object[_0x196b9f(0x197)](_0x56c4c9,_0x3394cf,_0x387321),_0x387321;}let _0x441c52=class{constructor(_0x172671,_0x3dd86d,_0x261059){var _0x27b3e7=_0x4ce80a;this['_document']=_0x172671,this[_0x27b3e7(0x1cb)]=_0x3dd86d,this[_0x27b3e7(0x1d1)]=_0x261059,_0x59af1c(this,_0x27b3e7(0x1c9),void 0x0),this[_0x27b3e7(0x1c9)]=this['_document'][_0x27b3e7(0x1bb)]();}[_0x4ce80a(0x1bb)](){var _0x48e5cf=_0x4ce80a;return this[_0x48e5cf(0x1cb)];}[_0x4ce80a(0x1c1)](){var _0x2471e1=_0x4ce80a;let _0x1befb4=this['_getBlockRange']();return _0x1befb4?{'blockId':_0x1befb4['blockId'],'endIndex':_0x1befb4['endIndex'],'startIndex':_0x1befb4[_0x2471e1(0x1d5)]}:null;}[_0x4ce80a(0x1ad)](){var _0x40a6af=_0x4ce80a,_0x3a181b;let _0x3a6403=this[_0x40a6af(0x1a4)](),_0x51c8bd=(_0x3a181b=this[_0x40a6af(0x1e0)]()['body'])==null?void 0x0:_0x3a181b[_0x40a6af(0x1a8)];return!_0x3a6403||!_0x51c8bd?'':_0xf0b2ba(_0x51c8bd[_0x40a6af(0x1eb)](_0x3a6403[_0x40a6af(0x1d5)]+0x1,_0x3a6403[_0x40a6af(0x1a9)]));}['describe'](){var _0x4f181c=_0x4ce80a;let _0x2e6d8a=this[_0x4f181c(0x1c1)]();return _0x2e6d8a?{..._0x2e6d8a,'config':this[_0x4f181c(0x1dd)](),'text':this[_0x4f181c(0x1ad)](),'type':_0x3ed00d[_0x4f181c(0x1c7)]['CODE']}:null;}['getConfig'](){var _0x41edcf=_0x4ce80a;return(0x0,_0x475604[_0x41edcf(0x1da)])(this['_injector']['get'](_0x475604[_0x41edcf(0x1e4)])[_0x41edcf(0x1e7)](this[_0x41edcf(0x1c9)],this[_0x41edcf(0x1cb)]));}[_0x4ce80a(0x196)](_0x210de6){var _0xee615d=_0x4ce80a;return this['_injector'][_0xee615d(0x1c3)](_0x3ed00d[_0xee615d(0x1df)])['syncExecuteCommand'](_0x475604['DocsCodeUpdateCommand']['id'],{'blockId':this[_0xee615d(0x1cb)],'config':_0x210de6['config'],'unitId':this[_0xee615d(0x1c9)]});}['exit'](_0x63dc8b){var _0x9a59ee=_0x4ce80a;return this[_0x9a59ee(0x1d1)][_0x9a59ee(0x1c3)](_0x3ed00d[_0x9a59ee(0x1df)])[_0x9a59ee(0x1e8)](_0x475604[_0x9a59ee(0x1c0)]['id'],{'cursorOffset':_0x63dc8b,'unitId':this[_0x9a59ee(0x1c9)]});}[_0x4ce80a(0x1cc)](_0x3ea026={}){var _0x52fa14=_0x4ce80a;return this[_0x52fa14(0x1d1)][_0x52fa14(0x1c3)](_0x3ed00d[_0x52fa14(0x1df)])[_0x52fa14(0x1e8)](_0x475604[_0x52fa14(0x1ba)]['id'],{..._0x3ea026,'unitId':this[_0x52fa14(0x1c9)]});}[_0x4ce80a(0x1e0)](){var _0x2c379b=_0x4ce80a;return this['_document'][_0x2c379b(0x1c5)]();}['_getBlockRange'](){var _0x4982cd=_0x4ce80a,_0x3849b2;let _0x336c78=(_0x3849b2=this[_0x4982cd(0x1e0)]()[_0x4982cd(0x1c6)])==null||(_0x3849b2=_0x3849b2[_0x4982cd(0x198)])==null?void 0x0:_0x3849b2['find'](_0x297d7e=>_0x297d7e[_0x4982cd(0x1af)]===this[_0x4982cd(0x1cb)]&&_0x297d7e['blockType']===_0x3ed00d['DocumentBlockRangeType']['CODE']);return _0x336c78==null?null:_0x336c78;}};_0x441c52=_0x505aac([_0xdff66b(0x2,(0x0,_0x3ed00d['Inject'])(_0x3ed00d[_0x4ce80a(0x195)]))],_0x441c52);function _0xf0b2ba(_0x4773e8){var _0x5d19a8=_0x4ce80a;return Array[_0x5d19a8(0x1d8)](_0x4773e8)[_0x5d19a8(0x1e5)](_0x464699=>_0x464699===_0x3ed00d[_0x5d19a8(0x1ab)][_0x5d19a8(0x1ca)]?'\x0a':_0x464699)['filter'](_0x1f7a65=>_0x1f7a65!==_0x3ed00d[_0x5d19a8(0x1ab)][_0x5d19a8(0x19f)]&&_0x1f7a65!==_0x3ed00d[_0x5d19a8(0x1ab)][_0x5d19a8(0x1b8)]&&_0x1f7a65!==_0x3ed00d['DataStreamTreeTokenType'][_0x5d19a8(0x1e3)])[_0x5d19a8(0x1e6)]('')[_0x5d19a8(0x1c4)](/\n$/,'');}var _0x137f8c=class extends _0x43c084[_0x4ce80a(0x1bc)]{[_0x4ce80a(0x1e2)](){var _0x37527c=_0x4ce80a;return this[_0x37527c(0x1b6)]()[_0x37527c(0x19b)](_0x45d96e=>_0x45d96e[_0x37527c(0x1b1)]===_0x3ed00d[_0x37527c(0x1c7)]['CODE'])[_0x37527c(0x1e5)](_0x4add62=>this['_createFDocumentCode'](_0x4add62[_0x37527c(0x1af)]));}[_0x4ce80a(0x1e1)](_0x326d95){var _0x10fcf6=_0x4ce80a;return this[_0x10fcf6(0x1b6)]()[_0x10fcf6(0x1a5)](_0x5b4bbd=>_0x5b4bbd[_0x10fcf6(0x1af)]===_0x326d95&&_0x5b4bbd[_0x10fcf6(0x1b1)]===_0x3ed00d[_0x10fcf6(0x1c7)]['CODE'])?this[_0x10fcf6(0x1d0)](_0x326d95):null;}[_0x4ce80a(0x1c2)](_0x201804){var _0x196f68=_0x4ce80a;let _0x33cc89=this['_getBlockRanges']()['find'](_0x1cccba=>_0x1cccba[_0x196f68(0x1b1)]===_0x3ed00d['DocumentBlockRangeType'][_0x196f68(0x1db)]&&_0x1cccba[_0x196f68(0x1d5)]<=_0x201804&&_0x201804<=_0x1cccba['endIndex']);return _0x33cc89?this[_0x196f68(0x1d0)](_0x33cc89['blockId']):null;}[_0x4ce80a(0x1a0)](_0x298772){var _0x235c94=_0x4ce80a,_0x3f809e;return(_0x3f809e=this[_0x235c94(0x1c8)](_0x298772)[0x0])==null?null:_0x3f809e;}['findCodes'](_0x53b6fb){var _0x3e8362=_0x4ce80a;let _0x207286=typeof _0x53b6fb=='string'?{'text':_0x53b6fb}:_0x53b6fb;return this[_0x3e8362(0x1e2)]()[_0x3e8362(0x19b)](_0x5e61af=>!(_0x207286[_0x3e8362(0x1af)]&&_0x5e61af[_0x3e8362(0x1bb)]()!==_0x207286['blockId']||_0x207286[_0x3e8362(0x199)]&&!_0x5e61af[_0x3e8362(0x1ad)]()[_0x3e8362(0x1cf)](_0x207286[_0x3e8362(0x199)])));}[_0x4ce80a(0x1d9)](_0x3e50e5={},_0x79a4c0={}){var _0x449cf5=_0x4ce80a,_0x42cfc9;let _0x1e5ed4=this[_0x449cf5(0x1d1)][_0x449cf5(0x1c3)](_0x3ed00d[_0x449cf5(0x1df)]),_0x192674=_0x137147(_0x3e50e5)?{..._0x79a4c0,..._0x1bbf45(_0x3e50e5)}:_0x3e50e5,_0x5c1b48=(_0x42cfc9=_0x192674[_0x449cf5(0x1af)])==null?(0x0,_0x3ed00d[_0x449cf5(0x1b7)])(0x6):_0x42cfc9;return _0x1e5ed4[_0x449cf5(0x1e8)](_0x475604[_0x449cf5(0x1cd)]['id'],{..._0x192674,'blockId':_0x5c1b48,'unitId':this[_0x449cf5(0x1bb)]()})?this['_createFDocumentCode'](_0x5c1b48):null;}[_0x4ce80a(0x1bd)](_0x4e29a3){var _0x12b5a7=_0x4ce80a;return this[_0x12b5a7(0x1d1)][_0x12b5a7(0x1c3)](_0x3ed00d[_0x12b5a7(0x1df)])[_0x12b5a7(0x1e8)](_0x475604[_0x12b5a7(0x1c0)]['id'],{'cursorOffset':_0x4e29a3,'unitId':this[_0x12b5a7(0x1bb)]()});}[_0x4ce80a(0x1a3)](_0x27ce5b={}){var _0x7bbeb9=_0x4ce80a;return this['_injector']['get'](_0x3ed00d[_0x7bbeb9(0x1df)])[_0x7bbeb9(0x1e8)](_0x475604['DocsCodeCancelEmptyParagraphCommand']['id'],{..._0x27ce5b,'unitId':this[_0x7bbeb9(0x1bb)]()});}[_0x4ce80a(0x1b6)](){var _0x4e4049=_0x4ce80a,_0x23a0ac,_0x797132;return(_0x23a0ac=(_0x797132=this[_0x4e4049(0x1c5)]()[_0x4e4049(0x1c6)])==null?void 0x0:_0x797132[_0x4e4049(0x198)])==null?[]:_0x23a0ac;}['_createFDocumentCode'](_0x3029da){return this['_injector']['createInstance'](_0x441c52,this,_0x3029da);}};function _0x137147(_0x184725){var _0x59a4a0=_0x4ce80a;return typeof _0x184725==_0x59a4a0(0x1a2)&&!!_0x184725&&typeof _0x184725[_0x59a4a0(0x1de)]==_0x59a4a0(0x1b2)&&typeof _0x184725[_0x59a4a0(0x1c1)]==_0x59a4a0(0x1b2)&&typeof _0x184725[_0x59a4a0(0x1b4)]==_0x59a4a0(0x1b2)&&_0x184725[_0x59a4a0(0x1b4)]()==='paragraph';}function _0x1bbf45(_0x4f6a95){var _0x3733ef=_0x4ce80a;return _0x4f6a95[_0x3733ef(0x1c1)]();}_0x43c084['FDocument']['extend'](_0x137f8c),Object[_0x4ce80a(0x197)](_0xa21727,'FDocumentCode',{'enumerable':!0x0,'get':function(){return _0x441c52;}});}));function _0xb889(){var _0x8afe5d=['toPrimitive','DocsCodeCancelEmptyParagraphCommand','getId','FDocument','exitCode','length','UniverCore','DocsCodeExitCommand','getRange','getCodeAt','get','replace','save','body','DocumentBlockRangeType','findCodes','_unitId','PARAGRAPH','_blockId','cancelEmptyParagraph','DocsCodeInsertCommand','7lGfGIe','includes','_createFDocumentCode','_injector','9650360AehmGg','2054418stQYly','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','startIndex','@univerjs/core','3674466OPCgFf','from','insertCode','normalizeDocsCodeConfig','CODE','decorate','getConfig','getKey','ICommandService','_getDocumentData','getCode','getCodes','SECTION_BREAK','DocsCodeModel','map','join','getCodeConfig','syncExecuteCommand','getOwnPropertyDescriptor','prototype','slice','Injector','updateConfig','defineProperty','blockRanges','text','iterator','filter','UniverProDocsCode','1457412NgJSZD','UniverProDocsCodeFacade','BLOCK_START','findCodeByText','711799GvlayM','object','cancelEmptyCodeParagraph','_getBlockRange','some','default','symbol','dataStream','endIndex','exports','DataStreamTreeTokenType','constructor','getText','call','blockId','5942125KepNAV','blockType','function','toStringTag','getType','3892600XpNBsQ','_getBlockRanges','generateRandomId','BLOCK_END'];_0xb889=function(){return _0x8afe5d;};return _0xb889();}
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0x1239(){const _0x11c9ad=['registerCommand','CommandType','UniverDocsCodePlugin','endOffset','stringify','DocContentInsertService','getUnitId','every','@univerjs/core','275508IDOTNs','nextMetadata','filter','packageName','_config','endIndex','decorate','toPrimitive','left','DocsCodeInsertCommand','asObservable','_configService','next','right','dispose','customBlocks','replaceOp','removeCode','range','complete','1124675iEIDuq','PARAGRAPH','845772qaVKhi','IResourceManagerService','UniverLicensePlugin','BLOCK_START','Subject','paragraphs','getCurrentUnitOfType','UniverCore','120phHGRN','DependentOn','model','symbol','nextDocumentData','DocSelectionManagerService','UniverProLicense','blockType','object','getSnapshot','IConfigService','rxjs','onStarting','_initResource','toStringTag','DataStreamTreeTokenType','removeUnit','cursorOffset','metadata','_docsCodeModel','20447735XojukG','@univerjs/docs','max','DocumentBlockRangeType','some','_setResource','merge','getOwnPropertyDescriptor','endTokenOffset','blockRanges','UniverInstanceType','deserialize','dataStream','endsWith','UNIVER_DOC','CODE','serialize','6pyWWTf','compose','indentEnd','deepClone','DocsCodeCancelEmptyParagraphCommand','4mmHBDb','buildExitCodeActions','previousDocumentData','getUniverDocInstance','DocsCodeUpdateCommand','slice','map','min','docs-code.config','fromEntries','BLOCK_END','buildInsertCodeActions','customRanges','Tools','setConfig','Inject','function','Injector','unitId','syncExecuteCommand','docs-code.command.cancel-empty-paragraph','ICommandService','config','_injector','paragraphStyle','from','textRuns','3572496ECZPLt','RichTextEditingMutation','prototype','string','85888RHJszp','blockId','6DLqfCY','documentData','add','startIndex','DOCS_CODE_PLUGIN','Module','getTextRanges','_commandService','indentStart','@univerjs-pro/license','docs-code.command.exit','getBody','customDecorations','DocsCodeConsumeBoundaryDeleteCommand','defineProperty','default','exports','spaceAbove','entries','getInstance','join','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','reduce','DEFAULT_CODE_CONFIG','IUniverInstanceService','set','get','_change$','Document\x20body\x20is\x20required','textStyle','DocsCodeModel','startOffset','docs-code.command.insert','tables','disposeWithMe','body','length','BuildTextUtils','JSONX','sort','commandService','forEach','type','docs-code.command.insert-below','_resources','@univerjs-pro/docs-code','spaceBelow','Disposable','docs-code.command.update','Plugin','0.25.0-insiders.20260608-e4336f7','find','COMMAND','codes','1672720iHtXut','isCodeBoundaryDelete','sectionBreaks'];_0x1239=function(){return _0x11c9ad;};return _0x1239();}function _0xacdb(_0x51e48e,_0x55753f){_0x51e48e=_0x51e48e-0x17d;const _0x123944=_0x1239();let _0xacdbff=_0x123944[_0x51e48e];return _0xacdbff;}(function(_0x221f5e,_0x4bb781){const _0x1eff0f=_0xacdb,_0x2d8dc2=_0x221f5e();while(!![]){try{const _0xdae4d9=-parseInt(_0x1eff0f(0x1bf))/0x1*(parseInt(_0x1eff0f(0x1de))/0x2)+parseInt(_0x1eff0f(0x1ba))/0x3*(-parseInt(_0x1eff0f(0x18d))/0x4)+-parseInt(_0x1eff0f(0x18b))/0x5+-parseInt(_0x1eff0f(0x1e0))/0x6*(-parseInt(_0x1eff0f(0x216))/0x7)+-parseInt(_0x1eff0f(0x1da))/0x8+parseInt(_0x1eff0f(0x222))/0x9*(-parseInt(_0x1eff0f(0x195))/0xa)+parseInt(_0x1eff0f(0x1a9))/0xb;if(_0xdae4d9===_0x4bb781)break;else _0x2d8dc2['push'](_0x2d8dc2['shift']());}catch(_0x2562be){_0x2d8dc2['push'](_0x2d8dc2['shift']());}}}(_0x1239,0x715d6),function(_0x56c175,_0x2e0fb7){const _0x3beb8c=_0xacdb;typeof exports==_0x3beb8c(0x19d)&&typeof module<'u'?_0x2e0fb7(exports,require('@univerjs/core'),require('@univerjs/docs'),require('rxjs'),require('@univerjs-pro/license')):typeof define=='function'&&define['amd']?define([_0x3beb8c(0x1f0),_0x3beb8c(0x221),_0x3beb8c(0x1aa),'rxjs',_0x3beb8c(0x1e9)],_0x2e0fb7):(_0x56c175=typeof globalThis<'u'?globalThis:_0x56c175||self,_0x2e0fb7(_0x56c175['UniverProDocsCode']={},_0x56c175[_0x3beb8c(0x194)],_0x56c175['UniverDocs'],_0x56c175[_0x3beb8c(0x1a0)],_0x56c175[_0x3beb8c(0x19b)]));}(this,function(_0x3ea430,_0x48be98,_0x1b0024,_0x377f53,_0x419294){const _0x47ee47=_0xacdb;Object[_0x47ee47(0x1ee)](_0x3ea430,Symbol[_0x47ee47(0x1a3)],{'value':_0x47ee47(0x1e5)});let _0x3fe8be={'language':'javascript','showLineNumbers':!0x1,'tabSize':0x4,'wrap':!0x0};function _0x54ec27(_0x935f35){return{..._0x3fe8be,..._0x935f35};}function _0x2516b6(_0x4ccbd0){const _0x46e305=_0x47ee47;var _0x147e72;let _0x57cb23=(_0x147e72=_0x4ccbd0==null?void 0x0:_0x4ccbd0[_0x46e305(0x215)])==null?{}:_0x147e72;return{'codes':Object[_0x46e305(0x1c8)](Object[_0x46e305(0x1f2)](_0x57cb23)[_0x46e305(0x1c5)](([_0x67e589,_0x579be1])=>[_0x67e589,_0x54ec27(_0x579be1)]))};}function _0x333fff(_0x2caf9e,_0x1f95bd,_0x12958a){let _0xc3e140=_0x2516b6(_0x2caf9e);return _0xc3e140['codes'][_0x1f95bd]=_0x54ec27({..._0xc3e140['codes'][_0x1f95bd],..._0x12958a}),_0xc3e140;}function _0x45625c(_0x399f8a,_0x50d397){const _0x165893=_0x47ee47;let _0x3ef500=_0x2516b6(_0x399f8a);return delete _0x3ef500[_0x165893(0x215)][_0x50d397],_0x3ef500;}let _0x689e00='monospace';function _0x2bed9a(_0x443917){const _0x3b1f88=_0x47ee47;var _0x758736,_0x1c0bb6,_0x35aa6b;let _0x5c080e=_0x18958c(_0x443917['documentData']),_0xa53882=_0x15ac1b(_0x5c080e),_0x5d1c29=_0x5493df(_0x443917[_0x3b1f88(0x1ff)],_0x443917['endOffset']),_0x47abee=_0x5d1c29?(_0x758736=_0xa53882[_0x3b1f88(0x1b2)])==null?void 0x0:_0x758736[_0x3b1f88(0x213)](_0x357eb1=>_0x357eb1['startIndex']===_0x5d1c29[_0x3b1f88(0x1ff)]&&_0x357eb1[_0x3b1f88(0x227)]+0x1===_0x5d1c29['endOffset']):void 0x0,{startOffset:_0xd55a0b,endOffset:_0x2a1a69}=_0x47abee?_0x5d1c29:_0x47516e(_0xa53882,_0x443917[_0x3b1f88(0x1ff)],_0x443917[_0x3b1f88(0x21c)]),_0x3abbec=_0x23ffcb(_0xa53882,_0xd55a0b,_0x2a1a69),_0x102e4c=(_0x1c0bb6=_0x47abee==null?void 0x0:_0x47abee[_0x3b1f88(0x1df)])==null?_0x443917[_0x3b1f88(0x1df)]:_0x1c0bb6,_0x381d33=_0x333fff(_0x443917['metadata'],_0x102e4c,{..._0x3fe8be,..._0x443917[_0x3b1f88(0x1d5)]});if(_0x47abee)return _0x47abee[_0x3b1f88(0x19c)]=_0x48be98['DocumentBlockRangeType']['CODE'],_0x5d5648(_0xa53882,_0xd55a0b,_0x2a1a69),_0x5859ef(_0xa53882,_0xd55a0b,_0x2a1a69,_0x3abbec),{'nextDocumentData':_0x5c080e,'nextMetadata':_0x381d33,'cursorOffset':_0xd55a0b+0x1};if(_0xd55a0b===_0x2a1a69){let _0x3b3ee4=''+_0x48be98[_0x3b1f88(0x1a4)][_0x3b1f88(0x190)]+_0x48be98[_0x3b1f88(0x1a4)][_0x3b1f88(0x18c)]+_0x48be98[_0x3b1f88(0x1a4)][_0x3b1f88(0x1c9)];return _0x48218d(_0xa53882,_0xd55a0b,_0x3b3ee4,{'paragraphs':[{'startIndex':0x1,'paragraphStyle':_0x390d25(!0x0,!0x0,_0x3abbec)}],'blockRanges':[{'blockId':_0x102e4c,'blockType':_0x48be98[_0x3b1f88(0x1ac)][_0x3b1f88(0x1b8)],'startIndex':0x0,'endIndex':_0x3b3ee4[_0x3b1f88(0x204)]-0x1}]}),{'nextDocumentData':_0x5c080e,'nextMetadata':_0x381d33,'cursorOffset':_0xd55a0b+0x1};}return _0x48218d(_0xa53882,_0x2a1a69,_0x48be98[_0x3b1f88(0x1a4)][_0x3b1f88(0x1c9)]),_0x48218d(_0xa53882,_0xd55a0b,_0x48be98[_0x3b1f88(0x1a4)][_0x3b1f88(0x190)]),_0x5859ef(_0xa53882,_0xd55a0b,_0x2a1a69+0x1,_0x3abbec),_0xa53882[_0x3b1f88(0x1b2)]=[...(_0x35aa6b=_0xa53882[_0x3b1f88(0x1b2)])==null?[]:_0x35aa6b,{'blockId':_0x102e4c,'blockType':_0x48be98[_0x3b1f88(0x1ac)][_0x3b1f88(0x1b8)],'startIndex':_0xd55a0b,'endIndex':_0x2a1a69+0x1}]['sort']((_0x2bcfda,_0xdd7db5)=>_0x2bcfda[_0x3b1f88(0x1e3)]-_0xdd7db5[_0x3b1f88(0x1e3)]),{'nextDocumentData':_0x5c080e,'nextMetadata':_0x381d33,'cursorOffset':_0xd55a0b+0x1};}function _0x5d5648(_0x2cb121,_0x45ad9b,_0x49c9ad){const _0x760701=_0x47ee47;var _0x5de51f;((_0x5de51f=_0x2cb121['paragraphs'])==null?[]:_0x5de51f)['filter'](_0x288f55=>_0x288f55[_0x760701(0x1e3)]>_0x45ad9b&&_0x288f55[_0x760701(0x1e3)]<_0x49c9ad)[_0x760701(0x209)](_0x37820b=>{const _0x3a42aa=_0x760701;var _0x585cdb;let _0x512c51={...(_0x585cdb=_0x37820b['paragraphStyle'])==null?{}:_0x585cdb};delete _0x512c51[_0x3a42aa(0x1f1)],delete _0x512c51['spaceBelow'],_0x37820b[_0x3a42aa(0x1d7)]=_0x512c51;});}function _0x5493df(_0x462df7,_0x1f9ce2){const _0x3ba263=_0x47ee47;return _0x462df7==null||_0x1f9ce2==null||_0x462df7===_0x1f9ce2?null:{'startOffset':Math[_0x3ba263(0x1c6)](_0x462df7,_0x1f9ce2),'endOffset':Math[_0x3ba263(0x1ab)](_0x462df7,_0x1f9ce2)};}function _0x43323e(_0x1e2059){const _0x5ee767=_0x47ee47;return{'nextDocumentData':_0x18958c(_0x1e2059[_0x5ee767(0x1e1)]),'nextMetadata':_0x333fff(_0x1e2059[_0x5ee767(0x1a7)],_0x1e2059['blockId'],_0x1e2059[_0x5ee767(0x1d5)]),'cursorOffset':0x0};}function _0x3abdc4(_0x4ee914){const _0x3eeeae=_0x47ee47;var _0x5a7370,_0x2b31b0;let _0x200c75=_0x18958c(_0x4ee914[_0x3eeeae(0x1e1)]),_0x377ccc=_0x15ac1b(_0x200c75),_0x49575b=_0x2c8d00(_0x377ccc,_0x4ee914[_0x3eeeae(0x1a6)]);if(!_0x49575b)return null;let _0x45fa6c=_0x12b8f2(_0x377ccc,_0x49575b),_0x567001=_0x45fa6c[_0x45fa6c[_0x3eeeae(0x204)]-0x1];if(!_0x567001||!_0x2383b6(_0x377ccc,_0x49575b,_0x567001)||_0x4ee914[_0x3eeeae(0x1a6)]<_0x567001[_0x3eeeae(0x1e3)])return null;let _0x4fde79=_0x44e1c6(_0x377ccc,_0x49575b,_0x567001);if(_0x4fde79>=_0x49575b[_0x3eeeae(0x227)])return null;_0x377ccc['dataStream']=[_0x377ccc[_0x3eeeae(0x1b5)]['slice'](0x0,_0x4fde79),_0x48be98[_0x3eeeae(0x1a4)]['BLOCK_END'],_0x377ccc['dataStream'][_0x3eeeae(0x1c4)](_0x4fde79,_0x49575b[_0x3eeeae(0x227)]),_0x377ccc['dataStream']['slice'](_0x49575b[_0x3eeeae(0x227)]+0x1)][_0x3eeeae(0x1f4)](''),_0x5a78b8(_0x377ccc['paragraphs'],_0x4fde79,_0x49575b[_0x3eeeae(0x227)],0x1),_0x5a78b8(_0x377ccc['sectionBreaks'],_0x4fde79,_0x49575b[_0x3eeeae(0x227)],0x1),_0x5a78b8(_0x377ccc[_0x3eeeae(0x186)],_0x4fde79,_0x49575b[_0x3eeeae(0x227)],0x1),_0x322ca7(_0x377ccc[_0x3eeeae(0x1d9)],_0x4fde79,_0x49575b['endIndex'],0x1),_0x44a7d5(_0x377ccc[_0x3eeeae(0x201)],_0x4fde79,_0x49575b['endIndex'],0x1),_0x44a7d5(_0x377ccc[_0x3eeeae(0x1cb)],_0x4fde79,_0x49575b[_0x3eeeae(0x227)],0x1),_0x44a7d5(_0x377ccc[_0x3eeeae(0x1ec)],_0x4fde79,_0x49575b[_0x3eeeae(0x227)],0x1),(_0x5a7370=_0x377ccc[_0x3eeeae(0x1b2)])==null||_0x5a7370['forEach'](_0x2d344d=>{const _0x481481=_0x3eeeae;_0x2d344d===_0x49575b||_0x2d344d[_0x481481(0x1df)]===_0x49575b[_0x481481(0x1df)]?_0x2d344d['endIndex']=_0x4fde79:_0x2d344d['startIndex']>=_0x4fde79&&_0x2d344d[_0x481481(0x1e3)]<_0x49575b['endIndex']&&(_0x2d344d[_0x481481(0x1e3)]+=0x1,_0x2d344d['endIndex']+=0x1);});let _0x513098=_0x12b8f2(_0x377ccc,{..._0x49575b,'endIndex':_0x4fde79});_0x513098[_0x3eeeae(0x209)]((_0x5c3759,_0x3a6775)=>{const _0x4fbf6c=_0x3eeeae;var _0x576b4b;_0x5c3759[_0x4fbf6c(0x1d7)]={...(_0x576b4b=_0x5c3759[_0x4fbf6c(0x1d7)])==null?{}:_0x576b4b,..._0x390d25(_0x3a6775===0x0,_0x3a6775===_0x513098[_0x4fbf6c(0x204)]-0x1)};});let _0x323bf9=(_0x2b31b0=_0x377ccc[_0x3eeeae(0x192)])==null?void 0x0:_0x2b31b0[_0x3eeeae(0x213)](_0x48df1d=>_0x48df1d['startIndex']===_0x4fde79+0x1);return _0x323bf9&&(_0x323bf9[_0x3eeeae(0x1d7)]=_0x5e077b(_0x323bf9['paragraphStyle'])),{'nextDocumentData':_0x200c75,'cursorOffset':_0x4fde79+0x1};}function _0x4d23c4(_0x21dc66){const _0x3751d1=_0x47ee47;let _0x3af9b2=_0x18958c(_0x21dc66[_0x3751d1(0x1e1)]),_0x56a3d1=_0x15ac1b(_0x3af9b2),_0x4ae5d9=_0x2c8d00(_0x56a3d1,_0x21dc66[_0x3751d1(0x1a6)]);return _0x4ae5d9&&_0x4c732b(_0x3af9b2,_0x56a3d1,_0x4ae5d9,_0x21dc66[_0x3751d1(0x1a6)],_0x21dc66['paragraphStartIndex'])||null;}function _0x4c732b(_0x165e69,_0x3c7e4b,_0x48d628,_0x30467c,_0x645c94){const _0x3730bf=_0x47ee47;let _0x2bbd9a=_0x24b0dc(_0x3c7e4b,_0x48d628,_0x30467c,_0x645c94);if(!_0x2bbd9a)return null;let _0x571054=_0x2bbd9a[_0x3730bf(0x1b1)]-0x1;return _0x3a55bd(_0x3c7e4b,_0x2bbd9a['paragraph']['startIndex'],_0x2bbd9a['paragraph'][_0x3730bf(0x1e3)]+0x1),{'nextDocumentData':_0x165e69,'cursorOffset':_0x571054};}function _0xc9226b(_0x30b9a0,_0x47487f){const _0x14157e=_0x47ee47;var _0x2d5a94;return _0x30b9a0==null||(_0x2d5a94=_0x30b9a0[_0x14157e(0x1b2)])==null?void 0x0:_0x2d5a94['find'](_0x9cc55a=>_0x9cc55a[_0x14157e(0x19c)]===_0x48be98[_0x14157e(0x1ac)][_0x14157e(0x1b8)]&&_0x9cc55a[_0x14157e(0x1e3)]<=_0x47487f&&_0x47487f<=_0x9cc55a[_0x14157e(0x227)]);}function _0x447b3c(_0x462ddc){const _0x3dcc0e=_0x47ee47;var _0x3ab237;let _0x1e72d0=_0x462ddc[_0x3dcc0e(0x1e1)]['body'];if(!_0x1e72d0)return!0x1;let _0x24be2b=_0x462ddc['direction']===_0x3dcc0e(0x17f)?_0x462ddc[_0x3dcc0e(0x1a6)]-0x1:_0x462ddc[_0x3dcc0e(0x1a6)],_0x12bf5e=_0x462ddc['direction']===_0x3dcc0e(0x184)?_0x462ddc['cursorOffset']+0x1:_0x24be2b;return((_0x3ab237=_0x1e72d0[_0x3dcc0e(0x1b2)])==null?[]:_0x3ab237)[_0x3dcc0e(0x1ad)](_0x206a52=>_0x206a52[_0x3dcc0e(0x19c)]===_0x48be98[_0x3dcc0e(0x1ac)][_0x3dcc0e(0x1b8)]?_0x24be2b===_0x206a52[_0x3dcc0e(0x1e3)]||_0x24be2b===_0x206a52[_0x3dcc0e(0x227)]||_0x12bf5e===_0x206a52[_0x3dcc0e(0x1e3)]||_0x12bf5e===_0x206a52[_0x3dcc0e(0x227)]:!0x1);}function _0x2c8d00(_0x2aa7b7,_0x3f1b0b){var _0x24da52;return(_0x24da52=_0x2aa7b7['blockRanges'])==null?void 0x0:_0x24da52['find'](_0xe548c=>{const _0x2ca19f=_0xacdb;let _0x4cfe21=_0xb96215(_0x2aa7b7,_0xe548c);return _0xe548c['blockType']===_0x48be98[_0x2ca19f(0x1ac)][_0x2ca19f(0x1b8)]&&_0xe548c[_0x2ca19f(0x1e3)]<=_0x3f1b0b&&_0x3f1b0b<=_0x4cfe21+0x2;});}function _0x390d25(_0x34c74b,_0x4e4739,_0x58a381=!0x1){return{'indentEnd':{'v':0x14},'indentStart':{'v':0x14},..._0x34c74b&&_0x58a381?{'spaceAbove':{'v':0x8}}:{},'textStyle':{'ff':_0x689e00,'fs':0xc}};}function _0x5859ef(_0x2ec1ff,_0x107513,_0x1d9e81,_0x35762e=!0x1){const _0x2acf8f=_0x47ee47;var _0x413faa;let _0x2253c7=((_0x413faa=_0x2ec1ff['paragraphs'])==null?[]:_0x413faa)[_0x2acf8f(0x224)](_0x5deb77=>_0x5deb77[_0x2acf8f(0x1e3)]>_0x107513&&_0x5deb77[_0x2acf8f(0x1e3)]<_0x1d9e81);_0x2253c7[_0x2acf8f(0x209)]((_0xc31afb,_0x3799d5)=>{const _0xb7778e=_0x2acf8f;var _0x5d4dbf;_0xc31afb[_0xb7778e(0x1d7)]={...(_0x5d4dbf=_0xc31afb[_0xb7778e(0x1d7)])==null?{}:_0x5d4dbf,..._0x390d25(_0x3799d5===0x0,_0x3799d5===_0x2253c7[_0xb7778e(0x204)]-0x1,_0x35762e)};});}function _0x5e077b(_0x40b250){const _0x49db56=_0x47ee47;var _0x3f1774,_0x59dc0f;let _0x5f3c26={..._0x40b250==null?{}:_0x40b250};return delete _0x5f3c26[_0x49db56(0x1bc)],delete _0x5f3c26[_0x49db56(0x1e8)],delete _0x5f3c26[_0x49db56(0x1f1)],delete _0x5f3c26[_0x49db56(0x20e)],((_0x3f1774=_0x5f3c26[_0x49db56(0x1fd)])==null?void 0x0:_0x3f1774['ff'])===_0x689e00&&((_0x59dc0f=_0x5f3c26[_0x49db56(0x1fd)])==null?void 0x0:_0x59dc0f['fs'])===0xc&&delete _0x5f3c26['textStyle'],_0x5f3c26;}function _0x12b8f2(_0x2efd00,_0x5f2e0b){const _0x3b638e=_0x47ee47;var _0x377160;let _0x55bad8=_0xb96215(_0x2efd00,_0x5f2e0b);return((_0x377160=_0x2efd00[_0x3b638e(0x192)])==null?[]:_0x377160)[_0x3b638e(0x224)](_0x5a592c=>_0x5a592c[_0x3b638e(0x1e3)]>_0x5f2e0b[_0x3b638e(0x1e3)]&&_0x5a592c['startIndex']<_0x55bad8);}function _0x2383b6(_0x43d628,_0x217ea6,_0x4c5167){const _0xc2f2b8=_0x47ee47;let _0x562855=_0x44e1c6(_0x43d628,_0x217ea6,_0x4c5167),_0x27b135=_0x43d628[_0xc2f2b8(0x1b5)][_0xc2f2b8(0x1c4)](_0x562855,_0x4c5167[_0xc2f2b8(0x1e3)]);return Array[_0xc2f2b8(0x1d8)](_0x27b135)[_0xc2f2b8(0x220)](_0x33c290=>_0x33c290===_0x48be98[_0xc2f2b8(0x1a4)][_0xc2f2b8(0x190)]||_0x33c290===_0x48be98[_0xc2f2b8(0x1a4)][_0xc2f2b8(0x1c9)]);}function _0x18958c(_0x1c9488){const _0x1ebac4=_0x47ee47;return _0x48be98[_0x1ebac4(0x1cc)][_0x1ebac4(0x1bd)](_0x1c9488);}function _0x15ac1b(_0x49133a){const _0x21d069=_0x47ee47;if(!_0x49133a[_0x21d069(0x203)])throw Error(_0x21d069(0x1fc));return _0x49133a[_0x21d069(0x203)];}function _0x47516e(_0x54a3b4,_0x41f75d,_0x37e492){const _0x539d51=_0x47ee47;if(_0x41f75d==null||_0x37e492==null){let _0x179e3f=_0x3a8858(_0x54a3b4);return{'startOffset':_0x179e3f,'endOffset':_0x179e3f};}let _0x1cb4e9=Math[_0x539d51(0x1c6)](_0x41f75d,_0x37e492),_0x3d046c=Math['max'](_0x41f75d,_0x37e492);return _0x1cb4e9===_0x3d046c?{'startOffset':_0x1cb4e9,'endOffset':_0x1cb4e9}:_0x25f239(_0x54a3b4,_0x1cb4e9,_0x3d046c);}function _0x3a8858(_0x43b447){const _0x2d72e4=_0x47ee47;return _0x43b447['dataStream'][_0x2d72e4(0x1b6)](_0x48be98[_0x2d72e4(0x1a4)]['SECTION_BREAK'])?Math[_0x2d72e4(0x1ab)](0x0,_0x43b447[_0x2d72e4(0x1b5)][_0x2d72e4(0x204)]-0x1):_0x43b447[_0x2d72e4(0x1b5)][_0x2d72e4(0x204)];}function _0x23ffcb(_0x5c1c1e,_0x2e7378,_0x5e5646){const _0x5db7a1=_0x47ee47;var _0x22184d;let _0x91a438=Math['min'](_0x2e7378,_0x5e5646),_0x4ae3db=Math[_0x5db7a1(0x1ab)](_0x2e7378,_0x5e5646);return!!((_0x22184d=_0x5c1c1e[_0x5db7a1(0x201)])!=null&&_0x22184d['some'](_0x5b995c=>_0x91a438>_0x5b995c[_0x5db7a1(0x1e3)]&&_0x91a438<_0x5b995c['endIndex']||_0x4ae3db>_0x5b995c[_0x5db7a1(0x1e3)]&&_0x4ae3db<_0x5b995c['endIndex']||_0x91a438<=_0x5b995c[_0x5db7a1(0x1e3)]&&_0x4ae3db>=_0x5b995c[_0x5db7a1(0x227)]));}function _0x25f239(_0x59c618,_0x82200f,_0x4b936c){const _0x247ce1=_0x47ee47;var _0x209f71,_0x1279ca;let _0x1b0ecc=[...(_0x209f71=_0x59c618['paragraphs'])==null?[]:_0x209f71][_0x247ce1(0x207)]((_0x3772a3,_0x2a33bb)=>_0x3772a3['startIndex']-_0x2a33bb[_0x247ce1(0x1e3)]),_0x2ef122=_0x1b0ecc[_0x247ce1(0x213)]((_0x542727,_0x3e465b)=>(_0x3e465b===0x0?0x0:_0x1b0ecc[_0x3e465b-0x1][_0x247ce1(0x1e3)]+0x1)<=_0x82200f&&_0x82200f<=_0x542727[_0x247ce1(0x1e3)]),_0x2462fd=(_0x1279ca=_0x1b0ecc['find'](_0x148949=>_0x148949[_0x247ce1(0x1e3)]>=_0x4b936c-0x1))==null?_0x1b0ecc[_0x1b0ecc['length']-0x1]:_0x1279ca;return{'startOffset':_0x2ef122?_0x27a356(_0x1b0ecc,_0x2ef122):_0x82200f,'endOffset':_0x2462fd?_0x2462fd[_0x247ce1(0x1e3)]+0x1:_0x4b936c};}function _0x27a356(_0x37a64f,_0x1498ca){let _0x3dfdb6=_0x37a64f['indexOf'](_0x1498ca);return _0x3dfdb6>0x0?_0x37a64f[_0x3dfdb6-0x1]['startIndex']+0x1:0x0;}function _0x44e1c6(_0x4df44c,_0x1b9605,_0x28f1a1){const _0x11be32=_0x47ee47;var _0x1f12bd;return Math[_0x11be32(0x1ab)](_0x27a356((_0x1f12bd=_0x4df44c[_0x11be32(0x192)])==null?[]:_0x1f12bd,_0x28f1a1),_0x1b9605[_0x11be32(0x1e3)]+0x1);}function _0xb96215(_0x4eb9df,_0x38e2ff){const _0x12ed20=_0x47ee47;return _0x4eb9df[_0x12ed20(0x1b5)][_0x38e2ff['endIndex']]===_0x48be98['DataStreamTreeTokenType'][_0x12ed20(0x1c9)]?_0x38e2ff['endIndex']:_0x4eb9df[_0x12ed20(0x1b5)][_0x38e2ff[_0x12ed20(0x227)]+0x1]===_0x48be98[_0x12ed20(0x1a4)][_0x12ed20(0x1c9)]?_0x38e2ff['endIndex']+0x1:_0x38e2ff[_0x12ed20(0x227)];}function _0x24b0dc(_0x1d7da9,_0x1ebe64,_0x564fbb,_0x17c3bf){const _0x150805=_0x47ee47;var _0x337a1e,_0x26310d;let _0x1ec285=_0xb96215(_0x1d7da9,_0x1ebe64),_0x383cc5=((_0x337a1e=_0x1d7da9[_0x150805(0x192)])==null?[]:_0x337a1e)[_0x150805(0x213)](_0x3d70f2=>_0x3d70f2[_0x150805(0x1e3)]===_0x1ec285+0x1);if(!_0x383cc5||_0x17c3bf!=null&&_0x383cc5[_0x150805(0x1e3)]!==_0x17c3bf||_0x564fbb<_0x1ec285||_0x564fbb>_0x383cc5[_0x150805(0x1e3)]+0x1||_0x1d7da9['dataStream'][_0x383cc5[_0x150805(0x1e3)]]!==_0x48be98[_0x150805(0x1a4)][_0x150805(0x18c)])return null;let _0x490440=_0x27a356((_0x26310d=_0x1d7da9[_0x150805(0x192)])==null?[]:_0x26310d,_0x383cc5),_0x1fe88e=_0x1d7da9[_0x150805(0x1b5)][_0x150805(0x1c4)](_0x490440,_0x383cc5['startIndex']);return Array[_0x150805(0x1d8)](_0x1fe88e)[_0x150805(0x220)](_0xc86cbd=>_0xc86cbd===_0x48be98['DataStreamTreeTokenType'][_0x150805(0x1c9)])?{'paragraph':_0x383cc5,'endTokenOffset':_0x1ec285}:null;}function _0x48218d(_0x2121a4,_0x7461cc,_0x355d5b,_0x106b02={}){const _0x47d88e=_0x47ee47;var _0xef0dde,_0x9e3523;if(_0x355d5b){if(_0x2121a4['dataStream']=''+_0x2121a4[_0x47d88e(0x1b5)][_0x47d88e(0x1c4)](0x0,_0x7461cc)+_0x355d5b+_0x2121a4['dataStream'][_0x47d88e(0x1c4)](_0x7461cc),_0x49eeaa(_0x2121a4,_0x7461cc,_0x355d5b['length']),(_0xef0dde=_0x106b02[_0x47d88e(0x192)])!=null&&_0xef0dde[_0x47d88e(0x204)]){var _0xcd9ba4;_0x2121a4[_0x47d88e(0x192)]=[...(_0xcd9ba4=_0x2121a4[_0x47d88e(0x192)])==null?[]:_0xcd9ba4,..._0x106b02['paragraphs'][_0x47d88e(0x1c5)](_0x323973=>({..._0x323973,'startIndex':_0x323973[_0x47d88e(0x1e3)]+_0x7461cc}))][_0x47d88e(0x207)]((_0x355255,_0x58fbaf)=>_0x355255[_0x47d88e(0x1e3)]-_0x58fbaf['startIndex']);}if((_0x9e3523=_0x106b02[_0x47d88e(0x1b2)])!=null&&_0x9e3523[_0x47d88e(0x204)]){var _0x3a35ea;_0x2121a4[_0x47d88e(0x1b2)]=[...(_0x3a35ea=_0x2121a4[_0x47d88e(0x1b2)])==null?[]:_0x3a35ea,..._0x106b02[_0x47d88e(0x1b2)]['map'](_0x5e5c56=>({..._0x5e5c56,'startIndex':_0x5e5c56[_0x47d88e(0x1e3)]+_0x7461cc,'endIndex':_0x5e5c56[_0x47d88e(0x227)]+_0x7461cc}))][_0x47d88e(0x207)]((_0x2de386,_0x5a5af4)=>_0x2de386[_0x47d88e(0x1e3)]-_0x5a5af4['startIndex']);}}}function _0x3a55bd(_0x308448,_0x2dd1af,_0x373762){const _0x56eb76=_0x47ee47;let _0x5ea55f=_0x373762-_0x2dd1af;_0x308448[_0x56eb76(0x1b5)]=''+_0x308448['dataStream'][_0x56eb76(0x1c4)](0x0,_0x2dd1af)+_0x308448[_0x56eb76(0x1b5)]['slice'](_0x373762),_0xeb9c(_0x308448,_0x2dd1af,_0x5ea55f);}function _0x49eeaa(_0xbb0515,_0x2e9731,_0x570c6f){const _0x5b5ae0=_0x47ee47;_0xbb0515[_0x5b5ae0(0x192)]=_0x49f5b4(_0xbb0515[_0x5b5ae0(0x192)],_0x2e9731,_0x570c6f),_0xbb0515['sectionBreaks']=_0x49f5b4(_0xbb0515['sectionBreaks'],_0x2e9731,_0x570c6f),_0xbb0515[_0x5b5ae0(0x186)]=_0x49f5b4(_0xbb0515[_0x5b5ae0(0x186)],_0x2e9731,_0x570c6f),_0xbb0515['textRuns']=_0x4b0b11(_0xbb0515['textRuns'],_0x2e9731,_0x570c6f),_0xbb0515[_0x5b5ae0(0x201)]=_0x2e9012(_0xbb0515['tables'],_0x2e9731,_0x570c6f),_0xbb0515[_0x5b5ae0(0x1cb)]=_0x2e9012(_0xbb0515['customRanges'],_0x2e9731,_0x570c6f),_0xbb0515[_0x5b5ae0(0x1ec)]=_0x2e9012(_0xbb0515[_0x5b5ae0(0x1ec)],_0x2e9731,_0x570c6f),_0xbb0515['blockRanges']=_0x2e9012(_0xbb0515[_0x5b5ae0(0x1b2)],_0x2e9731,_0x570c6f);}function _0xeb9c(_0x1c0f7f,_0x53c6b8,_0xe14006){const _0x904bd6=_0x47ee47;var _0x126081,_0x30afb9;_0x1c0f7f[_0x904bd6(0x192)]=_0x2337f4(_0x1c0f7f['paragraphs'],_0x53c6b8,_0xe14006),_0x1c0f7f[_0x904bd6(0x218)]=_0x2337f4(_0x1c0f7f[_0x904bd6(0x218)],_0x53c6b8,_0xe14006),_0x1c0f7f[_0x904bd6(0x186)]=_0x2337f4(_0x1c0f7f[_0x904bd6(0x186)],_0x53c6b8,_0xe14006),_0x1c0f7f['textRuns']=(_0x126081=_0x3ad4fd((_0x30afb9=_0x1c0f7f['textRuns'])==null?void 0x0:_0x30afb9[_0x904bd6(0x1c5)](_0x3ca52a=>({..._0x3ca52a,'startIndex':_0x3ca52a['st'],'endIndex':_0x3ca52a['ed']})),_0x53c6b8,_0xe14006))==null?void 0x0:_0x126081['map'](_0x1959e4=>{let {startIndex:_0x5359cb,endIndex:_0x44aa19,..._0x2bb9e0}=_0x1959e4;return{..._0x2bb9e0,'st':_0x5359cb,'ed':_0x44aa19};}),_0x1c0f7f[_0x904bd6(0x201)]=_0x3ad4fd(_0x1c0f7f[_0x904bd6(0x201)],_0x53c6b8,_0xe14006),_0x1c0f7f['customRanges']=_0x3ad4fd(_0x1c0f7f['customRanges'],_0x53c6b8,_0xe14006),_0x1c0f7f[_0x904bd6(0x1ec)]=_0x3ad4fd(_0x1c0f7f[_0x904bd6(0x1ec)],_0x53c6b8,_0xe14006),_0x1c0f7f['blockRanges']=_0x3ad4fd(_0x1c0f7f[_0x904bd6(0x1b2)],_0x53c6b8,_0xe14006);}function _0x49f5b4(_0x230018,_0x5d07b7,_0xef624e){const _0x260c28=_0x47ee47;return _0x230018==null?void 0x0:_0x230018[_0x260c28(0x1c5)](_0x261f05=>_0x261f05[_0x260c28(0x1e3)]>=_0x5d07b7?{..._0x261f05,'startIndex':_0x261f05['startIndex']+_0xef624e}:_0x261f05);}function _0x2337f4(_0x10c96f,_0x2af32a,_0x3a240){const _0x393855=_0x47ee47;let _0x3de6f1=_0x2af32a+_0x3a240;return _0x10c96f==null?void 0x0:_0x10c96f[_0x393855(0x1c5)](_0xe1ca=>_0xe1ca['startIndex']>=_0x2af32a&&_0xe1ca[_0x393855(0x1e3)]<_0x3de6f1?null:_0xe1ca[_0x393855(0x1e3)]>=_0x3de6f1?{..._0xe1ca,'startIndex':_0xe1ca[_0x393855(0x1e3)]-_0x3a240}:_0xe1ca)[_0x393855(0x224)](_0x1396a2=>_0x1396a2!=null);}function _0x4b0b11(_0x117fb4,_0x48854d,_0x2d1c78){return _0x117fb4==null?void 0x0:_0x117fb4['map'](_0x4151d9=>_0x4151d9['st']>=_0x48854d?{..._0x4151d9,'st':_0x4151d9['st']+_0x2d1c78,'ed':_0x4151d9['ed']+_0x2d1c78}:_0x4151d9['ed']>_0x48854d?{..._0x4151d9,'ed':_0x4151d9['ed']+_0x2d1c78}:_0x4151d9);}function _0x2e9012(_0x3ee604,_0x4050f1,_0x174f9a){const _0x5bc986=_0x47ee47;return _0x3ee604==null?void 0x0:_0x3ee604[_0x5bc986(0x1c5)](_0x1bdfa4=>_0x1bdfa4[_0x5bc986(0x1e3)]>=_0x4050f1?{..._0x1bdfa4,'startIndex':_0x1bdfa4[_0x5bc986(0x1e3)]+_0x174f9a,'endIndex':_0x1bdfa4[_0x5bc986(0x227)]+_0x174f9a}:_0x1bdfa4['endIndex']>=_0x4050f1?{..._0x1bdfa4,'endIndex':_0x1bdfa4[_0x5bc986(0x227)]+_0x174f9a}:_0x1bdfa4);}function _0x3ad4fd(_0x139a16,_0x2c250d,_0x3a7ca8){const _0x3db3b1=_0x47ee47;let _0x14967b=_0x2c250d+_0x3a7ca8;return _0x139a16==null?void 0x0:_0x139a16['map'](_0x421d95=>_0x421d95[_0x3db3b1(0x1e3)]>=_0x2c250d&&_0x421d95['endIndex']<_0x14967b?null:_0x421d95[_0x3db3b1(0x1e3)]>=_0x14967b?{..._0x421d95,'startIndex':_0x421d95[_0x3db3b1(0x1e3)]-_0x3a7ca8,'endIndex':_0x421d95[_0x3db3b1(0x227)]-_0x3a7ca8}:_0x421d95['endIndex']>=_0x2c250d?{..._0x421d95,'startIndex':_0x421d95[_0x3db3b1(0x1e3)]<_0x2c250d?_0x421d95[_0x3db3b1(0x1e3)]:_0x2c250d,'endIndex':Math[_0x3db3b1(0x1ab)](_0x2c250d,_0x421d95[_0x3db3b1(0x227)]-_0x3a7ca8)}:_0x421d95)[_0x3db3b1(0x224)](_0x6d43dc=>_0x6d43dc!=null);}function _0x5a78b8(_0x21c7aa,_0x3c8e97,_0x30b8dd,_0x7be34b){_0x21c7aa==null||_0x21c7aa['forEach'](_0x4c77a6=>{const _0x2ea846=_0xacdb;_0x4c77a6[_0x2ea846(0x1e3)]>=_0x3c8e97&&_0x4c77a6['startIndex']<_0x30b8dd&&(_0x4c77a6[_0x2ea846(0x1e3)]+=_0x7be34b);});}function _0x322ca7(_0x3a9ded,_0x3591d6,_0x35b0a1,_0x6b0e95){const _0x11980d=_0x47ee47;_0x3a9ded==null||_0x3a9ded[_0x11980d(0x209)](_0x42b8a6=>{_0x42b8a6['st']>=_0x3591d6&&_0x42b8a6['st']<_0x35b0a1?(_0x42b8a6['st']+=_0x6b0e95,_0x42b8a6['ed']+=_0x6b0e95):_0x42b8a6['ed']>_0x3591d6&&_0x42b8a6['ed']<_0x35b0a1&&(_0x42b8a6['ed']+=_0x6b0e95);});}function _0x44a7d5(_0x259813,_0x22dc6a,_0x431571,_0x64f47c){_0x259813==null||_0x259813['forEach'](_0x509e86=>{const _0x501eb1=_0xacdb;_0x509e86[_0x501eb1(0x1e3)]>=_0x22dc6a&&_0x509e86[_0x501eb1(0x1e3)]<_0x431571?(_0x509e86['startIndex']+=_0x64f47c,_0x509e86[_0x501eb1(0x227)]+=_0x64f47c):_0x509e86[_0x501eb1(0x227)]>_0x22dc6a&&_0x509e86[_0x501eb1(0x227)]<_0x431571&&(_0x509e86['endIndex']+=_0x64f47c);});}function _0x2dfd67(_0xa8f51){'@babel/helpers - typeof';const _0x4eddbd=_0x47ee47;return _0x2dfd67=typeof Symbol==_0x4eddbd(0x1cf)&&typeof Symbol['iterator']==_0x4eddbd(0x198)?function(_0xd1a0f8){return typeof _0xd1a0f8;}:function(_0x446ccf){const _0x134e2b=_0x4eddbd;return _0x446ccf&&typeof Symbol==_0x134e2b(0x1cf)&&_0x446ccf['constructor']===Symbol&&_0x446ccf!==Symbol[_0x134e2b(0x1dc)]?_0x134e2b(0x198):typeof _0x446ccf;},_0x2dfd67(_0xa8f51);}function _0x2cd1cb(_0x131667,_0x23d542){const _0x38f4a9=_0x47ee47;if(_0x2dfd67(_0x131667)!='object'||!_0x131667)return _0x131667;var _0x56ac48=_0x131667[Symbol[_0x38f4a9(0x17e)]];if(_0x56ac48!==void 0x0){var _0x57aa86=_0x56ac48['call'](_0x131667,_0x23d542||_0x38f4a9(0x1ef));if(_0x2dfd67(_0x57aa86)!=_0x38f4a9(0x19d))return _0x57aa86;throw TypeError(_0x38f4a9(0x1f5));}return(_0x23d542===_0x38f4a9(0x1dd)?String:Number)(_0x131667);}function _0x363f54(_0x500783){const _0x5a215b=_0x47ee47;var _0x341c73=_0x2cd1cb(_0x500783,_0x5a215b(0x1dd));return _0x2dfd67(_0x341c73)==_0x5a215b(0x198)?_0x341c73:_0x341c73+'';}function _0x44c135(_0x1af2c4,_0x59622f,_0x243087){return(_0x59622f=_0x363f54(_0x59622f))in _0x1af2c4?Object['defineProperty'](_0x1af2c4,_0x59622f,{'value':_0x243087,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x1af2c4[_0x59622f]=_0x243087,_0x1af2c4;}var _0xde57e5=class extends _0x48be98[_0x47ee47(0x20f)]{constructor(..._0x36ca31){const _0x7c6357=_0x47ee47;super(..._0x36ca31),_0x44c135(this,_0x7c6357(0x20c),new Map()),_0x44c135(this,_0x7c6357(0x1fb),new _0x377f53[(_0x7c6357(0x191))]()),_0x44c135(this,'change$',this[_0x7c6357(0x1fb)][_0x7c6357(0x181)]());}['getCodeConfig'](_0x5a7ace,_0x170fe2){const _0x238028=_0x47ee47;return _0x2516b6(this[_0x238028(0x20c)][_0x238028(0x1fa)](_0x5a7ace))[_0x238028(0x215)][_0x170fe2];}['setCodeConfig'](_0x5c330c,_0x3b5fd5,_0x59b87b){const _0xbd92ab=_0x47ee47;this['_setResource'](_0x5c330c,_0x3b5fd5,_0x333fff(this[_0xbd92ab(0x20c)][_0xbd92ab(0x1fa)](_0x5c330c),_0x3b5fd5,_0x59b87b));}[_0x47ee47(0x188)](_0x41c99b,_0x2ec38a){const _0x391d06=_0x47ee47;this[_0x391d06(0x1ae)](_0x41c99b,_0x2ec38a,_0x45625c(this['_resources'][_0x391d06(0x1fa)](_0x41c99b),_0x2ec38a));}[_0x47ee47(0x1b9)](_0x397755){const _0x6257f6=_0x47ee47;return _0x2516b6(this[_0x6257f6(0x20c)]['get'](_0x397755));}['deserialize'](_0x2159e9,_0x43a82e){const _0x43caa3=_0x47ee47;this[_0x43caa3(0x20c)][_0x43caa3(0x1f9)](_0x2159e9,_0x2516b6(_0x43a82e)),this[_0x43caa3(0x1fb)][_0x43caa3(0x183)]({'unitId':_0x2159e9});}['removeUnit'](_0x1c9ff3){const _0x3657b7=_0x47ee47;this[_0x3657b7(0x20c)]['delete'](_0x1c9ff3),this['_change$'][_0x3657b7(0x183)]({'unitId':_0x1c9ff3});}[_0x47ee47(0x185)](){const _0x43de03=_0x47ee47;super['dispose'](),this[_0x43de03(0x20c)]['clear'](),this['_change$'][_0x43de03(0x18a)]();}[_0x47ee47(0x1ae)](_0x4820cd,_0x3428f8,_0x3a35c8){const _0x370bda=_0x47ee47;this[_0x370bda(0x20c)]['set'](_0x4820cd,_0x3a35c8),this[_0x370bda(0x1fb)][_0x370bda(0x183)]({'unitId':_0x4820cd,'blockId':_0x3428f8});}};let _0x98e86b={'id':_0x47ee47(0x20b),'type':_0x48be98[_0x47ee47(0x21a)][_0x47ee47(0x214)],'handler':_0x13a122=>{const _0x2f6259=_0x47ee47;let _0x305e28=_0x1a1157(_0x13a122);if(_0x305e28)return _0x13a122[_0x2f6259(0x1fa)](_0x48be98[_0x2f6259(0x1d4)])[_0x2f6259(0x1d2)](_0x2857e9['id'],{'startOffset':_0x305e28[_0x2f6259(0x1ff)],'endOffset':_0x305e28[_0x2f6259(0x21c)],'unitId':_0x305e28['unitId']});let _0x546ce5=_0x5036bb(_0x13a122);if(!_0x546ce5)return!0x1;let _0x40e584=_0x546ce5[_0x2f6259(0x1e3)]+0x1;return _0x13a122[_0x2f6259(0x1fa)](_0x48be98['ICommandService'])[_0x2f6259(0x1d2)](_0x2857e9['id'],{'startOffset':_0x40e584,'endOffset':_0x40e584});}},_0x29a99a={'id':'docs-code.command.consume-boundary-delete','type':_0x48be98[_0x47ee47(0x21a)][_0x47ee47(0x214)],'handler':()=>!0x0},_0x2857e9={'id':_0x47ee47(0x200),'type':_0x48be98['CommandType']['COMMAND'],'handler':(_0x161968,_0x1dcdd1)=>{const _0x55a1f0=_0x47ee47;var _0x41c3b6,_0x4b556c,_0x2bb4db;let _0x43393c=_0x4214e5(_0x161968,_0x1dcdd1==null?void 0x0:_0x1dcdd1[_0x55a1f0(0x1d1)]);if(!_0x43393c)return!0x1;let _0x1125ed=_0xcfbec4(_0x161968),_0x262dc5=_0x2bed9a({'blockId':(_0x41c3b6=_0x1dcdd1==null?void 0x0:_0x1dcdd1[_0x55a1f0(0x1df)])==null?(0x0,_0x48be98['generateRandomId'])(0x6):_0x41c3b6,'config':_0x1dcdd1==null?void 0x0:_0x1dcdd1[_0x55a1f0(0x1d5)],'documentData':_0x43393c[_0x55a1f0(0x1c1)],'endOffset':(_0x4b556c=_0x1dcdd1==null?void 0x0:_0x1dcdd1[_0x55a1f0(0x21c)])==null?_0x1125ed==null?void 0x0:_0x1125ed[_0x55a1f0(0x21c)]:_0x4b556c,'metadata':_0x43393c['model']['serialize'](_0x43393c[_0x55a1f0(0x1d1)]),'startOffset':(_0x2bb4db=_0x1dcdd1==null?void 0x0:_0x1dcdd1[_0x55a1f0(0x1ff)])==null?_0x1125ed==null?void 0x0:_0x1125ed['startOffset']:_0x2bb4db}),_0x2b3222=_0xa0fbf4(_0x43393c[_0x55a1f0(0x208)],_0x43393c[_0x55a1f0(0x1d1)],_0x43393c[_0x55a1f0(0x1c1)],_0x262dc5[_0x55a1f0(0x199)],_0x262dc5[_0x55a1f0(0x1a6)]);return _0x2b3222&&_0x262dc5[_0x55a1f0(0x223)]&&_0x43393c[_0x55a1f0(0x197)][_0x55a1f0(0x1b4)](_0x43393c['unitId'],_0x262dc5[_0x55a1f0(0x223)]),_0x2b3222;}},_0x4d0a92={'id':_0x47ee47(0x210),'type':_0x48be98[_0x47ee47(0x21a)][_0x47ee47(0x214)],'handler':(_0x50477a,_0x3684c3)=>{const _0x13d415=_0x47ee47;if(!_0x3684c3)return!0x1;let _0x343a3f=_0x4214e5(_0x50477a,_0x3684c3['unitId']);if(!_0x343a3f)return!0x1;let _0x58dcc6=_0x43323e({'blockId':_0x3684c3['blockId'],'config':_0x3684c3[_0x13d415(0x1d5)],'documentData':_0x343a3f[_0x13d415(0x1c1)],'metadata':_0x343a3f[_0x13d415(0x197)]['serialize'](_0x343a3f['unitId'])});return _0x58dcc6[_0x13d415(0x223)]&&_0x343a3f[_0x13d415(0x197)][_0x13d415(0x1b4)](_0x343a3f[_0x13d415(0x1d1)],_0x58dcc6['nextMetadata']),!0x0;}},_0x1586a6={'id':_0x47ee47(0x1ea),'type':_0x48be98[_0x47ee47(0x21a)][_0x47ee47(0x214)],'handler':(_0x57f3ba,_0x500edd)=>{const _0x1cece0=_0x47ee47;var _0x13f457,_0x1e033a;let _0x3c2249=_0x4214e5(_0x57f3ba,_0x500edd==null?void 0x0:_0x500edd['unitId']);if(!_0x3c2249)return!0x1;let _0x11cc82=(_0x13f457=_0x500edd==null?void 0x0:_0x500edd['cursorOffset'])==null?(_0x1e033a=_0xcfbec4(_0x57f3ba))==null?void 0x0:_0x1e033a[_0x1cece0(0x1ff)]:_0x13f457;if(_0x11cc82==null)return!0x1;let _0x26959a=_0x3abdc4({'cursorOffset':_0x11cc82,'documentData':_0x3c2249[_0x1cece0(0x1c1)]});return _0x26959a?_0xa0fbf4(_0x3c2249[_0x1cece0(0x208)],_0x3c2249['unitId'],_0x3c2249[_0x1cece0(0x1c1)],_0x26959a[_0x1cece0(0x199)],_0x26959a[_0x1cece0(0x1a6)]):!0x1;}},_0x1539b={'id':_0x47ee47(0x1d3),'type':_0x48be98['CommandType'][_0x47ee47(0x214)],'handler':(_0x1d1e7f,_0x2b24f1)=>{const _0x5ec142=_0x47ee47;var _0x326fc9,_0x4b869b;let _0x4ccf46=_0x4214e5(_0x1d1e7f,_0x2b24f1==null?void 0x0:_0x2b24f1[_0x5ec142(0x1d1)]);if(!_0x4ccf46)return!0x1;let _0x10182d=(_0x326fc9=_0x2b24f1==null?void 0x0:_0x2b24f1[_0x5ec142(0x1a6)])==null?(_0x4b869b=_0xcfbec4(_0x1d1e7f))==null?void 0x0:_0x4b869b[_0x5ec142(0x1ff)]:_0x326fc9;if(_0x10182d==null)return!0x1;let _0x4152ae=_0x4d23c4({'cursorOffset':_0x10182d,'documentData':_0x4ccf46[_0x5ec142(0x1c1)],'paragraphStartIndex':_0x2b24f1==null?void 0x0:_0x2b24f1['paragraphStartIndex']});return _0x4152ae?_0xa0fbf4(_0x4ccf46[_0x5ec142(0x208)],_0x4ccf46[_0x5ec142(0x1d1)],_0x4ccf46[_0x5ec142(0x1c1)],_0x4152ae[_0x5ec142(0x199)],_0x4152ae[_0x5ec142(0x1a6)]):!0x1;}};function _0x4214e5(_0x2c5b50,_0x392e91){const _0x4007a7=_0x47ee47;let _0x184950=_0x2c5b50[_0x4007a7(0x1fa)](_0x48be98['IUniverInstanceService']),_0x260d75=_0x392e91?_0x184950[_0x4007a7(0x1c2)](_0x392e91):_0x184950['getCurrentUnitOfType'](_0x48be98[_0x4007a7(0x1b3)]['UNIVER_DOC']);return _0x260d75?{'commandService':_0x2c5b50[_0x4007a7(0x1fa)](_0x48be98[_0x4007a7(0x1d4)]),'model':_0x2c5b50[_0x4007a7(0x1fa)](_0xde57e5),'previousDocumentData':_0x260d75[_0x4007a7(0x19e)](),'unitId':_0x260d75['getUnitId']()}:null;}function _0xcfbec4(_0x28ee2b){const _0x20fd58=_0x47ee47;var _0x2102c;return(_0x2102c=_0x28ee2b[_0x20fd58(0x1fa)](_0x1b0024[_0x20fd58(0x19a)])[_0x20fd58(0x1e6)]())==null?void 0x0:_0x2102c[0x0];}function _0x1a1157(_0xb7a454){const _0x577ab6=_0x47ee47;var _0x4c773f;let _0x4507a8=(_0x4c773f=_0xb7a454[_0x577ab6(0x1fa)](_0x48be98[_0x577ab6(0x1f8)])[_0x577ab6(0x193)](_0x48be98[_0x577ab6(0x1b3)][_0x577ab6(0x1b7)]))==null?void 0x0:_0x4c773f[_0x577ab6(0x21f)]();try{return _0xb7a454[_0x577ab6(0x1fa)](_0x1b0024[_0x577ab6(0x21e)])['consumeInsertRange'](_0x4507a8);}catch{return null;}}function _0x5036bb(_0x1bc155){const _0x5075b3=_0x47ee47;var _0x45ec4d,_0x549d9f,_0x1e8e8c;let _0x29c2de=_0xcfbec4(_0x1bc155);if(!_0x29c2de)return null;let _0x169ffd=_0x1bc155[_0x5075b3(0x1fa)](_0x48be98[_0x5075b3(0x1f8)])[_0x5075b3(0x193)](_0x48be98[_0x5075b3(0x1b3)][_0x5075b3(0x1b7)]),_0x31169e=_0x169ffd==null?void 0x0:_0x169ffd[_0x5075b3(0x1eb)]();return _0x31169e?(_0x45ec4d=_0x48be98[_0x5075b3(0x205)][_0x5075b3(0x189)]['getParagraphsInRange'](_0x29c2de,(_0x549d9f=_0x31169e['paragraphs'])==null?[]:_0x549d9f,(_0x1e8e8c=_0x31169e[_0x5075b3(0x1b5)])==null?'':_0x1e8e8c)[0x0])==null?null:_0x45ec4d:null;}function _0x2b3844(_0x3f65fc,_0x30ca3a){const _0x26f909=_0x47ee47;var _0xb1bd72,_0x28eea2,_0x58196e,_0x2fea63,_0x475989,_0x28f9cc,_0x21aaaa,_0x427e58,_0x2de977,_0x321a15,_0x5954b5,_0x504da6,_0x465aec,_0x588710,_0x29cd96,_0xa217e8,_0x119e02,_0x4c151d;let _0x1fc51e=_0x48be98[_0x26f909(0x206)][_0x26f909(0x1f3)]();return[_0x1ae80f(_0x1fc51e,[_0x26f909(0x203),_0x26f909(0x1b5)],(_0xb1bd72=_0x3f65fc[_0x26f909(0x203)])==null?void 0x0:_0xb1bd72[_0x26f909(0x1b5)],(_0x28eea2=_0x30ca3a['body'])==null?void 0x0:_0x28eea2['dataStream']),_0x1ae80f(_0x1fc51e,[_0x26f909(0x203),_0x26f909(0x192)],(_0x58196e=_0x3f65fc[_0x26f909(0x203)])==null?void 0x0:_0x58196e[_0x26f909(0x192)],(_0x2fea63=_0x30ca3a[_0x26f909(0x203)])==null?void 0x0:_0x2fea63[_0x26f909(0x192)]),_0x1ae80f(_0x1fc51e,[_0x26f909(0x203),'sectionBreaks'],(_0x475989=_0x3f65fc['body'])==null?void 0x0:_0x475989['sectionBreaks'],(_0x28f9cc=_0x30ca3a['body'])==null?void 0x0:_0x28f9cc[_0x26f909(0x218)]),_0x1ae80f(_0x1fc51e,['body',_0x26f909(0x1d9)],(_0x21aaaa=_0x3f65fc['body'])==null?void 0x0:_0x21aaaa[_0x26f909(0x1d9)],(_0x427e58=_0x30ca3a[_0x26f909(0x203)])==null?void 0x0:_0x427e58[_0x26f909(0x1d9)]),_0x1ae80f(_0x1fc51e,['body',_0x26f909(0x186)],(_0x2de977=_0x3f65fc[_0x26f909(0x203)])==null?void 0x0:_0x2de977[_0x26f909(0x186)],(_0x321a15=_0x30ca3a[_0x26f909(0x203)])==null?void 0x0:_0x321a15[_0x26f909(0x186)]),_0x1ae80f(_0x1fc51e,[_0x26f909(0x203),'customRanges'],(_0x5954b5=_0x3f65fc['body'])==null?void 0x0:_0x5954b5[_0x26f909(0x1cb)],(_0x504da6=_0x30ca3a[_0x26f909(0x203)])==null?void 0x0:_0x504da6[_0x26f909(0x1cb)]),_0x1ae80f(_0x1fc51e,[_0x26f909(0x203),_0x26f909(0x1ec)],(_0x465aec=_0x3f65fc[_0x26f909(0x203)])==null?void 0x0:_0x465aec[_0x26f909(0x1ec)],(_0x588710=_0x30ca3a[_0x26f909(0x203)])==null?void 0x0:_0x588710[_0x26f909(0x1ec)]),_0x1ae80f(_0x1fc51e,[_0x26f909(0x203),_0x26f909(0x201)],(_0x29cd96=_0x3f65fc[_0x26f909(0x203)])==null?void 0x0:_0x29cd96[_0x26f909(0x201)],(_0xa217e8=_0x30ca3a['body'])==null?void 0x0:_0xa217e8[_0x26f909(0x201)]),_0x1ae80f(_0x1fc51e,[_0x26f909(0x203),_0x26f909(0x1b2)],(_0x119e02=_0x3f65fc['body'])==null?void 0x0:_0x119e02['blockRanges'],(_0x4c151d=_0x30ca3a[_0x26f909(0x203)])==null?void 0x0:_0x4c151d[_0x26f909(0x1b2)])][_0x26f909(0x224)](Boolean)[_0x26f909(0x1f6)]((_0x5c779e,_0x1f118c)=>_0x48be98[_0x26f909(0x206)][_0x26f909(0x1bb)](_0x5c779e,_0x1f118c),null);}function _0x1ae80f(_0x735c7e,_0x34f8a3,_0x5d631a,_0x27112f){const _0x7cc05d=_0x47ee47;return _0x48be98[_0x7cc05d(0x1cc)]['diffValue'](_0x5d631a,_0x27112f)?null:_0x735c7e[_0x7cc05d(0x187)](_0x34f8a3,_0x5d631a,_0x27112f);}function _0xa0fbf4(_0x59c6bd,_0x4ac2ae,_0x50e3f3,_0x31abe5,_0x56cf94){const _0x30c75d=_0x47ee47;let _0xc7be68=_0x2b3844(_0x50e3f3,_0x31abe5);return _0xc7be68?!!_0x59c6bd['syncExecuteCommand'](_0x1b0024[_0x30c75d(0x1db)]['id'],{'unitId':_0x4ac2ae,'actions':_0xc7be68,'textRanges':[{'startOffset':_0x56cf94,'endOffset':_0x56cf94,'collapsed':!0x0}],'isEditing':!0x1}):!0x1;}let _0x410d44='DOC_CODE_PLUGIN';var _0x40b2bc=_0x47ee47(0x20d),_0x13a95b=_0x47ee47(0x212);let _0x1c483c={};function _0x2df43a(_0x237f57,_0x2aba57){return function(_0x475e97,_0x4c1d4d){_0x2aba57(_0x475e97,_0x4c1d4d,_0x237f57);};}function _0x2c81ba(_0x92b4f0,_0x20f4c8,_0x8aeca0,_0x33ca2e){const _0x2a8769=_0x47ee47;var _0x5e393d=arguments[_0x2a8769(0x204)],_0x542481=_0x5e393d<0x3?_0x20f4c8:_0x33ca2e===null?_0x33ca2e=Object[_0x2a8769(0x1b0)](_0x20f4c8,_0x8aeca0):_0x33ca2e,_0x5a6f6b;if(typeof Reflect=='object'&&typeof Reflect[_0x2a8769(0x17d)]==_0x2a8769(0x1cf))_0x542481=Reflect[_0x2a8769(0x17d)](_0x92b4f0,_0x20f4c8,_0x8aeca0,_0x33ca2e);else{for(var _0x26ffdf=_0x92b4f0['length']-0x1;_0x26ffdf>=0x0;_0x26ffdf--)(_0x5a6f6b=_0x92b4f0[_0x26ffdf])&&(_0x542481=(_0x5e393d<0x3?_0x5a6f6b(_0x542481):_0x5e393d>0x3?_0x5a6f6b(_0x20f4c8,_0x8aeca0,_0x542481):_0x5a6f6b(_0x20f4c8,_0x8aeca0))||_0x542481);}return _0x5e393d>0x3&&_0x542481&&Object[_0x2a8769(0x1ee)](_0x20f4c8,_0x8aeca0,_0x542481),_0x542481;}let _0x4e13fe=class extends _0x48be98[_0x47ee47(0x20f)]{constructor(_0x2e8dc9,_0x38f735){super(),this['_resourceManagerService']=_0x2e8dc9,this['_docsCodeModel']=_0x38f735,this['_initResource']();}[_0x47ee47(0x1a2)](){const _0x7ed6d=_0x47ee47;this[_0x7ed6d(0x202)](this['_resourceManagerService']['registerPluginResource']({'pluginName':_0x410d44,'businesses':[_0x48be98['UniverInstanceType'][_0x7ed6d(0x1b7)]],'toJson':_0x3f7a65=>JSON[_0x7ed6d(0x21d)](this[_0x7ed6d(0x1a8)]['serialize'](_0x3f7a65)),'parseJson':_0x1c8d73=>_0x2516b6(JSON['parse'](_0x1c8d73)),'onLoad':(_0x5a1b42,_0x4d67f2)=>this[_0x7ed6d(0x1a8)]['deserialize'](_0x5a1b42,_0x4d67f2),'onUnLoad':_0x4f421e=>this[_0x7ed6d(0x1a8)][_0x7ed6d(0x1a5)](_0x4f421e)}));}};_0x4e13fe=_0x2c81ba([_0x2df43a(0x0,_0x48be98[_0x47ee47(0x18e)]),_0x2df43a(0x1,(0x0,_0x48be98[_0x47ee47(0x1ce)])(_0xde57e5))],_0x4e13fe);let _0x895937=class extends _0x48be98[_0x47ee47(0x211)]{constructor(_0x1193fe=_0x1c483c,_0x49d158,_0x8df121,_0x356437){const _0x4062c6=_0x47ee47;super(),this['_config']=_0x1193fe,this[_0x4062c6(0x1d6)]=_0x49d158,this[_0x4062c6(0x1e7)]=_0x8df121,this[_0x4062c6(0x182)]=_0x356437;let {..._0x3da8c5}=(0x0,_0x48be98[_0x4062c6(0x1af)])({},_0x1c483c,this[_0x4062c6(0x226)]);this[_0x4062c6(0x182)][_0x4062c6(0x1cd)](_0x4062c6(0x1c7),_0x3da8c5);}[_0x47ee47(0x1a1)](){const _0xeae329=_0x47ee47;this[_0xeae329(0x1d6)][_0xeae329(0x1e2)]([_0xde57e5]),this[_0xeae329(0x1d6)]['add']([_0x4e13fe]),this[_0xeae329(0x1d6)]['get'](_0xde57e5),this[_0xeae329(0x1d6)][_0xeae329(0x1fa)](_0x4e13fe),[_0x2857e9,_0x98e86b,_0x4d0a92,_0x1586a6,_0x1539b,_0x29a99a][_0xeae329(0x209)](_0x5897c1=>this[_0xeae329(0x202)](this[_0xeae329(0x1e7)][_0xeae329(0x219)](_0x5897c1)));}};_0x44c135(_0x895937,'pluginName',_0x410d44),_0x44c135(_0x895937,_0x47ee47(0x225),_0x40b2bc),_0x44c135(_0x895937,'version',_0x13a95b),_0x44c135(_0x895937,_0x47ee47(0x20a),_0x48be98[_0x47ee47(0x1b3)][_0x47ee47(0x1b7)]),_0x895937=_0x2c81ba([(0x0,_0x48be98[_0x47ee47(0x196)])(_0x419294[_0x47ee47(0x18f)],_0x1b0024['UniverDocsPlugin']),_0x2df43a(0x1,(0x0,_0x48be98[_0x47ee47(0x1ce)])(_0x48be98[_0x47ee47(0x1d0)])),_0x2df43a(0x2,_0x48be98[_0x47ee47(0x1d4)]),_0x2df43a(0x3,_0x48be98[_0x47ee47(0x19f)])],_0x895937),_0x3ea430[_0x47ee47(0x1f7)]=_0x3fe8be,_0x3ea430[_0x47ee47(0x1e4)]=_0x410d44,_0x3ea430[_0x47ee47(0x1be)]=_0x1539b,_0x3ea430[_0x47ee47(0x1ed)]=_0x29a99a,_0x3ea430['DocsCodeExitCommand']=_0x1586a6,_0x3ea430['DocsCodeInsertBelowCommand']=_0x98e86b,_0x3ea430[_0x47ee47(0x180)]=_0x2857e9,_0x3ea430[_0x47ee47(0x1fe)]=_0xde57e5,_0x3ea430[_0x47ee47(0x1c3)]=_0x4d0a92,Object['defineProperty'](_0x3ea430,_0x47ee47(0x21b),{'enumerable':!0x0,'get':function(){return _0x895937;}}),_0x3ea430['buildCancelEmptyCodeParagraphActions']=_0x4d23c4,_0x3ea430[_0x47ee47(0x1c0)]=_0x3abdc4,_0x3ea430[_0x47ee47(0x1ca)]=_0x2bed9a,_0x3ea430['buildUpdateCodeActions']=_0x43323e,_0x3ea430['findCodeRangeAtOffset']=_0xc9226b,_0x3ea430[_0x47ee47(0x217)]=_0x447b3c,_0x3ea430['normalizeDocsCodeConfig']=_0x54ec27;}));
1
+ (function(_0x19045f,_0x2eda88){const _0x1667a4=_0x278e,_0x47f924=_0x19045f();while(!![]){try{const _0x3cde5a=parseInt(_0x1667a4(0x207))/0x1+-parseInt(_0x1667a4(0x16e))/0x2*(parseInt(_0x1667a4(0x1f3))/0x3)+parseInt(_0x1667a4(0x1aa))/0x4*(parseInt(_0x1667a4(0x1b8))/0x5)+parseInt(_0x1667a4(0x1ef))/0x6+parseInt(_0x1667a4(0x1be))/0x7*(parseInt(_0x1667a4(0x1e6))/0x8)+parseInt(_0x1667a4(0x191))/0x9+parseInt(_0x1667a4(0x17f))/0xa*(-parseInt(_0x1667a4(0x1ec))/0xb);if(_0x3cde5a===_0x2eda88)break;else _0x47f924['push'](_0x47f924['shift']());}catch(_0x1de39d){_0x47f924['push'](_0x47f924['shift']());}}}(_0x38f2,0x903af),function(_0x3f8d14,_0x3380f4){const _0x36fb33=_0x278e;typeof exports==_0x36fb33(0x1de)&&typeof module<'u'?_0x3380f4(exports,require('@univerjs/core'),require('@univerjs/docs'),require('rxjs'),require('@univerjs-pro/license')):typeof define==_0x36fb33(0x180)&&define[_0x36fb33(0x1c7)]?define([_0x36fb33(0x215),_0x36fb33(0x211),_0x36fb33(0x1bd),'rxjs',_0x36fb33(0x1c3)],_0x3380f4):(_0x3f8d14=typeof globalThis<'u'?globalThis:_0x3f8d14||self,_0x3380f4(_0x3f8d14['UniverProDocsCode']={},_0x3f8d14[_0x36fb33(0x1a2)],_0x3f8d14[_0x36fb33(0x198)],_0x3f8d14['rxjs'],_0x3f8d14[_0x36fb33(0x193)]));}(this,function(_0x8da04c,_0x46435e,_0x4c8527,_0x396a6c,_0x5647fb){const _0x1561b4=_0x278e;Object[_0x1561b4(0x194)](_0x8da04c,Symbol[_0x1561b4(0x1b1)],{'value':'Module'});let _0x453d79={'language':_0x1561b4(0x219),'showLineNumbers':!0x1,'tabSize':0x4,'wrap':!0x0};function _0x351482(_0x846c64){return{..._0x453d79,..._0x846c64};}function _0x6a2108(_0x1ba3d4){const _0x5d8fd9=_0x1561b4;var _0x3b1556;let _0x4c4dfb=(_0x3b1556=_0x1ba3d4==null?void 0x0:_0x1ba3d4[_0x5d8fd9(0x19d)])==null?{}:_0x3b1556;return{'codes':Object['fromEntries'](Object[_0x5d8fd9(0x1ed)](_0x4c4dfb)[_0x5d8fd9(0x1b5)](([_0x17bfc9,_0x179f4e])=>[_0x17bfc9,_0x351482(_0x179f4e)]))};}function _0x33e65b(_0x2fceac,_0x56e868,_0x43edc4){const _0x28ca12=_0x1561b4;let _0x40f4a4=_0x6a2108(_0x2fceac);return _0x40f4a4[_0x28ca12(0x19d)][_0x56e868]=_0x351482({..._0x40f4a4[_0x28ca12(0x19d)][_0x56e868],..._0x43edc4}),_0x40f4a4;}function _0x3256fc(_0x5ac4cd,_0x35e07d){const _0x5aec9c=_0x1561b4;let _0x2be571=_0x6a2108(_0x5ac4cd);return delete _0x2be571[_0x5aec9c(0x19d)][_0x35e07d],_0x2be571;}let _0x1f8b71=_0x1561b4(0x18c);function _0xc95d98(_0x210e6a){const _0x3b5bbc=_0x1561b4;var _0x1f4118,_0x4bee10,_0x16288d;let _0x49850e=_0x5022d1(_0x210e6a[_0x3b5bbc(0x1ba)]),_0x1661b4=_0x3d7853(_0x49850e),_0x13fca4=_0x17ee77(_0x210e6a[_0x3b5bbc(0x1d4)],_0x210e6a[_0x3b5bbc(0x1fd)]),_0xc2c660=_0x13fca4?(_0x1f4118=_0x1661b4['blockRanges'])==null?void 0x0:_0x1f4118[_0x3b5bbc(0x184)](_0x2e10f1=>_0x2e10f1[_0x3b5bbc(0x1a3)]===_0x13fca4[_0x3b5bbc(0x1d4)]&&_0x2e10f1['endIndex']+0x1===_0x13fca4[_0x3b5bbc(0x1fd)]):void 0x0,{startOffset:_0x21d641,endOffset:_0x1dfd80}=_0xc2c660?_0x13fca4:_0x293b08(_0x1661b4,_0x210e6a[_0x3b5bbc(0x1d4)],_0x210e6a[_0x3b5bbc(0x1fd)]),_0x36ee14=_0x4a9a8d(_0x1661b4,_0x21d641,_0x1dfd80),_0x3f0e73=(_0x4bee10=_0xc2c660==null?void 0x0:_0xc2c660[_0x3b5bbc(0x21b)])==null?_0x210e6a[_0x3b5bbc(0x21b)]:_0x4bee10,_0x4bccb9=_0x33e65b(_0x210e6a[_0x3b5bbc(0x17c)],_0x3f0e73,{..._0x453d79,..._0x210e6a[_0x3b5bbc(0x1d0)]});if(_0xc2c660)return _0xc2c660[_0x3b5bbc(0x1b2)]=_0x46435e[_0x3b5bbc(0x187)][_0x3b5bbc(0x1dd)],_0x540d5f(_0x1661b4,_0x21d641,_0x1dfd80),_0x2ff936(_0x1661b4,_0x21d641,_0x1dfd80,_0x36ee14),_0x5c7fd1(_0x1661b4,_0xc2c660),{'nextDocumentData':_0x49850e,'nextMetadata':_0x4bccb9,'cursorOffset':_0x21d641+0x1};if(_0x21d641===_0x1dfd80){var _0x3f0237,_0x2fe9be;let _0x2c6102=''+_0x46435e[_0x3b5bbc(0x202)][_0x3b5bbc(0x204)]+_0x46435e['DataStreamTreeTokenType']['PARAGRAPH']+_0x46435e[_0x3b5bbc(0x202)][_0x3b5bbc(0x1b0)];_0x3fae1b(_0x1661b4,_0x21d641,_0x2c6102,{'paragraphs':[{'startIndex':0x1,'paragraphId':(0x0,_0x46435e[_0x3b5bbc(0x19e)])(new Set((_0x3f0237=_0x1661b4[_0x3b5bbc(0x179)])==null?void 0x0:_0x3f0237[_0x3b5bbc(0x1b5)](_0x53eeb9=>_0x53eeb9['paragraphId']))),'paragraphStyle':_0x5da406(!0x0,!0x0,_0x36ee14)}],'blockRanges':[{'blockId':_0x3f0e73,'blockType':_0x46435e[_0x3b5bbc(0x187)]['CODE'],'startIndex':0x0,'endIndex':_0x2c6102[_0x3b5bbc(0x1b9)]-0x1}]});let _0x4d3f04=(_0x2fe9be=_0x1661b4[_0x3b5bbc(0x205)])==null?void 0x0:_0x2fe9be[_0x3b5bbc(0x184)](_0x55ef54=>_0x55ef54[_0x3b5bbc(0x21b)]===_0x3f0e73);return _0x4d3f04&&_0x5c7fd1(_0x1661b4,_0x4d3f04),{'nextDocumentData':_0x49850e,'nextMetadata':_0x4bccb9,'cursorOffset':_0x21d641+0x1};}_0x3fae1b(_0x1661b4,_0x1dfd80,_0x46435e[_0x3b5bbc(0x202)][_0x3b5bbc(0x1b0)]),_0x3fae1b(_0x1661b4,_0x21d641,_0x46435e[_0x3b5bbc(0x202)][_0x3b5bbc(0x204)]),_0x2ff936(_0x1661b4,_0x21d641,_0x1dfd80+0x1,_0x36ee14);let _0x2cf233={'blockId':_0x3f0e73,'blockType':_0x46435e[_0x3b5bbc(0x187)][_0x3b5bbc(0x1dd)],'startIndex':_0x21d641,'endIndex':_0x1dfd80+0x1};return _0x1661b4['blockRanges']=[...(_0x16288d=_0x1661b4['blockRanges'])==null?[]:_0x16288d,_0x2cf233][_0x3b5bbc(0x201)]((_0x2d245c,_0x377010)=>_0x2d245c['startIndex']-_0x377010[_0x3b5bbc(0x1a3)]),_0x5c7fd1(_0x1661b4,_0x2cf233),{'nextDocumentData':_0x49850e,'nextMetadata':_0x4bccb9,'cursorOffset':_0x21d641+0x1};}function _0x540d5f(_0x155151,_0x4afc64,_0x4e2699){const _0x1ec659=_0x1561b4;var _0x26b4d1;((_0x26b4d1=_0x155151[_0x1ec659(0x179)])==null?[]:_0x26b4d1)[_0x1ec659(0x190)](_0x4f1051=>_0x4f1051[_0x1ec659(0x1a3)]>_0x4afc64&&_0x4f1051['startIndex']<_0x4e2699)[_0x1ec659(0x20d)](_0xd6add7=>{const _0x544594=_0x1ec659;var _0x442679;let _0x3437ec={...(_0x442679=_0xd6add7[_0x544594(0x1f2)])==null?{}:_0x442679};delete _0x3437ec[_0x544594(0x1dc)],delete _0x3437ec['spaceBelow'],_0xd6add7[_0x544594(0x1f2)]=_0x3437ec;});}function _0x17ee77(_0x43606a,_0x3dcd3f){const _0x347c95=_0x1561b4;return _0x43606a==null||_0x3dcd3f==null||_0x43606a===_0x3dcd3f?null:{'startOffset':Math[_0x347c95(0x213)](_0x43606a,_0x3dcd3f),'endOffset':Math[_0x347c95(0x1a9)](_0x43606a,_0x3dcd3f)};}function _0x15ef84(_0x3577d8){const _0x375c8a=_0x1561b4;return{'nextDocumentData':_0x5022d1(_0x3577d8[_0x375c8a(0x1ba)]),'nextMetadata':_0x33e65b(_0x3577d8[_0x375c8a(0x17c)],_0x3577d8['blockId'],_0x3577d8['config']),'cursorOffset':0x0};}function _0x5a7a0f(_0x962e63){const _0x38adcf=_0x1561b4;var _0x1ab6ac,_0x1deee9;let _0x222374=_0x5022d1(_0x962e63[_0x38adcf(0x1ba)]),_0x524902=_0x3d7853(_0x222374),_0x15a668=_0x17bf95(_0x524902,_0x962e63['cursorOffset']);if(!_0x15a668)return null;let _0x36d6c6=_0x550268(_0x524902,_0x15a668),_0x5ce705=_0x36d6c6[_0x36d6c6[_0x38adcf(0x1b9)]-0x1];if(!_0x5ce705||!_0x1164a4(_0x524902,_0x15a668,_0x5ce705)||_0x962e63[_0x38adcf(0x175)]<_0x5ce705[_0x38adcf(0x1a3)])return null;let _0x1c60de=_0x31cee7(_0x524902,_0x15a668,_0x5ce705);if(_0x1c60de>=_0x15a668[_0x38adcf(0x188)])return null;_0x524902[_0x38adcf(0x210)]=[_0x524902[_0x38adcf(0x210)][_0x38adcf(0x1a0)](0x0,_0x1c60de),_0x46435e['DataStreamTreeTokenType'][_0x38adcf(0x1b0)],_0x524902[_0x38adcf(0x210)][_0x38adcf(0x1a0)](_0x1c60de,_0x15a668[_0x38adcf(0x188)]),_0x524902['dataStream']['slice'](_0x15a668[_0x38adcf(0x188)]+0x1)][_0x38adcf(0x1ac)](''),_0x399a84(_0x524902[_0x38adcf(0x179)],_0x1c60de,_0x15a668[_0x38adcf(0x188)],0x1),_0x399a84(_0x524902[_0x38adcf(0x1e7)],_0x1c60de,_0x15a668['endIndex'],0x1),_0x399a84(_0x524902[_0x38adcf(0x20a)],_0x1c60de,_0x15a668[_0x38adcf(0x188)],0x1),_0x3bb092(_0x524902[_0x38adcf(0x1fc)],_0x1c60de,_0x15a668[_0x38adcf(0x188)],0x1),_0x3c3aa8(_0x524902[_0x38adcf(0x17b)],_0x1c60de,_0x15a668[_0x38adcf(0x188)],0x1),_0x3c3aa8(_0x524902[_0x38adcf(0x16f)],_0x1c60de,_0x15a668[_0x38adcf(0x188)],0x1),_0x3c3aa8(_0x524902['customDecorations'],_0x1c60de,_0x15a668[_0x38adcf(0x188)],0x1),(_0x1ab6ac=_0x524902[_0x38adcf(0x205)])==null||_0x1ab6ac[_0x38adcf(0x20d)](_0x5a43f9=>{const _0xd7960b=_0x38adcf;_0x5a43f9===_0x15a668||_0x5a43f9[_0xd7960b(0x21b)]===_0x15a668[_0xd7960b(0x21b)]?_0x5a43f9['endIndex']=_0x1c60de:_0x5a43f9['startIndex']>=_0x1c60de&&_0x5a43f9[_0xd7960b(0x1a3)]<_0x15a668['endIndex']&&(_0x5a43f9[_0xd7960b(0x1a3)]+=0x1,_0x5a43f9[_0xd7960b(0x188)]+=0x1);});let _0x1eabc1=_0x550268(_0x524902,{..._0x15a668,'endIndex':_0x1c60de});_0x1eabc1[_0x38adcf(0x20d)]((_0x17ffa7,_0x47ea21)=>{const _0x5cd86c=_0x38adcf;var _0x53763e;_0x17ffa7[_0x5cd86c(0x1f2)]={...(_0x53763e=_0x17ffa7[_0x5cd86c(0x1f2)])==null?{}:_0x53763e,..._0x5da406(_0x47ea21===0x0,_0x47ea21===_0x1eabc1[_0x5cd86c(0x1b9)]-0x1)};});let _0x19991d=(_0x1deee9=_0x524902[_0x38adcf(0x179)])==null?void 0x0:_0x1deee9['find'](_0x55a334=>_0x55a334[_0x38adcf(0x1a3)]===_0x1c60de+0x1);return _0x19991d&&(_0x19991d[_0x38adcf(0x1f2)]=_0x3ac964(_0x19991d['paragraphStyle'])),{'nextDocumentData':_0x222374,'cursorOffset':_0x1c60de+0x1};}function _0x2e07a0(_0xa62db5){const _0x5296b9=_0x1561b4;let _0x875445=_0x5022d1(_0xa62db5[_0x5296b9(0x1ba)]),_0x4049a2=_0x3d7853(_0x875445),_0x451c99=_0x17bf95(_0x4049a2,_0xa62db5['cursorOffset']);return _0x451c99&&_0x2e9096(_0x875445,_0x4049a2,_0x451c99,_0xa62db5['cursorOffset'],_0xa62db5[_0x5296b9(0x1fa)])||null;}function _0x2e9096(_0x19984d,_0x21968c,_0x2cef34,_0x164fc8,_0x39cfaf){const _0x1493c9=_0x1561b4;let _0x1fa2d1=_0x548cd4(_0x21968c,_0x2cef34,_0x164fc8,_0x39cfaf);if(!_0x1fa2d1)return null;let _0x32b742=_0x1fa2d1[_0x1493c9(0x1ad)]-0x1;return _0x1635ec(_0x21968c,_0x1fa2d1[_0x1493c9(0x1d1)]['startIndex'],_0x1fa2d1[_0x1493c9(0x1d1)][_0x1493c9(0x1a3)]+0x1),{'nextDocumentData':_0x19984d,'cursorOffset':_0x32b742};}function _0x27d490(_0x313ff8,_0x31a124){const _0x2abd5e=_0x1561b4;var _0xcf37c0;return _0x313ff8==null||(_0xcf37c0=_0x313ff8['blockRanges'])==null?void 0x0:_0xcf37c0['find'](_0x17768e=>_0x17768e[_0x2abd5e(0x1b2)]===_0x46435e[_0x2abd5e(0x187)][_0x2abd5e(0x1dd)]&&_0x17768e[_0x2abd5e(0x1a3)]<=_0x31a124&&_0x31a124<=_0x17768e['endIndex']);}function _0x3b0df6(_0x1839a2){const _0x24349a=_0x1561b4;var _0x4b74f6;let _0x1c700a=_0x1839a2[_0x24349a(0x1ba)]['body'];if(!_0x1c700a)return!0x1;let _0x22620b=_0x1839a2['direction']===_0x24349a(0x185)?_0x1839a2[_0x24349a(0x175)]-0x1:_0x1839a2[_0x24349a(0x175)],_0x865b78=_0x1839a2[_0x24349a(0x1ca)]==='right'?_0x1839a2[_0x24349a(0x175)]+0x1:_0x22620b;return((_0x4b74f6=_0x1c700a[_0x24349a(0x205)])==null?[]:_0x4b74f6)[_0x24349a(0x17e)](_0x3c815f=>_0x3c815f[_0x24349a(0x1b2)]===_0x46435e[_0x24349a(0x187)]['CODE']?_0x22620b===_0x3c815f[_0x24349a(0x1a3)]||_0x22620b===_0x3c815f[_0x24349a(0x188)]||_0x865b78===_0x3c815f[_0x24349a(0x1a3)]||_0x865b78===_0x3c815f[_0x24349a(0x188)]:!0x1);}function _0x17bf95(_0x9e0fdd,_0xcda5d0){const _0x1658b1=_0x1561b4;var _0x5ed63c;return(_0x5ed63c=_0x9e0fdd[_0x1658b1(0x205)])==null?void 0x0:_0x5ed63c[_0x1658b1(0x184)](_0x4d2fbc=>{const _0x414b61=_0x1658b1;let _0xae1cbd=_0x3d4c5d(_0x9e0fdd,_0x4d2fbc);return _0x4d2fbc[_0x414b61(0x1b2)]===_0x46435e['DocumentBlockRangeType'][_0x414b61(0x1dd)]&&_0x4d2fbc[_0x414b61(0x1a3)]<=_0xcda5d0&&_0xcda5d0<=_0xae1cbd+0x2;});}function _0x5da406(_0xc98e32,_0x4d8c64,_0x442d41=!0x1){return{'indentEnd':{'v':0x14},'indentStart':{'v':0x14},..._0xc98e32&&_0x442d41?{'spaceAbove':{'v':0x8}}:{},'textStyle':{'ff':_0x1f8b71,'fs':0xc}};}function _0x2ff936(_0x592369,_0x1e0b24,_0x394718,_0x11429c=!0x1){const _0x210415=_0x1561b4;var _0x5ef9a5;let _0x51e1a5=((_0x5ef9a5=_0x592369[_0x210415(0x179)])==null?[]:_0x5ef9a5)['filter'](_0x508abb=>_0x508abb[_0x210415(0x1a3)]>_0x1e0b24&&_0x508abb[_0x210415(0x1a3)]<_0x394718);_0x51e1a5[_0x210415(0x20d)]((_0x1c2303,_0x9976ca)=>{const _0x2ea42d=_0x210415;var _0x2835ee;_0x1c2303[_0x2ea42d(0x1f2)]={...(_0x2835ee=_0x1c2303[_0x2ea42d(0x1f2)])==null?{}:_0x2835ee,..._0x5da406(_0x9976ca===0x0,_0x9976ca===_0x51e1a5[_0x2ea42d(0x1b9)]-0x1,_0x11429c)};});}function _0x3ac964(_0x17f35b){const _0x3fa235=_0x1561b4;var _0x2b45ca,_0x4df2e0;let _0x7ebf5d={..._0x17f35b==null?{}:_0x17f35b};return delete _0x7ebf5d['indentEnd'],delete _0x7ebf5d[_0x3fa235(0x178)],delete _0x7ebf5d[_0x3fa235(0x1dc)],delete _0x7ebf5d['spaceBelow'],((_0x2b45ca=_0x7ebf5d[_0x3fa235(0x212)])==null?void 0x0:_0x2b45ca['ff'])===_0x1f8b71&&((_0x4df2e0=_0x7ebf5d['textStyle'])==null?void 0x0:_0x4df2e0['fs'])===0xc&&delete _0x7ebf5d['textStyle'],_0x7ebf5d;}function _0x550268(_0x2efbc9,_0x2d1a12){const _0x118ef0=_0x1561b4;var _0x3175df;let _0x1b3d38=_0x3d4c5d(_0x2efbc9,_0x2d1a12);return((_0x3175df=_0x2efbc9[_0x118ef0(0x179)])==null?[]:_0x3175df)[_0x118ef0(0x190)](_0x3e76d1=>_0x3e76d1['startIndex']>_0x2d1a12[_0x118ef0(0x1a3)]&&_0x3e76d1['startIndex']<_0x1b3d38);}function _0x1164a4(_0x4f68c5,_0x11adba,_0x4f5a15){const _0x2c842d=_0x1561b4;let _0x4b8007=_0x31cee7(_0x4f68c5,_0x11adba,_0x4f5a15),_0x5aaa97=_0x4f68c5[_0x2c842d(0x210)][_0x2c842d(0x1a0)](_0x4b8007,_0x4f5a15[_0x2c842d(0x1a3)]);return Array[_0x2c842d(0x1a7)](_0x5aaa97)[_0x2c842d(0x1b6)](_0x1754bb=>_0x1754bb===_0x46435e[_0x2c842d(0x202)][_0x2c842d(0x204)]||_0x1754bb===_0x46435e[_0x2c842d(0x202)][_0x2c842d(0x1b0)]);}function _0x5022d1(_0x329be4){const _0x2208c1=_0x1561b4;return _0x46435e[_0x2208c1(0x1fb)][_0x2208c1(0x209)](_0x329be4);}function _0x3d7853(_0x10a183){const _0x4d3126=_0x1561b4;if(!_0x10a183[_0x4d3126(0x1e2)])throw Error('Document\x20body\x20is\x20required');return _0x10a183[_0x4d3126(0x1e2)];}function _0x293b08(_0x46d518,_0x43482d,_0x178e0b){const _0x271179=_0x1561b4;if(_0x43482d==null||_0x178e0b==null){let _0xf22a7a=_0xe6132e(_0x46d518);return{'startOffset':_0xf22a7a,'endOffset':_0xf22a7a};}let _0x15a804=Math[_0x271179(0x213)](_0x43482d,_0x178e0b),_0x1f5885=Math[_0x271179(0x1a9)](_0x43482d,_0x178e0b);if(_0x15a804===_0x1f5885){let _0x4831c3=_0x57dbec(_0x46d518,_0x15a804);return{'startOffset':_0x4831c3,'endOffset':_0x4831c3};}return _0x33abcc(_0x46d518,_0x15a804,_0x1f5885);}function _0x57dbec(_0x458ad3,_0x4c634e){const _0x26c7cf=_0x1561b4;return _0x4c634e===0x0&&_0x458ad3['dataStream'][0x0]===_0x46435e['DataStreamTreeTokenType'][_0x26c7cf(0x1fe)]?0x1:_0x4c634e;}function _0xe6132e(_0x8480a4){const _0x2c7a9f=_0x1561b4;return _0x8480a4['dataStream'][_0x2c7a9f(0x1d9)](_0x46435e['DataStreamTreeTokenType'][_0x2c7a9f(0x216)])?Math['max'](0x0,_0x8480a4[_0x2c7a9f(0x210)]['length']-0x1):_0x8480a4[_0x2c7a9f(0x210)][_0x2c7a9f(0x1b9)];}function _0x4a9a8d(_0x290a91,_0x3a63a7,_0x155ada){const _0x25fd27=_0x1561b4;var _0x1df116;let _0x1f04cf=Math[_0x25fd27(0x213)](_0x3a63a7,_0x155ada),_0xbdf3a0=Math[_0x25fd27(0x1a9)](_0x3a63a7,_0x155ada);return!!((_0x1df116=_0x290a91['tables'])!=null&&_0x1df116[_0x25fd27(0x17e)](_0x2409d8=>_0x1f04cf>_0x2409d8[_0x25fd27(0x1a3)]&&_0x1f04cf<_0x2409d8[_0x25fd27(0x188)]||_0xbdf3a0>_0x2409d8[_0x25fd27(0x1a3)]&&_0xbdf3a0<_0x2409d8[_0x25fd27(0x188)]||_0x1f04cf<=_0x2409d8[_0x25fd27(0x1a3)]&&_0xbdf3a0>=_0x2409d8[_0x25fd27(0x188)]));}function _0x33abcc(_0x52109d,_0x1104fe,_0x8aa2e7){const _0x11bff9=_0x1561b4;var _0x38e1ad,_0x1c8768;let _0x41ef7f=[...(_0x38e1ad=_0x52109d['paragraphs'])==null?[]:_0x38e1ad]['sort']((_0x5e14d6,_0x420fb5)=>_0x5e14d6[_0x11bff9(0x1a3)]-_0x420fb5['startIndex']),_0x5266bb=_0x41ef7f[_0x11bff9(0x184)]((_0x1521a0,_0x593dbe)=>(_0x593dbe===0x0?0x0:_0x41ef7f[_0x593dbe-0x1][_0x11bff9(0x1a3)]+0x1)<=_0x1104fe&&_0x1104fe<=_0x1521a0[_0x11bff9(0x1a3)]),_0xf7622c=(_0x1c8768=_0x41ef7f[_0x11bff9(0x184)](_0x2b02f8=>_0x2b02f8[_0x11bff9(0x1a3)]>=_0x8aa2e7-0x1))==null?_0x41ef7f[_0x41ef7f[_0x11bff9(0x1b9)]-0x1]:_0x1c8768;return{'startOffset':_0x5266bb?_0x2f9a23(_0x41ef7f,_0x5266bb):_0x1104fe,'endOffset':_0xf7622c?_0xf7622c[_0x11bff9(0x1a3)]+0x1:_0x8aa2e7};}function _0x2f9a23(_0x36b03a,_0xc623f7){const _0x37d1ed=_0x1561b4;let _0x2e587b=_0x36b03a[_0x37d1ed(0x1ea)](_0xc623f7);return _0x2e587b>0x0?_0x36b03a[_0x2e587b-0x1][_0x37d1ed(0x1a3)]+0x1:0x0;}function _0x31cee7(_0x30748d,_0x15ab05,_0x5b67f1){const _0x2aab40=_0x1561b4;var _0x4b5375;return Math[_0x2aab40(0x1a9)](_0x2f9a23((_0x4b5375=_0x30748d['paragraphs'])==null?[]:_0x4b5375,_0x5b67f1),_0x15ab05['startIndex']+0x1);}function _0x3d4c5d(_0x5bcda6,_0x462986){const _0x1552c1=_0x1561b4;return _0x5bcda6[_0x1552c1(0x210)][_0x462986[_0x1552c1(0x188)]]===_0x46435e[_0x1552c1(0x202)][_0x1552c1(0x1b0)]?_0x462986[_0x1552c1(0x188)]:_0x5bcda6['dataStream'][_0x462986['endIndex']+0x1]===_0x46435e[_0x1552c1(0x202)][_0x1552c1(0x1b0)]?_0x462986[_0x1552c1(0x188)]+0x1:_0x462986[_0x1552c1(0x188)];}function _0x548cd4(_0x10ba6d,_0x487af4,_0x4b5c36,_0x44a826){const _0x11d995=_0x1561b4;var _0x5b8805,_0x24b687;let _0x533e0b=_0x3d4c5d(_0x10ba6d,_0x487af4),_0x3f623c=((_0x5b8805=_0x10ba6d['paragraphs'])==null?[]:_0x5b8805)[_0x11d995(0x184)](_0x1badfd=>_0x1badfd[_0x11d995(0x1a3)]===_0x533e0b+0x1);if(!_0x3f623c||_0x44a826!=null&&_0x3f623c[_0x11d995(0x1a3)]!==_0x44a826||_0x4b5c36<_0x533e0b||_0x4b5c36>_0x3f623c[_0x11d995(0x1a3)]+0x1||_0x10ba6d[_0x11d995(0x210)][_0x3f623c[_0x11d995(0x1a3)]]!==_0x46435e[_0x11d995(0x202)][_0x11d995(0x1fe)])return null;let _0x3e60a8=_0x2f9a23((_0x24b687=_0x10ba6d['paragraphs'])==null?[]:_0x24b687,_0x3f623c),_0x4e756c=_0x10ba6d[_0x11d995(0x210)][_0x11d995(0x1a0)](_0x3e60a8,_0x3f623c[_0x11d995(0x1a3)]);return Array[_0x11d995(0x1a7)](_0x4e756c)[_0x11d995(0x1b6)](_0x23aa55=>_0x23aa55===_0x46435e[_0x11d995(0x202)][_0x11d995(0x1b0)])?{'paragraph':_0x3f623c,'endTokenOffset':_0x533e0b}:null;}function _0x5c7fd1(_0x5e2c59,_0x2f89b8){const _0x5b8168=_0x1561b4;var _0x33344d;let _0x64b229=_0x3d4c5d(_0x5e2c59,_0x2f89b8),_0x168750=_0x5e2c59['dataStream'][_0x64b229+0x1];_0x168750!==_0x46435e[_0x5b8168(0x202)][_0x5b8168(0x216)]&&_0x168750!==void 0x0||_0x3fae1b(_0x5e2c59,_0x64b229+0x1,_0x46435e[_0x5b8168(0x202)][_0x5b8168(0x1fe)],{'paragraphs':[{'startIndex':0x0,'paragraphId':(0x0,_0x46435e[_0x5b8168(0x19e)])(new Set((_0x33344d=_0x5e2c59[_0x5b8168(0x179)])==null?void 0x0:_0x33344d['map'](_0x4c3ebd=>_0x4c3ebd[_0x5b8168(0x1f4)])))}]});}function _0x3fae1b(_0x39ac0a,_0x156f30,_0x11c40b,_0x3b6f15={}){const _0x29b1aa=_0x1561b4;var _0x5e04d3,_0x103ee0;if(_0x11c40b){if(_0x39ac0a[_0x29b1aa(0x210)]=''+_0x39ac0a['dataStream'][_0x29b1aa(0x1a0)](0x0,_0x156f30)+_0x11c40b+_0x39ac0a[_0x29b1aa(0x210)]['slice'](_0x156f30),_0x5a73d4(_0x39ac0a,_0x156f30,_0x11c40b[_0x29b1aa(0x1b9)]),(_0x5e04d3=_0x3b6f15[_0x29b1aa(0x179)])!=null&&_0x5e04d3[_0x29b1aa(0x1b9)]){var _0x19b959;_0x39ac0a[_0x29b1aa(0x179)]=[...(_0x19b959=_0x39ac0a[_0x29b1aa(0x179)])==null?[]:_0x19b959,..._0x3b6f15['paragraphs'][_0x29b1aa(0x1b5)](_0x364e77=>({..._0x364e77,'startIndex':_0x364e77[_0x29b1aa(0x1a3)]+_0x156f30}))][_0x29b1aa(0x201)]((_0x178fc6,_0x32b691)=>_0x178fc6['startIndex']-_0x32b691[_0x29b1aa(0x1a3)]);}if((_0x103ee0=_0x3b6f15[_0x29b1aa(0x205)])!=null&&_0x103ee0['length']){var _0x27413e;_0x39ac0a[_0x29b1aa(0x205)]=[...(_0x27413e=_0x39ac0a[_0x29b1aa(0x205)])==null?[]:_0x27413e,..._0x3b6f15[_0x29b1aa(0x205)][_0x29b1aa(0x1b5)](_0x59a9c5=>({..._0x59a9c5,'startIndex':_0x59a9c5[_0x29b1aa(0x1a3)]+_0x156f30,'endIndex':_0x59a9c5[_0x29b1aa(0x188)]+_0x156f30}))][_0x29b1aa(0x201)]((_0x280c03,_0x27f4c1)=>_0x280c03[_0x29b1aa(0x1a3)]-_0x27f4c1['startIndex']);}}}function _0x1635ec(_0x3e5d8c,_0x157fe5,_0xe57f71){const _0x4fc191=_0x1561b4;let _0x190a4c=_0xe57f71-_0x157fe5;_0x3e5d8c['dataStream']=''+_0x3e5d8c['dataStream'][_0x4fc191(0x1a0)](0x0,_0x157fe5)+_0x3e5d8c['dataStream'][_0x4fc191(0x1a0)](_0xe57f71),_0x1cbb39(_0x3e5d8c,_0x157fe5,_0x190a4c);}function _0x5a73d4(_0x2c6c5b,_0x5760cd,_0x368c59){const _0x277ad5=_0x1561b4;_0x2c6c5b[_0x277ad5(0x179)]=_0x5c6086(_0x2c6c5b['paragraphs'],_0x5760cd,_0x368c59),_0x2c6c5b[_0x277ad5(0x1e7)]=_0x5c6086(_0x2c6c5b[_0x277ad5(0x1e7)],_0x5760cd,_0x368c59),_0x2c6c5b['customBlocks']=_0x5c6086(_0x2c6c5b[_0x277ad5(0x20a)],_0x5760cd,_0x368c59),_0x2c6c5b[_0x277ad5(0x1fc)]=_0x7171a4(_0x2c6c5b['textRuns'],_0x5760cd,_0x368c59),_0x2c6c5b[_0x277ad5(0x17b)]=_0x332261(_0x2c6c5b[_0x277ad5(0x17b)],_0x5760cd,_0x368c59),_0x2c6c5b[_0x277ad5(0x16f)]=_0x332261(_0x2c6c5b['customRanges'],_0x5760cd,_0x368c59),_0x2c6c5b['customDecorations']=_0x332261(_0x2c6c5b[_0x277ad5(0x19c)],_0x5760cd,_0x368c59),_0x2c6c5b['blockRanges']=_0x332261(_0x2c6c5b[_0x277ad5(0x205)],_0x5760cd,_0x368c59);}function _0x1cbb39(_0x335a45,_0x5a9560,_0x23fef6){const _0x20b315=_0x1561b4;var _0x43300c,_0x2bfc45;_0x335a45['paragraphs']=_0x687a45(_0x335a45['paragraphs'],_0x5a9560,_0x23fef6),_0x335a45['sectionBreaks']=_0x687a45(_0x335a45['sectionBreaks'],_0x5a9560,_0x23fef6),_0x335a45[_0x20b315(0x20a)]=_0x687a45(_0x335a45['customBlocks'],_0x5a9560,_0x23fef6),_0x335a45['textRuns']=(_0x43300c=_0x2b6a11((_0x2bfc45=_0x335a45[_0x20b315(0x1fc)])==null?void 0x0:_0x2bfc45[_0x20b315(0x1b5)](_0x20e51e=>({..._0x20e51e,'startIndex':_0x20e51e['st'],'endIndex':_0x20e51e['ed']})),_0x5a9560,_0x23fef6))==null?void 0x0:_0x43300c['map'](_0x540b4b=>{let {startIndex:_0x5437a4,endIndex:_0x1ce087,..._0x5adf73}=_0x540b4b;return{..._0x5adf73,'st':_0x5437a4,'ed':_0x1ce087};}),_0x335a45['tables']=_0x2b6a11(_0x335a45[_0x20b315(0x17b)],_0x5a9560,_0x23fef6),_0x335a45[_0x20b315(0x16f)]=_0x2b6a11(_0x335a45[_0x20b315(0x16f)],_0x5a9560,_0x23fef6),_0x335a45[_0x20b315(0x19c)]=_0x2b6a11(_0x335a45[_0x20b315(0x19c)],_0x5a9560,_0x23fef6),_0x335a45[_0x20b315(0x205)]=_0x2b6a11(_0x335a45[_0x20b315(0x205)],_0x5a9560,_0x23fef6);}function _0x5c6086(_0x11b0e6,_0x4e361c,_0x4e8b53){const _0x21cd88=_0x1561b4;return _0x11b0e6==null?void 0x0:_0x11b0e6[_0x21cd88(0x1b5)](_0x23ac36=>_0x23ac36['startIndex']>=_0x4e361c?{..._0x23ac36,'startIndex':_0x23ac36[_0x21cd88(0x1a3)]+_0x4e8b53}:_0x23ac36);}function _0x687a45(_0x13ebeb,_0xcc0562,_0xca0cdc){const _0x5188a0=_0x1561b4;let _0x54c337=_0xcc0562+_0xca0cdc;return _0x13ebeb==null?void 0x0:_0x13ebeb[_0x5188a0(0x1b5)](_0x5687bb=>_0x5687bb[_0x5188a0(0x1a3)]>=_0xcc0562&&_0x5687bb[_0x5188a0(0x1a3)]<_0x54c337?null:_0x5687bb[_0x5188a0(0x1a3)]>=_0x54c337?{..._0x5687bb,'startIndex':_0x5687bb[_0x5188a0(0x1a3)]-_0xca0cdc}:_0x5687bb)[_0x5188a0(0x190)](_0x335237=>_0x335237!=null);}function _0x7171a4(_0x27b282,_0x2d7e9b,_0x5bce44){const _0x5b12e6=_0x1561b4;return _0x27b282==null?void 0x0:_0x27b282[_0x5b12e6(0x1b5)](_0xfac8f8=>_0xfac8f8['st']>=_0x2d7e9b?{..._0xfac8f8,'st':_0xfac8f8['st']+_0x5bce44,'ed':_0xfac8f8['ed']+_0x5bce44}:_0xfac8f8['ed']>_0x2d7e9b?{..._0xfac8f8,'ed':_0xfac8f8['ed']+_0x5bce44}:_0xfac8f8);}function _0x332261(_0xba7d01,_0xce7cc,_0x43dcf1){const _0x6eca71=_0x1561b4;return _0xba7d01==null?void 0x0:_0xba7d01['map'](_0x378d0b=>_0x378d0b[_0x6eca71(0x1a3)]>=_0xce7cc?{..._0x378d0b,'startIndex':_0x378d0b['startIndex']+_0x43dcf1,'endIndex':_0x378d0b['endIndex']+_0x43dcf1}:_0x378d0b[_0x6eca71(0x188)]>=_0xce7cc?{..._0x378d0b,'endIndex':_0x378d0b[_0x6eca71(0x188)]+_0x43dcf1}:_0x378d0b);}function _0x2b6a11(_0xd70ef,_0x16f89c,_0x3bdb6d){const _0x1d9d36=_0x1561b4;let _0x1aaeb3=_0x16f89c+_0x3bdb6d;return _0xd70ef==null?void 0x0:_0xd70ef[_0x1d9d36(0x1b5)](_0x55b47c=>_0x55b47c['startIndex']>=_0x16f89c&&_0x55b47c[_0x1d9d36(0x188)]<_0x1aaeb3?null:_0x55b47c[_0x1d9d36(0x1a3)]>=_0x1aaeb3?{..._0x55b47c,'startIndex':_0x55b47c['startIndex']-_0x3bdb6d,'endIndex':_0x55b47c['endIndex']-_0x3bdb6d}:_0x55b47c['endIndex']>=_0x16f89c?{..._0x55b47c,'startIndex':_0x55b47c['startIndex']<_0x16f89c?_0x55b47c['startIndex']:_0x16f89c,'endIndex':Math[_0x1d9d36(0x1a9)](_0x16f89c,_0x55b47c[_0x1d9d36(0x188)]-_0x3bdb6d)}:_0x55b47c)[_0x1d9d36(0x190)](_0x42f776=>_0x42f776!=null);}function _0x399a84(_0x24fca2,_0x37e995,_0x25bcb1,_0x1d9b01){const _0x3b51ff=_0x1561b4;_0x24fca2==null||_0x24fca2[_0x3b51ff(0x20d)](_0x3000cb=>{const _0xdcbfff=_0x3b51ff;_0x3000cb[_0xdcbfff(0x1a3)]>=_0x37e995&&_0x3000cb[_0xdcbfff(0x1a3)]<_0x25bcb1&&(_0x3000cb[_0xdcbfff(0x1a3)]+=_0x1d9b01);});}function _0x3bb092(_0x5d3269,_0x521375,_0x4c495f,_0x454d1e){const _0xbebd52=_0x1561b4;_0x5d3269==null||_0x5d3269[_0xbebd52(0x20d)](_0x647441=>{_0x647441['st']>=_0x521375&&_0x647441['st']<_0x4c495f?(_0x647441['st']+=_0x454d1e,_0x647441['ed']+=_0x454d1e):_0x647441['ed']>_0x521375&&_0x647441['ed']<_0x4c495f&&(_0x647441['ed']+=_0x454d1e);});}function _0x3c3aa8(_0x35d2eb,_0x54d51c,_0x50be00,_0xd11676){_0x35d2eb==null||_0x35d2eb['forEach'](_0x5ba98a=>{const _0x12e0ec=_0x278e;_0x5ba98a[_0x12e0ec(0x1a3)]>=_0x54d51c&&_0x5ba98a[_0x12e0ec(0x1a3)]<_0x50be00?(_0x5ba98a['startIndex']+=_0xd11676,_0x5ba98a[_0x12e0ec(0x188)]+=_0xd11676):_0x5ba98a['endIndex']>_0x54d51c&&_0x5ba98a[_0x12e0ec(0x188)]<_0x50be00&&(_0x5ba98a[_0x12e0ec(0x188)]+=_0xd11676);});}function _0x3b9498(_0x1a9f0b){'@babel/helpers - typeof';const _0x3835f8=_0x1561b4;return _0x3b9498=typeof Symbol=='function'&&typeof Symbol[_0x3835f8(0x1d3)]=='symbol'?function(_0x141898){return typeof _0x141898;}:function(_0x229c8d){const _0x1daa28=_0x3835f8;return _0x229c8d&&typeof Symbol=='function'&&_0x229c8d[_0x1daa28(0x192)]===Symbol&&_0x229c8d!==Symbol[_0x1daa28(0x1ae)]?'symbol':typeof _0x229c8d;},_0x3b9498(_0x1a9f0b);}function _0xf9f8be(_0x28eb55,_0x2b42d7){const _0x3ff7b8=_0x1561b4;if(_0x3b9498(_0x28eb55)!=_0x3ff7b8(0x1de)||!_0x28eb55)return _0x28eb55;var _0x43a98c=_0x28eb55[Symbol[_0x3ff7b8(0x1bb)]];if(_0x43a98c!==void 0x0){var _0x53501c=_0x43a98c[_0x3ff7b8(0x1a5)](_0x28eb55,_0x2b42d7||_0x3ff7b8(0x20e));if(_0x3b9498(_0x53501c)!=_0x3ff7b8(0x1de))return _0x53501c;throw TypeError(_0x3ff7b8(0x1f5));}return(_0x2b42d7==='string'?String:Number)(_0x28eb55);}function _0x253641(_0x2fbe8f){const _0x3f357a=_0x1561b4;var _0x55434f=_0xf9f8be(_0x2fbe8f,_0x3f357a(0x18b));return _0x3b9498(_0x55434f)==_0x3f357a(0x20b)?_0x55434f:_0x55434f+'';}function _0x2da588(_0x44fd97,_0xc33269,_0x2b0a60){const _0x3420cf=_0x1561b4;return(_0xc33269=_0x253641(_0xc33269))in _0x44fd97?Object[_0x3420cf(0x194)](_0x44fd97,_0xc33269,{'value':_0x2b0a60,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x44fd97[_0xc33269]=_0x2b0a60,_0x44fd97;}var _0x441772=class extends _0x46435e[_0x1561b4(0x176)]{constructor(..._0x3c48dc){const _0x13f64a=_0x1561b4;super(..._0x3c48dc),_0x2da588(this,'_resources',new Map()),_0x2da588(this,_0x13f64a(0x186),new _0x396a6c[(_0x13f64a(0x1e0))]()),_0x2da588(this,'change$',this[_0x13f64a(0x186)][_0x13f64a(0x1cd)]());}['getCodeConfig'](_0x356e3d,_0x1b61e9){const _0x1226a7=_0x1561b4;return _0x6a2108(this[_0x1226a7(0x208)][_0x1226a7(0x1b4)](_0x356e3d))[_0x1226a7(0x19d)][_0x1b61e9];}[_0x1561b4(0x1c1)](_0x365098,_0x319b57,_0x4319d4){const _0x45822e=_0x1561b4;this[_0x45822e(0x1c5)](_0x365098,_0x319b57,_0x33e65b(this[_0x45822e(0x208)][_0x45822e(0x1b4)](_0x365098),_0x319b57,_0x4319d4));}[_0x1561b4(0x203)](_0x3455d7,_0x4fb15d){const _0x12f2fa=_0x1561b4;this['_setResource'](_0x3455d7,_0x4fb15d,_0x3256fc(this[_0x12f2fa(0x208)][_0x12f2fa(0x1b4)](_0x3455d7),_0x4fb15d));}[_0x1561b4(0x1c9)](_0x50ec2d){const _0x5acf55=_0x1561b4;return _0x6a2108(this[_0x5acf55(0x208)]['get'](_0x50ec2d));}['deserialize'](_0x56fc1f,_0x24d473){const _0xf4795b=_0x1561b4;this[_0xf4795b(0x208)][_0xf4795b(0x1c8)](_0x56fc1f,_0x6a2108(_0x24d473)),this[_0xf4795b(0x186)][_0xf4795b(0x19a)]({'unitId':_0x56fc1f});}[_0x1561b4(0x1cf)](_0x232adc){const _0x59914e=_0x1561b4;this[_0x59914e(0x208)]['delete'](_0x232adc),this[_0x59914e(0x186)][_0x59914e(0x19a)]({'unitId':_0x232adc});}[_0x1561b4(0x1e3)](){const _0x44ae08=_0x1561b4;super[_0x44ae08(0x1e3)](),this['_resources']['clear'](),this['_change$']['complete']();}[_0x1561b4(0x1c5)](_0x14fcf8,_0x5424ff,_0x3e07d4){const _0x2806db=_0x1561b4;this['_resources'][_0x2806db(0x1c8)](_0x14fcf8,_0x3e07d4),this['_change$'][_0x2806db(0x19a)]({'unitId':_0x14fcf8,'blockId':_0x5424ff});}};let _0x4d76db={'id':_0x1561b4(0x1e5),'type':_0x46435e[_0x1561b4(0x1a1)][_0x1561b4(0x1c2)],'handler':_0x5bb5db=>{const _0x492ab1=_0x1561b4;let _0x1ee93c=_0x4c7637(_0x5bb5db);if(_0x1ee93c)return _0x5bb5db[_0x492ab1(0x1b4)](_0x46435e[_0x492ab1(0x214)])[_0x492ab1(0x17a)](_0x316f20['id'],{'startOffset':_0x1ee93c[_0x492ab1(0x1d4)],'endOffset':_0x1ee93c[_0x492ab1(0x1fd)],'unitId':_0x1ee93c[_0x492ab1(0x18e)]});let _0x3188bb=_0x219578(_0x5bb5db);if(!_0x3188bb)return!0x1;let _0x16567c=_0x3188bb[_0x492ab1(0x1a3)]+0x1;return _0x5bb5db[_0x492ab1(0x1b4)](_0x46435e[_0x492ab1(0x214)])['syncExecuteCommand'](_0x316f20['id'],{'startOffset':_0x16567c,'endOffset':_0x16567c});}},_0x5261c2={'id':'docs-code.command.consume-boundary-delete','type':_0x46435e['CommandType'][_0x1561b4(0x1c2)],'handler':()=>!0x0},_0x316f20={'id':'docs-code.command.insert','type':_0x46435e[_0x1561b4(0x1a1)][_0x1561b4(0x1c2)],'handler':(_0x29973f,_0x47ee88)=>{const _0x1565fd=_0x1561b4;var _0x9f1b8c,_0x4af712,_0x1b0269;let _0xa2e8a4=_0x440ef6(_0x29973f,_0x47ee88==null?void 0x0:_0x47ee88['unitId']);if(!_0xa2e8a4)return!0x1;let _0x3a11a6=_0x54e2e0(_0x29973f),_0x4eea34=_0xc95d98({'blockId':(_0x9f1b8c=_0x47ee88==null?void 0x0:_0x47ee88[_0x1565fd(0x21b)])==null?(0x0,_0x46435e[_0x1565fd(0x170)])(0x6):_0x9f1b8c,'config':_0x47ee88==null?void 0x0:_0x47ee88[_0x1565fd(0x1d0)],'documentData':_0xa2e8a4[_0x1565fd(0x181)],'endOffset':(_0x4af712=_0x47ee88==null?void 0x0:_0x47ee88[_0x1565fd(0x1fd)])==null?_0x3a11a6==null?void 0x0:_0x3a11a6[_0x1565fd(0x1fd)]:_0x4af712,'metadata':_0xa2e8a4[_0x1565fd(0x1a4)][_0x1565fd(0x1c9)](_0xa2e8a4[_0x1565fd(0x18e)]),'startOffset':(_0x1b0269=_0x47ee88==null?void 0x0:_0x47ee88['startOffset'])==null?_0x3a11a6==null?void 0x0:_0x3a11a6['startOffset']:_0x1b0269}),_0x27df9d=_0x4e2634(_0xa2e8a4['commandService'],_0xa2e8a4['unitId'],_0xa2e8a4[_0x1565fd(0x181)],_0x4eea34['nextDocumentData'],_0x4eea34[_0x1565fd(0x175)]);return _0x27df9d&&_0x4eea34['nextMetadata']&&_0xa2e8a4[_0x1565fd(0x1a4)][_0x1565fd(0x1b3)](_0xa2e8a4[_0x1565fd(0x18e)],_0x4eea34[_0x1565fd(0x1ff)]),_0x27df9d;}},_0x401257={'id':_0x1561b4(0x218),'type':_0x46435e[_0x1561b4(0x1a1)][_0x1561b4(0x1c2)],'handler':(_0x2c12f4,_0xee9bf5)=>{const _0x40505b=_0x1561b4;if(!_0xee9bf5)return!0x1;let _0xdc317b=_0x440ef6(_0x2c12f4,_0xee9bf5[_0x40505b(0x18e)]);if(!_0xdc317b)return!0x1;let _0x135858=_0x15ef84({'blockId':_0xee9bf5[_0x40505b(0x21b)],'config':_0xee9bf5[_0x40505b(0x1d0)],'documentData':_0xdc317b['previousDocumentData'],'metadata':_0xdc317b[_0x40505b(0x1a4)][_0x40505b(0x1c9)](_0xdc317b[_0x40505b(0x18e)])});return _0x135858['nextMetadata']&&_0xdc317b[_0x40505b(0x1a4)][_0x40505b(0x1b3)](_0xdc317b[_0x40505b(0x18e)],_0x135858['nextMetadata']),!0x0;}},_0x50b50b={'id':_0x1561b4(0x197),'type':_0x46435e[_0x1561b4(0x1a1)]['COMMAND'],'handler':(_0x670e9c,_0x133b3c)=>{const _0x294013=_0x1561b4;var _0x3a9101,_0x41aa0b;let _0x45a23=_0x440ef6(_0x670e9c,_0x133b3c==null?void 0x0:_0x133b3c['unitId']);if(!_0x45a23)return!0x1;let _0xd3d599=(_0x3a9101=_0x133b3c==null?void 0x0:_0x133b3c[_0x294013(0x175)])==null?(_0x41aa0b=_0x54e2e0(_0x670e9c))==null?void 0x0:_0x41aa0b['startOffset']:_0x3a9101;if(_0xd3d599==null)return!0x1;let _0x24fbe7=_0x5a7a0f({'cursorOffset':_0xd3d599,'documentData':_0x45a23[_0x294013(0x181)]});return _0x24fbe7?_0x4e2634(_0x45a23['commandService'],_0x45a23[_0x294013(0x18e)],_0x45a23[_0x294013(0x181)],_0x24fbe7[_0x294013(0x1e8)],_0x24fbe7[_0x294013(0x175)]):!0x1;}},_0x441223={'id':_0x1561b4(0x177),'type':_0x46435e[_0x1561b4(0x1a1)][_0x1561b4(0x1c2)],'handler':(_0x313dea,_0x1be8d4)=>{const _0x439871=_0x1561b4;var _0x25495f,_0x22ca5d;let _0x4cf659=_0x440ef6(_0x313dea,_0x1be8d4==null?void 0x0:_0x1be8d4['unitId']);if(!_0x4cf659)return!0x1;let _0x1e4668=(_0x25495f=_0x1be8d4==null?void 0x0:_0x1be8d4[_0x439871(0x175)])==null?(_0x22ca5d=_0x54e2e0(_0x313dea))==null?void 0x0:_0x22ca5d['startOffset']:_0x25495f;if(_0x1e4668==null)return!0x1;let _0x1dd13a=_0x2e07a0({'cursorOffset':_0x1e4668,'documentData':_0x4cf659[_0x439871(0x181)],'paragraphStartIndex':_0x1be8d4==null?void 0x0:_0x1be8d4[_0x439871(0x1fa)]});return _0x1dd13a?_0x4e2634(_0x4cf659['commandService'],_0x4cf659['unitId'],_0x4cf659[_0x439871(0x181)],_0x1dd13a[_0x439871(0x1e8)],_0x1dd13a[_0x439871(0x175)]):!0x1;}};function _0x440ef6(_0x2bb1a1,_0x254249){const _0x18dd4e=_0x1561b4;let _0x3b60ef=_0x2bb1a1[_0x18dd4e(0x1b4)](_0x46435e['IUniverInstanceService']),_0x42c52d=_0x254249?_0x3b60ef[_0x18dd4e(0x1eb)](_0x254249):_0x3b60ef[_0x18dd4e(0x1b7)](_0x46435e['UniverInstanceType'][_0x18dd4e(0x20c)]);return _0x42c52d?{'commandService':_0x2bb1a1[_0x18dd4e(0x1b4)](_0x46435e[_0x18dd4e(0x214)]),'model':_0x2bb1a1[_0x18dd4e(0x1b4)](_0x441772),'previousDocumentData':_0x42c52d[_0x18dd4e(0x18d)](),'unitId':_0x42c52d[_0x18dd4e(0x1db)]()}:null;}function _0x54e2e0(_0x2d1aa6){const _0xeb4d5b=_0x1561b4;var _0x28285b;return(_0x28285b=_0x2d1aa6[_0xeb4d5b(0x1b4)](_0x4c8527['DocSelectionManagerService'])[_0xeb4d5b(0x1f7)]())==null?void 0x0:_0x28285b[0x0];}function _0x4c7637(_0x150c1c){const _0x5a4cad=_0x1561b4;var _0x2759a4;let _0x338fb3=(_0x2759a4=_0x150c1c['get'](_0x46435e[_0x5a4cad(0x1a6)])[_0x5a4cad(0x1b7)](_0x46435e[_0x5a4cad(0x183)][_0x5a4cad(0x20c)]))==null?void 0x0:_0x2759a4[_0x5a4cad(0x1db)]();try{return _0x150c1c[_0x5a4cad(0x1b4)](_0x4c8527[_0x5a4cad(0x1ab)])['consumeInsertRange'](_0x338fb3);}catch{return null;}}function _0x219578(_0x1af16a){const _0x36f518=_0x1561b4;var _0x53df11,_0x48bdf5,_0x100521;let _0x24cbff=_0x54e2e0(_0x1af16a);if(!_0x24cbff)return null;let _0x20153d=_0x1af16a[_0x36f518(0x1b4)](_0x46435e[_0x36f518(0x1a6)])['getCurrentUnitOfType'](_0x46435e[_0x36f518(0x183)]['UNIVER_DOC']),_0x286323=_0x20153d==null?void 0x0:_0x20153d[_0x36f518(0x1c4)]();return _0x286323?(_0x53df11=_0x46435e['BuildTextUtils'][_0x36f518(0x1a8)]['getParagraphsInRange'](_0x24cbff,(_0x48bdf5=_0x286323['paragraphs'])==null?[]:_0x48bdf5,(_0x100521=_0x286323['dataStream'])==null?'':_0x100521)[0x0])==null?null:_0x53df11:null;}function _0x1b54a6(_0x139494,_0x216d4a){const _0x4843b7=_0x1561b4;var _0x421afb,_0x5f4ad0,_0x59b334,_0xc59def,_0x1c1044,_0x3d4019,_0x513194,_0x438e01,_0x14c80d,_0x2e8308,_0x2347c4,_0x1cfbc1,_0x57e812,_0x471165,_0x54c16e,_0x378766,_0x17a834,_0x48f348;let _0x4b6c3e=_0x46435e['JSONX'][_0x4843b7(0x182)]();return[_0x499d22(_0x4b6c3e,[_0x4843b7(0x1e2),_0x4843b7(0x210)],(_0x421afb=_0x139494[_0x4843b7(0x1e2)])==null?void 0x0:_0x421afb['dataStream'],(_0x5f4ad0=_0x216d4a[_0x4843b7(0x1e2)])==null?void 0x0:_0x5f4ad0[_0x4843b7(0x210)]),_0x499d22(_0x4b6c3e,[_0x4843b7(0x1e2),_0x4843b7(0x179)],(_0x59b334=_0x139494[_0x4843b7(0x1e2)])==null?void 0x0:_0x59b334[_0x4843b7(0x179)],(_0xc59def=_0x216d4a[_0x4843b7(0x1e2)])==null?void 0x0:_0xc59def['paragraphs']),_0x499d22(_0x4b6c3e,[_0x4843b7(0x1e2),'sectionBreaks'],(_0x1c1044=_0x139494['body'])==null?void 0x0:_0x1c1044[_0x4843b7(0x1e7)],(_0x3d4019=_0x216d4a[_0x4843b7(0x1e2)])==null?void 0x0:_0x3d4019[_0x4843b7(0x1e7)]),_0x499d22(_0x4b6c3e,['body',_0x4843b7(0x1fc)],(_0x513194=_0x139494[_0x4843b7(0x1e2)])==null?void 0x0:_0x513194['textRuns'],(_0x438e01=_0x216d4a[_0x4843b7(0x1e2)])==null?void 0x0:_0x438e01[_0x4843b7(0x1fc)]),_0x499d22(_0x4b6c3e,[_0x4843b7(0x1e2),'customBlocks'],(_0x14c80d=_0x139494[_0x4843b7(0x1e2)])==null?void 0x0:_0x14c80d[_0x4843b7(0x20a)],(_0x2e8308=_0x216d4a['body'])==null?void 0x0:_0x2e8308[_0x4843b7(0x20a)]),_0x499d22(_0x4b6c3e,['body',_0x4843b7(0x16f)],(_0x2347c4=_0x139494[_0x4843b7(0x1e2)])==null?void 0x0:_0x2347c4[_0x4843b7(0x16f)],(_0x1cfbc1=_0x216d4a[_0x4843b7(0x1e2)])==null?void 0x0:_0x1cfbc1[_0x4843b7(0x16f)]),_0x499d22(_0x4b6c3e,[_0x4843b7(0x1e2),_0x4843b7(0x19c)],(_0x57e812=_0x139494[_0x4843b7(0x1e2)])==null?void 0x0:_0x57e812[_0x4843b7(0x19c)],(_0x471165=_0x216d4a[_0x4843b7(0x1e2)])==null?void 0x0:_0x471165[_0x4843b7(0x19c)]),_0x499d22(_0x4b6c3e,[_0x4843b7(0x1e2),_0x4843b7(0x17b)],(_0x54c16e=_0x139494['body'])==null?void 0x0:_0x54c16e[_0x4843b7(0x17b)],(_0x378766=_0x216d4a[_0x4843b7(0x1e2)])==null?void 0x0:_0x378766[_0x4843b7(0x17b)]),_0x499d22(_0x4b6c3e,['body',_0x4843b7(0x205)],(_0x17a834=_0x139494[_0x4843b7(0x1e2)])==null?void 0x0:_0x17a834[_0x4843b7(0x205)],(_0x48f348=_0x216d4a['body'])==null?void 0x0:_0x48f348['blockRanges'])][_0x4843b7(0x190)](Boolean)[_0x4843b7(0x1e4)]((_0x2ceb1d,_0x2dade9)=>_0x46435e['JSONX'][_0x4843b7(0x1f0)](_0x2ceb1d,_0x2dade9),null);}function _0x499d22(_0x1ac1ff,_0x5959c4,_0x507162,_0x1e5b9c){const _0x545ea7=_0x1561b4;return _0x46435e[_0x545ea7(0x1fb)][_0x545ea7(0x21a)](_0x507162,_0x1e5b9c)?null:_0x1ac1ff['replaceOp'](_0x5959c4,_0x507162,_0x1e5b9c);}function _0x4e2634(_0x21d493,_0x4073fa,_0x44d68b,_0x3b211c,_0x5c62a9){const _0x1bc2d2=_0x1561b4;let _0x38f705=_0x1b54a6(_0x44d68b,_0x3b211c);return _0x38f705?!!_0x21d493['syncExecuteCommand'](_0x4c8527[_0x1bc2d2(0x1f8)]['id'],{'unitId':_0x4073fa,'actions':_0x38f705,'textRanges':[{'startOffset':_0x5c62a9,'endOffset':_0x5c62a9,'collapsed':!0x0}],'isEditing':!0x1}):!0x1;}let _0xd05cab=_0x1561b4(0x1f6);var _0x7bd3e9=_0x1561b4(0x1d7),_0x4a3ee6='0.25.0-insiders.20260613-a210f12';let _0x1534c7={};function _0xe5930(_0x55c37a,_0x47f8d9){return function(_0x611b1b,_0x33d24f){_0x47f8d9(_0x611b1b,_0x33d24f,_0x55c37a);};}function _0x1a9033(_0x22cea1,_0x47ddbd,_0x8c8f20,_0x5f3ca5){const _0x1498d5=_0x1561b4;var _0x407f5d=arguments['length'],_0x2cc6f1=_0x407f5d<0x3?_0x47ddbd:_0x5f3ca5===null?_0x5f3ca5=Object[_0x1498d5(0x174)](_0x47ddbd,_0x8c8f20):_0x5f3ca5,_0x4b07ec;if(typeof Reflect==_0x1498d5(0x1de)&&typeof Reflect[_0x1498d5(0x1bf)]==_0x1498d5(0x180))_0x2cc6f1=Reflect[_0x1498d5(0x1bf)](_0x22cea1,_0x47ddbd,_0x8c8f20,_0x5f3ca5);else{for(var _0x4d1fcb=_0x22cea1[_0x1498d5(0x1b9)]-0x1;_0x4d1fcb>=0x0;_0x4d1fcb--)(_0x4b07ec=_0x22cea1[_0x4d1fcb])&&(_0x2cc6f1=(_0x407f5d<0x3?_0x4b07ec(_0x2cc6f1):_0x407f5d>0x3?_0x4b07ec(_0x47ddbd,_0x8c8f20,_0x2cc6f1):_0x4b07ec(_0x47ddbd,_0x8c8f20))||_0x2cc6f1);}return _0x407f5d>0x3&&_0x2cc6f1&&Object[_0x1498d5(0x194)](_0x47ddbd,_0x8c8f20,_0x2cc6f1),_0x2cc6f1;}let _0x3c36ca=class extends _0x46435e['Disposable']{constructor(_0x110fa7,_0x57f81c){const _0x46298d=_0x1561b4;super(),this[_0x46298d(0x199)]=_0x110fa7,this[_0x46298d(0x1df)]=_0x57f81c,this['_initResource']();}[_0x1561b4(0x1c0)](){const _0x38987a=_0x1561b4;this[_0x38987a(0x1e1)](this[_0x38987a(0x199)][_0x38987a(0x1f1)]({'pluginName':_0xd05cab,'businesses':[_0x46435e['UniverInstanceType'][_0x38987a(0x20c)]],'toJson':_0x383645=>JSON['stringify'](this[_0x38987a(0x1df)]['serialize'](_0x383645)),'parseJson':_0x21ef0c=>_0x6a2108(JSON[_0x38987a(0x171)](_0x21ef0c)),'onLoad':(_0x41f2d3,_0x3c3c59)=>this[_0x38987a(0x1df)][_0x38987a(0x1b3)](_0x41f2d3,_0x3c3c59),'onUnLoad':_0xc36a0=>this[_0x38987a(0x1df)][_0x38987a(0x1cf)](_0xc36a0)}));}};_0x3c36ca=_0x1a9033([_0xe5930(0x0,_0x46435e['IResourceManagerService']),_0xe5930(0x1,(0x0,_0x46435e['Inject'])(_0x441772))],_0x3c36ca);let _0x3bbfac=class extends _0x46435e[_0x1561b4(0x1af)]{constructor(_0x2b949b=_0x1534c7,_0x9f554f,_0x298347,_0x11b50d){const _0x26646d=_0x1561b4;super(),this[_0x26646d(0x195)]=_0x2b949b,this['_injector']=_0x9f554f,this[_0x26646d(0x1e9)]=_0x298347,this[_0x26646d(0x1d6)]=_0x11b50d;let {..._0x456009}=(0x0,_0x46435e['merge'])({},_0x1534c7,this[_0x26646d(0x195)]);this[_0x26646d(0x1d6)][_0x26646d(0x1cc)]('docs-code.config',_0x456009);}['onStarting'](){const _0x238b62=_0x1561b4;this[_0x238b62(0x1f9)][_0x238b62(0x17d)]([_0x441772]),this[_0x238b62(0x1f9)][_0x238b62(0x17d)]([_0x3c36ca]),this['_injector']['get'](_0x441772),this['_injector'][_0x238b62(0x1b4)](_0x3c36ca),[_0x316f20,_0x4d76db,_0x401257,_0x50b50b,_0x441223,_0x5261c2][_0x238b62(0x20d)](_0xecb985=>this['disposeWithMe'](this[_0x238b62(0x1e9)][_0x238b62(0x18f)](_0xecb985)));}};_0x2da588(_0x3bbfac,_0x1561b4(0x1ee),_0xd05cab),_0x2da588(_0x3bbfac,_0x1561b4(0x200),_0x7bd3e9),_0x2da588(_0x3bbfac,_0x1561b4(0x19f),_0x4a3ee6),_0x2da588(_0x3bbfac,_0x1561b4(0x217),_0x46435e['UniverInstanceType'][_0x1561b4(0x20c)]),_0x3bbfac=_0x1a9033([(0x0,_0x46435e[_0x1561b4(0x1d8)])(_0x5647fb[_0x1561b4(0x1d5)],_0x4c8527[_0x1561b4(0x206)]),_0xe5930(0x1,(0x0,_0x46435e[_0x1561b4(0x172)])(_0x46435e['Injector'])),_0xe5930(0x2,_0x46435e[_0x1561b4(0x214)]),_0xe5930(0x3,_0x46435e['IConfigService'])],_0x3bbfac),_0x8da04c['DEFAULT_CODE_CONFIG']=_0x453d79,_0x8da04c['DOCS_CODE_PLUGIN']=_0xd05cab,_0x8da04c[_0x1561b4(0x189)]=_0x441223,_0x8da04c[_0x1561b4(0x1d2)]=_0x5261c2,_0x8da04c[_0x1561b4(0x1ce)]=_0x50b50b,_0x8da04c[_0x1561b4(0x1bc)]=_0x4d76db,_0x8da04c['DocsCodeInsertCommand']=_0x316f20,_0x8da04c[_0x1561b4(0x173)]=_0x441772,_0x8da04c[_0x1561b4(0x19b)]=_0x401257,Object[_0x1561b4(0x194)](_0x8da04c,_0x1561b4(0x1da),{'enumerable':!0x0,'get':function(){return _0x3bbfac;}}),_0x8da04c[_0x1561b4(0x18a)]=_0x2e07a0,_0x8da04c[_0x1561b4(0x196)]=_0x5a7a0f,_0x8da04c[_0x1561b4(0x1cb)]=_0xc95d98,_0x8da04c['buildUpdateCodeActions']=_0x15ef84,_0x8da04c[_0x1561b4(0x1c6)]=_0x27d490,_0x8da04c['isCodeBoundaryDelete']=_0x3b0df6,_0x8da04c[_0x1561b4(0x20f)]=_0x351482;}));function _0x278e(_0x3eaa46,_0x2bc4cf){_0x3eaa46=_0x3eaa46-0x16e;const _0x38f2fa=_0x38f2();let _0x278e03=_0x38f2fa[_0x3eaa46];return _0x278e03;}function _0x38f2(){const _0x277f4f=['@univerjs/core','textStyle','min','ICommandService','exports','SECTION_BREAK','type','docs-code.command.update','javascript','diffValue','blockId','872684alqPKc','customRanges','generateRandomId','parse','Inject','DocsCodeModel','getOwnPropertyDescriptor','cursorOffset','Disposable','docs-code.command.cancel-empty-paragraph','indentStart','paragraphs','syncExecuteCommand','tables','metadata','add','some','10LzBAUC','function','previousDocumentData','getInstance','UniverInstanceType','find','left','_change$','DocumentBlockRangeType','endIndex','DocsCodeCancelEmptyParagraphCommand','buildCancelEmptyCodeParagraphActions','string','monospace','getSnapshot','unitId','registerCommand','filter','3343248WemwHq','constructor','UniverProLicense','defineProperty','_config','buildExitCodeActions','docs-code.command.exit','UniverDocs','_resourceManagerService','next','DocsCodeUpdateCommand','customDecorations','codes','createParagraphId','version','slice','CommandType','UniverCore','startIndex','model','call','IUniverInstanceService','from','range','max','2039816todyvG','DocContentInsertService','join','endTokenOffset','prototype','Plugin','BLOCK_END','toStringTag','blockType','deserialize','get','map','every','getCurrentUnitOfType','5CYuENu','length','documentData','toPrimitive','DocsCodeInsertBelowCommand','@univerjs/docs','18361vFTFIQ','decorate','_initResource','setCodeConfig','COMMAND','@univerjs-pro/license','getBody','_setResource','findCodeRangeAtOffset','amd','set','serialize','direction','buildInsertCodeActions','setConfig','asObservable','DocsCodeExitCommand','removeUnit','config','paragraph','DocsCodeConsumeBoundaryDeleteCommand','iterator','startOffset','UniverLicensePlugin','_configService','@univerjs-pro/docs-code','DependentOn','endsWith','UniverDocsCodePlugin','getUnitId','spaceAbove','CODE','object','_docsCodeModel','Subject','disposeWithMe','body','dispose','reduce','docs-code.command.insert-below','1744pPzUkw','sectionBreaks','nextDocumentData','_commandService','indexOf','getUniverDocInstance','30073923FHxKBu','entries','pluginName','6798426zaiOhk','compose','registerPluginResource','paragraphStyle','3qLYSxv','paragraphId','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','DOC_CODE_PLUGIN','getTextRanges','RichTextEditingMutation','_injector','paragraphStartIndex','Tools','textRuns','endOffset','PARAGRAPH','nextMetadata','packageName','sort','DataStreamTreeTokenType','removeCode','BLOCK_START','blockRanges','UniverDocsPlugin','1174791dlNJMY','_resources','deepClone','customBlocks','symbol','UNIVER_DOC','forEach','default','normalizeDocsCodeConfig','dataStream'];_0x38f2=function(){return _0x277f4f;};return _0x38f2();}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/docs-code",
3
- "version": "0.25.0-insiders.20260608-e4336f7",
3
+ "version": "0.25.0-insiders.20260613-a210f12",
4
4
  "private": false,
5
5
  "description": "Code block model integration for Univer Docs.",
6
6
  "author": "DreamNum Co., Ltd. <developer@univer.ai>",
@@ -61,9 +61,9 @@
61
61
  "rxjs": ">=7.0.0"
62
62
  },
63
63
  "dependencies": {
64
- "@univerjs-pro/license": "0.25.0-insiders.20260608-e4336f7",
65
- "@univerjs/docs": "0.25.0-insiders.20260608-e4336f7",
66
- "@univerjs/core": "0.25.0-insiders.20260608-e4336f7"
64
+ "@univerjs-pro/license": "0.25.0-insiders.20260613-a210f12",
65
+ "@univerjs/core": "0.25.0-insiders.20260613-a210f12",
66
+ "@univerjs/docs": "0.25.0-insiders.20260613-a210f12"
67
67
  },
68
68
  "devDependencies": {
69
69
  "rxjs": "7.8.2",