@univerjs-pro/docs-formula 1.0.0-beta.0 → 1.0.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x11b942=_0x48a7;(function(_0x58f04b,_0x27c6a5){const _0x2aeaa1=_0x48a7,_0x525e06=_0x58f04b();while(!![]){try{const _0x3735f5=-parseInt(_0x2aeaa1(0x134))/0x1*(parseInt(_0x2aeaa1(0x138))/0x2)+-parseInt(_0x2aeaa1(0x165))/0x3*(parseInt(_0x2aeaa1(0xbe))/0x4)+parseInt(_0x2aeaa1(0x12c))/0x5*(-parseInt(_0x2aeaa1(0x113))/0x6)+-parseInt(_0x2aeaa1(0x10f))/0x7*(-parseInt(_0x2aeaa1(0x97))/0x8)+parseInt(_0x2aeaa1(0x169))/0x9*(-parseInt(_0x2aeaa1(0x17b))/0xa)+-parseInt(_0x2aeaa1(0x132))/0xb+parseInt(_0x2aeaa1(0x16d))/0xc;if(_0x3735f5===_0x27c6a5)break;else _0x525e06['push'](_0x525e06['shift']());}catch(_0x58c0e7){_0x525e06['push'](_0x525e06['shift']());}}}(_0x2755,0xe5e74));import{FormulaCacheEligibilityService as _0x477178,FormulaLastValuePersistenceService as _0x3f3931,HostExternalReferenceModel as _0x4e55da,UniverProFormulaEnginePlugin as _0x16665e,buildUpsertHostExternalReferenceMutations as _0x1d12c5,collectFormulaExternalReferenceQualifiers as _0x59b99e,getScalarFormulaResultCell as _0xc59680,resolveFormulaResultPresentation as _0x57ce95,resolveHostFormulaExternalReferences as _0x7dadcf,toFormulaLastValue as _0x34e83b}from'@univerjs-pro/engine-formula';import{CellValueType as _0x8a3f37,CommandType as _0x5965b8,CustomRangeType as _0x3e39c6,DataStreamTreeTokenType as _0x104972,DependentOn as _0x1cc9db,Disposable as _0x35945f,ICommandService as _0x33bec9,IConfigService as _0x3270a2,IResourceManagerService as _0x1e7c1d,IUndoRedoService as _0x21b9cd,IUniverInstanceService as _0x930636,Inject as _0x3d3024,Injector as _0x13e4a3,JSONX as _0x583736,Plugin as _0x459c8d,TextX as _0x3b5ea5,Tools as _0x29e987,UniverInstanceType as _0x45653d,generateRandomId as _0x2dbc3e,getBodySliceForTextXAction as _0x1be218,getCustomRangeInterval as _0x173fb8,getParagraphContentStartOffset as _0x54e7b7,getRichTextEditPath as _0x36d11e,merge as _0x4b4880,shiftExclusiveRangeOnDelete as _0x20fbe4,shiftExclusiveRangeOnInsert as _0x15d769,shiftInclusiveRangeOnDelete as _0x3d5ca1,shiftInclusiveRangeOnInsert as _0x44d86d,touchDependencies as _0x2fa40d}from'@univerjs/core';import{DOC_SELECTION_OPTION_PRESERVE_CARET as _0xa0c5b1,DocSelectionManagerService as _0x42f86e,DocTextResolverService as _0x56e8c8,RichTextEditingMutation as _0x480fe8,UniverDocsPlugin as _0x44a698}from'@univerjs/docs';import{FormulaResultStatus as _0x110262,LexerTreeBuilder as _0x3c43da,OtherFormulaBizType as _0x591f38,RegisterOtherFormulaService as _0xa717d0}from'@univerjs/engine-formula';import{Subject as _0x6a8876}from'rxjs';import{UniverLicensePlugin as _0x42a144}from'@univerjs-pro/license';const y=_0x11b942(0xd5),je=0x1,Me='univer-docs-formula',Ne='';function b(){return{'schemaVersion':0x1,'formulas':{}};}function x(_0x70ddb3){const _0x55f6e1=_0x11b942;return!_0x70ddb3||typeof _0x70ddb3!=_0x55f6e1(0xee)||!S(_0x70ddb3,['schemaVersion',_0x55f6e1(0x12b)])||!(_0x55f6e1(0xb7)in _0x70ddb3)||_0x70ddb3[_0x55f6e1(0xb7)]!==0x1||!('formulas'in _0x70ddb3)||!_0x70ddb3[_0x55f6e1(0x12b)]||typeof _0x70ddb3[_0x55f6e1(0x12b)]!=_0x55f6e1(0xee)||Array[_0x55f6e1(0xf6)](_0x70ddb3[_0x55f6e1(0x12b)])?!0x1:Object[_0x55f6e1(0x81)](_0x70ddb3['formulas'])[_0x55f6e1(0x7f)](([_0xa8bdb6,_0x2ffaba])=>_0xa8bdb6['length']>0x0&&Pe(_0x2ffaba));}function Pe(_0x448e59){const _0x35b67e=_0x11b942;return!_0x448e59||typeof _0x448e59!=_0x35b67e(0xee)||!S(_0x448e59,[_0x35b67e(0x16f),_0x35b67e(0x13c),'lastValue'])||!(_0x35b67e(0x16f)in _0x448e59)||typeof _0x448e59[_0x35b67e(0x16f)]!='string'||!_0x448e59[_0x35b67e(0x16f)]['trim']()||_0x35b67e(0x13c)in _0x448e59&&_0x448e59['numberFormat']!=null&&(typeof _0x448e59[_0x35b67e(0x13c)]!=_0x35b67e(0xee)||!S(_0x448e59[_0x35b67e(0x13c)],[_0x35b67e(0xc1)])||!('pattern'in _0x448e59[_0x35b67e(0x13c)])||typeof _0x448e59['numberFormat'][_0x35b67e(0xc1)]!=_0x35b67e(0xf2))?!0x1:!(_0x35b67e(0xdb)in _0x448e59)||_0x448e59['lastValue']==null||Fe(_0x448e59[_0x35b67e(0xdb)]);}function Fe(_0x3d6dbe){const _0x53a98d=_0x11b942;return!_0x3d6dbe||typeof _0x3d6dbe!=_0x53a98d(0xee)||!S(_0x3d6dbe,['v','t',_0x53a98d(0xc1)])||!('v'in _0x3d6dbe)||_0x3d6dbe['v']!==null&&typeof _0x3d6dbe['v']!=_0x53a98d(0xf2)&&typeof _0x3d6dbe['v']!=_0x53a98d(0x106)&&typeof _0x3d6dbe['v']!=_0x53a98d(0xe5)||'t'in _0x3d6dbe&&_0x3d6dbe['t']!=null&&!Ie(_0x3d6dbe['t'])?!0x1:!(_0x53a98d(0xc1)in _0x3d6dbe)||_0x3d6dbe[_0x53a98d(0xc1)]==null||typeof _0x3d6dbe['pattern']==_0x53a98d(0xf2);}function S(_0x224092,_0x4e35e5){const _0x348344=_0x11b942;let _0x3dfc27=new Set(_0x4e35e5);return Object[_0x348344(0xde)](_0x224092)[_0x348344(0x7f)](_0x437134=>_0x3dfc27[_0x348344(0x154)](_0x437134));}function Ie(_0x4831a1){const _0x3bd0a2=_0x11b942;return typeof _0x4831a1==_0x3bd0a2(0x106)&&Object['values'](_0x8a3f37)[_0x3bd0a2(0x15c)](_0x4831a1);}const Le=new Set([_0x104972['SECTION_BREAK'],_0x104972[_0x11b942(0x10a)],_0x104972[_0x11b942(0x16e)],_0x104972['TABLE_CELL_START'],_0x104972['TABLE_CELL_END'],_0x104972[_0x11b942(0x8f)],_0x104972[_0x11b942(0x164)],_0x104972[_0x11b942(0x155)],_0x104972[_0x11b942(0x89)],_0x104972[_0x11b942(0x16b)],_0x104972[_0x11b942(0xa7)],_0x104972[_0x11b942(0x180)],_0x104972[_0x11b942(0xf5)],_0x104972[_0x11b942(0x15a)]]);var C=class extends Error{constructor(){const _0x34c38b=_0x11b942;super(_0x34c38b(0x93));}};function Re(_0xea415d){const _0x195992=_0x11b942;var _0x5b57c2,_0x8fd26c;let _0x5fd1b0=_0x29e987['deepClone'](_0xea415d[_0x195992(0x15e)]),_0x54a2fa=j(_0x5fd1b0),{startOffset:_0x7437f3,endOffset:_0x3beea0}=We(_0x54a2fa,_0xea415d[_0x195992(0x10d)],_0xea415d['endOffset']);He(_0x54a2fa,_0x7437f3,_0x3beea0);let _0x415f09=((_0x5b57c2=_0x54a2fa[_0x195992(0xe9)])==null?void 0x0:_0x5b57c2[_0x195992(0x112)](_0x563bf3=>{const _0x2b87f1=_0x195992;if(!w(_0x563bf3))return!0x1;let _0x5aea1c=_0x173fb8(_0x563bf3);return _0x5aea1c[_0x2b87f1(0x173)]>_0x7437f3&&_0x5aea1c[_0x2b87f1(0x10d)]<_0x3beea0;})[_0x195992(0x14e)](_0x1ef998=>_0x1ef998[_0x195992(0x170)]))??[];qe(_0x54a2fa,_0x7437f3,_0x3beea0,''),_0x54a2fa[_0x195992(0xe9)]=[...((_0x8fd26c=_0x54a2fa[_0x195992(0xe9)])==null?void 0x0:_0x8fd26c['filter'](_0x2fd7c7=>!_0x415f09[_0x195992(0x15c)](_0x2fd7c7['rangeId'])&&_0x2fd7c7[_0x195992(0x170)]!==_0xea415d[_0x195992(0x170)]))??[],Ue(_0xea415d[_0x195992(0x170)],_0x7437f3)]['sort']((_0x2f5511,_0x27d02f)=>_0x2f5511['startIndex']-_0x27d02f[_0x195992(0xc8)]);let _0x5d1090=E(_0xea415d['resource']);return _0x415f09[_0x195992(0xef)](_0x207ffc=>{delete _0x5d1090['formulas'][_0x207ffc];}),_0x5d1090['formulas'][_0xea415d[_0x195992(0x170)]]=_0x29e987[_0x195992(0xe4)](_0xea415d[_0x195992(0xd6)]),{'nextDocumentData':_0x5fd1b0,'nextResource':_0x5d1090,'cursorOffset':_0x7437f3+0x1};}function ze(_0x19567a){const _0x154813=_0x11b942;var _0x327ab7,_0x497230;let _0x2061fa=_0x29e987['deepClone'](_0x19567a[_0x154813(0x15e)]),_0xc5e36c=(_0x327ab7=j(_0x2061fa)['customRanges'])==null?void 0x0:_0x327ab7[_0x154813(0xb2)](_0x3c9809=>_0x3c9809[_0x154813(0x170)]===_0x19567a[_0x154813(0x170)]&&w(_0x3c9809));if(!_0xc5e36c||!((_0x497230=_0x19567a['resource'])!=null&&_0x497230[_0x154813(0x12b)][_0x19567a[_0x154813(0x170)]]))return null;let _0x34e0e9=E(_0x19567a[_0x154813(0xf3)]);return _0x34e0e9[_0x154813(0x12b)][_0x19567a[_0x154813(0x170)]]=_0x29e987[_0x154813(0xe4)](_0x19567a['config']),{'nextDocumentData':_0x2061fa,'nextResource':_0x34e0e9,'cursorOffset':_0xc5e36c['endIndex']+0x1};}function Be(_0x2ca315){const _0x10ed2c=_0x11b942;let _0x430012=_0x29e987['deepClone'](_0x2ca315['documentData']),_0x184b6e=Je(_0x430012,_0x2ca315[_0x10ed2c(0x170)],_0x2ca315[_0x10ed2c(0x14d)]??'');if(_0x184b6e==null)return null;let _0x203891=E(_0x2ca315[_0x10ed2c(0xf3)]);return delete _0x203891[_0x10ed2c(0x12b)][_0x2ca315[_0x10ed2c(0x170)]],{'nextDocumentData':_0x430012,'nextResource':_0x203891,'cursorOffset':_0x184b6e};}function Ve(_0x405da3,_0x2000ad){const _0x1762bb=_0x11b942;var _0xff5ccc;let _0x12a0a7=_0x29e987[_0x1762bb(0xe4)](_0x405da3),_0x29eeea=_0x12a0a7[_0x1762bb(0x166)];if(!_0x29eeea)return _0x12a0a7;let _0x49e3b9=new Map(_0x2000ad['map'](_0x3b98fb=>[_0x3b98fb[_0x1762bb(0x170)],_0x3b98fb[_0x1762bb(0x14d)]])),_0x1056e3=((_0xff5ccc=_0x29eeea[_0x1762bb(0xe9)])==null?void 0x0:_0xff5ccc[_0x1762bb(0x112)](_0x5b15af=>w(_0x5b15af)&&_0x49e3b9[_0x1762bb(0x154)](_0x5b15af[_0x1762bb(0x170)]))[_0x1762bb(0x13e)]((_0x5c2361,_0x9c3430)=>_0x9c3430[_0x1762bb(0xc8)]-_0x5c2361[_0x1762bb(0xc8)]))??[];for(let _0x460505 of _0x1056e3)Je(_0x12a0a7,_0x460505[_0x1762bb(0x170)],_0x49e3b9[_0x1762bb(0x102)](_0x460505[_0x1762bb(0x170)])??'');return _0x12a0a7;}function w(_0x4bb691){const _0x3b7c80=_0x11b942;var _0x12a004;return(_0x4bb691==null?void 0x0:_0x4bb691[_0x3b7c80(0xab)])===_0x3e39c6['CUSTOM']&&_0x4bb691[_0x3b7c80(0x157)]===!0x0&&((_0x12a004=_0x4bb691[_0x3b7c80(0xad)])==null?void 0x0:_0x12a004[_0x3b7c80(0xc7)])==='univer-docs-formula';}function T(_0x477c0d,_0x1be433){const _0x4c7fef=_0x11b942;var _0x986493;return _0x477c0d==null||(_0x986493=_0x477c0d[_0x4c7fef(0xe9)])==null?void 0x0:_0x986493['find'](_0x1d6f60=>_0x1d6f60['rangeId']===_0x1be433&&w(_0x1d6f60));}function He(_0x29e64e,_0x36a886,_0x49297d){const _0x1e9800=_0x11b942;if(_0x36a886===_0x49297d){if(Le[_0x1e9800(0x154)](_0x29e64e[_0x1e9800(0x11a)][_0x36a886]))throw new C();return;}for(let _0x44ce54=_0x36a886;_0x44ce54<_0x49297d;_0x44ce54++)if(_0x29e64e['dataStream'][_0x44ce54]===_0x104972[_0x1e9800(0x175)]||Le[_0x1e9800(0x154)](_0x29e64e[_0x1e9800(0x11a)][_0x44ce54]))throw new C();}function Ue(_0x24491e,_0x551d8e){return{'startIndex':_0x551d8e,'endIndex':_0x551d8e,'rangeId':_0x24491e,'rangeType':_0x3e39c6['CUSTOM'],'wholeEntity':!0x0,'properties':{'kind':Me}};}function E(_0x3a6a75){const _0xbfb92c=_0x11b942;return _0x3a6a75?_0x29e987[_0xbfb92c(0xe4)](_0x3a6a75):b();}function We(_0x346b65,_0x38fa8d,_0x5197a5){const _0x51f1d6=_0x11b942;let _0x2a81d2=Ke(_0x346b65),_0x5ace16=_0x38fa8d??_0x2a81d2,_0x332286=_0x5197a5??_0x5ace16;return{'startOffset':Ge(Math[_0x51f1d6(0xed)](_0x5ace16,_0x332286),_0x2a81d2),'endOffset':Ge(Math[_0x51f1d6(0x17f)](_0x5ace16,_0x332286),_0x2a81d2)};}function Ge(_0x573caf,_0x3939e5){const _0x46f4f1=_0x11b942;return Math['max'](0x0,Math[_0x46f4f1(0xed)](_0x573caf,_0x3939e5));}function Ke(_0x2e7713){const _0x1d24ae=_0x11b942;return _0x2e7713['dataStream'][_0x1d24ae(0xfc)](''+_0x104972[_0x1d24ae(0x175)]+_0x104972['SECTION_BREAK'])?Math['max'](0x0,_0x2e7713[_0x1d24ae(0x11a)][_0x1d24ae(0x10b)]-0x2):_0x2e7713['dataStream'][_0x1d24ae(0xfc)](_0x104972[_0x1d24ae(0xcb)])?Math[_0x1d24ae(0x17f)](0x0,_0x2e7713[_0x1d24ae(0x11a)][_0x1d24ae(0x10b)]-0x1):_0x2e7713[_0x1d24ae(0x11a)][_0x1d24ae(0x10b)];}function qe(_0x129a86,_0x4c36a5,_0x58d99d,_0x4f79be){_0x58d99d>_0x4c36a5&&Xe(_0x129a86,_0x4c36a5,_0x58d99d),Ye(_0x129a86,_0x4c36a5,_0x4f79be);}function Je(_0x5cec49,_0x1f2b63,_0x31aef6){const _0x5acb4f=_0x11b942;var _0xf8272,_0x3083db;let _0x2f28b7=j(_0x5cec49),_0x1e04d0=(_0xf8272=_0x2f28b7['customRanges'])==null?void 0x0:_0xf8272['find'](_0x49f6ba=>_0x49f6ba['rangeId']===_0x1f2b63&&w(_0x49f6ba));if(!_0x1e04d0)return null;let _0xe7a677=_0x173fb8(_0x1e04d0);return qe(_0x2f28b7,_0xe7a677[_0x5acb4f(0x10d)],_0xe7a677[_0x5acb4f(0x173)],_0x31aef6),_0x2f28b7[_0x5acb4f(0xe9)]=(_0x3083db=_0x2f28b7[_0x5acb4f(0xe9)])==null?void 0x0:_0x3083db['filter'](_0x215df9=>_0x215df9[_0x5acb4f(0x170)]!==_0x1f2b63),_0xe7a677[_0x5acb4f(0x10d)]+_0x31aef6['length'];}function Ye(_0x1e8759,_0x2184a8,_0x1319bc){const _0x5120ac=_0x11b942;_0x1319bc&&(_0x1e8759[_0x5120ac(0x11a)]=''+_0x1e8759[_0x5120ac(0x11a)][_0x5120ac(0x10c)](0x0,_0x2184a8)+_0x1319bc+_0x1e8759[_0x5120ac(0x11a)][_0x5120ac(0x10c)](_0x2184a8),Ze(_0x1e8759,_0x2184a8,_0x1319bc[_0x5120ac(0x10b)]));}function Xe(_0x2e8789,_0x20f1df,_0x59dfbe){const _0x2ace64=_0x11b942;let _0x16b386=_0x59dfbe-_0x20f1df;_0x2e8789[_0x2ace64(0x11a)]=''+_0x2e8789[_0x2ace64(0x11a)][_0x2ace64(0x10c)](0x0,_0x20f1df)+_0x2e8789[_0x2ace64(0x11a)][_0x2ace64(0x10c)](_0x59dfbe),Qe(_0x2e8789,_0x20f1df,_0x16b386);}function Ze(_0x568aa6,_0xb1fb5a,_0xcf68ae){const _0x1a1195=_0x11b942;_0x568aa6[_0x1a1195(0x156)]=D(_0x568aa6['paragraphs'],_0xb1fb5a,_0xcf68ae),_0x568aa6[_0x1a1195(0x162)]=D(_0x568aa6[_0x1a1195(0x162)],_0xb1fb5a,_0xcf68ae),_0x568aa6[_0x1a1195(0x8c)]=D(_0x568aa6[_0x1a1195(0x8c)],_0xb1fb5a,_0xcf68ae),_0x568aa6[_0x1a1195(0xdc)]=$e(_0x568aa6[_0x1a1195(0xdc)],_0xb1fb5a,_0xcf68ae),_0x568aa6['tables']=et(_0x568aa6[_0x1a1195(0x174)],_0xb1fb5a,_0xcf68ae),_0x568aa6['columnGroups']=k(_0x568aa6[_0x1a1195(0x9d)],_0xb1fb5a,_0xcf68ae),_0x568aa6['customRanges']=k(_0x568aa6[_0x1a1195(0xe9)],_0xb1fb5a,_0xcf68ae),_0x568aa6[_0x1a1195(0xba)]=k(_0x568aa6[_0x1a1195(0xba)],_0xb1fb5a,_0xcf68ae),_0x568aa6[_0x1a1195(0x158)]=k(_0x568aa6[_0x1a1195(0x158)],_0xb1fb5a,_0xcf68ae);}function Qe(_0x10763f,_0x2f8b40,_0x42e815){const _0x2b4518=_0x11b942;var _0x3020dc,_0x533860;_0x10763f[_0x2b4518(0x156)]=O(_0x10763f[_0x2b4518(0x156)],_0x2f8b40,_0x42e815),_0x10763f[_0x2b4518(0x162)]=O(_0x10763f['sectionBreaks'],_0x2f8b40,_0x42e815),_0x10763f[_0x2b4518(0x8c)]=O(_0x10763f['customBlocks'],_0x2f8b40,_0x42e815),_0x10763f[_0x2b4518(0xdc)]=(_0x3020dc=tt((_0x533860=_0x10763f[_0x2b4518(0xdc)])==null?void 0x0:_0x533860[_0x2b4518(0x14e)](_0x460e02=>({..._0x460e02,'startIndex':_0x460e02['st'],'endIndex':_0x460e02['ed']})),_0x2f8b40,_0x42e815))==null?void 0x0:_0x3020dc['map'](_0x1930ec=>{let {startIndex:_0x5d2e45,endIndex:_0x1a4e94,..._0x12a171}=_0x1930ec;return{..._0x12a171,'st':_0x5d2e45,'ed':_0x1a4e94};}),_0x10763f[_0x2b4518(0x174)]=tt(_0x10763f[_0x2b4518(0x174)],_0x2f8b40,_0x42e815),_0x10763f['columnGroups']=A(_0x10763f['columnGroups'],_0x2f8b40,_0x42e815),_0x10763f[_0x2b4518(0xe9)]=A(_0x10763f['customRanges'],_0x2f8b40,_0x42e815),_0x10763f[_0x2b4518(0xba)]=A(_0x10763f[_0x2b4518(0xba)],_0x2f8b40,_0x42e815),_0x10763f[_0x2b4518(0x158)]=A(_0x10763f[_0x2b4518(0x158)],_0x2f8b40,_0x42e815);}function D(_0x8e720f,_0x24a9f6,_0x44adbf){const _0x189360=_0x11b942;return _0x8e720f==null?void 0x0:_0x8e720f[_0x189360(0x14e)](_0x11b025=>_0x11b025[_0x189360(0xc8)]>=_0x24a9f6?{..._0x11b025,'startIndex':_0x11b025['startIndex']+_0x44adbf}:_0x11b025);}function O(_0x30025c,_0x45f48d,_0x365830){const _0x5de980=_0x11b942;let _0x180ec2=_0x45f48d+_0x365830;return _0x30025c==null?void 0x0:_0x30025c[_0x5de980(0x14e)](_0x40fddc=>_0x40fddc[_0x5de980(0xc8)]>=_0x45f48d&&_0x40fddc[_0x5de980(0xc8)]<_0x180ec2?null:_0x40fddc[_0x5de980(0xc8)]>=_0x180ec2?{..._0x40fddc,'startIndex':_0x40fddc[_0x5de980(0xc8)]-_0x365830}:_0x40fddc)[_0x5de980(0x112)](_0x45ba60=>_0x45ba60!=null);}function $e(_0x4da71b,_0x26212e,_0x21fc3a){const _0x4b5ad2=_0x11b942;return _0x4da71b==null?void 0x0:_0x4da71b[_0x4b5ad2(0x14e)](_0xe6898d=>_0xe6898d['st']>=_0x26212e?{..._0xe6898d,'st':_0xe6898d['st']+_0x21fc3a,'ed':_0xe6898d['ed']+_0x21fc3a}:_0xe6898d['ed']>_0x26212e?{..._0xe6898d,'ed':_0xe6898d['ed']+_0x21fc3a}:_0xe6898d);}function k(_0x15a7b2,_0x325651,_0x1e1363){const _0xcf15b1=_0x11b942;return _0x15a7b2==null?void 0x0:_0x15a7b2[_0xcf15b1(0x14e)](_0x2f962e=>_0x44d86d(_0x2f962e,_0x325651,_0x1e1363));}function et(_0x5ab970,_0x1fbe5a,_0x3c93ba){return _0x5ab970==null?void 0x0:_0x5ab970['map'](_0x52cf5a=>_0x15d769(_0x52cf5a,_0x1fbe5a,_0x3c93ba));}function A(_0x4f6cfa,_0x362857,_0x3c1751){const _0x1a8e21=_0x11b942;return _0x4f6cfa==null?void 0x0:_0x4f6cfa[_0x1a8e21(0x14e)](_0x15e541=>_0x3d5ca1(_0x15e541,_0x362857,_0x3c1751))[_0x1a8e21(0x112)](_0x567181=>_0x567181!=null);}function tt(_0x203008,_0x43c353,_0x143312){const _0x24b1b5=_0x11b942;return _0x203008==null?void 0x0:_0x203008[_0x24b1b5(0x14e)](_0x498371=>_0x20fbe4(_0x498371,_0x43c353,_0x143312))[_0x24b1b5(0x112)](_0x3f72dc=>_0x3f72dc!=null);}function j(_0x456650){const _0x28a72c=_0x11b942;if(!_0x456650[_0x28a72c(0x166)])throw Error(_0x28a72c(0xac));return _0x456650[_0x28a72c(0x166)];}function M(_0x278878){'@babel/helpers - typeof';const _0xd3b544=_0x11b942;return M=typeof Symbol=='function'&&typeof Symbol[_0xd3b544(0x100)]==_0xd3b544(0x88)?function(_0x174225){return typeof _0x174225;}:function(_0xd6d513){const _0x1cfdd5=_0xd3b544;return _0xd6d513&&typeof Symbol=='function'&&_0xd6d513[_0x1cfdd5(0x181)]===Symbol&&_0xd6d513!==Symbol[_0x1cfdd5(0x163)]?_0x1cfdd5(0x88):typeof _0xd6d513;},M(_0x278878);}function nt(_0x4a9f47,_0xcb17e9){const _0x4c5e3b=_0x11b942;if(M(_0x4a9f47)!=_0x4c5e3b(0xee)||!_0x4a9f47)return _0x4a9f47;var _0x5a5e97=_0x4a9f47[Symbol['toPrimitive']];if(_0x5a5e97!==void 0x0){var _0x54d828=_0x5a5e97['call'](_0x4a9f47,_0xcb17e9||_0x4c5e3b(0xca));if(M(_0x54d828)!=_0x4c5e3b(0xee))return _0x54d828;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0xcb17e9==='string'?String:Number)(_0x4a9f47);}function rt(_0x55ccd1){const _0x3fd0fb=_0x11b942;var _0x3848a8=nt(_0x55ccd1,_0x3fd0fb(0xf2));return M(_0x3848a8)==_0x3fd0fb(0x88)?_0x3848a8:_0x3848a8+'';}function N(_0x14d039,_0x517f30,_0x3a645e){const _0x559784=_0x11b942;return(_0x517f30=rt(_0x517f30))in _0x14d039?Object[_0x559784(0xa8)](_0x14d039,_0x517f30,{'value':_0x3a645e,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x14d039[_0x517f30]=_0x3a645e,_0x14d039;}var P=class extends _0x35945f{constructor(..._0x479524){const _0x2ca207=_0x11b942;super(..._0x479524),N(this,_0x2ca207(0x147),new Map()),N(this,_0x2ca207(0x14c),new Map()),N(this,_0x2ca207(0x87),new Map()),N(this,'_change$',new _0x6a8876()),N(this,_0x2ca207(0x80),this[_0x2ca207(0xbc)]['asObservable']());}[_0x11b942(0x161)](_0x1f6232,_0x2ceb6a){const _0x552495=_0x11b942;var _0xac7178;let _0xf6de4=(_0xac7178=this['_resources'][_0x552495(0x102)](_0x1f6232))==null?void 0x0:_0xac7178[_0x552495(0x12b)][_0x2ceb6a];return _0xf6de4?_0x29e987[_0x552495(0xe4)](_0xf6de4):void 0x0;}['getFormulas'](_0x1be989){const _0x540a28=_0x11b942;var _0x1b4de5;return _0x29e987[_0x540a28(0xe4)](((_0x1b4de5=this['_resources']['get'](_0x1be989))==null?void 0x0:_0x1b4de5[_0x540a28(0x12b)])??{});}['getResource'](_0x390fe7){const _0x1132ee=_0x11b942;let _0x550689=this[_0x1132ee(0x147)][_0x1132ee(0x102)](_0x390fe7);return _0x550689?_0x29e987['deepClone'](_0x550689):void 0x0;}['setFormula'](_0x5b7bb5,_0x3359a4,_0x9128dc){const _0x186196=_0x11b942;return this[_0x186196(0x149)](_0x5b7bb5,{[_0x3359a4]:_0x9128dc});}[_0x11b942(0x11f)](_0x11d614,_0x4f84ef){const _0x1f86c6=_0x11b942;return this[_0x1f86c6(0x87)]['has'](_0x11d614)||!x(_0x4f84ef)?!0x1:(this[_0x1f86c6(0x147)][_0x1f86c6(0x172)](_0x11d614,_0x29e987['deepClone'](_0x4f84ef)),this[_0x1f86c6(0xbc)][_0x1f86c6(0xa0)]({'unitId':_0x11d614}),!0x0);}[_0x11b942(0x149)](_0x211884,_0x12aa01){const _0x55d54b=_0x11b942;if(this[_0x55d54b(0x87)]['has'](_0x211884)||!Object[_0x55d54b(0xde)](_0x12aa01)['length']||!x({'schemaVersion':0x1,'formulas':_0x12aa01}))return!0x1;let _0x541d0c=this[_0x55d54b(0x147)]['get'](_0x211884)??b(),_0x2b5690=_0x29e987[_0x55d54b(0xe4)](_0x541d0c);return Object[_0x55d54b(0xec)](_0x2b5690[_0x55d54b(0x12b)],_0x29e987[_0x55d54b(0xe4)](_0x12aa01)),this[_0x55d54b(0x147)][_0x55d54b(0x172)](_0x211884,_0x2b5690),this[_0x55d54b(0xbc)]['next']({'unitId':_0x211884,'rangeIds':Object[_0x55d54b(0xde)](_0x12aa01)}),!0x0;}[_0x11b942(0xa3)](_0x5a456e,_0x2c798b){const _0x11a1ba=_0x11b942;if(this['_loadErrors']['has'](_0x5a456e))return!0x1;let _0x43b0fc=this[_0x11a1ba(0x147)]['get'](_0x5a456e);if(!(_0x43b0fc!=null&&_0x43b0fc[_0x11a1ba(0x12b)][_0x2c798b]))return!0x1;let _0x8b3993=_0x29e987['deepClone'](_0x43b0fc);return delete _0x8b3993[_0x11a1ba(0x12b)][_0x2c798b],this['_resources'][_0x11a1ba(0x172)](_0x5a456e,_0x8b3993),this['_change$'][_0x11a1ba(0xa0)]({'unitId':_0x5a456e,'rangeIds':[_0x2c798b]}),!0x0;}[_0x11b942(0x141)](_0x325be0,_0x369cdf){const _0x15f568=_0x11b942;return _0x369cdf&&typeof _0x369cdf=='object'&&_0x15f568(0xb7)in _0x369cdf&&_0x369cdf['schemaVersion']!==0x1?(this[_0x15f568(0xff)](_0x325be0,_0x369cdf,_0x15f568(0x142)),!0x1):x(_0x369cdf)?(this['_resources'][_0x15f568(0x172)](_0x325be0,_0x29e987[_0x15f568(0xe4)](_0x369cdf)),this[_0x15f568(0x14c)]['delete'](_0x325be0),this[_0x15f568(0x87)][_0x15f568(0x91)](_0x325be0),this['_change$'][_0x15f568(0xa0)]({'unitId':_0x325be0}),!0x0):(this['_preserveInvalid'](_0x325be0,_0x369cdf,_0x15f568(0x9e)),!0x1);}[_0x11b942(0x13b)](_0x2d8f59){const _0x3235a8=_0x11b942;let _0x3b5a2d=this[_0x3235a8(0x147)][_0x3235a8(0x102)](_0x2d8f59);return _0x3b5a2d?_0x29e987[_0x3235a8(0xe4)](_0x3b5a2d):this[_0x3235a8(0x14c)][_0x3235a8(0x154)](_0x2d8f59)?_0x29e987[_0x3235a8(0xe4)](this['_rawResources']['get'](_0x2d8f59)):b();}[_0x11b942(0x176)](_0x5b8278){const _0x1e3b60=_0x11b942;return this[_0x1e3b60(0x87)]['get'](_0x5b8278);}[_0x11b942(0x133)](_0x139c78){const _0x3f9829=_0x11b942;this[_0x3f9829(0x147)][_0x3f9829(0x91)](_0x139c78),this['_rawResources'][_0x3f9829(0x91)](_0x139c78),this[_0x3f9829(0x87)]['delete'](_0x139c78),this[_0x3f9829(0xbc)][_0x3f9829(0xa0)]({'unitId':_0x139c78});}[_0x11b942(0xce)](){const _0x2a31c3=_0x11b942;this[_0x2a31c3(0x147)][_0x2a31c3(0x17c)](),this['_rawResources'][_0x2a31c3(0x17c)](),this[_0x2a31c3(0x87)]['clear'](),this[_0x2a31c3(0xbc)][_0x2a31c3(0x14b)](),super[_0x2a31c3(0xce)]();}[_0x11b942(0xff)](_0x4cd606,_0x3de666,_0x3ef237){const _0x536a52=_0x11b942;this['_resources']['delete'](_0x4cd606),this[_0x536a52(0x14c)][_0x536a52(0x172)](_0x4cd606,_0x29e987[_0x536a52(0xe4)](_0x3de666)),this[_0x536a52(0x87)][_0x536a52(0x172)](_0x4cd606,_0x3ef237),this[_0x536a52(0xbc)][_0x536a52(0xa0)]({'unitId':_0x4cd606});}};let it=function(_0x3a4437){const _0x51751b=_0x11b942;return _0x3a4437['EMPTY']=_0x51751b(0xcc),_0x3a4437['PENDING']='pending',_0x3a4437[_0x51751b(0x119)]=_0x51751b(0x11e),_0x3a4437[_0x51751b(0x160)]=_0x51751b(0x12a),_0x3a4437;}({});function F(_0x18ffd1,_0x33be9e){return function(_0x4cb237,_0xe92de0){_0x33be9e(_0x4cb237,_0xe92de0,_0x18ffd1);};}function I(_0x10e2d5,_0x41fd51,_0x47c69f,_0x22e508){const _0x314f53=_0x11b942;var _0x4d43ab=arguments[_0x314f53(0x10b)],_0x567725=_0x4d43ab<0x3?_0x41fd51:_0x22e508===null?_0x22e508=Object[_0x314f53(0x179)](_0x41fd51,_0x47c69f):_0x22e508,_0x2f2e05;if(typeof Reflect==_0x314f53(0xee)&&typeof Reflect['decorate']==_0x314f53(0xd8))_0x567725=Reflect[_0x314f53(0xf0)](_0x10e2d5,_0x41fd51,_0x47c69f,_0x22e508);else{for(var _0x54ff2d=_0x10e2d5[_0x314f53(0x10b)]-0x1;_0x54ff2d>=0x0;_0x54ff2d--)(_0x2f2e05=_0x10e2d5[_0x54ff2d])&&(_0x567725=(_0x4d43ab<0x3?_0x2f2e05(_0x567725):_0x4d43ab>0x3?_0x2f2e05(_0x41fd51,_0x47c69f,_0x567725):_0x2f2e05(_0x41fd51,_0x47c69f))||_0x567725);}return _0x4d43ab>0x3&&_0x567725&&Object[_0x314f53(0xa8)](_0x41fd51,_0x47c69f,_0x567725),_0x567725;}let L=class extends _0x35945f{constructor(_0x5a1517,_0x45f236,_0x4c537d){const _0x1ab3f8=_0x11b942;super(),this[_0x1ab3f8(0x178)]=_0x5a1517,this[_0x1ab3f8(0x12e)]=_0x45f236,this[_0x1ab3f8(0x104)]=_0x4c537d,N(this,_0x1ab3f8(0xeb),new Map()),N(this,_0x1ab3f8(0x131),new Map()),N(this,'_presentationChanged$',new _0x6a8876()),N(this,'presentationChanged$',this[_0x1ab3f8(0x17e)][_0x1ab3f8(0xf7)]()),this['disposeWithMe'](this[_0x1ab3f8(0x12e)][_0x1ab3f8(0x115)][_0x1ab3f8(0x94)](_0x397d5b=>{const _0x2d961e=_0x1ab3f8;for(let _0x2ac374 of Object['values'](_0x397d5b))for(let _0xbdb530 of Object[_0x2d961e(0xfe)](_0x2ac374))_0xbdb530[_0x2d961e(0xef)](_0x5ad07b=>this[_0x2d961e(0xc2)](_0x5ad07b));}));}[_0x11b942(0x14f)](_0x5030b0){const _0x2b5e8e=_0x11b942;var _0x51ed76;let _0x1f8ffa=_0x5030b0[_0x2b5e8e(0xdd)](),_0xd6e6b9=((_0x51ed76=_0x5030b0[_0x2b5e8e(0x10e)]()[_0x2b5e8e(0x166)])==null||(_0x51ed76=_0x51ed76[_0x2b5e8e(0xe9)])==null?void 0x0:_0x51ed76['filter'](w))??[],_0x5c89fd=this['_model'][_0x2b5e8e(0xc3)](_0x1f8ffa),_0x32d6dd=new Set();for(let _0x61aee9 of _0xd6e6b9){let _0x2ec4a7=_0x5c89fd[_0x61aee9[_0x2b5e8e(0x170)]];_0x2ec4a7&&(_0x32d6dd[_0x2b5e8e(0xfb)](R(_0x1f8ffa,_0x61aee9[_0x2b5e8e(0x170)])),this[_0x2b5e8e(0x171)]({'unitId':_0x1f8ffa,'rangeId':_0x61aee9[_0x2b5e8e(0x170)]},_0x2ec4a7));}for(let _0x1230df of Array[_0x2b5e8e(0x15f)](this[_0x2b5e8e(0xeb)][_0x2b5e8e(0xfe)]()))_0x1230df[_0x2b5e8e(0x84)]===_0x1f8ffa&&!_0x32d6dd[_0x2b5e8e(0x154)](R(_0x1230df['unitId'],_0x1230df[_0x2b5e8e(0x170)]))&&this['unregister'](_0x1230df);}['register'](_0x159979,_0x456ff0){const _0x104fa0=_0x11b942;let _0x2b2923=R(_0x159979[_0x104fa0(0x84)],_0x159979['rangeId']),_0x282abf=this[_0x104fa0(0xeb)][_0x104fa0(0x102)](_0x2b2923),_0x4de174=this[_0x104fa0(0x104)][_0x104fa0(0x9b)](_0x159979[_0x104fa0(0x84)]);if(_0x282abf&&_0x282abf[_0x104fa0(0xd6)][_0x104fa0(0x16f)]===_0x456ff0[_0x104fa0(0x16f)]&&_0x282abf[_0x104fa0(0x7e)]===_0x4de174){_0x282abf['config']=_0x456ff0;let _0x155cf1=_0x282abf['formulaId']?this[_0x104fa0(0x12e)]['getFormulaValueSync'](_0x282abf[_0x104fa0(0x84)],_0x282abf[_0x104fa0(0x84)],_0x282abf['formulaId'])??void 0x0:void 0x0;_0x282abf[_0x104fa0(0x126)]=_0x155cf1,this[_0x104fa0(0x90)](_0x2b2923,z(_0x456ff0,_0x155cf1));return;}_0x282abf!=null&&_0x282abf[_0x104fa0(0xda)]&&this[_0x104fa0(0xbd)](_0x282abf);let _0x645d11={..._0x159979,'config':_0x456ff0,'referenceRevision':_0x4de174,'presentation':z(_0x456ff0,void 0x0)};if(this['_registrations'][_0x104fa0(0x172)](_0x2b2923,_0x645d11),!_0x456ff0[_0x104fa0(0x16f)][_0x104fa0(0x8b)]())return;let _0x274559=this['_registrationService'][_0x104fa0(0x140)](_0x159979[_0x104fa0(0x84)],_0x159979[_0x104fa0(0x84)],_0x456ff0[_0x104fa0(0x16f)],void 0x0,{'rangeId':_0x159979[_0x104fa0(0x170)]},_0x591f38['DOC'],_0x159979['rangeId']);_0x645d11['formulaId']=_0x274559,this[_0x104fa0(0x131)][_0x104fa0(0x172)](_0x274559,_0x2b2923);}[_0x11b942(0xb1)](_0x2a7815){const _0x4def0a=_0x11b942;let _0x269cd7=R(_0x2a7815[_0x4def0a(0x84)],_0x2a7815[_0x4def0a(0x170)]),_0x2e5936=this['_registrations'][_0x4def0a(0x102)](_0x269cd7);_0x2e5936&&(this[_0x4def0a(0xbd)](_0x2e5936),this[_0x4def0a(0xeb)][_0x4def0a(0x91)](_0x269cd7));}[_0x11b942(0x109)](_0x2dd82a){const _0x462432=_0x11b942;for(let _0xc537f5 of Array[_0x462432(0x15f)](this[_0x462432(0xeb)][_0x462432(0xfe)]()))_0xc537f5[_0x462432(0x84)]===_0x2dd82a&&this[_0x462432(0xb1)](_0xc537f5);}['getPresentation'](_0x56b19e){const _0x3b094f=_0x11b942;var _0x4172d0;return(_0x4172d0=this[_0x3b094f(0xeb)][_0x3b094f(0x102)](R(_0x56b19e[_0x3b094f(0x84)],_0x56b19e['rangeId'])))==null?void 0x0:_0x4172d0[_0x3b094f(0x137)];}[_0x11b942(0x123)](_0x1c2f7e){const _0xe1ca3c=_0x11b942;let _0x2c7af9=this[_0xe1ca3c(0xeb)][_0xe1ca3c(0x102)](R(_0x1c2f7e[_0xe1ca3c(0x84)],_0x1c2f7e[_0xe1ca3c(0x170)]));return _0x2c7af9?B(_0x2c7af9):void 0x0;}['getRegisteredFormulas'](){const _0x3c122e=_0x11b942;return Array[_0x3c122e(0x15f)](this[_0x3c122e(0xeb)][_0x3c122e(0xfe)](),_0x5b1919=>({'identity':{'unitId':_0x5b1919[_0x3c122e(0x84)],'rangeId':_0x5b1919['rangeId']},'config':_0x5b1919[_0x3c122e(0xd6)],'referenceRevision':_0x5b1919[_0x3c122e(0x7e)],..._0x5b1919[_0x3c122e(0x126)]?{'liveResult':_0x5b1919[_0x3c122e(0x126)]}:null}));}[_0x11b942(0xce)](){const _0x295781=_0x11b942;for(let _0x4f04c5 of this[_0x295781(0xeb)][_0x295781(0xfe)]())this['_deleteRegistration'](_0x4f04c5);this[_0x295781(0xeb)][_0x295781(0x17c)](),this[_0x295781(0x131)]['clear'](),this[_0x295781(0x17e)][_0x295781(0x14b)](),super[_0x295781(0xce)]();}[_0x11b942(0xc2)](_0x1625ad){const _0x9a5ca7=_0x11b942;let _0x1cb00c=this[_0x9a5ca7(0x131)][_0x9a5ca7(0x102)](_0x1625ad['formulaId']),_0x28a1f8=_0x1cb00c?this['_registrations'][_0x9a5ca7(0x102)](_0x1cb00c):void 0x0;!_0x1cb00c||!_0x28a1f8||(_0x28a1f8[_0x9a5ca7(0x126)]=_0x1625ad,this[_0x9a5ca7(0x90)](_0x1cb00c,z(_0x28a1f8['config'],_0x1625ad)));}['_setPresentation'](_0x5a3ed7,_0x311d59){const _0x9d6f31=_0x11b942;var _0x124b71,_0x485bfe;let _0x1c1e74=this[_0x9d6f31(0xeb)][_0x9d6f31(0x102)](_0x5a3ed7);if(!_0x1c1e74||at(_0x1c1e74[_0x9d6f31(0x137)],_0x311d59))return;let _0x4fc8f9=_0x1c1e74[_0x9d6f31(0x137)],_0x334375=B(_0x1c1e74);_0x1c1e74[_0x9d6f31(0x137)]=_0x311d59,this[_0x9d6f31(0x17e)][_0x9d6f31(0xa0)]({'unitId':_0x1c1e74[_0x9d6f31(0x84)],'rangeId':_0x1c1e74[_0x9d6f31(0x170)],'presentation':_0x311d59,'previousPresentation':_0x4fc8f9,'result':B(_0x1c1e74),'previousResult':{..._0x334375,..._0x4fc8f9,'value':(_0x124b71=_0x4fc8f9[_0x9d6f31(0x8e)])==null?void 0x0:_0x124b71['v'],'valueType':((_0x485bfe=_0x4fc8f9[_0x9d6f31(0x8e)])==null?void 0x0:_0x485bfe['t'])??void 0x0}});}['_deleteRegistration'](_0x3fdd76){const _0x42639b=_0x11b942;_0x3fdd76[_0x42639b(0xda)]&&(this[_0x42639b(0x12e)]['deleteFormula'](_0x3fdd76['unitId'],_0x3fdd76[_0x42639b(0x84)],[_0x3fdd76[_0x42639b(0xda)]]),this[_0x42639b(0x131)][_0x42639b(0x91)](_0x3fdd76[_0x42639b(0xda)]));}};L=I([F(0x0,_0x3d3024(P)),F(0x1,_0x3d3024(_0xa717d0)),F(0x2,_0x3d3024(_0x4e55da))],L);function R(_0x58c0df,_0x142750){return _0x58c0df+'\x00'+_0x142750;}function z(_0x2fbfb4,_0x31e794){const _0x3dc0de=_0x11b942;return _0x57ce95({'numberFormat':_0x2fbfb4[_0x3dc0de(0x13c)],'lastValue':_0x2fbfb4[_0x3dc0de(0xdb)],'result':_0x31e794});}function B(_0x1841d6){const _0xc0e2f9=_0x11b942;var _0x55ed7e,_0x5bf50f,_0x3e9436;let _0x2a4df2=_0x1841d6[_0xc0e2f9(0x137)],_0x3009a6=_0x1841d6[_0xc0e2f9(0xd6)]['formula'][_0xc0e2f9(0x8b)]()?_0x2a4df2[_0xc0e2f9(0x11c)]||_0x2a4df2[_0xc0e2f9(0x8e)]==null?_0xc0e2f9(0x11d):((_0x55ed7e=_0x1841d6[_0xc0e2f9(0x126)])==null?void 0x0:_0x55ed7e[_0xc0e2f9(0xb3)])===_0x110262[_0xc0e2f9(0x160)]?'error':_0xc0e2f9(0x11e):_0xc0e2f9(0xcc);return{..._0x2a4df2,'status':_0x3009a6,'value':(_0x5bf50f=_0x2a4df2[_0xc0e2f9(0x8e)])==null?void 0x0:_0x5bf50f['v'],'valueType':((_0x3e9436=_0x2a4df2[_0xc0e2f9(0x8e)])==null?void 0x0:_0x3e9436['t'])??void 0x0};}function at(_0x473611,_0x1e00c8){const _0x1e38da=_0x11b942;var _0x17b95c,_0x45599b,_0x6a711e,_0xef6d9c;return _0x473611[_0x1e38da(0x14d)]===_0x1e00c8[_0x1e38da(0x14d)]&&_0x473611['color']===_0x1e00c8[_0x1e38da(0xe0)]&&_0x473611['pattern']===_0x1e00c8[_0x1e38da(0xc1)]&&_0x473611[_0x1e38da(0xfa)]===_0x1e00c8[_0x1e38da(0xfa)]&&_0x473611[_0x1e38da(0x11c)]===_0x1e00c8[_0x1e38da(0x11c)]&&((_0x17b95c=_0x473611[_0x1e38da(0x8e)])==null?void 0x0:_0x17b95c['t'])===((_0x45599b=_0x1e00c8[_0x1e38da(0x8e)])==null?void 0x0:_0x45599b['t'])&&Object['is']((_0x6a711e=_0x473611[_0x1e38da(0x8e)])==null?void 0x0:_0x6a711e['v'],(_0xef6d9c=_0x1e00c8[_0x1e38da(0x8e)])==null?void 0x0:_0xef6d9c['v']);}const ot={'id':_0x11b942(0xf8),'type':_0x5965b8[_0x11b942(0x15d)],'handler':(_0x6a7fdf,_0x1d683a)=>!(_0x1d683a!=null&&_0x1d683a[_0x11b942(0x84)])||!_0x1d683a[_0x11b942(0x170)]||!_0x1d683a[_0x11b942(0xd6)]?!0x1:_0x6a7fdf[_0x11b942(0x102)](P)['setFormula'](_0x1d683a[_0x11b942(0x84)],_0x1d683a['rangeId'],_0x1d683a[_0x11b942(0xd6)])},st={'id':_0x11b942(0x117),'type':_0x5965b8[_0x11b942(0x15d)],'handler':(_0x1c0473,_0x59a01b)=>!(_0x59a01b!=null&&_0x59a01b[_0x11b942(0x84)])||!_0x59a01b[_0x11b942(0x170)]?!0x1:_0x1c0473[_0x11b942(0x102)](P)['removeFormula'](_0x59a01b[_0x11b942(0x84)],_0x59a01b[_0x11b942(0x170)])},V={'id':_0x11b942(0xa4),'type':_0x5965b8[_0x11b942(0x15d)],'handler':(_0x39bea1,_0x3af3e3)=>!(_0x3af3e3!=null&&_0x3af3e3[_0x11b942(0x84)])||!_0x3af3e3[_0x11b942(0xf3)]?!0x1:_0x39bea1[_0x11b942(0x102)](P)[_0x11b942(0x11f)](_0x3af3e3[_0x11b942(0x84)],_0x3af3e3['resource'])},H={'id':_0x11b942(0xf4),'type':_0x5965b8[_0x11b942(0x15d)],'handler':(_0x2ec8d9,_0x19b904)=>{const _0x5a20b4=_0x11b942;if(!(_0x19b904!=null&&_0x19b904['unitId'])||!_0x19b904[_0x5a20b4(0x12d)]['length'])return!0x1;let _0x330a82=_0x2ec8d9[_0x5a20b4(0x102)](P),_0x4d6167=_0x2ec8d9[_0x5a20b4(0x102)](_0x4e55da),_0x8774c0=_0x330a82['getResource'](_0x19b904[_0x5a20b4(0x84)]);if(!_0x8774c0)return!0x1;let _0x14c2d8=_0x29e987[_0x5a20b4(0xe4)](_0x8774c0),_0x56185d=!0x1;for(let _0x49edf2 of _0x19b904['updates']){var _0x5aa7a9,_0x45f57e,_0x24560d,_0x8e6c24;let _0x1cbef4=_0x14c2d8['formulas'][_0x49edf2[_0x5a20b4(0x170)]];!_0x1cbef4||_0x1cbef4['formula']!==_0x49edf2[_0x5a20b4(0x150)]||((_0x5aa7a9=_0x1cbef4[_0x5a20b4(0x13c)])==null?void 0x0:_0x5aa7a9[_0x5a20b4(0xc1)])!==_0x49edf2[_0x5a20b4(0x105)]||_0x4d6167[_0x5a20b4(0x9b)](_0x19b904[_0x5a20b4(0x84)])!==_0x49edf2[_0x5a20b4(0x98)]||(((_0x45f57e=_0x1cbef4[_0x5a20b4(0xdb)])==null?void 0x0:_0x45f57e['v'])!==_0x49edf2[_0x5a20b4(0xdb)]['v']||((_0x24560d=_0x1cbef4[_0x5a20b4(0xdb)])==null?void 0x0:_0x24560d['t'])!==_0x49edf2[_0x5a20b4(0xdb)]['t']||((_0x8e6c24=_0x1cbef4['lastValue'])==null?void 0x0:_0x8e6c24['pattern'])!==_0x49edf2[_0x5a20b4(0xdb)]['pattern'])&&(_0x1cbef4['lastValue']=_0x29e987[_0x5a20b4(0xe4)](_0x49edf2[_0x5a20b4(0xdb)]),_0x56185d=!0x0);}return!_0x56185d||_0x330a82['setResource'](_0x19b904[_0x5a20b4(0x84)],_0x14c2d8);}},U={'id':_0x11b942(0x146),'type':_0x5965b8[_0x11b942(0x9c)],'handler':(_0x2e4465,_0x59bbf1)=>{const _0x3b6fd4=_0x11b942;if(!(_0x59bbf1!=null&&_0x59bbf1[_0x3b6fd4(0x16f)][_0x3b6fd4(0x8b)]()))return!0x1;let _0x45bb42=q(_0x2e4465,_0x59bbf1[_0x3b6fd4(0x84)],'');if(!_0x45bb42)return!0x1;let _0x11edf8=ft(_0x59bbf1[_0x3b6fd4(0xb6)],_0x45bb42[_0x3b6fd4(0x166)],dt(_0x2e4465,_0x45bb42['unitId']));if(!_0x11edf8)return!0x1;let _0x4f1f31=pt(_0x2e4465,_0x45bb42['unitId'],_0x59bbf1[_0x3b6fd4(0x16f)],_0x59bbf1['externalReferences']??[]);if(!_0x4f1f31)return!0x1;let _0x1e0526=mt(_0x45bb42[_0x3b6fd4(0x166)],_0x45bb42[_0x3b6fd4(0xd9)],_0x45bb42['unitId']),_0x213562=ht({'documentData':_0x45bb42['documentData'],'resource':_0x45bb42[_0x3b6fd4(0xf3)],'rangeId':_0x1e0526,'config':{'formula':_0x59bbf1[_0x3b6fd4(0x16f)],..._0x59bbf1[_0x3b6fd4(0x13c)]?{'numberFormat':_0x59bbf1[_0x3b6fd4(0x13c)]}:null},'startOffset':_0x11edf8[_0x3b6fd4(0x10d)],'endOffset':_0x11edf8[_0x3b6fd4(0x173)]});if(!_0x213562)return!0x1;let _0x1cb69b=_0x1d12c5(_0x2e4465,_0x45bb42['unitId'],_0x4f1f31);return!_0x1cb69b||!J({'accessor':_0x2e4465,'document':_0x45bb42[_0x3b6fd4(0x110)],'unitId':_0x45bb42[_0x3b6fd4(0x84)],'trigger':U['id'],'rangeId':_0x1e0526,'previousResource':_0x45bb42[_0x3b6fd4(0xf3)],'nextResource':_0x213562['nextResource'],'previousDocumentData':_0x45bb42[_0x3b6fd4(0x15e)],'nextDocumentData':_0x213562[_0x3b6fd4(0x17a)],'cursorOffset':_0x213562['cursorOffset'],'externalMutations':_0x1cb69b})?!0x1:{'rangeId':_0x1e0526,'startOffset':_0x213562[_0x3b6fd4(0x8a)]-0x1,'endOffset':_0x213562[_0x3b6fd4(0x8a)]};}},W={'id':_0x11b942(0xe2),'type':_0x5965b8[_0x11b942(0x9c)],'handler':(_0x52e4bf,_0x1aa596)=>{const _0x432aed=_0x11b942;if(!(_0x1aa596!=null&&_0x1aa596['rangeId'])||!_0x1aa596[_0x432aed(0x16f)]['trim']())return!0x1;let _0x3a4093=q(_0x52e4bf,_0x1aa596[_0x432aed(0x84)],''),_0x490cce=_0x3a4093==null?void 0x0:_0x3a4093[_0x432aed(0xd9)][_0x432aed(0x161)](_0x3a4093[_0x432aed(0x84)],_0x1aa596[_0x432aed(0x170)]),_0x1398b9=_0x3a4093?T(_0x3a4093[_0x432aed(0x15e)][_0x432aed(0x166)],_0x1aa596[_0x432aed(0x170)]):void 0x0;if(!_0x3a4093||!_0x490cce||!_0x1398b9)return!0x1;let _0x22ea79=pt(_0x52e4bf,_0x3a4093[_0x432aed(0x84)],_0x1aa596[_0x432aed(0x16f)],_0x1aa596[_0x432aed(0x9a)]??[]);if(!_0x22ea79)return!0x1;let _0x26d0cb=_0x1d12c5(_0x52e4bf,_0x3a4093[_0x432aed(0x84)],_0x22ea79);if(!_0x26d0cb)return!0x1;let _0x2be6e4=Ct(_0x3a4093[_0x432aed(0xf3)]);return _0x2be6e4[_0x432aed(0x12b)][_0x1aa596[_0x432aed(0x170)]]={'formula':_0x1aa596[_0x432aed(0x16f)],..._0x1aa596[_0x432aed(0x13c)]?{'numberFormat':_0x1aa596[_0x432aed(0x13c)]}:_0x490cce['numberFormat']?{'numberFormat':_0x490cce['numberFormat']}:null},J({'accessor':_0x52e4bf,'document':_0x3a4093[_0x432aed(0x110)],'unitId':_0x3a4093[_0x432aed(0x84)],'trigger':W['id'],'rangeId':_0x1aa596[_0x432aed(0x170)],'previousResource':_0x3a4093[_0x432aed(0xf3)],'nextResource':_0x2be6e4,'cursorOffset':_0x1398b9[_0x432aed(0xa6)]+0x1,'externalMutations':_0x26d0cb});}},G={'id':_0x11b942(0xaf),'type':_0x5965b8[_0x11b942(0x9c)],'handler':(_0x170c89,_0x1ddf95)=>{const _0x5b1c53=_0x11b942;if(!(_0x1ddf95!=null&&_0x1ddf95[_0x5b1c53(0x170)]))return!0x1;let _0x27efc3=q(_0x170c89,_0x1ddf95['unitId'],''),_0x347d4e=_0x27efc3==null?void 0x0:_0x27efc3['model'][_0x5b1c53(0x161)](_0x27efc3[_0x5b1c53(0x84)],_0x1ddf95[_0x5b1c53(0x170)]),_0x4eaf7d=_0x27efc3?T(_0x27efc3['documentData'][_0x5b1c53(0x166)],_0x1ddf95[_0x5b1c53(0x170)]):void 0x0;if(!_0x27efc3||!_0x347d4e||!_0x4eaf7d)return!0x1;let _0x3723e1=Ct(_0x27efc3[_0x5b1c53(0xf3)]);return _0x3723e1['formulas'][_0x1ddf95[_0x5b1c53(0x170)]]={..._0x347d4e,..._0x1ddf95[_0x5b1c53(0x13c)]?{'numberFormat':_0x1ddf95[_0x5b1c53(0x13c)]}:null},_0x1ddf95['numberFormat']||delete _0x3723e1[_0x5b1c53(0x12b)][_0x1ddf95[_0x5b1c53(0x170)]]['numberFormat'],J({'accessor':_0x170c89,'document':_0x27efc3[_0x5b1c53(0x110)],'unitId':_0x27efc3[_0x5b1c53(0x84)],'trigger':G['id'],'rangeId':_0x1ddf95[_0x5b1c53(0x170)],'previousResource':_0x27efc3['resource'],'nextResource':_0x3723e1,'cursorOffset':_0x4eaf7d['endIndex']+0x1,'externalMutations':{}});}},K={'id':'docs-formula.command.remove','type':_0x5965b8[_0x11b942(0x9c)],'handler':(_0x4e3828,_0x4cf093)=>ut(_0x4e3828,_0x4cf093,'',K['id'])},ct={'id':_0x11b942(0x114),'type':_0x5965b8['COMMAND'],'handler':(_0x17ec76,_0x9e03ed)=>ut(_0x17ec76,_0x9e03ed,(_0x9e03ed==null?void 0x0:_0x9e03ed[_0x11b942(0x14d)])??'',ct['id'])},lt={'id':_0x11b942(0x16c),'type':_0x5965b8[_0x11b942(0x9c)],'handler':(_0x159ea6,_0x1c208b)=>{const _0x306990=_0x11b942;if(!(_0x1c208b!=null&&_0x1c208b[_0x306990(0x170)]))return!0x1;let _0x2771bb=q(_0x159ea6,_0x1c208b['unitId'],'');if(!_0x2771bb)return!0x1;let _0x7f266e=_0x159ea6[_0x306990(0x102)](L)[_0x306990(0x123)]({'unitId':_0x2771bb[_0x306990(0x84)],'rangeId':_0x1c208b[_0x306990(0x170)]});return _0x7f266e?ut(_0x159ea6,_0x1c208b,_0x7f266e['text'],lt['id']):!0x1;}};function ut(_0x353ea3,_0x1fb9a0,_0x237405,_0x42e8ce){const _0x37ebb9=_0x11b942;if(!(_0x1fb9a0!=null&&_0x1fb9a0[_0x37ebb9(0x170)]))return!0x1;let _0x2fe8b5=q(_0x353ea3,_0x1fb9a0[_0x37ebb9(0x84)],'');if(!_0x2fe8b5)return!0x1;let _0xd0b72=Be({'documentData':_0x2fe8b5['documentData'],'resource':_0x2fe8b5[_0x37ebb9(0xf3)],'rangeId':_0x1fb9a0['rangeId'],'text':_0x237405});return _0xd0b72?J({'accessor':_0x353ea3,'document':_0x2fe8b5[_0x37ebb9(0x110)],'unitId':_0x2fe8b5[_0x37ebb9(0x84)],'trigger':_0x42e8ce,'rangeId':_0x1fb9a0['rangeId'],'previousResource':_0x2fe8b5[_0x37ebb9(0xf3)],'nextResource':_0xd0b72[_0x37ebb9(0xb8)],'previousDocumentData':_0x2fe8b5[_0x37ebb9(0x15e)],'nextDocumentData':_0xd0b72[_0x37ebb9(0x17a)],'cursorOffset':_0xd0b72['cursorOffset'],'externalMutations':{}}):!0x1;}function q(_0x157d22,_0x5f95ca,_0x1e77b1){const _0xbead58=_0x11b942;if(_0x1e77b1)return null;let _0xf21601=_0x157d22['get'](_0x930636),_0x53461d=(_0x5f95ca?_0xf21601['getUnit'](_0x5f95ca,_0x45653d[_0xbead58(0x144)]):_0xf21601['getCurrentUnitOfType'](_0x45653d[_0xbead58(0x144)]))??null;if(!_0x53461d)return null;let _0x3683c0=_0x53461d[_0xbead58(0x10e)](),_0x965c7b=_0x3683c0['body'];if(_0x3683c0[_0xbead58(0x14a)]||!_0x965c7b)return null;let _0x13085f=_0x157d22[_0xbead58(0x102)](P);return _0x13085f['getLoadError'](_0x53461d['getUnitId']())?null:{'document':_0x53461d,'body':_0x965c7b,'documentData':_0x3683c0,'model':_0x13085f,'resource':_0x13085f[_0xbead58(0x16a)](_0x53461d[_0xbead58(0xdd)]())??b(),'unitId':_0x53461d[_0xbead58(0xdd)]()};}function dt(_0x5006e2,_0x484716){const _0x3859a2=_0x11b942;var _0x3dc8cb;return(_0x3dc8cb=_0x5006e2['get'](_0x42f86e)[_0x3859a2(0x116)]({'subUnitId':_0x484716,'unitId':_0x484716}))==null?void 0x0:_0x3dc8cb[0x0];}function ft(_0x4709ef,_0x25965f,_0x468180){const _0x5575a8=_0x11b942;if((_0x4709ef==null?void 0x0:_0x4709ef[_0x5575a8(0xd2)])===_0x5575a8(0xc0)){var _0x38f724;let _0x190c62=((_0x38f724=_0x25965f[_0x5575a8(0x156)])==null?void 0x0:_0x38f724[_0x5575a8(0x112)](_0x94516f=>_0x94516f['paragraphId']===_0x4709ef['paragraphId']))??[];if(_0x190c62['length']!==0x1)return null;let _0x36d4b9=_0x190c62[0x0],_0x2c1532=_0x54e7b7(_0x25965f,_0x36d4b9),_0xbc45d6=_0x36d4b9[_0x5575a8(0xc8)]-_0x2c1532,_0x11b44f=_0x4709ef[_0x5575a8(0x145)]===_0x5575a8(0x96)?_0xbc45d6:_0x4709ef['position'];if(!Number[_0x5575a8(0x151)](_0x11b44f)||_0x11b44f<0x0||_0x11b44f>_0xbc45d6)return null;let _0x214e15=_0x2c1532+_0x11b44f;return{'startOffset':_0x214e15,'endOffset':_0x214e15};}if((_0x4709ef==null?void 0x0:_0x4709ef[_0x5575a8(0xd2)])===_0x5575a8(0xe6))return!Number[_0x5575a8(0x151)](_0x4709ef[_0x5575a8(0x10d)])||!Number['isInteger'](_0x4709ef[_0x5575a8(0x173)])?null:{'startOffset':Math[_0x5575a8(0xed)](_0x4709ef[_0x5575a8(0x10d)],_0x4709ef['endOffset']),'endOffset':Math[_0x5575a8(0x17f)](_0x4709ef[_0x5575a8(0x10d)],_0x4709ef[_0x5575a8(0x173)])};let _0x5ddeec=(_0x4709ef==null?void 0x0:_0x4709ef[_0x5575a8(0xd2)])==='selection'?_0x4709ef['selection']:_0x468180;return!_0x5ddeec||_0x5ddeec[_0x5575a8(0x9f)]?null:{'startOffset':Math[_0x5575a8(0xed)](_0x5ddeec[_0x5575a8(0x10d)],_0x5ddeec[_0x5575a8(0x173)]),'endOffset':Math[_0x5575a8(0x17f)](_0x5ddeec[_0x5575a8(0x10d)],_0x5ddeec[_0x5575a8(0x173)])};}function pt(_0x112629,_0x3d4e25,_0x245075,_0x18a669){const _0x56790b=_0x11b942;let _0x1c645d=_0x112629[_0x56790b(0x102)](_0x3c43da),_0x29e0e9=_0x245075[_0x56790b(0x103)]('=')?_0x245075['slice'](0x1):_0x245075,_0x3183a7=_0x1c645d[_0x56790b(0x125)](_0x29e0e9);if(!_0x3183a7)return null;let _0x322aab=_0x112629[_0x56790b(0x102)](_0x4e55da),_0x471c9b=_0x7dadcf({'qualifiers':_0x59b99e(_0x3183a7),'explicitReferences':_0x18a669??[],'resolveBinding':_0x903b3f=>_0x322aab[_0x56790b(0xc5)](_0x3d4e25,_0x903b3f)});return _0x471c9b['status']===_0x56790b(0xe3)?_0x471c9b[_0x56790b(0xbf)]:null;}function mt(_0x45f602,_0x40a866,_0x48e831){const _0x2a0773=_0x11b942;var _0x13ac37;let _0x3e0802=_0x2dbc3e(0x6);for(;_0x45f602!=null&&(_0x13ac37=_0x45f602[_0x2a0773(0xe9)])!=null&&_0x13ac37[_0x2a0773(0x107)](_0x5a7cbe=>_0x5a7cbe[_0x2a0773(0x170)]===_0x3e0802)||_0x40a866['getFormula'](_0x48e831,_0x3e0802);)_0x3e0802=_0x2dbc3e(0x6);return _0x3e0802;}function ht(_0x1cdc3a){try{return Re(_0x1cdc3a);}catch(_0x1cc7c0){if(_0x1cc7c0 instanceof C)return null;throw _0x1cc7c0;}}function gt(_0x1f144e){const _0x45eb60=_0x11b942;let _0x21a2d5=_0x1f144e[_0x45eb60(0xb5)]&&_0x1f144e[_0x45eb60(0x17a)]?vt(_0x1f144e['document'],_0x1f144e[_0x45eb60(0x84)],_0x1f144e[_0x45eb60(0xb5)],_0x1f144e['nextDocumentData'],_0x1f144e[_0x45eb60(0x8a)],_0x1f144e[_0x45eb60(0x15b)]):null;return _0x1f144e[_0x45eb60(0xb5)]&&_0x1f144e[_0x45eb60(0x17a)]&&!_0x21a2d5?null:{'documentRedo':_0x21a2d5,'resourceRedo':{'id':V['id'],'params':{'unitId':_0x1f144e['unitId'],'resource':_0x1f144e[_0x45eb60(0xb8)]}},'resourceUndo':{'id':V['id'],'params':{'unitId':_0x1f144e[_0x45eb60(0x84)],'resource':_0x1f144e[_0x45eb60(0x177)]}}};}function _t(_0x551c0a,_0x4c754b,_0x53eccf,_0x21140f){const _0x1cbb2e=_0x11b942;_0x21140f['pushUndoRedo']({'id':_0x551c0a['trigger']+':'+_0x551c0a[_0x1cbb2e(0x170)],'unitID':_0x551c0a[_0x1cbb2e(0x84)],'redoMutations':[..._0x551c0a[_0x1cbb2e(0xd4)][_0x1cbb2e(0x167)]?[_0x551c0a['externalMutations'][_0x1cbb2e(0x167)]]:[],..._0x4c754b[_0x1cbb2e(0x152)]?[_0x4c754b[_0x1cbb2e(0x152)]]:[],_0x4c754b[_0x1cbb2e(0xd0)]],'undoMutations':[_0x4c754b[_0x1cbb2e(0x120)],..._0x53eccf?[_0x53eccf]:[],..._0x551c0a[_0x1cbb2e(0xd4)][_0x1cbb2e(0xa1)]?[_0x551c0a[_0x1cbb2e(0xd4)][_0x1cbb2e(0xa1)]]:[]]});}function J(_0x4f1330){const _0x237f0c=_0x11b942;let _0x3dd31e=_0x4f1330[_0x237f0c(0xbb)]['get'](_0x33bec9),_0x1ca664=_0x4f1330['accessor'][_0x237f0c(0x102)](_0x21b9cd),_0x5c5085=_0x4f1330[_0x237f0c(0xbb)][_0x237f0c(0x102)](_0x42f86e),_0x306f3c=gt(_0x4f1330);if(!_0x306f3c)return!0x1;let _0x218805=!0x1,_0x5f3913=null,_0x33f174=!0x1;try{if(_0x4f1330[_0x237f0c(0xd4)][_0x237f0c(0x167)]){if(!_0x3dd31e['syncExecuteCommand'](_0x4f1330[_0x237f0c(0xd4)][_0x237f0c(0x167)]['id'],_0x4f1330[_0x237f0c(0xd4)][_0x237f0c(0x167)]['params']))return!0x1;_0x218805=!0x0;}if(_0x306f3c[_0x237f0c(0x152)]){let _0x2048db=_0x3dd31e['syncExecuteCommand'](_0x306f3c[_0x237f0c(0x152)]['id'],_0x306f3c['documentRedo'][_0x237f0c(0x13a)]);if(!_0x2048db)return bt(_0x3dd31e,_0x4f1330[_0x237f0c(0xd4)],_0x218805),!0x1;_0x5f3913={'id':_0x480fe8['id'],'params':{..._0x2048db,'noHistory':!0x0,'noNeedSetTextRange':!0x0,'segmentId':''}};}if(!_0x3dd31e[_0x237f0c(0xf1)](_0x306f3c['resourceRedo']['id'],_0x306f3c[_0x237f0c(0xd0)][_0x237f0c(0x13a)]))return yt(_0x3dd31e,_0x5f3913),bt(_0x3dd31e,_0x4f1330[_0x237f0c(0xd4)],_0x218805),!0x1;_0x33f174=!0x0,_t(_0x4f1330,_0x306f3c,_0x5f3913,_0x1ca664);}catch(_0x556456){throw _0x33f174&&_0x3dd31e[_0x237f0c(0xf1)](_0x306f3c[_0x237f0c(0x120)]['id'],_0x306f3c[_0x237f0c(0x120)]['params']),yt(_0x3dd31e,_0x5f3913),bt(_0x3dd31e,_0x4f1330[_0x237f0c(0xd4)],_0x218805),_0x556456;}return _0x5c5085[_0x237f0c(0xcf)]([{'startOffset':_0x4f1330['cursorOffset'],'endOffset':_0x4f1330[_0x237f0c(0x8a)],'segmentId':''}],{'unitId':_0x4f1330[_0x237f0c(0x84)],'subUnitId':_0x4f1330['unitId']},!0x1,{[_0xa0c5b1]:!0x0}),!0x0;}function vt(_0xd531a6,_0xa13539,_0x47eb4c,_0x273e1f,_0x4022d6,_0x107de9){let _0x5b35c7=xt(_0x47eb4c,_0x273e1f,_0x36d11e(_0xd531a6,''));return _0x5b35c7?{'id':_0x480fe8['id'],'params':{'unitId':_0xa13539,'actions':_0x5b35c7,'segmentId':'','textRanges':[{'startOffset':_0x4022d6,'endOffset':_0x4022d6,'collapsed':!0x0,'segmentId':''}],'isEditing':!0x1,'noHistory':!0x0,'noNeedSetTextRange':!0x0,'trigger':_0x107de9}}:null;}function yt(_0x42e4a9,_0x84813d){_0x84813d&&_0x42e4a9['syncExecuteCommand'](_0x84813d['id'],_0x84813d['params']);}function bt(_0x4f61ee,_0x2cfd1a,_0x5b46b5){const _0x13070a=_0x11b942;_0x5b46b5&&_0x2cfd1a[_0x13070a(0xa1)]&&_0x4f61ee[_0x13070a(0xf1)](_0x2cfd1a[_0x13070a(0xa1)]['id'],_0x2cfd1a[_0x13070a(0xa1)][_0x13070a(0x13a)]);}function xt(_0x9331c9,_0x589dac,_0x233360){const _0x950300=_0x11b942;let _0x451dfc=_0x9331c9[_0x950300(0x166)],_0x1f433c=_0x589dac[_0x950300(0x166)],_0x1bbda7=St(_0x451dfc==null?void 0x0:_0x451dfc[_0x950300(0x11a)],_0x1f433c==null?void 0x0:_0x1f433c[_0x950300(0x11a)]);if(!_0x1bbda7||!_0x1f433c)return null;let _0x1a92c0=new _0x3b5ea5();return _0x1a92c0[_0x950300(0x122)](_0x1bbda7[_0x950300(0x99)]),_0x1bbda7[_0x950300(0x135)]>0x0&&_0x1a92c0[_0x950300(0x17d)](_0x1bbda7[_0x950300(0x135)],_0x1be218(_0x1f433c,_0x1bbda7[_0x950300(0x99)],_0x1bbda7[_0x950300(0x99)]+_0x1bbda7[_0x950300(0x135)],!0x1)),_0x1bbda7[_0x950300(0xb0)]>0x0&&_0x1a92c0[_0x950300(0x91)](_0x1bbda7[_0x950300(0xb0)]),_0x583736[_0x950300(0x95)]()[_0x950300(0x92)](_0x1a92c0[_0x950300(0x13b)](),_0x233360);}function St(_0xd9da5,_0x28fbd2){const _0x5e2572=_0x11b942;if(_0xd9da5==null||_0x28fbd2==null||_0xd9da5===_0x28fbd2)return null;let _0xfbb648=0x0;for(;_0xfbb648<_0xd9da5[_0x5e2572(0x10b)]&&_0xfbb648<_0x28fbd2[_0x5e2572(0x10b)]&&_0xd9da5[_0xfbb648]===_0x28fbd2[_0xfbb648];)_0xfbb648+=0x1;let _0x5ecdae=_0xd9da5['length'],_0x1b0fe3=_0x28fbd2[_0x5e2572(0x10b)];for(;_0x5ecdae>_0xfbb648&&_0x1b0fe3>_0xfbb648&&_0xd9da5[_0x5ecdae-0x1]===_0x28fbd2[_0x1b0fe3-0x1];)--_0x5ecdae,--_0x1b0fe3;return{'start':_0xfbb648,'deleteLength':_0x5ecdae-_0xfbb648,'insertLength':_0x1b0fe3-_0xfbb648};}function Ct(_0x4d0578){const _0x2ed9cf=_0x11b942;return{'schemaVersion':0x1,'formulas':Object['fromEntries'](Object['entries'](_0x4d0578[_0x2ed9cf(0x12b)])[_0x2ed9cf(0x14e)](([_0x4bec15,_0x3a86a1])=>[_0x4bec15,{..._0x3a86a1,..._0x3a86a1[_0x2ed9cf(0x13c)]?{'numberFormat':{..._0x3a86a1['numberFormat']}}:null,..._0x3a86a1[_0x2ed9cf(0xdb)]?{'lastValue':{..._0x3a86a1[_0x2ed9cf(0xdb)]}}:null}]))};}let Y=class extends _0x35945f{constructor(_0x226b09,_0x3095e0,_0x574718,_0x1db3b6){const _0x164e8b=_0x11b942;super(),this[_0x164e8b(0xa5)]=_0x226b09,this[_0x164e8b(0x111)]=_0x3095e0,this[_0x164e8b(0x178)]=_0x574718,this[_0x164e8b(0x8d)]=_0x1db3b6,N(this,_0x164e8b(0xb4),new Set()),N(this,_0x164e8b(0xcd),!0x1),N(this,_0x164e8b(0x11b),!0x1),this['_instanceService'][_0x164e8b(0xdf)](_0x45653d[_0x164e8b(0x144)])[_0x164e8b(0xef)](_0xf8ecb1=>this[_0x164e8b(0x8d)]['syncUnit'](_0xf8ecb1)),this['disposeWithMe'](this[_0x164e8b(0x178)][_0x164e8b(0x80)]['subscribe'](({unitId:_0x243129})=>this['_syncUnit'](_0x243129))),this[_0x164e8b(0x128)](this[_0x164e8b(0xa5)][_0x164e8b(0xfd)][_0x164e8b(0x94)](({unit:_0x1147c4})=>{const _0x2e1619=_0x164e8b;_0x1147c4[_0x2e1619(0xd2)]===_0x45653d[_0x2e1619(0x144)]&&this['_queueSync'](_0x1147c4[_0x2e1619(0xdd)]());})),this[_0x164e8b(0x128)](this[_0x164e8b(0xa5)][_0x164e8b(0xd3)][_0x164e8b(0x94)](_0x36a31f=>{const _0x583da1=_0x164e8b;this[_0x583da1(0x8d)][_0x583da1(0x109)](_0x36a31f[_0x583da1(0xdd)]());})),this[_0x164e8b(0x128)](this[_0x164e8b(0x111)][_0x164e8b(0x136)](_0x231215=>{const _0x57a9cd=_0x164e8b;if(_0x231215['id']===_0x480fe8['id']&&wt(_0x231215['params'])){let _0x5e33e8=_0x231215[_0x57a9cd(0x13a)];_0x5e33e8[_0x57a9cd(0x9f)]||this[_0x57a9cd(0x108)](_0x5e33e8[_0x57a9cd(0x84)]);}}));}[_0x11b942(0xce)](){const _0x4815cc=_0x11b942;this[_0x4815cc(0x11b)]=!0x0,super['dispose']();}['_queueSync'](_0x4e82fd){const _0x336b71=_0x11b942;this[_0x336b71(0xb4)][_0x336b71(0xfb)](_0x4e82fd),!this[_0x336b71(0xcd)]&&(this[_0x336b71(0xcd)]=!0x0,queueMicrotask(()=>{const _0x12f257=_0x336b71;if(this[_0x12f257(0xcd)]=!0x1,this[_0x12f257(0x11b)])return;let _0x149743=Array['from'](this[_0x12f257(0xb4)]);this['_pendingUnitIds'][_0x12f257(0x17c)](),_0x149743[_0x12f257(0xef)](_0xd3bec8=>this[_0x12f257(0x108)](_0xd3bec8));}));}[_0x11b942(0x108)](_0x20c45f){const _0x5526e6=_0x11b942;let _0x219fa0=this[_0x5526e6(0xa5)][_0x5526e6(0x101)](_0x20c45f,_0x45653d[_0x5526e6(0x144)]);_0x219fa0&&this[_0x5526e6(0x8d)][_0x5526e6(0x14f)](_0x219fa0);}};Y=I([F(0x0,_0x930636),F(0x1,_0x33bec9),F(0x2,_0x3d3024(P)),F(0x3,_0x3d3024(L))],Y);function wt(_0x35e259){const _0x22e223=_0x11b942;return typeof _0x35e259=='object'&&!!_0x35e259&&'unitId'in _0x35e259&&typeof _0x35e259[_0x22e223(0x84)]=='string'&&(!(_0x22e223(0x9f)in _0x35e259)||_0x35e259[_0x22e223(0x9f)]===void 0x0||typeof _0x35e259[_0x22e223(0x9f)]=='string');}let X=class extends _0x35945f{constructor(_0x48ea6b,_0x252613){const _0x23131c=_0x11b942;super(),this[_0x23131c(0x121)]=_0x48ea6b,this['_docFormulaModel']=_0x252613,this[_0x23131c(0x128)](this[_0x23131c(0x121)]['registerPluginResource']({'pluginName':y,'businesses':[_0x45653d['UNIVER_DOC']],'toJson':_0x375474=>JSON['stringify'](this[_0x23131c(0x148)][_0x23131c(0x13b)](_0x375474)),'parseJson':_0x37e8bd=>JSON[_0x23131c(0xf9)](_0x37e8bd),'onLoad':(_0x179916,_0x1b2f80)=>{const _0x5c9a9b=_0x23131c;this['_docFormulaModel'][_0x5c9a9b(0x141)](_0x179916,_0x1b2f80);},'onUnLoad':_0x1d9538=>this[_0x23131c(0x148)][_0x23131c(0x133)](_0x1d9538)}));}};X=I([F(0x0,_0x1e7c1d),F(0x1,_0x3d3024(P))],X);var Tt=_0x11b942(0xa2),Et=_0x11b942(0xea);const Dt={};let Z=class extends _0x35945f{constructor(_0xbe2a7b,_0x51dac4,_0x9a280){const _0x33b6bb=_0x11b942;super(),this[_0x33b6bb(0x118)]=_0xbe2a7b,this[_0x33b6bb(0x159)]=_0x51dac4,this[_0x33b6bb(0x128)](_0x9a280['register']({'resolve':(_0x465869,_0x4165d0)=>{const _0x9214a=_0x33b6bb;var _0x580461;return((_0x580461=_0x4165d0['customRanges'])==null?void 0x0:_0x580461[_0x9214a(0x112)](w)[_0x9214a(0x14e)](_0x55851d=>({'startOffset':_0x55851d[_0x9214a(0xc8)],'endOffset':_0x55851d[_0x9214a(0xa6)]+0x1,'text':this[_0x9214a(0xb9)](_0x465869,_0x55851d[_0x9214a(0x170)])})))??[];}})),this[_0x33b6bb(0x128)](this[_0x33b6bb(0x159)][_0x33b6bb(0x153)]['subscribe'](({unitId:_0x45d3e3})=>{const _0x5f1a00=_0x33b6bb;_0x9a280[_0x5f1a00(0xa9)](_0x45d3e3);}));}[_0x11b942(0xb9)](_0x42fa1c,_0x38f44b){const _0x625eea=_0x11b942;var _0x25213b;return((_0x25213b=this[_0x625eea(0x159)]['getResult']({'unitId':_0x42fa1c,'rangeId':_0x38f44b}))==null?void 0x0:_0x25213b[_0x625eea(0x14d)])??'';}[_0x11b942(0x127)](_0x357f94,_0x469467,_0x4df14d){const _0x1ba136=_0x11b942;var _0x19686f;let _0x390de9=this['_univerInstanceService'][_0x1ba136(0x101)](_0x357f94,_0x45653d[_0x1ba136(0x144)]),_0x568db6=_0x390de9==null?void 0x0:_0x390de9['getBody']();if(!_0x568db6)return'';let _0x1245ae=_0x568db6[_0x1ba136(0x11a)][_0x1ba136(0x10c)](_0x469467,_0x4df14d),_0x16b933=((_0x19686f=_0x568db6[_0x1ba136(0xe9)])==null?void 0x0:_0x19686f['filter'](_0x143862=>w(_0x143862)&&_0x143862['startIndex']>=_0x469467&&_0x143862[_0x1ba136(0xa6)]<_0x4df14d)['sort']((_0x8b4e7a,_0x240a85)=>_0x240a85[_0x1ba136(0xc8)]-_0x8b4e7a[_0x1ba136(0xc8)]))??[];for(let _0x4690c8 of _0x16b933){let _0x251a47=_0x4690c8['startIndex']-_0x469467,_0x4de432=_0x4690c8[_0x1ba136(0xa6)]-_0x469467+0x1;_0x1245ae=''+_0x1245ae[_0x1ba136(0x10c)](0x0,_0x251a47)+this[_0x1ba136(0xb9)](_0x357f94,_0x4690c8[_0x1ba136(0x170)])+_0x1245ae['slice'](_0x4de432);}return _0x1245ae;}[_0x11b942(0xe8)](_0x2179b9){return Ot(_0x2179b9);}[_0x11b942(0xd7)](_0x45e8c6,_0x303cdf,_0x256bca={}){const _0x49d8eb=_0x11b942;var _0xff84e2;return Ve({'id':_0x45e8c6,'body':_0x303cdf,'documentStyle':{}},(((_0xff84e2=_0x303cdf[_0x49d8eb(0xe9)])==null?void 0x0:_0xff84e2[_0x49d8eb(0x112)](w))??[])[_0x49d8eb(0x14e)](_0x57da55=>({'rangeId':_0x57da55[_0x49d8eb(0x170)],'text':_0x256bca[_0x57da55[_0x49d8eb(0x170)]]??this[_0x49d8eb(0xb9)](_0x45e8c6,_0x57da55[_0x49d8eb(0x170)])})))[_0x49d8eb(0x166)]??{'dataStream':''};}};Z=I([F(0x0,_0x930636),F(0x1,_0x3d3024(L)),F(0x2,_0x3d3024(_0x56e8c8))],Z);function Ot(_0x6fcc2d){const _0x2735fc=_0x11b942;var _0xae345a,_0x2de02d;let _0x4e5b66=kt(_0x6fcc2d),_0x212df8=Ve(_0x6fcc2d,(((_0xae345a=_0x6fcc2d[_0x2735fc(0x166)])==null||(_0xae345a=_0xae345a[_0x2735fc(0xe9)])==null?void 0x0:_0xae345a[_0x2735fc(0x112)](w))??[])[_0x2735fc(0x14e)](_0x1f72b9=>({'rangeId':_0x1f72b9['rangeId'],'text':At(_0x4e5b66==null?void 0x0:_0x4e5b66[_0x2735fc(0x12b)][_0x1f72b9[_0x2735fc(0x170)]])})));return _0x212df8[_0x2735fc(0x168)]=(_0x2de02d=_0x212df8['resources'])==null?void 0x0:_0x2de02d[_0x2735fc(0x112)](_0x3f678d=>_0x3f678d['name']!==y),_0x212df8;}function _0x48a7(_0x266d20,_0x1ad06d){_0x266d20=_0x266d20-0x7e;const _0x2755e1=_0x2755();let _0x48a776=_0x2755e1[_0x266d20];return _0x48a776;}function kt(_0x53aa9e){const _0x131953=_0x11b942;var _0x574fac;let _0x1c3230=(_0x574fac=_0x53aa9e[_0x131953(0x168)])==null||(_0x574fac=_0x574fac[_0x131953(0xb2)](_0x5c0994=>_0x5c0994[_0x131953(0xc4)]==='DOC_FORMULA_PLUGIN'))==null?void 0x0:_0x574fac[_0x131953(0xc9)];if(_0x1c3230)try{let _0x2104b9=JSON[_0x131953(0xf9)](_0x1c3230);return x(_0x2104b9)?_0x2104b9:void 0x0;}catch{return;}}function At(_0x2844b3){const _0x506887=_0x11b942;return _0x2844b3?_0x57ce95({'lastValue':_0x2844b3[_0x506887(0xdb)],'numberFormat':_0x2844b3['numberFormat']})['text']:'';}let Q=class extends _0x35945f{constructor(_0x55f4c1,_0x363e7b,_0x436228){const _0x44fd17=_0x11b942;super(),this[_0x44fd17(0x159)]=_0x55f4c1,this[_0x44fd17(0x13f)]=_0x363e7b,this[_0x44fd17(0x128)](_0x436228[_0x44fd17(0xe1)](this));}[_0x11b942(0xd1)](_0x5c7316){const _0x2988cd=_0x11b942;let _0x2052b6=new Map();for(let _0xd6e51d of this[_0x2988cd(0x159)][_0x2988cd(0x12f)]()){var _0x4ec208;if(!this['_cacheEligibilityService'][_0x2988cd(0x139)](_0xd6e51d[_0x2988cd(0xd6)][_0x2988cd(0x16f)],_0xd6e51d[_0x2988cd(0x126)])[_0x2988cd(0xaa)])continue;let _0x55d954=_0xc59680(_0xd6e51d['liveResult']),_0x20c2e7=_0x55d954?_0x34e83b(_0x55d954):null;if(!_0x20c2e7||jt(_0xd6e51d[_0x2988cd(0xd6)][_0x2988cd(0xdb)],_0x20c2e7))continue;let _0x2b27a0=_0x2052b6[_0x2988cd(0x102)](_0xd6e51d[_0x2988cd(0x124)][_0x2988cd(0x84)])??[];_0x2b27a0[_0x2988cd(0xe7)]({'rangeId':_0xd6e51d[_0x2988cd(0x124)][_0x2988cd(0x170)],'expectedFormula':_0xd6e51d[_0x2988cd(0xd6)][_0x2988cd(0x16f)],'expectedNumberFormat':(_0x4ec208=_0xd6e51d[_0x2988cd(0xd6)][_0x2988cd(0x13c)])==null?void 0x0:_0x4ec208['pattern'],'expectedReferenceRevision':_0xd6e51d[_0x2988cd(0x7e)],'lastValue':_0x20c2e7}),_0x2052b6[_0x2988cd(0x172)](_0xd6e51d[_0x2988cd(0x124)][_0x2988cd(0x84)],_0x2b27a0);}return Array['from'](_0x2052b6,([_0x43b818,_0x398613])=>({'id':H['id'],'params':{'unitId':_0x43b818,'updates':_0x398613}}));}};function _0x2755(){const _0x39748f=['resourceRedo','collectMutations','type','unitDisposed$','externalMutations','DOC_FORMULA_PLUGIN','config','degradeBody','function','model','formulaId','lastValue','textRuns','getUnitId','keys','getAllUnitsForType','color','registerProvider','docs-formula.command.update','resolved','deepClone','boolean','range','push','degradeDocumentData','customRanges','1.0.0-beta.0','_registrations','assign','min','object','forEach','decorate','syncExecuteCommand','string','resource','docs-formula.mutation.set-last-values','BLOCK_END','isArray','asObservable','docs-formula.mutation.set-formula','parse','source','add','endsWith','unitAdded$','values','_preserveInvalid','iterator','getUnit','get','startsWith','_hostExternalReferenceModel','expectedNumberFormat','number','some','_syncUnit','unregisterUnit','TABLE_START','length','slice','startOffset','getSnapshot','7949683tenduv','document','_commandService','filter','768hArEYI','docs-formula.command.replace-with-text','formulaResult$','getTextRanges','docs-formula.mutation.remove-formula','_univerInstanceService','SUCCESS','dataStream','_isDisposed','stale','pending','success','setResource','resourceUndo','_resourceManagerService','retain','getResult','identity','sequenceNodesBuilder','liveResult','resolveText','disposeWithMe','packageName','error','formulas','65635KgCFVn','updates','_registrationService','getRegisteredFormulas','docs-formula.config','_formulaKeys','18626883bFugrN','removeUnit','19619qBYhNk','insertLength','onCommandExecuted','presentation','140whksQy','assess','params','serialize','numberFormat','registerCommand','sort','_cacheEligibilityService','registerFormulaWithRange','load','unsupported-version','_configService','UNIVER_DOC','position','docs-formula.command.insert','_resources','_docFormulaModel','setFormulas','disabled','complete','_rawResources','text','map','syncUnit','expectedFormula','isInteger','documentRedo','presentationChanged$','has','COLUMN_GROUP_START','paragraphs','wholeEntity','blockRanges','_formulaService','CUSTOM_BLOCK','trigger','includes','MUTATION','documentData','from','ERROR','getFormula','sectionBreaks','prototype','TABLE_END','5334YghnLJ','body','redoMutation','resources','20673OuPKfx','getResource','COLUMN_END','docs-formula.command.convert-to-text','89052492HrEyIv','TABLE_ROW_START','formula','rangeId','register','set','endOffset','tables','PARAGRAPH','getLoadError','previousResource','_model','getOwnPropertyDescriptor','nextDocumentData','5930LMqTUc','clear','insert','_presentationChanged$','max','BLOCK_START','constructor','referenceRevision','every','change$','entries','_injector','version','unitId','setConfig','pluginName','_loadErrors','symbol','COLUMN_START','cursorOffset','trim','customBlocks','_service','cell','TABLE_ROW_END','_setPresentation','delete','editOp','Doc\x20Formula\x20range\x20cannot\x20cross\x20document\x20structure\x20boundaries','subscribe','getInstance','end','8avHfle','expectedReferenceRevision','start','externalReferences','getRevision','COMMAND','columnGroups','invalid-resource','segmentId','next','undoMutation','@univerjs-pro/docs-formula','removeFormula','docs-formula.mutation.set-resource','_instanceService','endIndex','COLUMN_GROUP_END','defineProperty','notifyTextChanged','eligible','rangeType','Document\x20main\x20body\x20is\x20required\x20to\x20insert\x20Doc\x20Formula.','properties','_config','docs-formula.command.set-number-format','deleteLength','unregister','find','status','_pendingUnitIds','previousDocumentData','target','schemaVersion','nextResource','resolveFormula','customDecorations','accessor','_change$','_deleteRegistration','3388AhzGPU','references','paragraph','pattern','_updateFormulaResult','getFormulas','name','resolveBinding','onStarting','kind','startIndex','data','default','SECTION_BREAK','empty','_syncScheduled','dispose','replaceDocRanges'];_0x2755=function(){return _0x39748f;};return _0x2755();}Q=I([F(0x0,_0x3d3024(L)),F(0x1,_0x3d3024(_0x477178)),F(0x2,_0x3d3024(_0x3f3931))],Q);function jt(_0x31401a,_0x490b12){const _0x2f6019=_0x11b942;return(_0x31401a==null?void 0x0:_0x31401a['v'])===_0x490b12['v']&&(_0x31401a==null?void 0x0:_0x31401a['t'])===_0x490b12['t']&&(_0x31401a==null?void 0x0:_0x31401a[_0x2f6019(0xc1)])===_0x490b12[_0x2f6019(0xc1)];}let $=class extends _0x459c8d{constructor(_0x3f3dd1=Dt,_0x1cab4b,_0x4d566d,_0x499c66){const _0xd24ae9=_0x11b942;super(),this[_0xd24ae9(0xae)]=_0x3f3dd1,this[_0xd24ae9(0x82)]=_0x1cab4b,this['_commandService']=_0x4d566d,this[_0xd24ae9(0x143)]=_0x499c66;let {..._0x20e663}=_0x4b4880({},Dt,this[_0xd24ae9(0xae)]);this[_0xd24ae9(0x143)][_0xd24ae9(0x85)](_0xd24ae9(0x130),_0x20e663);}[_0x11b942(0xc6)](){const _0x42379c=_0x11b942;this[_0x42379c(0x82)][_0x42379c(0xfb)]([P]),this[_0x42379c(0x82)][_0x42379c(0xfb)]([L]),this[_0x42379c(0x82)]['add']([X]),this[_0x42379c(0x82)][_0x42379c(0xfb)]([Y]),this[_0x42379c(0x82)][_0x42379c(0xfb)]([Q]),this[_0x42379c(0x82)]['add']([Z]),_0x2fa40d(this['_injector'],[[P],[X],[Y],[Q],[Z]]),[ot,st,V,H,U,W,G,K,ct,lt][_0x42379c(0xef)](_0x1b22ed=>this[_0x42379c(0x128)](this[_0x42379c(0x111)][_0x42379c(0x13d)](_0x1b22ed)));}};N($,_0x11b942(0x86),y),N($,_0x11b942(0x129),Tt),N($,_0x11b942(0x83),Et),N($,_0x11b942(0xd2),_0x45653d[_0x11b942(0x144)]),$=I([_0x1cc9db(_0x42a144,_0x16665e,_0x44a698),F(0x1,_0x3d3024(_0x13e4a3)),F(0x2,_0x33bec9),F(0x3,_0x3270a2)],$);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 _0x4f6fbf=_0x2954;(function(_0x642624,_0xea1d35){const _0xa811c5=_0x2954,_0x16e0dd=_0x642624();while(!![]){try{const _0x5f1cad=parseInt(_0xa811c5(0x1d0))/0x1+-parseInt(_0xa811c5(0x237))/0x2*(-parseInt(_0xa811c5(0x1e0))/0x3)+-parseInt(_0xa811c5(0x23a))/0x4+parseInt(_0xa811c5(0x211))/0x5*(-parseInt(_0xa811c5(0x1b6))/0x6)+-parseInt(_0xa811c5(0x255))/0x7+-parseInt(_0xa811c5(0x1ef))/0x8+-parseInt(_0xa811c5(0x1cc))/0x9*(-parseInt(_0xa811c5(0x238))/0xa);if(_0x5f1cad===_0xea1d35)break;else _0x16e0dd['push'](_0x16e0dd['shift']());}catch(_0x2fe612){_0x16e0dd['push'](_0x16e0dd['shift']());}}}(_0x4a54,0xcb1fb));import{FormulaCacheEligibilityService as _0x4a49c8,FormulaLastValuePersistenceService as _0x13e281,HostExternalReferenceModel as _0x10c960,UniverProFormulaEnginePlugin as _0x3b8edb,buildUpsertHostExternalReferenceMutations as _0x3007cb,collectFormulaExternalReferenceQualifiers as _0x1e38dc,getScalarFormulaResultCell as _0x4ea63e,resolveFormulaResultPresentation as _0x42aa2e,resolveHostFormulaExternalReferences as _0x25aab3,toFormulaLastValue as _0x4677a5}from'@univerjs-pro/engine-formula';import{CellValueType as _0x359b1c,CommandType as _0x54b120,CustomRangeType as _0xd7705f,DataStreamTreeTokenType as _0x32085f,DependentOn as _0x156929,Disposable as _0x31b7da,ICommandService as _0x17a79b,IConfigService as _0x430bb8,IResourceManagerService as _0x5cca76,IUndoRedoService as _0x108c62,IUniverInstanceService as _0x2f4b97,Inject as _0x2acef3,Injector as _0x4d35b9,JSONX as _0xd1312c,Plugin as _0x19285f,TextX as _0x5043cb,Tools as _0x5009bd,UniverInstanceType as _0x84701a,generateRandomId as _0x567cbf,getBodySliceForTextXAction as _0x3936fb,getCustomRangeInterval as _0x98f7fa,getParagraphContentStartOffset as _0x3d7e00,getRichTextEditPath as _0x3a85ac,merge as _0x51f985,shiftExclusiveRangeOnDelete as _0x40f2b0,shiftExclusiveRangeOnInsert as _0x3994a9,shiftInclusiveRangeOnDelete as _0x1884f3,shiftInclusiveRangeOnInsert as _0x4c9420,touchDependencies as _0x446bb5}from'@univerjs/core';import{DOC_SELECTION_OPTION_PRESERVE_CARET as _0x53247e,DocSelectionManagerService as _0x415e0a,DocTextResolverService as _0x1f7daa,RichTextEditingMutation as _0x152a2b,UniverDocsPlugin as _0x2a1d9f}from'@univerjs/docs';function _0x4a54(){const _0x42315e=['function','number','externalReferences','@univerjs-pro/docs-formula','_registrations','CUSTOM','ERROR','PENDING','segmentId','deepClone','startIndex','object','textRuns','max','find','pushUndoRedo','parse','syncUnit','TABLE_START','formula','identity','degradeBody','_deleteRegistration','liveResult','_model','_service','references','20WwCHFO','getResult','selection','onStarting','dispose','getBody','default','getUnit','CUSTOM_BLOCK','entries','getCurrentUnitOfType','_cacheEligibilityService','registerProvider','unsupported-version','length','dataStream','UNIVER_DOC','collectMutations','updates','decorate','_syncUnit','customDecorations','resources','defineProperty','eligible','_syncScheduled','_preserveInvalid','_instanceService','resolveText','COLUMN_END','_resourceManagerService','disabled','resourceUndo','type','assign','string','customBlocks','Document\x20main\x20body\x20is\x20required\x20to\x20insert\x20Doc\x20Formula.','2kUkkOJ','139660WbMqJk','serialize','1551016RXiAhJ','startOffset','_config','getUnitId','trigger','disposeWithMe','_docFormulaModel','isArray','removeFormula','setConfig','complete','load','endsWith','_commandService','previousDocumentData','docs-formula.command.set-number-format','slice','add','_configService','stale','accessor','_presentationChanged$','SUCCESS','_updateFormulaResult','setFormulas','_queueSync','cursorOffset','5397560PlNoqN','_loadErrors','DOC_FORMULA_PLUGIN','referenceRevision','BLOCK_START','filter','resource','tables','text','docs-formula.mutation.set-last-values','documentData','prototype','source','getRegisteredFormulas','_registrationService','success','stringify','endOffset','nextResource','_hostExternalReferenceModel','subscribe','_setPresentation','docs-formula.mutation.set-formula','asObservable','getRevision','pending','getResource','resolveFormula','unregister','docs-formula.command.insert','every','trim','get','lastValue','call','body','formulaId','_formulaService','schemaVersion','paragraph','TABLE_END','model','values','constructor','keys','_pendingUnitIds','_resources','startsWith','push','name','error','sequenceNodesBuilder','replaceDocRanges','formulas','getTextRanges','getSnapshot','numberFormat','sectionBreaks','isInteger','presentation','getFormulas','removeUnit','notifyTextChanged','pluginName','unitAdded$','iterator','previousResource','PARAGRAPH','set','redoMutation','EMPTY','toPrimitive','documentRedo','_formulaKeys','next','expectedFormula','getInstance','sort','paragraphs','unregisterUnit','start','presentationChanged$','endIndex','columnGroups','unitDisposed$','SECTION_BREAK','min','expectedReferenceRevision','assess','syncExecuteCommand','setFormula','params','DOC','docs-formula.mutation.set-resource','2117124ZzMwXg','COLUMN_GROUP_START','undoMutation','paragraphId','_rawResources','getPresentation','boolean','COLUMN_START','1.0.0-beta.1','forEach','_change$','degradeDocumentData','pattern','unitId','some','position','status','from','data','insertLength','delete','_injector','1683BnuUar','docs-formula.mutation.remove-formula','register','resourceRedo','1344174JtSUvb','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','clear','nextDocumentData','setResource','onCommandExecuted','map','BLOCK_END','_isDisposed','rangeType','document','COLUMN_GROUP_END','end','getFormula','empty','cell','802491PjCcgv','externalMutations','getFormulaValueSync','TABLE_CELL_START','MUTATION','customRanges','rangeId','symbol','blockRanges','color','getLoadError','COMMAND','expectedNumberFormat','config','packageName','6568544lADEmq','range','target','includes','univer-docs-formula','editOp','has'];_0x4a54=function(){return _0x42315e;};return _0x4a54();}import{FormulaResultStatus as _0xa56ea4,LexerTreeBuilder as _0x4b333e,OtherFormulaBizType as _0x1fd681,RegisterOtherFormulaService as _0x13ff1c}from'@univerjs/engine-formula';import{Subject as _0x3ff55e}from'rxjs';import{UniverLicensePlugin as _0x347af6}from'@univerjs-pro/license';const y='DOC_FORMULA_PLUGIN',je=0x1,Me=_0x4f6fbf(0x1f3),Ne='';function b(){return{'schemaVersion':0x1,'formulas':{}};}function x(_0x3e34b4){const _0x3dae30=_0x4f6fbf;return!_0x3e34b4||typeof _0x3e34b4!=_0x3dae30(0x201)||!S(_0x3e34b4,['schemaVersion',_0x3dae30(0x18d)])||!('schemaVersion'in _0x3e34b4)||_0x3e34b4[_0x3dae30(0x27b)]!==0x1||!(_0x3dae30(0x18d)in _0x3e34b4)||!_0x3e34b4[_0x3dae30(0x18d)]||typeof _0x3e34b4[_0x3dae30(0x18d)]!=_0x3dae30(0x201)||Array[_0x3dae30(0x241)](_0x3e34b4[_0x3dae30(0x18d)])?!0x1:Object[_0x3dae30(0x21a)](_0x3e34b4[_0x3dae30(0x18d)])['every'](([_0x575ce8,_0x246bed])=>_0x575ce8[_0x3dae30(0x21f)]>0x0&&Pe(_0x246bed));}function Pe(_0x184980){const _0xe2888d=_0x4f6fbf;return!_0x184980||typeof _0x184980!='object'||!S(_0x184980,[_0xe2888d(0x209),_0xe2888d(0x190),'lastValue'])||!('formula'in _0x184980)||typeof _0x184980[_0xe2888d(0x209)]!=_0xe2888d(0x234)||!_0x184980[_0xe2888d(0x209)][_0xe2888d(0x274)]()||_0xe2888d(0x190)in _0x184980&&_0x184980[_0xe2888d(0x190)]!=null&&(typeof _0x184980[_0xe2888d(0x190)]!='object'||!S(_0x184980[_0xe2888d(0x190)],[_0xe2888d(0x1c2)])||!(_0xe2888d(0x1c2)in _0x184980['numberFormat'])||typeof _0x184980['numberFormat'][_0xe2888d(0x1c2)]!=_0xe2888d(0x234))?!0x1:!(_0xe2888d(0x276)in _0x184980)||_0x184980[_0xe2888d(0x276)]==null||Fe(_0x184980[_0xe2888d(0x276)]);}function Fe(_0x536d71){const _0x32cf83=_0x4f6fbf;return!_0x536d71||typeof _0x536d71!=_0x32cf83(0x201)||!S(_0x536d71,['v','t',_0x32cf83(0x1c2)])||!('v'in _0x536d71)||_0x536d71['v']!==null&&typeof _0x536d71['v']!='string'&&typeof _0x536d71['v']!=_0x32cf83(0x1f7)&&typeof _0x536d71['v']!=_0x32cf83(0x1bc)||'t'in _0x536d71&&_0x536d71['t']!=null&&!Ie(_0x536d71['t'])?!0x1:!(_0x32cf83(0x1c2)in _0x536d71)||_0x536d71[_0x32cf83(0x1c2)]==null||typeof _0x536d71[_0x32cf83(0x1c2)]==_0x32cf83(0x234);}function S(_0x1a6f97,_0xa6321d){const _0x516b73=_0x4f6fbf;let _0x3e8571=new Set(_0xa6321d);return Object['keys'](_0x1a6f97)[_0x516b73(0x273)](_0x4b5ed8=>_0x3e8571[_0x516b73(0x1f5)](_0x4b5ed8));}function Ie(_0x37c0a2){const _0x570ba5=_0x4f6fbf;return typeof _0x37c0a2=='number'&&Object[_0x570ba5(0x27f)](_0x359b1c)[_0x570ba5(0x1f2)](_0x37c0a2);}const Le=new Set([_0x32085f[_0x4f6fbf(0x1ad)],_0x32085f[_0x4f6fbf(0x208)],_0x32085f['TABLE_ROW_START'],_0x32085f[_0x4f6fbf(0x1e3)],_0x32085f['TABLE_CELL_END'],_0x32085f['TABLE_ROW_END'],_0x32085f[_0x4f6fbf(0x27d)],_0x32085f[_0x4f6fbf(0x1b7)],_0x32085f[_0x4f6fbf(0x1bd)],_0x32085f[_0x4f6fbf(0x22e)],_0x32085f[_0x4f6fbf(0x1db)],_0x32085f[_0x4f6fbf(0x259)],_0x32085f[_0x4f6fbf(0x1d7)],_0x32085f[_0x4f6fbf(0x219)]]);var C=class extends Error{constructor(){super('Doc\x20Formula\x20range\x20cannot\x20cross\x20document\x20structure\x20boundaries');}};function Re(_0x2cd420){const _0x58654c=_0x4f6fbf;var _0x94e591,_0x44a1be;let _0x541e05=_0x5009bd[_0x58654c(0x1ff)](_0x2cd420[_0x58654c(0x25f)]),_0x1b53f3=j(_0x541e05),{startOffset:_0x12da56,endOffset:_0x4d3421}=We(_0x1b53f3,_0x2cd420[_0x58654c(0x23b)],_0x2cd420['endOffset']);He(_0x1b53f3,_0x12da56,_0x4d3421);let _0xd60b36=((_0x94e591=_0x1b53f3[_0x58654c(0x1e5)])==null?void 0x0:_0x94e591[_0x58654c(0x25a)](_0x374dbb=>{const _0x2d66df=_0x58654c;if(!w(_0x374dbb))return!0x1;let _0x232890=_0x98f7fa(_0x374dbb);return _0x232890['endOffset']>_0x12da56&&_0x232890[_0x2d66df(0x23b)]<_0x4d3421;})[_0x58654c(0x1d6)](_0x5afd88=>_0x5afd88[_0x58654c(0x1e6)]))??[];qe(_0x1b53f3,_0x12da56,_0x4d3421,''),_0x1b53f3[_0x58654c(0x1e5)]=[...((_0x44a1be=_0x1b53f3[_0x58654c(0x1e5)])==null?void 0x0:_0x44a1be[_0x58654c(0x25a)](_0x3465b9=>!_0xd60b36[_0x58654c(0x1f2)](_0x3465b9[_0x58654c(0x1e6)])&&_0x3465b9[_0x58654c(0x1e6)]!==_0x2cd420[_0x58654c(0x1e6)]))??[],Ue(_0x2cd420[_0x58654c(0x1e6)],_0x12da56)]['sort']((_0xb510a7,_0xaca23e)=>_0xb510a7[_0x58654c(0x200)]-_0xaca23e[_0x58654c(0x200)]);let _0x3d7b7c=E(_0x2cd420[_0x58654c(0x25b)]);return _0xd60b36[_0x58654c(0x1bf)](_0x4bee5d=>{delete _0x3d7b7c['formulas'][_0x4bee5d];}),_0x3d7b7c[_0x58654c(0x18d)][_0x2cd420[_0x58654c(0x1e6)]]=_0x5009bd['deepClone'](_0x2cd420['config']),{'nextDocumentData':_0x541e05,'nextResource':_0x3d7b7c,'cursorOffset':_0x12da56+0x1};}function ze(_0x1e8c66){const _0x71457=_0x4f6fbf;var _0x193dd0,_0x783bc0;let _0x37838d=_0x5009bd[_0x71457(0x1ff)](_0x1e8c66[_0x71457(0x25f)]),_0x40db35=(_0x193dd0=j(_0x37838d)[_0x71457(0x1e5)])==null?void 0x0:_0x193dd0[_0x71457(0x204)](_0x3cfab0=>_0x3cfab0[_0x71457(0x1e6)]===_0x1e8c66['rangeId']&&w(_0x3cfab0));if(!_0x40db35||!((_0x783bc0=_0x1e8c66[_0x71457(0x25b)])!=null&&_0x783bc0[_0x71457(0x18d)][_0x1e8c66[_0x71457(0x1e6)]]))return null;let _0x299d05=E(_0x1e8c66[_0x71457(0x25b)]);return _0x299d05[_0x71457(0x18d)][_0x1e8c66['rangeId']]=_0x5009bd[_0x71457(0x1ff)](_0x1e8c66[_0x71457(0x1ed)]),{'nextDocumentData':_0x37838d,'nextResource':_0x299d05,'cursorOffset':_0x40db35[_0x71457(0x1aa)]+0x1};}function Be(_0x23af8e){const _0x2f725f=_0x4f6fbf;let _0x5c5d58=_0x5009bd[_0x2f725f(0x1ff)](_0x23af8e[_0x2f725f(0x25f)]),_0x5f2a24=Je(_0x5c5d58,_0x23af8e[_0x2f725f(0x1e6)],_0x23af8e[_0x2f725f(0x25d)]??'');if(_0x5f2a24==null)return null;let _0x3ba75c=E(_0x23af8e[_0x2f725f(0x25b)]);return delete _0x3ba75c[_0x2f725f(0x18d)][_0x23af8e[_0x2f725f(0x1e6)]],{'nextDocumentData':_0x5c5d58,'nextResource':_0x3ba75c,'cursorOffset':_0x5f2a24};}function Ve(_0x32418b,_0x331c79){const _0x4bf123=_0x4f6fbf;var _0xb4058;let _0x5e8907=_0x5009bd[_0x4bf123(0x1ff)](_0x32418b),_0x5b5aea=_0x5e8907['body'];if(!_0x5b5aea)return _0x5e8907;let _0xd2410d=new Map(_0x331c79[_0x4bf123(0x1d6)](_0x4efe11=>[_0x4efe11[_0x4bf123(0x1e6)],_0x4efe11[_0x4bf123(0x25d)]])),_0x408c87=((_0xb4058=_0x5b5aea[_0x4bf123(0x1e5)])==null?void 0x0:_0xb4058[_0x4bf123(0x25a)](_0x3892eb=>w(_0x3892eb)&&_0xd2410d['has'](_0x3892eb['rangeId']))[_0x4bf123(0x1a5)]((_0x4e5438,_0x3cc080)=>_0x3cc080[_0x4bf123(0x200)]-_0x4e5438[_0x4bf123(0x200)]))??[];for(let _0x5b888c of _0x408c87)Je(_0x5e8907,_0x5b888c[_0x4bf123(0x1e6)],_0xd2410d[_0x4bf123(0x275)](_0x5b888c['rangeId'])??'');return _0x5e8907;}function w(_0x3a2263){const _0x1e0f51=_0x4f6fbf;var _0x476355;return(_0x3a2263==null?void 0x0:_0x3a2263[_0x1e0f51(0x1d9)])===_0xd7705f[_0x1e0f51(0x1fb)]&&_0x3a2263['wholeEntity']===!0x0&&((_0x476355=_0x3a2263['properties'])==null?void 0x0:_0x476355['kind'])===_0x1e0f51(0x1f3);}function T(_0x24ccdf,_0x47139d){const _0x3399c7=_0x4f6fbf;var _0x24f333;return _0x24ccdf==null||(_0x24f333=_0x24ccdf['customRanges'])==null?void 0x0:_0x24f333[_0x3399c7(0x204)](_0x5efb1b=>_0x5efb1b[_0x3399c7(0x1e6)]===_0x47139d&&w(_0x5efb1b));}function He(_0xc8aad3,_0x26e80d,_0x2fc235){const _0x2d62cf=_0x4f6fbf;if(_0x26e80d===_0x2fc235){if(Le[_0x2d62cf(0x1f5)](_0xc8aad3['dataStream'][_0x26e80d]))throw new C();return;}for(let _0x3b1735=_0x26e80d;_0x3b1735<_0x2fc235;_0x3b1735++)if(_0xc8aad3[_0x2d62cf(0x220)][_0x3b1735]===_0x32085f[_0x2d62cf(0x19b)]||Le['has'](_0xc8aad3[_0x2d62cf(0x220)][_0x3b1735]))throw new C();}function Ue(_0x43adeb,_0xf0b9e4){const _0x1c8611=_0x4f6fbf;return{'startIndex':_0xf0b9e4,'endIndex':_0xf0b9e4,'rangeId':_0x43adeb,'rangeType':_0xd7705f[_0x1c8611(0x1fb)],'wholeEntity':!0x0,'properties':{'kind':Me}};}function E(_0x5a23c0){return _0x5a23c0?_0x5009bd['deepClone'](_0x5a23c0):b();}function We(_0x3b22d8,_0x18157e,_0x4bbcab){const _0x287758=_0x4f6fbf;let _0x4a3033=Ke(_0x3b22d8),_0x2e9bd7=_0x18157e??_0x4a3033,_0x32148c=_0x4bbcab??_0x2e9bd7;return{'startOffset':Ge(Math['min'](_0x2e9bd7,_0x32148c),_0x4a3033),'endOffset':Ge(Math[_0x287758(0x203)](_0x2e9bd7,_0x32148c),_0x4a3033)};}function Ge(_0x598dba,_0x4f92f5){const _0x17417e=_0x4f6fbf;return Math[_0x17417e(0x203)](0x0,Math[_0x17417e(0x1ae)](_0x598dba,_0x4f92f5));}function Ke(_0x5c1145){const _0x4f0748=_0x4f6fbf;return _0x5c1145[_0x4f0748(0x220)][_0x4f0748(0x246)](''+_0x32085f['PARAGRAPH']+_0x32085f['SECTION_BREAK'])?Math[_0x4f0748(0x203)](0x0,_0x5c1145[_0x4f0748(0x220)]['length']-0x2):_0x5c1145[_0x4f0748(0x220)]['endsWith'](_0x32085f['SECTION_BREAK'])?Math['max'](0x0,_0x5c1145['dataStream'][_0x4f0748(0x21f)]-0x1):_0x5c1145[_0x4f0748(0x220)]['length'];}function qe(_0x59a4dc,_0x442822,_0x1fd8c2,_0x26c4fb){_0x1fd8c2>_0x442822&&Xe(_0x59a4dc,_0x442822,_0x1fd8c2),Ye(_0x59a4dc,_0x442822,_0x26c4fb);}function Je(_0x428dc2,_0x4a2edd,_0x4e6412){const _0x22a44a=_0x4f6fbf;var _0x32f839,_0x343abc;let _0x342872=j(_0x428dc2),_0x32332f=(_0x32f839=_0x342872[_0x22a44a(0x1e5)])==null?void 0x0:_0x32f839['find'](_0xf95006=>_0xf95006[_0x22a44a(0x1e6)]===_0x4a2edd&&w(_0xf95006));if(!_0x32332f)return null;let _0x47f11f=_0x98f7fa(_0x32332f);return qe(_0x342872,_0x47f11f[_0x22a44a(0x23b)],_0x47f11f[_0x22a44a(0x266)],_0x4e6412),_0x342872['customRanges']=(_0x343abc=_0x342872[_0x22a44a(0x1e5)])==null?void 0x0:_0x343abc[_0x22a44a(0x25a)](_0x52674d=>_0x52674d[_0x22a44a(0x1e6)]!==_0x4a2edd),_0x47f11f[_0x22a44a(0x23b)]+_0x4e6412[_0x22a44a(0x21f)];}function Ye(_0x12c189,_0x341000,_0x5deca6){const _0x3d5d99=_0x4f6fbf;_0x5deca6&&(_0x12c189[_0x3d5d99(0x220)]=''+_0x12c189[_0x3d5d99(0x220)][_0x3d5d99(0x24a)](0x0,_0x341000)+_0x5deca6+_0x12c189[_0x3d5d99(0x220)][_0x3d5d99(0x24a)](_0x341000),Ze(_0x12c189,_0x341000,_0x5deca6[_0x3d5d99(0x21f)]));}function Xe(_0x540787,_0x1375d8,_0x49d527){const _0x129bfd=_0x4f6fbf;let _0x2c751b=_0x49d527-_0x1375d8;_0x540787[_0x129bfd(0x220)]=''+_0x540787[_0x129bfd(0x220)][_0x129bfd(0x24a)](0x0,_0x1375d8)+_0x540787[_0x129bfd(0x220)]['slice'](_0x49d527),Qe(_0x540787,_0x1375d8,_0x2c751b);}function Ze(_0x2269b6,_0x238246,_0x328933){const _0x3135c4=_0x4f6fbf;_0x2269b6[_0x3135c4(0x1a6)]=D(_0x2269b6[_0x3135c4(0x1a6)],_0x238246,_0x328933),_0x2269b6[_0x3135c4(0x191)]=D(_0x2269b6[_0x3135c4(0x191)],_0x238246,_0x328933),_0x2269b6[_0x3135c4(0x235)]=D(_0x2269b6[_0x3135c4(0x235)],_0x238246,_0x328933),_0x2269b6['textRuns']=$e(_0x2269b6[_0x3135c4(0x202)],_0x238246,_0x328933),_0x2269b6[_0x3135c4(0x25c)]=et(_0x2269b6['tables'],_0x238246,_0x328933),_0x2269b6['columnGroups']=k(_0x2269b6[_0x3135c4(0x1ab)],_0x238246,_0x328933),_0x2269b6[_0x3135c4(0x1e5)]=k(_0x2269b6[_0x3135c4(0x1e5)],_0x238246,_0x328933),_0x2269b6[_0x3135c4(0x226)]=k(_0x2269b6[_0x3135c4(0x226)],_0x238246,_0x328933),_0x2269b6[_0x3135c4(0x1e8)]=k(_0x2269b6[_0x3135c4(0x1e8)],_0x238246,_0x328933);}function Qe(_0x14dba0,_0xd08de5,_0x1e5b6e){const _0x341a6e=_0x4f6fbf;var _0x3b6ef0,_0x4c31ff;_0x14dba0[_0x341a6e(0x1a6)]=O(_0x14dba0[_0x341a6e(0x1a6)],_0xd08de5,_0x1e5b6e),_0x14dba0[_0x341a6e(0x191)]=O(_0x14dba0[_0x341a6e(0x191)],_0xd08de5,_0x1e5b6e),_0x14dba0[_0x341a6e(0x235)]=O(_0x14dba0['customBlocks'],_0xd08de5,_0x1e5b6e),_0x14dba0['textRuns']=(_0x3b6ef0=tt((_0x4c31ff=_0x14dba0['textRuns'])==null?void 0x0:_0x4c31ff[_0x341a6e(0x1d6)](_0x445f23=>({..._0x445f23,'startIndex':_0x445f23['st'],'endIndex':_0x445f23['ed']})),_0xd08de5,_0x1e5b6e))==null?void 0x0:_0x3b6ef0[_0x341a6e(0x1d6)](_0x5c4cfb=>{let {startIndex:_0x24aafc,endIndex:_0x44116d,..._0x3f0a2a}=_0x5c4cfb;return{..._0x3f0a2a,'st':_0x24aafc,'ed':_0x44116d};}),_0x14dba0[_0x341a6e(0x25c)]=tt(_0x14dba0[_0x341a6e(0x25c)],_0xd08de5,_0x1e5b6e),_0x14dba0[_0x341a6e(0x1ab)]=A(_0x14dba0[_0x341a6e(0x1ab)],_0xd08de5,_0x1e5b6e),_0x14dba0[_0x341a6e(0x1e5)]=A(_0x14dba0[_0x341a6e(0x1e5)],_0xd08de5,_0x1e5b6e),_0x14dba0['customDecorations']=A(_0x14dba0[_0x341a6e(0x226)],_0xd08de5,_0x1e5b6e),_0x14dba0['blockRanges']=A(_0x14dba0['blockRanges'],_0xd08de5,_0x1e5b6e);}function D(_0x78d465,_0x3d8819,_0x2ada22){const _0x19a89e=_0x4f6fbf;return _0x78d465==null?void 0x0:_0x78d465[_0x19a89e(0x1d6)](_0x1aa610=>_0x1aa610['startIndex']>=_0x3d8819?{..._0x1aa610,'startIndex':_0x1aa610[_0x19a89e(0x200)]+_0x2ada22}:_0x1aa610);}function O(_0x25e5dc,_0x3eca54,_0x34f649){const _0x4e13d1=_0x4f6fbf;let _0xe75554=_0x3eca54+_0x34f649;return _0x25e5dc==null?void 0x0:_0x25e5dc[_0x4e13d1(0x1d6)](_0x5547ff=>_0x5547ff[_0x4e13d1(0x200)]>=_0x3eca54&&_0x5547ff[_0x4e13d1(0x200)]<_0xe75554?null:_0x5547ff[_0x4e13d1(0x200)]>=_0xe75554?{..._0x5547ff,'startIndex':_0x5547ff[_0x4e13d1(0x200)]-_0x34f649}:_0x5547ff)[_0x4e13d1(0x25a)](_0x1ece29=>_0x1ece29!=null);}function $e(_0xba0856,_0x5f33a4,_0x34307f){const _0x2ddc48=_0x4f6fbf;return _0xba0856==null?void 0x0:_0xba0856[_0x2ddc48(0x1d6)](_0x1d1d07=>_0x1d1d07['st']>=_0x5f33a4?{..._0x1d1d07,'st':_0x1d1d07['st']+_0x34307f,'ed':_0x1d1d07['ed']+_0x34307f}:_0x1d1d07['ed']>_0x5f33a4?{..._0x1d1d07,'ed':_0x1d1d07['ed']+_0x34307f}:_0x1d1d07);}function k(_0x5b926e,_0x375611,_0x38cea8){const _0x5ea0b8=_0x4f6fbf;return _0x5b926e==null?void 0x0:_0x5b926e[_0x5ea0b8(0x1d6)](_0x55dfe6=>_0x4c9420(_0x55dfe6,_0x375611,_0x38cea8));}function et(_0x50877a,_0x20a746,_0x4dbaf1){const _0x273a76=_0x4f6fbf;return _0x50877a==null?void 0x0:_0x50877a[_0x273a76(0x1d6)](_0x30eb79=>_0x3994a9(_0x30eb79,_0x20a746,_0x4dbaf1));}function A(_0x47a5d3,_0x48891e,_0x15b595){return _0x47a5d3==null?void 0x0:_0x47a5d3['map'](_0x2cd407=>_0x1884f3(_0x2cd407,_0x48891e,_0x15b595))['filter'](_0x228e06=>_0x228e06!=null);}function tt(_0x4d14f5,_0x57c7e9,_0x57caef){return _0x4d14f5==null?void 0x0:_0x4d14f5['map'](_0x591868=>_0x40f2b0(_0x591868,_0x57c7e9,_0x57caef))['filter'](_0x1fc113=>_0x1fc113!=null);}function j(_0x28db63){const _0x44da8d=_0x4f6fbf;if(!_0x28db63[_0x44da8d(0x278)])throw Error(_0x44da8d(0x236));return _0x28db63[_0x44da8d(0x278)];}function M(_0xa76fe8){'@babel/helpers - typeof';const _0x27cd80=_0x4f6fbf;return M=typeof Symbol==_0x27cd80(0x1f6)&&typeof Symbol[_0x27cd80(0x199)]==_0x27cd80(0x1e7)?function(_0x1af0da){return typeof _0x1af0da;}:function(_0xd01203){const _0x4f6265=_0x27cd80;return _0xd01203&&typeof Symbol==_0x4f6265(0x1f6)&&_0xd01203[_0x4f6265(0x280)]===Symbol&&_0xd01203!==Symbol[_0x4f6265(0x260)]?_0x4f6265(0x1e7):typeof _0xd01203;},M(_0xa76fe8);}function nt(_0x56d852,_0x6aeaea){const _0x2f97e2=_0x4f6fbf;if(M(_0x56d852)!=_0x2f97e2(0x201)||!_0x56d852)return _0x56d852;var _0x3faaab=_0x56d852[Symbol[_0x2f97e2(0x19f)]];if(_0x3faaab!==void 0x0){var _0x41e97c=_0x3faaab[_0x2f97e2(0x277)](_0x56d852,_0x6aeaea||_0x2f97e2(0x217));if(M(_0x41e97c)!='object')return _0x41e97c;throw TypeError(_0x2f97e2(0x1d1));}return(_0x6aeaea===_0x2f97e2(0x234)?String:Number)(_0x56d852);}function rt(_0x260bb0){const _0x2aa2be=_0x4f6fbf;var _0x40659d=nt(_0x260bb0,'string');return M(_0x40659d)==_0x2aa2be(0x1e7)?_0x40659d:_0x40659d+'';}function N(_0x2d4945,_0x1d8eef,_0x4e6f27){const _0x442684=_0x4f6fbf;return(_0x1d8eef=rt(_0x1d8eef))in _0x2d4945?Object[_0x442684(0x228)](_0x2d4945,_0x1d8eef,{'value':_0x4e6f27,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x2d4945[_0x1d8eef]=_0x4e6f27,_0x2d4945;}var P=class extends _0x31b7da{constructor(..._0x4e3f7c){const _0x2f7838=_0x4f6fbf;super(..._0x4e3f7c),N(this,_0x2f7838(0x186),new Map()),N(this,_0x2f7838(0x1ba),new Map()),N(this,_0x2f7838(0x256),new Map()),N(this,_0x2f7838(0x1c0),new _0x3ff55e()),N(this,'change$',this[_0x2f7838(0x1c0)][_0x2f7838(0x26c)]());}[_0x4f6fbf(0x1dd)](_0x4abe52,_0x19ff96){const _0x553282=_0x4f6fbf;var _0x3c7bf8;let _0x5ed942=(_0x3c7bf8=this[_0x553282(0x186)][_0x553282(0x275)](_0x4abe52))==null?void 0x0:_0x3c7bf8[_0x553282(0x18d)][_0x19ff96];return _0x5ed942?_0x5009bd[_0x553282(0x1ff)](_0x5ed942):void 0x0;}[_0x4f6fbf(0x194)](_0x3ec31d){const _0x145e20=_0x4f6fbf;var _0x48e563;return _0x5009bd[_0x145e20(0x1ff)](((_0x48e563=this[_0x145e20(0x186)][_0x145e20(0x275)](_0x3ec31d))==null?void 0x0:_0x48e563[_0x145e20(0x18d)])??{});}[_0x4f6fbf(0x26f)](_0x412d9a){const _0x328c48=_0x4f6fbf;let _0x5eaf02=this[_0x328c48(0x186)][_0x328c48(0x275)](_0x412d9a);return _0x5eaf02?_0x5009bd[_0x328c48(0x1ff)](_0x5eaf02):void 0x0;}[_0x4f6fbf(0x1b2)](_0x10dce6,_0x375f12,_0x21f518){const _0x203429=_0x4f6fbf;return this[_0x203429(0x252)](_0x10dce6,{[_0x375f12]:_0x21f518});}[_0x4f6fbf(0x1d4)](_0x5a2967,_0x11830c){const _0x228796=_0x4f6fbf;return this['_loadErrors'][_0x228796(0x1f5)](_0x5a2967)||!x(_0x11830c)?!0x1:(this['_resources'][_0x228796(0x19c)](_0x5a2967,_0x5009bd[_0x228796(0x1ff)](_0x11830c)),this[_0x228796(0x1c0)]['next']({'unitId':_0x5a2967}),!0x0);}[_0x4f6fbf(0x252)](_0x11bfa9,_0x186616){const _0x37d9c5=_0x4f6fbf;if(this[_0x37d9c5(0x256)]['has'](_0x11bfa9)||!Object[_0x37d9c5(0x281)](_0x186616)[_0x37d9c5(0x21f)]||!x({'schemaVersion':0x1,'formulas':_0x186616}))return!0x1;let _0x2b0550=this[_0x37d9c5(0x186)][_0x37d9c5(0x275)](_0x11bfa9)??b(),_0x128f85=_0x5009bd[_0x37d9c5(0x1ff)](_0x2b0550);return Object[_0x37d9c5(0x233)](_0x128f85[_0x37d9c5(0x18d)],_0x5009bd[_0x37d9c5(0x1ff)](_0x186616)),this[_0x37d9c5(0x186)]['set'](_0x11bfa9,_0x128f85),this[_0x37d9c5(0x1c0)][_0x37d9c5(0x1a2)]({'unitId':_0x11bfa9,'rangeIds':Object[_0x37d9c5(0x281)](_0x186616)}),!0x0;}[_0x4f6fbf(0x242)](_0x30d3d5,_0x4a76c2){const _0x1f7905=_0x4f6fbf;if(this[_0x1f7905(0x256)][_0x1f7905(0x1f5)](_0x30d3d5))return!0x1;let _0x2ab402=this[_0x1f7905(0x186)][_0x1f7905(0x275)](_0x30d3d5);if(!(_0x2ab402!=null&&_0x2ab402[_0x1f7905(0x18d)][_0x4a76c2]))return!0x1;let _0x32c2e5=_0x5009bd[_0x1f7905(0x1ff)](_0x2ab402);return delete _0x32c2e5[_0x1f7905(0x18d)][_0x4a76c2],this[_0x1f7905(0x186)][_0x1f7905(0x19c)](_0x30d3d5,_0x32c2e5),this['_change$']['next']({'unitId':_0x30d3d5,'rangeIds':[_0x4a76c2]}),!0x0;}[_0x4f6fbf(0x245)](_0x31862c,_0x437cbd){const _0x513979=_0x4f6fbf;return _0x437cbd&&typeof _0x437cbd==_0x513979(0x201)&&_0x513979(0x27b)in _0x437cbd&&_0x437cbd['schemaVersion']!==0x1?(this[_0x513979(0x22b)](_0x31862c,_0x437cbd,_0x513979(0x21e)),!0x1):x(_0x437cbd)?(this['_resources'][_0x513979(0x19c)](_0x31862c,_0x5009bd['deepClone'](_0x437cbd)),this[_0x513979(0x1ba)][_0x513979(0x1ca)](_0x31862c),this[_0x513979(0x256)][_0x513979(0x1ca)](_0x31862c),this[_0x513979(0x1c0)][_0x513979(0x1a2)]({'unitId':_0x31862c}),!0x0):(this[_0x513979(0x22b)](_0x31862c,_0x437cbd,'invalid-resource'),!0x1);}[_0x4f6fbf(0x239)](_0x186a05){const _0x34ea94=_0x4f6fbf;let _0x2cd08f=this[_0x34ea94(0x186)][_0x34ea94(0x275)](_0x186a05);return _0x2cd08f?_0x5009bd[_0x34ea94(0x1ff)](_0x2cd08f):this['_rawResources'][_0x34ea94(0x1f5)](_0x186a05)?_0x5009bd[_0x34ea94(0x1ff)](this[_0x34ea94(0x1ba)][_0x34ea94(0x275)](_0x186a05)):b();}[_0x4f6fbf(0x1ea)](_0x5f4820){const _0xa516f2=_0x4f6fbf;return this[_0xa516f2(0x256)][_0xa516f2(0x275)](_0x5f4820);}[_0x4f6fbf(0x195)](_0x487c7a){const _0x18f04f=_0x4f6fbf;this[_0x18f04f(0x186)]['delete'](_0x487c7a),this[_0x18f04f(0x1ba)][_0x18f04f(0x1ca)](_0x487c7a),this[_0x18f04f(0x256)][_0x18f04f(0x1ca)](_0x487c7a),this[_0x18f04f(0x1c0)][_0x18f04f(0x1a2)]({'unitId':_0x487c7a});}[_0x4f6fbf(0x215)](){const _0x478b95=_0x4f6fbf;this[_0x478b95(0x186)][_0x478b95(0x1d2)](),this[_0x478b95(0x1ba)][_0x478b95(0x1d2)](),this[_0x478b95(0x256)][_0x478b95(0x1d2)](),this['_change$']['complete'](),super[_0x478b95(0x215)]();}[_0x4f6fbf(0x22b)](_0x1f9401,_0x4fd209,_0x3f12aa){const _0x4554e5=_0x4f6fbf;this[_0x4554e5(0x186)]['delete'](_0x1f9401),this[_0x4554e5(0x1ba)]['set'](_0x1f9401,_0x5009bd['deepClone'](_0x4fd209)),this['_loadErrors']['set'](_0x1f9401,_0x3f12aa),this[_0x4554e5(0x1c0)][_0x4554e5(0x1a2)]({'unitId':_0x1f9401});}};let it=function(_0x37d957){const _0x2ba963=_0x4f6fbf;return _0x37d957[_0x2ba963(0x19e)]=_0x2ba963(0x1de),_0x37d957[_0x2ba963(0x1fd)]=_0x2ba963(0x26e),_0x37d957[_0x2ba963(0x250)]='success',_0x37d957['ERROR']=_0x2ba963(0x18a),_0x37d957;}({});function F(_0x48d28a,_0x4c1267){return function(_0x460ff6,_0x42bb57){_0x4c1267(_0x460ff6,_0x42bb57,_0x48d28a);};}function I(_0x4a534b,_0x5288fc,_0x4b784f,_0x285269){const _0x2d4b29=_0x4f6fbf;var _0x7fe339=arguments['length'],_0x344cd4=_0x7fe339<0x3?_0x5288fc:_0x285269===null?_0x285269=Object['getOwnPropertyDescriptor'](_0x5288fc,_0x4b784f):_0x285269,_0x1cd98a;if(typeof Reflect==_0x2d4b29(0x201)&&typeof Reflect[_0x2d4b29(0x224)]==_0x2d4b29(0x1f6))_0x344cd4=Reflect[_0x2d4b29(0x224)](_0x4a534b,_0x5288fc,_0x4b784f,_0x285269);else{for(var _0x6335fe=_0x4a534b[_0x2d4b29(0x21f)]-0x1;_0x6335fe>=0x0;_0x6335fe--)(_0x1cd98a=_0x4a534b[_0x6335fe])&&(_0x344cd4=(_0x7fe339<0x3?_0x1cd98a(_0x344cd4):_0x7fe339>0x3?_0x1cd98a(_0x5288fc,_0x4b784f,_0x344cd4):_0x1cd98a(_0x5288fc,_0x4b784f))||_0x344cd4);}return _0x7fe339>0x3&&_0x344cd4&&Object[_0x2d4b29(0x228)](_0x5288fc,_0x4b784f,_0x344cd4),_0x344cd4;}let L=class extends _0x31b7da{constructor(_0x61dd4e,_0x2f85ad,_0x1c6603){const _0x13d8a9=_0x4f6fbf;super(),this[_0x13d8a9(0x20e)]=_0x61dd4e,this[_0x13d8a9(0x263)]=_0x2f85ad,this['_hostExternalReferenceModel']=_0x1c6603,N(this,_0x13d8a9(0x1fa),new Map()),N(this,'_formulaKeys',new Map()),N(this,_0x13d8a9(0x24f),new _0x3ff55e()),N(this,_0x13d8a9(0x1a9),this['_presentationChanged$']['asObservable']()),this[_0x13d8a9(0x23f)](this[_0x13d8a9(0x263)]['formulaResult$']['subscribe'](_0x5d62aa=>{for(let _0x786e3a of Object['values'](_0x5d62aa))for(let _0x2fa587 of Object['values'](_0x786e3a))_0x2fa587['forEach'](_0x59aaab=>this['_updateFormulaResult'](_0x59aaab));}));}['syncUnit'](_0x3628d5){const _0x31c429=_0x4f6fbf;var _0x45fdcc;let _0x30d2cc=_0x3628d5[_0x31c429(0x23d)](),_0x59da12=((_0x45fdcc=_0x3628d5[_0x31c429(0x18f)]()['body'])==null||(_0x45fdcc=_0x45fdcc[_0x31c429(0x1e5)])==null?void 0x0:_0x45fdcc[_0x31c429(0x25a)](w))??[],_0x3ef9be=this[_0x31c429(0x20e)][_0x31c429(0x194)](_0x30d2cc),_0x1f9acc=new Set();for(let _0x2f2274 of _0x59da12){let _0x4f8aec=_0x3ef9be[_0x2f2274[_0x31c429(0x1e6)]];_0x4f8aec&&(_0x1f9acc[_0x31c429(0x24b)](R(_0x30d2cc,_0x2f2274[_0x31c429(0x1e6)])),this[_0x31c429(0x1ce)]({'unitId':_0x30d2cc,'rangeId':_0x2f2274['rangeId']},_0x4f8aec));}for(let _0x331425 of Array[_0x31c429(0x1c7)](this[_0x31c429(0x1fa)][_0x31c429(0x27f)]()))_0x331425[_0x31c429(0x1c3)]===_0x30d2cc&&!_0x1f9acc[_0x31c429(0x1f5)](R(_0x331425['unitId'],_0x331425[_0x31c429(0x1e6)]))&&this[_0x31c429(0x271)](_0x331425);}[_0x4f6fbf(0x1ce)](_0x16d436,_0x312629){const _0x4bc2c6=_0x4f6fbf;let _0x52878b=R(_0x16d436[_0x4bc2c6(0x1c3)],_0x16d436[_0x4bc2c6(0x1e6)]),_0x1e92af=this[_0x4bc2c6(0x1fa)]['get'](_0x52878b),_0x470f14=this[_0x4bc2c6(0x268)]['getRevision'](_0x16d436[_0x4bc2c6(0x1c3)]);if(_0x1e92af&&_0x1e92af[_0x4bc2c6(0x1ed)][_0x4bc2c6(0x209)]===_0x312629['formula']&&_0x1e92af[_0x4bc2c6(0x258)]===_0x470f14){_0x1e92af['config']=_0x312629;let _0x33484b=_0x1e92af[_0x4bc2c6(0x279)]?this['_registrationService'][_0x4bc2c6(0x1e2)](_0x1e92af[_0x4bc2c6(0x1c3)],_0x1e92af[_0x4bc2c6(0x1c3)],_0x1e92af[_0x4bc2c6(0x279)])??void 0x0:void 0x0;_0x1e92af[_0x4bc2c6(0x20d)]=_0x33484b,this['_setPresentation'](_0x52878b,z(_0x312629,_0x33484b));return;}_0x1e92af!=null&&_0x1e92af[_0x4bc2c6(0x279)]&&this[_0x4bc2c6(0x20c)](_0x1e92af);let _0x50b8cd={..._0x16d436,'config':_0x312629,'referenceRevision':_0x470f14,'presentation':z(_0x312629,void 0x0)};if(this[_0x4bc2c6(0x1fa)][_0x4bc2c6(0x19c)](_0x52878b,_0x50b8cd),!_0x312629[_0x4bc2c6(0x209)][_0x4bc2c6(0x274)]())return;let _0x1d6f40=this['_registrationService']['registerFormulaWithRange'](_0x16d436[_0x4bc2c6(0x1c3)],_0x16d436['unitId'],_0x312629[_0x4bc2c6(0x209)],void 0x0,{'rangeId':_0x16d436['rangeId']},_0x1fd681[_0x4bc2c6(0x1b4)],_0x16d436[_0x4bc2c6(0x1e6)]);_0x50b8cd[_0x4bc2c6(0x279)]=_0x1d6f40,this[_0x4bc2c6(0x1a1)][_0x4bc2c6(0x19c)](_0x1d6f40,_0x52878b);}[_0x4f6fbf(0x271)](_0x3f20f0){const _0x2f1f1b=_0x4f6fbf;let _0x5ed15b=R(_0x3f20f0['unitId'],_0x3f20f0[_0x2f1f1b(0x1e6)]),_0x122d55=this['_registrations'][_0x2f1f1b(0x275)](_0x5ed15b);_0x122d55&&(this[_0x2f1f1b(0x20c)](_0x122d55),this[_0x2f1f1b(0x1fa)]['delete'](_0x5ed15b));}[_0x4f6fbf(0x1a7)](_0x55507e){const _0x193183=_0x4f6fbf;for(let _0x5c4a0c of Array['from'](this['_registrations'][_0x193183(0x27f)]()))_0x5c4a0c['unitId']===_0x55507e&&this[_0x193183(0x271)](_0x5c4a0c);}[_0x4f6fbf(0x1bb)](_0x3067e2){const _0x354f69=_0x4f6fbf;var _0x41d9ea;return(_0x41d9ea=this[_0x354f69(0x1fa)]['get'](R(_0x3067e2[_0x354f69(0x1c3)],_0x3067e2[_0x354f69(0x1e6)])))==null?void 0x0:_0x41d9ea[_0x354f69(0x193)];}[_0x4f6fbf(0x212)](_0x323fa2){const _0x407a20=_0x4f6fbf;let _0x5298a4=this[_0x407a20(0x1fa)][_0x407a20(0x275)](R(_0x323fa2[_0x407a20(0x1c3)],_0x323fa2[_0x407a20(0x1e6)]));return _0x5298a4?B(_0x5298a4):void 0x0;}[_0x4f6fbf(0x262)](){const _0x556ef4=_0x4f6fbf;return Array[_0x556ef4(0x1c7)](this['_registrations']['values'](),_0x44f77f=>({'identity':{'unitId':_0x44f77f['unitId'],'rangeId':_0x44f77f['rangeId']},'config':_0x44f77f['config'],'referenceRevision':_0x44f77f[_0x556ef4(0x258)],..._0x44f77f['liveResult']?{'liveResult':_0x44f77f['liveResult']}:null}));}[_0x4f6fbf(0x215)](){const _0x3d6e9e=_0x4f6fbf;for(let _0x1beb96 of this[_0x3d6e9e(0x1fa)]['values']())this['_deleteRegistration'](_0x1beb96);this[_0x3d6e9e(0x1fa)]['clear'](),this[_0x3d6e9e(0x1a1)][_0x3d6e9e(0x1d2)](),this['_presentationChanged$'][_0x3d6e9e(0x244)](),super[_0x3d6e9e(0x215)]();}[_0x4f6fbf(0x251)](_0x3913b3){const _0x1e1a02=_0x4f6fbf;let _0x597c15=this[_0x1e1a02(0x1a1)]['get'](_0x3913b3[_0x1e1a02(0x279)]),_0x42416c=_0x597c15?this[_0x1e1a02(0x1fa)]['get'](_0x597c15):void 0x0;!_0x597c15||!_0x42416c||(_0x42416c[_0x1e1a02(0x20d)]=_0x3913b3,this[_0x1e1a02(0x26a)](_0x597c15,z(_0x42416c[_0x1e1a02(0x1ed)],_0x3913b3)));}[_0x4f6fbf(0x26a)](_0x31df09,_0x44edfb){const _0x43bb91=_0x4f6fbf;var _0x35c93c,_0x58abf2;let _0x55c5ca=this[_0x43bb91(0x1fa)][_0x43bb91(0x275)](_0x31df09);if(!_0x55c5ca||at(_0x55c5ca['presentation'],_0x44edfb))return;let _0x4c7f38=_0x55c5ca[_0x43bb91(0x193)],_0x95b55=B(_0x55c5ca);_0x55c5ca['presentation']=_0x44edfb,this[_0x43bb91(0x24f)][_0x43bb91(0x1a2)]({'unitId':_0x55c5ca['unitId'],'rangeId':_0x55c5ca[_0x43bb91(0x1e6)],'presentation':_0x44edfb,'previousPresentation':_0x4c7f38,'result':B(_0x55c5ca),'previousResult':{..._0x95b55,..._0x4c7f38,'value':(_0x35c93c=_0x4c7f38[_0x43bb91(0x1df)])==null?void 0x0:_0x35c93c['v'],'valueType':((_0x58abf2=_0x4c7f38[_0x43bb91(0x1df)])==null?void 0x0:_0x58abf2['t'])??void 0x0}});}[_0x4f6fbf(0x20c)](_0x4f36e2){const _0x4da46c=_0x4f6fbf;_0x4f36e2[_0x4da46c(0x279)]&&(this[_0x4da46c(0x263)]['deleteFormula'](_0x4f36e2[_0x4da46c(0x1c3)],_0x4f36e2[_0x4da46c(0x1c3)],[_0x4f36e2[_0x4da46c(0x279)]]),this['_formulaKeys'][_0x4da46c(0x1ca)](_0x4f36e2[_0x4da46c(0x279)]));}};L=I([F(0x0,_0x2acef3(P)),F(0x1,_0x2acef3(_0x13ff1c)),F(0x2,_0x2acef3(_0x10c960))],L);function R(_0x58f1d6,_0x49206a){return _0x58f1d6+'\x00'+_0x49206a;}function z(_0x50bcdf,_0x46e716){return _0x42aa2e({'numberFormat':_0x50bcdf['numberFormat'],'lastValue':_0x50bcdf['lastValue'],'result':_0x46e716});}function B(_0x39b239){const _0x51163b=_0x4f6fbf;var _0x53f904,_0xdcb372,_0x1f2f38;let _0x11e8c2=_0x39b239['presentation'],_0x56e1bf=_0x39b239['config']['formula'][_0x51163b(0x274)]()?_0x11e8c2['stale']||_0x11e8c2[_0x51163b(0x1df)]==null?_0x51163b(0x26e):((_0x53f904=_0x39b239[_0x51163b(0x20d)])==null?void 0x0:_0x53f904[_0x51163b(0x1c6)])===_0xa56ea4[_0x51163b(0x1fc)]?'error':_0x51163b(0x264):_0x51163b(0x1de);return{..._0x11e8c2,'status':_0x56e1bf,'value':(_0xdcb372=_0x11e8c2[_0x51163b(0x1df)])==null?void 0x0:_0xdcb372['v'],'valueType':((_0x1f2f38=_0x11e8c2[_0x51163b(0x1df)])==null?void 0x0:_0x1f2f38['t'])??void 0x0};}function at(_0x46de42,_0x105086){const _0x5d6e2c=_0x4f6fbf;var _0x2fa9d2,_0x4365b3,_0x40c266,_0x6f78c6;return _0x46de42[_0x5d6e2c(0x25d)]===_0x105086[_0x5d6e2c(0x25d)]&&_0x46de42[_0x5d6e2c(0x1e9)]===_0x105086[_0x5d6e2c(0x1e9)]&&_0x46de42['pattern']===_0x105086[_0x5d6e2c(0x1c2)]&&_0x46de42['source']===_0x105086[_0x5d6e2c(0x261)]&&_0x46de42[_0x5d6e2c(0x24d)]===_0x105086[_0x5d6e2c(0x24d)]&&((_0x2fa9d2=_0x46de42['cell'])==null?void 0x0:_0x2fa9d2['t'])===((_0x4365b3=_0x105086['cell'])==null?void 0x0:_0x4365b3['t'])&&Object['is']((_0x40c266=_0x46de42[_0x5d6e2c(0x1df)])==null?void 0x0:_0x40c266['v'],(_0x6f78c6=_0x105086[_0x5d6e2c(0x1df)])==null?void 0x0:_0x6f78c6['v']);}const ot={'id':_0x4f6fbf(0x26b),'type':_0x54b120['MUTATION'],'handler':(_0x204bad,_0x213e4c)=>!(_0x213e4c!=null&&_0x213e4c[_0x4f6fbf(0x1c3)])||!_0x213e4c[_0x4f6fbf(0x1e6)]||!_0x213e4c['config']?!0x1:_0x204bad[_0x4f6fbf(0x275)](P)[_0x4f6fbf(0x1b2)](_0x213e4c[_0x4f6fbf(0x1c3)],_0x213e4c['rangeId'],_0x213e4c[_0x4f6fbf(0x1ed)])},st={'id':_0x4f6fbf(0x1cd),'type':_0x54b120[_0x4f6fbf(0x1e4)],'handler':(_0x45e125,_0x162caa)=>!(_0x162caa!=null&&_0x162caa[_0x4f6fbf(0x1c3)])||!_0x162caa['rangeId']?!0x1:_0x45e125['get'](P)[_0x4f6fbf(0x242)](_0x162caa[_0x4f6fbf(0x1c3)],_0x162caa[_0x4f6fbf(0x1e6)])},V={'id':_0x4f6fbf(0x1b5),'type':_0x54b120['MUTATION'],'handler':(_0x374b44,_0x100684)=>!(_0x100684!=null&&_0x100684['unitId'])||!_0x100684[_0x4f6fbf(0x25b)]?!0x1:_0x374b44[_0x4f6fbf(0x275)](P)[_0x4f6fbf(0x1d4)](_0x100684[_0x4f6fbf(0x1c3)],_0x100684[_0x4f6fbf(0x25b)])},H={'id':_0x4f6fbf(0x25e),'type':_0x54b120[_0x4f6fbf(0x1e4)],'handler':(_0xdca892,_0xd345f4)=>{const _0x18d233=_0x4f6fbf;if(!(_0xd345f4!=null&&_0xd345f4[_0x18d233(0x1c3)])||!_0xd345f4['updates'][_0x18d233(0x21f)])return!0x1;let _0xa1f684=_0xdca892['get'](P),_0x51e22d=_0xdca892[_0x18d233(0x275)](_0x10c960),_0x5b79ad=_0xa1f684['getResource'](_0xd345f4[_0x18d233(0x1c3)]);if(!_0x5b79ad)return!0x1;let _0xb826d7=_0x5009bd[_0x18d233(0x1ff)](_0x5b79ad),_0x3d9d97=!0x1;for(let _0x276f92 of _0xd345f4[_0x18d233(0x223)]){var _0x589757,_0x50d19b,_0x136ad6,_0x50709e;let _0x2d9dc7=_0xb826d7[_0x18d233(0x18d)][_0x276f92['rangeId']];!_0x2d9dc7||_0x2d9dc7[_0x18d233(0x209)]!==_0x276f92[_0x18d233(0x1a3)]||((_0x589757=_0x2d9dc7[_0x18d233(0x190)])==null?void 0x0:_0x589757[_0x18d233(0x1c2)])!==_0x276f92[_0x18d233(0x1ec)]||_0x51e22d[_0x18d233(0x26d)](_0xd345f4[_0x18d233(0x1c3)])!==_0x276f92[_0x18d233(0x1af)]||(((_0x50d19b=_0x2d9dc7[_0x18d233(0x276)])==null?void 0x0:_0x50d19b['v'])!==_0x276f92[_0x18d233(0x276)]['v']||((_0x136ad6=_0x2d9dc7[_0x18d233(0x276)])==null?void 0x0:_0x136ad6['t'])!==_0x276f92[_0x18d233(0x276)]['t']||((_0x50709e=_0x2d9dc7[_0x18d233(0x276)])==null?void 0x0:_0x50709e[_0x18d233(0x1c2)])!==_0x276f92[_0x18d233(0x276)][_0x18d233(0x1c2)])&&(_0x2d9dc7['lastValue']=_0x5009bd[_0x18d233(0x1ff)](_0x276f92[_0x18d233(0x276)]),_0x3d9d97=!0x0);}return!_0x3d9d97||_0xa1f684[_0x18d233(0x1d4)](_0xd345f4[_0x18d233(0x1c3)],_0xb826d7);}},U={'id':_0x4f6fbf(0x272),'type':_0x54b120[_0x4f6fbf(0x1eb)],'handler':(_0x497e3e,_0x148eaf)=>{const _0x58c822=_0x4f6fbf;if(!(_0x148eaf!=null&&_0x148eaf[_0x58c822(0x209)][_0x58c822(0x274)]()))return!0x1;let _0x520505=q(_0x497e3e,_0x148eaf[_0x58c822(0x1c3)],'');if(!_0x520505)return!0x1;let _0xdc7397=ft(_0x148eaf[_0x58c822(0x1f1)],_0x520505['body'],dt(_0x497e3e,_0x520505[_0x58c822(0x1c3)]));if(!_0xdc7397)return!0x1;let _0x9ecf4d=pt(_0x497e3e,_0x520505['unitId'],_0x148eaf[_0x58c822(0x209)],_0x148eaf['externalReferences']??[]);if(!_0x9ecf4d)return!0x1;let _0x411619=mt(_0x520505['body'],_0x520505[_0x58c822(0x27e)],_0x520505[_0x58c822(0x1c3)]),_0x5ce0a0=ht({'documentData':_0x520505[_0x58c822(0x25f)],'resource':_0x520505[_0x58c822(0x25b)],'rangeId':_0x411619,'config':{'formula':_0x148eaf[_0x58c822(0x209)],..._0x148eaf['numberFormat']?{'numberFormat':_0x148eaf[_0x58c822(0x190)]}:null},'startOffset':_0xdc7397['startOffset'],'endOffset':_0xdc7397['endOffset']});if(!_0x5ce0a0)return!0x1;let _0x4d1f62=_0x3007cb(_0x497e3e,_0x520505['unitId'],_0x9ecf4d);return!_0x4d1f62||!J({'accessor':_0x497e3e,'document':_0x520505[_0x58c822(0x1da)],'unitId':_0x520505[_0x58c822(0x1c3)],'trigger':U['id'],'rangeId':_0x411619,'previousResource':_0x520505[_0x58c822(0x25b)],'nextResource':_0x5ce0a0['nextResource'],'previousDocumentData':_0x520505['documentData'],'nextDocumentData':_0x5ce0a0[_0x58c822(0x1d3)],'cursorOffset':_0x5ce0a0[_0x58c822(0x254)],'externalMutations':_0x4d1f62})?!0x1:{'rangeId':_0x411619,'startOffset':_0x5ce0a0[_0x58c822(0x254)]-0x1,'endOffset':_0x5ce0a0[_0x58c822(0x254)]};}},W={'id':'docs-formula.command.update','type':_0x54b120[_0x4f6fbf(0x1eb)],'handler':(_0x776d37,_0x51b77a)=>{const _0x2fc63f=_0x4f6fbf;if(!(_0x51b77a!=null&&_0x51b77a[_0x2fc63f(0x1e6)])||!_0x51b77a[_0x2fc63f(0x209)]['trim']())return!0x1;let _0x5bb46c=q(_0x776d37,_0x51b77a[_0x2fc63f(0x1c3)],''),_0x18801=_0x5bb46c==null?void 0x0:_0x5bb46c[_0x2fc63f(0x27e)]['getFormula'](_0x5bb46c[_0x2fc63f(0x1c3)],_0x51b77a['rangeId']),_0x48444f=_0x5bb46c?T(_0x5bb46c[_0x2fc63f(0x25f)][_0x2fc63f(0x278)],_0x51b77a[_0x2fc63f(0x1e6)]):void 0x0;if(!_0x5bb46c||!_0x18801||!_0x48444f)return!0x1;let _0x2185b2=pt(_0x776d37,_0x5bb46c['unitId'],_0x51b77a[_0x2fc63f(0x209)],_0x51b77a[_0x2fc63f(0x1f8)]??[]);if(!_0x2185b2)return!0x1;let _0x1cd9ca=_0x3007cb(_0x776d37,_0x5bb46c[_0x2fc63f(0x1c3)],_0x2185b2);if(!_0x1cd9ca)return!0x1;let _0x2dab58=Ct(_0x5bb46c[_0x2fc63f(0x25b)]);return _0x2dab58['formulas'][_0x51b77a['rangeId']]={'formula':_0x51b77a[_0x2fc63f(0x209)],..._0x51b77a[_0x2fc63f(0x190)]?{'numberFormat':_0x51b77a[_0x2fc63f(0x190)]}:_0x18801['numberFormat']?{'numberFormat':_0x18801[_0x2fc63f(0x190)]}:null},J({'accessor':_0x776d37,'document':_0x5bb46c[_0x2fc63f(0x1da)],'unitId':_0x5bb46c['unitId'],'trigger':W['id'],'rangeId':_0x51b77a[_0x2fc63f(0x1e6)],'previousResource':_0x5bb46c[_0x2fc63f(0x25b)],'nextResource':_0x2dab58,'cursorOffset':_0x48444f[_0x2fc63f(0x1aa)]+0x1,'externalMutations':_0x1cd9ca});}},G={'id':_0x4f6fbf(0x249),'type':_0x54b120[_0x4f6fbf(0x1eb)],'handler':(_0xc776df,_0x3a4272)=>{const _0x28839b=_0x4f6fbf;if(!(_0x3a4272!=null&&_0x3a4272[_0x28839b(0x1e6)]))return!0x1;let _0x3e9660=q(_0xc776df,_0x3a4272[_0x28839b(0x1c3)],''),_0x332d8e=_0x3e9660==null?void 0x0:_0x3e9660[_0x28839b(0x27e)][_0x28839b(0x1dd)](_0x3e9660[_0x28839b(0x1c3)],_0x3a4272[_0x28839b(0x1e6)]),_0x2d9e40=_0x3e9660?T(_0x3e9660[_0x28839b(0x25f)][_0x28839b(0x278)],_0x3a4272[_0x28839b(0x1e6)]):void 0x0;if(!_0x3e9660||!_0x332d8e||!_0x2d9e40)return!0x1;let _0x2fd01e=Ct(_0x3e9660[_0x28839b(0x25b)]);return _0x2fd01e[_0x28839b(0x18d)][_0x3a4272['rangeId']]={..._0x332d8e,..._0x3a4272[_0x28839b(0x190)]?{'numberFormat':_0x3a4272['numberFormat']}:null},_0x3a4272['numberFormat']||delete _0x2fd01e['formulas'][_0x3a4272['rangeId']][_0x28839b(0x190)],J({'accessor':_0xc776df,'document':_0x3e9660[_0x28839b(0x1da)],'unitId':_0x3e9660[_0x28839b(0x1c3)],'trigger':G['id'],'rangeId':_0x3a4272[_0x28839b(0x1e6)],'previousResource':_0x3e9660['resource'],'nextResource':_0x2fd01e,'cursorOffset':_0x2d9e40['endIndex']+0x1,'externalMutations':{}});}},K={'id':'docs-formula.command.remove','type':_0x54b120[_0x4f6fbf(0x1eb)],'handler':(_0x2cdb50,_0x572ab1)=>ut(_0x2cdb50,_0x572ab1,'',K['id'])},ct={'id':'docs-formula.command.replace-with-text','type':_0x54b120[_0x4f6fbf(0x1eb)],'handler':(_0x1392e2,_0x27f65f)=>ut(_0x1392e2,_0x27f65f,(_0x27f65f==null?void 0x0:_0x27f65f[_0x4f6fbf(0x25d)])??'',ct['id'])},lt={'id':'docs-formula.command.convert-to-text','type':_0x54b120[_0x4f6fbf(0x1eb)],'handler':(_0x50c63a,_0x32fa5e)=>{const _0x2059b3=_0x4f6fbf;if(!(_0x32fa5e!=null&&_0x32fa5e['rangeId']))return!0x1;let _0x151528=q(_0x50c63a,_0x32fa5e[_0x2059b3(0x1c3)],'');if(!_0x151528)return!0x1;let _0x1a1be8=_0x50c63a[_0x2059b3(0x275)](L)[_0x2059b3(0x212)]({'unitId':_0x151528[_0x2059b3(0x1c3)],'rangeId':_0x32fa5e[_0x2059b3(0x1e6)]});return _0x1a1be8?ut(_0x50c63a,_0x32fa5e,_0x1a1be8[_0x2059b3(0x25d)],lt['id']):!0x1;}};function ut(_0x56d2be,_0x10b1d9,_0x5aaf2a,_0x4ca40c){const _0x166931=_0x4f6fbf;if(!(_0x10b1d9!=null&&_0x10b1d9[_0x166931(0x1e6)]))return!0x1;let _0x11fdbd=q(_0x56d2be,_0x10b1d9[_0x166931(0x1c3)],'');if(!_0x11fdbd)return!0x1;let _0x501f1c=Be({'documentData':_0x11fdbd[_0x166931(0x25f)],'resource':_0x11fdbd[_0x166931(0x25b)],'rangeId':_0x10b1d9[_0x166931(0x1e6)],'text':_0x5aaf2a});return _0x501f1c?J({'accessor':_0x56d2be,'document':_0x11fdbd[_0x166931(0x1da)],'unitId':_0x11fdbd[_0x166931(0x1c3)],'trigger':_0x4ca40c,'rangeId':_0x10b1d9[_0x166931(0x1e6)],'previousResource':_0x11fdbd['resource'],'nextResource':_0x501f1c[_0x166931(0x267)],'previousDocumentData':_0x11fdbd[_0x166931(0x25f)],'nextDocumentData':_0x501f1c[_0x166931(0x1d3)],'cursorOffset':_0x501f1c['cursorOffset'],'externalMutations':{}}):!0x1;}function q(_0x31eafb,_0x328a01,_0x330ba9){const _0x4a5d9c=_0x4f6fbf;if(_0x330ba9)return null;let _0x15702c=_0x31eafb['get'](_0x2f4b97),_0x178af1=(_0x328a01?_0x15702c['getUnit'](_0x328a01,_0x84701a[_0x4a5d9c(0x221)]):_0x15702c[_0x4a5d9c(0x21b)](_0x84701a[_0x4a5d9c(0x221)]))??null;if(!_0x178af1)return null;let _0x368064=_0x178af1[_0x4a5d9c(0x18f)](),_0x3400d0=_0x368064[_0x4a5d9c(0x278)];if(_0x368064[_0x4a5d9c(0x230)]||!_0x3400d0)return null;let _0x1abf1c=_0x31eafb[_0x4a5d9c(0x275)](P);return _0x1abf1c[_0x4a5d9c(0x1ea)](_0x178af1[_0x4a5d9c(0x23d)]())?null:{'document':_0x178af1,'body':_0x3400d0,'documentData':_0x368064,'model':_0x1abf1c,'resource':_0x1abf1c['getResource'](_0x178af1['getUnitId']())??b(),'unitId':_0x178af1[_0x4a5d9c(0x23d)]()};}function dt(_0x377032,_0x31fbac){const _0x80addd=_0x4f6fbf;var _0x5d69ed;return(_0x5d69ed=_0x377032['get'](_0x415e0a)[_0x80addd(0x18e)]({'subUnitId':_0x31fbac,'unitId':_0x31fbac}))==null?void 0x0:_0x5d69ed[0x0];}function ft(_0x38a6c8,_0x2adc89,_0x2e9cf4){const _0x5b85e=_0x4f6fbf;if((_0x38a6c8==null?void 0x0:_0x38a6c8[_0x5b85e(0x232)])===_0x5b85e(0x27c)){var _0x4999ca;let _0x3219e5=((_0x4999ca=_0x2adc89[_0x5b85e(0x1a6)])==null?void 0x0:_0x4999ca[_0x5b85e(0x25a)](_0x3b9055=>_0x3b9055['paragraphId']===_0x38a6c8[_0x5b85e(0x1b9)]))??[];if(_0x3219e5[_0x5b85e(0x21f)]!==0x1)return null;let _0x36a49d=_0x3219e5[0x0],_0x4bd618=_0x3d7e00(_0x2adc89,_0x36a49d),_0x79391b=_0x36a49d[_0x5b85e(0x200)]-_0x4bd618,_0x4e98c2=_0x38a6c8[_0x5b85e(0x1c5)]===_0x5b85e(0x1dc)?_0x79391b:_0x38a6c8['position'];if(!Number['isInteger'](_0x4e98c2)||_0x4e98c2<0x0||_0x4e98c2>_0x79391b)return null;let _0x231df6=_0x4bd618+_0x4e98c2;return{'startOffset':_0x231df6,'endOffset':_0x231df6};}if((_0x38a6c8==null?void 0x0:_0x38a6c8[_0x5b85e(0x232)])===_0x5b85e(0x1f0))return!Number[_0x5b85e(0x192)](_0x38a6c8['startOffset'])||!Number[_0x5b85e(0x192)](_0x38a6c8['endOffset'])?null:{'startOffset':Math[_0x5b85e(0x1ae)](_0x38a6c8[_0x5b85e(0x23b)],_0x38a6c8[_0x5b85e(0x266)]),'endOffset':Math[_0x5b85e(0x203)](_0x38a6c8[_0x5b85e(0x23b)],_0x38a6c8[_0x5b85e(0x266)])};let _0x4978f9=(_0x38a6c8==null?void 0x0:_0x38a6c8[_0x5b85e(0x232)])===_0x5b85e(0x213)?_0x38a6c8[_0x5b85e(0x213)]:_0x2e9cf4;return!_0x4978f9||_0x4978f9[_0x5b85e(0x1fe)]?null:{'startOffset':Math[_0x5b85e(0x1ae)](_0x4978f9['startOffset'],_0x4978f9[_0x5b85e(0x266)]),'endOffset':Math['max'](_0x4978f9[_0x5b85e(0x23b)],_0x4978f9[_0x5b85e(0x266)])};}function pt(_0x17ca72,_0x397a1c,_0x450613,_0x532fc4){const _0xd0e8c3=_0x4f6fbf;let _0x1a30cb=_0x17ca72[_0xd0e8c3(0x275)](_0x4b333e),_0x54cef0=_0x450613[_0xd0e8c3(0x187)]('=')?_0x450613[_0xd0e8c3(0x24a)](0x1):_0x450613,_0x3e4c4b=_0x1a30cb[_0xd0e8c3(0x18b)](_0x54cef0);if(!_0x3e4c4b)return null;let _0x30bf24=_0x17ca72[_0xd0e8c3(0x275)](_0x10c960),_0x5015=_0x25aab3({'qualifiers':_0x1e38dc(_0x3e4c4b),'explicitReferences':_0x532fc4??[],'resolveBinding':_0x21553d=>_0x30bf24['resolveBinding'](_0x397a1c,_0x21553d)});return _0x5015['status']==='resolved'?_0x5015[_0xd0e8c3(0x210)]:null;}function mt(_0x419e4f,_0x19e2c3,_0x21c953){const _0x2597d1=_0x4f6fbf;var _0x481150;let _0x491d9c=_0x567cbf(0x6);for(;_0x419e4f!=null&&(_0x481150=_0x419e4f[_0x2597d1(0x1e5)])!=null&&_0x481150[_0x2597d1(0x1c4)](_0x40b5a1=>_0x40b5a1[_0x2597d1(0x1e6)]===_0x491d9c)||_0x19e2c3[_0x2597d1(0x1dd)](_0x21c953,_0x491d9c);)_0x491d9c=_0x567cbf(0x6);return _0x491d9c;}function ht(_0x5a924f){try{return Re(_0x5a924f);}catch(_0x469312){if(_0x469312 instanceof C)return null;throw _0x469312;}}function gt(_0x40d906){const _0x38eab9=_0x4f6fbf;let _0x5bbf2d=_0x40d906['previousDocumentData']&&_0x40d906[_0x38eab9(0x1d3)]?vt(_0x40d906[_0x38eab9(0x1da)],_0x40d906['unitId'],_0x40d906[_0x38eab9(0x248)],_0x40d906['nextDocumentData'],_0x40d906[_0x38eab9(0x254)],_0x40d906['trigger']):null;return _0x40d906['previousDocumentData']&&_0x40d906[_0x38eab9(0x1d3)]&&!_0x5bbf2d?null:{'documentRedo':_0x5bbf2d,'resourceRedo':{'id':V['id'],'params':{'unitId':_0x40d906[_0x38eab9(0x1c3)],'resource':_0x40d906[_0x38eab9(0x267)]}},'resourceUndo':{'id':V['id'],'params':{'unitId':_0x40d906[_0x38eab9(0x1c3)],'resource':_0x40d906[_0x38eab9(0x19a)]}}};}function _t(_0x95b682,_0x5778eb,_0x5824b0,_0x2160cd){const _0x64c243=_0x4f6fbf;_0x2160cd[_0x64c243(0x205)]({'id':_0x95b682[_0x64c243(0x23e)]+':'+_0x95b682[_0x64c243(0x1e6)],'unitID':_0x95b682['unitId'],'redoMutations':[..._0x95b682[_0x64c243(0x1e1)][_0x64c243(0x19d)]?[_0x95b682[_0x64c243(0x1e1)][_0x64c243(0x19d)]]:[],..._0x5778eb[_0x64c243(0x1a0)]?[_0x5778eb[_0x64c243(0x1a0)]]:[],_0x5778eb[_0x64c243(0x1cf)]],'undoMutations':[_0x5778eb[_0x64c243(0x231)],..._0x5824b0?[_0x5824b0]:[],..._0x95b682['externalMutations']['undoMutation']?[_0x95b682[_0x64c243(0x1e1)][_0x64c243(0x1b8)]]:[]]});}function J(_0xac5ff2){const _0x144e60=_0x4f6fbf;let _0x374ab0=_0xac5ff2[_0x144e60(0x24e)][_0x144e60(0x275)](_0x17a79b),_0xa10563=_0xac5ff2['accessor'][_0x144e60(0x275)](_0x108c62),_0x197671=_0xac5ff2[_0x144e60(0x24e)][_0x144e60(0x275)](_0x415e0a),_0x227bdc=gt(_0xac5ff2);if(!_0x227bdc)return!0x1;let _0x1c4e0f=!0x1,_0x33d83b=null,_0xe61f55=!0x1;try{if(_0xac5ff2[_0x144e60(0x1e1)][_0x144e60(0x19d)]){if(!_0x374ab0[_0x144e60(0x1b1)](_0xac5ff2[_0x144e60(0x1e1)]['redoMutation']['id'],_0xac5ff2['externalMutations'][_0x144e60(0x19d)]['params']))return!0x1;_0x1c4e0f=!0x0;}if(_0x227bdc['documentRedo']){let _0xef1ab=_0x374ab0[_0x144e60(0x1b1)](_0x227bdc[_0x144e60(0x1a0)]['id'],_0x227bdc['documentRedo'][_0x144e60(0x1b3)]);if(!_0xef1ab)return bt(_0x374ab0,_0xac5ff2[_0x144e60(0x1e1)],_0x1c4e0f),!0x1;_0x33d83b={'id':_0x152a2b['id'],'params':{..._0xef1ab,'noHistory':!0x0,'noNeedSetTextRange':!0x0,'segmentId':''}};}if(!_0x374ab0[_0x144e60(0x1b1)](_0x227bdc[_0x144e60(0x1cf)]['id'],_0x227bdc['resourceRedo'][_0x144e60(0x1b3)]))return yt(_0x374ab0,_0x33d83b),bt(_0x374ab0,_0xac5ff2[_0x144e60(0x1e1)],_0x1c4e0f),!0x1;_0xe61f55=!0x0,_t(_0xac5ff2,_0x227bdc,_0x33d83b,_0xa10563);}catch(_0x44eac3){throw _0xe61f55&&_0x374ab0[_0x144e60(0x1b1)](_0x227bdc[_0x144e60(0x231)]['id'],_0x227bdc[_0x144e60(0x231)]['params']),yt(_0x374ab0,_0x33d83b),bt(_0x374ab0,_0xac5ff2[_0x144e60(0x1e1)],_0x1c4e0f),_0x44eac3;}return _0x197671[_0x144e60(0x18c)]([{'startOffset':_0xac5ff2[_0x144e60(0x254)],'endOffset':_0xac5ff2['cursorOffset'],'segmentId':''}],{'unitId':_0xac5ff2[_0x144e60(0x1c3)],'subUnitId':_0xac5ff2[_0x144e60(0x1c3)]},!0x1,{[_0x53247e]:!0x0}),!0x0;}function vt(_0x2e8df0,_0x4f03da,_0x5df35d,_0x1edad3,_0x336b6e,_0x260ae4){let _0x18fe95=xt(_0x5df35d,_0x1edad3,_0x3a85ac(_0x2e8df0,''));return _0x18fe95?{'id':_0x152a2b['id'],'params':{'unitId':_0x4f03da,'actions':_0x18fe95,'segmentId':'','textRanges':[{'startOffset':_0x336b6e,'endOffset':_0x336b6e,'collapsed':!0x0,'segmentId':''}],'isEditing':!0x1,'noHistory':!0x0,'noNeedSetTextRange':!0x0,'trigger':_0x260ae4}}:null;}function yt(_0x779167,_0xb80bb8){const _0x115612=_0x4f6fbf;_0xb80bb8&&_0x779167[_0x115612(0x1b1)](_0xb80bb8['id'],_0xb80bb8[_0x115612(0x1b3)]);}function bt(_0x3dd89a,_0x3fed1f,_0x2f903e){const _0x336f94=_0x4f6fbf;_0x2f903e&&_0x3fed1f[_0x336f94(0x1b8)]&&_0x3dd89a[_0x336f94(0x1b1)](_0x3fed1f[_0x336f94(0x1b8)]['id'],_0x3fed1f[_0x336f94(0x1b8)][_0x336f94(0x1b3)]);}function xt(_0x973c37,_0x50f3fd,_0x3d3a38){const _0x5b1b25=_0x4f6fbf;let _0x5ef30b=_0x973c37['body'],_0x485c18=_0x50f3fd['body'],_0x1e622d=St(_0x5ef30b==null?void 0x0:_0x5ef30b['dataStream'],_0x485c18==null?void 0x0:_0x485c18[_0x5b1b25(0x220)]);if(!_0x1e622d||!_0x485c18)return null;let _0x1e20f9=new _0x5043cb();return _0x1e20f9['retain'](_0x1e622d[_0x5b1b25(0x1a8)]),_0x1e622d['insertLength']>0x0&&_0x1e20f9['insert'](_0x1e622d[_0x5b1b25(0x1c9)],_0x3936fb(_0x485c18,_0x1e622d['start'],_0x1e622d[_0x5b1b25(0x1a8)]+_0x1e622d['insertLength'],!0x1)),_0x1e622d['deleteLength']>0x0&&_0x1e20f9['delete'](_0x1e622d['deleteLength']),_0xd1312c[_0x5b1b25(0x1a4)]()[_0x5b1b25(0x1f4)](_0x1e20f9[_0x5b1b25(0x239)](),_0x3d3a38);}function St(_0x313fcc,_0x345efe){const _0x25b5cc=_0x4f6fbf;if(_0x313fcc==null||_0x345efe==null||_0x313fcc===_0x345efe)return null;let _0x179c81=0x0;for(;_0x179c81<_0x313fcc[_0x25b5cc(0x21f)]&&_0x179c81<_0x345efe[_0x25b5cc(0x21f)]&&_0x313fcc[_0x179c81]===_0x345efe[_0x179c81];)_0x179c81+=0x1;let _0x279c43=_0x313fcc[_0x25b5cc(0x21f)],_0x13b25c=_0x345efe[_0x25b5cc(0x21f)];for(;_0x279c43>_0x179c81&&_0x13b25c>_0x179c81&&_0x313fcc[_0x279c43-0x1]===_0x345efe[_0x13b25c-0x1];)--_0x279c43,--_0x13b25c;return{'start':_0x179c81,'deleteLength':_0x279c43-_0x179c81,'insertLength':_0x13b25c-_0x179c81};}function Ct(_0x271602){const _0x49dead=_0x4f6fbf;return{'schemaVersion':0x1,'formulas':Object['fromEntries'](Object[_0x49dead(0x21a)](_0x271602['formulas'])[_0x49dead(0x1d6)](([_0x2c48db,_0x14bdad])=>[_0x2c48db,{..._0x14bdad,..._0x14bdad[_0x49dead(0x190)]?{'numberFormat':{..._0x14bdad[_0x49dead(0x190)]}}:null,..._0x14bdad[_0x49dead(0x276)]?{'lastValue':{..._0x14bdad[_0x49dead(0x276)]}}:null}]))};}let Y=class extends _0x31b7da{constructor(_0x3a74cd,_0x589688,_0x422c8f,_0x5f4511){const _0x55b9f6=_0x4f6fbf;super(),this[_0x55b9f6(0x22c)]=_0x3a74cd,this[_0x55b9f6(0x247)]=_0x589688,this['_model']=_0x422c8f,this[_0x55b9f6(0x20f)]=_0x5f4511,N(this,'_pendingUnitIds',new Set()),N(this,_0x55b9f6(0x22a),!0x1),N(this,_0x55b9f6(0x1d8),!0x1),this[_0x55b9f6(0x22c)]['getAllUnitsForType'](_0x84701a[_0x55b9f6(0x221)])[_0x55b9f6(0x1bf)](_0x321b23=>this['_service'][_0x55b9f6(0x207)](_0x321b23)),this[_0x55b9f6(0x23f)](this[_0x55b9f6(0x20e)]['change$'][_0x55b9f6(0x269)](({unitId:_0x50a077})=>this['_syncUnit'](_0x50a077))),this[_0x55b9f6(0x23f)](this[_0x55b9f6(0x22c)][_0x55b9f6(0x198)][_0x55b9f6(0x269)](({unit:_0x10d103})=>{const _0x75da1c=_0x55b9f6;_0x10d103['type']===_0x84701a[_0x75da1c(0x221)]&&this[_0x75da1c(0x253)](_0x10d103[_0x75da1c(0x23d)]());})),this[_0x55b9f6(0x23f)](this[_0x55b9f6(0x22c)][_0x55b9f6(0x1ac)][_0x55b9f6(0x269)](_0x2193aa=>{const _0x24dfa=_0x55b9f6;this[_0x24dfa(0x20f)][_0x24dfa(0x1a7)](_0x2193aa[_0x24dfa(0x23d)]());})),this[_0x55b9f6(0x23f)](this[_0x55b9f6(0x247)][_0x55b9f6(0x1d5)](_0x3099f2=>{const _0x4dcc23=_0x55b9f6;if(_0x3099f2['id']===_0x152a2b['id']&&wt(_0x3099f2[_0x4dcc23(0x1b3)])){let _0x2a2315=_0x3099f2['params'];_0x2a2315[_0x4dcc23(0x1fe)]||this[_0x4dcc23(0x225)](_0x2a2315[_0x4dcc23(0x1c3)]);}}));}[_0x4f6fbf(0x215)](){this['_isDisposed']=!0x0,super['dispose']();}['_queueSync'](_0x4fd253){const _0x44e433=_0x4f6fbf;this['_pendingUnitIds'][_0x44e433(0x24b)](_0x4fd253),!this['_syncScheduled']&&(this[_0x44e433(0x22a)]=!0x0,queueMicrotask(()=>{const _0x1e6364=_0x44e433;if(this[_0x1e6364(0x22a)]=!0x1,this['_isDisposed'])return;let _0x1d6034=Array[_0x1e6364(0x1c7)](this['_pendingUnitIds']);this[_0x1e6364(0x185)]['clear'](),_0x1d6034['forEach'](_0x5dbb03=>this[_0x1e6364(0x225)](_0x5dbb03));}));}[_0x4f6fbf(0x225)](_0x59ebe6){const _0x231c81=_0x4f6fbf;let _0x20fc3c=this[_0x231c81(0x22c)][_0x231c81(0x218)](_0x59ebe6,_0x84701a[_0x231c81(0x221)]);_0x20fc3c&&this[_0x231c81(0x20f)][_0x231c81(0x207)](_0x20fc3c);}};Y=I([F(0x0,_0x2f4b97),F(0x1,_0x17a79b),F(0x2,_0x2acef3(P)),F(0x3,_0x2acef3(L))],Y);function wt(_0xef09c0){const _0x81ba37=_0x4f6fbf;return typeof _0xef09c0=='object'&&!!_0xef09c0&&_0x81ba37(0x1c3)in _0xef09c0&&typeof _0xef09c0[_0x81ba37(0x1c3)]==_0x81ba37(0x234)&&(!('segmentId'in _0xef09c0)||_0xef09c0[_0x81ba37(0x1fe)]===void 0x0||typeof _0xef09c0[_0x81ba37(0x1fe)]==_0x81ba37(0x234));}let X=class extends _0x31b7da{constructor(_0x29741d,_0x3db2c5){const _0x437d83=_0x4f6fbf;super(),this[_0x437d83(0x22f)]=_0x29741d,this[_0x437d83(0x240)]=_0x3db2c5,this[_0x437d83(0x23f)](this['_resourceManagerService']['registerPluginResource']({'pluginName':y,'businesses':[_0x84701a[_0x437d83(0x221)]],'toJson':_0x4b0be0=>JSON[_0x437d83(0x265)](this[_0x437d83(0x240)][_0x437d83(0x239)](_0x4b0be0)),'parseJson':_0xcb6804=>JSON[_0x437d83(0x206)](_0xcb6804),'onLoad':(_0x222d68,_0x1958d0)=>{const _0x31f69d=_0x437d83;this['_docFormulaModel'][_0x31f69d(0x245)](_0x222d68,_0x1958d0);},'onUnLoad':_0x158bf1=>this[_0x437d83(0x240)][_0x437d83(0x195)](_0x158bf1)}));}};X=I([F(0x0,_0x5cca76),F(0x1,_0x2acef3(P))],X);var Tt=_0x4f6fbf(0x1f9),Et=_0x4f6fbf(0x1be);const Dt={};let Z=class extends _0x31b7da{constructor(_0x211df5,_0xced93a,_0x2316f3){const _0x5b10e7=_0x4f6fbf;super(),this['_univerInstanceService']=_0x211df5,this[_0x5b10e7(0x27a)]=_0xced93a,this[_0x5b10e7(0x23f)](_0x2316f3[_0x5b10e7(0x1ce)]({'resolve':(_0x2a809a,_0x5e4362)=>{const _0x1365fb=_0x5b10e7;var _0x15cfe5;return((_0x15cfe5=_0x5e4362[_0x1365fb(0x1e5)])==null?void 0x0:_0x15cfe5[_0x1365fb(0x25a)](w)['map'](_0x5f2138=>({'startOffset':_0x5f2138[_0x1365fb(0x200)],'endOffset':_0x5f2138['endIndex']+0x1,'text':this[_0x1365fb(0x270)](_0x2a809a,_0x5f2138['rangeId'])})))??[];}})),this['disposeWithMe'](this['_formulaService'][_0x5b10e7(0x1a9)][_0x5b10e7(0x269)](({unitId:_0x892902})=>{const _0x1b2626=_0x5b10e7;_0x2316f3[_0x1b2626(0x196)](_0x892902);}));}['resolveFormula'](_0x44392c,_0x2f12cf){const _0x554681=_0x4f6fbf;var _0x21d135;return((_0x21d135=this[_0x554681(0x27a)]['getResult']({'unitId':_0x44392c,'rangeId':_0x2f12cf}))==null?void 0x0:_0x21d135[_0x554681(0x25d)])??'';}[_0x4f6fbf(0x22d)](_0x86de3c,_0x2a3e85,_0x4f4414){const _0x4d658f=_0x4f6fbf;var _0x5d30be;let _0x407395=this['_univerInstanceService'][_0x4d658f(0x218)](_0x86de3c,_0x84701a[_0x4d658f(0x221)]),_0x1c19c4=_0x407395==null?void 0x0:_0x407395[_0x4d658f(0x216)]();if(!_0x1c19c4)return'';let _0x9f8927=_0x1c19c4[_0x4d658f(0x220)][_0x4d658f(0x24a)](_0x2a3e85,_0x4f4414),_0x4e883=((_0x5d30be=_0x1c19c4[_0x4d658f(0x1e5)])==null?void 0x0:_0x5d30be[_0x4d658f(0x25a)](_0x44c1af=>w(_0x44c1af)&&_0x44c1af[_0x4d658f(0x200)]>=_0x2a3e85&&_0x44c1af[_0x4d658f(0x1aa)]<_0x4f4414)[_0x4d658f(0x1a5)]((_0x34d89d,_0x45949d)=>_0x45949d[_0x4d658f(0x200)]-_0x34d89d[_0x4d658f(0x200)]))??[];for(let _0x2994f7 of _0x4e883){let _0x219154=_0x2994f7[_0x4d658f(0x200)]-_0x2a3e85,_0x415af0=_0x2994f7[_0x4d658f(0x1aa)]-_0x2a3e85+0x1;_0x9f8927=''+_0x9f8927[_0x4d658f(0x24a)](0x0,_0x219154)+this[_0x4d658f(0x270)](_0x86de3c,_0x2994f7[_0x4d658f(0x1e6)])+_0x9f8927[_0x4d658f(0x24a)](_0x415af0);}return _0x9f8927;}[_0x4f6fbf(0x1c1)](_0x4820e2){return Ot(_0x4820e2);}[_0x4f6fbf(0x20b)](_0x5a13e3,_0x491922,_0x106144={}){const _0x43042e=_0x4f6fbf;var _0x2b54f4;return Ve({'id':_0x5a13e3,'body':_0x491922,'documentStyle':{}},(((_0x2b54f4=_0x491922['customRanges'])==null?void 0x0:_0x2b54f4[_0x43042e(0x25a)](w))??[])[_0x43042e(0x1d6)](_0x5627e9=>({'rangeId':_0x5627e9[_0x43042e(0x1e6)],'text':_0x106144[_0x5627e9['rangeId']]??this[_0x43042e(0x270)](_0x5a13e3,_0x5627e9[_0x43042e(0x1e6)])})))[_0x43042e(0x278)]??{'dataStream':''};}};Z=I([F(0x0,_0x2f4b97),F(0x1,_0x2acef3(L)),F(0x2,_0x2acef3(_0x1f7daa))],Z);function Ot(_0x56db1a){const _0x5933a0=_0x4f6fbf;var _0xdb26db,_0xd656d6;let _0x39be67=kt(_0x56db1a),_0x457b60=Ve(_0x56db1a,(((_0xdb26db=_0x56db1a[_0x5933a0(0x278)])==null||(_0xdb26db=_0xdb26db[_0x5933a0(0x1e5)])==null?void 0x0:_0xdb26db[_0x5933a0(0x25a)](w))??[])['map'](_0x148ed3=>({'rangeId':_0x148ed3[_0x5933a0(0x1e6)],'text':At(_0x39be67==null?void 0x0:_0x39be67[_0x5933a0(0x18d)][_0x148ed3[_0x5933a0(0x1e6)]])})));return _0x457b60[_0x5933a0(0x227)]=(_0xd656d6=_0x457b60[_0x5933a0(0x227)])==null?void 0x0:_0xd656d6[_0x5933a0(0x25a)](_0x30ff69=>_0x30ff69[_0x5933a0(0x189)]!==y),_0x457b60;}function kt(_0x3aef76){const _0x3cc693=_0x4f6fbf;var _0x36bdaf;let _0x3ee909=(_0x36bdaf=_0x3aef76['resources'])==null||(_0x36bdaf=_0x36bdaf['find'](_0x39ba72=>_0x39ba72[_0x3cc693(0x189)]===_0x3cc693(0x257)))==null?void 0x0:_0x36bdaf[_0x3cc693(0x1c8)];if(_0x3ee909)try{let _0x278d4c=JSON[_0x3cc693(0x206)](_0x3ee909);return x(_0x278d4c)?_0x278d4c:void 0x0;}catch{return;}}function At(_0x16a8bf){const _0x156e40=_0x4f6fbf;return _0x16a8bf?_0x42aa2e({'lastValue':_0x16a8bf[_0x156e40(0x276)],'numberFormat':_0x16a8bf[_0x156e40(0x190)]})[_0x156e40(0x25d)]:'';}let Q=class extends _0x31b7da{constructor(_0x246c9f,_0x3ee08e,_0x82609c){const _0x4e486d=_0x4f6fbf;super(),this[_0x4e486d(0x27a)]=_0x246c9f,this[_0x4e486d(0x21c)]=_0x3ee08e,this[_0x4e486d(0x23f)](_0x82609c[_0x4e486d(0x21d)](this));}[_0x4f6fbf(0x222)](_0x3052ea){const _0x372047=_0x4f6fbf;let _0x45f49e=new Map();for(let _0xfffea7 of this[_0x372047(0x27a)][_0x372047(0x262)]()){var _0x174b59;if(!this[_0x372047(0x21c)][_0x372047(0x1b0)](_0xfffea7['config'][_0x372047(0x209)],_0xfffea7[_0x372047(0x20d)])[_0x372047(0x229)])continue;let _0x2c6bad=_0x4ea63e(_0xfffea7[_0x372047(0x20d)]),_0x3e751d=_0x2c6bad?_0x4677a5(_0x2c6bad):null;if(!_0x3e751d||jt(_0xfffea7[_0x372047(0x1ed)][_0x372047(0x276)],_0x3e751d))continue;let _0x560a30=_0x45f49e[_0x372047(0x275)](_0xfffea7[_0x372047(0x20a)][_0x372047(0x1c3)])??[];_0x560a30[_0x372047(0x188)]({'rangeId':_0xfffea7['identity']['rangeId'],'expectedFormula':_0xfffea7[_0x372047(0x1ed)][_0x372047(0x209)],'expectedNumberFormat':(_0x174b59=_0xfffea7['config'][_0x372047(0x190)])==null?void 0x0:_0x174b59[_0x372047(0x1c2)],'expectedReferenceRevision':_0xfffea7['referenceRevision'],'lastValue':_0x3e751d}),_0x45f49e[_0x372047(0x19c)](_0xfffea7['identity'][_0x372047(0x1c3)],_0x560a30);}return Array[_0x372047(0x1c7)](_0x45f49e,([_0x350635,_0x2319e8])=>({'id':H['id'],'params':{'unitId':_0x350635,'updates':_0x2319e8}}));}};Q=I([F(0x0,_0x2acef3(L)),F(0x1,_0x2acef3(_0x4a49c8)),F(0x2,_0x2acef3(_0x13e281))],Q);function jt(_0x194155,_0x4fa5f4){const _0x91ca0=_0x4f6fbf;return(_0x194155==null?void 0x0:_0x194155['v'])===_0x4fa5f4['v']&&(_0x194155==null?void 0x0:_0x194155['t'])===_0x4fa5f4['t']&&(_0x194155==null?void 0x0:_0x194155[_0x91ca0(0x1c2)])===_0x4fa5f4[_0x91ca0(0x1c2)];}let $=class extends _0x19285f{constructor(_0x3679ee=Dt,_0x5995c5,_0xe06a7c,_0x24058d){const _0x5b59f5=_0x4f6fbf;super(),this[_0x5b59f5(0x23c)]=_0x3679ee,this[_0x5b59f5(0x1cb)]=_0x5995c5,this['_commandService']=_0xe06a7c,this[_0x5b59f5(0x24c)]=_0x24058d;let {..._0x4fbac5}=_0x51f985({},Dt,this[_0x5b59f5(0x23c)]);this[_0x5b59f5(0x24c)][_0x5b59f5(0x243)]('docs-formula.config',_0x4fbac5);}[_0x4f6fbf(0x214)](){const _0x9a9932=_0x4f6fbf;this[_0x9a9932(0x1cb)]['add']([P]),this[_0x9a9932(0x1cb)]['add']([L]),this[_0x9a9932(0x1cb)]['add']([X]),this[_0x9a9932(0x1cb)]['add']([Y]),this[_0x9a9932(0x1cb)][_0x9a9932(0x24b)]([Q]),this['_injector']['add']([Z]),_0x446bb5(this[_0x9a9932(0x1cb)],[[P],[X],[Y],[Q],[Z]]),[ot,st,V,H,U,W,G,K,ct,lt][_0x9a9932(0x1bf)](_0x48b6f4=>this[_0x9a9932(0x23f)](this['_commandService']['registerCommand'](_0x48b6f4)));}};N($,_0x4f6fbf(0x197),y),N($,_0x4f6fbf(0x1ee),Tt),N($,'version',Et),N($,_0x4f6fbf(0x232),_0x84701a[_0x4f6fbf(0x221)]),$=I([_0x156929(_0x347af6,_0x3b8edb,_0x2a1d9f),F(0x1,_0x2acef3(_0x4d35b9)),F(0x2,_0x17a79b),F(0x3,_0x430bb8)],$);function _0x2954(_0x4fcc29,_0x3ae27a){_0x4fcc29=_0x4fcc29-0x185;const _0x4a5468=_0x4a54();let _0x2954e5=_0x4a5468[_0x4fcc29];return _0x2954e5;}export{lt as ConvertDocFormulaToTextCommand,Me as DOC_FORMULA_CUSTOM_RANGE_KIND,Ne as DOC_FORMULA_OBJECT_REPLACEMENT,y as DOC_FORMULA_PLUGIN,je as DOC_FORMULA_SCHEMA_VERSION,Z as DocFormulaDisplayTextService,Y as DocFormulaLifecycleController,P as DocFormulaModel,X as DocFormulaResourceController,it as DocFormulaResultStatus,L as DocFormulaService,U as InsertDocFormulaCommand,C as InvalidDocFormulaInsertRangeError,K as RemoveDocFormulaCommand,st as RemoveDocFormulaMutation,ct as ReplaceDocFormulaWithTextCommand,H as SetDocFormulaLastValuesMutation,ot as SetDocFormulaMutation,G as SetDocFormulaNumberFormatCommand,V as SetDocFormulaResourceMutation,$ as UniverDocsFormulaPlugin,W as UpdateDocFormulaCommand,He as assertSafeDocFormulaInsertRange,Re as buildInsertDocFormulaActions,Be as buildRemoveDocFormulaActions,ze as buildUpdateDocFormulaActions,b as createEmptyDocFormulaResource,Ot as degradeDocFormulaDocumentData,T as findDocFormulaRange,Pe as isDocFormulaConfig,w as isDocFormulaRange,x as isDocFormulaResource,Fe as isFormulaLastValue};
package/lib/umd/facade.js CHANGED
@@ -1 +1 @@
1
- function _0x4c7c(_0x2cf1b4,_0x28f7b5){_0x2cf1b4=_0x2cf1b4-0x1e4;var _0x2c968c=_0x2c96();var _0x4c7ca8=_0x2c968c[_0x2cf1b4];return _0x4c7ca8;}function _0x2c96(){var _0x6565bc=['2900817zxPyrb','replaceWithFormula','_getCustomRange','getFormula','getBody','16iQDsYf','ReplaceDocFormulaWithTextCommand','UniverProDocsFormula','ConvertDocFormulaToTextCommand','numberFormat','getOwnPropertyDescriptor','toStringTag','getSegmentId','@univerjs-pro/docs-formula','some','_service','DocFormulaDisplayTextService','_univerInstanceService','IUniverInstanceService','string','794538pFEHOH','isDocFormulaRange','paragraph','range','45828ixEIGy','UniverProDocsFormulaFacade','saveUnit','defineProperty','extend','UniverInstanceType','SetDocFormulaNumberFormatCommand','describe','constructor','_docsFormulaCommandService','getId','ICommandService','formula','iterator','saveFormulaDisplayTextSnapshot','7UCyMds','_model','_commandService','UNIVER_DOC','223480rMmYWQ','prototype','startIndex','map','getResult','_document','1SxbuLZ','getRange','7900630eocXZq','781kcHRBu','externalReferences','insertFormula','appendFormula','_docsFormulaResourceLoaderService','DocFormulaModel','FDocumentTextRange','function','endIndex','InsertDocFormulaCommand','_rangeId','_insert','decorate','UpdateDocFormulaCommand','Document\x20','customRanges','object','toPrimitive','syncExecuteCommand','startOffset','find','_docsFormulaDisplayTextService','Module','10KnHeaD','rangeId','get','length','getSnapshot','Inject','filter','call','@univerjs/docs/facade','_createFormula','FDocumentFormula','_initialize','_injector','_unitId','UniverDocsFacade','remove','default','1550572smiqve','setNumberFormat','268767JAAvyV','symbol','end','createInstance','_getCompleteRanges','degradeDocumentData','getFormulaAt','FDocument','getFormulas','amd','getConfig','_docsFormulaModel'];_0x2c96=function(){return _0x6565bc;};return _0x2c96();}(function(_0x15c54f,_0x17e16c){var _0x456567=_0x4c7c,_0xc5a554=_0x15c54f();while(!![]){try{var _0xa52807=-parseInt(_0x456567(0x235))/0x1*(-parseInt(_0x456567(0x1f6))/0x2)+-parseInt(_0x456567(0x1f8))/0x3*(parseInt(_0x456567(0x209))/0x4)+parseInt(_0x456567(0x1e5))/0x5*(parseInt(_0x456567(0x218))/0x6)+-parseInt(_0x456567(0x22b))/0x7*(parseInt(_0x456567(0x22f))/0x8)+parseInt(_0x456567(0x204))/0x9+-parseInt(_0x456567(0x237))/0xa+parseInt(_0x456567(0x238))/0xb*(parseInt(_0x456567(0x21c))/0xc);if(_0xa52807===_0x17e16c)break;else _0xc5a554['push'](_0xc5a554['shift']());}catch(_0x20228d){_0xc5a554['push'](_0xc5a554['shift']());}}}(_0x2c96,0x6fa18),function(_0xbd89a5,_0x1fecc8){var _0x7b3dff=_0x4c7c;typeof exports==_0x7b3dff(0x248)&&typeof module<'u'?_0x1fecc8(exports,require('@univerjs-pro/docs-formula'),require('@univerjs/core'),require('@univerjs/docs/facade')):typeof define==_0x7b3dff(0x23f)&&define[_0x7b3dff(0x201)]?define(['exports',_0x7b3dff(0x211),'@univerjs/core',_0x7b3dff(0x1ed)],_0x1fecc8):(_0xbd89a5=typeof globalThis<'u'?globalThis:_0xbd89a5||self,_0x1fecc8(_0xbd89a5[_0x7b3dff(0x21d)]={},_0xbd89a5[_0x7b3dff(0x20b)],_0xbd89a5['UniverCore'],_0xbd89a5[_0x7b3dff(0x1f3)]));}(this,function(_0xa9bf7d,_0x42f462,_0x2af5ea,_0x4adadc){var _0x32dd90=_0x4c7c;Object[_0x32dd90(0x21f)](_0xa9bf7d,Symbol[_0x32dd90(0x20f)],{'value':_0x32dd90(0x1e4)});function _0xbfc199(_0x4fc18e,_0x4ce8e1){return function(_0x2758cf,_0x5ed403){_0x4ce8e1(_0x2758cf,_0x5ed403,_0x4fc18e);};}function _0x2a8ae9(_0x32fda8,_0x99e3d3,_0x3fa0ba,_0x125793){var _0xc4975c=_0x32dd90,_0x2f9e67=arguments[_0xc4975c(0x1e8)],_0x1772fb=_0x2f9e67<0x3?_0x99e3d3:_0x125793===null?_0x125793=Object[_0xc4975c(0x20e)](_0x99e3d3,_0x3fa0ba):_0x125793,_0x529fe7;if(typeof Reflect==_0xc4975c(0x248)&&typeof Reflect['decorate']==_0xc4975c(0x23f))_0x1772fb=Reflect[_0xc4975c(0x244)](_0x32fda8,_0x99e3d3,_0x3fa0ba,_0x125793);else{for(var _0x5c6bec=_0x32fda8[_0xc4975c(0x1e8)]-0x1;_0x5c6bec>=0x0;_0x5c6bec--)(_0x529fe7=_0x32fda8[_0x5c6bec])&&(_0x1772fb=(_0x2f9e67<0x3?_0x529fe7(_0x1772fb):_0x2f9e67>0x3?_0x529fe7(_0x99e3d3,_0x3fa0ba,_0x1772fb):_0x529fe7(_0x99e3d3,_0x3fa0ba))||_0x1772fb);}return _0x2f9e67>0x3&&_0x1772fb&&Object[_0xc4975c(0x21f)](_0x99e3d3,_0x3fa0ba,_0x1772fb),_0x1772fb;}let _0x14c941=class{constructor(_0x2626cb,_0x17207a,_0x22ab5b,_0x1c27f1,_0x204b10,_0x38c479){var _0x4ee814=_0x32dd90;this[_0x4ee814(0x1f2)]=_0x2626cb,this[_0x4ee814(0x242)]=_0x17207a,this[_0x4ee814(0x22d)]=_0x22ab5b,this[_0x4ee814(0x22c)]=_0x1c27f1,this[_0x4ee814(0x213)]=_0x204b10,this[_0x4ee814(0x215)]=_0x38c479;}['getId'](){return this['_rangeId'];}[_0x32dd90(0x236)](){var _0x37fabe=_0x32dd90;let _0xc50575=this[_0x37fabe(0x206)]();return _0xc50575?{'endOffset':_0xc50575[_0x37fabe(0x240)]+0x1,'rangeId':_0xc50575[_0x37fabe(0x1e6)],'startOffset':_0xc50575['startIndex']}:null;}[_0x32dd90(0x207)](){var _0x43404d=_0x32dd90,_0x25886e;return((_0x25886e=this['_model'][_0x43404d(0x207)](this[_0x43404d(0x1f2)],this[_0x43404d(0x242)]))==null?void 0x0:_0x25886e['formula'])??'';}['getConfig'](){var _0x1bbffb=_0x32dd90;return this['_model']['getFormula'](this[_0x1bbffb(0x1f2)],this[_0x1bbffb(0x242)])??null;}['getResult'](){var _0x4686b3=_0x32dd90;return this['_service'][_0x4686b3(0x233)]({'unitId':this[_0x4686b3(0x1f2)],'rangeId':this['_rangeId']})??null;}[_0x32dd90(0x223)](){var _0x49b9ab=_0x32dd90;let _0x25372f=this[_0x49b9ab(0x236)](),_0x33a213=this[_0x49b9ab(0x202)](),_0xb8505a=this[_0x49b9ab(0x233)]();return!_0x25372f||!_0x33a213||!_0xb8505a?null:{..._0x25372f,'config':_0x33a213,'formula':_0x33a213['formula'],'result':_0xb8505a,'type':'formula'};}['update'](_0x489a2e){var _0xc54518=_0x32dd90;return this['_commandService'][_0xc54518(0x24a)](_0x42f462[_0xc54518(0x245)]['id'],{'externalReferences':_0x489a2e[_0xc54518(0x239)],'formula':_0x489a2e[_0xc54518(0x228)],'numberFormat':_0x489a2e['numberFormat'],'rangeId':this[_0xc54518(0x242)],'unitId':this[_0xc54518(0x1f2)]});}[_0x32dd90(0x1f7)](_0x52fb4f){var _0xf560f4=_0x32dd90;return this['_commandService'][_0xf560f4(0x24a)](_0x42f462[_0xf560f4(0x222)]['id'],{'numberFormat':_0x52fb4f,'rangeId':this[_0xf560f4(0x242)],'unitId':this[_0xf560f4(0x1f2)]});}[_0x32dd90(0x1f4)](){var _0x391e0e=_0x32dd90;return this[_0x391e0e(0x22d)][_0x391e0e(0x24a)](_0x42f462['RemoveDocFormulaCommand']['id'],{'rangeId':this[_0x391e0e(0x242)],'unitId':this[_0x391e0e(0x1f2)]});}['replaceWithText'](_0x497c14){var _0x7d0bcd=_0x32dd90;return this['_commandService'][_0x7d0bcd(0x24a)](_0x42f462[_0x7d0bcd(0x20a)]['id'],{'rangeId':this[_0x7d0bcd(0x242)],'text':_0x497c14,'unitId':this[_0x7d0bcd(0x1f2)]});}['convertToText'](){var _0x5a77a7=_0x32dd90;return this[_0x5a77a7(0x22d)][_0x5a77a7(0x24a)](_0x42f462[_0x5a77a7(0x20c)]['id'],{'rangeId':this[_0x5a77a7(0x242)],'unitId':this['_unitId']});}['_getCustomRange'](){var _0x5a0420=_0x32dd90,_0x46d36e;let _0x744c46=this[_0x5a0420(0x215)]['getUnit'](this[_0x5a0420(0x1f2)],_0x2af5ea[_0x5a0420(0x221)][_0x5a0420(0x22e)]);return _0x744c46==null||(_0x46d36e=_0x744c46[_0x5a0420(0x1e9)]()['body'])==null||(_0x46d36e=_0x46d36e[_0x5a0420(0x247)])==null?void 0x0:_0x46d36e[_0x5a0420(0x24c)](_0x394378=>_0x394378[_0x5a0420(0x1e6)]===this[_0x5a0420(0x242)]&&(0x0,_0x42f462[_0x5a0420(0x219)])(_0x394378));}};_0x14c941=_0x2a8ae9([_0xbfc199(0x2,_0x2af5ea['ICommandService']),_0xbfc199(0x3,(0x0,_0x2af5ea[_0x32dd90(0x1ea)])(_0x42f462['DocFormulaModel'])),_0xbfc199(0x4,(0x0,_0x2af5ea['Inject'])(_0x42f462['DocFormulaService'])),_0xbfc199(0x5,_0x2af5ea[_0x32dd90(0x216)])],_0x14c941);function _0x40afa8(_0x5e2d7d){'@babel/helpers - typeof';var _0x32ce67=_0x32dd90;return _0x40afa8=typeof Symbol==_0x32ce67(0x23f)&&typeof Symbol[_0x32ce67(0x229)]==_0x32ce67(0x1f9)?function(_0x2ed93f){return typeof _0x2ed93f;}:function(_0xe103e0){var _0x161c10=_0x32ce67;return _0xe103e0&&typeof Symbol=='function'&&_0xe103e0[_0x161c10(0x224)]===Symbol&&_0xe103e0!==Symbol[_0x161c10(0x230)]?'symbol':typeof _0xe103e0;},_0x40afa8(_0x5e2d7d);}function _0x2d27e6(_0x34cc01,_0x467484){var _0x191422=_0x32dd90;if(_0x40afa8(_0x34cc01)!=_0x191422(0x248)||!_0x34cc01)return _0x34cc01;var _0x18f042=_0x34cc01[Symbol[_0x191422(0x249)]];if(_0x18f042!==void 0x0){var _0x3d10b6=_0x18f042[_0x191422(0x1ec)](_0x34cc01,_0x467484||_0x191422(0x1f5));if(_0x40afa8(_0x3d10b6)!='object')return _0x3d10b6;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x467484===_0x191422(0x217)?String:Number)(_0x34cc01);}function _0x411dcc(_0x1d684f){var _0x571852=_0x32dd90,_0x1ae9fc=_0x2d27e6(_0x1d684f,_0x571852(0x217));return _0x40afa8(_0x1ae9fc)=='symbol'?_0x1ae9fc:_0x1ae9fc+'';}function _0x684ca4(_0xef7d26,_0x49f4d,_0x2b2c4d){var _0x35c16=_0x32dd90;return(_0x49f4d=_0x411dcc(_0x49f4d))in _0xef7d26?Object[_0x35c16(0x21f)](_0xef7d26,_0x49f4d,{'value':_0x2b2c4d,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0xef7d26[_0x49f4d]=_0x2b2c4d,_0xef7d26;}var _0x28316c=class extends _0x4adadc['FDocument']{constructor(..._0x995e02){var _0x2c5af1=_0x32dd90;super(..._0x995e02),_0x684ca4(this,_0x2c5af1(0x225),void 0x0),_0x684ca4(this,_0x2c5af1(0x24d),void 0x0),_0x684ca4(this,_0x2c5af1(0x203),void 0x0),_0x684ca4(this,'_docsFormulaResourceLoaderService',void 0x0);}[_0x32dd90(0x1f0)](_0x481c7b){var _0x5a017b=_0x32dd90;this[_0x5a017b(0x225)]=_0x481c7b[_0x5a017b(0x1e7)](_0x2af5ea[_0x5a017b(0x227)]),this['_docsFormulaDisplayTextService']=_0x481c7b[_0x5a017b(0x1e7)](_0x42f462[_0x5a017b(0x214)]),this[_0x5a017b(0x203)]=_0x481c7b[_0x5a017b(0x1e7)](_0x42f462[_0x5a017b(0x23d)]),this[_0x5a017b(0x23c)]=_0x481c7b['get'](_0x2af5ea['IResourceLoaderService']);}[_0x32dd90(0x200)](){var _0x5cf745=_0x32dd90;return this[_0x5cf745(0x1fc)]()[_0x5cf745(0x232)](_0x16e949=>this[_0x5cf745(0x1ee)](_0x16e949[_0x5cf745(0x1e6)]));}[_0x32dd90(0x207)](_0x350bc5){var _0x1eb5fc=_0x32dd90;return this[_0x1eb5fc(0x1fc)]()[_0x1eb5fc(0x212)](_0x3b722e=>_0x3b722e[_0x1eb5fc(0x1e6)]===_0x350bc5)?this[_0x1eb5fc(0x1ee)](_0x350bc5):null;}[_0x32dd90(0x1fe)](_0x3e765a){var _0x43e924=_0x32dd90;let _0x1daa8e=this[_0x43e924(0x1fc)]()[_0x43e924(0x24c)](_0x14c478=>_0x14c478[_0x43e924(0x231)]<=_0x3e765a&&_0x3e765a<=_0x14c478['endIndex']);return _0x1daa8e?this[_0x43e924(0x1ee)](_0x1daa8e['rangeId']):null;}[_0x32dd90(0x22a)](){var _0x561512=_0x32dd90;let _0x30ff5c=this[_0x561512(0x23c)][_0x561512(0x21e)](this['id']);if(!_0x30ff5c)throw Error(_0x561512(0x246)+this['id']+'\x20could\x20not\x20be\x20serialized.');return this['_docsFormulaDisplayTextService'][_0x561512(0x1fd)](_0x30ff5c);}[_0x32dd90(0x23a)](_0x26e99a){var _0xc2fe98=_0x32dd90;return this[_0xc2fe98(0x243)]({'externalReferences':_0x26e99a['externalReferences'],'formula':_0x26e99a[_0xc2fe98(0x228)],'numberFormat':_0x26e99a[_0xc2fe98(0x20d)],'target':{'type':_0xc2fe98(0x21b),'startOffset':_0x26e99a[_0xc2fe98(0x24b)],'endOffset':_0x26e99a['endOffset']},'unitId':this[_0xc2fe98(0x226)]()});}[_0x32dd90(0x243)](_0x4e3b8e){var _0x28dd81=_0x32dd90;let _0x5eb0a8=this[_0x28dd81(0x225)][_0x28dd81(0x24a)](_0x42f462['InsertDocFormulaCommand']['id'],_0x4e3b8e);return _0x5eb0a8?this[_0x28dd81(0x1ee)](_0x5eb0a8[_0x28dd81(0x1e6)]):null;}[_0x32dd90(0x1fc)](){var _0x300b5f=_0x32dd90,_0x5a3c7e;let _0x1d149c=this[_0x300b5f(0x203)][_0x300b5f(0x200)](this[_0x300b5f(0x226)]());return((_0x5a3c7e=this[_0x300b5f(0x208)]('')[_0x300b5f(0x247)])==null?void 0x0:_0x5a3c7e[_0x300b5f(0x1eb)](_0x59876c=>(0x0,_0x42f462[_0x300b5f(0x219)])(_0x59876c)&&_0x1d149c[_0x59876c[_0x300b5f(0x1e6)]]!=null))??[];}['_createFormula'](_0x4df870){var _0x1a10d4=_0x32dd90;return this[_0x1a10d4(0x1f1)][_0x1a10d4(0x1fb)](_0x14c941,this[_0x1a10d4(0x226)](),_0x4df870);}};_0x4adadc[_0x32dd90(0x1ff)][_0x32dd90(0x220)](_0x28316c);var _0x20deff=class extends _0x4adadc['FDocumentParagraph']{constructor(..._0x5535df){var _0x5bdd69=_0x32dd90;super(..._0x5535df),_0x684ca4(this,_0x5bdd69(0x225),void 0x0);}[_0x32dd90(0x1f0)](_0x2e1cd7){var _0x5f427e=_0x32dd90;this[_0x5f427e(0x225)]=_0x2e1cd7[_0x5f427e(0x1e7)](_0x2af5ea['ICommandService']);}[_0x32dd90(0x23a)](_0x542f01,_0x241785,_0x406c7f={}){var _0x5276d8=_0x32dd90;return this[_0x5276d8(0x243)](_0x542f01,_0x241785,_0x406c7f);}[_0x32dd90(0x23b)](_0x1e8ed5,_0x3cef5f={}){var _0x190fb3=_0x32dd90;return this['_insert'](_0x190fb3(0x1fa),_0x1e8ed5,_0x3cef5f);}['_insert'](_0x5643c8,_0x3aaca4,_0x3831d9){var _0x51dd20=_0x32dd90;if(this[_0x51dd20(0x210)]())return null;let _0x143388={'externalReferences':_0x3831d9[_0x51dd20(0x239)],'formula':_0x3aaca4,'numberFormat':_0x3831d9[_0x51dd20(0x20d)],'target':{'type':_0x51dd20(0x21a),'paragraphId':this[_0x51dd20(0x226)](),'position':_0x5643c8},'unitId':this[_0x51dd20(0x234)][_0x51dd20(0x226)]()},_0x39e4c3=this[_0x51dd20(0x225)]['syncExecuteCommand'](_0x42f462['InsertDocFormulaCommand']['id'],_0x143388);return _0x39e4c3?this[_0x51dd20(0x1f1)][_0x51dd20(0x1fb)](_0x14c941,this[_0x51dd20(0x234)][_0x51dd20(0x226)](),_0x39e4c3['rangeId']):null;}};_0x4adadc['FDocumentParagraph'][_0x32dd90(0x220)](_0x20deff);var _0x213c2f=class extends _0x4adadc[_0x32dd90(0x23e)]{constructor(..._0x55b215){var _0x30651e=_0x32dd90;super(..._0x55b215),_0x684ca4(this,_0x30651e(0x225),void 0x0);}[_0x32dd90(0x1f0)](_0x10de9a){var _0x392575=_0x32dd90;this[_0x392575(0x225)]=_0x10de9a[_0x392575(0x1e7)](_0x2af5ea[_0x392575(0x227)]);}[_0x32dd90(0x205)](_0x501274,_0x5ebb7c={}){var _0x1f0b15=_0x32dd90;let {endOffset:_0x2f39b4,segmentId:_0x7758cc,startOffset:_0x5b7a7e}=this[_0x1f0b15(0x236)]();return _0x7758cc?null:this[_0x1f0b15(0x243)](_0x5b7a7e,_0x2f39b4,_0x501274,_0x5ebb7c);}[_0x32dd90(0x243)](_0x18311d,_0xa5d422,_0x265b1d,_0x4a6276){var _0x5ecf62=_0x32dd90;let _0x59e2cd={'externalReferences':_0x4a6276[_0x5ecf62(0x239)],'formula':_0x265b1d,'numberFormat':_0x4a6276['numberFormat'],'target':{'type':_0x5ecf62(0x21b),'startOffset':_0x18311d,'endOffset':_0xa5d422},'unitId':this[_0x5ecf62(0x234)][_0x5ecf62(0x226)]()},_0x18b9ad=this[_0x5ecf62(0x225)]['syncExecuteCommand'](_0x42f462[_0x5ecf62(0x241)]['id'],_0x59e2cd);return _0x18b9ad?this[_0x5ecf62(0x1f1)][_0x5ecf62(0x1fb)](_0x14c941,this['_document']['getId'](),_0x18b9ad[_0x5ecf62(0x1e6)]):null;}};_0x4adadc[_0x32dd90(0x23e)]['extend'](_0x213c2f),Object[_0x32dd90(0x21f)](_0xa9bf7d,_0x32dd90(0x1ef),{'enumerable':!0x0,'get':function(){return _0x14c941;}});}));
1
+ function _0x19cd(){var _0x251810=['_document','_initialize','startOffset','exports','_docsFormulaModel','some','symbol','@univerjs/core','createInstance','SetDocFormulaNumberFormatCommand','_createFormula','UniverCore','ConvertDocFormulaToTextCommand','toStringTag','convertToText','iterator','Module','formula','get','endOffset','2677520FkLOad','55970qIVACL','getFormulas','14565555DZBLMk','DocFormulaModel','_docsFormulaCommandService','4cFbpaW','getOwnPropertyDescriptor','decorate','_rangeId','call','body','_getCompleteRanges','insertFormula','endIndex','Document\x20','range','externalReferences','getConfig','527654RwTzeo','504JGQbPR','_model','getRange','getFormula','remove','FDocument','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','numberFormat','replaceWithFormula','Inject','FDocumentFormula','map','isDocFormulaRange','DocFormulaService','ICommandService','6993580jXhTAA','describe','DocFormulaDisplayTextService','InsertDocFormulaCommand','UniverInstanceType','syncExecuteCommand','length','constructor','function','object','3EUzDHw','3313293OFFUBj','getSnapshot','_injector','UniverProDocsFormula','_service','_docsFormulaDisplayTextService','_commandService','defineProperty','_unitId','getSegmentId','getId','paragraph','_docsFormulaResourceLoaderService','@univerjs/docs/facade','@univerjs-pro/docs-formula','IUniverInstanceService','update','toPrimitive','find','getResult','11aElPjF','UniverProDocsFormulaFacade','_insert','_getCustomRange','_univerInstanceService','IResourceLoaderService','FDocumentParagraph','customRanges','rangeId','6667157XnRqpx','RemoveDocFormulaCommand','FDocumentTextRange','UpdateDocFormulaCommand','saveFormulaDisplayTextSnapshot','extend','getFormulaAt','string','startIndex','amd','filter','UniverDocsFacade'];_0x19cd=function(){return _0x251810;};return _0x19cd();}function _0x1b9b(_0xa43efa,_0x5b28ab){_0xa43efa=_0xa43efa-0x1e0;var _0x19cdfc=_0x19cd();var _0x1b9bd6=_0x19cdfc[_0xa43efa];return _0x1b9bd6;}(function(_0x1c57db,_0x2e223e){var _0x334f12=_0x1b9b,_0x17f89e=_0x1c57db();while(!![]){try{var _0x32c716=-parseInt(_0x334f12(0x1fb))/0x1*(parseInt(_0x334f12(0x1e1))/0x2)+parseInt(_0x334f12(0x1fc))/0x3*(parseInt(_0x334f12(0x23f))/0x4)+parseInt(_0x334f12(0x23a))/0x5*(parseInt(_0x334f12(0x1e2))/0x6)+parseInt(_0x334f12(0x219))/0x7+-parseInt(_0x334f12(0x239))/0x8+-parseInt(_0x334f12(0x23c))/0x9+-parseInt(_0x334f12(0x1f1))/0xa*(-parseInt(_0x334f12(0x210))/0xb);if(_0x32c716===_0x2e223e)break;else _0x17f89e['push'](_0x17f89e['shift']());}catch(_0x78a9b){_0x17f89e['push'](_0x17f89e['shift']());}}}(_0x19cd,0xe86a2),function(_0x134e0f,_0x160e17){var _0x19cf05=_0x1b9b;typeof exports==_0x19cf05(0x1fa)&&typeof module<'u'?_0x160e17(exports,require('@univerjs-pro/docs-formula'),require('@univerjs/core'),require('@univerjs/docs/facade')):typeof define=='function'&&define[_0x19cf05(0x222)]?define([_0x19cf05(0x228),_0x19cf05(0x20a),_0x19cf05(0x22c),_0x19cf05(0x209)],_0x160e17):(_0x134e0f=typeof globalThis<'u'?globalThis:_0x134e0f||self,_0x160e17(_0x134e0f[_0x19cf05(0x211)]={},_0x134e0f[_0x19cf05(0x1ff)],_0x134e0f[_0x19cf05(0x230)],_0x134e0f[_0x19cf05(0x224)]));}(this,function(_0x5a143b,_0x5ce663,_0x27cbb3,_0x3a1709){var _0x59ae75=_0x1b9b;Object[_0x59ae75(0x203)](_0x5a143b,Symbol[_0x59ae75(0x232)],{'value':_0x59ae75(0x235)});function _0x2647f1(_0xc7051a,_0x3ac287){return function(_0x2078ed,_0x447126){_0x3ac287(_0x2078ed,_0x447126,_0xc7051a);};}function _0x315125(_0x286b93,_0x1160e0,_0x256423,_0x373e0c){var _0x53104f=_0x59ae75,_0x1f959c=arguments['length'],_0x44305b=_0x1f959c<0x3?_0x1160e0:_0x373e0c===null?_0x373e0c=Object[_0x53104f(0x240)](_0x1160e0,_0x256423):_0x373e0c,_0x1509b6;if(typeof Reflect==_0x53104f(0x1fa)&&typeof Reflect[_0x53104f(0x241)]==_0x53104f(0x1f9))_0x44305b=Reflect[_0x53104f(0x241)](_0x286b93,_0x1160e0,_0x256423,_0x373e0c);else{for(var _0x50cb24=_0x286b93[_0x53104f(0x1f7)]-0x1;_0x50cb24>=0x0;_0x50cb24--)(_0x1509b6=_0x286b93[_0x50cb24])&&(_0x44305b=(_0x1f959c<0x3?_0x1509b6(_0x44305b):_0x1f959c>0x3?_0x1509b6(_0x1160e0,_0x256423,_0x44305b):_0x1509b6(_0x1160e0,_0x256423))||_0x44305b);}return _0x1f959c>0x3&&_0x44305b&&Object['defineProperty'](_0x1160e0,_0x256423,_0x44305b),_0x44305b;}let _0x278f7f=class{constructor(_0x4838bf,_0x300031,_0x539737,_0x462ed3,_0x34332a,_0x131a6c){var _0x536171=_0x59ae75;this[_0x536171(0x204)]=_0x4838bf,this[_0x536171(0x242)]=_0x300031,this[_0x536171(0x202)]=_0x539737,this[_0x536171(0x1e3)]=_0x462ed3,this[_0x536171(0x200)]=_0x34332a,this['_univerInstanceService']=_0x131a6c;}['getId'](){var _0x2f68c7=_0x59ae75;return this[_0x2f68c7(0x242)];}[_0x59ae75(0x1e4)](){var _0x4862ab=_0x59ae75;let _0x5e6678=this[_0x4862ab(0x213)]();return _0x5e6678?{'endOffset':_0x5e6678[_0x4862ab(0x247)]+0x1,'rangeId':_0x5e6678[_0x4862ab(0x218)],'startOffset':_0x5e6678[_0x4862ab(0x221)]}:null;}['getFormula'](){var _0xa6e0a2=_0x59ae75,_0x3f1d0c;return((_0x3f1d0c=this[_0xa6e0a2(0x1e3)][_0xa6e0a2(0x1e5)](this['_unitId'],this[_0xa6e0a2(0x242)]))==null?void 0x0:_0x3f1d0c['formula'])??'';}['getConfig'](){var _0x3f9a83=_0x59ae75;return this[_0x3f9a83(0x1e3)][_0x3f9a83(0x1e5)](this[_0x3f9a83(0x204)],this[_0x3f9a83(0x242)])??null;}[_0x59ae75(0x20f)](){var _0x26e166=_0x59ae75;return this[_0x26e166(0x200)][_0x26e166(0x20f)]({'unitId':this[_0x26e166(0x204)],'rangeId':this[_0x26e166(0x242)]})??null;}[_0x59ae75(0x1f2)](){var _0x38558d=_0x59ae75;let _0x25954a=this['getRange'](),_0x15d8b2=this[_0x38558d(0x1e0)](),_0x52f229=this[_0x38558d(0x20f)]();return!_0x25954a||!_0x15d8b2||!_0x52f229?null:{..._0x25954a,'config':_0x15d8b2,'formula':_0x15d8b2[_0x38558d(0x236)],'result':_0x52f229,'type':'formula'};}[_0x59ae75(0x20c)](_0x2e09f4){var _0x39e152=_0x59ae75;return this[_0x39e152(0x202)][_0x39e152(0x1f6)](_0x5ce663[_0x39e152(0x21c)]['id'],{'externalReferences':_0x2e09f4[_0x39e152(0x24a)],'formula':_0x2e09f4[_0x39e152(0x236)],'numberFormat':_0x2e09f4[_0x39e152(0x1e9)],'rangeId':this[_0x39e152(0x242)],'unitId':this[_0x39e152(0x204)]});}['setNumberFormat'](_0x16114c){var _0x33f69c=_0x59ae75;return this[_0x33f69c(0x202)][_0x33f69c(0x1f6)](_0x5ce663[_0x33f69c(0x22e)]['id'],{'numberFormat':_0x16114c,'rangeId':this[_0x33f69c(0x242)],'unitId':this[_0x33f69c(0x204)]});}[_0x59ae75(0x1e6)](){var _0x3ebc7f=_0x59ae75;return this[_0x3ebc7f(0x202)][_0x3ebc7f(0x1f6)](_0x5ce663[_0x3ebc7f(0x21a)]['id'],{'rangeId':this[_0x3ebc7f(0x242)],'unitId':this[_0x3ebc7f(0x204)]});}['replaceWithText'](_0x24e2b8){var _0x1a33a4=_0x59ae75;return this[_0x1a33a4(0x202)][_0x1a33a4(0x1f6)](_0x5ce663['ReplaceDocFormulaWithTextCommand']['id'],{'rangeId':this[_0x1a33a4(0x242)],'text':_0x24e2b8,'unitId':this[_0x1a33a4(0x204)]});}[_0x59ae75(0x233)](){var _0x7325c4=_0x59ae75;return this['_commandService'][_0x7325c4(0x1f6)](_0x5ce663[_0x7325c4(0x231)]['id'],{'rangeId':this['_rangeId'],'unitId':this['_unitId']});}[_0x59ae75(0x213)](){var _0x5c6b06=_0x59ae75,_0x1097d7;let _0x133b11=this[_0x5c6b06(0x214)]['getUnit'](this[_0x5c6b06(0x204)],_0x27cbb3[_0x5c6b06(0x1f5)]['UNIVER_DOC']);return _0x133b11==null||(_0x1097d7=_0x133b11[_0x5c6b06(0x1fd)]()[_0x5c6b06(0x244)])==null||(_0x1097d7=_0x1097d7['customRanges'])==null?void 0x0:_0x1097d7['find'](_0x5905a9=>_0x5905a9[_0x5c6b06(0x218)]===this[_0x5c6b06(0x242)]&&(0x0,_0x5ce663[_0x5c6b06(0x1ee)])(_0x5905a9));}};_0x278f7f=_0x315125([_0x2647f1(0x2,_0x27cbb3[_0x59ae75(0x1f0)]),_0x2647f1(0x3,(0x0,_0x27cbb3[_0x59ae75(0x1eb)])(_0x5ce663[_0x59ae75(0x23d)])),_0x2647f1(0x4,(0x0,_0x27cbb3[_0x59ae75(0x1eb)])(_0x5ce663[_0x59ae75(0x1ef)])),_0x2647f1(0x5,_0x27cbb3[_0x59ae75(0x20b)])],_0x278f7f);function _0x31b197(_0x5c5615){'@babel/helpers - typeof';var _0x5493e1=_0x59ae75;return _0x31b197=typeof Symbol==_0x5493e1(0x1f9)&&typeof Symbol[_0x5493e1(0x234)]==_0x5493e1(0x22b)?function(_0x10dfee){return typeof _0x10dfee;}:function(_0x2d0c6b){var _0x301500=_0x5493e1;return _0x2d0c6b&&typeof Symbol==_0x301500(0x1f9)&&_0x2d0c6b[_0x301500(0x1f8)]===Symbol&&_0x2d0c6b!==Symbol['prototype']?_0x301500(0x22b):typeof _0x2d0c6b;},_0x31b197(_0x5c5615);}function _0x297d12(_0xf45ff5,_0x4f82a4){var _0x5af267=_0x59ae75;if(_0x31b197(_0xf45ff5)!='object'||!_0xf45ff5)return _0xf45ff5;var _0x2facf7=_0xf45ff5[Symbol[_0x5af267(0x20d)]];if(_0x2facf7!==void 0x0){var _0x4d8bd3=_0x2facf7[_0x5af267(0x243)](_0xf45ff5,_0x4f82a4||'default');if(_0x31b197(_0x4d8bd3)!=_0x5af267(0x1fa))return _0x4d8bd3;throw TypeError(_0x5af267(0x1e8));}return(_0x4f82a4===_0x5af267(0x220)?String:Number)(_0xf45ff5);}function _0x596418(_0x1de860){var _0x52b17e=_0x59ae75,_0x186a8e=_0x297d12(_0x1de860,'string');return _0x31b197(_0x186a8e)==_0x52b17e(0x22b)?_0x186a8e:_0x186a8e+'';}function _0x53e627(_0x2d4150,_0x164bae,_0x3c2b50){var _0x5e60e9=_0x59ae75;return(_0x164bae=_0x596418(_0x164bae))in _0x2d4150?Object[_0x5e60e9(0x203)](_0x2d4150,_0x164bae,{'value':_0x3c2b50,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x2d4150[_0x164bae]=_0x3c2b50,_0x2d4150;}var _0x17f96f=class extends _0x3a1709[_0x59ae75(0x1e7)]{constructor(..._0x7290f4){var _0x4338cd=_0x59ae75;super(..._0x7290f4),_0x53e627(this,_0x4338cd(0x23e),void 0x0),_0x53e627(this,_0x4338cd(0x201),void 0x0),_0x53e627(this,_0x4338cd(0x229),void 0x0),_0x53e627(this,'_docsFormulaResourceLoaderService',void 0x0);}[_0x59ae75(0x226)](_0x229a53){var _0x1e46dc=_0x59ae75;this[_0x1e46dc(0x23e)]=_0x229a53[_0x1e46dc(0x237)](_0x27cbb3['ICommandService']),this[_0x1e46dc(0x201)]=_0x229a53[_0x1e46dc(0x237)](_0x5ce663[_0x1e46dc(0x1f3)]),this['_docsFormulaModel']=_0x229a53['get'](_0x5ce663[_0x1e46dc(0x23d)]),this[_0x1e46dc(0x208)]=_0x229a53[_0x1e46dc(0x237)](_0x27cbb3[_0x1e46dc(0x215)]);}[_0x59ae75(0x23b)](){var _0x282bdc=_0x59ae75;return this[_0x282bdc(0x245)]()[_0x282bdc(0x1ed)](_0x52e734=>this['_createFormula'](_0x52e734[_0x282bdc(0x218)]));}['getFormula'](_0x436c3c){var _0x1f4fd2=_0x59ae75;return this[_0x1f4fd2(0x245)]()[_0x1f4fd2(0x22a)](_0x46ea9c=>_0x46ea9c['rangeId']===_0x436c3c)?this['_createFormula'](_0x436c3c):null;}[_0x59ae75(0x21f)](_0x539704){var _0x37e354=_0x59ae75;let _0x324564=this[_0x37e354(0x245)]()[_0x37e354(0x20e)](_0x686490=>_0x686490[_0x37e354(0x221)]<=_0x539704&&_0x539704<=_0x686490[_0x37e354(0x247)]);return _0x324564?this[_0x37e354(0x22f)](_0x324564[_0x37e354(0x218)]):null;}[_0x59ae75(0x21d)](){var _0x585339=_0x59ae75;let _0x1cdce5=this[_0x585339(0x208)]['saveUnit'](this['id']);if(!_0x1cdce5)throw Error(_0x585339(0x248)+this['id']+'\x20could\x20not\x20be\x20serialized.');return this[_0x585339(0x201)]['degradeDocumentData'](_0x1cdce5);}[_0x59ae75(0x246)](_0x4d99b4){var _0x11e726=_0x59ae75;return this[_0x11e726(0x212)]({'externalReferences':_0x4d99b4[_0x11e726(0x24a)],'formula':_0x4d99b4['formula'],'numberFormat':_0x4d99b4[_0x11e726(0x1e9)],'target':{'type':_0x11e726(0x249),'startOffset':_0x4d99b4[_0x11e726(0x227)],'endOffset':_0x4d99b4[_0x11e726(0x238)]},'unitId':this[_0x11e726(0x206)]()});}['_insert'](_0xa7bb55){var _0x4d82d3=_0x59ae75;let _0x391bd6=this['_docsFormulaCommandService'][_0x4d82d3(0x1f6)](_0x5ce663[_0x4d82d3(0x1f4)]['id'],_0xa7bb55);return _0x391bd6?this[_0x4d82d3(0x22f)](_0x391bd6[_0x4d82d3(0x218)]):null;}[_0x59ae75(0x245)](){var _0x2445a6=_0x59ae75,_0x4b6ffb;let _0x45a447=this[_0x2445a6(0x229)][_0x2445a6(0x23b)](this[_0x2445a6(0x206)]());return((_0x4b6ffb=this['getBody']('')[_0x2445a6(0x217)])==null?void 0x0:_0x4b6ffb[_0x2445a6(0x223)](_0x1e0f7c=>(0x0,_0x5ce663['isDocFormulaRange'])(_0x1e0f7c)&&_0x45a447[_0x1e0f7c[_0x2445a6(0x218)]]!=null))??[];}[_0x59ae75(0x22f)](_0x3773c2){var _0x266248=_0x59ae75;return this[_0x266248(0x1fe)][_0x266248(0x22d)](_0x278f7f,this[_0x266248(0x206)](),_0x3773c2);}};_0x3a1709['FDocument'][_0x59ae75(0x21e)](_0x17f96f);var _0x136116=class extends _0x3a1709['FDocumentParagraph']{constructor(..._0xf421f7){var _0x410b78=_0x59ae75;super(..._0xf421f7),_0x53e627(this,_0x410b78(0x23e),void 0x0);}['_initialize'](_0x3af01b){var _0x7bc760=_0x59ae75;this[_0x7bc760(0x23e)]=_0x3af01b[_0x7bc760(0x237)](_0x27cbb3[_0x7bc760(0x1f0)]);}[_0x59ae75(0x246)](_0x7cbf9a,_0x1049e0,_0x8a1b9={}){var _0x404f24=_0x59ae75;return this[_0x404f24(0x212)](_0x7cbf9a,_0x1049e0,_0x8a1b9);}['appendFormula'](_0x5cba3d,_0x24a275={}){return this['_insert']('end',_0x5cba3d,_0x24a275);}[_0x59ae75(0x212)](_0x1d8052,_0x2b88fe,_0x8bd99a){var _0x238da3=_0x59ae75;if(this[_0x238da3(0x205)]())return null;let _0x3878a8={'externalReferences':_0x8bd99a[_0x238da3(0x24a)],'formula':_0x2b88fe,'numberFormat':_0x8bd99a[_0x238da3(0x1e9)],'target':{'type':_0x238da3(0x207),'paragraphId':this[_0x238da3(0x206)](),'position':_0x1d8052},'unitId':this[_0x238da3(0x225)][_0x238da3(0x206)]()},_0x20b6ab=this[_0x238da3(0x23e)][_0x238da3(0x1f6)](_0x5ce663[_0x238da3(0x1f4)]['id'],_0x3878a8);return _0x20b6ab?this['_injector'][_0x238da3(0x22d)](_0x278f7f,this[_0x238da3(0x225)][_0x238da3(0x206)](),_0x20b6ab[_0x238da3(0x218)]):null;}};_0x3a1709[_0x59ae75(0x216)][_0x59ae75(0x21e)](_0x136116);var _0x4c1e04=class extends _0x3a1709[_0x59ae75(0x21b)]{constructor(..._0x1e61bf){var _0x5d83f6=_0x59ae75;super(..._0x1e61bf),_0x53e627(this,_0x5d83f6(0x23e),void 0x0);}['_initialize'](_0x376da0){var _0x1c06dc=_0x59ae75;this['_docsFormulaCommandService']=_0x376da0[_0x1c06dc(0x237)](_0x27cbb3[_0x1c06dc(0x1f0)]);}[_0x59ae75(0x1ea)](_0x465643,_0x334283={}){let {endOffset:_0x50412a,segmentId:_0xa0cafb,startOffset:_0x13dbde}=this['getRange']();return _0xa0cafb?null:this['_insert'](_0x13dbde,_0x50412a,_0x465643,_0x334283);}['_insert'](_0x3bbe58,_0xc9baaa,_0xfd41aa,_0x3fbd96){var _0x32b3bd=_0x59ae75;let _0x2328c0={'externalReferences':_0x3fbd96[_0x32b3bd(0x24a)],'formula':_0xfd41aa,'numberFormat':_0x3fbd96[_0x32b3bd(0x1e9)],'target':{'type':_0x32b3bd(0x249),'startOffset':_0x3bbe58,'endOffset':_0xc9baaa},'unitId':this[_0x32b3bd(0x225)][_0x32b3bd(0x206)]()},_0x26e277=this[_0x32b3bd(0x23e)]['syncExecuteCommand'](_0x5ce663[_0x32b3bd(0x1f4)]['id'],_0x2328c0);return _0x26e277?this[_0x32b3bd(0x1fe)]['createInstance'](_0x278f7f,this[_0x32b3bd(0x225)]['getId'](),_0x26e277['rangeId']):null;}};_0x3a1709[_0x59ae75(0x21b)][_0x59ae75(0x21e)](_0x4c1e04),Object['defineProperty'](_0x5a143b,_0x59ae75(0x1ec),{'enumerable':!0x0,'get':function(){return _0x278f7f;}});}));