@univerjs-pro/docs-code 1.3.1 → 1.4.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/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x4278ec=_0x57e9;(function(_0x5eb901,_0x20fe75){const _0x230bba=_0x57e9,_0x50a2f6=_0x5eb901();while(!![]){try{const _0x48f18c=parseInt(_0x230bba(0x10f))/0x1*(parseInt(_0x230bba(0x108))/0x2)+parseInt(_0x230bba(0x120))/0x3*(-parseInt(_0x230bba(0x90))/0x4)+parseInt(_0x230bba(0xf6))/0x5*(parseInt(_0x230bba(0xd1))/0x6)+-parseInt(_0x230bba(0xcb))/0x7*(-parseInt(_0x230bba(0xec))/0x8)+parseInt(_0x230bba(0x9a))/0x9+-parseInt(_0x230bba(0xb8))/0xa*(parseInt(_0x230bba(0x102))/0xb)+-parseInt(_0x230bba(0x12d))/0xc*(parseInt(_0x230bba(0xe0))/0xd);if(_0x48f18c===_0x20fe75)break;else _0x50a2f6['push'](_0x50a2f6['shift']());}catch(_0x40a7cb){_0x50a2f6['push'](_0x50a2f6['shift']());}}}(_0x1bbf,0x459a3));import{BooleanNumber as _0x4f8efa,BuildTextUtils as _0x20804f,CommandType as _0x45294c,DataStreamTreeTokenType as _0x9c6192,DependentOn as _0x85efd,Disposable as _0x1ccbbc,DocumentBlockRangeType as _0xac67e3,ICommandService as _0x1a34c1,IConfigService as _0x48b9b0,IResourceManagerService as _0x134f76,IUniverInstanceService as _0x2fe26f,Inject as _0x2b0865,Injector as _0x650f9e,JSONX as _0xa0927a,Plugin as _0x25c4b9,TextX as _0xaed83f,UniverInstanceType as _0x30a10b,containsInteriorInsertionOffset as _0x27820e,containsStreamIndex as _0x42e0ef,createParagraphId as _0x533df7,generateRandomId as _0x5a5615,getBlockRangeInterval as _0x49707a,getBodySliceForTextXAction as _0x285f89,getParagraphContentStartOffset as _0x2c079f,getParagraphContentStartOffsets as _0x252574,getParagraphFollowingBlockOffset as _0x3f9e16,getSingleDataStreamChange as _0x460607,intersectsOperationalIntervals as _0x575561,merge as _0x374a9d,shiftExclusiveRangeOnDelete as _0x345255,shiftExclusiveRangeOnInsert as _0x1e6f2b,shiftInclusiveRangeOnDelete as _0x31e1ac,shiftInclusiveRangeOnInsert as _0x1bfd00}from'@univerjs/core';import{Subject as _0x153d32}from'rxjs';import{DocSelectionManagerService as _0x1e01f3,RichTextEditingMutation as _0x31ecbf,UniverDocsPlugin as _0x1e99e0,getContentInsertRange as _0x312935,isHeaderFooterSelection as _0x129d5b}from'@univerjs/docs';import{UniverLicensePlugin as _0x509979}from'@univerjs-pro/license';const Se={'language':_0x4278ec(0xf0),'showLineNumbers':!0x1,'tabSize':0x4,'wrap':!0x0};function v(_0x5ab11d){return{...Se,..._0x5ab11d};}function y(_0x25d486){const _0x24d0a5=_0x4278ec;let _0x637a2=(_0x25d486==null?void 0x0:_0x25d486[_0x24d0a5(0x131)])??{};return{'codes':Object[_0x24d0a5(0xe8)](Object['entries'](_0x637a2)['map'](([_0x59d4fa,_0x297de4])=>[_0x59d4fa,v(_0x297de4)]))};}function b(_0x13afda,_0x4759a3,_0x3b1579){const _0x1765d3=_0x4278ec;let _0x2ccb3f=y(_0x13afda);return _0x2ccb3f[_0x1765d3(0x131)][_0x4759a3]=v({..._0x2ccb3f[_0x1765d3(0x131)][_0x4759a3],..._0x3b1579}),_0x2ccb3f;}function x(_0x28559a,_0x4ad6cc){let _0x389c92=y(_0x28559a);return delete _0x389c92['codes'][_0x4ad6cc],_0x389c92;}function S(_0x7a3fda){'@babel/helpers - typeof';const _0x25854f=_0x4278ec;return S=typeof Symbol=='function'&&typeof Symbol[_0x25854f(0xf2)]==_0x25854f(0xfd)?function(_0x495a08){return typeof _0x495a08;}:function(_0x275985){const _0x49fb8c=_0x25854f;return _0x275985&&typeof Symbol==_0x49fb8c(0x110)&&_0x275985[_0x49fb8c(0x118)]===Symbol&&_0x275985!==Symbol[_0x49fb8c(0xad)]?_0x49fb8c(0xfd):typeof _0x275985;},S(_0x7a3fda);}function Ce(_0x541168,_0x42e574){const _0x4f09fb=_0x4278ec;if(S(_0x541168)!=_0x4f09fb(0xfc)||!_0x541168)return _0x541168;var _0x59b222=_0x541168[Symbol[_0x4f09fb(0x104)]];if(_0x59b222!==void 0x0){var _0x4b6147=_0x59b222[_0x4f09fb(0x12f)](_0x541168,_0x42e574||_0x4f09fb(0xef));if(S(_0x4b6147)!=_0x4f09fb(0xfc))return _0x4b6147;throw TypeError(_0x4f09fb(0xa6));}return(_0x42e574===_0x4f09fb(0xb4)?String:Number)(_0x541168);}function we(_0x18759f){const _0x20767f=_0x4278ec;var _0x50acb2=Ce(_0x18759f,_0x20767f(0xb4));return S(_0x50acb2)==_0x20767f(0xfd)?_0x50acb2:_0x50acb2+'';}function C(_0x39820f,_0x34e195,_0x33b0e3){const _0x4b2f16=_0x4278ec;return(_0x34e195=we(_0x34e195))in _0x39820f?Object[_0x4b2f16(0xc7)](_0x39820f,_0x34e195,{'value':_0x33b0e3,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x39820f[_0x34e195]=_0x33b0e3,_0x39820f;}var w=class extends _0x1ccbbc{constructor(..._0x40e67f){const _0x1fee74=_0x4278ec;super(..._0x40e67f),C(this,_0x1fee74(0xbc),new Map()),C(this,'_change$',new _0x153d32()),C(this,_0x1fee74(0xd9),this[_0x1fee74(0x9d)][_0x1fee74(0xd0)]());}['getCodeConfig'](_0x263c57,_0x55d991){const _0x23407f=_0x4278ec;return y(this['_resources'][_0x23407f(0x135)](_0x263c57))[_0x23407f(0x131)][_0x55d991];}['setCodeConfig'](_0x2ffd75,_0x5bffca,_0x47f2fc){const _0x3b1a9c=_0x4278ec;this[_0x3b1a9c(0x9e)](_0x2ffd75,_0x5bffca,b(this[_0x3b1a9c(0xbc)][_0x3b1a9c(0x135)](_0x2ffd75),_0x5bffca,_0x47f2fc));}[_0x4278ec(0x109)](_0x4df8e7,_0x145cbc){const _0xb6fd43=_0x4278ec;this[_0xb6fd43(0x9e)](_0x4df8e7,_0x145cbc,x(this['_resources'][_0xb6fd43(0x135)](_0x4df8e7),_0x145cbc));}[_0x4278ec(0xba)](_0x21186c){const _0x444438=_0x4278ec;return y(this[_0x444438(0xbc)][_0x444438(0x135)](_0x21186c));}['deserialize'](_0x1bd1ce,_0x520467){const _0x31036a=_0x4278ec;this[_0x31036a(0xbc)][_0x31036a(0xca)](_0x1bd1ce,y(_0x520467)),this[_0x31036a(0x9d)][_0x31036a(0xb2)]({'unitId':_0x1bd1ce});}['removeUnit'](_0x3a5734){const _0x25c212=_0x4278ec;this[_0x25c212(0xbc)]['delete'](_0x3a5734),this['_change$'][_0x25c212(0xb2)]({'unitId':_0x3a5734});}[_0x4278ec(0x115)](){const _0x5b1558=_0x4278ec;super[_0x5b1558(0x115)](),this[_0x5b1558(0xbc)][_0x5b1558(0xd3)](),this[_0x5b1558(0x9d)][_0x5b1558(0x97)]();}[_0x4278ec(0x9e)](_0x330815,_0x557e9b,_0x51adf5){const _0x23deb2=_0x4278ec;this[_0x23deb2(0xbc)][_0x23deb2(0xca)](_0x330815,_0x51adf5),this[_0x23deb2(0x9d)][_0x23deb2(0xb2)]({'unitId':_0x330815,'blockId':_0x557e9b});}};const Te={'id':'docs-code.mutation.set-config','type':_0x45294c[_0x4278ec(0x99)],'handler':(_0x57a2a7,_0x2397dd)=>!(_0x2397dd!=null&&_0x2397dd[_0x4278ec(0xdb)])||!_0x2397dd['blockId']?!0x1:(_0x57a2a7[_0x4278ec(0x135)](w)[_0x4278ec(0xeb)](_0x2397dd[_0x4278ec(0xdb)],_0x2397dd[_0x4278ec(0xbe)],_0x2397dd[_0x4278ec(0xf5)]),!0x0)},T={'id':_0x4278ec(0xab),'type':_0x45294c[_0x4278ec(0x99)],'handler':(_0x6153d9,_0x1427ab)=>!(_0x1427ab!=null&&_0x1427ab['unitId'])||!_0x1427ab[_0x4278ec(0xbe)]?!0x1:(_0x6153d9[_0x4278ec(0x135)](w)['removeCode'](_0x1427ab[_0x4278ec(0xdb)],_0x1427ab[_0x4278ec(0xbe)]),!0x0)},Ee=_0x4278ec(0x10e);var E=class extends Error{constructor(_0x3910da=_0x4278ec(0xf7)){super(_0x3910da);}};function De(_0x5768e2){const _0x3ab8cf=_0x4278ec;var _0x5b2680;let _0x385293=O(_0x5768e2[_0x3ab8cf(0xe4)]),_0x5c407c=A(_0x385293),_0x4c1823=ke(_0x5768e2[_0x3ab8cf(0x129)],_0x5768e2[_0x3ab8cf(0xb3)]),_0x4eecfd=_0x4c1823?(_0x5b2680=_0x5c407c['blockRanges'])==null?void 0x0:_0x5b2680[_0x3ab8cf(0x13a)](_0x5c0d7f=>{const _0x1cfc48=_0x3ab8cf;let _0x2458c1=_0x49707a(_0x5c0d7f);return _0x2458c1[_0x1cfc48(0x129)]===_0x4c1823['startOffset']&&_0x2458c1[_0x1cfc48(0xb3)]===_0x4c1823[_0x1cfc48(0xb3)];}):void 0x0,{startOffset:_0x174cd2,endOffset:_0x7e7aa5}=_0x4eecfd?_0x4c1823:We(_0x5c407c,_0x5768e2[_0x3ab8cf(0x129)],_0x5768e2['endOffset'],_0x5768e2[_0x3ab8cf(0xdf)]);if(!_0x4eecfd&&Ae(_0x5c407c,_0x174cd2,_0x7e7aa5))throw new E(_0x3ab8cf(0xa8));let _0x148c75=qe(_0x5c407c,_0x174cd2,_0x7e7aa5),_0x309cb8=(_0x4eecfd==null?void 0x0:_0x4eecfd['blockId'])??_0x5768e2['blockId'],_0x127ca3=b(_0x5768e2[_0x3ab8cf(0x95)],_0x309cb8,{...Se,..._0x5768e2[_0x3ab8cf(0xf5)]});if(_0x4eecfd)return _0x4eecfd[_0x3ab8cf(0xa1)]=_0xac67e3[_0x3ab8cf(0xa7)],Oe(_0x5c407c,_0x174cd2,_0x7e7aa5),ze(_0x5c407c,_0x174cd2,_0x7e7aa5,_0x148c75),N(_0x5c407c,_0x4eecfd),{'nextDocumentData':_0x385293,'nextMetadata':_0x127ca3,'cursorOffset':_0x174cd2+0x1};if(_0x174cd2===_0x7e7aa5){var _0xb545db,_0x3d3c75;let _0x17549d=''+_0x9c6192['BLOCK_START']+_0x9c6192['PARAGRAPH']+_0x9c6192[_0x3ab8cf(0xd7)];P(_0x5c407c,_0x174cd2,_0x17549d,{'paragraphs':[{'startIndex':0x1,'paragraphId':_0x533df7(new Set((_0xb545db=_0x5c407c[_0x3ab8cf(0x114)])==null?void 0x0:_0xb545db['map'](_0xa0ec52=>_0xa0ec52[_0x3ab8cf(0x134)]))),'paragraphStyle':Re(!0x0,!0x0,_0x148c75)}],'blockRanges':[{'blockId':_0x309cb8,'blockType':_0xac67e3[_0x3ab8cf(0xa7)],'startIndex':0x0,'endIndex':_0x17549d[_0x3ab8cf(0xee)]-0x1}]});let _0x2418c1=(_0x3d3c75=_0x5c407c['blockRanges'])==null?void 0x0:_0x3d3c75['find'](_0x10c901=>_0x10c901[_0x3ab8cf(0xbe)]===_0x309cb8);return _0x2418c1&&N(_0x5c407c,_0x2418c1),{'nextDocumentData':_0x385293,'nextMetadata':_0x127ca3,'cursorOffset':_0x174cd2+0x1};}P(_0x5c407c,_0x7e7aa5,_0x9c6192['BLOCK_END']),P(_0x5c407c,_0x174cd2,_0x9c6192[_0x3ab8cf(0xde)]),ze(_0x5c407c,_0x174cd2,_0x7e7aa5+0x1,_0x148c75);let _0x251cb8={'blockId':_0x309cb8,'blockType':_0xac67e3['CODE'],'startIndex':_0x174cd2,'endIndex':_0x7e7aa5+0x1};return _0x5c407c[_0x3ab8cf(0x12e)]=[..._0x5c407c['blockRanges']??[],_0x251cb8]['sort']((_0xdde982,_0x5b39bd)=>_0xdde982[_0x3ab8cf(0x11e)]-_0x5b39bd[_0x3ab8cf(0x11e)]),N(_0x5c407c,_0x251cb8),{'nextDocumentData':_0x385293,'nextMetadata':_0x127ca3,'cursorOffset':_0x174cd2+0x1};}function Oe(_0x1a5fb6,_0x43e243,_0x415605){const _0x285677=_0x4278ec;(_0x1a5fb6['paragraphs']??[])[_0x285677(0xd2)](_0x242975=>_0x242975[_0x285677(0x11e)]>_0x43e243&&_0x242975[_0x285677(0x11e)]<_0x415605)['forEach'](_0x37572c=>{const _0x193020=_0x285677;let _0x164a09={..._0x37572c['paragraphStyle']??{}};delete _0x164a09['spaceAbove'],delete _0x164a09['spaceBelow'],_0x37572c[_0x193020(0xff)]=_0x164a09;});}function ke(_0x56e8fa,_0x3b2f1f){const _0xc984d8=_0x4278ec;return _0x56e8fa==null||_0x3b2f1f==null||_0x56e8fa===_0x3b2f1f?null:{'startOffset':Math['min'](_0x56e8fa,_0x3b2f1f),'endOffset':Math[_0xc984d8(0xc8)](_0x56e8fa,_0x3b2f1f)};}function Ae(_0x333ea3,_0x3b7d41,_0x44e583){const _0x2f0c23=_0x4278ec;return(_0x333ea3[_0x2f0c23(0x12e)]??[])[_0x2f0c23(0xa4)](_0x231356=>{let _0x4b6582=_0x49707a(_0x231356);return _0x3b7d41===_0x44e583?_0x27820e(_0x4b6582,_0x3b7d41):_0x575561(_0x4b6582,{'startOffset':_0x3b7d41,'endOffset':_0x44e583});});}function je(_0x5c5225){const _0x18f327=_0x4278ec;return{'nextDocumentData':O(_0x5c5225[_0x18f327(0xe4)]),'nextMetadata':b(_0x5c5225[_0x18f327(0x95)],_0x5c5225['blockId'],_0x5c5225[_0x18f327(0xf5)]),'cursorOffset':0x0};}function D(_0x5171b0){const _0x2aa84a=_0x4278ec;let _0x40cf8e=O(_0x5171b0[_0x2aa84a(0xe4)]),_0x34b88b=A(_0x40cf8e),_0x505ba9=Fe(_0x34b88b,_0x5171b0['blockId']);if(!_0x505ba9)return null;let _0x192333=He(_0x34b88b,_0x505ba9);return{'nextDocumentData':_0x40cf8e,'nextMetadata':x(_0x5171b0[_0x2aa84a(0x95)],_0x5171b0[_0x2aa84a(0xbe)]),'cursorOffset':_0x192333};}function Me(_0x51070a){const _0x392db3=_0x4278ec;var _0x2de64f;let _0x2174f6=O(_0x51070a[_0x392db3(0xe4)]),_0x1afde4=A(_0x2174f6),_0x55f632=Fe(_0x1afde4,_0x51070a[_0x392db3(0xbe)]);if(!_0x55f632)return null;let _0x3c1a86=_0x49707a(_0x55f632);return F(_0x1afde4,_0x3c1a86[_0x392db3(0x129)],_0x3c1a86['endOffset']),_0x1afde4[_0x392db3(0x12e)]=(_0x2de64f=_0x1afde4[_0x392db3(0x12e)])==null?void 0x0:_0x2de64f['filter'](_0x9bc0c=>_0x9bc0c[_0x392db3(0xbe)]!==_0x51070a[_0x392db3(0xbe)]),{'nextDocumentData':_0x2174f6,'nextMetadata':x(_0x51070a['metadata'],_0x51070a['blockId']),'cursorOffset':_0x55f632[_0x392db3(0x11e)]};}function Ne(_0x17c178){const _0xd1bd5a=_0x4278ec;let _0x5af1c9=O(_0x17c178['documentData']),_0x4280ee=A(_0x5af1c9),_0x26563f=Le(_0x4280ee,_0x17c178[_0xd1bd5a(0x128)]);return _0x26563f&&Pe(_0x5af1c9,_0x4280ee,_0x26563f,_0x17c178[_0xd1bd5a(0x128)],_0x17c178[_0xd1bd5a(0xe1)])||null;}function Pe(_0x6dfeef,_0x5cf591,_0x3a9080,_0x228ba8,_0x50608d){const _0x5c4782=_0x4278ec;let _0x274a63=$e(_0x5cf591,_0x3a9080,_0x228ba8,_0x50608d);if(!_0x274a63)return null;let _0x56a1f8=_0x274a63[_0x5c4782(0x12c)]-0x1;return F(_0x5cf591,_0x274a63['paragraph']['startIndex'],_0x274a63['paragraph']['startIndex']+0x1),{'nextDocumentData':_0x6dfeef,'cursorOffset':_0x56a1f8};}function Fe(_0x2b94ca,_0xe19299){const _0xb92379=_0x4278ec;var _0x5d86f3;return _0x2b94ca==null||(_0x5d86f3=_0x2b94ca[_0xb92379(0x12e)])==null?void 0x0:_0x5d86f3[_0xb92379(0x13a)](_0x9070aa=>_0x9070aa[_0xb92379(0xa1)]===_0xac67e3[_0xb92379(0xa7)]&&_0x9070aa[_0xb92379(0xbe)]===_0xe19299);}function Ie(_0x14067c){const _0xcf7096=_0x4278ec;let _0x44efd2=_0x14067c[_0xcf7096(0xe4)]['body'];if(!_0x44efd2)return!0x1;let _0x184e2e=_0x14067c[_0xcf7096(0x9f)]===_0xcf7096(0xd5)?_0x14067c[_0xcf7096(0x128)]-0x1:_0x14067c[_0xcf7096(0x128)],_0x5d9fd3=_0x14067c[_0xcf7096(0x9f)]===_0xcf7096(0xac)?_0x14067c[_0xcf7096(0x128)]+0x1:_0x184e2e;return(_0x44efd2[_0xcf7096(0x12e)]??[])['some'](_0x3f6203=>_0x3f6203[_0xcf7096(0xa1)]===_0xac67e3[_0xcf7096(0xa7)]?_0x184e2e===_0x3f6203['startIndex']||_0x184e2e===_0x3f6203[_0xcf7096(0xf4)]||_0x5d9fd3===_0x3f6203[_0xcf7096(0x11e)]||_0x5d9fd3===_0x3f6203[_0xcf7096(0xf4)]:!0x1);}function Le(_0x5df646,_0x3db6f0){const _0x504bc4=_0x4278ec;var _0x48f6d0;return(_0x48f6d0=_0x5df646['blockRanges'])==null?void 0x0:_0x48f6d0[_0x504bc4(0x13a)](_0x14330b=>{const _0x48c594=_0x504bc4;let _0x5b29af=M(_0x14330b);return _0x14330b[_0x48c594(0xa1)]===_0xac67e3[_0x48c594(0xa7)]&&_0x14330b['startIndex']<=_0x3db6f0&&_0x3db6f0<=_0x5b29af+0x2;});}function Re(_0x506a7b,_0x584177,_0x186290=!0x1){const _0x333324=_0x4278ec;return{'indentEnd':{'v':0x14},'indentStart':{'v':0x14},'keepLines':_0x4f8efa[_0x333324(0xb6)],'keepNext':_0x584177?_0x4f8efa[_0x333324(0xae)]:_0x4f8efa[_0x333324(0xb6)],'widowControl':_0x4f8efa[_0x333324(0xb6)],..._0x506a7b&&_0x186290?{'spaceAbove':{'v':0x8}}:{},'textStyle':{'ff':Ee,'fs':0xc}};}function ze(_0x780c84,_0x506553,_0x4460e1,_0x2dd2cb=!0x1){const _0x4ae25f=_0x4278ec;let _0x7d349c=(_0x780c84[_0x4ae25f(0x114)]??[])[_0x4ae25f(0xd2)](_0x989f18=>_0x989f18[_0x4ae25f(0x11e)]>_0x506553&&_0x989f18['startIndex']<_0x4460e1);_0x7d349c[_0x4ae25f(0xb9)]((_0x36c554,_0x3ff6a2)=>{const _0x859df4=_0x4ae25f;_0x36c554[_0x859df4(0xff)]={..._0x36c554['paragraphStyle']??{},...Re(_0x3ff6a2===0x0,_0x3ff6a2===_0x7d349c[_0x859df4(0xee)]-0x1,_0x2dd2cb)};});}function Be(_0x17b32d){const _0x33c996=_0x4278ec;var _0x3ff0a3,_0xca9892;let _0xaf8659={..._0x17b32d??{}};return delete _0xaf8659[_0x33c996(0x111)],delete _0xaf8659[_0x33c996(0xce)],delete _0xaf8659[_0x33c996(0x119)],delete _0xaf8659[_0x33c996(0x105)],delete _0xaf8659[_0x33c996(0xa2)],delete _0xaf8659['keepNext'],delete _0xaf8659['widowControl'],((_0x3ff0a3=_0xaf8659[_0x33c996(0xe7)])==null?void 0x0:_0x3ff0a3['ff'])===Ee&&((_0xca9892=_0xaf8659[_0x33c996(0xe7)])==null?void 0x0:_0xca9892['fs'])===0xc&&delete _0xaf8659[_0x33c996(0xe7)],_0xaf8659;}function Ve(_0x3bc1ae,_0x100579){const _0x51a840=_0x4278ec;let _0x903092=M(_0x100579);return(_0x3bc1ae[_0x51a840(0x114)]??[])[_0x51a840(0xd2)](_0x2c18ad=>_0x2c18ad['startIndex']>_0x100579[_0x51a840(0x11e)]&&_0x2c18ad[_0x51a840(0x11e)]<_0x903092);}function He(_0x13e21f,_0x2943a0){const _0xc7b520=_0x4278ec;var _0x4e17cc;let _0x522543=M(_0x2943a0);return Ve(_0x13e21f,_0x2943a0)[_0xc7b520(0xb9)](_0x4ba7e7=>{const _0xc65aee=_0xc7b520;_0x4ba7e7['paragraphStyle']=Be(_0x4ba7e7[_0xc65aee(0xff)]);}),F(_0x13e21f,_0x522543,_0x522543+0x1),F(_0x13e21f,_0x2943a0[_0xc7b520(0x11e)],_0x2943a0[_0xc7b520(0x11e)]+0x1),_0x13e21f[_0xc7b520(0x12e)]=(_0x4e17cc=_0x13e21f[_0xc7b520(0x12e)])==null?void 0x0:_0x4e17cc[_0xc7b520(0xd2)](_0x19c450=>_0x19c450['blockId']!==_0x2943a0[_0xc7b520(0xbe)]),_0x2943a0[_0xc7b520(0x11e)];}function O(_0x4d861a){const _0x26c47c=_0x4278ec;return{..._0x4d861a,'body':_0x4d861a['body']?Ue(_0x4d861a[_0x26c47c(0x133)]):_0x4d861a[_0x26c47c(0x133)]};}function Ue(_0x7df0d4){const _0xf877d9=_0x4278ec;var _0x3b3d43,_0x31d4d4,_0x4756b9,_0x26c2e8,_0x27d7a5,_0x40625f,_0x55dfb3,_0x29bf82,_0x255108;return{..._0x7df0d4,'paragraphs':(_0x3b3d43=_0x7df0d4[_0xf877d9(0x114)])==null?void 0x0:_0x3b3d43[_0xf877d9(0xd6)](_0x322a07=>({..._0x322a07,'bullet':k(_0x322a07[_0xf877d9(0xb0)]),'paragraphStyle':k(_0x322a07[_0xf877d9(0xff)])})),'sectionBreaks':(_0x31d4d4=_0x7df0d4[_0xf877d9(0xa9)])==null?void 0x0:_0x31d4d4['map'](_0x335fa2=>({..._0x335fa2})),'textRuns':(_0x4756b9=_0x7df0d4[_0xf877d9(0xdc)])==null?void 0x0:_0x4756b9[_0xf877d9(0xd6)](_0x2cbecc=>({..._0x2cbecc})),'tables':(_0x26c2e8=_0x7df0d4['tables'])==null?void 0x0:_0x26c2e8[_0xf877d9(0xd6)](_0x2a1856=>({..._0x2a1856})),'columnGroups':(_0x27d7a5=_0x7df0d4[_0xf877d9(0xe5)])==null?void 0x0:_0x27d7a5[_0xf877d9(0xd6)](_0x2d7ee7=>{const _0x562567=_0xf877d9;var _0x3ec770;return{..._0x2d7ee7,'columns':(_0x3ec770=_0x2d7ee7[_0x562567(0x103)])==null?void 0x0:_0x3ec770['map'](_0x109882=>k(_0x109882))};}),'blockRanges':(_0x40625f=_0x7df0d4[_0xf877d9(0x12e)])==null?void 0x0:_0x40625f[_0xf877d9(0xd6)](_0x566ea8=>({..._0x566ea8})),'customRanges':(_0x55dfb3=_0x7df0d4[_0xf877d9(0xf9)])==null?void 0x0:_0x55dfb3['map'](_0x6135d3=>({..._0x6135d3})),'customDecorations':(_0x29bf82=_0x7df0d4[_0xf877d9(0x137)])==null?void 0x0:_0x29bf82[_0xf877d9(0xd6)](_0x406b97=>({..._0x406b97})),'customBlocks':(_0x255108=_0x7df0d4[_0xf877d9(0xed)])==null?void 0x0:_0x255108[_0xf877d9(0xd6)](_0x514e37=>({..._0x514e37}))};}function k(_0x3a2043){const _0x121e16=_0x4278ec;return Array[_0x121e16(0x13b)](_0x3a2043)?_0x3a2043[_0x121e16(0xd6)](_0xc21281=>k(_0xc21281)):!_0x3a2043||typeof _0x3a2043!=_0x121e16(0xfc)?_0x3a2043:Object[_0x121e16(0xe8)](Object[_0x121e16(0x127)](_0x3a2043)[_0x121e16(0xd6)](([_0x5f2a9f,_0x5a5330])=>[_0x5f2a9f,k(_0x5a5330)]));}function A(_0x3a0919){const _0x5efd6b=_0x4278ec;if(!_0x3a0919[_0x5efd6b(0x133)])throw Error(_0x5efd6b(0x113));return _0x3a0919[_0x5efd6b(0x133)];}function We(_0x3c637a,_0x1d7cf6,_0x2cc790,_0x30a9e4='convert-paragraph'){if(_0x1d7cf6==null||_0x2cc790==null){let _0x539f0f=Ke(_0x3c637a);return{'startOffset':_0x539f0f,'endOffset':_0x539f0f};}let _0x498904=Math['min'](_0x1d7cf6,_0x2cc790),_0x15d2c5=Math['max'](_0x1d7cf6,_0x2cc790),_0x3825c3=Ze(_0x3c637a,_0x498904,_0x15d2c5);return _0x498904===_0x15d2c5?_0x30a9e4==='insert-new'?{'startOffset':_0x498904,'endOffset':_0x15d2c5}:Ge(_0x3c637a,_0x498904,_0x3825c3):Je(_0x3c637a,_0x498904,_0x15d2c5,_0x3825c3);}function Ge(_0x55d6d2,_0x1ca4b8,_0x1b16ae){const _0x1443db=_0x4278ec;let _0x5bf386=Ye(_0x55d6d2,_0x1ca4b8);if(_0x5bf386){let _0x30f00c=j(_0x55d6d2,_0x5bf386,_0x1b16ae);if(_0x30f00c<_0x5bf386[_0x1443db(0x11e)])return{'startOffset':_0x30f00c,'endOffset':_0x1b16ae?Math[_0x1443db(0x9b)](_0x5bf386[_0x1443db(0x11e)]+0x1,_0x1b16ae[_0x1443db(0xb3)]):_0x5bf386[_0x1443db(0x11e)]+0x1};}let _0x439016=_0x1ca4b8===0x0&&_0x55d6d2[_0x1443db(0x94)][0x0]===_0x9c6192[_0x1443db(0x12b)]?0x1:_0x1ca4b8;return{'startOffset':_0x439016,'endOffset':_0x439016};}function Ke(_0x3c09dd){const _0x4564d1=_0x4278ec;return _0x3c09dd[_0x4564d1(0x94)][_0x4564d1(0xf3)](_0x9c6192[_0x4564d1(0xb7)])?Math[_0x4564d1(0xc8)](0x0,_0x3c09dd['dataStream'][_0x4564d1(0xee)]-0x1):_0x3c09dd[_0x4564d1(0x94)][_0x4564d1(0xee)];}function qe(_0x239c15,_0x1dffd2,_0x2f6e45){const _0xc12cd9=_0x4278ec;var _0x356ba0;let _0x44c636=Math[_0xc12cd9(0x9b)](_0x1dffd2,_0x2f6e45),_0x666067=Math[_0xc12cd9(0xc8)](_0x1dffd2,_0x2f6e45);return!!((_0x356ba0=_0x239c15[_0xc12cd9(0xe3)])!=null&&_0x356ba0[_0xc12cd9(0xa4)](_0x56ffab=>_0x44c636>_0x56ffab[_0xc12cd9(0x11e)]&&_0x44c636<_0x56ffab[_0xc12cd9(0xf4)]||_0x666067>_0x56ffab[_0xc12cd9(0x11e)]&&_0x666067<_0x56ffab[_0xc12cd9(0xf4)]||_0x44c636<=_0x56ffab['startIndex']&&_0x666067>=_0x56ffab['endIndex']));}function Je(_0x415bde,_0x58628d,_0x20baa9,_0x426421){const _0x3ca067=_0x4278ec;let _0x23ead5=[..._0x415bde[_0x3ca067(0x114)]??[]]['sort']((_0x27d751,_0x4680eb)=>_0x27d751[_0x3ca067(0x11e)]-_0x4680eb[_0x3ca067(0x11e)]),_0x589be5=_0x252574(_0x415bde),_0x3c4764=_0x23ead5[_0x3ca067(0x13a)](_0x2f9650=>j(_0x415bde,_0x2f9650,_0x426421,_0x589be5)<=_0x58628d&&_0x58628d<=_0x2f9650[_0x3ca067(0x11e)]),_0x355abb=_0x23ead5['find'](_0x44c0ac=>_0x44c0ac[_0x3ca067(0x11e)]>=_0x20baa9-0x1)??_0x23ead5[_0x23ead5['length']-0x1];return{'startOffset':_0x3c4764?j(_0x415bde,_0x3c4764,_0x426421,_0x589be5):_0x58628d,'endOffset':_0x355abb?Xe(_0x355abb,_0x426421):_0x20baa9};}function Ye(_0x3ec74f,_0x5bab14){const _0x5d9622=_0x4278ec;let _0x2652e2=[..._0x3ec74f[_0x5d9622(0x114)]??[]][_0x5d9622(0xe6)]((_0x4820f5,_0x2ce758)=>_0x4820f5[_0x5d9622(0x11e)]-_0x2ce758[_0x5d9622(0x11e)]),_0xbe5f49=_0x252574(_0x3ec74f);return _0x2652e2['find'](_0x4a385d=>(_0xbe5f49[_0x5d9622(0x135)](_0x4a385d[_0x5d9622(0x11e)])??0x0)<=_0x5bab14&&_0x5bab14<=_0x4a385d[_0x5d9622(0x11e)]);}function j(_0x4c1279,_0x40a1ec,_0xe1c295,_0x428543){const _0x2f6500=_0x4278ec;let _0x4cd54f=(_0x428543==null?void 0x0:_0x428543[_0x2f6500(0x135)](_0x40a1ec[_0x2f6500(0x11e)]))??_0x2c079f(_0x4c1279,_0x40a1ec);return _0xe1c295?Math[_0x2f6500(0xc8)](_0x4cd54f,_0xe1c295[_0x2f6500(0x129)]):_0x4cd54f;}function Xe(_0x3f5211,_0x1ff471){const _0x2aa80e=_0x4278ec;let _0x10f21e=_0x3f5211['startIndex']+0x1;return _0x1ff471?Math[_0x2aa80e(0x9b)](_0x10f21e,_0x1ff471[_0x2aa80e(0xb3)]):_0x10f21e;}function Ze(_0x26828e,_0x155f06,_0x4e556e){const _0xd884a5=_0x4278ec;let _0x50e8ce=Qe(_0x26828e,_0x155f06),_0x434e84=Qe(_0x26828e,_0x155f06===_0x4e556e?_0x4e556e:Math[_0xd884a5(0xc8)](_0x155f06,_0x4e556e-0x1));if(_0x50e8ce||_0x434e84){if(!_0x50e8ce||!_0x434e84||_0x50e8ce[_0xd884a5(0xdd)]!==_0x434e84[_0xd884a5(0xdd)]||_0x50e8ce[_0xd884a5(0x12c)]!==_0x434e84[_0xd884a5(0x12c)])throw new E();return _0x50e8ce;}}function Qe(_0x23e68e,_0x3ee240){const _0x4049ca=_0x4278ec;let _0x3bd4d8=_0x23e68e['dataStream'],_0x36ad1b=-0x1;for(let _0x4be5bc=Math['min'](_0x3ee240,_0x3bd4d8['length']-0x1);_0x4be5bc>=0x0;_0x4be5bc--){let _0x52708b=_0x3bd4d8[_0x4be5bc];if(_0x52708b===_0x9c6192[_0x4049ca(0xd4)])return;if(_0x52708b===_0x9c6192[_0x4049ca(0x11d)]){_0x36ad1b=_0x4be5bc;break;}}if(_0x36ad1b<0x0)return;let _0x24c6c0=_0x3bd4d8['indexOf'](_0x9c6192[_0x4049ca(0xd4)],_0x36ad1b+0x1);if(!(_0x24c6c0<0x0||_0x3ee240<_0x36ad1b+0x1||_0x3ee240>_0x24c6c0-0x1))return{'startOffset':_0x36ad1b+0x1,'endOffset':Math[_0x4049ca(0xc8)](_0x36ad1b+0x1,_0x24c6c0-0x1),'startTokenOffset':_0x36ad1b,'endTokenOffset':_0x24c6c0};}function M(_0x1cb890){const _0x1ca672=_0x4278ec;return _0x49707a(_0x1cb890)[_0x1ca672(0xb3)]-0x1;}function $e(_0x200fec,_0xe19ae7,_0x507e60,_0x368e88){const _0x1953db=_0x4278ec;let _0x74ef88=M(_0xe19ae7),_0x40a918=(_0x200fec[_0x1953db(0x114)]??[])[_0x1953db(0x13a)](_0x320ea7=>_0x320ea7[_0x1953db(0x11e)]===_0x74ef88+0x1);if(!_0x40a918||_0x368e88!=null&&_0x40a918[_0x1953db(0x11e)]!==_0x368e88||_0x507e60!=null&&(_0x507e60<_0x74ef88||_0x507e60>_0x40a918[_0x1953db(0x11e)]+0x1)||_0x200fec[_0x1953db(0x94)][_0x40a918[_0x1953db(0x11e)]]!==_0x9c6192[_0x1953db(0x12b)])return null;let _0x1abc5b=_0x2c079f(_0x200fec,_0x40a918),_0x3b97aa=_0x200fec[_0x1953db(0x94)][_0x1953db(0x122)](_0x1abc5b,_0x40a918[_0x1953db(0x11e)]);return Array['from'](_0x3b97aa)[_0x1953db(0x126)](_0x3d8cb8=>_0x3d8cb8===_0x9c6192[_0x1953db(0xd7)])?{'paragraph':_0x40a918,'endTokenOffset':_0x74ef88}:null;}function N(_0x20cfae,_0x2cf9bd){const _0x35dd77=_0x4278ec;var _0xc7c892;let _0x56d708=M(_0x2cf9bd),_0x50fd67=_0x20cfae[_0x35dd77(0x94)][_0x56d708+0x1];(_0x50fd67===_0x9c6192[_0x35dd77(0xb7)]||_0x50fd67===void 0x0)&&P(_0x20cfae,_0x56d708+0x1,_0x9c6192[_0x35dd77(0x12b)],{'paragraphs':[{'startIndex':0x0,'paragraphId':_0x533df7(new Set((_0xc7c892=_0x20cfae[_0x35dd77(0x114)])==null?void 0x0:_0xc7c892[_0x35dd77(0xd6)](_0x27471d=>_0x27471d[_0x35dd77(0x134)])))}]});}function P(_0x4db0fe,_0x2b41bc,_0x5e0856,_0x556c5c={}){const _0x1b1955=_0x4278ec;var _0x40fe5b,_0x2ca786;_0x5e0856&&(_0x4db0fe['dataStream']=''+_0x4db0fe[_0x1b1955(0x94)][_0x1b1955(0x122)](0x0,_0x2b41bc)+_0x5e0856+_0x4db0fe[_0x1b1955(0x94)][_0x1b1955(0x122)](_0x2b41bc),et(_0x4db0fe,_0x2b41bc,_0x5e0856[_0x1b1955(0xee)]),(_0x40fe5b=_0x556c5c[_0x1b1955(0x114)])!=null&&_0x40fe5b[_0x1b1955(0xee)]&&(_0x4db0fe[_0x1b1955(0x114)]=[..._0x4db0fe[_0x1b1955(0x114)]??[],..._0x556c5c['paragraphs'][_0x1b1955(0xd6)](_0x423b46=>({..._0x423b46,'startIndex':_0x423b46[_0x1b1955(0x11e)]+_0x2b41bc}))]['sort']((_0x30c416,_0x14f1aa)=>_0x30c416[_0x1b1955(0x11e)]-_0x14f1aa[_0x1b1955(0x11e)])),(_0x2ca786=_0x556c5c[_0x1b1955(0x12e)])!=null&&_0x2ca786['length']&&(_0x4db0fe[_0x1b1955(0x12e)]=[..._0x4db0fe[_0x1b1955(0x12e)]??[],..._0x556c5c[_0x1b1955(0x12e)][_0x1b1955(0xd6)](_0x2bfd5e=>({..._0x2bfd5e,'startIndex':_0x2bfd5e[_0x1b1955(0x11e)]+_0x2b41bc,'endIndex':_0x2bfd5e[_0x1b1955(0xf4)]+_0x2b41bc}))][_0x1b1955(0xe6)]((_0x322b9c,_0x2b121b)=>_0x322b9c['startIndex']-_0x2b121b[_0x1b1955(0x11e)])));}function F(_0xebcfbc,_0x63dd34,_0x13fb09){const _0x323100=_0x4278ec;let _0x206930=_0x13fb09-_0x63dd34;_0xebcfbc[_0x323100(0x94)]=''+_0xebcfbc['dataStream'][_0x323100(0x122)](0x0,_0x63dd34)+_0xebcfbc[_0x323100(0x94)][_0x323100(0x122)](_0x13fb09),tt(_0xebcfbc,_0x63dd34,_0x206930);}function et(_0x5bb7ca,_0x25b707,_0x372b5e){const _0x527b28=_0x4278ec;_0x5bb7ca[_0x527b28(0x114)]=I(_0x5bb7ca['paragraphs'],_0x25b707,_0x372b5e),_0x5bb7ca['sectionBreaks']=I(_0x5bb7ca[_0x527b28(0xa9)],_0x25b707,_0x372b5e),_0x5bb7ca['customBlocks']=I(_0x5bb7ca[_0x527b28(0xed)],_0x25b707,_0x372b5e),_0x5bb7ca[_0x527b28(0xdc)]=nt(_0x5bb7ca[_0x527b28(0xdc)],_0x25b707,_0x372b5e),_0x5bb7ca[_0x527b28(0xe3)]=rt(_0x5bb7ca[_0x527b28(0xe3)],_0x25b707,_0x372b5e),_0x5bb7ca[_0x527b28(0xe5)]=R(_0x5bb7ca['columnGroups'],_0x25b707,_0x372b5e),_0x5bb7ca['customRanges']=R(_0x5bb7ca['customRanges'],_0x25b707,_0x372b5e),_0x5bb7ca[_0x527b28(0x137)]=R(_0x5bb7ca[_0x527b28(0x137)],_0x25b707,_0x372b5e),_0x5bb7ca[_0x527b28(0x12e)]=R(_0x5bb7ca[_0x527b28(0x12e)],_0x25b707,_0x372b5e);}function tt(_0x541b6f,_0x3e4a67,_0x340ec3){const _0x35ef9b=_0x4278ec;var _0xa19bb9,_0x31f6f7;_0x541b6f[_0x35ef9b(0x114)]=L(_0x541b6f[_0x35ef9b(0x114)],_0x3e4a67,_0x340ec3),_0x541b6f['sectionBreaks']=L(_0x541b6f[_0x35ef9b(0xa9)],_0x3e4a67,_0x340ec3),_0x541b6f['customBlocks']=L(_0x541b6f[_0x35ef9b(0xed)],_0x3e4a67,_0x340ec3),_0x541b6f['textRuns']=(_0xa19bb9=it((_0x31f6f7=_0x541b6f[_0x35ef9b(0xdc)])==null?void 0x0:_0x31f6f7['map'](_0x19e291=>({..._0x19e291,'startIndex':_0x19e291['st'],'endIndex':_0x19e291['ed']})),_0x3e4a67,_0x340ec3))==null?void 0x0:_0xa19bb9['map'](_0x5d425c=>{let {startIndex:_0x449124,endIndex:_0x1dec64,..._0x12b2f3}=_0x5d425c;return{..._0x12b2f3,'st':_0x449124,'ed':_0x1dec64};}),_0x541b6f['tables']=it(_0x541b6f[_0x35ef9b(0xe3)],_0x3e4a67,_0x340ec3),_0x541b6f[_0x35ef9b(0xe5)]=z(_0x541b6f[_0x35ef9b(0xe5)],_0x3e4a67,_0x340ec3),_0x541b6f['customRanges']=z(_0x541b6f[_0x35ef9b(0xf9)],_0x3e4a67,_0x340ec3),_0x541b6f[_0x35ef9b(0x137)]=z(_0x541b6f[_0x35ef9b(0x137)],_0x3e4a67,_0x340ec3),_0x541b6f[_0x35ef9b(0x12e)]=z(_0x541b6f[_0x35ef9b(0x12e)],_0x3e4a67,_0x340ec3);}function I(_0x177747,_0x10aab4,_0x1de7a3){const _0x2f2252=_0x4278ec;return _0x177747==null?void 0x0:_0x177747[_0x2f2252(0xd6)](_0x52c550=>_0x52c550[_0x2f2252(0x11e)]>=_0x10aab4?{..._0x52c550,'startIndex':_0x52c550[_0x2f2252(0x11e)]+_0x1de7a3}:_0x52c550);}function L(_0x48d4a1,_0x6e559b,_0x30c7c9){const _0x38c88e=_0x4278ec;let _0x259894=_0x6e559b+_0x30c7c9;return _0x48d4a1==null?void 0x0:_0x48d4a1['map'](_0x6327a3=>_0x6327a3['startIndex']>=_0x6e559b&&_0x6327a3['startIndex']<_0x259894?null:_0x6327a3[_0x38c88e(0x11e)]>=_0x259894?{..._0x6327a3,'startIndex':_0x6327a3[_0x38c88e(0x11e)]-_0x30c7c9}:_0x6327a3)[_0x38c88e(0xd2)](_0x333ad6=>_0x333ad6!=null);}function nt(_0x620631,_0x606bac,_0x62b0){const _0x528aaf=_0x4278ec;return _0x620631==null?void 0x0:_0x620631[_0x528aaf(0xd6)](_0x4f1369=>_0x4f1369['st']>=_0x606bac?{..._0x4f1369,'st':_0x4f1369['st']+_0x62b0,'ed':_0x4f1369['ed']+_0x62b0}:_0x4f1369['ed']>_0x606bac?{..._0x4f1369,'ed':_0x4f1369['ed']+_0x62b0}:_0x4f1369);}function R(_0x20bd3e,_0x27d4a0,_0x1a7f07){const _0x25b3e9=_0x4278ec;return _0x20bd3e==null?void 0x0:_0x20bd3e[_0x25b3e9(0xd6)](_0x432b51=>_0x1bfd00(_0x432b51,_0x27d4a0,_0x1a7f07));}function rt(_0x4582f4,_0x7f83e1,_0x39297e){return _0x4582f4==null?void 0x0:_0x4582f4['map'](_0x383987=>_0x1e6f2b(_0x383987,_0x7f83e1,_0x39297e));}function z(_0x44b577,_0x4e33bf,_0x5d3cf8){const _0xf0f030=_0x4278ec;return _0x44b577==null?void 0x0:_0x44b577['map'](_0x3b6ea6=>_0x31e1ac(_0x3b6ea6,_0x4e33bf,_0x5d3cf8))[_0xf0f030(0xd2)](_0x4b529c=>_0x4b529c!=null);}function it(_0xfbe575,_0x4071dd,_0x237bb0){const _0x5e6f97=_0x4278ec;return _0xfbe575==null?void 0x0:_0xfbe575['map'](_0x365efb=>_0x345255(_0x365efb,_0x4071dd,_0x237bb0))[_0x5e6f97(0xd2)](_0x5042d2=>_0x5042d2!=null);}const at={'id':_0x4278ec(0xfa),'type':_0x45294c[_0x4278ec(0x123)],'handler':_0x1727c9=>{const _0x3d5d08=_0x4278ec;var _0x36e453;if(_0x129d5b(G(_0x1727c9)))return!0x1;let _0x50917d=_0x312935(_0x1727c9);if(_0x50917d)return _0x1727c9[_0x3d5d08(0x135)](_0x1a34c1)[_0x3d5d08(0xcf)](B['id'],{'startOffset':_0x50917d[_0x3d5d08(0x129)],'endOffset':_0x50917d[_0x3d5d08(0xb3)],'insertionMode':'insert-new','unitId':_0x50917d[_0x3d5d08(0xdb)]});let _0x5c019e=ft(_0x1727c9);if(!_0x5c019e)return!0x1;let _0x4b7ab4=(_0x36e453=_0x1727c9[_0x3d5d08(0x135)](_0x2fe26f)[_0x3d5d08(0x91)](_0x30a10b[_0x3d5d08(0x11a)]))==null?void 0x0:_0x36e453[_0x3d5d08(0xd8)](),_0x266993=_0x4b7ab4?_0x3f9e16(_0x4b7ab4,_0x5c019e):_0x5c019e[_0x3d5d08(0x11e)]+0x1;return _0x1727c9[_0x3d5d08(0x135)](_0x1a34c1)[_0x3d5d08(0xcf)](B['id'],{'startOffset':_0x266993,'endOffset':_0x266993});}},ot={'id':_0x4278ec(0xfe),'type':_0x45294c[_0x4278ec(0x123)],'handler':()=>!0x0},B={'id':_0x4278ec(0x107),'type':_0x45294c['COMMAND'],'handler':(_0x3660cf,_0x3d4f64)=>{const _0x3b3035=_0x4278ec;let _0x434561=W(_0x3660cf,_0x3d4f64==null?void 0x0:_0x3d4f64[_0x3b3035(0xdb)]);if(!_0x434561)return!0x1;let _0xd11848=G(_0x3660cf);if(_0x129d5b(_0xd11848))return!0x1;let _0x5d5015=_0x434561['model']['serialize'](_0x434561[_0x3b3035(0xdb)]),_0x2650b3=lt(_0x3d4f64,_0xd11848),_0x3b8371=ut(_0x434561['previousDocumentData'],_0x2650b3);if(_0x3b8371){if(_0x3b8371[_0x3b3035(0xa1)]!==_0xac67e3['CODE'])return!0x1;let _0x1a99ed=D({'blockId':_0x3b8371[_0x3b3035(0xbe)],'documentData':_0x434561[_0x3b3035(0x10d)],'metadata':_0x5d5015});if(!_0x1a99ed)return!0x1;let _0x469aad=Y(_0x434561['commandService'],_0x434561[_0x3b3035(0x98)],_0x434561['unitId'],_0x434561[_0x3b3035(0x10d)],_0x1a99ed[_0x3b3035(0xc2)],B['id'],_0x1a99ed[_0x3b3035(0x128)]);return _0x469aad&&_0x1a99ed[_0x3b3035(0xfb)]&&_0x434561[_0x3b3035(0x92)][_0x3b3035(0x101)](_0x434561['unitId'],_0x1a99ed[_0x3b3035(0xfb)]),_0x469aad;}let _0x340672=(_0x3d4f64==null?void 0x0:_0x3d4f64['blockId'])??_0x5a5615(0x6),_0x30fbf4;try{_0x30fbf4=De({'blockId':_0x340672,'config':_0x3d4f64==null?void 0x0:_0x3d4f64[_0x3b3035(0xf5)],'documentData':_0x434561[_0x3b3035(0x10d)],'endOffset':_0x2650b3==null?void 0x0:_0x2650b3[_0x3b3035(0xb3)],'insertionMode':_0x3d4f64==null?void 0x0:_0x3d4f64[_0x3b3035(0xdf)],'metadata':_0x5d5015,'startOffset':_0x2650b3==null?void 0x0:_0x2650b3[_0x3b3035(0x129)]});}catch(_0x1133d0){if(_0x1133d0 instanceof E)return!0x1;throw _0x1133d0;}let _0x4709b1=Y(_0x434561[_0x3b3035(0xc1)],_0x434561[_0x3b3035(0x98)],_0x434561[_0x3b3035(0xdb)],_0x434561['previousDocumentData'],_0x30fbf4[_0x3b3035(0xc2)],B['id'],_0x30fbf4[_0x3b3035(0x128)]);return _0x4709b1&&_0x30fbf4[_0x3b3035(0xfb)]&&_0x434561['model']['deserialize'](_0x434561[_0x3b3035(0xdb)],_0x30fbf4[_0x3b3035(0xfb)]),_0x4709b1;}},st={'id':'docs-code.command.update','type':_0x45294c[_0x4278ec(0x123)],'handler':(_0x508654,_0x16caba)=>{const _0x232c1e=_0x4278ec;if(!_0x16caba)return!0x1;let _0x5b8988=W(_0x508654,_0x16caba[_0x232c1e(0xdb)]);if(!_0x5b8988)return!0x1;let _0x4cf19b=je({'blockId':_0x16caba[_0x232c1e(0xbe)],'config':_0x16caba[_0x232c1e(0xf5)],'documentData':_0x5b8988[_0x232c1e(0x10d)],'metadata':_0x5b8988[_0x232c1e(0x92)][_0x232c1e(0xba)](_0x5b8988[_0x232c1e(0xdb)])});return _0x4cf19b[_0x232c1e(0xfb)]&&_0x5b8988[_0x232c1e(0x92)][_0x232c1e(0x101)](_0x5b8988['unitId'],_0x4cf19b[_0x232c1e(0xfb)]),!0x0;}},ct={'id':'docs-code.command.exit','type':_0x45294c[_0x4278ec(0x123)],'handler':(_0x2b17b9,_0x403216)=>V[_0x4278ec(0x12a)](_0x2b17b9,_0x403216)},V={'id':_0x4278ec(0xea),'type':_0x45294c[_0x4278ec(0x123)],'handler':(_0x3dd3c0,_0x3a39df)=>{const _0x2fbb82=_0x4278ec;if(!_0x3a39df)return!0x1;let _0xf6c97e=W(_0x3dd3c0,_0x3a39df==null?void 0x0:_0x3a39df[_0x2fbb82(0xdb)]);if(!_0xf6c97e)return!0x1;let _0x353279=D({'blockId':_0x3a39df[_0x2fbb82(0xbe)],'documentData':_0xf6c97e[_0x2fbb82(0x10d)],'metadata':_0xf6c97e[_0x2fbb82(0x92)]['serialize'](_0xf6c97e[_0x2fbb82(0xdb)])});if(!_0x353279)return!0x1;let _0x54f7d5=Y(_0xf6c97e[_0x2fbb82(0xc1)],_0xf6c97e[_0x2fbb82(0x98)],_0xf6c97e[_0x2fbb82(0xdb)],_0xf6c97e[_0x2fbb82(0x10d)],_0x353279[_0x2fbb82(0xc2)],V['id'],_0x353279[_0x2fbb82(0x128)]);return _0x54f7d5&&_0x353279['nextMetadata']&&_0xf6c97e[_0x2fbb82(0x92)][_0x2fbb82(0x101)](_0xf6c97e[_0x2fbb82(0xdb)],_0x353279['nextMetadata']),_0x54f7d5;}},H={'id':_0x4278ec(0x11c),'type':_0x45294c[_0x4278ec(0x123)],'handler':(_0x36a0ff,_0x5846b7)=>{const _0x50f844=_0x4278ec;if(!_0x5846b7)return!0x1;let _0x58d4c2=W(_0x36a0ff,_0x5846b7==null?void 0x0:_0x5846b7[_0x50f844(0xdb)]);if(!_0x58d4c2)return!0x1;let _0x46ed19=Me({'blockId':_0x5846b7[_0x50f844(0xbe)],'documentData':_0x58d4c2[_0x50f844(0x10d)],'metadata':_0x58d4c2['model']['serialize'](_0x58d4c2[_0x50f844(0xdb)])});if(!_0x46ed19)return!0x1;let _0x46623a=Y(_0x58d4c2['commandService'],_0x58d4c2[_0x50f844(0x98)],_0x58d4c2['unitId'],_0x58d4c2[_0x50f844(0x10d)],_0x46ed19[_0x50f844(0xc2)],H['id'],_0x46ed19[_0x50f844(0x128)]);return _0x46623a&&_0x46ed19[_0x50f844(0xfb)]&&_0x58d4c2[_0x50f844(0x92)][_0x50f844(0x101)](_0x58d4c2[_0x50f844(0xdb)],_0x46ed19[_0x50f844(0xfb)]),_0x46623a;}},U={'id':'docs-code.command.cancel-empty-paragraph','type':_0x45294c['COMMAND'],'handler':(_0x564410,_0x5abb36)=>{const _0x227453=_0x4278ec;var _0x41f562;let _0x41e53c=W(_0x564410,_0x5abb36==null?void 0x0:_0x5abb36['unitId']);if(!_0x41e53c)return!0x1;let _0x4bacbc=(_0x5abb36==null?void 0x0:_0x5abb36[_0x227453(0x128)])??((_0x41f562=G(_0x564410))==null?void 0x0:_0x41f562[_0x227453(0x129)]);if(_0x4bacbc==null)return!0x1;let _0x408cdf=Ne({'cursorOffset':_0x4bacbc,'documentData':_0x41e53c[_0x227453(0x10d)],'paragraphStartIndex':_0x5abb36==null?void 0x0:_0x5abb36['paragraphStartIndex']});return _0x408cdf?Y(_0x41e53c['commandService'],_0x41e53c[_0x227453(0x98)],_0x41e53c[_0x227453(0xdb)],_0x41e53c[_0x227453(0x10d)],_0x408cdf[_0x227453(0xc2)],U['id'],_0x408cdf['cursorOffset']):!0x1;}};function W(_0x477734,_0x34c9d4){const _0x222556=_0x4278ec;let _0x1b41e2=_0x477734['get'](_0x2fe26f),_0x50162d=_0x34c9d4?_0x1b41e2[_0x222556(0x10b)](_0x34c9d4,_0x30a10b[_0x222556(0x11a)]):_0x1b41e2[_0x222556(0x91)](_0x30a10b[_0x222556(0x11a)]);return _0x50162d?{'commandService':_0x477734[_0x222556(0x135)](_0x1a34c1),'model':_0x477734[_0x222556(0x135)](w),'previousDocumentData':_0x50162d[_0x222556(0xa5)](),'selectionManager':_0x477734[_0x222556(0x135)](_0x1e01f3),'unitId':_0x50162d[_0x222556(0xaf)]()}:null;}function G(_0x1c881b){const _0x2ee128=_0x4278ec;var _0x4062a2;return(_0x4062a2=_0x1c881b[_0x2ee128(0x135)](_0x1e01f3)[_0x2ee128(0x117)]())==null?void 0x0:_0x4062a2[0x0];}function lt(_0x6c0fa8,_0x1d2352){const _0x433029=_0x4278ec;let _0x33d9fd=(_0x6c0fa8==null?void 0x0:_0x6c0fa8['startOffset'])??(_0x1d2352==null?void 0x0:_0x1d2352[_0x433029(0x129)]),_0x1acb7c=(_0x6c0fa8==null?void 0x0:_0x6c0fa8[_0x433029(0xb3)])??(_0x1d2352==null?void 0x0:_0x1d2352[_0x433029(0xb3)]);if(_0x33d9fd!=null&&_0x1acb7c!=null)return{'endOffset':Math[_0x433029(0xc8)](_0x33d9fd,_0x1acb7c),'startOffset':Math[_0x433029(0x9b)](_0x33d9fd,_0x1acb7c)};}function ut(_0x55f3a9,_0x59f0a7){const _0x83f9a=_0x4278ec;var _0x28f028;if(!_0x59f0a7)return;let _0x847246=dt(_0x59f0a7);return(_0x28f028=_0x55f3a9[_0x83f9a(0x133)])==null||(_0x28f028=_0x28f028['blockRanges'])==null?void 0x0:_0x28f028[_0x83f9a(0x13a)](_0x329b8a=>{const _0x54e421=_0x83f9a;let _0x41c58d=_0x49707a(_0x329b8a);return _0x59f0a7[_0x54e421(0x129)]===_0x59f0a7[_0x54e421(0xb3)]?_0x27820e(_0x41c58d,_0x847246):_0x42e0ef(_0x41c58d,_0x847246);});}function dt(_0x1bf3e5){const _0x4ef606=_0x4278ec;return _0x1bf3e5['startOffset']===_0x1bf3e5[_0x4ef606(0xb3)]?_0x1bf3e5[_0x4ef606(0x129)]:_0x1bf3e5[_0x4ef606(0x129)]+0x1;}function ft(_0x5ecbff){const _0x140f36=_0x4278ec;let _0x20b402=G(_0x5ecbff);if(!_0x20b402)return null;let _0x2dd1e8=_0x5ecbff[_0x140f36(0x135)](_0x2fe26f)[_0x140f36(0x91)](_0x30a10b['UNIVER_DOC']),_0x20d771=_0x2dd1e8==null?void 0x0:_0x2dd1e8[_0x140f36(0xd8)]();return _0x20d771?_0x20804f['range'][_0x140f36(0xaa)](_0x20b402,_0x20d771[_0x140f36(0x114)]??[],_0x20d771[_0x140f36(0x94)]??'')[0x0]??null:null;}function pt(_0x54b88e,_0x1fba91){const _0x47d867=_0x4278ec;let _0x490fd4=_0x54b88e[_0x47d867(0x133)],_0x4fddd8=_0x1fba91['body'],_0x2c4c33=_0x460607(_0x490fd4,_0x4fddd8);return[_0x2c4c33&&_0x4fddd8?mt(_0x4fddd8,_0x2c4c33):null,_0x2c4c33?null:ht(_0x490fd4,_0x4fddd8)][_0x47d867(0xd2)](Boolean)[_0x47d867(0xcd)]((_0x46a640,_0x3e5ae8)=>_0xa0927a[_0x47d867(0xb1)](_0x46a640,_0x3e5ae8),null);}function mt(_0x4b826f,_0x3dd650){const _0x3bdf18=_0x4278ec;let _0x140dab=new _0xaed83f();return _0x140dab[_0x3bdf18(0x139)](_0x3dd650[_0x3bdf18(0xa0)]),_0x3dd650[_0x3bdf18(0x121)]>0x0&&_0x140dab[_0x3bdf18(0x9c)](_0x3dd650[_0x3bdf18(0x121)],_0x285f89(_0x4b826f,_0x3dd650[_0x3bdf18(0xa0)],_0x3dd650[_0x3bdf18(0xa0)]+_0x3dd650['insertLength'],!0x1)),_0x3dd650[_0x3bdf18(0xbf)]>0x0&&_0x140dab[_0x3bdf18(0xc6)](_0x3dd650[_0x3bdf18(0xbf)]),_0xa0927a[_0x3bdf18(0xe2)]()[_0x3bdf18(0x10a)](_0x140dab[_0x3bdf18(0xba)](),[_0x3bdf18(0x133)]);}function ht(_0x10df4f,_0x37288b){const _0x13f1f3=_0x4278ec;let _0x93618=[],_0x5aeb35=_0x10df4f?_t(_0x10df4f):void 0x0,_0x11a88e=_0x37288b?_t(_0x37288b):void 0x0;for(let _0x1cf5e6 of gt)K(_0xa0927a[_0x13f1f3(0xe2)](),[_0x13f1f3(0x133),_0x1cf5e6],_0x5aeb35==null?void 0x0:_0x5aeb35[_0x1cf5e6],_0x11a88e==null?void 0x0:_0x11a88e[_0x1cf5e6],_0x93618);return _0x93618[_0x13f1f3(0xcd)]((_0x5bd6b7,_0x239a68)=>_0xa0927a['compose'](_0x5bd6b7,_0x239a68),null);}const gt=[_0x4278ec(0x114),_0x4278ec(0xa9),_0x4278ec(0xe3),_0x4278ec(0xe5),_0x4278ec(0x12e),'customBlocks','customRanges',_0x4278ec(0x137),_0x4278ec(0xdc)];function _t(_0x165bfa){return _0x165bfa;}function K(_0x5b2771,_0x3ba98a,_0x4801ac,_0x13a8c8,_0x13ae3e){const _0x47049d=_0x4278ec;J(_0x4801ac,_0x13a8c8)||(_0x4801ac==null?_0x13ae3e[_0x47049d(0x93)](_0x5b2771[_0x47049d(0xf1)](_0x3ba98a,_0x13a8c8)):_0x13a8c8==null?_0x13ae3e[_0x47049d(0x93)](_0x5b2771['removeOp'](_0x3ba98a,_0x4801ac)):Array[_0x47049d(0x13b)](_0x4801ac)&&Array['isArray'](_0x13a8c8)?vt(_0x5b2771,_0x3ba98a,_0x4801ac,_0x13a8c8,_0x13ae3e):q(_0x4801ac)&&q(_0x13a8c8)?new Set([...Object['keys'](_0x4801ac),...Object[_0x47049d(0xc4)](_0x13a8c8)])[_0x47049d(0xb9)](_0x118146=>{K(_0x5b2771,[..._0x3ba98a,_0x118146],_0x4801ac[_0x118146],_0x13a8c8[_0x118146],_0x13ae3e);}):_0x13ae3e[_0x47049d(0x93)](_0x5b2771[_0x47049d(0x124)](_0x3ba98a,_0x4801ac,_0x13a8c8)));}function vt(_0x4a4b23,_0x4b7c3c,_0x380b93,_0x553172,_0x8dd336){const _0x31610b=_0x4278ec;if(_0x380b93['length']===_0x553172[_0x31610b(0xee)]){_0x380b93[_0x31610b(0xb9)]((_0xf0243e,_0x2829ba)=>K(_0x4a4b23,[..._0x4b7c3c,_0x2829ba],_0xf0243e,_0x553172[_0x2829ba],_0x8dd336));return;}let _0x1fc3d8=0x0;for(;_0x1fc3d8<_0x380b93[_0x31610b(0xee)]&&_0x1fc3d8<_0x553172[_0x31610b(0xee)]&&J(_0x380b93[_0x1fc3d8],_0x553172[_0x1fc3d8]);)_0x1fc3d8++;let _0x3c9026=_0x380b93[_0x31610b(0xee)]-0x1,_0x3c63d9=_0x553172[_0x31610b(0xee)]-0x1;for(;_0x3c9026>=_0x1fc3d8&&_0x3c63d9>=_0x1fc3d8&&J(_0x380b93[_0x3c9026],_0x553172[_0x3c63d9]);)_0x3c9026--,_0x3c63d9--;for(let _0x28b19a=_0x3c9026;_0x28b19a>=_0x1fc3d8;_0x28b19a--)_0x8dd336['push'](_0x4a4b23['removeOp']([..._0x4b7c3c,_0x28b19a],_0x380b93[_0x28b19a]));for(let _0x43491d=_0x1fc3d8;_0x43491d<=_0x3c63d9;_0x43491d++)_0x8dd336['push'](_0x4a4b23[_0x31610b(0xf1)]([..._0x4b7c3c,_0x43491d],_0x553172[_0x43491d]));}function q(_0x115ee4){const _0x32fdf5=_0x4278ec;return typeof _0x115ee4==_0x32fdf5(0xfc)&&!!_0x115ee4&&!Array['isArray'](_0x115ee4);}function J(_0x5981b2,_0x4e08df){const _0x1c72a9=_0x4278ec;return JSON[_0x1c72a9(0x125)](_0x5981b2)===JSON[_0x1c72a9(0x125)](_0x4e08df);}function Y(_0x3e8cdb,_0x3fc174,_0x4e93a6,_0x20e275,_0x529f85,_0x1e9b12,_0x46a8f6){const _0x4ac24e=_0x4278ec;let _0x3c2a98=pt(_0x20e275,_0x529f85);return _0x3c2a98?!!_0x3e8cdb[_0x4ac24e(0xcf)](_0x31ecbf['id'],{'unitId':_0x4e93a6,'actions':_0x3c2a98,'textRanges':[{'startOffset':_0x46a8f6,'endOffset':_0x46a8f6,'collapsed':!0x0}],'isEditing':!0x1,'trigger':_0x1e9b12}):(_0x3fc174[_0x4ac24e(0x106)]([{'startOffset':_0x46a8f6,'endOffset':_0x46a8f6}],{'unitId':_0x4e93a6,'subUnitId':_0x4e93a6},!0x1),!0x0);}const X=_0x4278ec(0x100);function _0x57e9(_0x26229e,_0x3b7941){_0x26229e=_0x26229e-0x90;const _0x1bbf03=_0x1bbf();let _0x57e903=_0x1bbf03[_0x26229e];return _0x57e903;}var yt=_0x4278ec(0x130),bt=_0x4278ec(0xf8);const xt={};function Z(_0x4954a6,_0x5978aa){return function(_0x47b23a,_0x2a1b54){_0x5978aa(_0x47b23a,_0x2a1b54,_0x4954a6);};}function St(_0x1e83df,_0x21fee1,_0x52db37,_0x2e442a){const _0x4d29b1=_0x4278ec;var _0x312df7=arguments[_0x4d29b1(0xee)],_0x7ca8f1=_0x312df7<0x3?_0x21fee1:_0x2e442a===null?_0x2e442a=Object['getOwnPropertyDescriptor'](_0x21fee1,_0x52db37):_0x2e442a,_0x22a74e;if(typeof Reflect==_0x4d29b1(0xfc)&&typeof Reflect['decorate']==_0x4d29b1(0x110))_0x7ca8f1=Reflect[_0x4d29b1(0x11b)](_0x1e83df,_0x21fee1,_0x52db37,_0x2e442a);else{for(var _0x1e69a2=_0x1e83df['length']-0x1;_0x1e69a2>=0x0;_0x1e69a2--)(_0x22a74e=_0x1e83df[_0x1e69a2])&&(_0x7ca8f1=(_0x312df7<0x3?_0x22a74e(_0x7ca8f1):_0x312df7>0x3?_0x22a74e(_0x21fee1,_0x52db37,_0x7ca8f1):_0x22a74e(_0x21fee1,_0x52db37))||_0x7ca8f1);}return _0x312df7>0x3&&_0x7ca8f1&&Object[_0x4d29b1(0xc7)](_0x21fee1,_0x52db37,_0x7ca8f1),_0x7ca8f1;}let Q=class extends _0x1ccbbc{constructor(_0x27edf5,_0x491879){const _0x4d286a=_0x4278ec;super(),this['_resourceManagerService']=_0x27edf5,this[_0x4d286a(0x138)]=_0x491879,this[_0x4d286a(0xc5)]();}[_0x4278ec(0xc5)](){const _0x326ba8=_0x4278ec;this['disposeWithMe'](this[_0x326ba8(0xb5)][_0x326ba8(0xcc)]({'pluginName':X,'businesses':[_0x30a10b[_0x326ba8(0x11a)]],'toJson':_0x2c517d=>JSON[_0x326ba8(0x125)](this[_0x326ba8(0x138)][_0x326ba8(0xba)](_0x2c517d)),'parseJson':_0x3c5a02=>y(JSON['parse'](_0x3c5a02)),'onLoad':(_0x4071fe,_0x462d17)=>this[_0x326ba8(0x138)]['deserialize'](_0x4071fe,_0x462d17),'onUnLoad':_0x2343a1=>this[_0x326ba8(0x138)][_0x326ba8(0x11f)](_0x2343a1)}));}};Q=St([Z(0x0,_0x134f76),Z(0x1,_0x2b0865(w))],Q);function _0x1bbf(){const _0x14a5e0=['blockRanges','call','@univerjs-pro/docs-code','codes','registerCommand','body','paragraphId','get','setConfig','customDecorations','_docsCodeModel','retain','find','isArray','4AHSlWa','getCurrentUnitOfType','model','push','dataStream','metadata','_configService','complete','selectionManager','MUTATION','1394667bOuSLk','min','insert','_change$','_setResource','direction','start','blockType','keepLines','disposeWithMe','some','getSnapshot','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','CODE','Insert\x20range\x20cannot\x20overlap\x20an\x20existing\x20document\x20block','sectionBreaks','getParagraphsInRange','docs-code.mutation.remove-config','right','prototype','FALSE','getUnitId','bullet','compose','next','endOffset','string','_resourceManagerService','TRUE','SECTION_BREAK','3999970akNuVN','forEach','serialize','onStarting','_resources','type','blockId','deleteLength','docs-code.config','commandService','nextDocumentData','packageName','keys','_initResource','delete','defineProperty','max','version','set','795179QDsyBD','registerPluginResource','reduce','indentStart','syncExecuteCommand','asObservable','1974AOwdEN','filter','clear','TABLE_CELL_END','left','map','BLOCK_END','getBody','change$','_commandService','unitId','textRuns','startTokenOffset','BLOCK_START','insertionMode','233337IvatbR','paragraphStartIndex','getInstance','tables','documentData','columnGroups','sort','textStyle','fromEntries','_config','docs-code.command.unwrap','setCodeConfig','24odtdFJ','customBlocks','length','default','javascript','insertOp','iterator','endsWith','endIndex','config','6895vXgSeP','Insert\x20range\x20cannot\x20cross\x20table\x20cell\x20boundaries','1.3.1','customRanges','docs-code.command.insert-below','nextMetadata','object','symbol','docs-code.command.consume-boundary-delete','paragraphStyle','DOC_CODE_PLUGIN','deserialize','11LAAFoL','columns','toPrimitive','spaceBelow','replaceDocRanges','docs-code.command.insert','2wyLwUB','removeCode','editOp','getUnit','pluginName','previousDocumentData','monospace','327052jloilN','function','indentEnd','_injector','Document\x20body\x20is\x20required','paragraphs','dispose','add','getTextRanges','constructor','spaceAbove','UNIVER_DOC','decorate','docs-code.command.remove','TABLE_CELL_START','startIndex','removeUnit','266511iUYQom','insertLength','slice','COMMAND','replaceOp','stringify','every','entries','cursorOffset','startOffset','handler','PARAGRAPH','endTokenOffset','336nbPQzl'];_0x1bbf=function(){return _0x14a5e0;};return _0x1bbf();}let $=class extends _0x25c4b9{constructor(_0x33570e=xt,_0x3481ce,_0x5790d7,_0x3c57df){const _0x51d1fc=_0x4278ec;super(),this['_config']=_0x33570e,this[_0x51d1fc(0x112)]=_0x3481ce,this[_0x51d1fc(0xda)]=_0x5790d7,this[_0x51d1fc(0x96)]=_0x3c57df;let {..._0x89248c}=_0x374a9d({},xt,this[_0x51d1fc(0xe9)]);this[_0x51d1fc(0x96)][_0x51d1fc(0x136)](_0x51d1fc(0xc0),_0x89248c);}[_0x4278ec(0xbb)](){const _0x55fe69=_0x4278ec;this[_0x55fe69(0x112)][_0x55fe69(0x116)]([w]),this['_injector'][_0x55fe69(0x116)]([Q]),this['_injector']['get'](w),this[_0x55fe69(0x112)]['get'](Q),[B,at,st,V,H,ct,U,ot,Te,T][_0x55fe69(0xb9)](_0x390560=>this[_0x55fe69(0xa3)](this[_0x55fe69(0xda)][_0x55fe69(0x132)](_0x390560)));}};C($,_0x4278ec(0x10c),X),C($,_0x4278ec(0xc3),yt),C($,_0x4278ec(0xc9),bt),C($,_0x4278ec(0xbd),_0x30a10b[_0x4278ec(0x11a)]),$=St([_0x85efd(_0x509979,_0x1e99e0),Z(0x1,_0x2b0865(_0x650f9e)),Z(0x2,_0x1a34c1),Z(0x3,_0x48b9b0)],$);export{X as DOCS_CODE_PLUGIN,U as DocsCodeCancelEmptyParagraphCommand,ot as DocsCodeConsumeBoundaryDeleteCommand,at as DocsCodeInsertBelowCommand,B as DocsCodeInsertCommand,w as DocsCodeModel,H as DocsCodeRemoveCommand,V as DocsCodeUnwrapCommand,st as DocsCodeUpdateCommand,T as RemoveDocsCodeConfigMutation,Te as SetDocsCodeConfigMutation,$ as UniverDocsCodePlugin,Ne as buildCancelEmptyCodeParagraphActions,Ie as isCodeBoundaryDelete,v as normalizeDocsCodeConfig,y as normalizeDocsCodeMetadataResource};
1
+ const _0x57053a=_0x56e2;(function(_0x42aca5,_0x8e2ae8){const _0x547404=_0x56e2,_0x25b5bb=_0x42aca5();while(!![]){try{const _0xb0e04f=parseInt(_0x547404(0xfc))/0x1+-parseInt(_0x547404(0x14e))/0x2*(parseInt(_0x547404(0x103))/0x3)+parseInt(_0x547404(0x16b))/0x4*(-parseInt(_0x547404(0x15d))/0x5)+parseInt(_0x547404(0x14b))/0x6+-parseInt(_0x547404(0x12a))/0x7+parseInt(_0x547404(0xfb))/0x8+parseInt(_0x547404(0x12b))/0x9;if(_0xb0e04f===_0x8e2ae8)break;else _0x25b5bb['push'](_0x25b5bb['shift']());}catch(_0x5e0d6f){_0x25b5bb['push'](_0x25b5bb['shift']());}}}(_0x34b4,0xc8d80));import{BooleanNumber as _0x30d53f,BuildTextUtils as _0x2575ad,CommandType as _0x315486,DataStreamTreeTokenType as _0x323fa8,DependentOn as _0x3f0dd1,Disposable as _0x450405,DocumentBlockRangeType as _0xbd26d4,ICommandService as _0x31742c,IConfigService as _0x46b4a8,IResourceManagerService as _0x52c202,IUniverInstanceService as _0x2889e4,Inject as _0x5b34a9,Injector as _0x25ae8a,JSONX as _0x286f05,Plugin as _0x421146,TextX as _0x1b4382,UniverInstanceType as _0x27b52e,containsInteriorInsertionOffset as _0x33b8d6,containsStreamIndex as _0x1919fa,createParagraphId as _0x876db1,generateRandomId as _0x53354e,getBlockRangeInterval as _0x261e87,getBodySliceForTextXAction as _0x1d577d,getParagraphContentStartOffset as _0xcc790f,getParagraphContentStartOffsets as _0x5adc3e,getParagraphFollowingBlockOffset as _0xd671e9,getSingleDataStreamChange as _0x24c61a,intersectsOperationalIntervals as _0x2ab5be,merge as _0x3d1bfe,shiftExclusiveRangeOnDelete as _0x474d57,shiftExclusiveRangeOnInsert as _0x4e29ec,shiftInclusiveRangeOnDelete as _0x58cb39,shiftInclusiveRangeOnInsert as _0x382399}from'@univerjs/core';import{Subject as _0x9c8de8}from'rxjs';import{DocSelectionManagerService as _0x17b7d0,RichTextEditingMutation as _0x4c6056,UniverDocsPlugin as _0x55e803,getContentInsertRange as _0xbfd420,isHeaderFooterSelection as _0x2a1741}from'@univerjs/docs';import{UniverLicensePlugin as _0xbf8067}from'@univerjs-pro/license';const Se={'language':_0x57053a(0xf4),'showLineNumbers':!0x1,'tabSize':0x4,'wrap':!0x0};function v(_0x588c7a){return{...Se,..._0x588c7a};}function y(_0x5d8485){const _0xf3ffc6=_0x57053a;let _0x236269=(_0x5d8485==null?void 0x0:_0x5d8485[_0xf3ffc6(0x10c)])??{};return{'codes':Object['fromEntries'](Object[_0xf3ffc6(0x163)](_0x236269)[_0xf3ffc6(0x15b)](([_0x33557b,_0x2a94a7])=>[_0x33557b,v(_0x2a94a7)]))};}function b(_0x4c0a85,_0x30dfb9,_0xbb52f0){const _0x218717=_0x57053a;let _0x496616=y(_0x4c0a85);return _0x496616[_0x218717(0x10c)][_0x30dfb9]=v({..._0x496616[_0x218717(0x10c)][_0x30dfb9],..._0xbb52f0}),_0x496616;}function x(_0x2de8a6,_0x570d59){const _0x40b509=_0x57053a;let _0x3acc54=y(_0x2de8a6);return delete _0x3acc54[_0x40b509(0x10c)][_0x570d59],_0x3acc54;}function S(_0x2858d1){'@babel/helpers - typeof';const _0x16240a=_0x57053a;return S=typeof Symbol==_0x16240a(0xeb)&&typeof Symbol['iterator']==_0x16240a(0x130)?function(_0x10dedd){return typeof _0x10dedd;}:function(_0x68c3e1){const _0x26f94c=_0x16240a;return _0x68c3e1&&typeof Symbol==_0x26f94c(0xeb)&&_0x68c3e1['constructor']===Symbol&&_0x68c3e1!==Symbol[_0x26f94c(0x105)]?'symbol':typeof _0x68c3e1;},S(_0x2858d1);}function Ce(_0x49fdd5,_0x2707f6){const _0x2518f4=_0x57053a;if(S(_0x49fdd5)!='object'||!_0x49fdd5)return _0x49fdd5;var _0x310bdf=_0x49fdd5[Symbol[_0x2518f4(0x133)]];if(_0x310bdf!==void 0x0){var _0x15f78e=_0x310bdf[_0x2518f4(0xe9)](_0x49fdd5,_0x2707f6||_0x2518f4(0x17e));if(S(_0x15f78e)!=_0x2518f4(0x109))return _0x15f78e;throw TypeError(_0x2518f4(0x11b));}return(_0x2707f6===_0x2518f4(0x176)?String:Number)(_0x49fdd5);}function we(_0xff82cd){const _0x311229=_0x57053a;var _0x37925d=Ce(_0xff82cd,_0x311229(0x176));return S(_0x37925d)==_0x311229(0x130)?_0x37925d:_0x37925d+'';}function C(_0x372847,_0x3385f0,_0x42bcb8){const _0xaed75b=_0x57053a;return(_0x3385f0=we(_0x3385f0))in _0x372847?Object[_0xaed75b(0xec)](_0x372847,_0x3385f0,{'value':_0x42bcb8,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x372847[_0x3385f0]=_0x42bcb8,_0x372847;}var w=class extends _0x450405{constructor(..._0x511218){const _0xb22ae8=_0x57053a;super(..._0x511218),C(this,_0xb22ae8(0x17b),new Map()),C(this,'_change$',new _0x9c8de8()),C(this,'change$',this[_0xb22ae8(0x18a)][_0xb22ae8(0x16a)]());}[_0x57053a(0x182)](_0x56cf98,_0x2ddf88){const _0x1056b5=_0x57053a;return y(this[_0x1056b5(0x17b)][_0x1056b5(0x17c)](_0x56cf98))[_0x1056b5(0x10c)][_0x2ddf88];}['setCodeConfig'](_0xa9b4c3,_0x3b16ff,_0x377520){const _0x3652a4=_0x57053a;this[_0x3652a4(0x13e)](_0xa9b4c3,_0x3b16ff,b(this[_0x3652a4(0x17b)][_0x3652a4(0x17c)](_0xa9b4c3),_0x3b16ff,_0x377520));}[_0x57053a(0x114)](_0x241db1,_0xbf8026){const _0x126d77=_0x57053a;this[_0x126d77(0x13e)](_0x241db1,_0xbf8026,x(this[_0x126d77(0x17b)][_0x126d77(0x17c)](_0x241db1),_0xbf8026));}[_0x57053a(0x116)](_0x485768){const _0x4bd739=_0x57053a;return y(this[_0x4bd739(0x17b)][_0x4bd739(0x17c)](_0x485768));}[_0x57053a(0x169)](_0x4598a8,_0x4d115d){const _0x5b1b51=_0x57053a;this['_resources']['set'](_0x4598a8,y(_0x4d115d)),this[_0x5b1b51(0x18a)]['next']({'unitId':_0x4598a8});}['removeUnit'](_0x23f55f){const _0x47f8c2=_0x57053a;this[_0x47f8c2(0x17b)][_0x47f8c2(0x188)](_0x23f55f),this[_0x47f8c2(0x18a)]['next']({'unitId':_0x23f55f});}['dispose'](){const _0x3e56b3=_0x57053a;super[_0x3e56b3(0x167)](),this[_0x3e56b3(0x17b)][_0x3e56b3(0x153)](),this[_0x3e56b3(0x18a)]['complete']();}['_setResource'](_0x5ed8b4,_0x4d01f1,_0x531cf3){const _0x243ab6=_0x57053a;this[_0x243ab6(0x17b)][_0x243ab6(0x16f)](_0x5ed8b4,_0x531cf3),this[_0x243ab6(0x18a)][_0x243ab6(0xef)]({'unitId':_0x5ed8b4,'blockId':_0x4d01f1});}};const Te={'id':_0x57053a(0xee),'type':_0x315486['MUTATION'],'handler':(_0x32b0ed,_0x2b8f22)=>!(_0x2b8f22!=null&&_0x2b8f22[_0x57053a(0xf9)])||!_0x2b8f22[_0x57053a(0x126)]?!0x1:(_0x32b0ed['get'](w)[_0x57053a(0x12d)](_0x2b8f22[_0x57053a(0xf9)],_0x2b8f22[_0x57053a(0x126)],_0x2b8f22['config']),!0x0)},T={'id':_0x57053a(0x113),'type':_0x315486['MUTATION'],'handler':(_0x1afc7b,_0x52694c)=>!(_0x52694c!=null&&_0x52694c['unitId'])||!_0x52694c['blockId']?!0x1:(_0x1afc7b[_0x57053a(0x17c)](w)[_0x57053a(0x114)](_0x52694c['unitId'],_0x52694c[_0x57053a(0x126)]),!0x0)},Ee=_0x57053a(0x14d);var E=class extends Error{constructor(_0x39ac1b=_0x57053a(0x17f)){super(_0x39ac1b);}};function De(_0x5340cd){const _0x57ffa1=_0x57053a;var _0x4f9ae4;let _0x29a9fe=O(_0x5340cd[_0x57ffa1(0x14a)]),_0x5f22ab=A(_0x29a9fe),_0x543d98=ke(_0x5340cd['startOffset'],_0x5340cd[_0x57ffa1(0x132)]),_0x163e23=_0x543d98?(_0x4f9ae4=_0x5f22ab[_0x57ffa1(0x13a)])==null?void 0x0:_0x4f9ae4[_0x57ffa1(0x115)](_0x271ede=>{const _0x58d927=_0x57ffa1;let _0x3cfd38=_0x261e87(_0x271ede);return _0x3cfd38[_0x58d927(0x14c)]===_0x543d98['startOffset']&&_0x3cfd38['endOffset']===_0x543d98[_0x58d927(0x132)];}):void 0x0,{startOffset:_0x4eb01c,endOffset:_0x50859c}=_0x163e23?_0x543d98:We(_0x5f22ab,_0x5340cd[_0x57ffa1(0x14c)],_0x5340cd[_0x57ffa1(0x132)],_0x5340cd[_0x57ffa1(0xf0)]);if(!_0x163e23&&Ae(_0x5f22ab,_0x4eb01c,_0x50859c))throw new E(_0x57ffa1(0x184));let _0x44ef93=qe(_0x5f22ab,_0x4eb01c,_0x50859c),_0x14ea97=(_0x163e23==null?void 0x0:_0x163e23['blockId'])??_0x5340cd['blockId'],_0x49e69b=b(_0x5340cd[_0x57ffa1(0x110)],_0x14ea97,{...Se,..._0x5340cd[_0x57ffa1(0x161)]});if(_0x163e23)return _0x163e23[_0x57ffa1(0x18b)]=_0xbd26d4[_0x57ffa1(0x139)],Oe(_0x5f22ab,_0x4eb01c,_0x50859c),ze(_0x5f22ab,_0x4eb01c,_0x50859c,_0x44ef93),N(_0x5f22ab,_0x163e23),{'nextDocumentData':_0x29a9fe,'nextMetadata':_0x49e69b,'cursorOffset':_0x4eb01c+0x1};if(_0x4eb01c===_0x50859c){var _0xc7def0,_0x5cee23;let _0x2642cc=''+_0x323fa8[_0x57ffa1(0x11e)]+_0x323fa8[_0x57ffa1(0x112)]+_0x323fa8[_0x57ffa1(0x137)];P(_0x5f22ab,_0x4eb01c,_0x2642cc,{'paragraphs':[{'startIndex':0x1,'paragraphId':_0x876db1(new Set((_0xc7def0=_0x5f22ab['paragraphs'])==null?void 0x0:_0xc7def0[_0x57ffa1(0x15b)](_0x5c00fb=>_0x5c00fb[_0x57ffa1(0x12c)]))),'paragraphStyle':Re(!0x0,!0x0,_0x44ef93)}],'blockRanges':[{'blockId':_0x14ea97,'blockType':_0xbd26d4[_0x57ffa1(0x139)],'startIndex':0x0,'endIndex':_0x2642cc['length']-0x1}]});let _0x1343ab=(_0x5cee23=_0x5f22ab[_0x57ffa1(0x13a)])==null?void 0x0:_0x5cee23[_0x57ffa1(0x115)](_0x223cd2=>_0x223cd2[_0x57ffa1(0x126)]===_0x14ea97);return _0x1343ab&&N(_0x5f22ab,_0x1343ab),{'nextDocumentData':_0x29a9fe,'nextMetadata':_0x49e69b,'cursorOffset':_0x4eb01c+0x1};}P(_0x5f22ab,_0x50859c,_0x323fa8[_0x57ffa1(0x137)]),P(_0x5f22ab,_0x4eb01c,_0x323fa8[_0x57ffa1(0x11e)]),ze(_0x5f22ab,_0x4eb01c,_0x50859c+0x1,_0x44ef93);let _0x4a100d={'blockId':_0x14ea97,'blockType':_0xbd26d4[_0x57ffa1(0x139)],'startIndex':_0x4eb01c,'endIndex':_0x50859c+0x1};return _0x5f22ab[_0x57ffa1(0x13a)]=[..._0x5f22ab[_0x57ffa1(0x13a)]??[],_0x4a100d]['sort']((_0x4a247c,_0x4b1b41)=>_0x4a247c[_0x57ffa1(0x123)]-_0x4b1b41['startIndex']),N(_0x5f22ab,_0x4a100d),{'nextDocumentData':_0x29a9fe,'nextMetadata':_0x49e69b,'cursorOffset':_0x4eb01c+0x1};}function Oe(_0x272507,_0x455ea5,_0x4145eb){const _0x182bbc=_0x57053a;(_0x272507[_0x182bbc(0x149)]??[])['filter'](_0x20958e=>_0x20958e[_0x182bbc(0x123)]>_0x455ea5&&_0x20958e['startIndex']<_0x4145eb)[_0x182bbc(0x129)](_0x4dfb56=>{const _0x379d02=_0x182bbc;let _0x18e49e={..._0x4dfb56[_0x379d02(0x187)]??{}};delete _0x18e49e[_0x379d02(0x156)],delete _0x18e49e[_0x379d02(0x11c)],_0x4dfb56[_0x379d02(0x187)]=_0x18e49e;});}function ke(_0x18402b,_0x2b4397){const _0x2741b3=_0x57053a;return _0x18402b==null||_0x2b4397==null||_0x18402b===_0x2b4397?null:{'startOffset':Math[_0x2741b3(0x181)](_0x18402b,_0x2b4397),'endOffset':Math['max'](_0x18402b,_0x2b4397)};}function Ae(_0x377d22,_0x5b9513,_0x1596c1){const _0x2aff47=_0x57053a;return(_0x377d22[_0x2aff47(0x13a)]??[])['some'](_0x356d4f=>{let _0x2a204f=_0x261e87(_0x356d4f);return _0x5b9513===_0x1596c1?_0x33b8d6(_0x2a204f,_0x5b9513):_0x2ab5be(_0x2a204f,{'startOffset':_0x5b9513,'endOffset':_0x1596c1});});}function je(_0x208858){const _0x417501=_0x57053a;return{'nextDocumentData':O(_0x208858['documentData']),'nextMetadata':b(_0x208858[_0x417501(0x110)],_0x208858[_0x417501(0x126)],_0x208858['config']),'cursorOffset':0x0};}function D(_0x10540a){const _0x209892=_0x57053a;let _0x38d092=O(_0x10540a['documentData']),_0x4e9fb1=A(_0x38d092),_0x489afd=Fe(_0x4e9fb1,_0x10540a[_0x209892(0x126)]);if(!_0x489afd)return null;let _0xe545c3=He(_0x4e9fb1,_0x489afd);return{'nextDocumentData':_0x38d092,'nextMetadata':x(_0x10540a[_0x209892(0x110)],_0x10540a[_0x209892(0x126)]),'cursorOffset':_0xe545c3};}function Me(_0x495ac7){const _0x16d595=_0x57053a;var _0xa13bbc;let _0x36fb29=O(_0x495ac7[_0x16d595(0x14a)]),_0x3f449f=A(_0x36fb29),_0x1e2f4a=Fe(_0x3f449f,_0x495ac7[_0x16d595(0x126)]);if(!_0x1e2f4a)return null;let _0x19a59f=_0x261e87(_0x1e2f4a);return F(_0x3f449f,_0x19a59f[_0x16d595(0x14c)],_0x19a59f[_0x16d595(0x132)]),_0x3f449f[_0x16d595(0x13a)]=(_0xa13bbc=_0x3f449f[_0x16d595(0x13a)])==null?void 0x0:_0xa13bbc[_0x16d595(0x164)](_0x33cd00=>_0x33cd00[_0x16d595(0x126)]!==_0x495ac7[_0x16d595(0x126)]),{'nextDocumentData':_0x36fb29,'nextMetadata':x(_0x495ac7[_0x16d595(0x110)],_0x495ac7[_0x16d595(0x126)]),'cursorOffset':_0x1e2f4a['startIndex']};}function Ne(_0x54d6a1){const _0x224f22=_0x57053a;let _0x2e61c6=O(_0x54d6a1[_0x224f22(0x14a)]),_0x3de03a=A(_0x2e61c6),_0x2cc698=Le(_0x3de03a,_0x54d6a1['cursorOffset']);return _0x2cc698&&Pe(_0x2e61c6,_0x3de03a,_0x2cc698,_0x54d6a1['cursorOffset'],_0x54d6a1[_0x224f22(0xf8)])||null;}function Pe(_0xe6f92a,_0x42e075,_0x2f3c19,_0x5799f0,_0x47bbb8){const _0x14e6bb=_0x57053a;let _0x556a74=$e(_0x42e075,_0x2f3c19,_0x5799f0,_0x47bbb8);if(!_0x556a74)return null;let _0x51d384=_0x556a74[_0x14e6bb(0x10f)]-0x1;return F(_0x42e075,_0x556a74[_0x14e6bb(0x15c)][_0x14e6bb(0x123)],_0x556a74['paragraph'][_0x14e6bb(0x123)]+0x1),{'nextDocumentData':_0xe6f92a,'cursorOffset':_0x51d384};}function Fe(_0x1bae75,_0x4d03b5){const _0x2f12f1=_0x57053a;var _0x37874f;return _0x1bae75==null||(_0x37874f=_0x1bae75[_0x2f12f1(0x13a)])==null?void 0x0:_0x37874f[_0x2f12f1(0x115)](_0x45e51e=>_0x45e51e['blockType']===_0xbd26d4[_0x2f12f1(0x139)]&&_0x45e51e[_0x2f12f1(0x126)]===_0x4d03b5);}function Ie(_0x2ca821){const _0xf84147=_0x57053a;let _0x56a9cc=_0x2ca821['documentData'][_0xf84147(0x148)];if(!_0x56a9cc)return!0x1;let _0x427732=_0x2ca821[_0xf84147(0xf5)]===_0xf84147(0x10e)?_0x2ca821['cursorOffset']-0x1:_0x2ca821['cursorOffset'],_0x4fe11a=_0x2ca821[_0xf84147(0xf5)]==='right'?_0x2ca821['cursorOffset']+0x1:_0x427732;return(_0x56a9cc[_0xf84147(0x13a)]??[])[_0xf84147(0xf2)](_0x253319=>_0x253319[_0xf84147(0x18b)]===_0xbd26d4[_0xf84147(0x139)]?_0x427732===_0x253319['startIndex']||_0x427732===_0x253319[_0xf84147(0x165)]||_0x4fe11a===_0x253319[_0xf84147(0x123)]||_0x4fe11a===_0x253319[_0xf84147(0x165)]:!0x1);}function Le(_0x2ca8b5,_0x4c8c72){var _0x4ab8da;return(_0x4ab8da=_0x2ca8b5['blockRanges'])==null?void 0x0:_0x4ab8da['find'](_0x4766cf=>{const _0x4b33eb=_0x56e2;let _0x245a77=M(_0x4766cf);return _0x4766cf[_0x4b33eb(0x18b)]===_0xbd26d4[_0x4b33eb(0x139)]&&_0x4766cf[_0x4b33eb(0x123)]<=_0x4c8c72&&_0x4c8c72<=_0x245a77+0x2;});}function Re(_0x3e5bc3,_0x1b72ee,_0x30e573=!0x1){const _0x53a93c=_0x57053a;return{'indentEnd':{'v':0x14},'indentStart':{'v':0x14},'keepLines':_0x30d53f[_0x53a93c(0x158)],'keepNext':_0x1b72ee?_0x30d53f['FALSE']:_0x30d53f[_0x53a93c(0x158)],'widowControl':_0x30d53f[_0x53a93c(0x158)],..._0x3e5bc3&&_0x30e573?{'spaceAbove':{'v':0x8}}:{},'textStyle':{'ff':Ee,'fs':0xc}};}function ze(_0x994991,_0x1debc8,_0x28612b,_0x19a3f9=!0x1){const _0x290b4d=_0x57053a;let _0x320996=(_0x994991['paragraphs']??[])[_0x290b4d(0x164)](_0x5a48ea=>_0x5a48ea[_0x290b4d(0x123)]>_0x1debc8&&_0x5a48ea['startIndex']<_0x28612b);_0x320996[_0x290b4d(0x129)]((_0x4b0cd5,_0x17054b)=>{const _0x42de05=_0x290b4d;_0x4b0cd5[_0x42de05(0x187)]={..._0x4b0cd5[_0x42de05(0x187)]??{},...Re(_0x17054b===0x0,_0x17054b===_0x320996['length']-0x1,_0x19a3f9)};});}function Be(_0x5890bc){const _0x226e94=_0x57053a;var _0x2620ed,_0xe4a100;let _0x450196={..._0x5890bc??{}};return delete _0x450196[_0x226e94(0x189)],delete _0x450196[_0x226e94(0x172)],delete _0x450196[_0x226e94(0x156)],delete _0x450196['spaceBelow'],delete _0x450196[_0x226e94(0x178)],delete _0x450196[_0x226e94(0x16e)],delete _0x450196['widowControl'],((_0x2620ed=_0x450196['textStyle'])==null?void 0x0:_0x2620ed['ff'])===Ee&&((_0xe4a100=_0x450196[_0x226e94(0x124)])==null?void 0x0:_0xe4a100['fs'])===0xc&&delete _0x450196['textStyle'],_0x450196;}function Ve(_0x138852,_0x505175){const _0x5d596c=_0x57053a;let _0x441864=M(_0x505175);return(_0x138852[_0x5d596c(0x149)]??[])[_0x5d596c(0x164)](_0x1c0211=>_0x1c0211['startIndex']>_0x505175['startIndex']&&_0x1c0211[_0x5d596c(0x123)]<_0x441864);}function He(_0x3bf007,_0x44112a){const _0x22a70a=_0x57053a;var _0x362206;let _0x45d5b8=M(_0x44112a);return Ve(_0x3bf007,_0x44112a)['forEach'](_0x3a7b4c=>{const _0x63beab=_0x56e2;_0x3a7b4c[_0x63beab(0x187)]=Be(_0x3a7b4c[_0x63beab(0x187)]);}),F(_0x3bf007,_0x45d5b8,_0x45d5b8+0x1),F(_0x3bf007,_0x44112a['startIndex'],_0x44112a[_0x22a70a(0x123)]+0x1),_0x3bf007['blockRanges']=(_0x362206=_0x3bf007[_0x22a70a(0x13a)])==null?void 0x0:_0x362206['filter'](_0x4fa5c8=>_0x4fa5c8[_0x22a70a(0x126)]!==_0x44112a[_0x22a70a(0x126)]),_0x44112a[_0x22a70a(0x123)];}function O(_0x439527){const _0x24de54=_0x57053a;return{..._0x439527,'body':_0x439527[_0x24de54(0x148)]?Ue(_0x439527[_0x24de54(0x148)]):_0x439527[_0x24de54(0x148)]};}function Ue(_0x2ec22a){const _0x5ed170=_0x57053a;var _0x503d29,_0x11692b,_0x1a7ded,_0x3946b1,_0x3e3d2f,_0x4b29ba,_0x3916ee,_0x265503,_0x24514e;return{..._0x2ec22a,'paragraphs':(_0x503d29=_0x2ec22a[_0x5ed170(0x149)])==null?void 0x0:_0x503d29[_0x5ed170(0x15b)](_0x104fbd=>({..._0x104fbd,'bullet':k(_0x104fbd['bullet']),'paragraphStyle':k(_0x104fbd['paragraphStyle'])})),'sectionBreaks':(_0x11692b=_0x2ec22a[_0x5ed170(0x173)])==null?void 0x0:_0x11692b[_0x5ed170(0x15b)](_0x197fc3=>({..._0x197fc3})),'textRuns':(_0x1a7ded=_0x2ec22a[_0x5ed170(0x13f)])==null?void 0x0:_0x1a7ded[_0x5ed170(0x15b)](_0x5ab9fa=>({..._0x5ab9fa})),'tables':(_0x3946b1=_0x2ec22a[_0x5ed170(0x142)])==null?void 0x0:_0x3946b1['map'](_0x6db4bb=>({..._0x6db4bb})),'columnGroups':(_0x3e3d2f=_0x2ec22a[_0x5ed170(0x12e)])==null?void 0x0:_0x3e3d2f[_0x5ed170(0x15b)](_0x4360d5=>{const _0x52f596=_0x5ed170;var _0x6449b7;return{..._0x4360d5,'columns':(_0x6449b7=_0x4360d5[_0x52f596(0x11f)])==null?void 0x0:_0x6449b7['map'](_0x953dad=>k(_0x953dad))};}),'blockRanges':(_0x4b29ba=_0x2ec22a[_0x5ed170(0x13a)])==null?void 0x0:_0x4b29ba[_0x5ed170(0x15b)](_0x361756=>({..._0x361756})),'customRanges':(_0x3916ee=_0x2ec22a['customRanges'])==null?void 0x0:_0x3916ee['map'](_0x4be15a=>({..._0x4be15a})),'customDecorations':(_0x265503=_0x2ec22a['customDecorations'])==null?void 0x0:_0x265503[_0x5ed170(0x15b)](_0x58f4ba=>({..._0x58f4ba})),'customBlocks':(_0x24514e=_0x2ec22a[_0x5ed170(0xe5)])==null?void 0x0:_0x24514e['map'](_0x3719ea=>({..._0x3719ea}))};}function k(_0x1bb55d){const _0x32d827=_0x57053a;return Array['isArray'](_0x1bb55d)?_0x1bb55d['map'](_0x207912=>k(_0x207912)):!_0x1bb55d||typeof _0x1bb55d!=_0x32d827(0x109)?_0x1bb55d:Object['fromEntries'](Object['entries'](_0x1bb55d)[_0x32d827(0x15b)](([_0x52411b,_0x3a8209])=>[_0x52411b,k(_0x3a8209)]));}function A(_0x10e10c){const _0x36fa54=_0x57053a;if(!_0x10e10c[_0x36fa54(0x148)])throw Error(_0x36fa54(0x145));return _0x10e10c[_0x36fa54(0x148)];}function We(_0x53efe7,_0x474e38,_0x24714f,_0x181396='convert-paragraph'){const _0x2621bc=_0x57053a;if(_0x474e38==null||_0x24714f==null){let _0xe7a9a8=Ke(_0x53efe7);return{'startOffset':_0xe7a9a8,'endOffset':_0xe7a9a8};}let _0x2a1f4c=Math['min'](_0x474e38,_0x24714f),_0x1022c6=Math[_0x2621bc(0xfa)](_0x474e38,_0x24714f),_0x8ea5cd=Ze(_0x53efe7,_0x2a1f4c,_0x1022c6);return _0x2a1f4c===_0x1022c6?_0x181396===_0x2621bc(0x170)?{'startOffset':_0x2a1f4c,'endOffset':_0x1022c6}:Ge(_0x53efe7,_0x2a1f4c,_0x8ea5cd):Je(_0x53efe7,_0x2a1f4c,_0x1022c6,_0x8ea5cd);}function Ge(_0x160996,_0x4c5130,_0x277efa){const _0x54d21b=_0x57053a;let _0x4754f6=Ye(_0x160996,_0x4c5130);if(_0x4754f6){let _0x40cc47=j(_0x160996,_0x4754f6,_0x277efa);if(_0x40cc47<_0x4754f6[_0x54d21b(0x123)])return{'startOffset':_0x40cc47,'endOffset':_0x277efa?Math['min'](_0x4754f6[_0x54d21b(0x123)]+0x1,_0x277efa[_0x54d21b(0x132)]):_0x4754f6[_0x54d21b(0x123)]+0x1};}let _0x48ec1f=_0x4c5130===0x0&&_0x160996[_0x54d21b(0x100)][0x0]===_0x323fa8[_0x54d21b(0x112)]?0x1:_0x4c5130;return{'startOffset':_0x48ec1f,'endOffset':_0x48ec1f};}function Ke(_0x5988e8){const _0x21ba88=_0x57053a;return _0x5988e8[_0x21ba88(0x100)][_0x21ba88(0x134)](_0x323fa8[_0x21ba88(0xfd)])?Math[_0x21ba88(0xfa)](0x0,_0x5988e8['dataStream'][_0x21ba88(0x15a)]-0x1):_0x5988e8[_0x21ba88(0x100)]['length'];}function qe(_0x1c613c,_0x5d838c,_0x2756c7){const _0x35279e=_0x57053a;var _0x37af81;let _0x3fe4e0=Math['min'](_0x5d838c,_0x2756c7),_0x2a552d=Math[_0x35279e(0xfa)](_0x5d838c,_0x2756c7);return!!((_0x37af81=_0x1c613c[_0x35279e(0x142)])!=null&&_0x37af81[_0x35279e(0xf2)](_0x2420ab=>_0x3fe4e0>_0x2420ab[_0x35279e(0x123)]&&_0x3fe4e0<_0x2420ab['endIndex']||_0x2a552d>_0x2420ab['startIndex']&&_0x2a552d<_0x2420ab[_0x35279e(0x165)]||_0x3fe4e0<=_0x2420ab[_0x35279e(0x123)]&&_0x2a552d>=_0x2420ab[_0x35279e(0x165)]));}function Je(_0x34872e,_0x35b3d7,_0x304e2e,_0x4eaac9){const _0x5b3cf9=_0x57053a;let _0x30c8df=[..._0x34872e['paragraphs']??[]][_0x5b3cf9(0x144)]((_0x49db72,_0x5857ba)=>_0x49db72[_0x5b3cf9(0x123)]-_0x5857ba[_0x5b3cf9(0x123)]),_0x5b4c3a=_0x5adc3e(_0x34872e),_0xe0da8b=_0x30c8df['find'](_0x267be0=>j(_0x34872e,_0x267be0,_0x4eaac9,_0x5b4c3a)<=_0x35b3d7&&_0x35b3d7<=_0x267be0[_0x5b3cf9(0x123)]),_0x517d62=_0x30c8df[_0x5b3cf9(0x115)](_0xaaec17=>_0xaaec17[_0x5b3cf9(0x123)]>=_0x304e2e-0x1)??_0x30c8df[_0x30c8df[_0x5b3cf9(0x15a)]-0x1];return{'startOffset':_0xe0da8b?j(_0x34872e,_0xe0da8b,_0x4eaac9,_0x5b4c3a):_0x35b3d7,'endOffset':_0x517d62?Xe(_0x517d62,_0x4eaac9):_0x304e2e};}function Ye(_0x209fbb,_0x589ab0){const _0x4342c7=_0x57053a;let _0x2e038e=[..._0x209fbb[_0x4342c7(0x149)]??[]][_0x4342c7(0x144)]((_0x2fc0dc,_0x5b4e8d)=>_0x2fc0dc[_0x4342c7(0x123)]-_0x5b4e8d[_0x4342c7(0x123)]),_0x528a94=_0x5adc3e(_0x209fbb);return _0x2e038e[_0x4342c7(0x115)](_0x9e3ed8=>(_0x528a94[_0x4342c7(0x17c)](_0x9e3ed8[_0x4342c7(0x123)])??0x0)<=_0x589ab0&&_0x589ab0<=_0x9e3ed8['startIndex']);}function j(_0x1b3325,_0x342211,_0x9151c8,_0x29a1ef){const _0x44fb7=_0x57053a;let _0x186dbd=(_0x29a1ef==null?void 0x0:_0x29a1ef[_0x44fb7(0x17c)](_0x342211[_0x44fb7(0x123)]))??_0xcc790f(_0x1b3325,_0x342211);return _0x9151c8?Math[_0x44fb7(0xfa)](_0x186dbd,_0x9151c8[_0x44fb7(0x14c)]):_0x186dbd;}function Xe(_0x2c2019,_0x33bd2f){const _0x4b7a69=_0x57053a;let _0x3c4b9a=_0x2c2019[_0x4b7a69(0x123)]+0x1;return _0x33bd2f?Math[_0x4b7a69(0x181)](_0x3c4b9a,_0x33bd2f[_0x4b7a69(0x132)]):_0x3c4b9a;}function Ze(_0x1ad0e2,_0xceb757,_0x5c7075){const _0xf5366e=_0x57053a;let _0x212dc7=Qe(_0x1ad0e2,_0xceb757),_0x25a217=Qe(_0x1ad0e2,_0xceb757===_0x5c7075?_0x5c7075:Math[_0xf5366e(0xfa)](_0xceb757,_0x5c7075-0x1));if(_0x212dc7||_0x25a217){if(!_0x212dc7||!_0x25a217||_0x212dc7[_0xf5366e(0x171)]!==_0x25a217[_0xf5366e(0x171)]||_0x212dc7[_0xf5366e(0x10f)]!==_0x25a217[_0xf5366e(0x10f)])throw new E();return _0x212dc7;}}function Qe(_0x60e621,_0x273c75){const _0x5018fc=_0x57053a;let _0x362099=_0x60e621[_0x5018fc(0x100)],_0x23a2ba=-0x1;for(let _0x2d5942=Math['min'](_0x273c75,_0x362099[_0x5018fc(0x15a)]-0x1);_0x2d5942>=0x0;_0x2d5942--){let _0x4ee60d=_0x362099[_0x2d5942];if(_0x4ee60d===_0x323fa8[_0x5018fc(0x152)])return;if(_0x4ee60d===_0x323fa8[_0x5018fc(0xf7)]){_0x23a2ba=_0x2d5942;break;}}if(_0x23a2ba<0x0)return;let _0x85965d=_0x362099[_0x5018fc(0xed)](_0x323fa8[_0x5018fc(0x152)],_0x23a2ba+0x1);if(!(_0x85965d<0x0||_0x273c75<_0x23a2ba+0x1||_0x273c75>_0x85965d-0x1))return{'startOffset':_0x23a2ba+0x1,'endOffset':Math['max'](_0x23a2ba+0x1,_0x85965d-0x1),'startTokenOffset':_0x23a2ba,'endTokenOffset':_0x85965d};}function M(_0x4695c7){const _0x4aee91=_0x57053a;return _0x261e87(_0x4695c7)[_0x4aee91(0x132)]-0x1;}function $e(_0x308567,_0x175c9d,_0x54b829,_0x4f3421){const _0x210a2c=_0x57053a;let _0x572d7c=M(_0x175c9d),_0x3eeeff=(_0x308567[_0x210a2c(0x149)]??[])[_0x210a2c(0x115)](_0x174a9b=>_0x174a9b[_0x210a2c(0x123)]===_0x572d7c+0x1);if(!_0x3eeeff||_0x4f3421!=null&&_0x3eeeff[_0x210a2c(0x123)]!==_0x4f3421||_0x54b829!=null&&(_0x54b829<_0x572d7c||_0x54b829>_0x3eeeff['startIndex']+0x1)||_0x308567[_0x210a2c(0x100)][_0x3eeeff['startIndex']]!==_0x323fa8[_0x210a2c(0x112)])return null;let _0x2b6898=_0xcc790f(_0x308567,_0x3eeeff),_0xc17952=_0x308567['dataStream'][_0x210a2c(0x10b)](_0x2b6898,_0x3eeeff[_0x210a2c(0x123)]);return Array[_0x210a2c(0x166)](_0xc17952)['every'](_0x388f18=>_0x388f18===_0x323fa8[_0x210a2c(0x137)])?{'paragraph':_0x3eeeff,'endTokenOffset':_0x572d7c}:null;}function N(_0x1b1bba,_0xeb6aa9){const _0x4cd1e4=_0x57053a;var _0x2de3a5;let _0x4c0d72=M(_0xeb6aa9),_0x456cd5=_0x1b1bba['dataStream'][_0x4c0d72+0x1];(_0x456cd5===_0x323fa8[_0x4cd1e4(0xfd)]||_0x456cd5===void 0x0)&&P(_0x1b1bba,_0x4c0d72+0x1,_0x323fa8[_0x4cd1e4(0x112)],{'paragraphs':[{'startIndex':0x0,'paragraphId':_0x876db1(new Set((_0x2de3a5=_0x1b1bba[_0x4cd1e4(0x149)])==null?void 0x0:_0x2de3a5[_0x4cd1e4(0x15b)](_0x614b0f=>_0x614b0f[_0x4cd1e4(0x12c)])))}]});}function P(_0x42a511,_0x328a9d,_0x1fb3d8,_0x59c03c={}){const _0x368357=_0x57053a;var _0x470c8f,_0x263f48;_0x1fb3d8&&(_0x42a511[_0x368357(0x100)]=''+_0x42a511[_0x368357(0x100)][_0x368357(0x10b)](0x0,_0x328a9d)+_0x1fb3d8+_0x42a511[_0x368357(0x100)][_0x368357(0x10b)](_0x328a9d),et(_0x42a511,_0x328a9d,_0x1fb3d8[_0x368357(0x15a)]),(_0x470c8f=_0x59c03c[_0x368357(0x149)])!=null&&_0x470c8f[_0x368357(0x15a)]&&(_0x42a511[_0x368357(0x149)]=[..._0x42a511[_0x368357(0x149)]??[],..._0x59c03c[_0x368357(0x149)][_0x368357(0x15b)](_0x54f1b0=>({..._0x54f1b0,'startIndex':_0x54f1b0['startIndex']+_0x328a9d}))][_0x368357(0x144)]((_0x191ed1,_0x5a0591)=>_0x191ed1[_0x368357(0x123)]-_0x5a0591['startIndex'])),(_0x263f48=_0x59c03c[_0x368357(0x13a)])!=null&&_0x263f48[_0x368357(0x15a)]&&(_0x42a511[_0x368357(0x13a)]=[..._0x42a511[_0x368357(0x13a)]??[],..._0x59c03c[_0x368357(0x13a)][_0x368357(0x15b)](_0x44360b=>({..._0x44360b,'startIndex':_0x44360b['startIndex']+_0x328a9d,'endIndex':_0x44360b[_0x368357(0x165)]+_0x328a9d}))][_0x368357(0x144)]((_0x14f85c,_0x298c67)=>_0x14f85c['startIndex']-_0x298c67['startIndex'])));}function F(_0x4e8df8,_0x1a210e,_0x3cceef){const _0x2d0d05=_0x57053a;let _0x45499f=_0x3cceef-_0x1a210e;_0x4e8df8[_0x2d0d05(0x100)]=''+_0x4e8df8[_0x2d0d05(0x100)][_0x2d0d05(0x10b)](0x0,_0x1a210e)+_0x4e8df8[_0x2d0d05(0x100)][_0x2d0d05(0x10b)](_0x3cceef),tt(_0x4e8df8,_0x1a210e,_0x45499f);}function et(_0x4969cb,_0x5760ee,_0x3f6add){const _0x51166e=_0x57053a;_0x4969cb[_0x51166e(0x149)]=I(_0x4969cb[_0x51166e(0x149)],_0x5760ee,_0x3f6add),_0x4969cb[_0x51166e(0x173)]=I(_0x4969cb['sectionBreaks'],_0x5760ee,_0x3f6add),_0x4969cb['customBlocks']=I(_0x4969cb['customBlocks'],_0x5760ee,_0x3f6add),_0x4969cb[_0x51166e(0x13f)]=nt(_0x4969cb[_0x51166e(0x13f)],_0x5760ee,_0x3f6add),_0x4969cb[_0x51166e(0x142)]=rt(_0x4969cb['tables'],_0x5760ee,_0x3f6add),_0x4969cb[_0x51166e(0x12e)]=R(_0x4969cb[_0x51166e(0x12e)],_0x5760ee,_0x3f6add),_0x4969cb[_0x51166e(0x11d)]=R(_0x4969cb['customRanges'],_0x5760ee,_0x3f6add),_0x4969cb['customDecorations']=R(_0x4969cb[_0x51166e(0x107)],_0x5760ee,_0x3f6add),_0x4969cb[_0x51166e(0x13a)]=R(_0x4969cb[_0x51166e(0x13a)],_0x5760ee,_0x3f6add);}function tt(_0x4920b0,_0x5df735,_0x2de80d){const _0x2e8772=_0x57053a;var _0xfa01c3,_0x50aa11;_0x4920b0[_0x2e8772(0x149)]=L(_0x4920b0[_0x2e8772(0x149)],_0x5df735,_0x2de80d),_0x4920b0[_0x2e8772(0x173)]=L(_0x4920b0[_0x2e8772(0x173)],_0x5df735,_0x2de80d),_0x4920b0[_0x2e8772(0xe5)]=L(_0x4920b0[_0x2e8772(0xe5)],_0x5df735,_0x2de80d),_0x4920b0[_0x2e8772(0x13f)]=(_0xfa01c3=it((_0x50aa11=_0x4920b0[_0x2e8772(0x13f)])==null?void 0x0:_0x50aa11[_0x2e8772(0x15b)](_0x43b94b=>({..._0x43b94b,'startIndex':_0x43b94b['st'],'endIndex':_0x43b94b['ed']})),_0x5df735,_0x2de80d))==null?void 0x0:_0xfa01c3[_0x2e8772(0x15b)](_0x4dab15=>{let {startIndex:_0x14a7a4,endIndex:_0x1b6232,..._0xd3ad66}=_0x4dab15;return{..._0xd3ad66,'st':_0x14a7a4,'ed':_0x1b6232};}),_0x4920b0[_0x2e8772(0x142)]=it(_0x4920b0[_0x2e8772(0x142)],_0x5df735,_0x2de80d),_0x4920b0['columnGroups']=z(_0x4920b0[_0x2e8772(0x12e)],_0x5df735,_0x2de80d),_0x4920b0['customRanges']=z(_0x4920b0[_0x2e8772(0x11d)],_0x5df735,_0x2de80d),_0x4920b0[_0x2e8772(0x107)]=z(_0x4920b0['customDecorations'],_0x5df735,_0x2de80d),_0x4920b0[_0x2e8772(0x13a)]=z(_0x4920b0[_0x2e8772(0x13a)],_0x5df735,_0x2de80d);}function I(_0x5e66e9,_0x51812c,_0x302bb1){const _0x57b5cd=_0x57053a;return _0x5e66e9==null?void 0x0:_0x5e66e9[_0x57b5cd(0x15b)](_0x3e9177=>_0x3e9177[_0x57b5cd(0x123)]>=_0x51812c?{..._0x3e9177,'startIndex':_0x3e9177[_0x57b5cd(0x123)]+_0x302bb1}:_0x3e9177);}function L(_0x31f118,_0x1fa887,_0x348d32){const _0x15f8a2=_0x57053a;let _0x4e32a7=_0x1fa887+_0x348d32;return _0x31f118==null?void 0x0:_0x31f118['map'](_0x15066c=>_0x15066c[_0x15f8a2(0x123)]>=_0x1fa887&&_0x15066c[_0x15f8a2(0x123)]<_0x4e32a7?null:_0x15066c['startIndex']>=_0x4e32a7?{..._0x15066c,'startIndex':_0x15066c[_0x15f8a2(0x123)]-_0x348d32}:_0x15066c)[_0x15f8a2(0x164)](_0x345129=>_0x345129!=null);}function nt(_0x1484a9,_0x26fd8a,_0x269725){const _0x1a30f0=_0x57053a;return _0x1484a9==null?void 0x0:_0x1484a9[_0x1a30f0(0x15b)](_0x283a99=>_0x283a99['st']>=_0x26fd8a?{..._0x283a99,'st':_0x283a99['st']+_0x269725,'ed':_0x283a99['ed']+_0x269725}:_0x283a99['ed']>_0x26fd8a?{..._0x283a99,'ed':_0x283a99['ed']+_0x269725}:_0x283a99);}function R(_0x28479a,_0x2589e9,_0x31a2cf){const _0x2ae7ef=_0x57053a;return _0x28479a==null?void 0x0:_0x28479a[_0x2ae7ef(0x15b)](_0x4a7e73=>_0x382399(_0x4a7e73,_0x2589e9,_0x31a2cf));}function rt(_0x5cc56c,_0x30fda5,_0x5852ff){return _0x5cc56c==null?void 0x0:_0x5cc56c['map'](_0x18c236=>_0x4e29ec(_0x18c236,_0x30fda5,_0x5852ff));}function z(_0x12cf30,_0x2ab36b,_0x29f401){return _0x12cf30==null?void 0x0:_0x12cf30['map'](_0x56604b=>_0x58cb39(_0x56604b,_0x2ab36b,_0x29f401))['filter'](_0x4d11ec=>_0x4d11ec!=null);}function _0x56e2(_0x50c15a,_0x5cc74a){_0x50c15a=_0x50c15a-0xe5;const _0x34b427=_0x34b4();let _0x56e2fd=_0x34b427[_0x50c15a];return _0x56e2fd;}function it(_0x2041cf,_0x5b26f8,_0x54bbef){const _0x5ec89c=_0x57053a;return _0x2041cf==null?void 0x0:_0x2041cf[_0x5ec89c(0x15b)](_0x4b4a4f=>_0x474d57(_0x4b4a4f,_0x5b26f8,_0x54bbef))[_0x5ec89c(0x164)](_0x441c6e=>_0x441c6e!=null);}const at={'id':_0x57053a(0xea),'type':_0x315486['COMMAND'],'handler':_0xdbee0b=>{const _0x5ac72a=_0x57053a;var _0x2dc43c;if(_0x2a1741(G(_0xdbee0b)))return!0x1;let _0x45da65=_0xbfd420(_0xdbee0b);if(_0x45da65)return _0xdbee0b['get'](_0x31742c)[_0x5ac72a(0xf6)](B['id'],{'startOffset':_0x45da65[_0x5ac72a(0x14c)],'endOffset':_0x45da65[_0x5ac72a(0x132)],'insertionMode':_0x5ac72a(0x170),'unitId':_0x45da65[_0x5ac72a(0xf9)]});let _0x4dd6f1=ft(_0xdbee0b);if(!_0x4dd6f1)return!0x1;let _0x9b11cd=(_0x2dc43c=_0xdbee0b['get'](_0x2889e4)['getCurrentUnitOfType'](_0x27b52e[_0x5ac72a(0xfe)]))==null?void 0x0:_0x2dc43c[_0x5ac72a(0x180)](),_0x1485e8=_0x9b11cd?_0xd671e9(_0x9b11cd,_0x4dd6f1):_0x4dd6f1['startIndex']+0x1;return _0xdbee0b[_0x5ac72a(0x17c)](_0x31742c)[_0x5ac72a(0xf6)](B['id'],{'startOffset':_0x1485e8,'endOffset':_0x1485e8});}},ot={'id':_0x57053a(0x135),'type':_0x315486[_0x57053a(0x136)],'handler':()=>!0x0},B={'id':_0x57053a(0xe8),'type':_0x315486[_0x57053a(0x136)],'handler':(_0x3be0ef,_0x1d8df6)=>{const _0x1ce80d=_0x57053a;let _0x18c771=W(_0x3be0ef,_0x1d8df6==null?void 0x0:_0x1d8df6[_0x1ce80d(0xf9)]);if(!_0x18c771)return!0x1;let _0x29fada=G(_0x3be0ef);if(_0x2a1741(_0x29fada))return!0x1;let _0x4a4ade=_0x18c771[_0x1ce80d(0xe7)]['serialize'](_0x18c771[_0x1ce80d(0xf9)]),_0x2e1a9f=lt(_0x1d8df6,_0x29fada),_0x265360=ut(_0x18c771[_0x1ce80d(0x11a)],_0x2e1a9f);if(_0x265360){if(_0x265360[_0x1ce80d(0x18b)]!==_0xbd26d4[_0x1ce80d(0x139)])return!0x1;let _0x35f222=D({'blockId':_0x265360[_0x1ce80d(0x126)],'documentData':_0x18c771[_0x1ce80d(0x11a)],'metadata':_0x4a4ade});if(!_0x35f222)return!0x1;let _0x30cd8a=Y(_0x18c771[_0x1ce80d(0x16c)],_0x18c771[_0x1ce80d(0x157)],_0x18c771[_0x1ce80d(0xf9)],_0x18c771[_0x1ce80d(0x11a)],_0x35f222[_0x1ce80d(0x151)],B['id'],_0x35f222[_0x1ce80d(0x10a)]);return _0x30cd8a&&_0x35f222['nextMetadata']&&_0x18c771[_0x1ce80d(0xe7)]['deserialize'](_0x18c771[_0x1ce80d(0xf9)],_0x35f222[_0x1ce80d(0x14f)]),_0x30cd8a;}let _0x2755f8=(_0x1d8df6==null?void 0x0:_0x1d8df6[_0x1ce80d(0x126)])??_0x53354e(0x6),_0x5cadfd;try{_0x5cadfd=De({'blockId':_0x2755f8,'config':_0x1d8df6==null?void 0x0:_0x1d8df6['config'],'documentData':_0x18c771[_0x1ce80d(0x11a)],'endOffset':_0x2e1a9f==null?void 0x0:_0x2e1a9f[_0x1ce80d(0x132)],'insertionMode':_0x1d8df6==null?void 0x0:_0x1d8df6[_0x1ce80d(0xf0)],'metadata':_0x4a4ade,'startOffset':_0x2e1a9f==null?void 0x0:_0x2e1a9f['startOffset']});}catch(_0x1c536f){if(_0x1c536f instanceof E)return!0x1;throw _0x1c536f;}let _0x498907=Y(_0x18c771[_0x1ce80d(0x16c)],_0x18c771[_0x1ce80d(0x157)],_0x18c771[_0x1ce80d(0xf9)],_0x18c771[_0x1ce80d(0x11a)],_0x5cadfd['nextDocumentData'],B['id'],_0x5cadfd[_0x1ce80d(0x10a)]);return _0x498907&&_0x5cadfd['nextMetadata']&&_0x18c771[_0x1ce80d(0xe7)][_0x1ce80d(0x169)](_0x18c771[_0x1ce80d(0xf9)],_0x5cadfd[_0x1ce80d(0x14f)]),_0x498907;}},st={'id':_0x57053a(0x17d),'type':_0x315486[_0x57053a(0x136)],'handler':(_0x28c912,_0x1074d6)=>{const _0x39a4d8=_0x57053a;if(!_0x1074d6)return!0x1;let _0x122617=W(_0x28c912,_0x1074d6[_0x39a4d8(0xf9)]);if(!_0x122617)return!0x1;let _0x1b658b=je({'blockId':_0x1074d6[_0x39a4d8(0x126)],'config':_0x1074d6[_0x39a4d8(0x161)],'documentData':_0x122617['previousDocumentData'],'metadata':_0x122617['model'][_0x39a4d8(0x116)](_0x122617[_0x39a4d8(0xf9)])});return _0x1b658b[_0x39a4d8(0x14f)]&&_0x122617[_0x39a4d8(0xe7)][_0x39a4d8(0x169)](_0x122617[_0x39a4d8(0xf9)],_0x1b658b['nextMetadata']),!0x0;}},ct={'id':'docs-code.command.exit','type':_0x315486[_0x57053a(0x136)],'handler':(_0x154db4,_0xd48fcf)=>V[_0x57053a(0x117)](_0x154db4,_0xd48fcf)},V={'id':_0x57053a(0x159),'type':_0x315486['COMMAND'],'handler':(_0x57caf8,_0x1b740c)=>{const _0x2bbae8=_0x57053a;if(!_0x1b740c)return!0x1;let _0xe76109=W(_0x57caf8,_0x1b740c==null?void 0x0:_0x1b740c[_0x2bbae8(0xf9)]);if(!_0xe76109)return!0x1;let _0xa98e26=D({'blockId':_0x1b740c[_0x2bbae8(0x126)],'documentData':_0xe76109[_0x2bbae8(0x11a)],'metadata':_0xe76109[_0x2bbae8(0xe7)][_0x2bbae8(0x116)](_0xe76109[_0x2bbae8(0xf9)])});if(!_0xa98e26)return!0x1;let _0x246847=Y(_0xe76109[_0x2bbae8(0x16c)],_0xe76109['selectionManager'],_0xe76109[_0x2bbae8(0xf9)],_0xe76109[_0x2bbae8(0x11a)],_0xa98e26['nextDocumentData'],V['id'],_0xa98e26[_0x2bbae8(0x10a)]);return _0x246847&&_0xa98e26[_0x2bbae8(0x14f)]&&_0xe76109[_0x2bbae8(0xe7)][_0x2bbae8(0x169)](_0xe76109['unitId'],_0xa98e26[_0x2bbae8(0x14f)]),_0x246847;}},H={'id':'docs-code.command.remove','type':_0x315486[_0x57053a(0x136)],'handler':(_0xd36940,_0x23a648)=>{const _0x4709bf=_0x57053a;if(!_0x23a648)return!0x1;let _0x36df74=W(_0xd36940,_0x23a648==null?void 0x0:_0x23a648['unitId']);if(!_0x36df74)return!0x1;let _0x5c544b=Me({'blockId':_0x23a648['blockId'],'documentData':_0x36df74[_0x4709bf(0x11a)],'metadata':_0x36df74['model'][_0x4709bf(0x116)](_0x36df74[_0x4709bf(0xf9)])});if(!_0x5c544b)return!0x1;let _0x19bec9=Y(_0x36df74[_0x4709bf(0x16c)],_0x36df74[_0x4709bf(0x157)],_0x36df74[_0x4709bf(0xf9)],_0x36df74[_0x4709bf(0x11a)],_0x5c544b[_0x4709bf(0x151)],H['id'],_0x5c544b[_0x4709bf(0x10a)]);return _0x19bec9&&_0x5c544b['nextMetadata']&&_0x36df74[_0x4709bf(0xe7)]['deserialize'](_0x36df74[_0x4709bf(0xf9)],_0x5c544b[_0x4709bf(0x14f)]),_0x19bec9;}},U={'id':_0x57053a(0x108),'type':_0x315486[_0x57053a(0x136)],'handler':(_0x25086a,_0x3c9e68)=>{const _0x1e681=_0x57053a;var _0x5e896d;let _0x9d576=W(_0x25086a,_0x3c9e68==null?void 0x0:_0x3c9e68[_0x1e681(0xf9)]);if(!_0x9d576)return!0x1;let _0x8132fc=(_0x3c9e68==null?void 0x0:_0x3c9e68[_0x1e681(0x10a)])??((_0x5e896d=G(_0x25086a))==null?void 0x0:_0x5e896d[_0x1e681(0x14c)]);if(_0x8132fc==null)return!0x1;let _0x114b58=Ne({'cursorOffset':_0x8132fc,'documentData':_0x9d576[_0x1e681(0x11a)],'paragraphStartIndex':_0x3c9e68==null?void 0x0:_0x3c9e68['paragraphStartIndex']});return _0x114b58?Y(_0x9d576['commandService'],_0x9d576[_0x1e681(0x157)],_0x9d576[_0x1e681(0xf9)],_0x9d576[_0x1e681(0x11a)],_0x114b58[_0x1e681(0x151)],U['id'],_0x114b58[_0x1e681(0x10a)]):!0x1;}};function W(_0x228eb2,_0x3598b2){const _0x2c1aa5=_0x57053a;let _0x5967ff=_0x228eb2[_0x2c1aa5(0x17c)](_0x2889e4),_0x4a5e95=_0x3598b2?_0x5967ff[_0x2c1aa5(0x12f)](_0x3598b2,_0x27b52e['UNIVER_DOC']):_0x5967ff[_0x2c1aa5(0x15f)](_0x27b52e[_0x2c1aa5(0xfe)]);return _0x4a5e95?{'commandService':_0x228eb2['get'](_0x31742c),'model':_0x228eb2[_0x2c1aa5(0x17c)](w),'previousDocumentData':_0x4a5e95[_0x2c1aa5(0x106)](),'selectionManager':_0x228eb2[_0x2c1aa5(0x17c)](_0x17b7d0),'unitId':_0x4a5e95[_0x2c1aa5(0x16d)]()}:null;}function G(_0x55b130){const _0xb1a365=_0x57053a;var _0x2da5c3;return(_0x2da5c3=_0x55b130[_0xb1a365(0x17c)](_0x17b7d0)[_0xb1a365(0x104)]())==null?void 0x0:_0x2da5c3[0x0];}function lt(_0x326547,_0x2857ab){const _0x335e91=_0x57053a;let _0x4d6221=(_0x326547==null?void 0x0:_0x326547[_0x335e91(0x14c)])??(_0x2857ab==null?void 0x0:_0x2857ab[_0x335e91(0x14c)]),_0x3afb25=(_0x326547==null?void 0x0:_0x326547['endOffset'])??(_0x2857ab==null?void 0x0:_0x2857ab['endOffset']);if(_0x4d6221!=null&&_0x3afb25!=null)return{'endOffset':Math[_0x335e91(0xfa)](_0x4d6221,_0x3afb25),'startOffset':Math[_0x335e91(0x181)](_0x4d6221,_0x3afb25)};}function ut(_0x6b6a27,_0x36c086){const _0x424148=_0x57053a;var _0x4dc2e8;if(!_0x36c086)return;let _0x4eb577=dt(_0x36c086);return(_0x4dc2e8=_0x6b6a27['body'])==null||(_0x4dc2e8=_0x4dc2e8[_0x424148(0x13a)])==null?void 0x0:_0x4dc2e8[_0x424148(0x115)](_0x5016a5=>{const _0x26cc52=_0x424148;let _0xe0b36d=_0x261e87(_0x5016a5);return _0x36c086[_0x26cc52(0x14c)]===_0x36c086['endOffset']?_0x33b8d6(_0xe0b36d,_0x4eb577):_0x1919fa(_0xe0b36d,_0x4eb577);});}function dt(_0x7170ea){const _0x35f175=_0x57053a;return _0x7170ea['startOffset']===_0x7170ea[_0x35f175(0x132)]?_0x7170ea[_0x35f175(0x14c)]:_0x7170ea[_0x35f175(0x14c)]+0x1;}function ft(_0x3d20e3){const _0x2446bb=_0x57053a;let _0x5b3d1e=G(_0x3d20e3);if(!_0x5b3d1e)return null;let _0x37a363=_0x3d20e3[_0x2446bb(0x17c)](_0x2889e4)['getCurrentUnitOfType'](_0x27b52e[_0x2446bb(0xfe)]),_0x24fd7f=_0x37a363==null?void 0x0:_0x37a363[_0x2446bb(0x180)]();return _0x24fd7f?_0x2575ad[_0x2446bb(0x185)][_0x2446bb(0x131)](_0x5b3d1e,_0x24fd7f[_0x2446bb(0x149)]??[],_0x24fd7f[_0x2446bb(0x100)]??'')[0x0]??null:null;}function pt(_0x3e20e8,_0x4dae35){const _0x295bf8=_0x57053a;let _0x555946=_0x3e20e8['body'],_0x491415=_0x4dae35[_0x295bf8(0x148)],_0xe4abfb=_0x24c61a(_0x555946,_0x491415);return[_0xe4abfb&&_0x491415?mt(_0x491415,_0xe4abfb):null,_0xe4abfb?null:ht(_0x555946,_0x491415)][_0x295bf8(0x164)](Boolean)[_0x295bf8(0x141)]((_0x10a2be,_0x585f37)=>_0x286f05[_0x295bf8(0xe6)](_0x10a2be,_0x585f37),null);}function mt(_0x10a501,_0x5ce0c9){const _0x57c4cc=_0x57053a;let _0x4f409e=new _0x1b4382();return _0x4f409e[_0x57c4cc(0x150)](_0x5ce0c9['start']),_0x5ce0c9[_0x57c4cc(0x111)]>0x0&&_0x4f409e[_0x57c4cc(0x143)](_0x5ce0c9[_0x57c4cc(0x111)],_0x1d577d(_0x10a501,_0x5ce0c9['start'],_0x5ce0c9[_0x57c4cc(0x15e)]+_0x5ce0c9[_0x57c4cc(0x111)],!0x1)),_0x5ce0c9[_0x57c4cc(0x13b)]>0x0&&_0x4f409e[_0x57c4cc(0x188)](_0x5ce0c9['deleteLength']),_0x286f05[_0x57c4cc(0x186)]()['editOp'](_0x4f409e[_0x57c4cc(0x116)](),[_0x57c4cc(0x148)]);}function ht(_0x39ece7,_0x60cb7){const _0x218a39=_0x57053a;let _0x3acdb6=[],_0x478213=_0x39ece7?_t(_0x39ece7):void 0x0,_0x3d4e27=_0x60cb7?_t(_0x60cb7):void 0x0;for(let _0xbde45 of gt)K(_0x286f05[_0x218a39(0x186)](),['body',_0xbde45],_0x478213==null?void 0x0:_0x478213[_0xbde45],_0x3d4e27==null?void 0x0:_0x3d4e27[_0xbde45],_0x3acdb6);return _0x3acdb6[_0x218a39(0x141)]((_0x4f7d7c,_0x58ed70)=>_0x286f05['compose'](_0x4f7d7c,_0x58ed70),null);}const gt=['paragraphs',_0x57053a(0x173),_0x57053a(0x142),_0x57053a(0x12e),'blockRanges',_0x57053a(0xe5),_0x57053a(0x11d),_0x57053a(0x107),'textRuns'];function _t(_0x5bbc09){return _0x5bbc09;}function K(_0x1d0e21,_0xc9dd87,_0x4eae9c,_0x130c86,_0xa36b6a){const _0x466fde=_0x57053a;J(_0x4eae9c,_0x130c86)||(_0x4eae9c==null?_0xa36b6a[_0x466fde(0x177)](_0x1d0e21[_0x466fde(0x160)](_0xc9dd87,_0x130c86)):_0x130c86==null?_0xa36b6a[_0x466fde(0x177)](_0x1d0e21[_0x466fde(0x102)](_0xc9dd87,_0x4eae9c)):Array[_0x466fde(0x127)](_0x4eae9c)&&Array[_0x466fde(0x127)](_0x130c86)?vt(_0x1d0e21,_0xc9dd87,_0x4eae9c,_0x130c86,_0xa36b6a):q(_0x4eae9c)&&q(_0x130c86)?new Set([...Object[_0x466fde(0xf1)](_0x4eae9c),...Object[_0x466fde(0xf1)](_0x130c86)])[_0x466fde(0x129)](_0xb778ff=>{K(_0x1d0e21,[..._0xc9dd87,_0xb778ff],_0x4eae9c[_0xb778ff],_0x130c86[_0xb778ff],_0xa36b6a);}):_0xa36b6a[_0x466fde(0x177)](_0x1d0e21[_0x466fde(0x168)](_0xc9dd87,_0x4eae9c,_0x130c86)));}function vt(_0x101347,_0x37e368,_0x28c24b,_0x77a7,_0x82f539){const _0x4d9a70=_0x57053a;if(_0x28c24b[_0x4d9a70(0x15a)]===_0x77a7['length']){_0x28c24b['forEach']((_0x11d396,_0x2fab75)=>K(_0x101347,[..._0x37e368,_0x2fab75],_0x11d396,_0x77a7[_0x2fab75],_0x82f539));return;}let _0x238c0f=0x0;for(;_0x238c0f<_0x28c24b[_0x4d9a70(0x15a)]&&_0x238c0f<_0x77a7['length']&&J(_0x28c24b[_0x238c0f],_0x77a7[_0x238c0f]);)_0x238c0f++;let _0x2095fb=_0x28c24b[_0x4d9a70(0x15a)]-0x1,_0x970dd1=_0x77a7[_0x4d9a70(0x15a)]-0x1;for(;_0x2095fb>=_0x238c0f&&_0x970dd1>=_0x238c0f&&J(_0x28c24b[_0x2095fb],_0x77a7[_0x970dd1]);)_0x2095fb--,_0x970dd1--;for(let _0x35e626=_0x2095fb;_0x35e626>=_0x238c0f;_0x35e626--)_0x82f539[_0x4d9a70(0x177)](_0x101347[_0x4d9a70(0x102)]([..._0x37e368,_0x35e626],_0x28c24b[_0x35e626]));for(let _0x4bf783=_0x238c0f;_0x4bf783<=_0x970dd1;_0x4bf783++)_0x82f539['push'](_0x101347[_0x4d9a70(0x160)]([..._0x37e368,_0x4bf783],_0x77a7[_0x4bf783]));}function q(_0x254fef){const _0x2f7cdd=_0x57053a;return typeof _0x254fef==_0x2f7cdd(0x109)&&!!_0x254fef&&!Array['isArray'](_0x254fef);}function _0x34b4(){const _0xd06a09=['insert','sort','Document\x20body\x20is\x20required','registerPluginResource','version','body','paragraphs','documentData','6653148rxGngY','startOffset','monospace','2CJhEFm','nextMetadata','retain','nextDocumentData','TABLE_CELL_END','clear','decorate','packageName','spaceAbove','selectionManager','TRUE','docs-code.command.unwrap','length','map','paragraph','50vnQTnO','start','getCurrentUnitOfType','insertOp','config','_commandService','entries','filter','endIndex','from','dispose','replaceOp','deserialize','asObservable','218380pdDkev','commandService','getUnitId','keepNext','set','insert-new','startTokenOffset','indentStart','sectionBreaks','_injector','_resourceManagerService','string','push','keepLines','onStarting','removeUnit','_resources','get','docs-code.command.update','default','Insert\x20range\x20cannot\x20cross\x20table\x20cell\x20boundaries','getBody','min','getCodeConfig','stringify','Insert\x20range\x20cannot\x20overlap\x20an\x20existing\x20document\x20block','range','getInstance','paragraphStyle','delete','indentEnd','_change$','blockType','customBlocks','compose','model','docs-code.command.insert','call','docs-code.command.insert-below','function','defineProperty','indexOf','docs-code.mutation.set-config','next','insertionMode','keys','some','@univerjs-pro/docs-code','javascript','direction','syncExecuteCommand','TABLE_CELL_START','paragraphStartIndex','unitId','max','4178752qjfqEa','190528SGahHo','SECTION_BREAK','UNIVER_DOC','_config','dataStream','docs-code.config','removeOp','4435986iKoncn','getTextRanges','prototype','getSnapshot','customDecorations','docs-code.command.cancel-empty-paragraph','object','cursorOffset','slice','codes','add','left','endTokenOffset','metadata','insertLength','PARAGRAPH','docs-code.mutation.remove-config','removeCode','find','serialize','handler','setConfig','disposeWithMe','previousDocumentData','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','spaceBelow','customRanges','BLOCK_START','columns','registerCommand','DOC_CODE_PLUGIN','1.4.0','startIndex','textStyle','pluginName','blockId','isArray','_initResource','forEach','6191885eUWmKE','17190837zsbfju','paragraphId','setCodeConfig','columnGroups','getUnit','symbol','getParagraphsInRange','endOffset','toPrimitive','endsWith','docs-code.command.consume-boundary-delete','COMMAND','BLOCK_END','type','CODE','blockRanges','deleteLength','parse','_docsCodeModel','_setResource','textRuns','_configService','reduce','tables'];_0x34b4=function(){return _0xd06a09;};return _0x34b4();}function J(_0x9f1d6b,_0x254f31){const _0x1bb474=_0x57053a;return JSON[_0x1bb474(0x183)](_0x9f1d6b)===JSON[_0x1bb474(0x183)](_0x254f31);}function Y(_0xd05e23,_0x22495b,_0x245ad2,_0x165cd1,_0x5ca711,_0xa56a86,_0x396198){const _0x5897ca=_0x57053a;let _0x2f4293=pt(_0x165cd1,_0x5ca711);return _0x2f4293?!!_0xd05e23[_0x5897ca(0xf6)](_0x4c6056['id'],{'unitId':_0x245ad2,'actions':_0x2f4293,'textRanges':[{'startOffset':_0x396198,'endOffset':_0x396198,'collapsed':!0x0}],'isEditing':!0x1,'trigger':_0xa56a86}):(_0x22495b['replaceDocRanges']([{'startOffset':_0x396198,'endOffset':_0x396198}],{'unitId':_0x245ad2,'subUnitId':_0x245ad2},!0x1),!0x0);}const X=_0x57053a(0x121);var yt=_0x57053a(0xf3),bt=_0x57053a(0x122);const xt={};function Z(_0x540426,_0x252153){return function(_0x379fba,_0x159a62){_0x252153(_0x379fba,_0x159a62,_0x540426);};}function St(_0x5ceff1,_0x1deb99,_0x43afa0,_0x465261){const _0x43e54d=_0x57053a;var _0x21dee7=arguments[_0x43e54d(0x15a)],_0x5b69af=_0x21dee7<0x3?_0x1deb99:_0x465261===null?_0x465261=Object['getOwnPropertyDescriptor'](_0x1deb99,_0x43afa0):_0x465261,_0xe7ff34;if(typeof Reflect==_0x43e54d(0x109)&&typeof Reflect[_0x43e54d(0x154)]=='function')_0x5b69af=Reflect['decorate'](_0x5ceff1,_0x1deb99,_0x43afa0,_0x465261);else{for(var _0x45cce8=_0x5ceff1[_0x43e54d(0x15a)]-0x1;_0x45cce8>=0x0;_0x45cce8--)(_0xe7ff34=_0x5ceff1[_0x45cce8])&&(_0x5b69af=(_0x21dee7<0x3?_0xe7ff34(_0x5b69af):_0x21dee7>0x3?_0xe7ff34(_0x1deb99,_0x43afa0,_0x5b69af):_0xe7ff34(_0x1deb99,_0x43afa0))||_0x5b69af);}return _0x21dee7>0x3&&_0x5b69af&&Object['defineProperty'](_0x1deb99,_0x43afa0,_0x5b69af),_0x5b69af;}let Q=class extends _0x450405{constructor(_0x5469e0,_0xef7031){const _0x1d3f3b=_0x57053a;super(),this['_resourceManagerService']=_0x5469e0,this[_0x1d3f3b(0x13d)]=_0xef7031,this['_initResource']();}[_0x57053a(0x128)](){const _0x4a4677=_0x57053a;this[_0x4a4677(0x119)](this[_0x4a4677(0x175)][_0x4a4677(0x146)]({'pluginName':X,'businesses':[_0x27b52e[_0x4a4677(0xfe)]],'toJson':_0x5edad2=>JSON['stringify'](this[_0x4a4677(0x13d)][_0x4a4677(0x116)](_0x5edad2)),'parseJson':_0x5dba6b=>y(JSON[_0x4a4677(0x13c)](_0x5dba6b)),'onLoad':(_0x215b44,_0x5c0e95)=>this[_0x4a4677(0x13d)][_0x4a4677(0x169)](_0x215b44,_0x5c0e95),'onUnLoad':_0x55cd8b=>this[_0x4a4677(0x13d)][_0x4a4677(0x17a)](_0x55cd8b)}));}};Q=St([Z(0x0,_0x52c202),Z(0x1,_0x5b34a9(w))],Q);let $=class extends _0x421146{constructor(_0x5630b1=xt,_0x363bbc,_0x1b2081,_0x3065a1){const _0x311070=_0x57053a;super(),this['_config']=_0x5630b1,this[_0x311070(0x174)]=_0x363bbc,this[_0x311070(0x162)]=_0x1b2081,this[_0x311070(0x140)]=_0x3065a1;let {..._0x464ee8}=_0x3d1bfe({},xt,this[_0x311070(0xff)]);this[_0x311070(0x140)][_0x311070(0x118)](_0x311070(0x101),_0x464ee8);}[_0x57053a(0x179)](){const _0x27a262=_0x57053a;this[_0x27a262(0x174)][_0x27a262(0x10d)]([w]),this['_injector'][_0x27a262(0x10d)]([Q]),this[_0x27a262(0x174)][_0x27a262(0x17c)](w),this['_injector'][_0x27a262(0x17c)](Q),[B,at,st,V,H,ct,U,ot,Te,T][_0x27a262(0x129)](_0x150b1f=>this[_0x27a262(0x119)](this[_0x27a262(0x162)][_0x27a262(0x120)](_0x150b1f)));}};C($,_0x57053a(0x125),X),C($,_0x57053a(0x155),yt),C($,_0x57053a(0x147),bt),C($,_0x57053a(0x138),_0x27b52e['UNIVER_DOC']),$=St([_0x3f0dd1(_0xbf8067,_0x55e803),Z(0x1,_0x5b34a9(_0x25ae8a)),Z(0x2,_0x31742c),Z(0x3,_0x46b4a8)],$);export{X as DOCS_CODE_PLUGIN,U as DocsCodeCancelEmptyParagraphCommand,ot as DocsCodeConsumeBoundaryDeleteCommand,at as DocsCodeInsertBelowCommand,B as DocsCodeInsertCommand,w as DocsCodeModel,H as DocsCodeRemoveCommand,V as DocsCodeUnwrapCommand,st as DocsCodeUpdateCommand,T as RemoveDocsCodeConfigMutation,Te as SetDocsCodeConfigMutation,$ as UniverDocsCodePlugin,Ne as buildCancelEmptyCodeParagraphActions,Ie as isCodeBoundaryDelete,v as normalizeDocsCodeConfig,y as normalizeDocsCodeMetadataResource};
package/lib/facade.js CHANGED
@@ -1 +1 @@
1
- var _0x523619=_0x3e77;function _0x273d(){var _0x523f53=['15656mvVdiS','find','replace','defineProperty','function','filter','_unitId','CODE','3LhfaaV','_injector','body','endIndex','getText','remove','slice','8488578etzGfD','_blockId','_document','SECTION_BREAK','extend','blockId','config','includes','findCodeByText','2621020gSPome','getCodeAt','getCodeConfig','getId','constructor','10PxHSAd','map','_getBlockRange','from','prototype','7KLoOsw','getRange','iterator','BLOCK_START','default','insertCode','_getDocumentData','8699273NUgBsH','888288fBJPci','unwrap','call','5097752SEzUWm','decorate','BLOCK_END','startIndex','get','describe','_getBlockRanges','toPrimitive','_createFDocumentCode','622666mMSqVf','4239YXFynn','some','save','getConfig','text','object','updateConfig','getCodes','blockRanges','createInstance','blockType','string','getCode','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','symbol','syncExecuteCommand'];_0x273d=function(){return _0x523f53;};return _0x273d();}(function(_0x335eb2,_0x65d4a4){var _0x9e8b56=_0x3e77,_0x562101=_0x335eb2();while(!![]){try{var _0x201c67=parseInt(_0x9e8b56(0x178))/0x1+parseInt(_0x9e8b56(0x184))/0x2+parseInt(_0x9e8b56(0x156))/0x3*(-parseInt(_0x9e8b56(0x17b))/0x4)+parseInt(_0x9e8b56(0x166))/0x5+parseInt(_0x9e8b56(0x15d))/0x6*(-parseInt(_0x9e8b56(0x170))/0x7)+-parseInt(_0x9e8b56(0x14e))/0x8*(-parseInt(_0x9e8b56(0x185))/0x9)+-parseInt(_0x9e8b56(0x16b))/0xa*(-parseInt(_0x9e8b56(0x177))/0xb);if(_0x201c67===_0x65d4a4)break;else _0x562101['push'](_0x562101['shift']());}catch(_0x42a83b){_0x562101['push'](_0x562101['shift']());}}}(_0x273d,0xb66ce));import{DocsCodeInsertCommand as _0x1084c1,DocsCodeModel as _0x1795d6,DocsCodeRemoveCommand as _0x388fa1,DocsCodeUnwrapCommand as _0x5d55d7,DocsCodeUpdateCommand as _0x37caab,normalizeDocsCodeConfig as _0x5d2e3b}from'@univerjs-pro/docs-code';import{DataStreamTreeTokenType as _0xe08ab3,DocumentBlockRangeType as _0x1a5759,ICommandService as _0x55e8a6,Inject as _0x352200,Injector as _0x491548,generateRandomId as _0x535c1d}from'@univerjs/core';import{FDocument as _0x5dacc6,isParagraphFacade as _0x3dd811}from'@univerjs/docs/facade';function m(_0x4111a0){'@babel/helpers - typeof';var _0x563b17=_0x3e77;return m=typeof Symbol=='function'&&typeof Symbol[_0x563b17(0x172)]==_0x563b17(0x14c)?function(_0x28e975){return typeof _0x28e975;}:function(_0x42fb57){var _0x561bc2=_0x563b17;return _0x42fb57&&typeof Symbol==_0x561bc2(0x152)&&_0x42fb57[_0x561bc2(0x16a)]===Symbol&&_0x42fb57!==Symbol[_0x561bc2(0x16f)]?'symbol':typeof _0x42fb57;},m(_0x4111a0);}function h(_0x3c2f8c,_0x1b68db){var _0x53a937=_0x3e77;if(m(_0x3c2f8c)!=_0x53a937(0x143)||!_0x3c2f8c)return _0x3c2f8c;var _0x2be133=_0x3c2f8c[Symbol[_0x53a937(0x182)]];if(_0x2be133!==void 0x0){var _0x137533=_0x2be133[_0x53a937(0x17a)](_0x3c2f8c,_0x1b68db||_0x53a937(0x174));if(m(_0x137533)!=_0x53a937(0x143))return _0x137533;throw TypeError(_0x53a937(0x14b));}return(_0x1b68db===_0x53a937(0x149)?String:Number)(_0x3c2f8c);}function g(_0x1be631){var _0x5ad09f=h(_0x1be631,'string');return m(_0x5ad09f)=='symbol'?_0x5ad09f:_0x5ad09f+'';}function _(_0x589346,_0x9f4f2f,_0x17b56b){var _0x56be00=_0x3e77;return(_0x9f4f2f=g(_0x9f4f2f))in _0x589346?Object[_0x56be00(0x151)](_0x589346,_0x9f4f2f,{'value':_0x17b56b,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x589346[_0x9f4f2f]=_0x17b56b,_0x589346;}function v(_0x8347f5,_0x32761b){return function(_0x2b6eba,_0x140e4b){_0x32761b(_0x2b6eba,_0x140e4b,_0x8347f5);};}function y(_0x917fa5,_0x3e0a75,_0x5db6d9,_0x200c18){var _0x452aa2=_0x3e77,_0x469f3f=arguments['length'],_0x4c9071=_0x469f3f<0x3?_0x3e0a75:_0x200c18===null?_0x200c18=Object['getOwnPropertyDescriptor'](_0x3e0a75,_0x5db6d9):_0x200c18,_0xdefea2;if(typeof Reflect=='object'&&typeof Reflect[_0x452aa2(0x17c)]=='function')_0x4c9071=Reflect[_0x452aa2(0x17c)](_0x917fa5,_0x3e0a75,_0x5db6d9,_0x200c18);else{for(var _0x23dc93=_0x917fa5['length']-0x1;_0x23dc93>=0x0;_0x23dc93--)(_0xdefea2=_0x917fa5[_0x23dc93])&&(_0x4c9071=(_0x469f3f<0x3?_0xdefea2(_0x4c9071):_0x469f3f>0x3?_0xdefea2(_0x3e0a75,_0x5db6d9,_0x4c9071):_0xdefea2(_0x3e0a75,_0x5db6d9))||_0x4c9071);}return _0x469f3f>0x3&&_0x4c9071&&Object[_0x452aa2(0x151)](_0x3e0a75,_0x5db6d9,_0x4c9071),_0x4c9071;}let b=class{constructor(_0x249e1f,_0x80a068,_0x2150fe){var _0x97f0c8=_0x3e77;this['_document']=_0x249e1f,this[_0x97f0c8(0x15e)]=_0x80a068,this[_0x97f0c8(0x157)]=_0x2150fe,_(this,'_unitId',void 0x0),this[_0x97f0c8(0x154)]=this[_0x97f0c8(0x15f)][_0x97f0c8(0x169)]();}['getId'](){var _0x57ef20=_0x3e77;return this[_0x57ef20(0x15e)];}['getRange'](){var _0x349ee2=_0x3e77;let _0x3b5498=this['_getBlockRange']();return _0x3b5498?{'blockId':_0x3b5498['blockId'],'endIndex':_0x3b5498[_0x349ee2(0x159)],'startIndex':_0x3b5498['startIndex']}:null;}['getText'](){var _0xe8ffa5=_0x3e77,_0x39733d;let _0x1dc5a4=this['_getBlockRange'](),_0x305235=(_0x39733d=this['_getDocumentData']()[_0xe8ffa5(0x158)])==null?void 0x0:_0x39733d['dataStream'];return!_0x1dc5a4||!_0x305235?'':x(_0x305235[_0xe8ffa5(0x15c)](_0x1dc5a4[_0xe8ffa5(0x17e)]+0x1,_0x1dc5a4[_0xe8ffa5(0x159)]));}[_0x523619(0x180)](){var _0x25ce3f=_0x523619;let _0x572501=this[_0x25ce3f(0x171)]();return _0x572501?{..._0x572501,'config':this[_0x25ce3f(0x141)](),'text':this['getText'](),'type':_0x1a5759['CODE']}:null;}['getConfig'](){var _0x25bf1f=_0x523619;let _0x126f12=this[_0x25bf1f(0x157)][_0x25bf1f(0x17f)](_0x1795d6);return _0x5d2e3b(_0x126f12[_0x25bf1f(0x168)](this[_0x25bf1f(0x154)],this[_0x25bf1f(0x15e)]));}[_0x523619(0x144)](_0xd0d1ba){var _0x3b3774=_0x523619;return this[_0x3b3774(0x157)][_0x3b3774(0x17f)](_0x55e8a6)[_0x3b3774(0x14d)](_0x37caab['id'],{'blockId':this[_0x3b3774(0x15e)],'config':_0xd0d1ba[_0x3b3774(0x163)],'unitId':this[_0x3b3774(0x154)]});}[_0x523619(0x179)](){var _0x4095b0=_0x523619;return this['_injector']['get'](_0x55e8a6)['syncExecuteCommand'](_0x5d55d7['id'],{'blockId':this[_0x4095b0(0x15e)],'unitId':this[_0x4095b0(0x154)]});}[_0x523619(0x15b)](){var _0x4a1189=_0x523619;return this['_injector'][_0x4a1189(0x17f)](_0x55e8a6)[_0x4a1189(0x14d)](_0x388fa1['id'],{'blockId':this[_0x4a1189(0x15e)],'unitId':this[_0x4a1189(0x154)]});}[_0x523619(0x16d)](){var _0x59b8e8=_0x523619,_0x19e168;return((_0x19e168=this[_0x59b8e8(0x176)]()[_0x59b8e8(0x158)])==null||(_0x19e168=_0x19e168[_0x59b8e8(0x146)])==null?void 0x0:_0x19e168[_0x59b8e8(0x14f)](_0x1cc644=>_0x1cc644[_0x59b8e8(0x162)]===this[_0x59b8e8(0x15e)]&&_0x1cc644[_0x59b8e8(0x148)]===_0x1a5759[_0x59b8e8(0x155)]))??null;}[_0x523619(0x176)](){var _0x308cab=_0x523619;return this['_document'][_0x308cab(0x187)]();}};b=y([v(0x2,_0x352200(_0x491548))],b);function _0x3e77(_0x8ff20b,_0xa1f21d){_0x8ff20b=_0x8ff20b-0x141;var _0x273dcc=_0x273d();var _0x3e77d2=_0x273dcc[_0x8ff20b];return _0x3e77d2;}function x(_0xaa9811){var _0x7b1757=_0x523619;return Array[_0x7b1757(0x16e)](_0xaa9811)[_0x7b1757(0x16c)](_0x4c79d4=>_0x4c79d4===_0xe08ab3['PARAGRAPH']?'\x0a':_0x4c79d4)['filter'](_0x2e89ba=>_0x2e89ba!==_0xe08ab3[_0x7b1757(0x173)]&&_0x2e89ba!==_0xe08ab3[_0x7b1757(0x17d)]&&_0x2e89ba!==_0xe08ab3[_0x7b1757(0x160)])['join']('')[_0x7b1757(0x150)](/\n$/,'');}var S=class extends _0x5dacc6{[_0x523619(0x145)](){var _0x1c31c3=_0x523619;return this['_getBlockRanges']()[_0x1c31c3(0x153)](_0x4701e5=>_0x4701e5[_0x1c31c3(0x148)]===_0x1a5759['CODE'])[_0x1c31c3(0x16c)](_0x2d2585=>this[_0x1c31c3(0x183)](_0x2d2585[_0x1c31c3(0x162)]));}[_0x523619(0x14a)](_0x4f9c6e){var _0x1a3f5b=_0x523619;return this[_0x1a3f5b(0x181)]()[_0x1a3f5b(0x186)](_0x31a680=>_0x31a680[_0x1a3f5b(0x162)]===_0x4f9c6e&&_0x31a680[_0x1a3f5b(0x148)]===_0x1a5759[_0x1a3f5b(0x155)])?this[_0x1a3f5b(0x183)](_0x4f9c6e):null;}[_0x523619(0x167)](_0x3ab4f4){var _0x1837da=_0x523619;let _0x1912b7=this[_0x1837da(0x181)]()[_0x1837da(0x14f)](_0x4d6e7f=>_0x4d6e7f[_0x1837da(0x148)]===_0x1a5759[_0x1837da(0x155)]&&_0x4d6e7f[_0x1837da(0x17e)]<=_0x3ab4f4&&_0x3ab4f4<=_0x4d6e7f['endIndex']);return _0x1912b7?this[_0x1837da(0x183)](_0x1912b7[_0x1837da(0x162)]):null;}[_0x523619(0x165)](_0x3555cb){return this['findCodes'](_0x3555cb)[0x0]??null;}['findCodes'](_0x96085c){var _0x180fb6=_0x523619;let _0x5898c7=typeof _0x96085c==_0x180fb6(0x149)?{'text':_0x96085c}:_0x96085c;return this[_0x180fb6(0x145)]()[_0x180fb6(0x153)](_0x57de9a=>!(_0x5898c7[_0x180fb6(0x162)]&&_0x57de9a['getId']()!==_0x5898c7['blockId']||_0x5898c7[_0x180fb6(0x142)]&&!_0x57de9a[_0x180fb6(0x15a)]()[_0x180fb6(0x164)](_0x5898c7[_0x180fb6(0x142)])));}[_0x523619(0x175)](_0x45ec4a={},_0x338f7e={}){var _0x18a3d3=_0x523619;let _0x100377=this[_0x18a3d3(0x157)][_0x18a3d3(0x17f)](_0x55e8a6),_0x4b99fe=_0x3dd811(_0x45ec4a)?{..._0x338f7e,..._0x45ec4a['getRange']()}:_0x45ec4a,_0x4f4ec7=_0x4b99fe[_0x18a3d3(0x162)]??_0x535c1d(0x6);return _0x100377[_0x18a3d3(0x14d)](_0x1084c1['id'],{..._0x4b99fe,'blockId':_0x4f4ec7,'unitId':this[_0x18a3d3(0x169)]()})?this[_0x18a3d3(0x14a)](_0x4f4ec7):null;}['_getBlockRanges'](){var _0x36d51a=_0x523619,_0x4e0b53;return((_0x4e0b53=this[_0x36d51a(0x187)]()[_0x36d51a(0x158)])==null?void 0x0:_0x4e0b53['blockRanges'])??[];}[_0x523619(0x183)](_0x400106){var _0x4e0cab=_0x523619;return this[_0x4e0cab(0x157)][_0x4e0cab(0x147)](b,this,_0x400106);}};_0x5dacc6[_0x523619(0x161)](S);export{b as FDocumentCode};
1
+ var _0x4c60ab=_0x95cb;(function(_0x3f8f5d,_0x34422b){var _0xbd08d8=_0x95cb,_0x868380=_0x3f8f5d();while(!![]){try{var _0xf8ddd5=-parseInt(_0xbd08d8(0xf3))/0x1*(-parseInt(_0xbd08d8(0xd9))/0x2)+-parseInt(_0xbd08d8(0xe2))/0x3+parseInt(_0xbd08d8(0xcf))/0x4*(-parseInt(_0xbd08d8(0xe3))/0x5)+parseInt(_0xbd08d8(0xe8))/0x6+parseInt(_0xbd08d8(0xe6))/0x7+parseInt(_0xbd08d8(0xeb))/0x8+parseInt(_0xbd08d8(0xfc))/0x9;if(_0xf8ddd5===_0x34422b)break;else _0x868380['push'](_0x868380['shift']());}catch(_0x47b7ab){_0x868380['push'](_0x868380['shift']());}}}(_0x1f43,0x3a5cd));import{DocsCodeInsertCommand as _0x5e15eb,DocsCodeModel as _0x54e27f,DocsCodeRemoveCommand as _0x30ded3,DocsCodeUnwrapCommand as _0x2de51b,DocsCodeUpdateCommand as _0x3b32ea,normalizeDocsCodeConfig as _0x535022}from'@univerjs-pro/docs-code';import{DataStreamTreeTokenType as _0x296fbd,DocumentBlockRangeType as _0x170965,ICommandService as _0x1086a5,Inject as _0x471378,Injector as _0x5b304e,generateRandomId as _0x3aa90f}from'@univerjs/core';import{FDocument as _0x4420cf,isParagraphFacade as _0x4ffef3}from'@univerjs/docs/facade';function m(_0x324261){'@babel/helpers - typeof';var _0x2aa086=_0x95cb;return m=typeof Symbol=='function'&&typeof Symbol[_0x2aa086(0xe4)]==_0x2aa086(0xe7)?function(_0x548e8c){return typeof _0x548e8c;}:function(_0x45fd12){var _0x19aebc=_0x2aa086;return _0x45fd12&&typeof Symbol==_0x19aebc(0xca)&&_0x45fd12['constructor']===Symbol&&_0x45fd12!==Symbol[_0x19aebc(0xf4)]?_0x19aebc(0xe7):typeof _0x45fd12;},m(_0x324261);}function h(_0x5c47ab,_0x1a1d8f){var _0x4440b0=_0x95cb;if(m(_0x5c47ab)!=_0x4440b0(0xef)||!_0x5c47ab)return _0x5c47ab;var _0x2eb2ae=_0x5c47ab[Symbol[_0x4440b0(0xd3)]];if(_0x2eb2ae!==void 0x0){var _0x24037f=_0x2eb2ae[_0x4440b0(0xbc)](_0x5c47ab,_0x1a1d8f||_0x4440b0(0xdb));if(m(_0x24037f)!='object')return _0x24037f;throw TypeError(_0x4440b0(0xee));}return(_0x1a1d8f===_0x4440b0(0xd6)?String:Number)(_0x5c47ab);}function g(_0x3ffb44){var _0x42a330=_0x95cb,_0x44956c=h(_0x3ffb44,_0x42a330(0xd6));return m(_0x44956c)==_0x42a330(0xe7)?_0x44956c:_0x44956c+'';}function _(_0xdae46a,_0x52c5fb,_0x145605){var _0x5c3b88=_0x95cb;return(_0x52c5fb=g(_0x52c5fb))in _0xdae46a?Object[_0x5c3b88(0xc8)](_0xdae46a,_0x52c5fb,{'value':_0x145605,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0xdae46a[_0x52c5fb]=_0x145605,_0xdae46a;}function v(_0x502bd5,_0x295517){return function(_0x5f0914,_0x3d936f){_0x295517(_0x5f0914,_0x3d936f,_0x502bd5);};}function y(_0xebab8,_0x1a78de,_0x159014,_0x4b4dc8){var _0x4359f4=_0x95cb,_0x2c8e4d=arguments[_0x4359f4(0xd2)],_0x805cb9=_0x2c8e4d<0x3?_0x1a78de:_0x4b4dc8===null?_0x4b4dc8=Object[_0x4359f4(0xf9)](_0x1a78de,_0x159014):_0x4b4dc8,_0x25c1ae;if(typeof Reflect=='object'&&typeof Reflect[_0x4359f4(0xd8)]==_0x4359f4(0xca))_0x805cb9=Reflect[_0x4359f4(0xd8)](_0xebab8,_0x1a78de,_0x159014,_0x4b4dc8);else{for(var _0x37ff04=_0xebab8['length']-0x1;_0x37ff04>=0x0;_0x37ff04--)(_0x25c1ae=_0xebab8[_0x37ff04])&&(_0x805cb9=(_0x2c8e4d<0x3?_0x25c1ae(_0x805cb9):_0x2c8e4d>0x3?_0x25c1ae(_0x1a78de,_0x159014,_0x805cb9):_0x25c1ae(_0x1a78de,_0x159014))||_0x805cb9);}return _0x2c8e4d>0x3&&_0x805cb9&&Object['defineProperty'](_0x1a78de,_0x159014,_0x805cb9),_0x805cb9;}let b=class{constructor(_0x508caf,_0x4d8aa3,_0x5d7046){var _0x5ad0ed=_0x95cb;this[_0x5ad0ed(0xe0)]=_0x508caf,this[_0x5ad0ed(0xc1)]=_0x4d8aa3,this[_0x5ad0ed(0xec)]=_0x5d7046,_(this,_0x5ad0ed(0xf1),void 0x0),this[_0x5ad0ed(0xf1)]=this[_0x5ad0ed(0xe0)]['getId']();}[_0x4c60ab(0xc3)](){var _0x56a465=_0x4c60ab;return this[_0x56a465(0xc1)];}[_0x4c60ab(0xd1)](){let _0x51043f=this['_getBlockRange']();return _0x51043f?{'blockId':_0x51043f['blockId'],'endIndex':_0x51043f['endIndex'],'startIndex':_0x51043f['startIndex']}:null;}[_0x4c60ab(0xf5)](){var _0x5c2dcf=_0x4c60ab,_0x82a97f;let _0x51c137=this[_0x5c2dcf(0xcc)](),_0x5acbc6=(_0x82a97f=this[_0x5c2dcf(0xed)]()[_0x5c2dcf(0xd7)])==null?void 0x0:_0x82a97f[_0x5c2dcf(0xf0)];return!_0x51c137||!_0x5acbc6?'':x(_0x5acbc6[_0x5c2dcf(0xea)](_0x51c137['startIndex']+0x1,_0x51c137[_0x5c2dcf(0xdd)]));}['describe'](){var _0x457406=_0x4c60ab;let _0x1c9d19=this[_0x457406(0xd1)]();return _0x1c9d19?{..._0x1c9d19,'config':this['getConfig'](),'text':this[_0x457406(0xf5)](),'type':_0x170965[_0x457406(0xc4)]}:null;}[_0x4c60ab(0xbd)](){var _0x1fd628=_0x4c60ab;let _0x381b9d=this[_0x1fd628(0xec)][_0x1fd628(0xc7)](_0x54e27f);return _0x535022(_0x381b9d[_0x1fd628(0xf8)](this[_0x1fd628(0xf1)],this[_0x1fd628(0xc1)]));}[_0x4c60ab(0xfb)](_0x249ae1){var _0x13b9b9=_0x4c60ab;return this[_0x13b9b9(0xec)][_0x13b9b9(0xc7)](_0x1086a5)['syncExecuteCommand'](_0x3b32ea['id'],{'blockId':this[_0x13b9b9(0xc1)],'config':_0x249ae1['config'],'unitId':this['_unitId']});}[_0x4c60ab(0xfa)](){var _0x39aae8=_0x4c60ab;return this[_0x39aae8(0xec)]['get'](_0x1086a5)[_0x39aae8(0xcd)](_0x2de51b['id'],{'blockId':this['_blockId'],'unitId':this[_0x39aae8(0xf1)]});}['remove'](){var _0xccd594=_0x4c60ab;return this[_0xccd594(0xec)][_0xccd594(0xc7)](_0x1086a5)['syncExecuteCommand'](_0x30ded3['id'],{'blockId':this[_0xccd594(0xc1)],'unitId':this[_0xccd594(0xf1)]});}[_0x4c60ab(0xcc)](){var _0x1f815b=_0x4c60ab,_0x4e3afd;return((_0x4e3afd=this[_0x1f815b(0xed)]()[_0x1f815b(0xd7)])==null||(_0x4e3afd=_0x4e3afd[_0x1f815b(0xf2)])==null?void 0x0:_0x4e3afd['find'](_0x1b4e49=>_0x1b4e49[_0x1f815b(0xcb)]===this['_blockId']&&_0x1b4e49['blockType']===_0x170965[_0x1f815b(0xc4)]))??null;}['_getDocumentData'](){return this['_document']['save']();}};b=y([v(0x2,_0x471378(_0x5b304e))],b);function x(_0x4c4fdb){var _0x37e9ec=_0x4c60ab;return Array[_0x37e9ec(0xdc)](_0x4c4fdb)[_0x37e9ec(0xc0)](_0x89eaa3=>_0x89eaa3===_0x296fbd[_0x37e9ec(0xd4)]?'\x0a':_0x89eaa3)['filter'](_0x4ff26d=>_0x4ff26d!==_0x296fbd['BLOCK_START']&&_0x4ff26d!==_0x296fbd[_0x37e9ec(0xde)]&&_0x4ff26d!==_0x296fbd[_0x37e9ec(0xf6)])['join']('')[_0x37e9ec(0xe9)](/\n$/,'');}var S=class extends _0x4420cf{[_0x4c60ab(0xc9)](){var _0x2ee58e=_0x4c60ab;return this[_0x2ee58e(0xf7)]()['filter'](_0x1f6d4c=>_0x1f6d4c['blockType']===_0x170965[_0x2ee58e(0xc4)])['map'](_0x783d93=>this[_0x2ee58e(0xdf)](_0x783d93[_0x2ee58e(0xcb)]));}[_0x4c60ab(0xce)](_0x169e65){var _0x562dd4=_0x4c60ab;return this[_0x562dd4(0xf7)]()['some'](_0x3992b2=>_0x3992b2[_0x562dd4(0xcb)]===_0x169e65&&_0x3992b2[_0x562dd4(0xc2)]===_0x170965[_0x562dd4(0xc4)])?this['_createFDocumentCode'](_0x169e65):null;}['getCodeAt'](_0x4d2666){var _0x252bac=_0x4c60ab;let _0x4d423b=this['_getBlockRanges']()[_0x252bac(0xbf)](_0x5f1df7=>_0x5f1df7['blockType']===_0x170965[_0x252bac(0xc4)]&&_0x5f1df7[_0x252bac(0xd0)]<=_0x4d2666&&_0x4d2666<=_0x5f1df7[_0x252bac(0xdd)]);return _0x4d423b?this['_createFDocumentCode'](_0x4d423b[_0x252bac(0xcb)]):null;}[_0x4c60ab(0xbe)](_0x5c0f30){var _0x557da2=_0x4c60ab;return this[_0x557da2(0xe5)](_0x5c0f30)[0x0]??null;}[_0x4c60ab(0xe5)](_0x5f430){var _0x3820ea=_0x4c60ab;let _0x12653b=typeof _0x5f430==_0x3820ea(0xd6)?{'text':_0x5f430}:_0x5f430;return this['getCodes']()[_0x3820ea(0xe1)](_0x5a847f=>!(_0x12653b[_0x3820ea(0xcb)]&&_0x5a847f['getId']()!==_0x12653b[_0x3820ea(0xcb)]||_0x12653b[_0x3820ea(0xc5)]&&!_0x5a847f['getText']()['includes'](_0x12653b['text'])));}[_0x4c60ab(0xc6)](_0x3c0d69={},_0x57115f={}){var _0x4bba5b=_0x4c60ab;let _0x57d50e=this[_0x4bba5b(0xec)]['get'](_0x1086a5),_0x1b44aa=_0x4ffef3(_0x3c0d69)?{..._0x57115f,..._0x3c0d69[_0x4bba5b(0xd1)]()}:_0x3c0d69,_0xeb8807=_0x1b44aa[_0x4bba5b(0xcb)]??_0x3aa90f(0x6);return _0x57d50e[_0x4bba5b(0xcd)](_0x5e15eb['id'],{..._0x1b44aa,'blockId':_0xeb8807,'unitId':this[_0x4bba5b(0xc3)]()})?this[_0x4bba5b(0xce)](_0xeb8807):null;}[_0x4c60ab(0xf7)](){var _0x52270e=_0x4c60ab,_0x5f5267;return((_0x5f5267=this[_0x52270e(0xd5)]()[_0x52270e(0xd7)])==null?void 0x0:_0x5f5267[_0x52270e(0xf2)])??[];}[_0x4c60ab(0xdf)](_0x2dc39d){var _0x247c70=_0x4c60ab;return this[_0x247c70(0xec)]['createInstance'](b,this,_0x2dc39d);}};_0x4420cf[_0x4c60ab(0xda)](S);function _0x95cb(_0x4cde01,_0xed8f64){_0x4cde01=_0x4cde01-0xbc;var _0x1f4334=_0x1f43();var _0x95cb45=_0x1f4334[_0x4cde01];return _0x95cb45;}function _0x1f43(){var _0x4f5682=['slice','1015592CArpoP','_injector','_getDocumentData','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','object','dataStream','_unitId','blockRanges','184993foInBz','prototype','getText','SECTION_BREAK','_getBlockRanges','getCodeConfig','getOwnPropertyDescriptor','unwrap','updateConfig','1764414ZPFVGL','call','getConfig','findCodeByText','find','map','_blockId','blockType','getId','CODE','text','insertCode','get','defineProperty','getCodes','function','blockId','_getBlockRange','syncExecuteCommand','getCode','32ZPbjBU','startIndex','getRange','length','toPrimitive','PARAGRAPH','save','string','body','decorate','2gFMytp','extend','default','from','endIndex','BLOCK_END','_createFDocumentCode','_document','filter','1425750MPzsIO','33765xzBkqi','iterator','findCodes','1385419XeRjwt','symbol','374532IcNoAP','replace'];_0x1f43=function(){return _0x4f5682;};return _0x1f43();}export{b as FDocumentCode};
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x4278ec=_0x57e9;(function(_0x5eb901,_0x20fe75){const _0x230bba=_0x57e9,_0x50a2f6=_0x5eb901();while(!![]){try{const _0x48f18c=parseInt(_0x230bba(0x10f))/0x1*(parseInt(_0x230bba(0x108))/0x2)+parseInt(_0x230bba(0x120))/0x3*(-parseInt(_0x230bba(0x90))/0x4)+parseInt(_0x230bba(0xf6))/0x5*(parseInt(_0x230bba(0xd1))/0x6)+-parseInt(_0x230bba(0xcb))/0x7*(-parseInt(_0x230bba(0xec))/0x8)+parseInt(_0x230bba(0x9a))/0x9+-parseInt(_0x230bba(0xb8))/0xa*(parseInt(_0x230bba(0x102))/0xb)+-parseInt(_0x230bba(0x12d))/0xc*(parseInt(_0x230bba(0xe0))/0xd);if(_0x48f18c===_0x20fe75)break;else _0x50a2f6['push'](_0x50a2f6['shift']());}catch(_0x40a7cb){_0x50a2f6['push'](_0x50a2f6['shift']());}}}(_0x1bbf,0x459a3));import{BooleanNumber as _0x4f8efa,BuildTextUtils as _0x20804f,CommandType as _0x45294c,DataStreamTreeTokenType as _0x9c6192,DependentOn as _0x85efd,Disposable as _0x1ccbbc,DocumentBlockRangeType as _0xac67e3,ICommandService as _0x1a34c1,IConfigService as _0x48b9b0,IResourceManagerService as _0x134f76,IUniverInstanceService as _0x2fe26f,Inject as _0x2b0865,Injector as _0x650f9e,JSONX as _0xa0927a,Plugin as _0x25c4b9,TextX as _0xaed83f,UniverInstanceType as _0x30a10b,containsInteriorInsertionOffset as _0x27820e,containsStreamIndex as _0x42e0ef,createParagraphId as _0x533df7,generateRandomId as _0x5a5615,getBlockRangeInterval as _0x49707a,getBodySliceForTextXAction as _0x285f89,getParagraphContentStartOffset as _0x2c079f,getParagraphContentStartOffsets as _0x252574,getParagraphFollowingBlockOffset as _0x3f9e16,getSingleDataStreamChange as _0x460607,intersectsOperationalIntervals as _0x575561,merge as _0x374a9d,shiftExclusiveRangeOnDelete as _0x345255,shiftExclusiveRangeOnInsert as _0x1e6f2b,shiftInclusiveRangeOnDelete as _0x31e1ac,shiftInclusiveRangeOnInsert as _0x1bfd00}from'@univerjs/core';import{Subject as _0x153d32}from'rxjs';import{DocSelectionManagerService as _0x1e01f3,RichTextEditingMutation as _0x31ecbf,UniverDocsPlugin as _0x1e99e0,getContentInsertRange as _0x312935,isHeaderFooterSelection as _0x129d5b}from'@univerjs/docs';import{UniverLicensePlugin as _0x509979}from'@univerjs-pro/license';const Se={'language':_0x4278ec(0xf0),'showLineNumbers':!0x1,'tabSize':0x4,'wrap':!0x0};function v(_0x5ab11d){return{...Se,..._0x5ab11d};}function y(_0x25d486){const _0x24d0a5=_0x4278ec;let _0x637a2=(_0x25d486==null?void 0x0:_0x25d486[_0x24d0a5(0x131)])??{};return{'codes':Object[_0x24d0a5(0xe8)](Object['entries'](_0x637a2)['map'](([_0x59d4fa,_0x297de4])=>[_0x59d4fa,v(_0x297de4)]))};}function b(_0x13afda,_0x4759a3,_0x3b1579){const _0x1765d3=_0x4278ec;let _0x2ccb3f=y(_0x13afda);return _0x2ccb3f[_0x1765d3(0x131)][_0x4759a3]=v({..._0x2ccb3f[_0x1765d3(0x131)][_0x4759a3],..._0x3b1579}),_0x2ccb3f;}function x(_0x28559a,_0x4ad6cc){let _0x389c92=y(_0x28559a);return delete _0x389c92['codes'][_0x4ad6cc],_0x389c92;}function S(_0x7a3fda){'@babel/helpers - typeof';const _0x25854f=_0x4278ec;return S=typeof Symbol=='function'&&typeof Symbol[_0x25854f(0xf2)]==_0x25854f(0xfd)?function(_0x495a08){return typeof _0x495a08;}:function(_0x275985){const _0x49fb8c=_0x25854f;return _0x275985&&typeof Symbol==_0x49fb8c(0x110)&&_0x275985[_0x49fb8c(0x118)]===Symbol&&_0x275985!==Symbol[_0x49fb8c(0xad)]?_0x49fb8c(0xfd):typeof _0x275985;},S(_0x7a3fda);}function Ce(_0x541168,_0x42e574){const _0x4f09fb=_0x4278ec;if(S(_0x541168)!=_0x4f09fb(0xfc)||!_0x541168)return _0x541168;var _0x59b222=_0x541168[Symbol[_0x4f09fb(0x104)]];if(_0x59b222!==void 0x0){var _0x4b6147=_0x59b222[_0x4f09fb(0x12f)](_0x541168,_0x42e574||_0x4f09fb(0xef));if(S(_0x4b6147)!=_0x4f09fb(0xfc))return _0x4b6147;throw TypeError(_0x4f09fb(0xa6));}return(_0x42e574===_0x4f09fb(0xb4)?String:Number)(_0x541168);}function we(_0x18759f){const _0x20767f=_0x4278ec;var _0x50acb2=Ce(_0x18759f,_0x20767f(0xb4));return S(_0x50acb2)==_0x20767f(0xfd)?_0x50acb2:_0x50acb2+'';}function C(_0x39820f,_0x34e195,_0x33b0e3){const _0x4b2f16=_0x4278ec;return(_0x34e195=we(_0x34e195))in _0x39820f?Object[_0x4b2f16(0xc7)](_0x39820f,_0x34e195,{'value':_0x33b0e3,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x39820f[_0x34e195]=_0x33b0e3,_0x39820f;}var w=class extends _0x1ccbbc{constructor(..._0x40e67f){const _0x1fee74=_0x4278ec;super(..._0x40e67f),C(this,_0x1fee74(0xbc),new Map()),C(this,'_change$',new _0x153d32()),C(this,_0x1fee74(0xd9),this[_0x1fee74(0x9d)][_0x1fee74(0xd0)]());}['getCodeConfig'](_0x263c57,_0x55d991){const _0x23407f=_0x4278ec;return y(this['_resources'][_0x23407f(0x135)](_0x263c57))[_0x23407f(0x131)][_0x55d991];}['setCodeConfig'](_0x2ffd75,_0x5bffca,_0x47f2fc){const _0x3b1a9c=_0x4278ec;this[_0x3b1a9c(0x9e)](_0x2ffd75,_0x5bffca,b(this[_0x3b1a9c(0xbc)][_0x3b1a9c(0x135)](_0x2ffd75),_0x5bffca,_0x47f2fc));}[_0x4278ec(0x109)](_0x4df8e7,_0x145cbc){const _0xb6fd43=_0x4278ec;this[_0xb6fd43(0x9e)](_0x4df8e7,_0x145cbc,x(this['_resources'][_0xb6fd43(0x135)](_0x4df8e7),_0x145cbc));}[_0x4278ec(0xba)](_0x21186c){const _0x444438=_0x4278ec;return y(this[_0x444438(0xbc)][_0x444438(0x135)](_0x21186c));}['deserialize'](_0x1bd1ce,_0x520467){const _0x31036a=_0x4278ec;this[_0x31036a(0xbc)][_0x31036a(0xca)](_0x1bd1ce,y(_0x520467)),this[_0x31036a(0x9d)][_0x31036a(0xb2)]({'unitId':_0x1bd1ce});}['removeUnit'](_0x3a5734){const _0x25c212=_0x4278ec;this[_0x25c212(0xbc)]['delete'](_0x3a5734),this['_change$'][_0x25c212(0xb2)]({'unitId':_0x3a5734});}[_0x4278ec(0x115)](){const _0x5b1558=_0x4278ec;super[_0x5b1558(0x115)](),this[_0x5b1558(0xbc)][_0x5b1558(0xd3)](),this[_0x5b1558(0x9d)][_0x5b1558(0x97)]();}[_0x4278ec(0x9e)](_0x330815,_0x557e9b,_0x51adf5){const _0x23deb2=_0x4278ec;this[_0x23deb2(0xbc)][_0x23deb2(0xca)](_0x330815,_0x51adf5),this[_0x23deb2(0x9d)][_0x23deb2(0xb2)]({'unitId':_0x330815,'blockId':_0x557e9b});}};const Te={'id':'docs-code.mutation.set-config','type':_0x45294c[_0x4278ec(0x99)],'handler':(_0x57a2a7,_0x2397dd)=>!(_0x2397dd!=null&&_0x2397dd[_0x4278ec(0xdb)])||!_0x2397dd['blockId']?!0x1:(_0x57a2a7[_0x4278ec(0x135)](w)[_0x4278ec(0xeb)](_0x2397dd[_0x4278ec(0xdb)],_0x2397dd[_0x4278ec(0xbe)],_0x2397dd[_0x4278ec(0xf5)]),!0x0)},T={'id':_0x4278ec(0xab),'type':_0x45294c[_0x4278ec(0x99)],'handler':(_0x6153d9,_0x1427ab)=>!(_0x1427ab!=null&&_0x1427ab['unitId'])||!_0x1427ab[_0x4278ec(0xbe)]?!0x1:(_0x6153d9[_0x4278ec(0x135)](w)['removeCode'](_0x1427ab[_0x4278ec(0xdb)],_0x1427ab[_0x4278ec(0xbe)]),!0x0)},Ee=_0x4278ec(0x10e);var E=class extends Error{constructor(_0x3910da=_0x4278ec(0xf7)){super(_0x3910da);}};function De(_0x5768e2){const _0x3ab8cf=_0x4278ec;var _0x5b2680;let _0x385293=O(_0x5768e2[_0x3ab8cf(0xe4)]),_0x5c407c=A(_0x385293),_0x4c1823=ke(_0x5768e2[_0x3ab8cf(0x129)],_0x5768e2[_0x3ab8cf(0xb3)]),_0x4eecfd=_0x4c1823?(_0x5b2680=_0x5c407c['blockRanges'])==null?void 0x0:_0x5b2680[_0x3ab8cf(0x13a)](_0x5c0d7f=>{const _0x1cfc48=_0x3ab8cf;let _0x2458c1=_0x49707a(_0x5c0d7f);return _0x2458c1[_0x1cfc48(0x129)]===_0x4c1823['startOffset']&&_0x2458c1[_0x1cfc48(0xb3)]===_0x4c1823[_0x1cfc48(0xb3)];}):void 0x0,{startOffset:_0x174cd2,endOffset:_0x7e7aa5}=_0x4eecfd?_0x4c1823:We(_0x5c407c,_0x5768e2[_0x3ab8cf(0x129)],_0x5768e2['endOffset'],_0x5768e2[_0x3ab8cf(0xdf)]);if(!_0x4eecfd&&Ae(_0x5c407c,_0x174cd2,_0x7e7aa5))throw new E(_0x3ab8cf(0xa8));let _0x148c75=qe(_0x5c407c,_0x174cd2,_0x7e7aa5),_0x309cb8=(_0x4eecfd==null?void 0x0:_0x4eecfd['blockId'])??_0x5768e2['blockId'],_0x127ca3=b(_0x5768e2[_0x3ab8cf(0x95)],_0x309cb8,{...Se,..._0x5768e2[_0x3ab8cf(0xf5)]});if(_0x4eecfd)return _0x4eecfd[_0x3ab8cf(0xa1)]=_0xac67e3[_0x3ab8cf(0xa7)],Oe(_0x5c407c,_0x174cd2,_0x7e7aa5),ze(_0x5c407c,_0x174cd2,_0x7e7aa5,_0x148c75),N(_0x5c407c,_0x4eecfd),{'nextDocumentData':_0x385293,'nextMetadata':_0x127ca3,'cursorOffset':_0x174cd2+0x1};if(_0x174cd2===_0x7e7aa5){var _0xb545db,_0x3d3c75;let _0x17549d=''+_0x9c6192['BLOCK_START']+_0x9c6192['PARAGRAPH']+_0x9c6192[_0x3ab8cf(0xd7)];P(_0x5c407c,_0x174cd2,_0x17549d,{'paragraphs':[{'startIndex':0x1,'paragraphId':_0x533df7(new Set((_0xb545db=_0x5c407c[_0x3ab8cf(0x114)])==null?void 0x0:_0xb545db['map'](_0xa0ec52=>_0xa0ec52[_0x3ab8cf(0x134)]))),'paragraphStyle':Re(!0x0,!0x0,_0x148c75)}],'blockRanges':[{'blockId':_0x309cb8,'blockType':_0xac67e3[_0x3ab8cf(0xa7)],'startIndex':0x0,'endIndex':_0x17549d[_0x3ab8cf(0xee)]-0x1}]});let _0x2418c1=(_0x3d3c75=_0x5c407c['blockRanges'])==null?void 0x0:_0x3d3c75['find'](_0x10c901=>_0x10c901[_0x3ab8cf(0xbe)]===_0x309cb8);return _0x2418c1&&N(_0x5c407c,_0x2418c1),{'nextDocumentData':_0x385293,'nextMetadata':_0x127ca3,'cursorOffset':_0x174cd2+0x1};}P(_0x5c407c,_0x7e7aa5,_0x9c6192['BLOCK_END']),P(_0x5c407c,_0x174cd2,_0x9c6192[_0x3ab8cf(0xde)]),ze(_0x5c407c,_0x174cd2,_0x7e7aa5+0x1,_0x148c75);let _0x251cb8={'blockId':_0x309cb8,'blockType':_0xac67e3['CODE'],'startIndex':_0x174cd2,'endIndex':_0x7e7aa5+0x1};return _0x5c407c[_0x3ab8cf(0x12e)]=[..._0x5c407c['blockRanges']??[],_0x251cb8]['sort']((_0xdde982,_0x5b39bd)=>_0xdde982[_0x3ab8cf(0x11e)]-_0x5b39bd[_0x3ab8cf(0x11e)]),N(_0x5c407c,_0x251cb8),{'nextDocumentData':_0x385293,'nextMetadata':_0x127ca3,'cursorOffset':_0x174cd2+0x1};}function Oe(_0x1a5fb6,_0x43e243,_0x415605){const _0x285677=_0x4278ec;(_0x1a5fb6['paragraphs']??[])[_0x285677(0xd2)](_0x242975=>_0x242975[_0x285677(0x11e)]>_0x43e243&&_0x242975[_0x285677(0x11e)]<_0x415605)['forEach'](_0x37572c=>{const _0x193020=_0x285677;let _0x164a09={..._0x37572c['paragraphStyle']??{}};delete _0x164a09['spaceAbove'],delete _0x164a09['spaceBelow'],_0x37572c[_0x193020(0xff)]=_0x164a09;});}function ke(_0x56e8fa,_0x3b2f1f){const _0xc984d8=_0x4278ec;return _0x56e8fa==null||_0x3b2f1f==null||_0x56e8fa===_0x3b2f1f?null:{'startOffset':Math['min'](_0x56e8fa,_0x3b2f1f),'endOffset':Math[_0xc984d8(0xc8)](_0x56e8fa,_0x3b2f1f)};}function Ae(_0x333ea3,_0x3b7d41,_0x44e583){const _0x2f0c23=_0x4278ec;return(_0x333ea3[_0x2f0c23(0x12e)]??[])[_0x2f0c23(0xa4)](_0x231356=>{let _0x4b6582=_0x49707a(_0x231356);return _0x3b7d41===_0x44e583?_0x27820e(_0x4b6582,_0x3b7d41):_0x575561(_0x4b6582,{'startOffset':_0x3b7d41,'endOffset':_0x44e583});});}function je(_0x5c5225){const _0x18f327=_0x4278ec;return{'nextDocumentData':O(_0x5c5225[_0x18f327(0xe4)]),'nextMetadata':b(_0x5c5225[_0x18f327(0x95)],_0x5c5225['blockId'],_0x5c5225[_0x18f327(0xf5)]),'cursorOffset':0x0};}function D(_0x5171b0){const _0x2aa84a=_0x4278ec;let _0x40cf8e=O(_0x5171b0[_0x2aa84a(0xe4)]),_0x34b88b=A(_0x40cf8e),_0x505ba9=Fe(_0x34b88b,_0x5171b0['blockId']);if(!_0x505ba9)return null;let _0x192333=He(_0x34b88b,_0x505ba9);return{'nextDocumentData':_0x40cf8e,'nextMetadata':x(_0x5171b0[_0x2aa84a(0x95)],_0x5171b0[_0x2aa84a(0xbe)]),'cursorOffset':_0x192333};}function Me(_0x51070a){const _0x392db3=_0x4278ec;var _0x2de64f;let _0x2174f6=O(_0x51070a[_0x392db3(0xe4)]),_0x1afde4=A(_0x2174f6),_0x55f632=Fe(_0x1afde4,_0x51070a[_0x392db3(0xbe)]);if(!_0x55f632)return null;let _0x3c1a86=_0x49707a(_0x55f632);return F(_0x1afde4,_0x3c1a86[_0x392db3(0x129)],_0x3c1a86['endOffset']),_0x1afde4[_0x392db3(0x12e)]=(_0x2de64f=_0x1afde4[_0x392db3(0x12e)])==null?void 0x0:_0x2de64f['filter'](_0x9bc0c=>_0x9bc0c[_0x392db3(0xbe)]!==_0x51070a[_0x392db3(0xbe)]),{'nextDocumentData':_0x2174f6,'nextMetadata':x(_0x51070a['metadata'],_0x51070a['blockId']),'cursorOffset':_0x55f632[_0x392db3(0x11e)]};}function Ne(_0x17c178){const _0xd1bd5a=_0x4278ec;let _0x5af1c9=O(_0x17c178['documentData']),_0x4280ee=A(_0x5af1c9),_0x26563f=Le(_0x4280ee,_0x17c178[_0xd1bd5a(0x128)]);return _0x26563f&&Pe(_0x5af1c9,_0x4280ee,_0x26563f,_0x17c178[_0xd1bd5a(0x128)],_0x17c178[_0xd1bd5a(0xe1)])||null;}function Pe(_0x6dfeef,_0x5cf591,_0x3a9080,_0x228ba8,_0x50608d){const _0x5c4782=_0x4278ec;let _0x274a63=$e(_0x5cf591,_0x3a9080,_0x228ba8,_0x50608d);if(!_0x274a63)return null;let _0x56a1f8=_0x274a63[_0x5c4782(0x12c)]-0x1;return F(_0x5cf591,_0x274a63['paragraph']['startIndex'],_0x274a63['paragraph']['startIndex']+0x1),{'nextDocumentData':_0x6dfeef,'cursorOffset':_0x56a1f8};}function Fe(_0x2b94ca,_0xe19299){const _0xb92379=_0x4278ec;var _0x5d86f3;return _0x2b94ca==null||(_0x5d86f3=_0x2b94ca[_0xb92379(0x12e)])==null?void 0x0:_0x5d86f3[_0xb92379(0x13a)](_0x9070aa=>_0x9070aa[_0xb92379(0xa1)]===_0xac67e3[_0xb92379(0xa7)]&&_0x9070aa[_0xb92379(0xbe)]===_0xe19299);}function Ie(_0x14067c){const _0xcf7096=_0x4278ec;let _0x44efd2=_0x14067c[_0xcf7096(0xe4)]['body'];if(!_0x44efd2)return!0x1;let _0x184e2e=_0x14067c[_0xcf7096(0x9f)]===_0xcf7096(0xd5)?_0x14067c[_0xcf7096(0x128)]-0x1:_0x14067c[_0xcf7096(0x128)],_0x5d9fd3=_0x14067c[_0xcf7096(0x9f)]===_0xcf7096(0xac)?_0x14067c[_0xcf7096(0x128)]+0x1:_0x184e2e;return(_0x44efd2[_0xcf7096(0x12e)]??[])['some'](_0x3f6203=>_0x3f6203[_0xcf7096(0xa1)]===_0xac67e3[_0xcf7096(0xa7)]?_0x184e2e===_0x3f6203['startIndex']||_0x184e2e===_0x3f6203[_0xcf7096(0xf4)]||_0x5d9fd3===_0x3f6203[_0xcf7096(0x11e)]||_0x5d9fd3===_0x3f6203[_0xcf7096(0xf4)]:!0x1);}function Le(_0x5df646,_0x3db6f0){const _0x504bc4=_0x4278ec;var _0x48f6d0;return(_0x48f6d0=_0x5df646['blockRanges'])==null?void 0x0:_0x48f6d0[_0x504bc4(0x13a)](_0x14330b=>{const _0x48c594=_0x504bc4;let _0x5b29af=M(_0x14330b);return _0x14330b[_0x48c594(0xa1)]===_0xac67e3[_0x48c594(0xa7)]&&_0x14330b['startIndex']<=_0x3db6f0&&_0x3db6f0<=_0x5b29af+0x2;});}function Re(_0x506a7b,_0x584177,_0x186290=!0x1){const _0x333324=_0x4278ec;return{'indentEnd':{'v':0x14},'indentStart':{'v':0x14},'keepLines':_0x4f8efa[_0x333324(0xb6)],'keepNext':_0x584177?_0x4f8efa[_0x333324(0xae)]:_0x4f8efa[_0x333324(0xb6)],'widowControl':_0x4f8efa[_0x333324(0xb6)],..._0x506a7b&&_0x186290?{'spaceAbove':{'v':0x8}}:{},'textStyle':{'ff':Ee,'fs':0xc}};}function ze(_0x780c84,_0x506553,_0x4460e1,_0x2dd2cb=!0x1){const _0x4ae25f=_0x4278ec;let _0x7d349c=(_0x780c84[_0x4ae25f(0x114)]??[])[_0x4ae25f(0xd2)](_0x989f18=>_0x989f18[_0x4ae25f(0x11e)]>_0x506553&&_0x989f18['startIndex']<_0x4460e1);_0x7d349c[_0x4ae25f(0xb9)]((_0x36c554,_0x3ff6a2)=>{const _0x859df4=_0x4ae25f;_0x36c554[_0x859df4(0xff)]={..._0x36c554['paragraphStyle']??{},...Re(_0x3ff6a2===0x0,_0x3ff6a2===_0x7d349c[_0x859df4(0xee)]-0x1,_0x2dd2cb)};});}function Be(_0x17b32d){const _0x33c996=_0x4278ec;var _0x3ff0a3,_0xca9892;let _0xaf8659={..._0x17b32d??{}};return delete _0xaf8659[_0x33c996(0x111)],delete _0xaf8659[_0x33c996(0xce)],delete _0xaf8659[_0x33c996(0x119)],delete _0xaf8659[_0x33c996(0x105)],delete _0xaf8659[_0x33c996(0xa2)],delete _0xaf8659['keepNext'],delete _0xaf8659['widowControl'],((_0x3ff0a3=_0xaf8659[_0x33c996(0xe7)])==null?void 0x0:_0x3ff0a3['ff'])===Ee&&((_0xca9892=_0xaf8659[_0x33c996(0xe7)])==null?void 0x0:_0xca9892['fs'])===0xc&&delete _0xaf8659[_0x33c996(0xe7)],_0xaf8659;}function Ve(_0x3bc1ae,_0x100579){const _0x51a840=_0x4278ec;let _0x903092=M(_0x100579);return(_0x3bc1ae[_0x51a840(0x114)]??[])[_0x51a840(0xd2)](_0x2c18ad=>_0x2c18ad['startIndex']>_0x100579[_0x51a840(0x11e)]&&_0x2c18ad[_0x51a840(0x11e)]<_0x903092);}function He(_0x13e21f,_0x2943a0){const _0xc7b520=_0x4278ec;var _0x4e17cc;let _0x522543=M(_0x2943a0);return Ve(_0x13e21f,_0x2943a0)[_0xc7b520(0xb9)](_0x4ba7e7=>{const _0xc65aee=_0xc7b520;_0x4ba7e7['paragraphStyle']=Be(_0x4ba7e7[_0xc65aee(0xff)]);}),F(_0x13e21f,_0x522543,_0x522543+0x1),F(_0x13e21f,_0x2943a0[_0xc7b520(0x11e)],_0x2943a0[_0xc7b520(0x11e)]+0x1),_0x13e21f[_0xc7b520(0x12e)]=(_0x4e17cc=_0x13e21f[_0xc7b520(0x12e)])==null?void 0x0:_0x4e17cc[_0xc7b520(0xd2)](_0x19c450=>_0x19c450['blockId']!==_0x2943a0[_0xc7b520(0xbe)]),_0x2943a0[_0xc7b520(0x11e)];}function O(_0x4d861a){const _0x26c47c=_0x4278ec;return{..._0x4d861a,'body':_0x4d861a['body']?Ue(_0x4d861a[_0x26c47c(0x133)]):_0x4d861a[_0x26c47c(0x133)]};}function Ue(_0x7df0d4){const _0xf877d9=_0x4278ec;var _0x3b3d43,_0x31d4d4,_0x4756b9,_0x26c2e8,_0x27d7a5,_0x40625f,_0x55dfb3,_0x29bf82,_0x255108;return{..._0x7df0d4,'paragraphs':(_0x3b3d43=_0x7df0d4[_0xf877d9(0x114)])==null?void 0x0:_0x3b3d43[_0xf877d9(0xd6)](_0x322a07=>({..._0x322a07,'bullet':k(_0x322a07[_0xf877d9(0xb0)]),'paragraphStyle':k(_0x322a07[_0xf877d9(0xff)])})),'sectionBreaks':(_0x31d4d4=_0x7df0d4[_0xf877d9(0xa9)])==null?void 0x0:_0x31d4d4['map'](_0x335fa2=>({..._0x335fa2})),'textRuns':(_0x4756b9=_0x7df0d4[_0xf877d9(0xdc)])==null?void 0x0:_0x4756b9[_0xf877d9(0xd6)](_0x2cbecc=>({..._0x2cbecc})),'tables':(_0x26c2e8=_0x7df0d4['tables'])==null?void 0x0:_0x26c2e8[_0xf877d9(0xd6)](_0x2a1856=>({..._0x2a1856})),'columnGroups':(_0x27d7a5=_0x7df0d4[_0xf877d9(0xe5)])==null?void 0x0:_0x27d7a5[_0xf877d9(0xd6)](_0x2d7ee7=>{const _0x562567=_0xf877d9;var _0x3ec770;return{..._0x2d7ee7,'columns':(_0x3ec770=_0x2d7ee7[_0x562567(0x103)])==null?void 0x0:_0x3ec770['map'](_0x109882=>k(_0x109882))};}),'blockRanges':(_0x40625f=_0x7df0d4[_0xf877d9(0x12e)])==null?void 0x0:_0x40625f[_0xf877d9(0xd6)](_0x566ea8=>({..._0x566ea8})),'customRanges':(_0x55dfb3=_0x7df0d4[_0xf877d9(0xf9)])==null?void 0x0:_0x55dfb3['map'](_0x6135d3=>({..._0x6135d3})),'customDecorations':(_0x29bf82=_0x7df0d4[_0xf877d9(0x137)])==null?void 0x0:_0x29bf82[_0xf877d9(0xd6)](_0x406b97=>({..._0x406b97})),'customBlocks':(_0x255108=_0x7df0d4[_0xf877d9(0xed)])==null?void 0x0:_0x255108[_0xf877d9(0xd6)](_0x514e37=>({..._0x514e37}))};}function k(_0x3a2043){const _0x121e16=_0x4278ec;return Array[_0x121e16(0x13b)](_0x3a2043)?_0x3a2043[_0x121e16(0xd6)](_0xc21281=>k(_0xc21281)):!_0x3a2043||typeof _0x3a2043!=_0x121e16(0xfc)?_0x3a2043:Object[_0x121e16(0xe8)](Object[_0x121e16(0x127)](_0x3a2043)[_0x121e16(0xd6)](([_0x5f2a9f,_0x5a5330])=>[_0x5f2a9f,k(_0x5a5330)]));}function A(_0x3a0919){const _0x5efd6b=_0x4278ec;if(!_0x3a0919[_0x5efd6b(0x133)])throw Error(_0x5efd6b(0x113));return _0x3a0919[_0x5efd6b(0x133)];}function We(_0x3c637a,_0x1d7cf6,_0x2cc790,_0x30a9e4='convert-paragraph'){if(_0x1d7cf6==null||_0x2cc790==null){let _0x539f0f=Ke(_0x3c637a);return{'startOffset':_0x539f0f,'endOffset':_0x539f0f};}let _0x498904=Math['min'](_0x1d7cf6,_0x2cc790),_0x15d2c5=Math['max'](_0x1d7cf6,_0x2cc790),_0x3825c3=Ze(_0x3c637a,_0x498904,_0x15d2c5);return _0x498904===_0x15d2c5?_0x30a9e4==='insert-new'?{'startOffset':_0x498904,'endOffset':_0x15d2c5}:Ge(_0x3c637a,_0x498904,_0x3825c3):Je(_0x3c637a,_0x498904,_0x15d2c5,_0x3825c3);}function Ge(_0x55d6d2,_0x1ca4b8,_0x1b16ae){const _0x1443db=_0x4278ec;let _0x5bf386=Ye(_0x55d6d2,_0x1ca4b8);if(_0x5bf386){let _0x30f00c=j(_0x55d6d2,_0x5bf386,_0x1b16ae);if(_0x30f00c<_0x5bf386[_0x1443db(0x11e)])return{'startOffset':_0x30f00c,'endOffset':_0x1b16ae?Math[_0x1443db(0x9b)](_0x5bf386[_0x1443db(0x11e)]+0x1,_0x1b16ae[_0x1443db(0xb3)]):_0x5bf386[_0x1443db(0x11e)]+0x1};}let _0x439016=_0x1ca4b8===0x0&&_0x55d6d2[_0x1443db(0x94)][0x0]===_0x9c6192[_0x1443db(0x12b)]?0x1:_0x1ca4b8;return{'startOffset':_0x439016,'endOffset':_0x439016};}function Ke(_0x3c09dd){const _0x4564d1=_0x4278ec;return _0x3c09dd[_0x4564d1(0x94)][_0x4564d1(0xf3)](_0x9c6192[_0x4564d1(0xb7)])?Math[_0x4564d1(0xc8)](0x0,_0x3c09dd['dataStream'][_0x4564d1(0xee)]-0x1):_0x3c09dd[_0x4564d1(0x94)][_0x4564d1(0xee)];}function qe(_0x239c15,_0x1dffd2,_0x2f6e45){const _0xc12cd9=_0x4278ec;var _0x356ba0;let _0x44c636=Math[_0xc12cd9(0x9b)](_0x1dffd2,_0x2f6e45),_0x666067=Math[_0xc12cd9(0xc8)](_0x1dffd2,_0x2f6e45);return!!((_0x356ba0=_0x239c15[_0xc12cd9(0xe3)])!=null&&_0x356ba0[_0xc12cd9(0xa4)](_0x56ffab=>_0x44c636>_0x56ffab[_0xc12cd9(0x11e)]&&_0x44c636<_0x56ffab[_0xc12cd9(0xf4)]||_0x666067>_0x56ffab[_0xc12cd9(0x11e)]&&_0x666067<_0x56ffab[_0xc12cd9(0xf4)]||_0x44c636<=_0x56ffab['startIndex']&&_0x666067>=_0x56ffab['endIndex']));}function Je(_0x415bde,_0x58628d,_0x20baa9,_0x426421){const _0x3ca067=_0x4278ec;let _0x23ead5=[..._0x415bde[_0x3ca067(0x114)]??[]]['sort']((_0x27d751,_0x4680eb)=>_0x27d751[_0x3ca067(0x11e)]-_0x4680eb[_0x3ca067(0x11e)]),_0x589be5=_0x252574(_0x415bde),_0x3c4764=_0x23ead5[_0x3ca067(0x13a)](_0x2f9650=>j(_0x415bde,_0x2f9650,_0x426421,_0x589be5)<=_0x58628d&&_0x58628d<=_0x2f9650[_0x3ca067(0x11e)]),_0x355abb=_0x23ead5['find'](_0x44c0ac=>_0x44c0ac[_0x3ca067(0x11e)]>=_0x20baa9-0x1)??_0x23ead5[_0x23ead5['length']-0x1];return{'startOffset':_0x3c4764?j(_0x415bde,_0x3c4764,_0x426421,_0x589be5):_0x58628d,'endOffset':_0x355abb?Xe(_0x355abb,_0x426421):_0x20baa9};}function Ye(_0x3ec74f,_0x5bab14){const _0x5d9622=_0x4278ec;let _0x2652e2=[..._0x3ec74f[_0x5d9622(0x114)]??[]][_0x5d9622(0xe6)]((_0x4820f5,_0x2ce758)=>_0x4820f5[_0x5d9622(0x11e)]-_0x2ce758[_0x5d9622(0x11e)]),_0xbe5f49=_0x252574(_0x3ec74f);return _0x2652e2['find'](_0x4a385d=>(_0xbe5f49[_0x5d9622(0x135)](_0x4a385d[_0x5d9622(0x11e)])??0x0)<=_0x5bab14&&_0x5bab14<=_0x4a385d[_0x5d9622(0x11e)]);}function j(_0x4c1279,_0x40a1ec,_0xe1c295,_0x428543){const _0x2f6500=_0x4278ec;let _0x4cd54f=(_0x428543==null?void 0x0:_0x428543[_0x2f6500(0x135)](_0x40a1ec[_0x2f6500(0x11e)]))??_0x2c079f(_0x4c1279,_0x40a1ec);return _0xe1c295?Math[_0x2f6500(0xc8)](_0x4cd54f,_0xe1c295[_0x2f6500(0x129)]):_0x4cd54f;}function Xe(_0x3f5211,_0x1ff471){const _0x2aa80e=_0x4278ec;let _0x10f21e=_0x3f5211['startIndex']+0x1;return _0x1ff471?Math[_0x2aa80e(0x9b)](_0x10f21e,_0x1ff471[_0x2aa80e(0xb3)]):_0x10f21e;}function Ze(_0x26828e,_0x155f06,_0x4e556e){const _0xd884a5=_0x4278ec;let _0x50e8ce=Qe(_0x26828e,_0x155f06),_0x434e84=Qe(_0x26828e,_0x155f06===_0x4e556e?_0x4e556e:Math[_0xd884a5(0xc8)](_0x155f06,_0x4e556e-0x1));if(_0x50e8ce||_0x434e84){if(!_0x50e8ce||!_0x434e84||_0x50e8ce[_0xd884a5(0xdd)]!==_0x434e84[_0xd884a5(0xdd)]||_0x50e8ce[_0xd884a5(0x12c)]!==_0x434e84[_0xd884a5(0x12c)])throw new E();return _0x50e8ce;}}function Qe(_0x23e68e,_0x3ee240){const _0x4049ca=_0x4278ec;let _0x3bd4d8=_0x23e68e['dataStream'],_0x36ad1b=-0x1;for(let _0x4be5bc=Math['min'](_0x3ee240,_0x3bd4d8['length']-0x1);_0x4be5bc>=0x0;_0x4be5bc--){let _0x52708b=_0x3bd4d8[_0x4be5bc];if(_0x52708b===_0x9c6192[_0x4049ca(0xd4)])return;if(_0x52708b===_0x9c6192[_0x4049ca(0x11d)]){_0x36ad1b=_0x4be5bc;break;}}if(_0x36ad1b<0x0)return;let _0x24c6c0=_0x3bd4d8['indexOf'](_0x9c6192[_0x4049ca(0xd4)],_0x36ad1b+0x1);if(!(_0x24c6c0<0x0||_0x3ee240<_0x36ad1b+0x1||_0x3ee240>_0x24c6c0-0x1))return{'startOffset':_0x36ad1b+0x1,'endOffset':Math[_0x4049ca(0xc8)](_0x36ad1b+0x1,_0x24c6c0-0x1),'startTokenOffset':_0x36ad1b,'endTokenOffset':_0x24c6c0};}function M(_0x1cb890){const _0x1ca672=_0x4278ec;return _0x49707a(_0x1cb890)[_0x1ca672(0xb3)]-0x1;}function $e(_0x200fec,_0xe19ae7,_0x507e60,_0x368e88){const _0x1953db=_0x4278ec;let _0x74ef88=M(_0xe19ae7),_0x40a918=(_0x200fec[_0x1953db(0x114)]??[])[_0x1953db(0x13a)](_0x320ea7=>_0x320ea7[_0x1953db(0x11e)]===_0x74ef88+0x1);if(!_0x40a918||_0x368e88!=null&&_0x40a918[_0x1953db(0x11e)]!==_0x368e88||_0x507e60!=null&&(_0x507e60<_0x74ef88||_0x507e60>_0x40a918[_0x1953db(0x11e)]+0x1)||_0x200fec[_0x1953db(0x94)][_0x40a918[_0x1953db(0x11e)]]!==_0x9c6192[_0x1953db(0x12b)])return null;let _0x1abc5b=_0x2c079f(_0x200fec,_0x40a918),_0x3b97aa=_0x200fec[_0x1953db(0x94)][_0x1953db(0x122)](_0x1abc5b,_0x40a918[_0x1953db(0x11e)]);return Array['from'](_0x3b97aa)[_0x1953db(0x126)](_0x3d8cb8=>_0x3d8cb8===_0x9c6192[_0x1953db(0xd7)])?{'paragraph':_0x40a918,'endTokenOffset':_0x74ef88}:null;}function N(_0x20cfae,_0x2cf9bd){const _0x35dd77=_0x4278ec;var _0xc7c892;let _0x56d708=M(_0x2cf9bd),_0x50fd67=_0x20cfae[_0x35dd77(0x94)][_0x56d708+0x1];(_0x50fd67===_0x9c6192[_0x35dd77(0xb7)]||_0x50fd67===void 0x0)&&P(_0x20cfae,_0x56d708+0x1,_0x9c6192[_0x35dd77(0x12b)],{'paragraphs':[{'startIndex':0x0,'paragraphId':_0x533df7(new Set((_0xc7c892=_0x20cfae[_0x35dd77(0x114)])==null?void 0x0:_0xc7c892[_0x35dd77(0xd6)](_0x27471d=>_0x27471d[_0x35dd77(0x134)])))}]});}function P(_0x4db0fe,_0x2b41bc,_0x5e0856,_0x556c5c={}){const _0x1b1955=_0x4278ec;var _0x40fe5b,_0x2ca786;_0x5e0856&&(_0x4db0fe['dataStream']=''+_0x4db0fe[_0x1b1955(0x94)][_0x1b1955(0x122)](0x0,_0x2b41bc)+_0x5e0856+_0x4db0fe[_0x1b1955(0x94)][_0x1b1955(0x122)](_0x2b41bc),et(_0x4db0fe,_0x2b41bc,_0x5e0856[_0x1b1955(0xee)]),(_0x40fe5b=_0x556c5c[_0x1b1955(0x114)])!=null&&_0x40fe5b[_0x1b1955(0xee)]&&(_0x4db0fe[_0x1b1955(0x114)]=[..._0x4db0fe[_0x1b1955(0x114)]??[],..._0x556c5c['paragraphs'][_0x1b1955(0xd6)](_0x423b46=>({..._0x423b46,'startIndex':_0x423b46[_0x1b1955(0x11e)]+_0x2b41bc}))]['sort']((_0x30c416,_0x14f1aa)=>_0x30c416[_0x1b1955(0x11e)]-_0x14f1aa[_0x1b1955(0x11e)])),(_0x2ca786=_0x556c5c[_0x1b1955(0x12e)])!=null&&_0x2ca786['length']&&(_0x4db0fe[_0x1b1955(0x12e)]=[..._0x4db0fe[_0x1b1955(0x12e)]??[],..._0x556c5c[_0x1b1955(0x12e)][_0x1b1955(0xd6)](_0x2bfd5e=>({..._0x2bfd5e,'startIndex':_0x2bfd5e[_0x1b1955(0x11e)]+_0x2b41bc,'endIndex':_0x2bfd5e[_0x1b1955(0xf4)]+_0x2b41bc}))][_0x1b1955(0xe6)]((_0x322b9c,_0x2b121b)=>_0x322b9c['startIndex']-_0x2b121b[_0x1b1955(0x11e)])));}function F(_0xebcfbc,_0x63dd34,_0x13fb09){const _0x323100=_0x4278ec;let _0x206930=_0x13fb09-_0x63dd34;_0xebcfbc[_0x323100(0x94)]=''+_0xebcfbc['dataStream'][_0x323100(0x122)](0x0,_0x63dd34)+_0xebcfbc[_0x323100(0x94)][_0x323100(0x122)](_0x13fb09),tt(_0xebcfbc,_0x63dd34,_0x206930);}function et(_0x5bb7ca,_0x25b707,_0x372b5e){const _0x527b28=_0x4278ec;_0x5bb7ca[_0x527b28(0x114)]=I(_0x5bb7ca['paragraphs'],_0x25b707,_0x372b5e),_0x5bb7ca['sectionBreaks']=I(_0x5bb7ca[_0x527b28(0xa9)],_0x25b707,_0x372b5e),_0x5bb7ca['customBlocks']=I(_0x5bb7ca[_0x527b28(0xed)],_0x25b707,_0x372b5e),_0x5bb7ca[_0x527b28(0xdc)]=nt(_0x5bb7ca[_0x527b28(0xdc)],_0x25b707,_0x372b5e),_0x5bb7ca[_0x527b28(0xe3)]=rt(_0x5bb7ca[_0x527b28(0xe3)],_0x25b707,_0x372b5e),_0x5bb7ca[_0x527b28(0xe5)]=R(_0x5bb7ca['columnGroups'],_0x25b707,_0x372b5e),_0x5bb7ca['customRanges']=R(_0x5bb7ca['customRanges'],_0x25b707,_0x372b5e),_0x5bb7ca[_0x527b28(0x137)]=R(_0x5bb7ca[_0x527b28(0x137)],_0x25b707,_0x372b5e),_0x5bb7ca[_0x527b28(0x12e)]=R(_0x5bb7ca[_0x527b28(0x12e)],_0x25b707,_0x372b5e);}function tt(_0x541b6f,_0x3e4a67,_0x340ec3){const _0x35ef9b=_0x4278ec;var _0xa19bb9,_0x31f6f7;_0x541b6f[_0x35ef9b(0x114)]=L(_0x541b6f[_0x35ef9b(0x114)],_0x3e4a67,_0x340ec3),_0x541b6f['sectionBreaks']=L(_0x541b6f[_0x35ef9b(0xa9)],_0x3e4a67,_0x340ec3),_0x541b6f['customBlocks']=L(_0x541b6f[_0x35ef9b(0xed)],_0x3e4a67,_0x340ec3),_0x541b6f['textRuns']=(_0xa19bb9=it((_0x31f6f7=_0x541b6f[_0x35ef9b(0xdc)])==null?void 0x0:_0x31f6f7['map'](_0x19e291=>({..._0x19e291,'startIndex':_0x19e291['st'],'endIndex':_0x19e291['ed']})),_0x3e4a67,_0x340ec3))==null?void 0x0:_0xa19bb9['map'](_0x5d425c=>{let {startIndex:_0x449124,endIndex:_0x1dec64,..._0x12b2f3}=_0x5d425c;return{..._0x12b2f3,'st':_0x449124,'ed':_0x1dec64};}),_0x541b6f['tables']=it(_0x541b6f[_0x35ef9b(0xe3)],_0x3e4a67,_0x340ec3),_0x541b6f[_0x35ef9b(0xe5)]=z(_0x541b6f[_0x35ef9b(0xe5)],_0x3e4a67,_0x340ec3),_0x541b6f['customRanges']=z(_0x541b6f[_0x35ef9b(0xf9)],_0x3e4a67,_0x340ec3),_0x541b6f[_0x35ef9b(0x137)]=z(_0x541b6f[_0x35ef9b(0x137)],_0x3e4a67,_0x340ec3),_0x541b6f[_0x35ef9b(0x12e)]=z(_0x541b6f[_0x35ef9b(0x12e)],_0x3e4a67,_0x340ec3);}function I(_0x177747,_0x10aab4,_0x1de7a3){const _0x2f2252=_0x4278ec;return _0x177747==null?void 0x0:_0x177747[_0x2f2252(0xd6)](_0x52c550=>_0x52c550[_0x2f2252(0x11e)]>=_0x10aab4?{..._0x52c550,'startIndex':_0x52c550[_0x2f2252(0x11e)]+_0x1de7a3}:_0x52c550);}function L(_0x48d4a1,_0x6e559b,_0x30c7c9){const _0x38c88e=_0x4278ec;let _0x259894=_0x6e559b+_0x30c7c9;return _0x48d4a1==null?void 0x0:_0x48d4a1['map'](_0x6327a3=>_0x6327a3['startIndex']>=_0x6e559b&&_0x6327a3['startIndex']<_0x259894?null:_0x6327a3[_0x38c88e(0x11e)]>=_0x259894?{..._0x6327a3,'startIndex':_0x6327a3[_0x38c88e(0x11e)]-_0x30c7c9}:_0x6327a3)[_0x38c88e(0xd2)](_0x333ad6=>_0x333ad6!=null);}function nt(_0x620631,_0x606bac,_0x62b0){const _0x528aaf=_0x4278ec;return _0x620631==null?void 0x0:_0x620631[_0x528aaf(0xd6)](_0x4f1369=>_0x4f1369['st']>=_0x606bac?{..._0x4f1369,'st':_0x4f1369['st']+_0x62b0,'ed':_0x4f1369['ed']+_0x62b0}:_0x4f1369['ed']>_0x606bac?{..._0x4f1369,'ed':_0x4f1369['ed']+_0x62b0}:_0x4f1369);}function R(_0x20bd3e,_0x27d4a0,_0x1a7f07){const _0x25b3e9=_0x4278ec;return _0x20bd3e==null?void 0x0:_0x20bd3e[_0x25b3e9(0xd6)](_0x432b51=>_0x1bfd00(_0x432b51,_0x27d4a0,_0x1a7f07));}function rt(_0x4582f4,_0x7f83e1,_0x39297e){return _0x4582f4==null?void 0x0:_0x4582f4['map'](_0x383987=>_0x1e6f2b(_0x383987,_0x7f83e1,_0x39297e));}function z(_0x44b577,_0x4e33bf,_0x5d3cf8){const _0xf0f030=_0x4278ec;return _0x44b577==null?void 0x0:_0x44b577['map'](_0x3b6ea6=>_0x31e1ac(_0x3b6ea6,_0x4e33bf,_0x5d3cf8))[_0xf0f030(0xd2)](_0x4b529c=>_0x4b529c!=null);}function it(_0xfbe575,_0x4071dd,_0x237bb0){const _0x5e6f97=_0x4278ec;return _0xfbe575==null?void 0x0:_0xfbe575['map'](_0x365efb=>_0x345255(_0x365efb,_0x4071dd,_0x237bb0))[_0x5e6f97(0xd2)](_0x5042d2=>_0x5042d2!=null);}const at={'id':_0x4278ec(0xfa),'type':_0x45294c[_0x4278ec(0x123)],'handler':_0x1727c9=>{const _0x3d5d08=_0x4278ec;var _0x36e453;if(_0x129d5b(G(_0x1727c9)))return!0x1;let _0x50917d=_0x312935(_0x1727c9);if(_0x50917d)return _0x1727c9[_0x3d5d08(0x135)](_0x1a34c1)[_0x3d5d08(0xcf)](B['id'],{'startOffset':_0x50917d[_0x3d5d08(0x129)],'endOffset':_0x50917d[_0x3d5d08(0xb3)],'insertionMode':'insert-new','unitId':_0x50917d[_0x3d5d08(0xdb)]});let _0x5c019e=ft(_0x1727c9);if(!_0x5c019e)return!0x1;let _0x4b7ab4=(_0x36e453=_0x1727c9[_0x3d5d08(0x135)](_0x2fe26f)[_0x3d5d08(0x91)](_0x30a10b[_0x3d5d08(0x11a)]))==null?void 0x0:_0x36e453[_0x3d5d08(0xd8)](),_0x266993=_0x4b7ab4?_0x3f9e16(_0x4b7ab4,_0x5c019e):_0x5c019e[_0x3d5d08(0x11e)]+0x1;return _0x1727c9[_0x3d5d08(0x135)](_0x1a34c1)[_0x3d5d08(0xcf)](B['id'],{'startOffset':_0x266993,'endOffset':_0x266993});}},ot={'id':_0x4278ec(0xfe),'type':_0x45294c[_0x4278ec(0x123)],'handler':()=>!0x0},B={'id':_0x4278ec(0x107),'type':_0x45294c['COMMAND'],'handler':(_0x3660cf,_0x3d4f64)=>{const _0x3b3035=_0x4278ec;let _0x434561=W(_0x3660cf,_0x3d4f64==null?void 0x0:_0x3d4f64[_0x3b3035(0xdb)]);if(!_0x434561)return!0x1;let _0xd11848=G(_0x3660cf);if(_0x129d5b(_0xd11848))return!0x1;let _0x5d5015=_0x434561['model']['serialize'](_0x434561[_0x3b3035(0xdb)]),_0x2650b3=lt(_0x3d4f64,_0xd11848),_0x3b8371=ut(_0x434561['previousDocumentData'],_0x2650b3);if(_0x3b8371){if(_0x3b8371[_0x3b3035(0xa1)]!==_0xac67e3['CODE'])return!0x1;let _0x1a99ed=D({'blockId':_0x3b8371[_0x3b3035(0xbe)],'documentData':_0x434561[_0x3b3035(0x10d)],'metadata':_0x5d5015});if(!_0x1a99ed)return!0x1;let _0x469aad=Y(_0x434561['commandService'],_0x434561[_0x3b3035(0x98)],_0x434561['unitId'],_0x434561[_0x3b3035(0x10d)],_0x1a99ed[_0x3b3035(0xc2)],B['id'],_0x1a99ed[_0x3b3035(0x128)]);return _0x469aad&&_0x1a99ed[_0x3b3035(0xfb)]&&_0x434561[_0x3b3035(0x92)][_0x3b3035(0x101)](_0x434561['unitId'],_0x1a99ed[_0x3b3035(0xfb)]),_0x469aad;}let _0x340672=(_0x3d4f64==null?void 0x0:_0x3d4f64['blockId'])??_0x5a5615(0x6),_0x30fbf4;try{_0x30fbf4=De({'blockId':_0x340672,'config':_0x3d4f64==null?void 0x0:_0x3d4f64[_0x3b3035(0xf5)],'documentData':_0x434561[_0x3b3035(0x10d)],'endOffset':_0x2650b3==null?void 0x0:_0x2650b3[_0x3b3035(0xb3)],'insertionMode':_0x3d4f64==null?void 0x0:_0x3d4f64[_0x3b3035(0xdf)],'metadata':_0x5d5015,'startOffset':_0x2650b3==null?void 0x0:_0x2650b3[_0x3b3035(0x129)]});}catch(_0x1133d0){if(_0x1133d0 instanceof E)return!0x1;throw _0x1133d0;}let _0x4709b1=Y(_0x434561[_0x3b3035(0xc1)],_0x434561[_0x3b3035(0x98)],_0x434561[_0x3b3035(0xdb)],_0x434561['previousDocumentData'],_0x30fbf4[_0x3b3035(0xc2)],B['id'],_0x30fbf4[_0x3b3035(0x128)]);return _0x4709b1&&_0x30fbf4[_0x3b3035(0xfb)]&&_0x434561['model']['deserialize'](_0x434561[_0x3b3035(0xdb)],_0x30fbf4[_0x3b3035(0xfb)]),_0x4709b1;}},st={'id':'docs-code.command.update','type':_0x45294c[_0x4278ec(0x123)],'handler':(_0x508654,_0x16caba)=>{const _0x232c1e=_0x4278ec;if(!_0x16caba)return!0x1;let _0x5b8988=W(_0x508654,_0x16caba[_0x232c1e(0xdb)]);if(!_0x5b8988)return!0x1;let _0x4cf19b=je({'blockId':_0x16caba[_0x232c1e(0xbe)],'config':_0x16caba[_0x232c1e(0xf5)],'documentData':_0x5b8988[_0x232c1e(0x10d)],'metadata':_0x5b8988[_0x232c1e(0x92)][_0x232c1e(0xba)](_0x5b8988[_0x232c1e(0xdb)])});return _0x4cf19b[_0x232c1e(0xfb)]&&_0x5b8988[_0x232c1e(0x92)][_0x232c1e(0x101)](_0x5b8988['unitId'],_0x4cf19b[_0x232c1e(0xfb)]),!0x0;}},ct={'id':'docs-code.command.exit','type':_0x45294c[_0x4278ec(0x123)],'handler':(_0x2b17b9,_0x403216)=>V[_0x4278ec(0x12a)](_0x2b17b9,_0x403216)},V={'id':_0x4278ec(0xea),'type':_0x45294c[_0x4278ec(0x123)],'handler':(_0x3dd3c0,_0x3a39df)=>{const _0x2fbb82=_0x4278ec;if(!_0x3a39df)return!0x1;let _0xf6c97e=W(_0x3dd3c0,_0x3a39df==null?void 0x0:_0x3a39df[_0x2fbb82(0xdb)]);if(!_0xf6c97e)return!0x1;let _0x353279=D({'blockId':_0x3a39df[_0x2fbb82(0xbe)],'documentData':_0xf6c97e[_0x2fbb82(0x10d)],'metadata':_0xf6c97e[_0x2fbb82(0x92)]['serialize'](_0xf6c97e[_0x2fbb82(0xdb)])});if(!_0x353279)return!0x1;let _0x54f7d5=Y(_0xf6c97e[_0x2fbb82(0xc1)],_0xf6c97e[_0x2fbb82(0x98)],_0xf6c97e[_0x2fbb82(0xdb)],_0xf6c97e[_0x2fbb82(0x10d)],_0x353279[_0x2fbb82(0xc2)],V['id'],_0x353279[_0x2fbb82(0x128)]);return _0x54f7d5&&_0x353279['nextMetadata']&&_0xf6c97e[_0x2fbb82(0x92)][_0x2fbb82(0x101)](_0xf6c97e[_0x2fbb82(0xdb)],_0x353279['nextMetadata']),_0x54f7d5;}},H={'id':_0x4278ec(0x11c),'type':_0x45294c[_0x4278ec(0x123)],'handler':(_0x36a0ff,_0x5846b7)=>{const _0x50f844=_0x4278ec;if(!_0x5846b7)return!0x1;let _0x58d4c2=W(_0x36a0ff,_0x5846b7==null?void 0x0:_0x5846b7[_0x50f844(0xdb)]);if(!_0x58d4c2)return!0x1;let _0x46ed19=Me({'blockId':_0x5846b7[_0x50f844(0xbe)],'documentData':_0x58d4c2[_0x50f844(0x10d)],'metadata':_0x58d4c2['model']['serialize'](_0x58d4c2[_0x50f844(0xdb)])});if(!_0x46ed19)return!0x1;let _0x46623a=Y(_0x58d4c2['commandService'],_0x58d4c2[_0x50f844(0x98)],_0x58d4c2['unitId'],_0x58d4c2[_0x50f844(0x10d)],_0x46ed19[_0x50f844(0xc2)],H['id'],_0x46ed19[_0x50f844(0x128)]);return _0x46623a&&_0x46ed19[_0x50f844(0xfb)]&&_0x58d4c2[_0x50f844(0x92)][_0x50f844(0x101)](_0x58d4c2[_0x50f844(0xdb)],_0x46ed19[_0x50f844(0xfb)]),_0x46623a;}},U={'id':'docs-code.command.cancel-empty-paragraph','type':_0x45294c['COMMAND'],'handler':(_0x564410,_0x5abb36)=>{const _0x227453=_0x4278ec;var _0x41f562;let _0x41e53c=W(_0x564410,_0x5abb36==null?void 0x0:_0x5abb36['unitId']);if(!_0x41e53c)return!0x1;let _0x4bacbc=(_0x5abb36==null?void 0x0:_0x5abb36[_0x227453(0x128)])??((_0x41f562=G(_0x564410))==null?void 0x0:_0x41f562[_0x227453(0x129)]);if(_0x4bacbc==null)return!0x1;let _0x408cdf=Ne({'cursorOffset':_0x4bacbc,'documentData':_0x41e53c[_0x227453(0x10d)],'paragraphStartIndex':_0x5abb36==null?void 0x0:_0x5abb36['paragraphStartIndex']});return _0x408cdf?Y(_0x41e53c['commandService'],_0x41e53c[_0x227453(0x98)],_0x41e53c[_0x227453(0xdb)],_0x41e53c[_0x227453(0x10d)],_0x408cdf[_0x227453(0xc2)],U['id'],_0x408cdf['cursorOffset']):!0x1;}};function W(_0x477734,_0x34c9d4){const _0x222556=_0x4278ec;let _0x1b41e2=_0x477734['get'](_0x2fe26f),_0x50162d=_0x34c9d4?_0x1b41e2[_0x222556(0x10b)](_0x34c9d4,_0x30a10b[_0x222556(0x11a)]):_0x1b41e2[_0x222556(0x91)](_0x30a10b[_0x222556(0x11a)]);return _0x50162d?{'commandService':_0x477734[_0x222556(0x135)](_0x1a34c1),'model':_0x477734[_0x222556(0x135)](w),'previousDocumentData':_0x50162d[_0x222556(0xa5)](),'selectionManager':_0x477734[_0x222556(0x135)](_0x1e01f3),'unitId':_0x50162d[_0x222556(0xaf)]()}:null;}function G(_0x1c881b){const _0x2ee128=_0x4278ec;var _0x4062a2;return(_0x4062a2=_0x1c881b[_0x2ee128(0x135)](_0x1e01f3)[_0x2ee128(0x117)]())==null?void 0x0:_0x4062a2[0x0];}function lt(_0x6c0fa8,_0x1d2352){const _0x433029=_0x4278ec;let _0x33d9fd=(_0x6c0fa8==null?void 0x0:_0x6c0fa8['startOffset'])??(_0x1d2352==null?void 0x0:_0x1d2352[_0x433029(0x129)]),_0x1acb7c=(_0x6c0fa8==null?void 0x0:_0x6c0fa8[_0x433029(0xb3)])??(_0x1d2352==null?void 0x0:_0x1d2352[_0x433029(0xb3)]);if(_0x33d9fd!=null&&_0x1acb7c!=null)return{'endOffset':Math[_0x433029(0xc8)](_0x33d9fd,_0x1acb7c),'startOffset':Math[_0x433029(0x9b)](_0x33d9fd,_0x1acb7c)};}function ut(_0x55f3a9,_0x59f0a7){const _0x83f9a=_0x4278ec;var _0x28f028;if(!_0x59f0a7)return;let _0x847246=dt(_0x59f0a7);return(_0x28f028=_0x55f3a9[_0x83f9a(0x133)])==null||(_0x28f028=_0x28f028['blockRanges'])==null?void 0x0:_0x28f028[_0x83f9a(0x13a)](_0x329b8a=>{const _0x54e421=_0x83f9a;let _0x41c58d=_0x49707a(_0x329b8a);return _0x59f0a7[_0x54e421(0x129)]===_0x59f0a7[_0x54e421(0xb3)]?_0x27820e(_0x41c58d,_0x847246):_0x42e0ef(_0x41c58d,_0x847246);});}function dt(_0x1bf3e5){const _0x4ef606=_0x4278ec;return _0x1bf3e5['startOffset']===_0x1bf3e5[_0x4ef606(0xb3)]?_0x1bf3e5[_0x4ef606(0x129)]:_0x1bf3e5[_0x4ef606(0x129)]+0x1;}function ft(_0x5ecbff){const _0x140f36=_0x4278ec;let _0x20b402=G(_0x5ecbff);if(!_0x20b402)return null;let _0x2dd1e8=_0x5ecbff[_0x140f36(0x135)](_0x2fe26f)[_0x140f36(0x91)](_0x30a10b['UNIVER_DOC']),_0x20d771=_0x2dd1e8==null?void 0x0:_0x2dd1e8[_0x140f36(0xd8)]();return _0x20d771?_0x20804f['range'][_0x140f36(0xaa)](_0x20b402,_0x20d771[_0x140f36(0x114)]??[],_0x20d771[_0x140f36(0x94)]??'')[0x0]??null:null;}function pt(_0x54b88e,_0x1fba91){const _0x47d867=_0x4278ec;let _0x490fd4=_0x54b88e[_0x47d867(0x133)],_0x4fddd8=_0x1fba91['body'],_0x2c4c33=_0x460607(_0x490fd4,_0x4fddd8);return[_0x2c4c33&&_0x4fddd8?mt(_0x4fddd8,_0x2c4c33):null,_0x2c4c33?null:ht(_0x490fd4,_0x4fddd8)][_0x47d867(0xd2)](Boolean)[_0x47d867(0xcd)]((_0x46a640,_0x3e5ae8)=>_0xa0927a[_0x47d867(0xb1)](_0x46a640,_0x3e5ae8),null);}function mt(_0x4b826f,_0x3dd650){const _0x3bdf18=_0x4278ec;let _0x140dab=new _0xaed83f();return _0x140dab[_0x3bdf18(0x139)](_0x3dd650[_0x3bdf18(0xa0)]),_0x3dd650[_0x3bdf18(0x121)]>0x0&&_0x140dab[_0x3bdf18(0x9c)](_0x3dd650[_0x3bdf18(0x121)],_0x285f89(_0x4b826f,_0x3dd650[_0x3bdf18(0xa0)],_0x3dd650[_0x3bdf18(0xa0)]+_0x3dd650['insertLength'],!0x1)),_0x3dd650[_0x3bdf18(0xbf)]>0x0&&_0x140dab[_0x3bdf18(0xc6)](_0x3dd650[_0x3bdf18(0xbf)]),_0xa0927a[_0x3bdf18(0xe2)]()[_0x3bdf18(0x10a)](_0x140dab[_0x3bdf18(0xba)](),[_0x3bdf18(0x133)]);}function ht(_0x10df4f,_0x37288b){const _0x13f1f3=_0x4278ec;let _0x93618=[],_0x5aeb35=_0x10df4f?_t(_0x10df4f):void 0x0,_0x11a88e=_0x37288b?_t(_0x37288b):void 0x0;for(let _0x1cf5e6 of gt)K(_0xa0927a[_0x13f1f3(0xe2)](),[_0x13f1f3(0x133),_0x1cf5e6],_0x5aeb35==null?void 0x0:_0x5aeb35[_0x1cf5e6],_0x11a88e==null?void 0x0:_0x11a88e[_0x1cf5e6],_0x93618);return _0x93618[_0x13f1f3(0xcd)]((_0x5bd6b7,_0x239a68)=>_0xa0927a['compose'](_0x5bd6b7,_0x239a68),null);}const gt=[_0x4278ec(0x114),_0x4278ec(0xa9),_0x4278ec(0xe3),_0x4278ec(0xe5),_0x4278ec(0x12e),'customBlocks','customRanges',_0x4278ec(0x137),_0x4278ec(0xdc)];function _t(_0x165bfa){return _0x165bfa;}function K(_0x5b2771,_0x3ba98a,_0x4801ac,_0x13a8c8,_0x13ae3e){const _0x47049d=_0x4278ec;J(_0x4801ac,_0x13a8c8)||(_0x4801ac==null?_0x13ae3e[_0x47049d(0x93)](_0x5b2771[_0x47049d(0xf1)](_0x3ba98a,_0x13a8c8)):_0x13a8c8==null?_0x13ae3e[_0x47049d(0x93)](_0x5b2771['removeOp'](_0x3ba98a,_0x4801ac)):Array[_0x47049d(0x13b)](_0x4801ac)&&Array['isArray'](_0x13a8c8)?vt(_0x5b2771,_0x3ba98a,_0x4801ac,_0x13a8c8,_0x13ae3e):q(_0x4801ac)&&q(_0x13a8c8)?new Set([...Object['keys'](_0x4801ac),...Object[_0x47049d(0xc4)](_0x13a8c8)])[_0x47049d(0xb9)](_0x118146=>{K(_0x5b2771,[..._0x3ba98a,_0x118146],_0x4801ac[_0x118146],_0x13a8c8[_0x118146],_0x13ae3e);}):_0x13ae3e[_0x47049d(0x93)](_0x5b2771[_0x47049d(0x124)](_0x3ba98a,_0x4801ac,_0x13a8c8)));}function vt(_0x4a4b23,_0x4b7c3c,_0x380b93,_0x553172,_0x8dd336){const _0x31610b=_0x4278ec;if(_0x380b93['length']===_0x553172[_0x31610b(0xee)]){_0x380b93[_0x31610b(0xb9)]((_0xf0243e,_0x2829ba)=>K(_0x4a4b23,[..._0x4b7c3c,_0x2829ba],_0xf0243e,_0x553172[_0x2829ba],_0x8dd336));return;}let _0x1fc3d8=0x0;for(;_0x1fc3d8<_0x380b93[_0x31610b(0xee)]&&_0x1fc3d8<_0x553172[_0x31610b(0xee)]&&J(_0x380b93[_0x1fc3d8],_0x553172[_0x1fc3d8]);)_0x1fc3d8++;let _0x3c9026=_0x380b93[_0x31610b(0xee)]-0x1,_0x3c63d9=_0x553172[_0x31610b(0xee)]-0x1;for(;_0x3c9026>=_0x1fc3d8&&_0x3c63d9>=_0x1fc3d8&&J(_0x380b93[_0x3c9026],_0x553172[_0x3c63d9]);)_0x3c9026--,_0x3c63d9--;for(let _0x28b19a=_0x3c9026;_0x28b19a>=_0x1fc3d8;_0x28b19a--)_0x8dd336['push'](_0x4a4b23['removeOp']([..._0x4b7c3c,_0x28b19a],_0x380b93[_0x28b19a]));for(let _0x43491d=_0x1fc3d8;_0x43491d<=_0x3c63d9;_0x43491d++)_0x8dd336['push'](_0x4a4b23[_0x31610b(0xf1)]([..._0x4b7c3c,_0x43491d],_0x553172[_0x43491d]));}function q(_0x115ee4){const _0x32fdf5=_0x4278ec;return typeof _0x115ee4==_0x32fdf5(0xfc)&&!!_0x115ee4&&!Array['isArray'](_0x115ee4);}function J(_0x5981b2,_0x4e08df){const _0x1c72a9=_0x4278ec;return JSON[_0x1c72a9(0x125)](_0x5981b2)===JSON[_0x1c72a9(0x125)](_0x4e08df);}function Y(_0x3e8cdb,_0x3fc174,_0x4e93a6,_0x20e275,_0x529f85,_0x1e9b12,_0x46a8f6){const _0x4ac24e=_0x4278ec;let _0x3c2a98=pt(_0x20e275,_0x529f85);return _0x3c2a98?!!_0x3e8cdb[_0x4ac24e(0xcf)](_0x31ecbf['id'],{'unitId':_0x4e93a6,'actions':_0x3c2a98,'textRanges':[{'startOffset':_0x46a8f6,'endOffset':_0x46a8f6,'collapsed':!0x0}],'isEditing':!0x1,'trigger':_0x1e9b12}):(_0x3fc174[_0x4ac24e(0x106)]([{'startOffset':_0x46a8f6,'endOffset':_0x46a8f6}],{'unitId':_0x4e93a6,'subUnitId':_0x4e93a6},!0x1),!0x0);}const X=_0x4278ec(0x100);function _0x57e9(_0x26229e,_0x3b7941){_0x26229e=_0x26229e-0x90;const _0x1bbf03=_0x1bbf();let _0x57e903=_0x1bbf03[_0x26229e];return _0x57e903;}var yt=_0x4278ec(0x130),bt=_0x4278ec(0xf8);const xt={};function Z(_0x4954a6,_0x5978aa){return function(_0x47b23a,_0x2a1b54){_0x5978aa(_0x47b23a,_0x2a1b54,_0x4954a6);};}function St(_0x1e83df,_0x21fee1,_0x52db37,_0x2e442a){const _0x4d29b1=_0x4278ec;var _0x312df7=arguments[_0x4d29b1(0xee)],_0x7ca8f1=_0x312df7<0x3?_0x21fee1:_0x2e442a===null?_0x2e442a=Object['getOwnPropertyDescriptor'](_0x21fee1,_0x52db37):_0x2e442a,_0x22a74e;if(typeof Reflect==_0x4d29b1(0xfc)&&typeof Reflect['decorate']==_0x4d29b1(0x110))_0x7ca8f1=Reflect[_0x4d29b1(0x11b)](_0x1e83df,_0x21fee1,_0x52db37,_0x2e442a);else{for(var _0x1e69a2=_0x1e83df['length']-0x1;_0x1e69a2>=0x0;_0x1e69a2--)(_0x22a74e=_0x1e83df[_0x1e69a2])&&(_0x7ca8f1=(_0x312df7<0x3?_0x22a74e(_0x7ca8f1):_0x312df7>0x3?_0x22a74e(_0x21fee1,_0x52db37,_0x7ca8f1):_0x22a74e(_0x21fee1,_0x52db37))||_0x7ca8f1);}return _0x312df7>0x3&&_0x7ca8f1&&Object[_0x4d29b1(0xc7)](_0x21fee1,_0x52db37,_0x7ca8f1),_0x7ca8f1;}let Q=class extends _0x1ccbbc{constructor(_0x27edf5,_0x491879){const _0x4d286a=_0x4278ec;super(),this['_resourceManagerService']=_0x27edf5,this[_0x4d286a(0x138)]=_0x491879,this[_0x4d286a(0xc5)]();}[_0x4278ec(0xc5)](){const _0x326ba8=_0x4278ec;this['disposeWithMe'](this[_0x326ba8(0xb5)][_0x326ba8(0xcc)]({'pluginName':X,'businesses':[_0x30a10b[_0x326ba8(0x11a)]],'toJson':_0x2c517d=>JSON[_0x326ba8(0x125)](this[_0x326ba8(0x138)][_0x326ba8(0xba)](_0x2c517d)),'parseJson':_0x3c5a02=>y(JSON['parse'](_0x3c5a02)),'onLoad':(_0x4071fe,_0x462d17)=>this[_0x326ba8(0x138)]['deserialize'](_0x4071fe,_0x462d17),'onUnLoad':_0x2343a1=>this[_0x326ba8(0x138)][_0x326ba8(0x11f)](_0x2343a1)}));}};Q=St([Z(0x0,_0x134f76),Z(0x1,_0x2b0865(w))],Q);function _0x1bbf(){const _0x14a5e0=['blockRanges','call','@univerjs-pro/docs-code','codes','registerCommand','body','paragraphId','get','setConfig','customDecorations','_docsCodeModel','retain','find','isArray','4AHSlWa','getCurrentUnitOfType','model','push','dataStream','metadata','_configService','complete','selectionManager','MUTATION','1394667bOuSLk','min','insert','_change$','_setResource','direction','start','blockType','keepLines','disposeWithMe','some','getSnapshot','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','CODE','Insert\x20range\x20cannot\x20overlap\x20an\x20existing\x20document\x20block','sectionBreaks','getParagraphsInRange','docs-code.mutation.remove-config','right','prototype','FALSE','getUnitId','bullet','compose','next','endOffset','string','_resourceManagerService','TRUE','SECTION_BREAK','3999970akNuVN','forEach','serialize','onStarting','_resources','type','blockId','deleteLength','docs-code.config','commandService','nextDocumentData','packageName','keys','_initResource','delete','defineProperty','max','version','set','795179QDsyBD','registerPluginResource','reduce','indentStart','syncExecuteCommand','asObservable','1974AOwdEN','filter','clear','TABLE_CELL_END','left','map','BLOCK_END','getBody','change$','_commandService','unitId','textRuns','startTokenOffset','BLOCK_START','insertionMode','233337IvatbR','paragraphStartIndex','getInstance','tables','documentData','columnGroups','sort','textStyle','fromEntries','_config','docs-code.command.unwrap','setCodeConfig','24odtdFJ','customBlocks','length','default','javascript','insertOp','iterator','endsWith','endIndex','config','6895vXgSeP','Insert\x20range\x20cannot\x20cross\x20table\x20cell\x20boundaries','1.3.1','customRanges','docs-code.command.insert-below','nextMetadata','object','symbol','docs-code.command.consume-boundary-delete','paragraphStyle','DOC_CODE_PLUGIN','deserialize','11LAAFoL','columns','toPrimitive','spaceBelow','replaceDocRanges','docs-code.command.insert','2wyLwUB','removeCode','editOp','getUnit','pluginName','previousDocumentData','monospace','327052jloilN','function','indentEnd','_injector','Document\x20body\x20is\x20required','paragraphs','dispose','add','getTextRanges','constructor','spaceAbove','UNIVER_DOC','decorate','docs-code.command.remove','TABLE_CELL_START','startIndex','removeUnit','266511iUYQom','insertLength','slice','COMMAND','replaceOp','stringify','every','entries','cursorOffset','startOffset','handler','PARAGRAPH','endTokenOffset','336nbPQzl'];_0x1bbf=function(){return _0x14a5e0;};return _0x1bbf();}let $=class extends _0x25c4b9{constructor(_0x33570e=xt,_0x3481ce,_0x5790d7,_0x3c57df){const _0x51d1fc=_0x4278ec;super(),this['_config']=_0x33570e,this[_0x51d1fc(0x112)]=_0x3481ce,this[_0x51d1fc(0xda)]=_0x5790d7,this[_0x51d1fc(0x96)]=_0x3c57df;let {..._0x89248c}=_0x374a9d({},xt,this[_0x51d1fc(0xe9)]);this[_0x51d1fc(0x96)][_0x51d1fc(0x136)](_0x51d1fc(0xc0),_0x89248c);}[_0x4278ec(0xbb)](){const _0x55fe69=_0x4278ec;this[_0x55fe69(0x112)][_0x55fe69(0x116)]([w]),this['_injector'][_0x55fe69(0x116)]([Q]),this['_injector']['get'](w),this[_0x55fe69(0x112)]['get'](Q),[B,at,st,V,H,ct,U,ot,Te,T][_0x55fe69(0xb9)](_0x390560=>this[_0x55fe69(0xa3)](this[_0x55fe69(0xda)][_0x55fe69(0x132)](_0x390560)));}};C($,_0x4278ec(0x10c),X),C($,_0x4278ec(0xc3),yt),C($,_0x4278ec(0xc9),bt),C($,_0x4278ec(0xbd),_0x30a10b[_0x4278ec(0x11a)]),$=St([_0x85efd(_0x509979,_0x1e99e0),Z(0x1,_0x2b0865(_0x650f9e)),Z(0x2,_0x1a34c1),Z(0x3,_0x48b9b0)],$);export{X as DOCS_CODE_PLUGIN,U as DocsCodeCancelEmptyParagraphCommand,ot as DocsCodeConsumeBoundaryDeleteCommand,at as DocsCodeInsertBelowCommand,B as DocsCodeInsertCommand,w as DocsCodeModel,H as DocsCodeRemoveCommand,V as DocsCodeUnwrapCommand,st as DocsCodeUpdateCommand,T as RemoveDocsCodeConfigMutation,Te as SetDocsCodeConfigMutation,$ as UniverDocsCodePlugin,Ne as buildCancelEmptyCodeParagraphActions,Ie as isCodeBoundaryDelete,v as normalizeDocsCodeConfig,y as normalizeDocsCodeMetadataResource};
1
+ const _0x57053a=_0x56e2;(function(_0x42aca5,_0x8e2ae8){const _0x547404=_0x56e2,_0x25b5bb=_0x42aca5();while(!![]){try{const _0xb0e04f=parseInt(_0x547404(0xfc))/0x1+-parseInt(_0x547404(0x14e))/0x2*(parseInt(_0x547404(0x103))/0x3)+parseInt(_0x547404(0x16b))/0x4*(-parseInt(_0x547404(0x15d))/0x5)+parseInt(_0x547404(0x14b))/0x6+-parseInt(_0x547404(0x12a))/0x7+parseInt(_0x547404(0xfb))/0x8+parseInt(_0x547404(0x12b))/0x9;if(_0xb0e04f===_0x8e2ae8)break;else _0x25b5bb['push'](_0x25b5bb['shift']());}catch(_0x5e0d6f){_0x25b5bb['push'](_0x25b5bb['shift']());}}}(_0x34b4,0xc8d80));import{BooleanNumber as _0x30d53f,BuildTextUtils as _0x2575ad,CommandType as _0x315486,DataStreamTreeTokenType as _0x323fa8,DependentOn as _0x3f0dd1,Disposable as _0x450405,DocumentBlockRangeType as _0xbd26d4,ICommandService as _0x31742c,IConfigService as _0x46b4a8,IResourceManagerService as _0x52c202,IUniverInstanceService as _0x2889e4,Inject as _0x5b34a9,Injector as _0x25ae8a,JSONX as _0x286f05,Plugin as _0x421146,TextX as _0x1b4382,UniverInstanceType as _0x27b52e,containsInteriorInsertionOffset as _0x33b8d6,containsStreamIndex as _0x1919fa,createParagraphId as _0x876db1,generateRandomId as _0x53354e,getBlockRangeInterval as _0x261e87,getBodySliceForTextXAction as _0x1d577d,getParagraphContentStartOffset as _0xcc790f,getParagraphContentStartOffsets as _0x5adc3e,getParagraphFollowingBlockOffset as _0xd671e9,getSingleDataStreamChange as _0x24c61a,intersectsOperationalIntervals as _0x2ab5be,merge as _0x3d1bfe,shiftExclusiveRangeOnDelete as _0x474d57,shiftExclusiveRangeOnInsert as _0x4e29ec,shiftInclusiveRangeOnDelete as _0x58cb39,shiftInclusiveRangeOnInsert as _0x382399}from'@univerjs/core';import{Subject as _0x9c8de8}from'rxjs';import{DocSelectionManagerService as _0x17b7d0,RichTextEditingMutation as _0x4c6056,UniverDocsPlugin as _0x55e803,getContentInsertRange as _0xbfd420,isHeaderFooterSelection as _0x2a1741}from'@univerjs/docs';import{UniverLicensePlugin as _0xbf8067}from'@univerjs-pro/license';const Se={'language':_0x57053a(0xf4),'showLineNumbers':!0x1,'tabSize':0x4,'wrap':!0x0};function v(_0x588c7a){return{...Se,..._0x588c7a};}function y(_0x5d8485){const _0xf3ffc6=_0x57053a;let _0x236269=(_0x5d8485==null?void 0x0:_0x5d8485[_0xf3ffc6(0x10c)])??{};return{'codes':Object['fromEntries'](Object[_0xf3ffc6(0x163)](_0x236269)[_0xf3ffc6(0x15b)](([_0x33557b,_0x2a94a7])=>[_0x33557b,v(_0x2a94a7)]))};}function b(_0x4c0a85,_0x30dfb9,_0xbb52f0){const _0x218717=_0x57053a;let _0x496616=y(_0x4c0a85);return _0x496616[_0x218717(0x10c)][_0x30dfb9]=v({..._0x496616[_0x218717(0x10c)][_0x30dfb9],..._0xbb52f0}),_0x496616;}function x(_0x2de8a6,_0x570d59){const _0x40b509=_0x57053a;let _0x3acc54=y(_0x2de8a6);return delete _0x3acc54[_0x40b509(0x10c)][_0x570d59],_0x3acc54;}function S(_0x2858d1){'@babel/helpers - typeof';const _0x16240a=_0x57053a;return S=typeof Symbol==_0x16240a(0xeb)&&typeof Symbol['iterator']==_0x16240a(0x130)?function(_0x10dedd){return typeof _0x10dedd;}:function(_0x68c3e1){const _0x26f94c=_0x16240a;return _0x68c3e1&&typeof Symbol==_0x26f94c(0xeb)&&_0x68c3e1['constructor']===Symbol&&_0x68c3e1!==Symbol[_0x26f94c(0x105)]?'symbol':typeof _0x68c3e1;},S(_0x2858d1);}function Ce(_0x49fdd5,_0x2707f6){const _0x2518f4=_0x57053a;if(S(_0x49fdd5)!='object'||!_0x49fdd5)return _0x49fdd5;var _0x310bdf=_0x49fdd5[Symbol[_0x2518f4(0x133)]];if(_0x310bdf!==void 0x0){var _0x15f78e=_0x310bdf[_0x2518f4(0xe9)](_0x49fdd5,_0x2707f6||_0x2518f4(0x17e));if(S(_0x15f78e)!=_0x2518f4(0x109))return _0x15f78e;throw TypeError(_0x2518f4(0x11b));}return(_0x2707f6===_0x2518f4(0x176)?String:Number)(_0x49fdd5);}function we(_0xff82cd){const _0x311229=_0x57053a;var _0x37925d=Ce(_0xff82cd,_0x311229(0x176));return S(_0x37925d)==_0x311229(0x130)?_0x37925d:_0x37925d+'';}function C(_0x372847,_0x3385f0,_0x42bcb8){const _0xaed75b=_0x57053a;return(_0x3385f0=we(_0x3385f0))in _0x372847?Object[_0xaed75b(0xec)](_0x372847,_0x3385f0,{'value':_0x42bcb8,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x372847[_0x3385f0]=_0x42bcb8,_0x372847;}var w=class extends _0x450405{constructor(..._0x511218){const _0xb22ae8=_0x57053a;super(..._0x511218),C(this,_0xb22ae8(0x17b),new Map()),C(this,'_change$',new _0x9c8de8()),C(this,'change$',this[_0xb22ae8(0x18a)][_0xb22ae8(0x16a)]());}[_0x57053a(0x182)](_0x56cf98,_0x2ddf88){const _0x1056b5=_0x57053a;return y(this[_0x1056b5(0x17b)][_0x1056b5(0x17c)](_0x56cf98))[_0x1056b5(0x10c)][_0x2ddf88];}['setCodeConfig'](_0xa9b4c3,_0x3b16ff,_0x377520){const _0x3652a4=_0x57053a;this[_0x3652a4(0x13e)](_0xa9b4c3,_0x3b16ff,b(this[_0x3652a4(0x17b)][_0x3652a4(0x17c)](_0xa9b4c3),_0x3b16ff,_0x377520));}[_0x57053a(0x114)](_0x241db1,_0xbf8026){const _0x126d77=_0x57053a;this[_0x126d77(0x13e)](_0x241db1,_0xbf8026,x(this[_0x126d77(0x17b)][_0x126d77(0x17c)](_0x241db1),_0xbf8026));}[_0x57053a(0x116)](_0x485768){const _0x4bd739=_0x57053a;return y(this[_0x4bd739(0x17b)][_0x4bd739(0x17c)](_0x485768));}[_0x57053a(0x169)](_0x4598a8,_0x4d115d){const _0x5b1b51=_0x57053a;this['_resources']['set'](_0x4598a8,y(_0x4d115d)),this[_0x5b1b51(0x18a)]['next']({'unitId':_0x4598a8});}['removeUnit'](_0x23f55f){const _0x47f8c2=_0x57053a;this[_0x47f8c2(0x17b)][_0x47f8c2(0x188)](_0x23f55f),this[_0x47f8c2(0x18a)]['next']({'unitId':_0x23f55f});}['dispose'](){const _0x3e56b3=_0x57053a;super[_0x3e56b3(0x167)](),this[_0x3e56b3(0x17b)][_0x3e56b3(0x153)](),this[_0x3e56b3(0x18a)]['complete']();}['_setResource'](_0x5ed8b4,_0x4d01f1,_0x531cf3){const _0x243ab6=_0x57053a;this[_0x243ab6(0x17b)][_0x243ab6(0x16f)](_0x5ed8b4,_0x531cf3),this[_0x243ab6(0x18a)][_0x243ab6(0xef)]({'unitId':_0x5ed8b4,'blockId':_0x4d01f1});}};const Te={'id':_0x57053a(0xee),'type':_0x315486['MUTATION'],'handler':(_0x32b0ed,_0x2b8f22)=>!(_0x2b8f22!=null&&_0x2b8f22[_0x57053a(0xf9)])||!_0x2b8f22[_0x57053a(0x126)]?!0x1:(_0x32b0ed['get'](w)[_0x57053a(0x12d)](_0x2b8f22[_0x57053a(0xf9)],_0x2b8f22[_0x57053a(0x126)],_0x2b8f22['config']),!0x0)},T={'id':_0x57053a(0x113),'type':_0x315486['MUTATION'],'handler':(_0x1afc7b,_0x52694c)=>!(_0x52694c!=null&&_0x52694c['unitId'])||!_0x52694c['blockId']?!0x1:(_0x1afc7b[_0x57053a(0x17c)](w)[_0x57053a(0x114)](_0x52694c['unitId'],_0x52694c[_0x57053a(0x126)]),!0x0)},Ee=_0x57053a(0x14d);var E=class extends Error{constructor(_0x39ac1b=_0x57053a(0x17f)){super(_0x39ac1b);}};function De(_0x5340cd){const _0x57ffa1=_0x57053a;var _0x4f9ae4;let _0x29a9fe=O(_0x5340cd[_0x57ffa1(0x14a)]),_0x5f22ab=A(_0x29a9fe),_0x543d98=ke(_0x5340cd['startOffset'],_0x5340cd[_0x57ffa1(0x132)]),_0x163e23=_0x543d98?(_0x4f9ae4=_0x5f22ab[_0x57ffa1(0x13a)])==null?void 0x0:_0x4f9ae4[_0x57ffa1(0x115)](_0x271ede=>{const _0x58d927=_0x57ffa1;let _0x3cfd38=_0x261e87(_0x271ede);return _0x3cfd38[_0x58d927(0x14c)]===_0x543d98['startOffset']&&_0x3cfd38['endOffset']===_0x543d98[_0x58d927(0x132)];}):void 0x0,{startOffset:_0x4eb01c,endOffset:_0x50859c}=_0x163e23?_0x543d98:We(_0x5f22ab,_0x5340cd[_0x57ffa1(0x14c)],_0x5340cd[_0x57ffa1(0x132)],_0x5340cd[_0x57ffa1(0xf0)]);if(!_0x163e23&&Ae(_0x5f22ab,_0x4eb01c,_0x50859c))throw new E(_0x57ffa1(0x184));let _0x44ef93=qe(_0x5f22ab,_0x4eb01c,_0x50859c),_0x14ea97=(_0x163e23==null?void 0x0:_0x163e23['blockId'])??_0x5340cd['blockId'],_0x49e69b=b(_0x5340cd[_0x57ffa1(0x110)],_0x14ea97,{...Se,..._0x5340cd[_0x57ffa1(0x161)]});if(_0x163e23)return _0x163e23[_0x57ffa1(0x18b)]=_0xbd26d4[_0x57ffa1(0x139)],Oe(_0x5f22ab,_0x4eb01c,_0x50859c),ze(_0x5f22ab,_0x4eb01c,_0x50859c,_0x44ef93),N(_0x5f22ab,_0x163e23),{'nextDocumentData':_0x29a9fe,'nextMetadata':_0x49e69b,'cursorOffset':_0x4eb01c+0x1};if(_0x4eb01c===_0x50859c){var _0xc7def0,_0x5cee23;let _0x2642cc=''+_0x323fa8[_0x57ffa1(0x11e)]+_0x323fa8[_0x57ffa1(0x112)]+_0x323fa8[_0x57ffa1(0x137)];P(_0x5f22ab,_0x4eb01c,_0x2642cc,{'paragraphs':[{'startIndex':0x1,'paragraphId':_0x876db1(new Set((_0xc7def0=_0x5f22ab['paragraphs'])==null?void 0x0:_0xc7def0[_0x57ffa1(0x15b)](_0x5c00fb=>_0x5c00fb[_0x57ffa1(0x12c)]))),'paragraphStyle':Re(!0x0,!0x0,_0x44ef93)}],'blockRanges':[{'blockId':_0x14ea97,'blockType':_0xbd26d4[_0x57ffa1(0x139)],'startIndex':0x0,'endIndex':_0x2642cc['length']-0x1}]});let _0x1343ab=(_0x5cee23=_0x5f22ab[_0x57ffa1(0x13a)])==null?void 0x0:_0x5cee23[_0x57ffa1(0x115)](_0x223cd2=>_0x223cd2[_0x57ffa1(0x126)]===_0x14ea97);return _0x1343ab&&N(_0x5f22ab,_0x1343ab),{'nextDocumentData':_0x29a9fe,'nextMetadata':_0x49e69b,'cursorOffset':_0x4eb01c+0x1};}P(_0x5f22ab,_0x50859c,_0x323fa8[_0x57ffa1(0x137)]),P(_0x5f22ab,_0x4eb01c,_0x323fa8[_0x57ffa1(0x11e)]),ze(_0x5f22ab,_0x4eb01c,_0x50859c+0x1,_0x44ef93);let _0x4a100d={'blockId':_0x14ea97,'blockType':_0xbd26d4[_0x57ffa1(0x139)],'startIndex':_0x4eb01c,'endIndex':_0x50859c+0x1};return _0x5f22ab[_0x57ffa1(0x13a)]=[..._0x5f22ab[_0x57ffa1(0x13a)]??[],_0x4a100d]['sort']((_0x4a247c,_0x4b1b41)=>_0x4a247c[_0x57ffa1(0x123)]-_0x4b1b41['startIndex']),N(_0x5f22ab,_0x4a100d),{'nextDocumentData':_0x29a9fe,'nextMetadata':_0x49e69b,'cursorOffset':_0x4eb01c+0x1};}function Oe(_0x272507,_0x455ea5,_0x4145eb){const _0x182bbc=_0x57053a;(_0x272507[_0x182bbc(0x149)]??[])['filter'](_0x20958e=>_0x20958e[_0x182bbc(0x123)]>_0x455ea5&&_0x20958e['startIndex']<_0x4145eb)[_0x182bbc(0x129)](_0x4dfb56=>{const _0x379d02=_0x182bbc;let _0x18e49e={..._0x4dfb56[_0x379d02(0x187)]??{}};delete _0x18e49e[_0x379d02(0x156)],delete _0x18e49e[_0x379d02(0x11c)],_0x4dfb56[_0x379d02(0x187)]=_0x18e49e;});}function ke(_0x18402b,_0x2b4397){const _0x2741b3=_0x57053a;return _0x18402b==null||_0x2b4397==null||_0x18402b===_0x2b4397?null:{'startOffset':Math[_0x2741b3(0x181)](_0x18402b,_0x2b4397),'endOffset':Math['max'](_0x18402b,_0x2b4397)};}function Ae(_0x377d22,_0x5b9513,_0x1596c1){const _0x2aff47=_0x57053a;return(_0x377d22[_0x2aff47(0x13a)]??[])['some'](_0x356d4f=>{let _0x2a204f=_0x261e87(_0x356d4f);return _0x5b9513===_0x1596c1?_0x33b8d6(_0x2a204f,_0x5b9513):_0x2ab5be(_0x2a204f,{'startOffset':_0x5b9513,'endOffset':_0x1596c1});});}function je(_0x208858){const _0x417501=_0x57053a;return{'nextDocumentData':O(_0x208858['documentData']),'nextMetadata':b(_0x208858[_0x417501(0x110)],_0x208858[_0x417501(0x126)],_0x208858['config']),'cursorOffset':0x0};}function D(_0x10540a){const _0x209892=_0x57053a;let _0x38d092=O(_0x10540a['documentData']),_0x4e9fb1=A(_0x38d092),_0x489afd=Fe(_0x4e9fb1,_0x10540a[_0x209892(0x126)]);if(!_0x489afd)return null;let _0xe545c3=He(_0x4e9fb1,_0x489afd);return{'nextDocumentData':_0x38d092,'nextMetadata':x(_0x10540a[_0x209892(0x110)],_0x10540a[_0x209892(0x126)]),'cursorOffset':_0xe545c3};}function Me(_0x495ac7){const _0x16d595=_0x57053a;var _0xa13bbc;let _0x36fb29=O(_0x495ac7[_0x16d595(0x14a)]),_0x3f449f=A(_0x36fb29),_0x1e2f4a=Fe(_0x3f449f,_0x495ac7[_0x16d595(0x126)]);if(!_0x1e2f4a)return null;let _0x19a59f=_0x261e87(_0x1e2f4a);return F(_0x3f449f,_0x19a59f[_0x16d595(0x14c)],_0x19a59f[_0x16d595(0x132)]),_0x3f449f[_0x16d595(0x13a)]=(_0xa13bbc=_0x3f449f[_0x16d595(0x13a)])==null?void 0x0:_0xa13bbc[_0x16d595(0x164)](_0x33cd00=>_0x33cd00[_0x16d595(0x126)]!==_0x495ac7[_0x16d595(0x126)]),{'nextDocumentData':_0x36fb29,'nextMetadata':x(_0x495ac7[_0x16d595(0x110)],_0x495ac7[_0x16d595(0x126)]),'cursorOffset':_0x1e2f4a['startIndex']};}function Ne(_0x54d6a1){const _0x224f22=_0x57053a;let _0x2e61c6=O(_0x54d6a1[_0x224f22(0x14a)]),_0x3de03a=A(_0x2e61c6),_0x2cc698=Le(_0x3de03a,_0x54d6a1['cursorOffset']);return _0x2cc698&&Pe(_0x2e61c6,_0x3de03a,_0x2cc698,_0x54d6a1['cursorOffset'],_0x54d6a1[_0x224f22(0xf8)])||null;}function Pe(_0xe6f92a,_0x42e075,_0x2f3c19,_0x5799f0,_0x47bbb8){const _0x14e6bb=_0x57053a;let _0x556a74=$e(_0x42e075,_0x2f3c19,_0x5799f0,_0x47bbb8);if(!_0x556a74)return null;let _0x51d384=_0x556a74[_0x14e6bb(0x10f)]-0x1;return F(_0x42e075,_0x556a74[_0x14e6bb(0x15c)][_0x14e6bb(0x123)],_0x556a74['paragraph'][_0x14e6bb(0x123)]+0x1),{'nextDocumentData':_0xe6f92a,'cursorOffset':_0x51d384};}function Fe(_0x1bae75,_0x4d03b5){const _0x2f12f1=_0x57053a;var _0x37874f;return _0x1bae75==null||(_0x37874f=_0x1bae75[_0x2f12f1(0x13a)])==null?void 0x0:_0x37874f[_0x2f12f1(0x115)](_0x45e51e=>_0x45e51e['blockType']===_0xbd26d4[_0x2f12f1(0x139)]&&_0x45e51e[_0x2f12f1(0x126)]===_0x4d03b5);}function Ie(_0x2ca821){const _0xf84147=_0x57053a;let _0x56a9cc=_0x2ca821['documentData'][_0xf84147(0x148)];if(!_0x56a9cc)return!0x1;let _0x427732=_0x2ca821[_0xf84147(0xf5)]===_0xf84147(0x10e)?_0x2ca821['cursorOffset']-0x1:_0x2ca821['cursorOffset'],_0x4fe11a=_0x2ca821[_0xf84147(0xf5)]==='right'?_0x2ca821['cursorOffset']+0x1:_0x427732;return(_0x56a9cc[_0xf84147(0x13a)]??[])[_0xf84147(0xf2)](_0x253319=>_0x253319[_0xf84147(0x18b)]===_0xbd26d4[_0xf84147(0x139)]?_0x427732===_0x253319['startIndex']||_0x427732===_0x253319[_0xf84147(0x165)]||_0x4fe11a===_0x253319[_0xf84147(0x123)]||_0x4fe11a===_0x253319[_0xf84147(0x165)]:!0x1);}function Le(_0x2ca8b5,_0x4c8c72){var _0x4ab8da;return(_0x4ab8da=_0x2ca8b5['blockRanges'])==null?void 0x0:_0x4ab8da['find'](_0x4766cf=>{const _0x4b33eb=_0x56e2;let _0x245a77=M(_0x4766cf);return _0x4766cf[_0x4b33eb(0x18b)]===_0xbd26d4[_0x4b33eb(0x139)]&&_0x4766cf[_0x4b33eb(0x123)]<=_0x4c8c72&&_0x4c8c72<=_0x245a77+0x2;});}function Re(_0x3e5bc3,_0x1b72ee,_0x30e573=!0x1){const _0x53a93c=_0x57053a;return{'indentEnd':{'v':0x14},'indentStart':{'v':0x14},'keepLines':_0x30d53f[_0x53a93c(0x158)],'keepNext':_0x1b72ee?_0x30d53f['FALSE']:_0x30d53f[_0x53a93c(0x158)],'widowControl':_0x30d53f[_0x53a93c(0x158)],..._0x3e5bc3&&_0x30e573?{'spaceAbove':{'v':0x8}}:{},'textStyle':{'ff':Ee,'fs':0xc}};}function ze(_0x994991,_0x1debc8,_0x28612b,_0x19a3f9=!0x1){const _0x290b4d=_0x57053a;let _0x320996=(_0x994991['paragraphs']??[])[_0x290b4d(0x164)](_0x5a48ea=>_0x5a48ea[_0x290b4d(0x123)]>_0x1debc8&&_0x5a48ea['startIndex']<_0x28612b);_0x320996[_0x290b4d(0x129)]((_0x4b0cd5,_0x17054b)=>{const _0x42de05=_0x290b4d;_0x4b0cd5[_0x42de05(0x187)]={..._0x4b0cd5[_0x42de05(0x187)]??{},...Re(_0x17054b===0x0,_0x17054b===_0x320996['length']-0x1,_0x19a3f9)};});}function Be(_0x5890bc){const _0x226e94=_0x57053a;var _0x2620ed,_0xe4a100;let _0x450196={..._0x5890bc??{}};return delete _0x450196[_0x226e94(0x189)],delete _0x450196[_0x226e94(0x172)],delete _0x450196[_0x226e94(0x156)],delete _0x450196['spaceBelow'],delete _0x450196[_0x226e94(0x178)],delete _0x450196[_0x226e94(0x16e)],delete _0x450196['widowControl'],((_0x2620ed=_0x450196['textStyle'])==null?void 0x0:_0x2620ed['ff'])===Ee&&((_0xe4a100=_0x450196[_0x226e94(0x124)])==null?void 0x0:_0xe4a100['fs'])===0xc&&delete _0x450196['textStyle'],_0x450196;}function Ve(_0x138852,_0x505175){const _0x5d596c=_0x57053a;let _0x441864=M(_0x505175);return(_0x138852[_0x5d596c(0x149)]??[])[_0x5d596c(0x164)](_0x1c0211=>_0x1c0211['startIndex']>_0x505175['startIndex']&&_0x1c0211[_0x5d596c(0x123)]<_0x441864);}function He(_0x3bf007,_0x44112a){const _0x22a70a=_0x57053a;var _0x362206;let _0x45d5b8=M(_0x44112a);return Ve(_0x3bf007,_0x44112a)['forEach'](_0x3a7b4c=>{const _0x63beab=_0x56e2;_0x3a7b4c[_0x63beab(0x187)]=Be(_0x3a7b4c[_0x63beab(0x187)]);}),F(_0x3bf007,_0x45d5b8,_0x45d5b8+0x1),F(_0x3bf007,_0x44112a['startIndex'],_0x44112a[_0x22a70a(0x123)]+0x1),_0x3bf007['blockRanges']=(_0x362206=_0x3bf007[_0x22a70a(0x13a)])==null?void 0x0:_0x362206['filter'](_0x4fa5c8=>_0x4fa5c8[_0x22a70a(0x126)]!==_0x44112a[_0x22a70a(0x126)]),_0x44112a[_0x22a70a(0x123)];}function O(_0x439527){const _0x24de54=_0x57053a;return{..._0x439527,'body':_0x439527[_0x24de54(0x148)]?Ue(_0x439527[_0x24de54(0x148)]):_0x439527[_0x24de54(0x148)]};}function Ue(_0x2ec22a){const _0x5ed170=_0x57053a;var _0x503d29,_0x11692b,_0x1a7ded,_0x3946b1,_0x3e3d2f,_0x4b29ba,_0x3916ee,_0x265503,_0x24514e;return{..._0x2ec22a,'paragraphs':(_0x503d29=_0x2ec22a[_0x5ed170(0x149)])==null?void 0x0:_0x503d29[_0x5ed170(0x15b)](_0x104fbd=>({..._0x104fbd,'bullet':k(_0x104fbd['bullet']),'paragraphStyle':k(_0x104fbd['paragraphStyle'])})),'sectionBreaks':(_0x11692b=_0x2ec22a[_0x5ed170(0x173)])==null?void 0x0:_0x11692b[_0x5ed170(0x15b)](_0x197fc3=>({..._0x197fc3})),'textRuns':(_0x1a7ded=_0x2ec22a[_0x5ed170(0x13f)])==null?void 0x0:_0x1a7ded[_0x5ed170(0x15b)](_0x5ab9fa=>({..._0x5ab9fa})),'tables':(_0x3946b1=_0x2ec22a[_0x5ed170(0x142)])==null?void 0x0:_0x3946b1['map'](_0x6db4bb=>({..._0x6db4bb})),'columnGroups':(_0x3e3d2f=_0x2ec22a[_0x5ed170(0x12e)])==null?void 0x0:_0x3e3d2f[_0x5ed170(0x15b)](_0x4360d5=>{const _0x52f596=_0x5ed170;var _0x6449b7;return{..._0x4360d5,'columns':(_0x6449b7=_0x4360d5[_0x52f596(0x11f)])==null?void 0x0:_0x6449b7['map'](_0x953dad=>k(_0x953dad))};}),'blockRanges':(_0x4b29ba=_0x2ec22a[_0x5ed170(0x13a)])==null?void 0x0:_0x4b29ba[_0x5ed170(0x15b)](_0x361756=>({..._0x361756})),'customRanges':(_0x3916ee=_0x2ec22a['customRanges'])==null?void 0x0:_0x3916ee['map'](_0x4be15a=>({..._0x4be15a})),'customDecorations':(_0x265503=_0x2ec22a['customDecorations'])==null?void 0x0:_0x265503[_0x5ed170(0x15b)](_0x58f4ba=>({..._0x58f4ba})),'customBlocks':(_0x24514e=_0x2ec22a[_0x5ed170(0xe5)])==null?void 0x0:_0x24514e['map'](_0x3719ea=>({..._0x3719ea}))};}function k(_0x1bb55d){const _0x32d827=_0x57053a;return Array['isArray'](_0x1bb55d)?_0x1bb55d['map'](_0x207912=>k(_0x207912)):!_0x1bb55d||typeof _0x1bb55d!=_0x32d827(0x109)?_0x1bb55d:Object['fromEntries'](Object['entries'](_0x1bb55d)[_0x32d827(0x15b)](([_0x52411b,_0x3a8209])=>[_0x52411b,k(_0x3a8209)]));}function A(_0x10e10c){const _0x36fa54=_0x57053a;if(!_0x10e10c[_0x36fa54(0x148)])throw Error(_0x36fa54(0x145));return _0x10e10c[_0x36fa54(0x148)];}function We(_0x53efe7,_0x474e38,_0x24714f,_0x181396='convert-paragraph'){const _0x2621bc=_0x57053a;if(_0x474e38==null||_0x24714f==null){let _0xe7a9a8=Ke(_0x53efe7);return{'startOffset':_0xe7a9a8,'endOffset':_0xe7a9a8};}let _0x2a1f4c=Math['min'](_0x474e38,_0x24714f),_0x1022c6=Math[_0x2621bc(0xfa)](_0x474e38,_0x24714f),_0x8ea5cd=Ze(_0x53efe7,_0x2a1f4c,_0x1022c6);return _0x2a1f4c===_0x1022c6?_0x181396===_0x2621bc(0x170)?{'startOffset':_0x2a1f4c,'endOffset':_0x1022c6}:Ge(_0x53efe7,_0x2a1f4c,_0x8ea5cd):Je(_0x53efe7,_0x2a1f4c,_0x1022c6,_0x8ea5cd);}function Ge(_0x160996,_0x4c5130,_0x277efa){const _0x54d21b=_0x57053a;let _0x4754f6=Ye(_0x160996,_0x4c5130);if(_0x4754f6){let _0x40cc47=j(_0x160996,_0x4754f6,_0x277efa);if(_0x40cc47<_0x4754f6[_0x54d21b(0x123)])return{'startOffset':_0x40cc47,'endOffset':_0x277efa?Math['min'](_0x4754f6[_0x54d21b(0x123)]+0x1,_0x277efa[_0x54d21b(0x132)]):_0x4754f6[_0x54d21b(0x123)]+0x1};}let _0x48ec1f=_0x4c5130===0x0&&_0x160996[_0x54d21b(0x100)][0x0]===_0x323fa8[_0x54d21b(0x112)]?0x1:_0x4c5130;return{'startOffset':_0x48ec1f,'endOffset':_0x48ec1f};}function Ke(_0x5988e8){const _0x21ba88=_0x57053a;return _0x5988e8[_0x21ba88(0x100)][_0x21ba88(0x134)](_0x323fa8[_0x21ba88(0xfd)])?Math[_0x21ba88(0xfa)](0x0,_0x5988e8['dataStream'][_0x21ba88(0x15a)]-0x1):_0x5988e8[_0x21ba88(0x100)]['length'];}function qe(_0x1c613c,_0x5d838c,_0x2756c7){const _0x35279e=_0x57053a;var _0x37af81;let _0x3fe4e0=Math['min'](_0x5d838c,_0x2756c7),_0x2a552d=Math[_0x35279e(0xfa)](_0x5d838c,_0x2756c7);return!!((_0x37af81=_0x1c613c[_0x35279e(0x142)])!=null&&_0x37af81[_0x35279e(0xf2)](_0x2420ab=>_0x3fe4e0>_0x2420ab[_0x35279e(0x123)]&&_0x3fe4e0<_0x2420ab['endIndex']||_0x2a552d>_0x2420ab['startIndex']&&_0x2a552d<_0x2420ab[_0x35279e(0x165)]||_0x3fe4e0<=_0x2420ab[_0x35279e(0x123)]&&_0x2a552d>=_0x2420ab[_0x35279e(0x165)]));}function Je(_0x34872e,_0x35b3d7,_0x304e2e,_0x4eaac9){const _0x5b3cf9=_0x57053a;let _0x30c8df=[..._0x34872e['paragraphs']??[]][_0x5b3cf9(0x144)]((_0x49db72,_0x5857ba)=>_0x49db72[_0x5b3cf9(0x123)]-_0x5857ba[_0x5b3cf9(0x123)]),_0x5b4c3a=_0x5adc3e(_0x34872e),_0xe0da8b=_0x30c8df['find'](_0x267be0=>j(_0x34872e,_0x267be0,_0x4eaac9,_0x5b4c3a)<=_0x35b3d7&&_0x35b3d7<=_0x267be0[_0x5b3cf9(0x123)]),_0x517d62=_0x30c8df[_0x5b3cf9(0x115)](_0xaaec17=>_0xaaec17[_0x5b3cf9(0x123)]>=_0x304e2e-0x1)??_0x30c8df[_0x30c8df[_0x5b3cf9(0x15a)]-0x1];return{'startOffset':_0xe0da8b?j(_0x34872e,_0xe0da8b,_0x4eaac9,_0x5b4c3a):_0x35b3d7,'endOffset':_0x517d62?Xe(_0x517d62,_0x4eaac9):_0x304e2e};}function Ye(_0x209fbb,_0x589ab0){const _0x4342c7=_0x57053a;let _0x2e038e=[..._0x209fbb[_0x4342c7(0x149)]??[]][_0x4342c7(0x144)]((_0x2fc0dc,_0x5b4e8d)=>_0x2fc0dc[_0x4342c7(0x123)]-_0x5b4e8d[_0x4342c7(0x123)]),_0x528a94=_0x5adc3e(_0x209fbb);return _0x2e038e[_0x4342c7(0x115)](_0x9e3ed8=>(_0x528a94[_0x4342c7(0x17c)](_0x9e3ed8[_0x4342c7(0x123)])??0x0)<=_0x589ab0&&_0x589ab0<=_0x9e3ed8['startIndex']);}function j(_0x1b3325,_0x342211,_0x9151c8,_0x29a1ef){const _0x44fb7=_0x57053a;let _0x186dbd=(_0x29a1ef==null?void 0x0:_0x29a1ef[_0x44fb7(0x17c)](_0x342211[_0x44fb7(0x123)]))??_0xcc790f(_0x1b3325,_0x342211);return _0x9151c8?Math[_0x44fb7(0xfa)](_0x186dbd,_0x9151c8[_0x44fb7(0x14c)]):_0x186dbd;}function Xe(_0x2c2019,_0x33bd2f){const _0x4b7a69=_0x57053a;let _0x3c4b9a=_0x2c2019[_0x4b7a69(0x123)]+0x1;return _0x33bd2f?Math[_0x4b7a69(0x181)](_0x3c4b9a,_0x33bd2f[_0x4b7a69(0x132)]):_0x3c4b9a;}function Ze(_0x1ad0e2,_0xceb757,_0x5c7075){const _0xf5366e=_0x57053a;let _0x212dc7=Qe(_0x1ad0e2,_0xceb757),_0x25a217=Qe(_0x1ad0e2,_0xceb757===_0x5c7075?_0x5c7075:Math[_0xf5366e(0xfa)](_0xceb757,_0x5c7075-0x1));if(_0x212dc7||_0x25a217){if(!_0x212dc7||!_0x25a217||_0x212dc7[_0xf5366e(0x171)]!==_0x25a217[_0xf5366e(0x171)]||_0x212dc7[_0xf5366e(0x10f)]!==_0x25a217[_0xf5366e(0x10f)])throw new E();return _0x212dc7;}}function Qe(_0x60e621,_0x273c75){const _0x5018fc=_0x57053a;let _0x362099=_0x60e621[_0x5018fc(0x100)],_0x23a2ba=-0x1;for(let _0x2d5942=Math['min'](_0x273c75,_0x362099[_0x5018fc(0x15a)]-0x1);_0x2d5942>=0x0;_0x2d5942--){let _0x4ee60d=_0x362099[_0x2d5942];if(_0x4ee60d===_0x323fa8[_0x5018fc(0x152)])return;if(_0x4ee60d===_0x323fa8[_0x5018fc(0xf7)]){_0x23a2ba=_0x2d5942;break;}}if(_0x23a2ba<0x0)return;let _0x85965d=_0x362099[_0x5018fc(0xed)](_0x323fa8[_0x5018fc(0x152)],_0x23a2ba+0x1);if(!(_0x85965d<0x0||_0x273c75<_0x23a2ba+0x1||_0x273c75>_0x85965d-0x1))return{'startOffset':_0x23a2ba+0x1,'endOffset':Math['max'](_0x23a2ba+0x1,_0x85965d-0x1),'startTokenOffset':_0x23a2ba,'endTokenOffset':_0x85965d};}function M(_0x4695c7){const _0x4aee91=_0x57053a;return _0x261e87(_0x4695c7)[_0x4aee91(0x132)]-0x1;}function $e(_0x308567,_0x175c9d,_0x54b829,_0x4f3421){const _0x210a2c=_0x57053a;let _0x572d7c=M(_0x175c9d),_0x3eeeff=(_0x308567[_0x210a2c(0x149)]??[])[_0x210a2c(0x115)](_0x174a9b=>_0x174a9b[_0x210a2c(0x123)]===_0x572d7c+0x1);if(!_0x3eeeff||_0x4f3421!=null&&_0x3eeeff[_0x210a2c(0x123)]!==_0x4f3421||_0x54b829!=null&&(_0x54b829<_0x572d7c||_0x54b829>_0x3eeeff['startIndex']+0x1)||_0x308567[_0x210a2c(0x100)][_0x3eeeff['startIndex']]!==_0x323fa8[_0x210a2c(0x112)])return null;let _0x2b6898=_0xcc790f(_0x308567,_0x3eeeff),_0xc17952=_0x308567['dataStream'][_0x210a2c(0x10b)](_0x2b6898,_0x3eeeff[_0x210a2c(0x123)]);return Array[_0x210a2c(0x166)](_0xc17952)['every'](_0x388f18=>_0x388f18===_0x323fa8[_0x210a2c(0x137)])?{'paragraph':_0x3eeeff,'endTokenOffset':_0x572d7c}:null;}function N(_0x1b1bba,_0xeb6aa9){const _0x4cd1e4=_0x57053a;var _0x2de3a5;let _0x4c0d72=M(_0xeb6aa9),_0x456cd5=_0x1b1bba['dataStream'][_0x4c0d72+0x1];(_0x456cd5===_0x323fa8[_0x4cd1e4(0xfd)]||_0x456cd5===void 0x0)&&P(_0x1b1bba,_0x4c0d72+0x1,_0x323fa8[_0x4cd1e4(0x112)],{'paragraphs':[{'startIndex':0x0,'paragraphId':_0x876db1(new Set((_0x2de3a5=_0x1b1bba[_0x4cd1e4(0x149)])==null?void 0x0:_0x2de3a5[_0x4cd1e4(0x15b)](_0x614b0f=>_0x614b0f[_0x4cd1e4(0x12c)])))}]});}function P(_0x42a511,_0x328a9d,_0x1fb3d8,_0x59c03c={}){const _0x368357=_0x57053a;var _0x470c8f,_0x263f48;_0x1fb3d8&&(_0x42a511[_0x368357(0x100)]=''+_0x42a511[_0x368357(0x100)][_0x368357(0x10b)](0x0,_0x328a9d)+_0x1fb3d8+_0x42a511[_0x368357(0x100)][_0x368357(0x10b)](_0x328a9d),et(_0x42a511,_0x328a9d,_0x1fb3d8[_0x368357(0x15a)]),(_0x470c8f=_0x59c03c[_0x368357(0x149)])!=null&&_0x470c8f[_0x368357(0x15a)]&&(_0x42a511[_0x368357(0x149)]=[..._0x42a511[_0x368357(0x149)]??[],..._0x59c03c[_0x368357(0x149)][_0x368357(0x15b)](_0x54f1b0=>({..._0x54f1b0,'startIndex':_0x54f1b0['startIndex']+_0x328a9d}))][_0x368357(0x144)]((_0x191ed1,_0x5a0591)=>_0x191ed1[_0x368357(0x123)]-_0x5a0591['startIndex'])),(_0x263f48=_0x59c03c[_0x368357(0x13a)])!=null&&_0x263f48[_0x368357(0x15a)]&&(_0x42a511[_0x368357(0x13a)]=[..._0x42a511[_0x368357(0x13a)]??[],..._0x59c03c[_0x368357(0x13a)][_0x368357(0x15b)](_0x44360b=>({..._0x44360b,'startIndex':_0x44360b['startIndex']+_0x328a9d,'endIndex':_0x44360b[_0x368357(0x165)]+_0x328a9d}))][_0x368357(0x144)]((_0x14f85c,_0x298c67)=>_0x14f85c['startIndex']-_0x298c67['startIndex'])));}function F(_0x4e8df8,_0x1a210e,_0x3cceef){const _0x2d0d05=_0x57053a;let _0x45499f=_0x3cceef-_0x1a210e;_0x4e8df8[_0x2d0d05(0x100)]=''+_0x4e8df8[_0x2d0d05(0x100)][_0x2d0d05(0x10b)](0x0,_0x1a210e)+_0x4e8df8[_0x2d0d05(0x100)][_0x2d0d05(0x10b)](_0x3cceef),tt(_0x4e8df8,_0x1a210e,_0x45499f);}function et(_0x4969cb,_0x5760ee,_0x3f6add){const _0x51166e=_0x57053a;_0x4969cb[_0x51166e(0x149)]=I(_0x4969cb[_0x51166e(0x149)],_0x5760ee,_0x3f6add),_0x4969cb[_0x51166e(0x173)]=I(_0x4969cb['sectionBreaks'],_0x5760ee,_0x3f6add),_0x4969cb['customBlocks']=I(_0x4969cb['customBlocks'],_0x5760ee,_0x3f6add),_0x4969cb[_0x51166e(0x13f)]=nt(_0x4969cb[_0x51166e(0x13f)],_0x5760ee,_0x3f6add),_0x4969cb[_0x51166e(0x142)]=rt(_0x4969cb['tables'],_0x5760ee,_0x3f6add),_0x4969cb[_0x51166e(0x12e)]=R(_0x4969cb[_0x51166e(0x12e)],_0x5760ee,_0x3f6add),_0x4969cb[_0x51166e(0x11d)]=R(_0x4969cb['customRanges'],_0x5760ee,_0x3f6add),_0x4969cb['customDecorations']=R(_0x4969cb[_0x51166e(0x107)],_0x5760ee,_0x3f6add),_0x4969cb[_0x51166e(0x13a)]=R(_0x4969cb[_0x51166e(0x13a)],_0x5760ee,_0x3f6add);}function tt(_0x4920b0,_0x5df735,_0x2de80d){const _0x2e8772=_0x57053a;var _0xfa01c3,_0x50aa11;_0x4920b0[_0x2e8772(0x149)]=L(_0x4920b0[_0x2e8772(0x149)],_0x5df735,_0x2de80d),_0x4920b0[_0x2e8772(0x173)]=L(_0x4920b0[_0x2e8772(0x173)],_0x5df735,_0x2de80d),_0x4920b0[_0x2e8772(0xe5)]=L(_0x4920b0[_0x2e8772(0xe5)],_0x5df735,_0x2de80d),_0x4920b0[_0x2e8772(0x13f)]=(_0xfa01c3=it((_0x50aa11=_0x4920b0[_0x2e8772(0x13f)])==null?void 0x0:_0x50aa11[_0x2e8772(0x15b)](_0x43b94b=>({..._0x43b94b,'startIndex':_0x43b94b['st'],'endIndex':_0x43b94b['ed']})),_0x5df735,_0x2de80d))==null?void 0x0:_0xfa01c3[_0x2e8772(0x15b)](_0x4dab15=>{let {startIndex:_0x14a7a4,endIndex:_0x1b6232,..._0xd3ad66}=_0x4dab15;return{..._0xd3ad66,'st':_0x14a7a4,'ed':_0x1b6232};}),_0x4920b0[_0x2e8772(0x142)]=it(_0x4920b0[_0x2e8772(0x142)],_0x5df735,_0x2de80d),_0x4920b0['columnGroups']=z(_0x4920b0[_0x2e8772(0x12e)],_0x5df735,_0x2de80d),_0x4920b0['customRanges']=z(_0x4920b0[_0x2e8772(0x11d)],_0x5df735,_0x2de80d),_0x4920b0[_0x2e8772(0x107)]=z(_0x4920b0['customDecorations'],_0x5df735,_0x2de80d),_0x4920b0[_0x2e8772(0x13a)]=z(_0x4920b0[_0x2e8772(0x13a)],_0x5df735,_0x2de80d);}function I(_0x5e66e9,_0x51812c,_0x302bb1){const _0x57b5cd=_0x57053a;return _0x5e66e9==null?void 0x0:_0x5e66e9[_0x57b5cd(0x15b)](_0x3e9177=>_0x3e9177[_0x57b5cd(0x123)]>=_0x51812c?{..._0x3e9177,'startIndex':_0x3e9177[_0x57b5cd(0x123)]+_0x302bb1}:_0x3e9177);}function L(_0x31f118,_0x1fa887,_0x348d32){const _0x15f8a2=_0x57053a;let _0x4e32a7=_0x1fa887+_0x348d32;return _0x31f118==null?void 0x0:_0x31f118['map'](_0x15066c=>_0x15066c[_0x15f8a2(0x123)]>=_0x1fa887&&_0x15066c[_0x15f8a2(0x123)]<_0x4e32a7?null:_0x15066c['startIndex']>=_0x4e32a7?{..._0x15066c,'startIndex':_0x15066c[_0x15f8a2(0x123)]-_0x348d32}:_0x15066c)[_0x15f8a2(0x164)](_0x345129=>_0x345129!=null);}function nt(_0x1484a9,_0x26fd8a,_0x269725){const _0x1a30f0=_0x57053a;return _0x1484a9==null?void 0x0:_0x1484a9[_0x1a30f0(0x15b)](_0x283a99=>_0x283a99['st']>=_0x26fd8a?{..._0x283a99,'st':_0x283a99['st']+_0x269725,'ed':_0x283a99['ed']+_0x269725}:_0x283a99['ed']>_0x26fd8a?{..._0x283a99,'ed':_0x283a99['ed']+_0x269725}:_0x283a99);}function R(_0x28479a,_0x2589e9,_0x31a2cf){const _0x2ae7ef=_0x57053a;return _0x28479a==null?void 0x0:_0x28479a[_0x2ae7ef(0x15b)](_0x4a7e73=>_0x382399(_0x4a7e73,_0x2589e9,_0x31a2cf));}function rt(_0x5cc56c,_0x30fda5,_0x5852ff){return _0x5cc56c==null?void 0x0:_0x5cc56c['map'](_0x18c236=>_0x4e29ec(_0x18c236,_0x30fda5,_0x5852ff));}function z(_0x12cf30,_0x2ab36b,_0x29f401){return _0x12cf30==null?void 0x0:_0x12cf30['map'](_0x56604b=>_0x58cb39(_0x56604b,_0x2ab36b,_0x29f401))['filter'](_0x4d11ec=>_0x4d11ec!=null);}function _0x56e2(_0x50c15a,_0x5cc74a){_0x50c15a=_0x50c15a-0xe5;const _0x34b427=_0x34b4();let _0x56e2fd=_0x34b427[_0x50c15a];return _0x56e2fd;}function it(_0x2041cf,_0x5b26f8,_0x54bbef){const _0x5ec89c=_0x57053a;return _0x2041cf==null?void 0x0:_0x2041cf[_0x5ec89c(0x15b)](_0x4b4a4f=>_0x474d57(_0x4b4a4f,_0x5b26f8,_0x54bbef))[_0x5ec89c(0x164)](_0x441c6e=>_0x441c6e!=null);}const at={'id':_0x57053a(0xea),'type':_0x315486['COMMAND'],'handler':_0xdbee0b=>{const _0x5ac72a=_0x57053a;var _0x2dc43c;if(_0x2a1741(G(_0xdbee0b)))return!0x1;let _0x45da65=_0xbfd420(_0xdbee0b);if(_0x45da65)return _0xdbee0b['get'](_0x31742c)[_0x5ac72a(0xf6)](B['id'],{'startOffset':_0x45da65[_0x5ac72a(0x14c)],'endOffset':_0x45da65[_0x5ac72a(0x132)],'insertionMode':_0x5ac72a(0x170),'unitId':_0x45da65[_0x5ac72a(0xf9)]});let _0x4dd6f1=ft(_0xdbee0b);if(!_0x4dd6f1)return!0x1;let _0x9b11cd=(_0x2dc43c=_0xdbee0b['get'](_0x2889e4)['getCurrentUnitOfType'](_0x27b52e[_0x5ac72a(0xfe)]))==null?void 0x0:_0x2dc43c[_0x5ac72a(0x180)](),_0x1485e8=_0x9b11cd?_0xd671e9(_0x9b11cd,_0x4dd6f1):_0x4dd6f1['startIndex']+0x1;return _0xdbee0b[_0x5ac72a(0x17c)](_0x31742c)[_0x5ac72a(0xf6)](B['id'],{'startOffset':_0x1485e8,'endOffset':_0x1485e8});}},ot={'id':_0x57053a(0x135),'type':_0x315486[_0x57053a(0x136)],'handler':()=>!0x0},B={'id':_0x57053a(0xe8),'type':_0x315486[_0x57053a(0x136)],'handler':(_0x3be0ef,_0x1d8df6)=>{const _0x1ce80d=_0x57053a;let _0x18c771=W(_0x3be0ef,_0x1d8df6==null?void 0x0:_0x1d8df6[_0x1ce80d(0xf9)]);if(!_0x18c771)return!0x1;let _0x29fada=G(_0x3be0ef);if(_0x2a1741(_0x29fada))return!0x1;let _0x4a4ade=_0x18c771[_0x1ce80d(0xe7)]['serialize'](_0x18c771[_0x1ce80d(0xf9)]),_0x2e1a9f=lt(_0x1d8df6,_0x29fada),_0x265360=ut(_0x18c771[_0x1ce80d(0x11a)],_0x2e1a9f);if(_0x265360){if(_0x265360[_0x1ce80d(0x18b)]!==_0xbd26d4[_0x1ce80d(0x139)])return!0x1;let _0x35f222=D({'blockId':_0x265360[_0x1ce80d(0x126)],'documentData':_0x18c771[_0x1ce80d(0x11a)],'metadata':_0x4a4ade});if(!_0x35f222)return!0x1;let _0x30cd8a=Y(_0x18c771[_0x1ce80d(0x16c)],_0x18c771[_0x1ce80d(0x157)],_0x18c771[_0x1ce80d(0xf9)],_0x18c771[_0x1ce80d(0x11a)],_0x35f222[_0x1ce80d(0x151)],B['id'],_0x35f222[_0x1ce80d(0x10a)]);return _0x30cd8a&&_0x35f222['nextMetadata']&&_0x18c771[_0x1ce80d(0xe7)]['deserialize'](_0x18c771[_0x1ce80d(0xf9)],_0x35f222[_0x1ce80d(0x14f)]),_0x30cd8a;}let _0x2755f8=(_0x1d8df6==null?void 0x0:_0x1d8df6[_0x1ce80d(0x126)])??_0x53354e(0x6),_0x5cadfd;try{_0x5cadfd=De({'blockId':_0x2755f8,'config':_0x1d8df6==null?void 0x0:_0x1d8df6['config'],'documentData':_0x18c771[_0x1ce80d(0x11a)],'endOffset':_0x2e1a9f==null?void 0x0:_0x2e1a9f[_0x1ce80d(0x132)],'insertionMode':_0x1d8df6==null?void 0x0:_0x1d8df6[_0x1ce80d(0xf0)],'metadata':_0x4a4ade,'startOffset':_0x2e1a9f==null?void 0x0:_0x2e1a9f['startOffset']});}catch(_0x1c536f){if(_0x1c536f instanceof E)return!0x1;throw _0x1c536f;}let _0x498907=Y(_0x18c771[_0x1ce80d(0x16c)],_0x18c771[_0x1ce80d(0x157)],_0x18c771[_0x1ce80d(0xf9)],_0x18c771[_0x1ce80d(0x11a)],_0x5cadfd['nextDocumentData'],B['id'],_0x5cadfd[_0x1ce80d(0x10a)]);return _0x498907&&_0x5cadfd['nextMetadata']&&_0x18c771[_0x1ce80d(0xe7)][_0x1ce80d(0x169)](_0x18c771[_0x1ce80d(0xf9)],_0x5cadfd[_0x1ce80d(0x14f)]),_0x498907;}},st={'id':_0x57053a(0x17d),'type':_0x315486[_0x57053a(0x136)],'handler':(_0x28c912,_0x1074d6)=>{const _0x39a4d8=_0x57053a;if(!_0x1074d6)return!0x1;let _0x122617=W(_0x28c912,_0x1074d6[_0x39a4d8(0xf9)]);if(!_0x122617)return!0x1;let _0x1b658b=je({'blockId':_0x1074d6[_0x39a4d8(0x126)],'config':_0x1074d6[_0x39a4d8(0x161)],'documentData':_0x122617['previousDocumentData'],'metadata':_0x122617['model'][_0x39a4d8(0x116)](_0x122617[_0x39a4d8(0xf9)])});return _0x1b658b[_0x39a4d8(0x14f)]&&_0x122617[_0x39a4d8(0xe7)][_0x39a4d8(0x169)](_0x122617[_0x39a4d8(0xf9)],_0x1b658b['nextMetadata']),!0x0;}},ct={'id':'docs-code.command.exit','type':_0x315486[_0x57053a(0x136)],'handler':(_0x154db4,_0xd48fcf)=>V[_0x57053a(0x117)](_0x154db4,_0xd48fcf)},V={'id':_0x57053a(0x159),'type':_0x315486['COMMAND'],'handler':(_0x57caf8,_0x1b740c)=>{const _0x2bbae8=_0x57053a;if(!_0x1b740c)return!0x1;let _0xe76109=W(_0x57caf8,_0x1b740c==null?void 0x0:_0x1b740c[_0x2bbae8(0xf9)]);if(!_0xe76109)return!0x1;let _0xa98e26=D({'blockId':_0x1b740c[_0x2bbae8(0x126)],'documentData':_0xe76109[_0x2bbae8(0x11a)],'metadata':_0xe76109[_0x2bbae8(0xe7)][_0x2bbae8(0x116)](_0xe76109[_0x2bbae8(0xf9)])});if(!_0xa98e26)return!0x1;let _0x246847=Y(_0xe76109[_0x2bbae8(0x16c)],_0xe76109['selectionManager'],_0xe76109[_0x2bbae8(0xf9)],_0xe76109[_0x2bbae8(0x11a)],_0xa98e26['nextDocumentData'],V['id'],_0xa98e26[_0x2bbae8(0x10a)]);return _0x246847&&_0xa98e26[_0x2bbae8(0x14f)]&&_0xe76109[_0x2bbae8(0xe7)][_0x2bbae8(0x169)](_0xe76109['unitId'],_0xa98e26[_0x2bbae8(0x14f)]),_0x246847;}},H={'id':'docs-code.command.remove','type':_0x315486[_0x57053a(0x136)],'handler':(_0xd36940,_0x23a648)=>{const _0x4709bf=_0x57053a;if(!_0x23a648)return!0x1;let _0x36df74=W(_0xd36940,_0x23a648==null?void 0x0:_0x23a648['unitId']);if(!_0x36df74)return!0x1;let _0x5c544b=Me({'blockId':_0x23a648['blockId'],'documentData':_0x36df74[_0x4709bf(0x11a)],'metadata':_0x36df74['model'][_0x4709bf(0x116)](_0x36df74[_0x4709bf(0xf9)])});if(!_0x5c544b)return!0x1;let _0x19bec9=Y(_0x36df74[_0x4709bf(0x16c)],_0x36df74[_0x4709bf(0x157)],_0x36df74[_0x4709bf(0xf9)],_0x36df74[_0x4709bf(0x11a)],_0x5c544b[_0x4709bf(0x151)],H['id'],_0x5c544b[_0x4709bf(0x10a)]);return _0x19bec9&&_0x5c544b['nextMetadata']&&_0x36df74[_0x4709bf(0xe7)]['deserialize'](_0x36df74[_0x4709bf(0xf9)],_0x5c544b[_0x4709bf(0x14f)]),_0x19bec9;}},U={'id':_0x57053a(0x108),'type':_0x315486[_0x57053a(0x136)],'handler':(_0x25086a,_0x3c9e68)=>{const _0x1e681=_0x57053a;var _0x5e896d;let _0x9d576=W(_0x25086a,_0x3c9e68==null?void 0x0:_0x3c9e68[_0x1e681(0xf9)]);if(!_0x9d576)return!0x1;let _0x8132fc=(_0x3c9e68==null?void 0x0:_0x3c9e68[_0x1e681(0x10a)])??((_0x5e896d=G(_0x25086a))==null?void 0x0:_0x5e896d[_0x1e681(0x14c)]);if(_0x8132fc==null)return!0x1;let _0x114b58=Ne({'cursorOffset':_0x8132fc,'documentData':_0x9d576[_0x1e681(0x11a)],'paragraphStartIndex':_0x3c9e68==null?void 0x0:_0x3c9e68['paragraphStartIndex']});return _0x114b58?Y(_0x9d576['commandService'],_0x9d576[_0x1e681(0x157)],_0x9d576[_0x1e681(0xf9)],_0x9d576[_0x1e681(0x11a)],_0x114b58[_0x1e681(0x151)],U['id'],_0x114b58[_0x1e681(0x10a)]):!0x1;}};function W(_0x228eb2,_0x3598b2){const _0x2c1aa5=_0x57053a;let _0x5967ff=_0x228eb2[_0x2c1aa5(0x17c)](_0x2889e4),_0x4a5e95=_0x3598b2?_0x5967ff[_0x2c1aa5(0x12f)](_0x3598b2,_0x27b52e['UNIVER_DOC']):_0x5967ff[_0x2c1aa5(0x15f)](_0x27b52e[_0x2c1aa5(0xfe)]);return _0x4a5e95?{'commandService':_0x228eb2['get'](_0x31742c),'model':_0x228eb2[_0x2c1aa5(0x17c)](w),'previousDocumentData':_0x4a5e95[_0x2c1aa5(0x106)](),'selectionManager':_0x228eb2[_0x2c1aa5(0x17c)](_0x17b7d0),'unitId':_0x4a5e95[_0x2c1aa5(0x16d)]()}:null;}function G(_0x55b130){const _0xb1a365=_0x57053a;var _0x2da5c3;return(_0x2da5c3=_0x55b130[_0xb1a365(0x17c)](_0x17b7d0)[_0xb1a365(0x104)]())==null?void 0x0:_0x2da5c3[0x0];}function lt(_0x326547,_0x2857ab){const _0x335e91=_0x57053a;let _0x4d6221=(_0x326547==null?void 0x0:_0x326547[_0x335e91(0x14c)])??(_0x2857ab==null?void 0x0:_0x2857ab[_0x335e91(0x14c)]),_0x3afb25=(_0x326547==null?void 0x0:_0x326547['endOffset'])??(_0x2857ab==null?void 0x0:_0x2857ab['endOffset']);if(_0x4d6221!=null&&_0x3afb25!=null)return{'endOffset':Math[_0x335e91(0xfa)](_0x4d6221,_0x3afb25),'startOffset':Math[_0x335e91(0x181)](_0x4d6221,_0x3afb25)};}function ut(_0x6b6a27,_0x36c086){const _0x424148=_0x57053a;var _0x4dc2e8;if(!_0x36c086)return;let _0x4eb577=dt(_0x36c086);return(_0x4dc2e8=_0x6b6a27['body'])==null||(_0x4dc2e8=_0x4dc2e8[_0x424148(0x13a)])==null?void 0x0:_0x4dc2e8[_0x424148(0x115)](_0x5016a5=>{const _0x26cc52=_0x424148;let _0xe0b36d=_0x261e87(_0x5016a5);return _0x36c086[_0x26cc52(0x14c)]===_0x36c086['endOffset']?_0x33b8d6(_0xe0b36d,_0x4eb577):_0x1919fa(_0xe0b36d,_0x4eb577);});}function dt(_0x7170ea){const _0x35f175=_0x57053a;return _0x7170ea['startOffset']===_0x7170ea[_0x35f175(0x132)]?_0x7170ea[_0x35f175(0x14c)]:_0x7170ea[_0x35f175(0x14c)]+0x1;}function ft(_0x3d20e3){const _0x2446bb=_0x57053a;let _0x5b3d1e=G(_0x3d20e3);if(!_0x5b3d1e)return null;let _0x37a363=_0x3d20e3[_0x2446bb(0x17c)](_0x2889e4)['getCurrentUnitOfType'](_0x27b52e[_0x2446bb(0xfe)]),_0x24fd7f=_0x37a363==null?void 0x0:_0x37a363[_0x2446bb(0x180)]();return _0x24fd7f?_0x2575ad[_0x2446bb(0x185)][_0x2446bb(0x131)](_0x5b3d1e,_0x24fd7f[_0x2446bb(0x149)]??[],_0x24fd7f[_0x2446bb(0x100)]??'')[0x0]??null:null;}function pt(_0x3e20e8,_0x4dae35){const _0x295bf8=_0x57053a;let _0x555946=_0x3e20e8['body'],_0x491415=_0x4dae35[_0x295bf8(0x148)],_0xe4abfb=_0x24c61a(_0x555946,_0x491415);return[_0xe4abfb&&_0x491415?mt(_0x491415,_0xe4abfb):null,_0xe4abfb?null:ht(_0x555946,_0x491415)][_0x295bf8(0x164)](Boolean)[_0x295bf8(0x141)]((_0x10a2be,_0x585f37)=>_0x286f05[_0x295bf8(0xe6)](_0x10a2be,_0x585f37),null);}function mt(_0x10a501,_0x5ce0c9){const _0x57c4cc=_0x57053a;let _0x4f409e=new _0x1b4382();return _0x4f409e[_0x57c4cc(0x150)](_0x5ce0c9['start']),_0x5ce0c9[_0x57c4cc(0x111)]>0x0&&_0x4f409e[_0x57c4cc(0x143)](_0x5ce0c9[_0x57c4cc(0x111)],_0x1d577d(_0x10a501,_0x5ce0c9['start'],_0x5ce0c9[_0x57c4cc(0x15e)]+_0x5ce0c9[_0x57c4cc(0x111)],!0x1)),_0x5ce0c9[_0x57c4cc(0x13b)]>0x0&&_0x4f409e[_0x57c4cc(0x188)](_0x5ce0c9['deleteLength']),_0x286f05[_0x57c4cc(0x186)]()['editOp'](_0x4f409e[_0x57c4cc(0x116)](),[_0x57c4cc(0x148)]);}function ht(_0x39ece7,_0x60cb7){const _0x218a39=_0x57053a;let _0x3acdb6=[],_0x478213=_0x39ece7?_t(_0x39ece7):void 0x0,_0x3d4e27=_0x60cb7?_t(_0x60cb7):void 0x0;for(let _0xbde45 of gt)K(_0x286f05[_0x218a39(0x186)](),['body',_0xbde45],_0x478213==null?void 0x0:_0x478213[_0xbde45],_0x3d4e27==null?void 0x0:_0x3d4e27[_0xbde45],_0x3acdb6);return _0x3acdb6[_0x218a39(0x141)]((_0x4f7d7c,_0x58ed70)=>_0x286f05['compose'](_0x4f7d7c,_0x58ed70),null);}const gt=['paragraphs',_0x57053a(0x173),_0x57053a(0x142),_0x57053a(0x12e),'blockRanges',_0x57053a(0xe5),_0x57053a(0x11d),_0x57053a(0x107),'textRuns'];function _t(_0x5bbc09){return _0x5bbc09;}function K(_0x1d0e21,_0xc9dd87,_0x4eae9c,_0x130c86,_0xa36b6a){const _0x466fde=_0x57053a;J(_0x4eae9c,_0x130c86)||(_0x4eae9c==null?_0xa36b6a[_0x466fde(0x177)](_0x1d0e21[_0x466fde(0x160)](_0xc9dd87,_0x130c86)):_0x130c86==null?_0xa36b6a[_0x466fde(0x177)](_0x1d0e21[_0x466fde(0x102)](_0xc9dd87,_0x4eae9c)):Array[_0x466fde(0x127)](_0x4eae9c)&&Array[_0x466fde(0x127)](_0x130c86)?vt(_0x1d0e21,_0xc9dd87,_0x4eae9c,_0x130c86,_0xa36b6a):q(_0x4eae9c)&&q(_0x130c86)?new Set([...Object[_0x466fde(0xf1)](_0x4eae9c),...Object[_0x466fde(0xf1)](_0x130c86)])[_0x466fde(0x129)](_0xb778ff=>{K(_0x1d0e21,[..._0xc9dd87,_0xb778ff],_0x4eae9c[_0xb778ff],_0x130c86[_0xb778ff],_0xa36b6a);}):_0xa36b6a[_0x466fde(0x177)](_0x1d0e21[_0x466fde(0x168)](_0xc9dd87,_0x4eae9c,_0x130c86)));}function vt(_0x101347,_0x37e368,_0x28c24b,_0x77a7,_0x82f539){const _0x4d9a70=_0x57053a;if(_0x28c24b[_0x4d9a70(0x15a)]===_0x77a7['length']){_0x28c24b['forEach']((_0x11d396,_0x2fab75)=>K(_0x101347,[..._0x37e368,_0x2fab75],_0x11d396,_0x77a7[_0x2fab75],_0x82f539));return;}let _0x238c0f=0x0;for(;_0x238c0f<_0x28c24b[_0x4d9a70(0x15a)]&&_0x238c0f<_0x77a7['length']&&J(_0x28c24b[_0x238c0f],_0x77a7[_0x238c0f]);)_0x238c0f++;let _0x2095fb=_0x28c24b[_0x4d9a70(0x15a)]-0x1,_0x970dd1=_0x77a7[_0x4d9a70(0x15a)]-0x1;for(;_0x2095fb>=_0x238c0f&&_0x970dd1>=_0x238c0f&&J(_0x28c24b[_0x2095fb],_0x77a7[_0x970dd1]);)_0x2095fb--,_0x970dd1--;for(let _0x35e626=_0x2095fb;_0x35e626>=_0x238c0f;_0x35e626--)_0x82f539[_0x4d9a70(0x177)](_0x101347[_0x4d9a70(0x102)]([..._0x37e368,_0x35e626],_0x28c24b[_0x35e626]));for(let _0x4bf783=_0x238c0f;_0x4bf783<=_0x970dd1;_0x4bf783++)_0x82f539['push'](_0x101347[_0x4d9a70(0x160)]([..._0x37e368,_0x4bf783],_0x77a7[_0x4bf783]));}function q(_0x254fef){const _0x2f7cdd=_0x57053a;return typeof _0x254fef==_0x2f7cdd(0x109)&&!!_0x254fef&&!Array['isArray'](_0x254fef);}function _0x34b4(){const _0xd06a09=['insert','sort','Document\x20body\x20is\x20required','registerPluginResource','version','body','paragraphs','documentData','6653148rxGngY','startOffset','monospace','2CJhEFm','nextMetadata','retain','nextDocumentData','TABLE_CELL_END','clear','decorate','packageName','spaceAbove','selectionManager','TRUE','docs-code.command.unwrap','length','map','paragraph','50vnQTnO','start','getCurrentUnitOfType','insertOp','config','_commandService','entries','filter','endIndex','from','dispose','replaceOp','deserialize','asObservable','218380pdDkev','commandService','getUnitId','keepNext','set','insert-new','startTokenOffset','indentStart','sectionBreaks','_injector','_resourceManagerService','string','push','keepLines','onStarting','removeUnit','_resources','get','docs-code.command.update','default','Insert\x20range\x20cannot\x20cross\x20table\x20cell\x20boundaries','getBody','min','getCodeConfig','stringify','Insert\x20range\x20cannot\x20overlap\x20an\x20existing\x20document\x20block','range','getInstance','paragraphStyle','delete','indentEnd','_change$','blockType','customBlocks','compose','model','docs-code.command.insert','call','docs-code.command.insert-below','function','defineProperty','indexOf','docs-code.mutation.set-config','next','insertionMode','keys','some','@univerjs-pro/docs-code','javascript','direction','syncExecuteCommand','TABLE_CELL_START','paragraphStartIndex','unitId','max','4178752qjfqEa','190528SGahHo','SECTION_BREAK','UNIVER_DOC','_config','dataStream','docs-code.config','removeOp','4435986iKoncn','getTextRanges','prototype','getSnapshot','customDecorations','docs-code.command.cancel-empty-paragraph','object','cursorOffset','slice','codes','add','left','endTokenOffset','metadata','insertLength','PARAGRAPH','docs-code.mutation.remove-config','removeCode','find','serialize','handler','setConfig','disposeWithMe','previousDocumentData','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','spaceBelow','customRanges','BLOCK_START','columns','registerCommand','DOC_CODE_PLUGIN','1.4.0','startIndex','textStyle','pluginName','blockId','isArray','_initResource','forEach','6191885eUWmKE','17190837zsbfju','paragraphId','setCodeConfig','columnGroups','getUnit','symbol','getParagraphsInRange','endOffset','toPrimitive','endsWith','docs-code.command.consume-boundary-delete','COMMAND','BLOCK_END','type','CODE','blockRanges','deleteLength','parse','_docsCodeModel','_setResource','textRuns','_configService','reduce','tables'];_0x34b4=function(){return _0xd06a09;};return _0x34b4();}function J(_0x9f1d6b,_0x254f31){const _0x1bb474=_0x57053a;return JSON[_0x1bb474(0x183)](_0x9f1d6b)===JSON[_0x1bb474(0x183)](_0x254f31);}function Y(_0xd05e23,_0x22495b,_0x245ad2,_0x165cd1,_0x5ca711,_0xa56a86,_0x396198){const _0x5897ca=_0x57053a;let _0x2f4293=pt(_0x165cd1,_0x5ca711);return _0x2f4293?!!_0xd05e23[_0x5897ca(0xf6)](_0x4c6056['id'],{'unitId':_0x245ad2,'actions':_0x2f4293,'textRanges':[{'startOffset':_0x396198,'endOffset':_0x396198,'collapsed':!0x0}],'isEditing':!0x1,'trigger':_0xa56a86}):(_0x22495b['replaceDocRanges']([{'startOffset':_0x396198,'endOffset':_0x396198}],{'unitId':_0x245ad2,'subUnitId':_0x245ad2},!0x1),!0x0);}const X=_0x57053a(0x121);var yt=_0x57053a(0xf3),bt=_0x57053a(0x122);const xt={};function Z(_0x540426,_0x252153){return function(_0x379fba,_0x159a62){_0x252153(_0x379fba,_0x159a62,_0x540426);};}function St(_0x5ceff1,_0x1deb99,_0x43afa0,_0x465261){const _0x43e54d=_0x57053a;var _0x21dee7=arguments[_0x43e54d(0x15a)],_0x5b69af=_0x21dee7<0x3?_0x1deb99:_0x465261===null?_0x465261=Object['getOwnPropertyDescriptor'](_0x1deb99,_0x43afa0):_0x465261,_0xe7ff34;if(typeof Reflect==_0x43e54d(0x109)&&typeof Reflect[_0x43e54d(0x154)]=='function')_0x5b69af=Reflect['decorate'](_0x5ceff1,_0x1deb99,_0x43afa0,_0x465261);else{for(var _0x45cce8=_0x5ceff1[_0x43e54d(0x15a)]-0x1;_0x45cce8>=0x0;_0x45cce8--)(_0xe7ff34=_0x5ceff1[_0x45cce8])&&(_0x5b69af=(_0x21dee7<0x3?_0xe7ff34(_0x5b69af):_0x21dee7>0x3?_0xe7ff34(_0x1deb99,_0x43afa0,_0x5b69af):_0xe7ff34(_0x1deb99,_0x43afa0))||_0x5b69af);}return _0x21dee7>0x3&&_0x5b69af&&Object['defineProperty'](_0x1deb99,_0x43afa0,_0x5b69af),_0x5b69af;}let Q=class extends _0x450405{constructor(_0x5469e0,_0xef7031){const _0x1d3f3b=_0x57053a;super(),this['_resourceManagerService']=_0x5469e0,this[_0x1d3f3b(0x13d)]=_0xef7031,this['_initResource']();}[_0x57053a(0x128)](){const _0x4a4677=_0x57053a;this[_0x4a4677(0x119)](this[_0x4a4677(0x175)][_0x4a4677(0x146)]({'pluginName':X,'businesses':[_0x27b52e[_0x4a4677(0xfe)]],'toJson':_0x5edad2=>JSON['stringify'](this[_0x4a4677(0x13d)][_0x4a4677(0x116)](_0x5edad2)),'parseJson':_0x5dba6b=>y(JSON[_0x4a4677(0x13c)](_0x5dba6b)),'onLoad':(_0x215b44,_0x5c0e95)=>this[_0x4a4677(0x13d)][_0x4a4677(0x169)](_0x215b44,_0x5c0e95),'onUnLoad':_0x55cd8b=>this[_0x4a4677(0x13d)][_0x4a4677(0x17a)](_0x55cd8b)}));}};Q=St([Z(0x0,_0x52c202),Z(0x1,_0x5b34a9(w))],Q);let $=class extends _0x421146{constructor(_0x5630b1=xt,_0x363bbc,_0x1b2081,_0x3065a1){const _0x311070=_0x57053a;super(),this['_config']=_0x5630b1,this[_0x311070(0x174)]=_0x363bbc,this[_0x311070(0x162)]=_0x1b2081,this[_0x311070(0x140)]=_0x3065a1;let {..._0x464ee8}=_0x3d1bfe({},xt,this[_0x311070(0xff)]);this[_0x311070(0x140)][_0x311070(0x118)](_0x311070(0x101),_0x464ee8);}[_0x57053a(0x179)](){const _0x27a262=_0x57053a;this[_0x27a262(0x174)][_0x27a262(0x10d)]([w]),this['_injector'][_0x27a262(0x10d)]([Q]),this[_0x27a262(0x174)][_0x27a262(0x17c)](w),this['_injector'][_0x27a262(0x17c)](Q),[B,at,st,V,H,ct,U,ot,Te,T][_0x27a262(0x129)](_0x150b1f=>this[_0x27a262(0x119)](this[_0x27a262(0x162)][_0x27a262(0x120)](_0x150b1f)));}};C($,_0x57053a(0x125),X),C($,_0x57053a(0x155),yt),C($,_0x57053a(0x147),bt),C($,_0x57053a(0x138),_0x27b52e['UNIVER_DOC']),$=St([_0x3f0dd1(_0xbf8067,_0x55e803),Z(0x1,_0x5b34a9(_0x25ae8a)),Z(0x2,_0x31742c),Z(0x3,_0x46b4a8)],$);export{X as DOCS_CODE_PLUGIN,U as DocsCodeCancelEmptyParagraphCommand,ot as DocsCodeConsumeBoundaryDeleteCommand,at as DocsCodeInsertBelowCommand,B as DocsCodeInsertCommand,w as DocsCodeModel,H as DocsCodeRemoveCommand,V as DocsCodeUnwrapCommand,st as DocsCodeUpdateCommand,T as RemoveDocsCodeConfigMutation,Te as SetDocsCodeConfigMutation,$ as UniverDocsCodePlugin,Ne as buildCancelEmptyCodeParagraphActions,Ie as isCodeBoundaryDelete,v as normalizeDocsCodeConfig,y as normalizeDocsCodeMetadataResource};