@univerjs-pro/docs-code 1.0.0 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +5 -5
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x18dff1=_0x6b1e;(function(_0x3bbd22,_0x43cd9f){const _0x477bf3=_0x6b1e,_0x2a0b46=_0x3bbd22();while(!![]){try{const _0x52f81a=-parseInt(_0x477bf3(0x10f))/0x1*(parseInt(_0x477bf3(0xaa))/0x2)+parseInt(_0x477bf3(0x108))/0x3*(parseInt(_0x477bf3(0x11b))/0x4)+-parseInt(_0x477bf3(0xb3))/0x5*(-parseInt(_0x477bf3(0xd7))/0x6)+-parseInt(_0x477bf3(0xa1))/0x7+-parseInt(_0x477bf3(0xd8))/0x8+-parseInt(_0x477bf3(0xf5))/0x9+-parseInt(_0x477bf3(0xf0))/0xa*(-parseInt(_0x477bf3(0x111))/0xb);if(_0x52f81a===_0x43cd9f)break;else _0x2a0b46['push'](_0x2a0b46['shift']());}catch(_0x16b1c5){_0x2a0b46['push'](_0x2a0b46['shift']());}}}(_0x4deb,0x67003));import{BooleanNumber as _0x1d2318,BuildTextUtils as _0x855b47,CommandType as _0x19903b,DataStreamTreeTokenType as _0x22c6c,DependentOn as _0x20ffc4,Disposable as _0x1054c6,DocumentBlockRangeType as _0x38c014,ICommandService as _0x4ed376,IConfigService as _0x477e3f,IResourceManagerService as _0x7f39be,IUniverInstanceService as _0x2ee2bc,Inject as _0x3f37a0,Injector as _0x1b4208,JSONX as _0x4677ba,Plugin as _0x58480b,TextX as _0x3f221e,UniverInstanceType as _0x8cc94f,containsInteriorInsertionOffset as _0x437273,containsStreamIndex as _0x31e2f9,createParagraphId as _0x591cdf,generateRandomId as _0x5c655,getBlockRangeInterval as _0x1a4c5b,getBodySliceForTextXAction as _0x1451b,getParagraphContentStartOffset as _0x13bc7e,getParagraphContentStartOffsets as _0x52d57d,getParagraphFollowingBlockOffset as _0x2c7394,getSingleDataStreamChange as _0x1b668f,intersectsOperationalIntervals as _0x8f659c,merge as _0x152df7,shiftExclusiveRangeOnDelete as _0x474e7c,shiftExclusiveRangeOnInsert as _0x1b7ff4,shiftInclusiveRangeOnDelete as _0x3a1df5,shiftInclusiveRangeOnInsert as _0x221047}from'@univerjs/core';import{Subject as _0xae0c94}from'rxjs';import{DocSelectionManagerService as _0x5b762a,RichTextEditingMutation as _0x942fde,UniverDocsPlugin as _0x4c8af0,getContentInsertRange as _0xb85039,isHeaderFooterSelection as _0x381bc1}from'@univerjs/docs';import{UniverLicensePlugin as _0x133a21}from'@univerjs-pro/license';const Se={'language':_0x18dff1(0x10c),'showLineNumbers':!0x1,'tabSize':0x4,'wrap':!0x0};function v(_0x55613e){return{...Se,..._0x55613e};}function y(_0x50b3f5){const _0x52baae=_0x18dff1;let _0x4a87ed=(_0x50b3f5==null?void 0x0:_0x50b3f5[_0x52baae(0xc5)])??{};return{'codes':Object['fromEntries'](Object['entries'](_0x4a87ed)[_0x52baae(0xc4)](([_0x4f5485,_0x5f32a5])=>[_0x4f5485,v(_0x5f32a5)]))};}function b(_0x29783b,_0xeb2f65,_0x77dc1d){const _0x363742=_0x18dff1;let _0xe16acc=y(_0x29783b);return _0xe16acc[_0x363742(0xc5)][_0xeb2f65]=v({..._0xe16acc[_0x363742(0xc5)][_0xeb2f65],..._0x77dc1d}),_0xe16acc;}function x(_0x34223b,_0x15e0bf){const _0x269cf8=_0x18dff1;let _0x281bdd=y(_0x34223b);return delete _0x281bdd[_0x269cf8(0xc5)][_0x15e0bf],_0x281bdd;}function S(_0x51f3e0){'@babel/helpers - typeof';const _0x557440=_0x18dff1;return S=typeof Symbol=='function'&&typeof Symbol[_0x557440(0xba)]==_0x557440(0xf4)?function(_0xa662c8){return typeof _0xa662c8;}:function(_0x28b5b1){const _0x1b5be9=_0x557440;return _0x28b5b1&&typeof Symbol=='function'&&_0x28b5b1['constructor']===Symbol&&_0x28b5b1!==Symbol[_0x1b5be9(0x12b)]?_0x1b5be9(0xf4):typeof _0x28b5b1;},S(_0x51f3e0);}function Ce(_0x4fa730,_0x1295b9){const _0x12d060=_0x18dff1;if(S(_0x4fa730)!=_0x12d060(0x9e)||!_0x4fa730)return _0x4fa730;var _0x11fbe7=_0x4fa730[Symbol[_0x12d060(0x130)]];if(_0x11fbe7!==void 0x0){var _0x159733=_0x11fbe7['call'](_0x4fa730,_0x1295b9||_0x12d060(0xc1));if(S(_0x159733)!=_0x12d060(0x9e))return _0x159733;throw TypeError(_0x12d060(0xb4));}return(_0x1295b9===_0x12d060(0xcd)?String:Number)(_0x4fa730);}function we(_0x13f33e){const _0x482884=_0x18dff1;var _0x41b163=Ce(_0x13f33e,_0x482884(0xcd));return S(_0x41b163)==_0x482884(0xf4)?_0x41b163:_0x41b163+'';}function C(_0x35d9fd,_0xa99c89,_0x2188d7){const _0x5ef9c1=_0x18dff1;return(_0xa99c89=we(_0xa99c89))in _0x35d9fd?Object[_0x5ef9c1(0xde)](_0x35d9fd,_0xa99c89,{'value':_0x2188d7,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x35d9fd[_0xa99c89]=_0x2188d7,_0x35d9fd;}var w=class extends _0x1054c6{constructor(..._0x52e58e){const _0x5440c9=_0x18dff1;super(..._0x52e58e),C(this,_0x5440c9(0xf7),new Map()),C(this,_0x5440c9(0xd1),new _0xae0c94()),C(this,_0x5440c9(0xef),this[_0x5440c9(0xd1)][_0x5440c9(0xff)]());}[_0x18dff1(0x124)](_0x2450d1,_0x5db27c){const _0x5bd05a=_0x18dff1;return y(this[_0x5bd05a(0xf7)][_0x5bd05a(0x113)](_0x2450d1))[_0x5bd05a(0xc5)][_0x5db27c];}[_0x18dff1(0xa4)](_0x4ee4f5,_0x368627,_0x460458){const _0xb6c8e4=_0x18dff1;this[_0xb6c8e4(0x107)](_0x4ee4f5,_0x368627,b(this[_0xb6c8e4(0xf7)]['get'](_0x4ee4f5),_0x368627,_0x460458));}[_0x18dff1(0xed)](_0x5b8ccf,_0x902146){const _0x1e5c59=_0x18dff1;this[_0x1e5c59(0x107)](_0x5b8ccf,_0x902146,x(this['_resources'][_0x1e5c59(0x113)](_0x5b8ccf),_0x902146));}[_0x18dff1(0x91)](_0x51fa4f){const _0x3ac8af=_0x18dff1;return y(this[_0x3ac8af(0xf7)]['get'](_0x51fa4f));}[_0x18dff1(0xb1)](_0x3f15e4,_0x25ea8a){const _0x27e158=_0x18dff1;this[_0x27e158(0xf7)][_0x27e158(0xcc)](_0x3f15e4,y(_0x25ea8a)),this[_0x27e158(0xd1)][_0x27e158(0xca)]({'unitId':_0x3f15e4});}[_0x18dff1(0x102)](_0x48279f){const _0x39ba6b=_0x18dff1;this[_0x39ba6b(0xf7)]['delete'](_0x48279f),this['_change$'][_0x39ba6b(0xca)]({'unitId':_0x48279f});}[_0x18dff1(0x131)](){const _0x40cbeb=_0x18dff1;super[_0x40cbeb(0x131)](),this[_0x40cbeb(0xf7)]['clear'](),this[_0x40cbeb(0xd1)][_0x40cbeb(0xfa)]();}['_setResource'](_0x39baf5,_0x103ce5,_0x22c4d5){const _0x5e42fa=_0x18dff1;this[_0x5e42fa(0xf7)][_0x5e42fa(0xcc)](_0x39baf5,_0x22c4d5),this['_change$'][_0x5e42fa(0xca)]({'unitId':_0x39baf5,'blockId':_0x103ce5});}};const Te={'id':_0x18dff1(0xbe),'type':_0x19903b[_0x18dff1(0x128)],'handler':(_0x8f62e8,_0x161c01)=>!(_0x161c01!=null&&_0x161c01[_0x18dff1(0xeb)])||!_0x161c01['blockId']?!0x1:(_0x8f62e8['get'](w)[_0x18dff1(0xa4)](_0x161c01[_0x18dff1(0xeb)],_0x161c01[_0x18dff1(0x99)],_0x161c01[_0x18dff1(0x100)]),!0x0)},T={'id':'docs-code.mutation.remove-config','type':_0x19903b[_0x18dff1(0x128)],'handler':(_0x4b94ce,_0x3f3091)=>!(_0x3f3091!=null&&_0x3f3091[_0x18dff1(0xeb)])||!_0x3f3091[_0x18dff1(0x99)]?!0x1:(_0x4b94ce['get'](w)[_0x18dff1(0xed)](_0x3f3091[_0x18dff1(0xeb)],_0x3f3091['blockId']),!0x0)},Ee='monospace';function _0x6b1e(_0x153d40,_0x2ef747){_0x153d40=_0x153d40-0x90;const _0x4deb27=_0x4deb();let _0x6b1e33=_0x4deb27[_0x153d40];return _0x6b1e33;}var E=class extends Error{constructor(_0x2c8326=_0x18dff1(0xc9)){super(_0x2c8326);}};function De(_0x143c2a){const _0x5f3490=_0x18dff1;var _0x608bd2;let _0x3ed6ba=O(_0x143c2a[_0x5f3490(0xe5)]),_0x3846f1=A(_0x3ed6ba),_0x3e9e20=ke(_0x143c2a[_0x5f3490(0x9f)],_0x143c2a[_0x5f3490(0xea)]),_0x5bfaed=_0x3e9e20?(_0x608bd2=_0x3846f1[_0x5f3490(0x115)])==null?void 0x0:_0x608bd2['find'](_0x269f7d=>{const _0x935603=_0x5f3490;let _0x1f06d0=_0x1a4c5b(_0x269f7d);return _0x1f06d0[_0x935603(0x9f)]===_0x3e9e20[_0x935603(0x9f)]&&_0x1f06d0[_0x935603(0xea)]===_0x3e9e20[_0x935603(0xea)];}):void 0x0,{startOffset:_0x11755d,endOffset:_0x38200f}=_0x5bfaed?_0x3e9e20:We(_0x3846f1,_0x143c2a['startOffset'],_0x143c2a['endOffset'],_0x143c2a['insertionMode']);if(!_0x5bfaed&&Ae(_0x3846f1,_0x11755d,_0x38200f))throw new E(_0x5f3490(0x104));let _0x256a2d=qe(_0x3846f1,_0x11755d,_0x38200f),_0x4baed7=(_0x5bfaed==null?void 0x0:_0x5bfaed['blockId'])??_0x143c2a[_0x5f3490(0x99)],_0x216957=b(_0x143c2a[_0x5f3490(0xee)],_0x4baed7,{...Se,..._0x143c2a['config']});if(_0x5bfaed)return _0x5bfaed[_0x5f3490(0x123)]=_0x38c014['CODE'],Oe(_0x3846f1,_0x11755d,_0x38200f),ze(_0x3846f1,_0x11755d,_0x38200f,_0x256a2d),N(_0x3846f1,_0x5bfaed),{'nextDocumentData':_0x3ed6ba,'nextMetadata':_0x216957,'cursorOffset':_0x11755d+0x1};if(_0x11755d===_0x38200f){var _0x167f0e,_0x36af6e;let _0x1405b4=''+_0x22c6c[_0x5f3490(0x11d)]+_0x22c6c[_0x5f3490(0xd6)]+_0x22c6c[_0x5f3490(0x92)];P(_0x3846f1,_0x11755d,_0x1405b4,{'paragraphs':[{'startIndex':0x1,'paragraphId':_0x591cdf(new Set((_0x167f0e=_0x3846f1[_0x5f3490(0x12e)])==null?void 0x0:_0x167f0e[_0x5f3490(0xc4)](_0x5522e6=>_0x5522e6[_0x5f3490(0xc0)]))),'paragraphStyle':Re(!0x0,!0x0,_0x256a2d)}],'blockRanges':[{'blockId':_0x4baed7,'blockType':_0x38c014[_0x5f3490(0xf6)],'startIndex':0x0,'endIndex':_0x1405b4['length']-0x1}]});let _0x41170d=(_0x36af6e=_0x3846f1[_0x5f3490(0x115)])==null?void 0x0:_0x36af6e[_0x5f3490(0x9c)](_0x45ba1e=>_0x45ba1e[_0x5f3490(0x99)]===_0x4baed7);return _0x41170d&&N(_0x3846f1,_0x41170d),{'nextDocumentData':_0x3ed6ba,'nextMetadata':_0x216957,'cursorOffset':_0x11755d+0x1};}P(_0x3846f1,_0x38200f,_0x22c6c[_0x5f3490(0x92)]),P(_0x3846f1,_0x11755d,_0x22c6c[_0x5f3490(0x11d)]),ze(_0x3846f1,_0x11755d,_0x38200f+0x1,_0x256a2d);let _0x23ae74={'blockId':_0x4baed7,'blockType':_0x38c014[_0x5f3490(0xf6)],'startIndex':_0x11755d,'endIndex':_0x38200f+0x1};return _0x3846f1[_0x5f3490(0x115)]=[..._0x3846f1['blockRanges']??[],_0x23ae74][_0x5f3490(0xdb)]((_0x499323,_0x4bd932)=>_0x499323[_0x5f3490(0xa9)]-_0x4bd932['startIndex']),N(_0x3846f1,_0x23ae74),{'nextDocumentData':_0x3ed6ba,'nextMetadata':_0x216957,'cursorOffset':_0x11755d+0x1};}function Oe(_0x1c326c,_0x1934fc,_0x3e3993){const _0x27e4ba=_0x18dff1;(_0x1c326c[_0x27e4ba(0x12e)]??[])[_0x27e4ba(0xc7)](_0x112e34=>_0x112e34[_0x27e4ba(0xa9)]>_0x1934fc&&_0x112e34[_0x27e4ba(0xa9)]<_0x3e3993)[_0x27e4ba(0xcb)](_0x15b370=>{const _0x3487a2=_0x27e4ba;let _0x160307={..._0x15b370['paragraphStyle']??{}};delete _0x160307[_0x3487a2(0x12f)],delete _0x160307['spaceBelow'],_0x15b370[_0x3487a2(0xaf)]=_0x160307;});}function ke(_0x2dc518,_0x5acdf1){const _0x3a9a1e=_0x18dff1;return _0x2dc518==null||_0x5acdf1==null||_0x2dc518===_0x5acdf1?null:{'startOffset':Math[_0x3a9a1e(0xdf)](_0x2dc518,_0x5acdf1),'endOffset':Math[_0x3a9a1e(0xb2)](_0x2dc518,_0x5acdf1)};}function Ae(_0x52013b,_0x101f38,_0x16e159){const _0x46146d=_0x18dff1;return(_0x52013b[_0x46146d(0x115)]??[])[_0x46146d(0x11c)](_0x284a70=>{let _0x1722b2=_0x1a4c5b(_0x284a70);return _0x101f38===_0x16e159?_0x437273(_0x1722b2,_0x101f38):_0x8f659c(_0x1722b2,{'startOffset':_0x101f38,'endOffset':_0x16e159});});}function je(_0x791a6){const _0x3c4b37=_0x18dff1;return{'nextDocumentData':O(_0x791a6[_0x3c4b37(0xe5)]),'nextMetadata':b(_0x791a6['metadata'],_0x791a6[_0x3c4b37(0x99)],_0x791a6['config']),'cursorOffset':0x0};}function D(_0x54fa40){const _0x22797a=_0x18dff1;let _0x11a990=O(_0x54fa40[_0x22797a(0xe5)]),_0x18b55b=A(_0x11a990),_0x146f82=Fe(_0x18b55b,_0x54fa40['blockId']);if(!_0x146f82)return null;let _0xcf800=He(_0x18b55b,_0x146f82);return{'nextDocumentData':_0x11a990,'nextMetadata':x(_0x54fa40[_0x22797a(0xee)],_0x54fa40[_0x22797a(0x99)]),'cursorOffset':_0xcf800};}function Me(_0x39f795){const _0x201cfb=_0x18dff1;var _0x9f1e1;let _0x1fb8ae=O(_0x39f795[_0x201cfb(0xe5)]),_0x20ed79=A(_0x1fb8ae),_0x370d57=Fe(_0x20ed79,_0x39f795[_0x201cfb(0x99)]);if(!_0x370d57)return null;let _0x32442c=_0x1a4c5b(_0x370d57);return F(_0x20ed79,_0x32442c[_0x201cfb(0x9f)],_0x32442c['endOffset']),_0x20ed79[_0x201cfb(0x115)]=(_0x9f1e1=_0x20ed79['blockRanges'])==null?void 0x0:_0x9f1e1['filter'](_0x2a2bda=>_0x2a2bda[_0x201cfb(0x99)]!==_0x39f795[_0x201cfb(0x99)]),{'nextDocumentData':_0x1fb8ae,'nextMetadata':x(_0x39f795[_0x201cfb(0xee)],_0x39f795[_0x201cfb(0x99)]),'cursorOffset':_0x370d57[_0x201cfb(0xa9)]};}function Ne(_0x57da65){const _0x5549a3=_0x18dff1;let _0x40bb25=O(_0x57da65[_0x5549a3(0xe5)]),_0x3d4725=A(_0x40bb25),_0x866c28=Le(_0x3d4725,_0x57da65['cursorOffset']);return _0x866c28&&Pe(_0x40bb25,_0x3d4725,_0x866c28,_0x57da65[_0x5549a3(0xa3)],_0x57da65[_0x5549a3(0xb6)])||null;}function Pe(_0x2c3ead,_0x457f5e,_0x5cfee7,_0x54b1aa,_0x5b737c){const _0x3b4077=_0x18dff1;let _0x318bc9=$e(_0x457f5e,_0x5cfee7,_0x54b1aa,_0x5b737c);if(!_0x318bc9)return null;let _0x4ef68b=_0x318bc9[_0x3b4077(0xd9)]-0x1;return F(_0x457f5e,_0x318bc9[_0x3b4077(0xda)][_0x3b4077(0xa9)],_0x318bc9['paragraph'][_0x3b4077(0xa9)]+0x1),{'nextDocumentData':_0x2c3ead,'cursorOffset':_0x4ef68b};}function Fe(_0x41a23a,_0x455125){const _0x262219=_0x18dff1;var _0x12a5db;return _0x41a23a==null||(_0x12a5db=_0x41a23a[_0x262219(0x115)])==null?void 0x0:_0x12a5db['find'](_0x430cf3=>_0x430cf3['blockType']===_0x38c014[_0x262219(0xf6)]&&_0x430cf3[_0x262219(0x99)]===_0x455125);}function Ie(_0x43475c){const _0x4fe8b3=_0x18dff1;let _0x133f67=_0x43475c[_0x4fe8b3(0xe5)][_0x4fe8b3(0xf1)];if(!_0x133f67)return!0x1;let _0x338981=_0x43475c[_0x4fe8b3(0x9d)]==='left'?_0x43475c[_0x4fe8b3(0xa3)]-0x1:_0x43475c[_0x4fe8b3(0xa3)],_0x3f27b7=_0x43475c[_0x4fe8b3(0x9d)]===_0x4fe8b3(0xe3)?_0x43475c['cursorOffset']+0x1:_0x338981;return(_0x133f67['blockRanges']??[])[_0x4fe8b3(0x11c)](_0x8055ec=>_0x8055ec[_0x4fe8b3(0x123)]===_0x38c014[_0x4fe8b3(0xf6)]?_0x338981===_0x8055ec[_0x4fe8b3(0xa9)]||_0x338981===_0x8055ec['endIndex']||_0x3f27b7===_0x8055ec[_0x4fe8b3(0xa9)]||_0x3f27b7===_0x8055ec[_0x4fe8b3(0x114)]:!0x1);}function Le(_0x4e8794,_0x23044a){var _0x19c57f;return(_0x19c57f=_0x4e8794['blockRanges'])==null?void 0x0:_0x19c57f['find'](_0x490459=>{const _0x1dc33f=_0x6b1e;let _0x4b5048=M(_0x490459);return _0x490459['blockType']===_0x38c014[_0x1dc33f(0xf6)]&&_0x490459[_0x1dc33f(0xa9)]<=_0x23044a&&_0x23044a<=_0x4b5048+0x2;});}function Re(_0x1b8d73,_0x1323a6,_0x19d033=!0x1){const _0x1b4920=_0x18dff1;return{'indentEnd':{'v':0x14},'indentStart':{'v':0x14},'keepLines':_0x1d2318[_0x1b4920(0xd5)],'keepNext':_0x1323a6?_0x1d2318[_0x1b4920(0x96)]:_0x1d2318[_0x1b4920(0xd5)],'widowControl':_0x1d2318['TRUE'],..._0x1b8d73&&_0x19d033?{'spaceAbove':{'v':0x8}}:{},'textStyle':{'ff':Ee,'fs':0xc}};}function ze(_0x5183a2,_0x4a8afe,_0x1538c7,_0x3c935a=!0x1){const _0x517481=_0x18dff1;let _0x783f52=(_0x5183a2[_0x517481(0x12e)]??[])[_0x517481(0xc7)](_0x440c8a=>_0x440c8a['startIndex']>_0x4a8afe&&_0x440c8a['startIndex']<_0x1538c7);_0x783f52[_0x517481(0xcb)]((_0x5210ce,_0x12f12d)=>{const _0x13a107=_0x517481;_0x5210ce[_0x13a107(0xaf)]={..._0x5210ce['paragraphStyle']??{},...Re(_0x12f12d===0x0,_0x12f12d===_0x783f52[_0x13a107(0xfe)]-0x1,_0x3c935a)};});}function Be(_0x317ef0){const _0x561e2f=_0x18dff1;var _0x11a0d9,_0x268f41;let _0x325d5d={..._0x317ef0??{}};return delete _0x325d5d[_0x561e2f(0x12d)],delete _0x325d5d[_0x561e2f(0x10b)],delete _0x325d5d[_0x561e2f(0x12f)],delete _0x325d5d['spaceBelow'],delete _0x325d5d[_0x561e2f(0xe7)],delete _0x325d5d['keepNext'],delete _0x325d5d['widowControl'],((_0x11a0d9=_0x325d5d['textStyle'])==null?void 0x0:_0x11a0d9['ff'])===Ee&&((_0x268f41=_0x325d5d[_0x561e2f(0xe0)])==null?void 0x0:_0x268f41['fs'])===0xc&&delete _0x325d5d['textStyle'],_0x325d5d;}function Ve(_0x482e5f,_0x72cb52){const _0x533da0=_0x18dff1;let _0x45b2e9=M(_0x72cb52);return(_0x482e5f[_0x533da0(0x12e)]??[])[_0x533da0(0xc7)](_0x374796=>_0x374796[_0x533da0(0xa9)]>_0x72cb52['startIndex']&&_0x374796['startIndex']<_0x45b2e9);}function He(_0x5ea561,_0x2e6a2f){const _0xb7ddb4=_0x18dff1;var _0x58faea;let _0x369cc3=M(_0x2e6a2f);return Ve(_0x5ea561,_0x2e6a2f)[_0xb7ddb4(0xcb)](_0x3e11c4=>{const _0x57ccb7=_0xb7ddb4;_0x3e11c4[_0x57ccb7(0xaf)]=Be(_0x3e11c4[_0x57ccb7(0xaf)]);}),F(_0x5ea561,_0x369cc3,_0x369cc3+0x1),F(_0x5ea561,_0x2e6a2f[_0xb7ddb4(0xa9)],_0x2e6a2f[_0xb7ddb4(0xa9)]+0x1),_0x5ea561[_0xb7ddb4(0x115)]=(_0x58faea=_0x5ea561[_0xb7ddb4(0x115)])==null?void 0x0:_0x58faea[_0xb7ddb4(0xc7)](_0x1bdfea=>_0x1bdfea[_0xb7ddb4(0x99)]!==_0x2e6a2f['blockId']),_0x2e6a2f[_0xb7ddb4(0xa9)];}function O(_0x31204d){const _0x303ae8=_0x18dff1;return{..._0x31204d,'body':_0x31204d['body']?Ue(_0x31204d[_0x303ae8(0xf1)]):_0x31204d['body']};}function Ue(_0x3621c3){const _0x1fa514=_0x18dff1;var _0x29b880,_0x173f1a,_0x315aa1,_0x2decf1,_0x46a988,_0x394415,_0xc23db8,_0x5c12d8,_0x24fed0;return{..._0x3621c3,'paragraphs':(_0x29b880=_0x3621c3[_0x1fa514(0x12e)])==null?void 0x0:_0x29b880['map'](_0x65324f=>({..._0x65324f,'bullet':k(_0x65324f[_0x1fa514(0x12a)]),'paragraphStyle':k(_0x65324f['paragraphStyle'])})),'sectionBreaks':(_0x173f1a=_0x3621c3['sectionBreaks'])==null?void 0x0:_0x173f1a[_0x1fa514(0xc4)](_0x47f335=>({..._0x47f335})),'textRuns':(_0x315aa1=_0x3621c3['textRuns'])==null?void 0x0:_0x315aa1[_0x1fa514(0xc4)](_0x5ee6de=>({..._0x5ee6de})),'tables':(_0x2decf1=_0x3621c3[_0x1fa514(0x127)])==null?void 0x0:_0x2decf1[_0x1fa514(0xc4)](_0x4c02c2=>({..._0x4c02c2})),'columnGroups':(_0x46a988=_0x3621c3[_0x1fa514(0xa2)])==null?void 0x0:_0x46a988['map'](_0x22bbb0=>{const _0x22fb92=_0x1fa514;var _0x3b2b80;return{..._0x22bbb0,'columns':(_0x3b2b80=_0x22bbb0['columns'])==null?void 0x0:_0x3b2b80[_0x22fb92(0xc4)](_0x575c15=>k(_0x575c15))};}),'blockRanges':(_0x394415=_0x3621c3['blockRanges'])==null?void 0x0:_0x394415[_0x1fa514(0xc4)](_0x1a8c08=>({..._0x1a8c08})),'customRanges':(_0xc23db8=_0x3621c3['customRanges'])==null?void 0x0:_0xc23db8['map'](_0x44758f=>({..._0x44758f})),'customDecorations':(_0x5c12d8=_0x3621c3[_0x1fa514(0xf2)])==null?void 0x0:_0x5c12d8[_0x1fa514(0xc4)](_0x5441e3=>({..._0x5441e3})),'customBlocks':(_0x24fed0=_0x3621c3[_0x1fa514(0x93)])==null?void 0x0:_0x24fed0[_0x1fa514(0xc4)](_0x257fcf=>({..._0x257fcf}))};}function _0x4deb(){const _0x17c9fb=['getUnitId','3753FEXNft','docs-code.command.remove','176xDRHSC','docs-code.command.update','get','endIndex','blockRanges','customRanges','every','_resourceManagerService','setConfig','version','1605616LqkRXW','some','BLOCK_START','pluginName','keys','startTokenOffset','slice','disposeWithMe','blockType','getCodeConfig','insertionMode','nextMetadata','tables','MUTATION','replaceDocRanges','bullet','prototype','entries','indentEnd','paragraphs','spaceAbove','toPrimitive','dispose','COMMAND','serialize','BLOCK_END','customBlocks','compose','reduce','FALSE','convert-paragraph','previousDocumentData','blockId','getInstance','isArray','find','direction','object','startOffset','delete','5161548AFEUep','columnGroups','cursorOffset','setCodeConfig','@univerjs-pro/docs-code','getSnapshot','start','push','startIndex','48LpPKfP','_config','_initResource','textRuns','model','paragraphStyle','registerPluginResource','deserialize','max','1580kJiKRs','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','replaceOp','paragraphStartIndex','nextDocumentData','TABLE_CELL_START','docs-code.command.insert','iterator','selectionManager','syncExecuteCommand','insertOp','docs-code.mutation.set-config','deleteLength','paragraphId','default','insert-new','commandService','map','codes','getBody','filter','getUnit','Insert\x20range\x20cannot\x20cross\x20table\x20cell\x20boundaries','next','forEach','set','string','getCurrentUnitOfType','_commandService','getOwnPropertyDescriptor','_change$','onStarting','docs-code.config','DOC_CODE_PLUGIN','TRUE','PARAGRAPH','7188jIjLWQ','1439552RXdVUC','endTokenOffset','paragraph','sort','range','TABLE_CELL_END','defineProperty','min','textStyle','dataStream','add','right','_docsCodeModel','documentData','type','keepLines','insert','stringify','endOffset','unitId','sectionBreaks','removeCode','metadata','change$','697950TSJSak','body','customDecorations','_configService','symbol','4206789YXoere','CODE','_resources','SECTION_BREAK','getTextRanges','complete','UNIVER_DOC','docs-code.command.consume-boundary-delete','from','length','asObservable','config','removeOp','removeUnit','insertLength','Insert\x20range\x20cannot\x20overlap\x20an\x20existing\x20document\x20block','_injector','Document\x20body\x20is\x20required','_setResource','3VOMLyn','decorate','docs-code.command.cancel-empty-paragraph','indentStart','javascript','docs-code.command.exit'];_0x4deb=function(){return _0x17c9fb;};return _0x4deb();}function k(_0x11d0c0){const _0x212b29=_0x18dff1;return Array[_0x212b29(0x9b)](_0x11d0c0)?_0x11d0c0['map'](_0x5d3b82=>k(_0x5d3b82)):!_0x11d0c0||typeof _0x11d0c0!='object'?_0x11d0c0:Object['fromEntries'](Object[_0x212b29(0x12c)](_0x11d0c0)['map'](([_0x3b3801,_0x4e95a7])=>[_0x3b3801,k(_0x4e95a7)]));}function A(_0x2dc12e){const _0x515225=_0x18dff1;if(!_0x2dc12e[_0x515225(0xf1)])throw Error(_0x515225(0x106));return _0x2dc12e[_0x515225(0xf1)];}function We(_0x5a027c,_0x328aeb,_0x5e65b1,_0xcfe149=_0x18dff1(0x97)){const _0x3ee415=_0x18dff1;if(_0x328aeb==null||_0x5e65b1==null){let _0x43d673=Ke(_0x5a027c);return{'startOffset':_0x43d673,'endOffset':_0x43d673};}let _0x25fd66=Math[_0x3ee415(0xdf)](_0x328aeb,_0x5e65b1),_0x5a164e=Math['max'](_0x328aeb,_0x5e65b1),_0x9fff8d=Ze(_0x5a027c,_0x25fd66,_0x5a164e);return _0x25fd66===_0x5a164e?_0xcfe149===_0x3ee415(0xc2)?{'startOffset':_0x25fd66,'endOffset':_0x5a164e}:Ge(_0x5a027c,_0x25fd66,_0x9fff8d):Je(_0x5a027c,_0x25fd66,_0x5a164e,_0x9fff8d);}function Ge(_0x5cde17,_0x52822b,_0x509935){const _0x8715b2=_0x18dff1;let _0x594f1a=Ye(_0x5cde17,_0x52822b);if(_0x594f1a){let _0x2eae89=j(_0x5cde17,_0x594f1a,_0x509935);if(_0x2eae89<_0x594f1a[_0x8715b2(0xa9)])return{'startOffset':_0x2eae89,'endOffset':_0x509935?Math['min'](_0x594f1a[_0x8715b2(0xa9)]+0x1,_0x509935['endOffset']):_0x594f1a[_0x8715b2(0xa9)]+0x1};}let _0x16d409=_0x52822b===0x0&&_0x5cde17[_0x8715b2(0xe1)][0x0]===_0x22c6c[_0x8715b2(0xd6)]?0x1:_0x52822b;return{'startOffset':_0x16d409,'endOffset':_0x16d409};}function Ke(_0xb998b3){const _0x16af27=_0x18dff1;return _0xb998b3[_0x16af27(0xe1)]['endsWith'](_0x22c6c['SECTION_BREAK'])?Math[_0x16af27(0xb2)](0x0,_0xb998b3[_0x16af27(0xe1)][_0x16af27(0xfe)]-0x1):_0xb998b3[_0x16af27(0xe1)]['length'];}function qe(_0x417c67,_0x191082,_0x4834df){const _0x1ea7f0=_0x18dff1;var _0x190c1f;let _0x1333ce=Math[_0x1ea7f0(0xdf)](_0x191082,_0x4834df),_0x460a3c=Math[_0x1ea7f0(0xb2)](_0x191082,_0x4834df);return!!((_0x190c1f=_0x417c67['tables'])!=null&&_0x190c1f['some'](_0x2f6172=>_0x1333ce>_0x2f6172[_0x1ea7f0(0xa9)]&&_0x1333ce<_0x2f6172['endIndex']||_0x460a3c>_0x2f6172[_0x1ea7f0(0xa9)]&&_0x460a3c<_0x2f6172['endIndex']||_0x1333ce<=_0x2f6172[_0x1ea7f0(0xa9)]&&_0x460a3c>=_0x2f6172[_0x1ea7f0(0x114)]));}function Je(_0x50b576,_0x20e6b2,_0x4777fb,_0x37714a){const _0x4f94ec=_0x18dff1;let _0x28623e=[..._0x50b576[_0x4f94ec(0x12e)]??[]][_0x4f94ec(0xdb)]((_0x288a61,_0x506b88)=>_0x288a61[_0x4f94ec(0xa9)]-_0x506b88[_0x4f94ec(0xa9)]),_0x11e22f=_0x52d57d(_0x50b576),_0x4e39a6=_0x28623e[_0x4f94ec(0x9c)](_0x5a1a9f=>j(_0x50b576,_0x5a1a9f,_0x37714a,_0x11e22f)<=_0x20e6b2&&_0x20e6b2<=_0x5a1a9f[_0x4f94ec(0xa9)]),_0x21fca6=_0x28623e[_0x4f94ec(0x9c)](_0x322524=>_0x322524[_0x4f94ec(0xa9)]>=_0x4777fb-0x1)??_0x28623e[_0x28623e[_0x4f94ec(0xfe)]-0x1];return{'startOffset':_0x4e39a6?j(_0x50b576,_0x4e39a6,_0x37714a,_0x11e22f):_0x20e6b2,'endOffset':_0x21fca6?Xe(_0x21fca6,_0x37714a):_0x4777fb};}function Ye(_0xa35e5a,_0x4a4233){const _0x1044e9=_0x18dff1;let _0xdb0529=[..._0xa35e5a['paragraphs']??[]]['sort']((_0x5bab38,_0x3382af)=>_0x5bab38[_0x1044e9(0xa9)]-_0x3382af[_0x1044e9(0xa9)]),_0x573d14=_0x52d57d(_0xa35e5a);return _0xdb0529[_0x1044e9(0x9c)](_0x3e88e6=>(_0x573d14[_0x1044e9(0x113)](_0x3e88e6[_0x1044e9(0xa9)])??0x0)<=_0x4a4233&&_0x4a4233<=_0x3e88e6[_0x1044e9(0xa9)]);}function j(_0x115ab3,_0xdb56c2,_0xe4dfed,_0x906d74){const _0x3fe5b8=_0x18dff1;let _0x81d024=(_0x906d74==null?void 0x0:_0x906d74['get'](_0xdb56c2['startIndex']))??_0x13bc7e(_0x115ab3,_0xdb56c2);return _0xe4dfed?Math[_0x3fe5b8(0xb2)](_0x81d024,_0xe4dfed[_0x3fe5b8(0x9f)]):_0x81d024;}function Xe(_0x2b3c02,_0x34e0b3){const _0x3edb9b=_0x18dff1;let _0x4d2c3e=_0x2b3c02[_0x3edb9b(0xa9)]+0x1;return _0x34e0b3?Math[_0x3edb9b(0xdf)](_0x4d2c3e,_0x34e0b3[_0x3edb9b(0xea)]):_0x4d2c3e;}function Ze(_0x3d8832,_0x4ae807,_0x14862c){const _0x5c1254=_0x18dff1;let _0x5decb3=Qe(_0x3d8832,_0x4ae807),_0x9dbff5=Qe(_0x3d8832,_0x4ae807===_0x14862c?_0x14862c:Math[_0x5c1254(0xb2)](_0x4ae807,_0x14862c-0x1));if(_0x5decb3||_0x9dbff5){if(!_0x5decb3||!_0x9dbff5||_0x5decb3[_0x5c1254(0x120)]!==_0x9dbff5[_0x5c1254(0x120)]||_0x5decb3['endTokenOffset']!==_0x9dbff5[_0x5c1254(0xd9)])throw new E();return _0x5decb3;}}function Qe(_0x1ddf10,_0x34e1cc){const _0x474022=_0x18dff1;let _0x4dea39=_0x1ddf10[_0x474022(0xe1)],_0x8f0edb=-0x1;for(let _0x706ceb=Math['min'](_0x34e1cc,_0x4dea39[_0x474022(0xfe)]-0x1);_0x706ceb>=0x0;_0x706ceb--){let _0x52f76f=_0x4dea39[_0x706ceb];if(_0x52f76f===_0x22c6c[_0x474022(0xdd)])return;if(_0x52f76f===_0x22c6c[_0x474022(0xb8)]){_0x8f0edb=_0x706ceb;break;}}if(_0x8f0edb<0x0)return;let _0x2f0cfe=_0x4dea39['indexOf'](_0x22c6c['TABLE_CELL_END'],_0x8f0edb+0x1);if(!(_0x2f0cfe<0x0||_0x34e1cc<_0x8f0edb+0x1||_0x34e1cc>_0x2f0cfe-0x1))return{'startOffset':_0x8f0edb+0x1,'endOffset':Math[_0x474022(0xb2)](_0x8f0edb+0x1,_0x2f0cfe-0x1),'startTokenOffset':_0x8f0edb,'endTokenOffset':_0x2f0cfe};}function M(_0x43a719){const _0x59e5c3=_0x18dff1;return _0x1a4c5b(_0x43a719)[_0x59e5c3(0xea)]-0x1;}function $e(_0x15426c,_0x4b9a85,_0x5a8293,_0xf42b62){const _0x1bea51=_0x18dff1;let _0x10f16c=M(_0x4b9a85),_0x29833f=(_0x15426c[_0x1bea51(0x12e)]??[])[_0x1bea51(0x9c)](_0x8abcef=>_0x8abcef[_0x1bea51(0xa9)]===_0x10f16c+0x1);if(!_0x29833f||_0xf42b62!=null&&_0x29833f[_0x1bea51(0xa9)]!==_0xf42b62||_0x5a8293!=null&&(_0x5a8293<_0x10f16c||_0x5a8293>_0x29833f['startIndex']+0x1)||_0x15426c[_0x1bea51(0xe1)][_0x29833f[_0x1bea51(0xa9)]]!==_0x22c6c[_0x1bea51(0xd6)])return null;let _0x944701=_0x13bc7e(_0x15426c,_0x29833f),_0x22186b=_0x15426c['dataStream']['slice'](_0x944701,_0x29833f['startIndex']);return Array[_0x1bea51(0xfd)](_0x22186b)[_0x1bea51(0x117)](_0x34dd16=>_0x34dd16===_0x22c6c[_0x1bea51(0x92)])?{'paragraph':_0x29833f,'endTokenOffset':_0x10f16c}:null;}function N(_0x3b5005,_0x9e39c6){const _0xd8cbdf=_0x18dff1;var _0x346356;let _0x5b1f87=M(_0x9e39c6),_0x127f26=_0x3b5005[_0xd8cbdf(0xe1)][_0x5b1f87+0x1];(_0x127f26===_0x22c6c[_0xd8cbdf(0xf8)]||_0x127f26===void 0x0)&&P(_0x3b5005,_0x5b1f87+0x1,_0x22c6c[_0xd8cbdf(0xd6)],{'paragraphs':[{'startIndex':0x0,'paragraphId':_0x591cdf(new Set((_0x346356=_0x3b5005['paragraphs'])==null?void 0x0:_0x346356[_0xd8cbdf(0xc4)](_0x1e2018=>_0x1e2018[_0xd8cbdf(0xc0)])))}]});}function P(_0x312a0f,_0x169115,_0xd6bd58,_0x4ce5f7={}){const _0x3d4d05=_0x18dff1;var _0x1b7e00,_0x2c1b42;_0xd6bd58&&(_0x312a0f['dataStream']=''+_0x312a0f[_0x3d4d05(0xe1)][_0x3d4d05(0x121)](0x0,_0x169115)+_0xd6bd58+_0x312a0f[_0x3d4d05(0xe1)][_0x3d4d05(0x121)](_0x169115),et(_0x312a0f,_0x169115,_0xd6bd58[_0x3d4d05(0xfe)]),(_0x1b7e00=_0x4ce5f7[_0x3d4d05(0x12e)])!=null&&_0x1b7e00[_0x3d4d05(0xfe)]&&(_0x312a0f[_0x3d4d05(0x12e)]=[..._0x312a0f[_0x3d4d05(0x12e)]??[],..._0x4ce5f7[_0x3d4d05(0x12e)]['map'](_0x59aa10=>({..._0x59aa10,'startIndex':_0x59aa10['startIndex']+_0x169115}))]['sort']((_0x46ffc6,_0x171106)=>_0x46ffc6[_0x3d4d05(0xa9)]-_0x171106['startIndex'])),(_0x2c1b42=_0x4ce5f7['blockRanges'])!=null&&_0x2c1b42[_0x3d4d05(0xfe)]&&(_0x312a0f[_0x3d4d05(0x115)]=[..._0x312a0f[_0x3d4d05(0x115)]??[],..._0x4ce5f7['blockRanges'][_0x3d4d05(0xc4)](_0x1c6019=>({..._0x1c6019,'startIndex':_0x1c6019[_0x3d4d05(0xa9)]+_0x169115,'endIndex':_0x1c6019[_0x3d4d05(0x114)]+_0x169115}))][_0x3d4d05(0xdb)]((_0x2d7fff,_0x3d0f4b)=>_0x2d7fff[_0x3d4d05(0xa9)]-_0x3d0f4b[_0x3d4d05(0xa9)])));}function F(_0x4e11f3,_0x327042,_0x527597){const _0x133d3d=_0x18dff1;let _0x10da1a=_0x527597-_0x327042;_0x4e11f3[_0x133d3d(0xe1)]=''+_0x4e11f3[_0x133d3d(0xe1)][_0x133d3d(0x121)](0x0,_0x327042)+_0x4e11f3['dataStream'][_0x133d3d(0x121)](_0x527597),tt(_0x4e11f3,_0x327042,_0x10da1a);}function et(_0x5165a3,_0x22992d,_0x5de020){const _0x58201a=_0x18dff1;_0x5165a3[_0x58201a(0x12e)]=I(_0x5165a3[_0x58201a(0x12e)],_0x22992d,_0x5de020),_0x5165a3['sectionBreaks']=I(_0x5165a3[_0x58201a(0xec)],_0x22992d,_0x5de020),_0x5165a3[_0x58201a(0x93)]=I(_0x5165a3[_0x58201a(0x93)],_0x22992d,_0x5de020),_0x5165a3['textRuns']=nt(_0x5165a3['textRuns'],_0x22992d,_0x5de020),_0x5165a3[_0x58201a(0x127)]=rt(_0x5165a3['tables'],_0x22992d,_0x5de020),_0x5165a3[_0x58201a(0xa2)]=R(_0x5165a3[_0x58201a(0xa2)],_0x22992d,_0x5de020),_0x5165a3['customRanges']=R(_0x5165a3[_0x58201a(0x116)],_0x22992d,_0x5de020),_0x5165a3[_0x58201a(0xf2)]=R(_0x5165a3[_0x58201a(0xf2)],_0x22992d,_0x5de020),_0x5165a3['blockRanges']=R(_0x5165a3[_0x58201a(0x115)],_0x22992d,_0x5de020);}function tt(_0x1b5d14,_0x45f98f,_0x38f1e8){const _0x2d8243=_0x18dff1;var _0x14c5b4,_0x54fad2;_0x1b5d14['paragraphs']=L(_0x1b5d14['paragraphs'],_0x45f98f,_0x38f1e8),_0x1b5d14[_0x2d8243(0xec)]=L(_0x1b5d14[_0x2d8243(0xec)],_0x45f98f,_0x38f1e8),_0x1b5d14[_0x2d8243(0x93)]=L(_0x1b5d14[_0x2d8243(0x93)],_0x45f98f,_0x38f1e8),_0x1b5d14[_0x2d8243(0xad)]=(_0x14c5b4=it((_0x54fad2=_0x1b5d14[_0x2d8243(0xad)])==null?void 0x0:_0x54fad2['map'](_0x4c28b1=>({..._0x4c28b1,'startIndex':_0x4c28b1['st'],'endIndex':_0x4c28b1['ed']})),_0x45f98f,_0x38f1e8))==null?void 0x0:_0x14c5b4[_0x2d8243(0xc4)](_0x25c664=>{let {startIndex:_0x231333,endIndex:_0x4a7610,..._0x51d6cc}=_0x25c664;return{..._0x51d6cc,'st':_0x231333,'ed':_0x4a7610};}),_0x1b5d14['tables']=it(_0x1b5d14['tables'],_0x45f98f,_0x38f1e8),_0x1b5d14['columnGroups']=z(_0x1b5d14[_0x2d8243(0xa2)],_0x45f98f,_0x38f1e8),_0x1b5d14[_0x2d8243(0x116)]=z(_0x1b5d14[_0x2d8243(0x116)],_0x45f98f,_0x38f1e8),_0x1b5d14[_0x2d8243(0xf2)]=z(_0x1b5d14[_0x2d8243(0xf2)],_0x45f98f,_0x38f1e8),_0x1b5d14[_0x2d8243(0x115)]=z(_0x1b5d14[_0x2d8243(0x115)],_0x45f98f,_0x38f1e8);}function I(_0x158761,_0x4d5be9,_0xaff68f){const _0x37bf73=_0x18dff1;return _0x158761==null?void 0x0:_0x158761[_0x37bf73(0xc4)](_0x545cd8=>_0x545cd8[_0x37bf73(0xa9)]>=_0x4d5be9?{..._0x545cd8,'startIndex':_0x545cd8[_0x37bf73(0xa9)]+_0xaff68f}:_0x545cd8);}function L(_0x32ab88,_0x220ae7,_0x3c90a4){const _0x31dcc8=_0x18dff1;let _0x36505f=_0x220ae7+_0x3c90a4;return _0x32ab88==null?void 0x0:_0x32ab88['map'](_0x52b41f=>_0x52b41f[_0x31dcc8(0xa9)]>=_0x220ae7&&_0x52b41f['startIndex']<_0x36505f?null:_0x52b41f[_0x31dcc8(0xa9)]>=_0x36505f?{..._0x52b41f,'startIndex':_0x52b41f['startIndex']-_0x3c90a4}:_0x52b41f)[_0x31dcc8(0xc7)](_0x3ca6f8=>_0x3ca6f8!=null);}function nt(_0x43d7c5,_0x3e4715,_0x57e227){return _0x43d7c5==null?void 0x0:_0x43d7c5['map'](_0x2b2bbc=>_0x2b2bbc['st']>=_0x3e4715?{..._0x2b2bbc,'st':_0x2b2bbc['st']+_0x57e227,'ed':_0x2b2bbc['ed']+_0x57e227}:_0x2b2bbc['ed']>_0x3e4715?{..._0x2b2bbc,'ed':_0x2b2bbc['ed']+_0x57e227}:_0x2b2bbc);}function R(_0x55fc6d,_0x5bd16e,_0xf8233){return _0x55fc6d==null?void 0x0:_0x55fc6d['map'](_0x533e04=>_0x221047(_0x533e04,_0x5bd16e,_0xf8233));}function rt(_0xad487b,_0x463962,_0x2d32d9){const _0x559c2c=_0x18dff1;return _0xad487b==null?void 0x0:_0xad487b[_0x559c2c(0xc4)](_0x477eef=>_0x1b7ff4(_0x477eef,_0x463962,_0x2d32d9));}function z(_0x5e3d44,_0x11f2ff,_0x35b5c3){return _0x5e3d44==null?void 0x0:_0x5e3d44['map'](_0x390772=>_0x3a1df5(_0x390772,_0x11f2ff,_0x35b5c3))['filter'](_0x54c30=>_0x54c30!=null);}function it(_0x6a4362,_0x459eca,_0x34d9f4){const _0x5a8b6e=_0x18dff1;return _0x6a4362==null?void 0x0:_0x6a4362[_0x5a8b6e(0xc4)](_0x5908e9=>_0x474e7c(_0x5908e9,_0x459eca,_0x34d9f4))[_0x5a8b6e(0xc7)](_0x1cca62=>_0x1cca62!=null);}const at={'id':'docs-code.command.insert-below','type':_0x19903b[_0x18dff1(0x90)],'handler':_0x2c39b2=>{const _0x43be42=_0x18dff1;var _0x36dd7d;if(_0x381bc1(G(_0x2c39b2)))return!0x1;let _0xec2ee5=_0xb85039(_0x2c39b2);if(_0xec2ee5)return _0x2c39b2[_0x43be42(0x113)](_0x4ed376)['syncExecuteCommand'](B['id'],{'startOffset':_0xec2ee5[_0x43be42(0x9f)],'endOffset':_0xec2ee5[_0x43be42(0xea)],'insertionMode':_0x43be42(0xc2),'unitId':_0xec2ee5[_0x43be42(0xeb)]});let _0x14b3e5=ft(_0x2c39b2);if(!_0x14b3e5)return!0x1;let _0x5f4c11=(_0x36dd7d=_0x2c39b2[_0x43be42(0x113)](_0x2ee2bc)[_0x43be42(0xce)](_0x8cc94f['UNIVER_DOC']))==null?void 0x0:_0x36dd7d[_0x43be42(0xc6)](),_0x128ea4=_0x5f4c11?_0x2c7394(_0x5f4c11,_0x14b3e5):_0x14b3e5['startIndex']+0x1;return _0x2c39b2['get'](_0x4ed376)[_0x43be42(0xbc)](B['id'],{'startOffset':_0x128ea4,'endOffset':_0x128ea4});}},ot={'id':_0x18dff1(0xfc),'type':_0x19903b['COMMAND'],'handler':()=>!0x0},B={'id':_0x18dff1(0xb9),'type':_0x19903b[_0x18dff1(0x90)],'handler':(_0x4f2d7f,_0x1d705f)=>{const _0x3f15de=_0x18dff1;let _0x59df34=W(_0x4f2d7f,_0x1d705f==null?void 0x0:_0x1d705f[_0x3f15de(0xeb)]);if(!_0x59df34)return!0x1;let _0xb55c80=G(_0x4f2d7f);if(_0x381bc1(_0xb55c80))return!0x1;let _0x1ae474=_0x59df34[_0x3f15de(0xae)][_0x3f15de(0x91)](_0x59df34[_0x3f15de(0xeb)]),_0x775b02=lt(_0x1d705f,_0xb55c80),_0x393a25=ut(_0x59df34['previousDocumentData'],_0x775b02);if(_0x393a25){if(_0x393a25['blockType']!==_0x38c014[_0x3f15de(0xf6)])return!0x1;let _0x2007c3=D({'blockId':_0x393a25['blockId'],'documentData':_0x59df34[_0x3f15de(0x98)],'metadata':_0x1ae474});if(!_0x2007c3)return!0x1;let _0xd65bb7=Y(_0x59df34[_0x3f15de(0xc3)],_0x59df34[_0x3f15de(0xbb)],_0x59df34['unitId'],_0x59df34['previousDocumentData'],_0x2007c3[_0x3f15de(0xb7)],B['id'],_0x2007c3[_0x3f15de(0xa3)]);return _0xd65bb7&&_0x2007c3[_0x3f15de(0x126)]&&_0x59df34[_0x3f15de(0xae)]['deserialize'](_0x59df34[_0x3f15de(0xeb)],_0x2007c3[_0x3f15de(0x126)]),_0xd65bb7;}let _0x385404=(_0x1d705f==null?void 0x0:_0x1d705f[_0x3f15de(0x99)])??_0x5c655(0x6),_0x38c23c;try{_0x38c23c=De({'blockId':_0x385404,'config':_0x1d705f==null?void 0x0:_0x1d705f[_0x3f15de(0x100)],'documentData':_0x59df34[_0x3f15de(0x98)],'endOffset':_0x775b02==null?void 0x0:_0x775b02['endOffset'],'insertionMode':_0x1d705f==null?void 0x0:_0x1d705f[_0x3f15de(0x125)],'metadata':_0x1ae474,'startOffset':_0x775b02==null?void 0x0:_0x775b02[_0x3f15de(0x9f)]});}catch(_0x707d02){if(_0x707d02 instanceof E)return!0x1;throw _0x707d02;}let _0x42e2a5=Y(_0x59df34[_0x3f15de(0xc3)],_0x59df34['selectionManager'],_0x59df34[_0x3f15de(0xeb)],_0x59df34['previousDocumentData'],_0x38c23c['nextDocumentData'],B['id'],_0x38c23c[_0x3f15de(0xa3)]);return _0x42e2a5&&_0x38c23c[_0x3f15de(0x126)]&&_0x59df34[_0x3f15de(0xae)][_0x3f15de(0xb1)](_0x59df34[_0x3f15de(0xeb)],_0x38c23c[_0x3f15de(0x126)]),_0x42e2a5;}},st={'id':_0x18dff1(0x112),'type':_0x19903b[_0x18dff1(0x90)],'handler':(_0x682877,_0x4f9c79)=>{const _0x7a0001=_0x18dff1;if(!_0x4f9c79)return!0x1;let _0x51b5a8=W(_0x682877,_0x4f9c79[_0x7a0001(0xeb)]);if(!_0x51b5a8)return!0x1;let _0x35ff59=je({'blockId':_0x4f9c79[_0x7a0001(0x99)],'config':_0x4f9c79[_0x7a0001(0x100)],'documentData':_0x51b5a8[_0x7a0001(0x98)],'metadata':_0x51b5a8['model'][_0x7a0001(0x91)](_0x51b5a8['unitId'])});return _0x35ff59[_0x7a0001(0x126)]&&_0x51b5a8[_0x7a0001(0xae)]['deserialize'](_0x51b5a8[_0x7a0001(0xeb)],_0x35ff59[_0x7a0001(0x126)]),!0x0;}},ct={'id':_0x18dff1(0x10d),'type':_0x19903b['COMMAND'],'handler':(_0x5508aa,_0x499df6)=>V['handler'](_0x5508aa,_0x499df6)},V={'id':'docs-code.command.unwrap','type':_0x19903b[_0x18dff1(0x90)],'handler':(_0x358de2,_0x3edbdc)=>{const _0x49856e=_0x18dff1;if(!_0x3edbdc)return!0x1;let _0x3c99f0=W(_0x358de2,_0x3edbdc==null?void 0x0:_0x3edbdc[_0x49856e(0xeb)]);if(!_0x3c99f0)return!0x1;let _0x589002=D({'blockId':_0x3edbdc[_0x49856e(0x99)],'documentData':_0x3c99f0[_0x49856e(0x98)],'metadata':_0x3c99f0['model'][_0x49856e(0x91)](_0x3c99f0[_0x49856e(0xeb)])});if(!_0x589002)return!0x1;let _0x1f3a84=Y(_0x3c99f0[_0x49856e(0xc3)],_0x3c99f0['selectionManager'],_0x3c99f0[_0x49856e(0xeb)],_0x3c99f0[_0x49856e(0x98)],_0x589002[_0x49856e(0xb7)],V['id'],_0x589002['cursorOffset']);return _0x1f3a84&&_0x589002['nextMetadata']&&_0x3c99f0['model'][_0x49856e(0xb1)](_0x3c99f0[_0x49856e(0xeb)],_0x589002[_0x49856e(0x126)]),_0x1f3a84;}},H={'id':_0x18dff1(0x110),'type':_0x19903b['COMMAND'],'handler':(_0x199826,_0x447e65)=>{const _0x11dabf=_0x18dff1;if(!_0x447e65)return!0x1;let _0x160fde=W(_0x199826,_0x447e65==null?void 0x0:_0x447e65[_0x11dabf(0xeb)]);if(!_0x160fde)return!0x1;let _0x230c73=Me({'blockId':_0x447e65[_0x11dabf(0x99)],'documentData':_0x160fde[_0x11dabf(0x98)],'metadata':_0x160fde[_0x11dabf(0xae)][_0x11dabf(0x91)](_0x160fde[_0x11dabf(0xeb)])});if(!_0x230c73)return!0x1;let _0x10951a=Y(_0x160fde[_0x11dabf(0xc3)],_0x160fde[_0x11dabf(0xbb)],_0x160fde[_0x11dabf(0xeb)],_0x160fde[_0x11dabf(0x98)],_0x230c73[_0x11dabf(0xb7)],H['id'],_0x230c73[_0x11dabf(0xa3)]);return _0x10951a&&_0x230c73[_0x11dabf(0x126)]&&_0x160fde[_0x11dabf(0xae)][_0x11dabf(0xb1)](_0x160fde['unitId'],_0x230c73[_0x11dabf(0x126)]),_0x10951a;}},U={'id':_0x18dff1(0x10a),'type':_0x19903b['COMMAND'],'handler':(_0x43008f,_0x46b28e)=>{const _0x605560=_0x18dff1;var _0x2ab8c5;let _0x5ac7e5=W(_0x43008f,_0x46b28e==null?void 0x0:_0x46b28e['unitId']);if(!_0x5ac7e5)return!0x1;let _0x16ecd1=(_0x46b28e==null?void 0x0:_0x46b28e[_0x605560(0xa3)])??((_0x2ab8c5=G(_0x43008f))==null?void 0x0:_0x2ab8c5[_0x605560(0x9f)]);if(_0x16ecd1==null)return!0x1;let _0x15981b=Ne({'cursorOffset':_0x16ecd1,'documentData':_0x5ac7e5[_0x605560(0x98)],'paragraphStartIndex':_0x46b28e==null?void 0x0:_0x46b28e['paragraphStartIndex']});return _0x15981b?Y(_0x5ac7e5[_0x605560(0xc3)],_0x5ac7e5['selectionManager'],_0x5ac7e5['unitId'],_0x5ac7e5[_0x605560(0x98)],_0x15981b[_0x605560(0xb7)],U['id'],_0x15981b['cursorOffset']):!0x1;}};function W(_0x27aa32,_0x189a76){const _0x51e8f4=_0x18dff1;let _0x14b273=_0x27aa32[_0x51e8f4(0x113)](_0x2ee2bc),_0x296bb1=_0x189a76?_0x14b273[_0x51e8f4(0xc8)](_0x189a76,_0x8cc94f[_0x51e8f4(0xfb)]):_0x14b273[_0x51e8f4(0xce)](_0x8cc94f['UNIVER_DOC']);return _0x296bb1?{'commandService':_0x27aa32[_0x51e8f4(0x113)](_0x4ed376),'model':_0x27aa32['get'](w),'previousDocumentData':_0x296bb1[_0x51e8f4(0xa6)](),'selectionManager':_0x27aa32[_0x51e8f4(0x113)](_0x5b762a),'unitId':_0x296bb1[_0x51e8f4(0x10e)]()}:null;}function G(_0x492f5d){const _0x1067b7=_0x18dff1;var _0x549a25;return(_0x549a25=_0x492f5d[_0x1067b7(0x113)](_0x5b762a)[_0x1067b7(0xf9)]())==null?void 0x0:_0x549a25[0x0];}function lt(_0x2271fd,_0x21ee34){const _0xc4e248=_0x18dff1;let _0x44ec7c=(_0x2271fd==null?void 0x0:_0x2271fd[_0xc4e248(0x9f)])??(_0x21ee34==null?void 0x0:_0x21ee34[_0xc4e248(0x9f)]),_0x3ba37d=(_0x2271fd==null?void 0x0:_0x2271fd[_0xc4e248(0xea)])??(_0x21ee34==null?void 0x0:_0x21ee34[_0xc4e248(0xea)]);if(_0x44ec7c!=null&&_0x3ba37d!=null)return{'endOffset':Math[_0xc4e248(0xb2)](_0x44ec7c,_0x3ba37d),'startOffset':Math[_0xc4e248(0xdf)](_0x44ec7c,_0x3ba37d)};}function ut(_0x5f1fe2,_0x23f02f){const _0x19d49d=_0x18dff1;var _0x85a0f9;if(!_0x23f02f)return;let _0xdda4e=dt(_0x23f02f);return(_0x85a0f9=_0x5f1fe2[_0x19d49d(0xf1)])==null||(_0x85a0f9=_0x85a0f9[_0x19d49d(0x115)])==null?void 0x0:_0x85a0f9[_0x19d49d(0x9c)](_0x356c06=>{const _0x2bb67a=_0x19d49d;let _0x383fa2=_0x1a4c5b(_0x356c06);return _0x23f02f[_0x2bb67a(0x9f)]===_0x23f02f[_0x2bb67a(0xea)]?_0x437273(_0x383fa2,_0xdda4e):_0x31e2f9(_0x383fa2,_0xdda4e);});}function dt(_0x641506){const _0x56873a=_0x18dff1;return _0x641506[_0x56873a(0x9f)]===_0x641506[_0x56873a(0xea)]?_0x641506['startOffset']:_0x641506[_0x56873a(0x9f)]+0x1;}function ft(_0x44e07){const _0x10b893=_0x18dff1;let _0x59e7ee=G(_0x44e07);if(!_0x59e7ee)return null;let _0x1d0591=_0x44e07[_0x10b893(0x113)](_0x2ee2bc)[_0x10b893(0xce)](_0x8cc94f[_0x10b893(0xfb)]),_0x5ea192=_0x1d0591==null?void 0x0:_0x1d0591['getBody']();return _0x5ea192?_0x855b47[_0x10b893(0xdc)]['getParagraphsInRange'](_0x59e7ee,_0x5ea192[_0x10b893(0x12e)]??[],_0x5ea192['dataStream']??'')[0x0]??null:null;}function pt(_0x463f6d,_0x3e274c){const _0x4be2a4=_0x18dff1;let _0x28c626=_0x463f6d[_0x4be2a4(0xf1)],_0x19d431=_0x3e274c[_0x4be2a4(0xf1)],_0x16da0c=_0x1b668f(_0x28c626,_0x19d431);return[_0x16da0c&&_0x19d431?mt(_0x19d431,_0x16da0c):null,_0x16da0c?null:ht(_0x28c626,_0x19d431)][_0x4be2a4(0xc7)](Boolean)[_0x4be2a4(0x95)]((_0x4f6b94,_0x2d4182)=>_0x4677ba[_0x4be2a4(0x94)](_0x4f6b94,_0x2d4182),null);}function mt(_0x3446b9,_0x7b9bce){const _0x5825a3=_0x18dff1;let _0x104c01=new _0x3f221e();return _0x104c01['retain'](_0x7b9bce[_0x5825a3(0xa7)]),_0x7b9bce[_0x5825a3(0x103)]>0x0&&_0x104c01[_0x5825a3(0xe8)](_0x7b9bce[_0x5825a3(0x103)],_0x1451b(_0x3446b9,_0x7b9bce['start'],_0x7b9bce[_0x5825a3(0xa7)]+_0x7b9bce[_0x5825a3(0x103)],!0x1)),_0x7b9bce[_0x5825a3(0xbf)]>0x0&&_0x104c01[_0x5825a3(0xa0)](_0x7b9bce[_0x5825a3(0xbf)]),_0x4677ba[_0x5825a3(0x9a)]()['editOp'](_0x104c01['serialize'](),[_0x5825a3(0xf1)]);}function ht(_0x49f4e1,_0x7fad57){const _0x401996=_0x18dff1;let _0x466811=[],_0x4fc40a=_0x49f4e1?_t(_0x49f4e1):void 0x0,_0x3f004c=_0x7fad57?_t(_0x7fad57):void 0x0;for(let _0x263ac of gt)K(_0x4677ba[_0x401996(0x9a)](),[_0x401996(0xf1),_0x263ac],_0x4fc40a==null?void 0x0:_0x4fc40a[_0x263ac],_0x3f004c==null?void 0x0:_0x3f004c[_0x263ac],_0x466811);return _0x466811['reduce']((_0x3858e7,_0x1ef5a6)=>_0x4677ba['compose'](_0x3858e7,_0x1ef5a6),null);}const gt=[_0x18dff1(0x12e),'sectionBreaks',_0x18dff1(0x127),_0x18dff1(0xa2),_0x18dff1(0x115),'customBlocks','customRanges','customDecorations',_0x18dff1(0xad)];function _t(_0x4a2aa3){return _0x4a2aa3;}function K(_0x38a3ce,_0x2291db,_0x5a9d7b,_0x3cc4da,_0x42d808){const _0x3cb519=_0x18dff1;if(!J(_0x5a9d7b,_0x3cc4da)){if(_0x5a9d7b==null){_0x42d808[_0x3cb519(0xa8)](_0x38a3ce[_0x3cb519(0xbd)](_0x2291db,_0x3cc4da));return;}if(_0x3cc4da==null){_0x42d808[_0x3cb519(0xa8)](_0x38a3ce[_0x3cb519(0x101)](_0x2291db,_0x5a9d7b));return;}if(Array[_0x3cb519(0x9b)](_0x5a9d7b)&&Array['isArray'](_0x3cc4da)){vt(_0x38a3ce,_0x2291db,_0x5a9d7b,_0x3cc4da,_0x42d808);return;}if(q(_0x5a9d7b)&&q(_0x3cc4da)){new Set([...Object[_0x3cb519(0x11f)](_0x5a9d7b),...Object[_0x3cb519(0x11f)](_0x3cc4da)])[_0x3cb519(0xcb)](_0x2a68b7=>{K(_0x38a3ce,[..._0x2291db,_0x2a68b7],_0x5a9d7b[_0x2a68b7],_0x3cc4da[_0x2a68b7],_0x42d808);});return;}_0x42d808[_0x3cb519(0xa8)](_0x38a3ce[_0x3cb519(0xb5)](_0x2291db,_0x5a9d7b,_0x3cc4da));}}function vt(_0x4b64b4,_0x2ecb24,_0x240cb8,_0x5b31d3,_0xe9110d){const _0x40d969=_0x18dff1;if(_0x240cb8['length']===_0x5b31d3['length']){_0x240cb8['forEach']((_0x184955,_0x58e21d)=>K(_0x4b64b4,[..._0x2ecb24,_0x58e21d],_0x184955,_0x5b31d3[_0x58e21d],_0xe9110d));return;}let _0x18f974=0x0;for(;_0x18f974<_0x240cb8[_0x40d969(0xfe)]&&_0x18f974<_0x5b31d3[_0x40d969(0xfe)]&&J(_0x240cb8[_0x18f974],_0x5b31d3[_0x18f974]);)_0x18f974++;let _0x140d62=_0x240cb8[_0x40d969(0xfe)]-0x1,_0x1dd3a0=_0x5b31d3[_0x40d969(0xfe)]-0x1;for(;_0x140d62>=_0x18f974&&_0x1dd3a0>=_0x18f974&&J(_0x240cb8[_0x140d62],_0x5b31d3[_0x1dd3a0]);)_0x140d62--,_0x1dd3a0--;for(let _0x5a6d16=_0x140d62;_0x5a6d16>=_0x18f974;_0x5a6d16--)_0xe9110d['push'](_0x4b64b4[_0x40d969(0x101)]([..._0x2ecb24,_0x5a6d16],_0x240cb8[_0x5a6d16]));for(let _0xdb1109=_0x18f974;_0xdb1109<=_0x1dd3a0;_0xdb1109++)_0xe9110d[_0x40d969(0xa8)](_0x4b64b4[_0x40d969(0xbd)]([..._0x2ecb24,_0xdb1109],_0x5b31d3[_0xdb1109]));}function q(_0x3b3f2d){const _0x484343=_0x18dff1;return typeof _0x3b3f2d==_0x484343(0x9e)&&!!_0x3b3f2d&&!Array['isArray'](_0x3b3f2d);}function J(_0x25a5f0,_0x5e8f27){const _0x496720=_0x18dff1;return JSON[_0x496720(0xe9)](_0x25a5f0)===JSON[_0x496720(0xe9)](_0x5e8f27);}function Y(_0x3b39f8,_0x1274da,_0x235590,_0x1f2891,_0xa278ef,_0x373618,_0x566fcc){const _0x1b7a47=_0x18dff1;let _0x437cec=pt(_0x1f2891,_0xa278ef);return _0x437cec?!!_0x3b39f8[_0x1b7a47(0xbc)](_0x942fde['id'],{'unitId':_0x235590,'actions':_0x437cec,'textRanges':[{'startOffset':_0x566fcc,'endOffset':_0x566fcc,'collapsed':!0x0}],'isEditing':!0x1,'trigger':_0x373618}):(_0x1274da[_0x1b7a47(0x129)]([{'startOffset':_0x566fcc,'endOffset':_0x566fcc}],{'unitId':_0x235590,'subUnitId':_0x235590},!0x1),!0x0);}const X=_0x18dff1(0xd4);var yt=_0x18dff1(0xa5),bt='1.0.0';const xt={};function Z(_0x13307a,_0x5a7e6d){return function(_0x53279b,_0x326f98){_0x5a7e6d(_0x53279b,_0x326f98,_0x13307a);};}function St(_0x1dc7f5,_0xea8c10,_0x4719f9,_0x3571a8){const _0x2df37b=_0x18dff1;var _0x2f7f53=arguments[_0x2df37b(0xfe)],_0x16700d=_0x2f7f53<0x3?_0xea8c10:_0x3571a8===null?_0x3571a8=Object[_0x2df37b(0xd0)](_0xea8c10,_0x4719f9):_0x3571a8,_0x402289;if(typeof Reflect==_0x2df37b(0x9e)&&typeof Reflect['decorate']=='function')_0x16700d=Reflect[_0x2df37b(0x109)](_0x1dc7f5,_0xea8c10,_0x4719f9,_0x3571a8);else{for(var _0x5deac2=_0x1dc7f5[_0x2df37b(0xfe)]-0x1;_0x5deac2>=0x0;_0x5deac2--)(_0x402289=_0x1dc7f5[_0x5deac2])&&(_0x16700d=(_0x2f7f53<0x3?_0x402289(_0x16700d):_0x2f7f53>0x3?_0x402289(_0xea8c10,_0x4719f9,_0x16700d):_0x402289(_0xea8c10,_0x4719f9))||_0x16700d);}return _0x2f7f53>0x3&&_0x16700d&&Object[_0x2df37b(0xde)](_0xea8c10,_0x4719f9,_0x16700d),_0x16700d;}let Q=class extends _0x1054c6{constructor(_0x30ff02,_0x498f74){const _0x25e610=_0x18dff1;super(),this[_0x25e610(0x118)]=_0x30ff02,this[_0x25e610(0xe4)]=_0x498f74,this[_0x25e610(0xac)]();}[_0x18dff1(0xac)](){const _0x9faf90=_0x18dff1;this[_0x9faf90(0x122)](this['_resourceManagerService'][_0x9faf90(0xb0)]({'pluginName':X,'businesses':[_0x8cc94f[_0x9faf90(0xfb)]],'toJson':_0x8e38ab=>JSON[_0x9faf90(0xe9)](this[_0x9faf90(0xe4)][_0x9faf90(0x91)](_0x8e38ab)),'parseJson':_0x468628=>y(JSON['parse'](_0x468628)),'onLoad':(_0x12bdc9,_0x4f5146)=>this[_0x9faf90(0xe4)][_0x9faf90(0xb1)](_0x12bdc9,_0x4f5146),'onUnLoad':_0x32ea5d=>this['_docsCodeModel'][_0x9faf90(0x102)](_0x32ea5d)}));}};Q=St([Z(0x0,_0x7f39be),Z(0x1,_0x3f37a0(w))],Q);let $=class extends _0x58480b{constructor(_0x16215a=xt,_0xd6b34,_0x45beb1,_0x580a01){const _0x8768cf=_0x18dff1;super(),this[_0x8768cf(0xab)]=_0x16215a,this[_0x8768cf(0x105)]=_0xd6b34,this[_0x8768cf(0xcf)]=_0x45beb1,this[_0x8768cf(0xf3)]=_0x580a01;let {..._0x1f9e97}=_0x152df7({},xt,this[_0x8768cf(0xab)]);this['_configService'][_0x8768cf(0x119)](_0x8768cf(0xd3),_0x1f9e97);}[_0x18dff1(0xd2)](){const _0x1c8319=_0x18dff1;this[_0x1c8319(0x105)][_0x1c8319(0xe2)]([w]),this[_0x1c8319(0x105)]['add']([Q]),this['_injector'][_0x1c8319(0x113)](w),this[_0x1c8319(0x105)][_0x1c8319(0x113)](Q),[B,at,st,V,H,ct,U,ot,Te,T][_0x1c8319(0xcb)](_0x1cbed0=>this[_0x1c8319(0x122)](this[_0x1c8319(0xcf)]['registerCommand'](_0x1cbed0)));}};C($,_0x18dff1(0x11e),X),C($,'packageName',yt),C($,_0x18dff1(0x11a),bt),C($,_0x18dff1(0xe6),_0x8cc94f[_0x18dff1(0xfb)]),$=St([_0x20ffc4(_0x133a21,_0x4c8af0),Z(0x1,_0x3f37a0(_0x1b4208)),Z(0x2,_0x4ed376),Z(0x3,_0x477e3f)],$);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 _0x49483d=_0x10b3;(function(_0x14b103,_0x5c8c9e){const _0x591240=_0x10b3,_0x58d2a8=_0x14b103();while(!![]){try{const _0x51f231=parseInt(_0x591240(0xb9))/0x1+-parseInt(_0x591240(0x10a))/0x2+parseInt(_0x591240(0xeb))/0x3+-parseInt(_0x591240(0x7f))/0x4+parseInt(_0x591240(0x103))/0x5+parseInt(_0x591240(0x98))/0x6*(parseInt(_0x591240(0x85))/0x7)+parseInt(_0x591240(0x9a))/0x8;if(_0x51f231===_0x5c8c9e)break;else _0x58d2a8['push'](_0x58d2a8['shift']());}catch(_0x11e292){_0x58d2a8['push'](_0x58d2a8['shift']());}}}(_0x1d98,0x51901));import{BooleanNumber as _0x29f404,BuildTextUtils as _0x18ba16,CommandType as _0x446cfc,DataStreamTreeTokenType as _0x23e365,DependentOn as _0x5aaaeb,Disposable as _0x24e448,DocumentBlockRangeType as _0x2324fb,ICommandService as _0x330d40,IConfigService as _0x5ce515,IResourceManagerService as _0x4ec5e9,IUniverInstanceService as _0x1f322c,Inject as _0x34c829,Injector as _0x38f326,JSONX as _0x424cd6,Plugin as _0x5a8ee0,TextX as _0x227fc3,UniverInstanceType as _0x2fc27d,containsInteriorInsertionOffset as _0x116958,containsStreamIndex as _0x2d8224,createParagraphId as _0x338f66,generateRandomId as _0x5cf7a0,getBlockRangeInterval as _0x5c8dbe,getBodySliceForTextXAction as _0x25d42f,getParagraphContentStartOffset as _0x53b91f,getParagraphContentStartOffsets as _0x43bde5,getParagraphFollowingBlockOffset as _0x15574e,getSingleDataStreamChange as _0x5c68b1,intersectsOperationalIntervals as _0x467d94,merge as _0x1470e9,shiftExclusiveRangeOnDelete as _0xc1b9cd,shiftExclusiveRangeOnInsert as _0x3f24e6,shiftInclusiveRangeOnDelete as _0x2cee19,shiftInclusiveRangeOnInsert as _0x4cbd10}from'@univerjs/core';import{Subject as _0x4c06b3}from'rxjs';import{DocSelectionManagerService as _0x2baf85,RichTextEditingMutation as _0x274029,UniverDocsPlugin as _0x565d36,getContentInsertRange as _0x34eb39,isHeaderFooterSelection as _0x584ad5}from'@univerjs/docs';import{UniverLicensePlugin as _0xecd332}from'@univerjs-pro/license';const Se={'language':_0x49483d(0x73),'showLineNumbers':!0x1,'tabSize':0x4,'wrap':!0x0};function v(_0x2fd8ec){return{...Se,..._0x2fd8ec};}function y(_0x27f3e7){const _0x4284c3=_0x49483d;let _0x465372=(_0x27f3e7==null?void 0x0:_0x27f3e7['codes'])??{};return{'codes':Object[_0x4284c3(0xf4)](Object[_0x4284c3(0x6c)](_0x465372)['map'](([_0x4c64c2,_0x3cc3df])=>[_0x4c64c2,v(_0x3cc3df)]))};}function b(_0x2b3291,_0x55e095,_0x39c847){const _0x212846=_0x49483d;let _0xfbdd86=y(_0x2b3291);return _0xfbdd86[_0x212846(0x77)][_0x55e095]=v({..._0xfbdd86[_0x212846(0x77)][_0x55e095],..._0x39c847}),_0xfbdd86;}function x(_0x430777,_0x5ad778){const _0xf072f4=_0x49483d;let _0x4cedd0=y(_0x430777);return delete _0x4cedd0[_0xf072f4(0x77)][_0x5ad778],_0x4cedd0;}function S(_0x5c9d49){'@babel/helpers - typeof';const _0x384cd5=_0x49483d;return S=typeof Symbol==_0x384cd5(0x104)&&typeof Symbol[_0x384cd5(0xee)]==_0x384cd5(0xb4)?function(_0x1da516){return typeof _0x1da516;}:function(_0xb7294b){const _0x58d62e=_0x384cd5;return _0xb7294b&&typeof Symbol==_0x58d62e(0x104)&&_0xb7294b[_0x58d62e(0xb3)]===Symbol&&_0xb7294b!==Symbol[_0x58d62e(0x81)]?'symbol':typeof _0xb7294b;},S(_0x5c9d49);}function Ce(_0x19f620,_0x75fe26){const _0x2d2432=_0x49483d;if(S(_0x19f620)!=_0x2d2432(0xa8)||!_0x19f620)return _0x19f620;var _0x35571a=_0x19f620[Symbol[_0x2d2432(0x10c)]];if(_0x35571a!==void 0x0){var _0x45a69c=_0x35571a['call'](_0x19f620,_0x75fe26||_0x2d2432(0xb1));if(S(_0x45a69c)!=_0x2d2432(0xa8))return _0x45a69c;throw TypeError(_0x2d2432(0xb7));}return(_0x75fe26===_0x2d2432(0xa2)?String:Number)(_0x19f620);}function we(_0x1cdb53){const _0x28ce26=_0x49483d;var _0x3f9364=Ce(_0x1cdb53,_0x28ce26(0xa2));return S(_0x3f9364)=='symbol'?_0x3f9364:_0x3f9364+'';}function C(_0x53414e,_0xd559ea,_0x485df3){const _0x441a36=_0x49483d;return(_0xd559ea=we(_0xd559ea))in _0x53414e?Object[_0x441a36(0xc0)](_0x53414e,_0xd559ea,{'value':_0x485df3,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x53414e[_0xd559ea]=_0x485df3,_0x53414e;}var w=class extends _0x24e448{constructor(..._0x3f7706){const _0x567a72=_0x49483d;super(..._0x3f7706),C(this,_0x567a72(0xcf),new Map()),C(this,_0x567a72(0xf2),new _0x4c06b3()),C(this,_0x567a72(0x7b),this[_0x567a72(0xf2)][_0x567a72(0xd0)]());}[_0x49483d(0xa6)](_0x2d1548,_0x208336){const _0x157562=_0x49483d;return y(this[_0x157562(0xcf)][_0x157562(0xbd)](_0x2d1548))[_0x157562(0x77)][_0x208336];}['setCodeConfig'](_0x15f6c5,_0x24609d,_0x1c0038){const _0x2e993c=_0x49483d;this[_0x2e993c(0x8d)](_0x15f6c5,_0x24609d,b(this[_0x2e993c(0xcf)][_0x2e993c(0xbd)](_0x15f6c5),_0x24609d,_0x1c0038));}[_0x49483d(0xfd)](_0x58caac,_0x316b73){const _0x5a0ec4=_0x49483d;this['_setResource'](_0x58caac,_0x316b73,x(this[_0x5a0ec4(0xcf)][_0x5a0ec4(0xbd)](_0x58caac),_0x316b73));}['serialize'](_0x31ee18){const _0x5bcac=_0x49483d;return y(this[_0x5bcac(0xcf)][_0x5bcac(0xbd)](_0x31ee18));}['deserialize'](_0xe9376d,_0x32d901){const _0x515507=_0x49483d;this[_0x515507(0xcf)]['set'](_0xe9376d,y(_0x32d901)),this[_0x515507(0xf2)][_0x515507(0xd4)]({'unitId':_0xe9376d});}[_0x49483d(0xed)](_0x15de40){const _0x3cdd62=_0x49483d;this[_0x3cdd62(0xcf)][_0x3cdd62(0xe1)](_0x15de40),this[_0x3cdd62(0xf2)][_0x3cdd62(0xd4)]({'unitId':_0x15de40});}[_0x49483d(0x7a)](){const _0x885d59=_0x49483d;super[_0x885d59(0x7a)](),this[_0x885d59(0xcf)]['clear'](),this[_0x885d59(0xf2)][_0x885d59(0x68)]();}['_setResource'](_0x35c54b,_0x99d3eb,_0x54c80f){const _0x4bd794=_0x49483d;this[_0x4bd794(0xcf)][_0x4bd794(0xf3)](_0x35c54b,_0x54c80f),this['_change$'][_0x4bd794(0xd4)]({'unitId':_0x35c54b,'blockId':_0x99d3eb});}};const Te={'id':_0x49483d(0xc8),'type':_0x446cfc['MUTATION'],'handler':(_0x3b7a40,_0x74202d)=>!(_0x74202d!=null&&_0x74202d[_0x49483d(0x10b)])||!_0x74202d['blockId']?!0x1:(_0x3b7a40[_0x49483d(0xbd)](w)[_0x49483d(0xb2)](_0x74202d[_0x49483d(0x10b)],_0x74202d['blockId'],_0x74202d['config']),!0x0)},T={'id':_0x49483d(0xf6),'type':_0x446cfc[_0x49483d(0x8e)],'handler':(_0x189ccb,_0x5e75f1)=>!(_0x5e75f1!=null&&_0x5e75f1[_0x49483d(0x10b)])||!_0x5e75f1[_0x49483d(0x96)]?!0x1:(_0x189ccb[_0x49483d(0xbd)](w)[_0x49483d(0xfd)](_0x5e75f1[_0x49483d(0x10b)],_0x5e75f1[_0x49483d(0x96)]),!0x0)},Ee=_0x49483d(0x93);var E=class extends Error{constructor(_0x6af3ef=_0x49483d(0xd9)){super(_0x6af3ef);}};function De(_0x1e38d4){const _0x1e421d=_0x49483d;var _0x14805d;let _0x1292a6=O(_0x1e38d4[_0x1e421d(0xc6)]),_0x3b113a=A(_0x1292a6),_0x4fc674=ke(_0x1e38d4['startOffset'],_0x1e38d4[_0x1e421d(0x105)]),_0x58ddd1=_0x4fc674?(_0x14805d=_0x3b113a[_0x1e421d(0x79)])==null?void 0x0:_0x14805d[_0x1e421d(0xd5)](_0x56aba9=>{const _0x44d97e=_0x1e421d;let _0x47f8fe=_0x5c8dbe(_0x56aba9);return _0x47f8fe[_0x44d97e(0x10e)]===_0x4fc674[_0x44d97e(0x10e)]&&_0x47f8fe[_0x44d97e(0x105)]===_0x4fc674[_0x44d97e(0x105)];}):void 0x0,{startOffset:_0x21361e,endOffset:_0x486c81}=_0x58ddd1?_0x4fc674:We(_0x3b113a,_0x1e38d4[_0x1e421d(0x10e)],_0x1e38d4[_0x1e421d(0x105)],_0x1e38d4[_0x1e421d(0xa9)]);if(!_0x58ddd1&&Ae(_0x3b113a,_0x21361e,_0x486c81))throw new E(_0x1e421d(0x9e));let _0x9cadf8=qe(_0x3b113a,_0x21361e,_0x486c81),_0x1538e9=(_0x58ddd1==null?void 0x0:_0x58ddd1[_0x1e421d(0x96)])??_0x1e38d4[_0x1e421d(0x96)],_0xd79115=b(_0x1e38d4[_0x1e421d(0xd1)],_0x1538e9,{...Se,..._0x1e38d4[_0x1e421d(0x9c)]});if(_0x58ddd1)return _0x58ddd1['blockType']=_0x2324fb['CODE'],Oe(_0x3b113a,_0x21361e,_0x486c81),ze(_0x3b113a,_0x21361e,_0x486c81,_0x9cadf8),N(_0x3b113a,_0x58ddd1),{'nextDocumentData':_0x1292a6,'nextMetadata':_0xd79115,'cursorOffset':_0x21361e+0x1};if(_0x21361e===_0x486c81){var _0x27b7c0,_0x3f1ad0;let _0x71142d=''+_0x23e365[_0x1e421d(0xea)]+_0x23e365[_0x1e421d(0xff)]+_0x23e365[_0x1e421d(0x94)];P(_0x3b113a,_0x21361e,_0x71142d,{'paragraphs':[{'startIndex':0x1,'paragraphId':_0x338f66(new Set((_0x27b7c0=_0x3b113a[_0x1e421d(0x8a)])==null?void 0x0:_0x27b7c0[_0x1e421d(0x10f)](_0x140ef2=>_0x140ef2[_0x1e421d(0xe3)]))),'paragraphStyle':Re(!0x0,!0x0,_0x9cadf8)}],'blockRanges':[{'blockId':_0x1538e9,'blockType':_0x2324fb[_0x1e421d(0x89)],'startIndex':0x0,'endIndex':_0x71142d['length']-0x1}]});let _0xa00bb6=(_0x3f1ad0=_0x3b113a[_0x1e421d(0x79)])==null?void 0x0:_0x3f1ad0[_0x1e421d(0xd5)](_0x2d2851=>_0x2d2851['blockId']===_0x1538e9);return _0xa00bb6&&N(_0x3b113a,_0xa00bb6),{'nextDocumentData':_0x1292a6,'nextMetadata':_0xd79115,'cursorOffset':_0x21361e+0x1};}P(_0x3b113a,_0x486c81,_0x23e365[_0x1e421d(0x94)]),P(_0x3b113a,_0x21361e,_0x23e365[_0x1e421d(0xea)]),ze(_0x3b113a,_0x21361e,_0x486c81+0x1,_0x9cadf8);let _0xa825fe={'blockId':_0x1538e9,'blockType':_0x2324fb['CODE'],'startIndex':_0x21361e,'endIndex':_0x486c81+0x1};return _0x3b113a[_0x1e421d(0x79)]=[..._0x3b113a['blockRanges']??[],_0xa825fe][_0x1e421d(0x8f)]((_0x42c256,_0x4958a6)=>_0x42c256[_0x1e421d(0xca)]-_0x4958a6['startIndex']),N(_0x3b113a,_0xa825fe),{'nextDocumentData':_0x1292a6,'nextMetadata':_0xd79115,'cursorOffset':_0x21361e+0x1};}function Oe(_0x569f5a,_0xc9ffed,_0x7f39ee){const _0x31a78e=_0x49483d;(_0x569f5a[_0x31a78e(0x8a)]??[])[_0x31a78e(0xf1)](_0xa460f6=>_0xa460f6[_0x31a78e(0xca)]>_0xc9ffed&&_0xa460f6[_0x31a78e(0xca)]<_0x7f39ee)[_0x31a78e(0xe5)](_0x2df4eb=>{const _0x546be9=_0x31a78e;let _0x27ff86={..._0x2df4eb['paragraphStyle']??{}};delete _0x27ff86['spaceAbove'],delete _0x27ff86[_0x546be9(0xe4)],_0x2df4eb[_0x546be9(0xdc)]=_0x27ff86;});}function ke(_0x5ee40c,_0x1a06f8){const _0x4acf41=_0x49483d;return _0x5ee40c==null||_0x1a06f8==null||_0x5ee40c===_0x1a06f8?null:{'startOffset':Math[_0x4acf41(0xef)](_0x5ee40c,_0x1a06f8),'endOffset':Math[_0x4acf41(0xda)](_0x5ee40c,_0x1a06f8)};}function Ae(_0x4d375f,_0x29f319,_0x5a009b){const _0xb2567=_0x49483d;return(_0x4d375f[_0xb2567(0x79)]??[])[_0xb2567(0xbf)](_0x65238=>{let _0x142255=_0x5c8dbe(_0x65238);return _0x29f319===_0x5a009b?_0x116958(_0x142255,_0x29f319):_0x467d94(_0x142255,{'startOffset':_0x29f319,'endOffset':_0x5a009b});});}function je(_0x7091ae){const _0x18f848=_0x49483d;return{'nextDocumentData':O(_0x7091ae[_0x18f848(0xc6)]),'nextMetadata':b(_0x7091ae[_0x18f848(0xd1)],_0x7091ae['blockId'],_0x7091ae[_0x18f848(0x9c)]),'cursorOffset':0x0};}function D(_0x187855){const _0x43f178=_0x49483d;let _0x14ae2b=O(_0x187855[_0x43f178(0xc6)]),_0x17a60e=A(_0x14ae2b),_0x4e97d7=Fe(_0x17a60e,_0x187855[_0x43f178(0x96)]);if(!_0x4e97d7)return null;let _0x44597e=He(_0x17a60e,_0x4e97d7);return{'nextDocumentData':_0x14ae2b,'nextMetadata':x(_0x187855['metadata'],_0x187855[_0x43f178(0x96)]),'cursorOffset':_0x44597e};}function Me(_0x5c21a1){const _0x5aa05d=_0x49483d;var _0x3c4db0;let _0x100d51=O(_0x5c21a1[_0x5aa05d(0xc6)]),_0xd4c3d0=A(_0x100d51),_0x58bb3d=Fe(_0xd4c3d0,_0x5c21a1[_0x5aa05d(0x96)]);if(!_0x58bb3d)return null;let _0x488ce2=_0x5c8dbe(_0x58bb3d);return F(_0xd4c3d0,_0x488ce2[_0x5aa05d(0x10e)],_0x488ce2[_0x5aa05d(0x105)]),_0xd4c3d0['blockRanges']=(_0x3c4db0=_0xd4c3d0[_0x5aa05d(0x79)])==null?void 0x0:_0x3c4db0[_0x5aa05d(0xf1)](_0x295d33=>_0x295d33[_0x5aa05d(0x96)]!==_0x5c21a1[_0x5aa05d(0x96)]),{'nextDocumentData':_0x100d51,'nextMetadata':x(_0x5c21a1[_0x5aa05d(0xd1)],_0x5c21a1[_0x5aa05d(0x96)]),'cursorOffset':_0x58bb3d['startIndex']};}function Ne(_0x2cd8b9){const _0x21104c=_0x49483d;let _0x13d538=O(_0x2cd8b9[_0x21104c(0xc6)]),_0x1200fb=A(_0x13d538),_0x5c0da3=Le(_0x1200fb,_0x2cd8b9[_0x21104c(0xdb)]);return _0x5c0da3&&Pe(_0x13d538,_0x1200fb,_0x5c0da3,_0x2cd8b9[_0x21104c(0xdb)],_0x2cd8b9[_0x21104c(0x87)])||null;}function Pe(_0xf4e8f8,_0x740478,_0x55f7e3,_0x4fd208,_0x2c5134){const _0x420437=_0x49483d;let _0x5812b1=$e(_0x740478,_0x55f7e3,_0x4fd208,_0x2c5134);if(!_0x5812b1)return null;let _0x3bd5de=_0x5812b1[_0x420437(0xd3)]-0x1;return F(_0x740478,_0x5812b1[_0x420437(0x6b)][_0x420437(0xca)],_0x5812b1[_0x420437(0x6b)][_0x420437(0xca)]+0x1),{'nextDocumentData':_0xf4e8f8,'cursorOffset':_0x3bd5de};}function Fe(_0x2a8ec7,_0x221057){const _0x4f4f12=_0x49483d;var _0x2e9c51;return _0x2a8ec7==null||(_0x2e9c51=_0x2a8ec7[_0x4f4f12(0x79)])==null?void 0x0:_0x2e9c51['find'](_0x227b86=>_0x227b86[_0x4f4f12(0xc4)]===_0x2324fb[_0x4f4f12(0x89)]&&_0x227b86[_0x4f4f12(0x96)]===_0x221057);}function Ie(_0x339bef){const _0x34ba6c=_0x49483d;let _0x1ad03d=_0x339bef[_0x34ba6c(0xc6)][_0x34ba6c(0xc3)];if(!_0x1ad03d)return!0x1;let _0x406129=_0x339bef[_0x34ba6c(0x92)]==='left'?_0x339bef[_0x34ba6c(0xdb)]-0x1:_0x339bef[_0x34ba6c(0xdb)],_0x97ab16=_0x339bef[_0x34ba6c(0x92)]===_0x34ba6c(0xe9)?_0x339bef[_0x34ba6c(0xdb)]+0x1:_0x406129;return(_0x1ad03d[_0x34ba6c(0x79)]??[])['some'](_0x2e8d0b=>_0x2e8d0b[_0x34ba6c(0xc4)]===_0x2324fb[_0x34ba6c(0x89)]?_0x406129===_0x2e8d0b[_0x34ba6c(0xca)]||_0x406129===_0x2e8d0b[_0x34ba6c(0xfb)]||_0x97ab16===_0x2e8d0b['startIndex']||_0x97ab16===_0x2e8d0b[_0x34ba6c(0xfb)]:!0x1);}function Le(_0x28d177,_0x22f150){const _0xa78fcf=_0x49483d;var _0x332593;return(_0x332593=_0x28d177[_0xa78fcf(0x79)])==null?void 0x0:_0x332593[_0xa78fcf(0xd5)](_0x2b0e39=>{const _0x36e1e9=_0xa78fcf;let _0x44e7dc=M(_0x2b0e39);return _0x2b0e39['blockType']===_0x2324fb[_0x36e1e9(0x89)]&&_0x2b0e39[_0x36e1e9(0xca)]<=_0x22f150&&_0x22f150<=_0x44e7dc+0x2;});}function Re(_0x3f45ae,_0x3b02a5,_0x1ed424=!0x1){const _0x1efc96=_0x49483d;return{'indentEnd':{'v':0x14},'indentStart':{'v':0x14},'keepLines':_0x29f404[_0x1efc96(0x97)],'keepNext':_0x3b02a5?_0x29f404[_0x1efc96(0x78)]:_0x29f404[_0x1efc96(0x97)],'widowControl':_0x29f404['TRUE'],..._0x3f45ae&&_0x1ed424?{'spaceAbove':{'v':0x8}}:{},'textStyle':{'ff':Ee,'fs':0xc}};}function ze(_0x391312,_0x11c35b,_0x28e67c,_0x5572d3=!0x1){const _0x16e5ba=_0x49483d;let _0x527240=(_0x391312[_0x16e5ba(0x8a)]??[])[_0x16e5ba(0xf1)](_0x12170c=>_0x12170c[_0x16e5ba(0xca)]>_0x11c35b&&_0x12170c[_0x16e5ba(0xca)]<_0x28e67c);_0x527240[_0x16e5ba(0xe5)]((_0x13d09f,_0x2e86f2)=>{const _0x403290=_0x16e5ba;_0x13d09f[_0x403290(0xdc)]={..._0x13d09f[_0x403290(0xdc)]??{},...Re(_0x2e86f2===0x0,_0x2e86f2===_0x527240[_0x403290(0xa3)]-0x1,_0x5572d3)};});}function Be(_0x424465){const _0x5a0cb9=_0x49483d;var _0x42d594,_0x4f90ba;let _0x55c935={..._0x424465??{}};return delete _0x55c935['indentEnd'],delete _0x55c935[_0x5a0cb9(0xb8)],delete _0x55c935[_0x5a0cb9(0xa7)],delete _0x55c935[_0x5a0cb9(0xe4)],delete _0x55c935['keepLines'],delete _0x55c935[_0x5a0cb9(0xf7)],delete _0x55c935[_0x5a0cb9(0xfa)],((_0x42d594=_0x55c935['textStyle'])==null?void 0x0:_0x42d594['ff'])===Ee&&((_0x4f90ba=_0x55c935[_0x5a0cb9(0x69)])==null?void 0x0:_0x4f90ba['fs'])===0xc&&delete _0x55c935['textStyle'],_0x55c935;}function Ve(_0x136751,_0x3c0278){const _0xdd4f7d=_0x49483d;let _0x597b01=M(_0x3c0278);return(_0x136751[_0xdd4f7d(0x8a)]??[])[_0xdd4f7d(0xf1)](_0x12be88=>_0x12be88['startIndex']>_0x3c0278[_0xdd4f7d(0xca)]&&_0x12be88[_0xdd4f7d(0xca)]<_0x597b01);}function He(_0x319a34,_0x4a07f4){const _0x466d3d=_0x49483d;var _0x33e5e9;let _0x2a8141=M(_0x4a07f4);return Ve(_0x319a34,_0x4a07f4)[_0x466d3d(0xe5)](_0x3a5f34=>{const _0x50da24=_0x466d3d;_0x3a5f34[_0x50da24(0xdc)]=Be(_0x3a5f34[_0x50da24(0xdc)]);}),F(_0x319a34,_0x2a8141,_0x2a8141+0x1),F(_0x319a34,_0x4a07f4[_0x466d3d(0xca)],_0x4a07f4[_0x466d3d(0xca)]+0x1),_0x319a34[_0x466d3d(0x79)]=(_0x33e5e9=_0x319a34[_0x466d3d(0x79)])==null?void 0x0:_0x33e5e9[_0x466d3d(0xf1)](_0x1dd917=>_0x1dd917[_0x466d3d(0x96)]!==_0x4a07f4['blockId']),_0x4a07f4[_0x466d3d(0xca)];}function O(_0x14d594){const _0x16d08f=_0x49483d;return{..._0x14d594,'body':_0x14d594['body']?Ue(_0x14d594[_0x16d08f(0xc3)]):_0x14d594[_0x16d08f(0xc3)]};}function Ue(_0x1d1a3a){const _0x6a3fdc=_0x49483d;var _0x2c65ae,_0x1310ed,_0x32a5ee,_0x17552f,_0x36149d,_0x50d486,_0x257a93,_0x29d0a9,_0x2109ec;return{..._0x1d1a3a,'paragraphs':(_0x2c65ae=_0x1d1a3a[_0x6a3fdc(0x8a)])==null?void 0x0:_0x2c65ae[_0x6a3fdc(0x10f)](_0x48404c=>({..._0x48404c,'bullet':k(_0x48404c[_0x6a3fdc(0xe7)]),'paragraphStyle':k(_0x48404c['paragraphStyle'])})),'sectionBreaks':(_0x1310ed=_0x1d1a3a['sectionBreaks'])==null?void 0x0:_0x1310ed[_0x6a3fdc(0x10f)](_0x50877c=>({..._0x50877c})),'textRuns':(_0x32a5ee=_0x1d1a3a[_0x6a3fdc(0x95)])==null?void 0x0:_0x32a5ee[_0x6a3fdc(0x10f)](_0x539eba=>({..._0x539eba})),'tables':(_0x17552f=_0x1d1a3a[_0x6a3fdc(0xe8)])==null?void 0x0:_0x17552f[_0x6a3fdc(0x10f)](_0x52e5db=>({..._0x52e5db})),'columnGroups':(_0x36149d=_0x1d1a3a[_0x6a3fdc(0xc9)])==null?void 0x0:_0x36149d[_0x6a3fdc(0x10f)](_0x38835a=>{const _0x580558=_0x6a3fdc;var _0x23fa8b;return{..._0x38835a,'columns':(_0x23fa8b=_0x38835a[_0x580558(0xbc)])==null?void 0x0:_0x23fa8b['map'](_0x32505a=>k(_0x32505a))};}),'blockRanges':(_0x50d486=_0x1d1a3a[_0x6a3fdc(0x79)])==null?void 0x0:_0x50d486['map'](_0x118697=>({..._0x118697})),'customRanges':(_0x257a93=_0x1d1a3a[_0x6a3fdc(0x90)])==null?void 0x0:_0x257a93[_0x6a3fdc(0x10f)](_0x53ebbc=>({..._0x53ebbc})),'customDecorations':(_0x29d0a9=_0x1d1a3a[_0x6a3fdc(0xd8)])==null?void 0x0:_0x29d0a9[_0x6a3fdc(0x10f)](_0x4bf904=>({..._0x4bf904})),'customBlocks':(_0x2109ec=_0x1d1a3a[_0x6a3fdc(0x9b)])==null?void 0x0:_0x2109ec['map'](_0x3775bd=>({..._0x3775bd}))};}function k(_0x11b15f){const _0x11112b=_0x49483d;return Array['isArray'](_0x11b15f)?_0x11b15f[_0x11112b(0x10f)](_0x3431e0=>k(_0x3431e0)):!_0x11b15f||typeof _0x11b15f!=_0x11112b(0xa8)?_0x11b15f:Object[_0x11112b(0xf4)](Object[_0x11112b(0x6c)](_0x11b15f)[_0x11112b(0x10f)](([_0x4eff42,_0x4228b3])=>[_0x4eff42,k(_0x4228b3)]));}function _0x1d98(){const _0x53b81e=['paragraphs','registerCommand','TABLE_CELL_END','_setResource','MUTATION','sort','customRanges','getCurrentUnitOfType','direction','monospace','BLOCK_END','textRuns','blockId','TRUE','1356fFBjhY','convert-paragraph','1521960qbcpJR','customBlocks','config','dataStream','Insert\x20range\x20cannot\x20overlap\x20an\x20existing\x20document\x20block','stringify','docs-code.command.remove','packageName','string','length','replaceDocRanges','_initResource','getCodeConfig','spaceAbove','object','insertionMode','replaceOp','_docsCodeModel','selectionManager','endsWith','model','getUnit','handler','default','setCodeConfig','constructor','symbol','_config','getSnapshot','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','indentStart','500717rmLAri','COMMAND','_resourceManagerService','columns','get','every','some','defineProperty','keys','docs-code.command.unwrap','body','blockType','compose','documentData','commandService','docs-code.mutation.set-config','columnGroups','startIndex','insert','registerPluginResource','decorate','nextDocumentData','_resources','asObservable','metadata','parse','endTokenOffset','next','find','_commandService','getParagraphsInRange','customDecorations','Insert\x20range\x20cannot\x20cross\x20table\x20cell\x20boundaries','max','cursorOffset','paragraphStyle','indexOf','push','docs-code.command.cancel-empty-paragraph','from','delete','disposeWithMe','paragraphId','spaceBelow','forEach','syncExecuteCommand','bullet','tables','right','BLOCK_START','1855260FWutor','insertLength','removeUnit','iterator','min','removeOp','filter','_change$','set','fromEntries','insert-new','docs-code.mutation.remove-config','keepNext','pluginName','docs-code.command.consume-boundary-delete','widowControl','endIndex','_configService','removeCode','getInstance','PARAGRAPH','UNIVER_DOC','insertOp','start','34295QHiICr','function','endOffset','previousDocumentData','onStarting','type','version','1245408jwONUG','unitId','toPrimitive','range','startOffset','map','deserialize','getUnitId','isArray','complete','textStyle','_injector','paragraph','entries','sectionBreaks','docs-code.config','getTextRanges','editOp','startTokenOffset','TABLE_CELL_START','javascript','retain','Document\x20body\x20is\x20required','DOC_CODE_PLUGIN','codes','FALSE','blockRanges','dispose','change$','serialize','1.0.2','add','2458440iBVkEC','SECTION_BREAK','prototype','docs-code.command.insert-below','reduce','nextMetadata','7903SHlkbH','slice','paragraphStartIndex','@univerjs-pro/docs-code','CODE'];_0x1d98=function(){return _0x53b81e;};return _0x1d98();}function A(_0x26f889){const _0x49f3d3=_0x49483d;if(!_0x26f889['body'])throw Error(_0x49f3d3(0x75));return _0x26f889[_0x49f3d3(0xc3)];}function We(_0x527721,_0x3d912d,_0x3ddc6f,_0x2e2e3b=_0x49483d(0x99)){const _0x418e8a=_0x49483d;if(_0x3d912d==null||_0x3ddc6f==null){let _0x30a532=Ke(_0x527721);return{'startOffset':_0x30a532,'endOffset':_0x30a532};}let _0x11590e=Math[_0x418e8a(0xef)](_0x3d912d,_0x3ddc6f),_0x40eb22=Math[_0x418e8a(0xda)](_0x3d912d,_0x3ddc6f),_0x42d7ec=Ze(_0x527721,_0x11590e,_0x40eb22);return _0x11590e===_0x40eb22?_0x2e2e3b===_0x418e8a(0xf5)?{'startOffset':_0x11590e,'endOffset':_0x40eb22}:Ge(_0x527721,_0x11590e,_0x42d7ec):Je(_0x527721,_0x11590e,_0x40eb22,_0x42d7ec);}function Ge(_0x372ccf,_0x42cbbc,_0x32c72a){const _0x16b1c7=_0x49483d;let _0x4a3047=Ye(_0x372ccf,_0x42cbbc);if(_0x4a3047){let _0x481536=j(_0x372ccf,_0x4a3047,_0x32c72a);if(_0x481536<_0x4a3047[_0x16b1c7(0xca)])return{'startOffset':_0x481536,'endOffset':_0x32c72a?Math[_0x16b1c7(0xef)](_0x4a3047['startIndex']+0x1,_0x32c72a['endOffset']):_0x4a3047[_0x16b1c7(0xca)]+0x1};}let _0x2aa04f=_0x42cbbc===0x0&&_0x372ccf[_0x16b1c7(0x9d)][0x0]===_0x23e365[_0x16b1c7(0xff)]?0x1:_0x42cbbc;return{'startOffset':_0x2aa04f,'endOffset':_0x2aa04f};}function Ke(_0x315d7c){const _0x2616af=_0x49483d;return _0x315d7c['dataStream'][_0x2616af(0xad)](_0x23e365[_0x2616af(0x80)])?Math[_0x2616af(0xda)](0x0,_0x315d7c[_0x2616af(0x9d)][_0x2616af(0xa3)]-0x1):_0x315d7c[_0x2616af(0x9d)]['length'];}function qe(_0x5aa023,_0x1f7304,_0x498d94){const _0x235637=_0x49483d;var _0x3cc270;let _0x88649a=Math[_0x235637(0xef)](_0x1f7304,_0x498d94),_0x9138e5=Math[_0x235637(0xda)](_0x1f7304,_0x498d94);return!!((_0x3cc270=_0x5aa023[_0x235637(0xe8)])!=null&&_0x3cc270[_0x235637(0xbf)](_0x5d51c6=>_0x88649a>_0x5d51c6['startIndex']&&_0x88649a<_0x5d51c6[_0x235637(0xfb)]||_0x9138e5>_0x5d51c6['startIndex']&&_0x9138e5<_0x5d51c6[_0x235637(0xfb)]||_0x88649a<=_0x5d51c6[_0x235637(0xca)]&&_0x9138e5>=_0x5d51c6['endIndex']));}function Je(_0x3ce0cc,_0x3510e7,_0x94affa,_0x5bc6f9){const _0x118174=_0x49483d;let _0x5334a5=[..._0x3ce0cc[_0x118174(0x8a)]??[]][_0x118174(0x8f)]((_0x3d9f89,_0x233e69)=>_0x3d9f89[_0x118174(0xca)]-_0x233e69['startIndex']),_0x58dfaf=_0x43bde5(_0x3ce0cc),_0x277b49=_0x5334a5[_0x118174(0xd5)](_0x3bfc51=>j(_0x3ce0cc,_0x3bfc51,_0x5bc6f9,_0x58dfaf)<=_0x3510e7&&_0x3510e7<=_0x3bfc51[_0x118174(0xca)]),_0x27158e=_0x5334a5['find'](_0x168630=>_0x168630[_0x118174(0xca)]>=_0x94affa-0x1)??_0x5334a5[_0x5334a5['length']-0x1];return{'startOffset':_0x277b49?j(_0x3ce0cc,_0x277b49,_0x5bc6f9,_0x58dfaf):_0x3510e7,'endOffset':_0x27158e?Xe(_0x27158e,_0x5bc6f9):_0x94affa};}function Ye(_0x1558ed,_0x811343){const _0x53791f=_0x49483d;let _0x19b046=[..._0x1558ed[_0x53791f(0x8a)]??[]]['sort']((_0x56b8c4,_0xcc6c14)=>_0x56b8c4['startIndex']-_0xcc6c14[_0x53791f(0xca)]),_0x1fd7f7=_0x43bde5(_0x1558ed);return _0x19b046[_0x53791f(0xd5)](_0x3085e1=>(_0x1fd7f7[_0x53791f(0xbd)](_0x3085e1[_0x53791f(0xca)])??0x0)<=_0x811343&&_0x811343<=_0x3085e1[_0x53791f(0xca)]);}function j(_0xa29b8a,_0x555624,_0x228966,_0x2021c8){const _0x8e7edf=_0x49483d;let _0x42c9b0=(_0x2021c8==null?void 0x0:_0x2021c8['get'](_0x555624[_0x8e7edf(0xca)]))??_0x53b91f(_0xa29b8a,_0x555624);return _0x228966?Math['max'](_0x42c9b0,_0x228966[_0x8e7edf(0x10e)]):_0x42c9b0;}function Xe(_0x1e78c7,_0x2884b2){const _0x22ada6=_0x49483d;let _0x40fb21=_0x1e78c7[_0x22ada6(0xca)]+0x1;return _0x2884b2?Math[_0x22ada6(0xef)](_0x40fb21,_0x2884b2['endOffset']):_0x40fb21;}function Ze(_0x3fd946,_0x21e92d,_0xba3d8){const _0x2ab049=_0x49483d;let _0x2165e6=Qe(_0x3fd946,_0x21e92d),_0x5f3da5=Qe(_0x3fd946,_0x21e92d===_0xba3d8?_0xba3d8:Math['max'](_0x21e92d,_0xba3d8-0x1));if(_0x2165e6||_0x5f3da5){if(!_0x2165e6||!_0x5f3da5||_0x2165e6[_0x2ab049(0x71)]!==_0x5f3da5['startTokenOffset']||_0x2165e6[_0x2ab049(0xd3)]!==_0x5f3da5['endTokenOffset'])throw new E();return _0x2165e6;}}function Qe(_0x9ed5aa,_0x457200){const _0x245c1f=_0x49483d;let _0x37eb87=_0x9ed5aa['dataStream'],_0x22d64c=-0x1;for(let _0x887331=Math['min'](_0x457200,_0x37eb87[_0x245c1f(0xa3)]-0x1);_0x887331>=0x0;_0x887331--){let _0x752d27=_0x37eb87[_0x887331];if(_0x752d27===_0x23e365['TABLE_CELL_END'])return;if(_0x752d27===_0x23e365[_0x245c1f(0x72)]){_0x22d64c=_0x887331;break;}}if(_0x22d64c<0x0)return;let _0x375215=_0x37eb87[_0x245c1f(0xdd)](_0x23e365[_0x245c1f(0x8c)],_0x22d64c+0x1);if(!(_0x375215<0x0||_0x457200<_0x22d64c+0x1||_0x457200>_0x375215-0x1))return{'startOffset':_0x22d64c+0x1,'endOffset':Math[_0x245c1f(0xda)](_0x22d64c+0x1,_0x375215-0x1),'startTokenOffset':_0x22d64c,'endTokenOffset':_0x375215};}function M(_0x16bd20){const _0x1cffa3=_0x49483d;return _0x5c8dbe(_0x16bd20)[_0x1cffa3(0x105)]-0x1;}function $e(_0x1dd05a,_0x50ea1f,_0x4c76dc,_0x1a7407){const _0xba63fb=_0x49483d;let _0x1d9a80=M(_0x50ea1f),_0x3473f6=(_0x1dd05a[_0xba63fb(0x8a)]??[])[_0xba63fb(0xd5)](_0x534be5=>_0x534be5[_0xba63fb(0xca)]===_0x1d9a80+0x1);if(!_0x3473f6||_0x1a7407!=null&&_0x3473f6[_0xba63fb(0xca)]!==_0x1a7407||_0x4c76dc!=null&&(_0x4c76dc<_0x1d9a80||_0x4c76dc>_0x3473f6[_0xba63fb(0xca)]+0x1)||_0x1dd05a[_0xba63fb(0x9d)][_0x3473f6[_0xba63fb(0xca)]]!==_0x23e365[_0xba63fb(0xff)])return null;let _0x3faa15=_0x53b91f(_0x1dd05a,_0x3473f6),_0x40f6b0=_0x1dd05a[_0xba63fb(0x9d)][_0xba63fb(0x86)](_0x3faa15,_0x3473f6['startIndex']);return Array[_0xba63fb(0xe0)](_0x40f6b0)[_0xba63fb(0xbe)](_0x1c3817=>_0x1c3817===_0x23e365[_0xba63fb(0x94)])?{'paragraph':_0x3473f6,'endTokenOffset':_0x1d9a80}:null;}function N(_0x4aac1c,_0x57183e){const _0x595756=_0x49483d;var _0x28a092;let _0x1a104d=M(_0x57183e),_0x57cb3c=_0x4aac1c[_0x595756(0x9d)][_0x1a104d+0x1];(_0x57cb3c===_0x23e365[_0x595756(0x80)]||_0x57cb3c===void 0x0)&&P(_0x4aac1c,_0x1a104d+0x1,_0x23e365[_0x595756(0xff)],{'paragraphs':[{'startIndex':0x0,'paragraphId':_0x338f66(new Set((_0x28a092=_0x4aac1c[_0x595756(0x8a)])==null?void 0x0:_0x28a092[_0x595756(0x10f)](_0xf7aa0=>_0xf7aa0[_0x595756(0xe3)])))}]});}function P(_0x3c719f,_0x1266f0,_0x15fe14,_0x51a13c={}){const _0x31ff68=_0x49483d;var _0x38a78a,_0x28a5a2;_0x15fe14&&(_0x3c719f[_0x31ff68(0x9d)]=''+_0x3c719f['dataStream']['slice'](0x0,_0x1266f0)+_0x15fe14+_0x3c719f[_0x31ff68(0x9d)]['slice'](_0x1266f0),et(_0x3c719f,_0x1266f0,_0x15fe14[_0x31ff68(0xa3)]),(_0x38a78a=_0x51a13c['paragraphs'])!=null&&_0x38a78a[_0x31ff68(0xa3)]&&(_0x3c719f[_0x31ff68(0x8a)]=[..._0x3c719f['paragraphs']??[],..._0x51a13c[_0x31ff68(0x8a)][_0x31ff68(0x10f)](_0x27a966=>({..._0x27a966,'startIndex':_0x27a966[_0x31ff68(0xca)]+_0x1266f0}))][_0x31ff68(0x8f)]((_0x58d0c1,_0x5efc5c)=>_0x58d0c1[_0x31ff68(0xca)]-_0x5efc5c['startIndex'])),(_0x28a5a2=_0x51a13c['blockRanges'])!=null&&_0x28a5a2[_0x31ff68(0xa3)]&&(_0x3c719f[_0x31ff68(0x79)]=[..._0x3c719f[_0x31ff68(0x79)]??[],..._0x51a13c[_0x31ff68(0x79)]['map'](_0x19ed57=>({..._0x19ed57,'startIndex':_0x19ed57[_0x31ff68(0xca)]+_0x1266f0,'endIndex':_0x19ed57[_0x31ff68(0xfb)]+_0x1266f0}))][_0x31ff68(0x8f)]((_0x2aa1d1,_0x57c34b)=>_0x2aa1d1[_0x31ff68(0xca)]-_0x57c34b['startIndex'])));}function F(_0x48e2a9,_0x4c0fd9,_0x582d97){const _0x177543=_0x49483d;let _0x53e781=_0x582d97-_0x4c0fd9;_0x48e2a9[_0x177543(0x9d)]=''+_0x48e2a9[_0x177543(0x9d)][_0x177543(0x86)](0x0,_0x4c0fd9)+_0x48e2a9[_0x177543(0x9d)][_0x177543(0x86)](_0x582d97),tt(_0x48e2a9,_0x4c0fd9,_0x53e781);}function et(_0x54ca30,_0x2b9eb2,_0x5cf9e1){const _0x5afbfb=_0x49483d;_0x54ca30[_0x5afbfb(0x8a)]=I(_0x54ca30[_0x5afbfb(0x8a)],_0x2b9eb2,_0x5cf9e1),_0x54ca30[_0x5afbfb(0x6d)]=I(_0x54ca30[_0x5afbfb(0x6d)],_0x2b9eb2,_0x5cf9e1),_0x54ca30[_0x5afbfb(0x9b)]=I(_0x54ca30[_0x5afbfb(0x9b)],_0x2b9eb2,_0x5cf9e1),_0x54ca30['textRuns']=nt(_0x54ca30[_0x5afbfb(0x95)],_0x2b9eb2,_0x5cf9e1),_0x54ca30[_0x5afbfb(0xe8)]=rt(_0x54ca30['tables'],_0x2b9eb2,_0x5cf9e1),_0x54ca30[_0x5afbfb(0xc9)]=R(_0x54ca30[_0x5afbfb(0xc9)],_0x2b9eb2,_0x5cf9e1),_0x54ca30[_0x5afbfb(0x90)]=R(_0x54ca30[_0x5afbfb(0x90)],_0x2b9eb2,_0x5cf9e1),_0x54ca30[_0x5afbfb(0xd8)]=R(_0x54ca30[_0x5afbfb(0xd8)],_0x2b9eb2,_0x5cf9e1),_0x54ca30[_0x5afbfb(0x79)]=R(_0x54ca30[_0x5afbfb(0x79)],_0x2b9eb2,_0x5cf9e1);}function tt(_0x4b784f,_0x1811bf,_0x11d3a5){const _0x55f1a0=_0x49483d;var _0x55f068,_0x3fa23d;_0x4b784f['paragraphs']=L(_0x4b784f[_0x55f1a0(0x8a)],_0x1811bf,_0x11d3a5),_0x4b784f[_0x55f1a0(0x6d)]=L(_0x4b784f['sectionBreaks'],_0x1811bf,_0x11d3a5),_0x4b784f[_0x55f1a0(0x9b)]=L(_0x4b784f[_0x55f1a0(0x9b)],_0x1811bf,_0x11d3a5),_0x4b784f[_0x55f1a0(0x95)]=(_0x55f068=it((_0x3fa23d=_0x4b784f[_0x55f1a0(0x95)])==null?void 0x0:_0x3fa23d[_0x55f1a0(0x10f)](_0xa8dc8c=>({..._0xa8dc8c,'startIndex':_0xa8dc8c['st'],'endIndex':_0xa8dc8c['ed']})),_0x1811bf,_0x11d3a5))==null?void 0x0:_0x55f068[_0x55f1a0(0x10f)](_0x44d1b4=>{let {startIndex:_0x3c5a04,endIndex:_0x2ba6af,..._0x1b2e46}=_0x44d1b4;return{..._0x1b2e46,'st':_0x3c5a04,'ed':_0x2ba6af};}),_0x4b784f[_0x55f1a0(0xe8)]=it(_0x4b784f[_0x55f1a0(0xe8)],_0x1811bf,_0x11d3a5),_0x4b784f['columnGroups']=z(_0x4b784f[_0x55f1a0(0xc9)],_0x1811bf,_0x11d3a5),_0x4b784f[_0x55f1a0(0x90)]=z(_0x4b784f[_0x55f1a0(0x90)],_0x1811bf,_0x11d3a5),_0x4b784f[_0x55f1a0(0xd8)]=z(_0x4b784f['customDecorations'],_0x1811bf,_0x11d3a5),_0x4b784f[_0x55f1a0(0x79)]=z(_0x4b784f[_0x55f1a0(0x79)],_0x1811bf,_0x11d3a5);}function I(_0x35a8ac,_0xb5d92,_0x3536ca){const _0x2989c3=_0x49483d;return _0x35a8ac==null?void 0x0:_0x35a8ac[_0x2989c3(0x10f)](_0x49764d=>_0x49764d[_0x2989c3(0xca)]>=_0xb5d92?{..._0x49764d,'startIndex':_0x49764d['startIndex']+_0x3536ca}:_0x49764d);}function L(_0x1d4770,_0x34a2d7,_0x15307b){const _0xacf524=_0x49483d;let _0xc61e6c=_0x34a2d7+_0x15307b;return _0x1d4770==null?void 0x0:_0x1d4770[_0xacf524(0x10f)](_0x49ce98=>_0x49ce98[_0xacf524(0xca)]>=_0x34a2d7&&_0x49ce98['startIndex']<_0xc61e6c?null:_0x49ce98[_0xacf524(0xca)]>=_0xc61e6c?{..._0x49ce98,'startIndex':_0x49ce98['startIndex']-_0x15307b}:_0x49ce98)[_0xacf524(0xf1)](_0x41efe3=>_0x41efe3!=null);}function nt(_0x430eea,_0x12f39b,_0x3714b7){const _0x314ba2=_0x49483d;return _0x430eea==null?void 0x0:_0x430eea[_0x314ba2(0x10f)](_0x173020=>_0x173020['st']>=_0x12f39b?{..._0x173020,'st':_0x173020['st']+_0x3714b7,'ed':_0x173020['ed']+_0x3714b7}:_0x173020['ed']>_0x12f39b?{..._0x173020,'ed':_0x173020['ed']+_0x3714b7}:_0x173020);}function R(_0x2264a,_0x249d9e,_0x791a33){const _0x1728bd=_0x49483d;return _0x2264a==null?void 0x0:_0x2264a[_0x1728bd(0x10f)](_0x48860e=>_0x4cbd10(_0x48860e,_0x249d9e,_0x791a33));}function rt(_0x37cbe8,_0x148210,_0x320124){const _0x48a36e=_0x49483d;return _0x37cbe8==null?void 0x0:_0x37cbe8[_0x48a36e(0x10f)](_0xbe57dc=>_0x3f24e6(_0xbe57dc,_0x148210,_0x320124));}function z(_0x26908f,_0x45c75c,_0x522636){const _0x44a783=_0x49483d;return _0x26908f==null?void 0x0:_0x26908f[_0x44a783(0x10f)](_0x35cd26=>_0x2cee19(_0x35cd26,_0x45c75c,_0x522636))['filter'](_0x58a29c=>_0x58a29c!=null);}function it(_0x43824b,_0x53de3f,_0x15acc3){const _0xab3232=_0x49483d;return _0x43824b==null?void 0x0:_0x43824b['map'](_0x5786c3=>_0xc1b9cd(_0x5786c3,_0x53de3f,_0x15acc3))[_0xab3232(0xf1)](_0x3e1274=>_0x3e1274!=null);}function _0x10b3(_0x139bf2,_0x367a17){_0x139bf2=_0x139bf2-0x65;const _0x1d98ba=_0x1d98();let _0x10b317=_0x1d98ba[_0x139bf2];return _0x10b317;}const at={'id':_0x49483d(0x82),'type':_0x446cfc[_0x49483d(0xba)],'handler':_0x54aef2=>{const _0x45975b=_0x49483d;var _0x2e7799;if(_0x584ad5(G(_0x54aef2)))return!0x1;let _0x29ef0f=_0x34eb39(_0x54aef2);if(_0x29ef0f)return _0x54aef2[_0x45975b(0xbd)](_0x330d40)['syncExecuteCommand'](B['id'],{'startOffset':_0x29ef0f[_0x45975b(0x10e)],'endOffset':_0x29ef0f[_0x45975b(0x105)],'insertionMode':_0x45975b(0xf5),'unitId':_0x29ef0f[_0x45975b(0x10b)]});let _0x1cc77b=ft(_0x54aef2);if(!_0x1cc77b)return!0x1;let _0x4c2b84=(_0x2e7799=_0x54aef2[_0x45975b(0xbd)](_0x1f322c)[_0x45975b(0x91)](_0x2fc27d[_0x45975b(0x100)]))==null?void 0x0:_0x2e7799['getBody'](),_0x4d02b7=_0x4c2b84?_0x15574e(_0x4c2b84,_0x1cc77b):_0x1cc77b[_0x45975b(0xca)]+0x1;return _0x54aef2[_0x45975b(0xbd)](_0x330d40)['syncExecuteCommand'](B['id'],{'startOffset':_0x4d02b7,'endOffset':_0x4d02b7});}},ot={'id':_0x49483d(0xf9),'type':_0x446cfc[_0x49483d(0xba)],'handler':()=>!0x0},B={'id':'docs-code.command.insert','type':_0x446cfc[_0x49483d(0xba)],'handler':(_0x5ced54,_0xfff347)=>{const _0x11f6f6=_0x49483d;let _0x4364cb=W(_0x5ced54,_0xfff347==null?void 0x0:_0xfff347[_0x11f6f6(0x10b)]);if(!_0x4364cb)return!0x1;let _0x2f4f7b=G(_0x5ced54);if(_0x584ad5(_0x2f4f7b))return!0x1;let _0x470f30=_0x4364cb[_0x11f6f6(0xae)][_0x11f6f6(0x7c)](_0x4364cb[_0x11f6f6(0x10b)]),_0x447e02=lt(_0xfff347,_0x2f4f7b),_0x36928e=ut(_0x4364cb[_0x11f6f6(0x106)],_0x447e02);if(_0x36928e){if(_0x36928e[_0x11f6f6(0xc4)]!==_0x2324fb['CODE'])return!0x1;let _0x4f47c4=D({'blockId':_0x36928e['blockId'],'documentData':_0x4364cb[_0x11f6f6(0x106)],'metadata':_0x470f30});if(!_0x4f47c4)return!0x1;let _0xc56bdf=Y(_0x4364cb[_0x11f6f6(0xc7)],_0x4364cb[_0x11f6f6(0xac)],_0x4364cb[_0x11f6f6(0x10b)],_0x4364cb[_0x11f6f6(0x106)],_0x4f47c4[_0x11f6f6(0xce)],B['id'],_0x4f47c4[_0x11f6f6(0xdb)]);return _0xc56bdf&&_0x4f47c4[_0x11f6f6(0x84)]&&_0x4364cb[_0x11f6f6(0xae)]['deserialize'](_0x4364cb[_0x11f6f6(0x10b)],_0x4f47c4['nextMetadata']),_0xc56bdf;}let _0x57aa41=(_0xfff347==null?void 0x0:_0xfff347[_0x11f6f6(0x96)])??_0x5cf7a0(0x6),_0xe03c18;try{_0xe03c18=De({'blockId':_0x57aa41,'config':_0xfff347==null?void 0x0:_0xfff347[_0x11f6f6(0x9c)],'documentData':_0x4364cb[_0x11f6f6(0x106)],'endOffset':_0x447e02==null?void 0x0:_0x447e02[_0x11f6f6(0x105)],'insertionMode':_0xfff347==null?void 0x0:_0xfff347[_0x11f6f6(0xa9)],'metadata':_0x470f30,'startOffset':_0x447e02==null?void 0x0:_0x447e02[_0x11f6f6(0x10e)]});}catch(_0x272d0a){if(_0x272d0a instanceof E)return!0x1;throw _0x272d0a;}let _0x28b016=Y(_0x4364cb[_0x11f6f6(0xc7)],_0x4364cb['selectionManager'],_0x4364cb[_0x11f6f6(0x10b)],_0x4364cb['previousDocumentData'],_0xe03c18[_0x11f6f6(0xce)],B['id'],_0xe03c18[_0x11f6f6(0xdb)]);return _0x28b016&&_0xe03c18[_0x11f6f6(0x84)]&&_0x4364cb[_0x11f6f6(0xae)][_0x11f6f6(0x65)](_0x4364cb[_0x11f6f6(0x10b)],_0xe03c18[_0x11f6f6(0x84)]),_0x28b016;}},st={'id':'docs-code.command.update','type':_0x446cfc['COMMAND'],'handler':(_0x6a12c2,_0x2a753a)=>{const _0x13a052=_0x49483d;if(!_0x2a753a)return!0x1;let _0x92192=W(_0x6a12c2,_0x2a753a[_0x13a052(0x10b)]);if(!_0x92192)return!0x1;let _0x1319af=je({'blockId':_0x2a753a[_0x13a052(0x96)],'config':_0x2a753a[_0x13a052(0x9c)],'documentData':_0x92192[_0x13a052(0x106)],'metadata':_0x92192['model'][_0x13a052(0x7c)](_0x92192[_0x13a052(0x10b)])});return _0x1319af[_0x13a052(0x84)]&&_0x92192[_0x13a052(0xae)]['deserialize'](_0x92192[_0x13a052(0x10b)],_0x1319af[_0x13a052(0x84)]),!0x0;}},ct={'id':'docs-code.command.exit','type':_0x446cfc['COMMAND'],'handler':(_0xa76678,_0x21d0f2)=>V[_0x49483d(0xb0)](_0xa76678,_0x21d0f2)},V={'id':_0x49483d(0xc2),'type':_0x446cfc[_0x49483d(0xba)],'handler':(_0x4317f9,_0x1ac49a)=>{const _0xb165f0=_0x49483d;if(!_0x1ac49a)return!0x1;let _0x128479=W(_0x4317f9,_0x1ac49a==null?void 0x0:_0x1ac49a[_0xb165f0(0x10b)]);if(!_0x128479)return!0x1;let _0x27a2db=D({'blockId':_0x1ac49a[_0xb165f0(0x96)],'documentData':_0x128479['previousDocumentData'],'metadata':_0x128479[_0xb165f0(0xae)][_0xb165f0(0x7c)](_0x128479[_0xb165f0(0x10b)])});if(!_0x27a2db)return!0x1;let _0x5bf9be=Y(_0x128479[_0xb165f0(0xc7)],_0x128479[_0xb165f0(0xac)],_0x128479['unitId'],_0x128479[_0xb165f0(0x106)],_0x27a2db[_0xb165f0(0xce)],V['id'],_0x27a2db['cursorOffset']);return _0x5bf9be&&_0x27a2db[_0xb165f0(0x84)]&&_0x128479['model']['deserialize'](_0x128479[_0xb165f0(0x10b)],_0x27a2db[_0xb165f0(0x84)]),_0x5bf9be;}},H={'id':_0x49483d(0xa0),'type':_0x446cfc[_0x49483d(0xba)],'handler':(_0x32bd2a,_0x71fc0f)=>{const _0xe9b79c=_0x49483d;if(!_0x71fc0f)return!0x1;let _0x8665ad=W(_0x32bd2a,_0x71fc0f==null?void 0x0:_0x71fc0f[_0xe9b79c(0x10b)]);if(!_0x8665ad)return!0x1;let _0xf6f7ec=Me({'blockId':_0x71fc0f[_0xe9b79c(0x96)],'documentData':_0x8665ad[_0xe9b79c(0x106)],'metadata':_0x8665ad[_0xe9b79c(0xae)][_0xe9b79c(0x7c)](_0x8665ad[_0xe9b79c(0x10b)])});if(!_0xf6f7ec)return!0x1;let _0x29a4fb=Y(_0x8665ad['commandService'],_0x8665ad[_0xe9b79c(0xac)],_0x8665ad['unitId'],_0x8665ad[_0xe9b79c(0x106)],_0xf6f7ec[_0xe9b79c(0xce)],H['id'],_0xf6f7ec[_0xe9b79c(0xdb)]);return _0x29a4fb&&_0xf6f7ec[_0xe9b79c(0x84)]&&_0x8665ad[_0xe9b79c(0xae)][_0xe9b79c(0x65)](_0x8665ad[_0xe9b79c(0x10b)],_0xf6f7ec[_0xe9b79c(0x84)]),_0x29a4fb;}},U={'id':_0x49483d(0xdf),'type':_0x446cfc[_0x49483d(0xba)],'handler':(_0x1a7e0e,_0x39ac38)=>{const _0x36bd4e=_0x49483d;var _0x33d82f;let _0x373be3=W(_0x1a7e0e,_0x39ac38==null?void 0x0:_0x39ac38['unitId']);if(!_0x373be3)return!0x1;let _0x3c9908=(_0x39ac38==null?void 0x0:_0x39ac38['cursorOffset'])??((_0x33d82f=G(_0x1a7e0e))==null?void 0x0:_0x33d82f[_0x36bd4e(0x10e)]);if(_0x3c9908==null)return!0x1;let _0x54d46e=Ne({'cursorOffset':_0x3c9908,'documentData':_0x373be3[_0x36bd4e(0x106)],'paragraphStartIndex':_0x39ac38==null?void 0x0:_0x39ac38['paragraphStartIndex']});return _0x54d46e?Y(_0x373be3[_0x36bd4e(0xc7)],_0x373be3['selectionManager'],_0x373be3['unitId'],_0x373be3[_0x36bd4e(0x106)],_0x54d46e[_0x36bd4e(0xce)],U['id'],_0x54d46e[_0x36bd4e(0xdb)]):!0x1;}};function W(_0xd4eb6a,_0x4cb76d){const _0x24888c=_0x49483d;let _0x4ee59d=_0xd4eb6a[_0x24888c(0xbd)](_0x1f322c),_0x3ffd57=_0x4cb76d?_0x4ee59d[_0x24888c(0xaf)](_0x4cb76d,_0x2fc27d[_0x24888c(0x100)]):_0x4ee59d['getCurrentUnitOfType'](_0x2fc27d[_0x24888c(0x100)]);return _0x3ffd57?{'commandService':_0xd4eb6a[_0x24888c(0xbd)](_0x330d40),'model':_0xd4eb6a[_0x24888c(0xbd)](w),'previousDocumentData':_0x3ffd57[_0x24888c(0xb6)](),'selectionManager':_0xd4eb6a['get'](_0x2baf85),'unitId':_0x3ffd57[_0x24888c(0x66)]()}:null;}function G(_0x34f940){const _0x4f44bd=_0x49483d;var _0x5a03b0;return(_0x5a03b0=_0x34f940[_0x4f44bd(0xbd)](_0x2baf85)[_0x4f44bd(0x6f)]())==null?void 0x0:_0x5a03b0[0x0];}function lt(_0x555859,_0x19d3df){const _0x377f13=_0x49483d;let _0x14de05=(_0x555859==null?void 0x0:_0x555859[_0x377f13(0x10e)])??(_0x19d3df==null?void 0x0:_0x19d3df[_0x377f13(0x10e)]),_0x21b04f=(_0x555859==null?void 0x0:_0x555859[_0x377f13(0x105)])??(_0x19d3df==null?void 0x0:_0x19d3df[_0x377f13(0x105)]);if(_0x14de05!=null&&_0x21b04f!=null)return{'endOffset':Math[_0x377f13(0xda)](_0x14de05,_0x21b04f),'startOffset':Math[_0x377f13(0xef)](_0x14de05,_0x21b04f)};}function ut(_0xa33196,_0x56ce2c){const _0x591e07=_0x49483d;var _0xf3b25;if(!_0x56ce2c)return;let _0x520d36=dt(_0x56ce2c);return(_0xf3b25=_0xa33196['body'])==null||(_0xf3b25=_0xf3b25[_0x591e07(0x79)])==null?void 0x0:_0xf3b25[_0x591e07(0xd5)](_0x5e51ee=>{const _0x7cb9f8=_0x591e07;let _0x5dfe9c=_0x5c8dbe(_0x5e51ee);return _0x56ce2c[_0x7cb9f8(0x10e)]===_0x56ce2c['endOffset']?_0x116958(_0x5dfe9c,_0x520d36):_0x2d8224(_0x5dfe9c,_0x520d36);});}function dt(_0x2e8a1f){const _0x35289b=_0x49483d;return _0x2e8a1f[_0x35289b(0x10e)]===_0x2e8a1f[_0x35289b(0x105)]?_0x2e8a1f[_0x35289b(0x10e)]:_0x2e8a1f['startOffset']+0x1;}function ft(_0x427789){const _0x19f654=_0x49483d;let _0x405096=G(_0x427789);if(!_0x405096)return null;let _0x2b49f8=_0x427789[_0x19f654(0xbd)](_0x1f322c)['getCurrentUnitOfType'](_0x2fc27d[_0x19f654(0x100)]),_0x21ddc4=_0x2b49f8==null?void 0x0:_0x2b49f8['getBody']();return _0x21ddc4?_0x18ba16[_0x19f654(0x10d)][_0x19f654(0xd7)](_0x405096,_0x21ddc4['paragraphs']??[],_0x21ddc4['dataStream']??'')[0x0]??null:null;}function pt(_0x222ea4,_0x2c117a){const _0x261dfb=_0x49483d;let _0x2a1c3c=_0x222ea4['body'],_0x79e5c3=_0x2c117a['body'],_0x4de52e=_0x5c68b1(_0x2a1c3c,_0x79e5c3);return[_0x4de52e&&_0x79e5c3?mt(_0x79e5c3,_0x4de52e):null,_0x4de52e?null:ht(_0x2a1c3c,_0x79e5c3)]['filter'](Boolean)[_0x261dfb(0x83)]((_0x570cd9,_0x648e99)=>_0x424cd6[_0x261dfb(0xc5)](_0x570cd9,_0x648e99),null);}function mt(_0x53d23b,_0x4171f5){const _0xb39234=_0x49483d;let _0x434ce8=new _0x227fc3();return _0x434ce8[_0xb39234(0x74)](_0x4171f5[_0xb39234(0x102)]),_0x4171f5['insertLength']>0x0&&_0x434ce8[_0xb39234(0xcb)](_0x4171f5[_0xb39234(0xec)],_0x25d42f(_0x53d23b,_0x4171f5[_0xb39234(0x102)],_0x4171f5['start']+_0x4171f5['insertLength'],!0x1)),_0x4171f5['deleteLength']>0x0&&_0x434ce8[_0xb39234(0xe1)](_0x4171f5['deleteLength']),_0x424cd6[_0xb39234(0xfe)]()[_0xb39234(0x70)](_0x434ce8[_0xb39234(0x7c)](),[_0xb39234(0xc3)]);}function ht(_0x1da439,_0x1ed598){const _0x1d21a5=_0x49483d;let _0x253ce5=[],_0x2b67a7=_0x1da439?_t(_0x1da439):void 0x0,_0x3691f0=_0x1ed598?_t(_0x1ed598):void 0x0;for(let _0x38473a of gt)K(_0x424cd6[_0x1d21a5(0xfe)](),[_0x1d21a5(0xc3),_0x38473a],_0x2b67a7==null?void 0x0:_0x2b67a7[_0x38473a],_0x3691f0==null?void 0x0:_0x3691f0[_0x38473a],_0x253ce5);return _0x253ce5[_0x1d21a5(0x83)]((_0x5dbd29,_0x57f324)=>_0x424cd6[_0x1d21a5(0xc5)](_0x5dbd29,_0x57f324),null);}const gt=[_0x49483d(0x8a),_0x49483d(0x6d),_0x49483d(0xe8),_0x49483d(0xc9),_0x49483d(0x79),_0x49483d(0x9b),'customRanges',_0x49483d(0xd8),_0x49483d(0x95)];function _t(_0x788228){return _0x788228;}function K(_0x24a0fd,_0x36df53,_0x356f6e,_0x16d58f,_0x19a41a){const _0xfba002=_0x49483d;if(!J(_0x356f6e,_0x16d58f)){if(_0x356f6e==null){_0x19a41a[_0xfba002(0xde)](_0x24a0fd[_0xfba002(0x101)](_0x36df53,_0x16d58f));return;}if(_0x16d58f==null){_0x19a41a[_0xfba002(0xde)](_0x24a0fd[_0xfba002(0xf0)](_0x36df53,_0x356f6e));return;}if(Array[_0xfba002(0x67)](_0x356f6e)&&Array[_0xfba002(0x67)](_0x16d58f)){vt(_0x24a0fd,_0x36df53,_0x356f6e,_0x16d58f,_0x19a41a);return;}if(q(_0x356f6e)&&q(_0x16d58f)){new Set([...Object[_0xfba002(0xc1)](_0x356f6e),...Object[_0xfba002(0xc1)](_0x16d58f)])['forEach'](_0x4efe8b=>{K(_0x24a0fd,[..._0x36df53,_0x4efe8b],_0x356f6e[_0x4efe8b],_0x16d58f[_0x4efe8b],_0x19a41a);});return;}_0x19a41a[_0xfba002(0xde)](_0x24a0fd[_0xfba002(0xaa)](_0x36df53,_0x356f6e,_0x16d58f));}}function vt(_0x308964,_0x597f92,_0x1a7922,_0x3ef404,_0x1663fc){const _0x22e6c0=_0x49483d;if(_0x1a7922[_0x22e6c0(0xa3)]===_0x3ef404[_0x22e6c0(0xa3)]){_0x1a7922[_0x22e6c0(0xe5)]((_0x211b4e,_0x1d73d1)=>K(_0x308964,[..._0x597f92,_0x1d73d1],_0x211b4e,_0x3ef404[_0x1d73d1],_0x1663fc));return;}let _0x117c98=0x0;for(;_0x117c98<_0x1a7922[_0x22e6c0(0xa3)]&&_0x117c98<_0x3ef404['length']&&J(_0x1a7922[_0x117c98],_0x3ef404[_0x117c98]);)_0x117c98++;let _0x15a85a=_0x1a7922['length']-0x1,_0x278a39=_0x3ef404[_0x22e6c0(0xa3)]-0x1;for(;_0x15a85a>=_0x117c98&&_0x278a39>=_0x117c98&&J(_0x1a7922[_0x15a85a],_0x3ef404[_0x278a39]);)_0x15a85a--,_0x278a39--;for(let _0x43fb6a=_0x15a85a;_0x43fb6a>=_0x117c98;_0x43fb6a--)_0x1663fc[_0x22e6c0(0xde)](_0x308964[_0x22e6c0(0xf0)]([..._0x597f92,_0x43fb6a],_0x1a7922[_0x43fb6a]));for(let _0x3c12d1=_0x117c98;_0x3c12d1<=_0x278a39;_0x3c12d1++)_0x1663fc[_0x22e6c0(0xde)](_0x308964[_0x22e6c0(0x101)]([..._0x597f92,_0x3c12d1],_0x3ef404[_0x3c12d1]));}function q(_0x4797f5){const _0x5d12d5=_0x49483d;return typeof _0x4797f5=='object'&&!!_0x4797f5&&!Array[_0x5d12d5(0x67)](_0x4797f5);}function J(_0x5a92d8,_0x3219c0){const _0x534fbb=_0x49483d;return JSON[_0x534fbb(0x9f)](_0x5a92d8)===JSON[_0x534fbb(0x9f)](_0x3219c0);}function Y(_0x2b8fb0,_0x5ae991,_0x13d374,_0x2c033f,_0x31579f,_0x308447,_0x3db8be){const _0x2c80f3=_0x49483d;let _0x528c68=pt(_0x2c033f,_0x31579f);return _0x528c68?!!_0x2b8fb0[_0x2c80f3(0xe6)](_0x274029['id'],{'unitId':_0x13d374,'actions':_0x528c68,'textRanges':[{'startOffset':_0x3db8be,'endOffset':_0x3db8be,'collapsed':!0x0}],'isEditing':!0x1,'trigger':_0x308447}):(_0x5ae991[_0x2c80f3(0xa4)]([{'startOffset':_0x3db8be,'endOffset':_0x3db8be}],{'unitId':_0x13d374,'subUnitId':_0x13d374},!0x1),!0x0);}const X=_0x49483d(0x76);var yt=_0x49483d(0x88),bt=_0x49483d(0x7d);const xt={};function Z(_0x42699c,_0x3da817){return function(_0x78651b,_0x411faa){_0x3da817(_0x78651b,_0x411faa,_0x42699c);};}function St(_0x1fb6a7,_0x440249,_0x3b8ed4,_0x561e80){const _0x1f96ee=_0x49483d;var _0x1b43ba=arguments[_0x1f96ee(0xa3)],_0x423ae9=_0x1b43ba<0x3?_0x440249:_0x561e80===null?_0x561e80=Object['getOwnPropertyDescriptor'](_0x440249,_0x3b8ed4):_0x561e80,_0x2ba52f;if(typeof Reflect=='object'&&typeof Reflect['decorate']==_0x1f96ee(0x104))_0x423ae9=Reflect[_0x1f96ee(0xcd)](_0x1fb6a7,_0x440249,_0x3b8ed4,_0x561e80);else{for(var _0x12c472=_0x1fb6a7[_0x1f96ee(0xa3)]-0x1;_0x12c472>=0x0;_0x12c472--)(_0x2ba52f=_0x1fb6a7[_0x12c472])&&(_0x423ae9=(_0x1b43ba<0x3?_0x2ba52f(_0x423ae9):_0x1b43ba>0x3?_0x2ba52f(_0x440249,_0x3b8ed4,_0x423ae9):_0x2ba52f(_0x440249,_0x3b8ed4))||_0x423ae9);}return _0x1b43ba>0x3&&_0x423ae9&&Object['defineProperty'](_0x440249,_0x3b8ed4,_0x423ae9),_0x423ae9;}let Q=class extends _0x24e448{constructor(_0x1ee959,_0xb4519d){const _0x58c2d7=_0x49483d;super(),this[_0x58c2d7(0xbb)]=_0x1ee959,this[_0x58c2d7(0xab)]=_0xb4519d,this[_0x58c2d7(0xa5)]();}['_initResource'](){const _0x296147=_0x49483d;this[_0x296147(0xe2)](this[_0x296147(0xbb)][_0x296147(0xcc)]({'pluginName':X,'businesses':[_0x2fc27d[_0x296147(0x100)]],'toJson':_0x300f4=>JSON['stringify'](this[_0x296147(0xab)][_0x296147(0x7c)](_0x300f4)),'parseJson':_0x3cfe2e=>y(JSON[_0x296147(0xd2)](_0x3cfe2e)),'onLoad':(_0x2b4d4d,_0x20dbc8)=>this[_0x296147(0xab)][_0x296147(0x65)](_0x2b4d4d,_0x20dbc8),'onUnLoad':_0x16b5c9=>this[_0x296147(0xab)]['removeUnit'](_0x16b5c9)}));}};Q=St([Z(0x0,_0x4ec5e9),Z(0x1,_0x34c829(w))],Q);let $=class extends _0x5a8ee0{constructor(_0x222113=xt,_0x18758b,_0x590d25,_0x26903b){const _0x146d8d=_0x49483d;super(),this[_0x146d8d(0xb5)]=_0x222113,this[_0x146d8d(0x6a)]=_0x18758b,this[_0x146d8d(0xd6)]=_0x590d25,this[_0x146d8d(0xfc)]=_0x26903b;let {..._0x172860}=_0x1470e9({},xt,this[_0x146d8d(0xb5)]);this[_0x146d8d(0xfc)]['setConfig'](_0x146d8d(0x6e),_0x172860);}[_0x49483d(0x107)](){const _0x5207d1=_0x49483d;this['_injector'][_0x5207d1(0x7e)]([w]),this[_0x5207d1(0x6a)]['add']([Q]),this['_injector'][_0x5207d1(0xbd)](w),this[_0x5207d1(0x6a)][_0x5207d1(0xbd)](Q),[B,at,st,V,H,ct,U,ot,Te,T][_0x5207d1(0xe5)](_0x5dc876=>this['disposeWithMe'](this['_commandService'][_0x5207d1(0x8b)](_0x5dc876)));}};C($,_0x49483d(0xf8),X),C($,_0x49483d(0xa1),yt),C($,_0x49483d(0x109),bt),C($,_0x49483d(0x108),_0x2fc27d[_0x49483d(0x100)]),$=St([_0x5aaaeb(_0xecd332,_0x565d36),Z(0x1,_0x34c829(_0x38f326)),Z(0x2,_0x330d40),Z(0x3,_0x5ce515)],$);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
|
|
1
|
+
var _0x38946e=_0x2f5f;(function(_0x4bcdc6,_0xadef16){var _0x516704=_0x2f5f,_0x2d7b0d=_0x4bcdc6();while(!![]){try{var _0x4a63f0=-parseInt(_0x516704(0x9f))/0x1+-parseInt(_0x516704(0xc7))/0x2*(-parseInt(_0x516704(0xbe))/0x3)+-parseInt(_0x516704(0xae))/0x4+parseInt(_0x516704(0xc9))/0x5+parseInt(_0x516704(0x96))/0x6*(parseInt(_0x516704(0xda))/0x7)+parseInt(_0x516704(0xad))/0x8*(-parseInt(_0x516704(0x97))/0x9)+-parseInt(_0x516704(0xa8))/0xa;if(_0x4a63f0===_0xadef16)break;else _0x2d7b0d['push'](_0x2d7b0d['shift']());}catch(_0x1f9ab4){_0x2d7b0d['push'](_0x2d7b0d['shift']());}}}(_0xeaa7,0xa99a0));import{DocsCodeInsertCommand as _0xe4d73,DocsCodeModel as _0x4ad876,DocsCodeRemoveCommand as _0x2a8caf,DocsCodeUnwrapCommand as _0x238623,DocsCodeUpdateCommand as _0x4f0288,normalizeDocsCodeConfig as _0x290c1a}from'@univerjs-pro/docs-code';import{DataStreamTreeTokenType as _0x41ab50,DocumentBlockRangeType as _0x59ca1e,ICommandService as _0x2172ab,Inject as _0x175244,Injector as _0x18e1ac,generateRandomId as _0x4de038}from'@univerjs/core';import{FDocument as _0x8122f,isParagraphFacade as _0x3e8111}from'@univerjs/docs/facade';function m(_0x25bbaf){'@babel/helpers - typeof';var _0x2fa8aa=_0x2f5f;return m=typeof Symbol=='function'&&typeof Symbol[_0x2fa8aa(0xb9)]==_0x2fa8aa(0xb3)?function(_0x2d6b76){return typeof _0x2d6b76;}:function(_0x28c7b9){var _0xa34637=_0x2fa8aa;return _0x28c7b9&&typeof Symbol==_0xa34637(0xb7)&&_0x28c7b9[_0xa34637(0xbd)]===Symbol&&_0x28c7b9!==Symbol[_0xa34637(0xac)]?'symbol':typeof _0x28c7b9;},m(_0x25bbaf);}function h(_0x44f722,_0x315e0f){var _0x3d2d5b=_0x2f5f;if(m(_0x44f722)!='object'||!_0x44f722)return _0x44f722;var _0x5b8768=_0x44f722[Symbol[_0x3d2d5b(0xcf)]];if(_0x5b8768!==void 0x0){var _0x4d16e8=_0x5b8768[_0x3d2d5b(0xd5)](_0x44f722,_0x315e0f||_0x3d2d5b(0x9e));if(m(_0x4d16e8)!=_0x3d2d5b(0x98))return _0x4d16e8;throw TypeError(_0x3d2d5b(0xcd));}return(_0x315e0f===_0x3d2d5b(0x9b)?String:Number)(_0x44f722);}function _0xeaa7(){var _0x93ca6b=['prototype','297664eHmEFC','3588876MYYmzs','_blockId','extend','createInstance','_getBlockRange','symbol','replace','find','length','function','getCodeConfig','iterator','map','save','endIndex','constructor','21CjUMVF','get','dataStream','getRange','findCodes','SECTION_BREAK','BLOCK_END','_getBlockRanges','slice','268316eNkjVO','blockType','3652890AGCZWC','_unitId','getConfig','updateConfig','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','includes','toPrimitive','getId','startIndex','unwrap','CODE','_createFDocumentCode','call','_getDocumentData','findCodeByText','some','blockId','77fcefOy','config','241062qoGzQQ','36mgEQjg','object','getText','getCodes','string','getCode','describe','default','4846ajOPkv','_document','decorate','PARAGRAPH','blockRanges','_injector','BLOCK_START','text','filter','3660460CHarpO','syncExecuteCommand','body','insertCode'];_0xeaa7=function(){return _0x93ca6b;};return _0xeaa7();}function g(_0x1c0094){var _0x3d16ce=_0x2f5f,_0x5530da=h(_0x1c0094,_0x3d16ce(0x9b));return m(_0x5530da)==_0x3d16ce(0xb3)?_0x5530da:_0x5530da+'';}function _(_0x2a7a33,_0x4f6f26,_0x224bea){return(_0x4f6f26=g(_0x4f6f26))in _0x2a7a33?Object['defineProperty'](_0x2a7a33,_0x4f6f26,{'value':_0x224bea,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x2a7a33[_0x4f6f26]=_0x224bea,_0x2a7a33;}function v(_0x5871a1,_0x119db8){return function(_0x348237,_0x45cf01){_0x119db8(_0x348237,_0x45cf01,_0x5871a1);};}function y(_0x4e0f2a,_0x2a1d1e,_0x162750,_0x2fbfab){var _0x31b9ae=_0x2f5f,_0x28ff29=arguments[_0x31b9ae(0xb6)],_0x361445=_0x28ff29<0x3?_0x2a1d1e:_0x2fbfab===null?_0x2fbfab=Object['getOwnPropertyDescriptor'](_0x2a1d1e,_0x162750):_0x2fbfab,_0x599e39;if(typeof Reflect=='object'&&typeof Reflect[_0x31b9ae(0xa1)]=='function')_0x361445=Reflect[_0x31b9ae(0xa1)](_0x4e0f2a,_0x2a1d1e,_0x162750,_0x2fbfab);else{for(var _0x34c980=_0x4e0f2a['length']-0x1;_0x34c980>=0x0;_0x34c980--)(_0x599e39=_0x4e0f2a[_0x34c980])&&(_0x361445=(_0x28ff29<0x3?_0x599e39(_0x361445):_0x28ff29>0x3?_0x599e39(_0x2a1d1e,_0x162750,_0x361445):_0x599e39(_0x2a1d1e,_0x162750))||_0x361445);}return _0x28ff29>0x3&&_0x361445&&Object['defineProperty'](_0x2a1d1e,_0x162750,_0x361445),_0x361445;}let b=class{constructor(_0x5b9eea,_0x3b7478,_0x4db584){var _0x4cc084=_0x2f5f;this[_0x4cc084(0xa0)]=_0x5b9eea,this[_0x4cc084(0xaf)]=_0x3b7478,this[_0x4cc084(0xa4)]=_0x4db584,_(this,_0x4cc084(0xca),void 0x0),this[_0x4cc084(0xca)]=this[_0x4cc084(0xa0)]['getId']();}['getId'](){return this['_blockId'];}[_0x38946e(0xc1)](){var _0x41d0d6=_0x38946e;let _0x658f3=this[_0x41d0d6(0xb2)]();return _0x658f3?{'blockId':_0x658f3[_0x41d0d6(0xd9)],'endIndex':_0x658f3[_0x41d0d6(0xbc)],'startIndex':_0x658f3[_0x41d0d6(0xd1)]}:null;}[_0x38946e(0x99)](){var _0x2903f9=_0x38946e,_0x451f68;let _0x25ab76=this[_0x2903f9(0xb2)](),_0x2fc659=(_0x451f68=this['_getDocumentData']()[_0x2903f9(0xaa)])==null?void 0x0:_0x451f68[_0x2903f9(0xc0)];return!_0x25ab76||!_0x2fc659?'':x(_0x2fc659[_0x2903f9(0xc6)](_0x25ab76[_0x2903f9(0xd1)]+0x1,_0x25ab76[_0x2903f9(0xbc)]));}[_0x38946e(0x9d)](){var _0x4bd1e3=_0x38946e;let _0x536185=this[_0x4bd1e3(0xc1)]();return _0x536185?{..._0x536185,'config':this[_0x4bd1e3(0xcb)](),'text':this['getText'](),'type':_0x59ca1e[_0x4bd1e3(0xd3)]}:null;}['getConfig'](){var _0x15230c=_0x38946e;let _0x44cdc9=this[_0x15230c(0xa4)][_0x15230c(0xbf)](_0x4ad876);return _0x290c1a(_0x44cdc9[_0x15230c(0xb8)](this[_0x15230c(0xca)],this[_0x15230c(0xaf)]));}[_0x38946e(0xcc)](_0x12cccf){var _0x506a5d=_0x38946e;return this[_0x506a5d(0xa4)][_0x506a5d(0xbf)](_0x2172ab)['syncExecuteCommand'](_0x4f0288['id'],{'blockId':this[_0x506a5d(0xaf)],'config':_0x12cccf[_0x506a5d(0x95)],'unitId':this[_0x506a5d(0xca)]});}[_0x38946e(0xd2)](){var _0xa6ba68=_0x38946e;return this[_0xa6ba68(0xa4)][_0xa6ba68(0xbf)](_0x2172ab)[_0xa6ba68(0xa9)](_0x238623['id'],{'blockId':this[_0xa6ba68(0xaf)],'unitId':this['_unitId']});}['remove'](){var _0x1642a3=_0x38946e;return this[_0x1642a3(0xa4)]['get'](_0x2172ab)[_0x1642a3(0xa9)](_0x2a8caf['id'],{'blockId':this[_0x1642a3(0xaf)],'unitId':this[_0x1642a3(0xca)]});}[_0x38946e(0xb2)](){var _0x100482=_0x38946e,_0x228050;return((_0x228050=this['_getDocumentData']()['body'])==null||(_0x228050=_0x228050[_0x100482(0xa3)])==null?void 0x0:_0x228050[_0x100482(0xb5)](_0x11802c=>_0x11802c[_0x100482(0xd9)]===this[_0x100482(0xaf)]&&_0x11802c[_0x100482(0xc8)]===_0x59ca1e[_0x100482(0xd3)]))??null;}[_0x38946e(0xd6)](){var _0x1c30cc=_0x38946e;return this[_0x1c30cc(0xa0)][_0x1c30cc(0xbb)]();}};b=y([v(0x2,_0x175244(_0x18e1ac))],b);function x(_0xd92af0){var _0x141059=_0x38946e;return Array['from'](_0xd92af0)[_0x141059(0xba)](_0x507369=>_0x507369===_0x41ab50[_0x141059(0xa2)]?'\x0a':_0x507369)[_0x141059(0xa7)](_0x50139e=>_0x50139e!==_0x41ab50[_0x141059(0xa5)]&&_0x50139e!==_0x41ab50[_0x141059(0xc4)]&&_0x50139e!==_0x41ab50[_0x141059(0xc3)])['join']('')[_0x141059(0xb4)](/\n$/,'');}function _0x2f5f(_0x2ff405,_0x41be0b){_0x2ff405=_0x2ff405-0x95;var _0xeaa7fb=_0xeaa7();var _0x2f5f33=_0xeaa7fb[_0x2ff405];return _0x2f5f33;}var S=class extends _0x8122f{[_0x38946e(0x9a)](){var _0xcc6647=_0x38946e;return this[_0xcc6647(0xc5)]()[_0xcc6647(0xa7)](_0x459313=>_0x459313[_0xcc6647(0xc8)]===_0x59ca1e[_0xcc6647(0xd3)])['map'](_0x2d207e=>this['_createFDocumentCode'](_0x2d207e[_0xcc6647(0xd9)]));}[_0x38946e(0x9c)](_0x22ba83){var _0x81fc7b=_0x38946e;return this[_0x81fc7b(0xc5)]()[_0x81fc7b(0xd8)](_0x15c74f=>_0x15c74f[_0x81fc7b(0xd9)]===_0x22ba83&&_0x15c74f[_0x81fc7b(0xc8)]===_0x59ca1e[_0x81fc7b(0xd3)])?this[_0x81fc7b(0xd4)](_0x22ba83):null;}['getCodeAt'](_0x2e7d3c){var _0x1018dc=_0x38946e;let _0x900bc6=this[_0x1018dc(0xc5)]()['find'](_0x59d4fd=>_0x59d4fd[_0x1018dc(0xc8)]===_0x59ca1e[_0x1018dc(0xd3)]&&_0x59d4fd[_0x1018dc(0xd1)]<=_0x2e7d3c&&_0x2e7d3c<=_0x59d4fd[_0x1018dc(0xbc)]);return _0x900bc6?this[_0x1018dc(0xd4)](_0x900bc6[_0x1018dc(0xd9)]):null;}[_0x38946e(0xd7)](_0x495a5c){var _0x49b2ac=_0x38946e;return this[_0x49b2ac(0xc2)](_0x495a5c)[0x0]??null;}[_0x38946e(0xc2)](_0x249775){var _0x262b09=_0x38946e;let _0x1d940c=typeof _0x249775==_0x262b09(0x9b)?{'text':_0x249775}:_0x249775;return this[_0x262b09(0x9a)]()[_0x262b09(0xa7)](_0x438b36=>!(_0x1d940c['blockId']&&_0x438b36[_0x262b09(0xd0)]()!==_0x1d940c[_0x262b09(0xd9)]||_0x1d940c[_0x262b09(0xa6)]&&!_0x438b36[_0x262b09(0x99)]()[_0x262b09(0xce)](_0x1d940c['text'])));}[_0x38946e(0xab)](_0x1dfc19={},_0x1033cf={}){var _0xaeae06=_0x38946e;let _0x531a8c=this[_0xaeae06(0xa4)]['get'](_0x2172ab),_0x293e72=_0x3e8111(_0x1dfc19)?{..._0x1033cf,..._0x1dfc19[_0xaeae06(0xc1)]()}:_0x1dfc19,_0xff4dd2=_0x293e72['blockId']??_0x4de038(0x6);return _0x531a8c[_0xaeae06(0xa9)](_0xe4d73['id'],{..._0x293e72,'blockId':_0xff4dd2,'unitId':this['getId']()})?this[_0xaeae06(0x9c)](_0xff4dd2):null;}['_getBlockRanges'](){var _0x25d736=_0x38946e,_0x55ec89;return((_0x55ec89=this[_0x25d736(0xbb)]()[_0x25d736(0xaa)])==null?void 0x0:_0x55ec89[_0x25d736(0xa3)])??[];}[_0x38946e(0xd4)](_0x21629f){var _0x39cc97=_0x38946e;return this['_injector'][_0x39cc97(0xb1)](b,this,_0x21629f);}};_0x8122f[_0x38946e(0xb0)](S);export{b as FDocumentCode};
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x18dff1=_0x6b1e;(function(_0x3bbd22,_0x43cd9f){const _0x477bf3=_0x6b1e,_0x2a0b46=_0x3bbd22();while(!![]){try{const _0x52f81a=-parseInt(_0x477bf3(0x10f))/0x1*(parseInt(_0x477bf3(0xaa))/0x2)+parseInt(_0x477bf3(0x108))/0x3*(parseInt(_0x477bf3(0x11b))/0x4)+-parseInt(_0x477bf3(0xb3))/0x5*(-parseInt(_0x477bf3(0xd7))/0x6)+-parseInt(_0x477bf3(0xa1))/0x7+-parseInt(_0x477bf3(0xd8))/0x8+-parseInt(_0x477bf3(0xf5))/0x9+-parseInt(_0x477bf3(0xf0))/0xa*(-parseInt(_0x477bf3(0x111))/0xb);if(_0x52f81a===_0x43cd9f)break;else _0x2a0b46['push'](_0x2a0b46['shift']());}catch(_0x16b1c5){_0x2a0b46['push'](_0x2a0b46['shift']());}}}(_0x4deb,0x67003));import{BooleanNumber as _0x1d2318,BuildTextUtils as _0x855b47,CommandType as _0x19903b,DataStreamTreeTokenType as _0x22c6c,DependentOn as _0x20ffc4,Disposable as _0x1054c6,DocumentBlockRangeType as _0x38c014,ICommandService as _0x4ed376,IConfigService as _0x477e3f,IResourceManagerService as _0x7f39be,IUniverInstanceService as _0x2ee2bc,Inject as _0x3f37a0,Injector as _0x1b4208,JSONX as _0x4677ba,Plugin as _0x58480b,TextX as _0x3f221e,UniverInstanceType as _0x8cc94f,containsInteriorInsertionOffset as _0x437273,containsStreamIndex as _0x31e2f9,createParagraphId as _0x591cdf,generateRandomId as _0x5c655,getBlockRangeInterval as _0x1a4c5b,getBodySliceForTextXAction as _0x1451b,getParagraphContentStartOffset as _0x13bc7e,getParagraphContentStartOffsets as _0x52d57d,getParagraphFollowingBlockOffset as _0x2c7394,getSingleDataStreamChange as _0x1b668f,intersectsOperationalIntervals as _0x8f659c,merge as _0x152df7,shiftExclusiveRangeOnDelete as _0x474e7c,shiftExclusiveRangeOnInsert as _0x1b7ff4,shiftInclusiveRangeOnDelete as _0x3a1df5,shiftInclusiveRangeOnInsert as _0x221047}from'@univerjs/core';import{Subject as _0xae0c94}from'rxjs';import{DocSelectionManagerService as _0x5b762a,RichTextEditingMutation as _0x942fde,UniverDocsPlugin as _0x4c8af0,getContentInsertRange as _0xb85039,isHeaderFooterSelection as _0x381bc1}from'@univerjs/docs';import{UniverLicensePlugin as _0x133a21}from'@univerjs-pro/license';const Se={'language':_0x18dff1(0x10c),'showLineNumbers':!0x1,'tabSize':0x4,'wrap':!0x0};function v(_0x55613e){return{...Se,..._0x55613e};}function y(_0x50b3f5){const _0x52baae=_0x18dff1;let _0x4a87ed=(_0x50b3f5==null?void 0x0:_0x50b3f5[_0x52baae(0xc5)])??{};return{'codes':Object['fromEntries'](Object['entries'](_0x4a87ed)[_0x52baae(0xc4)](([_0x4f5485,_0x5f32a5])=>[_0x4f5485,v(_0x5f32a5)]))};}function b(_0x29783b,_0xeb2f65,_0x77dc1d){const _0x363742=_0x18dff1;let _0xe16acc=y(_0x29783b);return _0xe16acc[_0x363742(0xc5)][_0xeb2f65]=v({..._0xe16acc[_0x363742(0xc5)][_0xeb2f65],..._0x77dc1d}),_0xe16acc;}function x(_0x34223b,_0x15e0bf){const _0x269cf8=_0x18dff1;let _0x281bdd=y(_0x34223b);return delete _0x281bdd[_0x269cf8(0xc5)][_0x15e0bf],_0x281bdd;}function S(_0x51f3e0){'@babel/helpers - typeof';const _0x557440=_0x18dff1;return S=typeof Symbol=='function'&&typeof Symbol[_0x557440(0xba)]==_0x557440(0xf4)?function(_0xa662c8){return typeof _0xa662c8;}:function(_0x28b5b1){const _0x1b5be9=_0x557440;return _0x28b5b1&&typeof Symbol=='function'&&_0x28b5b1['constructor']===Symbol&&_0x28b5b1!==Symbol[_0x1b5be9(0x12b)]?_0x1b5be9(0xf4):typeof _0x28b5b1;},S(_0x51f3e0);}function Ce(_0x4fa730,_0x1295b9){const _0x12d060=_0x18dff1;if(S(_0x4fa730)!=_0x12d060(0x9e)||!_0x4fa730)return _0x4fa730;var _0x11fbe7=_0x4fa730[Symbol[_0x12d060(0x130)]];if(_0x11fbe7!==void 0x0){var _0x159733=_0x11fbe7['call'](_0x4fa730,_0x1295b9||_0x12d060(0xc1));if(S(_0x159733)!=_0x12d060(0x9e))return _0x159733;throw TypeError(_0x12d060(0xb4));}return(_0x1295b9===_0x12d060(0xcd)?String:Number)(_0x4fa730);}function we(_0x13f33e){const _0x482884=_0x18dff1;var _0x41b163=Ce(_0x13f33e,_0x482884(0xcd));return S(_0x41b163)==_0x482884(0xf4)?_0x41b163:_0x41b163+'';}function C(_0x35d9fd,_0xa99c89,_0x2188d7){const _0x5ef9c1=_0x18dff1;return(_0xa99c89=we(_0xa99c89))in _0x35d9fd?Object[_0x5ef9c1(0xde)](_0x35d9fd,_0xa99c89,{'value':_0x2188d7,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x35d9fd[_0xa99c89]=_0x2188d7,_0x35d9fd;}var w=class extends _0x1054c6{constructor(..._0x52e58e){const _0x5440c9=_0x18dff1;super(..._0x52e58e),C(this,_0x5440c9(0xf7),new Map()),C(this,_0x5440c9(0xd1),new _0xae0c94()),C(this,_0x5440c9(0xef),this[_0x5440c9(0xd1)][_0x5440c9(0xff)]());}[_0x18dff1(0x124)](_0x2450d1,_0x5db27c){const _0x5bd05a=_0x18dff1;return y(this[_0x5bd05a(0xf7)][_0x5bd05a(0x113)](_0x2450d1))[_0x5bd05a(0xc5)][_0x5db27c];}[_0x18dff1(0xa4)](_0x4ee4f5,_0x368627,_0x460458){const _0xb6c8e4=_0x18dff1;this[_0xb6c8e4(0x107)](_0x4ee4f5,_0x368627,b(this[_0xb6c8e4(0xf7)]['get'](_0x4ee4f5),_0x368627,_0x460458));}[_0x18dff1(0xed)](_0x5b8ccf,_0x902146){const _0x1e5c59=_0x18dff1;this[_0x1e5c59(0x107)](_0x5b8ccf,_0x902146,x(this['_resources'][_0x1e5c59(0x113)](_0x5b8ccf),_0x902146));}[_0x18dff1(0x91)](_0x51fa4f){const _0x3ac8af=_0x18dff1;return y(this[_0x3ac8af(0xf7)]['get'](_0x51fa4f));}[_0x18dff1(0xb1)](_0x3f15e4,_0x25ea8a){const _0x27e158=_0x18dff1;this[_0x27e158(0xf7)][_0x27e158(0xcc)](_0x3f15e4,y(_0x25ea8a)),this[_0x27e158(0xd1)][_0x27e158(0xca)]({'unitId':_0x3f15e4});}[_0x18dff1(0x102)](_0x48279f){const _0x39ba6b=_0x18dff1;this[_0x39ba6b(0xf7)]['delete'](_0x48279f),this['_change$'][_0x39ba6b(0xca)]({'unitId':_0x48279f});}[_0x18dff1(0x131)](){const _0x40cbeb=_0x18dff1;super[_0x40cbeb(0x131)](),this[_0x40cbeb(0xf7)]['clear'](),this[_0x40cbeb(0xd1)][_0x40cbeb(0xfa)]();}['_setResource'](_0x39baf5,_0x103ce5,_0x22c4d5){const _0x5e42fa=_0x18dff1;this[_0x5e42fa(0xf7)][_0x5e42fa(0xcc)](_0x39baf5,_0x22c4d5),this['_change$'][_0x5e42fa(0xca)]({'unitId':_0x39baf5,'blockId':_0x103ce5});}};const Te={'id':_0x18dff1(0xbe),'type':_0x19903b[_0x18dff1(0x128)],'handler':(_0x8f62e8,_0x161c01)=>!(_0x161c01!=null&&_0x161c01[_0x18dff1(0xeb)])||!_0x161c01['blockId']?!0x1:(_0x8f62e8['get'](w)[_0x18dff1(0xa4)](_0x161c01[_0x18dff1(0xeb)],_0x161c01[_0x18dff1(0x99)],_0x161c01[_0x18dff1(0x100)]),!0x0)},T={'id':'docs-code.mutation.remove-config','type':_0x19903b[_0x18dff1(0x128)],'handler':(_0x4b94ce,_0x3f3091)=>!(_0x3f3091!=null&&_0x3f3091[_0x18dff1(0xeb)])||!_0x3f3091[_0x18dff1(0x99)]?!0x1:(_0x4b94ce['get'](w)[_0x18dff1(0xed)](_0x3f3091[_0x18dff1(0xeb)],_0x3f3091['blockId']),!0x0)},Ee='monospace';function _0x6b1e(_0x153d40,_0x2ef747){_0x153d40=_0x153d40-0x90;const _0x4deb27=_0x4deb();let _0x6b1e33=_0x4deb27[_0x153d40];return _0x6b1e33;}var E=class extends Error{constructor(_0x2c8326=_0x18dff1(0xc9)){super(_0x2c8326);}};function De(_0x143c2a){const _0x5f3490=_0x18dff1;var _0x608bd2;let _0x3ed6ba=O(_0x143c2a[_0x5f3490(0xe5)]),_0x3846f1=A(_0x3ed6ba),_0x3e9e20=ke(_0x143c2a[_0x5f3490(0x9f)],_0x143c2a[_0x5f3490(0xea)]),_0x5bfaed=_0x3e9e20?(_0x608bd2=_0x3846f1[_0x5f3490(0x115)])==null?void 0x0:_0x608bd2['find'](_0x269f7d=>{const _0x935603=_0x5f3490;let _0x1f06d0=_0x1a4c5b(_0x269f7d);return _0x1f06d0[_0x935603(0x9f)]===_0x3e9e20[_0x935603(0x9f)]&&_0x1f06d0[_0x935603(0xea)]===_0x3e9e20[_0x935603(0xea)];}):void 0x0,{startOffset:_0x11755d,endOffset:_0x38200f}=_0x5bfaed?_0x3e9e20:We(_0x3846f1,_0x143c2a['startOffset'],_0x143c2a['endOffset'],_0x143c2a['insertionMode']);if(!_0x5bfaed&&Ae(_0x3846f1,_0x11755d,_0x38200f))throw new E(_0x5f3490(0x104));let _0x256a2d=qe(_0x3846f1,_0x11755d,_0x38200f),_0x4baed7=(_0x5bfaed==null?void 0x0:_0x5bfaed['blockId'])??_0x143c2a[_0x5f3490(0x99)],_0x216957=b(_0x143c2a[_0x5f3490(0xee)],_0x4baed7,{...Se,..._0x143c2a['config']});if(_0x5bfaed)return _0x5bfaed[_0x5f3490(0x123)]=_0x38c014['CODE'],Oe(_0x3846f1,_0x11755d,_0x38200f),ze(_0x3846f1,_0x11755d,_0x38200f,_0x256a2d),N(_0x3846f1,_0x5bfaed),{'nextDocumentData':_0x3ed6ba,'nextMetadata':_0x216957,'cursorOffset':_0x11755d+0x1};if(_0x11755d===_0x38200f){var _0x167f0e,_0x36af6e;let _0x1405b4=''+_0x22c6c[_0x5f3490(0x11d)]+_0x22c6c[_0x5f3490(0xd6)]+_0x22c6c[_0x5f3490(0x92)];P(_0x3846f1,_0x11755d,_0x1405b4,{'paragraphs':[{'startIndex':0x1,'paragraphId':_0x591cdf(new Set((_0x167f0e=_0x3846f1[_0x5f3490(0x12e)])==null?void 0x0:_0x167f0e[_0x5f3490(0xc4)](_0x5522e6=>_0x5522e6[_0x5f3490(0xc0)]))),'paragraphStyle':Re(!0x0,!0x0,_0x256a2d)}],'blockRanges':[{'blockId':_0x4baed7,'blockType':_0x38c014[_0x5f3490(0xf6)],'startIndex':0x0,'endIndex':_0x1405b4['length']-0x1}]});let _0x41170d=(_0x36af6e=_0x3846f1[_0x5f3490(0x115)])==null?void 0x0:_0x36af6e[_0x5f3490(0x9c)](_0x45ba1e=>_0x45ba1e[_0x5f3490(0x99)]===_0x4baed7);return _0x41170d&&N(_0x3846f1,_0x41170d),{'nextDocumentData':_0x3ed6ba,'nextMetadata':_0x216957,'cursorOffset':_0x11755d+0x1};}P(_0x3846f1,_0x38200f,_0x22c6c[_0x5f3490(0x92)]),P(_0x3846f1,_0x11755d,_0x22c6c[_0x5f3490(0x11d)]),ze(_0x3846f1,_0x11755d,_0x38200f+0x1,_0x256a2d);let _0x23ae74={'blockId':_0x4baed7,'blockType':_0x38c014[_0x5f3490(0xf6)],'startIndex':_0x11755d,'endIndex':_0x38200f+0x1};return _0x3846f1[_0x5f3490(0x115)]=[..._0x3846f1['blockRanges']??[],_0x23ae74][_0x5f3490(0xdb)]((_0x499323,_0x4bd932)=>_0x499323[_0x5f3490(0xa9)]-_0x4bd932['startIndex']),N(_0x3846f1,_0x23ae74),{'nextDocumentData':_0x3ed6ba,'nextMetadata':_0x216957,'cursorOffset':_0x11755d+0x1};}function Oe(_0x1c326c,_0x1934fc,_0x3e3993){const _0x27e4ba=_0x18dff1;(_0x1c326c[_0x27e4ba(0x12e)]??[])[_0x27e4ba(0xc7)](_0x112e34=>_0x112e34[_0x27e4ba(0xa9)]>_0x1934fc&&_0x112e34[_0x27e4ba(0xa9)]<_0x3e3993)[_0x27e4ba(0xcb)](_0x15b370=>{const _0x3487a2=_0x27e4ba;let _0x160307={..._0x15b370['paragraphStyle']??{}};delete _0x160307[_0x3487a2(0x12f)],delete _0x160307['spaceBelow'],_0x15b370[_0x3487a2(0xaf)]=_0x160307;});}function ke(_0x2dc518,_0x5acdf1){const _0x3a9a1e=_0x18dff1;return _0x2dc518==null||_0x5acdf1==null||_0x2dc518===_0x5acdf1?null:{'startOffset':Math[_0x3a9a1e(0xdf)](_0x2dc518,_0x5acdf1),'endOffset':Math[_0x3a9a1e(0xb2)](_0x2dc518,_0x5acdf1)};}function Ae(_0x52013b,_0x101f38,_0x16e159){const _0x46146d=_0x18dff1;return(_0x52013b[_0x46146d(0x115)]??[])[_0x46146d(0x11c)](_0x284a70=>{let _0x1722b2=_0x1a4c5b(_0x284a70);return _0x101f38===_0x16e159?_0x437273(_0x1722b2,_0x101f38):_0x8f659c(_0x1722b2,{'startOffset':_0x101f38,'endOffset':_0x16e159});});}function je(_0x791a6){const _0x3c4b37=_0x18dff1;return{'nextDocumentData':O(_0x791a6[_0x3c4b37(0xe5)]),'nextMetadata':b(_0x791a6['metadata'],_0x791a6[_0x3c4b37(0x99)],_0x791a6['config']),'cursorOffset':0x0};}function D(_0x54fa40){const _0x22797a=_0x18dff1;let _0x11a990=O(_0x54fa40[_0x22797a(0xe5)]),_0x18b55b=A(_0x11a990),_0x146f82=Fe(_0x18b55b,_0x54fa40['blockId']);if(!_0x146f82)return null;let _0xcf800=He(_0x18b55b,_0x146f82);return{'nextDocumentData':_0x11a990,'nextMetadata':x(_0x54fa40[_0x22797a(0xee)],_0x54fa40[_0x22797a(0x99)]),'cursorOffset':_0xcf800};}function Me(_0x39f795){const _0x201cfb=_0x18dff1;var _0x9f1e1;let _0x1fb8ae=O(_0x39f795[_0x201cfb(0xe5)]),_0x20ed79=A(_0x1fb8ae),_0x370d57=Fe(_0x20ed79,_0x39f795[_0x201cfb(0x99)]);if(!_0x370d57)return null;let _0x32442c=_0x1a4c5b(_0x370d57);return F(_0x20ed79,_0x32442c[_0x201cfb(0x9f)],_0x32442c['endOffset']),_0x20ed79[_0x201cfb(0x115)]=(_0x9f1e1=_0x20ed79['blockRanges'])==null?void 0x0:_0x9f1e1['filter'](_0x2a2bda=>_0x2a2bda[_0x201cfb(0x99)]!==_0x39f795[_0x201cfb(0x99)]),{'nextDocumentData':_0x1fb8ae,'nextMetadata':x(_0x39f795[_0x201cfb(0xee)],_0x39f795[_0x201cfb(0x99)]),'cursorOffset':_0x370d57[_0x201cfb(0xa9)]};}function Ne(_0x57da65){const _0x5549a3=_0x18dff1;let _0x40bb25=O(_0x57da65[_0x5549a3(0xe5)]),_0x3d4725=A(_0x40bb25),_0x866c28=Le(_0x3d4725,_0x57da65['cursorOffset']);return _0x866c28&&Pe(_0x40bb25,_0x3d4725,_0x866c28,_0x57da65[_0x5549a3(0xa3)],_0x57da65[_0x5549a3(0xb6)])||null;}function Pe(_0x2c3ead,_0x457f5e,_0x5cfee7,_0x54b1aa,_0x5b737c){const _0x3b4077=_0x18dff1;let _0x318bc9=$e(_0x457f5e,_0x5cfee7,_0x54b1aa,_0x5b737c);if(!_0x318bc9)return null;let _0x4ef68b=_0x318bc9[_0x3b4077(0xd9)]-0x1;return F(_0x457f5e,_0x318bc9[_0x3b4077(0xda)][_0x3b4077(0xa9)],_0x318bc9['paragraph'][_0x3b4077(0xa9)]+0x1),{'nextDocumentData':_0x2c3ead,'cursorOffset':_0x4ef68b};}function Fe(_0x41a23a,_0x455125){const _0x262219=_0x18dff1;var _0x12a5db;return _0x41a23a==null||(_0x12a5db=_0x41a23a[_0x262219(0x115)])==null?void 0x0:_0x12a5db['find'](_0x430cf3=>_0x430cf3['blockType']===_0x38c014[_0x262219(0xf6)]&&_0x430cf3[_0x262219(0x99)]===_0x455125);}function Ie(_0x43475c){const _0x4fe8b3=_0x18dff1;let _0x133f67=_0x43475c[_0x4fe8b3(0xe5)][_0x4fe8b3(0xf1)];if(!_0x133f67)return!0x1;let _0x338981=_0x43475c[_0x4fe8b3(0x9d)]==='left'?_0x43475c[_0x4fe8b3(0xa3)]-0x1:_0x43475c[_0x4fe8b3(0xa3)],_0x3f27b7=_0x43475c[_0x4fe8b3(0x9d)]===_0x4fe8b3(0xe3)?_0x43475c['cursorOffset']+0x1:_0x338981;return(_0x133f67['blockRanges']??[])[_0x4fe8b3(0x11c)](_0x8055ec=>_0x8055ec[_0x4fe8b3(0x123)]===_0x38c014[_0x4fe8b3(0xf6)]?_0x338981===_0x8055ec[_0x4fe8b3(0xa9)]||_0x338981===_0x8055ec['endIndex']||_0x3f27b7===_0x8055ec[_0x4fe8b3(0xa9)]||_0x3f27b7===_0x8055ec[_0x4fe8b3(0x114)]:!0x1);}function Le(_0x4e8794,_0x23044a){var _0x19c57f;return(_0x19c57f=_0x4e8794['blockRanges'])==null?void 0x0:_0x19c57f['find'](_0x490459=>{const _0x1dc33f=_0x6b1e;let _0x4b5048=M(_0x490459);return _0x490459['blockType']===_0x38c014[_0x1dc33f(0xf6)]&&_0x490459[_0x1dc33f(0xa9)]<=_0x23044a&&_0x23044a<=_0x4b5048+0x2;});}function Re(_0x1b8d73,_0x1323a6,_0x19d033=!0x1){const _0x1b4920=_0x18dff1;return{'indentEnd':{'v':0x14},'indentStart':{'v':0x14},'keepLines':_0x1d2318[_0x1b4920(0xd5)],'keepNext':_0x1323a6?_0x1d2318[_0x1b4920(0x96)]:_0x1d2318[_0x1b4920(0xd5)],'widowControl':_0x1d2318['TRUE'],..._0x1b8d73&&_0x19d033?{'spaceAbove':{'v':0x8}}:{},'textStyle':{'ff':Ee,'fs':0xc}};}function ze(_0x5183a2,_0x4a8afe,_0x1538c7,_0x3c935a=!0x1){const _0x517481=_0x18dff1;let _0x783f52=(_0x5183a2[_0x517481(0x12e)]??[])[_0x517481(0xc7)](_0x440c8a=>_0x440c8a['startIndex']>_0x4a8afe&&_0x440c8a['startIndex']<_0x1538c7);_0x783f52[_0x517481(0xcb)]((_0x5210ce,_0x12f12d)=>{const _0x13a107=_0x517481;_0x5210ce[_0x13a107(0xaf)]={..._0x5210ce['paragraphStyle']??{},...Re(_0x12f12d===0x0,_0x12f12d===_0x783f52[_0x13a107(0xfe)]-0x1,_0x3c935a)};});}function Be(_0x317ef0){const _0x561e2f=_0x18dff1;var _0x11a0d9,_0x268f41;let _0x325d5d={..._0x317ef0??{}};return delete _0x325d5d[_0x561e2f(0x12d)],delete _0x325d5d[_0x561e2f(0x10b)],delete _0x325d5d[_0x561e2f(0x12f)],delete _0x325d5d['spaceBelow'],delete _0x325d5d[_0x561e2f(0xe7)],delete _0x325d5d['keepNext'],delete _0x325d5d['widowControl'],((_0x11a0d9=_0x325d5d['textStyle'])==null?void 0x0:_0x11a0d9['ff'])===Ee&&((_0x268f41=_0x325d5d[_0x561e2f(0xe0)])==null?void 0x0:_0x268f41['fs'])===0xc&&delete _0x325d5d['textStyle'],_0x325d5d;}function Ve(_0x482e5f,_0x72cb52){const _0x533da0=_0x18dff1;let _0x45b2e9=M(_0x72cb52);return(_0x482e5f[_0x533da0(0x12e)]??[])[_0x533da0(0xc7)](_0x374796=>_0x374796[_0x533da0(0xa9)]>_0x72cb52['startIndex']&&_0x374796['startIndex']<_0x45b2e9);}function He(_0x5ea561,_0x2e6a2f){const _0xb7ddb4=_0x18dff1;var _0x58faea;let _0x369cc3=M(_0x2e6a2f);return Ve(_0x5ea561,_0x2e6a2f)[_0xb7ddb4(0xcb)](_0x3e11c4=>{const _0x57ccb7=_0xb7ddb4;_0x3e11c4[_0x57ccb7(0xaf)]=Be(_0x3e11c4[_0x57ccb7(0xaf)]);}),F(_0x5ea561,_0x369cc3,_0x369cc3+0x1),F(_0x5ea561,_0x2e6a2f[_0xb7ddb4(0xa9)],_0x2e6a2f[_0xb7ddb4(0xa9)]+0x1),_0x5ea561[_0xb7ddb4(0x115)]=(_0x58faea=_0x5ea561[_0xb7ddb4(0x115)])==null?void 0x0:_0x58faea[_0xb7ddb4(0xc7)](_0x1bdfea=>_0x1bdfea[_0xb7ddb4(0x99)]!==_0x2e6a2f['blockId']),_0x2e6a2f[_0xb7ddb4(0xa9)];}function O(_0x31204d){const _0x303ae8=_0x18dff1;return{..._0x31204d,'body':_0x31204d['body']?Ue(_0x31204d[_0x303ae8(0xf1)]):_0x31204d['body']};}function Ue(_0x3621c3){const _0x1fa514=_0x18dff1;var _0x29b880,_0x173f1a,_0x315aa1,_0x2decf1,_0x46a988,_0x394415,_0xc23db8,_0x5c12d8,_0x24fed0;return{..._0x3621c3,'paragraphs':(_0x29b880=_0x3621c3[_0x1fa514(0x12e)])==null?void 0x0:_0x29b880['map'](_0x65324f=>({..._0x65324f,'bullet':k(_0x65324f[_0x1fa514(0x12a)]),'paragraphStyle':k(_0x65324f['paragraphStyle'])})),'sectionBreaks':(_0x173f1a=_0x3621c3['sectionBreaks'])==null?void 0x0:_0x173f1a[_0x1fa514(0xc4)](_0x47f335=>({..._0x47f335})),'textRuns':(_0x315aa1=_0x3621c3['textRuns'])==null?void 0x0:_0x315aa1[_0x1fa514(0xc4)](_0x5ee6de=>({..._0x5ee6de})),'tables':(_0x2decf1=_0x3621c3[_0x1fa514(0x127)])==null?void 0x0:_0x2decf1[_0x1fa514(0xc4)](_0x4c02c2=>({..._0x4c02c2})),'columnGroups':(_0x46a988=_0x3621c3[_0x1fa514(0xa2)])==null?void 0x0:_0x46a988['map'](_0x22bbb0=>{const _0x22fb92=_0x1fa514;var _0x3b2b80;return{..._0x22bbb0,'columns':(_0x3b2b80=_0x22bbb0['columns'])==null?void 0x0:_0x3b2b80[_0x22fb92(0xc4)](_0x575c15=>k(_0x575c15))};}),'blockRanges':(_0x394415=_0x3621c3['blockRanges'])==null?void 0x0:_0x394415[_0x1fa514(0xc4)](_0x1a8c08=>({..._0x1a8c08})),'customRanges':(_0xc23db8=_0x3621c3['customRanges'])==null?void 0x0:_0xc23db8['map'](_0x44758f=>({..._0x44758f})),'customDecorations':(_0x5c12d8=_0x3621c3[_0x1fa514(0xf2)])==null?void 0x0:_0x5c12d8[_0x1fa514(0xc4)](_0x5441e3=>({..._0x5441e3})),'customBlocks':(_0x24fed0=_0x3621c3[_0x1fa514(0x93)])==null?void 0x0:_0x24fed0[_0x1fa514(0xc4)](_0x257fcf=>({..._0x257fcf}))};}function _0x4deb(){const _0x17c9fb=['getUnitId','3753FEXNft','docs-code.command.remove','176xDRHSC','docs-code.command.update','get','endIndex','blockRanges','customRanges','every','_resourceManagerService','setConfig','version','1605616LqkRXW','some','BLOCK_START','pluginName','keys','startTokenOffset','slice','disposeWithMe','blockType','getCodeConfig','insertionMode','nextMetadata','tables','MUTATION','replaceDocRanges','bullet','prototype','entries','indentEnd','paragraphs','spaceAbove','toPrimitive','dispose','COMMAND','serialize','BLOCK_END','customBlocks','compose','reduce','FALSE','convert-paragraph','previousDocumentData','blockId','getInstance','isArray','find','direction','object','startOffset','delete','5161548AFEUep','columnGroups','cursorOffset','setCodeConfig','@univerjs-pro/docs-code','getSnapshot','start','push','startIndex','48LpPKfP','_config','_initResource','textRuns','model','paragraphStyle','registerPluginResource','deserialize','max','1580kJiKRs','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','replaceOp','paragraphStartIndex','nextDocumentData','TABLE_CELL_START','docs-code.command.insert','iterator','selectionManager','syncExecuteCommand','insertOp','docs-code.mutation.set-config','deleteLength','paragraphId','default','insert-new','commandService','map','codes','getBody','filter','getUnit','Insert\x20range\x20cannot\x20cross\x20table\x20cell\x20boundaries','next','forEach','set','string','getCurrentUnitOfType','_commandService','getOwnPropertyDescriptor','_change$','onStarting','docs-code.config','DOC_CODE_PLUGIN','TRUE','PARAGRAPH','7188jIjLWQ','1439552RXdVUC','endTokenOffset','paragraph','sort','range','TABLE_CELL_END','defineProperty','min','textStyle','dataStream','add','right','_docsCodeModel','documentData','type','keepLines','insert','stringify','endOffset','unitId','sectionBreaks','removeCode','metadata','change$','697950TSJSak','body','customDecorations','_configService','symbol','4206789YXoere','CODE','_resources','SECTION_BREAK','getTextRanges','complete','UNIVER_DOC','docs-code.command.consume-boundary-delete','from','length','asObservable','config','removeOp','removeUnit','insertLength','Insert\x20range\x20cannot\x20overlap\x20an\x20existing\x20document\x20block','_injector','Document\x20body\x20is\x20required','_setResource','3VOMLyn','decorate','docs-code.command.cancel-empty-paragraph','indentStart','javascript','docs-code.command.exit'];_0x4deb=function(){return _0x17c9fb;};return _0x4deb();}function k(_0x11d0c0){const _0x212b29=_0x18dff1;return Array[_0x212b29(0x9b)](_0x11d0c0)?_0x11d0c0['map'](_0x5d3b82=>k(_0x5d3b82)):!_0x11d0c0||typeof _0x11d0c0!='object'?_0x11d0c0:Object['fromEntries'](Object[_0x212b29(0x12c)](_0x11d0c0)['map'](([_0x3b3801,_0x4e95a7])=>[_0x3b3801,k(_0x4e95a7)]));}function A(_0x2dc12e){const _0x515225=_0x18dff1;if(!_0x2dc12e[_0x515225(0xf1)])throw Error(_0x515225(0x106));return _0x2dc12e[_0x515225(0xf1)];}function We(_0x5a027c,_0x328aeb,_0x5e65b1,_0xcfe149=_0x18dff1(0x97)){const _0x3ee415=_0x18dff1;if(_0x328aeb==null||_0x5e65b1==null){let _0x43d673=Ke(_0x5a027c);return{'startOffset':_0x43d673,'endOffset':_0x43d673};}let _0x25fd66=Math[_0x3ee415(0xdf)](_0x328aeb,_0x5e65b1),_0x5a164e=Math['max'](_0x328aeb,_0x5e65b1),_0x9fff8d=Ze(_0x5a027c,_0x25fd66,_0x5a164e);return _0x25fd66===_0x5a164e?_0xcfe149===_0x3ee415(0xc2)?{'startOffset':_0x25fd66,'endOffset':_0x5a164e}:Ge(_0x5a027c,_0x25fd66,_0x9fff8d):Je(_0x5a027c,_0x25fd66,_0x5a164e,_0x9fff8d);}function Ge(_0x5cde17,_0x52822b,_0x509935){const _0x8715b2=_0x18dff1;let _0x594f1a=Ye(_0x5cde17,_0x52822b);if(_0x594f1a){let _0x2eae89=j(_0x5cde17,_0x594f1a,_0x509935);if(_0x2eae89<_0x594f1a[_0x8715b2(0xa9)])return{'startOffset':_0x2eae89,'endOffset':_0x509935?Math['min'](_0x594f1a[_0x8715b2(0xa9)]+0x1,_0x509935['endOffset']):_0x594f1a[_0x8715b2(0xa9)]+0x1};}let _0x16d409=_0x52822b===0x0&&_0x5cde17[_0x8715b2(0xe1)][0x0]===_0x22c6c[_0x8715b2(0xd6)]?0x1:_0x52822b;return{'startOffset':_0x16d409,'endOffset':_0x16d409};}function Ke(_0xb998b3){const _0x16af27=_0x18dff1;return _0xb998b3[_0x16af27(0xe1)]['endsWith'](_0x22c6c['SECTION_BREAK'])?Math[_0x16af27(0xb2)](0x0,_0xb998b3[_0x16af27(0xe1)][_0x16af27(0xfe)]-0x1):_0xb998b3[_0x16af27(0xe1)]['length'];}function qe(_0x417c67,_0x191082,_0x4834df){const _0x1ea7f0=_0x18dff1;var _0x190c1f;let _0x1333ce=Math[_0x1ea7f0(0xdf)](_0x191082,_0x4834df),_0x460a3c=Math[_0x1ea7f0(0xb2)](_0x191082,_0x4834df);return!!((_0x190c1f=_0x417c67['tables'])!=null&&_0x190c1f['some'](_0x2f6172=>_0x1333ce>_0x2f6172[_0x1ea7f0(0xa9)]&&_0x1333ce<_0x2f6172['endIndex']||_0x460a3c>_0x2f6172[_0x1ea7f0(0xa9)]&&_0x460a3c<_0x2f6172['endIndex']||_0x1333ce<=_0x2f6172[_0x1ea7f0(0xa9)]&&_0x460a3c>=_0x2f6172[_0x1ea7f0(0x114)]));}function Je(_0x50b576,_0x20e6b2,_0x4777fb,_0x37714a){const _0x4f94ec=_0x18dff1;let _0x28623e=[..._0x50b576[_0x4f94ec(0x12e)]??[]][_0x4f94ec(0xdb)]((_0x288a61,_0x506b88)=>_0x288a61[_0x4f94ec(0xa9)]-_0x506b88[_0x4f94ec(0xa9)]),_0x11e22f=_0x52d57d(_0x50b576),_0x4e39a6=_0x28623e[_0x4f94ec(0x9c)](_0x5a1a9f=>j(_0x50b576,_0x5a1a9f,_0x37714a,_0x11e22f)<=_0x20e6b2&&_0x20e6b2<=_0x5a1a9f[_0x4f94ec(0xa9)]),_0x21fca6=_0x28623e[_0x4f94ec(0x9c)](_0x322524=>_0x322524[_0x4f94ec(0xa9)]>=_0x4777fb-0x1)??_0x28623e[_0x28623e[_0x4f94ec(0xfe)]-0x1];return{'startOffset':_0x4e39a6?j(_0x50b576,_0x4e39a6,_0x37714a,_0x11e22f):_0x20e6b2,'endOffset':_0x21fca6?Xe(_0x21fca6,_0x37714a):_0x4777fb};}function Ye(_0xa35e5a,_0x4a4233){const _0x1044e9=_0x18dff1;let _0xdb0529=[..._0xa35e5a['paragraphs']??[]]['sort']((_0x5bab38,_0x3382af)=>_0x5bab38[_0x1044e9(0xa9)]-_0x3382af[_0x1044e9(0xa9)]),_0x573d14=_0x52d57d(_0xa35e5a);return _0xdb0529[_0x1044e9(0x9c)](_0x3e88e6=>(_0x573d14[_0x1044e9(0x113)](_0x3e88e6[_0x1044e9(0xa9)])??0x0)<=_0x4a4233&&_0x4a4233<=_0x3e88e6[_0x1044e9(0xa9)]);}function j(_0x115ab3,_0xdb56c2,_0xe4dfed,_0x906d74){const _0x3fe5b8=_0x18dff1;let _0x81d024=(_0x906d74==null?void 0x0:_0x906d74['get'](_0xdb56c2['startIndex']))??_0x13bc7e(_0x115ab3,_0xdb56c2);return _0xe4dfed?Math[_0x3fe5b8(0xb2)](_0x81d024,_0xe4dfed[_0x3fe5b8(0x9f)]):_0x81d024;}function Xe(_0x2b3c02,_0x34e0b3){const _0x3edb9b=_0x18dff1;let _0x4d2c3e=_0x2b3c02[_0x3edb9b(0xa9)]+0x1;return _0x34e0b3?Math[_0x3edb9b(0xdf)](_0x4d2c3e,_0x34e0b3[_0x3edb9b(0xea)]):_0x4d2c3e;}function Ze(_0x3d8832,_0x4ae807,_0x14862c){const _0x5c1254=_0x18dff1;let _0x5decb3=Qe(_0x3d8832,_0x4ae807),_0x9dbff5=Qe(_0x3d8832,_0x4ae807===_0x14862c?_0x14862c:Math[_0x5c1254(0xb2)](_0x4ae807,_0x14862c-0x1));if(_0x5decb3||_0x9dbff5){if(!_0x5decb3||!_0x9dbff5||_0x5decb3[_0x5c1254(0x120)]!==_0x9dbff5[_0x5c1254(0x120)]||_0x5decb3['endTokenOffset']!==_0x9dbff5[_0x5c1254(0xd9)])throw new E();return _0x5decb3;}}function Qe(_0x1ddf10,_0x34e1cc){const _0x474022=_0x18dff1;let _0x4dea39=_0x1ddf10[_0x474022(0xe1)],_0x8f0edb=-0x1;for(let _0x706ceb=Math['min'](_0x34e1cc,_0x4dea39[_0x474022(0xfe)]-0x1);_0x706ceb>=0x0;_0x706ceb--){let _0x52f76f=_0x4dea39[_0x706ceb];if(_0x52f76f===_0x22c6c[_0x474022(0xdd)])return;if(_0x52f76f===_0x22c6c[_0x474022(0xb8)]){_0x8f0edb=_0x706ceb;break;}}if(_0x8f0edb<0x0)return;let _0x2f0cfe=_0x4dea39['indexOf'](_0x22c6c['TABLE_CELL_END'],_0x8f0edb+0x1);if(!(_0x2f0cfe<0x0||_0x34e1cc<_0x8f0edb+0x1||_0x34e1cc>_0x2f0cfe-0x1))return{'startOffset':_0x8f0edb+0x1,'endOffset':Math[_0x474022(0xb2)](_0x8f0edb+0x1,_0x2f0cfe-0x1),'startTokenOffset':_0x8f0edb,'endTokenOffset':_0x2f0cfe};}function M(_0x43a719){const _0x59e5c3=_0x18dff1;return _0x1a4c5b(_0x43a719)[_0x59e5c3(0xea)]-0x1;}function $e(_0x15426c,_0x4b9a85,_0x5a8293,_0xf42b62){const _0x1bea51=_0x18dff1;let _0x10f16c=M(_0x4b9a85),_0x29833f=(_0x15426c[_0x1bea51(0x12e)]??[])[_0x1bea51(0x9c)](_0x8abcef=>_0x8abcef[_0x1bea51(0xa9)]===_0x10f16c+0x1);if(!_0x29833f||_0xf42b62!=null&&_0x29833f[_0x1bea51(0xa9)]!==_0xf42b62||_0x5a8293!=null&&(_0x5a8293<_0x10f16c||_0x5a8293>_0x29833f['startIndex']+0x1)||_0x15426c[_0x1bea51(0xe1)][_0x29833f[_0x1bea51(0xa9)]]!==_0x22c6c[_0x1bea51(0xd6)])return null;let _0x944701=_0x13bc7e(_0x15426c,_0x29833f),_0x22186b=_0x15426c['dataStream']['slice'](_0x944701,_0x29833f['startIndex']);return Array[_0x1bea51(0xfd)](_0x22186b)[_0x1bea51(0x117)](_0x34dd16=>_0x34dd16===_0x22c6c[_0x1bea51(0x92)])?{'paragraph':_0x29833f,'endTokenOffset':_0x10f16c}:null;}function N(_0x3b5005,_0x9e39c6){const _0xd8cbdf=_0x18dff1;var _0x346356;let _0x5b1f87=M(_0x9e39c6),_0x127f26=_0x3b5005[_0xd8cbdf(0xe1)][_0x5b1f87+0x1];(_0x127f26===_0x22c6c[_0xd8cbdf(0xf8)]||_0x127f26===void 0x0)&&P(_0x3b5005,_0x5b1f87+0x1,_0x22c6c[_0xd8cbdf(0xd6)],{'paragraphs':[{'startIndex':0x0,'paragraphId':_0x591cdf(new Set((_0x346356=_0x3b5005['paragraphs'])==null?void 0x0:_0x346356[_0xd8cbdf(0xc4)](_0x1e2018=>_0x1e2018[_0xd8cbdf(0xc0)])))}]});}function P(_0x312a0f,_0x169115,_0xd6bd58,_0x4ce5f7={}){const _0x3d4d05=_0x18dff1;var _0x1b7e00,_0x2c1b42;_0xd6bd58&&(_0x312a0f['dataStream']=''+_0x312a0f[_0x3d4d05(0xe1)][_0x3d4d05(0x121)](0x0,_0x169115)+_0xd6bd58+_0x312a0f[_0x3d4d05(0xe1)][_0x3d4d05(0x121)](_0x169115),et(_0x312a0f,_0x169115,_0xd6bd58[_0x3d4d05(0xfe)]),(_0x1b7e00=_0x4ce5f7[_0x3d4d05(0x12e)])!=null&&_0x1b7e00[_0x3d4d05(0xfe)]&&(_0x312a0f[_0x3d4d05(0x12e)]=[..._0x312a0f[_0x3d4d05(0x12e)]??[],..._0x4ce5f7[_0x3d4d05(0x12e)]['map'](_0x59aa10=>({..._0x59aa10,'startIndex':_0x59aa10['startIndex']+_0x169115}))]['sort']((_0x46ffc6,_0x171106)=>_0x46ffc6[_0x3d4d05(0xa9)]-_0x171106['startIndex'])),(_0x2c1b42=_0x4ce5f7['blockRanges'])!=null&&_0x2c1b42[_0x3d4d05(0xfe)]&&(_0x312a0f[_0x3d4d05(0x115)]=[..._0x312a0f[_0x3d4d05(0x115)]??[],..._0x4ce5f7['blockRanges'][_0x3d4d05(0xc4)](_0x1c6019=>({..._0x1c6019,'startIndex':_0x1c6019[_0x3d4d05(0xa9)]+_0x169115,'endIndex':_0x1c6019[_0x3d4d05(0x114)]+_0x169115}))][_0x3d4d05(0xdb)]((_0x2d7fff,_0x3d0f4b)=>_0x2d7fff[_0x3d4d05(0xa9)]-_0x3d0f4b[_0x3d4d05(0xa9)])));}function F(_0x4e11f3,_0x327042,_0x527597){const _0x133d3d=_0x18dff1;let _0x10da1a=_0x527597-_0x327042;_0x4e11f3[_0x133d3d(0xe1)]=''+_0x4e11f3[_0x133d3d(0xe1)][_0x133d3d(0x121)](0x0,_0x327042)+_0x4e11f3['dataStream'][_0x133d3d(0x121)](_0x527597),tt(_0x4e11f3,_0x327042,_0x10da1a);}function et(_0x5165a3,_0x22992d,_0x5de020){const _0x58201a=_0x18dff1;_0x5165a3[_0x58201a(0x12e)]=I(_0x5165a3[_0x58201a(0x12e)],_0x22992d,_0x5de020),_0x5165a3['sectionBreaks']=I(_0x5165a3[_0x58201a(0xec)],_0x22992d,_0x5de020),_0x5165a3[_0x58201a(0x93)]=I(_0x5165a3[_0x58201a(0x93)],_0x22992d,_0x5de020),_0x5165a3['textRuns']=nt(_0x5165a3['textRuns'],_0x22992d,_0x5de020),_0x5165a3[_0x58201a(0x127)]=rt(_0x5165a3['tables'],_0x22992d,_0x5de020),_0x5165a3[_0x58201a(0xa2)]=R(_0x5165a3[_0x58201a(0xa2)],_0x22992d,_0x5de020),_0x5165a3['customRanges']=R(_0x5165a3[_0x58201a(0x116)],_0x22992d,_0x5de020),_0x5165a3[_0x58201a(0xf2)]=R(_0x5165a3[_0x58201a(0xf2)],_0x22992d,_0x5de020),_0x5165a3['blockRanges']=R(_0x5165a3[_0x58201a(0x115)],_0x22992d,_0x5de020);}function tt(_0x1b5d14,_0x45f98f,_0x38f1e8){const _0x2d8243=_0x18dff1;var _0x14c5b4,_0x54fad2;_0x1b5d14['paragraphs']=L(_0x1b5d14['paragraphs'],_0x45f98f,_0x38f1e8),_0x1b5d14[_0x2d8243(0xec)]=L(_0x1b5d14[_0x2d8243(0xec)],_0x45f98f,_0x38f1e8),_0x1b5d14[_0x2d8243(0x93)]=L(_0x1b5d14[_0x2d8243(0x93)],_0x45f98f,_0x38f1e8),_0x1b5d14[_0x2d8243(0xad)]=(_0x14c5b4=it((_0x54fad2=_0x1b5d14[_0x2d8243(0xad)])==null?void 0x0:_0x54fad2['map'](_0x4c28b1=>({..._0x4c28b1,'startIndex':_0x4c28b1['st'],'endIndex':_0x4c28b1['ed']})),_0x45f98f,_0x38f1e8))==null?void 0x0:_0x14c5b4[_0x2d8243(0xc4)](_0x25c664=>{let {startIndex:_0x231333,endIndex:_0x4a7610,..._0x51d6cc}=_0x25c664;return{..._0x51d6cc,'st':_0x231333,'ed':_0x4a7610};}),_0x1b5d14['tables']=it(_0x1b5d14['tables'],_0x45f98f,_0x38f1e8),_0x1b5d14['columnGroups']=z(_0x1b5d14[_0x2d8243(0xa2)],_0x45f98f,_0x38f1e8),_0x1b5d14[_0x2d8243(0x116)]=z(_0x1b5d14[_0x2d8243(0x116)],_0x45f98f,_0x38f1e8),_0x1b5d14[_0x2d8243(0xf2)]=z(_0x1b5d14[_0x2d8243(0xf2)],_0x45f98f,_0x38f1e8),_0x1b5d14[_0x2d8243(0x115)]=z(_0x1b5d14[_0x2d8243(0x115)],_0x45f98f,_0x38f1e8);}function I(_0x158761,_0x4d5be9,_0xaff68f){const _0x37bf73=_0x18dff1;return _0x158761==null?void 0x0:_0x158761[_0x37bf73(0xc4)](_0x545cd8=>_0x545cd8[_0x37bf73(0xa9)]>=_0x4d5be9?{..._0x545cd8,'startIndex':_0x545cd8[_0x37bf73(0xa9)]+_0xaff68f}:_0x545cd8);}function L(_0x32ab88,_0x220ae7,_0x3c90a4){const _0x31dcc8=_0x18dff1;let _0x36505f=_0x220ae7+_0x3c90a4;return _0x32ab88==null?void 0x0:_0x32ab88['map'](_0x52b41f=>_0x52b41f[_0x31dcc8(0xa9)]>=_0x220ae7&&_0x52b41f['startIndex']<_0x36505f?null:_0x52b41f[_0x31dcc8(0xa9)]>=_0x36505f?{..._0x52b41f,'startIndex':_0x52b41f['startIndex']-_0x3c90a4}:_0x52b41f)[_0x31dcc8(0xc7)](_0x3ca6f8=>_0x3ca6f8!=null);}function nt(_0x43d7c5,_0x3e4715,_0x57e227){return _0x43d7c5==null?void 0x0:_0x43d7c5['map'](_0x2b2bbc=>_0x2b2bbc['st']>=_0x3e4715?{..._0x2b2bbc,'st':_0x2b2bbc['st']+_0x57e227,'ed':_0x2b2bbc['ed']+_0x57e227}:_0x2b2bbc['ed']>_0x3e4715?{..._0x2b2bbc,'ed':_0x2b2bbc['ed']+_0x57e227}:_0x2b2bbc);}function R(_0x55fc6d,_0x5bd16e,_0xf8233){return _0x55fc6d==null?void 0x0:_0x55fc6d['map'](_0x533e04=>_0x221047(_0x533e04,_0x5bd16e,_0xf8233));}function rt(_0xad487b,_0x463962,_0x2d32d9){const _0x559c2c=_0x18dff1;return _0xad487b==null?void 0x0:_0xad487b[_0x559c2c(0xc4)](_0x477eef=>_0x1b7ff4(_0x477eef,_0x463962,_0x2d32d9));}function z(_0x5e3d44,_0x11f2ff,_0x35b5c3){return _0x5e3d44==null?void 0x0:_0x5e3d44['map'](_0x390772=>_0x3a1df5(_0x390772,_0x11f2ff,_0x35b5c3))['filter'](_0x54c30=>_0x54c30!=null);}function it(_0x6a4362,_0x459eca,_0x34d9f4){const _0x5a8b6e=_0x18dff1;return _0x6a4362==null?void 0x0:_0x6a4362[_0x5a8b6e(0xc4)](_0x5908e9=>_0x474e7c(_0x5908e9,_0x459eca,_0x34d9f4))[_0x5a8b6e(0xc7)](_0x1cca62=>_0x1cca62!=null);}const at={'id':'docs-code.command.insert-below','type':_0x19903b[_0x18dff1(0x90)],'handler':_0x2c39b2=>{const _0x43be42=_0x18dff1;var _0x36dd7d;if(_0x381bc1(G(_0x2c39b2)))return!0x1;let _0xec2ee5=_0xb85039(_0x2c39b2);if(_0xec2ee5)return _0x2c39b2[_0x43be42(0x113)](_0x4ed376)['syncExecuteCommand'](B['id'],{'startOffset':_0xec2ee5[_0x43be42(0x9f)],'endOffset':_0xec2ee5[_0x43be42(0xea)],'insertionMode':_0x43be42(0xc2),'unitId':_0xec2ee5[_0x43be42(0xeb)]});let _0x14b3e5=ft(_0x2c39b2);if(!_0x14b3e5)return!0x1;let _0x5f4c11=(_0x36dd7d=_0x2c39b2[_0x43be42(0x113)](_0x2ee2bc)[_0x43be42(0xce)](_0x8cc94f['UNIVER_DOC']))==null?void 0x0:_0x36dd7d[_0x43be42(0xc6)](),_0x128ea4=_0x5f4c11?_0x2c7394(_0x5f4c11,_0x14b3e5):_0x14b3e5['startIndex']+0x1;return _0x2c39b2['get'](_0x4ed376)[_0x43be42(0xbc)](B['id'],{'startOffset':_0x128ea4,'endOffset':_0x128ea4});}},ot={'id':_0x18dff1(0xfc),'type':_0x19903b['COMMAND'],'handler':()=>!0x0},B={'id':_0x18dff1(0xb9),'type':_0x19903b[_0x18dff1(0x90)],'handler':(_0x4f2d7f,_0x1d705f)=>{const _0x3f15de=_0x18dff1;let _0x59df34=W(_0x4f2d7f,_0x1d705f==null?void 0x0:_0x1d705f[_0x3f15de(0xeb)]);if(!_0x59df34)return!0x1;let _0xb55c80=G(_0x4f2d7f);if(_0x381bc1(_0xb55c80))return!0x1;let _0x1ae474=_0x59df34[_0x3f15de(0xae)][_0x3f15de(0x91)](_0x59df34[_0x3f15de(0xeb)]),_0x775b02=lt(_0x1d705f,_0xb55c80),_0x393a25=ut(_0x59df34['previousDocumentData'],_0x775b02);if(_0x393a25){if(_0x393a25['blockType']!==_0x38c014[_0x3f15de(0xf6)])return!0x1;let _0x2007c3=D({'blockId':_0x393a25['blockId'],'documentData':_0x59df34[_0x3f15de(0x98)],'metadata':_0x1ae474});if(!_0x2007c3)return!0x1;let _0xd65bb7=Y(_0x59df34[_0x3f15de(0xc3)],_0x59df34[_0x3f15de(0xbb)],_0x59df34['unitId'],_0x59df34['previousDocumentData'],_0x2007c3[_0x3f15de(0xb7)],B['id'],_0x2007c3[_0x3f15de(0xa3)]);return _0xd65bb7&&_0x2007c3[_0x3f15de(0x126)]&&_0x59df34[_0x3f15de(0xae)]['deserialize'](_0x59df34[_0x3f15de(0xeb)],_0x2007c3[_0x3f15de(0x126)]),_0xd65bb7;}let _0x385404=(_0x1d705f==null?void 0x0:_0x1d705f[_0x3f15de(0x99)])??_0x5c655(0x6),_0x38c23c;try{_0x38c23c=De({'blockId':_0x385404,'config':_0x1d705f==null?void 0x0:_0x1d705f[_0x3f15de(0x100)],'documentData':_0x59df34[_0x3f15de(0x98)],'endOffset':_0x775b02==null?void 0x0:_0x775b02['endOffset'],'insertionMode':_0x1d705f==null?void 0x0:_0x1d705f[_0x3f15de(0x125)],'metadata':_0x1ae474,'startOffset':_0x775b02==null?void 0x0:_0x775b02[_0x3f15de(0x9f)]});}catch(_0x707d02){if(_0x707d02 instanceof E)return!0x1;throw _0x707d02;}let _0x42e2a5=Y(_0x59df34[_0x3f15de(0xc3)],_0x59df34['selectionManager'],_0x59df34[_0x3f15de(0xeb)],_0x59df34['previousDocumentData'],_0x38c23c['nextDocumentData'],B['id'],_0x38c23c[_0x3f15de(0xa3)]);return _0x42e2a5&&_0x38c23c[_0x3f15de(0x126)]&&_0x59df34[_0x3f15de(0xae)][_0x3f15de(0xb1)](_0x59df34[_0x3f15de(0xeb)],_0x38c23c[_0x3f15de(0x126)]),_0x42e2a5;}},st={'id':_0x18dff1(0x112),'type':_0x19903b[_0x18dff1(0x90)],'handler':(_0x682877,_0x4f9c79)=>{const _0x7a0001=_0x18dff1;if(!_0x4f9c79)return!0x1;let _0x51b5a8=W(_0x682877,_0x4f9c79[_0x7a0001(0xeb)]);if(!_0x51b5a8)return!0x1;let _0x35ff59=je({'blockId':_0x4f9c79[_0x7a0001(0x99)],'config':_0x4f9c79[_0x7a0001(0x100)],'documentData':_0x51b5a8[_0x7a0001(0x98)],'metadata':_0x51b5a8['model'][_0x7a0001(0x91)](_0x51b5a8['unitId'])});return _0x35ff59[_0x7a0001(0x126)]&&_0x51b5a8[_0x7a0001(0xae)]['deserialize'](_0x51b5a8[_0x7a0001(0xeb)],_0x35ff59[_0x7a0001(0x126)]),!0x0;}},ct={'id':_0x18dff1(0x10d),'type':_0x19903b['COMMAND'],'handler':(_0x5508aa,_0x499df6)=>V['handler'](_0x5508aa,_0x499df6)},V={'id':'docs-code.command.unwrap','type':_0x19903b[_0x18dff1(0x90)],'handler':(_0x358de2,_0x3edbdc)=>{const _0x49856e=_0x18dff1;if(!_0x3edbdc)return!0x1;let _0x3c99f0=W(_0x358de2,_0x3edbdc==null?void 0x0:_0x3edbdc[_0x49856e(0xeb)]);if(!_0x3c99f0)return!0x1;let _0x589002=D({'blockId':_0x3edbdc[_0x49856e(0x99)],'documentData':_0x3c99f0[_0x49856e(0x98)],'metadata':_0x3c99f0['model'][_0x49856e(0x91)](_0x3c99f0[_0x49856e(0xeb)])});if(!_0x589002)return!0x1;let _0x1f3a84=Y(_0x3c99f0[_0x49856e(0xc3)],_0x3c99f0['selectionManager'],_0x3c99f0[_0x49856e(0xeb)],_0x3c99f0[_0x49856e(0x98)],_0x589002[_0x49856e(0xb7)],V['id'],_0x589002['cursorOffset']);return _0x1f3a84&&_0x589002['nextMetadata']&&_0x3c99f0['model'][_0x49856e(0xb1)](_0x3c99f0[_0x49856e(0xeb)],_0x589002[_0x49856e(0x126)]),_0x1f3a84;}},H={'id':_0x18dff1(0x110),'type':_0x19903b['COMMAND'],'handler':(_0x199826,_0x447e65)=>{const _0x11dabf=_0x18dff1;if(!_0x447e65)return!0x1;let _0x160fde=W(_0x199826,_0x447e65==null?void 0x0:_0x447e65[_0x11dabf(0xeb)]);if(!_0x160fde)return!0x1;let _0x230c73=Me({'blockId':_0x447e65[_0x11dabf(0x99)],'documentData':_0x160fde[_0x11dabf(0x98)],'metadata':_0x160fde[_0x11dabf(0xae)][_0x11dabf(0x91)](_0x160fde[_0x11dabf(0xeb)])});if(!_0x230c73)return!0x1;let _0x10951a=Y(_0x160fde[_0x11dabf(0xc3)],_0x160fde[_0x11dabf(0xbb)],_0x160fde[_0x11dabf(0xeb)],_0x160fde[_0x11dabf(0x98)],_0x230c73[_0x11dabf(0xb7)],H['id'],_0x230c73[_0x11dabf(0xa3)]);return _0x10951a&&_0x230c73[_0x11dabf(0x126)]&&_0x160fde[_0x11dabf(0xae)][_0x11dabf(0xb1)](_0x160fde['unitId'],_0x230c73[_0x11dabf(0x126)]),_0x10951a;}},U={'id':_0x18dff1(0x10a),'type':_0x19903b['COMMAND'],'handler':(_0x43008f,_0x46b28e)=>{const _0x605560=_0x18dff1;var _0x2ab8c5;let _0x5ac7e5=W(_0x43008f,_0x46b28e==null?void 0x0:_0x46b28e['unitId']);if(!_0x5ac7e5)return!0x1;let _0x16ecd1=(_0x46b28e==null?void 0x0:_0x46b28e[_0x605560(0xa3)])??((_0x2ab8c5=G(_0x43008f))==null?void 0x0:_0x2ab8c5[_0x605560(0x9f)]);if(_0x16ecd1==null)return!0x1;let _0x15981b=Ne({'cursorOffset':_0x16ecd1,'documentData':_0x5ac7e5[_0x605560(0x98)],'paragraphStartIndex':_0x46b28e==null?void 0x0:_0x46b28e['paragraphStartIndex']});return _0x15981b?Y(_0x5ac7e5[_0x605560(0xc3)],_0x5ac7e5['selectionManager'],_0x5ac7e5['unitId'],_0x5ac7e5[_0x605560(0x98)],_0x15981b[_0x605560(0xb7)],U['id'],_0x15981b['cursorOffset']):!0x1;}};function W(_0x27aa32,_0x189a76){const _0x51e8f4=_0x18dff1;let _0x14b273=_0x27aa32[_0x51e8f4(0x113)](_0x2ee2bc),_0x296bb1=_0x189a76?_0x14b273[_0x51e8f4(0xc8)](_0x189a76,_0x8cc94f[_0x51e8f4(0xfb)]):_0x14b273[_0x51e8f4(0xce)](_0x8cc94f['UNIVER_DOC']);return _0x296bb1?{'commandService':_0x27aa32[_0x51e8f4(0x113)](_0x4ed376),'model':_0x27aa32['get'](w),'previousDocumentData':_0x296bb1[_0x51e8f4(0xa6)](),'selectionManager':_0x27aa32[_0x51e8f4(0x113)](_0x5b762a),'unitId':_0x296bb1[_0x51e8f4(0x10e)]()}:null;}function G(_0x492f5d){const _0x1067b7=_0x18dff1;var _0x549a25;return(_0x549a25=_0x492f5d[_0x1067b7(0x113)](_0x5b762a)[_0x1067b7(0xf9)]())==null?void 0x0:_0x549a25[0x0];}function lt(_0x2271fd,_0x21ee34){const _0xc4e248=_0x18dff1;let _0x44ec7c=(_0x2271fd==null?void 0x0:_0x2271fd[_0xc4e248(0x9f)])??(_0x21ee34==null?void 0x0:_0x21ee34[_0xc4e248(0x9f)]),_0x3ba37d=(_0x2271fd==null?void 0x0:_0x2271fd[_0xc4e248(0xea)])??(_0x21ee34==null?void 0x0:_0x21ee34[_0xc4e248(0xea)]);if(_0x44ec7c!=null&&_0x3ba37d!=null)return{'endOffset':Math[_0xc4e248(0xb2)](_0x44ec7c,_0x3ba37d),'startOffset':Math[_0xc4e248(0xdf)](_0x44ec7c,_0x3ba37d)};}function ut(_0x5f1fe2,_0x23f02f){const _0x19d49d=_0x18dff1;var _0x85a0f9;if(!_0x23f02f)return;let _0xdda4e=dt(_0x23f02f);return(_0x85a0f9=_0x5f1fe2[_0x19d49d(0xf1)])==null||(_0x85a0f9=_0x85a0f9[_0x19d49d(0x115)])==null?void 0x0:_0x85a0f9[_0x19d49d(0x9c)](_0x356c06=>{const _0x2bb67a=_0x19d49d;let _0x383fa2=_0x1a4c5b(_0x356c06);return _0x23f02f[_0x2bb67a(0x9f)]===_0x23f02f[_0x2bb67a(0xea)]?_0x437273(_0x383fa2,_0xdda4e):_0x31e2f9(_0x383fa2,_0xdda4e);});}function dt(_0x641506){const _0x56873a=_0x18dff1;return _0x641506[_0x56873a(0x9f)]===_0x641506[_0x56873a(0xea)]?_0x641506['startOffset']:_0x641506[_0x56873a(0x9f)]+0x1;}function ft(_0x44e07){const _0x10b893=_0x18dff1;let _0x59e7ee=G(_0x44e07);if(!_0x59e7ee)return null;let _0x1d0591=_0x44e07[_0x10b893(0x113)](_0x2ee2bc)[_0x10b893(0xce)](_0x8cc94f[_0x10b893(0xfb)]),_0x5ea192=_0x1d0591==null?void 0x0:_0x1d0591['getBody']();return _0x5ea192?_0x855b47[_0x10b893(0xdc)]['getParagraphsInRange'](_0x59e7ee,_0x5ea192[_0x10b893(0x12e)]??[],_0x5ea192['dataStream']??'')[0x0]??null:null;}function pt(_0x463f6d,_0x3e274c){const _0x4be2a4=_0x18dff1;let _0x28c626=_0x463f6d[_0x4be2a4(0xf1)],_0x19d431=_0x3e274c[_0x4be2a4(0xf1)],_0x16da0c=_0x1b668f(_0x28c626,_0x19d431);return[_0x16da0c&&_0x19d431?mt(_0x19d431,_0x16da0c):null,_0x16da0c?null:ht(_0x28c626,_0x19d431)][_0x4be2a4(0xc7)](Boolean)[_0x4be2a4(0x95)]((_0x4f6b94,_0x2d4182)=>_0x4677ba[_0x4be2a4(0x94)](_0x4f6b94,_0x2d4182),null);}function mt(_0x3446b9,_0x7b9bce){const _0x5825a3=_0x18dff1;let _0x104c01=new _0x3f221e();return _0x104c01['retain'](_0x7b9bce[_0x5825a3(0xa7)]),_0x7b9bce[_0x5825a3(0x103)]>0x0&&_0x104c01[_0x5825a3(0xe8)](_0x7b9bce[_0x5825a3(0x103)],_0x1451b(_0x3446b9,_0x7b9bce['start'],_0x7b9bce[_0x5825a3(0xa7)]+_0x7b9bce[_0x5825a3(0x103)],!0x1)),_0x7b9bce[_0x5825a3(0xbf)]>0x0&&_0x104c01[_0x5825a3(0xa0)](_0x7b9bce[_0x5825a3(0xbf)]),_0x4677ba[_0x5825a3(0x9a)]()['editOp'](_0x104c01['serialize'](),[_0x5825a3(0xf1)]);}function ht(_0x49f4e1,_0x7fad57){const _0x401996=_0x18dff1;let _0x466811=[],_0x4fc40a=_0x49f4e1?_t(_0x49f4e1):void 0x0,_0x3f004c=_0x7fad57?_t(_0x7fad57):void 0x0;for(let _0x263ac of gt)K(_0x4677ba[_0x401996(0x9a)](),[_0x401996(0xf1),_0x263ac],_0x4fc40a==null?void 0x0:_0x4fc40a[_0x263ac],_0x3f004c==null?void 0x0:_0x3f004c[_0x263ac],_0x466811);return _0x466811['reduce']((_0x3858e7,_0x1ef5a6)=>_0x4677ba['compose'](_0x3858e7,_0x1ef5a6),null);}const gt=[_0x18dff1(0x12e),'sectionBreaks',_0x18dff1(0x127),_0x18dff1(0xa2),_0x18dff1(0x115),'customBlocks','customRanges','customDecorations',_0x18dff1(0xad)];function _t(_0x4a2aa3){return _0x4a2aa3;}function K(_0x38a3ce,_0x2291db,_0x5a9d7b,_0x3cc4da,_0x42d808){const _0x3cb519=_0x18dff1;if(!J(_0x5a9d7b,_0x3cc4da)){if(_0x5a9d7b==null){_0x42d808[_0x3cb519(0xa8)](_0x38a3ce[_0x3cb519(0xbd)](_0x2291db,_0x3cc4da));return;}if(_0x3cc4da==null){_0x42d808[_0x3cb519(0xa8)](_0x38a3ce[_0x3cb519(0x101)](_0x2291db,_0x5a9d7b));return;}if(Array[_0x3cb519(0x9b)](_0x5a9d7b)&&Array['isArray'](_0x3cc4da)){vt(_0x38a3ce,_0x2291db,_0x5a9d7b,_0x3cc4da,_0x42d808);return;}if(q(_0x5a9d7b)&&q(_0x3cc4da)){new Set([...Object[_0x3cb519(0x11f)](_0x5a9d7b),...Object[_0x3cb519(0x11f)](_0x3cc4da)])[_0x3cb519(0xcb)](_0x2a68b7=>{K(_0x38a3ce,[..._0x2291db,_0x2a68b7],_0x5a9d7b[_0x2a68b7],_0x3cc4da[_0x2a68b7],_0x42d808);});return;}_0x42d808[_0x3cb519(0xa8)](_0x38a3ce[_0x3cb519(0xb5)](_0x2291db,_0x5a9d7b,_0x3cc4da));}}function vt(_0x4b64b4,_0x2ecb24,_0x240cb8,_0x5b31d3,_0xe9110d){const _0x40d969=_0x18dff1;if(_0x240cb8['length']===_0x5b31d3['length']){_0x240cb8['forEach']((_0x184955,_0x58e21d)=>K(_0x4b64b4,[..._0x2ecb24,_0x58e21d],_0x184955,_0x5b31d3[_0x58e21d],_0xe9110d));return;}let _0x18f974=0x0;for(;_0x18f974<_0x240cb8[_0x40d969(0xfe)]&&_0x18f974<_0x5b31d3[_0x40d969(0xfe)]&&J(_0x240cb8[_0x18f974],_0x5b31d3[_0x18f974]);)_0x18f974++;let _0x140d62=_0x240cb8[_0x40d969(0xfe)]-0x1,_0x1dd3a0=_0x5b31d3[_0x40d969(0xfe)]-0x1;for(;_0x140d62>=_0x18f974&&_0x1dd3a0>=_0x18f974&&J(_0x240cb8[_0x140d62],_0x5b31d3[_0x1dd3a0]);)_0x140d62--,_0x1dd3a0--;for(let _0x5a6d16=_0x140d62;_0x5a6d16>=_0x18f974;_0x5a6d16--)_0xe9110d['push'](_0x4b64b4[_0x40d969(0x101)]([..._0x2ecb24,_0x5a6d16],_0x240cb8[_0x5a6d16]));for(let _0xdb1109=_0x18f974;_0xdb1109<=_0x1dd3a0;_0xdb1109++)_0xe9110d[_0x40d969(0xa8)](_0x4b64b4[_0x40d969(0xbd)]([..._0x2ecb24,_0xdb1109],_0x5b31d3[_0xdb1109]));}function q(_0x3b3f2d){const _0x484343=_0x18dff1;return typeof _0x3b3f2d==_0x484343(0x9e)&&!!_0x3b3f2d&&!Array['isArray'](_0x3b3f2d);}function J(_0x25a5f0,_0x5e8f27){const _0x496720=_0x18dff1;return JSON[_0x496720(0xe9)](_0x25a5f0)===JSON[_0x496720(0xe9)](_0x5e8f27);}function Y(_0x3b39f8,_0x1274da,_0x235590,_0x1f2891,_0xa278ef,_0x373618,_0x566fcc){const _0x1b7a47=_0x18dff1;let _0x437cec=pt(_0x1f2891,_0xa278ef);return _0x437cec?!!_0x3b39f8[_0x1b7a47(0xbc)](_0x942fde['id'],{'unitId':_0x235590,'actions':_0x437cec,'textRanges':[{'startOffset':_0x566fcc,'endOffset':_0x566fcc,'collapsed':!0x0}],'isEditing':!0x1,'trigger':_0x373618}):(_0x1274da[_0x1b7a47(0x129)]([{'startOffset':_0x566fcc,'endOffset':_0x566fcc}],{'unitId':_0x235590,'subUnitId':_0x235590},!0x1),!0x0);}const X=_0x18dff1(0xd4);var yt=_0x18dff1(0xa5),bt='1.0.0';const xt={};function Z(_0x13307a,_0x5a7e6d){return function(_0x53279b,_0x326f98){_0x5a7e6d(_0x53279b,_0x326f98,_0x13307a);};}function St(_0x1dc7f5,_0xea8c10,_0x4719f9,_0x3571a8){const _0x2df37b=_0x18dff1;var _0x2f7f53=arguments[_0x2df37b(0xfe)],_0x16700d=_0x2f7f53<0x3?_0xea8c10:_0x3571a8===null?_0x3571a8=Object[_0x2df37b(0xd0)](_0xea8c10,_0x4719f9):_0x3571a8,_0x402289;if(typeof Reflect==_0x2df37b(0x9e)&&typeof Reflect['decorate']=='function')_0x16700d=Reflect[_0x2df37b(0x109)](_0x1dc7f5,_0xea8c10,_0x4719f9,_0x3571a8);else{for(var _0x5deac2=_0x1dc7f5[_0x2df37b(0xfe)]-0x1;_0x5deac2>=0x0;_0x5deac2--)(_0x402289=_0x1dc7f5[_0x5deac2])&&(_0x16700d=(_0x2f7f53<0x3?_0x402289(_0x16700d):_0x2f7f53>0x3?_0x402289(_0xea8c10,_0x4719f9,_0x16700d):_0x402289(_0xea8c10,_0x4719f9))||_0x16700d);}return _0x2f7f53>0x3&&_0x16700d&&Object[_0x2df37b(0xde)](_0xea8c10,_0x4719f9,_0x16700d),_0x16700d;}let Q=class extends _0x1054c6{constructor(_0x30ff02,_0x498f74){const _0x25e610=_0x18dff1;super(),this[_0x25e610(0x118)]=_0x30ff02,this[_0x25e610(0xe4)]=_0x498f74,this[_0x25e610(0xac)]();}[_0x18dff1(0xac)](){const _0x9faf90=_0x18dff1;this[_0x9faf90(0x122)](this['_resourceManagerService'][_0x9faf90(0xb0)]({'pluginName':X,'businesses':[_0x8cc94f[_0x9faf90(0xfb)]],'toJson':_0x8e38ab=>JSON[_0x9faf90(0xe9)](this[_0x9faf90(0xe4)][_0x9faf90(0x91)](_0x8e38ab)),'parseJson':_0x468628=>y(JSON['parse'](_0x468628)),'onLoad':(_0x12bdc9,_0x4f5146)=>this[_0x9faf90(0xe4)][_0x9faf90(0xb1)](_0x12bdc9,_0x4f5146),'onUnLoad':_0x32ea5d=>this['_docsCodeModel'][_0x9faf90(0x102)](_0x32ea5d)}));}};Q=St([Z(0x0,_0x7f39be),Z(0x1,_0x3f37a0(w))],Q);let $=class extends _0x58480b{constructor(_0x16215a=xt,_0xd6b34,_0x45beb1,_0x580a01){const _0x8768cf=_0x18dff1;super(),this[_0x8768cf(0xab)]=_0x16215a,this[_0x8768cf(0x105)]=_0xd6b34,this[_0x8768cf(0xcf)]=_0x45beb1,this[_0x8768cf(0xf3)]=_0x580a01;let {..._0x1f9e97}=_0x152df7({},xt,this[_0x8768cf(0xab)]);this['_configService'][_0x8768cf(0x119)](_0x8768cf(0xd3),_0x1f9e97);}[_0x18dff1(0xd2)](){const _0x1c8319=_0x18dff1;this[_0x1c8319(0x105)][_0x1c8319(0xe2)]([w]),this[_0x1c8319(0x105)]['add']([Q]),this['_injector'][_0x1c8319(0x113)](w),this[_0x1c8319(0x105)][_0x1c8319(0x113)](Q),[B,at,st,V,H,ct,U,ot,Te,T][_0x1c8319(0xcb)](_0x1cbed0=>this[_0x1c8319(0x122)](this[_0x1c8319(0xcf)]['registerCommand'](_0x1cbed0)));}};C($,_0x18dff1(0x11e),X),C($,'packageName',yt),C($,_0x18dff1(0x11a),bt),C($,_0x18dff1(0xe6),_0x8cc94f[_0x18dff1(0xfb)]),$=St([_0x20ffc4(_0x133a21,_0x4c8af0),Z(0x1,_0x3f37a0(_0x1b4208)),Z(0x2,_0x4ed376),Z(0x3,_0x477e3f)],$);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 _0x49483d=_0x10b3;(function(_0x14b103,_0x5c8c9e){const _0x591240=_0x10b3,_0x58d2a8=_0x14b103();while(!![]){try{const _0x51f231=parseInt(_0x591240(0xb9))/0x1+-parseInt(_0x591240(0x10a))/0x2+parseInt(_0x591240(0xeb))/0x3+-parseInt(_0x591240(0x7f))/0x4+parseInt(_0x591240(0x103))/0x5+parseInt(_0x591240(0x98))/0x6*(parseInt(_0x591240(0x85))/0x7)+parseInt(_0x591240(0x9a))/0x8;if(_0x51f231===_0x5c8c9e)break;else _0x58d2a8['push'](_0x58d2a8['shift']());}catch(_0x11e292){_0x58d2a8['push'](_0x58d2a8['shift']());}}}(_0x1d98,0x51901));import{BooleanNumber as _0x29f404,BuildTextUtils as _0x18ba16,CommandType as _0x446cfc,DataStreamTreeTokenType as _0x23e365,DependentOn as _0x5aaaeb,Disposable as _0x24e448,DocumentBlockRangeType as _0x2324fb,ICommandService as _0x330d40,IConfigService as _0x5ce515,IResourceManagerService as _0x4ec5e9,IUniverInstanceService as _0x1f322c,Inject as _0x34c829,Injector as _0x38f326,JSONX as _0x424cd6,Plugin as _0x5a8ee0,TextX as _0x227fc3,UniverInstanceType as _0x2fc27d,containsInteriorInsertionOffset as _0x116958,containsStreamIndex as _0x2d8224,createParagraphId as _0x338f66,generateRandomId as _0x5cf7a0,getBlockRangeInterval as _0x5c8dbe,getBodySliceForTextXAction as _0x25d42f,getParagraphContentStartOffset as _0x53b91f,getParagraphContentStartOffsets as _0x43bde5,getParagraphFollowingBlockOffset as _0x15574e,getSingleDataStreamChange as _0x5c68b1,intersectsOperationalIntervals as _0x467d94,merge as _0x1470e9,shiftExclusiveRangeOnDelete as _0xc1b9cd,shiftExclusiveRangeOnInsert as _0x3f24e6,shiftInclusiveRangeOnDelete as _0x2cee19,shiftInclusiveRangeOnInsert as _0x4cbd10}from'@univerjs/core';import{Subject as _0x4c06b3}from'rxjs';import{DocSelectionManagerService as _0x2baf85,RichTextEditingMutation as _0x274029,UniverDocsPlugin as _0x565d36,getContentInsertRange as _0x34eb39,isHeaderFooterSelection as _0x584ad5}from'@univerjs/docs';import{UniverLicensePlugin as _0xecd332}from'@univerjs-pro/license';const Se={'language':_0x49483d(0x73),'showLineNumbers':!0x1,'tabSize':0x4,'wrap':!0x0};function v(_0x2fd8ec){return{...Se,..._0x2fd8ec};}function y(_0x27f3e7){const _0x4284c3=_0x49483d;let _0x465372=(_0x27f3e7==null?void 0x0:_0x27f3e7['codes'])??{};return{'codes':Object[_0x4284c3(0xf4)](Object[_0x4284c3(0x6c)](_0x465372)['map'](([_0x4c64c2,_0x3cc3df])=>[_0x4c64c2,v(_0x3cc3df)]))};}function b(_0x2b3291,_0x55e095,_0x39c847){const _0x212846=_0x49483d;let _0xfbdd86=y(_0x2b3291);return _0xfbdd86[_0x212846(0x77)][_0x55e095]=v({..._0xfbdd86[_0x212846(0x77)][_0x55e095],..._0x39c847}),_0xfbdd86;}function x(_0x430777,_0x5ad778){const _0xf072f4=_0x49483d;let _0x4cedd0=y(_0x430777);return delete _0x4cedd0[_0xf072f4(0x77)][_0x5ad778],_0x4cedd0;}function S(_0x5c9d49){'@babel/helpers - typeof';const _0x384cd5=_0x49483d;return S=typeof Symbol==_0x384cd5(0x104)&&typeof Symbol[_0x384cd5(0xee)]==_0x384cd5(0xb4)?function(_0x1da516){return typeof _0x1da516;}:function(_0xb7294b){const _0x58d62e=_0x384cd5;return _0xb7294b&&typeof Symbol==_0x58d62e(0x104)&&_0xb7294b[_0x58d62e(0xb3)]===Symbol&&_0xb7294b!==Symbol[_0x58d62e(0x81)]?'symbol':typeof _0xb7294b;},S(_0x5c9d49);}function Ce(_0x19f620,_0x75fe26){const _0x2d2432=_0x49483d;if(S(_0x19f620)!=_0x2d2432(0xa8)||!_0x19f620)return _0x19f620;var _0x35571a=_0x19f620[Symbol[_0x2d2432(0x10c)]];if(_0x35571a!==void 0x0){var _0x45a69c=_0x35571a['call'](_0x19f620,_0x75fe26||_0x2d2432(0xb1));if(S(_0x45a69c)!=_0x2d2432(0xa8))return _0x45a69c;throw TypeError(_0x2d2432(0xb7));}return(_0x75fe26===_0x2d2432(0xa2)?String:Number)(_0x19f620);}function we(_0x1cdb53){const _0x28ce26=_0x49483d;var _0x3f9364=Ce(_0x1cdb53,_0x28ce26(0xa2));return S(_0x3f9364)=='symbol'?_0x3f9364:_0x3f9364+'';}function C(_0x53414e,_0xd559ea,_0x485df3){const _0x441a36=_0x49483d;return(_0xd559ea=we(_0xd559ea))in _0x53414e?Object[_0x441a36(0xc0)](_0x53414e,_0xd559ea,{'value':_0x485df3,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x53414e[_0xd559ea]=_0x485df3,_0x53414e;}var w=class extends _0x24e448{constructor(..._0x3f7706){const _0x567a72=_0x49483d;super(..._0x3f7706),C(this,_0x567a72(0xcf),new Map()),C(this,_0x567a72(0xf2),new _0x4c06b3()),C(this,_0x567a72(0x7b),this[_0x567a72(0xf2)][_0x567a72(0xd0)]());}[_0x49483d(0xa6)](_0x2d1548,_0x208336){const _0x157562=_0x49483d;return y(this[_0x157562(0xcf)][_0x157562(0xbd)](_0x2d1548))[_0x157562(0x77)][_0x208336];}['setCodeConfig'](_0x15f6c5,_0x24609d,_0x1c0038){const _0x2e993c=_0x49483d;this[_0x2e993c(0x8d)](_0x15f6c5,_0x24609d,b(this[_0x2e993c(0xcf)][_0x2e993c(0xbd)](_0x15f6c5),_0x24609d,_0x1c0038));}[_0x49483d(0xfd)](_0x58caac,_0x316b73){const _0x5a0ec4=_0x49483d;this['_setResource'](_0x58caac,_0x316b73,x(this[_0x5a0ec4(0xcf)][_0x5a0ec4(0xbd)](_0x58caac),_0x316b73));}['serialize'](_0x31ee18){const _0x5bcac=_0x49483d;return y(this[_0x5bcac(0xcf)][_0x5bcac(0xbd)](_0x31ee18));}['deserialize'](_0xe9376d,_0x32d901){const _0x515507=_0x49483d;this[_0x515507(0xcf)]['set'](_0xe9376d,y(_0x32d901)),this[_0x515507(0xf2)][_0x515507(0xd4)]({'unitId':_0xe9376d});}[_0x49483d(0xed)](_0x15de40){const _0x3cdd62=_0x49483d;this[_0x3cdd62(0xcf)][_0x3cdd62(0xe1)](_0x15de40),this[_0x3cdd62(0xf2)][_0x3cdd62(0xd4)]({'unitId':_0x15de40});}[_0x49483d(0x7a)](){const _0x885d59=_0x49483d;super[_0x885d59(0x7a)](),this[_0x885d59(0xcf)]['clear'](),this[_0x885d59(0xf2)][_0x885d59(0x68)]();}['_setResource'](_0x35c54b,_0x99d3eb,_0x54c80f){const _0x4bd794=_0x49483d;this[_0x4bd794(0xcf)][_0x4bd794(0xf3)](_0x35c54b,_0x54c80f),this['_change$'][_0x4bd794(0xd4)]({'unitId':_0x35c54b,'blockId':_0x99d3eb});}};const Te={'id':_0x49483d(0xc8),'type':_0x446cfc['MUTATION'],'handler':(_0x3b7a40,_0x74202d)=>!(_0x74202d!=null&&_0x74202d[_0x49483d(0x10b)])||!_0x74202d['blockId']?!0x1:(_0x3b7a40[_0x49483d(0xbd)](w)[_0x49483d(0xb2)](_0x74202d[_0x49483d(0x10b)],_0x74202d['blockId'],_0x74202d['config']),!0x0)},T={'id':_0x49483d(0xf6),'type':_0x446cfc[_0x49483d(0x8e)],'handler':(_0x189ccb,_0x5e75f1)=>!(_0x5e75f1!=null&&_0x5e75f1[_0x49483d(0x10b)])||!_0x5e75f1[_0x49483d(0x96)]?!0x1:(_0x189ccb[_0x49483d(0xbd)](w)[_0x49483d(0xfd)](_0x5e75f1[_0x49483d(0x10b)],_0x5e75f1[_0x49483d(0x96)]),!0x0)},Ee=_0x49483d(0x93);var E=class extends Error{constructor(_0x6af3ef=_0x49483d(0xd9)){super(_0x6af3ef);}};function De(_0x1e38d4){const _0x1e421d=_0x49483d;var _0x14805d;let _0x1292a6=O(_0x1e38d4[_0x1e421d(0xc6)]),_0x3b113a=A(_0x1292a6),_0x4fc674=ke(_0x1e38d4['startOffset'],_0x1e38d4[_0x1e421d(0x105)]),_0x58ddd1=_0x4fc674?(_0x14805d=_0x3b113a[_0x1e421d(0x79)])==null?void 0x0:_0x14805d[_0x1e421d(0xd5)](_0x56aba9=>{const _0x44d97e=_0x1e421d;let _0x47f8fe=_0x5c8dbe(_0x56aba9);return _0x47f8fe[_0x44d97e(0x10e)]===_0x4fc674[_0x44d97e(0x10e)]&&_0x47f8fe[_0x44d97e(0x105)]===_0x4fc674[_0x44d97e(0x105)];}):void 0x0,{startOffset:_0x21361e,endOffset:_0x486c81}=_0x58ddd1?_0x4fc674:We(_0x3b113a,_0x1e38d4[_0x1e421d(0x10e)],_0x1e38d4[_0x1e421d(0x105)],_0x1e38d4[_0x1e421d(0xa9)]);if(!_0x58ddd1&&Ae(_0x3b113a,_0x21361e,_0x486c81))throw new E(_0x1e421d(0x9e));let _0x9cadf8=qe(_0x3b113a,_0x21361e,_0x486c81),_0x1538e9=(_0x58ddd1==null?void 0x0:_0x58ddd1[_0x1e421d(0x96)])??_0x1e38d4[_0x1e421d(0x96)],_0xd79115=b(_0x1e38d4[_0x1e421d(0xd1)],_0x1538e9,{...Se,..._0x1e38d4[_0x1e421d(0x9c)]});if(_0x58ddd1)return _0x58ddd1['blockType']=_0x2324fb['CODE'],Oe(_0x3b113a,_0x21361e,_0x486c81),ze(_0x3b113a,_0x21361e,_0x486c81,_0x9cadf8),N(_0x3b113a,_0x58ddd1),{'nextDocumentData':_0x1292a6,'nextMetadata':_0xd79115,'cursorOffset':_0x21361e+0x1};if(_0x21361e===_0x486c81){var _0x27b7c0,_0x3f1ad0;let _0x71142d=''+_0x23e365[_0x1e421d(0xea)]+_0x23e365[_0x1e421d(0xff)]+_0x23e365[_0x1e421d(0x94)];P(_0x3b113a,_0x21361e,_0x71142d,{'paragraphs':[{'startIndex':0x1,'paragraphId':_0x338f66(new Set((_0x27b7c0=_0x3b113a[_0x1e421d(0x8a)])==null?void 0x0:_0x27b7c0[_0x1e421d(0x10f)](_0x140ef2=>_0x140ef2[_0x1e421d(0xe3)]))),'paragraphStyle':Re(!0x0,!0x0,_0x9cadf8)}],'blockRanges':[{'blockId':_0x1538e9,'blockType':_0x2324fb[_0x1e421d(0x89)],'startIndex':0x0,'endIndex':_0x71142d['length']-0x1}]});let _0xa00bb6=(_0x3f1ad0=_0x3b113a[_0x1e421d(0x79)])==null?void 0x0:_0x3f1ad0[_0x1e421d(0xd5)](_0x2d2851=>_0x2d2851['blockId']===_0x1538e9);return _0xa00bb6&&N(_0x3b113a,_0xa00bb6),{'nextDocumentData':_0x1292a6,'nextMetadata':_0xd79115,'cursorOffset':_0x21361e+0x1};}P(_0x3b113a,_0x486c81,_0x23e365[_0x1e421d(0x94)]),P(_0x3b113a,_0x21361e,_0x23e365[_0x1e421d(0xea)]),ze(_0x3b113a,_0x21361e,_0x486c81+0x1,_0x9cadf8);let _0xa825fe={'blockId':_0x1538e9,'blockType':_0x2324fb['CODE'],'startIndex':_0x21361e,'endIndex':_0x486c81+0x1};return _0x3b113a[_0x1e421d(0x79)]=[..._0x3b113a['blockRanges']??[],_0xa825fe][_0x1e421d(0x8f)]((_0x42c256,_0x4958a6)=>_0x42c256[_0x1e421d(0xca)]-_0x4958a6['startIndex']),N(_0x3b113a,_0xa825fe),{'nextDocumentData':_0x1292a6,'nextMetadata':_0xd79115,'cursorOffset':_0x21361e+0x1};}function Oe(_0x569f5a,_0xc9ffed,_0x7f39ee){const _0x31a78e=_0x49483d;(_0x569f5a[_0x31a78e(0x8a)]??[])[_0x31a78e(0xf1)](_0xa460f6=>_0xa460f6[_0x31a78e(0xca)]>_0xc9ffed&&_0xa460f6[_0x31a78e(0xca)]<_0x7f39ee)[_0x31a78e(0xe5)](_0x2df4eb=>{const _0x546be9=_0x31a78e;let _0x27ff86={..._0x2df4eb['paragraphStyle']??{}};delete _0x27ff86['spaceAbove'],delete _0x27ff86[_0x546be9(0xe4)],_0x2df4eb[_0x546be9(0xdc)]=_0x27ff86;});}function ke(_0x5ee40c,_0x1a06f8){const _0x4acf41=_0x49483d;return _0x5ee40c==null||_0x1a06f8==null||_0x5ee40c===_0x1a06f8?null:{'startOffset':Math[_0x4acf41(0xef)](_0x5ee40c,_0x1a06f8),'endOffset':Math[_0x4acf41(0xda)](_0x5ee40c,_0x1a06f8)};}function Ae(_0x4d375f,_0x29f319,_0x5a009b){const _0xb2567=_0x49483d;return(_0x4d375f[_0xb2567(0x79)]??[])[_0xb2567(0xbf)](_0x65238=>{let _0x142255=_0x5c8dbe(_0x65238);return _0x29f319===_0x5a009b?_0x116958(_0x142255,_0x29f319):_0x467d94(_0x142255,{'startOffset':_0x29f319,'endOffset':_0x5a009b});});}function je(_0x7091ae){const _0x18f848=_0x49483d;return{'nextDocumentData':O(_0x7091ae[_0x18f848(0xc6)]),'nextMetadata':b(_0x7091ae[_0x18f848(0xd1)],_0x7091ae['blockId'],_0x7091ae[_0x18f848(0x9c)]),'cursorOffset':0x0};}function D(_0x187855){const _0x43f178=_0x49483d;let _0x14ae2b=O(_0x187855[_0x43f178(0xc6)]),_0x17a60e=A(_0x14ae2b),_0x4e97d7=Fe(_0x17a60e,_0x187855[_0x43f178(0x96)]);if(!_0x4e97d7)return null;let _0x44597e=He(_0x17a60e,_0x4e97d7);return{'nextDocumentData':_0x14ae2b,'nextMetadata':x(_0x187855['metadata'],_0x187855[_0x43f178(0x96)]),'cursorOffset':_0x44597e};}function Me(_0x5c21a1){const _0x5aa05d=_0x49483d;var _0x3c4db0;let _0x100d51=O(_0x5c21a1[_0x5aa05d(0xc6)]),_0xd4c3d0=A(_0x100d51),_0x58bb3d=Fe(_0xd4c3d0,_0x5c21a1[_0x5aa05d(0x96)]);if(!_0x58bb3d)return null;let _0x488ce2=_0x5c8dbe(_0x58bb3d);return F(_0xd4c3d0,_0x488ce2[_0x5aa05d(0x10e)],_0x488ce2[_0x5aa05d(0x105)]),_0xd4c3d0['blockRanges']=(_0x3c4db0=_0xd4c3d0[_0x5aa05d(0x79)])==null?void 0x0:_0x3c4db0[_0x5aa05d(0xf1)](_0x295d33=>_0x295d33[_0x5aa05d(0x96)]!==_0x5c21a1[_0x5aa05d(0x96)]),{'nextDocumentData':_0x100d51,'nextMetadata':x(_0x5c21a1[_0x5aa05d(0xd1)],_0x5c21a1[_0x5aa05d(0x96)]),'cursorOffset':_0x58bb3d['startIndex']};}function Ne(_0x2cd8b9){const _0x21104c=_0x49483d;let _0x13d538=O(_0x2cd8b9[_0x21104c(0xc6)]),_0x1200fb=A(_0x13d538),_0x5c0da3=Le(_0x1200fb,_0x2cd8b9[_0x21104c(0xdb)]);return _0x5c0da3&&Pe(_0x13d538,_0x1200fb,_0x5c0da3,_0x2cd8b9[_0x21104c(0xdb)],_0x2cd8b9[_0x21104c(0x87)])||null;}function Pe(_0xf4e8f8,_0x740478,_0x55f7e3,_0x4fd208,_0x2c5134){const _0x420437=_0x49483d;let _0x5812b1=$e(_0x740478,_0x55f7e3,_0x4fd208,_0x2c5134);if(!_0x5812b1)return null;let _0x3bd5de=_0x5812b1[_0x420437(0xd3)]-0x1;return F(_0x740478,_0x5812b1[_0x420437(0x6b)][_0x420437(0xca)],_0x5812b1[_0x420437(0x6b)][_0x420437(0xca)]+0x1),{'nextDocumentData':_0xf4e8f8,'cursorOffset':_0x3bd5de};}function Fe(_0x2a8ec7,_0x221057){const _0x4f4f12=_0x49483d;var _0x2e9c51;return _0x2a8ec7==null||(_0x2e9c51=_0x2a8ec7[_0x4f4f12(0x79)])==null?void 0x0:_0x2e9c51['find'](_0x227b86=>_0x227b86[_0x4f4f12(0xc4)]===_0x2324fb[_0x4f4f12(0x89)]&&_0x227b86[_0x4f4f12(0x96)]===_0x221057);}function Ie(_0x339bef){const _0x34ba6c=_0x49483d;let _0x1ad03d=_0x339bef[_0x34ba6c(0xc6)][_0x34ba6c(0xc3)];if(!_0x1ad03d)return!0x1;let _0x406129=_0x339bef[_0x34ba6c(0x92)]==='left'?_0x339bef[_0x34ba6c(0xdb)]-0x1:_0x339bef[_0x34ba6c(0xdb)],_0x97ab16=_0x339bef[_0x34ba6c(0x92)]===_0x34ba6c(0xe9)?_0x339bef[_0x34ba6c(0xdb)]+0x1:_0x406129;return(_0x1ad03d[_0x34ba6c(0x79)]??[])['some'](_0x2e8d0b=>_0x2e8d0b[_0x34ba6c(0xc4)]===_0x2324fb[_0x34ba6c(0x89)]?_0x406129===_0x2e8d0b[_0x34ba6c(0xca)]||_0x406129===_0x2e8d0b[_0x34ba6c(0xfb)]||_0x97ab16===_0x2e8d0b['startIndex']||_0x97ab16===_0x2e8d0b[_0x34ba6c(0xfb)]:!0x1);}function Le(_0x28d177,_0x22f150){const _0xa78fcf=_0x49483d;var _0x332593;return(_0x332593=_0x28d177[_0xa78fcf(0x79)])==null?void 0x0:_0x332593[_0xa78fcf(0xd5)](_0x2b0e39=>{const _0x36e1e9=_0xa78fcf;let _0x44e7dc=M(_0x2b0e39);return _0x2b0e39['blockType']===_0x2324fb[_0x36e1e9(0x89)]&&_0x2b0e39[_0x36e1e9(0xca)]<=_0x22f150&&_0x22f150<=_0x44e7dc+0x2;});}function Re(_0x3f45ae,_0x3b02a5,_0x1ed424=!0x1){const _0x1efc96=_0x49483d;return{'indentEnd':{'v':0x14},'indentStart':{'v':0x14},'keepLines':_0x29f404[_0x1efc96(0x97)],'keepNext':_0x3b02a5?_0x29f404[_0x1efc96(0x78)]:_0x29f404[_0x1efc96(0x97)],'widowControl':_0x29f404['TRUE'],..._0x3f45ae&&_0x1ed424?{'spaceAbove':{'v':0x8}}:{},'textStyle':{'ff':Ee,'fs':0xc}};}function ze(_0x391312,_0x11c35b,_0x28e67c,_0x5572d3=!0x1){const _0x16e5ba=_0x49483d;let _0x527240=(_0x391312[_0x16e5ba(0x8a)]??[])[_0x16e5ba(0xf1)](_0x12170c=>_0x12170c[_0x16e5ba(0xca)]>_0x11c35b&&_0x12170c[_0x16e5ba(0xca)]<_0x28e67c);_0x527240[_0x16e5ba(0xe5)]((_0x13d09f,_0x2e86f2)=>{const _0x403290=_0x16e5ba;_0x13d09f[_0x403290(0xdc)]={..._0x13d09f[_0x403290(0xdc)]??{},...Re(_0x2e86f2===0x0,_0x2e86f2===_0x527240[_0x403290(0xa3)]-0x1,_0x5572d3)};});}function Be(_0x424465){const _0x5a0cb9=_0x49483d;var _0x42d594,_0x4f90ba;let _0x55c935={..._0x424465??{}};return delete _0x55c935['indentEnd'],delete _0x55c935[_0x5a0cb9(0xb8)],delete _0x55c935[_0x5a0cb9(0xa7)],delete _0x55c935[_0x5a0cb9(0xe4)],delete _0x55c935['keepLines'],delete _0x55c935[_0x5a0cb9(0xf7)],delete _0x55c935[_0x5a0cb9(0xfa)],((_0x42d594=_0x55c935['textStyle'])==null?void 0x0:_0x42d594['ff'])===Ee&&((_0x4f90ba=_0x55c935[_0x5a0cb9(0x69)])==null?void 0x0:_0x4f90ba['fs'])===0xc&&delete _0x55c935['textStyle'],_0x55c935;}function Ve(_0x136751,_0x3c0278){const _0xdd4f7d=_0x49483d;let _0x597b01=M(_0x3c0278);return(_0x136751[_0xdd4f7d(0x8a)]??[])[_0xdd4f7d(0xf1)](_0x12be88=>_0x12be88['startIndex']>_0x3c0278[_0xdd4f7d(0xca)]&&_0x12be88[_0xdd4f7d(0xca)]<_0x597b01);}function He(_0x319a34,_0x4a07f4){const _0x466d3d=_0x49483d;var _0x33e5e9;let _0x2a8141=M(_0x4a07f4);return Ve(_0x319a34,_0x4a07f4)[_0x466d3d(0xe5)](_0x3a5f34=>{const _0x50da24=_0x466d3d;_0x3a5f34[_0x50da24(0xdc)]=Be(_0x3a5f34[_0x50da24(0xdc)]);}),F(_0x319a34,_0x2a8141,_0x2a8141+0x1),F(_0x319a34,_0x4a07f4[_0x466d3d(0xca)],_0x4a07f4[_0x466d3d(0xca)]+0x1),_0x319a34[_0x466d3d(0x79)]=(_0x33e5e9=_0x319a34[_0x466d3d(0x79)])==null?void 0x0:_0x33e5e9[_0x466d3d(0xf1)](_0x1dd917=>_0x1dd917[_0x466d3d(0x96)]!==_0x4a07f4['blockId']),_0x4a07f4[_0x466d3d(0xca)];}function O(_0x14d594){const _0x16d08f=_0x49483d;return{..._0x14d594,'body':_0x14d594['body']?Ue(_0x14d594[_0x16d08f(0xc3)]):_0x14d594[_0x16d08f(0xc3)]};}function Ue(_0x1d1a3a){const _0x6a3fdc=_0x49483d;var _0x2c65ae,_0x1310ed,_0x32a5ee,_0x17552f,_0x36149d,_0x50d486,_0x257a93,_0x29d0a9,_0x2109ec;return{..._0x1d1a3a,'paragraphs':(_0x2c65ae=_0x1d1a3a[_0x6a3fdc(0x8a)])==null?void 0x0:_0x2c65ae[_0x6a3fdc(0x10f)](_0x48404c=>({..._0x48404c,'bullet':k(_0x48404c[_0x6a3fdc(0xe7)]),'paragraphStyle':k(_0x48404c['paragraphStyle'])})),'sectionBreaks':(_0x1310ed=_0x1d1a3a['sectionBreaks'])==null?void 0x0:_0x1310ed[_0x6a3fdc(0x10f)](_0x50877c=>({..._0x50877c})),'textRuns':(_0x32a5ee=_0x1d1a3a[_0x6a3fdc(0x95)])==null?void 0x0:_0x32a5ee[_0x6a3fdc(0x10f)](_0x539eba=>({..._0x539eba})),'tables':(_0x17552f=_0x1d1a3a[_0x6a3fdc(0xe8)])==null?void 0x0:_0x17552f[_0x6a3fdc(0x10f)](_0x52e5db=>({..._0x52e5db})),'columnGroups':(_0x36149d=_0x1d1a3a[_0x6a3fdc(0xc9)])==null?void 0x0:_0x36149d[_0x6a3fdc(0x10f)](_0x38835a=>{const _0x580558=_0x6a3fdc;var _0x23fa8b;return{..._0x38835a,'columns':(_0x23fa8b=_0x38835a[_0x580558(0xbc)])==null?void 0x0:_0x23fa8b['map'](_0x32505a=>k(_0x32505a))};}),'blockRanges':(_0x50d486=_0x1d1a3a[_0x6a3fdc(0x79)])==null?void 0x0:_0x50d486['map'](_0x118697=>({..._0x118697})),'customRanges':(_0x257a93=_0x1d1a3a[_0x6a3fdc(0x90)])==null?void 0x0:_0x257a93[_0x6a3fdc(0x10f)](_0x53ebbc=>({..._0x53ebbc})),'customDecorations':(_0x29d0a9=_0x1d1a3a[_0x6a3fdc(0xd8)])==null?void 0x0:_0x29d0a9[_0x6a3fdc(0x10f)](_0x4bf904=>({..._0x4bf904})),'customBlocks':(_0x2109ec=_0x1d1a3a[_0x6a3fdc(0x9b)])==null?void 0x0:_0x2109ec['map'](_0x3775bd=>({..._0x3775bd}))};}function k(_0x11b15f){const _0x11112b=_0x49483d;return Array['isArray'](_0x11b15f)?_0x11b15f[_0x11112b(0x10f)](_0x3431e0=>k(_0x3431e0)):!_0x11b15f||typeof _0x11b15f!=_0x11112b(0xa8)?_0x11b15f:Object[_0x11112b(0xf4)](Object[_0x11112b(0x6c)](_0x11b15f)[_0x11112b(0x10f)](([_0x4eff42,_0x4228b3])=>[_0x4eff42,k(_0x4228b3)]));}function _0x1d98(){const _0x53b81e=['paragraphs','registerCommand','TABLE_CELL_END','_setResource','MUTATION','sort','customRanges','getCurrentUnitOfType','direction','monospace','BLOCK_END','textRuns','blockId','TRUE','1356fFBjhY','convert-paragraph','1521960qbcpJR','customBlocks','config','dataStream','Insert\x20range\x20cannot\x20overlap\x20an\x20existing\x20document\x20block','stringify','docs-code.command.remove','packageName','string','length','replaceDocRanges','_initResource','getCodeConfig','spaceAbove','object','insertionMode','replaceOp','_docsCodeModel','selectionManager','endsWith','model','getUnit','handler','default','setCodeConfig','constructor','symbol','_config','getSnapshot','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','indentStart','500717rmLAri','COMMAND','_resourceManagerService','columns','get','every','some','defineProperty','keys','docs-code.command.unwrap','body','blockType','compose','documentData','commandService','docs-code.mutation.set-config','columnGroups','startIndex','insert','registerPluginResource','decorate','nextDocumentData','_resources','asObservable','metadata','parse','endTokenOffset','next','find','_commandService','getParagraphsInRange','customDecorations','Insert\x20range\x20cannot\x20cross\x20table\x20cell\x20boundaries','max','cursorOffset','paragraphStyle','indexOf','push','docs-code.command.cancel-empty-paragraph','from','delete','disposeWithMe','paragraphId','spaceBelow','forEach','syncExecuteCommand','bullet','tables','right','BLOCK_START','1855260FWutor','insertLength','removeUnit','iterator','min','removeOp','filter','_change$','set','fromEntries','insert-new','docs-code.mutation.remove-config','keepNext','pluginName','docs-code.command.consume-boundary-delete','widowControl','endIndex','_configService','removeCode','getInstance','PARAGRAPH','UNIVER_DOC','insertOp','start','34295QHiICr','function','endOffset','previousDocumentData','onStarting','type','version','1245408jwONUG','unitId','toPrimitive','range','startOffset','map','deserialize','getUnitId','isArray','complete','textStyle','_injector','paragraph','entries','sectionBreaks','docs-code.config','getTextRanges','editOp','startTokenOffset','TABLE_CELL_START','javascript','retain','Document\x20body\x20is\x20required','DOC_CODE_PLUGIN','codes','FALSE','blockRanges','dispose','change$','serialize','1.0.2','add','2458440iBVkEC','SECTION_BREAK','prototype','docs-code.command.insert-below','reduce','nextMetadata','7903SHlkbH','slice','paragraphStartIndex','@univerjs-pro/docs-code','CODE'];_0x1d98=function(){return _0x53b81e;};return _0x1d98();}function A(_0x26f889){const _0x49f3d3=_0x49483d;if(!_0x26f889['body'])throw Error(_0x49f3d3(0x75));return _0x26f889[_0x49f3d3(0xc3)];}function We(_0x527721,_0x3d912d,_0x3ddc6f,_0x2e2e3b=_0x49483d(0x99)){const _0x418e8a=_0x49483d;if(_0x3d912d==null||_0x3ddc6f==null){let _0x30a532=Ke(_0x527721);return{'startOffset':_0x30a532,'endOffset':_0x30a532};}let _0x11590e=Math[_0x418e8a(0xef)](_0x3d912d,_0x3ddc6f),_0x40eb22=Math[_0x418e8a(0xda)](_0x3d912d,_0x3ddc6f),_0x42d7ec=Ze(_0x527721,_0x11590e,_0x40eb22);return _0x11590e===_0x40eb22?_0x2e2e3b===_0x418e8a(0xf5)?{'startOffset':_0x11590e,'endOffset':_0x40eb22}:Ge(_0x527721,_0x11590e,_0x42d7ec):Je(_0x527721,_0x11590e,_0x40eb22,_0x42d7ec);}function Ge(_0x372ccf,_0x42cbbc,_0x32c72a){const _0x16b1c7=_0x49483d;let _0x4a3047=Ye(_0x372ccf,_0x42cbbc);if(_0x4a3047){let _0x481536=j(_0x372ccf,_0x4a3047,_0x32c72a);if(_0x481536<_0x4a3047[_0x16b1c7(0xca)])return{'startOffset':_0x481536,'endOffset':_0x32c72a?Math[_0x16b1c7(0xef)](_0x4a3047['startIndex']+0x1,_0x32c72a['endOffset']):_0x4a3047[_0x16b1c7(0xca)]+0x1};}let _0x2aa04f=_0x42cbbc===0x0&&_0x372ccf[_0x16b1c7(0x9d)][0x0]===_0x23e365[_0x16b1c7(0xff)]?0x1:_0x42cbbc;return{'startOffset':_0x2aa04f,'endOffset':_0x2aa04f};}function Ke(_0x315d7c){const _0x2616af=_0x49483d;return _0x315d7c['dataStream'][_0x2616af(0xad)](_0x23e365[_0x2616af(0x80)])?Math[_0x2616af(0xda)](0x0,_0x315d7c[_0x2616af(0x9d)][_0x2616af(0xa3)]-0x1):_0x315d7c[_0x2616af(0x9d)]['length'];}function qe(_0x5aa023,_0x1f7304,_0x498d94){const _0x235637=_0x49483d;var _0x3cc270;let _0x88649a=Math[_0x235637(0xef)](_0x1f7304,_0x498d94),_0x9138e5=Math[_0x235637(0xda)](_0x1f7304,_0x498d94);return!!((_0x3cc270=_0x5aa023[_0x235637(0xe8)])!=null&&_0x3cc270[_0x235637(0xbf)](_0x5d51c6=>_0x88649a>_0x5d51c6['startIndex']&&_0x88649a<_0x5d51c6[_0x235637(0xfb)]||_0x9138e5>_0x5d51c6['startIndex']&&_0x9138e5<_0x5d51c6[_0x235637(0xfb)]||_0x88649a<=_0x5d51c6[_0x235637(0xca)]&&_0x9138e5>=_0x5d51c6['endIndex']));}function Je(_0x3ce0cc,_0x3510e7,_0x94affa,_0x5bc6f9){const _0x118174=_0x49483d;let _0x5334a5=[..._0x3ce0cc[_0x118174(0x8a)]??[]][_0x118174(0x8f)]((_0x3d9f89,_0x233e69)=>_0x3d9f89[_0x118174(0xca)]-_0x233e69['startIndex']),_0x58dfaf=_0x43bde5(_0x3ce0cc),_0x277b49=_0x5334a5[_0x118174(0xd5)](_0x3bfc51=>j(_0x3ce0cc,_0x3bfc51,_0x5bc6f9,_0x58dfaf)<=_0x3510e7&&_0x3510e7<=_0x3bfc51[_0x118174(0xca)]),_0x27158e=_0x5334a5['find'](_0x168630=>_0x168630[_0x118174(0xca)]>=_0x94affa-0x1)??_0x5334a5[_0x5334a5['length']-0x1];return{'startOffset':_0x277b49?j(_0x3ce0cc,_0x277b49,_0x5bc6f9,_0x58dfaf):_0x3510e7,'endOffset':_0x27158e?Xe(_0x27158e,_0x5bc6f9):_0x94affa};}function Ye(_0x1558ed,_0x811343){const _0x53791f=_0x49483d;let _0x19b046=[..._0x1558ed[_0x53791f(0x8a)]??[]]['sort']((_0x56b8c4,_0xcc6c14)=>_0x56b8c4['startIndex']-_0xcc6c14[_0x53791f(0xca)]),_0x1fd7f7=_0x43bde5(_0x1558ed);return _0x19b046[_0x53791f(0xd5)](_0x3085e1=>(_0x1fd7f7[_0x53791f(0xbd)](_0x3085e1[_0x53791f(0xca)])??0x0)<=_0x811343&&_0x811343<=_0x3085e1[_0x53791f(0xca)]);}function j(_0xa29b8a,_0x555624,_0x228966,_0x2021c8){const _0x8e7edf=_0x49483d;let _0x42c9b0=(_0x2021c8==null?void 0x0:_0x2021c8['get'](_0x555624[_0x8e7edf(0xca)]))??_0x53b91f(_0xa29b8a,_0x555624);return _0x228966?Math['max'](_0x42c9b0,_0x228966[_0x8e7edf(0x10e)]):_0x42c9b0;}function Xe(_0x1e78c7,_0x2884b2){const _0x22ada6=_0x49483d;let _0x40fb21=_0x1e78c7[_0x22ada6(0xca)]+0x1;return _0x2884b2?Math[_0x22ada6(0xef)](_0x40fb21,_0x2884b2['endOffset']):_0x40fb21;}function Ze(_0x3fd946,_0x21e92d,_0xba3d8){const _0x2ab049=_0x49483d;let _0x2165e6=Qe(_0x3fd946,_0x21e92d),_0x5f3da5=Qe(_0x3fd946,_0x21e92d===_0xba3d8?_0xba3d8:Math['max'](_0x21e92d,_0xba3d8-0x1));if(_0x2165e6||_0x5f3da5){if(!_0x2165e6||!_0x5f3da5||_0x2165e6[_0x2ab049(0x71)]!==_0x5f3da5['startTokenOffset']||_0x2165e6[_0x2ab049(0xd3)]!==_0x5f3da5['endTokenOffset'])throw new E();return _0x2165e6;}}function Qe(_0x9ed5aa,_0x457200){const _0x245c1f=_0x49483d;let _0x37eb87=_0x9ed5aa['dataStream'],_0x22d64c=-0x1;for(let _0x887331=Math['min'](_0x457200,_0x37eb87[_0x245c1f(0xa3)]-0x1);_0x887331>=0x0;_0x887331--){let _0x752d27=_0x37eb87[_0x887331];if(_0x752d27===_0x23e365['TABLE_CELL_END'])return;if(_0x752d27===_0x23e365[_0x245c1f(0x72)]){_0x22d64c=_0x887331;break;}}if(_0x22d64c<0x0)return;let _0x375215=_0x37eb87[_0x245c1f(0xdd)](_0x23e365[_0x245c1f(0x8c)],_0x22d64c+0x1);if(!(_0x375215<0x0||_0x457200<_0x22d64c+0x1||_0x457200>_0x375215-0x1))return{'startOffset':_0x22d64c+0x1,'endOffset':Math[_0x245c1f(0xda)](_0x22d64c+0x1,_0x375215-0x1),'startTokenOffset':_0x22d64c,'endTokenOffset':_0x375215};}function M(_0x16bd20){const _0x1cffa3=_0x49483d;return _0x5c8dbe(_0x16bd20)[_0x1cffa3(0x105)]-0x1;}function $e(_0x1dd05a,_0x50ea1f,_0x4c76dc,_0x1a7407){const _0xba63fb=_0x49483d;let _0x1d9a80=M(_0x50ea1f),_0x3473f6=(_0x1dd05a[_0xba63fb(0x8a)]??[])[_0xba63fb(0xd5)](_0x534be5=>_0x534be5[_0xba63fb(0xca)]===_0x1d9a80+0x1);if(!_0x3473f6||_0x1a7407!=null&&_0x3473f6[_0xba63fb(0xca)]!==_0x1a7407||_0x4c76dc!=null&&(_0x4c76dc<_0x1d9a80||_0x4c76dc>_0x3473f6[_0xba63fb(0xca)]+0x1)||_0x1dd05a[_0xba63fb(0x9d)][_0x3473f6[_0xba63fb(0xca)]]!==_0x23e365[_0xba63fb(0xff)])return null;let _0x3faa15=_0x53b91f(_0x1dd05a,_0x3473f6),_0x40f6b0=_0x1dd05a[_0xba63fb(0x9d)][_0xba63fb(0x86)](_0x3faa15,_0x3473f6['startIndex']);return Array[_0xba63fb(0xe0)](_0x40f6b0)[_0xba63fb(0xbe)](_0x1c3817=>_0x1c3817===_0x23e365[_0xba63fb(0x94)])?{'paragraph':_0x3473f6,'endTokenOffset':_0x1d9a80}:null;}function N(_0x4aac1c,_0x57183e){const _0x595756=_0x49483d;var _0x28a092;let _0x1a104d=M(_0x57183e),_0x57cb3c=_0x4aac1c[_0x595756(0x9d)][_0x1a104d+0x1];(_0x57cb3c===_0x23e365[_0x595756(0x80)]||_0x57cb3c===void 0x0)&&P(_0x4aac1c,_0x1a104d+0x1,_0x23e365[_0x595756(0xff)],{'paragraphs':[{'startIndex':0x0,'paragraphId':_0x338f66(new Set((_0x28a092=_0x4aac1c[_0x595756(0x8a)])==null?void 0x0:_0x28a092[_0x595756(0x10f)](_0xf7aa0=>_0xf7aa0[_0x595756(0xe3)])))}]});}function P(_0x3c719f,_0x1266f0,_0x15fe14,_0x51a13c={}){const _0x31ff68=_0x49483d;var _0x38a78a,_0x28a5a2;_0x15fe14&&(_0x3c719f[_0x31ff68(0x9d)]=''+_0x3c719f['dataStream']['slice'](0x0,_0x1266f0)+_0x15fe14+_0x3c719f[_0x31ff68(0x9d)]['slice'](_0x1266f0),et(_0x3c719f,_0x1266f0,_0x15fe14[_0x31ff68(0xa3)]),(_0x38a78a=_0x51a13c['paragraphs'])!=null&&_0x38a78a[_0x31ff68(0xa3)]&&(_0x3c719f[_0x31ff68(0x8a)]=[..._0x3c719f['paragraphs']??[],..._0x51a13c[_0x31ff68(0x8a)][_0x31ff68(0x10f)](_0x27a966=>({..._0x27a966,'startIndex':_0x27a966[_0x31ff68(0xca)]+_0x1266f0}))][_0x31ff68(0x8f)]((_0x58d0c1,_0x5efc5c)=>_0x58d0c1[_0x31ff68(0xca)]-_0x5efc5c['startIndex'])),(_0x28a5a2=_0x51a13c['blockRanges'])!=null&&_0x28a5a2[_0x31ff68(0xa3)]&&(_0x3c719f[_0x31ff68(0x79)]=[..._0x3c719f[_0x31ff68(0x79)]??[],..._0x51a13c[_0x31ff68(0x79)]['map'](_0x19ed57=>({..._0x19ed57,'startIndex':_0x19ed57[_0x31ff68(0xca)]+_0x1266f0,'endIndex':_0x19ed57[_0x31ff68(0xfb)]+_0x1266f0}))][_0x31ff68(0x8f)]((_0x2aa1d1,_0x57c34b)=>_0x2aa1d1[_0x31ff68(0xca)]-_0x57c34b['startIndex'])));}function F(_0x48e2a9,_0x4c0fd9,_0x582d97){const _0x177543=_0x49483d;let _0x53e781=_0x582d97-_0x4c0fd9;_0x48e2a9[_0x177543(0x9d)]=''+_0x48e2a9[_0x177543(0x9d)][_0x177543(0x86)](0x0,_0x4c0fd9)+_0x48e2a9[_0x177543(0x9d)][_0x177543(0x86)](_0x582d97),tt(_0x48e2a9,_0x4c0fd9,_0x53e781);}function et(_0x54ca30,_0x2b9eb2,_0x5cf9e1){const _0x5afbfb=_0x49483d;_0x54ca30[_0x5afbfb(0x8a)]=I(_0x54ca30[_0x5afbfb(0x8a)],_0x2b9eb2,_0x5cf9e1),_0x54ca30[_0x5afbfb(0x6d)]=I(_0x54ca30[_0x5afbfb(0x6d)],_0x2b9eb2,_0x5cf9e1),_0x54ca30[_0x5afbfb(0x9b)]=I(_0x54ca30[_0x5afbfb(0x9b)],_0x2b9eb2,_0x5cf9e1),_0x54ca30['textRuns']=nt(_0x54ca30[_0x5afbfb(0x95)],_0x2b9eb2,_0x5cf9e1),_0x54ca30[_0x5afbfb(0xe8)]=rt(_0x54ca30['tables'],_0x2b9eb2,_0x5cf9e1),_0x54ca30[_0x5afbfb(0xc9)]=R(_0x54ca30[_0x5afbfb(0xc9)],_0x2b9eb2,_0x5cf9e1),_0x54ca30[_0x5afbfb(0x90)]=R(_0x54ca30[_0x5afbfb(0x90)],_0x2b9eb2,_0x5cf9e1),_0x54ca30[_0x5afbfb(0xd8)]=R(_0x54ca30[_0x5afbfb(0xd8)],_0x2b9eb2,_0x5cf9e1),_0x54ca30[_0x5afbfb(0x79)]=R(_0x54ca30[_0x5afbfb(0x79)],_0x2b9eb2,_0x5cf9e1);}function tt(_0x4b784f,_0x1811bf,_0x11d3a5){const _0x55f1a0=_0x49483d;var _0x55f068,_0x3fa23d;_0x4b784f['paragraphs']=L(_0x4b784f[_0x55f1a0(0x8a)],_0x1811bf,_0x11d3a5),_0x4b784f[_0x55f1a0(0x6d)]=L(_0x4b784f['sectionBreaks'],_0x1811bf,_0x11d3a5),_0x4b784f[_0x55f1a0(0x9b)]=L(_0x4b784f[_0x55f1a0(0x9b)],_0x1811bf,_0x11d3a5),_0x4b784f[_0x55f1a0(0x95)]=(_0x55f068=it((_0x3fa23d=_0x4b784f[_0x55f1a0(0x95)])==null?void 0x0:_0x3fa23d[_0x55f1a0(0x10f)](_0xa8dc8c=>({..._0xa8dc8c,'startIndex':_0xa8dc8c['st'],'endIndex':_0xa8dc8c['ed']})),_0x1811bf,_0x11d3a5))==null?void 0x0:_0x55f068[_0x55f1a0(0x10f)](_0x44d1b4=>{let {startIndex:_0x3c5a04,endIndex:_0x2ba6af,..._0x1b2e46}=_0x44d1b4;return{..._0x1b2e46,'st':_0x3c5a04,'ed':_0x2ba6af};}),_0x4b784f[_0x55f1a0(0xe8)]=it(_0x4b784f[_0x55f1a0(0xe8)],_0x1811bf,_0x11d3a5),_0x4b784f['columnGroups']=z(_0x4b784f[_0x55f1a0(0xc9)],_0x1811bf,_0x11d3a5),_0x4b784f[_0x55f1a0(0x90)]=z(_0x4b784f[_0x55f1a0(0x90)],_0x1811bf,_0x11d3a5),_0x4b784f[_0x55f1a0(0xd8)]=z(_0x4b784f['customDecorations'],_0x1811bf,_0x11d3a5),_0x4b784f[_0x55f1a0(0x79)]=z(_0x4b784f[_0x55f1a0(0x79)],_0x1811bf,_0x11d3a5);}function I(_0x35a8ac,_0xb5d92,_0x3536ca){const _0x2989c3=_0x49483d;return _0x35a8ac==null?void 0x0:_0x35a8ac[_0x2989c3(0x10f)](_0x49764d=>_0x49764d[_0x2989c3(0xca)]>=_0xb5d92?{..._0x49764d,'startIndex':_0x49764d['startIndex']+_0x3536ca}:_0x49764d);}function L(_0x1d4770,_0x34a2d7,_0x15307b){const _0xacf524=_0x49483d;let _0xc61e6c=_0x34a2d7+_0x15307b;return _0x1d4770==null?void 0x0:_0x1d4770[_0xacf524(0x10f)](_0x49ce98=>_0x49ce98[_0xacf524(0xca)]>=_0x34a2d7&&_0x49ce98['startIndex']<_0xc61e6c?null:_0x49ce98[_0xacf524(0xca)]>=_0xc61e6c?{..._0x49ce98,'startIndex':_0x49ce98['startIndex']-_0x15307b}:_0x49ce98)[_0xacf524(0xf1)](_0x41efe3=>_0x41efe3!=null);}function nt(_0x430eea,_0x12f39b,_0x3714b7){const _0x314ba2=_0x49483d;return _0x430eea==null?void 0x0:_0x430eea[_0x314ba2(0x10f)](_0x173020=>_0x173020['st']>=_0x12f39b?{..._0x173020,'st':_0x173020['st']+_0x3714b7,'ed':_0x173020['ed']+_0x3714b7}:_0x173020['ed']>_0x12f39b?{..._0x173020,'ed':_0x173020['ed']+_0x3714b7}:_0x173020);}function R(_0x2264a,_0x249d9e,_0x791a33){const _0x1728bd=_0x49483d;return _0x2264a==null?void 0x0:_0x2264a[_0x1728bd(0x10f)](_0x48860e=>_0x4cbd10(_0x48860e,_0x249d9e,_0x791a33));}function rt(_0x37cbe8,_0x148210,_0x320124){const _0x48a36e=_0x49483d;return _0x37cbe8==null?void 0x0:_0x37cbe8[_0x48a36e(0x10f)](_0xbe57dc=>_0x3f24e6(_0xbe57dc,_0x148210,_0x320124));}function z(_0x26908f,_0x45c75c,_0x522636){const _0x44a783=_0x49483d;return _0x26908f==null?void 0x0:_0x26908f[_0x44a783(0x10f)](_0x35cd26=>_0x2cee19(_0x35cd26,_0x45c75c,_0x522636))['filter'](_0x58a29c=>_0x58a29c!=null);}function it(_0x43824b,_0x53de3f,_0x15acc3){const _0xab3232=_0x49483d;return _0x43824b==null?void 0x0:_0x43824b['map'](_0x5786c3=>_0xc1b9cd(_0x5786c3,_0x53de3f,_0x15acc3))[_0xab3232(0xf1)](_0x3e1274=>_0x3e1274!=null);}function _0x10b3(_0x139bf2,_0x367a17){_0x139bf2=_0x139bf2-0x65;const _0x1d98ba=_0x1d98();let _0x10b317=_0x1d98ba[_0x139bf2];return _0x10b317;}const at={'id':_0x49483d(0x82),'type':_0x446cfc[_0x49483d(0xba)],'handler':_0x54aef2=>{const _0x45975b=_0x49483d;var _0x2e7799;if(_0x584ad5(G(_0x54aef2)))return!0x1;let _0x29ef0f=_0x34eb39(_0x54aef2);if(_0x29ef0f)return _0x54aef2[_0x45975b(0xbd)](_0x330d40)['syncExecuteCommand'](B['id'],{'startOffset':_0x29ef0f[_0x45975b(0x10e)],'endOffset':_0x29ef0f[_0x45975b(0x105)],'insertionMode':_0x45975b(0xf5),'unitId':_0x29ef0f[_0x45975b(0x10b)]});let _0x1cc77b=ft(_0x54aef2);if(!_0x1cc77b)return!0x1;let _0x4c2b84=(_0x2e7799=_0x54aef2[_0x45975b(0xbd)](_0x1f322c)[_0x45975b(0x91)](_0x2fc27d[_0x45975b(0x100)]))==null?void 0x0:_0x2e7799['getBody'](),_0x4d02b7=_0x4c2b84?_0x15574e(_0x4c2b84,_0x1cc77b):_0x1cc77b[_0x45975b(0xca)]+0x1;return _0x54aef2[_0x45975b(0xbd)](_0x330d40)['syncExecuteCommand'](B['id'],{'startOffset':_0x4d02b7,'endOffset':_0x4d02b7});}},ot={'id':_0x49483d(0xf9),'type':_0x446cfc[_0x49483d(0xba)],'handler':()=>!0x0},B={'id':'docs-code.command.insert','type':_0x446cfc[_0x49483d(0xba)],'handler':(_0x5ced54,_0xfff347)=>{const _0x11f6f6=_0x49483d;let _0x4364cb=W(_0x5ced54,_0xfff347==null?void 0x0:_0xfff347[_0x11f6f6(0x10b)]);if(!_0x4364cb)return!0x1;let _0x2f4f7b=G(_0x5ced54);if(_0x584ad5(_0x2f4f7b))return!0x1;let _0x470f30=_0x4364cb[_0x11f6f6(0xae)][_0x11f6f6(0x7c)](_0x4364cb[_0x11f6f6(0x10b)]),_0x447e02=lt(_0xfff347,_0x2f4f7b),_0x36928e=ut(_0x4364cb[_0x11f6f6(0x106)],_0x447e02);if(_0x36928e){if(_0x36928e[_0x11f6f6(0xc4)]!==_0x2324fb['CODE'])return!0x1;let _0x4f47c4=D({'blockId':_0x36928e['blockId'],'documentData':_0x4364cb[_0x11f6f6(0x106)],'metadata':_0x470f30});if(!_0x4f47c4)return!0x1;let _0xc56bdf=Y(_0x4364cb[_0x11f6f6(0xc7)],_0x4364cb[_0x11f6f6(0xac)],_0x4364cb[_0x11f6f6(0x10b)],_0x4364cb[_0x11f6f6(0x106)],_0x4f47c4[_0x11f6f6(0xce)],B['id'],_0x4f47c4[_0x11f6f6(0xdb)]);return _0xc56bdf&&_0x4f47c4[_0x11f6f6(0x84)]&&_0x4364cb[_0x11f6f6(0xae)]['deserialize'](_0x4364cb[_0x11f6f6(0x10b)],_0x4f47c4['nextMetadata']),_0xc56bdf;}let _0x57aa41=(_0xfff347==null?void 0x0:_0xfff347[_0x11f6f6(0x96)])??_0x5cf7a0(0x6),_0xe03c18;try{_0xe03c18=De({'blockId':_0x57aa41,'config':_0xfff347==null?void 0x0:_0xfff347[_0x11f6f6(0x9c)],'documentData':_0x4364cb[_0x11f6f6(0x106)],'endOffset':_0x447e02==null?void 0x0:_0x447e02[_0x11f6f6(0x105)],'insertionMode':_0xfff347==null?void 0x0:_0xfff347[_0x11f6f6(0xa9)],'metadata':_0x470f30,'startOffset':_0x447e02==null?void 0x0:_0x447e02[_0x11f6f6(0x10e)]});}catch(_0x272d0a){if(_0x272d0a instanceof E)return!0x1;throw _0x272d0a;}let _0x28b016=Y(_0x4364cb[_0x11f6f6(0xc7)],_0x4364cb['selectionManager'],_0x4364cb[_0x11f6f6(0x10b)],_0x4364cb['previousDocumentData'],_0xe03c18[_0x11f6f6(0xce)],B['id'],_0xe03c18[_0x11f6f6(0xdb)]);return _0x28b016&&_0xe03c18[_0x11f6f6(0x84)]&&_0x4364cb[_0x11f6f6(0xae)][_0x11f6f6(0x65)](_0x4364cb[_0x11f6f6(0x10b)],_0xe03c18[_0x11f6f6(0x84)]),_0x28b016;}},st={'id':'docs-code.command.update','type':_0x446cfc['COMMAND'],'handler':(_0x6a12c2,_0x2a753a)=>{const _0x13a052=_0x49483d;if(!_0x2a753a)return!0x1;let _0x92192=W(_0x6a12c2,_0x2a753a[_0x13a052(0x10b)]);if(!_0x92192)return!0x1;let _0x1319af=je({'blockId':_0x2a753a[_0x13a052(0x96)],'config':_0x2a753a[_0x13a052(0x9c)],'documentData':_0x92192[_0x13a052(0x106)],'metadata':_0x92192['model'][_0x13a052(0x7c)](_0x92192[_0x13a052(0x10b)])});return _0x1319af[_0x13a052(0x84)]&&_0x92192[_0x13a052(0xae)]['deserialize'](_0x92192[_0x13a052(0x10b)],_0x1319af[_0x13a052(0x84)]),!0x0;}},ct={'id':'docs-code.command.exit','type':_0x446cfc['COMMAND'],'handler':(_0xa76678,_0x21d0f2)=>V[_0x49483d(0xb0)](_0xa76678,_0x21d0f2)},V={'id':_0x49483d(0xc2),'type':_0x446cfc[_0x49483d(0xba)],'handler':(_0x4317f9,_0x1ac49a)=>{const _0xb165f0=_0x49483d;if(!_0x1ac49a)return!0x1;let _0x128479=W(_0x4317f9,_0x1ac49a==null?void 0x0:_0x1ac49a[_0xb165f0(0x10b)]);if(!_0x128479)return!0x1;let _0x27a2db=D({'blockId':_0x1ac49a[_0xb165f0(0x96)],'documentData':_0x128479['previousDocumentData'],'metadata':_0x128479[_0xb165f0(0xae)][_0xb165f0(0x7c)](_0x128479[_0xb165f0(0x10b)])});if(!_0x27a2db)return!0x1;let _0x5bf9be=Y(_0x128479[_0xb165f0(0xc7)],_0x128479[_0xb165f0(0xac)],_0x128479['unitId'],_0x128479[_0xb165f0(0x106)],_0x27a2db[_0xb165f0(0xce)],V['id'],_0x27a2db['cursorOffset']);return _0x5bf9be&&_0x27a2db[_0xb165f0(0x84)]&&_0x128479['model']['deserialize'](_0x128479[_0xb165f0(0x10b)],_0x27a2db[_0xb165f0(0x84)]),_0x5bf9be;}},H={'id':_0x49483d(0xa0),'type':_0x446cfc[_0x49483d(0xba)],'handler':(_0x32bd2a,_0x71fc0f)=>{const _0xe9b79c=_0x49483d;if(!_0x71fc0f)return!0x1;let _0x8665ad=W(_0x32bd2a,_0x71fc0f==null?void 0x0:_0x71fc0f[_0xe9b79c(0x10b)]);if(!_0x8665ad)return!0x1;let _0xf6f7ec=Me({'blockId':_0x71fc0f[_0xe9b79c(0x96)],'documentData':_0x8665ad[_0xe9b79c(0x106)],'metadata':_0x8665ad[_0xe9b79c(0xae)][_0xe9b79c(0x7c)](_0x8665ad[_0xe9b79c(0x10b)])});if(!_0xf6f7ec)return!0x1;let _0x29a4fb=Y(_0x8665ad['commandService'],_0x8665ad[_0xe9b79c(0xac)],_0x8665ad['unitId'],_0x8665ad[_0xe9b79c(0x106)],_0xf6f7ec[_0xe9b79c(0xce)],H['id'],_0xf6f7ec[_0xe9b79c(0xdb)]);return _0x29a4fb&&_0xf6f7ec[_0xe9b79c(0x84)]&&_0x8665ad[_0xe9b79c(0xae)][_0xe9b79c(0x65)](_0x8665ad[_0xe9b79c(0x10b)],_0xf6f7ec[_0xe9b79c(0x84)]),_0x29a4fb;}},U={'id':_0x49483d(0xdf),'type':_0x446cfc[_0x49483d(0xba)],'handler':(_0x1a7e0e,_0x39ac38)=>{const _0x36bd4e=_0x49483d;var _0x33d82f;let _0x373be3=W(_0x1a7e0e,_0x39ac38==null?void 0x0:_0x39ac38['unitId']);if(!_0x373be3)return!0x1;let _0x3c9908=(_0x39ac38==null?void 0x0:_0x39ac38['cursorOffset'])??((_0x33d82f=G(_0x1a7e0e))==null?void 0x0:_0x33d82f[_0x36bd4e(0x10e)]);if(_0x3c9908==null)return!0x1;let _0x54d46e=Ne({'cursorOffset':_0x3c9908,'documentData':_0x373be3[_0x36bd4e(0x106)],'paragraphStartIndex':_0x39ac38==null?void 0x0:_0x39ac38['paragraphStartIndex']});return _0x54d46e?Y(_0x373be3[_0x36bd4e(0xc7)],_0x373be3['selectionManager'],_0x373be3['unitId'],_0x373be3[_0x36bd4e(0x106)],_0x54d46e[_0x36bd4e(0xce)],U['id'],_0x54d46e[_0x36bd4e(0xdb)]):!0x1;}};function W(_0xd4eb6a,_0x4cb76d){const _0x24888c=_0x49483d;let _0x4ee59d=_0xd4eb6a[_0x24888c(0xbd)](_0x1f322c),_0x3ffd57=_0x4cb76d?_0x4ee59d[_0x24888c(0xaf)](_0x4cb76d,_0x2fc27d[_0x24888c(0x100)]):_0x4ee59d['getCurrentUnitOfType'](_0x2fc27d[_0x24888c(0x100)]);return _0x3ffd57?{'commandService':_0xd4eb6a[_0x24888c(0xbd)](_0x330d40),'model':_0xd4eb6a[_0x24888c(0xbd)](w),'previousDocumentData':_0x3ffd57[_0x24888c(0xb6)](),'selectionManager':_0xd4eb6a['get'](_0x2baf85),'unitId':_0x3ffd57[_0x24888c(0x66)]()}:null;}function G(_0x34f940){const _0x4f44bd=_0x49483d;var _0x5a03b0;return(_0x5a03b0=_0x34f940[_0x4f44bd(0xbd)](_0x2baf85)[_0x4f44bd(0x6f)]())==null?void 0x0:_0x5a03b0[0x0];}function lt(_0x555859,_0x19d3df){const _0x377f13=_0x49483d;let _0x14de05=(_0x555859==null?void 0x0:_0x555859[_0x377f13(0x10e)])??(_0x19d3df==null?void 0x0:_0x19d3df[_0x377f13(0x10e)]),_0x21b04f=(_0x555859==null?void 0x0:_0x555859[_0x377f13(0x105)])??(_0x19d3df==null?void 0x0:_0x19d3df[_0x377f13(0x105)]);if(_0x14de05!=null&&_0x21b04f!=null)return{'endOffset':Math[_0x377f13(0xda)](_0x14de05,_0x21b04f),'startOffset':Math[_0x377f13(0xef)](_0x14de05,_0x21b04f)};}function ut(_0xa33196,_0x56ce2c){const _0x591e07=_0x49483d;var _0xf3b25;if(!_0x56ce2c)return;let _0x520d36=dt(_0x56ce2c);return(_0xf3b25=_0xa33196['body'])==null||(_0xf3b25=_0xf3b25[_0x591e07(0x79)])==null?void 0x0:_0xf3b25[_0x591e07(0xd5)](_0x5e51ee=>{const _0x7cb9f8=_0x591e07;let _0x5dfe9c=_0x5c8dbe(_0x5e51ee);return _0x56ce2c[_0x7cb9f8(0x10e)]===_0x56ce2c['endOffset']?_0x116958(_0x5dfe9c,_0x520d36):_0x2d8224(_0x5dfe9c,_0x520d36);});}function dt(_0x2e8a1f){const _0x35289b=_0x49483d;return _0x2e8a1f[_0x35289b(0x10e)]===_0x2e8a1f[_0x35289b(0x105)]?_0x2e8a1f[_0x35289b(0x10e)]:_0x2e8a1f['startOffset']+0x1;}function ft(_0x427789){const _0x19f654=_0x49483d;let _0x405096=G(_0x427789);if(!_0x405096)return null;let _0x2b49f8=_0x427789[_0x19f654(0xbd)](_0x1f322c)['getCurrentUnitOfType'](_0x2fc27d[_0x19f654(0x100)]),_0x21ddc4=_0x2b49f8==null?void 0x0:_0x2b49f8['getBody']();return _0x21ddc4?_0x18ba16[_0x19f654(0x10d)][_0x19f654(0xd7)](_0x405096,_0x21ddc4['paragraphs']??[],_0x21ddc4['dataStream']??'')[0x0]??null:null;}function pt(_0x222ea4,_0x2c117a){const _0x261dfb=_0x49483d;let _0x2a1c3c=_0x222ea4['body'],_0x79e5c3=_0x2c117a['body'],_0x4de52e=_0x5c68b1(_0x2a1c3c,_0x79e5c3);return[_0x4de52e&&_0x79e5c3?mt(_0x79e5c3,_0x4de52e):null,_0x4de52e?null:ht(_0x2a1c3c,_0x79e5c3)]['filter'](Boolean)[_0x261dfb(0x83)]((_0x570cd9,_0x648e99)=>_0x424cd6[_0x261dfb(0xc5)](_0x570cd9,_0x648e99),null);}function mt(_0x53d23b,_0x4171f5){const _0xb39234=_0x49483d;let _0x434ce8=new _0x227fc3();return _0x434ce8[_0xb39234(0x74)](_0x4171f5[_0xb39234(0x102)]),_0x4171f5['insertLength']>0x0&&_0x434ce8[_0xb39234(0xcb)](_0x4171f5[_0xb39234(0xec)],_0x25d42f(_0x53d23b,_0x4171f5[_0xb39234(0x102)],_0x4171f5['start']+_0x4171f5['insertLength'],!0x1)),_0x4171f5['deleteLength']>0x0&&_0x434ce8[_0xb39234(0xe1)](_0x4171f5['deleteLength']),_0x424cd6[_0xb39234(0xfe)]()[_0xb39234(0x70)](_0x434ce8[_0xb39234(0x7c)](),[_0xb39234(0xc3)]);}function ht(_0x1da439,_0x1ed598){const _0x1d21a5=_0x49483d;let _0x253ce5=[],_0x2b67a7=_0x1da439?_t(_0x1da439):void 0x0,_0x3691f0=_0x1ed598?_t(_0x1ed598):void 0x0;for(let _0x38473a of gt)K(_0x424cd6[_0x1d21a5(0xfe)](),[_0x1d21a5(0xc3),_0x38473a],_0x2b67a7==null?void 0x0:_0x2b67a7[_0x38473a],_0x3691f0==null?void 0x0:_0x3691f0[_0x38473a],_0x253ce5);return _0x253ce5[_0x1d21a5(0x83)]((_0x5dbd29,_0x57f324)=>_0x424cd6[_0x1d21a5(0xc5)](_0x5dbd29,_0x57f324),null);}const gt=[_0x49483d(0x8a),_0x49483d(0x6d),_0x49483d(0xe8),_0x49483d(0xc9),_0x49483d(0x79),_0x49483d(0x9b),'customRanges',_0x49483d(0xd8),_0x49483d(0x95)];function _t(_0x788228){return _0x788228;}function K(_0x24a0fd,_0x36df53,_0x356f6e,_0x16d58f,_0x19a41a){const _0xfba002=_0x49483d;if(!J(_0x356f6e,_0x16d58f)){if(_0x356f6e==null){_0x19a41a[_0xfba002(0xde)](_0x24a0fd[_0xfba002(0x101)](_0x36df53,_0x16d58f));return;}if(_0x16d58f==null){_0x19a41a[_0xfba002(0xde)](_0x24a0fd[_0xfba002(0xf0)](_0x36df53,_0x356f6e));return;}if(Array[_0xfba002(0x67)](_0x356f6e)&&Array[_0xfba002(0x67)](_0x16d58f)){vt(_0x24a0fd,_0x36df53,_0x356f6e,_0x16d58f,_0x19a41a);return;}if(q(_0x356f6e)&&q(_0x16d58f)){new Set([...Object[_0xfba002(0xc1)](_0x356f6e),...Object[_0xfba002(0xc1)](_0x16d58f)])['forEach'](_0x4efe8b=>{K(_0x24a0fd,[..._0x36df53,_0x4efe8b],_0x356f6e[_0x4efe8b],_0x16d58f[_0x4efe8b],_0x19a41a);});return;}_0x19a41a[_0xfba002(0xde)](_0x24a0fd[_0xfba002(0xaa)](_0x36df53,_0x356f6e,_0x16d58f));}}function vt(_0x308964,_0x597f92,_0x1a7922,_0x3ef404,_0x1663fc){const _0x22e6c0=_0x49483d;if(_0x1a7922[_0x22e6c0(0xa3)]===_0x3ef404[_0x22e6c0(0xa3)]){_0x1a7922[_0x22e6c0(0xe5)]((_0x211b4e,_0x1d73d1)=>K(_0x308964,[..._0x597f92,_0x1d73d1],_0x211b4e,_0x3ef404[_0x1d73d1],_0x1663fc));return;}let _0x117c98=0x0;for(;_0x117c98<_0x1a7922[_0x22e6c0(0xa3)]&&_0x117c98<_0x3ef404['length']&&J(_0x1a7922[_0x117c98],_0x3ef404[_0x117c98]);)_0x117c98++;let _0x15a85a=_0x1a7922['length']-0x1,_0x278a39=_0x3ef404[_0x22e6c0(0xa3)]-0x1;for(;_0x15a85a>=_0x117c98&&_0x278a39>=_0x117c98&&J(_0x1a7922[_0x15a85a],_0x3ef404[_0x278a39]);)_0x15a85a--,_0x278a39--;for(let _0x43fb6a=_0x15a85a;_0x43fb6a>=_0x117c98;_0x43fb6a--)_0x1663fc[_0x22e6c0(0xde)](_0x308964[_0x22e6c0(0xf0)]([..._0x597f92,_0x43fb6a],_0x1a7922[_0x43fb6a]));for(let _0x3c12d1=_0x117c98;_0x3c12d1<=_0x278a39;_0x3c12d1++)_0x1663fc[_0x22e6c0(0xde)](_0x308964[_0x22e6c0(0x101)]([..._0x597f92,_0x3c12d1],_0x3ef404[_0x3c12d1]));}function q(_0x4797f5){const _0x5d12d5=_0x49483d;return typeof _0x4797f5=='object'&&!!_0x4797f5&&!Array[_0x5d12d5(0x67)](_0x4797f5);}function J(_0x5a92d8,_0x3219c0){const _0x534fbb=_0x49483d;return JSON[_0x534fbb(0x9f)](_0x5a92d8)===JSON[_0x534fbb(0x9f)](_0x3219c0);}function Y(_0x2b8fb0,_0x5ae991,_0x13d374,_0x2c033f,_0x31579f,_0x308447,_0x3db8be){const _0x2c80f3=_0x49483d;let _0x528c68=pt(_0x2c033f,_0x31579f);return _0x528c68?!!_0x2b8fb0[_0x2c80f3(0xe6)](_0x274029['id'],{'unitId':_0x13d374,'actions':_0x528c68,'textRanges':[{'startOffset':_0x3db8be,'endOffset':_0x3db8be,'collapsed':!0x0}],'isEditing':!0x1,'trigger':_0x308447}):(_0x5ae991[_0x2c80f3(0xa4)]([{'startOffset':_0x3db8be,'endOffset':_0x3db8be}],{'unitId':_0x13d374,'subUnitId':_0x13d374},!0x1),!0x0);}const X=_0x49483d(0x76);var yt=_0x49483d(0x88),bt=_0x49483d(0x7d);const xt={};function Z(_0x42699c,_0x3da817){return function(_0x78651b,_0x411faa){_0x3da817(_0x78651b,_0x411faa,_0x42699c);};}function St(_0x1fb6a7,_0x440249,_0x3b8ed4,_0x561e80){const _0x1f96ee=_0x49483d;var _0x1b43ba=arguments[_0x1f96ee(0xa3)],_0x423ae9=_0x1b43ba<0x3?_0x440249:_0x561e80===null?_0x561e80=Object['getOwnPropertyDescriptor'](_0x440249,_0x3b8ed4):_0x561e80,_0x2ba52f;if(typeof Reflect=='object'&&typeof Reflect['decorate']==_0x1f96ee(0x104))_0x423ae9=Reflect[_0x1f96ee(0xcd)](_0x1fb6a7,_0x440249,_0x3b8ed4,_0x561e80);else{for(var _0x12c472=_0x1fb6a7[_0x1f96ee(0xa3)]-0x1;_0x12c472>=0x0;_0x12c472--)(_0x2ba52f=_0x1fb6a7[_0x12c472])&&(_0x423ae9=(_0x1b43ba<0x3?_0x2ba52f(_0x423ae9):_0x1b43ba>0x3?_0x2ba52f(_0x440249,_0x3b8ed4,_0x423ae9):_0x2ba52f(_0x440249,_0x3b8ed4))||_0x423ae9);}return _0x1b43ba>0x3&&_0x423ae9&&Object['defineProperty'](_0x440249,_0x3b8ed4,_0x423ae9),_0x423ae9;}let Q=class extends _0x24e448{constructor(_0x1ee959,_0xb4519d){const _0x58c2d7=_0x49483d;super(),this[_0x58c2d7(0xbb)]=_0x1ee959,this[_0x58c2d7(0xab)]=_0xb4519d,this[_0x58c2d7(0xa5)]();}['_initResource'](){const _0x296147=_0x49483d;this[_0x296147(0xe2)](this[_0x296147(0xbb)][_0x296147(0xcc)]({'pluginName':X,'businesses':[_0x2fc27d[_0x296147(0x100)]],'toJson':_0x300f4=>JSON['stringify'](this[_0x296147(0xab)][_0x296147(0x7c)](_0x300f4)),'parseJson':_0x3cfe2e=>y(JSON[_0x296147(0xd2)](_0x3cfe2e)),'onLoad':(_0x2b4d4d,_0x20dbc8)=>this[_0x296147(0xab)][_0x296147(0x65)](_0x2b4d4d,_0x20dbc8),'onUnLoad':_0x16b5c9=>this[_0x296147(0xab)]['removeUnit'](_0x16b5c9)}));}};Q=St([Z(0x0,_0x4ec5e9),Z(0x1,_0x34c829(w))],Q);let $=class extends _0x5a8ee0{constructor(_0x222113=xt,_0x18758b,_0x590d25,_0x26903b){const _0x146d8d=_0x49483d;super(),this[_0x146d8d(0xb5)]=_0x222113,this[_0x146d8d(0x6a)]=_0x18758b,this[_0x146d8d(0xd6)]=_0x590d25,this[_0x146d8d(0xfc)]=_0x26903b;let {..._0x172860}=_0x1470e9({},xt,this[_0x146d8d(0xb5)]);this[_0x146d8d(0xfc)]['setConfig'](_0x146d8d(0x6e),_0x172860);}[_0x49483d(0x107)](){const _0x5207d1=_0x49483d;this['_injector'][_0x5207d1(0x7e)]([w]),this[_0x5207d1(0x6a)]['add']([Q]),this['_injector'][_0x5207d1(0xbd)](w),this[_0x5207d1(0x6a)][_0x5207d1(0xbd)](Q),[B,at,st,V,H,ct,U,ot,Te,T][_0x5207d1(0xe5)](_0x5dc876=>this['disposeWithMe'](this['_commandService'][_0x5207d1(0x8b)](_0x5dc876)));}};C($,_0x49483d(0xf8),X),C($,_0x49483d(0xa1),yt),C($,_0x49483d(0x109),bt),C($,_0x49483d(0x108),_0x2fc27d[_0x49483d(0x100)]),$=St([_0x5aaaeb(_0xecd332,_0x565d36),Z(0x1,_0x34c829(_0x38f326)),Z(0x2,_0x330d40),Z(0x3,_0x5ce515)],$);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};
|