@univerjs-pro/docs-formula 1.2.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/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x1173d9=_0x24c4;(function(_0x1054ab,_0x3047dc){const _0x37a0f7=_0x24c4,_0x47b29e=_0x1054ab();while(!![]){try{const _0x247168=-parseInt(_0x37a0f7(0x1ec))/0x1+-parseInt(_0x37a0f7(0x1b9))/0x2+parseInt(_0x37a0f7(0x1a0))/0x3+parseInt(_0x37a0f7(0x13c))/0x4+parseInt(_0x37a0f7(0x127))/0x5*(parseInt(_0x37a0f7(0x166))/0x6)+-parseInt(_0x37a0f7(0x194))/0x7*(parseInt(_0x37a0f7(0x154))/0x8)+parseInt(_0x37a0f7(0x128))/0x9*(-parseInt(_0x37a0f7(0x205))/0xa);if(_0x247168===_0x3047dc)break;else _0x47b29e['push'](_0x47b29e['shift']());}catch(_0x30db35){_0x47b29e['push'](_0x47b29e['shift']());}}}(_0x3422,0x90f2e));import{FormulaCacheEligibilityService as _0x4ef013,FormulaLastValuePersistenceService as _0x29264c,HostExternalReferenceModel as _0x4e7a8f,UniverProFormulaEnginePlugin as _0x2ac530,buildUpsertHostExternalReferenceMutations as _0x18f854,collectFormulaExternalReferenceQualifiers as _0x40128b,getScalarFormulaResultCell as _0x3d55cd,resolveFormulaResultPresentation as _0x32521a,resolveHostFormulaExternalReferences as _0x3d2466,toFormulaLastValue as _0x24052f}from'@univerjs-pro/engine-formula';import{CellValueType as _0x144c98,CommandType as _0x2e2ecf,CustomRangeType as _0x14b828,DataStreamTreeTokenType as _0x5a972a,DependentOn as _0x192577,Disposable as _0x487bea,ICommandService as _0x170d7c,IConfigService as _0x335e00,IResourceManagerService as _0x39a957,IUndoRedoService as _0x4c8196,IUniverInstanceService as _0x1cb79e,Inject as _0x41fe0f,Injector as _0x4a690a,JSONX as _0x534e11,Plugin as _0x31da3e,TextX as _0x2dfabc,Tools as _0x13c34f,UniverInstanceType as _0xe966be,generateRandomId as _0x7ffdf2,getBodySliceForTextXAction as _0x4b0522,getCustomRangeInterval as _0x1c5e95,getParagraphContentStartOffset as _0x882200,getRichTextEditPath as _0x2a5420,merge as _0x1b50a3,shiftExclusiveRangeOnDelete as _0x324bcb,shiftExclusiveRangeOnInsert as _0x127e50,shiftInclusiveRangeOnDelete as _0x2e67c7,shiftInclusiveRangeOnInsert as _0xae953e,touchDependencies as _0x218854}from'@univerjs/core';import{DOC_SELECTION_OPTION_PRESERVE_CARET as _0xc6b882,DocSelectionManagerService as _0x764d00,DocTextResolverService as _0x325458,RichTextEditingMutation as _0x3f9ca3,UniverDocsPlugin as _0x48ceb4}from'@univerjs/docs';import{FormulaResultStatus as _0x208399,LexerTreeBuilder as _0x26af78,OtherFormulaBizType as _0xca11f,RegisterOtherFormulaService as _0x78c724}from'@univerjs/engine-formula';import{Subject as _0x11a859}from'rxjs';import{UniverLicensePlugin as _0x221e8d}from'@univerjs-pro/license';const y='DOC_FORMULA_PLUGIN',je=0x1,Me=_0x1173d9(0x12d),Ne='';function _0x24c4(_0x44fd83,_0x3adc5b){_0x44fd83=_0x44fd83-0x124;const _0x3422a8=_0x3422();let _0x24c4df=_0x3422a8[_0x44fd83];return _0x24c4df;}function b(){return{'schemaVersion':0x1,'formulas':{}};}function x(_0x29c68e){const _0x3e88e1=_0x1173d9;return!_0x29c68e||typeof _0x29c68e!=_0x3e88e1(0x21d)||!S(_0x29c68e,[_0x3e88e1(0x17e),_0x3e88e1(0x183)])||!(_0x3e88e1(0x17e)in _0x29c68e)||_0x29c68e['schemaVersion']!==0x1||!(_0x3e88e1(0x183)in _0x29c68e)||!_0x29c68e[_0x3e88e1(0x183)]||typeof _0x29c68e[_0x3e88e1(0x183)]!=_0x3e88e1(0x21d)||Array[_0x3e88e1(0x1c5)](_0x29c68e[_0x3e88e1(0x183)])?!0x1:Object[_0x3e88e1(0x188)](_0x29c68e['formulas'])[_0x3e88e1(0x153)](([_0x2eb237,_0x330c42])=>_0x2eb237[_0x3e88e1(0x1e6)]>0x0&&Pe(_0x330c42));}function Pe(_0x23299e){const _0xf12bb4=_0x1173d9;return!_0x23299e||typeof _0x23299e!=_0xf12bb4(0x21d)||!S(_0x23299e,[_0xf12bb4(0x1de),_0xf12bb4(0x1ae),_0xf12bb4(0x1b4)])||!(_0xf12bb4(0x1de)in _0x23299e)||typeof _0x23299e[_0xf12bb4(0x1de)]!='string'||!_0x23299e['formula'][_0xf12bb4(0x1bf)]()||_0xf12bb4(0x1ae)in _0x23299e&&_0x23299e['numberFormat']!=null&&(typeof _0x23299e[_0xf12bb4(0x1ae)]!='object'||!S(_0x23299e[_0xf12bb4(0x1ae)],['pattern'])||!(_0xf12bb4(0x1b6)in _0x23299e[_0xf12bb4(0x1ae)])||typeof _0x23299e[_0xf12bb4(0x1ae)]['pattern']!='string')?!0x1:!(_0xf12bb4(0x1b4)in _0x23299e)||_0x23299e['lastValue']==null||Fe(_0x23299e[_0xf12bb4(0x1b4)]);}function Fe(_0x51295c){const _0x47b459=_0x1173d9;return!_0x51295c||typeof _0x51295c!=_0x47b459(0x21d)||!S(_0x51295c,['v','t',_0x47b459(0x1b6)])||!('v'in _0x51295c)||_0x51295c['v']!==null&&typeof _0x51295c['v']!=_0x47b459(0x1b7)&&typeof _0x51295c['v']!=_0x47b459(0x1ba)&&typeof _0x51295c['v']!=_0x47b459(0x202)||'t'in _0x51295c&&_0x51295c['t']!=null&&!Ie(_0x51295c['t'])?!0x1:!(_0x47b459(0x1b6)in _0x51295c)||_0x51295c[_0x47b459(0x1b6)]==null||typeof _0x51295c[_0x47b459(0x1b6)]==_0x47b459(0x1b7);}function S(_0x21e426,_0x4d2b57){const _0x1a3eef=_0x1173d9;let _0x5b7e81=new Set(_0x4d2b57);return Object[_0x1a3eef(0x16c)](_0x21e426)[_0x1a3eef(0x153)](_0x265261=>_0x5b7e81['has'](_0x265261));}function Ie(_0x2986cb){const _0xffe6a2=_0x1173d9;return typeof _0x2986cb==_0xffe6a2(0x1ba)&&Object['values'](_0x144c98)[_0xffe6a2(0x1c2)](_0x2986cb);}const Le=new Set([_0x5a972a[_0x1173d9(0x181)],_0x5a972a['TABLE_START'],_0x5a972a[_0x1173d9(0x16e)],_0x5a972a[_0x1173d9(0x1c6)],_0x5a972a[_0x1173d9(0x14d)],_0x5a972a['TABLE_ROW_END'],_0x5a972a[_0x1173d9(0x1df)],_0x5a972a[_0x1173d9(0x21f)],_0x5a972a[_0x1173d9(0x1ef)],_0x5a972a[_0x1173d9(0x21b)],_0x5a972a['COLUMN_GROUP_END'],_0x5a972a[_0x1173d9(0x143)],_0x5a972a[_0x1173d9(0x1d4)],_0x5a972a[_0x1173d9(0x18e)]]);var C=class extends Error{constructor(){super('Doc\x20Formula\x20range\x20cannot\x20cross\x20document\x20structure\x20boundaries');}};function Re(_0x52ccf1){const _0x2ff303=_0x1173d9;var _0xf22a04,_0xfd92e4;let _0x297c81=_0x13c34f[_0x2ff303(0x168)](_0x52ccf1[_0x2ff303(0x150)]),_0x391bbd=j(_0x297c81),{startOffset:_0xd7b251,endOffset:_0x27cbd9}=We(_0x391bbd,_0x52ccf1[_0x2ff303(0x185)],_0x52ccf1[_0x2ff303(0x186)]);He(_0x391bbd,_0xd7b251,_0x27cbd9);let _0x5bb1c9=((_0xf22a04=_0x391bbd[_0x2ff303(0x1c9)])==null?void 0x0:_0xf22a04[_0x2ff303(0x1a8)](_0xe74ebe=>{const _0x558db4=_0x2ff303;if(!w(_0xe74ebe))return!0x1;let _0x3b5521=_0x1c5e95(_0xe74ebe);return _0x3b5521[_0x558db4(0x186)]>_0xd7b251&&_0x3b5521['startOffset']<_0x27cbd9;})[_0x2ff303(0x17f)](_0x1e2229=>_0x1e2229[_0x2ff303(0x217)]))??[];qe(_0x391bbd,_0xd7b251,_0x27cbd9,''),_0x391bbd['customRanges']=[...((_0xfd92e4=_0x391bbd[_0x2ff303(0x1c9)])==null?void 0x0:_0xfd92e4['filter'](_0x3d564b=>!_0x5bb1c9[_0x2ff303(0x1c2)](_0x3d564b['rangeId'])&&_0x3d564b[_0x2ff303(0x217)]!==_0x52ccf1['rangeId']))??[],Ue(_0x52ccf1['rangeId'],_0xd7b251)][_0x2ff303(0x1c1)]((_0x4843fd,_0x10eabe)=>_0x4843fd[_0x2ff303(0x1f9)]-_0x10eabe['startIndex']);let _0x4257f7=E(_0x52ccf1[_0x2ff303(0x1e7)]);return _0x5bb1c9['forEach'](_0x1a51e7=>{const _0x2fc0cd=_0x2ff303;delete _0x4257f7[_0x2fc0cd(0x183)][_0x1a51e7];}),_0x4257f7['formulas'][_0x52ccf1[_0x2ff303(0x217)]]=_0x13c34f[_0x2ff303(0x168)](_0x52ccf1['config']),{'nextDocumentData':_0x297c81,'nextResource':_0x4257f7,'cursorOffset':_0xd7b251+0x1};}function ze(_0x2bab12){const _0x2a4af6=_0x1173d9;var _0x91564c,_0x28f6f8;let _0x1b6eb5=_0x13c34f['deepClone'](_0x2bab12[_0x2a4af6(0x150)]),_0xaacf8a=(_0x91564c=j(_0x1b6eb5)[_0x2a4af6(0x1c9)])==null?void 0x0:_0x91564c['find'](_0x1ca4e2=>_0x1ca4e2[_0x2a4af6(0x217)]===_0x2bab12[_0x2a4af6(0x217)]&&w(_0x1ca4e2));if(!_0xaacf8a||!((_0x28f6f8=_0x2bab12[_0x2a4af6(0x1e7)])!=null&&_0x28f6f8[_0x2a4af6(0x183)][_0x2bab12['rangeId']]))return null;let _0x5e6d38=E(_0x2bab12[_0x2a4af6(0x1e7)]);return _0x5e6d38['formulas'][_0x2bab12[_0x2a4af6(0x217)]]=_0x13c34f[_0x2a4af6(0x168)](_0x2bab12[_0x2a4af6(0x216)]),{'nextDocumentData':_0x1b6eb5,'nextResource':_0x5e6d38,'cursorOffset':_0xaacf8a[_0x2a4af6(0x15e)]+0x1};}function Be(_0x4baa3c){const _0x141623=_0x1173d9;let _0xabe635=_0x13c34f[_0x141623(0x168)](_0x4baa3c[_0x141623(0x150)]),_0x7b7226=Je(_0xabe635,_0x4baa3c[_0x141623(0x217)],_0x4baa3c[_0x141623(0x204)]??'');if(_0x7b7226==null)return null;let _0x38c3a2=E(_0x4baa3c[_0x141623(0x1e7)]);return delete _0x38c3a2[_0x141623(0x183)][_0x4baa3c[_0x141623(0x217)]],{'nextDocumentData':_0xabe635,'nextResource':_0x38c3a2,'cursorOffset':_0x7b7226};}function Ve(_0x16a79b,_0x55591f){const _0x2e525b=_0x1173d9;var _0x58e65e;let _0x23819b=_0x13c34f[_0x2e525b(0x168)](_0x16a79b),_0x2de3ea=_0x23819b[_0x2e525b(0x1e1)];if(!_0x2de3ea)return _0x23819b;let _0x1cc7a5=new Map(_0x55591f[_0x2e525b(0x17f)](_0xa52142=>[_0xa52142[_0x2e525b(0x217)],_0xa52142[_0x2e525b(0x204)]])),_0x30fd31=((_0x58e65e=_0x2de3ea['customRanges'])==null?void 0x0:_0x58e65e[_0x2e525b(0x1a8)](_0x13cf27=>w(_0x13cf27)&&_0x1cc7a5[_0x2e525b(0x130)](_0x13cf27[_0x2e525b(0x217)]))[_0x2e525b(0x1c1)]((_0x97cc5a,_0x2f7ef7)=>_0x2f7ef7[_0x2e525b(0x1f9)]-_0x97cc5a[_0x2e525b(0x1f9)]))??[];for(let _0x3f0e0a of _0x30fd31)Je(_0x23819b,_0x3f0e0a[_0x2e525b(0x217)],_0x1cc7a5[_0x2e525b(0x137)](_0x3f0e0a[_0x2e525b(0x217)])??'');return _0x23819b;}function w(_0x2546b3){const _0x9a3531=_0x1173d9;var _0x416999;return(_0x2546b3==null?void 0x0:_0x2546b3[_0x9a3531(0x1a5)])===_0x14b828[_0x9a3531(0x19b)]&&_0x2546b3[_0x9a3531(0x1ac)]===!0x0&&((_0x416999=_0x2546b3[_0x9a3531(0x1b2)])==null?void 0x0:_0x416999['kind'])===_0x9a3531(0x12d);}function T(_0x35e79c,_0x134953){const _0x2cb2a5=_0x1173d9;var _0x1a42ee;return _0x35e79c==null||(_0x1a42ee=_0x35e79c[_0x2cb2a5(0x1c9)])==null?void 0x0:_0x1a42ee[_0x2cb2a5(0x1c3)](_0x8d3c9=>_0x8d3c9[_0x2cb2a5(0x217)]===_0x134953&&w(_0x8d3c9));}function He(_0x595b96,_0x43574a,_0x5c3094){const _0x139cf0=_0x1173d9;if(_0x43574a===_0x5c3094){if(Le[_0x139cf0(0x130)](_0x595b96[_0x139cf0(0x16d)][_0x43574a]))throw new C();}else{for(let _0xad2637=_0x43574a;_0xad2637<_0x5c3094;_0xad2637++)if(_0x595b96['dataStream'][_0xad2637]===_0x5a972a[_0x139cf0(0x132)]||Le[_0x139cf0(0x130)](_0x595b96['dataStream'][_0xad2637]))throw new C();}}function Ue(_0x20ecb1,_0x3f6faa){return{'startIndex':_0x3f6faa,'endIndex':_0x3f6faa,'rangeId':_0x20ecb1,'rangeType':_0x14b828['CUSTOM'],'wholeEntity':!0x0,'properties':{'kind':Me}};}function E(_0x4688ae){const _0x266f86=_0x1173d9;return _0x4688ae?_0x13c34f[_0x266f86(0x168)](_0x4688ae):b();}function We(_0x2dfbda,_0x616eb0,_0x5c678e){const _0x2bd236=_0x1173d9;let _0x297f69=Ke(_0x2dfbda),_0x394e81=_0x616eb0??_0x297f69,_0xba4cab=_0x5c678e??_0x394e81;return{'startOffset':Ge(Math['min'](_0x394e81,_0xba4cab),_0x297f69),'endOffset':Ge(Math[_0x2bd236(0x221)](_0x394e81,_0xba4cab),_0x297f69)};}function Ge(_0x4892f0,_0x2bb1c2){const _0x4975c6=_0x1173d9;return Math[_0x4975c6(0x221)](0x0,Math[_0x4975c6(0x1f2)](_0x4892f0,_0x2bb1c2));}function Ke(_0x11174f){const _0x40a7b0=_0x1173d9;return _0x11174f['dataStream'][_0x40a7b0(0x1fc)](''+_0x5a972a[_0x40a7b0(0x132)]+_0x5a972a[_0x40a7b0(0x181)])?Math[_0x40a7b0(0x221)](0x0,_0x11174f['dataStream'][_0x40a7b0(0x1e6)]-0x2):_0x11174f[_0x40a7b0(0x16d)][_0x40a7b0(0x1fc)](_0x5a972a[_0x40a7b0(0x181)])?Math['max'](0x0,_0x11174f[_0x40a7b0(0x16d)][_0x40a7b0(0x1e6)]-0x1):_0x11174f['dataStream'][_0x40a7b0(0x1e6)];}function qe(_0x5a55e7,_0x294af2,_0x318e32,_0x4b6e5b){_0x318e32>_0x294af2&&Xe(_0x5a55e7,_0x294af2,_0x318e32),Ye(_0x5a55e7,_0x294af2,_0x4b6e5b);}function Je(_0x1941aa,_0x27a7b9,_0x16a66b){const _0x4a61da=_0x1173d9;var _0x113c56,_0x775c43;let _0x468627=j(_0x1941aa),_0x406041=(_0x113c56=_0x468627[_0x4a61da(0x1c9)])==null?void 0x0:_0x113c56['find'](_0x191395=>_0x191395[_0x4a61da(0x217)]===_0x27a7b9&&w(_0x191395));if(!_0x406041)return null;let _0x5c764f=_0x1c5e95(_0x406041);return qe(_0x468627,_0x5c764f['startOffset'],_0x5c764f[_0x4a61da(0x186)],_0x16a66b),_0x468627[_0x4a61da(0x1c9)]=(_0x775c43=_0x468627['customRanges'])==null?void 0x0:_0x775c43[_0x4a61da(0x1a8)](_0x24f0e0=>_0x24f0e0[_0x4a61da(0x217)]!==_0x27a7b9),_0x5c764f[_0x4a61da(0x185)]+_0x16a66b[_0x4a61da(0x1e6)];}function Ye(_0x5000c0,_0x57c2e5,_0x371b15){const _0x165096=_0x1173d9;_0x371b15&&(_0x5000c0[_0x165096(0x16d)]=''+_0x5000c0[_0x165096(0x16d)]['slice'](0x0,_0x57c2e5)+_0x371b15+_0x5000c0[_0x165096(0x16d)][_0x165096(0x12a)](_0x57c2e5),Ze(_0x5000c0,_0x57c2e5,_0x371b15['length']));}function Xe(_0x27c549,_0x140dd1,_0xdfd73c){const _0x2843bd=_0x1173d9;let _0x4a5feb=_0xdfd73c-_0x140dd1;_0x27c549[_0x2843bd(0x16d)]=''+_0x27c549['dataStream'][_0x2843bd(0x12a)](0x0,_0x140dd1)+_0x27c549['dataStream'][_0x2843bd(0x12a)](_0xdfd73c),Qe(_0x27c549,_0x140dd1,_0x4a5feb);}function Ze(_0xcdbf53,_0x4b7e3b,_0x1b2890){const _0x447fe2=_0x1173d9;_0xcdbf53[_0x447fe2(0x1e9)]=D(_0xcdbf53['paragraphs'],_0x4b7e3b,_0x1b2890),_0xcdbf53['sectionBreaks']=D(_0xcdbf53[_0x447fe2(0x1b3)],_0x4b7e3b,_0x1b2890),_0xcdbf53[_0x447fe2(0x12c)]=D(_0xcdbf53['customBlocks'],_0x4b7e3b,_0x1b2890),_0xcdbf53[_0x447fe2(0x1e2)]=$e(_0xcdbf53['textRuns'],_0x4b7e3b,_0x1b2890),_0xcdbf53['tables']=et(_0xcdbf53[_0x447fe2(0x1d8)],_0x4b7e3b,_0x1b2890),_0xcdbf53[_0x447fe2(0x199)]=k(_0xcdbf53[_0x447fe2(0x199)],_0x4b7e3b,_0x1b2890),_0xcdbf53['customRanges']=k(_0xcdbf53['customRanges'],_0x4b7e3b,_0x1b2890),_0xcdbf53[_0x447fe2(0x17c)]=k(_0xcdbf53['customDecorations'],_0x4b7e3b,_0x1b2890),_0xcdbf53[_0x447fe2(0x192)]=k(_0xcdbf53[_0x447fe2(0x192)],_0x4b7e3b,_0x1b2890);}function Qe(_0x422cd4,_0x5dd154,_0x5c5091){const _0x47899e=_0x1173d9;var _0x325dd1,_0x4850f4;_0x422cd4[_0x47899e(0x1e9)]=O(_0x422cd4['paragraphs'],_0x5dd154,_0x5c5091),_0x422cd4[_0x47899e(0x1b3)]=O(_0x422cd4[_0x47899e(0x1b3)],_0x5dd154,_0x5c5091),_0x422cd4[_0x47899e(0x12c)]=O(_0x422cd4[_0x47899e(0x12c)],_0x5dd154,_0x5c5091),_0x422cd4[_0x47899e(0x1e2)]=(_0x325dd1=tt((_0x4850f4=_0x422cd4[_0x47899e(0x1e2)])==null?void 0x0:_0x4850f4[_0x47899e(0x17f)](_0x4340d9=>({..._0x4340d9,'startIndex':_0x4340d9['st'],'endIndex':_0x4340d9['ed']})),_0x5dd154,_0x5c5091))==null?void 0x0:_0x325dd1[_0x47899e(0x17f)](_0x385276=>{let {startIndex:_0x1fb084,endIndex:_0x22bedd,..._0x512ff3}=_0x385276;return{..._0x512ff3,'st':_0x1fb084,'ed':_0x22bedd};}),_0x422cd4[_0x47899e(0x1d8)]=tt(_0x422cd4[_0x47899e(0x1d8)],_0x5dd154,_0x5c5091),_0x422cd4[_0x47899e(0x199)]=A(_0x422cd4['columnGroups'],_0x5dd154,_0x5c5091),_0x422cd4[_0x47899e(0x1c9)]=A(_0x422cd4[_0x47899e(0x1c9)],_0x5dd154,_0x5c5091),_0x422cd4[_0x47899e(0x17c)]=A(_0x422cd4[_0x47899e(0x17c)],_0x5dd154,_0x5c5091),_0x422cd4[_0x47899e(0x192)]=A(_0x422cd4[_0x47899e(0x192)],_0x5dd154,_0x5c5091);}function D(_0x51b1dc,_0x38d7e2,_0x45e38e){const _0x1bb1f2=_0x1173d9;return _0x51b1dc==null?void 0x0:_0x51b1dc['map'](_0x53f9e7=>_0x53f9e7[_0x1bb1f2(0x1f9)]>=_0x38d7e2?{..._0x53f9e7,'startIndex':_0x53f9e7[_0x1bb1f2(0x1f9)]+_0x45e38e}:_0x53f9e7);}function O(_0x131e32,_0x5459e0,_0x5b5409){const _0x4a72a3=_0x1173d9;let _0x1b91a2=_0x5459e0+_0x5b5409;return _0x131e32==null?void 0x0:_0x131e32[_0x4a72a3(0x17f)](_0xeb4f8d=>_0xeb4f8d[_0x4a72a3(0x1f9)]>=_0x5459e0&&_0xeb4f8d[_0x4a72a3(0x1f9)]<_0x1b91a2?null:_0xeb4f8d[_0x4a72a3(0x1f9)]>=_0x1b91a2?{..._0xeb4f8d,'startIndex':_0xeb4f8d[_0x4a72a3(0x1f9)]-_0x5b5409}:_0xeb4f8d)[_0x4a72a3(0x1a8)](_0xc61ba8=>_0xc61ba8!=null);}function $e(_0x24f305,_0x2ca265,_0x204a1d){const _0xb6f4eb=_0x1173d9;return _0x24f305==null?void 0x0:_0x24f305[_0xb6f4eb(0x17f)](_0x461e67=>_0x461e67['st']>=_0x2ca265?{..._0x461e67,'st':_0x461e67['st']+_0x204a1d,'ed':_0x461e67['ed']+_0x204a1d}:_0x461e67['ed']>_0x2ca265?{..._0x461e67,'ed':_0x461e67['ed']+_0x204a1d}:_0x461e67);}function k(_0x990d75,_0x3b5bdd,_0x4f6626){const _0x255b89=_0x1173d9;return _0x990d75==null?void 0x0:_0x990d75[_0x255b89(0x17f)](_0x7ddaee=>_0xae953e(_0x7ddaee,_0x3b5bdd,_0x4f6626));}function et(_0x343fdc,_0x7fc0b9,_0x27cc79){const _0x3c0a90=_0x1173d9;return _0x343fdc==null?void 0x0:_0x343fdc[_0x3c0a90(0x17f)](_0x26cc98=>_0x127e50(_0x26cc98,_0x7fc0b9,_0x27cc79));}function A(_0xdcc80,_0x1a3421,_0x3e549c){const _0x783992=_0x1173d9;return _0xdcc80==null?void 0x0:_0xdcc80[_0x783992(0x17f)](_0x4f795d=>_0x2e67c7(_0x4f795d,_0x1a3421,_0x3e549c))[_0x783992(0x1a8)](_0x428ea3=>_0x428ea3!=null);}function tt(_0x4adf07,_0x164afe,_0x5caa79){const _0x2fe41e=_0x1173d9;return _0x4adf07==null?void 0x0:_0x4adf07[_0x2fe41e(0x17f)](_0x1e7b83=>_0x324bcb(_0x1e7b83,_0x164afe,_0x5caa79))['filter'](_0x93fa2f=>_0x93fa2f!=null);}function j(_0x155967){const _0x5210a5=_0x1173d9;if(!_0x155967[_0x5210a5(0x1e1)])throw Error(_0x5210a5(0x223));return _0x155967[_0x5210a5(0x1e1)];}function M(_0x102f28){'@babel/helpers - typeof';const _0x447a14=_0x1173d9;return M=typeof Symbol==_0x447a14(0x1a3)&&typeof Symbol[_0x447a14(0x139)]==_0x447a14(0x1d9)?function(_0x364345){return typeof _0x364345;}:function(_0x4dafc9){const _0x427e0f=_0x447a14;return _0x4dafc9&&typeof Symbol==_0x427e0f(0x1a3)&&_0x4dafc9[_0x427e0f(0x14c)]===Symbol&&_0x4dafc9!==Symbol[_0x427e0f(0x175)]?'symbol':typeof _0x4dafc9;},M(_0x102f28);}function nt(_0x28d37c,_0x11ee35){const _0x5d2cdc=_0x1173d9;if(M(_0x28d37c)!=_0x5d2cdc(0x21d)||!_0x28d37c)return _0x28d37c;var _0x19216a=_0x28d37c[Symbol[_0x5d2cdc(0x18c)]];if(_0x19216a!==void 0x0){var _0x49a564=_0x19216a[_0x5d2cdc(0x15d)](_0x28d37c,_0x11ee35||_0x5d2cdc(0x145));if(M(_0x49a564)!='object')return _0x49a564;throw TypeError(_0x5d2cdc(0x16a));}return(_0x11ee35===_0x5d2cdc(0x1b7)?String:Number)(_0x28d37c);}function rt(_0x240fa9){const _0x2b5023=_0x1173d9;var _0x51f7e0=nt(_0x240fa9,'string');return M(_0x51f7e0)==_0x2b5023(0x1d9)?_0x51f7e0:_0x51f7e0+'';}function N(_0x4f3624,_0x463a71,_0x534c3){const _0xa9bdf5=_0x1173d9;return(_0x463a71=rt(_0x463a71))in _0x4f3624?Object[_0xa9bdf5(0x13e)](_0x4f3624,_0x463a71,{'value':_0x534c3,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4f3624[_0x463a71]=_0x534c3,_0x4f3624;}var P=class extends _0x487bea{constructor(..._0x20d47f){const _0x20db20=_0x1173d9;super(..._0x20d47f),N(this,_0x20db20(0x1a1),new Map()),N(this,'_rawResources',new Map()),N(this,_0x20db20(0x148),new Map()),N(this,_0x20db20(0x1f4),new _0x11a859()),N(this,_0x20db20(0x15f),this[_0x20db20(0x1f4)]['asObservable']());}[_0x1173d9(0x215)](_0x40724a,_0x1adf40){const _0x4d28fb=_0x1173d9;var _0x1ee1d9;let _0x26eacf=(_0x1ee1d9=this[_0x4d28fb(0x1a1)][_0x4d28fb(0x137)](_0x40724a))==null?void 0x0:_0x1ee1d9[_0x4d28fb(0x183)][_0x1adf40];return _0x26eacf?_0x13c34f['deepClone'](_0x26eacf):void 0x0;}['getFormulas'](_0x4bd826){const _0x512965=_0x1173d9;var _0x188c85;return _0x13c34f[_0x512965(0x168)](((_0x188c85=this[_0x512965(0x1a1)][_0x512965(0x137)](_0x4bd826))==null?void 0x0:_0x188c85['formulas'])??{});}[_0x1173d9(0x1ce)](_0x2776b7){const _0x3abab9=_0x1173d9;let _0x2b9d23=this[_0x3abab9(0x1a1)][_0x3abab9(0x137)](_0x2776b7);return _0x2b9d23?_0x13c34f[_0x3abab9(0x168)](_0x2b9d23):void 0x0;}[_0x1173d9(0x20e)](_0xc645b1,_0x1a4e50,_0x1ff1ef){const _0x8e7686=_0x1173d9;return this[_0x8e7686(0x169)](_0xc645b1,{[_0x1a4e50]:_0x1ff1ef});}['setResource'](_0x9c3e3e,_0x34b978){const _0xaacac2=_0x1173d9;return this[_0xaacac2(0x148)][_0xaacac2(0x130)](_0x9c3e3e)||!x(_0x34b978)?!0x1:(this[_0xaacac2(0x1a1)]['set'](_0x9c3e3e,_0x13c34f[_0xaacac2(0x168)](_0x34b978)),this[_0xaacac2(0x1f4)][_0xaacac2(0x1d3)]({'unitId':_0x9c3e3e}),!0x0);}[_0x1173d9(0x169)](_0x223608,_0x5f4f83){const _0x576537=_0x1173d9;if(this[_0x576537(0x148)]['has'](_0x223608)||!Object[_0x576537(0x16c)](_0x5f4f83)[_0x576537(0x1e6)]||!x({'schemaVersion':0x1,'formulas':_0x5f4f83}))return!0x1;let _0x3c4b17=this[_0x576537(0x1a1)][_0x576537(0x137)](_0x223608)??b(),_0x3817b3=_0x13c34f['deepClone'](_0x3c4b17);return Object[_0x576537(0x17a)](_0x3817b3[_0x576537(0x183)],_0x13c34f['deepClone'](_0x5f4f83)),this[_0x576537(0x1a1)][_0x576537(0x1be)](_0x223608,_0x3817b3),this['_change$']['next']({'unitId':_0x223608,'rangeIds':Object[_0x576537(0x16c)](_0x5f4f83)}),!0x0;}[_0x1173d9(0x126)](_0x13a24a,_0x68741){const _0x5b2577=_0x1173d9;if(this[_0x5b2577(0x148)][_0x5b2577(0x130)](_0x13a24a))return!0x1;let _0x5bdea0=this[_0x5b2577(0x1a1)][_0x5b2577(0x137)](_0x13a24a);if(!(_0x5bdea0!=null&&_0x5bdea0[_0x5b2577(0x183)][_0x68741]))return!0x1;let _0x48488e=_0x13c34f[_0x5b2577(0x168)](_0x5bdea0);return delete _0x48488e[_0x5b2577(0x183)][_0x68741],this['_resources'][_0x5b2577(0x1be)](_0x13a24a,_0x48488e),this['_change$'][_0x5b2577(0x1d3)]({'unitId':_0x13a24a,'rangeIds':[_0x68741]}),!0x0;}['load'](_0x434b6d,_0x10133d){const _0x294d4b=_0x1173d9;return _0x10133d&&typeof _0x10133d=='object'&&_0x294d4b(0x17e)in _0x10133d&&_0x10133d[_0x294d4b(0x17e)]!==0x1?(this[_0x294d4b(0x17d)](_0x434b6d,_0x10133d,_0x294d4b(0x155)),!0x1):x(_0x10133d)?(this[_0x294d4b(0x1a1)][_0x294d4b(0x1be)](_0x434b6d,_0x13c34f[_0x294d4b(0x168)](_0x10133d)),this['_rawResources']['delete'](_0x434b6d),this[_0x294d4b(0x148)][_0x294d4b(0x18d)](_0x434b6d),this[_0x294d4b(0x1f4)]['next']({'unitId':_0x434b6d}),!0x0):(this[_0x294d4b(0x17d)](_0x434b6d,_0x10133d,_0x294d4b(0x177)),!0x1);}[_0x1173d9(0x1b8)](_0x3bcca9){const _0x2ab0ca=_0x1173d9;let _0x384f69=this[_0x2ab0ca(0x1a1)][_0x2ab0ca(0x137)](_0x3bcca9);return _0x384f69?_0x13c34f['deepClone'](_0x384f69):this[_0x2ab0ca(0x12e)][_0x2ab0ca(0x130)](_0x3bcca9)?_0x13c34f[_0x2ab0ca(0x168)](this[_0x2ab0ca(0x12e)][_0x2ab0ca(0x137)](_0x3bcca9)):b();}['getLoadError'](_0x5b2391){const _0x592b18=_0x1173d9;return this[_0x592b18(0x148)][_0x592b18(0x137)](_0x5b2391);}[_0x1173d9(0x179)](_0x414efb){const _0x287c25=_0x1173d9;this[_0x287c25(0x1a1)][_0x287c25(0x18d)](_0x414efb),this[_0x287c25(0x12e)][_0x287c25(0x18d)](_0x414efb),this[_0x287c25(0x148)][_0x287c25(0x18d)](_0x414efb),this[_0x287c25(0x1f4)][_0x287c25(0x1d3)]({'unitId':_0x414efb});}['dispose'](){const _0x46b309=_0x1173d9;this[_0x46b309(0x1a1)][_0x46b309(0x1db)](),this[_0x46b309(0x12e)][_0x46b309(0x1db)](),this[_0x46b309(0x148)][_0x46b309(0x1db)](),this[_0x46b309(0x1f4)][_0x46b309(0x167)](),super['dispose']();}[_0x1173d9(0x17d)](_0x482e80,_0x1f43d9,_0x52316a){const _0x590f97=_0x1173d9;this['_resources'][_0x590f97(0x18d)](_0x482e80),this[_0x590f97(0x12e)]['set'](_0x482e80,_0x13c34f['deepClone'](_0x1f43d9)),this['_loadErrors'][_0x590f97(0x1be)](_0x482e80,_0x52316a),this[_0x590f97(0x1f4)][_0x590f97(0x1d3)]({'unitId':_0x482e80});}};let it=function(_0x15b801){const _0x4d2126=_0x1173d9;return _0x15b801[_0x4d2126(0x189)]=_0x4d2126(0x13a),_0x15b801[_0x4d2126(0x1d1)]=_0x4d2126(0x1b1),_0x15b801[_0x4d2126(0x197)]=_0x4d2126(0x135),_0x15b801['ERROR']=_0x4d2126(0x15b),_0x15b801;}({});function F(_0x5569f7,_0x51a7c9){return function(_0x3741db,_0x1f9740){_0x51a7c9(_0x3741db,_0x1f9740,_0x5569f7);};}function I(_0x549cd2,_0x6884cd,_0x397a42,_0x3d9818){const _0x39391=_0x1173d9;var _0x1deec1=arguments[_0x39391(0x1e6)],_0x15f210=_0x1deec1<0x3?_0x6884cd:_0x3d9818===null?_0x3d9818=Object[_0x39391(0x180)](_0x6884cd,_0x397a42):_0x3d9818,_0x3dc2c7;if(typeof Reflect==_0x39391(0x21d)&&typeof Reflect[_0x39391(0x18f)]==_0x39391(0x1a3))_0x15f210=Reflect[_0x39391(0x18f)](_0x549cd2,_0x6884cd,_0x397a42,_0x3d9818);else{for(var _0x38af3b=_0x549cd2[_0x39391(0x1e6)]-0x1;_0x38af3b>=0x0;_0x38af3b--)(_0x3dc2c7=_0x549cd2[_0x38af3b])&&(_0x15f210=(_0x1deec1<0x3?_0x3dc2c7(_0x15f210):_0x1deec1>0x3?_0x3dc2c7(_0x6884cd,_0x397a42,_0x15f210):_0x3dc2c7(_0x6884cd,_0x397a42))||_0x15f210);}return _0x1deec1>0x3&&_0x15f210&&Object[_0x39391(0x13e)](_0x6884cd,_0x397a42,_0x15f210),_0x15f210;}let L=class extends _0x487bea{constructor(_0x58380e,_0x5d1fb0,_0x304b61){const _0x331478=_0x1173d9;super(),this[_0x331478(0x20f)]=_0x58380e,this[_0x331478(0x14b)]=_0x5d1fb0,this[_0x331478(0x207)]=_0x304b61,N(this,_0x331478(0x1e3),new Map()),N(this,_0x331478(0x1bc),new Map()),N(this,_0x331478(0x142),new _0x11a859()),N(this,'presentationChanged$',this[_0x331478(0x142)][_0x331478(0x190)]()),this[_0x331478(0x140)](this[_0x331478(0x14b)][_0x331478(0x1cd)][_0x331478(0x1f7)](_0x27b466=>{const _0x2e9f9b=_0x331478;for(let _0x291ecf of Object[_0x2e9f9b(0x1f3)](_0x27b466))for(let _0x436ce1 of Object[_0x2e9f9b(0x1f3)](_0x291ecf))_0x436ce1[_0x2e9f9b(0x146)](_0x2e998c=>this[_0x2e9f9b(0x1f6)](_0x2e998c));}));}[_0x1173d9(0x1fb)](_0x1378f7){const _0x55429c=_0x1173d9;var _0x123b38;let _0xa479cc=_0x1378f7['getUnitId'](),_0x59a805=((_0x123b38=_0x1378f7[_0x55429c(0x160)]()[_0x55429c(0x1e1)])==null||(_0x123b38=_0x123b38[_0x55429c(0x1c9)])==null?void 0x0:_0x123b38[_0x55429c(0x1a8)](w))??[],_0x399e3b=this[_0x55429c(0x20f)]['getFormulas'](_0xa479cc),_0x3cc44e=new Set();for(let _0xb0652 of _0x59a805){let _0x5a3e4e=_0x399e3b[_0xb0652[_0x55429c(0x217)]];_0x5a3e4e&&(_0x3cc44e['add'](R(_0xa479cc,_0xb0652[_0x55429c(0x217)])),this['register']({'unitId':_0xa479cc,'rangeId':_0xb0652[_0x55429c(0x217)]},_0x5a3e4e));}for(let _0x46075c of Array[_0x55429c(0x16f)](this[_0x55429c(0x1e3)][_0x55429c(0x1f3)]()))_0x46075c[_0x55429c(0x224)]===_0xa479cc&&!_0x3cc44e[_0x55429c(0x130)](R(_0x46075c[_0x55429c(0x224)],_0x46075c[_0x55429c(0x217)]))&&this['unregister'](_0x46075c);}[_0x1173d9(0x218)](_0x103abb,_0x4dd879){const _0xe26a40=_0x1173d9;let _0x5abb0a=R(_0x103abb[_0xe26a40(0x224)],_0x103abb[_0xe26a40(0x217)]),_0x79c917=this[_0xe26a40(0x1e3)][_0xe26a40(0x137)](_0x5abb0a),_0x1751be=this['_hostExternalReferenceModel'][_0xe26a40(0x1f0)](_0x103abb[_0xe26a40(0x224)]);if(_0x79c917&&_0x79c917[_0xe26a40(0x216)]['formula']===_0x4dd879['formula']&&_0x79c917[_0xe26a40(0x210)]===_0x1751be){_0x79c917['config']=_0x4dd879;let _0xd24928=_0x79c917[_0xe26a40(0x20c)]?this[_0xe26a40(0x14b)][_0xe26a40(0x1c0)](_0x79c917[_0xe26a40(0x224)],_0x79c917[_0xe26a40(0x224)],_0x79c917[_0xe26a40(0x20c)])??void 0x0:void 0x0;_0x79c917[_0xe26a40(0x208)]=_0xd24928,this[_0xe26a40(0x1bd)](_0x5abb0a,z(_0x4dd879,_0xd24928));return;}_0x79c917!=null&&_0x79c917[_0xe26a40(0x20c)]&&this[_0xe26a40(0x18b)](_0x79c917);let _0x55f8f6={..._0x103abb,'config':_0x4dd879,'referenceRevision':_0x1751be,'presentation':z(_0x4dd879,void 0x0)};if(this['_registrations'][_0xe26a40(0x1be)](_0x5abb0a,_0x55f8f6),!_0x4dd879[_0xe26a40(0x1de)][_0xe26a40(0x1bf)]())return;let _0x3f8b83=this[_0xe26a40(0x14b)]['registerFormulaWithRange'](_0x103abb[_0xe26a40(0x224)],_0x103abb[_0xe26a40(0x224)],_0x4dd879[_0xe26a40(0x1de)],void 0x0,{'rangeId':_0x103abb[_0xe26a40(0x217)]},_0xca11f['DOC'],_0x103abb[_0xe26a40(0x217)]);_0x55f8f6[_0xe26a40(0x20c)]=_0x3f8b83,this[_0xe26a40(0x1bc)][_0xe26a40(0x1be)](_0x3f8b83,_0x5abb0a);}[_0x1173d9(0x13d)](_0x188b01){const _0x17fbdc=_0x1173d9;let _0x2cd7ed=R(_0x188b01[_0x17fbdc(0x224)],_0x188b01['rangeId']),_0x47854c=this[_0x17fbdc(0x1e3)][_0x17fbdc(0x137)](_0x2cd7ed);_0x47854c&&(this[_0x17fbdc(0x18b)](_0x47854c),this[_0x17fbdc(0x1e3)][_0x17fbdc(0x18d)](_0x2cd7ed));}[_0x1173d9(0x191)](_0x22b81e){const _0x32816e=_0x1173d9;for(let _0x4e8676 of Array[_0x32816e(0x16f)](this[_0x32816e(0x1e3)]['values']()))_0x4e8676[_0x32816e(0x224)]===_0x22b81e&&this['unregister'](_0x4e8676);}[_0x1173d9(0x157)](_0x27f04f){const _0x30768e=_0x1173d9;var _0xf21568;return(_0xf21568=this[_0x30768e(0x1e3)][_0x30768e(0x137)](R(_0x27f04f[_0x30768e(0x224)],_0x27f04f[_0x30768e(0x217)])))==null?void 0x0:_0xf21568[_0x30768e(0x18a)];}[_0x1173d9(0x1d6)](_0x5c9362){const _0x489b21=_0x1173d9;let _0x1acd5d=this[_0x489b21(0x1e3)][_0x489b21(0x137)](R(_0x5c9362[_0x489b21(0x224)],_0x5c9362[_0x489b21(0x217)]));return _0x1acd5d?B(_0x1acd5d):void 0x0;}['getRegisteredFormulas'](){const _0xe7678d=_0x1173d9;return Array[_0xe7678d(0x16f)](this[_0xe7678d(0x1e3)][_0xe7678d(0x1f3)](),_0x5d79e4=>({'identity':{'unitId':_0x5d79e4['unitId'],'rangeId':_0x5d79e4[_0xe7678d(0x217)]},'config':_0x5d79e4[_0xe7678d(0x216)],'referenceRevision':_0x5d79e4['referenceRevision'],..._0x5d79e4['liveResult']?{'liveResult':_0x5d79e4['liveResult']}:null}));}[_0x1173d9(0x20b)](){const _0x40bb75=_0x1173d9;for(let _0x10b4f0 of this[_0x40bb75(0x1e3)][_0x40bb75(0x1f3)]())this['_deleteRegistration'](_0x10b4f0);this[_0x40bb75(0x1e3)][_0x40bb75(0x1db)](),this[_0x40bb75(0x1bc)][_0x40bb75(0x1db)](),this[_0x40bb75(0x142)][_0x40bb75(0x167)](),super[_0x40bb75(0x20b)]();}[_0x1173d9(0x1f6)](_0x396c3f){const _0x2e158b=_0x1173d9;let _0x3f0e84=this[_0x2e158b(0x1bc)]['get'](_0x396c3f[_0x2e158b(0x20c)]),_0x5d0da8=_0x3f0e84?this[_0x2e158b(0x1e3)][_0x2e158b(0x137)](_0x3f0e84):void 0x0;_0x3f0e84&&_0x5d0da8&&(_0x5d0da8[_0x2e158b(0x208)]=_0x396c3f,this[_0x2e158b(0x1bd)](_0x3f0e84,z(_0x5d0da8['config'],_0x396c3f)));}[_0x1173d9(0x1bd)](_0x1dfee1,_0x37eb7b){const _0x49ea67=_0x1173d9;var _0x2df312,_0x4589ca;let _0x1d4d8a=this[_0x49ea67(0x1e3)][_0x49ea67(0x137)](_0x1dfee1);if(!_0x1d4d8a||at(_0x1d4d8a[_0x49ea67(0x18a)],_0x37eb7b))return;let _0x3a4b62=_0x1d4d8a[_0x49ea67(0x18a)],_0x38c241=B(_0x1d4d8a);_0x1d4d8a['presentation']=_0x37eb7b,this[_0x49ea67(0x142)][_0x49ea67(0x1d3)]({'unitId':_0x1d4d8a[_0x49ea67(0x224)],'rangeId':_0x1d4d8a[_0x49ea67(0x217)],'presentation':_0x37eb7b,'previousPresentation':_0x3a4b62,'result':B(_0x1d4d8a),'previousResult':{..._0x38c241,..._0x3a4b62,'value':(_0x2df312=_0x3a4b62[_0x49ea67(0x172)])==null?void 0x0:_0x2df312['v'],'valueType':((_0x4589ca=_0x3a4b62[_0x49ea67(0x172)])==null?void 0x0:_0x4589ca['t'])??void 0x0}});}[_0x1173d9(0x18b)](_0x5cd675){const _0x1b216c=_0x1173d9;_0x5cd675[_0x1b216c(0x20c)]&&(this[_0x1b216c(0x14b)]['deleteFormula'](_0x5cd675['unitId'],_0x5cd675[_0x1b216c(0x224)],[_0x5cd675['formulaId']]),this[_0x1b216c(0x1bc)][_0x1b216c(0x18d)](_0x5cd675[_0x1b216c(0x20c)]));}};L=I([F(0x0,_0x41fe0f(P)),F(0x1,_0x41fe0f(_0x78c724)),F(0x2,_0x41fe0f(_0x4e7a8f))],L);function R(_0x754910,_0x1be1cc){return _0x754910+'\x00'+_0x1be1cc;}function z(_0x48ecae,_0x3b7395){const _0x26d181=_0x1173d9;return _0x32521a({'numberFormat':_0x48ecae[_0x26d181(0x1ae)],'lastValue':_0x48ecae['lastValue'],'result':_0x3b7395});}function B(_0x124cfe){const _0x29b190=_0x1173d9;var _0x108f1c,_0x5493c8,_0x4f935c;let _0x64a3a1=_0x124cfe[_0x29b190(0x18a)],_0x1b592c=_0x124cfe[_0x29b190(0x216)]['formula']['trim']()?_0x64a3a1['stale']||_0x64a3a1[_0x29b190(0x172)]==null?_0x29b190(0x1b1):((_0x108f1c=_0x124cfe[_0x29b190(0x208)])==null?void 0x0:_0x108f1c['status'])===_0x208399['ERROR']?_0x29b190(0x15b):_0x29b190(0x135):_0x29b190(0x13a);return{..._0x64a3a1,'status':_0x1b592c,'value':(_0x5493c8=_0x64a3a1[_0x29b190(0x172)])==null?void 0x0:_0x5493c8['v'],'valueType':((_0x4f935c=_0x64a3a1[_0x29b190(0x172)])==null?void 0x0:_0x4f935c['t'])??void 0x0};}function at(_0x34f96f,_0x5963f7){const _0x1a4138=_0x1173d9;var _0x4d411b,_0x3c38c0,_0x1d54ec,_0xae7138;return _0x34f96f[_0x1a4138(0x204)]===_0x5963f7[_0x1a4138(0x204)]&&_0x34f96f[_0x1a4138(0x1f1)]===_0x5963f7[_0x1a4138(0x1f1)]&&_0x34f96f['pattern']===_0x5963f7[_0x1a4138(0x1b6)]&&_0x34f96f['source']===_0x5963f7[_0x1a4138(0x1c4)]&&_0x34f96f['stale']===_0x5963f7[_0x1a4138(0x1bb)]&&((_0x4d411b=_0x34f96f[_0x1a4138(0x172)])==null?void 0x0:_0x4d411b['t'])===((_0x3c38c0=_0x5963f7[_0x1a4138(0x172)])==null?void 0x0:_0x3c38c0['t'])&&Object['is']((_0x1d54ec=_0x34f96f[_0x1a4138(0x172)])==null?void 0x0:_0x1d54ec['v'],(_0xae7138=_0x5963f7[_0x1a4138(0x172)])==null?void 0x0:_0xae7138['v']);}const ot={'id':_0x1173d9(0x1cb),'type':_0x2e2ecf[_0x1173d9(0x1ff)],'handler':(_0x16e684,_0x3a8c76)=>!(_0x3a8c76!=null&&_0x3a8c76[_0x1173d9(0x224)])||!_0x3a8c76['rangeId']||!_0x3a8c76[_0x1173d9(0x216)]?!0x1:_0x16e684[_0x1173d9(0x137)](P)['setFormula'](_0x3a8c76[_0x1173d9(0x224)],_0x3a8c76[_0x1173d9(0x217)],_0x3a8c76[_0x1173d9(0x216)])},st={'id':'docs-formula.mutation.remove-formula','type':_0x2e2ecf['MUTATION'],'handler':(_0x2e6573,_0x36a4be)=>!(_0x36a4be!=null&&_0x36a4be[_0x1173d9(0x224)])||!_0x36a4be['rangeId']?!0x1:_0x2e6573[_0x1173d9(0x137)](P)[_0x1173d9(0x126)](_0x36a4be[_0x1173d9(0x224)],_0x36a4be['rangeId'])},V={'id':'docs-formula.mutation.set-resource','type':_0x2e2ecf[_0x1173d9(0x1ff)],'handler':(_0x38735e,_0x44b450)=>!(_0x44b450!=null&&_0x44b450[_0x1173d9(0x224)])||!_0x44b450['resource']?!0x1:_0x38735e[_0x1173d9(0x137)](P)[_0x1173d9(0x1fe)](_0x44b450[_0x1173d9(0x224)],_0x44b450[_0x1173d9(0x1e7)])},H={'id':_0x1173d9(0x1b5),'type':_0x2e2ecf[_0x1173d9(0x1ff)],'handler':(_0x370656,_0x2dd87f)=>{const _0x30a76b=_0x1173d9;if(!(_0x2dd87f!=null&&_0x2dd87f[_0x30a76b(0x224)])||!_0x2dd87f[_0x30a76b(0x14e)][_0x30a76b(0x1e6)])return!0x1;let _0x1d8d3f=_0x370656['get'](P),_0x5222cf=_0x370656[_0x30a76b(0x137)](_0x4e7a8f),_0x1c9e11=_0x1d8d3f[_0x30a76b(0x1ce)](_0x2dd87f[_0x30a76b(0x224)]);if(!_0x1c9e11)return!0x1;let _0x2b6d31=_0x13c34f[_0x30a76b(0x168)](_0x1c9e11),_0x357efe=!0x1;for(let _0x24441e of _0x2dd87f[_0x30a76b(0x14e)]){var _0x307c47,_0x467736,_0x15b486,_0x547db0;let _0x2d5fba=_0x2b6d31[_0x30a76b(0x183)][_0x24441e['rangeId']];_0x2d5fba&&_0x2d5fba[_0x30a76b(0x1de)]===_0x24441e[_0x30a76b(0x206)]&&((_0x307c47=_0x2d5fba[_0x30a76b(0x1ae)])==null?void 0x0:_0x307c47['pattern'])===_0x24441e[_0x30a76b(0x159)]&&_0x5222cf['getRevision'](_0x2dd87f[_0x30a76b(0x224)])===_0x24441e[_0x30a76b(0x19e)]&&(((_0x467736=_0x2d5fba[_0x30a76b(0x1b4)])==null?void 0x0:_0x467736['v'])!==_0x24441e[_0x30a76b(0x1b4)]['v']||((_0x15b486=_0x2d5fba[_0x30a76b(0x1b4)])==null?void 0x0:_0x15b486['t'])!==_0x24441e[_0x30a76b(0x1b4)]['t']||((_0x547db0=_0x2d5fba[_0x30a76b(0x1b4)])==null?void 0x0:_0x547db0[_0x30a76b(0x1b6)])!==_0x24441e['lastValue']['pattern'])&&(_0x2d5fba[_0x30a76b(0x1b4)]=_0x13c34f['deepClone'](_0x24441e[_0x30a76b(0x1b4)]),_0x357efe=!0x0);}return!_0x357efe||_0x1d8d3f[_0x30a76b(0x1fe)](_0x2dd87f['unitId'],_0x2b6d31);}},U={'id':_0x1173d9(0x1fd),'type':_0x2e2ecf[_0x1173d9(0x226)],'handler':(_0x55e508,_0x30b44e)=>{const _0x1e707f=_0x1173d9;if(!(_0x30b44e!=null&&_0x30b44e['formula']['trim']()))return!0x1;let _0xb72be2=q(_0x55e508,_0x30b44e[_0x1e707f(0x224)],'');if(!_0xb72be2)return!0x1;let _0x1d9be1=ft(_0x30b44e[_0x1e707f(0x193)],_0xb72be2[_0x1e707f(0x1e1)],dt(_0x55e508,_0xb72be2[_0x1e707f(0x224)]));if(!_0x1d9be1)return!0x1;let _0x1cf13b=pt(_0x55e508,_0xb72be2[_0x1e707f(0x224)],_0x30b44e[_0x1e707f(0x1de)],_0x30b44e[_0x1e707f(0x195)]??[]);if(!_0x1cf13b)return!0x1;let _0x5dcfc2=mt(_0xb72be2[_0x1e707f(0x1e1)],_0xb72be2[_0x1e707f(0x1a6)],_0xb72be2[_0x1e707f(0x224)]),_0x5c9355=ht({'documentData':_0xb72be2[_0x1e707f(0x150)],'resource':_0xb72be2[_0x1e707f(0x1e7)],'rangeId':_0x5dcfc2,'config':{'formula':_0x30b44e['formula'],..._0x30b44e['numberFormat']?{'numberFormat':_0x30b44e[_0x1e707f(0x1ae)]}:null},'startOffset':_0x1d9be1[_0x1e707f(0x185)],'endOffset':_0x1d9be1[_0x1e707f(0x186)]});if(!_0x5c9355)return!0x1;let _0x5ed055=_0x18f854(_0x55e508,_0xb72be2[_0x1e707f(0x224)],_0x1cf13b);return!_0x5ed055||!J({'accessor':_0x55e508,'document':_0xb72be2[_0x1e707f(0x133)],'unitId':_0xb72be2['unitId'],'trigger':U['id'],'rangeId':_0x5dcfc2,'previousResource':_0xb72be2[_0x1e707f(0x1e7)],'nextResource':_0x5c9355[_0x1e707f(0x170)],'previousDocumentData':_0xb72be2[_0x1e707f(0x150)],'nextDocumentData':_0x5c9355[_0x1e707f(0x131)],'cursorOffset':_0x5c9355[_0x1e707f(0x1f5)],'externalMutations':_0x5ed055})?!0x1:{'rangeId':_0x5dcfc2,'startOffset':_0x5c9355[_0x1e707f(0x1f5)]-0x1,'endOffset':_0x5c9355[_0x1e707f(0x1f5)]};}},W={'id':'docs-formula.command.update','type':_0x2e2ecf[_0x1173d9(0x226)],'handler':(_0x2e5aa8,_0x46a55f)=>{const _0x5a939c=_0x1173d9;if(!(_0x46a55f!=null&&_0x46a55f['rangeId'])||!_0x46a55f[_0x5a939c(0x1de)][_0x5a939c(0x1bf)]())return!0x1;let _0x1e6ca5=q(_0x2e5aa8,_0x46a55f[_0x5a939c(0x224)],''),_0x5dc827=_0x1e6ca5==null?void 0x0:_0x1e6ca5[_0x5a939c(0x1a6)][_0x5a939c(0x215)](_0x1e6ca5[_0x5a939c(0x224)],_0x46a55f[_0x5a939c(0x217)]),_0x44526d=_0x1e6ca5?T(_0x1e6ca5['documentData'][_0x5a939c(0x1e1)],_0x46a55f[_0x5a939c(0x217)]):void 0x0;if(!_0x1e6ca5||!_0x5dc827||!_0x44526d)return!0x1;let _0x5a42df=pt(_0x2e5aa8,_0x1e6ca5['unitId'],_0x46a55f['formula'],_0x46a55f['externalReferences']??[]);if(!_0x5a42df)return!0x1;let _0x374ac9=_0x18f854(_0x2e5aa8,_0x1e6ca5[_0x5a939c(0x224)],_0x5a42df);if(!_0x374ac9)return!0x1;let _0x4b3431=Ct(_0x1e6ca5[_0x5a939c(0x1e7)]);return _0x4b3431[_0x5a939c(0x183)][_0x46a55f[_0x5a939c(0x217)]]={'formula':_0x46a55f[_0x5a939c(0x1de)],..._0x46a55f['numberFormat']?{'numberFormat':_0x46a55f[_0x5a939c(0x1ae)]}:_0x5dc827['numberFormat']?{'numberFormat':_0x5dc827[_0x5a939c(0x1ae)]}:null},J({'accessor':_0x2e5aa8,'document':_0x1e6ca5[_0x5a939c(0x133)],'unitId':_0x1e6ca5['unitId'],'trigger':W['id'],'rangeId':_0x46a55f[_0x5a939c(0x217)],'previousResource':_0x1e6ca5[_0x5a939c(0x1e7)],'nextResource':_0x4b3431,'cursorOffset':_0x44526d['endIndex']+0x1,'externalMutations':_0x374ac9});}},G={'id':_0x1173d9(0x211),'type':_0x2e2ecf[_0x1173d9(0x226)],'handler':(_0x5235ca,_0xf03935)=>{const _0x1e30d9=_0x1173d9;if(!(_0xf03935!=null&&_0xf03935[_0x1e30d9(0x217)]))return!0x1;let _0x3affbb=q(_0x5235ca,_0xf03935[_0x1e30d9(0x224)],''),_0x4ba2be=_0x3affbb==null?void 0x0:_0x3affbb[_0x1e30d9(0x1a6)][_0x1e30d9(0x215)](_0x3affbb[_0x1e30d9(0x224)],_0xf03935[_0x1e30d9(0x217)]),_0x36e032=_0x3affbb?T(_0x3affbb[_0x1e30d9(0x150)][_0x1e30d9(0x1e1)],_0xf03935[_0x1e30d9(0x217)]):void 0x0;if(!_0x3affbb||!_0x4ba2be||!_0x36e032)return!0x1;let _0x1051b7=Ct(_0x3affbb[_0x1e30d9(0x1e7)]);return _0x1051b7['formulas'][_0xf03935[_0x1e30d9(0x217)]]={..._0x4ba2be,..._0xf03935['numberFormat']?{'numberFormat':_0xf03935[_0x1e30d9(0x1ae)]}:null},_0xf03935[_0x1e30d9(0x1ae)]||delete _0x1051b7['formulas'][_0xf03935[_0x1e30d9(0x217)]][_0x1e30d9(0x1ae)],J({'accessor':_0x5235ca,'document':_0x3affbb[_0x1e30d9(0x133)],'unitId':_0x3affbb[_0x1e30d9(0x224)],'trigger':G['id'],'rangeId':_0xf03935[_0x1e30d9(0x217)],'previousResource':_0x3affbb[_0x1e30d9(0x1e7)],'nextResource':_0x1051b7,'cursorOffset':_0x36e032[_0x1e30d9(0x15e)]+0x1,'externalMutations':{}});}},K={'id':_0x1173d9(0x147),'type':_0x2e2ecf[_0x1173d9(0x226)],'handler':(_0x4c2f6a,_0xe80b8)=>ut(_0x4c2f6a,_0xe80b8,'',K['id'])},ct={'id':_0x1173d9(0x219),'type':_0x2e2ecf[_0x1173d9(0x226)],'handler':(_0x32cbb0,_0x1a5e15)=>ut(_0x32cbb0,_0x1a5e15,(_0x1a5e15==null?void 0x0:_0x1a5e15[_0x1173d9(0x204)])??'',ct['id'])},lt={'id':_0x1173d9(0x1cf),'type':_0x2e2ecf[_0x1173d9(0x226)],'handler':(_0x3463fd,_0x3911c9)=>{const _0x3f37f4=_0x1173d9;if(!(_0x3911c9!=null&&_0x3911c9[_0x3f37f4(0x217)]))return!0x1;let _0x255d2e=q(_0x3463fd,_0x3911c9['unitId'],'');if(!_0x255d2e)return!0x1;let _0x3a9fca=_0x3463fd[_0x3f37f4(0x137)](L)['getResult']({'unitId':_0x255d2e[_0x3f37f4(0x224)],'rangeId':_0x3911c9[_0x3f37f4(0x217)]});return _0x3a9fca?ut(_0x3463fd,_0x3911c9,_0x3a9fca[_0x3f37f4(0x204)],lt['id']):!0x1;}};function ut(_0x32453d,_0x4c8662,_0x43dd8b,_0x577bf6){const _0x5043a2=_0x1173d9;if(!(_0x4c8662!=null&&_0x4c8662[_0x5043a2(0x217)]))return!0x1;let _0x5125f9=q(_0x32453d,_0x4c8662[_0x5043a2(0x224)],'');if(!_0x5125f9)return!0x1;let _0x54c46a=Be({'documentData':_0x5125f9[_0x5043a2(0x150)],'resource':_0x5125f9['resource'],'rangeId':_0x4c8662[_0x5043a2(0x217)],'text':_0x43dd8b});return _0x54c46a?J({'accessor':_0x32453d,'document':_0x5125f9['document'],'unitId':_0x5125f9[_0x5043a2(0x224)],'trigger':_0x577bf6,'rangeId':_0x4c8662['rangeId'],'previousResource':_0x5125f9[_0x5043a2(0x1e7)],'nextResource':_0x54c46a['nextResource'],'previousDocumentData':_0x5125f9[_0x5043a2(0x150)],'nextDocumentData':_0x54c46a['nextDocumentData'],'cursorOffset':_0x54c46a[_0x5043a2(0x1f5)],'externalMutations':{}}):!0x1;}function q(_0x253581,_0x202b1e,_0x19f38c){const _0x259a07=_0x1173d9;if(_0x19f38c)return null;let _0x3a8297=_0x253581['get'](_0x1cb79e),_0x491270=(_0x202b1e?_0x3a8297[_0x259a07(0x171)](_0x202b1e,_0xe966be[_0x259a07(0x129)]):_0x3a8297[_0x259a07(0x19f)](_0xe966be[_0x259a07(0x129)]))??null;if(!_0x491270)return null;let _0x32e89b=_0x491270[_0x259a07(0x160)](),_0x367e6f=_0x32e89b['body'];if(_0x32e89b['disabled']||!_0x367e6f)return null;let _0x255e85=_0x253581['get'](P);return _0x255e85[_0x259a07(0x1a4)](_0x491270[_0x259a07(0x1b0)]())?null:{'document':_0x491270,'body':_0x367e6f,'documentData':_0x32e89b,'model':_0x255e85,'resource':_0x255e85[_0x259a07(0x1ce)](_0x491270[_0x259a07(0x1b0)]())??b(),'unitId':_0x491270[_0x259a07(0x1b0)]()};}function dt(_0x3302e7,_0x421c26){const _0x1bae45=_0x1173d9;var _0x49e753;return(_0x49e753=_0x3302e7[_0x1bae45(0x137)](_0x764d00)[_0x1bae45(0x165)]({'subUnitId':_0x421c26,'unitId':_0x421c26}))==null?void 0x0:_0x49e753[0x0];}function ft(_0x2ab36d,_0x103876,_0x2d3863){const _0x5847b6=_0x1173d9;if((_0x2ab36d==null?void 0x0:_0x2ab36d[_0x5847b6(0x19c)])===_0x5847b6(0x203)){var _0x3b0dd9;let _0x3f0fc3=((_0x3b0dd9=_0x103876[_0x5847b6(0x1e9)])==null?void 0x0:_0x3b0dd9[_0x5847b6(0x1a8)](_0x2d652e=>_0x2d652e[_0x5847b6(0x16b)]===_0x2ab36d[_0x5847b6(0x16b)]))??[];if(_0x3f0fc3[_0x5847b6(0x1e6)]!==0x1)return null;let _0xfef491=_0x3f0fc3[0x0],_0x21a685=_0x882200(_0x103876,_0xfef491),_0x215936=_0xfef491['startIndex']-_0x21a685,_0x33e759=_0x2ab36d[_0x5847b6(0x201)]===_0x5847b6(0x1ed)?_0x215936:_0x2ab36d[_0x5847b6(0x201)];if(!Number[_0x5847b6(0x222)](_0x33e759)||_0x33e759<0x0||_0x33e759>_0x215936)return null;let _0x4794bc=_0x21a685+_0x33e759;return{'startOffset':_0x4794bc,'endOffset':_0x4794bc};}if((_0x2ab36d==null?void 0x0:_0x2ab36d[_0x5847b6(0x19c)])===_0x5847b6(0x1ee))return!Number[_0x5847b6(0x222)](_0x2ab36d[_0x5847b6(0x185)])||!Number['isInteger'](_0x2ab36d[_0x5847b6(0x186)])?null:{'startOffset':Math[_0x5847b6(0x1f2)](_0x2ab36d['startOffset'],_0x2ab36d[_0x5847b6(0x186)]),'endOffset':Math[_0x5847b6(0x221)](_0x2ab36d[_0x5847b6(0x185)],_0x2ab36d[_0x5847b6(0x186)])};let _0x38bde5=(_0x2ab36d==null?void 0x0:_0x2ab36d[_0x5847b6(0x19c)])==='selection'?_0x2ab36d['selection']:_0x2d3863;return!_0x38bde5||_0x38bde5[_0x5847b6(0x209)]?null:{'startOffset':Math['min'](_0x38bde5[_0x5847b6(0x185)],_0x38bde5['endOffset']),'endOffset':Math[_0x5847b6(0x221)](_0x38bde5[_0x5847b6(0x185)],_0x38bde5['endOffset'])};}function pt(_0xe9e5cc,_0x37b34d,_0x15b127,_0x535d94){const _0x1c6340=_0x1173d9;let _0x2eb26f=_0xe9e5cc[_0x1c6340(0x137)](_0x26af78),_0x5a300c=_0x15b127[_0x1c6340(0x1ca)]('=')?_0x15b127[_0x1c6340(0x12a)](0x1):_0x15b127,_0xa8f069=_0x2eb26f[_0x1c6340(0x1aa)](_0x5a300c);if(!_0xa8f069)return null;let _0x48a275=_0xe9e5cc['get'](_0x4e7a8f),_0x9b580b=_0x3d2466({'qualifiers':_0x40128b(_0xa8f069),'explicitReferences':_0x535d94??[],'resolveBinding':_0x54360e=>_0x48a275[_0x1c6340(0x156)](_0x37b34d,_0x54360e)});return _0x9b580b[_0x1c6340(0x15c)]===_0x1c6340(0x1c8)?_0x9b580b[_0x1c6340(0x1e0)]:null;}function mt(_0x306d50,_0x4ceb69,_0x23ab78){const _0x5153a6=_0x1173d9;var _0x4a442f;let _0x4a2756=_0x7ffdf2(0x6);for(;_0x306d50!=null&&(_0x4a442f=_0x306d50[_0x5153a6(0x1c9)])!=null&&_0x4a442f[_0x5153a6(0x184)](_0x3a0bb3=>_0x3a0bb3[_0x5153a6(0x217)]===_0x4a2756)||_0x4ceb69[_0x5153a6(0x215)](_0x23ab78,_0x4a2756);)_0x4a2756=_0x7ffdf2(0x6);return _0x4a2756;}function ht(_0x5393e7){try{return Re(_0x5393e7);}catch(_0x3488ca){if(_0x3488ca instanceof C)return null;throw _0x3488ca;}}function gt(_0x5cb735){const _0x3d4d8e=_0x1173d9;let _0x44714a=_0x5cb735['previousDocumentData']&&_0x5cb735[_0x3d4d8e(0x131)]?vt(_0x5cb735[_0x3d4d8e(0x133)],_0x5cb735[_0x3d4d8e(0x224)],_0x5cb735['previousDocumentData'],_0x5cb735[_0x3d4d8e(0x131)],_0x5cb735[_0x3d4d8e(0x1f5)],_0x5cb735[_0x3d4d8e(0x124)]):null;return _0x5cb735[_0x3d4d8e(0x1ea)]&&_0x5cb735[_0x3d4d8e(0x131)]&&!_0x44714a?null:{'documentRedo':_0x44714a,'resourceRedo':{'id':V['id'],'params':{'unitId':_0x5cb735[_0x3d4d8e(0x224)],'resource':_0x5cb735[_0x3d4d8e(0x170)]}},'resourceUndo':{'id':V['id'],'params':{'unitId':_0x5cb735[_0x3d4d8e(0x224)],'resource':_0x5cb735[_0x3d4d8e(0x227)]}}};}function _0x3422(){const _0x4c8776=['resource','_injector','paragraphs','previousDocumentData','load','604IGoPaU','end','range','COLUMN_START','getRevision','color','min','values','_change$','cursorOffset','_updateFormulaResult','subscribe','start','startIndex','deleteLength','syncUnit','endsWith','docs-formula.command.insert','setResource','MUTATION','externalMutations','position','boolean','paragraph','text','321260wxvMYA','expectedFormula','_hostExternalReferenceModel','liveResult','segmentId','accessor','dispose','formulaId','onStarting','setFormula','_model','referenceRevision','docs-formula.command.set-number-format','identity','add','_univerInstanceService','getFormula','config','rangeId','register','docs-formula.command.replace-with-text','pushUndoRedo','COLUMN_END','_queueSync','object','getRegisteredFormulas','COLUMN_GROUP_START','unitAdded$','max','isInteger','Document\x20main\x20body\x20is\x20required\x20to\x20insert\x20Doc\x20Formula.','unitId','insert','COMMAND','previousResource','trigger','_cacheEligibilityService','removeFormula','5XWvdZH','18ccDtFV','UNIVER_DOC','slice','editOp','customBlocks','univer-docs-formula','_rawResources','_instanceService','has','nextDocumentData','PARAGRAPH','document','parse','success','getBody','get','resources','iterator','empty','DOC_FORMULA_PLUGIN','3095308ZRfaor','unregister','defineProperty','packageName','disposeWithMe','pluginName','_presentationChanged$','BLOCK_START','_configService','default','forEach','docs-formula.command.remove','_loadErrors','_syncUnit','degradeDocumentData','_registrationService','constructor','TABLE_CELL_END','updates','presentationChanged$','documentData','retain','version','every','95896UGqfyy','unsupported-version','resolveBinding','getPresentation','_docFormulaModel','expectedNumberFormat','notifyTextChanged','error','status','call','endIndex','change$','getSnapshot','insertLength','eligible','_pendingUnitIds','syncExecuteCommand','getTextRanges','5951874BvbDxb','complete','deepClone','setFormulas','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','paragraphId','keys','dataStream','TABLE_ROW_START','from','nextResource','getUnit','cell','_service','_config','prototype','collectMutations','invalid-resource','documentRedo','removeUnit','assign','1.2.0','customDecorations','_preserveInvalid','schemaVersion','map','getOwnPropertyDescriptor','SECTION_BREAK','_isDisposed','formulas','some','startOffset','endOffset','params','entries','EMPTY','presentation','_deleteRegistration','toPrimitive','delete','CUSTOM_BLOCK','decorate','asObservable','unregisterUnit','blockRanges','target','7NzuLnk','externalReferences','getAllUnitsForType','SUCCESS','name','columnGroups','replaceDocRanges','CUSTOM','type','data','expectedReferenceRevision','getCurrentUnitOfType','83076JxeGFL','_resources','onCommandExecuted','function','getLoadError','rangeType','model','undoMutation','filter','redoMutation','sequenceNodesBuilder','stringify','wholeEntity','setConfig','numberFormat','_formulaService','getUnitId','pending','properties','sectionBreaks','lastValue','docs-formula.mutation.set-last-values','pattern','string','serialize','2245890TewPuD','number','stale','_formulaKeys','_setPresentation','set','trim','getFormulaValueSync','sort','includes','find','source','isArray','TABLE_CELL_START','@univerjs-pro/docs-formula','resolved','customRanges','startsWith','docs-formula.mutation.set-formula','_commandService','formulaResult$','getResource','docs-formula.command.convert-to-text','resolveFormula','PENDING','registerCommand','next','BLOCK_END','resourceUndo','getResult','registerProvider','tables','symbol','degradeBody','clear','_resourceManagerService','assess','formula','TABLE_END','references','body','textRuns','_registrations','resourceRedo','_syncScheduled','length'];_0x3422=function(){return _0x4c8776;};return _0x3422();}function _t(_0x3d0297,_0x3369da,_0x24997c,_0x2103d8){const _0x3bcb88=_0x1173d9;_0x2103d8[_0x3bcb88(0x21a)]({'id':_0x3d0297[_0x3bcb88(0x124)]+':'+_0x3d0297[_0x3bcb88(0x217)],'unitID':_0x3d0297[_0x3bcb88(0x224)],'redoMutations':[..._0x3d0297[_0x3bcb88(0x200)][_0x3bcb88(0x1a9)]?[_0x3d0297[_0x3bcb88(0x200)][_0x3bcb88(0x1a9)]]:[],..._0x3369da[_0x3bcb88(0x178)]?[_0x3369da[_0x3bcb88(0x178)]]:[],_0x3369da[_0x3bcb88(0x1e4)]],'undoMutations':[_0x3369da[_0x3bcb88(0x1d5)],..._0x24997c?[_0x24997c]:[],..._0x3d0297['externalMutations'][_0x3bcb88(0x1a7)]?[_0x3d0297[_0x3bcb88(0x200)][_0x3bcb88(0x1a7)]]:[]]});}function J(_0x4eb009){const _0x554d12=_0x1173d9;let _0x34b177=_0x4eb009[_0x554d12(0x20a)][_0x554d12(0x137)](_0x170d7c),_0x92f7af=_0x4eb009[_0x554d12(0x20a)][_0x554d12(0x137)](_0x4c8196),_0x478d64=_0x4eb009['accessor']['get'](_0x764d00),_0x46886c=gt(_0x4eb009);if(!_0x46886c)return!0x1;let _0x1e10b1=!0x1,_0x4884ae=null,_0x26678b=!0x1;try{if(_0x4eb009['externalMutations'][_0x554d12(0x1a9)]){if(!_0x34b177['syncExecuteCommand'](_0x4eb009[_0x554d12(0x200)]['redoMutation']['id'],_0x4eb009[_0x554d12(0x200)]['redoMutation'][_0x554d12(0x187)]))return!0x1;_0x1e10b1=!0x0;}if(_0x46886c['documentRedo']){let _0x2d0fec=_0x34b177[_0x554d12(0x164)](_0x46886c[_0x554d12(0x178)]['id'],_0x46886c[_0x554d12(0x178)][_0x554d12(0x187)]);if(!_0x2d0fec)return bt(_0x34b177,_0x4eb009[_0x554d12(0x200)],_0x1e10b1),!0x1;_0x4884ae={'id':_0x3f9ca3['id'],'params':{..._0x2d0fec,'noHistory':!0x0,'noNeedSetTextRange':!0x0,'segmentId':''}};}if(!_0x34b177['syncExecuteCommand'](_0x46886c['resourceRedo']['id'],_0x46886c['resourceRedo']['params']))return yt(_0x34b177,_0x4884ae),bt(_0x34b177,_0x4eb009[_0x554d12(0x200)],_0x1e10b1),!0x1;_0x26678b=!0x0,_t(_0x4eb009,_0x46886c,_0x4884ae,_0x92f7af);}catch(_0x3000ee){throw _0x26678b&&_0x34b177[_0x554d12(0x164)](_0x46886c[_0x554d12(0x1d5)]['id'],_0x46886c['resourceUndo'][_0x554d12(0x187)]),yt(_0x34b177,_0x4884ae),bt(_0x34b177,_0x4eb009['externalMutations'],_0x1e10b1),_0x3000ee;}return _0x478d64[_0x554d12(0x19a)]([{'startOffset':_0x4eb009['cursorOffset'],'endOffset':_0x4eb009['cursorOffset'],'segmentId':''}],{'unitId':_0x4eb009[_0x554d12(0x224)],'subUnitId':_0x4eb009['unitId']},!0x1,{[_0xc6b882]:!0x0}),!0x0;}function vt(_0x48bf7d,_0x3a5a37,_0xa8e896,_0x5bf202,_0x4edb62,_0xabe66a){let _0x39ea09=xt(_0xa8e896,_0x5bf202,_0x2a5420(_0x48bf7d,''));return _0x39ea09?{'id':_0x3f9ca3['id'],'params':{'unitId':_0x3a5a37,'actions':_0x39ea09,'segmentId':'','textRanges':[{'startOffset':_0x4edb62,'endOffset':_0x4edb62,'collapsed':!0x0,'segmentId':''}],'isEditing':!0x1,'noHistory':!0x0,'noNeedSetTextRange':!0x0,'trigger':_0xabe66a}}:null;}function yt(_0x4758ea,_0x118db2){const _0x4f8120=_0x1173d9;_0x118db2&&_0x4758ea[_0x4f8120(0x164)](_0x118db2['id'],_0x118db2[_0x4f8120(0x187)]);}function bt(_0x1205c7,_0x8e95d3,_0xc43223){const _0x4ac44b=_0x1173d9;_0xc43223&&_0x8e95d3[_0x4ac44b(0x1a7)]&&_0x1205c7['syncExecuteCommand'](_0x8e95d3[_0x4ac44b(0x1a7)]['id'],_0x8e95d3[_0x4ac44b(0x1a7)]['params']);}function xt(_0x15049e,_0x18f579,_0x18d815){const _0x3eb0ca=_0x1173d9;let _0x4d4c35=_0x15049e[_0x3eb0ca(0x1e1)],_0x2d3188=_0x18f579[_0x3eb0ca(0x1e1)],_0x20c769=St(_0x4d4c35==null?void 0x0:_0x4d4c35[_0x3eb0ca(0x16d)],_0x2d3188==null?void 0x0:_0x2d3188[_0x3eb0ca(0x16d)]);if(!_0x20c769||!_0x2d3188)return null;let _0xa4a2ff=new _0x2dfabc();return _0xa4a2ff[_0x3eb0ca(0x151)](_0x20c769[_0x3eb0ca(0x1f8)]),_0x20c769['insertLength']>0x0&&_0xa4a2ff[_0x3eb0ca(0x225)](_0x20c769[_0x3eb0ca(0x161)],_0x4b0522(_0x2d3188,_0x20c769[_0x3eb0ca(0x1f8)],_0x20c769[_0x3eb0ca(0x1f8)]+_0x20c769[_0x3eb0ca(0x161)],!0x1)),_0x20c769[_0x3eb0ca(0x1fa)]>0x0&&_0xa4a2ff[_0x3eb0ca(0x18d)](_0x20c769[_0x3eb0ca(0x1fa)]),_0x534e11['getInstance']()[_0x3eb0ca(0x12b)](_0xa4a2ff[_0x3eb0ca(0x1b8)](),_0x18d815);}function St(_0x2da270,_0x5677aa){const _0x79a244=_0x1173d9;if(_0x2da270==null||_0x5677aa==null||_0x2da270===_0x5677aa)return null;let _0x51af1e=0x0;for(;_0x51af1e<_0x2da270[_0x79a244(0x1e6)]&&_0x51af1e<_0x5677aa[_0x79a244(0x1e6)]&&_0x2da270[_0x51af1e]===_0x5677aa[_0x51af1e];)_0x51af1e+=0x1;let _0x1ce552=_0x2da270[_0x79a244(0x1e6)],_0x54d8ff=_0x5677aa[_0x79a244(0x1e6)];for(;_0x1ce552>_0x51af1e&&_0x54d8ff>_0x51af1e&&_0x2da270[_0x1ce552-0x1]===_0x5677aa[_0x54d8ff-0x1];)--_0x1ce552,--_0x54d8ff;return{'start':_0x51af1e,'deleteLength':_0x1ce552-_0x51af1e,'insertLength':_0x54d8ff-_0x51af1e};}function Ct(_0x254afd){const _0x15ada6=_0x1173d9;return{'schemaVersion':0x1,'formulas':Object['fromEntries'](Object[_0x15ada6(0x188)](_0x254afd[_0x15ada6(0x183)])['map'](([_0x136fb5,_0x3244f0])=>[_0x136fb5,{..._0x3244f0,..._0x3244f0[_0x15ada6(0x1ae)]?{'numberFormat':{..._0x3244f0['numberFormat']}}:null,..._0x3244f0[_0x15ada6(0x1b4)]?{'lastValue':{..._0x3244f0[_0x15ada6(0x1b4)]}}:null}]))};}let Y=class extends _0x487bea{constructor(_0x3cfcc8,_0x28010e,_0x395821,_0x310242){const _0x2e64a6=_0x1173d9;super(),this['_instanceService']=_0x3cfcc8,this[_0x2e64a6(0x1cc)]=_0x28010e,this[_0x2e64a6(0x20f)]=_0x395821,this[_0x2e64a6(0x173)]=_0x310242,N(this,_0x2e64a6(0x163),new Set()),N(this,_0x2e64a6(0x1e5),!0x1),N(this,_0x2e64a6(0x182),!0x1),this[_0x2e64a6(0x12f)][_0x2e64a6(0x196)](_0xe966be[_0x2e64a6(0x129)])[_0x2e64a6(0x146)](_0x4c8f31=>this[_0x2e64a6(0x173)]['syncUnit'](_0x4c8f31)),this[_0x2e64a6(0x140)](this[_0x2e64a6(0x20f)]['change$'][_0x2e64a6(0x1f7)](({unitId:_0xdb5f91})=>this[_0x2e64a6(0x149)](_0xdb5f91))),this['disposeWithMe'](this[_0x2e64a6(0x12f)][_0x2e64a6(0x220)][_0x2e64a6(0x1f7)](({unit:_0x661d02})=>{const _0x11b60b=_0x2e64a6;_0x661d02[_0x11b60b(0x19c)]===_0xe966be[_0x11b60b(0x129)]&&this[_0x11b60b(0x21c)](_0x661d02[_0x11b60b(0x1b0)]());})),this['disposeWithMe'](this[_0x2e64a6(0x12f)]['unitDisposed$'][_0x2e64a6(0x1f7)](_0x11c08d=>{const _0x1e715b=_0x2e64a6;this[_0x1e715b(0x173)][_0x1e715b(0x191)](_0x11c08d[_0x1e715b(0x1b0)]());})),this[_0x2e64a6(0x140)](this[_0x2e64a6(0x1cc)][_0x2e64a6(0x1a2)](_0x1d52f7=>{const _0x56a7e2=_0x2e64a6;if(_0x1d52f7['id']===_0x3f9ca3['id']&&wt(_0x1d52f7[_0x56a7e2(0x187)])){let _0xe7b0d3=_0x1d52f7['params'];_0xe7b0d3[_0x56a7e2(0x209)]||this['_syncUnit'](_0xe7b0d3[_0x56a7e2(0x224)]);}}));}[_0x1173d9(0x20b)](){const _0x406e13=_0x1173d9;this[_0x406e13(0x182)]=!0x0,super[_0x406e13(0x20b)]();}['_queueSync'](_0x5dff50){const _0x4dc032=_0x1173d9;this[_0x4dc032(0x163)][_0x4dc032(0x213)](_0x5dff50),!this[_0x4dc032(0x1e5)]&&(this['_syncScheduled']=!0x0,queueMicrotask(()=>{const _0xbca49c=_0x4dc032;if(this[_0xbca49c(0x1e5)]=!0x1,this[_0xbca49c(0x182)])return;let _0x4682ee=Array[_0xbca49c(0x16f)](this[_0xbca49c(0x163)]);this[_0xbca49c(0x163)][_0xbca49c(0x1db)](),_0x4682ee[_0xbca49c(0x146)](_0x3dd17c=>this['_syncUnit'](_0x3dd17c));}));}[_0x1173d9(0x149)](_0x14351a){const _0x2834dc=_0x1173d9;let _0x2b6464=this['_instanceService'][_0x2834dc(0x171)](_0x14351a,_0xe966be[_0x2834dc(0x129)]);_0x2b6464&&this[_0x2834dc(0x173)][_0x2834dc(0x1fb)](_0x2b6464);}};Y=I([F(0x0,_0x1cb79e),F(0x1,_0x170d7c),F(0x2,_0x41fe0f(P)),F(0x3,_0x41fe0f(L))],Y);function wt(_0x54ac4b){const _0x2945b7=_0x1173d9;return typeof _0x54ac4b==_0x2945b7(0x21d)&&!!_0x54ac4b&&_0x2945b7(0x224)in _0x54ac4b&&typeof _0x54ac4b[_0x2945b7(0x224)]=='string'&&(!('segmentId'in _0x54ac4b)||_0x54ac4b['segmentId']===void 0x0||typeof _0x54ac4b[_0x2945b7(0x209)]==_0x2945b7(0x1b7));}let X=class extends _0x487bea{constructor(_0x1911a1,_0x2c27cd){const _0x350c54=_0x1173d9;super(),this[_0x350c54(0x1dc)]=_0x1911a1,this[_0x350c54(0x158)]=_0x2c27cd,this[_0x350c54(0x140)](this['_resourceManagerService']['registerPluginResource']({'pluginName':y,'businesses':[_0xe966be[_0x350c54(0x129)]],'toJson':_0x14d3ec=>JSON[_0x350c54(0x1ab)](this['_docFormulaModel'][_0x350c54(0x1b8)](_0x14d3ec)),'parseJson':_0x149cdf=>JSON[_0x350c54(0x134)](_0x149cdf),'onLoad':(_0x43465b,_0x563f6c)=>{const _0x3cb6af=_0x350c54;this[_0x3cb6af(0x158)][_0x3cb6af(0x1eb)](_0x43465b,_0x563f6c);},'onUnLoad':_0x343176=>this['_docFormulaModel']['removeUnit'](_0x343176)}));}};X=I([F(0x0,_0x39a957),F(0x1,_0x41fe0f(P))],X);var Tt=_0x1173d9(0x1c7),Et=_0x1173d9(0x17b);const Dt={};let Z=class extends _0x487bea{constructor(_0x40b010,_0x530121,_0x2e5301){const _0x293eeb=_0x1173d9;super(),this[_0x293eeb(0x214)]=_0x40b010,this['_formulaService']=_0x530121,this[_0x293eeb(0x140)](_0x2e5301[_0x293eeb(0x218)]({'resolve':(_0x4bca58,_0x14c198)=>{const _0x7b010f=_0x293eeb;var _0x46d525;return((_0x46d525=_0x14c198[_0x7b010f(0x1c9)])==null?void 0x0:_0x46d525[_0x7b010f(0x1a8)](w)[_0x7b010f(0x17f)](_0x2b0310=>({'startOffset':_0x2b0310[_0x7b010f(0x1f9)],'endOffset':_0x2b0310[_0x7b010f(0x15e)]+0x1,'text':this[_0x7b010f(0x1d0)](_0x4bca58,_0x2b0310[_0x7b010f(0x217)])})))??[];}})),this[_0x293eeb(0x140)](this['_formulaService'][_0x293eeb(0x14f)]['subscribe'](({unitId:_0x203a35})=>{const _0x24f01f=_0x293eeb;_0x2e5301[_0x24f01f(0x15a)](_0x203a35);}));}[_0x1173d9(0x1d0)](_0x258f71,_0x5af4c2){const _0xd28414=_0x1173d9;var _0x32d4f3;return((_0x32d4f3=this[_0xd28414(0x1af)][_0xd28414(0x1d6)]({'unitId':_0x258f71,'rangeId':_0x5af4c2}))==null?void 0x0:_0x32d4f3[_0xd28414(0x204)])??'';}['resolveText'](_0x3b4b3c,_0x2f656c,_0x4c264e){const _0x4cdc2f=_0x1173d9;var _0x2351bc;let _0x3fcec0=this[_0x4cdc2f(0x214)][_0x4cdc2f(0x171)](_0x3b4b3c,_0xe966be[_0x4cdc2f(0x129)]),_0x4b2e5e=_0x3fcec0==null?void 0x0:_0x3fcec0[_0x4cdc2f(0x136)]();if(!_0x4b2e5e)return'';let _0x1ba27d=_0x4b2e5e[_0x4cdc2f(0x16d)][_0x4cdc2f(0x12a)](_0x2f656c,_0x4c264e),_0x50c4a2=((_0x2351bc=_0x4b2e5e[_0x4cdc2f(0x1c9)])==null?void 0x0:_0x2351bc['filter'](_0xae838b=>w(_0xae838b)&&_0xae838b[_0x4cdc2f(0x1f9)]>=_0x2f656c&&_0xae838b[_0x4cdc2f(0x15e)]<_0x4c264e)[_0x4cdc2f(0x1c1)]((_0x2cb657,_0x53ea5d)=>_0x53ea5d[_0x4cdc2f(0x1f9)]-_0x2cb657['startIndex']))??[];for(let _0x2b28bc of _0x50c4a2){let _0x4ccd6e=_0x2b28bc[_0x4cdc2f(0x1f9)]-_0x2f656c,_0xce07b9=_0x2b28bc[_0x4cdc2f(0x15e)]-_0x2f656c+0x1;_0x1ba27d=''+_0x1ba27d[_0x4cdc2f(0x12a)](0x0,_0x4ccd6e)+this[_0x4cdc2f(0x1d0)](_0x3b4b3c,_0x2b28bc[_0x4cdc2f(0x217)])+_0x1ba27d[_0x4cdc2f(0x12a)](_0xce07b9);}return _0x1ba27d;}[_0x1173d9(0x14a)](_0x4881a3){return Ot(_0x4881a3);}[_0x1173d9(0x1da)](_0x97f622,_0x20c977,_0x1fd7cf={}){const _0x2d6d64=_0x1173d9;var _0x4b4994;return Ve({'id':_0x97f622,'body':_0x20c977,'documentStyle':{}},(((_0x4b4994=_0x20c977[_0x2d6d64(0x1c9)])==null?void 0x0:_0x4b4994[_0x2d6d64(0x1a8)](w))??[])[_0x2d6d64(0x17f)](_0x196365=>({'rangeId':_0x196365[_0x2d6d64(0x217)],'text':_0x1fd7cf[_0x196365[_0x2d6d64(0x217)]]??this[_0x2d6d64(0x1d0)](_0x97f622,_0x196365[_0x2d6d64(0x217)])})))['body']??{'dataStream':''};}};Z=I([F(0x0,_0x1cb79e),F(0x1,_0x41fe0f(L)),F(0x2,_0x41fe0f(_0x325458))],Z);function Ot(_0x519f12){const _0x380a87=_0x1173d9;var _0x49b484,_0x37d529;let _0xa28baf=kt(_0x519f12),_0x107ce3=Ve(_0x519f12,(((_0x49b484=_0x519f12[_0x380a87(0x1e1)])==null||(_0x49b484=_0x49b484[_0x380a87(0x1c9)])==null?void 0x0:_0x49b484['filter'](w))??[])[_0x380a87(0x17f)](_0x1f06ad=>({'rangeId':_0x1f06ad[_0x380a87(0x217)],'text':At(_0xa28baf==null?void 0x0:_0xa28baf[_0x380a87(0x183)][_0x1f06ad[_0x380a87(0x217)]])})));return _0x107ce3['resources']=(_0x37d529=_0x107ce3[_0x380a87(0x138)])==null?void 0x0:_0x37d529[_0x380a87(0x1a8)](_0x139adf=>_0x139adf[_0x380a87(0x198)]!==y),_0x107ce3;}function kt(_0x39a30a){const _0x2795f6=_0x1173d9;var _0x2ef6b8;let _0x477e3d=(_0x2ef6b8=_0x39a30a[_0x2795f6(0x138)])==null||(_0x2ef6b8=_0x2ef6b8[_0x2795f6(0x1c3)](_0x572050=>_0x572050[_0x2795f6(0x198)]===_0x2795f6(0x13b)))==null?void 0x0:_0x2ef6b8[_0x2795f6(0x19d)];if(_0x477e3d)try{let _0x58517f=JSON[_0x2795f6(0x134)](_0x477e3d);return x(_0x58517f)?_0x58517f:void 0x0;}catch{return;}}function At(_0x31d04c){const _0x11e419=_0x1173d9;return _0x31d04c?_0x32521a({'lastValue':_0x31d04c[_0x11e419(0x1b4)],'numberFormat':_0x31d04c[_0x11e419(0x1ae)]})[_0x11e419(0x204)]:'';}let Q=class extends _0x487bea{constructor(_0x3dbb03,_0x49c850,_0x23d8c8){const _0x5dae5d=_0x1173d9;super(),this[_0x5dae5d(0x1af)]=_0x3dbb03,this[_0x5dae5d(0x125)]=_0x49c850,this['disposeWithMe'](_0x23d8c8[_0x5dae5d(0x1d7)](this));}[_0x1173d9(0x176)](_0x3387a5){const _0x2cd3ba=_0x1173d9;let _0x511e21=new Map();for(let _0x3a8e50 of this[_0x2cd3ba(0x1af)][_0x2cd3ba(0x21e)]()){var _0x3fbb0d;if(!this[_0x2cd3ba(0x125)][_0x2cd3ba(0x1dd)](_0x3a8e50[_0x2cd3ba(0x216)]['formula'],_0x3a8e50[_0x2cd3ba(0x208)])[_0x2cd3ba(0x162)])continue;let _0x11c2b1=_0x3d55cd(_0x3a8e50['liveResult']),_0x419ecb=_0x11c2b1?_0x24052f(_0x11c2b1):null;if(!_0x419ecb||jt(_0x3a8e50[_0x2cd3ba(0x216)][_0x2cd3ba(0x1b4)],_0x419ecb))continue;let _0x23dffa=_0x511e21[_0x2cd3ba(0x137)](_0x3a8e50[_0x2cd3ba(0x212)][_0x2cd3ba(0x224)])??[];_0x23dffa['push']({'rangeId':_0x3a8e50[_0x2cd3ba(0x212)]['rangeId'],'expectedFormula':_0x3a8e50[_0x2cd3ba(0x216)][_0x2cd3ba(0x1de)],'expectedNumberFormat':(_0x3fbb0d=_0x3a8e50[_0x2cd3ba(0x216)]['numberFormat'])==null?void 0x0:_0x3fbb0d[_0x2cd3ba(0x1b6)],'expectedReferenceRevision':_0x3a8e50['referenceRevision'],'lastValue':_0x419ecb}),_0x511e21['set'](_0x3a8e50['identity'][_0x2cd3ba(0x224)],_0x23dffa);}return Array['from'](_0x511e21,([_0x26ed44,_0x48b95e])=>({'id':H['id'],'params':{'unitId':_0x26ed44,'updates':_0x48b95e}}));}};Q=I([F(0x0,_0x41fe0f(L)),F(0x1,_0x41fe0f(_0x4ef013)),F(0x2,_0x41fe0f(_0x29264c))],Q);function jt(_0x49249a,_0x5412fd){const _0x497c30=_0x1173d9;return(_0x49249a==null?void 0x0:_0x49249a['v'])===_0x5412fd['v']&&(_0x49249a==null?void 0x0:_0x49249a['t'])===_0x5412fd['t']&&(_0x49249a==null?void 0x0:_0x49249a[_0x497c30(0x1b6)])===_0x5412fd[_0x497c30(0x1b6)];}let $=class extends _0x31da3e{constructor(_0x349e75=Dt,_0x2a4852,_0x2d7a28,_0x42a1b3){const _0x587a79=_0x1173d9;super(),this[_0x587a79(0x174)]=_0x349e75,this[_0x587a79(0x1e8)]=_0x2a4852,this[_0x587a79(0x1cc)]=_0x2d7a28,this[_0x587a79(0x144)]=_0x42a1b3;let {..._0x53be4e}=_0x1b50a3({},Dt,this[_0x587a79(0x174)]);this['_configService'][_0x587a79(0x1ad)]('docs-formula.config',_0x53be4e);}[_0x1173d9(0x20d)](){const _0x17f315=_0x1173d9;this[_0x17f315(0x1e8)][_0x17f315(0x213)]([P]),this[_0x17f315(0x1e8)][_0x17f315(0x213)]([L]),this[_0x17f315(0x1e8)][_0x17f315(0x213)]([X]),this[_0x17f315(0x1e8)][_0x17f315(0x213)]([Y]),this[_0x17f315(0x1e8)][_0x17f315(0x213)]([Q]),this[_0x17f315(0x1e8)][_0x17f315(0x213)]([Z]),_0x218854(this[_0x17f315(0x1e8)],[[P],[X],[Y],[Q],[Z]]),[ot,st,V,H,U,W,G,K,ct,lt]['forEach'](_0x1bff6f=>this[_0x17f315(0x140)](this[_0x17f315(0x1cc)][_0x17f315(0x1d2)](_0x1bff6f)));}};N($,_0x1173d9(0x141),y),N($,_0x1173d9(0x13f),Tt),N($,_0x1173d9(0x152),Et),N($,'type',_0xe966be[_0x1173d9(0x129)]),$=I([_0x192577(_0x221e8d,_0x2ac530,_0x48ceb4),F(0x1,_0x41fe0f(_0x4a690a)),F(0x2,_0x170d7c),F(0x3,_0x335e00)],$);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/facade.js CHANGED
@@ -1 +1 @@
1
- var _0x3a3a0c=_0x5a9d;(function(_0x36e180,_0x4e5afb){var _0x2e221c=_0x5a9d,_0x406648=_0x36e180();while(!![]){try{var _0x56043d=parseInt(_0x2e221c(0xeb))/0x1+-parseInt(_0x2e221c(0xef))/0x2+parseInt(_0x2e221c(0x127))/0x3+-parseInt(_0x2e221c(0x130))/0x4+-parseInt(_0x2e221c(0x11b))/0x5*(-parseInt(_0x2e221c(0x101))/0x6)+parseInt(_0x2e221c(0xf1))/0x7*(parseInt(_0x2e221c(0x133))/0x8)+parseInt(_0x2e221c(0x10d))/0x9*(-parseInt(_0x2e221c(0x12d))/0xa);if(_0x56043d===_0x4e5afb)break;else _0x406648['push'](_0x406648['shift']());}catch(_0x1fef7f){_0x406648['push'](_0x406648['shift']());}}}(_0x5938,0xd995f));import{ConvertDocFormulaToTextCommand as _0x2322c8,DocFormulaDisplayTextService as _0x153131,DocFormulaModel as _0x3de5b9,DocFormulaService as _0x5853dc,InsertDocFormulaCommand as _0x1dca28,RemoveDocFormulaCommand as _0x218400,ReplaceDocFormulaWithTextCommand as _0x1ecc26,SetDocFormulaNumberFormatCommand as _0x5f0249,UpdateDocFormulaCommand as _0x449523,isDocFormulaRange as _0x386fc6}from'@univerjs-pro/docs-formula';import{ICommandService as _0x24b4b7,IResourceLoaderService as _0x35fc3b,IUniverInstanceService as _0x462ecd,Inject as _0x54ace0,UniverInstanceType as _0x4e1ebb}from'@univerjs/core';import{FDocument as _0x4e2d9c,FDocumentParagraph as _0x524dda,FDocumentTextRange as _0x5ab49e}from'@univerjs/docs/facade';function v(_0x30c4b5,_0x515b4f){return function(_0x3d7031,_0xd0de41){_0x515b4f(_0x3d7031,_0xd0de41,_0x30c4b5);};}function y(_0x200c5c,_0x3db804,_0x141a83,_0x2ea822){var _0x505e78=_0x5a9d,_0x1d383d=arguments[_0x505e78(0xfa)],_0x3c969f=_0x1d383d<0x3?_0x3db804:_0x2ea822===null?_0x2ea822=Object[_0x505e78(0x129)](_0x3db804,_0x141a83):_0x2ea822,_0x55c476;if(typeof Reflect==_0x505e78(0xf2)&&typeof Reflect[_0x505e78(0x107)]==_0x505e78(0xf4))_0x3c969f=Reflect['decorate'](_0x200c5c,_0x3db804,_0x141a83,_0x2ea822);else{for(var _0x1c27d6=_0x200c5c[_0x505e78(0xfa)]-0x1;_0x1c27d6>=0x0;_0x1c27d6--)(_0x55c476=_0x200c5c[_0x1c27d6])&&(_0x3c969f=(_0x1d383d<0x3?_0x55c476(_0x3c969f):_0x1d383d>0x3?_0x55c476(_0x3db804,_0x141a83,_0x3c969f):_0x55c476(_0x3db804,_0x141a83))||_0x3c969f);}return _0x1d383d>0x3&&_0x3c969f&&Object['defineProperty'](_0x3db804,_0x141a83,_0x3c969f),_0x3c969f;}let b=class{constructor(_0x5c2f94,_0xbd171,_0xa7dfef,_0x3bb6a8,_0x5e9939,_0x1f1dcd){var _0x9dd27d=_0x5a9d;this[_0x9dd27d(0x10f)]=_0x5c2f94,this['_rangeId']=_0xbd171,this[_0x9dd27d(0x110)]=_0xa7dfef,this[_0x9dd27d(0x132)]=_0x3bb6a8,this[_0x9dd27d(0x116)]=_0x5e9939,this[_0x9dd27d(0x123)]=_0x1f1dcd;}[_0x3a3a0c(0x12b)](){var _0x595cea=_0x3a3a0c;return this[_0x595cea(0x105)];}[_0x3a3a0c(0x134)](){var _0x35a2b6=_0x3a3a0c;let _0x4c41ab=this['_getCustomRange']();return _0x4c41ab?{'endOffset':_0x4c41ab[_0x35a2b6(0x119)]+0x1,'rangeId':_0x4c41ab[_0x35a2b6(0x135)],'startOffset':_0x4c41ab[_0x35a2b6(0xfe)]}:null;}[_0x3a3a0c(0xed)](){var _0x3a9f67=_0x3a3a0c,_0x12743e;return((_0x12743e=this[_0x3a9f67(0x132)][_0x3a9f67(0xed)](this['_unitId'],this[_0x3a9f67(0x105)]))==null?void 0x0:_0x12743e['formula'])??'';}[_0x3a3a0c(0x11f)](){var _0x35a435=_0x3a3a0c;return this[_0x35a435(0x132)][_0x35a435(0xed)](this[_0x35a435(0x10f)],this[_0x35a435(0x105)])??null;}['getResult'](){var _0xf5afc2=_0x3a3a0c;return this[_0xf5afc2(0x116)][_0xf5afc2(0x112)]({'unitId':this['_unitId'],'rangeId':this['_rangeId']})??null;}['describe'](){var _0x1708a8=_0x3a3a0c;let _0x25e384=this[_0x1708a8(0x134)](),_0x138f39=this[_0x1708a8(0x11f)](),_0x348359=this[_0x1708a8(0x112)]();return!_0x25e384||!_0x138f39||!_0x348359?null:{..._0x25e384,'config':_0x138f39,'formula':_0x138f39[_0x1708a8(0x118)],'result':_0x348359,'type':_0x1708a8(0x118)};}[_0x3a3a0c(0xf9)](_0x187582){var _0x580aaf=_0x3a3a0c;return this[_0x580aaf(0x110)][_0x580aaf(0xf6)](_0x449523['id'],{'externalReferences':_0x187582['externalReferences'],'formula':_0x187582['formula'],'numberFormat':_0x187582[_0x580aaf(0xfc)],'rangeId':this[_0x580aaf(0x105)],'unitId':this[_0x580aaf(0x10f)]});}[_0x3a3a0c(0x113)](_0x52457e){var _0x1da569=_0x3a3a0c;return this[_0x1da569(0x110)][_0x1da569(0xf6)](_0x5f0249['id'],{'numberFormat':_0x52457e,'rangeId':this[_0x1da569(0x105)],'unitId':this[_0x1da569(0x10f)]});}[_0x3a3a0c(0x128)](){var _0x476d4d=_0x3a3a0c;return this[_0x476d4d(0x110)][_0x476d4d(0xf6)](_0x218400['id'],{'rangeId':this[_0x476d4d(0x105)],'unitId':this[_0x476d4d(0x10f)]});}['replaceWithText'](_0x4b5eb1){var _0x3e03f3=_0x3a3a0c;return this[_0x3e03f3(0x110)][_0x3e03f3(0xf6)](_0x1ecc26['id'],{'rangeId':this[_0x3e03f3(0x105)],'text':_0x4b5eb1,'unitId':this[_0x3e03f3(0x10f)]});}[_0x3a3a0c(0x102)](){var _0xe685ff=_0x3a3a0c;return this['_commandService'][_0xe685ff(0xf6)](_0x2322c8['id'],{'rangeId':this[_0xe685ff(0x105)],'unitId':this[_0xe685ff(0x10f)]});}[_0x3a3a0c(0x136)](){var _0x1f6817=_0x3a3a0c,_0x4faa91;let _0x1c8157=this[_0x1f6817(0x123)]['getUnit'](this[_0x1f6817(0x10f)],_0x4e1ebb[_0x1f6817(0x12e)]);return _0x1c8157==null||(_0x4faa91=_0x1c8157[_0x1f6817(0x12c)]()[_0x1f6817(0xfd)])==null||(_0x4faa91=_0x4faa91[_0x1f6817(0x121)])==null?void 0x0:_0x4faa91[_0x1f6817(0x114)](_0xb1f0f7=>_0xb1f0f7[_0x1f6817(0x135)]===this[_0x1f6817(0x105)]&&_0x386fc6(_0xb1f0f7));}};b=y([v(0x2,_0x24b4b7),v(0x3,_0x54ace0(_0x3de5b9)),v(0x4,_0x54ace0(_0x5853dc)),v(0x5,_0x462ecd)],b);function x(_0x39507f){'@babel/helpers - typeof';var _0x59360d=_0x3a3a0c;return x=typeof Symbol==_0x59360d(0xf4)&&typeof Symbol['iterator']=='symbol'?function(_0x4bec02){return typeof _0x4bec02;}:function(_0x4a66dc){var _0xc0f842=_0x59360d;return _0x4a66dc&&typeof Symbol=='function'&&_0x4a66dc[_0xc0f842(0x11c)]===Symbol&&_0x4a66dc!==Symbol[_0xc0f842(0x10b)]?_0xc0f842(0x100):typeof _0x4a66dc;},x(_0x39507f);}function S(_0x42e7de,_0x498698){var _0x596524=_0x3a3a0c;if(x(_0x42e7de)!='object'||!_0x42e7de)return _0x42e7de;var _0x2bb725=_0x42e7de[Symbol[_0x596524(0x10a)]];if(_0x2bb725!==void 0x0){var _0x69ea43=_0x2bb725[_0x596524(0x138)](_0x42e7de,_0x498698||'default');if(x(_0x69ea43)!=_0x596524(0xf2))return _0x69ea43;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x498698===_0x596524(0x111)?String:Number)(_0x42e7de);}function C(_0x46b597){var _0x1339a9=_0x3a3a0c,_0x106307=S(_0x46b597,_0x1339a9(0x111));return x(_0x106307)==_0x1339a9(0x100)?_0x106307:_0x106307+'';}function w(_0x5351c6,_0x4ab59d,_0x58a9af){var _0x3750d5=_0x3a3a0c;return(_0x4ab59d=C(_0x4ab59d))in _0x5351c6?Object[_0x3750d5(0xff)](_0x5351c6,_0x4ab59d,{'value':_0x58a9af,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x5351c6[_0x4ab59d]=_0x58a9af,_0x5351c6;}var T=class extends _0x4e2d9c{constructor(..._0x519d1d){var _0x381b60=_0x3a3a0c;super(..._0x519d1d),w(this,_0x381b60(0x10c),void 0x0),w(this,'_docsFormulaDisplayTextService',void 0x0),w(this,_0x381b60(0xea),void 0x0),w(this,_0x381b60(0x137),void 0x0);}[_0x3a3a0c(0xf3)](_0x14110c){var _0x161599=_0x3a3a0c;this[_0x161599(0x10c)]=_0x14110c[_0x161599(0x117)](_0x24b4b7),this[_0x161599(0x10e)]=_0x14110c[_0x161599(0x117)](_0x153131),this[_0x161599(0xea)]=_0x14110c['get'](_0x3de5b9),this['_docsFormulaResourceLoaderService']=_0x14110c[_0x161599(0x117)](_0x35fc3b);}[_0x3a3a0c(0x131)](){var _0x2de62f=_0x3a3a0c;return this['_getCompleteRanges']()[_0x2de62f(0x11e)](_0x2e09e4=>this[_0x2de62f(0x12f)](_0x2e09e4['rangeId']));}['getFormula'](_0x1e03e0){var _0x5b5fcc=_0x3a3a0c;return this[_0x5b5fcc(0x12a)]()[_0x5b5fcc(0xee)](_0x4fd12e=>_0x4fd12e[_0x5b5fcc(0x135)]===_0x1e03e0)?this[_0x5b5fcc(0x12f)](_0x1e03e0):null;}[_0x3a3a0c(0xf5)](_0x3efc31){var _0xed2d0a=_0x3a3a0c;let _0x3d58b0=this['_getCompleteRanges']()[_0xed2d0a(0x114)](_0x1dd3ca=>_0x1dd3ca[_0xed2d0a(0xfe)]<=_0x3efc31&&_0x3efc31<=_0x1dd3ca[_0xed2d0a(0x119)]);return _0x3d58b0?this[_0xed2d0a(0x12f)](_0x3d58b0[_0xed2d0a(0x135)]):null;}[_0x3a3a0c(0x122)](){var _0x598db9=_0x3a3a0c;let _0x3aac3f=this[_0x598db9(0x137)][_0x598db9(0x124)](this['id']);if(!_0x3aac3f)throw Error(_0x598db9(0xec)+this['id']+'\x20could\x20not\x20be\x20serialized.');return this[_0x598db9(0x10e)][_0x598db9(0x126)](_0x3aac3f);}['insertFormula'](_0xadf386){var _0x13cccc=_0x3a3a0c;return this[_0x13cccc(0x108)]({'externalReferences':_0xadf386[_0x13cccc(0xfb)],'formula':_0xadf386[_0x13cccc(0x118)],'numberFormat':_0xadf386[_0x13cccc(0xfc)],'target':{'type':_0x13cccc(0x109),'startOffset':_0xadf386[_0x13cccc(0xf8)],'endOffset':_0xadf386[_0x13cccc(0x125)]},'unitId':this['getId']()});}[_0x3a3a0c(0x108)](_0x2ada71){var _0x471c21=_0x3a3a0c;let _0x30a7bc=this[_0x471c21(0x10c)][_0x471c21(0xf6)](_0x1dca28['id'],_0x2ada71);return _0x30a7bc?this[_0x471c21(0x12f)](_0x30a7bc[_0x471c21(0x135)]):null;}[_0x3a3a0c(0x12a)](){var _0x12c68b=_0x3a3a0c,_0x2839cc;let _0x12db94=this[_0x12c68b(0xea)]['getFormulas'](this[_0x12c68b(0x12b)]());return((_0x2839cc=this['getBody']('')['customRanges'])==null?void 0x0:_0x2839cc['filter'](_0x5e4ed8=>_0x386fc6(_0x5e4ed8)&&_0x12db94[_0x5e4ed8[_0x12c68b(0x135)]]!=null))??[];}['_createFormula'](_0x55e4e7){var _0x4942b3=_0x3a3a0c;return this[_0x4942b3(0x106)][_0x4942b3(0x104)](b,this[_0x4942b3(0x12b)](),_0x55e4e7);}};_0x4e2d9c[_0x3a3a0c(0x11d)](T);var E=class extends _0x524dda{constructor(..._0x4da8dd){var _0x78e132=_0x3a3a0c;super(..._0x4da8dd),w(this,_0x78e132(0x10c),void 0x0);}[_0x3a3a0c(0xf3)](_0x1e136c){var _0x4a2492=_0x3a3a0c;this['_docsFormulaCommandService']=_0x1e136c[_0x4a2492(0x117)](_0x24b4b7);}['insertFormula'](_0x5d1465,_0xcee93e,_0x1ac3d2={}){var _0x4506d0=_0x3a3a0c;return this[_0x4506d0(0x108)](_0x5d1465,_0xcee93e,_0x1ac3d2);}[_0x3a3a0c(0x120)](_0x76880d,_0x3972d4={}){var _0x17b82f=_0x3a3a0c;return this['_insert'](_0x17b82f(0xf7),_0x76880d,_0x3972d4);}['_insert'](_0xa0174f,_0x2a0762,_0x4ac866){var _0x2425db=_0x3a3a0c;if(this[_0x2425db(0x103)]())return null;let _0xfaf39={'externalReferences':_0x4ac866[_0x2425db(0xfb)],'formula':_0x2a0762,'numberFormat':_0x4ac866[_0x2425db(0xfc)],'target':{'type':_0x2425db(0xf0),'paragraphId':this['getId'](),'position':_0xa0174f},'unitId':this['_document'][_0x2425db(0x12b)]()},_0x4dee5d=this[_0x2425db(0x10c)]['syncExecuteCommand'](_0x1dca28['id'],_0xfaf39);return _0x4dee5d?this[_0x2425db(0x106)][_0x2425db(0x104)](b,this[_0x2425db(0x115)]['getId'](),_0x4dee5d[_0x2425db(0x135)]):null;}};function _0x5a9d(_0x3d0754,_0xbcd0a1){_0x3d0754=_0x3d0754-0xea;var _0x59387b=_0x5938();var _0x5a9d30=_0x59387b[_0x3d0754];return _0x5a9d30;}_0x524dda['extend'](E);var D=class extends _0x5ab49e{constructor(..._0x509171){var _0x429823=_0x3a3a0c;super(..._0x509171),w(this,_0x429823(0x10c),void 0x0);}['_initialize'](_0x3b0f88){var _0x21cc68=_0x3a3a0c;this[_0x21cc68(0x10c)]=_0x3b0f88[_0x21cc68(0x117)](_0x24b4b7);}[_0x3a3a0c(0x11a)](_0x46f00f,_0x1c0f9d={}){var _0x2cde12=_0x3a3a0c;let {endOffset:_0x4114bc,segmentId:_0x24f099,startOffset:_0x18c376}=this[_0x2cde12(0x134)]();return _0x24f099?null:this[_0x2cde12(0x108)](_0x18c376,_0x4114bc,_0x46f00f,_0x1c0f9d);}['_insert'](_0x40ac33,_0x2e214a,_0x49c249,_0x48f604){var _0x28ee33=_0x3a3a0c;let _0x2b44c9={'externalReferences':_0x48f604['externalReferences'],'formula':_0x49c249,'numberFormat':_0x48f604['numberFormat'],'target':{'type':_0x28ee33(0x109),'startOffset':_0x40ac33,'endOffset':_0x2e214a},'unitId':this[_0x28ee33(0x115)][_0x28ee33(0x12b)]()},_0x2ac913=this[_0x28ee33(0x10c)][_0x28ee33(0xf6)](_0x1dca28['id'],_0x2b44c9);return _0x2ac913?this[_0x28ee33(0x106)]['createInstance'](b,this[_0x28ee33(0x115)][_0x28ee33(0x12b)](),_0x2ac913[_0x28ee33(0x135)]):null;}};_0x5ab49e[_0x3a3a0c(0x11d)](D);function _0x5938(){var _0x2b9a87=['appendFormula','customRanges','saveFormulaDisplayTextSnapshot','_univerInstanceService','saveUnit','endOffset','degradeDocumentData','2837700ssPvpG','remove','getOwnPropertyDescriptor','_getCompleteRanges','getId','getSnapshot','100QMwxIK','UNIVER_DOC','_createFormula','2074308ZmAWtD','getFormulas','_model','8mBaJdj','getRange','rangeId','_getCustomRange','_docsFormulaResourceLoaderService','call','_docsFormulaModel','956527KKRstw','Document\x20','getFormula','some','3115372zQRPhj','paragraph','4236372RLCIDe','object','_initialize','function','getFormulaAt','syncExecuteCommand','end','startOffset','update','length','externalReferences','numberFormat','body','startIndex','defineProperty','symbol','54942UOneVJ','convertToText','getSegmentId','createInstance','_rangeId','_injector','decorate','_insert','range','toPrimitive','prototype','_docsFormulaCommandService','1094274AgEvBx','_docsFormulaDisplayTextService','_unitId','_commandService','string','getResult','setNumberFormat','find','_document','_service','get','formula','endIndex','replaceWithFormula','915JlzEyY','constructor','extend','map','getConfig'];_0x5938=function(){return _0x2b9a87;};return _0x5938();}export{b as FDocumentFormula};
1
+ var _0x43e278=_0x32db;(function(_0x4072a8,_0x5c7423){var _0x27c94b=_0x32db,_0x12e726=_0x4072a8();while(!![]){try{var _0x534714=parseInt(_0x27c94b(0x17a))/0x1*(parseInt(_0x27c94b(0x190))/0x2)+parseInt(_0x27c94b(0x188))/0x3+parseInt(_0x27c94b(0x1ae))/0x4+-parseInt(_0x27c94b(0x1a4))/0x5+-parseInt(_0x27c94b(0x163))/0x6*(parseInt(_0x27c94b(0x195))/0x7)+parseInt(_0x27c94b(0x17d))/0x8+-parseInt(_0x27c94b(0x17c))/0x9*(parseInt(_0x27c94b(0x1a7))/0xa);if(_0x534714===_0x5c7423)break;else _0x12e726['push'](_0x12e726['shift']());}catch(_0x2ecb5e){_0x12e726['push'](_0x12e726['shift']());}}}(_0x5b6c,0x838c4));import{ConvertDocFormulaToTextCommand as _0x334f28,DocFormulaDisplayTextService as _0x29119a,DocFormulaModel as _0x352050,DocFormulaService as _0x285cca,InsertDocFormulaCommand as _0x4cef27,RemoveDocFormulaCommand as _0x280b1f,ReplaceDocFormulaWithTextCommand as _0x223a60,SetDocFormulaNumberFormatCommand as _0x1bb1a3,UpdateDocFormulaCommand as _0x236518,isDocFormulaRange as _0x3eb00d}from'@univerjs-pro/docs-formula';import{ICommandService as _0x5a6335,IResourceLoaderService as _0x2e4e88,IUniverInstanceService as _0x2b5182,Inject as _0x44bf6b,UniverInstanceType as _0x32ec54}from'@univerjs/core';import{FDocument as _0x9be5d2,FDocumentParagraph as _0x5f3dce,FDocumentTextRange as _0x2f9447}from'@univerjs/docs/facade';function v(_0x59e430,_0x3bde68){return function(_0x3f63d8,_0x358c97){_0x3bde68(_0x3f63d8,_0x358c97,_0x59e430);};}function y(_0x272e2f,_0x1f8d57,_0x23c313,_0x2d66e8){var _0x18fc56=_0x32db,_0x4396e9=arguments['length'],_0x3932e4=_0x4396e9<0x3?_0x1f8d57:_0x2d66e8===null?_0x2d66e8=Object['getOwnPropertyDescriptor'](_0x1f8d57,_0x23c313):_0x2d66e8,_0x4167fb;if(typeof Reflect==_0x18fc56(0x189)&&typeof Reflect[_0x18fc56(0x187)]==_0x18fc56(0x173))_0x3932e4=Reflect['decorate'](_0x272e2f,_0x1f8d57,_0x23c313,_0x2d66e8);else{for(var _0x2a2988=_0x272e2f[_0x18fc56(0x1a8)]-0x1;_0x2a2988>=0x0;_0x2a2988--)(_0x4167fb=_0x272e2f[_0x2a2988])&&(_0x3932e4=(_0x4396e9<0x3?_0x4167fb(_0x3932e4):_0x4396e9>0x3?_0x4167fb(_0x1f8d57,_0x23c313,_0x3932e4):_0x4167fb(_0x1f8d57,_0x23c313))||_0x3932e4);}return _0x4396e9>0x3&&_0x3932e4&&Object[_0x18fc56(0x1aa)](_0x1f8d57,_0x23c313,_0x3932e4),_0x3932e4;}let b=class{constructor(_0x42c7b3,_0x328197,_0x1bebed,_0x51aa71,_0x52a086,_0x111919){var _0x4483c6=_0x32db;this['_unitId']=_0x42c7b3,this[_0x4483c6(0x17b)]=_0x328197,this[_0x4483c6(0x184)]=_0x1bebed,this[_0x4483c6(0x167)]=_0x51aa71,this[_0x4483c6(0x174)]=_0x52a086,this[_0x4483c6(0x170)]=_0x111919;}[_0x43e278(0x176)](){var _0x29b724=_0x43e278;return this[_0x29b724(0x17b)];}[_0x43e278(0x171)](){var _0x495dcd=_0x43e278;let _0x52a55f=this[_0x495dcd(0x181)]();return _0x52a55f?{'endOffset':_0x52a55f[_0x495dcd(0x172)]+0x1,'rangeId':_0x52a55f['rangeId'],'startOffset':_0x52a55f[_0x495dcd(0x192)]}:null;}[_0x43e278(0x19d)](){var _0x5cfe4b=_0x43e278,_0x1a3291;return((_0x1a3291=this[_0x5cfe4b(0x167)][_0x5cfe4b(0x19d)](this['_unitId'],this['_rangeId']))==null?void 0x0:_0x1a3291[_0x5cfe4b(0x16e)])??'';}[_0x43e278(0x18f)](){var _0x3e6f95=_0x43e278;return this[_0x3e6f95(0x167)]['getFormula'](this[_0x3e6f95(0x168)],this[_0x3e6f95(0x17b)])??null;}['getResult'](){var _0x529f13=_0x43e278;return this[_0x529f13(0x174)][_0x529f13(0x16b)]({'unitId':this[_0x529f13(0x168)],'rangeId':this[_0x529f13(0x17b)]})??null;}[_0x43e278(0x164)](){var _0xfc804e=_0x43e278;let _0x49caf7=this[_0xfc804e(0x171)](),_0x162171=this['getConfig'](),_0x386d07=this[_0xfc804e(0x16b)]();return!_0x49caf7||!_0x162171||!_0x386d07?null:{..._0x49caf7,'config':_0x162171,'formula':_0x162171[_0xfc804e(0x16e)],'result':_0x386d07,'type':_0xfc804e(0x16e)};}['update'](_0x2a59f4){var _0x2547de=_0x43e278;return this[_0x2547de(0x184)]['syncExecuteCommand'](_0x236518['id'],{'externalReferences':_0x2a59f4[_0x2547de(0x1a3)],'formula':_0x2a59f4['formula'],'numberFormat':_0x2a59f4[_0x2547de(0x1a1)],'rangeId':this[_0x2547de(0x17b)],'unitId':this[_0x2547de(0x168)]});}['setNumberFormat'](_0x38fb22){var _0x472b87=_0x43e278;return this[_0x472b87(0x184)][_0x472b87(0x1b0)](_0x1bb1a3['id'],{'numberFormat':_0x38fb22,'rangeId':this[_0x472b87(0x17b)],'unitId':this[_0x472b87(0x168)]});}[_0x43e278(0x19a)](){var _0x3e8fca=_0x43e278;return this['_commandService'][_0x3e8fca(0x1b0)](_0x280b1f['id'],{'rangeId':this[_0x3e8fca(0x17b)],'unitId':this[_0x3e8fca(0x168)]});}[_0x43e278(0x1a2)](_0x1e6e89){var _0x4b3cbb=_0x43e278;return this[_0x4b3cbb(0x184)][_0x4b3cbb(0x1b0)](_0x223a60['id'],{'rangeId':this[_0x4b3cbb(0x17b)],'text':_0x1e6e89,'unitId':this[_0x4b3cbb(0x168)]});}['convertToText'](){var _0xc6920c=_0x43e278;return this[_0xc6920c(0x184)][_0xc6920c(0x1b0)](_0x334f28['id'],{'rangeId':this[_0xc6920c(0x17b)],'unitId':this[_0xc6920c(0x168)]});}[_0x43e278(0x181)](){var _0x2c44b8=_0x43e278,_0x451a14;let _0x5addea=this[_0x2c44b8(0x170)][_0x2c44b8(0x1ad)](this[_0x2c44b8(0x168)],_0x32ec54['UNIVER_DOC']);return _0x5addea==null||(_0x451a14=_0x5addea[_0x2c44b8(0x1b2)]()[_0x2c44b8(0x1a5)])==null||(_0x451a14=_0x451a14[_0x2c44b8(0x1ac)])==null?void 0x0:_0x451a14[_0x2c44b8(0x169)](_0x2660b7=>_0x2660b7[_0x2c44b8(0x19c)]===this[_0x2c44b8(0x17b)]&&_0x3eb00d(_0x2660b7));}};function _0x5b6c(){var _0x514806=['_docsFormulaCommandService','rangeId','getFormula','getSegmentId','_createFormula','filter','numberFormat','replaceWithText','externalReferences','2744600LNFOqv','body','some','10Mtykqb','length','getBody','defineProperty','range','customRanges','getUnit','2215532KmTEWU','paragraph','syncExecuteCommand','getFormulaAt','getSnapshot','12NCNdzi','describe','getFormulas','_document','_model','_unitId','find','_docsFormulaModel','getResult','map','end','formula','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','_univerInstanceService','getRange','endIndex','function','_service','prototype','getId','extend','iterator','createInstance','107957IviErs','_rangeId','5639661qyREGU','3415512HxqlnD','toPrimitive','_docsFormulaResourceLoaderService','saveFormulaDisplayTextSnapshot','_getCustomRange','_injector','symbol','_commandService','_insert','startOffset','decorate','2280900KsIlUA','object','default','_docsFormulaDisplayTextService','_initialize','_getCompleteRanges','saveUnit','getConfig','18gdoxcU','insertFormula','startIndex','degradeDocumentData','call','3494281LsAVKu','endOffset','replaceWithFormula','constructor','get','remove'];_0x5b6c=function(){return _0x514806;};return _0x5b6c();}function _0x32db(_0x4eefbf,_0x4bb507){_0x4eefbf=_0x4eefbf-0x163;var _0x5b6cd3=_0x5b6c();var _0x32db03=_0x5b6cd3[_0x4eefbf];return _0x32db03;}b=y([v(0x2,_0x5a6335),v(0x3,_0x44bf6b(_0x352050)),v(0x4,_0x44bf6b(_0x285cca)),v(0x5,_0x2b5182)],b);function x(_0x1a9e30){'@babel/helpers - typeof';var _0x43fa81=_0x43e278;return x=typeof Symbol=='function'&&typeof Symbol[_0x43fa81(0x178)]=='symbol'?function(_0xd2b72d){return typeof _0xd2b72d;}:function(_0x22386d){var _0x34819d=_0x43fa81;return _0x22386d&&typeof Symbol=='function'&&_0x22386d[_0x34819d(0x198)]===Symbol&&_0x22386d!==Symbol[_0x34819d(0x175)]?_0x34819d(0x183):typeof _0x22386d;},x(_0x1a9e30);}function S(_0x1e1b67,_0x322107){var _0x4c02a9=_0x43e278;if(x(_0x1e1b67)!=_0x4c02a9(0x189)||!_0x1e1b67)return _0x1e1b67;var _0xc425a1=_0x1e1b67[Symbol[_0x4c02a9(0x17e)]];if(_0xc425a1!==void 0x0){var _0x134350=_0xc425a1[_0x4c02a9(0x194)](_0x1e1b67,_0x322107||_0x4c02a9(0x18a));if(x(_0x134350)!=_0x4c02a9(0x189))return _0x134350;throw TypeError(_0x4c02a9(0x16f));}return(_0x322107==='string'?String:Number)(_0x1e1b67);}function C(_0x5bfd00){var _0x2374ec=_0x43e278,_0x428bd7=S(_0x5bfd00,'string');return x(_0x428bd7)==_0x2374ec(0x183)?_0x428bd7:_0x428bd7+'';}function w(_0x3e2484,_0x5c5c82,_0x4fb589){var _0x53b8ba=_0x43e278;return(_0x5c5c82=C(_0x5c5c82))in _0x3e2484?Object[_0x53b8ba(0x1aa)](_0x3e2484,_0x5c5c82,{'value':_0x4fb589,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x3e2484[_0x5c5c82]=_0x4fb589,_0x3e2484;}var T=class extends _0x9be5d2{constructor(..._0x43b413){var _0x1a54fa=_0x43e278;super(..._0x43b413),w(this,'_docsFormulaCommandService',void 0x0),w(this,_0x1a54fa(0x18b),void 0x0),w(this,_0x1a54fa(0x16a),void 0x0),w(this,_0x1a54fa(0x17f),void 0x0);}[_0x43e278(0x18c)](_0x51ac0e){var _0x4bed7c=_0x43e278;this[_0x4bed7c(0x19b)]=_0x51ac0e['get'](_0x5a6335),this[_0x4bed7c(0x18b)]=_0x51ac0e[_0x4bed7c(0x199)](_0x29119a),this[_0x4bed7c(0x16a)]=_0x51ac0e[_0x4bed7c(0x199)](_0x352050),this[_0x4bed7c(0x17f)]=_0x51ac0e[_0x4bed7c(0x199)](_0x2e4e88);}[_0x43e278(0x165)](){var _0x4017b0=_0x43e278;return this[_0x4017b0(0x18d)]()[_0x4017b0(0x16c)](_0x4f691c=>this[_0x4017b0(0x19f)](_0x4f691c[_0x4017b0(0x19c)]));}[_0x43e278(0x19d)](_0x39197a){var _0x4dd232=_0x43e278;return this[_0x4dd232(0x18d)]()[_0x4dd232(0x1a6)](_0x36b4ab=>_0x36b4ab['rangeId']===_0x39197a)?this[_0x4dd232(0x19f)](_0x39197a):null;}[_0x43e278(0x1b1)](_0x18a8c5){var _0x5be941=_0x43e278;let _0x543144=this['_getCompleteRanges']()['find'](_0x1e74dd=>_0x1e74dd[_0x5be941(0x192)]<=_0x18a8c5&&_0x18a8c5<=_0x1e74dd[_0x5be941(0x172)]);return _0x543144?this[_0x5be941(0x19f)](_0x543144[_0x5be941(0x19c)]):null;}[_0x43e278(0x180)](){var _0x5af2f7=_0x43e278;let _0x17f8e5=this['_docsFormulaResourceLoaderService'][_0x5af2f7(0x18e)](this['id']);if(!_0x17f8e5)throw Error('Document\x20'+this['id']+'\x20could\x20not\x20be\x20serialized.');return this[_0x5af2f7(0x18b)][_0x5af2f7(0x193)](_0x17f8e5);}[_0x43e278(0x191)](_0x1a0400){var _0x347b6e=_0x43e278;return this[_0x347b6e(0x185)]({'externalReferences':_0x1a0400['externalReferences'],'formula':_0x1a0400[_0x347b6e(0x16e)],'numberFormat':_0x1a0400[_0x347b6e(0x1a1)],'target':{'type':'range','startOffset':_0x1a0400[_0x347b6e(0x186)],'endOffset':_0x1a0400[_0x347b6e(0x196)]},'unitId':this[_0x347b6e(0x176)]()});}[_0x43e278(0x185)](_0x3bd1dd){var _0x1f769c=_0x43e278;let _0x37e264=this[_0x1f769c(0x19b)][_0x1f769c(0x1b0)](_0x4cef27['id'],_0x3bd1dd);return _0x37e264?this['_createFormula'](_0x37e264[_0x1f769c(0x19c)]):null;}[_0x43e278(0x18d)](){var _0x67f993=_0x43e278,_0x1b641e;let _0xd8b92d=this[_0x67f993(0x16a)][_0x67f993(0x165)](this[_0x67f993(0x176)]());return((_0x1b641e=this[_0x67f993(0x1a9)]('')[_0x67f993(0x1ac)])==null?void 0x0:_0x1b641e[_0x67f993(0x1a0)](_0x2c4b51=>_0x3eb00d(_0x2c4b51)&&_0xd8b92d[_0x2c4b51['rangeId']]!=null))??[];}[_0x43e278(0x19f)](_0xd52f63){var _0x5da3df=_0x43e278;return this[_0x5da3df(0x182)][_0x5da3df(0x179)](b,this[_0x5da3df(0x176)](),_0xd52f63);}};_0x9be5d2[_0x43e278(0x177)](T);var E=class extends _0x5f3dce{constructor(..._0x1130cc){var _0x56c59d=_0x43e278;super(..._0x1130cc),w(this,_0x56c59d(0x19b),void 0x0);}[_0x43e278(0x18c)](_0x575cf5){var _0x571a2b=_0x43e278;this[_0x571a2b(0x19b)]=_0x575cf5['get'](_0x5a6335);}['insertFormula'](_0x5c46e7,_0x52fb1a,_0x33cea5={}){var _0x2548b3=_0x43e278;return this[_0x2548b3(0x185)](_0x5c46e7,_0x52fb1a,_0x33cea5);}['appendFormula'](_0x383ee1,_0x234c10={}){var _0x2ab220=_0x43e278;return this['_insert'](_0x2ab220(0x16d),_0x383ee1,_0x234c10);}[_0x43e278(0x185)](_0x186e62,_0x190170,_0x2a7d2f){var _0x56da4f=_0x43e278;if(this[_0x56da4f(0x19e)]())return null;let _0x13d172={'externalReferences':_0x2a7d2f[_0x56da4f(0x1a3)],'formula':_0x190170,'numberFormat':_0x2a7d2f[_0x56da4f(0x1a1)],'target':{'type':_0x56da4f(0x1af),'paragraphId':this['getId'](),'position':_0x186e62},'unitId':this[_0x56da4f(0x166)][_0x56da4f(0x176)]()},_0x532f9=this[_0x56da4f(0x19b)]['syncExecuteCommand'](_0x4cef27['id'],_0x13d172);return _0x532f9?this[_0x56da4f(0x182)][_0x56da4f(0x179)](b,this[_0x56da4f(0x166)]['getId'](),_0x532f9[_0x56da4f(0x19c)]):null;}};_0x5f3dce[_0x43e278(0x177)](E);var D=class extends _0x2f9447{constructor(..._0x58f15a){var _0x14281f=_0x43e278;super(..._0x58f15a),w(this,_0x14281f(0x19b),void 0x0);}[_0x43e278(0x18c)](_0xc998de){var _0x1f7dea=_0x43e278;this[_0x1f7dea(0x19b)]=_0xc998de[_0x1f7dea(0x199)](_0x5a6335);}[_0x43e278(0x197)](_0x50335d,_0x3557db={}){var _0x136452=_0x43e278;let {endOffset:_0x5651ed,segmentId:_0x12862b,startOffset:_0x501b43}=this[_0x136452(0x171)]();return _0x12862b?null:this[_0x136452(0x185)](_0x501b43,_0x5651ed,_0x50335d,_0x3557db);}[_0x43e278(0x185)](_0x2f58a5,_0x2cb9d3,_0x5bd4df,_0x2c218c){var _0xcea158=_0x43e278;let _0x3e86d0={'externalReferences':_0x2c218c[_0xcea158(0x1a3)],'formula':_0x5bd4df,'numberFormat':_0x2c218c[_0xcea158(0x1a1)],'target':{'type':_0xcea158(0x1ab),'startOffset':_0x2f58a5,'endOffset':_0x2cb9d3},'unitId':this[_0xcea158(0x166)][_0xcea158(0x176)]()},_0x3135dd=this[_0xcea158(0x19b)]['syncExecuteCommand'](_0x4cef27['id'],_0x3e86d0);return _0x3135dd?this[_0xcea158(0x182)][_0xcea158(0x179)](b,this[_0xcea158(0x166)][_0xcea158(0x176)](),_0x3135dd[_0xcea158(0x19c)]):null;}};_0x2f9447[_0x43e278(0x177)](D);export{b as FDocumentFormula};