@univerjs-pro/docs-code 1.0.0-alpha.0 → 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 _0x69c23e=_0x19b1;(function(_0xc996,_0x4ca4a3){var _0x2c439f=_0x19b1,_0x5e3c2b=_0xc996();while(!![]){try{var _0x51e1a5=-parseInt(_0x2c439f(0x76))/0x1+parseInt(_0x2c439f(0xa7))/0x2*(-parseInt(_0x2c439f(0xb9))/0x3)+-parseInt(_0x2c439f(0xbc))/0x4+-parseInt(_0x2c439f(0x81))/0x5+parseInt(_0x2c439f(0xad))/0x6+parseInt(_0x2c439f(0x8c))/0x7+-parseInt(_0x2c439f(0xae))/0x8*(-parseInt(_0x2c439f(0xc4))/0x9);if(_0x51e1a5===_0x4ca4a3)break;else _0x5e3c2b['push'](_0x5e3c2b['shift']());}catch(_0xb40b44){_0x5e3c2b['push'](_0x5e3c2b['shift']());}}}(_0x5f51,0x3a03a),Object[_0x69c23e(0x73)](exports,Symbol[_0x69c23e(0xb4)],{'value':_0x69c23e(0xa0)}));function _0x19b1(_0x47f5f4,_0x524dec){_0x47f5f4=_0x47f5f4-0x72;var _0x5f519c=_0x5f51();var _0x19b164=_0x5f519c[_0x47f5f4];return _0x19b164;}let e=require('@univerjs-pro/docs-code'),t=require('@univerjs/core'),n=require('@univerjs/docs/facade');function r(_0x5b8511){'@babel/helpers - typeof';var _0x5722f2=_0x69c23e;return r=typeof Symbol==_0x5722f2(0xb6)&&typeof Symbol[_0x5722f2(0xb7)]==_0x5722f2(0x86)?function(_0x3ce7bd){return typeof _0x3ce7bd;}:function(_0x5c0a7d){var _0x4cff71=_0x5722f2;return _0x5c0a7d&&typeof Symbol=='function'&&_0x5c0a7d[_0x4cff71(0x7c)]===Symbol&&_0x5c0a7d!==Symbol['prototype']?_0x4cff71(0x86):typeof _0x5c0a7d;},r(_0x5b8511);}function i(_0x2046b0,_0x5bec79){var _0x15fa56=_0x69c23e;if(r(_0x2046b0)!=_0x15fa56(0x8d)||!_0x2046b0)return _0x2046b0;var _0x1988d5=_0x2046b0[Symbol[_0x15fa56(0x8e)]];if(_0x1988d5!==void 0x0){var _0x475544=_0x1988d5[_0x15fa56(0xc0)](_0x2046b0,_0x5bec79||_0x15fa56(0xa5));if(r(_0x475544)!=_0x15fa56(0x8d))return _0x475544;throw TypeError(_0x15fa56(0x88));}return(_0x5bec79===_0x15fa56(0x8b)?String:Number)(_0x2046b0);}function a(_0x5e905e){var _0x392281=_0x69c23e,_0x17753b=i(_0x5e905e,_0x392281(0x8b));return r(_0x17753b)==_0x392281(0x86)?_0x17753b:_0x17753b+'';}function o(_0x278e09,_0x28d57a,_0x4b1ee4){var _0x1b2ecc=_0x69c23e;return(_0x28d57a=a(_0x28d57a))in _0x278e09?Object[_0x1b2ecc(0x73)](_0x278e09,_0x28d57a,{'value':_0x4b1ee4,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x278e09[_0x28d57a]=_0x4b1ee4,_0x278e09;}function s(_0x21d84a,_0x255ca5){return function(_0x1878a7,_0x8efcb9){_0x255ca5(_0x1878a7,_0x8efcb9,_0x21d84a);};}function _0x5f51(){var _0x2e2bdc=['_getBlockRanges','updateConfig','_document','find','some','DocsCodeExitCommand','blockType','startIndex','exitCode','Module','ICommandService','slice','getText','DocsCodeInsertCommand','default','text','6ZmrfCF','endIndex','map','PARAGRAPH','findCodes','describe','2445738xcnmoR','8vvQCvh','DocsCodeUpdateCommand','exit','getType','BLOCK_START','CODE','toStringTag','_createFDocumentCode','function','iterator','getRange','374823UuewSm','DataStreamTreeTokenType','blockId','1679040lfZdLF','BLOCK_END','body','_unitId','call','decorate','insertCode','getConfig','10860354oTnhbt','getId','defineProperty','length','FDocument','429918lAOKHH','_getBlockRange','getCode','config','findCodeByText','Inject','constructor','includes','getKey','_injector','Injector','2336085DcdndC','paragraph','_blockId','syncExecuteCommand','DocsCodeModel','symbol','_getDocumentData','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','FDocumentCode','extend','string','2205105MSrVkX','object','toPrimitive','normalizeDocsCodeConfig','get','DocumentBlockRangeType','filter','from','DocsCodeCancelEmptyParagraphCommand','getOwnPropertyDescriptor','dataStream'];_0x5f51=function(){return _0x2e2bdc;};return _0x5f51();}function c(_0x3bf6cc,_0x2ebb52,_0x250a06,_0x502445){var _0x309e2d=_0x69c23e,_0x58e231=arguments[_0x309e2d(0x74)],_0x28a5c9=_0x58e231<0x3?_0x2ebb52:_0x502445===null?_0x502445=Object[_0x309e2d(0x95)](_0x2ebb52,_0x250a06):_0x502445,_0x4db71f;if(typeof Reflect==_0x309e2d(0x8d)&&typeof Reflect['decorate']==_0x309e2d(0xb6))_0x28a5c9=Reflect[_0x309e2d(0xc1)](_0x3bf6cc,_0x2ebb52,_0x250a06,_0x502445);else{for(var _0x47de0c=_0x3bf6cc[_0x309e2d(0x74)]-0x1;_0x47de0c>=0x0;_0x47de0c--)(_0x4db71f=_0x3bf6cc[_0x47de0c])&&(_0x28a5c9=(_0x58e231<0x3?_0x4db71f(_0x28a5c9):_0x58e231>0x3?_0x4db71f(_0x2ebb52,_0x250a06,_0x28a5c9):_0x4db71f(_0x2ebb52,_0x250a06))||_0x28a5c9);}return _0x58e231>0x3&&_0x28a5c9&&Object[_0x309e2d(0x73)](_0x2ebb52,_0x250a06,_0x28a5c9),_0x28a5c9;}let l=class{constructor(_0x3cf57a,_0x216db1,_0x318f74){var _0x5bbd2c=_0x69c23e;this['_document']=_0x3cf57a,this[_0x5bbd2c(0x83)]=_0x216db1,this[_0x5bbd2c(0x7f)]=_0x318f74,o(this,_0x5bbd2c(0xbf),void 0x0),this[_0x5bbd2c(0xbf)]=this[_0x5bbd2c(0x99)][_0x5bbd2c(0x72)]();}[_0x69c23e(0x72)](){var _0x21e073=_0x69c23e;return this[_0x21e073(0x83)];}[_0x69c23e(0xb8)](){var _0x48bc6f=_0x69c23e;let _0x46b8b3=this[_0x48bc6f(0x77)]();return _0x46b8b3?{'blockId':_0x46b8b3[_0x48bc6f(0xbb)],'endIndex':_0x46b8b3[_0x48bc6f(0xa8)],'startIndex':_0x46b8b3[_0x48bc6f(0x9e)]}:null;}[_0x69c23e(0xa3)](){var _0x5b4423=_0x69c23e,_0x1ed21d;let _0x3cd4f9=this[_0x5b4423(0x77)](),_0x358f8e=(_0x1ed21d=this[_0x5b4423(0x87)]()[_0x5b4423(0xbe)])==null?void 0x0:_0x1ed21d[_0x5b4423(0x96)];return!_0x3cd4f9||!_0x358f8e?'':u(_0x358f8e[_0x5b4423(0xa2)](_0x3cd4f9['startIndex']+0x1,_0x3cd4f9[_0x5b4423(0xa8)]));}[_0x69c23e(0xac)](){var _0x5037af=_0x69c23e;let _0x4706b6=this['getRange']();return _0x4706b6?{..._0x4706b6,'config':this['getConfig'](),'text':this['getText'](),'type':t['DocumentBlockRangeType'][_0x5037af(0xb3)]}:null;}[_0x69c23e(0xc3)](){var _0xef54d5=_0x69c23e;return(0x0,e[_0xef54d5(0x8f)])(this[_0xef54d5(0x7f)][_0xef54d5(0x90)](e[_0xef54d5(0x85)])['getCodeConfig'](this[_0xef54d5(0xbf)],this[_0xef54d5(0x83)]));}[_0x69c23e(0x98)](_0xf8f0bc){var _0x2c7aba=_0x69c23e;return this[_0x2c7aba(0x7f)][_0x2c7aba(0x90)](t[_0x2c7aba(0xa1)])[_0x2c7aba(0x84)](e[_0x2c7aba(0xaf)]['id'],{'blockId':this['_blockId'],'config':_0xf8f0bc[_0x2c7aba(0x79)],'unitId':this[_0x2c7aba(0xbf)]});}[_0x69c23e(0xb0)](_0x3f0ffb){var _0x3c383b=_0x69c23e;return this[_0x3c383b(0x7f)][_0x3c383b(0x90)](t['ICommandService'])['syncExecuteCommand'](e[_0x3c383b(0x9c)]['id'],{'cursorOffset':_0x3f0ffb,'unitId':this['_unitId']});}['cancelEmptyParagraph'](_0x2c9be8={}){var _0x1e7401=_0x69c23e;return this[_0x1e7401(0x7f)][_0x1e7401(0x90)](t['ICommandService'])[_0x1e7401(0x84)](e['DocsCodeCancelEmptyParagraphCommand']['id'],{..._0x2c9be8,'unitId':this['_unitId']});}['_getDocumentData'](){var _0x1cbccb=_0x69c23e;return this[_0x1cbccb(0x99)]['save']();}['_getBlockRange'](){var _0x1d551e=_0x69c23e,_0x2a1e80;let _0x168fca=(_0x2a1e80=this[_0x1d551e(0x87)]()['body'])==null||(_0x2a1e80=_0x2a1e80['blockRanges'])==null?void 0x0:_0x2a1e80[_0x1d551e(0x9a)](_0x53b6a3=>_0x53b6a3[_0x1d551e(0xbb)]===this['_blockId']&&_0x53b6a3[_0x1d551e(0x9d)]===t['DocumentBlockRangeType'][_0x1d551e(0xb3)]);return _0x168fca==null?null:_0x168fca;}};l=c([s(0x2,(0x0,t[_0x69c23e(0x7b)])(t[_0x69c23e(0x80)]))],l);function u(_0x5327e9){var _0x32bfaf=_0x69c23e;return Array[_0x32bfaf(0x93)](_0x5327e9)[_0x32bfaf(0xa9)](_0x3cd969=>_0x3cd969===t[_0x32bfaf(0xba)][_0x32bfaf(0xaa)]?'\x0a':_0x3cd969)[_0x32bfaf(0x92)](_0x35317d=>_0x35317d!==t['DataStreamTreeTokenType'][_0x32bfaf(0xb2)]&&_0x35317d!==t[_0x32bfaf(0xba)][_0x32bfaf(0xbd)]&&_0x35317d!==t[_0x32bfaf(0xba)]['SECTION_BREAK'])['join']('')['replace'](/\n$/,'');}var d=class extends n[_0x69c23e(0x75)]{['getCodes'](){var _0x4fcaee=_0x69c23e;return this[_0x4fcaee(0x97)]()['filter'](_0x24b930=>_0x24b930['blockType']===t[_0x4fcaee(0x91)][_0x4fcaee(0xb3)])['map'](_0x58a3cc=>this[_0x4fcaee(0xb5)](_0x58a3cc[_0x4fcaee(0xbb)]));}[_0x69c23e(0x78)](_0x3da57c){var _0x42a5fa=_0x69c23e;return this['_getBlockRanges']()[_0x42a5fa(0x9b)](_0x1aa3ba=>_0x1aa3ba['blockId']===_0x3da57c&&_0x1aa3ba[_0x42a5fa(0x9d)]===t[_0x42a5fa(0x91)][_0x42a5fa(0xb3)])?this[_0x42a5fa(0xb5)](_0x3da57c):null;}['getCodeAt'](_0x43fe61){var _0x15f9af=_0x69c23e;let _0x3fb4f9=this[_0x15f9af(0x97)]()[_0x15f9af(0x9a)](_0x29ae8b=>_0x29ae8b[_0x15f9af(0x9d)]===t['DocumentBlockRangeType'][_0x15f9af(0xb3)]&&_0x29ae8b[_0x15f9af(0x9e)]<=_0x43fe61&&_0x43fe61<=_0x29ae8b[_0x15f9af(0xa8)]);return _0x3fb4f9?this['_createFDocumentCode'](_0x3fb4f9['blockId']):null;}[_0x69c23e(0x7a)](_0x3a5ad6){var _0x4d004d=_0x69c23e,_0x2619cf;return(_0x2619cf=this[_0x4d004d(0xab)](_0x3a5ad6)[0x0])==null?null:_0x2619cf;}['findCodes'](_0x451a34){var _0x130372=_0x69c23e;let _0x139fe8=typeof _0x451a34==_0x130372(0x8b)?{'text':_0x451a34}:_0x451a34;return this['getCodes']()[_0x130372(0x92)](_0x5ac0af=>!(_0x139fe8[_0x130372(0xbb)]&&_0x5ac0af[_0x130372(0x72)]()!==_0x139fe8['blockId']||_0x139fe8[_0x130372(0xa6)]&&!_0x5ac0af[_0x130372(0xa3)]()[_0x130372(0x7d)](_0x139fe8['text'])));}[_0x69c23e(0xc2)](_0x25c6f0={},_0x290113={}){var _0x23acb6=_0x69c23e,_0x5aa632;let _0x57e559=this['_injector'][_0x23acb6(0x90)](t[_0x23acb6(0xa1)]),_0x29bfbe=f(_0x25c6f0)?{..._0x290113,...p(_0x25c6f0)}:_0x25c6f0,_0x59044c=(_0x5aa632=_0x29bfbe[_0x23acb6(0xbb)])==null?(0x0,t['generateRandomId'])(0x6):_0x5aa632;return _0x57e559[_0x23acb6(0x84)](e[_0x23acb6(0xa4)]['id'],{..._0x29bfbe,'blockId':_0x59044c,'unitId':this[_0x23acb6(0x72)]()})?this[_0x23acb6(0xb5)](_0x59044c):null;}[_0x69c23e(0x9f)](_0x1e5bdd){var _0x4e88b8=_0x69c23e;return this['_injector'][_0x4e88b8(0x90)](t[_0x4e88b8(0xa1)])[_0x4e88b8(0x84)](e[_0x4e88b8(0x9c)]['id'],{'cursorOffset':_0x1e5bdd,'unitId':this['getId']()});}['cancelEmptyCodeParagraph'](_0x43d9f9={}){var _0xf8a046=_0x69c23e;return this[_0xf8a046(0x7f)]['get'](t[_0xf8a046(0xa1)])[_0xf8a046(0x84)](e[_0xf8a046(0x94)]['id'],{..._0x43d9f9,'unitId':this[_0xf8a046(0x72)]()});}['_getBlockRanges'](){var _0x514bf0=_0x69c23e,_0x9bfd97,_0x323fe1;return(_0x9bfd97=(_0x323fe1=this['save']()[_0x514bf0(0xbe)])==null?void 0x0:_0x323fe1['blockRanges'])==null?[]:_0x9bfd97;}[_0x69c23e(0xb5)](_0x4bd377){var _0x165120=_0x69c23e;return this[_0x165120(0x7f)]['createInstance'](l,this,_0x4bd377);}};function f(_0x4f6593){var _0x115f75=_0x69c23e;return typeof _0x4f6593==_0x115f75(0x8d)&&!!_0x4f6593&&typeof _0x4f6593[_0x115f75(0x7e)]=='function'&&typeof _0x4f6593[_0x115f75(0xb8)]==_0x115f75(0xb6)&&typeof _0x4f6593[_0x115f75(0xb1)]==_0x115f75(0xb6)&&_0x4f6593[_0x115f75(0xb1)]()===_0x115f75(0x82);}function p(_0x96bfa2){var _0x27c0af=_0x69c23e;return _0x96bfa2[_0x27c0af(0xb8)]();}n['FDocument'][_0x69c23e(0x8a)](d),Object['defineProperty'](exports,_0x69c23e(0x89),{'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 _0x1f4ff6=_0x44e9;(function(_0x4abab5,_0x43f86b){const _0x3afd26=_0x44e9,_0x3b38ca=_0x4abab5();while(!![]){try{const _0x44b498=parseInt(_0x3afd26(0x171))/0x1*(parseInt(_0x3afd26(0x169))/0x2)+-parseInt(_0x3afd26(0x14d))/0x3+-parseInt(_0x3afd26(0x131))/0x4*(-parseInt(_0x3afd26(0x130))/0x5)+-parseInt(_0x3afd26(0x10b))/0x6*(-parseInt(_0x3afd26(0x114))/0x7)+parseInt(_0x3afd26(0x147))/0x8+-parseInt(_0x3afd26(0x1a4))/0x9*(parseInt(_0x3afd26(0x148))/0xa)+-parseInt(_0x3afd26(0x14e))/0xb*(parseInt(_0x3afd26(0x154))/0xc);if(_0x44b498===_0x43f86b)break;else _0x3b38ca['push'](_0x3b38ca['shift']());}catch(_0x168e38){_0x3b38ca['push'](_0x3b38ca['shift']());}}}(_0x7e22,0x703ca),Object[_0x1f4ff6(0x13e)](exports,Symbol['toStringTag'],{'value':_0x1f4ff6(0x172)}));let e=require('@univerjs/core'),t=require('@univerjs/docs'),n=require('rxjs'),r=require('@univerjs-pro/license');const i={'language':_0x1f4ff6(0x126),'showLineNumbers':!0x1,'tabSize':0x4,'wrap':!0x0};function a(_0xf796cb){return{...i,..._0xf796cb};}function o(_0x5912bd){const _0x3be839=_0x1f4ff6;var _0x3bf3af;let _0x212db3=(_0x3bf3af=_0x5912bd==null?void 0x0:_0x5912bd[_0x3be839(0x145)])==null?{}:_0x3bf3af;return{'codes':Object[_0x3be839(0x195)](Object['entries'](_0x212db3)[_0x3be839(0x12d)](([_0x3d887c,_0x991065])=>[_0x3d887c,a(_0x991065)]))};}function s(_0xf158a6,_0x3951db,_0x1b1cd3){const _0x57fe94=_0x1f4ff6;let _0xc0e96b=o(_0xf158a6);return _0xc0e96b[_0x57fe94(0x145)][_0x3951db]=a({..._0xc0e96b['codes'][_0x3951db],..._0x1b1cd3}),_0xc0e96b;}function c(_0x13728a,_0x4eabea){const _0x558073=_0x1f4ff6;let _0x22bd24=o(_0x13728a);return delete _0x22bd24[_0x558073(0x145)][_0x4eabea],_0x22bd24;}const l='monospace';function u(_0x6eb427){const _0xe435ac=_0x1f4ff6;var _0x2c5cbd,_0x2fbef0,_0x35199b;let _0x4044de=w(_0x6eb427['documentData']),_0x5c14ea=T(_0x4044de),_0x5340c5=f(_0x6eb427[_0xe435ac(0x1a6)],_0x6eb427[_0xe435ac(0x1ab)]),_0x492db2=_0x5340c5?(_0x2c5cbd=_0x5c14ea[_0xe435ac(0x141)])==null?void 0x0:_0x2c5cbd[_0xe435ac(0x1b2)](_0x421dce=>_0x421dce[_0xe435ac(0x12e)]===_0x5340c5[_0xe435ac(0x1a6)]&&_0x421dce['endIndex']+0x1===_0x5340c5[_0xe435ac(0x1ab)]):void 0x0,{startOffset:_0x1039e0,endOffset:_0x373eef}=_0x492db2?_0x5340c5:te(_0x5c14ea,_0x6eb427['startOffset'],_0x6eb427[_0xe435ac(0x1ab)]),_0x344edf=ie(_0x5c14ea,_0x1039e0,_0x373eef),_0x20688d=(_0x2fbef0=_0x492db2==null?void 0x0:_0x492db2['blockId'])==null?_0x6eb427['blockId']:_0x2fbef0,_0x1b1d65=s(_0x6eb427[_0xe435ac(0x144)],_0x20688d,{...i,..._0x6eb427['config']});if(_0x492db2)return _0x492db2[_0xe435ac(0x165)]=e[_0xe435ac(0x187)][_0xe435ac(0x160)],d(_0x5c14ea,_0x1039e0,_0x373eef),x(_0x5c14ea,_0x1039e0,_0x373eef,_0x344edf),O(_0x5c14ea,_0x492db2),{'nextDocumentData':_0x4044de,'nextMetadata':_0x1b1d65,'cursorOffset':_0x1039e0+0x1};if(_0x1039e0===_0x373eef){var _0x57c3c7,_0xe699ed;let _0x4ff5cd=''+e[_0xe435ac(0x190)]['BLOCK_START']+e[_0xe435ac(0x190)][_0xe435ac(0x137)]+e['DataStreamTreeTokenType'][_0xe435ac(0x149)];k(_0x5c14ea,_0x1039e0,_0x4ff5cd,{'paragraphs':[{'startIndex':0x1,'paragraphId':(0x0,e[_0xe435ac(0x116)])(new Set((_0x57c3c7=_0x5c14ea[_0xe435ac(0x166)])==null?void 0x0:_0x57c3c7[_0xe435ac(0x12d)](_0x5a5ba9=>_0x5a5ba9['paragraphId']))),'paragraphStyle':b(!0x0,!0x0,_0x344edf)}],'blockRanges':[{'blockId':_0x20688d,'blockType':e[_0xe435ac(0x187)][_0xe435ac(0x160)],'startIndex':0x0,'endIndex':_0x4ff5cd['length']-0x1}]});let _0x49aba0=(_0xe699ed=_0x5c14ea['blockRanges'])==null?void 0x0:_0xe699ed['find'](_0x48c676=>_0x48c676['blockId']===_0x20688d);return _0x49aba0&&O(_0x5c14ea,_0x49aba0),{'nextDocumentData':_0x4044de,'nextMetadata':_0x1b1d65,'cursorOffset':_0x1039e0+0x1};}k(_0x5c14ea,_0x373eef,e[_0xe435ac(0x190)]['BLOCK_END']),k(_0x5c14ea,_0x1039e0,e[_0xe435ac(0x190)]['BLOCK_START']),x(_0x5c14ea,_0x1039e0,_0x373eef+0x1,_0x344edf);let _0x173be3={'blockId':_0x20688d,'blockType':e[_0xe435ac(0x187)][_0xe435ac(0x160)],'startIndex':_0x1039e0,'endIndex':_0x373eef+0x1};return _0x5c14ea[_0xe435ac(0x141)]=[...(_0x35199b=_0x5c14ea['blockRanges'])==null?[]:_0x35199b,_0x173be3]['sort']((_0x5a1cdc,_0x284a42)=>_0x5a1cdc[_0xe435ac(0x12e)]-_0x284a42[_0xe435ac(0x12e)]),O(_0x5c14ea,_0x173be3),{'nextDocumentData':_0x4044de,'nextMetadata':_0x1b1d65,'cursorOffset':_0x1039e0+0x1};}function d(_0x4f77e4,_0x300f78,_0x554111){const _0x986954=_0x1f4ff6;var _0x1a5dd0;((_0x1a5dd0=_0x4f77e4['paragraphs'])==null?[]:_0x1a5dd0)[_0x986954(0x1af)](_0x5557e2=>_0x5557e2[_0x986954(0x12e)]>_0x300f78&&_0x5557e2[_0x986954(0x12e)]<_0x554111)[_0x986954(0x10e)](_0x5dc0e8=>{const _0x38299d=_0x986954;var _0x3d275e;let _0x2687eb={...(_0x3d275e=_0x5dc0e8[_0x38299d(0x112)])==null?{}:_0x3d275e};delete _0x2687eb['spaceAbove'],delete _0x2687eb[_0x38299d(0x193)],_0x5dc0e8['paragraphStyle']=_0x2687eb;});}function f(_0x1d0b8d,_0x2706e6){const _0x39046b=_0x1f4ff6;return _0x1d0b8d==null||_0x2706e6==null||_0x1d0b8d===_0x2706e6?null:{'startOffset':Math[_0x39046b(0x1a8)](_0x1d0b8d,_0x2706e6),'endOffset':Math[_0x39046b(0x18e)](_0x1d0b8d,_0x2706e6)};}function p(_0x2662a0){const _0x272a12=_0x1f4ff6;return{'nextDocumentData':w(_0x2662a0['documentData']),'nextMetadata':s(_0x2662a0[_0x272a12(0x144)],_0x2662a0[_0x272a12(0x16b)],_0x2662a0[_0x272a12(0x155)]),'cursorOffset':0x0};}function m(_0x14e385){const _0x1db798=_0x1f4ff6;var _0x46dec9,_0x2a08e9;let _0x1f309a=w(_0x14e385['documentData']),_0x152bd4=T(_0x1f309a),_0x18063c=y(_0x152bd4,_0x14e385['cursorOffset']);if(!_0x18063c)return null;let _0x427bb0=C(_0x152bd4,_0x18063c),_0x3f7857=_0x427bb0[_0x427bb0['length']-0x1];if(!_0x3f7857||!ee(_0x152bd4,_0x18063c,_0x3f7857)||_0x14e385['cursorOffset']<_0x3f7857[_0x1db798(0x12e)])return null;let _0x46872a=oe(_0x152bd4,_0x18063c,_0x3f7857);if(_0x46872a>=_0x18063c[_0x1db798(0x167)])return null;_0x152bd4[_0x1db798(0x158)]=[_0x152bd4[_0x1db798(0x158)][_0x1db798(0x17f)](0x0,_0x46872a),e[_0x1db798(0x190)][_0x1db798(0x149)],_0x152bd4[_0x1db798(0x158)]['slice'](_0x46872a,_0x18063c['endIndex']),_0x152bd4['dataStream'][_0x1db798(0x17f)](_0x18063c[_0x1db798(0x167)]+0x1)][_0x1db798(0x1a2)](''),P(_0x152bd4['paragraphs'],_0x46872a,_0x18063c[_0x1db798(0x167)],0x1),P(_0x152bd4[_0x1db798(0x119)],_0x46872a,_0x18063c['endIndex'],0x1),P(_0x152bd4[_0x1db798(0x161)],_0x46872a,_0x18063c['endIndex'],0x1),fe(_0x152bd4[_0x1db798(0x151)],_0x46872a,_0x18063c[_0x1db798(0x167)],0x1),F(_0x152bd4[_0x1db798(0x15d)],_0x46872a,_0x18063c[_0x1db798(0x167)],0x1),F(_0x152bd4['customRanges'],_0x46872a,_0x18063c['endIndex'],0x1),F(_0x152bd4[_0x1db798(0x12a)],_0x46872a,_0x18063c['endIndex'],0x1),(_0x46dec9=_0x152bd4[_0x1db798(0x141)])==null||_0x46dec9['forEach'](_0x54b6a5=>{const _0x1b14b5=_0x1db798;_0x54b6a5===_0x18063c||_0x54b6a5['blockId']===_0x18063c['blockId']?_0x54b6a5[_0x1b14b5(0x167)]=_0x46872a:_0x54b6a5[_0x1b14b5(0x12e)]>=_0x46872a&&_0x54b6a5['startIndex']<_0x18063c[_0x1b14b5(0x167)]&&(_0x54b6a5[_0x1b14b5(0x12e)]+=0x1,_0x54b6a5[_0x1b14b5(0x167)]+=0x1);});let _0x4fa5ec=C(_0x152bd4,{..._0x18063c,'endIndex':_0x46872a});_0x4fa5ec[_0x1db798(0x10e)]((_0x15129e,_0x4e58ea)=>{const _0x39d466=_0x1db798;var _0x14ce9b;_0x15129e[_0x39d466(0x112)]={...(_0x14ce9b=_0x15129e[_0x39d466(0x112)])==null?{}:_0x14ce9b,...b(_0x4e58ea===0x0,_0x4e58ea===_0x4fa5ec[_0x39d466(0x1b3)]-0x1)};});let _0x2d6e2f=(_0x2a08e9=_0x152bd4['paragraphs'])==null?void 0x0:_0x2a08e9['find'](_0x55baaf=>_0x55baaf['startIndex']===_0x46872a+0x1);return _0x2d6e2f&&(_0x2d6e2f[_0x1db798(0x112)]=S(_0x2d6e2f[_0x1db798(0x112)])),{'nextDocumentData':_0x1f309a,'cursorOffset':_0x46872a+0x1};}function h(_0x39cf39){const _0x122c94=_0x1f4ff6;let _0x1046b0=w(_0x39cf39[_0x122c94(0x1a3)]),_0x355e24=T(_0x1046b0),_0x1ada61=y(_0x355e24,_0x39cf39[_0x122c94(0x12b)]);return _0x1ada61&&g(_0x1046b0,_0x355e24,_0x1ada61,_0x39cf39[_0x122c94(0x12b)],_0x39cf39['paragraphStartIndex'])||null;}function g(_0x253642,_0x5ab537,_0x6778ad,_0x20b42f,_0x1ae760){const _0x441de1=_0x1f4ff6;let _0xc21253=se(_0x5ab537,_0x6778ad,_0x20b42f,_0x1ae760);if(!_0xc21253)return null;let _0x11cc49=_0xc21253[_0x441de1(0x11f)]-0x1;return ce(_0x5ab537,_0xc21253[_0x441de1(0x13b)]['startIndex'],_0xc21253[_0x441de1(0x13b)][_0x441de1(0x12e)]+0x1),{'nextDocumentData':_0x253642,'cursorOffset':_0x11cc49};}function _(_0x1df48c,_0x57c13e){const _0x405afd=_0x1f4ff6;var _0x562d16;return _0x1df48c==null||(_0x562d16=_0x1df48c[_0x405afd(0x141)])==null?void 0x0:_0x562d16[_0x405afd(0x1b2)](_0x59f6ab=>_0x59f6ab['blockType']===e[_0x405afd(0x187)]['CODE']&&_0x59f6ab[_0x405afd(0x12e)]<=_0x57c13e&&_0x57c13e<=_0x59f6ab[_0x405afd(0x167)]);}function v(_0x54ebba){const _0x27c76e=_0x1f4ff6;var _0x6c2fc0;let _0x232cd5=_0x54ebba['documentData'][_0x27c76e(0x16f)];if(!_0x232cd5)return!0x1;let _0x7f13b2=_0x54ebba[_0x27c76e(0x185)]===_0x27c76e(0x17b)?_0x54ebba['cursorOffset']-0x1:_0x54ebba[_0x27c76e(0x12b)],_0x4eff65=_0x54ebba[_0x27c76e(0x185)]==='right'?_0x54ebba[_0x27c76e(0x12b)]+0x1:_0x7f13b2;return((_0x6c2fc0=_0x232cd5[_0x27c76e(0x141)])==null?[]:_0x6c2fc0)[_0x27c76e(0x122)](_0x513453=>_0x513453['blockType']===e['DocumentBlockRangeType'][_0x27c76e(0x160)]?_0x7f13b2===_0x513453[_0x27c76e(0x12e)]||_0x7f13b2===_0x513453[_0x27c76e(0x167)]||_0x4eff65===_0x513453['startIndex']||_0x4eff65===_0x513453[_0x27c76e(0x167)]:!0x1);}function y(_0x496b5a,_0x40f1fa){const _0x35d072=_0x1f4ff6;var _0x2a7326;return(_0x2a7326=_0x496b5a[_0x35d072(0x141)])==null?void 0x0:_0x2a7326[_0x35d072(0x1b2)](_0x366b86=>{const _0x3691cf=_0x35d072;let _0x37783c=D(_0x496b5a,_0x366b86);return _0x366b86[_0x3691cf(0x165)]===e[_0x3691cf(0x187)][_0x3691cf(0x160)]&&_0x366b86['startIndex']<=_0x40f1fa&&_0x40f1fa<=_0x37783c+0x2;});}function b(_0x50dfe2,_0x2cb082,_0x1a7eda=!0x1){return{'indentEnd':{'v':0x14},'indentStart':{'v':0x14},..._0x50dfe2&&_0x1a7eda?{'spaceAbove':{'v':0x8}}:{},'textStyle':{'ff':l,'fs':0xc}};}function x(_0x53199a,_0x1cca88,_0x26cb35,_0x23c62c=!0x1){const _0x22cf49=_0x1f4ff6;var _0x36c18e;let _0x1c2b00=((_0x36c18e=_0x53199a[_0x22cf49(0x166)])==null?[]:_0x36c18e)['filter'](_0x1b574a=>_0x1b574a['startIndex']>_0x1cca88&&_0x1b574a[_0x22cf49(0x12e)]<_0x26cb35);_0x1c2b00[_0x22cf49(0x10e)]((_0x199dac,_0x1d70aa)=>{const _0x4e4804=_0x22cf49;var _0x58a849;_0x199dac['paragraphStyle']={...(_0x58a849=_0x199dac[_0x4e4804(0x112)])==null?{}:_0x58a849,...b(_0x1d70aa===0x0,_0x1d70aa===_0x1c2b00['length']-0x1,_0x23c62c)};});}function S(_0x41cf4c){const _0x426bb7=_0x1f4ff6;var _0x42746b,_0x1bea90;let _0x54f0a4={..._0x41cf4c==null?{}:_0x41cf4c};return delete _0x54f0a4[_0x426bb7(0x117)],delete _0x54f0a4[_0x426bb7(0x121)],delete _0x54f0a4['spaceAbove'],delete _0x54f0a4[_0x426bb7(0x193)],((_0x42746b=_0x54f0a4[_0x426bb7(0x18a)])==null?void 0x0:_0x42746b['ff'])===l&&((_0x1bea90=_0x54f0a4[_0x426bb7(0x18a)])==null?void 0x0:_0x1bea90['fs'])===0xc&&delete _0x54f0a4['textStyle'],_0x54f0a4;}function C(_0x391f92,_0x20b0c){const _0x2d6a64=_0x1f4ff6;var _0x4f44d3;let _0x516e2c=D(_0x391f92,_0x20b0c);return((_0x4f44d3=_0x391f92[_0x2d6a64(0x166)])==null?[]:_0x4f44d3)[_0x2d6a64(0x1af)](_0x5c0554=>_0x5c0554[_0x2d6a64(0x12e)]>_0x20b0c[_0x2d6a64(0x12e)]&&_0x5c0554[_0x2d6a64(0x12e)]<_0x516e2c);}function ee(_0x19aeda,_0x48d276,_0x304b0f){const _0xa84ed5=_0x1f4ff6;let _0x5512cd=oe(_0x19aeda,_0x48d276,_0x304b0f),_0x572e6d=_0x19aeda[_0xa84ed5(0x158)][_0xa84ed5(0x17f)](_0x5512cd,_0x304b0f[_0xa84ed5(0x12e)]);return Array[_0xa84ed5(0x1a1)](_0x572e6d)[_0xa84ed5(0x150)](_0x333dff=>_0x333dff===e[_0xa84ed5(0x190)][_0xa84ed5(0x17d)]||_0x333dff===e['DataStreamTreeTokenType'][_0xa84ed5(0x149)]);}function w(_0x4b57bb){const _0x16b7a3=_0x1f4ff6;return e[_0x16b7a3(0x16d)][_0x16b7a3(0x1ac)](_0x4b57bb);}function T(_0x43adc0){const _0x18d306=_0x1f4ff6;if(!_0x43adc0[_0x18d306(0x16f)])throw Error(_0x18d306(0x143));return _0x43adc0[_0x18d306(0x16f)];}function te(_0x1f246d,_0x454f2e,_0x388f5e){const _0x368e9e=_0x1f4ff6;if(_0x454f2e==null||_0x388f5e==null){let _0xaebc0c=re(_0x1f246d);return{'startOffset':_0xaebc0c,'endOffset':_0xaebc0c};}let _0x5e9306=Math[_0x368e9e(0x1a8)](_0x454f2e,_0x388f5e),_0x57c861=Math[_0x368e9e(0x18e)](_0x454f2e,_0x388f5e);if(_0x5e9306===_0x57c861){let _0x132ea6=ne(_0x1f246d,_0x5e9306);return{'startOffset':_0x132ea6,'endOffset':_0x132ea6};}return ae(_0x1f246d,_0x5e9306,_0x57c861);}function ne(_0x5c17c0,_0x32609c){const _0x345eef=_0x1f4ff6;return _0x32609c===0x0&&_0x5c17c0[_0x345eef(0x158)][0x0]===e['DataStreamTreeTokenType']['PARAGRAPH']?0x1:_0x32609c;}function re(_0x10d9fe){const _0x3269ba=_0x1f4ff6;return _0x10d9fe[_0x3269ba(0x158)][_0x3269ba(0x16c)](e['DataStreamTreeTokenType']['SECTION_BREAK'])?Math['max'](0x0,_0x10d9fe['dataStream']['length']-0x1):_0x10d9fe[_0x3269ba(0x158)][_0x3269ba(0x1b3)];}function ie(_0x4d67fe,_0x3c753b,_0x2a331f){const _0xaafd8f=_0x1f4ff6;var _0x39ff7b;let _0x108a0d=Math[_0xaafd8f(0x1a8)](_0x3c753b,_0x2a331f),_0x267699=Math['max'](_0x3c753b,_0x2a331f);return!!((_0x39ff7b=_0x4d67fe[_0xaafd8f(0x15d)])!=null&&_0x39ff7b['some'](_0x233c22=>_0x108a0d>_0x233c22[_0xaafd8f(0x12e)]&&_0x108a0d<_0x233c22[_0xaafd8f(0x167)]||_0x267699>_0x233c22[_0xaafd8f(0x12e)]&&_0x267699<_0x233c22[_0xaafd8f(0x167)]||_0x108a0d<=_0x233c22[_0xaafd8f(0x12e)]&&_0x267699>=_0x233c22[_0xaafd8f(0x167)]));}function ae(_0x5dcfe0,_0x7f89d7,_0x24cd9b){const _0x93c865=_0x1f4ff6;var _0x41f0c7,_0x5b4535;let _0x516899=[...(_0x41f0c7=_0x5dcfe0[_0x93c865(0x166)])==null?[]:_0x41f0c7][_0x93c865(0x184)]((_0xdd4758,_0x36d98d)=>_0xdd4758['startIndex']-_0x36d98d[_0x93c865(0x12e)]),_0x39c7de=_0x516899[_0x93c865(0x1b2)]((_0x32a6f5,_0x3d5b4f)=>(_0x3d5b4f===0x0?0x0:_0x516899[_0x3d5b4f-0x1][_0x93c865(0x12e)]+0x1)<=_0x7f89d7&&_0x7f89d7<=_0x32a6f5[_0x93c865(0x12e)]),_0x5943ca=(_0x5b4535=_0x516899[_0x93c865(0x1b2)](_0x5d30d5=>_0x5d30d5[_0x93c865(0x12e)]>=_0x24cd9b-0x1))==null?_0x516899[_0x516899['length']-0x1]:_0x5b4535;return{'startOffset':_0x39c7de?E(_0x516899,_0x39c7de):_0x7f89d7,'endOffset':_0x5943ca?_0x5943ca['startIndex']+0x1:_0x24cd9b};}function E(_0x1d1ad9,_0x295dbe){const _0x8193a7=_0x1f4ff6;let _0x329630=_0x1d1ad9['indexOf'](_0x295dbe);return _0x329630>0x0?_0x1d1ad9[_0x329630-0x1][_0x8193a7(0x12e)]+0x1:0x0;}function oe(_0x2c53df,_0x4bad20,_0xb1bc11){const _0x2f2380=_0x1f4ff6;var _0x44d335;return Math[_0x2f2380(0x18e)](E((_0x44d335=_0x2c53df[_0x2f2380(0x166)])==null?[]:_0x44d335,_0xb1bc11),_0x4bad20[_0x2f2380(0x12e)]+0x1);}function D(_0x4438fb,_0xa7a2d6){const _0x4e358c=_0x1f4ff6;return _0x4438fb[_0x4e358c(0x158)][_0xa7a2d6['endIndex']]===e['DataStreamTreeTokenType'][_0x4e358c(0x149)]?_0xa7a2d6[_0x4e358c(0x167)]:_0x4438fb[_0x4e358c(0x158)][_0xa7a2d6[_0x4e358c(0x167)]+0x1]===e['DataStreamTreeTokenType']['BLOCK_END']?_0xa7a2d6[_0x4e358c(0x167)]+0x1:_0xa7a2d6[_0x4e358c(0x167)];}function se(_0x1f7db9,_0x2e7d19,_0x3ead73,_0x4c1323){const _0x57bebb=_0x1f4ff6;var _0x5e2b56,_0x29e319;let _0x1c38d6=D(_0x1f7db9,_0x2e7d19),_0x2d55bf=((_0x5e2b56=_0x1f7db9['paragraphs'])==null?[]:_0x5e2b56)[_0x57bebb(0x1b2)](_0x57f314=>_0x57f314[_0x57bebb(0x12e)]===_0x1c38d6+0x1);if(!_0x2d55bf||_0x4c1323!=null&&_0x2d55bf['startIndex']!==_0x4c1323||_0x3ead73<_0x1c38d6||_0x3ead73>_0x2d55bf[_0x57bebb(0x12e)]+0x1||_0x1f7db9[_0x57bebb(0x158)][_0x2d55bf['startIndex']]!==e[_0x57bebb(0x190)][_0x57bebb(0x137)])return null;let _0x55edcb=E((_0x29e319=_0x1f7db9[_0x57bebb(0x166)])==null?[]:_0x29e319,_0x2d55bf),_0x6a79d4=_0x1f7db9[_0x57bebb(0x158)][_0x57bebb(0x17f)](_0x55edcb,_0x2d55bf[_0x57bebb(0x12e)]);return Array[_0x57bebb(0x1a1)](_0x6a79d4)[_0x57bebb(0x150)](_0x2f1954=>_0x2f1954===e[_0x57bebb(0x190)][_0x57bebb(0x149)])?{'paragraph':_0x2d55bf,'endTokenOffset':_0x1c38d6}:null;}function O(_0x185c8d,_0x57cffd){const _0x10c35b=_0x1f4ff6;var _0x2522b0;let _0x48f7f0=D(_0x185c8d,_0x57cffd),_0x2b2a1f=_0x185c8d['dataStream'][_0x48f7f0+0x1];_0x2b2a1f!==e[_0x10c35b(0x190)][_0x10c35b(0x19c)]&&_0x2b2a1f!==void 0x0||k(_0x185c8d,_0x48f7f0+0x1,e['DataStreamTreeTokenType'][_0x10c35b(0x137)],{'paragraphs':[{'startIndex':0x0,'paragraphId':(0x0,e[_0x10c35b(0x116)])(new Set((_0x2522b0=_0x185c8d[_0x10c35b(0x166)])==null?void 0x0:_0x2522b0[_0x10c35b(0x12d)](_0x32548e=>_0x32548e['paragraphId'])))}]});}function k(_0x2085e3,_0x38ff68,_0x5f3d25,_0x59eadc={}){const _0xe2b529=_0x1f4ff6;var _0x30c030,_0x5809d7;if(_0x5f3d25){if(_0x2085e3[_0xe2b529(0x158)]=''+_0x2085e3[_0xe2b529(0x158)]['slice'](0x0,_0x38ff68)+_0x5f3d25+_0x2085e3[_0xe2b529(0x158)]['slice'](_0x38ff68),le(_0x2085e3,_0x38ff68,_0x5f3d25['length']),(_0x30c030=_0x59eadc[_0xe2b529(0x166)])!=null&&_0x30c030['length']){var _0x1828be;_0x2085e3[_0xe2b529(0x166)]=[...(_0x1828be=_0x2085e3[_0xe2b529(0x166)])==null?[]:_0x1828be,..._0x59eadc[_0xe2b529(0x166)]['map'](_0x41ba79=>({..._0x41ba79,'startIndex':_0x41ba79[_0xe2b529(0x12e)]+_0x38ff68}))]['sort']((_0x1c1ed2,_0x1cd382)=>_0x1c1ed2['startIndex']-_0x1cd382[_0xe2b529(0x12e)]);}if((_0x5809d7=_0x59eadc[_0xe2b529(0x141)])!=null&&_0x5809d7['length']){var _0x2068cb;_0x2085e3[_0xe2b529(0x141)]=[...(_0x2068cb=_0x2085e3[_0xe2b529(0x141)])==null?[]:_0x2068cb,..._0x59eadc[_0xe2b529(0x141)][_0xe2b529(0x12d)](_0x1add73=>({..._0x1add73,'startIndex':_0x1add73['startIndex']+_0x38ff68,'endIndex':_0x1add73[_0xe2b529(0x167)]+_0x38ff68}))][_0xe2b529(0x184)]((_0xc48d5b,_0x2bbf46)=>_0xc48d5b[_0xe2b529(0x12e)]-_0x2bbf46[_0xe2b529(0x12e)]);}}}function ce(_0x1b0607,_0x147465,_0x5a6231){const _0xadcc75=_0x1f4ff6;let _0x24810c=_0x5a6231-_0x147465;_0x1b0607[_0xadcc75(0x158)]=''+_0x1b0607[_0xadcc75(0x158)][_0xadcc75(0x17f)](0x0,_0x147465)+_0x1b0607['dataStream'][_0xadcc75(0x17f)](_0x5a6231),ue(_0x1b0607,_0x147465,_0x24810c);}function le(_0x7f3b3c,_0x56d475,_0x3e46d4){const _0x25c040=_0x1f4ff6;_0x7f3b3c[_0x25c040(0x166)]=A(_0x7f3b3c[_0x25c040(0x166)],_0x56d475,_0x3e46d4),_0x7f3b3c[_0x25c040(0x119)]=A(_0x7f3b3c[_0x25c040(0x119)],_0x56d475,_0x3e46d4),_0x7f3b3c[_0x25c040(0x161)]=A(_0x7f3b3c['customBlocks'],_0x56d475,_0x3e46d4),_0x7f3b3c[_0x25c040(0x151)]=de(_0x7f3b3c[_0x25c040(0x151)],_0x56d475,_0x3e46d4),_0x7f3b3c[_0x25c040(0x15d)]=M(_0x7f3b3c[_0x25c040(0x15d)],_0x56d475,_0x3e46d4),_0x7f3b3c[_0x25c040(0x111)]=M(_0x7f3b3c[_0x25c040(0x111)],_0x56d475,_0x3e46d4),_0x7f3b3c[_0x25c040(0x12a)]=M(_0x7f3b3c[_0x25c040(0x12a)],_0x56d475,_0x3e46d4),_0x7f3b3c[_0x25c040(0x141)]=M(_0x7f3b3c[_0x25c040(0x141)],_0x56d475,_0x3e46d4);}function ue(_0x375f4c,_0x509325,_0x585cc1){const _0x298b92=_0x1f4ff6;var _0x59d38a,_0x18bdd7;_0x375f4c[_0x298b92(0x166)]=j(_0x375f4c['paragraphs'],_0x509325,_0x585cc1),_0x375f4c[_0x298b92(0x119)]=j(_0x375f4c[_0x298b92(0x119)],_0x509325,_0x585cc1),_0x375f4c[_0x298b92(0x161)]=j(_0x375f4c[_0x298b92(0x161)],_0x509325,_0x585cc1),_0x375f4c['textRuns']=(_0x59d38a=N((_0x18bdd7=_0x375f4c[_0x298b92(0x151)])==null?void 0x0:_0x18bdd7[_0x298b92(0x12d)](_0xe9342d=>({..._0xe9342d,'startIndex':_0xe9342d['st'],'endIndex':_0xe9342d['ed']})),_0x509325,_0x585cc1))==null?void 0x0:_0x59d38a[_0x298b92(0x12d)](_0x1cffe4=>{let {startIndex:_0x4808f2,endIndex:_0x503797,..._0x10499d}=_0x1cffe4;return{..._0x10499d,'st':_0x4808f2,'ed':_0x503797};}),_0x375f4c['tables']=N(_0x375f4c[_0x298b92(0x15d)],_0x509325,_0x585cc1),_0x375f4c['customRanges']=N(_0x375f4c[_0x298b92(0x111)],_0x509325,_0x585cc1),_0x375f4c[_0x298b92(0x12a)]=N(_0x375f4c[_0x298b92(0x12a)],_0x509325,_0x585cc1),_0x375f4c['blockRanges']=N(_0x375f4c['blockRanges'],_0x509325,_0x585cc1);}function A(_0x412d2b,_0xe26762,_0x43f985){const _0x376ed6=_0x1f4ff6;return _0x412d2b==null?void 0x0:_0x412d2b[_0x376ed6(0x12d)](_0x2cdc3d=>_0x2cdc3d[_0x376ed6(0x12e)]>=_0xe26762?{..._0x2cdc3d,'startIndex':_0x2cdc3d[_0x376ed6(0x12e)]+_0x43f985}:_0x2cdc3d);}function j(_0xfc312d,_0x2cf046,_0x27a3b8){const _0x530448=_0x1f4ff6;let _0x282227=_0x2cf046+_0x27a3b8;return _0xfc312d==null?void 0x0:_0xfc312d['map'](_0x1f5d6b=>_0x1f5d6b[_0x530448(0x12e)]>=_0x2cf046&&_0x1f5d6b[_0x530448(0x12e)]<_0x282227?null:_0x1f5d6b[_0x530448(0x12e)]>=_0x282227?{..._0x1f5d6b,'startIndex':_0x1f5d6b['startIndex']-_0x27a3b8}:_0x1f5d6b)[_0x530448(0x1af)](_0x1c92cc=>_0x1c92cc!=null);}function de(_0x11ffff,_0x1a62e4,_0xc5710d){const _0x1a4fba=_0x1f4ff6;return _0x11ffff==null?void 0x0:_0x11ffff[_0x1a4fba(0x12d)](_0x5176d5=>_0x5176d5['st']>=_0x1a62e4?{..._0x5176d5,'st':_0x5176d5['st']+_0xc5710d,'ed':_0x5176d5['ed']+_0xc5710d}:_0x5176d5['ed']>_0x1a62e4?{..._0x5176d5,'ed':_0x5176d5['ed']+_0xc5710d}:_0x5176d5);}function M(_0x3b44c2,_0x516155,_0x14020b){const _0x5a9965=_0x1f4ff6;return _0x3b44c2==null?void 0x0:_0x3b44c2[_0x5a9965(0x12d)](_0x3d5b5e=>_0x3d5b5e[_0x5a9965(0x12e)]>=_0x516155?{..._0x3d5b5e,'startIndex':_0x3d5b5e[_0x5a9965(0x12e)]+_0x14020b,'endIndex':_0x3d5b5e[_0x5a9965(0x167)]+_0x14020b}:_0x3d5b5e[_0x5a9965(0x167)]>=_0x516155?{..._0x3d5b5e,'endIndex':_0x3d5b5e[_0x5a9965(0x167)]+_0x14020b}:_0x3d5b5e);}function N(_0x5a71a9,_0x2d2467,_0x41513b){const _0x147461=_0x1f4ff6;let _0x15e05f=_0x2d2467+_0x41513b;return _0x5a71a9==null?void 0x0:_0x5a71a9[_0x147461(0x12d)](_0x4900d4=>_0x4900d4[_0x147461(0x12e)]>=_0x2d2467&&_0x4900d4[_0x147461(0x167)]<_0x15e05f?null:_0x4900d4['startIndex']>=_0x15e05f?{..._0x4900d4,'startIndex':_0x4900d4['startIndex']-_0x41513b,'endIndex':_0x4900d4[_0x147461(0x167)]-_0x41513b}:_0x4900d4['endIndex']>=_0x2d2467?{..._0x4900d4,'startIndex':_0x4900d4[_0x147461(0x12e)]<_0x2d2467?_0x4900d4['startIndex']:_0x2d2467,'endIndex':Math[_0x147461(0x18e)](_0x2d2467,_0x4900d4[_0x147461(0x167)]-_0x41513b)}:_0x4900d4)[_0x147461(0x1af)](_0x36374e=>_0x36374e!=null);}function P(_0x16d319,_0x2098e2,_0x1fc486,_0xf0e340){const _0x4cda1=_0x1f4ff6;_0x16d319==null||_0x16d319[_0x4cda1(0x10e)](_0x1fe81e=>{const _0x5748a8=_0x4cda1;_0x1fe81e[_0x5748a8(0x12e)]>=_0x2098e2&&_0x1fe81e[_0x5748a8(0x12e)]<_0x1fc486&&(_0x1fe81e[_0x5748a8(0x12e)]+=_0xf0e340);});}function fe(_0x523721,_0x3cfae2,_0x258f9b,_0xcf37f){const _0x198ee0=_0x1f4ff6;_0x523721==null||_0x523721[_0x198ee0(0x10e)](_0xaced11=>{_0xaced11['st']>=_0x3cfae2&&_0xaced11['st']<_0x258f9b?(_0xaced11['st']+=_0xcf37f,_0xaced11['ed']+=_0xcf37f):_0xaced11['ed']>_0x3cfae2&&_0xaced11['ed']<_0x258f9b&&(_0xaced11['ed']+=_0xcf37f);});}function F(_0x5de42e,_0xadb495,_0x2fba44,_0x3bb0a6){const _0x2a4a9e=_0x1f4ff6;_0x5de42e==null||_0x5de42e[_0x2a4a9e(0x10e)](_0x5f077c=>{const _0x3884dd=_0x2a4a9e;_0x5f077c[_0x3884dd(0x12e)]>=_0xadb495&&_0x5f077c['startIndex']<_0x2fba44?(_0x5f077c[_0x3884dd(0x12e)]+=_0x3bb0a6,_0x5f077c['endIndex']+=_0x3bb0a6):_0x5f077c['endIndex']>_0xadb495&&_0x5f077c[_0x3884dd(0x167)]<_0x2fba44&&(_0x5f077c['endIndex']+=_0x3bb0a6);});}function I(_0x51dbae){'@babel/helpers - typeof';const _0x2eb76f=_0x1f4ff6;return I=typeof Symbol==_0x2eb76f(0x11a)&&typeof Symbol[_0x2eb76f(0x10c)]==_0x2eb76f(0x157)?function(_0x33cf55){return typeof _0x33cf55;}:function(_0x3fb884){const _0x796bc2=_0x2eb76f;return _0x3fb884&&typeof Symbol==_0x796bc2(0x11a)&&_0x3fb884[_0x796bc2(0x15a)]===Symbol&&_0x3fb884!==Symbol[_0x796bc2(0x18c)]?_0x796bc2(0x157):typeof _0x3fb884;},I(_0x51dbae);}function pe(_0x5c4e4b,_0xfbec46){const _0x23bfd1=_0x1f4ff6;if(I(_0x5c4e4b)!=_0x23bfd1(0x1b1)||!_0x5c4e4b)return _0x5c4e4b;var _0x2ce2f4=_0x5c4e4b[Symbol[_0x23bfd1(0x14a)]];if(_0x2ce2f4!==void 0x0){var _0x46f394=_0x2ce2f4[_0x23bfd1(0x156)](_0x5c4e4b,_0xfbec46||'default');if(I(_0x46f394)!=_0x23bfd1(0x1b1))return _0x46f394;throw TypeError(_0x23bfd1(0x177));}return(_0xfbec46===_0x23bfd1(0x162)?String:Number)(_0x5c4e4b);}function me(_0x215a36){const _0x225e06=_0x1f4ff6;var _0x46fbae=pe(_0x215a36,_0x225e06(0x162));return I(_0x46fbae)==_0x225e06(0x157)?_0x46fbae:_0x46fbae+'';}function L(_0xee7f14,_0x69a5bb,_0x2fccd1){const _0x1bf58c=_0x1f4ff6;return(_0x69a5bb=me(_0x69a5bb))in _0xee7f14?Object[_0x1bf58c(0x13e)](_0xee7f14,_0x69a5bb,{'value':_0x2fccd1,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0xee7f14[_0x69a5bb]=_0x2fccd1,_0xee7f14;}var R=class extends e['Disposable']{constructor(..._0x269221){const _0x19575a=_0x1f4ff6;super(..._0x269221),L(this,_0x19575a(0x191),new Map()),L(this,_0x19575a(0x197),new n[(_0x19575a(0x138))]()),L(this,_0x19575a(0x1a7),this['_change$'][_0x19575a(0x18b)]());}[_0x1f4ff6(0x1ae)](_0x1dd327,_0x185cce){const _0x221e52=_0x1f4ff6;return o(this[_0x221e52(0x191)][_0x221e52(0x16a)](_0x1dd327))['codes'][_0x185cce];}[_0x1f4ff6(0x199)](_0x5923c1,_0x3b539a,_0x447373){const _0x417724=_0x1f4ff6;this[_0x417724(0x18f)](_0x5923c1,_0x3b539a,s(this[_0x417724(0x191)][_0x417724(0x16a)](_0x5923c1),_0x3b539a,_0x447373));}['removeCode'](_0x5f0637,_0x796d97){const _0x2d1918=_0x1f4ff6;this[_0x2d1918(0x18f)](_0x5f0637,_0x796d97,c(this[_0x2d1918(0x191)][_0x2d1918(0x16a)](_0x5f0637),_0x796d97));}[_0x1f4ff6(0x124)](_0x42f692){const _0x361422=_0x1f4ff6;return o(this[_0x361422(0x191)][_0x361422(0x16a)](_0x42f692));}[_0x1f4ff6(0x113)](_0x396bcd,_0x49f728){const _0x58ff11=_0x1f4ff6;this['_resources'][_0x58ff11(0x1aa)](_0x396bcd,o(_0x49f728)),this[_0x58ff11(0x197)][_0x58ff11(0x194)]({'unitId':_0x396bcd});}['removeUnit'](_0x28221c){const _0x6c5ab5=_0x1f4ff6;this['_resources'][_0x6c5ab5(0x127)](_0x28221c),this[_0x6c5ab5(0x197)]['next']({'unitId':_0x28221c});}[_0x1f4ff6(0x19a)](){const _0x3ff85e=_0x1f4ff6;super[_0x3ff85e(0x19a)](),this[_0x3ff85e(0x191)][_0x3ff85e(0x14c)](),this[_0x3ff85e(0x197)][_0x3ff85e(0x120)]();}[_0x1f4ff6(0x18f)](_0xe497e,_0x34e779,_0x16fa77){const _0x1f2ce3=_0x1f4ff6;this[_0x1f2ce3(0x191)]['set'](_0xe497e,_0x16fa77),this['_change$']['next']({'unitId':_0xe497e,'blockId':_0x34e779});}};const z={'id':_0x1f4ff6(0x13a),'type':e[_0x1f4ff6(0x129)][_0x1f4ff6(0x136)],'handler':_0x547e1e=>{const _0x41de4f=_0x1f4ff6;let _0x21d121=he(_0x547e1e);if(_0x21d121)return _0x547e1e[_0x41de4f(0x16a)](e[_0x41de4f(0x182)])[_0x41de4f(0x11d)](V['id'],{'startOffset':_0x21d121[_0x41de4f(0x1a6)],'endOffset':_0x21d121[_0x41de4f(0x1ab)],'unitId':_0x21d121[_0x41de4f(0x178)]});let _0x572ee4=ge(_0x547e1e);if(!_0x572ee4)return!0x1;let _0x1460f8=_0x572ee4[_0x41de4f(0x12e)]+0x1;return _0x547e1e['get'](e['ICommandService'])[_0x41de4f(0x11d)](V['id'],{'startOffset':_0x1460f8,'endOffset':_0x1460f8});}},B={'id':_0x1f4ff6(0x13c),'type':e[_0x1f4ff6(0x129)][_0x1f4ff6(0x136)],'handler':()=>!0x0},V={'id':_0x1f4ff6(0x180),'type':e[_0x1f4ff6(0x129)][_0x1f4ff6(0x136)],'handler':(_0x1ccfd0,_0x2ccc62)=>{const _0x2d99d6=_0x1f4ff6;var _0x2769b8,_0x587604,_0x200702;let _0x401c1e=G(_0x1ccfd0,_0x2ccc62==null?void 0x0:_0x2ccc62[_0x2d99d6(0x178)]);if(!_0x401c1e)return!0x1;let _0x266eb3=K(_0x1ccfd0),_0x5d2015=u({'blockId':(_0x2769b8=_0x2ccc62==null?void 0x0:_0x2ccc62[_0x2d99d6(0x16b)])==null?(0x0,e[_0x2d99d6(0x19e)])(0x6):_0x2769b8,'config':_0x2ccc62==null?void 0x0:_0x2ccc62['config'],'documentData':_0x401c1e[_0x2d99d6(0x17c)],'endOffset':(_0x587604=_0x2ccc62==null?void 0x0:_0x2ccc62[_0x2d99d6(0x1ab)])==null?_0x266eb3==null?void 0x0:_0x266eb3['endOffset']:_0x587604,'metadata':_0x401c1e[_0x2d99d6(0x140)][_0x2d99d6(0x124)](_0x401c1e[_0x2d99d6(0x178)]),'startOffset':(_0x200702=_0x2ccc62==null?void 0x0:_0x2ccc62[_0x2d99d6(0x1a6)])==null?_0x266eb3==null?void 0x0:_0x266eb3['startOffset']:_0x200702}),_0x1c9984=J(_0x401c1e[_0x2d99d6(0x164)],_0x401c1e[_0x2d99d6(0x178)],_0x401c1e[_0x2d99d6(0x17c)],_0x5d2015[_0x2d99d6(0x12c)],_0x5d2015['cursorOffset']);return _0x1c9984&&_0x5d2015[_0x2d99d6(0x174)]&&_0x401c1e[_0x2d99d6(0x140)][_0x2d99d6(0x113)](_0x401c1e[_0x2d99d6(0x178)],_0x5d2015['nextMetadata']),_0x1c9984;}},H={'id':_0x1f4ff6(0x109),'type':e[_0x1f4ff6(0x129)][_0x1f4ff6(0x136)],'handler':(_0x5130b5,_0x12642e)=>{const _0x1549e5=_0x1f4ff6;if(!_0x12642e)return!0x1;let _0x157de5=G(_0x5130b5,_0x12642e[_0x1549e5(0x178)]);if(!_0x157de5)return!0x1;let _0x29a82f=p({'blockId':_0x12642e['blockId'],'config':_0x12642e[_0x1549e5(0x155)],'documentData':_0x157de5[_0x1549e5(0x17c)],'metadata':_0x157de5[_0x1549e5(0x140)][_0x1549e5(0x124)](_0x157de5[_0x1549e5(0x178)])});return _0x29a82f[_0x1549e5(0x174)]&&_0x157de5[_0x1549e5(0x140)][_0x1549e5(0x113)](_0x157de5[_0x1549e5(0x178)],_0x29a82f[_0x1549e5(0x174)]),!0x0;}},U={'id':_0x1f4ff6(0x1b4),'type':e[_0x1f4ff6(0x129)]['COMMAND'],'handler':(_0x219f4b,_0x382885)=>{const _0x4fa763=_0x1f4ff6;var _0x1dc74b,_0x330846;let _0x491423=G(_0x219f4b,_0x382885==null?void 0x0:_0x382885[_0x4fa763(0x178)]);if(!_0x491423)return!0x1;let _0x1d0bf0=(_0x1dc74b=_0x382885==null?void 0x0:_0x382885[_0x4fa763(0x12b)])==null?(_0x330846=K(_0x219f4b))==null?void 0x0:_0x330846[_0x4fa763(0x1a6)]:_0x1dc74b;if(_0x1d0bf0==null)return!0x1;let _0x3ac61c=m({'cursorOffset':_0x1d0bf0,'documentData':_0x491423[_0x4fa763(0x17c)]});return _0x3ac61c?J(_0x491423[_0x4fa763(0x164)],_0x491423['unitId'],_0x491423[_0x4fa763(0x17c)],_0x3ac61c[_0x4fa763(0x12c)],_0x3ac61c[_0x4fa763(0x12b)]):!0x1;}},W={'id':'docs-code.command.cancel-empty-paragraph','type':e[_0x1f4ff6(0x129)][_0x1f4ff6(0x136)],'handler':(_0x28eec2,_0x4970ad)=>{const _0x1d7c31=_0x1f4ff6;var _0x3e6229,_0xeeac37;let _0x243f62=G(_0x28eec2,_0x4970ad==null?void 0x0:_0x4970ad[_0x1d7c31(0x178)]);if(!_0x243f62)return!0x1;let _0x214ca9=(_0x3e6229=_0x4970ad==null?void 0x0:_0x4970ad['cursorOffset'])==null?(_0xeeac37=K(_0x28eec2))==null?void 0x0:_0xeeac37[_0x1d7c31(0x1a6)]:_0x3e6229;if(_0x214ca9==null)return!0x1;let _0xc0ad2a=h({'cursorOffset':_0x214ca9,'documentData':_0x243f62[_0x1d7c31(0x17c)],'paragraphStartIndex':_0x4970ad==null?void 0x0:_0x4970ad['paragraphStartIndex']});return _0xc0ad2a?J(_0x243f62['commandService'],_0x243f62['unitId'],_0x243f62[_0x1d7c31(0x17c)],_0xc0ad2a[_0x1d7c31(0x12c)],_0xc0ad2a[_0x1d7c31(0x12b)]):!0x1;}};function G(_0x37b7cd,_0x92ec8a){const _0x8ab51c=_0x1f4ff6;let _0x2cb5cf=_0x37b7cd[_0x8ab51c(0x16a)](e[_0x8ab51c(0x134)]),_0x4b8981=_0x92ec8a?_0x2cb5cf['getUniverDocInstance'](_0x92ec8a):_0x2cb5cf[_0x8ab51c(0x115)](e[_0x8ab51c(0x163)][_0x8ab51c(0x1a9)]);return _0x4b8981?{'commandService':_0x37b7cd[_0x8ab51c(0x16a)](e[_0x8ab51c(0x182)]),'model':_0x37b7cd[_0x8ab51c(0x16a)](R),'previousDocumentData':_0x4b8981[_0x8ab51c(0x198)](),'unitId':_0x4b8981[_0x8ab51c(0x18d)]()}:null;}function K(_0x24a784){const _0x2ff8aa=_0x1f4ff6;var _0xc56bdd;return(_0xc56bdd=_0x24a784[_0x2ff8aa(0x16a)](t[_0x2ff8aa(0x12f)])['getTextRanges']())==null?void 0x0:_0xc56bdd[0x0];}function he(_0x5737c1){const _0x25b60e=_0x1f4ff6;var _0x3d82a3;let _0x42fefd=(_0x3d82a3=_0x5737c1[_0x25b60e(0x16a)](e['IUniverInstanceService'])['getCurrentUnitOfType'](e['UniverInstanceType'][_0x25b60e(0x1a9)]))==null?void 0x0:_0x3d82a3[_0x25b60e(0x18d)]();try{return _0x5737c1[_0x25b60e(0x16a)](t[_0x25b60e(0x188)])[_0x25b60e(0x19f)](_0x42fefd);}catch{return null;}}function ge(_0x31d7ed){const _0x2896b0=_0x1f4ff6;var _0x4efeba,_0x43c945,_0xf70176;let _0x13ed77=K(_0x31d7ed);if(!_0x13ed77)return null;let _0x4b957b=_0x31d7ed[_0x2896b0(0x16a)](e[_0x2896b0(0x134)])[_0x2896b0(0x115)](e[_0x2896b0(0x163)]['UNIVER_DOC']),_0x264c17=_0x4b957b==null?void 0x0:_0x4b957b[_0x2896b0(0x146)]();return _0x264c17?(_0x4efeba=e[_0x2896b0(0x173)]['range'][_0x2896b0(0x1b5)](_0x13ed77,(_0x43c945=_0x264c17[_0x2896b0(0x166)])==null?[]:_0x43c945,(_0xf70176=_0x264c17[_0x2896b0(0x158)])==null?'':_0xf70176)[0x0])==null?null:_0x4efeba:null;}function _0x44e9(_0x4e6a63,_0x1a662b){_0x4e6a63=_0x4e6a63-0x109;const _0x7e2243=_0x7e22();let _0x44e94f=_0x7e2243[_0x4e6a63];return _0x44e94f;}function _e(_0x239317,_0x18dc32){const _0x1ddc3c=_0x1f4ff6;var _0x3db9f2,_0x3a8731,_0x459a41,_0x248b00,_0x4f6f5e,_0x566911,_0x46abf9,_0x2ef59e,_0x162acd,_0x168b5a,_0x23f206,_0x1fb79c,_0x470154,_0xe01483,_0x295bd5,_0x482f44,_0x561b23,_0x20c233;let _0x378c17=e[_0x1ddc3c(0x152)][_0x1ddc3c(0x135)]();return[q(_0x378c17,[_0x1ddc3c(0x16f),'dataStream'],(_0x3db9f2=_0x239317['body'])==null?void 0x0:_0x3db9f2['dataStream'],(_0x3a8731=_0x18dc32['body'])==null?void 0x0:_0x3a8731['dataStream']),q(_0x378c17,[_0x1ddc3c(0x16f),_0x1ddc3c(0x166)],(_0x459a41=_0x239317['body'])==null?void 0x0:_0x459a41[_0x1ddc3c(0x166)],(_0x248b00=_0x18dc32['body'])==null?void 0x0:_0x248b00['paragraphs']),q(_0x378c17,['body',_0x1ddc3c(0x119)],(_0x4f6f5e=_0x239317[_0x1ddc3c(0x16f)])==null?void 0x0:_0x4f6f5e[_0x1ddc3c(0x119)],(_0x566911=_0x18dc32[_0x1ddc3c(0x16f)])==null?void 0x0:_0x566911['sectionBreaks']),q(_0x378c17,[_0x1ddc3c(0x16f),_0x1ddc3c(0x151)],(_0x46abf9=_0x239317[_0x1ddc3c(0x16f)])==null?void 0x0:_0x46abf9['textRuns'],(_0x2ef59e=_0x18dc32[_0x1ddc3c(0x16f)])==null?void 0x0:_0x2ef59e[_0x1ddc3c(0x151)]),q(_0x378c17,[_0x1ddc3c(0x16f),_0x1ddc3c(0x161)],(_0x162acd=_0x239317['body'])==null?void 0x0:_0x162acd[_0x1ddc3c(0x161)],(_0x168b5a=_0x18dc32['body'])==null?void 0x0:_0x168b5a['customBlocks']),q(_0x378c17,[_0x1ddc3c(0x16f),_0x1ddc3c(0x111)],(_0x23f206=_0x239317[_0x1ddc3c(0x16f)])==null?void 0x0:_0x23f206['customRanges'],(_0x1fb79c=_0x18dc32[_0x1ddc3c(0x16f)])==null?void 0x0:_0x1fb79c[_0x1ddc3c(0x111)]),q(_0x378c17,['body','customDecorations'],(_0x470154=_0x239317[_0x1ddc3c(0x16f)])==null?void 0x0:_0x470154[_0x1ddc3c(0x12a)],(_0xe01483=_0x18dc32[_0x1ddc3c(0x16f)])==null?void 0x0:_0xe01483[_0x1ddc3c(0x12a)]),q(_0x378c17,[_0x1ddc3c(0x16f),_0x1ddc3c(0x15d)],(_0x295bd5=_0x239317['body'])==null?void 0x0:_0x295bd5[_0x1ddc3c(0x15d)],(_0x482f44=_0x18dc32[_0x1ddc3c(0x16f)])==null?void 0x0:_0x482f44[_0x1ddc3c(0x15d)]),q(_0x378c17,['body',_0x1ddc3c(0x141)],(_0x561b23=_0x239317['body'])==null?void 0x0:_0x561b23[_0x1ddc3c(0x141)],(_0x20c233=_0x18dc32[_0x1ddc3c(0x16f)])==null?void 0x0:_0x20c233[_0x1ddc3c(0x141)])]['filter'](Boolean)['reduce']((_0x2ddb0a,_0x2b945f)=>e[_0x1ddc3c(0x152)][_0x1ddc3c(0x10d)](_0x2ddb0a,_0x2b945f),null);}function q(_0x338bda,_0x5b14ab,_0x446496,_0x591a6c){const _0x46bc58=_0x1f4ff6;return e[_0x46bc58(0x16d)][_0x46bc58(0x15c)](_0x446496,_0x591a6c)?null:_0x338bda[_0x46bc58(0x15b)](_0x5b14ab,_0x446496,_0x591a6c);}function J(_0x423e45,_0x39405b,_0x43e245,_0x5322ea,_0x4c70dd){const _0x1a93c6=_0x1f4ff6;let _0x416607=_e(_0x43e245,_0x5322ea);return _0x416607?!!_0x423e45['syncExecuteCommand'](t[_0x1a93c6(0x176)]['id'],{'unitId':_0x39405b,'actions':_0x416607,'textRanges':[{'startOffset':_0x4c70dd,'endOffset':_0x4c70dd,'collapsed':!0x0}],'isEditing':!0x1}):!0x1;}const Y='DOC_CODE_PLUGIN';var ve='@univerjs-pro/docs-code',ye=_0x1f4ff6(0x153);const X={};function Z(_0x27ea71,_0x3089c5){return function(_0x408a20,_0x1c96e5){_0x3089c5(_0x408a20,_0x1c96e5,_0x27ea71);};}function be(_0x552f2f,_0x5d7a48,_0x1f6cd9,_0x5e3be9){const _0xb6b500=_0x1f4ff6;var _0x2596fd=arguments[_0xb6b500(0x1b3)],_0x2473d1=_0x2596fd<0x3?_0x5d7a48:_0x5e3be9===null?_0x5e3be9=Object[_0xb6b500(0x179)](_0x5d7a48,_0x1f6cd9):_0x5e3be9,_0x44615e;if(typeof Reflect=='object'&&typeof Reflect[_0xb6b500(0x186)]==_0xb6b500(0x11a))_0x2473d1=Reflect[_0xb6b500(0x186)](_0x552f2f,_0x5d7a48,_0x1f6cd9,_0x5e3be9);else{for(var _0x3d5c2b=_0x552f2f[_0xb6b500(0x1b3)]-0x1;_0x3d5c2b>=0x0;_0x3d5c2b--)(_0x44615e=_0x552f2f[_0x3d5c2b])&&(_0x2473d1=(_0x2596fd<0x3?_0x44615e(_0x2473d1):_0x2596fd>0x3?_0x44615e(_0x5d7a48,_0x1f6cd9,_0x2473d1):_0x44615e(_0x5d7a48,_0x1f6cd9))||_0x2473d1);}return _0x2596fd>0x3&&_0x2473d1&&Object['defineProperty'](_0x5d7a48,_0x1f6cd9,_0x2473d1),_0x2473d1;}let Q=class extends e[_0x1f4ff6(0x123)]{constructor(_0x2d7077,_0x5c065d){const _0x3ac8b9=_0x1f4ff6;super(),this[_0x3ac8b9(0x142)]=_0x2d7077,this[_0x3ac8b9(0x132)]=_0x5c065d,this[_0x3ac8b9(0x189)]();}[_0x1f4ff6(0x189)](){const _0x2a4f84=_0x1f4ff6;this['disposeWithMe'](this[_0x2a4f84(0x142)][_0x2a4f84(0x17e)]({'pluginName':Y,'businesses':[e[_0x2a4f84(0x163)][_0x2a4f84(0x1a9)]],'toJson':_0x28e97e=>JSON['stringify'](this[_0x2a4f84(0x132)][_0x2a4f84(0x124)](_0x28e97e)),'parseJson':_0x1bb964=>o(JSON['parse'](_0x1bb964)),'onLoad':(_0x2fb3ca,_0x2e3cb9)=>this[_0x2a4f84(0x132)][_0x2a4f84(0x113)](_0x2fb3ca,_0x2e3cb9),'onUnLoad':_0x58e978=>this['_docsCodeModel'][_0x2a4f84(0x1a0)](_0x58e978)}));}};Q=be([Z(0x0,e[_0x1f4ff6(0x11e)]),Z(0x1,(0x0,e[_0x1f4ff6(0x1b0)])(R))],Q);let $=class extends e['Plugin']{constructor(_0x9c0700=X,_0x1a3a57,_0x1222be,_0x39eddc){const _0x3a781c=_0x1f4ff6;super(),this[_0x3a781c(0x14b)]=_0x9c0700,this[_0x3a781c(0x128)]=_0x1a3a57,this[_0x3a781c(0x139)]=_0x1222be,this[_0x3a781c(0x183)]=_0x39eddc;let {..._0x31f629}=(0x0,e['merge'])({},X,this[_0x3a781c(0x14b)]);this[_0x3a781c(0x183)][_0x3a781c(0x19b)](_0x3a781c(0x168),_0x31f629);}[_0x1f4ff6(0x10a)](){const _0x51aaa7=_0x1f4ff6;this[_0x51aaa7(0x128)][_0x51aaa7(0x192)]([R]),this[_0x51aaa7(0x128)]['add']([Q]),this[_0x51aaa7(0x128)]['get'](R),this[_0x51aaa7(0x128)]['get'](Q),[V,z,H,U,W,B][_0x51aaa7(0x10e)](_0x39d023=>this[_0x51aaa7(0x17a)](this[_0x51aaa7(0x139)][_0x51aaa7(0x11c)](_0x39d023)));}};L($,_0x1f4ff6(0x1a5),Y),L($,_0x1f4ff6(0x10f),ve),L($,_0x1f4ff6(0x110),ye),L($,_0x1f4ff6(0x170),e[_0x1f4ff6(0x163)][_0x1f4ff6(0x1a9)]),$=be([(0x0,e[_0x1f4ff6(0x11b)])(r[_0x1f4ff6(0x1ad)],t[_0x1f4ff6(0x16e)]),Z(0x1,(0x0,e['Inject'])(e[_0x1f4ff6(0x159)])),Z(0x2,e[_0x1f4ff6(0x182)]),Z(0x3,e[_0x1f4ff6(0x13d)])],$),exports[_0x1f4ff6(0x14f)]=i,exports['DOCS_CODE_PLUGIN']=Y,exports['DocsCodeCancelEmptyParagraphCommand']=W,exports[_0x1f4ff6(0x196)]=B,exports[_0x1f4ff6(0x181)]=U,exports[_0x1f4ff6(0x133)]=z,exports[_0x1f4ff6(0x13f)]=V,exports['DocsCodeModel']=R,exports[_0x1f4ff6(0x175)]=H,Object[_0x1f4ff6(0x13e)](exports,_0x1f4ff6(0x15e),{'enumerable':!0x0,'get':function(){return $;}}),exports['buildCancelEmptyCodeParagraphActions']=h,exports[_0x1f4ff6(0x118)]=m,exports[_0x1f4ff6(0x15f)]=u,exports['buildUpdateCodeActions']=p,exports[_0x1f4ff6(0x19d)]=_,exports['isCodeBoundaryDelete']=v,exports[_0x1f4ff6(0x125)]=a;function _0x7e22(){const _0x256228=['sort','direction','decorate','DocumentBlockRangeType','DocContentInsertService','_initResource','textStyle','asObservable','prototype','getUnitId','max','_setResource','DataStreamTreeTokenType','_resources','add','spaceBelow','next','fromEntries','DocsCodeConsumeBoundaryDeleteCommand','_change$','getSnapshot','setCodeConfig','dispose','setConfig','SECTION_BREAK','findCodeRangeAtOffset','generateRandomId','consumeInsertRange','removeUnit','from','join','documentData','1899kshKIL','pluginName','startOffset','change$','min','UNIVER_DOC','set','endOffset','deepClone','UniverLicensePlugin','getCodeConfig','filter','Inject','object','find','length','docs-code.command.exit','getParagraphsInRange','docs-code.command.update','onStarting','1560wIYYSF','iterator','compose','forEach','packageName','version','customRanges','paragraphStyle','deserialize','6335RxetQT','getCurrentUnitOfType','createParagraphId','indentEnd','buildExitCodeActions','sectionBreaks','function','DependentOn','registerCommand','syncExecuteCommand','IResourceManagerService','endTokenOffset','complete','indentStart','some','Disposable','serialize','normalizeDocsCodeConfig','javascript','delete','_injector','CommandType','customDecorations','cursorOffset','nextDocumentData','map','startIndex','DocSelectionManagerService','215ZQnjmA','33972UaQWyN','_docsCodeModel','DocsCodeInsertBelowCommand','IUniverInstanceService','getInstance','COMMAND','PARAGRAPH','Subject','_commandService','docs-code.command.insert-below','paragraph','docs-code.command.consume-boundary-delete','IConfigService','defineProperty','DocsCodeInsertCommand','model','blockRanges','_resourceManagerService','Document\x20body\x20is\x20required','metadata','codes','getBody','2146560vZttIu','6910lUAKnO','BLOCK_END','toPrimitive','_config','clear','786360bAFQss','1304435wrxANb','DEFAULT_CODE_CONFIG','every','textRuns','JSONX','1.0.0-alpha.0','12YXWlCG','config','call','symbol','dataStream','Injector','constructor','replaceOp','diffValue','tables','UniverDocsCodePlugin','buildInsertCodeActions','CODE','customBlocks','string','UniverInstanceType','commandService','blockType','paragraphs','endIndex','docs-code.config','1714kgHbFq','get','blockId','endsWith','Tools','UniverDocsPlugin','body','type','137BjQUqa','Module','BuildTextUtils','nextMetadata','DocsCodeUpdateCommand','RichTextEditingMutation','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','unitId','getOwnPropertyDescriptor','disposeWithMe','left','previousDocumentData','BLOCK_START','registerPluginResource','slice','docs-code.command.insert','DocsCodeExitCommand','ICommandService','_configService'];_0x7e22=function(){return _0x256228;};return _0x7e22();}
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 _0x1377a2=_0x16e3;(function(_0xd3620e,_0x15d4c0){var _0x38674d=_0x16e3,_0x3c67dc=_0xd3620e();while(!![]){try{var _0x7df6d3=-parseInt(_0x38674d(0x203))/0x1*(-parseInt(_0x38674d(0x201))/0x2)+-parseInt(_0x38674d(0x1d5))/0x3*(-parseInt(_0x38674d(0x1c2))/0x4)+-parseInt(_0x38674d(0x1cb))/0x5*(-parseInt(_0x38674d(0x1c8))/0x6)+parseInt(_0x38674d(0x1e7))/0x7+-parseInt(_0x38674d(0x1ce))/0x8+-parseInt(_0x38674d(0x1ca))/0x9+parseInt(_0x38674d(0x200))/0xa*(-parseInt(_0x38674d(0x1fe))/0xb);if(_0x7df6d3===_0x15d4c0)break;else _0x3c67dc['push'](_0x3c67dc['shift']());}catch(_0x375018){_0x3c67dc['push'](_0x3c67dc['shift']());}}}(_0x3043,0x8d86b));import{DocsCodeCancelEmptyParagraphCommand as _0x4a3f19,DocsCodeExitCommand as _0x576da6,DocsCodeInsertCommand as _0x1699ab,DocsCodeModel as _0x1ade33,DocsCodeUpdateCommand as _0x2d2555,normalizeDocsCodeConfig as _0x16ea29}from'@univerjs-pro/docs-code';import{DataStreamTreeTokenType as _0x1d96d1,DocumentBlockRangeType as _0x7fd425,ICommandService as _0x19c939,Inject as _0x1e5ab3,Injector as _0x422279,generateRandomId as _0x28c01d}from'@univerjs/core';function _0x16e3(_0x2f792e,_0x3c09e6){_0x2f792e=_0x2f792e-0x1c2;var _0x304390=_0x3043();var _0x16e381=_0x304390[_0x2f792e];return _0x16e381;}function _0x3043(){var _0x4bfd4d=['2184141XbcYjI','toPrimitive','string','insertCode','default','blockRanges','_getDocumentData','body','BLOCK_END','_document','exitCode','_getBlockRange','map','find','_injector','slice','_getBlockRanges','blockType','3281215VbdAxX','join','getText','getCodes','save','CODE','blockId','cancelEmptyCodeParagraph','config','constructor','symbol','getId','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','getRange','call','getOwnPropertyDescriptor','length','defineProperty','startIndex','some','SECTION_BREAK','text','object','297dFxrpj','filter','137110FlYMgV','621326SUpKja','getConfig','1fJjHFF','extend','exit','updateConfig','getCodeConfig','syncExecuteCommand','decorate','4EMVNCU','get','_unitId','_blockId','replace','_createFDocumentCode','6ctrPou','getType','4102524zxCtiZ','128950rBnKaP','getCode','paragraph','1020168hAtnCO','function','findCodes','getCodeAt','endIndex','describe','from'];_0x3043=function(){return _0x4bfd4d;};return _0x3043();}import{FDocument as _0xda5b7d}from'@univerjs/docs/facade';function p(_0x302709){'@babel/helpers - typeof';var _0x40ef45=_0x16e3;return p=typeof Symbol==_0x40ef45(0x1cf)&&typeof Symbol['iterator']==_0x40ef45(0x1f1)?function(_0x507db4){return typeof _0x507db4;}:function(_0x25fb95){var _0x385a05=_0x40ef45;return _0x25fb95&&typeof Symbol==_0x385a05(0x1cf)&&_0x25fb95[_0x385a05(0x1f0)]===Symbol&&_0x25fb95!==Symbol['prototype']?'symbol':typeof _0x25fb95;},p(_0x302709);}function m(_0x50b178,_0x468825){var _0x2905ee=_0x16e3;if(p(_0x50b178)!=_0x2905ee(0x1fd)||!_0x50b178)return _0x50b178;var _0x4a618a=_0x50b178[Symbol[_0x2905ee(0x1d6)]];if(_0x4a618a!==void 0x0){var _0x337c1e=_0x4a618a[_0x2905ee(0x1f5)](_0x50b178,_0x468825||_0x2905ee(0x1d9));if(p(_0x337c1e)!=_0x2905ee(0x1fd))return _0x337c1e;throw TypeError(_0x2905ee(0x1f3));}return(_0x468825==='string'?String:Number)(_0x50b178);}function h(_0x325a55){var _0x4ba5fc=_0x16e3,_0x2b1475=m(_0x325a55,_0x4ba5fc(0x1d7));return p(_0x2b1475)==_0x4ba5fc(0x1f1)?_0x2b1475:_0x2b1475+'';}function g(_0x5bb7a8,_0x313c4b,_0x24425b){var _0x596e2e=_0x16e3;return(_0x313c4b=h(_0x313c4b))in _0x5bb7a8?Object[_0x596e2e(0x1f8)](_0x5bb7a8,_0x313c4b,{'value':_0x24425b,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x5bb7a8[_0x313c4b]=_0x24425b,_0x5bb7a8;}function _(_0x3aed7e,_0x73d234){return function(_0x4ce8b8,_0x179931){_0x73d234(_0x4ce8b8,_0x179931,_0x3aed7e);};}function v(_0x4e8d71,_0x3cbc2e,_0x2c2bd2,_0xcf4de3){var _0x115b7c=_0x16e3,_0x21664d=arguments[_0x115b7c(0x1f7)],_0x41c548=_0x21664d<0x3?_0x3cbc2e:_0xcf4de3===null?_0xcf4de3=Object[_0x115b7c(0x1f6)](_0x3cbc2e,_0x2c2bd2):_0xcf4de3,_0x26e3a0;if(typeof Reflect=='object'&&typeof Reflect[_0x115b7c(0x209)]==_0x115b7c(0x1cf))_0x41c548=Reflect[_0x115b7c(0x209)](_0x4e8d71,_0x3cbc2e,_0x2c2bd2,_0xcf4de3);else{for(var _0x1478f9=_0x4e8d71['length']-0x1;_0x1478f9>=0x0;_0x1478f9--)(_0x26e3a0=_0x4e8d71[_0x1478f9])&&(_0x41c548=(_0x21664d<0x3?_0x26e3a0(_0x41c548):_0x21664d>0x3?_0x26e3a0(_0x3cbc2e,_0x2c2bd2,_0x41c548):_0x26e3a0(_0x3cbc2e,_0x2c2bd2))||_0x41c548);}return _0x21664d>0x3&&_0x41c548&&Object[_0x115b7c(0x1f8)](_0x3cbc2e,_0x2c2bd2,_0x41c548),_0x41c548;}let y=class{constructor(_0x16e03e,_0x423d74,_0x4f0247){var _0x516163=_0x16e3;this[_0x516163(0x1de)]=_0x16e03e,this[_0x516163(0x1c5)]=_0x423d74,this[_0x516163(0x1e3)]=_0x4f0247,g(this,'_unitId',void 0x0),this[_0x516163(0x1c4)]=this[_0x516163(0x1de)]['getId']();}['getId'](){var _0x201083=_0x16e3;return this[_0x201083(0x1c5)];}[_0x1377a2(0x1f4)](){var _0x76c7c4=_0x1377a2;let _0x3c70aa=this[_0x76c7c4(0x1e0)]();return _0x3c70aa?{'blockId':_0x3c70aa[_0x76c7c4(0x1ed)],'endIndex':_0x3c70aa[_0x76c7c4(0x1d2)],'startIndex':_0x3c70aa[_0x76c7c4(0x1f9)]}:null;}[_0x1377a2(0x1e9)](){var _0x68366c=_0x1377a2,_0x231eed;let _0x4e4c1c=this[_0x68366c(0x1e0)](),_0x2940fb=(_0x231eed=this['_getDocumentData']()[_0x68366c(0x1dc)])==null?void 0x0:_0x231eed['dataStream'];return!_0x4e4c1c||!_0x2940fb?'':b(_0x2940fb[_0x68366c(0x1e4)](_0x4e4c1c[_0x68366c(0x1f9)]+0x1,_0x4e4c1c['endIndex']));}[_0x1377a2(0x1d3)](){var _0x241f53=_0x1377a2;let _0x4edeb4=this['getRange']();return _0x4edeb4?{..._0x4edeb4,'config':this[_0x241f53(0x202)](),'text':this[_0x241f53(0x1e9)](),'type':_0x7fd425[_0x241f53(0x1ec)]}:null;}[_0x1377a2(0x202)](){var _0x2192d5=_0x1377a2;return _0x16ea29(this['_injector'][_0x2192d5(0x1c3)](_0x1ade33)[_0x2192d5(0x207)](this[_0x2192d5(0x1c4)],this[_0x2192d5(0x1c5)]));}[_0x1377a2(0x206)](_0x2ff204){var _0x388709=_0x1377a2;return this[_0x388709(0x1e3)][_0x388709(0x1c3)](_0x19c939)[_0x388709(0x208)](_0x2d2555['id'],{'blockId':this[_0x388709(0x1c5)],'config':_0x2ff204[_0x388709(0x1ef)],'unitId':this['_unitId']});}[_0x1377a2(0x205)](_0x48d049){var _0x86d821=_0x1377a2;return this['_injector'][_0x86d821(0x1c3)](_0x19c939)[_0x86d821(0x208)](_0x576da6['id'],{'cursorOffset':_0x48d049,'unitId':this[_0x86d821(0x1c4)]});}['cancelEmptyParagraph'](_0x452853={}){var _0x2a439a=_0x1377a2;return this[_0x2a439a(0x1e3)][_0x2a439a(0x1c3)](_0x19c939)[_0x2a439a(0x208)](_0x4a3f19['id'],{..._0x452853,'unitId':this['_unitId']});}[_0x1377a2(0x1db)](){var _0x29ccfb=_0x1377a2;return this[_0x29ccfb(0x1de)]['save']();}[_0x1377a2(0x1e0)](){var _0x41ad60=_0x1377a2,_0x1f1c61;let _0x4cbe69=(_0x1f1c61=this[_0x41ad60(0x1db)]()[_0x41ad60(0x1dc)])==null||(_0x1f1c61=_0x1f1c61[_0x41ad60(0x1da)])==null?void 0x0:_0x1f1c61[_0x41ad60(0x1e2)](_0x196b02=>_0x196b02['blockId']===this[_0x41ad60(0x1c5)]&&_0x196b02[_0x41ad60(0x1e6)]===_0x7fd425[_0x41ad60(0x1ec)]);return _0x4cbe69==null?null:_0x4cbe69;}};y=v([_(0x2,_0x1e5ab3(_0x422279))],y);function b(_0x331aa5){var _0x2f8f2c=_0x1377a2;return Array[_0x2f8f2c(0x1d4)](_0x331aa5)[_0x2f8f2c(0x1e1)](_0x1d1d62=>_0x1d1d62===_0x1d96d1['PARAGRAPH']?'\x0a':_0x1d1d62)['filter'](_0x131396=>_0x131396!==_0x1d96d1['BLOCK_START']&&_0x131396!==_0x1d96d1[_0x2f8f2c(0x1dd)]&&_0x131396!==_0x1d96d1[_0x2f8f2c(0x1fb)])[_0x2f8f2c(0x1e8)]('')[_0x2f8f2c(0x1c6)](/\n$/,'');}var x=class extends _0xda5b7d{['getCodes'](){var _0x27ee66=_0x1377a2;return this[_0x27ee66(0x1e5)]()[_0x27ee66(0x1ff)](_0x31b11b=>_0x31b11b[_0x27ee66(0x1e6)]===_0x7fd425[_0x27ee66(0x1ec)])['map'](_0x28eec5=>this[_0x27ee66(0x1c7)](_0x28eec5[_0x27ee66(0x1ed)]));}[_0x1377a2(0x1cc)](_0x121f6a){var _0x252114=_0x1377a2;return this['_getBlockRanges']()[_0x252114(0x1fa)](_0xc30e2e=>_0xc30e2e[_0x252114(0x1ed)]===_0x121f6a&&_0xc30e2e[_0x252114(0x1e6)]===_0x7fd425[_0x252114(0x1ec)])?this[_0x252114(0x1c7)](_0x121f6a):null;}[_0x1377a2(0x1d1)](_0x35730a){var _0x1960da=_0x1377a2;let _0x417d5f=this[_0x1960da(0x1e5)]()[_0x1960da(0x1e2)](_0x516a1c=>_0x516a1c['blockType']===_0x7fd425[_0x1960da(0x1ec)]&&_0x516a1c[_0x1960da(0x1f9)]<=_0x35730a&&_0x35730a<=_0x516a1c[_0x1960da(0x1d2)]);return _0x417d5f?this['_createFDocumentCode'](_0x417d5f[_0x1960da(0x1ed)]):null;}['findCodeByText'](_0x502267){var _0x2da494;return(_0x2da494=this['findCodes'](_0x502267)[0x0])==null?null:_0x2da494;}[_0x1377a2(0x1d0)](_0x738335){var _0x172eb6=_0x1377a2;let _0x1b55ec=typeof _0x738335==_0x172eb6(0x1d7)?{'text':_0x738335}:_0x738335;return this[_0x172eb6(0x1ea)]()[_0x172eb6(0x1ff)](_0x24a8f2=>!(_0x1b55ec[_0x172eb6(0x1ed)]&&_0x24a8f2['getId']()!==_0x1b55ec['blockId']||_0x1b55ec[_0x172eb6(0x1fc)]&&!_0x24a8f2['getText']()['includes'](_0x1b55ec['text'])));}[_0x1377a2(0x1d8)](_0x35c6b8={},_0x333007={}){var _0x4e6229=_0x1377a2,_0x25ffa3;let _0x72adf1=this[_0x4e6229(0x1e3)]['get'](_0x19c939),_0xf89e76=S(_0x35c6b8)?{..._0x333007,...C(_0x35c6b8)}:_0x35c6b8,_0x2ae48a=(_0x25ffa3=_0xf89e76[_0x4e6229(0x1ed)])==null?_0x28c01d(0x6):_0x25ffa3;return _0x72adf1['syncExecuteCommand'](_0x1699ab['id'],{..._0xf89e76,'blockId':_0x2ae48a,'unitId':this[_0x4e6229(0x1f2)]()})?this[_0x4e6229(0x1c7)](_0x2ae48a):null;}[_0x1377a2(0x1df)](_0x2bb0de){var _0x54b4d4=_0x1377a2;return this[_0x54b4d4(0x1e3)]['get'](_0x19c939)['syncExecuteCommand'](_0x576da6['id'],{'cursorOffset':_0x2bb0de,'unitId':this[_0x54b4d4(0x1f2)]()});}[_0x1377a2(0x1ee)](_0xd993e1={}){var _0x3c124f=_0x1377a2;return this[_0x3c124f(0x1e3)]['get'](_0x19c939)['syncExecuteCommand'](_0x4a3f19['id'],{..._0xd993e1,'unitId':this[_0x3c124f(0x1f2)]()});}[_0x1377a2(0x1e5)](){var _0x3fceb6=_0x1377a2,_0x247d87,_0x25f16b;return(_0x247d87=(_0x25f16b=this[_0x3fceb6(0x1eb)]()[_0x3fceb6(0x1dc)])==null?void 0x0:_0x25f16b[_0x3fceb6(0x1da)])==null?[]:_0x247d87;}[_0x1377a2(0x1c7)](_0x3388db){var _0x5fe1a=_0x1377a2;return this[_0x5fe1a(0x1e3)]['createInstance'](y,this,_0x3388db);}};function S(_0x8dedce){var _0x4d93c2=_0x1377a2;return typeof _0x8dedce=='object'&&!!_0x8dedce&&typeof _0x8dedce['getKey']==_0x4d93c2(0x1cf)&&typeof _0x8dedce[_0x4d93c2(0x1f4)]==_0x4d93c2(0x1cf)&&typeof _0x8dedce[_0x4d93c2(0x1c9)]==_0x4d93c2(0x1cf)&&_0x8dedce['getType']()===_0x4d93c2(0x1cd);}function C(_0x423653){var _0x2817fe=_0x1377a2;return _0x423653[_0x2817fe(0x1f4)]();}_0xda5b7d[_0x1377a2(0x204)](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 _0x1bd327=_0x3851;(function(_0x2abd87,_0x3ecb6a){const _0xfdd857=_0x3851,_0x2bad8f=_0x2abd87();while(!![]){try{const _0x3699c0=-parseInt(_0xfdd857(0x1aa))/0x1*(-parseInt(_0xfdd857(0x202))/0x2)+parseInt(_0xfdd857(0x1d1))/0x3*(parseInt(_0xfdd857(0x184))/0x4)+parseInt(_0xfdd857(0x1b7))/0x5+-parseInt(_0xfdd857(0x18f))/0x6*(-parseInt(_0xfdd857(0x1f7))/0x7)+-parseInt(_0xfdd857(0x1b5))/0x8+-parseInt(_0xfdd857(0x195))/0x9*(parseInt(_0xfdd857(0x1ed))/0xa)+parseInt(_0xfdd857(0x183))/0xb;if(_0x3699c0===_0x3ecb6a)break;else _0x2bad8f['push'](_0x2bad8f['shift']());}catch(_0x4ae60a){_0x2bad8f['push'](_0x2bad8f['shift']());}}}(_0x27d7,0x63c31));import{BuildTextUtils as _0x1b614b,CommandType as _0xd6e375,DataStreamTreeTokenType as _0x217bb8,DependentOn as _0x5e8859,Disposable as _0x4a26dc,DocumentBlockRangeType as _0x6a5755,ICommandService as _0x32af23,IConfigService as _0x4adc10,IResourceManagerService as _0xca8f68,IUniverInstanceService as _0x33ba15,Inject as _0x30337f,Injector as _0x4af702,JSONX as _0x273043,Plugin as _0x394390,Tools as _0x4a3ab2,UniverInstanceType as _0x2864e1,createParagraphId as _0x48477c,generateRandomId as _0x414e01,merge as _0x4c5915}from'@univerjs/core';import{DocContentInsertService as _0xc64f97,DocSelectionManagerService as _0x35cf98,RichTextEditingMutation as _0x397e41,UniverDocsPlugin as _0x8ce557}from'@univerjs/docs';import{Subject as _0x39b06c}from'rxjs';import{UniverLicensePlugin as _0x5411ad}from'@univerjs-pro/license';const S={'language':_0x1bd327(0x1eb),'showLineNumbers':!0x1,'tabSize':0x4,'wrap':!0x0};function C(_0x31dc31){return{...S,..._0x31dc31};}function w(_0x3d7b04){const _0x2091d9=_0x1bd327;var _0x5c5da2;let _0x25f052=(_0x5c5da2=_0x3d7b04==null?void 0x0:_0x3d7b04['codes'])==null?{}:_0x5c5da2;return{'codes':Object[_0x2091d9(0x1a3)](Object[_0x2091d9(0x198)](_0x25f052)[_0x2091d9(0x1c8)](([_0x104c95,_0x23bf3c])=>[_0x104c95,C(_0x23bf3c)]))};}function T(_0x1c38df,_0xa492ab,_0x451d52){const _0x5b27e0=_0x1bd327;let _0x5c0500=w(_0x1c38df);return _0x5c0500[_0x5b27e0(0x1b6)][_0xa492ab]=C({..._0x5c0500[_0x5b27e0(0x1b6)][_0xa492ab],..._0x451d52}),_0x5c0500;}function re(_0x284a5a,_0x543d6a){let _0x54c0d6=w(_0x284a5a);return delete _0x54c0d6['codes'][_0x543d6a],_0x54c0d6;}function _0x27d7(){const _0x3967da=['docs-code.command.exit','length','object','endTokenOffset','BLOCK_END','startIndex','getCodeConfig','BLOCK_START','spaceBelow','_resourceManagerService','18TOHRBq','blockRanges','textRuns','filter','blockType','customDecorations','previousDocumentData','paragraphStyle','indentEnd','_injector','2428943nAUSAr','1187332uMxBUB','indentStart','toPrimitive','string','body','default','startOffset','parse','max','syncExecuteCommand','textStyle','11034QymvFI','getParagraphsInRange','_commandService','customBlocks','_initResource','docs-code.command.update','7497EeMbTR','getBody','find','entries','_resources','next','tables','getTextRanges','stringify','clear','deepClone','from','prototype','get','fromEntries','Document\x20body\x20is\x20required','some','paragraph','paragraphStartIndex','dispose','sectionBreaks','6569EBrDuG','function','forEach','endsWith','every','metadata','defineProperty','_setResource','DOC_CODE_PLUGIN','version','getUnitId','2890032iTqiVt','codes','1214830MxHpaB','docs-code.command.cancel-empty-paragraph','paragraphs','decorate','customRanges','iterator','getUniverDocInstance','monospace','pluginName','config','spaceAbove','SECTION_BREAK','call','_config','nextMetadata','add','direction','map','consumeInsertRange','registerPluginResource','right','commandService','packageName','cursorOffset','setConfig','docs-code.config','3fbHFxz','PARAGRAPH','unitId','range','_change$','removeUnit','getCurrentUnitOfType','model','docs-code.command.insert-below','COMMAND','CODE','compose','deserialize','_configService','constructor','getSnapshot','blockId','sort','UNIVER_DOC','paragraphId','slice','replaceOp','nextDocumentData','documentData','serialize','endOffset','javascript','min','6780jZpGQI','complete','dataStream','diffValue','endIndex','docs-code.command.insert','set','removeCode','_docsCodeModel','join','1960ntHLUl'];_0x27d7=function(){return _0x3967da;};return _0x27d7();}const ie=_0x1bd327(0x1be);function ae(_0x23f8fa){const _0x4f8099=_0x1bd327;var _0x53c1b3,_0x537c02,_0x48bc8e;let _0x403382=D(_0x23f8fa[_0x4f8099(0x1e8)]),_0x201e37=O(_0x403382),_0x50c400=se(_0x23f8fa[_0x4f8099(0x18a)],_0x23f8fa[_0x4f8099(0x1ea)]),_0x27ee38=_0x50c400?(_0x53c1b3=_0x201e37[_0x4f8099(0x203)])==null?void 0x0:_0x53c1b3['find'](_0x35a963=>_0x35a963[_0x4f8099(0x1fd)]===_0x50c400['startOffset']&&_0x35a963[_0x4f8099(0x1f1)]+0x1===_0x50c400[_0x4f8099(0x1ea)]):void 0x0,{startOffset:_0x4a13c3,endOffset:_0x24ca9a}=_0x27ee38?_0x50c400:ye(_0x201e37,_0x23f8fa['startOffset'],_0x23f8fa['endOffset']),_0x2c2028=Se(_0x201e37,_0x4a13c3,_0x24ca9a),_0x107bc9=(_0x537c02=_0x27ee38==null?void 0x0:_0x27ee38[_0x4f8099(0x1e1)])==null?_0x23f8fa['blockId']:_0x537c02,_0x55b0f3=T(_0x23f8fa['metadata'],_0x107bc9,{...S,..._0x23f8fa['config']});if(_0x27ee38)return _0x27ee38[_0x4f8099(0x206)]=_0x6a5755[_0x4f8099(0x1db)],oe(_0x201e37,_0x4a13c3,_0x24ca9a),he(_0x201e37,_0x4a13c3,_0x24ca9a,_0x2c2028),M(_0x201e37,_0x27ee38),{'nextDocumentData':_0x403382,'nextMetadata':_0x55b0f3,'cursorOffset':_0x4a13c3+0x1};if(_0x4a13c3===_0x24ca9a){var _0x4b604b,_0xe82787;let _0x19d496=''+_0x217bb8[_0x4f8099(0x1ff)]+_0x217bb8['PARAGRAPH']+_0x217bb8['BLOCK_END'];N(_0x201e37,_0x4a13c3,_0x19d496,{'paragraphs':[{'startIndex':0x1,'paragraphId':_0x48477c(new Set((_0x4b604b=_0x201e37['paragraphs'])==null?void 0x0:_0x4b604b[_0x4f8099(0x1c8)](_0x2e1183=>_0x2e1183[_0x4f8099(0x1e4)]))),'paragraphStyle':E(!0x0,!0x0,_0x2c2028)}],'blockRanges':[{'blockId':_0x107bc9,'blockType':_0x6a5755[_0x4f8099(0x1db)],'startIndex':0x0,'endIndex':_0x19d496['length']-0x1}]});let _0x285e87=(_0xe82787=_0x201e37['blockRanges'])==null?void 0x0:_0xe82787[_0x4f8099(0x197)](_0xa943c5=>_0xa943c5[_0x4f8099(0x1e1)]===_0x107bc9);return _0x285e87&&M(_0x201e37,_0x285e87),{'nextDocumentData':_0x403382,'nextMetadata':_0x55b0f3,'cursorOffset':_0x4a13c3+0x1};}N(_0x201e37,_0x24ca9a,_0x217bb8[_0x4f8099(0x1fc)]),N(_0x201e37,_0x4a13c3,_0x217bb8[_0x4f8099(0x1ff)]),he(_0x201e37,_0x4a13c3,_0x24ca9a+0x1,_0x2c2028);let _0x2aa7c7={'blockId':_0x107bc9,'blockType':_0x6a5755[_0x4f8099(0x1db)],'startIndex':_0x4a13c3,'endIndex':_0x24ca9a+0x1};return _0x201e37['blockRanges']=[...(_0x48bc8e=_0x201e37[_0x4f8099(0x203)])==null?[]:_0x48bc8e,_0x2aa7c7]['sort']((_0x424526,_0x127dfc)=>_0x424526['startIndex']-_0x127dfc[_0x4f8099(0x1fd)]),M(_0x201e37,_0x2aa7c7),{'nextDocumentData':_0x403382,'nextMetadata':_0x55b0f3,'cursorOffset':_0x4a13c3+0x1};}function oe(_0x2a7337,_0x3d91fd,_0x349e56){const _0x1b824b=_0x1bd327;var _0x56e92e;((_0x56e92e=_0x2a7337[_0x1b824b(0x1b9)])==null?[]:_0x56e92e)[_0x1b824b(0x205)](_0x24ce1f=>_0x24ce1f[_0x1b824b(0x1fd)]>_0x3d91fd&&_0x24ce1f[_0x1b824b(0x1fd)]<_0x349e56)['forEach'](_0x29adbc=>{const _0x419aed=_0x1b824b;var _0x317cde;let _0x48b2fe={...(_0x317cde=_0x29adbc[_0x419aed(0x180)])==null?{}:_0x317cde};delete _0x48b2fe[_0x419aed(0x1c1)],delete _0x48b2fe[_0x419aed(0x200)],_0x29adbc['paragraphStyle']=_0x48b2fe;});}function se(_0x338db2,_0x61a3ec){const _0x4717bc=_0x1bd327;return _0x338db2==null||_0x61a3ec==null||_0x338db2===_0x61a3ec?null:{'startOffset':Math[_0x4717bc(0x1ec)](_0x338db2,_0x61a3ec),'endOffset':Math[_0x4717bc(0x18c)](_0x338db2,_0x61a3ec)};}function ce(_0xb755f3){const _0x645c8b=_0x1bd327;return{'nextDocumentData':D(_0xb755f3['documentData']),'nextMetadata':T(_0xb755f3[_0x645c8b(0x1af)],_0xb755f3[_0x645c8b(0x1e1)],_0xb755f3['config']),'cursorOffset':0x0};}function le(_0x455e25){const _0x22f05a=_0x1bd327;var _0x4d1670,_0x2c605d;let _0x426749=D(_0x455e25['documentData']),_0x4ab092=O(_0x426749),_0x43ec65=me(_0x4ab092,_0x455e25[_0x22f05a(0x1ce)]);if(!_0x43ec65)return null;let _0x3d2a3b=_e(_0x4ab092,_0x43ec65),_0x99fdf9=_0x3d2a3b[_0x3d2a3b[_0x22f05a(0x1f9)]-0x1];if(!_0x99fdf9||!ve(_0x4ab092,_0x43ec65,_0x99fdf9)||_0x455e25[_0x22f05a(0x1ce)]<_0x99fdf9[_0x22f05a(0x1fd)])return null;let _0x1ce0c8=A(_0x4ab092,_0x43ec65,_0x99fdf9);if(_0x1ce0c8>=_0x43ec65[_0x22f05a(0x1f1)])return null;_0x4ab092[_0x22f05a(0x1ef)]=[_0x4ab092[_0x22f05a(0x1ef)]['slice'](0x0,_0x1ce0c8),_0x217bb8['BLOCK_END'],_0x4ab092['dataStream'][_0x22f05a(0x1e5)](_0x1ce0c8,_0x43ec65[_0x22f05a(0x1f1)]),_0x4ab092[_0x22f05a(0x1ef)]['slice'](_0x43ec65[_0x22f05a(0x1f1)]+0x1)][_0x22f05a(0x1f6)](''),R(_0x4ab092[_0x22f05a(0x1b9)],_0x1ce0c8,_0x43ec65[_0x22f05a(0x1f1)],0x1),R(_0x4ab092['sectionBreaks'],_0x1ce0c8,_0x43ec65[_0x22f05a(0x1f1)],0x1),R(_0x4ab092[_0x22f05a(0x192)],_0x1ce0c8,_0x43ec65['endIndex'],0x1),ke(_0x4ab092['textRuns'],_0x1ce0c8,_0x43ec65[_0x22f05a(0x1f1)],0x1),z(_0x4ab092[_0x22f05a(0x19b)],_0x1ce0c8,_0x43ec65[_0x22f05a(0x1f1)],0x1),z(_0x4ab092[_0x22f05a(0x1bb)],_0x1ce0c8,_0x43ec65[_0x22f05a(0x1f1)],0x1),z(_0x4ab092[_0x22f05a(0x207)],_0x1ce0c8,_0x43ec65[_0x22f05a(0x1f1)],0x1),(_0x4d1670=_0x4ab092[_0x22f05a(0x203)])==null||_0x4d1670[_0x22f05a(0x1ac)](_0x5e28de=>{const _0x59c812=_0x22f05a;_0x5e28de===_0x43ec65||_0x5e28de[_0x59c812(0x1e1)]===_0x43ec65[_0x59c812(0x1e1)]?_0x5e28de[_0x59c812(0x1f1)]=_0x1ce0c8:_0x5e28de[_0x59c812(0x1fd)]>=_0x1ce0c8&&_0x5e28de[_0x59c812(0x1fd)]<_0x43ec65[_0x59c812(0x1f1)]&&(_0x5e28de[_0x59c812(0x1fd)]+=0x1,_0x5e28de[_0x59c812(0x1f1)]+=0x1);});let _0x8db22e=_e(_0x4ab092,{..._0x43ec65,'endIndex':_0x1ce0c8});_0x8db22e[_0x22f05a(0x1ac)]((_0x1bd4e6,_0x3892c6)=>{const _0x1ad551=_0x22f05a;var _0xec73cf;_0x1bd4e6[_0x1ad551(0x180)]={...(_0xec73cf=_0x1bd4e6[_0x1ad551(0x180)])==null?{}:_0xec73cf,...E(_0x3892c6===0x0,_0x3892c6===_0x8db22e['length']-0x1)};});let _0x2c4de4=(_0x2c605d=_0x4ab092['paragraphs'])==null?void 0x0:_0x2c605d['find'](_0x56c9fb=>_0x56c9fb[_0x22f05a(0x1fd)]===_0x1ce0c8+0x1);return _0x2c4de4&&(_0x2c4de4['paragraphStyle']=ge(_0x2c4de4['paragraphStyle'])),{'nextDocumentData':_0x426749,'cursorOffset':_0x1ce0c8+0x1};}function ue(_0x41ad2b){const _0x1a93ff=_0x1bd327;let _0x1efb5c=D(_0x41ad2b['documentData']),_0x349403=O(_0x1efb5c),_0x34162b=me(_0x349403,_0x41ad2b[_0x1a93ff(0x1ce)]);return _0x34162b&&de(_0x1efb5c,_0x349403,_0x34162b,_0x41ad2b['cursorOffset'],_0x41ad2b[_0x1a93ff(0x1a7)])||null;}function de(_0x2aa5e5,_0x2b19a5,_0x41467a,_0x1b181a,_0x3f47af){const _0x36c2b2=_0x1bd327;let _0x3b326a=we(_0x2b19a5,_0x41467a,_0x1b181a,_0x3f47af);if(!_0x3b326a)return null;let _0x4793d9=_0x3b326a[_0x36c2b2(0x1fb)]-0x1;return Te(_0x2b19a5,_0x3b326a[_0x36c2b2(0x1a6)][_0x36c2b2(0x1fd)],_0x3b326a['paragraph'][_0x36c2b2(0x1fd)]+0x1),{'nextDocumentData':_0x2aa5e5,'cursorOffset':_0x4793d9};}function fe(_0x21fe89,_0x34897b){const _0x11c956=_0x1bd327;var _0x385980;return _0x21fe89==null||(_0x385980=_0x21fe89[_0x11c956(0x203)])==null?void 0x0:_0x385980[_0x11c956(0x197)](_0x26c736=>_0x26c736[_0x11c956(0x206)]===_0x6a5755['CODE']&&_0x26c736[_0x11c956(0x1fd)]<=_0x34897b&&_0x34897b<=_0x26c736[_0x11c956(0x1f1)]);}function pe(_0x56192e){const _0x5f05ea=_0x1bd327;var _0x23a9a6;let _0x11282a=_0x56192e['documentData'][_0x5f05ea(0x188)];if(!_0x11282a)return!0x1;let _0x57709c=_0x56192e[_0x5f05ea(0x1c7)]==='left'?_0x56192e['cursorOffset']-0x1:_0x56192e[_0x5f05ea(0x1ce)],_0x39fd08=_0x56192e['direction']===_0x5f05ea(0x1cb)?_0x56192e[_0x5f05ea(0x1ce)]+0x1:_0x57709c;return((_0x23a9a6=_0x11282a['blockRanges'])==null?[]:_0x23a9a6)[_0x5f05ea(0x1a5)](_0x3f6abd=>_0x3f6abd[_0x5f05ea(0x206)]===_0x6a5755['CODE']?_0x57709c===_0x3f6abd[_0x5f05ea(0x1fd)]||_0x57709c===_0x3f6abd[_0x5f05ea(0x1f1)]||_0x39fd08===_0x3f6abd[_0x5f05ea(0x1fd)]||_0x39fd08===_0x3f6abd[_0x5f05ea(0x1f1)]:!0x1);}function me(_0x2c6898,_0xf4ff8){const _0x5d399e=_0x1bd327;var _0x472668;return(_0x472668=_0x2c6898[_0x5d399e(0x203)])==null?void 0x0:_0x472668[_0x5d399e(0x197)](_0xb61d1b=>{const _0x5d37d8=_0x5d399e;let _0x1b51c6=j(_0x2c6898,_0xb61d1b);return _0xb61d1b['blockType']===_0x6a5755['CODE']&&_0xb61d1b[_0x5d37d8(0x1fd)]<=_0xf4ff8&&_0xf4ff8<=_0x1b51c6+0x2;});}function E(_0x458b7d,_0x489504,_0x2bc312=!0x1){return{'indentEnd':{'v':0x14},'indentStart':{'v':0x14},..._0x458b7d&&_0x2bc312?{'spaceAbove':{'v':0x8}}:{},'textStyle':{'ff':ie,'fs':0xc}};}function he(_0x44be7c,_0x4bc7e9,_0x25ba3d,_0x30a93c=!0x1){const _0x5cd192=_0x1bd327;var _0x2ce1ac;let _0x5344c5=((_0x2ce1ac=_0x44be7c[_0x5cd192(0x1b9)])==null?[]:_0x2ce1ac)[_0x5cd192(0x205)](_0x3f030f=>_0x3f030f[_0x5cd192(0x1fd)]>_0x4bc7e9&&_0x3f030f[_0x5cd192(0x1fd)]<_0x25ba3d);_0x5344c5[_0x5cd192(0x1ac)]((_0x5f0914,_0x3dcf59)=>{const _0x9d20d5=_0x5cd192;var _0x8b41d2;_0x5f0914[_0x9d20d5(0x180)]={...(_0x8b41d2=_0x5f0914[_0x9d20d5(0x180)])==null?{}:_0x8b41d2,...E(_0x3dcf59===0x0,_0x3dcf59===_0x5344c5['length']-0x1,_0x30a93c)};});}function ge(_0x4ad119){const _0x5535b6=_0x1bd327;var _0xce39d,_0x144fd5;let _0x45235c={..._0x4ad119==null?{}:_0x4ad119};return delete _0x45235c[_0x5535b6(0x181)],delete _0x45235c[_0x5535b6(0x185)],delete _0x45235c[_0x5535b6(0x1c1)],delete _0x45235c['spaceBelow'],((_0xce39d=_0x45235c[_0x5535b6(0x18e)])==null?void 0x0:_0xce39d['ff'])===ie&&((_0x144fd5=_0x45235c['textStyle'])==null?void 0x0:_0x144fd5['fs'])===0xc&&delete _0x45235c['textStyle'],_0x45235c;}function _e(_0x39acef,_0x19b342){const _0x264dfc=_0x1bd327;var _0x384293;let _0x84bf9e=j(_0x39acef,_0x19b342);return((_0x384293=_0x39acef['paragraphs'])==null?[]:_0x384293)[_0x264dfc(0x205)](_0x136ab6=>_0x136ab6[_0x264dfc(0x1fd)]>_0x19b342[_0x264dfc(0x1fd)]&&_0x136ab6['startIndex']<_0x84bf9e);}function ve(_0x5dc6d1,_0x227382,_0x483b94){const _0xaee304=_0x1bd327;let _0x24a3fe=A(_0x5dc6d1,_0x227382,_0x483b94),_0x49d44c=_0x5dc6d1['dataStream'][_0xaee304(0x1e5)](_0x24a3fe,_0x483b94[_0xaee304(0x1fd)]);return Array[_0xaee304(0x1a0)](_0x49d44c)['every'](_0x19949c=>_0x19949c===_0x217bb8[_0xaee304(0x1ff)]||_0x19949c===_0x217bb8[_0xaee304(0x1fc)]);}function D(_0x4e4dd3){const _0x41d14f=_0x1bd327;return _0x4a3ab2[_0x41d14f(0x19f)](_0x4e4dd3);}function O(_0x1bea0e){const _0x4865fa=_0x1bd327;if(!_0x1bea0e[_0x4865fa(0x188)])throw Error(_0x4865fa(0x1a4));return _0x1bea0e['body'];}function ye(_0x49c63f,_0x4337e4,_0xda48a8){const _0x577f82=_0x1bd327;if(_0x4337e4==null||_0xda48a8==null){let _0xfd5252=xe(_0x49c63f);return{'startOffset':_0xfd5252,'endOffset':_0xfd5252};}let _0x116a08=Math[_0x577f82(0x1ec)](_0x4337e4,_0xda48a8),_0x537020=Math[_0x577f82(0x18c)](_0x4337e4,_0xda48a8);if(_0x116a08===_0x537020){let _0x34e1e1=be(_0x49c63f,_0x116a08);return{'startOffset':_0x34e1e1,'endOffset':_0x34e1e1};}return Ce(_0x49c63f,_0x116a08,_0x537020);}function be(_0x35c68a,_0xa9c61b){const _0x8b96db=_0x1bd327;return _0xa9c61b===0x0&&_0x35c68a[_0x8b96db(0x1ef)][0x0]===_0x217bb8[_0x8b96db(0x1d2)]?0x1:_0xa9c61b;}function xe(_0x56bc62){const _0x4ee74d=_0x1bd327;return _0x56bc62[_0x4ee74d(0x1ef)][_0x4ee74d(0x1ad)](_0x217bb8['SECTION_BREAK'])?Math[_0x4ee74d(0x18c)](0x0,_0x56bc62['dataStream'][_0x4ee74d(0x1f9)]-0x1):_0x56bc62[_0x4ee74d(0x1ef)]['length'];}function Se(_0x3455a9,_0x3495ae,_0xa65481){const _0x393514=_0x1bd327;var _0x35a43b;let _0x37ce59=Math['min'](_0x3495ae,_0xa65481),_0x1b3cde=Math[_0x393514(0x18c)](_0x3495ae,_0xa65481);return!!((_0x35a43b=_0x3455a9[_0x393514(0x19b)])!=null&&_0x35a43b[_0x393514(0x1a5)](_0x408f38=>_0x37ce59>_0x408f38[_0x393514(0x1fd)]&&_0x37ce59<_0x408f38[_0x393514(0x1f1)]||_0x1b3cde>_0x408f38[_0x393514(0x1fd)]&&_0x1b3cde<_0x408f38[_0x393514(0x1f1)]||_0x37ce59<=_0x408f38['startIndex']&&_0x1b3cde>=_0x408f38[_0x393514(0x1f1)]));}function Ce(_0xd26515,_0x4a7336,_0x33153e){const _0x3da9ec=_0x1bd327;var _0x151edc,_0x5411e1;let _0x22d7b6=[...(_0x151edc=_0xd26515[_0x3da9ec(0x1b9)])==null?[]:_0x151edc][_0x3da9ec(0x1e2)]((_0x99b405,_0x59d2b1)=>_0x99b405[_0x3da9ec(0x1fd)]-_0x59d2b1[_0x3da9ec(0x1fd)]),_0x2aa74e=_0x22d7b6[_0x3da9ec(0x197)]((_0x2c17e0,_0x390a6e)=>(_0x390a6e===0x0?0x0:_0x22d7b6[_0x390a6e-0x1][_0x3da9ec(0x1fd)]+0x1)<=_0x4a7336&&_0x4a7336<=_0x2c17e0[_0x3da9ec(0x1fd)]),_0x9698d1=(_0x5411e1=_0x22d7b6[_0x3da9ec(0x197)](_0x387917=>_0x387917[_0x3da9ec(0x1fd)]>=_0x33153e-0x1))==null?_0x22d7b6[_0x22d7b6[_0x3da9ec(0x1f9)]-0x1]:_0x5411e1;return{'startOffset':_0x2aa74e?k(_0x22d7b6,_0x2aa74e):_0x4a7336,'endOffset':_0x9698d1?_0x9698d1[_0x3da9ec(0x1fd)]+0x1:_0x33153e};}function k(_0x4f80a2,_0x7f6a8){const _0x50d442=_0x1bd327;let _0x49d983=_0x4f80a2['indexOf'](_0x7f6a8);return _0x49d983>0x0?_0x4f80a2[_0x49d983-0x1][_0x50d442(0x1fd)]+0x1:0x0;}function A(_0x4e7661,_0x326d5f,_0x19ca94){const _0x35eadf=_0x1bd327;var _0x3a3fcb;return Math[_0x35eadf(0x18c)](k((_0x3a3fcb=_0x4e7661[_0x35eadf(0x1b9)])==null?[]:_0x3a3fcb,_0x19ca94),_0x326d5f[_0x35eadf(0x1fd)]+0x1);}function j(_0x37a3e0,_0x437f7f){const _0x598c77=_0x1bd327;return _0x37a3e0[_0x598c77(0x1ef)][_0x437f7f[_0x598c77(0x1f1)]]===_0x217bb8[_0x598c77(0x1fc)]?_0x437f7f['endIndex']:_0x37a3e0[_0x598c77(0x1ef)][_0x437f7f[_0x598c77(0x1f1)]+0x1]===_0x217bb8['BLOCK_END']?_0x437f7f['endIndex']+0x1:_0x437f7f[_0x598c77(0x1f1)];}function we(_0x50d5b5,_0xec2ffe,_0x5aeec5,_0x255f5f){const _0x5f2bb5=_0x1bd327;var _0x5b8c3b,_0x418197;let _0x184e23=j(_0x50d5b5,_0xec2ffe),_0x1f6762=((_0x5b8c3b=_0x50d5b5[_0x5f2bb5(0x1b9)])==null?[]:_0x5b8c3b)['find'](_0x22c608=>_0x22c608[_0x5f2bb5(0x1fd)]===_0x184e23+0x1);if(!_0x1f6762||_0x255f5f!=null&&_0x1f6762['startIndex']!==_0x255f5f||_0x5aeec5<_0x184e23||_0x5aeec5>_0x1f6762[_0x5f2bb5(0x1fd)]+0x1||_0x50d5b5['dataStream'][_0x1f6762[_0x5f2bb5(0x1fd)]]!==_0x217bb8[_0x5f2bb5(0x1d2)])return null;let _0x5b6aac=k((_0x418197=_0x50d5b5[_0x5f2bb5(0x1b9)])==null?[]:_0x418197,_0x1f6762),_0x4e092a=_0x50d5b5['dataStream'][_0x5f2bb5(0x1e5)](_0x5b6aac,_0x1f6762[_0x5f2bb5(0x1fd)]);return Array[_0x5f2bb5(0x1a0)](_0x4e092a)[_0x5f2bb5(0x1ae)](_0x3f70ae=>_0x3f70ae===_0x217bb8['BLOCK_END'])?{'paragraph':_0x1f6762,'endTokenOffset':_0x184e23}:null;}function M(_0x3975cf,_0x4296b8){const _0x275dbc=_0x1bd327;var _0x4ad9e1;let _0x14d249=j(_0x3975cf,_0x4296b8),_0x10f7ff=_0x3975cf[_0x275dbc(0x1ef)][_0x14d249+0x1];_0x10f7ff!==_0x217bb8[_0x275dbc(0x1c2)]&&_0x10f7ff!==void 0x0||N(_0x3975cf,_0x14d249+0x1,_0x217bb8[_0x275dbc(0x1d2)],{'paragraphs':[{'startIndex':0x0,'paragraphId':_0x48477c(new Set((_0x4ad9e1=_0x3975cf['paragraphs'])==null?void 0x0:_0x4ad9e1['map'](_0x557883=>_0x557883['paragraphId'])))}]});}function N(_0xa28d4e,_0x2c44e7,_0x167a30,_0x175274={}){const _0x56d5f8=_0x1bd327;var _0x47ae69,_0x36f9db;if(_0x167a30){if(_0xa28d4e[_0x56d5f8(0x1ef)]=''+_0xa28d4e[_0x56d5f8(0x1ef)][_0x56d5f8(0x1e5)](0x0,_0x2c44e7)+_0x167a30+_0xa28d4e[_0x56d5f8(0x1ef)][_0x56d5f8(0x1e5)](_0x2c44e7),Ee(_0xa28d4e,_0x2c44e7,_0x167a30[_0x56d5f8(0x1f9)]),(_0x47ae69=_0x175274[_0x56d5f8(0x1b9)])!=null&&_0x47ae69['length']){var _0x31db16;_0xa28d4e['paragraphs']=[...(_0x31db16=_0xa28d4e[_0x56d5f8(0x1b9)])==null?[]:_0x31db16,..._0x175274[_0x56d5f8(0x1b9)][_0x56d5f8(0x1c8)](_0x403e1a=>({..._0x403e1a,'startIndex':_0x403e1a['startIndex']+_0x2c44e7}))][_0x56d5f8(0x1e2)]((_0x26b6dd,_0x58a042)=>_0x26b6dd[_0x56d5f8(0x1fd)]-_0x58a042[_0x56d5f8(0x1fd)]);}if((_0x36f9db=_0x175274[_0x56d5f8(0x203)])!=null&&_0x36f9db[_0x56d5f8(0x1f9)]){var _0x30079;_0xa28d4e[_0x56d5f8(0x203)]=[...(_0x30079=_0xa28d4e['blockRanges'])==null?[]:_0x30079,..._0x175274['blockRanges'][_0x56d5f8(0x1c8)](_0x1bd614=>({..._0x1bd614,'startIndex':_0x1bd614['startIndex']+_0x2c44e7,'endIndex':_0x1bd614[_0x56d5f8(0x1f1)]+_0x2c44e7}))][_0x56d5f8(0x1e2)]((_0x1ae35f,_0x29b703)=>_0x1ae35f[_0x56d5f8(0x1fd)]-_0x29b703['startIndex']);}}}function Te(_0xf71c93,_0x138d59,_0x352d52){const _0x21982d=_0x1bd327;let _0xc9ddd0=_0x352d52-_0x138d59;_0xf71c93[_0x21982d(0x1ef)]=''+_0xf71c93[_0x21982d(0x1ef)][_0x21982d(0x1e5)](0x0,_0x138d59)+_0xf71c93[_0x21982d(0x1ef)][_0x21982d(0x1e5)](_0x352d52),De(_0xf71c93,_0x138d59,_0xc9ddd0);}function Ee(_0x200e2c,_0x55851a,_0x3b608a){const _0x23db52=_0x1bd327;_0x200e2c[_0x23db52(0x1b9)]=P(_0x200e2c['paragraphs'],_0x55851a,_0x3b608a),_0x200e2c['sectionBreaks']=P(_0x200e2c[_0x23db52(0x1a9)],_0x55851a,_0x3b608a),_0x200e2c[_0x23db52(0x192)]=P(_0x200e2c[_0x23db52(0x192)],_0x55851a,_0x3b608a),_0x200e2c[_0x23db52(0x204)]=Oe(_0x200e2c[_0x23db52(0x204)],_0x55851a,_0x3b608a),_0x200e2c[_0x23db52(0x19b)]=I(_0x200e2c[_0x23db52(0x19b)],_0x55851a,_0x3b608a),_0x200e2c[_0x23db52(0x1bb)]=I(_0x200e2c['customRanges'],_0x55851a,_0x3b608a),_0x200e2c['customDecorations']=I(_0x200e2c[_0x23db52(0x207)],_0x55851a,_0x3b608a),_0x200e2c['blockRanges']=I(_0x200e2c[_0x23db52(0x203)],_0x55851a,_0x3b608a);}function De(_0x4d39c7,_0xcb9b1f,_0x208f86){const _0x1f2d6f=_0x1bd327;var _0x30d90c,_0x57fc56;_0x4d39c7[_0x1f2d6f(0x1b9)]=F(_0x4d39c7[_0x1f2d6f(0x1b9)],_0xcb9b1f,_0x208f86),_0x4d39c7[_0x1f2d6f(0x1a9)]=F(_0x4d39c7[_0x1f2d6f(0x1a9)],_0xcb9b1f,_0x208f86),_0x4d39c7['customBlocks']=F(_0x4d39c7[_0x1f2d6f(0x192)],_0xcb9b1f,_0x208f86),_0x4d39c7[_0x1f2d6f(0x204)]=(_0x30d90c=L((_0x57fc56=_0x4d39c7[_0x1f2d6f(0x204)])==null?void 0x0:_0x57fc56[_0x1f2d6f(0x1c8)](_0x36c2a2=>({..._0x36c2a2,'startIndex':_0x36c2a2['st'],'endIndex':_0x36c2a2['ed']})),_0xcb9b1f,_0x208f86))==null?void 0x0:_0x30d90c[_0x1f2d6f(0x1c8)](_0x4b84b9=>{let {startIndex:_0x5da132,endIndex:_0x4d29f3,..._0x3788e8}=_0x4b84b9;return{..._0x3788e8,'st':_0x5da132,'ed':_0x4d29f3};}),_0x4d39c7[_0x1f2d6f(0x19b)]=L(_0x4d39c7[_0x1f2d6f(0x19b)],_0xcb9b1f,_0x208f86),_0x4d39c7[_0x1f2d6f(0x1bb)]=L(_0x4d39c7[_0x1f2d6f(0x1bb)],_0xcb9b1f,_0x208f86),_0x4d39c7[_0x1f2d6f(0x207)]=L(_0x4d39c7[_0x1f2d6f(0x207)],_0xcb9b1f,_0x208f86),_0x4d39c7['blockRanges']=L(_0x4d39c7[_0x1f2d6f(0x203)],_0xcb9b1f,_0x208f86);}function P(_0x4d9a0e,_0x33fb7e,_0x5eeb7d){const _0x8c3a7a=_0x1bd327;return _0x4d9a0e==null?void 0x0:_0x4d9a0e[_0x8c3a7a(0x1c8)](_0x2b76b8=>_0x2b76b8[_0x8c3a7a(0x1fd)]>=_0x33fb7e?{..._0x2b76b8,'startIndex':_0x2b76b8[_0x8c3a7a(0x1fd)]+_0x5eeb7d}:_0x2b76b8);}function F(_0x3b741,_0x3e1bbd,_0x53760b){const _0x119fcd=_0x1bd327;let _0x395b10=_0x3e1bbd+_0x53760b;return _0x3b741==null?void 0x0:_0x3b741[_0x119fcd(0x1c8)](_0x540d27=>_0x540d27['startIndex']>=_0x3e1bbd&&_0x540d27['startIndex']<_0x395b10?null:_0x540d27[_0x119fcd(0x1fd)]>=_0x395b10?{..._0x540d27,'startIndex':_0x540d27[_0x119fcd(0x1fd)]-_0x53760b}:_0x540d27)[_0x119fcd(0x205)](_0x49e67d=>_0x49e67d!=null);}function Oe(_0x1c1f0f,_0x3ab0bb,_0x3fec73){const _0xcd7fad=_0x1bd327;return _0x1c1f0f==null?void 0x0:_0x1c1f0f[_0xcd7fad(0x1c8)](_0x35900f=>_0x35900f['st']>=_0x3ab0bb?{..._0x35900f,'st':_0x35900f['st']+_0x3fec73,'ed':_0x35900f['ed']+_0x3fec73}:_0x35900f['ed']>_0x3ab0bb?{..._0x35900f,'ed':_0x35900f['ed']+_0x3fec73}:_0x35900f);}function I(_0xc008e9,_0x527f21,_0xca30d2){const _0x17b99d=_0x1bd327;return _0xc008e9==null?void 0x0:_0xc008e9[_0x17b99d(0x1c8)](_0x858c64=>_0x858c64[_0x17b99d(0x1fd)]>=_0x527f21?{..._0x858c64,'startIndex':_0x858c64[_0x17b99d(0x1fd)]+_0xca30d2,'endIndex':_0x858c64[_0x17b99d(0x1f1)]+_0xca30d2}:_0x858c64[_0x17b99d(0x1f1)]>=_0x527f21?{..._0x858c64,'endIndex':_0x858c64[_0x17b99d(0x1f1)]+_0xca30d2}:_0x858c64);}function L(_0x27156c,_0x454c7d,_0x24f59c){const _0x49a940=_0x1bd327;let _0x5e3ddb=_0x454c7d+_0x24f59c;return _0x27156c==null?void 0x0:_0x27156c['map'](_0x1ce14b=>_0x1ce14b[_0x49a940(0x1fd)]>=_0x454c7d&&_0x1ce14b['endIndex']<_0x5e3ddb?null:_0x1ce14b[_0x49a940(0x1fd)]>=_0x5e3ddb?{..._0x1ce14b,'startIndex':_0x1ce14b[_0x49a940(0x1fd)]-_0x24f59c,'endIndex':_0x1ce14b[_0x49a940(0x1f1)]-_0x24f59c}:_0x1ce14b[_0x49a940(0x1f1)]>=_0x454c7d?{..._0x1ce14b,'startIndex':_0x1ce14b['startIndex']<_0x454c7d?_0x1ce14b[_0x49a940(0x1fd)]:_0x454c7d,'endIndex':Math['max'](_0x454c7d,_0x1ce14b[_0x49a940(0x1f1)]-_0x24f59c)}:_0x1ce14b)[_0x49a940(0x205)](_0xe31228=>_0xe31228!=null);}function R(_0x3b14de,_0x535110,_0x3ffa3a,_0x3b3057){_0x3b14de==null||_0x3b14de['forEach'](_0x4cf0d0=>{const _0x3746eb=_0x3851;_0x4cf0d0[_0x3746eb(0x1fd)]>=_0x535110&&_0x4cf0d0[_0x3746eb(0x1fd)]<_0x3ffa3a&&(_0x4cf0d0[_0x3746eb(0x1fd)]+=_0x3b3057);});}function ke(_0x2f7b24,_0x3ffb3e,_0xd534d9,_0xf7faa0){const _0xc99b3f=_0x1bd327;_0x2f7b24==null||_0x2f7b24[_0xc99b3f(0x1ac)](_0x36ab66=>{_0x36ab66['st']>=_0x3ffb3e&&_0x36ab66['st']<_0xd534d9?(_0x36ab66['st']+=_0xf7faa0,_0x36ab66['ed']+=_0xf7faa0):_0x36ab66['ed']>_0x3ffb3e&&_0x36ab66['ed']<_0xd534d9&&(_0x36ab66['ed']+=_0xf7faa0);});}function z(_0x153e56,_0x16d801,_0x315824,_0xf8c1bf){const _0x2cdbab=_0x1bd327;_0x153e56==null||_0x153e56[_0x2cdbab(0x1ac)](_0xed04af=>{const _0x5c3d08=_0x2cdbab;_0xed04af[_0x5c3d08(0x1fd)]>=_0x16d801&&_0xed04af[_0x5c3d08(0x1fd)]<_0x315824?(_0xed04af[_0x5c3d08(0x1fd)]+=_0xf8c1bf,_0xed04af[_0x5c3d08(0x1f1)]+=_0xf8c1bf):_0xed04af[_0x5c3d08(0x1f1)]>_0x16d801&&_0xed04af['endIndex']<_0x315824&&(_0xed04af[_0x5c3d08(0x1f1)]+=_0xf8c1bf);});}function B(_0x453884){'@babel/helpers - typeof';const _0x298355=_0x1bd327;return B=typeof Symbol==_0x298355(0x1ab)&&typeof Symbol[_0x298355(0x1bc)]=='symbol'?function(_0x3a6add){return typeof _0x3a6add;}:function(_0x20ef5b){const _0x142d6a=_0x298355;return _0x20ef5b&&typeof Symbol==_0x142d6a(0x1ab)&&_0x20ef5b[_0x142d6a(0x1df)]===Symbol&&_0x20ef5b!==Symbol[_0x142d6a(0x1a1)]?'symbol':typeof _0x20ef5b;},B(_0x453884);}function Ae(_0x32bc2b,_0xb504e8){const _0x50839f=_0x1bd327;if(B(_0x32bc2b)!=_0x50839f(0x1fa)||!_0x32bc2b)return _0x32bc2b;var _0x1093cd=_0x32bc2b[Symbol[_0x50839f(0x186)]];if(_0x1093cd!==void 0x0){var _0x403ab9=_0x1093cd[_0x50839f(0x1c3)](_0x32bc2b,_0xb504e8||_0x50839f(0x189));if(B(_0x403ab9)!=_0x50839f(0x1fa))return _0x403ab9;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0xb504e8===_0x50839f(0x187)?String:Number)(_0x32bc2b);}function je(_0xb79d14){const _0x49a588=_0x1bd327;var _0x22a035=Ae(_0xb79d14,_0x49a588(0x187));return B(_0x22a035)=='symbol'?_0x22a035:_0x22a035+'';}function V(_0x23e699,_0xfbc1c1,_0x3096f0){const _0x44cb34=_0x1bd327;return(_0xfbc1c1=je(_0xfbc1c1))in _0x23e699?Object[_0x44cb34(0x1b0)](_0x23e699,_0xfbc1c1,{'value':_0x3096f0,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x23e699[_0xfbc1c1]=_0x3096f0,_0x23e699;}var H=class extends _0x4a26dc{constructor(..._0x16ff2e){const _0x34cc19=_0x1bd327;super(..._0x16ff2e),V(this,_0x34cc19(0x199),new Map()),V(this,_0x34cc19(0x1d5),new _0x39b06c()),V(this,'change$',this[_0x34cc19(0x1d5)]['asObservable']());}[_0x1bd327(0x1fe)](_0x5d0c6a,_0x3a910a){const _0x56b25c=_0x1bd327;return w(this[_0x56b25c(0x199)][_0x56b25c(0x1a2)](_0x5d0c6a))[_0x56b25c(0x1b6)][_0x3a910a];}['setCodeConfig'](_0x5ab6cc,_0x3b4e6f,_0x23847b){const _0x56731c=_0x1bd327;this['_setResource'](_0x5ab6cc,_0x3b4e6f,T(this[_0x56731c(0x199)][_0x56731c(0x1a2)](_0x5ab6cc),_0x3b4e6f,_0x23847b));}[_0x1bd327(0x1f4)](_0x3f323b,_0x3a18eb){const _0x4416b8=_0x1bd327;this[_0x4416b8(0x1b1)](_0x3f323b,_0x3a18eb,re(this[_0x4416b8(0x199)][_0x4416b8(0x1a2)](_0x3f323b),_0x3a18eb));}[_0x1bd327(0x1e9)](_0x2c8102){const _0x5966b5=_0x1bd327;return w(this[_0x5966b5(0x199)][_0x5966b5(0x1a2)](_0x2c8102));}['deserialize'](_0x14e27c,_0x291d84){const _0x96de54=_0x1bd327;this[_0x96de54(0x199)][_0x96de54(0x1f3)](_0x14e27c,w(_0x291d84)),this[_0x96de54(0x1d5)][_0x96de54(0x19a)]({'unitId':_0x14e27c});}[_0x1bd327(0x1d6)](_0x5c7260){const _0x444b4c=_0x1bd327;this[_0x444b4c(0x199)]['delete'](_0x5c7260),this[_0x444b4c(0x1d5)][_0x444b4c(0x19a)]({'unitId':_0x5c7260});}[_0x1bd327(0x1a8)](){const _0x582283=_0x1bd327;super[_0x582283(0x1a8)](),this['_resources'][_0x582283(0x19e)](),this[_0x582283(0x1d5)][_0x582283(0x1ee)]();}['_setResource'](_0x194146,_0x5d57ac,_0x446e5a){const _0x487ed6=_0x1bd327;this[_0x487ed6(0x199)][_0x487ed6(0x1f3)](_0x194146,_0x446e5a),this[_0x487ed6(0x1d5)]['next']({'unitId':_0x194146,'blockId':_0x5d57ac});}};const Me={'id':_0x1bd327(0x1d9),'type':_0xd6e375['COMMAND'],'handler':_0x29eb50=>{const _0x2183b6=_0x1bd327;let _0x246ac5=Le(_0x29eb50);if(_0x246ac5)return _0x29eb50['get'](_0x32af23)[_0x2183b6(0x18d)](U['id'],{'startOffset':_0x246ac5['startOffset'],'endOffset':_0x246ac5['endOffset'],'unitId':_0x246ac5['unitId']});let _0x5eb727=Re(_0x29eb50);if(!_0x5eb727)return!0x1;let _0x5880d4=_0x5eb727[_0x2183b6(0x1fd)]+0x1;return _0x29eb50[_0x2183b6(0x1a2)](_0x32af23)[_0x2183b6(0x18d)](U['id'],{'startOffset':_0x5880d4,'endOffset':_0x5880d4});}},Ne={'id':'docs-code.command.consume-boundary-delete','type':_0xd6e375[_0x1bd327(0x1da)],'handler':()=>!0x0},U={'id':_0x1bd327(0x1f2),'type':_0xd6e375[_0x1bd327(0x1da)],'handler':(_0x1f8820,_0x29352d)=>{const _0x2b5a3d=_0x1bd327;var _0x4ee1cc,_0x572f04,_0x62d625;let _0x205e36=W(_0x1f8820,_0x29352d==null?void 0x0:_0x29352d[_0x2b5a3d(0x1d3)]);if(!_0x205e36)return!0x1;let _0x4e0de2=G(_0x1f8820),_0x355e16=ae({'blockId':(_0x4ee1cc=_0x29352d==null?void 0x0:_0x29352d[_0x2b5a3d(0x1e1)])==null?_0x414e01(0x6):_0x4ee1cc,'config':_0x29352d==null?void 0x0:_0x29352d['config'],'documentData':_0x205e36[_0x2b5a3d(0x208)],'endOffset':(_0x572f04=_0x29352d==null?void 0x0:_0x29352d[_0x2b5a3d(0x1ea)])==null?_0x4e0de2==null?void 0x0:_0x4e0de2[_0x2b5a3d(0x1ea)]:_0x572f04,'metadata':_0x205e36[_0x2b5a3d(0x1d8)][_0x2b5a3d(0x1e9)](_0x205e36[_0x2b5a3d(0x1d3)]),'startOffset':(_0x62d625=_0x29352d==null?void 0x0:_0x29352d['startOffset'])==null?_0x4e0de2==null?void 0x0:_0x4e0de2['startOffset']:_0x62d625}),_0x2c26c2=q(_0x205e36[_0x2b5a3d(0x1cc)],_0x205e36[_0x2b5a3d(0x1d3)],_0x205e36[_0x2b5a3d(0x208)],_0x355e16[_0x2b5a3d(0x1e7)],_0x355e16[_0x2b5a3d(0x1ce)]);return _0x2c26c2&&_0x355e16['nextMetadata']&&_0x205e36[_0x2b5a3d(0x1d8)][_0x2b5a3d(0x1dd)](_0x205e36[_0x2b5a3d(0x1d3)],_0x355e16[_0x2b5a3d(0x1c5)]),_0x2c26c2;}},Pe={'id':_0x1bd327(0x194),'type':_0xd6e375[_0x1bd327(0x1da)],'handler':(_0x5921c7,_0x1ec69b)=>{const _0x3b668a=_0x1bd327;if(!_0x1ec69b)return!0x1;let _0x5bbb35=W(_0x5921c7,_0x1ec69b[_0x3b668a(0x1d3)]);if(!_0x5bbb35)return!0x1;let _0x3c4a7a=ce({'blockId':_0x1ec69b['blockId'],'config':_0x1ec69b[_0x3b668a(0x1c0)],'documentData':_0x5bbb35[_0x3b668a(0x208)],'metadata':_0x5bbb35[_0x3b668a(0x1d8)][_0x3b668a(0x1e9)](_0x5bbb35['unitId'])});return _0x3c4a7a[_0x3b668a(0x1c5)]&&_0x5bbb35['model']['deserialize'](_0x5bbb35[_0x3b668a(0x1d3)],_0x3c4a7a[_0x3b668a(0x1c5)]),!0x0;}},Fe={'id':_0x1bd327(0x1f8),'type':_0xd6e375[_0x1bd327(0x1da)],'handler':(_0x1df13c,_0x5a40b9)=>{const _0x3fea1c=_0x1bd327;var _0x5e716a,_0x23a537;let _0x446f03=W(_0x1df13c,_0x5a40b9==null?void 0x0:_0x5a40b9[_0x3fea1c(0x1d3)]);if(!_0x446f03)return!0x1;let _0x50e886=(_0x5e716a=_0x5a40b9==null?void 0x0:_0x5a40b9[_0x3fea1c(0x1ce)])==null?(_0x23a537=G(_0x1df13c))==null?void 0x0:_0x23a537[_0x3fea1c(0x18a)]:_0x5e716a;if(_0x50e886==null)return!0x1;let _0x8535b5=le({'cursorOffset':_0x50e886,'documentData':_0x446f03[_0x3fea1c(0x208)]});return _0x8535b5?q(_0x446f03[_0x3fea1c(0x1cc)],_0x446f03[_0x3fea1c(0x1d3)],_0x446f03[_0x3fea1c(0x208)],_0x8535b5[_0x3fea1c(0x1e7)],_0x8535b5[_0x3fea1c(0x1ce)]):!0x1;}},Ie={'id':_0x1bd327(0x1b8),'type':_0xd6e375['COMMAND'],'handler':(_0x77f739,_0x486c1b)=>{const _0x2d60e6=_0x1bd327;var _0x1e2277,_0x549cc6;let _0x3ae69e=W(_0x77f739,_0x486c1b==null?void 0x0:_0x486c1b[_0x2d60e6(0x1d3)]);if(!_0x3ae69e)return!0x1;let _0x260d4e=(_0x1e2277=_0x486c1b==null?void 0x0:_0x486c1b[_0x2d60e6(0x1ce)])==null?(_0x549cc6=G(_0x77f739))==null?void 0x0:_0x549cc6[_0x2d60e6(0x18a)]:_0x1e2277;if(_0x260d4e==null)return!0x1;let _0xf4ccdc=ue({'cursorOffset':_0x260d4e,'documentData':_0x3ae69e['previousDocumentData'],'paragraphStartIndex':_0x486c1b==null?void 0x0:_0x486c1b[_0x2d60e6(0x1a7)]});return _0xf4ccdc?q(_0x3ae69e[_0x2d60e6(0x1cc)],_0x3ae69e[_0x2d60e6(0x1d3)],_0x3ae69e[_0x2d60e6(0x208)],_0xf4ccdc['nextDocumentData'],_0xf4ccdc[_0x2d60e6(0x1ce)]):!0x1;}};function W(_0x55225f,_0x292aa8){const _0x7144ea=_0x1bd327;let _0x310aee=_0x55225f['get'](_0x33ba15),_0x2ac379=_0x292aa8?_0x310aee[_0x7144ea(0x1bd)](_0x292aa8):_0x310aee[_0x7144ea(0x1d7)](_0x2864e1['UNIVER_DOC']);return _0x2ac379?{'commandService':_0x55225f['get'](_0x32af23),'model':_0x55225f[_0x7144ea(0x1a2)](H),'previousDocumentData':_0x2ac379[_0x7144ea(0x1e0)](),'unitId':_0x2ac379[_0x7144ea(0x1b4)]()}:null;}function G(_0x40943f){const _0x536967=_0x1bd327;var _0x581005;return(_0x581005=_0x40943f['get'](_0x35cf98)[_0x536967(0x19c)]())==null?void 0x0:_0x581005[0x0];}function Le(_0x7db706){const _0x3c9ab5=_0x1bd327;var _0x49ea34;let _0x2101c7=(_0x49ea34=_0x7db706[_0x3c9ab5(0x1a2)](_0x33ba15)[_0x3c9ab5(0x1d7)](_0x2864e1[_0x3c9ab5(0x1e3)]))==null?void 0x0:_0x49ea34[_0x3c9ab5(0x1b4)]();try{return _0x7db706['get'](_0xc64f97)[_0x3c9ab5(0x1c9)](_0x2101c7);}catch{return null;}}function Re(_0x2f5d32){const _0x45eb4f=_0x1bd327;var _0x5285f1,_0x523ba4,_0x34a159;let _0x44f8af=G(_0x2f5d32);if(!_0x44f8af)return null;let _0x30d20b=_0x2f5d32[_0x45eb4f(0x1a2)](_0x33ba15)[_0x45eb4f(0x1d7)](_0x2864e1[_0x45eb4f(0x1e3)]),_0x3538a6=_0x30d20b==null?void 0x0:_0x30d20b[_0x45eb4f(0x196)]();return _0x3538a6?(_0x5285f1=_0x1b614b[_0x45eb4f(0x1d4)][_0x45eb4f(0x190)](_0x44f8af,(_0x523ba4=_0x3538a6[_0x45eb4f(0x1b9)])==null?[]:_0x523ba4,(_0x34a159=_0x3538a6[_0x45eb4f(0x1ef)])==null?'':_0x34a159)[0x0])==null?null:_0x5285f1:null;}function ze(_0x359e97,_0x3c41db){const _0x2b5d35=_0x1bd327;var _0x298ea1,_0x1c67e4,_0x218fc2,_0x5aa8fd,_0x498dd6,_0x29b5ba,_0x54bd74,_0x56ff95,_0xbe39ee,_0x2bd1bb,_0x494bc6,_0x3cf8c1,_0x201298,_0x46ef73,_0xff51f1,_0x1a56a2,_0x30496e,_0x591179;let _0x572943=_0x273043['getInstance']();return[K(_0x572943,['body',_0x2b5d35(0x1ef)],(_0x298ea1=_0x359e97[_0x2b5d35(0x188)])==null?void 0x0:_0x298ea1[_0x2b5d35(0x1ef)],(_0x1c67e4=_0x3c41db[_0x2b5d35(0x188)])==null?void 0x0:_0x1c67e4[_0x2b5d35(0x1ef)]),K(_0x572943,[_0x2b5d35(0x188),_0x2b5d35(0x1b9)],(_0x218fc2=_0x359e97[_0x2b5d35(0x188)])==null?void 0x0:_0x218fc2[_0x2b5d35(0x1b9)],(_0x5aa8fd=_0x3c41db['body'])==null?void 0x0:_0x5aa8fd[_0x2b5d35(0x1b9)]),K(_0x572943,[_0x2b5d35(0x188),'sectionBreaks'],(_0x498dd6=_0x359e97[_0x2b5d35(0x188)])==null?void 0x0:_0x498dd6['sectionBreaks'],(_0x29b5ba=_0x3c41db[_0x2b5d35(0x188)])==null?void 0x0:_0x29b5ba['sectionBreaks']),K(_0x572943,[_0x2b5d35(0x188),_0x2b5d35(0x204)],(_0x54bd74=_0x359e97[_0x2b5d35(0x188)])==null?void 0x0:_0x54bd74[_0x2b5d35(0x204)],(_0x56ff95=_0x3c41db['body'])==null?void 0x0:_0x56ff95[_0x2b5d35(0x204)]),K(_0x572943,[_0x2b5d35(0x188),_0x2b5d35(0x192)],(_0xbe39ee=_0x359e97[_0x2b5d35(0x188)])==null?void 0x0:_0xbe39ee[_0x2b5d35(0x192)],(_0x2bd1bb=_0x3c41db['body'])==null?void 0x0:_0x2bd1bb[_0x2b5d35(0x192)]),K(_0x572943,['body',_0x2b5d35(0x1bb)],(_0x494bc6=_0x359e97[_0x2b5d35(0x188)])==null?void 0x0:_0x494bc6['customRanges'],(_0x3cf8c1=_0x3c41db[_0x2b5d35(0x188)])==null?void 0x0:_0x3cf8c1['customRanges']),K(_0x572943,['body',_0x2b5d35(0x207)],(_0x201298=_0x359e97[_0x2b5d35(0x188)])==null?void 0x0:_0x201298[_0x2b5d35(0x207)],(_0x46ef73=_0x3c41db['body'])==null?void 0x0:_0x46ef73['customDecorations']),K(_0x572943,['body',_0x2b5d35(0x19b)],(_0xff51f1=_0x359e97[_0x2b5d35(0x188)])==null?void 0x0:_0xff51f1[_0x2b5d35(0x19b)],(_0x1a56a2=_0x3c41db['body'])==null?void 0x0:_0x1a56a2[_0x2b5d35(0x19b)]),K(_0x572943,[_0x2b5d35(0x188),_0x2b5d35(0x203)],(_0x30496e=_0x359e97[_0x2b5d35(0x188)])==null?void 0x0:_0x30496e[_0x2b5d35(0x203)],(_0x591179=_0x3c41db[_0x2b5d35(0x188)])==null?void 0x0:_0x591179[_0x2b5d35(0x203)])][_0x2b5d35(0x205)](Boolean)['reduce']((_0x272929,_0x550fb4)=>_0x273043[_0x2b5d35(0x1dc)](_0x272929,_0x550fb4),null);}function K(_0x1bf19f,_0x25d391,_0x18a388,_0x4f7f7f){const _0x12b61e=_0x1bd327;return _0x4a3ab2[_0x12b61e(0x1f0)](_0x18a388,_0x4f7f7f)?null:_0x1bf19f[_0x12b61e(0x1e6)](_0x25d391,_0x18a388,_0x4f7f7f);}function q(_0x102a09,_0x12fad5,_0x10bd5b,_0x194550,_0x459a94){let _0xa05d4a=ze(_0x10bd5b,_0x194550);return _0xa05d4a?!!_0x102a09['syncExecuteCommand'](_0x397e41['id'],{'unitId':_0x12fad5,'actions':_0xa05d4a,'textRanges':[{'startOffset':_0x459a94,'endOffset':_0x459a94,'collapsed':!0x0}],'isEditing':!0x1}):!0x1;}const J=_0x1bd327(0x1b2);var Be='@univerjs-pro/docs-code',Ve='1.0.0-alpha.0';const Y={};function X(_0x3da22e,_0x47f5b0){return function(_0x26db2b,_0x241fef){_0x47f5b0(_0x26db2b,_0x241fef,_0x3da22e);};}function Z(_0x59f597,_0x16a23b,_0x8cb1a7,_0x366bf9){const _0x2e5d71=_0x1bd327;var _0x27c364=arguments[_0x2e5d71(0x1f9)],_0x8609e=_0x27c364<0x3?_0x16a23b:_0x366bf9===null?_0x366bf9=Object['getOwnPropertyDescriptor'](_0x16a23b,_0x8cb1a7):_0x366bf9,_0xafaa47;if(typeof Reflect==_0x2e5d71(0x1fa)&&typeof Reflect[_0x2e5d71(0x1ba)]==_0x2e5d71(0x1ab))_0x8609e=Reflect[_0x2e5d71(0x1ba)](_0x59f597,_0x16a23b,_0x8cb1a7,_0x366bf9);else{for(var _0x18f287=_0x59f597[_0x2e5d71(0x1f9)]-0x1;_0x18f287>=0x0;_0x18f287--)(_0xafaa47=_0x59f597[_0x18f287])&&(_0x8609e=(_0x27c364<0x3?_0xafaa47(_0x8609e):_0x27c364>0x3?_0xafaa47(_0x16a23b,_0x8cb1a7,_0x8609e):_0xafaa47(_0x16a23b,_0x8cb1a7))||_0x8609e);}return _0x27c364>0x3&&_0x8609e&&Object['defineProperty'](_0x16a23b,_0x8cb1a7,_0x8609e),_0x8609e;}function _0x3851(_0x51d6b9,_0x4a2f16){_0x51d6b9=_0x51d6b9-0x180;const _0x27d7a2=_0x27d7();let _0x385151=_0x27d7a2[_0x51d6b9];return _0x385151;}let Q=class extends _0x4a26dc{constructor(_0x5b7001,_0x350133){const _0x3db34e=_0x1bd327;super(),this['_resourceManagerService']=_0x5b7001,this['_docsCodeModel']=_0x350133,this[_0x3db34e(0x193)]();}[_0x1bd327(0x193)](){const _0x11ebd9=_0x1bd327;this['disposeWithMe'](this[_0x11ebd9(0x201)][_0x11ebd9(0x1ca)]({'pluginName':J,'businesses':[_0x2864e1[_0x11ebd9(0x1e3)]],'toJson':_0x3b4bdc=>JSON[_0x11ebd9(0x19d)](this['_docsCodeModel']['serialize'](_0x3b4bdc)),'parseJson':_0x37cc05=>w(JSON[_0x11ebd9(0x18b)](_0x37cc05)),'onLoad':(_0x170642,_0x5b640d)=>this[_0x11ebd9(0x1f5)][_0x11ebd9(0x1dd)](_0x170642,_0x5b640d),'onUnLoad':_0x4b803e=>this[_0x11ebd9(0x1f5)][_0x11ebd9(0x1d6)](_0x4b803e)}));}};Q=Z([X(0x0,_0xca8f68),X(0x1,_0x30337f(H))],Q);let $=class extends _0x394390{constructor(_0x47ae68=Y,_0x57af85,_0x102eb1,_0x4d1a98){const _0x372e21=_0x1bd327;super(),this[_0x372e21(0x1c4)]=_0x47ae68,this[_0x372e21(0x182)]=_0x57af85,this[_0x372e21(0x191)]=_0x102eb1,this['_configService']=_0x4d1a98;let {..._0x2310ab}=_0x4c5915({},Y,this[_0x372e21(0x1c4)]);this[_0x372e21(0x1de)][_0x372e21(0x1cf)](_0x372e21(0x1d0),_0x2310ab);}['onStarting'](){const _0x3b64d5=_0x1bd327;this[_0x3b64d5(0x182)][_0x3b64d5(0x1c6)]([H]),this[_0x3b64d5(0x182)][_0x3b64d5(0x1c6)]([Q]),this['_injector']['get'](H),this['_injector'][_0x3b64d5(0x1a2)](Q),[U,Me,Pe,Fe,Ie,Ne][_0x3b64d5(0x1ac)](_0x353933=>this['disposeWithMe'](this[_0x3b64d5(0x191)]['registerCommand'](_0x353933)));}};V($,_0x1bd327(0x1bf),J),V($,_0x1bd327(0x1cd),Be),V($,_0x1bd327(0x1b3),Ve),V($,'type',_0x2864e1[_0x1bd327(0x1e3)]),$=Z([_0x5e8859(_0x5411ad,_0x8ce557),X(0x1,_0x30337f(_0x4af702)),X(0x2,_0x32af23),X(0x3,_0x4adc10)],$);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 _0x1377a2=_0x16e3;(function(_0xd3620e,_0x15d4c0){var _0x38674d=_0x16e3,_0x3c67dc=_0xd3620e();while(!![]){try{var _0x7df6d3=-parseInt(_0x38674d(0x203))/0x1*(-parseInt(_0x38674d(0x201))/0x2)+-parseInt(_0x38674d(0x1d5))/0x3*(-parseInt(_0x38674d(0x1c2))/0x4)+-parseInt(_0x38674d(0x1cb))/0x5*(-parseInt(_0x38674d(0x1c8))/0x6)+parseInt(_0x38674d(0x1e7))/0x7+-parseInt(_0x38674d(0x1ce))/0x8+-parseInt(_0x38674d(0x1ca))/0x9+parseInt(_0x38674d(0x200))/0xa*(-parseInt(_0x38674d(0x1fe))/0xb);if(_0x7df6d3===_0x15d4c0)break;else _0x3c67dc['push'](_0x3c67dc['shift']());}catch(_0x375018){_0x3c67dc['push'](_0x3c67dc['shift']());}}}(_0x3043,0x8d86b));import{DocsCodeCancelEmptyParagraphCommand as _0x4a3f19,DocsCodeExitCommand as _0x576da6,DocsCodeInsertCommand as _0x1699ab,DocsCodeModel as _0x1ade33,DocsCodeUpdateCommand as _0x2d2555,normalizeDocsCodeConfig as _0x16ea29}from'@univerjs-pro/docs-code';import{DataStreamTreeTokenType as _0x1d96d1,DocumentBlockRangeType as _0x7fd425,ICommandService as _0x19c939,Inject as _0x1e5ab3,Injector as _0x422279,generateRandomId as _0x28c01d}from'@univerjs/core';function _0x16e3(_0x2f792e,_0x3c09e6){_0x2f792e=_0x2f792e-0x1c2;var _0x304390=_0x3043();var _0x16e381=_0x304390[_0x2f792e];return _0x16e381;}function _0x3043(){var _0x4bfd4d=['2184141XbcYjI','toPrimitive','string','insertCode','default','blockRanges','_getDocumentData','body','BLOCK_END','_document','exitCode','_getBlockRange','map','find','_injector','slice','_getBlockRanges','blockType','3281215VbdAxX','join','getText','getCodes','save','CODE','blockId','cancelEmptyCodeParagraph','config','constructor','symbol','getId','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','getRange','call','getOwnPropertyDescriptor','length','defineProperty','startIndex','some','SECTION_BREAK','text','object','297dFxrpj','filter','137110FlYMgV','621326SUpKja','getConfig','1fJjHFF','extend','exit','updateConfig','getCodeConfig','syncExecuteCommand','decorate','4EMVNCU','get','_unitId','_blockId','replace','_createFDocumentCode','6ctrPou','getType','4102524zxCtiZ','128950rBnKaP','getCode','paragraph','1020168hAtnCO','function','findCodes','getCodeAt','endIndex','describe','from'];_0x3043=function(){return _0x4bfd4d;};return _0x3043();}import{FDocument as _0xda5b7d}from'@univerjs/docs/facade';function p(_0x302709){'@babel/helpers - typeof';var _0x40ef45=_0x16e3;return p=typeof Symbol==_0x40ef45(0x1cf)&&typeof Symbol['iterator']==_0x40ef45(0x1f1)?function(_0x507db4){return typeof _0x507db4;}:function(_0x25fb95){var _0x385a05=_0x40ef45;return _0x25fb95&&typeof Symbol==_0x385a05(0x1cf)&&_0x25fb95[_0x385a05(0x1f0)]===Symbol&&_0x25fb95!==Symbol['prototype']?'symbol':typeof _0x25fb95;},p(_0x302709);}function m(_0x50b178,_0x468825){var _0x2905ee=_0x16e3;if(p(_0x50b178)!=_0x2905ee(0x1fd)||!_0x50b178)return _0x50b178;var _0x4a618a=_0x50b178[Symbol[_0x2905ee(0x1d6)]];if(_0x4a618a!==void 0x0){var _0x337c1e=_0x4a618a[_0x2905ee(0x1f5)](_0x50b178,_0x468825||_0x2905ee(0x1d9));if(p(_0x337c1e)!=_0x2905ee(0x1fd))return _0x337c1e;throw TypeError(_0x2905ee(0x1f3));}return(_0x468825==='string'?String:Number)(_0x50b178);}function h(_0x325a55){var _0x4ba5fc=_0x16e3,_0x2b1475=m(_0x325a55,_0x4ba5fc(0x1d7));return p(_0x2b1475)==_0x4ba5fc(0x1f1)?_0x2b1475:_0x2b1475+'';}function g(_0x5bb7a8,_0x313c4b,_0x24425b){var _0x596e2e=_0x16e3;return(_0x313c4b=h(_0x313c4b))in _0x5bb7a8?Object[_0x596e2e(0x1f8)](_0x5bb7a8,_0x313c4b,{'value':_0x24425b,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x5bb7a8[_0x313c4b]=_0x24425b,_0x5bb7a8;}function _(_0x3aed7e,_0x73d234){return function(_0x4ce8b8,_0x179931){_0x73d234(_0x4ce8b8,_0x179931,_0x3aed7e);};}function v(_0x4e8d71,_0x3cbc2e,_0x2c2bd2,_0xcf4de3){var _0x115b7c=_0x16e3,_0x21664d=arguments[_0x115b7c(0x1f7)],_0x41c548=_0x21664d<0x3?_0x3cbc2e:_0xcf4de3===null?_0xcf4de3=Object[_0x115b7c(0x1f6)](_0x3cbc2e,_0x2c2bd2):_0xcf4de3,_0x26e3a0;if(typeof Reflect=='object'&&typeof Reflect[_0x115b7c(0x209)]==_0x115b7c(0x1cf))_0x41c548=Reflect[_0x115b7c(0x209)](_0x4e8d71,_0x3cbc2e,_0x2c2bd2,_0xcf4de3);else{for(var _0x1478f9=_0x4e8d71['length']-0x1;_0x1478f9>=0x0;_0x1478f9--)(_0x26e3a0=_0x4e8d71[_0x1478f9])&&(_0x41c548=(_0x21664d<0x3?_0x26e3a0(_0x41c548):_0x21664d>0x3?_0x26e3a0(_0x3cbc2e,_0x2c2bd2,_0x41c548):_0x26e3a0(_0x3cbc2e,_0x2c2bd2))||_0x41c548);}return _0x21664d>0x3&&_0x41c548&&Object[_0x115b7c(0x1f8)](_0x3cbc2e,_0x2c2bd2,_0x41c548),_0x41c548;}let y=class{constructor(_0x16e03e,_0x423d74,_0x4f0247){var _0x516163=_0x16e3;this[_0x516163(0x1de)]=_0x16e03e,this[_0x516163(0x1c5)]=_0x423d74,this[_0x516163(0x1e3)]=_0x4f0247,g(this,'_unitId',void 0x0),this[_0x516163(0x1c4)]=this[_0x516163(0x1de)]['getId']();}['getId'](){var _0x201083=_0x16e3;return this[_0x201083(0x1c5)];}[_0x1377a2(0x1f4)](){var _0x76c7c4=_0x1377a2;let _0x3c70aa=this[_0x76c7c4(0x1e0)]();return _0x3c70aa?{'blockId':_0x3c70aa[_0x76c7c4(0x1ed)],'endIndex':_0x3c70aa[_0x76c7c4(0x1d2)],'startIndex':_0x3c70aa[_0x76c7c4(0x1f9)]}:null;}[_0x1377a2(0x1e9)](){var _0x68366c=_0x1377a2,_0x231eed;let _0x4e4c1c=this[_0x68366c(0x1e0)](),_0x2940fb=(_0x231eed=this['_getDocumentData']()[_0x68366c(0x1dc)])==null?void 0x0:_0x231eed['dataStream'];return!_0x4e4c1c||!_0x2940fb?'':b(_0x2940fb[_0x68366c(0x1e4)](_0x4e4c1c[_0x68366c(0x1f9)]+0x1,_0x4e4c1c['endIndex']));}[_0x1377a2(0x1d3)](){var _0x241f53=_0x1377a2;let _0x4edeb4=this['getRange']();return _0x4edeb4?{..._0x4edeb4,'config':this[_0x241f53(0x202)](),'text':this[_0x241f53(0x1e9)](),'type':_0x7fd425[_0x241f53(0x1ec)]}:null;}[_0x1377a2(0x202)](){var _0x2192d5=_0x1377a2;return _0x16ea29(this['_injector'][_0x2192d5(0x1c3)](_0x1ade33)[_0x2192d5(0x207)](this[_0x2192d5(0x1c4)],this[_0x2192d5(0x1c5)]));}[_0x1377a2(0x206)](_0x2ff204){var _0x388709=_0x1377a2;return this[_0x388709(0x1e3)][_0x388709(0x1c3)](_0x19c939)[_0x388709(0x208)](_0x2d2555['id'],{'blockId':this[_0x388709(0x1c5)],'config':_0x2ff204[_0x388709(0x1ef)],'unitId':this['_unitId']});}[_0x1377a2(0x205)](_0x48d049){var _0x86d821=_0x1377a2;return this['_injector'][_0x86d821(0x1c3)](_0x19c939)[_0x86d821(0x208)](_0x576da6['id'],{'cursorOffset':_0x48d049,'unitId':this[_0x86d821(0x1c4)]});}['cancelEmptyParagraph'](_0x452853={}){var _0x2a439a=_0x1377a2;return this[_0x2a439a(0x1e3)][_0x2a439a(0x1c3)](_0x19c939)[_0x2a439a(0x208)](_0x4a3f19['id'],{..._0x452853,'unitId':this['_unitId']});}[_0x1377a2(0x1db)](){var _0x29ccfb=_0x1377a2;return this[_0x29ccfb(0x1de)]['save']();}[_0x1377a2(0x1e0)](){var _0x41ad60=_0x1377a2,_0x1f1c61;let _0x4cbe69=(_0x1f1c61=this[_0x41ad60(0x1db)]()[_0x41ad60(0x1dc)])==null||(_0x1f1c61=_0x1f1c61[_0x41ad60(0x1da)])==null?void 0x0:_0x1f1c61[_0x41ad60(0x1e2)](_0x196b02=>_0x196b02['blockId']===this[_0x41ad60(0x1c5)]&&_0x196b02[_0x41ad60(0x1e6)]===_0x7fd425[_0x41ad60(0x1ec)]);return _0x4cbe69==null?null:_0x4cbe69;}};y=v([_(0x2,_0x1e5ab3(_0x422279))],y);function b(_0x331aa5){var _0x2f8f2c=_0x1377a2;return Array[_0x2f8f2c(0x1d4)](_0x331aa5)[_0x2f8f2c(0x1e1)](_0x1d1d62=>_0x1d1d62===_0x1d96d1['PARAGRAPH']?'\x0a':_0x1d1d62)['filter'](_0x131396=>_0x131396!==_0x1d96d1['BLOCK_START']&&_0x131396!==_0x1d96d1[_0x2f8f2c(0x1dd)]&&_0x131396!==_0x1d96d1[_0x2f8f2c(0x1fb)])[_0x2f8f2c(0x1e8)]('')[_0x2f8f2c(0x1c6)](/\n$/,'');}var x=class extends _0xda5b7d{['getCodes'](){var _0x27ee66=_0x1377a2;return this[_0x27ee66(0x1e5)]()[_0x27ee66(0x1ff)](_0x31b11b=>_0x31b11b[_0x27ee66(0x1e6)]===_0x7fd425[_0x27ee66(0x1ec)])['map'](_0x28eec5=>this[_0x27ee66(0x1c7)](_0x28eec5[_0x27ee66(0x1ed)]));}[_0x1377a2(0x1cc)](_0x121f6a){var _0x252114=_0x1377a2;return this['_getBlockRanges']()[_0x252114(0x1fa)](_0xc30e2e=>_0xc30e2e[_0x252114(0x1ed)]===_0x121f6a&&_0xc30e2e[_0x252114(0x1e6)]===_0x7fd425[_0x252114(0x1ec)])?this[_0x252114(0x1c7)](_0x121f6a):null;}[_0x1377a2(0x1d1)](_0x35730a){var _0x1960da=_0x1377a2;let _0x417d5f=this[_0x1960da(0x1e5)]()[_0x1960da(0x1e2)](_0x516a1c=>_0x516a1c['blockType']===_0x7fd425[_0x1960da(0x1ec)]&&_0x516a1c[_0x1960da(0x1f9)]<=_0x35730a&&_0x35730a<=_0x516a1c[_0x1960da(0x1d2)]);return _0x417d5f?this['_createFDocumentCode'](_0x417d5f[_0x1960da(0x1ed)]):null;}['findCodeByText'](_0x502267){var _0x2da494;return(_0x2da494=this['findCodes'](_0x502267)[0x0])==null?null:_0x2da494;}[_0x1377a2(0x1d0)](_0x738335){var _0x172eb6=_0x1377a2;let _0x1b55ec=typeof _0x738335==_0x172eb6(0x1d7)?{'text':_0x738335}:_0x738335;return this[_0x172eb6(0x1ea)]()[_0x172eb6(0x1ff)](_0x24a8f2=>!(_0x1b55ec[_0x172eb6(0x1ed)]&&_0x24a8f2['getId']()!==_0x1b55ec['blockId']||_0x1b55ec[_0x172eb6(0x1fc)]&&!_0x24a8f2['getText']()['includes'](_0x1b55ec['text'])));}[_0x1377a2(0x1d8)](_0x35c6b8={},_0x333007={}){var _0x4e6229=_0x1377a2,_0x25ffa3;let _0x72adf1=this[_0x4e6229(0x1e3)]['get'](_0x19c939),_0xf89e76=S(_0x35c6b8)?{..._0x333007,...C(_0x35c6b8)}:_0x35c6b8,_0x2ae48a=(_0x25ffa3=_0xf89e76[_0x4e6229(0x1ed)])==null?_0x28c01d(0x6):_0x25ffa3;return _0x72adf1['syncExecuteCommand'](_0x1699ab['id'],{..._0xf89e76,'blockId':_0x2ae48a,'unitId':this[_0x4e6229(0x1f2)]()})?this[_0x4e6229(0x1c7)](_0x2ae48a):null;}[_0x1377a2(0x1df)](_0x2bb0de){var _0x54b4d4=_0x1377a2;return this[_0x54b4d4(0x1e3)]['get'](_0x19c939)['syncExecuteCommand'](_0x576da6['id'],{'cursorOffset':_0x2bb0de,'unitId':this[_0x54b4d4(0x1f2)]()});}[_0x1377a2(0x1ee)](_0xd993e1={}){var _0x3c124f=_0x1377a2;return this[_0x3c124f(0x1e3)]['get'](_0x19c939)['syncExecuteCommand'](_0x4a3f19['id'],{..._0xd993e1,'unitId':this[_0x3c124f(0x1f2)]()});}[_0x1377a2(0x1e5)](){var _0x3fceb6=_0x1377a2,_0x247d87,_0x25f16b;return(_0x247d87=(_0x25f16b=this[_0x3fceb6(0x1eb)]()[_0x3fceb6(0x1dc)])==null?void 0x0:_0x25f16b[_0x3fceb6(0x1da)])==null?[]:_0x247d87;}[_0x1377a2(0x1c7)](_0x3388db){var _0x5fe1a=_0x1377a2;return this[_0x5fe1a(0x1e3)]['createInstance'](y,this,_0x3388db);}};function S(_0x8dedce){var _0x4d93c2=_0x1377a2;return typeof _0x8dedce=='object'&&!!_0x8dedce&&typeof _0x8dedce['getKey']==_0x4d93c2(0x1cf)&&typeof _0x8dedce[_0x4d93c2(0x1f4)]==_0x4d93c2(0x1cf)&&typeof _0x8dedce[_0x4d93c2(0x1c9)]==_0x4d93c2(0x1cf)&&_0x8dedce['getType']()===_0x4d93c2(0x1cd);}function C(_0x423653){var _0x2817fe=_0x1377a2;return _0x423653[_0x2817fe(0x1f4)]();}_0xda5b7d[_0x1377a2(0x204)](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 _0x1bd327=_0x3851;(function(_0x2abd87,_0x3ecb6a){const _0xfdd857=_0x3851,_0x2bad8f=_0x2abd87();while(!![]){try{const _0x3699c0=-parseInt(_0xfdd857(0x1aa))/0x1*(-parseInt(_0xfdd857(0x202))/0x2)+parseInt(_0xfdd857(0x1d1))/0x3*(parseInt(_0xfdd857(0x184))/0x4)+parseInt(_0xfdd857(0x1b7))/0x5+-parseInt(_0xfdd857(0x18f))/0x6*(-parseInt(_0xfdd857(0x1f7))/0x7)+-parseInt(_0xfdd857(0x1b5))/0x8+-parseInt(_0xfdd857(0x195))/0x9*(parseInt(_0xfdd857(0x1ed))/0xa)+parseInt(_0xfdd857(0x183))/0xb;if(_0x3699c0===_0x3ecb6a)break;else _0x2bad8f['push'](_0x2bad8f['shift']());}catch(_0x4ae60a){_0x2bad8f['push'](_0x2bad8f['shift']());}}}(_0x27d7,0x63c31));import{BuildTextUtils as _0x1b614b,CommandType as _0xd6e375,DataStreamTreeTokenType as _0x217bb8,DependentOn as _0x5e8859,Disposable as _0x4a26dc,DocumentBlockRangeType as _0x6a5755,ICommandService as _0x32af23,IConfigService as _0x4adc10,IResourceManagerService as _0xca8f68,IUniverInstanceService as _0x33ba15,Inject as _0x30337f,Injector as _0x4af702,JSONX as _0x273043,Plugin as _0x394390,Tools as _0x4a3ab2,UniverInstanceType as _0x2864e1,createParagraphId as _0x48477c,generateRandomId as _0x414e01,merge as _0x4c5915}from'@univerjs/core';import{DocContentInsertService as _0xc64f97,DocSelectionManagerService as _0x35cf98,RichTextEditingMutation as _0x397e41,UniverDocsPlugin as _0x8ce557}from'@univerjs/docs';import{Subject as _0x39b06c}from'rxjs';import{UniverLicensePlugin as _0x5411ad}from'@univerjs-pro/license';const S={'language':_0x1bd327(0x1eb),'showLineNumbers':!0x1,'tabSize':0x4,'wrap':!0x0};function C(_0x31dc31){return{...S,..._0x31dc31};}function w(_0x3d7b04){const _0x2091d9=_0x1bd327;var _0x5c5da2;let _0x25f052=(_0x5c5da2=_0x3d7b04==null?void 0x0:_0x3d7b04['codes'])==null?{}:_0x5c5da2;return{'codes':Object[_0x2091d9(0x1a3)](Object[_0x2091d9(0x198)](_0x25f052)[_0x2091d9(0x1c8)](([_0x104c95,_0x23bf3c])=>[_0x104c95,C(_0x23bf3c)]))};}function T(_0x1c38df,_0xa492ab,_0x451d52){const _0x5b27e0=_0x1bd327;let _0x5c0500=w(_0x1c38df);return _0x5c0500[_0x5b27e0(0x1b6)][_0xa492ab]=C({..._0x5c0500[_0x5b27e0(0x1b6)][_0xa492ab],..._0x451d52}),_0x5c0500;}function re(_0x284a5a,_0x543d6a){let _0x54c0d6=w(_0x284a5a);return delete _0x54c0d6['codes'][_0x543d6a],_0x54c0d6;}function _0x27d7(){const _0x3967da=['docs-code.command.exit','length','object','endTokenOffset','BLOCK_END','startIndex','getCodeConfig','BLOCK_START','spaceBelow','_resourceManagerService','18TOHRBq','blockRanges','textRuns','filter','blockType','customDecorations','previousDocumentData','paragraphStyle','indentEnd','_injector','2428943nAUSAr','1187332uMxBUB','indentStart','toPrimitive','string','body','default','startOffset','parse','max','syncExecuteCommand','textStyle','11034QymvFI','getParagraphsInRange','_commandService','customBlocks','_initResource','docs-code.command.update','7497EeMbTR','getBody','find','entries','_resources','next','tables','getTextRanges','stringify','clear','deepClone','from','prototype','get','fromEntries','Document\x20body\x20is\x20required','some','paragraph','paragraphStartIndex','dispose','sectionBreaks','6569EBrDuG','function','forEach','endsWith','every','metadata','defineProperty','_setResource','DOC_CODE_PLUGIN','version','getUnitId','2890032iTqiVt','codes','1214830MxHpaB','docs-code.command.cancel-empty-paragraph','paragraphs','decorate','customRanges','iterator','getUniverDocInstance','monospace','pluginName','config','spaceAbove','SECTION_BREAK','call','_config','nextMetadata','add','direction','map','consumeInsertRange','registerPluginResource','right','commandService','packageName','cursorOffset','setConfig','docs-code.config','3fbHFxz','PARAGRAPH','unitId','range','_change$','removeUnit','getCurrentUnitOfType','model','docs-code.command.insert-below','COMMAND','CODE','compose','deserialize','_configService','constructor','getSnapshot','blockId','sort','UNIVER_DOC','paragraphId','slice','replaceOp','nextDocumentData','documentData','serialize','endOffset','javascript','min','6780jZpGQI','complete','dataStream','diffValue','endIndex','docs-code.command.insert','set','removeCode','_docsCodeModel','join','1960ntHLUl'];_0x27d7=function(){return _0x3967da;};return _0x27d7();}const ie=_0x1bd327(0x1be);function ae(_0x23f8fa){const _0x4f8099=_0x1bd327;var _0x53c1b3,_0x537c02,_0x48bc8e;let _0x403382=D(_0x23f8fa[_0x4f8099(0x1e8)]),_0x201e37=O(_0x403382),_0x50c400=se(_0x23f8fa[_0x4f8099(0x18a)],_0x23f8fa[_0x4f8099(0x1ea)]),_0x27ee38=_0x50c400?(_0x53c1b3=_0x201e37[_0x4f8099(0x203)])==null?void 0x0:_0x53c1b3['find'](_0x35a963=>_0x35a963[_0x4f8099(0x1fd)]===_0x50c400['startOffset']&&_0x35a963[_0x4f8099(0x1f1)]+0x1===_0x50c400[_0x4f8099(0x1ea)]):void 0x0,{startOffset:_0x4a13c3,endOffset:_0x24ca9a}=_0x27ee38?_0x50c400:ye(_0x201e37,_0x23f8fa['startOffset'],_0x23f8fa['endOffset']),_0x2c2028=Se(_0x201e37,_0x4a13c3,_0x24ca9a),_0x107bc9=(_0x537c02=_0x27ee38==null?void 0x0:_0x27ee38[_0x4f8099(0x1e1)])==null?_0x23f8fa['blockId']:_0x537c02,_0x55b0f3=T(_0x23f8fa['metadata'],_0x107bc9,{...S,..._0x23f8fa['config']});if(_0x27ee38)return _0x27ee38[_0x4f8099(0x206)]=_0x6a5755[_0x4f8099(0x1db)],oe(_0x201e37,_0x4a13c3,_0x24ca9a),he(_0x201e37,_0x4a13c3,_0x24ca9a,_0x2c2028),M(_0x201e37,_0x27ee38),{'nextDocumentData':_0x403382,'nextMetadata':_0x55b0f3,'cursorOffset':_0x4a13c3+0x1};if(_0x4a13c3===_0x24ca9a){var _0x4b604b,_0xe82787;let _0x19d496=''+_0x217bb8[_0x4f8099(0x1ff)]+_0x217bb8['PARAGRAPH']+_0x217bb8['BLOCK_END'];N(_0x201e37,_0x4a13c3,_0x19d496,{'paragraphs':[{'startIndex':0x1,'paragraphId':_0x48477c(new Set((_0x4b604b=_0x201e37['paragraphs'])==null?void 0x0:_0x4b604b[_0x4f8099(0x1c8)](_0x2e1183=>_0x2e1183[_0x4f8099(0x1e4)]))),'paragraphStyle':E(!0x0,!0x0,_0x2c2028)}],'blockRanges':[{'blockId':_0x107bc9,'blockType':_0x6a5755[_0x4f8099(0x1db)],'startIndex':0x0,'endIndex':_0x19d496['length']-0x1}]});let _0x285e87=(_0xe82787=_0x201e37['blockRanges'])==null?void 0x0:_0xe82787[_0x4f8099(0x197)](_0xa943c5=>_0xa943c5[_0x4f8099(0x1e1)]===_0x107bc9);return _0x285e87&&M(_0x201e37,_0x285e87),{'nextDocumentData':_0x403382,'nextMetadata':_0x55b0f3,'cursorOffset':_0x4a13c3+0x1};}N(_0x201e37,_0x24ca9a,_0x217bb8[_0x4f8099(0x1fc)]),N(_0x201e37,_0x4a13c3,_0x217bb8[_0x4f8099(0x1ff)]),he(_0x201e37,_0x4a13c3,_0x24ca9a+0x1,_0x2c2028);let _0x2aa7c7={'blockId':_0x107bc9,'blockType':_0x6a5755[_0x4f8099(0x1db)],'startIndex':_0x4a13c3,'endIndex':_0x24ca9a+0x1};return _0x201e37['blockRanges']=[...(_0x48bc8e=_0x201e37[_0x4f8099(0x203)])==null?[]:_0x48bc8e,_0x2aa7c7]['sort']((_0x424526,_0x127dfc)=>_0x424526['startIndex']-_0x127dfc[_0x4f8099(0x1fd)]),M(_0x201e37,_0x2aa7c7),{'nextDocumentData':_0x403382,'nextMetadata':_0x55b0f3,'cursorOffset':_0x4a13c3+0x1};}function oe(_0x2a7337,_0x3d91fd,_0x349e56){const _0x1b824b=_0x1bd327;var _0x56e92e;((_0x56e92e=_0x2a7337[_0x1b824b(0x1b9)])==null?[]:_0x56e92e)[_0x1b824b(0x205)](_0x24ce1f=>_0x24ce1f[_0x1b824b(0x1fd)]>_0x3d91fd&&_0x24ce1f[_0x1b824b(0x1fd)]<_0x349e56)['forEach'](_0x29adbc=>{const _0x419aed=_0x1b824b;var _0x317cde;let _0x48b2fe={...(_0x317cde=_0x29adbc[_0x419aed(0x180)])==null?{}:_0x317cde};delete _0x48b2fe[_0x419aed(0x1c1)],delete _0x48b2fe[_0x419aed(0x200)],_0x29adbc['paragraphStyle']=_0x48b2fe;});}function se(_0x338db2,_0x61a3ec){const _0x4717bc=_0x1bd327;return _0x338db2==null||_0x61a3ec==null||_0x338db2===_0x61a3ec?null:{'startOffset':Math[_0x4717bc(0x1ec)](_0x338db2,_0x61a3ec),'endOffset':Math[_0x4717bc(0x18c)](_0x338db2,_0x61a3ec)};}function ce(_0xb755f3){const _0x645c8b=_0x1bd327;return{'nextDocumentData':D(_0xb755f3['documentData']),'nextMetadata':T(_0xb755f3[_0x645c8b(0x1af)],_0xb755f3[_0x645c8b(0x1e1)],_0xb755f3['config']),'cursorOffset':0x0};}function le(_0x455e25){const _0x22f05a=_0x1bd327;var _0x4d1670,_0x2c605d;let _0x426749=D(_0x455e25['documentData']),_0x4ab092=O(_0x426749),_0x43ec65=me(_0x4ab092,_0x455e25[_0x22f05a(0x1ce)]);if(!_0x43ec65)return null;let _0x3d2a3b=_e(_0x4ab092,_0x43ec65),_0x99fdf9=_0x3d2a3b[_0x3d2a3b[_0x22f05a(0x1f9)]-0x1];if(!_0x99fdf9||!ve(_0x4ab092,_0x43ec65,_0x99fdf9)||_0x455e25[_0x22f05a(0x1ce)]<_0x99fdf9[_0x22f05a(0x1fd)])return null;let _0x1ce0c8=A(_0x4ab092,_0x43ec65,_0x99fdf9);if(_0x1ce0c8>=_0x43ec65[_0x22f05a(0x1f1)])return null;_0x4ab092[_0x22f05a(0x1ef)]=[_0x4ab092[_0x22f05a(0x1ef)]['slice'](0x0,_0x1ce0c8),_0x217bb8['BLOCK_END'],_0x4ab092['dataStream'][_0x22f05a(0x1e5)](_0x1ce0c8,_0x43ec65[_0x22f05a(0x1f1)]),_0x4ab092[_0x22f05a(0x1ef)]['slice'](_0x43ec65[_0x22f05a(0x1f1)]+0x1)][_0x22f05a(0x1f6)](''),R(_0x4ab092[_0x22f05a(0x1b9)],_0x1ce0c8,_0x43ec65[_0x22f05a(0x1f1)],0x1),R(_0x4ab092['sectionBreaks'],_0x1ce0c8,_0x43ec65[_0x22f05a(0x1f1)],0x1),R(_0x4ab092[_0x22f05a(0x192)],_0x1ce0c8,_0x43ec65['endIndex'],0x1),ke(_0x4ab092['textRuns'],_0x1ce0c8,_0x43ec65[_0x22f05a(0x1f1)],0x1),z(_0x4ab092[_0x22f05a(0x19b)],_0x1ce0c8,_0x43ec65[_0x22f05a(0x1f1)],0x1),z(_0x4ab092[_0x22f05a(0x1bb)],_0x1ce0c8,_0x43ec65[_0x22f05a(0x1f1)],0x1),z(_0x4ab092[_0x22f05a(0x207)],_0x1ce0c8,_0x43ec65[_0x22f05a(0x1f1)],0x1),(_0x4d1670=_0x4ab092[_0x22f05a(0x203)])==null||_0x4d1670[_0x22f05a(0x1ac)](_0x5e28de=>{const _0x59c812=_0x22f05a;_0x5e28de===_0x43ec65||_0x5e28de[_0x59c812(0x1e1)]===_0x43ec65[_0x59c812(0x1e1)]?_0x5e28de[_0x59c812(0x1f1)]=_0x1ce0c8:_0x5e28de[_0x59c812(0x1fd)]>=_0x1ce0c8&&_0x5e28de[_0x59c812(0x1fd)]<_0x43ec65[_0x59c812(0x1f1)]&&(_0x5e28de[_0x59c812(0x1fd)]+=0x1,_0x5e28de[_0x59c812(0x1f1)]+=0x1);});let _0x8db22e=_e(_0x4ab092,{..._0x43ec65,'endIndex':_0x1ce0c8});_0x8db22e[_0x22f05a(0x1ac)]((_0x1bd4e6,_0x3892c6)=>{const _0x1ad551=_0x22f05a;var _0xec73cf;_0x1bd4e6[_0x1ad551(0x180)]={...(_0xec73cf=_0x1bd4e6[_0x1ad551(0x180)])==null?{}:_0xec73cf,...E(_0x3892c6===0x0,_0x3892c6===_0x8db22e['length']-0x1)};});let _0x2c4de4=(_0x2c605d=_0x4ab092['paragraphs'])==null?void 0x0:_0x2c605d['find'](_0x56c9fb=>_0x56c9fb[_0x22f05a(0x1fd)]===_0x1ce0c8+0x1);return _0x2c4de4&&(_0x2c4de4['paragraphStyle']=ge(_0x2c4de4['paragraphStyle'])),{'nextDocumentData':_0x426749,'cursorOffset':_0x1ce0c8+0x1};}function ue(_0x41ad2b){const _0x1a93ff=_0x1bd327;let _0x1efb5c=D(_0x41ad2b['documentData']),_0x349403=O(_0x1efb5c),_0x34162b=me(_0x349403,_0x41ad2b[_0x1a93ff(0x1ce)]);return _0x34162b&&de(_0x1efb5c,_0x349403,_0x34162b,_0x41ad2b['cursorOffset'],_0x41ad2b[_0x1a93ff(0x1a7)])||null;}function de(_0x2aa5e5,_0x2b19a5,_0x41467a,_0x1b181a,_0x3f47af){const _0x36c2b2=_0x1bd327;let _0x3b326a=we(_0x2b19a5,_0x41467a,_0x1b181a,_0x3f47af);if(!_0x3b326a)return null;let _0x4793d9=_0x3b326a[_0x36c2b2(0x1fb)]-0x1;return Te(_0x2b19a5,_0x3b326a[_0x36c2b2(0x1a6)][_0x36c2b2(0x1fd)],_0x3b326a['paragraph'][_0x36c2b2(0x1fd)]+0x1),{'nextDocumentData':_0x2aa5e5,'cursorOffset':_0x4793d9};}function fe(_0x21fe89,_0x34897b){const _0x11c956=_0x1bd327;var _0x385980;return _0x21fe89==null||(_0x385980=_0x21fe89[_0x11c956(0x203)])==null?void 0x0:_0x385980[_0x11c956(0x197)](_0x26c736=>_0x26c736[_0x11c956(0x206)]===_0x6a5755['CODE']&&_0x26c736[_0x11c956(0x1fd)]<=_0x34897b&&_0x34897b<=_0x26c736[_0x11c956(0x1f1)]);}function pe(_0x56192e){const _0x5f05ea=_0x1bd327;var _0x23a9a6;let _0x11282a=_0x56192e['documentData'][_0x5f05ea(0x188)];if(!_0x11282a)return!0x1;let _0x57709c=_0x56192e[_0x5f05ea(0x1c7)]==='left'?_0x56192e['cursorOffset']-0x1:_0x56192e[_0x5f05ea(0x1ce)],_0x39fd08=_0x56192e['direction']===_0x5f05ea(0x1cb)?_0x56192e[_0x5f05ea(0x1ce)]+0x1:_0x57709c;return((_0x23a9a6=_0x11282a['blockRanges'])==null?[]:_0x23a9a6)[_0x5f05ea(0x1a5)](_0x3f6abd=>_0x3f6abd[_0x5f05ea(0x206)]===_0x6a5755['CODE']?_0x57709c===_0x3f6abd[_0x5f05ea(0x1fd)]||_0x57709c===_0x3f6abd[_0x5f05ea(0x1f1)]||_0x39fd08===_0x3f6abd[_0x5f05ea(0x1fd)]||_0x39fd08===_0x3f6abd[_0x5f05ea(0x1f1)]:!0x1);}function me(_0x2c6898,_0xf4ff8){const _0x5d399e=_0x1bd327;var _0x472668;return(_0x472668=_0x2c6898[_0x5d399e(0x203)])==null?void 0x0:_0x472668[_0x5d399e(0x197)](_0xb61d1b=>{const _0x5d37d8=_0x5d399e;let _0x1b51c6=j(_0x2c6898,_0xb61d1b);return _0xb61d1b['blockType']===_0x6a5755['CODE']&&_0xb61d1b[_0x5d37d8(0x1fd)]<=_0xf4ff8&&_0xf4ff8<=_0x1b51c6+0x2;});}function E(_0x458b7d,_0x489504,_0x2bc312=!0x1){return{'indentEnd':{'v':0x14},'indentStart':{'v':0x14},..._0x458b7d&&_0x2bc312?{'spaceAbove':{'v':0x8}}:{},'textStyle':{'ff':ie,'fs':0xc}};}function he(_0x44be7c,_0x4bc7e9,_0x25ba3d,_0x30a93c=!0x1){const _0x5cd192=_0x1bd327;var _0x2ce1ac;let _0x5344c5=((_0x2ce1ac=_0x44be7c[_0x5cd192(0x1b9)])==null?[]:_0x2ce1ac)[_0x5cd192(0x205)](_0x3f030f=>_0x3f030f[_0x5cd192(0x1fd)]>_0x4bc7e9&&_0x3f030f[_0x5cd192(0x1fd)]<_0x25ba3d);_0x5344c5[_0x5cd192(0x1ac)]((_0x5f0914,_0x3dcf59)=>{const _0x9d20d5=_0x5cd192;var _0x8b41d2;_0x5f0914[_0x9d20d5(0x180)]={...(_0x8b41d2=_0x5f0914[_0x9d20d5(0x180)])==null?{}:_0x8b41d2,...E(_0x3dcf59===0x0,_0x3dcf59===_0x5344c5['length']-0x1,_0x30a93c)};});}function ge(_0x4ad119){const _0x5535b6=_0x1bd327;var _0xce39d,_0x144fd5;let _0x45235c={..._0x4ad119==null?{}:_0x4ad119};return delete _0x45235c[_0x5535b6(0x181)],delete _0x45235c[_0x5535b6(0x185)],delete _0x45235c[_0x5535b6(0x1c1)],delete _0x45235c['spaceBelow'],((_0xce39d=_0x45235c[_0x5535b6(0x18e)])==null?void 0x0:_0xce39d['ff'])===ie&&((_0x144fd5=_0x45235c['textStyle'])==null?void 0x0:_0x144fd5['fs'])===0xc&&delete _0x45235c['textStyle'],_0x45235c;}function _e(_0x39acef,_0x19b342){const _0x264dfc=_0x1bd327;var _0x384293;let _0x84bf9e=j(_0x39acef,_0x19b342);return((_0x384293=_0x39acef['paragraphs'])==null?[]:_0x384293)[_0x264dfc(0x205)](_0x136ab6=>_0x136ab6[_0x264dfc(0x1fd)]>_0x19b342[_0x264dfc(0x1fd)]&&_0x136ab6['startIndex']<_0x84bf9e);}function ve(_0x5dc6d1,_0x227382,_0x483b94){const _0xaee304=_0x1bd327;let _0x24a3fe=A(_0x5dc6d1,_0x227382,_0x483b94),_0x49d44c=_0x5dc6d1['dataStream'][_0xaee304(0x1e5)](_0x24a3fe,_0x483b94[_0xaee304(0x1fd)]);return Array[_0xaee304(0x1a0)](_0x49d44c)['every'](_0x19949c=>_0x19949c===_0x217bb8[_0xaee304(0x1ff)]||_0x19949c===_0x217bb8[_0xaee304(0x1fc)]);}function D(_0x4e4dd3){const _0x41d14f=_0x1bd327;return _0x4a3ab2[_0x41d14f(0x19f)](_0x4e4dd3);}function O(_0x1bea0e){const _0x4865fa=_0x1bd327;if(!_0x1bea0e[_0x4865fa(0x188)])throw Error(_0x4865fa(0x1a4));return _0x1bea0e['body'];}function ye(_0x49c63f,_0x4337e4,_0xda48a8){const _0x577f82=_0x1bd327;if(_0x4337e4==null||_0xda48a8==null){let _0xfd5252=xe(_0x49c63f);return{'startOffset':_0xfd5252,'endOffset':_0xfd5252};}let _0x116a08=Math[_0x577f82(0x1ec)](_0x4337e4,_0xda48a8),_0x537020=Math[_0x577f82(0x18c)](_0x4337e4,_0xda48a8);if(_0x116a08===_0x537020){let _0x34e1e1=be(_0x49c63f,_0x116a08);return{'startOffset':_0x34e1e1,'endOffset':_0x34e1e1};}return Ce(_0x49c63f,_0x116a08,_0x537020);}function be(_0x35c68a,_0xa9c61b){const _0x8b96db=_0x1bd327;return _0xa9c61b===0x0&&_0x35c68a[_0x8b96db(0x1ef)][0x0]===_0x217bb8[_0x8b96db(0x1d2)]?0x1:_0xa9c61b;}function xe(_0x56bc62){const _0x4ee74d=_0x1bd327;return _0x56bc62[_0x4ee74d(0x1ef)][_0x4ee74d(0x1ad)](_0x217bb8['SECTION_BREAK'])?Math[_0x4ee74d(0x18c)](0x0,_0x56bc62['dataStream'][_0x4ee74d(0x1f9)]-0x1):_0x56bc62[_0x4ee74d(0x1ef)]['length'];}function Se(_0x3455a9,_0x3495ae,_0xa65481){const _0x393514=_0x1bd327;var _0x35a43b;let _0x37ce59=Math['min'](_0x3495ae,_0xa65481),_0x1b3cde=Math[_0x393514(0x18c)](_0x3495ae,_0xa65481);return!!((_0x35a43b=_0x3455a9[_0x393514(0x19b)])!=null&&_0x35a43b[_0x393514(0x1a5)](_0x408f38=>_0x37ce59>_0x408f38[_0x393514(0x1fd)]&&_0x37ce59<_0x408f38[_0x393514(0x1f1)]||_0x1b3cde>_0x408f38[_0x393514(0x1fd)]&&_0x1b3cde<_0x408f38[_0x393514(0x1f1)]||_0x37ce59<=_0x408f38['startIndex']&&_0x1b3cde>=_0x408f38[_0x393514(0x1f1)]));}function Ce(_0xd26515,_0x4a7336,_0x33153e){const _0x3da9ec=_0x1bd327;var _0x151edc,_0x5411e1;let _0x22d7b6=[...(_0x151edc=_0xd26515[_0x3da9ec(0x1b9)])==null?[]:_0x151edc][_0x3da9ec(0x1e2)]((_0x99b405,_0x59d2b1)=>_0x99b405[_0x3da9ec(0x1fd)]-_0x59d2b1[_0x3da9ec(0x1fd)]),_0x2aa74e=_0x22d7b6[_0x3da9ec(0x197)]((_0x2c17e0,_0x390a6e)=>(_0x390a6e===0x0?0x0:_0x22d7b6[_0x390a6e-0x1][_0x3da9ec(0x1fd)]+0x1)<=_0x4a7336&&_0x4a7336<=_0x2c17e0[_0x3da9ec(0x1fd)]),_0x9698d1=(_0x5411e1=_0x22d7b6[_0x3da9ec(0x197)](_0x387917=>_0x387917[_0x3da9ec(0x1fd)]>=_0x33153e-0x1))==null?_0x22d7b6[_0x22d7b6[_0x3da9ec(0x1f9)]-0x1]:_0x5411e1;return{'startOffset':_0x2aa74e?k(_0x22d7b6,_0x2aa74e):_0x4a7336,'endOffset':_0x9698d1?_0x9698d1[_0x3da9ec(0x1fd)]+0x1:_0x33153e};}function k(_0x4f80a2,_0x7f6a8){const _0x50d442=_0x1bd327;let _0x49d983=_0x4f80a2['indexOf'](_0x7f6a8);return _0x49d983>0x0?_0x4f80a2[_0x49d983-0x1][_0x50d442(0x1fd)]+0x1:0x0;}function A(_0x4e7661,_0x326d5f,_0x19ca94){const _0x35eadf=_0x1bd327;var _0x3a3fcb;return Math[_0x35eadf(0x18c)](k((_0x3a3fcb=_0x4e7661[_0x35eadf(0x1b9)])==null?[]:_0x3a3fcb,_0x19ca94),_0x326d5f[_0x35eadf(0x1fd)]+0x1);}function j(_0x37a3e0,_0x437f7f){const _0x598c77=_0x1bd327;return _0x37a3e0[_0x598c77(0x1ef)][_0x437f7f[_0x598c77(0x1f1)]]===_0x217bb8[_0x598c77(0x1fc)]?_0x437f7f['endIndex']:_0x37a3e0[_0x598c77(0x1ef)][_0x437f7f[_0x598c77(0x1f1)]+0x1]===_0x217bb8['BLOCK_END']?_0x437f7f['endIndex']+0x1:_0x437f7f[_0x598c77(0x1f1)];}function we(_0x50d5b5,_0xec2ffe,_0x5aeec5,_0x255f5f){const _0x5f2bb5=_0x1bd327;var _0x5b8c3b,_0x418197;let _0x184e23=j(_0x50d5b5,_0xec2ffe),_0x1f6762=((_0x5b8c3b=_0x50d5b5[_0x5f2bb5(0x1b9)])==null?[]:_0x5b8c3b)['find'](_0x22c608=>_0x22c608[_0x5f2bb5(0x1fd)]===_0x184e23+0x1);if(!_0x1f6762||_0x255f5f!=null&&_0x1f6762['startIndex']!==_0x255f5f||_0x5aeec5<_0x184e23||_0x5aeec5>_0x1f6762[_0x5f2bb5(0x1fd)]+0x1||_0x50d5b5['dataStream'][_0x1f6762[_0x5f2bb5(0x1fd)]]!==_0x217bb8[_0x5f2bb5(0x1d2)])return null;let _0x5b6aac=k((_0x418197=_0x50d5b5[_0x5f2bb5(0x1b9)])==null?[]:_0x418197,_0x1f6762),_0x4e092a=_0x50d5b5['dataStream'][_0x5f2bb5(0x1e5)](_0x5b6aac,_0x1f6762[_0x5f2bb5(0x1fd)]);return Array[_0x5f2bb5(0x1a0)](_0x4e092a)[_0x5f2bb5(0x1ae)](_0x3f70ae=>_0x3f70ae===_0x217bb8['BLOCK_END'])?{'paragraph':_0x1f6762,'endTokenOffset':_0x184e23}:null;}function M(_0x3975cf,_0x4296b8){const _0x275dbc=_0x1bd327;var _0x4ad9e1;let _0x14d249=j(_0x3975cf,_0x4296b8),_0x10f7ff=_0x3975cf[_0x275dbc(0x1ef)][_0x14d249+0x1];_0x10f7ff!==_0x217bb8[_0x275dbc(0x1c2)]&&_0x10f7ff!==void 0x0||N(_0x3975cf,_0x14d249+0x1,_0x217bb8[_0x275dbc(0x1d2)],{'paragraphs':[{'startIndex':0x0,'paragraphId':_0x48477c(new Set((_0x4ad9e1=_0x3975cf['paragraphs'])==null?void 0x0:_0x4ad9e1['map'](_0x557883=>_0x557883['paragraphId'])))}]});}function N(_0xa28d4e,_0x2c44e7,_0x167a30,_0x175274={}){const _0x56d5f8=_0x1bd327;var _0x47ae69,_0x36f9db;if(_0x167a30){if(_0xa28d4e[_0x56d5f8(0x1ef)]=''+_0xa28d4e[_0x56d5f8(0x1ef)][_0x56d5f8(0x1e5)](0x0,_0x2c44e7)+_0x167a30+_0xa28d4e[_0x56d5f8(0x1ef)][_0x56d5f8(0x1e5)](_0x2c44e7),Ee(_0xa28d4e,_0x2c44e7,_0x167a30[_0x56d5f8(0x1f9)]),(_0x47ae69=_0x175274[_0x56d5f8(0x1b9)])!=null&&_0x47ae69['length']){var _0x31db16;_0xa28d4e['paragraphs']=[...(_0x31db16=_0xa28d4e[_0x56d5f8(0x1b9)])==null?[]:_0x31db16,..._0x175274[_0x56d5f8(0x1b9)][_0x56d5f8(0x1c8)](_0x403e1a=>({..._0x403e1a,'startIndex':_0x403e1a['startIndex']+_0x2c44e7}))][_0x56d5f8(0x1e2)]((_0x26b6dd,_0x58a042)=>_0x26b6dd[_0x56d5f8(0x1fd)]-_0x58a042[_0x56d5f8(0x1fd)]);}if((_0x36f9db=_0x175274[_0x56d5f8(0x203)])!=null&&_0x36f9db[_0x56d5f8(0x1f9)]){var _0x30079;_0xa28d4e[_0x56d5f8(0x203)]=[...(_0x30079=_0xa28d4e['blockRanges'])==null?[]:_0x30079,..._0x175274['blockRanges'][_0x56d5f8(0x1c8)](_0x1bd614=>({..._0x1bd614,'startIndex':_0x1bd614['startIndex']+_0x2c44e7,'endIndex':_0x1bd614[_0x56d5f8(0x1f1)]+_0x2c44e7}))][_0x56d5f8(0x1e2)]((_0x1ae35f,_0x29b703)=>_0x1ae35f[_0x56d5f8(0x1fd)]-_0x29b703['startIndex']);}}}function Te(_0xf71c93,_0x138d59,_0x352d52){const _0x21982d=_0x1bd327;let _0xc9ddd0=_0x352d52-_0x138d59;_0xf71c93[_0x21982d(0x1ef)]=''+_0xf71c93[_0x21982d(0x1ef)][_0x21982d(0x1e5)](0x0,_0x138d59)+_0xf71c93[_0x21982d(0x1ef)][_0x21982d(0x1e5)](_0x352d52),De(_0xf71c93,_0x138d59,_0xc9ddd0);}function Ee(_0x200e2c,_0x55851a,_0x3b608a){const _0x23db52=_0x1bd327;_0x200e2c[_0x23db52(0x1b9)]=P(_0x200e2c['paragraphs'],_0x55851a,_0x3b608a),_0x200e2c['sectionBreaks']=P(_0x200e2c[_0x23db52(0x1a9)],_0x55851a,_0x3b608a),_0x200e2c[_0x23db52(0x192)]=P(_0x200e2c[_0x23db52(0x192)],_0x55851a,_0x3b608a),_0x200e2c[_0x23db52(0x204)]=Oe(_0x200e2c[_0x23db52(0x204)],_0x55851a,_0x3b608a),_0x200e2c[_0x23db52(0x19b)]=I(_0x200e2c[_0x23db52(0x19b)],_0x55851a,_0x3b608a),_0x200e2c[_0x23db52(0x1bb)]=I(_0x200e2c['customRanges'],_0x55851a,_0x3b608a),_0x200e2c['customDecorations']=I(_0x200e2c[_0x23db52(0x207)],_0x55851a,_0x3b608a),_0x200e2c['blockRanges']=I(_0x200e2c[_0x23db52(0x203)],_0x55851a,_0x3b608a);}function De(_0x4d39c7,_0xcb9b1f,_0x208f86){const _0x1f2d6f=_0x1bd327;var _0x30d90c,_0x57fc56;_0x4d39c7[_0x1f2d6f(0x1b9)]=F(_0x4d39c7[_0x1f2d6f(0x1b9)],_0xcb9b1f,_0x208f86),_0x4d39c7[_0x1f2d6f(0x1a9)]=F(_0x4d39c7[_0x1f2d6f(0x1a9)],_0xcb9b1f,_0x208f86),_0x4d39c7['customBlocks']=F(_0x4d39c7[_0x1f2d6f(0x192)],_0xcb9b1f,_0x208f86),_0x4d39c7[_0x1f2d6f(0x204)]=(_0x30d90c=L((_0x57fc56=_0x4d39c7[_0x1f2d6f(0x204)])==null?void 0x0:_0x57fc56[_0x1f2d6f(0x1c8)](_0x36c2a2=>({..._0x36c2a2,'startIndex':_0x36c2a2['st'],'endIndex':_0x36c2a2['ed']})),_0xcb9b1f,_0x208f86))==null?void 0x0:_0x30d90c[_0x1f2d6f(0x1c8)](_0x4b84b9=>{let {startIndex:_0x5da132,endIndex:_0x4d29f3,..._0x3788e8}=_0x4b84b9;return{..._0x3788e8,'st':_0x5da132,'ed':_0x4d29f3};}),_0x4d39c7[_0x1f2d6f(0x19b)]=L(_0x4d39c7[_0x1f2d6f(0x19b)],_0xcb9b1f,_0x208f86),_0x4d39c7[_0x1f2d6f(0x1bb)]=L(_0x4d39c7[_0x1f2d6f(0x1bb)],_0xcb9b1f,_0x208f86),_0x4d39c7[_0x1f2d6f(0x207)]=L(_0x4d39c7[_0x1f2d6f(0x207)],_0xcb9b1f,_0x208f86),_0x4d39c7['blockRanges']=L(_0x4d39c7[_0x1f2d6f(0x203)],_0xcb9b1f,_0x208f86);}function P(_0x4d9a0e,_0x33fb7e,_0x5eeb7d){const _0x8c3a7a=_0x1bd327;return _0x4d9a0e==null?void 0x0:_0x4d9a0e[_0x8c3a7a(0x1c8)](_0x2b76b8=>_0x2b76b8[_0x8c3a7a(0x1fd)]>=_0x33fb7e?{..._0x2b76b8,'startIndex':_0x2b76b8[_0x8c3a7a(0x1fd)]+_0x5eeb7d}:_0x2b76b8);}function F(_0x3b741,_0x3e1bbd,_0x53760b){const _0x119fcd=_0x1bd327;let _0x395b10=_0x3e1bbd+_0x53760b;return _0x3b741==null?void 0x0:_0x3b741[_0x119fcd(0x1c8)](_0x540d27=>_0x540d27['startIndex']>=_0x3e1bbd&&_0x540d27['startIndex']<_0x395b10?null:_0x540d27[_0x119fcd(0x1fd)]>=_0x395b10?{..._0x540d27,'startIndex':_0x540d27[_0x119fcd(0x1fd)]-_0x53760b}:_0x540d27)[_0x119fcd(0x205)](_0x49e67d=>_0x49e67d!=null);}function Oe(_0x1c1f0f,_0x3ab0bb,_0x3fec73){const _0xcd7fad=_0x1bd327;return _0x1c1f0f==null?void 0x0:_0x1c1f0f[_0xcd7fad(0x1c8)](_0x35900f=>_0x35900f['st']>=_0x3ab0bb?{..._0x35900f,'st':_0x35900f['st']+_0x3fec73,'ed':_0x35900f['ed']+_0x3fec73}:_0x35900f['ed']>_0x3ab0bb?{..._0x35900f,'ed':_0x35900f['ed']+_0x3fec73}:_0x35900f);}function I(_0xc008e9,_0x527f21,_0xca30d2){const _0x17b99d=_0x1bd327;return _0xc008e9==null?void 0x0:_0xc008e9[_0x17b99d(0x1c8)](_0x858c64=>_0x858c64[_0x17b99d(0x1fd)]>=_0x527f21?{..._0x858c64,'startIndex':_0x858c64[_0x17b99d(0x1fd)]+_0xca30d2,'endIndex':_0x858c64[_0x17b99d(0x1f1)]+_0xca30d2}:_0x858c64[_0x17b99d(0x1f1)]>=_0x527f21?{..._0x858c64,'endIndex':_0x858c64[_0x17b99d(0x1f1)]+_0xca30d2}:_0x858c64);}function L(_0x27156c,_0x454c7d,_0x24f59c){const _0x49a940=_0x1bd327;let _0x5e3ddb=_0x454c7d+_0x24f59c;return _0x27156c==null?void 0x0:_0x27156c['map'](_0x1ce14b=>_0x1ce14b[_0x49a940(0x1fd)]>=_0x454c7d&&_0x1ce14b['endIndex']<_0x5e3ddb?null:_0x1ce14b[_0x49a940(0x1fd)]>=_0x5e3ddb?{..._0x1ce14b,'startIndex':_0x1ce14b[_0x49a940(0x1fd)]-_0x24f59c,'endIndex':_0x1ce14b[_0x49a940(0x1f1)]-_0x24f59c}:_0x1ce14b[_0x49a940(0x1f1)]>=_0x454c7d?{..._0x1ce14b,'startIndex':_0x1ce14b['startIndex']<_0x454c7d?_0x1ce14b[_0x49a940(0x1fd)]:_0x454c7d,'endIndex':Math['max'](_0x454c7d,_0x1ce14b[_0x49a940(0x1f1)]-_0x24f59c)}:_0x1ce14b)[_0x49a940(0x205)](_0xe31228=>_0xe31228!=null);}function R(_0x3b14de,_0x535110,_0x3ffa3a,_0x3b3057){_0x3b14de==null||_0x3b14de['forEach'](_0x4cf0d0=>{const _0x3746eb=_0x3851;_0x4cf0d0[_0x3746eb(0x1fd)]>=_0x535110&&_0x4cf0d0[_0x3746eb(0x1fd)]<_0x3ffa3a&&(_0x4cf0d0[_0x3746eb(0x1fd)]+=_0x3b3057);});}function ke(_0x2f7b24,_0x3ffb3e,_0xd534d9,_0xf7faa0){const _0xc99b3f=_0x1bd327;_0x2f7b24==null||_0x2f7b24[_0xc99b3f(0x1ac)](_0x36ab66=>{_0x36ab66['st']>=_0x3ffb3e&&_0x36ab66['st']<_0xd534d9?(_0x36ab66['st']+=_0xf7faa0,_0x36ab66['ed']+=_0xf7faa0):_0x36ab66['ed']>_0x3ffb3e&&_0x36ab66['ed']<_0xd534d9&&(_0x36ab66['ed']+=_0xf7faa0);});}function z(_0x153e56,_0x16d801,_0x315824,_0xf8c1bf){const _0x2cdbab=_0x1bd327;_0x153e56==null||_0x153e56[_0x2cdbab(0x1ac)](_0xed04af=>{const _0x5c3d08=_0x2cdbab;_0xed04af[_0x5c3d08(0x1fd)]>=_0x16d801&&_0xed04af[_0x5c3d08(0x1fd)]<_0x315824?(_0xed04af[_0x5c3d08(0x1fd)]+=_0xf8c1bf,_0xed04af[_0x5c3d08(0x1f1)]+=_0xf8c1bf):_0xed04af[_0x5c3d08(0x1f1)]>_0x16d801&&_0xed04af['endIndex']<_0x315824&&(_0xed04af[_0x5c3d08(0x1f1)]+=_0xf8c1bf);});}function B(_0x453884){'@babel/helpers - typeof';const _0x298355=_0x1bd327;return B=typeof Symbol==_0x298355(0x1ab)&&typeof Symbol[_0x298355(0x1bc)]=='symbol'?function(_0x3a6add){return typeof _0x3a6add;}:function(_0x20ef5b){const _0x142d6a=_0x298355;return _0x20ef5b&&typeof Symbol==_0x142d6a(0x1ab)&&_0x20ef5b[_0x142d6a(0x1df)]===Symbol&&_0x20ef5b!==Symbol[_0x142d6a(0x1a1)]?'symbol':typeof _0x20ef5b;},B(_0x453884);}function Ae(_0x32bc2b,_0xb504e8){const _0x50839f=_0x1bd327;if(B(_0x32bc2b)!=_0x50839f(0x1fa)||!_0x32bc2b)return _0x32bc2b;var _0x1093cd=_0x32bc2b[Symbol[_0x50839f(0x186)]];if(_0x1093cd!==void 0x0){var _0x403ab9=_0x1093cd[_0x50839f(0x1c3)](_0x32bc2b,_0xb504e8||_0x50839f(0x189));if(B(_0x403ab9)!=_0x50839f(0x1fa))return _0x403ab9;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0xb504e8===_0x50839f(0x187)?String:Number)(_0x32bc2b);}function je(_0xb79d14){const _0x49a588=_0x1bd327;var _0x22a035=Ae(_0xb79d14,_0x49a588(0x187));return B(_0x22a035)=='symbol'?_0x22a035:_0x22a035+'';}function V(_0x23e699,_0xfbc1c1,_0x3096f0){const _0x44cb34=_0x1bd327;return(_0xfbc1c1=je(_0xfbc1c1))in _0x23e699?Object[_0x44cb34(0x1b0)](_0x23e699,_0xfbc1c1,{'value':_0x3096f0,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x23e699[_0xfbc1c1]=_0x3096f0,_0x23e699;}var H=class extends _0x4a26dc{constructor(..._0x16ff2e){const _0x34cc19=_0x1bd327;super(..._0x16ff2e),V(this,_0x34cc19(0x199),new Map()),V(this,_0x34cc19(0x1d5),new _0x39b06c()),V(this,'change$',this[_0x34cc19(0x1d5)]['asObservable']());}[_0x1bd327(0x1fe)](_0x5d0c6a,_0x3a910a){const _0x56b25c=_0x1bd327;return w(this[_0x56b25c(0x199)][_0x56b25c(0x1a2)](_0x5d0c6a))[_0x56b25c(0x1b6)][_0x3a910a];}['setCodeConfig'](_0x5ab6cc,_0x3b4e6f,_0x23847b){const _0x56731c=_0x1bd327;this['_setResource'](_0x5ab6cc,_0x3b4e6f,T(this[_0x56731c(0x199)][_0x56731c(0x1a2)](_0x5ab6cc),_0x3b4e6f,_0x23847b));}[_0x1bd327(0x1f4)](_0x3f323b,_0x3a18eb){const _0x4416b8=_0x1bd327;this[_0x4416b8(0x1b1)](_0x3f323b,_0x3a18eb,re(this[_0x4416b8(0x199)][_0x4416b8(0x1a2)](_0x3f323b),_0x3a18eb));}[_0x1bd327(0x1e9)](_0x2c8102){const _0x5966b5=_0x1bd327;return w(this[_0x5966b5(0x199)][_0x5966b5(0x1a2)](_0x2c8102));}['deserialize'](_0x14e27c,_0x291d84){const _0x96de54=_0x1bd327;this[_0x96de54(0x199)][_0x96de54(0x1f3)](_0x14e27c,w(_0x291d84)),this[_0x96de54(0x1d5)][_0x96de54(0x19a)]({'unitId':_0x14e27c});}[_0x1bd327(0x1d6)](_0x5c7260){const _0x444b4c=_0x1bd327;this[_0x444b4c(0x199)]['delete'](_0x5c7260),this[_0x444b4c(0x1d5)][_0x444b4c(0x19a)]({'unitId':_0x5c7260});}[_0x1bd327(0x1a8)](){const _0x582283=_0x1bd327;super[_0x582283(0x1a8)](),this['_resources'][_0x582283(0x19e)](),this[_0x582283(0x1d5)][_0x582283(0x1ee)]();}['_setResource'](_0x194146,_0x5d57ac,_0x446e5a){const _0x487ed6=_0x1bd327;this[_0x487ed6(0x199)][_0x487ed6(0x1f3)](_0x194146,_0x446e5a),this[_0x487ed6(0x1d5)]['next']({'unitId':_0x194146,'blockId':_0x5d57ac});}};const Me={'id':_0x1bd327(0x1d9),'type':_0xd6e375['COMMAND'],'handler':_0x29eb50=>{const _0x2183b6=_0x1bd327;let _0x246ac5=Le(_0x29eb50);if(_0x246ac5)return _0x29eb50['get'](_0x32af23)[_0x2183b6(0x18d)](U['id'],{'startOffset':_0x246ac5['startOffset'],'endOffset':_0x246ac5['endOffset'],'unitId':_0x246ac5['unitId']});let _0x5eb727=Re(_0x29eb50);if(!_0x5eb727)return!0x1;let _0x5880d4=_0x5eb727[_0x2183b6(0x1fd)]+0x1;return _0x29eb50[_0x2183b6(0x1a2)](_0x32af23)[_0x2183b6(0x18d)](U['id'],{'startOffset':_0x5880d4,'endOffset':_0x5880d4});}},Ne={'id':'docs-code.command.consume-boundary-delete','type':_0xd6e375[_0x1bd327(0x1da)],'handler':()=>!0x0},U={'id':_0x1bd327(0x1f2),'type':_0xd6e375[_0x1bd327(0x1da)],'handler':(_0x1f8820,_0x29352d)=>{const _0x2b5a3d=_0x1bd327;var _0x4ee1cc,_0x572f04,_0x62d625;let _0x205e36=W(_0x1f8820,_0x29352d==null?void 0x0:_0x29352d[_0x2b5a3d(0x1d3)]);if(!_0x205e36)return!0x1;let _0x4e0de2=G(_0x1f8820),_0x355e16=ae({'blockId':(_0x4ee1cc=_0x29352d==null?void 0x0:_0x29352d[_0x2b5a3d(0x1e1)])==null?_0x414e01(0x6):_0x4ee1cc,'config':_0x29352d==null?void 0x0:_0x29352d['config'],'documentData':_0x205e36[_0x2b5a3d(0x208)],'endOffset':(_0x572f04=_0x29352d==null?void 0x0:_0x29352d[_0x2b5a3d(0x1ea)])==null?_0x4e0de2==null?void 0x0:_0x4e0de2[_0x2b5a3d(0x1ea)]:_0x572f04,'metadata':_0x205e36[_0x2b5a3d(0x1d8)][_0x2b5a3d(0x1e9)](_0x205e36[_0x2b5a3d(0x1d3)]),'startOffset':(_0x62d625=_0x29352d==null?void 0x0:_0x29352d['startOffset'])==null?_0x4e0de2==null?void 0x0:_0x4e0de2['startOffset']:_0x62d625}),_0x2c26c2=q(_0x205e36[_0x2b5a3d(0x1cc)],_0x205e36[_0x2b5a3d(0x1d3)],_0x205e36[_0x2b5a3d(0x208)],_0x355e16[_0x2b5a3d(0x1e7)],_0x355e16[_0x2b5a3d(0x1ce)]);return _0x2c26c2&&_0x355e16['nextMetadata']&&_0x205e36[_0x2b5a3d(0x1d8)][_0x2b5a3d(0x1dd)](_0x205e36[_0x2b5a3d(0x1d3)],_0x355e16[_0x2b5a3d(0x1c5)]),_0x2c26c2;}},Pe={'id':_0x1bd327(0x194),'type':_0xd6e375[_0x1bd327(0x1da)],'handler':(_0x5921c7,_0x1ec69b)=>{const _0x3b668a=_0x1bd327;if(!_0x1ec69b)return!0x1;let _0x5bbb35=W(_0x5921c7,_0x1ec69b[_0x3b668a(0x1d3)]);if(!_0x5bbb35)return!0x1;let _0x3c4a7a=ce({'blockId':_0x1ec69b['blockId'],'config':_0x1ec69b[_0x3b668a(0x1c0)],'documentData':_0x5bbb35[_0x3b668a(0x208)],'metadata':_0x5bbb35[_0x3b668a(0x1d8)][_0x3b668a(0x1e9)](_0x5bbb35['unitId'])});return _0x3c4a7a[_0x3b668a(0x1c5)]&&_0x5bbb35['model']['deserialize'](_0x5bbb35[_0x3b668a(0x1d3)],_0x3c4a7a[_0x3b668a(0x1c5)]),!0x0;}},Fe={'id':_0x1bd327(0x1f8),'type':_0xd6e375[_0x1bd327(0x1da)],'handler':(_0x1df13c,_0x5a40b9)=>{const _0x3fea1c=_0x1bd327;var _0x5e716a,_0x23a537;let _0x446f03=W(_0x1df13c,_0x5a40b9==null?void 0x0:_0x5a40b9[_0x3fea1c(0x1d3)]);if(!_0x446f03)return!0x1;let _0x50e886=(_0x5e716a=_0x5a40b9==null?void 0x0:_0x5a40b9[_0x3fea1c(0x1ce)])==null?(_0x23a537=G(_0x1df13c))==null?void 0x0:_0x23a537[_0x3fea1c(0x18a)]:_0x5e716a;if(_0x50e886==null)return!0x1;let _0x8535b5=le({'cursorOffset':_0x50e886,'documentData':_0x446f03[_0x3fea1c(0x208)]});return _0x8535b5?q(_0x446f03[_0x3fea1c(0x1cc)],_0x446f03[_0x3fea1c(0x1d3)],_0x446f03[_0x3fea1c(0x208)],_0x8535b5[_0x3fea1c(0x1e7)],_0x8535b5[_0x3fea1c(0x1ce)]):!0x1;}},Ie={'id':_0x1bd327(0x1b8),'type':_0xd6e375['COMMAND'],'handler':(_0x77f739,_0x486c1b)=>{const _0x2d60e6=_0x1bd327;var _0x1e2277,_0x549cc6;let _0x3ae69e=W(_0x77f739,_0x486c1b==null?void 0x0:_0x486c1b[_0x2d60e6(0x1d3)]);if(!_0x3ae69e)return!0x1;let _0x260d4e=(_0x1e2277=_0x486c1b==null?void 0x0:_0x486c1b[_0x2d60e6(0x1ce)])==null?(_0x549cc6=G(_0x77f739))==null?void 0x0:_0x549cc6[_0x2d60e6(0x18a)]:_0x1e2277;if(_0x260d4e==null)return!0x1;let _0xf4ccdc=ue({'cursorOffset':_0x260d4e,'documentData':_0x3ae69e['previousDocumentData'],'paragraphStartIndex':_0x486c1b==null?void 0x0:_0x486c1b[_0x2d60e6(0x1a7)]});return _0xf4ccdc?q(_0x3ae69e[_0x2d60e6(0x1cc)],_0x3ae69e[_0x2d60e6(0x1d3)],_0x3ae69e[_0x2d60e6(0x208)],_0xf4ccdc['nextDocumentData'],_0xf4ccdc[_0x2d60e6(0x1ce)]):!0x1;}};function W(_0x55225f,_0x292aa8){const _0x7144ea=_0x1bd327;let _0x310aee=_0x55225f['get'](_0x33ba15),_0x2ac379=_0x292aa8?_0x310aee[_0x7144ea(0x1bd)](_0x292aa8):_0x310aee[_0x7144ea(0x1d7)](_0x2864e1['UNIVER_DOC']);return _0x2ac379?{'commandService':_0x55225f['get'](_0x32af23),'model':_0x55225f[_0x7144ea(0x1a2)](H),'previousDocumentData':_0x2ac379[_0x7144ea(0x1e0)](),'unitId':_0x2ac379[_0x7144ea(0x1b4)]()}:null;}function G(_0x40943f){const _0x536967=_0x1bd327;var _0x581005;return(_0x581005=_0x40943f['get'](_0x35cf98)[_0x536967(0x19c)]())==null?void 0x0:_0x581005[0x0];}function Le(_0x7db706){const _0x3c9ab5=_0x1bd327;var _0x49ea34;let _0x2101c7=(_0x49ea34=_0x7db706[_0x3c9ab5(0x1a2)](_0x33ba15)[_0x3c9ab5(0x1d7)](_0x2864e1[_0x3c9ab5(0x1e3)]))==null?void 0x0:_0x49ea34[_0x3c9ab5(0x1b4)]();try{return _0x7db706['get'](_0xc64f97)[_0x3c9ab5(0x1c9)](_0x2101c7);}catch{return null;}}function Re(_0x2f5d32){const _0x45eb4f=_0x1bd327;var _0x5285f1,_0x523ba4,_0x34a159;let _0x44f8af=G(_0x2f5d32);if(!_0x44f8af)return null;let _0x30d20b=_0x2f5d32[_0x45eb4f(0x1a2)](_0x33ba15)[_0x45eb4f(0x1d7)](_0x2864e1[_0x45eb4f(0x1e3)]),_0x3538a6=_0x30d20b==null?void 0x0:_0x30d20b[_0x45eb4f(0x196)]();return _0x3538a6?(_0x5285f1=_0x1b614b[_0x45eb4f(0x1d4)][_0x45eb4f(0x190)](_0x44f8af,(_0x523ba4=_0x3538a6[_0x45eb4f(0x1b9)])==null?[]:_0x523ba4,(_0x34a159=_0x3538a6[_0x45eb4f(0x1ef)])==null?'':_0x34a159)[0x0])==null?null:_0x5285f1:null;}function ze(_0x359e97,_0x3c41db){const _0x2b5d35=_0x1bd327;var _0x298ea1,_0x1c67e4,_0x218fc2,_0x5aa8fd,_0x498dd6,_0x29b5ba,_0x54bd74,_0x56ff95,_0xbe39ee,_0x2bd1bb,_0x494bc6,_0x3cf8c1,_0x201298,_0x46ef73,_0xff51f1,_0x1a56a2,_0x30496e,_0x591179;let _0x572943=_0x273043['getInstance']();return[K(_0x572943,['body',_0x2b5d35(0x1ef)],(_0x298ea1=_0x359e97[_0x2b5d35(0x188)])==null?void 0x0:_0x298ea1[_0x2b5d35(0x1ef)],(_0x1c67e4=_0x3c41db[_0x2b5d35(0x188)])==null?void 0x0:_0x1c67e4[_0x2b5d35(0x1ef)]),K(_0x572943,[_0x2b5d35(0x188),_0x2b5d35(0x1b9)],(_0x218fc2=_0x359e97[_0x2b5d35(0x188)])==null?void 0x0:_0x218fc2[_0x2b5d35(0x1b9)],(_0x5aa8fd=_0x3c41db['body'])==null?void 0x0:_0x5aa8fd[_0x2b5d35(0x1b9)]),K(_0x572943,[_0x2b5d35(0x188),'sectionBreaks'],(_0x498dd6=_0x359e97[_0x2b5d35(0x188)])==null?void 0x0:_0x498dd6['sectionBreaks'],(_0x29b5ba=_0x3c41db[_0x2b5d35(0x188)])==null?void 0x0:_0x29b5ba['sectionBreaks']),K(_0x572943,[_0x2b5d35(0x188),_0x2b5d35(0x204)],(_0x54bd74=_0x359e97[_0x2b5d35(0x188)])==null?void 0x0:_0x54bd74[_0x2b5d35(0x204)],(_0x56ff95=_0x3c41db['body'])==null?void 0x0:_0x56ff95[_0x2b5d35(0x204)]),K(_0x572943,[_0x2b5d35(0x188),_0x2b5d35(0x192)],(_0xbe39ee=_0x359e97[_0x2b5d35(0x188)])==null?void 0x0:_0xbe39ee[_0x2b5d35(0x192)],(_0x2bd1bb=_0x3c41db['body'])==null?void 0x0:_0x2bd1bb[_0x2b5d35(0x192)]),K(_0x572943,['body',_0x2b5d35(0x1bb)],(_0x494bc6=_0x359e97[_0x2b5d35(0x188)])==null?void 0x0:_0x494bc6['customRanges'],(_0x3cf8c1=_0x3c41db[_0x2b5d35(0x188)])==null?void 0x0:_0x3cf8c1['customRanges']),K(_0x572943,['body',_0x2b5d35(0x207)],(_0x201298=_0x359e97[_0x2b5d35(0x188)])==null?void 0x0:_0x201298[_0x2b5d35(0x207)],(_0x46ef73=_0x3c41db['body'])==null?void 0x0:_0x46ef73['customDecorations']),K(_0x572943,['body',_0x2b5d35(0x19b)],(_0xff51f1=_0x359e97[_0x2b5d35(0x188)])==null?void 0x0:_0xff51f1[_0x2b5d35(0x19b)],(_0x1a56a2=_0x3c41db['body'])==null?void 0x0:_0x1a56a2[_0x2b5d35(0x19b)]),K(_0x572943,[_0x2b5d35(0x188),_0x2b5d35(0x203)],(_0x30496e=_0x359e97[_0x2b5d35(0x188)])==null?void 0x0:_0x30496e[_0x2b5d35(0x203)],(_0x591179=_0x3c41db[_0x2b5d35(0x188)])==null?void 0x0:_0x591179[_0x2b5d35(0x203)])][_0x2b5d35(0x205)](Boolean)['reduce']((_0x272929,_0x550fb4)=>_0x273043[_0x2b5d35(0x1dc)](_0x272929,_0x550fb4),null);}function K(_0x1bf19f,_0x25d391,_0x18a388,_0x4f7f7f){const _0x12b61e=_0x1bd327;return _0x4a3ab2[_0x12b61e(0x1f0)](_0x18a388,_0x4f7f7f)?null:_0x1bf19f[_0x12b61e(0x1e6)](_0x25d391,_0x18a388,_0x4f7f7f);}function q(_0x102a09,_0x12fad5,_0x10bd5b,_0x194550,_0x459a94){let _0xa05d4a=ze(_0x10bd5b,_0x194550);return _0xa05d4a?!!_0x102a09['syncExecuteCommand'](_0x397e41['id'],{'unitId':_0x12fad5,'actions':_0xa05d4a,'textRanges':[{'startOffset':_0x459a94,'endOffset':_0x459a94,'collapsed':!0x0}],'isEditing':!0x1}):!0x1;}const J=_0x1bd327(0x1b2);var Be='@univerjs-pro/docs-code',Ve='1.0.0-alpha.0';const Y={};function X(_0x3da22e,_0x47f5b0){return function(_0x26db2b,_0x241fef){_0x47f5b0(_0x26db2b,_0x241fef,_0x3da22e);};}function Z(_0x59f597,_0x16a23b,_0x8cb1a7,_0x366bf9){const _0x2e5d71=_0x1bd327;var _0x27c364=arguments[_0x2e5d71(0x1f9)],_0x8609e=_0x27c364<0x3?_0x16a23b:_0x366bf9===null?_0x366bf9=Object['getOwnPropertyDescriptor'](_0x16a23b,_0x8cb1a7):_0x366bf9,_0xafaa47;if(typeof Reflect==_0x2e5d71(0x1fa)&&typeof Reflect[_0x2e5d71(0x1ba)]==_0x2e5d71(0x1ab))_0x8609e=Reflect[_0x2e5d71(0x1ba)](_0x59f597,_0x16a23b,_0x8cb1a7,_0x366bf9);else{for(var _0x18f287=_0x59f597[_0x2e5d71(0x1f9)]-0x1;_0x18f287>=0x0;_0x18f287--)(_0xafaa47=_0x59f597[_0x18f287])&&(_0x8609e=(_0x27c364<0x3?_0xafaa47(_0x8609e):_0x27c364>0x3?_0xafaa47(_0x16a23b,_0x8cb1a7,_0x8609e):_0xafaa47(_0x16a23b,_0x8cb1a7))||_0x8609e);}return _0x27c364>0x3&&_0x8609e&&Object['defineProperty'](_0x16a23b,_0x8cb1a7,_0x8609e),_0x8609e;}function _0x3851(_0x51d6b9,_0x4a2f16){_0x51d6b9=_0x51d6b9-0x180;const _0x27d7a2=_0x27d7();let _0x385151=_0x27d7a2[_0x51d6b9];return _0x385151;}let Q=class extends _0x4a26dc{constructor(_0x5b7001,_0x350133){const _0x3db34e=_0x1bd327;super(),this['_resourceManagerService']=_0x5b7001,this['_docsCodeModel']=_0x350133,this[_0x3db34e(0x193)]();}[_0x1bd327(0x193)](){const _0x11ebd9=_0x1bd327;this['disposeWithMe'](this[_0x11ebd9(0x201)][_0x11ebd9(0x1ca)]({'pluginName':J,'businesses':[_0x2864e1[_0x11ebd9(0x1e3)]],'toJson':_0x3b4bdc=>JSON[_0x11ebd9(0x19d)](this['_docsCodeModel']['serialize'](_0x3b4bdc)),'parseJson':_0x37cc05=>w(JSON[_0x11ebd9(0x18b)](_0x37cc05)),'onLoad':(_0x170642,_0x5b640d)=>this[_0x11ebd9(0x1f5)][_0x11ebd9(0x1dd)](_0x170642,_0x5b640d),'onUnLoad':_0x4b803e=>this[_0x11ebd9(0x1f5)][_0x11ebd9(0x1d6)](_0x4b803e)}));}};Q=Z([X(0x0,_0xca8f68),X(0x1,_0x30337f(H))],Q);let $=class extends _0x394390{constructor(_0x47ae68=Y,_0x57af85,_0x102eb1,_0x4d1a98){const _0x372e21=_0x1bd327;super(),this[_0x372e21(0x1c4)]=_0x47ae68,this[_0x372e21(0x182)]=_0x57af85,this[_0x372e21(0x191)]=_0x102eb1,this['_configService']=_0x4d1a98;let {..._0x2310ab}=_0x4c5915({},Y,this[_0x372e21(0x1c4)]);this[_0x372e21(0x1de)][_0x372e21(0x1cf)](_0x372e21(0x1d0),_0x2310ab);}['onStarting'](){const _0x3b64d5=_0x1bd327;this[_0x3b64d5(0x182)][_0x3b64d5(0x1c6)]([H]),this[_0x3b64d5(0x182)][_0x3b64d5(0x1c6)]([Q]),this['_injector']['get'](H),this['_injector'][_0x3b64d5(0x1a2)](Q),[U,Me,Pe,Fe,Ie,Ne][_0x3b64d5(0x1ac)](_0x353933=>this['disposeWithMe'](this[_0x3b64d5(0x191)]['registerCommand'](_0x353933)));}};V($,_0x1bd327(0x1bf),J),V($,_0x1bd327(0x1cd),Be),V($,_0x1bd327(0x1b3),Ve),V($,'type',_0x2864e1[_0x1bd327(0x1e3)]),$=Z([_0x5e8859(_0x5411ad,_0x8ce557),X(0x1,_0x30337f(_0x4af702)),X(0x2,_0x32af23),X(0x3,_0x4adc10)],$);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(_0x90747e,_0x33b602){var _0x4a225b=_0x5c8d,_0x7f8366=_0x90747e();while(!![]){try{var _0x14591c=parseInt(_0x4a225b(0x1f6))/0x1*(parseInt(_0x4a225b(0x22a))/0x2)+-parseInt(_0x4a225b(0x228))/0x3*(-parseInt(_0x4a225b(0x1d8))/0x4)+parseInt(_0x4a225b(0x22f))/0x5+parseInt(_0x4a225b(0x202))/0x6*(parseInt(_0x4a225b(0x203))/0x7)+parseInt(_0x4a225b(0x1d7))/0x8*(parseInt(_0x4a225b(0x200))/0x9)+-parseInt(_0x4a225b(0x218))/0xa*(parseInt(_0x4a225b(0x1da))/0xb)+-parseInt(_0x4a225b(0x22c))/0xc;if(_0x14591c===_0x33b602)break;else _0x7f8366['push'](_0x7f8366['shift']());}catch(_0x130e72){_0x7f8366['push'](_0x7f8366['shift']());}}}(_0xba74,0x402b5),function(_0x13c270,_0x40e4dc){var _0x532dfb=_0x5c8d;typeof exports==_0x532dfb(0x215)&&typeof module<'u'?_0x40e4dc(exports,require('@univerjs-pro/docs-code'),require('@univerjs/core'),require('@univerjs/docs/facade')):typeof define=='function'&&define['amd']?define([_0x532dfb(0x1f7),_0x532dfb(0x1f5),_0x532dfb(0x224),_0x532dfb(0x1db)],_0x40e4dc):(_0x13c270=typeof globalThis<'u'?globalThis:_0x13c270||self,_0x40e4dc(_0x13c270['UniverProDocsCodeFacade']={},_0x13c270[_0x532dfb(0x1f9)],_0x13c270[_0x532dfb(0x1d6)],_0x13c270['UniverDocsFacade']));}(this,function(_0x581dee,_0x369f42,_0x5ce9f8,_0x393bfa){var _0x65f754=_0x5c8d;Object[_0x65f754(0x204)](_0x581dee,Symbol['toStringTag'],{'value':'Module'});function _0x2515d5(_0x5d0bee){'@babel/helpers - typeof';var _0x2189f8=_0x65f754;return _0x2515d5=typeof Symbol==_0x2189f8(0x1e7)&&typeof Symbol[_0x2189f8(0x1ec)]==_0x2189f8(0x1f2)?function(_0x59feac){return typeof _0x59feac;}:function(_0x2d4f5b){var _0x7e9718=_0x2189f8;return _0x2d4f5b&&typeof Symbol==_0x7e9718(0x1e7)&&_0x2d4f5b[_0x7e9718(0x1e4)]===Symbol&&_0x2d4f5b!==Symbol[_0x7e9718(0x21a)]?_0x7e9718(0x1f2):typeof _0x2d4f5b;},_0x2515d5(_0x5d0bee);}function _0x340b61(_0x173556,_0x972b7b){var _0x3cfeee=_0x65f754;if(_0x2515d5(_0x173556)!=_0x3cfeee(0x215)||!_0x173556)return _0x173556;var _0x7f51b8=_0x173556[Symbol[_0x3cfeee(0x201)]];if(_0x7f51b8!==void 0x0){var _0x38ec5b=_0x7f51b8[_0x3cfeee(0x20a)](_0x173556,_0x972b7b||'default');if(_0x2515d5(_0x38ec5b)!=_0x3cfeee(0x215))return _0x38ec5b;throw TypeError(_0x3cfeee(0x1e1));}return(_0x972b7b===_0x3cfeee(0x1e9)?String:Number)(_0x173556);}function _0x3c10ad(_0x3f5265){var _0x25e8a8=_0x65f754,_0x37914c=_0x340b61(_0x3f5265,_0x25e8a8(0x1e9));return _0x2515d5(_0x37914c)==_0x25e8a8(0x1f2)?_0x37914c:_0x37914c+'';}function _0x1cc9ee(_0x4afbed,_0x3fb6d8,_0x29de2c){var _0x2c9c36=_0x65f754;return(_0x3fb6d8=_0x3c10ad(_0x3fb6d8))in _0x4afbed?Object[_0x2c9c36(0x204)](_0x4afbed,_0x3fb6d8,{'value':_0x29de2c,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4afbed[_0x3fb6d8]=_0x29de2c,_0x4afbed;}function _0x2c2073(_0x2b15bf,_0x1d50bc){return function(_0x3b7d03,_0x56a8bd){_0x1d50bc(_0x3b7d03,_0x56a8bd,_0x2b15bf);};}function _0x4e07e7(_0x5e973d,_0xa15ccc,_0x2c43bf,_0x4c60ee){var _0x95283e=_0x65f754,_0x40e7ee=arguments['length'],_0x2ce472=_0x40e7ee<0x3?_0xa15ccc:_0x4c60ee===null?_0x4c60ee=Object['getOwnPropertyDescriptor'](_0xa15ccc,_0x2c43bf):_0x4c60ee,_0x4f854a;if(typeof Reflect==_0x95283e(0x215)&&typeof Reflect[_0x95283e(0x206)]==_0x95283e(0x1e7))_0x2ce472=Reflect[_0x95283e(0x206)](_0x5e973d,_0xa15ccc,_0x2c43bf,_0x4c60ee);else{for(var _0x319b1d=_0x5e973d[_0x95283e(0x1fc)]-0x1;_0x319b1d>=0x0;_0x319b1d--)(_0x4f854a=_0x5e973d[_0x319b1d])&&(_0x2ce472=(_0x40e7ee<0x3?_0x4f854a(_0x2ce472):_0x40e7ee>0x3?_0x4f854a(_0xa15ccc,_0x2c43bf,_0x2ce472):_0x4f854a(_0xa15ccc,_0x2c43bf))||_0x2ce472);}return _0x40e7ee>0x3&&_0x2ce472&&Object[_0x95283e(0x204)](_0xa15ccc,_0x2c43bf,_0x2ce472),_0x2ce472;}let _0x1331ae=class{constructor(_0x301293,_0x1bc6b2,_0x106545){var _0x18e3ea=_0x65f754;this['_document']=_0x301293,this[_0x18e3ea(0x1d9)]=_0x1bc6b2,this['_injector']=_0x106545,_0x1cc9ee(this,_0x18e3ea(0x20b),void 0x0),this[_0x18e3ea(0x20b)]=this[_0x18e3ea(0x1f8)]['getId']();}['getId'](){var _0x7fce9c=_0x65f754;return this[_0x7fce9c(0x1d9)];}[_0x65f754(0x208)](){var _0x1bb2ae=_0x65f754;let _0x312e74=this['_getBlockRange']();return _0x312e74?{'blockId':_0x312e74[_0x1bb2ae(0x230)],'endIndex':_0x312e74[_0x1bb2ae(0x229)],'startIndex':_0x312e74['startIndex']}:null;}['getText'](){var _0x3bc298=_0x65f754,_0x2b815b;let _0x442391=this[_0x3bc298(0x207)](),_0x2f8ef8=(_0x2b815b=this['_getDocumentData']()['body'])==null?void 0x0:_0x2b815b[_0x3bc298(0x20d)];return!_0x442391||!_0x2f8ef8?'':_0x40c307(_0x2f8ef8[_0x3bc298(0x212)](_0x442391[_0x3bc298(0x22b)]+0x1,_0x442391['endIndex']));}['describe'](){var _0x13d70d=_0x65f754;let _0x29a5b2=this[_0x13d70d(0x208)]();return _0x29a5b2?{..._0x29a5b2,'config':this[_0x13d70d(0x231)](),'text':this[_0x13d70d(0x213)](),'type':_0x5ce9f8[_0x13d70d(0x1e8)][_0x13d70d(0x223)]}:null;}[_0x65f754(0x231)](){var _0x4db0c2=_0x65f754;return(0x0,_0x369f42[_0x4db0c2(0x211)])(this[_0x4db0c2(0x221)]['get'](_0x369f42[_0x4db0c2(0x20c)])[_0x4db0c2(0x1e3)](this[_0x4db0c2(0x20b)],this[_0x4db0c2(0x1d9)]));}[_0x65f754(0x1fe)](_0x5f0d3c){var _0xe5a794=_0x65f754;return this[_0xe5a794(0x221)][_0xe5a794(0x216)](_0x5ce9f8['ICommandService'])[_0xe5a794(0x1ed)](_0x369f42[_0xe5a794(0x20e)]['id'],{'blockId':this[_0xe5a794(0x1d9)],'config':_0x5f0d3c[_0xe5a794(0x219)],'unitId':this[_0xe5a794(0x20b)]});}['exit'](_0x2b4987){var _0x107eda=_0x65f754;return this[_0x107eda(0x221)][_0x107eda(0x216)](_0x5ce9f8[_0x107eda(0x217)])[_0x107eda(0x1ed)](_0x369f42[_0x107eda(0x227)]['id'],{'cursorOffset':_0x2b4987,'unitId':this['_unitId']});}[_0x65f754(0x1f4)](_0x58cc81={}){var _0x892ecb=_0x65f754;return this['_injector'][_0x892ecb(0x216)](_0x5ce9f8[_0x892ecb(0x217)])['syncExecuteCommand'](_0x369f42[_0x892ecb(0x205)]['id'],{..._0x58cc81,'unitId':this[_0x892ecb(0x20b)]});}['_getDocumentData'](){var _0x52941a=_0x65f754;return this[_0x52941a(0x1f8)]['save']();}[_0x65f754(0x207)](){var _0x190a57=_0x65f754,_0x1e9d4b;let _0x50cc0e=(_0x1e9d4b=this[_0x190a57(0x1f3)]()['body'])==null||(_0x1e9d4b=_0x1e9d4b[_0x190a57(0x1e6)])==null?void 0x0:_0x1e9d4b['find'](_0xe13486=>_0xe13486[_0x190a57(0x230)]===this[_0x190a57(0x1d9)]&&_0xe13486[_0x190a57(0x214)]===_0x5ce9f8[_0x190a57(0x1e8)][_0x190a57(0x223)]);return _0x50cc0e==null?null:_0x50cc0e;}};_0x1331ae=_0x4e07e7([_0x2c2073(0x2,(0x0,_0x5ce9f8[_0x65f754(0x1dc)])(_0x5ce9f8[_0x65f754(0x1df)]))],_0x1331ae);function _0x40c307(_0x1931d1){var _0x1d026c=_0x65f754;return Array['from'](_0x1931d1)[_0x1d026c(0x1fa)](_0x4855d1=>_0x4855d1===_0x5ce9f8[_0x1d026c(0x226)][_0x1d026c(0x1de)]?'\x0a':_0x4855d1)['filter'](_0x25fca5=>_0x25fca5!==_0x5ce9f8['DataStreamTreeTokenType']['BLOCK_START']&&_0x25fca5!==_0x5ce9f8[_0x1d026c(0x226)][_0x1d026c(0x22e)]&&_0x25fca5!==_0x5ce9f8['DataStreamTreeTokenType'][_0x1d026c(0x1e5)])['join']('')[_0x1d026c(0x1f0)](/\n$/,'');}var _0x2e5df8=class extends _0x393bfa['FDocument']{[_0x65f754(0x21b)](){var _0x88ab0b=_0x65f754;return this['_getBlockRanges']()[_0x88ab0b(0x225)](_0x3d838d=>_0x3d838d[_0x88ab0b(0x214)]===_0x5ce9f8[_0x88ab0b(0x1e8)]['CODE'])['map'](_0x3e61e4=>this[_0x88ab0b(0x220)](_0x3e61e4[_0x88ab0b(0x230)]));}[_0x65f754(0x1ff)](_0x3d84ca){var _0x3bab17=_0x65f754;return this[_0x3bab17(0x22d)]()[_0x3bab17(0x21e)](_0x48e3eb=>_0x48e3eb[_0x3bab17(0x230)]===_0x3d84ca&&_0x48e3eb[_0x3bab17(0x214)]===_0x5ce9f8[_0x3bab17(0x1e8)]['CODE'])?this[_0x3bab17(0x220)](_0x3d84ca):null;}[_0x65f754(0x21c)](_0x41326b){var _0x4b2c47=_0x65f754;let _0x40f6ea=this[_0x4b2c47(0x22d)]()[_0x4b2c47(0x1ef)](_0x411877=>_0x411877['blockType']===_0x5ce9f8[_0x4b2c47(0x1e8)][_0x4b2c47(0x223)]&&_0x411877[_0x4b2c47(0x22b)]<=_0x41326b&&_0x41326b<=_0x411877[_0x4b2c47(0x229)]);return _0x40f6ea?this[_0x4b2c47(0x220)](_0x40f6ea['blockId']):null;}[_0x65f754(0x222)](_0x9421c5){var _0x1f050e=_0x65f754,_0x56e09a;return(_0x56e09a=this[_0x1f050e(0x20f)](_0x9421c5)[0x0])==null?null:_0x56e09a;}[_0x65f754(0x20f)](_0xc3cf34){var _0x4831a3=_0x65f754;let _0x28cbcd=typeof _0xc3cf34==_0x4831a3(0x1e9)?{'text':_0xc3cf34}:_0xc3cf34;return this[_0x4831a3(0x21b)]()[_0x4831a3(0x225)](_0x31c37a=>!(_0x28cbcd[_0x4831a3(0x230)]&&_0x31c37a['getId']()!==_0x28cbcd[_0x4831a3(0x230)]||_0x28cbcd[_0x4831a3(0x232)]&&!_0x31c37a[_0x4831a3(0x213)]()['includes'](_0x28cbcd[_0x4831a3(0x232)])));}[_0x65f754(0x1e0)](_0x7e8bc0={},_0x1aea60={}){var _0x39d85c=_0x65f754,_0x23ae07;let _0x21abef=this['_injector']['get'](_0x5ce9f8[_0x39d85c(0x217)]),_0x518702=_0x961ecb(_0x7e8bc0)?{..._0x1aea60,..._0x577e37(_0x7e8bc0)}:_0x7e8bc0,_0x4e1603=(_0x23ae07=_0x518702['blockId'])==null?(0x0,_0x5ce9f8[_0x39d85c(0x1fd)])(0x6):_0x23ae07;return _0x21abef['syncExecuteCommand'](_0x369f42[_0x39d85c(0x1ee)]['id'],{..._0x518702,'blockId':_0x4e1603,'unitId':this[_0x39d85c(0x1dd)]()})?this[_0x39d85c(0x220)](_0x4e1603):null;}[_0x65f754(0x1eb)](_0x1d4c52){var _0x688790=_0x65f754;return this[_0x688790(0x221)][_0x688790(0x216)](_0x5ce9f8[_0x688790(0x217)])[_0x688790(0x1ed)](_0x369f42[_0x688790(0x227)]['id'],{'cursorOffset':_0x1d4c52,'unitId':this[_0x688790(0x1dd)]()});}[_0x65f754(0x210)](_0x147ea0={}){var _0x497737=_0x65f754;return this['_injector'][_0x497737(0x216)](_0x5ce9f8['ICommandService'])[_0x497737(0x1ed)](_0x369f42[_0x497737(0x205)]['id'],{..._0x147ea0,'unitId':this[_0x497737(0x1dd)]()});}[_0x65f754(0x22d)](){var _0x110be2=_0x65f754,_0x2a4890,_0x85bb01;return(_0x2a4890=(_0x85bb01=this['save']()[_0x110be2(0x1ea)])==null?void 0x0:_0x85bb01[_0x110be2(0x1e6)])==null?[]:_0x2a4890;}[_0x65f754(0x220)](_0x4c6acf){var _0x34f50b=_0x65f754;return this[_0x34f50b(0x221)]['createInstance'](_0x1331ae,this,_0x4c6acf);}};function _0x961ecb(_0x1c98c4){var _0x560cbb=_0x65f754;return typeof _0x1c98c4==_0x560cbb(0x215)&&!!_0x1c98c4&&typeof _0x1c98c4[_0x560cbb(0x1e2)]==_0x560cbb(0x1e7)&&typeof _0x1c98c4[_0x560cbb(0x208)]==_0x560cbb(0x1e7)&&typeof _0x1c98c4[_0x560cbb(0x21f)]==_0x560cbb(0x1e7)&&_0x1c98c4[_0x560cbb(0x21f)]()===_0x560cbb(0x209);}function _0x577e37(_0x4cc55a){var _0x983f4a=_0x65f754;return _0x4cc55a[_0x983f4a(0x208)]();}_0x393bfa[_0x65f754(0x21d)][_0x65f754(0x1f1)](_0x2e5df8),Object['defineProperty'](_0x581dee,_0x65f754(0x1fb),{'enumerable':!0x0,'get':function(){return _0x1331ae;}});}));function _0x5c8d(_0x53d810,_0x284431){_0x53d810=_0x53d810-0x1d6;var _0xba74af=_0xba74();var _0x5c8d24=_0xba74af[_0x53d810];return _0x5c8d24;}function _0xba74(){var _0xa0eb64=['map','FDocumentCode','length','generateRandomId','updateConfig','getCode','351eixjrt','toPrimitive','6jyzWjs','1345337HTJlgb','defineProperty','DocsCodeCancelEmptyParagraphCommand','decorate','_getBlockRange','getRange','paragraph','call','_unitId','DocsCodeModel','dataStream','DocsCodeUpdateCommand','findCodes','cancelEmptyCodeParagraph','normalizeDocsCodeConfig','slice','getText','blockType','object','get','ICommandService','202900UgVWYl','config','prototype','getCodes','getCodeAt','FDocument','some','getType','_createFDocumentCode','_injector','findCodeByText','CODE','@univerjs/core','filter','DataStreamTreeTokenType','DocsCodeExitCommand','126VpLCNA','endIndex','2pRmJCs','startIndex','10582248VodVKr','_getBlockRanges','BLOCK_END','1852940GArkiD','blockId','getConfig','text','UniverCore','20560vCmWAH','30332hBKThL','_blockId','143HOGXRZ','@univerjs/docs/facade','Inject','getId','PARAGRAPH','Injector','insertCode','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','getKey','getCodeConfig','constructor','SECTION_BREAK','blockRanges','function','DocumentBlockRangeType','string','body','exitCode','iterator','syncExecuteCommand','DocsCodeInsertCommand','find','replace','extend','symbol','_getDocumentData','cancelEmptyParagraph','@univerjs-pro/docs-code','426966cqgylU','exports','_document','UniverProDocsCode'];_0xba74=function(){return _0xa0eb64;};return _0xba74();}
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(_0x23dc43,_0x5784fd){const _0x2bf142=_0x3a03,_0xb541b8=_0x23dc43();while(!![]){try{const _0x213c09=-parseInt(_0x2bf142(0xd3))/0x1*(parseInt(_0x2bf142(0xe6))/0x2)+-parseInt(_0x2bf142(0xa2))/0x3+parseInt(_0x2bf142(0xe5))/0x4+-parseInt(_0x2bf142(0x93))/0x5*(-parseInt(_0x2bf142(0x8c))/0x6)+-parseInt(_0x2bf142(0xed))/0x7+-parseInt(_0x2bf142(0x81))/0x8*(parseInt(_0x2bf142(0x124))/0x9)+parseInt(_0x2bf142(0x84))/0xa;if(_0x213c09===_0x5784fd)break;else _0xb541b8['push'](_0xb541b8['shift']());}catch(_0x24ec5c){_0xb541b8['push'](_0xb541b8['shift']());}}}(_0xa040,0x29dfe),function(_0x4bf290,_0x49cd61){const _0x5a2c94=_0x3a03;typeof exports==_0x5a2c94(0xa5)&&typeof module<'u'?_0x49cd61(exports,require('@univerjs/core'),require('@univerjs/docs'),require('rxjs'),require('@univerjs-pro/license')):typeof define==_0x5a2c94(0xb3)&&define['amd']?define(['exports',_0x5a2c94(0xc2),'@univerjs/docs',_0x5a2c94(0xaf),'@univerjs-pro/license'],_0x49cd61):(_0x4bf290=typeof globalThis<'u'?globalThis:_0x4bf290||self,_0x49cd61(_0x4bf290['UniverProDocsCode']={},_0x4bf290['UniverCore'],_0x4bf290[_0x5a2c94(0xdb)],_0x4bf290[_0x5a2c94(0xaf)],_0x4bf290[_0x5a2c94(0xc1)]));}(this,function(_0x55d9d9,_0x251c4f,_0x3e1fc8,_0x2b163c,_0x335c38){const _0x200560=_0x3a03;Object['defineProperty'](_0x55d9d9,Symbol[_0x200560(0x116)],{'value':_0x200560(0xba)});let _0x528c24={'language':_0x200560(0x115),'showLineNumbers':!0x1,'tabSize':0x4,'wrap':!0x0};function _0x46d2c6(_0x50c947){return{..._0x528c24,..._0x50c947};}function _0x1b4e79(_0x8407bb){const _0x40ddd9=_0x200560;var _0x1dfbd8;let _0x4f590=(_0x1dfbd8=_0x8407bb==null?void 0x0:_0x8407bb[_0x40ddd9(0x11e)])==null?{}:_0x1dfbd8;return{'codes':Object[_0x40ddd9(0x119)](Object[_0x40ddd9(0x10c)](_0x4f590)[_0x40ddd9(0x7f)](([_0x5ec20e,_0x39a04c])=>[_0x5ec20e,_0x46d2c6(_0x39a04c)]))};}function _0x11cee3(_0x4359a2,_0x322cdc,_0xd1cee8){const _0x24e718=_0x200560;let _0x48d41a=_0x1b4e79(_0x4359a2);return _0x48d41a[_0x24e718(0x11e)][_0x322cdc]=_0x46d2c6({..._0x48d41a['codes'][_0x322cdc],..._0xd1cee8}),_0x48d41a;}function _0x1d6e94(_0x2a9174,_0x2402e9){const _0x1f3122=_0x200560;let _0x3036cd=_0x1b4e79(_0x2a9174);return delete _0x3036cd[_0x1f3122(0x11e)][_0x2402e9],_0x3036cd;}let _0x5c8307=_0x200560(0xdd);function _0x5a021d(_0x2ba97d){const _0x269657=_0x200560;var _0x766ab5,_0x4669f9,_0xa21c00;let _0x132625=_0x566401(_0x2ba97d['documentData']),_0x5e1ecb=_0x31930c(_0x132625),_0x5f56ad=_0x1df3b0(_0x2ba97d[_0x269657(0x83)],_0x2ba97d[_0x269657(0xbe)]),_0x4ddab8=_0x5f56ad?(_0x766ab5=_0x5e1ecb['blockRanges'])==null?void 0x0:_0x766ab5['find'](_0x330eda=>_0x330eda[_0x269657(0x8a)]===_0x5f56ad[_0x269657(0x83)]&&_0x330eda[_0x269657(0xf6)]+0x1===_0x5f56ad[_0x269657(0xbe)]):void 0x0,{startOffset:_0xba07d9,endOffset:_0x56328a}=_0x4ddab8?_0x5f56ad:_0x1bc857(_0x5e1ecb,_0x2ba97d['startOffset'],_0x2ba97d[_0x269657(0xbe)]),_0x5b76e3=_0x222074(_0x5e1ecb,_0xba07d9,_0x56328a),_0x1b466d=(_0x4669f9=_0x4ddab8==null?void 0x0:_0x4ddab8[_0x269657(0xa8)])==null?_0x2ba97d[_0x269657(0xa8)]:_0x4669f9,_0x14be65=_0x11cee3(_0x2ba97d['metadata'],_0x1b466d,{..._0x528c24,..._0x2ba97d[_0x269657(0xa6)]});if(_0x4ddab8)return _0x4ddab8[_0x269657(0x87)]=_0x251c4f[_0x269657(0x11a)]['CODE'],_0x34bf9d(_0x5e1ecb,_0xba07d9,_0x56328a),_0x14a5f9(_0x5e1ecb,_0xba07d9,_0x56328a,_0x5b76e3),_0x40ae8b(_0x5e1ecb,_0x4ddab8),{'nextDocumentData':_0x132625,'nextMetadata':_0x14be65,'cursorOffset':_0xba07d9+0x1};if(_0xba07d9===_0x56328a){var _0x4a7599,_0x17992b;let _0x548795=''+_0x251c4f[_0x269657(0xe0)]['BLOCK_START']+_0x251c4f['DataStreamTreeTokenType']['PARAGRAPH']+_0x251c4f[_0x269657(0xe0)][_0x269657(0xef)];_0x5d2f57(_0x5e1ecb,_0xba07d9,_0x548795,{'paragraphs':[{'startIndex':0x1,'paragraphId':(0x0,_0x251c4f['createParagraphId'])(new Set((_0x4a7599=_0x5e1ecb[_0x269657(0x122)])==null?void 0x0:_0x4a7599[_0x269657(0x7f)](_0xbfe0b7=>_0xbfe0b7['paragraphId']))),'paragraphStyle':_0x340677(!0x0,!0x0,_0x5b76e3)}],'blockRanges':[{'blockId':_0x1b466d,'blockType':_0x251c4f[_0x269657(0x11a)][_0x269657(0xe4)],'startIndex':0x0,'endIndex':_0x548795['length']-0x1}]});let _0x59b06a=(_0x17992b=_0x5e1ecb[_0x269657(0xab)])==null?void 0x0:_0x17992b[_0x269657(0x79)](_0x1d14bd=>_0x1d14bd['blockId']===_0x1b466d);return _0x59b06a&&_0x40ae8b(_0x5e1ecb,_0x59b06a),{'nextDocumentData':_0x132625,'nextMetadata':_0x14be65,'cursorOffset':_0xba07d9+0x1};}_0x5d2f57(_0x5e1ecb,_0x56328a,_0x251c4f['DataStreamTreeTokenType']['BLOCK_END']),_0x5d2f57(_0x5e1ecb,_0xba07d9,_0x251c4f[_0x269657(0xe0)]['BLOCK_START']),_0x14a5f9(_0x5e1ecb,_0xba07d9,_0x56328a+0x1,_0x5b76e3);let _0x256bc8={'blockId':_0x1b466d,'blockType':_0x251c4f[_0x269657(0x11a)][_0x269657(0xe4)],'startIndex':_0xba07d9,'endIndex':_0x56328a+0x1};return _0x5e1ecb['blockRanges']=[...(_0xa21c00=_0x5e1ecb[_0x269657(0xab)])==null?[]:_0xa21c00,_0x256bc8][_0x269657(0x99)]((_0x5b0a45,_0x47ff05)=>_0x5b0a45[_0x269657(0x8a)]-_0x47ff05[_0x269657(0x8a)]),_0x40ae8b(_0x5e1ecb,_0x256bc8),{'nextDocumentData':_0x132625,'nextMetadata':_0x14be65,'cursorOffset':_0xba07d9+0x1};}function _0x34bf9d(_0x441b37,_0x8f4148,_0x3041cd){const _0xc35820=_0x200560;var _0x53fc69;((_0x53fc69=_0x441b37[_0xc35820(0x122)])==null?[]:_0x53fc69)[_0xc35820(0xe9)](_0xf1f66d=>_0xf1f66d['startIndex']>_0x8f4148&&_0xf1f66d[_0xc35820(0x8a)]<_0x3041cd)[_0xc35820(0x92)](_0x4067e1=>{const _0x2cd4c3=_0xc35820;var _0x20af85;let _0xefd8={...(_0x20af85=_0x4067e1[_0x2cd4c3(0xc8)])==null?{}:_0x20af85};delete _0xefd8[_0x2cd4c3(0xf1)],delete _0xefd8['spaceBelow'],_0x4067e1[_0x2cd4c3(0xc8)]=_0xefd8;});}function _0x1df3b0(_0x3866b6,_0x2155ed){const _0x19d7b0=_0x200560;return _0x3866b6==null||_0x2155ed==null||_0x3866b6===_0x2155ed?null:{'startOffset':Math[_0x19d7b0(0x106)](_0x3866b6,_0x2155ed),'endOffset':Math[_0x19d7b0(0x9c)](_0x3866b6,_0x2155ed)};}function _0x265b54(_0x19da78){const _0x9a0974=_0x200560;return{'nextDocumentData':_0x566401(_0x19da78[_0x9a0974(0xa1)]),'nextMetadata':_0x11cee3(_0x19da78['metadata'],_0x19da78[_0x9a0974(0xa8)],_0x19da78[_0x9a0974(0xa6)]),'cursorOffset':0x0};}function _0x100cad(_0x3933c4){const _0x3233b1=_0x200560;var _0x34ab92,_0x514f8f;let _0x32df7e=_0x566401(_0x3933c4[_0x3233b1(0xa1)]),_0xa28e9b=_0x31930c(_0x32df7e),_0x1aa404=_0xa2ff3c(_0xa28e9b,_0x3933c4[_0x3233b1(0xf8)]);if(!_0x1aa404)return null;let _0xcb2dc6=_0x47434e(_0xa28e9b,_0x1aa404),_0x36c6ef=_0xcb2dc6[_0xcb2dc6[_0x3233b1(0x7b)]-0x1];if(!_0x36c6ef||!_0x24a456(_0xa28e9b,_0x1aa404,_0x36c6ef)||_0x3933c4[_0x3233b1(0xf8)]<_0x36c6ef['startIndex'])return null;let _0x20ed67=_0x112c17(_0xa28e9b,_0x1aa404,_0x36c6ef);if(_0x20ed67>=_0x1aa404[_0x3233b1(0xf6)])return null;_0xa28e9b['dataStream']=[_0xa28e9b[_0x3233b1(0x11f)][_0x3233b1(0xff)](0x0,_0x20ed67),_0x251c4f[_0x3233b1(0xe0)][_0x3233b1(0xef)],_0xa28e9b['dataStream'][_0x3233b1(0xff)](_0x20ed67,_0x1aa404[_0x3233b1(0xf6)]),_0xa28e9b[_0x3233b1(0x11f)]['slice'](_0x1aa404[_0x3233b1(0xf6)]+0x1)][_0x3233b1(0x9e)](''),_0xea1e81(_0xa28e9b[_0x3233b1(0x122)],_0x20ed67,_0x1aa404['endIndex'],0x1),_0xea1e81(_0xa28e9b[_0x3233b1(0x105)],_0x20ed67,_0x1aa404[_0x3233b1(0xf6)],0x1),_0xea1e81(_0xa28e9b[_0x3233b1(0x110)],_0x20ed67,_0x1aa404[_0x3233b1(0xf6)],0x1),_0x9ff239(_0xa28e9b[_0x3233b1(0x96)],_0x20ed67,_0x1aa404[_0x3233b1(0xf6)],0x1),_0x246d69(_0xa28e9b['tables'],_0x20ed67,_0x1aa404[_0x3233b1(0xf6)],0x1),_0x246d69(_0xa28e9b['customRanges'],_0x20ed67,_0x1aa404[_0x3233b1(0xf6)],0x1),_0x246d69(_0xa28e9b[_0x3233b1(0xbb)],_0x20ed67,_0x1aa404[_0x3233b1(0xf6)],0x1),(_0x34ab92=_0xa28e9b['blockRanges'])==null||_0x34ab92[_0x3233b1(0x92)](_0x27b12a=>{const _0x4d4c7f=_0x3233b1;_0x27b12a===_0x1aa404||_0x27b12a['blockId']===_0x1aa404[_0x4d4c7f(0xa8)]?_0x27b12a[_0x4d4c7f(0xf6)]=_0x20ed67:_0x27b12a[_0x4d4c7f(0x8a)]>=_0x20ed67&&_0x27b12a['startIndex']<_0x1aa404[_0x4d4c7f(0xf6)]&&(_0x27b12a[_0x4d4c7f(0x8a)]+=0x1,_0x27b12a['endIndex']+=0x1);});let _0x4402cd=_0x47434e(_0xa28e9b,{..._0x1aa404,'endIndex':_0x20ed67});_0x4402cd[_0x3233b1(0x92)]((_0x50b5dc,_0xaddb5c)=>{const _0x2b0e3c=_0x3233b1;var _0x390d14;_0x50b5dc['paragraphStyle']={...(_0x390d14=_0x50b5dc[_0x2b0e3c(0xc8)])==null?{}:_0x390d14,..._0x340677(_0xaddb5c===0x0,_0xaddb5c===_0x4402cd[_0x2b0e3c(0x7b)]-0x1)};});let _0x4f5a79=(_0x514f8f=_0xa28e9b['paragraphs'])==null?void 0x0:_0x514f8f[_0x3233b1(0x79)](_0x545457=>_0x545457[_0x3233b1(0x8a)]===_0x20ed67+0x1);return _0x4f5a79&&(_0x4f5a79['paragraphStyle']=_0xa0b13b(_0x4f5a79[_0x3233b1(0xc8)])),{'nextDocumentData':_0x32df7e,'cursorOffset':_0x20ed67+0x1};}function _0x1616d1(_0x59693b){const _0x4a014c=_0x200560;let _0x54f31a=_0x566401(_0x59693b[_0x4a014c(0xa1)]),_0x46670b=_0x31930c(_0x54f31a),_0x32d8c7=_0xa2ff3c(_0x46670b,_0x59693b[_0x4a014c(0xf8)]);return _0x32d8c7&&_0x56511c(_0x54f31a,_0x46670b,_0x32d8c7,_0x59693b[_0x4a014c(0xf8)],_0x59693b['paragraphStartIndex'])||null;}function _0x56511c(_0x1a279d,_0x26b186,_0x37bbbc,_0x2dbfab,_0x169eab){const _0x3f919d=_0x200560;let _0xd8d763=_0x3160d8(_0x26b186,_0x37bbbc,_0x2dbfab,_0x169eab);if(!_0xd8d763)return null;let _0x390162=_0xd8d763[_0x3f919d(0xe1)]-0x1;return _0x12be68(_0x26b186,_0xd8d763[_0x3f919d(0x12a)]['startIndex'],_0xd8d763[_0x3f919d(0x12a)][_0x3f919d(0x8a)]+0x1),{'nextDocumentData':_0x1a279d,'cursorOffset':_0x390162};}function _0x4e9658(_0x4b4967,_0x1a4bcd){const _0x4e8b08=_0x200560;var _0x4f7484;return _0x4b4967==null||(_0x4f7484=_0x4b4967[_0x4e8b08(0xab)])==null?void 0x0:_0x4f7484['find'](_0x9f0c80=>_0x9f0c80['blockType']===_0x251c4f[_0x4e8b08(0x11a)][_0x4e8b08(0xe4)]&&_0x9f0c80[_0x4e8b08(0x8a)]<=_0x1a4bcd&&_0x1a4bcd<=_0x9f0c80[_0x4e8b08(0xf6)]);}function _0x411ca6(_0x1f63f7){const _0xa3fe56=_0x200560;var _0x156c48;let _0x51ef95=_0x1f63f7[_0xa3fe56(0xa1)][_0xa3fe56(0xfd)];if(!_0x51ef95)return!0x1;let _0x419933=_0x1f63f7['direction']==='left'?_0x1f63f7[_0xa3fe56(0xf8)]-0x1:_0x1f63f7[_0xa3fe56(0xf8)],_0x48d748=_0x1f63f7[_0xa3fe56(0xd9)]==='right'?_0x1f63f7[_0xa3fe56(0xf8)]+0x1:_0x419933;return((_0x156c48=_0x51ef95[_0xa3fe56(0xab)])==null?[]:_0x156c48)[_0xa3fe56(0xbd)](_0x320b21=>_0x320b21[_0xa3fe56(0x87)]===_0x251c4f[_0xa3fe56(0x11a)][_0xa3fe56(0xe4)]?_0x419933===_0x320b21[_0xa3fe56(0x8a)]||_0x419933===_0x320b21[_0xa3fe56(0xf6)]||_0x48d748===_0x320b21[_0xa3fe56(0x8a)]||_0x48d748===_0x320b21[_0xa3fe56(0xf6)]:!0x1);}function _0xa2ff3c(_0x482f63,_0x386bd8){const _0x17efba=_0x200560;var _0x4a0f3c;return(_0x4a0f3c=_0x482f63[_0x17efba(0xab)])==null?void 0x0:_0x4a0f3c['find'](_0x2d03cd=>{const _0x2c8fea=_0x17efba;let _0x29869f=_0x272708(_0x482f63,_0x2d03cd);return _0x2d03cd[_0x2c8fea(0x87)]===_0x251c4f[_0x2c8fea(0x11a)][_0x2c8fea(0xe4)]&&_0x2d03cd[_0x2c8fea(0x8a)]<=_0x386bd8&&_0x386bd8<=_0x29869f+0x2;});}function _0x340677(_0x307599,_0x40e91d,_0x288431=!0x1){return{'indentEnd':{'v':0x14},'indentStart':{'v':0x14},..._0x307599&&_0x288431?{'spaceAbove':{'v':0x8}}:{},'textStyle':{'ff':_0x5c8307,'fs':0xc}};}function _0x14a5f9(_0x31893c,_0xe5cd29,_0x314c0f,_0x1ebfdd=!0x1){const _0x24acc2=_0x200560;var _0xe77fcc;let _0x28eb1d=((_0xe77fcc=_0x31893c['paragraphs'])==null?[]:_0xe77fcc)[_0x24acc2(0xe9)](_0x2f3e40=>_0x2f3e40[_0x24acc2(0x8a)]>_0xe5cd29&&_0x2f3e40[_0x24acc2(0x8a)]<_0x314c0f);_0x28eb1d[_0x24acc2(0x92)]((_0x63cda,_0x510aa2)=>{const _0x5ed8da=_0x24acc2;var _0x3fbac9;_0x63cda['paragraphStyle']={...(_0x3fbac9=_0x63cda[_0x5ed8da(0xc8)])==null?{}:_0x3fbac9,..._0x340677(_0x510aa2===0x0,_0x510aa2===_0x28eb1d['length']-0x1,_0x1ebfdd)};});}function _0xa0b13b(_0x208156){const _0x17790d=_0x200560;var _0x565c68,_0x41fa19;let _0x17f39a={..._0x208156==null?{}:_0x208156};return delete _0x17f39a[_0x17790d(0xc3)],delete _0x17f39a[_0x17790d(0x10b)],delete _0x17f39a[_0x17790d(0xf1)],delete _0x17f39a[_0x17790d(0xe8)],((_0x565c68=_0x17f39a[_0x17790d(0x120)])==null?void 0x0:_0x565c68['ff'])===_0x5c8307&&((_0x41fa19=_0x17f39a[_0x17790d(0x120)])==null?void 0x0:_0x41fa19['fs'])===0xc&&delete _0x17f39a[_0x17790d(0x120)],_0x17f39a;}function _0x47434e(_0x241a01,_0x15e09b){const _0x29ab97=_0x200560;var _0x320aac;let _0xe17fe3=_0x272708(_0x241a01,_0x15e09b);return((_0x320aac=_0x241a01[_0x29ab97(0x122)])==null?[]:_0x320aac)[_0x29ab97(0xe9)](_0x250d47=>_0x250d47['startIndex']>_0x15e09b[_0x29ab97(0x8a)]&&_0x250d47[_0x29ab97(0x8a)]<_0xe17fe3);}function _0x24a456(_0xd6cc2d,_0x66c5cf,_0x2e0fc2){const _0x12a132=_0x200560;let _0x3ed190=_0x112c17(_0xd6cc2d,_0x66c5cf,_0x2e0fc2),_0x280e94=_0xd6cc2d[_0x12a132(0x11f)][_0x12a132(0xff)](_0x3ed190,_0x2e0fc2[_0x12a132(0x8a)]);return Array[_0x12a132(0x97)](_0x280e94)['every'](_0x109d3a=>_0x109d3a===_0x251c4f['DataStreamTreeTokenType'][_0x12a132(0x7c)]||_0x109d3a===_0x251c4f[_0x12a132(0xe0)][_0x12a132(0xef)]);}function _0x566401(_0x3304d6){const _0x6d91de=_0x200560;return _0x251c4f[_0x6d91de(0xca)][_0x6d91de(0x9b)](_0x3304d6);}function _0x31930c(_0x40c83d){const _0x37224e=_0x200560;if(!_0x40c83d[_0x37224e(0xfd)])throw Error(_0x37224e(0xd6));return _0x40c83d[_0x37224e(0xfd)];}function _0x1bc857(_0x212c32,_0x150e85,_0x511609){const _0x4e8d40=_0x200560;if(_0x150e85==null||_0x511609==null){let _0x344e23=_0x3f8ad0(_0x212c32);return{'startOffset':_0x344e23,'endOffset':_0x344e23};}let _0x4354ae=Math[_0x4e8d40(0x106)](_0x150e85,_0x511609),_0x5719fa=Math['max'](_0x150e85,_0x511609);if(_0x4354ae===_0x5719fa){let _0x270bf1=_0x1b14de(_0x212c32,_0x4354ae);return{'startOffset':_0x270bf1,'endOffset':_0x270bf1};}return _0x1c4d5d(_0x212c32,_0x4354ae,_0x5719fa);}function _0x1b14de(_0x52ce65,_0x599cbc){const _0x4144d1=_0x200560;return _0x599cbc===0x0&&_0x52ce65[_0x4144d1(0x11f)][0x0]===_0x251c4f[_0x4144d1(0xe0)][_0x4144d1(0xa3)]?0x1:_0x599cbc;}function _0x3f8ad0(_0x50a068){const _0x25bcdb=_0x200560;return _0x50a068[_0x25bcdb(0x11f)][_0x25bcdb(0x117)](_0x251c4f['DataStreamTreeTokenType'][_0x25bcdb(0xf2)])?Math['max'](0x0,_0x50a068[_0x25bcdb(0x11f)]['length']-0x1):_0x50a068[_0x25bcdb(0x11f)]['length'];}function _0x222074(_0x115746,_0x503f26,_0x35d41b){const _0x16a9dd=_0x200560;var _0x593584;let _0x10985c=Math[_0x16a9dd(0x106)](_0x503f26,_0x35d41b),_0x138b71=Math['max'](_0x503f26,_0x35d41b);return!!((_0x593584=_0x115746[_0x16a9dd(0x104)])!=null&&_0x593584[_0x16a9dd(0xbd)](_0x1961ce=>_0x10985c>_0x1961ce['startIndex']&&_0x10985c<_0x1961ce['endIndex']||_0x138b71>_0x1961ce[_0x16a9dd(0x8a)]&&_0x138b71<_0x1961ce[_0x16a9dd(0xf6)]||_0x10985c<=_0x1961ce[_0x16a9dd(0x8a)]&&_0x138b71>=_0x1961ce['endIndex']));}function _0x1c4d5d(_0x2fa0f7,_0x16b92b,_0x415234){const _0x33f7f8=_0x200560;var _0x30ad09,_0xb936ca;let _0x27beb1=[...(_0x30ad09=_0x2fa0f7[_0x33f7f8(0x122)])==null?[]:_0x30ad09]['sort']((_0x1aa485,_0xefdb42)=>_0x1aa485[_0x33f7f8(0x8a)]-_0xefdb42[_0x33f7f8(0x8a)]),_0x1635f9=_0x27beb1['find']((_0x4ba4b9,_0x23f111)=>(_0x23f111===0x0?0x0:_0x27beb1[_0x23f111-0x1]['startIndex']+0x1)<=_0x16b92b&&_0x16b92b<=_0x4ba4b9[_0x33f7f8(0x8a)]),_0x518844=(_0xb936ca=_0x27beb1['find'](_0x3116be=>_0x3116be['startIndex']>=_0x415234-0x1))==null?_0x27beb1[_0x27beb1[_0x33f7f8(0x7b)]-0x1]:_0xb936ca;return{'startOffset':_0x1635f9?_0x275c5e(_0x27beb1,_0x1635f9):_0x16b92b,'endOffset':_0x518844?_0x518844[_0x33f7f8(0x8a)]+0x1:_0x415234};}function _0x275c5e(_0x5695d1,_0x230b5f){const _0x5f2f09=_0x200560;let _0x289ff5=_0x5695d1[_0x5f2f09(0x11b)](_0x230b5f);return _0x289ff5>0x0?_0x5695d1[_0x289ff5-0x1][_0x5f2f09(0x8a)]+0x1:0x0;}function _0x112c17(_0x9c8b86,_0x58fc01,_0x23d622){const _0x371d87=_0x200560;var _0x5db9d0;return Math[_0x371d87(0x9c)](_0x275c5e((_0x5db9d0=_0x9c8b86[_0x371d87(0x122)])==null?[]:_0x5db9d0,_0x23d622),_0x58fc01[_0x371d87(0x8a)]+0x1);}function _0x272708(_0x301ba8,_0x402098){const _0x561207=_0x200560;return _0x301ba8[_0x561207(0x11f)][_0x402098['endIndex']]===_0x251c4f[_0x561207(0xe0)]['BLOCK_END']?_0x402098['endIndex']:_0x301ba8[_0x561207(0x11f)][_0x402098[_0x561207(0xf6)]+0x1]===_0x251c4f[_0x561207(0xe0)][_0x561207(0xef)]?_0x402098[_0x561207(0xf6)]+0x1:_0x402098[_0x561207(0xf6)];}function _0x3160d8(_0x3c27dd,_0x827fa,_0x145e26,_0x150c85){const _0x1642cc=_0x200560;var _0x29b674,_0x39fbae;let _0x1db552=_0x272708(_0x3c27dd,_0x827fa),_0x2316e7=((_0x29b674=_0x3c27dd[_0x1642cc(0x122)])==null?[]:_0x29b674)['find'](_0x21a3b7=>_0x21a3b7['startIndex']===_0x1db552+0x1);if(!_0x2316e7||_0x150c85!=null&&_0x2316e7[_0x1642cc(0x8a)]!==_0x150c85||_0x145e26<_0x1db552||_0x145e26>_0x2316e7[_0x1642cc(0x8a)]+0x1||_0x3c27dd[_0x1642cc(0x11f)][_0x2316e7[_0x1642cc(0x8a)]]!==_0x251c4f[_0x1642cc(0xe0)][_0x1642cc(0xa3)])return null;let _0x126278=_0x275c5e((_0x39fbae=_0x3c27dd[_0x1642cc(0x122)])==null?[]:_0x39fbae,_0x2316e7),_0x38ce1a=_0x3c27dd['dataStream'][_0x1642cc(0xff)](_0x126278,_0x2316e7[_0x1642cc(0x8a)]);return Array[_0x1642cc(0x97)](_0x38ce1a)['every'](_0x5eef11=>_0x5eef11===_0x251c4f[_0x1642cc(0xe0)][_0x1642cc(0xef)])?{'paragraph':_0x2316e7,'endTokenOffset':_0x1db552}:null;}function _0x40ae8b(_0x2f4118,_0x4b150a){const _0x2e4728=_0x200560;var _0x5d5d12;let _0x19140d=_0x272708(_0x2f4118,_0x4b150a),_0x3ef4cf=_0x2f4118['dataStream'][_0x19140d+0x1];_0x3ef4cf!==_0x251c4f['DataStreamTreeTokenType'][_0x2e4728(0xf2)]&&_0x3ef4cf!==void 0x0||_0x5d2f57(_0x2f4118,_0x19140d+0x1,_0x251c4f['DataStreamTreeTokenType'][_0x2e4728(0xa3)],{'paragraphs':[{'startIndex':0x0,'paragraphId':(0x0,_0x251c4f[_0x2e4728(0x94)])(new Set((_0x5d5d12=_0x2f4118['paragraphs'])==null?void 0x0:_0x5d5d12[_0x2e4728(0x7f)](_0x38832f=>_0x38832f['paragraphId'])))}]});}function _0x5d2f57(_0x2bcc9d,_0x1b0c95,_0x54504c,_0x539d36={}){const _0x25c7db=_0x200560;var _0x29a4ea,_0x37f2bc;if(_0x54504c){if(_0x2bcc9d[_0x25c7db(0x11f)]=''+_0x2bcc9d[_0x25c7db(0x11f)]['slice'](0x0,_0x1b0c95)+_0x54504c+_0x2bcc9d[_0x25c7db(0x11f)][_0x25c7db(0xff)](_0x1b0c95),_0x5a1ce0(_0x2bcc9d,_0x1b0c95,_0x54504c[_0x25c7db(0x7b)]),(_0x29a4ea=_0x539d36[_0x25c7db(0x122)])!=null&&_0x29a4ea['length']){var _0x44445c;_0x2bcc9d[_0x25c7db(0x122)]=[...(_0x44445c=_0x2bcc9d[_0x25c7db(0x122)])==null?[]:_0x44445c,..._0x539d36[_0x25c7db(0x122)]['map'](_0x4b8921=>({..._0x4b8921,'startIndex':_0x4b8921[_0x25c7db(0x8a)]+_0x1b0c95}))][_0x25c7db(0x99)]((_0x5b89fe,_0x8954f9)=>_0x5b89fe[_0x25c7db(0x8a)]-_0x8954f9[_0x25c7db(0x8a)]);}if((_0x37f2bc=_0x539d36['blockRanges'])!=null&&_0x37f2bc[_0x25c7db(0x7b)]){var _0xc17eef;_0x2bcc9d[_0x25c7db(0xab)]=[...(_0xc17eef=_0x2bcc9d[_0x25c7db(0xab)])==null?[]:_0xc17eef,..._0x539d36[_0x25c7db(0xab)][_0x25c7db(0x7f)](_0x34d5e1=>({..._0x34d5e1,'startIndex':_0x34d5e1[_0x25c7db(0x8a)]+_0x1b0c95,'endIndex':_0x34d5e1['endIndex']+_0x1b0c95}))]['sort']((_0x58c578,_0x450554)=>_0x58c578['startIndex']-_0x450554[_0x25c7db(0x8a)]);}}}function _0x12be68(_0xa2daf7,_0x53c40f,_0x5c235c){const _0x11edcb=_0x200560;let _0xafc083=_0x5c235c-_0x53c40f;_0xa2daf7[_0x11edcb(0x11f)]=''+_0xa2daf7[_0x11edcb(0x11f)][_0x11edcb(0xff)](0x0,_0x53c40f)+_0xa2daf7[_0x11edcb(0x11f)][_0x11edcb(0xff)](_0x5c235c),_0x284992(_0xa2daf7,_0x53c40f,_0xafc083);}function _0x5a1ce0(_0x251087,_0x4d0271,_0x206ba1){const _0x526154=_0x200560;_0x251087['paragraphs']=_0x31ed43(_0x251087[_0x526154(0x122)],_0x4d0271,_0x206ba1),_0x251087[_0x526154(0x105)]=_0x31ed43(_0x251087[_0x526154(0x105)],_0x4d0271,_0x206ba1),_0x251087[_0x526154(0x110)]=_0x31ed43(_0x251087[_0x526154(0x110)],_0x4d0271,_0x206ba1),_0x251087[_0x526154(0x96)]=_0x1a8b52(_0x251087['textRuns'],_0x4d0271,_0x206ba1),_0x251087[_0x526154(0x104)]=_0x3f6e08(_0x251087[_0x526154(0x104)],_0x4d0271,_0x206ba1),_0x251087[_0x526154(0xb8)]=_0x3f6e08(_0x251087[_0x526154(0xb8)],_0x4d0271,_0x206ba1),_0x251087[_0x526154(0xbb)]=_0x3f6e08(_0x251087[_0x526154(0xbb)],_0x4d0271,_0x206ba1),_0x251087[_0x526154(0xab)]=_0x3f6e08(_0x251087[_0x526154(0xab)],_0x4d0271,_0x206ba1);}function _0x284992(_0x20361e,_0x243601,_0x58b642){const _0x3b5fca=_0x200560;var _0x41edc4,_0xe4508;_0x20361e['paragraphs']=_0x27bfdd(_0x20361e[_0x3b5fca(0x122)],_0x243601,_0x58b642),_0x20361e[_0x3b5fca(0x105)]=_0x27bfdd(_0x20361e[_0x3b5fca(0x105)],_0x243601,_0x58b642),_0x20361e[_0x3b5fca(0x110)]=_0x27bfdd(_0x20361e[_0x3b5fca(0x110)],_0x243601,_0x58b642),_0x20361e[_0x3b5fca(0x96)]=(_0x41edc4=_0x3b15aa((_0xe4508=_0x20361e[_0x3b5fca(0x96)])==null?void 0x0:_0xe4508[_0x3b5fca(0x7f)](_0x52c798=>({..._0x52c798,'startIndex':_0x52c798['st'],'endIndex':_0x52c798['ed']})),_0x243601,_0x58b642))==null?void 0x0:_0x41edc4[_0x3b5fca(0x7f)](_0x4edaee=>{let {startIndex:_0x333758,endIndex:_0x5f1bf7,..._0x37f23a}=_0x4edaee;return{..._0x37f23a,'st':_0x333758,'ed':_0x5f1bf7};}),_0x20361e[_0x3b5fca(0x104)]=_0x3b15aa(_0x20361e[_0x3b5fca(0x104)],_0x243601,_0x58b642),_0x20361e['customRanges']=_0x3b15aa(_0x20361e['customRanges'],_0x243601,_0x58b642),_0x20361e[_0x3b5fca(0xbb)]=_0x3b15aa(_0x20361e[_0x3b5fca(0xbb)],_0x243601,_0x58b642),_0x20361e['blockRanges']=_0x3b15aa(_0x20361e['blockRanges'],_0x243601,_0x58b642);}function _0x31ed43(_0x500dec,_0x369866,_0x3d6648){const _0x274af7=_0x200560;return _0x500dec==null?void 0x0:_0x500dec[_0x274af7(0x7f)](_0xf6b141=>_0xf6b141['startIndex']>=_0x369866?{..._0xf6b141,'startIndex':_0xf6b141[_0x274af7(0x8a)]+_0x3d6648}:_0xf6b141);}function _0x27bfdd(_0x2f3a35,_0x9a8afc,_0x56b934){const _0x1a2545=_0x200560;let _0x9deb68=_0x9a8afc+_0x56b934;return _0x2f3a35==null?void 0x0:_0x2f3a35[_0x1a2545(0x7f)](_0x2d92a2=>_0x2d92a2[_0x1a2545(0x8a)]>=_0x9a8afc&&_0x2d92a2[_0x1a2545(0x8a)]<_0x9deb68?null:_0x2d92a2[_0x1a2545(0x8a)]>=_0x9deb68?{..._0x2d92a2,'startIndex':_0x2d92a2[_0x1a2545(0x8a)]-_0x56b934}:_0x2d92a2)[_0x1a2545(0xe9)](_0x15a28e=>_0x15a28e!=null);}function _0x1a8b52(_0x214d42,_0x2c493d,_0x581fb1){return _0x214d42==null?void 0x0:_0x214d42['map'](_0x4997e7=>_0x4997e7['st']>=_0x2c493d?{..._0x4997e7,'st':_0x4997e7['st']+_0x581fb1,'ed':_0x4997e7['ed']+_0x581fb1}:_0x4997e7['ed']>_0x2c493d?{..._0x4997e7,'ed':_0x4997e7['ed']+_0x581fb1}:_0x4997e7);}function _0x3f6e08(_0x2359d1,_0x504c04,_0x4b3ea0){const _0x2ebda7=_0x200560;return _0x2359d1==null?void 0x0:_0x2359d1[_0x2ebda7(0x7f)](_0x432ca6=>_0x432ca6[_0x2ebda7(0x8a)]>=_0x504c04?{..._0x432ca6,'startIndex':_0x432ca6[_0x2ebda7(0x8a)]+_0x4b3ea0,'endIndex':_0x432ca6[_0x2ebda7(0xf6)]+_0x4b3ea0}:_0x432ca6[_0x2ebda7(0xf6)]>=_0x504c04?{..._0x432ca6,'endIndex':_0x432ca6[_0x2ebda7(0xf6)]+_0x4b3ea0}:_0x432ca6);}function _0x3b15aa(_0x43cc4d,_0x18b381,_0x3a5442){const _0x202fbe=_0x200560;let _0x459a82=_0x18b381+_0x3a5442;return _0x43cc4d==null?void 0x0:_0x43cc4d[_0x202fbe(0x7f)](_0x5b927c=>_0x5b927c[_0x202fbe(0x8a)]>=_0x18b381&&_0x5b927c[_0x202fbe(0xf6)]<_0x459a82?null:_0x5b927c['startIndex']>=_0x459a82?{..._0x5b927c,'startIndex':_0x5b927c[_0x202fbe(0x8a)]-_0x3a5442,'endIndex':_0x5b927c[_0x202fbe(0xf6)]-_0x3a5442}:_0x5b927c[_0x202fbe(0xf6)]>=_0x18b381?{..._0x5b927c,'startIndex':_0x5b927c[_0x202fbe(0x8a)]<_0x18b381?_0x5b927c[_0x202fbe(0x8a)]:_0x18b381,'endIndex':Math[_0x202fbe(0x9c)](_0x18b381,_0x5b927c[_0x202fbe(0xf6)]-_0x3a5442)}:_0x5b927c)['filter'](_0x444564=>_0x444564!=null);}function _0xea1e81(_0x28e2f2,_0x5d7822,_0x3f8ab1,_0x17fe59){const _0x99f4e1=_0x200560;_0x28e2f2==null||_0x28e2f2[_0x99f4e1(0x92)](_0x20ffb7=>{const _0x1fc81d=_0x99f4e1;_0x20ffb7[_0x1fc81d(0x8a)]>=_0x5d7822&&_0x20ffb7[_0x1fc81d(0x8a)]<_0x3f8ab1&&(_0x20ffb7[_0x1fc81d(0x8a)]+=_0x17fe59);});}function _0x9ff239(_0x30f198,_0x454946,_0x3e37a8,_0x11ed77){const _0x5b0c6e=_0x200560;_0x30f198==null||_0x30f198[_0x5b0c6e(0x92)](_0x1c3f46=>{_0x1c3f46['st']>=_0x454946&&_0x1c3f46['st']<_0x3e37a8?(_0x1c3f46['st']+=_0x11ed77,_0x1c3f46['ed']+=_0x11ed77):_0x1c3f46['ed']>_0x454946&&_0x1c3f46['ed']<_0x3e37a8&&(_0x1c3f46['ed']+=_0x11ed77);});}function _0x246d69(_0x1e5b0c,_0x435fe6,_0xdc9865,_0x18cd48){const _0x4eb2ab=_0x200560;_0x1e5b0c==null||_0x1e5b0c[_0x4eb2ab(0x92)](_0x417ab0=>{const _0x104abe=_0x4eb2ab;_0x417ab0[_0x104abe(0x8a)]>=_0x435fe6&&_0x417ab0['startIndex']<_0xdc9865?(_0x417ab0['startIndex']+=_0x18cd48,_0x417ab0['endIndex']+=_0x18cd48):_0x417ab0['endIndex']>_0x435fe6&&_0x417ab0[_0x104abe(0xf6)]<_0xdc9865&&(_0x417ab0[_0x104abe(0xf6)]+=_0x18cd48);});}function _0x1af374(_0x44c307){'@babel/helpers - typeof';const _0x593964=_0x200560;return _0x1af374=typeof Symbol==_0x593964(0xb3)&&typeof Symbol[_0x593964(0x100)]==_0x593964(0x82)?function(_0x242967){return typeof _0x242967;}:function(_0x3b1055){const _0x5a5fc6=_0x593964;return _0x3b1055&&typeof Symbol==_0x5a5fc6(0xb3)&&_0x3b1055[_0x5a5fc6(0xc6)]===Symbol&&_0x3b1055!==Symbol[_0x5a5fc6(0xfa)]?_0x5a5fc6(0x82):typeof _0x3b1055;},_0x1af374(_0x44c307);}function _0x19ff5c(_0x402bf0,_0x3064bb){const _0x4a3b78=_0x200560;if(_0x1af374(_0x402bf0)!='object'||!_0x402bf0)return _0x402bf0;var _0x2935e6=_0x402bf0[Symbol[_0x4a3b78(0x80)]];if(_0x2935e6!==void 0x0){var _0x1d93d4=_0x2935e6[_0x4a3b78(0xec)](_0x402bf0,_0x3064bb||_0x4a3b78(0x90));if(_0x1af374(_0x1d93d4)!='object')return _0x1d93d4;throw TypeError(_0x4a3b78(0x125));}return(_0x3064bb===_0x4a3b78(0x91)?String:Number)(_0x402bf0);}function _0x212100(_0x5a061e){const _0x3a821=_0x200560;var _0x3e302f=_0x19ff5c(_0x5a061e,_0x3a821(0x91));return _0x1af374(_0x3e302f)=='symbol'?_0x3e302f:_0x3e302f+'';}function _0x108fd4(_0x480f08,_0x1f56b8,_0x224ec9){return(_0x1f56b8=_0x212100(_0x1f56b8))in _0x480f08?Object['defineProperty'](_0x480f08,_0x1f56b8,{'value':_0x224ec9,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x480f08[_0x1f56b8]=_0x224ec9,_0x480f08;}var _0x5e7d86=class extends _0x251c4f[_0x200560(0x7a)]{constructor(..._0x30cedc){const _0x4624b7=_0x200560;super(..._0x30cedc),_0x108fd4(this,_0x4624b7(0x111),new Map()),_0x108fd4(this,_0x4624b7(0xaa),new _0x2b163c['Subject']()),_0x108fd4(this,_0x4624b7(0x121),this[_0x4624b7(0xaa)]['asObservable']());}['getCodeConfig'](_0x8656dc,_0x12b37f){const _0x332833=_0x200560;return _0x1b4e79(this[_0x332833(0x111)][_0x332833(0xc9)](_0x8656dc))[_0x332833(0x11e)][_0x12b37f];}[_0x200560(0xde)](_0x4a2d67,_0x3957d7,_0x42a9b2){const _0x4d0c88=_0x200560;this[_0x4d0c88(0xd8)](_0x4a2d67,_0x3957d7,_0x11cee3(this[_0x4d0c88(0x111)][_0x4d0c88(0xc9)](_0x4a2d67),_0x3957d7,_0x42a9b2));}[_0x200560(0xc5)](_0x201a1a,_0xb0b8f4){const _0x359509=_0x200560;this[_0x359509(0xd8)](_0x201a1a,_0xb0b8f4,_0x1d6e94(this[_0x359509(0x111)][_0x359509(0xc9)](_0x201a1a),_0xb0b8f4));}[_0x200560(0x86)](_0x45a4ef){const _0x2987ae=_0x200560;return _0x1b4e79(this[_0x2987ae(0x111)]['get'](_0x45a4ef));}[_0x200560(0x88)](_0x1d0493,_0x282707){const _0x57687e=_0x200560;this['_resources'][_0x57687e(0xce)](_0x1d0493,_0x1b4e79(_0x282707)),this[_0x57687e(0xaa)][_0x57687e(0xeb)]({'unitId':_0x1d0493});}[_0x200560(0xf0)](_0x109056){const _0x2ca14e=_0x200560;this[_0x2ca14e(0x111)][_0x2ca14e(0xe3)](_0x109056),this['_change$'][_0x2ca14e(0xeb)]({'unitId':_0x109056});}['dispose'](){const _0x1c8463=_0x200560;super[_0x1c8463(0x98)](),this['_resources']['clear'](),this[_0x1c8463(0xaa)]['complete']();}[_0x200560(0xd8)](_0x53683e,_0x2b34cf,_0xf09c32){const _0x119462=_0x200560;this[_0x119462(0x111)][_0x119462(0xce)](_0x53683e,_0xf09c32),this['_change$'][_0x119462(0xeb)]({'unitId':_0x53683e,'blockId':_0x2b34cf});}};let _0x3f99c5={'id':_0x200560(0xb6),'type':_0x251c4f[_0x200560(0xe2)]['COMMAND'],'handler':_0x3cc55c=>{const _0xa2d3ac=_0x200560;let _0x4fba9d=_0x27f815(_0x3cc55c);if(_0x4fba9d)return _0x3cc55c[_0xa2d3ac(0xc9)](_0x251c4f['ICommandService'])[_0xa2d3ac(0xad)](_0x263443['id'],{'startOffset':_0x4fba9d[_0xa2d3ac(0x83)],'endOffset':_0x4fba9d[_0xa2d3ac(0xbe)],'unitId':_0x4fba9d[_0xa2d3ac(0xbc)]});let _0xa60f1d=_0x27037e(_0x3cc55c);if(!_0xa60f1d)return!0x1;let _0x582494=_0xa60f1d[_0xa2d3ac(0x8a)]+0x1;return _0x3cc55c['get'](_0x251c4f['ICommandService'])[_0xa2d3ac(0xad)](_0x263443['id'],{'startOffset':_0x582494,'endOffset':_0x582494});}},_0x50a7d3={'id':_0x200560(0xb9),'type':_0x251c4f['CommandType'][_0x200560(0x9a)],'handler':()=>!0x0},_0x263443={'id':_0x200560(0x8b),'type':_0x251c4f['CommandType'][_0x200560(0x9a)],'handler':(_0x131029,_0x1ad1b1)=>{const _0x195f4a=_0x200560;var _0x1b3c5b,_0x5e5b5d,_0x30745c;let _0x52eadb=_0x5984ae(_0x131029,_0x1ad1b1==null?void 0x0:_0x1ad1b1[_0x195f4a(0xbc)]);if(!_0x52eadb)return!0x1;let _0x12acd6=_0x5afe05(_0x131029),_0x498ac2=_0x5a021d({'blockId':(_0x1b3c5b=_0x1ad1b1==null?void 0x0:_0x1ad1b1[_0x195f4a(0xa8)])==null?(0x0,_0x251c4f[_0x195f4a(0x10f)])(0x6):_0x1b3c5b,'config':_0x1ad1b1==null?void 0x0:_0x1ad1b1[_0x195f4a(0xa6)],'documentData':_0x52eadb[_0x195f4a(0x11d)],'endOffset':(_0x5e5b5d=_0x1ad1b1==null?void 0x0:_0x1ad1b1[_0x195f4a(0xbe)])==null?_0x12acd6==null?void 0x0:_0x12acd6[_0x195f4a(0xbe)]:_0x5e5b5d,'metadata':_0x52eadb['model'][_0x195f4a(0x86)](_0x52eadb['unitId']),'startOffset':(_0x30745c=_0x1ad1b1==null?void 0x0:_0x1ad1b1[_0x195f4a(0x83)])==null?_0x12acd6==null?void 0x0:_0x12acd6[_0x195f4a(0x83)]:_0x30745c}),_0xa33489=_0x13db48(_0x52eadb[_0x195f4a(0x7d)],_0x52eadb['unitId'],_0x52eadb[_0x195f4a(0x11d)],_0x498ac2[_0x195f4a(0xd0)],_0x498ac2[_0x195f4a(0xf8)]);return _0xa33489&&_0x498ac2[_0x195f4a(0xf9)]&&_0x52eadb[_0x195f4a(0x10e)][_0x195f4a(0x88)](_0x52eadb[_0x195f4a(0xbc)],_0x498ac2['nextMetadata']),_0xa33489;}},_0x172710={'id':'docs-code.command.update','type':_0x251c4f['CommandType'][_0x200560(0x9a)],'handler':(_0x2f25fc,_0x484b94)=>{const _0x145484=_0x200560;if(!_0x484b94)return!0x1;let _0x5f5d4c=_0x5984ae(_0x2f25fc,_0x484b94[_0x145484(0xbc)]);if(!_0x5f5d4c)return!0x1;let _0x1d500f=_0x265b54({'blockId':_0x484b94[_0x145484(0xa8)],'config':_0x484b94[_0x145484(0xa6)],'documentData':_0x5f5d4c[_0x145484(0x11d)],'metadata':_0x5f5d4c[_0x145484(0x10e)][_0x145484(0x86)](_0x5f5d4c[_0x145484(0xbc)])});return _0x1d500f[_0x145484(0xf9)]&&_0x5f5d4c[_0x145484(0x10e)][_0x145484(0x88)](_0x5f5d4c[_0x145484(0xbc)],_0x1d500f[_0x145484(0xf9)]),!0x0;}},_0xfcbb9c={'id':_0x200560(0xbf),'type':_0x251c4f['CommandType'][_0x200560(0x9a)],'handler':(_0x289aff,_0x2d2693)=>{const _0x4cbb19=_0x200560;var _0x4bc26e,_0x3a395a;let _0x2fc249=_0x5984ae(_0x289aff,_0x2d2693==null?void 0x0:_0x2d2693['unitId']);if(!_0x2fc249)return!0x1;let _0x2310cd=(_0x4bc26e=_0x2d2693==null?void 0x0:_0x2d2693['cursorOffset'])==null?(_0x3a395a=_0x5afe05(_0x289aff))==null?void 0x0:_0x3a395a['startOffset']:_0x4bc26e;if(_0x2310cd==null)return!0x1;let _0x1885d2=_0x100cad({'cursorOffset':_0x2310cd,'documentData':_0x2fc249[_0x4cbb19(0x11d)]});return _0x1885d2?_0x13db48(_0x2fc249['commandService'],_0x2fc249['unitId'],_0x2fc249['previousDocumentData'],_0x1885d2[_0x4cbb19(0xd0)],_0x1885d2[_0x4cbb19(0xf8)]):!0x1;}},_0x47d26e={'id':_0x200560(0x78),'type':_0x251c4f[_0x200560(0xe2)]['COMMAND'],'handler':(_0x1e34b8,_0x5dd730)=>{const _0x582835=_0x200560;var _0x384a80,_0x30733d;let _0x51acbf=_0x5984ae(_0x1e34b8,_0x5dd730==null?void 0x0:_0x5dd730[_0x582835(0xbc)]);if(!_0x51acbf)return!0x1;let _0x921c83=(_0x384a80=_0x5dd730==null?void 0x0:_0x5dd730[_0x582835(0xf8)])==null?(_0x30733d=_0x5afe05(_0x1e34b8))==null?void 0x0:_0x30733d[_0x582835(0x83)]:_0x384a80;if(_0x921c83==null)return!0x1;let _0x35658f=_0x1616d1({'cursorOffset':_0x921c83,'documentData':_0x51acbf[_0x582835(0x11d)],'paragraphStartIndex':_0x5dd730==null?void 0x0:_0x5dd730[_0x582835(0x95)]});return _0x35658f?_0x13db48(_0x51acbf[_0x582835(0x7d)],_0x51acbf[_0x582835(0xbc)],_0x51acbf[_0x582835(0x11d)],_0x35658f['nextDocumentData'],_0x35658f[_0x582835(0xf8)]):!0x1;}};function _0x5984ae(_0x5e6569,_0x3122a4){const _0x1e8b57=_0x200560;let _0x14d103=_0x5e6569['get'](_0x251c4f[_0x1e8b57(0xb1)]),_0x4aae1d=_0x3122a4?_0x14d103[_0x1e8b57(0xcc)](_0x3122a4):_0x14d103['getCurrentUnitOfType'](_0x251c4f[_0x1e8b57(0xa7)]['UNIVER_DOC']);return _0x4aae1d?{'commandService':_0x5e6569[_0x1e8b57(0xc9)](_0x251c4f[_0x1e8b57(0x113)]),'model':_0x5e6569[_0x1e8b57(0xc9)](_0x5e7d86),'previousDocumentData':_0x4aae1d['getSnapshot'](),'unitId':_0x4aae1d[_0x1e8b57(0xd1)]()}:null;}function _0x5afe05(_0x3254cc){const _0x3b2bf1=_0x200560;var _0x8de0f9;return(_0x8de0f9=_0x3254cc[_0x3b2bf1(0xc9)](_0x3e1fc8[_0x3b2bf1(0xb4)])[_0x3b2bf1(0x7e)]())==null?void 0x0:_0x8de0f9[0x0];}function _0x27f815(_0x2086d5){const _0x3650ee=_0x200560;var _0x12aadd;let _0x3303f4=(_0x12aadd=_0x2086d5['get'](_0x251c4f[_0x3650ee(0xb1)])[_0x3650ee(0x103)](_0x251c4f['UniverInstanceType'][_0x3650ee(0xf4)]))==null?void 0x0:_0x12aadd[_0x3650ee(0xd1)]();try{return _0x2086d5[_0x3650ee(0xc9)](_0x3e1fc8[_0x3650ee(0x108)])[_0x3650ee(0xc7)](_0x3303f4);}catch{return null;}}function _0x27037e(_0x3e2b00){const _0x567aab=_0x200560;var _0x16e3ef,_0x5d041b,_0x1e5dec;let _0x275dac=_0x5afe05(_0x3e2b00);if(!_0x275dac)return null;let _0x3771b2=_0x3e2b00[_0x567aab(0xc9)](_0x251c4f[_0x567aab(0xb1)])[_0x567aab(0x103)](_0x251c4f[_0x567aab(0xa7)]['UNIVER_DOC']),_0xa0d72d=_0x3771b2==null?void 0x0:_0x3771b2[_0x567aab(0xd2)]();return _0xa0d72d?(_0x16e3ef=_0x251c4f['BuildTextUtils'][_0x567aab(0xfe)][_0x567aab(0x89)](_0x275dac,(_0x5d041b=_0xa0d72d[_0x567aab(0x122)])==null?[]:_0x5d041b,(_0x1e5dec=_0xa0d72d[_0x567aab(0x11f)])==null?'':_0x1e5dec)[0x0])==null?null:_0x16e3ef:null;}function _0x132157(_0x46544a,_0x5df7a3){const _0x4ed065=_0x200560;var _0x7c8d2b,_0x59f0cc,_0x53b152,_0x4f0dd7,_0x26134a,_0x50f615,_0x1a922d,_0x3a23c6,_0x41a390,_0x28f809,_0x45bae5,_0xd4e08c,_0x23fc38,_0x5d6099,_0x3f62b6,_0x5157a6,_0x44ce76,_0x4b26e6;let _0x273474=_0x251c4f[_0x4ed065(0xc4)][_0x4ed065(0x118)]();return[_0x39fdbe(_0x273474,[_0x4ed065(0xfd),'dataStream'],(_0x7c8d2b=_0x46544a[_0x4ed065(0xfd)])==null?void 0x0:_0x7c8d2b[_0x4ed065(0x11f)],(_0x59f0cc=_0x5df7a3[_0x4ed065(0xfd)])==null?void 0x0:_0x59f0cc['dataStream']),_0x39fdbe(_0x273474,[_0x4ed065(0xfd),'paragraphs'],(_0x53b152=_0x46544a[_0x4ed065(0xfd)])==null?void 0x0:_0x53b152[_0x4ed065(0x122)],(_0x4f0dd7=_0x5df7a3[_0x4ed065(0xfd)])==null?void 0x0:_0x4f0dd7[_0x4ed065(0x122)]),_0x39fdbe(_0x273474,[_0x4ed065(0xfd),_0x4ed065(0x105)],(_0x26134a=_0x46544a[_0x4ed065(0xfd)])==null?void 0x0:_0x26134a[_0x4ed065(0x105)],(_0x50f615=_0x5df7a3['body'])==null?void 0x0:_0x50f615['sectionBreaks']),_0x39fdbe(_0x273474,[_0x4ed065(0xfd),'textRuns'],(_0x1a922d=_0x46544a[_0x4ed065(0xfd)])==null?void 0x0:_0x1a922d[_0x4ed065(0x96)],(_0x3a23c6=_0x5df7a3[_0x4ed065(0xfd)])==null?void 0x0:_0x3a23c6[_0x4ed065(0x96)]),_0x39fdbe(_0x273474,[_0x4ed065(0xfd),_0x4ed065(0x110)],(_0x41a390=_0x46544a[_0x4ed065(0xfd)])==null?void 0x0:_0x41a390[_0x4ed065(0x110)],(_0x28f809=_0x5df7a3['body'])==null?void 0x0:_0x28f809['customBlocks']),_0x39fdbe(_0x273474,['body','customRanges'],(_0x45bae5=_0x46544a[_0x4ed065(0xfd)])==null?void 0x0:_0x45bae5[_0x4ed065(0xb8)],(_0xd4e08c=_0x5df7a3[_0x4ed065(0xfd)])==null?void 0x0:_0xd4e08c[_0x4ed065(0xb8)]),_0x39fdbe(_0x273474,[_0x4ed065(0xfd),_0x4ed065(0xbb)],(_0x23fc38=_0x46544a[_0x4ed065(0xfd)])==null?void 0x0:_0x23fc38[_0x4ed065(0xbb)],(_0x5d6099=_0x5df7a3['body'])==null?void 0x0:_0x5d6099['customDecorations']),_0x39fdbe(_0x273474,[_0x4ed065(0xfd),_0x4ed065(0x104)],(_0x3f62b6=_0x46544a['body'])==null?void 0x0:_0x3f62b6[_0x4ed065(0x104)],(_0x5157a6=_0x5df7a3[_0x4ed065(0xfd)])==null?void 0x0:_0x5157a6[_0x4ed065(0x104)]),_0x39fdbe(_0x273474,[_0x4ed065(0xfd),_0x4ed065(0xab)],(_0x44ce76=_0x46544a[_0x4ed065(0xfd)])==null?void 0x0:_0x44ce76['blockRanges'],(_0x4b26e6=_0x5df7a3['body'])==null?void 0x0:_0x4b26e6['blockRanges'])]['filter'](Boolean)[_0x4ed065(0x109)]((_0x47a007,_0x210d32)=>_0x251c4f['JSONX']['compose'](_0x47a007,_0x210d32),null);}function _0x39fdbe(_0x27290c,_0x583f8d,_0x121141,_0x4b8cd2){const _0x580930=_0x200560;return _0x251c4f['Tools'][_0x580930(0xf5)](_0x121141,_0x4b8cd2)?null:_0x27290c[_0x580930(0xd4)](_0x583f8d,_0x121141,_0x4b8cd2);}function _0x13db48(_0x413d04,_0x51cfad,_0xa6c37f,_0xb6d0c1,_0x4f29a5){const _0x24ce11=_0x200560;let _0x2339c5=_0x132157(_0xa6c37f,_0xb6d0c1);return _0x2339c5?!!_0x413d04['syncExecuteCommand'](_0x3e1fc8[_0x24ce11(0xd5)]['id'],{'unitId':_0x51cfad,'actions':_0x2339c5,'textRanges':[{'startOffset':_0x4f29a5,'endOffset':_0x4f29a5,'collapsed':!0x0}],'isEditing':!0x1}):!0x1;}let _0x2baf1e=_0x200560(0xb5);var _0x1dd9bd=_0x200560(0xda),_0x47349d=_0x200560(0xa4);let _0x14a615={};function _0x3a624b(_0x1e1d9e,_0x97b281){return function(_0x5434d6,_0x13ced1){_0x97b281(_0x5434d6,_0x13ced1,_0x1e1d9e);};}function _0x34d5e3(_0x29533d,_0x4875ea,_0x466209,_0x5dd048){const _0x8a6f6c=_0x200560;var _0x30bdd5=arguments[_0x8a6f6c(0x7b)],_0x59f32a=_0x30bdd5<0x3?_0x4875ea:_0x5dd048===null?_0x5dd048=Object[_0x8a6f6c(0x123)](_0x4875ea,_0x466209):_0x5dd048,_0x8af0d2;if(typeof Reflect==_0x8a6f6c(0xa5)&&typeof Reflect['decorate']==_0x8a6f6c(0xb3))_0x59f32a=Reflect[_0x8a6f6c(0x128)](_0x29533d,_0x4875ea,_0x466209,_0x5dd048);else{for(var _0x10a813=_0x29533d['length']-0x1;_0x10a813>=0x0;_0x10a813--)(_0x8af0d2=_0x29533d[_0x10a813])&&(_0x59f32a=(_0x30bdd5<0x3?_0x8af0d2(_0x59f32a):_0x30bdd5>0x3?_0x8af0d2(_0x4875ea,_0x466209,_0x59f32a):_0x8af0d2(_0x4875ea,_0x466209))||_0x59f32a);}return _0x30bdd5>0x3&&_0x59f32a&&Object[_0x8a6f6c(0x101)](_0x4875ea,_0x466209,_0x59f32a),_0x59f32a;}let _0x5898c7=class extends _0x251c4f[_0x200560(0x7a)]{constructor(_0x8fce36,_0x4ef87c){const _0x313dec=_0x200560;super(),this[_0x313dec(0xfb)]=_0x8fce36,this['_docsCodeModel']=_0x4ef87c,this[_0x313dec(0x112)]();}[_0x200560(0x112)](){const _0x4b355a=_0x200560;this[_0x4b355a(0xc0)](this[_0x4b355a(0xfb)]['registerPluginResource']({'pluginName':_0x2baf1e,'businesses':[_0x251c4f[_0x4b355a(0xa7)][_0x4b355a(0xf4)]],'toJson':_0x5effb2=>JSON[_0x4b355a(0xea)](this[_0x4b355a(0xee)][_0x4b355a(0x86)](_0x5effb2)),'parseJson':_0x4eb5f7=>_0x1b4e79(JSON[_0x4b355a(0x129)](_0x4eb5f7)),'onLoad':(_0x18f22c,_0x5cfbb7)=>this[_0x4b355a(0xee)][_0x4b355a(0x88)](_0x18f22c,_0x5cfbb7),'onUnLoad':_0xf09111=>this['_docsCodeModel'][_0x4b355a(0xf0)](_0xf09111)}));}};_0x5898c7=_0x34d5e3([_0x3a624b(0x0,_0x251c4f[_0x200560(0xe7)]),_0x3a624b(0x1,(0x0,_0x251c4f[_0x200560(0xa9)])(_0x5e7d86))],_0x5898c7);let _0x22f1ec=class extends _0x251c4f[_0x200560(0xb2)]{constructor(_0x31e317=_0x14a615,_0x378806,_0x4e46ab,_0x5eeffe){const _0x494be1=_0x200560;super(),this[_0x494be1(0x85)]=_0x31e317,this['_injector']=_0x378806,this['_commandService']=_0x4e46ab,this[_0x494be1(0xcb)]=_0x5eeffe;let {..._0x492770}=(0x0,_0x251c4f[_0x494be1(0xcd)])({},_0x14a615,this[_0x494be1(0x85)]);this[_0x494be1(0xcb)][_0x494be1(0x127)](_0x494be1(0xb0),_0x492770);}[_0x200560(0x8d)](){const _0x2058ee=_0x200560;this['_injector'][_0x2058ee(0x8e)]([_0x5e7d86]),this['_injector']['add']([_0x5898c7]),this[_0x2058ee(0xdc)]['get'](_0x5e7d86),this[_0x2058ee(0xdc)][_0x2058ee(0xc9)](_0x5898c7),[_0x263443,_0x3f99c5,_0x172710,_0xfcbb9c,_0x47d26e,_0x50a7d3][_0x2058ee(0x92)](_0x2cdae4=>this['disposeWithMe'](this['_commandService'][_0x2058ee(0x10d)](_0x2cdae4)));}};_0x108fd4(_0x22f1ec,_0x200560(0x8f),_0x2baf1e),_0x108fd4(_0x22f1ec,'packageName',_0x1dd9bd),_0x108fd4(_0x22f1ec,'version',_0x47349d),_0x108fd4(_0x22f1ec,_0x200560(0xfc),_0x251c4f[_0x200560(0xa7)][_0x200560(0xf4)]),_0x22f1ec=_0x34d5e3([(0x0,_0x251c4f[_0x200560(0x9f)])(_0x335c38[_0x200560(0x107)],_0x3e1fc8['UniverDocsPlugin']),_0x3a624b(0x1,(0x0,_0x251c4f[_0x200560(0xa9)])(_0x251c4f[_0x200560(0xf7)])),_0x3a624b(0x2,_0x251c4f[_0x200560(0x113)]),_0x3a624b(0x3,_0x251c4f[_0x200560(0xae)])],_0x22f1ec),_0x55d9d9[_0x200560(0xdf)]=_0x528c24,_0x55d9d9[_0x200560(0xac)]=_0x2baf1e,_0x55d9d9[_0x200560(0xf3)]=_0x47d26e,_0x55d9d9[_0x200560(0x11c)]=_0x50a7d3,_0x55d9d9[_0x200560(0x9d)]=_0xfcbb9c,_0x55d9d9[_0x200560(0x10a)]=_0x3f99c5,_0x55d9d9[_0x200560(0xa0)]=_0x263443,_0x55d9d9['DocsCodeModel']=_0x5e7d86,_0x55d9d9[_0x200560(0x114)]=_0x172710,Object[_0x200560(0x101)](_0x55d9d9,_0x200560(0x102),{'enumerable':!0x0,'get':function(){return _0x22f1ec;}}),_0x55d9d9[_0x200560(0xd7)]=_0x1616d1,_0x55d9d9[_0x200560(0x126)]=_0x100cad,_0x55d9d9['buildInsertCodeActions']=_0x5a021d,_0x55d9d9[_0x200560(0x77)]=_0x265b54,_0x55d9d9[_0x200560(0xcf)]=_0x4e9658,_0x55d9d9['isCodeBoundaryDelete']=_0x411ca6,_0x55d9d9[_0x200560(0xb7)]=_0x46d2c6;}));function _0x3a03(_0x5bedd8,_0x23ec9f){_0x5bedd8=_0x5bedd8-0x77;const _0xa04039=_0xa040();let _0x3a03ec=_0xa04039[_0x5bedd8];return _0x3a03ec;}function _0xa040(){const _0x40deef=['Disposable','length','BLOCK_START','commandService','getTextRanges','map','toPrimitive','483440xMyGjs','symbol','startOffset','5184170gQCOVs','_config','serialize','blockType','deserialize','getParagraphsInRange','startIndex','docs-code.command.insert','12FbpsIW','onStarting','add','pluginName','default','string','forEach','445515RHCRUj','createParagraphId','paragraphStartIndex','textRuns','from','dispose','sort','COMMAND','deepClone','max','DocsCodeExitCommand','join','DependentOn','DocsCodeInsertCommand','documentData','269370bbCJIP','PARAGRAPH','1.0.0-alpha.0','object','config','UniverInstanceType','blockId','Inject','_change$','blockRanges','DOCS_CODE_PLUGIN','syncExecuteCommand','IConfigService','rxjs','docs-code.config','IUniverInstanceService','Plugin','function','DocSelectionManagerService','DOC_CODE_PLUGIN','docs-code.command.insert-below','normalizeDocsCodeConfig','customRanges','docs-code.command.consume-boundary-delete','Module','customDecorations','unitId','some','endOffset','docs-code.command.exit','disposeWithMe','UniverProLicense','@univerjs/core','indentEnd','JSONX','removeCode','constructor','consumeInsertRange','paragraphStyle','get','Tools','_configService','getUniverDocInstance','merge','set','findCodeRangeAtOffset','nextDocumentData','getUnitId','getBody','227gIPSvy','replaceOp','RichTextEditingMutation','Document\x20body\x20is\x20required','buildCancelEmptyCodeParagraphActions','_setResource','direction','@univerjs-pro/docs-code','UniverDocs','_injector','monospace','setCodeConfig','DEFAULT_CODE_CONFIG','DataStreamTreeTokenType','endTokenOffset','CommandType','delete','CODE','884084OfeTcg','2864PSxZNp','IResourceManagerService','spaceBelow','filter','stringify','next','call','1049874RqwHCj','_docsCodeModel','BLOCK_END','removeUnit','spaceAbove','SECTION_BREAK','DocsCodeCancelEmptyParagraphCommand','UNIVER_DOC','diffValue','endIndex','Injector','cursorOffset','nextMetadata','prototype','_resourceManagerService','type','body','range','slice','iterator','defineProperty','UniverDocsCodePlugin','getCurrentUnitOfType','tables','sectionBreaks','min','UniverLicensePlugin','DocContentInsertService','reduce','DocsCodeInsertBelowCommand','indentStart','entries','registerCommand','model','generateRandomId','customBlocks','_resources','_initResource','ICommandService','DocsCodeUpdateCommand','javascript','toStringTag','endsWith','getInstance','fromEntries','DocumentBlockRangeType','indexOf','DocsCodeConsumeBoundaryDeleteCommand','previousDocumentData','codes','dataStream','textStyle','change$','paragraphs','getOwnPropertyDescriptor','27FDwpeE','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','buildExitCodeActions','setConfig','decorate','parse','paragraph','buildUpdateCodeActions','docs-code.command.cancel-empty-paragraph','find'];_0xa040=function(){return _0x40deef;};return _0xa040();}
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.0",
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,15 +61,15 @@
61
61
  "rxjs": ">=7.0.0"
62
62
  },
63
63
  "dependencies": {
64
- "@univerjs-pro/license": "1.0.0-alpha.0",
65
- "@univerjs/core": "1.0.0-alpha.0",
66
- "@univerjs/docs": "1.0.0-alpha.0"
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",
70
70
  "typescript": "^6.0.3",
71
71
  "vitest": "^4.1.9",
72
- "@univerjs-infra/shared": "1.0.0-alpha.0"
72
+ "@univerjs-infra/shared": "1.0.0-alpha.1"
73
73
  },
74
74
  "scripts": {
75
75
  "test": "vitest run",