@univerjs-pro/docs-code 1.0.0-alpha.1 → 1.0.0-insiders.20260629-12f2e44

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 _0xcc822a=_0x3d5d;(function(_0x16c708,_0x49b662){var _0x5462f8=_0x3d5d,_0x5009a4=_0x16c708();while(!![]){try{var _0x24a2f2=parseInt(_0x5462f8(0x1e7))/0x1+parseInt(_0x5462f8(0x1d5))/0x2*(-parseInt(_0x5462f8(0x1d9))/0x3)+-parseInt(_0x5462f8(0x213))/0x4+-parseInt(_0x5462f8(0x1cd))/0x5+-parseInt(_0x5462f8(0x1e4))/0x6+parseInt(_0x5462f8(0x1d0))/0x7*(parseInt(_0x5462f8(0x1e5))/0x8)+parseInt(_0x5462f8(0x1d8))/0x9;if(_0x24a2f2===_0x49b662)break;else _0x5009a4['push'](_0x5009a4['shift']());}catch(_0x12021d){_0x5009a4['push'](_0x5009a4['shift']());}}}(_0x41a6,0x9a363),Object[_0xcc822a(0x1ce)](exports,Symbol[_0xcc822a(0x202)],{'value':_0xcc822a(0x20f)}));let e=require('@univerjs-pro/docs-code'),t=require('@univerjs/core'),n=require('@univerjs/docs/facade');function r(_0x401ed1){'@babel/helpers - typeof';var _0x3bbb65=_0xcc822a;return r=typeof Symbol=='function'&&typeof Symbol[_0x3bbb65(0x211)]==_0x3bbb65(0x214)?function(_0x4c7456){return typeof _0x4c7456;}:function(_0x346c57){var _0x588260=_0x3bbb65;return _0x346c57&&typeof Symbol==_0x588260(0x20b)&&_0x346c57[_0x588260(0x216)]===Symbol&&_0x346c57!==Symbol[_0x588260(0x1f0)]?_0x588260(0x214):typeof _0x346c57;},r(_0x401ed1);}function _0x41a6(){var _0x561c89=['includes','normalizeDocsCodeConfig','replace','DocsCodeExitCommand','find','_getDocumentData','PARAGRAPH','function','join','from','getText','Module','DocumentBlockRangeType','iterator','DataStreamTreeTokenType','2554812xuCiEI','symbol','endIndex','constructor','_createFDocumentCode','getRange','getCodes','blockRanges','generateRandomId','getOwnPropertyDescriptor','paragraph','exit','_getBlockRanges','createInstance','3434615dAABsA','defineProperty','body','30282cKduHa','CODE','object','BLOCK_START','map','10eAhCph','_document','save','19454391GwSkbt','693813GZsKtC','startIndex','decorate','DocsCodeUpdateCommand','syncExecuteCommand','toPrimitive','getConfig','updateConfig','blockType','DocsCodeCancelEmptyParagraphCommand','call','971868IISoNx','24usxDEd','config','1101033ZqbUKR','_injector','getType','_blockId','blockId','some','getId','ICommandService','filter','prototype','_getBlockRange','cancelEmptyCodeParagraph','Inject','DocsCodeInsertCommand','cancelEmptyParagraph','default','describe','findCodes','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','text','string','DocsCodeModel','extend','get','length','_unitId','getCode','toStringTag','BLOCK_END'];_0x41a6=function(){return _0x561c89;};return _0x41a6();}function _0x3d5d(_0x3ce71b,_0x1df05f){_0x3ce71b=_0x3ce71b-0x1c8;var _0x41a642=_0x41a6();var _0x3d5d23=_0x41a642[_0x3ce71b];return _0x3d5d23;}function i(_0x48af18,_0x414e5c){var _0x50ab8c=_0xcc822a;if(r(_0x48af18)!=_0x50ab8c(0x1d2)||!_0x48af18)return _0x48af18;var _0x1dc945=_0x48af18[Symbol[_0x50ab8c(0x1de)]];if(_0x1dc945!==void 0x0){var _0x35f36b=_0x1dc945[_0x50ab8c(0x1e3)](_0x48af18,_0x414e5c||_0x50ab8c(0x1f6));if(r(_0x35f36b)!=_0x50ab8c(0x1d2))return _0x35f36b;throw TypeError(_0x50ab8c(0x1f9));}return(_0x414e5c==='string'?String:Number)(_0x48af18);}function a(_0x30635e){var _0xe27b05=_0xcc822a,_0x2ed3fa=i(_0x30635e,_0xe27b05(0x1fb));return r(_0x2ed3fa)=='symbol'?_0x2ed3fa:_0x2ed3fa+'';}function o(_0x528a54,_0x4cfdb3,_0x3d5dac){var _0x5eb1a9=_0xcc822a;return(_0x4cfdb3=a(_0x4cfdb3))in _0x528a54?Object[_0x5eb1a9(0x1ce)](_0x528a54,_0x4cfdb3,{'value':_0x3d5dac,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x528a54[_0x4cfdb3]=_0x3d5dac,_0x528a54;}function s(_0x402d6f,_0x17363d){return function(_0x3e24b6,_0x412a9f){_0x17363d(_0x3e24b6,_0x412a9f,_0x402d6f);};}function c(_0x1ab11b,_0x217ac6,_0x35a754,_0x5df38b){var _0x5ecdd6=_0xcc822a,_0x474191=arguments[_0x5ecdd6(0x1ff)],_0x493146=_0x474191<0x3?_0x217ac6:_0x5df38b===null?_0x5df38b=Object[_0x5ecdd6(0x1c8)](_0x217ac6,_0x35a754):_0x5df38b,_0x5776c5;if(typeof Reflect==_0x5ecdd6(0x1d2)&&typeof Reflect[_0x5ecdd6(0x1db)]==_0x5ecdd6(0x20b))_0x493146=Reflect['decorate'](_0x1ab11b,_0x217ac6,_0x35a754,_0x5df38b);else{for(var _0x2ea717=_0x1ab11b[_0x5ecdd6(0x1ff)]-0x1;_0x2ea717>=0x0;_0x2ea717--)(_0x5776c5=_0x1ab11b[_0x2ea717])&&(_0x493146=(_0x474191<0x3?_0x5776c5(_0x493146):_0x474191>0x3?_0x5776c5(_0x217ac6,_0x35a754,_0x493146):_0x5776c5(_0x217ac6,_0x35a754))||_0x493146);}return _0x474191>0x3&&_0x493146&&Object[_0x5ecdd6(0x1ce)](_0x217ac6,_0x35a754,_0x493146),_0x493146;}let l=class{constructor(_0xb5937d,_0x3dd9e0,_0x217bc4){var _0xd35042=_0xcc822a;this[_0xd35042(0x1d6)]=_0xb5937d,this['_blockId']=_0x3dd9e0,this[_0xd35042(0x1e8)]=_0x217bc4,o(this,'_unitId',void 0x0),this[_0xd35042(0x200)]=this[_0xd35042(0x1d6)][_0xd35042(0x1ed)]();}[_0xcc822a(0x1ed)](){var _0x3f9694=_0xcc822a;return this[_0x3f9694(0x1ea)];}['getRange'](){var _0x15a43f=_0xcc822a;let _0x5c5cc4=this[_0x15a43f(0x1f1)]();return _0x5c5cc4?{'blockId':_0x5c5cc4[_0x15a43f(0x1eb)],'endIndex':_0x5c5cc4[_0x15a43f(0x215)],'startIndex':_0x5c5cc4[_0x15a43f(0x1da)]}:null;}['getText'](){var _0x3bf5fc=_0xcc822a,_0x4ea47c;let _0x2b6495=this[_0x3bf5fc(0x1f1)](),_0x223d4b=(_0x4ea47c=this[_0x3bf5fc(0x209)]()[_0x3bf5fc(0x1cf)])==null?void 0x0:_0x4ea47c['dataStream'];return!_0x2b6495||!_0x223d4b?'':u(_0x223d4b['slice'](_0x2b6495[_0x3bf5fc(0x1da)]+0x1,_0x2b6495[_0x3bf5fc(0x215)]));}[_0xcc822a(0x1f7)](){var _0x2c80ad=_0xcc822a;let _0x94edfb=this['getRange']();return _0x94edfb?{..._0x94edfb,'config':this['getConfig'](),'text':this[_0x2c80ad(0x20e)](),'type':t[_0x2c80ad(0x210)][_0x2c80ad(0x1d1)]}:null;}[_0xcc822a(0x1df)](){var _0x42a97a=_0xcc822a;return(0x0,e[_0x42a97a(0x205)])(this[_0x42a97a(0x1e8)]['get'](e[_0x42a97a(0x1fc)])['getCodeConfig'](this['_unitId'],this[_0x42a97a(0x1ea)]));}[_0xcc822a(0x1e0)](_0xc87d2f){var _0x2c8670=_0xcc822a;return this[_0x2c8670(0x1e8)][_0x2c8670(0x1fe)](t[_0x2c8670(0x1ee)])[_0x2c8670(0x1dd)](e[_0x2c8670(0x1dc)]['id'],{'blockId':this[_0x2c8670(0x1ea)],'config':_0xc87d2f[_0x2c8670(0x1e6)],'unitId':this[_0x2c8670(0x200)]});}[_0xcc822a(0x1ca)](_0x5d5b57){var _0x533610=_0xcc822a;return this[_0x533610(0x1e8)][_0x533610(0x1fe)](t[_0x533610(0x1ee)])[_0x533610(0x1dd)](e['DocsCodeExitCommand']['id'],{'cursorOffset':_0x5d5b57,'unitId':this[_0x533610(0x200)]});}[_0xcc822a(0x1f5)](_0x493ecb={}){var _0x2f001c=_0xcc822a;return this[_0x2f001c(0x1e8)][_0x2f001c(0x1fe)](t[_0x2f001c(0x1ee)])['syncExecuteCommand'](e[_0x2f001c(0x1e2)]['id'],{..._0x493ecb,'unitId':this['_unitId']});}[_0xcc822a(0x209)](){var _0x1bdb0a=_0xcc822a;return this[_0x1bdb0a(0x1d6)][_0x1bdb0a(0x1d7)]();}[_0xcc822a(0x1f1)](){var _0xe594f=_0xcc822a,_0x19fb9a;let _0xb54e90=(_0x19fb9a=this[_0xe594f(0x209)]()[_0xe594f(0x1cf)])==null||(_0x19fb9a=_0x19fb9a[_0xe594f(0x21a)])==null?void 0x0:_0x19fb9a[_0xe594f(0x208)](_0x487c62=>_0x487c62[_0xe594f(0x1eb)]===this[_0xe594f(0x1ea)]&&_0x487c62[_0xe594f(0x1e1)]===t['DocumentBlockRangeType'][_0xe594f(0x1d1)]);return _0xb54e90==null?null:_0xb54e90;}};l=c([s(0x2,(0x0,t[_0xcc822a(0x1f3)])(t['Injector']))],l);function u(_0x25c847){var _0xf81f87=_0xcc822a;return Array[_0xf81f87(0x20d)](_0x25c847)[_0xf81f87(0x1d4)](_0x1dabe0=>_0x1dabe0===t[_0xf81f87(0x212)][_0xf81f87(0x20a)]?'\x0a':_0x1dabe0)[_0xf81f87(0x1ef)](_0x1a6bc4=>_0x1a6bc4!==t['DataStreamTreeTokenType'][_0xf81f87(0x1d3)]&&_0x1a6bc4!==t[_0xf81f87(0x212)][_0xf81f87(0x203)]&&_0x1a6bc4!==t[_0xf81f87(0x212)]['SECTION_BREAK'])[_0xf81f87(0x20c)]('')[_0xf81f87(0x206)](/\n$/,'');}var d=class extends n['FDocument']{[_0xcc822a(0x219)](){var _0x2689a0=_0xcc822a;return this[_0x2689a0(0x1cb)]()[_0x2689a0(0x1ef)](_0x4cdb34=>_0x4cdb34[_0x2689a0(0x1e1)]===t[_0x2689a0(0x210)][_0x2689a0(0x1d1)])['map'](_0x48f0ec=>this[_0x2689a0(0x217)](_0x48f0ec[_0x2689a0(0x1eb)]));}[_0xcc822a(0x201)](_0x5579a2){var _0x3b64e8=_0xcc822a;return this[_0x3b64e8(0x1cb)]()[_0x3b64e8(0x1ec)](_0x45a5d8=>_0x45a5d8['blockId']===_0x5579a2&&_0x45a5d8[_0x3b64e8(0x1e1)]===t['DocumentBlockRangeType'][_0x3b64e8(0x1d1)])?this[_0x3b64e8(0x217)](_0x5579a2):null;}['getCodeAt'](_0x18f772){var _0x4fc449=_0xcc822a;let _0x3bf6d6=this[_0x4fc449(0x1cb)]()[_0x4fc449(0x208)](_0x3b0210=>_0x3b0210[_0x4fc449(0x1e1)]===t[_0x4fc449(0x210)][_0x4fc449(0x1d1)]&&_0x3b0210[_0x4fc449(0x1da)]<=_0x18f772&&_0x18f772<=_0x3b0210[_0x4fc449(0x215)]);return _0x3bf6d6?this[_0x4fc449(0x217)](_0x3bf6d6[_0x4fc449(0x1eb)]):null;}['findCodeByText'](_0x353b66){var _0x40a2a7=_0xcc822a,_0x3b50b7;return(_0x3b50b7=this[_0x40a2a7(0x1f8)](_0x353b66)[0x0])==null?null:_0x3b50b7;}['findCodes'](_0x3a58a3){var _0x7a21aa=_0xcc822a;let _0xe6ab96=typeof _0x3a58a3==_0x7a21aa(0x1fb)?{'text':_0x3a58a3}:_0x3a58a3;return this['getCodes']()[_0x7a21aa(0x1ef)](_0x1fd2f2=>!(_0xe6ab96[_0x7a21aa(0x1eb)]&&_0x1fd2f2[_0x7a21aa(0x1ed)]()!==_0xe6ab96[_0x7a21aa(0x1eb)]||_0xe6ab96[_0x7a21aa(0x1fa)]&&!_0x1fd2f2[_0x7a21aa(0x20e)]()[_0x7a21aa(0x204)](_0xe6ab96[_0x7a21aa(0x1fa)])));}['insertCode'](_0x4be286={},_0x59d376={}){var _0x3efc64=_0xcc822a,_0x384b6b;let _0x3321b9=this[_0x3efc64(0x1e8)][_0x3efc64(0x1fe)](t['ICommandService']),_0x41a23c=f(_0x4be286)?{..._0x59d376,...p(_0x4be286)}:_0x4be286,_0x1c30fa=(_0x384b6b=_0x41a23c[_0x3efc64(0x1eb)])==null?(0x0,t[_0x3efc64(0x21b)])(0x6):_0x384b6b;return _0x3321b9[_0x3efc64(0x1dd)](e[_0x3efc64(0x1f4)]['id'],{..._0x41a23c,'blockId':_0x1c30fa,'unitId':this[_0x3efc64(0x1ed)]()})?this['_createFDocumentCode'](_0x1c30fa):null;}['exitCode'](_0x19e83d){var _0x472a15=_0xcc822a;return this[_0x472a15(0x1e8)][_0x472a15(0x1fe)](t[_0x472a15(0x1ee)])[_0x472a15(0x1dd)](e[_0x472a15(0x207)]['id'],{'cursorOffset':_0x19e83d,'unitId':this[_0x472a15(0x1ed)]()});}[_0xcc822a(0x1f2)](_0x3eb33e={}){var _0x3980bc=_0xcc822a;return this['_injector'][_0x3980bc(0x1fe)](t[_0x3980bc(0x1ee)])[_0x3980bc(0x1dd)](e[_0x3980bc(0x1e2)]['id'],{..._0x3eb33e,'unitId':this['getId']()});}[_0xcc822a(0x1cb)](){var _0x1270d6=_0xcc822a,_0x21478b,_0x591be0;return(_0x21478b=(_0x591be0=this[_0x1270d6(0x1d7)]()[_0x1270d6(0x1cf)])==null?void 0x0:_0x591be0[_0x1270d6(0x21a)])==null?[]:_0x21478b;}['_createFDocumentCode'](_0x237943){var _0x4abb5f=_0xcc822a;return this[_0x4abb5f(0x1e8)][_0x4abb5f(0x1cc)](l,this,_0x237943);}};function f(_0xb95f94){var _0x555e90=_0xcc822a;return typeof _0xb95f94==_0x555e90(0x1d2)&&!!_0xb95f94&&typeof _0xb95f94['getKey']==_0x555e90(0x20b)&&typeof _0xb95f94[_0x555e90(0x218)]=='function'&&typeof _0xb95f94[_0x555e90(0x1e9)]==_0x555e90(0x20b)&&_0xb95f94[_0x555e90(0x1e9)]()===_0x555e90(0x1c9);}function p(_0x470258){var _0x213b47=_0xcc822a;return _0x470258[_0x213b47(0x218)]();}n['FDocument'][_0xcc822a(0x1fd)](d),Object['defineProperty'](exports,'FDocumentCode',{'enumerable':!0x0,'get':function(){return l;}});
1
+ var _0x3ef329=_0xbb48;(function(_0x3ddedd,_0x351540){var _0x1f32d3=_0xbb48,_0x2ec39b=_0x3ddedd();while(!![]){try{var _0x4784d9=-parseInt(_0x1f32d3(0x1cd))/0x1+-parseInt(_0x1f32d3(0x1bf))/0x2*(parseInt(_0x1f32d3(0x1c9))/0x3)+parseInt(_0x1f32d3(0x1bc))/0x4+parseInt(_0x1f32d3(0x1db))/0x5*(parseInt(_0x1f32d3(0x1d3))/0x6)+parseInt(_0x1f32d3(0x1d8))/0x7*(parseInt(_0x1f32d3(0x19e))/0x8)+parseInt(_0x1f32d3(0x1c2))/0x9*(-parseInt(_0x1f32d3(0x19b))/0xa)+-parseInt(_0x1f32d3(0x1b9))/0xb;if(_0x4784d9===_0x351540)break;else _0x2ec39b['push'](_0x2ec39b['shift']());}catch(_0x95a7e1){_0x2ec39b['push'](_0x2ec39b['shift']());}}}(_0x11f8,0x2c940),Object[_0x3ef329(0x1ed)](exports,Symbol[_0x3ef329(0x1aa)],{'value':_0x3ef329(0x1a3)}));let e=require('@univerjs-pro/docs-code'),t=require('@univerjs/core'),n=require('@univerjs/docs/facade');function r(_0x35919f){'@babel/helpers - typeof';var _0x24a24a=_0x3ef329;return r=typeof Symbol==_0x24a24a(0x1ad)&&typeof Symbol['iterator']==_0x24a24a(0x1d0)?function(_0x51b908){return typeof _0x51b908;}:function(_0xacb712){var _0x3088a5=_0x24a24a;return _0xacb712&&typeof Symbol==_0x3088a5(0x1ad)&&_0xacb712[_0x3088a5(0x1b2)]===Symbol&&_0xacb712!==Symbol['prototype']?'symbol':typeof _0xacb712;},r(_0x35919f);}function _0x11f8(){var _0xeba7e5=['_getBlockRanges','symbol','getKey','DataStreamTreeTokenType','89004ZOQnsR','getCodeAt','endIndex','findCodeByText','syncExecuteCommand','77EhXKip','Injector','findCodes','55NAjoyc','DocsCodeExitCommand','PARAGRAPH','_getBlockRange','blockType','getCodeConfig','call','DocumentBlockRangeType','replace','_unitId','exitCode','BLOCK_START','CODE','createInstance','FDocument','blockRanges','length','getId','defineProperty','exit','describe','10ySADKm','body','save','155616jmBmED','string','_blockId','FDocumentCode','map','Module','DocsCodeUpdateCommand','object','DocsCodeModel','_injector','paragraph','_getDocumentData','toStringTag','getType','cancelEmptyParagraph','function','_createFDocumentCode','find','getCodes','includes','constructor','get','config','text','slice','DocsCodeInsertCommand','startIndex','611974InZGLn','_document','getText','855412SQWbcR','DocsCodeCancelEmptyParagraphCommand','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','2246ToWvqa','blockId','updateConfig','128853cGJkcT','SECTION_BREAK','from','ICommandService','extend','filter','decorate','723UMVbKz','getConfig','normalizeDocsCodeConfig','some','67813DnWgsn','getRange'];_0x11f8=function(){return _0xeba7e5;};return _0x11f8();}function i(_0x4eac0d,_0x2ac70a){var _0x47f1c2=_0x3ef329;if(r(_0x4eac0d)!=_0x47f1c2(0x1a5)||!_0x4eac0d)return _0x4eac0d;var _0x3558d8=_0x4eac0d[Symbol['toPrimitive']];if(_0x3558d8!==void 0x0){var _0x1049eb=_0x3558d8[_0x47f1c2(0x1e1)](_0x4eac0d,_0x2ac70a||'default');if(r(_0x1049eb)!=_0x47f1c2(0x1a5))return _0x1049eb;throw TypeError(_0x47f1c2(0x1be));}return(_0x2ac70a===_0x47f1c2(0x19f)?String:Number)(_0x4eac0d);}function a(_0x2cbc29){var _0x37f827=_0x3ef329,_0x1416a4=i(_0x2cbc29,_0x37f827(0x19f));return r(_0x1416a4)==_0x37f827(0x1d0)?_0x1416a4:_0x1416a4+'';}function o(_0x385537,_0x1ac65a,_0x4408cc){return(_0x1ac65a=a(_0x1ac65a))in _0x385537?Object['defineProperty'](_0x385537,_0x1ac65a,{'value':_0x4408cc,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x385537[_0x1ac65a]=_0x4408cc,_0x385537;}function s(_0x556289,_0x996aaa){return function(_0xa0cac3,_0x280030){_0x996aaa(_0xa0cac3,_0x280030,_0x556289);};}function c(_0x5d0557,_0x50a2c1,_0x12630e,_0x4861a4){var _0x422179=_0x3ef329,_0x4a9938=arguments[_0x422179(0x1eb)],_0x5c2eb5=_0x4a9938<0x3?_0x50a2c1:_0x4861a4===null?_0x4861a4=Object['getOwnPropertyDescriptor'](_0x50a2c1,_0x12630e):_0x4861a4,_0x327baf;if(typeof Reflect==_0x422179(0x1a5)&&typeof Reflect[_0x422179(0x1c8)]==_0x422179(0x1ad))_0x5c2eb5=Reflect[_0x422179(0x1c8)](_0x5d0557,_0x50a2c1,_0x12630e,_0x4861a4);else{for(var _0x2294a0=_0x5d0557[_0x422179(0x1eb)]-0x1;_0x2294a0>=0x0;_0x2294a0--)(_0x327baf=_0x5d0557[_0x2294a0])&&(_0x5c2eb5=(_0x4a9938<0x3?_0x327baf(_0x5c2eb5):_0x4a9938>0x3?_0x327baf(_0x50a2c1,_0x12630e,_0x5c2eb5):_0x327baf(_0x50a2c1,_0x12630e))||_0x5c2eb5);}return _0x4a9938>0x3&&_0x5c2eb5&&Object[_0x422179(0x1ed)](_0x50a2c1,_0x12630e,_0x5c2eb5),_0x5c2eb5;}let l=class{constructor(_0x4b46bb,_0x4a8d3f,_0x6f156b){var _0x64051c=_0x3ef329;this[_0x64051c(0x1ba)]=_0x4b46bb,this[_0x64051c(0x1a0)]=_0x4a8d3f,this[_0x64051c(0x1a7)]=_0x6f156b,o(this,_0x64051c(0x1e4),void 0x0),this[_0x64051c(0x1e4)]=this['_document']['getId']();}[_0x3ef329(0x1ec)](){return this['_blockId'];}[_0x3ef329(0x1ce)](){var _0x3ece40=_0x3ef329;let _0x246a1f=this[_0x3ece40(0x1de)]();return _0x246a1f?{'blockId':_0x246a1f[_0x3ece40(0x1c0)],'endIndex':_0x246a1f[_0x3ece40(0x1d5)],'startIndex':_0x246a1f[_0x3ece40(0x1b8)]}:null;}[_0x3ef329(0x1bb)](){var _0x39fad0=_0x3ef329,_0xb6a7a2;let _0x2f16e1=this[_0x39fad0(0x1de)](),_0x55cabb=(_0xb6a7a2=this[_0x39fad0(0x1a9)]()[_0x39fad0(0x19c)])==null?void 0x0:_0xb6a7a2['dataStream'];return!_0x2f16e1||!_0x55cabb?'':u(_0x55cabb[_0x39fad0(0x1b6)](_0x2f16e1['startIndex']+0x1,_0x2f16e1['endIndex']));}[_0x3ef329(0x19a)](){var _0x8b48e0=_0x3ef329;let _0x126d75=this[_0x8b48e0(0x1ce)]();return _0x126d75?{..._0x126d75,'config':this[_0x8b48e0(0x1ca)](),'text':this[_0x8b48e0(0x1bb)](),'type':t[_0x8b48e0(0x1e2)][_0x8b48e0(0x1e7)]}:null;}[_0x3ef329(0x1ca)](){var _0x431ae6=_0x3ef329;return(0x0,e[_0x431ae6(0x1cb)])(this[_0x431ae6(0x1a7)][_0x431ae6(0x1b3)](e[_0x431ae6(0x1a6)])[_0x431ae6(0x1e0)](this[_0x431ae6(0x1e4)],this[_0x431ae6(0x1a0)]));}[_0x3ef329(0x1c1)](_0x335fd0){var _0x59d876=_0x3ef329;return this[_0x59d876(0x1a7)][_0x59d876(0x1b3)](t[_0x59d876(0x1c5)])[_0x59d876(0x1d7)](e[_0x59d876(0x1a4)]['id'],{'blockId':this[_0x59d876(0x1a0)],'config':_0x335fd0[_0x59d876(0x1b4)],'unitId':this[_0x59d876(0x1e4)]});}[_0x3ef329(0x199)](_0x14ea6b){var _0x4b6b19=_0x3ef329;return this[_0x4b6b19(0x1a7)][_0x4b6b19(0x1b3)](t[_0x4b6b19(0x1c5)])[_0x4b6b19(0x1d7)](e[_0x4b6b19(0x1dc)]['id'],{'cursorOffset':_0x14ea6b,'unitId':this[_0x4b6b19(0x1e4)]});}[_0x3ef329(0x1ac)](_0x3846ab={}){var _0x128204=_0x3ef329;return this[_0x128204(0x1a7)]['get'](t[_0x128204(0x1c5)])[_0x128204(0x1d7)](e[_0x128204(0x1bd)]['id'],{..._0x3846ab,'unitId':this['_unitId']});}[_0x3ef329(0x1a9)](){var _0xee038c=_0x3ef329;return this['_document'][_0xee038c(0x19d)]();}['_getBlockRange'](){var _0xf3e0ab=_0x3ef329,_0x313d12;let _0x2c7f37=(_0x313d12=this[_0xf3e0ab(0x1a9)]()[_0xf3e0ab(0x19c)])==null||(_0x313d12=_0x313d12[_0xf3e0ab(0x1ea)])==null?void 0x0:_0x313d12[_0xf3e0ab(0x1af)](_0x32150d=>_0x32150d[_0xf3e0ab(0x1c0)]===this[_0xf3e0ab(0x1a0)]&&_0x32150d[_0xf3e0ab(0x1df)]===t[_0xf3e0ab(0x1e2)][_0xf3e0ab(0x1e7)]);return _0x2c7f37==null?null:_0x2c7f37;}};l=c([s(0x2,(0x0,t['Inject'])(t[_0x3ef329(0x1d9)]))],l);function u(_0x93e1a1){var _0x408447=_0x3ef329;return Array[_0x408447(0x1c4)](_0x93e1a1)[_0x408447(0x1a2)](_0x34b68c=>_0x34b68c===t[_0x408447(0x1d2)][_0x408447(0x1dd)]?'\x0a':_0x34b68c)[_0x408447(0x1c7)](_0x4bdd9f=>_0x4bdd9f!==t[_0x408447(0x1d2)][_0x408447(0x1e6)]&&_0x4bdd9f!==t[_0x408447(0x1d2)]['BLOCK_END']&&_0x4bdd9f!==t[_0x408447(0x1d2)][_0x408447(0x1c3)])['join']('')[_0x408447(0x1e3)](/\n$/,'');}var d=class extends n[_0x3ef329(0x1e9)]{[_0x3ef329(0x1b0)](){var _0x132e74=_0x3ef329;return this[_0x132e74(0x1cf)]()[_0x132e74(0x1c7)](_0x329402=>_0x329402[_0x132e74(0x1df)]===t[_0x132e74(0x1e2)][_0x132e74(0x1e7)])[_0x132e74(0x1a2)](_0x78ecd0=>this['_createFDocumentCode'](_0x78ecd0[_0x132e74(0x1c0)]));}['getCode'](_0x4c7b1b){var _0x14b939=_0x3ef329;return this[_0x14b939(0x1cf)]()[_0x14b939(0x1cc)](_0x5934d9=>_0x5934d9[_0x14b939(0x1c0)]===_0x4c7b1b&&_0x5934d9[_0x14b939(0x1df)]===t[_0x14b939(0x1e2)][_0x14b939(0x1e7)])?this['_createFDocumentCode'](_0x4c7b1b):null;}[_0x3ef329(0x1d4)](_0x4f5410){var _0x3c5e40=_0x3ef329;let _0x5eac68=this[_0x3c5e40(0x1cf)]()['find'](_0x43a3e0=>_0x43a3e0[_0x3c5e40(0x1df)]===t[_0x3c5e40(0x1e2)][_0x3c5e40(0x1e7)]&&_0x43a3e0['startIndex']<=_0x4f5410&&_0x4f5410<=_0x43a3e0[_0x3c5e40(0x1d5)]);return _0x5eac68?this[_0x3c5e40(0x1ae)](_0x5eac68[_0x3c5e40(0x1c0)]):null;}[_0x3ef329(0x1d6)](_0x16f6ac){var _0xeca904=_0x3ef329,_0x474b25;return(_0x474b25=this[_0xeca904(0x1da)](_0x16f6ac)[0x0])==null?null:_0x474b25;}[_0x3ef329(0x1da)](_0x2ced0e){var _0x3a5aea=_0x3ef329;let _0x317299=typeof _0x2ced0e==_0x3a5aea(0x19f)?{'text':_0x2ced0e}:_0x2ced0e;return this[_0x3a5aea(0x1b0)]()[_0x3a5aea(0x1c7)](_0x20eb19=>!(_0x317299[_0x3a5aea(0x1c0)]&&_0x20eb19[_0x3a5aea(0x1ec)]()!==_0x317299['blockId']||_0x317299[_0x3a5aea(0x1b5)]&&!_0x20eb19[_0x3a5aea(0x1bb)]()[_0x3a5aea(0x1b1)](_0x317299[_0x3a5aea(0x1b5)])));}['insertCode'](_0x1a8337={},_0xa111b8={}){var _0x5d4183=_0x3ef329,_0x403ccb;let _0x3eaad4=this[_0x5d4183(0x1a7)][_0x5d4183(0x1b3)](t[_0x5d4183(0x1c5)]),_0x39552c=f(_0x1a8337)?{..._0xa111b8,...p(_0x1a8337)}:_0x1a8337,_0x5d5ceb=(_0x403ccb=_0x39552c[_0x5d4183(0x1c0)])==null?(0x0,t['generateRandomId'])(0x6):_0x403ccb;return _0x3eaad4[_0x5d4183(0x1d7)](e[_0x5d4183(0x1b7)]['id'],{..._0x39552c,'blockId':_0x5d5ceb,'unitId':this[_0x5d4183(0x1ec)]()})?this[_0x5d4183(0x1ae)](_0x5d5ceb):null;}[_0x3ef329(0x1e5)](_0x4c9755){var _0x47de34=_0x3ef329;return this[_0x47de34(0x1a7)][_0x47de34(0x1b3)](t['ICommandService'])[_0x47de34(0x1d7)](e[_0x47de34(0x1dc)]['id'],{'cursorOffset':_0x4c9755,'unitId':this[_0x47de34(0x1ec)]()});}['cancelEmptyCodeParagraph'](_0x63d052={}){var _0x2f1f9f=_0x3ef329;return this[_0x2f1f9f(0x1a7)][_0x2f1f9f(0x1b3)](t[_0x2f1f9f(0x1c5)])[_0x2f1f9f(0x1d7)](e[_0x2f1f9f(0x1bd)]['id'],{..._0x63d052,'unitId':this[_0x2f1f9f(0x1ec)]()});}[_0x3ef329(0x1cf)](){var _0x48cdde=_0x3ef329,_0x216405,_0x568834;return(_0x216405=(_0x568834=this[_0x48cdde(0x19d)]()[_0x48cdde(0x19c)])==null?void 0x0:_0x568834[_0x48cdde(0x1ea)])==null?[]:_0x216405;}['_createFDocumentCode'](_0x49e8af){var _0x476704=_0x3ef329;return this['_injector'][_0x476704(0x1e8)](l,this,_0x49e8af);}};function f(_0x2a46bc){var _0x3f5f5=_0x3ef329;return typeof _0x2a46bc==_0x3f5f5(0x1a5)&&!!_0x2a46bc&&typeof _0x2a46bc[_0x3f5f5(0x1d1)]==_0x3f5f5(0x1ad)&&typeof _0x2a46bc[_0x3f5f5(0x1ce)]==_0x3f5f5(0x1ad)&&typeof _0x2a46bc[_0x3f5f5(0x1ab)]=='function'&&_0x2a46bc[_0x3f5f5(0x1ab)]()===_0x3f5f5(0x1a8);}function p(_0x390539){var _0x4be260=_0x3ef329;return _0x390539[_0x4be260(0x1ce)]();}function _0xbb48(_0x2dc286,_0x2fe105){_0x2dc286=_0x2dc286-0x199;var _0x11f88b=_0x11f8();var _0xbb48c0=_0x11f88b[_0x2dc286];return _0xbb48c0;}n[_0x3ef329(0x1e9)][_0x3ef329(0x1c6)](d),Object['defineProperty'](exports,_0x3ef329(0x1a1),{'enumerable':!0x0,'get':function(){return l;}});
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- const _0x25029f=_0x5a9f;(function(_0x3a65d5,_0x1084dd){const _0x4090b0=_0x5a9f,_0x31b12d=_0x3a65d5();while(!![]){try{const _0x2674ee=-parseInt(_0x4090b0(0x121))/0x1*(parseInt(_0x4090b0(0xc7))/0x2)+parseInt(_0x4090b0(0xa8))/0x3*(-parseInt(_0x4090b0(0x109))/0x4)+-parseInt(_0x4090b0(0x11e))/0x5+parseInt(_0x4090b0(0xcd))/0x6+-parseInt(_0x4090b0(0x10c))/0x7+parseInt(_0x4090b0(0x13e))/0x8*(parseInt(_0x4090b0(0xc3))/0x9)+parseInt(_0x4090b0(0xcf))/0xa;if(_0x2674ee===_0x1084dd)break;else _0x31b12d['push'](_0x31b12d['shift']());}catch(_0x1135ce){_0x31b12d['push'](_0x31b12d['shift']());}}}(_0x17f0,0x6767c),Object[_0x25029f(0x136)](exports,Symbol[_0x25029f(0xb0)],{'value':_0x25029f(0xf9)}));let e=require('@univerjs/core'),t=require('@univerjs/docs'),n=require('rxjs'),r=require('@univerjs-pro/license');const i={'language':_0x25029f(0xca),'showLineNumbers':!0x1,'tabSize':0x4,'wrap':!0x0};function a(_0x157b4b){return{...i,..._0x157b4b};}function o(_0x536050){const _0x594c77=_0x25029f;var _0x19af89;let _0x189267=(_0x19af89=_0x536050==null?void 0x0:_0x536050['codes'])==null?{}:_0x19af89;return{'codes':Object[_0x594c77(0x11a)](Object[_0x594c77(0x111)](_0x189267)[_0x594c77(0x148)](([_0x79a6d4,_0x4750c9])=>[_0x79a6d4,a(_0x4750c9)]))};}function s(_0x138ec4,_0x25d358,_0x24dac6){const _0x2e1123=_0x25029f;let _0x1abf33=o(_0x138ec4);return _0x1abf33[_0x2e1123(0xaf)][_0x25d358]=a({..._0x1abf33['codes'][_0x25d358],..._0x24dac6}),_0x1abf33;}function c(_0x4b42fd,_0x8564c5){const _0x33b829=_0x25029f;let _0xa5b7c2=o(_0x4b42fd);return delete _0xa5b7c2[_0x33b829(0xaf)][_0x8564c5],_0xa5b7c2;}const l='monospace';function u(_0x51100a){const _0x14a608=_0x25029f;var _0x1d03c0,_0x526ceb,_0x34e8d6;let _0x2e0ad1=w(_0x51100a[_0x14a608(0xdc)]),_0x2ef176=T(_0x2e0ad1),_0x378e9d=f(_0x51100a[_0x14a608(0xd8)],_0x51100a[_0x14a608(0x139)]),_0x5a857d=_0x378e9d?(_0x1d03c0=_0x2ef176[_0x14a608(0xbb)])==null?void 0x0:_0x1d03c0[_0x14a608(0xaa)](_0x25d8f3=>_0x25d8f3[_0x14a608(0x10b)]===_0x378e9d['startOffset']&&_0x25d8f3[_0x14a608(0x12c)]+0x1===_0x378e9d[_0x14a608(0x139)]):void 0x0,{startOffset:_0x1d3e86,endOffset:_0x472f91}=_0x5a857d?_0x378e9d:te(_0x2ef176,_0x51100a[_0x14a608(0xd8)],_0x51100a[_0x14a608(0x139)]),_0x586f0a=ie(_0x2ef176,_0x1d3e86,_0x472f91),_0x3fc888=(_0x526ceb=_0x5a857d==null?void 0x0:_0x5a857d[_0x14a608(0xda)])==null?_0x51100a[_0x14a608(0xda)]:_0x526ceb,_0x58ce21=s(_0x51100a[_0x14a608(0xd7)],_0x3fc888,{...i,..._0x51100a[_0x14a608(0xb9)]});if(_0x5a857d)return _0x5a857d[_0x14a608(0x123)]=e[_0x14a608(0x14a)][_0x14a608(0x122)],d(_0x2ef176,_0x1d3e86,_0x472f91),x(_0x2ef176,_0x1d3e86,_0x472f91,_0x586f0a),O(_0x2ef176,_0x5a857d),{'nextDocumentData':_0x2e0ad1,'nextMetadata':_0x58ce21,'cursorOffset':_0x1d3e86+0x1};if(_0x1d3e86===_0x472f91){var _0x4cb3ea,_0x31fc80;let _0x30880d=''+e[_0x14a608(0x13c)][_0x14a608(0x132)]+e['DataStreamTreeTokenType'][_0x14a608(0xf8)]+e['DataStreamTreeTokenType'][_0x14a608(0x108)];k(_0x2ef176,_0x1d3e86,_0x30880d,{'paragraphs':[{'startIndex':0x1,'paragraphId':(0x0,e[_0x14a608(0x14c)])(new Set((_0x4cb3ea=_0x2ef176[_0x14a608(0x113)])==null?void 0x0:_0x4cb3ea[_0x14a608(0x148)](_0x5618cd=>_0x5618cd[_0x14a608(0x13f)]))),'paragraphStyle':b(!0x0,!0x0,_0x586f0a)}],'blockRanges':[{'blockId':_0x3fc888,'blockType':e[_0x14a608(0x14a)][_0x14a608(0x122)],'startIndex':0x0,'endIndex':_0x30880d['length']-0x1}]});let _0x5c0348=(_0x31fc80=_0x2ef176[_0x14a608(0xbb)])==null?void 0x0:_0x31fc80['find'](_0x50cca4=>_0x50cca4[_0x14a608(0xda)]===_0x3fc888);return _0x5c0348&&O(_0x2ef176,_0x5c0348),{'nextDocumentData':_0x2e0ad1,'nextMetadata':_0x58ce21,'cursorOffset':_0x1d3e86+0x1};}k(_0x2ef176,_0x472f91,e[_0x14a608(0x13c)][_0x14a608(0x108)]),k(_0x2ef176,_0x1d3e86,e['DataStreamTreeTokenType'][_0x14a608(0x132)]),x(_0x2ef176,_0x1d3e86,_0x472f91+0x1,_0x586f0a);let _0xd5a6e8={'blockId':_0x3fc888,'blockType':e[_0x14a608(0x14a)][_0x14a608(0x122)],'startIndex':_0x1d3e86,'endIndex':_0x472f91+0x1};return _0x2ef176[_0x14a608(0xbb)]=[...(_0x34e8d6=_0x2ef176[_0x14a608(0xbb)])==null?[]:_0x34e8d6,_0xd5a6e8][_0x14a608(0xfd)]((_0x2cbdd6,_0x533910)=>_0x2cbdd6['startIndex']-_0x533910['startIndex']),O(_0x2ef176,_0xd5a6e8),{'nextDocumentData':_0x2e0ad1,'nextMetadata':_0x58ce21,'cursorOffset':_0x1d3e86+0x1};}function d(_0x2ea3fa,_0x4a608e,_0x1c3cff){const _0x2f2f94=_0x25029f;var _0x22915a;((_0x22915a=_0x2ea3fa[_0x2f2f94(0x113)])==null?[]:_0x22915a)[_0x2f2f94(0xe8)](_0x1c5b4f=>_0x1c5b4f[_0x2f2f94(0x10b)]>_0x4a608e&&_0x1c5b4f[_0x2f2f94(0x10b)]<_0x1c3cff)[_0x2f2f94(0x12e)](_0x44f5fc=>{const _0x4a5eac=_0x2f2f94;var _0xbb2233;let _0x3fb2de={...(_0xbb2233=_0x44f5fc[_0x4a5eac(0xa6)])==null?{}:_0xbb2233};delete _0x3fb2de[_0x4a5eac(0xeb)],delete _0x3fb2de['spaceBelow'],_0x44f5fc[_0x4a5eac(0xa6)]=_0x3fb2de;});}function f(_0x3a8c97,_0x1e1ad7){const _0x173622=_0x25029f;return _0x3a8c97==null||_0x1e1ad7==null||_0x3a8c97===_0x1e1ad7?null:{'startOffset':Math[_0x173622(0xcc)](_0x3a8c97,_0x1e1ad7),'endOffset':Math[_0x173622(0xb7)](_0x3a8c97,_0x1e1ad7)};}function p(_0x3116d2){const _0x4d4a05=_0x25029f;return{'nextDocumentData':w(_0x3116d2[_0x4d4a05(0xdc)]),'nextMetadata':s(_0x3116d2[_0x4d4a05(0xd7)],_0x3116d2[_0x4d4a05(0xda)],_0x3116d2[_0x4d4a05(0xb9)]),'cursorOffset':0x0};}function m(_0x2d6790){const _0x3a8660=_0x25029f;var _0x3dce45,_0x112803;let _0x500ba0=w(_0x2d6790[_0x3a8660(0xdc)]),_0x592d51=T(_0x500ba0),_0x5cfd40=y(_0x592d51,_0x2d6790[_0x3a8660(0xfc)]);if(!_0x5cfd40)return null;let _0x547887=C(_0x592d51,_0x5cfd40),_0x206f30=_0x547887[_0x547887[_0x3a8660(0x110)]-0x1];if(!_0x206f30||!ee(_0x592d51,_0x5cfd40,_0x206f30)||_0x2d6790[_0x3a8660(0xfc)]<_0x206f30[_0x3a8660(0x10b)])return null;let _0x491428=oe(_0x592d51,_0x5cfd40,_0x206f30);if(_0x491428>=_0x5cfd40[_0x3a8660(0x12c)])return null;_0x592d51[_0x3a8660(0xed)]=[_0x592d51[_0x3a8660(0xed)][_0x3a8660(0x119)](0x0,_0x491428),e['DataStreamTreeTokenType']['BLOCK_END'],_0x592d51[_0x3a8660(0xed)][_0x3a8660(0x119)](_0x491428,_0x5cfd40['endIndex']),_0x592d51[_0x3a8660(0xed)]['slice'](_0x5cfd40[_0x3a8660(0x12c)]+0x1)]['join'](''),P(_0x592d51[_0x3a8660(0x113)],_0x491428,_0x5cfd40[_0x3a8660(0x12c)],0x1),P(_0x592d51['sectionBreaks'],_0x491428,_0x5cfd40[_0x3a8660(0x12c)],0x1),P(_0x592d51['customBlocks'],_0x491428,_0x5cfd40['endIndex'],0x1),fe(_0x592d51[_0x3a8660(0xf5)],_0x491428,_0x5cfd40['endIndex'],0x1),F(_0x592d51['tables'],_0x491428,_0x5cfd40['endIndex'],0x1),F(_0x592d51[_0x3a8660(0xa7)],_0x491428,_0x5cfd40['endIndex'],0x1),F(_0x592d51[_0x3a8660(0xea)],_0x491428,_0x5cfd40[_0x3a8660(0x12c)],0x1),(_0x3dce45=_0x592d51[_0x3a8660(0xbb)])==null||_0x3dce45[_0x3a8660(0x12e)](_0xcb1c28=>{const _0x5250bc=_0x3a8660;_0xcb1c28===_0x5cfd40||_0xcb1c28[_0x5250bc(0xda)]===_0x5cfd40['blockId']?_0xcb1c28['endIndex']=_0x491428:_0xcb1c28['startIndex']>=_0x491428&&_0xcb1c28[_0x5250bc(0x10b)]<_0x5cfd40[_0x5250bc(0x12c)]&&(_0xcb1c28[_0x5250bc(0x10b)]+=0x1,_0xcb1c28[_0x5250bc(0x12c)]+=0x1);});let _0x2ec364=C(_0x592d51,{..._0x5cfd40,'endIndex':_0x491428});_0x2ec364[_0x3a8660(0x12e)]((_0x3b7203,_0x993083)=>{const _0x4fd436=_0x3a8660;var _0x50960f;_0x3b7203[_0x4fd436(0xa6)]={...(_0x50960f=_0x3b7203['paragraphStyle'])==null?{}:_0x50960f,...b(_0x993083===0x0,_0x993083===_0x2ec364[_0x4fd436(0x110)]-0x1)};});let _0xf87312=(_0x112803=_0x592d51[_0x3a8660(0x113)])==null?void 0x0:_0x112803[_0x3a8660(0xaa)](_0x50eccc=>_0x50eccc[_0x3a8660(0x10b)]===_0x491428+0x1);return _0xf87312&&(_0xf87312['paragraphStyle']=S(_0xf87312[_0x3a8660(0xa6)])),{'nextDocumentData':_0x500ba0,'cursorOffset':_0x491428+0x1};}function h(_0x1280fd){const _0x37c79d=_0x25029f;let _0x57ea77=w(_0x1280fd[_0x37c79d(0xdc)]),_0x3986bb=T(_0x57ea77),_0x1b6fbc=y(_0x3986bb,_0x1280fd[_0x37c79d(0xfc)]);return _0x1b6fbc&&g(_0x57ea77,_0x3986bb,_0x1b6fbc,_0x1280fd['cursorOffset'],_0x1280fd[_0x37c79d(0xe1)])||null;}function g(_0x33999a,_0x298a0d,_0x45dbb7,_0x4a3109,_0x2865df){const _0xf79903=_0x25029f;let _0x5d5aee=se(_0x298a0d,_0x45dbb7,_0x4a3109,_0x2865df);if(!_0x5d5aee)return null;let _0x525d39=_0x5d5aee['endTokenOffset']-0x1;return ce(_0x298a0d,_0x5d5aee[_0xf79903(0xcb)][_0xf79903(0x10b)],_0x5d5aee[_0xf79903(0xcb)][_0xf79903(0x10b)]+0x1),{'nextDocumentData':_0x33999a,'cursorOffset':_0x525d39};}function _(_0x3ccd7a,_0x55667b){const _0x16e2d9=_0x25029f;var _0x196873;return _0x3ccd7a==null||(_0x196873=_0x3ccd7a['blockRanges'])==null?void 0x0:_0x196873[_0x16e2d9(0xaa)](_0x169a60=>_0x169a60[_0x16e2d9(0x123)]===e[_0x16e2d9(0x14a)][_0x16e2d9(0x122)]&&_0x169a60['startIndex']<=_0x55667b&&_0x55667b<=_0x169a60[_0x16e2d9(0x12c)]);}function v(_0x57cd5d){const _0x5cfa8d=_0x25029f;var _0x31132b;let _0x31e6ce=_0x57cd5d[_0x5cfa8d(0xdc)][_0x5cfa8d(0xb5)];if(!_0x31e6ce)return!0x1;let _0x55fbd3=_0x57cd5d[_0x5cfa8d(0x105)]===_0x5cfa8d(0xe5)?_0x57cd5d['cursorOffset']-0x1:_0x57cd5d[_0x5cfa8d(0xfc)],_0x28432d=_0x57cd5d[_0x5cfa8d(0x105)]===_0x5cfa8d(0x107)?_0x57cd5d[_0x5cfa8d(0xfc)]+0x1:_0x55fbd3;return((_0x31132b=_0x31e6ce['blockRanges'])==null?[]:_0x31132b)[_0x5cfa8d(0xbf)](_0x5b82ff=>_0x5b82ff[_0x5cfa8d(0x123)]===e[_0x5cfa8d(0x14a)][_0x5cfa8d(0x122)]?_0x55fbd3===_0x5b82ff['startIndex']||_0x55fbd3===_0x5b82ff[_0x5cfa8d(0x12c)]||_0x28432d===_0x5b82ff[_0x5cfa8d(0x10b)]||_0x28432d===_0x5b82ff[_0x5cfa8d(0x12c)]:!0x1);}function y(_0x3dde4b,_0x5a1a5d){const _0x311231=_0x25029f;var _0xb40636;return(_0xb40636=_0x3dde4b['blockRanges'])==null?void 0x0:_0xb40636[_0x311231(0xaa)](_0x1ae841=>{const _0x5cf035=_0x311231;let _0x52b39d=D(_0x3dde4b,_0x1ae841);return _0x1ae841[_0x5cf035(0x123)]===e[_0x5cf035(0x14a)]['CODE']&&_0x1ae841[_0x5cf035(0x10b)]<=_0x5a1a5d&&_0x5a1a5d<=_0x52b39d+0x2;});}function b(_0x36061e,_0x2771e2,_0x13cc43=!0x1){return{'indentEnd':{'v':0x14},'indentStart':{'v':0x14},..._0x36061e&&_0x13cc43?{'spaceAbove':{'v':0x8}}:{},'textStyle':{'ff':l,'fs':0xc}};}function x(_0x1bb67a,_0x5e6534,_0x9b4c47,_0x4ab919=!0x1){const _0x1ea393=_0x25029f;var _0xc99b59;let _0x303d58=((_0xc99b59=_0x1bb67a['paragraphs'])==null?[]:_0xc99b59)['filter'](_0x394006=>_0x394006[_0x1ea393(0x10b)]>_0x5e6534&&_0x394006[_0x1ea393(0x10b)]<_0x9b4c47);_0x303d58[_0x1ea393(0x12e)]((_0x5a29c8,_0x52372f)=>{const _0x552661=_0x1ea393;var _0x3820e8;_0x5a29c8[_0x552661(0xa6)]={...(_0x3820e8=_0x5a29c8['paragraphStyle'])==null?{}:_0x3820e8,...b(_0x52372f===0x0,_0x52372f===_0x303d58[_0x552661(0x110)]-0x1,_0x4ab919)};});}function S(_0x2e3d7e){const _0x2114e7=_0x25029f;var _0x3c6e3e,_0x495bd6;let _0x215391={..._0x2e3d7e==null?{}:_0x2e3d7e};return delete _0x215391[_0x2114e7(0xb6)],delete _0x215391[_0x2114e7(0x12d)],delete _0x215391[_0x2114e7(0xeb)],delete _0x215391[_0x2114e7(0xd4)],((_0x3c6e3e=_0x215391[_0x2114e7(0x144)])==null?void 0x0:_0x3c6e3e['ff'])===l&&((_0x495bd6=_0x215391[_0x2114e7(0x144)])==null?void 0x0:_0x495bd6['fs'])===0xc&&delete _0x215391[_0x2114e7(0x144)],_0x215391;}function C(_0x14a3d8,_0x186ff0){const _0x98997f=_0x25029f;var _0x7c74c2;let _0x15f664=D(_0x14a3d8,_0x186ff0);return((_0x7c74c2=_0x14a3d8[_0x98997f(0x113)])==null?[]:_0x7c74c2)['filter'](_0x358e6a=>_0x358e6a[_0x98997f(0x10b)]>_0x186ff0['startIndex']&&_0x358e6a[_0x98997f(0x10b)]<_0x15f664);}function ee(_0x33d224,_0x3809f7,_0x67fb64){const _0x2ceb74=_0x25029f;let _0x5b06b8=oe(_0x33d224,_0x3809f7,_0x67fb64),_0x54a6aa=_0x33d224[_0x2ceb74(0xed)][_0x2ceb74(0x119)](_0x5b06b8,_0x67fb64[_0x2ceb74(0x10b)]);return Array[_0x2ceb74(0xd3)](_0x54a6aa)['every'](_0x1ecfab=>_0x1ecfab===e['DataStreamTreeTokenType'][_0x2ceb74(0x132)]||_0x1ecfab===e['DataStreamTreeTokenType']['BLOCK_END']);}function w(_0x2055c3){const _0x4ec339=_0x25029f;return e[_0x4ec339(0xb8)][_0x4ec339(0x125)](_0x2055c3);}function T(_0x59ba0f){const _0x382278=_0x25029f;if(!_0x59ba0f[_0x382278(0xb5)])throw Error(_0x382278(0xae));return _0x59ba0f[_0x382278(0xb5)];}function te(_0x227637,_0x27db1c,_0xcc3c51){const _0x38ac52=_0x25029f;if(_0x27db1c==null||_0xcc3c51==null){let _0x5e9472=re(_0x227637);return{'startOffset':_0x5e9472,'endOffset':_0x5e9472};}let _0xc92ea=Math[_0x38ac52(0xcc)](_0x27db1c,_0xcc3c51),_0x219b7a=Math['max'](_0x27db1c,_0xcc3c51);if(_0xc92ea===_0x219b7a){let _0x527d86=ne(_0x227637,_0xc92ea);return{'startOffset':_0x527d86,'endOffset':_0x527d86};}return ae(_0x227637,_0xc92ea,_0x219b7a);}function ne(_0x24792a,_0x4cd79b){const _0x1bfc41=_0x25029f;return _0x4cd79b===0x0&&_0x24792a[_0x1bfc41(0xed)][0x0]===e[_0x1bfc41(0x13c)]['PARAGRAPH']?0x1:_0x4cd79b;}function re(_0x25883a){const _0x16c8f8=_0x25029f;return _0x25883a[_0x16c8f8(0xed)][_0x16c8f8(0xd0)](e[_0x16c8f8(0x13c)][_0x16c8f8(0xe9)])?Math[_0x16c8f8(0xb7)](0x0,_0x25883a[_0x16c8f8(0xed)][_0x16c8f8(0x110)]-0x1):_0x25883a[_0x16c8f8(0xed)][_0x16c8f8(0x110)];}function ie(_0xfa7fd4,_0x57e6d9,_0xc0cefd){const _0x466c78=_0x25029f;var _0x1b0735;let _0x1ff81f=Math[_0x466c78(0xcc)](_0x57e6d9,_0xc0cefd),_0xebccab=Math[_0x466c78(0xb7)](_0x57e6d9,_0xc0cefd);return!!((_0x1b0735=_0xfa7fd4[_0x466c78(0x12b)])!=null&&_0x1b0735[_0x466c78(0xbf)](_0x5e8e65=>_0x1ff81f>_0x5e8e65[_0x466c78(0x10b)]&&_0x1ff81f<_0x5e8e65[_0x466c78(0x12c)]||_0xebccab>_0x5e8e65[_0x466c78(0x10b)]&&_0xebccab<_0x5e8e65[_0x466c78(0x12c)]||_0x1ff81f<=_0x5e8e65[_0x466c78(0x10b)]&&_0xebccab>=_0x5e8e65[_0x466c78(0x12c)]));}function ae(_0x2814d8,_0x141775,_0x1f2d89){const _0x55bf1f=_0x25029f;var _0x1b8def,_0x1bd8cc;let _0x2415d7=[...(_0x1b8def=_0x2814d8[_0x55bf1f(0x113)])==null?[]:_0x1b8def][_0x55bf1f(0xfd)]((_0x36c7dd,_0x5e4992)=>_0x36c7dd['startIndex']-_0x5e4992[_0x55bf1f(0x10b)]),_0x566bde=_0x2415d7[_0x55bf1f(0xaa)]((_0x45392d,_0x20c0c2)=>(_0x20c0c2===0x0?0x0:_0x2415d7[_0x20c0c2-0x1][_0x55bf1f(0x10b)]+0x1)<=_0x141775&&_0x141775<=_0x45392d[_0x55bf1f(0x10b)]),_0x540572=(_0x1bd8cc=_0x2415d7['find'](_0x1d16bc=>_0x1d16bc['startIndex']>=_0x1f2d89-0x1))==null?_0x2415d7[_0x2415d7['length']-0x1]:_0x1bd8cc;return{'startOffset':_0x566bde?E(_0x2415d7,_0x566bde):_0x141775,'endOffset':_0x540572?_0x540572[_0x55bf1f(0x10b)]+0x1:_0x1f2d89};}function E(_0x890ae9,_0x3480e1){const _0x302f19=_0x25029f;let _0x195bdd=_0x890ae9['indexOf'](_0x3480e1);return _0x195bdd>0x0?_0x890ae9[_0x195bdd-0x1][_0x302f19(0x10b)]+0x1:0x0;}function oe(_0x5a4dcd,_0x26d871,_0x128513){const _0x2bde60=_0x25029f;var _0x336f32;return Math[_0x2bde60(0xb7)](E((_0x336f32=_0x5a4dcd[_0x2bde60(0x113)])==null?[]:_0x336f32,_0x128513),_0x26d871[_0x2bde60(0x10b)]+0x1);}function _0x17f0(){const _0x51fbd8=['1387175OSmcQJ','get','buildUpdateCodeActions','25836FWdKFH','CODE','blockType','getInstance','deepClone','Subject','_change$','function','commandService','set','tables','endIndex','indentStart','forEach','DocsCodeInsertCommand','RichTextEditingMutation','_setResource','BLOCK_START','CommandType','DocsCodeConsumeBoundaryDeleteCommand','_injector','defineProperty','IConfigService','object','endOffset','pluginName','nextMetadata','DataStreamTreeTokenType','serialize','8zKRwQF','paragraphId','version','Inject','getCodeConfig','docs-code.command.update','textStyle','every','Disposable','DocsCodeCancelEmptyParagraphCommand','map','ICommandService','DocumentBlockRangeType','_resources','createParagraphId','_resourceManagerService','paragraphStyle','customRanges','3LBSavO','previousDocumentData','find','reduce','decorate','registerCommand','Document\x20body\x20is\x20required','codes','toStringTag','setCodeConfig','compose','type','buildInsertCodeActions','body','indentEnd','max','Tools','config','UNIVER_DOC','blockRanges','replaceOp','getUniverDocInstance','DOC_CODE_PLUGIN','some','sectionBreaks','stringify','customBlocks','118539sBNmFG','COMMAND','docs-code.command.insert','deserialize','32ZbnhyE','removeCode','unitId','javascript','paragraph','min','3806298ZnrRcs','consumeInsertRange','18946740RqDfLv','endsWith','symbol','getTextRanges','from','spaceBelow','iterator','setConfig','metadata','startOffset','string','blockId','@univerjs-pro/docs-code','documentData','docs-code.command.insert-below','dispose','packageName','syncExecuteCommand','paragraphStartIndex','next','delete','parse','left','BuildTextUtils','UniverInstanceType','filter','SECTION_BREAK','customDecorations','spaceAbove','docs-code.command.exit','dataStream','disposeWithMe','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','getBody','asObservable','DocSelectionManagerService','DocsCodeInsertBelowCommand','Injector','textRuns','docs-code.command.cancel-empty-paragraph','IResourceManagerService','PARAGRAPH','Module','range','IUniverInstanceService','cursorOffset','sort','buildCancelEmptyCodeParagraphActions','add','removeUnit','buildExitCodeActions','normalizeDocsCodeConfig','merge','model','direction','Plugin','right','BLOCK_END','2660332PWAXJt','DocContentInsertService','startIndex','5339502mAvotp','_config','nextDocumentData','_docsCodeModel','length','entries','docs-code.command.consume-boundary-delete','paragraphs','getParagraphsInRange','default','generateRandomId','getOwnPropertyDescriptor','getCurrentUnitOfType','slice','fromEntries','_initResource','prototype','_commandService'];_0x17f0=function(){return _0x51fbd8;};return _0x17f0();}function D(_0x51ef2a,_0x51998a){const _0x520f47=_0x25029f;return _0x51ef2a[_0x520f47(0xed)][_0x51998a[_0x520f47(0x12c)]]===e['DataStreamTreeTokenType'][_0x520f47(0x108)]?_0x51998a[_0x520f47(0x12c)]:_0x51ef2a[_0x520f47(0xed)][_0x51998a['endIndex']+0x1]===e[_0x520f47(0x13c)]['BLOCK_END']?_0x51998a[_0x520f47(0x12c)]+0x1:_0x51998a[_0x520f47(0x12c)];}function se(_0x39c41e,_0x3a81ff,_0x27b96d,_0x801f2b){const _0x1797aa=_0x25029f;var _0x1085c3,_0x2cf3c5;let _0x5d5af9=D(_0x39c41e,_0x3a81ff),_0x9f7538=((_0x1085c3=_0x39c41e[_0x1797aa(0x113)])==null?[]:_0x1085c3)[_0x1797aa(0xaa)](_0x477e1d=>_0x477e1d[_0x1797aa(0x10b)]===_0x5d5af9+0x1);if(!_0x9f7538||_0x801f2b!=null&&_0x9f7538['startIndex']!==_0x801f2b||_0x27b96d<_0x5d5af9||_0x27b96d>_0x9f7538['startIndex']+0x1||_0x39c41e[_0x1797aa(0xed)][_0x9f7538[_0x1797aa(0x10b)]]!==e[_0x1797aa(0x13c)][_0x1797aa(0xf8)])return null;let _0x535fe9=E((_0x2cf3c5=_0x39c41e[_0x1797aa(0x113)])==null?[]:_0x2cf3c5,_0x9f7538),_0x350a0b=_0x39c41e[_0x1797aa(0xed)][_0x1797aa(0x119)](_0x535fe9,_0x9f7538[_0x1797aa(0x10b)]);return Array[_0x1797aa(0xd3)](_0x350a0b)[_0x1797aa(0x145)](_0x4fe124=>_0x4fe124===e[_0x1797aa(0x13c)][_0x1797aa(0x108)])?{'paragraph':_0x9f7538,'endTokenOffset':_0x5d5af9}:null;}function O(_0x4eb8df,_0x186c89){const _0x5c0c1f=_0x25029f;var _0x193440;let _0x424624=D(_0x4eb8df,_0x186c89),_0x175a36=_0x4eb8df['dataStream'][_0x424624+0x1];_0x175a36!==e['DataStreamTreeTokenType'][_0x5c0c1f(0xe9)]&&_0x175a36!==void 0x0||k(_0x4eb8df,_0x424624+0x1,e[_0x5c0c1f(0x13c)][_0x5c0c1f(0xf8)],{'paragraphs':[{'startIndex':0x0,'paragraphId':(0x0,e[_0x5c0c1f(0x14c)])(new Set((_0x193440=_0x4eb8df['paragraphs'])==null?void 0x0:_0x193440[_0x5c0c1f(0x148)](_0x1090ed=>_0x1090ed['paragraphId'])))}]});}function k(_0x32736d,_0x290def,_0x556e9b,_0x2be2cf={}){const _0x238a65=_0x25029f;var _0x1e5c57,_0x7129a1;if(_0x556e9b){if(_0x32736d['dataStream']=''+_0x32736d[_0x238a65(0xed)][_0x238a65(0x119)](0x0,_0x290def)+_0x556e9b+_0x32736d[_0x238a65(0xed)][_0x238a65(0x119)](_0x290def),le(_0x32736d,_0x290def,_0x556e9b[_0x238a65(0x110)]),(_0x1e5c57=_0x2be2cf[_0x238a65(0x113)])!=null&&_0x1e5c57[_0x238a65(0x110)]){var _0x1ac0bb;_0x32736d[_0x238a65(0x113)]=[...(_0x1ac0bb=_0x32736d[_0x238a65(0x113)])==null?[]:_0x1ac0bb,..._0x2be2cf['paragraphs'][_0x238a65(0x148)](_0x1cc640=>({..._0x1cc640,'startIndex':_0x1cc640['startIndex']+_0x290def}))]['sort']((_0x2f9853,_0x440a75)=>_0x2f9853[_0x238a65(0x10b)]-_0x440a75['startIndex']);}if((_0x7129a1=_0x2be2cf[_0x238a65(0xbb)])!=null&&_0x7129a1[_0x238a65(0x110)]){var _0x2d1c05;_0x32736d['blockRanges']=[...(_0x2d1c05=_0x32736d[_0x238a65(0xbb)])==null?[]:_0x2d1c05,..._0x2be2cf[_0x238a65(0xbb)][_0x238a65(0x148)](_0x233d03=>({..._0x233d03,'startIndex':_0x233d03['startIndex']+_0x290def,'endIndex':_0x233d03[_0x238a65(0x12c)]+_0x290def}))][_0x238a65(0xfd)]((_0x1355db,_0x452557)=>_0x1355db[_0x238a65(0x10b)]-_0x452557['startIndex']);}}}function ce(_0x394d21,_0x3fa56b,_0x2e3efe){const _0x1844ed=_0x25029f;let _0x44be94=_0x2e3efe-_0x3fa56b;_0x394d21[_0x1844ed(0xed)]=''+_0x394d21[_0x1844ed(0xed)][_0x1844ed(0x119)](0x0,_0x3fa56b)+_0x394d21['dataStream'][_0x1844ed(0x119)](_0x2e3efe),ue(_0x394d21,_0x3fa56b,_0x44be94);}function le(_0x193fcf,_0x5c3dd2,_0x52b9b2){const _0x4b7273=_0x25029f;_0x193fcf[_0x4b7273(0x113)]=A(_0x193fcf['paragraphs'],_0x5c3dd2,_0x52b9b2),_0x193fcf['sectionBreaks']=A(_0x193fcf[_0x4b7273(0xc0)],_0x5c3dd2,_0x52b9b2),_0x193fcf[_0x4b7273(0xc2)]=A(_0x193fcf[_0x4b7273(0xc2)],_0x5c3dd2,_0x52b9b2),_0x193fcf[_0x4b7273(0xf5)]=de(_0x193fcf[_0x4b7273(0xf5)],_0x5c3dd2,_0x52b9b2),_0x193fcf['tables']=M(_0x193fcf[_0x4b7273(0x12b)],_0x5c3dd2,_0x52b9b2),_0x193fcf['customRanges']=M(_0x193fcf['customRanges'],_0x5c3dd2,_0x52b9b2),_0x193fcf[_0x4b7273(0xea)]=M(_0x193fcf['customDecorations'],_0x5c3dd2,_0x52b9b2),_0x193fcf[_0x4b7273(0xbb)]=M(_0x193fcf[_0x4b7273(0xbb)],_0x5c3dd2,_0x52b9b2);}function ue(_0x1c8aa2,_0x4ede8b,_0x448a8d){const _0x12edac=_0x25029f;var _0x5f1a3e,_0x2a8aa9;_0x1c8aa2['paragraphs']=j(_0x1c8aa2[_0x12edac(0x113)],_0x4ede8b,_0x448a8d),_0x1c8aa2[_0x12edac(0xc0)]=j(_0x1c8aa2['sectionBreaks'],_0x4ede8b,_0x448a8d),_0x1c8aa2[_0x12edac(0xc2)]=j(_0x1c8aa2['customBlocks'],_0x4ede8b,_0x448a8d),_0x1c8aa2[_0x12edac(0xf5)]=(_0x5f1a3e=N((_0x2a8aa9=_0x1c8aa2[_0x12edac(0xf5)])==null?void 0x0:_0x2a8aa9['map'](_0x49cb15=>({..._0x49cb15,'startIndex':_0x49cb15['st'],'endIndex':_0x49cb15['ed']})),_0x4ede8b,_0x448a8d))==null?void 0x0:_0x5f1a3e['map'](_0x52f6f4=>{let {startIndex:_0x47f6c5,endIndex:_0x32b9c5,..._0xeca66d}=_0x52f6f4;return{..._0xeca66d,'st':_0x47f6c5,'ed':_0x32b9c5};}),_0x1c8aa2[_0x12edac(0x12b)]=N(_0x1c8aa2[_0x12edac(0x12b)],_0x4ede8b,_0x448a8d),_0x1c8aa2[_0x12edac(0xa7)]=N(_0x1c8aa2[_0x12edac(0xa7)],_0x4ede8b,_0x448a8d),_0x1c8aa2[_0x12edac(0xea)]=N(_0x1c8aa2[_0x12edac(0xea)],_0x4ede8b,_0x448a8d),_0x1c8aa2['blockRanges']=N(_0x1c8aa2[_0x12edac(0xbb)],_0x4ede8b,_0x448a8d);}function A(_0x38af01,_0x45e215,_0x1ade54){const _0xf428a5=_0x25029f;return _0x38af01==null?void 0x0:_0x38af01['map'](_0x225da8=>_0x225da8[_0xf428a5(0x10b)]>=_0x45e215?{..._0x225da8,'startIndex':_0x225da8['startIndex']+_0x1ade54}:_0x225da8);}function j(_0x9e3826,_0x48b05f,_0x2f58e5){const _0x4a278f=_0x25029f;let _0x4c73c2=_0x48b05f+_0x2f58e5;return _0x9e3826==null?void 0x0:_0x9e3826[_0x4a278f(0x148)](_0x41d9bd=>_0x41d9bd[_0x4a278f(0x10b)]>=_0x48b05f&&_0x41d9bd[_0x4a278f(0x10b)]<_0x4c73c2?null:_0x41d9bd[_0x4a278f(0x10b)]>=_0x4c73c2?{..._0x41d9bd,'startIndex':_0x41d9bd[_0x4a278f(0x10b)]-_0x2f58e5}:_0x41d9bd)[_0x4a278f(0xe8)](_0x5d990a=>_0x5d990a!=null);}function de(_0x126b66,_0x28b9bb,_0x41510f){const _0x872298=_0x25029f;return _0x126b66==null?void 0x0:_0x126b66[_0x872298(0x148)](_0x271278=>_0x271278['st']>=_0x28b9bb?{..._0x271278,'st':_0x271278['st']+_0x41510f,'ed':_0x271278['ed']+_0x41510f}:_0x271278['ed']>_0x28b9bb?{..._0x271278,'ed':_0x271278['ed']+_0x41510f}:_0x271278);}function M(_0xe24da4,_0x158949,_0x216ef0){const _0x15427d=_0x25029f;return _0xe24da4==null?void 0x0:_0xe24da4[_0x15427d(0x148)](_0x4c34b0=>_0x4c34b0['startIndex']>=_0x158949?{..._0x4c34b0,'startIndex':_0x4c34b0[_0x15427d(0x10b)]+_0x216ef0,'endIndex':_0x4c34b0[_0x15427d(0x12c)]+_0x216ef0}:_0x4c34b0[_0x15427d(0x12c)]>=_0x158949?{..._0x4c34b0,'endIndex':_0x4c34b0[_0x15427d(0x12c)]+_0x216ef0}:_0x4c34b0);}function N(_0x43fb96,_0x351f40,_0x108fe2){const _0x47676b=_0x25029f;let _0x397a61=_0x351f40+_0x108fe2;return _0x43fb96==null?void 0x0:_0x43fb96[_0x47676b(0x148)](_0x16efc2=>_0x16efc2[_0x47676b(0x10b)]>=_0x351f40&&_0x16efc2[_0x47676b(0x12c)]<_0x397a61?null:_0x16efc2[_0x47676b(0x10b)]>=_0x397a61?{..._0x16efc2,'startIndex':_0x16efc2[_0x47676b(0x10b)]-_0x108fe2,'endIndex':_0x16efc2[_0x47676b(0x12c)]-_0x108fe2}:_0x16efc2['endIndex']>=_0x351f40?{..._0x16efc2,'startIndex':_0x16efc2['startIndex']<_0x351f40?_0x16efc2[_0x47676b(0x10b)]:_0x351f40,'endIndex':Math['max'](_0x351f40,_0x16efc2['endIndex']-_0x108fe2)}:_0x16efc2)['filter'](_0x2f5632=>_0x2f5632!=null);}function P(_0x26d3c9,_0x41c9fe,_0x4b0e55,_0x1863f9){const _0x530100=_0x25029f;_0x26d3c9==null||_0x26d3c9[_0x530100(0x12e)](_0x24894d=>{const _0x913cda=_0x530100;_0x24894d[_0x913cda(0x10b)]>=_0x41c9fe&&_0x24894d[_0x913cda(0x10b)]<_0x4b0e55&&(_0x24894d[_0x913cda(0x10b)]+=_0x1863f9);});}function fe(_0xd932d3,_0x40991c,_0x2d5e8a,_0x1dff0a){_0xd932d3==null||_0xd932d3['forEach'](_0x3384d5=>{_0x3384d5['st']>=_0x40991c&&_0x3384d5['st']<_0x2d5e8a?(_0x3384d5['st']+=_0x1dff0a,_0x3384d5['ed']+=_0x1dff0a):_0x3384d5['ed']>_0x40991c&&_0x3384d5['ed']<_0x2d5e8a&&(_0x3384d5['ed']+=_0x1dff0a);});}function F(_0x37d737,_0x49585b,_0x2fb26f,_0x3adb89){const _0x2db32f=_0x25029f;_0x37d737==null||_0x37d737[_0x2db32f(0x12e)](_0x1556cb=>{const _0x191ebe=_0x2db32f;_0x1556cb[_0x191ebe(0x10b)]>=_0x49585b&&_0x1556cb[_0x191ebe(0x10b)]<_0x2fb26f?(_0x1556cb[_0x191ebe(0x10b)]+=_0x3adb89,_0x1556cb[_0x191ebe(0x12c)]+=_0x3adb89):_0x1556cb[_0x191ebe(0x12c)]>_0x49585b&&_0x1556cb[_0x191ebe(0x12c)]<_0x2fb26f&&(_0x1556cb['endIndex']+=_0x3adb89);});}function I(_0x12bdc7){'@babel/helpers - typeof';const _0x300bf8=_0x25029f;return I=typeof Symbol==_0x300bf8(0x128)&&typeof Symbol[_0x300bf8(0xd5)]==_0x300bf8(0xd1)?function(_0x460587){return typeof _0x460587;}:function(_0x21c31e){const _0x51d51e=_0x300bf8;return _0x21c31e&&typeof Symbol==_0x51d51e(0x128)&&_0x21c31e['constructor']===Symbol&&_0x21c31e!==Symbol[_0x51d51e(0x11c)]?_0x51d51e(0xd1):typeof _0x21c31e;},I(_0x12bdc7);}function pe(_0x3dbbeb,_0xa892ce){const _0x1a5799=_0x25029f;if(I(_0x3dbbeb)!=_0x1a5799(0x138)||!_0x3dbbeb)return _0x3dbbeb;var _0x73f763=_0x3dbbeb[Symbol['toPrimitive']];if(_0x73f763!==void 0x0){var _0x4b1e10=_0x73f763['call'](_0x3dbbeb,_0xa892ce||_0x1a5799(0x115));if(I(_0x4b1e10)!=_0x1a5799(0x138))return _0x4b1e10;throw TypeError(_0x1a5799(0xef));}return(_0xa892ce===_0x1a5799(0xd9)?String:Number)(_0x3dbbeb);}function me(_0x4c527c){const _0x1c52bb=_0x25029f;var _0x51f640=pe(_0x4c527c,_0x1c52bb(0xd9));return I(_0x51f640)==_0x1c52bb(0xd1)?_0x51f640:_0x51f640+'';}function L(_0x4e0bc1,_0x5cd282,_0x3593f7){const _0x3f4acb=_0x25029f;return(_0x5cd282=me(_0x5cd282))in _0x4e0bc1?Object[_0x3f4acb(0x136)](_0x4e0bc1,_0x5cd282,{'value':_0x3593f7,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4e0bc1[_0x5cd282]=_0x3593f7,_0x4e0bc1;}var R=class extends e[_0x25029f(0x146)]{constructor(..._0x3eb574){const _0x5de18a=_0x25029f;super(..._0x3eb574),L(this,_0x5de18a(0x14b),new Map()),L(this,_0x5de18a(0x127),new n[(_0x5de18a(0x126))]()),L(this,'change$',this[_0x5de18a(0x127)][_0x5de18a(0xf1)]());}[_0x25029f(0x142)](_0x273e85,_0x3bc06a){const _0x1fc353=_0x25029f;return o(this[_0x1fc353(0x14b)]['get'](_0x273e85))[_0x1fc353(0xaf)][_0x3bc06a];}[_0x25029f(0xb1)](_0x269fb9,_0x29df0b,_0x276c08){const _0x31f8e7=_0x25029f;this[_0x31f8e7(0x131)](_0x269fb9,_0x29df0b,s(this[_0x31f8e7(0x14b)][_0x31f8e7(0x11f)](_0x269fb9),_0x29df0b,_0x276c08));}[_0x25029f(0xc8)](_0x140692,_0x104a9a){const _0x35e3f9=_0x25029f;this[_0x35e3f9(0x131)](_0x140692,_0x104a9a,c(this[_0x35e3f9(0x14b)][_0x35e3f9(0x11f)](_0x140692),_0x104a9a));}[_0x25029f(0x13d)](_0x36b955){const _0x3d8447=_0x25029f;return o(this[_0x3d8447(0x14b)][_0x3d8447(0x11f)](_0x36b955));}[_0x25029f(0xc6)](_0x3cc852,_0x29ff00){const _0x3efd27=_0x25029f;this[_0x3efd27(0x14b)][_0x3efd27(0x12a)](_0x3cc852,o(_0x29ff00)),this[_0x3efd27(0x127)][_0x3efd27(0xe2)]({'unitId':_0x3cc852});}[_0x25029f(0x100)](_0x1e52db){const _0x502fac=_0x25029f;this['_resources'][_0x502fac(0xe3)](_0x1e52db),this[_0x502fac(0x127)]['next']({'unitId':_0x1e52db});}[_0x25029f(0xde)](){const _0x541136=_0x25029f;super[_0x541136(0xde)](),this[_0x541136(0x14b)]['clear'](),this[_0x541136(0x127)]['complete']();}[_0x25029f(0x131)](_0x4071ae,_0x160f82,_0x4fb8cb){const _0x4c4f6e=_0x25029f;this[_0x4c4f6e(0x14b)][_0x4c4f6e(0x12a)](_0x4071ae,_0x4fb8cb),this[_0x4c4f6e(0x127)][_0x4c4f6e(0xe2)]({'unitId':_0x4071ae,'blockId':_0x160f82});}};const z={'id':_0x25029f(0xdd),'type':e[_0x25029f(0x133)][_0x25029f(0xc4)],'handler':_0x14b3e0=>{const _0x28fcb6=_0x25029f;let _0x3c6db9=he(_0x14b3e0);if(_0x3c6db9)return _0x14b3e0[_0x28fcb6(0x11f)](e[_0x28fcb6(0x149)])[_0x28fcb6(0xe0)](V['id'],{'startOffset':_0x3c6db9['startOffset'],'endOffset':_0x3c6db9[_0x28fcb6(0x139)],'unitId':_0x3c6db9[_0x28fcb6(0xc9)]});let _0x169c98=ge(_0x14b3e0);if(!_0x169c98)return!0x1;let _0x24a8c6=_0x169c98[_0x28fcb6(0x10b)]+0x1;return _0x14b3e0[_0x28fcb6(0x11f)](e[_0x28fcb6(0x149)])[_0x28fcb6(0xe0)](V['id'],{'startOffset':_0x24a8c6,'endOffset':_0x24a8c6});}},B={'id':_0x25029f(0x112),'type':e[_0x25029f(0x133)][_0x25029f(0xc4)],'handler':()=>!0x0},V={'id':_0x25029f(0xc5),'type':e[_0x25029f(0x133)][_0x25029f(0xc4)],'handler':(_0x281169,_0x538ade)=>{const _0x4f99fd=_0x25029f;var _0x6bcb78,_0x2f3ed0,_0x415d07;let _0x3648cb=G(_0x281169,_0x538ade==null?void 0x0:_0x538ade[_0x4f99fd(0xc9)]);if(!_0x3648cb)return!0x1;let _0x36ca9d=K(_0x281169),_0x3ef7ae=u({'blockId':(_0x6bcb78=_0x538ade==null?void 0x0:_0x538ade['blockId'])==null?(0x0,e[_0x4f99fd(0x116)])(0x6):_0x6bcb78,'config':_0x538ade==null?void 0x0:_0x538ade[_0x4f99fd(0xb9)],'documentData':_0x3648cb[_0x4f99fd(0xa9)],'endOffset':(_0x2f3ed0=_0x538ade==null?void 0x0:_0x538ade[_0x4f99fd(0x139)])==null?_0x36ca9d==null?void 0x0:_0x36ca9d[_0x4f99fd(0x139)]:_0x2f3ed0,'metadata':_0x3648cb['model']['serialize'](_0x3648cb['unitId']),'startOffset':(_0x415d07=_0x538ade==null?void 0x0:_0x538ade[_0x4f99fd(0xd8)])==null?_0x36ca9d==null?void 0x0:_0x36ca9d[_0x4f99fd(0xd8)]:_0x415d07}),_0x36eedd=J(_0x3648cb[_0x4f99fd(0x129)],_0x3648cb['unitId'],_0x3648cb[_0x4f99fd(0xa9)],_0x3ef7ae[_0x4f99fd(0x10e)],_0x3ef7ae[_0x4f99fd(0xfc)]);return _0x36eedd&&_0x3ef7ae[_0x4f99fd(0x13b)]&&_0x3648cb[_0x4f99fd(0x104)]['deserialize'](_0x3648cb[_0x4f99fd(0xc9)],_0x3ef7ae[_0x4f99fd(0x13b)]),_0x36eedd;}},H={'id':_0x25029f(0x143),'type':e[_0x25029f(0x133)][_0x25029f(0xc4)],'handler':(_0x413772,_0x115af2)=>{const _0x54ce5b=_0x25029f;if(!_0x115af2)return!0x1;let _0x5d2fb1=G(_0x413772,_0x115af2['unitId']);if(!_0x5d2fb1)return!0x1;let _0xa781b2=p({'blockId':_0x115af2['blockId'],'config':_0x115af2[_0x54ce5b(0xb9)],'documentData':_0x5d2fb1['previousDocumentData'],'metadata':_0x5d2fb1[_0x54ce5b(0x104)][_0x54ce5b(0x13d)](_0x5d2fb1[_0x54ce5b(0xc9)])});return _0xa781b2[_0x54ce5b(0x13b)]&&_0x5d2fb1[_0x54ce5b(0x104)][_0x54ce5b(0xc6)](_0x5d2fb1[_0x54ce5b(0xc9)],_0xa781b2[_0x54ce5b(0x13b)]),!0x0;}},U={'id':_0x25029f(0xec),'type':e[_0x25029f(0x133)][_0x25029f(0xc4)],'handler':(_0x425922,_0x50764d)=>{const _0x495ea1=_0x25029f;var _0x6430dc,_0x342abe;let _0x381475=G(_0x425922,_0x50764d==null?void 0x0:_0x50764d[_0x495ea1(0xc9)]);if(!_0x381475)return!0x1;let _0x4282be=(_0x6430dc=_0x50764d==null?void 0x0:_0x50764d[_0x495ea1(0xfc)])==null?(_0x342abe=K(_0x425922))==null?void 0x0:_0x342abe[_0x495ea1(0xd8)]:_0x6430dc;if(_0x4282be==null)return!0x1;let _0x17c713=m({'cursorOffset':_0x4282be,'documentData':_0x381475[_0x495ea1(0xa9)]});return _0x17c713?J(_0x381475[_0x495ea1(0x129)],_0x381475['unitId'],_0x381475[_0x495ea1(0xa9)],_0x17c713[_0x495ea1(0x10e)],_0x17c713[_0x495ea1(0xfc)]):!0x1;}},W={'id':_0x25029f(0xf6),'type':e[_0x25029f(0x133)][_0x25029f(0xc4)],'handler':(_0x5c9bb1,_0x49fa50)=>{const _0x5115db=_0x25029f;var _0x4df103,_0x4eee70;let _0x551811=G(_0x5c9bb1,_0x49fa50==null?void 0x0:_0x49fa50['unitId']);if(!_0x551811)return!0x1;let _0x3c2d62=(_0x4df103=_0x49fa50==null?void 0x0:_0x49fa50[_0x5115db(0xfc)])==null?(_0x4eee70=K(_0x5c9bb1))==null?void 0x0:_0x4eee70[_0x5115db(0xd8)]:_0x4df103;if(_0x3c2d62==null)return!0x1;let _0x23fbf1=h({'cursorOffset':_0x3c2d62,'documentData':_0x551811[_0x5115db(0xa9)],'paragraphStartIndex':_0x49fa50==null?void 0x0:_0x49fa50['paragraphStartIndex']});return _0x23fbf1?J(_0x551811[_0x5115db(0x129)],_0x551811[_0x5115db(0xc9)],_0x551811[_0x5115db(0xa9)],_0x23fbf1['nextDocumentData'],_0x23fbf1[_0x5115db(0xfc)]):!0x1;}};function G(_0x46bbda,_0x52f04b){const _0x38fd1b=_0x25029f;let _0x440042=_0x46bbda[_0x38fd1b(0x11f)](e['IUniverInstanceService']),_0x5777d0=_0x52f04b?_0x440042[_0x38fd1b(0xbd)](_0x52f04b):_0x440042['getCurrentUnitOfType'](e['UniverInstanceType'][_0x38fd1b(0xba)]);return _0x5777d0?{'commandService':_0x46bbda['get'](e[_0x38fd1b(0x149)]),'model':_0x46bbda[_0x38fd1b(0x11f)](R),'previousDocumentData':_0x5777d0['getSnapshot'](),'unitId':_0x5777d0['getUnitId']()}:null;}function K(_0x48d091){const _0x255af5=_0x25029f;var _0x548541;return(_0x548541=_0x48d091[_0x255af5(0x11f)](t[_0x255af5(0xf2)])[_0x255af5(0xd2)]())==null?void 0x0:_0x548541[0x0];}function _0x5a9f(_0x2d199e,_0x508666){_0x2d199e=_0x2d199e-0xa6;const _0x17f0d8=_0x17f0();let _0x5a9f1c=_0x17f0d8[_0x2d199e];return _0x5a9f1c;}function he(_0x2207fa){const _0x4253d4=_0x25029f;var _0xe36623;let _0x7a9cb3=(_0xe36623=_0x2207fa[_0x4253d4(0x11f)](e[_0x4253d4(0xfb)])[_0x4253d4(0x118)](e['UniverInstanceType'][_0x4253d4(0xba)]))==null?void 0x0:_0xe36623['getUnitId']();try{return _0x2207fa[_0x4253d4(0x11f)](t[_0x4253d4(0x10a)])[_0x4253d4(0xce)](_0x7a9cb3);}catch{return null;}}function ge(_0x1d0341){const _0x52a89b=_0x25029f;var _0x356725,_0x1711b3,_0x1b2158;let _0x91624c=K(_0x1d0341);if(!_0x91624c)return null;let _0xae20c3=_0x1d0341['get'](e[_0x52a89b(0xfb)])[_0x52a89b(0x118)](e['UniverInstanceType']['UNIVER_DOC']),_0x27211e=_0xae20c3==null?void 0x0:_0xae20c3[_0x52a89b(0xf0)]();return _0x27211e?(_0x356725=e[_0x52a89b(0xe6)][_0x52a89b(0xfa)][_0x52a89b(0x114)](_0x91624c,(_0x1711b3=_0x27211e[_0x52a89b(0x113)])==null?[]:_0x1711b3,(_0x1b2158=_0x27211e[_0x52a89b(0xed)])==null?'':_0x1b2158)[0x0])==null?null:_0x356725:null;}function _e(_0x581485,_0x2a737f){const _0x2fe37a=_0x25029f;var _0x3f68b2,_0x507b59,_0x95fb30,_0x51e12d,_0x4ae8ab,_0x138800,_0x5ae7dc,_0x34c18e,_0x4640cb,_0x3f4113,_0x56128c,_0x48068c,_0x279578,_0x33b896,_0x285fc5,_0x425bf1,_0x16efc1,_0x42e383;let _0x5dae6f=e['JSONX'][_0x2fe37a(0x124)]();return[q(_0x5dae6f,[_0x2fe37a(0xb5),'dataStream'],(_0x3f68b2=_0x581485[_0x2fe37a(0xb5)])==null?void 0x0:_0x3f68b2[_0x2fe37a(0xed)],(_0x507b59=_0x2a737f[_0x2fe37a(0xb5)])==null?void 0x0:_0x507b59['dataStream']),q(_0x5dae6f,['body',_0x2fe37a(0x113)],(_0x95fb30=_0x581485[_0x2fe37a(0xb5)])==null?void 0x0:_0x95fb30[_0x2fe37a(0x113)],(_0x51e12d=_0x2a737f[_0x2fe37a(0xb5)])==null?void 0x0:_0x51e12d[_0x2fe37a(0x113)]),q(_0x5dae6f,[_0x2fe37a(0xb5),_0x2fe37a(0xc0)],(_0x4ae8ab=_0x581485[_0x2fe37a(0xb5)])==null?void 0x0:_0x4ae8ab[_0x2fe37a(0xc0)],(_0x138800=_0x2a737f[_0x2fe37a(0xb5)])==null?void 0x0:_0x138800[_0x2fe37a(0xc0)]),q(_0x5dae6f,[_0x2fe37a(0xb5),'textRuns'],(_0x5ae7dc=_0x581485[_0x2fe37a(0xb5)])==null?void 0x0:_0x5ae7dc[_0x2fe37a(0xf5)],(_0x34c18e=_0x2a737f[_0x2fe37a(0xb5)])==null?void 0x0:_0x34c18e['textRuns']),q(_0x5dae6f,[_0x2fe37a(0xb5),_0x2fe37a(0xc2)],(_0x4640cb=_0x581485[_0x2fe37a(0xb5)])==null?void 0x0:_0x4640cb[_0x2fe37a(0xc2)],(_0x3f4113=_0x2a737f[_0x2fe37a(0xb5)])==null?void 0x0:_0x3f4113[_0x2fe37a(0xc2)]),q(_0x5dae6f,[_0x2fe37a(0xb5),'customRanges'],(_0x56128c=_0x581485[_0x2fe37a(0xb5)])==null?void 0x0:_0x56128c['customRanges'],(_0x48068c=_0x2a737f[_0x2fe37a(0xb5)])==null?void 0x0:_0x48068c[_0x2fe37a(0xa7)]),q(_0x5dae6f,['body','customDecorations'],(_0x279578=_0x581485[_0x2fe37a(0xb5)])==null?void 0x0:_0x279578[_0x2fe37a(0xea)],(_0x33b896=_0x2a737f[_0x2fe37a(0xb5)])==null?void 0x0:_0x33b896[_0x2fe37a(0xea)]),q(_0x5dae6f,[_0x2fe37a(0xb5),_0x2fe37a(0x12b)],(_0x285fc5=_0x581485[_0x2fe37a(0xb5)])==null?void 0x0:_0x285fc5[_0x2fe37a(0x12b)],(_0x425bf1=_0x2a737f[_0x2fe37a(0xb5)])==null?void 0x0:_0x425bf1[_0x2fe37a(0x12b)]),q(_0x5dae6f,['body',_0x2fe37a(0xbb)],(_0x16efc1=_0x581485[_0x2fe37a(0xb5)])==null?void 0x0:_0x16efc1[_0x2fe37a(0xbb)],(_0x42e383=_0x2a737f[_0x2fe37a(0xb5)])==null?void 0x0:_0x42e383[_0x2fe37a(0xbb)])]['filter'](Boolean)[_0x2fe37a(0xab)]((_0x34063c,_0x2c6b1e)=>e['JSONX'][_0x2fe37a(0xb2)](_0x34063c,_0x2c6b1e),null);}function q(_0x21b402,_0x31454c,_0x25034b,_0x1e2679){const _0x225ff8=_0x25029f;return e[_0x225ff8(0xb8)]['diffValue'](_0x25034b,_0x1e2679)?null:_0x21b402[_0x225ff8(0xbc)](_0x31454c,_0x25034b,_0x1e2679);}function J(_0x48b955,_0x63d7a,_0x21c0b8,_0x4d1486,_0x4e4b8e){const _0x35f47d=_0x25029f;let _0x39a89a=_e(_0x21c0b8,_0x4d1486);return _0x39a89a?!!_0x48b955['syncExecuteCommand'](t[_0x35f47d(0x130)]['id'],{'unitId':_0x63d7a,'actions':_0x39a89a,'textRanges':[{'startOffset':_0x4e4b8e,'endOffset':_0x4e4b8e,'collapsed':!0x0}],'isEditing':!0x1}):!0x1;}const Y=_0x25029f(0xbe);var ve=_0x25029f(0xdb),ye='1.0.0-alpha.1';const X={};function Z(_0x2447d5,_0x4e46bf){return function(_0x5a94d5,_0x468d80){_0x4e46bf(_0x5a94d5,_0x468d80,_0x2447d5);};}function be(_0x3462c7,_0x140bd0,_0x155ad3,_0xee03ff){const _0x20bd01=_0x25029f;var _0x1041a6=arguments['length'],_0x51cbce=_0x1041a6<0x3?_0x140bd0:_0xee03ff===null?_0xee03ff=Object[_0x20bd01(0x117)](_0x140bd0,_0x155ad3):_0xee03ff,_0x4d66a6;if(typeof Reflect=='object'&&typeof Reflect[_0x20bd01(0xac)]==_0x20bd01(0x128))_0x51cbce=Reflect[_0x20bd01(0xac)](_0x3462c7,_0x140bd0,_0x155ad3,_0xee03ff);else{for(var _0x1d50bd=_0x3462c7['length']-0x1;_0x1d50bd>=0x0;_0x1d50bd--)(_0x4d66a6=_0x3462c7[_0x1d50bd])&&(_0x51cbce=(_0x1041a6<0x3?_0x4d66a6(_0x51cbce):_0x1041a6>0x3?_0x4d66a6(_0x140bd0,_0x155ad3,_0x51cbce):_0x4d66a6(_0x140bd0,_0x155ad3))||_0x51cbce);}return _0x1041a6>0x3&&_0x51cbce&&Object[_0x20bd01(0x136)](_0x140bd0,_0x155ad3,_0x51cbce),_0x51cbce;}let Q=class extends e[_0x25029f(0x146)]{constructor(_0x521a93,_0x504e40){const _0x1e9a96=_0x25029f;super(),this[_0x1e9a96(0x14d)]=_0x521a93,this['_docsCodeModel']=_0x504e40,this[_0x1e9a96(0x11b)]();}[_0x25029f(0x11b)](){const _0x1b9016=_0x25029f;this[_0x1b9016(0xee)](this['_resourceManagerService']['registerPluginResource']({'pluginName':Y,'businesses':[e['UniverInstanceType'][_0x1b9016(0xba)]],'toJson':_0x24b3dd=>JSON[_0x1b9016(0xc1)](this[_0x1b9016(0x10f)][_0x1b9016(0x13d)](_0x24b3dd)),'parseJson':_0x370282=>o(JSON[_0x1b9016(0xe4)](_0x370282)),'onLoad':(_0x509257,_0x3f3d20)=>this[_0x1b9016(0x10f)][_0x1b9016(0xc6)](_0x509257,_0x3f3d20),'onUnLoad':_0x56a83f=>this['_docsCodeModel']['removeUnit'](_0x56a83f)}));}};Q=be([Z(0x0,e[_0x25029f(0xf7)]),Z(0x1,(0x0,e['Inject'])(R))],Q);let $=class extends e[_0x25029f(0x106)]{constructor(_0x50fdfd=X,_0x42614e,_0x59a209,_0x2f704d){const _0xfdc883=_0x25029f;super(),this[_0xfdc883(0x10d)]=_0x50fdfd,this['_injector']=_0x42614e,this[_0xfdc883(0x11d)]=_0x59a209,this['_configService']=_0x2f704d;let {..._0x4796ec}=(0x0,e[_0xfdc883(0x103)])({},X,this['_config']);this['_configService'][_0xfdc883(0xd6)]('docs-code.config',_0x4796ec);}['onStarting'](){const _0x563ff9=_0x25029f;this[_0x563ff9(0x135)][_0x563ff9(0xff)]([R]),this['_injector']['add']([Q]),this[_0x563ff9(0x135)]['get'](R),this[_0x563ff9(0x135)][_0x563ff9(0x11f)](Q),[V,z,H,U,W,B][_0x563ff9(0x12e)](_0xe1dedf=>this[_0x563ff9(0xee)](this[_0x563ff9(0x11d)][_0x563ff9(0xad)](_0xe1dedf)));}};L($,_0x25029f(0x13a),Y),L($,_0x25029f(0xdf),ve),L($,_0x25029f(0x140),ye),L($,_0x25029f(0xb3),e[_0x25029f(0xe7)]['UNIVER_DOC']),$=be([(0x0,e['DependentOn'])(r['UniverLicensePlugin'],t['UniverDocsPlugin']),Z(0x1,(0x0,e[_0x25029f(0x141)])(e[_0x25029f(0xf4)])),Z(0x2,e[_0x25029f(0x149)]),Z(0x3,e[_0x25029f(0x137)])],$),exports['DEFAULT_CODE_CONFIG']=i,exports['DOCS_CODE_PLUGIN']=Y,exports[_0x25029f(0x147)]=W,exports[_0x25029f(0x134)]=B,exports['DocsCodeExitCommand']=U,exports[_0x25029f(0xf3)]=z,exports[_0x25029f(0x12f)]=V,exports['DocsCodeModel']=R,exports['DocsCodeUpdateCommand']=H,Object['defineProperty'](exports,'UniverDocsCodePlugin',{'enumerable':!0x0,'get':function(){return $;}}),exports[_0x25029f(0xfe)]=h,exports[_0x25029f(0x101)]=m,exports[_0x25029f(0xb4)]=u,exports[_0x25029f(0x120)]=p,exports['findCodeRangeAtOffset']=_,exports['isCodeBoundaryDelete']=v,exports[_0x25029f(0x102)]=a;
1
+ const _0x4b6d09=_0x1328;(function(_0x509cbd,_0x173a32){const _0x1621f6=_0x1328,_0x1dff96=_0x509cbd();while(!![]){try{const _0x134b44=-parseInt(_0x1621f6(0xf8))/0x1*(parseInt(_0x1621f6(0x124))/0x2)+-parseInt(_0x1621f6(0xbb))/0x3*(parseInt(_0x1621f6(0xcc))/0x4)+-parseInt(_0x1621f6(0xc4))/0x5+parseInt(_0x1621f6(0x129))/0x6+-parseInt(_0x1621f6(0xc8))/0x7*(-parseInt(_0x1621f6(0xd0))/0x8)+parseInt(_0x1621f6(0x130))/0x9*(-parseInt(_0x1621f6(0xe7))/0xa)+parseInt(_0x1621f6(0xe9))/0xb;if(_0x134b44===_0x173a32)break;else _0x1dff96['push'](_0x1dff96['shift']());}catch(_0x5765ef){_0x1dff96['push'](_0x1dff96['shift']());}}}(_0xc18d,0xe85c5),Object['defineProperty'](exports,Symbol[_0x4b6d09(0x12a)],{'value':_0x4b6d09(0xc3)}));let e=require('@univerjs/core'),t=require('@univerjs/docs'),n=require('rxjs'),r=require('@univerjs-pro/license');const i={'language':_0x4b6d09(0xb0),'showLineNumbers':!0x1,'tabSize':0x4,'wrap':!0x0};function a(_0x40055d){return{...i,..._0x40055d};}function o(_0x3b2227){const _0x1b7f66=_0x4b6d09;var _0x4f9c19;let _0x1f1ca0=(_0x4f9c19=_0x3b2227==null?void 0x0:_0x3b2227[_0x1b7f66(0x131)])==null?{}:_0x4f9c19;return{'codes':Object['fromEntries'](Object['entries'](_0x1f1ca0)[_0x1b7f66(0xee)](([_0x284585,_0xca193e])=>[_0x284585,a(_0xca193e)]))};}function s(_0x17710c,_0x447191,_0x59e24a){const _0x44b6c7=_0x4b6d09;let _0x291dc4=o(_0x17710c);return _0x291dc4['codes'][_0x447191]=a({..._0x291dc4[_0x44b6c7(0x131)][_0x447191],..._0x59e24a}),_0x291dc4;}function c(_0x33aada,_0x191668){const _0x50fb66=_0x4b6d09;let _0x21f0d1=o(_0x33aada);return delete _0x21f0d1[_0x50fb66(0x131)][_0x191668],_0x21f0d1;}const l=_0x4b6d09(0xe3);function u(_0x504b51){const _0x45eefb=_0x4b6d09;var _0xd175f4,_0x55f4c8,_0x403ff9;let _0x139945=w(_0x504b51[_0x45eefb(0x123)]),_0x15bee1=T(_0x139945),_0x4b74f2=f(_0x504b51[_0x45eefb(0x141)],_0x504b51[_0x45eefb(0xea)]),_0x329f0b=_0x4b74f2?(_0xd175f4=_0x15bee1['blockRanges'])==null?void 0x0:_0xd175f4['find'](_0x1eb755=>_0x1eb755[_0x45eefb(0xb8)]===_0x4b74f2[_0x45eefb(0x141)]&&_0x1eb755[_0x45eefb(0xe6)]+0x1===_0x4b74f2[_0x45eefb(0xea)]):void 0x0,{startOffset:_0x220f52,endOffset:_0x3cf739}=_0x329f0b?_0x4b74f2:te(_0x15bee1,_0x504b51[_0x45eefb(0x141)],_0x504b51[_0x45eefb(0xea)]),_0x4c9e2e=ie(_0x15bee1,_0x220f52,_0x3cf739),_0x76d3fc=(_0x55f4c8=_0x329f0b==null?void 0x0:_0x329f0b[_0x45eefb(0x10b)])==null?_0x504b51[_0x45eefb(0x10b)]:_0x55f4c8,_0x5a3bf3=s(_0x504b51[_0x45eefb(0xbe)],_0x76d3fc,{...i,..._0x504b51[_0x45eefb(0x13a)]});if(_0x329f0b)return _0x329f0b['blockType']=e[_0x45eefb(0x147)][_0x45eefb(0xc7)],d(_0x15bee1,_0x220f52,_0x3cf739),x(_0x15bee1,_0x220f52,_0x3cf739,_0x4c9e2e),O(_0x15bee1,_0x329f0b),{'nextDocumentData':_0x139945,'nextMetadata':_0x5a3bf3,'cursorOffset':_0x220f52+0x1};if(_0x220f52===_0x3cf739){var _0x4fb768,_0x274cb2;let _0x4e0c91=''+e[_0x45eefb(0xc1)]['BLOCK_START']+e['DataStreamTreeTokenType'][_0x45eefb(0xe1)]+e[_0x45eefb(0xc1)][_0x45eefb(0xdc)];k(_0x15bee1,_0x220f52,_0x4e0c91,{'paragraphs':[{'startIndex':0x1,'paragraphId':(0x0,e[_0x45eefb(0xe4)])(new Set((_0x4fb768=_0x15bee1[_0x45eefb(0x148)])==null?void 0x0:_0x4fb768[_0x45eefb(0xee)](_0x39d285=>_0x39d285['paragraphId']))),'paragraphStyle':b(!0x0,!0x0,_0x4c9e2e)}],'blockRanges':[{'blockId':_0x76d3fc,'blockType':e['DocumentBlockRangeType'][_0x45eefb(0xc7)],'startIndex':0x0,'endIndex':_0x4e0c91[_0x45eefb(0xef)]-0x1}]});let _0x2b7629=(_0x274cb2=_0x15bee1[_0x45eefb(0xfc)])==null?void 0x0:_0x274cb2['find'](_0x1f1a5a=>_0x1f1a5a[_0x45eefb(0x10b)]===_0x76d3fc);return _0x2b7629&&O(_0x15bee1,_0x2b7629),{'nextDocumentData':_0x139945,'nextMetadata':_0x5a3bf3,'cursorOffset':_0x220f52+0x1};}k(_0x15bee1,_0x3cf739,e[_0x45eefb(0xc1)][_0x45eefb(0xdc)]),k(_0x15bee1,_0x220f52,e[_0x45eefb(0xc1)][_0x45eefb(0x11a)]),x(_0x15bee1,_0x220f52,_0x3cf739+0x1,_0x4c9e2e);let _0x47abb6={'blockId':_0x76d3fc,'blockType':e[_0x45eefb(0x147)][_0x45eefb(0xc7)],'startIndex':_0x220f52,'endIndex':_0x3cf739+0x1};return _0x15bee1[_0x45eefb(0xfc)]=[...(_0x403ff9=_0x15bee1[_0x45eefb(0xfc)])==null?[]:_0x403ff9,_0x47abb6][_0x45eefb(0x12c)]((_0x37b394,_0x40b6c8)=>_0x37b394[_0x45eefb(0xb8)]-_0x40b6c8['startIndex']),O(_0x15bee1,_0x47abb6),{'nextDocumentData':_0x139945,'nextMetadata':_0x5a3bf3,'cursorOffset':_0x220f52+0x1};}function d(_0x587216,_0x266dce,_0x311160){const _0x3fd01b=_0x4b6d09;var _0x52e464;((_0x52e464=_0x587216[_0x3fd01b(0x148)])==null?[]:_0x52e464)[_0x3fd01b(0x154)](_0x4042bc=>_0x4042bc[_0x3fd01b(0xb8)]>_0x266dce&&_0x4042bc['startIndex']<_0x311160)[_0x3fd01b(0x117)](_0x5ca40b=>{const _0x2bc8a6=_0x3fd01b;var _0x3a2f5f;let _0x2f6a93={...(_0x3a2f5f=_0x5ca40b[_0x2bc8a6(0x125)])==null?{}:_0x3a2f5f};delete _0x2f6a93[_0x2bc8a6(0x151)],delete _0x2f6a93[_0x2bc8a6(0x14d)],_0x5ca40b[_0x2bc8a6(0x125)]=_0x2f6a93;});}function f(_0x4deef4,_0x3c93f5){const _0x282413=_0x4b6d09;return _0x4deef4==null||_0x3c93f5==null||_0x4deef4===_0x3c93f5?null:{'startOffset':Math[_0x282413(0x120)](_0x4deef4,_0x3c93f5),'endOffset':Math[_0x282413(0xbc)](_0x4deef4,_0x3c93f5)};}function p(_0x3051a4){const _0x98292c=_0x4b6d09;return{'nextDocumentData':w(_0x3051a4[_0x98292c(0x123)]),'nextMetadata':s(_0x3051a4['metadata'],_0x3051a4[_0x98292c(0x10b)],_0x3051a4[_0x98292c(0x13a)]),'cursorOffset':0x0};}function m(_0x437eb2){const _0x54e95e=_0x4b6d09;var _0x4a48ac,_0x80f207;let _0x32ea10=w(_0x437eb2['documentData']),_0x570324=T(_0x32ea10),_0x572caf=y(_0x570324,_0x437eb2[_0x54e95e(0x139)]);if(!_0x572caf)return null;let _0x5c309f=C(_0x570324,_0x572caf),_0x161785=_0x5c309f[_0x5c309f[_0x54e95e(0xef)]-0x1];if(!_0x161785||!ee(_0x570324,_0x572caf,_0x161785)||_0x437eb2['cursorOffset']<_0x161785[_0x54e95e(0xb8)])return null;let _0x9712fe=oe(_0x570324,_0x572caf,_0x161785);if(_0x9712fe>=_0x572caf[_0x54e95e(0xe6)])return null;_0x570324[_0x54e95e(0x13d)]=[_0x570324[_0x54e95e(0x13d)]['slice'](0x0,_0x9712fe),e[_0x54e95e(0xc1)]['BLOCK_END'],_0x570324[_0x54e95e(0x13d)]['slice'](_0x9712fe,_0x572caf['endIndex']),_0x570324[_0x54e95e(0x13d)][_0x54e95e(0xad)](_0x572caf[_0x54e95e(0xe6)]+0x1)]['join'](''),P(_0x570324[_0x54e95e(0x148)],_0x9712fe,_0x572caf[_0x54e95e(0xe6)],0x1),P(_0x570324[_0x54e95e(0x11e)],_0x9712fe,_0x572caf[_0x54e95e(0xe6)],0x1),P(_0x570324[_0x54e95e(0x10a)],_0x9712fe,_0x572caf[_0x54e95e(0xe6)],0x1),fe(_0x570324[_0x54e95e(0x104)],_0x9712fe,_0x572caf[_0x54e95e(0xe6)],0x1),F(_0x570324[_0x54e95e(0xc9)],_0x9712fe,_0x572caf['endIndex'],0x1),F(_0x570324[_0x54e95e(0x138)],_0x9712fe,_0x572caf[_0x54e95e(0xe6)],0x1),F(_0x570324[_0x54e95e(0x13e)],_0x9712fe,_0x572caf[_0x54e95e(0xe6)],0x1),(_0x4a48ac=_0x570324[_0x54e95e(0xfc)])==null||_0x4a48ac[_0x54e95e(0x117)](_0x32533e=>{const _0x4e25cd=_0x54e95e;_0x32533e===_0x572caf||_0x32533e[_0x4e25cd(0x10b)]===_0x572caf['blockId']?_0x32533e[_0x4e25cd(0xe6)]=_0x9712fe:_0x32533e[_0x4e25cd(0xb8)]>=_0x9712fe&&_0x32533e[_0x4e25cd(0xb8)]<_0x572caf[_0x4e25cd(0xe6)]&&(_0x32533e[_0x4e25cd(0xb8)]+=0x1,_0x32533e[_0x4e25cd(0xe6)]+=0x1);});let _0x270b82=C(_0x570324,{..._0x572caf,'endIndex':_0x9712fe});_0x270b82[_0x54e95e(0x117)]((_0x50d5df,_0x11f623)=>{const _0x1d2069=_0x54e95e;var _0x8e5013;_0x50d5df[_0x1d2069(0x125)]={...(_0x8e5013=_0x50d5df['paragraphStyle'])==null?{}:_0x8e5013,...b(_0x11f623===0x0,_0x11f623===_0x270b82['length']-0x1)};});let _0x1c6ec3=(_0x80f207=_0x570324[_0x54e95e(0x148)])==null?void 0x0:_0x80f207[_0x54e95e(0x128)](_0x232c1b=>_0x232c1b[_0x54e95e(0xb8)]===_0x9712fe+0x1);return _0x1c6ec3&&(_0x1c6ec3[_0x54e95e(0x125)]=S(_0x1c6ec3[_0x54e95e(0x125)])),{'nextDocumentData':_0x32ea10,'cursorOffset':_0x9712fe+0x1};}function h(_0x1f60bd){const _0xbece11=_0x4b6d09;let _0x43bbf1=w(_0x1f60bd[_0xbece11(0x123)]),_0x22f020=T(_0x43bbf1),_0x2b4657=y(_0x22f020,_0x1f60bd[_0xbece11(0x139)]);return _0x2b4657&&g(_0x43bbf1,_0x22f020,_0x2b4657,_0x1f60bd[_0xbece11(0x139)],_0x1f60bd[_0xbece11(0xaf)])||null;}function g(_0x4a6db8,_0x245010,_0x4d89bf,_0x48ed7a,_0x21d390){const _0x42bd29=_0x4b6d09;let _0x4dfc94=se(_0x245010,_0x4d89bf,_0x48ed7a,_0x21d390);if(!_0x4dfc94)return null;let _0x54f977=_0x4dfc94['endTokenOffset']-0x1;return ce(_0x245010,_0x4dfc94[_0x42bd29(0x10d)][_0x42bd29(0xb8)],_0x4dfc94[_0x42bd29(0x10d)]['startIndex']+0x1),{'nextDocumentData':_0x4a6db8,'cursorOffset':_0x54f977};}function _(_0x5c81bd,_0x563aa1){const _0x44d6a7=_0x4b6d09;var _0x20636c;return _0x5c81bd==null||(_0x20636c=_0x5c81bd[_0x44d6a7(0xfc)])==null?void 0x0:_0x20636c['find'](_0x4df83b=>_0x4df83b[_0x44d6a7(0xdb)]===e[_0x44d6a7(0x147)][_0x44d6a7(0xc7)]&&_0x4df83b[_0x44d6a7(0xb8)]<=_0x563aa1&&_0x563aa1<=_0x4df83b['endIndex']);}function v(_0x8a5816){const _0x4d25d7=_0x4b6d09;var _0x42f051;let _0x34ff11=_0x8a5816[_0x4d25d7(0x123)][_0x4d25d7(0xfe)];if(!_0x34ff11)return!0x1;let _0xf8eb3d=_0x8a5816[_0x4d25d7(0xbf)]===_0x4d25d7(0xec)?_0x8a5816[_0x4d25d7(0x139)]-0x1:_0x8a5816['cursorOffset'],_0x20429d=_0x8a5816[_0x4d25d7(0xbf)]===_0x4d25d7(0xe2)?_0x8a5816['cursorOffset']+0x1:_0xf8eb3d;return((_0x42f051=_0x34ff11['blockRanges'])==null?[]:_0x42f051)[_0x4d25d7(0x10f)](_0x208ad9=>_0x208ad9[_0x4d25d7(0xdb)]===e[_0x4d25d7(0x147)][_0x4d25d7(0xc7)]?_0xf8eb3d===_0x208ad9[_0x4d25d7(0xb8)]||_0xf8eb3d===_0x208ad9[_0x4d25d7(0xe6)]||_0x20429d===_0x208ad9[_0x4d25d7(0xb8)]||_0x20429d===_0x208ad9[_0x4d25d7(0xe6)]:!0x1);}function y(_0x592f83,_0x4be135){const _0x1924b9=_0x4b6d09;var _0x5245b8;return(_0x5245b8=_0x592f83[_0x1924b9(0xfc)])==null?void 0x0:_0x5245b8['find'](_0x41f95e=>{const _0x224770=_0x1924b9;let _0x3304bb=D(_0x592f83,_0x41f95e);return _0x41f95e[_0x224770(0xdb)]===e[_0x224770(0x147)]['CODE']&&_0x41f95e[_0x224770(0xb8)]<=_0x4be135&&_0x4be135<=_0x3304bb+0x2;});}function b(_0x1abe91,_0x34f9ab,_0x47498a=!0x1){return{'indentEnd':{'v':0x14},'indentStart':{'v':0x14},..._0x1abe91&&_0x47498a?{'spaceAbove':{'v':0x8}}:{},'textStyle':{'ff':l,'fs':0xc}};}function x(_0x4aafd6,_0x6cd1fd,_0x44f270,_0x5dc56f=!0x1){const _0x6ad7ba=_0x4b6d09;var _0x40b686;let _0x4ef4d0=((_0x40b686=_0x4aafd6[_0x6ad7ba(0x148)])==null?[]:_0x40b686)[_0x6ad7ba(0x154)](_0x44fc3a=>_0x44fc3a[_0x6ad7ba(0xb8)]>_0x6cd1fd&&_0x44fc3a['startIndex']<_0x44f270);_0x4ef4d0[_0x6ad7ba(0x117)]((_0x5a23a3,_0x39767b)=>{const _0xedcb94=_0x6ad7ba;var _0x56ea65;_0x5a23a3[_0xedcb94(0x125)]={...(_0x56ea65=_0x5a23a3['paragraphStyle'])==null?{}:_0x56ea65,...b(_0x39767b===0x0,_0x39767b===_0x4ef4d0[_0xedcb94(0xef)]-0x1,_0x5dc56f)};});}function S(_0x23e5e3){const _0x1e9862=_0x4b6d09;var _0x1370d2,_0x4039f9;let _0x3ff190={..._0x23e5e3==null?{}:_0x23e5e3};return delete _0x3ff190[_0x1e9862(0x12b)],delete _0x3ff190['indentStart'],delete _0x3ff190[_0x1e9862(0x151)],delete _0x3ff190[_0x1e9862(0x14d)],((_0x1370d2=_0x3ff190[_0x1e9862(0xb1)])==null?void 0x0:_0x1370d2['ff'])===l&&((_0x4039f9=_0x3ff190[_0x1e9862(0xb1)])==null?void 0x0:_0x4039f9['fs'])===0xc&&delete _0x3ff190[_0x1e9862(0xb1)],_0x3ff190;}function C(_0x5a7581,_0x4dd384){const _0x2ec211=_0x4b6d09;var _0x3eeafd;let _0x12a8ac=D(_0x5a7581,_0x4dd384);return((_0x3eeafd=_0x5a7581[_0x2ec211(0x148)])==null?[]:_0x3eeafd)[_0x2ec211(0x154)](_0x1b2eee=>_0x1b2eee[_0x2ec211(0xb8)]>_0x4dd384[_0x2ec211(0xb8)]&&_0x1b2eee[_0x2ec211(0xb8)]<_0x12a8ac);}function ee(_0x5b59ab,_0x25fa9a,_0x48b337){const _0x18f2a5=_0x4b6d09;let _0x549ccd=oe(_0x5b59ab,_0x25fa9a,_0x48b337),_0x3730eb=_0x5b59ab[_0x18f2a5(0x13d)][_0x18f2a5(0xad)](_0x549ccd,_0x48b337[_0x18f2a5(0xb8)]);return Array[_0x18f2a5(0xce)](_0x3730eb)['every'](_0x686a39=>_0x686a39===e[_0x18f2a5(0xc1)]['BLOCK_START']||_0x686a39===e[_0x18f2a5(0xc1)][_0x18f2a5(0xdc)]);}function w(_0x210066){const _0x5ddf55=_0x4b6d09;return e['Tools'][_0x5ddf55(0x14f)](_0x210066);}function T(_0x548ac9){const _0x3b831b=_0x4b6d09;if(!_0x548ac9['body'])throw Error('Document\x20body\x20is\x20required');return _0x548ac9[_0x3b831b(0xfe)];}function te(_0x512183,_0x100395,_0x48e7b9){if(_0x100395==null||_0x48e7b9==null){let _0x421936=re(_0x512183);return{'startOffset':_0x421936,'endOffset':_0x421936};}let _0x247728=Math['min'](_0x100395,_0x48e7b9),_0x95ac9=Math['max'](_0x100395,_0x48e7b9);if(_0x247728===_0x95ac9){let _0x56a8f3=ne(_0x512183,_0x247728);return{'startOffset':_0x56a8f3,'endOffset':_0x56a8f3};}return ae(_0x512183,_0x247728,_0x95ac9);}function ne(_0x1f9c15,_0xafa0e9){const _0x5a13b0=_0x4b6d09;return _0xafa0e9===0x0&&_0x1f9c15[_0x5a13b0(0x13d)][0x0]===e['DataStreamTreeTokenType'][_0x5a13b0(0xe1)]?0x1:_0xafa0e9;}function re(_0x1a5050){const _0x12629b=_0x4b6d09;return _0x1a5050['dataStream'][_0x12629b(0x100)](e[_0x12629b(0xc1)][_0x12629b(0xf2)])?Math[_0x12629b(0xbc)](0x0,_0x1a5050['dataStream'][_0x12629b(0xef)]-0x1):_0x1a5050[_0x12629b(0x13d)][_0x12629b(0xef)];}function ie(_0x346ec3,_0x4e0cfc,_0x2a6faa){const _0x23c474=_0x4b6d09;var _0x3a321e;let _0x489e06=Math[_0x23c474(0x120)](_0x4e0cfc,_0x2a6faa),_0x390b25=Math[_0x23c474(0xbc)](_0x4e0cfc,_0x2a6faa);return!!((_0x3a321e=_0x346ec3[_0x23c474(0xc9)])!=null&&_0x3a321e['some'](_0x1b0464=>_0x489e06>_0x1b0464[_0x23c474(0xb8)]&&_0x489e06<_0x1b0464[_0x23c474(0xe6)]||_0x390b25>_0x1b0464[_0x23c474(0xb8)]&&_0x390b25<_0x1b0464[_0x23c474(0xe6)]||_0x489e06<=_0x1b0464['startIndex']&&_0x390b25>=_0x1b0464[_0x23c474(0xe6)]));}function ae(_0x2bea01,_0x5524a3,_0x186d80){const _0x1ef9d9=_0x4b6d09;var _0xffdae4,_0x3135f5;let _0x34ab3b=[...(_0xffdae4=_0x2bea01[_0x1ef9d9(0x148)])==null?[]:_0xffdae4][_0x1ef9d9(0x12c)]((_0x12d6b8,_0x22ad0e)=>_0x12d6b8[_0x1ef9d9(0xb8)]-_0x22ad0e['startIndex']),_0x4cdf84=_0x34ab3b[_0x1ef9d9(0x128)]((_0x9f92da,_0x2e0cba)=>(_0x2e0cba===0x0?0x0:_0x34ab3b[_0x2e0cba-0x1][_0x1ef9d9(0xb8)]+0x1)<=_0x5524a3&&_0x5524a3<=_0x9f92da[_0x1ef9d9(0xb8)]),_0x58478b=(_0x3135f5=_0x34ab3b[_0x1ef9d9(0x128)](_0x54be77=>_0x54be77['startIndex']>=_0x186d80-0x1))==null?_0x34ab3b[_0x34ab3b['length']-0x1]:_0x3135f5;return{'startOffset':_0x4cdf84?E(_0x34ab3b,_0x4cdf84):_0x5524a3,'endOffset':_0x58478b?_0x58478b[_0x1ef9d9(0xb8)]+0x1:_0x186d80};}function E(_0x318764,_0x5c15b6){const _0x4e37f8=_0x4b6d09;let _0x34edab=_0x318764[_0x4e37f8(0x137)](_0x5c15b6);return _0x34edab>0x0?_0x318764[_0x34edab-0x1]['startIndex']+0x1:0x0;}function _0xc18d(){const _0x32ab97=['8111545jwXcLS','dispose','DocsCodeInsertCommand','CODE','206990aKmOWf','tables','IConfigService','IResourceManagerService','64FVnOZp','JSONX','from','_initResource','408jkIjfO','ICommandService','version','Tools','every','registerPluginResource','delete','docs-code.command.consume-boundary-delete','_commandService','_injector','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','blockType','BLOCK_END','change$','commandService','getSnapshot','next','PARAGRAPH','right','monospace','createParagraphId','setConfig','endIndex','2570jvlsIW','docs-code.command.insert','37556959vKGXJR','endOffset','unitId','left','deserialize','map','length','DocsCodeConsumeBoundaryDeleteCommand','DocContentInsertService','SECTION_BREAK','string','object','DEFAULT_CODE_CONFIG','Subject','default','877063jjNCCu','type','UniverDocsCodePlugin','_change$','blockRanges','function','body','UniverInstanceType','endsWith','iterator','_docsCodeModel','Inject','textRuns','getBody','DOCS_CODE_PLUGIN','disposeWithMe','DependentOn','_configService','customBlocks','blockId','consumeInsertRange','paragraph','asObservable','some','IUniverInstanceService','nextMetadata','previousDocumentData','compose','DocsCodeModel','UNIVER_DOC','parse','forEach','isCodeBoundaryDelete','normalizeDocsCodeConfig','BLOCK_START','getParagraphsInRange','syncExecuteCommand','toPrimitive','sectionBreaks','getUniverDocInstance','min','_resourceManagerService','onStarting','documentData','4UnjdFa','paragraphStyle','1.0.0-insiders.20260629-12f2e44','getOwnPropertyDescriptor','find','9022278mDXDVQ','toStringTag','indentEnd','sort','docs-code.command.insert-below','packageName','constructor','29196RWRnls','codes','buildUpdateCodeActions','set','pluginName','call','removeUnit','indexOf','customRanges','cursorOffset','config','getCodeConfig','docs-code.config','dataStream','customDecorations','DocsCodeInsertBelowCommand','BuildTextUtils','startOffset','DocsCodeExitCommand','DocSelectionManagerService','decorate','serialize','add','DocumentBlockRangeType','paragraphs','stringify','Plugin','get','diffValue','spaceBelow','buildExitCodeActions','deepClone','merge','spaceAbove','docs-code.command.cancel-empty-paragraph','replaceOp','filter','prototype','setCodeConfig','getUnitId','defineProperty','buildInsertCodeActions','CommandType','slice','complete','paragraphStartIndex','javascript','textStyle','symbol','model','getCurrentUnitOfType','COMMAND','nextDocumentData','DOC_CODE_PLUGIN','startIndex','docs-code.command.update','_resources','237030YNxETY','max','removeCode','metadata','direction','Injector','DataStreamTreeTokenType','Disposable','Module'];_0xc18d=function(){return _0x32ab97;};return _0xc18d();}function oe(_0x597a4c,_0x21e95b,_0x30f9d5){const _0x2b5173=_0x4b6d09;var _0x1eb512;return Math['max'](E((_0x1eb512=_0x597a4c['paragraphs'])==null?[]:_0x1eb512,_0x30f9d5),_0x21e95b[_0x2b5173(0xb8)]+0x1);}function D(_0x92bf6f,_0x2966f6){const _0x437be7=_0x4b6d09;return _0x92bf6f['dataStream'][_0x2966f6['endIndex']]===e[_0x437be7(0xc1)][_0x437be7(0xdc)]?_0x2966f6[_0x437be7(0xe6)]:_0x92bf6f[_0x437be7(0x13d)][_0x2966f6[_0x437be7(0xe6)]+0x1]===e[_0x437be7(0xc1)][_0x437be7(0xdc)]?_0x2966f6['endIndex']+0x1:_0x2966f6[_0x437be7(0xe6)];}function se(_0x3f0e68,_0xaf0eeb,_0x5906e9,_0x4b1854){const _0x67b65f=_0x4b6d09;var _0x2ea7db,_0x14e00c;let _0x200f96=D(_0x3f0e68,_0xaf0eeb),_0x2c00ca=((_0x2ea7db=_0x3f0e68[_0x67b65f(0x148)])==null?[]:_0x2ea7db)[_0x67b65f(0x128)](_0x1f10a2=>_0x1f10a2[_0x67b65f(0xb8)]===_0x200f96+0x1);if(!_0x2c00ca||_0x4b1854!=null&&_0x2c00ca[_0x67b65f(0xb8)]!==_0x4b1854||_0x5906e9<_0x200f96||_0x5906e9>_0x2c00ca[_0x67b65f(0xb8)]+0x1||_0x3f0e68[_0x67b65f(0x13d)][_0x2c00ca[_0x67b65f(0xb8)]]!==e[_0x67b65f(0xc1)][_0x67b65f(0xe1)])return null;let _0x3f4f75=E((_0x14e00c=_0x3f0e68[_0x67b65f(0x148)])==null?[]:_0x14e00c,_0x2c00ca),_0x2a3579=_0x3f0e68[_0x67b65f(0x13d)]['slice'](_0x3f4f75,_0x2c00ca[_0x67b65f(0xb8)]);return Array[_0x67b65f(0xce)](_0x2a3579)[_0x67b65f(0xd4)](_0x22044d=>_0x22044d===e[_0x67b65f(0xc1)][_0x67b65f(0xdc)])?{'paragraph':_0x2c00ca,'endTokenOffset':_0x200f96}:null;}function O(_0x17ca82,_0xff37b6){const _0x24053a=_0x4b6d09;var _0x2d205a;let _0x46fe9a=D(_0x17ca82,_0xff37b6),_0x5153ed=_0x17ca82['dataStream'][_0x46fe9a+0x1];_0x5153ed!==e[_0x24053a(0xc1)][_0x24053a(0xf2)]&&_0x5153ed!==void 0x0||k(_0x17ca82,_0x46fe9a+0x1,e[_0x24053a(0xc1)][_0x24053a(0xe1)],{'paragraphs':[{'startIndex':0x0,'paragraphId':(0x0,e[_0x24053a(0xe4)])(new Set((_0x2d205a=_0x17ca82[_0x24053a(0x148)])==null?void 0x0:_0x2d205a['map'](_0x3f4b26=>_0x3f4b26['paragraphId'])))}]});}function k(_0x1bbc57,_0x105c04,_0x4fafb9,_0x8e725d={}){const _0x436c5b=_0x4b6d09;var _0x4dd743,_0x300dbd;if(_0x4fafb9){if(_0x1bbc57[_0x436c5b(0x13d)]=''+_0x1bbc57[_0x436c5b(0x13d)][_0x436c5b(0xad)](0x0,_0x105c04)+_0x4fafb9+_0x1bbc57[_0x436c5b(0x13d)][_0x436c5b(0xad)](_0x105c04),le(_0x1bbc57,_0x105c04,_0x4fafb9[_0x436c5b(0xef)]),(_0x4dd743=_0x8e725d['paragraphs'])!=null&&_0x4dd743[_0x436c5b(0xef)]){var _0x172ece;_0x1bbc57['paragraphs']=[...(_0x172ece=_0x1bbc57[_0x436c5b(0x148)])==null?[]:_0x172ece,..._0x8e725d[_0x436c5b(0x148)][_0x436c5b(0xee)](_0x33c8c7=>({..._0x33c8c7,'startIndex':_0x33c8c7[_0x436c5b(0xb8)]+_0x105c04}))][_0x436c5b(0x12c)]((_0x3edf91,_0x2252b6)=>_0x3edf91[_0x436c5b(0xb8)]-_0x2252b6[_0x436c5b(0xb8)]);}if((_0x300dbd=_0x8e725d[_0x436c5b(0xfc)])!=null&&_0x300dbd['length']){var _0x5624e9;_0x1bbc57[_0x436c5b(0xfc)]=[...(_0x5624e9=_0x1bbc57[_0x436c5b(0xfc)])==null?[]:_0x5624e9,..._0x8e725d['blockRanges'][_0x436c5b(0xee)](_0xd7e51d=>({..._0xd7e51d,'startIndex':_0xd7e51d[_0x436c5b(0xb8)]+_0x105c04,'endIndex':_0xd7e51d[_0x436c5b(0xe6)]+_0x105c04}))][_0x436c5b(0x12c)]((_0x1cef8f,_0x28aabb)=>_0x1cef8f['startIndex']-_0x28aabb[_0x436c5b(0xb8)]);}}}function ce(_0xc4efbd,_0x15b310,_0x4f8f74){const _0x330b8c=_0x4b6d09;let _0xaaacbd=_0x4f8f74-_0x15b310;_0xc4efbd[_0x330b8c(0x13d)]=''+_0xc4efbd[_0x330b8c(0x13d)]['slice'](0x0,_0x15b310)+_0xc4efbd[_0x330b8c(0x13d)][_0x330b8c(0xad)](_0x4f8f74),ue(_0xc4efbd,_0x15b310,_0xaaacbd);}function le(_0x53179a,_0xf406f7,_0x55b381){const _0x211308=_0x4b6d09;_0x53179a[_0x211308(0x148)]=A(_0x53179a['paragraphs'],_0xf406f7,_0x55b381),_0x53179a[_0x211308(0x11e)]=A(_0x53179a[_0x211308(0x11e)],_0xf406f7,_0x55b381),_0x53179a[_0x211308(0x10a)]=A(_0x53179a['customBlocks'],_0xf406f7,_0x55b381),_0x53179a[_0x211308(0x104)]=de(_0x53179a['textRuns'],_0xf406f7,_0x55b381),_0x53179a['tables']=M(_0x53179a[_0x211308(0xc9)],_0xf406f7,_0x55b381),_0x53179a[_0x211308(0x138)]=M(_0x53179a[_0x211308(0x138)],_0xf406f7,_0x55b381),_0x53179a[_0x211308(0x13e)]=M(_0x53179a[_0x211308(0x13e)],_0xf406f7,_0x55b381),_0x53179a[_0x211308(0xfc)]=M(_0x53179a[_0x211308(0xfc)],_0xf406f7,_0x55b381);}function ue(_0x216a32,_0x252625,_0x113f25){const _0x23694d=_0x4b6d09;var _0x3f1e87,_0x102406;_0x216a32[_0x23694d(0x148)]=j(_0x216a32[_0x23694d(0x148)],_0x252625,_0x113f25),_0x216a32['sectionBreaks']=j(_0x216a32[_0x23694d(0x11e)],_0x252625,_0x113f25),_0x216a32[_0x23694d(0x10a)]=j(_0x216a32[_0x23694d(0x10a)],_0x252625,_0x113f25),_0x216a32['textRuns']=(_0x3f1e87=N((_0x102406=_0x216a32[_0x23694d(0x104)])==null?void 0x0:_0x102406[_0x23694d(0xee)](_0x20d05b=>({..._0x20d05b,'startIndex':_0x20d05b['st'],'endIndex':_0x20d05b['ed']})),_0x252625,_0x113f25))==null?void 0x0:_0x3f1e87[_0x23694d(0xee)](_0x382313=>{let {startIndex:_0x1253a1,endIndex:_0x32c5bf,..._0x4c7599}=_0x382313;return{..._0x4c7599,'st':_0x1253a1,'ed':_0x32c5bf};}),_0x216a32[_0x23694d(0xc9)]=N(_0x216a32[_0x23694d(0xc9)],_0x252625,_0x113f25),_0x216a32[_0x23694d(0x138)]=N(_0x216a32[_0x23694d(0x138)],_0x252625,_0x113f25),_0x216a32['customDecorations']=N(_0x216a32[_0x23694d(0x13e)],_0x252625,_0x113f25),_0x216a32[_0x23694d(0xfc)]=N(_0x216a32[_0x23694d(0xfc)],_0x252625,_0x113f25);}function A(_0x7352d4,_0x172a76,_0x460a47){const _0x428677=_0x4b6d09;return _0x7352d4==null?void 0x0:_0x7352d4[_0x428677(0xee)](_0x4869f6=>_0x4869f6[_0x428677(0xb8)]>=_0x172a76?{..._0x4869f6,'startIndex':_0x4869f6[_0x428677(0xb8)]+_0x460a47}:_0x4869f6);}function j(_0x1c4d62,_0x4699cd,_0x431e59){const _0x46e2db=_0x4b6d09;let _0x3453b1=_0x4699cd+_0x431e59;return _0x1c4d62==null?void 0x0:_0x1c4d62[_0x46e2db(0xee)](_0x1d662c=>_0x1d662c['startIndex']>=_0x4699cd&&_0x1d662c[_0x46e2db(0xb8)]<_0x3453b1?null:_0x1d662c[_0x46e2db(0xb8)]>=_0x3453b1?{..._0x1d662c,'startIndex':_0x1d662c[_0x46e2db(0xb8)]-_0x431e59}:_0x1d662c)['filter'](_0x5688ee=>_0x5688ee!=null);}function _0x1328(_0x5a2ff1,_0x4d089f){_0x5a2ff1=_0x5a2ff1-0xa8;const _0xc18d67=_0xc18d();let _0x132849=_0xc18d67[_0x5a2ff1];return _0x132849;}function de(_0x3553a5,_0x3097a0,_0x8eb6e8){return _0x3553a5==null?void 0x0:_0x3553a5['map'](_0x3b6f2f=>_0x3b6f2f['st']>=_0x3097a0?{..._0x3b6f2f,'st':_0x3b6f2f['st']+_0x8eb6e8,'ed':_0x3b6f2f['ed']+_0x8eb6e8}:_0x3b6f2f['ed']>_0x3097a0?{..._0x3b6f2f,'ed':_0x3b6f2f['ed']+_0x8eb6e8}:_0x3b6f2f);}function M(_0x5b38f8,_0x5ef560,_0xface8a){const _0x49b659=_0x4b6d09;return _0x5b38f8==null?void 0x0:_0x5b38f8[_0x49b659(0xee)](_0x17e6fa=>_0x17e6fa[_0x49b659(0xb8)]>=_0x5ef560?{..._0x17e6fa,'startIndex':_0x17e6fa[_0x49b659(0xb8)]+_0xface8a,'endIndex':_0x17e6fa[_0x49b659(0xe6)]+_0xface8a}:_0x17e6fa[_0x49b659(0xe6)]>=_0x5ef560?{..._0x17e6fa,'endIndex':_0x17e6fa[_0x49b659(0xe6)]+_0xface8a}:_0x17e6fa);}function N(_0x351276,_0x48c21b,_0x48d38c){const _0x3d56a1=_0x4b6d09;let _0x53fd0c=_0x48c21b+_0x48d38c;return _0x351276==null?void 0x0:_0x351276[_0x3d56a1(0xee)](_0x7471c8=>_0x7471c8[_0x3d56a1(0xb8)]>=_0x48c21b&&_0x7471c8[_0x3d56a1(0xe6)]<_0x53fd0c?null:_0x7471c8[_0x3d56a1(0xb8)]>=_0x53fd0c?{..._0x7471c8,'startIndex':_0x7471c8['startIndex']-_0x48d38c,'endIndex':_0x7471c8[_0x3d56a1(0xe6)]-_0x48d38c}:_0x7471c8['endIndex']>=_0x48c21b?{..._0x7471c8,'startIndex':_0x7471c8[_0x3d56a1(0xb8)]<_0x48c21b?_0x7471c8[_0x3d56a1(0xb8)]:_0x48c21b,'endIndex':Math[_0x3d56a1(0xbc)](_0x48c21b,_0x7471c8[_0x3d56a1(0xe6)]-_0x48d38c)}:_0x7471c8)[_0x3d56a1(0x154)](_0x1d5ca7=>_0x1d5ca7!=null);}function P(_0x336e81,_0x3067f5,_0xa6f0c0,_0x44a200){const _0x61da97=_0x4b6d09;_0x336e81==null||_0x336e81[_0x61da97(0x117)](_0x2c94f1=>{const _0x229a72=_0x61da97;_0x2c94f1['startIndex']>=_0x3067f5&&_0x2c94f1[_0x229a72(0xb8)]<_0xa6f0c0&&(_0x2c94f1[_0x229a72(0xb8)]+=_0x44a200);});}function fe(_0x5395b3,_0x210dd1,_0x4d21be,_0x270d17){const _0x52903f=_0x4b6d09;_0x5395b3==null||_0x5395b3[_0x52903f(0x117)](_0x5c4e61=>{_0x5c4e61['st']>=_0x210dd1&&_0x5c4e61['st']<_0x4d21be?(_0x5c4e61['st']+=_0x270d17,_0x5c4e61['ed']+=_0x270d17):_0x5c4e61['ed']>_0x210dd1&&_0x5c4e61['ed']<_0x4d21be&&(_0x5c4e61['ed']+=_0x270d17);});}function F(_0x3c7be6,_0x58c5c0,_0x272fd5,_0x571b75){const _0x3427c6=_0x4b6d09;_0x3c7be6==null||_0x3c7be6[_0x3427c6(0x117)](_0x5905d1=>{const _0x4d61e0=_0x3427c6;_0x5905d1['startIndex']>=_0x58c5c0&&_0x5905d1[_0x4d61e0(0xb8)]<_0x272fd5?(_0x5905d1['startIndex']+=_0x571b75,_0x5905d1[_0x4d61e0(0xe6)]+=_0x571b75):_0x5905d1['endIndex']>_0x58c5c0&&_0x5905d1['endIndex']<_0x272fd5&&(_0x5905d1['endIndex']+=_0x571b75);});}function I(_0x2fcf87){'@babel/helpers - typeof';const _0x3e326e=_0x4b6d09;return I=typeof Symbol=='function'&&typeof Symbol[_0x3e326e(0x101)]==_0x3e326e(0xb2)?function(_0x30bf89){return typeof _0x30bf89;}:function(_0x3633d1){const _0xca254f=_0x3e326e;return _0x3633d1&&typeof Symbol=='function'&&_0x3633d1[_0xca254f(0x12f)]===Symbol&&_0x3633d1!==Symbol[_0xca254f(0x155)]?'symbol':typeof _0x3633d1;},I(_0x2fcf87);}function pe(_0x5b6394,_0x2f6793){const _0xf5af6f=_0x4b6d09;if(I(_0x5b6394)!='object'||!_0x5b6394)return _0x5b6394;var _0x1f0dd6=_0x5b6394[Symbol[_0xf5af6f(0x11d)]];if(_0x1f0dd6!==void 0x0){var _0x5c5c4c=_0x1f0dd6[_0xf5af6f(0x135)](_0x5b6394,_0x2f6793||_0xf5af6f(0xf7));if(I(_0x5c5c4c)!=_0xf5af6f(0xf4))return _0x5c5c4c;throw TypeError(_0xf5af6f(0xda));}return(_0x2f6793==='string'?String:Number)(_0x5b6394);}function me(_0x18e97f){const _0x4ad613=_0x4b6d09;var _0x49743c=pe(_0x18e97f,_0x4ad613(0xf3));return I(_0x49743c)==_0x4ad613(0xb2)?_0x49743c:_0x49743c+'';}function L(_0x293615,_0x320263,_0x27e203){const _0x5d7526=_0x4b6d09;return(_0x320263=me(_0x320263))in _0x293615?Object[_0x5d7526(0xaa)](_0x293615,_0x320263,{'value':_0x27e203,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x293615[_0x320263]=_0x27e203,_0x293615;}var R=class extends e['Disposable']{constructor(..._0x11bb27){const _0x3dbbe0=_0x4b6d09;super(..._0x11bb27),L(this,_0x3dbbe0(0xba),new Map()),L(this,_0x3dbbe0(0xfb),new n[(_0x3dbbe0(0xf6))]()),L(this,_0x3dbbe0(0xdd),this[_0x3dbbe0(0xfb)][_0x3dbbe0(0x10e)]());}[_0x4b6d09(0x13b)](_0x313555,_0x4d9f9b){const _0x196570=_0x4b6d09;return o(this[_0x196570(0xba)][_0x196570(0x14b)](_0x313555))[_0x196570(0x131)][_0x4d9f9b];}[_0x4b6d09(0xa8)](_0x55c5c2,_0x2e772e,_0x4cefc2){const _0x141bca=_0x4b6d09;this['_setResource'](_0x55c5c2,_0x2e772e,s(this[_0x141bca(0xba)][_0x141bca(0x14b)](_0x55c5c2),_0x2e772e,_0x4cefc2));}[_0x4b6d09(0xbd)](_0x3acd24,_0x4150b8){const _0x2f1ea4=_0x4b6d09;this['_setResource'](_0x3acd24,_0x4150b8,c(this[_0x2f1ea4(0xba)][_0x2f1ea4(0x14b)](_0x3acd24),_0x4150b8));}['serialize'](_0x25a400){const _0x886aac=_0x4b6d09;return o(this['_resources'][_0x886aac(0x14b)](_0x25a400));}[_0x4b6d09(0xed)](_0x56729b,_0x3875be){const _0x2720c8=_0x4b6d09;this[_0x2720c8(0xba)][_0x2720c8(0x133)](_0x56729b,o(_0x3875be)),this[_0x2720c8(0xfb)]['next']({'unitId':_0x56729b});}['removeUnit'](_0x452e54){const _0x3f7944=_0x4b6d09;this['_resources'][_0x3f7944(0xd6)](_0x452e54),this[_0x3f7944(0xfb)][_0x3f7944(0xe0)]({'unitId':_0x452e54});}[_0x4b6d09(0xc5)](){const _0x5a2a93=_0x4b6d09;super[_0x5a2a93(0xc5)](),this['_resources']['clear'](),this[_0x5a2a93(0xfb)][_0x5a2a93(0xae)]();}['_setResource'](_0x42bcc3,_0x372144,_0x4015e8){const _0x39ff77=_0x4b6d09;this[_0x39ff77(0xba)][_0x39ff77(0x133)](_0x42bcc3,_0x4015e8),this[_0x39ff77(0xfb)][_0x39ff77(0xe0)]({'unitId':_0x42bcc3,'blockId':_0x372144});}};const z={'id':_0x4b6d09(0x12d),'type':e[_0x4b6d09(0xac)][_0x4b6d09(0xb5)],'handler':_0x37e861=>{const _0x435d52=_0x4b6d09;let _0x5cf6db=he(_0x37e861);if(_0x5cf6db)return _0x37e861[_0x435d52(0x14b)](e[_0x435d52(0xd1)])[_0x435d52(0x11c)](V['id'],{'startOffset':_0x5cf6db['startOffset'],'endOffset':_0x5cf6db[_0x435d52(0xea)],'unitId':_0x5cf6db['unitId']});let _0xdafb10=ge(_0x37e861);if(!_0xdafb10)return!0x1;let _0x4799b5=_0xdafb10[_0x435d52(0xb8)]+0x1;return _0x37e861[_0x435d52(0x14b)](e['ICommandService'])[_0x435d52(0x11c)](V['id'],{'startOffset':_0x4799b5,'endOffset':_0x4799b5});}},B={'id':_0x4b6d09(0xd7),'type':e[_0x4b6d09(0xac)][_0x4b6d09(0xb5)],'handler':()=>!0x0},V={'id':_0x4b6d09(0xe8),'type':e[_0x4b6d09(0xac)][_0x4b6d09(0xb5)],'handler':(_0x4f3492,_0x1f94b4)=>{const _0x1f46ff=_0x4b6d09;var _0x36807d,_0x2525b3,_0xcf30a1;let _0xf49d90=G(_0x4f3492,_0x1f94b4==null?void 0x0:_0x1f94b4['unitId']);if(!_0xf49d90)return!0x1;let _0x25cce2=K(_0x4f3492),_0x37e003=u({'blockId':(_0x36807d=_0x1f94b4==null?void 0x0:_0x1f94b4[_0x1f46ff(0x10b)])==null?(0x0,e['generateRandomId'])(0x6):_0x36807d,'config':_0x1f94b4==null?void 0x0:_0x1f94b4[_0x1f46ff(0x13a)],'documentData':_0xf49d90[_0x1f46ff(0x112)],'endOffset':(_0x2525b3=_0x1f94b4==null?void 0x0:_0x1f94b4[_0x1f46ff(0xea)])==null?_0x25cce2==null?void 0x0:_0x25cce2[_0x1f46ff(0xea)]:_0x2525b3,'metadata':_0xf49d90['model'][_0x1f46ff(0x145)](_0xf49d90[_0x1f46ff(0xeb)]),'startOffset':(_0xcf30a1=_0x1f94b4==null?void 0x0:_0x1f94b4[_0x1f46ff(0x141)])==null?_0x25cce2==null?void 0x0:_0x25cce2['startOffset']:_0xcf30a1}),_0x4bb2a7=J(_0xf49d90['commandService'],_0xf49d90[_0x1f46ff(0xeb)],_0xf49d90['previousDocumentData'],_0x37e003[_0x1f46ff(0xb6)],_0x37e003[_0x1f46ff(0x139)]);return _0x4bb2a7&&_0x37e003[_0x1f46ff(0x111)]&&_0xf49d90[_0x1f46ff(0xb3)][_0x1f46ff(0xed)](_0xf49d90[_0x1f46ff(0xeb)],_0x37e003[_0x1f46ff(0x111)]),_0x4bb2a7;}},H={'id':_0x4b6d09(0xb9),'type':e[_0x4b6d09(0xac)][_0x4b6d09(0xb5)],'handler':(_0x30ad98,_0x1bbc3f)=>{const _0x48e633=_0x4b6d09;if(!_0x1bbc3f)return!0x1;let _0x427957=G(_0x30ad98,_0x1bbc3f[_0x48e633(0xeb)]);if(!_0x427957)return!0x1;let _0x2d7863=p({'blockId':_0x1bbc3f[_0x48e633(0x10b)],'config':_0x1bbc3f[_0x48e633(0x13a)],'documentData':_0x427957[_0x48e633(0x112)],'metadata':_0x427957[_0x48e633(0xb3)][_0x48e633(0x145)](_0x427957[_0x48e633(0xeb)])});return _0x2d7863[_0x48e633(0x111)]&&_0x427957[_0x48e633(0xb3)][_0x48e633(0xed)](_0x427957['unitId'],_0x2d7863[_0x48e633(0x111)]),!0x0;}},U={'id':'docs-code.command.exit','type':e[_0x4b6d09(0xac)]['COMMAND'],'handler':(_0x51f81e,_0x49b2b7)=>{const _0x585af3=_0x4b6d09;var _0x4c4629,_0x4d9778;let _0x494bf1=G(_0x51f81e,_0x49b2b7==null?void 0x0:_0x49b2b7['unitId']);if(!_0x494bf1)return!0x1;let _0x21dbdd=(_0x4c4629=_0x49b2b7==null?void 0x0:_0x49b2b7['cursorOffset'])==null?(_0x4d9778=K(_0x51f81e))==null?void 0x0:_0x4d9778[_0x585af3(0x141)]:_0x4c4629;if(_0x21dbdd==null)return!0x1;let _0x280420=m({'cursorOffset':_0x21dbdd,'documentData':_0x494bf1[_0x585af3(0x112)]});return _0x280420?J(_0x494bf1[_0x585af3(0xde)],_0x494bf1[_0x585af3(0xeb)],_0x494bf1['previousDocumentData'],_0x280420[_0x585af3(0xb6)],_0x280420[_0x585af3(0x139)]):!0x1;}},W={'id':_0x4b6d09(0x152),'type':e['CommandType'][_0x4b6d09(0xb5)],'handler':(_0x143edf,_0x2fbf82)=>{const _0x59cc45=_0x4b6d09;var _0x37718f,_0x209621;let _0x103dca=G(_0x143edf,_0x2fbf82==null?void 0x0:_0x2fbf82[_0x59cc45(0xeb)]);if(!_0x103dca)return!0x1;let _0x6af495=(_0x37718f=_0x2fbf82==null?void 0x0:_0x2fbf82[_0x59cc45(0x139)])==null?(_0x209621=K(_0x143edf))==null?void 0x0:_0x209621[_0x59cc45(0x141)]:_0x37718f;if(_0x6af495==null)return!0x1;let _0xd24150=h({'cursorOffset':_0x6af495,'documentData':_0x103dca['previousDocumentData'],'paragraphStartIndex':_0x2fbf82==null?void 0x0:_0x2fbf82['paragraphStartIndex']});return _0xd24150?J(_0x103dca[_0x59cc45(0xde)],_0x103dca[_0x59cc45(0xeb)],_0x103dca[_0x59cc45(0x112)],_0xd24150['nextDocumentData'],_0xd24150[_0x59cc45(0x139)]):!0x1;}};function G(_0xf76a41,_0x227790){const _0x3b97c5=_0x4b6d09;let _0x58da39=_0xf76a41['get'](e['IUniverInstanceService']),_0x2d87f7=_0x227790?_0x58da39[_0x3b97c5(0x11f)](_0x227790):_0x58da39[_0x3b97c5(0xb4)](e['UniverInstanceType'][_0x3b97c5(0x115)]);return _0x2d87f7?{'commandService':_0xf76a41[_0x3b97c5(0x14b)](e[_0x3b97c5(0xd1)]),'model':_0xf76a41['get'](R),'previousDocumentData':_0x2d87f7[_0x3b97c5(0xdf)](),'unitId':_0x2d87f7[_0x3b97c5(0xa9)]()}:null;}function K(_0x2dffc4){const _0x3c973b=_0x4b6d09;var _0x3649bb;return(_0x3649bb=_0x2dffc4[_0x3c973b(0x14b)](t[_0x3c973b(0x143)])['getTextRanges']())==null?void 0x0:_0x3649bb[0x0];}function he(_0x1bffbe){const _0x488dde=_0x4b6d09;var _0x5ce935;let _0x3b7683=(_0x5ce935=_0x1bffbe[_0x488dde(0x14b)](e[_0x488dde(0x110)])[_0x488dde(0xb4)](e[_0x488dde(0xff)][_0x488dde(0x115)]))==null?void 0x0:_0x5ce935[_0x488dde(0xa9)]();try{return _0x1bffbe[_0x488dde(0x14b)](t[_0x488dde(0xf1)])[_0x488dde(0x10c)](_0x3b7683);}catch{return null;}}function ge(_0x293850){const _0x1c97c5=_0x4b6d09;var _0xc8ebc7,_0x3fcb5c,_0x446864;let _0x451bcc=K(_0x293850);if(!_0x451bcc)return null;let _0x13e549=_0x293850[_0x1c97c5(0x14b)](e[_0x1c97c5(0x110)])['getCurrentUnitOfType'](e[_0x1c97c5(0xff)][_0x1c97c5(0x115)]),_0x3f183b=_0x13e549==null?void 0x0:_0x13e549[_0x1c97c5(0x105)]();return _0x3f183b?(_0xc8ebc7=e[_0x1c97c5(0x140)]['range'][_0x1c97c5(0x11b)](_0x451bcc,(_0x3fcb5c=_0x3f183b[_0x1c97c5(0x148)])==null?[]:_0x3fcb5c,(_0x446864=_0x3f183b[_0x1c97c5(0x13d)])==null?'':_0x446864)[0x0])==null?null:_0xc8ebc7:null;}function _e(_0x5716f6,_0x5de8d7){const _0x529c31=_0x4b6d09;var _0x1861aa,_0x504ff9,_0x569ba2,_0x56fd1a,_0xf405a3,_0x29b6ea,_0x5a8e2c,_0x10b391,_0x270e1d,_0x24bfcd,_0x195bb2,_0x372ee4,_0x2709b6,_0x429d47,_0x3bb04e,_0x33033c,_0x1a476e,_0x57e732;let _0x204de3=e[_0x529c31(0xcd)]['getInstance']();return[q(_0x204de3,[_0x529c31(0xfe),_0x529c31(0x13d)],(_0x1861aa=_0x5716f6[_0x529c31(0xfe)])==null?void 0x0:_0x1861aa[_0x529c31(0x13d)],(_0x504ff9=_0x5de8d7[_0x529c31(0xfe)])==null?void 0x0:_0x504ff9[_0x529c31(0x13d)]),q(_0x204de3,['body',_0x529c31(0x148)],(_0x569ba2=_0x5716f6[_0x529c31(0xfe)])==null?void 0x0:_0x569ba2[_0x529c31(0x148)],(_0x56fd1a=_0x5de8d7[_0x529c31(0xfe)])==null?void 0x0:_0x56fd1a['paragraphs']),q(_0x204de3,[_0x529c31(0xfe),_0x529c31(0x11e)],(_0xf405a3=_0x5716f6[_0x529c31(0xfe)])==null?void 0x0:_0xf405a3[_0x529c31(0x11e)],(_0x29b6ea=_0x5de8d7[_0x529c31(0xfe)])==null?void 0x0:_0x29b6ea[_0x529c31(0x11e)]),q(_0x204de3,[_0x529c31(0xfe),_0x529c31(0x104)],(_0x5a8e2c=_0x5716f6[_0x529c31(0xfe)])==null?void 0x0:_0x5a8e2c[_0x529c31(0x104)],(_0x10b391=_0x5de8d7['body'])==null?void 0x0:_0x10b391['textRuns']),q(_0x204de3,[_0x529c31(0xfe),_0x529c31(0x10a)],(_0x270e1d=_0x5716f6[_0x529c31(0xfe)])==null?void 0x0:_0x270e1d[_0x529c31(0x10a)],(_0x24bfcd=_0x5de8d7[_0x529c31(0xfe)])==null?void 0x0:_0x24bfcd[_0x529c31(0x10a)]),q(_0x204de3,[_0x529c31(0xfe),_0x529c31(0x138)],(_0x195bb2=_0x5716f6['body'])==null?void 0x0:_0x195bb2[_0x529c31(0x138)],(_0x372ee4=_0x5de8d7[_0x529c31(0xfe)])==null?void 0x0:_0x372ee4[_0x529c31(0x138)]),q(_0x204de3,[_0x529c31(0xfe),_0x529c31(0x13e)],(_0x2709b6=_0x5716f6[_0x529c31(0xfe)])==null?void 0x0:_0x2709b6[_0x529c31(0x13e)],(_0x429d47=_0x5de8d7[_0x529c31(0xfe)])==null?void 0x0:_0x429d47['customDecorations']),q(_0x204de3,[_0x529c31(0xfe),_0x529c31(0xc9)],(_0x3bb04e=_0x5716f6[_0x529c31(0xfe)])==null?void 0x0:_0x3bb04e[_0x529c31(0xc9)],(_0x33033c=_0x5de8d7[_0x529c31(0xfe)])==null?void 0x0:_0x33033c[_0x529c31(0xc9)]),q(_0x204de3,['body',_0x529c31(0xfc)],(_0x1a476e=_0x5716f6[_0x529c31(0xfe)])==null?void 0x0:_0x1a476e[_0x529c31(0xfc)],(_0x57e732=_0x5de8d7['body'])==null?void 0x0:_0x57e732['blockRanges'])][_0x529c31(0x154)](Boolean)['reduce']((_0x56d458,_0x558aef)=>e[_0x529c31(0xcd)][_0x529c31(0x113)](_0x56d458,_0x558aef),null);}function q(_0x4304b5,_0x5d9455,_0x5c6f09,_0x1f1090){const _0x2484f7=_0x4b6d09;return e[_0x2484f7(0xd3)][_0x2484f7(0x14c)](_0x5c6f09,_0x1f1090)?null:_0x4304b5[_0x2484f7(0x153)](_0x5d9455,_0x5c6f09,_0x1f1090);}function J(_0x3f9bfc,_0x210edd,_0x5b6f1a,_0x43941c,_0x5f44f4){const _0x384747=_0x4b6d09;let _0x2ab51d=_e(_0x5b6f1a,_0x43941c);return _0x2ab51d?!!_0x3f9bfc[_0x384747(0x11c)](t['RichTextEditingMutation']['id'],{'unitId':_0x210edd,'actions':_0x2ab51d,'textRanges':[{'startOffset':_0x5f44f4,'endOffset':_0x5f44f4,'collapsed':!0x0}],'isEditing':!0x1}):!0x1;}const Y=_0x4b6d09(0xb7);var ve='@univerjs-pro/docs-code',ye=_0x4b6d09(0x126);const X={};function Z(_0x111057,_0x54fbd6){return function(_0x3c1c85,_0x55bd43){_0x54fbd6(_0x3c1c85,_0x55bd43,_0x111057);};}function be(_0x49fc85,_0x47a051,_0x3a0088,_0x40bf1a){const _0x5f33ed=_0x4b6d09;var _0x26f8ac=arguments[_0x5f33ed(0xef)],_0x399428=_0x26f8ac<0x3?_0x47a051:_0x40bf1a===null?_0x40bf1a=Object[_0x5f33ed(0x127)](_0x47a051,_0x3a0088):_0x40bf1a,_0x4dfc5f;if(typeof Reflect==_0x5f33ed(0xf4)&&typeof Reflect['decorate']==_0x5f33ed(0xfd))_0x399428=Reflect[_0x5f33ed(0x144)](_0x49fc85,_0x47a051,_0x3a0088,_0x40bf1a);else{for(var _0x3ccaa1=_0x49fc85[_0x5f33ed(0xef)]-0x1;_0x3ccaa1>=0x0;_0x3ccaa1--)(_0x4dfc5f=_0x49fc85[_0x3ccaa1])&&(_0x399428=(_0x26f8ac<0x3?_0x4dfc5f(_0x399428):_0x26f8ac>0x3?_0x4dfc5f(_0x47a051,_0x3a0088,_0x399428):_0x4dfc5f(_0x47a051,_0x3a0088))||_0x399428);}return _0x26f8ac>0x3&&_0x399428&&Object['defineProperty'](_0x47a051,_0x3a0088,_0x399428),_0x399428;}let Q=class extends e[_0x4b6d09(0xc2)]{constructor(_0x366968,_0x504d53){const _0x4df47c=_0x4b6d09;super(),this[_0x4df47c(0x121)]=_0x366968,this[_0x4df47c(0x102)]=_0x504d53,this[_0x4df47c(0xcf)]();}[_0x4b6d09(0xcf)](){const _0x209999=_0x4b6d09;this[_0x209999(0x107)](this['_resourceManagerService'][_0x209999(0xd5)]({'pluginName':Y,'businesses':[e[_0x209999(0xff)][_0x209999(0x115)]],'toJson':_0x16a5ae=>JSON[_0x209999(0x149)](this[_0x209999(0x102)][_0x209999(0x145)](_0x16a5ae)),'parseJson':_0x5e0400=>o(JSON[_0x209999(0x116)](_0x5e0400)),'onLoad':(_0x309318,_0xd3a32e)=>this[_0x209999(0x102)][_0x209999(0xed)](_0x309318,_0xd3a32e),'onUnLoad':_0x1ccc13=>this[_0x209999(0x102)][_0x209999(0x136)](_0x1ccc13)}));}};Q=be([Z(0x0,e[_0x4b6d09(0xcb)]),Z(0x1,(0x0,e[_0x4b6d09(0x103)])(R))],Q);let $=class extends e[_0x4b6d09(0x14a)]{constructor(_0x306fb7=X,_0x4e3418,_0x19b65a,_0x49d368){const _0x3d0b4b=_0x4b6d09;super(),this['_config']=_0x306fb7,this[_0x3d0b4b(0xd9)]=_0x4e3418,this[_0x3d0b4b(0xd8)]=_0x19b65a,this[_0x3d0b4b(0x109)]=_0x49d368;let {..._0x49f2d1}=(0x0,e[_0x3d0b4b(0x150)])({},X,this['_config']);this['_configService'][_0x3d0b4b(0xe5)](_0x3d0b4b(0x13c),_0x49f2d1);}[_0x4b6d09(0x122)](){const _0x365634=_0x4b6d09;this[_0x365634(0xd9)]['add']([R]),this['_injector'][_0x365634(0x146)]([Q]),this[_0x365634(0xd9)][_0x365634(0x14b)](R),this['_injector']['get'](Q),[V,z,H,U,W,B][_0x365634(0x117)](_0x23b4f7=>this[_0x365634(0x107)](this['_commandService']['registerCommand'](_0x23b4f7)));}};L($,_0x4b6d09(0x134),Y),L($,_0x4b6d09(0x12e),ve),L($,_0x4b6d09(0xd2),ye),L($,_0x4b6d09(0xf9),e[_0x4b6d09(0xff)][_0x4b6d09(0x115)]),$=be([(0x0,e[_0x4b6d09(0x108)])(r['UniverLicensePlugin'],t['UniverDocsPlugin']),Z(0x1,(0x0,e[_0x4b6d09(0x103)])(e[_0x4b6d09(0xc0)])),Z(0x2,e[_0x4b6d09(0xd1)]),Z(0x3,e[_0x4b6d09(0xca)])],$),exports[_0x4b6d09(0xf5)]=i,exports[_0x4b6d09(0x106)]=Y,exports['DocsCodeCancelEmptyParagraphCommand']=W,exports[_0x4b6d09(0xf0)]=B,exports[_0x4b6d09(0x142)]=U,exports[_0x4b6d09(0x13f)]=z,exports[_0x4b6d09(0xc6)]=V,exports[_0x4b6d09(0x114)]=R,exports['DocsCodeUpdateCommand']=H,Object[_0x4b6d09(0xaa)](exports,_0x4b6d09(0xfa),{'enumerable':!0x0,'get':function(){return $;}}),exports['buildCancelEmptyCodeParagraphActions']=h,exports[_0x4b6d09(0x14e)]=m,exports[_0x4b6d09(0xab)]=u,exports[_0x4b6d09(0x132)]=p,exports['findCodeRangeAtOffset']=_,exports[_0x4b6d09(0x118)]=v,exports[_0x4b6d09(0x119)]=a;
package/lib/es/facade.js CHANGED
@@ -1 +1 @@
1
- var _0x13b9b5=_0xe05e;(function(_0x1aca92,_0x4d48ea){var _0x39f633=_0xe05e,_0x4f23fb=_0x1aca92();while(!![]){try{var _0x6cda75=parseInt(_0x39f633(0x18d))/0x1+parseInt(_0x39f633(0x185))/0x2*(-parseInt(_0x39f633(0x1a0))/0x3)+parseInt(_0x39f633(0x1ae))/0x4*(parseInt(_0x39f633(0x17e))/0x5)+parseInt(_0x39f633(0x189))/0x6*(parseInt(_0x39f633(0x187))/0x7)+-parseInt(_0x39f633(0x19f))/0x8*(-parseInt(_0x39f633(0x1b2))/0x9)+-parseInt(_0x39f633(0x1b6))/0xa*(parseInt(_0x39f633(0x17b))/0xb)+-parseInt(_0x39f633(0x17f))/0xc;if(_0x6cda75===_0x4d48ea)break;else _0x4f23fb['push'](_0x4f23fb['shift']());}catch(_0x4eb3ba){_0x4f23fb['push'](_0x4f23fb['shift']());}}}(_0x1227,0x8889a));import{DocsCodeCancelEmptyParagraphCommand as _0x43121c,DocsCodeExitCommand as _0x227b78,DocsCodeInsertCommand as _0x19049a,DocsCodeModel as _0x317f80,DocsCodeUpdateCommand as _0xa7f6d0,normalizeDocsCodeConfig as _0x249552}from'@univerjs-pro/docs-code';import{DataStreamTreeTokenType as _0x2dbdf7,DocumentBlockRangeType as _0x4df84b,ICommandService as _0x593bc2,Inject as _0x33b9d8,Injector as _0xa34ccd,generateRandomId as _0xeecacd}from'@univerjs/core';import{FDocument as _0x29e282}from'@univerjs/docs/facade';function p(_0x101e6b){'@babel/helpers - typeof';var _0x4575dc=_0xe05e;return p=typeof Symbol==_0x4575dc(0x1af)&&typeof Symbol['iterator']=='symbol'?function(_0x50e854){return typeof _0x50e854;}:function(_0x4df84a){var _0x389846=_0x4575dc;return _0x4df84a&&typeof Symbol==_0x389846(0x1af)&&_0x4df84a[_0x389846(0x1b0)]===Symbol&&_0x4df84a!==Symbol[_0x389846(0x1b1)]?_0x389846(0x1a8):typeof _0x4df84a;},p(_0x101e6b);}function m(_0x5a8f8a,_0x491895){var _0x5562ca=_0xe05e;if(p(_0x5a8f8a)!=_0x5562ca(0x179)||!_0x5a8f8a)return _0x5a8f8a;var _0x3a92f9=_0x5a8f8a[Symbol['toPrimitive']];if(_0x3a92f9!==void 0x0){var _0x57d9b6=_0x3a92f9[_0x5562ca(0x180)](_0x5a8f8a,_0x491895||_0x5562ca(0x1a5));if(p(_0x57d9b6)!=_0x5562ca(0x179))return _0x57d9b6;throw TypeError(_0x5562ca(0x19c));}return(_0x491895===_0x5562ca(0x190)?String:Number)(_0x5a8f8a);}function h(_0x14c418){var _0x3740c0=_0xe05e,_0x90c01f=m(_0x14c418,_0x3740c0(0x190));return p(_0x90c01f)==_0x3740c0(0x1a8)?_0x90c01f:_0x90c01f+'';}function g(_0x40a584,_0x75b4dd,_0x2417f3){var _0x1dfc20=_0xe05e;return(_0x75b4dd=h(_0x75b4dd))in _0x40a584?Object[_0x1dfc20(0x196)](_0x40a584,_0x75b4dd,{'value':_0x2417f3,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x40a584[_0x75b4dd]=_0x2417f3,_0x40a584;}function _0x1227(){var _0x5a166d=['_getBlockRange','syncExecuteCommand','28330GmbhnM','decorate','from','some','includes','getId','PARAGRAPH','getCode','object','blockRanges','3586hcmCOj','text','_unitId','3355FfOFvG','3880548GPaDcX','call','_document','findCodes','createInstance','blockId','2gwXRxf','getKey','22281cKEDqV','length','426vBOhvK','_createFDocumentCode','filter','extend','248175BaVBwm','getConfig','save','string','endIndex','_getDocumentData','cancelEmptyParagraph','get','config','defineProperty','CODE','getType','_blockId','BLOCK_END','getRange','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','paragraph','exitCode','7631056sNBjjj','61287mczrPU','describe','blockType','_getBlockRanges','body','default','exit','find','symbol','getText','BLOCK_START','map','_injector','startIndex','2376wKQqYW','function','constructor','prototype','9noLGHd','SECTION_BREAK'];_0x1227=function(){return _0x5a166d;};return _0x1227();}function _(_0x24aabb,_0x218973){return function(_0x59f4ab,_0x4e280b){_0x218973(_0x59f4ab,_0x4e280b,_0x24aabb);};}function v(_0x2cc221,_0x33dc2a,_0x57ce93,_0x202e9a){var _0x4708a2=_0xe05e,_0x4887f2=arguments[_0x4708a2(0x188)],_0x413f8a=_0x4887f2<0x3?_0x33dc2a:_0x202e9a===null?_0x202e9a=Object['getOwnPropertyDescriptor'](_0x33dc2a,_0x57ce93):_0x202e9a,_0x316bd4;if(typeof Reflect==_0x4708a2(0x179)&&typeof Reflect[_0x4708a2(0x1b7)]=='function')_0x413f8a=Reflect[_0x4708a2(0x1b7)](_0x2cc221,_0x33dc2a,_0x57ce93,_0x202e9a);else{for(var _0xfed88b=_0x2cc221[_0x4708a2(0x188)]-0x1;_0xfed88b>=0x0;_0xfed88b--)(_0x316bd4=_0x2cc221[_0xfed88b])&&(_0x413f8a=(_0x4887f2<0x3?_0x316bd4(_0x413f8a):_0x4887f2>0x3?_0x316bd4(_0x33dc2a,_0x57ce93,_0x413f8a):_0x316bd4(_0x33dc2a,_0x57ce93))||_0x413f8a);}return _0x4887f2>0x3&&_0x413f8a&&Object['defineProperty'](_0x33dc2a,_0x57ce93,_0x413f8a),_0x413f8a;}function _0xe05e(_0x534f69,_0x3fa108){_0x534f69=_0x534f69-0x176;var _0x122778=_0x1227();var _0xe05ea6=_0x122778[_0x534f69];return _0xe05ea6;}let y=class{constructor(_0x2bae20,_0x128ba0,_0x175393){var _0x8fdd1c=_0xe05e;this[_0x8fdd1c(0x181)]=_0x2bae20,this[_0x8fdd1c(0x199)]=_0x128ba0,this[_0x8fdd1c(0x1ac)]=_0x175393,g(this,_0x8fdd1c(0x17d),void 0x0),this[_0x8fdd1c(0x17d)]=this[_0x8fdd1c(0x181)]['getId']();}['getId'](){var _0x5767c1=_0xe05e;return this[_0x5767c1(0x199)];}[_0x13b9b5(0x19b)](){var _0x35d72d=_0x13b9b5;let _0x5a3235=this[_0x35d72d(0x1b4)]();return _0x5a3235?{'blockId':_0x5a3235[_0x35d72d(0x184)],'endIndex':_0x5a3235[_0x35d72d(0x191)],'startIndex':_0x5a3235[_0x35d72d(0x1ad)]}:null;}['getText'](){var _0x598430=_0x13b9b5,_0x47bf03;let _0x13c9dc=this[_0x598430(0x1b4)](),_0x4e2505=(_0x47bf03=this[_0x598430(0x192)]()[_0x598430(0x1a4)])==null?void 0x0:_0x47bf03['dataStream'];return!_0x13c9dc||!_0x4e2505?'':b(_0x4e2505['slice'](_0x13c9dc['startIndex']+0x1,_0x13c9dc[_0x598430(0x191)]));}[_0x13b9b5(0x1a1)](){var _0x557286=_0x13b9b5;let _0x56e0e2=this[_0x557286(0x19b)]();return _0x56e0e2?{..._0x56e0e2,'config':this[_0x557286(0x18e)](),'text':this[_0x557286(0x1a9)](),'type':_0x4df84b['CODE']}:null;}[_0x13b9b5(0x18e)](){var _0x58788f=_0x13b9b5;return _0x249552(this[_0x58788f(0x1ac)][_0x58788f(0x194)](_0x317f80)['getCodeConfig'](this[_0x58788f(0x17d)],this['_blockId']));}['updateConfig'](_0x3c44dc){var _0xd4f098=_0x13b9b5;return this['_injector']['get'](_0x593bc2)[_0xd4f098(0x1b5)](_0xa7f6d0['id'],{'blockId':this[_0xd4f098(0x199)],'config':_0x3c44dc[_0xd4f098(0x195)],'unitId':this[_0xd4f098(0x17d)]});}[_0x13b9b5(0x1a6)](_0x57b48c){var _0x503cbf=_0x13b9b5;return this[_0x503cbf(0x1ac)]['get'](_0x593bc2)[_0x503cbf(0x1b5)](_0x227b78['id'],{'cursorOffset':_0x57b48c,'unitId':this[_0x503cbf(0x17d)]});}[_0x13b9b5(0x193)](_0x12a500={}){var _0x559450=_0x13b9b5;return this['_injector']['get'](_0x593bc2)['syncExecuteCommand'](_0x43121c['id'],{..._0x12a500,'unitId':this[_0x559450(0x17d)]});}[_0x13b9b5(0x192)](){var _0x1d7a38=_0x13b9b5;return this[_0x1d7a38(0x181)][_0x1d7a38(0x18f)]();}['_getBlockRange'](){var _0x2d07a1=_0x13b9b5,_0x5a6793;let _0x5d4d35=(_0x5a6793=this[_0x2d07a1(0x192)]()['body'])==null||(_0x5a6793=_0x5a6793[_0x2d07a1(0x17a)])==null?void 0x0:_0x5a6793[_0x2d07a1(0x1a7)](_0x1b3780=>_0x1b3780['blockId']===this[_0x2d07a1(0x199)]&&_0x1b3780[_0x2d07a1(0x1a2)]===_0x4df84b[_0x2d07a1(0x197)]);return _0x5d4d35==null?null:_0x5d4d35;}};y=v([_(0x2,_0x33b9d8(_0xa34ccd))],y);function b(_0x33a668){var _0x468592=_0x13b9b5;return Array[_0x468592(0x1b8)](_0x33a668)[_0x468592(0x1ab)](_0x871d31=>_0x871d31===_0x2dbdf7[_0x468592(0x177)]?'\x0a':_0x871d31)[_0x468592(0x18b)](_0x1ce9bd=>_0x1ce9bd!==_0x2dbdf7[_0x468592(0x1aa)]&&_0x1ce9bd!==_0x2dbdf7[_0x468592(0x19a)]&&_0x1ce9bd!==_0x2dbdf7[_0x468592(0x1b3)])['join']('')['replace'](/\n$/,'');}var x=class extends _0x29e282{['getCodes'](){var _0x1c0bc7=_0x13b9b5;return this[_0x1c0bc7(0x1a3)]()[_0x1c0bc7(0x18b)](_0x47f5a8=>_0x47f5a8[_0x1c0bc7(0x1a2)]===_0x4df84b['CODE'])[_0x1c0bc7(0x1ab)](_0x5c62b5=>this[_0x1c0bc7(0x18a)](_0x5c62b5[_0x1c0bc7(0x184)]));}[_0x13b9b5(0x178)](_0x2b5a8a){var _0x1034f8=_0x13b9b5;return this[_0x1034f8(0x1a3)]()[_0x1034f8(0x1b9)](_0x3e6bcc=>_0x3e6bcc[_0x1034f8(0x184)]===_0x2b5a8a&&_0x3e6bcc[_0x1034f8(0x1a2)]===_0x4df84b[_0x1034f8(0x197)])?this[_0x1034f8(0x18a)](_0x2b5a8a):null;}['getCodeAt'](_0x70ee62){var _0x1c2084=_0x13b9b5;let _0x5627cd=this[_0x1c2084(0x1a3)]()[_0x1c2084(0x1a7)](_0x147d27=>_0x147d27['blockType']===_0x4df84b[_0x1c2084(0x197)]&&_0x147d27[_0x1c2084(0x1ad)]<=_0x70ee62&&_0x70ee62<=_0x147d27[_0x1c2084(0x191)]);return _0x5627cd?this[_0x1c2084(0x18a)](_0x5627cd[_0x1c2084(0x184)]):null;}['findCodeByText'](_0x53db5d){var _0x28e3af=_0x13b9b5,_0x20617e;return(_0x20617e=this[_0x28e3af(0x182)](_0x53db5d)[0x0])==null?null:_0x20617e;}[_0x13b9b5(0x182)](_0x35a31e){var _0x477ebe=_0x13b9b5;let _0x5329d1=typeof _0x35a31e==_0x477ebe(0x190)?{'text':_0x35a31e}:_0x35a31e;return this['getCodes']()[_0x477ebe(0x18b)](_0x42dad2=>!(_0x5329d1[_0x477ebe(0x184)]&&_0x42dad2['getId']()!==_0x5329d1[_0x477ebe(0x184)]||_0x5329d1['text']&&!_0x42dad2[_0x477ebe(0x1a9)]()[_0x477ebe(0x1ba)](_0x5329d1[_0x477ebe(0x17c)])));}['insertCode'](_0x3e88eb={},_0x4ddb38={}){var _0x19f55b=_0x13b9b5,_0x1baf31;let _0x341aa8=this['_injector'][_0x19f55b(0x194)](_0x593bc2),_0x59467b=S(_0x3e88eb)?{..._0x4ddb38,...C(_0x3e88eb)}:_0x3e88eb,_0xc80b0d=(_0x1baf31=_0x59467b[_0x19f55b(0x184)])==null?_0xeecacd(0x6):_0x1baf31;return _0x341aa8[_0x19f55b(0x1b5)](_0x19049a['id'],{..._0x59467b,'blockId':_0xc80b0d,'unitId':this['getId']()})?this[_0x19f55b(0x18a)](_0xc80b0d):null;}[_0x13b9b5(0x19e)](_0x4c9e17){var _0x1ec007=_0x13b9b5;return this[_0x1ec007(0x1ac)]['get'](_0x593bc2)[_0x1ec007(0x1b5)](_0x227b78['id'],{'cursorOffset':_0x4c9e17,'unitId':this[_0x1ec007(0x176)]()});}['cancelEmptyCodeParagraph'](_0xafc974={}){var _0x246820=_0x13b9b5;return this[_0x246820(0x1ac)]['get'](_0x593bc2)[_0x246820(0x1b5)](_0x43121c['id'],{..._0xafc974,'unitId':this[_0x246820(0x176)]()});}['_getBlockRanges'](){var _0x5ce413=_0x13b9b5,_0x3919aa,_0x5a7000;return(_0x3919aa=(_0x5a7000=this['save']()[_0x5ce413(0x1a4)])==null?void 0x0:_0x5a7000['blockRanges'])==null?[]:_0x3919aa;}[_0x13b9b5(0x18a)](_0x478f88){var _0x29e9e1=_0x13b9b5;return this[_0x29e9e1(0x1ac)][_0x29e9e1(0x183)](y,this,_0x478f88);}};function S(_0x1d4a06){var _0x145e75=_0x13b9b5;return typeof _0x1d4a06==_0x145e75(0x179)&&!!_0x1d4a06&&typeof _0x1d4a06[_0x145e75(0x186)]=='function'&&typeof _0x1d4a06[_0x145e75(0x19b)]=='function'&&typeof _0x1d4a06[_0x145e75(0x198)]==_0x145e75(0x1af)&&_0x1d4a06[_0x145e75(0x198)]()===_0x145e75(0x19d);}function C(_0x54462d){var _0x309448=_0x13b9b5;return _0x54462d[_0x309448(0x19b)]();}_0x29e282[_0x13b9b5(0x18c)](x);export{y as FDocumentCode};
1
+ var _0x2a3e37=_0x40ef;function _0x4986(){var _0x4269a1=['replace','blockType','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','createInstance','iterator','220782ZGAGax','getCodeConfig','text','defineProperty','findCodes','getType','getCodeAt','blockId','endIndex','some','_blockId','1686050gPBLnQ','dataStream','findCodeByText','config','decorate','12huLucc','join','exit','save','map','28HChzLj','7143983enHiCu','includes','getRange','getId','blockRanges','find','PARAGRAPH','_injector','CODE','updateConfig','get','22688AswxZE','getCodes','paragraph','_unitId','object','99EYaFQX','extend','describe','_getDocumentData','_getBlockRanges','3588816McDJLj','body','insertCode','BLOCK_END','function','_document','1318aXNoEF','string','from','syncExecuteCommand','getConfig','_createFDocumentCode','836110PcpUOH','startIndex','symbol','724YUgitR','_getBlockRange','call','getText','toPrimitive','length','exitCode','filter'];_0x4986=function(){return _0x4269a1;};return _0x4986();}(function(_0x33682e,_0x3af135){var _0x99c594=_0x40ef,_0xe289fa=_0x33682e();while(!![]){try{var _0x1bc629=-parseInt(_0x99c594(0x1f4))/0x1*(parseInt(_0x99c594(0x1b6))/0x2)+-parseInt(_0x99c594(0x1c3))/0x3*(-parseInt(_0x99c594(0x1d8))/0x4)+parseInt(_0x99c594(0x1b3))/0x5*(parseInt(_0x99c594(0x1d3))/0x6)+-parseInt(_0x99c594(0x1ee))/0x7+parseInt(_0x99c594(0x1e4))/0x8*(-parseInt(_0x99c594(0x1e9))/0x9)+-parseInt(_0x99c594(0x1ce))/0xa+parseInt(_0x99c594(0x1d9))/0xb;if(_0x1bc629===_0x3af135)break;else _0xe289fa['push'](_0xe289fa['shift']());}catch(_0x36361d){_0xe289fa['push'](_0xe289fa['shift']());}}}(_0x4986,0x4b8ca));import{DocsCodeCancelEmptyParagraphCommand as _0x2b2a05,DocsCodeExitCommand as _0x2fb0d3,DocsCodeInsertCommand as _0xd979f7,DocsCodeModel as _0x1d1c72,DocsCodeUpdateCommand as _0x2aaa6a,normalizeDocsCodeConfig as _0x1741bb}from'@univerjs-pro/docs-code';import{DataStreamTreeTokenType as _0x282b86,DocumentBlockRangeType as _0x46c20e,ICommandService as _0x31c5e7,Inject as _0x2bc39d,Injector as _0xf2643,generateRandomId as _0x8f6a75}from'@univerjs/core';import{FDocument as _0x226821}from'@univerjs/docs/facade';function p(_0x27a3f0){'@babel/helpers - typeof';var _0x781b30=_0x40ef;return p=typeof Symbol=='function'&&typeof Symbol[_0x781b30(0x1c2)]=='symbol'?function(_0x51645b){return typeof _0x51645b;}:function(_0x49f6ec){var _0x581bd6=_0x781b30;return _0x49f6ec&&typeof Symbol==_0x581bd6(0x1f2)&&_0x49f6ec['constructor']===Symbol&&_0x49f6ec!==Symbol['prototype']?_0x581bd6(0x1b5):typeof _0x49f6ec;},p(_0x27a3f0);}function m(_0x3ebd9e,_0xb27e98){var _0x276a91=_0x40ef;if(p(_0x3ebd9e)!=_0x276a91(0x1e8)||!_0x3ebd9e)return _0x3ebd9e;var _0x58139f=_0x3ebd9e[Symbol[_0x276a91(0x1ba)]];if(_0x58139f!==void 0x0){var _0x50ed38=_0x58139f[_0x276a91(0x1b8)](_0x3ebd9e,_0xb27e98||'default');if(p(_0x50ed38)!=_0x276a91(0x1e8))return _0x50ed38;throw TypeError(_0x276a91(0x1c0));}return(_0xb27e98===_0x276a91(0x1ae)?String:Number)(_0x3ebd9e);}function _0x40ef(_0x19f70c,_0x536f65){_0x19f70c=_0x19f70c-0x1ae;var _0x498668=_0x4986();var _0x40ef54=_0x498668[_0x19f70c];return _0x40ef54;}function h(_0x488a7b){var _0x4babb8=_0x40ef,_0x189800=m(_0x488a7b,_0x4babb8(0x1ae));return p(_0x189800)=='symbol'?_0x189800:_0x189800+'';}function g(_0x3982ed,_0x47c043,_0x1d4f17){return(_0x47c043=h(_0x47c043))in _0x3982ed?Object['defineProperty'](_0x3982ed,_0x47c043,{'value':_0x1d4f17,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x3982ed[_0x47c043]=_0x1d4f17,_0x3982ed;}function _(_0x3456c2,_0x5884cc){return function(_0x549cb8,_0x3aeee4){_0x5884cc(_0x549cb8,_0x3aeee4,_0x3456c2);};}function v(_0x4d7c19,_0x3c0d54,_0x5d68ad,_0x4a41ae){var _0x1d8472=_0x40ef,_0x587628=arguments[_0x1d8472(0x1bb)],_0x30890b=_0x587628<0x3?_0x3c0d54:_0x4a41ae===null?_0x4a41ae=Object['getOwnPropertyDescriptor'](_0x3c0d54,_0x5d68ad):_0x4a41ae,_0x1fadc2;if(typeof Reflect==_0x1d8472(0x1e8)&&typeof Reflect['decorate']=='function')_0x30890b=Reflect[_0x1d8472(0x1d2)](_0x4d7c19,_0x3c0d54,_0x5d68ad,_0x4a41ae);else{for(var _0x366775=_0x4d7c19[_0x1d8472(0x1bb)]-0x1;_0x366775>=0x0;_0x366775--)(_0x1fadc2=_0x4d7c19[_0x366775])&&(_0x30890b=(_0x587628<0x3?_0x1fadc2(_0x30890b):_0x587628>0x3?_0x1fadc2(_0x3c0d54,_0x5d68ad,_0x30890b):_0x1fadc2(_0x3c0d54,_0x5d68ad))||_0x30890b);}return _0x587628>0x3&&_0x30890b&&Object[_0x1d8472(0x1c6)](_0x3c0d54,_0x5d68ad,_0x30890b),_0x30890b;}let y=class{constructor(_0x1a17cb,_0x47219c,_0x4e4316){var _0x4d5f9b=_0x40ef;this[_0x4d5f9b(0x1f3)]=_0x1a17cb,this[_0x4d5f9b(0x1cd)]=_0x47219c,this[_0x4d5f9b(0x1e0)]=_0x4e4316,g(this,_0x4d5f9b(0x1e7),void 0x0),this[_0x4d5f9b(0x1e7)]=this[_0x4d5f9b(0x1f3)][_0x4d5f9b(0x1dc)]();}['getId'](){var _0x24c567=_0x40ef;return this[_0x24c567(0x1cd)];}[_0x2a3e37(0x1db)](){var _0x564173=_0x2a3e37;let _0x9e1e80=this['_getBlockRange']();return _0x9e1e80?{'blockId':_0x9e1e80['blockId'],'endIndex':_0x9e1e80[_0x564173(0x1cb)],'startIndex':_0x9e1e80[_0x564173(0x1b4)]}:null;}[_0x2a3e37(0x1b9)](){var _0x568309=_0x2a3e37,_0x4149fc;let _0x4f2d1c=this[_0x568309(0x1b7)](),_0x1308fa=(_0x4149fc=this[_0x568309(0x1ec)]()[_0x568309(0x1ef)])==null?void 0x0:_0x4149fc[_0x568309(0x1cf)];return!_0x4f2d1c||!_0x1308fa?'':b(_0x1308fa['slice'](_0x4f2d1c['startIndex']+0x1,_0x4f2d1c['endIndex']));}[_0x2a3e37(0x1eb)](){var _0x388bdf=_0x2a3e37;let _0x413bf2=this['getRange']();return _0x413bf2?{..._0x413bf2,'config':this['getConfig'](),'text':this[_0x388bdf(0x1b9)](),'type':_0x46c20e['CODE']}:null;}[_0x2a3e37(0x1b1)](){var _0x24cdde=_0x2a3e37;return _0x1741bb(this[_0x24cdde(0x1e0)][_0x24cdde(0x1e3)](_0x1d1c72)[_0x24cdde(0x1c4)](this[_0x24cdde(0x1e7)],this[_0x24cdde(0x1cd)]));}[_0x2a3e37(0x1e2)](_0x14689d){var _0x502ff5=_0x2a3e37;return this['_injector'][_0x502ff5(0x1e3)](_0x31c5e7)[_0x502ff5(0x1b0)](_0x2aaa6a['id'],{'blockId':this['_blockId'],'config':_0x14689d[_0x502ff5(0x1d1)],'unitId':this[_0x502ff5(0x1e7)]});}[_0x2a3e37(0x1d5)](_0x97dace){var _0xf89bd0=_0x2a3e37;return this[_0xf89bd0(0x1e0)][_0xf89bd0(0x1e3)](_0x31c5e7)['syncExecuteCommand'](_0x2fb0d3['id'],{'cursorOffset':_0x97dace,'unitId':this[_0xf89bd0(0x1e7)]});}['cancelEmptyParagraph'](_0x5945e2={}){var _0x34d6ee=_0x2a3e37;return this['_injector']['get'](_0x31c5e7)[_0x34d6ee(0x1b0)](_0x2b2a05['id'],{..._0x5945e2,'unitId':this[_0x34d6ee(0x1e7)]});}[_0x2a3e37(0x1ec)](){var _0x13b7d3=_0x2a3e37;return this['_document'][_0x13b7d3(0x1d6)]();}[_0x2a3e37(0x1b7)](){var _0x536a13=_0x2a3e37,_0x5aaf80;let _0x4025cf=(_0x5aaf80=this[_0x536a13(0x1ec)]()[_0x536a13(0x1ef)])==null||(_0x5aaf80=_0x5aaf80[_0x536a13(0x1dd)])==null?void 0x0:_0x5aaf80[_0x536a13(0x1de)](_0x3d05d4=>_0x3d05d4[_0x536a13(0x1ca)]===this[_0x536a13(0x1cd)]&&_0x3d05d4['blockType']===_0x46c20e[_0x536a13(0x1e1)]);return _0x4025cf==null?null:_0x4025cf;}};y=v([_(0x2,_0x2bc39d(_0xf2643))],y);function b(_0x2d856c){var _0x40d7e9=_0x2a3e37;return Array[_0x40d7e9(0x1af)](_0x2d856c)[_0x40d7e9(0x1d7)](_0x76dbc1=>_0x76dbc1===_0x282b86[_0x40d7e9(0x1df)]?'\x0a':_0x76dbc1)[_0x40d7e9(0x1bd)](_0x1ceebb=>_0x1ceebb!==_0x282b86['BLOCK_START']&&_0x1ceebb!==_0x282b86[_0x40d7e9(0x1f1)]&&_0x1ceebb!==_0x282b86['SECTION_BREAK'])[_0x40d7e9(0x1d4)]('')[_0x40d7e9(0x1be)](/\n$/,'');}var x=class extends _0x226821{[_0x2a3e37(0x1e5)](){var _0x13d6e2=_0x2a3e37;return this[_0x13d6e2(0x1ed)]()[_0x13d6e2(0x1bd)](_0x3c1c11=>_0x3c1c11[_0x13d6e2(0x1bf)]===_0x46c20e[_0x13d6e2(0x1e1)])['map'](_0x133c12=>this[_0x13d6e2(0x1b2)](_0x133c12['blockId']));}['getCode'](_0x459f67){var _0x2bebc4=_0x2a3e37;return this[_0x2bebc4(0x1ed)]()[_0x2bebc4(0x1cc)](_0x360065=>_0x360065[_0x2bebc4(0x1ca)]===_0x459f67&&_0x360065[_0x2bebc4(0x1bf)]===_0x46c20e[_0x2bebc4(0x1e1)])?this[_0x2bebc4(0x1b2)](_0x459f67):null;}[_0x2a3e37(0x1c9)](_0x303e3f){var _0x2f6859=_0x2a3e37;let _0x564465=this[_0x2f6859(0x1ed)]()[_0x2f6859(0x1de)](_0x197642=>_0x197642[_0x2f6859(0x1bf)]===_0x46c20e[_0x2f6859(0x1e1)]&&_0x197642[_0x2f6859(0x1b4)]<=_0x303e3f&&_0x303e3f<=_0x197642[_0x2f6859(0x1cb)]);return _0x564465?this[_0x2f6859(0x1b2)](_0x564465[_0x2f6859(0x1ca)]):null;}[_0x2a3e37(0x1d0)](_0x357149){var _0x523e91=_0x2a3e37,_0x5b2809;return(_0x5b2809=this[_0x523e91(0x1c7)](_0x357149)[0x0])==null?null:_0x5b2809;}[_0x2a3e37(0x1c7)](_0x549cc3){var _0x177df3=_0x2a3e37;let _0x5cf560=typeof _0x549cc3=='string'?{'text':_0x549cc3}:_0x549cc3;return this[_0x177df3(0x1e5)]()[_0x177df3(0x1bd)](_0x3cfbd4=>!(_0x5cf560['blockId']&&_0x3cfbd4[_0x177df3(0x1dc)]()!==_0x5cf560[_0x177df3(0x1ca)]||_0x5cf560['text']&&!_0x3cfbd4[_0x177df3(0x1b9)]()[_0x177df3(0x1da)](_0x5cf560[_0x177df3(0x1c5)])));}[_0x2a3e37(0x1f0)](_0x53f888={},_0x14996e={}){var _0x319908=_0x2a3e37,_0x3aa714;let _0x293988=this['_injector'][_0x319908(0x1e3)](_0x31c5e7),_0x29fa05=S(_0x53f888)?{..._0x14996e,...C(_0x53f888)}:_0x53f888,_0x4d8400=(_0x3aa714=_0x29fa05[_0x319908(0x1ca)])==null?_0x8f6a75(0x6):_0x3aa714;return _0x293988[_0x319908(0x1b0)](_0xd979f7['id'],{..._0x29fa05,'blockId':_0x4d8400,'unitId':this[_0x319908(0x1dc)]()})?this[_0x319908(0x1b2)](_0x4d8400):null;}[_0x2a3e37(0x1bc)](_0x1c4f05){var _0x36a7c6=_0x2a3e37;return this['_injector'][_0x36a7c6(0x1e3)](_0x31c5e7)[_0x36a7c6(0x1b0)](_0x2fb0d3['id'],{'cursorOffset':_0x1c4f05,'unitId':this['getId']()});}['cancelEmptyCodeParagraph'](_0x1c6775={}){var _0x57e09a=_0x2a3e37;return this['_injector'][_0x57e09a(0x1e3)](_0x31c5e7)[_0x57e09a(0x1b0)](_0x2b2a05['id'],{..._0x1c6775,'unitId':this[_0x57e09a(0x1dc)]()});}['_getBlockRanges'](){var _0x270c52=_0x2a3e37,_0xa7a39c,_0x49e420;return(_0xa7a39c=(_0x49e420=this[_0x270c52(0x1d6)]()[_0x270c52(0x1ef)])==null?void 0x0:_0x49e420[_0x270c52(0x1dd)])==null?[]:_0xa7a39c;}['_createFDocumentCode'](_0x33c9af){var _0x3c25c2=_0x2a3e37;return this[_0x3c25c2(0x1e0)][_0x3c25c2(0x1c1)](y,this,_0x33c9af);}};function S(_0x4cd42){var _0x5c9d6c=_0x2a3e37;return typeof _0x4cd42==_0x5c9d6c(0x1e8)&&!!_0x4cd42&&typeof _0x4cd42['getKey']==_0x5c9d6c(0x1f2)&&typeof _0x4cd42[_0x5c9d6c(0x1db)]==_0x5c9d6c(0x1f2)&&typeof _0x4cd42[_0x5c9d6c(0x1c8)]==_0x5c9d6c(0x1f2)&&_0x4cd42[_0x5c9d6c(0x1c8)]()===_0x5c9d6c(0x1e6);}function C(_0x3ea013){return _0x3ea013['getRange']();}_0x226821[_0x2a3e37(0x1ea)](x);export{y as FDocumentCode};
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x4a8a2d=_0x28c9;(function(_0x33c0ef,_0x4e7947){const _0x4b3364=_0x28c9,_0x3719a4=_0x33c0ef();while(!![]){try{const _0x5996e2=-parseInt(_0x4b3364(0x1d9))/0x1*(-parseInt(_0x4b3364(0x1ce))/0x2)+parseInt(_0x4b3364(0x203))/0x3*(-parseInt(_0x4b3364(0x208))/0x4)+parseInt(_0x4b3364(0x1b6))/0x5*(-parseInt(_0x4b3364(0x22d))/0x6)+parseInt(_0x4b3364(0x209))/0x7*(-parseInt(_0x4b3364(0x1b9))/0x8)+parseInt(_0x4b3364(0x231))/0x9+-parseInt(_0x4b3364(0x21b))/0xa+parseInt(_0x4b3364(0x1d0))/0xb*(parseInt(_0x4b3364(0x1e8))/0xc);if(_0x5996e2===_0x4e7947)break;else _0x3719a4['push'](_0x3719a4['shift']());}catch(_0x59c62f){_0x3719a4['push'](_0x3719a4['shift']());}}}(_0x58a1,0x5beda));import{BuildTextUtils as _0x24fe28,CommandType as _0x20b98a,DataStreamTreeTokenType as _0x3ba019,DependentOn as _0xb86e0,Disposable as _0x3e8f03,DocumentBlockRangeType as _0x54e1d3,ICommandService as _0x3735ed,IConfigService as _0x42560c,IResourceManagerService as _0x3f714d,IUniverInstanceService as _0x3abeac,Inject as _0x4628b1,Injector as _0x531f72,JSONX as _0x2387fb,Plugin as _0x5357ad,Tools as _0xb48f1,UniverInstanceType as _0x2bb6f5,createParagraphId as _0x34e429,generateRandomId as _0x97c26f,merge as _0x3de4b6}from'@univerjs/core';import{DocContentInsertService as _0x2040aa,DocSelectionManagerService as _0x291a89,RichTextEditingMutation as _0x4297bb,UniverDocsPlugin as _0x1f5d37}from'@univerjs/docs';import{Subject as _0x363e20}from'rxjs';import{UniverLicensePlugin as _0x141bd9}from'@univerjs-pro/license';const S={'language':_0x4a8a2d(0x1f2),'showLineNumbers':!0x1,'tabSize':0x4,'wrap':!0x0};function C(_0x485bad){return{...S,..._0x485bad};}function w(_0x194da7){const _0x516533=_0x4a8a2d;var _0x1d5729;let _0x5a3d1f=(_0x1d5729=_0x194da7==null?void 0x0:_0x194da7['codes'])==null?{}:_0x1d5729;return{'codes':Object['fromEntries'](Object['entries'](_0x5a3d1f)[_0x516533(0x1c6)](([_0x23b746,_0x4926ac])=>[_0x23b746,C(_0x4926ac)]))};}function T(_0x56bf6f,_0x2b78f7,_0x2c447a){const _0x52d863=_0x4a8a2d;let _0xdb2ca7=w(_0x56bf6f);return _0xdb2ca7[_0x52d863(0x1cb)][_0x2b78f7]=C({..._0xdb2ca7['codes'][_0x2b78f7],..._0x2c447a}),_0xdb2ca7;}function re(_0x5c91e9,_0x22410c){let _0x2653fb=w(_0x5c91e9);return delete _0x2653fb['codes'][_0x22410c],_0x2653fb;}const ie=_0x4a8a2d(0x1f8);function ae(_0x151d84){const _0x5a812b=_0x4a8a2d;var _0x36a4f9,_0xafde3b,_0x5a0ce7;let _0x167a80=D(_0x151d84[_0x5a812b(0x21a)]),_0x24b65b=O(_0x167a80),_0x5d4611=se(_0x151d84[_0x5a812b(0x20a)],_0x151d84['endOffset']),_0x298645=_0x5d4611?(_0x36a4f9=_0x24b65b[_0x5a812b(0x1c1)])==null?void 0x0:_0x36a4f9[_0x5a812b(0x23a)](_0xbcb53=>_0xbcb53['startIndex']===_0x5d4611[_0x5a812b(0x20a)]&&_0xbcb53[_0x5a812b(0x1bd)]+0x1===_0x5d4611[_0x5a812b(0x227)]):void 0x0,{startOffset:_0x5ca80c,endOffset:_0x1ebe75}=_0x298645?_0x5d4611:ye(_0x24b65b,_0x151d84[_0x5a812b(0x20a)],_0x151d84[_0x5a812b(0x227)]),_0x50afb5=Se(_0x24b65b,_0x5ca80c,_0x1ebe75),_0x34c30c=(_0xafde3b=_0x298645==null?void 0x0:_0x298645['blockId'])==null?_0x151d84[_0x5a812b(0x1e4)]:_0xafde3b,_0x1606b8=T(_0x151d84[_0x5a812b(0x1bc)],_0x34c30c,{...S,..._0x151d84[_0x5a812b(0x211)]});if(_0x298645)return _0x298645[_0x5a812b(0x1f4)]=_0x54e1d3[_0x5a812b(0x200)],oe(_0x24b65b,_0x5ca80c,_0x1ebe75),he(_0x24b65b,_0x5ca80c,_0x1ebe75,_0x50afb5),M(_0x24b65b,_0x298645),{'nextDocumentData':_0x167a80,'nextMetadata':_0x1606b8,'cursorOffset':_0x5ca80c+0x1};if(_0x5ca80c===_0x1ebe75){var _0x5cbb11,_0x5960e9;let _0x3e4e1c=''+_0x3ba019[_0x5a812b(0x234)]+_0x3ba019[_0x5a812b(0x225)]+_0x3ba019['BLOCK_END'];N(_0x24b65b,_0x5ca80c,_0x3e4e1c,{'paragraphs':[{'startIndex':0x1,'paragraphId':_0x34e429(new Set((_0x5cbb11=_0x24b65b[_0x5a812b(0x1ba)])==null?void 0x0:_0x5cbb11[_0x5a812b(0x1c6)](_0x2926b2=>_0x2926b2[_0x5a812b(0x20e)]))),'paragraphStyle':E(!0x0,!0x0,_0x50afb5)}],'blockRanges':[{'blockId':_0x34c30c,'blockType':_0x54e1d3['CODE'],'startIndex':0x0,'endIndex':_0x3e4e1c['length']-0x1}]});let _0x564362=(_0x5960e9=_0x24b65b[_0x5a812b(0x1c1)])==null?void 0x0:_0x5960e9[_0x5a812b(0x23a)](_0x319a88=>_0x319a88[_0x5a812b(0x1e4)]===_0x34c30c);return _0x564362&&M(_0x24b65b,_0x564362),{'nextDocumentData':_0x167a80,'nextMetadata':_0x1606b8,'cursorOffset':_0x5ca80c+0x1};}N(_0x24b65b,_0x1ebe75,_0x3ba019['BLOCK_END']),N(_0x24b65b,_0x5ca80c,_0x3ba019[_0x5a812b(0x234)]),he(_0x24b65b,_0x5ca80c,_0x1ebe75+0x1,_0x50afb5);let _0x5e3282={'blockId':_0x34c30c,'blockType':_0x54e1d3[_0x5a812b(0x200)],'startIndex':_0x5ca80c,'endIndex':_0x1ebe75+0x1};return _0x24b65b[_0x5a812b(0x1c1)]=[...(_0x5a0ce7=_0x24b65b[_0x5a812b(0x1c1)])==null?[]:_0x5a0ce7,_0x5e3282]['sort']((_0x3d9679,_0x323898)=>_0x3d9679[_0x5a812b(0x1f0)]-_0x323898[_0x5a812b(0x1f0)]),M(_0x24b65b,_0x5e3282),{'nextDocumentData':_0x167a80,'nextMetadata':_0x1606b8,'cursorOffset':_0x5ca80c+0x1};}function oe(_0x211db4,_0x314088,_0x431e22){const _0x15e86d=_0x4a8a2d;var _0x17578a;((_0x17578a=_0x211db4['paragraphs'])==null?[]:_0x17578a)['filter'](_0x553339=>_0x553339['startIndex']>_0x314088&&_0x553339[_0x15e86d(0x1f0)]<_0x431e22)['forEach'](_0x2a3de8=>{const _0x3b2a5f=_0x15e86d;var _0x4bbc9f;let _0x156109={...(_0x4bbc9f=_0x2a3de8[_0x3b2a5f(0x22c)])==null?{}:_0x4bbc9f};delete _0x156109['spaceAbove'],delete _0x156109[_0x3b2a5f(0x1ca)],_0x2a3de8[_0x3b2a5f(0x22c)]=_0x156109;});}function se(_0x457e64,_0x248d17){return _0x457e64==null||_0x248d17==null||_0x457e64===_0x248d17?null:{'startOffset':Math['min'](_0x457e64,_0x248d17),'endOffset':Math['max'](_0x457e64,_0x248d17)};}function ce(_0x3858ad){const _0x591bfa=_0x4a8a2d;return{'nextDocumentData':D(_0x3858ad[_0x591bfa(0x21a)]),'nextMetadata':T(_0x3858ad[_0x591bfa(0x1bc)],_0x3858ad['blockId'],_0x3858ad[_0x591bfa(0x211)]),'cursorOffset':0x0};}function le(_0x10af95){const _0x50aa72=_0x4a8a2d;var _0x5aa243,_0x357c42;let _0x2d332a=D(_0x10af95[_0x50aa72(0x21a)]),_0x414cf5=O(_0x2d332a),_0x1a8ea0=me(_0x414cf5,_0x10af95[_0x50aa72(0x1f6)]);if(!_0x1a8ea0)return null;let _0x2e6234=_e(_0x414cf5,_0x1a8ea0),_0x7f904f=_0x2e6234[_0x2e6234[_0x50aa72(0x1dd)]-0x1];if(!_0x7f904f||!ve(_0x414cf5,_0x1a8ea0,_0x7f904f)||_0x10af95[_0x50aa72(0x1f6)]<_0x7f904f[_0x50aa72(0x1f0)])return null;let _0x45fcd5=A(_0x414cf5,_0x1a8ea0,_0x7f904f);if(_0x45fcd5>=_0x1a8ea0[_0x50aa72(0x1bd)])return null;_0x414cf5[_0x50aa72(0x23c)]=[_0x414cf5[_0x50aa72(0x23c)][_0x50aa72(0x1f5)](0x0,_0x45fcd5),_0x3ba019[_0x50aa72(0x1e7)],_0x414cf5[_0x50aa72(0x23c)][_0x50aa72(0x1f5)](_0x45fcd5,_0x1a8ea0[_0x50aa72(0x1bd)]),_0x414cf5[_0x50aa72(0x23c)][_0x50aa72(0x1f5)](_0x1a8ea0[_0x50aa72(0x1bd)]+0x1)]['join'](''),R(_0x414cf5['paragraphs'],_0x45fcd5,_0x1a8ea0['endIndex'],0x1),R(_0x414cf5[_0x50aa72(0x207)],_0x45fcd5,_0x1a8ea0['endIndex'],0x1),R(_0x414cf5[_0x50aa72(0x1cf)],_0x45fcd5,_0x1a8ea0[_0x50aa72(0x1bd)],0x1),ke(_0x414cf5[_0x50aa72(0x206)],_0x45fcd5,_0x1a8ea0[_0x50aa72(0x1bd)],0x1),z(_0x414cf5[_0x50aa72(0x1ee)],_0x45fcd5,_0x1a8ea0['endIndex'],0x1),z(_0x414cf5[_0x50aa72(0x1d8)],_0x45fcd5,_0x1a8ea0['endIndex'],0x1),z(_0x414cf5[_0x50aa72(0x238)],_0x45fcd5,_0x1a8ea0[_0x50aa72(0x1bd)],0x1),(_0x5aa243=_0x414cf5[_0x50aa72(0x1c1)])==null||_0x5aa243[_0x50aa72(0x1e2)](_0x3caec1=>{const _0x3ec7c3=_0x50aa72;_0x3caec1===_0x1a8ea0||_0x3caec1['blockId']===_0x1a8ea0[_0x3ec7c3(0x1e4)]?_0x3caec1[_0x3ec7c3(0x1bd)]=_0x45fcd5:_0x3caec1[_0x3ec7c3(0x1f0)]>=_0x45fcd5&&_0x3caec1[_0x3ec7c3(0x1f0)]<_0x1a8ea0[_0x3ec7c3(0x1bd)]&&(_0x3caec1['startIndex']+=0x1,_0x3caec1[_0x3ec7c3(0x1bd)]+=0x1);});let _0x39bb51=_e(_0x414cf5,{..._0x1a8ea0,'endIndex':_0x45fcd5});_0x39bb51[_0x50aa72(0x1e2)]((_0x57dc22,_0x30959e)=>{const _0x35497c=_0x50aa72;var _0x1005ac;_0x57dc22['paragraphStyle']={...(_0x1005ac=_0x57dc22[_0x35497c(0x22c)])==null?{}:_0x1005ac,...E(_0x30959e===0x0,_0x30959e===_0x39bb51[_0x35497c(0x1dd)]-0x1)};});let _0xeeca1e=(_0x357c42=_0x414cf5[_0x50aa72(0x1ba)])==null?void 0x0:_0x357c42[_0x50aa72(0x23a)](_0x10901d=>_0x10901d[_0x50aa72(0x1f0)]===_0x45fcd5+0x1);return _0xeeca1e&&(_0xeeca1e['paragraphStyle']=ge(_0xeeca1e[_0x50aa72(0x22c)])),{'nextDocumentData':_0x2d332a,'cursorOffset':_0x45fcd5+0x1};}function ue(_0x4943b5){const _0x211f64=_0x4a8a2d;let _0xb19ded=D(_0x4943b5[_0x211f64(0x21a)]),_0x35cf1b=O(_0xb19ded),_0x525eeb=me(_0x35cf1b,_0x4943b5['cursorOffset']);return _0x525eeb&&de(_0xb19ded,_0x35cf1b,_0x525eeb,_0x4943b5[_0x211f64(0x1f6)],_0x4943b5[_0x211f64(0x1e1)])||null;}function de(_0x15ca94,_0x30a6c0,_0x1ecfa2,_0x15aedb,_0x5c2c1f){const _0x46d349=_0x4a8a2d;let _0x288034=we(_0x30a6c0,_0x1ecfa2,_0x15aedb,_0x5c2c1f);if(!_0x288034)return null;let _0x207bd1=_0x288034[_0x46d349(0x1d3)]-0x1;return Te(_0x30a6c0,_0x288034[_0x46d349(0x1c9)][_0x46d349(0x1f0)],_0x288034[_0x46d349(0x1c9)][_0x46d349(0x1f0)]+0x1),{'nextDocumentData':_0x15ca94,'cursorOffset':_0x207bd1};}function fe(_0x25af29,_0x1a0d81){const _0x414408=_0x4a8a2d;var _0x189422;return _0x25af29==null||(_0x189422=_0x25af29[_0x414408(0x1c1)])==null?void 0x0:_0x189422[_0x414408(0x23a)](_0x1fd816=>_0x1fd816[_0x414408(0x1f4)]===_0x54e1d3[_0x414408(0x200)]&&_0x1fd816[_0x414408(0x1f0)]<=_0x1a0d81&&_0x1a0d81<=_0x1fd816[_0x414408(0x1bd)]);}function pe(_0x2b27b0){const _0x2b45b7=_0x4a8a2d;var _0x188ec0;let _0xc4f97d=_0x2b27b0['documentData'][_0x2b45b7(0x22f)];if(!_0xc4f97d)return!0x1;let _0x3ac209=_0x2b27b0['direction']===_0x2b45b7(0x1eb)?_0x2b27b0[_0x2b45b7(0x1f6)]-0x1:_0x2b27b0['cursorOffset'],_0x6406aa=_0x2b27b0[_0x2b45b7(0x1c5)]===_0x2b45b7(0x22a)?_0x2b27b0[_0x2b45b7(0x1f6)]+0x1:_0x3ac209;return((_0x188ec0=_0xc4f97d[_0x2b45b7(0x1c1)])==null?[]:_0x188ec0)[_0x2b45b7(0x236)](_0x12d4ad=>_0x12d4ad[_0x2b45b7(0x1f4)]===_0x54e1d3[_0x2b45b7(0x200)]?_0x3ac209===_0x12d4ad[_0x2b45b7(0x1f0)]||_0x3ac209===_0x12d4ad[_0x2b45b7(0x1bd)]||_0x6406aa===_0x12d4ad[_0x2b45b7(0x1f0)]||_0x6406aa===_0x12d4ad[_0x2b45b7(0x1bd)]:!0x1);}function me(_0x13fc4e,_0x5a78e7){const _0x5f297a=_0x4a8a2d;var _0x3395f0;return(_0x3395f0=_0x13fc4e[_0x5f297a(0x1c1)])==null?void 0x0:_0x3395f0['find'](_0x5a8b18=>{const _0x13c31d=_0x5f297a;let _0x38c79f=j(_0x13fc4e,_0x5a8b18);return _0x5a8b18['blockType']===_0x54e1d3[_0x13c31d(0x200)]&&_0x5a8b18['startIndex']<=_0x5a78e7&&_0x5a78e7<=_0x38c79f+0x2;});}function E(_0x17e584,_0x241c84,_0x51e922=!0x1){return{'indentEnd':{'v':0x14},'indentStart':{'v':0x14},..._0x17e584&&_0x51e922?{'spaceAbove':{'v':0x8}}:{},'textStyle':{'ff':ie,'fs':0xc}};}function he(_0x56028c,_0x34f293,_0x19ed8c,_0x36d47a=!0x1){const _0x506ac7=_0x4a8a2d;var _0x166610;let _0x401af5=((_0x166610=_0x56028c[_0x506ac7(0x1ba)])==null?[]:_0x166610)[_0x506ac7(0x233)](_0x5c7d6c=>_0x5c7d6c[_0x506ac7(0x1f0)]>_0x34f293&&_0x5c7d6c[_0x506ac7(0x1f0)]<_0x19ed8c);_0x401af5[_0x506ac7(0x1e2)]((_0xa56718,_0x263a05)=>{const _0x67f467=_0x506ac7;var _0x24e661;_0xa56718[_0x67f467(0x22c)]={...(_0x24e661=_0xa56718[_0x67f467(0x22c)])==null?{}:_0x24e661,...E(_0x263a05===0x0,_0x263a05===_0x401af5[_0x67f467(0x1dd)]-0x1,_0x36d47a)};});}function ge(_0x1d5cf3){const _0xbd2508=_0x4a8a2d;var _0x1d1447,_0x4e09f6;let _0x2a8721={..._0x1d5cf3==null?{}:_0x1d5cf3};return delete _0x2a8721[_0xbd2508(0x20c)],delete _0x2a8721['indentStart'],delete _0x2a8721[_0xbd2508(0x217)],delete _0x2a8721[_0xbd2508(0x1ca)],((_0x1d1447=_0x2a8721[_0xbd2508(0x1e5)])==null?void 0x0:_0x1d1447['ff'])===ie&&((_0x4e09f6=_0x2a8721['textStyle'])==null?void 0x0:_0x4e09f6['fs'])===0xc&&delete _0x2a8721[_0xbd2508(0x1e5)],_0x2a8721;}function _e(_0x268343,_0x4e7bc4){const _0x218459=_0x4a8a2d;var _0x2c1244;let _0x556d85=j(_0x268343,_0x4e7bc4);return((_0x2c1244=_0x268343[_0x218459(0x1ba)])==null?[]:_0x2c1244)[_0x218459(0x233)](_0x5822ff=>_0x5822ff[_0x218459(0x1f0)]>_0x4e7bc4[_0x218459(0x1f0)]&&_0x5822ff['startIndex']<_0x556d85);}function _0x28c9(_0x1e6757,_0x175dbf){_0x1e6757=_0x1e6757-0x1b6;const _0x58a183=_0x58a1();let _0x28c9d9=_0x58a183[_0x1e6757];return _0x28c9d9;}function ve(_0x76282b,_0x5ef0eb,_0x5ed3f2){const _0x254cec=_0x4a8a2d;let _0x2afe1d=A(_0x76282b,_0x5ef0eb,_0x5ed3f2),_0x5c9d23=_0x76282b[_0x254cec(0x23c)][_0x254cec(0x1f5)](_0x2afe1d,_0x5ed3f2[_0x254cec(0x1f0)]);return Array[_0x254cec(0x214)](_0x5c9d23)[_0x254cec(0x1bf)](_0x339f88=>_0x339f88===_0x3ba019[_0x254cec(0x234)]||_0x339f88===_0x3ba019[_0x254cec(0x1e7)]);}function D(_0x156523){const _0x4521c6=_0x4a8a2d;return _0xb48f1[_0x4521c6(0x1d2)](_0x156523);}function O(_0x1bf3c9){const _0x17ba9a=_0x4a8a2d;if(!_0x1bf3c9[_0x17ba9a(0x22f)])throw Error(_0x17ba9a(0x224));return _0x1bf3c9['body'];}function ye(_0x4bf66a,_0x108f21,_0x262c76){const _0x3d4f6c=_0x4a8a2d;if(_0x108f21==null||_0x262c76==null){let _0x2dee3f=xe(_0x4bf66a);return{'startOffset':_0x2dee3f,'endOffset':_0x2dee3f};}let _0x37d761=Math[_0x3d4f6c(0x235)](_0x108f21,_0x262c76),_0x442582=Math['max'](_0x108f21,_0x262c76);if(_0x37d761===_0x442582){let _0x5f373a=be(_0x4bf66a,_0x37d761);return{'startOffset':_0x5f373a,'endOffset':_0x5f373a};}return Ce(_0x4bf66a,_0x37d761,_0x442582);}function be(_0x4cd764,_0x276e03){const _0x5ec11e=_0x4a8a2d;return _0x276e03===0x0&&_0x4cd764[_0x5ec11e(0x23c)][0x0]===_0x3ba019[_0x5ec11e(0x225)]?0x1:_0x276e03;}function xe(_0x5539f0){const _0x449468=_0x4a8a2d;return _0x5539f0[_0x449468(0x23c)][_0x449468(0x21f)](_0x3ba019['SECTION_BREAK'])?Math[_0x449468(0x1e6)](0x0,_0x5539f0[_0x449468(0x23c)][_0x449468(0x1dd)]-0x1):_0x5539f0['dataStream'][_0x449468(0x1dd)];}function Se(_0x423855,_0x463210,_0x3896b8){const _0x1b3077=_0x4a8a2d;var _0x2e80e0;let _0x4e426e=Math[_0x1b3077(0x235)](_0x463210,_0x3896b8),_0x2fc2d5=Math[_0x1b3077(0x1e6)](_0x463210,_0x3896b8);return!!((_0x2e80e0=_0x423855[_0x1b3077(0x1ee)])!=null&&_0x2e80e0['some'](_0x2804c0=>_0x4e426e>_0x2804c0[_0x1b3077(0x1f0)]&&_0x4e426e<_0x2804c0[_0x1b3077(0x1bd)]||_0x2fc2d5>_0x2804c0[_0x1b3077(0x1f0)]&&_0x2fc2d5<_0x2804c0[_0x1b3077(0x1bd)]||_0x4e426e<=_0x2804c0[_0x1b3077(0x1f0)]&&_0x2fc2d5>=_0x2804c0[_0x1b3077(0x1bd)]));}function Ce(_0x4cc54b,_0x268161,_0x4880cb){const _0xc2e62c=_0x4a8a2d;var _0x4b1804,_0x157733;let _0x4e865c=[...(_0x4b1804=_0x4cc54b[_0xc2e62c(0x1ba)])==null?[]:_0x4b1804][_0xc2e62c(0x239)]((_0xb1769b,_0x5753db)=>_0xb1769b[_0xc2e62c(0x1f0)]-_0x5753db[_0xc2e62c(0x1f0)]),_0x3d4eff=_0x4e865c['find']((_0x5c92cd,_0x29a26e)=>(_0x29a26e===0x0?0x0:_0x4e865c[_0x29a26e-0x1][_0xc2e62c(0x1f0)]+0x1)<=_0x268161&&_0x268161<=_0x5c92cd['startIndex']),_0x1ed691=(_0x157733=_0x4e865c[_0xc2e62c(0x23a)](_0x211e54=>_0x211e54[_0xc2e62c(0x1f0)]>=_0x4880cb-0x1))==null?_0x4e865c[_0x4e865c[_0xc2e62c(0x1dd)]-0x1]:_0x157733;return{'startOffset':_0x3d4eff?k(_0x4e865c,_0x3d4eff):_0x268161,'endOffset':_0x1ed691?_0x1ed691['startIndex']+0x1:_0x4880cb};}function k(_0x157ccd,_0x170084){const _0x34c4ed=_0x4a8a2d;let _0x393940=_0x157ccd[_0x34c4ed(0x240)](_0x170084);return _0x393940>0x0?_0x157ccd[_0x393940-0x1]['startIndex']+0x1:0x0;}function A(_0x658122,_0x58c33d,_0x451dfa){const _0xe8904b=_0x4a8a2d;var _0x8e9a25;return Math[_0xe8904b(0x1e6)](k((_0x8e9a25=_0x658122['paragraphs'])==null?[]:_0x8e9a25,_0x451dfa),_0x58c33d[_0xe8904b(0x1f0)]+0x1);}function j(_0x54b102,_0x5a480f){const _0x8d5fec=_0x4a8a2d;return _0x54b102[_0x8d5fec(0x23c)][_0x5a480f[_0x8d5fec(0x1bd)]]===_0x3ba019['BLOCK_END']?_0x5a480f[_0x8d5fec(0x1bd)]:_0x54b102[_0x8d5fec(0x23c)][_0x5a480f['endIndex']+0x1]===_0x3ba019['BLOCK_END']?_0x5a480f[_0x8d5fec(0x1bd)]+0x1:_0x5a480f[_0x8d5fec(0x1bd)];}function we(_0x1734d9,_0x450943,_0x2df09c,_0x498a00){const _0x20b679=_0x4a8a2d;var _0x48b7c9,_0x4a2a5d;let _0x12fe04=j(_0x1734d9,_0x450943),_0x41149c=((_0x48b7c9=_0x1734d9[_0x20b679(0x1ba)])==null?[]:_0x48b7c9)[_0x20b679(0x23a)](_0x41061b=>_0x41061b[_0x20b679(0x1f0)]===_0x12fe04+0x1);if(!_0x41149c||_0x498a00!=null&&_0x41149c[_0x20b679(0x1f0)]!==_0x498a00||_0x2df09c<_0x12fe04||_0x2df09c>_0x41149c[_0x20b679(0x1f0)]+0x1||_0x1734d9[_0x20b679(0x23c)][_0x41149c['startIndex']]!==_0x3ba019[_0x20b679(0x225)])return null;let _0x1eca3f=k((_0x4a2a5d=_0x1734d9[_0x20b679(0x1ba)])==null?[]:_0x4a2a5d,_0x41149c),_0x454819=_0x1734d9['dataStream']['slice'](_0x1eca3f,_0x41149c[_0x20b679(0x1f0)]);return Array[_0x20b679(0x214)](_0x454819)[_0x20b679(0x1bf)](_0x37a77b=>_0x37a77b===_0x3ba019[_0x20b679(0x1e7)])?{'paragraph':_0x41149c,'endTokenOffset':_0x12fe04}:null;}function M(_0x5d7221,_0x2a40b1){const _0x3b0637=_0x4a8a2d;var _0x517a07;let _0x2c4705=j(_0x5d7221,_0x2a40b1),_0x4a4b84=_0x5d7221[_0x3b0637(0x23c)][_0x2c4705+0x1];_0x4a4b84!==_0x3ba019[_0x3b0637(0x229)]&&_0x4a4b84!==void 0x0||N(_0x5d7221,_0x2c4705+0x1,_0x3ba019[_0x3b0637(0x225)],{'paragraphs':[{'startIndex':0x0,'paragraphId':_0x34e429(new Set((_0x517a07=_0x5d7221[_0x3b0637(0x1ba)])==null?void 0x0:_0x517a07[_0x3b0637(0x1c6)](_0x3cb5a9=>_0x3cb5a9[_0x3b0637(0x20e)])))}]});}function N(_0xa0396,_0x5e4e9d,_0x5b6d4b,_0x3bb9ec={}){const _0x59ca28=_0x4a8a2d;var _0x1b15f9,_0x4545c4;if(_0x5b6d4b){if(_0xa0396[_0x59ca28(0x23c)]=''+_0xa0396[_0x59ca28(0x23c)]['slice'](0x0,_0x5e4e9d)+_0x5b6d4b+_0xa0396['dataStream'][_0x59ca28(0x1f5)](_0x5e4e9d),Ee(_0xa0396,_0x5e4e9d,_0x5b6d4b[_0x59ca28(0x1dd)]),(_0x1b15f9=_0x3bb9ec[_0x59ca28(0x1ba)])!=null&&_0x1b15f9[_0x59ca28(0x1dd)]){var _0x8d59fb;_0xa0396[_0x59ca28(0x1ba)]=[...(_0x8d59fb=_0xa0396[_0x59ca28(0x1ba)])==null?[]:_0x8d59fb,..._0x3bb9ec[_0x59ca28(0x1ba)][_0x59ca28(0x1c6)](_0x1ffea9=>({..._0x1ffea9,'startIndex':_0x1ffea9['startIndex']+_0x5e4e9d}))][_0x59ca28(0x239)]((_0x545a50,_0x41062d)=>_0x545a50[_0x59ca28(0x1f0)]-_0x41062d[_0x59ca28(0x1f0)]);}if((_0x4545c4=_0x3bb9ec[_0x59ca28(0x1c1)])!=null&&_0x4545c4[_0x59ca28(0x1dd)]){var _0x172fc1;_0xa0396['blockRanges']=[...(_0x172fc1=_0xa0396['blockRanges'])==null?[]:_0x172fc1,..._0x3bb9ec['blockRanges'][_0x59ca28(0x1c6)](_0x19853b=>({..._0x19853b,'startIndex':_0x19853b[_0x59ca28(0x1f0)]+_0x5e4e9d,'endIndex':_0x19853b[_0x59ca28(0x1bd)]+_0x5e4e9d}))][_0x59ca28(0x239)]((_0x2c1261,_0x53f498)=>_0x2c1261['startIndex']-_0x53f498[_0x59ca28(0x1f0)]);}}}function Te(_0x2259ad,_0x121220,_0x434c54){const _0x3ad431=_0x4a8a2d;let _0x14ae8e=_0x434c54-_0x121220;_0x2259ad[_0x3ad431(0x23c)]=''+_0x2259ad[_0x3ad431(0x23c)][_0x3ad431(0x1f5)](0x0,_0x121220)+_0x2259ad[_0x3ad431(0x23c)][_0x3ad431(0x1f5)](_0x434c54),De(_0x2259ad,_0x121220,_0x14ae8e);}function Ee(_0x43e9e3,_0x20a3ac,_0x26447c){const _0x1c8892=_0x4a8a2d;_0x43e9e3[_0x1c8892(0x1ba)]=P(_0x43e9e3[_0x1c8892(0x1ba)],_0x20a3ac,_0x26447c),_0x43e9e3[_0x1c8892(0x207)]=P(_0x43e9e3['sectionBreaks'],_0x20a3ac,_0x26447c),_0x43e9e3['customBlocks']=P(_0x43e9e3['customBlocks'],_0x20a3ac,_0x26447c),_0x43e9e3[_0x1c8892(0x206)]=Oe(_0x43e9e3[_0x1c8892(0x206)],_0x20a3ac,_0x26447c),_0x43e9e3['tables']=I(_0x43e9e3[_0x1c8892(0x1ee)],_0x20a3ac,_0x26447c),_0x43e9e3['customRanges']=I(_0x43e9e3[_0x1c8892(0x1d8)],_0x20a3ac,_0x26447c),_0x43e9e3['customDecorations']=I(_0x43e9e3[_0x1c8892(0x238)],_0x20a3ac,_0x26447c),_0x43e9e3['blockRanges']=I(_0x43e9e3['blockRanges'],_0x20a3ac,_0x26447c);}function De(_0x4d91c1,_0x384706,_0x3ecd85){const _0x28ae70=_0x4a8a2d;var _0x702ce5,_0x5b34b0;_0x4d91c1[_0x28ae70(0x1ba)]=F(_0x4d91c1['paragraphs'],_0x384706,_0x3ecd85),_0x4d91c1[_0x28ae70(0x207)]=F(_0x4d91c1[_0x28ae70(0x207)],_0x384706,_0x3ecd85),_0x4d91c1[_0x28ae70(0x1cf)]=F(_0x4d91c1[_0x28ae70(0x1cf)],_0x384706,_0x3ecd85),_0x4d91c1[_0x28ae70(0x206)]=(_0x702ce5=L((_0x5b34b0=_0x4d91c1['textRuns'])==null?void 0x0:_0x5b34b0[_0x28ae70(0x1c6)](_0x1eab75=>({..._0x1eab75,'startIndex':_0x1eab75['st'],'endIndex':_0x1eab75['ed']})),_0x384706,_0x3ecd85))==null?void 0x0:_0x702ce5[_0x28ae70(0x1c6)](_0x2fea58=>{let {startIndex:_0x444451,endIndex:_0x560dd9,..._0x3146b5}=_0x2fea58;return{..._0x3146b5,'st':_0x444451,'ed':_0x560dd9};}),_0x4d91c1[_0x28ae70(0x1ee)]=L(_0x4d91c1[_0x28ae70(0x1ee)],_0x384706,_0x3ecd85),_0x4d91c1[_0x28ae70(0x1d8)]=L(_0x4d91c1['customRanges'],_0x384706,_0x3ecd85),_0x4d91c1[_0x28ae70(0x238)]=L(_0x4d91c1[_0x28ae70(0x238)],_0x384706,_0x3ecd85),_0x4d91c1['blockRanges']=L(_0x4d91c1[_0x28ae70(0x1c1)],_0x384706,_0x3ecd85);}function P(_0x16c736,_0x4b4b4f,_0x192f08){const _0x2688de=_0x4a8a2d;return _0x16c736==null?void 0x0:_0x16c736[_0x2688de(0x1c6)](_0x5a1173=>_0x5a1173[_0x2688de(0x1f0)]>=_0x4b4b4f?{..._0x5a1173,'startIndex':_0x5a1173['startIndex']+_0x192f08}:_0x5a1173);}function F(_0x2912ba,_0x46d1f3,_0x424aee){const _0x44c81d=_0x4a8a2d;let _0x5b7f66=_0x46d1f3+_0x424aee;return _0x2912ba==null?void 0x0:_0x2912ba[_0x44c81d(0x1c6)](_0x52dc9e=>_0x52dc9e[_0x44c81d(0x1f0)]>=_0x46d1f3&&_0x52dc9e['startIndex']<_0x5b7f66?null:_0x52dc9e[_0x44c81d(0x1f0)]>=_0x5b7f66?{..._0x52dc9e,'startIndex':_0x52dc9e['startIndex']-_0x424aee}:_0x52dc9e)['filter'](_0x415221=>_0x415221!=null);}function Oe(_0x32df01,_0x537bf2,_0x8b8d1d){const _0x5ba742=_0x4a8a2d;return _0x32df01==null?void 0x0:_0x32df01[_0x5ba742(0x1c6)](_0x273a88=>_0x273a88['st']>=_0x537bf2?{..._0x273a88,'st':_0x273a88['st']+_0x8b8d1d,'ed':_0x273a88['ed']+_0x8b8d1d}:_0x273a88['ed']>_0x537bf2?{..._0x273a88,'ed':_0x273a88['ed']+_0x8b8d1d}:_0x273a88);}function I(_0x9b9d4a,_0x2a7633,_0x26d93f){const _0x427625=_0x4a8a2d;return _0x9b9d4a==null?void 0x0:_0x9b9d4a[_0x427625(0x1c6)](_0x3389d8=>_0x3389d8[_0x427625(0x1f0)]>=_0x2a7633?{..._0x3389d8,'startIndex':_0x3389d8[_0x427625(0x1f0)]+_0x26d93f,'endIndex':_0x3389d8[_0x427625(0x1bd)]+_0x26d93f}:_0x3389d8['endIndex']>=_0x2a7633?{..._0x3389d8,'endIndex':_0x3389d8['endIndex']+_0x26d93f}:_0x3389d8);}function L(_0x45d6fa,_0x377e73,_0x3d5f6b){const _0x2ff15a=_0x4a8a2d;let _0xfa2d64=_0x377e73+_0x3d5f6b;return _0x45d6fa==null?void 0x0:_0x45d6fa['map'](_0x1fc5ec=>_0x1fc5ec[_0x2ff15a(0x1f0)]>=_0x377e73&&_0x1fc5ec[_0x2ff15a(0x1bd)]<_0xfa2d64?null:_0x1fc5ec[_0x2ff15a(0x1f0)]>=_0xfa2d64?{..._0x1fc5ec,'startIndex':_0x1fc5ec[_0x2ff15a(0x1f0)]-_0x3d5f6b,'endIndex':_0x1fc5ec[_0x2ff15a(0x1bd)]-_0x3d5f6b}:_0x1fc5ec[_0x2ff15a(0x1bd)]>=_0x377e73?{..._0x1fc5ec,'startIndex':_0x1fc5ec['startIndex']<_0x377e73?_0x1fc5ec['startIndex']:_0x377e73,'endIndex':Math[_0x2ff15a(0x1e6)](_0x377e73,_0x1fc5ec[_0x2ff15a(0x1bd)]-_0x3d5f6b)}:_0x1fc5ec)[_0x2ff15a(0x233)](_0x3ef21a=>_0x3ef21a!=null);}function R(_0x2cc2fc,_0x576234,_0x24ca3d,_0x3f855e){_0x2cc2fc==null||_0x2cc2fc['forEach'](_0x1afc45=>{const _0x20e3aa=_0x28c9;_0x1afc45['startIndex']>=_0x576234&&_0x1afc45[_0x20e3aa(0x1f0)]<_0x24ca3d&&(_0x1afc45['startIndex']+=_0x3f855e);});}function ke(_0x15bea0,_0x17e830,_0x34f1e9,_0x2ec254){const _0x21e132=_0x4a8a2d;_0x15bea0==null||_0x15bea0[_0x21e132(0x1e2)](_0x2fce1=>{_0x2fce1['st']>=_0x17e830&&_0x2fce1['st']<_0x34f1e9?(_0x2fce1['st']+=_0x2ec254,_0x2fce1['ed']+=_0x2ec254):_0x2fce1['ed']>_0x17e830&&_0x2fce1['ed']<_0x34f1e9&&(_0x2fce1['ed']+=_0x2ec254);});}function z(_0x5223e9,_0x379138,_0x114465,_0x48f290){const _0x324870=_0x4a8a2d;_0x5223e9==null||_0x5223e9[_0x324870(0x1e2)](_0x1df7b6=>{const _0x4bd01a=_0x324870;_0x1df7b6[_0x4bd01a(0x1f0)]>=_0x379138&&_0x1df7b6[_0x4bd01a(0x1f0)]<_0x114465?(_0x1df7b6['startIndex']+=_0x48f290,_0x1df7b6[_0x4bd01a(0x1bd)]+=_0x48f290):_0x1df7b6[_0x4bd01a(0x1bd)]>_0x379138&&_0x1df7b6[_0x4bd01a(0x1bd)]<_0x114465&&(_0x1df7b6[_0x4bd01a(0x1bd)]+=_0x48f290);});}function B(_0x2fd0e3){'@babel/helpers - typeof';const _0x21d23d=_0x4a8a2d;return B=typeof Symbol==_0x21d23d(0x1ed)&&typeof Symbol[_0x21d23d(0x1d6)]==_0x21d23d(0x1da)?function(_0x1121ff){return typeof _0x1121ff;}:function(_0x2808c1){const _0x148d96=_0x21d23d;return _0x2808c1&&typeof Symbol==_0x148d96(0x1ed)&&_0x2808c1['constructor']===Symbol&&_0x2808c1!==Symbol[_0x148d96(0x1be)]?_0x148d96(0x1da):typeof _0x2808c1;},B(_0x2fd0e3);}function Ae(_0x115f91,_0x302b6e){const _0x4b03d7=_0x4a8a2d;if(B(_0x115f91)!=_0x4b03d7(0x1d5)||!_0x115f91)return _0x115f91;var _0x3817bf=_0x115f91[Symbol[_0x4b03d7(0x1ea)]];if(_0x3817bf!==void 0x0){var _0x525c6a=_0x3817bf[_0x4b03d7(0x1c8)](_0x115f91,_0x302b6e||_0x4b03d7(0x20b));if(B(_0x525c6a)!=_0x4b03d7(0x1d5))return _0x525c6a;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x302b6e===_0x4b03d7(0x1d1)?String:Number)(_0x115f91);}function je(_0x562264){const _0x12b482=_0x4a8a2d;var _0x59f815=Ae(_0x562264,_0x12b482(0x1d1));return B(_0x59f815)==_0x12b482(0x1da)?_0x59f815:_0x59f815+'';}function V(_0x4ebb82,_0x29783a,_0x4cb423){const _0x464628=_0x4a8a2d;return(_0x29783a=je(_0x29783a))in _0x4ebb82?Object[_0x464628(0x1c7)](_0x4ebb82,_0x29783a,{'value':_0x4cb423,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4ebb82[_0x29783a]=_0x4cb423,_0x4ebb82;}function _0x58a1(){const _0x37f8b9=['docs-code.command.insert-below','delete','complete','indexOf','_change$','5jqMxib','_setResource','deserialize','568DROgGU','paragraphs','COMMAND','metadata','endIndex','prototype','every','clear','blockRanges','previousDocumentData','getCurrentUnitOfType','onStarting','direction','map','defineProperty','call','paragraph','spaceBelow','codes','add','_configService','298dROuVY','customBlocks','11fodUEz','string','deepClone','endTokenOffset','range','object','iterator','UNIVER_DOC','customRanges','3587CfVInx','symbol','compose','change$','length','_resourceManagerService','getUniverDocInstance','dispose','paragraphStartIndex','forEach','unitId','blockId','textStyle','max','BLOCK_END','7708764WElStu','parse','toPrimitive','left','disposeWithMe','function','tables','nextMetadata','startIndex','removeCode','javascript','decorate','blockType','slice','cursorOffset','get','monospace','version','docs-code.config','syncExecuteCommand','_commandService','nextDocumentData','model','1.0.0-alpha.1','CODE','docs-code.command.update','pluginName','6jDpmHI','consumeInsertRange','_docsCodeModel','textRuns','sectionBreaks','166872RqxqjD','6398PYBhkJ','startOffset','default','indentEnd','_config','paragraphId','setCodeConfig','_resources','config','docs-code.command.exit','getBody','from','getSnapshot','serialize','spaceAbove','@univerjs-pro/docs-code','removeUnit','documentData','3285870weuPcy','docs-code.command.insert','docs-code.command.cancel-empty-paragraph','DOC_CODE_PLUGIN','endsWith','replaceOp','getCodeConfig','registerPluginResource','set','Document\x20body\x20is\x20required','PARAGRAPH','commandService','endOffset','getParagraphsInRange','SECTION_BREAK','right','stringify','paragraphStyle','4385586ZIZPEr','getTextRanges','body','next','3667734fUoyDX','registerCommand','filter','BLOCK_START','min','some','_injector','customDecorations','sort','find','type','dataStream'];_0x58a1=function(){return _0x37f8b9;};return _0x58a1();}var H=class extends _0x3e8f03{constructor(..._0x202d30){const _0x8ee9e0=_0x4a8a2d;super(..._0x202d30),V(this,_0x8ee9e0(0x210),new Map()),V(this,'_change$',new _0x363e20()),V(this,_0x8ee9e0(0x1dc),this[_0x8ee9e0(0x241)]['asObservable']());}[_0x4a8a2d(0x221)](_0x197643,_0x58a620){const _0x27ca2e=_0x4a8a2d;return w(this[_0x27ca2e(0x210)][_0x27ca2e(0x1f7)](_0x197643))[_0x27ca2e(0x1cb)][_0x58a620];}[_0x4a8a2d(0x20f)](_0x4853b5,_0x5aaa34,_0x26ee93){const _0x449b87=_0x4a8a2d;this['_setResource'](_0x4853b5,_0x5aaa34,T(this[_0x449b87(0x210)][_0x449b87(0x1f7)](_0x4853b5),_0x5aaa34,_0x26ee93));}[_0x4a8a2d(0x1f1)](_0xf6e12d,_0x3861a5){const _0x34b295=_0x4a8a2d;this['_setResource'](_0xf6e12d,_0x3861a5,re(this[_0x34b295(0x210)][_0x34b295(0x1f7)](_0xf6e12d),_0x3861a5));}[_0x4a8a2d(0x216)](_0x388db7){const _0x5bfda3=_0x4a8a2d;return w(this[_0x5bfda3(0x210)]['get'](_0x388db7));}[_0x4a8a2d(0x1b8)](_0xe49eb4,_0x7cea61){const _0x24eff5=_0x4a8a2d;this[_0x24eff5(0x210)][_0x24eff5(0x223)](_0xe49eb4,w(_0x7cea61)),this[_0x24eff5(0x241)][_0x24eff5(0x230)]({'unitId':_0xe49eb4});}[_0x4a8a2d(0x219)](_0x102cca){const _0x439e75=_0x4a8a2d;this[_0x439e75(0x210)][_0x439e75(0x23e)](_0x102cca),this[_0x439e75(0x241)][_0x439e75(0x230)]({'unitId':_0x102cca});}[_0x4a8a2d(0x1e0)](){const _0x478bdc=_0x4a8a2d;super[_0x478bdc(0x1e0)](),this[_0x478bdc(0x210)][_0x478bdc(0x1c0)](),this[_0x478bdc(0x241)][_0x478bdc(0x23f)]();}[_0x4a8a2d(0x1b7)](_0x1838bc,_0x1d97c0,_0x1fad4f){const _0x3891a1=_0x4a8a2d;this['_resources'][_0x3891a1(0x223)](_0x1838bc,_0x1fad4f),this[_0x3891a1(0x241)][_0x3891a1(0x230)]({'unitId':_0x1838bc,'blockId':_0x1d97c0});}};const Me={'id':_0x4a8a2d(0x23d),'type':_0x20b98a[_0x4a8a2d(0x1bb)],'handler':_0x525534=>{const _0x3d5255=_0x4a8a2d;let _0x2442b9=Le(_0x525534);if(_0x2442b9)return _0x525534[_0x3d5255(0x1f7)](_0x3735ed)[_0x3d5255(0x1fb)](U['id'],{'startOffset':_0x2442b9[_0x3d5255(0x20a)],'endOffset':_0x2442b9[_0x3d5255(0x227)],'unitId':_0x2442b9[_0x3d5255(0x1e3)]});let _0x40b8a6=Re(_0x525534);if(!_0x40b8a6)return!0x1;let _0x630a60=_0x40b8a6[_0x3d5255(0x1f0)]+0x1;return _0x525534[_0x3d5255(0x1f7)](_0x3735ed)[_0x3d5255(0x1fb)](U['id'],{'startOffset':_0x630a60,'endOffset':_0x630a60});}},Ne={'id':'docs-code.command.consume-boundary-delete','type':_0x20b98a['COMMAND'],'handler':()=>!0x0},U={'id':_0x4a8a2d(0x21c),'type':_0x20b98a[_0x4a8a2d(0x1bb)],'handler':(_0x34e2fe,_0x11462e)=>{const _0x2f3080=_0x4a8a2d;var _0x55fe22,_0x46f79f,_0x5e0193;let _0x5b75bf=W(_0x34e2fe,_0x11462e==null?void 0x0:_0x11462e['unitId']);if(!_0x5b75bf)return!0x1;let _0x8f5b5d=G(_0x34e2fe),_0x3c869f=ae({'blockId':(_0x55fe22=_0x11462e==null?void 0x0:_0x11462e[_0x2f3080(0x1e4)])==null?_0x97c26f(0x6):_0x55fe22,'config':_0x11462e==null?void 0x0:_0x11462e[_0x2f3080(0x211)],'documentData':_0x5b75bf[_0x2f3080(0x1c2)],'endOffset':(_0x46f79f=_0x11462e==null?void 0x0:_0x11462e[_0x2f3080(0x227)])==null?_0x8f5b5d==null?void 0x0:_0x8f5b5d[_0x2f3080(0x227)]:_0x46f79f,'metadata':_0x5b75bf['model'][_0x2f3080(0x216)](_0x5b75bf[_0x2f3080(0x1e3)]),'startOffset':(_0x5e0193=_0x11462e==null?void 0x0:_0x11462e['startOffset'])==null?_0x8f5b5d==null?void 0x0:_0x8f5b5d[_0x2f3080(0x20a)]:_0x5e0193}),_0x25363b=q(_0x5b75bf[_0x2f3080(0x226)],_0x5b75bf[_0x2f3080(0x1e3)],_0x5b75bf[_0x2f3080(0x1c2)],_0x3c869f[_0x2f3080(0x1fd)],_0x3c869f[_0x2f3080(0x1f6)]);return _0x25363b&&_0x3c869f[_0x2f3080(0x1ef)]&&_0x5b75bf[_0x2f3080(0x1fe)][_0x2f3080(0x1b8)](_0x5b75bf[_0x2f3080(0x1e3)],_0x3c869f['nextMetadata']),_0x25363b;}},Pe={'id':_0x4a8a2d(0x201),'type':_0x20b98a[_0x4a8a2d(0x1bb)],'handler':(_0x596b59,_0x2a5246)=>{const _0x2dad1b=_0x4a8a2d;if(!_0x2a5246)return!0x1;let _0x447ca0=W(_0x596b59,_0x2a5246[_0x2dad1b(0x1e3)]);if(!_0x447ca0)return!0x1;let _0x1ec4e5=ce({'blockId':_0x2a5246[_0x2dad1b(0x1e4)],'config':_0x2a5246['config'],'documentData':_0x447ca0[_0x2dad1b(0x1c2)],'metadata':_0x447ca0[_0x2dad1b(0x1fe)][_0x2dad1b(0x216)](_0x447ca0['unitId'])});return _0x1ec4e5[_0x2dad1b(0x1ef)]&&_0x447ca0['model'][_0x2dad1b(0x1b8)](_0x447ca0['unitId'],_0x1ec4e5[_0x2dad1b(0x1ef)]),!0x0;}},Fe={'id':_0x4a8a2d(0x212),'type':_0x20b98a[_0x4a8a2d(0x1bb)],'handler':(_0x510efd,_0xbfa146)=>{const _0x594323=_0x4a8a2d;var _0x4b464b,_0x4ad761;let _0x48a69b=W(_0x510efd,_0xbfa146==null?void 0x0:_0xbfa146[_0x594323(0x1e3)]);if(!_0x48a69b)return!0x1;let _0x3dacad=(_0x4b464b=_0xbfa146==null?void 0x0:_0xbfa146[_0x594323(0x1f6)])==null?(_0x4ad761=G(_0x510efd))==null?void 0x0:_0x4ad761[_0x594323(0x20a)]:_0x4b464b;if(_0x3dacad==null)return!0x1;let _0x1067fe=le({'cursorOffset':_0x3dacad,'documentData':_0x48a69b['previousDocumentData']});return _0x1067fe?q(_0x48a69b[_0x594323(0x226)],_0x48a69b[_0x594323(0x1e3)],_0x48a69b[_0x594323(0x1c2)],_0x1067fe[_0x594323(0x1fd)],_0x1067fe[_0x594323(0x1f6)]):!0x1;}},Ie={'id':_0x4a8a2d(0x21d),'type':_0x20b98a['COMMAND'],'handler':(_0x561e74,_0x45fa69)=>{const _0x4da7e9=_0x4a8a2d;var _0x599ff8,_0x542500;let _0x5727a7=W(_0x561e74,_0x45fa69==null?void 0x0:_0x45fa69[_0x4da7e9(0x1e3)]);if(!_0x5727a7)return!0x1;let _0xd602b7=(_0x599ff8=_0x45fa69==null?void 0x0:_0x45fa69[_0x4da7e9(0x1f6)])==null?(_0x542500=G(_0x561e74))==null?void 0x0:_0x542500['startOffset']:_0x599ff8;if(_0xd602b7==null)return!0x1;let _0x2c0745=ue({'cursorOffset':_0xd602b7,'documentData':_0x5727a7['previousDocumentData'],'paragraphStartIndex':_0x45fa69==null?void 0x0:_0x45fa69['paragraphStartIndex']});return _0x2c0745?q(_0x5727a7[_0x4da7e9(0x226)],_0x5727a7[_0x4da7e9(0x1e3)],_0x5727a7[_0x4da7e9(0x1c2)],_0x2c0745['nextDocumentData'],_0x2c0745[_0x4da7e9(0x1f6)]):!0x1;}};function W(_0x482f3b,_0x9a475b){const _0x58afea=_0x4a8a2d;let _0x4faac0=_0x482f3b['get'](_0x3abeac),_0xaaf406=_0x9a475b?_0x4faac0[_0x58afea(0x1df)](_0x9a475b):_0x4faac0[_0x58afea(0x1c3)](_0x2bb6f5[_0x58afea(0x1d7)]);return _0xaaf406?{'commandService':_0x482f3b['get'](_0x3735ed),'model':_0x482f3b['get'](H),'previousDocumentData':_0xaaf406[_0x58afea(0x215)](),'unitId':_0xaaf406['getUnitId']()}:null;}function G(_0x48d8e5){const _0x7c73c4=_0x4a8a2d;var _0x1f4ac0;return(_0x1f4ac0=_0x48d8e5[_0x7c73c4(0x1f7)](_0x291a89)[_0x7c73c4(0x22e)]())==null?void 0x0:_0x1f4ac0[0x0];}function Le(_0x50f484){const _0x335578=_0x4a8a2d;var _0x4d0fb4;let _0x5c46dc=(_0x4d0fb4=_0x50f484[_0x335578(0x1f7)](_0x3abeac)[_0x335578(0x1c3)](_0x2bb6f5[_0x335578(0x1d7)]))==null?void 0x0:_0x4d0fb4['getUnitId']();try{return _0x50f484['get'](_0x2040aa)[_0x335578(0x204)](_0x5c46dc);}catch{return null;}}function Re(_0xc8d4b2){const _0x459600=_0x4a8a2d;var _0x66885,_0x360e57,_0x1eb2a3;let _0x5323c3=G(_0xc8d4b2);if(!_0x5323c3)return null;let _0x1ddf43=_0xc8d4b2[_0x459600(0x1f7)](_0x3abeac)['getCurrentUnitOfType'](_0x2bb6f5[_0x459600(0x1d7)]),_0x5dc10f=_0x1ddf43==null?void 0x0:_0x1ddf43[_0x459600(0x213)]();return _0x5dc10f?(_0x66885=_0x24fe28[_0x459600(0x1d4)][_0x459600(0x228)](_0x5323c3,(_0x360e57=_0x5dc10f['paragraphs'])==null?[]:_0x360e57,(_0x1eb2a3=_0x5dc10f[_0x459600(0x23c)])==null?'':_0x1eb2a3)[0x0])==null?null:_0x66885:null;}function ze(_0x48f164,_0x5d6c01){const _0x2758ca=_0x4a8a2d;var _0x93d0eb,_0x24ac7b,_0x5bd531,_0xe97b8e,_0x1a541c,_0x428a1d,_0x206213,_0x371f1f,_0x104ccd,_0x3d1e1a,_0x2a8cfb,_0x3c555b,_0x19f2e1,_0x23c305,_0x3c760e,_0x399b81,_0xfc1a60,_0x147f97;let _0x59a6ac=_0x2387fb['getInstance']();return[K(_0x59a6ac,[_0x2758ca(0x22f),_0x2758ca(0x23c)],(_0x93d0eb=_0x48f164[_0x2758ca(0x22f)])==null?void 0x0:_0x93d0eb['dataStream'],(_0x24ac7b=_0x5d6c01[_0x2758ca(0x22f)])==null?void 0x0:_0x24ac7b['dataStream']),K(_0x59a6ac,[_0x2758ca(0x22f),_0x2758ca(0x1ba)],(_0x5bd531=_0x48f164[_0x2758ca(0x22f)])==null?void 0x0:_0x5bd531[_0x2758ca(0x1ba)],(_0xe97b8e=_0x5d6c01[_0x2758ca(0x22f)])==null?void 0x0:_0xe97b8e[_0x2758ca(0x1ba)]),K(_0x59a6ac,[_0x2758ca(0x22f),'sectionBreaks'],(_0x1a541c=_0x48f164[_0x2758ca(0x22f)])==null?void 0x0:_0x1a541c[_0x2758ca(0x207)],(_0x428a1d=_0x5d6c01[_0x2758ca(0x22f)])==null?void 0x0:_0x428a1d[_0x2758ca(0x207)]),K(_0x59a6ac,['body','textRuns'],(_0x206213=_0x48f164[_0x2758ca(0x22f)])==null?void 0x0:_0x206213[_0x2758ca(0x206)],(_0x371f1f=_0x5d6c01[_0x2758ca(0x22f)])==null?void 0x0:_0x371f1f[_0x2758ca(0x206)]),K(_0x59a6ac,[_0x2758ca(0x22f),_0x2758ca(0x1cf)],(_0x104ccd=_0x48f164[_0x2758ca(0x22f)])==null?void 0x0:_0x104ccd[_0x2758ca(0x1cf)],(_0x3d1e1a=_0x5d6c01['body'])==null?void 0x0:_0x3d1e1a[_0x2758ca(0x1cf)]),K(_0x59a6ac,['body','customRanges'],(_0x2a8cfb=_0x48f164[_0x2758ca(0x22f)])==null?void 0x0:_0x2a8cfb[_0x2758ca(0x1d8)],(_0x3c555b=_0x5d6c01[_0x2758ca(0x22f)])==null?void 0x0:_0x3c555b[_0x2758ca(0x1d8)]),K(_0x59a6ac,[_0x2758ca(0x22f),_0x2758ca(0x238)],(_0x19f2e1=_0x48f164['body'])==null?void 0x0:_0x19f2e1[_0x2758ca(0x238)],(_0x23c305=_0x5d6c01[_0x2758ca(0x22f)])==null?void 0x0:_0x23c305[_0x2758ca(0x238)]),K(_0x59a6ac,['body',_0x2758ca(0x1ee)],(_0x3c760e=_0x48f164[_0x2758ca(0x22f)])==null?void 0x0:_0x3c760e[_0x2758ca(0x1ee)],(_0x399b81=_0x5d6c01['body'])==null?void 0x0:_0x399b81['tables']),K(_0x59a6ac,[_0x2758ca(0x22f),_0x2758ca(0x1c1)],(_0xfc1a60=_0x48f164[_0x2758ca(0x22f)])==null?void 0x0:_0xfc1a60['blockRanges'],(_0x147f97=_0x5d6c01['body'])==null?void 0x0:_0x147f97['blockRanges'])][_0x2758ca(0x233)](Boolean)['reduce']((_0x30a948,_0x36800f)=>_0x2387fb[_0x2758ca(0x1db)](_0x30a948,_0x36800f),null);}function K(_0x496e0e,_0xabeaeb,_0x3cfa55,_0x2dd681){const _0x1b2a92=_0x4a8a2d;return _0xb48f1['diffValue'](_0x3cfa55,_0x2dd681)?null:_0x496e0e[_0x1b2a92(0x220)](_0xabeaeb,_0x3cfa55,_0x2dd681);}function q(_0x1c7168,_0x258537,_0x42aba6,_0x47945c,_0x5aac27){const _0x4ca4d8=_0x4a8a2d;let _0x55ea90=ze(_0x42aba6,_0x47945c);return _0x55ea90?!!_0x1c7168[_0x4ca4d8(0x1fb)](_0x4297bb['id'],{'unitId':_0x258537,'actions':_0x55ea90,'textRanges':[{'startOffset':_0x5aac27,'endOffset':_0x5aac27,'collapsed':!0x0}],'isEditing':!0x1}):!0x1;}const J=_0x4a8a2d(0x21e);var Be=_0x4a8a2d(0x218),Ve=_0x4a8a2d(0x1ff);const Y={};function X(_0x51a0d7,_0x4f288e){return function(_0xc2b95e,_0xe780a8){_0x4f288e(_0xc2b95e,_0xe780a8,_0x51a0d7);};}function Z(_0xb42bea,_0x307348,_0x399d74,_0x5b84c7){const _0x3fbc82=_0x4a8a2d;var _0x5d394d=arguments[_0x3fbc82(0x1dd)],_0x1b366b=_0x5d394d<0x3?_0x307348:_0x5b84c7===null?_0x5b84c7=Object['getOwnPropertyDescriptor'](_0x307348,_0x399d74):_0x5b84c7,_0x1b2d90;if(typeof Reflect==_0x3fbc82(0x1d5)&&typeof Reflect[_0x3fbc82(0x1f3)]==_0x3fbc82(0x1ed))_0x1b366b=Reflect['decorate'](_0xb42bea,_0x307348,_0x399d74,_0x5b84c7);else{for(var _0x552881=_0xb42bea[_0x3fbc82(0x1dd)]-0x1;_0x552881>=0x0;_0x552881--)(_0x1b2d90=_0xb42bea[_0x552881])&&(_0x1b366b=(_0x5d394d<0x3?_0x1b2d90(_0x1b366b):_0x5d394d>0x3?_0x1b2d90(_0x307348,_0x399d74,_0x1b366b):_0x1b2d90(_0x307348,_0x399d74))||_0x1b366b);}return _0x5d394d>0x3&&_0x1b366b&&Object[_0x3fbc82(0x1c7)](_0x307348,_0x399d74,_0x1b366b),_0x1b366b;}let Q=class extends _0x3e8f03{constructor(_0x525000,_0x5307ab){const _0x527ba6=_0x4a8a2d;super(),this[_0x527ba6(0x1de)]=_0x525000,this[_0x527ba6(0x205)]=_0x5307ab,this['_initResource']();}['_initResource'](){const _0x138310=_0x4a8a2d;this['disposeWithMe'](this[_0x138310(0x1de)][_0x138310(0x222)]({'pluginName':J,'businesses':[_0x2bb6f5['UNIVER_DOC']],'toJson':_0x756b90=>JSON[_0x138310(0x22b)](this['_docsCodeModel'][_0x138310(0x216)](_0x756b90)),'parseJson':_0x326414=>w(JSON[_0x138310(0x1e9)](_0x326414)),'onLoad':(_0x3bb989,_0x9d9c94)=>this[_0x138310(0x205)][_0x138310(0x1b8)](_0x3bb989,_0x9d9c94),'onUnLoad':_0x1fb262=>this[_0x138310(0x205)][_0x138310(0x219)](_0x1fb262)}));}};Q=Z([X(0x0,_0x3f714d),X(0x1,_0x4628b1(H))],Q);let $=class extends _0x5357ad{constructor(_0x44a0c7=Y,_0x299616,_0x10514f,_0x5e69cf){const _0x4b2ffc=_0x4a8a2d;super(),this[_0x4b2ffc(0x20d)]=_0x44a0c7,this['_injector']=_0x299616,this[_0x4b2ffc(0x1fc)]=_0x10514f,this[_0x4b2ffc(0x1cd)]=_0x5e69cf;let {..._0x1fb70a}=_0x3de4b6({},Y,this[_0x4b2ffc(0x20d)]);this['_configService']['setConfig'](_0x4b2ffc(0x1fa),_0x1fb70a);}[_0x4a8a2d(0x1c4)](){const _0x41fbe=_0x4a8a2d;this[_0x41fbe(0x237)][_0x41fbe(0x1cc)]([H]),this[_0x41fbe(0x237)]['add']([Q]),this[_0x41fbe(0x237)][_0x41fbe(0x1f7)](H),this[_0x41fbe(0x237)][_0x41fbe(0x1f7)](Q),[U,Me,Pe,Fe,Ie,Ne][_0x41fbe(0x1e2)](_0x4ae732=>this[_0x41fbe(0x1ec)](this[_0x41fbe(0x1fc)][_0x41fbe(0x232)](_0x4ae732)));}};V($,_0x4a8a2d(0x202),J),V($,'packageName',Be),V($,_0x4a8a2d(0x1f9),Ve),V($,_0x4a8a2d(0x23b),_0x2bb6f5[_0x4a8a2d(0x1d7)]),$=Z([_0xb86e0(_0x141bd9,_0x1f5d37),X(0x1,_0x4628b1(_0x531f72)),X(0x2,_0x3735ed),X(0x3,_0x42560c)],$);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};
1
+ const _0x2918aa=_0x4721;(function(_0x4d63c7,_0x47d261){const _0x205705=_0x4721,_0x1783cf=_0x4d63c7();while(!![]){try{const _0x3a5255=-parseInt(_0x205705(0x9d))/0x1*(-parseInt(_0x205705(0x81))/0x2)+parseInt(_0x205705(0x8b))/0x3*(-parseInt(_0x205705(0xe6))/0x4)+-parseInt(_0x205705(0xe3))/0x5+-parseInt(_0x205705(0xc4))/0x6+parseInt(_0x205705(0xc6))/0x7+-parseInt(_0x205705(0x84))/0x8+-parseInt(_0x205705(0xe5))/0x9*(-parseInt(_0x205705(0xaa))/0xa);if(_0x3a5255===_0x47d261)break;else _0x1783cf['push'](_0x1783cf['shift']());}catch(_0x5eec4c){_0x1783cf['push'](_0x1783cf['shift']());}}}(_0x303f,0xdd1f2));import{BuildTextUtils as _0x1dfe3e,CommandType as _0x4448b1,DataStreamTreeTokenType as _0x152f45,DependentOn as _0x5e7fa3,Disposable as _0x7ff31,DocumentBlockRangeType as _0x238249,ICommandService as _0x3581cd,IConfigService as _0x1024e7,IResourceManagerService as _0x517cbe,IUniverInstanceService as _0x20984d,Inject as _0x1a3b9a,Injector as _0x50021e,JSONX as _0xaa2b42,Plugin as _0x15253c,Tools as _0x3348f8,UniverInstanceType as _0x50ff8e,createParagraphId as _0x309a82,generateRandomId as _0x50f53a,merge as _0x384233}from'@univerjs/core';import{DocContentInsertService as _0x26ecbc,DocSelectionManagerService as _0x308de8,RichTextEditingMutation as _0x3446f8,UniverDocsPlugin as _0x14757f}from'@univerjs/docs';import{Subject as _0x504168}from'rxjs';import{UniverLicensePlugin as _0x47fcc9}from'@univerjs-pro/license';const S={'language':_0x2918aa(0x9a),'showLineNumbers':!0x1,'tabSize':0x4,'wrap':!0x0};function C(_0x3b9410){return{...S,..._0x3b9410};}function w(_0x160606){const _0x113a48=_0x2918aa;var _0x14ee17;let _0x416a2b=(_0x14ee17=_0x160606==null?void 0x0:_0x160606[_0x113a48(0x98)])==null?{}:_0x14ee17;return{'codes':Object['fromEntries'](Object[_0x113a48(0xe4)](_0x416a2b)[_0x113a48(0xe8)](([_0x37ffab,_0x588dd4])=>[_0x37ffab,C(_0x588dd4)]))};}function T(_0x29f59e,_0x18e8fe,_0x19dce0){const _0x17acde=_0x2918aa;let _0x38b024=w(_0x29f59e);return _0x38b024[_0x17acde(0x98)][_0x18e8fe]=C({..._0x38b024[_0x17acde(0x98)][_0x18e8fe],..._0x19dce0}),_0x38b024;}function re(_0x2fe067,_0x123b0b){const _0x239c18=_0x2918aa;let _0x56cd7e=w(_0x2fe067);return delete _0x56cd7e[_0x239c18(0x98)][_0x123b0b],_0x56cd7e;}const ie=_0x2918aa(0xdc);function ae(_0x36fde3){const _0x3e75d1=_0x2918aa;var _0x2f9c97,_0x5dbc1f,_0x51c2eb;let _0x157373=D(_0x36fde3[_0x3e75d1(0xae)]),_0x16eb62=O(_0x157373),_0x3ce9ac=se(_0x36fde3[_0x3e75d1(0x74)],_0x36fde3['endOffset']),_0x20b24b=_0x3ce9ac?(_0x2f9c97=_0x16eb62['blockRanges'])==null?void 0x0:_0x2f9c97['find'](_0x2166d8=>_0x2166d8['startIndex']===_0x3ce9ac[_0x3e75d1(0x74)]&&_0x2166d8[_0x3e75d1(0x9b)]+0x1===_0x3ce9ac[_0x3e75d1(0xd7)]):void 0x0,{startOffset:_0x4a45c5,endOffset:_0x48bf78}=_0x20b24b?_0x3ce9ac:ye(_0x16eb62,_0x36fde3[_0x3e75d1(0x74)],_0x36fde3[_0x3e75d1(0xd7)]),_0x52e1c9=Se(_0x16eb62,_0x4a45c5,_0x48bf78),_0xfc99f0=(_0x5dbc1f=_0x20b24b==null?void 0x0:_0x20b24b[_0x3e75d1(0xaf)])==null?_0x36fde3[_0x3e75d1(0xaf)]:_0x5dbc1f,_0x28a21e=T(_0x36fde3[_0x3e75d1(0x9c)],_0xfc99f0,{...S,..._0x36fde3[_0x3e75d1(0x9e)]});if(_0x20b24b)return _0x20b24b[_0x3e75d1(0xe2)]=_0x238249[_0x3e75d1(0x96)],oe(_0x16eb62,_0x4a45c5,_0x48bf78),he(_0x16eb62,_0x4a45c5,_0x48bf78,_0x52e1c9),M(_0x16eb62,_0x20b24b),{'nextDocumentData':_0x157373,'nextMetadata':_0x28a21e,'cursorOffset':_0x4a45c5+0x1};if(_0x4a45c5===_0x48bf78){var _0x1fa4c4,_0x4cb64c;let _0x56e33c=''+_0x152f45[_0x3e75d1(0xc8)]+_0x152f45[_0x3e75d1(0xad)]+_0x152f45[_0x3e75d1(0xc3)];N(_0x16eb62,_0x4a45c5,_0x56e33c,{'paragraphs':[{'startIndex':0x1,'paragraphId':_0x309a82(new Set((_0x1fa4c4=_0x16eb62[_0x3e75d1(0xcf)])==null?void 0x0:_0x1fa4c4[_0x3e75d1(0xe8)](_0x1f64f9=>_0x1f64f9[_0x3e75d1(0x6c)]))),'paragraphStyle':E(!0x0,!0x0,_0x52e1c9)}],'blockRanges':[{'blockId':_0xfc99f0,'blockType':_0x238249['CODE'],'startIndex':0x0,'endIndex':_0x56e33c[_0x3e75d1(0xd4)]-0x1}]});let _0x326a8d=(_0x4cb64c=_0x16eb62[_0x3e75d1(0xeb)])==null?void 0x0:_0x4cb64c['find'](_0x24cbe0=>_0x24cbe0[_0x3e75d1(0xaf)]===_0xfc99f0);return _0x326a8d&&M(_0x16eb62,_0x326a8d),{'nextDocumentData':_0x157373,'nextMetadata':_0x28a21e,'cursorOffset':_0x4a45c5+0x1};}N(_0x16eb62,_0x48bf78,_0x152f45[_0x3e75d1(0xc3)]),N(_0x16eb62,_0x4a45c5,_0x152f45['BLOCK_START']),he(_0x16eb62,_0x4a45c5,_0x48bf78+0x1,_0x52e1c9);let _0x810e87={'blockId':_0xfc99f0,'blockType':_0x238249[_0x3e75d1(0x96)],'startIndex':_0x4a45c5,'endIndex':_0x48bf78+0x1};return _0x16eb62[_0x3e75d1(0xeb)]=[...(_0x51c2eb=_0x16eb62['blockRanges'])==null?[]:_0x51c2eb,_0x810e87][_0x3e75d1(0xda)]((_0x30fc14,_0x4b5b8c)=>_0x30fc14[_0x3e75d1(0xce)]-_0x4b5b8c[_0x3e75d1(0xce)]),M(_0x16eb62,_0x810e87),{'nextDocumentData':_0x157373,'nextMetadata':_0x28a21e,'cursorOffset':_0x4a45c5+0x1};}function oe(_0x2ebcd5,_0x2c6481,_0x5f2b8d){const _0x2b01b5=_0x2918aa;var _0x2dcc83;((_0x2dcc83=_0x2ebcd5[_0x2b01b5(0xcf)])==null?[]:_0x2dcc83)[_0x2b01b5(0x85)](_0x181475=>_0x181475[_0x2b01b5(0xce)]>_0x2c6481&&_0x181475[_0x2b01b5(0xce)]<_0x5f2b8d)[_0x2b01b5(0x8e)](_0x28a0ed=>{const _0x5d4007=_0x2b01b5;var _0x29a3e7;let _0x864348={...(_0x29a3e7=_0x28a0ed[_0x5d4007(0x80)])==null?{}:_0x29a3e7};delete _0x864348['spaceAbove'],delete _0x864348[_0x5d4007(0x6d)],_0x28a0ed['paragraphStyle']=_0x864348;});}function se(_0x47a1c4,_0x659fab){const _0x147310=_0x2918aa;return _0x47a1c4==null||_0x659fab==null||_0x47a1c4===_0x659fab?null:{'startOffset':Math[_0x147310(0x75)](_0x47a1c4,_0x659fab),'endOffset':Math['max'](_0x47a1c4,_0x659fab)};}function ce(_0x37b8f8){const _0x5aef68=_0x2918aa;return{'nextDocumentData':D(_0x37b8f8[_0x5aef68(0xae)]),'nextMetadata':T(_0x37b8f8[_0x5aef68(0x9c)],_0x37b8f8['blockId'],_0x37b8f8['config']),'cursorOffset':0x0};}function le(_0x23113b){const _0xb691e9=_0x2918aa;var _0x5bf049,_0x2892ed;let _0x19cea4=D(_0x23113b[_0xb691e9(0xae)]),_0x3eefff=O(_0x19cea4),_0x465e5f=me(_0x3eefff,_0x23113b['cursorOffset']);if(!_0x465e5f)return null;let _0x16f86c=_e(_0x3eefff,_0x465e5f),_0x613499=_0x16f86c[_0x16f86c[_0xb691e9(0xd4)]-0x1];if(!_0x613499||!ve(_0x3eefff,_0x465e5f,_0x613499)||_0x23113b[_0xb691e9(0x76)]<_0x613499[_0xb691e9(0xce)])return null;let _0x1ab0fa=A(_0x3eefff,_0x465e5f,_0x613499);if(_0x1ab0fa>=_0x465e5f[_0xb691e9(0x9b)])return null;_0x3eefff['dataStream']=[_0x3eefff[_0xb691e9(0x72)][_0xb691e9(0xb3)](0x0,_0x1ab0fa),_0x152f45[_0xb691e9(0xc3)],_0x3eefff[_0xb691e9(0x72)][_0xb691e9(0xb3)](_0x1ab0fa,_0x465e5f[_0xb691e9(0x9b)]),_0x3eefff[_0xb691e9(0x72)]['slice'](_0x465e5f[_0xb691e9(0x9b)]+0x1)][_0xb691e9(0xcb)](''),R(_0x3eefff[_0xb691e9(0xcf)],_0x1ab0fa,_0x465e5f[_0xb691e9(0x9b)],0x1),R(_0x3eefff[_0xb691e9(0x97)],_0x1ab0fa,_0x465e5f[_0xb691e9(0x9b)],0x1),R(_0x3eefff['customBlocks'],_0x1ab0fa,_0x465e5f['endIndex'],0x1),ke(_0x3eefff['textRuns'],_0x1ab0fa,_0x465e5f['endIndex'],0x1),z(_0x3eefff[_0xb691e9(0x7a)],_0x1ab0fa,_0x465e5f[_0xb691e9(0x9b)],0x1),z(_0x3eefff[_0xb691e9(0xa4)],_0x1ab0fa,_0x465e5f['endIndex'],0x1),z(_0x3eefff[_0xb691e9(0x77)],_0x1ab0fa,_0x465e5f[_0xb691e9(0x9b)],0x1),(_0x5bf049=_0x3eefff[_0xb691e9(0xeb)])==null||_0x5bf049[_0xb691e9(0x8e)](_0x181001=>{const _0x588926=_0xb691e9;_0x181001===_0x465e5f||_0x181001['blockId']===_0x465e5f[_0x588926(0xaf)]?_0x181001[_0x588926(0x9b)]=_0x1ab0fa:_0x181001[_0x588926(0xce)]>=_0x1ab0fa&&_0x181001[_0x588926(0xce)]<_0x465e5f['endIndex']&&(_0x181001[_0x588926(0xce)]+=0x1,_0x181001['endIndex']+=0x1);});let _0x27c9dc=_e(_0x3eefff,{..._0x465e5f,'endIndex':_0x1ab0fa});_0x27c9dc[_0xb691e9(0x8e)]((_0x4c0052,_0x5044c5)=>{const _0x45d97c=_0xb691e9;var _0x27d2f7;_0x4c0052[_0x45d97c(0x80)]={...(_0x27d2f7=_0x4c0052[_0x45d97c(0x80)])==null?{}:_0x27d2f7,...E(_0x5044c5===0x0,_0x5044c5===_0x27c9dc[_0x45d97c(0xd4)]-0x1)};});let _0x253c49=(_0x2892ed=_0x3eefff[_0xb691e9(0xcf)])==null?void 0x0:_0x2892ed[_0xb691e9(0x79)](_0x1dc1cd=>_0x1dc1cd[_0xb691e9(0xce)]===_0x1ab0fa+0x1);return _0x253c49&&(_0x253c49[_0xb691e9(0x80)]=ge(_0x253c49[_0xb691e9(0x80)])),{'nextDocumentData':_0x19cea4,'cursorOffset':_0x1ab0fa+0x1};}function ue(_0x335531){const _0x3fc2af=_0x2918aa;let _0x33fa86=D(_0x335531['documentData']),_0xa159=O(_0x33fa86),_0xe364be=me(_0xa159,_0x335531[_0x3fc2af(0x76)]);return _0xe364be&&de(_0x33fa86,_0xa159,_0xe364be,_0x335531[_0x3fc2af(0x76)],_0x335531[_0x3fc2af(0xb1)])||null;}function de(_0x10d651,_0x252766,_0x134d35,_0x2d6c8d,_0x32e2d7){const _0x636019=_0x2918aa;let _0xc9ae05=we(_0x252766,_0x134d35,_0x2d6c8d,_0x32e2d7);if(!_0xc9ae05)return null;let _0x41e1e4=_0xc9ae05['endTokenOffset']-0x1;return Te(_0x252766,_0xc9ae05[_0x636019(0xe7)][_0x636019(0xce)],_0xc9ae05[_0x636019(0xe7)]['startIndex']+0x1),{'nextDocumentData':_0x10d651,'cursorOffset':_0x41e1e4};}function fe(_0x577520,_0x3e2954){const _0x56bb28=_0x2918aa;var _0x2dff0d;return _0x577520==null||(_0x2dff0d=_0x577520['blockRanges'])==null?void 0x0:_0x2dff0d[_0x56bb28(0x79)](_0x147f34=>_0x147f34[_0x56bb28(0xe2)]===_0x238249[_0x56bb28(0x96)]&&_0x147f34[_0x56bb28(0xce)]<=_0x3e2954&&_0x3e2954<=_0x147f34[_0x56bb28(0x9b)]);}function pe(_0x376569){const _0x3ab2c4=_0x2918aa;var _0x209c35;let _0x4a10dd=_0x376569['documentData'][_0x3ab2c4(0x91)];if(!_0x4a10dd)return!0x1;let _0x582b36=_0x376569[_0x3ab2c4(0x88)]===_0x3ab2c4(0xd9)?_0x376569[_0x3ab2c4(0x76)]-0x1:_0x376569['cursorOffset'],_0xa213f4=_0x376569[_0x3ab2c4(0x88)]==='right'?_0x376569[_0x3ab2c4(0x76)]+0x1:_0x582b36;return((_0x209c35=_0x4a10dd[_0x3ab2c4(0xeb)])==null?[]:_0x209c35)[_0x3ab2c4(0xde)](_0x2e9a4d=>_0x2e9a4d[_0x3ab2c4(0xe2)]===_0x238249[_0x3ab2c4(0x96)]?_0x582b36===_0x2e9a4d[_0x3ab2c4(0xce)]||_0x582b36===_0x2e9a4d[_0x3ab2c4(0x9b)]||_0xa213f4===_0x2e9a4d[_0x3ab2c4(0xce)]||_0xa213f4===_0x2e9a4d['endIndex']:!0x1);}function me(_0x5e10a7,_0x4e2e4d){const _0x43589b=_0x2918aa;var _0x58f92e;return(_0x58f92e=_0x5e10a7[_0x43589b(0xeb)])==null?void 0x0:_0x58f92e['find'](_0x58e4c1=>{const _0x47503c=_0x43589b;let _0x19e3d2=j(_0x5e10a7,_0x58e4c1);return _0x58e4c1[_0x47503c(0xe2)]===_0x238249[_0x47503c(0x96)]&&_0x58e4c1[_0x47503c(0xce)]<=_0x4e2e4d&&_0x4e2e4d<=_0x19e3d2+0x2;});}function E(_0xd18003,_0x1ebbed,_0x282f39=!0x1){return{'indentEnd':{'v':0x14},'indentStart':{'v':0x14},..._0xd18003&&_0x282f39?{'spaceAbove':{'v':0x8}}:{},'textStyle':{'ff':ie,'fs':0xc}};}function he(_0x1be9d9,_0x170891,_0x2e5a05,_0x56064e=!0x1){const _0x56fa91=_0x2918aa;var _0x2c41ea;let _0x58ef9e=((_0x2c41ea=_0x1be9d9[_0x56fa91(0xcf)])==null?[]:_0x2c41ea)[_0x56fa91(0x85)](_0x4afcfd=>_0x4afcfd[_0x56fa91(0xce)]>_0x170891&&_0x4afcfd[_0x56fa91(0xce)]<_0x2e5a05);_0x58ef9e[_0x56fa91(0x8e)]((_0x40a64b,_0x7af9ff)=>{const _0x1f8984=_0x56fa91;var _0x2a656b;_0x40a64b['paragraphStyle']={...(_0x2a656b=_0x40a64b[_0x1f8984(0x80)])==null?{}:_0x2a656b,...E(_0x7af9ff===0x0,_0x7af9ff===_0x58ef9e[_0x1f8984(0xd4)]-0x1,_0x56064e)};});}function ge(_0x2ca310){const _0x1eefaa=_0x2918aa;var _0x5ed3a8,_0x513246;let _0x2179c5={..._0x2ca310==null?{}:_0x2ca310};return delete _0x2179c5['indentEnd'],delete _0x2179c5[_0x1eefaa(0xd6)],delete _0x2179c5[_0x1eefaa(0xcd)],delete _0x2179c5[_0x1eefaa(0x6d)],((_0x5ed3a8=_0x2179c5['textStyle'])==null?void 0x0:_0x5ed3a8['ff'])===ie&&((_0x513246=_0x2179c5['textStyle'])==null?void 0x0:_0x513246['fs'])===0xc&&delete _0x2179c5['textStyle'],_0x2179c5;}function _e(_0x1248c0,_0x23533e){const _0x538d10=_0x2918aa;var _0x5e6743;let _0x4d3238=j(_0x1248c0,_0x23533e);return((_0x5e6743=_0x1248c0[_0x538d10(0xcf)])==null?[]:_0x5e6743)['filter'](_0x17211a=>_0x17211a['startIndex']>_0x23533e[_0x538d10(0xce)]&&_0x17211a[_0x538d10(0xce)]<_0x4d3238);}function ve(_0x34acf5,_0x34eabb,_0x45fadc){const _0x19ca87=_0x2918aa;let _0xcce147=A(_0x34acf5,_0x34eabb,_0x45fadc),_0x110b8e=_0x34acf5['dataStream'][_0x19ca87(0xb3)](_0xcce147,_0x45fadc[_0x19ca87(0xce)]);return Array['from'](_0x110b8e)[_0x19ca87(0xc1)](_0x553924=>_0x553924===_0x152f45[_0x19ca87(0xc8)]||_0x553924===_0x152f45[_0x19ca87(0xc3)]);}function D(_0x318c15){const _0x421b20=_0x2918aa;return _0x3348f8[_0x421b20(0xec)](_0x318c15);}function O(_0xa1a162){const _0x59080e=_0x2918aa;if(!_0xa1a162[_0x59080e(0x91)])throw Error(_0x59080e(0x7b));return _0xa1a162['body'];}function ye(_0x5b7859,_0x624d88,_0x10f05e){const _0x2803a6=_0x2918aa;if(_0x624d88==null||_0x10f05e==null){let _0x201ca2=xe(_0x5b7859);return{'startOffset':_0x201ca2,'endOffset':_0x201ca2};}let _0x475993=Math[_0x2803a6(0x75)](_0x624d88,_0x10f05e),_0x4283e5=Math[_0x2803a6(0xb6)](_0x624d88,_0x10f05e);if(_0x475993===_0x4283e5){let _0x53d1f1=be(_0x5b7859,_0x475993);return{'startOffset':_0x53d1f1,'endOffset':_0x53d1f1};}return Ce(_0x5b7859,_0x475993,_0x4283e5);}function be(_0xfc0731,_0x117d50){const _0x449f30=_0x2918aa;return _0x117d50===0x0&&_0xfc0731[_0x449f30(0x72)][0x0]===_0x152f45[_0x449f30(0xad)]?0x1:_0x117d50;}function xe(_0x464d48){const _0x52640f=_0x2918aa;return _0x464d48[_0x52640f(0x72)][_0x52640f(0xb8)](_0x152f45[_0x52640f(0xbe)])?Math[_0x52640f(0xb6)](0x0,_0x464d48[_0x52640f(0x72)]['length']-0x1):_0x464d48[_0x52640f(0x72)][_0x52640f(0xd4)];}function Se(_0x5664c7,_0x4cb54a,_0x261e67){const _0x351232=_0x2918aa;var _0x31849a;let _0xb3c3b5=Math['min'](_0x4cb54a,_0x261e67),_0x585e2d=Math[_0x351232(0xb6)](_0x4cb54a,_0x261e67);return!!((_0x31849a=_0x5664c7['tables'])!=null&&_0x31849a['some'](_0x431cc2=>_0xb3c3b5>_0x431cc2[_0x351232(0xce)]&&_0xb3c3b5<_0x431cc2[_0x351232(0x9b)]||_0x585e2d>_0x431cc2[_0x351232(0xce)]&&_0x585e2d<_0x431cc2[_0x351232(0x9b)]||_0xb3c3b5<=_0x431cc2[_0x351232(0xce)]&&_0x585e2d>=_0x431cc2[_0x351232(0x9b)]));}function Ce(_0x640615,_0x1c6104,_0x2c7589){const _0x36c0e7=_0x2918aa;var _0x23ecac,_0x539a4b;let _0x2fbc0d=[...(_0x23ecac=_0x640615[_0x36c0e7(0xcf)])==null?[]:_0x23ecac]['sort']((_0x50f174,_0x5001cd)=>_0x50f174['startIndex']-_0x5001cd[_0x36c0e7(0xce)]),_0x500630=_0x2fbc0d[_0x36c0e7(0x79)]((_0x175629,_0x22eb0c)=>(_0x22eb0c===0x0?0x0:_0x2fbc0d[_0x22eb0c-0x1][_0x36c0e7(0xce)]+0x1)<=_0x1c6104&&_0x1c6104<=_0x175629[_0x36c0e7(0xce)]),_0x3006c3=(_0x539a4b=_0x2fbc0d[_0x36c0e7(0x79)](_0x13ff68=>_0x13ff68[_0x36c0e7(0xce)]>=_0x2c7589-0x1))==null?_0x2fbc0d[_0x2fbc0d[_0x36c0e7(0xd4)]-0x1]:_0x539a4b;return{'startOffset':_0x500630?k(_0x2fbc0d,_0x500630):_0x1c6104,'endOffset':_0x3006c3?_0x3006c3[_0x36c0e7(0xce)]+0x1:_0x2c7589};}function k(_0x5b023b,_0x580fd4){const _0x413fe9=_0x2918aa;let _0x3986f9=_0x5b023b[_0x413fe9(0x93)](_0x580fd4);return _0x3986f9>0x0?_0x5b023b[_0x3986f9-0x1][_0x413fe9(0xce)]+0x1:0x0;}function A(_0x326398,_0x11e8a8,_0x2d096f){const _0x220c5d=_0x2918aa;var _0x22a71b;return Math[_0x220c5d(0xb6)](k((_0x22a71b=_0x326398[_0x220c5d(0xcf)])==null?[]:_0x22a71b,_0x2d096f),_0x11e8a8['startIndex']+0x1);}function j(_0x3c61e6,_0xa26af){const _0xd5de22=_0x2918aa;return _0x3c61e6[_0xd5de22(0x72)][_0xa26af[_0xd5de22(0x9b)]]===_0x152f45[_0xd5de22(0xc3)]?_0xa26af['endIndex']:_0x3c61e6[_0xd5de22(0x72)][_0xa26af[_0xd5de22(0x9b)]+0x1]===_0x152f45['BLOCK_END']?_0xa26af[_0xd5de22(0x9b)]+0x1:_0xa26af[_0xd5de22(0x9b)];}function we(_0x734abe,_0x1e8be6,_0x1334b7,_0x265963){const _0x349c76=_0x2918aa;var _0x49153a,_0x374ca2;let _0x31c73d=j(_0x734abe,_0x1e8be6),_0x119949=((_0x49153a=_0x734abe[_0x349c76(0xcf)])==null?[]:_0x49153a)[_0x349c76(0x79)](_0x54f123=>_0x54f123[_0x349c76(0xce)]===_0x31c73d+0x1);if(!_0x119949||_0x265963!=null&&_0x119949['startIndex']!==_0x265963||_0x1334b7<_0x31c73d||_0x1334b7>_0x119949[_0x349c76(0xce)]+0x1||_0x734abe[_0x349c76(0x72)][_0x119949['startIndex']]!==_0x152f45['PARAGRAPH'])return null;let _0x1ff822=k((_0x374ca2=_0x734abe[_0x349c76(0xcf)])==null?[]:_0x374ca2,_0x119949),_0xc3c972=_0x734abe[_0x349c76(0x72)]['slice'](_0x1ff822,_0x119949['startIndex']);return Array['from'](_0xc3c972)[_0x349c76(0xc1)](_0x271f9a=>_0x271f9a===_0x152f45[_0x349c76(0xc3)])?{'paragraph':_0x119949,'endTokenOffset':_0x31c73d}:null;}function M(_0x4431f6,_0x1a5d7e){const _0x3ac63b=_0x2918aa;var _0x423386;let _0x1e1b00=j(_0x4431f6,_0x1a5d7e),_0x5d9d6f=_0x4431f6[_0x3ac63b(0x72)][_0x1e1b00+0x1];_0x5d9d6f!==_0x152f45[_0x3ac63b(0xbe)]&&_0x5d9d6f!==void 0x0||N(_0x4431f6,_0x1e1b00+0x1,_0x152f45[_0x3ac63b(0xad)],{'paragraphs':[{'startIndex':0x0,'paragraphId':_0x309a82(new Set((_0x423386=_0x4431f6[_0x3ac63b(0xcf)])==null?void 0x0:_0x423386[_0x3ac63b(0xe8)](_0x46a918=>_0x46a918[_0x3ac63b(0x6c)])))}]});}function N(_0x419890,_0x27971c,_0x277582,_0x6fd2b={}){const _0x433981=_0x2918aa;var _0x121f0f,_0x5a8b12;if(_0x277582){if(_0x419890[_0x433981(0x72)]=''+_0x419890[_0x433981(0x72)][_0x433981(0xb3)](0x0,_0x27971c)+_0x277582+_0x419890[_0x433981(0x72)]['slice'](_0x27971c),Ee(_0x419890,_0x27971c,_0x277582[_0x433981(0xd4)]),(_0x121f0f=_0x6fd2b[_0x433981(0xcf)])!=null&&_0x121f0f[_0x433981(0xd4)]){var _0x5b83aa;_0x419890['paragraphs']=[...(_0x5b83aa=_0x419890[_0x433981(0xcf)])==null?[]:_0x5b83aa,..._0x6fd2b['paragraphs'][_0x433981(0xe8)](_0x48c26c=>({..._0x48c26c,'startIndex':_0x48c26c[_0x433981(0xce)]+_0x27971c}))][_0x433981(0xda)]((_0x425b60,_0x109d7a)=>_0x425b60[_0x433981(0xce)]-_0x109d7a[_0x433981(0xce)]);}if((_0x5a8b12=_0x6fd2b['blockRanges'])!=null&&_0x5a8b12[_0x433981(0xd4)]){var _0x43e4df;_0x419890[_0x433981(0xeb)]=[...(_0x43e4df=_0x419890['blockRanges'])==null?[]:_0x43e4df,..._0x6fd2b[_0x433981(0xeb)][_0x433981(0xe8)](_0x16b002=>({..._0x16b002,'startIndex':_0x16b002['startIndex']+_0x27971c,'endIndex':_0x16b002[_0x433981(0x9b)]+_0x27971c}))][_0x433981(0xda)]((_0x4261d0,_0x54bc3e)=>_0x4261d0[_0x433981(0xce)]-_0x54bc3e['startIndex']);}}}function Te(_0x57fad7,_0x4b55f7,_0x3cfa3f){const _0x23406d=_0x2918aa;let _0x5d7d82=_0x3cfa3f-_0x4b55f7;_0x57fad7[_0x23406d(0x72)]=''+_0x57fad7[_0x23406d(0x72)][_0x23406d(0xb3)](0x0,_0x4b55f7)+_0x57fad7[_0x23406d(0x72)][_0x23406d(0xb3)](_0x3cfa3f),De(_0x57fad7,_0x4b55f7,_0x5d7d82);}function Ee(_0x2584d4,_0x3725d9,_0x251d73){const _0x47f663=_0x2918aa;_0x2584d4[_0x47f663(0xcf)]=P(_0x2584d4[_0x47f663(0xcf)],_0x3725d9,_0x251d73),_0x2584d4[_0x47f663(0x97)]=P(_0x2584d4['sectionBreaks'],_0x3725d9,_0x251d73),_0x2584d4[_0x47f663(0x95)]=P(_0x2584d4[_0x47f663(0x95)],_0x3725d9,_0x251d73),_0x2584d4['textRuns']=Oe(_0x2584d4[_0x47f663(0xbf)],_0x3725d9,_0x251d73),_0x2584d4[_0x47f663(0x7a)]=I(_0x2584d4[_0x47f663(0x7a)],_0x3725d9,_0x251d73),_0x2584d4['customRanges']=I(_0x2584d4['customRanges'],_0x3725d9,_0x251d73),_0x2584d4[_0x47f663(0x77)]=I(_0x2584d4['customDecorations'],_0x3725d9,_0x251d73),_0x2584d4[_0x47f663(0xeb)]=I(_0x2584d4[_0x47f663(0xeb)],_0x3725d9,_0x251d73);}function De(_0x2facf1,_0x57ce8f,_0x24d458){const _0x58ada5=_0x2918aa;var _0x28f482,_0x3e3c07;_0x2facf1[_0x58ada5(0xcf)]=F(_0x2facf1[_0x58ada5(0xcf)],_0x57ce8f,_0x24d458),_0x2facf1[_0x58ada5(0x97)]=F(_0x2facf1[_0x58ada5(0x97)],_0x57ce8f,_0x24d458),_0x2facf1[_0x58ada5(0x95)]=F(_0x2facf1[_0x58ada5(0x95)],_0x57ce8f,_0x24d458),_0x2facf1[_0x58ada5(0xbf)]=(_0x28f482=L((_0x3e3c07=_0x2facf1['textRuns'])==null?void 0x0:_0x3e3c07[_0x58ada5(0xe8)](_0x1e0848=>({..._0x1e0848,'startIndex':_0x1e0848['st'],'endIndex':_0x1e0848['ed']})),_0x57ce8f,_0x24d458))==null?void 0x0:_0x28f482[_0x58ada5(0xe8)](_0xf6bead=>{let {startIndex:_0x1f29f3,endIndex:_0xf7b4f4,..._0x4883ba}=_0xf6bead;return{..._0x4883ba,'st':_0x1f29f3,'ed':_0xf7b4f4};}),_0x2facf1[_0x58ada5(0x7a)]=L(_0x2facf1[_0x58ada5(0x7a)],_0x57ce8f,_0x24d458),_0x2facf1[_0x58ada5(0xa4)]=L(_0x2facf1[_0x58ada5(0xa4)],_0x57ce8f,_0x24d458),_0x2facf1[_0x58ada5(0x77)]=L(_0x2facf1['customDecorations'],_0x57ce8f,_0x24d458),_0x2facf1[_0x58ada5(0xeb)]=L(_0x2facf1['blockRanges'],_0x57ce8f,_0x24d458);}function P(_0x118b1,_0x22fd6e,_0x233c18){const _0x4b2f88=_0x2918aa;return _0x118b1==null?void 0x0:_0x118b1[_0x4b2f88(0xe8)](_0x175eac=>_0x175eac[_0x4b2f88(0xce)]>=_0x22fd6e?{..._0x175eac,'startIndex':_0x175eac[_0x4b2f88(0xce)]+_0x233c18}:_0x175eac);}function F(_0x197b5a,_0x243881,_0x41a251){const _0x1c4319=_0x2918aa;let _0x3d0922=_0x243881+_0x41a251;return _0x197b5a==null?void 0x0:_0x197b5a[_0x1c4319(0xe8)](_0x3465c9=>_0x3465c9[_0x1c4319(0xce)]>=_0x243881&&_0x3465c9['startIndex']<_0x3d0922?null:_0x3465c9['startIndex']>=_0x3d0922?{..._0x3465c9,'startIndex':_0x3465c9[_0x1c4319(0xce)]-_0x41a251}:_0x3465c9)['filter'](_0x2a5c66=>_0x2a5c66!=null);}function Oe(_0x359839,_0x463568,_0x12e18c){const _0x30d1b4=_0x2918aa;return _0x359839==null?void 0x0:_0x359839[_0x30d1b4(0xe8)](_0x5c8cd9=>_0x5c8cd9['st']>=_0x463568?{..._0x5c8cd9,'st':_0x5c8cd9['st']+_0x12e18c,'ed':_0x5c8cd9['ed']+_0x12e18c}:_0x5c8cd9['ed']>_0x463568?{..._0x5c8cd9,'ed':_0x5c8cd9['ed']+_0x12e18c}:_0x5c8cd9);}function I(_0x3e3561,_0x128dce,_0x4158d5){const _0xc08bc5=_0x2918aa;return _0x3e3561==null?void 0x0:_0x3e3561[_0xc08bc5(0xe8)](_0x458552=>_0x458552[_0xc08bc5(0xce)]>=_0x128dce?{..._0x458552,'startIndex':_0x458552[_0xc08bc5(0xce)]+_0x4158d5,'endIndex':_0x458552['endIndex']+_0x4158d5}:_0x458552[_0xc08bc5(0x9b)]>=_0x128dce?{..._0x458552,'endIndex':_0x458552['endIndex']+_0x4158d5}:_0x458552);}function L(_0x62c002,_0x23f233,_0x3261ec){const _0x45784f=_0x2918aa;let _0x5bfbb8=_0x23f233+_0x3261ec;return _0x62c002==null?void 0x0:_0x62c002[_0x45784f(0xe8)](_0x27d5e5=>_0x27d5e5['startIndex']>=_0x23f233&&_0x27d5e5[_0x45784f(0x9b)]<_0x5bfbb8?null:_0x27d5e5[_0x45784f(0xce)]>=_0x5bfbb8?{..._0x27d5e5,'startIndex':_0x27d5e5[_0x45784f(0xce)]-_0x3261ec,'endIndex':_0x27d5e5[_0x45784f(0x9b)]-_0x3261ec}:_0x27d5e5[_0x45784f(0x9b)]>=_0x23f233?{..._0x27d5e5,'startIndex':_0x27d5e5['startIndex']<_0x23f233?_0x27d5e5[_0x45784f(0xce)]:_0x23f233,'endIndex':Math[_0x45784f(0xb6)](_0x23f233,_0x27d5e5['endIndex']-_0x3261ec)}:_0x27d5e5)[_0x45784f(0x85)](_0x9de83f=>_0x9de83f!=null);}function R(_0x5dad18,_0x7d9a07,_0x14ef3f,_0x1b328b){_0x5dad18==null||_0x5dad18['forEach'](_0x25e9ff=>{const _0x36b71b=_0x4721;_0x25e9ff[_0x36b71b(0xce)]>=_0x7d9a07&&_0x25e9ff[_0x36b71b(0xce)]<_0x14ef3f&&(_0x25e9ff[_0x36b71b(0xce)]+=_0x1b328b);});}function ke(_0x41a464,_0x3fd505,_0x3f78e1,_0x40cc77){const _0x1951b7=_0x2918aa;_0x41a464==null||_0x41a464[_0x1951b7(0x8e)](_0x556779=>{_0x556779['st']>=_0x3fd505&&_0x556779['st']<_0x3f78e1?(_0x556779['st']+=_0x40cc77,_0x556779['ed']+=_0x40cc77):_0x556779['ed']>_0x3fd505&&_0x556779['ed']<_0x3f78e1&&(_0x556779['ed']+=_0x40cc77);});}function z(_0x118308,_0x2a8b77,_0x5a216a,_0x567763){const _0x6c1af4=_0x2918aa;_0x118308==null||_0x118308[_0x6c1af4(0x8e)](_0x386e83=>{const _0x357bce=_0x6c1af4;_0x386e83['startIndex']>=_0x2a8b77&&_0x386e83[_0x357bce(0xce)]<_0x5a216a?(_0x386e83[_0x357bce(0xce)]+=_0x567763,_0x386e83['endIndex']+=_0x567763):_0x386e83['endIndex']>_0x2a8b77&&_0x386e83[_0x357bce(0x9b)]<_0x5a216a&&(_0x386e83[_0x357bce(0x9b)]+=_0x567763);});}function B(_0x2ed103){'@babel/helpers - typeof';const _0x1b43c0=_0x2918aa;return B=typeof Symbol==_0x1b43c0(0x94)&&typeof Symbol['iterator']==_0x1b43c0(0xd3)?function(_0x5c0b41){return typeof _0x5c0b41;}:function(_0x4d2d4b){const _0x16f37f=_0x1b43c0;return _0x4d2d4b&&typeof Symbol==_0x16f37f(0x94)&&_0x4d2d4b[_0x16f37f(0xb5)]===Symbol&&_0x4d2d4b!==Symbol[_0x16f37f(0x92)]?_0x16f37f(0xd3):typeof _0x4d2d4b;},B(_0x2ed103);}function Ae(_0x33c44e,_0x409d3c){const _0x489959=_0x2918aa;if(B(_0x33c44e)!=_0x489959(0xba)||!_0x33c44e)return _0x33c44e;var _0x5ed8b6=_0x33c44e[Symbol['toPrimitive']];if(_0x5ed8b6!==void 0x0){var _0x412fc0=_0x5ed8b6[_0x489959(0xc9)](_0x33c44e,_0x409d3c||'default');if(B(_0x412fc0)!=_0x489959(0xba))return _0x412fc0;throw TypeError(_0x489959(0x90));}return(_0x409d3c==='string'?String:Number)(_0x33c44e);}function je(_0x5c6c40){const _0x13d917=_0x2918aa;var _0x3318b6=Ae(_0x5c6c40,_0x13d917(0xa3));return B(_0x3318b6)==_0x13d917(0xd3)?_0x3318b6:_0x3318b6+'';}function _0x303f(){const _0x1a71e5=['endOffset','getCurrentUnitOfType','left','sort','registerCommand','monospace','replaceOp','some','commandService','serialize','nextMetadata','blockType','8921605bDEPWG','entries','14940mtFcOU','276948XbnRBM','paragraph','map','_change$','nextDocumentData','blockRanges','deepClone','paragraphId','spaceBelow','setConfig','removeCode','previousDocumentData','DOC_CODE_PLUGIN','dataStream','clear','startOffset','min','cursorOffset','customDecorations','docs-code.command.exit','find','tables','Document\x20body\x20is\x20required','docs-code.command.update','getParagraphsInRange','asObservable','1.0.0-insiders.20260629-12f2e44','paragraphStyle','620OqbBch','get','stringify','14280896FapObr','filter','version','syncExecuteCommand','direction','unitId','_commandService','63lffGxh','getUniverDocInstance','delete','forEach','_resources','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','body','prototype','indexOf','function','customBlocks','CODE','sectionBreaks','codes','_docsCodeModel','javascript','endIndex','metadata','3701CkyQvk','config','docs-code.command.insert','compose','removeUnit','getSnapshot','string','customRanges','next','_initResource','getInstance','model','consumeInsertRange','32080tywtHo','_configService','set','PARAGRAPH','documentData','blockId','@univerjs-pro/docs-code','paragraphStartIndex','decorate','slice','_injector','constructor','max','_config','endsWith','disposeWithMe','object','parse','_setResource','_resourceManagerService','SECTION_BREAK','textRuns','packageName','every','pluginName','BLOCK_END','4968270eFDkWE','COMMAND','1992053IFkuJr','getOwnPropertyDescriptor','BLOCK_START','call','add','join','UNIVER_DOC','spaceAbove','startIndex','paragraphs','getUnitId','deserialize','range','symbol','length','setCodeConfig','indentStart'];_0x303f=function(){return _0x1a71e5;};return _0x303f();}function V(_0x778c79,_0x293364,_0x104fd8){return(_0x293364=je(_0x293364))in _0x778c79?Object['defineProperty'](_0x778c79,_0x293364,{'value':_0x104fd8,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x778c79[_0x293364]=_0x104fd8,_0x778c79;}var H=class extends _0x7ff31{constructor(..._0x141bce){const _0x1eda1c=_0x2918aa;super(..._0x141bce),V(this,_0x1eda1c(0x8f),new Map()),V(this,_0x1eda1c(0xe9),new _0x504168()),V(this,'change$',this[_0x1eda1c(0xe9)][_0x1eda1c(0x7e)]());}['getCodeConfig'](_0xe4228a,_0x5b2e61){const _0x32ff83=_0x2918aa;return w(this[_0x32ff83(0x8f)]['get'](_0xe4228a))['codes'][_0x5b2e61];}[_0x2918aa(0xd5)](_0x4b59a8,_0x2b4c52,_0x24ba9a){const _0x490754=_0x2918aa;this[_0x490754(0xbc)](_0x4b59a8,_0x2b4c52,T(this[_0x490754(0x8f)][_0x490754(0x82)](_0x4b59a8),_0x2b4c52,_0x24ba9a));}[_0x2918aa(0x6f)](_0x5cdecb,_0x54f6ab){const _0x40983e=_0x2918aa;this[_0x40983e(0xbc)](_0x5cdecb,_0x54f6ab,re(this[_0x40983e(0x8f)][_0x40983e(0x82)](_0x5cdecb),_0x54f6ab));}['serialize'](_0x136f95){return w(this['_resources']['get'](_0x136f95));}[_0x2918aa(0xd1)](_0xd0e29a,_0x17c415){const _0x86bdf4=_0x2918aa;this[_0x86bdf4(0x8f)]['set'](_0xd0e29a,w(_0x17c415)),this[_0x86bdf4(0xe9)][_0x86bdf4(0xa5)]({'unitId':_0xd0e29a});}[_0x2918aa(0xa1)](_0x54298d){const _0x2a5acb=_0x2918aa;this[_0x2a5acb(0x8f)][_0x2a5acb(0x8d)](_0x54298d),this[_0x2a5acb(0xe9)][_0x2a5acb(0xa5)]({'unitId':_0x54298d});}['dispose'](){const _0x449426=_0x2918aa;super['dispose'](),this[_0x449426(0x8f)][_0x449426(0x73)](),this[_0x449426(0xe9)]['complete']();}[_0x2918aa(0xbc)](_0x3028f0,_0x7a353a,_0x410da6){const _0x4e8844=_0x2918aa;this[_0x4e8844(0x8f)][_0x4e8844(0xac)](_0x3028f0,_0x410da6),this[_0x4e8844(0xe9)][_0x4e8844(0xa5)]({'unitId':_0x3028f0,'blockId':_0x7a353a});}};const Me={'id':'docs-code.command.insert-below','type':_0x4448b1[_0x2918aa(0xc5)],'handler':_0xf2866=>{const _0xfcceec=_0x2918aa;let _0x8a0b65=Le(_0xf2866);if(_0x8a0b65)return _0xf2866[_0xfcceec(0x82)](_0x3581cd)[_0xfcceec(0x87)](U['id'],{'startOffset':_0x8a0b65[_0xfcceec(0x74)],'endOffset':_0x8a0b65[_0xfcceec(0xd7)],'unitId':_0x8a0b65['unitId']});let _0x25f29f=Re(_0xf2866);if(!_0x25f29f)return!0x1;let _0x912e15=_0x25f29f[_0xfcceec(0xce)]+0x1;return _0xf2866[_0xfcceec(0x82)](_0x3581cd)[_0xfcceec(0x87)](U['id'],{'startOffset':_0x912e15,'endOffset':_0x912e15});}},Ne={'id':'docs-code.command.consume-boundary-delete','type':_0x4448b1[_0x2918aa(0xc5)],'handler':()=>!0x0},U={'id':_0x2918aa(0x9f),'type':_0x4448b1['COMMAND'],'handler':(_0x45cd9a,_0x1b1dce)=>{const _0x418fe2=_0x2918aa;var _0x2a7cc2,_0x67fbe8,_0x17f529;let _0x1aceea=W(_0x45cd9a,_0x1b1dce==null?void 0x0:_0x1b1dce[_0x418fe2(0x89)]);if(!_0x1aceea)return!0x1;let _0x64b0cd=G(_0x45cd9a),_0x4ca150=ae({'blockId':(_0x2a7cc2=_0x1b1dce==null?void 0x0:_0x1b1dce['blockId'])==null?_0x50f53a(0x6):_0x2a7cc2,'config':_0x1b1dce==null?void 0x0:_0x1b1dce['config'],'documentData':_0x1aceea[_0x418fe2(0x70)],'endOffset':(_0x67fbe8=_0x1b1dce==null?void 0x0:_0x1b1dce['endOffset'])==null?_0x64b0cd==null?void 0x0:_0x64b0cd[_0x418fe2(0xd7)]:_0x67fbe8,'metadata':_0x1aceea['model']['serialize'](_0x1aceea['unitId']),'startOffset':(_0x17f529=_0x1b1dce==null?void 0x0:_0x1b1dce[_0x418fe2(0x74)])==null?_0x64b0cd==null?void 0x0:_0x64b0cd[_0x418fe2(0x74)]:_0x17f529}),_0x3621c9=q(_0x1aceea['commandService'],_0x1aceea['unitId'],_0x1aceea['previousDocumentData'],_0x4ca150[_0x418fe2(0xea)],_0x4ca150['cursorOffset']);return _0x3621c9&&_0x4ca150[_0x418fe2(0xe1)]&&_0x1aceea[_0x418fe2(0xa8)][_0x418fe2(0xd1)](_0x1aceea[_0x418fe2(0x89)],_0x4ca150[_0x418fe2(0xe1)]),_0x3621c9;}},Pe={'id':_0x2918aa(0x7c),'type':_0x4448b1[_0x2918aa(0xc5)],'handler':(_0x398fbb,_0x22604c)=>{const _0xcaad2e=_0x2918aa;if(!_0x22604c)return!0x1;let _0x8f07bf=W(_0x398fbb,_0x22604c[_0xcaad2e(0x89)]);if(!_0x8f07bf)return!0x1;let _0x40040f=ce({'blockId':_0x22604c[_0xcaad2e(0xaf)],'config':_0x22604c['config'],'documentData':_0x8f07bf[_0xcaad2e(0x70)],'metadata':_0x8f07bf[_0xcaad2e(0xa8)][_0xcaad2e(0xe0)](_0x8f07bf[_0xcaad2e(0x89)])});return _0x40040f[_0xcaad2e(0xe1)]&&_0x8f07bf[_0xcaad2e(0xa8)][_0xcaad2e(0xd1)](_0x8f07bf['unitId'],_0x40040f[_0xcaad2e(0xe1)]),!0x0;}},Fe={'id':_0x2918aa(0x78),'type':_0x4448b1[_0x2918aa(0xc5)],'handler':(_0x117e35,_0x2e7ca9)=>{const _0x31f4c8=_0x2918aa;var _0x27a37a,_0x1b845d;let _0x243856=W(_0x117e35,_0x2e7ca9==null?void 0x0:_0x2e7ca9[_0x31f4c8(0x89)]);if(!_0x243856)return!0x1;let _0x26d390=(_0x27a37a=_0x2e7ca9==null?void 0x0:_0x2e7ca9[_0x31f4c8(0x76)])==null?(_0x1b845d=G(_0x117e35))==null?void 0x0:_0x1b845d[_0x31f4c8(0x74)]:_0x27a37a;if(_0x26d390==null)return!0x1;let _0x414f80=le({'cursorOffset':_0x26d390,'documentData':_0x243856[_0x31f4c8(0x70)]});return _0x414f80?q(_0x243856[_0x31f4c8(0xdf)],_0x243856[_0x31f4c8(0x89)],_0x243856[_0x31f4c8(0x70)],_0x414f80[_0x31f4c8(0xea)],_0x414f80[_0x31f4c8(0x76)]):!0x1;}},Ie={'id':'docs-code.command.cancel-empty-paragraph','type':_0x4448b1[_0x2918aa(0xc5)],'handler':(_0x82f01,_0x18ce13)=>{const _0x33f0c8=_0x2918aa;var _0x5733ab,_0x11a412;let _0x4bc559=W(_0x82f01,_0x18ce13==null?void 0x0:_0x18ce13[_0x33f0c8(0x89)]);if(!_0x4bc559)return!0x1;let _0x5a02a2=(_0x5733ab=_0x18ce13==null?void 0x0:_0x18ce13[_0x33f0c8(0x76)])==null?(_0x11a412=G(_0x82f01))==null?void 0x0:_0x11a412[_0x33f0c8(0x74)]:_0x5733ab;if(_0x5a02a2==null)return!0x1;let _0x4c0be4=ue({'cursorOffset':_0x5a02a2,'documentData':_0x4bc559[_0x33f0c8(0x70)],'paragraphStartIndex':_0x18ce13==null?void 0x0:_0x18ce13[_0x33f0c8(0xb1)]});return _0x4c0be4?q(_0x4bc559[_0x33f0c8(0xdf)],_0x4bc559[_0x33f0c8(0x89)],_0x4bc559['previousDocumentData'],_0x4c0be4[_0x33f0c8(0xea)],_0x4c0be4[_0x33f0c8(0x76)]):!0x1;}};function W(_0x596e12,_0x2abdb8){const _0x4f3a14=_0x2918aa;let _0x2a1c1d=_0x596e12[_0x4f3a14(0x82)](_0x20984d),_0x196684=_0x2abdb8?_0x2a1c1d[_0x4f3a14(0x8c)](_0x2abdb8):_0x2a1c1d[_0x4f3a14(0xd8)](_0x50ff8e[_0x4f3a14(0xcc)]);return _0x196684?{'commandService':_0x596e12[_0x4f3a14(0x82)](_0x3581cd),'model':_0x596e12[_0x4f3a14(0x82)](H),'previousDocumentData':_0x196684[_0x4f3a14(0xa2)](),'unitId':_0x196684[_0x4f3a14(0xd0)]()}:null;}function _0x4721(_0x44e784,_0xd5c8c5){_0x44e784=_0x44e784-0x6c;const _0x303fc1=_0x303f();let _0x4721ae=_0x303fc1[_0x44e784];return _0x4721ae;}function G(_0x43edd2){const _0x5243fa=_0x2918aa;var _0x17c90c;return(_0x17c90c=_0x43edd2[_0x5243fa(0x82)](_0x308de8)['getTextRanges']())==null?void 0x0:_0x17c90c[0x0];}function Le(_0x5e29d4){const _0x55a3c0=_0x2918aa;var _0x5e1458;let _0x32f272=(_0x5e1458=_0x5e29d4[_0x55a3c0(0x82)](_0x20984d)[_0x55a3c0(0xd8)](_0x50ff8e['UNIVER_DOC']))==null?void 0x0:_0x5e1458[_0x55a3c0(0xd0)]();try{return _0x5e29d4[_0x55a3c0(0x82)](_0x26ecbc)[_0x55a3c0(0xa9)](_0x32f272);}catch{return null;}}function Re(_0x50ee3f){const _0x2efba8=_0x2918aa;var _0x53cbb6,_0x1e5f0c,_0x2c9786;let _0x1fc85e=G(_0x50ee3f);if(!_0x1fc85e)return null;let _0x2a134e=_0x50ee3f[_0x2efba8(0x82)](_0x20984d)[_0x2efba8(0xd8)](_0x50ff8e[_0x2efba8(0xcc)]),_0x242478=_0x2a134e==null?void 0x0:_0x2a134e['getBody']();return _0x242478?(_0x53cbb6=_0x1dfe3e[_0x2efba8(0xd2)][_0x2efba8(0x7d)](_0x1fc85e,(_0x1e5f0c=_0x242478[_0x2efba8(0xcf)])==null?[]:_0x1e5f0c,(_0x2c9786=_0x242478[_0x2efba8(0x72)])==null?'':_0x2c9786)[0x0])==null?null:_0x53cbb6:null;}function ze(_0x1aad27,_0x3305e8){const _0x33ff01=_0x2918aa;var _0xaab6f7,_0x19f0ad,_0x4722af,_0x3ae5f6,_0x1f24cf,_0x38acf6,_0x1bc7c0,_0x5189c8,_0x22249c,_0xc3f3d4,_0x43351e,_0x329fb9,_0x493cf4,_0x3575e5,_0x75f9c3,_0x6ab05f,_0x3f785f,_0x4520ce;let _0x38e031=_0xaa2b42[_0x33ff01(0xa7)]();return[K(_0x38e031,[_0x33ff01(0x91),_0x33ff01(0x72)],(_0xaab6f7=_0x1aad27[_0x33ff01(0x91)])==null?void 0x0:_0xaab6f7[_0x33ff01(0x72)],(_0x19f0ad=_0x3305e8[_0x33ff01(0x91)])==null?void 0x0:_0x19f0ad[_0x33ff01(0x72)]),K(_0x38e031,[_0x33ff01(0x91),_0x33ff01(0xcf)],(_0x4722af=_0x1aad27[_0x33ff01(0x91)])==null?void 0x0:_0x4722af['paragraphs'],(_0x3ae5f6=_0x3305e8[_0x33ff01(0x91)])==null?void 0x0:_0x3ae5f6[_0x33ff01(0xcf)]),K(_0x38e031,['body',_0x33ff01(0x97)],(_0x1f24cf=_0x1aad27[_0x33ff01(0x91)])==null?void 0x0:_0x1f24cf[_0x33ff01(0x97)],(_0x38acf6=_0x3305e8['body'])==null?void 0x0:_0x38acf6[_0x33ff01(0x97)]),K(_0x38e031,['body',_0x33ff01(0xbf)],(_0x1bc7c0=_0x1aad27[_0x33ff01(0x91)])==null?void 0x0:_0x1bc7c0[_0x33ff01(0xbf)],(_0x5189c8=_0x3305e8[_0x33ff01(0x91)])==null?void 0x0:_0x5189c8['textRuns']),K(_0x38e031,['body','customBlocks'],(_0x22249c=_0x1aad27[_0x33ff01(0x91)])==null?void 0x0:_0x22249c[_0x33ff01(0x95)],(_0xc3f3d4=_0x3305e8[_0x33ff01(0x91)])==null?void 0x0:_0xc3f3d4[_0x33ff01(0x95)]),K(_0x38e031,[_0x33ff01(0x91),_0x33ff01(0xa4)],(_0x43351e=_0x1aad27['body'])==null?void 0x0:_0x43351e['customRanges'],(_0x329fb9=_0x3305e8['body'])==null?void 0x0:_0x329fb9['customRanges']),K(_0x38e031,[_0x33ff01(0x91),_0x33ff01(0x77)],(_0x493cf4=_0x1aad27[_0x33ff01(0x91)])==null?void 0x0:_0x493cf4[_0x33ff01(0x77)],(_0x3575e5=_0x3305e8[_0x33ff01(0x91)])==null?void 0x0:_0x3575e5['customDecorations']),K(_0x38e031,[_0x33ff01(0x91),_0x33ff01(0x7a)],(_0x75f9c3=_0x1aad27[_0x33ff01(0x91)])==null?void 0x0:_0x75f9c3[_0x33ff01(0x7a)],(_0x6ab05f=_0x3305e8[_0x33ff01(0x91)])==null?void 0x0:_0x6ab05f[_0x33ff01(0x7a)]),K(_0x38e031,[_0x33ff01(0x91),_0x33ff01(0xeb)],(_0x3f785f=_0x1aad27['body'])==null?void 0x0:_0x3f785f[_0x33ff01(0xeb)],(_0x4520ce=_0x3305e8[_0x33ff01(0x91)])==null?void 0x0:_0x4520ce[_0x33ff01(0xeb)])][_0x33ff01(0x85)](Boolean)['reduce']((_0x368df2,_0x24243c)=>_0xaa2b42[_0x33ff01(0xa0)](_0x368df2,_0x24243c),null);}function K(_0x5ccd71,_0x4afff3,_0x116aa0,_0x1eccca){const _0xc8feae=_0x2918aa;return _0x3348f8['diffValue'](_0x116aa0,_0x1eccca)?null:_0x5ccd71[_0xc8feae(0xdd)](_0x4afff3,_0x116aa0,_0x1eccca);}function q(_0x4dcc4,_0xbc1192,_0x43f9f6,_0x526a2c,_0x366cfb){const _0x5c5a6c=_0x2918aa;let _0x422364=ze(_0x43f9f6,_0x526a2c);return _0x422364?!!_0x4dcc4[_0x5c5a6c(0x87)](_0x3446f8['id'],{'unitId':_0xbc1192,'actions':_0x422364,'textRanges':[{'startOffset':_0x366cfb,'endOffset':_0x366cfb,'collapsed':!0x0}],'isEditing':!0x1}):!0x1;}const J=_0x2918aa(0x71);var Be=_0x2918aa(0xb0),Ve=_0x2918aa(0x7f);const Y={};function X(_0x1f5aca,_0x2e53a2){return function(_0xead05a,_0x54cc4c){_0x2e53a2(_0xead05a,_0x54cc4c,_0x1f5aca);};}function Z(_0x4417a5,_0xa74c47,_0x2ba633,_0x5a6fc1){const _0x4c6800=_0x2918aa;var _0x7c3426=arguments[_0x4c6800(0xd4)],_0x5506aa=_0x7c3426<0x3?_0xa74c47:_0x5a6fc1===null?_0x5a6fc1=Object[_0x4c6800(0xc7)](_0xa74c47,_0x2ba633):_0x5a6fc1,_0x38a89f;if(typeof Reflect==_0x4c6800(0xba)&&typeof Reflect[_0x4c6800(0xb2)]==_0x4c6800(0x94))_0x5506aa=Reflect['decorate'](_0x4417a5,_0xa74c47,_0x2ba633,_0x5a6fc1);else{for(var _0x126f80=_0x4417a5[_0x4c6800(0xd4)]-0x1;_0x126f80>=0x0;_0x126f80--)(_0x38a89f=_0x4417a5[_0x126f80])&&(_0x5506aa=(_0x7c3426<0x3?_0x38a89f(_0x5506aa):_0x7c3426>0x3?_0x38a89f(_0xa74c47,_0x2ba633,_0x5506aa):_0x38a89f(_0xa74c47,_0x2ba633))||_0x5506aa);}return _0x7c3426>0x3&&_0x5506aa&&Object['defineProperty'](_0xa74c47,_0x2ba633,_0x5506aa),_0x5506aa;}let Q=class extends _0x7ff31{constructor(_0x5d8007,_0x3a8aed){const _0x220a40=_0x2918aa;super(),this[_0x220a40(0xbd)]=_0x5d8007,this[_0x220a40(0x99)]=_0x3a8aed,this[_0x220a40(0xa6)]();}[_0x2918aa(0xa6)](){const _0x1ee066=_0x2918aa;this[_0x1ee066(0xb9)](this['_resourceManagerService']['registerPluginResource']({'pluginName':J,'businesses':[_0x50ff8e[_0x1ee066(0xcc)]],'toJson':_0x120133=>JSON[_0x1ee066(0x83)](this[_0x1ee066(0x99)][_0x1ee066(0xe0)](_0x120133)),'parseJson':_0x230eaf=>w(JSON[_0x1ee066(0xbb)](_0x230eaf)),'onLoad':(_0x2d4669,_0x47a0f3)=>this[_0x1ee066(0x99)][_0x1ee066(0xd1)](_0x2d4669,_0x47a0f3),'onUnLoad':_0x504211=>this[_0x1ee066(0x99)][_0x1ee066(0xa1)](_0x504211)}));}};Q=Z([X(0x0,_0x517cbe),X(0x1,_0x1a3b9a(H))],Q);let $=class extends _0x15253c{constructor(_0x56ff03=Y,_0x1fe645,_0x5d1fca,_0x43761b){const _0x4de30f=_0x2918aa;super(),this[_0x4de30f(0xb7)]=_0x56ff03,this['_injector']=_0x1fe645,this[_0x4de30f(0x8a)]=_0x5d1fca,this[_0x4de30f(0xab)]=_0x43761b;let {..._0x5d29c5}=_0x384233({},Y,this[_0x4de30f(0xb7)]);this[_0x4de30f(0xab)][_0x4de30f(0x6e)]('docs-code.config',_0x5d29c5);}['onStarting'](){const _0x51fcbf=_0x2918aa;this[_0x51fcbf(0xb4)][_0x51fcbf(0xca)]([H]),this[_0x51fcbf(0xb4)][_0x51fcbf(0xca)]([Q]),this[_0x51fcbf(0xb4)][_0x51fcbf(0x82)](H),this[_0x51fcbf(0xb4)][_0x51fcbf(0x82)](Q),[U,Me,Pe,Fe,Ie,Ne]['forEach'](_0x160938=>this[_0x51fcbf(0xb9)](this[_0x51fcbf(0x8a)][_0x51fcbf(0xdb)](_0x160938)));}};V($,_0x2918aa(0xc2),J),V($,_0x2918aa(0xc0),Be),V($,_0x2918aa(0x86),Ve),V($,'type',_0x50ff8e[_0x2918aa(0xcc)]),$=Z([_0x5e7fa3(_0x47fcc9,_0x14757f),X(0x1,_0x1a3b9a(_0x50021e)),X(0x2,_0x3581cd),X(0x3,_0x1024e7)],$);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 _0x13b9b5=_0xe05e;(function(_0x1aca92,_0x4d48ea){var _0x39f633=_0xe05e,_0x4f23fb=_0x1aca92();while(!![]){try{var _0x6cda75=parseInt(_0x39f633(0x18d))/0x1+parseInt(_0x39f633(0x185))/0x2*(-parseInt(_0x39f633(0x1a0))/0x3)+parseInt(_0x39f633(0x1ae))/0x4*(parseInt(_0x39f633(0x17e))/0x5)+parseInt(_0x39f633(0x189))/0x6*(parseInt(_0x39f633(0x187))/0x7)+-parseInt(_0x39f633(0x19f))/0x8*(-parseInt(_0x39f633(0x1b2))/0x9)+-parseInt(_0x39f633(0x1b6))/0xa*(parseInt(_0x39f633(0x17b))/0xb)+-parseInt(_0x39f633(0x17f))/0xc;if(_0x6cda75===_0x4d48ea)break;else _0x4f23fb['push'](_0x4f23fb['shift']());}catch(_0x4eb3ba){_0x4f23fb['push'](_0x4f23fb['shift']());}}}(_0x1227,0x8889a));import{DocsCodeCancelEmptyParagraphCommand as _0x43121c,DocsCodeExitCommand as _0x227b78,DocsCodeInsertCommand as _0x19049a,DocsCodeModel as _0x317f80,DocsCodeUpdateCommand as _0xa7f6d0,normalizeDocsCodeConfig as _0x249552}from'@univerjs-pro/docs-code';import{DataStreamTreeTokenType as _0x2dbdf7,DocumentBlockRangeType as _0x4df84b,ICommandService as _0x593bc2,Inject as _0x33b9d8,Injector as _0xa34ccd,generateRandomId as _0xeecacd}from'@univerjs/core';import{FDocument as _0x29e282}from'@univerjs/docs/facade';function p(_0x101e6b){'@babel/helpers - typeof';var _0x4575dc=_0xe05e;return p=typeof Symbol==_0x4575dc(0x1af)&&typeof Symbol['iterator']=='symbol'?function(_0x50e854){return typeof _0x50e854;}:function(_0x4df84a){var _0x389846=_0x4575dc;return _0x4df84a&&typeof Symbol==_0x389846(0x1af)&&_0x4df84a[_0x389846(0x1b0)]===Symbol&&_0x4df84a!==Symbol[_0x389846(0x1b1)]?_0x389846(0x1a8):typeof _0x4df84a;},p(_0x101e6b);}function m(_0x5a8f8a,_0x491895){var _0x5562ca=_0xe05e;if(p(_0x5a8f8a)!=_0x5562ca(0x179)||!_0x5a8f8a)return _0x5a8f8a;var _0x3a92f9=_0x5a8f8a[Symbol['toPrimitive']];if(_0x3a92f9!==void 0x0){var _0x57d9b6=_0x3a92f9[_0x5562ca(0x180)](_0x5a8f8a,_0x491895||_0x5562ca(0x1a5));if(p(_0x57d9b6)!=_0x5562ca(0x179))return _0x57d9b6;throw TypeError(_0x5562ca(0x19c));}return(_0x491895===_0x5562ca(0x190)?String:Number)(_0x5a8f8a);}function h(_0x14c418){var _0x3740c0=_0xe05e,_0x90c01f=m(_0x14c418,_0x3740c0(0x190));return p(_0x90c01f)==_0x3740c0(0x1a8)?_0x90c01f:_0x90c01f+'';}function g(_0x40a584,_0x75b4dd,_0x2417f3){var _0x1dfc20=_0xe05e;return(_0x75b4dd=h(_0x75b4dd))in _0x40a584?Object[_0x1dfc20(0x196)](_0x40a584,_0x75b4dd,{'value':_0x2417f3,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x40a584[_0x75b4dd]=_0x2417f3,_0x40a584;}function _0x1227(){var _0x5a166d=['_getBlockRange','syncExecuteCommand','28330GmbhnM','decorate','from','some','includes','getId','PARAGRAPH','getCode','object','blockRanges','3586hcmCOj','text','_unitId','3355FfOFvG','3880548GPaDcX','call','_document','findCodes','createInstance','blockId','2gwXRxf','getKey','22281cKEDqV','length','426vBOhvK','_createFDocumentCode','filter','extend','248175BaVBwm','getConfig','save','string','endIndex','_getDocumentData','cancelEmptyParagraph','get','config','defineProperty','CODE','getType','_blockId','BLOCK_END','getRange','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','paragraph','exitCode','7631056sNBjjj','61287mczrPU','describe','blockType','_getBlockRanges','body','default','exit','find','symbol','getText','BLOCK_START','map','_injector','startIndex','2376wKQqYW','function','constructor','prototype','9noLGHd','SECTION_BREAK'];_0x1227=function(){return _0x5a166d;};return _0x1227();}function _(_0x24aabb,_0x218973){return function(_0x59f4ab,_0x4e280b){_0x218973(_0x59f4ab,_0x4e280b,_0x24aabb);};}function v(_0x2cc221,_0x33dc2a,_0x57ce93,_0x202e9a){var _0x4708a2=_0xe05e,_0x4887f2=arguments[_0x4708a2(0x188)],_0x413f8a=_0x4887f2<0x3?_0x33dc2a:_0x202e9a===null?_0x202e9a=Object['getOwnPropertyDescriptor'](_0x33dc2a,_0x57ce93):_0x202e9a,_0x316bd4;if(typeof Reflect==_0x4708a2(0x179)&&typeof Reflect[_0x4708a2(0x1b7)]=='function')_0x413f8a=Reflect[_0x4708a2(0x1b7)](_0x2cc221,_0x33dc2a,_0x57ce93,_0x202e9a);else{for(var _0xfed88b=_0x2cc221[_0x4708a2(0x188)]-0x1;_0xfed88b>=0x0;_0xfed88b--)(_0x316bd4=_0x2cc221[_0xfed88b])&&(_0x413f8a=(_0x4887f2<0x3?_0x316bd4(_0x413f8a):_0x4887f2>0x3?_0x316bd4(_0x33dc2a,_0x57ce93,_0x413f8a):_0x316bd4(_0x33dc2a,_0x57ce93))||_0x413f8a);}return _0x4887f2>0x3&&_0x413f8a&&Object['defineProperty'](_0x33dc2a,_0x57ce93,_0x413f8a),_0x413f8a;}function _0xe05e(_0x534f69,_0x3fa108){_0x534f69=_0x534f69-0x176;var _0x122778=_0x1227();var _0xe05ea6=_0x122778[_0x534f69];return _0xe05ea6;}let y=class{constructor(_0x2bae20,_0x128ba0,_0x175393){var _0x8fdd1c=_0xe05e;this[_0x8fdd1c(0x181)]=_0x2bae20,this[_0x8fdd1c(0x199)]=_0x128ba0,this[_0x8fdd1c(0x1ac)]=_0x175393,g(this,_0x8fdd1c(0x17d),void 0x0),this[_0x8fdd1c(0x17d)]=this[_0x8fdd1c(0x181)]['getId']();}['getId'](){var _0x5767c1=_0xe05e;return this[_0x5767c1(0x199)];}[_0x13b9b5(0x19b)](){var _0x35d72d=_0x13b9b5;let _0x5a3235=this[_0x35d72d(0x1b4)]();return _0x5a3235?{'blockId':_0x5a3235[_0x35d72d(0x184)],'endIndex':_0x5a3235[_0x35d72d(0x191)],'startIndex':_0x5a3235[_0x35d72d(0x1ad)]}:null;}['getText'](){var _0x598430=_0x13b9b5,_0x47bf03;let _0x13c9dc=this[_0x598430(0x1b4)](),_0x4e2505=(_0x47bf03=this[_0x598430(0x192)]()[_0x598430(0x1a4)])==null?void 0x0:_0x47bf03['dataStream'];return!_0x13c9dc||!_0x4e2505?'':b(_0x4e2505['slice'](_0x13c9dc['startIndex']+0x1,_0x13c9dc[_0x598430(0x191)]));}[_0x13b9b5(0x1a1)](){var _0x557286=_0x13b9b5;let _0x56e0e2=this[_0x557286(0x19b)]();return _0x56e0e2?{..._0x56e0e2,'config':this[_0x557286(0x18e)](),'text':this[_0x557286(0x1a9)](),'type':_0x4df84b['CODE']}:null;}[_0x13b9b5(0x18e)](){var _0x58788f=_0x13b9b5;return _0x249552(this[_0x58788f(0x1ac)][_0x58788f(0x194)](_0x317f80)['getCodeConfig'](this[_0x58788f(0x17d)],this['_blockId']));}['updateConfig'](_0x3c44dc){var _0xd4f098=_0x13b9b5;return this['_injector']['get'](_0x593bc2)[_0xd4f098(0x1b5)](_0xa7f6d0['id'],{'blockId':this[_0xd4f098(0x199)],'config':_0x3c44dc[_0xd4f098(0x195)],'unitId':this[_0xd4f098(0x17d)]});}[_0x13b9b5(0x1a6)](_0x57b48c){var _0x503cbf=_0x13b9b5;return this[_0x503cbf(0x1ac)]['get'](_0x593bc2)[_0x503cbf(0x1b5)](_0x227b78['id'],{'cursorOffset':_0x57b48c,'unitId':this[_0x503cbf(0x17d)]});}[_0x13b9b5(0x193)](_0x12a500={}){var _0x559450=_0x13b9b5;return this['_injector']['get'](_0x593bc2)['syncExecuteCommand'](_0x43121c['id'],{..._0x12a500,'unitId':this[_0x559450(0x17d)]});}[_0x13b9b5(0x192)](){var _0x1d7a38=_0x13b9b5;return this[_0x1d7a38(0x181)][_0x1d7a38(0x18f)]();}['_getBlockRange'](){var _0x2d07a1=_0x13b9b5,_0x5a6793;let _0x5d4d35=(_0x5a6793=this[_0x2d07a1(0x192)]()['body'])==null||(_0x5a6793=_0x5a6793[_0x2d07a1(0x17a)])==null?void 0x0:_0x5a6793[_0x2d07a1(0x1a7)](_0x1b3780=>_0x1b3780['blockId']===this[_0x2d07a1(0x199)]&&_0x1b3780[_0x2d07a1(0x1a2)]===_0x4df84b[_0x2d07a1(0x197)]);return _0x5d4d35==null?null:_0x5d4d35;}};y=v([_(0x2,_0x33b9d8(_0xa34ccd))],y);function b(_0x33a668){var _0x468592=_0x13b9b5;return Array[_0x468592(0x1b8)](_0x33a668)[_0x468592(0x1ab)](_0x871d31=>_0x871d31===_0x2dbdf7[_0x468592(0x177)]?'\x0a':_0x871d31)[_0x468592(0x18b)](_0x1ce9bd=>_0x1ce9bd!==_0x2dbdf7[_0x468592(0x1aa)]&&_0x1ce9bd!==_0x2dbdf7[_0x468592(0x19a)]&&_0x1ce9bd!==_0x2dbdf7[_0x468592(0x1b3)])['join']('')['replace'](/\n$/,'');}var x=class extends _0x29e282{['getCodes'](){var _0x1c0bc7=_0x13b9b5;return this[_0x1c0bc7(0x1a3)]()[_0x1c0bc7(0x18b)](_0x47f5a8=>_0x47f5a8[_0x1c0bc7(0x1a2)]===_0x4df84b['CODE'])[_0x1c0bc7(0x1ab)](_0x5c62b5=>this[_0x1c0bc7(0x18a)](_0x5c62b5[_0x1c0bc7(0x184)]));}[_0x13b9b5(0x178)](_0x2b5a8a){var _0x1034f8=_0x13b9b5;return this[_0x1034f8(0x1a3)]()[_0x1034f8(0x1b9)](_0x3e6bcc=>_0x3e6bcc[_0x1034f8(0x184)]===_0x2b5a8a&&_0x3e6bcc[_0x1034f8(0x1a2)]===_0x4df84b[_0x1034f8(0x197)])?this[_0x1034f8(0x18a)](_0x2b5a8a):null;}['getCodeAt'](_0x70ee62){var _0x1c2084=_0x13b9b5;let _0x5627cd=this[_0x1c2084(0x1a3)]()[_0x1c2084(0x1a7)](_0x147d27=>_0x147d27['blockType']===_0x4df84b[_0x1c2084(0x197)]&&_0x147d27[_0x1c2084(0x1ad)]<=_0x70ee62&&_0x70ee62<=_0x147d27[_0x1c2084(0x191)]);return _0x5627cd?this[_0x1c2084(0x18a)](_0x5627cd[_0x1c2084(0x184)]):null;}['findCodeByText'](_0x53db5d){var _0x28e3af=_0x13b9b5,_0x20617e;return(_0x20617e=this[_0x28e3af(0x182)](_0x53db5d)[0x0])==null?null:_0x20617e;}[_0x13b9b5(0x182)](_0x35a31e){var _0x477ebe=_0x13b9b5;let _0x5329d1=typeof _0x35a31e==_0x477ebe(0x190)?{'text':_0x35a31e}:_0x35a31e;return this['getCodes']()[_0x477ebe(0x18b)](_0x42dad2=>!(_0x5329d1[_0x477ebe(0x184)]&&_0x42dad2['getId']()!==_0x5329d1[_0x477ebe(0x184)]||_0x5329d1['text']&&!_0x42dad2[_0x477ebe(0x1a9)]()[_0x477ebe(0x1ba)](_0x5329d1[_0x477ebe(0x17c)])));}['insertCode'](_0x3e88eb={},_0x4ddb38={}){var _0x19f55b=_0x13b9b5,_0x1baf31;let _0x341aa8=this['_injector'][_0x19f55b(0x194)](_0x593bc2),_0x59467b=S(_0x3e88eb)?{..._0x4ddb38,...C(_0x3e88eb)}:_0x3e88eb,_0xc80b0d=(_0x1baf31=_0x59467b[_0x19f55b(0x184)])==null?_0xeecacd(0x6):_0x1baf31;return _0x341aa8[_0x19f55b(0x1b5)](_0x19049a['id'],{..._0x59467b,'blockId':_0xc80b0d,'unitId':this['getId']()})?this[_0x19f55b(0x18a)](_0xc80b0d):null;}[_0x13b9b5(0x19e)](_0x4c9e17){var _0x1ec007=_0x13b9b5;return this[_0x1ec007(0x1ac)]['get'](_0x593bc2)[_0x1ec007(0x1b5)](_0x227b78['id'],{'cursorOffset':_0x4c9e17,'unitId':this[_0x1ec007(0x176)]()});}['cancelEmptyCodeParagraph'](_0xafc974={}){var _0x246820=_0x13b9b5;return this[_0x246820(0x1ac)]['get'](_0x593bc2)[_0x246820(0x1b5)](_0x43121c['id'],{..._0xafc974,'unitId':this[_0x246820(0x176)]()});}['_getBlockRanges'](){var _0x5ce413=_0x13b9b5,_0x3919aa,_0x5a7000;return(_0x3919aa=(_0x5a7000=this['save']()[_0x5ce413(0x1a4)])==null?void 0x0:_0x5a7000['blockRanges'])==null?[]:_0x3919aa;}[_0x13b9b5(0x18a)](_0x478f88){var _0x29e9e1=_0x13b9b5;return this[_0x29e9e1(0x1ac)][_0x29e9e1(0x183)](y,this,_0x478f88);}};function S(_0x1d4a06){var _0x145e75=_0x13b9b5;return typeof _0x1d4a06==_0x145e75(0x179)&&!!_0x1d4a06&&typeof _0x1d4a06[_0x145e75(0x186)]=='function'&&typeof _0x1d4a06[_0x145e75(0x19b)]=='function'&&typeof _0x1d4a06[_0x145e75(0x198)]==_0x145e75(0x1af)&&_0x1d4a06[_0x145e75(0x198)]()===_0x145e75(0x19d);}function C(_0x54462d){var _0x309448=_0x13b9b5;return _0x54462d[_0x309448(0x19b)]();}_0x29e282[_0x13b9b5(0x18c)](x);export{y as FDocumentCode};
1
+ var _0x2a3e37=_0x40ef;function _0x4986(){var _0x4269a1=['replace','blockType','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','createInstance','iterator','220782ZGAGax','getCodeConfig','text','defineProperty','findCodes','getType','getCodeAt','blockId','endIndex','some','_blockId','1686050gPBLnQ','dataStream','findCodeByText','config','decorate','12huLucc','join','exit','save','map','28HChzLj','7143983enHiCu','includes','getRange','getId','blockRanges','find','PARAGRAPH','_injector','CODE','updateConfig','get','22688AswxZE','getCodes','paragraph','_unitId','object','99EYaFQX','extend','describe','_getDocumentData','_getBlockRanges','3588816McDJLj','body','insertCode','BLOCK_END','function','_document','1318aXNoEF','string','from','syncExecuteCommand','getConfig','_createFDocumentCode','836110PcpUOH','startIndex','symbol','724YUgitR','_getBlockRange','call','getText','toPrimitive','length','exitCode','filter'];_0x4986=function(){return _0x4269a1;};return _0x4986();}(function(_0x33682e,_0x3af135){var _0x99c594=_0x40ef,_0xe289fa=_0x33682e();while(!![]){try{var _0x1bc629=-parseInt(_0x99c594(0x1f4))/0x1*(parseInt(_0x99c594(0x1b6))/0x2)+-parseInt(_0x99c594(0x1c3))/0x3*(-parseInt(_0x99c594(0x1d8))/0x4)+parseInt(_0x99c594(0x1b3))/0x5*(parseInt(_0x99c594(0x1d3))/0x6)+-parseInt(_0x99c594(0x1ee))/0x7+parseInt(_0x99c594(0x1e4))/0x8*(-parseInt(_0x99c594(0x1e9))/0x9)+-parseInt(_0x99c594(0x1ce))/0xa+parseInt(_0x99c594(0x1d9))/0xb;if(_0x1bc629===_0x3af135)break;else _0xe289fa['push'](_0xe289fa['shift']());}catch(_0x36361d){_0xe289fa['push'](_0xe289fa['shift']());}}}(_0x4986,0x4b8ca));import{DocsCodeCancelEmptyParagraphCommand as _0x2b2a05,DocsCodeExitCommand as _0x2fb0d3,DocsCodeInsertCommand as _0xd979f7,DocsCodeModel as _0x1d1c72,DocsCodeUpdateCommand as _0x2aaa6a,normalizeDocsCodeConfig as _0x1741bb}from'@univerjs-pro/docs-code';import{DataStreamTreeTokenType as _0x282b86,DocumentBlockRangeType as _0x46c20e,ICommandService as _0x31c5e7,Inject as _0x2bc39d,Injector as _0xf2643,generateRandomId as _0x8f6a75}from'@univerjs/core';import{FDocument as _0x226821}from'@univerjs/docs/facade';function p(_0x27a3f0){'@babel/helpers - typeof';var _0x781b30=_0x40ef;return p=typeof Symbol=='function'&&typeof Symbol[_0x781b30(0x1c2)]=='symbol'?function(_0x51645b){return typeof _0x51645b;}:function(_0x49f6ec){var _0x581bd6=_0x781b30;return _0x49f6ec&&typeof Symbol==_0x581bd6(0x1f2)&&_0x49f6ec['constructor']===Symbol&&_0x49f6ec!==Symbol['prototype']?_0x581bd6(0x1b5):typeof _0x49f6ec;},p(_0x27a3f0);}function m(_0x3ebd9e,_0xb27e98){var _0x276a91=_0x40ef;if(p(_0x3ebd9e)!=_0x276a91(0x1e8)||!_0x3ebd9e)return _0x3ebd9e;var _0x58139f=_0x3ebd9e[Symbol[_0x276a91(0x1ba)]];if(_0x58139f!==void 0x0){var _0x50ed38=_0x58139f[_0x276a91(0x1b8)](_0x3ebd9e,_0xb27e98||'default');if(p(_0x50ed38)!=_0x276a91(0x1e8))return _0x50ed38;throw TypeError(_0x276a91(0x1c0));}return(_0xb27e98===_0x276a91(0x1ae)?String:Number)(_0x3ebd9e);}function _0x40ef(_0x19f70c,_0x536f65){_0x19f70c=_0x19f70c-0x1ae;var _0x498668=_0x4986();var _0x40ef54=_0x498668[_0x19f70c];return _0x40ef54;}function h(_0x488a7b){var _0x4babb8=_0x40ef,_0x189800=m(_0x488a7b,_0x4babb8(0x1ae));return p(_0x189800)=='symbol'?_0x189800:_0x189800+'';}function g(_0x3982ed,_0x47c043,_0x1d4f17){return(_0x47c043=h(_0x47c043))in _0x3982ed?Object['defineProperty'](_0x3982ed,_0x47c043,{'value':_0x1d4f17,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x3982ed[_0x47c043]=_0x1d4f17,_0x3982ed;}function _(_0x3456c2,_0x5884cc){return function(_0x549cb8,_0x3aeee4){_0x5884cc(_0x549cb8,_0x3aeee4,_0x3456c2);};}function v(_0x4d7c19,_0x3c0d54,_0x5d68ad,_0x4a41ae){var _0x1d8472=_0x40ef,_0x587628=arguments[_0x1d8472(0x1bb)],_0x30890b=_0x587628<0x3?_0x3c0d54:_0x4a41ae===null?_0x4a41ae=Object['getOwnPropertyDescriptor'](_0x3c0d54,_0x5d68ad):_0x4a41ae,_0x1fadc2;if(typeof Reflect==_0x1d8472(0x1e8)&&typeof Reflect['decorate']=='function')_0x30890b=Reflect[_0x1d8472(0x1d2)](_0x4d7c19,_0x3c0d54,_0x5d68ad,_0x4a41ae);else{for(var _0x366775=_0x4d7c19[_0x1d8472(0x1bb)]-0x1;_0x366775>=0x0;_0x366775--)(_0x1fadc2=_0x4d7c19[_0x366775])&&(_0x30890b=(_0x587628<0x3?_0x1fadc2(_0x30890b):_0x587628>0x3?_0x1fadc2(_0x3c0d54,_0x5d68ad,_0x30890b):_0x1fadc2(_0x3c0d54,_0x5d68ad))||_0x30890b);}return _0x587628>0x3&&_0x30890b&&Object[_0x1d8472(0x1c6)](_0x3c0d54,_0x5d68ad,_0x30890b),_0x30890b;}let y=class{constructor(_0x1a17cb,_0x47219c,_0x4e4316){var _0x4d5f9b=_0x40ef;this[_0x4d5f9b(0x1f3)]=_0x1a17cb,this[_0x4d5f9b(0x1cd)]=_0x47219c,this[_0x4d5f9b(0x1e0)]=_0x4e4316,g(this,_0x4d5f9b(0x1e7),void 0x0),this[_0x4d5f9b(0x1e7)]=this[_0x4d5f9b(0x1f3)][_0x4d5f9b(0x1dc)]();}['getId'](){var _0x24c567=_0x40ef;return this[_0x24c567(0x1cd)];}[_0x2a3e37(0x1db)](){var _0x564173=_0x2a3e37;let _0x9e1e80=this['_getBlockRange']();return _0x9e1e80?{'blockId':_0x9e1e80['blockId'],'endIndex':_0x9e1e80[_0x564173(0x1cb)],'startIndex':_0x9e1e80[_0x564173(0x1b4)]}:null;}[_0x2a3e37(0x1b9)](){var _0x568309=_0x2a3e37,_0x4149fc;let _0x4f2d1c=this[_0x568309(0x1b7)](),_0x1308fa=(_0x4149fc=this[_0x568309(0x1ec)]()[_0x568309(0x1ef)])==null?void 0x0:_0x4149fc[_0x568309(0x1cf)];return!_0x4f2d1c||!_0x1308fa?'':b(_0x1308fa['slice'](_0x4f2d1c['startIndex']+0x1,_0x4f2d1c['endIndex']));}[_0x2a3e37(0x1eb)](){var _0x388bdf=_0x2a3e37;let _0x413bf2=this['getRange']();return _0x413bf2?{..._0x413bf2,'config':this['getConfig'](),'text':this[_0x388bdf(0x1b9)](),'type':_0x46c20e['CODE']}:null;}[_0x2a3e37(0x1b1)](){var _0x24cdde=_0x2a3e37;return _0x1741bb(this[_0x24cdde(0x1e0)][_0x24cdde(0x1e3)](_0x1d1c72)[_0x24cdde(0x1c4)](this[_0x24cdde(0x1e7)],this[_0x24cdde(0x1cd)]));}[_0x2a3e37(0x1e2)](_0x14689d){var _0x502ff5=_0x2a3e37;return this['_injector'][_0x502ff5(0x1e3)](_0x31c5e7)[_0x502ff5(0x1b0)](_0x2aaa6a['id'],{'blockId':this['_blockId'],'config':_0x14689d[_0x502ff5(0x1d1)],'unitId':this[_0x502ff5(0x1e7)]});}[_0x2a3e37(0x1d5)](_0x97dace){var _0xf89bd0=_0x2a3e37;return this[_0xf89bd0(0x1e0)][_0xf89bd0(0x1e3)](_0x31c5e7)['syncExecuteCommand'](_0x2fb0d3['id'],{'cursorOffset':_0x97dace,'unitId':this[_0xf89bd0(0x1e7)]});}['cancelEmptyParagraph'](_0x5945e2={}){var _0x34d6ee=_0x2a3e37;return this['_injector']['get'](_0x31c5e7)[_0x34d6ee(0x1b0)](_0x2b2a05['id'],{..._0x5945e2,'unitId':this[_0x34d6ee(0x1e7)]});}[_0x2a3e37(0x1ec)](){var _0x13b7d3=_0x2a3e37;return this['_document'][_0x13b7d3(0x1d6)]();}[_0x2a3e37(0x1b7)](){var _0x536a13=_0x2a3e37,_0x5aaf80;let _0x4025cf=(_0x5aaf80=this[_0x536a13(0x1ec)]()[_0x536a13(0x1ef)])==null||(_0x5aaf80=_0x5aaf80[_0x536a13(0x1dd)])==null?void 0x0:_0x5aaf80[_0x536a13(0x1de)](_0x3d05d4=>_0x3d05d4[_0x536a13(0x1ca)]===this[_0x536a13(0x1cd)]&&_0x3d05d4['blockType']===_0x46c20e[_0x536a13(0x1e1)]);return _0x4025cf==null?null:_0x4025cf;}};y=v([_(0x2,_0x2bc39d(_0xf2643))],y);function b(_0x2d856c){var _0x40d7e9=_0x2a3e37;return Array[_0x40d7e9(0x1af)](_0x2d856c)[_0x40d7e9(0x1d7)](_0x76dbc1=>_0x76dbc1===_0x282b86[_0x40d7e9(0x1df)]?'\x0a':_0x76dbc1)[_0x40d7e9(0x1bd)](_0x1ceebb=>_0x1ceebb!==_0x282b86['BLOCK_START']&&_0x1ceebb!==_0x282b86[_0x40d7e9(0x1f1)]&&_0x1ceebb!==_0x282b86['SECTION_BREAK'])[_0x40d7e9(0x1d4)]('')[_0x40d7e9(0x1be)](/\n$/,'');}var x=class extends _0x226821{[_0x2a3e37(0x1e5)](){var _0x13d6e2=_0x2a3e37;return this[_0x13d6e2(0x1ed)]()[_0x13d6e2(0x1bd)](_0x3c1c11=>_0x3c1c11[_0x13d6e2(0x1bf)]===_0x46c20e[_0x13d6e2(0x1e1)])['map'](_0x133c12=>this[_0x13d6e2(0x1b2)](_0x133c12['blockId']));}['getCode'](_0x459f67){var _0x2bebc4=_0x2a3e37;return this[_0x2bebc4(0x1ed)]()[_0x2bebc4(0x1cc)](_0x360065=>_0x360065[_0x2bebc4(0x1ca)]===_0x459f67&&_0x360065[_0x2bebc4(0x1bf)]===_0x46c20e[_0x2bebc4(0x1e1)])?this[_0x2bebc4(0x1b2)](_0x459f67):null;}[_0x2a3e37(0x1c9)](_0x303e3f){var _0x2f6859=_0x2a3e37;let _0x564465=this[_0x2f6859(0x1ed)]()[_0x2f6859(0x1de)](_0x197642=>_0x197642[_0x2f6859(0x1bf)]===_0x46c20e[_0x2f6859(0x1e1)]&&_0x197642[_0x2f6859(0x1b4)]<=_0x303e3f&&_0x303e3f<=_0x197642[_0x2f6859(0x1cb)]);return _0x564465?this[_0x2f6859(0x1b2)](_0x564465[_0x2f6859(0x1ca)]):null;}[_0x2a3e37(0x1d0)](_0x357149){var _0x523e91=_0x2a3e37,_0x5b2809;return(_0x5b2809=this[_0x523e91(0x1c7)](_0x357149)[0x0])==null?null:_0x5b2809;}[_0x2a3e37(0x1c7)](_0x549cc3){var _0x177df3=_0x2a3e37;let _0x5cf560=typeof _0x549cc3=='string'?{'text':_0x549cc3}:_0x549cc3;return this[_0x177df3(0x1e5)]()[_0x177df3(0x1bd)](_0x3cfbd4=>!(_0x5cf560['blockId']&&_0x3cfbd4[_0x177df3(0x1dc)]()!==_0x5cf560[_0x177df3(0x1ca)]||_0x5cf560['text']&&!_0x3cfbd4[_0x177df3(0x1b9)]()[_0x177df3(0x1da)](_0x5cf560[_0x177df3(0x1c5)])));}[_0x2a3e37(0x1f0)](_0x53f888={},_0x14996e={}){var _0x319908=_0x2a3e37,_0x3aa714;let _0x293988=this['_injector'][_0x319908(0x1e3)](_0x31c5e7),_0x29fa05=S(_0x53f888)?{..._0x14996e,...C(_0x53f888)}:_0x53f888,_0x4d8400=(_0x3aa714=_0x29fa05[_0x319908(0x1ca)])==null?_0x8f6a75(0x6):_0x3aa714;return _0x293988[_0x319908(0x1b0)](_0xd979f7['id'],{..._0x29fa05,'blockId':_0x4d8400,'unitId':this[_0x319908(0x1dc)]()})?this[_0x319908(0x1b2)](_0x4d8400):null;}[_0x2a3e37(0x1bc)](_0x1c4f05){var _0x36a7c6=_0x2a3e37;return this['_injector'][_0x36a7c6(0x1e3)](_0x31c5e7)[_0x36a7c6(0x1b0)](_0x2fb0d3['id'],{'cursorOffset':_0x1c4f05,'unitId':this['getId']()});}['cancelEmptyCodeParagraph'](_0x1c6775={}){var _0x57e09a=_0x2a3e37;return this['_injector'][_0x57e09a(0x1e3)](_0x31c5e7)[_0x57e09a(0x1b0)](_0x2b2a05['id'],{..._0x1c6775,'unitId':this[_0x57e09a(0x1dc)]()});}['_getBlockRanges'](){var _0x270c52=_0x2a3e37,_0xa7a39c,_0x49e420;return(_0xa7a39c=(_0x49e420=this[_0x270c52(0x1d6)]()[_0x270c52(0x1ef)])==null?void 0x0:_0x49e420[_0x270c52(0x1dd)])==null?[]:_0xa7a39c;}['_createFDocumentCode'](_0x33c9af){var _0x3c25c2=_0x2a3e37;return this[_0x3c25c2(0x1e0)][_0x3c25c2(0x1c1)](y,this,_0x33c9af);}};function S(_0x4cd42){var _0x5c9d6c=_0x2a3e37;return typeof _0x4cd42==_0x5c9d6c(0x1e8)&&!!_0x4cd42&&typeof _0x4cd42['getKey']==_0x5c9d6c(0x1f2)&&typeof _0x4cd42[_0x5c9d6c(0x1db)]==_0x5c9d6c(0x1f2)&&typeof _0x4cd42[_0x5c9d6c(0x1c8)]==_0x5c9d6c(0x1f2)&&_0x4cd42[_0x5c9d6c(0x1c8)]()===_0x5c9d6c(0x1e6);}function C(_0x3ea013){return _0x3ea013['getRange']();}_0x226821[_0x2a3e37(0x1ea)](x);export{y as FDocumentCode};
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x4a8a2d=_0x28c9;(function(_0x33c0ef,_0x4e7947){const _0x4b3364=_0x28c9,_0x3719a4=_0x33c0ef();while(!![]){try{const _0x5996e2=-parseInt(_0x4b3364(0x1d9))/0x1*(-parseInt(_0x4b3364(0x1ce))/0x2)+parseInt(_0x4b3364(0x203))/0x3*(-parseInt(_0x4b3364(0x208))/0x4)+parseInt(_0x4b3364(0x1b6))/0x5*(-parseInt(_0x4b3364(0x22d))/0x6)+parseInt(_0x4b3364(0x209))/0x7*(-parseInt(_0x4b3364(0x1b9))/0x8)+parseInt(_0x4b3364(0x231))/0x9+-parseInt(_0x4b3364(0x21b))/0xa+parseInt(_0x4b3364(0x1d0))/0xb*(parseInt(_0x4b3364(0x1e8))/0xc);if(_0x5996e2===_0x4e7947)break;else _0x3719a4['push'](_0x3719a4['shift']());}catch(_0x59c62f){_0x3719a4['push'](_0x3719a4['shift']());}}}(_0x58a1,0x5beda));import{BuildTextUtils as _0x24fe28,CommandType as _0x20b98a,DataStreamTreeTokenType as _0x3ba019,DependentOn as _0xb86e0,Disposable as _0x3e8f03,DocumentBlockRangeType as _0x54e1d3,ICommandService as _0x3735ed,IConfigService as _0x42560c,IResourceManagerService as _0x3f714d,IUniverInstanceService as _0x3abeac,Inject as _0x4628b1,Injector as _0x531f72,JSONX as _0x2387fb,Plugin as _0x5357ad,Tools as _0xb48f1,UniverInstanceType as _0x2bb6f5,createParagraphId as _0x34e429,generateRandomId as _0x97c26f,merge as _0x3de4b6}from'@univerjs/core';import{DocContentInsertService as _0x2040aa,DocSelectionManagerService as _0x291a89,RichTextEditingMutation as _0x4297bb,UniverDocsPlugin as _0x1f5d37}from'@univerjs/docs';import{Subject as _0x363e20}from'rxjs';import{UniverLicensePlugin as _0x141bd9}from'@univerjs-pro/license';const S={'language':_0x4a8a2d(0x1f2),'showLineNumbers':!0x1,'tabSize':0x4,'wrap':!0x0};function C(_0x485bad){return{...S,..._0x485bad};}function w(_0x194da7){const _0x516533=_0x4a8a2d;var _0x1d5729;let _0x5a3d1f=(_0x1d5729=_0x194da7==null?void 0x0:_0x194da7['codes'])==null?{}:_0x1d5729;return{'codes':Object['fromEntries'](Object['entries'](_0x5a3d1f)[_0x516533(0x1c6)](([_0x23b746,_0x4926ac])=>[_0x23b746,C(_0x4926ac)]))};}function T(_0x56bf6f,_0x2b78f7,_0x2c447a){const _0x52d863=_0x4a8a2d;let _0xdb2ca7=w(_0x56bf6f);return _0xdb2ca7[_0x52d863(0x1cb)][_0x2b78f7]=C({..._0xdb2ca7['codes'][_0x2b78f7],..._0x2c447a}),_0xdb2ca7;}function re(_0x5c91e9,_0x22410c){let _0x2653fb=w(_0x5c91e9);return delete _0x2653fb['codes'][_0x22410c],_0x2653fb;}const ie=_0x4a8a2d(0x1f8);function ae(_0x151d84){const _0x5a812b=_0x4a8a2d;var _0x36a4f9,_0xafde3b,_0x5a0ce7;let _0x167a80=D(_0x151d84[_0x5a812b(0x21a)]),_0x24b65b=O(_0x167a80),_0x5d4611=se(_0x151d84[_0x5a812b(0x20a)],_0x151d84['endOffset']),_0x298645=_0x5d4611?(_0x36a4f9=_0x24b65b[_0x5a812b(0x1c1)])==null?void 0x0:_0x36a4f9[_0x5a812b(0x23a)](_0xbcb53=>_0xbcb53['startIndex']===_0x5d4611[_0x5a812b(0x20a)]&&_0xbcb53[_0x5a812b(0x1bd)]+0x1===_0x5d4611[_0x5a812b(0x227)]):void 0x0,{startOffset:_0x5ca80c,endOffset:_0x1ebe75}=_0x298645?_0x5d4611:ye(_0x24b65b,_0x151d84[_0x5a812b(0x20a)],_0x151d84[_0x5a812b(0x227)]),_0x50afb5=Se(_0x24b65b,_0x5ca80c,_0x1ebe75),_0x34c30c=(_0xafde3b=_0x298645==null?void 0x0:_0x298645['blockId'])==null?_0x151d84[_0x5a812b(0x1e4)]:_0xafde3b,_0x1606b8=T(_0x151d84[_0x5a812b(0x1bc)],_0x34c30c,{...S,..._0x151d84[_0x5a812b(0x211)]});if(_0x298645)return _0x298645[_0x5a812b(0x1f4)]=_0x54e1d3[_0x5a812b(0x200)],oe(_0x24b65b,_0x5ca80c,_0x1ebe75),he(_0x24b65b,_0x5ca80c,_0x1ebe75,_0x50afb5),M(_0x24b65b,_0x298645),{'nextDocumentData':_0x167a80,'nextMetadata':_0x1606b8,'cursorOffset':_0x5ca80c+0x1};if(_0x5ca80c===_0x1ebe75){var _0x5cbb11,_0x5960e9;let _0x3e4e1c=''+_0x3ba019[_0x5a812b(0x234)]+_0x3ba019[_0x5a812b(0x225)]+_0x3ba019['BLOCK_END'];N(_0x24b65b,_0x5ca80c,_0x3e4e1c,{'paragraphs':[{'startIndex':0x1,'paragraphId':_0x34e429(new Set((_0x5cbb11=_0x24b65b[_0x5a812b(0x1ba)])==null?void 0x0:_0x5cbb11[_0x5a812b(0x1c6)](_0x2926b2=>_0x2926b2[_0x5a812b(0x20e)]))),'paragraphStyle':E(!0x0,!0x0,_0x50afb5)}],'blockRanges':[{'blockId':_0x34c30c,'blockType':_0x54e1d3['CODE'],'startIndex':0x0,'endIndex':_0x3e4e1c['length']-0x1}]});let _0x564362=(_0x5960e9=_0x24b65b[_0x5a812b(0x1c1)])==null?void 0x0:_0x5960e9[_0x5a812b(0x23a)](_0x319a88=>_0x319a88[_0x5a812b(0x1e4)]===_0x34c30c);return _0x564362&&M(_0x24b65b,_0x564362),{'nextDocumentData':_0x167a80,'nextMetadata':_0x1606b8,'cursorOffset':_0x5ca80c+0x1};}N(_0x24b65b,_0x1ebe75,_0x3ba019['BLOCK_END']),N(_0x24b65b,_0x5ca80c,_0x3ba019[_0x5a812b(0x234)]),he(_0x24b65b,_0x5ca80c,_0x1ebe75+0x1,_0x50afb5);let _0x5e3282={'blockId':_0x34c30c,'blockType':_0x54e1d3[_0x5a812b(0x200)],'startIndex':_0x5ca80c,'endIndex':_0x1ebe75+0x1};return _0x24b65b[_0x5a812b(0x1c1)]=[...(_0x5a0ce7=_0x24b65b[_0x5a812b(0x1c1)])==null?[]:_0x5a0ce7,_0x5e3282]['sort']((_0x3d9679,_0x323898)=>_0x3d9679[_0x5a812b(0x1f0)]-_0x323898[_0x5a812b(0x1f0)]),M(_0x24b65b,_0x5e3282),{'nextDocumentData':_0x167a80,'nextMetadata':_0x1606b8,'cursorOffset':_0x5ca80c+0x1};}function oe(_0x211db4,_0x314088,_0x431e22){const _0x15e86d=_0x4a8a2d;var _0x17578a;((_0x17578a=_0x211db4['paragraphs'])==null?[]:_0x17578a)['filter'](_0x553339=>_0x553339['startIndex']>_0x314088&&_0x553339[_0x15e86d(0x1f0)]<_0x431e22)['forEach'](_0x2a3de8=>{const _0x3b2a5f=_0x15e86d;var _0x4bbc9f;let _0x156109={...(_0x4bbc9f=_0x2a3de8[_0x3b2a5f(0x22c)])==null?{}:_0x4bbc9f};delete _0x156109['spaceAbove'],delete _0x156109[_0x3b2a5f(0x1ca)],_0x2a3de8[_0x3b2a5f(0x22c)]=_0x156109;});}function se(_0x457e64,_0x248d17){return _0x457e64==null||_0x248d17==null||_0x457e64===_0x248d17?null:{'startOffset':Math['min'](_0x457e64,_0x248d17),'endOffset':Math['max'](_0x457e64,_0x248d17)};}function ce(_0x3858ad){const _0x591bfa=_0x4a8a2d;return{'nextDocumentData':D(_0x3858ad[_0x591bfa(0x21a)]),'nextMetadata':T(_0x3858ad[_0x591bfa(0x1bc)],_0x3858ad['blockId'],_0x3858ad[_0x591bfa(0x211)]),'cursorOffset':0x0};}function le(_0x10af95){const _0x50aa72=_0x4a8a2d;var _0x5aa243,_0x357c42;let _0x2d332a=D(_0x10af95[_0x50aa72(0x21a)]),_0x414cf5=O(_0x2d332a),_0x1a8ea0=me(_0x414cf5,_0x10af95[_0x50aa72(0x1f6)]);if(!_0x1a8ea0)return null;let _0x2e6234=_e(_0x414cf5,_0x1a8ea0),_0x7f904f=_0x2e6234[_0x2e6234[_0x50aa72(0x1dd)]-0x1];if(!_0x7f904f||!ve(_0x414cf5,_0x1a8ea0,_0x7f904f)||_0x10af95[_0x50aa72(0x1f6)]<_0x7f904f[_0x50aa72(0x1f0)])return null;let _0x45fcd5=A(_0x414cf5,_0x1a8ea0,_0x7f904f);if(_0x45fcd5>=_0x1a8ea0[_0x50aa72(0x1bd)])return null;_0x414cf5[_0x50aa72(0x23c)]=[_0x414cf5[_0x50aa72(0x23c)][_0x50aa72(0x1f5)](0x0,_0x45fcd5),_0x3ba019[_0x50aa72(0x1e7)],_0x414cf5[_0x50aa72(0x23c)][_0x50aa72(0x1f5)](_0x45fcd5,_0x1a8ea0[_0x50aa72(0x1bd)]),_0x414cf5[_0x50aa72(0x23c)][_0x50aa72(0x1f5)](_0x1a8ea0[_0x50aa72(0x1bd)]+0x1)]['join'](''),R(_0x414cf5['paragraphs'],_0x45fcd5,_0x1a8ea0['endIndex'],0x1),R(_0x414cf5[_0x50aa72(0x207)],_0x45fcd5,_0x1a8ea0['endIndex'],0x1),R(_0x414cf5[_0x50aa72(0x1cf)],_0x45fcd5,_0x1a8ea0[_0x50aa72(0x1bd)],0x1),ke(_0x414cf5[_0x50aa72(0x206)],_0x45fcd5,_0x1a8ea0[_0x50aa72(0x1bd)],0x1),z(_0x414cf5[_0x50aa72(0x1ee)],_0x45fcd5,_0x1a8ea0['endIndex'],0x1),z(_0x414cf5[_0x50aa72(0x1d8)],_0x45fcd5,_0x1a8ea0['endIndex'],0x1),z(_0x414cf5[_0x50aa72(0x238)],_0x45fcd5,_0x1a8ea0[_0x50aa72(0x1bd)],0x1),(_0x5aa243=_0x414cf5[_0x50aa72(0x1c1)])==null||_0x5aa243[_0x50aa72(0x1e2)](_0x3caec1=>{const _0x3ec7c3=_0x50aa72;_0x3caec1===_0x1a8ea0||_0x3caec1['blockId']===_0x1a8ea0[_0x3ec7c3(0x1e4)]?_0x3caec1[_0x3ec7c3(0x1bd)]=_0x45fcd5:_0x3caec1[_0x3ec7c3(0x1f0)]>=_0x45fcd5&&_0x3caec1[_0x3ec7c3(0x1f0)]<_0x1a8ea0[_0x3ec7c3(0x1bd)]&&(_0x3caec1['startIndex']+=0x1,_0x3caec1[_0x3ec7c3(0x1bd)]+=0x1);});let _0x39bb51=_e(_0x414cf5,{..._0x1a8ea0,'endIndex':_0x45fcd5});_0x39bb51[_0x50aa72(0x1e2)]((_0x57dc22,_0x30959e)=>{const _0x35497c=_0x50aa72;var _0x1005ac;_0x57dc22['paragraphStyle']={...(_0x1005ac=_0x57dc22[_0x35497c(0x22c)])==null?{}:_0x1005ac,...E(_0x30959e===0x0,_0x30959e===_0x39bb51[_0x35497c(0x1dd)]-0x1)};});let _0xeeca1e=(_0x357c42=_0x414cf5[_0x50aa72(0x1ba)])==null?void 0x0:_0x357c42[_0x50aa72(0x23a)](_0x10901d=>_0x10901d[_0x50aa72(0x1f0)]===_0x45fcd5+0x1);return _0xeeca1e&&(_0xeeca1e['paragraphStyle']=ge(_0xeeca1e[_0x50aa72(0x22c)])),{'nextDocumentData':_0x2d332a,'cursorOffset':_0x45fcd5+0x1};}function ue(_0x4943b5){const _0x211f64=_0x4a8a2d;let _0xb19ded=D(_0x4943b5[_0x211f64(0x21a)]),_0x35cf1b=O(_0xb19ded),_0x525eeb=me(_0x35cf1b,_0x4943b5['cursorOffset']);return _0x525eeb&&de(_0xb19ded,_0x35cf1b,_0x525eeb,_0x4943b5[_0x211f64(0x1f6)],_0x4943b5[_0x211f64(0x1e1)])||null;}function de(_0x15ca94,_0x30a6c0,_0x1ecfa2,_0x15aedb,_0x5c2c1f){const _0x46d349=_0x4a8a2d;let _0x288034=we(_0x30a6c0,_0x1ecfa2,_0x15aedb,_0x5c2c1f);if(!_0x288034)return null;let _0x207bd1=_0x288034[_0x46d349(0x1d3)]-0x1;return Te(_0x30a6c0,_0x288034[_0x46d349(0x1c9)][_0x46d349(0x1f0)],_0x288034[_0x46d349(0x1c9)][_0x46d349(0x1f0)]+0x1),{'nextDocumentData':_0x15ca94,'cursorOffset':_0x207bd1};}function fe(_0x25af29,_0x1a0d81){const _0x414408=_0x4a8a2d;var _0x189422;return _0x25af29==null||(_0x189422=_0x25af29[_0x414408(0x1c1)])==null?void 0x0:_0x189422[_0x414408(0x23a)](_0x1fd816=>_0x1fd816[_0x414408(0x1f4)]===_0x54e1d3[_0x414408(0x200)]&&_0x1fd816[_0x414408(0x1f0)]<=_0x1a0d81&&_0x1a0d81<=_0x1fd816[_0x414408(0x1bd)]);}function pe(_0x2b27b0){const _0x2b45b7=_0x4a8a2d;var _0x188ec0;let _0xc4f97d=_0x2b27b0['documentData'][_0x2b45b7(0x22f)];if(!_0xc4f97d)return!0x1;let _0x3ac209=_0x2b27b0['direction']===_0x2b45b7(0x1eb)?_0x2b27b0[_0x2b45b7(0x1f6)]-0x1:_0x2b27b0['cursorOffset'],_0x6406aa=_0x2b27b0[_0x2b45b7(0x1c5)]===_0x2b45b7(0x22a)?_0x2b27b0[_0x2b45b7(0x1f6)]+0x1:_0x3ac209;return((_0x188ec0=_0xc4f97d[_0x2b45b7(0x1c1)])==null?[]:_0x188ec0)[_0x2b45b7(0x236)](_0x12d4ad=>_0x12d4ad[_0x2b45b7(0x1f4)]===_0x54e1d3[_0x2b45b7(0x200)]?_0x3ac209===_0x12d4ad[_0x2b45b7(0x1f0)]||_0x3ac209===_0x12d4ad[_0x2b45b7(0x1bd)]||_0x6406aa===_0x12d4ad[_0x2b45b7(0x1f0)]||_0x6406aa===_0x12d4ad[_0x2b45b7(0x1bd)]:!0x1);}function me(_0x13fc4e,_0x5a78e7){const _0x5f297a=_0x4a8a2d;var _0x3395f0;return(_0x3395f0=_0x13fc4e[_0x5f297a(0x1c1)])==null?void 0x0:_0x3395f0['find'](_0x5a8b18=>{const _0x13c31d=_0x5f297a;let _0x38c79f=j(_0x13fc4e,_0x5a8b18);return _0x5a8b18['blockType']===_0x54e1d3[_0x13c31d(0x200)]&&_0x5a8b18['startIndex']<=_0x5a78e7&&_0x5a78e7<=_0x38c79f+0x2;});}function E(_0x17e584,_0x241c84,_0x51e922=!0x1){return{'indentEnd':{'v':0x14},'indentStart':{'v':0x14},..._0x17e584&&_0x51e922?{'spaceAbove':{'v':0x8}}:{},'textStyle':{'ff':ie,'fs':0xc}};}function he(_0x56028c,_0x34f293,_0x19ed8c,_0x36d47a=!0x1){const _0x506ac7=_0x4a8a2d;var _0x166610;let _0x401af5=((_0x166610=_0x56028c[_0x506ac7(0x1ba)])==null?[]:_0x166610)[_0x506ac7(0x233)](_0x5c7d6c=>_0x5c7d6c[_0x506ac7(0x1f0)]>_0x34f293&&_0x5c7d6c[_0x506ac7(0x1f0)]<_0x19ed8c);_0x401af5[_0x506ac7(0x1e2)]((_0xa56718,_0x263a05)=>{const _0x67f467=_0x506ac7;var _0x24e661;_0xa56718[_0x67f467(0x22c)]={...(_0x24e661=_0xa56718[_0x67f467(0x22c)])==null?{}:_0x24e661,...E(_0x263a05===0x0,_0x263a05===_0x401af5[_0x67f467(0x1dd)]-0x1,_0x36d47a)};});}function ge(_0x1d5cf3){const _0xbd2508=_0x4a8a2d;var _0x1d1447,_0x4e09f6;let _0x2a8721={..._0x1d5cf3==null?{}:_0x1d5cf3};return delete _0x2a8721[_0xbd2508(0x20c)],delete _0x2a8721['indentStart'],delete _0x2a8721[_0xbd2508(0x217)],delete _0x2a8721[_0xbd2508(0x1ca)],((_0x1d1447=_0x2a8721[_0xbd2508(0x1e5)])==null?void 0x0:_0x1d1447['ff'])===ie&&((_0x4e09f6=_0x2a8721['textStyle'])==null?void 0x0:_0x4e09f6['fs'])===0xc&&delete _0x2a8721[_0xbd2508(0x1e5)],_0x2a8721;}function _e(_0x268343,_0x4e7bc4){const _0x218459=_0x4a8a2d;var _0x2c1244;let _0x556d85=j(_0x268343,_0x4e7bc4);return((_0x2c1244=_0x268343[_0x218459(0x1ba)])==null?[]:_0x2c1244)[_0x218459(0x233)](_0x5822ff=>_0x5822ff[_0x218459(0x1f0)]>_0x4e7bc4[_0x218459(0x1f0)]&&_0x5822ff['startIndex']<_0x556d85);}function _0x28c9(_0x1e6757,_0x175dbf){_0x1e6757=_0x1e6757-0x1b6;const _0x58a183=_0x58a1();let _0x28c9d9=_0x58a183[_0x1e6757];return _0x28c9d9;}function ve(_0x76282b,_0x5ef0eb,_0x5ed3f2){const _0x254cec=_0x4a8a2d;let _0x2afe1d=A(_0x76282b,_0x5ef0eb,_0x5ed3f2),_0x5c9d23=_0x76282b[_0x254cec(0x23c)][_0x254cec(0x1f5)](_0x2afe1d,_0x5ed3f2[_0x254cec(0x1f0)]);return Array[_0x254cec(0x214)](_0x5c9d23)[_0x254cec(0x1bf)](_0x339f88=>_0x339f88===_0x3ba019[_0x254cec(0x234)]||_0x339f88===_0x3ba019[_0x254cec(0x1e7)]);}function D(_0x156523){const _0x4521c6=_0x4a8a2d;return _0xb48f1[_0x4521c6(0x1d2)](_0x156523);}function O(_0x1bf3c9){const _0x17ba9a=_0x4a8a2d;if(!_0x1bf3c9[_0x17ba9a(0x22f)])throw Error(_0x17ba9a(0x224));return _0x1bf3c9['body'];}function ye(_0x4bf66a,_0x108f21,_0x262c76){const _0x3d4f6c=_0x4a8a2d;if(_0x108f21==null||_0x262c76==null){let _0x2dee3f=xe(_0x4bf66a);return{'startOffset':_0x2dee3f,'endOffset':_0x2dee3f};}let _0x37d761=Math[_0x3d4f6c(0x235)](_0x108f21,_0x262c76),_0x442582=Math['max'](_0x108f21,_0x262c76);if(_0x37d761===_0x442582){let _0x5f373a=be(_0x4bf66a,_0x37d761);return{'startOffset':_0x5f373a,'endOffset':_0x5f373a};}return Ce(_0x4bf66a,_0x37d761,_0x442582);}function be(_0x4cd764,_0x276e03){const _0x5ec11e=_0x4a8a2d;return _0x276e03===0x0&&_0x4cd764[_0x5ec11e(0x23c)][0x0]===_0x3ba019[_0x5ec11e(0x225)]?0x1:_0x276e03;}function xe(_0x5539f0){const _0x449468=_0x4a8a2d;return _0x5539f0[_0x449468(0x23c)][_0x449468(0x21f)](_0x3ba019['SECTION_BREAK'])?Math[_0x449468(0x1e6)](0x0,_0x5539f0[_0x449468(0x23c)][_0x449468(0x1dd)]-0x1):_0x5539f0['dataStream'][_0x449468(0x1dd)];}function Se(_0x423855,_0x463210,_0x3896b8){const _0x1b3077=_0x4a8a2d;var _0x2e80e0;let _0x4e426e=Math[_0x1b3077(0x235)](_0x463210,_0x3896b8),_0x2fc2d5=Math[_0x1b3077(0x1e6)](_0x463210,_0x3896b8);return!!((_0x2e80e0=_0x423855[_0x1b3077(0x1ee)])!=null&&_0x2e80e0['some'](_0x2804c0=>_0x4e426e>_0x2804c0[_0x1b3077(0x1f0)]&&_0x4e426e<_0x2804c0[_0x1b3077(0x1bd)]||_0x2fc2d5>_0x2804c0[_0x1b3077(0x1f0)]&&_0x2fc2d5<_0x2804c0[_0x1b3077(0x1bd)]||_0x4e426e<=_0x2804c0[_0x1b3077(0x1f0)]&&_0x2fc2d5>=_0x2804c0[_0x1b3077(0x1bd)]));}function Ce(_0x4cc54b,_0x268161,_0x4880cb){const _0xc2e62c=_0x4a8a2d;var _0x4b1804,_0x157733;let _0x4e865c=[...(_0x4b1804=_0x4cc54b[_0xc2e62c(0x1ba)])==null?[]:_0x4b1804][_0xc2e62c(0x239)]((_0xb1769b,_0x5753db)=>_0xb1769b[_0xc2e62c(0x1f0)]-_0x5753db[_0xc2e62c(0x1f0)]),_0x3d4eff=_0x4e865c['find']((_0x5c92cd,_0x29a26e)=>(_0x29a26e===0x0?0x0:_0x4e865c[_0x29a26e-0x1][_0xc2e62c(0x1f0)]+0x1)<=_0x268161&&_0x268161<=_0x5c92cd['startIndex']),_0x1ed691=(_0x157733=_0x4e865c[_0xc2e62c(0x23a)](_0x211e54=>_0x211e54[_0xc2e62c(0x1f0)]>=_0x4880cb-0x1))==null?_0x4e865c[_0x4e865c[_0xc2e62c(0x1dd)]-0x1]:_0x157733;return{'startOffset':_0x3d4eff?k(_0x4e865c,_0x3d4eff):_0x268161,'endOffset':_0x1ed691?_0x1ed691['startIndex']+0x1:_0x4880cb};}function k(_0x157ccd,_0x170084){const _0x34c4ed=_0x4a8a2d;let _0x393940=_0x157ccd[_0x34c4ed(0x240)](_0x170084);return _0x393940>0x0?_0x157ccd[_0x393940-0x1]['startIndex']+0x1:0x0;}function A(_0x658122,_0x58c33d,_0x451dfa){const _0xe8904b=_0x4a8a2d;var _0x8e9a25;return Math[_0xe8904b(0x1e6)](k((_0x8e9a25=_0x658122['paragraphs'])==null?[]:_0x8e9a25,_0x451dfa),_0x58c33d[_0xe8904b(0x1f0)]+0x1);}function j(_0x54b102,_0x5a480f){const _0x8d5fec=_0x4a8a2d;return _0x54b102[_0x8d5fec(0x23c)][_0x5a480f[_0x8d5fec(0x1bd)]]===_0x3ba019['BLOCK_END']?_0x5a480f[_0x8d5fec(0x1bd)]:_0x54b102[_0x8d5fec(0x23c)][_0x5a480f['endIndex']+0x1]===_0x3ba019['BLOCK_END']?_0x5a480f[_0x8d5fec(0x1bd)]+0x1:_0x5a480f[_0x8d5fec(0x1bd)];}function we(_0x1734d9,_0x450943,_0x2df09c,_0x498a00){const _0x20b679=_0x4a8a2d;var _0x48b7c9,_0x4a2a5d;let _0x12fe04=j(_0x1734d9,_0x450943),_0x41149c=((_0x48b7c9=_0x1734d9[_0x20b679(0x1ba)])==null?[]:_0x48b7c9)[_0x20b679(0x23a)](_0x41061b=>_0x41061b[_0x20b679(0x1f0)]===_0x12fe04+0x1);if(!_0x41149c||_0x498a00!=null&&_0x41149c[_0x20b679(0x1f0)]!==_0x498a00||_0x2df09c<_0x12fe04||_0x2df09c>_0x41149c[_0x20b679(0x1f0)]+0x1||_0x1734d9[_0x20b679(0x23c)][_0x41149c['startIndex']]!==_0x3ba019[_0x20b679(0x225)])return null;let _0x1eca3f=k((_0x4a2a5d=_0x1734d9[_0x20b679(0x1ba)])==null?[]:_0x4a2a5d,_0x41149c),_0x454819=_0x1734d9['dataStream']['slice'](_0x1eca3f,_0x41149c[_0x20b679(0x1f0)]);return Array[_0x20b679(0x214)](_0x454819)[_0x20b679(0x1bf)](_0x37a77b=>_0x37a77b===_0x3ba019[_0x20b679(0x1e7)])?{'paragraph':_0x41149c,'endTokenOffset':_0x12fe04}:null;}function M(_0x5d7221,_0x2a40b1){const _0x3b0637=_0x4a8a2d;var _0x517a07;let _0x2c4705=j(_0x5d7221,_0x2a40b1),_0x4a4b84=_0x5d7221[_0x3b0637(0x23c)][_0x2c4705+0x1];_0x4a4b84!==_0x3ba019[_0x3b0637(0x229)]&&_0x4a4b84!==void 0x0||N(_0x5d7221,_0x2c4705+0x1,_0x3ba019[_0x3b0637(0x225)],{'paragraphs':[{'startIndex':0x0,'paragraphId':_0x34e429(new Set((_0x517a07=_0x5d7221[_0x3b0637(0x1ba)])==null?void 0x0:_0x517a07[_0x3b0637(0x1c6)](_0x3cb5a9=>_0x3cb5a9[_0x3b0637(0x20e)])))}]});}function N(_0xa0396,_0x5e4e9d,_0x5b6d4b,_0x3bb9ec={}){const _0x59ca28=_0x4a8a2d;var _0x1b15f9,_0x4545c4;if(_0x5b6d4b){if(_0xa0396[_0x59ca28(0x23c)]=''+_0xa0396[_0x59ca28(0x23c)]['slice'](0x0,_0x5e4e9d)+_0x5b6d4b+_0xa0396['dataStream'][_0x59ca28(0x1f5)](_0x5e4e9d),Ee(_0xa0396,_0x5e4e9d,_0x5b6d4b[_0x59ca28(0x1dd)]),(_0x1b15f9=_0x3bb9ec[_0x59ca28(0x1ba)])!=null&&_0x1b15f9[_0x59ca28(0x1dd)]){var _0x8d59fb;_0xa0396[_0x59ca28(0x1ba)]=[...(_0x8d59fb=_0xa0396[_0x59ca28(0x1ba)])==null?[]:_0x8d59fb,..._0x3bb9ec[_0x59ca28(0x1ba)][_0x59ca28(0x1c6)](_0x1ffea9=>({..._0x1ffea9,'startIndex':_0x1ffea9['startIndex']+_0x5e4e9d}))][_0x59ca28(0x239)]((_0x545a50,_0x41062d)=>_0x545a50[_0x59ca28(0x1f0)]-_0x41062d[_0x59ca28(0x1f0)]);}if((_0x4545c4=_0x3bb9ec[_0x59ca28(0x1c1)])!=null&&_0x4545c4[_0x59ca28(0x1dd)]){var _0x172fc1;_0xa0396['blockRanges']=[...(_0x172fc1=_0xa0396['blockRanges'])==null?[]:_0x172fc1,..._0x3bb9ec['blockRanges'][_0x59ca28(0x1c6)](_0x19853b=>({..._0x19853b,'startIndex':_0x19853b[_0x59ca28(0x1f0)]+_0x5e4e9d,'endIndex':_0x19853b[_0x59ca28(0x1bd)]+_0x5e4e9d}))][_0x59ca28(0x239)]((_0x2c1261,_0x53f498)=>_0x2c1261['startIndex']-_0x53f498[_0x59ca28(0x1f0)]);}}}function Te(_0x2259ad,_0x121220,_0x434c54){const _0x3ad431=_0x4a8a2d;let _0x14ae8e=_0x434c54-_0x121220;_0x2259ad[_0x3ad431(0x23c)]=''+_0x2259ad[_0x3ad431(0x23c)][_0x3ad431(0x1f5)](0x0,_0x121220)+_0x2259ad[_0x3ad431(0x23c)][_0x3ad431(0x1f5)](_0x434c54),De(_0x2259ad,_0x121220,_0x14ae8e);}function Ee(_0x43e9e3,_0x20a3ac,_0x26447c){const _0x1c8892=_0x4a8a2d;_0x43e9e3[_0x1c8892(0x1ba)]=P(_0x43e9e3[_0x1c8892(0x1ba)],_0x20a3ac,_0x26447c),_0x43e9e3[_0x1c8892(0x207)]=P(_0x43e9e3['sectionBreaks'],_0x20a3ac,_0x26447c),_0x43e9e3['customBlocks']=P(_0x43e9e3['customBlocks'],_0x20a3ac,_0x26447c),_0x43e9e3[_0x1c8892(0x206)]=Oe(_0x43e9e3[_0x1c8892(0x206)],_0x20a3ac,_0x26447c),_0x43e9e3['tables']=I(_0x43e9e3[_0x1c8892(0x1ee)],_0x20a3ac,_0x26447c),_0x43e9e3['customRanges']=I(_0x43e9e3[_0x1c8892(0x1d8)],_0x20a3ac,_0x26447c),_0x43e9e3['customDecorations']=I(_0x43e9e3[_0x1c8892(0x238)],_0x20a3ac,_0x26447c),_0x43e9e3['blockRanges']=I(_0x43e9e3['blockRanges'],_0x20a3ac,_0x26447c);}function De(_0x4d91c1,_0x384706,_0x3ecd85){const _0x28ae70=_0x4a8a2d;var _0x702ce5,_0x5b34b0;_0x4d91c1[_0x28ae70(0x1ba)]=F(_0x4d91c1['paragraphs'],_0x384706,_0x3ecd85),_0x4d91c1[_0x28ae70(0x207)]=F(_0x4d91c1[_0x28ae70(0x207)],_0x384706,_0x3ecd85),_0x4d91c1[_0x28ae70(0x1cf)]=F(_0x4d91c1[_0x28ae70(0x1cf)],_0x384706,_0x3ecd85),_0x4d91c1[_0x28ae70(0x206)]=(_0x702ce5=L((_0x5b34b0=_0x4d91c1['textRuns'])==null?void 0x0:_0x5b34b0[_0x28ae70(0x1c6)](_0x1eab75=>({..._0x1eab75,'startIndex':_0x1eab75['st'],'endIndex':_0x1eab75['ed']})),_0x384706,_0x3ecd85))==null?void 0x0:_0x702ce5[_0x28ae70(0x1c6)](_0x2fea58=>{let {startIndex:_0x444451,endIndex:_0x560dd9,..._0x3146b5}=_0x2fea58;return{..._0x3146b5,'st':_0x444451,'ed':_0x560dd9};}),_0x4d91c1[_0x28ae70(0x1ee)]=L(_0x4d91c1[_0x28ae70(0x1ee)],_0x384706,_0x3ecd85),_0x4d91c1[_0x28ae70(0x1d8)]=L(_0x4d91c1['customRanges'],_0x384706,_0x3ecd85),_0x4d91c1[_0x28ae70(0x238)]=L(_0x4d91c1[_0x28ae70(0x238)],_0x384706,_0x3ecd85),_0x4d91c1['blockRanges']=L(_0x4d91c1[_0x28ae70(0x1c1)],_0x384706,_0x3ecd85);}function P(_0x16c736,_0x4b4b4f,_0x192f08){const _0x2688de=_0x4a8a2d;return _0x16c736==null?void 0x0:_0x16c736[_0x2688de(0x1c6)](_0x5a1173=>_0x5a1173[_0x2688de(0x1f0)]>=_0x4b4b4f?{..._0x5a1173,'startIndex':_0x5a1173['startIndex']+_0x192f08}:_0x5a1173);}function F(_0x2912ba,_0x46d1f3,_0x424aee){const _0x44c81d=_0x4a8a2d;let _0x5b7f66=_0x46d1f3+_0x424aee;return _0x2912ba==null?void 0x0:_0x2912ba[_0x44c81d(0x1c6)](_0x52dc9e=>_0x52dc9e[_0x44c81d(0x1f0)]>=_0x46d1f3&&_0x52dc9e['startIndex']<_0x5b7f66?null:_0x52dc9e[_0x44c81d(0x1f0)]>=_0x5b7f66?{..._0x52dc9e,'startIndex':_0x52dc9e['startIndex']-_0x424aee}:_0x52dc9e)['filter'](_0x415221=>_0x415221!=null);}function Oe(_0x32df01,_0x537bf2,_0x8b8d1d){const _0x5ba742=_0x4a8a2d;return _0x32df01==null?void 0x0:_0x32df01[_0x5ba742(0x1c6)](_0x273a88=>_0x273a88['st']>=_0x537bf2?{..._0x273a88,'st':_0x273a88['st']+_0x8b8d1d,'ed':_0x273a88['ed']+_0x8b8d1d}:_0x273a88['ed']>_0x537bf2?{..._0x273a88,'ed':_0x273a88['ed']+_0x8b8d1d}:_0x273a88);}function I(_0x9b9d4a,_0x2a7633,_0x26d93f){const _0x427625=_0x4a8a2d;return _0x9b9d4a==null?void 0x0:_0x9b9d4a[_0x427625(0x1c6)](_0x3389d8=>_0x3389d8[_0x427625(0x1f0)]>=_0x2a7633?{..._0x3389d8,'startIndex':_0x3389d8[_0x427625(0x1f0)]+_0x26d93f,'endIndex':_0x3389d8[_0x427625(0x1bd)]+_0x26d93f}:_0x3389d8['endIndex']>=_0x2a7633?{..._0x3389d8,'endIndex':_0x3389d8['endIndex']+_0x26d93f}:_0x3389d8);}function L(_0x45d6fa,_0x377e73,_0x3d5f6b){const _0x2ff15a=_0x4a8a2d;let _0xfa2d64=_0x377e73+_0x3d5f6b;return _0x45d6fa==null?void 0x0:_0x45d6fa['map'](_0x1fc5ec=>_0x1fc5ec[_0x2ff15a(0x1f0)]>=_0x377e73&&_0x1fc5ec[_0x2ff15a(0x1bd)]<_0xfa2d64?null:_0x1fc5ec[_0x2ff15a(0x1f0)]>=_0xfa2d64?{..._0x1fc5ec,'startIndex':_0x1fc5ec[_0x2ff15a(0x1f0)]-_0x3d5f6b,'endIndex':_0x1fc5ec[_0x2ff15a(0x1bd)]-_0x3d5f6b}:_0x1fc5ec[_0x2ff15a(0x1bd)]>=_0x377e73?{..._0x1fc5ec,'startIndex':_0x1fc5ec['startIndex']<_0x377e73?_0x1fc5ec['startIndex']:_0x377e73,'endIndex':Math[_0x2ff15a(0x1e6)](_0x377e73,_0x1fc5ec[_0x2ff15a(0x1bd)]-_0x3d5f6b)}:_0x1fc5ec)[_0x2ff15a(0x233)](_0x3ef21a=>_0x3ef21a!=null);}function R(_0x2cc2fc,_0x576234,_0x24ca3d,_0x3f855e){_0x2cc2fc==null||_0x2cc2fc['forEach'](_0x1afc45=>{const _0x20e3aa=_0x28c9;_0x1afc45['startIndex']>=_0x576234&&_0x1afc45[_0x20e3aa(0x1f0)]<_0x24ca3d&&(_0x1afc45['startIndex']+=_0x3f855e);});}function ke(_0x15bea0,_0x17e830,_0x34f1e9,_0x2ec254){const _0x21e132=_0x4a8a2d;_0x15bea0==null||_0x15bea0[_0x21e132(0x1e2)](_0x2fce1=>{_0x2fce1['st']>=_0x17e830&&_0x2fce1['st']<_0x34f1e9?(_0x2fce1['st']+=_0x2ec254,_0x2fce1['ed']+=_0x2ec254):_0x2fce1['ed']>_0x17e830&&_0x2fce1['ed']<_0x34f1e9&&(_0x2fce1['ed']+=_0x2ec254);});}function z(_0x5223e9,_0x379138,_0x114465,_0x48f290){const _0x324870=_0x4a8a2d;_0x5223e9==null||_0x5223e9[_0x324870(0x1e2)](_0x1df7b6=>{const _0x4bd01a=_0x324870;_0x1df7b6[_0x4bd01a(0x1f0)]>=_0x379138&&_0x1df7b6[_0x4bd01a(0x1f0)]<_0x114465?(_0x1df7b6['startIndex']+=_0x48f290,_0x1df7b6[_0x4bd01a(0x1bd)]+=_0x48f290):_0x1df7b6[_0x4bd01a(0x1bd)]>_0x379138&&_0x1df7b6[_0x4bd01a(0x1bd)]<_0x114465&&(_0x1df7b6[_0x4bd01a(0x1bd)]+=_0x48f290);});}function B(_0x2fd0e3){'@babel/helpers - typeof';const _0x21d23d=_0x4a8a2d;return B=typeof Symbol==_0x21d23d(0x1ed)&&typeof Symbol[_0x21d23d(0x1d6)]==_0x21d23d(0x1da)?function(_0x1121ff){return typeof _0x1121ff;}:function(_0x2808c1){const _0x148d96=_0x21d23d;return _0x2808c1&&typeof Symbol==_0x148d96(0x1ed)&&_0x2808c1['constructor']===Symbol&&_0x2808c1!==Symbol[_0x148d96(0x1be)]?_0x148d96(0x1da):typeof _0x2808c1;},B(_0x2fd0e3);}function Ae(_0x115f91,_0x302b6e){const _0x4b03d7=_0x4a8a2d;if(B(_0x115f91)!=_0x4b03d7(0x1d5)||!_0x115f91)return _0x115f91;var _0x3817bf=_0x115f91[Symbol[_0x4b03d7(0x1ea)]];if(_0x3817bf!==void 0x0){var _0x525c6a=_0x3817bf[_0x4b03d7(0x1c8)](_0x115f91,_0x302b6e||_0x4b03d7(0x20b));if(B(_0x525c6a)!=_0x4b03d7(0x1d5))return _0x525c6a;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x302b6e===_0x4b03d7(0x1d1)?String:Number)(_0x115f91);}function je(_0x562264){const _0x12b482=_0x4a8a2d;var _0x59f815=Ae(_0x562264,_0x12b482(0x1d1));return B(_0x59f815)==_0x12b482(0x1da)?_0x59f815:_0x59f815+'';}function V(_0x4ebb82,_0x29783a,_0x4cb423){const _0x464628=_0x4a8a2d;return(_0x29783a=je(_0x29783a))in _0x4ebb82?Object[_0x464628(0x1c7)](_0x4ebb82,_0x29783a,{'value':_0x4cb423,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4ebb82[_0x29783a]=_0x4cb423,_0x4ebb82;}function _0x58a1(){const _0x37f8b9=['docs-code.command.insert-below','delete','complete','indexOf','_change$','5jqMxib','_setResource','deserialize','568DROgGU','paragraphs','COMMAND','metadata','endIndex','prototype','every','clear','blockRanges','previousDocumentData','getCurrentUnitOfType','onStarting','direction','map','defineProperty','call','paragraph','spaceBelow','codes','add','_configService','298dROuVY','customBlocks','11fodUEz','string','deepClone','endTokenOffset','range','object','iterator','UNIVER_DOC','customRanges','3587CfVInx','symbol','compose','change$','length','_resourceManagerService','getUniverDocInstance','dispose','paragraphStartIndex','forEach','unitId','blockId','textStyle','max','BLOCK_END','7708764WElStu','parse','toPrimitive','left','disposeWithMe','function','tables','nextMetadata','startIndex','removeCode','javascript','decorate','blockType','slice','cursorOffset','get','monospace','version','docs-code.config','syncExecuteCommand','_commandService','nextDocumentData','model','1.0.0-alpha.1','CODE','docs-code.command.update','pluginName','6jDpmHI','consumeInsertRange','_docsCodeModel','textRuns','sectionBreaks','166872RqxqjD','6398PYBhkJ','startOffset','default','indentEnd','_config','paragraphId','setCodeConfig','_resources','config','docs-code.command.exit','getBody','from','getSnapshot','serialize','spaceAbove','@univerjs-pro/docs-code','removeUnit','documentData','3285870weuPcy','docs-code.command.insert','docs-code.command.cancel-empty-paragraph','DOC_CODE_PLUGIN','endsWith','replaceOp','getCodeConfig','registerPluginResource','set','Document\x20body\x20is\x20required','PARAGRAPH','commandService','endOffset','getParagraphsInRange','SECTION_BREAK','right','stringify','paragraphStyle','4385586ZIZPEr','getTextRanges','body','next','3667734fUoyDX','registerCommand','filter','BLOCK_START','min','some','_injector','customDecorations','sort','find','type','dataStream'];_0x58a1=function(){return _0x37f8b9;};return _0x58a1();}var H=class extends _0x3e8f03{constructor(..._0x202d30){const _0x8ee9e0=_0x4a8a2d;super(..._0x202d30),V(this,_0x8ee9e0(0x210),new Map()),V(this,'_change$',new _0x363e20()),V(this,_0x8ee9e0(0x1dc),this[_0x8ee9e0(0x241)]['asObservable']());}[_0x4a8a2d(0x221)](_0x197643,_0x58a620){const _0x27ca2e=_0x4a8a2d;return w(this[_0x27ca2e(0x210)][_0x27ca2e(0x1f7)](_0x197643))[_0x27ca2e(0x1cb)][_0x58a620];}[_0x4a8a2d(0x20f)](_0x4853b5,_0x5aaa34,_0x26ee93){const _0x449b87=_0x4a8a2d;this['_setResource'](_0x4853b5,_0x5aaa34,T(this[_0x449b87(0x210)][_0x449b87(0x1f7)](_0x4853b5),_0x5aaa34,_0x26ee93));}[_0x4a8a2d(0x1f1)](_0xf6e12d,_0x3861a5){const _0x34b295=_0x4a8a2d;this['_setResource'](_0xf6e12d,_0x3861a5,re(this[_0x34b295(0x210)][_0x34b295(0x1f7)](_0xf6e12d),_0x3861a5));}[_0x4a8a2d(0x216)](_0x388db7){const _0x5bfda3=_0x4a8a2d;return w(this[_0x5bfda3(0x210)]['get'](_0x388db7));}[_0x4a8a2d(0x1b8)](_0xe49eb4,_0x7cea61){const _0x24eff5=_0x4a8a2d;this[_0x24eff5(0x210)][_0x24eff5(0x223)](_0xe49eb4,w(_0x7cea61)),this[_0x24eff5(0x241)][_0x24eff5(0x230)]({'unitId':_0xe49eb4});}[_0x4a8a2d(0x219)](_0x102cca){const _0x439e75=_0x4a8a2d;this[_0x439e75(0x210)][_0x439e75(0x23e)](_0x102cca),this[_0x439e75(0x241)][_0x439e75(0x230)]({'unitId':_0x102cca});}[_0x4a8a2d(0x1e0)](){const _0x478bdc=_0x4a8a2d;super[_0x478bdc(0x1e0)](),this[_0x478bdc(0x210)][_0x478bdc(0x1c0)](),this[_0x478bdc(0x241)][_0x478bdc(0x23f)]();}[_0x4a8a2d(0x1b7)](_0x1838bc,_0x1d97c0,_0x1fad4f){const _0x3891a1=_0x4a8a2d;this['_resources'][_0x3891a1(0x223)](_0x1838bc,_0x1fad4f),this[_0x3891a1(0x241)][_0x3891a1(0x230)]({'unitId':_0x1838bc,'blockId':_0x1d97c0});}};const Me={'id':_0x4a8a2d(0x23d),'type':_0x20b98a[_0x4a8a2d(0x1bb)],'handler':_0x525534=>{const _0x3d5255=_0x4a8a2d;let _0x2442b9=Le(_0x525534);if(_0x2442b9)return _0x525534[_0x3d5255(0x1f7)](_0x3735ed)[_0x3d5255(0x1fb)](U['id'],{'startOffset':_0x2442b9[_0x3d5255(0x20a)],'endOffset':_0x2442b9[_0x3d5255(0x227)],'unitId':_0x2442b9[_0x3d5255(0x1e3)]});let _0x40b8a6=Re(_0x525534);if(!_0x40b8a6)return!0x1;let _0x630a60=_0x40b8a6[_0x3d5255(0x1f0)]+0x1;return _0x525534[_0x3d5255(0x1f7)](_0x3735ed)[_0x3d5255(0x1fb)](U['id'],{'startOffset':_0x630a60,'endOffset':_0x630a60});}},Ne={'id':'docs-code.command.consume-boundary-delete','type':_0x20b98a['COMMAND'],'handler':()=>!0x0},U={'id':_0x4a8a2d(0x21c),'type':_0x20b98a[_0x4a8a2d(0x1bb)],'handler':(_0x34e2fe,_0x11462e)=>{const _0x2f3080=_0x4a8a2d;var _0x55fe22,_0x46f79f,_0x5e0193;let _0x5b75bf=W(_0x34e2fe,_0x11462e==null?void 0x0:_0x11462e['unitId']);if(!_0x5b75bf)return!0x1;let _0x8f5b5d=G(_0x34e2fe),_0x3c869f=ae({'blockId':(_0x55fe22=_0x11462e==null?void 0x0:_0x11462e[_0x2f3080(0x1e4)])==null?_0x97c26f(0x6):_0x55fe22,'config':_0x11462e==null?void 0x0:_0x11462e[_0x2f3080(0x211)],'documentData':_0x5b75bf[_0x2f3080(0x1c2)],'endOffset':(_0x46f79f=_0x11462e==null?void 0x0:_0x11462e[_0x2f3080(0x227)])==null?_0x8f5b5d==null?void 0x0:_0x8f5b5d[_0x2f3080(0x227)]:_0x46f79f,'metadata':_0x5b75bf['model'][_0x2f3080(0x216)](_0x5b75bf[_0x2f3080(0x1e3)]),'startOffset':(_0x5e0193=_0x11462e==null?void 0x0:_0x11462e['startOffset'])==null?_0x8f5b5d==null?void 0x0:_0x8f5b5d[_0x2f3080(0x20a)]:_0x5e0193}),_0x25363b=q(_0x5b75bf[_0x2f3080(0x226)],_0x5b75bf[_0x2f3080(0x1e3)],_0x5b75bf[_0x2f3080(0x1c2)],_0x3c869f[_0x2f3080(0x1fd)],_0x3c869f[_0x2f3080(0x1f6)]);return _0x25363b&&_0x3c869f[_0x2f3080(0x1ef)]&&_0x5b75bf[_0x2f3080(0x1fe)][_0x2f3080(0x1b8)](_0x5b75bf[_0x2f3080(0x1e3)],_0x3c869f['nextMetadata']),_0x25363b;}},Pe={'id':_0x4a8a2d(0x201),'type':_0x20b98a[_0x4a8a2d(0x1bb)],'handler':(_0x596b59,_0x2a5246)=>{const _0x2dad1b=_0x4a8a2d;if(!_0x2a5246)return!0x1;let _0x447ca0=W(_0x596b59,_0x2a5246[_0x2dad1b(0x1e3)]);if(!_0x447ca0)return!0x1;let _0x1ec4e5=ce({'blockId':_0x2a5246[_0x2dad1b(0x1e4)],'config':_0x2a5246['config'],'documentData':_0x447ca0[_0x2dad1b(0x1c2)],'metadata':_0x447ca0[_0x2dad1b(0x1fe)][_0x2dad1b(0x216)](_0x447ca0['unitId'])});return _0x1ec4e5[_0x2dad1b(0x1ef)]&&_0x447ca0['model'][_0x2dad1b(0x1b8)](_0x447ca0['unitId'],_0x1ec4e5[_0x2dad1b(0x1ef)]),!0x0;}},Fe={'id':_0x4a8a2d(0x212),'type':_0x20b98a[_0x4a8a2d(0x1bb)],'handler':(_0x510efd,_0xbfa146)=>{const _0x594323=_0x4a8a2d;var _0x4b464b,_0x4ad761;let _0x48a69b=W(_0x510efd,_0xbfa146==null?void 0x0:_0xbfa146[_0x594323(0x1e3)]);if(!_0x48a69b)return!0x1;let _0x3dacad=(_0x4b464b=_0xbfa146==null?void 0x0:_0xbfa146[_0x594323(0x1f6)])==null?(_0x4ad761=G(_0x510efd))==null?void 0x0:_0x4ad761[_0x594323(0x20a)]:_0x4b464b;if(_0x3dacad==null)return!0x1;let _0x1067fe=le({'cursorOffset':_0x3dacad,'documentData':_0x48a69b['previousDocumentData']});return _0x1067fe?q(_0x48a69b[_0x594323(0x226)],_0x48a69b[_0x594323(0x1e3)],_0x48a69b[_0x594323(0x1c2)],_0x1067fe[_0x594323(0x1fd)],_0x1067fe[_0x594323(0x1f6)]):!0x1;}},Ie={'id':_0x4a8a2d(0x21d),'type':_0x20b98a['COMMAND'],'handler':(_0x561e74,_0x45fa69)=>{const _0x4da7e9=_0x4a8a2d;var _0x599ff8,_0x542500;let _0x5727a7=W(_0x561e74,_0x45fa69==null?void 0x0:_0x45fa69[_0x4da7e9(0x1e3)]);if(!_0x5727a7)return!0x1;let _0xd602b7=(_0x599ff8=_0x45fa69==null?void 0x0:_0x45fa69[_0x4da7e9(0x1f6)])==null?(_0x542500=G(_0x561e74))==null?void 0x0:_0x542500['startOffset']:_0x599ff8;if(_0xd602b7==null)return!0x1;let _0x2c0745=ue({'cursorOffset':_0xd602b7,'documentData':_0x5727a7['previousDocumentData'],'paragraphStartIndex':_0x45fa69==null?void 0x0:_0x45fa69['paragraphStartIndex']});return _0x2c0745?q(_0x5727a7[_0x4da7e9(0x226)],_0x5727a7[_0x4da7e9(0x1e3)],_0x5727a7[_0x4da7e9(0x1c2)],_0x2c0745['nextDocumentData'],_0x2c0745[_0x4da7e9(0x1f6)]):!0x1;}};function W(_0x482f3b,_0x9a475b){const _0x58afea=_0x4a8a2d;let _0x4faac0=_0x482f3b['get'](_0x3abeac),_0xaaf406=_0x9a475b?_0x4faac0[_0x58afea(0x1df)](_0x9a475b):_0x4faac0[_0x58afea(0x1c3)](_0x2bb6f5[_0x58afea(0x1d7)]);return _0xaaf406?{'commandService':_0x482f3b['get'](_0x3735ed),'model':_0x482f3b['get'](H),'previousDocumentData':_0xaaf406[_0x58afea(0x215)](),'unitId':_0xaaf406['getUnitId']()}:null;}function G(_0x48d8e5){const _0x7c73c4=_0x4a8a2d;var _0x1f4ac0;return(_0x1f4ac0=_0x48d8e5[_0x7c73c4(0x1f7)](_0x291a89)[_0x7c73c4(0x22e)]())==null?void 0x0:_0x1f4ac0[0x0];}function Le(_0x50f484){const _0x335578=_0x4a8a2d;var _0x4d0fb4;let _0x5c46dc=(_0x4d0fb4=_0x50f484[_0x335578(0x1f7)](_0x3abeac)[_0x335578(0x1c3)](_0x2bb6f5[_0x335578(0x1d7)]))==null?void 0x0:_0x4d0fb4['getUnitId']();try{return _0x50f484['get'](_0x2040aa)[_0x335578(0x204)](_0x5c46dc);}catch{return null;}}function Re(_0xc8d4b2){const _0x459600=_0x4a8a2d;var _0x66885,_0x360e57,_0x1eb2a3;let _0x5323c3=G(_0xc8d4b2);if(!_0x5323c3)return null;let _0x1ddf43=_0xc8d4b2[_0x459600(0x1f7)](_0x3abeac)['getCurrentUnitOfType'](_0x2bb6f5[_0x459600(0x1d7)]),_0x5dc10f=_0x1ddf43==null?void 0x0:_0x1ddf43[_0x459600(0x213)]();return _0x5dc10f?(_0x66885=_0x24fe28[_0x459600(0x1d4)][_0x459600(0x228)](_0x5323c3,(_0x360e57=_0x5dc10f['paragraphs'])==null?[]:_0x360e57,(_0x1eb2a3=_0x5dc10f[_0x459600(0x23c)])==null?'':_0x1eb2a3)[0x0])==null?null:_0x66885:null;}function ze(_0x48f164,_0x5d6c01){const _0x2758ca=_0x4a8a2d;var _0x93d0eb,_0x24ac7b,_0x5bd531,_0xe97b8e,_0x1a541c,_0x428a1d,_0x206213,_0x371f1f,_0x104ccd,_0x3d1e1a,_0x2a8cfb,_0x3c555b,_0x19f2e1,_0x23c305,_0x3c760e,_0x399b81,_0xfc1a60,_0x147f97;let _0x59a6ac=_0x2387fb['getInstance']();return[K(_0x59a6ac,[_0x2758ca(0x22f),_0x2758ca(0x23c)],(_0x93d0eb=_0x48f164[_0x2758ca(0x22f)])==null?void 0x0:_0x93d0eb['dataStream'],(_0x24ac7b=_0x5d6c01[_0x2758ca(0x22f)])==null?void 0x0:_0x24ac7b['dataStream']),K(_0x59a6ac,[_0x2758ca(0x22f),_0x2758ca(0x1ba)],(_0x5bd531=_0x48f164[_0x2758ca(0x22f)])==null?void 0x0:_0x5bd531[_0x2758ca(0x1ba)],(_0xe97b8e=_0x5d6c01[_0x2758ca(0x22f)])==null?void 0x0:_0xe97b8e[_0x2758ca(0x1ba)]),K(_0x59a6ac,[_0x2758ca(0x22f),'sectionBreaks'],(_0x1a541c=_0x48f164[_0x2758ca(0x22f)])==null?void 0x0:_0x1a541c[_0x2758ca(0x207)],(_0x428a1d=_0x5d6c01[_0x2758ca(0x22f)])==null?void 0x0:_0x428a1d[_0x2758ca(0x207)]),K(_0x59a6ac,['body','textRuns'],(_0x206213=_0x48f164[_0x2758ca(0x22f)])==null?void 0x0:_0x206213[_0x2758ca(0x206)],(_0x371f1f=_0x5d6c01[_0x2758ca(0x22f)])==null?void 0x0:_0x371f1f[_0x2758ca(0x206)]),K(_0x59a6ac,[_0x2758ca(0x22f),_0x2758ca(0x1cf)],(_0x104ccd=_0x48f164[_0x2758ca(0x22f)])==null?void 0x0:_0x104ccd[_0x2758ca(0x1cf)],(_0x3d1e1a=_0x5d6c01['body'])==null?void 0x0:_0x3d1e1a[_0x2758ca(0x1cf)]),K(_0x59a6ac,['body','customRanges'],(_0x2a8cfb=_0x48f164[_0x2758ca(0x22f)])==null?void 0x0:_0x2a8cfb[_0x2758ca(0x1d8)],(_0x3c555b=_0x5d6c01[_0x2758ca(0x22f)])==null?void 0x0:_0x3c555b[_0x2758ca(0x1d8)]),K(_0x59a6ac,[_0x2758ca(0x22f),_0x2758ca(0x238)],(_0x19f2e1=_0x48f164['body'])==null?void 0x0:_0x19f2e1[_0x2758ca(0x238)],(_0x23c305=_0x5d6c01[_0x2758ca(0x22f)])==null?void 0x0:_0x23c305[_0x2758ca(0x238)]),K(_0x59a6ac,['body',_0x2758ca(0x1ee)],(_0x3c760e=_0x48f164[_0x2758ca(0x22f)])==null?void 0x0:_0x3c760e[_0x2758ca(0x1ee)],(_0x399b81=_0x5d6c01['body'])==null?void 0x0:_0x399b81['tables']),K(_0x59a6ac,[_0x2758ca(0x22f),_0x2758ca(0x1c1)],(_0xfc1a60=_0x48f164[_0x2758ca(0x22f)])==null?void 0x0:_0xfc1a60['blockRanges'],(_0x147f97=_0x5d6c01['body'])==null?void 0x0:_0x147f97['blockRanges'])][_0x2758ca(0x233)](Boolean)['reduce']((_0x30a948,_0x36800f)=>_0x2387fb[_0x2758ca(0x1db)](_0x30a948,_0x36800f),null);}function K(_0x496e0e,_0xabeaeb,_0x3cfa55,_0x2dd681){const _0x1b2a92=_0x4a8a2d;return _0xb48f1['diffValue'](_0x3cfa55,_0x2dd681)?null:_0x496e0e[_0x1b2a92(0x220)](_0xabeaeb,_0x3cfa55,_0x2dd681);}function q(_0x1c7168,_0x258537,_0x42aba6,_0x47945c,_0x5aac27){const _0x4ca4d8=_0x4a8a2d;let _0x55ea90=ze(_0x42aba6,_0x47945c);return _0x55ea90?!!_0x1c7168[_0x4ca4d8(0x1fb)](_0x4297bb['id'],{'unitId':_0x258537,'actions':_0x55ea90,'textRanges':[{'startOffset':_0x5aac27,'endOffset':_0x5aac27,'collapsed':!0x0}],'isEditing':!0x1}):!0x1;}const J=_0x4a8a2d(0x21e);var Be=_0x4a8a2d(0x218),Ve=_0x4a8a2d(0x1ff);const Y={};function X(_0x51a0d7,_0x4f288e){return function(_0xc2b95e,_0xe780a8){_0x4f288e(_0xc2b95e,_0xe780a8,_0x51a0d7);};}function Z(_0xb42bea,_0x307348,_0x399d74,_0x5b84c7){const _0x3fbc82=_0x4a8a2d;var _0x5d394d=arguments[_0x3fbc82(0x1dd)],_0x1b366b=_0x5d394d<0x3?_0x307348:_0x5b84c7===null?_0x5b84c7=Object['getOwnPropertyDescriptor'](_0x307348,_0x399d74):_0x5b84c7,_0x1b2d90;if(typeof Reflect==_0x3fbc82(0x1d5)&&typeof Reflect[_0x3fbc82(0x1f3)]==_0x3fbc82(0x1ed))_0x1b366b=Reflect['decorate'](_0xb42bea,_0x307348,_0x399d74,_0x5b84c7);else{for(var _0x552881=_0xb42bea[_0x3fbc82(0x1dd)]-0x1;_0x552881>=0x0;_0x552881--)(_0x1b2d90=_0xb42bea[_0x552881])&&(_0x1b366b=(_0x5d394d<0x3?_0x1b2d90(_0x1b366b):_0x5d394d>0x3?_0x1b2d90(_0x307348,_0x399d74,_0x1b366b):_0x1b2d90(_0x307348,_0x399d74))||_0x1b366b);}return _0x5d394d>0x3&&_0x1b366b&&Object[_0x3fbc82(0x1c7)](_0x307348,_0x399d74,_0x1b366b),_0x1b366b;}let Q=class extends _0x3e8f03{constructor(_0x525000,_0x5307ab){const _0x527ba6=_0x4a8a2d;super(),this[_0x527ba6(0x1de)]=_0x525000,this[_0x527ba6(0x205)]=_0x5307ab,this['_initResource']();}['_initResource'](){const _0x138310=_0x4a8a2d;this['disposeWithMe'](this[_0x138310(0x1de)][_0x138310(0x222)]({'pluginName':J,'businesses':[_0x2bb6f5['UNIVER_DOC']],'toJson':_0x756b90=>JSON[_0x138310(0x22b)](this['_docsCodeModel'][_0x138310(0x216)](_0x756b90)),'parseJson':_0x326414=>w(JSON[_0x138310(0x1e9)](_0x326414)),'onLoad':(_0x3bb989,_0x9d9c94)=>this[_0x138310(0x205)][_0x138310(0x1b8)](_0x3bb989,_0x9d9c94),'onUnLoad':_0x1fb262=>this[_0x138310(0x205)][_0x138310(0x219)](_0x1fb262)}));}};Q=Z([X(0x0,_0x3f714d),X(0x1,_0x4628b1(H))],Q);let $=class extends _0x5357ad{constructor(_0x44a0c7=Y,_0x299616,_0x10514f,_0x5e69cf){const _0x4b2ffc=_0x4a8a2d;super(),this[_0x4b2ffc(0x20d)]=_0x44a0c7,this['_injector']=_0x299616,this[_0x4b2ffc(0x1fc)]=_0x10514f,this[_0x4b2ffc(0x1cd)]=_0x5e69cf;let {..._0x1fb70a}=_0x3de4b6({},Y,this[_0x4b2ffc(0x20d)]);this['_configService']['setConfig'](_0x4b2ffc(0x1fa),_0x1fb70a);}[_0x4a8a2d(0x1c4)](){const _0x41fbe=_0x4a8a2d;this[_0x41fbe(0x237)][_0x41fbe(0x1cc)]([H]),this[_0x41fbe(0x237)]['add']([Q]),this[_0x41fbe(0x237)][_0x41fbe(0x1f7)](H),this[_0x41fbe(0x237)][_0x41fbe(0x1f7)](Q),[U,Me,Pe,Fe,Ie,Ne][_0x41fbe(0x1e2)](_0x4ae732=>this[_0x41fbe(0x1ec)](this[_0x41fbe(0x1fc)][_0x41fbe(0x232)](_0x4ae732)));}};V($,_0x4a8a2d(0x202),J),V($,'packageName',Be),V($,_0x4a8a2d(0x1f9),Ve),V($,_0x4a8a2d(0x23b),_0x2bb6f5[_0x4a8a2d(0x1d7)]),$=Z([_0xb86e0(_0x141bd9,_0x1f5d37),X(0x1,_0x4628b1(_0x531f72)),X(0x2,_0x3735ed),X(0x3,_0x42560c)],$);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};
1
+ const _0x2918aa=_0x4721;(function(_0x4d63c7,_0x47d261){const _0x205705=_0x4721,_0x1783cf=_0x4d63c7();while(!![]){try{const _0x3a5255=-parseInt(_0x205705(0x9d))/0x1*(-parseInt(_0x205705(0x81))/0x2)+parseInt(_0x205705(0x8b))/0x3*(-parseInt(_0x205705(0xe6))/0x4)+-parseInt(_0x205705(0xe3))/0x5+-parseInt(_0x205705(0xc4))/0x6+parseInt(_0x205705(0xc6))/0x7+-parseInt(_0x205705(0x84))/0x8+-parseInt(_0x205705(0xe5))/0x9*(-parseInt(_0x205705(0xaa))/0xa);if(_0x3a5255===_0x47d261)break;else _0x1783cf['push'](_0x1783cf['shift']());}catch(_0x5eec4c){_0x1783cf['push'](_0x1783cf['shift']());}}}(_0x303f,0xdd1f2));import{BuildTextUtils as _0x1dfe3e,CommandType as _0x4448b1,DataStreamTreeTokenType as _0x152f45,DependentOn as _0x5e7fa3,Disposable as _0x7ff31,DocumentBlockRangeType as _0x238249,ICommandService as _0x3581cd,IConfigService as _0x1024e7,IResourceManagerService as _0x517cbe,IUniverInstanceService as _0x20984d,Inject as _0x1a3b9a,Injector as _0x50021e,JSONX as _0xaa2b42,Plugin as _0x15253c,Tools as _0x3348f8,UniverInstanceType as _0x50ff8e,createParagraphId as _0x309a82,generateRandomId as _0x50f53a,merge as _0x384233}from'@univerjs/core';import{DocContentInsertService as _0x26ecbc,DocSelectionManagerService as _0x308de8,RichTextEditingMutation as _0x3446f8,UniverDocsPlugin as _0x14757f}from'@univerjs/docs';import{Subject as _0x504168}from'rxjs';import{UniverLicensePlugin as _0x47fcc9}from'@univerjs-pro/license';const S={'language':_0x2918aa(0x9a),'showLineNumbers':!0x1,'tabSize':0x4,'wrap':!0x0};function C(_0x3b9410){return{...S,..._0x3b9410};}function w(_0x160606){const _0x113a48=_0x2918aa;var _0x14ee17;let _0x416a2b=(_0x14ee17=_0x160606==null?void 0x0:_0x160606[_0x113a48(0x98)])==null?{}:_0x14ee17;return{'codes':Object['fromEntries'](Object[_0x113a48(0xe4)](_0x416a2b)[_0x113a48(0xe8)](([_0x37ffab,_0x588dd4])=>[_0x37ffab,C(_0x588dd4)]))};}function T(_0x29f59e,_0x18e8fe,_0x19dce0){const _0x17acde=_0x2918aa;let _0x38b024=w(_0x29f59e);return _0x38b024[_0x17acde(0x98)][_0x18e8fe]=C({..._0x38b024[_0x17acde(0x98)][_0x18e8fe],..._0x19dce0}),_0x38b024;}function re(_0x2fe067,_0x123b0b){const _0x239c18=_0x2918aa;let _0x56cd7e=w(_0x2fe067);return delete _0x56cd7e[_0x239c18(0x98)][_0x123b0b],_0x56cd7e;}const ie=_0x2918aa(0xdc);function ae(_0x36fde3){const _0x3e75d1=_0x2918aa;var _0x2f9c97,_0x5dbc1f,_0x51c2eb;let _0x157373=D(_0x36fde3[_0x3e75d1(0xae)]),_0x16eb62=O(_0x157373),_0x3ce9ac=se(_0x36fde3[_0x3e75d1(0x74)],_0x36fde3['endOffset']),_0x20b24b=_0x3ce9ac?(_0x2f9c97=_0x16eb62['blockRanges'])==null?void 0x0:_0x2f9c97['find'](_0x2166d8=>_0x2166d8['startIndex']===_0x3ce9ac[_0x3e75d1(0x74)]&&_0x2166d8[_0x3e75d1(0x9b)]+0x1===_0x3ce9ac[_0x3e75d1(0xd7)]):void 0x0,{startOffset:_0x4a45c5,endOffset:_0x48bf78}=_0x20b24b?_0x3ce9ac:ye(_0x16eb62,_0x36fde3[_0x3e75d1(0x74)],_0x36fde3[_0x3e75d1(0xd7)]),_0x52e1c9=Se(_0x16eb62,_0x4a45c5,_0x48bf78),_0xfc99f0=(_0x5dbc1f=_0x20b24b==null?void 0x0:_0x20b24b[_0x3e75d1(0xaf)])==null?_0x36fde3[_0x3e75d1(0xaf)]:_0x5dbc1f,_0x28a21e=T(_0x36fde3[_0x3e75d1(0x9c)],_0xfc99f0,{...S,..._0x36fde3[_0x3e75d1(0x9e)]});if(_0x20b24b)return _0x20b24b[_0x3e75d1(0xe2)]=_0x238249[_0x3e75d1(0x96)],oe(_0x16eb62,_0x4a45c5,_0x48bf78),he(_0x16eb62,_0x4a45c5,_0x48bf78,_0x52e1c9),M(_0x16eb62,_0x20b24b),{'nextDocumentData':_0x157373,'nextMetadata':_0x28a21e,'cursorOffset':_0x4a45c5+0x1};if(_0x4a45c5===_0x48bf78){var _0x1fa4c4,_0x4cb64c;let _0x56e33c=''+_0x152f45[_0x3e75d1(0xc8)]+_0x152f45[_0x3e75d1(0xad)]+_0x152f45[_0x3e75d1(0xc3)];N(_0x16eb62,_0x4a45c5,_0x56e33c,{'paragraphs':[{'startIndex':0x1,'paragraphId':_0x309a82(new Set((_0x1fa4c4=_0x16eb62[_0x3e75d1(0xcf)])==null?void 0x0:_0x1fa4c4[_0x3e75d1(0xe8)](_0x1f64f9=>_0x1f64f9[_0x3e75d1(0x6c)]))),'paragraphStyle':E(!0x0,!0x0,_0x52e1c9)}],'blockRanges':[{'blockId':_0xfc99f0,'blockType':_0x238249['CODE'],'startIndex':0x0,'endIndex':_0x56e33c[_0x3e75d1(0xd4)]-0x1}]});let _0x326a8d=(_0x4cb64c=_0x16eb62[_0x3e75d1(0xeb)])==null?void 0x0:_0x4cb64c['find'](_0x24cbe0=>_0x24cbe0[_0x3e75d1(0xaf)]===_0xfc99f0);return _0x326a8d&&M(_0x16eb62,_0x326a8d),{'nextDocumentData':_0x157373,'nextMetadata':_0x28a21e,'cursorOffset':_0x4a45c5+0x1};}N(_0x16eb62,_0x48bf78,_0x152f45[_0x3e75d1(0xc3)]),N(_0x16eb62,_0x4a45c5,_0x152f45['BLOCK_START']),he(_0x16eb62,_0x4a45c5,_0x48bf78+0x1,_0x52e1c9);let _0x810e87={'blockId':_0xfc99f0,'blockType':_0x238249[_0x3e75d1(0x96)],'startIndex':_0x4a45c5,'endIndex':_0x48bf78+0x1};return _0x16eb62[_0x3e75d1(0xeb)]=[...(_0x51c2eb=_0x16eb62['blockRanges'])==null?[]:_0x51c2eb,_0x810e87][_0x3e75d1(0xda)]((_0x30fc14,_0x4b5b8c)=>_0x30fc14[_0x3e75d1(0xce)]-_0x4b5b8c[_0x3e75d1(0xce)]),M(_0x16eb62,_0x810e87),{'nextDocumentData':_0x157373,'nextMetadata':_0x28a21e,'cursorOffset':_0x4a45c5+0x1};}function oe(_0x2ebcd5,_0x2c6481,_0x5f2b8d){const _0x2b01b5=_0x2918aa;var _0x2dcc83;((_0x2dcc83=_0x2ebcd5[_0x2b01b5(0xcf)])==null?[]:_0x2dcc83)[_0x2b01b5(0x85)](_0x181475=>_0x181475[_0x2b01b5(0xce)]>_0x2c6481&&_0x181475[_0x2b01b5(0xce)]<_0x5f2b8d)[_0x2b01b5(0x8e)](_0x28a0ed=>{const _0x5d4007=_0x2b01b5;var _0x29a3e7;let _0x864348={...(_0x29a3e7=_0x28a0ed[_0x5d4007(0x80)])==null?{}:_0x29a3e7};delete _0x864348['spaceAbove'],delete _0x864348[_0x5d4007(0x6d)],_0x28a0ed['paragraphStyle']=_0x864348;});}function se(_0x47a1c4,_0x659fab){const _0x147310=_0x2918aa;return _0x47a1c4==null||_0x659fab==null||_0x47a1c4===_0x659fab?null:{'startOffset':Math[_0x147310(0x75)](_0x47a1c4,_0x659fab),'endOffset':Math['max'](_0x47a1c4,_0x659fab)};}function ce(_0x37b8f8){const _0x5aef68=_0x2918aa;return{'nextDocumentData':D(_0x37b8f8[_0x5aef68(0xae)]),'nextMetadata':T(_0x37b8f8[_0x5aef68(0x9c)],_0x37b8f8['blockId'],_0x37b8f8['config']),'cursorOffset':0x0};}function le(_0x23113b){const _0xb691e9=_0x2918aa;var _0x5bf049,_0x2892ed;let _0x19cea4=D(_0x23113b[_0xb691e9(0xae)]),_0x3eefff=O(_0x19cea4),_0x465e5f=me(_0x3eefff,_0x23113b['cursorOffset']);if(!_0x465e5f)return null;let _0x16f86c=_e(_0x3eefff,_0x465e5f),_0x613499=_0x16f86c[_0x16f86c[_0xb691e9(0xd4)]-0x1];if(!_0x613499||!ve(_0x3eefff,_0x465e5f,_0x613499)||_0x23113b[_0xb691e9(0x76)]<_0x613499[_0xb691e9(0xce)])return null;let _0x1ab0fa=A(_0x3eefff,_0x465e5f,_0x613499);if(_0x1ab0fa>=_0x465e5f[_0xb691e9(0x9b)])return null;_0x3eefff['dataStream']=[_0x3eefff[_0xb691e9(0x72)][_0xb691e9(0xb3)](0x0,_0x1ab0fa),_0x152f45[_0xb691e9(0xc3)],_0x3eefff[_0xb691e9(0x72)][_0xb691e9(0xb3)](_0x1ab0fa,_0x465e5f[_0xb691e9(0x9b)]),_0x3eefff[_0xb691e9(0x72)]['slice'](_0x465e5f[_0xb691e9(0x9b)]+0x1)][_0xb691e9(0xcb)](''),R(_0x3eefff[_0xb691e9(0xcf)],_0x1ab0fa,_0x465e5f[_0xb691e9(0x9b)],0x1),R(_0x3eefff[_0xb691e9(0x97)],_0x1ab0fa,_0x465e5f[_0xb691e9(0x9b)],0x1),R(_0x3eefff['customBlocks'],_0x1ab0fa,_0x465e5f['endIndex'],0x1),ke(_0x3eefff['textRuns'],_0x1ab0fa,_0x465e5f['endIndex'],0x1),z(_0x3eefff[_0xb691e9(0x7a)],_0x1ab0fa,_0x465e5f[_0xb691e9(0x9b)],0x1),z(_0x3eefff[_0xb691e9(0xa4)],_0x1ab0fa,_0x465e5f['endIndex'],0x1),z(_0x3eefff[_0xb691e9(0x77)],_0x1ab0fa,_0x465e5f[_0xb691e9(0x9b)],0x1),(_0x5bf049=_0x3eefff[_0xb691e9(0xeb)])==null||_0x5bf049[_0xb691e9(0x8e)](_0x181001=>{const _0x588926=_0xb691e9;_0x181001===_0x465e5f||_0x181001['blockId']===_0x465e5f[_0x588926(0xaf)]?_0x181001[_0x588926(0x9b)]=_0x1ab0fa:_0x181001[_0x588926(0xce)]>=_0x1ab0fa&&_0x181001[_0x588926(0xce)]<_0x465e5f['endIndex']&&(_0x181001[_0x588926(0xce)]+=0x1,_0x181001['endIndex']+=0x1);});let _0x27c9dc=_e(_0x3eefff,{..._0x465e5f,'endIndex':_0x1ab0fa});_0x27c9dc[_0xb691e9(0x8e)]((_0x4c0052,_0x5044c5)=>{const _0x45d97c=_0xb691e9;var _0x27d2f7;_0x4c0052[_0x45d97c(0x80)]={...(_0x27d2f7=_0x4c0052[_0x45d97c(0x80)])==null?{}:_0x27d2f7,...E(_0x5044c5===0x0,_0x5044c5===_0x27c9dc[_0x45d97c(0xd4)]-0x1)};});let _0x253c49=(_0x2892ed=_0x3eefff[_0xb691e9(0xcf)])==null?void 0x0:_0x2892ed[_0xb691e9(0x79)](_0x1dc1cd=>_0x1dc1cd[_0xb691e9(0xce)]===_0x1ab0fa+0x1);return _0x253c49&&(_0x253c49[_0xb691e9(0x80)]=ge(_0x253c49[_0xb691e9(0x80)])),{'nextDocumentData':_0x19cea4,'cursorOffset':_0x1ab0fa+0x1};}function ue(_0x335531){const _0x3fc2af=_0x2918aa;let _0x33fa86=D(_0x335531['documentData']),_0xa159=O(_0x33fa86),_0xe364be=me(_0xa159,_0x335531[_0x3fc2af(0x76)]);return _0xe364be&&de(_0x33fa86,_0xa159,_0xe364be,_0x335531[_0x3fc2af(0x76)],_0x335531[_0x3fc2af(0xb1)])||null;}function de(_0x10d651,_0x252766,_0x134d35,_0x2d6c8d,_0x32e2d7){const _0x636019=_0x2918aa;let _0xc9ae05=we(_0x252766,_0x134d35,_0x2d6c8d,_0x32e2d7);if(!_0xc9ae05)return null;let _0x41e1e4=_0xc9ae05['endTokenOffset']-0x1;return Te(_0x252766,_0xc9ae05[_0x636019(0xe7)][_0x636019(0xce)],_0xc9ae05[_0x636019(0xe7)]['startIndex']+0x1),{'nextDocumentData':_0x10d651,'cursorOffset':_0x41e1e4};}function fe(_0x577520,_0x3e2954){const _0x56bb28=_0x2918aa;var _0x2dff0d;return _0x577520==null||(_0x2dff0d=_0x577520['blockRanges'])==null?void 0x0:_0x2dff0d[_0x56bb28(0x79)](_0x147f34=>_0x147f34[_0x56bb28(0xe2)]===_0x238249[_0x56bb28(0x96)]&&_0x147f34[_0x56bb28(0xce)]<=_0x3e2954&&_0x3e2954<=_0x147f34[_0x56bb28(0x9b)]);}function pe(_0x376569){const _0x3ab2c4=_0x2918aa;var _0x209c35;let _0x4a10dd=_0x376569['documentData'][_0x3ab2c4(0x91)];if(!_0x4a10dd)return!0x1;let _0x582b36=_0x376569[_0x3ab2c4(0x88)]===_0x3ab2c4(0xd9)?_0x376569[_0x3ab2c4(0x76)]-0x1:_0x376569['cursorOffset'],_0xa213f4=_0x376569[_0x3ab2c4(0x88)]==='right'?_0x376569[_0x3ab2c4(0x76)]+0x1:_0x582b36;return((_0x209c35=_0x4a10dd[_0x3ab2c4(0xeb)])==null?[]:_0x209c35)[_0x3ab2c4(0xde)](_0x2e9a4d=>_0x2e9a4d[_0x3ab2c4(0xe2)]===_0x238249[_0x3ab2c4(0x96)]?_0x582b36===_0x2e9a4d[_0x3ab2c4(0xce)]||_0x582b36===_0x2e9a4d[_0x3ab2c4(0x9b)]||_0xa213f4===_0x2e9a4d[_0x3ab2c4(0xce)]||_0xa213f4===_0x2e9a4d['endIndex']:!0x1);}function me(_0x5e10a7,_0x4e2e4d){const _0x43589b=_0x2918aa;var _0x58f92e;return(_0x58f92e=_0x5e10a7[_0x43589b(0xeb)])==null?void 0x0:_0x58f92e['find'](_0x58e4c1=>{const _0x47503c=_0x43589b;let _0x19e3d2=j(_0x5e10a7,_0x58e4c1);return _0x58e4c1[_0x47503c(0xe2)]===_0x238249[_0x47503c(0x96)]&&_0x58e4c1[_0x47503c(0xce)]<=_0x4e2e4d&&_0x4e2e4d<=_0x19e3d2+0x2;});}function E(_0xd18003,_0x1ebbed,_0x282f39=!0x1){return{'indentEnd':{'v':0x14},'indentStart':{'v':0x14},..._0xd18003&&_0x282f39?{'spaceAbove':{'v':0x8}}:{},'textStyle':{'ff':ie,'fs':0xc}};}function he(_0x1be9d9,_0x170891,_0x2e5a05,_0x56064e=!0x1){const _0x56fa91=_0x2918aa;var _0x2c41ea;let _0x58ef9e=((_0x2c41ea=_0x1be9d9[_0x56fa91(0xcf)])==null?[]:_0x2c41ea)[_0x56fa91(0x85)](_0x4afcfd=>_0x4afcfd[_0x56fa91(0xce)]>_0x170891&&_0x4afcfd[_0x56fa91(0xce)]<_0x2e5a05);_0x58ef9e[_0x56fa91(0x8e)]((_0x40a64b,_0x7af9ff)=>{const _0x1f8984=_0x56fa91;var _0x2a656b;_0x40a64b['paragraphStyle']={...(_0x2a656b=_0x40a64b[_0x1f8984(0x80)])==null?{}:_0x2a656b,...E(_0x7af9ff===0x0,_0x7af9ff===_0x58ef9e[_0x1f8984(0xd4)]-0x1,_0x56064e)};});}function ge(_0x2ca310){const _0x1eefaa=_0x2918aa;var _0x5ed3a8,_0x513246;let _0x2179c5={..._0x2ca310==null?{}:_0x2ca310};return delete _0x2179c5['indentEnd'],delete _0x2179c5[_0x1eefaa(0xd6)],delete _0x2179c5[_0x1eefaa(0xcd)],delete _0x2179c5[_0x1eefaa(0x6d)],((_0x5ed3a8=_0x2179c5['textStyle'])==null?void 0x0:_0x5ed3a8['ff'])===ie&&((_0x513246=_0x2179c5['textStyle'])==null?void 0x0:_0x513246['fs'])===0xc&&delete _0x2179c5['textStyle'],_0x2179c5;}function _e(_0x1248c0,_0x23533e){const _0x538d10=_0x2918aa;var _0x5e6743;let _0x4d3238=j(_0x1248c0,_0x23533e);return((_0x5e6743=_0x1248c0[_0x538d10(0xcf)])==null?[]:_0x5e6743)['filter'](_0x17211a=>_0x17211a['startIndex']>_0x23533e[_0x538d10(0xce)]&&_0x17211a[_0x538d10(0xce)]<_0x4d3238);}function ve(_0x34acf5,_0x34eabb,_0x45fadc){const _0x19ca87=_0x2918aa;let _0xcce147=A(_0x34acf5,_0x34eabb,_0x45fadc),_0x110b8e=_0x34acf5['dataStream'][_0x19ca87(0xb3)](_0xcce147,_0x45fadc[_0x19ca87(0xce)]);return Array['from'](_0x110b8e)[_0x19ca87(0xc1)](_0x553924=>_0x553924===_0x152f45[_0x19ca87(0xc8)]||_0x553924===_0x152f45[_0x19ca87(0xc3)]);}function D(_0x318c15){const _0x421b20=_0x2918aa;return _0x3348f8[_0x421b20(0xec)](_0x318c15);}function O(_0xa1a162){const _0x59080e=_0x2918aa;if(!_0xa1a162[_0x59080e(0x91)])throw Error(_0x59080e(0x7b));return _0xa1a162['body'];}function ye(_0x5b7859,_0x624d88,_0x10f05e){const _0x2803a6=_0x2918aa;if(_0x624d88==null||_0x10f05e==null){let _0x201ca2=xe(_0x5b7859);return{'startOffset':_0x201ca2,'endOffset':_0x201ca2};}let _0x475993=Math[_0x2803a6(0x75)](_0x624d88,_0x10f05e),_0x4283e5=Math[_0x2803a6(0xb6)](_0x624d88,_0x10f05e);if(_0x475993===_0x4283e5){let _0x53d1f1=be(_0x5b7859,_0x475993);return{'startOffset':_0x53d1f1,'endOffset':_0x53d1f1};}return Ce(_0x5b7859,_0x475993,_0x4283e5);}function be(_0xfc0731,_0x117d50){const _0x449f30=_0x2918aa;return _0x117d50===0x0&&_0xfc0731[_0x449f30(0x72)][0x0]===_0x152f45[_0x449f30(0xad)]?0x1:_0x117d50;}function xe(_0x464d48){const _0x52640f=_0x2918aa;return _0x464d48[_0x52640f(0x72)][_0x52640f(0xb8)](_0x152f45[_0x52640f(0xbe)])?Math[_0x52640f(0xb6)](0x0,_0x464d48[_0x52640f(0x72)]['length']-0x1):_0x464d48[_0x52640f(0x72)][_0x52640f(0xd4)];}function Se(_0x5664c7,_0x4cb54a,_0x261e67){const _0x351232=_0x2918aa;var _0x31849a;let _0xb3c3b5=Math['min'](_0x4cb54a,_0x261e67),_0x585e2d=Math[_0x351232(0xb6)](_0x4cb54a,_0x261e67);return!!((_0x31849a=_0x5664c7['tables'])!=null&&_0x31849a['some'](_0x431cc2=>_0xb3c3b5>_0x431cc2[_0x351232(0xce)]&&_0xb3c3b5<_0x431cc2[_0x351232(0x9b)]||_0x585e2d>_0x431cc2[_0x351232(0xce)]&&_0x585e2d<_0x431cc2[_0x351232(0x9b)]||_0xb3c3b5<=_0x431cc2[_0x351232(0xce)]&&_0x585e2d>=_0x431cc2[_0x351232(0x9b)]));}function Ce(_0x640615,_0x1c6104,_0x2c7589){const _0x36c0e7=_0x2918aa;var _0x23ecac,_0x539a4b;let _0x2fbc0d=[...(_0x23ecac=_0x640615[_0x36c0e7(0xcf)])==null?[]:_0x23ecac]['sort']((_0x50f174,_0x5001cd)=>_0x50f174['startIndex']-_0x5001cd[_0x36c0e7(0xce)]),_0x500630=_0x2fbc0d[_0x36c0e7(0x79)]((_0x175629,_0x22eb0c)=>(_0x22eb0c===0x0?0x0:_0x2fbc0d[_0x22eb0c-0x1][_0x36c0e7(0xce)]+0x1)<=_0x1c6104&&_0x1c6104<=_0x175629[_0x36c0e7(0xce)]),_0x3006c3=(_0x539a4b=_0x2fbc0d[_0x36c0e7(0x79)](_0x13ff68=>_0x13ff68[_0x36c0e7(0xce)]>=_0x2c7589-0x1))==null?_0x2fbc0d[_0x2fbc0d[_0x36c0e7(0xd4)]-0x1]:_0x539a4b;return{'startOffset':_0x500630?k(_0x2fbc0d,_0x500630):_0x1c6104,'endOffset':_0x3006c3?_0x3006c3[_0x36c0e7(0xce)]+0x1:_0x2c7589};}function k(_0x5b023b,_0x580fd4){const _0x413fe9=_0x2918aa;let _0x3986f9=_0x5b023b[_0x413fe9(0x93)](_0x580fd4);return _0x3986f9>0x0?_0x5b023b[_0x3986f9-0x1][_0x413fe9(0xce)]+0x1:0x0;}function A(_0x326398,_0x11e8a8,_0x2d096f){const _0x220c5d=_0x2918aa;var _0x22a71b;return Math[_0x220c5d(0xb6)](k((_0x22a71b=_0x326398[_0x220c5d(0xcf)])==null?[]:_0x22a71b,_0x2d096f),_0x11e8a8['startIndex']+0x1);}function j(_0x3c61e6,_0xa26af){const _0xd5de22=_0x2918aa;return _0x3c61e6[_0xd5de22(0x72)][_0xa26af[_0xd5de22(0x9b)]]===_0x152f45[_0xd5de22(0xc3)]?_0xa26af['endIndex']:_0x3c61e6[_0xd5de22(0x72)][_0xa26af[_0xd5de22(0x9b)]+0x1]===_0x152f45['BLOCK_END']?_0xa26af[_0xd5de22(0x9b)]+0x1:_0xa26af[_0xd5de22(0x9b)];}function we(_0x734abe,_0x1e8be6,_0x1334b7,_0x265963){const _0x349c76=_0x2918aa;var _0x49153a,_0x374ca2;let _0x31c73d=j(_0x734abe,_0x1e8be6),_0x119949=((_0x49153a=_0x734abe[_0x349c76(0xcf)])==null?[]:_0x49153a)[_0x349c76(0x79)](_0x54f123=>_0x54f123[_0x349c76(0xce)]===_0x31c73d+0x1);if(!_0x119949||_0x265963!=null&&_0x119949['startIndex']!==_0x265963||_0x1334b7<_0x31c73d||_0x1334b7>_0x119949[_0x349c76(0xce)]+0x1||_0x734abe[_0x349c76(0x72)][_0x119949['startIndex']]!==_0x152f45['PARAGRAPH'])return null;let _0x1ff822=k((_0x374ca2=_0x734abe[_0x349c76(0xcf)])==null?[]:_0x374ca2,_0x119949),_0xc3c972=_0x734abe[_0x349c76(0x72)]['slice'](_0x1ff822,_0x119949['startIndex']);return Array['from'](_0xc3c972)[_0x349c76(0xc1)](_0x271f9a=>_0x271f9a===_0x152f45[_0x349c76(0xc3)])?{'paragraph':_0x119949,'endTokenOffset':_0x31c73d}:null;}function M(_0x4431f6,_0x1a5d7e){const _0x3ac63b=_0x2918aa;var _0x423386;let _0x1e1b00=j(_0x4431f6,_0x1a5d7e),_0x5d9d6f=_0x4431f6[_0x3ac63b(0x72)][_0x1e1b00+0x1];_0x5d9d6f!==_0x152f45[_0x3ac63b(0xbe)]&&_0x5d9d6f!==void 0x0||N(_0x4431f6,_0x1e1b00+0x1,_0x152f45[_0x3ac63b(0xad)],{'paragraphs':[{'startIndex':0x0,'paragraphId':_0x309a82(new Set((_0x423386=_0x4431f6[_0x3ac63b(0xcf)])==null?void 0x0:_0x423386[_0x3ac63b(0xe8)](_0x46a918=>_0x46a918[_0x3ac63b(0x6c)])))}]});}function N(_0x419890,_0x27971c,_0x277582,_0x6fd2b={}){const _0x433981=_0x2918aa;var _0x121f0f,_0x5a8b12;if(_0x277582){if(_0x419890[_0x433981(0x72)]=''+_0x419890[_0x433981(0x72)][_0x433981(0xb3)](0x0,_0x27971c)+_0x277582+_0x419890[_0x433981(0x72)]['slice'](_0x27971c),Ee(_0x419890,_0x27971c,_0x277582[_0x433981(0xd4)]),(_0x121f0f=_0x6fd2b[_0x433981(0xcf)])!=null&&_0x121f0f[_0x433981(0xd4)]){var _0x5b83aa;_0x419890['paragraphs']=[...(_0x5b83aa=_0x419890[_0x433981(0xcf)])==null?[]:_0x5b83aa,..._0x6fd2b['paragraphs'][_0x433981(0xe8)](_0x48c26c=>({..._0x48c26c,'startIndex':_0x48c26c[_0x433981(0xce)]+_0x27971c}))][_0x433981(0xda)]((_0x425b60,_0x109d7a)=>_0x425b60[_0x433981(0xce)]-_0x109d7a[_0x433981(0xce)]);}if((_0x5a8b12=_0x6fd2b['blockRanges'])!=null&&_0x5a8b12[_0x433981(0xd4)]){var _0x43e4df;_0x419890[_0x433981(0xeb)]=[...(_0x43e4df=_0x419890['blockRanges'])==null?[]:_0x43e4df,..._0x6fd2b[_0x433981(0xeb)][_0x433981(0xe8)](_0x16b002=>({..._0x16b002,'startIndex':_0x16b002['startIndex']+_0x27971c,'endIndex':_0x16b002[_0x433981(0x9b)]+_0x27971c}))][_0x433981(0xda)]((_0x4261d0,_0x54bc3e)=>_0x4261d0[_0x433981(0xce)]-_0x54bc3e['startIndex']);}}}function Te(_0x57fad7,_0x4b55f7,_0x3cfa3f){const _0x23406d=_0x2918aa;let _0x5d7d82=_0x3cfa3f-_0x4b55f7;_0x57fad7[_0x23406d(0x72)]=''+_0x57fad7[_0x23406d(0x72)][_0x23406d(0xb3)](0x0,_0x4b55f7)+_0x57fad7[_0x23406d(0x72)][_0x23406d(0xb3)](_0x3cfa3f),De(_0x57fad7,_0x4b55f7,_0x5d7d82);}function Ee(_0x2584d4,_0x3725d9,_0x251d73){const _0x47f663=_0x2918aa;_0x2584d4[_0x47f663(0xcf)]=P(_0x2584d4[_0x47f663(0xcf)],_0x3725d9,_0x251d73),_0x2584d4[_0x47f663(0x97)]=P(_0x2584d4['sectionBreaks'],_0x3725d9,_0x251d73),_0x2584d4[_0x47f663(0x95)]=P(_0x2584d4[_0x47f663(0x95)],_0x3725d9,_0x251d73),_0x2584d4['textRuns']=Oe(_0x2584d4[_0x47f663(0xbf)],_0x3725d9,_0x251d73),_0x2584d4[_0x47f663(0x7a)]=I(_0x2584d4[_0x47f663(0x7a)],_0x3725d9,_0x251d73),_0x2584d4['customRanges']=I(_0x2584d4['customRanges'],_0x3725d9,_0x251d73),_0x2584d4[_0x47f663(0x77)]=I(_0x2584d4['customDecorations'],_0x3725d9,_0x251d73),_0x2584d4[_0x47f663(0xeb)]=I(_0x2584d4[_0x47f663(0xeb)],_0x3725d9,_0x251d73);}function De(_0x2facf1,_0x57ce8f,_0x24d458){const _0x58ada5=_0x2918aa;var _0x28f482,_0x3e3c07;_0x2facf1[_0x58ada5(0xcf)]=F(_0x2facf1[_0x58ada5(0xcf)],_0x57ce8f,_0x24d458),_0x2facf1[_0x58ada5(0x97)]=F(_0x2facf1[_0x58ada5(0x97)],_0x57ce8f,_0x24d458),_0x2facf1[_0x58ada5(0x95)]=F(_0x2facf1[_0x58ada5(0x95)],_0x57ce8f,_0x24d458),_0x2facf1[_0x58ada5(0xbf)]=(_0x28f482=L((_0x3e3c07=_0x2facf1['textRuns'])==null?void 0x0:_0x3e3c07[_0x58ada5(0xe8)](_0x1e0848=>({..._0x1e0848,'startIndex':_0x1e0848['st'],'endIndex':_0x1e0848['ed']})),_0x57ce8f,_0x24d458))==null?void 0x0:_0x28f482[_0x58ada5(0xe8)](_0xf6bead=>{let {startIndex:_0x1f29f3,endIndex:_0xf7b4f4,..._0x4883ba}=_0xf6bead;return{..._0x4883ba,'st':_0x1f29f3,'ed':_0xf7b4f4};}),_0x2facf1[_0x58ada5(0x7a)]=L(_0x2facf1[_0x58ada5(0x7a)],_0x57ce8f,_0x24d458),_0x2facf1[_0x58ada5(0xa4)]=L(_0x2facf1[_0x58ada5(0xa4)],_0x57ce8f,_0x24d458),_0x2facf1[_0x58ada5(0x77)]=L(_0x2facf1['customDecorations'],_0x57ce8f,_0x24d458),_0x2facf1[_0x58ada5(0xeb)]=L(_0x2facf1['blockRanges'],_0x57ce8f,_0x24d458);}function P(_0x118b1,_0x22fd6e,_0x233c18){const _0x4b2f88=_0x2918aa;return _0x118b1==null?void 0x0:_0x118b1[_0x4b2f88(0xe8)](_0x175eac=>_0x175eac[_0x4b2f88(0xce)]>=_0x22fd6e?{..._0x175eac,'startIndex':_0x175eac[_0x4b2f88(0xce)]+_0x233c18}:_0x175eac);}function F(_0x197b5a,_0x243881,_0x41a251){const _0x1c4319=_0x2918aa;let _0x3d0922=_0x243881+_0x41a251;return _0x197b5a==null?void 0x0:_0x197b5a[_0x1c4319(0xe8)](_0x3465c9=>_0x3465c9[_0x1c4319(0xce)]>=_0x243881&&_0x3465c9['startIndex']<_0x3d0922?null:_0x3465c9['startIndex']>=_0x3d0922?{..._0x3465c9,'startIndex':_0x3465c9[_0x1c4319(0xce)]-_0x41a251}:_0x3465c9)['filter'](_0x2a5c66=>_0x2a5c66!=null);}function Oe(_0x359839,_0x463568,_0x12e18c){const _0x30d1b4=_0x2918aa;return _0x359839==null?void 0x0:_0x359839[_0x30d1b4(0xe8)](_0x5c8cd9=>_0x5c8cd9['st']>=_0x463568?{..._0x5c8cd9,'st':_0x5c8cd9['st']+_0x12e18c,'ed':_0x5c8cd9['ed']+_0x12e18c}:_0x5c8cd9['ed']>_0x463568?{..._0x5c8cd9,'ed':_0x5c8cd9['ed']+_0x12e18c}:_0x5c8cd9);}function I(_0x3e3561,_0x128dce,_0x4158d5){const _0xc08bc5=_0x2918aa;return _0x3e3561==null?void 0x0:_0x3e3561[_0xc08bc5(0xe8)](_0x458552=>_0x458552[_0xc08bc5(0xce)]>=_0x128dce?{..._0x458552,'startIndex':_0x458552[_0xc08bc5(0xce)]+_0x4158d5,'endIndex':_0x458552['endIndex']+_0x4158d5}:_0x458552[_0xc08bc5(0x9b)]>=_0x128dce?{..._0x458552,'endIndex':_0x458552['endIndex']+_0x4158d5}:_0x458552);}function L(_0x62c002,_0x23f233,_0x3261ec){const _0x45784f=_0x2918aa;let _0x5bfbb8=_0x23f233+_0x3261ec;return _0x62c002==null?void 0x0:_0x62c002[_0x45784f(0xe8)](_0x27d5e5=>_0x27d5e5['startIndex']>=_0x23f233&&_0x27d5e5[_0x45784f(0x9b)]<_0x5bfbb8?null:_0x27d5e5[_0x45784f(0xce)]>=_0x5bfbb8?{..._0x27d5e5,'startIndex':_0x27d5e5[_0x45784f(0xce)]-_0x3261ec,'endIndex':_0x27d5e5[_0x45784f(0x9b)]-_0x3261ec}:_0x27d5e5[_0x45784f(0x9b)]>=_0x23f233?{..._0x27d5e5,'startIndex':_0x27d5e5['startIndex']<_0x23f233?_0x27d5e5[_0x45784f(0xce)]:_0x23f233,'endIndex':Math[_0x45784f(0xb6)](_0x23f233,_0x27d5e5['endIndex']-_0x3261ec)}:_0x27d5e5)[_0x45784f(0x85)](_0x9de83f=>_0x9de83f!=null);}function R(_0x5dad18,_0x7d9a07,_0x14ef3f,_0x1b328b){_0x5dad18==null||_0x5dad18['forEach'](_0x25e9ff=>{const _0x36b71b=_0x4721;_0x25e9ff[_0x36b71b(0xce)]>=_0x7d9a07&&_0x25e9ff[_0x36b71b(0xce)]<_0x14ef3f&&(_0x25e9ff[_0x36b71b(0xce)]+=_0x1b328b);});}function ke(_0x41a464,_0x3fd505,_0x3f78e1,_0x40cc77){const _0x1951b7=_0x2918aa;_0x41a464==null||_0x41a464[_0x1951b7(0x8e)](_0x556779=>{_0x556779['st']>=_0x3fd505&&_0x556779['st']<_0x3f78e1?(_0x556779['st']+=_0x40cc77,_0x556779['ed']+=_0x40cc77):_0x556779['ed']>_0x3fd505&&_0x556779['ed']<_0x3f78e1&&(_0x556779['ed']+=_0x40cc77);});}function z(_0x118308,_0x2a8b77,_0x5a216a,_0x567763){const _0x6c1af4=_0x2918aa;_0x118308==null||_0x118308[_0x6c1af4(0x8e)](_0x386e83=>{const _0x357bce=_0x6c1af4;_0x386e83['startIndex']>=_0x2a8b77&&_0x386e83[_0x357bce(0xce)]<_0x5a216a?(_0x386e83[_0x357bce(0xce)]+=_0x567763,_0x386e83['endIndex']+=_0x567763):_0x386e83['endIndex']>_0x2a8b77&&_0x386e83[_0x357bce(0x9b)]<_0x5a216a&&(_0x386e83[_0x357bce(0x9b)]+=_0x567763);});}function B(_0x2ed103){'@babel/helpers - typeof';const _0x1b43c0=_0x2918aa;return B=typeof Symbol==_0x1b43c0(0x94)&&typeof Symbol['iterator']==_0x1b43c0(0xd3)?function(_0x5c0b41){return typeof _0x5c0b41;}:function(_0x4d2d4b){const _0x16f37f=_0x1b43c0;return _0x4d2d4b&&typeof Symbol==_0x16f37f(0x94)&&_0x4d2d4b[_0x16f37f(0xb5)]===Symbol&&_0x4d2d4b!==Symbol[_0x16f37f(0x92)]?_0x16f37f(0xd3):typeof _0x4d2d4b;},B(_0x2ed103);}function Ae(_0x33c44e,_0x409d3c){const _0x489959=_0x2918aa;if(B(_0x33c44e)!=_0x489959(0xba)||!_0x33c44e)return _0x33c44e;var _0x5ed8b6=_0x33c44e[Symbol['toPrimitive']];if(_0x5ed8b6!==void 0x0){var _0x412fc0=_0x5ed8b6[_0x489959(0xc9)](_0x33c44e,_0x409d3c||'default');if(B(_0x412fc0)!=_0x489959(0xba))return _0x412fc0;throw TypeError(_0x489959(0x90));}return(_0x409d3c==='string'?String:Number)(_0x33c44e);}function je(_0x5c6c40){const _0x13d917=_0x2918aa;var _0x3318b6=Ae(_0x5c6c40,_0x13d917(0xa3));return B(_0x3318b6)==_0x13d917(0xd3)?_0x3318b6:_0x3318b6+'';}function _0x303f(){const _0x1a71e5=['endOffset','getCurrentUnitOfType','left','sort','registerCommand','monospace','replaceOp','some','commandService','serialize','nextMetadata','blockType','8921605bDEPWG','entries','14940mtFcOU','276948XbnRBM','paragraph','map','_change$','nextDocumentData','blockRanges','deepClone','paragraphId','spaceBelow','setConfig','removeCode','previousDocumentData','DOC_CODE_PLUGIN','dataStream','clear','startOffset','min','cursorOffset','customDecorations','docs-code.command.exit','find','tables','Document\x20body\x20is\x20required','docs-code.command.update','getParagraphsInRange','asObservable','1.0.0-insiders.20260629-12f2e44','paragraphStyle','620OqbBch','get','stringify','14280896FapObr','filter','version','syncExecuteCommand','direction','unitId','_commandService','63lffGxh','getUniverDocInstance','delete','forEach','_resources','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','body','prototype','indexOf','function','customBlocks','CODE','sectionBreaks','codes','_docsCodeModel','javascript','endIndex','metadata','3701CkyQvk','config','docs-code.command.insert','compose','removeUnit','getSnapshot','string','customRanges','next','_initResource','getInstance','model','consumeInsertRange','32080tywtHo','_configService','set','PARAGRAPH','documentData','blockId','@univerjs-pro/docs-code','paragraphStartIndex','decorate','slice','_injector','constructor','max','_config','endsWith','disposeWithMe','object','parse','_setResource','_resourceManagerService','SECTION_BREAK','textRuns','packageName','every','pluginName','BLOCK_END','4968270eFDkWE','COMMAND','1992053IFkuJr','getOwnPropertyDescriptor','BLOCK_START','call','add','join','UNIVER_DOC','spaceAbove','startIndex','paragraphs','getUnitId','deserialize','range','symbol','length','setCodeConfig','indentStart'];_0x303f=function(){return _0x1a71e5;};return _0x303f();}function V(_0x778c79,_0x293364,_0x104fd8){return(_0x293364=je(_0x293364))in _0x778c79?Object['defineProperty'](_0x778c79,_0x293364,{'value':_0x104fd8,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x778c79[_0x293364]=_0x104fd8,_0x778c79;}var H=class extends _0x7ff31{constructor(..._0x141bce){const _0x1eda1c=_0x2918aa;super(..._0x141bce),V(this,_0x1eda1c(0x8f),new Map()),V(this,_0x1eda1c(0xe9),new _0x504168()),V(this,'change$',this[_0x1eda1c(0xe9)][_0x1eda1c(0x7e)]());}['getCodeConfig'](_0xe4228a,_0x5b2e61){const _0x32ff83=_0x2918aa;return w(this[_0x32ff83(0x8f)]['get'](_0xe4228a))['codes'][_0x5b2e61];}[_0x2918aa(0xd5)](_0x4b59a8,_0x2b4c52,_0x24ba9a){const _0x490754=_0x2918aa;this[_0x490754(0xbc)](_0x4b59a8,_0x2b4c52,T(this[_0x490754(0x8f)][_0x490754(0x82)](_0x4b59a8),_0x2b4c52,_0x24ba9a));}[_0x2918aa(0x6f)](_0x5cdecb,_0x54f6ab){const _0x40983e=_0x2918aa;this[_0x40983e(0xbc)](_0x5cdecb,_0x54f6ab,re(this[_0x40983e(0x8f)][_0x40983e(0x82)](_0x5cdecb),_0x54f6ab));}['serialize'](_0x136f95){return w(this['_resources']['get'](_0x136f95));}[_0x2918aa(0xd1)](_0xd0e29a,_0x17c415){const _0x86bdf4=_0x2918aa;this[_0x86bdf4(0x8f)]['set'](_0xd0e29a,w(_0x17c415)),this[_0x86bdf4(0xe9)][_0x86bdf4(0xa5)]({'unitId':_0xd0e29a});}[_0x2918aa(0xa1)](_0x54298d){const _0x2a5acb=_0x2918aa;this[_0x2a5acb(0x8f)][_0x2a5acb(0x8d)](_0x54298d),this[_0x2a5acb(0xe9)][_0x2a5acb(0xa5)]({'unitId':_0x54298d});}['dispose'](){const _0x449426=_0x2918aa;super['dispose'](),this[_0x449426(0x8f)][_0x449426(0x73)](),this[_0x449426(0xe9)]['complete']();}[_0x2918aa(0xbc)](_0x3028f0,_0x7a353a,_0x410da6){const _0x4e8844=_0x2918aa;this[_0x4e8844(0x8f)][_0x4e8844(0xac)](_0x3028f0,_0x410da6),this[_0x4e8844(0xe9)][_0x4e8844(0xa5)]({'unitId':_0x3028f0,'blockId':_0x7a353a});}};const Me={'id':'docs-code.command.insert-below','type':_0x4448b1[_0x2918aa(0xc5)],'handler':_0xf2866=>{const _0xfcceec=_0x2918aa;let _0x8a0b65=Le(_0xf2866);if(_0x8a0b65)return _0xf2866[_0xfcceec(0x82)](_0x3581cd)[_0xfcceec(0x87)](U['id'],{'startOffset':_0x8a0b65[_0xfcceec(0x74)],'endOffset':_0x8a0b65[_0xfcceec(0xd7)],'unitId':_0x8a0b65['unitId']});let _0x25f29f=Re(_0xf2866);if(!_0x25f29f)return!0x1;let _0x912e15=_0x25f29f[_0xfcceec(0xce)]+0x1;return _0xf2866[_0xfcceec(0x82)](_0x3581cd)[_0xfcceec(0x87)](U['id'],{'startOffset':_0x912e15,'endOffset':_0x912e15});}},Ne={'id':'docs-code.command.consume-boundary-delete','type':_0x4448b1[_0x2918aa(0xc5)],'handler':()=>!0x0},U={'id':_0x2918aa(0x9f),'type':_0x4448b1['COMMAND'],'handler':(_0x45cd9a,_0x1b1dce)=>{const _0x418fe2=_0x2918aa;var _0x2a7cc2,_0x67fbe8,_0x17f529;let _0x1aceea=W(_0x45cd9a,_0x1b1dce==null?void 0x0:_0x1b1dce[_0x418fe2(0x89)]);if(!_0x1aceea)return!0x1;let _0x64b0cd=G(_0x45cd9a),_0x4ca150=ae({'blockId':(_0x2a7cc2=_0x1b1dce==null?void 0x0:_0x1b1dce['blockId'])==null?_0x50f53a(0x6):_0x2a7cc2,'config':_0x1b1dce==null?void 0x0:_0x1b1dce['config'],'documentData':_0x1aceea[_0x418fe2(0x70)],'endOffset':(_0x67fbe8=_0x1b1dce==null?void 0x0:_0x1b1dce['endOffset'])==null?_0x64b0cd==null?void 0x0:_0x64b0cd[_0x418fe2(0xd7)]:_0x67fbe8,'metadata':_0x1aceea['model']['serialize'](_0x1aceea['unitId']),'startOffset':(_0x17f529=_0x1b1dce==null?void 0x0:_0x1b1dce[_0x418fe2(0x74)])==null?_0x64b0cd==null?void 0x0:_0x64b0cd[_0x418fe2(0x74)]:_0x17f529}),_0x3621c9=q(_0x1aceea['commandService'],_0x1aceea['unitId'],_0x1aceea['previousDocumentData'],_0x4ca150[_0x418fe2(0xea)],_0x4ca150['cursorOffset']);return _0x3621c9&&_0x4ca150[_0x418fe2(0xe1)]&&_0x1aceea[_0x418fe2(0xa8)][_0x418fe2(0xd1)](_0x1aceea[_0x418fe2(0x89)],_0x4ca150[_0x418fe2(0xe1)]),_0x3621c9;}},Pe={'id':_0x2918aa(0x7c),'type':_0x4448b1[_0x2918aa(0xc5)],'handler':(_0x398fbb,_0x22604c)=>{const _0xcaad2e=_0x2918aa;if(!_0x22604c)return!0x1;let _0x8f07bf=W(_0x398fbb,_0x22604c[_0xcaad2e(0x89)]);if(!_0x8f07bf)return!0x1;let _0x40040f=ce({'blockId':_0x22604c[_0xcaad2e(0xaf)],'config':_0x22604c['config'],'documentData':_0x8f07bf[_0xcaad2e(0x70)],'metadata':_0x8f07bf[_0xcaad2e(0xa8)][_0xcaad2e(0xe0)](_0x8f07bf[_0xcaad2e(0x89)])});return _0x40040f[_0xcaad2e(0xe1)]&&_0x8f07bf[_0xcaad2e(0xa8)][_0xcaad2e(0xd1)](_0x8f07bf['unitId'],_0x40040f[_0xcaad2e(0xe1)]),!0x0;}},Fe={'id':_0x2918aa(0x78),'type':_0x4448b1[_0x2918aa(0xc5)],'handler':(_0x117e35,_0x2e7ca9)=>{const _0x31f4c8=_0x2918aa;var _0x27a37a,_0x1b845d;let _0x243856=W(_0x117e35,_0x2e7ca9==null?void 0x0:_0x2e7ca9[_0x31f4c8(0x89)]);if(!_0x243856)return!0x1;let _0x26d390=(_0x27a37a=_0x2e7ca9==null?void 0x0:_0x2e7ca9[_0x31f4c8(0x76)])==null?(_0x1b845d=G(_0x117e35))==null?void 0x0:_0x1b845d[_0x31f4c8(0x74)]:_0x27a37a;if(_0x26d390==null)return!0x1;let _0x414f80=le({'cursorOffset':_0x26d390,'documentData':_0x243856[_0x31f4c8(0x70)]});return _0x414f80?q(_0x243856[_0x31f4c8(0xdf)],_0x243856[_0x31f4c8(0x89)],_0x243856[_0x31f4c8(0x70)],_0x414f80[_0x31f4c8(0xea)],_0x414f80[_0x31f4c8(0x76)]):!0x1;}},Ie={'id':'docs-code.command.cancel-empty-paragraph','type':_0x4448b1[_0x2918aa(0xc5)],'handler':(_0x82f01,_0x18ce13)=>{const _0x33f0c8=_0x2918aa;var _0x5733ab,_0x11a412;let _0x4bc559=W(_0x82f01,_0x18ce13==null?void 0x0:_0x18ce13[_0x33f0c8(0x89)]);if(!_0x4bc559)return!0x1;let _0x5a02a2=(_0x5733ab=_0x18ce13==null?void 0x0:_0x18ce13[_0x33f0c8(0x76)])==null?(_0x11a412=G(_0x82f01))==null?void 0x0:_0x11a412[_0x33f0c8(0x74)]:_0x5733ab;if(_0x5a02a2==null)return!0x1;let _0x4c0be4=ue({'cursorOffset':_0x5a02a2,'documentData':_0x4bc559[_0x33f0c8(0x70)],'paragraphStartIndex':_0x18ce13==null?void 0x0:_0x18ce13[_0x33f0c8(0xb1)]});return _0x4c0be4?q(_0x4bc559[_0x33f0c8(0xdf)],_0x4bc559[_0x33f0c8(0x89)],_0x4bc559['previousDocumentData'],_0x4c0be4[_0x33f0c8(0xea)],_0x4c0be4[_0x33f0c8(0x76)]):!0x1;}};function W(_0x596e12,_0x2abdb8){const _0x4f3a14=_0x2918aa;let _0x2a1c1d=_0x596e12[_0x4f3a14(0x82)](_0x20984d),_0x196684=_0x2abdb8?_0x2a1c1d[_0x4f3a14(0x8c)](_0x2abdb8):_0x2a1c1d[_0x4f3a14(0xd8)](_0x50ff8e[_0x4f3a14(0xcc)]);return _0x196684?{'commandService':_0x596e12[_0x4f3a14(0x82)](_0x3581cd),'model':_0x596e12[_0x4f3a14(0x82)](H),'previousDocumentData':_0x196684[_0x4f3a14(0xa2)](),'unitId':_0x196684[_0x4f3a14(0xd0)]()}:null;}function _0x4721(_0x44e784,_0xd5c8c5){_0x44e784=_0x44e784-0x6c;const _0x303fc1=_0x303f();let _0x4721ae=_0x303fc1[_0x44e784];return _0x4721ae;}function G(_0x43edd2){const _0x5243fa=_0x2918aa;var _0x17c90c;return(_0x17c90c=_0x43edd2[_0x5243fa(0x82)](_0x308de8)['getTextRanges']())==null?void 0x0:_0x17c90c[0x0];}function Le(_0x5e29d4){const _0x55a3c0=_0x2918aa;var _0x5e1458;let _0x32f272=(_0x5e1458=_0x5e29d4[_0x55a3c0(0x82)](_0x20984d)[_0x55a3c0(0xd8)](_0x50ff8e['UNIVER_DOC']))==null?void 0x0:_0x5e1458[_0x55a3c0(0xd0)]();try{return _0x5e29d4[_0x55a3c0(0x82)](_0x26ecbc)[_0x55a3c0(0xa9)](_0x32f272);}catch{return null;}}function Re(_0x50ee3f){const _0x2efba8=_0x2918aa;var _0x53cbb6,_0x1e5f0c,_0x2c9786;let _0x1fc85e=G(_0x50ee3f);if(!_0x1fc85e)return null;let _0x2a134e=_0x50ee3f[_0x2efba8(0x82)](_0x20984d)[_0x2efba8(0xd8)](_0x50ff8e[_0x2efba8(0xcc)]),_0x242478=_0x2a134e==null?void 0x0:_0x2a134e['getBody']();return _0x242478?(_0x53cbb6=_0x1dfe3e[_0x2efba8(0xd2)][_0x2efba8(0x7d)](_0x1fc85e,(_0x1e5f0c=_0x242478[_0x2efba8(0xcf)])==null?[]:_0x1e5f0c,(_0x2c9786=_0x242478[_0x2efba8(0x72)])==null?'':_0x2c9786)[0x0])==null?null:_0x53cbb6:null;}function ze(_0x1aad27,_0x3305e8){const _0x33ff01=_0x2918aa;var _0xaab6f7,_0x19f0ad,_0x4722af,_0x3ae5f6,_0x1f24cf,_0x38acf6,_0x1bc7c0,_0x5189c8,_0x22249c,_0xc3f3d4,_0x43351e,_0x329fb9,_0x493cf4,_0x3575e5,_0x75f9c3,_0x6ab05f,_0x3f785f,_0x4520ce;let _0x38e031=_0xaa2b42[_0x33ff01(0xa7)]();return[K(_0x38e031,[_0x33ff01(0x91),_0x33ff01(0x72)],(_0xaab6f7=_0x1aad27[_0x33ff01(0x91)])==null?void 0x0:_0xaab6f7[_0x33ff01(0x72)],(_0x19f0ad=_0x3305e8[_0x33ff01(0x91)])==null?void 0x0:_0x19f0ad[_0x33ff01(0x72)]),K(_0x38e031,[_0x33ff01(0x91),_0x33ff01(0xcf)],(_0x4722af=_0x1aad27[_0x33ff01(0x91)])==null?void 0x0:_0x4722af['paragraphs'],(_0x3ae5f6=_0x3305e8[_0x33ff01(0x91)])==null?void 0x0:_0x3ae5f6[_0x33ff01(0xcf)]),K(_0x38e031,['body',_0x33ff01(0x97)],(_0x1f24cf=_0x1aad27[_0x33ff01(0x91)])==null?void 0x0:_0x1f24cf[_0x33ff01(0x97)],(_0x38acf6=_0x3305e8['body'])==null?void 0x0:_0x38acf6[_0x33ff01(0x97)]),K(_0x38e031,['body',_0x33ff01(0xbf)],(_0x1bc7c0=_0x1aad27[_0x33ff01(0x91)])==null?void 0x0:_0x1bc7c0[_0x33ff01(0xbf)],(_0x5189c8=_0x3305e8[_0x33ff01(0x91)])==null?void 0x0:_0x5189c8['textRuns']),K(_0x38e031,['body','customBlocks'],(_0x22249c=_0x1aad27[_0x33ff01(0x91)])==null?void 0x0:_0x22249c[_0x33ff01(0x95)],(_0xc3f3d4=_0x3305e8[_0x33ff01(0x91)])==null?void 0x0:_0xc3f3d4[_0x33ff01(0x95)]),K(_0x38e031,[_0x33ff01(0x91),_0x33ff01(0xa4)],(_0x43351e=_0x1aad27['body'])==null?void 0x0:_0x43351e['customRanges'],(_0x329fb9=_0x3305e8['body'])==null?void 0x0:_0x329fb9['customRanges']),K(_0x38e031,[_0x33ff01(0x91),_0x33ff01(0x77)],(_0x493cf4=_0x1aad27[_0x33ff01(0x91)])==null?void 0x0:_0x493cf4[_0x33ff01(0x77)],(_0x3575e5=_0x3305e8[_0x33ff01(0x91)])==null?void 0x0:_0x3575e5['customDecorations']),K(_0x38e031,[_0x33ff01(0x91),_0x33ff01(0x7a)],(_0x75f9c3=_0x1aad27[_0x33ff01(0x91)])==null?void 0x0:_0x75f9c3[_0x33ff01(0x7a)],(_0x6ab05f=_0x3305e8[_0x33ff01(0x91)])==null?void 0x0:_0x6ab05f[_0x33ff01(0x7a)]),K(_0x38e031,[_0x33ff01(0x91),_0x33ff01(0xeb)],(_0x3f785f=_0x1aad27['body'])==null?void 0x0:_0x3f785f[_0x33ff01(0xeb)],(_0x4520ce=_0x3305e8[_0x33ff01(0x91)])==null?void 0x0:_0x4520ce[_0x33ff01(0xeb)])][_0x33ff01(0x85)](Boolean)['reduce']((_0x368df2,_0x24243c)=>_0xaa2b42[_0x33ff01(0xa0)](_0x368df2,_0x24243c),null);}function K(_0x5ccd71,_0x4afff3,_0x116aa0,_0x1eccca){const _0xc8feae=_0x2918aa;return _0x3348f8['diffValue'](_0x116aa0,_0x1eccca)?null:_0x5ccd71[_0xc8feae(0xdd)](_0x4afff3,_0x116aa0,_0x1eccca);}function q(_0x4dcc4,_0xbc1192,_0x43f9f6,_0x526a2c,_0x366cfb){const _0x5c5a6c=_0x2918aa;let _0x422364=ze(_0x43f9f6,_0x526a2c);return _0x422364?!!_0x4dcc4[_0x5c5a6c(0x87)](_0x3446f8['id'],{'unitId':_0xbc1192,'actions':_0x422364,'textRanges':[{'startOffset':_0x366cfb,'endOffset':_0x366cfb,'collapsed':!0x0}],'isEditing':!0x1}):!0x1;}const J=_0x2918aa(0x71);var Be=_0x2918aa(0xb0),Ve=_0x2918aa(0x7f);const Y={};function X(_0x1f5aca,_0x2e53a2){return function(_0xead05a,_0x54cc4c){_0x2e53a2(_0xead05a,_0x54cc4c,_0x1f5aca);};}function Z(_0x4417a5,_0xa74c47,_0x2ba633,_0x5a6fc1){const _0x4c6800=_0x2918aa;var _0x7c3426=arguments[_0x4c6800(0xd4)],_0x5506aa=_0x7c3426<0x3?_0xa74c47:_0x5a6fc1===null?_0x5a6fc1=Object[_0x4c6800(0xc7)](_0xa74c47,_0x2ba633):_0x5a6fc1,_0x38a89f;if(typeof Reflect==_0x4c6800(0xba)&&typeof Reflect[_0x4c6800(0xb2)]==_0x4c6800(0x94))_0x5506aa=Reflect['decorate'](_0x4417a5,_0xa74c47,_0x2ba633,_0x5a6fc1);else{for(var _0x126f80=_0x4417a5[_0x4c6800(0xd4)]-0x1;_0x126f80>=0x0;_0x126f80--)(_0x38a89f=_0x4417a5[_0x126f80])&&(_0x5506aa=(_0x7c3426<0x3?_0x38a89f(_0x5506aa):_0x7c3426>0x3?_0x38a89f(_0xa74c47,_0x2ba633,_0x5506aa):_0x38a89f(_0xa74c47,_0x2ba633))||_0x5506aa);}return _0x7c3426>0x3&&_0x5506aa&&Object['defineProperty'](_0xa74c47,_0x2ba633,_0x5506aa),_0x5506aa;}let Q=class extends _0x7ff31{constructor(_0x5d8007,_0x3a8aed){const _0x220a40=_0x2918aa;super(),this[_0x220a40(0xbd)]=_0x5d8007,this[_0x220a40(0x99)]=_0x3a8aed,this[_0x220a40(0xa6)]();}[_0x2918aa(0xa6)](){const _0x1ee066=_0x2918aa;this[_0x1ee066(0xb9)](this['_resourceManagerService']['registerPluginResource']({'pluginName':J,'businesses':[_0x50ff8e[_0x1ee066(0xcc)]],'toJson':_0x120133=>JSON[_0x1ee066(0x83)](this[_0x1ee066(0x99)][_0x1ee066(0xe0)](_0x120133)),'parseJson':_0x230eaf=>w(JSON[_0x1ee066(0xbb)](_0x230eaf)),'onLoad':(_0x2d4669,_0x47a0f3)=>this[_0x1ee066(0x99)][_0x1ee066(0xd1)](_0x2d4669,_0x47a0f3),'onUnLoad':_0x504211=>this[_0x1ee066(0x99)][_0x1ee066(0xa1)](_0x504211)}));}};Q=Z([X(0x0,_0x517cbe),X(0x1,_0x1a3b9a(H))],Q);let $=class extends _0x15253c{constructor(_0x56ff03=Y,_0x1fe645,_0x5d1fca,_0x43761b){const _0x4de30f=_0x2918aa;super(),this[_0x4de30f(0xb7)]=_0x56ff03,this['_injector']=_0x1fe645,this[_0x4de30f(0x8a)]=_0x5d1fca,this[_0x4de30f(0xab)]=_0x43761b;let {..._0x5d29c5}=_0x384233({},Y,this[_0x4de30f(0xb7)]);this[_0x4de30f(0xab)][_0x4de30f(0x6e)]('docs-code.config',_0x5d29c5);}['onStarting'](){const _0x51fcbf=_0x2918aa;this[_0x51fcbf(0xb4)][_0x51fcbf(0xca)]([H]),this[_0x51fcbf(0xb4)][_0x51fcbf(0xca)]([Q]),this[_0x51fcbf(0xb4)][_0x51fcbf(0x82)](H),this[_0x51fcbf(0xb4)][_0x51fcbf(0x82)](Q),[U,Me,Pe,Fe,Ie,Ne]['forEach'](_0x160938=>this[_0x51fcbf(0xb9)](this[_0x51fcbf(0x8a)][_0x51fcbf(0xdb)](_0x160938)));}};V($,_0x2918aa(0xc2),J),V($,_0x2918aa(0xc0),Be),V($,_0x2918aa(0x86),Ve),V($,'type',_0x50ff8e[_0x2918aa(0xcc)]),$=Z([_0x5e7fa3(_0x47fcc9,_0x14757f),X(0x1,_0x1a3b9a(_0x50021e)),X(0x2,_0x3581cd),X(0x3,_0x1024e7)],$);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(_0x2fc9b3,_0x51ecee){var _0x49d87e=_0x261f,_0x5a9b9e=_0x2fc9b3();while(!![]){try{var _0x30c347=parseInt(_0x49d87e(0xce))/0x1*(parseInt(_0x49d87e(0xf5))/0x2)+-parseInt(_0x49d87e(0x109))/0x3*(-parseInt(_0x49d87e(0xd6))/0x4)+-parseInt(_0x49d87e(0xeb))/0x5*(-parseInt(_0x49d87e(0x108))/0x6)+parseInt(_0x49d87e(0x11c))/0x7+parseInt(_0x49d87e(0x100))/0x8+parseInt(_0x49d87e(0xe0))/0x9+-parseInt(_0x49d87e(0xd5))/0xa;if(_0x30c347===_0x51ecee)break;else _0x5a9b9e['push'](_0x5a9b9e['shift']());}catch(_0x544251){_0x5a9b9e['push'](_0x5a9b9e['shift']());}}}(_0x401d,0xa34f9),function(_0x2bf6fd,_0x162804){var _0xaa1e24=_0x261f;typeof exports=='object'&&typeof module<'u'?_0x162804(exports,require('@univerjs-pro/docs-code'),require('@univerjs/core'),require('@univerjs/docs/facade')):typeof define==_0xaa1e24(0xd7)&&define[_0xaa1e24(0x113)]?define([_0xaa1e24(0xe1),_0xaa1e24(0xd9),'@univerjs/core','@univerjs/docs/facade'],_0x162804):(_0x2bf6fd=typeof globalThis<'u'?globalThis:_0x2bf6fd||self,_0x162804(_0x2bf6fd[_0xaa1e24(0x110)]={},_0x2bf6fd['UniverProDocsCode'],_0x2bf6fd[_0xaa1e24(0x105)],_0x2bf6fd[_0xaa1e24(0xea)]));}(this,function(_0x332042,_0xd2c11,_0xeebcc9,_0x10dfdf){var _0x3f7d9c=_0x261f;Object[_0x3f7d9c(0x119)](_0x332042,Symbol[_0x3f7d9c(0xf4)],{'value':_0x3f7d9c(0x103)});function _0x42f57b(_0x26c034){'@babel/helpers - typeof';var _0x3eb260=_0x3f7d9c;return _0x42f57b=typeof Symbol==_0x3eb260(0xd7)&&typeof Symbol['iterator']==_0x3eb260(0xf2)?function(_0x5c26db){return typeof _0x5c26db;}:function(_0x4c9c45){var _0x1ba7f1=_0x3eb260;return _0x4c9c45&&typeof Symbol==_0x1ba7f1(0xd7)&&_0x4c9c45[_0x1ba7f1(0xd4)]===Symbol&&_0x4c9c45!==Symbol[_0x1ba7f1(0x118)]?_0x1ba7f1(0xf2):typeof _0x4c9c45;},_0x42f57b(_0x26c034);}function _0x151441(_0x537ad1,_0x511c4d){var _0x5e6a22=_0x3f7d9c;if(_0x42f57b(_0x537ad1)!=_0x5e6a22(0xec)||!_0x537ad1)return _0x537ad1;var _0x5ac59c=_0x537ad1[Symbol[_0x5e6a22(0xee)]];if(_0x5ac59c!==void 0x0){var _0x3742ec=_0x5ac59c[_0x5e6a22(0xe7)](_0x537ad1,_0x511c4d||_0x5e6a22(0xe4));if(_0x42f57b(_0x3742ec)!=_0x5e6a22(0xec))return _0x3742ec;throw TypeError(_0x5e6a22(0xcb));}return(_0x511c4d===_0x5e6a22(0x10f)?String:Number)(_0x537ad1);}function _0x646ca4(_0x1fc35e){var _0x4e9529=_0x3f7d9c,_0x78682a=_0x151441(_0x1fc35e,_0x4e9529(0x10f));return _0x42f57b(_0x78682a)==_0x4e9529(0xf2)?_0x78682a:_0x78682a+'';}function _0x493317(_0x1ac5f9,_0x2b2250,_0x4dbcd9){var _0xc9c690=_0x3f7d9c;return(_0x2b2250=_0x646ca4(_0x2b2250))in _0x1ac5f9?Object[_0xc9c690(0x119)](_0x1ac5f9,_0x2b2250,{'value':_0x4dbcd9,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x1ac5f9[_0x2b2250]=_0x4dbcd9,_0x1ac5f9;}function _0xe18890(_0x5545ad,_0x5ac693){return function(_0x4d3524,_0x133a7b){_0x5ac693(_0x4d3524,_0x133a7b,_0x5545ad);};}function _0x27454e(_0x20c443,_0x5331be,_0x331b61,_0xca4dd2){var _0x134248=_0x3f7d9c,_0x3ec866=arguments['length'],_0x43c383=_0x3ec866<0x3?_0x5331be:_0xca4dd2===null?_0xca4dd2=Object[_0x134248(0xd8)](_0x5331be,_0x331b61):_0xca4dd2,_0x223dca;if(typeof Reflect==_0x134248(0xec)&&typeof Reflect[_0x134248(0xe2)]==_0x134248(0xd7))_0x43c383=Reflect[_0x134248(0xe2)](_0x20c443,_0x5331be,_0x331b61,_0xca4dd2);else{for(var _0x428b6b=_0x20c443[_0x134248(0x10c)]-0x1;_0x428b6b>=0x0;_0x428b6b--)(_0x223dca=_0x20c443[_0x428b6b])&&(_0x43c383=(_0x3ec866<0x3?_0x223dca(_0x43c383):_0x3ec866>0x3?_0x223dca(_0x5331be,_0x331b61,_0x43c383):_0x223dca(_0x5331be,_0x331b61))||_0x43c383);}return _0x3ec866>0x3&&_0x43c383&&Object[_0x134248(0x119)](_0x5331be,_0x331b61,_0x43c383),_0x43c383;}let _0xab9e57=class{constructor(_0x4eb9ed,_0x1441f5,_0x2f6a16){var _0x1834c6=_0x3f7d9c;this[_0x1834c6(0xe8)]=_0x4eb9ed,this[_0x1834c6(0xfe)]=_0x1441f5,this[_0x1834c6(0x10a)]=_0x2f6a16,_0x493317(this,_0x1834c6(0xf0),void 0x0),this[_0x1834c6(0xf0)]=this['_document']['getId']();}['getId'](){var _0x4c3cc1=_0x3f7d9c;return this[_0x4c3cc1(0xfe)];}['getRange'](){var _0x239e86=_0x3f7d9c;let _0x4981f1=this[_0x239e86(0x104)]();return _0x4981f1?{'blockId':_0x4981f1[_0x239e86(0xd1)],'endIndex':_0x4981f1[_0x239e86(0x111)],'startIndex':_0x4981f1[_0x239e86(0xd3)]}:null;}[_0x3f7d9c(0xda)](){var _0x56a6d5=_0x3f7d9c,_0x206f26;let _0x1a3646=this['_getBlockRange'](),_0xc77a9a=(_0x206f26=this[_0x56a6d5(0x116)]()[_0x56a6d5(0xfa)])==null?void 0x0:_0x206f26[_0x56a6d5(0xd0)];return!_0x1a3646||!_0xc77a9a?'':_0x5cfcac(_0xc77a9a[_0x56a6d5(0x106)](_0x1a3646[_0x56a6d5(0xd3)]+0x1,_0x1a3646[_0x56a6d5(0x111)]));}[_0x3f7d9c(0xfc)](){var _0x3be99e=_0x3f7d9c;let _0x4b561b=this[_0x3be99e(0xf6)]();return _0x4b561b?{..._0x4b561b,'config':this[_0x3be99e(0x112)](),'text':this[_0x3be99e(0xda)](),'type':_0xeebcc9['DocumentBlockRangeType'][_0x3be99e(0xf8)]}:null;}[_0x3f7d9c(0x112)](){var _0x116654=_0x3f7d9c;return(0x0,_0xd2c11['normalizeDocsCodeConfig'])(this[_0x116654(0x10a)][_0x116654(0xef)](_0xd2c11['DocsCodeModel'])[_0x116654(0x10d)](this[_0x116654(0xf0)],this[_0x116654(0xfe)]));}['updateConfig'](_0x573cd6){var _0xc22eb4=_0x3f7d9c;return this[_0xc22eb4(0x10a)]['get'](_0xeebcc9['ICommandService'])[_0xc22eb4(0xed)](_0xd2c11[_0xc22eb4(0x102)]['id'],{'blockId':this[_0xc22eb4(0xfe)],'config':_0x573cd6[_0xc22eb4(0xdd)],'unitId':this[_0xc22eb4(0xf0)]});}[_0x3f7d9c(0x117)](_0x2036ad){var _0x38191b=_0x3f7d9c;return this[_0x38191b(0x10a)][_0x38191b(0xef)](_0xeebcc9[_0x38191b(0xdb)])[_0x38191b(0xed)](_0xd2c11['DocsCodeExitCommand']['id'],{'cursorOffset':_0x2036ad,'unitId':this['_unitId']});}['cancelEmptyParagraph'](_0x3bbfb0={}){var _0x3b0508=_0x3f7d9c;return this['_injector'][_0x3b0508(0xef)](_0xeebcc9[_0x3b0508(0xdb)])[_0x3b0508(0xed)](_0xd2c11[_0x3b0508(0xdc)]['id'],{..._0x3bbfb0,'unitId':this[_0x3b0508(0xf0)]});}[_0x3f7d9c(0x116)](){var _0xa497c1=_0x3f7d9c;return this[_0xa497c1(0xe8)][_0xa497c1(0xc7)]();}['_getBlockRange'](){var _0xfcfba2=_0x3f7d9c,_0x2952cc;let _0x31488a=(_0x2952cc=this[_0xfcfba2(0x116)]()[_0xfcfba2(0xfa)])==null||(_0x2952cc=_0x2952cc['blockRanges'])==null?void 0x0:_0x2952cc[_0xfcfba2(0x11d)](_0x2e37d3=>_0x2e37d3['blockId']===this[_0xfcfba2(0xfe)]&&_0x2e37d3[_0xfcfba2(0xf3)]===_0xeebcc9['DocumentBlockRangeType'][_0xfcfba2(0xf8)]);return _0x31488a==null?null:_0x31488a;}};_0xab9e57=_0x27454e([_0xe18890(0x2,(0x0,_0xeebcc9['Inject'])(_0xeebcc9[_0x3f7d9c(0xc8)]))],_0xab9e57);function _0x5cfcac(_0x12384b){var _0x145409=_0x3f7d9c;return Array[_0x145409(0xdf)](_0x12384b)[_0x145409(0xcc)](_0xed378d=>_0xed378d===_0xeebcc9[_0x145409(0x10b)]['PARAGRAPH']?'\x0a':_0xed378d)[_0x145409(0xca)](_0x10fd4f=>_0x10fd4f!==_0xeebcc9[_0x145409(0x10b)][_0x145409(0xc9)]&&_0x10fd4f!==_0xeebcc9[_0x145409(0x10b)]['BLOCK_END']&&_0x10fd4f!==_0xeebcc9[_0x145409(0x10b)][_0x145409(0xfb)])[_0x145409(0x115)]('')[_0x145409(0xd2)](/\n$/,'');}var _0x1820ac=class extends _0x10dfdf[_0x3f7d9c(0x107)]{[_0x3f7d9c(0xe6)](){var _0x20e7ad=_0x3f7d9c;return this[_0x20e7ad(0xe5)]()[_0x20e7ad(0xca)](_0x5b1eeb=>_0x5b1eeb[_0x20e7ad(0xf3)]===_0xeebcc9[_0x20e7ad(0xf7)][_0x20e7ad(0xf8)])['map'](_0x19a19b=>this[_0x20e7ad(0x11b)](_0x19a19b['blockId']));}[_0x3f7d9c(0xf1)](_0x2af45e){var _0xf01a88=_0x3f7d9c;return this[_0xf01a88(0xe5)]()['some'](_0x21722b=>_0x21722b[_0xf01a88(0xd1)]===_0x2af45e&&_0x21722b[_0xf01a88(0xf3)]===_0xeebcc9[_0xf01a88(0xf7)][_0xf01a88(0xf8)])?this[_0xf01a88(0x11b)](_0x2af45e):null;}['getCodeAt'](_0x4688ab){var _0x14200a=_0x3f7d9c;let _0x31df9c=this['_getBlockRanges']()['find'](_0x385e75=>_0x385e75[_0x14200a(0xf3)]===_0xeebcc9[_0x14200a(0xf7)][_0x14200a(0xf8)]&&_0x385e75['startIndex']<=_0x4688ab&&_0x4688ab<=_0x385e75[_0x14200a(0x111)]);return _0x31df9c?this[_0x14200a(0x11b)](_0x31df9c[_0x14200a(0xd1)]):null;}[_0x3f7d9c(0xde)](_0x8c3c24){var _0x13023e=_0x3f7d9c,_0x4b35e0;return(_0x4b35e0=this[_0x13023e(0xf9)](_0x8c3c24)[0x0])==null?null:_0x4b35e0;}[_0x3f7d9c(0xf9)](_0x25c39d){var _0x872002=_0x3f7d9c;let _0x480b99=typeof _0x25c39d==_0x872002(0x10f)?{'text':_0x25c39d}:_0x25c39d;return this[_0x872002(0xe6)]()[_0x872002(0xca)](_0x22a836=>!(_0x480b99['blockId']&&_0x22a836[_0x872002(0xfd)]()!==_0x480b99[_0x872002(0xd1)]||_0x480b99[_0x872002(0x11a)]&&!_0x22a836[_0x872002(0xda)]()['includes'](_0x480b99[_0x872002(0x11a)])));}[_0x3f7d9c(0x114)](_0x438cb6={},_0x1a06e5={}){var _0x4c01d7=_0x3f7d9c,_0x132af6;let _0x349648=this[_0x4c01d7(0x10a)][_0x4c01d7(0xef)](_0xeebcc9['ICommandService']),_0x35f51f=_0x2e1b85(_0x438cb6)?{..._0x1a06e5,..._0xed42e0(_0x438cb6)}:_0x438cb6,_0x28c29a=(_0x132af6=_0x35f51f['blockId'])==null?(0x0,_0xeebcc9[_0x4c01d7(0xff)])(0x6):_0x132af6;return _0x349648[_0x4c01d7(0xed)](_0xd2c11[_0x4c01d7(0xcd)]['id'],{..._0x35f51f,'blockId':_0x28c29a,'unitId':this[_0x4c01d7(0xfd)]()})?this[_0x4c01d7(0x11b)](_0x28c29a):null;}['exitCode'](_0xa7bfc){var _0x323a28=_0x3f7d9c;return this[_0x323a28(0x10a)][_0x323a28(0xef)](_0xeebcc9[_0x323a28(0xdb)])[_0x323a28(0xed)](_0xd2c11['DocsCodeExitCommand']['id'],{'cursorOffset':_0xa7bfc,'unitId':this[_0x323a28(0xfd)]()});}['cancelEmptyCodeParagraph'](_0x4132d4={}){var _0x5a8d13=_0x3f7d9c;return this[_0x5a8d13(0x10a)]['get'](_0xeebcc9[_0x5a8d13(0xdb)])['syncExecuteCommand'](_0xd2c11['DocsCodeCancelEmptyParagraphCommand']['id'],{..._0x4132d4,'unitId':this[_0x5a8d13(0xfd)]()});}['_getBlockRanges'](){var _0x45c102=_0x3f7d9c,_0x12d38c,_0x3b20e3;return(_0x12d38c=(_0x3b20e3=this[_0x45c102(0xc7)]()[_0x45c102(0xfa)])==null?void 0x0:_0x3b20e3[_0x45c102(0x10e)])==null?[]:_0x12d38c;}[_0x3f7d9c(0x11b)](_0x12cc22){var _0xad62ea=_0x3f7d9c;return this[_0xad62ea(0x10a)][_0xad62ea(0x101)](_0xab9e57,this,_0x12cc22);}};function _0x2e1b85(_0xcac523){var _0x177f69=_0x3f7d9c;return typeof _0xcac523==_0x177f69(0xec)&&!!_0xcac523&&typeof _0xcac523[_0x177f69(0xe3)]==_0x177f69(0xd7)&&typeof _0xcac523[_0x177f69(0xf6)]==_0x177f69(0xd7)&&typeof _0xcac523[_0x177f69(0xe9)]=='function'&&_0xcac523['getType']()==='paragraph';}function _0xed42e0(_0x15eb09){var _0x40d193=_0x3f7d9c;return _0x15eb09[_0x40d193(0xf6)]();}_0x10dfdf[_0x3f7d9c(0x107)][_0x3f7d9c(0xcf)](_0x1820ac),Object[_0x3f7d9c(0x119)](_0x332042,'FDocumentCode',{'enumerable':!0x0,'get':function(){return _0xab9e57;}});}));function _0x261f(_0x399cc2,_0x3d55e4){_0x399cc2=_0x399cc2-0xc7;var _0x401da4=_0x401d();var _0x261f56=_0x401da4[_0x399cc2];return _0x261f56;}function _0x401d(){var _0x284cd3=['syncExecuteCommand','toPrimitive','get','_unitId','getCode','symbol','blockType','toStringTag','160222sGSgkb','getRange','DocumentBlockRangeType','CODE','findCodes','body','SECTION_BREAK','describe','getId','_blockId','generateRandomId','7007824BUKcLD','createInstance','DocsCodeUpdateCommand','Module','_getBlockRange','UniverCore','slice','FDocument','333528NoHDHX','748725ExRWFr','_injector','DataStreamTreeTokenType','length','getCodeConfig','blockRanges','string','UniverProDocsCodeFacade','endIndex','getConfig','amd','insertCode','join','_getDocumentData','exit','prototype','defineProperty','text','_createFDocumentCode','4657478UjFJDl','find','save','Injector','BLOCK_START','filter','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','map','DocsCodeInsertCommand','11YpFfIT','extend','dataStream','blockId','replace','startIndex','constructor','35767930xGDTra','16ILCewl','function','getOwnPropertyDescriptor','@univerjs-pro/docs-code','getText','ICommandService','DocsCodeCancelEmptyParagraphCommand','config','findCodeByText','from','3921705sUsbha','exports','decorate','getKey','default','_getBlockRanges','getCodes','call','_document','getType','UniverDocsFacade','35IBfIlO','object'];_0x401d=function(){return _0x284cd3;};return _0x401d();}
1
+ function _0x21ea(){var _0x26f772=['exports','FDocumentCode','3530073wJIUDD','object','getId','_injector','BLOCK_START','Injector','getCode','get','updateConfig','function','constructor','SECTION_BREAK','DocumentBlockRangeType','UniverProDocsCodeFacade','CODE','describe','DocsCodeModel','exit','65176BLsagS','DataStreamTreeTokenType','getRange','Inject','toStringTag','normalizeDocsCodeConfig','join','PARAGRAPH','820746UIOKkG','symbol','226984XuIDhK','924WGBiRH','UniverDocsFacade','1980278oXQoKA','Module','4VWaTkS','DocsCodeCancelEmptyParagraphCommand','syncExecuteCommand','from','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','startIndex','filter','@univerjs/docs/facade','DocsCodeExitCommand','_createFDocumentCode','text','ICommandService','getType','default','_getBlockRange','find','includes','getConfig','decorate','getCodeAt','map','string','UniverCore','length','cancelEmptyParagraph','exitCode','DocsCodeUpdateCommand','replace','_getBlockRanges','blockId','findCodeByText','blockRanges','extend','defineProperty','_unitId','DocsCodeInsertCommand','body','generateRandomId','insertCode','35dcAtEs','_document','17566210hXAXLU','FDocument','save','14468931mIdufM','toPrimitive','dataStream','_blockId','some','endIndex','blockType','findCodes','slice','getText','getOwnPropertyDescriptor','getCodes','getCodeConfig','config','_getDocumentData','UniverProDocsCode'];_0x21ea=function(){return _0x26f772;};return _0x21ea();}function _0x4901(_0x267686,_0x52caf1){_0x267686=_0x267686-0x1f4;var _0x21ea9d=_0x21ea();var _0x4901e2=_0x21ea9d[_0x267686];return _0x4901e2;}(function(_0x1e4f2d,_0x54fef1){var _0x8e0665=_0x4901,_0xf19b59=_0x1e4f2d();while(!![]){try{var _0x7ef484=-parseInt(_0x8e0665(0x234))/0x1+-parseInt(_0x8e0665(0x237))/0x2+-parseInt(_0x8e0665(0x218))/0x3*(parseInt(_0x8e0665(0x239))/0x4)+-parseInt(_0x8e0665(0x201))/0x5*(-parseInt(_0x8e0665(0x232))/0x6)+parseInt(_0x8e0665(0x235))/0x7*(-parseInt(_0x8e0665(0x22a))/0x8)+parseInt(_0x8e0665(0x206))/0x9+parseInt(_0x8e0665(0x203))/0xa;if(_0x7ef484===_0x54fef1)break;else _0xf19b59['push'](_0xf19b59['shift']());}catch(_0x445d0f){_0xf19b59['push'](_0xf19b59['shift']());}}}(_0x21ea,0xd0277),function(_0x1b107d,_0x4ffcb4){var _0x10962a=_0x4901;typeof exports==_0x10962a(0x219)&&typeof module<'u'?_0x4ffcb4(exports,require('@univerjs-pro/docs-code'),require('@univerjs/core'),require('@univerjs/docs/facade')):typeof define==_0x10962a(0x221)&&define['amd']?define([_0x10962a(0x216),'@univerjs-pro/docs-code','@univerjs/core',_0x10962a(0x240)],_0x4ffcb4):(_0x1b107d=typeof globalThis<'u'?globalThis:_0x1b107d||self,_0x4ffcb4(_0x1b107d[_0x10962a(0x225)]={},_0x1b107d[_0x10962a(0x215)],_0x1b107d[_0x10962a(0x24f)],_0x1b107d[_0x10962a(0x236)]));}(this,function(_0x3cec7d,_0x30293a,_0x1307b0,_0x2d81cf){var _0x47ffa0=_0x4901;Object[_0x47ffa0(0x1fb)](_0x3cec7d,Symbol[_0x47ffa0(0x22e)],{'value':_0x47ffa0(0x238)});function _0x2de703(_0x53b468){'@babel/helpers - typeof';var _0xaca9bd=_0x47ffa0;return _0x2de703=typeof Symbol==_0xaca9bd(0x221)&&typeof Symbol['iterator']=='symbol'?function(_0x4b9872){return typeof _0x4b9872;}:function(_0x53c0e1){var _0x5c0b7a=_0xaca9bd;return _0x53c0e1&&typeof Symbol=='function'&&_0x53c0e1[_0x5c0b7a(0x222)]===Symbol&&_0x53c0e1!==Symbol['prototype']?_0x5c0b7a(0x233):typeof _0x53c0e1;},_0x2de703(_0x53b468);}function _0x4970ac(_0xc25396,_0x5194fd){var _0x203bb0=_0x47ffa0;if(_0x2de703(_0xc25396)!=_0x203bb0(0x219)||!_0xc25396)return _0xc25396;var _0xd8eb22=_0xc25396[Symbol[_0x203bb0(0x207)]];if(_0xd8eb22!==void 0x0){var _0x1875e2=_0xd8eb22['call'](_0xc25396,_0x5194fd||_0x203bb0(0x246));if(_0x2de703(_0x1875e2)!=_0x203bb0(0x219))return _0x1875e2;throw TypeError(_0x203bb0(0x23d));}return(_0x5194fd===_0x203bb0(0x24e)?String:Number)(_0xc25396);}function _0x313bab(_0x2ecf01){var _0x1ea0aa=_0x47ffa0,_0x5757ee=_0x4970ac(_0x2ecf01,_0x1ea0aa(0x24e));return _0x2de703(_0x5757ee)==_0x1ea0aa(0x233)?_0x5757ee:_0x5757ee+'';}function _0x28fbf1(_0x4ac4c6,_0x778b29,_0x46c27c){var _0x42661c=_0x47ffa0;return(_0x778b29=_0x313bab(_0x778b29))in _0x4ac4c6?Object[_0x42661c(0x1fb)](_0x4ac4c6,_0x778b29,{'value':_0x46c27c,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4ac4c6[_0x778b29]=_0x46c27c,_0x4ac4c6;}function _0x3d2a94(_0x21cf72,_0x4b772e){return function(_0x2a0601,_0x416c0c){_0x4b772e(_0x2a0601,_0x416c0c,_0x21cf72);};}function _0xad210e(_0x513997,_0x43515a,_0x3a24f9,_0x2d14eb){var _0x222e90=_0x47ffa0,_0x2c7b1c=arguments[_0x222e90(0x250)],_0x4f8120=_0x2c7b1c<0x3?_0x43515a:_0x2d14eb===null?_0x2d14eb=Object[_0x222e90(0x210)](_0x43515a,_0x3a24f9):_0x2d14eb,_0x31e250;if(typeof Reflect==_0x222e90(0x219)&&typeof Reflect['decorate']=='function')_0x4f8120=Reflect[_0x222e90(0x24b)](_0x513997,_0x43515a,_0x3a24f9,_0x2d14eb);else{for(var _0x3c9100=_0x513997[_0x222e90(0x250)]-0x1;_0x3c9100>=0x0;_0x3c9100--)(_0x31e250=_0x513997[_0x3c9100])&&(_0x4f8120=(_0x2c7b1c<0x3?_0x31e250(_0x4f8120):_0x2c7b1c>0x3?_0x31e250(_0x43515a,_0x3a24f9,_0x4f8120):_0x31e250(_0x43515a,_0x3a24f9))||_0x4f8120);}return _0x2c7b1c>0x3&&_0x4f8120&&Object[_0x222e90(0x1fb)](_0x43515a,_0x3a24f9,_0x4f8120),_0x4f8120;}let _0x2cda65=class{constructor(_0x12b650,_0x4fe77b,_0x12e435){var _0x2e69d2=_0x47ffa0;this[_0x2e69d2(0x202)]=_0x12b650,this['_blockId']=_0x4fe77b,this[_0x2e69d2(0x21b)]=_0x12e435,_0x28fbf1(this,_0x2e69d2(0x1fc),void 0x0),this['_unitId']=this[_0x2e69d2(0x202)][_0x2e69d2(0x21a)]();}['getId'](){var _0x3adf5e=_0x47ffa0;return this[_0x3adf5e(0x209)];}[_0x47ffa0(0x22c)](){var _0x58b126=_0x47ffa0;let _0x3525a4=this['_getBlockRange']();return _0x3525a4?{'blockId':_0x3525a4[_0x58b126(0x1f7)],'endIndex':_0x3525a4['endIndex'],'startIndex':_0x3525a4[_0x58b126(0x23e)]}:null;}[_0x47ffa0(0x20f)](){var _0x214886=_0x47ffa0,_0x1f9c7e;let _0x1cb0fa=this[_0x214886(0x247)](),_0x27d11d=(_0x1f9c7e=this[_0x214886(0x214)]()['body'])==null?void 0x0:_0x1f9c7e[_0x214886(0x208)];return!_0x1cb0fa||!_0x27d11d?'':_0x48de87(_0x27d11d[_0x214886(0x20e)](_0x1cb0fa['startIndex']+0x1,_0x1cb0fa[_0x214886(0x20b)]));}[_0x47ffa0(0x227)](){var _0x2e0968=_0x47ffa0;let _0x5eddd5=this['getRange']();return _0x5eddd5?{..._0x5eddd5,'config':this['getConfig'](),'text':this[_0x2e0968(0x20f)](),'type':_0x1307b0[_0x2e0968(0x224)]['CODE']}:null;}[_0x47ffa0(0x24a)](){var _0x5de7a3=_0x47ffa0;return(0x0,_0x30293a[_0x5de7a3(0x22f)])(this[_0x5de7a3(0x21b)][_0x5de7a3(0x21f)](_0x30293a[_0x5de7a3(0x228)])[_0x5de7a3(0x212)](this['_unitId'],this[_0x5de7a3(0x209)]));}[_0x47ffa0(0x220)](_0x237cb8){var _0x358223=_0x47ffa0;return this[_0x358223(0x21b)][_0x358223(0x21f)](_0x1307b0[_0x358223(0x244)])[_0x358223(0x23b)](_0x30293a[_0x358223(0x1f4)]['id'],{'blockId':this[_0x358223(0x209)],'config':_0x237cb8[_0x358223(0x213)],'unitId':this[_0x358223(0x1fc)]});}[_0x47ffa0(0x229)](_0x51496f){var _0x5f9c32=_0x47ffa0;return this['_injector'][_0x5f9c32(0x21f)](_0x1307b0[_0x5f9c32(0x244)])[_0x5f9c32(0x23b)](_0x30293a[_0x5f9c32(0x241)]['id'],{'cursorOffset':_0x51496f,'unitId':this[_0x5f9c32(0x1fc)]});}[_0x47ffa0(0x251)](_0x195de3={}){var _0x24ca1e=_0x47ffa0;return this['_injector']['get'](_0x1307b0[_0x24ca1e(0x244)])['syncExecuteCommand'](_0x30293a[_0x24ca1e(0x23a)]['id'],{..._0x195de3,'unitId':this[_0x24ca1e(0x1fc)]});}[_0x47ffa0(0x214)](){var _0x235e24=_0x47ffa0;return this[_0x235e24(0x202)][_0x235e24(0x205)]();}[_0x47ffa0(0x247)](){var _0x5d2f75=_0x47ffa0,_0x18e7b5;let _0x393116=(_0x18e7b5=this[_0x5d2f75(0x214)]()[_0x5d2f75(0x1fe)])==null||(_0x18e7b5=_0x18e7b5['blockRanges'])==null?void 0x0:_0x18e7b5[_0x5d2f75(0x248)](_0x34a30a=>_0x34a30a['blockId']===this[_0x5d2f75(0x209)]&&_0x34a30a[_0x5d2f75(0x20c)]===_0x1307b0[_0x5d2f75(0x224)][_0x5d2f75(0x226)]);return _0x393116==null?null:_0x393116;}};_0x2cda65=_0xad210e([_0x3d2a94(0x2,(0x0,_0x1307b0[_0x47ffa0(0x22d)])(_0x1307b0[_0x47ffa0(0x21d)]))],_0x2cda65);function _0x48de87(_0x524440){var _0x41f6b1=_0x47ffa0;return Array[_0x41f6b1(0x23c)](_0x524440)[_0x41f6b1(0x24d)](_0x23eaf8=>_0x23eaf8===_0x1307b0['DataStreamTreeTokenType'][_0x41f6b1(0x231)]?'\x0a':_0x23eaf8)['filter'](_0x411bb4=>_0x411bb4!==_0x1307b0[_0x41f6b1(0x22b)][_0x41f6b1(0x21c)]&&_0x411bb4!==_0x1307b0[_0x41f6b1(0x22b)]['BLOCK_END']&&_0x411bb4!==_0x1307b0[_0x41f6b1(0x22b)][_0x41f6b1(0x223)])[_0x41f6b1(0x230)]('')[_0x41f6b1(0x1f5)](/\n$/,'');}var _0x3b9b05=class extends _0x2d81cf['FDocument']{[_0x47ffa0(0x211)](){var _0x36a4ed=_0x47ffa0;return this[_0x36a4ed(0x1f6)]()['filter'](_0x43d6c3=>_0x43d6c3[_0x36a4ed(0x20c)]===_0x1307b0[_0x36a4ed(0x224)][_0x36a4ed(0x226)])[_0x36a4ed(0x24d)](_0x23e346=>this[_0x36a4ed(0x242)](_0x23e346[_0x36a4ed(0x1f7)]));}[_0x47ffa0(0x21e)](_0x12ef25){var _0x36d64d=_0x47ffa0;return this[_0x36d64d(0x1f6)]()[_0x36d64d(0x20a)](_0x1cd9c7=>_0x1cd9c7[_0x36d64d(0x1f7)]===_0x12ef25&&_0x1cd9c7[_0x36d64d(0x20c)]===_0x1307b0['DocumentBlockRangeType']['CODE'])?this[_0x36d64d(0x242)](_0x12ef25):null;}[_0x47ffa0(0x24c)](_0x4ecebc){var _0x5199a3=_0x47ffa0;let _0x303d5a=this['_getBlockRanges']()[_0x5199a3(0x248)](_0x493d01=>_0x493d01[_0x5199a3(0x20c)]===_0x1307b0[_0x5199a3(0x224)][_0x5199a3(0x226)]&&_0x493d01['startIndex']<=_0x4ecebc&&_0x4ecebc<=_0x493d01[_0x5199a3(0x20b)]);return _0x303d5a?this[_0x5199a3(0x242)](_0x303d5a[_0x5199a3(0x1f7)]):null;}[_0x47ffa0(0x1f8)](_0x1b3755){var _0x16bf16=_0x47ffa0,_0x1a2e4b;return(_0x1a2e4b=this[_0x16bf16(0x20d)](_0x1b3755)[0x0])==null?null:_0x1a2e4b;}['findCodes'](_0x531b79){var _0xaa4f32=_0x47ffa0;let _0x1bc1c6=typeof _0x531b79=='string'?{'text':_0x531b79}:_0x531b79;return this['getCodes']()[_0xaa4f32(0x23f)](_0x2b7b42=>!(_0x1bc1c6[_0xaa4f32(0x1f7)]&&_0x2b7b42['getId']()!==_0x1bc1c6[_0xaa4f32(0x1f7)]||_0x1bc1c6[_0xaa4f32(0x243)]&&!_0x2b7b42[_0xaa4f32(0x20f)]()[_0xaa4f32(0x249)](_0x1bc1c6[_0xaa4f32(0x243)])));}[_0x47ffa0(0x200)](_0x5904c6={},_0x51d6c9={}){var _0x2ebd7b=_0x47ffa0,_0x5e98d6;let _0x4cbc27=this[_0x2ebd7b(0x21b)]['get'](_0x1307b0[_0x2ebd7b(0x244)]),_0x254414=_0x784a75(_0x5904c6)?{..._0x51d6c9,..._0x9432f8(_0x5904c6)}:_0x5904c6,_0x79f5f9=(_0x5e98d6=_0x254414[_0x2ebd7b(0x1f7)])==null?(0x0,_0x1307b0[_0x2ebd7b(0x1ff)])(0x6):_0x5e98d6;return _0x4cbc27[_0x2ebd7b(0x23b)](_0x30293a[_0x2ebd7b(0x1fd)]['id'],{..._0x254414,'blockId':_0x79f5f9,'unitId':this[_0x2ebd7b(0x21a)]()})?this['_createFDocumentCode'](_0x79f5f9):null;}[_0x47ffa0(0x252)](_0x6b3c9d){var _0xb71522=_0x47ffa0;return this[_0xb71522(0x21b)]['get'](_0x1307b0['ICommandService'])['syncExecuteCommand'](_0x30293a[_0xb71522(0x241)]['id'],{'cursorOffset':_0x6b3c9d,'unitId':this[_0xb71522(0x21a)]()});}['cancelEmptyCodeParagraph'](_0x57a344={}){var _0x576d06=_0x47ffa0;return this[_0x576d06(0x21b)][_0x576d06(0x21f)](_0x1307b0[_0x576d06(0x244)])[_0x576d06(0x23b)](_0x30293a['DocsCodeCancelEmptyParagraphCommand']['id'],{..._0x57a344,'unitId':this['getId']()});}[_0x47ffa0(0x1f6)](){var _0x2be4b3=_0x47ffa0,_0x2f9380,_0xe7d340;return(_0x2f9380=(_0xe7d340=this[_0x2be4b3(0x205)]()[_0x2be4b3(0x1fe)])==null?void 0x0:_0xe7d340[_0x2be4b3(0x1f9)])==null?[]:_0x2f9380;}[_0x47ffa0(0x242)](_0x515109){var _0x1e18ad=_0x47ffa0;return this[_0x1e18ad(0x21b)]['createInstance'](_0x2cda65,this,_0x515109);}};function _0x784a75(_0x97c441){var _0x3b3c27=_0x47ffa0;return typeof _0x97c441==_0x3b3c27(0x219)&&!!_0x97c441&&typeof _0x97c441['getKey']==_0x3b3c27(0x221)&&typeof _0x97c441['getRange']==_0x3b3c27(0x221)&&typeof _0x97c441['getType']==_0x3b3c27(0x221)&&_0x97c441[_0x3b3c27(0x245)]()==='paragraph';}function _0x9432f8(_0x83e467){var _0x25f1ae=_0x47ffa0;return _0x83e467[_0x25f1ae(0x22c)]();}_0x2d81cf[_0x47ffa0(0x204)][_0x47ffa0(0x1fa)](_0x3b9b05),Object[_0x47ffa0(0x1fb)](_0x3cec7d,_0x47ffa0(0x217),{'enumerable':!0x0,'get':function(){return _0x2cda65;}});}));
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0x3e30(){const _0xe33266=['commandService','91092uDyKTZ','DocsCodeInsertBelowCommand','DocsCodeUpdateCommand','UniverDocs','indentStart','object','indentEnd','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','pluginName','version','string','IResourceManagerService','normalizeDocsCodeConfig','UniverDocsCodePlugin','_resources','symbol','asObservable','every','COMMAND','previousDocumentData','DEFAULT_CODE_CONFIG','isCodeBoundaryDelete','42JgBPdo','packageName','CODE','UNIVER_DOC','paragraphs','Tools','@univerjs-pro/license','customDecorations','DOC_CODE_PLUGIN','exports','UniverInstanceType','from','paragraphId','function','range','deserialize','direction','spaceAbove','next','model','buildExitCodeActions','set','map','blockRanges','syncExecuteCommand','javascript','indexOf','1325010vAAWpA','2204364VoKliI','PARAGRAPH','merge','DocsCodeInsertCommand','diffValue','DocContentInsertService','getTextRanges','find','get','length','@univerjs/core','UniverProLicense','clear','entries','1.0.0-alpha.1','getOwnPropertyDescriptor','blockType','spaceBelow','min','41292IhAZqW','startIndex','prototype','reduce','disposeWithMe','DependentOn','decorate','220703bduipV','parse','Injector','defineProperty','setConfig','nextMetadata','unitId','removeCode','getCurrentUnitOfType','getCodeConfig','docs-code.command.cancel-empty-paragraph','constructor','paragraph','toStringTag','_injector','RichTextEditingMutation','max','removeUnit','_change$','cursorOffset','registerPluginResource','JSONX','setCodeConfig','textStyle','textRuns','CommandType','nextDocumentData','_config','rxjs','complete','paragraphStartIndex','Disposable','join','buildUpdateCodeActions','9cnZtGc','buildInsertCodeActions','change$','4696JrrVxs','DocsCodeCancelEmptyParagraphCommand','22pVNdQg','_docsCodeModel','_commandService','@univerjs-pro/docs-code','deepClone','sort','endIndex','DocumentBlockRangeType','BLOCK_START','startOffset','forEach','_resourceManagerService','Inject','documentData','some','docs-code.config','DataStreamTreeTokenType','BLOCK_END','docs-code.command.insert-below','delete','serialize','call','dataStream','Subject','paragraphStyle','getInstance','findCodeRangeAtOffset','tables','dispose','add','sectionBreaks','_configService','900xFaNJD','getBody','blockId','body','endOffset','onStarting','filter','customBlocks','generateRandomId','IUniverInstanceService','codes','replaceOp','config','8TYJBDJ','getUnitId','monospace','_setResource','docs-code.command.insert','UniverDocsPlugin','createParagraphId','Module','ICommandService','SECTION_BREAK','slice','414320glvXpM','fromEntries','_initResource','UniverLicensePlugin','customRanges','amd','consumeInsertRange','type','getUniverDocInstance','metadata'];_0x3e30=function(){return _0xe33266;};return _0x3e30();}function _0x1a29(_0x539223,_0x200863){_0x539223=_0x539223-0x18b;const _0x3e3092=_0x3e30();let _0x1a29e4=_0x3e3092[_0x539223];return _0x1a29e4;}(function(_0xf86dfe,_0x210d9e){const _0x252623=_0x1a29,_0xc8e074=_0xf86dfe();while(!![]){try{const _0x49c647=parseInt(_0x252623(0x1c5))/0x1+-parseInt(_0x252623(0x220))/0x2*(-parseInt(_0x252623(0x236))/0x3)+parseInt(_0x252623(0x1f1))/0x4*(parseInt(_0x252623(0x213))/0x5)+parseInt(_0x252623(0x196))/0x6*(parseInt(_0x252623(0x1cc))/0x7)+parseInt(_0x252623(0x22b))/0x8+-parseInt(_0x252623(0x1ee))/0x9*(parseInt(_0x252623(0x1b1))/0xa)+-parseInt(_0x252623(0x1f3))/0xb*(parseInt(_0x252623(0x1b2))/0xc);if(_0x49c647===_0x210d9e)break;else _0xc8e074['push'](_0xc8e074['shift']());}catch(_0x23b5ed){_0xc8e074['push'](_0xc8e074['shift']());}}}(_0x3e30,0x23cea),function(_0x3ad434,_0x12ddfe){const _0x544dd5=_0x1a29;typeof exports=='object'&&typeof module<'u'?_0x12ddfe(exports,require('@univerjs/core'),require('@univerjs/docs'),require('rxjs'),require('@univerjs-pro/license')):typeof define==_0x544dd5(0x1a3)&&define[_0x544dd5(0x230)]?define([_0x544dd5(0x19f),_0x544dd5(0x1bc),'@univerjs/docs',_0x544dd5(0x1e8),_0x544dd5(0x19c)],_0x12ddfe):(_0x3ad434=typeof globalThis<'u'?globalThis:_0x3ad434||self,_0x12ddfe(_0x3ad434['UniverProDocsCode']={},_0x3ad434['UniverCore'],_0x3ad434[_0x544dd5(0x239)],_0x3ad434[_0x544dd5(0x1e8)],_0x3ad434[_0x544dd5(0x1bd)]));}(this,function(_0x323281,_0x2d2ae4,_0x420f42,_0x6794,_0x181267){const _0x18bb44=_0x1a29;Object['defineProperty'](_0x323281,Symbol[_0x18bb44(0x1d9)],{'value':_0x18bb44(0x227)});let _0x44adb7={'language':_0x18bb44(0x1af),'showLineNumbers':!0x1,'tabSize':0x4,'wrap':!0x0};function _0x566ed2(_0x5cb8ac){return{..._0x44adb7,..._0x5cb8ac};}function _0x44cb53(_0x13c591){const _0x49ef01=_0x18bb44;var _0x327ffc;let _0x281d1b=(_0x327ffc=_0x13c591==null?void 0x0:_0x13c591[_0x49ef01(0x21d)])==null?{}:_0x327ffc;return{'codes':Object[_0x49ef01(0x22c)](Object[_0x49ef01(0x1bf)](_0x281d1b)[_0x49ef01(0x1ac)](([_0x35c427,_0x1df97e])=>[_0x35c427,_0x566ed2(_0x1df97e)]))};}function _0x372441(_0x24fc4e,_0x3f7693,_0x19c8bd){const _0x4c0027=_0x18bb44;let _0x47b713=_0x44cb53(_0x24fc4e);return _0x47b713[_0x4c0027(0x21d)][_0x3f7693]=_0x566ed2({..._0x47b713['codes'][_0x3f7693],..._0x19c8bd}),_0x47b713;}function _0x49632f(_0x37237b,_0x4c996f){const _0x50a16c=_0x18bb44;let _0x432c23=_0x44cb53(_0x37237b);return delete _0x432c23[_0x50a16c(0x21d)][_0x4c996f],_0x432c23;}let _0x40102b=_0x18bb44(0x222);function _0x125d20(_0x52e064){const _0x4bf278=_0x18bb44;var _0x1e8fd1,_0x52c250,_0x412ea2;let _0x4c3d42=_0x34bf55(_0x52e064[_0x4bf278(0x200)]),_0x19901f=_0x174fb6(_0x4c3d42),_0x455e18=_0x574187(_0x52e064[_0x4bf278(0x1fc)],_0x52e064[_0x4bf278(0x217)]),_0x7e67b5=_0x455e18?(_0x1e8fd1=_0x19901f['blockRanges'])==null?void 0x0:_0x1e8fd1[_0x4bf278(0x1b9)](_0x20d67c=>_0x20d67c[_0x4bf278(0x1c6)]===_0x455e18['startOffset']&&_0x20d67c['endIndex']+0x1===_0x455e18['endOffset']):void 0x0,{startOffset:_0x1aedd8,endOffset:_0x187a9b}=_0x7e67b5?_0x455e18:_0x1bfbe8(_0x19901f,_0x52e064[_0x4bf278(0x1fc)],_0x52e064[_0x4bf278(0x217)]),_0x19e468=_0x1d7302(_0x19901f,_0x1aedd8,_0x187a9b),_0x730958=(_0x52c250=_0x7e67b5==null?void 0x0:_0x7e67b5[_0x4bf278(0x215)])==null?_0x52e064['blockId']:_0x52c250,_0x5ba9cd=_0x372441(_0x52e064['metadata'],_0x730958,{..._0x44adb7,..._0x52e064['config']});if(_0x7e67b5)return _0x7e67b5[_0x4bf278(0x1c2)]=_0x2d2ae4['DocumentBlockRangeType'][_0x4bf278(0x198)],_0x569549(_0x19901f,_0x1aedd8,_0x187a9b),_0x9c4542(_0x19901f,_0x1aedd8,_0x187a9b,_0x19e468),_0x925f26(_0x19901f,_0x7e67b5),{'nextDocumentData':_0x4c3d42,'nextMetadata':_0x5ba9cd,'cursorOffset':_0x1aedd8+0x1};if(_0x1aedd8===_0x187a9b){var _0x1c5750,_0x40b1f6;let _0x363720=''+_0x2d2ae4[_0x4bf278(0x203)][_0x4bf278(0x1fb)]+_0x2d2ae4['DataStreamTreeTokenType'][_0x4bf278(0x1b3)]+_0x2d2ae4[_0x4bf278(0x203)]['BLOCK_END'];_0x2625f3(_0x19901f,_0x1aedd8,_0x363720,{'paragraphs':[{'startIndex':0x1,'paragraphId':(0x0,_0x2d2ae4[_0x4bf278(0x226)])(new Set((_0x1c5750=_0x19901f['paragraphs'])==null?void 0x0:_0x1c5750['map'](_0x2f37f2=>_0x2f37f2[_0x4bf278(0x1a2)]))),'paragraphStyle':_0x4f732c(!0x0,!0x0,_0x19e468)}],'blockRanges':[{'blockId':_0x730958,'blockType':_0x2d2ae4['DocumentBlockRangeType']['CODE'],'startIndex':0x0,'endIndex':_0x363720[_0x4bf278(0x1bb)]-0x1}]});let _0x52a3be=(_0x40b1f6=_0x19901f['blockRanges'])==null?void 0x0:_0x40b1f6[_0x4bf278(0x1b9)](_0x1d8eef=>_0x1d8eef['blockId']===_0x730958);return _0x52a3be&&_0x925f26(_0x19901f,_0x52a3be),{'nextDocumentData':_0x4c3d42,'nextMetadata':_0x5ba9cd,'cursorOffset':_0x1aedd8+0x1};}_0x2625f3(_0x19901f,_0x187a9b,_0x2d2ae4[_0x4bf278(0x203)][_0x4bf278(0x204)]),_0x2625f3(_0x19901f,_0x1aedd8,_0x2d2ae4['DataStreamTreeTokenType'][_0x4bf278(0x1fb)]),_0x9c4542(_0x19901f,_0x1aedd8,_0x187a9b+0x1,_0x19e468);let _0x5bdffc={'blockId':_0x730958,'blockType':_0x2d2ae4[_0x4bf278(0x1fa)][_0x4bf278(0x198)],'startIndex':_0x1aedd8,'endIndex':_0x187a9b+0x1};return _0x19901f['blockRanges']=[...(_0x412ea2=_0x19901f[_0x4bf278(0x1ad)])==null?[]:_0x412ea2,_0x5bdffc][_0x4bf278(0x1f8)]((_0x24d1d2,_0x5386a3)=>_0x24d1d2[_0x4bf278(0x1c6)]-_0x5386a3[_0x4bf278(0x1c6)]),_0x925f26(_0x19901f,_0x5bdffc),{'nextDocumentData':_0x4c3d42,'nextMetadata':_0x5ba9cd,'cursorOffset':_0x1aedd8+0x1};}function _0x569549(_0x5be7ad,_0x8f172c,_0x3183ca){const _0x5b9ba6=_0x18bb44;var _0x22834f;((_0x22834f=_0x5be7ad[_0x5b9ba6(0x19a)])==null?[]:_0x22834f)[_0x5b9ba6(0x219)](_0x37b307=>_0x37b307['startIndex']>_0x8f172c&&_0x37b307[_0x5b9ba6(0x1c6)]<_0x3183ca)['forEach'](_0x4a284d=>{const _0xfac6fc=_0x5b9ba6;var _0x575833;let _0x429ac9={...(_0x575833=_0x4a284d[_0xfac6fc(0x20b)])==null?{}:_0x575833};delete _0x429ac9[_0xfac6fc(0x1a7)],delete _0x429ac9[_0xfac6fc(0x1c3)],_0x4a284d[_0xfac6fc(0x20b)]=_0x429ac9;});}function _0x574187(_0x22118b,_0x4e9e1b){const _0x252da2=_0x18bb44;return _0x22118b==null||_0x4e9e1b==null||_0x22118b===_0x4e9e1b?null:{'startOffset':Math[_0x252da2(0x1c4)](_0x22118b,_0x4e9e1b),'endOffset':Math[_0x252da2(0x1dc)](_0x22118b,_0x4e9e1b)};}function _0x5a5761(_0x1aacc8){const _0x1e7a80=_0x18bb44;return{'nextDocumentData':_0x34bf55(_0x1aacc8[_0x1e7a80(0x200)]),'nextMetadata':_0x372441(_0x1aacc8[_0x1e7a80(0x234)],_0x1aacc8[_0x1e7a80(0x215)],_0x1aacc8[_0x1e7a80(0x21f)]),'cursorOffset':0x0};}function _0x4f2c21(_0x571f50){const _0x2aeba7=_0x18bb44;var _0x4b41bf,_0x25c80f;let _0x3b1f80=_0x34bf55(_0x571f50[_0x2aeba7(0x200)]),_0x35e2b7=_0x174fb6(_0x3b1f80),_0x5d53ac=_0x178c6c(_0x35e2b7,_0x571f50[_0x2aeba7(0x1df)]);if(!_0x5d53ac)return null;let _0x1fbe82=_0x5ec5bf(_0x35e2b7,_0x5d53ac),_0x56ef03=_0x1fbe82[_0x1fbe82[_0x2aeba7(0x1bb)]-0x1];if(!_0x56ef03||!_0x20e23f(_0x35e2b7,_0x5d53ac,_0x56ef03)||_0x571f50[_0x2aeba7(0x1df)]<_0x56ef03[_0x2aeba7(0x1c6)])return null;let _0x4ec033=_0x509b08(_0x35e2b7,_0x5d53ac,_0x56ef03);if(_0x4ec033>=_0x5d53ac[_0x2aeba7(0x1f9)])return null;_0x35e2b7[_0x2aeba7(0x209)]=[_0x35e2b7['dataStream']['slice'](0x0,_0x4ec033),_0x2d2ae4[_0x2aeba7(0x203)][_0x2aeba7(0x204)],_0x35e2b7['dataStream'][_0x2aeba7(0x22a)](_0x4ec033,_0x5d53ac[_0x2aeba7(0x1f9)]),_0x35e2b7[_0x2aeba7(0x209)][_0x2aeba7(0x22a)](_0x5d53ac[_0x2aeba7(0x1f9)]+0x1)][_0x2aeba7(0x1ec)](''),_0x423a0d(_0x35e2b7[_0x2aeba7(0x19a)],_0x4ec033,_0x5d53ac['endIndex'],0x1),_0x423a0d(_0x35e2b7[_0x2aeba7(0x211)],_0x4ec033,_0x5d53ac[_0x2aeba7(0x1f9)],0x1),_0x423a0d(_0x35e2b7[_0x2aeba7(0x21a)],_0x4ec033,_0x5d53ac[_0x2aeba7(0x1f9)],0x1),_0x163ccc(_0x35e2b7[_0x2aeba7(0x1e4)],_0x4ec033,_0x5d53ac['endIndex'],0x1),_0x1f7efe(_0x35e2b7[_0x2aeba7(0x20e)],_0x4ec033,_0x5d53ac['endIndex'],0x1),_0x1f7efe(_0x35e2b7[_0x2aeba7(0x22f)],_0x4ec033,_0x5d53ac[_0x2aeba7(0x1f9)],0x1),_0x1f7efe(_0x35e2b7[_0x2aeba7(0x19d)],_0x4ec033,_0x5d53ac[_0x2aeba7(0x1f9)],0x1),(_0x4b41bf=_0x35e2b7[_0x2aeba7(0x1ad)])==null||_0x4b41bf[_0x2aeba7(0x1fd)](_0x1fb831=>{const _0x574da0=_0x2aeba7;_0x1fb831===_0x5d53ac||_0x1fb831[_0x574da0(0x215)]===_0x5d53ac[_0x574da0(0x215)]?_0x1fb831[_0x574da0(0x1f9)]=_0x4ec033:_0x1fb831['startIndex']>=_0x4ec033&&_0x1fb831['startIndex']<_0x5d53ac['endIndex']&&(_0x1fb831['startIndex']+=0x1,_0x1fb831['endIndex']+=0x1);});let _0x3157f6=_0x5ec5bf(_0x35e2b7,{..._0x5d53ac,'endIndex':_0x4ec033});_0x3157f6[_0x2aeba7(0x1fd)]((_0x461101,_0x3ab8f8)=>{const _0x550568=_0x2aeba7;var _0x54c794;_0x461101[_0x550568(0x20b)]={...(_0x54c794=_0x461101['paragraphStyle'])==null?{}:_0x54c794,..._0x4f732c(_0x3ab8f8===0x0,_0x3ab8f8===_0x3157f6['length']-0x1)};});let _0x43e4bf=(_0x25c80f=_0x35e2b7[_0x2aeba7(0x19a)])==null?void 0x0:_0x25c80f[_0x2aeba7(0x1b9)](_0x2545c3=>_0x2545c3[_0x2aeba7(0x1c6)]===_0x4ec033+0x1);return _0x43e4bf&&(_0x43e4bf['paragraphStyle']=_0xc6ed51(_0x43e4bf[_0x2aeba7(0x20b)])),{'nextDocumentData':_0x3b1f80,'cursorOffset':_0x4ec033+0x1};}function _0x5d4520(_0x162042){const _0x27c103=_0x18bb44;let _0x470e2d=_0x34bf55(_0x162042[_0x27c103(0x200)]),_0x39df63=_0x174fb6(_0x470e2d),_0xcf16b2=_0x178c6c(_0x39df63,_0x162042[_0x27c103(0x1df)]);return _0xcf16b2&&_0x156a22(_0x470e2d,_0x39df63,_0xcf16b2,_0x162042[_0x27c103(0x1df)],_0x162042[_0x27c103(0x1ea)])||null;}function _0x156a22(_0x405fa8,_0x3c96f3,_0x19a278,_0x5bb3fc,_0x26989e){const _0x521f8e=_0x18bb44;let _0x20df62=_0x377190(_0x3c96f3,_0x19a278,_0x5bb3fc,_0x26989e);if(!_0x20df62)return null;let _0x153687=_0x20df62['endTokenOffset']-0x1;return _0x2621f2(_0x3c96f3,_0x20df62[_0x521f8e(0x1d8)]['startIndex'],_0x20df62[_0x521f8e(0x1d8)][_0x521f8e(0x1c6)]+0x1),{'nextDocumentData':_0x405fa8,'cursorOffset':_0x153687};}function _0x13a49b(_0x596c29,_0x22f275){const _0x1ccf0e=_0x18bb44;var _0x52bdc7;return _0x596c29==null||(_0x52bdc7=_0x596c29['blockRanges'])==null?void 0x0:_0x52bdc7[_0x1ccf0e(0x1b9)](_0xf1a9b5=>_0xf1a9b5[_0x1ccf0e(0x1c2)]===_0x2d2ae4[_0x1ccf0e(0x1fa)][_0x1ccf0e(0x198)]&&_0xf1a9b5[_0x1ccf0e(0x1c6)]<=_0x22f275&&_0x22f275<=_0xf1a9b5[_0x1ccf0e(0x1f9)]);}function _0x363106(_0x393173){const _0x1cf706=_0x18bb44;var _0x5b1088;let _0x5abee0=_0x393173[_0x1cf706(0x200)][_0x1cf706(0x216)];if(!_0x5abee0)return!0x1;let _0x2284b3=_0x393173['direction']==='left'?_0x393173[_0x1cf706(0x1df)]-0x1:_0x393173[_0x1cf706(0x1df)],_0x1161cd=_0x393173[_0x1cf706(0x1a6)]==='right'?_0x393173[_0x1cf706(0x1df)]+0x1:_0x2284b3;return((_0x5b1088=_0x5abee0[_0x1cf706(0x1ad)])==null?[]:_0x5b1088)[_0x1cf706(0x201)](_0x3b0546=>_0x3b0546[_0x1cf706(0x1c2)]===_0x2d2ae4[_0x1cf706(0x1fa)]['CODE']?_0x2284b3===_0x3b0546[_0x1cf706(0x1c6)]||_0x2284b3===_0x3b0546[_0x1cf706(0x1f9)]||_0x1161cd===_0x3b0546[_0x1cf706(0x1c6)]||_0x1161cd===_0x3b0546[_0x1cf706(0x1f9)]:!0x1);}function _0x178c6c(_0x57008f,_0x2c975a){const _0x142e7f=_0x18bb44;var _0x286481;return(_0x286481=_0x57008f[_0x142e7f(0x1ad)])==null?void 0x0:_0x286481['find'](_0x436ec9=>{const _0xb554a6=_0x142e7f;let _0x11c5a4=_0x4aa120(_0x57008f,_0x436ec9);return _0x436ec9[_0xb554a6(0x1c2)]===_0x2d2ae4[_0xb554a6(0x1fa)][_0xb554a6(0x198)]&&_0x436ec9['startIndex']<=_0x2c975a&&_0x2c975a<=_0x11c5a4+0x2;});}function _0x4f732c(_0x1a6434,_0xd829aa,_0x5b21dd=!0x1){return{'indentEnd':{'v':0x14},'indentStart':{'v':0x14},..._0x1a6434&&_0x5b21dd?{'spaceAbove':{'v':0x8}}:{},'textStyle':{'ff':_0x40102b,'fs':0xc}};}function _0x9c4542(_0x300898,_0x4817d1,_0x303131,_0x351454=!0x1){const _0x13da71=_0x18bb44;var _0x47ff0f;let _0x847421=((_0x47ff0f=_0x300898[_0x13da71(0x19a)])==null?[]:_0x47ff0f)[_0x13da71(0x219)](_0x162407=>_0x162407[_0x13da71(0x1c6)]>_0x4817d1&&_0x162407[_0x13da71(0x1c6)]<_0x303131);_0x847421['forEach']((_0xc8d7e6,_0x3ee914)=>{const _0x36c66a=_0x13da71;var _0x5537a2;_0xc8d7e6[_0x36c66a(0x20b)]={...(_0x5537a2=_0xc8d7e6[_0x36c66a(0x20b)])==null?{}:_0x5537a2,..._0x4f732c(_0x3ee914===0x0,_0x3ee914===_0x847421[_0x36c66a(0x1bb)]-0x1,_0x351454)};});}function _0xc6ed51(_0x2839cb){const _0x4698fa=_0x18bb44;var _0x1982b6,_0x3ecfb5;let _0x3a0586={..._0x2839cb==null?{}:_0x2839cb};return delete _0x3a0586[_0x4698fa(0x23c)],delete _0x3a0586[_0x4698fa(0x23a)],delete _0x3a0586[_0x4698fa(0x1a7)],delete _0x3a0586[_0x4698fa(0x1c3)],((_0x1982b6=_0x3a0586['textStyle'])==null?void 0x0:_0x1982b6['ff'])===_0x40102b&&((_0x3ecfb5=_0x3a0586[_0x4698fa(0x1e3)])==null?void 0x0:_0x3ecfb5['fs'])===0xc&&delete _0x3a0586[_0x4698fa(0x1e3)],_0x3a0586;}function _0x5ec5bf(_0x40e708,_0x305b86){const _0x4039d9=_0x18bb44;var _0x5d5722;let _0x1a33d8=_0x4aa120(_0x40e708,_0x305b86);return((_0x5d5722=_0x40e708[_0x4039d9(0x19a)])==null?[]:_0x5d5722)[_0x4039d9(0x219)](_0x1fa3c8=>_0x1fa3c8[_0x4039d9(0x1c6)]>_0x305b86[_0x4039d9(0x1c6)]&&_0x1fa3c8[_0x4039d9(0x1c6)]<_0x1a33d8);}function _0x20e23f(_0x38b7d9,_0x4621cd,_0x4c0df9){const _0x2a4490=_0x18bb44;let _0x139267=_0x509b08(_0x38b7d9,_0x4621cd,_0x4c0df9),_0x228329=_0x38b7d9[_0x2a4490(0x209)]['slice'](_0x139267,_0x4c0df9['startIndex']);return Array[_0x2a4490(0x1a1)](_0x228329)['every'](_0x18d486=>_0x18d486===_0x2d2ae4[_0x2a4490(0x203)][_0x2a4490(0x1fb)]||_0x18d486===_0x2d2ae4[_0x2a4490(0x203)]['BLOCK_END']);}function _0x34bf55(_0x5a1d90){const _0xb71dee=_0x18bb44;return _0x2d2ae4[_0xb71dee(0x19b)][_0xb71dee(0x1f7)](_0x5a1d90);}function _0x174fb6(_0xfd21fd){const _0x2ff199=_0x18bb44;if(!_0xfd21fd[_0x2ff199(0x216)])throw Error('Document\x20body\x20is\x20required');return _0xfd21fd['body'];}function _0x1bfbe8(_0x1f6a98,_0x207653,_0x273ecc){const _0x4c2466=_0x18bb44;if(_0x207653==null||_0x273ecc==null){let _0x4b98e6=_0x342a88(_0x1f6a98);return{'startOffset':_0x4b98e6,'endOffset':_0x4b98e6};}let _0x368f5c=Math[_0x4c2466(0x1c4)](_0x207653,_0x273ecc),_0x383d50=Math['max'](_0x207653,_0x273ecc);if(_0x368f5c===_0x383d50){let _0x3bad31=_0x125f8d(_0x1f6a98,_0x368f5c);return{'startOffset':_0x3bad31,'endOffset':_0x3bad31};}return _0x5ba5f5(_0x1f6a98,_0x368f5c,_0x383d50);}function _0x125f8d(_0x304a1a,_0x516ac3){const _0x5e28c3=_0x18bb44;return _0x516ac3===0x0&&_0x304a1a['dataStream'][0x0]===_0x2d2ae4[_0x5e28c3(0x203)][_0x5e28c3(0x1b3)]?0x1:_0x516ac3;}function _0x342a88(_0x1e1815){const _0x84e574=_0x18bb44;return _0x1e1815[_0x84e574(0x209)]['endsWith'](_0x2d2ae4[_0x84e574(0x203)]['SECTION_BREAK'])?Math[_0x84e574(0x1dc)](0x0,_0x1e1815['dataStream']['length']-0x1):_0x1e1815['dataStream'][_0x84e574(0x1bb)];}function _0x1d7302(_0x19113a,_0xce2cfa,_0x39cf86){const _0xa49e11=_0x18bb44;var _0x4d56d3;let _0x6f41a=Math[_0xa49e11(0x1c4)](_0xce2cfa,_0x39cf86),_0x3fe054=Math[_0xa49e11(0x1dc)](_0xce2cfa,_0x39cf86);return!!((_0x4d56d3=_0x19113a[_0xa49e11(0x20e)])!=null&&_0x4d56d3[_0xa49e11(0x201)](_0x1d63a1=>_0x6f41a>_0x1d63a1[_0xa49e11(0x1c6)]&&_0x6f41a<_0x1d63a1['endIndex']||_0x3fe054>_0x1d63a1[_0xa49e11(0x1c6)]&&_0x3fe054<_0x1d63a1[_0xa49e11(0x1f9)]||_0x6f41a<=_0x1d63a1['startIndex']&&_0x3fe054>=_0x1d63a1[_0xa49e11(0x1f9)]));}function _0x5ba5f5(_0x3f099e,_0x4200a5,_0x5b10c1){const _0x593c59=_0x18bb44;var _0x229c9f,_0x34c2fc;let _0x2e05b4=[...(_0x229c9f=_0x3f099e['paragraphs'])==null?[]:_0x229c9f][_0x593c59(0x1f8)]((_0x5286a6,_0x677ffb)=>_0x5286a6[_0x593c59(0x1c6)]-_0x677ffb[_0x593c59(0x1c6)]),_0xd97ea3=_0x2e05b4[_0x593c59(0x1b9)]((_0x5e36ce,_0x4a88e)=>(_0x4a88e===0x0?0x0:_0x2e05b4[_0x4a88e-0x1]['startIndex']+0x1)<=_0x4200a5&&_0x4200a5<=_0x5e36ce[_0x593c59(0x1c6)]),_0x5097b1=(_0x34c2fc=_0x2e05b4[_0x593c59(0x1b9)](_0x1ad0d8=>_0x1ad0d8[_0x593c59(0x1c6)]>=_0x5b10c1-0x1))==null?_0x2e05b4[_0x2e05b4[_0x593c59(0x1bb)]-0x1]:_0x34c2fc;return{'startOffset':_0xd97ea3?_0x3da0a2(_0x2e05b4,_0xd97ea3):_0x4200a5,'endOffset':_0x5097b1?_0x5097b1[_0x593c59(0x1c6)]+0x1:_0x5b10c1};}function _0x3da0a2(_0x1d0e7a,_0x5adc23){const _0x1853e6=_0x18bb44;let _0x50c771=_0x1d0e7a[_0x1853e6(0x1b0)](_0x5adc23);return _0x50c771>0x0?_0x1d0e7a[_0x50c771-0x1][_0x1853e6(0x1c6)]+0x1:0x0;}function _0x509b08(_0x598f10,_0x159419,_0x2ec6db){const _0x4c2d57=_0x18bb44;var _0x74962;return Math[_0x4c2d57(0x1dc)](_0x3da0a2((_0x74962=_0x598f10[_0x4c2d57(0x19a)])==null?[]:_0x74962,_0x2ec6db),_0x159419[_0x4c2d57(0x1c6)]+0x1);}function _0x4aa120(_0x22d98b,_0x4842b0){const _0x3e0eb9=_0x18bb44;return _0x22d98b[_0x3e0eb9(0x209)][_0x4842b0[_0x3e0eb9(0x1f9)]]===_0x2d2ae4[_0x3e0eb9(0x203)][_0x3e0eb9(0x204)]?_0x4842b0[_0x3e0eb9(0x1f9)]:_0x22d98b[_0x3e0eb9(0x209)][_0x4842b0[_0x3e0eb9(0x1f9)]+0x1]===_0x2d2ae4[_0x3e0eb9(0x203)][_0x3e0eb9(0x204)]?_0x4842b0[_0x3e0eb9(0x1f9)]+0x1:_0x4842b0['endIndex'];}function _0x377190(_0x292c49,_0x1015d1,_0x33e423,_0x12e49b){const _0x33bb15=_0x18bb44;var _0x370757,_0x250776;let _0x2e59cd=_0x4aa120(_0x292c49,_0x1015d1),_0x30d249=((_0x370757=_0x292c49[_0x33bb15(0x19a)])==null?[]:_0x370757)[_0x33bb15(0x1b9)](_0x50f871=>_0x50f871[_0x33bb15(0x1c6)]===_0x2e59cd+0x1);if(!_0x30d249||_0x12e49b!=null&&_0x30d249[_0x33bb15(0x1c6)]!==_0x12e49b||_0x33e423<_0x2e59cd||_0x33e423>_0x30d249[_0x33bb15(0x1c6)]+0x1||_0x292c49[_0x33bb15(0x209)][_0x30d249[_0x33bb15(0x1c6)]]!==_0x2d2ae4['DataStreamTreeTokenType'][_0x33bb15(0x1b3)])return null;let _0x1473de=_0x3da0a2((_0x250776=_0x292c49[_0x33bb15(0x19a)])==null?[]:_0x250776,_0x30d249),_0x57eca1=_0x292c49[_0x33bb15(0x209)]['slice'](_0x1473de,_0x30d249['startIndex']);return Array[_0x33bb15(0x1a1)](_0x57eca1)[_0x33bb15(0x191)](_0xc0202c=>_0xc0202c===_0x2d2ae4[_0x33bb15(0x203)][_0x33bb15(0x204)])?{'paragraph':_0x30d249,'endTokenOffset':_0x2e59cd}:null;}function _0x925f26(_0x2f9e8b,_0x54c307){const _0x428afa=_0x18bb44;var _0x5dfb20;let _0x4f57ab=_0x4aa120(_0x2f9e8b,_0x54c307),_0x47a0c3=_0x2f9e8b[_0x428afa(0x209)][_0x4f57ab+0x1];_0x47a0c3!==_0x2d2ae4[_0x428afa(0x203)][_0x428afa(0x229)]&&_0x47a0c3!==void 0x0||_0x2625f3(_0x2f9e8b,_0x4f57ab+0x1,_0x2d2ae4[_0x428afa(0x203)][_0x428afa(0x1b3)],{'paragraphs':[{'startIndex':0x0,'paragraphId':(0x0,_0x2d2ae4[_0x428afa(0x226)])(new Set((_0x5dfb20=_0x2f9e8b['paragraphs'])==null?void 0x0:_0x5dfb20['map'](_0x39aeef=>_0x39aeef[_0x428afa(0x1a2)])))}]});}function _0x2625f3(_0x12d926,_0x5ac570,_0x5e223b,_0x150b6b={}){const _0x3c3fb8=_0x18bb44;var _0x130b2a,_0x2d1c7f;if(_0x5e223b){if(_0x12d926['dataStream']=''+_0x12d926[_0x3c3fb8(0x209)]['slice'](0x0,_0x5ac570)+_0x5e223b+_0x12d926[_0x3c3fb8(0x209)][_0x3c3fb8(0x22a)](_0x5ac570),_0x344e10(_0x12d926,_0x5ac570,_0x5e223b[_0x3c3fb8(0x1bb)]),(_0x130b2a=_0x150b6b['paragraphs'])!=null&&_0x130b2a[_0x3c3fb8(0x1bb)]){var _0x2dfbc8;_0x12d926['paragraphs']=[...(_0x2dfbc8=_0x12d926['paragraphs'])==null?[]:_0x2dfbc8,..._0x150b6b[_0x3c3fb8(0x19a)]['map'](_0x1a2448=>({..._0x1a2448,'startIndex':_0x1a2448[_0x3c3fb8(0x1c6)]+_0x5ac570}))][_0x3c3fb8(0x1f8)]((_0x40449f,_0x188795)=>_0x40449f[_0x3c3fb8(0x1c6)]-_0x188795[_0x3c3fb8(0x1c6)]);}if((_0x2d1c7f=_0x150b6b[_0x3c3fb8(0x1ad)])!=null&&_0x2d1c7f['length']){var _0x3a89c3;_0x12d926[_0x3c3fb8(0x1ad)]=[...(_0x3a89c3=_0x12d926[_0x3c3fb8(0x1ad)])==null?[]:_0x3a89c3,..._0x150b6b[_0x3c3fb8(0x1ad)][_0x3c3fb8(0x1ac)](_0x122f5a=>({..._0x122f5a,'startIndex':_0x122f5a['startIndex']+_0x5ac570,'endIndex':_0x122f5a['endIndex']+_0x5ac570}))]['sort']((_0x3a5b84,_0xf35539)=>_0x3a5b84[_0x3c3fb8(0x1c6)]-_0xf35539[_0x3c3fb8(0x1c6)]);}}}function _0x2621f2(_0x5d5f9b,_0x325410,_0x27fc49){const _0x4206d8=_0x18bb44;let _0x4f412d=_0x27fc49-_0x325410;_0x5d5f9b[_0x4206d8(0x209)]=''+_0x5d5f9b[_0x4206d8(0x209)]['slice'](0x0,_0x325410)+_0x5d5f9b['dataStream']['slice'](_0x27fc49),_0x1afad3(_0x5d5f9b,_0x325410,_0x4f412d);}function _0x344e10(_0x30e8dc,_0x30db06,_0x1d915d){const _0x31e98c=_0x18bb44;_0x30e8dc['paragraphs']=_0x27650c(_0x30e8dc[_0x31e98c(0x19a)],_0x30db06,_0x1d915d),_0x30e8dc[_0x31e98c(0x211)]=_0x27650c(_0x30e8dc[_0x31e98c(0x211)],_0x30db06,_0x1d915d),_0x30e8dc['customBlocks']=_0x27650c(_0x30e8dc['customBlocks'],_0x30db06,_0x1d915d),_0x30e8dc[_0x31e98c(0x1e4)]=_0x4a3cef(_0x30e8dc[_0x31e98c(0x1e4)],_0x30db06,_0x1d915d),_0x30e8dc[_0x31e98c(0x20e)]=_0x10e841(_0x30e8dc['tables'],_0x30db06,_0x1d915d),_0x30e8dc[_0x31e98c(0x22f)]=_0x10e841(_0x30e8dc[_0x31e98c(0x22f)],_0x30db06,_0x1d915d),_0x30e8dc[_0x31e98c(0x19d)]=_0x10e841(_0x30e8dc[_0x31e98c(0x19d)],_0x30db06,_0x1d915d),_0x30e8dc[_0x31e98c(0x1ad)]=_0x10e841(_0x30e8dc[_0x31e98c(0x1ad)],_0x30db06,_0x1d915d);}function _0x1afad3(_0xd297f0,_0x5c6b6e,_0x5ed043){const _0x1620e9=_0x18bb44;var _0x5b0c2f,_0x5ba7ef;_0xd297f0[_0x1620e9(0x19a)]=_0x4c7590(_0xd297f0[_0x1620e9(0x19a)],_0x5c6b6e,_0x5ed043),_0xd297f0[_0x1620e9(0x211)]=_0x4c7590(_0xd297f0[_0x1620e9(0x211)],_0x5c6b6e,_0x5ed043),_0xd297f0['customBlocks']=_0x4c7590(_0xd297f0[_0x1620e9(0x21a)],_0x5c6b6e,_0x5ed043),_0xd297f0['textRuns']=(_0x5b0c2f=_0x35ffb6((_0x5ba7ef=_0xd297f0[_0x1620e9(0x1e4)])==null?void 0x0:_0x5ba7ef['map'](_0x44b1e2=>({..._0x44b1e2,'startIndex':_0x44b1e2['st'],'endIndex':_0x44b1e2['ed']})),_0x5c6b6e,_0x5ed043))==null?void 0x0:_0x5b0c2f['map'](_0x2c0c1d=>{let {startIndex:_0x51bfb4,endIndex:_0x320069,..._0x532592}=_0x2c0c1d;return{..._0x532592,'st':_0x51bfb4,'ed':_0x320069};}),_0xd297f0[_0x1620e9(0x20e)]=_0x35ffb6(_0xd297f0['tables'],_0x5c6b6e,_0x5ed043),_0xd297f0['customRanges']=_0x35ffb6(_0xd297f0[_0x1620e9(0x22f)],_0x5c6b6e,_0x5ed043),_0xd297f0['customDecorations']=_0x35ffb6(_0xd297f0[_0x1620e9(0x19d)],_0x5c6b6e,_0x5ed043),_0xd297f0['blockRanges']=_0x35ffb6(_0xd297f0['blockRanges'],_0x5c6b6e,_0x5ed043);}function _0x27650c(_0x461008,_0x2732fc,_0x2adf4c){const _0x261ab6=_0x18bb44;return _0x461008==null?void 0x0:_0x461008[_0x261ab6(0x1ac)](_0x5300cf=>_0x5300cf[_0x261ab6(0x1c6)]>=_0x2732fc?{..._0x5300cf,'startIndex':_0x5300cf[_0x261ab6(0x1c6)]+_0x2adf4c}:_0x5300cf);}function _0x4c7590(_0x40f355,_0x3a87c5,_0x1b7670){const _0x190ba9=_0x18bb44;let _0x151b59=_0x3a87c5+_0x1b7670;return _0x40f355==null?void 0x0:_0x40f355[_0x190ba9(0x1ac)](_0x354a96=>_0x354a96[_0x190ba9(0x1c6)]>=_0x3a87c5&&_0x354a96['startIndex']<_0x151b59?null:_0x354a96[_0x190ba9(0x1c6)]>=_0x151b59?{..._0x354a96,'startIndex':_0x354a96['startIndex']-_0x1b7670}:_0x354a96)['filter'](_0xa5755a=>_0xa5755a!=null);}function _0x4a3cef(_0x1f8d66,_0x295c5f,_0x38bdd2){const _0x2db228=_0x18bb44;return _0x1f8d66==null?void 0x0:_0x1f8d66[_0x2db228(0x1ac)](_0x535d57=>_0x535d57['st']>=_0x295c5f?{..._0x535d57,'st':_0x535d57['st']+_0x38bdd2,'ed':_0x535d57['ed']+_0x38bdd2}:_0x535d57['ed']>_0x295c5f?{..._0x535d57,'ed':_0x535d57['ed']+_0x38bdd2}:_0x535d57);}function _0x10e841(_0x12733a,_0x3bda48,_0x4a60e){const _0x11d4b8=_0x18bb44;return _0x12733a==null?void 0x0:_0x12733a[_0x11d4b8(0x1ac)](_0x13ecef=>_0x13ecef[_0x11d4b8(0x1c6)]>=_0x3bda48?{..._0x13ecef,'startIndex':_0x13ecef[_0x11d4b8(0x1c6)]+_0x4a60e,'endIndex':_0x13ecef[_0x11d4b8(0x1f9)]+_0x4a60e}:_0x13ecef[_0x11d4b8(0x1f9)]>=_0x3bda48?{..._0x13ecef,'endIndex':_0x13ecef['endIndex']+_0x4a60e}:_0x13ecef);}function _0x35ffb6(_0x507557,_0x5dc634,_0x224bf5){const _0x4f00d1=_0x18bb44;let _0x31dced=_0x5dc634+_0x224bf5;return _0x507557==null?void 0x0:_0x507557[_0x4f00d1(0x1ac)](_0x4ac6b9=>_0x4ac6b9['startIndex']>=_0x5dc634&&_0x4ac6b9[_0x4f00d1(0x1f9)]<_0x31dced?null:_0x4ac6b9[_0x4f00d1(0x1c6)]>=_0x31dced?{..._0x4ac6b9,'startIndex':_0x4ac6b9[_0x4f00d1(0x1c6)]-_0x224bf5,'endIndex':_0x4ac6b9[_0x4f00d1(0x1f9)]-_0x224bf5}:_0x4ac6b9[_0x4f00d1(0x1f9)]>=_0x5dc634?{..._0x4ac6b9,'startIndex':_0x4ac6b9[_0x4f00d1(0x1c6)]<_0x5dc634?_0x4ac6b9[_0x4f00d1(0x1c6)]:_0x5dc634,'endIndex':Math[_0x4f00d1(0x1dc)](_0x5dc634,_0x4ac6b9[_0x4f00d1(0x1f9)]-_0x224bf5)}:_0x4ac6b9)[_0x4f00d1(0x219)](_0x1434cf=>_0x1434cf!=null);}function _0x423a0d(_0x320c32,_0x13f96e,_0x1324fc,_0x45c31f){const _0x51480f=_0x18bb44;_0x320c32==null||_0x320c32[_0x51480f(0x1fd)](_0x36f06d=>{const _0x91c7ff=_0x51480f;_0x36f06d[_0x91c7ff(0x1c6)]>=_0x13f96e&&_0x36f06d[_0x91c7ff(0x1c6)]<_0x1324fc&&(_0x36f06d['startIndex']+=_0x45c31f);});}function _0x163ccc(_0x4ae414,_0xa60bfb,_0x224e2a,_0xcd427b){const _0x2d7317=_0x18bb44;_0x4ae414==null||_0x4ae414[_0x2d7317(0x1fd)](_0x88d4b0=>{_0x88d4b0['st']>=_0xa60bfb&&_0x88d4b0['st']<_0x224e2a?(_0x88d4b0['st']+=_0xcd427b,_0x88d4b0['ed']+=_0xcd427b):_0x88d4b0['ed']>_0xa60bfb&&_0x88d4b0['ed']<_0x224e2a&&(_0x88d4b0['ed']+=_0xcd427b);});}function _0x1f7efe(_0x2691e4,_0x44c1fa,_0x492ade,_0x14bb5a){const _0x5db0c9=_0x18bb44;_0x2691e4==null||_0x2691e4[_0x5db0c9(0x1fd)](_0x1d1e19=>{const _0x353a2f=_0x5db0c9;_0x1d1e19[_0x353a2f(0x1c6)]>=_0x44c1fa&&_0x1d1e19[_0x353a2f(0x1c6)]<_0x492ade?(_0x1d1e19[_0x353a2f(0x1c6)]+=_0x14bb5a,_0x1d1e19[_0x353a2f(0x1f9)]+=_0x14bb5a):_0x1d1e19[_0x353a2f(0x1f9)]>_0x44c1fa&&_0x1d1e19[_0x353a2f(0x1f9)]<_0x492ade&&(_0x1d1e19[_0x353a2f(0x1f9)]+=_0x14bb5a);});}function _0x52c8be(_0x10d523){'@babel/helpers - typeof';const _0x4d196e=_0x18bb44;return _0x52c8be=typeof Symbol=='function'&&typeof Symbol['iterator']==_0x4d196e(0x18f)?function(_0x301c8c){return typeof _0x301c8c;}:function(_0x4dd721){const _0x1ba13d=_0x4d196e;return _0x4dd721&&typeof Symbol=='function'&&_0x4dd721[_0x1ba13d(0x1d7)]===Symbol&&_0x4dd721!==Symbol[_0x1ba13d(0x1c7)]?_0x1ba13d(0x18f):typeof _0x4dd721;},_0x52c8be(_0x10d523);}function _0x143cf9(_0x392153,_0x2f36f5){const _0x1055a6=_0x18bb44;if(_0x52c8be(_0x392153)!=_0x1055a6(0x23b)||!_0x392153)return _0x392153;var _0x4a18fa=_0x392153[Symbol['toPrimitive']];if(_0x4a18fa!==void 0x0){var _0x2cfced=_0x4a18fa[_0x1055a6(0x208)](_0x392153,_0x2f36f5||'default');if(_0x52c8be(_0x2cfced)!='object')return _0x2cfced;throw TypeError(_0x1055a6(0x23d));}return(_0x2f36f5===_0x1055a6(0x240)?String:Number)(_0x392153);}function _0x33500a(_0x339ef8){const _0x2cdf46=_0x18bb44;var _0x504876=_0x143cf9(_0x339ef8,_0x2cdf46(0x240));return _0x52c8be(_0x504876)==_0x2cdf46(0x18f)?_0x504876:_0x504876+'';}function _0x355256(_0x2fdda4,_0x4bd284,_0x4bb156){const _0x59efe0=_0x18bb44;return(_0x4bd284=_0x33500a(_0x4bd284))in _0x2fdda4?Object[_0x59efe0(0x1cf)](_0x2fdda4,_0x4bd284,{'value':_0x4bb156,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x2fdda4[_0x4bd284]=_0x4bb156,_0x2fdda4;}var _0x4cee88=class extends _0x2d2ae4[_0x18bb44(0x1eb)]{constructor(..._0x28c1d1){const _0x43b4f5=_0x18bb44;super(..._0x28c1d1),_0x355256(this,_0x43b4f5(0x18e),new Map()),_0x355256(this,_0x43b4f5(0x1de),new _0x6794[(_0x43b4f5(0x20a))]()),_0x355256(this,_0x43b4f5(0x1f0),this[_0x43b4f5(0x1de)][_0x43b4f5(0x190)]());}[_0x18bb44(0x1d5)](_0x3e67a0,_0x5f065a){const _0x27820d=_0x18bb44;return _0x44cb53(this[_0x27820d(0x18e)][_0x27820d(0x1ba)](_0x3e67a0))[_0x27820d(0x21d)][_0x5f065a];}[_0x18bb44(0x1e2)](_0x553717,_0x57d6df,_0x25a829){const _0x53acea=_0x18bb44;this['_setResource'](_0x553717,_0x57d6df,_0x372441(this[_0x53acea(0x18e)]['get'](_0x553717),_0x57d6df,_0x25a829));}[_0x18bb44(0x1d3)](_0x2b31a3,_0x1b49bd){const _0x54c8ca=_0x18bb44;this[_0x54c8ca(0x223)](_0x2b31a3,_0x1b49bd,_0x49632f(this[_0x54c8ca(0x18e)][_0x54c8ca(0x1ba)](_0x2b31a3),_0x1b49bd));}['serialize'](_0x4531f6){const _0x3d9377=_0x18bb44;return _0x44cb53(this[_0x3d9377(0x18e)][_0x3d9377(0x1ba)](_0x4531f6));}[_0x18bb44(0x1a5)](_0x596950,_0x349d50){const _0x4dd7aa=_0x18bb44;this['_resources']['set'](_0x596950,_0x44cb53(_0x349d50)),this[_0x4dd7aa(0x1de)][_0x4dd7aa(0x1a8)]({'unitId':_0x596950});}[_0x18bb44(0x1dd)](_0x1afa52){const _0x5ec46b=_0x18bb44;this['_resources'][_0x5ec46b(0x206)](_0x1afa52),this[_0x5ec46b(0x1de)][_0x5ec46b(0x1a8)]({'unitId':_0x1afa52});}['dispose'](){const _0x99a486=_0x18bb44;super[_0x99a486(0x20f)](),this[_0x99a486(0x18e)][_0x99a486(0x1be)](),this[_0x99a486(0x1de)][_0x99a486(0x1e9)]();}['_setResource'](_0x5626a8,_0x1dfa8c,_0x1bcb54){const _0x58ef67=_0x18bb44;this['_resources'][_0x58ef67(0x1ab)](_0x5626a8,_0x1bcb54),this[_0x58ef67(0x1de)][_0x58ef67(0x1a8)]({'unitId':_0x5626a8,'blockId':_0x1dfa8c});}};let _0x31e639={'id':_0x18bb44(0x205),'type':_0x2d2ae4['CommandType'][_0x18bb44(0x192)],'handler':_0x2cd6d7=>{const _0x8a3151=_0x18bb44;let _0x2cf67e=_0x24fbff(_0x2cd6d7);if(_0x2cf67e)return _0x2cd6d7[_0x8a3151(0x1ba)](_0x2d2ae4[_0x8a3151(0x228)])['syncExecuteCommand'](_0x3da0e4['id'],{'startOffset':_0x2cf67e[_0x8a3151(0x1fc)],'endOffset':_0x2cf67e[_0x8a3151(0x217)],'unitId':_0x2cf67e['unitId']});let _0x469c2f=_0x8febec(_0x2cd6d7);if(!_0x469c2f)return!0x1;let _0x457185=_0x469c2f[_0x8a3151(0x1c6)]+0x1;return _0x2cd6d7[_0x8a3151(0x1ba)](_0x2d2ae4['ICommandService'])[_0x8a3151(0x1ae)](_0x3da0e4['id'],{'startOffset':_0x457185,'endOffset':_0x457185});}},_0x509773={'id':'docs-code.command.consume-boundary-delete','type':_0x2d2ae4['CommandType'][_0x18bb44(0x192)],'handler':()=>!0x0},_0x3da0e4={'id':_0x18bb44(0x224),'type':_0x2d2ae4[_0x18bb44(0x1e5)]['COMMAND'],'handler':(_0xe1e9ad,_0x48da87)=>{const _0x2cdebc=_0x18bb44;var _0x347e6a,_0x16cae9,_0x28e00d;let _0x308a97=_0x492273(_0xe1e9ad,_0x48da87==null?void 0x0:_0x48da87['unitId']);if(!_0x308a97)return!0x1;let _0x2a7516=_0x5330b4(_0xe1e9ad),_0x2f3e9a=_0x125d20({'blockId':(_0x347e6a=_0x48da87==null?void 0x0:_0x48da87['blockId'])==null?(0x0,_0x2d2ae4[_0x2cdebc(0x21b)])(0x6):_0x347e6a,'config':_0x48da87==null?void 0x0:_0x48da87['config'],'documentData':_0x308a97[_0x2cdebc(0x193)],'endOffset':(_0x16cae9=_0x48da87==null?void 0x0:_0x48da87[_0x2cdebc(0x217)])==null?_0x2a7516==null?void 0x0:_0x2a7516[_0x2cdebc(0x217)]:_0x16cae9,'metadata':_0x308a97[_0x2cdebc(0x1a9)][_0x2cdebc(0x207)](_0x308a97[_0x2cdebc(0x1d2)]),'startOffset':(_0x28e00d=_0x48da87==null?void 0x0:_0x48da87[_0x2cdebc(0x1fc)])==null?_0x2a7516==null?void 0x0:_0x2a7516[_0x2cdebc(0x1fc)]:_0x28e00d}),_0x32deae=_0x1bb343(_0x308a97['commandService'],_0x308a97[_0x2cdebc(0x1d2)],_0x308a97['previousDocumentData'],_0x2f3e9a['nextDocumentData'],_0x2f3e9a[_0x2cdebc(0x1df)]);return _0x32deae&&_0x2f3e9a[_0x2cdebc(0x1d1)]&&_0x308a97[_0x2cdebc(0x1a9)][_0x2cdebc(0x1a5)](_0x308a97['unitId'],_0x2f3e9a[_0x2cdebc(0x1d1)]),_0x32deae;}},_0x1fcaba={'id':'docs-code.command.update','type':_0x2d2ae4[_0x18bb44(0x1e5)][_0x18bb44(0x192)],'handler':(_0x22ef3c,_0x5a160a)=>{const _0x720427=_0x18bb44;if(!_0x5a160a)return!0x1;let _0xa50924=_0x492273(_0x22ef3c,_0x5a160a['unitId']);if(!_0xa50924)return!0x1;let _0x383662=_0x5a5761({'blockId':_0x5a160a[_0x720427(0x215)],'config':_0x5a160a[_0x720427(0x21f)],'documentData':_0xa50924['previousDocumentData'],'metadata':_0xa50924[_0x720427(0x1a9)][_0x720427(0x207)](_0xa50924['unitId'])});return _0x383662['nextMetadata']&&_0xa50924[_0x720427(0x1a9)][_0x720427(0x1a5)](_0xa50924[_0x720427(0x1d2)],_0x383662['nextMetadata']),!0x0;}},_0x37dca5={'id':'docs-code.command.exit','type':_0x2d2ae4[_0x18bb44(0x1e5)][_0x18bb44(0x192)],'handler':(_0x393e70,_0x4db286)=>{const _0x47d2aa=_0x18bb44;var _0x399394,_0x2c5738;let _0x276b1f=_0x492273(_0x393e70,_0x4db286==null?void 0x0:_0x4db286[_0x47d2aa(0x1d2)]);if(!_0x276b1f)return!0x1;let _0x188993=(_0x399394=_0x4db286==null?void 0x0:_0x4db286['cursorOffset'])==null?(_0x2c5738=_0x5330b4(_0x393e70))==null?void 0x0:_0x2c5738['startOffset']:_0x399394;if(_0x188993==null)return!0x1;let _0x392f65=_0x4f2c21({'cursorOffset':_0x188993,'documentData':_0x276b1f[_0x47d2aa(0x193)]});return _0x392f65?_0x1bb343(_0x276b1f['commandService'],_0x276b1f['unitId'],_0x276b1f[_0x47d2aa(0x193)],_0x392f65[_0x47d2aa(0x1e6)],_0x392f65['cursorOffset']):!0x1;}},_0x3b4d94={'id':_0x18bb44(0x1d6),'type':_0x2d2ae4[_0x18bb44(0x1e5)][_0x18bb44(0x192)],'handler':(_0x5bbf6b,_0x3bba85)=>{const _0x32a58d=_0x18bb44;var _0x135167,_0x446ba3;let _0xea79b6=_0x492273(_0x5bbf6b,_0x3bba85==null?void 0x0:_0x3bba85['unitId']);if(!_0xea79b6)return!0x1;let _0x61bffc=(_0x135167=_0x3bba85==null?void 0x0:_0x3bba85[_0x32a58d(0x1df)])==null?(_0x446ba3=_0x5330b4(_0x5bbf6b))==null?void 0x0:_0x446ba3[_0x32a58d(0x1fc)]:_0x135167;if(_0x61bffc==null)return!0x1;let _0x4e72f9=_0x5d4520({'cursorOffset':_0x61bffc,'documentData':_0xea79b6[_0x32a58d(0x193)],'paragraphStartIndex':_0x3bba85==null?void 0x0:_0x3bba85['paragraphStartIndex']});return _0x4e72f9?_0x1bb343(_0xea79b6[_0x32a58d(0x235)],_0xea79b6[_0x32a58d(0x1d2)],_0xea79b6[_0x32a58d(0x193)],_0x4e72f9[_0x32a58d(0x1e6)],_0x4e72f9['cursorOffset']):!0x1;}};function _0x492273(_0x2ce90c,_0xf6aeea){const _0x3042ad=_0x18bb44;let _0x2de3fa=_0x2ce90c['get'](_0x2d2ae4[_0x3042ad(0x21c)]),_0x443435=_0xf6aeea?_0x2de3fa[_0x3042ad(0x233)](_0xf6aeea):_0x2de3fa[_0x3042ad(0x1d4)](_0x2d2ae4['UniverInstanceType'][_0x3042ad(0x199)]);return _0x443435?{'commandService':_0x2ce90c[_0x3042ad(0x1ba)](_0x2d2ae4[_0x3042ad(0x228)]),'model':_0x2ce90c[_0x3042ad(0x1ba)](_0x4cee88),'previousDocumentData':_0x443435['getSnapshot'](),'unitId':_0x443435[_0x3042ad(0x221)]()}:null;}function _0x5330b4(_0x4da611){const _0x3c9643=_0x18bb44;var _0x473cd3;return(_0x473cd3=_0x4da611[_0x3c9643(0x1ba)](_0x420f42['DocSelectionManagerService'])[_0x3c9643(0x1b8)]())==null?void 0x0:_0x473cd3[0x0];}function _0x24fbff(_0x1d5246){const _0x12c983=_0x18bb44;var _0x477f8f;let _0x351969=(_0x477f8f=_0x1d5246[_0x12c983(0x1ba)](_0x2d2ae4[_0x12c983(0x21c)])['getCurrentUnitOfType'](_0x2d2ae4['UniverInstanceType'][_0x12c983(0x199)]))==null?void 0x0:_0x477f8f[_0x12c983(0x221)]();try{return _0x1d5246[_0x12c983(0x1ba)](_0x420f42[_0x12c983(0x1b7)])[_0x12c983(0x231)](_0x351969);}catch{return null;}}function _0x8febec(_0x4cbb88){const _0x3a2c9c=_0x18bb44;var _0x10209e,_0x4f1c07,_0x439eb3;let _0x5dde41=_0x5330b4(_0x4cbb88);if(!_0x5dde41)return null;let _0x56f504=_0x4cbb88[_0x3a2c9c(0x1ba)](_0x2d2ae4[_0x3a2c9c(0x21c)])[_0x3a2c9c(0x1d4)](_0x2d2ae4[_0x3a2c9c(0x1a0)]['UNIVER_DOC']),_0x3efb27=_0x56f504==null?void 0x0:_0x56f504[_0x3a2c9c(0x214)]();return _0x3efb27?(_0x10209e=_0x2d2ae4['BuildTextUtils'][_0x3a2c9c(0x1a4)]['getParagraphsInRange'](_0x5dde41,(_0x4f1c07=_0x3efb27[_0x3a2c9c(0x19a)])==null?[]:_0x4f1c07,(_0x439eb3=_0x3efb27['dataStream'])==null?'':_0x439eb3)[0x0])==null?null:_0x10209e:null;}function _0x1c1bc4(_0x207bf7,_0x25813a){const _0x2ce4c0=_0x18bb44;var _0x321c58,_0xf0aefe,_0x4811c4,_0xe33741,_0x240c61,_0x19d348,_0x75467b,_0x53698a,_0x316ed8,_0x23301a,_0x3a7cf3,_0x331b9c,_0x2c32eb,_0x440e19,_0x184870,_0x412711,_0x3aed07,_0x4809be;let _0x3b6d61=_0x2d2ae4[_0x2ce4c0(0x1e1)][_0x2ce4c0(0x20c)]();return[_0x484a69(_0x3b6d61,[_0x2ce4c0(0x216),_0x2ce4c0(0x209)],(_0x321c58=_0x207bf7[_0x2ce4c0(0x216)])==null?void 0x0:_0x321c58[_0x2ce4c0(0x209)],(_0xf0aefe=_0x25813a['body'])==null?void 0x0:_0xf0aefe['dataStream']),_0x484a69(_0x3b6d61,[_0x2ce4c0(0x216),_0x2ce4c0(0x19a)],(_0x4811c4=_0x207bf7[_0x2ce4c0(0x216)])==null?void 0x0:_0x4811c4[_0x2ce4c0(0x19a)],(_0xe33741=_0x25813a[_0x2ce4c0(0x216)])==null?void 0x0:_0xe33741['paragraphs']),_0x484a69(_0x3b6d61,[_0x2ce4c0(0x216),_0x2ce4c0(0x211)],(_0x240c61=_0x207bf7[_0x2ce4c0(0x216)])==null?void 0x0:_0x240c61[_0x2ce4c0(0x211)],(_0x19d348=_0x25813a[_0x2ce4c0(0x216)])==null?void 0x0:_0x19d348[_0x2ce4c0(0x211)]),_0x484a69(_0x3b6d61,[_0x2ce4c0(0x216),_0x2ce4c0(0x1e4)],(_0x75467b=_0x207bf7[_0x2ce4c0(0x216)])==null?void 0x0:_0x75467b[_0x2ce4c0(0x1e4)],(_0x53698a=_0x25813a[_0x2ce4c0(0x216)])==null?void 0x0:_0x53698a[_0x2ce4c0(0x1e4)]),_0x484a69(_0x3b6d61,[_0x2ce4c0(0x216),_0x2ce4c0(0x21a)],(_0x316ed8=_0x207bf7['body'])==null?void 0x0:_0x316ed8[_0x2ce4c0(0x21a)],(_0x23301a=_0x25813a[_0x2ce4c0(0x216)])==null?void 0x0:_0x23301a[_0x2ce4c0(0x21a)]),_0x484a69(_0x3b6d61,[_0x2ce4c0(0x216),_0x2ce4c0(0x22f)],(_0x3a7cf3=_0x207bf7[_0x2ce4c0(0x216)])==null?void 0x0:_0x3a7cf3[_0x2ce4c0(0x22f)],(_0x331b9c=_0x25813a[_0x2ce4c0(0x216)])==null?void 0x0:_0x331b9c['customRanges']),_0x484a69(_0x3b6d61,[_0x2ce4c0(0x216),_0x2ce4c0(0x19d)],(_0x2c32eb=_0x207bf7[_0x2ce4c0(0x216)])==null?void 0x0:_0x2c32eb['customDecorations'],(_0x440e19=_0x25813a[_0x2ce4c0(0x216)])==null?void 0x0:_0x440e19[_0x2ce4c0(0x19d)]),_0x484a69(_0x3b6d61,[_0x2ce4c0(0x216),'tables'],(_0x184870=_0x207bf7[_0x2ce4c0(0x216)])==null?void 0x0:_0x184870[_0x2ce4c0(0x20e)],(_0x412711=_0x25813a[_0x2ce4c0(0x216)])==null?void 0x0:_0x412711[_0x2ce4c0(0x20e)]),_0x484a69(_0x3b6d61,[_0x2ce4c0(0x216),'blockRanges'],(_0x3aed07=_0x207bf7[_0x2ce4c0(0x216)])==null?void 0x0:_0x3aed07[_0x2ce4c0(0x1ad)],(_0x4809be=_0x25813a[_0x2ce4c0(0x216)])==null?void 0x0:_0x4809be[_0x2ce4c0(0x1ad)])]['filter'](Boolean)[_0x2ce4c0(0x1c8)]((_0x155421,_0x27252c)=>_0x2d2ae4[_0x2ce4c0(0x1e1)]['compose'](_0x155421,_0x27252c),null);}function _0x484a69(_0x3fdb40,_0x186b88,_0x414050,_0x340abb){const _0x42bbac=_0x18bb44;return _0x2d2ae4[_0x42bbac(0x19b)][_0x42bbac(0x1b6)](_0x414050,_0x340abb)?null:_0x3fdb40[_0x42bbac(0x21e)](_0x186b88,_0x414050,_0x340abb);}function _0x1bb343(_0x1b172d,_0x169d2d,_0x9d73b2,_0x520d15,_0x107c54){const _0x3add32=_0x18bb44;let _0x196673=_0x1c1bc4(_0x9d73b2,_0x520d15);return _0x196673?!!_0x1b172d['syncExecuteCommand'](_0x420f42[_0x3add32(0x1db)]['id'],{'unitId':_0x169d2d,'actions':_0x196673,'textRanges':[{'startOffset':_0x107c54,'endOffset':_0x107c54,'collapsed':!0x0}],'isEditing':!0x1}):!0x1;}let _0x1e3738=_0x18bb44(0x19e);var _0x5a3dcb=_0x18bb44(0x1f6),_0x54f6ef=_0x18bb44(0x1c0);let _0x234ecf={};function _0x5d501f(_0xc002d7,_0x45474e){return function(_0x3ec368,_0xc614dd){_0x45474e(_0x3ec368,_0xc614dd,_0xc002d7);};}function _0xc0f957(_0xd80a37,_0x5a3aa7,_0x80b769,_0x556801){const _0x1c92ae=_0x18bb44;var _0x334e88=arguments[_0x1c92ae(0x1bb)],_0x161254=_0x334e88<0x3?_0x5a3aa7:_0x556801===null?_0x556801=Object[_0x1c92ae(0x1c1)](_0x5a3aa7,_0x80b769):_0x556801,_0x2c8d52;if(typeof Reflect=='object'&&typeof Reflect[_0x1c92ae(0x1cb)]==_0x1c92ae(0x1a3))_0x161254=Reflect[_0x1c92ae(0x1cb)](_0xd80a37,_0x5a3aa7,_0x80b769,_0x556801);else{for(var _0x499bf2=_0xd80a37[_0x1c92ae(0x1bb)]-0x1;_0x499bf2>=0x0;_0x499bf2--)(_0x2c8d52=_0xd80a37[_0x499bf2])&&(_0x161254=(_0x334e88<0x3?_0x2c8d52(_0x161254):_0x334e88>0x3?_0x2c8d52(_0x5a3aa7,_0x80b769,_0x161254):_0x2c8d52(_0x5a3aa7,_0x80b769))||_0x161254);}return _0x334e88>0x3&&_0x161254&&Object[_0x1c92ae(0x1cf)](_0x5a3aa7,_0x80b769,_0x161254),_0x161254;}let _0x478c4e=class extends _0x2d2ae4['Disposable']{constructor(_0x31c1f1,_0x10e8d3){const _0x1e2832=_0x18bb44;super(),this[_0x1e2832(0x1fe)]=_0x31c1f1,this[_0x1e2832(0x1f4)]=_0x10e8d3,this[_0x1e2832(0x22d)]();}[_0x18bb44(0x22d)](){const _0x529a69=_0x18bb44;this[_0x529a69(0x1c9)](this['_resourceManagerService'][_0x529a69(0x1e0)]({'pluginName':_0x1e3738,'businesses':[_0x2d2ae4[_0x529a69(0x1a0)]['UNIVER_DOC']],'toJson':_0x3a1301=>JSON['stringify'](this[_0x529a69(0x1f4)][_0x529a69(0x207)](_0x3a1301)),'parseJson':_0x459c7f=>_0x44cb53(JSON[_0x529a69(0x1cd)](_0x459c7f)),'onLoad':(_0x36aaa8,_0x3fcd40)=>this[_0x529a69(0x1f4)][_0x529a69(0x1a5)](_0x36aaa8,_0x3fcd40),'onUnLoad':_0x5beba7=>this['_docsCodeModel'][_0x529a69(0x1dd)](_0x5beba7)}));}};_0x478c4e=_0xc0f957([_0x5d501f(0x0,_0x2d2ae4[_0x18bb44(0x18b)]),_0x5d501f(0x1,(0x0,_0x2d2ae4['Inject'])(_0x4cee88))],_0x478c4e);let _0x147529=class extends _0x2d2ae4['Plugin']{constructor(_0x1d0194=_0x234ecf,_0x3df27c,_0x4df3ea,_0x3e36cd){const _0x2a3508=_0x18bb44;super(),this['_config']=_0x1d0194,this[_0x2a3508(0x1da)]=_0x3df27c,this[_0x2a3508(0x1f5)]=_0x4df3ea,this[_0x2a3508(0x212)]=_0x3e36cd;let {..._0x6498fd}=(0x0,_0x2d2ae4[_0x2a3508(0x1b4)])({},_0x234ecf,this[_0x2a3508(0x1e7)]);this[_0x2a3508(0x212)][_0x2a3508(0x1d0)](_0x2a3508(0x202),_0x6498fd);}[_0x18bb44(0x218)](){const _0x26e5d6=_0x18bb44;this[_0x26e5d6(0x1da)][_0x26e5d6(0x210)]([_0x4cee88]),this[_0x26e5d6(0x1da)][_0x26e5d6(0x210)]([_0x478c4e]),this[_0x26e5d6(0x1da)][_0x26e5d6(0x1ba)](_0x4cee88),this[_0x26e5d6(0x1da)][_0x26e5d6(0x1ba)](_0x478c4e),[_0x3da0e4,_0x31e639,_0x1fcaba,_0x37dca5,_0x3b4d94,_0x509773]['forEach'](_0x4e3fd8=>this[_0x26e5d6(0x1c9)](this[_0x26e5d6(0x1f5)]['registerCommand'](_0x4e3fd8)));}};_0x355256(_0x147529,_0x18bb44(0x23e),_0x1e3738),_0x355256(_0x147529,_0x18bb44(0x197),_0x5a3dcb),_0x355256(_0x147529,_0x18bb44(0x23f),_0x54f6ef),_0x355256(_0x147529,_0x18bb44(0x232),_0x2d2ae4[_0x18bb44(0x1a0)][_0x18bb44(0x199)]),_0x147529=_0xc0f957([(0x0,_0x2d2ae4[_0x18bb44(0x1ca)])(_0x181267[_0x18bb44(0x22e)],_0x420f42[_0x18bb44(0x225)]),_0x5d501f(0x1,(0x0,_0x2d2ae4[_0x18bb44(0x1ff)])(_0x2d2ae4[_0x18bb44(0x1ce)])),_0x5d501f(0x2,_0x2d2ae4[_0x18bb44(0x228)]),_0x5d501f(0x3,_0x2d2ae4['IConfigService'])],_0x147529),_0x323281[_0x18bb44(0x194)]=_0x44adb7,_0x323281['DOCS_CODE_PLUGIN']=_0x1e3738,_0x323281[_0x18bb44(0x1f2)]=_0x3b4d94,_0x323281['DocsCodeConsumeBoundaryDeleteCommand']=_0x509773,_0x323281['DocsCodeExitCommand']=_0x37dca5,_0x323281[_0x18bb44(0x237)]=_0x31e639,_0x323281[_0x18bb44(0x1b5)]=_0x3da0e4,_0x323281['DocsCodeModel']=_0x4cee88,_0x323281[_0x18bb44(0x238)]=_0x1fcaba,Object[_0x18bb44(0x1cf)](_0x323281,_0x18bb44(0x18d),{'enumerable':!0x0,'get':function(){return _0x147529;}}),_0x323281['buildCancelEmptyCodeParagraphActions']=_0x5d4520,_0x323281[_0x18bb44(0x1aa)]=_0x4f2c21,_0x323281[_0x18bb44(0x1ef)]=_0x125d20,_0x323281[_0x18bb44(0x1ed)]=_0x5a5761,_0x323281[_0x18bb44(0x20d)]=_0x13a49b,_0x323281[_0x18bb44(0x195)]=_0x363106,_0x323281[_0x18bb44(0x18c)]=_0x566ed2;}));
1
+ function _0x209f(_0x2741f9,_0x169e74){_0x2741f9=_0x2741f9-0xbe;const _0x1d60c9=_0x1d60();let _0x209f64=_0x1d60c9[_0x2741f9];return _0x209f64;}(function(_0x3f20f7,_0x17be26){const _0x593987=_0x209f,_0xd58875=_0x3f20f7();while(!![]){try{const _0x6c10c2=parseInt(_0x593987(0xf1))/0x1*(-parseInt(_0x593987(0xd7))/0x2)+parseInt(_0x593987(0x16a))/0x3*(parseInt(_0x593987(0x150))/0x4)+-parseInt(_0x593987(0x114))/0x5+-parseInt(_0x593987(0x132))/0x6*(parseInt(_0x593987(0xf3))/0x7)+-parseInt(_0x593987(0x12b))/0x8+parseInt(_0x593987(0xc0))/0x9+-parseInt(_0x593987(0x159))/0xa*(-parseInt(_0x593987(0x117))/0xb);if(_0x6c10c2===_0x17be26)break;else _0xd58875['push'](_0xd58875['shift']());}catch(_0x542f69){_0xd58875['push'](_0xd58875['shift']());}}}(_0x1d60,0x8e609),function(_0x23302d,_0x17f236){const _0x395677=_0x209f;typeof exports=='object'&&typeof module<'u'?_0x17f236(exports,require('@univerjs/core'),require('@univerjs/docs'),require('rxjs'),require('@univerjs-pro/license')):typeof define=='function'&&define['amd']?define([_0x395677(0xca),'@univerjs/core',_0x395677(0xe2),'rxjs',_0x395677(0xc6)],_0x17f236):(_0x23302d=typeof globalThis<'u'?globalThis:_0x23302d||self,_0x17f236(_0x23302d[_0x395677(0xee)]={},_0x23302d[_0x395677(0x15a)],_0x23302d[_0x395677(0x12e)],_0x23302d[_0x395677(0xf2)],_0x23302d['UniverProLicense']));}(this,function(_0x27132c,_0x3b229d,_0x371266,_0x22a75c,_0x3158ca){const _0x29da26=_0x209f;Object[_0x29da26(0x116)](_0x27132c,Symbol[_0x29da26(0xf5)],{'value':'Module'});let _0xa35c8d={'language':'javascript','showLineNumbers':!0x1,'tabSize':0x4,'wrap':!0x0};function _0x5da954(_0x13c15b){return{..._0xa35c8d,..._0x13c15b};}function _0x2619bd(_0x3fcf2e){const _0x3a842d=_0x29da26;var _0x25d16;let _0x2943e4=(_0x25d16=_0x3fcf2e==null?void 0x0:_0x3fcf2e['codes'])==null?{}:_0x25d16;return{'codes':Object[_0x3a842d(0x10a)](Object[_0x3a842d(0xbf)](_0x2943e4)['map'](([_0x50aa5c,_0x40f5ba])=>[_0x50aa5c,_0x5da954(_0x40f5ba)]))};}function _0x53a088(_0x262cb8,_0x58f4c3,_0x41aa97){const _0x2559f6=_0x29da26;let _0x21bf7f=_0x2619bd(_0x262cb8);return _0x21bf7f[_0x2559f6(0x146)][_0x58f4c3]=_0x5da954({..._0x21bf7f[_0x2559f6(0x146)][_0x58f4c3],..._0x41aa97}),_0x21bf7f;}function _0x355325(_0x23cc8d,_0x25f11c){const _0xb34f24=_0x29da26;let _0x5a741e=_0x2619bd(_0x23cc8d);return delete _0x5a741e[_0xb34f24(0x146)][_0x25f11c],_0x5a741e;}let _0x131f09=_0x29da26(0xf0);function _0x4b493e(_0x56da2f){const _0x5b3e6a=_0x29da26;var _0x269942,_0x1eeb1e,_0x24012a;let _0x4f800b=_0x427451(_0x56da2f[_0x5b3e6a(0x15f)]),_0x23a46e=_0x2fb5d4(_0x4f800b),_0x2dd723=_0x5daccf(_0x56da2f[_0x5b3e6a(0x13e)],_0x56da2f[_0x5b3e6a(0xd3)]),_0x26fad3=_0x2dd723?(_0x269942=_0x23a46e[_0x5b3e6a(0x140)])==null?void 0x0:_0x269942[_0x5b3e6a(0x124)](_0x3852fd=>_0x3852fd['startIndex']===_0x2dd723[_0x5b3e6a(0x13e)]&&_0x3852fd['endIndex']+0x1===_0x2dd723[_0x5b3e6a(0xd3)]):void 0x0,{startOffset:_0x29ba3a,endOffset:_0x3520eb}=_0x26fad3?_0x2dd723:_0x2daaf0(_0x23a46e,_0x56da2f[_0x5b3e6a(0x13e)],_0x56da2f[_0x5b3e6a(0xd3)]),_0x4b21e7=_0x14093d(_0x23a46e,_0x29ba3a,_0x3520eb),_0x8f3fcf=(_0x1eeb1e=_0x26fad3==null?void 0x0:_0x26fad3[_0x5b3e6a(0xfd)])==null?_0x56da2f[_0x5b3e6a(0xfd)]:_0x1eeb1e,_0x5a13f1=_0x53a088(_0x56da2f['metadata'],_0x8f3fcf,{..._0xa35c8d,..._0x56da2f[_0x5b3e6a(0x130)]});if(_0x26fad3)return _0x26fad3[_0x5b3e6a(0x144)]=_0x3b229d[_0x5b3e6a(0x106)]['CODE'],_0x37b222(_0x23a46e,_0x29ba3a,_0x3520eb),_0x5c8e00(_0x23a46e,_0x29ba3a,_0x3520eb,_0x4b21e7),_0x3e24d6(_0x23a46e,_0x26fad3),{'nextDocumentData':_0x4f800b,'nextMetadata':_0x5a13f1,'cursorOffset':_0x29ba3a+0x1};if(_0x29ba3a===_0x3520eb){var _0x2ddcb1,_0x2fa5c8;let _0x49578d=''+_0x3b229d[_0x5b3e6a(0x15e)][_0x5b3e6a(0x101)]+_0x3b229d[_0x5b3e6a(0x15e)][_0x5b3e6a(0x169)]+_0x3b229d['DataStreamTreeTokenType'][_0x5b3e6a(0xc1)];_0x9dc434(_0x23a46e,_0x29ba3a,_0x49578d,{'paragraphs':[{'startIndex':0x1,'paragraphId':(0x0,_0x3b229d[_0x5b3e6a(0x13f)])(new Set((_0x2ddcb1=_0x23a46e['paragraphs'])==null?void 0x0:_0x2ddcb1[_0x5b3e6a(0x161)](_0x1969a8=>_0x1969a8['paragraphId']))),'paragraphStyle':_0x1fec09(!0x0,!0x0,_0x4b21e7)}],'blockRanges':[{'blockId':_0x8f3fcf,'blockType':_0x3b229d['DocumentBlockRangeType']['CODE'],'startIndex':0x0,'endIndex':_0x49578d[_0x5b3e6a(0x162)]-0x1}]});let _0x10d28e=(_0x2fa5c8=_0x23a46e['blockRanges'])==null?void 0x0:_0x2fa5c8[_0x5b3e6a(0x124)](_0x2c9aad=>_0x2c9aad[_0x5b3e6a(0xfd)]===_0x8f3fcf);return _0x10d28e&&_0x3e24d6(_0x23a46e,_0x10d28e),{'nextDocumentData':_0x4f800b,'nextMetadata':_0x5a13f1,'cursorOffset':_0x29ba3a+0x1};}_0x9dc434(_0x23a46e,_0x3520eb,_0x3b229d['DataStreamTreeTokenType'][_0x5b3e6a(0xc1)]),_0x9dc434(_0x23a46e,_0x29ba3a,_0x3b229d[_0x5b3e6a(0x15e)]['BLOCK_START']),_0x5c8e00(_0x23a46e,_0x29ba3a,_0x3520eb+0x1,_0x4b21e7);let _0x3b4359={'blockId':_0x8f3fcf,'blockType':_0x3b229d[_0x5b3e6a(0x106)][_0x5b3e6a(0xf4)],'startIndex':_0x29ba3a,'endIndex':_0x3520eb+0x1};return _0x23a46e[_0x5b3e6a(0x140)]=[...(_0x24012a=_0x23a46e[_0x5b3e6a(0x140)])==null?[]:_0x24012a,_0x3b4359][_0x5b3e6a(0xf9)]((_0x1e2a76,_0x15625c)=>_0x1e2a76[_0x5b3e6a(0xec)]-_0x15625c[_0x5b3e6a(0xec)]),_0x3e24d6(_0x23a46e,_0x3b4359),{'nextDocumentData':_0x4f800b,'nextMetadata':_0x5a13f1,'cursorOffset':_0x29ba3a+0x1};}function _0x37b222(_0x220735,_0x420611,_0x291ae5){const _0x844a6e=_0x29da26;var _0x499af9;((_0x499af9=_0x220735[_0x844a6e(0xce)])==null?[]:_0x499af9)[_0x844a6e(0x15d)](_0x3370ae=>_0x3370ae['startIndex']>_0x420611&&_0x3370ae[_0x844a6e(0xec)]<_0x291ae5)[_0x844a6e(0xc3)](_0x3d67f6=>{const _0x4d1f25=_0x844a6e;var _0x29cd85;let _0x419dbe={...(_0x29cd85=_0x3d67f6['paragraphStyle'])==null?{}:_0x29cd85};delete _0x419dbe[_0x4d1f25(0x168)],delete _0x419dbe[_0x4d1f25(0x13b)],_0x3d67f6['paragraphStyle']=_0x419dbe;});}function _0x5daccf(_0x4c7d02,_0x1e3a3){const _0x54837e=_0x29da26;return _0x4c7d02==null||_0x1e3a3==null||_0x4c7d02===_0x1e3a3?null:{'startOffset':Math[_0x54837e(0xc5)](_0x4c7d02,_0x1e3a3),'endOffset':Math[_0x54837e(0xdf)](_0x4c7d02,_0x1e3a3)};}function _0x21379e(_0x8ad03c){const _0x42f63f=_0x29da26;return{'nextDocumentData':_0x427451(_0x8ad03c[_0x42f63f(0x15f)]),'nextMetadata':_0x53a088(_0x8ad03c[_0x42f63f(0x165)],_0x8ad03c['blockId'],_0x8ad03c[_0x42f63f(0x130)]),'cursorOffset':0x0};}function _0x4c43e0(_0x2a9ca1){const _0x303c51=_0x29da26;var _0x38de78,_0x31d7cd;let _0x35ffba=_0x427451(_0x2a9ca1[_0x303c51(0x15f)]),_0x119027=_0x2fb5d4(_0x35ffba),_0x148601=_0x9a0237(_0x119027,_0x2a9ca1['cursorOffset']);if(!_0x148601)return null;let _0x38c72d=_0x35bf4e(_0x119027,_0x148601),_0x3ed850=_0x38c72d[_0x38c72d[_0x303c51(0x162)]-0x1];if(!_0x3ed850||!_0x15f8d5(_0x119027,_0x148601,_0x3ed850)||_0x2a9ca1[_0x303c51(0xc9)]<_0x3ed850[_0x303c51(0xec)])return null;let _0x14ae94=_0xb4b9d6(_0x119027,_0x148601,_0x3ed850);if(_0x14ae94>=_0x148601[_0x303c51(0x14c)])return null;_0x119027[_0x303c51(0x14e)]=[_0x119027['dataStream'][_0x303c51(0x11a)](0x0,_0x14ae94),_0x3b229d[_0x303c51(0x15e)][_0x303c51(0xc1)],_0x119027[_0x303c51(0x14e)][_0x303c51(0x11a)](_0x14ae94,_0x148601[_0x303c51(0x14c)]),_0x119027[_0x303c51(0x14e)]['slice'](_0x148601[_0x303c51(0x14c)]+0x1)]['join'](''),_0x3767de(_0x119027[_0x303c51(0xce)],_0x14ae94,_0x148601[_0x303c51(0x14c)],0x1),_0x3767de(_0x119027[_0x303c51(0x16c)],_0x14ae94,_0x148601[_0x303c51(0x14c)],0x1),_0x3767de(_0x119027[_0x303c51(0x112)],_0x14ae94,_0x148601['endIndex'],0x1),_0x51759b(_0x119027[_0x303c51(0xc8)],_0x14ae94,_0x148601[_0x303c51(0x14c)],0x1),_0xd409bd(_0x119027[_0x303c51(0x131)],_0x14ae94,_0x148601['endIndex'],0x1),_0xd409bd(_0x119027[_0x303c51(0xe5)],_0x14ae94,_0x148601[_0x303c51(0x14c)],0x1),_0xd409bd(_0x119027[_0x303c51(0x15b)],_0x14ae94,_0x148601[_0x303c51(0x14c)],0x1),(_0x38de78=_0x119027[_0x303c51(0x140)])==null||_0x38de78[_0x303c51(0xc3)](_0x19fd1e=>{const _0x102587=_0x303c51;_0x19fd1e===_0x148601||_0x19fd1e[_0x102587(0xfd)]===_0x148601['blockId']?_0x19fd1e[_0x102587(0x14c)]=_0x14ae94:_0x19fd1e[_0x102587(0xec)]>=_0x14ae94&&_0x19fd1e[_0x102587(0xec)]<_0x148601['endIndex']&&(_0x19fd1e['startIndex']+=0x1,_0x19fd1e[_0x102587(0x14c)]+=0x1);});let _0x12019a=_0x35bf4e(_0x119027,{..._0x148601,'endIndex':_0x14ae94});_0x12019a[_0x303c51(0xc3)]((_0x124e92,_0x469429)=>{const _0x2ca5b2=_0x303c51;var _0x4cf2a2;_0x124e92[_0x2ca5b2(0x103)]={...(_0x4cf2a2=_0x124e92['paragraphStyle'])==null?{}:_0x4cf2a2,..._0x1fec09(_0x469429===0x0,_0x469429===_0x12019a[_0x2ca5b2(0x162)]-0x1)};});let _0x1fd547=(_0x31d7cd=_0x119027[_0x303c51(0xce)])==null?void 0x0:_0x31d7cd[_0x303c51(0x124)](_0x14a0ce=>_0x14a0ce[_0x303c51(0xec)]===_0x14ae94+0x1);return _0x1fd547&&(_0x1fd547[_0x303c51(0x103)]=_0x3c8347(_0x1fd547[_0x303c51(0x103)])),{'nextDocumentData':_0x35ffba,'cursorOffset':_0x14ae94+0x1};}function _0x5ece81(_0x19aa6e){const _0x109199=_0x29da26;let _0x54dbbc=_0x427451(_0x19aa6e[_0x109199(0x15f)]),_0x573702=_0x2fb5d4(_0x54dbbc),_0x5d4117=_0x9a0237(_0x573702,_0x19aa6e[_0x109199(0xc9)]);return _0x5d4117&&_0x11a8bf(_0x54dbbc,_0x573702,_0x5d4117,_0x19aa6e['cursorOffset'],_0x19aa6e[_0x109199(0xdd)])||null;}function _0x11a8bf(_0x311e95,_0x487764,_0x4359ab,_0x3f9799,_0x3dfb1c){const _0x148f14=_0x29da26;let _0x5474fe=_0x35171c(_0x487764,_0x4359ab,_0x3f9799,_0x3dfb1c);if(!_0x5474fe)return null;let _0x5c856f=_0x5474fe[_0x148f14(0xcc)]-0x1;return _0x26f879(_0x487764,_0x5474fe[_0x148f14(0x11f)][_0x148f14(0xec)],_0x5474fe[_0x148f14(0x11f)][_0x148f14(0xec)]+0x1),{'nextDocumentData':_0x311e95,'cursorOffset':_0x5c856f};}function _0x569073(_0x57e9ba,_0x27d76a){const _0x474a9f=_0x29da26;var _0x4b87c3;return _0x57e9ba==null||(_0x4b87c3=_0x57e9ba['blockRanges'])==null?void 0x0:_0x4b87c3[_0x474a9f(0x124)](_0x3f0be3=>_0x3f0be3[_0x474a9f(0x144)]===_0x3b229d[_0x474a9f(0x106)][_0x474a9f(0xf4)]&&_0x3f0be3['startIndex']<=_0x27d76a&&_0x27d76a<=_0x3f0be3['endIndex']);}function _0x401d12(_0x4929ce){const _0x466558=_0x29da26;var _0x1d43b7;let _0x1fa1b5=_0x4929ce[_0x466558(0x15f)]['body'];if(!_0x1fa1b5)return!0x1;let _0x5ea1d=_0x4929ce['direction']===_0x466558(0x12d)?_0x4929ce[_0x466558(0xc9)]-0x1:_0x4929ce[_0x466558(0xc9)],_0x17e3a9=_0x4929ce[_0x466558(0xd5)]===_0x466558(0xd9)?_0x4929ce[_0x466558(0xc9)]+0x1:_0x5ea1d;return((_0x1d43b7=_0x1fa1b5[_0x466558(0x140)])==null?[]:_0x1d43b7)[_0x466558(0x147)](_0x3fda05=>_0x3fda05['blockType']===_0x3b229d['DocumentBlockRangeType']['CODE']?_0x5ea1d===_0x3fda05[_0x466558(0xec)]||_0x5ea1d===_0x3fda05['endIndex']||_0x17e3a9===_0x3fda05[_0x466558(0xec)]||_0x17e3a9===_0x3fda05[_0x466558(0x14c)]:!0x1);}function _0x9a0237(_0x23abf3,_0x2fe2e0){const _0x4e237d=_0x29da26;var _0x247a8;return(_0x247a8=_0x23abf3[_0x4e237d(0x140)])==null?void 0x0:_0x247a8[_0x4e237d(0x124)](_0x58d052=>{const _0x4d8b41=_0x4e237d;let _0x5cd81b=_0x327fa5(_0x23abf3,_0x58d052);return _0x58d052['blockType']===_0x3b229d['DocumentBlockRangeType'][_0x4d8b41(0xf4)]&&_0x58d052[_0x4d8b41(0xec)]<=_0x2fe2e0&&_0x2fe2e0<=_0x5cd81b+0x2;});}function _0x1fec09(_0x441708,_0x288e47,_0x40f955=!0x1){return{'indentEnd':{'v':0x14},'indentStart':{'v':0x14},..._0x441708&&_0x40f955?{'spaceAbove':{'v':0x8}}:{},'textStyle':{'ff':_0x131f09,'fs':0xc}};}function _0x5c8e00(_0x5d1c3c,_0x30995d,_0x1c8194,_0x3965a2=!0x1){const _0x499d3c=_0x29da26;var _0x3e3c8c;let _0x4568dd=((_0x3e3c8c=_0x5d1c3c[_0x499d3c(0xce)])==null?[]:_0x3e3c8c)[_0x499d3c(0x15d)](_0x17eb32=>_0x17eb32[_0x499d3c(0xec)]>_0x30995d&&_0x17eb32[_0x499d3c(0xec)]<_0x1c8194);_0x4568dd[_0x499d3c(0xc3)]((_0x5e4193,_0x3fa91c)=>{const _0x2f3400=_0x499d3c;var _0x2b8ce1;_0x5e4193[_0x2f3400(0x103)]={...(_0x2b8ce1=_0x5e4193[_0x2f3400(0x103)])==null?{}:_0x2b8ce1,..._0x1fec09(_0x3fa91c===0x0,_0x3fa91c===_0x4568dd['length']-0x1,_0x3965a2)};});}function _0x3c8347(_0x456264){const _0x2fe976=_0x29da26;var _0x5042ab,_0x48a5ea;let _0x37a1b0={..._0x456264==null?{}:_0x456264};return delete _0x37a1b0['indentEnd'],delete _0x37a1b0[_0x2fe976(0x123)],delete _0x37a1b0['spaceAbove'],delete _0x37a1b0[_0x2fe976(0x13b)],((_0x5042ab=_0x37a1b0['textStyle'])==null?void 0x0:_0x5042ab['ff'])===_0x131f09&&((_0x48a5ea=_0x37a1b0['textStyle'])==null?void 0x0:_0x48a5ea['fs'])===0xc&&delete _0x37a1b0[_0x2fe976(0x167)],_0x37a1b0;}function _0x35bf4e(_0x4cb181,_0x122ec8){const _0x176dee=_0x29da26;var _0x54c5a8;let _0x2f10f1=_0x327fa5(_0x4cb181,_0x122ec8);return((_0x54c5a8=_0x4cb181[_0x176dee(0xce)])==null?[]:_0x54c5a8)['filter'](_0x32c00f=>_0x32c00f[_0x176dee(0xec)]>_0x122ec8['startIndex']&&_0x32c00f['startIndex']<_0x2f10f1);}function _0x15f8d5(_0x15f011,_0x25f9f5,_0x39b33d){const _0x5ea916=_0x29da26;let _0x3116e1=_0xb4b9d6(_0x15f011,_0x25f9f5,_0x39b33d),_0xe94be9=_0x15f011[_0x5ea916(0x14e)][_0x5ea916(0x11a)](_0x3116e1,_0x39b33d[_0x5ea916(0xec)]);return Array[_0x5ea916(0xef)](_0xe94be9)['every'](_0x1a8c47=>_0x1a8c47===_0x3b229d[_0x5ea916(0x15e)][_0x5ea916(0x101)]||_0x1a8c47===_0x3b229d[_0x5ea916(0x15e)][_0x5ea916(0xc1)]);}function _0x427451(_0x549cf6){const _0x5da85e=_0x29da26;return _0x3b229d[_0x5da85e(0xc2)][_0x5da85e(0x129)](_0x549cf6);}function _0x2fb5d4(_0x451080){const _0x54ec02=_0x29da26;if(!_0x451080[_0x54ec02(0xeb)])throw Error(_0x54ec02(0x118));return _0x451080[_0x54ec02(0xeb)];}function _0x2daaf0(_0x203bd3,_0x343a42,_0xcdd034){const _0x368809=_0x29da26;if(_0x343a42==null||_0xcdd034==null){let _0x50bbf7=_0xb2693a(_0x203bd3);return{'startOffset':_0x50bbf7,'endOffset':_0x50bbf7};}let _0x2c84f1=Math[_0x368809(0xc5)](_0x343a42,_0xcdd034),_0x52e4d5=Math[_0x368809(0xdf)](_0x343a42,_0xcdd034);if(_0x2c84f1===_0x52e4d5){let _0x35c996=_0x337684(_0x203bd3,_0x2c84f1);return{'startOffset':_0x35c996,'endOffset':_0x35c996};}return _0x2b3d1c(_0x203bd3,_0x2c84f1,_0x52e4d5);}function _0x337684(_0x5e56fa,_0x120b91){const _0x5e6491=_0x29da26;return _0x120b91===0x0&&_0x5e56fa['dataStream'][0x0]===_0x3b229d['DataStreamTreeTokenType'][_0x5e6491(0x169)]?0x1:_0x120b91;}function _0xb2693a(_0x13e8f1){const _0x3e1458=_0x29da26;return _0x13e8f1[_0x3e1458(0x14e)][_0x3e1458(0x10c)](_0x3b229d['DataStreamTreeTokenType'][_0x3e1458(0x12a)])?Math[_0x3e1458(0xdf)](0x0,_0x13e8f1[_0x3e1458(0x14e)][_0x3e1458(0x162)]-0x1):_0x13e8f1[_0x3e1458(0x14e)][_0x3e1458(0x162)];}function _0x14093d(_0x477218,_0x37289a,_0xc69e20){const _0x40f766=_0x29da26;var _0x292007;let _0x36bd45=Math[_0x40f766(0xc5)](_0x37289a,_0xc69e20),_0x9c44b8=Math[_0x40f766(0xdf)](_0x37289a,_0xc69e20);return!!((_0x292007=_0x477218['tables'])!=null&&_0x292007[_0x40f766(0x147)](_0x568dfb=>_0x36bd45>_0x568dfb[_0x40f766(0xec)]&&_0x36bd45<_0x568dfb['endIndex']||_0x9c44b8>_0x568dfb[_0x40f766(0xec)]&&_0x9c44b8<_0x568dfb['endIndex']||_0x36bd45<=_0x568dfb['startIndex']&&_0x9c44b8>=_0x568dfb[_0x40f766(0x14c)]));}function _0x2b3d1c(_0x30e2da,_0x599682,_0x2b8771){const _0x1ea48c=_0x29da26;var _0x154f5e,_0x1bf63c;let _0xeef608=[...(_0x154f5e=_0x30e2da[_0x1ea48c(0xce)])==null?[]:_0x154f5e]['sort']((_0x36539d,_0x15c383)=>_0x36539d[_0x1ea48c(0xec)]-_0x15c383[_0x1ea48c(0xec)]),_0x5ac8ca=_0xeef608[_0x1ea48c(0x124)]((_0x3a5b13,_0x378190)=>(_0x378190===0x0?0x0:_0xeef608[_0x378190-0x1][_0x1ea48c(0xec)]+0x1)<=_0x599682&&_0x599682<=_0x3a5b13[_0x1ea48c(0xec)]),_0x492bfe=(_0x1bf63c=_0xeef608[_0x1ea48c(0x124)](_0x2e8a21=>_0x2e8a21[_0x1ea48c(0xec)]>=_0x2b8771-0x1))==null?_0xeef608[_0xeef608[_0x1ea48c(0x162)]-0x1]:_0x1bf63c;return{'startOffset':_0x5ac8ca?_0x3a2418(_0xeef608,_0x5ac8ca):_0x599682,'endOffset':_0x492bfe?_0x492bfe['startIndex']+0x1:_0x2b8771};}function _0x3a2418(_0x5a0fba,_0x25234a){let _0x36f9ea=_0x5a0fba['indexOf'](_0x25234a);return _0x36f9ea>0x0?_0x5a0fba[_0x36f9ea-0x1]['startIndex']+0x1:0x0;}function _0xb4b9d6(_0x4fe020,_0x1bf260,_0x44e975){const _0x4dd165=_0x29da26;var _0x3a64d7;return Math[_0x4dd165(0xdf)](_0x3a2418((_0x3a64d7=_0x4fe020[_0x4dd165(0xce)])==null?[]:_0x3a64d7,_0x44e975),_0x1bf260[_0x4dd165(0xec)]+0x1);}function _0x327fa5(_0x4db808,_0xce96d9){const _0x4cbf4c=_0x29da26;return _0x4db808[_0x4cbf4c(0x14e)][_0xce96d9[_0x4cbf4c(0x14c)]]===_0x3b229d[_0x4cbf4c(0x15e)][_0x4cbf4c(0xc1)]?_0xce96d9[_0x4cbf4c(0x14c)]:_0x4db808[_0x4cbf4c(0x14e)][_0xce96d9['endIndex']+0x1]===_0x3b229d[_0x4cbf4c(0x15e)]['BLOCK_END']?_0xce96d9[_0x4cbf4c(0x14c)]+0x1:_0xce96d9[_0x4cbf4c(0x14c)];}function _0x35171c(_0x3e5302,_0x1dbc63,_0x5ecc3d,_0x40a838){const _0xce86e8=_0x29da26;var _0x14f745,_0xf026ed;let _0x3ffd42=_0x327fa5(_0x3e5302,_0x1dbc63),_0x267dc4=((_0x14f745=_0x3e5302[_0xce86e8(0xce)])==null?[]:_0x14f745)['find'](_0x917e2a=>_0x917e2a['startIndex']===_0x3ffd42+0x1);if(!_0x267dc4||_0x40a838!=null&&_0x267dc4[_0xce86e8(0xec)]!==_0x40a838||_0x5ecc3d<_0x3ffd42||_0x5ecc3d>_0x267dc4['startIndex']+0x1||_0x3e5302[_0xce86e8(0x14e)][_0x267dc4[_0xce86e8(0xec)]]!==_0x3b229d[_0xce86e8(0x15e)]['PARAGRAPH'])return null;let _0x12be43=_0x3a2418((_0xf026ed=_0x3e5302[_0xce86e8(0xce)])==null?[]:_0xf026ed,_0x267dc4),_0x1e1815=_0x3e5302[_0xce86e8(0x14e)][_0xce86e8(0x11a)](_0x12be43,_0x267dc4[_0xce86e8(0xec)]);return Array[_0xce86e8(0xef)](_0x1e1815)[_0xce86e8(0x11e)](_0x21a76d=>_0x21a76d===_0x3b229d[_0xce86e8(0x15e)][_0xce86e8(0xc1)])?{'paragraph':_0x267dc4,'endTokenOffset':_0x3ffd42}:null;}function _0x3e24d6(_0x40dd3b,_0x3c644c){const _0xd4079b=_0x29da26;var _0x426b31;let _0x5e1a4d=_0x327fa5(_0x40dd3b,_0x3c644c),_0xec8b31=_0x40dd3b[_0xd4079b(0x14e)][_0x5e1a4d+0x1];_0xec8b31!==_0x3b229d['DataStreamTreeTokenType'][_0xd4079b(0x12a)]&&_0xec8b31!==void 0x0||_0x9dc434(_0x40dd3b,_0x5e1a4d+0x1,_0x3b229d['DataStreamTreeTokenType'][_0xd4079b(0x169)],{'paragraphs':[{'startIndex':0x0,'paragraphId':(0x0,_0x3b229d[_0xd4079b(0x13f)])(new Set((_0x426b31=_0x40dd3b[_0xd4079b(0xce)])==null?void 0x0:_0x426b31[_0xd4079b(0x161)](_0x156e81=>_0x156e81['paragraphId'])))}]});}function _0x9dc434(_0x4f68cc,_0x27f4d7,_0x1b9d9e,_0x1f7bf4={}){const _0x5ec76e=_0x29da26;var _0x340050,_0x31f4e6;if(_0x1b9d9e){if(_0x4f68cc[_0x5ec76e(0x14e)]=''+_0x4f68cc[_0x5ec76e(0x14e)][_0x5ec76e(0x11a)](0x0,_0x27f4d7)+_0x1b9d9e+_0x4f68cc['dataStream']['slice'](_0x27f4d7),_0x268af3(_0x4f68cc,_0x27f4d7,_0x1b9d9e[_0x5ec76e(0x162)]),(_0x340050=_0x1f7bf4[_0x5ec76e(0xce)])!=null&&_0x340050[_0x5ec76e(0x162)]){var _0x31d66d;_0x4f68cc['paragraphs']=[...(_0x31d66d=_0x4f68cc[_0x5ec76e(0xce)])==null?[]:_0x31d66d,..._0x1f7bf4[_0x5ec76e(0xce)][_0x5ec76e(0x161)](_0x8e4568=>({..._0x8e4568,'startIndex':_0x8e4568[_0x5ec76e(0xec)]+_0x27f4d7}))][_0x5ec76e(0xf9)]((_0x4d6654,_0x38c06e)=>_0x4d6654[_0x5ec76e(0xec)]-_0x38c06e[_0x5ec76e(0xec)]);}if((_0x31f4e6=_0x1f7bf4[_0x5ec76e(0x140)])!=null&&_0x31f4e6[_0x5ec76e(0x162)]){var _0x307177;_0x4f68cc['blockRanges']=[...(_0x307177=_0x4f68cc['blockRanges'])==null?[]:_0x307177,..._0x1f7bf4[_0x5ec76e(0x140)][_0x5ec76e(0x161)](_0x58daf9=>({..._0x58daf9,'startIndex':_0x58daf9[_0x5ec76e(0xec)]+_0x27f4d7,'endIndex':_0x58daf9[_0x5ec76e(0x14c)]+_0x27f4d7}))]['sort']((_0x29eabb,_0x53726a)=>_0x29eabb[_0x5ec76e(0xec)]-_0x53726a['startIndex']);}}}function _0x26f879(_0x55b255,_0x1511d9,_0x181319){const _0x9a53a9=_0x29da26;let _0x123c3b=_0x181319-_0x1511d9;_0x55b255[_0x9a53a9(0x14e)]=''+_0x55b255[_0x9a53a9(0x14e)][_0x9a53a9(0x11a)](0x0,_0x1511d9)+_0x55b255['dataStream'][_0x9a53a9(0x11a)](_0x181319),_0x23e1c8(_0x55b255,_0x1511d9,_0x123c3b);}function _0x268af3(_0x1f9385,_0x1eb8e9,_0x1cd14c){const _0x3c8021=_0x29da26;_0x1f9385[_0x3c8021(0xce)]=_0x5d571e(_0x1f9385[_0x3c8021(0xce)],_0x1eb8e9,_0x1cd14c),_0x1f9385[_0x3c8021(0x16c)]=_0x5d571e(_0x1f9385[_0x3c8021(0x16c)],_0x1eb8e9,_0x1cd14c),_0x1f9385['customBlocks']=_0x5d571e(_0x1f9385[_0x3c8021(0x112)],_0x1eb8e9,_0x1cd14c),_0x1f9385[_0x3c8021(0xc8)]=_0x4975b6(_0x1f9385[_0x3c8021(0xc8)],_0x1eb8e9,_0x1cd14c),_0x1f9385[_0x3c8021(0x131)]=_0x3c972d(_0x1f9385[_0x3c8021(0x131)],_0x1eb8e9,_0x1cd14c),_0x1f9385[_0x3c8021(0xe5)]=_0x3c972d(_0x1f9385[_0x3c8021(0xe5)],_0x1eb8e9,_0x1cd14c),_0x1f9385[_0x3c8021(0x15b)]=_0x3c972d(_0x1f9385['customDecorations'],_0x1eb8e9,_0x1cd14c),_0x1f9385[_0x3c8021(0x140)]=_0x3c972d(_0x1f9385[_0x3c8021(0x140)],_0x1eb8e9,_0x1cd14c);}function _0x23e1c8(_0x5242c6,_0x53077d,_0x3efe96){const _0x6f34b8=_0x29da26;var _0x138cdf,_0x565511;_0x5242c6[_0x6f34b8(0xce)]=_0xbbfc28(_0x5242c6[_0x6f34b8(0xce)],_0x53077d,_0x3efe96),_0x5242c6[_0x6f34b8(0x16c)]=_0xbbfc28(_0x5242c6[_0x6f34b8(0x16c)],_0x53077d,_0x3efe96),_0x5242c6['customBlocks']=_0xbbfc28(_0x5242c6['customBlocks'],_0x53077d,_0x3efe96),_0x5242c6['textRuns']=(_0x138cdf=_0x34d2d1((_0x565511=_0x5242c6[_0x6f34b8(0xc8)])==null?void 0x0:_0x565511['map'](_0x2478cc=>({..._0x2478cc,'startIndex':_0x2478cc['st'],'endIndex':_0x2478cc['ed']})),_0x53077d,_0x3efe96))==null?void 0x0:_0x138cdf[_0x6f34b8(0x161)](_0x471517=>{let {startIndex:_0x299a0d,endIndex:_0x42c5b5,..._0x216cca}=_0x471517;return{..._0x216cca,'st':_0x299a0d,'ed':_0x42c5b5};}),_0x5242c6[_0x6f34b8(0x131)]=_0x34d2d1(_0x5242c6['tables'],_0x53077d,_0x3efe96),_0x5242c6[_0x6f34b8(0xe5)]=_0x34d2d1(_0x5242c6[_0x6f34b8(0xe5)],_0x53077d,_0x3efe96),_0x5242c6[_0x6f34b8(0x15b)]=_0x34d2d1(_0x5242c6[_0x6f34b8(0x15b)],_0x53077d,_0x3efe96),_0x5242c6[_0x6f34b8(0x140)]=_0x34d2d1(_0x5242c6[_0x6f34b8(0x140)],_0x53077d,_0x3efe96);}function _0x5d571e(_0x34b091,_0x4e5274,_0x4ee04e){const _0x4af728=_0x29da26;return _0x34b091==null?void 0x0:_0x34b091['map'](_0x40c682=>_0x40c682[_0x4af728(0xec)]>=_0x4e5274?{..._0x40c682,'startIndex':_0x40c682['startIndex']+_0x4ee04e}:_0x40c682);}function _0xbbfc28(_0x177fc4,_0xe7f2fe,_0x4e0d23){const _0x3f9043=_0x29da26;let _0x5cb791=_0xe7f2fe+_0x4e0d23;return _0x177fc4==null?void 0x0:_0x177fc4[_0x3f9043(0x161)](_0x2fc6b4=>_0x2fc6b4['startIndex']>=_0xe7f2fe&&_0x2fc6b4[_0x3f9043(0xec)]<_0x5cb791?null:_0x2fc6b4[_0x3f9043(0xec)]>=_0x5cb791?{..._0x2fc6b4,'startIndex':_0x2fc6b4[_0x3f9043(0xec)]-_0x4e0d23}:_0x2fc6b4)[_0x3f9043(0x15d)](_0x4adf24=>_0x4adf24!=null);}function _0x4975b6(_0x1f192f,_0x5c1376,_0x2f383c){return _0x1f192f==null?void 0x0:_0x1f192f['map'](_0x3defc2=>_0x3defc2['st']>=_0x5c1376?{..._0x3defc2,'st':_0x3defc2['st']+_0x2f383c,'ed':_0x3defc2['ed']+_0x2f383c}:_0x3defc2['ed']>_0x5c1376?{..._0x3defc2,'ed':_0x3defc2['ed']+_0x2f383c}:_0x3defc2);}function _0x3c972d(_0x9f02ea,_0x1d50bb,_0x49cd35){const _0x4bb303=_0x29da26;return _0x9f02ea==null?void 0x0:_0x9f02ea[_0x4bb303(0x161)](_0x44291a=>_0x44291a[_0x4bb303(0xec)]>=_0x1d50bb?{..._0x44291a,'startIndex':_0x44291a['startIndex']+_0x49cd35,'endIndex':_0x44291a[_0x4bb303(0x14c)]+_0x49cd35}:_0x44291a[_0x4bb303(0x14c)]>=_0x1d50bb?{..._0x44291a,'endIndex':_0x44291a[_0x4bb303(0x14c)]+_0x49cd35}:_0x44291a);}function _0x34d2d1(_0x46897e,_0x55d580,_0x406f89){const _0x147582=_0x29da26;let _0x2eb92f=_0x55d580+_0x406f89;return _0x46897e==null?void 0x0:_0x46897e['map'](_0x5f2ef1=>_0x5f2ef1[_0x147582(0xec)]>=_0x55d580&&_0x5f2ef1[_0x147582(0x14c)]<_0x2eb92f?null:_0x5f2ef1['startIndex']>=_0x2eb92f?{..._0x5f2ef1,'startIndex':_0x5f2ef1[_0x147582(0xec)]-_0x406f89,'endIndex':_0x5f2ef1[_0x147582(0x14c)]-_0x406f89}:_0x5f2ef1['endIndex']>=_0x55d580?{..._0x5f2ef1,'startIndex':_0x5f2ef1[_0x147582(0xec)]<_0x55d580?_0x5f2ef1[_0x147582(0xec)]:_0x55d580,'endIndex':Math[_0x147582(0xdf)](_0x55d580,_0x5f2ef1[_0x147582(0x14c)]-_0x406f89)}:_0x5f2ef1)[_0x147582(0x15d)](_0x99f081=>_0x99f081!=null);}function _0x3767de(_0x55e8e0,_0x46d188,_0x9e8e67,_0x47e918){const _0x2d0e29=_0x29da26;_0x55e8e0==null||_0x55e8e0[_0x2d0e29(0xc3)](_0x4c2c2c=>{const _0x3c027d=_0x2d0e29;_0x4c2c2c[_0x3c027d(0xec)]>=_0x46d188&&_0x4c2c2c['startIndex']<_0x9e8e67&&(_0x4c2c2c[_0x3c027d(0xec)]+=_0x47e918);});}function _0x51759b(_0x581fe1,_0x41ce88,_0x111d4d,_0x2fa1a0){const _0x315715=_0x29da26;_0x581fe1==null||_0x581fe1[_0x315715(0xc3)](_0x468826=>{_0x468826['st']>=_0x41ce88&&_0x468826['st']<_0x111d4d?(_0x468826['st']+=_0x2fa1a0,_0x468826['ed']+=_0x2fa1a0):_0x468826['ed']>_0x41ce88&&_0x468826['ed']<_0x111d4d&&(_0x468826['ed']+=_0x2fa1a0);});}function _0xd409bd(_0x27e9aa,_0xfe8eaa,_0xb02dae,_0x4ca9be){const _0x167382=_0x29da26;_0x27e9aa==null||_0x27e9aa[_0x167382(0xc3)](_0x28eaaa=>{const _0x4fa1bb=_0x167382;_0x28eaaa[_0x4fa1bb(0xec)]>=_0xfe8eaa&&_0x28eaaa[_0x4fa1bb(0xec)]<_0xb02dae?(_0x28eaaa[_0x4fa1bb(0xec)]+=_0x4ca9be,_0x28eaaa[_0x4fa1bb(0x14c)]+=_0x4ca9be):_0x28eaaa['endIndex']>_0xfe8eaa&&_0x28eaaa[_0x4fa1bb(0x14c)]<_0xb02dae&&(_0x28eaaa['endIndex']+=_0x4ca9be);});}function _0x4d1e75(_0x2309b9){'@babel/helpers - typeof';const _0x2090c3=_0x29da26;return _0x4d1e75=typeof Symbol==_0x2090c3(0xc7)&&typeof Symbol[_0x2090c3(0x126)]==_0x2090c3(0x155)?function(_0x307eeb){return typeof _0x307eeb;}:function(_0x19c643){const _0x27414a=_0x2090c3;return _0x19c643&&typeof Symbol=='function'&&_0x19c643[_0x27414a(0x111)]===Symbol&&_0x19c643!==Symbol[_0x27414a(0x12f)]?_0x27414a(0x155):typeof _0x19c643;},_0x4d1e75(_0x2309b9);}function _0x648000(_0x540535,_0x24f349){const _0x144183=_0x29da26;if(_0x4d1e75(_0x540535)!=_0x144183(0x157)||!_0x540535)return _0x540535;var _0x2805ea=_0x540535[Symbol[_0x144183(0xf7)]];if(_0x2805ea!==void 0x0){var _0x26713c=_0x2805ea[_0x144183(0x134)](_0x540535,_0x24f349||'default');if(_0x4d1e75(_0x26713c)!='object')return _0x26713c;throw TypeError(_0x144183(0x11d));}return(_0x24f349===_0x144183(0xe3)?String:Number)(_0x540535);}function _0x4ea6ea(_0x5bfabe){const _0x34e287=_0x29da26;var _0xc87248=_0x648000(_0x5bfabe,'string');return _0x4d1e75(_0xc87248)==_0x34e287(0x155)?_0xc87248:_0xc87248+'';}function _0x18a8ac(_0xeedf2c,_0x3ae2c0,_0x2783ae){const _0x469804=_0x29da26;return(_0x3ae2c0=_0x4ea6ea(_0x3ae2c0))in _0xeedf2c?Object[_0x469804(0x116)](_0xeedf2c,_0x3ae2c0,{'value':_0x2783ae,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0xeedf2c[_0x3ae2c0]=_0x2783ae,_0xeedf2c;}var _0x22b977=class extends _0x3b229d[_0x29da26(0x108)]{constructor(..._0x41831a){const _0x2e0b74=_0x29da26;super(..._0x41831a),_0x18a8ac(this,_0x2e0b74(0x164),new Map()),_0x18a8ac(this,'_change$',new _0x22a75c[(_0x2e0b74(0xe7))]()),_0x18a8ac(this,'change$',this[_0x2e0b74(0xe4)][_0x2e0b74(0x152)]());}['getCodeConfig'](_0x137c2f,_0x4bb8a6){const _0x2c0e1b=_0x29da26;return _0x2619bd(this['_resources'][_0x2c0e1b(0x120)](_0x137c2f))[_0x2c0e1b(0x146)][_0x4bb8a6];}[_0x29da26(0x138)](_0x46db9a,_0x481957,_0x3a163d){const _0x273ceb=_0x29da26;this['_setResource'](_0x46db9a,_0x481957,_0x53a088(this[_0x273ceb(0x164)][_0x273ceb(0x120)](_0x46db9a),_0x481957,_0x3a163d));}[_0x29da26(0x135)](_0x32fbf1,_0x1b6442){const _0x5c9ed0=_0x29da26;this[_0x5c9ed0(0xde)](_0x32fbf1,_0x1b6442,_0x355325(this[_0x5c9ed0(0x164)]['get'](_0x32fbf1),_0x1b6442));}[_0x29da26(0xcf)](_0x3464db){const _0xc392d1=_0x29da26;return _0x2619bd(this[_0xc392d1(0x164)]['get'](_0x3464db));}[_0x29da26(0x160)](_0x448a10,_0x14ecf1){const _0x3718a2=_0x29da26;this[_0x3718a2(0x164)][_0x3718a2(0x11b)](_0x448a10,_0x2619bd(_0x14ecf1)),this[_0x3718a2(0xe4)][_0x3718a2(0xf8)]({'unitId':_0x448a10});}['removeUnit'](_0x5a20bb){const _0xe1b74c=_0x29da26;this['_resources'][_0xe1b74c(0xe9)](_0x5a20bb),this[_0xe1b74c(0xe4)][_0xe1b74c(0xf8)]({'unitId':_0x5a20bb});}[_0x29da26(0xd2)](){const _0x95f786=_0x29da26;super[_0x95f786(0xd2)](),this[_0x95f786(0x164)][_0x95f786(0x113)](),this[_0x95f786(0xe4)][_0x95f786(0xfe)]();}[_0x29da26(0xde)](_0x3ca880,_0xe43cf7,_0x20ef0c){const _0x2524ec=_0x29da26;this['_resources']['set'](_0x3ca880,_0x20ef0c),this[_0x2524ec(0xe4)][_0x2524ec(0xf8)]({'unitId':_0x3ca880,'blockId':_0xe43cf7});}};let _0x4e8126={'id':_0x29da26(0x14b),'type':_0x3b229d[_0x29da26(0x16b)]['COMMAND'],'handler':_0x5dbb2a=>{const _0x1219c6=_0x29da26;let _0x412d67=_0x5beb8d(_0x5dbb2a);if(_0x412d67)return _0x5dbb2a[_0x1219c6(0x120)](_0x3b229d[_0x1219c6(0x100)])[_0x1219c6(0x16d)](_0x2e4acb['id'],{'startOffset':_0x412d67[_0x1219c6(0x13e)],'endOffset':_0x412d67[_0x1219c6(0xd3)],'unitId':_0x412d67[_0x1219c6(0xcd)]});let _0x4f84bf=_0x10494d(_0x5dbb2a);if(!_0x4f84bf)return!0x1;let _0x20d826=_0x4f84bf[_0x1219c6(0xec)]+0x1;return _0x5dbb2a['get'](_0x3b229d[_0x1219c6(0x100)])[_0x1219c6(0x16d)](_0x2e4acb['id'],{'startOffset':_0x20d826,'endOffset':_0x20d826});}},_0x4a3281={'id':_0x29da26(0xd4),'type':_0x3b229d[_0x29da26(0x16b)][_0x29da26(0x121)],'handler':()=>!0x0},_0x2e4acb={'id':_0x29da26(0x13c),'type':_0x3b229d[_0x29da26(0x16b)][_0x29da26(0x121)],'handler':(_0x5eee36,_0x1824b8)=>{const _0x2a7230=_0x29da26;var _0x68c409,_0x34bec1,_0xf35885;let _0x553f9e=_0x353b74(_0x5eee36,_0x1824b8==null?void 0x0:_0x1824b8[_0x2a7230(0xcd)]);if(!_0x553f9e)return!0x1;let _0x4ad21f=_0xec355c(_0x5eee36),_0x4b92fc=_0x4b493e({'blockId':(_0x68c409=_0x1824b8==null?void 0x0:_0x1824b8[_0x2a7230(0xfd)])==null?(0x0,_0x3b229d[_0x2a7230(0xfb)])(0x6):_0x68c409,'config':_0x1824b8==null?void 0x0:_0x1824b8[_0x2a7230(0x130)],'documentData':_0x553f9e[_0x2a7230(0x10b)],'endOffset':(_0x34bec1=_0x1824b8==null?void 0x0:_0x1824b8['endOffset'])==null?_0x4ad21f==null?void 0x0:_0x4ad21f[_0x2a7230(0xd3)]:_0x34bec1,'metadata':_0x553f9e['model'][_0x2a7230(0xcf)](_0x553f9e[_0x2a7230(0xcd)]),'startOffset':(_0xf35885=_0x1824b8==null?void 0x0:_0x1824b8[_0x2a7230(0x13e)])==null?_0x4ad21f==null?void 0x0:_0x4ad21f[_0x2a7230(0x13e)]:_0xf35885}),_0x1872fe=_0x1c1d1e(_0x553f9e[_0x2a7230(0x148)],_0x553f9e[_0x2a7230(0xcd)],_0x553f9e[_0x2a7230(0x10b)],_0x4b92fc['nextDocumentData'],_0x4b92fc[_0x2a7230(0xc9)]);return _0x1872fe&&_0x4b92fc[_0x2a7230(0x107)]&&_0x553f9e['model'][_0x2a7230(0x160)](_0x553f9e['unitId'],_0x4b92fc['nextMetadata']),_0x1872fe;}},_0x4754eb={'id':'docs-code.command.update','type':_0x3b229d[_0x29da26(0x16b)]['COMMAND'],'handler':(_0x5343dc,_0x2f1ff3)=>{const _0xeddb35=_0x29da26;if(!_0x2f1ff3)return!0x1;let _0x4ebd7f=_0x353b74(_0x5343dc,_0x2f1ff3['unitId']);if(!_0x4ebd7f)return!0x1;let _0x396f55=_0x21379e({'blockId':_0x2f1ff3[_0xeddb35(0xfd)],'config':_0x2f1ff3['config'],'documentData':_0x4ebd7f['previousDocumentData'],'metadata':_0x4ebd7f[_0xeddb35(0x142)][_0xeddb35(0xcf)](_0x4ebd7f['unitId'])});return _0x396f55[_0xeddb35(0x107)]&&_0x4ebd7f['model'][_0xeddb35(0x160)](_0x4ebd7f[_0xeddb35(0xcd)],_0x396f55['nextMetadata']),!0x0;}},_0x21758f={'id':_0x29da26(0xc4),'type':_0x3b229d[_0x29da26(0x16b)][_0x29da26(0x121)],'handler':(_0x37e233,_0x1f9a3c)=>{const _0x854193=_0x29da26;var _0x2268ec,_0x276858;let _0x5e7b84=_0x353b74(_0x37e233,_0x1f9a3c==null?void 0x0:_0x1f9a3c['unitId']);if(!_0x5e7b84)return!0x1;let _0x16957f=(_0x2268ec=_0x1f9a3c==null?void 0x0:_0x1f9a3c[_0x854193(0xc9)])==null?(_0x276858=_0xec355c(_0x37e233))==null?void 0x0:_0x276858['startOffset']:_0x2268ec;if(_0x16957f==null)return!0x1;let _0x44e25a=_0x4c43e0({'cursorOffset':_0x16957f,'documentData':_0x5e7b84[_0x854193(0x10b)]});return _0x44e25a?_0x1c1d1e(_0x5e7b84[_0x854193(0x148)],_0x5e7b84[_0x854193(0xcd)],_0x5e7b84[_0x854193(0x10b)],_0x44e25a[_0x854193(0x163)],_0x44e25a[_0x854193(0xc9)]):!0x1;}},_0x48871c={'id':_0x29da26(0x158),'type':_0x3b229d[_0x29da26(0x16b)]['COMMAND'],'handler':(_0x2f4581,_0x219596)=>{const _0x553304=_0x29da26;var _0x1e1066,_0x44d05a;let _0xc2fb=_0x353b74(_0x2f4581,_0x219596==null?void 0x0:_0x219596[_0x553304(0xcd)]);if(!_0xc2fb)return!0x1;let _0x23508b=(_0x1e1066=_0x219596==null?void 0x0:_0x219596[_0x553304(0xc9)])==null?(_0x44d05a=_0xec355c(_0x2f4581))==null?void 0x0:_0x44d05a[_0x553304(0x13e)]:_0x1e1066;if(_0x23508b==null)return!0x1;let _0x28c495=_0x5ece81({'cursorOffset':_0x23508b,'documentData':_0xc2fb[_0x553304(0x10b)],'paragraphStartIndex':_0x219596==null?void 0x0:_0x219596['paragraphStartIndex']});return _0x28c495?_0x1c1d1e(_0xc2fb[_0x553304(0x148)],_0xc2fb[_0x553304(0xcd)],_0xc2fb['previousDocumentData'],_0x28c495[_0x553304(0x163)],_0x28c495[_0x553304(0xc9)]):!0x1;}};function _0x353b74(_0x19fa84,_0xd6f2be){const _0x2659ef=_0x29da26;let _0x4deb5c=_0x19fa84[_0x2659ef(0x120)](_0x3b229d[_0x2659ef(0x166)]),_0x2f99e4=_0xd6f2be?_0x4deb5c['getUniverDocInstance'](_0xd6f2be):_0x4deb5c[_0x2659ef(0x156)](_0x3b229d[_0x2659ef(0x14a)]['UNIVER_DOC']);return _0x2f99e4?{'commandService':_0x19fa84[_0x2659ef(0x120)](_0x3b229d[_0x2659ef(0x100)]),'model':_0x19fa84[_0x2659ef(0x120)](_0x22b977),'previousDocumentData':_0x2f99e4[_0x2659ef(0x137)](),'unitId':_0x2f99e4[_0x2659ef(0xe6)]()}:null;}function _0xec355c(_0x294981){const _0x139a80=_0x29da26;var _0x3eab90;return(_0x3eab90=_0x294981[_0x139a80(0x120)](_0x371266[_0x139a80(0x10f)])['getTextRanges']())==null?void 0x0:_0x3eab90[0x0];}function _0x5beb8d(_0x426020){const _0x441662=_0x29da26;var _0xa89472;let _0x2c8601=(_0xa89472=_0x426020[_0x441662(0x120)](_0x3b229d[_0x441662(0x166)])[_0x441662(0x156)](_0x3b229d[_0x441662(0x14a)][_0x441662(0xff)]))==null?void 0x0:_0xa89472['getUnitId']();try{return _0x426020[_0x441662(0x120)](_0x371266[_0x441662(0x10e)])[_0x441662(0x13a)](_0x2c8601);}catch{return null;}}function _0x10494d(_0x369cb2){const _0x309170=_0x29da26;var _0x4a2a36,_0x766090,_0x342f94;let _0x449ddf=_0xec355c(_0x369cb2);if(!_0x449ddf)return null;let _0x3a4318=_0x369cb2[_0x309170(0x120)](_0x3b229d[_0x309170(0x166)])[_0x309170(0x156)](_0x3b229d['UniverInstanceType'][_0x309170(0xff)]),_0x500fd6=_0x3a4318==null?void 0x0:_0x3a4318[_0x309170(0x102)]();return _0x500fd6?(_0x4a2a36=_0x3b229d[_0x309170(0x154)]['range']['getParagraphsInRange'](_0x449ddf,(_0x766090=_0x500fd6[_0x309170(0xce)])==null?[]:_0x766090,(_0x342f94=_0x500fd6['dataStream'])==null?'':_0x342f94)[0x0])==null?null:_0x4a2a36:null;}function _0x8164d6(_0x156992,_0x2ce93c){const _0x2e39b7=_0x29da26;var _0x1bff95,_0x2782a0,_0x58eb57,_0x40c93d,_0x3e0f4f,_0x56cb35,_0x91c1e4,_0x5a2a85,_0x2e72e4,_0xe04282,_0x43d4b5,_0x4b0362,_0x582ca0,_0x3e85d8,_0x1fd714,_0x3d8eac,_0x1dc0c1,_0x221f3e;let _0x5d8655=_0x3b229d['JSONX']['getInstance']();return[_0x7988cd(_0x5d8655,[_0x2e39b7(0xeb),'dataStream'],(_0x1bff95=_0x156992[_0x2e39b7(0xeb)])==null?void 0x0:_0x1bff95[_0x2e39b7(0x14e)],(_0x2782a0=_0x2ce93c['body'])==null?void 0x0:_0x2782a0[_0x2e39b7(0x14e)]),_0x7988cd(_0x5d8655,['body',_0x2e39b7(0xce)],(_0x58eb57=_0x156992[_0x2e39b7(0xeb)])==null?void 0x0:_0x58eb57[_0x2e39b7(0xce)],(_0x40c93d=_0x2ce93c[_0x2e39b7(0xeb)])==null?void 0x0:_0x40c93d['paragraphs']),_0x7988cd(_0x5d8655,[_0x2e39b7(0xeb),_0x2e39b7(0x16c)],(_0x3e0f4f=_0x156992[_0x2e39b7(0xeb)])==null?void 0x0:_0x3e0f4f[_0x2e39b7(0x16c)],(_0x56cb35=_0x2ce93c['body'])==null?void 0x0:_0x56cb35['sectionBreaks']),_0x7988cd(_0x5d8655,[_0x2e39b7(0xeb),_0x2e39b7(0xc8)],(_0x91c1e4=_0x156992[_0x2e39b7(0xeb)])==null?void 0x0:_0x91c1e4[_0x2e39b7(0xc8)],(_0x5a2a85=_0x2ce93c['body'])==null?void 0x0:_0x5a2a85[_0x2e39b7(0xc8)]),_0x7988cd(_0x5d8655,[_0x2e39b7(0xeb),_0x2e39b7(0x112)],(_0x2e72e4=_0x156992[_0x2e39b7(0xeb)])==null?void 0x0:_0x2e72e4[_0x2e39b7(0x112)],(_0xe04282=_0x2ce93c['body'])==null?void 0x0:_0xe04282[_0x2e39b7(0x112)]),_0x7988cd(_0x5d8655,[_0x2e39b7(0xeb),'customRanges'],(_0x43d4b5=_0x156992[_0x2e39b7(0xeb)])==null?void 0x0:_0x43d4b5[_0x2e39b7(0xe5)],(_0x4b0362=_0x2ce93c['body'])==null?void 0x0:_0x4b0362[_0x2e39b7(0xe5)]),_0x7988cd(_0x5d8655,[_0x2e39b7(0xeb),_0x2e39b7(0x15b)],(_0x582ca0=_0x156992['body'])==null?void 0x0:_0x582ca0['customDecorations'],(_0x3e85d8=_0x2ce93c[_0x2e39b7(0xeb)])==null?void 0x0:_0x3e85d8[_0x2e39b7(0x15b)]),_0x7988cd(_0x5d8655,[_0x2e39b7(0xeb),_0x2e39b7(0x131)],(_0x1fd714=_0x156992[_0x2e39b7(0xeb)])==null?void 0x0:_0x1fd714[_0x2e39b7(0x131)],(_0x3d8eac=_0x2ce93c[_0x2e39b7(0xeb)])==null?void 0x0:_0x3d8eac[_0x2e39b7(0x131)]),_0x7988cd(_0x5d8655,['body',_0x2e39b7(0x140)],(_0x1dc0c1=_0x156992['body'])==null?void 0x0:_0x1dc0c1[_0x2e39b7(0x140)],(_0x221f3e=_0x2ce93c[_0x2e39b7(0xeb)])==null?void 0x0:_0x221f3e[_0x2e39b7(0x140)])][_0x2e39b7(0x15d)](Boolean)[_0x2e39b7(0xd6)]((_0x55416c,_0x2bf1e1)=>_0x3b229d['JSONX'][_0x2e39b7(0x153)](_0x55416c,_0x2bf1e1),null);}function _0x7988cd(_0x5cfceb,_0x309e03,_0x3056e0,_0xa057dc){const _0x317769=_0x29da26;return _0x3b229d[_0x317769(0xc2)]['diffValue'](_0x3056e0,_0xa057dc)?null:_0x5cfceb[_0x317769(0x115)](_0x309e03,_0x3056e0,_0xa057dc);}function _0x1c1d1e(_0x38bef4,_0x438b68,_0x461c89,_0x78e3ba,_0x3baa30){const _0x532a6b=_0x29da26;let _0xe5225d=_0x8164d6(_0x461c89,_0x78e3ba);return _0xe5225d?!!_0x38bef4[_0x532a6b(0x16d)](_0x371266['RichTextEditingMutation']['id'],{'unitId':_0x438b68,'actions':_0xe5225d,'textRanges':[{'startOffset':_0x3baa30,'endOffset':_0x3baa30,'collapsed':!0x0}],'isEditing':!0x1}):!0x1;}let _0x25eb2b=_0x29da26(0xe1);var _0x5d0d7e='@univerjs-pro/docs-code',_0x584ea4='1.0.0-insiders.20260629-12f2e44';let _0x4fc7d6={};function _0x82d6b9(_0x2ed79e,_0x3b3b45){return function(_0x575a4f,_0x496ef1){_0x3b3b45(_0x575a4f,_0x496ef1,_0x2ed79e);};}function _0x5e75c3(_0x591eaa,_0x2c25d3,_0x32075b,_0x332e1b){const _0x4097a9=_0x29da26;var _0x4ff4e6=arguments[_0x4097a9(0x162)],_0x38bbf1=_0x4ff4e6<0x3?_0x2c25d3:_0x332e1b===null?_0x332e1b=Object[_0x4097a9(0x13d)](_0x2c25d3,_0x32075b):_0x332e1b,_0x2c0b8c;if(typeof Reflect==_0x4097a9(0x157)&&typeof Reflect[_0x4097a9(0x11c)]==_0x4097a9(0xc7))_0x38bbf1=Reflect[_0x4097a9(0x11c)](_0x591eaa,_0x2c25d3,_0x32075b,_0x332e1b);else{for(var _0x30ab4a=_0x591eaa[_0x4097a9(0x162)]-0x1;_0x30ab4a>=0x0;_0x30ab4a--)(_0x2c0b8c=_0x591eaa[_0x30ab4a])&&(_0x38bbf1=(_0x4ff4e6<0x3?_0x2c0b8c(_0x38bbf1):_0x4ff4e6>0x3?_0x2c0b8c(_0x2c25d3,_0x32075b,_0x38bbf1):_0x2c0b8c(_0x2c25d3,_0x32075b))||_0x38bbf1);}return _0x4ff4e6>0x3&&_0x38bbf1&&Object[_0x4097a9(0x116)](_0x2c25d3,_0x32075b,_0x38bbf1),_0x38bbf1;}let _0x1578d1=class extends _0x3b229d['Disposable']{constructor(_0x1f6e35,_0xd5c84){const _0x66c23d=_0x29da26;super(),this[_0x66c23d(0x151)]=_0x1f6e35,this['_docsCodeModel']=_0xd5c84,this[_0x66c23d(0x104)]();}[_0x29da26(0x104)](){const _0x41083f=_0x29da26;this[_0x41083f(0x119)](this[_0x41083f(0x151)][_0x41083f(0x136)]({'pluginName':_0x25eb2b,'businesses':[_0x3b229d[_0x41083f(0x14a)][_0x41083f(0xff)]],'toJson':_0x586780=>JSON[_0x41083f(0xea)](this['_docsCodeModel'][_0x41083f(0xcf)](_0x586780)),'parseJson':_0xd4512a=>_0x2619bd(JSON[_0x41083f(0xf6)](_0xd4512a)),'onLoad':(_0x53b343,_0x4647bc)=>this[_0x41083f(0x15c)][_0x41083f(0x160)](_0x53b343,_0x4647bc),'onUnLoad':_0x4acfb2=>this['_docsCodeModel'][_0x41083f(0xfa)](_0x4acfb2)}));}};_0x1578d1=_0x5e75c3([_0x82d6b9(0x0,_0x3b229d[_0x29da26(0x133)]),_0x82d6b9(0x1,(0x0,_0x3b229d[_0x29da26(0xd1)])(_0x22b977))],_0x1578d1);let _0x56e5ca=class extends _0x3b229d[_0x29da26(0x125)]{constructor(_0x1748ec=_0x4fc7d6,_0xc65558,_0xd54c81,_0x589338){const _0x2e5212=_0x29da26;super(),this[_0x2e5212(0x14d)]=_0x1748ec,this[_0x2e5212(0xfc)]=_0xc65558,this[_0x2e5212(0x12c)]=_0xd54c81,this[_0x2e5212(0xdc)]=_0x589338;let {..._0x2a6b17}=(0x0,_0x3b229d['merge'])({},_0x4fc7d6,this['_config']);this['_configService'][_0x2e5212(0xd0)](_0x2e5212(0xe0),_0x2a6b17);}[_0x29da26(0xdb)](){const _0x3eaa64=_0x29da26;this[_0x3eaa64(0xfc)]['add']([_0x22b977]),this[_0x3eaa64(0xfc)][_0x3eaa64(0x10d)]([_0x1578d1]),this['_injector'][_0x3eaa64(0x120)](_0x22b977),this[_0x3eaa64(0xfc)][_0x3eaa64(0x120)](_0x1578d1),[_0x2e4acb,_0x4e8126,_0x4754eb,_0x21758f,_0x48871c,_0x4a3281][_0x3eaa64(0xc3)](_0x5d1c29=>this[_0x3eaa64(0x119)](this['_commandService'][_0x3eaa64(0x109)](_0x5d1c29)));}};_0x18a8ac(_0x56e5ca,_0x29da26(0x149),_0x25eb2b),_0x18a8ac(_0x56e5ca,'packageName',_0x5d0d7e),_0x18a8ac(_0x56e5ca,_0x29da26(0xd8),_0x584ea4),_0x18a8ac(_0x56e5ca,_0x29da26(0x105),_0x3b229d['UniverInstanceType'][_0x29da26(0xff)]),_0x56e5ca=_0x5e75c3([(0x0,_0x3b229d['DependentOn'])(_0x3158ca[_0x29da26(0xbe)],_0x371266['UniverDocsPlugin']),_0x82d6b9(0x1,(0x0,_0x3b229d[_0x29da26(0xd1)])(_0x3b229d[_0x29da26(0x141)])),_0x82d6b9(0x2,_0x3b229d['ICommandService']),_0x82d6b9(0x3,_0x3b229d[_0x29da26(0x145)])],_0x56e5ca),_0x27132c[_0x29da26(0x110)]=_0xa35c8d,_0x27132c['DOCS_CODE_PLUGIN']=_0x25eb2b,_0x27132c['DocsCodeCancelEmptyParagraphCommand']=_0x48871c,_0x27132c['DocsCodeConsumeBoundaryDeleteCommand']=_0x4a3281,_0x27132c[_0x29da26(0x128)]=_0x21758f,_0x27132c[_0x29da26(0x127)]=_0x4e8126,_0x27132c[_0x29da26(0x122)]=_0x2e4acb,_0x27132c['DocsCodeModel']=_0x22b977,_0x27132c[_0x29da26(0x139)]=_0x4754eb,Object[_0x29da26(0x116)](_0x27132c,_0x29da26(0x143),{'enumerable':!0x0,'get':function(){return _0x56e5ca;}}),_0x27132c[_0x29da26(0xe8)]=_0x5ece81,_0x27132c[_0x29da26(0x14f)]=_0x4c43e0,_0x27132c[_0x29da26(0xed)]=_0x4b493e,_0x27132c['buildUpdateCodeActions']=_0x21379e,_0x27132c[_0x29da26(0xcb)]=_0x569073,_0x27132c[_0x29da26(0xda)]=_0x401d12,_0x27132c['normalizeDocsCodeConfig']=_0x5da954;}));function _0x1d60(){const _0x552f45=['DocsCodeInsertCommand','indentStart','find','Plugin','iterator','DocsCodeInsertBelowCommand','DocsCodeExitCommand','deepClone','SECTION_BREAK','4224680mJKQDo','_commandService','left','UniverDocs','prototype','config','tables','6XxWnSu','IResourceManagerService','call','removeCode','registerPluginResource','getSnapshot','setCodeConfig','DocsCodeUpdateCommand','consumeInsertRange','spaceBelow','docs-code.command.insert','getOwnPropertyDescriptor','startOffset','createParagraphId','blockRanges','Injector','model','UniverDocsCodePlugin','blockType','IConfigService','codes','some','commandService','pluginName','UniverInstanceType','docs-code.command.insert-below','endIndex','_config','dataStream','buildExitCodeActions','12256JiDtEK','_resourceManagerService','asObservable','compose','BuildTextUtils','symbol','getCurrentUnitOfType','object','docs-code.command.cancel-empty-paragraph','290NsCjqc','UniverCore','customDecorations','_docsCodeModel','filter','DataStreamTreeTokenType','documentData','deserialize','map','length','nextDocumentData','_resources','metadata','IUniverInstanceService','textStyle','spaceAbove','PARAGRAPH','1032TCosvL','CommandType','sectionBreaks','syncExecuteCommand','UniverLicensePlugin','entries','2445273DVAMJf','BLOCK_END','Tools','forEach','docs-code.command.exit','min','@univerjs-pro/license','function','textRuns','cursorOffset','exports','findCodeRangeAtOffset','endTokenOffset','unitId','paragraphs','serialize','setConfig','Inject','dispose','endOffset','docs-code.command.consume-boundary-delete','direction','reduce','14ClcbjX','version','right','isCodeBoundaryDelete','onStarting','_configService','paragraphStartIndex','_setResource','max','docs-code.config','DOC_CODE_PLUGIN','@univerjs/docs','string','_change$','customRanges','getUnitId','Subject','buildCancelEmptyCodeParagraphActions','delete','stringify','body','startIndex','buildInsertCodeActions','UniverProDocsCode','from','monospace','96471dRzetw','rxjs','6119141TfjXUa','CODE','toStringTag','parse','toPrimitive','next','sort','removeUnit','generateRandomId','_injector','blockId','complete','UNIVER_DOC','ICommandService','BLOCK_START','getBody','paragraphStyle','_initResource','type','DocumentBlockRangeType','nextMetadata','Disposable','registerCommand','fromEntries','previousDocumentData','endsWith','add','DocContentInsertService','DocSelectionManagerService','DEFAULT_CODE_CONFIG','constructor','customBlocks','clear','1212085dxqlQn','replaceOp','defineProperty','598334JzEWRB','Document\x20body\x20is\x20required','disposeWithMe','slice','set','decorate','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','every','paragraph','get','COMMAND'];_0x1d60=function(){return _0x552f45;};return _0x1d60();}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/docs-code",
3
- "version": "1.0.0-alpha.1",
3
+ "version": "1.0.0-insiders.20260629-12f2e44",
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": "1.0.0-alpha.1",
65
- "@univerjs/core": "1.0.0-alpha.1",
66
- "@univerjs/docs": "1.0.0-alpha.1"
64
+ "@univerjs-pro/license": "1.0.0-insiders.20260629-12f2e44",
65
+ "@univerjs/core": "1.0.0-insiders.20260629-12f2e44",
66
+ "@univerjs/docs": "1.0.0-insiders.20260629-12f2e44"
67
67
  },
68
68
  "devDependencies": {
69
69
  "rxjs": "7.8.2",