@univerjs-pro/docs-code 1.0.0-insiders.20260809-70eefdd → 1.0.0-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +7 -7
package/lib/cjs/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var _0x44b5c1=_0x26cb;(function(_0x158734,_0x234a49){var _0xc506ec=_0x26cb,_0x29cf88=_0x158734();while(!![]){try{var _0x34cfcb=parseInt(_0xc506ec(0xf4))/0x1*(-parseInt(_0xc506ec(0x103))/0x2)+-parseInt(_0xc506ec(0x108))/0x3*(-parseInt(_0xc506ec(0xc6))/0x4)+-parseInt(_0xc506ec(0xb9))/0x5*(-parseInt(_0xc506ec(0xf7))/0x6)+parseInt(_0xc506ec(0xfe))/0x7+-parseInt(_0xc506ec(0xf0))/0x8*(-parseInt(_0xc506ec(0xfb))/0x9)+-parseInt(_0xc506ec(0xf2))/0xa+-parseInt(_0xc506ec(0xf9))/0xb*(parseInt(_0xc506ec(0xef))/0xc);if(_0x34cfcb===_0x234a49)break;else _0x29cf88['push'](_0x29cf88['shift']());}catch(_0x108d9b){_0x29cf88['push'](_0x29cf88['shift']());}}}(_0x4f75,0x9b7cd),Object['defineProperty'](exports,Symbol['toStringTag'],{'value':_0x44b5c1(0xdc)}));let e=require('@univerjs-pro/docs-code'),t=require('@univerjs/core'),n=require('@univerjs/docs/facade');function r(_0x4cf1cb){'@babel/helpers - typeof';var _0x394873=_0x44b5c1;return r=typeof Symbol==_0x394873(0xf1)&&typeof Symbol[_0x394873(0xde)]==_0x394873(0xc0)?function(_0x4e40b5){return typeof _0x4e40b5;}:function(_0x42903e){var _0x208036=_0x394873;return _0x42903e&&typeof Symbol==_0x208036(0xf1)&&_0x42903e['constructor']===Symbol&&_0x42903e!==Symbol[_0x208036(0xfa)]?_0x208036(0xc0):typeof _0x42903e;},r(_0x4cf1cb);}function i(_0x2c616d,_0x5b07d8){var _0x3e1ce4=_0x44b5c1;if(r(_0x2c616d)!=_0x3e1ce4(0xbd)||!_0x2c616d)return _0x2c616d;var _0x1cec29=_0x2c616d[Symbol[_0x3e1ce4(0xc2)]];if(_0x1cec29!==void 0x0){var _0x119ebd=_0x1cec29[_0x3e1ce4(0xc4)](_0x2c616d,_0x5b07d8||'default');if(r(_0x119ebd)!='object')return _0x119ebd;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x5b07d8==='string'?String:Number)(_0x2c616d);}function a(_0xa53d2e){var _0x12d742=_0x44b5c1,_0x3ce9ac=i(_0xa53d2e,_0x12d742(0xf8));return r(_0x3ce9ac)==_0x12d742(0xc0)?_0x3ce9ac:_0x3ce9ac+'';}function o(_0x297b80,_0x250772,_0x167ae6){var _0x13dbd9=_0x44b5c1;return(_0x250772=a(_0x250772))in _0x297b80?Object[_0x13dbd9(0xff)](_0x297b80,_0x250772,{'value':_0x167ae6,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x297b80[_0x250772]=_0x167ae6,_0x297b80;}function s(_0x58f188,_0x6ee694){return function(_0x4e5f23,_0x1f45c4){_0x6ee694(_0x4e5f23,_0x1f45c4,_0x58f188);};}function _0x26cb(_0x353776,_0x2f5453){_0x353776=_0x353776-0xb8;var _0x4f75d4=_0x4f75();var _0x26cb72=_0x4f75d4[_0x353776];return _0x26cb72;}function c(_0x334e71,_0x186c62,_0x1ded0e,_0x2f82cb){var _0x2f2f3b=_0x44b5c1,_0x2ea00b=arguments[_0x2f2f3b(0x105)],_0x58adbd=_0x2ea00b<0x3?_0x186c62:_0x2f82cb===null?_0x2f82cb=Object[_0x2f2f3b(0xc7)](_0x186c62,_0x1ded0e):_0x2f82cb,_0x4797d7;if(typeof Reflect==_0x2f2f3b(0xbd)&&typeof Reflect['decorate']==_0x2f2f3b(0xf1))_0x58adbd=Reflect[_0x2f2f3b(0xe1)](_0x334e71,_0x186c62,_0x1ded0e,_0x2f82cb);else{for(var _0x16b776=_0x334e71[_0x2f2f3b(0x105)]-0x1;_0x16b776>=0x0;_0x16b776--)(_0x4797d7=_0x334e71[_0x16b776])&&(_0x58adbd=(_0x2ea00b<0x3?_0x4797d7(_0x58adbd):_0x2ea00b>0x3?_0x4797d7(_0x186c62,_0x1ded0e,_0x58adbd):_0x4797d7(_0x186c62,_0x1ded0e))||_0x58adbd);}return _0x2ea00b>0x3&&_0x58adbd&&Object[_0x2f2f3b(0xff)](_0x186c62,_0x1ded0e,_0x58adbd),_0x58adbd;}function _0x4f75(){var _0x3bb22b=['toPrimitive','findCodes','call','from','363988Kbdfim','getOwnPropertyDescriptor','getCodeConfig','_document','_blockId','body','_getDocumentData','_getBlockRange','BLOCK_START','SECTION_BREAK','dataStream','createInstance','getConfig','getText','isParagraphFacade','getCodeAt','normalizeDocsCodeConfig','Injector','filter','BLOCK_END','remove','includes','Module','endIndex','iterator','blockType','findCodeByText','decorate','map','slice','ICommandService','Inject','get','DocsCodeRemoveCommand','DocumentBlockRangeType','replace','extend','save','DocsCodeInsertCommand','unwrap','_getBlockRanges','12OVEQkF','21768IhxTCT','function','10391840rDYWDT','describe','1242PQSkDM','DocsCodeModel','PARAGRAPH','126HcMZvg','string','5881766AOzHou','prototype','2826vsSjyt','startIndex','find','3566003oteXNc','defineProperty','getCodes','getRange','text','846gTarOR','insertCode','length','updateConfig','generateRandomId','33mqGJuN','FDocument','blockId','syncExecuteCommand','88415qmzkky','_createFDocumentCode','DataStreamTreeTokenType','join','object','_unitId','CODE','symbol','_injector'];_0x4f75=function(){return _0x3bb22b;};return _0x4f75();}let l=class{constructor(_0x5a2935,_0x263c28,_0x4313b1){var _0x3dd19a=_0x44b5c1;this[_0x3dd19a(0xc9)]=_0x5a2935,this[_0x3dd19a(0xca)]=_0x263c28,this[_0x3dd19a(0xc1)]=_0x4313b1,o(this,'_unitId',void 0x0),this[_0x3dd19a(0xbe)]=this[_0x3dd19a(0xc9)]['getId']();}['getId'](){var _0x9e640e=_0x44b5c1;return this[_0x9e640e(0xca)];}[_0x44b5c1(0x101)](){var _0x33d9bc=_0x44b5c1;let _0x5517a8=this[_0x33d9bc(0xcd)]();return _0x5517a8?{'blockId':_0x5517a8[_0x33d9bc(0x10a)],'endIndex':_0x5517a8[_0x33d9bc(0xdd)],'startIndex':_0x5517a8[_0x33d9bc(0xfc)]}:null;}[_0x44b5c1(0xd3)](){var _0xb9acb5=_0x44b5c1,_0x3b25ef;let _0x51dae6=this[_0xb9acb5(0xcd)](),_0x3b699f=(_0x3b25ef=this[_0xb9acb5(0xcc)]()[_0xb9acb5(0xcb)])==null?void 0x0:_0x3b25ef[_0xb9acb5(0xd0)];return!_0x51dae6||!_0x3b699f?'':u(_0x3b699f[_0xb9acb5(0xe3)](_0x51dae6['startIndex']+0x1,_0x51dae6[_0xb9acb5(0xdd)]));}[_0x44b5c1(0xf3)](){var _0x4039ce=_0x44b5c1;let _0x3f4b84=this[_0x4039ce(0x101)]();return _0x3f4b84?{..._0x3f4b84,'config':this[_0x4039ce(0xd2)](),'text':this['getText'](),'type':t['DocumentBlockRangeType']['CODE']}:null;}[_0x44b5c1(0xd2)](){var _0x4bd938=_0x44b5c1;return(0x0,e[_0x4bd938(0xd6)])(this['_injector'][_0x4bd938(0xe6)](e[_0x4bd938(0xf5)])[_0x4bd938(0xc8)](this[_0x4bd938(0xbe)],this['_blockId']));}[_0x44b5c1(0x106)](_0x503533){var _0x306952=_0x44b5c1;return this['_injector'][_0x306952(0xe6)](t[_0x306952(0xe4)])['syncExecuteCommand'](e['DocsCodeUpdateCommand']['id'],{'blockId':this[_0x306952(0xca)],'config':_0x503533['config'],'unitId':this['_unitId']});}[_0x44b5c1(0xed)](){var _0x50279d=_0x44b5c1;return this[_0x50279d(0xc1)][_0x50279d(0xe6)](t[_0x50279d(0xe4)])[_0x50279d(0xb8)](e['DocsCodeUnwrapCommand']['id'],{'blockId':this[_0x50279d(0xca)],'unitId':this[_0x50279d(0xbe)]});}[_0x44b5c1(0xda)](){var _0x386617=_0x44b5c1;return this[_0x386617(0xc1)][_0x386617(0xe6)](t[_0x386617(0xe4)])['syncExecuteCommand'](e[_0x386617(0xe7)]['id'],{'blockId':this[_0x386617(0xca)],'unitId':this[_0x386617(0xbe)]});}[_0x44b5c1(0xcd)](){var _0x8d3c7e=_0x44b5c1,_0x5058a1;return((_0x5058a1=this[_0x8d3c7e(0xcc)]()['body'])==null||(_0x5058a1=_0x5058a1['blockRanges'])==null?void 0x0:_0x5058a1[_0x8d3c7e(0xfd)](_0x17bbd4=>_0x17bbd4['blockId']===this[_0x8d3c7e(0xca)]&&_0x17bbd4[_0x8d3c7e(0xdf)]===t[_0x8d3c7e(0xe8)][_0x8d3c7e(0xbf)]))??null;}['_getDocumentData'](){var _0x2da7ca=_0x44b5c1;return this[_0x2da7ca(0xc9)]['save']();}};l=c([s(0x2,(0x0,t[_0x44b5c1(0xe5)])(t[_0x44b5c1(0xd7)]))],l);function u(_0x262610){var _0xaa4ee7=_0x44b5c1;return Array[_0xaa4ee7(0xc5)](_0x262610)[_0xaa4ee7(0xe2)](_0x19c2eb=>_0x19c2eb===t[_0xaa4ee7(0xbb)][_0xaa4ee7(0xf6)]?'\x0a':_0x19c2eb)[_0xaa4ee7(0xd8)](_0x461f2f=>_0x461f2f!==t[_0xaa4ee7(0xbb)][_0xaa4ee7(0xce)]&&_0x461f2f!==t[_0xaa4ee7(0xbb)][_0xaa4ee7(0xd9)]&&_0x461f2f!==t['DataStreamTreeTokenType'][_0xaa4ee7(0xcf)])[_0xaa4ee7(0xbc)]('')[_0xaa4ee7(0xe9)](/\n$/,'');}var d=class extends n['FDocument']{['getCodes'](){var _0x1564f8=_0x44b5c1;return this[_0x1564f8(0xee)]()['filter'](_0x136aa9=>_0x136aa9[_0x1564f8(0xdf)]===t[_0x1564f8(0xe8)][_0x1564f8(0xbf)])['map'](_0x255c8e=>this['_createFDocumentCode'](_0x255c8e[_0x1564f8(0x10a)]));}['getCode'](_0x5ef67a){var _0x34751d=_0x44b5c1;return this['_getBlockRanges']()['some'](_0x3d7420=>_0x3d7420[_0x34751d(0x10a)]===_0x5ef67a&&_0x3d7420[_0x34751d(0xdf)]===t[_0x34751d(0xe8)][_0x34751d(0xbf)])?this[_0x34751d(0xba)](_0x5ef67a):null;}[_0x44b5c1(0xd5)](_0x995749){var _0x1bec99=_0x44b5c1;let _0x148eac=this[_0x1bec99(0xee)]()[_0x1bec99(0xfd)](_0x1511b9=>_0x1511b9[_0x1bec99(0xdf)]===t[_0x1bec99(0xe8)][_0x1bec99(0xbf)]&&_0x1511b9['startIndex']<=_0x995749&&_0x995749<=_0x1511b9[_0x1bec99(0xdd)]);return _0x148eac?this[_0x1bec99(0xba)](_0x148eac[_0x1bec99(0x10a)]):null;}[_0x44b5c1(0xe0)](_0x5279e1){var _0x56a006=_0x44b5c1;return this[_0x56a006(0xc3)](_0x5279e1)[0x0]??null;}[_0x44b5c1(0xc3)](_0x237913){var _0x27278=_0x44b5c1;let _0x19d6f3=typeof _0x237913==_0x27278(0xf8)?{'text':_0x237913}:_0x237913;return this[_0x27278(0x100)]()[_0x27278(0xd8)](_0x427706=>!(_0x19d6f3['blockId']&&_0x427706['getId']()!==_0x19d6f3[_0x27278(0x10a)]||_0x19d6f3[_0x27278(0x102)]&&!_0x427706['getText']()[_0x27278(0xdb)](_0x19d6f3[_0x27278(0x102)])));}[_0x44b5c1(0x104)](_0x37f686={},_0x213bad={}){var _0x532c89=_0x44b5c1;let _0x3963de=this[_0x532c89(0xc1)]['get'](t['ICommandService']),_0x30998d=(0x0,n[_0x532c89(0xd4)])(_0x37f686)?{..._0x213bad,..._0x37f686[_0x532c89(0x101)]()}:_0x37f686,_0x546afd=_0x30998d[_0x532c89(0x10a)]??(0x0,t[_0x532c89(0x107)])(0x6);return _0x3963de['syncExecuteCommand'](e[_0x532c89(0xec)]['id'],{..._0x30998d,'blockId':_0x546afd,'unitId':this['getId']()})?this['getCode'](_0x546afd):null;}[_0x44b5c1(0xee)](){var _0x5d11ad=_0x44b5c1,_0x5ee1f8;return((_0x5ee1f8=this[_0x5d11ad(0xeb)]()[_0x5d11ad(0xcb)])==null?void 0x0:_0x5ee1f8['blockRanges'])??[];}[_0x44b5c1(0xba)](_0x38ef52){var _0x4b76bc=_0x44b5c1;return this['_injector'][_0x4b76bc(0xd1)](l,this,_0x38ef52);}};n[_0x44b5c1(0x109)][_0x44b5c1(0xea)](d),Object[_0x44b5c1(0xff)](exports,'FDocumentCode',{'enumerable':!0x0,'get':function(){return l;}});
|
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x5e231f=_0x2120;(function(_0x3ad6a6,_0x310340){const _0x506ad9=_0x2120,_0x35de90=_0x3ad6a6();while(!![]){try{const _0x44d846=parseInt(_0x506ad9(0x1ab))/0x1*(-parseInt(_0x506ad9(0x189))/0x2)+parseInt(_0x506ad9(0x1fd))/0x3+parseInt(_0x506ad9(0x21f))/0x4+-parseInt(_0x506ad9(0x176))/0x5+-parseInt(_0x506ad9(0x20a))/0x6*(parseInt(_0x506ad9(0x1d8))/0x7)+parseInt(_0x506ad9(0x1bf))/0x8+parseInt(_0x506ad9(0x17b))/0x9*(-parseInt(_0x506ad9(0x1a6))/0xa);if(_0x44d846===_0x310340)break;else _0x35de90['push'](_0x35de90['shift']());}catch(_0x2949ae){_0x35de90['push'](_0x35de90['shift']());}}}(_0x5b91,0x90fd6),Object[_0x5e231f(0x20d)](exports,Symbol[_0x5e231f(0x1db)],{'value':_0x5e231f(0x182)}));let e=require('@univerjs/core'),t=require('rxjs'),n=require('@univerjs/docs'),r=require('@univerjs-pro/license');const i={'language':'javascript','showLineNumbers':!0x1,'tabSize':0x4,'wrap':!0x0};function _0x5b91(){const _0x219f05=['_setResource','indentStart','getParagraphContentStartOffsets','6uixWqp','_config','getContentInsertRange','defineProperty','push','JSONX','customBlocks','DOC_CODE_PLUGIN','blockId','PARAGRAPH','_resources','keepLines','isArray','SetDocsCodeConfigMutation','DataStreamTreeTokenType','object','tables','left','deleteLength','type','SECTION_BREAK','2341484RlRekJ','call','function','DocsCodeModel','FALSE','DocsCodeInsertBelowCommand','sectionBreaks','nextDocumentData','entries','paragraphs','paragraphStyle','getInstance','fromEntries','Injector','docs-code.command.exit','paragraph','metadata','getBody','endTokenOffset','selectionManager','startOffset','docs-code.config','_commandService','DocsCodeRemoveCommand','set','syncExecuteCommand','keepNext','registerCommand','spaceBelow','monospace','textStyle','onStarting','constructor','getOwnPropertyDescriptor','config','ICommandService','intersectsOperationalIntervals','@univerjs-pro/docs-code','blockType','endOffset','min','_injector','disposeWithMe','TextX','2374265DzEfPo','DocsCodeUnwrapCommand','getParagraphFollowingBlockOffset','asObservable','shiftExclusiveRangeOnDelete','1663983QRlmbo','columns','getUnit','insertLength','generateRandomId','_change$','model','Module','insert','decorate','removeUnit','CommandType','docs-code.command.consume-boundary-delete','UniverInstanceType','2taZqCm','docs-code.command.insert','commandService','Inject','UNIVER_DOC','docs-code.command.update','sort','DocsCodeInsertCommand','DocsCodeCancelEmptyParagraphCommand','convert-paragraph','getBlockRangeInterval','find','indexOf','editOp','_initResource','TRUE','columnGroups','max','isCodeBoundaryDelete','slice','normalizeDocsCodeMetadataResource','registerPluginResource','setCodeConfig','compose','change$','DocsCodeUpdateCommand','shiftInclusiveRangeOnInsert','endsWith','delete','10XFkjNs','textRuns','string','paragraphStartIndex','DocumentBlockRangeType','352211fGHUXx','getParagraphsInRange','clear','unitId','DocsCodeConsumeBoundaryDeleteCommand','startTokenOffset','add','_resourceManagerService','getCurrentUnitOfType','get','version','endIndex','blockRanges','COMMAND','getCodeConfig','setConfig','documentData','BuildTextUtils','docs-code.command.insert-below','IResourceManagerService','5542736UUMefP','packageName','toPrimitive','BooleanNumber','symbol','UniverDocsCodePlugin','IUniverInstanceService','shiftInclusiveRangeOnDelete','getParagraphContentStartOffset','customRanges','UniverLicensePlugin','Document\x20body\x20is\x20required','nextMetadata','parse','insertOp','removeCode','TABLE_CELL_END','filter','length','1.0.0-insiders.20260809-70eefdd','removeOp','forEach','complete','shiftExclusiveRangeOnInsert','DocSelectionManagerService','5447729Cvrvds','RichTextEditingMutation','replaceDocRanges','toStringTag','replaceOp','start','getSnapshot','cursorOffset','MUTATION','_docsCodeModel','handler','next','containsInteriorInsertionOffset','direction','dataStream','isHeaderFooterSelection','codes','DOCS_CODE_PLUGIN','body','map','customDecorations','paragraphId','docs-code.mutation.remove-config','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','range','getTextRanges','insertionMode','startIndex','default','stringify','serialize','previousDocumentData','BLOCK_END','CODE','getSingleDataStreamChange','insert-new','spaceAbove','3317589AfVkXP','BLOCK_START','merge','dispose','RemoveDocsCodeConfigMutation','docs-code.command.remove','createParagraphId','some','bullet','deserialize'];_0x5b91=function(){return _0x219f05;};return _0x5b91();}function a(_0x44d8a0){return{...i,..._0x44d8a0};}function o(_0x3a1daa){const _0x1af20d=_0x5e231f;let _0x59e3e5=(_0x3a1daa==null?void 0x0:_0x3a1daa['codes'])??{};return{'codes':Object[_0x1af20d(0x22b)](Object[_0x1af20d(0x227)](_0x59e3e5)[_0x1af20d(0x1eb)](([_0x238988,_0x26250e])=>[_0x238988,a(_0x26250e)]))};}function s(_0x59c339,_0x451aa4,_0xb76a9f){let _0x257970=o(_0x59c339);return _0x257970['codes'][_0x451aa4]=a({..._0x257970['codes'][_0x451aa4],..._0xb76a9f}),_0x257970;}function c(_0x267a96,_0x21c5b2){let _0x173aaa=o(_0x267a96);return delete _0x173aaa['codes'][_0x21c5b2],_0x173aaa;}function l(_0x312c6d){'@babel/helpers - typeof';const _0x440557=_0x5e231f;return l=typeof Symbol==_0x440557(0x221)&&typeof Symbol['iterator']==_0x440557(0x1c3)?function(_0x4d65ed){return typeof _0x4d65ed;}:function(_0x3a2d35){const _0x28ca9c=_0x440557;return _0x3a2d35&&typeof Symbol==_0x28ca9c(0x221)&&_0x3a2d35[_0x28ca9c(0x16a)]===Symbol&&_0x3a2d35!==Symbol['prototype']?'symbol':typeof _0x3a2d35;},l(_0x312c6d);}function u(_0x3bac88,_0x4fa7c6){const _0x148c33=_0x5e231f;if(l(_0x3bac88)!=_0x148c33(0x219)||!_0x3bac88)return _0x3bac88;var _0xa164d8=_0x3bac88[Symbol[_0x148c33(0x1c1)]];if(_0xa164d8!==void 0x0){var _0x1801f9=_0xa164d8[_0x148c33(0x220)](_0x3bac88,_0x4fa7c6||_0x148c33(0x1f4));if(l(_0x1801f9)!=_0x148c33(0x219))return _0x1801f9;throw TypeError(_0x148c33(0x1ef));}return(_0x4fa7c6===_0x148c33(0x1a8)?String:Number)(_0x3bac88);}function d(_0x70b0e6){const _0x2f72ed=_0x5e231f;var _0x4072b3=u(_0x70b0e6,_0x2f72ed(0x1a8));return l(_0x4072b3)==_0x2f72ed(0x1c3)?_0x4072b3:_0x4072b3+'';}function f(_0x16b072,_0x57a40d,_0x39a91d){const _0x3c6eb0=_0x5e231f;return(_0x57a40d=d(_0x57a40d))in _0x16b072?Object[_0x3c6eb0(0x20d)](_0x16b072,_0x57a40d,{'value':_0x39a91d,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x16b072[_0x57a40d]=_0x39a91d,_0x16b072;}var p=class extends e['Disposable']{constructor(..._0x2a40d9){const _0x23ac39=_0x5e231f;super(..._0x2a40d9),f(this,_0x23ac39(0x214),new Map()),f(this,_0x23ac39(0x180),new t['Subject']()),f(this,_0x23ac39(0x1a1),this['_change$'][_0x23ac39(0x179)]());}[_0x5e231f(0x1b9)](_0x156b53,_0x3a35b8){const _0x3dcf1e=_0x5e231f;return o(this['_resources'][_0x3dcf1e(0x1b4)](_0x156b53))[_0x3dcf1e(0x1e8)][_0x3a35b8];}[_0x5e231f(0x19f)](_0x109cc0,_0x12f746,_0x253c6e){const _0x662e92=_0x5e231f;this[_0x662e92(0x207)](_0x109cc0,_0x12f746,s(this['_resources'][_0x662e92(0x1b4)](_0x109cc0),_0x12f746,_0x253c6e));}[_0x5e231f(0x1ce)](_0x2ec0fd,_0x3aa478){const _0x535906=_0x5e231f;this['_setResource'](_0x2ec0fd,_0x3aa478,c(this[_0x535906(0x214)][_0x535906(0x1b4)](_0x2ec0fd),_0x3aa478));}[_0x5e231f(0x1f6)](_0x162ef4){const _0x32a87d=_0x5e231f;return o(this[_0x32a87d(0x214)][_0x32a87d(0x1b4)](_0x162ef4));}[_0x5e231f(0x206)](_0x3ab383,_0x55da98){const _0x447fb9=_0x5e231f;this[_0x447fb9(0x214)][_0x447fb9(0x237)](_0x3ab383,o(_0x55da98)),this[_0x447fb9(0x180)][_0x447fb9(0x1e3)]({'unitId':_0x3ab383});}[_0x5e231f(0x185)](_0x3e5649){const _0x9383aa=_0x5e231f;this[_0x9383aa(0x214)][_0x9383aa(0x1a5)](_0x3e5649),this[_0x9383aa(0x180)]['next']({'unitId':_0x3e5649});}[_0x5e231f(0x200)](){const _0x475ce3=_0x5e231f;super[_0x475ce3(0x200)](),this[_0x475ce3(0x214)][_0x475ce3(0x1ad)](),this[_0x475ce3(0x180)][_0x475ce3(0x1d5)]();}[_0x5e231f(0x207)](_0x50eabd,_0x5e73a9,_0x258669){const _0x48f232=_0x5e231f;this[_0x48f232(0x214)][_0x48f232(0x237)](_0x50eabd,_0x258669),this[_0x48f232(0x180)][_0x48f232(0x1e3)]({'unitId':_0x50eabd,'blockId':_0x5e73a9});}};const m={'id':'docs-code.mutation.set-config','type':e[_0x5e231f(0x186)][_0x5e231f(0x1e0)],'handler':(_0x3f23d3,_0x36dde1)=>!(_0x36dde1!=null&&_0x36dde1['unitId'])||!_0x36dde1['blockId']?!0x1:(_0x3f23d3[_0x5e231f(0x1b4)](p)[_0x5e231f(0x19f)](_0x36dde1[_0x5e231f(0x1ae)],_0x36dde1[_0x5e231f(0x212)],_0x36dde1[_0x5e231f(0x16c)]),!0x0)},h={'id':_0x5e231f(0x1ee),'type':e[_0x5e231f(0x186)][_0x5e231f(0x1e0)],'handler':(_0x1bb685,_0x3e03d0)=>!(_0x3e03d0!=null&&_0x3e03d0[_0x5e231f(0x1ae)])||!_0x3e03d0[_0x5e231f(0x212)]?!0x1:(_0x1bb685[_0x5e231f(0x1b4)](p)[_0x5e231f(0x1ce)](_0x3e03d0['unitId'],_0x3e03d0['blockId']),!0x0)},g=_0x5e231f(0x167);var _=class extends Error{constructor(_0x4f99b3='Insert\x20range\x20cannot\x20cross\x20table\x20cell\x20boundaries'){super(_0x4f99b3);}};function ee(_0x29af10){const _0x2f7fa7=_0x5e231f;var _0x4047fd;let _0x39323c=S(_0x29af10[_0x2f7fa7(0x1bb)]),_0x721bdd=w(_0x39323c),_0x53f645=ne(_0x29af10[_0x2f7fa7(0x233)],_0x29af10[_0x2f7fa7(0x171)]),_0x5a8f02=_0x53f645?(_0x4047fd=_0x721bdd[_0x2f7fa7(0x1b7)])==null?void 0x0:_0x4047fd[_0x2f7fa7(0x194)](_0xa427b7=>{const _0x15c99a=_0x2f7fa7;let _0x13940d=(0x0,e['getBlockRangeInterval'])(_0xa427b7);return _0x13940d['startOffset']===_0x53f645[_0x15c99a(0x233)]&&_0x13940d[_0x15c99a(0x171)]===_0x53f645[_0x15c99a(0x171)];}):void 0x0,{startOffset:_0x516454,endOffset:_0xd016ee}=_0x5a8f02?_0x53f645:me(_0x721bdd,_0x29af10[_0x2f7fa7(0x233)],_0x29af10[_0x2f7fa7(0x171)],_0x29af10[_0x2f7fa7(0x1f2)]);if(!_0x5a8f02&&re(_0x721bdd,_0x516454,_0xd016ee))throw new _('Insert\x20range\x20cannot\x20overlap\x20an\x20existing\x20document\x20block');let _0x388f47=_e(_0x721bdd,_0x516454,_0xd016ee),_0x155256=(_0x5a8f02==null?void 0x0:_0x5a8f02[_0x2f7fa7(0x212)])??_0x29af10[_0x2f7fa7(0x212)],_0x2d8f22=s(_0x29af10[_0x2f7fa7(0x22f)],_0x155256,{...i,..._0x29af10[_0x2f7fa7(0x16c)]});if(_0x5a8f02)return _0x5a8f02[_0x2f7fa7(0x170)]=e['DocumentBlockRangeType']['CODE'],te(_0x721bdd,_0x516454,_0xd016ee),le(_0x721bdd,_0x516454,_0xd016ee,_0x388f47),O(_0x721bdd,_0x5a8f02),{'nextDocumentData':_0x39323c,'nextMetadata':_0x2d8f22,'cursorOffset':_0x516454+0x1};if(_0x516454===_0xd016ee){var _0x1b6cdb,_0xc81042;let _0xc42025=''+e['DataStreamTreeTokenType'][_0x2f7fa7(0x1fe)]+e[_0x2f7fa7(0x218)]['PARAGRAPH']+e[_0x2f7fa7(0x218)][_0x2f7fa7(0x1f8)];k(_0x721bdd,_0x516454,_0xc42025,{'paragraphs':[{'startIndex':0x1,'paragraphId':(0x0,e['createParagraphId'])(new Set((_0x1b6cdb=_0x721bdd[_0x2f7fa7(0x228)])==null?void 0x0:_0x1b6cdb[_0x2f7fa7(0x1eb)](_0x5f5c29=>_0x5f5c29[_0x2f7fa7(0x1ed)]))),'paragraphStyle':x(!0x0,!0x0,_0x388f47)}],'blockRanges':[{'blockId':_0x155256,'blockType':e['DocumentBlockRangeType'][_0x2f7fa7(0x1f9)],'startIndex':0x0,'endIndex':_0xc42025['length']-0x1}]});let _0x30f926=(_0xc81042=_0x721bdd[_0x2f7fa7(0x1b7)])==null?void 0x0:_0xc81042[_0x2f7fa7(0x194)](_0xe0840e=>_0xe0840e[_0x2f7fa7(0x212)]===_0x155256);return _0x30f926&&O(_0x721bdd,_0x30f926),{'nextDocumentData':_0x39323c,'nextMetadata':_0x2d8f22,'cursorOffset':_0x516454+0x1};}k(_0x721bdd,_0xd016ee,e[_0x2f7fa7(0x218)]['BLOCK_END']),k(_0x721bdd,_0x516454,e[_0x2f7fa7(0x218)]['BLOCK_START']),le(_0x721bdd,_0x516454,_0xd016ee+0x1,_0x388f47);let _0xbe694e={'blockId':_0x155256,'blockType':e[_0x2f7fa7(0x1aa)][_0x2f7fa7(0x1f9)],'startIndex':_0x516454,'endIndex':_0xd016ee+0x1};return _0x721bdd['blockRanges']=[..._0x721bdd[_0x2f7fa7(0x1b7)]??[],_0xbe694e][_0x2f7fa7(0x18f)]((_0xf796fb,_0xb87034)=>_0xf796fb[_0x2f7fa7(0x1f3)]-_0xb87034[_0x2f7fa7(0x1f3)]),O(_0x721bdd,_0xbe694e),{'nextDocumentData':_0x39323c,'nextMetadata':_0x2d8f22,'cursorOffset':_0x516454+0x1};}function te(_0x1af965,_0x5e7bb8,_0x193be7){const _0x217d40=_0x5e231f;(_0x1af965['paragraphs']??[])[_0x217d40(0x1d0)](_0x545c2a=>_0x545c2a[_0x217d40(0x1f3)]>_0x5e7bb8&&_0x545c2a[_0x217d40(0x1f3)]<_0x193be7)[_0x217d40(0x1d4)](_0x3eb2bf=>{const _0x3481f1=_0x217d40;let _0x4b8eef={..._0x3eb2bf['paragraphStyle']??{}};delete _0x4b8eef[_0x3481f1(0x1fc)],delete _0x4b8eef['spaceBelow'],_0x3eb2bf[_0x3481f1(0x229)]=_0x4b8eef;});}function ne(_0x18d744,_0x2a1c2f){const _0x12e936=_0x5e231f;return _0x18d744==null||_0x2a1c2f==null||_0x18d744===_0x2a1c2f?null:{'startOffset':Math[_0x12e936(0x172)](_0x18d744,_0x2a1c2f),'endOffset':Math[_0x12e936(0x19a)](_0x18d744,_0x2a1c2f)};}function re(_0x35062e,_0x538e0f,_0x13c19e){return(_0x35062e['blockRanges']??[])['some'](_0x385a1e=>{const _0x5c6cf1=_0x2120;let _0x40d81a=(0x0,e[_0x5c6cf1(0x193)])(_0x385a1e);return _0x538e0f===_0x13c19e?(0x0,e[_0x5c6cf1(0x1e4)])(_0x40d81a,_0x538e0f):(0x0,e[_0x5c6cf1(0x16e)])(_0x40d81a,{'startOffset':_0x538e0f,'endOffset':_0x13c19e});});}function ie(_0x29b290){const _0x35889a=_0x5e231f;return{'nextDocumentData':S(_0x29b290[_0x35889a(0x1bb)]),'nextMetadata':s(_0x29b290[_0x35889a(0x22f)],_0x29b290[_0x35889a(0x212)],_0x29b290['config']),'cursorOffset':0x0};}function v(_0x12d7f0){const _0x1a7c45=_0x5e231f;let _0xd00af3=S(_0x12d7f0[_0x1a7c45(0x1bb)]),_0x58e2b2=w(_0xd00af3),_0x3d07c3=b(_0x58e2b2,_0x12d7f0[_0x1a7c45(0x212)]);if(!_0x3d07c3)return null;let _0x356575=fe(_0x58e2b2,_0x3d07c3);return{'nextDocumentData':_0xd00af3,'nextMetadata':c(_0x12d7f0['metadata'],_0x12d7f0[_0x1a7c45(0x212)]),'cursorOffset':_0x356575};}function ae(_0x23d8ba){const _0x262f24=_0x5e231f;var _0x2f0ee0;let _0x36c2ad=S(_0x23d8ba[_0x262f24(0x1bb)]),_0x4a81d7=w(_0x36c2ad),_0x189dc0=b(_0x4a81d7,_0x23d8ba[_0x262f24(0x212)]);if(!_0x189dc0)return null;let _0x42df95=(0x0,e[_0x262f24(0x193)])(_0x189dc0);return A(_0x4a81d7,_0x42df95[_0x262f24(0x233)],_0x42df95[_0x262f24(0x171)]),_0x4a81d7[_0x262f24(0x1b7)]=(_0x2f0ee0=_0x4a81d7['blockRanges'])==null?void 0x0:_0x2f0ee0['filter'](_0x2598d0=>_0x2598d0[_0x262f24(0x212)]!==_0x23d8ba['blockId']),{'nextDocumentData':_0x36c2ad,'nextMetadata':c(_0x23d8ba['metadata'],_0x23d8ba[_0x262f24(0x212)]),'cursorOffset':_0x189dc0[_0x262f24(0x1f3)]};}function y(_0x1e8a95){const _0x46baea=_0x5e231f;let _0x1d032c=S(_0x1e8a95[_0x46baea(0x1bb)]),_0x10bfc1=w(_0x1d032c),_0x4ea0e1=ce(_0x10bfc1,_0x1e8a95[_0x46baea(0x1df)]);return _0x4ea0e1&&oe(_0x1d032c,_0x10bfc1,_0x4ea0e1,_0x1e8a95['cursorOffset'],_0x1e8a95[_0x46baea(0x1a9)])||null;}function oe(_0x46db85,_0x3bc2df,_0x2ff950,_0x341da3,_0x299d95){const _0x2f8176=_0x5e231f;let _0x5ee893=Se(_0x3bc2df,_0x2ff950,_0x341da3,_0x299d95);if(!_0x5ee893)return null;let _0x5c22c7=_0x5ee893['endTokenOffset']-0x1;return A(_0x3bc2df,_0x5ee893[_0x2f8176(0x22e)][_0x2f8176(0x1f3)],_0x5ee893[_0x2f8176(0x22e)][_0x2f8176(0x1f3)]+0x1),{'nextDocumentData':_0x46db85,'cursorOffset':_0x5c22c7};}function b(_0xc65dc5,_0x84af16){const _0x1750ec=_0x5e231f;var _0x31187;return _0xc65dc5==null||(_0x31187=_0xc65dc5['blockRanges'])==null?void 0x0:_0x31187['find'](_0x3bb9e5=>_0x3bb9e5[_0x1750ec(0x170)]===e[_0x1750ec(0x1aa)][_0x1750ec(0x1f9)]&&_0x3bb9e5[_0x1750ec(0x212)]===_0x84af16);}function se(_0xf818fb){const _0x2445d0=_0x5e231f;let _0x1b09a8=_0xf818fb[_0x2445d0(0x1bb)][_0x2445d0(0x1ea)];if(!_0x1b09a8)return!0x1;let _0x1aa51f=_0xf818fb[_0x2445d0(0x1e5)]===_0x2445d0(0x21b)?_0xf818fb[_0x2445d0(0x1df)]-0x1:_0xf818fb[_0x2445d0(0x1df)],_0x5f2edf=_0xf818fb['direction']==='right'?_0xf818fb['cursorOffset']+0x1:_0x1aa51f;return(_0x1b09a8[_0x2445d0(0x1b7)]??[])[_0x2445d0(0x204)](_0x1b34ce=>_0x1b34ce['blockType']===e[_0x2445d0(0x1aa)][_0x2445d0(0x1f9)]?_0x1aa51f===_0x1b34ce[_0x2445d0(0x1f3)]||_0x1aa51f===_0x1b34ce[_0x2445d0(0x1b6)]||_0x5f2edf===_0x1b34ce[_0x2445d0(0x1f3)]||_0x5f2edf===_0x1b34ce[_0x2445d0(0x1b6)]:!0x1);}function ce(_0x1e001d,_0x4ed0b9){const _0x2cc317=_0x5e231f;var _0x23a94d;return(_0x23a94d=_0x1e001d[_0x2cc317(0x1b7)])==null?void 0x0:_0x23a94d[_0x2cc317(0x194)](_0x2be0b9=>{const _0x102798=_0x2cc317;let _0x38d818=D(_0x2be0b9);return _0x2be0b9[_0x102798(0x170)]===e[_0x102798(0x1aa)][_0x102798(0x1f9)]&&_0x2be0b9['startIndex']<=_0x4ed0b9&&_0x4ed0b9<=_0x38d818+0x2;});}function x(_0xe9eeb3,_0x1fb44d,_0x4f6c76=!0x1){const _0x44d5f2=_0x5e231f;return{'indentEnd':{'v':0x14},'indentStart':{'v':0x14},'keepLines':e['BooleanNumber']['TRUE'],'keepNext':_0x1fb44d?e[_0x44d5f2(0x1c2)][_0x44d5f2(0x223)]:e[_0x44d5f2(0x1c2)]['TRUE'],'widowControl':e[_0x44d5f2(0x1c2)][_0x44d5f2(0x198)],..._0xe9eeb3&&_0x4f6c76?{'spaceAbove':{'v':0x8}}:{},'textStyle':{'ff':g,'fs':0xc}};}function le(_0x1b33f7,_0x340c9f,_0x276a52,_0x39cdb8=!0x1){const _0x244aa5=_0x5e231f;let _0x393b9a=(_0x1b33f7[_0x244aa5(0x228)]??[])[_0x244aa5(0x1d0)](_0xed2e2d=>_0xed2e2d['startIndex']>_0x340c9f&&_0xed2e2d[_0x244aa5(0x1f3)]<_0x276a52);_0x393b9a[_0x244aa5(0x1d4)]((_0x5e4368,_0x235761)=>{const _0x17c8f2=_0x244aa5;_0x5e4368[_0x17c8f2(0x229)]={..._0x5e4368[_0x17c8f2(0x229)]??{},...x(_0x235761===0x0,_0x235761===_0x393b9a[_0x17c8f2(0x1d1)]-0x1,_0x39cdb8)};});}function ue(_0x2c708b){const _0xc4068c=_0x5e231f;var _0x47f437,_0x18320c;let _0x745ee2={..._0x2c708b??{}};return delete _0x745ee2['indentEnd'],delete _0x745ee2[_0xc4068c(0x208)],delete _0x745ee2[_0xc4068c(0x1fc)],delete _0x745ee2[_0xc4068c(0x23b)],delete _0x745ee2[_0xc4068c(0x215)],delete _0x745ee2[_0xc4068c(0x239)],delete _0x745ee2['widowControl'],((_0x47f437=_0x745ee2['textStyle'])==null?void 0x0:_0x47f437['ff'])===g&&((_0x18320c=_0x745ee2[_0xc4068c(0x168)])==null?void 0x0:_0x18320c['fs'])===0xc&&delete _0x745ee2['textStyle'],_0x745ee2;}function de(_0x1d23d9,_0x37b215){const _0x4f0fcf=_0x5e231f;let _0x1fb040=D(_0x37b215);return(_0x1d23d9[_0x4f0fcf(0x228)]??[])[_0x4f0fcf(0x1d0)](_0x27576d=>_0x27576d['startIndex']>_0x37b215['startIndex']&&_0x27576d[_0x4f0fcf(0x1f3)]<_0x1fb040);}function fe(_0x532e30,_0x39a583){const _0x15a6e7=_0x5e231f;var _0x1cf2b1;let _0x334aa7=D(_0x39a583);return de(_0x532e30,_0x39a583)[_0x15a6e7(0x1d4)](_0x488b22=>{const _0x59fa56=_0x15a6e7;_0x488b22[_0x59fa56(0x229)]=ue(_0x488b22[_0x59fa56(0x229)]);}),A(_0x532e30,_0x334aa7,_0x334aa7+0x1),A(_0x532e30,_0x39a583[_0x15a6e7(0x1f3)],_0x39a583['startIndex']+0x1),_0x532e30[_0x15a6e7(0x1b7)]=(_0x1cf2b1=_0x532e30[_0x15a6e7(0x1b7)])==null?void 0x0:_0x1cf2b1[_0x15a6e7(0x1d0)](_0x5a1a3e=>_0x5a1a3e['blockId']!==_0x39a583[_0x15a6e7(0x212)]),_0x39a583[_0x15a6e7(0x1f3)];}function S(_0x3e3cfe){const _0x174f09=_0x5e231f;return{..._0x3e3cfe,'body':_0x3e3cfe[_0x174f09(0x1ea)]?pe(_0x3e3cfe[_0x174f09(0x1ea)]):_0x3e3cfe[_0x174f09(0x1ea)]};}function pe(_0x1035b7){const _0x472473=_0x5e231f;var _0x217033,_0x29c1ae,_0x2ebf53,_0x5dae2b,_0x24f026,_0x1c08c6,_0x2bfeef,_0x476f90,_0x141cae;return{..._0x1035b7,'paragraphs':(_0x217033=_0x1035b7[_0x472473(0x228)])==null?void 0x0:_0x217033[_0x472473(0x1eb)](_0x5ea76a=>({..._0x5ea76a,'bullet':C(_0x5ea76a[_0x472473(0x205)]),'paragraphStyle':C(_0x5ea76a[_0x472473(0x229)])})),'sectionBreaks':(_0x29c1ae=_0x1035b7['sectionBreaks'])==null?void 0x0:_0x29c1ae[_0x472473(0x1eb)](_0x52122a=>({..._0x52122a})),'textRuns':(_0x2ebf53=_0x1035b7[_0x472473(0x1a7)])==null?void 0x0:_0x2ebf53[_0x472473(0x1eb)](_0x59112e=>({..._0x59112e})),'tables':(_0x5dae2b=_0x1035b7[_0x472473(0x21a)])==null?void 0x0:_0x5dae2b[_0x472473(0x1eb)](_0x2011d1=>({..._0x2011d1})),'columnGroups':(_0x24f026=_0x1035b7[_0x472473(0x199)])==null?void 0x0:_0x24f026[_0x472473(0x1eb)](_0x1abf1b=>{const _0x9aa9e7=_0x472473;var _0x38ebd0;return{..._0x1abf1b,'columns':(_0x38ebd0=_0x1abf1b[_0x9aa9e7(0x17c)])==null?void 0x0:_0x38ebd0[_0x9aa9e7(0x1eb)](_0x2e1811=>C(_0x2e1811))};}),'blockRanges':(_0x1c08c6=_0x1035b7['blockRanges'])==null?void 0x0:_0x1c08c6[_0x472473(0x1eb)](_0x28f68e=>({..._0x28f68e})),'customRanges':(_0x2bfeef=_0x1035b7[_0x472473(0x1c8)])==null?void 0x0:_0x2bfeef[_0x472473(0x1eb)](_0x65d8e=>({..._0x65d8e})),'customDecorations':(_0x476f90=_0x1035b7[_0x472473(0x1ec)])==null?void 0x0:_0x476f90[_0x472473(0x1eb)](_0x98dbac=>({..._0x98dbac})),'customBlocks':(_0x141cae=_0x1035b7['customBlocks'])==null?void 0x0:_0x141cae['map'](_0x45b7c4=>({..._0x45b7c4}))};}function C(_0x110f9c){const _0x44a791=_0x5e231f;return Array[_0x44a791(0x216)](_0x110f9c)?_0x110f9c['map'](_0x483a35=>C(_0x483a35)):!_0x110f9c||typeof _0x110f9c!=_0x44a791(0x219)?_0x110f9c:Object[_0x44a791(0x22b)](Object['entries'](_0x110f9c)[_0x44a791(0x1eb)](([_0x225d49,_0x4c8b75])=>[_0x225d49,C(_0x4c8b75)]));}function w(_0x27765a){const _0x89ff69=_0x5e231f;if(!_0x27765a['body'])throw Error(_0x89ff69(0x1ca));return _0x27765a[_0x89ff69(0x1ea)];}function me(_0x4c08d3,_0xf83036,_0x2487d9,_0x5ad156=_0x5e231f(0x192)){const _0x4d40ae=_0x5e231f;if(_0xf83036==null||_0x2487d9==null){let _0x19d965=ge(_0x4c08d3);return{'startOffset':_0x19d965,'endOffset':_0x19d965};}let _0x1b61e8=Math[_0x4d40ae(0x172)](_0xf83036,_0x2487d9),_0x5f0ab5=Math['max'](_0xf83036,_0x2487d9),_0x5acf16=xe(_0x4c08d3,_0x1b61e8,_0x5f0ab5);return _0x1b61e8===_0x5f0ab5?_0x5ad156===_0x4d40ae(0x1fb)?{'startOffset':_0x1b61e8,'endOffset':_0x5f0ab5}:he(_0x4c08d3,_0x1b61e8,_0x5acf16):ve(_0x4c08d3,_0x1b61e8,_0x5f0ab5,_0x5acf16);}function he(_0x33faa9,_0x5016f7,_0x10f4e4){const _0x32db34=_0x5e231f;let _0x427202=ye(_0x33faa9,_0x5016f7);if(_0x427202){let _0x37dbbc=T(_0x33faa9,_0x427202,_0x10f4e4);if(_0x37dbbc<_0x427202[_0x32db34(0x1f3)])return{'startOffset':_0x37dbbc,'endOffset':_0x10f4e4?Math[_0x32db34(0x172)](_0x427202[_0x32db34(0x1f3)]+0x1,_0x10f4e4[_0x32db34(0x171)]):_0x427202[_0x32db34(0x1f3)]+0x1};}let _0x8adaa9=_0x5016f7===0x0&&_0x33faa9[_0x32db34(0x1e6)][0x0]===e[_0x32db34(0x218)][_0x32db34(0x213)]?0x1:_0x5016f7;return{'startOffset':_0x8adaa9,'endOffset':_0x8adaa9};}function ge(_0x1e6293){const _0x18df63=_0x5e231f;return _0x1e6293[_0x18df63(0x1e6)][_0x18df63(0x1a4)](e['DataStreamTreeTokenType']['SECTION_BREAK'])?Math[_0x18df63(0x19a)](0x0,_0x1e6293[_0x18df63(0x1e6)][_0x18df63(0x1d1)]-0x1):_0x1e6293[_0x18df63(0x1e6)][_0x18df63(0x1d1)];}function _e(_0x3ce134,_0x56480e,_0x406198){const _0x1abacc=_0x5e231f;var _0x4551e3;let _0x420816=Math['min'](_0x56480e,_0x406198),_0x2654dd=Math['max'](_0x56480e,_0x406198);return!!((_0x4551e3=_0x3ce134[_0x1abacc(0x21a)])!=null&&_0x4551e3['some'](_0x100f2c=>_0x420816>_0x100f2c[_0x1abacc(0x1f3)]&&_0x420816<_0x100f2c[_0x1abacc(0x1b6)]||_0x2654dd>_0x100f2c[_0x1abacc(0x1f3)]&&_0x2654dd<_0x100f2c[_0x1abacc(0x1b6)]||_0x420816<=_0x100f2c[_0x1abacc(0x1f3)]&&_0x2654dd>=_0x100f2c[_0x1abacc(0x1b6)]));}function ve(_0x3adef7,_0x524bec,_0x57a27c,_0x20fc08){const _0x415b6a=_0x5e231f;let _0x321c0c=[..._0x3adef7['paragraphs']??[]]['sort']((_0x2cb0ab,_0x56ed88)=>_0x2cb0ab[_0x415b6a(0x1f3)]-_0x56ed88[_0x415b6a(0x1f3)]),_0x2d9955=(0x0,e[_0x415b6a(0x209)])(_0x3adef7),_0x53d10e=_0x321c0c[_0x415b6a(0x194)](_0x164296=>T(_0x3adef7,_0x164296,_0x20fc08,_0x2d9955)<=_0x524bec&&_0x524bec<=_0x164296[_0x415b6a(0x1f3)]),_0x42650e=_0x321c0c[_0x415b6a(0x194)](_0x4c1c09=>_0x4c1c09[_0x415b6a(0x1f3)]>=_0x57a27c-0x1)??_0x321c0c[_0x321c0c[_0x415b6a(0x1d1)]-0x1];return{'startOffset':_0x53d10e?T(_0x3adef7,_0x53d10e,_0x20fc08,_0x2d9955):_0x524bec,'endOffset':_0x42650e?be(_0x42650e,_0x20fc08):_0x57a27c};}function ye(_0x5fcd5,_0x2d6151){const _0x1f8adf=_0x5e231f;let _0x53bf1f=[..._0x5fcd5['paragraphs']??[]][_0x1f8adf(0x18f)]((_0x43c584,_0x52133d)=>_0x43c584[_0x1f8adf(0x1f3)]-_0x52133d[_0x1f8adf(0x1f3)]),_0x3f8b05=(0x0,e[_0x1f8adf(0x209)])(_0x5fcd5);return _0x53bf1f['find'](_0x559d46=>(_0x3f8b05[_0x1f8adf(0x1b4)](_0x559d46[_0x1f8adf(0x1f3)])??0x0)<=_0x2d6151&&_0x2d6151<=_0x559d46[_0x1f8adf(0x1f3)]);}function T(_0x4ad3a7,_0x3c1be4,_0x3c42af,_0x4839e4){const _0xd14216=_0x5e231f;let _0x5d5e1b=(_0x4839e4==null?void 0x0:_0x4839e4[_0xd14216(0x1b4)](_0x3c1be4[_0xd14216(0x1f3)]))??(0x0,e['getParagraphContentStartOffset'])(_0x4ad3a7,_0x3c1be4);return _0x3c42af?Math['max'](_0x5d5e1b,_0x3c42af[_0xd14216(0x233)]):_0x5d5e1b;}function be(_0x227e35,_0xf4b953){const _0x4f4789=_0x5e231f;let _0x240ab2=_0x227e35['startIndex']+0x1;return _0xf4b953?Math[_0x4f4789(0x172)](_0x240ab2,_0xf4b953[_0x4f4789(0x171)]):_0x240ab2;}function xe(_0x13617c,_0x534d13,_0x495e31){const _0x12ce8c=_0x5e231f;let _0x5f06f0=E(_0x13617c,_0x534d13),_0x179f2d=E(_0x13617c,_0x534d13===_0x495e31?_0x495e31:Math[_0x12ce8c(0x19a)](_0x534d13,_0x495e31-0x1));if(!(!_0x5f06f0&&!_0x179f2d)){if(!_0x5f06f0||!_0x179f2d||_0x5f06f0[_0x12ce8c(0x1b0)]!==_0x179f2d[_0x12ce8c(0x1b0)]||_0x5f06f0['endTokenOffset']!==_0x179f2d[_0x12ce8c(0x231)])throw new _();return _0x5f06f0;}}function E(_0x5206ca,_0xdb686b){const _0x3d8a8b=_0x5e231f;let _0x30ca7f=_0x5206ca[_0x3d8a8b(0x1e6)],_0x151d14=-0x1;for(let _0x1f310e=Math[_0x3d8a8b(0x172)](_0xdb686b,_0x30ca7f[_0x3d8a8b(0x1d1)]-0x1);_0x1f310e>=0x0;_0x1f310e--){let _0x2798d4=_0x30ca7f[_0x1f310e];if(_0x2798d4===e[_0x3d8a8b(0x218)][_0x3d8a8b(0x1cf)])return;if(_0x2798d4===e[_0x3d8a8b(0x218)]['TABLE_CELL_START']){_0x151d14=_0x1f310e;break;}}if(_0x151d14<0x0)return;let _0x56a489=_0x30ca7f[_0x3d8a8b(0x195)](e['DataStreamTreeTokenType'][_0x3d8a8b(0x1cf)],_0x151d14+0x1);if(!(_0x56a489<0x0||_0xdb686b<_0x151d14+0x1||_0xdb686b>_0x56a489-0x1))return{'startOffset':_0x151d14+0x1,'endOffset':Math[_0x3d8a8b(0x19a)](_0x151d14+0x1,_0x56a489-0x1),'startTokenOffset':_0x151d14,'endTokenOffset':_0x56a489};}function D(_0x5b94d1){const _0x1c04a4=_0x5e231f;return(0x0,e[_0x1c04a4(0x193)])(_0x5b94d1)[_0x1c04a4(0x171)]-0x1;}function Se(_0x5ad513,_0x2412e7,_0x2a32bd,_0x5dec03){const _0x4c2708=_0x5e231f;let _0x2be76e=D(_0x2412e7),_0x223657=(_0x5ad513[_0x4c2708(0x228)]??[])['find'](_0x5eff0e=>_0x5eff0e['startIndex']===_0x2be76e+0x1);if(!_0x223657||_0x5dec03!=null&&_0x223657[_0x4c2708(0x1f3)]!==_0x5dec03||_0x2a32bd!=null&&(_0x2a32bd<_0x2be76e||_0x2a32bd>_0x223657[_0x4c2708(0x1f3)]+0x1)||_0x5ad513[_0x4c2708(0x1e6)][_0x223657[_0x4c2708(0x1f3)]]!==e[_0x4c2708(0x218)][_0x4c2708(0x213)])return null;let _0x16fb3d=(0x0,e[_0x4c2708(0x1c7)])(_0x5ad513,_0x223657),_0x3389dc=_0x5ad513[_0x4c2708(0x1e6)][_0x4c2708(0x19c)](_0x16fb3d,_0x223657[_0x4c2708(0x1f3)]);return Array['from'](_0x3389dc)['every'](_0x20b608=>_0x20b608===e[_0x4c2708(0x218)]['BLOCK_END'])?{'paragraph':_0x223657,'endTokenOffset':_0x2be76e}:null;}function O(_0x5a2e2f,_0x34f164){const _0x290b26=_0x5e231f;var _0x342bca;let _0x55bdbb=D(_0x34f164),_0x73536a=_0x5a2e2f[_0x290b26(0x1e6)][_0x55bdbb+0x1];(_0x73536a===e['DataStreamTreeTokenType'][_0x290b26(0x21e)]||_0x73536a===void 0x0)&&k(_0x5a2e2f,_0x55bdbb+0x1,e['DataStreamTreeTokenType'][_0x290b26(0x213)],{'paragraphs':[{'startIndex':0x0,'paragraphId':(0x0,e[_0x290b26(0x203)])(new Set((_0x342bca=_0x5a2e2f[_0x290b26(0x228)])==null?void 0x0:_0x342bca['map'](_0x5f3337=>_0x5f3337[_0x290b26(0x1ed)])))}]});}function k(_0x3e7851,_0xf9e978,_0x28f403,_0x3540e8={}){const _0x4fd3d6=_0x5e231f;var _0x11bed8,_0xe1f12;_0x28f403&&(_0x3e7851[_0x4fd3d6(0x1e6)]=''+_0x3e7851[_0x4fd3d6(0x1e6)]['slice'](0x0,_0xf9e978)+_0x28f403+_0x3e7851['dataStream'][_0x4fd3d6(0x19c)](_0xf9e978),Ce(_0x3e7851,_0xf9e978,_0x28f403[_0x4fd3d6(0x1d1)]),(_0x11bed8=_0x3540e8[_0x4fd3d6(0x228)])!=null&&_0x11bed8[_0x4fd3d6(0x1d1)]&&(_0x3e7851[_0x4fd3d6(0x228)]=[..._0x3e7851[_0x4fd3d6(0x228)]??[],..._0x3540e8['paragraphs'][_0x4fd3d6(0x1eb)](_0x36d26a=>({..._0x36d26a,'startIndex':_0x36d26a['startIndex']+_0xf9e978}))][_0x4fd3d6(0x18f)]((_0x11a6e6,_0x7ba36)=>_0x11a6e6[_0x4fd3d6(0x1f3)]-_0x7ba36['startIndex'])),(_0xe1f12=_0x3540e8[_0x4fd3d6(0x1b7)])!=null&&_0xe1f12[_0x4fd3d6(0x1d1)]&&(_0x3e7851[_0x4fd3d6(0x1b7)]=[..._0x3e7851[_0x4fd3d6(0x1b7)]??[],..._0x3540e8[_0x4fd3d6(0x1b7)]['map'](_0x1028e9=>({..._0x1028e9,'startIndex':_0x1028e9[_0x4fd3d6(0x1f3)]+_0xf9e978,'endIndex':_0x1028e9[_0x4fd3d6(0x1b6)]+_0xf9e978}))][_0x4fd3d6(0x18f)]((_0x46b6ae,_0x5274f3)=>_0x46b6ae['startIndex']-_0x5274f3['startIndex'])));}function A(_0x51e301,_0x134776,_0x5c21f6){const _0x47bea8=_0x5e231f;let _0x137dfb=_0x5c21f6-_0x134776;_0x51e301[_0x47bea8(0x1e6)]=''+_0x51e301[_0x47bea8(0x1e6)][_0x47bea8(0x19c)](0x0,_0x134776)+_0x51e301[_0x47bea8(0x1e6)][_0x47bea8(0x19c)](_0x5c21f6),we(_0x51e301,_0x134776,_0x137dfb);}function Ce(_0x3d6137,_0x29ad8c,_0x4c0978){const _0x589b4b=_0x5e231f;_0x3d6137['paragraphs']=j(_0x3d6137['paragraphs'],_0x29ad8c,_0x4c0978),_0x3d6137[_0x589b4b(0x225)]=j(_0x3d6137[_0x589b4b(0x225)],_0x29ad8c,_0x4c0978),_0x3d6137[_0x589b4b(0x210)]=j(_0x3d6137[_0x589b4b(0x210)],_0x29ad8c,_0x4c0978),_0x3d6137['textRuns']=Te(_0x3d6137[_0x589b4b(0x1a7)],_0x29ad8c,_0x4c0978),_0x3d6137[_0x589b4b(0x21a)]=Ee(_0x3d6137[_0x589b4b(0x21a)],_0x29ad8c,_0x4c0978),_0x3d6137['columnGroups']=N(_0x3d6137[_0x589b4b(0x199)],_0x29ad8c,_0x4c0978),_0x3d6137[_0x589b4b(0x1c8)]=N(_0x3d6137[_0x589b4b(0x1c8)],_0x29ad8c,_0x4c0978),_0x3d6137[_0x589b4b(0x1ec)]=N(_0x3d6137[_0x589b4b(0x1ec)],_0x29ad8c,_0x4c0978),_0x3d6137['blockRanges']=N(_0x3d6137['blockRanges'],_0x29ad8c,_0x4c0978);}function we(_0x4368ee,_0x611f4c,_0x3ce2e0){const _0x507c19=_0x5e231f;var _0x479ed2,_0x57bf6f;_0x4368ee[_0x507c19(0x228)]=M(_0x4368ee[_0x507c19(0x228)],_0x611f4c,_0x3ce2e0),_0x4368ee[_0x507c19(0x225)]=M(_0x4368ee[_0x507c19(0x225)],_0x611f4c,_0x3ce2e0),_0x4368ee[_0x507c19(0x210)]=M(_0x4368ee[_0x507c19(0x210)],_0x611f4c,_0x3ce2e0),_0x4368ee[_0x507c19(0x1a7)]=(_0x479ed2=F((_0x57bf6f=_0x4368ee[_0x507c19(0x1a7)])==null?void 0x0:_0x57bf6f[_0x507c19(0x1eb)](_0x26de20=>({..._0x26de20,'startIndex':_0x26de20['st'],'endIndex':_0x26de20['ed']})),_0x611f4c,_0x3ce2e0))==null?void 0x0:_0x479ed2[_0x507c19(0x1eb)](_0x1f9841=>{let {startIndex:_0x19571b,endIndex:_0x20d76c,..._0x517460}=_0x1f9841;return{..._0x517460,'st':_0x19571b,'ed':_0x20d76c};}),_0x4368ee[_0x507c19(0x21a)]=F(_0x4368ee[_0x507c19(0x21a)],_0x611f4c,_0x3ce2e0),_0x4368ee[_0x507c19(0x199)]=P(_0x4368ee[_0x507c19(0x199)],_0x611f4c,_0x3ce2e0),_0x4368ee['customRanges']=P(_0x4368ee[_0x507c19(0x1c8)],_0x611f4c,_0x3ce2e0),_0x4368ee[_0x507c19(0x1ec)]=P(_0x4368ee[_0x507c19(0x1ec)],_0x611f4c,_0x3ce2e0),_0x4368ee['blockRanges']=P(_0x4368ee[_0x507c19(0x1b7)],_0x611f4c,_0x3ce2e0);}function j(_0x2f85b1,_0x14aae2,_0x102acd){const _0x31621c=_0x5e231f;return _0x2f85b1==null?void 0x0:_0x2f85b1[_0x31621c(0x1eb)](_0x5afe70=>_0x5afe70['startIndex']>=_0x14aae2?{..._0x5afe70,'startIndex':_0x5afe70[_0x31621c(0x1f3)]+_0x102acd}:_0x5afe70);}function M(_0x19449c,_0x1aaacc,_0x421981){const _0x3c3cf2=_0x5e231f;let _0x3b4e4d=_0x1aaacc+_0x421981;return _0x19449c==null?void 0x0:_0x19449c['map'](_0x1ac740=>_0x1ac740[_0x3c3cf2(0x1f3)]>=_0x1aaacc&&_0x1ac740[_0x3c3cf2(0x1f3)]<_0x3b4e4d?null:_0x1ac740[_0x3c3cf2(0x1f3)]>=_0x3b4e4d?{..._0x1ac740,'startIndex':_0x1ac740[_0x3c3cf2(0x1f3)]-_0x421981}:_0x1ac740)['filter'](_0x26db52=>_0x26db52!=null);}function Te(_0x5bf60c,_0x5daefe,_0xd1edcb){const _0x52220a=_0x5e231f;return _0x5bf60c==null?void 0x0:_0x5bf60c[_0x52220a(0x1eb)](_0x18dab6=>_0x18dab6['st']>=_0x5daefe?{..._0x18dab6,'st':_0x18dab6['st']+_0xd1edcb,'ed':_0x18dab6['ed']+_0xd1edcb}:_0x18dab6['ed']>_0x5daefe?{..._0x18dab6,'ed':_0x18dab6['ed']+_0xd1edcb}:_0x18dab6);}function N(_0x4160c7,_0x4a899a,_0x390091){const _0x5d3450=_0x5e231f;return _0x4160c7==null?void 0x0:_0x4160c7[_0x5d3450(0x1eb)](_0x5a53a3=>(0x0,e[_0x5d3450(0x1a3)])(_0x5a53a3,_0x4a899a,_0x390091));}function Ee(_0x194b4b,_0x12614a,_0x305998){const _0xd5f19e=_0x5e231f;return _0x194b4b==null?void 0x0:_0x194b4b[_0xd5f19e(0x1eb)](_0x1fbffb=>(0x0,e[_0xd5f19e(0x1d6)])(_0x1fbffb,_0x12614a,_0x305998));}function P(_0x44c7c8,_0x5eaa00,_0x5e2567){const _0x5f0d59=_0x5e231f;return _0x44c7c8==null?void 0x0:_0x44c7c8[_0x5f0d59(0x1eb)](_0x29720e=>(0x0,e[_0x5f0d59(0x1c6)])(_0x29720e,_0x5eaa00,_0x5e2567))[_0x5f0d59(0x1d0)](_0x3a0e2a=>_0x3a0e2a!=null);}function F(_0x3c35da,_0x17ce00,_0x12097e){const _0x49f0bc=_0x5e231f;return _0x3c35da==null?void 0x0:_0x3c35da[_0x49f0bc(0x1eb)](_0x45bedb=>(0x0,e[_0x49f0bc(0x17a)])(_0x45bedb,_0x17ce00,_0x12097e))[_0x49f0bc(0x1d0)](_0x574eed=>_0x574eed!=null);}const I={'id':_0x5e231f(0x1bd),'type':e[_0x5e231f(0x186)][_0x5e231f(0x1b8)],'handler':_0x443171=>{const _0x11f2c9=_0x5e231f;var _0x448b51;if((0x0,n['isHeaderFooterSelection'])(W(_0x443171)))return!0x1;let _0x161fdb=(0x0,n[_0x11f2c9(0x20c)])(_0x443171);if(_0x161fdb)return _0x443171[_0x11f2c9(0x1b4)](e[_0x11f2c9(0x16d)])[_0x11f2c9(0x238)](R['id'],{'startOffset':_0x161fdb[_0x11f2c9(0x233)],'endOffset':_0x161fdb[_0x11f2c9(0x171)],'insertionMode':_0x11f2c9(0x1fb),'unitId':_0x161fdb[_0x11f2c9(0x1ae)]});let _0x43c47b=je(_0x443171);if(!_0x43c47b)return!0x1;let _0x15969d=(_0x448b51=_0x443171[_0x11f2c9(0x1b4)](e['IUniverInstanceService'])['getCurrentUnitOfType'](e['UniverInstanceType'][_0x11f2c9(0x18d)]))==null?void 0x0:_0x448b51['getBody'](),_0x1787ce=_0x15969d?(0x0,e[_0x11f2c9(0x178)])(_0x15969d,_0x43c47b):_0x43c47b[_0x11f2c9(0x1f3)]+0x1;return _0x443171[_0x11f2c9(0x1b4)](e['ICommandService'])['syncExecuteCommand'](R['id'],{'startOffset':_0x1787ce,'endOffset':_0x1787ce});}},L={'id':_0x5e231f(0x187),'type':e[_0x5e231f(0x186)][_0x5e231f(0x1b8)],'handler':()=>!0x0},R={'id':_0x5e231f(0x18a),'type':e[_0x5e231f(0x186)][_0x5e231f(0x1b8)],'handler':(_0x173423,_0x299f80)=>{const _0x1a677e=_0x5e231f;let _0xc8c518=U(_0x173423,_0x299f80==null?void 0x0:_0x299f80[_0x1a677e(0x1ae)]);if(!_0xc8c518)return!0x1;let _0x3b077b=W(_0x173423);if((0x0,n[_0x1a677e(0x1e7)])(_0x3b077b))return!0x1;let _0x4951fc=_0xc8c518[_0x1a677e(0x181)][_0x1a677e(0x1f6)](_0xc8c518[_0x1a677e(0x1ae)]),_0x1f11b3=Oe(_0x299f80,_0x3b077b),_0x433ff9=ke(_0xc8c518[_0x1a677e(0x1f7)],_0x1f11b3);if(_0x433ff9){if(_0x433ff9[_0x1a677e(0x170)]!==e['DocumentBlockRangeType'][_0x1a677e(0x1f9)])return!0x1;let _0x55254c=v({'blockId':_0x433ff9['blockId'],'documentData':_0xc8c518[_0x1a677e(0x1f7)],'metadata':_0x4951fc});if(!_0x55254c)return!0x1;let _0x466000=J(_0xc8c518[_0x1a677e(0x18b)],_0xc8c518[_0x1a677e(0x232)],_0xc8c518[_0x1a677e(0x1ae)],_0xc8c518[_0x1a677e(0x1f7)],_0x55254c['nextDocumentData'],R['id'],_0x55254c[_0x1a677e(0x1df)]);return _0x466000&&_0x55254c[_0x1a677e(0x1cb)]&&_0xc8c518[_0x1a677e(0x181)][_0x1a677e(0x206)](_0xc8c518[_0x1a677e(0x1ae)],_0x55254c[_0x1a677e(0x1cb)]),_0x466000;}let _0x180995=(_0x299f80==null?void 0x0:_0x299f80['blockId'])??(0x0,e[_0x1a677e(0x17f)])(0x6),_0xbbbfcc;try{_0xbbbfcc=ee({'blockId':_0x180995,'config':_0x299f80==null?void 0x0:_0x299f80[_0x1a677e(0x16c)],'documentData':_0xc8c518[_0x1a677e(0x1f7)],'endOffset':_0x1f11b3==null?void 0x0:_0x1f11b3[_0x1a677e(0x171)],'insertionMode':_0x299f80==null?void 0x0:_0x299f80[_0x1a677e(0x1f2)],'metadata':_0x4951fc,'startOffset':_0x1f11b3==null?void 0x0:_0x1f11b3[_0x1a677e(0x233)]});}catch(_0x454ad7){if(_0x454ad7 instanceof _)return!0x1;throw _0x454ad7;}let _0x1a5ea7=J(_0xc8c518[_0x1a677e(0x18b)],_0xc8c518[_0x1a677e(0x232)],_0xc8c518['unitId'],_0xc8c518['previousDocumentData'],_0xbbbfcc['nextDocumentData'],R['id'],_0xbbbfcc['cursorOffset']);return _0x1a5ea7&&_0xbbbfcc[_0x1a677e(0x1cb)]&&_0xc8c518['model'][_0x1a677e(0x206)](_0xc8c518['unitId'],_0xbbbfcc[_0x1a677e(0x1cb)]),_0x1a5ea7;}},z={'id':_0x5e231f(0x18e),'type':e[_0x5e231f(0x186)][_0x5e231f(0x1b8)],'handler':(_0x42503f,_0x4bceea)=>{const _0x528558=_0x5e231f;if(!_0x4bceea)return!0x1;let _0x3360a2=U(_0x42503f,_0x4bceea[_0x528558(0x1ae)]);if(!_0x3360a2)return!0x1;let _0x34594a=ie({'blockId':_0x4bceea['blockId'],'config':_0x4bceea['config'],'documentData':_0x3360a2[_0x528558(0x1f7)],'metadata':_0x3360a2[_0x528558(0x181)][_0x528558(0x1f6)](_0x3360a2['unitId'])});return _0x34594a[_0x528558(0x1cb)]&&_0x3360a2[_0x528558(0x181)][_0x528558(0x206)](_0x3360a2[_0x528558(0x1ae)],_0x34594a[_0x528558(0x1cb)]),!0x0;}},De={'id':_0x5e231f(0x22d),'type':e[_0x5e231f(0x186)]['COMMAND'],'handler':(_0x45d332,_0x32fac6)=>B[_0x5e231f(0x1e2)](_0x45d332,_0x32fac6)},B={'id':'docs-code.command.unwrap','type':e[_0x5e231f(0x186)][_0x5e231f(0x1b8)],'handler':(_0x40f76d,_0xf8bbb0)=>{const _0x34951e=_0x5e231f;if(!_0xf8bbb0)return!0x1;let _0x35c051=U(_0x40f76d,_0xf8bbb0==null?void 0x0:_0xf8bbb0[_0x34951e(0x1ae)]);if(!_0x35c051)return!0x1;let _0x228dda=v({'blockId':_0xf8bbb0[_0x34951e(0x212)],'documentData':_0x35c051[_0x34951e(0x1f7)],'metadata':_0x35c051[_0x34951e(0x181)][_0x34951e(0x1f6)](_0x35c051[_0x34951e(0x1ae)])});if(!_0x228dda)return!0x1;let _0x1b1008=J(_0x35c051[_0x34951e(0x18b)],_0x35c051[_0x34951e(0x232)],_0x35c051[_0x34951e(0x1ae)],_0x35c051[_0x34951e(0x1f7)],_0x228dda['nextDocumentData'],B['id'],_0x228dda[_0x34951e(0x1df)]);return _0x1b1008&&_0x228dda[_0x34951e(0x1cb)]&&_0x35c051['model'][_0x34951e(0x206)](_0x35c051[_0x34951e(0x1ae)],_0x228dda[_0x34951e(0x1cb)]),_0x1b1008;}},V={'id':_0x5e231f(0x202),'type':e[_0x5e231f(0x186)]['COMMAND'],'handler':(_0x30ecc6,_0x2ae301)=>{const _0x14d10c=_0x5e231f;if(!_0x2ae301)return!0x1;let _0x3b73d2=U(_0x30ecc6,_0x2ae301==null?void 0x0:_0x2ae301[_0x14d10c(0x1ae)]);if(!_0x3b73d2)return!0x1;let _0x10a446=ae({'blockId':_0x2ae301[_0x14d10c(0x212)],'documentData':_0x3b73d2['previousDocumentData'],'metadata':_0x3b73d2[_0x14d10c(0x181)][_0x14d10c(0x1f6)](_0x3b73d2[_0x14d10c(0x1ae)])});if(!_0x10a446)return!0x1;let _0x21c986=J(_0x3b73d2[_0x14d10c(0x18b)],_0x3b73d2['selectionManager'],_0x3b73d2[_0x14d10c(0x1ae)],_0x3b73d2[_0x14d10c(0x1f7)],_0x10a446['nextDocumentData'],V['id'],_0x10a446['cursorOffset']);return _0x21c986&&_0x10a446['nextMetadata']&&_0x3b73d2['model'][_0x14d10c(0x206)](_0x3b73d2[_0x14d10c(0x1ae)],_0x10a446[_0x14d10c(0x1cb)]),_0x21c986;}},H={'id':'docs-code.command.cancel-empty-paragraph','type':e[_0x5e231f(0x186)]['COMMAND'],'handler':(_0x579003,_0x358d67)=>{const _0x4d11be=_0x5e231f;var _0x2a48eb;let _0x44882a=U(_0x579003,_0x358d67==null?void 0x0:_0x358d67[_0x4d11be(0x1ae)]);if(!_0x44882a)return!0x1;let _0x48a1c1=(_0x358d67==null?void 0x0:_0x358d67[_0x4d11be(0x1df)])??((_0x2a48eb=W(_0x579003))==null?void 0x0:_0x2a48eb[_0x4d11be(0x233)]);if(_0x48a1c1==null)return!0x1;let _0x5a6180=y({'cursorOffset':_0x48a1c1,'documentData':_0x44882a[_0x4d11be(0x1f7)],'paragraphStartIndex':_0x358d67==null?void 0x0:_0x358d67[_0x4d11be(0x1a9)]});return _0x5a6180?J(_0x44882a[_0x4d11be(0x18b)],_0x44882a['selectionManager'],_0x44882a[_0x4d11be(0x1ae)],_0x44882a[_0x4d11be(0x1f7)],_0x5a6180[_0x4d11be(0x226)],H['id'],_0x5a6180['cursorOffset']):!0x1;}};function U(_0x5ecf96,_0x37eccf){const _0x36e954=_0x5e231f;let _0x34e132=_0x5ecf96[_0x36e954(0x1b4)](e[_0x36e954(0x1c5)]),_0x3c49a0=_0x37eccf?_0x34e132[_0x36e954(0x17d)](_0x37eccf,e[_0x36e954(0x188)][_0x36e954(0x18d)]):_0x34e132[_0x36e954(0x1b3)](e[_0x36e954(0x188)][_0x36e954(0x18d)]);return _0x3c49a0?{'commandService':_0x5ecf96[_0x36e954(0x1b4)](e[_0x36e954(0x16d)]),'model':_0x5ecf96[_0x36e954(0x1b4)](p),'previousDocumentData':_0x3c49a0[_0x36e954(0x1de)](),'selectionManager':_0x5ecf96['get'](n[_0x36e954(0x1d7)]),'unitId':_0x3c49a0['getUnitId']()}:null;}function W(_0x46980a){const _0x5cac82=_0x5e231f;var _0x15476c;return(_0x15476c=_0x46980a[_0x5cac82(0x1b4)](n[_0x5cac82(0x1d7)])[_0x5cac82(0x1f1)]())==null?void 0x0:_0x15476c[0x0];}function Oe(_0x5786af,_0x888423){const _0x2d30f7=_0x5e231f;let _0x1111e0=(_0x5786af==null?void 0x0:_0x5786af[_0x2d30f7(0x233)])??(_0x888423==null?void 0x0:_0x888423[_0x2d30f7(0x233)]),_0x31ce18=(_0x5786af==null?void 0x0:_0x5786af[_0x2d30f7(0x171)])??(_0x888423==null?void 0x0:_0x888423['endOffset']);if(_0x1111e0!=null&&_0x31ce18!=null)return{'endOffset':Math['max'](_0x1111e0,_0x31ce18),'startOffset':Math['min'](_0x1111e0,_0x31ce18)};}function ke(_0x2dae98,_0x52af77){const _0x40722b=_0x5e231f;var _0x2f6c62;if(!_0x52af77)return;let _0xd19f0f=Ae(_0x52af77);return(_0x2f6c62=_0x2dae98['body'])==null||(_0x2f6c62=_0x2f6c62[_0x40722b(0x1b7)])==null?void 0x0:_0x2f6c62['find'](_0x547977=>{const _0x5933cd=_0x40722b;let _0x15c78c=(0x0,e[_0x5933cd(0x193)])(_0x547977);return _0x52af77[_0x5933cd(0x233)]===_0x52af77['endOffset']?(0x0,e[_0x5933cd(0x1e4)])(_0x15c78c,_0xd19f0f):(0x0,e['containsStreamIndex'])(_0x15c78c,_0xd19f0f);});}function Ae(_0x2405af){const _0x4fac0c=_0x5e231f;return _0x2405af[_0x4fac0c(0x233)]===_0x2405af[_0x4fac0c(0x171)]?_0x2405af[_0x4fac0c(0x233)]:_0x2405af[_0x4fac0c(0x233)]+0x1;}function je(_0x49691d){const _0x541f66=_0x5e231f;let _0x2b895d=W(_0x49691d);if(!_0x2b895d)return null;let _0x581f2a=_0x49691d['get'](e['IUniverInstanceService'])['getCurrentUnitOfType'](e['UniverInstanceType']['UNIVER_DOC']),_0x43ac55=_0x581f2a==null?void 0x0:_0x581f2a[_0x541f66(0x230)]();return _0x43ac55?e[_0x541f66(0x1bc)][_0x541f66(0x1f0)][_0x541f66(0x1ac)](_0x2b895d,_0x43ac55[_0x541f66(0x228)]??[],_0x43ac55[_0x541f66(0x1e6)]??'')[0x0]??null:null;}function Me(_0x1386e7,_0x436990){const _0x4adc16=_0x5e231f;let _0x5279c4=_0x1386e7['body'],_0x430674=_0x436990[_0x4adc16(0x1ea)],_0x1d6649=(0x0,e[_0x4adc16(0x1fa)])(_0x5279c4,_0x430674);return[_0x1d6649&&_0x430674?Ne(_0x430674,_0x1d6649):null,_0x1d6649?null:Pe(_0x5279c4,_0x430674)][_0x4adc16(0x1d0)](Boolean)['reduce']((_0x112ca9,_0x1da789)=>e[_0x4adc16(0x20f)]['compose'](_0x112ca9,_0x1da789),null);}function Ne(_0x958b33,_0x3ceace){const _0x4e815b=_0x5e231f;let _0x7f8859=new e[(_0x4e815b(0x175))]();return _0x7f8859['retain'](_0x3ceace['start']),_0x3ceace[_0x4e815b(0x17e)]>0x0&&_0x7f8859[_0x4e815b(0x183)](_0x3ceace['insertLength'],(0x0,e['getBodySliceForTextXAction'])(_0x958b33,_0x3ceace[_0x4e815b(0x1dd)],_0x3ceace[_0x4e815b(0x1dd)]+_0x3ceace[_0x4e815b(0x17e)],!0x1)),_0x3ceace[_0x4e815b(0x21c)]>0x0&&_0x7f8859[_0x4e815b(0x1a5)](_0x3ceace['deleteLength']),e['JSONX'][_0x4e815b(0x22a)]()[_0x4e815b(0x196)](_0x7f8859[_0x4e815b(0x1f6)](),['body']);}function Pe(_0x2c6162,_0x1c4714){const _0x174805=_0x5e231f;let _0x372198=[],_0x3a9918=_0x2c6162?G(_0x2c6162):void 0x0,_0x4eaf61=_0x1c4714?G(_0x1c4714):void 0x0;for(let _0x4cbda7 of Fe)K(e[_0x174805(0x20f)]['getInstance'](),[_0x174805(0x1ea),_0x4cbda7],_0x3a9918==null?void 0x0:_0x3a9918[_0x4cbda7],_0x4eaf61==null?void 0x0:_0x4eaf61[_0x4cbda7],_0x372198);return _0x372198['reduce']((_0x1dd508,_0x9a9c72)=>e[_0x174805(0x20f)][_0x174805(0x1a0)](_0x1dd508,_0x9a9c72),null);}const Fe=[_0x5e231f(0x228),'sectionBreaks',_0x5e231f(0x21a),_0x5e231f(0x199),_0x5e231f(0x1b7),_0x5e231f(0x210),_0x5e231f(0x1c8),_0x5e231f(0x1ec),_0x5e231f(0x1a7)];function G(_0x951cea){return _0x951cea;}function K(_0x38c4db,_0x412191,_0x2dc63c,_0x1bc880,_0x269b9f){const _0x4def07=_0x5e231f;if(!q(_0x2dc63c,_0x1bc880)){if(_0x2dc63c==null){_0x269b9f[_0x4def07(0x20e)](_0x38c4db[_0x4def07(0x1cd)](_0x412191,_0x1bc880));return;}if(_0x1bc880==null){_0x269b9f['push'](_0x38c4db[_0x4def07(0x1d3)](_0x412191,_0x2dc63c));return;}if(Array[_0x4def07(0x216)](_0x2dc63c)&&Array[_0x4def07(0x216)](_0x1bc880)){Ie(_0x38c4db,_0x412191,_0x2dc63c,_0x1bc880,_0x269b9f);return;}if(Le(_0x2dc63c)&&Le(_0x1bc880)){new Set([...Object['keys'](_0x2dc63c),...Object['keys'](_0x1bc880)])[_0x4def07(0x1d4)](_0x29b943=>{K(_0x38c4db,[..._0x412191,_0x29b943],_0x2dc63c[_0x29b943],_0x1bc880[_0x29b943],_0x269b9f);});return;}_0x269b9f[_0x4def07(0x20e)](_0x38c4db[_0x4def07(0x1dc)](_0x412191,_0x2dc63c,_0x1bc880));}}function Ie(_0x12e262,_0x92c847,_0x42351d,_0x227d82,_0x5e21cf){const _0x124551=_0x5e231f;if(_0x42351d[_0x124551(0x1d1)]===_0x227d82['length']){_0x42351d[_0x124551(0x1d4)]((_0x599a77,_0x2b7398)=>K(_0x12e262,[..._0x92c847,_0x2b7398],_0x599a77,_0x227d82[_0x2b7398],_0x5e21cf));return;}let _0x23591f=0x0;for(;_0x23591f<_0x42351d[_0x124551(0x1d1)]&&_0x23591f<_0x227d82['length']&&q(_0x42351d[_0x23591f],_0x227d82[_0x23591f]);)_0x23591f++;let _0x1f7746=_0x42351d['length']-0x1,_0x551bf3=_0x227d82[_0x124551(0x1d1)]-0x1;for(;_0x1f7746>=_0x23591f&&_0x551bf3>=_0x23591f&&q(_0x42351d[_0x1f7746],_0x227d82[_0x551bf3]);)_0x1f7746--,_0x551bf3--;for(let _0x11cb36=_0x1f7746;_0x11cb36>=_0x23591f;_0x11cb36--)_0x5e21cf[_0x124551(0x20e)](_0x12e262['removeOp']([..._0x92c847,_0x11cb36],_0x42351d[_0x11cb36]));for(let _0x36e405=_0x23591f;_0x36e405<=_0x551bf3;_0x36e405++)_0x5e21cf[_0x124551(0x20e)](_0x12e262[_0x124551(0x1cd)]([..._0x92c847,_0x36e405],_0x227d82[_0x36e405]));}function Le(_0x22496e){const _0x502209=_0x5e231f;return typeof _0x22496e==_0x502209(0x219)&&!!_0x22496e&&!Array[_0x502209(0x216)](_0x22496e);}function q(_0x1fc367,_0x24854c){return JSON['stringify'](_0x1fc367)===JSON['stringify'](_0x24854c);}function J(_0xfc1246,_0x4464ec,_0x3d73c7,_0x28509d,_0x11ab3f,_0x4c45ac,_0x1d8030){const _0x45af63=_0x5e231f;let _0x3dda18=Me(_0x28509d,_0x11ab3f);return _0x3dda18?!!_0xfc1246[_0x45af63(0x238)](n[_0x45af63(0x1d9)]['id'],{'unitId':_0x3d73c7,'actions':_0x3dda18,'textRanges':[{'startOffset':_0x1d8030,'endOffset':_0x1d8030,'collapsed':!0x0}],'isEditing':!0x1,'trigger':_0x4c45ac}):(_0x4464ec[_0x45af63(0x1da)]([{'startOffset':_0x1d8030,'endOffset':_0x1d8030}],{'unitId':_0x3d73c7,'subUnitId':_0x3d73c7},!0x1),!0x0);}const Y=_0x5e231f(0x211);var Re=_0x5e231f(0x16f),ze=_0x5e231f(0x1d2);const Be={};function X(_0x577b8a,_0x40b7c8){return function(_0x5d7593,_0x1d9b9b){_0x40b7c8(_0x5d7593,_0x1d9b9b,_0x577b8a);};}function _0x2120(_0x234644,_0x1e6532){_0x234644=_0x234644-0x167;const _0x5b9111=_0x5b91();let _0x21204e=_0x5b9111[_0x234644];return _0x21204e;}function Z(_0x1ae00c,_0x5d2878,_0x4522b2,_0x1d7aac){const _0x497198=_0x5e231f;var _0x436cea=arguments['length'],_0x161015=_0x436cea<0x3?_0x5d2878:_0x1d7aac===null?_0x1d7aac=Object[_0x497198(0x16b)](_0x5d2878,_0x4522b2):_0x1d7aac,_0x3c8c05;if(typeof Reflect==_0x497198(0x219)&&typeof Reflect[_0x497198(0x184)]=='function')_0x161015=Reflect[_0x497198(0x184)](_0x1ae00c,_0x5d2878,_0x4522b2,_0x1d7aac);else{for(var _0x33b6a6=_0x1ae00c['length']-0x1;_0x33b6a6>=0x0;_0x33b6a6--)(_0x3c8c05=_0x1ae00c[_0x33b6a6])&&(_0x161015=(_0x436cea<0x3?_0x3c8c05(_0x161015):_0x436cea>0x3?_0x3c8c05(_0x5d2878,_0x4522b2,_0x161015):_0x3c8c05(_0x5d2878,_0x4522b2))||_0x161015);}return _0x436cea>0x3&&_0x161015&&Object[_0x497198(0x20d)](_0x5d2878,_0x4522b2,_0x161015),_0x161015;}let Q=class extends e['Disposable']{constructor(_0x118fae,_0x51b0a9){const _0x3e107b=_0x5e231f;super(),this[_0x3e107b(0x1b2)]=_0x118fae,this[_0x3e107b(0x1e1)]=_0x51b0a9,this[_0x3e107b(0x197)]();}[_0x5e231f(0x197)](){const _0x3fe4e1=_0x5e231f;this[_0x3fe4e1(0x174)](this[_0x3fe4e1(0x1b2)][_0x3fe4e1(0x19e)]({'pluginName':Y,'businesses':[e[_0x3fe4e1(0x188)][_0x3fe4e1(0x18d)]],'toJson':_0x47c65f=>JSON[_0x3fe4e1(0x1f5)](this[_0x3fe4e1(0x1e1)][_0x3fe4e1(0x1f6)](_0x47c65f)),'parseJson':_0x48dce6=>o(JSON[_0x3fe4e1(0x1cc)](_0x48dce6)),'onLoad':(_0x52b7f7,_0x4e661e)=>this['_docsCodeModel'][_0x3fe4e1(0x206)](_0x52b7f7,_0x4e661e),'onUnLoad':_0xcc8587=>this['_docsCodeModel'][_0x3fe4e1(0x185)](_0xcc8587)}));}};Q=Z([X(0x0,e[_0x5e231f(0x1be)]),X(0x1,(0x0,e['Inject'])(p))],Q);let $=class extends e['Plugin']{constructor(_0x147b77=Be,_0x34412c,_0xde6c52,_0x4fb4f7){const _0x2574e9=_0x5e231f;super(),this[_0x2574e9(0x20b)]=_0x147b77,this[_0x2574e9(0x173)]=_0x34412c,this['_commandService']=_0xde6c52,this['_configService']=_0x4fb4f7;let {..._0x531545}=(0x0,e[_0x2574e9(0x1ff)])({},Be,this[_0x2574e9(0x20b)]);this['_configService'][_0x2574e9(0x1ba)](_0x2574e9(0x234),_0x531545);}[_0x5e231f(0x169)](){const _0x1ed867=_0x5e231f;this[_0x1ed867(0x173)]['add']([p]),this[_0x1ed867(0x173)][_0x1ed867(0x1b1)]([Q]),this['_injector'][_0x1ed867(0x1b4)](p),this['_injector']['get'](Q),[R,I,z,B,V,De,H,L,m,h][_0x1ed867(0x1d4)](_0x29129d=>this[_0x1ed867(0x174)](this[_0x1ed867(0x235)][_0x1ed867(0x23a)](_0x29129d)));}};f($,'pluginName',Y),f($,_0x5e231f(0x1c0),Re),f($,_0x5e231f(0x1b5),ze),f($,_0x5e231f(0x21d),e[_0x5e231f(0x188)][_0x5e231f(0x18d)]),$=Z([(0x0,e['DependentOn'])(r[_0x5e231f(0x1c9)],n['UniverDocsPlugin']),X(0x1,(0x0,e[_0x5e231f(0x18c)])(e[_0x5e231f(0x22c)])),X(0x2,e[_0x5e231f(0x16d)]),X(0x3,e['IConfigService'])],$),exports[_0x5e231f(0x1e9)]=Y,exports[_0x5e231f(0x191)]=H,exports[_0x5e231f(0x1af)]=L,exports[_0x5e231f(0x224)]=I,exports[_0x5e231f(0x190)]=R,exports[_0x5e231f(0x222)]=p,exports[_0x5e231f(0x236)]=V,exports[_0x5e231f(0x177)]=B,exports[_0x5e231f(0x1a2)]=z,exports[_0x5e231f(0x201)]=h,exports[_0x5e231f(0x217)]=m,Object[_0x5e231f(0x20d)](exports,_0x5e231f(0x1c4),{'enumerable':!0x0,'get':function(){return $;}}),exports['buildCancelEmptyCodeParagraphActions']=y,exports[_0x5e231f(0x19b)]=se,exports['normalizeDocsCodeConfig']=a,exports[_0x5e231f(0x19d)]=o;
|
|
1
|
+
const _0x404e5d=_0x153d;(function(_0x441c33,_0x223198){const _0x57ce4f=_0x153d,_0x5ea8eb=_0x441c33();while(!![]){try{const _0x42dd8d=parseInt(_0x57ce4f(0x1ff))/0x1*(parseInt(_0x57ce4f(0x213))/0x2)+parseInt(_0x57ce4f(0x237))/0x3*(-parseInt(_0x57ce4f(0x240))/0x4)+-parseInt(_0x57ce4f(0x1af))/0x5+parseInt(_0x57ce4f(0x1e8))/0x6*(parseInt(_0x57ce4f(0x1d5))/0x7)+-parseInt(_0x57ce4f(0x1f5))/0x8*(-parseInt(_0x57ce4f(0x200))/0x9)+-parseInt(_0x57ce4f(0x253))/0xa+-parseInt(_0x57ce4f(0x223))/0xb*(-parseInt(_0x57ce4f(0x238))/0xc);if(_0x42dd8d===_0x223198)break;else _0x5ea8eb['push'](_0x5ea8eb['shift']());}catch(_0x16e05a){_0x5ea8eb['push'](_0x5ea8eb['shift']());}}}(_0x89c7,0x1a8cd),Object[_0x404e5d(0x201)](exports,Symbol['toStringTag'],{'value':_0x404e5d(0x207)}));let e=require('@univerjs/core'),t=require('rxjs'),n=require('@univerjs/docs'),r=require('@univerjs-pro/license');const i={'language':'javascript','showLineNumbers':!0x1,'tabSize':0x4,'wrap':!0x0};function _0x89c7(){const _0x4d6bea=['selectionManager','keepNext','_initResource','metadata','DocsCodeUpdateCommand','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','3817IbeEAy','compose','_commandService','UniverDocsCodePlugin','docs-code.config','min','isCodeBoundaryDelete','cursorOffset','constructor','config','complete','insertionMode','body','packageName','CommandType','widowControl','sort','Insert\x20range\x20cannot\x20cross\x20table\x20cell\x20boundaries','BuildTextUtils','push','3hKSCrp','9228vlrfho','syncExecuteCommand','normalizeDocsCodeConfig','commandService','UniverInstanceType','Insert\x20range\x20cannot\x20overlap\x20an\x20existing\x20document\x20block','getTextRanges','max','454092BFJxOA','MUTATION','insert-new','version','serialize','intersectsOperationalIntervals','getInstance','endOffset','Document\x20body\x20is\x20required','bullet','DOCS_CODE_PLUGIN','delete','filter','sectionBreaks','deleteLength','UniverDocsPlugin','getUnit','startIndex','JSONX','1009640DRcRkl','docs-code.command.insert','stringify','SECTION_BREAK','endTokenOffset','onStarting','spaceAbove','textStyle','add','DocSelectionManagerService','Disposable','buildCancelEmptyCodeParagraphActions','CODE','DocsCodeCancelEmptyParagraphCommand','customRanges','indexOf','registerPluginResource','getBody','BLOCK_START','disposeWithMe','range','setConfig','DocsCodeModel','docs-code.mutation.remove-config','ICommandService','handler','some','string','deserialize','type','docs-code.command.remove','PARAGRAPH','setCodeConfig','codes','customBlocks','replaceOp','DependentOn','DataStreamTreeTokenType','_setResource','function','insert','docs-code.command.consume-boundary-delete','TABLE_CELL_END','UNIVER_DOC','FALSE','DOC_CODE_PLUGIN','_injector','length','removeCode','SetDocsCodeConfigMutation','isHeaderFooterSelection','getSnapshot','DocsCodeRemoveCommand','dataStream','706205idLUgi','textRuns','blockId','blockRanges','RemoveDocsCodeConfigMutation','merge','createParagraphId','documentData','spaceBelow','DocsCodeConsumeBoundaryDeleteCommand','docs-code.command.cancel-empty-paragraph','columns','docs-code.command.update','COMMAND','shiftInclusiveRangeOnDelete','forEach','Injector','every','clear','insertOp','DocsCodeInsertCommand','generateRandomId','monospace','DocsCodeInsertBelowCommand','BooleanNumber','startTokenOffset','decorate','slice','_docsCodeModel','registerCommand','previousDocumentData','DocumentBlockRangeType','endIndex','_config','map','keys','getBlockRangeInterval','containsInteriorInsertionOffset','28KEPaMw','getParagraphFollowingBlockOffset','paragraphId','IUniverInstanceService','paragraphStartIndex','editOp','parse','customDecorations','direction','shiftInclusiveRangeOnInsert','symbol','next','paragraphs','asObservable','fromEntries','call','@univerjs-pro/docs-code','nextDocumentData','unitId','11190UNXvnU','blockType','paragraphStyle','_resources','paragraph','default','set','indentStart','start','getParagraphContentStartOffsets','retain','reduce','BLOCK_END','608tTuCmy','removeOp','1.0.0-rc.0','getParagraphContentStartOffset','get','removeUnit','startOffset','toPrimitive','nextMetadata','isArray','2CNXgJY','9162pmQlKT','defineProperty','object','_configService','model','shiftExclusiveRangeOnDelete','getCurrentUnitOfType','Module','getOwnPropertyDescriptor','TRUE','from','right','find','Inject','_change$','getUnitId','entries','dispose','containsStreamIndex','112806njghec','columnGroups','tables','IConfigService','_resourceManagerService','TABLE_CELL_START','convert-paragraph','insertLength','endsWith','docs-code.mutation.set-config'];_0x89c7=function(){return _0x4d6bea;};return _0x89c7();}function a(_0x1c6c4f){return{...i,..._0x1c6c4f};}function o(_0x257a09){const _0x5de2e3=_0x404e5d;let _0x136e03=(_0x257a09==null?void 0x0:_0x257a09[_0x5de2e3(0x274)])??{};return{'codes':Object[_0x5de2e3(0x1e3)](Object[_0x5de2e3(0x210)](_0x136e03)['map'](([_0x5651f9,_0x9acd2a])=>[_0x5651f9,a(_0x9acd2a)]))};}function s(_0x3b50cd,_0xaa5402,_0x4f8396){const _0x5b569c=_0x404e5d;let _0x7337fa=o(_0x3b50cd);return _0x7337fa['codes'][_0xaa5402]=a({..._0x7337fa[_0x5b569c(0x274)][_0xaa5402],..._0x4f8396}),_0x7337fa;}function c(_0x12cc83,_0x201d75){const _0x247010=_0x404e5d;let _0x230245=o(_0x12cc83);return delete _0x230245[_0x247010(0x274)][_0x201d75],_0x230245;}function l(_0x4beaab){'@babel/helpers - typeof';const _0x3b4bbd=_0x404e5d;return l=typeof Symbol==_0x3b4bbd(0x1a0)&&typeof Symbol['iterator']==_0x3b4bbd(0x1df)?function(_0x303948){return typeof _0x303948;}:function(_0x2a9d54){const _0x1de0aa=_0x3b4bbd;return _0x2a9d54&&typeof Symbol=='function'&&_0x2a9d54[_0x1de0aa(0x22b)]===Symbol&&_0x2a9d54!==Symbol['prototype']?_0x1de0aa(0x1df):typeof _0x2a9d54;},l(_0x4beaab);}function u(_0x5d566f,_0x436cdf){const _0x585409=_0x404e5d;if(l(_0x5d566f)!='object'||!_0x5d566f)return _0x5d566f;var _0x5a5c85=_0x5d566f[Symbol[_0x585409(0x1fc)]];if(_0x5a5c85!==void 0x0){var _0x3fccc3=_0x5a5c85[_0x585409(0x1e4)](_0x5d566f,_0x436cdf||_0x585409(0x1ed));if(l(_0x3fccc3)!='object')return _0x3fccc3;throw TypeError(_0x585409(0x222));}return(_0x436cdf==='string'?String:Number)(_0x5d566f);}function d(_0x21c723){const _0x568a2=_0x404e5d;var _0xef1db3=u(_0x21c723,_0x568a2(0x26e));return l(_0xef1db3)==_0x568a2(0x1df)?_0xef1db3:_0xef1db3+'';}function f(_0x59e6e0,_0x4ce4bf,_0x1f49d9){const _0x57b305=_0x404e5d;return(_0x4ce4bf=d(_0x4ce4bf))in _0x59e6e0?Object[_0x57b305(0x201)](_0x59e6e0,_0x4ce4bf,{'value':_0x1f49d9,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x59e6e0[_0x4ce4bf]=_0x1f49d9,_0x59e6e0;}var p=class extends e[_0x404e5d(0x25d)]{constructor(..._0x55ba8b){const _0x2e548e=_0x404e5d;super(..._0x55ba8b),f(this,_0x2e548e(0x1eb),new Map()),f(this,'_change$',new t['Subject']()),f(this,'change$',this[_0x2e548e(0x20e)][_0x2e548e(0x1e2)]());}['getCodeConfig'](_0x33fcb4,_0x88971a){const _0x5dd5be=_0x404e5d;return o(this[_0x5dd5be(0x1eb)]['get'](_0x33fcb4))[_0x5dd5be(0x274)][_0x88971a];}['setCodeConfig'](_0x5ac57d,_0x3a9e2c,_0x570f9f){const _0x4a37e0=_0x404e5d;this[_0x4a37e0(0x279)](_0x5ac57d,_0x3a9e2c,s(this[_0x4a37e0(0x1eb)][_0x4a37e0(0x1f9)](_0x5ac57d),_0x3a9e2c,_0x570f9f));}[_0x404e5d(0x1a9)](_0xd5b4c1,_0x515c57){const _0x351ff6=_0x404e5d;this[_0x351ff6(0x279)](_0xd5b4c1,_0x515c57,c(this[_0x351ff6(0x1eb)][_0x351ff6(0x1f9)](_0xd5b4c1),_0x515c57));}[_0x404e5d(0x244)](_0x3dfb2a){const _0x27af5c=_0x404e5d;return o(this[_0x27af5c(0x1eb)][_0x27af5c(0x1f9)](_0x3dfb2a));}[_0x404e5d(0x26f)](_0x575d6b,_0x3a27f5){const _0x2b6901=_0x404e5d;this[_0x2b6901(0x1eb)][_0x2b6901(0x1ee)](_0x575d6b,o(_0x3a27f5)),this[_0x2b6901(0x20e)][_0x2b6901(0x1e0)]({'unitId':_0x575d6b});}['removeUnit'](_0x2b2e29){const _0x20638f=_0x404e5d;this[_0x20638f(0x1eb)][_0x20638f(0x24b)](_0x2b2e29),this[_0x20638f(0x20e)][_0x20638f(0x1e0)]({'unitId':_0x2b2e29});}['dispose'](){const _0x2c85ae=_0x404e5d;super[_0x2c85ae(0x211)](),this[_0x2c85ae(0x1eb)][_0x2c85ae(0x1c1)](),this[_0x2c85ae(0x20e)][_0x2c85ae(0x22d)]();}[_0x404e5d(0x279)](_0x2d5a01,_0x5692f4,_0x415ebe){const _0x85f624=_0x404e5d;this['_resources'][_0x85f624(0x1ee)](_0x2d5a01,_0x415ebe),this[_0x85f624(0x20e)][_0x85f624(0x1e0)]({'unitId':_0x2d5a01,'blockId':_0x5692f4});}};const m={'id':_0x404e5d(0x21c),'type':e[_0x404e5d(0x231)]['MUTATION'],'handler':(_0x3b42f0,_0x1197ba)=>!(_0x1197ba!=null&&_0x1197ba[_0x404e5d(0x1e7)])||!_0x1197ba[_0x404e5d(0x1b1)]?!0x1:(_0x3b42f0['get'](p)[_0x404e5d(0x273)](_0x1197ba['unitId'],_0x1197ba[_0x404e5d(0x1b1)],_0x1197ba[_0x404e5d(0x22c)]),!0x0)},h={'id':_0x404e5d(0x26a),'type':e['CommandType'][_0x404e5d(0x241)],'handler':(_0x466ee3,_0x6dc32b)=>!(_0x6dc32b!=null&&_0x6dc32b[_0x404e5d(0x1e7)])||!_0x6dc32b['blockId']?!0x1:(_0x466ee3[_0x404e5d(0x1f9)](p)[_0x404e5d(0x1a9)](_0x6dc32b[_0x404e5d(0x1e7)],_0x6dc32b[_0x404e5d(0x1b1)]),!0x0)},g=_0x404e5d(0x1c5);var _=class extends Error{constructor(_0x245bc3=_0x404e5d(0x234)){super(_0x245bc3);}};function ee(_0x2ec4c0){const _0x15b77d=_0x404e5d;var _0x5a9655;let _0xd5702b=S(_0x2ec4c0[_0x15b77d(0x1b6)]),_0x15c790=w(_0xd5702b),_0x422571=ne(_0x2ec4c0[_0x15b77d(0x1fb)],_0x2ec4c0[_0x15b77d(0x247)]),_0x54ef61=_0x422571?(_0x5a9655=_0x15c790[_0x15b77d(0x1b2)])==null?void 0x0:_0x5a9655[_0x15b77d(0x20c)](_0xe3841a=>{const _0x26e171=_0x15b77d;let _0x43397b=(0x0,e['getBlockRangeInterval'])(_0xe3841a);return _0x43397b[_0x26e171(0x1fb)]===_0x422571[_0x26e171(0x1fb)]&&_0x43397b[_0x26e171(0x247)]===_0x422571['endOffset'];}):void 0x0,{startOffset:_0x3ebe5e,endOffset:_0x2234b4}=_0x54ef61?_0x422571:me(_0x15c790,_0x2ec4c0[_0x15b77d(0x1fb)],_0x2ec4c0[_0x15b77d(0x247)],_0x2ec4c0[_0x15b77d(0x22e)]);if(!_0x54ef61&&re(_0x15c790,_0x3ebe5e,_0x2234b4))throw new _(_0x15b77d(0x23d));let _0x343706=_e(_0x15c790,_0x3ebe5e,_0x2234b4),_0x41a07e=(_0x54ef61==null?void 0x0:_0x54ef61[_0x15b77d(0x1b1)])??_0x2ec4c0[_0x15b77d(0x1b1)],_0x13fa3a=s(_0x2ec4c0[_0x15b77d(0x220)],_0x41a07e,{...i,..._0x2ec4c0[_0x15b77d(0x22c)]});if(_0x54ef61)return _0x54ef61[_0x15b77d(0x1e9)]=e[_0x15b77d(0x1ce)][_0x15b77d(0x25f)],te(_0x15c790,_0x3ebe5e,_0x2234b4),le(_0x15c790,_0x3ebe5e,_0x2234b4,_0x343706),O(_0x15c790,_0x54ef61),{'nextDocumentData':_0xd5702b,'nextMetadata':_0x13fa3a,'cursorOffset':_0x3ebe5e+0x1};if(_0x3ebe5e===_0x2234b4){var _0x2027c0,_0x29d7a8;let _0x546c2c=''+e[_0x15b77d(0x278)]['BLOCK_START']+e[_0x15b77d(0x278)][_0x15b77d(0x272)]+e[_0x15b77d(0x278)][_0x15b77d(0x1f4)];k(_0x15c790,_0x3ebe5e,_0x546c2c,{'paragraphs':[{'startIndex':0x1,'paragraphId':(0x0,e[_0x15b77d(0x1b5)])(new Set((_0x2027c0=_0x15c790['paragraphs'])==null?void 0x0:_0x2027c0['map'](_0x5616c1=>_0x5616c1['paragraphId']))),'paragraphStyle':x(!0x0,!0x0,_0x343706)}],'blockRanges':[{'blockId':_0x41a07e,'blockType':e[_0x15b77d(0x1ce)]['CODE'],'startIndex':0x0,'endIndex':_0x546c2c['length']-0x1}]});let _0x5bd0fe=(_0x29d7a8=_0x15c790['blockRanges'])==null?void 0x0:_0x29d7a8[_0x15b77d(0x20c)](_0x377665=>_0x377665['blockId']===_0x41a07e);return _0x5bd0fe&&O(_0x15c790,_0x5bd0fe),{'nextDocumentData':_0xd5702b,'nextMetadata':_0x13fa3a,'cursorOffset':_0x3ebe5e+0x1};}k(_0x15c790,_0x2234b4,e[_0x15b77d(0x278)][_0x15b77d(0x1f4)]),k(_0x15c790,_0x3ebe5e,e['DataStreamTreeTokenType'][_0x15b77d(0x265)]),le(_0x15c790,_0x3ebe5e,_0x2234b4+0x1,_0x343706);let _0xca8c3a={'blockId':_0x41a07e,'blockType':e['DocumentBlockRangeType'][_0x15b77d(0x25f)],'startIndex':_0x3ebe5e,'endIndex':_0x2234b4+0x1};return _0x15c790['blockRanges']=[..._0x15c790['blockRanges']??[],_0xca8c3a]['sort']((_0x595e90,_0x2ce3e1)=>_0x595e90[_0x15b77d(0x251)]-_0x2ce3e1[_0x15b77d(0x251)]),O(_0x15c790,_0xca8c3a),{'nextDocumentData':_0xd5702b,'nextMetadata':_0x13fa3a,'cursorOffset':_0x3ebe5e+0x1};}function te(_0x5064cd,_0x12c0e1,_0x19097f){const _0x335b5b=_0x404e5d;(_0x5064cd['paragraphs']??[])[_0x335b5b(0x24c)](_0x321ce8=>_0x321ce8[_0x335b5b(0x251)]>_0x12c0e1&&_0x321ce8[_0x335b5b(0x251)]<_0x19097f)[_0x335b5b(0x1be)](_0x258c56=>{const _0x27b7e1=_0x335b5b;let _0x1834f5={..._0x258c56['paragraphStyle']??{}};delete _0x1834f5[_0x27b7e1(0x259)],delete _0x1834f5[_0x27b7e1(0x1b7)],_0x258c56[_0x27b7e1(0x1ea)]=_0x1834f5;});}function ne(_0x41ee60,_0xbc001d){const _0x57c380=_0x404e5d;return _0x41ee60==null||_0xbc001d==null||_0x41ee60===_0xbc001d?null:{'startOffset':Math[_0x57c380(0x228)](_0x41ee60,_0xbc001d),'endOffset':Math[_0x57c380(0x23f)](_0x41ee60,_0xbc001d)};}function re(_0x517482,_0xe7a041,_0x4aff2b){const _0x4b90e3=_0x404e5d;return(_0x517482[_0x4b90e3(0x1b2)]??[])[_0x4b90e3(0x26d)](_0x51c429=>{const _0x54915=_0x4b90e3;let _0x3cb874=(0x0,e[_0x54915(0x1d3)])(_0x51c429);return _0xe7a041===_0x4aff2b?(0x0,e[_0x54915(0x1d4)])(_0x3cb874,_0xe7a041):(0x0,e[_0x54915(0x245)])(_0x3cb874,{'startOffset':_0xe7a041,'endOffset':_0x4aff2b});});}function ie(_0x4f9b8c){const _0x421074=_0x404e5d;return{'nextDocumentData':S(_0x4f9b8c[_0x421074(0x1b6)]),'nextMetadata':s(_0x4f9b8c[_0x421074(0x220)],_0x4f9b8c[_0x421074(0x1b1)],_0x4f9b8c[_0x421074(0x22c)]),'cursorOffset':0x0};}function v(_0x32301a){const _0x35d676=_0x404e5d;let _0x136cde=S(_0x32301a[_0x35d676(0x1b6)]),_0x284d27=w(_0x136cde),_0x1f72ea=b(_0x284d27,_0x32301a[_0x35d676(0x1b1)]);if(!_0x1f72ea)return null;let _0x5b60b6=fe(_0x284d27,_0x1f72ea);return{'nextDocumentData':_0x136cde,'nextMetadata':c(_0x32301a['metadata'],_0x32301a[_0x35d676(0x1b1)]),'cursorOffset':_0x5b60b6};}function ae(_0x16d3c4){const _0x1ee11e=_0x404e5d;var _0x130086;let _0x42de2f=S(_0x16d3c4[_0x1ee11e(0x1b6)]),_0x3a4c46=w(_0x42de2f),_0x616832=b(_0x3a4c46,_0x16d3c4[_0x1ee11e(0x1b1)]);if(!_0x616832)return null;let _0x49c35b=(0x0,e[_0x1ee11e(0x1d3)])(_0x616832);return A(_0x3a4c46,_0x49c35b[_0x1ee11e(0x1fb)],_0x49c35b['endOffset']),_0x3a4c46[_0x1ee11e(0x1b2)]=(_0x130086=_0x3a4c46['blockRanges'])==null?void 0x0:_0x130086[_0x1ee11e(0x24c)](_0x2aa9d1=>_0x2aa9d1[_0x1ee11e(0x1b1)]!==_0x16d3c4[_0x1ee11e(0x1b1)]),{'nextDocumentData':_0x42de2f,'nextMetadata':c(_0x16d3c4[_0x1ee11e(0x220)],_0x16d3c4['blockId']),'cursorOffset':_0x616832[_0x1ee11e(0x251)]};}function y(_0x2c7c5e){const _0x4c1616=_0x404e5d;let _0x20b5ee=S(_0x2c7c5e['documentData']),_0x2cf9c4=w(_0x20b5ee),_0x308f46=ce(_0x2cf9c4,_0x2c7c5e[_0x4c1616(0x22a)]);return _0x308f46&&oe(_0x20b5ee,_0x2cf9c4,_0x308f46,_0x2c7c5e[_0x4c1616(0x22a)],_0x2c7c5e[_0x4c1616(0x1d9)])||null;}function oe(_0x4230c1,_0x29cef6,_0x45afa1,_0xb73c13,_0x584606){const _0x1aca57=_0x404e5d;let _0x34f4b5=Se(_0x29cef6,_0x45afa1,_0xb73c13,_0x584606);if(!_0x34f4b5)return null;let _0x5c524e=_0x34f4b5[_0x1aca57(0x257)]-0x1;return A(_0x29cef6,_0x34f4b5[_0x1aca57(0x1ec)]['startIndex'],_0x34f4b5['paragraph'][_0x1aca57(0x251)]+0x1),{'nextDocumentData':_0x4230c1,'cursorOffset':_0x5c524e};}function b(_0xe860ec,_0x2cf1cc){const _0x144396=_0x404e5d;var _0x30e711;return _0xe860ec==null||(_0x30e711=_0xe860ec[_0x144396(0x1b2)])==null?void 0x0:_0x30e711['find'](_0x4fd82e=>_0x4fd82e[_0x144396(0x1e9)]===e[_0x144396(0x1ce)][_0x144396(0x25f)]&&_0x4fd82e['blockId']===_0x2cf1cc);}function se(_0x2394d5){const _0x193f6e=_0x404e5d;let _0x58abc8=_0x2394d5[_0x193f6e(0x1b6)][_0x193f6e(0x22f)];if(!_0x58abc8)return!0x1;let _0x832f0c=_0x2394d5['direction']==='left'?_0x2394d5[_0x193f6e(0x22a)]-0x1:_0x2394d5['cursorOffset'],_0x1f1b25=_0x2394d5[_0x193f6e(0x1dd)]===_0x193f6e(0x20b)?_0x2394d5[_0x193f6e(0x22a)]+0x1:_0x832f0c;return(_0x58abc8[_0x193f6e(0x1b2)]??[])[_0x193f6e(0x26d)](_0x44885e=>_0x44885e['blockType']===e[_0x193f6e(0x1ce)][_0x193f6e(0x25f)]?_0x832f0c===_0x44885e[_0x193f6e(0x251)]||_0x832f0c===_0x44885e[_0x193f6e(0x1cf)]||_0x1f1b25===_0x44885e[_0x193f6e(0x251)]||_0x1f1b25===_0x44885e[_0x193f6e(0x1cf)]:!0x1);}function ce(_0x1afe10,_0x45305b){const _0x34d920=_0x404e5d;var _0x5bf369;return(_0x5bf369=_0x1afe10[_0x34d920(0x1b2)])==null?void 0x0:_0x5bf369[_0x34d920(0x20c)](_0x574a43=>{const _0x2a6c98=_0x34d920;let _0x34d7fd=D(_0x574a43);return _0x574a43['blockType']===e[_0x2a6c98(0x1ce)][_0x2a6c98(0x25f)]&&_0x574a43['startIndex']<=_0x45305b&&_0x45305b<=_0x34d7fd+0x2;});}function x(_0x4a085e,_0x5998f9,_0x12503c=!0x1){const _0x5a5091=_0x404e5d;return{'indentEnd':{'v':0x14},'indentStart':{'v':0x14},'keepLines':e[_0x5a5091(0x1c7)][_0x5a5091(0x209)],'keepNext':_0x5998f9?e[_0x5a5091(0x1c7)][_0x5a5091(0x1a5)]:e['BooleanNumber']['TRUE'],'widowControl':e[_0x5a5091(0x1c7)]['TRUE'],..._0x4a085e&&_0x12503c?{'spaceAbove':{'v':0x8}}:{},'textStyle':{'ff':g,'fs':0xc}};}function le(_0x12b2a6,_0x15814e,_0x2f0a73,_0x5913c2=!0x1){const _0x5928f6=_0x404e5d;let _0x5c2ee1=(_0x12b2a6[_0x5928f6(0x1e1)]??[])[_0x5928f6(0x24c)](_0x4f2217=>_0x4f2217[_0x5928f6(0x251)]>_0x15814e&&_0x4f2217[_0x5928f6(0x251)]<_0x2f0a73);_0x5c2ee1[_0x5928f6(0x1be)]((_0xa32ec2,_0x1be219)=>{const _0x2f28ec=_0x5928f6;_0xa32ec2['paragraphStyle']={..._0xa32ec2[_0x2f28ec(0x1ea)]??{},...x(_0x1be219===0x0,_0x1be219===_0x5c2ee1[_0x2f28ec(0x1a8)]-0x1,_0x5913c2)};});}function ue(_0x372440){const _0x540d9d=_0x404e5d;var _0x5a61e9,_0x33249e;let _0x474e55={..._0x372440??{}};return delete _0x474e55['indentEnd'],delete _0x474e55[_0x540d9d(0x1ef)],delete _0x474e55[_0x540d9d(0x259)],delete _0x474e55[_0x540d9d(0x1b7)],delete _0x474e55['keepLines'],delete _0x474e55[_0x540d9d(0x21e)],delete _0x474e55[_0x540d9d(0x232)],((_0x5a61e9=_0x474e55['textStyle'])==null?void 0x0:_0x5a61e9['ff'])===g&&((_0x33249e=_0x474e55[_0x540d9d(0x25a)])==null?void 0x0:_0x33249e['fs'])===0xc&&delete _0x474e55[_0x540d9d(0x25a)],_0x474e55;}function de(_0x4bd5c3,_0x26c797){const _0x597a86=_0x404e5d;let _0x1a2345=D(_0x26c797);return(_0x4bd5c3[_0x597a86(0x1e1)]??[])[_0x597a86(0x24c)](_0x1a1c37=>_0x1a1c37[_0x597a86(0x251)]>_0x26c797['startIndex']&&_0x1a1c37[_0x597a86(0x251)]<_0x1a2345);}function fe(_0x17323c,_0x15414d){const _0x572345=_0x404e5d;var _0x12ef8c;let _0x1c2672=D(_0x15414d);return de(_0x17323c,_0x15414d)[_0x572345(0x1be)](_0x321eb6=>{const _0x588e96=_0x572345;_0x321eb6[_0x588e96(0x1ea)]=ue(_0x321eb6['paragraphStyle']);}),A(_0x17323c,_0x1c2672,_0x1c2672+0x1),A(_0x17323c,_0x15414d['startIndex'],_0x15414d[_0x572345(0x251)]+0x1),_0x17323c[_0x572345(0x1b2)]=(_0x12ef8c=_0x17323c[_0x572345(0x1b2)])==null?void 0x0:_0x12ef8c[_0x572345(0x24c)](_0x2022ab=>_0x2022ab[_0x572345(0x1b1)]!==_0x15414d[_0x572345(0x1b1)]),_0x15414d[_0x572345(0x251)];}function S(_0x2d411f){const _0x54f5ff=_0x404e5d;return{..._0x2d411f,'body':_0x2d411f[_0x54f5ff(0x22f)]?pe(_0x2d411f[_0x54f5ff(0x22f)]):_0x2d411f[_0x54f5ff(0x22f)]};}function pe(_0x544010){const _0x45a615=_0x404e5d;var _0x1d1027,_0xb561a2,_0x33882f,_0x500e06,_0x355b61,_0x54d4f2,_0x4be941,_0x66206a,_0x203c03;return{..._0x544010,'paragraphs':(_0x1d1027=_0x544010[_0x45a615(0x1e1)])==null?void 0x0:_0x1d1027[_0x45a615(0x1d1)](_0x4a54ed=>({..._0x4a54ed,'bullet':C(_0x4a54ed[_0x45a615(0x249)]),'paragraphStyle':C(_0x4a54ed['paragraphStyle'])})),'sectionBreaks':(_0xb561a2=_0x544010[_0x45a615(0x24d)])==null?void 0x0:_0xb561a2[_0x45a615(0x1d1)](_0x2bc9b0=>({..._0x2bc9b0})),'textRuns':(_0x33882f=_0x544010[_0x45a615(0x1b0)])==null?void 0x0:_0x33882f[_0x45a615(0x1d1)](_0xebf109=>({..._0xebf109})),'tables':(_0x500e06=_0x544010[_0x45a615(0x215)])==null?void 0x0:_0x500e06['map'](_0x34a18e=>({..._0x34a18e})),'columnGroups':(_0x355b61=_0x544010[_0x45a615(0x214)])==null?void 0x0:_0x355b61[_0x45a615(0x1d1)](_0x38511f=>{const _0x4dfd58=_0x45a615;var _0xcd356;return{..._0x38511f,'columns':(_0xcd356=_0x38511f[_0x4dfd58(0x1ba)])==null?void 0x0:_0xcd356['map'](_0xc87ba7=>C(_0xc87ba7))};}),'blockRanges':(_0x54d4f2=_0x544010['blockRanges'])==null?void 0x0:_0x54d4f2[_0x45a615(0x1d1)](_0x1f3e94=>({..._0x1f3e94})),'customRanges':(_0x4be941=_0x544010[_0x45a615(0x261)])==null?void 0x0:_0x4be941[_0x45a615(0x1d1)](_0x4a8eef=>({..._0x4a8eef})),'customDecorations':(_0x66206a=_0x544010[_0x45a615(0x1dc)])==null?void 0x0:_0x66206a['map'](_0x1fd5d0=>({..._0x1fd5d0})),'customBlocks':(_0x203c03=_0x544010[_0x45a615(0x275)])==null?void 0x0:_0x203c03['map'](_0x3fc6e4=>({..._0x3fc6e4}))};}function C(_0x5f2a1b){const _0x84e316=_0x404e5d;return Array[_0x84e316(0x1fe)](_0x5f2a1b)?_0x5f2a1b['map'](_0xf1409f=>C(_0xf1409f)):!_0x5f2a1b||typeof _0x5f2a1b!=_0x84e316(0x202)?_0x5f2a1b:Object[_0x84e316(0x1e3)](Object['entries'](_0x5f2a1b)[_0x84e316(0x1d1)](([_0x2d68f6,_0x2c6bc2])=>[_0x2d68f6,C(_0x2c6bc2)]));}function w(_0x206f17){const _0x309a3b=_0x404e5d;if(!_0x206f17[_0x309a3b(0x22f)])throw Error(_0x309a3b(0x248));return _0x206f17['body'];}function me(_0x2928f8,_0x509a39,_0x3d0c19,_0x59ced4=_0x404e5d(0x219)){const _0x53cc49=_0x404e5d;if(_0x509a39==null||_0x3d0c19==null){let _0x4f37ef=ge(_0x2928f8);return{'startOffset':_0x4f37ef,'endOffset':_0x4f37ef};}let _0x4918fe=Math[_0x53cc49(0x228)](_0x509a39,_0x3d0c19),_0x272a25=Math[_0x53cc49(0x23f)](_0x509a39,_0x3d0c19),_0x1f94a5=xe(_0x2928f8,_0x4918fe,_0x272a25);return _0x4918fe===_0x272a25?_0x59ced4===_0x53cc49(0x242)?{'startOffset':_0x4918fe,'endOffset':_0x272a25}:he(_0x2928f8,_0x4918fe,_0x1f94a5):ve(_0x2928f8,_0x4918fe,_0x272a25,_0x1f94a5);}function he(_0xed370f,_0x1208b2,_0x4f9431){const _0x44b9c1=_0x404e5d;let _0x78bea6=ye(_0xed370f,_0x1208b2);if(_0x78bea6){let _0x1421fb=T(_0xed370f,_0x78bea6,_0x4f9431);if(_0x1421fb<_0x78bea6[_0x44b9c1(0x251)])return{'startOffset':_0x1421fb,'endOffset':_0x4f9431?Math['min'](_0x78bea6[_0x44b9c1(0x251)]+0x1,_0x4f9431[_0x44b9c1(0x247)]):_0x78bea6[_0x44b9c1(0x251)]+0x1};}let _0x5bc73d=_0x1208b2===0x0&&_0xed370f[_0x44b9c1(0x1ae)][0x0]===e[_0x44b9c1(0x278)][_0x44b9c1(0x272)]?0x1:_0x1208b2;return{'startOffset':_0x5bc73d,'endOffset':_0x5bc73d};}function ge(_0x254d95){const _0x424a13=_0x404e5d;return _0x254d95['dataStream'][_0x424a13(0x21b)](e[_0x424a13(0x278)][_0x424a13(0x256)])?Math['max'](0x0,_0x254d95['dataStream']['length']-0x1):_0x254d95['dataStream'][_0x424a13(0x1a8)];}function _e(_0x32589e,_0x5945fe,_0xb67f58){const _0x450d0a=_0x404e5d;var _0x475d94;let _0x125000=Math[_0x450d0a(0x228)](_0x5945fe,_0xb67f58),_0x32eed9=Math[_0x450d0a(0x23f)](_0x5945fe,_0xb67f58);return!!((_0x475d94=_0x32589e['tables'])!=null&&_0x475d94['some'](_0x401bba=>_0x125000>_0x401bba[_0x450d0a(0x251)]&&_0x125000<_0x401bba[_0x450d0a(0x1cf)]||_0x32eed9>_0x401bba['startIndex']&&_0x32eed9<_0x401bba[_0x450d0a(0x1cf)]||_0x125000<=_0x401bba[_0x450d0a(0x251)]&&_0x32eed9>=_0x401bba['endIndex']));}function ve(_0x50a38a,_0x7810e1,_0x38d0f6,_0x970f22){const _0x55dbf1=_0x404e5d;let _0x20d520=[..._0x50a38a[_0x55dbf1(0x1e1)]??[]][_0x55dbf1(0x233)]((_0x28fc9d,_0x24cf00)=>_0x28fc9d[_0x55dbf1(0x251)]-_0x24cf00[_0x55dbf1(0x251)]),_0x6df5f5=(0x0,e['getParagraphContentStartOffsets'])(_0x50a38a),_0x30f924=_0x20d520[_0x55dbf1(0x20c)](_0x3d14e3=>T(_0x50a38a,_0x3d14e3,_0x970f22,_0x6df5f5)<=_0x7810e1&&_0x7810e1<=_0x3d14e3[_0x55dbf1(0x251)]),_0x28cb95=_0x20d520['find'](_0x2cf7d9=>_0x2cf7d9[_0x55dbf1(0x251)]>=_0x38d0f6-0x1)??_0x20d520[_0x20d520[_0x55dbf1(0x1a8)]-0x1];return{'startOffset':_0x30f924?T(_0x50a38a,_0x30f924,_0x970f22,_0x6df5f5):_0x7810e1,'endOffset':_0x28cb95?be(_0x28cb95,_0x970f22):_0x38d0f6};}function ye(_0x351475,_0x48ff41){const _0x31d863=_0x404e5d;let _0x74a118=[..._0x351475[_0x31d863(0x1e1)]??[]][_0x31d863(0x233)]((_0x1325b2,_0x28b1b6)=>_0x1325b2['startIndex']-_0x28b1b6[_0x31d863(0x251)]),_0x59b65f=(0x0,e[_0x31d863(0x1f1)])(_0x351475);return _0x74a118['find'](_0x48c2d2=>(_0x59b65f[_0x31d863(0x1f9)](_0x48c2d2[_0x31d863(0x251)])??0x0)<=_0x48ff41&&_0x48ff41<=_0x48c2d2[_0x31d863(0x251)]);}function T(_0x3d8534,_0x4fea2d,_0x1ab4f3,_0x3a2eb0){const _0x122247=_0x404e5d;let _0x3544c3=(_0x3a2eb0==null?void 0x0:_0x3a2eb0[_0x122247(0x1f9)](_0x4fea2d[_0x122247(0x251)]))??(0x0,e['getParagraphContentStartOffset'])(_0x3d8534,_0x4fea2d);return _0x1ab4f3?Math[_0x122247(0x23f)](_0x3544c3,_0x1ab4f3[_0x122247(0x1fb)]):_0x3544c3;}function be(_0xc0ce21,_0x3ebdb9){const _0xb589e=_0x404e5d;let _0x363102=_0xc0ce21['startIndex']+0x1;return _0x3ebdb9?Math['min'](_0x363102,_0x3ebdb9[_0xb589e(0x247)]):_0x363102;}function xe(_0x519792,_0x426da2,_0x52ca5){const _0x5b57c4=_0x404e5d;let _0x413e28=E(_0x519792,_0x426da2),_0x3cf198=E(_0x519792,_0x426da2===_0x52ca5?_0x52ca5:Math[_0x5b57c4(0x23f)](_0x426da2,_0x52ca5-0x1));if(!(!_0x413e28&&!_0x3cf198)){if(!_0x413e28||!_0x3cf198||_0x413e28['startTokenOffset']!==_0x3cf198[_0x5b57c4(0x1c8)]||_0x413e28[_0x5b57c4(0x257)]!==_0x3cf198[_0x5b57c4(0x257)])throw new _();return _0x413e28;}}function E(_0x2ceb07,_0x149dc2){const _0x1a56ed=_0x404e5d;let _0x4b4cf0=_0x2ceb07[_0x1a56ed(0x1ae)],_0x1764f1=-0x1;for(let _0x2e9e1e=Math['min'](_0x149dc2,_0x4b4cf0[_0x1a56ed(0x1a8)]-0x1);_0x2e9e1e>=0x0;_0x2e9e1e--){let _0x165077=_0x4b4cf0[_0x2e9e1e];if(_0x165077===e[_0x1a56ed(0x278)]['TABLE_CELL_END'])return;if(_0x165077===e[_0x1a56ed(0x278)][_0x1a56ed(0x218)]){_0x1764f1=_0x2e9e1e;break;}}if(_0x1764f1<0x0)return;let _0x34551a=_0x4b4cf0[_0x1a56ed(0x262)](e['DataStreamTreeTokenType'][_0x1a56ed(0x1a3)],_0x1764f1+0x1);if(!(_0x34551a<0x0||_0x149dc2<_0x1764f1+0x1||_0x149dc2>_0x34551a-0x1))return{'startOffset':_0x1764f1+0x1,'endOffset':Math[_0x1a56ed(0x23f)](_0x1764f1+0x1,_0x34551a-0x1),'startTokenOffset':_0x1764f1,'endTokenOffset':_0x34551a};}function _0x153d(_0x210b88,_0x2ea996){_0x210b88=_0x210b88-0x1a0;const _0x89c786=_0x89c7();let _0x153d2f=_0x89c786[_0x210b88];return _0x153d2f;}function D(_0xe052f3){const _0x574266=_0x404e5d;return(0x0,e[_0x574266(0x1d3)])(_0xe052f3)[_0x574266(0x247)]-0x1;}function Se(_0x4e040c,_0x18fa46,_0x4dab4f,_0x5275ec){const _0x23dbd5=_0x404e5d;let _0x506571=D(_0x18fa46),_0x202f7f=(_0x4e040c[_0x23dbd5(0x1e1)]??[])[_0x23dbd5(0x20c)](_0xf12e4e=>_0xf12e4e['startIndex']===_0x506571+0x1);if(!_0x202f7f||_0x5275ec!=null&&_0x202f7f[_0x23dbd5(0x251)]!==_0x5275ec||_0x4dab4f!=null&&(_0x4dab4f<_0x506571||_0x4dab4f>_0x202f7f[_0x23dbd5(0x251)]+0x1)||_0x4e040c[_0x23dbd5(0x1ae)][_0x202f7f[_0x23dbd5(0x251)]]!==e['DataStreamTreeTokenType'][_0x23dbd5(0x272)])return null;let _0x3ff4bb=(0x0,e[_0x23dbd5(0x1f8)])(_0x4e040c,_0x202f7f),_0x558a80=_0x4e040c['dataStream'][_0x23dbd5(0x1ca)](_0x3ff4bb,_0x202f7f[_0x23dbd5(0x251)]);return Array[_0x23dbd5(0x20a)](_0x558a80)[_0x23dbd5(0x1c0)](_0x524def=>_0x524def===e[_0x23dbd5(0x278)][_0x23dbd5(0x1f4)])?{'paragraph':_0x202f7f,'endTokenOffset':_0x506571}:null;}function O(_0x298a00,_0x5a2f7c){const _0x2a464b=_0x404e5d;var _0x39b32a;let _0x3e6fe1=D(_0x5a2f7c),_0x56820a=_0x298a00['dataStream'][_0x3e6fe1+0x1];(_0x56820a===e[_0x2a464b(0x278)][_0x2a464b(0x256)]||_0x56820a===void 0x0)&&k(_0x298a00,_0x3e6fe1+0x1,e['DataStreamTreeTokenType'][_0x2a464b(0x272)],{'paragraphs':[{'startIndex':0x0,'paragraphId':(0x0,e['createParagraphId'])(new Set((_0x39b32a=_0x298a00[_0x2a464b(0x1e1)])==null?void 0x0:_0x39b32a[_0x2a464b(0x1d1)](_0x5c18d4=>_0x5c18d4[_0x2a464b(0x1d7)])))}]});}function k(_0x593b43,_0x55649b,_0x521ce9,_0x1ce83e={}){const _0x5cbdbf=_0x404e5d;var _0x1549e7,_0x26a02f;_0x521ce9&&(_0x593b43['dataStream']=''+_0x593b43[_0x5cbdbf(0x1ae)][_0x5cbdbf(0x1ca)](0x0,_0x55649b)+_0x521ce9+_0x593b43[_0x5cbdbf(0x1ae)]['slice'](_0x55649b),Ce(_0x593b43,_0x55649b,_0x521ce9[_0x5cbdbf(0x1a8)]),(_0x1549e7=_0x1ce83e['paragraphs'])!=null&&_0x1549e7['length']&&(_0x593b43[_0x5cbdbf(0x1e1)]=[..._0x593b43[_0x5cbdbf(0x1e1)]??[],..._0x1ce83e[_0x5cbdbf(0x1e1)][_0x5cbdbf(0x1d1)](_0x33d442=>({..._0x33d442,'startIndex':_0x33d442[_0x5cbdbf(0x251)]+_0x55649b}))][_0x5cbdbf(0x233)]((_0x5dbfa0,_0x2152cd)=>_0x5dbfa0[_0x5cbdbf(0x251)]-_0x2152cd['startIndex'])),(_0x26a02f=_0x1ce83e[_0x5cbdbf(0x1b2)])!=null&&_0x26a02f[_0x5cbdbf(0x1a8)]&&(_0x593b43[_0x5cbdbf(0x1b2)]=[..._0x593b43[_0x5cbdbf(0x1b2)]??[],..._0x1ce83e[_0x5cbdbf(0x1b2)]['map'](_0xb1b162=>({..._0xb1b162,'startIndex':_0xb1b162['startIndex']+_0x55649b,'endIndex':_0xb1b162['endIndex']+_0x55649b}))]['sort']((_0x3472e7,_0xd2e960)=>_0x3472e7['startIndex']-_0xd2e960['startIndex'])));}function A(_0x143e12,_0x30e9b5,_0xd8f298){const _0x15227b=_0x404e5d;let _0x42ccd1=_0xd8f298-_0x30e9b5;_0x143e12[_0x15227b(0x1ae)]=''+_0x143e12['dataStream'][_0x15227b(0x1ca)](0x0,_0x30e9b5)+_0x143e12['dataStream']['slice'](_0xd8f298),we(_0x143e12,_0x30e9b5,_0x42ccd1);}function Ce(_0xde26f4,_0x20bc37,_0x4fbbdc){const _0x4ca3a6=_0x404e5d;_0xde26f4[_0x4ca3a6(0x1e1)]=j(_0xde26f4[_0x4ca3a6(0x1e1)],_0x20bc37,_0x4fbbdc),_0xde26f4[_0x4ca3a6(0x24d)]=j(_0xde26f4['sectionBreaks'],_0x20bc37,_0x4fbbdc),_0xde26f4[_0x4ca3a6(0x275)]=j(_0xde26f4[_0x4ca3a6(0x275)],_0x20bc37,_0x4fbbdc),_0xde26f4[_0x4ca3a6(0x1b0)]=Te(_0xde26f4[_0x4ca3a6(0x1b0)],_0x20bc37,_0x4fbbdc),_0xde26f4[_0x4ca3a6(0x215)]=Ee(_0xde26f4[_0x4ca3a6(0x215)],_0x20bc37,_0x4fbbdc),_0xde26f4[_0x4ca3a6(0x214)]=N(_0xde26f4[_0x4ca3a6(0x214)],_0x20bc37,_0x4fbbdc),_0xde26f4[_0x4ca3a6(0x261)]=N(_0xde26f4[_0x4ca3a6(0x261)],_0x20bc37,_0x4fbbdc),_0xde26f4[_0x4ca3a6(0x1dc)]=N(_0xde26f4['customDecorations'],_0x20bc37,_0x4fbbdc),_0xde26f4['blockRanges']=N(_0xde26f4[_0x4ca3a6(0x1b2)],_0x20bc37,_0x4fbbdc);}function we(_0x14584f,_0x588711,_0x20c4f8){const _0x357ce3=_0x404e5d;var _0x584852,_0x42482d;_0x14584f[_0x357ce3(0x1e1)]=M(_0x14584f[_0x357ce3(0x1e1)],_0x588711,_0x20c4f8),_0x14584f['sectionBreaks']=M(_0x14584f[_0x357ce3(0x24d)],_0x588711,_0x20c4f8),_0x14584f[_0x357ce3(0x275)]=M(_0x14584f[_0x357ce3(0x275)],_0x588711,_0x20c4f8),_0x14584f[_0x357ce3(0x1b0)]=(_0x584852=F((_0x42482d=_0x14584f[_0x357ce3(0x1b0)])==null?void 0x0:_0x42482d[_0x357ce3(0x1d1)](_0x3e395d=>({..._0x3e395d,'startIndex':_0x3e395d['st'],'endIndex':_0x3e395d['ed']})),_0x588711,_0x20c4f8))==null?void 0x0:_0x584852[_0x357ce3(0x1d1)](_0x489fe7=>{let {startIndex:_0x5aa921,endIndex:_0x28f90d,..._0x21752d}=_0x489fe7;return{..._0x21752d,'st':_0x5aa921,'ed':_0x28f90d};}),_0x14584f['tables']=F(_0x14584f['tables'],_0x588711,_0x20c4f8),_0x14584f[_0x357ce3(0x214)]=P(_0x14584f['columnGroups'],_0x588711,_0x20c4f8),_0x14584f[_0x357ce3(0x261)]=P(_0x14584f['customRanges'],_0x588711,_0x20c4f8),_0x14584f[_0x357ce3(0x1dc)]=P(_0x14584f[_0x357ce3(0x1dc)],_0x588711,_0x20c4f8),_0x14584f['blockRanges']=P(_0x14584f[_0x357ce3(0x1b2)],_0x588711,_0x20c4f8);}function j(_0x340f12,_0x15e41d,_0x38dec6){const _0x58210d=_0x404e5d;return _0x340f12==null?void 0x0:_0x340f12[_0x58210d(0x1d1)](_0x4a2766=>_0x4a2766[_0x58210d(0x251)]>=_0x15e41d?{..._0x4a2766,'startIndex':_0x4a2766[_0x58210d(0x251)]+_0x38dec6}:_0x4a2766);}function M(_0x1fae53,_0x1cccb6,_0x4209de){const _0x48a307=_0x404e5d;let _0x3262ea=_0x1cccb6+_0x4209de;return _0x1fae53==null?void 0x0:_0x1fae53[_0x48a307(0x1d1)](_0x3fb41a=>_0x3fb41a[_0x48a307(0x251)]>=_0x1cccb6&&_0x3fb41a[_0x48a307(0x251)]<_0x3262ea?null:_0x3fb41a['startIndex']>=_0x3262ea?{..._0x3fb41a,'startIndex':_0x3fb41a[_0x48a307(0x251)]-_0x4209de}:_0x3fb41a)[_0x48a307(0x24c)](_0xbeee4d=>_0xbeee4d!=null);}function Te(_0x17a70c,_0x45e8bd,_0x595762){const _0x36b090=_0x404e5d;return _0x17a70c==null?void 0x0:_0x17a70c[_0x36b090(0x1d1)](_0x3763e6=>_0x3763e6['st']>=_0x45e8bd?{..._0x3763e6,'st':_0x3763e6['st']+_0x595762,'ed':_0x3763e6['ed']+_0x595762}:_0x3763e6['ed']>_0x45e8bd?{..._0x3763e6,'ed':_0x3763e6['ed']+_0x595762}:_0x3763e6);}function N(_0xdfd64,_0x54c34e,_0x4d968a){const _0x20b197=_0x404e5d;return _0xdfd64==null?void 0x0:_0xdfd64[_0x20b197(0x1d1)](_0x2bb67b=>(0x0,e[_0x20b197(0x1de)])(_0x2bb67b,_0x54c34e,_0x4d968a));}function Ee(_0x3dba98,_0x498919,_0x3d2f46){const _0x63386c=_0x404e5d;return _0x3dba98==null?void 0x0:_0x3dba98[_0x63386c(0x1d1)](_0x398d45=>(0x0,e['shiftExclusiveRangeOnInsert'])(_0x398d45,_0x498919,_0x3d2f46));}function P(_0x589c04,_0x4e5dca,_0x484ba0){const _0x295f86=_0x404e5d;return _0x589c04==null?void 0x0:_0x589c04['map'](_0x425290=>(0x0,e[_0x295f86(0x1bd)])(_0x425290,_0x4e5dca,_0x484ba0))[_0x295f86(0x24c)](_0x193d92=>_0x193d92!=null);}function F(_0x20ce55,_0x48804f,_0x4156e3){const _0x3ff99d=_0x404e5d;return _0x20ce55==null?void 0x0:_0x20ce55[_0x3ff99d(0x1d1)](_0x58630e=>(0x0,e[_0x3ff99d(0x205)])(_0x58630e,_0x48804f,_0x4156e3))[_0x3ff99d(0x24c)](_0x3ec425=>_0x3ec425!=null);}const I={'id':'docs-code.command.insert-below','type':e[_0x404e5d(0x231)][_0x404e5d(0x1bc)],'handler':_0x45e618=>{const _0x3c20c4=_0x404e5d;var _0x5d4eb3;if((0x0,n[_0x3c20c4(0x1ab)])(W(_0x45e618)))return!0x1;let _0x2a14a6=(0x0,n['getContentInsertRange'])(_0x45e618);if(_0x2a14a6)return _0x45e618[_0x3c20c4(0x1f9)](e['ICommandService'])[_0x3c20c4(0x239)](R['id'],{'startOffset':_0x2a14a6[_0x3c20c4(0x1fb)],'endOffset':_0x2a14a6[_0x3c20c4(0x247)],'insertionMode':_0x3c20c4(0x242),'unitId':_0x2a14a6[_0x3c20c4(0x1e7)]});let _0x1675ed=je(_0x45e618);if(!_0x1675ed)return!0x1;let _0x48e797=(_0x5d4eb3=_0x45e618[_0x3c20c4(0x1f9)](e[_0x3c20c4(0x1d8)])[_0x3c20c4(0x206)](e[_0x3c20c4(0x23c)][_0x3c20c4(0x1a4)]))==null?void 0x0:_0x5d4eb3[_0x3c20c4(0x264)](),_0x3b9d41=_0x48e797?(0x0,e[_0x3c20c4(0x1d6)])(_0x48e797,_0x1675ed):_0x1675ed['startIndex']+0x1;return _0x45e618[_0x3c20c4(0x1f9)](e[_0x3c20c4(0x26b)])[_0x3c20c4(0x239)](R['id'],{'startOffset':_0x3b9d41,'endOffset':_0x3b9d41});}},L={'id':_0x404e5d(0x1a2),'type':e['CommandType'][_0x404e5d(0x1bc)],'handler':()=>!0x0},R={'id':_0x404e5d(0x254),'type':e[_0x404e5d(0x231)][_0x404e5d(0x1bc)],'handler':(_0x48ae45,_0x30a336)=>{const _0x578161=_0x404e5d;let _0x4ecd2b=U(_0x48ae45,_0x30a336==null?void 0x0:_0x30a336[_0x578161(0x1e7)]);if(!_0x4ecd2b)return!0x1;let _0x28dccd=W(_0x48ae45);if((0x0,n[_0x578161(0x1ab)])(_0x28dccd))return!0x1;let _0x58126b=_0x4ecd2b[_0x578161(0x204)][_0x578161(0x244)](_0x4ecd2b['unitId']),_0x36d815=Oe(_0x30a336,_0x28dccd),_0x9d9448=ke(_0x4ecd2b[_0x578161(0x1cd)],_0x36d815);if(_0x9d9448){if(_0x9d9448[_0x578161(0x1e9)]!==e[_0x578161(0x1ce)][_0x578161(0x25f)])return!0x1;let _0x41ef02=v({'blockId':_0x9d9448[_0x578161(0x1b1)],'documentData':_0x4ecd2b[_0x578161(0x1cd)],'metadata':_0x58126b});if(!_0x41ef02)return!0x1;let _0x3b4af0=J(_0x4ecd2b[_0x578161(0x23b)],_0x4ecd2b['selectionManager'],_0x4ecd2b[_0x578161(0x1e7)],_0x4ecd2b[_0x578161(0x1cd)],_0x41ef02[_0x578161(0x1e6)],R['id'],_0x41ef02['cursorOffset']);return _0x3b4af0&&_0x41ef02['nextMetadata']&&_0x4ecd2b[_0x578161(0x204)]['deserialize'](_0x4ecd2b[_0x578161(0x1e7)],_0x41ef02[_0x578161(0x1fd)]),_0x3b4af0;}let _0x12a3a5=(_0x30a336==null?void 0x0:_0x30a336[_0x578161(0x1b1)])??(0x0,e[_0x578161(0x1c4)])(0x6),_0x305812;try{_0x305812=ee({'blockId':_0x12a3a5,'config':_0x30a336==null?void 0x0:_0x30a336['config'],'documentData':_0x4ecd2b['previousDocumentData'],'endOffset':_0x36d815==null?void 0x0:_0x36d815[_0x578161(0x247)],'insertionMode':_0x30a336==null?void 0x0:_0x30a336[_0x578161(0x22e)],'metadata':_0x58126b,'startOffset':_0x36d815==null?void 0x0:_0x36d815[_0x578161(0x1fb)]});}catch(_0x2b95e7){if(_0x2b95e7 instanceof _)return!0x1;throw _0x2b95e7;}let _0x2f85ec=J(_0x4ecd2b['commandService'],_0x4ecd2b[_0x578161(0x21d)],_0x4ecd2b[_0x578161(0x1e7)],_0x4ecd2b[_0x578161(0x1cd)],_0x305812[_0x578161(0x1e6)],R['id'],_0x305812[_0x578161(0x22a)]);return _0x2f85ec&&_0x305812[_0x578161(0x1fd)]&&_0x4ecd2b['model']['deserialize'](_0x4ecd2b[_0x578161(0x1e7)],_0x305812[_0x578161(0x1fd)]),_0x2f85ec;}},z={'id':_0x404e5d(0x1bb),'type':e['CommandType'][_0x404e5d(0x1bc)],'handler':(_0x33c0d5,_0x244621)=>{const _0x4cc48e=_0x404e5d;if(!_0x244621)return!0x1;let _0x494af3=U(_0x33c0d5,_0x244621[_0x4cc48e(0x1e7)]);if(!_0x494af3)return!0x1;let _0x4d4df9=ie({'blockId':_0x244621['blockId'],'config':_0x244621['config'],'documentData':_0x494af3['previousDocumentData'],'metadata':_0x494af3[_0x4cc48e(0x204)][_0x4cc48e(0x244)](_0x494af3[_0x4cc48e(0x1e7)])});return _0x4d4df9['nextMetadata']&&_0x494af3[_0x4cc48e(0x204)][_0x4cc48e(0x26f)](_0x494af3[_0x4cc48e(0x1e7)],_0x4d4df9[_0x4cc48e(0x1fd)]),!0x0;}},De={'id':'docs-code.command.exit','type':e[_0x404e5d(0x231)][_0x404e5d(0x1bc)],'handler':(_0x34b6de,_0x2051b0)=>B[_0x404e5d(0x26c)](_0x34b6de,_0x2051b0)},B={'id':'docs-code.command.unwrap','type':e[_0x404e5d(0x231)][_0x404e5d(0x1bc)],'handler':(_0x4d3498,_0x11cf5c)=>{const _0x5e6a09=_0x404e5d;if(!_0x11cf5c)return!0x1;let _0x4231de=U(_0x4d3498,_0x11cf5c==null?void 0x0:_0x11cf5c[_0x5e6a09(0x1e7)]);if(!_0x4231de)return!0x1;let _0x45f147=v({'blockId':_0x11cf5c[_0x5e6a09(0x1b1)],'documentData':_0x4231de[_0x5e6a09(0x1cd)],'metadata':_0x4231de[_0x5e6a09(0x204)][_0x5e6a09(0x244)](_0x4231de[_0x5e6a09(0x1e7)])});if(!_0x45f147)return!0x1;let _0x27d60c=J(_0x4231de[_0x5e6a09(0x23b)],_0x4231de[_0x5e6a09(0x21d)],_0x4231de[_0x5e6a09(0x1e7)],_0x4231de[_0x5e6a09(0x1cd)],_0x45f147[_0x5e6a09(0x1e6)],B['id'],_0x45f147[_0x5e6a09(0x22a)]);return _0x27d60c&&_0x45f147[_0x5e6a09(0x1fd)]&&_0x4231de[_0x5e6a09(0x204)][_0x5e6a09(0x26f)](_0x4231de[_0x5e6a09(0x1e7)],_0x45f147[_0x5e6a09(0x1fd)]),_0x27d60c;}},V={'id':_0x404e5d(0x271),'type':e[_0x404e5d(0x231)]['COMMAND'],'handler':(_0x1e2cab,_0x53b547)=>{const _0x42bce2=_0x404e5d;if(!_0x53b547)return!0x1;let _0x3ba4a0=U(_0x1e2cab,_0x53b547==null?void 0x0:_0x53b547[_0x42bce2(0x1e7)]);if(!_0x3ba4a0)return!0x1;let _0x475602=ae({'blockId':_0x53b547[_0x42bce2(0x1b1)],'documentData':_0x3ba4a0[_0x42bce2(0x1cd)],'metadata':_0x3ba4a0[_0x42bce2(0x204)][_0x42bce2(0x244)](_0x3ba4a0[_0x42bce2(0x1e7)])});if(!_0x475602)return!0x1;let _0x3d60fb=J(_0x3ba4a0[_0x42bce2(0x23b)],_0x3ba4a0[_0x42bce2(0x21d)],_0x3ba4a0[_0x42bce2(0x1e7)],_0x3ba4a0[_0x42bce2(0x1cd)],_0x475602[_0x42bce2(0x1e6)],V['id'],_0x475602[_0x42bce2(0x22a)]);return _0x3d60fb&&_0x475602[_0x42bce2(0x1fd)]&&_0x3ba4a0['model'][_0x42bce2(0x26f)](_0x3ba4a0[_0x42bce2(0x1e7)],_0x475602['nextMetadata']),_0x3d60fb;}},H={'id':_0x404e5d(0x1b9),'type':e[_0x404e5d(0x231)][_0x404e5d(0x1bc)],'handler':(_0x23362f,_0x29810d)=>{const _0x5b829d=_0x404e5d;var _0x2cc2da;let _0x4c85a0=U(_0x23362f,_0x29810d==null?void 0x0:_0x29810d[_0x5b829d(0x1e7)]);if(!_0x4c85a0)return!0x1;let _0x3335bd=(_0x29810d==null?void 0x0:_0x29810d['cursorOffset'])??((_0x2cc2da=W(_0x23362f))==null?void 0x0:_0x2cc2da[_0x5b829d(0x1fb)]);if(_0x3335bd==null)return!0x1;let _0x1f0237=y({'cursorOffset':_0x3335bd,'documentData':_0x4c85a0[_0x5b829d(0x1cd)],'paragraphStartIndex':_0x29810d==null?void 0x0:_0x29810d[_0x5b829d(0x1d9)]});return _0x1f0237?J(_0x4c85a0[_0x5b829d(0x23b)],_0x4c85a0[_0x5b829d(0x21d)],_0x4c85a0['unitId'],_0x4c85a0[_0x5b829d(0x1cd)],_0x1f0237[_0x5b829d(0x1e6)],H['id'],_0x1f0237[_0x5b829d(0x22a)]):!0x1;}};function U(_0xcc73db,_0x271e76){const _0x3f89a0=_0x404e5d;let _0x2265d2=_0xcc73db[_0x3f89a0(0x1f9)](e[_0x3f89a0(0x1d8)]),_0x356d1c=_0x271e76?_0x2265d2[_0x3f89a0(0x250)](_0x271e76,e[_0x3f89a0(0x23c)][_0x3f89a0(0x1a4)]):_0x2265d2[_0x3f89a0(0x206)](e[_0x3f89a0(0x23c)][_0x3f89a0(0x1a4)]);return _0x356d1c?{'commandService':_0xcc73db[_0x3f89a0(0x1f9)](e[_0x3f89a0(0x26b)]),'model':_0xcc73db[_0x3f89a0(0x1f9)](p),'previousDocumentData':_0x356d1c[_0x3f89a0(0x1ac)](),'selectionManager':_0xcc73db[_0x3f89a0(0x1f9)](n[_0x3f89a0(0x25c)]),'unitId':_0x356d1c[_0x3f89a0(0x20f)]()}:null;}function W(_0x25aeb8){const _0xe11baa=_0x404e5d;var _0x11c1cb;return(_0x11c1cb=_0x25aeb8[_0xe11baa(0x1f9)](n['DocSelectionManagerService'])[_0xe11baa(0x23e)]())==null?void 0x0:_0x11c1cb[0x0];}function Oe(_0xf6e3d4,_0x166e72){const _0x4cbab1=_0x404e5d;let _0x11b0a4=(_0xf6e3d4==null?void 0x0:_0xf6e3d4[_0x4cbab1(0x1fb)])??(_0x166e72==null?void 0x0:_0x166e72['startOffset']),_0x3bc9d8=(_0xf6e3d4==null?void 0x0:_0xf6e3d4[_0x4cbab1(0x247)])??(_0x166e72==null?void 0x0:_0x166e72[_0x4cbab1(0x247)]);if(_0x11b0a4!=null&&_0x3bc9d8!=null)return{'endOffset':Math['max'](_0x11b0a4,_0x3bc9d8),'startOffset':Math[_0x4cbab1(0x228)](_0x11b0a4,_0x3bc9d8)};}function ke(_0x2fe018,_0x1c55e7){const _0x1a8ffa=_0x404e5d;var _0x45ac48;if(!_0x1c55e7)return;let _0x26c62d=Ae(_0x1c55e7);return(_0x45ac48=_0x2fe018[_0x1a8ffa(0x22f)])==null||(_0x45ac48=_0x45ac48[_0x1a8ffa(0x1b2)])==null?void 0x0:_0x45ac48[_0x1a8ffa(0x20c)](_0x27e4a6=>{const _0x5b6286=_0x1a8ffa;let _0x4eeec4=(0x0,e[_0x5b6286(0x1d3)])(_0x27e4a6);return _0x1c55e7['startOffset']===_0x1c55e7[_0x5b6286(0x247)]?(0x0,e[_0x5b6286(0x1d4)])(_0x4eeec4,_0x26c62d):(0x0,e[_0x5b6286(0x212)])(_0x4eeec4,_0x26c62d);});}function Ae(_0x2db690){const _0x2382da=_0x404e5d;return _0x2db690['startOffset']===_0x2db690[_0x2382da(0x247)]?_0x2db690['startOffset']:_0x2db690['startOffset']+0x1;}function je(_0x372cf1){const _0x2014c1=_0x404e5d;let _0x2fc496=W(_0x372cf1);if(!_0x2fc496)return null;let _0x5f30f2=_0x372cf1[_0x2014c1(0x1f9)](e[_0x2014c1(0x1d8)])[_0x2014c1(0x206)](e['UniverInstanceType'][_0x2014c1(0x1a4)]),_0x440f3d=_0x5f30f2==null?void 0x0:_0x5f30f2['getBody']();return _0x440f3d?e[_0x2014c1(0x235)][_0x2014c1(0x267)]['getParagraphsInRange'](_0x2fc496,_0x440f3d[_0x2014c1(0x1e1)]??[],_0x440f3d[_0x2014c1(0x1ae)]??'')[0x0]??null:null;}function Me(_0x42739c,_0x1e7700){const _0x1227fa=_0x404e5d;let _0x525e7e=_0x42739c['body'],_0xc27fd2=_0x1e7700[_0x1227fa(0x22f)],_0x48ebf7=(0x0,e['getSingleDataStreamChange'])(_0x525e7e,_0xc27fd2);return[_0x48ebf7&&_0xc27fd2?Ne(_0xc27fd2,_0x48ebf7):null,_0x48ebf7?null:Pe(_0x525e7e,_0xc27fd2)][_0x1227fa(0x24c)](Boolean)[_0x1227fa(0x1f3)]((_0x5f2821,_0x35530c)=>e[_0x1227fa(0x252)][_0x1227fa(0x224)](_0x5f2821,_0x35530c),null);}function Ne(_0x2c1075,_0x37e1b2){const _0x341998=_0x404e5d;let _0x2863c0=new e['TextX']();return _0x2863c0[_0x341998(0x1f2)](_0x37e1b2[_0x341998(0x1f0)]),_0x37e1b2[_0x341998(0x21a)]>0x0&&_0x2863c0[_0x341998(0x1a1)](_0x37e1b2[_0x341998(0x21a)],(0x0,e['getBodySliceForTextXAction'])(_0x2c1075,_0x37e1b2[_0x341998(0x1f0)],_0x37e1b2[_0x341998(0x1f0)]+_0x37e1b2['insertLength'],!0x1)),_0x37e1b2[_0x341998(0x24e)]>0x0&&_0x2863c0['delete'](_0x37e1b2['deleteLength']),e[_0x341998(0x252)][_0x341998(0x246)]()[_0x341998(0x1da)](_0x2863c0[_0x341998(0x244)](),[_0x341998(0x22f)]);}function Pe(_0x3939f1,_0x5a26fb){const _0x16aea0=_0x404e5d;let _0x3f53e0=[],_0x38d2b7=_0x3939f1?G(_0x3939f1):void 0x0,_0x453938=_0x5a26fb?G(_0x5a26fb):void 0x0;for(let _0x161fdd of Fe)K(e[_0x16aea0(0x252)][_0x16aea0(0x246)](),['body',_0x161fdd],_0x38d2b7==null?void 0x0:_0x38d2b7[_0x161fdd],_0x453938==null?void 0x0:_0x453938[_0x161fdd],_0x3f53e0);return _0x3f53e0[_0x16aea0(0x1f3)]((_0x3011c3,_0x2400ab)=>e['JSONX']['compose'](_0x3011c3,_0x2400ab),null);}const Fe=[_0x404e5d(0x1e1),_0x404e5d(0x24d),_0x404e5d(0x215),'columnGroups','blockRanges',_0x404e5d(0x275),_0x404e5d(0x261),_0x404e5d(0x1dc),_0x404e5d(0x1b0)];function G(_0x98f445){return _0x98f445;}function K(_0x4d41ea,_0x17a05e,_0x2a06d0,_0x2b47f4,_0x33f7fa){const _0x323eff=_0x404e5d;if(!q(_0x2a06d0,_0x2b47f4)){if(_0x2a06d0==null){_0x33f7fa[_0x323eff(0x236)](_0x4d41ea['insertOp'](_0x17a05e,_0x2b47f4));return;}if(_0x2b47f4==null){_0x33f7fa[_0x323eff(0x236)](_0x4d41ea['removeOp'](_0x17a05e,_0x2a06d0));return;}if(Array[_0x323eff(0x1fe)](_0x2a06d0)&&Array[_0x323eff(0x1fe)](_0x2b47f4)){Ie(_0x4d41ea,_0x17a05e,_0x2a06d0,_0x2b47f4,_0x33f7fa);return;}if(Le(_0x2a06d0)&&Le(_0x2b47f4)){new Set([...Object[_0x323eff(0x1d2)](_0x2a06d0),...Object[_0x323eff(0x1d2)](_0x2b47f4)])['forEach'](_0x5cb5f6=>{K(_0x4d41ea,[..._0x17a05e,_0x5cb5f6],_0x2a06d0[_0x5cb5f6],_0x2b47f4[_0x5cb5f6],_0x33f7fa);});return;}_0x33f7fa[_0x323eff(0x236)](_0x4d41ea[_0x323eff(0x276)](_0x17a05e,_0x2a06d0,_0x2b47f4));}}function Ie(_0x1154ca,_0x19151d,_0x44563c,_0x1bdb95,_0x4e4965){const _0x1f5b36=_0x404e5d;if(_0x44563c[_0x1f5b36(0x1a8)]===_0x1bdb95[_0x1f5b36(0x1a8)]){_0x44563c['forEach']((_0x489603,_0x281449)=>K(_0x1154ca,[..._0x19151d,_0x281449],_0x489603,_0x1bdb95[_0x281449],_0x4e4965));return;}let _0x108b29=0x0;for(;_0x108b29<_0x44563c[_0x1f5b36(0x1a8)]&&_0x108b29<_0x1bdb95[_0x1f5b36(0x1a8)]&&q(_0x44563c[_0x108b29],_0x1bdb95[_0x108b29]);)_0x108b29++;let _0x12bddc=_0x44563c[_0x1f5b36(0x1a8)]-0x1,_0x363e0c=_0x1bdb95[_0x1f5b36(0x1a8)]-0x1;for(;_0x12bddc>=_0x108b29&&_0x363e0c>=_0x108b29&&q(_0x44563c[_0x12bddc],_0x1bdb95[_0x363e0c]);)_0x12bddc--,_0x363e0c--;for(let _0x24be00=_0x12bddc;_0x24be00>=_0x108b29;_0x24be00--)_0x4e4965[_0x1f5b36(0x236)](_0x1154ca[_0x1f5b36(0x1f6)]([..._0x19151d,_0x24be00],_0x44563c[_0x24be00]));for(let _0x20d7e1=_0x108b29;_0x20d7e1<=_0x363e0c;_0x20d7e1++)_0x4e4965[_0x1f5b36(0x236)](_0x1154ca[_0x1f5b36(0x1c2)]([..._0x19151d,_0x20d7e1],_0x1bdb95[_0x20d7e1]));}function Le(_0x197651){const _0xb0f93f=_0x404e5d;return typeof _0x197651==_0xb0f93f(0x202)&&!!_0x197651&&!Array[_0xb0f93f(0x1fe)](_0x197651);}function q(_0x29f92b,_0x4908f7){const _0x356a0b=_0x404e5d;return JSON['stringify'](_0x29f92b)===JSON[_0x356a0b(0x255)](_0x4908f7);}function J(_0x4a1c66,_0x1024af,_0x45bfc3,_0x174a37,_0x32530c,_0xdc2f63,_0x1cacc5){const _0x3e3a2c=_0x404e5d;let _0x1f263c=Me(_0x174a37,_0x32530c);return _0x1f263c?!!_0x4a1c66[_0x3e3a2c(0x239)](n['RichTextEditingMutation']['id'],{'unitId':_0x45bfc3,'actions':_0x1f263c,'textRanges':[{'startOffset':_0x1cacc5,'endOffset':_0x1cacc5,'collapsed':!0x0}],'isEditing':!0x1,'trigger':_0xdc2f63}):(_0x1024af['replaceDocRanges']([{'startOffset':_0x1cacc5,'endOffset':_0x1cacc5}],{'unitId':_0x45bfc3,'subUnitId':_0x45bfc3},!0x1),!0x0);}const Y=_0x404e5d(0x1a6);var Re=_0x404e5d(0x1e5),ze=_0x404e5d(0x1f7);const Be={};function X(_0x5c2994,_0x1fd567){return function(_0x5f2ae2,_0xad0a6f){_0x1fd567(_0x5f2ae2,_0xad0a6f,_0x5c2994);};}function Z(_0x53da0a,_0x56bc00,_0x404289,_0x237b8a){const _0x41b9a2=_0x404e5d;var _0x2a9704=arguments[_0x41b9a2(0x1a8)],_0xfebb70=_0x2a9704<0x3?_0x56bc00:_0x237b8a===null?_0x237b8a=Object[_0x41b9a2(0x208)](_0x56bc00,_0x404289):_0x237b8a,_0x2c7d7b;if(typeof Reflect==_0x41b9a2(0x202)&&typeof Reflect['decorate']==_0x41b9a2(0x1a0))_0xfebb70=Reflect[_0x41b9a2(0x1c9)](_0x53da0a,_0x56bc00,_0x404289,_0x237b8a);else{for(var _0x10c038=_0x53da0a[_0x41b9a2(0x1a8)]-0x1;_0x10c038>=0x0;_0x10c038--)(_0x2c7d7b=_0x53da0a[_0x10c038])&&(_0xfebb70=(_0x2a9704<0x3?_0x2c7d7b(_0xfebb70):_0x2a9704>0x3?_0x2c7d7b(_0x56bc00,_0x404289,_0xfebb70):_0x2c7d7b(_0x56bc00,_0x404289))||_0xfebb70);}return _0x2a9704>0x3&&_0xfebb70&&Object[_0x41b9a2(0x201)](_0x56bc00,_0x404289,_0xfebb70),_0xfebb70;}let Q=class extends e[_0x404e5d(0x25d)]{constructor(_0x56fd9f,_0x27b4dd){const _0x354b1f=_0x404e5d;super(),this[_0x354b1f(0x217)]=_0x56fd9f,this['_docsCodeModel']=_0x27b4dd,this[_0x354b1f(0x21f)]();}[_0x404e5d(0x21f)](){const _0x41d7ad=_0x404e5d;this[_0x41d7ad(0x266)](this[_0x41d7ad(0x217)][_0x41d7ad(0x263)]({'pluginName':Y,'businesses':[e[_0x41d7ad(0x23c)][_0x41d7ad(0x1a4)]],'toJson':_0x598fef=>JSON['stringify'](this[_0x41d7ad(0x1cb)][_0x41d7ad(0x244)](_0x598fef)),'parseJson':_0xd87400=>o(JSON[_0x41d7ad(0x1db)](_0xd87400)),'onLoad':(_0x3f7a8a,_0x2333e9)=>this[_0x41d7ad(0x1cb)][_0x41d7ad(0x26f)](_0x3f7a8a,_0x2333e9),'onUnLoad':_0x291b94=>this['_docsCodeModel'][_0x41d7ad(0x1fa)](_0x291b94)}));}};Q=Z([X(0x0,e['IResourceManagerService']),X(0x1,(0x0,e[_0x404e5d(0x20d)])(p))],Q);let $=class extends e['Plugin']{constructor(_0x5020ac=Be,_0x220ac5,_0x12f858,_0x2718a8){const _0x3df78c=_0x404e5d;super(),this[_0x3df78c(0x1d0)]=_0x5020ac,this['_injector']=_0x220ac5,this[_0x3df78c(0x225)]=_0x12f858,this['_configService']=_0x2718a8;let {..._0x15570c}=(0x0,e[_0x3df78c(0x1b4)])({},Be,this['_config']);this[_0x3df78c(0x203)][_0x3df78c(0x268)](_0x3df78c(0x227),_0x15570c);}[_0x404e5d(0x258)](){const _0x29e286=_0x404e5d;this[_0x29e286(0x1a7)][_0x29e286(0x25b)]([p]),this[_0x29e286(0x1a7)]['add']([Q]),this['_injector'][_0x29e286(0x1f9)](p),this[_0x29e286(0x1a7)]['get'](Q),[R,I,z,B,V,De,H,L,m,h][_0x29e286(0x1be)](_0x4aabd6=>this['disposeWithMe'](this[_0x29e286(0x225)][_0x29e286(0x1cc)](_0x4aabd6)));}};f($,'pluginName',Y),f($,_0x404e5d(0x230),Re),f($,_0x404e5d(0x243),ze),f($,_0x404e5d(0x270),e[_0x404e5d(0x23c)][_0x404e5d(0x1a4)]),$=Z([(0x0,e[_0x404e5d(0x277)])(r['UniverLicensePlugin'],n[_0x404e5d(0x24f)]),X(0x1,(0x0,e[_0x404e5d(0x20d)])(e[_0x404e5d(0x1bf)])),X(0x2,e[_0x404e5d(0x26b)]),X(0x3,e[_0x404e5d(0x216)])],$),exports[_0x404e5d(0x24a)]=Y,exports[_0x404e5d(0x260)]=H,exports[_0x404e5d(0x1b8)]=L,exports[_0x404e5d(0x1c6)]=I,exports[_0x404e5d(0x1c3)]=R,exports[_0x404e5d(0x269)]=p,exports[_0x404e5d(0x1ad)]=V,exports['DocsCodeUnwrapCommand']=B,exports[_0x404e5d(0x221)]=z,exports[_0x404e5d(0x1b3)]=h,exports[_0x404e5d(0x1aa)]=m,Object[_0x404e5d(0x201)](exports,_0x404e5d(0x226),{'enumerable':!0x0,'get':function(){return $;}}),exports[_0x404e5d(0x25e)]=y,exports[_0x404e5d(0x229)]=se,exports[_0x404e5d(0x23a)]=a,exports['normalizeDocsCodeMetadataResource']=o;
|
package/lib/es/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var _0x19e641=_0x17bd;(function(_0x16a7f9,_0x3c644){var _0x5eb7bb=_0x17bd,_0x430de6=_0x16a7f9();while(!![]){try{var _0x1271d8=-parseInt(_0x5eb7bb(0x1c2))/0x1*(-parseInt(_0x5eb7bb(0x1c9))/0x2)+-parseInt(_0x5eb7bb(0x1f0))/0x3+-parseInt(_0x5eb7bb(0x1ee))/0x4+parseInt(_0x5eb7bb(0x1fa))/0x5*(-parseInt(_0x5eb7bb(0x1da))/0x6)+-parseInt(_0x5eb7bb(0x1d6))/0x7*(parseInt(_0x5eb7bb(0x1db))/0x8)+parseInt(_0x5eb7bb(0x1cf))/0x9+parseInt(_0x5eb7bb(0x1cb))/0xa;if(_0x1271d8===_0x3c644)break;else _0x430de6['push'](_0x430de6['shift']());}catch(_0xb87f77){_0x430de6['push'](_0x430de6['shift']());}}}(_0x35d8,0xa53a9));import{DocsCodeInsertCommand as _0x4c8079,DocsCodeModel as _0x10073f,DocsCodeRemoveCommand as _0x53ffcd,DocsCodeUnwrapCommand as _0x532796,DocsCodeUpdateCommand as _0x2bedb9,normalizeDocsCodeConfig as _0x8df313}from'@univerjs-pro/docs-code';import{DataStreamTreeTokenType as _0x2d281b,DocumentBlockRangeType as _0x10dd44,ICommandService as _0x1c02c1,Inject as _0x4bd247,Injector as _0x120414,generateRandomId as _0xcd05a4}from'@univerjs/core';import{FDocument as _0x55b9e0,isParagraphFacade as _0x305763}from'@univerjs/docs/facade';function m(_0x265250){'@babel/helpers - typeof';var _0x20333f=_0x17bd;return m=typeof Symbol==_0x20333f(0x1d2)&&typeof Symbol[_0x20333f(0x1f3)]==_0x20333f(0x1cd)?function(_0x204358){return typeof _0x204358;}:function(_0x1d71a5){var _0x483d8e=_0x20333f;return _0x1d71a5&&typeof Symbol==_0x483d8e(0x1d2)&&_0x1d71a5[_0x483d8e(0x1e0)]===Symbol&&_0x1d71a5!==Symbol['prototype']?'symbol':typeof _0x1d71a5;},m(_0x265250);}function _0x35d8(){var _0x43bb62=['getConfig','findCodeByText','28trArmO','toPrimitive','blockId','join','441942vkTrFy','1312936ncwMzQ','_injector','text','getText','includes','constructor','slice','body','getId','_getBlockRange','call','filter','startIndex','endIndex','from','_createFDocumentCode','CODE','BLOCK_START','_unitId','807880cLJRSN','_document','3327261KwBSeF','getCodes','updateConfig','iterator','some','createInstance','syncExecuteCommand','findCodes','_blockId','insertCode','80NLFfDQ','get','PARAGRAPH','object','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','decorate','extend','find','getRange','_getBlockRanges','13EzmfHT','defineProperty','blockRanges','blockType','_getDocumentData','string','save','166302HwXLib','length','20116320zjlqWE','map','symbol','config','6571971bGOhhW','getOwnPropertyDescriptor','BLOCK_END','function','getCodeAt'];_0x35d8=function(){return _0x43bb62;};return _0x35d8();}function _0x17bd(_0x130c91,_0x5c5ca5){_0x130c91=_0x130c91-0x1bc;var _0x35d834=_0x35d8();var _0x17bdb8=_0x35d834[_0x130c91];return _0x17bdb8;}function h(_0x2acece,_0x230314){var _0x378d55=_0x17bd;if(m(_0x2acece)!='object'||!_0x2acece)return _0x2acece;var _0x4de814=_0x2acece[Symbol[_0x378d55(0x1d7)]];if(_0x4de814!==void 0x0){var _0x243465=_0x4de814[_0x378d55(0x1e5)](_0x2acece,_0x230314||'default');if(m(_0x243465)!=_0x378d55(0x1fd))return _0x243465;throw TypeError(_0x378d55(0x1bc));}return(_0x230314===_0x378d55(0x1c7)?String:Number)(_0x2acece);}function g(_0x2e148d){var _0x383a58=_0x17bd,_0x4a5e1f=h(_0x2e148d,_0x383a58(0x1c7));return m(_0x4a5e1f)==_0x383a58(0x1cd)?_0x4a5e1f:_0x4a5e1f+'';}function _(_0x5981f5,_0x4cb852,_0x3af217){var _0x5f40b0=_0x17bd;return(_0x4cb852=g(_0x4cb852))in _0x5981f5?Object[_0x5f40b0(0x1c3)](_0x5981f5,_0x4cb852,{'value':_0x3af217,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x5981f5[_0x4cb852]=_0x3af217,_0x5981f5;}function v(_0x449cc1,_0x4d1a01){return function(_0x2a03ef,_0x5103c0){_0x4d1a01(_0x2a03ef,_0x5103c0,_0x449cc1);};}function y(_0x38b2fe,_0x556af6,_0x1124b2,_0x2790d3){var _0x4bfa50=_0x17bd,_0xfc796a=arguments[_0x4bfa50(0x1ca)],_0x4931ec=_0xfc796a<0x3?_0x556af6:_0x2790d3===null?_0x2790d3=Object[_0x4bfa50(0x1d0)](_0x556af6,_0x1124b2):_0x2790d3,_0x6f9d3;if(typeof Reflect==_0x4bfa50(0x1fd)&&typeof Reflect['decorate']==_0x4bfa50(0x1d2))_0x4931ec=Reflect[_0x4bfa50(0x1bd)](_0x38b2fe,_0x556af6,_0x1124b2,_0x2790d3);else{for(var _0xaba156=_0x38b2fe[_0x4bfa50(0x1ca)]-0x1;_0xaba156>=0x0;_0xaba156--)(_0x6f9d3=_0x38b2fe[_0xaba156])&&(_0x4931ec=(_0xfc796a<0x3?_0x6f9d3(_0x4931ec):_0xfc796a>0x3?_0x6f9d3(_0x556af6,_0x1124b2,_0x4931ec):_0x6f9d3(_0x556af6,_0x1124b2))||_0x4931ec);}return _0xfc796a>0x3&&_0x4931ec&&Object['defineProperty'](_0x556af6,_0x1124b2,_0x4931ec),_0x4931ec;}let b=class{constructor(_0x10f812,_0xd051d2,_0x1fa791){var _0x56b908=_0x17bd;this[_0x56b908(0x1ef)]=_0x10f812,this[_0x56b908(0x1f8)]=_0xd051d2,this['_injector']=_0x1fa791,_(this,_0x56b908(0x1ed),void 0x0),this[_0x56b908(0x1ed)]=this[_0x56b908(0x1ef)][_0x56b908(0x1e3)]();}[_0x19e641(0x1e3)](){return this['_blockId'];}[_0x19e641(0x1c0)](){var _0x4764cc=_0x19e641;let _0x16c6c4=this[_0x4764cc(0x1e4)]();return _0x16c6c4?{'blockId':_0x16c6c4[_0x4764cc(0x1d8)],'endIndex':_0x16c6c4[_0x4764cc(0x1e8)],'startIndex':_0x16c6c4[_0x4764cc(0x1e7)]}:null;}[_0x19e641(0x1de)](){var _0x334302=_0x19e641,_0x5cb78d;let _0x24c7ee=this[_0x334302(0x1e4)](),_0x3999f4=(_0x5cb78d=this[_0x334302(0x1c6)]()[_0x334302(0x1e2)])==null?void 0x0:_0x5cb78d['dataStream'];return!_0x24c7ee||!_0x3999f4?'':x(_0x3999f4[_0x334302(0x1e1)](_0x24c7ee[_0x334302(0x1e7)]+0x1,_0x24c7ee['endIndex']));}['describe'](){var _0x31b4fd=_0x19e641;let _0x4051e6=this[_0x31b4fd(0x1c0)]();return _0x4051e6?{..._0x4051e6,'config':this[_0x31b4fd(0x1d4)](),'text':this['getText'](),'type':_0x10dd44[_0x31b4fd(0x1eb)]}:null;}[_0x19e641(0x1d4)](){var _0x231889=_0x19e641;return _0x8df313(this[_0x231889(0x1dc)][_0x231889(0x1fb)](_0x10073f)['getCodeConfig'](this['_unitId'],this['_blockId']));}[_0x19e641(0x1f2)](_0x258a77){var _0x54004e=_0x19e641;return this['_injector']['get'](_0x1c02c1)[_0x54004e(0x1f6)](_0x2bedb9['id'],{'blockId':this[_0x54004e(0x1f8)],'config':_0x258a77[_0x54004e(0x1ce)],'unitId':this[_0x54004e(0x1ed)]});}['unwrap'](){var _0x12943c=_0x19e641;return this[_0x12943c(0x1dc)]['get'](_0x1c02c1)['syncExecuteCommand'](_0x532796['id'],{'blockId':this[_0x12943c(0x1f8)],'unitId':this['_unitId']});}['remove'](){var _0x17308c=_0x19e641;return this[_0x17308c(0x1dc)]['get'](_0x1c02c1)[_0x17308c(0x1f6)](_0x53ffcd['id'],{'blockId':this['_blockId'],'unitId':this['_unitId']});}['_getBlockRange'](){var _0x4bd173=_0x19e641,_0x487d59;return((_0x487d59=this[_0x4bd173(0x1c6)]()[_0x4bd173(0x1e2)])==null||(_0x487d59=_0x487d59[_0x4bd173(0x1c4)])==null?void 0x0:_0x487d59[_0x4bd173(0x1bf)](_0xd770c8=>_0xd770c8[_0x4bd173(0x1d8)]===this['_blockId']&&_0xd770c8[_0x4bd173(0x1c5)]===_0x10dd44[_0x4bd173(0x1eb)]))??null;}[_0x19e641(0x1c6)](){var _0x2b4e34=_0x19e641;return this[_0x2b4e34(0x1ef)][_0x2b4e34(0x1c8)]();}};b=y([v(0x2,_0x4bd247(_0x120414))],b);function x(_0x1fd0e9){var _0x421bb2=_0x19e641;return Array[_0x421bb2(0x1e9)](_0x1fd0e9)[_0x421bb2(0x1cc)](_0x50c45d=>_0x50c45d===_0x2d281b[_0x421bb2(0x1fc)]?'\x0a':_0x50c45d)[_0x421bb2(0x1e6)](_0x494458=>_0x494458!==_0x2d281b[_0x421bb2(0x1ec)]&&_0x494458!==_0x2d281b[_0x421bb2(0x1d1)]&&_0x494458!==_0x2d281b['SECTION_BREAK'])[_0x421bb2(0x1d9)]('')['replace'](/\n$/,'');}var S=class extends _0x55b9e0{[_0x19e641(0x1f1)](){var _0x1806a4=_0x19e641;return this[_0x1806a4(0x1c1)]()['filter'](_0x3cd688=>_0x3cd688['blockType']===_0x10dd44[_0x1806a4(0x1eb)])[_0x1806a4(0x1cc)](_0x124ff0=>this[_0x1806a4(0x1ea)](_0x124ff0['blockId']));}['getCode'](_0x2bdfba){var _0x6c845b=_0x19e641;return this[_0x6c845b(0x1c1)]()[_0x6c845b(0x1f4)](_0x2552de=>_0x2552de[_0x6c845b(0x1d8)]===_0x2bdfba&&_0x2552de[_0x6c845b(0x1c5)]===_0x10dd44[_0x6c845b(0x1eb)])?this[_0x6c845b(0x1ea)](_0x2bdfba):null;}[_0x19e641(0x1d3)](_0x1fd119){var _0x2eaa52=_0x19e641;let _0x66fc2e=this['_getBlockRanges']()['find'](_0x3b53ac=>_0x3b53ac[_0x2eaa52(0x1c5)]===_0x10dd44['CODE']&&_0x3b53ac[_0x2eaa52(0x1e7)]<=_0x1fd119&&_0x1fd119<=_0x3b53ac['endIndex']);return _0x66fc2e?this[_0x2eaa52(0x1ea)](_0x66fc2e[_0x2eaa52(0x1d8)]):null;}[_0x19e641(0x1d5)](_0x8ad04b){var _0x5109f0=_0x19e641;return this[_0x5109f0(0x1f7)](_0x8ad04b)[0x0]??null;}[_0x19e641(0x1f7)](_0x31919a){var _0x5844c7=_0x19e641;let _0x49140c=typeof _0x31919a=='string'?{'text':_0x31919a}:_0x31919a;return this[_0x5844c7(0x1f1)]()[_0x5844c7(0x1e6)](_0x2c4938=>!(_0x49140c[_0x5844c7(0x1d8)]&&_0x2c4938[_0x5844c7(0x1e3)]()!==_0x49140c[_0x5844c7(0x1d8)]||_0x49140c[_0x5844c7(0x1dd)]&&!_0x2c4938[_0x5844c7(0x1de)]()[_0x5844c7(0x1df)](_0x49140c[_0x5844c7(0x1dd)])));}[_0x19e641(0x1f9)](_0x69c151={},_0xcc06c9={}){var _0x5cbb2d=_0x19e641;let _0x3934b8=this[_0x5cbb2d(0x1dc)][_0x5cbb2d(0x1fb)](_0x1c02c1),_0x1b5e8a=_0x305763(_0x69c151)?{..._0xcc06c9,..._0x69c151['getRange']()}:_0x69c151,_0x4dbce5=_0x1b5e8a['blockId']??_0xcd05a4(0x6);return _0x3934b8[_0x5cbb2d(0x1f6)](_0x4c8079['id'],{..._0x1b5e8a,'blockId':_0x4dbce5,'unitId':this[_0x5cbb2d(0x1e3)]()})?this['getCode'](_0x4dbce5):null;}[_0x19e641(0x1c1)](){var _0x49a436=_0x19e641,_0x41d26d;return((_0x41d26d=this[_0x49a436(0x1c8)]()[_0x49a436(0x1e2)])==null?void 0x0:_0x41d26d['blockRanges'])??[];}[_0x19e641(0x1ea)](_0x5ce491){var _0x330449=_0x19e641;return this[_0x330449(0x1dc)][_0x330449(0x1f5)](b,this,_0x5ce491);}};_0x55b9e0[_0x19e641(0x1be)](S);export{b as FDocumentCode};
|