@univerjs-pro/docs-formula 1.1.0 → 1.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x18accd=_0x7514;(function(_0x273c35,_0x52e647){const _0x4aa040=_0x7514,_0x43da88=_0x273c35();while(!![]){try{const _0x21cc0c=-parseInt(_0x4aa040(0x1e1))/0x1*(parseInt(_0x4aa040(0x216))/0x2)+parseInt(_0x4aa040(0x24c))/0x3+-parseInt(_0x4aa040(0x1fc))/0x4*(parseInt(_0x4aa040(0x262))/0x5)+parseInt(_0x4aa040(0x243))/0x6*(parseInt(_0x4aa040(0x1c7))/0x7)+-parseInt(_0x4aa040(0x219))/0x8*(-parseInt(_0x4aa040(0x22e))/0x9)+parseInt(_0x4aa040(0x273))/0xa+-parseInt(_0x4aa040(0x256))/0xb*(parseInt(_0x4aa040(0x17b))/0xc);if(_0x21cc0c===_0x52e647)break;else _0x43da88['push'](_0x43da88['shift']());}catch(_0x564810){_0x43da88['push'](_0x43da88['shift']());}}}(_0x5397,0x9962a));import{FormulaCacheEligibilityService as _0x562e65,FormulaLastValuePersistenceService as _0x29a8c7,HostExternalReferenceModel as _0x39d327,UniverProFormulaEnginePlugin as _0x351eb2,buildUpsertHostExternalReferenceMutations as _0x52d94b,collectFormulaExternalReferenceQualifiers as _0x32274e,getScalarFormulaResultCell as _0x1f7dc0,resolveFormulaResultPresentation as _0x3cd2e8,resolveHostFormulaExternalReferences as _0x4ac795,toFormulaLastValue as _0x1d1d0a}from'@univerjs-pro/engine-formula';import{CellValueType as _0x3666f9,CommandType as _0x2c4aaa,CustomRangeType as _0x5034d1,DataStreamTreeTokenType as _0x2170ed,DependentOn as _0x2a626f,Disposable as _0x474e08,ICommandService as _0x222411,IConfigService as _0x2701f4,IResourceManagerService as _0x3b184b,IUndoRedoService as _0x513fde,IUniverInstanceService as _0x478f5d,Inject as _0x2bb8ca,Injector as _0x21727e,JSONX as _0x25fe93,Plugin as _0x2ed24f,TextX as _0x4c112a,Tools as _0x240c37,UniverInstanceType as _0x50d692,generateRandomId as _0x13e167,getBodySliceForTextXAction as _0x4d9adf,getCustomRangeInterval as _0x150f27,getParagraphContentStartOffset as _0x1c8c1a,getRichTextEditPath as _0x27773c,merge as _0x350a4c,shiftExclusiveRangeOnDelete as _0x1f2bf4,shiftExclusiveRangeOnInsert as _0x577f8f,shiftInclusiveRangeOnDelete as _0x594244,shiftInclusiveRangeOnInsert as _0x31a096,touchDependencies as _0x2ca687}from'@univerjs/core';import{DOC_SELECTION_OPTION_PRESERVE_CARET as _0x3ef325,DocSelectionManagerService as _0x32a2c9,DocTextResolverService as _0x329faf,RichTextEditingMutation as _0x2fe09d,UniverDocsPlugin as _0x5b3025}from'@univerjs/docs';import{FormulaResultStatus as _0x1f2db9,LexerTreeBuilder as _0x4914fd,OtherFormulaBizType as _0x2ec085,RegisterOtherFormulaService as _0x1a621d}from'@univerjs/engine-formula';import{Subject as _0x1ec16e}from'rxjs';import{UniverLicensePlugin as _0x3c3fb2}from'@univerjs-pro/license';const y='DOC_FORMULA_PLUGIN',je=0x1,Me=_0x18accd(0x1dd),Ne='';function b(){return{'schemaVersion':0x1,'formulas':{}};}function x(_0x344097){const _0x3c82e6=_0x18accd;return!_0x344097||typeof _0x344097!=_0x3c82e6(0x224)||!S(_0x344097,[_0x3c82e6(0x1b6),_0x3c82e6(0x1b9)])||!(_0x3c82e6(0x1b6)in _0x344097)||_0x344097[_0x3c82e6(0x1b6)]!==0x1||!(_0x3c82e6(0x1b9)in _0x344097)||!_0x344097[_0x3c82e6(0x1b9)]||typeof _0x344097['formulas']!=_0x3c82e6(0x224)||Array['isArray'](_0x344097[_0x3c82e6(0x1b9)])?!0x1:Object[_0x3c82e6(0x1c5)](_0x344097['formulas'])[_0x3c82e6(0x197)](([_0x2ca7ad,_0x288a19])=>_0x2ca7ad[_0x3c82e6(0x230)]>0x0&&Pe(_0x288a19));}function Pe(_0x3f5b06){const _0x5430b8=_0x18accd;return!_0x3f5b06||typeof _0x3f5b06!=_0x5430b8(0x224)||!S(_0x3f5b06,['formula',_0x5430b8(0x255),'lastValue'])||!('formula'in _0x3f5b06)||typeof _0x3f5b06[_0x5430b8(0x193)]!=_0x5430b8(0x218)||!_0x3f5b06[_0x5430b8(0x193)][_0x5430b8(0x272)]()||_0x5430b8(0x255)in _0x3f5b06&&_0x3f5b06[_0x5430b8(0x255)]!=null&&(typeof _0x3f5b06['numberFormat']!=_0x5430b8(0x224)||!S(_0x3f5b06[_0x5430b8(0x255)],[_0x5430b8(0x1f9)])||!(_0x5430b8(0x1f9)in _0x3f5b06[_0x5430b8(0x255)])||typeof _0x3f5b06[_0x5430b8(0x255)][_0x5430b8(0x1f9)]!=_0x5430b8(0x218))?!0x1:!(_0x5430b8(0x191)in _0x3f5b06)||_0x3f5b06[_0x5430b8(0x191)]==null||Fe(_0x3f5b06[_0x5430b8(0x191)]);}function Fe(_0x5eb3da){const _0x3fa065=_0x18accd;return!_0x5eb3da||typeof _0x5eb3da!=_0x3fa065(0x224)||!S(_0x5eb3da,['v','t',_0x3fa065(0x1f9)])||!('v'in _0x5eb3da)||_0x5eb3da['v']!==null&&typeof _0x5eb3da['v']!=_0x3fa065(0x218)&&typeof _0x5eb3da['v']!=_0x3fa065(0x232)&&typeof _0x5eb3da['v']!=_0x3fa065(0x26c)||'t'in _0x5eb3da&&_0x5eb3da['t']!=null&&!Ie(_0x5eb3da['t'])?!0x1:!(_0x3fa065(0x1f9)in _0x5eb3da)||_0x5eb3da['pattern']==null||typeof _0x5eb3da['pattern']==_0x3fa065(0x218);}function S(_0x2169c6,_0x2b70a2){const _0x5c6840=_0x18accd;let _0x2efa87=new Set(_0x2b70a2);return Object[_0x5c6840(0x1c9)](_0x2169c6)[_0x5c6840(0x197)](_0x5d4a45=>_0x2efa87[_0x5c6840(0x1f5)](_0x5d4a45));}function Ie(_0x4d834f){const _0x2e85bd=_0x18accd;return typeof _0x4d834f==_0x2e85bd(0x232)&&Object[_0x2e85bd(0x269)](_0x3666f9)[_0x2e85bd(0x258)](_0x4d834f);}const Le=new Set([_0x2170ed[_0x18accd(0x1b7)],_0x2170ed[_0x18accd(0x174)],_0x2170ed[_0x18accd(0x1c4)],_0x2170ed[_0x18accd(0x1d1)],_0x2170ed['TABLE_CELL_END'],_0x2170ed[_0x18accd(0x206)],_0x2170ed['TABLE_END'],_0x2170ed[_0x18accd(0x1d4)],_0x2170ed[_0x18accd(0x22c)],_0x2170ed[_0x18accd(0x17c)],_0x2170ed[_0x18accd(0x245)],_0x2170ed[_0x18accd(0x19d)],_0x2170ed[_0x18accd(0x214)],_0x2170ed[_0x18accd(0x1ef)]]);var C=class extends Error{constructor(){const _0x15c723=_0x18accd;super(_0x15c723(0x1e5));}};function Re(_0x54cee4){const _0x4a1aa7=_0x18accd;var _0x7803a7,_0x4d47a9;let _0x4ca420=_0x240c37[_0x4a1aa7(0x1a4)](_0x54cee4['documentData']),_0x3b7cb2=j(_0x4ca420),{startOffset:_0x4b9650,endOffset:_0x1e7fa8}=We(_0x3b7cb2,_0x54cee4[_0x4a1aa7(0x23d)],_0x54cee4[_0x4a1aa7(0x200)]);He(_0x3b7cb2,_0x4b9650,_0x1e7fa8);let _0xf41f6b=((_0x7803a7=_0x3b7cb2[_0x4a1aa7(0x1a6)])==null?void 0x0:_0x7803a7['filter'](_0x4463b7=>{const _0x59a358=_0x4a1aa7;if(!w(_0x4463b7))return!0x1;let _0x5bffdb=_0x150f27(_0x4463b7);return _0x5bffdb[_0x59a358(0x200)]>_0x4b9650&&_0x5bffdb[_0x59a358(0x23d)]<_0x1e7fa8;})[_0x4a1aa7(0x1f3)](_0x3f52ba=>_0x3f52ba[_0x4a1aa7(0x251)]))??[];qe(_0x3b7cb2,_0x4b9650,_0x1e7fa8,''),_0x3b7cb2[_0x4a1aa7(0x1a6)]=[...((_0x4d47a9=_0x3b7cb2['customRanges'])==null?void 0x0:_0x4d47a9[_0x4a1aa7(0x252)](_0x5e9681=>!_0xf41f6b[_0x4a1aa7(0x258)](_0x5e9681['rangeId'])&&_0x5e9681[_0x4a1aa7(0x251)]!==_0x54cee4[_0x4a1aa7(0x251)]))??[],Ue(_0x54cee4['rangeId'],_0x4b9650)][_0x4a1aa7(0x1dc)]((_0x200734,_0x2388ab)=>_0x200734[_0x4a1aa7(0x24f)]-_0x2388ab[_0x4a1aa7(0x24f)]);let _0x1261da=E(_0x54cee4[_0x4a1aa7(0x192)]);return _0xf41f6b['forEach'](_0x110c5d=>{const _0x5bf302=_0x4a1aa7;delete _0x1261da[_0x5bf302(0x1b9)][_0x110c5d];}),_0x1261da[_0x4a1aa7(0x1b9)][_0x54cee4[_0x4a1aa7(0x251)]]=_0x240c37['deepClone'](_0x54cee4['config']),{'nextDocumentData':_0x4ca420,'nextResource':_0x1261da,'cursorOffset':_0x4b9650+0x1};}function ze(_0x2a4391){const _0xa6368f=_0x18accd;var _0x39a7ce,_0x250a9d;let _0x20c2cc=_0x240c37[_0xa6368f(0x1a4)](_0x2a4391[_0xa6368f(0x17e)]),_0x4c2a4f=(_0x39a7ce=j(_0x20c2cc)['customRanges'])==null?void 0x0:_0x39a7ce['find'](_0x1f4ce3=>_0x1f4ce3[_0xa6368f(0x251)]===_0x2a4391[_0xa6368f(0x251)]&&w(_0x1f4ce3));if(!_0x4c2a4f||!((_0x250a9d=_0x2a4391['resource'])!=null&&_0x250a9d[_0xa6368f(0x1b9)][_0x2a4391[_0xa6368f(0x251)]]))return null;let _0x3c1b47=E(_0x2a4391[_0xa6368f(0x192)]);return _0x3c1b47[_0xa6368f(0x1b9)][_0x2a4391[_0xa6368f(0x251)]]=_0x240c37['deepClone'](_0x2a4391[_0xa6368f(0x1ba)]),{'nextDocumentData':_0x20c2cc,'nextResource':_0x3c1b47,'cursorOffset':_0x4c2a4f['endIndex']+0x1};}function Be(_0x1cead2){const _0x4ac730=_0x18accd;let _0x195b93=_0x240c37['deepClone'](_0x1cead2['documentData']),_0x3c2a90=Je(_0x195b93,_0x1cead2[_0x4ac730(0x251)],_0x1cead2['text']??'');if(_0x3c2a90==null)return null;let _0x24e595=E(_0x1cead2[_0x4ac730(0x192)]);return delete _0x24e595[_0x4ac730(0x1b9)][_0x1cead2[_0x4ac730(0x251)]],{'nextDocumentData':_0x195b93,'nextResource':_0x24e595,'cursorOffset':_0x3c2a90};}function Ve(_0x53e3f1,_0x395441){const _0x3f424e=_0x18accd;var _0x1119bf;let _0x124bee=_0x240c37['deepClone'](_0x53e3f1),_0x3b4054=_0x124bee[_0x3f424e(0x212)];if(!_0x3b4054)return _0x124bee;let _0x5b2344=new Map(_0x395441[_0x3f424e(0x1f3)](_0xb317c9=>[_0xb317c9[_0x3f424e(0x251)],_0xb317c9['text']])),_0x5abc6e=((_0x1119bf=_0x3b4054[_0x3f424e(0x1a6)])==null?void 0x0:_0x1119bf[_0x3f424e(0x252)](_0x2fc614=>w(_0x2fc614)&&_0x5b2344[_0x3f424e(0x1f5)](_0x2fc614['rangeId']))[_0x3f424e(0x1dc)]((_0x522338,_0x14dfe9)=>_0x14dfe9[_0x3f424e(0x24f)]-_0x522338['startIndex']))??[];for(let _0x5dee21 of _0x5abc6e)Je(_0x124bee,_0x5dee21[_0x3f424e(0x251)],_0x5b2344[_0x3f424e(0x1ab)](_0x5dee21['rangeId'])??'');return _0x124bee;}function w(_0x484d73){const _0x32ab81=_0x18accd;var _0x5c91ac;return(_0x484d73==null?void 0x0:_0x484d73[_0x32ab81(0x176)])===_0x5034d1[_0x32ab81(0x231)]&&_0x484d73[_0x32ab81(0x240)]===!0x0&&((_0x5c91ac=_0x484d73[_0x32ab81(0x20f)])==null?void 0x0:_0x5c91ac[_0x32ab81(0x268)])===_0x32ab81(0x1dd);}function T(_0x56a2d3,_0x3e5208){const _0x30ab57=_0x18accd;var _0x1feebd;return _0x56a2d3==null||(_0x1feebd=_0x56a2d3[_0x30ab57(0x1a6)])==null?void 0x0:_0x1feebd[_0x30ab57(0x20a)](_0x511678=>_0x511678[_0x30ab57(0x251)]===_0x3e5208&&w(_0x511678));}function He(_0x3be2be,_0x1efa2a,_0x7f8b40){const _0x5884a0=_0x18accd;if(_0x1efa2a===_0x7f8b40){if(Le[_0x5884a0(0x1f5)](_0x3be2be['dataStream'][_0x1efa2a]))throw new C();}else{for(let _0x84ed1f=_0x1efa2a;_0x84ed1f<_0x7f8b40;_0x84ed1f++)if(_0x3be2be[_0x5884a0(0x1d2)][_0x84ed1f]===_0x2170ed['PARAGRAPH']||Le[_0x5884a0(0x1f5)](_0x3be2be[_0x5884a0(0x1d2)][_0x84ed1f]))throw new C();}}function Ue(_0xb20bc5,_0x2c5561){const _0x5ccaa9=_0x18accd;return{'startIndex':_0x2c5561,'endIndex':_0x2c5561,'rangeId':_0xb20bc5,'rangeType':_0x5034d1[_0x5ccaa9(0x231)],'wholeEntity':!0x0,'properties':{'kind':Me}};}function E(_0x2e474f){const _0x501889=_0x18accd;return _0x2e474f?_0x240c37[_0x501889(0x1a4)](_0x2e474f):b();}function We(_0x1ae661,_0x58700e,_0x2a8704){const _0x12cdb8=_0x18accd;let _0x363931=Ke(_0x1ae661),_0x142722=_0x58700e??_0x363931,_0x35ed94=_0x2a8704??_0x142722;return{'startOffset':Ge(Math[_0x12cdb8(0x1da)](_0x142722,_0x35ed94),_0x363931),'endOffset':Ge(Math[_0x12cdb8(0x1d6)](_0x142722,_0x35ed94),_0x363931)};}function Ge(_0x58958b,_0x2e2cd4){const _0x315b4e=_0x18accd;return Math[_0x315b4e(0x1d6)](0x0,Math['min'](_0x58958b,_0x2e2cd4));}function Ke(_0x18ce3d){const _0x1222c1=_0x18accd;return _0x18ce3d[_0x1222c1(0x1d2)][_0x1222c1(0x1b3)](''+_0x2170ed[_0x1222c1(0x1fd)]+_0x2170ed[_0x1222c1(0x1b7)])?Math[_0x1222c1(0x1d6)](0x0,_0x18ce3d[_0x1222c1(0x1d2)][_0x1222c1(0x230)]-0x2):_0x18ce3d[_0x1222c1(0x1d2)][_0x1222c1(0x1b3)](_0x2170ed[_0x1222c1(0x1b7)])?Math[_0x1222c1(0x1d6)](0x0,_0x18ce3d['dataStream']['length']-0x1):_0x18ce3d[_0x1222c1(0x1d2)]['length'];}function qe(_0x110ad0,_0x23c137,_0x24a03f,_0x347c6c){_0x24a03f>_0x23c137&&Xe(_0x110ad0,_0x23c137,_0x24a03f),Ye(_0x110ad0,_0x23c137,_0x347c6c);}function Je(_0x2a8b40,_0x433896,_0x45b4d5){const _0x2b04fe=_0x18accd;var _0x325f85,_0x4bd112;let _0x46c205=j(_0x2a8b40),_0x415d15=(_0x325f85=_0x46c205[_0x2b04fe(0x1a6)])==null?void 0x0:_0x325f85[_0x2b04fe(0x20a)](_0x55b043=>_0x55b043['rangeId']===_0x433896&&w(_0x55b043));if(!_0x415d15)return null;let _0x1e8069=_0x150f27(_0x415d15);return qe(_0x46c205,_0x1e8069['startOffset'],_0x1e8069[_0x2b04fe(0x200)],_0x45b4d5),_0x46c205['customRanges']=(_0x4bd112=_0x46c205['customRanges'])==null?void 0x0:_0x4bd112['filter'](_0x162182=>_0x162182[_0x2b04fe(0x251)]!==_0x433896),_0x1e8069[_0x2b04fe(0x23d)]+_0x45b4d5[_0x2b04fe(0x230)];}function Ye(_0x1cafbc,_0x22c125,_0x7db800){const _0xca0d75=_0x18accd;_0x7db800&&(_0x1cafbc[_0xca0d75(0x1d2)]=''+_0x1cafbc[_0xca0d75(0x1d2)][_0xca0d75(0x22a)](0x0,_0x22c125)+_0x7db800+_0x1cafbc['dataStream'][_0xca0d75(0x22a)](_0x22c125),Ze(_0x1cafbc,_0x22c125,_0x7db800[_0xca0d75(0x230)]));}function Xe(_0xdd9274,_0x4e2b9f,_0x4696aa){const _0x5e9033=_0x18accd;let _0x20d945=_0x4696aa-_0x4e2b9f;_0xdd9274[_0x5e9033(0x1d2)]=''+_0xdd9274[_0x5e9033(0x1d2)][_0x5e9033(0x22a)](0x0,_0x4e2b9f)+_0xdd9274[_0x5e9033(0x1d2)][_0x5e9033(0x22a)](_0x4696aa),Qe(_0xdd9274,_0x4e2b9f,_0x20d945);}function Ze(_0x1a1957,_0x19ca08,_0x45af4c){const _0x378a35=_0x18accd;_0x1a1957[_0x378a35(0x18d)]=D(_0x1a1957[_0x378a35(0x18d)],_0x19ca08,_0x45af4c),_0x1a1957[_0x378a35(0x20e)]=D(_0x1a1957[_0x378a35(0x20e)],_0x19ca08,_0x45af4c),_0x1a1957[_0x378a35(0x18c)]=D(_0x1a1957['customBlocks'],_0x19ca08,_0x45af4c),_0x1a1957['textRuns']=$e(_0x1a1957[_0x378a35(0x1e4)],_0x19ca08,_0x45af4c),_0x1a1957[_0x378a35(0x20b)]=et(_0x1a1957['tables'],_0x19ca08,_0x45af4c),_0x1a1957[_0x378a35(0x270)]=k(_0x1a1957[_0x378a35(0x270)],_0x19ca08,_0x45af4c),_0x1a1957[_0x378a35(0x1a6)]=k(_0x1a1957['customRanges'],_0x19ca08,_0x45af4c),_0x1a1957[_0x378a35(0x1cd)]=k(_0x1a1957['customDecorations'],_0x19ca08,_0x45af4c),_0x1a1957['blockRanges']=k(_0x1a1957['blockRanges'],_0x19ca08,_0x45af4c);}function _0x5397(){const _0x2b8957=['formulaId','paragraph','pattern','startsWith','EMPTY','132esgrMo','PARAGRAPH','model','_formulaKeys','endOffset','deleteFormula','trigger','unsupported-version','registerFormulaWithRange','pushUndoRedo','TABLE_ROW_END','range','parse','decorate','find','tables','docs-formula.command.remove','_presentationChanged$','sectionBreaks','properties','insertLength','_hostExternalReferenceModel','body','invalid-resource','BLOCK_END','registerPluginResource','1097396tEbydu','documentRedo','string','8LZBHpj','_deleteRegistration','docs-formula.command.replace-with-text','cell','setFormula','defineProperty','redoMutation','expectedNumberFormat','blockRanges','getBody','disposeWithMe','object','some','_rawResources','_commandService','_univerInstanceService','resourceRedo','slice','replaceDocRanges','COLUMN_START','docs-formula.mutation.set-formula','10342791tomNcH','docs-formula.config','length','CUSTOM','number','function','sequenceNodesBuilder','empty','selection','serialize','_queueSync','isInteger','nextResource','resourceUndo','docs-formula.command.insert','startOffset','symbol','_syncUnit','wholeEntity','getResult','text','1014YJGGnd','color','COLUMN_GROUP_END','externalMutations','liveResult','setResource','setFormulas','cursorOffset','_cacheEligibilityService','450867DfRcBS','UNIVER_DOC','externalReferences','startIndex','type','rangeId','filter','push','document','numberFormat','11ttnRiE','getUnit','includes','resolveText','getFormula','delete','change$','docs-formula.command.set-number-format','assign','default','eligible','getLoadError','73195LmCjnD','resources','updates','_updateFormulaResult','getUnitId','clear','kind','values','getResource','getFormulas','boolean','getRevision','_change$','referenceRevision','columnGroups','resolveFormula','trim','234590MUUdJC','_loadErrors','TABLE_START','identity','rangeType','docs-formula.command.update','nextDocumentData','_configService','version','5380896YrmuEk','COLUMN_END','DOC_FORMULA_PLUGIN','documentData','_model','deleteLength','_service','call','removeFormula','stringify','expectedFormula','dispose','editOp','next','presentation','asObservable','data','customBlocks','paragraphs','status','getTextRanges','MUTATION','lastValue','resource','formula','_setPresentation','getCurrentUnitOfType','accessor','every','unregister','retain','load','_config','forEach','BLOCK_START','references','endIndex','getPresentation','segmentId','unregisterUnit','_isDisposed','deepClone','success','customRanges','_pendingUnitIds','register','ERROR','start','get','_resources','unitId','unitDisposed$','add','resolved','getSnapshot','syncUnit','endsWith','_instanceService','degradeDocumentData','schemaVersion','SECTION_BREAK','syncExecuteCommand','formulas','config','removeUnit','_registrationService','complete','error','_registrations','prototype','target','presentationChanged$','onCommandExecuted','TABLE_ROW_START','entries','resolveBinding','32536JmBRsu','name','keys','getOwnPropertyDescriptor','stale','setConfig','customDecorations','_formulaService','Document\x20main\x20body\x20is\x20required\x20to\x20insert\x20Doc\x20Formula.','PENDING','TABLE_CELL_START','dataStream','subscribe','COLUMN_GROUP_START','set','max','onStarting','SUCCESS','_preserveInvalid','min','iterator','sort','univer-docs-formula','pluginName','params','_docFormulaModel','1PpzLRN','position','_injector','textRuns','Doc\x20Formula\x20range\x20cannot\x20cross\x20document\x20structure\x20boundaries','source','registerCommand','getFormulaValueSync','pending','formulaResult$','_syncScheduled','from','insert','previousDocumentData','CUSTOM_BLOCK','COMMAND','undoMutation','getRegisteredFormulas','map','getInstance','has','getAllUnitsForType'];_0x5397=function(){return _0x2b8957;};return _0x5397();}function Qe(_0x1eddb0,_0x814e3f,_0x51e098){const _0xd7baac=_0x18accd;var _0x3adf4e,_0xe627d5;_0x1eddb0[_0xd7baac(0x18d)]=O(_0x1eddb0['paragraphs'],_0x814e3f,_0x51e098),_0x1eddb0[_0xd7baac(0x20e)]=O(_0x1eddb0[_0xd7baac(0x20e)],_0x814e3f,_0x51e098),_0x1eddb0[_0xd7baac(0x18c)]=O(_0x1eddb0[_0xd7baac(0x18c)],_0x814e3f,_0x51e098),_0x1eddb0['textRuns']=(_0x3adf4e=tt((_0xe627d5=_0x1eddb0['textRuns'])==null?void 0x0:_0xe627d5['map'](_0x414ef8=>({..._0x414ef8,'startIndex':_0x414ef8['st'],'endIndex':_0x414ef8['ed']})),_0x814e3f,_0x51e098))==null?void 0x0:_0x3adf4e[_0xd7baac(0x1f3)](_0x5c77cc=>{let {startIndex:_0x4b55bc,endIndex:_0x552e87,..._0x353b1f}=_0x5c77cc;return{..._0x353b1f,'st':_0x4b55bc,'ed':_0x552e87};}),_0x1eddb0[_0xd7baac(0x20b)]=tt(_0x1eddb0['tables'],_0x814e3f,_0x51e098),_0x1eddb0['columnGroups']=A(_0x1eddb0['columnGroups'],_0x814e3f,_0x51e098),_0x1eddb0['customRanges']=A(_0x1eddb0[_0xd7baac(0x1a6)],_0x814e3f,_0x51e098),_0x1eddb0[_0xd7baac(0x1cd)]=A(_0x1eddb0[_0xd7baac(0x1cd)],_0x814e3f,_0x51e098),_0x1eddb0[_0xd7baac(0x221)]=A(_0x1eddb0[_0xd7baac(0x221)],_0x814e3f,_0x51e098);}function D(_0x2bb4e4,_0x3c3e72,_0x4beb38){const _0x3c4b66=_0x18accd;return _0x2bb4e4==null?void 0x0:_0x2bb4e4[_0x3c4b66(0x1f3)](_0x5ba4a9=>_0x5ba4a9[_0x3c4b66(0x24f)]>=_0x3c3e72?{..._0x5ba4a9,'startIndex':_0x5ba4a9[_0x3c4b66(0x24f)]+_0x4beb38}:_0x5ba4a9);}function O(_0x5dcd7f,_0x2011c0,_0x16deca){const _0x3b5e55=_0x18accd;let _0x599e09=_0x2011c0+_0x16deca;return _0x5dcd7f==null?void 0x0:_0x5dcd7f[_0x3b5e55(0x1f3)](_0x487c1c=>_0x487c1c[_0x3b5e55(0x24f)]>=_0x2011c0&&_0x487c1c[_0x3b5e55(0x24f)]<_0x599e09?null:_0x487c1c['startIndex']>=_0x599e09?{..._0x487c1c,'startIndex':_0x487c1c[_0x3b5e55(0x24f)]-_0x16deca}:_0x487c1c)[_0x3b5e55(0x252)](_0x57267b=>_0x57267b!=null);}function $e(_0x305acd,_0x3e4312,_0x405c18){const _0x5995f8=_0x18accd;return _0x305acd==null?void 0x0:_0x305acd[_0x5995f8(0x1f3)](_0xc71178=>_0xc71178['st']>=_0x3e4312?{..._0xc71178,'st':_0xc71178['st']+_0x405c18,'ed':_0xc71178['ed']+_0x405c18}:_0xc71178['ed']>_0x3e4312?{..._0xc71178,'ed':_0xc71178['ed']+_0x405c18}:_0xc71178);}function k(_0x4e97e1,_0x2c2e32,_0x5ce83c){return _0x4e97e1==null?void 0x0:_0x4e97e1['map'](_0x160fea=>_0x31a096(_0x160fea,_0x2c2e32,_0x5ce83c));}function et(_0x5f5d3e,_0x283588,_0x565763){const _0x299c01=_0x18accd;return _0x5f5d3e==null?void 0x0:_0x5f5d3e[_0x299c01(0x1f3)](_0x1262ba=>_0x577f8f(_0x1262ba,_0x283588,_0x565763));}function A(_0x3469f0,_0x2a3403,_0x34a708){const _0x283fe6=_0x18accd;return _0x3469f0==null?void 0x0:_0x3469f0[_0x283fe6(0x1f3)](_0x5bada8=>_0x594244(_0x5bada8,_0x2a3403,_0x34a708))[_0x283fe6(0x252)](_0x276490=>_0x276490!=null);}function tt(_0x6cd74a,_0x6f48fc,_0x344e9a){const _0xf72a5c=_0x18accd;return _0x6cd74a==null?void 0x0:_0x6cd74a['map'](_0xf7ad2a=>_0x1f2bf4(_0xf7ad2a,_0x6f48fc,_0x344e9a))[_0xf72a5c(0x252)](_0x107c21=>_0x107c21!=null);}function j(_0x30eed3){const _0x35f2df=_0x18accd;if(!_0x30eed3['body'])throw Error(_0x35f2df(0x1cf));return _0x30eed3['body'];}function M(_0xdbd6e4){'@babel/helpers - typeof';const _0x476da2=_0x18accd;return M=typeof Symbol==_0x476da2(0x233)&&typeof Symbol[_0x476da2(0x1db)]==_0x476da2(0x23e)?function(_0x106f38){return typeof _0x106f38;}:function(_0x15d522){const _0x898968=_0x476da2;return _0x15d522&&typeof Symbol==_0x898968(0x233)&&_0x15d522['constructor']===Symbol&&_0x15d522!==Symbol[_0x898968(0x1c0)]?_0x898968(0x23e):typeof _0x15d522;},M(_0xdbd6e4);}function nt(_0x404754,_0x335bbc){const _0x2be563=_0x18accd;if(M(_0x404754)!='object'||!_0x404754)return _0x404754;var _0x2d6f32=_0x404754[Symbol['toPrimitive']];if(_0x2d6f32!==void 0x0){var _0xbe45f3=_0x2d6f32[_0x2be563(0x182)](_0x404754,_0x335bbc||_0x2be563(0x25f));if(M(_0xbe45f3)!='object')return _0xbe45f3;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x335bbc===_0x2be563(0x218)?String:Number)(_0x404754);}function rt(_0x347a2e){const _0x1c34eb=_0x18accd;var _0x1aafee=nt(_0x347a2e,_0x1c34eb(0x218));return M(_0x1aafee)=='symbol'?_0x1aafee:_0x1aafee+'';}function N(_0x290c0b,_0x4219a2,_0x48620b){return(_0x4219a2=rt(_0x4219a2))in _0x290c0b?Object['defineProperty'](_0x290c0b,_0x4219a2,{'value':_0x48620b,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x290c0b[_0x4219a2]=_0x48620b,_0x290c0b;}var P=class extends _0x474e08{constructor(..._0x297f4d){const _0x2b6ca4=_0x18accd;super(..._0x297f4d),N(this,_0x2b6ca4(0x1ac),new Map()),N(this,'_rawResources',new Map()),N(this,_0x2b6ca4(0x173),new Map()),N(this,'_change$',new _0x1ec16e()),N(this,_0x2b6ca4(0x25c),this['_change$'][_0x2b6ca4(0x18a)]());}[_0x18accd(0x25a)](_0x560461,_0x1cf4ed){const _0x29ebf1=_0x18accd;var _0x3fd025;let _0x5429e2=(_0x3fd025=this['_resources'][_0x29ebf1(0x1ab)](_0x560461))==null?void 0x0:_0x3fd025[_0x29ebf1(0x1b9)][_0x1cf4ed];return _0x5429e2?_0x240c37['deepClone'](_0x5429e2):void 0x0;}['getFormulas'](_0x437ed2){const _0x4c3e33=_0x18accd;var _0x2d8c1e;return _0x240c37[_0x4c3e33(0x1a4)](((_0x2d8c1e=this['_resources'][_0x4c3e33(0x1ab)](_0x437ed2))==null?void 0x0:_0x2d8c1e['formulas'])??{});}['getResource'](_0x1fe717){const _0xbfa4ee=_0x18accd;let _0x349b5d=this[_0xbfa4ee(0x1ac)][_0xbfa4ee(0x1ab)](_0x1fe717);return _0x349b5d?_0x240c37[_0xbfa4ee(0x1a4)](_0x349b5d):void 0x0;}[_0x18accd(0x21d)](_0x354d50,_0x21273c,_0x1db87d){const _0x7d6ad4=_0x18accd;return this[_0x7d6ad4(0x249)](_0x354d50,{[_0x21273c]:_0x1db87d});}[_0x18accd(0x248)](_0x42b792,_0x5ec5f7){const _0x4ae753=_0x18accd;return this['_loadErrors']['has'](_0x42b792)||!x(_0x5ec5f7)?!0x1:(this[_0x4ae753(0x1ac)]['set'](_0x42b792,_0x240c37['deepClone'](_0x5ec5f7)),this[_0x4ae753(0x26e)][_0x4ae753(0x188)]({'unitId':_0x42b792}),!0x0);}[_0x18accd(0x249)](_0xa0343b,_0x16ce1d){const _0x2f5142=_0x18accd;if(this[_0x2f5142(0x173)][_0x2f5142(0x1f5)](_0xa0343b)||!Object[_0x2f5142(0x1c9)](_0x16ce1d)[_0x2f5142(0x230)]||!x({'schemaVersion':0x1,'formulas':_0x16ce1d}))return!0x1;let _0x238d2a=this[_0x2f5142(0x1ac)][_0x2f5142(0x1ab)](_0xa0343b)??b(),_0xbfe465=_0x240c37[_0x2f5142(0x1a4)](_0x238d2a);return Object[_0x2f5142(0x25e)](_0xbfe465[_0x2f5142(0x1b9)],_0x240c37['deepClone'](_0x16ce1d)),this[_0x2f5142(0x1ac)][_0x2f5142(0x1d5)](_0xa0343b,_0xbfe465),this[_0x2f5142(0x26e)][_0x2f5142(0x188)]({'unitId':_0xa0343b,'rangeIds':Object[_0x2f5142(0x1c9)](_0x16ce1d)}),!0x0;}[_0x18accd(0x183)](_0x56bd93,_0x5054b7){const _0x1336b3=_0x18accd;if(this[_0x1336b3(0x173)][_0x1336b3(0x1f5)](_0x56bd93))return!0x1;let _0x632cd=this['_resources'][_0x1336b3(0x1ab)](_0x56bd93);if(!(_0x632cd!=null&&_0x632cd['formulas'][_0x5054b7]))return!0x1;let _0x52c554=_0x240c37[_0x1336b3(0x1a4)](_0x632cd);return delete _0x52c554['formulas'][_0x5054b7],this['_resources'][_0x1336b3(0x1d5)](_0x56bd93,_0x52c554),this['_change$'][_0x1336b3(0x188)]({'unitId':_0x56bd93,'rangeIds':[_0x5054b7]}),!0x0;}['load'](_0x3c93e5,_0x1dd4eb){const _0x44cfed=_0x18accd;return _0x1dd4eb&&typeof _0x1dd4eb=='object'&&_0x44cfed(0x1b6)in _0x1dd4eb&&_0x1dd4eb[_0x44cfed(0x1b6)]!==0x1?(this[_0x44cfed(0x1d9)](_0x3c93e5,_0x1dd4eb,_0x44cfed(0x203)),!0x1):x(_0x1dd4eb)?(this[_0x44cfed(0x1ac)][_0x44cfed(0x1d5)](_0x3c93e5,_0x240c37[_0x44cfed(0x1a4)](_0x1dd4eb)),this['_rawResources']['delete'](_0x3c93e5),this[_0x44cfed(0x173)]['delete'](_0x3c93e5),this[_0x44cfed(0x26e)]['next']({'unitId':_0x3c93e5}),!0x0):(this['_preserveInvalid'](_0x3c93e5,_0x1dd4eb,_0x44cfed(0x213)),!0x1);}['serialize'](_0x23ed9a){const _0x5e5110=_0x18accd;let _0x56a937=this[_0x5e5110(0x1ac)][_0x5e5110(0x1ab)](_0x23ed9a);return _0x56a937?_0x240c37[_0x5e5110(0x1a4)](_0x56a937):this[_0x5e5110(0x226)]['has'](_0x23ed9a)?_0x240c37[_0x5e5110(0x1a4)](this[_0x5e5110(0x226)][_0x5e5110(0x1ab)](_0x23ed9a)):b();}[_0x18accd(0x261)](_0x531c9b){const _0x3e3611=_0x18accd;return this[_0x3e3611(0x173)][_0x3e3611(0x1ab)](_0x531c9b);}[_0x18accd(0x1bb)](_0x43ec4b){const _0x5e47e6=_0x18accd;this[_0x5e47e6(0x1ac)][_0x5e47e6(0x25b)](_0x43ec4b),this[_0x5e47e6(0x226)][_0x5e47e6(0x25b)](_0x43ec4b),this['_loadErrors']['delete'](_0x43ec4b),this[_0x5e47e6(0x26e)][_0x5e47e6(0x188)]({'unitId':_0x43ec4b});}[_0x18accd(0x186)](){const _0x125b47=_0x18accd;this[_0x125b47(0x1ac)][_0x125b47(0x267)](),this['_rawResources'][_0x125b47(0x267)](),this[_0x125b47(0x173)][_0x125b47(0x267)](),this[_0x125b47(0x26e)][_0x125b47(0x1bd)](),super['dispose']();}[_0x18accd(0x1d9)](_0x1ffdd6,_0x230dc4,_0x3287a1){const _0x595e8b=_0x18accd;this['_resources']['delete'](_0x1ffdd6),this[_0x595e8b(0x226)][_0x595e8b(0x1d5)](_0x1ffdd6,_0x240c37[_0x595e8b(0x1a4)](_0x230dc4)),this[_0x595e8b(0x173)][_0x595e8b(0x1d5)](_0x1ffdd6,_0x3287a1),this['_change$']['next']({'unitId':_0x1ffdd6});}};let it=function(_0x3db238){const _0x43d3f4=_0x18accd;return _0x3db238[_0x43d3f4(0x1fb)]=_0x43d3f4(0x235),_0x3db238[_0x43d3f4(0x1d0)]=_0x43d3f4(0x1e9),_0x3db238[_0x43d3f4(0x1d8)]=_0x43d3f4(0x1a5),_0x3db238[_0x43d3f4(0x1a9)]=_0x43d3f4(0x1be),_0x3db238;}({});function F(_0x144c97,_0x4a343b){return function(_0x8dd12a,_0x5a5b8d){_0x4a343b(_0x8dd12a,_0x5a5b8d,_0x144c97);};}function I(_0xe6873f,_0x2d73d9,_0x5d5587,_0x5bba90){const _0x2d14c9=_0x18accd;var _0x399f21=arguments[_0x2d14c9(0x230)],_0x2468eb=_0x399f21<0x3?_0x2d73d9:_0x5bba90===null?_0x5bba90=Object[_0x2d14c9(0x1ca)](_0x2d73d9,_0x5d5587):_0x5bba90,_0x3cbae7;if(typeof Reflect==_0x2d14c9(0x224)&&typeof Reflect['decorate']=='function')_0x2468eb=Reflect[_0x2d14c9(0x209)](_0xe6873f,_0x2d73d9,_0x5d5587,_0x5bba90);else{for(var _0x100a5f=_0xe6873f[_0x2d14c9(0x230)]-0x1;_0x100a5f>=0x0;_0x100a5f--)(_0x3cbae7=_0xe6873f[_0x100a5f])&&(_0x2468eb=(_0x399f21<0x3?_0x3cbae7(_0x2468eb):_0x399f21>0x3?_0x3cbae7(_0x2d73d9,_0x5d5587,_0x2468eb):_0x3cbae7(_0x2d73d9,_0x5d5587))||_0x2468eb);}return _0x399f21>0x3&&_0x2468eb&&Object[_0x2d14c9(0x21e)](_0x2d73d9,_0x5d5587,_0x2468eb),_0x2468eb;}let L=class extends _0x474e08{constructor(_0x228b77,_0x46ebfa,_0x34c280){const _0x34263f=_0x18accd;super(),this['_model']=_0x228b77,this[_0x34263f(0x1bc)]=_0x46ebfa,this['_hostExternalReferenceModel']=_0x34c280,N(this,_0x34263f(0x1bf),new Map()),N(this,'_formulaKeys',new Map()),N(this,_0x34263f(0x20d),new _0x1ec16e()),N(this,_0x34263f(0x1c2),this[_0x34263f(0x20d)][_0x34263f(0x18a)]()),this[_0x34263f(0x223)](this[_0x34263f(0x1bc)][_0x34263f(0x1ea)]['subscribe'](_0xa9c5a9=>{const _0x4edb87=_0x34263f;for(let _0x44903d of Object[_0x4edb87(0x269)](_0xa9c5a9))for(let _0x1455a9 of Object[_0x4edb87(0x269)](_0x44903d))_0x1455a9['forEach'](_0x1635ce=>this[_0x4edb87(0x265)](_0x1635ce));}));}['syncUnit'](_0x493679){const _0xcaf973=_0x18accd;var _0x17a5c2;let _0x898cbe=_0x493679['getUnitId'](),_0x39fc89=((_0x17a5c2=_0x493679[_0xcaf973(0x1b1)]()[_0xcaf973(0x212)])==null||(_0x17a5c2=_0x17a5c2[_0xcaf973(0x1a6)])==null?void 0x0:_0x17a5c2[_0xcaf973(0x252)](w))??[],_0x51612f=this[_0xcaf973(0x17f)][_0xcaf973(0x26b)](_0x898cbe),_0x409e41=new Set();for(let _0x574b01 of _0x39fc89){let _0x3e3645=_0x51612f[_0x574b01[_0xcaf973(0x251)]];_0x3e3645&&(_0x409e41[_0xcaf973(0x1af)](R(_0x898cbe,_0x574b01[_0xcaf973(0x251)])),this['register']({'unitId':_0x898cbe,'rangeId':_0x574b01[_0xcaf973(0x251)]},_0x3e3645));}for(let _0xfb8e5e of Array[_0xcaf973(0x1ec)](this[_0xcaf973(0x1bf)][_0xcaf973(0x269)]()))_0xfb8e5e[_0xcaf973(0x1ad)]===_0x898cbe&&!_0x409e41[_0xcaf973(0x1f5)](R(_0xfb8e5e[_0xcaf973(0x1ad)],_0xfb8e5e[_0xcaf973(0x251)]))&&this[_0xcaf973(0x198)](_0xfb8e5e);}[_0x18accd(0x1a8)](_0x59256b,_0x203d10){const _0x50b16d=_0x18accd;let _0x495cf9=R(_0x59256b['unitId'],_0x59256b[_0x50b16d(0x251)]),_0x433eb2=this[_0x50b16d(0x1bf)][_0x50b16d(0x1ab)](_0x495cf9),_0xd6e365=this[_0x50b16d(0x211)][_0x50b16d(0x26d)](_0x59256b[_0x50b16d(0x1ad)]);if(_0x433eb2&&_0x433eb2['config']['formula']===_0x203d10['formula']&&_0x433eb2[_0x50b16d(0x26f)]===_0xd6e365){_0x433eb2['config']=_0x203d10;let _0x330802=_0x433eb2['formulaId']?this[_0x50b16d(0x1bc)][_0x50b16d(0x1e8)](_0x433eb2[_0x50b16d(0x1ad)],_0x433eb2[_0x50b16d(0x1ad)],_0x433eb2[_0x50b16d(0x1f7)])??void 0x0:void 0x0;_0x433eb2[_0x50b16d(0x247)]=_0x330802,this[_0x50b16d(0x194)](_0x495cf9,z(_0x203d10,_0x330802));return;}_0x433eb2!=null&&_0x433eb2[_0x50b16d(0x1f7)]&&this['_deleteRegistration'](_0x433eb2);let _0x74c8fc={..._0x59256b,'config':_0x203d10,'referenceRevision':_0xd6e365,'presentation':z(_0x203d10,void 0x0)};if(this[_0x50b16d(0x1bf)][_0x50b16d(0x1d5)](_0x495cf9,_0x74c8fc),!_0x203d10[_0x50b16d(0x193)]['trim']())return;let _0x90be99=this['_registrationService'][_0x50b16d(0x204)](_0x59256b[_0x50b16d(0x1ad)],_0x59256b[_0x50b16d(0x1ad)],_0x203d10[_0x50b16d(0x193)],void 0x0,{'rangeId':_0x59256b[_0x50b16d(0x251)]},_0x2ec085['DOC'],_0x59256b[_0x50b16d(0x251)]);_0x74c8fc['formulaId']=_0x90be99,this[_0x50b16d(0x1ff)][_0x50b16d(0x1d5)](_0x90be99,_0x495cf9);}[_0x18accd(0x198)](_0x3ce936){const _0x49c7f6=_0x18accd;let _0xd51455=R(_0x3ce936[_0x49c7f6(0x1ad)],_0x3ce936[_0x49c7f6(0x251)]),_0x24ea07=this[_0x49c7f6(0x1bf)]['get'](_0xd51455);_0x24ea07&&(this[_0x49c7f6(0x21a)](_0x24ea07),this[_0x49c7f6(0x1bf)]['delete'](_0xd51455));}[_0x18accd(0x1a2)](_0x369e49){const _0x556cc4=_0x18accd;for(let _0x24a586 of Array['from'](this[_0x556cc4(0x1bf)][_0x556cc4(0x269)]()))_0x24a586[_0x556cc4(0x1ad)]===_0x369e49&&this[_0x556cc4(0x198)](_0x24a586);}[_0x18accd(0x1a0)](_0x5e4d65){const _0x1bb8b5=_0x18accd;var _0x1952e0;return(_0x1952e0=this['_registrations'][_0x1bb8b5(0x1ab)](R(_0x5e4d65['unitId'],_0x5e4d65[_0x1bb8b5(0x251)])))==null?void 0x0:_0x1952e0[_0x1bb8b5(0x189)];}[_0x18accd(0x241)](_0x59975e){const _0x37447b=_0x18accd;let _0x38cc95=this[_0x37447b(0x1bf)][_0x37447b(0x1ab)](R(_0x59975e[_0x37447b(0x1ad)],_0x59975e[_0x37447b(0x251)]));return _0x38cc95?B(_0x38cc95):void 0x0;}['getRegisteredFormulas'](){const _0x1db8e8=_0x18accd;return Array[_0x1db8e8(0x1ec)](this[_0x1db8e8(0x1bf)]['values'](),_0x878ebe=>({'identity':{'unitId':_0x878ebe[_0x1db8e8(0x1ad)],'rangeId':_0x878ebe[_0x1db8e8(0x251)]},'config':_0x878ebe[_0x1db8e8(0x1ba)],'referenceRevision':_0x878ebe['referenceRevision'],..._0x878ebe[_0x1db8e8(0x247)]?{'liveResult':_0x878ebe[_0x1db8e8(0x247)]}:null}));}['dispose'](){const _0x3d7a66=_0x18accd;for(let _0x5371a9 of this[_0x3d7a66(0x1bf)][_0x3d7a66(0x269)]())this[_0x3d7a66(0x21a)](_0x5371a9);this[_0x3d7a66(0x1bf)][_0x3d7a66(0x267)](),this[_0x3d7a66(0x1ff)][_0x3d7a66(0x267)](),this['_presentationChanged$'][_0x3d7a66(0x1bd)](),super[_0x3d7a66(0x186)]();}[_0x18accd(0x265)](_0x41a9f6){const _0x27ac94=_0x18accd;let _0x27fd4b=this['_formulaKeys'][_0x27ac94(0x1ab)](_0x41a9f6[_0x27ac94(0x1f7)]),_0x24c6dd=_0x27fd4b?this['_registrations']['get'](_0x27fd4b):void 0x0;_0x27fd4b&&_0x24c6dd&&(_0x24c6dd[_0x27ac94(0x247)]=_0x41a9f6,this[_0x27ac94(0x194)](_0x27fd4b,z(_0x24c6dd[_0x27ac94(0x1ba)],_0x41a9f6)));}[_0x18accd(0x194)](_0x55ad56,_0x33ff8b){const _0x1e5490=_0x18accd;var _0xed896,_0x1fbe14;let _0x5c92ab=this['_registrations']['get'](_0x55ad56);if(!_0x5c92ab||at(_0x5c92ab['presentation'],_0x33ff8b))return;let _0x5437ee=_0x5c92ab[_0x1e5490(0x189)],_0x201675=B(_0x5c92ab);_0x5c92ab[_0x1e5490(0x189)]=_0x33ff8b,this[_0x1e5490(0x20d)][_0x1e5490(0x188)]({'unitId':_0x5c92ab[_0x1e5490(0x1ad)],'rangeId':_0x5c92ab[_0x1e5490(0x251)],'presentation':_0x33ff8b,'previousPresentation':_0x5437ee,'result':B(_0x5c92ab),'previousResult':{..._0x201675,..._0x5437ee,'value':(_0xed896=_0x5437ee[_0x1e5490(0x21c)])==null?void 0x0:_0xed896['v'],'valueType':((_0x1fbe14=_0x5437ee[_0x1e5490(0x21c)])==null?void 0x0:_0x1fbe14['t'])??void 0x0}});}[_0x18accd(0x21a)](_0x4d96be){const _0x5dd8f0=_0x18accd;_0x4d96be[_0x5dd8f0(0x1f7)]&&(this[_0x5dd8f0(0x1bc)][_0x5dd8f0(0x201)](_0x4d96be['unitId'],_0x4d96be[_0x5dd8f0(0x1ad)],[_0x4d96be['formulaId']]),this[_0x5dd8f0(0x1ff)]['delete'](_0x4d96be['formulaId']));}};L=I([F(0x0,_0x2bb8ca(P)),F(0x1,_0x2bb8ca(_0x1a621d)),F(0x2,_0x2bb8ca(_0x39d327))],L);function R(_0x26b788,_0x3d919e){return _0x26b788+'\x00'+_0x3d919e;}function z(_0x44d3ca,_0x27e098){const _0x30fbf8=_0x18accd;return _0x3cd2e8({'numberFormat':_0x44d3ca[_0x30fbf8(0x255)],'lastValue':_0x44d3ca['lastValue'],'result':_0x27e098});}function B(_0x46e0bf){const _0x3d2927=_0x18accd;var _0x45339c,_0x2cf29c,_0xf4550;let _0x21751a=_0x46e0bf['presentation'],_0x54a4e8=_0x46e0bf[_0x3d2927(0x1ba)][_0x3d2927(0x193)][_0x3d2927(0x272)]()?_0x21751a['stale']||_0x21751a['cell']==null?_0x3d2927(0x1e9):((_0x45339c=_0x46e0bf[_0x3d2927(0x247)])==null?void 0x0:_0x45339c[_0x3d2927(0x18e)])===_0x1f2db9['ERROR']?_0x3d2927(0x1be):_0x3d2927(0x1a5):_0x3d2927(0x235);return{..._0x21751a,'status':_0x54a4e8,'value':(_0x2cf29c=_0x21751a['cell'])==null?void 0x0:_0x2cf29c['v'],'valueType':((_0xf4550=_0x21751a[_0x3d2927(0x21c)])==null?void 0x0:_0xf4550['t'])??void 0x0};}function at(_0x41f5c1,_0x21cfe5){const _0x3dbf03=_0x18accd;var _0x33bef3,_0x285c12,_0x2194cd,_0x500a52;return _0x41f5c1[_0x3dbf03(0x242)]===_0x21cfe5[_0x3dbf03(0x242)]&&_0x41f5c1[_0x3dbf03(0x244)]===_0x21cfe5['color']&&_0x41f5c1['pattern']===_0x21cfe5[_0x3dbf03(0x1f9)]&&_0x41f5c1[_0x3dbf03(0x1e6)]===_0x21cfe5[_0x3dbf03(0x1e6)]&&_0x41f5c1['stale']===_0x21cfe5[_0x3dbf03(0x1cb)]&&((_0x33bef3=_0x41f5c1['cell'])==null?void 0x0:_0x33bef3['t'])===((_0x285c12=_0x21cfe5[_0x3dbf03(0x21c)])==null?void 0x0:_0x285c12['t'])&&Object['is']((_0x2194cd=_0x41f5c1[_0x3dbf03(0x21c)])==null?void 0x0:_0x2194cd['v'],(_0x500a52=_0x21cfe5['cell'])==null?void 0x0:_0x500a52['v']);}const ot={'id':_0x18accd(0x22d),'type':_0x2c4aaa[_0x18accd(0x190)],'handler':(_0x5aca49,_0x56ea38)=>!(_0x56ea38!=null&&_0x56ea38[_0x18accd(0x1ad)])||!_0x56ea38[_0x18accd(0x251)]||!_0x56ea38['config']?!0x1:_0x5aca49['get'](P)[_0x18accd(0x21d)](_0x56ea38[_0x18accd(0x1ad)],_0x56ea38['rangeId'],_0x56ea38[_0x18accd(0x1ba)])},st={'id':'docs-formula.mutation.remove-formula','type':_0x2c4aaa['MUTATION'],'handler':(_0x431e20,_0x3645e9)=>!(_0x3645e9!=null&&_0x3645e9[_0x18accd(0x1ad)])||!_0x3645e9[_0x18accd(0x251)]?!0x1:_0x431e20[_0x18accd(0x1ab)](P)[_0x18accd(0x183)](_0x3645e9[_0x18accd(0x1ad)],_0x3645e9[_0x18accd(0x251)])},V={'id':'docs-formula.mutation.set-resource','type':_0x2c4aaa[_0x18accd(0x190)],'handler':(_0x141e5c,_0x513c53)=>!(_0x513c53!=null&&_0x513c53[_0x18accd(0x1ad)])||!_0x513c53[_0x18accd(0x192)]?!0x1:_0x141e5c[_0x18accd(0x1ab)](P)[_0x18accd(0x248)](_0x513c53[_0x18accd(0x1ad)],_0x513c53[_0x18accd(0x192)])},H={'id':'docs-formula.mutation.set-last-values','type':_0x2c4aaa[_0x18accd(0x190)],'handler':(_0x35ad68,_0x29f30e)=>{const _0x51a4ec=_0x18accd;if(!(_0x29f30e!=null&&_0x29f30e[_0x51a4ec(0x1ad)])||!_0x29f30e[_0x51a4ec(0x264)][_0x51a4ec(0x230)])return!0x1;let _0x497aaf=_0x35ad68['get'](P),_0x1fc407=_0x35ad68[_0x51a4ec(0x1ab)](_0x39d327),_0xa78566=_0x497aaf[_0x51a4ec(0x26a)](_0x29f30e[_0x51a4ec(0x1ad)]);if(!_0xa78566)return!0x1;let _0x2489ca=_0x240c37[_0x51a4ec(0x1a4)](_0xa78566),_0xfa7dec=!0x1;for(let _0x23c22a of _0x29f30e[_0x51a4ec(0x264)]){var _0x4ea899,_0x8c4193,_0x578921,_0x5acd89;let _0x8e4cf1=_0x2489ca[_0x51a4ec(0x1b9)][_0x23c22a[_0x51a4ec(0x251)]];_0x8e4cf1&&_0x8e4cf1[_0x51a4ec(0x193)]===_0x23c22a[_0x51a4ec(0x185)]&&((_0x4ea899=_0x8e4cf1['numberFormat'])==null?void 0x0:_0x4ea899[_0x51a4ec(0x1f9)])===_0x23c22a[_0x51a4ec(0x220)]&&_0x1fc407['getRevision'](_0x29f30e['unitId'])===_0x23c22a['expectedReferenceRevision']&&(((_0x8c4193=_0x8e4cf1[_0x51a4ec(0x191)])==null?void 0x0:_0x8c4193['v'])!==_0x23c22a[_0x51a4ec(0x191)]['v']||((_0x578921=_0x8e4cf1['lastValue'])==null?void 0x0:_0x578921['t'])!==_0x23c22a[_0x51a4ec(0x191)]['t']||((_0x5acd89=_0x8e4cf1[_0x51a4ec(0x191)])==null?void 0x0:_0x5acd89[_0x51a4ec(0x1f9)])!==_0x23c22a[_0x51a4ec(0x191)][_0x51a4ec(0x1f9)])&&(_0x8e4cf1[_0x51a4ec(0x191)]=_0x240c37[_0x51a4ec(0x1a4)](_0x23c22a['lastValue']),_0xfa7dec=!0x0);}return!_0xfa7dec||_0x497aaf['setResource'](_0x29f30e[_0x51a4ec(0x1ad)],_0x2489ca);}},U={'id':_0x18accd(0x23c),'type':_0x2c4aaa[_0x18accd(0x1f0)],'handler':(_0x2909e0,_0xb97ce7)=>{const _0x72a918=_0x18accd;if(!(_0xb97ce7!=null&&_0xb97ce7[_0x72a918(0x193)]['trim']()))return!0x1;let _0x32ec77=q(_0x2909e0,_0xb97ce7[_0x72a918(0x1ad)],'');if(!_0x32ec77)return!0x1;let _0x47b7cd=ft(_0xb97ce7[_0x72a918(0x1c1)],_0x32ec77[_0x72a918(0x212)],dt(_0x2909e0,_0x32ec77[_0x72a918(0x1ad)]));if(!_0x47b7cd)return!0x1;let _0x2defab=pt(_0x2909e0,_0x32ec77[_0x72a918(0x1ad)],_0xb97ce7[_0x72a918(0x193)],_0xb97ce7[_0x72a918(0x24e)]??[]);if(!_0x2defab)return!0x1;let _0x2a883f=mt(_0x32ec77[_0x72a918(0x212)],_0x32ec77['model'],_0x32ec77[_0x72a918(0x1ad)]),_0x4e4fc8=ht({'documentData':_0x32ec77['documentData'],'resource':_0x32ec77[_0x72a918(0x192)],'rangeId':_0x2a883f,'config':{'formula':_0xb97ce7[_0x72a918(0x193)],..._0xb97ce7[_0x72a918(0x255)]?{'numberFormat':_0xb97ce7['numberFormat']}:null},'startOffset':_0x47b7cd[_0x72a918(0x23d)],'endOffset':_0x47b7cd['endOffset']});if(!_0x4e4fc8)return!0x1;let _0x74ee53=_0x52d94b(_0x2909e0,_0x32ec77[_0x72a918(0x1ad)],_0x2defab);return!_0x74ee53||!J({'accessor':_0x2909e0,'document':_0x32ec77[_0x72a918(0x254)],'unitId':_0x32ec77[_0x72a918(0x1ad)],'trigger':U['id'],'rangeId':_0x2a883f,'previousResource':_0x32ec77['resource'],'nextResource':_0x4e4fc8[_0x72a918(0x23a)],'previousDocumentData':_0x32ec77['documentData'],'nextDocumentData':_0x4e4fc8[_0x72a918(0x178)],'cursorOffset':_0x4e4fc8[_0x72a918(0x24a)],'externalMutations':_0x74ee53})?!0x1:{'rangeId':_0x2a883f,'startOffset':_0x4e4fc8[_0x72a918(0x24a)]-0x1,'endOffset':_0x4e4fc8[_0x72a918(0x24a)]};}},W={'id':_0x18accd(0x177),'type':_0x2c4aaa[_0x18accd(0x1f0)],'handler':(_0x1d8218,_0x381f30)=>{const _0x29e015=_0x18accd;if(!(_0x381f30!=null&&_0x381f30[_0x29e015(0x251)])||!_0x381f30[_0x29e015(0x193)]['trim']())return!0x1;let _0x1cdc7e=q(_0x1d8218,_0x381f30[_0x29e015(0x1ad)],''),_0x4e2360=_0x1cdc7e==null?void 0x0:_0x1cdc7e['model'][_0x29e015(0x25a)](_0x1cdc7e[_0x29e015(0x1ad)],_0x381f30['rangeId']),_0x3304ff=_0x1cdc7e?T(_0x1cdc7e[_0x29e015(0x17e)][_0x29e015(0x212)],_0x381f30['rangeId']):void 0x0;if(!_0x1cdc7e||!_0x4e2360||!_0x3304ff)return!0x1;let _0x4289e0=pt(_0x1d8218,_0x1cdc7e[_0x29e015(0x1ad)],_0x381f30['formula'],_0x381f30[_0x29e015(0x24e)]??[]);if(!_0x4289e0)return!0x1;let _0x5ef1cc=_0x52d94b(_0x1d8218,_0x1cdc7e[_0x29e015(0x1ad)],_0x4289e0);if(!_0x5ef1cc)return!0x1;let _0xa88029=Ct(_0x1cdc7e[_0x29e015(0x192)]);return _0xa88029[_0x29e015(0x1b9)][_0x381f30[_0x29e015(0x251)]]={'formula':_0x381f30[_0x29e015(0x193)],..._0x381f30[_0x29e015(0x255)]?{'numberFormat':_0x381f30[_0x29e015(0x255)]}:_0x4e2360[_0x29e015(0x255)]?{'numberFormat':_0x4e2360['numberFormat']}:null},J({'accessor':_0x1d8218,'document':_0x1cdc7e[_0x29e015(0x254)],'unitId':_0x1cdc7e[_0x29e015(0x1ad)],'trigger':W['id'],'rangeId':_0x381f30[_0x29e015(0x251)],'previousResource':_0x1cdc7e[_0x29e015(0x192)],'nextResource':_0xa88029,'cursorOffset':_0x3304ff[_0x29e015(0x19f)]+0x1,'externalMutations':_0x5ef1cc});}},G={'id':_0x18accd(0x25d),'type':_0x2c4aaa[_0x18accd(0x1f0)],'handler':(_0x2ccdad,_0x5cd2bb)=>{const _0x9d8e02=_0x18accd;if(!(_0x5cd2bb!=null&&_0x5cd2bb[_0x9d8e02(0x251)]))return!0x1;let _0x22f0ab=q(_0x2ccdad,_0x5cd2bb['unitId'],''),_0x7c950c=_0x22f0ab==null?void 0x0:_0x22f0ab[_0x9d8e02(0x1fe)][_0x9d8e02(0x25a)](_0x22f0ab[_0x9d8e02(0x1ad)],_0x5cd2bb[_0x9d8e02(0x251)]),_0x7ccf90=_0x22f0ab?T(_0x22f0ab[_0x9d8e02(0x17e)][_0x9d8e02(0x212)],_0x5cd2bb[_0x9d8e02(0x251)]):void 0x0;if(!_0x22f0ab||!_0x7c950c||!_0x7ccf90)return!0x1;let _0x26105a=Ct(_0x22f0ab[_0x9d8e02(0x192)]);return _0x26105a[_0x9d8e02(0x1b9)][_0x5cd2bb[_0x9d8e02(0x251)]]={..._0x7c950c,..._0x5cd2bb[_0x9d8e02(0x255)]?{'numberFormat':_0x5cd2bb[_0x9d8e02(0x255)]}:null},_0x5cd2bb[_0x9d8e02(0x255)]||delete _0x26105a['formulas'][_0x5cd2bb[_0x9d8e02(0x251)]][_0x9d8e02(0x255)],J({'accessor':_0x2ccdad,'document':_0x22f0ab[_0x9d8e02(0x254)],'unitId':_0x22f0ab[_0x9d8e02(0x1ad)],'trigger':G['id'],'rangeId':_0x5cd2bb[_0x9d8e02(0x251)],'previousResource':_0x22f0ab[_0x9d8e02(0x192)],'nextResource':_0x26105a,'cursorOffset':_0x7ccf90[_0x9d8e02(0x19f)]+0x1,'externalMutations':{}});}},K={'id':_0x18accd(0x20c),'type':_0x2c4aaa[_0x18accd(0x1f0)],'handler':(_0x493641,_0x36054a)=>ut(_0x493641,_0x36054a,'',K['id'])},ct={'id':_0x18accd(0x21b),'type':_0x2c4aaa[_0x18accd(0x1f0)],'handler':(_0xddedeb,_0x594bd1)=>ut(_0xddedeb,_0x594bd1,(_0x594bd1==null?void 0x0:_0x594bd1['text'])??'',ct['id'])},lt={'id':'docs-formula.command.convert-to-text','type':_0x2c4aaa['COMMAND'],'handler':(_0x343533,_0xd97716)=>{const _0x670c65=_0x18accd;if(!(_0xd97716!=null&&_0xd97716[_0x670c65(0x251)]))return!0x1;let _0x4d7fdc=q(_0x343533,_0xd97716[_0x670c65(0x1ad)],'');if(!_0x4d7fdc)return!0x1;let _0x52030b=_0x343533[_0x670c65(0x1ab)](L)[_0x670c65(0x241)]({'unitId':_0x4d7fdc[_0x670c65(0x1ad)],'rangeId':_0xd97716['rangeId']});return _0x52030b?ut(_0x343533,_0xd97716,_0x52030b['text'],lt['id']):!0x1;}};function ut(_0x52bd0b,_0x59d1ce,_0xf49d80,_0x1f3930){const _0xb5f590=_0x18accd;if(!(_0x59d1ce!=null&&_0x59d1ce['rangeId']))return!0x1;let _0x3ec354=q(_0x52bd0b,_0x59d1ce[_0xb5f590(0x1ad)],'');if(!_0x3ec354)return!0x1;let _0x43fbee=Be({'documentData':_0x3ec354['documentData'],'resource':_0x3ec354[_0xb5f590(0x192)],'rangeId':_0x59d1ce[_0xb5f590(0x251)],'text':_0xf49d80});return _0x43fbee?J({'accessor':_0x52bd0b,'document':_0x3ec354[_0xb5f590(0x254)],'unitId':_0x3ec354[_0xb5f590(0x1ad)],'trigger':_0x1f3930,'rangeId':_0x59d1ce[_0xb5f590(0x251)],'previousResource':_0x3ec354[_0xb5f590(0x192)],'nextResource':_0x43fbee[_0xb5f590(0x23a)],'previousDocumentData':_0x3ec354[_0xb5f590(0x17e)],'nextDocumentData':_0x43fbee[_0xb5f590(0x178)],'cursorOffset':_0x43fbee[_0xb5f590(0x24a)],'externalMutations':{}}):!0x1;}function q(_0x214c8c,_0x57d408,_0x42eb13){const _0x5b6bd0=_0x18accd;if(_0x42eb13)return null;let _0x3c054a=_0x214c8c[_0x5b6bd0(0x1ab)](_0x478f5d),_0x4e69b=(_0x57d408?_0x3c054a['getUnit'](_0x57d408,_0x50d692[_0x5b6bd0(0x24d)]):_0x3c054a[_0x5b6bd0(0x195)](_0x50d692['UNIVER_DOC']))??null;if(!_0x4e69b)return null;let _0x2350a7=_0x4e69b[_0x5b6bd0(0x1b1)](),_0xa7be59=_0x2350a7[_0x5b6bd0(0x212)];if(_0x2350a7['disabled']||!_0xa7be59)return null;let _0x24e8e1=_0x214c8c['get'](P);return _0x24e8e1[_0x5b6bd0(0x261)](_0x4e69b[_0x5b6bd0(0x266)]())?null:{'document':_0x4e69b,'body':_0xa7be59,'documentData':_0x2350a7,'model':_0x24e8e1,'resource':_0x24e8e1[_0x5b6bd0(0x26a)](_0x4e69b[_0x5b6bd0(0x266)]())??b(),'unitId':_0x4e69b[_0x5b6bd0(0x266)]()};}function dt(_0x3333b1,_0x24070c){const _0x36986a=_0x18accd;var _0x50d3e7;return(_0x50d3e7=_0x3333b1[_0x36986a(0x1ab)](_0x32a2c9)[_0x36986a(0x18f)]({'subUnitId':_0x24070c,'unitId':_0x24070c}))==null?void 0x0:_0x50d3e7[0x0];}function ft(_0x3c11fe,_0x5c8a4b,_0x5280f7){const _0x15085e=_0x18accd;if((_0x3c11fe==null?void 0x0:_0x3c11fe['type'])===_0x15085e(0x1f8)){var _0x3547a2;let _0x3eb268=((_0x3547a2=_0x5c8a4b[_0x15085e(0x18d)])==null?void 0x0:_0x3547a2[_0x15085e(0x252)](_0x1ff9ed=>_0x1ff9ed['paragraphId']===_0x3c11fe['paragraphId']))??[];if(_0x3eb268[_0x15085e(0x230)]!==0x1)return null;let _0x426adc=_0x3eb268[0x0],_0x2729b4=_0x1c8c1a(_0x5c8a4b,_0x426adc),_0x46bf4b=_0x426adc['startIndex']-_0x2729b4,_0x787cbb=_0x3c11fe[_0x15085e(0x1e2)]==='end'?_0x46bf4b:_0x3c11fe['position'];if(!Number[_0x15085e(0x239)](_0x787cbb)||_0x787cbb<0x0||_0x787cbb>_0x46bf4b)return null;let _0x2f19c0=_0x2729b4+_0x787cbb;return{'startOffset':_0x2f19c0,'endOffset':_0x2f19c0};}if((_0x3c11fe==null?void 0x0:_0x3c11fe[_0x15085e(0x250)])===_0x15085e(0x207))return!Number[_0x15085e(0x239)](_0x3c11fe[_0x15085e(0x23d)])||!Number[_0x15085e(0x239)](_0x3c11fe[_0x15085e(0x200)])?null:{'startOffset':Math[_0x15085e(0x1da)](_0x3c11fe[_0x15085e(0x23d)],_0x3c11fe[_0x15085e(0x200)]),'endOffset':Math['max'](_0x3c11fe[_0x15085e(0x23d)],_0x3c11fe[_0x15085e(0x200)])};let _0x485507=(_0x3c11fe==null?void 0x0:_0x3c11fe[_0x15085e(0x250)])===_0x15085e(0x236)?_0x3c11fe[_0x15085e(0x236)]:_0x5280f7;return!_0x485507||_0x485507['segmentId']?null:{'startOffset':Math['min'](_0x485507[_0x15085e(0x23d)],_0x485507['endOffset']),'endOffset':Math['max'](_0x485507[_0x15085e(0x23d)],_0x485507['endOffset'])};}function pt(_0x404c43,_0x18b445,_0x2d2a8f,_0x1183a6){const _0x5852b3=_0x18accd;let _0x5af88c=_0x404c43['get'](_0x4914fd),_0x31e731=_0x2d2a8f[_0x5852b3(0x1fa)]('=')?_0x2d2a8f[_0x5852b3(0x22a)](0x1):_0x2d2a8f,_0x3a2960=_0x5af88c[_0x5852b3(0x234)](_0x31e731);if(!_0x3a2960)return null;let _0x23b2dd=_0x404c43[_0x5852b3(0x1ab)](_0x39d327),_0x55c62c=_0x4ac795({'qualifiers':_0x32274e(_0x3a2960),'explicitReferences':_0x1183a6??[],'resolveBinding':_0x5e1018=>_0x23b2dd[_0x5852b3(0x1c6)](_0x18b445,_0x5e1018)});return _0x55c62c[_0x5852b3(0x18e)]===_0x5852b3(0x1b0)?_0x55c62c[_0x5852b3(0x19e)]:null;}function mt(_0x2dce01,_0x3d0ec2,_0x228151){const _0x5c3253=_0x18accd;var _0x1418fb;let _0x1b07af=_0x13e167(0x6);for(;_0x2dce01!=null&&(_0x1418fb=_0x2dce01[_0x5c3253(0x1a6)])!=null&&_0x1418fb[_0x5c3253(0x225)](_0x459f89=>_0x459f89[_0x5c3253(0x251)]===_0x1b07af)||_0x3d0ec2[_0x5c3253(0x25a)](_0x228151,_0x1b07af);)_0x1b07af=_0x13e167(0x6);return _0x1b07af;}function ht(_0x1236a2){try{return Re(_0x1236a2);}catch(_0x33830a){if(_0x33830a instanceof C)return null;throw _0x33830a;}}function gt(_0x1315c2){const _0x487ee4=_0x18accd;let _0x52265e=_0x1315c2[_0x487ee4(0x1ee)]&&_0x1315c2['nextDocumentData']?vt(_0x1315c2['document'],_0x1315c2[_0x487ee4(0x1ad)],_0x1315c2['previousDocumentData'],_0x1315c2[_0x487ee4(0x178)],_0x1315c2[_0x487ee4(0x24a)],_0x1315c2[_0x487ee4(0x202)]):null;return _0x1315c2[_0x487ee4(0x1ee)]&&_0x1315c2[_0x487ee4(0x178)]&&!_0x52265e?null:{'documentRedo':_0x52265e,'resourceRedo':{'id':V['id'],'params':{'unitId':_0x1315c2[_0x487ee4(0x1ad)],'resource':_0x1315c2['nextResource']}},'resourceUndo':{'id':V['id'],'params':{'unitId':_0x1315c2['unitId'],'resource':_0x1315c2['previousResource']}}};}function _t(_0x13d32d,_0x2af97d,_0x380244,_0x32dad1){const _0x580c41=_0x18accd;_0x32dad1[_0x580c41(0x205)]({'id':_0x13d32d[_0x580c41(0x202)]+':'+_0x13d32d[_0x580c41(0x251)],'unitID':_0x13d32d[_0x580c41(0x1ad)],'redoMutations':[..._0x13d32d[_0x580c41(0x246)][_0x580c41(0x21f)]?[_0x13d32d[_0x580c41(0x246)][_0x580c41(0x21f)]]:[],..._0x2af97d[_0x580c41(0x217)]?[_0x2af97d[_0x580c41(0x217)]]:[],_0x2af97d[_0x580c41(0x229)]],'undoMutations':[_0x2af97d[_0x580c41(0x23b)],..._0x380244?[_0x380244]:[],..._0x13d32d[_0x580c41(0x246)]['undoMutation']?[_0x13d32d['externalMutations'][_0x580c41(0x1f1)]]:[]]});}function J(_0x3fd200){const _0x3c3671=_0x18accd;let _0x4d36ba=_0x3fd200[_0x3c3671(0x196)][_0x3c3671(0x1ab)](_0x222411),_0xb9a5f=_0x3fd200[_0x3c3671(0x196)][_0x3c3671(0x1ab)](_0x513fde),_0x37a637=_0x3fd200[_0x3c3671(0x196)]['get'](_0x32a2c9),_0x4a67a2=gt(_0x3fd200);if(!_0x4a67a2)return!0x1;let _0x275205=!0x1,_0x398a5d=null,_0x3b5a56=!0x1;try{if(_0x3fd200[_0x3c3671(0x246)][_0x3c3671(0x21f)]){if(!_0x4d36ba[_0x3c3671(0x1b8)](_0x3fd200[_0x3c3671(0x246)][_0x3c3671(0x21f)]['id'],_0x3fd200[_0x3c3671(0x246)][_0x3c3671(0x21f)][_0x3c3671(0x1df)]))return!0x1;_0x275205=!0x0;}if(_0x4a67a2[_0x3c3671(0x217)]){let _0x5559de=_0x4d36ba[_0x3c3671(0x1b8)](_0x4a67a2[_0x3c3671(0x217)]['id'],_0x4a67a2[_0x3c3671(0x217)][_0x3c3671(0x1df)]);if(!_0x5559de)return bt(_0x4d36ba,_0x3fd200[_0x3c3671(0x246)],_0x275205),!0x1;_0x398a5d={'id':_0x2fe09d['id'],'params':{..._0x5559de,'noHistory':!0x0,'noNeedSetTextRange':!0x0,'segmentId':''}};}if(!_0x4d36ba['syncExecuteCommand'](_0x4a67a2[_0x3c3671(0x229)]['id'],_0x4a67a2['resourceRedo']['params']))return yt(_0x4d36ba,_0x398a5d),bt(_0x4d36ba,_0x3fd200[_0x3c3671(0x246)],_0x275205),!0x1;_0x3b5a56=!0x0,_t(_0x3fd200,_0x4a67a2,_0x398a5d,_0xb9a5f);}catch(_0xa7bd89){throw _0x3b5a56&&_0x4d36ba[_0x3c3671(0x1b8)](_0x4a67a2[_0x3c3671(0x23b)]['id'],_0x4a67a2['resourceUndo']['params']),yt(_0x4d36ba,_0x398a5d),bt(_0x4d36ba,_0x3fd200[_0x3c3671(0x246)],_0x275205),_0xa7bd89;}return _0x37a637[_0x3c3671(0x22b)]([{'startOffset':_0x3fd200[_0x3c3671(0x24a)],'endOffset':_0x3fd200[_0x3c3671(0x24a)],'segmentId':''}],{'unitId':_0x3fd200['unitId'],'subUnitId':_0x3fd200['unitId']},!0x1,{[_0x3ef325]:!0x0}),!0x0;}function vt(_0x54d06e,_0x18e626,_0x2b7e8e,_0x6d3d69,_0x54ac33,_0x2deb31){let _0x2d0068=xt(_0x2b7e8e,_0x6d3d69,_0x27773c(_0x54d06e,''));return _0x2d0068?{'id':_0x2fe09d['id'],'params':{'unitId':_0x18e626,'actions':_0x2d0068,'segmentId':'','textRanges':[{'startOffset':_0x54ac33,'endOffset':_0x54ac33,'collapsed':!0x0,'segmentId':''}],'isEditing':!0x1,'noHistory':!0x0,'noNeedSetTextRange':!0x0,'trigger':_0x2deb31}}:null;}function yt(_0x3a9c10,_0x127405){const _0x4c2d68=_0x18accd;_0x127405&&_0x3a9c10['syncExecuteCommand'](_0x127405['id'],_0x127405[_0x4c2d68(0x1df)]);}function bt(_0x3db208,_0x33a259,_0x17a015){const _0x1b150e=_0x18accd;_0x17a015&&_0x33a259['undoMutation']&&_0x3db208[_0x1b150e(0x1b8)](_0x33a259[_0x1b150e(0x1f1)]['id'],_0x33a259['undoMutation']['params']);}function xt(_0x4943fd,_0x56c0b0,_0x4115ba){const _0x4a7ab1=_0x18accd;let _0x27060e=_0x4943fd[_0x4a7ab1(0x212)],_0x44f47d=_0x56c0b0['body'],_0xf97d2a=St(_0x27060e==null?void 0x0:_0x27060e[_0x4a7ab1(0x1d2)],_0x44f47d==null?void 0x0:_0x44f47d['dataStream']);if(!_0xf97d2a||!_0x44f47d)return null;let _0x183e46=new _0x4c112a();return _0x183e46[_0x4a7ab1(0x199)](_0xf97d2a['start']),_0xf97d2a[_0x4a7ab1(0x210)]>0x0&&_0x183e46[_0x4a7ab1(0x1ed)](_0xf97d2a[_0x4a7ab1(0x210)],_0x4d9adf(_0x44f47d,_0xf97d2a['start'],_0xf97d2a[_0x4a7ab1(0x1aa)]+_0xf97d2a['insertLength'],!0x1)),_0xf97d2a[_0x4a7ab1(0x180)]>0x0&&_0x183e46['delete'](_0xf97d2a[_0x4a7ab1(0x180)]),_0x25fe93[_0x4a7ab1(0x1f4)]()[_0x4a7ab1(0x187)](_0x183e46[_0x4a7ab1(0x237)](),_0x4115ba);}function St(_0x24849d,_0x238537){const _0x3c75e2=_0x18accd;if(_0x24849d==null||_0x238537==null||_0x24849d===_0x238537)return null;let _0x3103fd=0x0;for(;_0x3103fd<_0x24849d[_0x3c75e2(0x230)]&&_0x3103fd<_0x238537[_0x3c75e2(0x230)]&&_0x24849d[_0x3103fd]===_0x238537[_0x3103fd];)_0x3103fd+=0x1;let _0x5ee6dc=_0x24849d[_0x3c75e2(0x230)],_0x11ab9f=_0x238537[_0x3c75e2(0x230)];for(;_0x5ee6dc>_0x3103fd&&_0x11ab9f>_0x3103fd&&_0x24849d[_0x5ee6dc-0x1]===_0x238537[_0x11ab9f-0x1];)--_0x5ee6dc,--_0x11ab9f;return{'start':_0x3103fd,'deleteLength':_0x5ee6dc-_0x3103fd,'insertLength':_0x11ab9f-_0x3103fd};}function Ct(_0x165f53){const _0x432bdc=_0x18accd;return{'schemaVersion':0x1,'formulas':Object['fromEntries'](Object[_0x432bdc(0x1c5)](_0x165f53[_0x432bdc(0x1b9)])[_0x432bdc(0x1f3)](([_0x28f86d,_0x44656e])=>[_0x28f86d,{..._0x44656e,..._0x44656e[_0x432bdc(0x255)]?{'numberFormat':{..._0x44656e[_0x432bdc(0x255)]}}:null,..._0x44656e[_0x432bdc(0x191)]?{'lastValue':{..._0x44656e[_0x432bdc(0x191)]}}:null}]))};}let Y=class extends _0x474e08{constructor(_0xee1db6,_0x286c47,_0x77250e,_0xab6b21){const _0x51ed8a=_0x18accd;super(),this[_0x51ed8a(0x1b4)]=_0xee1db6,this['_commandService']=_0x286c47,this['_model']=_0x77250e,this[_0x51ed8a(0x181)]=_0xab6b21,N(this,_0x51ed8a(0x1a7),new Set()),N(this,_0x51ed8a(0x1eb),!0x1),N(this,_0x51ed8a(0x1a3),!0x1),this[_0x51ed8a(0x1b4)][_0x51ed8a(0x1f6)](_0x50d692[_0x51ed8a(0x24d)])[_0x51ed8a(0x19c)](_0x5dc60e=>this[_0x51ed8a(0x181)][_0x51ed8a(0x1b2)](_0x5dc60e)),this[_0x51ed8a(0x223)](this[_0x51ed8a(0x17f)][_0x51ed8a(0x25c)][_0x51ed8a(0x1d3)](({unitId:_0x16d7db})=>this[_0x51ed8a(0x23f)](_0x16d7db))),this[_0x51ed8a(0x223)](this[_0x51ed8a(0x1b4)]['unitAdded$'][_0x51ed8a(0x1d3)](({unit:_0x1aea35})=>{const _0x2b7d1b=_0x51ed8a;_0x1aea35[_0x2b7d1b(0x250)]===_0x50d692[_0x2b7d1b(0x24d)]&&this['_queueSync'](_0x1aea35[_0x2b7d1b(0x266)]());})),this[_0x51ed8a(0x223)](this[_0x51ed8a(0x1b4)][_0x51ed8a(0x1ae)][_0x51ed8a(0x1d3)](_0x119909=>{const _0x3bc23c=_0x51ed8a;this['_service'][_0x3bc23c(0x1a2)](_0x119909[_0x3bc23c(0x266)]());})),this[_0x51ed8a(0x223)](this['_commandService'][_0x51ed8a(0x1c3)](_0x50fb88=>{const _0x37f38b=_0x51ed8a;if(_0x50fb88['id']===_0x2fe09d['id']&&wt(_0x50fb88[_0x37f38b(0x1df)])){let _0x123cb6=_0x50fb88[_0x37f38b(0x1df)];_0x123cb6[_0x37f38b(0x1a1)]||this[_0x37f38b(0x23f)](_0x123cb6[_0x37f38b(0x1ad)]);}}));}[_0x18accd(0x186)](){const _0x2bdedc=_0x18accd;this[_0x2bdedc(0x1a3)]=!0x0,super[_0x2bdedc(0x186)]();}[_0x18accd(0x238)](_0x1fbbf7){const _0x378d84=_0x18accd;this['_pendingUnitIds'][_0x378d84(0x1af)](_0x1fbbf7),!this[_0x378d84(0x1eb)]&&(this[_0x378d84(0x1eb)]=!0x0,queueMicrotask(()=>{const _0x2bb039=_0x378d84;if(this[_0x2bb039(0x1eb)]=!0x1,this[_0x2bb039(0x1a3)])return;let _0x4c5875=Array[_0x2bb039(0x1ec)](this[_0x2bb039(0x1a7)]);this[_0x2bb039(0x1a7)][_0x2bb039(0x267)](),_0x4c5875['forEach'](_0x2e8ce7=>this['_syncUnit'](_0x2e8ce7));}));}['_syncUnit'](_0x535414){const _0x598413=_0x18accd;let _0x31e807=this[_0x598413(0x1b4)][_0x598413(0x257)](_0x535414,_0x50d692[_0x598413(0x24d)]);_0x31e807&&this[_0x598413(0x181)]['syncUnit'](_0x31e807);}};Y=I([F(0x0,_0x478f5d),F(0x1,_0x222411),F(0x2,_0x2bb8ca(P)),F(0x3,_0x2bb8ca(L))],Y);function wt(_0x1fcf8e){const _0x554f22=_0x18accd;return typeof _0x1fcf8e==_0x554f22(0x224)&&!!_0x1fcf8e&&'unitId'in _0x1fcf8e&&typeof _0x1fcf8e[_0x554f22(0x1ad)]=='string'&&(!(_0x554f22(0x1a1)in _0x1fcf8e)||_0x1fcf8e[_0x554f22(0x1a1)]===void 0x0||typeof _0x1fcf8e['segmentId']==_0x554f22(0x218));}function _0x7514(_0x5bfad8,_0x5b277d){_0x5bfad8=_0x5bfad8-0x173;const _0x539718=_0x5397();let _0x7514b0=_0x539718[_0x5bfad8];return _0x7514b0;}let X=class extends _0x474e08{constructor(_0x443fc3,_0x410605){const _0x380cd6=_0x18accd;super(),this['_resourceManagerService']=_0x443fc3,this['_docFormulaModel']=_0x410605,this[_0x380cd6(0x223)](this['_resourceManagerService'][_0x380cd6(0x215)]({'pluginName':y,'businesses':[_0x50d692[_0x380cd6(0x24d)]],'toJson':_0x1c7113=>JSON[_0x380cd6(0x184)](this['_docFormulaModel']['serialize'](_0x1c7113)),'parseJson':_0x2435b9=>JSON[_0x380cd6(0x208)](_0x2435b9),'onLoad':(_0x1905dc,_0x501a4a)=>{const _0x517ebd=_0x380cd6;this[_0x517ebd(0x1e0)][_0x517ebd(0x19a)](_0x1905dc,_0x501a4a);},'onUnLoad':_0x4cc5a3=>this[_0x380cd6(0x1e0)][_0x380cd6(0x1bb)](_0x4cc5a3)}));}};X=I([F(0x0,_0x3b184b),F(0x1,_0x2bb8ca(P))],X);var Tt='@univerjs-pro/docs-formula',Et='1.1.0';const Dt={};let Z=class extends _0x474e08{constructor(_0x47ab21,_0x5a4bb3,_0x5efd96){const _0x302647=_0x18accd;super(),this[_0x302647(0x228)]=_0x47ab21,this[_0x302647(0x1ce)]=_0x5a4bb3,this[_0x302647(0x223)](_0x5efd96[_0x302647(0x1a8)]({'resolve':(_0x3f64a7,_0x5291fc)=>{const _0x569bd0=_0x302647;var _0xb3871d;return((_0xb3871d=_0x5291fc[_0x569bd0(0x1a6)])==null?void 0x0:_0xb3871d[_0x569bd0(0x252)](w)[_0x569bd0(0x1f3)](_0x3bbf2a=>({'startOffset':_0x3bbf2a['startIndex'],'endOffset':_0x3bbf2a[_0x569bd0(0x19f)]+0x1,'text':this[_0x569bd0(0x271)](_0x3f64a7,_0x3bbf2a[_0x569bd0(0x251)])})))??[];}})),this[_0x302647(0x223)](this[_0x302647(0x1ce)][_0x302647(0x1c2)]['subscribe'](({unitId:_0x40d711})=>{_0x5efd96['notifyTextChanged'](_0x40d711);}));}[_0x18accd(0x271)](_0x1764c3,_0x4d4bec){const _0x4fb140=_0x18accd;var _0x13ef5a;return((_0x13ef5a=this[_0x4fb140(0x1ce)]['getResult']({'unitId':_0x1764c3,'rangeId':_0x4d4bec}))==null?void 0x0:_0x13ef5a['text'])??'';}[_0x18accd(0x259)](_0x3effef,_0x8a8a6f,_0xd752ed){const _0x1385aa=_0x18accd;var _0xd0c458;let _0x1a1adb=this[_0x1385aa(0x228)][_0x1385aa(0x257)](_0x3effef,_0x50d692[_0x1385aa(0x24d)]),_0x20d992=_0x1a1adb==null?void 0x0:_0x1a1adb[_0x1385aa(0x222)]();if(!_0x20d992)return'';let _0x2f7fae=_0x20d992[_0x1385aa(0x1d2)][_0x1385aa(0x22a)](_0x8a8a6f,_0xd752ed),_0x4e9ae2=((_0xd0c458=_0x20d992[_0x1385aa(0x1a6)])==null?void 0x0:_0xd0c458['filter'](_0x4e46bc=>w(_0x4e46bc)&&_0x4e46bc[_0x1385aa(0x24f)]>=_0x8a8a6f&&_0x4e46bc[_0x1385aa(0x19f)]<_0xd752ed)[_0x1385aa(0x1dc)]((_0x3ccd61,_0x5addfc)=>_0x5addfc[_0x1385aa(0x24f)]-_0x3ccd61['startIndex']))??[];for(let _0x1f51b0 of _0x4e9ae2){let _0x4880ff=_0x1f51b0['startIndex']-_0x8a8a6f,_0xde8e51=_0x1f51b0[_0x1385aa(0x19f)]-_0x8a8a6f+0x1;_0x2f7fae=''+_0x2f7fae['slice'](0x0,_0x4880ff)+this[_0x1385aa(0x271)](_0x3effef,_0x1f51b0[_0x1385aa(0x251)])+_0x2f7fae[_0x1385aa(0x22a)](_0xde8e51);}return _0x2f7fae;}[_0x18accd(0x1b5)](_0x3b2503){return Ot(_0x3b2503);}['degradeBody'](_0x4562d9,_0x8fe63c,_0x399404={}){const _0x57cb6a=_0x18accd;var _0x1b3de1;return Ve({'id':_0x4562d9,'body':_0x8fe63c,'documentStyle':{}},(((_0x1b3de1=_0x8fe63c[_0x57cb6a(0x1a6)])==null?void 0x0:_0x1b3de1[_0x57cb6a(0x252)](w))??[])[_0x57cb6a(0x1f3)](_0x5c3098=>({'rangeId':_0x5c3098[_0x57cb6a(0x251)],'text':_0x399404[_0x5c3098[_0x57cb6a(0x251)]]??this[_0x57cb6a(0x271)](_0x4562d9,_0x5c3098[_0x57cb6a(0x251)])})))[_0x57cb6a(0x212)]??{'dataStream':''};}};Z=I([F(0x0,_0x478f5d),F(0x1,_0x2bb8ca(L)),F(0x2,_0x2bb8ca(_0x329faf))],Z);function Ot(_0x49a637){const _0x4bb4f2=_0x18accd;var _0x5197ed,_0x281917;let _0x589687=kt(_0x49a637),_0x23905e=Ve(_0x49a637,(((_0x5197ed=_0x49a637[_0x4bb4f2(0x212)])==null||(_0x5197ed=_0x5197ed[_0x4bb4f2(0x1a6)])==null?void 0x0:_0x5197ed['filter'](w))??[])[_0x4bb4f2(0x1f3)](_0x1e5546=>({'rangeId':_0x1e5546[_0x4bb4f2(0x251)],'text':At(_0x589687==null?void 0x0:_0x589687[_0x4bb4f2(0x1b9)][_0x1e5546[_0x4bb4f2(0x251)]])})));return _0x23905e[_0x4bb4f2(0x263)]=(_0x281917=_0x23905e[_0x4bb4f2(0x263)])==null?void 0x0:_0x281917[_0x4bb4f2(0x252)](_0x300316=>_0x300316[_0x4bb4f2(0x1c8)]!==y),_0x23905e;}function kt(_0x1d20a0){const _0x358ffc=_0x18accd;var _0x5cffd8;let _0x404e62=(_0x5cffd8=_0x1d20a0['resources'])==null||(_0x5cffd8=_0x5cffd8['find'](_0x2c9d48=>_0x2c9d48['name']===_0x358ffc(0x17d)))==null?void 0x0:_0x5cffd8[_0x358ffc(0x18b)];if(_0x404e62)try{let _0x77e541=JSON['parse'](_0x404e62);return x(_0x77e541)?_0x77e541:void 0x0;}catch{return;}}function At(_0x2eafb1){const _0x5c27e0=_0x18accd;return _0x2eafb1?_0x3cd2e8({'lastValue':_0x2eafb1['lastValue'],'numberFormat':_0x2eafb1[_0x5c27e0(0x255)]})[_0x5c27e0(0x242)]:'';}let Q=class extends _0x474e08{constructor(_0x28b65b,_0x16f87b,_0x14b4e9){const _0x5e1efb=_0x18accd;super(),this[_0x5e1efb(0x1ce)]=_0x28b65b,this['_cacheEligibilityService']=_0x16f87b,this['disposeWithMe'](_0x14b4e9['registerProvider'](this));}['collectMutations'](_0x42246f){const _0x3f7173=_0x18accd;let _0x549a79=new Map();for(let _0x460fe4 of this[_0x3f7173(0x1ce)][_0x3f7173(0x1f2)]()){var _0x31cc08;if(!this[_0x3f7173(0x24b)]['assess'](_0x460fe4[_0x3f7173(0x1ba)][_0x3f7173(0x193)],_0x460fe4['liveResult'])[_0x3f7173(0x260)])continue;let _0x3146c8=_0x1f7dc0(_0x460fe4['liveResult']),_0x3c2063=_0x3146c8?_0x1d1d0a(_0x3146c8):null;if(!_0x3c2063||jt(_0x460fe4[_0x3f7173(0x1ba)]['lastValue'],_0x3c2063))continue;let _0x530b09=_0x549a79[_0x3f7173(0x1ab)](_0x460fe4[_0x3f7173(0x175)][_0x3f7173(0x1ad)])??[];_0x530b09[_0x3f7173(0x253)]({'rangeId':_0x460fe4['identity'][_0x3f7173(0x251)],'expectedFormula':_0x460fe4['config'][_0x3f7173(0x193)],'expectedNumberFormat':(_0x31cc08=_0x460fe4[_0x3f7173(0x1ba)][_0x3f7173(0x255)])==null?void 0x0:_0x31cc08[_0x3f7173(0x1f9)],'expectedReferenceRevision':_0x460fe4[_0x3f7173(0x26f)],'lastValue':_0x3c2063}),_0x549a79['set'](_0x460fe4[_0x3f7173(0x175)][_0x3f7173(0x1ad)],_0x530b09);}return Array[_0x3f7173(0x1ec)](_0x549a79,([_0x46ccfa,_0x3b726b])=>({'id':H['id'],'params':{'unitId':_0x46ccfa,'updates':_0x3b726b}}));}};Q=I([F(0x0,_0x2bb8ca(L)),F(0x1,_0x2bb8ca(_0x562e65)),F(0x2,_0x2bb8ca(_0x29a8c7))],Q);function jt(_0x409a31,_0x4bb678){const _0x263e89=_0x18accd;return(_0x409a31==null?void 0x0:_0x409a31['v'])===_0x4bb678['v']&&(_0x409a31==null?void 0x0:_0x409a31['t'])===_0x4bb678['t']&&(_0x409a31==null?void 0x0:_0x409a31[_0x263e89(0x1f9)])===_0x4bb678[_0x263e89(0x1f9)];}let $=class extends _0x2ed24f{constructor(_0xf0cfa7=Dt,_0x50b363,_0x1d0177,_0x5d89f4){const _0x111037=_0x18accd;super(),this[_0x111037(0x19b)]=_0xf0cfa7,this[_0x111037(0x1e3)]=_0x50b363,this[_0x111037(0x227)]=_0x1d0177,this[_0x111037(0x179)]=_0x5d89f4;let {..._0x2e2ba8}=_0x350a4c({},Dt,this[_0x111037(0x19b)]);this[_0x111037(0x179)][_0x111037(0x1cc)](_0x111037(0x22f),_0x2e2ba8);}[_0x18accd(0x1d7)](){const _0x5a6701=_0x18accd;this['_injector'][_0x5a6701(0x1af)]([P]),this[_0x5a6701(0x1e3)][_0x5a6701(0x1af)]([L]),this['_injector'][_0x5a6701(0x1af)]([X]),this[_0x5a6701(0x1e3)][_0x5a6701(0x1af)]([Y]),this[_0x5a6701(0x1e3)][_0x5a6701(0x1af)]([Q]),this[_0x5a6701(0x1e3)][_0x5a6701(0x1af)]([Z]),_0x2ca687(this['_injector'],[[P],[X],[Y],[Q],[Z]]),[ot,st,V,H,U,W,G,K,ct,lt][_0x5a6701(0x19c)](_0x357689=>this[_0x5a6701(0x223)](this[_0x5a6701(0x227)][_0x5a6701(0x1e7)](_0x357689)));}};N($,_0x18accd(0x1de),y),N($,'packageName',Tt),N($,_0x18accd(0x17a),Et),N($,_0x18accd(0x250),_0x50d692['UNIVER_DOC']),$=I([_0x2a626f(_0x3c3fb2,_0x351eb2,_0x5b3025),F(0x1,_0x2bb8ca(_0x21727e)),F(0x2,_0x222411),F(0x3,_0x2701f4)],$);export{lt as ConvertDocFormulaToTextCommand,Me as DOC_FORMULA_CUSTOM_RANGE_KIND,Ne as DOC_FORMULA_OBJECT_REPLACEMENT,y as DOC_FORMULA_PLUGIN,je as DOC_FORMULA_SCHEMA_VERSION,Z as DocFormulaDisplayTextService,Y as DocFormulaLifecycleController,P as DocFormulaModel,X as DocFormulaResourceController,it as DocFormulaResultStatus,L as DocFormulaService,U as InsertDocFormulaCommand,C as InvalidDocFormulaInsertRangeError,K as RemoveDocFormulaCommand,st as RemoveDocFormulaMutation,ct as ReplaceDocFormulaWithTextCommand,H as SetDocFormulaLastValuesMutation,ot as SetDocFormulaMutation,G as SetDocFormulaNumberFormatCommand,V as SetDocFormulaResourceMutation,$ as UniverDocsFormulaPlugin,W as UpdateDocFormulaCommand,He as assertSafeDocFormulaInsertRange,Re as buildInsertDocFormulaActions,Be as buildRemoveDocFormulaActions,ze as buildUpdateDocFormulaActions,b as createEmptyDocFormulaResource,Ot as degradeDocFormulaDocumentData,T as findDocFormulaRange,Pe as isDocFormulaConfig,w as isDocFormulaRange,x as isDocFormulaResource,Fe as isFormulaLastValue};
1
+ const _0x24e2ca=_0x20e9;(function(_0x152e7e,_0x4db90f){const _0x3da9f9=_0x20e9,_0x4c0a9a=_0x152e7e();while(!![]){try{const _0x4baa9a=parseInt(_0x3da9f9(0xa2))/0x1*(-parseInt(_0x3da9f9(0x11d))/0x2)+parseInt(_0x3da9f9(0xc4))/0x3*(-parseInt(_0x3da9f9(0x10d))/0x4)+parseInt(_0x3da9f9(0xce))/0x5*(-parseInt(_0x3da9f9(0x95))/0x6)+parseInt(_0x3da9f9(0x12b))/0x7+-parseInt(_0x3da9f9(0x177))/0x8*(parseInt(_0x3da9f9(0x163))/0x9)+-parseInt(_0x3da9f9(0x93))/0xa*(parseInt(_0x3da9f9(0x105))/0xb)+parseInt(_0x3da9f9(0xe3))/0xc;if(_0x4baa9a===_0x4db90f)break;else _0x4c0a9a['push'](_0x4c0a9a['shift']());}catch(_0x287647){_0x4c0a9a['push'](_0x4c0a9a['shift']());}}}(_0x448f,0xbdc52));import{FormulaCacheEligibilityService as _0x29362c,FormulaLastValuePersistenceService as _0x143b9c,HostExternalReferenceModel as _0xed4143,UniverProFormulaEnginePlugin as _0x5d553c,buildUpsertHostExternalReferenceMutations as _0x38f235,collectFormulaExternalReferenceQualifiers as _0x1f8367,getScalarFormulaResultCell as _0x164c26,resolveFormulaResultPresentation as _0x500f97,resolveHostFormulaExternalReferences as _0x5f34d5,toFormulaLastValue as _0x27de7e}from'@univerjs-pro/engine-formula';import{CellValueType as _0x5259d,CommandType as _0x1da90f,CustomRangeType as _0x373c58,DataStreamTreeTokenType as _0x1a14c2,DependentOn as _0x335401,Disposable as _0x25f89c,ICommandService as _0x3d0906,IConfigService as _0x3e2dd7,IResourceManagerService as _0x3af6e3,IUndoRedoService as _0x36a1fe,IUniverInstanceService as _0x28c187,Inject as _0x22e0aa,Injector as _0x3d3d14,JSONX as _0x998333,Plugin as _0x5275a4,TextX as _0x2c43a5,Tools as _0x56e124,UniverInstanceType as _0x1b556b,generateRandomId as _0x3ddba5,getBodySliceForTextXAction as _0xc8d1f5,getCustomRangeInterval as _0x38861e,getParagraphContentStartOffset as _0xaeba,getRichTextEditPath as _0x1f68c0,merge as _0x1281fb,shiftExclusiveRangeOnDelete as _0x42d47e,shiftExclusiveRangeOnInsert as _0x20ed51,shiftInclusiveRangeOnDelete as _0x8912fd,shiftInclusiveRangeOnInsert as _0x754acd,touchDependencies as _0x5dcd24}from'@univerjs/core';import{DOC_SELECTION_OPTION_PRESERVE_CARET as _0x35872f,DocSelectionManagerService as _0x14ce86,DocTextResolverService as _0x37f942,RichTextEditingMutation as _0x547d5a,UniverDocsPlugin as _0x4de602}from'@univerjs/docs';import{FormulaResultStatus as _0xfae944,LexerTreeBuilder as _0x1e5c80,OtherFormulaBizType as _0xc26a75,RegisterOtherFormulaService as _0x1a7a0f}from'@univerjs/engine-formula';import{Subject as _0x143dcf}from'rxjs';import{UniverLicensePlugin as _0x365ad2}from'@univerjs-pro/license';const y='DOC_FORMULA_PLUGIN',je=0x1,Me='univer-docs-formula',Ne='';function b(){return{'schemaVersion':0x1,'formulas':{}};}function x(_0x2e2c47){const _0x6c1325=_0x20e9;return!_0x2e2c47||typeof _0x2e2c47!=_0x6c1325(0xb7)||!S(_0x2e2c47,[_0x6c1325(0x13e),'formulas'])||!(_0x6c1325(0x13e)in _0x2e2c47)||_0x2e2c47['schemaVersion']!==0x1||!('formulas'in _0x2e2c47)||!_0x2e2c47[_0x6c1325(0xdc)]||typeof _0x2e2c47['formulas']!=_0x6c1325(0xb7)||Array[_0x6c1325(0x89)](_0x2e2c47[_0x6c1325(0xdc)])?!0x1:Object[_0x6c1325(0xb8)](_0x2e2c47[_0x6c1325(0xdc)])[_0x6c1325(0xe4)](([_0x4b8655,_0x42a6ba])=>_0x4b8655[_0x6c1325(0xff)]>0x0&&Pe(_0x42a6ba));}function Pe(_0x3e0fa3){const _0x48b34f=_0x20e9;return!_0x3e0fa3||typeof _0x3e0fa3!=_0x48b34f(0xb7)||!S(_0x3e0fa3,['formula',_0x48b34f(0xfb),_0x48b34f(0x16c)])||!(_0x48b34f(0x110)in _0x3e0fa3)||typeof _0x3e0fa3[_0x48b34f(0x110)]!=_0x48b34f(0x175)||!_0x3e0fa3[_0x48b34f(0x110)][_0x48b34f(0x140)]()||_0x48b34f(0xfb)in _0x3e0fa3&&_0x3e0fa3['numberFormat']!=null&&(typeof _0x3e0fa3[_0x48b34f(0xfb)]!=_0x48b34f(0xb7)||!S(_0x3e0fa3['numberFormat'],[_0x48b34f(0xd0)])||!(_0x48b34f(0xd0)in _0x3e0fa3[_0x48b34f(0xfb)])||typeof _0x3e0fa3['numberFormat']['pattern']!=_0x48b34f(0x175))?!0x1:!(_0x48b34f(0x16c)in _0x3e0fa3)||_0x3e0fa3[_0x48b34f(0x16c)]==null||Fe(_0x3e0fa3['lastValue']);}function Fe(_0xd4fda0){const _0xa4c248=_0x20e9;return!_0xd4fda0||typeof _0xd4fda0!=_0xa4c248(0xb7)||!S(_0xd4fda0,['v','t',_0xa4c248(0xd0)])||!('v'in _0xd4fda0)||_0xd4fda0['v']!==null&&typeof _0xd4fda0['v']!=_0xa4c248(0x175)&&typeof _0xd4fda0['v']!=_0xa4c248(0xda)&&typeof _0xd4fda0['v']!=_0xa4c248(0x151)||'t'in _0xd4fda0&&_0xd4fda0['t']!=null&&!Ie(_0xd4fda0['t'])?!0x1:!(_0xa4c248(0xd0)in _0xd4fda0)||_0xd4fda0[_0xa4c248(0xd0)]==null||typeof _0xd4fda0['pattern']==_0xa4c248(0x175);}function S(_0x4df40b,_0x326a1f){const _0x29603c=_0x20e9;let _0x5b3f09=new Set(_0x326a1f);return Object['keys'](_0x4df40b)[_0x29603c(0xe4)](_0x1a9e77=>_0x5b3f09[_0x29603c(0xa4)](_0x1a9e77));}function Ie(_0x856566){const _0x3f9c65=_0x20e9;return typeof _0x856566==_0x3f9c65(0xda)&&Object[_0x3f9c65(0xd4)](_0x5259d)[_0x3f9c65(0xc8)](_0x856566);}const Le=new Set([_0x1a14c2['SECTION_BREAK'],_0x1a14c2[_0x24e2ca(0x8f)],_0x1a14c2[_0x24e2ca(0xe5)],_0x1a14c2[_0x24e2ca(0xea)],_0x1a14c2[_0x24e2ca(0x91)],_0x1a14c2['TABLE_ROW_END'],_0x1a14c2[_0x24e2ca(0x15a)],_0x1a14c2[_0x24e2ca(0xdf)],_0x1a14c2[_0x24e2ca(0xf9)],_0x1a14c2[_0x24e2ca(0x10a)],_0x1a14c2[_0x24e2ca(0x142)],_0x1a14c2[_0x24e2ca(0x12d)],_0x1a14c2[_0x24e2ca(0x15c)],_0x1a14c2['CUSTOM_BLOCK']]);var C=class extends Error{constructor(){const _0x27b792=_0x24e2ca;super(_0x27b792(0xa9));}};function Re(_0x38c5ce){const _0x2c4a2c=_0x24e2ca;var _0x50f2b0,_0x335c54;let _0x4e0be2=_0x56e124['deepClone'](_0x38c5ce['documentData']),_0x136782=j(_0x4e0be2),{startOffset:_0x4df048,endOffset:_0x9b6137}=We(_0x136782,_0x38c5ce[_0x2c4a2c(0x14e)],_0x38c5ce[_0x2c4a2c(0x162)]);He(_0x136782,_0x4df048,_0x9b6137);let _0x5c4c9e=((_0x50f2b0=_0x136782[_0x2c4a2c(0x166)])==null?void 0x0:_0x50f2b0[_0x2c4a2c(0x12e)](_0x1a47c3=>{const _0x249b79=_0x2c4a2c;if(!w(_0x1a47c3))return!0x1;let _0x1f67e9=_0x38861e(_0x1a47c3);return _0x1f67e9[_0x249b79(0x162)]>_0x4df048&&_0x1f67e9['startOffset']<_0x9b6137;})[_0x2c4a2c(0x13f)](_0x2f5d78=>_0x2f5d78[_0x2c4a2c(0xac)]))??[];qe(_0x136782,_0x4df048,_0x9b6137,''),_0x136782[_0x2c4a2c(0x166)]=[...((_0x335c54=_0x136782[_0x2c4a2c(0x166)])==null?void 0x0:_0x335c54['filter'](_0x27fa78=>!_0x5c4c9e[_0x2c4a2c(0xc8)](_0x27fa78['rangeId'])&&_0x27fa78[_0x2c4a2c(0xac)]!==_0x38c5ce[_0x2c4a2c(0xac)]))??[],Ue(_0x38c5ce[_0x2c4a2c(0xac)],_0x4df048)][_0x2c4a2c(0x12a)]((_0x3072da,_0x31cd3c)=>_0x3072da[_0x2c4a2c(0xc7)]-_0x31cd3c[_0x2c4a2c(0xc7)]);let _0x33709d=E(_0x38c5ce[_0x2c4a2c(0x153)]);return _0x5c4c9e[_0x2c4a2c(0x84)](_0x14a809=>{const _0x1a1bb5=_0x2c4a2c;delete _0x33709d[_0x1a1bb5(0xdc)][_0x14a809];}),_0x33709d[_0x2c4a2c(0xdc)][_0x38c5ce[_0x2c4a2c(0xac)]]=_0x56e124[_0x2c4a2c(0x168)](_0x38c5ce[_0x2c4a2c(0x138)]),{'nextDocumentData':_0x4e0be2,'nextResource':_0x33709d,'cursorOffset':_0x4df048+0x1};}function ze(_0x25dbb5){const _0x559144=_0x24e2ca;var _0x49765f,_0x350687;let _0x421cc8=_0x56e124['deepClone'](_0x25dbb5[_0x559144(0xcc)]),_0xa60ff9=(_0x49765f=j(_0x421cc8)[_0x559144(0x166)])==null?void 0x0:_0x49765f[_0x559144(0x10b)](_0x4de993=>_0x4de993['rangeId']===_0x25dbb5['rangeId']&&w(_0x4de993));if(!_0xa60ff9||!((_0x350687=_0x25dbb5['resource'])!=null&&_0x350687['formulas'][_0x25dbb5[_0x559144(0xac)]]))return null;let _0x34f942=E(_0x25dbb5[_0x559144(0x153)]);return _0x34f942[_0x559144(0xdc)][_0x25dbb5[_0x559144(0xac)]]=_0x56e124[_0x559144(0x168)](_0x25dbb5[_0x559144(0x138)]),{'nextDocumentData':_0x421cc8,'nextResource':_0x34f942,'cursorOffset':_0xa60ff9[_0x559144(0x115)]+0x1};}function Be(_0x1205a8){const _0x40bc87=_0x24e2ca;let _0x1e7558=_0x56e124[_0x40bc87(0x168)](_0x1205a8[_0x40bc87(0xcc)]),_0x2e246c=Je(_0x1e7558,_0x1205a8[_0x40bc87(0xac)],_0x1205a8[_0x40bc87(0x16d)]??'');if(_0x2e246c==null)return null;let _0x58cc0a=E(_0x1205a8[_0x40bc87(0x153)]);return delete _0x58cc0a[_0x40bc87(0xdc)][_0x1205a8[_0x40bc87(0xac)]],{'nextDocumentData':_0x1e7558,'nextResource':_0x58cc0a,'cursorOffset':_0x2e246c};}function Ve(_0x3bce4c,_0x550159){const _0xe83699=_0x24e2ca;var _0x3468f8;let _0x2a2f8e=_0x56e124[_0xe83699(0x168)](_0x3bce4c),_0x407591=_0x2a2f8e[_0xe83699(0xe0)];if(!_0x407591)return _0x2a2f8e;let _0x5c7297=new Map(_0x550159['map'](_0x24a176=>[_0x24a176['rangeId'],_0x24a176['text']])),_0x2ad25c=((_0x3468f8=_0x407591[_0xe83699(0x166)])==null?void 0x0:_0x3468f8[_0xe83699(0x12e)](_0x5b3494=>w(_0x5b3494)&&_0x5c7297['has'](_0x5b3494[_0xe83699(0xac)]))[_0xe83699(0x12a)]((_0x771f63,_0x38821a)=>_0x38821a[_0xe83699(0xc7)]-_0x771f63[_0xe83699(0xc7)]))??[];for(let _0x4a30e6 of _0x2ad25c)Je(_0x2a2f8e,_0x4a30e6[_0xe83699(0xac)],_0x5c7297[_0xe83699(0x83)](_0x4a30e6[_0xe83699(0xac)])??'');return _0x2a2f8e;}function w(_0x28a77d){const _0x38ae15=_0x24e2ca;var _0x335644;return(_0x28a77d==null?void 0x0:_0x28a77d['rangeType'])===_0x373c58[_0x38ae15(0x121)]&&_0x28a77d[_0x38ae15(0xc6)]===!0x0&&((_0x335644=_0x28a77d[_0x38ae15(0x109)])==null?void 0x0:_0x335644[_0x38ae15(0xba)])==='univer-docs-formula';}function T(_0x1be36d,_0x31ef45){const _0x20c704=_0x24e2ca;var _0x4eba78;return _0x1be36d==null||(_0x4eba78=_0x1be36d[_0x20c704(0x166)])==null?void 0x0:_0x4eba78[_0x20c704(0x10b)](_0x984868=>_0x984868[_0x20c704(0xac)]===_0x31ef45&&w(_0x984868));}function He(_0x9dc834,_0x3efdd4,_0x4cfdd3){const _0x398b13=_0x24e2ca;if(_0x3efdd4===_0x4cfdd3){if(Le[_0x398b13(0xa4)](_0x9dc834[_0x398b13(0xc3)][_0x3efdd4]))throw new C();}else{for(let _0x904b42=_0x3efdd4;_0x904b42<_0x4cfdd3;_0x904b42++)if(_0x9dc834[_0x398b13(0xc3)][_0x904b42]===_0x1a14c2['PARAGRAPH']||Le[_0x398b13(0xa4)](_0x9dc834[_0x398b13(0xc3)][_0x904b42]))throw new C();}}function Ue(_0x1726d1,_0x301be9){return{'startIndex':_0x301be9,'endIndex':_0x301be9,'rangeId':_0x1726d1,'rangeType':_0x373c58['CUSTOM'],'wholeEntity':!0x0,'properties':{'kind':Me}};}function E(_0x5ce6a2){const _0xc8af69=_0x24e2ca;return _0x5ce6a2?_0x56e124[_0xc8af69(0x168)](_0x5ce6a2):b();}function _0x448f(){const _0x97c9c2=['setResource','resolved','_configService','TABLE_START','getUnitId','TABLE_CELL_END','docs-formula.config','3291920qFkHzI','_registrationService','9298224gQFoWQ','version','register','getUnit','_setPresentation','subscribe','EMPTY','deleteLength','_deleteRegistration','endsWith','externalMutations','resolveBinding','getSnapshot','7wxTndR','syncUnit','has','docs-formula.mutation.remove-formula','empty','asObservable','status','Doc\x20Formula\x20range\x20cannot\x20cross\x20document\x20structure\x20boundaries','slice','resolveFormula','rangeId','getPresentation','params','complete','_resources','set','resourceRedo','_change$','tables','max','notifyTextChanged','object','entries','documentRedo','kind','symbol','resourceUndo','registerCommand','textRuns','getInstance','startsWith','_presentationChanged$','Document\x20main\x20body\x20is\x20required\x20to\x20insert\x20Doc\x20Formula.','dataStream','3bFCcRa','load','wholeEntity','startIndex','includes','_rawResources','registerPluginResource','unsupported-version','documentData','push','5VDsrLr','_syncScheduled','pattern','call','source','unregister','values','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','color','customBlocks','unitId','removeUnit','number','expectedNumberFormat','formulas','some','expectedReferenceRevision','COLUMN_GROUP_START','body','success','add','33441132vYVKPo','every','TABLE_ROW_START','_pendingUnitIds','_isDisposed','externalReferences','type','TABLE_CELL_START','COMMAND','blockRanges','presentation','_preserveInvalid','document','getBody','eligible','getLoadError','degradeDocumentData','_cacheEligibilityService','_updateFormulaResult','paragraph','resolveText','getFormulaValueSync','COLUMN_START','_syncUnit','numberFormat','docs-formula.mutation.set-last-values','columnGroups','editOp','length','PENDING','fromEntries','stringify','resources','SECTION_BREAK','44qwlbQq','unitAdded$','docs-formula.command.set-number-format','insert','properties','COLUMN_END','find','change$','1315828cmWkyz','iterator','cell','formula','defineProperty','@univerjs-pro/docs-formula','ERROR','docs-formula.command.update','endIndex','syncExecuteCommand','stale','_model','parse','end','identity','removeFormula','30454WMgCpO','sectionBreaks','getResource','customDecorations','CUSTOM','MUTATION','getResult','pluginName','start','getRegisteredFormulas','dispose','setConfig','presentationChanged$','sort','9813594DBpPTm','DOC','BLOCK_START','filter','selection','_instanceService','setFormulas','UNIVER_DOC','docs-formula.mutation.set-resource','getCurrentUnitOfType','model','SUCCESS','prototype','config','insertLength','clear','docs-formula.command.replace-with-text','undoMutation','disposeWithMe','schemaVersion','map','trim','_registrations','COLUMN_GROUP_END','cursorOffset','pending','target','paragraphs','_formulaService','references','serialize','docs-formula.command.remove','disabled','paragraphId','next','startOffset','docs-formula.command.insert','min','boolean','_hostExternalReferenceModel','resource','_docFormulaModel','nextDocumentData','segmentId','setFormula','getFormulas','previousResource','TABLE_END','_univerInstanceService','BLOCK_END','previousDocumentData','keys','collectMutations','trigger','data','endOffset','9OQaXpM','unregisterUnit','referenceRevision','customRanges','function','deepClone','_config','formulaId','_queueSync','lastValue','text','redoMutation','_commandService','from','assess','position','error','DOC_FORMULA_PLUGIN','string','_formulaKeys','875096bbhATS','_injector','invalid-resource','liveResult','_loadErrors','getFormula','nextResource','accessor','get','forEach','getTextRanges','delete','_service','retain','isArray','constructor','isInteger'];_0x448f=function(){return _0x97c9c2;};return _0x448f();}function We(_0x2b28c8,_0xc76ccf,_0x1e0fc5){let _0x5ba370=Ke(_0x2b28c8),_0x3e483f=_0xc76ccf??_0x5ba370,_0x2b3c88=_0x1e0fc5??_0x3e483f;return{'startOffset':Ge(Math['min'](_0x3e483f,_0x2b3c88),_0x5ba370),'endOffset':Ge(Math['max'](_0x3e483f,_0x2b3c88),_0x5ba370)};}function Ge(_0x284aeb,_0x3a9f6d){const _0x45b395=_0x24e2ca;return Math[_0x45b395(0xb5)](0x0,Math[_0x45b395(0x150)](_0x284aeb,_0x3a9f6d));}function Ke(_0x43f780){const _0x402815=_0x24e2ca;return _0x43f780[_0x402815(0xc3)]['endsWith'](''+_0x1a14c2['PARAGRAPH']+_0x1a14c2[_0x402815(0x104)])?Math['max'](0x0,_0x43f780['dataStream']['length']-0x2):_0x43f780[_0x402815(0xc3)][_0x402815(0x9e)](_0x1a14c2[_0x402815(0x104)])?Math[_0x402815(0xb5)](0x0,_0x43f780[_0x402815(0xc3)][_0x402815(0xff)]-0x1):_0x43f780[_0x402815(0xc3)]['length'];}function qe(_0x26e60e,_0x43e634,_0x424884,_0x249144){_0x424884>_0x43e634&&Xe(_0x26e60e,_0x43e634,_0x424884),Ye(_0x26e60e,_0x43e634,_0x249144);}function Je(_0x426345,_0x23454d,_0x2fdc83){const _0xd1ecd5=_0x24e2ca;var _0x38637c,_0x4767c6;let _0x3b9fc0=j(_0x426345),_0x2b5b2a=(_0x38637c=_0x3b9fc0[_0xd1ecd5(0x166)])==null?void 0x0:_0x38637c[_0xd1ecd5(0x10b)](_0x19235e=>_0x19235e[_0xd1ecd5(0xac)]===_0x23454d&&w(_0x19235e));if(!_0x2b5b2a)return null;let _0x24091b=_0x38861e(_0x2b5b2a);return qe(_0x3b9fc0,_0x24091b[_0xd1ecd5(0x14e)],_0x24091b[_0xd1ecd5(0x162)],_0x2fdc83),_0x3b9fc0[_0xd1ecd5(0x166)]=(_0x4767c6=_0x3b9fc0[_0xd1ecd5(0x166)])==null?void 0x0:_0x4767c6['filter'](_0x3dde0e=>_0x3dde0e['rangeId']!==_0x23454d),_0x24091b[_0xd1ecd5(0x14e)]+_0x2fdc83[_0xd1ecd5(0xff)];}function Ye(_0x74d333,_0x57b331,_0x41ef5f){const _0x3e1a9f=_0x24e2ca;_0x41ef5f&&(_0x74d333[_0x3e1a9f(0xc3)]=''+_0x74d333['dataStream']['slice'](0x0,_0x57b331)+_0x41ef5f+_0x74d333[_0x3e1a9f(0xc3)][_0x3e1a9f(0xaa)](_0x57b331),Ze(_0x74d333,_0x57b331,_0x41ef5f['length']));}function Xe(_0x51d6dd,_0x443827,_0x4b2b53){const _0xb138fa=_0x24e2ca;let _0x585d46=_0x4b2b53-_0x443827;_0x51d6dd[_0xb138fa(0xc3)]=''+_0x51d6dd[_0xb138fa(0xc3)]['slice'](0x0,_0x443827)+_0x51d6dd[_0xb138fa(0xc3)][_0xb138fa(0xaa)](_0x4b2b53),Qe(_0x51d6dd,_0x443827,_0x585d46);}function Ze(_0xe6d87b,_0x4dca26,_0x4a4586){const _0x229bc1=_0x24e2ca;_0xe6d87b[_0x229bc1(0x146)]=D(_0xe6d87b['paragraphs'],_0x4dca26,_0x4a4586),_0xe6d87b[_0x229bc1(0x11e)]=D(_0xe6d87b[_0x229bc1(0x11e)],_0x4dca26,_0x4a4586),_0xe6d87b[_0x229bc1(0xd7)]=D(_0xe6d87b['customBlocks'],_0x4dca26,_0x4a4586),_0xe6d87b[_0x229bc1(0xbe)]=$e(_0xe6d87b[_0x229bc1(0xbe)],_0x4dca26,_0x4a4586),_0xe6d87b[_0x229bc1(0xb4)]=et(_0xe6d87b[_0x229bc1(0xb4)],_0x4dca26,_0x4a4586),_0xe6d87b[_0x229bc1(0xfd)]=k(_0xe6d87b['columnGroups'],_0x4dca26,_0x4a4586),_0xe6d87b[_0x229bc1(0x166)]=k(_0xe6d87b[_0x229bc1(0x166)],_0x4dca26,_0x4a4586),_0xe6d87b[_0x229bc1(0x120)]=k(_0xe6d87b[_0x229bc1(0x120)],_0x4dca26,_0x4a4586),_0xe6d87b['blockRanges']=k(_0xe6d87b['blockRanges'],_0x4dca26,_0x4a4586);}function Qe(_0x5c0804,_0xb1cb6b,_0x455694){const _0x526c2a=_0x24e2ca;var _0x22467c,_0x48be46;_0x5c0804['paragraphs']=O(_0x5c0804[_0x526c2a(0x146)],_0xb1cb6b,_0x455694),_0x5c0804['sectionBreaks']=O(_0x5c0804[_0x526c2a(0x11e)],_0xb1cb6b,_0x455694),_0x5c0804[_0x526c2a(0xd7)]=O(_0x5c0804[_0x526c2a(0xd7)],_0xb1cb6b,_0x455694),_0x5c0804['textRuns']=(_0x22467c=tt((_0x48be46=_0x5c0804['textRuns'])==null?void 0x0:_0x48be46[_0x526c2a(0x13f)](_0x173302=>({..._0x173302,'startIndex':_0x173302['st'],'endIndex':_0x173302['ed']})),_0xb1cb6b,_0x455694))==null?void 0x0:_0x22467c[_0x526c2a(0x13f)](_0xff7a88=>{let {startIndex:_0x269211,endIndex:_0x2a2585,..._0x518a32}=_0xff7a88;return{..._0x518a32,'st':_0x269211,'ed':_0x2a2585};}),_0x5c0804['tables']=tt(_0x5c0804[_0x526c2a(0xb4)],_0xb1cb6b,_0x455694),_0x5c0804[_0x526c2a(0xfd)]=A(_0x5c0804[_0x526c2a(0xfd)],_0xb1cb6b,_0x455694),_0x5c0804[_0x526c2a(0x166)]=A(_0x5c0804['customRanges'],_0xb1cb6b,_0x455694),_0x5c0804[_0x526c2a(0x120)]=A(_0x5c0804['customDecorations'],_0xb1cb6b,_0x455694),_0x5c0804[_0x526c2a(0xec)]=A(_0x5c0804[_0x526c2a(0xec)],_0xb1cb6b,_0x455694);}function D(_0x1afcfd,_0x2df234,_0x4adf13){const _0x2ab983=_0x24e2ca;return _0x1afcfd==null?void 0x0:_0x1afcfd[_0x2ab983(0x13f)](_0xed7506=>_0xed7506[_0x2ab983(0xc7)]>=_0x2df234?{..._0xed7506,'startIndex':_0xed7506[_0x2ab983(0xc7)]+_0x4adf13}:_0xed7506);}function O(_0x2afb15,_0x2c2a11,_0x3199cf){const _0x2248c4=_0x24e2ca;let _0x1224ea=_0x2c2a11+_0x3199cf;return _0x2afb15==null?void 0x0:_0x2afb15[_0x2248c4(0x13f)](_0x3f637c=>_0x3f637c[_0x2248c4(0xc7)]>=_0x2c2a11&&_0x3f637c[_0x2248c4(0xc7)]<_0x1224ea?null:_0x3f637c['startIndex']>=_0x1224ea?{..._0x3f637c,'startIndex':_0x3f637c[_0x2248c4(0xc7)]-_0x3199cf}:_0x3f637c)[_0x2248c4(0x12e)](_0x393baa=>_0x393baa!=null);}function $e(_0x26855b,_0x1b1462,_0x2dab79){const _0x33b91c=_0x24e2ca;return _0x26855b==null?void 0x0:_0x26855b[_0x33b91c(0x13f)](_0x3fb1f1=>_0x3fb1f1['st']>=_0x1b1462?{..._0x3fb1f1,'st':_0x3fb1f1['st']+_0x2dab79,'ed':_0x3fb1f1['ed']+_0x2dab79}:_0x3fb1f1['ed']>_0x1b1462?{..._0x3fb1f1,'ed':_0x3fb1f1['ed']+_0x2dab79}:_0x3fb1f1);}function k(_0x3525bb,_0x5e104c,_0x41a582){const _0x41419b=_0x24e2ca;return _0x3525bb==null?void 0x0:_0x3525bb[_0x41419b(0x13f)](_0xad984e=>_0x754acd(_0xad984e,_0x5e104c,_0x41a582));}function et(_0x4b3665,_0x2ed42c,_0x4b0803){return _0x4b3665==null?void 0x0:_0x4b3665['map'](_0x216332=>_0x20ed51(_0x216332,_0x2ed42c,_0x4b0803));}function A(_0x2268e2,_0x5c9b4c,_0x293eb8){const _0x551ff7=_0x24e2ca;return _0x2268e2==null?void 0x0:_0x2268e2[_0x551ff7(0x13f)](_0x54fbd4=>_0x8912fd(_0x54fbd4,_0x5c9b4c,_0x293eb8))[_0x551ff7(0x12e)](_0x588e01=>_0x588e01!=null);}function tt(_0x86b6d2,_0x16262b,_0x19d639){const _0x4ae254=_0x24e2ca;return _0x86b6d2==null?void 0x0:_0x86b6d2[_0x4ae254(0x13f)](_0xe9ac31=>_0x42d47e(_0xe9ac31,_0x16262b,_0x19d639))['filter'](_0x198b1a=>_0x198b1a!=null);}function j(_0x5c037e){const _0x7ba50=_0x24e2ca;if(!_0x5c037e[_0x7ba50(0xe0)])throw Error(_0x7ba50(0xc2));return _0x5c037e['body'];}function M(_0x38410f){'@babel/helpers - typeof';const _0x4f77ad=_0x24e2ca;return M=typeof Symbol==_0x4f77ad(0x167)&&typeof Symbol[_0x4f77ad(0x10e)]==_0x4f77ad(0xbb)?function(_0x23c29c){return typeof _0x23c29c;}:function(_0x4cab49){const _0x18f1db=_0x4f77ad;return _0x4cab49&&typeof Symbol==_0x18f1db(0x167)&&_0x4cab49[_0x18f1db(0x8a)]===Symbol&&_0x4cab49!==Symbol[_0x18f1db(0x137)]?'symbol':typeof _0x4cab49;},M(_0x38410f);}function nt(_0x535fae,_0x3a6e8f){const _0x7668eb=_0x24e2ca;if(M(_0x535fae)!=_0x7668eb(0xb7)||!_0x535fae)return _0x535fae;var _0x6e9065=_0x535fae[Symbol['toPrimitive']];if(_0x6e9065!==void 0x0){var _0xeccb07=_0x6e9065[_0x7668eb(0xd1)](_0x535fae,_0x3a6e8f||'default');if(M(_0xeccb07)!=_0x7668eb(0xb7))return _0xeccb07;throw TypeError(_0x7668eb(0xd5));}return(_0x3a6e8f==='string'?String:Number)(_0x535fae);}function rt(_0x3a8548){const _0x3004bc=_0x24e2ca;var _0x18f20a=nt(_0x3a8548,_0x3004bc(0x175));return M(_0x18f20a)==_0x3004bc(0xbb)?_0x18f20a:_0x18f20a+'';}function N(_0x548e2b,_0x1b2825,_0x24aaf0){const _0x280653=_0x24e2ca;return(_0x1b2825=rt(_0x1b2825))in _0x548e2b?Object[_0x280653(0x111)](_0x548e2b,_0x1b2825,{'value':_0x24aaf0,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x548e2b[_0x1b2825]=_0x24aaf0,_0x548e2b;}var P=class extends _0x25f89c{constructor(..._0x8f22d0){const _0x74c00c=_0x24e2ca;super(..._0x8f22d0),N(this,'_resources',new Map()),N(this,_0x74c00c(0xc9),new Map()),N(this,'_loadErrors',new Map()),N(this,_0x74c00c(0xb3),new _0x143dcf()),N(this,_0x74c00c(0x10c),this['_change$'][_0x74c00c(0xa7)]());}[_0x24e2ca(0x17c)](_0x589e38,_0x5ea175){const _0x691e3b=_0x24e2ca;var _0x4e004b;let _0x45dc03=(_0x4e004b=this[_0x691e3b(0xb0)]['get'](_0x589e38))==null?void 0x0:_0x4e004b[_0x691e3b(0xdc)][_0x5ea175];return _0x45dc03?_0x56e124[_0x691e3b(0x168)](_0x45dc03):void 0x0;}[_0x24e2ca(0x158)](_0x4d4066){const _0x5eea03=_0x24e2ca;var _0x49d226;return _0x56e124[_0x5eea03(0x168)](((_0x49d226=this[_0x5eea03(0xb0)][_0x5eea03(0x83)](_0x4d4066))==null?void 0x0:_0x49d226[_0x5eea03(0xdc)])??{});}[_0x24e2ca(0x11f)](_0x43122d){const _0x271986=_0x24e2ca;let _0x3c1f0b=this['_resources'][_0x271986(0x83)](_0x43122d);return _0x3c1f0b?_0x56e124['deepClone'](_0x3c1f0b):void 0x0;}['setFormula'](_0x15e1df,_0xb3a16e,_0x514b35){const _0xd5117b=_0x24e2ca;return this[_0xd5117b(0x131)](_0x15e1df,{[_0xb3a16e]:_0x514b35});}[_0x24e2ca(0x8c)](_0x23c8b0,_0x34251d){const _0x13aff5=_0x24e2ca;return this[_0x13aff5(0x17b)][_0x13aff5(0xa4)](_0x23c8b0)||!x(_0x34251d)?!0x1:(this[_0x13aff5(0xb0)][_0x13aff5(0xb1)](_0x23c8b0,_0x56e124[_0x13aff5(0x168)](_0x34251d)),this[_0x13aff5(0xb3)]['next']({'unitId':_0x23c8b0}),!0x0);}['setFormulas'](_0x4c1083,_0x1e3633){const _0x26e3aa=_0x24e2ca;if(this[_0x26e3aa(0x17b)][_0x26e3aa(0xa4)](_0x4c1083)||!Object[_0x26e3aa(0x15e)](_0x1e3633)[_0x26e3aa(0xff)]||!x({'schemaVersion':0x1,'formulas':_0x1e3633}))return!0x1;let _0x1feaee=this['_resources'][_0x26e3aa(0x83)](_0x4c1083)??b(),_0x41a4e9=_0x56e124[_0x26e3aa(0x168)](_0x1feaee);return Object['assign'](_0x41a4e9[_0x26e3aa(0xdc)],_0x56e124[_0x26e3aa(0x168)](_0x1e3633)),this[_0x26e3aa(0xb0)][_0x26e3aa(0xb1)](_0x4c1083,_0x41a4e9),this[_0x26e3aa(0xb3)][_0x26e3aa(0x14d)]({'unitId':_0x4c1083,'rangeIds':Object['keys'](_0x1e3633)}),!0x0;}['removeFormula'](_0x370cff,_0x84b77b){const _0x35a4d1=_0x24e2ca;if(this[_0x35a4d1(0x17b)][_0x35a4d1(0xa4)](_0x370cff))return!0x1;let _0x4abc7f=this[_0x35a4d1(0xb0)][_0x35a4d1(0x83)](_0x370cff);if(!(_0x4abc7f!=null&&_0x4abc7f[_0x35a4d1(0xdc)][_0x84b77b]))return!0x1;let _0x456c9a=_0x56e124['deepClone'](_0x4abc7f);return delete _0x456c9a[_0x35a4d1(0xdc)][_0x84b77b],this['_resources']['set'](_0x370cff,_0x456c9a),this[_0x35a4d1(0xb3)][_0x35a4d1(0x14d)]({'unitId':_0x370cff,'rangeIds':[_0x84b77b]}),!0x0;}[_0x24e2ca(0xc5)](_0x1d25ce,_0x58926d){const _0x2acb86=_0x24e2ca;return _0x58926d&&typeof _0x58926d==_0x2acb86(0xb7)&&_0x2acb86(0x13e)in _0x58926d&&_0x58926d[_0x2acb86(0x13e)]!==0x1?(this[_0x2acb86(0xee)](_0x1d25ce,_0x58926d,_0x2acb86(0xcb)),!0x1):x(_0x58926d)?(this[_0x2acb86(0xb0)]['set'](_0x1d25ce,_0x56e124[_0x2acb86(0x168)](_0x58926d)),this[_0x2acb86(0xc9)][_0x2acb86(0x86)](_0x1d25ce),this['_loadErrors']['delete'](_0x1d25ce),this['_change$'][_0x2acb86(0x14d)]({'unitId':_0x1d25ce}),!0x0):(this[_0x2acb86(0xee)](_0x1d25ce,_0x58926d,_0x2acb86(0x179)),!0x1);}[_0x24e2ca(0x149)](_0x5e2129){const _0x39e09a=_0x24e2ca;let _0x1235ec=this[_0x39e09a(0xb0)][_0x39e09a(0x83)](_0x5e2129);return _0x1235ec?_0x56e124['deepClone'](_0x1235ec):this['_rawResources'][_0x39e09a(0xa4)](_0x5e2129)?_0x56e124[_0x39e09a(0x168)](this[_0x39e09a(0xc9)][_0x39e09a(0x83)](_0x5e2129)):b();}[_0x24e2ca(0xf2)](_0x53a65b){return this['_loadErrors']['get'](_0x53a65b);}['removeUnit'](_0x34fd39){const _0x7052fe=_0x24e2ca;this['_resources'][_0x7052fe(0x86)](_0x34fd39),this[_0x7052fe(0xc9)][_0x7052fe(0x86)](_0x34fd39),this[_0x7052fe(0x17b)]['delete'](_0x34fd39),this['_change$'][_0x7052fe(0x14d)]({'unitId':_0x34fd39});}[_0x24e2ca(0x127)](){const _0x25e7fc=_0x24e2ca;this[_0x25e7fc(0xb0)][_0x25e7fc(0x13a)](),this['_rawResources'][_0x25e7fc(0x13a)](),this[_0x25e7fc(0x17b)][_0x25e7fc(0x13a)](),this[_0x25e7fc(0xb3)][_0x25e7fc(0xaf)](),super[_0x25e7fc(0x127)]();}[_0x24e2ca(0xee)](_0x48f88f,_0x1417d4,_0x2409e3){const _0xef6108=_0x24e2ca;this[_0xef6108(0xb0)][_0xef6108(0x86)](_0x48f88f),this[_0xef6108(0xc9)]['set'](_0x48f88f,_0x56e124['deepClone'](_0x1417d4)),this[_0xef6108(0x17b)][_0xef6108(0xb1)](_0x48f88f,_0x2409e3),this[_0xef6108(0xb3)][_0xef6108(0x14d)]({'unitId':_0x48f88f});}};let it=function(_0x17daf2){const _0x4965fb=_0x24e2ca;return _0x17daf2[_0x4965fb(0x9b)]=_0x4965fb(0xa6),_0x17daf2[_0x4965fb(0x100)]=_0x4965fb(0x144),_0x17daf2[_0x4965fb(0x136)]=_0x4965fb(0xe1),_0x17daf2[_0x4965fb(0x113)]='error',_0x17daf2;}({});function F(_0x1d1809,_0x44e879){return function(_0x5c3be7,_0x1da617){_0x44e879(_0x5c3be7,_0x1da617,_0x1d1809);};}function I(_0x211d3d,_0x187e1d,_0x1f4267,_0x112495){const _0x2a872c=_0x24e2ca;var _0x31762f=arguments[_0x2a872c(0xff)],_0x3060aa=_0x31762f<0x3?_0x187e1d:_0x112495===null?_0x112495=Object['getOwnPropertyDescriptor'](_0x187e1d,_0x1f4267):_0x112495,_0x5aed21;if(typeof Reflect==_0x2a872c(0xb7)&&typeof Reflect['decorate']==_0x2a872c(0x167))_0x3060aa=Reflect['decorate'](_0x211d3d,_0x187e1d,_0x1f4267,_0x112495);else{for(var _0x250747=_0x211d3d['length']-0x1;_0x250747>=0x0;_0x250747--)(_0x5aed21=_0x211d3d[_0x250747])&&(_0x3060aa=(_0x31762f<0x3?_0x5aed21(_0x3060aa):_0x31762f>0x3?_0x5aed21(_0x187e1d,_0x1f4267,_0x3060aa):_0x5aed21(_0x187e1d,_0x1f4267))||_0x3060aa);}return _0x31762f>0x3&&_0x3060aa&&Object[_0x2a872c(0x111)](_0x187e1d,_0x1f4267,_0x3060aa),_0x3060aa;}let L=class extends _0x25f89c{constructor(_0x2e83aa,_0x29912d,_0x5894bf){const _0x25f968=_0x24e2ca;super(),this[_0x25f968(0x118)]=_0x2e83aa,this[_0x25f968(0x94)]=_0x29912d,this[_0x25f968(0x152)]=_0x5894bf,N(this,_0x25f968(0x141),new Map()),N(this,'_formulaKeys',new Map()),N(this,_0x25f968(0xc1),new _0x143dcf()),N(this,_0x25f968(0x129),this[_0x25f968(0xc1)][_0x25f968(0xa7)]()),this[_0x25f968(0x13d)](this[_0x25f968(0x94)]['formulaResult$'][_0x25f968(0x9a)](_0x4c4488=>{const _0xc61b64=_0x25f968;for(let _0x56d54b of Object[_0xc61b64(0xd4)](_0x4c4488))for(let _0x265dd7 of Object[_0xc61b64(0xd4)](_0x56d54b))_0x265dd7[_0xc61b64(0x84)](_0x2e4be2=>this[_0xc61b64(0xf5)](_0x2e4be2));}));}[_0x24e2ca(0xa3)](_0x21cb18){const _0x468292=_0x24e2ca;var _0x342912;let _0x124f80=_0x21cb18[_0x468292(0x90)](),_0x166b07=((_0x342912=_0x21cb18[_0x468292(0xa1)]()[_0x468292(0xe0)])==null||(_0x342912=_0x342912['customRanges'])==null?void 0x0:_0x342912[_0x468292(0x12e)](w))??[],_0xb6589f=this[_0x468292(0x118)][_0x468292(0x158)](_0x124f80),_0x43d7ab=new Set();for(let _0x1e022c of _0x166b07){let _0x3f62e4=_0xb6589f[_0x1e022c[_0x468292(0xac)]];_0x3f62e4&&(_0x43d7ab[_0x468292(0xe2)](R(_0x124f80,_0x1e022c[_0x468292(0xac)])),this[_0x468292(0x97)]({'unitId':_0x124f80,'rangeId':_0x1e022c['rangeId']},_0x3f62e4));}for(let _0x5abd67 of Array[_0x468292(0x170)](this['_registrations'][_0x468292(0xd4)]()))_0x5abd67[_0x468292(0xd8)]===_0x124f80&&!_0x43d7ab[_0x468292(0xa4)](R(_0x5abd67[_0x468292(0xd8)],_0x5abd67[_0x468292(0xac)]))&&this[_0x468292(0xd3)](_0x5abd67);}['register'](_0x886990,_0x32a835){const _0x3d8cfa=_0x24e2ca;let _0x5f0d75=R(_0x886990['unitId'],_0x886990[_0x3d8cfa(0xac)]),_0x14831f=this[_0x3d8cfa(0x141)]['get'](_0x5f0d75),_0x126a96=this['_hostExternalReferenceModel']['getRevision'](_0x886990['unitId']);if(_0x14831f&&_0x14831f[_0x3d8cfa(0x138)][_0x3d8cfa(0x110)]===_0x32a835[_0x3d8cfa(0x110)]&&_0x14831f[_0x3d8cfa(0x165)]===_0x126a96){_0x14831f[_0x3d8cfa(0x138)]=_0x32a835;let _0xdea93b=_0x14831f[_0x3d8cfa(0x16a)]?this[_0x3d8cfa(0x94)][_0x3d8cfa(0xf8)](_0x14831f[_0x3d8cfa(0xd8)],_0x14831f['unitId'],_0x14831f[_0x3d8cfa(0x16a)])??void 0x0:void 0x0;_0x14831f['liveResult']=_0xdea93b,this[_0x3d8cfa(0x99)](_0x5f0d75,z(_0x32a835,_0xdea93b));return;}_0x14831f!=null&&_0x14831f[_0x3d8cfa(0x16a)]&&this[_0x3d8cfa(0x9d)](_0x14831f);let _0x3dccee={..._0x886990,'config':_0x32a835,'referenceRevision':_0x126a96,'presentation':z(_0x32a835,void 0x0)};if(this[_0x3d8cfa(0x141)][_0x3d8cfa(0xb1)](_0x5f0d75,_0x3dccee),!_0x32a835['formula'][_0x3d8cfa(0x140)]())return;let _0x102053=this[_0x3d8cfa(0x94)]['registerFormulaWithRange'](_0x886990[_0x3d8cfa(0xd8)],_0x886990[_0x3d8cfa(0xd8)],_0x32a835[_0x3d8cfa(0x110)],void 0x0,{'rangeId':_0x886990[_0x3d8cfa(0xac)]},_0xc26a75[_0x3d8cfa(0x12c)],_0x886990['rangeId']);_0x3dccee[_0x3d8cfa(0x16a)]=_0x102053,this[_0x3d8cfa(0x176)][_0x3d8cfa(0xb1)](_0x102053,_0x5f0d75);}[_0x24e2ca(0xd3)](_0x5c2558){const _0x3917bc=_0x24e2ca;let _0x3e3d95=R(_0x5c2558['unitId'],_0x5c2558['rangeId']),_0xef5141=this[_0x3917bc(0x141)][_0x3917bc(0x83)](_0x3e3d95);_0xef5141&&(this[_0x3917bc(0x9d)](_0xef5141),this['_registrations'][_0x3917bc(0x86)](_0x3e3d95));}['unregisterUnit'](_0x1a9279){const _0x47de4c=_0x24e2ca;for(let _0x4ff2db of Array[_0x47de4c(0x170)](this[_0x47de4c(0x141)][_0x47de4c(0xd4)]()))_0x4ff2db['unitId']===_0x1a9279&&this[_0x47de4c(0xd3)](_0x4ff2db);}[_0x24e2ca(0xad)](_0x145b05){const _0x5d0cbf=_0x24e2ca;var _0x5aeb03;return(_0x5aeb03=this[_0x5d0cbf(0x141)]['get'](R(_0x145b05[_0x5d0cbf(0xd8)],_0x145b05[_0x5d0cbf(0xac)])))==null?void 0x0:_0x5aeb03['presentation'];}[_0x24e2ca(0x123)](_0x4329b3){const _0x3aa6d4=_0x24e2ca;let _0x11b274=this['_registrations']['get'](R(_0x4329b3[_0x3aa6d4(0xd8)],_0x4329b3[_0x3aa6d4(0xac)]));return _0x11b274?B(_0x11b274):void 0x0;}[_0x24e2ca(0x126)](){const _0x239600=_0x24e2ca;return Array[_0x239600(0x170)](this[_0x239600(0x141)][_0x239600(0xd4)](),_0x3aaac7=>({'identity':{'unitId':_0x3aaac7['unitId'],'rangeId':_0x3aaac7['rangeId']},'config':_0x3aaac7[_0x239600(0x138)],'referenceRevision':_0x3aaac7['referenceRevision'],..._0x3aaac7[_0x239600(0x17a)]?{'liveResult':_0x3aaac7[_0x239600(0x17a)]}:null}));}['dispose'](){const _0x201b45=_0x24e2ca;for(let _0xc658d1 of this[_0x201b45(0x141)][_0x201b45(0xd4)]())this[_0x201b45(0x9d)](_0xc658d1);this[_0x201b45(0x141)]['clear'](),this[_0x201b45(0x176)][_0x201b45(0x13a)](),this[_0x201b45(0xc1)][_0x201b45(0xaf)](),super['dispose']();}[_0x24e2ca(0xf5)](_0x501059){const _0x45ae9f=_0x24e2ca;let _0x2e0925=this[_0x45ae9f(0x176)][_0x45ae9f(0x83)](_0x501059[_0x45ae9f(0x16a)]),_0x3c8720=_0x2e0925?this[_0x45ae9f(0x141)][_0x45ae9f(0x83)](_0x2e0925):void 0x0;_0x2e0925&&_0x3c8720&&(_0x3c8720[_0x45ae9f(0x17a)]=_0x501059,this[_0x45ae9f(0x99)](_0x2e0925,z(_0x3c8720['config'],_0x501059)));}[_0x24e2ca(0x99)](_0x150705,_0xa99fa9){const _0x3d2da4=_0x24e2ca;var _0x452bb3,_0x423922;let _0x55fe5c=this[_0x3d2da4(0x141)]['get'](_0x150705);if(!_0x55fe5c||at(_0x55fe5c[_0x3d2da4(0xed)],_0xa99fa9))return;let _0x2e0674=_0x55fe5c[_0x3d2da4(0xed)],_0x5b63c3=B(_0x55fe5c);_0x55fe5c[_0x3d2da4(0xed)]=_0xa99fa9,this[_0x3d2da4(0xc1)][_0x3d2da4(0x14d)]({'unitId':_0x55fe5c[_0x3d2da4(0xd8)],'rangeId':_0x55fe5c[_0x3d2da4(0xac)],'presentation':_0xa99fa9,'previousPresentation':_0x2e0674,'result':B(_0x55fe5c),'previousResult':{..._0x5b63c3,..._0x2e0674,'value':(_0x452bb3=_0x2e0674[_0x3d2da4(0x10f)])==null?void 0x0:_0x452bb3['v'],'valueType':((_0x423922=_0x2e0674['cell'])==null?void 0x0:_0x423922['t'])??void 0x0}});}[_0x24e2ca(0x9d)](_0x5ea35f){const _0x38ff76=_0x24e2ca;_0x5ea35f[_0x38ff76(0x16a)]&&(this[_0x38ff76(0x94)]['deleteFormula'](_0x5ea35f[_0x38ff76(0xd8)],_0x5ea35f[_0x38ff76(0xd8)],[_0x5ea35f[_0x38ff76(0x16a)]]),this[_0x38ff76(0x176)]['delete'](_0x5ea35f[_0x38ff76(0x16a)]));}};L=I([F(0x0,_0x22e0aa(P)),F(0x1,_0x22e0aa(_0x1a7a0f)),F(0x2,_0x22e0aa(_0xed4143))],L);function R(_0x55424a,_0x4ed2d7){return _0x55424a+'\x00'+_0x4ed2d7;}function z(_0x1d73ef,_0x57f67e){const _0x8c16b0=_0x24e2ca;return _0x500f97({'numberFormat':_0x1d73ef[_0x8c16b0(0xfb)],'lastValue':_0x1d73ef[_0x8c16b0(0x16c)],'result':_0x57f67e});}function B(_0x8106a0){const _0x156bb0=_0x24e2ca;var _0x3179f1,_0x53f88c,_0x3c281f;let _0x84eb61=_0x8106a0['presentation'],_0x3ca34b=_0x8106a0[_0x156bb0(0x138)][_0x156bb0(0x110)][_0x156bb0(0x140)]()?_0x84eb61[_0x156bb0(0x117)]||_0x84eb61[_0x156bb0(0x10f)]==null?_0x156bb0(0x144):((_0x3179f1=_0x8106a0[_0x156bb0(0x17a)])==null?void 0x0:_0x3179f1[_0x156bb0(0xa8)])===_0xfae944[_0x156bb0(0x113)]?_0x156bb0(0x173):_0x156bb0(0xe1):_0x156bb0(0xa6);return{..._0x84eb61,'status':_0x3ca34b,'value':(_0x53f88c=_0x84eb61[_0x156bb0(0x10f)])==null?void 0x0:_0x53f88c['v'],'valueType':((_0x3c281f=_0x84eb61[_0x156bb0(0x10f)])==null?void 0x0:_0x3c281f['t'])??void 0x0};}function at(_0x1e49db,_0x3b76ca){const _0x10cd49=_0x24e2ca;var _0x5305e7,_0x328e79,_0x46a695,_0x187f57;return _0x1e49db[_0x10cd49(0x16d)]===_0x3b76ca[_0x10cd49(0x16d)]&&_0x1e49db[_0x10cd49(0xd6)]===_0x3b76ca[_0x10cd49(0xd6)]&&_0x1e49db[_0x10cd49(0xd0)]===_0x3b76ca[_0x10cd49(0xd0)]&&_0x1e49db[_0x10cd49(0xd2)]===_0x3b76ca[_0x10cd49(0xd2)]&&_0x1e49db[_0x10cd49(0x117)]===_0x3b76ca[_0x10cd49(0x117)]&&((_0x5305e7=_0x1e49db[_0x10cd49(0x10f)])==null?void 0x0:_0x5305e7['t'])===((_0x328e79=_0x3b76ca[_0x10cd49(0x10f)])==null?void 0x0:_0x328e79['t'])&&Object['is']((_0x46a695=_0x1e49db['cell'])==null?void 0x0:_0x46a695['v'],(_0x187f57=_0x3b76ca[_0x10cd49(0x10f)])==null?void 0x0:_0x187f57['v']);}const ot={'id':'docs-formula.mutation.set-formula','type':_0x1da90f[_0x24e2ca(0x122)],'handler':(_0x4e35c9,_0x275b85)=>!(_0x275b85!=null&&_0x275b85[_0x24e2ca(0xd8)])||!_0x275b85[_0x24e2ca(0xac)]||!_0x275b85[_0x24e2ca(0x138)]?!0x1:_0x4e35c9[_0x24e2ca(0x83)](P)[_0x24e2ca(0x157)](_0x275b85[_0x24e2ca(0xd8)],_0x275b85['rangeId'],_0x275b85[_0x24e2ca(0x138)])},st={'id':_0x24e2ca(0xa5),'type':_0x1da90f['MUTATION'],'handler':(_0x3b4ce0,_0x3c11d2)=>!(_0x3c11d2!=null&&_0x3c11d2[_0x24e2ca(0xd8)])||!_0x3c11d2[_0x24e2ca(0xac)]?!0x1:_0x3b4ce0[_0x24e2ca(0x83)](P)[_0x24e2ca(0x11c)](_0x3c11d2[_0x24e2ca(0xd8)],_0x3c11d2[_0x24e2ca(0xac)])},V={'id':_0x24e2ca(0x133),'type':_0x1da90f[_0x24e2ca(0x122)],'handler':(_0x38ee50,_0x5c804a)=>!(_0x5c804a!=null&&_0x5c804a[_0x24e2ca(0xd8)])||!_0x5c804a[_0x24e2ca(0x153)]?!0x1:_0x38ee50[_0x24e2ca(0x83)](P)['setResource'](_0x5c804a['unitId'],_0x5c804a[_0x24e2ca(0x153)])},H={'id':_0x24e2ca(0xfc),'type':_0x1da90f[_0x24e2ca(0x122)],'handler':(_0x522282,_0x50008c)=>{const _0x1fd035=_0x24e2ca;if(!(_0x50008c!=null&&_0x50008c[_0x1fd035(0xd8)])||!_0x50008c['updates'][_0x1fd035(0xff)])return!0x1;let _0xa9f2d2=_0x522282[_0x1fd035(0x83)](P),_0x3ec971=_0x522282[_0x1fd035(0x83)](_0xed4143),_0x41b114=_0xa9f2d2[_0x1fd035(0x11f)](_0x50008c[_0x1fd035(0xd8)]);if(!_0x41b114)return!0x1;let _0x2b7260=_0x56e124[_0x1fd035(0x168)](_0x41b114),_0x1a3d53=!0x1;for(let _0x57ca80 of _0x50008c['updates']){var _0x349d27,_0x42c20a,_0x3d6b52,_0x119007;let _0x5a0b63=_0x2b7260[_0x1fd035(0xdc)][_0x57ca80[_0x1fd035(0xac)]];_0x5a0b63&&_0x5a0b63[_0x1fd035(0x110)]===_0x57ca80['expectedFormula']&&((_0x349d27=_0x5a0b63['numberFormat'])==null?void 0x0:_0x349d27['pattern'])===_0x57ca80[_0x1fd035(0xdb)]&&_0x3ec971['getRevision'](_0x50008c[_0x1fd035(0xd8)])===_0x57ca80[_0x1fd035(0xde)]&&(((_0x42c20a=_0x5a0b63['lastValue'])==null?void 0x0:_0x42c20a['v'])!==_0x57ca80[_0x1fd035(0x16c)]['v']||((_0x3d6b52=_0x5a0b63[_0x1fd035(0x16c)])==null?void 0x0:_0x3d6b52['t'])!==_0x57ca80[_0x1fd035(0x16c)]['t']||((_0x119007=_0x5a0b63['lastValue'])==null?void 0x0:_0x119007['pattern'])!==_0x57ca80[_0x1fd035(0x16c)][_0x1fd035(0xd0)])&&(_0x5a0b63[_0x1fd035(0x16c)]=_0x56e124[_0x1fd035(0x168)](_0x57ca80['lastValue']),_0x1a3d53=!0x0);}return!_0x1a3d53||_0xa9f2d2[_0x1fd035(0x8c)](_0x50008c[_0x1fd035(0xd8)],_0x2b7260);}},U={'id':_0x24e2ca(0x14f),'type':_0x1da90f['COMMAND'],'handler':(_0x3ca233,_0x1891e3)=>{const _0x499b7c=_0x24e2ca;if(!(_0x1891e3!=null&&_0x1891e3[_0x499b7c(0x110)][_0x499b7c(0x140)]()))return!0x1;let _0x1b5ede=q(_0x3ca233,_0x1891e3[_0x499b7c(0xd8)],'');if(!_0x1b5ede)return!0x1;let _0x367d48=ft(_0x1891e3[_0x499b7c(0x145)],_0x1b5ede[_0x499b7c(0xe0)],dt(_0x3ca233,_0x1b5ede['unitId']));if(!_0x367d48)return!0x1;let _0x19f773=pt(_0x3ca233,_0x1b5ede[_0x499b7c(0xd8)],_0x1891e3[_0x499b7c(0x110)],_0x1891e3[_0x499b7c(0xe8)]??[]);if(!_0x19f773)return!0x1;let _0x3396ec=mt(_0x1b5ede[_0x499b7c(0xe0)],_0x1b5ede[_0x499b7c(0x135)],_0x1b5ede[_0x499b7c(0xd8)]),_0x57700d=ht({'documentData':_0x1b5ede[_0x499b7c(0xcc)],'resource':_0x1b5ede[_0x499b7c(0x153)],'rangeId':_0x3396ec,'config':{'formula':_0x1891e3['formula'],..._0x1891e3['numberFormat']?{'numberFormat':_0x1891e3[_0x499b7c(0xfb)]}:null},'startOffset':_0x367d48['startOffset'],'endOffset':_0x367d48['endOffset']});if(!_0x57700d)return!0x1;let _0x346e2f=_0x38f235(_0x3ca233,_0x1b5ede[_0x499b7c(0xd8)],_0x19f773);return!_0x346e2f||!J({'accessor':_0x3ca233,'document':_0x1b5ede[_0x499b7c(0xef)],'unitId':_0x1b5ede['unitId'],'trigger':U['id'],'rangeId':_0x3396ec,'previousResource':_0x1b5ede[_0x499b7c(0x153)],'nextResource':_0x57700d[_0x499b7c(0x81)],'previousDocumentData':_0x1b5ede[_0x499b7c(0xcc)],'nextDocumentData':_0x57700d[_0x499b7c(0x155)],'cursorOffset':_0x57700d[_0x499b7c(0x143)],'externalMutations':_0x346e2f})?!0x1:{'rangeId':_0x3396ec,'startOffset':_0x57700d[_0x499b7c(0x143)]-0x1,'endOffset':_0x57700d[_0x499b7c(0x143)]};}},W={'id':_0x24e2ca(0x114),'type':_0x1da90f[_0x24e2ca(0xeb)],'handler':(_0x4973c2,_0x16e3e9)=>{const _0x3a9dd3=_0x24e2ca;if(!(_0x16e3e9!=null&&_0x16e3e9[_0x3a9dd3(0xac)])||!_0x16e3e9[_0x3a9dd3(0x110)]['trim']())return!0x1;let _0x65b8e5=q(_0x4973c2,_0x16e3e9['unitId'],''),_0x8e6f99=_0x65b8e5==null?void 0x0:_0x65b8e5[_0x3a9dd3(0x135)][_0x3a9dd3(0x17c)](_0x65b8e5['unitId'],_0x16e3e9[_0x3a9dd3(0xac)]),_0x534077=_0x65b8e5?T(_0x65b8e5[_0x3a9dd3(0xcc)][_0x3a9dd3(0xe0)],_0x16e3e9[_0x3a9dd3(0xac)]):void 0x0;if(!_0x65b8e5||!_0x8e6f99||!_0x534077)return!0x1;let _0x44674f=pt(_0x4973c2,_0x65b8e5[_0x3a9dd3(0xd8)],_0x16e3e9[_0x3a9dd3(0x110)],_0x16e3e9['externalReferences']??[]);if(!_0x44674f)return!0x1;let _0x15c43d=_0x38f235(_0x4973c2,_0x65b8e5[_0x3a9dd3(0xd8)],_0x44674f);if(!_0x15c43d)return!0x1;let _0x2b51c2=Ct(_0x65b8e5[_0x3a9dd3(0x153)]);return _0x2b51c2['formulas'][_0x16e3e9[_0x3a9dd3(0xac)]]={'formula':_0x16e3e9[_0x3a9dd3(0x110)],..._0x16e3e9[_0x3a9dd3(0xfb)]?{'numberFormat':_0x16e3e9['numberFormat']}:_0x8e6f99[_0x3a9dd3(0xfb)]?{'numberFormat':_0x8e6f99['numberFormat']}:null},J({'accessor':_0x4973c2,'document':_0x65b8e5['document'],'unitId':_0x65b8e5[_0x3a9dd3(0xd8)],'trigger':W['id'],'rangeId':_0x16e3e9[_0x3a9dd3(0xac)],'previousResource':_0x65b8e5[_0x3a9dd3(0x153)],'nextResource':_0x2b51c2,'cursorOffset':_0x534077['endIndex']+0x1,'externalMutations':_0x15c43d});}},G={'id':_0x24e2ca(0x107),'type':_0x1da90f[_0x24e2ca(0xeb)],'handler':(_0x29d4b7,_0x144644)=>{const _0x370aa3=_0x24e2ca;if(!(_0x144644!=null&&_0x144644['rangeId']))return!0x1;let _0x1a8c82=q(_0x29d4b7,_0x144644[_0x370aa3(0xd8)],''),_0x3c904e=_0x1a8c82==null?void 0x0:_0x1a8c82[_0x370aa3(0x135)][_0x370aa3(0x17c)](_0x1a8c82[_0x370aa3(0xd8)],_0x144644[_0x370aa3(0xac)]),_0xf83566=_0x1a8c82?T(_0x1a8c82['documentData']['body'],_0x144644[_0x370aa3(0xac)]):void 0x0;if(!_0x1a8c82||!_0x3c904e||!_0xf83566)return!0x1;let _0x3c3452=Ct(_0x1a8c82[_0x370aa3(0x153)]);return _0x3c3452[_0x370aa3(0xdc)][_0x144644[_0x370aa3(0xac)]]={..._0x3c904e,..._0x144644[_0x370aa3(0xfb)]?{'numberFormat':_0x144644[_0x370aa3(0xfb)]}:null},_0x144644[_0x370aa3(0xfb)]||delete _0x3c3452[_0x370aa3(0xdc)][_0x144644['rangeId']][_0x370aa3(0xfb)],J({'accessor':_0x29d4b7,'document':_0x1a8c82[_0x370aa3(0xef)],'unitId':_0x1a8c82['unitId'],'trigger':G['id'],'rangeId':_0x144644['rangeId'],'previousResource':_0x1a8c82[_0x370aa3(0x153)],'nextResource':_0x3c3452,'cursorOffset':_0xf83566['endIndex']+0x1,'externalMutations':{}});}},K={'id':_0x24e2ca(0x14a),'type':_0x1da90f[_0x24e2ca(0xeb)],'handler':(_0x45cefc,_0x4b1346)=>ut(_0x45cefc,_0x4b1346,'',K['id'])},ct={'id':_0x24e2ca(0x13b),'type':_0x1da90f['COMMAND'],'handler':(_0x404457,_0x450323)=>ut(_0x404457,_0x450323,(_0x450323==null?void 0x0:_0x450323['text'])??'',ct['id'])},lt={'id':'docs-formula.command.convert-to-text','type':_0x1da90f['COMMAND'],'handler':(_0x1b6391,_0x580354)=>{const _0x3b0eb2=_0x24e2ca;if(!(_0x580354!=null&&_0x580354[_0x3b0eb2(0xac)]))return!0x1;let _0x54674f=q(_0x1b6391,_0x580354['unitId'],'');if(!_0x54674f)return!0x1;let _0x1a3d32=_0x1b6391[_0x3b0eb2(0x83)](L)[_0x3b0eb2(0x123)]({'unitId':_0x54674f[_0x3b0eb2(0xd8)],'rangeId':_0x580354[_0x3b0eb2(0xac)]});return _0x1a3d32?ut(_0x1b6391,_0x580354,_0x1a3d32[_0x3b0eb2(0x16d)],lt['id']):!0x1;}};function ut(_0x2a21ca,_0x4ef070,_0x15d739,_0xe59c81){const _0xed2bb3=_0x24e2ca;if(!(_0x4ef070!=null&&_0x4ef070[_0xed2bb3(0xac)]))return!0x1;let _0x5bd75b=q(_0x2a21ca,_0x4ef070[_0xed2bb3(0xd8)],'');if(!_0x5bd75b)return!0x1;let _0x64e1eb=Be({'documentData':_0x5bd75b['documentData'],'resource':_0x5bd75b['resource'],'rangeId':_0x4ef070[_0xed2bb3(0xac)],'text':_0x15d739});return _0x64e1eb?J({'accessor':_0x2a21ca,'document':_0x5bd75b['document'],'unitId':_0x5bd75b['unitId'],'trigger':_0xe59c81,'rangeId':_0x4ef070[_0xed2bb3(0xac)],'previousResource':_0x5bd75b['resource'],'nextResource':_0x64e1eb[_0xed2bb3(0x81)],'previousDocumentData':_0x5bd75b[_0xed2bb3(0xcc)],'nextDocumentData':_0x64e1eb[_0xed2bb3(0x155)],'cursorOffset':_0x64e1eb['cursorOffset'],'externalMutations':{}}):!0x1;}function q(_0x47d18e,_0x13fe50,_0x570f61){const _0x42ae63=_0x24e2ca;if(_0x570f61)return null;let _0x1f0ac3=_0x47d18e['get'](_0x28c187),_0x3c7b55=(_0x13fe50?_0x1f0ac3[_0x42ae63(0x98)](_0x13fe50,_0x1b556b['UNIVER_DOC']):_0x1f0ac3[_0x42ae63(0x134)](_0x1b556b['UNIVER_DOC']))??null;if(!_0x3c7b55)return null;let _0xaef7e6=_0x3c7b55['getSnapshot'](),_0x10ac36=_0xaef7e6['body'];if(_0xaef7e6[_0x42ae63(0x14b)]||!_0x10ac36)return null;let _0x48cac8=_0x47d18e[_0x42ae63(0x83)](P);return _0x48cac8[_0x42ae63(0xf2)](_0x3c7b55[_0x42ae63(0x90)]())?null:{'document':_0x3c7b55,'body':_0x10ac36,'documentData':_0xaef7e6,'model':_0x48cac8,'resource':_0x48cac8[_0x42ae63(0x11f)](_0x3c7b55['getUnitId']())??b(),'unitId':_0x3c7b55[_0x42ae63(0x90)]()};}function dt(_0x16bb48,_0x467031){const _0x3cae03=_0x24e2ca;var _0x357ad5;return(_0x357ad5=_0x16bb48['get'](_0x14ce86)[_0x3cae03(0x85)]({'subUnitId':_0x467031,'unitId':_0x467031}))==null?void 0x0:_0x357ad5[0x0];}function ft(_0x558cf2,_0xa4e834,_0x24c0be){const _0x41fa4a=_0x24e2ca;if((_0x558cf2==null?void 0x0:_0x558cf2[_0x41fa4a(0xe9)])===_0x41fa4a(0xf6)){var _0x4f8c77;let _0x28cbcf=((_0x4f8c77=_0xa4e834[_0x41fa4a(0x146)])==null?void 0x0:_0x4f8c77['filter'](_0x2aaefb=>_0x2aaefb[_0x41fa4a(0x14c)]===_0x558cf2['paragraphId']))??[];if(_0x28cbcf[_0x41fa4a(0xff)]!==0x1)return null;let _0x22e1c7=_0x28cbcf[0x0],_0x58cff1=_0xaeba(_0xa4e834,_0x22e1c7),_0x3fd4de=_0x22e1c7[_0x41fa4a(0xc7)]-_0x58cff1,_0x193271=_0x558cf2['position']===_0x41fa4a(0x11a)?_0x3fd4de:_0x558cf2[_0x41fa4a(0x172)];if(!Number[_0x41fa4a(0x8b)](_0x193271)||_0x193271<0x0||_0x193271>_0x3fd4de)return null;let _0x2f41a2=_0x58cff1+_0x193271;return{'startOffset':_0x2f41a2,'endOffset':_0x2f41a2};}if((_0x558cf2==null?void 0x0:_0x558cf2['type'])==='range')return!Number[_0x41fa4a(0x8b)](_0x558cf2[_0x41fa4a(0x14e)])||!Number[_0x41fa4a(0x8b)](_0x558cf2['endOffset'])?null:{'startOffset':Math[_0x41fa4a(0x150)](_0x558cf2[_0x41fa4a(0x14e)],_0x558cf2[_0x41fa4a(0x162)]),'endOffset':Math[_0x41fa4a(0xb5)](_0x558cf2[_0x41fa4a(0x14e)],_0x558cf2[_0x41fa4a(0x162)])};let _0x30d0fe=(_0x558cf2==null?void 0x0:_0x558cf2[_0x41fa4a(0xe9)])===_0x41fa4a(0x12f)?_0x558cf2[_0x41fa4a(0x12f)]:_0x24c0be;return!_0x30d0fe||_0x30d0fe['segmentId']?null:{'startOffset':Math[_0x41fa4a(0x150)](_0x30d0fe[_0x41fa4a(0x14e)],_0x30d0fe[_0x41fa4a(0x162)]),'endOffset':Math[_0x41fa4a(0xb5)](_0x30d0fe[_0x41fa4a(0x14e)],_0x30d0fe[_0x41fa4a(0x162)])};}function pt(_0x1e39e3,_0x5ec59f,_0x224fa0,_0x35dcf3){const _0x380d7c=_0x24e2ca;let _0x16e2fb=_0x1e39e3[_0x380d7c(0x83)](_0x1e5c80),_0x14b511=_0x224fa0[_0x380d7c(0xc0)]('=')?_0x224fa0[_0x380d7c(0xaa)](0x1):_0x224fa0,_0x24382a=_0x16e2fb['sequenceNodesBuilder'](_0x14b511);if(!_0x24382a)return null;let _0x49d3dc=_0x1e39e3[_0x380d7c(0x83)](_0xed4143),_0x4214b4=_0x5f34d5({'qualifiers':_0x1f8367(_0x24382a),'explicitReferences':_0x35dcf3??[],'resolveBinding':_0x1075ed=>_0x49d3dc[_0x380d7c(0xa0)](_0x5ec59f,_0x1075ed)});return _0x4214b4['status']===_0x380d7c(0x8d)?_0x4214b4[_0x380d7c(0x148)]:null;}function mt(_0x1ec67a,_0x378bea,_0x22f767){const _0x482a70=_0x24e2ca;var _0xdb10ba;let _0x2dcf37=_0x3ddba5(0x6);for(;_0x1ec67a!=null&&(_0xdb10ba=_0x1ec67a['customRanges'])!=null&&_0xdb10ba[_0x482a70(0xdd)](_0x2cfa16=>_0x2cfa16[_0x482a70(0xac)]===_0x2dcf37)||_0x378bea[_0x482a70(0x17c)](_0x22f767,_0x2dcf37);)_0x2dcf37=_0x3ddba5(0x6);return _0x2dcf37;}function ht(_0xcd68d6){try{return Re(_0xcd68d6);}catch(_0xd5aa6e){if(_0xd5aa6e instanceof C)return null;throw _0xd5aa6e;}}function gt(_0x4b77c6){const _0x43f669=_0x24e2ca;let _0x3a1182=_0x4b77c6[_0x43f669(0x15d)]&&_0x4b77c6[_0x43f669(0x155)]?vt(_0x4b77c6['document'],_0x4b77c6[_0x43f669(0xd8)],_0x4b77c6['previousDocumentData'],_0x4b77c6[_0x43f669(0x155)],_0x4b77c6['cursorOffset'],_0x4b77c6[_0x43f669(0x160)]):null;return _0x4b77c6[_0x43f669(0x15d)]&&_0x4b77c6[_0x43f669(0x155)]&&!_0x3a1182?null:{'documentRedo':_0x3a1182,'resourceRedo':{'id':V['id'],'params':{'unitId':_0x4b77c6[_0x43f669(0xd8)],'resource':_0x4b77c6[_0x43f669(0x81)]}},'resourceUndo':{'id':V['id'],'params':{'unitId':_0x4b77c6[_0x43f669(0xd8)],'resource':_0x4b77c6[_0x43f669(0x159)]}}};}function _t(_0x35e511,_0x169587,_0x5e8dfe,_0x4596b0){const _0xd3bce3=_0x24e2ca;_0x4596b0['pushUndoRedo']({'id':_0x35e511['trigger']+':'+_0x35e511[_0xd3bce3(0xac)],'unitID':_0x35e511[_0xd3bce3(0xd8)],'redoMutations':[..._0x35e511['externalMutations']['redoMutation']?[_0x35e511[_0xd3bce3(0x9f)]['redoMutation']]:[],..._0x169587[_0xd3bce3(0xb9)]?[_0x169587['documentRedo']]:[],_0x169587[_0xd3bce3(0xb2)]],'undoMutations':[_0x169587[_0xd3bce3(0xbc)],..._0x5e8dfe?[_0x5e8dfe]:[],..._0x35e511[_0xd3bce3(0x9f)][_0xd3bce3(0x13c)]?[_0x35e511[_0xd3bce3(0x9f)]['undoMutation']]:[]]});}function J(_0x5e9f5c){const _0xad5911=_0x24e2ca;let _0x44ee92=_0x5e9f5c['accessor']['get'](_0x3d0906),_0x3f7452=_0x5e9f5c[_0xad5911(0x82)]['get'](_0x36a1fe),_0x2c9c27=_0x5e9f5c['accessor'][_0xad5911(0x83)](_0x14ce86),_0x11e4a0=gt(_0x5e9f5c);if(!_0x11e4a0)return!0x1;let _0xa5f446=!0x1,_0x30fa7b=null,_0x574e14=!0x1;try{if(_0x5e9f5c[_0xad5911(0x9f)][_0xad5911(0x16e)]){if(!_0x44ee92[_0xad5911(0x116)](_0x5e9f5c['externalMutations'][_0xad5911(0x16e)]['id'],_0x5e9f5c['externalMutations'][_0xad5911(0x16e)][_0xad5911(0xae)]))return!0x1;_0xa5f446=!0x0;}if(_0x11e4a0[_0xad5911(0xb9)]){let _0x1e117f=_0x44ee92['syncExecuteCommand'](_0x11e4a0['documentRedo']['id'],_0x11e4a0[_0xad5911(0xb9)][_0xad5911(0xae)]);if(!_0x1e117f)return bt(_0x44ee92,_0x5e9f5c[_0xad5911(0x9f)],_0xa5f446),!0x1;_0x30fa7b={'id':_0x547d5a['id'],'params':{..._0x1e117f,'noHistory':!0x0,'noNeedSetTextRange':!0x0,'segmentId':''}};}if(!_0x44ee92[_0xad5911(0x116)](_0x11e4a0[_0xad5911(0xb2)]['id'],_0x11e4a0[_0xad5911(0xb2)][_0xad5911(0xae)]))return yt(_0x44ee92,_0x30fa7b),bt(_0x44ee92,_0x5e9f5c[_0xad5911(0x9f)],_0xa5f446),!0x1;_0x574e14=!0x0,_t(_0x5e9f5c,_0x11e4a0,_0x30fa7b,_0x3f7452);}catch(_0x50b2f8){throw _0x574e14&&_0x44ee92[_0xad5911(0x116)](_0x11e4a0[_0xad5911(0xbc)]['id'],_0x11e4a0[_0xad5911(0xbc)][_0xad5911(0xae)]),yt(_0x44ee92,_0x30fa7b),bt(_0x44ee92,_0x5e9f5c[_0xad5911(0x9f)],_0xa5f446),_0x50b2f8;}return _0x2c9c27['replaceDocRanges']([{'startOffset':_0x5e9f5c[_0xad5911(0x143)],'endOffset':_0x5e9f5c[_0xad5911(0x143)],'segmentId':''}],{'unitId':_0x5e9f5c[_0xad5911(0xd8)],'subUnitId':_0x5e9f5c['unitId']},!0x1,{[_0x35872f]:!0x0}),!0x0;}function vt(_0x3436f2,_0x2b0329,_0x1d93ed,_0x30f56e,_0x48e7db,_0x1caf6b){let _0x1d8337=xt(_0x1d93ed,_0x30f56e,_0x1f68c0(_0x3436f2,''));return _0x1d8337?{'id':_0x547d5a['id'],'params':{'unitId':_0x2b0329,'actions':_0x1d8337,'segmentId':'','textRanges':[{'startOffset':_0x48e7db,'endOffset':_0x48e7db,'collapsed':!0x0,'segmentId':''}],'isEditing':!0x1,'noHistory':!0x0,'noNeedSetTextRange':!0x0,'trigger':_0x1caf6b}}:null;}function yt(_0x293270,_0x3e0b46){const _0x46c867=_0x24e2ca;_0x3e0b46&&_0x293270[_0x46c867(0x116)](_0x3e0b46['id'],_0x3e0b46[_0x46c867(0xae)]);}function bt(_0x5a8da8,_0xd0fe6e,_0x124bdd){const _0x450685=_0x24e2ca;_0x124bdd&&_0xd0fe6e[_0x450685(0x13c)]&&_0x5a8da8[_0x450685(0x116)](_0xd0fe6e[_0x450685(0x13c)]['id'],_0xd0fe6e[_0x450685(0x13c)][_0x450685(0xae)]);}function xt(_0x55bc3e,_0xce4b87,_0x66f65e){const _0x7ff189=_0x24e2ca;let _0x873266=_0x55bc3e[_0x7ff189(0xe0)],_0x2f6f1b=_0xce4b87[_0x7ff189(0xe0)],_0x3e1673=St(_0x873266==null?void 0x0:_0x873266[_0x7ff189(0xc3)],_0x2f6f1b==null?void 0x0:_0x2f6f1b['dataStream']);if(!_0x3e1673||!_0x2f6f1b)return null;let _0x46970e=new _0x2c43a5();return _0x46970e[_0x7ff189(0x88)](_0x3e1673[_0x7ff189(0x125)]),_0x3e1673[_0x7ff189(0x139)]>0x0&&_0x46970e[_0x7ff189(0x108)](_0x3e1673[_0x7ff189(0x139)],_0xc8d1f5(_0x2f6f1b,_0x3e1673[_0x7ff189(0x125)],_0x3e1673[_0x7ff189(0x125)]+_0x3e1673[_0x7ff189(0x139)],!0x1)),_0x3e1673['deleteLength']>0x0&&_0x46970e[_0x7ff189(0x86)](_0x3e1673[_0x7ff189(0x9c)]),_0x998333[_0x7ff189(0xbf)]()[_0x7ff189(0xfe)](_0x46970e['serialize'](),_0x66f65e);}function St(_0x22530a,_0x51a4e5){const _0x3e6ae0=_0x24e2ca;if(_0x22530a==null||_0x51a4e5==null||_0x22530a===_0x51a4e5)return null;let _0x467838=0x0;for(;_0x467838<_0x22530a['length']&&_0x467838<_0x51a4e5[_0x3e6ae0(0xff)]&&_0x22530a[_0x467838]===_0x51a4e5[_0x467838];)_0x467838+=0x1;let _0x21527b=_0x22530a[_0x3e6ae0(0xff)],_0x472c1a=_0x51a4e5[_0x3e6ae0(0xff)];for(;_0x21527b>_0x467838&&_0x472c1a>_0x467838&&_0x22530a[_0x21527b-0x1]===_0x51a4e5[_0x472c1a-0x1];)--_0x21527b,--_0x472c1a;return{'start':_0x467838,'deleteLength':_0x21527b-_0x467838,'insertLength':_0x472c1a-_0x467838};}function Ct(_0x705a38){const _0x2ff4a6=_0x24e2ca;return{'schemaVersion':0x1,'formulas':Object[_0x2ff4a6(0x101)](Object[_0x2ff4a6(0xb8)](_0x705a38[_0x2ff4a6(0xdc)])[_0x2ff4a6(0x13f)](([_0x24c437,_0x5395a2])=>[_0x24c437,{..._0x5395a2,..._0x5395a2['numberFormat']?{'numberFormat':{..._0x5395a2[_0x2ff4a6(0xfb)]}}:null,..._0x5395a2[_0x2ff4a6(0x16c)]?{'lastValue':{..._0x5395a2['lastValue']}}:null}]))};}let Y=class extends _0x25f89c{constructor(_0x71a0c1,_0x256a79,_0x27cb6c,_0x4a46ea){const _0x5ae87f=_0x24e2ca;super(),this[_0x5ae87f(0x130)]=_0x71a0c1,this[_0x5ae87f(0x16f)]=_0x256a79,this[_0x5ae87f(0x118)]=_0x27cb6c,this['_service']=_0x4a46ea,N(this,_0x5ae87f(0xe6),new Set()),N(this,'_syncScheduled',!0x1),N(this,'_isDisposed',!0x1),this[_0x5ae87f(0x130)]['getAllUnitsForType'](_0x1b556b['UNIVER_DOC'])[_0x5ae87f(0x84)](_0x3ac90d=>this['_service'][_0x5ae87f(0xa3)](_0x3ac90d)),this[_0x5ae87f(0x13d)](this['_model'][_0x5ae87f(0x10c)][_0x5ae87f(0x9a)](({unitId:_0x56df38})=>this[_0x5ae87f(0xfa)](_0x56df38))),this[_0x5ae87f(0x13d)](this['_instanceService'][_0x5ae87f(0x106)][_0x5ae87f(0x9a)](({unit:_0x52941c})=>{const _0x5157ab=_0x5ae87f;_0x52941c[_0x5157ab(0xe9)]===_0x1b556b['UNIVER_DOC']&&this['_queueSync'](_0x52941c[_0x5157ab(0x90)]());})),this['disposeWithMe'](this[_0x5ae87f(0x130)]['unitDisposed$'][_0x5ae87f(0x9a)](_0x212f54=>{const _0x82e6cd=_0x5ae87f;this[_0x82e6cd(0x87)][_0x82e6cd(0x164)](_0x212f54[_0x82e6cd(0x90)]());})),this['disposeWithMe'](this[_0x5ae87f(0x16f)]['onCommandExecuted'](_0x5bb9da=>{const _0x3a9e88=_0x5ae87f;if(_0x5bb9da['id']===_0x547d5a['id']&&wt(_0x5bb9da[_0x3a9e88(0xae)])){let _0x1b4db5=_0x5bb9da[_0x3a9e88(0xae)];_0x1b4db5[_0x3a9e88(0x156)]||this[_0x3a9e88(0xfa)](_0x1b4db5[_0x3a9e88(0xd8)]);}}));}[_0x24e2ca(0x127)](){this['_isDisposed']=!0x0,super['dispose']();}[_0x24e2ca(0x16b)](_0x439889){const _0x37ddc7=_0x24e2ca;this['_pendingUnitIds'][_0x37ddc7(0xe2)](_0x439889),!this[_0x37ddc7(0xcf)]&&(this[_0x37ddc7(0xcf)]=!0x0,queueMicrotask(()=>{const _0x5ae006=_0x37ddc7;if(this[_0x5ae006(0xcf)]=!0x1,this[_0x5ae006(0xe7)])return;let _0x325f9e=Array[_0x5ae006(0x170)](this[_0x5ae006(0xe6)]);this[_0x5ae006(0xe6)][_0x5ae006(0x13a)](),_0x325f9e['forEach'](_0x503548=>this[_0x5ae006(0xfa)](_0x503548));}));}['_syncUnit'](_0x138f9a){const _0x161ac5=_0x24e2ca;let _0x38f3d7=this[_0x161ac5(0x130)][_0x161ac5(0x98)](_0x138f9a,_0x1b556b['UNIVER_DOC']);_0x38f3d7&&this[_0x161ac5(0x87)][_0x161ac5(0xa3)](_0x38f3d7);}};Y=I([F(0x0,_0x28c187),F(0x1,_0x3d0906),F(0x2,_0x22e0aa(P)),F(0x3,_0x22e0aa(L))],Y);function _0x20e9(_0x47c81b,_0x33e644){_0x47c81b=_0x47c81b-0x81;const _0x448f99=_0x448f();let _0x20e90b=_0x448f99[_0x47c81b];return _0x20e90b;}function wt(_0xa957e2){const _0x457d39=_0x24e2ca;return typeof _0xa957e2==_0x457d39(0xb7)&&!!_0xa957e2&&_0x457d39(0xd8)in _0xa957e2&&typeof _0xa957e2['unitId']==_0x457d39(0x175)&&(!(_0x457d39(0x156)in _0xa957e2)||_0xa957e2[_0x457d39(0x156)]===void 0x0||typeof _0xa957e2[_0x457d39(0x156)]==_0x457d39(0x175));}let X=class extends _0x25f89c{constructor(_0x241f81,_0x292018){const _0x9729b6=_0x24e2ca;super(),this['_resourceManagerService']=_0x241f81,this[_0x9729b6(0x154)]=_0x292018,this[_0x9729b6(0x13d)](this['_resourceManagerService'][_0x9729b6(0xca)]({'pluginName':y,'businesses':[_0x1b556b['UNIVER_DOC']],'toJson':_0x36c6d5=>JSON[_0x9729b6(0x102)](this[_0x9729b6(0x154)]['serialize'](_0x36c6d5)),'parseJson':_0xfa9097=>JSON[_0x9729b6(0x119)](_0xfa9097),'onLoad':(_0x46792c,_0x2eec97)=>{const _0x283a5a=_0x9729b6;this[_0x283a5a(0x154)][_0x283a5a(0xc5)](_0x46792c,_0x2eec97);},'onUnLoad':_0x451d7f=>this[_0x9729b6(0x154)][_0x9729b6(0xd9)](_0x451d7f)}));}};X=I([F(0x0,_0x3af6e3),F(0x1,_0x22e0aa(P))],X);var Tt=_0x24e2ca(0x112),Et='1.3.0';const Dt={};let Z=class extends _0x25f89c{constructor(_0x5e947b,_0x1cacf7,_0x43ccb0){const _0x34e752=_0x24e2ca;super(),this[_0x34e752(0x15b)]=_0x5e947b,this[_0x34e752(0x147)]=_0x1cacf7,this[_0x34e752(0x13d)](_0x43ccb0[_0x34e752(0x97)]({'resolve':(_0xd4498e,_0x3471d6)=>{const _0x311dd3=_0x34e752;var _0x2228f5;return((_0x2228f5=_0x3471d6[_0x311dd3(0x166)])==null?void 0x0:_0x2228f5['filter'](w)[_0x311dd3(0x13f)](_0x46382c=>({'startOffset':_0x46382c[_0x311dd3(0xc7)],'endOffset':_0x46382c[_0x311dd3(0x115)]+0x1,'text':this[_0x311dd3(0xab)](_0xd4498e,_0x46382c[_0x311dd3(0xac)])})))??[];}})),this[_0x34e752(0x13d)](this[_0x34e752(0x147)][_0x34e752(0x129)][_0x34e752(0x9a)](({unitId:_0x5aca20})=>{const _0x26e139=_0x34e752;_0x43ccb0[_0x26e139(0xb6)](_0x5aca20);}));}[_0x24e2ca(0xab)](_0x14d877,_0x46e511){const _0x38bc2d=_0x24e2ca;var _0x2e847b;return((_0x2e847b=this[_0x38bc2d(0x147)]['getResult']({'unitId':_0x14d877,'rangeId':_0x46e511}))==null?void 0x0:_0x2e847b[_0x38bc2d(0x16d)])??'';}[_0x24e2ca(0xf7)](_0x1e591d,_0x536699,_0x47ae63){const _0x58ac6f=_0x24e2ca;var _0x31fbe9;let _0x3fd397=this['_univerInstanceService'][_0x58ac6f(0x98)](_0x1e591d,_0x1b556b[_0x58ac6f(0x132)]),_0x3aaadb=_0x3fd397==null?void 0x0:_0x3fd397[_0x58ac6f(0xf0)]();if(!_0x3aaadb)return'';let _0x1f85b6=_0x3aaadb[_0x58ac6f(0xc3)][_0x58ac6f(0xaa)](_0x536699,_0x47ae63),_0x13ceea=((_0x31fbe9=_0x3aaadb['customRanges'])==null?void 0x0:_0x31fbe9['filter'](_0x957717=>w(_0x957717)&&_0x957717['startIndex']>=_0x536699&&_0x957717[_0x58ac6f(0x115)]<_0x47ae63)[_0x58ac6f(0x12a)]((_0x36e517,_0x5cd5c6)=>_0x5cd5c6[_0x58ac6f(0xc7)]-_0x36e517[_0x58ac6f(0xc7)]))??[];for(let _0x4b5f78 of _0x13ceea){let _0x4d59ee=_0x4b5f78[_0x58ac6f(0xc7)]-_0x536699,_0x4c2264=_0x4b5f78[_0x58ac6f(0x115)]-_0x536699+0x1;_0x1f85b6=''+_0x1f85b6[_0x58ac6f(0xaa)](0x0,_0x4d59ee)+this[_0x58ac6f(0xab)](_0x1e591d,_0x4b5f78['rangeId'])+_0x1f85b6[_0x58ac6f(0xaa)](_0x4c2264);}return _0x1f85b6;}[_0x24e2ca(0xf3)](_0x430f08){return Ot(_0x430f08);}['degradeBody'](_0x2f2b3e,_0x542f8c,_0x4e9846={}){const _0x111147=_0x24e2ca;var _0x2a070e;return Ve({'id':_0x2f2b3e,'body':_0x542f8c,'documentStyle':{}},(((_0x2a070e=_0x542f8c[_0x111147(0x166)])==null?void 0x0:_0x2a070e['filter'](w))??[])[_0x111147(0x13f)](_0x4c34ed=>({'rangeId':_0x4c34ed[_0x111147(0xac)],'text':_0x4e9846[_0x4c34ed['rangeId']]??this['resolveFormula'](_0x2f2b3e,_0x4c34ed[_0x111147(0xac)])})))[_0x111147(0xe0)]??{'dataStream':''};}};Z=I([F(0x0,_0x28c187),F(0x1,_0x22e0aa(L)),F(0x2,_0x22e0aa(_0x37f942))],Z);function Ot(_0x468ba8){const _0x2e3989=_0x24e2ca;var _0x6a2d53,_0x3ec44b;let _0xb760ff=kt(_0x468ba8),_0x5629ac=Ve(_0x468ba8,(((_0x6a2d53=_0x468ba8[_0x2e3989(0xe0)])==null||(_0x6a2d53=_0x6a2d53[_0x2e3989(0x166)])==null?void 0x0:_0x6a2d53['filter'](w))??[])[_0x2e3989(0x13f)](_0x5ddc16=>({'rangeId':_0x5ddc16[_0x2e3989(0xac)],'text':At(_0xb760ff==null?void 0x0:_0xb760ff[_0x2e3989(0xdc)][_0x5ddc16[_0x2e3989(0xac)]])})));return _0x5629ac['resources']=(_0x3ec44b=_0x5629ac['resources'])==null?void 0x0:_0x3ec44b[_0x2e3989(0x12e)](_0x526218=>_0x526218['name']!==y),_0x5629ac;}function kt(_0xa67a6){const _0xb411be=_0x24e2ca;var _0x3ec190;let _0x2089da=(_0x3ec190=_0xa67a6[_0xb411be(0x103)])==null||(_0x3ec190=_0x3ec190[_0xb411be(0x10b)](_0x45573a=>_0x45573a['name']===_0xb411be(0x174)))==null?void 0x0:_0x3ec190[_0xb411be(0x161)];if(_0x2089da)try{let _0x56d08b=JSON[_0xb411be(0x119)](_0x2089da);return x(_0x56d08b)?_0x56d08b:void 0x0;}catch{return;}}function At(_0x24a8fd){const _0x362513=_0x24e2ca;return _0x24a8fd?_0x500f97({'lastValue':_0x24a8fd[_0x362513(0x16c)],'numberFormat':_0x24a8fd[_0x362513(0xfb)]})[_0x362513(0x16d)]:'';}let Q=class extends _0x25f89c{constructor(_0x118939,_0x3d2e02,_0xe776f6){super(),this['_formulaService']=_0x118939,this['_cacheEligibilityService']=_0x3d2e02,this['disposeWithMe'](_0xe776f6['registerProvider'](this));}[_0x24e2ca(0x15f)](_0x36da2c){const _0x314b4d=_0x24e2ca;let _0x344e5b=new Map();for(let _0x45f075 of this[_0x314b4d(0x147)][_0x314b4d(0x126)]()){var _0x4578e5;if(!this[_0x314b4d(0xf4)][_0x314b4d(0x171)](_0x45f075[_0x314b4d(0x138)][_0x314b4d(0x110)],_0x45f075[_0x314b4d(0x17a)])[_0x314b4d(0xf1)])continue;let _0x150c34=_0x164c26(_0x45f075[_0x314b4d(0x17a)]),_0x46fb84=_0x150c34?_0x27de7e(_0x150c34):null;if(!_0x46fb84||jt(_0x45f075['config'][_0x314b4d(0x16c)],_0x46fb84))continue;let _0x20a19e=_0x344e5b[_0x314b4d(0x83)](_0x45f075[_0x314b4d(0x11b)]['unitId'])??[];_0x20a19e[_0x314b4d(0xcd)]({'rangeId':_0x45f075[_0x314b4d(0x11b)][_0x314b4d(0xac)],'expectedFormula':_0x45f075['config'][_0x314b4d(0x110)],'expectedNumberFormat':(_0x4578e5=_0x45f075[_0x314b4d(0x138)]['numberFormat'])==null?void 0x0:_0x4578e5[_0x314b4d(0xd0)],'expectedReferenceRevision':_0x45f075[_0x314b4d(0x165)],'lastValue':_0x46fb84}),_0x344e5b['set'](_0x45f075[_0x314b4d(0x11b)][_0x314b4d(0xd8)],_0x20a19e);}return Array[_0x314b4d(0x170)](_0x344e5b,([_0x190d6d,_0x32a755])=>({'id':H['id'],'params':{'unitId':_0x190d6d,'updates':_0x32a755}}));}};Q=I([F(0x0,_0x22e0aa(L)),F(0x1,_0x22e0aa(_0x29362c)),F(0x2,_0x22e0aa(_0x143b9c))],Q);function jt(_0x53ab0c,_0x6e1770){const _0x1fefc2=_0x24e2ca;return(_0x53ab0c==null?void 0x0:_0x53ab0c['v'])===_0x6e1770['v']&&(_0x53ab0c==null?void 0x0:_0x53ab0c['t'])===_0x6e1770['t']&&(_0x53ab0c==null?void 0x0:_0x53ab0c['pattern'])===_0x6e1770[_0x1fefc2(0xd0)];}let $=class extends _0x5275a4{constructor(_0x5742d7=Dt,_0x182cf4,_0x4ae89c,_0x16e567){const _0x153572=_0x24e2ca;super(),this[_0x153572(0x169)]=_0x5742d7,this['_injector']=_0x182cf4,this['_commandService']=_0x4ae89c,this[_0x153572(0x8e)]=_0x16e567;let {..._0x585f6e}=_0x1281fb({},Dt,this[_0x153572(0x169)]);this[_0x153572(0x8e)][_0x153572(0x128)](_0x153572(0x92),_0x585f6e);}['onStarting'](){const _0x508d74=_0x24e2ca;this['_injector'][_0x508d74(0xe2)]([P]),this[_0x508d74(0x178)][_0x508d74(0xe2)]([L]),this['_injector']['add']([X]),this[_0x508d74(0x178)]['add']([Y]),this[_0x508d74(0x178)][_0x508d74(0xe2)]([Q]),this[_0x508d74(0x178)]['add']([Z]),_0x5dcd24(this[_0x508d74(0x178)],[[P],[X],[Y],[Q],[Z]]),[ot,st,V,H,U,W,G,K,ct,lt]['forEach'](_0xfb05a=>this['disposeWithMe'](this[_0x508d74(0x16f)][_0x508d74(0xbd)](_0xfb05a)));}};N($,_0x24e2ca(0x124),y),N($,'packageName',Tt),N($,_0x24e2ca(0x96),Et),N($,_0x24e2ca(0xe9),_0x1b556b['UNIVER_DOC']),$=I([_0x335401(_0x365ad2,_0x5d553c,_0x4de602),F(0x1,_0x22e0aa(_0x3d3d14)),F(0x2,_0x3d0906),F(0x3,_0x3e2dd7)],$);export{lt as ConvertDocFormulaToTextCommand,Me as DOC_FORMULA_CUSTOM_RANGE_KIND,Ne as DOC_FORMULA_OBJECT_REPLACEMENT,y as DOC_FORMULA_PLUGIN,je as DOC_FORMULA_SCHEMA_VERSION,Z as DocFormulaDisplayTextService,Y as DocFormulaLifecycleController,P as DocFormulaModel,X as DocFormulaResourceController,it as DocFormulaResultStatus,L as DocFormulaService,U as InsertDocFormulaCommand,C as InvalidDocFormulaInsertRangeError,K as RemoveDocFormulaCommand,st as RemoveDocFormulaMutation,ct as ReplaceDocFormulaWithTextCommand,H as SetDocFormulaLastValuesMutation,ot as SetDocFormulaMutation,G as SetDocFormulaNumberFormatCommand,V as SetDocFormulaResourceMutation,$ as UniverDocsFormulaPlugin,W as UpdateDocFormulaCommand,He as assertSafeDocFormulaInsertRange,Re as buildInsertDocFormulaActions,Be as buildRemoveDocFormulaActions,ze as buildUpdateDocFormulaActions,b as createEmptyDocFormulaResource,Ot as degradeDocFormulaDocumentData,T as findDocFormulaRange,Pe as isDocFormulaConfig,w as isDocFormulaRange,x as isDocFormulaResource,Fe as isFormulaLastValue};
package/lib/umd/facade.js CHANGED
@@ -1 +1 @@
1
- function _0x5036(){var _0x56ecb5=['update','InsertDocFormulaCommand','toStringTag','function','ConvertDocFormulaToTextCommand','iterator','_document','length','_service','get','body','some','2cGTFmh','_getCustomRange','_docsFormulaCommandService','endIndex','_model','UniverDocsFacade','UniverProDocsFormulaFacade','6MqUiPK','_createFormula','call','constructor','_docsFormulaResourceLoaderService','rangeId','paragraph','default','_rangeId','end','createInstance','14415968KtlIbO','decorate','12131287lRprMl','getSegmentId','UNIVER_DOC','setNumberFormat','convertToText','range','UpdateDocFormulaCommand','getRange','saveFormulaDisplayTextSnapshot','getOwnPropertyDescriptor','getSnapshot','_univerInstanceService','_insert','FDocumentTextRange','@univerjs/docs/facade','exports','degradeDocumentData','getFormulaAt','40018FITZqF','find','\x20could\x20not\x20be\x20serialized.','getBody','FDocumentParagraph','getFormula','_getCompleteRanges','formula','syncExecuteCommand','toPrimitive','describe','insertFormula','UniverProDocsFormula','@univerjs-pro/docs-formula','getId','DocFormulaModel','amd','prototype','customRanges','isDocFormulaRange','@univerjs/core','19400fvBuaJ','UniverInstanceType','defineProperty','DocFormulaService','startIndex','getUnit','endOffset','_injector','ICommandService','_unitId','getResult','_commandService','IUniverInstanceService','9023010MqBtQG','Inject','_docsFormulaDisplayTextService','_initialize','extend','externalReferences','15fVBAUl','symbol','getConfig','numberFormat','801704GecLtL','startOffset','IResourceLoaderService','FDocument','getFormulas','Document\x20','object','222023PxJClV','string','_docsFormulaModel','3865608AXiewY','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.'];_0x5036=function(){return _0x56ecb5;};return _0x5036();}function _0x4cc1(_0x521458,_0x56616f){_0x521458=_0x521458-0x126;var _0x5036a8=_0x5036();var _0x4cc1e9=_0x5036a8[_0x521458];return _0x4cc1e9;}(function(_0x46971e,_0xf9d0c6){var _0x99d68a=_0x4cc1,_0x27dbe3=_0x46971e();while(!![]){try{var _0x5a612a=parseInt(_0x99d68a(0x173))/0x1*(-parseInt(_0x99d68a(0x184))/0x2)+-parseInt(_0x99d68a(0x168))/0x3*(parseInt(_0x99d68a(0x16c))/0x4)+-parseInt(_0x99d68a(0x162))/0x5+parseInt(_0x99d68a(0x18b))/0x6*(-parseInt(_0x99d68a(0x12e))/0x7)+-parseInt(_0x99d68a(0x12c))/0x8+parseInt(_0x99d68a(0x176))/0x9+-parseInt(_0x99d68a(0x155))/0xa*(-parseInt(_0x99d68a(0x140))/0xb);if(_0x5a612a===_0xf9d0c6)break;else _0x27dbe3['push'](_0x27dbe3['shift']());}catch(_0x2b4e5c){_0x27dbe3['push'](_0x27dbe3['shift']());}}}(_0x5036,0xe1730),function(_0x48acad,_0x1ecd98){var _0x2be235=_0x4cc1;typeof exports=='object'&&typeof module<'u'?_0x1ecd98(exports,require('@univerjs-pro/docs-formula'),require('@univerjs/core'),require('@univerjs/docs/facade')):typeof define==_0x2be235(0x17b)&&define[_0x2be235(0x150)]?define([_0x2be235(0x13d),_0x2be235(0x14d),_0x2be235(0x154),_0x2be235(0x13c)],_0x1ecd98):(_0x48acad=typeof globalThis<'u'?globalThis:_0x48acad||self,_0x1ecd98(_0x48acad[_0x2be235(0x18a)]={},_0x48acad[_0x2be235(0x14c)],_0x48acad['UniverCore'],_0x48acad[_0x2be235(0x189)]));}(this,function(_0x3c2de3,_0x3edadc,_0x57386b,_0x8f6320){var _0x1465ed=_0x4cc1;Object[_0x1465ed(0x157)](_0x3c2de3,Symbol[_0x1465ed(0x17a)],{'value':'Module'});function _0x1db012(_0x407d0e,_0x5d1657){return function(_0x5c27cb,_0x572dca){_0x5d1657(_0x5c27cb,_0x572dca,_0x407d0e);};}function _0x35dd4b(_0x263bb8,_0x27ac2f,_0x318387,_0x73db3c){var _0x11c41e=_0x1465ed,_0x486887=arguments[_0x11c41e(0x17f)],_0x555caf=_0x486887<0x3?_0x27ac2f:_0x73db3c===null?_0x73db3c=Object[_0x11c41e(0x137)](_0x27ac2f,_0x318387):_0x73db3c,_0x338be0;if(typeof Reflect==_0x11c41e(0x172)&&typeof Reflect['decorate']=='function')_0x555caf=Reflect[_0x11c41e(0x12d)](_0x263bb8,_0x27ac2f,_0x318387,_0x73db3c);else{for(var _0x153ccf=_0x263bb8[_0x11c41e(0x17f)]-0x1;_0x153ccf>=0x0;_0x153ccf--)(_0x338be0=_0x263bb8[_0x153ccf])&&(_0x555caf=(_0x486887<0x3?_0x338be0(_0x555caf):_0x486887>0x3?_0x338be0(_0x27ac2f,_0x318387,_0x555caf):_0x338be0(_0x27ac2f,_0x318387))||_0x555caf);}return _0x486887>0x3&&_0x555caf&&Object['defineProperty'](_0x27ac2f,_0x318387,_0x555caf),_0x555caf;}let _0x462310=class{constructor(_0x53e266,_0x2aa407,_0x2f0eb5,_0x336565,_0x476c6f,_0x40f7a4){var _0x108e94=_0x1465ed;this[_0x108e94(0x15e)]=_0x53e266,this[_0x108e94(0x129)]=_0x2aa407,this['_commandService']=_0x2f0eb5,this[_0x108e94(0x188)]=_0x336565,this[_0x108e94(0x180)]=_0x476c6f,this[_0x108e94(0x139)]=_0x40f7a4;}['getId'](){var _0x45e940=_0x1465ed;return this[_0x45e940(0x129)];}[_0x1465ed(0x135)](){var _0x1f3afc=_0x1465ed;let _0x599db1=this[_0x1f3afc(0x185)]();return _0x599db1?{'endOffset':_0x599db1[_0x1f3afc(0x187)]+0x1,'rangeId':_0x599db1[_0x1f3afc(0x126)],'startOffset':_0x599db1[_0x1f3afc(0x159)]}:null;}[_0x1465ed(0x145)](){var _0x37eab6=_0x1465ed,_0x55bd49;return((_0x55bd49=this['_model'][_0x37eab6(0x145)](this['_unitId'],this['_rangeId']))==null?void 0x0:_0x55bd49[_0x37eab6(0x147)])??'';}[_0x1465ed(0x16a)](){var _0x652f1c=_0x1465ed;return this[_0x652f1c(0x188)][_0x652f1c(0x145)](this[_0x652f1c(0x15e)],this[_0x652f1c(0x129)])??null;}[_0x1465ed(0x15f)](){var _0x4a6072=_0x1465ed;return this[_0x4a6072(0x180)][_0x4a6072(0x15f)]({'unitId':this[_0x4a6072(0x15e)],'rangeId':this[_0x4a6072(0x129)]})??null;}[_0x1465ed(0x14a)](){var _0x4715f4=_0x1465ed;let _0x5ce48a=this[_0x4715f4(0x135)](),_0x178b29=this['getConfig'](),_0x29cd45=this['getResult']();return!_0x5ce48a||!_0x178b29||!_0x29cd45?null:{..._0x5ce48a,'config':_0x178b29,'formula':_0x178b29[_0x4715f4(0x147)],'result':_0x29cd45,'type':_0x4715f4(0x147)};}[_0x1465ed(0x178)](_0x483283){var _0x380984=_0x1465ed;return this['_commandService']['syncExecuteCommand'](_0x3edadc[_0x380984(0x134)]['id'],{'externalReferences':_0x483283[_0x380984(0x167)],'formula':_0x483283[_0x380984(0x147)],'numberFormat':_0x483283[_0x380984(0x16b)],'rangeId':this[_0x380984(0x129)],'unitId':this[_0x380984(0x15e)]});}[_0x1465ed(0x131)](_0x281bc6){var _0xa6391f=_0x1465ed;return this[_0xa6391f(0x160)][_0xa6391f(0x148)](_0x3edadc['SetDocFormulaNumberFormatCommand']['id'],{'numberFormat':_0x281bc6,'rangeId':this[_0xa6391f(0x129)],'unitId':this[_0xa6391f(0x15e)]});}['remove'](){var _0x5715b5=_0x1465ed;return this[_0x5715b5(0x160)]['syncExecuteCommand'](_0x3edadc['RemoveDocFormulaCommand']['id'],{'rangeId':this[_0x5715b5(0x129)],'unitId':this['_unitId']});}['replaceWithText'](_0x5e958e){var _0x5c82b6=_0x1465ed;return this[_0x5c82b6(0x160)][_0x5c82b6(0x148)](_0x3edadc['ReplaceDocFormulaWithTextCommand']['id'],{'rangeId':this[_0x5c82b6(0x129)],'text':_0x5e958e,'unitId':this['_unitId']});}[_0x1465ed(0x132)](){var _0xa35d9d=_0x1465ed;return this[_0xa35d9d(0x160)][_0xa35d9d(0x148)](_0x3edadc[_0xa35d9d(0x17c)]['id'],{'rangeId':this[_0xa35d9d(0x129)],'unitId':this[_0xa35d9d(0x15e)]});}[_0x1465ed(0x185)](){var _0xb64e65=_0x1465ed,_0x2dfd85;let _0x162cdc=this['_univerInstanceService'][_0xb64e65(0x15a)](this[_0xb64e65(0x15e)],_0x57386b[_0xb64e65(0x156)][_0xb64e65(0x130)]);return _0x162cdc==null||(_0x2dfd85=_0x162cdc[_0xb64e65(0x138)]()[_0xb64e65(0x182)])==null||(_0x2dfd85=_0x2dfd85[_0xb64e65(0x152)])==null?void 0x0:_0x2dfd85['find'](_0x211d7d=>_0x211d7d['rangeId']===this['_rangeId']&&(0x0,_0x3edadc['isDocFormulaRange'])(_0x211d7d));}};_0x462310=_0x35dd4b([_0x1db012(0x2,_0x57386b[_0x1465ed(0x15d)]),_0x1db012(0x3,(0x0,_0x57386b[_0x1465ed(0x163)])(_0x3edadc['DocFormulaModel'])),_0x1db012(0x4,(0x0,_0x57386b['Inject'])(_0x3edadc[_0x1465ed(0x158)])),_0x1db012(0x5,_0x57386b[_0x1465ed(0x161)])],_0x462310);function _0x34cf4b(_0x40ece7){'@babel/helpers - typeof';var _0x38b373=_0x1465ed;return _0x34cf4b=typeof Symbol==_0x38b373(0x17b)&&typeof Symbol[_0x38b373(0x17d)]==_0x38b373(0x169)?function(_0xb8c741){return typeof _0xb8c741;}:function(_0x3ea73b){var _0x384190=_0x38b373;return _0x3ea73b&&typeof Symbol==_0x384190(0x17b)&&_0x3ea73b[_0x384190(0x18e)]===Symbol&&_0x3ea73b!==Symbol[_0x384190(0x151)]?'symbol':typeof _0x3ea73b;},_0x34cf4b(_0x40ece7);}function _0x31f4c8(_0x20278e,_0x251109){var _0x39732e=_0x1465ed;if(_0x34cf4b(_0x20278e)!='object'||!_0x20278e)return _0x20278e;var _0xd0b4f=_0x20278e[Symbol[_0x39732e(0x149)]];if(_0xd0b4f!==void 0x0){var _0x463306=_0xd0b4f[_0x39732e(0x18d)](_0x20278e,_0x251109||_0x39732e(0x128));if(_0x34cf4b(_0x463306)!=_0x39732e(0x172))return _0x463306;throw TypeError(_0x39732e(0x177));}return(_0x251109===_0x39732e(0x174)?String:Number)(_0x20278e);}function _0x31863d(_0x43bf1c){var _0x4255d5=_0x1465ed,_0x29487e=_0x31f4c8(_0x43bf1c,_0x4255d5(0x174));return _0x34cf4b(_0x29487e)=='symbol'?_0x29487e:_0x29487e+'';}function _0x703b4c(_0x5a5bb0,_0x4e1d5c,_0x38e434){var _0x480104=_0x1465ed;return(_0x4e1d5c=_0x31863d(_0x4e1d5c))in _0x5a5bb0?Object[_0x480104(0x157)](_0x5a5bb0,_0x4e1d5c,{'value':_0x38e434,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x5a5bb0[_0x4e1d5c]=_0x38e434,_0x5a5bb0;}var _0x1a1704=class extends _0x8f6320[_0x1465ed(0x16f)]{constructor(..._0x40abee){var _0x310a27=_0x1465ed;super(..._0x40abee),_0x703b4c(this,_0x310a27(0x186),void 0x0),_0x703b4c(this,_0x310a27(0x164),void 0x0),_0x703b4c(this,'_docsFormulaModel',void 0x0),_0x703b4c(this,'_docsFormulaResourceLoaderService',void 0x0);}[_0x1465ed(0x165)](_0x7650fb){var _0x122fa9=_0x1465ed;this[_0x122fa9(0x186)]=_0x7650fb[_0x122fa9(0x181)](_0x57386b[_0x122fa9(0x15d)]),this[_0x122fa9(0x164)]=_0x7650fb[_0x122fa9(0x181)](_0x3edadc['DocFormulaDisplayTextService']),this[_0x122fa9(0x175)]=_0x7650fb['get'](_0x3edadc[_0x122fa9(0x14f)]),this[_0x122fa9(0x18f)]=_0x7650fb[_0x122fa9(0x181)](_0x57386b[_0x122fa9(0x16e)]);}[_0x1465ed(0x170)](){var _0x2ce3a3=_0x1465ed;return this[_0x2ce3a3(0x146)]()['map'](_0x34bd55=>this[_0x2ce3a3(0x18c)](_0x34bd55[_0x2ce3a3(0x126)]));}['getFormula'](_0x19c961){var _0x12cbe7=_0x1465ed;return this[_0x12cbe7(0x146)]()[_0x12cbe7(0x183)](_0x45e298=>_0x45e298[_0x12cbe7(0x126)]===_0x19c961)?this[_0x12cbe7(0x18c)](_0x19c961):null;}[_0x1465ed(0x13f)](_0x499318){var _0x20a95c=_0x1465ed;let _0x21d50c=this['_getCompleteRanges']()[_0x20a95c(0x141)](_0x77e949=>_0x77e949[_0x20a95c(0x159)]<=_0x499318&&_0x499318<=_0x77e949[_0x20a95c(0x187)]);return _0x21d50c?this['_createFormula'](_0x21d50c[_0x20a95c(0x126)]):null;}[_0x1465ed(0x136)](){var _0x592abb=_0x1465ed;let _0x34919a=this[_0x592abb(0x18f)]['saveUnit'](this['id']);if(!_0x34919a)throw Error(_0x592abb(0x171)+this['id']+_0x592abb(0x142));return this['_docsFormulaDisplayTextService'][_0x592abb(0x13e)](_0x34919a);}[_0x1465ed(0x14b)](_0x5b85cc){var _0x403438=_0x1465ed;return this[_0x403438(0x13a)]({'externalReferences':_0x5b85cc['externalReferences'],'formula':_0x5b85cc[_0x403438(0x147)],'numberFormat':_0x5b85cc[_0x403438(0x16b)],'target':{'type':_0x403438(0x133),'startOffset':_0x5b85cc[_0x403438(0x16d)],'endOffset':_0x5b85cc[_0x403438(0x15b)]},'unitId':this[_0x403438(0x14e)]()});}['_insert'](_0x187f0a){var _0x507d8f=_0x1465ed;let _0x257574=this[_0x507d8f(0x186)][_0x507d8f(0x148)](_0x3edadc['InsertDocFormulaCommand']['id'],_0x187f0a);return _0x257574?this['_createFormula'](_0x257574[_0x507d8f(0x126)]):null;}[_0x1465ed(0x146)](){var _0x502539=_0x1465ed,_0x47c649;let _0x498064=this[_0x502539(0x175)]['getFormulas'](this[_0x502539(0x14e)]());return((_0x47c649=this[_0x502539(0x143)]('')[_0x502539(0x152)])==null?void 0x0:_0x47c649['filter'](_0x59d4af=>(0x0,_0x3edadc[_0x502539(0x153)])(_0x59d4af)&&_0x498064[_0x59d4af[_0x502539(0x126)]]!=null))??[];}[_0x1465ed(0x18c)](_0x332d5d){var _0x4c6807=_0x1465ed;return this[_0x4c6807(0x15c)][_0x4c6807(0x12b)](_0x462310,this['getId'](),_0x332d5d);}};_0x8f6320[_0x1465ed(0x16f)]['extend'](_0x1a1704);var _0x3e4674=class extends _0x8f6320[_0x1465ed(0x144)]{constructor(..._0x705ae6){var _0x45c9c1=_0x1465ed;super(..._0x705ae6),_0x703b4c(this,_0x45c9c1(0x186),void 0x0);}[_0x1465ed(0x165)](_0x2c2ce2){var _0x474bd5=_0x1465ed;this[_0x474bd5(0x186)]=_0x2c2ce2[_0x474bd5(0x181)](_0x57386b[_0x474bd5(0x15d)]);}[_0x1465ed(0x14b)](_0x17956a,_0x1baa37,_0x6dd414={}){return this['_insert'](_0x17956a,_0x1baa37,_0x6dd414);}['appendFormula'](_0x54e361,_0x9d88c1={}){var _0xf9cb86=_0x1465ed;return this[_0xf9cb86(0x13a)](_0xf9cb86(0x12a),_0x54e361,_0x9d88c1);}[_0x1465ed(0x13a)](_0x4f20a1,_0x579af7,_0x4affea){var _0x2de05e=_0x1465ed;if(this[_0x2de05e(0x12f)]())return null;let _0x57283e={'externalReferences':_0x4affea[_0x2de05e(0x167)],'formula':_0x579af7,'numberFormat':_0x4affea['numberFormat'],'target':{'type':_0x2de05e(0x127),'paragraphId':this[_0x2de05e(0x14e)](),'position':_0x4f20a1},'unitId':this[_0x2de05e(0x17e)][_0x2de05e(0x14e)]()},_0x2514e9=this[_0x2de05e(0x186)][_0x2de05e(0x148)](_0x3edadc[_0x2de05e(0x179)]['id'],_0x57283e);return _0x2514e9?this[_0x2de05e(0x15c)]['createInstance'](_0x462310,this[_0x2de05e(0x17e)][_0x2de05e(0x14e)](),_0x2514e9[_0x2de05e(0x126)]):null;}};_0x8f6320[_0x1465ed(0x144)][_0x1465ed(0x166)](_0x3e4674);var _0x13bc49=class extends _0x8f6320[_0x1465ed(0x13b)]{constructor(..._0x2381e4){var _0x307217=_0x1465ed;super(..._0x2381e4),_0x703b4c(this,_0x307217(0x186),void 0x0);}[_0x1465ed(0x165)](_0x38c51e){var _0x8b859a=_0x1465ed;this['_docsFormulaCommandService']=_0x38c51e[_0x8b859a(0x181)](_0x57386b[_0x8b859a(0x15d)]);}['replaceWithFormula'](_0x27287e,_0x27cc61={}){var _0x35ef97=_0x1465ed;let {endOffset:_0x116efd,segmentId:_0x5915bc,startOffset:_0x4c0bdb}=this[_0x35ef97(0x135)]();return _0x5915bc?null:this[_0x35ef97(0x13a)](_0x4c0bdb,_0x116efd,_0x27287e,_0x27cc61);}[_0x1465ed(0x13a)](_0x3f933d,_0x2b5047,_0x22f66a,_0x5e0c9c){var _0x1f09e5=_0x1465ed;let _0x246000={'externalReferences':_0x5e0c9c[_0x1f09e5(0x167)],'formula':_0x22f66a,'numberFormat':_0x5e0c9c[_0x1f09e5(0x16b)],'target':{'type':_0x1f09e5(0x133),'startOffset':_0x3f933d,'endOffset':_0x2b5047},'unitId':this[_0x1f09e5(0x17e)][_0x1f09e5(0x14e)]()},_0x126bea=this[_0x1f09e5(0x186)]['syncExecuteCommand'](_0x3edadc['InsertDocFormulaCommand']['id'],_0x246000);return _0x126bea?this[_0x1f09e5(0x15c)][_0x1f09e5(0x12b)](_0x462310,this[_0x1f09e5(0x17e)][_0x1f09e5(0x14e)](),_0x126bea[_0x1f09e5(0x126)]):null;}};_0x8f6320[_0x1465ed(0x13b)][_0x1465ed(0x166)](_0x13bc49),Object[_0x1465ed(0x157)](_0x3c2de3,'FDocumentFormula',{'enumerable':!0x0,'get':function(){return _0x462310;}});}));
1
+ (function(_0x38eb19,_0x11f216){var _0x30a349=_0x4de3,_0x5a576b=_0x38eb19();while(!![]){try{var _0x68015d=-parseInt(_0x30a349(0xdf))/0x1*(parseInt(_0x30a349(0x10a))/0x2)+-parseInt(_0x30a349(0x120))/0x3*(-parseInt(_0x30a349(0xe7))/0x4)+parseInt(_0x30a349(0xe6))/0x5+parseInt(_0x30a349(0x115))/0x6+-parseInt(_0x30a349(0x12b))/0x7*(parseInt(_0x30a349(0xf7))/0x8)+-parseInt(_0x30a349(0x102))/0x9*(parseInt(_0x30a349(0xdd))/0xa)+parseInt(_0x30a349(0xde))/0xb*(parseInt(_0x30a349(0xc5))/0xc);if(_0x68015d===_0x11f216)break;else _0x5a576b['push'](_0x5a576b['shift']());}catch(_0xc49eb5){_0x5a576b['push'](_0x5a576b['shift']());}}}(_0x59a4,0xdb6b0),function(_0x36b5c9,_0x697ceb){var _0xd8d03=_0x4de3;typeof exports==_0xd8d03(0xc8)&&typeof module<'u'?_0x697ceb(exports,require('@univerjs-pro/docs-formula'),require('@univerjs/core'),require('@univerjs/docs/facade')):typeof define==_0xd8d03(0xe5)&&define[_0xd8d03(0xcd)]?define(['exports','@univerjs-pro/docs-formula',_0xd8d03(0x105),_0xd8d03(0xe1)],_0x697ceb):(_0x36b5c9=typeof globalThis<'u'?globalThis:_0x36b5c9||self,_0x697ceb(_0x36b5c9['UniverProDocsFormulaFacade']={},_0x36b5c9[_0xd8d03(0xea)],_0x36b5c9[_0xd8d03(0xed)],_0x36b5c9['UniverDocsFacade']));}(this,function(_0x1f89fe,_0x3707d3,_0x30ba37,_0x412a81){var _0x4f3817=_0x4de3;Object[_0x4f3817(0xfa)](_0x1f89fe,Symbol['toStringTag'],{'value':_0x4f3817(0x10d)});function _0x22cba5(_0xd00656,_0x4ad6ab){return function(_0x4099ed,_0x436f59){_0x4ad6ab(_0x4099ed,_0x436f59,_0xd00656);};}function _0x8e30d8(_0xd9c642,_0x19794c,_0xb5f545,_0x3c9fd3){var _0x2eed59=_0x4f3817,_0x46559f=arguments[_0x2eed59(0xd1)],_0x50b5ab=_0x46559f<0x3?_0x19794c:_0x3c9fd3===null?_0x3c9fd3=Object['getOwnPropertyDescriptor'](_0x19794c,_0xb5f545):_0x3c9fd3,_0x412edc;if(typeof Reflect==_0x2eed59(0xc8)&&typeof Reflect['decorate']==_0x2eed59(0xe5))_0x50b5ab=Reflect[_0x2eed59(0xee)](_0xd9c642,_0x19794c,_0xb5f545,_0x3c9fd3);else{for(var _0x6d777a=_0xd9c642[_0x2eed59(0xd1)]-0x1;_0x6d777a>=0x0;_0x6d777a--)(_0x412edc=_0xd9c642[_0x6d777a])&&(_0x50b5ab=(_0x46559f<0x3?_0x412edc(_0x50b5ab):_0x46559f>0x3?_0x412edc(_0x19794c,_0xb5f545,_0x50b5ab):_0x412edc(_0x19794c,_0xb5f545))||_0x50b5ab);}return _0x46559f>0x3&&_0x50b5ab&&Object['defineProperty'](_0x19794c,_0xb5f545,_0x50b5ab),_0x50b5ab;}let _0x38c062=class{constructor(_0x477eba,_0x4b7956,_0x5dff56,_0x2b0b4b,_0x24b9ab,_0x174c68){var _0x50bfda=_0x4f3817;this['_unitId']=_0x477eba,this[_0x50bfda(0x10c)]=_0x4b7956,this[_0x50bfda(0x11e)]=_0x5dff56,this[_0x50bfda(0xec)]=_0x2b0b4b,this['_service']=_0x24b9ab,this[_0x50bfda(0x109)]=_0x174c68;}['getId'](){var _0x1a5904=_0x4f3817;return this[_0x1a5904(0x10c)];}['getRange'](){var _0x5b31a7=_0x4f3817;let _0x380b53=this[_0x5b31a7(0x128)]();return _0x380b53?{'endOffset':_0x380b53[_0x5b31a7(0xca)]+0x1,'rangeId':_0x380b53['rangeId'],'startOffset':_0x380b53[_0x5b31a7(0xfc)]}:null;}[_0x4f3817(0xda)](){var _0x4f364b=_0x4f3817,_0x48c7c5;return((_0x48c7c5=this[_0x4f364b(0xec)]['getFormula'](this[_0x4f364b(0xdb)],this[_0x4f364b(0x10c)]))==null?void 0x0:_0x48c7c5[_0x4f364b(0xfe)])??'';}[_0x4f3817(0xe3)](){var _0x1baa4a=_0x4f3817;return this['_model'][_0x1baa4a(0xda)](this[_0x1baa4a(0xdb)],this[_0x1baa4a(0x10c)])??null;}['getResult'](){var _0x5653c2=_0x4f3817;return this[_0x5653c2(0xc7)][_0x5653c2(0x107)]({'unitId':this[_0x5653c2(0xdb)],'rangeId':this[_0x5653c2(0x10c)]})??null;}[_0x4f3817(0x104)](){var _0x5d3941=_0x4f3817;let _0x576aa6=this[_0x5d3941(0x117)](),_0x64264=this['getConfig'](),_0x3ce1fb=this['getResult']();return!_0x576aa6||!_0x64264||!_0x3ce1fb?null:{..._0x576aa6,'config':_0x64264,'formula':_0x64264[_0x5d3941(0xfe)],'result':_0x3ce1fb,'type':_0x5d3941(0xfe)};}[_0x4f3817(0xf2)](_0x45071d){var _0x11aa53=_0x4f3817;return this[_0x11aa53(0x11e)][_0x11aa53(0xff)](_0x3707d3[_0x11aa53(0xd0)]['id'],{'externalReferences':_0x45071d[_0x11aa53(0x127)],'formula':_0x45071d[_0x11aa53(0xfe)],'numberFormat':_0x45071d[_0x11aa53(0x111)],'rangeId':this[_0x11aa53(0x10c)],'unitId':this[_0x11aa53(0xdb)]});}[_0x4f3817(0xf8)](_0x14cc5a){var _0x2bc71c=_0x4f3817;return this['_commandService'][_0x2bc71c(0xff)](_0x3707d3[_0x2bc71c(0xd2)]['id'],{'numberFormat':_0x14cc5a,'rangeId':this[_0x2bc71c(0x10c)],'unitId':this[_0x2bc71c(0xdb)]});}[_0x4f3817(0xcb)](){var _0x5e7df6=_0x4f3817;return this[_0x5e7df6(0x11e)][_0x5e7df6(0xff)](_0x3707d3['RemoveDocFormulaCommand']['id'],{'rangeId':this['_rangeId'],'unitId':this[_0x5e7df6(0xdb)]});}[_0x4f3817(0xf9)](_0x3ec329){var _0x1edfc7=_0x4f3817;return this[_0x1edfc7(0x11e)]['syncExecuteCommand'](_0x3707d3[_0x1edfc7(0x116)]['id'],{'rangeId':this['_rangeId'],'text':_0x3ec329,'unitId':this['_unitId']});}[_0x4f3817(0xcf)](){var _0x129375=_0x4f3817;return this['_commandService']['syncExecuteCommand'](_0x3707d3[_0x129375(0xfb)]['id'],{'rangeId':this['_rangeId'],'unitId':this['_unitId']});}[_0x4f3817(0x128)](){var _0x57d6da=_0x4f3817,_0x3cd52c;let _0x5d7254=this[_0x57d6da(0x109)]['getUnit'](this[_0x57d6da(0xdb)],_0x30ba37[_0x57d6da(0x124)][_0x57d6da(0xc9)]);return _0x5d7254==null||(_0x3cd52c=_0x5d7254['getSnapshot']()['body'])==null||(_0x3cd52c=_0x3cd52c[_0x57d6da(0xf3)])==null?void 0x0:_0x3cd52c[_0x57d6da(0x121)](_0x29e274=>_0x29e274['rangeId']===this[_0x57d6da(0x10c)]&&(0x0,_0x3707d3[_0x57d6da(0x12a)])(_0x29e274));}};_0x38c062=_0x8e30d8([_0x22cba5(0x2,_0x30ba37[_0x4f3817(0xfd)]),_0x22cba5(0x3,(0x0,_0x30ba37[_0x4f3817(0x122)])(_0x3707d3[_0x4f3817(0x119)])),_0x22cba5(0x4,(0x0,_0x30ba37[_0x4f3817(0x122)])(_0x3707d3[_0x4f3817(0xd3)])),_0x22cba5(0x5,_0x30ba37[_0x4f3817(0x110)])],_0x38c062);function _0x414854(_0x393497){'@babel/helpers - typeof';var _0x2601a7=_0x4f3817;return _0x414854=typeof Symbol=='function'&&typeof Symbol[_0x2601a7(0x108)]==_0x2601a7(0x112)?function(_0x443ee7){return typeof _0x443ee7;}:function(_0x11b52f){var _0x27620d=_0x2601a7;return _0x11b52f&&typeof Symbol==_0x27620d(0xe5)&&_0x11b52f[_0x27620d(0x113)]===Symbol&&_0x11b52f!==Symbol['prototype']?'symbol':typeof _0x11b52f;},_0x414854(_0x393497);}function _0x507785(_0x4373ec,_0x52a86d){var _0x341640=_0x4f3817;if(_0x414854(_0x4373ec)!='object'||!_0x4373ec)return _0x4373ec;var _0x2ec8da=_0x4373ec[Symbol['toPrimitive']];if(_0x2ec8da!==void 0x0){var _0x4845f7=_0x2ec8da[_0x341640(0xe2)](_0x4373ec,_0x52a86d||_0x341640(0xd6));if(_0x414854(_0x4845f7)!=_0x341640(0xc8))return _0x4845f7;throw TypeError(_0x341640(0x126));}return(_0x52a86d===_0x341640(0xd7)?String:Number)(_0x4373ec);}function _0x1eb473(_0x335b7b){var _0x5ec160=_0x4f3817,_0x3d6f9d=_0x507785(_0x335b7b,_0x5ec160(0xd7));return _0x414854(_0x3d6f9d)==_0x5ec160(0x112)?_0x3d6f9d:_0x3d6f9d+'';}function _0x3991f6(_0x561d60,_0x39cf0c,_0x2c7894){var _0x90c831=_0x4f3817;return(_0x39cf0c=_0x1eb473(_0x39cf0c))in _0x561d60?Object[_0x90c831(0xfa)](_0x561d60,_0x39cf0c,{'value':_0x2c7894,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x561d60[_0x39cf0c]=_0x2c7894,_0x561d60;}var _0x5ea0d8=class extends _0x412a81[_0x4f3817(0xcc)]{constructor(..._0x589405){var _0x324e4c=_0x4f3817;super(..._0x589405),_0x3991f6(this,'_docsFormulaCommandService',void 0x0),_0x3991f6(this,_0x324e4c(0xf4),void 0x0),_0x3991f6(this,'_docsFormulaModel',void 0x0),_0x3991f6(this,'_docsFormulaResourceLoaderService',void 0x0);}[_0x4f3817(0xf1)](_0xca0527){var _0x195aa7=_0x4f3817;this[_0x195aa7(0xe4)]=_0xca0527[_0x195aa7(0x11c)](_0x30ba37['ICommandService']),this['_docsFormulaDisplayTextService']=_0xca0527['get'](_0x3707d3[_0x195aa7(0xeb)]),this[_0x195aa7(0xc6)]=_0xca0527['get'](_0x3707d3[_0x195aa7(0x119)]),this[_0x195aa7(0x10e)]=_0xca0527[_0x195aa7(0x11c)](_0x30ba37[_0x195aa7(0x10f)]);}[_0x4f3817(0xf5)](){var _0x34296e=_0x4f3817;return this[_0x34296e(0x114)]()[_0x34296e(0xe9)](_0xe78e28=>this[_0x34296e(0xc4)](_0xe78e28[_0x34296e(0xe0)]));}['getFormula'](_0xf6ba9){var _0x3684d1=_0x4f3817;return this['_getCompleteRanges']()['some'](_0x51b5ba=>_0x51b5ba[_0x3684d1(0xe0)]===_0xf6ba9)?this[_0x3684d1(0xc4)](_0xf6ba9):null;}[_0x4f3817(0x129)](_0x157b09){var _0x3e218e=_0x4f3817;let _0x37bfa3=this[_0x3e218e(0x114)]()['find'](_0x1929dd=>_0x1929dd[_0x3e218e(0xfc)]<=_0x157b09&&_0x157b09<=_0x1929dd[_0x3e218e(0xca)]);return _0x37bfa3?this[_0x3e218e(0xc4)](_0x37bfa3[_0x3e218e(0xe0)]):null;}[_0x4f3817(0xd5)](){var _0x3240f7=_0x4f3817;let _0x4d156c=this[_0x3240f7(0x10e)][_0x3240f7(0x11a)](this['id']);if(!_0x4d156c)throw Error(_0x3240f7(0x10b)+this['id']+'\x20could\x20not\x20be\x20serialized.');return this[_0x3240f7(0xf4)]['degradeDocumentData'](_0x4d156c);}[_0x4f3817(0x11f)](_0x41c25b){var _0x494496=_0x4f3817;return this['_insert']({'externalReferences':_0x41c25b[_0x494496(0x127)],'formula':_0x41c25b[_0x494496(0xfe)],'numberFormat':_0x41c25b[_0x494496(0x111)],'target':{'type':_0x494496(0xd8),'startOffset':_0x41c25b[_0x494496(0x125)],'endOffset':_0x41c25b[_0x494496(0x123)]},'unitId':this['getId']()});}[_0x4f3817(0x100)](_0x1a08ca){var _0x285a17=_0x4f3817;let _0x45dc8f=this['_docsFormulaCommandService']['syncExecuteCommand'](_0x3707d3[_0x285a17(0x103)]['id'],_0x1a08ca);return _0x45dc8f?this[_0x285a17(0xc4)](_0x45dc8f[_0x285a17(0xe0)]):null;}[_0x4f3817(0x114)](){var _0xcfab95=_0x4f3817,_0x30002f;let _0x4bccfb=this[_0xcfab95(0xc6)][_0xcfab95(0xf5)](this[_0xcfab95(0x11d)]());return((_0x30002f=this[_0xcfab95(0xf6)]('')[_0xcfab95(0xf3)])==null?void 0x0:_0x30002f[_0xcfab95(0xe8)](_0x31deea=>(0x0,_0x3707d3[_0xcfab95(0x12a)])(_0x31deea)&&_0x4bccfb[_0x31deea[_0xcfab95(0xe0)]]!=null))??[];}[_0x4f3817(0xc4)](_0x563435){var _0x22334a=_0x4f3817;return this[_0x22334a(0xef)]['createInstance'](_0x38c062,this['getId'](),_0x563435);}};_0x412a81['FDocument']['extend'](_0x5ea0d8);var _0x1f0201=class extends _0x412a81[_0x4f3817(0x101)]{constructor(..._0x3146bd){var _0x4b91f6=_0x4f3817;super(..._0x3146bd),_0x3991f6(this,_0x4b91f6(0xe4),void 0x0);}['_initialize'](_0x3ec144){var _0x3e06e9=_0x4f3817;this[_0x3e06e9(0xe4)]=_0x3ec144[_0x3e06e9(0x11c)](_0x30ba37[_0x3e06e9(0xfd)]);}[_0x4f3817(0x11f)](_0x182cb7,_0x1b4ec4,_0x153873={}){var _0x125b36=_0x4f3817;return this[_0x125b36(0x100)](_0x182cb7,_0x1b4ec4,_0x153873);}['appendFormula'](_0x276561,_0x46584e={}){var _0x5a6259=_0x4f3817;return this[_0x5a6259(0x100)](_0x5a6259(0xdc),_0x276561,_0x46584e);}['_insert'](_0x93cc6f,_0x45779a,_0x5914e7){var _0x5a31ca=_0x4f3817;if(this[_0x5a31ca(0x118)]())return null;let _0x3847af={'externalReferences':_0x5914e7[_0x5a31ca(0x127)],'formula':_0x45779a,'numberFormat':_0x5914e7[_0x5a31ca(0x111)],'target':{'type':'paragraph','paragraphId':this['getId'](),'position':_0x93cc6f},'unitId':this[_0x5a31ca(0xce)][_0x5a31ca(0x11d)]()},_0xa3cac2=this['_docsFormulaCommandService'][_0x5a31ca(0xff)](_0x3707d3[_0x5a31ca(0x103)]['id'],_0x3847af);return _0xa3cac2?this[_0x5a31ca(0xef)][_0x5a31ca(0xd9)](_0x38c062,this[_0x5a31ca(0xce)]['getId'](),_0xa3cac2[_0x5a31ca(0xe0)]):null;}};_0x412a81[_0x4f3817(0x101)][_0x4f3817(0x106)](_0x1f0201);var _0x2308b4=class extends _0x412a81[_0x4f3817(0x11b)]{constructor(..._0xaccd54){var _0x1479bf=_0x4f3817;super(..._0xaccd54),_0x3991f6(this,_0x1479bf(0xe4),void 0x0);}[_0x4f3817(0xf1)](_0x3b2c28){var _0x3e3b4c=_0x4f3817;this['_docsFormulaCommandService']=_0x3b2c28[_0x3e3b4c(0x11c)](_0x30ba37[_0x3e3b4c(0xfd)]);}[_0x4f3817(0xf0)](_0x24d0ef,_0x506135={}){var _0x2da701=_0x4f3817;let {endOffset:_0xb526e2,segmentId:_0x12cefa,startOffset:_0x2e7c90}=this[_0x2da701(0x117)]();return _0x12cefa?null:this['_insert'](_0x2e7c90,_0xb526e2,_0x24d0ef,_0x506135);}[_0x4f3817(0x100)](_0x14a80a,_0xe9b437,_0x595d9b,_0x43e2b8){var _0x3f89f0=_0x4f3817;let _0x3c9468={'externalReferences':_0x43e2b8['externalReferences'],'formula':_0x595d9b,'numberFormat':_0x43e2b8['numberFormat'],'target':{'type':_0x3f89f0(0xd8),'startOffset':_0x14a80a,'endOffset':_0xe9b437},'unitId':this[_0x3f89f0(0xce)]['getId']()},_0x2c4e60=this[_0x3f89f0(0xe4)][_0x3f89f0(0xff)](_0x3707d3[_0x3f89f0(0x103)]['id'],_0x3c9468);return _0x2c4e60?this['_injector'][_0x3f89f0(0xd9)](_0x38c062,this[_0x3f89f0(0xce)]['getId'](),_0x2c4e60[_0x3f89f0(0xe0)]):null;}};_0x412a81[_0x4f3817(0x11b)][_0x4f3817(0x106)](_0x2308b4),Object[_0x4f3817(0xfa)](_0x1f89fe,_0x4f3817(0xd4),{'enumerable':!0x0,'get':function(){return _0x38c062;}});}));function _0x4de3(_0x73c9e4,_0x417dcd){_0x73c9e4=_0x73c9e4-0xc4;var _0x59a421=_0x59a4();var _0x4de3c8=_0x59a421[_0x73c9e4];return _0x4de3c8;}function _0x59a4(){var _0x4939fa=['update','customRanges','_docsFormulaDisplayTextService','getFormulas','getBody','49328pDEBGf','setNumberFormat','replaceWithText','defineProperty','ConvertDocFormulaToTextCommand','startIndex','ICommandService','formula','syncExecuteCommand','_insert','FDocumentParagraph','101457nAaEJH','InsertDocFormulaCommand','describe','@univerjs/core','extend','getResult','iterator','_univerInstanceService','4062AfBzCr','Document\x20','_rangeId','Module','_docsFormulaResourceLoaderService','IResourceLoaderService','IUniverInstanceService','numberFormat','symbol','constructor','_getCompleteRanges','6164028ueVTBb','ReplaceDocFormulaWithTextCommand','getRange','getSegmentId','DocFormulaModel','saveUnit','FDocumentTextRange','get','getId','_commandService','insertFormula','9iIQEoG','find','Inject','endOffset','UniverInstanceType','startOffset','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','externalReferences','_getCustomRange','getFormulaAt','isDocFormulaRange','1722fBFLdX','_createFormula','324SHBtfV','_docsFormulaModel','_service','object','UNIVER_DOC','endIndex','remove','FDocument','amd','_document','convertToText','UpdateDocFormulaCommand','length','SetDocFormulaNumberFormatCommand','DocFormulaService','FDocumentFormula','saveFormulaDisplayTextSnapshot','default','string','range','createInstance','getFormula','_unitId','end','1360jAPwwe','1216941pxqOWz','772GJAgBy','rangeId','@univerjs/docs/facade','call','getConfig','_docsFormulaCommandService','function','4864520TJDZXm','705804cSlQaN','filter','map','UniverProDocsFormula','DocFormulaDisplayTextService','_model','UniverCore','decorate','_injector','replaceWithFormula','_initialize'];_0x59a4=function(){return _0x4939fa;};return _0x59a4();}