@univerjs-pro/engine-formula 0.5.0-alpha.0 → 0.5.0-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x25a69f=_0x4be3;(function(_0xe18ef3,_0x237422){const _0x663f8a=_0x4be3,_0x1caa75=_0xe18ef3();while(!![]){try{const _0x2bd4f3=parseInt(_0x663f8a(0x15a))/0x1+-parseInt(_0x663f8a(0xc6))/0x2*(-parseInt(_0x663f8a(0xda))/0x3)+parseInt(_0x663f8a(0x108))/0x4*(-parseInt(_0x663f8a(0xcf))/0x5)+parseInt(_0x663f8a(0x160))/0x6+parseInt(_0x663f8a(0xf7))/0x7+-parseInt(_0x663f8a(0xbc))/0x8+-parseInt(_0x663f8a(0xca))/0x9;if(_0x2bd4f3===_0x237422)break;else _0x1caa75['push'](_0x1caa75['shift']());}catch(_0x3e0d09){_0x1caa75['push'](_0x1caa75['shift']());}}}(_0x5311,0xdf060));function _0x5311(){const _0x58b0ab=['setTotalFormulasToCalculate','FormulaExecuteStageType','_configService','_calculateRunList','6294282BzCbeX','markedAsStopFunctionsExecuted','executeAsync','toRTreeItem','_lexer','getOtherFormulaDependency','setFormulaExecuteStage','RTree','resolve','getOtherFormulaData','checkAsyncNode','min','getDirtyData','realDeleteValue','UniverFormulaEnginePlugin','closeKdTree','notExecuteFormula','unitId','DEFAULT_INTERVAL_COUNT','generate','_getRangeListByNode','addFormulaDependency','START_CALCULATION','setRuntimeFeatureCellData','FormulaDependencyGenerator','generateAstNode','FormulaDependencyTree','11430888HuPIaG','addOtherFormulaDependency','getAllRuntimeData','isDirty','forValue','markedAsSuccessfullyExecuted','_initTimeValid','length','START_DEPENDENCY','row','2mcJTRs','keys','getDirtyNameMap','_createVirtualFDtree','7363701yBEOLl','column','size','_createFDtree','subUnitId','3839405YaMaEX','addFeatureFormulaDependency','OTHER_FORMULA','rangeList','get','isForceCalculate','isStopExecution','clearFormulaDependency','DependencyManagerService','setTotalArrayFormulasToCalculate','push','3946782lXTbTd','_removeDependencyRTreeCacheById','_injector','removeFormulaDependencyByDefinedName','_executionInProgressListener$','node','return\x20','clear','_otherFormulaDataMainData','valid','delete','_runtimeService','setCompletedArrayFormulasCount','pop','_getUpdateTreeListAndMakeDependency','_config','isCache','_formulaData','setValue','forEach','formula','UniverLicensePlugin','openKdTree','_featureFormulaData','columnCount','refOffsetY','_allTreeMap','FEATURE_FORMULA','setCurrent','10871154buXFft','symbol','refOffsetX','getFormulaDependency','_otherFormulaData','IDLE','searchDependency','toStringTag','@univerjs/core','clearOtherFormulaDependency','getUnitData','type','featureDirtyRanges','pushRangeList','has','IDependencyManagerService','@univerjs-pro/license','4btRRxP','requestImmediateMacroTask','_dependencyTreeCache','_getFirstCellOfRange','isSkip','setCompletedFormulasCount','ParentDependencyTree\x20object\x20is\x20null','removeOtherFormulaDependency','execute','clearFeatureFormulaDependency','CURRENTLY_CALCULATING','treeId','generateRandomDependencyTreeId','_executionCompleteListener$','@univerjs/engine-formula','_checkIsCycleDependency','formulaId','_traverse','_isCyclicUtilMap','addDependencyRTreeCache','IFormulaDependencyGenerator','addFormulaDependencyByDefinedName','_definedNameMap','dispose','ObjectMatrix','START_DEPENDENCY_ARRAY_FORMULA','FormulaDependencyTreeType','rowCount','endRow','_apply','add','reset','_registerFeatureFormulas','max','setRuntimeOtherData','startColumn','getFeatureFormulaDependency','getClearDependencyTreeCache','isVirtual','defineProperty','setSkip','markedAsNoFunctionsExecuted','setRuntimeData','addOtherFormulaDependencyMainData','isAdded','set','getConfig','_restDependencyTreeId','getValue','enableCycleDependency','unshiftString','_astTreeBuilder','CURRENTLY_CALCULATING_ARRAY_FORMULA','_registerOtherFormulas','_dependencyRTreeCache','getFormulaData','dirtyRanges','UniverProFormulaEnginePlugin','_initializeWithOverride','CalculateFormulaService','_generateTreeList','isExcludeRange','removeFeatureFormulaDependency','START_CALCULATION_ARRAY_FORMULA','getOwnPropertyDescriptor','PLUGIN_CONFIG_KEY','FormulaDependencyTreeVirtual','featureId','_updateRangeFlatten','_removeAllTreeMap','3Ur2ct6r\x20F42WqXct6r(Et24rh4,\x20XU7Et2S4q)\x20{\x20\x20\x20\x2026rhc\x20Et24rh4Rr36ICWcNWWCq\x20=\x20Et24rh4.hXEtc(\x27-\x27);\x20\x20\x20\x2026rhc\x206Wtdtrf4hhCd4\x20=\x208uV0.XCWh4(Cc67(Et24rh4Rr36ICWcNWWCq[a]));\x20\x20\x20\x20t3\x20(!6Wtdtrf4hhCd4.UF)\x20{\x20\x20\x20\x20\x20\x20\x20\x206Wtdtrf4hhCd4.UF\x20=\x200UT74W(Et24rh4Rr36ICWcNWWCq[p]);\x20\x20\x20\x20}\x20\x20\x20\x2026rhc\x20thZ6Wy4W\x20=\x20cqX463\x20Z6Wy4WwE67CEu26X4\x20!==\x20\x27UrF43tr4F\x27\x20&&\x20h4E3\x20trhcCr2463\x20Z6Wy4WwE67CEu26X4;\x20\x20\x20\x2026rhc\x2026rc4Ac\x20=\x20thZ6Wy4W\x20?\x20h4E3\x20:\x201trF61;\x20\x20\x20\x2026rhc\x20T4hhCd4Z6WF\x20=\x2026rc4Ac.__iCh4Jp__.XCWh4(Et24rh4Rr36ICWcNWWCq[a]);\x20\x20\x20\x2026rhc\x20T4hhCd4\x20=\x2026rc4Ac.__m4A__.hcWtrdt3q(T4hhCd4Z6WF);\x20\x20\x20\x2026rhc\x20htdrCcUW4Z6WF\x20=\x2026rc4Ac.__iCh4Jp__.XCWh4(Et24rh4Rr36ICWcNWWCq[n]);\x20\x20\x20\x2026rhc\x20htdrCcUW4\x20=\x2026rc4Ac.__m4A__.hcWtrdt3q(htdrCcUW4Z6WF);\x20\x20\x20\x2026rhc\x20htdrgCEtF\x20=\x2026rc4Ac.__54Wt3q__(htdrCcUW4,\x20T4hhCd4,\x20XU7Et2S4q);\x20\x20\x20\x2026rhc\x20F6TCtr\x20=\x206Wtdtrf4hhCd4.FT;\x20\x20\x20\x203Ur2ct6r\x20thl6TCtrfCc2otrd(6ICcc4Wr,\x206m6hc)\x20{\x20\x20\x20\x20\x20\x20\x20\x2026rhc\x20XCcc4Wr\x20=\x206ICcc4Wr.W4XEC24(/^.+/,\x20\x27\x27);\x20\x20\x20\x20\x20\x20\x20\x2026rhc\x20o6hc\x20=\x206m6hc.W4XEC24(/^.+/,\x20\x27\x27);\x20\x20\x20\x20\x20\x20\x20\x2026rhc\x20XCcc4WrICWch\x20=\x20XCcc4Wr.hXEtc(\x27.\x27);\x20\x20\x20\x20\x20\x20\x20\x2026rhc\x20o6hcICWch\x20=\x20o6hc.hXEtc(\x27.\x27);\x20\x20\x20\x20\x20\x20\x20\x20t3\x20(!XCcc4Wr.tr2EUF4h(\x27*\x27))\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20W4cUWr\x20XCcc4Wr\x20===\x20o6hc;\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x20t3\x20(XCcc4WrICWch.E4rdco\x20<\x20a\x20||\x20XCcc4WrICWch[G]\x20!==\x20\x27*\x27)\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20W4cUWr\x203CEh4;\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x2026rhc\x20XCcc4WruU33tA\x20=\x20XCcc4WrICWch.hEt24(Q).x6tr(\x27.\x27);\x20\x20\x20\x20\x20\x20\x20\x2026rhc\x20o6hcuU33tA\x20=\x20o6hcICWch.hEt24(-XCcc4WrICWch.E4rdco\x20+\x20Q).x6tr(\x27.\x27);\x20\x20\x20\x20\x20\x20\x20\x20W4cUWr\x20XCcc4WruU33tA\x20===\x20o6hcuU33tA;\x20\x20\x20\x20}\x20\x20\x20\x20E4c\x20F6TCtrgCEtF\x20=\x20F6TCtr?.E4rdco\x20?\x20F6TCtr.h6T4((FTRc4T)\x20=>\x20thl6TCtrfCc2otrd(FTRc4T,\x20E62Cct6r.o6hcrCT4))\x20:\x20cWU4;\x20\x20\x20\x20t3\x20(E62Cct6r.o6hcrCT4\x20===\x20\x27E62CEo6hc\x27)\x20{\x20\x20\x20\x20\x20\x20\x20\x20F6TCtrgCEtF\x20=\x20cWU4;\x20\x20\x20\x20}\x20\x20\x20\x2026rhc\x205CEtF\x20=\x20htdrgCEtF\x20&&\x20F6TCtrgCEtF;\x20\x20\x20\x20W4cUWr\x20{\x20\x20\x20\x20\x20\x20\x20\x205CEtF,\x20T4hhCd4:\x206Wtdtrf4hhCd4,\x20\x20\x20\x20};}','hasOtherFormulaDataMainData','getRuntimeState','next','_formulaDependencyGenerator','_currentConfigService','getDirtyRanges','_dependencyManagerService','_otherFormulaManagerService','_addAllTreeMap','_removeDependencyRTreeCache','_registerFormulas','10772zbMdAC','startRow'];_0x5311=function(){return _0x58b0ab;};return _0x5311();}var X=Object[_0x25a69f(0x12f)],P=(_0x4f3200,_0x58ba57,_0x125cdb)=>_0x58ba57 in _0x4f3200?X(_0x4f3200,_0x58ba57,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x125cdb}):_0x4f3200[_0x58ba57]=_0x125cdb,S=(_0xea6037,_0x1d108f,_0x4b6e15)=>P(_0xea6037,typeof _0x1d108f!=_0x25a69f(0xf8)?_0x1d108f+'':_0x1d108f,_0x4b6e15);function _0x4be3(_0x4ba726,_0x2ba8b8){const _0x5311f6=_0x5311();return _0x4be3=function(_0x4be3b7,_0x1c4653){_0x4be3b7=_0x4be3b7-0xa6;let _0xc61311=_0x5311f6[_0x4be3b7];return _0xc61311;},_0x4be3(_0x4ba726,_0x2ba8b8);}Object['defineProperty'](exports,Symbol[_0x25a69f(0xfe)],{'value':'Module'});const v=require(_0x25a69f(0xff)),u=require(_0x25a69f(0x116)),O=require(_0x25a69f(0x107)),b={0x0:'N',0x1:'w',0x2:'c',0x3:'f',0x4:'e',0x5:'v',0x6:'o',0x7:'b',0x8:'J',0x9:'L','G':'0','Q':'1','a':'2','n':'3','p':'4','L':'5','J':'6','s':'7','k':'8','M':'9','C':'a','F':'d','d':'g','o':'h','t':'i','x':'j','y':'k','E':'l','T':'m','r':'n','X':'p','K':'q','W':'r','h':'s','c':'t','U':'u','A':'x','q':'y','j':'z','N':'A','i':'B','D':'C','l':'D','e':'E','b':'F','w':'G','m':'H','R':'I','S':'K','f':'M','V':'O','I':'P','Y':'Q','v':'R','u':'S','B':'T','z':'U','g':'V','Z':'W','O':'X','H':'Y','P':'Z'},k=_0x25a69f(0x14e);class V extends u[_0x25a69f(0xb9)]{constructor(){const _0x5d8e58=_0x25a69f;super(...arguments),S(this,_0x5d8e58(0x10a),new Map());}[_0x25a69f(0x11f)](){const _0x389185=_0x25a69f;super[_0x389185(0x11f)](),this[_0x389185(0x10a)]['clear']();}async['generate'](){const _0x3ccb1d=_0x25a69f;this[_0x3ccb1d(0x14c)]();const _0x274cdb=this[_0x3ccb1d(0x153)][_0x3ccb1d(0x13f)](),_0x582dcd=this[_0x3ccb1d(0x156)][_0x3ccb1d(0xaa)](),_0x4b0d9c=this[_0x3ccb1d(0x153)][_0x3ccb1d(0x12d)]();_0x4b0d9c!=null&&Object[_0x3ccb1d(0xc7)](_0x4b0d9c)['forEach'](_0x541e63=>{const _0x2f00ff=_0x3ccb1d;_0x541e63!=null&&Object['keys'](_0x4b0d9c[_0x541e63])[_0x2f00ff(0xed)](_0xafbb6e=>{const _0x207100=_0x2f00ff;_0xafbb6e!=null&&(this[_0x207100(0x155)][_0x207100(0x100)](_0x541e63,_0xafbb6e),this[_0x207100(0x155)][_0x207100(0x111)](_0x541e63,_0xafbb6e),this[_0x207100(0x155)][_0x207100(0xd6)](_0x541e63,_0xafbb6e));});});const _0x3e6545=this[_0x3ccb1d(0x153)][_0x3ccb1d(0x101)]();await this[_0x3ccb1d(0x144)](_0x274cdb,_0x582dcd,_0x3e6545),this[_0x3ccb1d(0x155)][_0x3ccb1d(0xf0)]();const _0x5175ef=this[_0x3ccb1d(0xe8)](),_0x5e4bf3=this['_calculateRunList'](_0x5175ef);return this[_0x3ccb1d(0x117)](_0x5e4bf3)&&this[_0x3ccb1d(0xe5)][_0x3ccb1d(0x139)](),this['_dependencyTreeCache']['clear'](),this[_0x3ccb1d(0x155)][_0x3ccb1d(0xb0)](),Promise[_0x3ccb1d(0xa9)](_0x5e4bf3);}[_0x25a69f(0x11a)](_0x362ce2,_0x180ec0){const _0x3c67d1=_0x25a69f,_0x3d719d=[_0x362ce2];for(;_0x3d719d[_0x3c67d1(0xc3)]>0x0;){const _0x16f898=_0x3d719d[_0x3d719d[_0x3c67d1(0xc3)]-0x1];if((_0x180ec0[_0x3c67d1(0xd3)](_0x16f898)||0x0)===0x0){_0x180ec0[_0x3c67d1(0x135)](_0x16f898,0x1);const _0x5f5c81=this[_0x3c67d1(0x10a)][_0x3c67d1(0xd3)](_0x16f898);if(_0x5f5c81==null){_0x180ec0['set'](_0x16f898,0x2),_0x3d719d[_0x3c67d1(0xe7)]();continue;}const _0x1d2be8=this[_0x3c67d1(0x155)][_0x3c67d1(0xfd)](_0x5f5c81['toRTreeItem']());for(const _0x17b496 of _0x1d2be8){const _0x44984d=_0x180ec0['get'](_0x17b496)||0x0;if(_0x44984d===0x1)return!0x0;_0x44984d===0x0&&_0x3d719d[_0x3c67d1(0xd9)](_0x17b496);}}else _0x180ec0[_0x3c67d1(0x135)](_0x16f898,0x2),_0x3d719d[_0x3c67d1(0xe7)]();}return!0x1;}['_checkIsCycleDependency'](_0x10254c){const _0x53751d=_0x25a69f,_0x3e8ced=new Map();for(const _0x2ec049 of _0x10254c)if(!_0x3e8ced[_0x53751d(0x105)](_0x2ec049['treeId'])&&this[_0x53751d(0x11a)](_0x2ec049[_0x53751d(0x113)],_0x3e8ced))return!0x0;return _0x3e8ced['clear'](),!0x1;}async[_0x25a69f(0x144)](_0x1df882,_0x18c240,_0x2692c4){const _0x3cb381=_0x25a69f,_0x17551f=Object[_0x3cb381(0xc7)](_0x1df882),_0x374a58=Object[_0x3cb381(0xc7)](_0x18c240),_0x1da7cd=[];this[_0x3cb381(0x153)][_0x3cb381(0xd4)]()&&this[_0x3cb381(0x155)]['reset'](),this[_0x3cb381(0x159)](_0x17551f,_0x1df882,_0x2692c4,_0x1da7cd),this['_registerOtherFormulas'](_0x18c240,_0x374a58,_0x1da7cd),this[_0x3cb381(0x128)](_0x1da7cd);for(let _0x2d8830=0x0,_0x12f2c3=_0x1da7cd[_0x3cb381(0xc3)];_0x2d8830<_0x12f2c3;_0x2d8830++){const _0x197c7d=_0x1da7cd[_0x2d8830],_0x25167d=u[_0x3cb381(0xba)](_0x197c7d['unitId'],_0x197c7d[_0x3cb381(0xee)],this[_0x3cb381(0x164)],this[_0x3cb381(0x13b)],this['_currentConfigService']);if(_0x197c7d[_0x3cb381(0xbf)]=this['_includeTree'](_0x197c7d,_0x25167d),_0x197c7d[_0x3cb381(0x12e)])continue;this['_runtimeService'][_0x3cb381(0xf6)](_0x197c7d[_0x3cb381(0xc5)],_0x197c7d[_0x3cb381(0xcb)],_0x197c7d[_0x3cb381(0x123)],_0x197c7d[_0x3cb381(0xf2)],_0x197c7d[_0x3cb381(0xce)],_0x197c7d['unitId']);const _0x580ffe=await this[_0x3cb381(0xb5)]({'node':_0x25167d,'refOffsetX':_0x197c7d[_0x3cb381(0xf9)],'refOffsetY':_0x197c7d[_0x3cb381(0xf3)]});_0x197c7d[_0x3cb381(0x104)](_0x580ffe);}for(let _0x2d5b1f=0x0,_0x5ea659=_0x1da7cd[_0x3cb381(0xc3)];_0x2d5b1f<_0x5ea659;_0x2d5b1f++){const _0x46df2f=_0x1da7cd[_0x2d5b1f];_0x46df2f[_0x3cb381(0xea)]||this[_0x3cb381(0x155)][_0x3cb381(0x11b)](_0x46df2f);}return _0x1da7cd;}['_getFeatureFormulaTree'](_0x4548ec,_0x395fff,_0x3a7891){const _0x3f36bf=_0x25a69f,{unitId:_0x5ad520,subUnitId:_0x15cd4a,dependencyRanges:_0x5016c8,getDirtyData:_0x373b0b}=_0x3a7891,_0x26b009=_0x395fff||u[_0x3f36bf(0x114)](this[_0x3f36bf(0x155)]),_0x4fc0ba=new u[(_0x3f36bf(0xbb))](_0x26b009);_0x4fc0ba['unitId']=_0x5ad520,_0x4fc0ba[_0x3f36bf(0xce)]=_0x15cd4a,_0x4fc0ba[_0x3f36bf(0xd2)]=_0x5016c8,_0x4fc0ba[_0x3f36bf(0xad)]=_0x373b0b;const _0x2776cf=_0x373b0b(this[_0x3f36bf(0x153)][_0x3f36bf(0xad)](),this['_runtimeService'][_0x3f36bf(0xbe)]()),_0x33d27d=this['_convertDirtyRangesToUnitRange'](_0x2776cf[_0x3f36bf(0x140)]);return _0x4fc0ba[_0x3f36bf(0x103)]=_0x33d27d,_0x4fc0ba[_0x3f36bf(0x14b)]=_0x4548ec,_0x4fc0ba[_0x3f36bf(0x102)]=u[_0x3f36bf(0x122)][_0x3f36bf(0xf5)],this[_0x3f36bf(0x155)][_0x3f36bf(0xd0)](_0x5ad520,_0x15cd4a,_0x4548ec,_0x4fc0ba),this[_0x3f36bf(0x10a)][_0x3f36bf(0x135)](_0x4fc0ba[_0x3f36bf(0x113)],_0x4fc0ba),this[_0x3f36bf(0x155)][_0x3f36bf(0x12c)](_0x3a7891['unitId'],_0x3a7891[_0x3f36bf(0xce)],_0x4548ec)&&(_0x4fc0ba[_0x3f36bf(0xea)]=!0x0),_0x4fc0ba;}[_0x25a69f(0x13d)](_0xb034a6,_0xa2433f,_0x1a3db3){const _0x581bbb=_0x25a69f;for(const _0x2d544a of _0xa2433f){const _0x12b207=_0xb034a6[_0x2d544a];if(_0x12b207==null)continue;const _0x404a7a=Object['keys'](_0x12b207);for(const _0x23ef27 of _0x404a7a){const _0x91c13=_0x12b207[_0x23ef27];if(_0x91c13==null)continue;const _0x490a00=Object[_0x581bbb(0xc7)](_0x91c13);for(const _0x280b46 of _0x490a00){const _0x5cf538=this[_0x581bbb(0x155)][_0x581bbb(0x14f)](_0x280b46),_0x4b8300=_0x91c13[_0x280b46],{f:_0x16a0c5,ranges:_0x146acd}=_0x4b8300;let _0x7c7e85=!0x1;_0x5cf538&&(_0x7c7e85=!0x0);const {firstRow:_0x3af597,firstColumn:_0x27ea7}=this[_0x581bbb(0x10b)](_0x146acd),_0x7a6980=this['_dependencyManagerService'][_0x581bbb(0xa6)](_0x2d544a,_0x23ef27,_0x280b46),_0x25ed82=(_0x7a6980==null?void 0x0:_0x7a6980[_0x581bbb(0x138)](0x0,0x0))||u[_0x581bbb(0x114)](this[_0x581bbb(0x155)]),_0x59ceee=new u[(_0x581bbb(0xbb))](_0x25ed82);for(let _0x5ea1e9=0x0;_0x5ea1e9<_0x146acd[_0x581bbb(0xc3)];_0x5ea1e9++){const _0x33a3e4=_0x146acd[_0x5ea1e9],{startRow:_0xafe328,startColumn:_0x29d25a,endRow:_0x1b76c7,endColumn:_0x2361c1}=_0x33a3e4;for(let _0x4a05d6=_0xafe328;_0x4a05d6<=_0x1b76c7;_0x4a05d6++)for(let _0x465be5=_0x29d25a;_0x465be5<=_0x2361c1;_0x465be5++){const _0x18c9a8=_0x465be5-_0x27ea7,_0x31cf82=_0x4a05d6-_0x3af597;if(_0x18c9a8===0x0&&_0x31cf82===0x0){_0x59ceee[_0x581bbb(0xee)]=_0x16a0c5,_0x59ceee[_0x581bbb(0xb2)]=_0x2d544a,_0x59ceee[_0x581bbb(0xce)]=_0x23ef27,_0x59ceee[_0x581bbb(0x118)]=_0x280b46,_0x59ceee[_0x581bbb(0x102)]=u[_0x581bbb(0x122)][_0x581bbb(0xd1)],_0x59ceee[_0x581bbb(0xea)]=_0x7c7e85,_0x1a3db3[_0x581bbb(0xd9)](_0x59ceee),this[_0x581bbb(0x10a)][_0x581bbb(0x135)](_0x59ceee[_0x581bbb(0x113)],_0x59ceee),this[_0x581bbb(0x155)][_0x581bbb(0xbd)](_0x2d544a,_0x23ef27,_0x280b46,_0x59ceee),this[_0x581bbb(0x155)][_0x581bbb(0x11d)](_0x59ceee);continue;}const _0x3ed6f0=new u[(_0x581bbb(0x14a))]();_0x3ed6f0[_0x581bbb(0x113)]=(_0x7a6980==null?void 0x0:_0x7a6980[_0x581bbb(0x138)](_0x18c9a8,_0x31cf82))||u[_0x581bbb(0x114)](this[_0x581bbb(0x155)]),_0x3ed6f0['refTree']=_0x59ceee,_0x3ed6f0['refOffsetX']=_0x18c9a8,_0x3ed6f0[_0x581bbb(0xf3)]=_0x31cf82,_0x3ed6f0[_0x581bbb(0xea)]=_0x7c7e85,this[_0x581bbb(0x155)][_0x581bbb(0xbd)](_0x2d544a,_0x23ef27,_0x280b46,_0x3ed6f0),this[_0x581bbb(0x155)][_0x581bbb(0x11d)](_0x3ed6f0),_0x1a3db3[_0x581bbb(0xd9)](_0x3ed6f0),this[_0x581bbb(0x10a)][_0x581bbb(0x135)](_0x3ed6f0['treeId'],_0x3ed6f0);}}this[_0x581bbb(0x155)][_0x581bbb(0x133)](_0x280b46);}}}}[_0x25a69f(0x159)](_0x1ec93e,_0x2552df,_0x4adced,_0x443758){const _0x43f7e0=_0x25a69f;for(const _0x2ddd24 of _0x1ec93e){const _0x19a16f=_0x2552df[_0x2ddd24];if(_0x19a16f==null)continue;const _0x303095=Object['keys'](_0x19a16f);for(const _0x217441 of _0x303095){const _0x5be3fc=new v[(_0x43f7e0(0x120))](_0x19a16f[_0x217441]||{}),_0x1325e1=new Map();_0x5be3fc[_0x43f7e0(0xc0)]((_0x6c1480,_0x60ddfc,_0x438c02)=>{const _0x32efc9=_0x43f7e0;if(_0x438c02==null)return!0x0;const {x:_0x138dd5=0x0,y:_0x43a153=0x0,si:_0x28c0ac}=_0x438c02;if(!(_0x138dd5===0x0&&_0x43a153===0x0&&_0x28c0ac!=null))return!0x0;const _0x3792be=this['_createFDtree'](_0x2ddd24,_0x217441,_0x6c1480,_0x60ddfc,_0x4adced,_0x438c02),_0x390a5e=this[_0x32efc9(0x155)]['getFormulaDependency'](_0x2ddd24,_0x217441,_0x6c1480,_0x60ddfc);_0x390a5e!=null?_0x3792be[_0x32efc9(0x113)]=_0x390a5e:(this[_0x32efc9(0x155)][_0x32efc9(0xb6)](_0x2ddd24,_0x217441,_0x6c1480,_0x60ddfc,_0x3792be),this['_dependencyManagerService'][_0x32efc9(0x11d)](_0x3792be)),_0x1325e1[_0x32efc9(0x135)](_0x28c0ac,_0x3792be),_0x443758['push'](_0x3792be),this[_0x32efc9(0x10a)]['set'](_0x3792be[_0x32efc9(0x113)],_0x3792be);}),_0x5be3fc['forValue']((_0x50a9a9,_0x1c7845,_0x559291)=>{const _0x459178=_0x43f7e0;if(_0x559291==null)return!0x0;const {x:_0x151687=0x0,y:_0xa8334b=0x0,si:_0x21cc49}=_0x559291;if(_0x151687===0x0&&_0xa8334b===0x0&&_0x21cc49!=null)return!0x0;let _0x4736e6;if(_0x21cc49&&_0x1325e1['has'](_0x21cc49)){const _0x19731a=_0x1325e1[_0x459178(0xd3)](_0x21cc49);_0x4736e6=this[_0x459178(0xc9)](_0x19731a,_0x559291);}else _0x4736e6=this[_0x459178(0xcd)](_0x2ddd24,_0x217441,_0x50a9a9,_0x1c7845,_0x4adced,_0x559291);const _0x1cad6d=this[_0x459178(0x155)][_0x459178(0xfa)](_0x2ddd24,_0x217441,_0x50a9a9,_0x1c7845);_0x1cad6d!=null?_0x4736e6[_0x459178(0x113)]=_0x1cad6d:(this[_0x459178(0x155)]['addFormulaDependency'](_0x2ddd24,_0x217441,_0x50a9a9,_0x1c7845,_0x4736e6),this['_dependencyManagerService']['addFormulaDependencyByDefinedName'](_0x4736e6)),_0x443758[_0x459178(0xd9)](_0x4736e6),this[_0x459178(0x10a)][_0x459178(0x135)](_0x4736e6['treeId'],_0x4736e6);}),_0x1325e1[_0x43f7e0(0xe1)]();}}}[_0x25a69f(0xcd)](_0x48bbbb,_0x5c622d,_0x36ff7e,_0x56ea07,_0x5270ef,_0x16044b){const _0x5f049a=_0x25a69f,{f:_0x5b8cde,x:_0x55363b=0x0,y:_0x516a91=0x0}=_0x16044b,_0x48192b=new u[(_0x5f049a(0xbb))](u[_0x5f049a(0x114)](this[_0x5f049a(0x155)])),_0x1c646a=_0x5270ef[_0x48bbbb][_0x5c622d];return _0x48192b[_0x5f049a(0xee)]=_0x5b8cde,_0x48192b[_0x5f049a(0xb2)]=_0x48bbbb,_0x48192b[_0x5f049a(0xce)]=_0x5c622d,_0x48192b[_0x5f049a(0xc5)]=_0x36ff7e,_0x48192b[_0x5f049a(0xcb)]=_0x56ea07,_0x48192b[_0x5f049a(0x123)]=_0x1c646a[_0x5f049a(0x123)],_0x48192b[_0x5f049a(0xf2)]=_0x1c646a['columnCount'],_0x48192b;}[_0x25a69f(0xe8)](){const _0x1ebeaa=_0x25a69f,_0x3390f4=[],_0x16a487=new Set(),_0x574564=this[_0x1ebeaa(0x153)][_0x1ebeaa(0xd4)](),_0x579b9b=this[_0x1ebeaa(0x153)][_0x1ebeaa(0x154)](),_0xe979b8=this['_dependencyManagerService']['searchDependency'](_0x579b9b);for(const [_0x458575,_0x1e24ff]of this[_0x1ebeaa(0x10a)])(_0x574564||_0x1e24ff[_0x1ebeaa(0xbf)]||_0x1e24ff['dependencySheetName'](this[_0x1ebeaa(0x153)][_0x1ebeaa(0xc8)]())||_0xe979b8[_0x1ebeaa(0x105)](_0x458575)&&!_0x1e24ff[_0x1ebeaa(0x145)](this[_0x1ebeaa(0x153)]['getExcludedRange']()))&&!_0x16a487[_0x1ebeaa(0x105)](_0x458575)&&(_0x3390f4[_0x1ebeaa(0xd9)](_0x1e24ff),_0x16a487['add'](_0x458575));for(const [_0x4ef06d,_0x4cbf21]of this[_0x1ebeaa(0x10a)])_0x4cbf21[_0x1ebeaa(0x12e)]||(_0x4cbf21[_0x1ebeaa(0xd2)][_0x1ebeaa(0xc3)]=0x0);return _0x3390f4;}*[_0x25a69f(0x119)](_0x3bc156,_0x7f561e){const _0x2b498f=_0x25a69f,_0x461fae=_0x3bc156,_0x4a5249=new Set();for(;_0x461fae[_0x2b498f(0xc3)]>0x0;){const _0x23da8d=_0x461fae[_0x2b498f(0xe7)]();if(_0x4a5249[_0x2b498f(0xe1)](),_0x23da8d===void 0x0||_0x23da8d['isSkip']())continue;if(_0x23da8d[_0x2b498f(0x134)]()){yield _0x23da8d,_0x23da8d['setSkip'](),_0x7f561e[_0x2b498f(0x126)](_0x23da8d['treeId']);continue;}const _0x2f1df4=this['_dependencyManagerService']['searchDependency'](_0x23da8d[_0x2b498f(0x163)](),_0x7f561e);for(const _0x50e16f of _0x2f1df4){const _0x5ebe16=this[_0x2b498f(0x10a)][_0x2b498f(0xd3)](_0x50e16f);if(!_0x5ebe16)throw new Error(_0x2b498f(0x10e));_0x5ebe16[_0x2b498f(0x134)]()||_0x23da8d[_0x2b498f(0x10c)]()||_0x4a5249[_0x2b498f(0x126)](_0x5ebe16);}if(_0x2f1df4[_0x2b498f(0xe1)](),_0x4a5249[_0x2b498f(0xcc)]===0x0)yield _0x23da8d,_0x23da8d[_0x2b498f(0x130)](),_0x7f561e[_0x2b498f(0x126)](_0x23da8d['treeId']);else{_0x23da8d['setAdded'](),_0x461fae[_0x2b498f(0xd9)](_0x23da8d);for(const _0x115af2 of _0x4a5249)_0x461fae[_0x2b498f(0xd9)](_0x115af2);}}_0x461fae[_0x2b498f(0xc3)]=0x0,_0x4a5249[_0x2b498f(0xe1)]();}[_0x25a69f(0x15f)](_0x4da50d){const _0x1bbf67=[],_0x2f1a0f=new Set();for(const _0x2d1f45 of this['_traverse'](_0x4da50d,_0x2f1a0f))_0x1bbf67['push'](_0x2d1f45);return _0x1bbf67;}}class Y extends u[_0x25a69f(0x143)]{async[_0x25a69f(0x125)](_0x5a09e2=!0x1){const _0x452c02=_0x25a69f;_0x5a09e2?this[_0x452c02(0xe5)]['setFormulaExecuteStage'](u[_0x452c02(0x15d)][_0x452c02(0x121)]):this[_0x452c02(0xe5)][_0x452c02(0xa7)](u[_0x452c02(0x15d)][_0x452c02(0xc4)]),this[_0x452c02(0xde)][_0x452c02(0x151)](this['_runtimeService'][_0x452c02(0x150)]());const _0x126407=await this[_0x452c02(0x152)][_0x452c02(0xb4)](),_0x154403=this['_interpreter'];_0x5a09e2?(this[_0x452c02(0xe5)][_0x452c02(0xa7)](u[_0x452c02(0x15d)][_0x452c02(0x147)]),this[_0x452c02(0xe5)][_0x452c02(0xd8)](_0x126407[_0x452c02(0xc3)])):(this[_0x452c02(0xe5)][_0x452c02(0xa7)](u[_0x452c02(0x15d)][_0x452c02(0xb7)]),this[_0x452c02(0xe5)][_0x452c02(0x15c)](_0x126407[_0x452c02(0xc3)])),this[_0x452c02(0xde)][_0x452c02(0x151)](this[_0x452c02(0xe5)][_0x452c02(0x150)]());let _0x30cd86=[];const _0x14d20e=this['_configService'][_0x452c02(0x136)](u[_0x452c02(0x149)]),_0x50eac9=(_0x14d20e==null?void 0x0:_0x14d20e['intervalCount'])||u[_0x452c02(0xb3)];let _0x2c1f20=0x0;const _0x1ea78d=_0x126407[_0x452c02(0xc3)];for(;_0x126407[_0x452c02(0xc3)]>0x0;){const _0x459214=_0x126407[_0x452c02(0xe7)](),_0x407bfd={'node':u[_0x452c02(0xba)](_0x459214[_0x452c02(0xb2)],_0x459214[_0x452c02(0xee)],this[_0x452c02(0x164)],this[_0x452c02(0x13b)],this[_0x452c02(0x153)]),'refOffsetX':_0x459214['refOffsetX'],'refOffsetY':_0x459214[_0x452c02(0xf3)]},_0x53e514=_0x459214[_0x452c02(0xad)];if(_0x2c1f20%_0x50eac9===0x0&&(await new Promise(_0x4350fe=>{const _0x4e8a81=_0x452c02,_0xfb9ce8=v[_0x4e8a81(0x109)](_0x4350fe);_0x30cd86[_0x4e8a81(0xd9)](_0xfb9ce8);}),_0x5a09e2?(this['_runtimeService'][_0x452c02(0xa7)](u[_0x452c02(0x15d)][_0x452c02(0x13c)]),this['_runtimeService'][_0x452c02(0xe6)](_0x2c1f20+0x1)):(this[_0x452c02(0xe5)][_0x452c02(0xa7)](u[_0x452c02(0x15d)][_0x452c02(0x112)]),this['_runtimeService'][_0x452c02(0x10d)](_0x2c1f20+0x1)),this['_executionInProgressListener$'][_0x452c02(0x151)](this[_0x452c02(0xe5)][_0x452c02(0x150)]()),this[_0x452c02(0xe5)][_0x452c02(0xd5)]()||_0x407bfd==null&&_0x53e514==null)){this['_runtimeService'][_0x452c02(0xa7)](u[_0x452c02(0x15d)][_0x452c02(0xfc)]),this[_0x452c02(0xe5)][_0x452c02(0x161)](),this[_0x452c02(0x115)][_0x452c02(0x151)](this[_0x452c02(0xe5)][_0x452c02(0xbe)]());return;}this[_0x452c02(0xe5)][_0x452c02(0xf6)](_0x459214[_0x452c02(0xc5)],_0x459214['column'],_0x459214[_0x452c02(0x123)],_0x459214['columnCount'],_0x459214['subUnitId'],_0x459214[_0x452c02(0xb2)]);let _0x1114ee;if(_0x53e514!=null&&_0x459214[_0x452c02(0x14b)]!=null){const {runtimeCellData:_0x4b5ce8,dirtyRanges:_0x1ce649}=_0x53e514(this[_0x452c02(0x153)][_0x452c02(0xad)](),this[_0x452c02(0xe5)][_0x452c02(0xbe)]());this[_0x452c02(0xe5)][_0x452c02(0xb8)](_0x459214['featureId'],_0x4b5ce8),this[_0x452c02(0xe5)]['setRuntimeFeatureRange'](_0x459214[_0x452c02(0x14b)],_0x1ce649);}else _0x407bfd!=null&&(_0x154403[_0x452c02(0xab)](_0x407bfd[_0x452c02(0xdf)])?_0x1114ee=await _0x154403[_0x452c02(0x162)](_0x407bfd):_0x1114ee=_0x154403[_0x452c02(0x110)](_0x407bfd),_0x459214['formulaId']!=null?this['_runtimeService'][_0x452c02(0x12a)](_0x459214[_0x452c02(0x118)],_0x459214['refOffsetX'],_0x459214['refOffsetY'],_0x1114ee):this[_0x452c02(0xe5)][_0x452c02(0x132)](_0x1114ee));_0x2c1f20++;}return _0x30cd86[_0x452c02(0xed)](_0x4742a9=>_0x4742a9()),_0x30cd86=[],_0x1ea78d>0x0?this[_0x452c02(0xe5)][_0x452c02(0xc1)]():_0x5a09e2||this[_0x452c02(0xe5)][_0x452c02(0x131)](),this[_0x452c02(0xe5)][_0x452c02(0xbe)]();}}class B extends u['DependencyManagerBaseService']{constructor(){const _0x244ab3=_0x25a69f;super(...arguments),S(this,_0x244ab3(0xf4),new Map()),S(this,'_dependencyRTreeCache',new v[(_0x244ab3(0xa8))](!0x0));}[_0x25a69f(0x127)](){const _0x1fc09e=_0x25a69f;this[_0x1fc09e(0xfb)]['clear'](),this[_0x1fc09e(0xf1)][_0x1fc09e(0xe1)](),this[_0x1fc09e(0xeb)][_0x1fc09e(0xe1)](),this[_0x1fc09e(0x13e)]['clear'](),this[_0x1fc09e(0xf4)][_0x1fc09e(0xe1)](),this[_0x1fc09e(0x137)](),this[_0x1fc09e(0xe2)][_0x1fc09e(0xe1)]();}[_0x25a69f(0xbd)](_0x538154,_0x546951,_0x36afb7,_0x55f953){const _0x2e0b9e=_0x25a69f;this['_otherFormulaData'][_0x2e0b9e(0x105)](_0x538154)||this['_otherFormulaData'][_0x2e0b9e(0x135)](_0x538154,new Map());const _0x542abc=this['_otherFormulaData']['get'](_0x538154);_0x542abc[_0x2e0b9e(0x105)](_0x546951)||_0x542abc['set'](_0x546951,new Map());const _0x8c2075=_0x542abc['get'](_0x546951);_0x8c2075[_0x2e0b9e(0x105)](_0x36afb7)||_0x8c2075[_0x2e0b9e(0x135)](_0x36afb7,new v[(_0x2e0b9e(0x120))]()),_0x8c2075[_0x2e0b9e(0xd3)](_0x36afb7)[_0x2e0b9e(0xec)](_0x55f953[_0x2e0b9e(0xf9)],_0x55f953[_0x2e0b9e(0xf3)],_0x55f953[_0x2e0b9e(0x113)]);}[_0x25a69f(0x10f)](_0x47ce67,_0x7ba126,_0x39e49b){const _0x4deff5=_0x25a69f,_0x1a6a40=this[_0x4deff5(0xfb)][_0x4deff5(0xd3)](_0x47ce67);if(_0x1a6a40&&_0x1a6a40[_0x4deff5(0x105)](_0x7ba126)){const _0x419dcd=_0x1a6a40[_0x4deff5(0xd3)](_0x7ba126);_0x39e49b[_0x4deff5(0xed)](_0x4ef624=>{const _0x1fae06=_0x4deff5,_0x55e59f=_0x419dcd[_0x1fae06(0xd3)](_0x4ef624);_0x55e59f!=null&&(_0x55e59f[_0x1fae06(0xc0)]((_0x1eb559,_0x3773c6,_0x3e26e0)=>{const _0x22b337=_0x1fae06;this[_0x22b337(0x158)](_0x3e26e0),this['_removeAllTreeMap'](_0x3e26e0);}),_0x419dcd[_0x1fae06(0xe4)](_0x4ef624),this[_0x1fae06(0xe2)]['delete'](_0x4ef624));}),_0x419dcd['size']===0x0&&_0x1a6a40[_0x4deff5(0xe4)](_0x7ba126),_0x1a6a40[_0x4deff5(0xcc)]===0x0&&this[_0x4deff5(0xfb)][_0x4deff5(0xe4)](_0x47ce67);}}[_0x25a69f(0x100)](_0x534163,_0x58152f){const _0x1b24e4=_0x25a69f,_0xa070f5=this[_0x1b24e4(0xfb)]['get'](_0x534163);if(_0x58152f&&_0xa070f5&&_0xa070f5[_0x1b24e4(0x105)](_0x58152f)){const _0x3dfcc5=_0xa070f5['get'](_0x58152f);this['_removeDependencyRTreeCacheById'](_0x534163,_0x58152f);for(const _0x247b5a of _0x3dfcc5[_0x1b24e4(0xc7)]()){const _0x146467=_0x3dfcc5[_0x1b24e4(0xd3)](_0x247b5a);_0x146467!=null&&(_0x146467[_0x1b24e4(0xc0)]((_0x4cfd4d,_0x1b19af,_0x1ced88)=>{const _0x402e0c=_0x1b24e4;this[_0x402e0c(0xf4)][_0x402e0c(0xd3)](_0x1ced88)&&this[_0x402e0c(0x14d)](_0x1ced88);}),this[_0x1b24e4(0xe2)][_0x1b24e4(0xe4)](_0x247b5a));}_0x3dfcc5[_0x1b24e4(0xe1)]();}else{if(_0xa070f5){for(const _0x22a04c of _0xa070f5[_0x1b24e4(0xc7)]()){const _0xab7d75=_0xa070f5[_0x1b24e4(0xd3)](_0x22a04c);this[_0x1b24e4(0xdb)](_0x534163,_0x22a04c);for(const _0x3a2509 of _0xab7d75[_0x1b24e4(0xc7)]()){const _0x4c359f=_0xab7d75[_0x1b24e4(0xd3)](_0x3a2509);_0x4c359f!=null&&(_0x4c359f[_0x1b24e4(0xc0)]((_0x13f04d,_0x26b4a5,_0x25bcdb)=>{const _0xd68473=_0x1b24e4;this['_allTreeMap']['get'](_0x25bcdb)&&this[_0xd68473(0x14d)](_0x25bcdb);}),this[_0x1b24e4(0xe2)][_0x1b24e4(0xe4)](_0x3a2509));}}this[_0x1b24e4(0xfb)][_0x1b24e4(0xe4)](_0x534163);}}}[_0x25a69f(0xd0)](_0x4d041,_0x12fe0a,_0x36252b,_0x277f2e){const _0x1ec73a=_0x25a69f;this[_0x1ec73a(0xf1)][_0x1ec73a(0x105)](_0x4d041)||this[_0x1ec73a(0xf1)][_0x1ec73a(0x135)](_0x4d041,new Map());const _0x563296=this[_0x1ec73a(0xf1)]['get'](_0x4d041);_0x563296[_0x1ec73a(0x105)](_0x12fe0a)||_0x563296[_0x1ec73a(0x135)](_0x12fe0a,new Map()),_0x563296[_0x1ec73a(0xd3)](_0x12fe0a)['set'](_0x36252b,_0x277f2e['treeId']);}[_0x25a69f(0x146)](_0x3de185,_0x2428cf,_0x49773e){const _0x1350c5=_0x25a69f,_0x206b0f=this[_0x1350c5(0xf1)][_0x1350c5(0xd3)](_0x3de185);if(_0x206b0f&&_0x206b0f[_0x1350c5(0x105)](_0x2428cf)){const _0x1c0ce7=_0x206b0f[_0x1350c5(0xd3)](_0x2428cf);_0x49773e[_0x1350c5(0xed)](_0x1bf84a=>{const _0x135f1c=_0x1350c5,_0x427826=_0x1c0ce7[_0x135f1c(0xd3)](_0x1bf84a);_0x427826!=null&&(this[_0x135f1c(0x158)](_0x427826),_0x1c0ce7[_0x135f1c(0xe4)](_0x1bf84a),this[_0x135f1c(0x14d)](_0x427826));});}}['clearFeatureFormulaDependency'](_0x4349db,_0x177aee){const _0x1dbe64=_0x25a69f,_0x2b147e=this[_0x1dbe64(0xf1)][_0x1dbe64(0xd3)](_0x4349db);if(_0x177aee&&_0x2b147e&&_0x2b147e[_0x1dbe64(0x105)](_0x177aee)){const _0x446631=_0x2b147e[_0x1dbe64(0xd3)](_0x177aee);this[_0x1dbe64(0xdb)](_0x4349db,_0x177aee),_0x446631[_0x1dbe64(0xed)](_0x393862=>{const _0x3042d2=_0x1dbe64;_0x393862!=null&&this[_0x3042d2(0x14d)](_0x393862);}),_0x446631[_0x1dbe64(0xe1)]();}else _0x2b147e&&(_0x2b147e[_0x1dbe64(0xed)]((_0x32a304,_0x4565b6)=>{const _0x43eca1=_0x1dbe64;this[_0x43eca1(0xdb)](_0x4349db,_0x4565b6),_0x32a304[_0x43eca1(0xed)](_0x295f81=>{const _0x3e5323=_0x43eca1;_0x295f81!=null&&this[_0x3e5323(0x14d)](_0x295f81);});}),this['_featureFormulaData']['delete'](_0x4349db));}[_0x25a69f(0xb6)](_0xe635fc,_0x19ba42,_0x37df36,_0x1e1d21,_0x17c6bb){const _0x3450d9=_0x25a69f;this[_0x3450d9(0xeb)][_0x3450d9(0x105)](_0xe635fc)||this[_0x3450d9(0xeb)][_0x3450d9(0x135)](_0xe635fc,new Map());const _0x3ff0ac=this['_formulaData'][_0x3450d9(0xd3)](_0xe635fc);_0x3ff0ac[_0x3450d9(0x105)](_0x19ba42)||_0x3ff0ac[_0x3450d9(0x135)](_0x19ba42,new v['ObjectMatrix']()),_0x3ff0ac[_0x3450d9(0xd3)](_0x19ba42)[_0x3450d9(0xec)](_0x37df36,_0x1e1d21,_0x17c6bb['treeId']);}['removeFormulaDependency'](_0x113b29,_0x2c2afc,_0x5f5175,_0x345f13){const _0x5cc074=_0x25a69f,_0x1ae207=this[_0x5cc074(0xeb)][_0x5cc074(0xd3)](_0x113b29);if(_0x1ae207&&_0x1ae207['has'](_0x2c2afc)){const _0x47a862=_0x1ae207[_0x5cc074(0xd3)](_0x2c2afc),_0x209bf7=_0x47a862[_0x5cc074(0x138)](_0x5f5175,_0x345f13);if(_0x209bf7==null)return;this['_removeDependencyRTreeCache'](_0x209bf7),_0x47a862[_0x5cc074(0xae)](_0x5f5175,_0x345f13),this[_0x5cc074(0x14d)](_0x209bf7);}}[_0x25a69f(0xd6)](_0x399c79,_0x2730bd){const _0x38f923=_0x25a69f,_0x9420c7=this['_formulaData'][_0x38f923(0xd3)](_0x399c79);if(_0x2730bd&&_0x9420c7&&_0x9420c7[_0x38f923(0x105)](_0x2730bd)){const _0x2a948f=_0x9420c7[_0x38f923(0xd3)](_0x2730bd);this['_removeDependencyRTreeCacheById'](_0x399c79,_0x2730bd),_0x2a948f[_0x38f923(0xc0)]((_0x46857b,_0x106231,_0x35c70f)=>{if(_0x35c70f==null)return!0x0;this['_removeAllTreeMap'](_0x35c70f);}),_0x2a948f[_0x38f923(0x127)]();}else _0x9420c7&&(_0x9420c7['forEach']((_0x2479e7,_0x271c34)=>{const _0x5dd530=_0x38f923;this[_0x5dd530(0xdb)](_0x399c79,_0x271c34),_0x2479e7[_0x5dd530(0xc0)]((_0xd7a849,_0x492344,_0xf3fc8d)=>{if(_0xf3fc8d==null)return!0x0;this['_removeAllTreeMap'](_0xf3fc8d);});}),this[_0x38f923(0xeb)][_0x38f923(0xe4)](_0x399c79));}[_0x25a69f(0x158)](_0x380f5d){const _0x47cd02=_0x25a69f;if(_0x380f5d==null)return;const _0x132674=this[_0x47cd02(0xf4)][_0x47cd02(0xd3)](_0x380f5d);if(_0x132674){const _0x16f315=[];for(const [_0x5c4705,_0x418fcb]of _0x132674)for(const [_0x10c10a,_0x286cf4]of _0x418fcb)_0x16f315[_0x47cd02(0xd9)]({'unitId':_0x5c4705,'sheetId':_0x10c10a,'range':_0x286cf4,'id':_0x380f5d});this[_0x47cd02(0x13e)]['bulkRemove'](_0x16f315);}}[_0x25a69f(0xdd)](_0xb2a3e3,_0x395349){const _0x50fbc6=_0x25a69f,_0xe36b7=this[_0x50fbc6(0x11e)][_0x50fbc6(0xd3)](_0xb2a3e3);if(_0xe36b7){const _0x3b31af=_0xe36b7[_0x50fbc6(0xd3)](_0x395349);if(_0x3b31af){for(const _0x26b07d of _0x3b31af)this[_0x50fbc6(0x158)](_0x26b07d),this['_removeAllTreeMap'](_0x26b07d);_0x3b31af[_0x50fbc6(0xe1)]();}}}[_0x25a69f(0xf0)](){const _0x57724=_0x25a69f;this[_0x57724(0x13e)][_0x57724(0xf0)]();}[_0x25a69f(0xb0)](){const _0x3e44f0=_0x25a69f;this[_0x3e44f0(0x13e)]['closeKdTree']();}[_0x25a69f(0x14d)](_0x3e9e74){const _0x57c873=_0x25a69f;_0x3e9e74!=null&&this[_0x57c873(0xf4)][_0x57c873(0xe4)](_0x3e9e74);}[_0x25a69f(0x157)](_0x3c770b){const _0x571d40=_0x25a69f;var _0x2fee9f,_0x2f01e3;const _0x4291da=_0x3c770b['rangeList'];let _0x2e38b0=this[_0x571d40(0xf4)][_0x571d40(0xd3)](_0x3c770b[_0x571d40(0x113)]);for(let _0x408e9f=0x0;_0x408e9f<_0x4291da['length'];_0x408e9f++){const _0x4d401f=_0x4291da[_0x408e9f];let {unitId:_0x167b62,sheetId:_0x92bb50,range:_0x4871de}=_0x4d401f;_0x2e38b0||(_0x2e38b0=new Map(),this[_0x571d40(0xf4)][_0x571d40(0x135)](_0x3c770b['treeId'],_0x2e38b0)),_0x2e38b0[_0x571d40(0x105)](_0x167b62)||_0x2e38b0[_0x571d40(0x135)](_0x167b62,new Map());const _0x46b849=(_0x2fee9f=_0x2e38b0==null?void 0x0:_0x2e38b0[_0x571d40(0xd3)](_0x167b62))==null?void 0x0:_0x2fee9f[_0x571d40(0xd3)](_0x92bb50);_0x46b849&&(_0x4871de={'startRow':Math[_0x571d40(0xac)](_0x4871de[_0x571d40(0x15b)],_0x46b849[_0x571d40(0x15b)]),'startColumn':Math[_0x571d40(0xac)](_0x4871de[_0x571d40(0x12b)],_0x46b849[_0x571d40(0x12b)]),'endRow':Math['max'](_0x4871de[_0x571d40(0x124)],_0x46b849['endRow']),'endColumn':Math[_0x571d40(0x129)](_0x4871de['endColumn'],_0x46b849['endColumn'])}),(_0x2f01e3=_0x2e38b0['get'](_0x167b62))==null||_0x2f01e3['set'](_0x92bb50,_0x4871de);}}}var j=Object[_0x25a69f(0x12f)],q=Object[_0x25a69f(0x148)],K=(_0x462bcb,_0x2fd839,_0x2b0eea,_0x5afcde)=>{for(var _0x2cb297=_0x5afcde>0x1?void 0x0:_0x5afcde?q(_0x2fd839,_0x2b0eea):_0x2fd839,_0x479812=_0x462bcb['length']-0x1,_0x1749da;_0x479812>=0x0;_0x479812--)(_0x1749da=_0x462bcb[_0x479812])&&(_0x2cb297=(_0x5afcde?_0x1749da(_0x2fd839,_0x2b0eea,_0x2cb297):_0x1749da(_0x2cb297))||_0x2cb297);return _0x5afcde&&_0x2cb297&&j(_0x2fd839,_0x2b0eea,_0x2cb297),_0x2cb297;};exports['UniverProFormulaEnginePlugin']=class extends u[_0x25a69f(0xaf)]{[_0x25a69f(0x142)](){const _0x8c9c3=_0x25a69f;var _0xc167dd,_0xfcd784;this[_0x8c9c3(0xc2)]()?(_0xc167dd=this['_config'])!=null&&_0xc167dd[_0x8c9c3(0xb1)]||[[u['ICalculateFormulaService'],{'useClass':Y}],[u[_0x8c9c3(0x106)],{'useClass':B}],[u[_0x8c9c3(0x11c)],{'useClass':V}]]['forEach'](_0x15b6a3=>this[_0x8c9c3(0xdc)][_0x8c9c3(0x126)](_0x15b6a3)):(_0xfcd784=this[_0x8c9c3(0xe9)])!=null&&_0xfcd784[_0x8c9c3(0xb1)]||[[u['ICalculateFormulaService'],{'useClass':u['CalculateFormulaService']}],[u[_0x8c9c3(0x106)],{'useClass':u[_0x8c9c3(0xd7)]}],[u[_0x8c9c3(0x11c)],{'useClass':u['FormulaDependencyGenerator']}]]['forEach'](_0x5a24de=>this[_0x8c9c3(0xdc)][_0x8c9c3(0x126)](_0x5a24de));}['_initTimeValid'](){const _0x7fa7cd=_0x25a69f;var _0x23a092;const _0x521405=(_0x23a092=this[_0x7fa7cd(0x15e)][_0x7fa7cd(0x136)](O['LS_CONFIG_KEY']))!=null?_0x23a092:{},{ls:_0x105043,pbk:_0x5490b0,tvld:_0x39667c}=_0x521405;if(!_0x105043||!_0x5490b0)return!0x1;const _0x43f7cb=O[_0x7fa7cd(0x13a)](k,b);return new Function(_0x7fa7cd(0xe0)+_0x43f7cb)()(_0x105043,_0x5490b0)[_0x7fa7cd(0xe3)];}},exports[_0x25a69f(0x141)]=K([v['DependentOn'](O[_0x25a69f(0xef)])],exports[_0x25a69f(0x141)]);
1
+ 'use strict';const _0x3977b2=_0x2e08;(function(_0x2a2116,_0x5aa2b6){const _0x4fd35d=_0x2e08,_0x113b3a=_0x2a2116();while(!![]){try{const _0x5cd649=-parseInt(_0x4fd35d(0x1c0))/0x1*(-parseInt(_0x4fd35d(0x184))/0x2)+-parseInt(_0x4fd35d(0x211))/0x3*(-parseInt(_0x4fd35d(0x1b8))/0x4)+parseInt(_0x4fd35d(0x1b2))/0x5*(parseInt(_0x4fd35d(0x1f9))/0x6)+-parseInt(_0x4fd35d(0x1fc))/0x7*(-parseInt(_0x4fd35d(0x22d))/0x8)+parseInt(_0x4fd35d(0x1eb))/0x9+parseInt(_0x4fd35d(0x22c))/0xa+parseInt(_0x4fd35d(0x1ba))/0xb*(-parseInt(_0x4fd35d(0x229))/0xc);if(_0x5cd649===_0x5aa2b6)break;else _0x113b3a['push'](_0x113b3a['shift']());}catch(_0x19a06b){_0x113b3a['push'](_0x113b3a['shift']());}}}(_0x5693,0xce6a1));var U=Object[_0x3977b2(0x1ca)],I=(_0x4d1364,_0x48e2e3,_0x3c0278)=>_0x48e2e3 in _0x4d1364?U(_0x4d1364,_0x48e2e3,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3c0278}):_0x4d1364[_0x48e2e3]=_0x3c0278,C=(_0x87bf9a,_0x3bc9ac,_0x1d0364)=>I(_0x87bf9a,typeof _0x3bc9ac!=_0x3977b2(0x1e2)?_0x3bc9ac+'':_0x3bc9ac,_0x1d0364);Object[_0x3977b2(0x1ca)](exports,Symbol['toStringTag'],{'value':_0x3977b2(0x222)});const T=require(_0x3977b2(0x1a4)),u=require('@univerjs/engine-formula'),A=require(_0x3977b2(0x19d)),N={0x0:'n',0x1:'k',0x2:'G',0x3:'m',0x4:'3',0x5:'K',0x6:'9',0x7:'Y',0x8:'D',0x9:'z','T':'0','h':'1','u':'2','X':'4','f':'5','B':'6','J':'7','j':'8','Q':'a','H':'b','d':'c','F':'d','m':'e','n':'f','E':'g','a':'h','z':'i','Z':'j','r':'l','O':'o','v':'p','b':'q','g':'r','G':'s','Y':'t','A':'u','D':'v','q':'w','c':'x','w':'y','p':'A','R':'B','P':'C','x':'E','C':'F','K':'H','V':'I','k':'J','W':'L','i':'M','t':'N','s':'O','U':'P','y':'Q','e':'R','S':'S','o':'T','I':'U','L':'V','l':'W','M':'X','N':'Z'},P=_0x3977b2(0x1d4);class b extends u['FormulaDependencyGenerator']{constructor(){super(...arguments),C(this,'_dependencyTreeCache',new Map());}['dispose'](){const _0x8cc4e9=_0x3977b2;super[_0x8cc4e9(0x236)](),this[_0x8cc4e9(0x216)][_0x8cc4e9(0x204)]();}async[_0x3977b2(0x1e7)](){const _0x2140bc=_0x3977b2;this['_updateRangeFlatten']();const _0x2ed959=this[_0x2140bc(0x191)]['getFormulaData'](),_0xca07d1=this[_0x2140bc(0x1ee)]['getOtherFormulaData'](),_0x398956=this['_currentConfigService'][_0x2140bc(0x1ac)]();_0x398956!=null&&Object[_0x2140bc(0x181)](_0x398956)[_0x2140bc(0x1e5)](_0x182c45=>{const _0x37a382=_0x2140bc;_0x182c45!=null&&Object[_0x37a382(0x181)](_0x398956[_0x182c45])['forEach'](_0x3650b8=>{const _0x53ebf8=_0x37a382;_0x3650b8!=null&&(this[_0x53ebf8(0x212)][_0x53ebf8(0x19f)](_0x182c45,_0x3650b8),this[_0x53ebf8(0x212)][_0x53ebf8(0x192)](_0x182c45,_0x3650b8),this[_0x53ebf8(0x212)]['clearFormulaDependency'](_0x182c45,_0x3650b8));});});const _0x1e4f05=this[_0x2140bc(0x191)][_0x2140bc(0x20f)]();await this[_0x2140bc(0x1cb)](_0x2ed959,_0xca07d1,_0x1e4f05),this[_0x2140bc(0x212)][_0x2140bc(0x1f4)]();const _0x37b6d3=this[_0x2140bc(0x223)](),_0x11d8b7=this[_0x2140bc(0x1c1)](_0x37b6d3);return this[_0x2140bc(0x1b7)](_0x11d8b7)&&this[_0x2140bc(0x1fa)][_0x2140bc(0x19e)](),this[_0x2140bc(0x216)][_0x2140bc(0x204)](),this[_0x2140bc(0x212)][_0x2140bc(0x20d)](),Promise[_0x2140bc(0x1b0)](_0x11d8b7);}[_0x3977b2(0x1d7)](_0x58d271,_0x3a82a9){const _0x1462d4=_0x3977b2,_0x5d2529=[_0x58d271];for(;_0x5d2529[_0x1462d4(0x1d3)]>0x0;){const _0x42248a=_0x5d2529[_0x5d2529[_0x1462d4(0x1d3)]-0x1];if((_0x3a82a9[_0x1462d4(0x209)](_0x42248a)||0x0)===0x0){_0x3a82a9[_0x1462d4(0x1ae)](_0x42248a,0x1);const _0xe16bac=this['_dependencyTreeCache']['get'](_0x42248a);if(_0xe16bac==null){_0x3a82a9[_0x1462d4(0x1ae)](_0x42248a,0x2),_0x5d2529[_0x1462d4(0x1e8)]();continue;}const _0x21c12d=this['_dependencyManagerService'][_0x1462d4(0x1a3)](_0xe16bac[_0x1462d4(0x201)]());for(const _0x177235 of _0x21c12d){const _0x1632ea=_0x3a82a9['get'](_0x177235)||0x0;if(_0x1632ea===0x1)return!0x0;_0x1632ea===0x0&&_0x5d2529[_0x1462d4(0x18a)](_0x177235);}}else _0x3a82a9['set'](_0x42248a,0x2),_0x5d2529[_0x1462d4(0x1e8)]();}return!0x1;}['_checkIsCycleDependency'](_0x308046){const _0x348d2c=_0x3977b2,_0x4b1343=new Map();for(const _0x1559f9 of _0x308046)if(!_0x4b1343['has'](_0x1559f9[_0x348d2c(0x18f)])&&this[_0x348d2c(0x1d7)](_0x1559f9['treeId'],_0x4b1343))return!0x0;return _0x4b1343['clear'](),!0x1;}async[_0x3977b2(0x1cb)](_0x4bdfa4,_0x2454cd,_0x3df107){const _0x30eb4d=_0x3977b2,_0xf61ebb=Object['keys'](_0x4bdfa4),_0x3b32c0=Object[_0x30eb4d(0x181)](_0x2454cd),_0x6256ec=[];this[_0x30eb4d(0x191)][_0x30eb4d(0x1fd)]()&&this[_0x30eb4d(0x212)][_0x30eb4d(0x206)](),this[_0x30eb4d(0x1f7)](_0xf61ebb,_0x4bdfa4,_0x3df107,_0x6256ec),this[_0x30eb4d(0x18c)](_0x2454cd,_0x3b32c0,_0x6256ec),this['_registerFeatureFormulas'](_0x6256ec);for(let _0x299d54=0x0,_0x38a23d=_0x6256ec[_0x30eb4d(0x1d3)];_0x299d54<_0x38a23d;_0x299d54++){const _0x5f4887=_0x6256ec[_0x299d54],_0x38f903=u[_0x30eb4d(0x21b)](_0x5f4887['unitId'],_0x5f4887[_0x30eb4d(0x1a0)],this[_0x30eb4d(0x20a)],this['_astTreeBuilder'],this[_0x30eb4d(0x191)]);if(_0x5f4887['isDirty']=this[_0x30eb4d(0x234)](_0x5f4887,_0x38f903),_0x5f4887[_0x30eb4d(0x1d5)])continue;this[_0x30eb4d(0x1fa)][_0x30eb4d(0x226)](_0x5f4887['row'],_0x5f4887['column'],_0x5f4887['rowCount'],_0x5f4887[_0x30eb4d(0x1bf)],_0x5f4887[_0x30eb4d(0x205)],_0x5f4887[_0x30eb4d(0x1dc)]);const _0x276116=await this[_0x30eb4d(0x1a6)]({'node':_0x38f903,'refOffsetX':_0x5f4887[_0x30eb4d(0x1f0)],'refOffsetY':_0x5f4887['refOffsetY']});_0x5f4887[_0x30eb4d(0x1dd)](_0x276116);}for(let _0x1e998d=0x0,_0x32ba74=_0x6256ec[_0x30eb4d(0x1d3)];_0x1e998d<_0x32ba74;_0x1e998d++){const _0x1a6148=_0x6256ec[_0x1e998d];_0x1a6148[_0x30eb4d(0x227)]||this[_0x30eb4d(0x212)][_0x30eb4d(0x188)](_0x1a6148);}return _0x6256ec;}[_0x3977b2(0x19c)](_0x29c6a5,_0x70fa1,_0x4ee728){const _0x352c59=_0x3977b2,{unitId:_0x283c18,subUnitId:_0x2811b6,dependencyRanges:_0x58c737,getDirtyData:_0xad73d6}=_0x4ee728,_0x40e1eb=_0x70fa1||u['generateRandomDependencyTreeId'](this['_dependencyManagerService']),_0xfef642=new u[(_0x352c59(0x1f3))](_0x40e1eb);_0xfef642[_0x352c59(0x1dc)]=_0x283c18,_0xfef642[_0x352c59(0x205)]=_0x2811b6,_0xfef642[_0x352c59(0x18b)]=_0x58c737,_0xfef642[_0x352c59(0x238)]=_0xad73d6;const _0x257363=_0xad73d6(this[_0x352c59(0x191)]['getDirtyData'](),this[_0x352c59(0x1fa)]['getAllRuntimeData']()),_0x303b94=this[_0x352c59(0x17e)](_0x257363[_0x352c59(0x1de)]);return _0xfef642['featureDirtyRanges']=_0x303b94,_0xfef642[_0x352c59(0x219)]=_0x29c6a5,_0xfef642[_0x352c59(0x1ce)]=u['FormulaDependencyTreeType'][_0x352c59(0x1b1)],this[_0x352c59(0x212)][_0x352c59(0x210)](_0x283c18,_0x2811b6,_0x29c6a5,_0xfef642),this[_0x352c59(0x216)]['set'](_0xfef642[_0x352c59(0x18f)],_0xfef642),this[_0x352c59(0x212)][_0x352c59(0x21c)](_0x4ee728['unitId'],_0x4ee728[_0x352c59(0x205)],_0x29c6a5)&&(_0xfef642[_0x352c59(0x227)]=!0x0),_0xfef642;}[_0x3977b2(0x18c)](_0x29bde1,_0x37e94b,_0x45c416){const _0x235bda=_0x3977b2;for(const _0x4491ca of _0x37e94b){const _0x74de98=_0x29bde1[_0x4491ca];if(_0x74de98==null)continue;const _0x130dc0=Object['keys'](_0x74de98);for(const _0x2d2ed4 of _0x130dc0){const _0x2a541a=_0x74de98[_0x2d2ed4];if(_0x2a541a==null)continue;const _0x255846=Object[_0x235bda(0x181)](_0x2a541a);for(const _0x152824 of _0x255846){const _0xc1eca5=this[_0x235bda(0x212)][_0x235bda(0x221)](_0x152824),_0x59c2e0=_0x2a541a[_0x152824],{f:_0x2d0be5,ranges:_0x2f6504}=_0x59c2e0;let _0x6c2b13=!0x1;_0xc1eca5&&(_0x6c2b13=!0x0);const {firstRow:_0x30bb1e,firstColumn:_0x21fda9}=this[_0x235bda(0x1ab)](_0x2f6504),_0x304c6c=this[_0x235bda(0x212)]['getOtherFormulaDependency'](_0x4491ca,_0x2d2ed4,_0x152824),_0x2fdafa=(_0x304c6c==null?void 0x0:_0x304c6c[_0x235bda(0x207)](0x0,0x0))||u[_0x235bda(0x20c)](this[_0x235bda(0x212)]),_0x8de2b1=new u[(_0x235bda(0x1f3))](_0x2fdafa);for(let _0x202659=0x0;_0x202659<_0x2f6504[_0x235bda(0x1d3)];_0x202659++){const _0xd29b6f=_0x2f6504[_0x202659],{startRow:_0x1b3dcc,startColumn:_0x3738fb,endRow:_0x30d996,endColumn:_0x988a81}=_0xd29b6f;for(let _0x1bc576=_0x1b3dcc;_0x1bc576<=_0x30d996;_0x1bc576++)for(let _0x48614d=_0x3738fb;_0x48614d<=_0x988a81;_0x48614d++){const _0x47d682=_0x48614d-_0x21fda9,_0x1a45c1=_0x1bc576-_0x30bb1e;if(_0x47d682===0x0&&_0x1a45c1===0x0){_0x8de2b1[_0x235bda(0x1a0)]=_0x2d0be5,_0x8de2b1[_0x235bda(0x1dc)]=_0x4491ca,_0x8de2b1[_0x235bda(0x205)]=_0x2d2ed4,_0x8de2b1[_0x235bda(0x1e4)]=_0x152824,_0x8de2b1[_0x235bda(0x1ce)]=u['FormulaDependencyTreeType'][_0x235bda(0x1a5)],_0x8de2b1[_0x235bda(0x227)]=_0x6c2b13,_0x45c416[_0x235bda(0x18a)](_0x8de2b1),this[_0x235bda(0x216)][_0x235bda(0x1ae)](_0x8de2b1[_0x235bda(0x18f)],_0x8de2b1),this[_0x235bda(0x212)][_0x235bda(0x17d)](_0x4491ca,_0x2d2ed4,_0x152824,_0x8de2b1),this[_0x235bda(0x212)][_0x235bda(0x193)](_0x8de2b1);continue;}const _0x314438=new u[(_0x235bda(0x214))]();_0x314438[_0x235bda(0x18f)]=(_0x304c6c==null?void 0x0:_0x304c6c[_0x235bda(0x207)](_0x47d682,_0x1a45c1))||u['generateRandomDependencyTreeId'](this[_0x235bda(0x212)]),_0x314438[_0x235bda(0x202)]=_0x8de2b1,_0x314438[_0x235bda(0x1f0)]=_0x47d682,_0x314438['refOffsetY']=_0x1a45c1,_0x314438[_0x235bda(0x227)]=_0x6c2b13,this[_0x235bda(0x212)]['addOtherFormulaDependency'](_0x4491ca,_0x2d2ed4,_0x152824,_0x314438),this[_0x235bda(0x212)]['addFormulaDependencyByDefinedName'](_0x314438),_0x45c416[_0x235bda(0x18a)](_0x314438),this[_0x235bda(0x216)][_0x235bda(0x1ae)](_0x314438[_0x235bda(0x18f)],_0x314438);}}this[_0x235bda(0x212)][_0x235bda(0x21a)](_0x152824);}}}}[_0x3977b2(0x1f7)](_0x3b9f26,_0x3a56e0,_0x3f1d42,_0x4256d9){const _0x3e33cc=_0x3977b2;for(const _0x28329c of _0x3b9f26){const _0x12a1e1=_0x3a56e0[_0x28329c];if(_0x12a1e1==null)continue;const _0x4022d5=Object[_0x3e33cc(0x181)](_0x12a1e1);for(const _0x3908ec of _0x4022d5){const _0x3385b4=new T['ObjectMatrix'](_0x12a1e1[_0x3908ec]||{}),_0x11b52d=new Map();_0x3385b4[_0x3e33cc(0x21f)]((_0x1201d0,_0xaf826e,_0x3642d4)=>{const _0xb6484b=_0x3e33cc;if(_0x3642d4==null)return!0x0;const {x:_0x20cd8b=0x0,y:_0x23b5ef=0x0,si:_0xb0aa54}=_0x3642d4;if(!(_0x20cd8b===0x0&&_0x23b5ef===0x0&&_0xb0aa54!=null))return!0x0;const _0x1d34e5=this[_0xb6484b(0x22b)](_0x28329c,_0x3908ec,_0x1201d0,_0xaf826e,_0x3f1d42,_0x3642d4),_0x3eb4b0=this[_0xb6484b(0x212)][_0xb6484b(0x1d1)](_0x28329c,_0x3908ec,_0x1201d0,_0xaf826e);_0x3eb4b0!=null?_0x1d34e5[_0xb6484b(0x18f)]=_0x3eb4b0:(this[_0xb6484b(0x212)][_0xb6484b(0x1c4)](_0x28329c,_0x3908ec,_0x1201d0,_0xaf826e,_0x1d34e5),this['_dependencyManagerService'][_0xb6484b(0x193)](_0x1d34e5)),_0x11b52d[_0xb6484b(0x1ae)](_0xb0aa54,_0x1d34e5),_0x4256d9[_0xb6484b(0x18a)](_0x1d34e5),this['_dependencyTreeCache'][_0xb6484b(0x1ae)](_0x1d34e5[_0xb6484b(0x18f)],_0x1d34e5);}),_0x3385b4[_0x3e33cc(0x21f)]((_0x10f5bd,_0x133efb,_0x32c942)=>{const _0x4e0574=_0x3e33cc;if(_0x32c942==null)return!0x0;const {x:_0xf25837=0x0,y:_0x1f3bc0=0x0,si:_0xe8bc25}=_0x32c942;if(_0xf25837===0x0&&_0x1f3bc0===0x0&&_0xe8bc25!=null)return!0x0;let _0x492693;if(_0xe8bc25&&_0x11b52d[_0x4e0574(0x1c5)](_0xe8bc25)){const _0x4d89c8=_0x11b52d['get'](_0xe8bc25);_0x492693=this[_0x4e0574(0x1db)](_0x4d89c8,_0x32c942);}else _0x492693=this[_0x4e0574(0x22b)](_0x28329c,_0x3908ec,_0x10f5bd,_0x133efb,_0x3f1d42,_0x32c942);const _0x3d1d34=this[_0x4e0574(0x212)][_0x4e0574(0x1d1)](_0x28329c,_0x3908ec,_0x10f5bd,_0x133efb);_0x3d1d34!=null?_0x492693[_0x4e0574(0x18f)]=_0x3d1d34:(this['_dependencyManagerService'][_0x4e0574(0x1c4)](_0x28329c,_0x3908ec,_0x10f5bd,_0x133efb,_0x492693),this['_dependencyManagerService']['addFormulaDependencyByDefinedName'](_0x492693)),_0x4256d9[_0x4e0574(0x18a)](_0x492693),this[_0x4e0574(0x216)]['set'](_0x492693['treeId'],_0x492693);}),_0x11b52d['clear']();}}}[_0x3977b2(0x22b)](_0x567b0a,_0x48e032,_0x11e2c7,_0xd6a064,_0x28d022,_0x2fe570){const _0x355002=_0x3977b2,{f:_0x323409,x:_0x317e09=0x0,y:_0x2494a0=0x0}=_0x2fe570,_0x32fc20=new u[(_0x355002(0x1f3))](u['generateRandomDependencyTreeId'](this[_0x355002(0x212)])),_0x5c3c0=_0x28d022[_0x567b0a][_0x48e032];return _0x32fc20[_0x355002(0x1a0)]=_0x323409,_0x32fc20[_0x355002(0x1dc)]=_0x567b0a,_0x32fc20[_0x355002(0x205)]=_0x48e032,_0x32fc20[_0x355002(0x1a1)]=_0x11e2c7,_0x32fc20[_0x355002(0x1b5)]=_0xd6a064,_0x32fc20['rowCount']=_0x5c3c0[_0x355002(0x218)],_0x32fc20[_0x355002(0x1bf)]=_0x5c3c0[_0x355002(0x1bf)],_0x32fc20;}[_0x3977b2(0x223)](){const _0x3e2a76=_0x3977b2,_0x53859c=[],_0x1717b9=new Set(),_0x1093a0=this[_0x3e2a76(0x191)]['isForceCalculate'](),_0x16fa33=this[_0x3e2a76(0x191)][_0x3e2a76(0x194)](),_0x50ff02=this['_dependencyManagerService']['searchDependency'](_0x16fa33);for(const [_0x4f8919,_0xf37887]of this[_0x3e2a76(0x216)])(_0x1093a0||_0xf37887[_0x3e2a76(0x1b4)]||_0xf37887['dependencySheetName'](this['_currentConfigService']['getDirtyNameMap']())||_0x50ff02['has'](_0x4f8919)&&!_0xf37887[_0x3e2a76(0x215)](this['_currentConfigService'][_0x3e2a76(0x1d2)]()))&&!_0x1717b9[_0x3e2a76(0x1c5)](_0x4f8919)&&(_0x53859c[_0x3e2a76(0x18a)](_0xf37887),_0x1717b9[_0x3e2a76(0x19b)](_0x4f8919));for(const [_0x16689c,_0x5b8796]of this['_dependencyTreeCache'])_0x5b8796[_0x3e2a76(0x1d5)]||(_0x5b8796[_0x3e2a76(0x18b)][_0x3e2a76(0x1d3)]=0x0);return _0x53859c;}*[_0x3977b2(0x17f)](_0x5a1976,_0x4ebd0a){const _0x189daa=_0x3977b2,_0x41837b=_0x5a1976,_0x350501=new Set();for(;_0x41837b[_0x189daa(0x1d3)]>0x0;){const _0x265c7e=_0x41837b[_0x189daa(0x1e8)]();if(_0x350501['clear'](),_0x265c7e===void 0x0||_0x265c7e[_0x189daa(0x213)]())continue;if(_0x265c7e[_0x189daa(0x186)]()){yield _0x265c7e,_0x265c7e[_0x189daa(0x220)](),_0x4ebd0a[_0x189daa(0x19b)](_0x265c7e[_0x189daa(0x18f)]);continue;}const _0x56ecf2=this[_0x189daa(0x212)][_0x189daa(0x1a3)](_0x265c7e[_0x189daa(0x201)](),_0x4ebd0a);for(const _0x6a0ddb of _0x56ecf2){const _0x42c4c8=this['_dependencyTreeCache'][_0x189daa(0x209)](_0x6a0ddb);if(!_0x42c4c8)throw new Error(_0x189daa(0x1e1));_0x42c4c8[_0x189daa(0x186)]()||_0x265c7e[_0x189daa(0x213)]()||_0x350501['add'](_0x42c4c8);}if(_0x56ecf2[_0x189daa(0x204)](),_0x350501['size']===0x0)yield _0x265c7e,_0x265c7e['setSkip'](),_0x4ebd0a[_0x189daa(0x19b)](_0x265c7e[_0x189daa(0x18f)]);else{_0x265c7e[_0x189daa(0x22f)](),_0x41837b[_0x189daa(0x18a)](_0x265c7e);for(const _0x1ea153 of _0x350501)_0x41837b['push'](_0x1ea153);}}_0x41837b[_0x189daa(0x1d3)]=0x0,_0x350501[_0x189daa(0x204)]();}[_0x3977b2(0x1c1)](_0x33f79b){const _0x19b4a8=_0x3977b2,_0xe0d4e6=[],_0x191d7e=new Set();for(const _0x4c648a of this[_0x19b4a8(0x17f)](_0x33f79b,_0x191d7e))_0xe0d4e6[_0x19b4a8(0x18a)](_0x4c648a);return _0xe0d4e6;}}class V extends u['CalculateFormulaService']{async[_0x3977b2(0x1b3)](_0x446f4c=!0x1){const _0x415526=_0x3977b2;_0x446f4c?this[_0x415526(0x1fa)][_0x415526(0x19a)](u[_0x415526(0x1af)][_0x415526(0x1f2)]):this[_0x415526(0x1fa)]['setFormulaExecuteStage'](u[_0x415526(0x1af)][_0x415526(0x198)]),this[_0x415526(0x225)][_0x415526(0x197)](this['_runtimeService']['getRuntimeState']());const _0xbf120f=await this[_0x415526(0x20e)]['generate'](),_0x3ae754=this[_0x415526(0x208)];_0x446f4c?(this[_0x415526(0x1fa)][_0x415526(0x19a)](u[_0x415526(0x1af)][_0x415526(0x203)]),this[_0x415526(0x1fa)][_0x415526(0x195)](_0xbf120f['length'])):(this['_runtimeService'][_0x415526(0x19a)](u[_0x415526(0x1af)][_0x415526(0x180)]),this[_0x415526(0x1fa)]['setTotalFormulasToCalculate'](_0xbf120f[_0x415526(0x1d3)])),this[_0x415526(0x225)][_0x415526(0x197)](this[_0x415526(0x1fa)][_0x415526(0x1b9)]());let _0x3df797=[];const _0x4f3c2c=this[_0x415526(0x1ea)][_0x415526(0x1ed)](u[_0x415526(0x1d9)]),_0x4fda6d=(_0x4f3c2c==null?void 0x0:_0x4f3c2c[_0x415526(0x199)])||u[_0x415526(0x1d8)];let _0x357d88=0x0;const _0x31cff1=_0xbf120f['length'];for(;_0xbf120f[_0x415526(0x1d3)]>0x0;){const _0xea20bb=_0xbf120f['pop'](),_0x24783d={'node':u[_0x415526(0x21b)](_0xea20bb[_0x415526(0x1dc)],_0xea20bb['formula'],this['_lexer'],this[_0x415526(0x1c2)],this[_0x415526(0x191)]),'refOffsetX':_0xea20bb[_0x415526(0x1f0)],'refOffsetY':_0xea20bb[_0x415526(0x187)]},_0x9af2bc=_0xea20bb[_0x415526(0x238)];if(_0x357d88%_0x4fda6d===0x0&&(await new Promise(_0x42d346=>{const _0x1049f4=_0x415526,_0x4c216c=T[_0x1049f4(0x18d)](_0x42d346);_0x3df797[_0x1049f4(0x18a)](_0x4c216c);}),_0x446f4c?(this[_0x415526(0x1fa)]['setFormulaExecuteStage'](u[_0x415526(0x1af)][_0x415526(0x224)]),this[_0x415526(0x1fa)][_0x415526(0x1ef)](_0x357d88+0x1)):(this['_runtimeService']['setFormulaExecuteStage'](u['FormulaExecuteStageType'][_0x415526(0x1d0)]),this[_0x415526(0x1fa)][_0x415526(0x1f5)](_0x357d88+0x1)),this[_0x415526(0x225)][_0x415526(0x197)](this[_0x415526(0x1fa)][_0x415526(0x1b9)]()),this[_0x415526(0x1fa)][_0x415526(0x1d6)]()||_0x24783d==null&&_0x9af2bc==null)){this[_0x415526(0x1fa)][_0x415526(0x19a)](u[_0x415526(0x1af)][_0x415526(0x217)]),this[_0x415526(0x1fa)][_0x415526(0x1df)](),this[_0x415526(0x231)][_0x415526(0x197)](this[_0x415526(0x1fa)][_0x415526(0x1a7)]());return;}this[_0x415526(0x1fa)][_0x415526(0x226)](_0xea20bb[_0x415526(0x1a1)],_0xea20bb[_0x415526(0x1b5)],_0xea20bb[_0x415526(0x218)],_0xea20bb[_0x415526(0x1bf)],_0xea20bb[_0x415526(0x205)],_0xea20bb['unitId']);let _0x2eefd4;if(_0x9af2bc!=null&&_0xea20bb[_0x415526(0x219)]!=null){const {runtimeCellData:_0x105366,dirtyRanges:_0xf5f91b}=_0x9af2bc(this['_currentConfigService'][_0x415526(0x238)](),this[_0x415526(0x1fa)][_0x415526(0x1a7)]());this[_0x415526(0x1fa)][_0x415526(0x190)](_0xea20bb['featureId'],_0x105366),this['_runtimeService']['setRuntimeFeatureRange'](_0xea20bb[_0x415526(0x219)],_0xf5f91b);}else _0x24783d!=null&&(_0x3ae754[_0x415526(0x1f8)](_0x24783d[_0x415526(0x1e3)])?_0x2eefd4=await _0x3ae754[_0x415526(0x183)](_0x24783d):_0x2eefd4=_0x3ae754[_0x415526(0x1e6)](_0x24783d),_0xea20bb[_0x415526(0x1e4)]!=null?this['_runtimeService'][_0x415526(0x1bd)](_0xea20bb[_0x415526(0x1e4)],_0xea20bb[_0x415526(0x1f0)],_0xea20bb[_0x415526(0x187)],_0x2eefd4):this[_0x415526(0x1fa)][_0x415526(0x235)](_0x2eefd4));_0x357d88++;}return _0x3df797['forEach'](_0x555b4f=>_0x555b4f()),_0x3df797=[],_0x31cff1>0x0?this[_0x415526(0x1fa)]['markedAsSuccessfullyExecuted']():_0x446f4c||this[_0x415526(0x1fa)][_0x415526(0x1be)](),this[_0x415526(0x1fa)]['getAllRuntimeData']();}}function _0x2e08(_0x2c1190,_0x4d2325){const _0x569321=_0x5693();return _0x2e08=function(_0x2e0826,_0x291a32){_0x2e0826=_0x2e0826-0x17a;let _0x247e57=_0x569321[_0x2e0826];return _0x247e57;},_0x2e08(_0x2c1190,_0x4d2325);}class k extends u[_0x3977b2(0x1a2)]{constructor(){const _0x1f4c91=_0x3977b2;super(...arguments),C(this,_0x1f4c91(0x232),new Map()),C(this,'_dependencyRTreeCache',new T['RTree'](!0x0));}[_0x3977b2(0x206)](){const _0x393156=_0x3977b2;this[_0x393156(0x22a)][_0x393156(0x204)](),this[_0x393156(0x1f1)]['clear'](),this[_0x393156(0x1c6)]['clear'](),this['_dependencyRTreeCache'][_0x393156(0x204)](),this['_allTreeMap'][_0x393156(0x204)](),this[_0x393156(0x1cd)](),this[_0x393156(0x1e0)][_0x393156(0x204)]();}[_0x3977b2(0x17d)](_0x466197,_0x171cf3,_0xb228de,_0x55e4e2){const _0x3b0b88=_0x3977b2;this[_0x3b0b88(0x22a)][_0x3b0b88(0x1c5)](_0x466197)||this[_0x3b0b88(0x22a)]['set'](_0x466197,new Map());const _0xb17d7f=this['_otherFormulaData'][_0x3b0b88(0x209)](_0x466197);_0xb17d7f['has'](_0x171cf3)||_0xb17d7f['set'](_0x171cf3,new Map());const _0x5ebafc=_0xb17d7f['get'](_0x171cf3);_0x5ebafc[_0x3b0b88(0x1c5)](_0xb228de)||_0x5ebafc['set'](_0xb228de,new T[(_0x3b0b88(0x189))]()),_0x5ebafc['get'](_0xb228de)[_0x3b0b88(0x22e)](_0x55e4e2[_0x3b0b88(0x1f0)],_0x55e4e2[_0x3b0b88(0x187)],_0x55e4e2[_0x3b0b88(0x18f)]);}[_0x3977b2(0x1fb)](_0x5c3a08,_0x8b3b6c,_0x522193){const _0x280c79=_0x3977b2,_0x2d818e=this[_0x280c79(0x22a)]['get'](_0x5c3a08);if(_0x2d818e&&_0x2d818e[_0x280c79(0x1c5)](_0x8b3b6c)){const _0x5062c5=_0x2d818e[_0x280c79(0x209)](_0x8b3b6c);_0x522193[_0x280c79(0x1e5)](_0x1966a4=>{const _0x311de0=_0x280c79,_0x373282=_0x5062c5[_0x311de0(0x209)](_0x1966a4);_0x373282!=null&&(_0x373282['forValue']((_0x14d910,_0x300cf7,_0x2b4bb5)=>{const _0x344c84=_0x311de0;this[_0x344c84(0x1f6)](_0x2b4bb5),this[_0x344c84(0x1a9)](_0x2b4bb5);}),_0x5062c5[_0x311de0(0x1bb)](_0x1966a4),this[_0x311de0(0x1e0)][_0x311de0(0x1bb)](_0x1966a4));}),_0x5062c5[_0x280c79(0x1a8)]===0x0&&_0x2d818e[_0x280c79(0x1bb)](_0x8b3b6c),_0x2d818e[_0x280c79(0x1a8)]===0x0&&this['_otherFormulaData'][_0x280c79(0x1bb)](_0x5c3a08);}}[_0x3977b2(0x19f)](_0x6c6a1b,_0x236f32){const _0x59193a=_0x3977b2,_0x52814e=this['_otherFormulaData']['get'](_0x6c6a1b);if(_0x236f32&&_0x52814e&&_0x52814e[_0x59193a(0x1c5)](_0x236f32)){const _0x16a89d=_0x52814e[_0x59193a(0x209)](_0x236f32);this['_removeDependencyRTreeCacheById'](_0x6c6a1b,_0x236f32);for(const _0x501289 of _0x16a89d[_0x59193a(0x181)]()){const _0x144741=_0x16a89d[_0x59193a(0x209)](_0x501289);_0x144741!=null&&(_0x144741[_0x59193a(0x21f)]((_0x28721e,_0x3ac27f,_0x4cafd1)=>{const _0x35e5f1=_0x59193a;this[_0x35e5f1(0x232)]['get'](_0x4cafd1)&&this['_removeAllTreeMap'](_0x4cafd1);}),this['_otherFormulaDataMainData'][_0x59193a(0x1bb)](_0x501289));}_0x16a89d['clear']();}else{if(_0x52814e){for(const _0x31c582 of _0x52814e[_0x59193a(0x181)]()){const _0x3459fd=_0x52814e['get'](_0x31c582);this[_0x59193a(0x21e)](_0x6c6a1b,_0x31c582);for(const _0x2d05c3 of _0x3459fd['keys']()){const _0x308109=_0x3459fd[_0x59193a(0x209)](_0x2d05c3);_0x308109!=null&&(_0x308109[_0x59193a(0x21f)]((_0x19b4c5,_0xc82071,_0x450785)=>{const _0x1d8d5e=_0x59193a;this['_allTreeMap']['get'](_0x450785)&&this[_0x1d8d5e(0x1a9)](_0x450785);}),this[_0x59193a(0x1e0)][_0x59193a(0x1bb)](_0x2d05c3));}}this[_0x59193a(0x22a)]['delete'](_0x6c6a1b);}}}[_0x3977b2(0x210)](_0x25870f,_0x3e3edd,_0x524939,_0x4a63f0){const _0x1e8699=_0x3977b2;this[_0x1e8699(0x1f1)]['has'](_0x25870f)||this[_0x1e8699(0x1f1)]['set'](_0x25870f,new Map());const _0x425432=this[_0x1e8699(0x1f1)]['get'](_0x25870f);_0x425432['has'](_0x3e3edd)||_0x425432[_0x1e8699(0x1ae)](_0x3e3edd,new Map()),_0x425432[_0x1e8699(0x209)](_0x3e3edd)['set'](_0x524939,_0x4a63f0[_0x1e8699(0x18f)]);}[_0x3977b2(0x1da)](_0x2d303b,_0x483b0a,_0x5eddb5){const _0x462c2d=_0x3977b2,_0x4329cc=this[_0x462c2d(0x1f1)][_0x462c2d(0x209)](_0x2d303b);if(_0x4329cc&&_0x4329cc[_0x462c2d(0x1c5)](_0x483b0a)){const _0x141757=_0x4329cc[_0x462c2d(0x209)](_0x483b0a);_0x5eddb5['forEach'](_0x3e9fa7=>{const _0x17bc3f=_0x462c2d,_0xbbafed=_0x141757[_0x17bc3f(0x209)](_0x3e9fa7);_0xbbafed!=null&&(this[_0x17bc3f(0x1f6)](_0xbbafed),_0x141757[_0x17bc3f(0x1bb)](_0x3e9fa7),this['_removeAllTreeMap'](_0xbbafed));});}}['clearFeatureFormulaDependency'](_0x19adb0,_0x5cf457){const _0x4520b6=_0x3977b2,_0x37d595=this[_0x4520b6(0x1f1)][_0x4520b6(0x209)](_0x19adb0);if(_0x5cf457&&_0x37d595&&_0x37d595[_0x4520b6(0x1c5)](_0x5cf457)){const _0x1fe7e1=_0x37d595[_0x4520b6(0x209)](_0x5cf457);this[_0x4520b6(0x21e)](_0x19adb0,_0x5cf457),_0x1fe7e1['forEach'](_0x109746=>{const _0x2d792a=_0x4520b6;_0x109746!=null&&this[_0x2d792a(0x1a9)](_0x109746);}),_0x1fe7e1[_0x4520b6(0x204)]();}else _0x37d595&&(_0x37d595[_0x4520b6(0x1e5)]((_0x4f343e,_0x16a570)=>{const _0x2adc90=_0x4520b6;this['_removeDependencyRTreeCacheById'](_0x19adb0,_0x16a570),_0x4f343e[_0x2adc90(0x1e5)](_0xa8654b=>{const _0x44fafc=_0x2adc90;_0xa8654b!=null&&this[_0x44fafc(0x1a9)](_0xa8654b);});}),this[_0x4520b6(0x1f1)][_0x4520b6(0x1bb)](_0x19adb0));}[_0x3977b2(0x1c4)](_0x2f23d3,_0x5c729d,_0x27d460,_0x2095d8,_0x55b54c){const _0x52b6fc=_0x3977b2;this[_0x52b6fc(0x1c6)]['has'](_0x2f23d3)||this['_formulaData']['set'](_0x2f23d3,new Map());const _0x741d42=this['_formulaData'][_0x52b6fc(0x209)](_0x2f23d3);_0x741d42[_0x52b6fc(0x1c5)](_0x5c729d)||_0x741d42[_0x52b6fc(0x1ae)](_0x5c729d,new T[(_0x52b6fc(0x189))]()),_0x741d42[_0x52b6fc(0x209)](_0x5c729d)[_0x52b6fc(0x22e)](_0x27d460,_0x2095d8,_0x55b54c[_0x52b6fc(0x18f)]);}[_0x3977b2(0x1b6)](_0x244baa,_0xcf95d5,_0x5f080c,_0x5a9457){const _0x3cc979=_0x3977b2,_0x3d718f=this['_formulaData']['get'](_0x244baa);if(_0x3d718f&&_0x3d718f[_0x3cc979(0x1c5)](_0xcf95d5)){const _0x2d54a9=_0x3d718f[_0x3cc979(0x209)](_0xcf95d5),_0x549252=_0x2d54a9['getValue'](_0x5f080c,_0x5a9457);if(_0x549252==null)return;this[_0x3cc979(0x1f6)](_0x549252),_0x2d54a9[_0x3cc979(0x228)](_0x5f080c,_0x5a9457),this[_0x3cc979(0x1a9)](_0x549252);}}[_0x3977b2(0x20b)](_0x2575a3,_0x490232){const _0xbf4b73=_0x3977b2,_0x12fcf4=this[_0xbf4b73(0x1c6)][_0xbf4b73(0x209)](_0x2575a3);if(_0x490232&&_0x12fcf4&&_0x12fcf4[_0xbf4b73(0x1c5)](_0x490232)){const _0x3ae2dd=_0x12fcf4[_0xbf4b73(0x209)](_0x490232);this[_0xbf4b73(0x21e)](_0x2575a3,_0x490232),_0x3ae2dd[_0xbf4b73(0x21f)]((_0x35e5cf,_0x232215,_0x1b28f2)=>{if(_0x1b28f2==null)return!0x0;this['_removeAllTreeMap'](_0x1b28f2);}),_0x3ae2dd[_0xbf4b73(0x206)]();}else _0x12fcf4&&(_0x12fcf4[_0xbf4b73(0x1e5)]((_0x145b2a,_0x20323d)=>{const _0x3f256b=_0xbf4b73;this[_0x3f256b(0x21e)](_0x2575a3,_0x20323d),_0x145b2a[_0x3f256b(0x21f)]((_0x749ebd,_0x497808,_0xcce38c)=>{const _0x5a3aca=_0x3f256b;if(_0xcce38c==null)return!0x0;this[_0x5a3aca(0x1a9)](_0xcce38c);});}),this[_0xbf4b73(0x1c6)][_0xbf4b73(0x1bb)](_0x2575a3));}[_0x3977b2(0x1f6)](_0x46b1f7){const _0x36b25f=_0x3977b2;if(_0x46b1f7==null)return;const _0x28e2b2=this[_0x36b25f(0x232)]['get'](_0x46b1f7);if(_0x28e2b2){const _0x13fcd0=[];for(const [_0x256a18,_0x1d99b0]of _0x28e2b2)for(const [_0x14bfd1,_0x6920dc]of _0x1d99b0)_0x13fcd0['push']({'unitId':_0x256a18,'sheetId':_0x14bfd1,'range':_0x6920dc,'id':_0x46b1f7});this[_0x36b25f(0x185)]['bulkRemove'](_0x13fcd0);}}[_0x3977b2(0x1e9)](_0x1e256c,_0x192f07){const _0x87836c=_0x3977b2,_0x12803=this['_definedNameMap'][_0x87836c(0x209)](_0x1e256c);if(_0x12803){const _0x3d9148=_0x12803[_0x87836c(0x209)](_0x192f07);if(_0x3d9148){for(const _0x22812a of _0x3d9148)this[_0x87836c(0x1f6)](_0x22812a),this[_0x87836c(0x1a9)](_0x22812a);_0x3d9148[_0x87836c(0x204)]();}}}[_0x3977b2(0x1f4)](){const _0xb81465=_0x3977b2;this[_0xb81465(0x185)][_0xb81465(0x1f4)]();}['closeKdTree'](){const _0x2ace0f=_0x3977b2;this[_0x2ace0f(0x185)]['closeKdTree']();}[_0x3977b2(0x1a9)](_0x9a1337){const _0x238efc=_0x3977b2;_0x9a1337!=null&&this[_0x238efc(0x232)][_0x238efc(0x1bb)](_0x9a1337);}[_0x3977b2(0x233)](_0x4afc14){const _0xe7f16e=_0x3977b2;var _0x292608,_0x1d054e;const _0x5c2449=_0x4afc14[_0xe7f16e(0x18b)];let _0xd78ed9=this[_0xe7f16e(0x232)][_0xe7f16e(0x209)](_0x4afc14['treeId']);for(let _0x244cb0=0x0;_0x244cb0<_0x5c2449[_0xe7f16e(0x1d3)];_0x244cb0++){const _0x878d6a=_0x5c2449[_0x244cb0];let {unitId:_0x178bc3,sheetId:_0x4a47da,range:_0x92aad4}=_0x878d6a;_0xd78ed9||(_0xd78ed9=new Map(),this[_0xe7f16e(0x232)][_0xe7f16e(0x1ae)](_0x4afc14[_0xe7f16e(0x18f)],_0xd78ed9)),_0xd78ed9[_0xe7f16e(0x1c5)](_0x178bc3)||_0xd78ed9[_0xe7f16e(0x1ae)](_0x178bc3,new Map());const _0x594fda=(_0x292608=_0xd78ed9==null?void 0x0:_0xd78ed9[_0xe7f16e(0x209)](_0x178bc3))==null?void 0x0:_0x292608[_0xe7f16e(0x209)](_0x4a47da);_0x594fda&&(_0x92aad4={'startRow':Math[_0xe7f16e(0x1c3)](_0x92aad4[_0xe7f16e(0x1fe)],_0x594fda[_0xe7f16e(0x1fe)]),'startColumn':Math['min'](_0x92aad4['startColumn'],_0x594fda[_0xe7f16e(0x17a)]),'endRow':Math[_0xe7f16e(0x237)](_0x92aad4[_0xe7f16e(0x200)],_0x594fda[_0xe7f16e(0x200)]),'endColumn':Math[_0xe7f16e(0x237)](_0x92aad4[_0xe7f16e(0x1c8)],_0x594fda[_0xe7f16e(0x1c8)])}),(_0x1d054e=_0xd78ed9[_0xe7f16e(0x209)](_0x178bc3))==null||_0x1d054e['set'](_0x4a47da,_0x92aad4);}}}var B=Object[_0x3977b2(0x1ca)],K=Object[_0x3977b2(0x230)],j=(_0x4928e8,_0x395cf6,_0xf82b44,_0x47bc06)=>{const _0x25e832=_0x3977b2;for(var _0xf0df1f=_0x47bc06>0x1?void 0x0:_0x47bc06?K(_0x395cf6,_0xf82b44):_0x395cf6,_0x97f23d=_0x4928e8[_0x25e832(0x1d3)]-0x1,_0x24a44d;_0x97f23d>=0x0;_0x97f23d--)(_0x24a44d=_0x4928e8[_0x97f23d])&&(_0xf0df1f=(_0x47bc06?_0x24a44d(_0x395cf6,_0xf82b44,_0xf0df1f):_0x24a44d(_0xf0df1f))||_0xf0df1f);return _0x47bc06&&_0xf0df1f&&B(_0x395cf6,_0xf82b44,_0xf0df1f),_0xf0df1f;};function _0x5693(){const _0x3cb373=['IFormulaDependencyGenerator','treeId','setRuntimeFeatureCellData','_currentConfigService','clearFeatureFormulaDependency','addFormulaDependencyByDefinedName','getDirtyRanges','setTotalArrayFormulasToCalculate','DependencyManagerService','next','START_DEPENDENCY','intervalCount','setFormulaExecuteStage','add','_getFeatureFormulaTree','@univerjs-pro/license','enableCycleDependency','clearOtherFormulaDependency','formula','row','DependencyManagerBaseService','searchDependency','@univerjs/core','OTHER_FORMULA','_getRangeListByNode','getAllRuntimeData','size','_removeAllTreeMap','_injector','_getFirstCellOfRange','getClearDependencyTreeCache','UniverProFormulaEnginePlugin','set','FormulaExecuteStageType','resolve','FEATURE_FORMULA','295RMAkOx','_apply','isDirty','column','removeFormulaDependency','_checkIsCycleDependency','8CFycVB','getRuntimeState','418PxUbOI','delete','UniverLicensePlugin','setRuntimeOtherData','markedAsNoFunctionsExecuted','columnCount','1OroVFC','_calculateRunList','_astTreeBuilder','min','addFormulaDependency','has','_formulaData','_config','endColumn','FormulaDependencyGenerator','defineProperty','_generateTreeList','_initTimeValid','_restDependencyTreeId','type','notExecuteFormula','CURRENTLY_CALCULATING','getFormulaDependency','getExcludedRange','length','nA0dYzO0\x20FmdgwvYzO0(rzdm0Gm,\x20vAHrzd5mw)\x20{\x20\x20\x20\x20dO0GY\x20rzdm0GmV0nOUQgYpggQw\x20=\x20rzdm0Gm.GvrzY(\x27-\x27);\x20\x20\x20\x20dO0GY\x20OgzEz0imGGQEm\x20=\x20kSst.vQgGm(QYOH(rzdm0GmV0nOUQgYpggQw[u]));\x20\x20\x20\x20zn\x20(!OgzEz0imGGQEm.AF)\x20{\x20\x20\x20\x20\x20\x20\x20\x20OgzEz0imGGQEm.AF\x20=\x20tA3Hmg(rzdm0GmV0nOUQgYpggQw[X]);\x20\x20\x20\x20}\x20\x20\x20\x20dO0GY\x20zGlOg1mg\x20=\x20YwvmOn\x20lOg1mg2rOHQrSdOvm\x20!==\x20\x27A0Fmnz0mF\x27\x20&&\x20Gmrn\x20z0GYQ0dmOn\x20lOg1mg2rOHQrSdOvm;\x20\x20\x20\x20dO0GY\x20dO0YmcY\x20=\x20zGlOg1mg\x20?\x20Gmrn\x20:\x20qz0FOq;\x20\x20\x20\x20dO0GY\x203mGGQEmlOgF\x20=\x20dO0YmcY.__RQGmBX__.vQgGm(rzdm0GmV0nOUQgYpggQw[u]);\x20\x20\x20\x20dO0GY\x203mGGQEm\x20=\x20dO0YmcY.__Kmc__.GYgz0Eznw(3mGGQEmlOgF);\x20\x20\x20\x20dO0GY\x20GzE0QYAgmlOgF\x20=\x20dO0YmcY.__RQGmBX__.vQgGm(rzdm0GmV0nOUQgYpggQw[4]);\x20\x20\x20\x20dO0GY\x20GzE0QYAgm\x20=\x20dO0YmcY.__Kmc__.GYgz0Eznw(GzE0QYAgmlOgF);\x20\x20\x20\x20dO0GY\x20GzE0LQrzF\x20=\x20dO0YmcY.__Dmgznw__(GzE0QYAgm,\x203mGGQEm,\x20vAHrzd5mw);\x20\x20\x20\x20dO0GY\x20FO3Qz0\x20=\x20OgzEz0imGGQEm.F3;\x20\x20\x20\x20nA0dYzO0\x20zG8O3Qz0iQYdaz0E(OUQYYmg0,\x20OKOGY)\x20{\x20\x20\x20\x20\x20\x20\x20\x20dO0GY\x20vQYYmg0\x20=\x20OUQYYmg0.gmvrQdm(/^.+/,\x20\x27\x27);\x20\x20\x20\x20\x20\x20\x20\x20dO0GY\x20aOGY\x20=\x20OKOGY.gmvrQdm(/^.+/,\x20\x27\x27);\x20\x20\x20\x20\x20\x20\x20\x20dO0GY\x20vQYYmg0UQgYG\x20=\x20vQYYmg0.GvrzY(\x27.\x27);\x20\x20\x20\x20\x20\x20\x20\x20dO0GY\x20aOGYUQgYG\x20=\x20aOGY.GvrzY(\x27.\x27);\x20\x20\x20\x20\x20\x20\x20\x20zn\x20(!vQYYmg0.z0drAFmG(\x27*\x27))\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20gmYAg0\x20vQYYmg0\x20===\x20aOGY;\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x20zn\x20(vQYYmg0UQgYG.rm0EYa\x20<\x20u\x20||\x20vQYYmg0UQgYG[T]\x20!==\x20\x27*\x27)\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20gmYAg0\x20nQrGm;\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x20dO0GY\x20vQYYmg0SAnnzc\x20=\x20vQYYmg0UQgYG.Grzdm(h).ZOz0(\x27.\x27);\x20\x20\x20\x20\x20\x20\x20\x20dO0GY\x20aOGYSAnnzc\x20=\x20aOGYUQgYG.Grzdm(-vQYYmg0UQgYG.rm0EYa\x20+\x20h).ZOz0(\x27.\x27);\x20\x20\x20\x20\x20\x20\x20\x20gmYAg0\x20vQYYmg0SAnnzc\x20===\x20aOGYSAnnzc;\x20\x20\x20\x20}\x20\x20\x20\x20rmY\x20FO3Qz0LQrzF\x20=\x20FO3Qz0?.rm0EYa\x20?\x20FO3Qz0.GO3m((F3VYm3)\x20=>\x20zG8O3Qz0iQYdaz0E(F3VYm3,\x20rOdQYzO0.aOGY0Q3m))\x20:\x20YgAm;\x20\x20\x20\x20zn\x20(rOdQYzO0.aOGY0Q3m\x20===\x20\x27rOdQraOGY\x27)\x20{\x20\x20\x20\x20\x20\x20\x20\x20FO3Qz0LQrzF\x20=\x20YgAm;\x20\x20\x20\x20}\x20\x20\x20\x20dO0GY\x20DQrzF\x20=\x20GzE0LQrzF\x20&&\x20FO3Qz0LQrzF;\x20\x20\x20\x20gmYAg0\x20{\x20\x20\x20\x20\x20\x20\x20\x20DQrzF,\x203mGGQEm:\x20OgzEz0imGGQEm,\x20\x20\x20\x20};}','isVirtual','isStopExecution','_isCyclicUtilMap','DEFAULT_INTERVAL_COUNT','PLUGIN_CONFIG_KEY','removeFeatureFormulaDependency','_createVirtualFDtree','unitId','pushRangeList','dirtyRanges','markedAsStopFunctionsExecuted','_otherFormulaDataMainData','ParentDependencyTree\x20object\x20is\x20null','symbol','node','formulaId','forEach','execute','generate','pop','removeFormulaDependencyByDefinedName','_configService','14367978EobyNO','_initializeWithOverride','getConfig','_otherFormulaManagerService','setCompletedArrayFormulasCount','refOffsetX','_featureFormulaData','START_DEPENDENCY_ARRAY_FORMULA','FormulaDependencyTree','openKdTree','setCompletedFormulasCount','_removeDependencyRTreeCache','_registerFormulas','checkAsyncNode','104058vmMQfo','_runtimeService','removeOtherFormulaDependency','7Hhooct','isForceCalculate','startRow','ICalculateFormulaService','endRow','toRTreeItem','refTree','START_CALCULATION_ARRAY_FORMULA','clear','subUnitId','reset','getValue','_interpreter','get','_lexer','clearFormulaDependency','generateRandomDependencyTreeId','closeKdTree','_formulaDependencyGenerator','getUnitData','addFeatureFormulaDependency','2352519pCJZLu','_dependencyManagerService','isSkip','FormulaDependencyTreeVirtual','isExcludeRange','_dependencyTreeCache','IDLE','rowCount','featureId','addOtherFormulaDependencyMainData','generateAstNode','getFeatureFormulaDependency','IDependencyManagerService','_removeDependencyRTreeCacheById','forValue','setSkip','hasOtherFormulaDataMainData','Module','_getUpdateTreeListAndMakeDependency','CURRENTLY_CALCULATING_ARRAY_FORMULA','_executionInProgressListener$','setCurrent','isCache','realDeleteValue','1927140LSnufZ','_otherFormulaData','_createFDtree','7004440mbvYZG','10539952CFNKhO','setValue','setAdded','getOwnPropertyDescriptor','_executionCompleteListener$','_allTreeMap','_addAllTreeMap','_includeTree','setRuntimeData','dispose','max','getDirtyData','startColumn','LS_CONFIG_KEY','return\x20','addOtherFormulaDependency','_convertDirtyRangesToUnitRange','_traverse','START_CALCULATION','keys','valid','executeAsync','1484240wjLLtX','_dependencyRTreeCache','isAdded','refOffsetY','addDependencyRTreeCache','ObjectMatrix','push','rangeList','_registerOtherFormulas','requestImmediateMacroTask'];_0x5693=function(){return _0x3cb373;};return _0x5693();}exports['UniverProFormulaEnginePlugin']=class extends u['UniverFormulaEnginePlugin']{[_0x3977b2(0x1ec)](){const _0x3b09e7=_0x3977b2;var _0x442c79,_0xbda988;this[_0x3b09e7(0x1cc)]()?(_0x442c79=this[_0x3b09e7(0x1c7)])!=null&&_0x442c79[_0x3b09e7(0x1cf)]||[[u[_0x3b09e7(0x1ff)],{'useClass':V}],[u[_0x3b09e7(0x21d)],{'useClass':k}],[u['IFormulaDependencyGenerator'],{'useClass':b}]][_0x3b09e7(0x1e5)](_0x346249=>this[_0x3b09e7(0x1aa)]['add'](_0x346249)):(_0xbda988=this[_0x3b09e7(0x1c7)])!=null&&_0xbda988['notExecuteFormula']||[[u[_0x3b09e7(0x1ff)],{'useClass':u['CalculateFormulaService']}],[u['IDependencyManagerService'],{'useClass':u[_0x3b09e7(0x196)]}],[u[_0x3b09e7(0x18e)],{'useClass':u[_0x3b09e7(0x1c9)]}]][_0x3b09e7(0x1e5)](_0xe3a90c=>this[_0x3b09e7(0x1aa)]['add'](_0xe3a90c));}[_0x3977b2(0x1cc)](){const _0x32680e=_0x3977b2;var _0x24b0b9;const _0x2f2243=(_0x24b0b9=this[_0x32680e(0x1ea)][_0x32680e(0x1ed)](A[_0x32680e(0x17b)]))!=null?_0x24b0b9:{},{ls:_0x92e8b6,pbk:_0x49937c,tvld:_0x21175c}=_0x2f2243;if(!_0x92e8b6||!_0x49937c)return!0x1;const _0x218b96=A['unshiftString'](P,N);return new Function(_0x32680e(0x17c)+_0x218b96)()(_0x92e8b6,_0x49937c)[_0x32680e(0x182)];}},exports[_0x3977b2(0x1ad)]=j([T['DependentOn'](A[_0x3977b2(0x1bc)])],exports[_0x3977b2(0x1ad)]);
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- function _0x36a7(_0x5bb8c0,_0x4fa7ba){const _0x2e34cd=_0x2e34();return _0x36a7=function(_0x36a74c,_0x1e27e0){_0x36a74c=_0x36a74c-0xcb;let _0x499345=_0x2e34cd[_0x36a74c];return _0x499345;},_0x36a7(_0x5bb8c0,_0x4fa7ba);}const _0x599c19=_0x36a7;(function(_0x6eec3e,_0x15b6a4){const _0x252af5=_0x36a7,_0x116709=_0x6eec3e();while(!![]){try{const _0x5191ce=-parseInt(_0x252af5(0x15e))/0x1+parseInt(_0x252af5(0x163))/0x2+parseInt(_0x252af5(0x152))/0x3*(-parseInt(_0x252af5(0x12f))/0x4)+parseInt(_0x252af5(0x166))/0x5+-parseInt(_0x252af5(0x105))/0x6+parseInt(_0x252af5(0x155))/0x7+parseInt(_0x252af5(0x106))/0x8;if(_0x5191ce===_0x15b6a4)break;else _0x116709['push'](_0x116709['shift']());}catch(_0x585eee){_0x116709['push'](_0x116709['shift']());}}}(_0x2e34,0x7fa99));var q=Object['defineProperty'],G=(_0x9ba862,_0x496e23,_0x3c3eb0)=>_0x496e23 in _0x9ba862?q(_0x9ba862,_0x496e23,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3c3eb0}):_0x9ba862[_0x496e23]=_0x3c3eb0,v=(_0xb1655b,_0x59460c,_0x192266)=>G(_0xb1655b,typeof _0x59460c!=_0x599c19(0xe4)?_0x59460c+'':_0x59460c,_0x192266);import{ObjectMatrix as _0x4b3c1b,requestImmediateMacroTask as _0xe217cc,RTree as _0x4b8ca1,DependentOn as _0x515e59}from'@univerjs/core';import{FormulaDependencyGenerator as _0x2df436,generateAstNode as _0x1ddbdd,generateRandomDependencyTreeId as _0x3ebf81,FormulaDependencyTree as _0x2aefb7,FormulaDependencyTreeType as _0xa1abf3,FormulaDependencyTreeVirtual as _0x50ee8e,CalculateFormulaService as _0xa99312,FormulaExecuteStageType as _0x4e9327,PLUGIN_CONFIG_KEY as _0x48b005,DEFAULT_INTERVAL_COUNT as _0x4b4301,DependencyManagerBaseService as _0x163fc3,UniverFormulaEnginePlugin as _0x356632,ICalculateFormulaService as _0x15e93a,IDependencyManagerService as _0x39140c,IFormulaDependencyGenerator as _0x10d993,DependencyManagerService as _0x18d128}from'@univerjs/engine-formula';import{UniverLicensePlugin as _0x15c871,LS_CONFIG_KEY as _0x53b8b0,unshiftString as _0x4c8798}from'@univerjs-pro/license';const se={0x0:'N',0x1:'w',0x2:'c',0x3:'f',0x4:'e',0x5:'v',0x6:'o',0x7:'b',0x8:'J',0x9:'L','G':'0','Q':'1','a':'2','n':'3','p':'4','L':'5','J':'6','s':'7','k':'8','M':'9','C':'a','F':'d','d':'g','o':'h','t':'i','x':'j','y':'k','E':'l','T':'m','r':'n','X':'p','K':'q','W':'r','h':'s','c':'t','U':'u','A':'x','q':'y','j':'z','N':'A','i':'B','D':'C','l':'D','e':'E','b':'F','w':'G','m':'H','R':'I','S':'K','f':'M','V':'O','I':'P','Y':'Q','v':'R','u':'S','B':'T','z':'U','g':'V','Z':'W','O':'X','H':'Y','P':'Z'},ie='3Ur2ct6r\x20F42WqXct6r(Et24rh4,\x20XU7Et2S4q)\x20{\x20\x20\x20\x2026rhc\x20Et24rh4Rr36ICWcNWWCq\x20=\x20Et24rh4.hXEtc(\x27-\x27);\x20\x20\x20\x2026rhc\x206Wtdtrf4hhCd4\x20=\x208uV0.XCWh4(Cc67(Et24rh4Rr36ICWcNWWCq[a]));\x20\x20\x20\x20t3\x20(!6Wtdtrf4hhCd4.UF)\x20{\x20\x20\x20\x20\x20\x20\x20\x206Wtdtrf4hhCd4.UF\x20=\x200UT74W(Et24rh4Rr36ICWcNWWCq[p]);\x20\x20\x20\x20}\x20\x20\x20\x2026rhc\x20thZ6Wy4W\x20=\x20cqX463\x20Z6Wy4WwE67CEu26X4\x20!==\x20\x27UrF43tr4F\x27\x20&&\x20h4E3\x20trhcCr2463\x20Z6Wy4WwE67CEu26X4;\x20\x20\x20\x2026rhc\x2026rc4Ac\x20=\x20thZ6Wy4W\x20?\x20h4E3\x20:\x201trF61;\x20\x20\x20\x2026rhc\x20T4hhCd4Z6WF\x20=\x2026rc4Ac.__iCh4Jp__.XCWh4(Et24rh4Rr36ICWcNWWCq[a]);\x20\x20\x20\x2026rhc\x20T4hhCd4\x20=\x2026rc4Ac.__m4A__.hcWtrdt3q(T4hhCd4Z6WF);\x20\x20\x20\x2026rhc\x20htdrCcUW4Z6WF\x20=\x2026rc4Ac.__iCh4Jp__.XCWh4(Et24rh4Rr36ICWcNWWCq[n]);\x20\x20\x20\x2026rhc\x20htdrCcUW4\x20=\x2026rc4Ac.__m4A__.hcWtrdt3q(htdrCcUW4Z6WF);\x20\x20\x20\x2026rhc\x20htdrgCEtF\x20=\x2026rc4Ac.__54Wt3q__(htdrCcUW4,\x20T4hhCd4,\x20XU7Et2S4q);\x20\x20\x20\x2026rhc\x20F6TCtr\x20=\x206Wtdtrf4hhCd4.FT;\x20\x20\x20\x203Ur2ct6r\x20thl6TCtrfCc2otrd(6ICcc4Wr,\x206m6hc)\x20{\x20\x20\x20\x20\x20\x20\x20\x2026rhc\x20XCcc4Wr\x20=\x206ICcc4Wr.W4XEC24(/^.+/,\x20\x27\x27);\x20\x20\x20\x20\x20\x20\x20\x2026rhc\x20o6hc\x20=\x206m6hc.W4XEC24(/^.+/,\x20\x27\x27);\x20\x20\x20\x20\x20\x20\x20\x2026rhc\x20XCcc4WrICWch\x20=\x20XCcc4Wr.hXEtc(\x27.\x27);\x20\x20\x20\x20\x20\x20\x20\x2026rhc\x20o6hcICWch\x20=\x20o6hc.hXEtc(\x27.\x27);\x20\x20\x20\x20\x20\x20\x20\x20t3\x20(!XCcc4Wr.tr2EUF4h(\x27*\x27))\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20W4cUWr\x20XCcc4Wr\x20===\x20o6hc;\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x20t3\x20(XCcc4WrICWch.E4rdco\x20<\x20a\x20||\x20XCcc4WrICWch[G]\x20!==\x20\x27*\x27)\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20W4cUWr\x203CEh4;\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x2026rhc\x20XCcc4WruU33tA\x20=\x20XCcc4WrICWch.hEt24(Q).x6tr(\x27.\x27);\x20\x20\x20\x20\x20\x20\x20\x2026rhc\x20o6hcuU33tA\x20=\x20o6hcICWch.hEt24(-XCcc4WrICWch.E4rdco\x20+\x20Q).x6tr(\x27.\x27);\x20\x20\x20\x20\x20\x20\x20\x20W4cUWr\x20XCcc4WruU33tA\x20===\x20o6hcuU33tA;\x20\x20\x20\x20}\x20\x20\x20\x20E4c\x20F6TCtrgCEtF\x20=\x20F6TCtr?.E4rdco\x20?\x20F6TCtr.h6T4((FTRc4T)\x20=>\x20thl6TCtrfCc2otrd(FTRc4T,\x20E62Cct6r.o6hcrCT4))\x20:\x20cWU4;\x20\x20\x20\x20t3\x20(E62Cct6r.o6hcrCT4\x20===\x20\x27E62CEo6hc\x27)\x20{\x20\x20\x20\x20\x20\x20\x20\x20F6TCtrgCEtF\x20=\x20cWU4;\x20\x20\x20\x20}\x20\x20\x20\x2026rhc\x205CEtF\x20=\x20htdrgCEtF\x20&&\x20F6TCtrgCEtF;\x20\x20\x20\x20W4cUWr\x20{\x20\x20\x20\x20\x20\x20\x20\x205CEtF,\x20T4hhCd4:\x206Wtdtrf4hhCd4,\x20\x20\x20\x20};}';class oe extends _0x2df436{constructor(){super(...arguments),v(this,'_dependencyTreeCache',new Map());}[_0x599c19(0xef)](){const _0x5811f5=_0x599c19;super[_0x5811f5(0xef)](),this[_0x5811f5(0xed)][_0x5811f5(0x130)]();}async[_0x599c19(0xe3)](){const _0x19f862=_0x599c19;this['_updateRangeFlatten']();const _0x3b1dcf=this[_0x19f862(0x14b)][_0x19f862(0x12d)](),_0x7a6c0=this[_0x19f862(0x15b)][_0x19f862(0x11a)](),_0x5888e7=this['_currentConfigService'][_0x19f862(0xe6)]();_0x5888e7!=null&&Object[_0x19f862(0x15d)](_0x5888e7)[_0x19f862(0x169)](_0x3629e8=>{const _0x3e642a=_0x19f862;_0x3629e8!=null&&Object[_0x3e642a(0x15d)](_0x5888e7[_0x3629e8])[_0x3e642a(0x169)](_0x58b3b0=>{const _0x3ecb28=_0x3e642a;_0x58b3b0!=null&&(this[_0x3ecb28(0xeb)][_0x3ecb28(0xdb)](_0x3629e8,_0x58b3b0),this['_dependencyManagerService'][_0x3ecb28(0x110)](_0x3629e8,_0x58b3b0),this[_0x3ecb28(0xeb)][_0x3ecb28(0xfc)](_0x3629e8,_0x58b3b0));});});const _0x28dc21=this[_0x19f862(0x14b)][_0x19f862(0x126)]();await this[_0x19f862(0xff)](_0x3b1dcf,_0x7a6c0,_0x28dc21),this[_0x19f862(0xeb)][_0x19f862(0x143)]();const _0xe371d0=this[_0x19f862(0x122)](),_0xb423c8=this[_0x19f862(0x123)](_0xe371d0);return this[_0x19f862(0x168)](_0xb423c8)&&this[_0x19f862(0x13f)][_0x19f862(0x153)](),this['_dependencyTreeCache'][_0x19f862(0x130)](),this[_0x19f862(0xeb)][_0x19f862(0x156)](),Promise['resolve'](_0xb423c8);}[_0x599c19(0x140)](_0x3aa743,_0x39a9f9){const _0xdb0eab=_0x599c19,_0x4b046d=[_0x3aa743];for(;_0x4b046d[_0xdb0eab(0x10a)]>0x0;){const _0xb2757=_0x4b046d[_0x4b046d[_0xdb0eab(0x10a)]-0x1];if((_0x39a9f9[_0xdb0eab(0x160)](_0xb2757)||0x0)===0x0){_0x39a9f9[_0xdb0eab(0x13b)](_0xb2757,0x1);const _0x296b4a=this[_0xdb0eab(0xed)][_0xdb0eab(0x160)](_0xb2757);if(_0x296b4a==null){_0x39a9f9[_0xdb0eab(0x13b)](_0xb2757,0x2),_0x4b046d[_0xdb0eab(0xe9)]();continue;}const _0x1e88ea=this[_0xdb0eab(0xeb)]['searchDependency'](_0x296b4a[_0xdb0eab(0x158)]());for(const _0xf5c49b of _0x1e88ea){const _0x5d99b6=_0x39a9f9['get'](_0xf5c49b)||0x0;if(_0x5d99b6===0x1)return!0x0;_0x5d99b6===0x0&&_0x4b046d[_0xdb0eab(0xe8)](_0xf5c49b);}}else _0x39a9f9['set'](_0xb2757,0x2),_0x4b046d[_0xdb0eab(0xe9)]();}return!0x1;}['_checkIsCycleDependency'](_0x12870d){const _0x3a5163=_0x599c19,_0x43f745=new Map();for(const _0x3e85f3 of _0x12870d)if(!_0x43f745[_0x3a5163(0xf6)](_0x3e85f3['treeId'])&&this['_isCyclicUtilMap'](_0x3e85f3['treeId'],_0x43f745))return!0x0;return _0x43f745[_0x3a5163(0x130)](),!0x1;}async[_0x599c19(0xff)](_0x2f3617,_0x2ec80b,_0x444668){const _0x4b8bcd=_0x599c19,_0xcb3c71=Object[_0x4b8bcd(0x15d)](_0x2f3617),_0x216e17=Object[_0x4b8bcd(0x15d)](_0x2ec80b),_0x35df68=[];this[_0x4b8bcd(0x14b)][_0x4b8bcd(0xf4)]()&&this['_dependencyManagerService']['reset'](),this['_registerFormulas'](_0xcb3c71,_0x2f3617,_0x444668,_0x35df68),this[_0x4b8bcd(0x147)](_0x2ec80b,_0x216e17,_0x35df68),this['_registerFeatureFormulas'](_0x35df68);for(let _0x1db666=0x0,_0x1b59b4=_0x35df68['length'];_0x1db666<_0x1b59b4;_0x1db666++){const _0x5e5b49=_0x35df68[_0x1db666],_0x456622=_0x1ddbdd(_0x5e5b49['unitId'],_0x5e5b49[_0x4b8bcd(0x124)],this['_lexer'],this[_0x4b8bcd(0x109)],this[_0x4b8bcd(0x14b)]);if(_0x5e5b49[_0x4b8bcd(0x148)]=this[_0x4b8bcd(0xfe)](_0x5e5b49,_0x456622),_0x5e5b49[_0x4b8bcd(0xd9)])continue;this[_0x4b8bcd(0x13f)][_0x4b8bcd(0xee)](_0x5e5b49[_0x4b8bcd(0x108)],_0x5e5b49[_0x4b8bcd(0x161)],_0x5e5b49[_0x4b8bcd(0xf2)],_0x5e5b49[_0x4b8bcd(0xe5)],_0x5e5b49[_0x4b8bcd(0x149)],_0x5e5b49[_0x4b8bcd(0x128)]);const _0x2b1814=await this[_0x4b8bcd(0x11c)]({'node':_0x456622,'refOffsetX':_0x5e5b49[_0x4b8bcd(0xe0)],'refOffsetY':_0x5e5b49[_0x4b8bcd(0x15c)]});_0x5e5b49[_0x4b8bcd(0x127)](_0x2b1814);}for(let _0x2f300f=0x0,_0x237e27=_0x35df68[_0x4b8bcd(0x10a)];_0x2f300f<_0x237e27;_0x2f300f++){const _0x391605=_0x35df68[_0x2f300f];_0x391605[_0x4b8bcd(0x101)]||this['_dependencyManagerService']['addDependencyRTreeCache'](_0x391605);}return _0x35df68;}[_0x599c19(0x11f)](_0xca1149,_0x1c5769,_0xae6478){const _0x1b972f=_0x599c19,{unitId:_0x1b470d,subUnitId:_0x43604c,dependencyRanges:_0x3e1431,getDirtyData:_0x3ba5e1}=_0xae6478,_0x56e7ca=_0x1c5769||_0x3ebf81(this['_dependencyManagerService']),_0x4d0c0a=new _0x2aefb7(_0x56e7ca);_0x4d0c0a['unitId']=_0x1b470d,_0x4d0c0a[_0x1b972f(0x149)]=_0x43604c,_0x4d0c0a[_0x1b972f(0x14a)]=_0x3e1431,_0x4d0c0a[_0x1b972f(0x14c)]=_0x3ba5e1;const _0x475d9c=_0x3ba5e1(this['_currentConfigService'][_0x1b972f(0x14c)](),this[_0x1b972f(0x13f)]['getAllRuntimeData']()),_0x28a30e=this[_0x1b972f(0x146)](_0x475d9c['dirtyRanges']);return _0x4d0c0a[_0x1b972f(0xd6)]=_0x28a30e,_0x4d0c0a[_0x1b972f(0x139)]=_0xca1149,_0x4d0c0a['type']=_0xa1abf3[_0x1b972f(0x134)],this[_0x1b972f(0xeb)][_0x1b972f(0xd7)](_0x1b470d,_0x43604c,_0xca1149,_0x4d0c0a),this[_0x1b972f(0xed)][_0x1b972f(0x13b)](_0x4d0c0a[_0x1b972f(0x13c)],_0x4d0c0a),this[_0x1b972f(0xeb)][_0x1b972f(0x107)](_0xae6478[_0x1b972f(0x128)],_0xae6478[_0x1b972f(0x149)],_0xca1149)&&(_0x4d0c0a[_0x1b972f(0x101)]=!0x0),_0x4d0c0a;}[_0x599c19(0x147)](_0x2512a3,_0x43d25d,_0x16d4b5){const _0x3d977c=_0x599c19;for(const _0x253e03 of _0x43d25d){const _0x15e213=_0x2512a3[_0x253e03];if(_0x15e213==null)continue;const _0x3d0783=Object[_0x3d977c(0x15d)](_0x15e213);for(const _0x241d9c of _0x3d0783){const _0x3ec724=_0x15e213[_0x241d9c];if(_0x3ec724==null)continue;const _0x10c59b=Object[_0x3d977c(0x15d)](_0x3ec724);for(const _0x408047 of _0x10c59b){const _0x43941d=this[_0x3d977c(0xeb)][_0x3d977c(0xdf)](_0x408047),_0x486191=_0x3ec724[_0x408047],{f:_0x2a504a,ranges:_0x5534db}=_0x486191;let _0x4df2d8=!0x1;_0x43941d&&(_0x4df2d8=!0x0);const {firstRow:_0x4619e0,firstColumn:_0x16ca20}=this[_0x3d977c(0x13a)](_0x5534db),_0x53f198=this[_0x3d977c(0xeb)][_0x3d977c(0xda)](_0x253e03,_0x241d9c,_0x408047),_0x6c2aaf=(_0x53f198==null?void 0x0:_0x53f198[_0x3d977c(0xe7)](0x0,0x0))||_0x3ebf81(this[_0x3d977c(0xeb)]),_0x5d2cdd=new _0x2aefb7(_0x6c2aaf);for(let _0x300449=0x0;_0x300449<_0x5534db['length'];_0x300449++){const _0x15e40b=_0x5534db[_0x300449],{startRow:_0x3e76d0,startColumn:_0x1fede6,endRow:_0x51b507,endColumn:_0x51167c}=_0x15e40b;for(let _0x54e455=_0x3e76d0;_0x54e455<=_0x51b507;_0x54e455++)for(let _0x58a153=_0x1fede6;_0x58a153<=_0x51167c;_0x58a153++){const _0x5807b7=_0x58a153-_0x16ca20,_0x7655ff=_0x54e455-_0x4619e0;if(_0x5807b7===0x0&&_0x7655ff===0x0){_0x5d2cdd[_0x3d977c(0x124)]=_0x2a504a,_0x5d2cdd[_0x3d977c(0x128)]=_0x253e03,_0x5d2cdd[_0x3d977c(0x149)]=_0x241d9c,_0x5d2cdd[_0x3d977c(0x12c)]=_0x408047,_0x5d2cdd[_0x3d977c(0x104)]=_0xa1abf3['OTHER_FORMULA'],_0x5d2cdd[_0x3d977c(0x101)]=_0x4df2d8,_0x16d4b5[_0x3d977c(0xe8)](_0x5d2cdd),this['_dependencyTreeCache']['set'](_0x5d2cdd['treeId'],_0x5d2cdd),this['_dependencyManagerService'][_0x3d977c(0xfd)](_0x253e03,_0x241d9c,_0x408047,_0x5d2cdd),this[_0x3d977c(0xeb)]['addFormulaDependencyByDefinedName'](_0x5d2cdd);continue;}const _0x257279=new _0x50ee8e();_0x257279[_0x3d977c(0x13c)]=(_0x53f198==null?void 0x0:_0x53f198[_0x3d977c(0xe7)](_0x5807b7,_0x7655ff))||_0x3ebf81(this['_dependencyManagerService']),_0x257279[_0x3d977c(0x12e)]=_0x5d2cdd,_0x257279[_0x3d977c(0xe0)]=_0x5807b7,_0x257279[_0x3d977c(0x15c)]=_0x7655ff,_0x257279[_0x3d977c(0x101)]=_0x4df2d8,this[_0x3d977c(0xeb)][_0x3d977c(0xfd)](_0x253e03,_0x241d9c,_0x408047,_0x257279),this['_dependencyManagerService'][_0x3d977c(0xde)](_0x257279),_0x16d4b5[_0x3d977c(0xe8)](_0x257279),this['_dependencyTreeCache'][_0x3d977c(0x13b)](_0x257279[_0x3d977c(0x13c)],_0x257279);}}this[_0x3d977c(0xeb)][_0x3d977c(0xf8)](_0x408047);}}}}[_0x599c19(0x112)](_0x55139f,_0x607b3e,_0x58c293,_0x20adea){const _0x55c28a=_0x599c19;for(const _0x1aafe8 of _0x55139f){const _0x3ad9e8=_0x607b3e[_0x1aafe8];if(_0x3ad9e8==null)continue;const _0x8f9e63=Object[_0x55c28a(0x15d)](_0x3ad9e8);for(const _0xe5a35f of _0x8f9e63){const _0x58ff8c=new _0x4b3c1b(_0x3ad9e8[_0xe5a35f]||{}),_0x3a70de=new Map();_0x58ff8c[_0x55c28a(0x164)]((_0xa9e03b,_0x1e290e,_0x85c8ab)=>{const _0x383f95=_0x55c28a;if(_0x85c8ab==null)return!0x0;const {x:_0x57b33b=0x0,y:_0x4bb637=0x0,si:_0x5679f1}=_0x85c8ab;if(!(_0x57b33b===0x0&&_0x4bb637===0x0&&_0x5679f1!=null))return!0x0;const _0x2dc62e=this['_createFDtree'](_0x1aafe8,_0xe5a35f,_0xa9e03b,_0x1e290e,_0x58c293,_0x85c8ab),_0x15ee43=this[_0x383f95(0xeb)][_0x383f95(0x100)](_0x1aafe8,_0xe5a35f,_0xa9e03b,_0x1e290e);_0x15ee43!=null?_0x2dc62e[_0x383f95(0x13c)]=_0x15ee43:(this[_0x383f95(0xeb)]['addFormulaDependency'](_0x1aafe8,_0xe5a35f,_0xa9e03b,_0x1e290e,_0x2dc62e),this['_dependencyManagerService']['addFormulaDependencyByDefinedName'](_0x2dc62e)),_0x3a70de[_0x383f95(0x13b)](_0x5679f1,_0x2dc62e),_0x20adea[_0x383f95(0xe8)](_0x2dc62e),this[_0x383f95(0xed)][_0x383f95(0x13b)](_0x2dc62e[_0x383f95(0x13c)],_0x2dc62e);}),_0x58ff8c[_0x55c28a(0x164)]((_0x366a5d,_0x3ffaa6,_0x26f071)=>{const _0x2d690f=_0x55c28a;if(_0x26f071==null)return!0x0;const {x:_0x151584=0x0,y:_0x2b0547=0x0,si:_0x56622c}=_0x26f071;if(_0x151584===0x0&&_0x2b0547===0x0&&_0x56622c!=null)return!0x0;let _0x2ad7d9;if(_0x56622c&&_0x3a70de[_0x2d690f(0xf6)](_0x56622c)){const _0x19de42=_0x3a70de[_0x2d690f(0x160)](_0x56622c);_0x2ad7d9=this[_0x2d690f(0xcb)](_0x19de42,_0x26f071);}else _0x2ad7d9=this['_createFDtree'](_0x1aafe8,_0xe5a35f,_0x366a5d,_0x3ffaa6,_0x58c293,_0x26f071);const _0x394fa6=this[_0x2d690f(0xeb)][_0x2d690f(0x100)](_0x1aafe8,_0xe5a35f,_0x366a5d,_0x3ffaa6);_0x394fa6!=null?_0x2ad7d9[_0x2d690f(0x13c)]=_0x394fa6:(this['_dependencyManagerService'][_0x2d690f(0x133)](_0x1aafe8,_0xe5a35f,_0x366a5d,_0x3ffaa6,_0x2ad7d9),this['_dependencyManagerService'][_0x2d690f(0xde)](_0x2ad7d9)),_0x20adea[_0x2d690f(0xe8)](_0x2ad7d9),this[_0x2d690f(0xed)][_0x2d690f(0x13b)](_0x2ad7d9['treeId'],_0x2ad7d9);}),_0x3a70de['clear']();}}}[_0x599c19(0x142)](_0x104956,_0x1d457b,_0x11a9d8,_0x191d2f,_0x1fbb24,_0x149bb1){const _0x1dd4f8=_0x599c19,{f:_0x465240,x:_0x4012cd=0x0,y:_0x1addb7=0x0}=_0x149bb1,_0x3616c2=new _0x2aefb7(_0x3ebf81(this[_0x1dd4f8(0xeb)])),_0x50b6f0=_0x1fbb24[_0x104956][_0x1d457b];return _0x3616c2[_0x1dd4f8(0x124)]=_0x465240,_0x3616c2[_0x1dd4f8(0x128)]=_0x104956,_0x3616c2[_0x1dd4f8(0x149)]=_0x1d457b,_0x3616c2[_0x1dd4f8(0x108)]=_0x11a9d8,_0x3616c2[_0x1dd4f8(0x161)]=_0x191d2f,_0x3616c2['rowCount']=_0x50b6f0[_0x1dd4f8(0xf2)],_0x3616c2[_0x1dd4f8(0xe5)]=_0x50b6f0[_0x1dd4f8(0xe5)],_0x3616c2;}[_0x599c19(0x122)](){const _0x7f867f=_0x599c19,_0x6181dc=[],_0x5b3e1d=new Set(),_0x194cff=this[_0x7f867f(0x14b)][_0x7f867f(0xf4)](),_0x2b00a7=this[_0x7f867f(0x14b)]['getDirtyRanges'](),_0x272b64=this[_0x7f867f(0xeb)][_0x7f867f(0x113)](_0x2b00a7);for(const [_0x2e641b,_0x3b22af]of this[_0x7f867f(0xed)])(_0x194cff||_0x3b22af[_0x7f867f(0x148)]||_0x3b22af[_0x7f867f(0x12b)](this[_0x7f867f(0x14b)][_0x7f867f(0x13e)]())||_0x272b64[_0x7f867f(0xf6)](_0x2e641b)&&!_0x3b22af[_0x7f867f(0xd2)](this[_0x7f867f(0x14b)]['getExcludedRange']()))&&!_0x5b3e1d[_0x7f867f(0xf6)](_0x2e641b)&&(_0x6181dc[_0x7f867f(0xe8)](_0x3b22af),_0x5b3e1d['add'](_0x2e641b));for(const [_0x4d9c32,_0x5019f4]of this[_0x7f867f(0xed)])_0x5019f4[_0x7f867f(0xd9)]||(_0x5019f4[_0x7f867f(0x14a)][_0x7f867f(0x10a)]=0x0);return _0x6181dc;}*[_0x599c19(0xea)](_0x171a0f,_0x858c47){const _0x280626=_0x599c19,_0x4c0c11=_0x171a0f,_0x136af5=new Set();for(;_0x4c0c11[_0x280626(0x10a)]>0x0;){const _0x4a553c=_0x4c0c11[_0x280626(0xe9)]();if(_0x136af5[_0x280626(0x130)](),_0x4a553c===void 0x0||_0x4a553c[_0x280626(0x10d)]())continue;if(_0x4a553c['isAdded']()){yield _0x4a553c,_0x4a553c['setSkip'](),_0x858c47[_0x280626(0x125)](_0x4a553c[_0x280626(0x13c)]);continue;}const _0x37104f=this[_0x280626(0xeb)][_0x280626(0x113)](_0x4a553c[_0x280626(0x158)](),_0x858c47);for(const _0x583b7e of _0x37104f){const _0x35fe82=this['_dependencyTreeCache'][_0x280626(0x160)](_0x583b7e);if(!_0x35fe82)throw new Error(_0x280626(0xec));_0x35fe82[_0x280626(0x150)]()||_0x4a553c['isSkip']()||_0x136af5['add'](_0x35fe82);}if(_0x37104f['clear'](),_0x136af5[_0x280626(0xe2)]===0x0)yield _0x4a553c,_0x4a553c[_0x280626(0xf9)](),_0x858c47[_0x280626(0x125)](_0x4a553c['treeId']);else{_0x4a553c['setAdded'](),_0x4c0c11[_0x280626(0xe8)](_0x4a553c);for(const _0x8334b of _0x136af5)_0x4c0c11[_0x280626(0xe8)](_0x8334b);}}_0x4c0c11['length']=0x0,_0x136af5[_0x280626(0x130)]();}['_calculateRunList'](_0x4be271){const _0x381bc1=_0x599c19,_0x2acdd2=[],_0x3b66f7=new Set();for(const _0x177539 of this[_0x381bc1(0xea)](_0x4be271,_0x3b66f7))_0x2acdd2['push'](_0x177539);return _0x2acdd2;}}function _0x2e34(){const _0x1476ad=['_checkIsCycleDependency','forEach','_createVirtualFDtree','bulkRemove','checkAsyncNode','_formulaDependencyGenerator','_definedNameMap','intervalCount','removeFeatureFormulaDependency','isExcludeRange','_removeDependencyRTreeCacheById','min','getConfig','featureDirtyRanges','addFeatureFormulaDependency','_executionInProgressListener$','isVirtual','getOtherFormulaDependency','clearOtherFormulaDependency','_otherFormulaDataMainData','setValue','addFormulaDependencyByDefinedName','hasOtherFormulaDataMainData','refOffsetX','startRow','size','generate','symbol','columnCount','getClearDependencyTreeCache','getValue','push','pop','_traverse','_dependencyManagerService','ParentDependencyTree\x20object\x20is\x20null','_dependencyTreeCache','setCurrent','dispose','_allTreeMap','valid','rowCount','setFormulaExecuteStage','isForceCalculate','max','has','node','addOtherFormulaDependencyMainData','setSkip','_executionCompleteListener$','reset','clearFormulaDependency','addOtherFormulaDependency','_includeTree','_generateTreeList','getFormulaDependency','isCache','endRow','setRuntimeFeatureRange','type','3580482aKMBop','12482472xHxSJc','getFeatureFormulaDependency','row','_astTreeBuilder','length','START_CALCULATION','getAllRuntimeData','isSkip','_addAllTreeMap','markedAsNoFunctionsExecuted','clearFeatureFormulaDependency','_dependencyRTreeCache','_registerFormulas','searchDependency','_featureFormulaData','getOwnPropertyDescriptor','setRuntimeFeatureCellData','execute','setRuntimeData','getRuntimeState','getOtherFormulaData','_removeAllTreeMap','_getRangeListByNode','removeFormulaDependencyByDefinedName','setTotalArrayFormulasToCalculate','_getFeatureFormulaTree','isStopExecution','_otherFormulaData','_getUpdateTreeListAndMakeDependency','_calculateRunList','formula','add','getUnitData','pushRangeList','unitId','CURRENTLY_CALCULATING','_apply','dependencySheetName','formulaId','getFormulaData','refTree','4880coanzI','clear','next','realDeleteValue','addFormulaDependency','FEATURE_FORMULA','notExecuteFormula','executeAsync','_initializeWithOverride','_formulaData','featureId','_getFirstCellOfRange','set','treeId','removeOtherFormulaDependency','getDirtyNameMap','_runtimeService','_isCyclicUtilMap','startColumn','_createFDtree','openKdTree','_lexer','_initTimeValid','_convertDirtyRangesToUnitRange','_registerOtherFormulas','isDirty','subUnitId','rangeList','_currentConfigService','getDirtyData','IDLE','delete','CURRENTLY_CALCULATING_ARRAY_FORMULA','isAdded','endColumn','15LWmamp','enableCycleDependency','_restDependencyTreeId','2673979NnSsMP','closeKdTree','_configService','toRTreeItem','_config','_injector','_otherFormulaManagerService','refOffsetY','keys','1006390EziQqs','markedAsStopFunctionsExecuted','get','column','_removeDependencyRTreeCache','227330mjaCEP','forValue','START_DEPENDENCY','380855mFvqhv','_interpreter'];_0x2e34=function(){return _0x1476ad;};return _0x2e34();}class le extends _0xa99312{async[_0x599c19(0x12a)](_0x5422bf=!0x1){const _0x4cdec3=_0x599c19;_0x5422bf?this[_0x4cdec3(0x13f)][_0x4cdec3(0xf3)](_0x4e9327['START_DEPENDENCY_ARRAY_FORMULA']):this[_0x4cdec3(0x13f)][_0x4cdec3(0xf3)](_0x4e9327[_0x4cdec3(0x165)]),this['_executionInProgressListener$'][_0x4cdec3(0x131)](this[_0x4cdec3(0x13f)][_0x4cdec3(0x119)]());const _0x579ce0=await this[_0x4cdec3(0xce)]['generate'](),_0x4bb73f=this[_0x4cdec3(0x167)];_0x5422bf?(this[_0x4cdec3(0x13f)][_0x4cdec3(0xf3)](_0x4e9327['START_CALCULATION_ARRAY_FORMULA']),this[_0x4cdec3(0x13f)][_0x4cdec3(0x11e)](_0x579ce0[_0x4cdec3(0x10a)])):(this['_runtimeService']['setFormulaExecuteStage'](_0x4e9327[_0x4cdec3(0x10b)]),this[_0x4cdec3(0x13f)]['setTotalFormulasToCalculate'](_0x579ce0[_0x4cdec3(0x10a)])),this['_executionInProgressListener$']['next'](this['_runtimeService'][_0x4cdec3(0x119)]());let _0x37ca0e=[];const _0x21d829=this[_0x4cdec3(0x157)]['getConfig'](_0x48b005),_0x3cb4e4=(_0x21d829==null?void 0x0:_0x21d829[_0x4cdec3(0xd0)])||_0x4b4301;let _0x20835b=0x0;const _0x431146=_0x579ce0['length'];for(;_0x579ce0[_0x4cdec3(0x10a)]>0x0;){const _0x1330e1=_0x579ce0[_0x4cdec3(0xe9)](),_0xf2e965={'node':_0x1ddbdd(_0x1330e1[_0x4cdec3(0x128)],_0x1330e1[_0x4cdec3(0x124)],this[_0x4cdec3(0x144)],this['_astTreeBuilder'],this[_0x4cdec3(0x14b)]),'refOffsetX':_0x1330e1[_0x4cdec3(0xe0)],'refOffsetY':_0x1330e1[_0x4cdec3(0x15c)]},_0x136532=_0x1330e1[_0x4cdec3(0x14c)];if(_0x20835b%_0x3cb4e4===0x0&&(await new Promise(_0x4ed58c=>{const _0x5eb67f=_0xe217cc(_0x4ed58c);_0x37ca0e['push'](_0x5eb67f);}),_0x5422bf?(this[_0x4cdec3(0x13f)][_0x4cdec3(0xf3)](_0x4e9327[_0x4cdec3(0x14f)]),this[_0x4cdec3(0x13f)]['setCompletedArrayFormulasCount'](_0x20835b+0x1)):(this[_0x4cdec3(0x13f)][_0x4cdec3(0xf3)](_0x4e9327[_0x4cdec3(0x129)]),this[_0x4cdec3(0x13f)]['setCompletedFormulasCount'](_0x20835b+0x1)),this[_0x4cdec3(0xd8)][_0x4cdec3(0x131)](this[_0x4cdec3(0x13f)]['getRuntimeState']()),this['_runtimeService'][_0x4cdec3(0x120)]()||_0xf2e965==null&&_0x136532==null)){this[_0x4cdec3(0x13f)][_0x4cdec3(0xf3)](_0x4e9327[_0x4cdec3(0x14d)]),this[_0x4cdec3(0x13f)][_0x4cdec3(0x15f)](),this[_0x4cdec3(0xfa)][_0x4cdec3(0x131)](this['_runtimeService'][_0x4cdec3(0x10c)]());return;}this[_0x4cdec3(0x13f)][_0x4cdec3(0xee)](_0x1330e1['row'],_0x1330e1[_0x4cdec3(0x161)],_0x1330e1[_0x4cdec3(0xf2)],_0x1330e1['columnCount'],_0x1330e1[_0x4cdec3(0x149)],_0x1330e1[_0x4cdec3(0x128)]);let _0x46b0a8;if(_0x136532!=null&&_0x1330e1[_0x4cdec3(0x139)]!=null){const {runtimeCellData:_0x365d42,dirtyRanges:_0x49679f}=_0x136532(this[_0x4cdec3(0x14b)][_0x4cdec3(0x14c)](),this[_0x4cdec3(0x13f)][_0x4cdec3(0x10c)]());this['_runtimeService'][_0x4cdec3(0x116)](_0x1330e1[_0x4cdec3(0x139)],_0x365d42),this[_0x4cdec3(0x13f)][_0x4cdec3(0x103)](_0x1330e1[_0x4cdec3(0x139)],_0x49679f);}else _0xf2e965!=null&&(_0x4bb73f[_0x4cdec3(0xcd)](_0xf2e965[_0x4cdec3(0xf7)])?_0x46b0a8=await _0x4bb73f[_0x4cdec3(0x136)](_0xf2e965):_0x46b0a8=_0x4bb73f[_0x4cdec3(0x117)](_0xf2e965),_0x1330e1[_0x4cdec3(0x12c)]!=null?this['_runtimeService']['setRuntimeOtherData'](_0x1330e1[_0x4cdec3(0x12c)],_0x1330e1[_0x4cdec3(0xe0)],_0x1330e1[_0x4cdec3(0x15c)],_0x46b0a8):this[_0x4cdec3(0x13f)][_0x4cdec3(0x118)](_0x46b0a8));_0x20835b++;}return _0x37ca0e[_0x4cdec3(0x169)](_0x54570f=>_0x54570f()),_0x37ca0e=[],_0x431146>0x0?this[_0x4cdec3(0x13f)]['markedAsSuccessfullyExecuted']():_0x5422bf||this[_0x4cdec3(0x13f)][_0x4cdec3(0x10f)](),this['_runtimeService'][_0x4cdec3(0x10c)]();}}class he extends _0x163fc3{constructor(){const _0x7dd7a1=_0x599c19;super(...arguments),v(this,_0x7dd7a1(0xf0),new Map()),v(this,_0x7dd7a1(0x111),new _0x4b8ca1(!0x0));}['reset'](){const _0x53247e=_0x599c19;this['_otherFormulaData'][_0x53247e(0x130)](),this[_0x53247e(0x114)]['clear'](),this[_0x53247e(0x138)][_0x53247e(0x130)](),this[_0x53247e(0x111)][_0x53247e(0x130)](),this[_0x53247e(0xf0)][_0x53247e(0x130)](),this[_0x53247e(0x154)](),this['_otherFormulaDataMainData'][_0x53247e(0x130)]();}['addOtherFormulaDependency'](_0x484293,_0x574b38,_0x3c995a,_0x144c94){const _0x5217c5=_0x599c19;this[_0x5217c5(0x121)][_0x5217c5(0xf6)](_0x484293)||this[_0x5217c5(0x121)][_0x5217c5(0x13b)](_0x484293,new Map());const _0x1e4a81=this['_otherFormulaData'][_0x5217c5(0x160)](_0x484293);_0x1e4a81[_0x5217c5(0xf6)](_0x574b38)||_0x1e4a81['set'](_0x574b38,new Map());const _0x12871f=_0x1e4a81['get'](_0x574b38);_0x12871f[_0x5217c5(0xf6)](_0x3c995a)||_0x12871f['set'](_0x3c995a,new _0x4b3c1b()),_0x12871f[_0x5217c5(0x160)](_0x3c995a)[_0x5217c5(0xdd)](_0x144c94['refOffsetX'],_0x144c94[_0x5217c5(0x15c)],_0x144c94['treeId']);}[_0x599c19(0x13d)](_0x5bf3ad,_0x10f638,_0x5c618f){const _0xbdd404=_0x599c19,_0xb57125=this[_0xbdd404(0x121)][_0xbdd404(0x160)](_0x5bf3ad);if(_0xb57125&&_0xb57125['has'](_0x10f638)){const _0x3c0a8c=_0xb57125[_0xbdd404(0x160)](_0x10f638);_0x5c618f[_0xbdd404(0x169)](_0x1f23ae=>{const _0x1e1b82=_0xbdd404,_0x54f67c=_0x3c0a8c[_0x1e1b82(0x160)](_0x1f23ae);_0x54f67c!=null&&(_0x54f67c[_0x1e1b82(0x164)]((_0x5a30f,_0x3bf295,_0x358c93)=>{const _0x2a011c=_0x1e1b82;this['_removeDependencyRTreeCache'](_0x358c93),this[_0x2a011c(0x11b)](_0x358c93);}),_0x3c0a8c[_0x1e1b82(0x14e)](_0x1f23ae),this[_0x1e1b82(0xdc)]['delete'](_0x1f23ae));}),_0x3c0a8c[_0xbdd404(0xe2)]===0x0&&_0xb57125['delete'](_0x10f638),_0xb57125[_0xbdd404(0xe2)]===0x0&&this[_0xbdd404(0x121)][_0xbdd404(0x14e)](_0x5bf3ad);}}['clearOtherFormulaDependency'](_0x215b14,_0x1a5a63){const _0x3f65dd=_0x599c19,_0x42af16=this[_0x3f65dd(0x121)][_0x3f65dd(0x160)](_0x215b14);if(_0x1a5a63&&_0x42af16&&_0x42af16['has'](_0x1a5a63)){const _0x21be0e=_0x42af16['get'](_0x1a5a63);this[_0x3f65dd(0xd3)](_0x215b14,_0x1a5a63);for(const _0x20d433 of _0x21be0e[_0x3f65dd(0x15d)]()){const _0x57cc16=_0x21be0e[_0x3f65dd(0x160)](_0x20d433);_0x57cc16!=null&&(_0x57cc16[_0x3f65dd(0x164)]((_0x1c4906,_0x2f5261,_0x12533b)=>{const _0x2ee90c=_0x3f65dd;this[_0x2ee90c(0xf0)][_0x2ee90c(0x160)](_0x12533b)&&this['_removeAllTreeMap'](_0x12533b);}),this['_otherFormulaDataMainData'][_0x3f65dd(0x14e)](_0x20d433));}_0x21be0e[_0x3f65dd(0x130)]();}else{if(_0x42af16){for(const _0x5030fb of _0x42af16[_0x3f65dd(0x15d)]()){const _0x46d993=_0x42af16[_0x3f65dd(0x160)](_0x5030fb);this[_0x3f65dd(0xd3)](_0x215b14,_0x5030fb);for(const _0x1b3ec8 of _0x46d993['keys']()){const _0x3ba360=_0x46d993[_0x3f65dd(0x160)](_0x1b3ec8);_0x3ba360!=null&&(_0x3ba360[_0x3f65dd(0x164)]((_0x5d63ad,_0x28ca8b,_0x328c89)=>{const _0x3fef3d=_0x3f65dd;this[_0x3fef3d(0xf0)][_0x3fef3d(0x160)](_0x328c89)&&this['_removeAllTreeMap'](_0x328c89);}),this[_0x3f65dd(0xdc)][_0x3f65dd(0x14e)](_0x1b3ec8));}}this['_otherFormulaData'][_0x3f65dd(0x14e)](_0x215b14);}}}[_0x599c19(0xd7)](_0x24176c,_0x3f193d,_0x3e172f,_0x1b0d90){const _0x501a16=_0x599c19;this[_0x501a16(0x114)][_0x501a16(0xf6)](_0x24176c)||this['_featureFormulaData'][_0x501a16(0x13b)](_0x24176c,new Map());const _0x49250a=this[_0x501a16(0x114)][_0x501a16(0x160)](_0x24176c);_0x49250a[_0x501a16(0xf6)](_0x3f193d)||_0x49250a[_0x501a16(0x13b)](_0x3f193d,new Map()),_0x49250a['get'](_0x3f193d)[_0x501a16(0x13b)](_0x3e172f,_0x1b0d90[_0x501a16(0x13c)]);}[_0x599c19(0xd1)](_0x5d4872,_0x324810,_0x1eef4b){const _0x11cc1c=_0x599c19,_0x157b87=this[_0x11cc1c(0x114)]['get'](_0x5d4872);if(_0x157b87&&_0x157b87[_0x11cc1c(0xf6)](_0x324810)){const _0x6b6ca6=_0x157b87[_0x11cc1c(0x160)](_0x324810);_0x1eef4b['forEach'](_0x424f4b=>{const _0x19cb00=_0x11cc1c,_0x4730c8=_0x6b6ca6['get'](_0x424f4b);_0x4730c8!=null&&(this[_0x19cb00(0x162)](_0x4730c8),_0x6b6ca6[_0x19cb00(0x14e)](_0x424f4b),this[_0x19cb00(0x11b)](_0x4730c8));});}}[_0x599c19(0x110)](_0x5e80f0,_0x3c586c){const _0x366151=_0x599c19,_0x52385e=this[_0x366151(0x114)][_0x366151(0x160)](_0x5e80f0);if(_0x3c586c&&_0x52385e&&_0x52385e['has'](_0x3c586c)){const _0x3824bf=_0x52385e[_0x366151(0x160)](_0x3c586c);this[_0x366151(0xd3)](_0x5e80f0,_0x3c586c),_0x3824bf['forEach'](_0x599266=>{const _0x1c10ae=_0x366151;_0x599266!=null&&this[_0x1c10ae(0x11b)](_0x599266);}),_0x3824bf[_0x366151(0x130)]();}else _0x52385e&&(_0x52385e[_0x366151(0x169)]((_0x2756f1,_0x411505)=>{const _0x4e4dfe=_0x366151;this[_0x4e4dfe(0xd3)](_0x5e80f0,_0x411505),_0x2756f1[_0x4e4dfe(0x169)](_0x3a34ac=>{const _0x303859=_0x4e4dfe;_0x3a34ac!=null&&this[_0x303859(0x11b)](_0x3a34ac);});}),this[_0x366151(0x114)][_0x366151(0x14e)](_0x5e80f0));}[_0x599c19(0x133)](_0x5d0fd0,_0x3be783,_0x25669d,_0x43764c,_0x29b4bf){const _0x2228d3=_0x599c19;this[_0x2228d3(0x138)][_0x2228d3(0xf6)](_0x5d0fd0)||this['_formulaData'][_0x2228d3(0x13b)](_0x5d0fd0,new Map());const _0x30a2fc=this[_0x2228d3(0x138)][_0x2228d3(0x160)](_0x5d0fd0);_0x30a2fc[_0x2228d3(0xf6)](_0x3be783)||_0x30a2fc[_0x2228d3(0x13b)](_0x3be783,new _0x4b3c1b()),_0x30a2fc[_0x2228d3(0x160)](_0x3be783)[_0x2228d3(0xdd)](_0x25669d,_0x43764c,_0x29b4bf[_0x2228d3(0x13c)]);}['removeFormulaDependency'](_0x3e41fd,_0x58b5b9,_0xa32444,_0x24f2bb){const _0xcf5438=_0x599c19,_0x52025b=this['_formulaData']['get'](_0x3e41fd);if(_0x52025b&&_0x52025b[_0xcf5438(0xf6)](_0x58b5b9)){const _0x2cd86d=_0x52025b[_0xcf5438(0x160)](_0x58b5b9),_0x4f82d2=_0x2cd86d[_0xcf5438(0xe7)](_0xa32444,_0x24f2bb);if(_0x4f82d2==null)return;this[_0xcf5438(0x162)](_0x4f82d2),_0x2cd86d[_0xcf5438(0x132)](_0xa32444,_0x24f2bb),this[_0xcf5438(0x11b)](_0x4f82d2);}}[_0x599c19(0xfc)](_0x50d030,_0x421bca){const _0x587a4d=_0x599c19,_0x543e7f=this[_0x587a4d(0x138)][_0x587a4d(0x160)](_0x50d030);if(_0x421bca&&_0x543e7f&&_0x543e7f[_0x587a4d(0xf6)](_0x421bca)){const _0x5f00db=_0x543e7f['get'](_0x421bca);this['_removeDependencyRTreeCacheById'](_0x50d030,_0x421bca),_0x5f00db[_0x587a4d(0x164)]((_0x15f479,_0x382b58,_0x46cc99)=>{if(_0x46cc99==null)return!0x0;this['_removeAllTreeMap'](_0x46cc99);}),_0x5f00db[_0x587a4d(0xfb)]();}else _0x543e7f&&(_0x543e7f[_0x587a4d(0x169)]((_0xdae25d,_0x1a71e6)=>{const _0xeff30d=_0x587a4d;this[_0xeff30d(0xd3)](_0x50d030,_0x1a71e6),_0xdae25d[_0xeff30d(0x164)]((_0x45acb2,_0x446f67,_0x3259f3)=>{const _0x19189f=_0xeff30d;if(_0x3259f3==null)return!0x0;this[_0x19189f(0x11b)](_0x3259f3);});}),this[_0x587a4d(0x138)][_0x587a4d(0x14e)](_0x50d030));}[_0x599c19(0x162)](_0x39ecf5){const _0x385c08=_0x599c19;if(_0x39ecf5==null)return;const _0x430c00=this[_0x385c08(0xf0)][_0x385c08(0x160)](_0x39ecf5);if(_0x430c00){const _0x5583ed=[];for(const [_0x3cc5e8,_0x300096]of _0x430c00)for(const [_0x4025cb,_0x19ad09]of _0x300096)_0x5583ed[_0x385c08(0xe8)]({'unitId':_0x3cc5e8,'sheetId':_0x4025cb,'range':_0x19ad09,'id':_0x39ecf5});this[_0x385c08(0x111)][_0x385c08(0xcc)](_0x5583ed);}}[_0x599c19(0x11d)](_0x25143b,_0x1362bf){const _0x4be19e=_0x599c19,_0x15d577=this[_0x4be19e(0xcf)]['get'](_0x25143b);if(_0x15d577){const _0x3db308=_0x15d577[_0x4be19e(0x160)](_0x1362bf);if(_0x3db308){for(const _0x14c0ed of _0x3db308)this[_0x4be19e(0x162)](_0x14c0ed),this[_0x4be19e(0x11b)](_0x14c0ed);_0x3db308['clear']();}}}[_0x599c19(0x143)](){const _0x2271a0=_0x599c19;this[_0x2271a0(0x111)][_0x2271a0(0x143)]();}['closeKdTree'](){const _0x3299d7=_0x599c19;this[_0x3299d7(0x111)][_0x3299d7(0x156)]();}[_0x599c19(0x11b)](_0x36435d){const _0xafa65c=_0x599c19;_0x36435d!=null&&this[_0xafa65c(0xf0)]['delete'](_0x36435d);}[_0x599c19(0x10e)](_0x5804de){const _0x2eecdd=_0x599c19;var _0x150346,_0x1e0442;const _0x1f37a4=_0x5804de['rangeList'];let _0x286ed5=this['_allTreeMap']['get'](_0x5804de[_0x2eecdd(0x13c)]);for(let _0x4354d0=0x0;_0x4354d0<_0x1f37a4[_0x2eecdd(0x10a)];_0x4354d0++){const _0x283551=_0x1f37a4[_0x4354d0];let {unitId:_0x5b907a,sheetId:_0x392dd4,range:_0x232655}=_0x283551;_0x286ed5||(_0x286ed5=new Map(),this[_0x2eecdd(0xf0)][_0x2eecdd(0x13b)](_0x5804de[_0x2eecdd(0x13c)],_0x286ed5)),_0x286ed5[_0x2eecdd(0xf6)](_0x5b907a)||_0x286ed5[_0x2eecdd(0x13b)](_0x5b907a,new Map());const _0x2f6620=(_0x150346=_0x286ed5==null?void 0x0:_0x286ed5[_0x2eecdd(0x160)](_0x5b907a))==null?void 0x0:_0x150346[_0x2eecdd(0x160)](_0x392dd4);_0x2f6620&&(_0x232655={'startRow':Math[_0x2eecdd(0xd4)](_0x232655[_0x2eecdd(0xe1)],_0x2f6620[_0x2eecdd(0xe1)]),'startColumn':Math[_0x2eecdd(0xd4)](_0x232655[_0x2eecdd(0x141)],_0x2f6620['startColumn']),'endRow':Math['max'](_0x232655[_0x2eecdd(0x102)],_0x2f6620[_0x2eecdd(0x102)]),'endColumn':Math[_0x2eecdd(0xf5)](_0x232655[_0x2eecdd(0x151)],_0x2f6620['endColumn'])}),(_0x1e0442=_0x286ed5[_0x2eecdd(0x160)](_0x5b907a))==null||_0x1e0442[_0x2eecdd(0x13b)](_0x392dd4,_0x232655);}}}var ue=Object['defineProperty'],de=Object[_0x599c19(0x115)],fe=(_0x91867d,_0x2a0c08,_0x48a596,_0x256d25)=>{const _0x446325=_0x599c19;for(var _0x143eb6=_0x256d25>0x1?void 0x0:_0x256d25?de(_0x2a0c08,_0x48a596):_0x2a0c08,_0x2f6d34=_0x91867d[_0x446325(0x10a)]-0x1,_0x1e1b25;_0x2f6d34>=0x0;_0x2f6d34--)(_0x1e1b25=_0x91867d[_0x2f6d34])&&(_0x143eb6=(_0x256d25?_0x1e1b25(_0x2a0c08,_0x48a596,_0x143eb6):_0x1e1b25(_0x143eb6))||_0x143eb6);return _0x256d25&&_0x143eb6&&ue(_0x2a0c08,_0x48a596,_0x143eb6),_0x143eb6;};let X=class extends _0x356632{[_0x599c19(0x137)](){const _0x4ccc92=_0x599c19;var _0x37382e,_0x2c2de0;this[_0x4ccc92(0x145)]()?(_0x37382e=this[_0x4ccc92(0x159)])!=null&&_0x37382e['notExecuteFormula']||[[_0x15e93a,{'useClass':le}],[_0x39140c,{'useClass':he}],[_0x10d993,{'useClass':oe}]][_0x4ccc92(0x169)](_0x44c256=>this['_injector']['add'](_0x44c256)):(_0x2c2de0=this[_0x4ccc92(0x159)])!=null&&_0x2c2de0[_0x4ccc92(0x135)]||[[_0x15e93a,{'useClass':_0xa99312}],[_0x39140c,{'useClass':_0x18d128}],[_0x10d993,{'useClass':_0x2df436}]][_0x4ccc92(0x169)](_0x43d9dd=>this[_0x4ccc92(0x15a)][_0x4ccc92(0x125)](_0x43d9dd));}['_initTimeValid'](){const _0x5b30b0=_0x599c19;var _0x281aa1;const _0x1821ea=(_0x281aa1=this[_0x5b30b0(0x157)][_0x5b30b0(0xd5)](_0x53b8b0))!=null?_0x281aa1:{},{ls:_0x43715c,pbk:_0x4be40d,tvld:_0x1e532e}=_0x1821ea;if(!_0x43715c||!_0x4be40d)return!0x1;const _0x3ce2a8=_0x4c8798(ie,se);return new Function('return\x20'+_0x3ce2a8)()(_0x43715c,_0x4be40d)[_0x5b30b0(0xf1)];}};X=fe([_0x515e59(_0x15c871)],X);export{X as UniverProFormulaEnginePlugin};
1
+ const _0x371066=_0x1d5b;(function(_0x570ee2,_0x3427f6){const _0x5560e1=_0x1d5b,_0x3689c2=_0x570ee2();while(!![]){try{const _0x254142=parseInt(_0x5560e1(0x16d))/0x1*(-parseInt(_0x5560e1(0x166))/0x2)+-parseInt(_0x5560e1(0x155))/0x3*(parseInt(_0x5560e1(0x1b6))/0x4)+parseInt(_0x5560e1(0x193))/0x5+-parseInt(_0x5560e1(0x1a9))/0x6+parseInt(_0x5560e1(0x13b))/0x7+parseInt(_0x5560e1(0x134))/0x8*(parseInt(_0x5560e1(0x1ac))/0x9)+parseInt(_0x5560e1(0x15e))/0xa;if(_0x254142===_0x3427f6)break;else _0x3689c2['push'](_0x3689c2['shift']());}catch(_0x2a3308){_0x3689c2['push'](_0x3689c2['shift']());}}}(_0x2b06,0xd1477));var j=Object[_0x371066(0x13a)],H=(_0x27019e,_0x404c6d,_0x491f7c)=>_0x404c6d in _0x27019e?j(_0x27019e,_0x404c6d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x491f7c}):_0x27019e[_0x404c6d]=_0x491f7c,C=(_0x4328b6,_0x35c262,_0x157c47)=>H(_0x4328b6,typeof _0x35c262!=_0x371066(0x1a0)?_0x35c262+'':_0x35c262,_0x157c47);import{ObjectMatrix as _0x21ba3a,requestImmediateMacroTask as _0x56f6a4,RTree as _0x482d22,DependentOn as _0x3b09d8}from'@univerjs/core';import{FormulaDependencyGenerator as _0xc9ec56,generateAstNode as _0x3383ab,generateRandomDependencyTreeId as _0x4d32f7,FormulaDependencyTree as _0x55563c,FormulaDependencyTreeType as _0x2fef40,FormulaDependencyTreeVirtual as _0x4874a9,CalculateFormulaService as _0x42f623,FormulaExecuteStageType as _0x15a89f,PLUGIN_CONFIG_KEY as _0x730d91,DEFAULT_INTERVAL_COUNT as _0x145248,DependencyManagerBaseService as _0x43e43d,UniverFormulaEnginePlugin as _0x4deae8,ICalculateFormulaService as _0x39c3bf,IDependencyManagerService as _0x13cb5f,IFormulaDependencyGenerator as _0x465a60,DependencyManagerService as _0x1295c9}from'@univerjs/engine-formula';import{UniverLicensePlugin as _0x31a90c,LS_CONFIG_KEY as _0x34f8da,unshiftString as _0x16e107}from'@univerjs-pro/license';function _0x2b06(){const _0x5e60cc=['addFormulaDependencyByDefinedName','realDeleteValue','_initializeWithOverride','OTHER_FORMULA','_removeDependencyRTreeCacheById','setTotalFormulasToCalculate','set','25813490HrfhWt','max','_calculateRunList','setSkip','getDirtyData','isSkip','getRuntimeState','min','2757702sGwRgh','unitId','FEATURE_FORMULA','isForceCalculate','setRuntimeFeatureRange','isDirty','getFeatureFormulaDependency','1dCWOjd','forValue','setRuntimeOtherData','_runtimeService','delete','next','getOwnPropertyDescriptor','closeKdTree','formula','_injector','formulaId','_formulaData','setRuntimeData','_updateRangeFlatten','markedAsSuccessfullyExecuted','searchDependency','_removeDependencyRTreeCache','_otherFormulaManagerService','_generateTreeList','setCurrent','startRow','_registerOtherFormulas','removeFormulaDependency','addOtherFormulaDependencyMainData','getDirtyNameMap','_getRangeListByNode','subUnitId','getClearDependencyTreeCache','valid','_currentConfigService','_configService','_initTimeValid','removeOtherFormulaDependency','_featureFormulaData','getDirtyRanges','endColumn','clearOtherFormulaDependency','CURRENTLY_CALCULATING','7637305YaUKtN','intervalCount','clearFeatureFormulaDependency','column','row','get','executeAsync','_apply','ParentDependencyTree\x20object\x20is\x20null','setCompletedFormulasCount','getValue','size','addOtherFormulaDependency','symbol','type','featureId','_dependencyTreeCache','startColumn','return\x20','setValue','_addAllTreeMap','markedAsNoFunctionsExecuted','5052216hbWvTn','openKdTree','notExecuteFormula','297441emvFXw','dispose','_traverse','_allTreeMap','pop','START_DEPENDENCY_ARRAY_FORMULA','dependencySheetName','clear','isCache','dirtyRanges','5317364rZwekY','has','refOffsetX','_includeTree','_interpreter','_dependencyManagerService','refOffsetY','toRTreeItem','length','resolve','add','_executionCompleteListener$','_removeAllTreeMap','setTotalArrayFormulasToCalculate','setAdded','isAdded','treeId','getAllRuntimeData','_registerFeatureFormulas','clearFormulaDependency','addDependencyRTreeCache','node','generate','forEach','_isCyclicUtilMap','_executionInProgressListener$','markedAsStopFunctionsExecuted','keys','_otherFormulaData','40OJVjbJ','columnCount','rangeList','reset','_createVirtualFDtree','rowCount','defineProperty','933660CvpLsA','hasOtherFormulaDataMainData','_config','enableCycleDependency','_dependencyRTreeCache','_restDependencyTreeId','_definedNameMap','_astTreeBuilder','getFormulaData','_checkIsCycleDependency','endRow','addFormulaDependency','bulkRemove','setCompletedArrayFormulasCount','checkAsyncNode','_lexer','_createFDtree','_getUpdateTreeListAndMakeDependency','isVirtual','push','_formulaDependencyGenerator','refTree','setFormulaExecuteStage','getConfig','_otherFormulaDataMainData','_getFirstCellOfRange','3FNLoPm','addFeatureFormulaDependency'];_0x2b06=function(){return _0x5e60cc;};return _0x2b06();}const ie={0x0:'n',0x1:'k',0x2:'G',0x3:'m',0x4:'3',0x5:'K',0x6:'9',0x7:'Y',0x8:'D',0x9:'z','T':'0','h':'1','u':'2','X':'4','f':'5','B':'6','J':'7','j':'8','Q':'a','H':'b','d':'c','F':'d','m':'e','n':'f','E':'g','a':'h','z':'i','Z':'j','r':'l','O':'o','v':'p','b':'q','g':'r','G':'s','Y':'t','A':'u','D':'v','q':'w','c':'x','w':'y','p':'A','R':'B','P':'C','x':'E','C':'F','K':'H','V':'I','k':'J','W':'L','i':'M','t':'N','s':'O','U':'P','y':'Q','e':'R','S':'S','o':'T','I':'U','L':'V','l':'W','M':'X','N':'Z'},ce='nA0dYzO0\x20FmdgwvYzO0(rzdm0Gm,\x20vAHrzd5mw)\x20{\x20\x20\x20\x20dO0GY\x20rzdm0GmV0nOUQgYpggQw\x20=\x20rzdm0Gm.GvrzY(\x27-\x27);\x20\x20\x20\x20dO0GY\x20OgzEz0imGGQEm\x20=\x20kSst.vQgGm(QYOH(rzdm0GmV0nOUQgYpggQw[u]));\x20\x20\x20\x20zn\x20(!OgzEz0imGGQEm.AF)\x20{\x20\x20\x20\x20\x20\x20\x20\x20OgzEz0imGGQEm.AF\x20=\x20tA3Hmg(rzdm0GmV0nOUQgYpggQw[X]);\x20\x20\x20\x20}\x20\x20\x20\x20dO0GY\x20zGlOg1mg\x20=\x20YwvmOn\x20lOg1mg2rOHQrSdOvm\x20!==\x20\x27A0Fmnz0mF\x27\x20&&\x20Gmrn\x20z0GYQ0dmOn\x20lOg1mg2rOHQrSdOvm;\x20\x20\x20\x20dO0GY\x20dO0YmcY\x20=\x20zGlOg1mg\x20?\x20Gmrn\x20:\x20qz0FOq;\x20\x20\x20\x20dO0GY\x203mGGQEmlOgF\x20=\x20dO0YmcY.__RQGmBX__.vQgGm(rzdm0GmV0nOUQgYpggQw[u]);\x20\x20\x20\x20dO0GY\x203mGGQEm\x20=\x20dO0YmcY.__Kmc__.GYgz0Eznw(3mGGQEmlOgF);\x20\x20\x20\x20dO0GY\x20GzE0QYAgmlOgF\x20=\x20dO0YmcY.__RQGmBX__.vQgGm(rzdm0GmV0nOUQgYpggQw[4]);\x20\x20\x20\x20dO0GY\x20GzE0QYAgm\x20=\x20dO0YmcY.__Kmc__.GYgz0Eznw(GzE0QYAgmlOgF);\x20\x20\x20\x20dO0GY\x20GzE0LQrzF\x20=\x20dO0YmcY.__Dmgznw__(GzE0QYAgm,\x203mGGQEm,\x20vAHrzd5mw);\x20\x20\x20\x20dO0GY\x20FO3Qz0\x20=\x20OgzEz0imGGQEm.F3;\x20\x20\x20\x20nA0dYzO0\x20zG8O3Qz0iQYdaz0E(OUQYYmg0,\x20OKOGY)\x20{\x20\x20\x20\x20\x20\x20\x20\x20dO0GY\x20vQYYmg0\x20=\x20OUQYYmg0.gmvrQdm(/^.+/,\x20\x27\x27);\x20\x20\x20\x20\x20\x20\x20\x20dO0GY\x20aOGY\x20=\x20OKOGY.gmvrQdm(/^.+/,\x20\x27\x27);\x20\x20\x20\x20\x20\x20\x20\x20dO0GY\x20vQYYmg0UQgYG\x20=\x20vQYYmg0.GvrzY(\x27.\x27);\x20\x20\x20\x20\x20\x20\x20\x20dO0GY\x20aOGYUQgYG\x20=\x20aOGY.GvrzY(\x27.\x27);\x20\x20\x20\x20\x20\x20\x20\x20zn\x20(!vQYYmg0.z0drAFmG(\x27*\x27))\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20gmYAg0\x20vQYYmg0\x20===\x20aOGY;\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x20zn\x20(vQYYmg0UQgYG.rm0EYa\x20<\x20u\x20||\x20vQYYmg0UQgYG[T]\x20!==\x20\x27*\x27)\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20gmYAg0\x20nQrGm;\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x20dO0GY\x20vQYYmg0SAnnzc\x20=\x20vQYYmg0UQgYG.Grzdm(h).ZOz0(\x27.\x27);\x20\x20\x20\x20\x20\x20\x20\x20dO0GY\x20aOGYSAnnzc\x20=\x20aOGYUQgYG.Grzdm(-vQYYmg0UQgYG.rm0EYa\x20+\x20h).ZOz0(\x27.\x27);\x20\x20\x20\x20\x20\x20\x20\x20gmYAg0\x20vQYYmg0SAnnzc\x20===\x20aOGYSAnnzc;\x20\x20\x20\x20}\x20\x20\x20\x20rmY\x20FO3Qz0LQrzF\x20=\x20FO3Qz0?.rm0EYa\x20?\x20FO3Qz0.GO3m((F3VYm3)\x20=>\x20zG8O3Qz0iQYdaz0E(F3VYm3,\x20rOdQYzO0.aOGY0Q3m))\x20:\x20YgAm;\x20\x20\x20\x20zn\x20(rOdQYzO0.aOGY0Q3m\x20===\x20\x27rOdQraOGY\x27)\x20{\x20\x20\x20\x20\x20\x20\x20\x20FO3Qz0LQrzF\x20=\x20YgAm;\x20\x20\x20\x20}\x20\x20\x20\x20dO0GY\x20DQrzF\x20=\x20GzE0LQrzF\x20&&\x20FO3Qz0LQrzF;\x20\x20\x20\x20gmYAg0\x20{\x20\x20\x20\x20\x20\x20\x20\x20DQrzF,\x203mGGQEm:\x20OgzEz0imGGQEm,\x20\x20\x20\x20};}';class oe extends _0xc9ec56{constructor(){const _0x3971d8=_0x371066;super(...arguments),C(this,_0x3971d8(0x1a3),new Map());}[_0x371066(0x1ad)](){const _0x2c7b04=_0x371066;super[_0x2c7b04(0x1ad)](),this[_0x2c7b04(0x1a3)]['clear']();}async[_0x371066(0x12d)](){const _0xd06ebf=_0x371066;this[_0xd06ebf(0x17a)]();const _0x1ed474=this['_currentConfigService'][_0xd06ebf(0x143)](),_0x283fb0=this[_0xd06ebf(0x17e)]['getOtherFormulaData'](),_0x5f147b=this[_0xd06ebf(0x18a)][_0xd06ebf(0x188)]();_0x5f147b!=null&&Object[_0xd06ebf(0x132)](_0x5f147b)[_0xd06ebf(0x12e)](_0x304d6e=>{const _0x153b2e=_0xd06ebf;_0x304d6e!=null&&Object[_0x153b2e(0x132)](_0x5f147b[_0x304d6e])[_0x153b2e(0x12e)](_0x46b16f=>{const _0x4c5a02=_0x153b2e;_0x46b16f!=null&&(this[_0x4c5a02(0x1bb)][_0x4c5a02(0x191)](_0x304d6e,_0x46b16f),this[_0x4c5a02(0x1bb)][_0x4c5a02(0x195)](_0x304d6e,_0x46b16f),this[_0x4c5a02(0x1bb)][_0x4c5a02(0x12a)](_0x304d6e,_0x46b16f));});});const _0x355795=this[_0xd06ebf(0x18a)]['getUnitData']();await this[_0xd06ebf(0x17f)](_0x1ed474,_0x283fb0,_0x355795),this[_0xd06ebf(0x1bb)][_0xd06ebf(0x1aa)]();const _0x51b657=this['_getUpdateTreeListAndMakeDependency'](),_0x3f508b=this[_0xd06ebf(0x160)](_0x51b657);return this['_checkIsCycleDependency'](_0x3f508b)&&this[_0xd06ebf(0x170)][_0xd06ebf(0x13e)](),this['_dependencyTreeCache']['clear'](),this[_0xd06ebf(0x1bb)][_0xd06ebf(0x174)](),Promise[_0xd06ebf(0x1bf)](_0x3f508b);}[_0x371066(0x12f)](_0x3cc478,_0x4cca31){const _0x2ea030=_0x371066,_0x1fd860=[_0x3cc478];for(;_0x1fd860[_0x2ea030(0x1be)]>0x0;){const _0x1cc540=_0x1fd860[_0x1fd860['length']-0x1];if((_0x4cca31['get'](_0x1cc540)||0x0)===0x0){_0x4cca31[_0x2ea030(0x15d)](_0x1cc540,0x1);const _0x2369bc=this[_0x2ea030(0x1a3)][_0x2ea030(0x198)](_0x1cc540);if(_0x2369bc==null){_0x4cca31['set'](_0x1cc540,0x2),_0x1fd860[_0x2ea030(0x1b0)]();continue;}const _0x36cabd=this[_0x2ea030(0x1bb)][_0x2ea030(0x17c)](_0x2369bc['toRTreeItem']());for(const _0xb9c84f of _0x36cabd){const _0x1ce388=_0x4cca31['get'](_0xb9c84f)||0x0;if(_0x1ce388===0x1)return!0x0;_0x1ce388===0x0&&_0x1fd860[_0x2ea030(0x14e)](_0xb9c84f);}}else _0x4cca31['set'](_0x1cc540,0x2),_0x1fd860['pop']();}return!0x1;}[_0x371066(0x144)](_0x4006b9){const _0x51cff8=_0x371066,_0x1419f4=new Map();for(const _0x2bf929 of _0x4006b9)if(!_0x1419f4[_0x51cff8(0x1b7)](_0x2bf929[_0x51cff8(0x127)])&&this[_0x51cff8(0x12f)](_0x2bf929[_0x51cff8(0x127)],_0x1419f4))return!0x0;return _0x1419f4[_0x51cff8(0x1b3)](),!0x1;}async[_0x371066(0x17f)](_0x4361f6,_0x597ad0,_0x3c1bfa){const _0x2069b2=_0x371066,_0x28a3c6=Object[_0x2069b2(0x132)](_0x4361f6),_0x326ad0=Object[_0x2069b2(0x132)](_0x597ad0),_0x43cbfb=[];this[_0x2069b2(0x18a)][_0x2069b2(0x169)]()&&this[_0x2069b2(0x1bb)]['reset'](),this['_registerFormulas'](_0x28a3c6,_0x4361f6,_0x3c1bfa,_0x43cbfb),this['_registerOtherFormulas'](_0x597ad0,_0x326ad0,_0x43cbfb),this[_0x2069b2(0x129)](_0x43cbfb);for(let _0x10abe1=0x0,_0x5722aa=_0x43cbfb[_0x2069b2(0x1be)];_0x10abe1<_0x5722aa;_0x10abe1++){const _0x4a0269=_0x43cbfb[_0x10abe1],_0x453d56=_0x3383ab(_0x4a0269['unitId'],_0x4a0269[_0x2069b2(0x175)],this[_0x2069b2(0x14a)],this[_0x2069b2(0x142)],this[_0x2069b2(0x18a)]);if(_0x4a0269[_0x2069b2(0x16b)]=this[_0x2069b2(0x1b9)](_0x4a0269,_0x453d56),_0x4a0269['isVirtual'])continue;this[_0x2069b2(0x170)][_0x2069b2(0x180)](_0x4a0269['row'],_0x4a0269['column'],_0x4a0269[_0x2069b2(0x139)],_0x4a0269[_0x2069b2(0x135)],_0x4a0269[_0x2069b2(0x187)],_0x4a0269[_0x2069b2(0x167)]);const _0x583653=await this[_0x2069b2(0x186)]({'node':_0x453d56,'refOffsetX':_0x4a0269[_0x2069b2(0x1b8)],'refOffsetY':_0x4a0269[_0x2069b2(0x1bc)]});_0x4a0269['pushRangeList'](_0x583653);}for(let _0x31dcd9=0x0,_0xc99966=_0x43cbfb[_0x2069b2(0x1be)];_0x31dcd9<_0xc99966;_0x31dcd9++){const _0x4acbbe=_0x43cbfb[_0x31dcd9];_0x4acbbe[_0x2069b2(0x1b4)]||this[_0x2069b2(0x1bb)][_0x2069b2(0x12b)](_0x4acbbe);}return _0x43cbfb;}['_getFeatureFormulaTree'](_0x4ec604,_0x503955,_0x4d2a84){const _0x47f00b=_0x371066,{unitId:_0x4b0f3a,subUnitId:_0x2c8172,dependencyRanges:_0x2440ce,getDirtyData:_0x3304f3}=_0x4d2a84,_0x491338=_0x503955||_0x4d32f7(this[_0x47f00b(0x1bb)]),_0x4bb64f=new _0x55563c(_0x491338);_0x4bb64f[_0x47f00b(0x167)]=_0x4b0f3a,_0x4bb64f[_0x47f00b(0x187)]=_0x2c8172,_0x4bb64f[_0x47f00b(0x136)]=_0x2440ce,_0x4bb64f[_0x47f00b(0x162)]=_0x3304f3;const _0xb9d1ac=_0x3304f3(this['_currentConfigService'][_0x47f00b(0x162)](),this[_0x47f00b(0x170)][_0x47f00b(0x128)]()),_0x23efec=this['_convertDirtyRangesToUnitRange'](_0xb9d1ac[_0x47f00b(0x1b5)]);return _0x4bb64f['featureDirtyRanges']=_0x23efec,_0x4bb64f[_0x47f00b(0x1a2)]=_0x4ec604,_0x4bb64f[_0x47f00b(0x1a1)]=_0x2fef40[_0x47f00b(0x168)],this[_0x47f00b(0x1bb)]['addFeatureFormulaDependency'](_0x4b0f3a,_0x2c8172,_0x4ec604,_0x4bb64f),this[_0x47f00b(0x1a3)][_0x47f00b(0x15d)](_0x4bb64f[_0x47f00b(0x127)],_0x4bb64f),this[_0x47f00b(0x1bb)][_0x47f00b(0x16c)](_0x4d2a84[_0x47f00b(0x167)],_0x4d2a84[_0x47f00b(0x187)],_0x4ec604)&&(_0x4bb64f[_0x47f00b(0x1b4)]=!0x0),_0x4bb64f;}[_0x371066(0x182)](_0x5440bf,_0x4312ca,_0x1a57d5){const _0x187cf1=_0x371066;for(const _0x1a51fc of _0x4312ca){const _0x293ae8=_0x5440bf[_0x1a51fc];if(_0x293ae8==null)continue;const _0x1d795d=Object[_0x187cf1(0x132)](_0x293ae8);for(const _0x27bb06 of _0x1d795d){const _0xc5843=_0x293ae8[_0x27bb06];if(_0xc5843==null)continue;const _0x58bef3=Object[_0x187cf1(0x132)](_0xc5843);for(const _0x592eed of _0x58bef3){const _0x2eaab2=this['_dependencyManagerService'][_0x187cf1(0x13c)](_0x592eed),_0x3ace3a=_0xc5843[_0x592eed],{f:_0x12d89a,ranges:_0x21f839}=_0x3ace3a;let _0x53395b=!0x1;_0x2eaab2&&(_0x53395b=!0x0);const {firstRow:_0x350e6d,firstColumn:_0x217964}=this[_0x187cf1(0x154)](_0x21f839),_0x47856c=this['_dependencyManagerService']['getOtherFormulaDependency'](_0x1a51fc,_0x27bb06,_0x592eed),_0x4786e9=(_0x47856c==null?void 0x0:_0x47856c[_0x187cf1(0x19d)](0x0,0x0))||_0x4d32f7(this['_dependencyManagerService']),_0xa1c992=new _0x55563c(_0x4786e9);for(let _0x10fc78=0x0;_0x10fc78<_0x21f839[_0x187cf1(0x1be)];_0x10fc78++){const _0x3ff326=_0x21f839[_0x10fc78],{startRow:_0x3842e9,startColumn:_0x382e4b,endRow:_0x42f93c,endColumn:_0x25ce7a}=_0x3ff326;for(let _0x2c2423=_0x3842e9;_0x2c2423<=_0x42f93c;_0x2c2423++)for(let _0x2bda39=_0x382e4b;_0x2bda39<=_0x25ce7a;_0x2bda39++){const _0x5768d9=_0x2bda39-_0x217964,_0x16d4e5=_0x2c2423-_0x350e6d;if(_0x5768d9===0x0&&_0x16d4e5===0x0){_0xa1c992['formula']=_0x12d89a,_0xa1c992['unitId']=_0x1a51fc,_0xa1c992[_0x187cf1(0x187)]=_0x27bb06,_0xa1c992[_0x187cf1(0x177)]=_0x592eed,_0xa1c992[_0x187cf1(0x1a1)]=_0x2fef40[_0x187cf1(0x15a)],_0xa1c992[_0x187cf1(0x1b4)]=_0x53395b,_0x1a57d5[_0x187cf1(0x14e)](_0xa1c992),this[_0x187cf1(0x1a3)][_0x187cf1(0x15d)](_0xa1c992[_0x187cf1(0x127)],_0xa1c992),this[_0x187cf1(0x1bb)]['addOtherFormulaDependency'](_0x1a51fc,_0x27bb06,_0x592eed,_0xa1c992),this['_dependencyManagerService'][_0x187cf1(0x157)](_0xa1c992);continue;}const _0x5ec0f9=new _0x4874a9();_0x5ec0f9[_0x187cf1(0x127)]=(_0x47856c==null?void 0x0:_0x47856c['getValue'](_0x5768d9,_0x16d4e5))||_0x4d32f7(this['_dependencyManagerService']),_0x5ec0f9[_0x187cf1(0x150)]=_0xa1c992,_0x5ec0f9[_0x187cf1(0x1b8)]=_0x5768d9,_0x5ec0f9[_0x187cf1(0x1bc)]=_0x16d4e5,_0x5ec0f9[_0x187cf1(0x1b4)]=_0x53395b,this['_dependencyManagerService'][_0x187cf1(0x19f)](_0x1a51fc,_0x27bb06,_0x592eed,_0x5ec0f9),this[_0x187cf1(0x1bb)][_0x187cf1(0x157)](_0x5ec0f9),_0x1a57d5['push'](_0x5ec0f9),this[_0x187cf1(0x1a3)][_0x187cf1(0x15d)](_0x5ec0f9['treeId'],_0x5ec0f9);}}this[_0x187cf1(0x1bb)][_0x187cf1(0x184)](_0x592eed);}}}}['_registerFormulas'](_0x10d7bf,_0x1e92c5,_0x377a1c,_0x539161){const _0x2d4bf5=_0x371066;for(const _0x460eb7 of _0x10d7bf){const _0x56c86b=_0x1e92c5[_0x460eb7];if(_0x56c86b==null)continue;const _0x5944b7=Object['keys'](_0x56c86b);for(const _0x48f777 of _0x5944b7){const _0x44118c=new _0x21ba3a(_0x56c86b[_0x48f777]||{}),_0x4f00d0=new Map();_0x44118c[_0x2d4bf5(0x16e)]((_0x103ab7,_0xd55483,_0x48b221)=>{const _0x9248e1=_0x2d4bf5;if(_0x48b221==null)return!0x0;const {x:_0xa58415=0x0,y:_0x35c189=0x0,si:_0x4a45e4}=_0x48b221;if(!(_0xa58415===0x0&&_0x35c189===0x0&&_0x4a45e4!=null))return!0x0;const _0x2626a6=this[_0x9248e1(0x14b)](_0x460eb7,_0x48f777,_0x103ab7,_0xd55483,_0x377a1c,_0x48b221),_0x194a92=this[_0x9248e1(0x1bb)]['getFormulaDependency'](_0x460eb7,_0x48f777,_0x103ab7,_0xd55483);_0x194a92!=null?_0x2626a6['treeId']=_0x194a92:(this[_0x9248e1(0x1bb)][_0x9248e1(0x146)](_0x460eb7,_0x48f777,_0x103ab7,_0xd55483,_0x2626a6),this['_dependencyManagerService']['addFormulaDependencyByDefinedName'](_0x2626a6)),_0x4f00d0['set'](_0x4a45e4,_0x2626a6),_0x539161[_0x9248e1(0x14e)](_0x2626a6),this[_0x9248e1(0x1a3)]['set'](_0x2626a6[_0x9248e1(0x127)],_0x2626a6);}),_0x44118c[_0x2d4bf5(0x16e)]((_0x3202c9,_0xf5ce22,_0x106944)=>{const _0x2fb1ea=_0x2d4bf5;if(_0x106944==null)return!0x0;const {x:_0x1db341=0x0,y:_0x42b8ba=0x0,si:_0x57bd92}=_0x106944;if(_0x1db341===0x0&&_0x42b8ba===0x0&&_0x57bd92!=null)return!0x0;let _0x5a41a8;if(_0x57bd92&&_0x4f00d0[_0x2fb1ea(0x1b7)](_0x57bd92)){const _0x32e5d4=_0x4f00d0['get'](_0x57bd92);_0x5a41a8=this[_0x2fb1ea(0x138)](_0x32e5d4,_0x106944);}else _0x5a41a8=this['_createFDtree'](_0x460eb7,_0x48f777,_0x3202c9,_0xf5ce22,_0x377a1c,_0x106944);const _0x22ffa3=this[_0x2fb1ea(0x1bb)]['getFormulaDependency'](_0x460eb7,_0x48f777,_0x3202c9,_0xf5ce22);_0x22ffa3!=null?_0x5a41a8['treeId']=_0x22ffa3:(this[_0x2fb1ea(0x1bb)][_0x2fb1ea(0x146)](_0x460eb7,_0x48f777,_0x3202c9,_0xf5ce22,_0x5a41a8),this[_0x2fb1ea(0x1bb)]['addFormulaDependencyByDefinedName'](_0x5a41a8)),_0x539161[_0x2fb1ea(0x14e)](_0x5a41a8),this[_0x2fb1ea(0x1a3)][_0x2fb1ea(0x15d)](_0x5a41a8[_0x2fb1ea(0x127)],_0x5a41a8);}),_0x4f00d0[_0x2d4bf5(0x1b3)]();}}}[_0x371066(0x14b)](_0x42705a,_0x2ef886,_0x5cb702,_0x421704,_0x243d4d,_0x391041){const _0x214111=_0x371066,{f:_0x501b9c,x:_0x1b527f=0x0,y:_0x581c9b=0x0}=_0x391041,_0x363ac3=new _0x55563c(_0x4d32f7(this[_0x214111(0x1bb)])),_0x3edc92=_0x243d4d[_0x42705a][_0x2ef886];return _0x363ac3[_0x214111(0x175)]=_0x501b9c,_0x363ac3[_0x214111(0x167)]=_0x42705a,_0x363ac3[_0x214111(0x187)]=_0x2ef886,_0x363ac3[_0x214111(0x197)]=_0x5cb702,_0x363ac3[_0x214111(0x196)]=_0x421704,_0x363ac3[_0x214111(0x139)]=_0x3edc92[_0x214111(0x139)],_0x363ac3[_0x214111(0x135)]=_0x3edc92[_0x214111(0x135)],_0x363ac3;}[_0x371066(0x14c)](){const _0x3854aa=_0x371066,_0x10d9d4=[],_0xb1b54b=new Set(),_0x136fec=this[_0x3854aa(0x18a)][_0x3854aa(0x169)](),_0x81d9dc=this[_0x3854aa(0x18a)][_0x3854aa(0x18f)](),_0x428724=this[_0x3854aa(0x1bb)]['searchDependency'](_0x81d9dc);for(const [_0x170cd6,_0x5da61b]of this[_0x3854aa(0x1a3)])(_0x136fec||_0x5da61b[_0x3854aa(0x16b)]||_0x5da61b[_0x3854aa(0x1b2)](this['_currentConfigService'][_0x3854aa(0x185)]())||_0x428724[_0x3854aa(0x1b7)](_0x170cd6)&&!_0x5da61b['isExcludeRange'](this[_0x3854aa(0x18a)]['getExcludedRange']()))&&!_0xb1b54b[_0x3854aa(0x1b7)](_0x170cd6)&&(_0x10d9d4[_0x3854aa(0x14e)](_0x5da61b),_0xb1b54b['add'](_0x170cd6));for(const [_0x3b53cf,_0x22d4d0]of this['_dependencyTreeCache'])_0x22d4d0[_0x3854aa(0x14d)]||(_0x22d4d0['rangeList'][_0x3854aa(0x1be)]=0x0);return _0x10d9d4;}*[_0x371066(0x1ae)](_0x30b9c6,_0x5bb8fc){const _0x5b482e=_0x371066,_0x2eecc9=_0x30b9c6,_0xd05e46=new Set();for(;_0x2eecc9['length']>0x0;){const _0x5de793=_0x2eecc9[_0x5b482e(0x1b0)]();if(_0xd05e46[_0x5b482e(0x1b3)](),_0x5de793===void 0x0||_0x5de793[_0x5b482e(0x163)]())continue;if(_0x5de793[_0x5b482e(0x126)]()){yield _0x5de793,_0x5de793[_0x5b482e(0x161)](),_0x5bb8fc[_0x5b482e(0x1c0)](_0x5de793['treeId']);continue;}const _0xe4b62f=this['_dependencyManagerService'][_0x5b482e(0x17c)](_0x5de793[_0x5b482e(0x1bd)](),_0x5bb8fc);for(const _0x5c8162 of _0xe4b62f){const _0x4402e0=this[_0x5b482e(0x1a3)]['get'](_0x5c8162);if(!_0x4402e0)throw new Error(_0x5b482e(0x19b));_0x4402e0['isAdded']()||_0x5de793[_0x5b482e(0x163)]()||_0xd05e46['add'](_0x4402e0);}if(_0xe4b62f['clear'](),_0xd05e46[_0x5b482e(0x19e)]===0x0)yield _0x5de793,_0x5de793['setSkip'](),_0x5bb8fc[_0x5b482e(0x1c0)](_0x5de793[_0x5b482e(0x127)]);else{_0x5de793[_0x5b482e(0x125)](),_0x2eecc9[_0x5b482e(0x14e)](_0x5de793);for(const _0x49d822 of _0xd05e46)_0x2eecc9[_0x5b482e(0x14e)](_0x49d822);}}_0x2eecc9[_0x5b482e(0x1be)]=0x0,_0xd05e46[_0x5b482e(0x1b3)]();}[_0x371066(0x160)](_0x2c27e7){const _0x146518=_0x371066,_0x48e3c4=[],_0x18f09e=new Set();for(const _0x2f8327 of this[_0x146518(0x1ae)](_0x2c27e7,_0x18f09e))_0x48e3c4[_0x146518(0x14e)](_0x2f8327);return _0x48e3c4;}}class le extends _0x42f623{async[_0x371066(0x19a)](_0x44336e=!0x1){const _0x4115a6=_0x371066;_0x44336e?this[_0x4115a6(0x170)][_0x4115a6(0x151)](_0x15a89f[_0x4115a6(0x1b1)]):this[_0x4115a6(0x170)]['setFormulaExecuteStage'](_0x15a89f['START_DEPENDENCY']),this['_executionInProgressListener$'][_0x4115a6(0x172)](this[_0x4115a6(0x170)][_0x4115a6(0x164)]());const _0x17db13=await this[_0x4115a6(0x14f)][_0x4115a6(0x12d)](),_0x9e1a20=this[_0x4115a6(0x1ba)];_0x44336e?(this[_0x4115a6(0x170)][_0x4115a6(0x151)](_0x15a89f['START_CALCULATION_ARRAY_FORMULA']),this[_0x4115a6(0x170)][_0x4115a6(0x1c3)](_0x17db13[_0x4115a6(0x1be)])):(this[_0x4115a6(0x170)]['setFormulaExecuteStage'](_0x15a89f['START_CALCULATION']),this[_0x4115a6(0x170)][_0x4115a6(0x15c)](_0x17db13['length'])),this[_0x4115a6(0x130)][_0x4115a6(0x172)](this[_0x4115a6(0x170)][_0x4115a6(0x164)]());let _0x10d35a=[];const _0x387fd6=this[_0x4115a6(0x18b)]['getConfig'](_0x730d91),_0xa38d5d=(_0x387fd6==null?void 0x0:_0x387fd6[_0x4115a6(0x194)])||_0x145248;let _0x207d0f=0x0;const _0x170c0a=_0x17db13[_0x4115a6(0x1be)];for(;_0x17db13[_0x4115a6(0x1be)]>0x0;){const _0x2f065a=_0x17db13[_0x4115a6(0x1b0)](),_0xef854b={'node':_0x3383ab(_0x2f065a[_0x4115a6(0x167)],_0x2f065a[_0x4115a6(0x175)],this[_0x4115a6(0x14a)],this[_0x4115a6(0x142)],this[_0x4115a6(0x18a)]),'refOffsetX':_0x2f065a[_0x4115a6(0x1b8)],'refOffsetY':_0x2f065a[_0x4115a6(0x1bc)]},_0x5a8f71=_0x2f065a[_0x4115a6(0x162)];if(_0x207d0f%_0xa38d5d===0x0&&(await new Promise(_0x254c3b=>{const _0x4af7f8=_0x4115a6,_0x506f45=_0x56f6a4(_0x254c3b);_0x10d35a[_0x4af7f8(0x14e)](_0x506f45);}),_0x44336e?(this[_0x4115a6(0x170)]['setFormulaExecuteStage'](_0x15a89f['CURRENTLY_CALCULATING_ARRAY_FORMULA']),this['_runtimeService'][_0x4115a6(0x148)](_0x207d0f+0x1)):(this[_0x4115a6(0x170)][_0x4115a6(0x151)](_0x15a89f[_0x4115a6(0x192)]),this[_0x4115a6(0x170)][_0x4115a6(0x19c)](_0x207d0f+0x1)),this[_0x4115a6(0x130)][_0x4115a6(0x172)](this['_runtimeService'][_0x4115a6(0x164)]()),this[_0x4115a6(0x170)]['isStopExecution']()||_0xef854b==null&&_0x5a8f71==null)){this['_runtimeService'][_0x4115a6(0x151)](_0x15a89f['IDLE']),this['_runtimeService'][_0x4115a6(0x131)](),this[_0x4115a6(0x1c1)][_0x4115a6(0x172)](this[_0x4115a6(0x170)]['getAllRuntimeData']());return;}this[_0x4115a6(0x170)]['setCurrent'](_0x2f065a[_0x4115a6(0x197)],_0x2f065a[_0x4115a6(0x196)],_0x2f065a[_0x4115a6(0x139)],_0x2f065a[_0x4115a6(0x135)],_0x2f065a[_0x4115a6(0x187)],_0x2f065a[_0x4115a6(0x167)]);let _0x4199b4;if(_0x5a8f71!=null&&_0x2f065a[_0x4115a6(0x1a2)]!=null){const {runtimeCellData:_0x4b5b0b,dirtyRanges:_0x13d65b}=_0x5a8f71(this[_0x4115a6(0x18a)][_0x4115a6(0x162)](),this['_runtimeService'][_0x4115a6(0x128)]());this[_0x4115a6(0x170)]['setRuntimeFeatureCellData'](_0x2f065a[_0x4115a6(0x1a2)],_0x4b5b0b),this[_0x4115a6(0x170)][_0x4115a6(0x16a)](_0x2f065a[_0x4115a6(0x1a2)],_0x13d65b);}else _0xef854b!=null&&(_0x9e1a20[_0x4115a6(0x149)](_0xef854b[_0x4115a6(0x12c)])?_0x4199b4=await _0x9e1a20[_0x4115a6(0x199)](_0xef854b):_0x4199b4=_0x9e1a20['execute'](_0xef854b),_0x2f065a[_0x4115a6(0x177)]!=null?this['_runtimeService'][_0x4115a6(0x16f)](_0x2f065a[_0x4115a6(0x177)],_0x2f065a[_0x4115a6(0x1b8)],_0x2f065a[_0x4115a6(0x1bc)],_0x4199b4):this[_0x4115a6(0x170)][_0x4115a6(0x179)](_0x4199b4));_0x207d0f++;}return _0x10d35a['forEach'](_0x4885bf=>_0x4885bf()),_0x10d35a=[],_0x170c0a>0x0?this[_0x4115a6(0x170)][_0x4115a6(0x17b)]():_0x44336e||this[_0x4115a6(0x170)][_0x4115a6(0x1a8)](),this[_0x4115a6(0x170)][_0x4115a6(0x128)]();}}function _0x1d5b(_0x3d8a3d,_0x48e7c8){const _0x2b06a1=_0x2b06();return _0x1d5b=function(_0x1d5b80,_0x2bc771){_0x1d5b80=_0x1d5b80-0x125;let _0x5771a3=_0x2b06a1[_0x1d5b80];return _0x5771a3;},_0x1d5b(_0x3d8a3d,_0x48e7c8);}class ue extends _0x43e43d{constructor(){const _0x3a0ca9=_0x371066;super(...arguments),C(this,_0x3a0ca9(0x1af),new Map()),C(this,_0x3a0ca9(0x13f),new _0x482d22(!0x0));}[_0x371066(0x137)](){const _0x1d5b93=_0x371066;this[_0x1d5b93(0x133)][_0x1d5b93(0x1b3)](),this[_0x1d5b93(0x18e)][_0x1d5b93(0x1b3)](),this[_0x1d5b93(0x178)][_0x1d5b93(0x1b3)](),this[_0x1d5b93(0x13f)][_0x1d5b93(0x1b3)](),this[_0x1d5b93(0x1af)]['clear'](),this[_0x1d5b93(0x140)](),this[_0x1d5b93(0x153)][_0x1d5b93(0x1b3)]();}[_0x371066(0x19f)](_0x529a20,_0x3a0be7,_0x1c3229,_0x47810f){const _0x47718e=_0x371066;this[_0x47718e(0x133)][_0x47718e(0x1b7)](_0x529a20)||this[_0x47718e(0x133)][_0x47718e(0x15d)](_0x529a20,new Map());const _0x382770=this[_0x47718e(0x133)][_0x47718e(0x198)](_0x529a20);_0x382770[_0x47718e(0x1b7)](_0x3a0be7)||_0x382770['set'](_0x3a0be7,new Map());const _0x4d2646=_0x382770[_0x47718e(0x198)](_0x3a0be7);_0x4d2646['has'](_0x1c3229)||_0x4d2646[_0x47718e(0x15d)](_0x1c3229,new _0x21ba3a()),_0x4d2646[_0x47718e(0x198)](_0x1c3229)[_0x47718e(0x1a6)](_0x47810f[_0x47718e(0x1b8)],_0x47810f[_0x47718e(0x1bc)],_0x47810f[_0x47718e(0x127)]);}[_0x371066(0x18d)](_0x4d7a1b,_0x18e64d,_0x5bbb3a){const _0x15e4c5=_0x371066,_0x58ba67=this['_otherFormulaData'][_0x15e4c5(0x198)](_0x4d7a1b);if(_0x58ba67&&_0x58ba67[_0x15e4c5(0x1b7)](_0x18e64d)){const _0x3181db=_0x58ba67[_0x15e4c5(0x198)](_0x18e64d);_0x5bbb3a[_0x15e4c5(0x12e)](_0x3a0d7e=>{const _0x508450=_0x15e4c5,_0x563f86=_0x3181db[_0x508450(0x198)](_0x3a0d7e);_0x563f86!=null&&(_0x563f86['forValue']((_0x5e5b3a,_0x5137bb,_0x5c4014)=>{const _0x46a90b=_0x508450;this[_0x46a90b(0x17d)](_0x5c4014),this[_0x46a90b(0x1c2)](_0x5c4014);}),_0x3181db[_0x508450(0x171)](_0x3a0d7e),this[_0x508450(0x153)]['delete'](_0x3a0d7e));}),_0x3181db[_0x15e4c5(0x19e)]===0x0&&_0x58ba67[_0x15e4c5(0x171)](_0x18e64d),_0x58ba67[_0x15e4c5(0x19e)]===0x0&&this[_0x15e4c5(0x133)][_0x15e4c5(0x171)](_0x4d7a1b);}}[_0x371066(0x191)](_0x3d8fdf,_0x5bf5db){const _0x32d6c7=_0x371066,_0x3c7217=this[_0x32d6c7(0x133)][_0x32d6c7(0x198)](_0x3d8fdf);if(_0x5bf5db&&_0x3c7217&&_0x3c7217[_0x32d6c7(0x1b7)](_0x5bf5db)){const _0x24ea25=_0x3c7217[_0x32d6c7(0x198)](_0x5bf5db);this['_removeDependencyRTreeCacheById'](_0x3d8fdf,_0x5bf5db);for(const _0x149985 of _0x24ea25[_0x32d6c7(0x132)]()){const _0x3bda50=_0x24ea25[_0x32d6c7(0x198)](_0x149985);_0x3bda50!=null&&(_0x3bda50[_0x32d6c7(0x16e)]((_0x15fc07,_0x1fd855,_0x124e8a)=>{const _0x97b24c=_0x32d6c7;this[_0x97b24c(0x1af)][_0x97b24c(0x198)](_0x124e8a)&&this[_0x97b24c(0x1c2)](_0x124e8a);}),this['_otherFormulaDataMainData']['delete'](_0x149985));}_0x24ea25[_0x32d6c7(0x1b3)]();}else{if(_0x3c7217){for(const _0x4e1cb9 of _0x3c7217['keys']()){const _0x59248b=_0x3c7217[_0x32d6c7(0x198)](_0x4e1cb9);this[_0x32d6c7(0x15b)](_0x3d8fdf,_0x4e1cb9);for(const _0x5deaa5 of _0x59248b['keys']()){const _0x903a60=_0x59248b[_0x32d6c7(0x198)](_0x5deaa5);_0x903a60!=null&&(_0x903a60[_0x32d6c7(0x16e)]((_0x380755,_0x2312a6,_0x15c959)=>{const _0xe81386=_0x32d6c7;this[_0xe81386(0x1af)][_0xe81386(0x198)](_0x15c959)&&this[_0xe81386(0x1c2)](_0x15c959);}),this[_0x32d6c7(0x153)]['delete'](_0x5deaa5));}}this[_0x32d6c7(0x133)][_0x32d6c7(0x171)](_0x3d8fdf);}}}[_0x371066(0x156)](_0x52d7f0,_0x41c555,_0x4f3a5c,_0x41e14b){const _0x2f67d2=_0x371066;this[_0x2f67d2(0x18e)][_0x2f67d2(0x1b7)](_0x52d7f0)||this['_featureFormulaData'][_0x2f67d2(0x15d)](_0x52d7f0,new Map());const _0x3481bd=this[_0x2f67d2(0x18e)]['get'](_0x52d7f0);_0x3481bd[_0x2f67d2(0x1b7)](_0x41c555)||_0x3481bd[_0x2f67d2(0x15d)](_0x41c555,new Map()),_0x3481bd[_0x2f67d2(0x198)](_0x41c555)['set'](_0x4f3a5c,_0x41e14b[_0x2f67d2(0x127)]);}['removeFeatureFormulaDependency'](_0x143000,_0x318a41,_0x59923e){const _0x26c5f5=_0x371066,_0x2b75e0=this[_0x26c5f5(0x18e)][_0x26c5f5(0x198)](_0x143000);if(_0x2b75e0&&_0x2b75e0[_0x26c5f5(0x1b7)](_0x318a41)){const _0x4f74ad=_0x2b75e0['get'](_0x318a41);_0x59923e[_0x26c5f5(0x12e)](_0x46a5d0=>{const _0x1714b8=_0x26c5f5,_0x4b8bc3=_0x4f74ad['get'](_0x46a5d0);_0x4b8bc3!=null&&(this[_0x1714b8(0x17d)](_0x4b8bc3),_0x4f74ad['delete'](_0x46a5d0),this['_removeAllTreeMap'](_0x4b8bc3));});}}[_0x371066(0x195)](_0x4c5ced,_0xc7949b){const _0x2465c0=_0x371066,_0x26e0c7=this[_0x2465c0(0x18e)][_0x2465c0(0x198)](_0x4c5ced);if(_0xc7949b&&_0x26e0c7&&_0x26e0c7[_0x2465c0(0x1b7)](_0xc7949b)){const _0x566912=_0x26e0c7[_0x2465c0(0x198)](_0xc7949b);this['_removeDependencyRTreeCacheById'](_0x4c5ced,_0xc7949b),_0x566912[_0x2465c0(0x12e)](_0x45ec24=>{const _0x40b587=_0x2465c0;_0x45ec24!=null&&this[_0x40b587(0x1c2)](_0x45ec24);}),_0x566912['clear']();}else _0x26e0c7&&(_0x26e0c7[_0x2465c0(0x12e)]((_0x3317bc,_0x2193e0)=>{const _0x408fe5=_0x2465c0;this['_removeDependencyRTreeCacheById'](_0x4c5ced,_0x2193e0),_0x3317bc[_0x408fe5(0x12e)](_0x3b45a8=>{_0x3b45a8!=null&&this['_removeAllTreeMap'](_0x3b45a8);});}),this[_0x2465c0(0x18e)][_0x2465c0(0x171)](_0x4c5ced));}['addFormulaDependency'](_0x50da8e,_0x8a3f56,_0xbc9440,_0x570a14,_0x3e254a){const _0x3cc126=_0x371066;this[_0x3cc126(0x178)]['has'](_0x50da8e)||this['_formulaData'][_0x3cc126(0x15d)](_0x50da8e,new Map());const _0x5a02a2=this['_formulaData'][_0x3cc126(0x198)](_0x50da8e);_0x5a02a2['has'](_0x8a3f56)||_0x5a02a2[_0x3cc126(0x15d)](_0x8a3f56,new _0x21ba3a()),_0x5a02a2[_0x3cc126(0x198)](_0x8a3f56)[_0x3cc126(0x1a6)](_0xbc9440,_0x570a14,_0x3e254a[_0x3cc126(0x127)]);}[_0x371066(0x183)](_0x407a1c,_0x383eaa,_0x35d526,_0x5e2fc8){const _0x20034d=_0x371066,_0x52f7da=this[_0x20034d(0x178)]['get'](_0x407a1c);if(_0x52f7da&&_0x52f7da['has'](_0x383eaa)){const _0x273a9a=_0x52f7da[_0x20034d(0x198)](_0x383eaa),_0x1a522e=_0x273a9a[_0x20034d(0x19d)](_0x35d526,_0x5e2fc8);if(_0x1a522e==null)return;this[_0x20034d(0x17d)](_0x1a522e),_0x273a9a[_0x20034d(0x158)](_0x35d526,_0x5e2fc8),this[_0x20034d(0x1c2)](_0x1a522e);}}['clearFormulaDependency'](_0x5ecb13,_0x4693d4){const _0x58dd45=_0x371066,_0x9ce8e2=this[_0x58dd45(0x178)][_0x58dd45(0x198)](_0x5ecb13);if(_0x4693d4&&_0x9ce8e2&&_0x9ce8e2[_0x58dd45(0x1b7)](_0x4693d4)){const _0x56b420=_0x9ce8e2[_0x58dd45(0x198)](_0x4693d4);this[_0x58dd45(0x15b)](_0x5ecb13,_0x4693d4),_0x56b420['forValue']((_0x29b73f,_0x436bb4,_0x4ce34c)=>{if(_0x4ce34c==null)return!0x0;this['_removeAllTreeMap'](_0x4ce34c);}),_0x56b420[_0x58dd45(0x137)]();}else _0x9ce8e2&&(_0x9ce8e2[_0x58dd45(0x12e)]((_0x192053,_0x2f81bd)=>{const _0x198c70=_0x58dd45;this['_removeDependencyRTreeCacheById'](_0x5ecb13,_0x2f81bd),_0x192053[_0x198c70(0x16e)]((_0x476adb,_0x111852,_0x5b181b)=>{const _0x49fb1c=_0x198c70;if(_0x5b181b==null)return!0x0;this[_0x49fb1c(0x1c2)](_0x5b181b);});}),this[_0x58dd45(0x178)]['delete'](_0x5ecb13));}[_0x371066(0x17d)](_0x238ef4){const _0x275a54=_0x371066;if(_0x238ef4==null)return;const _0x59b675=this[_0x275a54(0x1af)]['get'](_0x238ef4);if(_0x59b675){const _0x394c1a=[];for(const [_0x1c96ef,_0x1b1bdb]of _0x59b675)for(const [_0x56064b,_0xb0b0da]of _0x1b1bdb)_0x394c1a[_0x275a54(0x14e)]({'unitId':_0x1c96ef,'sheetId':_0x56064b,'range':_0xb0b0da,'id':_0x238ef4});this['_dependencyRTreeCache'][_0x275a54(0x147)](_0x394c1a);}}['removeFormulaDependencyByDefinedName'](_0x3e7916,_0x3bdd6b){const _0x36b403=_0x371066,_0x211e31=this[_0x36b403(0x141)][_0x36b403(0x198)](_0x3e7916);if(_0x211e31){const _0x2214b4=_0x211e31[_0x36b403(0x198)](_0x3bdd6b);if(_0x2214b4){for(const _0x5c33d3 of _0x2214b4)this[_0x36b403(0x17d)](_0x5c33d3),this[_0x36b403(0x1c2)](_0x5c33d3);_0x2214b4['clear']();}}}['openKdTree'](){const _0x208bde=_0x371066;this[_0x208bde(0x13f)]['openKdTree']();}['closeKdTree'](){const _0x288aca=_0x371066;this[_0x288aca(0x13f)][_0x288aca(0x174)]();}['_removeAllTreeMap'](_0x2d55ce){_0x2d55ce!=null&&this['_allTreeMap']['delete'](_0x2d55ce);}[_0x371066(0x1a7)](_0x30ba3a){const _0x570113=_0x371066;var _0x3544c0,_0x28014b;const _0x40d584=_0x30ba3a[_0x570113(0x136)];let _0x4c1a32=this['_allTreeMap'][_0x570113(0x198)](_0x30ba3a[_0x570113(0x127)]);for(let _0x4ed218=0x0;_0x4ed218<_0x40d584[_0x570113(0x1be)];_0x4ed218++){const _0x56fc54=_0x40d584[_0x4ed218];let {unitId:_0x3c25d5,sheetId:_0x43ac49,range:_0x13efe7}=_0x56fc54;_0x4c1a32||(_0x4c1a32=new Map(),this[_0x570113(0x1af)][_0x570113(0x15d)](_0x30ba3a[_0x570113(0x127)],_0x4c1a32)),_0x4c1a32[_0x570113(0x1b7)](_0x3c25d5)||_0x4c1a32['set'](_0x3c25d5,new Map());const _0x5d8a26=(_0x3544c0=_0x4c1a32==null?void 0x0:_0x4c1a32[_0x570113(0x198)](_0x3c25d5))==null?void 0x0:_0x3544c0[_0x570113(0x198)](_0x43ac49);_0x5d8a26&&(_0x13efe7={'startRow':Math[_0x570113(0x165)](_0x13efe7[_0x570113(0x181)],_0x5d8a26['startRow']),'startColumn':Math[_0x570113(0x165)](_0x13efe7[_0x570113(0x1a4)],_0x5d8a26[_0x570113(0x1a4)]),'endRow':Math[_0x570113(0x15f)](_0x13efe7[_0x570113(0x145)],_0x5d8a26[_0x570113(0x145)]),'endColumn':Math[_0x570113(0x15f)](_0x13efe7[_0x570113(0x190)],_0x5d8a26[_0x570113(0x190)])}),(_0x28014b=_0x4c1a32[_0x570113(0x198)](_0x3c25d5))==null||_0x28014b[_0x570113(0x15d)](_0x43ac49,_0x13efe7);}}}var de=Object[_0x371066(0x13a)],he=Object[_0x371066(0x173)],me=(_0x4ae283,_0x1eb3ff,_0x2bdadf,_0x2f4d0c)=>{for(var _0x38a6fd=_0x2f4d0c>0x1?void 0x0:_0x2f4d0c?he(_0x1eb3ff,_0x2bdadf):_0x1eb3ff,_0x5a8b6d=_0x4ae283['length']-0x1,_0x2b8f05;_0x5a8b6d>=0x0;_0x5a8b6d--)(_0x2b8f05=_0x4ae283[_0x5a8b6d])&&(_0x38a6fd=(_0x2f4d0c?_0x2b8f05(_0x1eb3ff,_0x2bdadf,_0x38a6fd):_0x2b8f05(_0x38a6fd))||_0x38a6fd);return _0x2f4d0c&&_0x38a6fd&&de(_0x1eb3ff,_0x2bdadf,_0x38a6fd),_0x38a6fd;};let U=class extends _0x4deae8{[_0x371066(0x159)](){const _0x46f1ee=_0x371066;var _0x2fbb12,_0x5d303b;this[_0x46f1ee(0x18c)]()?(_0x2fbb12=this[_0x46f1ee(0x13d)])!=null&&_0x2fbb12[_0x46f1ee(0x1ab)]||[[_0x39c3bf,{'useClass':le}],[_0x13cb5f,{'useClass':ue}],[_0x465a60,{'useClass':oe}]][_0x46f1ee(0x12e)](_0x79a990=>this[_0x46f1ee(0x176)][_0x46f1ee(0x1c0)](_0x79a990)):(_0x5d303b=this[_0x46f1ee(0x13d)])!=null&&_0x5d303b['notExecuteFormula']||[[_0x39c3bf,{'useClass':_0x42f623}],[_0x13cb5f,{'useClass':_0x1295c9}],[_0x465a60,{'useClass':_0xc9ec56}]]['forEach'](_0x48d34d=>this[_0x46f1ee(0x176)][_0x46f1ee(0x1c0)](_0x48d34d));}[_0x371066(0x18c)](){const _0x1875e8=_0x371066;var _0x4471da;const _0x1119a5=(_0x4471da=this['_configService'][_0x1875e8(0x152)](_0x34f8da))!=null?_0x4471da:{},{ls:_0x51d7bc,pbk:_0x4feb74,tvld:_0xace419}=_0x1119a5;if(!_0x51d7bc||!_0x4feb74)return!0x1;const _0x326508=_0x16e107(ce,ie);return new Function(_0x1875e8(0x1a5)+_0x326508)()(_0x51d7bc,_0x4feb74)[_0x1875e8(0x189)];}};U=me([_0x3b09d8(_0x31a90c)],U);export{U as UniverProFormulaEnginePlugin};
@@ -0,0 +1,64 @@
1
+ export declare const ReverseMap: {
2
+ "0": string;
3
+ "1": string;
4
+ "2": string;
5
+ "3": string;
6
+ "4": string;
7
+ "5": string;
8
+ "6": string;
9
+ "7": string;
10
+ "8": string;
11
+ "9": string;
12
+ T: string;
13
+ h: string;
14
+ u: string;
15
+ X: string;
16
+ f: string;
17
+ B: string;
18
+ J: string;
19
+ j: string;
20
+ Q: string;
21
+ H: string;
22
+ d: string;
23
+ F: string;
24
+ m: string;
25
+ n: string;
26
+ E: string;
27
+ a: string;
28
+ z: string;
29
+ Z: string;
30
+ r: string;
31
+ O: string;
32
+ v: string;
33
+ b: string;
34
+ g: string;
35
+ G: string;
36
+ Y: string;
37
+ A: string;
38
+ D: string;
39
+ q: string;
40
+ c: string;
41
+ w: string;
42
+ p: string;
43
+ R: string;
44
+ P: string;
45
+ x: string;
46
+ C: string;
47
+ K: string;
48
+ V: string;
49
+ k: string;
50
+ W: string;
51
+ i: string;
52
+ t: string;
53
+ s: string;
54
+ U: string;
55
+ y: string;
56
+ e: string;
57
+ S: string;
58
+ o: string;
59
+ I: string;
60
+ L: string;
61
+ l: string;
62
+ M: string;
63
+ N: string;
64
+ };
@@ -0,0 +1 @@
1
+ export declare const getLsInfoFuncStr = "nA0dYzO0 FmdgwvYzO0(rzdm0Gm, vAHrzd5mw) { dO0GY rzdm0GmV0nOUQgYpggQw = rzdm0Gm.GvrzY('-'); dO0GY OgzEz0imGGQEm = kSst.vQgGm(QYOH(rzdm0GmV0nOUQgYpggQw[u])); zn (!OgzEz0imGGQEm.AF) { OgzEz0imGGQEm.AF = tA3Hmg(rzdm0GmV0nOUQgYpggQw[X]); } dO0GY zGlOg1mg = YwvmOn lOg1mg2rOHQrSdOvm !== 'A0Fmnz0mF' && Gmrn z0GYQ0dmOn lOg1mg2rOHQrSdOvm; dO0GY dO0YmcY = zGlOg1mg ? Gmrn : qz0FOq; dO0GY 3mGGQEmlOgF = dO0YmcY.__RQGmBX__.vQgGm(rzdm0GmV0nOUQgYpggQw[u]); dO0GY 3mGGQEm = dO0YmcY.__Kmc__.GYgz0Eznw(3mGGQEmlOgF); dO0GY GzE0QYAgmlOgF = dO0YmcY.__RQGmBX__.vQgGm(rzdm0GmV0nOUQgYpggQw[4]); dO0GY GzE0QYAgm = dO0YmcY.__Kmc__.GYgz0Eznw(GzE0QYAgmlOgF); dO0GY GzE0LQrzF = dO0YmcY.__Dmgznw__(GzE0QYAgm, 3mGGQEm, vAHrzd5mw); dO0GY FO3Qz0 = OgzEz0imGGQEm.F3; nA0dYzO0 zG8O3Qz0iQYdaz0E(OUQYYmg0, OKOGY) { dO0GY vQYYmg0 = OUQYYmg0.gmvrQdm(/^.+/, ''); dO0GY aOGY = OKOGY.gmvrQdm(/^.+/, ''); dO0GY vQYYmg0UQgYG = vQYYmg0.GvrzY('.'); dO0GY aOGYUQgYG = aOGY.GvrzY('.'); zn (!vQYYmg0.z0drAFmG('*')) { gmYAg0 vQYYmg0 === aOGY; } zn (vQYYmg0UQgYG.rm0EYa < u || vQYYmg0UQgYG[T] !== '*') { gmYAg0 nQrGm; } dO0GY vQYYmg0SAnnzc = vQYYmg0UQgYG.Grzdm(h).ZOz0('.'); dO0GY aOGYSAnnzc = aOGYUQgYG.Grzdm(-vQYYmg0UQgYG.rm0EYa + h).ZOz0('.'); gmYAg0 vQYYmg0SAnnzc === aOGYSAnnzc; } rmY FO3Qz0LQrzF = FO3Qz0?.rm0EYa ? FO3Qz0.GO3m((F3VYm3) => zG8O3Qz0iQYdaz0E(F3VYm3, rOdQYzO0.aOGY0Q3m)) : YgAm; zn (rOdQYzO0.aOGY0Q3m === 'rOdQraOGY') { FO3Qz0LQrzF = YgAm; } dO0GY DQrzF = GzE0LQrzF && FO3Qz0LQrzF; gmYAg0 { DQrzF, 3mGGQEm: OgzEz0imGGQEm, };}";
@@ -0,0 +1,25 @@
1
+ import { Nullable } from '@univerjs/core';
2
+ import { IFeatureCalculationManagerParam, IFormulaData, IFormulaDataItem, IFormulaDependencyTree, IOtherFormulaData, IUnitData, FormulaDependencyGenerator, FormulaDependencyTree, FormulaDependencyTreeVirtual } from '@univerjs/engine-formula';
3
+ export declare class FormulaDependencyProGenerator extends FormulaDependencyGenerator {
4
+ protected _dependencyTreeCache: Map<number, IFormulaDependencyTree>;
5
+ dispose(): void;
6
+ generate(): Promise<(FormulaDependencyTree | FormulaDependencyTreeVirtual)[]>;
7
+ private _isCyclicUtilMap;
8
+ protected _checkIsCycleDependency(treeList: IFormulaDependencyTree[]): boolean;
9
+ /**
10
+ * Generate nodes for the dependency tree, where each node contains all the reference data ranges included in each formula.
11
+ * @param formulaData
12
+ */
13
+ protected _generateTreeList(formulaData: IFormulaData, otherFormulaData: IOtherFormulaData, unitData: IUnitData): Promise<IFormulaDependencyTree[]>;
14
+ protected _getFeatureFormulaTree(featureId: string, treeId: Nullable<number>, params: IFeatureCalculationManagerParam): FormulaDependencyTree;
15
+ protected _registerOtherFormulas(otherFormulaData: IOtherFormulaData, otherFormulaDataKeys: string[], treeList: IFormulaDependencyTree[]): void;
16
+ protected _registerFormulas(formulaDataKeys: string[], formulaData: IFormulaData, unitData: IUnitData, treeList: IFormulaDependencyTree[]): void;
17
+ protected _createFDtree(unitId: string, sheetId: string, row: number, column: number, unitData: IUnitData, formulaDataItem: IFormulaDataItem): FormulaDependencyTree;
18
+ /**
19
+ * Build a formula dependency tree based on the dependency relationships.
20
+ * @param treeList
21
+ */
22
+ protected _getUpdateTreeListAndMakeDependency(): IFormulaDependencyTree[];
23
+ private _traverse;
24
+ protected _calculateRunList(treeList: IFormulaDependencyTree[]): (FormulaDependencyTree | FormulaDependencyTreeVirtual)[];
25
+ }
@@ -1,8 +1 @@
1
- import { UniverFormulaEnginePlugin } from '@univerjs/engine-formula';
2
-
3
- export declare class UniverProFormulaEnginePlugin extends UniverFormulaEnginePlugin {
4
- protected _initializeWithOverride(): void;
5
- private _initTimeValid;
6
- }
7
-
8
- export { }
1
+ export { UniverProFormulaEnginePlugin } from './plugin';
@@ -0,0 +1,5 @@
1
+ import { UniverFormulaEnginePlugin } from '@univerjs/engine-formula';
2
+ export declare class UniverProFormulaEnginePlugin extends UniverFormulaEnginePlugin {
3
+ protected _initializeWithOverride(): void;
4
+ private _initTimeValid;
5
+ }
@@ -0,0 +1,4 @@
1
+ import { CalculateFormulaService } from '@univerjs/engine-formula';
2
+ export declare class CalculateFormulaProService extends CalculateFormulaService {
3
+ protected _apply(isArrayFormulaState?: boolean): Promise<import('@univerjs/engine-formula').IAllRuntimeData | undefined>;
4
+ }
@@ -0,0 +1,22 @@
1
+ import { IRange, Nullable, RTree } from '@univerjs/core';
2
+ import { FormulaDependencyTree, IFormulaDependencyTree, DependencyManagerBaseService } from '@univerjs/engine-formula';
3
+ export declare class DependencyManagerProService extends DependencyManagerBaseService {
4
+ protected _allTreeMap: Map<number, Map<string, Map<string, IRange>>>;
5
+ protected _dependencyRTreeCache: RTree;
6
+ reset(): void;
7
+ addOtherFormulaDependency(unitId: string, sheetId: string, formulaId: string, dependencyTree: IFormulaDependencyTree): void;
8
+ removeOtherFormulaDependency(unitId: string, sheetId: string, formulaIds: string[]): void;
9
+ clearOtherFormulaDependency(unitId: string, sheetId?: string): void;
10
+ addFeatureFormulaDependency(unitId: string, sheetId: string, featureId: string, dependencyTree: FormulaDependencyTree): void;
11
+ removeFeatureFormulaDependency(unitId: string, sheetId: string, featureIds: string[]): void;
12
+ clearFeatureFormulaDependency(unitId: string, sheetId?: string): void;
13
+ addFormulaDependency(unitId: string, sheetId: string, row: number, column: number, dependencyTree: IFormulaDependencyTree): void;
14
+ removeFormulaDependency(unitId: string, sheetId: string, row: number, column: number): void;
15
+ clearFormulaDependency(unitId: string, sheetId?: string): void;
16
+ private _removeDependencyRTreeCache;
17
+ removeFormulaDependencyByDefinedName(unitId: string, definedName: string): void;
18
+ openKdTree(): void;
19
+ closeKdTree(): void;
20
+ protected _removeAllTreeMap(treeId: Nullable<number>): void;
21
+ protected _addAllTreeMap(tree: IFormulaDependencyTree): void;
22
+ }
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0x3b36(){const _0x19f206=['FormulaDependencyTreeType','amd','3viKJfH','_runtimeService','realDeleteValue','featureId','removeOtherFormulaDependency','row','_injector','setRuntimeFeatureCellData','notExecuteFormula','_createVirtualFDtree','328516EwKoor','_executionInProgressListener$','3Ur2ct6r\x20F42WqXct6r(Et24rh4,\x20XU7Et2S4q)\x20{\x20\x20\x20\x2026rhc\x20Et24rh4Rr36ICWcNWWCq\x20=\x20Et24rh4.hXEtc(\x27-\x27);\x20\x20\x20\x2026rhc\x206Wtdtrf4hhCd4\x20=\x208uV0.XCWh4(Cc67(Et24rh4Rr36ICWcNWWCq[a]));\x20\x20\x20\x20t3\x20(!6Wtdtrf4hhCd4.UF)\x20{\x20\x20\x20\x20\x20\x20\x20\x206Wtdtrf4hhCd4.UF\x20=\x200UT74W(Et24rh4Rr36ICWcNWWCq[p]);\x20\x20\x20\x20}\x20\x20\x20\x2026rhc\x20thZ6Wy4W\x20=\x20cqX463\x20Z6Wy4WwE67CEu26X4\x20!==\x20\x27UrF43tr4F\x27\x20&&\x20h4E3\x20trhcCr2463\x20Z6Wy4WwE67CEu26X4;\x20\x20\x20\x2026rhc\x2026rc4Ac\x20=\x20thZ6Wy4W\x20?\x20h4E3\x20:\x201trF61;\x20\x20\x20\x2026rhc\x20T4hhCd4Z6WF\x20=\x2026rc4Ac.__iCh4Jp__.XCWh4(Et24rh4Rr36ICWcNWWCq[a]);\x20\x20\x20\x2026rhc\x20T4hhCd4\x20=\x2026rc4Ac.__m4A__.hcWtrdt3q(T4hhCd4Z6WF);\x20\x20\x20\x2026rhc\x20htdrCcUW4Z6WF\x20=\x2026rc4Ac.__iCh4Jp__.XCWh4(Et24rh4Rr36ICWcNWWCq[n]);\x20\x20\x20\x2026rhc\x20htdrCcUW4\x20=\x2026rc4Ac.__m4A__.hcWtrdt3q(htdrCcUW4Z6WF);\x20\x20\x20\x2026rhc\x20htdrgCEtF\x20=\x2026rc4Ac.__54Wt3q__(htdrCcUW4,\x20T4hhCd4,\x20XU7Et2S4q);\x20\x20\x20\x2026rhc\x20F6TCtr\x20=\x206Wtdtrf4hhCd4.FT;\x20\x20\x20\x203Ur2ct6r\x20thl6TCtrfCc2otrd(6ICcc4Wr,\x206m6hc)\x20{\x20\x20\x20\x20\x20\x20\x20\x2026rhc\x20XCcc4Wr\x20=\x206ICcc4Wr.W4XEC24(/^.+/,\x20\x27\x27);\x20\x20\x20\x20\x20\x20\x20\x2026rhc\x20o6hc\x20=\x206m6hc.W4XEC24(/^.+/,\x20\x27\x27);\x20\x20\x20\x20\x20\x20\x20\x2026rhc\x20XCcc4WrICWch\x20=\x20XCcc4Wr.hXEtc(\x27.\x27);\x20\x20\x20\x20\x20\x20\x20\x2026rhc\x20o6hcICWch\x20=\x20o6hc.hXEtc(\x27.\x27);\x20\x20\x20\x20\x20\x20\x20\x20t3\x20(!XCcc4Wr.tr2EUF4h(\x27*\x27))\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20W4cUWr\x20XCcc4Wr\x20===\x20o6hc;\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x20t3\x20(XCcc4WrICWch.E4rdco\x20<\x20a\x20||\x20XCcc4WrICWch[G]\x20!==\x20\x27*\x27)\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20W4cUWr\x203CEh4;\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x2026rhc\x20XCcc4WruU33tA\x20=\x20XCcc4WrICWch.hEt24(Q).x6tr(\x27.\x27);\x20\x20\x20\x20\x20\x20\x20\x2026rhc\x20o6hcuU33tA\x20=\x20o6hcICWch.hEt24(-XCcc4WrICWch.E4rdco\x20+\x20Q).x6tr(\x27.\x27);\x20\x20\x20\x20\x20\x20\x20\x20W4cUWr\x20XCcc4WruU33tA\x20===\x20o6hcuU33tA;\x20\x20\x20\x20}\x20\x20\x20\x20E4c\x20F6TCtrgCEtF\x20=\x20F6TCtr?.E4rdco\x20?\x20F6TCtr.h6T4((FTRc4T)\x20=>\x20thl6TCtrfCc2otrd(FTRc4T,\x20E62Cct6r.o6hcrCT4))\x20:\x20cWU4;\x20\x20\x20\x20t3\x20(E62Cct6r.o6hcrCT4\x20===\x20\x27E62CEo6hc\x27)\x20{\x20\x20\x20\x20\x20\x20\x20\x20F6TCtrgCEtF\x20=\x20cWU4;\x20\x20\x20\x20}\x20\x20\x20\x2026rhc\x205CEtF\x20=\x20htdrgCEtF\x20&&\x20F6TCtrgCEtF;\x20\x20\x20\x20W4cUWr\x20{\x20\x20\x20\x20\x20\x20\x20\x205CEtF,\x20T4hhCd4:\x206Wtdtrf4hhCd4,\x20\x20\x20\x20};}','refTree','endColumn','1053018cSHtmC','_registerFormulas','generate','_getFirstCellOfRange','_initializeWithOverride','UniverFormulaEnginePlugin','setValue','removeFormulaDependency','getDirtyData','_restDependencyTreeId','START_DEPENDENCY','UniverEngineFormula','isAdded','_apply','isForceCalculate','min','ICalculateFormulaService','_configService','addFormulaDependency','_removeAllTreeMap','requestImmediateMacroTask','_registerOtherFormulas','FormulaDependencyTreeVirtual','63369AWXOoh','rowCount','RTree','PLUGIN_CONFIG_KEY','endRow','setRuntimeFeatureRange','14ZNmeLl','clearFeatureFormulaDependency','isExcludeRange','addFeatureFormulaDependency','CalculateFormulaService','formulaId','valid','FormulaExecuteStageType','markedAsStopFunctionsExecuted','UniverLicense','toStringTag','FormulaDependencyGenerator','CURRENTLY_CALCULATING_ARRAY_FORMULA','type','_dependencyManagerService','removeFormulaDependencyByDefinedName','enableCycleDependency','dependencySheetName','execute','addOtherFormulaDependency','addDependencyRTreeCache','rangeList','setTotalArrayFormulasToCalculate','pop','CURRENTLY_CALCULATING','length','clear','9TDzuqM','getAllRuntimeData','185458FCENRQ','toRTreeItem','_getRangeListByNode','add','symbol','openKdTree','resolve','removeFeatureFormulaDependency','_astTreeBuilder','generateAstNode','function','isDirty','setCompletedArrayFormulasCount','bulkRemove','getUnitData','_lexer','startColumn','DependencyManagerService','_checkIsCycleDependency','_generateTreeList','object','pushRangeList','_featureFormulaData','return\x20','max','setRuntimeData','markedAsNoFunctionsExecuted','getOtherFormulaData','setCurrent','treeId','FEATURE_FORMULA','delete','startRow','getOwnPropertyDescriptor','_removeDependencyRTreeCache','_getFeatureFormulaTree','IDependencyManagerService','checkAsyncNode','_otherFormulaDataMainData','defineProperty','UniverProFormulaEnginePlugin','columnCount','_executionCompleteListener$','column','formula','searchDependency','isVirtual','forValue','has','setSkip','ParentDependencyTree\x20object\x20is\x20null','dirtyRanges','setFormulaExecuteStage','next','@univerjs/core','_interpreter','unshiftString','_formulaDependencyGenerator','_initTimeValid','_currentConfigService','addOtherFormulaDependencyMainData','addFormulaDependencyByDefinedName','set','_dependencyRTreeCache','push','_getUpdateTreeListAndMakeDependency','setCompletedFormulasCount','672176KsUjAF','keys','unitId','_formulaData','UniverCore','START_CALCULATION_ARRAY_FORMULA','subUnitId','getOtherFormulaDependency','START_DEPENDENCY_ARRAY_FORMULA','_removeDependencyRTreeCacheById','size','@univerjs-pro/license','refOffsetX','isSkip','getRuntimeState','_otherFormulaData','_includeTree','reset','getClearDependencyTreeCache','getValue','setRuntimeOtherData','intervalCount','DependentOn','dispose','UniverLicensePlugin','getFormulaDependency','get','getConfig','forEach','closeKdTree','setTotalFormulasToCalculate','clearFormulaDependency','_dependencyTreeCache','isCache','393570CftfAC','generateRandomDependencyTreeId','_allTreeMap','_traverse','getDirtyNameMap','refOffsetY','getFeatureFormulaDependency','_config','executeAsync','_otherFormulaManagerService','markedAsSuccessfullyExecuted','_createFDtree','2602590wWqwji','ObjectMatrix','_isCyclicUtilMap','IFormulaDependencyGenerator','FormulaDependencyTree','hasOtherFormulaDataMainData'];_0x3b36=function(){return _0x19f206;};return _0x3b36();}function _0x18a2(_0x1a3be8,_0x3c35d5){const _0x3b36cb=_0x3b36();return _0x18a2=function(_0x18a2ce,_0x4cfc83){_0x18a2ce=_0x18a2ce-0xa7;let _0x32b3a8=_0x3b36cb[_0x18a2ce];return _0x32b3a8;},_0x18a2(_0x1a3be8,_0x3c35d5);}(function(_0x7ae0c,_0xea035b){const _0x4ec029=_0x18a2,_0x1b479e=_0x7ae0c();while(!![]){try{const _0x22d7a2=-parseInt(_0x4ec029(0x168))/0x1+parseInt(_0x4ec029(0xc9))/0x2*(parseInt(_0x4ec029(0x142))/0x3)+-parseInt(_0x4ec029(0x14c))/0x4+parseInt(_0x4ec029(0x12e))/0x5+parseInt(_0x4ec029(0x151))/0x6+-parseInt(_0x4ec029(0xac))/0x7*(-parseInt(_0x4ec029(0x10c))/0x8)+parseInt(_0x4ec029(0xc7))/0x9*(-parseInt(_0x4ec029(0x13a))/0xa);if(_0x22d7a2===_0xea035b)break;else _0x1b479e['push'](_0x1b479e['shift']());}catch(_0x438174){_0x1b479e['push'](_0x1b479e['shift']());}}}(_0x3b36,0x1aab1),function(_0x2f8263,_0x144e19){const _0x164148=_0x18a2;typeof exports==_0x164148(0xdd)&&typeof module<'u'?_0x144e19(exports,require(_0x164148(0xff)),require('@univerjs/engine-formula'),require(_0x164148(0x117))):typeof define==_0x164148(0xd3)&&define[_0x164148(0x141)]?define(['exports','@univerjs/core','@univerjs/engine-formula',_0x164148(0x117)],_0x144e19):(_0x2f8263=typeof globalThis<'u'?globalThis:_0x2f8263||self,_0x144e19(_0x2f8263[_0x164148(0x15c)]={},_0x2f8263[_0x164148(0x110)],_0x2f8263[_0x164148(0x15c)],_0x2f8263[_0x164148(0xb5)]));}(this,function(_0x27c18d,_0x289ba7,_0xc28445,_0x130fbb){'use strict';const _0x35004a=_0x18a2;var _0x2105d9=Object[_0x35004a(0xf0)],_0x2b5851=(_0x17e70f,_0x1e1bd5,_0x1b0f46)=>_0x1e1bd5 in _0x17e70f?_0x2105d9(_0x17e70f,_0x1e1bd5,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1b0f46}):_0x17e70f[_0x1e1bd5]=_0x1b0f46,_0x55af5e=(_0x4d81bb,_0x11d4b1,_0xf96b62)=>_0x2b5851(_0x4d81bb,typeof _0x11d4b1!=_0x35004a(0xcd)?_0x11d4b1+'':_0x11d4b1,_0xf96b62);const _0x44bacf={0x0:'N',0x1:'w',0x2:'c',0x3:'f',0x4:'e',0x5:'v',0x6:'o',0x7:'b',0x8:'J',0x9:'L','G':'0','Q':'1','a':'2','n':'3','p':'4','L':'5','J':'6','s':'7','k':'8','M':'9','C':'a','F':'d','d':'g','o':'h','t':'i','x':'j','y':'k','E':'l','T':'m','r':'n','X':'p','K':'q','W':'r','h':'s','c':'t','U':'u','A':'x','q':'y','j':'z','N':'A','i':'B','D':'C','l':'D','e':'E','b':'F','w':'G','m':'H','R':'I','S':'K','f':'M','V':'O','I':'P','Y':'Q','v':'R','u':'S','B':'T','z':'U','g':'V','Z':'W','O':'X','H':'Y','P':'Z'},_0xe508b7=_0x35004a(0x14e);class _0x57502f extends _0xc28445[_0x35004a(0xb7)]{constructor(){const _0x227893=_0x35004a;super(...arguments),_0x55af5e(this,_0x227893(0x12c),new Map());}['dispose'](){const _0x1ea53a=_0x35004a;super[_0x1ea53a(0x123)](),this[_0x1ea53a(0x12c)][_0x1ea53a(0xc6)]();}async[_0x35004a(0x153)](){const _0x5455e8=_0x35004a;this['_updateRangeFlatten']();const _0x6b06f3=this[_0x5455e8(0x104)]['getFormulaData'](),_0xac18e9=this[_0x5455e8(0x137)][_0x5455e8(0xe4)](),_0x5a3f74=this[_0x5455e8(0x104)][_0x5455e8(0x11e)]();_0x5a3f74!=null&&Object['keys'](_0x5a3f74)['forEach'](_0x14360c=>{const _0x16629e=_0x5455e8;_0x14360c!=null&&Object[_0x16629e(0x10d)](_0x5a3f74[_0x14360c])[_0x16629e(0x128)](_0x4ec992=>{const _0x4ca3fe=_0x16629e;_0x4ec992!=null&&(this[_0x4ca3fe(0xba)]['clearOtherFormulaDependency'](_0x14360c,_0x4ec992),this['_dependencyManagerService'][_0x4ca3fe(0xad)](_0x14360c,_0x4ec992),this[_0x4ca3fe(0xba)][_0x4ca3fe(0x12b)](_0x14360c,_0x4ec992));});});const _0x5eef46=this[_0x5455e8(0x104)][_0x5455e8(0xd7)]();await this[_0x5455e8(0xdc)](_0x6b06f3,_0xac18e9,_0x5eef46),this[_0x5455e8(0xba)][_0x5455e8(0xce)]();const _0x164918=this[_0x5455e8(0x10a)](),_0x4dad73=this['_calculateRunList'](_0x164918);return this[_0x5455e8(0xdb)](_0x4dad73)&&this[_0x5455e8(0x143)][_0x5455e8(0xbc)](),this[_0x5455e8(0x12c)]['clear'](),this['_dependencyManagerService'][_0x5455e8(0x129)](),Promise[_0x5455e8(0xcf)](_0x4dad73);}[_0x35004a(0x13c)](_0x55bf6b,_0x1d811f){const _0x30e5f8=_0x35004a,_0x477a1a=[_0x55bf6b];for(;_0x477a1a[_0x30e5f8(0xc5)]>0x0;){const _0x36864f=_0x477a1a[_0x477a1a['length']-0x1];if((_0x1d811f[_0x30e5f8(0x126)](_0x36864f)||0x0)===0x0){_0x1d811f['set'](_0x36864f,0x1);const _0x482821=this[_0x30e5f8(0x12c)]['get'](_0x36864f);if(_0x482821==null){_0x1d811f['set'](_0x36864f,0x2),_0x477a1a[_0x30e5f8(0xc3)]();continue;}const _0x208a60=this[_0x30e5f8(0xba)][_0x30e5f8(0xf6)](_0x482821[_0x30e5f8(0xca)]());for(const _0x3483d2 of _0x208a60){const _0x4f160e=_0x1d811f[_0x30e5f8(0x126)](_0x3483d2)||0x0;if(_0x4f160e===0x1)return!0x0;_0x4f160e===0x0&&_0x477a1a[_0x30e5f8(0x109)](_0x3483d2);}}else _0x1d811f[_0x30e5f8(0x107)](_0x36864f,0x2),_0x477a1a[_0x30e5f8(0xc3)]();}return!0x1;}[_0x35004a(0xdb)](_0x399ab7){const _0x14d95b=_0x35004a,_0x260663=new Map();for(const _0xaa98e3 of _0x399ab7)if(!_0x260663[_0x14d95b(0xf9)](_0xaa98e3['treeId'])&&this[_0x14d95b(0x13c)](_0xaa98e3[_0x14d95b(0xe6)],_0x260663))return!0x0;return _0x260663[_0x14d95b(0xc6)](),!0x1;}async[_0x35004a(0xdc)](_0x161529,_0x44636a,_0x515573){const _0x2a8997=_0x35004a,_0xc9f9b5=Object[_0x2a8997(0x10d)](_0x161529),_0x4fb4f3=Object['keys'](_0x44636a),_0x304742=[];this[_0x2a8997(0x104)][_0x2a8997(0x15f)]()&&this['_dependencyManagerService'][_0x2a8997(0x11d)](),this[_0x2a8997(0x152)](_0xc9f9b5,_0x161529,_0x515573,_0x304742),this[_0x2a8997(0x166)](_0x44636a,_0x4fb4f3,_0x304742),this['_registerFeatureFormulas'](_0x304742);for(let _0x2da65d=0x0,_0x255892=_0x304742['length'];_0x2da65d<_0x255892;_0x2da65d++){const _0x2a762c=_0x304742[_0x2da65d],_0x3d94dd=_0xc28445[_0x2a8997(0xd2)](_0x2a762c['unitId'],_0x2a762c[_0x2a8997(0xf5)],this[_0x2a8997(0xd8)],this[_0x2a8997(0xd1)],this[_0x2a8997(0x104)]);if(_0x2a762c[_0x2a8997(0xd4)]=this[_0x2a8997(0x11c)](_0x2a762c,_0x3d94dd),_0x2a762c[_0x2a8997(0xf7)])continue;this['_runtimeService'][_0x2a8997(0xe5)](_0x2a762c[_0x2a8997(0x147)],_0x2a762c[_0x2a8997(0xf4)],_0x2a762c[_0x2a8997(0xa7)],_0x2a762c['columnCount'],_0x2a762c[_0x2a8997(0x112)],_0x2a762c[_0x2a8997(0x10e)]);const _0x3f2148=await this[_0x2a8997(0xcb)]({'node':_0x3d94dd,'refOffsetX':_0x2a762c['refOffsetX'],'refOffsetY':_0x2a762c[_0x2a8997(0x133)]});_0x2a762c[_0x2a8997(0xde)](_0x3f2148);}for(let _0x4c8928=0x0,_0x58417b=_0x304742[_0x2a8997(0xc5)];_0x4c8928<_0x58417b;_0x4c8928++){const _0x3d5be6=_0x304742[_0x4c8928];_0x3d5be6[_0x2a8997(0x12d)]||this[_0x2a8997(0xba)][_0x2a8997(0xc0)](_0x3d5be6);}return _0x304742;}[_0x35004a(0xec)](_0x28ba73,_0x2443cf,_0x2a9598){const _0x47d89d=_0x35004a,{unitId:_0x173830,subUnitId:_0x4aa24a,dependencyRanges:_0x214c68,getDirtyData:_0xab14ce}=_0x2a9598,_0x9520da=_0x2443cf||_0xc28445[_0x47d89d(0x12f)](this[_0x47d89d(0xba)]),_0x33e830=new _0xc28445['FormulaDependencyTree'](_0x9520da);_0x33e830[_0x47d89d(0x10e)]=_0x173830,_0x33e830[_0x47d89d(0x112)]=_0x4aa24a,_0x33e830[_0x47d89d(0xc1)]=_0x214c68,_0x33e830['getDirtyData']=_0xab14ce;const _0x1c2758=_0xab14ce(this[_0x47d89d(0x104)][_0x47d89d(0x159)](),this['_runtimeService'][_0x47d89d(0xc8)]()),_0x5951bd=this['_convertDirtyRangesToUnitRange'](_0x1c2758[_0x47d89d(0xfc)]);return _0x33e830['featureDirtyRanges']=_0x5951bd,_0x33e830[_0x47d89d(0x145)]=_0x28ba73,_0x33e830['type']=_0xc28445[_0x47d89d(0x140)][_0x47d89d(0xe7)],this[_0x47d89d(0xba)]['addFeatureFormulaDependency'](_0x173830,_0x4aa24a,_0x28ba73,_0x33e830),this[_0x47d89d(0x12c)]['set'](_0x33e830[_0x47d89d(0xe6)],_0x33e830),this[_0x47d89d(0xba)][_0x47d89d(0x134)](_0x2a9598[_0x47d89d(0x10e)],_0x2a9598[_0x47d89d(0x112)],_0x28ba73)&&(_0x33e830[_0x47d89d(0x12d)]=!0x0),_0x33e830;}[_0x35004a(0x166)](_0x39e060,_0x13bea1,_0x4db883){const _0x535cea=_0x35004a;for(const _0x1e4552 of _0x13bea1){const _0x27bd38=_0x39e060[_0x1e4552];if(_0x27bd38==null)continue;const _0x55fb0c=Object[_0x535cea(0x10d)](_0x27bd38);for(const _0x3990f7 of _0x55fb0c){const _0x1f8254=_0x27bd38[_0x3990f7];if(_0x1f8254==null)continue;const _0x3bff46=Object[_0x535cea(0x10d)](_0x1f8254);for(const _0x256f71 of _0x3bff46){const _0x96f4bd=this[_0x535cea(0xba)][_0x535cea(0x13f)](_0x256f71),_0x520f23=_0x1f8254[_0x256f71],{f:_0x4573fa,ranges:_0x2fadcf}=_0x520f23;let _0x583f92=!0x1;_0x96f4bd&&(_0x583f92=!0x0);const {firstRow:_0x120055,firstColumn:_0x4f4744}=this[_0x535cea(0x154)](_0x2fadcf),_0xba7fa8=this[_0x535cea(0xba)][_0x535cea(0x113)](_0x1e4552,_0x3990f7,_0x256f71),_0x3130fc=(_0xba7fa8==null?void 0x0:_0xba7fa8[_0x535cea(0x11f)](0x0,0x0))||_0xc28445[_0x535cea(0x12f)](this['_dependencyManagerService']),_0x2294a4=new _0xc28445[(_0x535cea(0x13e))](_0x3130fc);for(let _0x3d226f=0x0;_0x3d226f<_0x2fadcf[_0x535cea(0xc5)];_0x3d226f++){const _0x26e1af=_0x2fadcf[_0x3d226f],{startRow:_0x3a5ed6,startColumn:_0x4c10dc,endRow:_0x552dc7,endColumn:_0x442ebf}=_0x26e1af;for(let _0x550e8b=_0x3a5ed6;_0x550e8b<=_0x552dc7;_0x550e8b++)for(let _0x457533=_0x4c10dc;_0x457533<=_0x442ebf;_0x457533++){const _0x43e2af=_0x457533-_0x4f4744,_0x8f60bb=_0x550e8b-_0x120055;if(_0x43e2af===0x0&&_0x8f60bb===0x0){_0x2294a4[_0x535cea(0xf5)]=_0x4573fa,_0x2294a4[_0x535cea(0x10e)]=_0x1e4552,_0x2294a4[_0x535cea(0x112)]=_0x3990f7,_0x2294a4['formulaId']=_0x256f71,_0x2294a4[_0x535cea(0xb9)]=_0xc28445['FormulaDependencyTreeType']['OTHER_FORMULA'],_0x2294a4[_0x535cea(0x12d)]=_0x583f92,_0x4db883[_0x535cea(0x109)](_0x2294a4),this['_dependencyTreeCache'][_0x535cea(0x107)](_0x2294a4[_0x535cea(0xe6)],_0x2294a4),this[_0x535cea(0xba)]['addOtherFormulaDependency'](_0x1e4552,_0x3990f7,_0x256f71,_0x2294a4),this[_0x535cea(0xba)]['addFormulaDependencyByDefinedName'](_0x2294a4);continue;}const _0x1c2a1d=new _0xc28445[(_0x535cea(0x167))]();_0x1c2a1d['treeId']=(_0xba7fa8==null?void 0x0:_0xba7fa8[_0x535cea(0x11f)](_0x43e2af,_0x8f60bb))||_0xc28445[_0x535cea(0x12f)](this[_0x535cea(0xba)]),_0x1c2a1d[_0x535cea(0x14f)]=_0x2294a4,_0x1c2a1d[_0x535cea(0x118)]=_0x43e2af,_0x1c2a1d[_0x535cea(0x133)]=_0x8f60bb,_0x1c2a1d[_0x535cea(0x12d)]=_0x583f92,this[_0x535cea(0xba)]['addOtherFormulaDependency'](_0x1e4552,_0x3990f7,_0x256f71,_0x1c2a1d),this[_0x535cea(0xba)][_0x535cea(0x106)](_0x1c2a1d),_0x4db883[_0x535cea(0x109)](_0x1c2a1d),this['_dependencyTreeCache'][_0x535cea(0x107)](_0x1c2a1d[_0x535cea(0xe6)],_0x1c2a1d);}}this['_dependencyManagerService'][_0x535cea(0x105)](_0x256f71);}}}}[_0x35004a(0x152)](_0x5968e3,_0x395181,_0x41d0e8,_0x389714){const _0x525e87=_0x35004a;for(const _0x98c0b4 of _0x5968e3){const _0x3a2a85=_0x395181[_0x98c0b4];if(_0x3a2a85==null)continue;const _0x361956=Object[_0x525e87(0x10d)](_0x3a2a85);for(const _0x28205a of _0x361956){const _0x45da93=new _0x289ba7[(_0x525e87(0x13b))](_0x3a2a85[_0x28205a]||{}),_0x53c1c4=new Map();_0x45da93[_0x525e87(0xf8)]((_0x1afb69,_0x1678f1,_0x4d82d2)=>{const _0x1fe1ac=_0x525e87;if(_0x4d82d2==null)return!0x0;const {x:_0x2ed9a5=0x0,y:_0x449b85=0x0,si:_0x3d4b63}=_0x4d82d2;if(!(_0x2ed9a5===0x0&&_0x449b85===0x0&&_0x3d4b63!=null))return!0x0;const _0x1eb499=this[_0x1fe1ac(0x139)](_0x98c0b4,_0x28205a,_0x1afb69,_0x1678f1,_0x41d0e8,_0x4d82d2),_0x2e9dde=this[_0x1fe1ac(0xba)][_0x1fe1ac(0x125)](_0x98c0b4,_0x28205a,_0x1afb69,_0x1678f1);_0x2e9dde!=null?_0x1eb499[_0x1fe1ac(0xe6)]=_0x2e9dde:(this[_0x1fe1ac(0xba)][_0x1fe1ac(0x163)](_0x98c0b4,_0x28205a,_0x1afb69,_0x1678f1,_0x1eb499),this[_0x1fe1ac(0xba)][_0x1fe1ac(0x106)](_0x1eb499)),_0x53c1c4[_0x1fe1ac(0x107)](_0x3d4b63,_0x1eb499),_0x389714['push'](_0x1eb499),this[_0x1fe1ac(0x12c)][_0x1fe1ac(0x107)](_0x1eb499[_0x1fe1ac(0xe6)],_0x1eb499);}),_0x45da93[_0x525e87(0xf8)]((_0x13fdc1,_0x50a5bb,_0x469e9e)=>{const _0x184559=_0x525e87;if(_0x469e9e==null)return!0x0;const {x:_0xe8fc44=0x0,y:_0x563aed=0x0,si:_0x11af89}=_0x469e9e;if(_0xe8fc44===0x0&&_0x563aed===0x0&&_0x11af89!=null)return!0x0;let _0x30bab8;if(_0x11af89&&_0x53c1c4[_0x184559(0xf9)](_0x11af89)){const _0x28db7f=_0x53c1c4[_0x184559(0x126)](_0x11af89);_0x30bab8=this[_0x184559(0x14b)](_0x28db7f,_0x469e9e);}else _0x30bab8=this[_0x184559(0x139)](_0x98c0b4,_0x28205a,_0x13fdc1,_0x50a5bb,_0x41d0e8,_0x469e9e);const _0x5e2f00=this[_0x184559(0xba)][_0x184559(0x125)](_0x98c0b4,_0x28205a,_0x13fdc1,_0x50a5bb);_0x5e2f00!=null?_0x30bab8['treeId']=_0x5e2f00:(this[_0x184559(0xba)][_0x184559(0x163)](_0x98c0b4,_0x28205a,_0x13fdc1,_0x50a5bb,_0x30bab8),this[_0x184559(0xba)]['addFormulaDependencyByDefinedName'](_0x30bab8)),_0x389714[_0x184559(0x109)](_0x30bab8),this['_dependencyTreeCache'][_0x184559(0x107)](_0x30bab8['treeId'],_0x30bab8);}),_0x53c1c4['clear']();}}}[_0x35004a(0x139)](_0x404396,_0x56c25f,_0x1dede6,_0x2da43d,_0x40dd7,_0x12d6e4){const _0x513ad7=_0x35004a,{f:_0x2d366d,x:_0x33ef26=0x0,y:_0x16c1a3=0x0}=_0x12d6e4,_0x15e867=new _0xc28445['FormulaDependencyTree'](_0xc28445[_0x513ad7(0x12f)](this[_0x513ad7(0xba)])),_0x2d65aa=_0x40dd7[_0x404396][_0x56c25f];return _0x15e867[_0x513ad7(0xf5)]=_0x2d366d,_0x15e867[_0x513ad7(0x10e)]=_0x404396,_0x15e867['subUnitId']=_0x56c25f,_0x15e867['row']=_0x1dede6,_0x15e867[_0x513ad7(0xf4)]=_0x2da43d,_0x15e867[_0x513ad7(0xa7)]=_0x2d65aa[_0x513ad7(0xa7)],_0x15e867[_0x513ad7(0xf2)]=_0x2d65aa[_0x513ad7(0xf2)],_0x15e867;}['_getUpdateTreeListAndMakeDependency'](){const _0x5561ad=_0x35004a,_0x53e5f9=[],_0x39ad53=new Set(),_0x3f6486=this[_0x5561ad(0x104)][_0x5561ad(0x15f)](),_0x213b36=this[_0x5561ad(0x104)]['getDirtyRanges'](),_0x83b558=this[_0x5561ad(0xba)][_0x5561ad(0xf6)](_0x213b36);for(const [_0xe78a0c,_0x31d0f5]of this[_0x5561ad(0x12c)])(_0x3f6486||_0x31d0f5[_0x5561ad(0xd4)]||_0x31d0f5[_0x5561ad(0xbd)](this[_0x5561ad(0x104)][_0x5561ad(0x132)]())||_0x83b558[_0x5561ad(0xf9)](_0xe78a0c)&&!_0x31d0f5[_0x5561ad(0xae)](this[_0x5561ad(0x104)]['getExcludedRange']()))&&!_0x39ad53[_0x5561ad(0xf9)](_0xe78a0c)&&(_0x53e5f9[_0x5561ad(0x109)](_0x31d0f5),_0x39ad53['add'](_0xe78a0c));for(const [_0x340bfc,_0x25d7c4]of this[_0x5561ad(0x12c)])_0x25d7c4[_0x5561ad(0xf7)]||(_0x25d7c4[_0x5561ad(0xc1)][_0x5561ad(0xc5)]=0x0);return _0x53e5f9;}*[_0x35004a(0x131)](_0x3bc38b,_0x58f7b7){const _0x2aed0c=_0x35004a,_0x5d1d88=_0x3bc38b,_0x254557=new Set();for(;_0x5d1d88[_0x2aed0c(0xc5)]>0x0;){const _0x1c6c7f=_0x5d1d88[_0x2aed0c(0xc3)]();if(_0x254557[_0x2aed0c(0xc6)](),_0x1c6c7f===void 0x0||_0x1c6c7f[_0x2aed0c(0x119)]())continue;if(_0x1c6c7f[_0x2aed0c(0x15d)]()){yield _0x1c6c7f,_0x1c6c7f['setSkip'](),_0x58f7b7['add'](_0x1c6c7f[_0x2aed0c(0xe6)]);continue;}const _0x167ef6=this[_0x2aed0c(0xba)][_0x2aed0c(0xf6)](_0x1c6c7f[_0x2aed0c(0xca)](),_0x58f7b7);for(const _0x5032f9 of _0x167ef6){const _0x1ae297=this[_0x2aed0c(0x12c)]['get'](_0x5032f9);if(!_0x1ae297)throw new Error(_0x2aed0c(0xfb));_0x1ae297['isAdded']()||_0x1c6c7f[_0x2aed0c(0x119)]()||_0x254557[_0x2aed0c(0xcc)](_0x1ae297);}if(_0x167ef6[_0x2aed0c(0xc6)](),_0x254557[_0x2aed0c(0x116)]===0x0)yield _0x1c6c7f,_0x1c6c7f[_0x2aed0c(0xfa)](),_0x58f7b7['add'](_0x1c6c7f['treeId']);else{_0x1c6c7f['setAdded'](),_0x5d1d88[_0x2aed0c(0x109)](_0x1c6c7f);for(const _0x4b1688 of _0x254557)_0x5d1d88[_0x2aed0c(0x109)](_0x4b1688);}}_0x5d1d88[_0x2aed0c(0xc5)]=0x0,_0x254557[_0x2aed0c(0xc6)]();}['_calculateRunList'](_0x33f7ee){const _0x2c4fc9=_0x35004a,_0x3dbc6f=[],_0x37bf9e=new Set();for(const _0x38d037 of this[_0x2c4fc9(0x131)](_0x33f7ee,_0x37bf9e))_0x3dbc6f[_0x2c4fc9(0x109)](_0x38d037);return _0x3dbc6f;}}class _0x1e52cb extends _0xc28445[_0x35004a(0xb0)]{async[_0x35004a(0x15e)](_0x462efa=!0x1){const _0x47a65a=_0x35004a;_0x462efa?this[_0x47a65a(0x143)][_0x47a65a(0xfd)](_0xc28445[_0x47a65a(0xb3)][_0x47a65a(0x114)]):this[_0x47a65a(0x143)][_0x47a65a(0xfd)](_0xc28445[_0x47a65a(0xb3)][_0x47a65a(0x15b)]),this['_executionInProgressListener$']['next'](this[_0x47a65a(0x143)][_0x47a65a(0x11a)]());const _0x49d279=await this[_0x47a65a(0x102)]['generate'](),_0x1f0ebb=this[_0x47a65a(0x100)];_0x462efa?(this['_runtimeService'][_0x47a65a(0xfd)](_0xc28445['FormulaExecuteStageType'][_0x47a65a(0x111)]),this[_0x47a65a(0x143)][_0x47a65a(0xc2)](_0x49d279[_0x47a65a(0xc5)])):(this['_runtimeService'][_0x47a65a(0xfd)](_0xc28445['FormulaExecuteStageType']['START_CALCULATION']),this[_0x47a65a(0x143)][_0x47a65a(0x12a)](_0x49d279['length'])),this[_0x47a65a(0x14d)]['next'](this[_0x47a65a(0x143)][_0x47a65a(0x11a)]());let _0x2db393=[];const _0x34bff1=this[_0x47a65a(0x162)][_0x47a65a(0x127)](_0xc28445[_0x47a65a(0xa9)]),_0x1a63bb=(_0x34bff1==null?void 0x0:_0x34bff1[_0x47a65a(0x121)])||_0xc28445['DEFAULT_INTERVAL_COUNT'];let _0x5aa154=0x0;const _0x274fba=_0x49d279[_0x47a65a(0xc5)];for(;_0x49d279['length']>0x0;){const _0x1087c5=_0x49d279[_0x47a65a(0xc3)](),_0x3b6087={'node':_0xc28445[_0x47a65a(0xd2)](_0x1087c5[_0x47a65a(0x10e)],_0x1087c5['formula'],this['_lexer'],this['_astTreeBuilder'],this[_0x47a65a(0x104)]),'refOffsetX':_0x1087c5['refOffsetX'],'refOffsetY':_0x1087c5['refOffsetY']},_0x5d7c9e=_0x1087c5['getDirtyData'];if(_0x5aa154%_0x1a63bb===0x0&&(await new Promise(_0x4a36f8=>{const _0x3243b2=_0x47a65a,_0x5b0ae3=_0x289ba7[_0x3243b2(0x165)](_0x4a36f8);_0x2db393[_0x3243b2(0x109)](_0x5b0ae3);}),_0x462efa?(this[_0x47a65a(0x143)][_0x47a65a(0xfd)](_0xc28445[_0x47a65a(0xb3)][_0x47a65a(0xb8)]),this[_0x47a65a(0x143)][_0x47a65a(0xd5)](_0x5aa154+0x1)):(this[_0x47a65a(0x143)][_0x47a65a(0xfd)](_0xc28445[_0x47a65a(0xb3)][_0x47a65a(0xc4)]),this[_0x47a65a(0x143)][_0x47a65a(0x10b)](_0x5aa154+0x1)),this[_0x47a65a(0x14d)][_0x47a65a(0xfe)](this['_runtimeService']['getRuntimeState']()),this['_runtimeService']['isStopExecution']()||_0x3b6087==null&&_0x5d7c9e==null)){this[_0x47a65a(0x143)][_0x47a65a(0xfd)](_0xc28445['FormulaExecuteStageType']['IDLE']),this['_runtimeService'][_0x47a65a(0xb4)](),this[_0x47a65a(0xf3)][_0x47a65a(0xfe)](this[_0x47a65a(0x143)][_0x47a65a(0xc8)]());return;}this[_0x47a65a(0x143)][_0x47a65a(0xe5)](_0x1087c5[_0x47a65a(0x147)],_0x1087c5[_0x47a65a(0xf4)],_0x1087c5[_0x47a65a(0xa7)],_0x1087c5[_0x47a65a(0xf2)],_0x1087c5['subUnitId'],_0x1087c5['unitId']);let _0x10f650;if(_0x5d7c9e!=null&&_0x1087c5[_0x47a65a(0x145)]!=null){const {runtimeCellData:_0x8addda,dirtyRanges:_0x436459}=_0x5d7c9e(this[_0x47a65a(0x104)]['getDirtyData'](),this[_0x47a65a(0x143)][_0x47a65a(0xc8)]());this[_0x47a65a(0x143)][_0x47a65a(0x149)](_0x1087c5[_0x47a65a(0x145)],_0x8addda),this[_0x47a65a(0x143)][_0x47a65a(0xab)](_0x1087c5[_0x47a65a(0x145)],_0x436459);}else _0x3b6087!=null&&(_0x1f0ebb[_0x47a65a(0xee)](_0x3b6087['node'])?_0x10f650=await _0x1f0ebb[_0x47a65a(0x136)](_0x3b6087):_0x10f650=_0x1f0ebb[_0x47a65a(0xbe)](_0x3b6087),_0x1087c5[_0x47a65a(0xb1)]!=null?this['_runtimeService'][_0x47a65a(0x120)](_0x1087c5[_0x47a65a(0xb1)],_0x1087c5[_0x47a65a(0x118)],_0x1087c5[_0x47a65a(0x133)],_0x10f650):this[_0x47a65a(0x143)][_0x47a65a(0xe2)](_0x10f650));_0x5aa154++;}return _0x2db393[_0x47a65a(0x128)](_0xb16f77=>_0xb16f77()),_0x2db393=[],_0x274fba>0x0?this[_0x47a65a(0x143)][_0x47a65a(0x138)]():_0x462efa||this[_0x47a65a(0x143)][_0x47a65a(0xe3)](),this[_0x47a65a(0x143)][_0x47a65a(0xc8)]();}}class _0x14e488 extends _0xc28445['DependencyManagerBaseService']{constructor(){const _0x43d056=_0x35004a;super(...arguments),_0x55af5e(this,_0x43d056(0x130),new Map()),_0x55af5e(this,_0x43d056(0x108),new _0x289ba7[(_0x43d056(0xa8))](!0x0));}['reset'](){const _0xd9fecd=_0x35004a;this[_0xd9fecd(0x11b)][_0xd9fecd(0xc6)](),this['_featureFormulaData'][_0xd9fecd(0xc6)](),this[_0xd9fecd(0x10f)][_0xd9fecd(0xc6)](),this[_0xd9fecd(0x108)][_0xd9fecd(0xc6)](),this[_0xd9fecd(0x130)][_0xd9fecd(0xc6)](),this[_0xd9fecd(0x15a)](),this[_0xd9fecd(0xef)]['clear']();}[_0x35004a(0xbf)](_0x5b120a,_0x3789a2,_0x597ad6,_0x59b03c){const _0x54a6da=_0x35004a;this[_0x54a6da(0x11b)]['has'](_0x5b120a)||this[_0x54a6da(0x11b)][_0x54a6da(0x107)](_0x5b120a,new Map());const _0x20da66=this[_0x54a6da(0x11b)][_0x54a6da(0x126)](_0x5b120a);_0x20da66[_0x54a6da(0xf9)](_0x3789a2)||_0x20da66[_0x54a6da(0x107)](_0x3789a2,new Map());const _0x23e715=_0x20da66[_0x54a6da(0x126)](_0x3789a2);_0x23e715['has'](_0x597ad6)||_0x23e715[_0x54a6da(0x107)](_0x597ad6,new _0x289ba7[(_0x54a6da(0x13b))]()),_0x23e715[_0x54a6da(0x126)](_0x597ad6)[_0x54a6da(0x157)](_0x59b03c['refOffsetX'],_0x59b03c['refOffsetY'],_0x59b03c[_0x54a6da(0xe6)]);}[_0x35004a(0x146)](_0x254b8a,_0xa7dc,_0x17077b){const _0x4fb0fb=_0x35004a,_0x2a2822=this[_0x4fb0fb(0x11b)][_0x4fb0fb(0x126)](_0x254b8a);if(_0x2a2822&&_0x2a2822[_0x4fb0fb(0xf9)](_0xa7dc)){const _0x5987c6=_0x2a2822[_0x4fb0fb(0x126)](_0xa7dc);_0x17077b['forEach'](_0x2e49be=>{const _0x2c4da6=_0x4fb0fb,_0x4dd0b1=_0x5987c6[_0x2c4da6(0x126)](_0x2e49be);_0x4dd0b1!=null&&(_0x4dd0b1[_0x2c4da6(0xf8)]((_0x1b6fb8,_0x478a70,_0x19505c)=>{const _0x3b3899=_0x2c4da6;this[_0x3b3899(0xeb)](_0x19505c),this[_0x3b3899(0x164)](_0x19505c);}),_0x5987c6['delete'](_0x2e49be),this['_otherFormulaDataMainData'][_0x2c4da6(0xe8)](_0x2e49be));}),_0x5987c6[_0x4fb0fb(0x116)]===0x0&&_0x2a2822['delete'](_0xa7dc),_0x2a2822[_0x4fb0fb(0x116)]===0x0&&this[_0x4fb0fb(0x11b)]['delete'](_0x254b8a);}}['clearOtherFormulaDependency'](_0x1858cc,_0x16697a){const _0x1f689a=_0x35004a,_0x6dabb6=this[_0x1f689a(0x11b)][_0x1f689a(0x126)](_0x1858cc);if(_0x16697a&&_0x6dabb6&&_0x6dabb6[_0x1f689a(0xf9)](_0x16697a)){const _0x24da53=_0x6dabb6['get'](_0x16697a);this[_0x1f689a(0x115)](_0x1858cc,_0x16697a);for(const _0x1f83b2 of _0x24da53[_0x1f689a(0x10d)]()){const _0x1362b7=_0x24da53[_0x1f689a(0x126)](_0x1f83b2);_0x1362b7!=null&&(_0x1362b7[_0x1f689a(0xf8)]((_0x2f0c1c,_0x39e15f,_0x2f13e3)=>{const _0xf38adf=_0x1f689a;this[_0xf38adf(0x130)][_0xf38adf(0x126)](_0x2f13e3)&&this[_0xf38adf(0x164)](_0x2f13e3);}),this['_otherFormulaDataMainData'][_0x1f689a(0xe8)](_0x1f83b2));}_0x24da53['clear']();}else{if(_0x6dabb6){for(const _0x5bd5c6 of _0x6dabb6[_0x1f689a(0x10d)]()){const _0x46607b=_0x6dabb6[_0x1f689a(0x126)](_0x5bd5c6);this[_0x1f689a(0x115)](_0x1858cc,_0x5bd5c6);for(const _0xbb405d of _0x46607b[_0x1f689a(0x10d)]()){const _0x2f5e88=_0x46607b[_0x1f689a(0x126)](_0xbb405d);_0x2f5e88!=null&&(_0x2f5e88[_0x1f689a(0xf8)]((_0x5e1a8b,_0x3b0ee5,_0xabf38d)=>{const _0x1f806e=_0x1f689a;this[_0x1f806e(0x130)][_0x1f806e(0x126)](_0xabf38d)&&this['_removeAllTreeMap'](_0xabf38d);}),this[_0x1f689a(0xef)][_0x1f689a(0xe8)](_0xbb405d));}}this[_0x1f689a(0x11b)][_0x1f689a(0xe8)](_0x1858cc);}}}[_0x35004a(0xaf)](_0x562af0,_0x21481f,_0x146fff,_0x58404b){const _0x3e6a9e=_0x35004a;this[_0x3e6a9e(0xdf)]['has'](_0x562af0)||this[_0x3e6a9e(0xdf)]['set'](_0x562af0,new Map());const _0x3a295c=this[_0x3e6a9e(0xdf)][_0x3e6a9e(0x126)](_0x562af0);_0x3a295c['has'](_0x21481f)||_0x3a295c[_0x3e6a9e(0x107)](_0x21481f,new Map()),_0x3a295c[_0x3e6a9e(0x126)](_0x21481f)[_0x3e6a9e(0x107)](_0x146fff,_0x58404b[_0x3e6a9e(0xe6)]);}[_0x35004a(0xd0)](_0x1e2c33,_0xfeb95d,_0x311633){const _0x448501=_0x35004a,_0x49cbd2=this[_0x448501(0xdf)][_0x448501(0x126)](_0x1e2c33);if(_0x49cbd2&&_0x49cbd2[_0x448501(0xf9)](_0xfeb95d)){const _0x36113f=_0x49cbd2[_0x448501(0x126)](_0xfeb95d);_0x311633[_0x448501(0x128)](_0x50f955=>{const _0x368cb8=_0x448501,_0x1d11e4=_0x36113f[_0x368cb8(0x126)](_0x50f955);_0x1d11e4!=null&&(this[_0x368cb8(0xeb)](_0x1d11e4),_0x36113f[_0x368cb8(0xe8)](_0x50f955),this[_0x368cb8(0x164)](_0x1d11e4));});}}[_0x35004a(0xad)](_0x1b14f4,_0x3207a5){const _0x236202=_0x35004a,_0x5971ec=this[_0x236202(0xdf)]['get'](_0x1b14f4);if(_0x3207a5&&_0x5971ec&&_0x5971ec['has'](_0x3207a5)){const _0x89c3a6=_0x5971ec['get'](_0x3207a5);this[_0x236202(0x115)](_0x1b14f4,_0x3207a5),_0x89c3a6[_0x236202(0x128)](_0x8a62f5=>{_0x8a62f5!=null&&this['_removeAllTreeMap'](_0x8a62f5);}),_0x89c3a6[_0x236202(0xc6)]();}else _0x5971ec&&(_0x5971ec[_0x236202(0x128)]((_0x3c5a44,_0x18d645)=>{this['_removeDependencyRTreeCacheById'](_0x1b14f4,_0x18d645),_0x3c5a44['forEach'](_0x42fb0d=>{const _0x116b13=_0x18a2;_0x42fb0d!=null&&this[_0x116b13(0x164)](_0x42fb0d);});}),this['_featureFormulaData'][_0x236202(0xe8)](_0x1b14f4));}[_0x35004a(0x163)](_0x51dae5,_0x598308,_0x228ed7,_0x41015a,_0x1f7cc4){const _0x31e642=_0x35004a;this[_0x31e642(0x10f)][_0x31e642(0xf9)](_0x51dae5)||this['_formulaData'][_0x31e642(0x107)](_0x51dae5,new Map());const _0x58daf8=this[_0x31e642(0x10f)][_0x31e642(0x126)](_0x51dae5);_0x58daf8[_0x31e642(0xf9)](_0x598308)||_0x58daf8[_0x31e642(0x107)](_0x598308,new _0x289ba7[(_0x31e642(0x13b))]()),_0x58daf8[_0x31e642(0x126)](_0x598308)[_0x31e642(0x157)](_0x228ed7,_0x41015a,_0x1f7cc4[_0x31e642(0xe6)]);}[_0x35004a(0x158)](_0x4701cb,_0x5c4b0f,_0xc290ab,_0x5d339f){const _0x5cc498=_0x35004a,_0x3ef021=this[_0x5cc498(0x10f)][_0x5cc498(0x126)](_0x4701cb);if(_0x3ef021&&_0x3ef021[_0x5cc498(0xf9)](_0x5c4b0f)){const _0x1d6434=_0x3ef021[_0x5cc498(0x126)](_0x5c4b0f),_0x137733=_0x1d6434['getValue'](_0xc290ab,_0x5d339f);if(_0x137733==null)return;this[_0x5cc498(0xeb)](_0x137733),_0x1d6434[_0x5cc498(0x144)](_0xc290ab,_0x5d339f),this[_0x5cc498(0x164)](_0x137733);}}[_0x35004a(0x12b)](_0x2dec50,_0x5ca10e){const _0x3d6183=_0x35004a,_0x430e45=this['_formulaData']['get'](_0x2dec50);if(_0x5ca10e&&_0x430e45&&_0x430e45[_0x3d6183(0xf9)](_0x5ca10e)){const _0x3de7d1=_0x430e45[_0x3d6183(0x126)](_0x5ca10e);this[_0x3d6183(0x115)](_0x2dec50,_0x5ca10e),_0x3de7d1[_0x3d6183(0xf8)]((_0xbb5d1f,_0x2b0b5f,_0x3e30fd)=>{if(_0x3e30fd==null)return!0x0;this['_removeAllTreeMap'](_0x3e30fd);}),_0x3de7d1[_0x3d6183(0x11d)]();}else _0x430e45&&(_0x430e45[_0x3d6183(0x128)]((_0x431966,_0x1b7c8b)=>{const _0x4fea68=_0x3d6183;this[_0x4fea68(0x115)](_0x2dec50,_0x1b7c8b),_0x431966[_0x4fea68(0xf8)]((_0x228d5d,_0x538e68,_0x141452)=>{const _0x53284a=_0x4fea68;if(_0x141452==null)return!0x0;this[_0x53284a(0x164)](_0x141452);});}),this[_0x3d6183(0x10f)]['delete'](_0x2dec50));}[_0x35004a(0xeb)](_0x1091d5){const _0x5d0708=_0x35004a;if(_0x1091d5==null)return;const _0x3bc203=this['_allTreeMap'][_0x5d0708(0x126)](_0x1091d5);if(_0x3bc203){const _0x3d1a4a=[];for(const [_0x3bdb73,_0x2f46ea]of _0x3bc203)for(const [_0x18dca0,_0x4c60e1]of _0x2f46ea)_0x3d1a4a[_0x5d0708(0x109)]({'unitId':_0x3bdb73,'sheetId':_0x18dca0,'range':_0x4c60e1,'id':_0x1091d5});this[_0x5d0708(0x108)][_0x5d0708(0xd6)](_0x3d1a4a);}}[_0x35004a(0xbb)](_0x4f4bd5,_0xfa0f5e){const _0x237fe3=_0x35004a,_0x4f25d6=this['_definedNameMap'][_0x237fe3(0x126)](_0x4f4bd5);if(_0x4f25d6){const _0x5ce22a=_0x4f25d6[_0x237fe3(0x126)](_0xfa0f5e);if(_0x5ce22a){for(const _0x16ccf3 of _0x5ce22a)this[_0x237fe3(0xeb)](_0x16ccf3),this[_0x237fe3(0x164)](_0x16ccf3);_0x5ce22a[_0x237fe3(0xc6)]();}}}[_0x35004a(0xce)](){const _0x391c7b=_0x35004a;this[_0x391c7b(0x108)][_0x391c7b(0xce)]();}[_0x35004a(0x129)](){const _0x52900e=_0x35004a;this['_dependencyRTreeCache'][_0x52900e(0x129)]();}[_0x35004a(0x164)](_0x550555){const _0x4b988b=_0x35004a;_0x550555!=null&&this[_0x4b988b(0x130)][_0x4b988b(0xe8)](_0x550555);}['_addAllTreeMap'](_0x3f4520){const _0x48919c=_0x35004a;var _0x53cebc,_0x58959e;const _0x4349e4=_0x3f4520['rangeList'];let _0x240c72=this['_allTreeMap']['get'](_0x3f4520['treeId']);for(let _0x36b2d1=0x0;_0x36b2d1<_0x4349e4[_0x48919c(0xc5)];_0x36b2d1++){const _0x178f79=_0x4349e4[_0x36b2d1];let {unitId:_0x27a0b8,sheetId:_0x259a36,range:_0x397d41}=_0x178f79;_0x240c72||(_0x240c72=new Map(),this[_0x48919c(0x130)]['set'](_0x3f4520[_0x48919c(0xe6)],_0x240c72)),_0x240c72['has'](_0x27a0b8)||_0x240c72[_0x48919c(0x107)](_0x27a0b8,new Map());const _0x3e9732=(_0x53cebc=_0x240c72==null?void 0x0:_0x240c72[_0x48919c(0x126)](_0x27a0b8))==null?void 0x0:_0x53cebc[_0x48919c(0x126)](_0x259a36);_0x3e9732&&(_0x397d41={'startRow':Math[_0x48919c(0x160)](_0x397d41[_0x48919c(0xe9)],_0x3e9732[_0x48919c(0xe9)]),'startColumn':Math[_0x48919c(0x160)](_0x397d41[_0x48919c(0xd9)],_0x3e9732[_0x48919c(0xd9)]),'endRow':Math[_0x48919c(0xe1)](_0x397d41['endRow'],_0x3e9732[_0x48919c(0xaa)]),'endColumn':Math[_0x48919c(0xe1)](_0x397d41[_0x48919c(0x150)],_0x3e9732[_0x48919c(0x150)])}),(_0x58959e=_0x240c72[_0x48919c(0x126)](_0x27a0b8))==null||_0x58959e[_0x48919c(0x107)](_0x259a36,_0x397d41);}}}var _0x3d555b=Object[_0x35004a(0xf0)],_0x7a2500=Object[_0x35004a(0xea)],_0x10f64d=(_0x27b920,_0x763747,_0x5a5f4d,_0x15d5ac)=>{for(var _0x3123e3=_0x15d5ac>0x1?void 0x0:_0x15d5ac?_0x7a2500(_0x763747,_0x5a5f4d):_0x763747,_0x3d2fc1=_0x27b920['length']-0x1,_0x29b27d;_0x3d2fc1>=0x0;_0x3d2fc1--)(_0x29b27d=_0x27b920[_0x3d2fc1])&&(_0x3123e3=(_0x15d5ac?_0x29b27d(_0x763747,_0x5a5f4d,_0x3123e3):_0x29b27d(_0x3123e3))||_0x3123e3);return _0x15d5ac&&_0x3123e3&&_0x3d555b(_0x763747,_0x5a5f4d,_0x3123e3),_0x3123e3;};_0x27c18d[_0x35004a(0xf1)]=class extends _0xc28445[_0x35004a(0x156)]{[_0x35004a(0x155)](){const _0x4479fb=_0x35004a;var _0x57b172,_0x46cb42;this[_0x4479fb(0x103)]()?(_0x57b172=this[_0x4479fb(0x135)])!=null&&_0x57b172[_0x4479fb(0x14a)]||[[_0xc28445[_0x4479fb(0x161)],{'useClass':_0x1e52cb}],[_0xc28445['IDependencyManagerService'],{'useClass':_0x14e488}],[_0xc28445[_0x4479fb(0x13d)],{'useClass':_0x57502f}]][_0x4479fb(0x128)](_0xdd0504=>this[_0x4479fb(0x148)][_0x4479fb(0xcc)](_0xdd0504)):(_0x46cb42=this[_0x4479fb(0x135)])!=null&&_0x46cb42['notExecuteFormula']||[[_0xc28445['ICalculateFormulaService'],{'useClass':_0xc28445[_0x4479fb(0xb0)]}],[_0xc28445[_0x4479fb(0xed)],{'useClass':_0xc28445[_0x4479fb(0xda)]}],[_0xc28445['IFormulaDependencyGenerator'],{'useClass':_0xc28445[_0x4479fb(0xb7)]}]]['forEach'](_0x30bf97=>this[_0x4479fb(0x148)][_0x4479fb(0xcc)](_0x30bf97));}[_0x35004a(0x103)](){const _0xac4814=_0x35004a;var _0xee4812;const _0x586557=(_0xee4812=this[_0xac4814(0x162)][_0xac4814(0x127)](_0x130fbb['LS_CONFIG_KEY']))!=null?_0xee4812:{},{ls:_0x2a7127,pbk:_0x2a03b5,tvld:_0x3ca2e9}=_0x586557;if(!_0x2a7127||!_0x2a03b5)return!0x1;const _0x5f25c4=_0x130fbb[_0xac4814(0x101)](_0xe508b7,_0x44bacf);return new Function(_0xac4814(0xe0)+_0x5f25c4)()(_0x2a7127,_0x2a03b5)[_0xac4814(0xb2)];}},_0x27c18d[_0x35004a(0xf1)]=_0x10f64d([_0x289ba7[_0x35004a(0x122)](_0x130fbb[_0x35004a(0x124)])],_0x27c18d[_0x35004a(0xf1)]),Object['defineProperty'](_0x27c18d,Symbol[_0x35004a(0xb6)],{'value':'Module'});}));
1
+ function _0x59a3(){const _0x199f49=['dirtyRanges','keys','_configService','getDirtyRanges','setTotalFormulasToCalculate','960QoYocb','checkAsyncNode','getExcludedRange','START_CALCULATION_ARRAY_FORMULA','exports','_registerFeatureFormulas','isAdded','refOffsetY','isVirtual','nA0dYzO0\x20FmdgwvYzO0(rzdm0Gm,\x20vAHrzd5mw)\x20{\x20\x20\x20\x20dO0GY\x20rzdm0GmV0nOUQgYpggQw\x20=\x20rzdm0Gm.GvrzY(\x27-\x27);\x20\x20\x20\x20dO0GY\x20OgzEz0imGGQEm\x20=\x20kSst.vQgGm(QYOH(rzdm0GmV0nOUQgYpggQw[u]));\x20\x20\x20\x20zn\x20(!OgzEz0imGGQEm.AF)\x20{\x20\x20\x20\x20\x20\x20\x20\x20OgzEz0imGGQEm.AF\x20=\x20tA3Hmg(rzdm0GmV0nOUQgYpggQw[X]);\x20\x20\x20\x20}\x20\x20\x20\x20dO0GY\x20zGlOg1mg\x20=\x20YwvmOn\x20lOg1mg2rOHQrSdOvm\x20!==\x20\x27A0Fmnz0mF\x27\x20&&\x20Gmrn\x20z0GYQ0dmOn\x20lOg1mg2rOHQrSdOvm;\x20\x20\x20\x20dO0GY\x20dO0YmcY\x20=\x20zGlOg1mg\x20?\x20Gmrn\x20:\x20qz0FOq;\x20\x20\x20\x20dO0GY\x203mGGQEmlOgF\x20=\x20dO0YmcY.__RQGmBX__.vQgGm(rzdm0GmV0nOUQgYpggQw[u]);\x20\x20\x20\x20dO0GY\x203mGGQEm\x20=\x20dO0YmcY.__Kmc__.GYgz0Eznw(3mGGQEmlOgF);\x20\x20\x20\x20dO0GY\x20GzE0QYAgmlOgF\x20=\x20dO0YmcY.__RQGmBX__.vQgGm(rzdm0GmV0nOUQgYpggQw[4]);\x20\x20\x20\x20dO0GY\x20GzE0QYAgm\x20=\x20dO0YmcY.__Kmc__.GYgz0Eznw(GzE0QYAgmlOgF);\x20\x20\x20\x20dO0GY\x20GzE0LQrzF\x20=\x20dO0YmcY.__Dmgznw__(GzE0QYAgm,\x203mGGQEm,\x20vAHrzd5mw);\x20\x20\x20\x20dO0GY\x20FO3Qz0\x20=\x20OgzEz0imGGQEm.F3;\x20\x20\x20\x20nA0dYzO0\x20zG8O3Qz0iQYdaz0E(OUQYYmg0,\x20OKOGY)\x20{\x20\x20\x20\x20\x20\x20\x20\x20dO0GY\x20vQYYmg0\x20=\x20OUQYYmg0.gmvrQdm(/^.+/,\x20\x27\x27);\x20\x20\x20\x20\x20\x20\x20\x20dO0GY\x20aOGY\x20=\x20OKOGY.gmvrQdm(/^.+/,\x20\x27\x27);\x20\x20\x20\x20\x20\x20\x20\x20dO0GY\x20vQYYmg0UQgYG\x20=\x20vQYYmg0.GvrzY(\x27.\x27);\x20\x20\x20\x20\x20\x20\x20\x20dO0GY\x20aOGYUQgYG\x20=\x20aOGY.GvrzY(\x27.\x27);\x20\x20\x20\x20\x20\x20\x20\x20zn\x20(!vQYYmg0.z0drAFmG(\x27*\x27))\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20gmYAg0\x20vQYYmg0\x20===\x20aOGY;\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x20zn\x20(vQYYmg0UQgYG.rm0EYa\x20<\x20u\x20||\x20vQYYmg0UQgYG[T]\x20!==\x20\x27*\x27)\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20gmYAg0\x20nQrGm;\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x20dO0GY\x20vQYYmg0SAnnzc\x20=\x20vQYYmg0UQgYG.Grzdm(h).ZOz0(\x27.\x27);\x20\x20\x20\x20\x20\x20\x20\x20dO0GY\x20aOGYSAnnzc\x20=\x20aOGYUQgYG.Grzdm(-vQYYmg0UQgYG.rm0EYa\x20+\x20h).ZOz0(\x27.\x27);\x20\x20\x20\x20\x20\x20\x20\x20gmYAg0\x20vQYYmg0SAnnzc\x20===\x20aOGYSAnnzc;\x20\x20\x20\x20}\x20\x20\x20\x20rmY\x20FO3Qz0LQrzF\x20=\x20FO3Qz0?.rm0EYa\x20?\x20FO3Qz0.GO3m((F3VYm3)\x20=>\x20zG8O3Qz0iQYdaz0E(F3VYm3,\x20rOdQYzO0.aOGY0Q3m))\x20:\x20YgAm;\x20\x20\x20\x20zn\x20(rOdQYzO0.aOGY0Q3m\x20===\x20\x27rOdQraOGY\x27)\x20{\x20\x20\x20\x20\x20\x20\x20\x20FO3Qz0LQrzF\x20=\x20YgAm;\x20\x20\x20\x20}\x20\x20\x20\x20dO0GY\x20DQrzF\x20=\x20GzE0LQrzF\x20&&\x20FO3Qz0LQrzF;\x20\x20\x20\x20gmYAg0\x20{\x20\x20\x20\x20\x20\x20\x20\x20DQrzF,\x203mGGQEm:\x20OgzEz0imGGQEm,\x20\x20\x20\x20};}','_dependencyRTreeCache','UniverCore','getConfig','RTree','addFormulaDependencyByDefinedName','delete','_dependencyTreeCache','closeKdTree','rowCount','FormulaDependencyGenerator','_definedNameMap','FormulaExecuteStageType','addDependencyRTreeCache','resolve','_registerFormulas','UniverFormulaEnginePlugin','removeOtherFormulaDependency','_getFeatureFormulaTree','columnCount','bulkRemove','setCompletedArrayFormulasCount','@univerjs/engine-formula','getRuntimeState','479192xdAtLI','@univerjs-pro/license','next','_initializeWithOverride','21Omvgwd','addOtherFormulaDependency','getFormulaDependency','_executionInProgressListener$','START_DEPENDENCY','_includeTree','FormulaDependencyTreeType','FormulaDependencyTree','2pHMiAa','_formulaData','clearFormulaDependency','amd','has','clearFeatureFormulaDependency','searchDependency','treeId','execute','_isCyclicUtilMap','_otherFormulaManagerService','isSkip','type','clear','_generateTreeList','1757090AMSFqu','ICalculateFormulaService','getAllRuntimeData','markedAsNoFunctionsExecuted','getOtherFormulaDependency','endRow','notExecuteFormula','IDLE','rangeList','ParentDependencyTree\x20object\x20is\x20null','219IEoatl','_checkIsCycleDependency','_addAllTreeMap','row','isForceCalculate','_createFDtree','generateAstNode','2976924ATTjxJ','dispose','_removeDependencyRTreeCacheById','_currentConfigService','forEach','_dependencyManagerService','featureDirtyRanges','isExcludeRange','54328CQEeuG','get','min','UniverProEngineFormula','_interpreter','removeFormulaDependency','unshiftString','UniverLicensePlugin','CURRENTLY_CALCULATING_ARRAY_FORMULA','46676kQSaYI','startColumn','featureId','START_CALCULATION','IDependencyManagerService','UniverProFormulaEnginePlugin','subUnitId','_getUpdateTreeListAndMakeDependency','17121fOllkw','push','setValue','_executionCompleteListener$','setCompletedFormulasCount','_allTreeMap','length','_initTimeValid','_restDependencyTreeId','intervalCount','toStringTag','UniverEngineFormula','size','addFeatureFormulaDependency','defineProperty','clearOtherFormulaDependency','55FMAaNB','endColumn','_removeDependencyRTreeCache','DEFAULT_INTERVAL_COUNT','_featureFormulaData','max','getValue','_formulaDependencyGenerator','forValue','getFeatureFormulaDependency','formulaId','PLUGIN_CONFIG_KEY','setRuntimeFeatureRange','IFormulaDependencyGenerator','getDirtyData','_lexer','setFormulaExecuteStage','_getRangeListByNode','isCache','pop','generate','generateRandomDependencyTreeId','_removeAllTreeMap','setCurrent','column','_injector','_otherFormulaDataMainData','_registerOtherFormulas','_otherFormulaData','set','toRTreeItem','LS_CONFIG_KEY','markedAsSuccessfullyExecuted','FEATURE_FORMULA','_traverse','setSkip','ObjectMatrix','63pIYDPe','function','addFormulaDependency','_runtimeService','setAdded','getFormulaData','node','CalculateFormulaService','openKdTree','unitId','add','refOffsetX','_calculateRunList','_astTreeBuilder','110402OIQTho','_updateRangeFlatten','2682uqIwPa','removeFeatureFormulaDependency','_config','symbol','formula','requestImmediateMacroTask','reset'];_0x59a3=function(){return _0x199f49;};return _0x59a3();}function _0x4ac7(_0x3b01c7,_0x509ea2){const _0x59a3e1=_0x59a3();return _0x4ac7=function(_0x4ac722,_0x2eed8d){_0x4ac722=_0x4ac722-0x167;let _0x3a2a19=_0x59a3e1[_0x4ac722];return _0x3a2a19;},_0x4ac7(_0x3b01c7,_0x509ea2);}(function(_0x5d771b,_0xa66c50){const _0x80701f=_0x4ac7,_0x5ad595=_0x5d771b();while(!![]){try{const _0x42befc=parseInt(_0x80701f(0x190))/0x1*(parseInt(_0x80701f(0x1cb))/0x2)+-parseInt(_0x80701f(0x1e4))/0x3*(parseInt(_0x80701f(0x1f3))/0x4)+-parseInt(_0x80701f(0x19e))/0x5*(parseInt(_0x80701f(0x192))/0x6)+parseInt(_0x80701f(0x1c3))/0x7*(-parseInt(_0x80701f(0x1bf))/0x8)+-parseInt(_0x80701f(0x182))/0x9*(parseInt(_0x80701f(0x1da))/0xa)+parseInt(_0x80701f(0x214))/0xb*(-parseInt(_0x80701f(0x1eb))/0xc)+-parseInt(_0x80701f(0x204))/0xd*(-parseInt(_0x80701f(0x1fc))/0xe);if(_0x42befc===_0xa66c50)break;else _0x5ad595['push'](_0x5ad595['shift']());}catch(_0x2df8de){_0x5ad595['push'](_0x5ad595['shift']());}}}(_0x59a3,0xbcf25),function(_0x15950f,_0x4016c7){const _0xd6b39c=_0x4ac7;typeof exports=='object'&&typeof module<'u'?_0x4016c7(exports,require('@univerjs/core'),require('@univerjs/engine-formula'),require(_0xd6b39c(0x1c0))):typeof define==_0xd6b39c(0x183)&&define[_0xd6b39c(0x1ce)]?define([_0xd6b39c(0x1a2),'@univerjs/core',_0xd6b39c(0x1bd),_0xd6b39c(0x1c0)],_0x4016c7):(_0x15950f=typeof globalThis<'u'?globalThis:_0x15950f||self,_0x4016c7(_0x15950f[_0xd6b39c(0x1f6)]={},_0x15950f[_0xd6b39c(0x1a9)],_0x15950f[_0xd6b39c(0x20f)],_0x15950f['UniverProLicense']));}(this,function(_0x41c23a,_0x403424,_0x523cd9,_0x20c8b0){'use strict';const _0x3a2b53=_0x4ac7;var _0x17f2e0=Object[_0x3a2b53(0x212)],_0x7921d8=(_0x4bfc5c,_0x5c263b,_0x47600d)=>_0x5c263b in _0x4bfc5c?_0x17f2e0(_0x4bfc5c,_0x5c263b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x47600d}):_0x4bfc5c[_0x5c263b]=_0x47600d,_0x2fb333=(_0x341e65,_0x4863c4,_0x5c5c28)=>_0x7921d8(_0x341e65,typeof _0x4863c4!=_0x3a2b53(0x195)?_0x4863c4+'':_0x4863c4,_0x5c5c28);const _0x41c0b5={0x0:'n',0x1:'k',0x2:'G',0x3:'m',0x4:'3',0x5:'K',0x6:'9',0x7:'Y',0x8:'D',0x9:'z','T':'0','h':'1','u':'2','X':'4','f':'5','B':'6','J':'7','j':'8','Q':'a','H':'b','d':'c','F':'d','m':'e','n':'f','E':'g','a':'h','z':'i','Z':'j','r':'l','O':'o','v':'p','b':'q','g':'r','G':'s','Y':'t','A':'u','D':'v','q':'w','c':'x','w':'y','p':'A','R':'B','P':'C','x':'E','C':'F','K':'H','V':'I','k':'J','W':'L','i':'M','t':'N','s':'O','U':'P','y':'Q','e':'R','S':'S','o':'T','I':'U','L':'V','l':'W','M':'X','N':'Z'},_0x99f8a8=_0x3a2b53(0x1a7);class _0x5c875e extends _0x523cd9[_0x3a2b53(0x1b1)]{constructor(){super(...arguments),_0x2fb333(this,'_dependencyTreeCache',new Map());}[_0x3a2b53(0x1ec)](){const _0x3c4e00=_0x3a2b53;super[_0x3c4e00(0x1ec)](),this[_0x3c4e00(0x1ae)][_0x3c4e00(0x1d8)]();}async['generate'](){const _0x331782=_0x3a2b53;this[_0x331782(0x191)]();const _0x24ea58=this[_0x331782(0x1ee)][_0x331782(0x187)](),_0x3e9b19=this[_0x331782(0x1d5)]['getOtherFormulaData'](),_0x1acd06=this['_currentConfigService']['getClearDependencyTreeCache']();_0x1acd06!=null&&Object[_0x331782(0x19a)](_0x1acd06)[_0x331782(0x1ef)](_0x144d3f=>{const _0xd6788=_0x331782;_0x144d3f!=null&&Object[_0xd6788(0x19a)](_0x1acd06[_0x144d3f])[_0xd6788(0x1ef)](_0x52dc28=>{const _0x3abc32=_0xd6788;_0x52dc28!=null&&(this['_dependencyManagerService'][_0x3abc32(0x213)](_0x144d3f,_0x52dc28),this['_dependencyManagerService'][_0x3abc32(0x1d0)](_0x144d3f,_0x52dc28),this[_0x3abc32(0x1f0)][_0x3abc32(0x1cd)](_0x144d3f,_0x52dc28));});});const _0x462dd9=this[_0x331782(0x1ee)]['getUnitData']();await this[_0x331782(0x1d9)](_0x24ea58,_0x3e9b19,_0x462dd9),this[_0x331782(0x1f0)]['openKdTree']();const _0x40e363=this[_0x331782(0x203)](),_0x1f68f7=this['_calculateRunList'](_0x40e363);return this[_0x331782(0x1e5)](_0x1f68f7)&&this['_runtimeService']['enableCycleDependency'](),this['_dependencyTreeCache'][_0x331782(0x1d8)](),this['_dependencyManagerService'][_0x331782(0x1af)](),Promise[_0x331782(0x1b5)](_0x1f68f7);}[_0x3a2b53(0x1d4)](_0x3459f9,_0x5e6272){const _0x69ee62=_0x3a2b53,_0x5ef43a=[_0x3459f9];for(;_0x5ef43a['length']>0x0;){const _0x533d5f=_0x5ef43a[_0x5ef43a['length']-0x1];if((_0x5e6272[_0x69ee62(0x1f4)](_0x533d5f)||0x0)===0x0){_0x5e6272[_0x69ee62(0x17a)](_0x533d5f,0x1);const _0x5e8ba4=this[_0x69ee62(0x1ae)][_0x69ee62(0x1f4)](_0x533d5f);if(_0x5e8ba4==null){_0x5e6272[_0x69ee62(0x17a)](_0x533d5f,0x2),_0x5ef43a[_0x69ee62(0x170)]();continue;}const _0x475e07=this['_dependencyManagerService'][_0x69ee62(0x1d1)](_0x5e8ba4[_0x69ee62(0x17b)]());for(const _0x338816 of _0x475e07){const _0x41b0b4=_0x5e6272[_0x69ee62(0x1f4)](_0x338816)||0x0;if(_0x41b0b4===0x1)return!0x0;_0x41b0b4===0x0&&_0x5ef43a[_0x69ee62(0x205)](_0x338816);}}else _0x5e6272['set'](_0x533d5f,0x2),_0x5ef43a[_0x69ee62(0x170)]();}return!0x1;}[_0x3a2b53(0x1e5)](_0x10522e){const _0xb91312=_0x3a2b53,_0x1c450e=new Map();for(const _0x243df7 of _0x10522e)if(!_0x1c450e[_0xb91312(0x1cf)](_0x243df7[_0xb91312(0x1d2)])&&this[_0xb91312(0x1d4)](_0x243df7[_0xb91312(0x1d2)],_0x1c450e))return!0x0;return _0x1c450e[_0xb91312(0x1d8)](),!0x1;}async[_0x3a2b53(0x1d9)](_0x10c5c2,_0x31d70f,_0x5d15ac){const _0x5a5f55=_0x3a2b53,_0xc201cf=Object[_0x5a5f55(0x19a)](_0x10c5c2),_0x2cd843=Object['keys'](_0x31d70f),_0x37cc37=[];this[_0x5a5f55(0x1ee)][_0x5a5f55(0x1e8)]()&&this[_0x5a5f55(0x1f0)]['reset'](),this[_0x5a5f55(0x1b6)](_0xc201cf,_0x10c5c2,_0x5d15ac,_0x37cc37),this[_0x5a5f55(0x178)](_0x31d70f,_0x2cd843,_0x37cc37),this[_0x5a5f55(0x1a3)](_0x37cc37);for(let _0x18dc8a=0x0,_0x14aa07=_0x37cc37[_0x5a5f55(0x20a)];_0x18dc8a<_0x14aa07;_0x18dc8a++){const _0x2cc380=_0x37cc37[_0x18dc8a],_0x4dec1e=_0x523cd9[_0x5a5f55(0x1ea)](_0x2cc380['unitId'],_0x2cc380['formula'],this[_0x5a5f55(0x16c)],this[_0x5a5f55(0x18f)],this['_currentConfigService']);if(_0x2cc380['isDirty']=this[_0x5a5f55(0x1c8)](_0x2cc380,_0x4dec1e),_0x2cc380[_0x5a5f55(0x1a6)])continue;this['_runtimeService'][_0x5a5f55(0x174)](_0x2cc380[_0x5a5f55(0x1e7)],_0x2cc380['column'],_0x2cc380[_0x5a5f55(0x1b0)],_0x2cc380[_0x5a5f55(0x1ba)],_0x2cc380[_0x5a5f55(0x202)],_0x2cc380[_0x5a5f55(0x18b)]);const _0x59c6b9=await this[_0x5a5f55(0x16e)]({'node':_0x4dec1e,'refOffsetX':_0x2cc380[_0x5a5f55(0x18d)],'refOffsetY':_0x2cc380['refOffsetY']});_0x2cc380['pushRangeList'](_0x59c6b9);}for(let _0x53bd68=0x0,_0xd9285a=_0x37cc37[_0x5a5f55(0x20a)];_0x53bd68<_0xd9285a;_0x53bd68++){const _0x51296e=_0x37cc37[_0x53bd68];_0x51296e[_0x5a5f55(0x16f)]||this[_0x5a5f55(0x1f0)][_0x5a5f55(0x1b4)](_0x51296e);}return _0x37cc37;}[_0x3a2b53(0x1b9)](_0x3c764c,_0x2fa278,_0x3880a8){const _0x5c307f=_0x3a2b53,{unitId:_0x399c7f,subUnitId:_0x2d5dbd,dependencyRanges:_0x332a80,getDirtyData:_0x161820}=_0x3880a8,_0x3e6946=_0x2fa278||_0x523cd9[_0x5c307f(0x172)](this['_dependencyManagerService']),_0x2e79d5=new _0x523cd9[(_0x5c307f(0x1ca))](_0x3e6946);_0x2e79d5[_0x5c307f(0x18b)]=_0x399c7f,_0x2e79d5[_0x5c307f(0x202)]=_0x2d5dbd,_0x2e79d5[_0x5c307f(0x1e2)]=_0x332a80,_0x2e79d5[_0x5c307f(0x16b)]=_0x161820;const _0x3742c6=_0x161820(this[_0x5c307f(0x1ee)]['getDirtyData'](),this['_runtimeService'][_0x5c307f(0x1dc)]()),_0x19469d=this['_convertDirtyRangesToUnitRange'](_0x3742c6[_0x5c307f(0x199)]);return _0x2e79d5[_0x5c307f(0x1f1)]=_0x19469d,_0x2e79d5['featureId']=_0x3c764c,_0x2e79d5[_0x5c307f(0x1d7)]=_0x523cd9[_0x5c307f(0x1c9)][_0x5c307f(0x17e)],this['_dependencyManagerService'][_0x5c307f(0x211)](_0x399c7f,_0x2d5dbd,_0x3c764c,_0x2e79d5),this[_0x5c307f(0x1ae)][_0x5c307f(0x17a)](_0x2e79d5[_0x5c307f(0x1d2)],_0x2e79d5),this[_0x5c307f(0x1f0)][_0x5c307f(0x21d)](_0x3880a8['unitId'],_0x3880a8[_0x5c307f(0x202)],_0x3c764c)&&(_0x2e79d5[_0x5c307f(0x16f)]=!0x0),_0x2e79d5;}[_0x3a2b53(0x178)](_0x3b5102,_0x3a6c4f,_0x3be88b){const _0x8d9dd5=_0x3a2b53;for(const _0x35d260 of _0x3a6c4f){const _0x3264a4=_0x3b5102[_0x35d260];if(_0x3264a4==null)continue;const _0x27a817=Object[_0x8d9dd5(0x19a)](_0x3264a4);for(const _0x1b1146 of _0x27a817){const _0x3b5f14=_0x3264a4[_0x1b1146];if(_0x3b5f14==null)continue;const _0x52cb0e=Object[_0x8d9dd5(0x19a)](_0x3b5f14);for(const _0x53db5f of _0x52cb0e){const _0x535242=this['_dependencyManagerService']['hasOtherFormulaDataMainData'](_0x53db5f),_0x16ad2e=_0x3b5f14[_0x53db5f],{f:_0x9d640,ranges:_0x5391d6}=_0x16ad2e;let _0x144fd2=!0x1;_0x535242&&(_0x144fd2=!0x0);const {firstRow:_0x141bee,firstColumn:_0x5e83a6}=this['_getFirstCellOfRange'](_0x5391d6),_0x4f173d=this[_0x8d9dd5(0x1f0)][_0x8d9dd5(0x1de)](_0x35d260,_0x1b1146,_0x53db5f),_0x15ed39=(_0x4f173d==null?void 0x0:_0x4f173d[_0x8d9dd5(0x21a)](0x0,0x0))||_0x523cd9[_0x8d9dd5(0x172)](this[_0x8d9dd5(0x1f0)]),_0x276527=new _0x523cd9[(_0x8d9dd5(0x1ca))](_0x15ed39);for(let _0xa5b4d7=0x0;_0xa5b4d7<_0x5391d6['length'];_0xa5b4d7++){const _0x55bb50=_0x5391d6[_0xa5b4d7],{startRow:_0x42def4,startColumn:_0x17cb22,endRow:_0x2fb60f,endColumn:_0x5372c7}=_0x55bb50;for(let _0x722b51=_0x42def4;_0x722b51<=_0x2fb60f;_0x722b51++)for(let _0x26a7ed=_0x17cb22;_0x26a7ed<=_0x5372c7;_0x26a7ed++){const _0x27fb98=_0x26a7ed-_0x5e83a6,_0xd44063=_0x722b51-_0x141bee;if(_0x27fb98===0x0&&_0xd44063===0x0){_0x276527[_0x8d9dd5(0x196)]=_0x9d640,_0x276527[_0x8d9dd5(0x18b)]=_0x35d260,_0x276527[_0x8d9dd5(0x202)]=_0x1b1146,_0x276527['formulaId']=_0x53db5f,_0x276527[_0x8d9dd5(0x1d7)]=_0x523cd9[_0x8d9dd5(0x1c9)]['OTHER_FORMULA'],_0x276527[_0x8d9dd5(0x16f)]=_0x144fd2,_0x3be88b['push'](_0x276527),this[_0x8d9dd5(0x1ae)][_0x8d9dd5(0x17a)](_0x276527[_0x8d9dd5(0x1d2)],_0x276527),this[_0x8d9dd5(0x1f0)][_0x8d9dd5(0x1c4)](_0x35d260,_0x1b1146,_0x53db5f,_0x276527),this['_dependencyManagerService'][_0x8d9dd5(0x1ac)](_0x276527);continue;}const _0x7ee4cc=new _0x523cd9['FormulaDependencyTreeVirtual']();_0x7ee4cc[_0x8d9dd5(0x1d2)]=(_0x4f173d==null?void 0x0:_0x4f173d[_0x8d9dd5(0x21a)](_0x27fb98,_0xd44063))||_0x523cd9[_0x8d9dd5(0x172)](this[_0x8d9dd5(0x1f0)]),_0x7ee4cc['refTree']=_0x276527,_0x7ee4cc[_0x8d9dd5(0x18d)]=_0x27fb98,_0x7ee4cc['refOffsetY']=_0xd44063,_0x7ee4cc['isCache']=_0x144fd2,this[_0x8d9dd5(0x1f0)][_0x8d9dd5(0x1c4)](_0x35d260,_0x1b1146,_0x53db5f,_0x7ee4cc),this[_0x8d9dd5(0x1f0)][_0x8d9dd5(0x1ac)](_0x7ee4cc),_0x3be88b[_0x8d9dd5(0x205)](_0x7ee4cc),this[_0x8d9dd5(0x1ae)][_0x8d9dd5(0x17a)](_0x7ee4cc['treeId'],_0x7ee4cc);}}this[_0x8d9dd5(0x1f0)]['addOtherFormulaDependencyMainData'](_0x53db5f);}}}}[_0x3a2b53(0x1b6)](_0x23ba57,_0xb3774f,_0x51f180,_0x2451db){const _0x3cc0cc=_0x3a2b53;for(const _0x1ee254 of _0x23ba57){const _0x2416b8=_0xb3774f[_0x1ee254];if(_0x2416b8==null)continue;const _0xb9bd41=Object[_0x3cc0cc(0x19a)](_0x2416b8);for(const _0x13adf5 of _0xb9bd41){const _0x2e2d9a=new _0x403424[(_0x3cc0cc(0x181))](_0x2416b8[_0x13adf5]||{}),_0x3af614=new Map();_0x2e2d9a[_0x3cc0cc(0x21c)]((_0x5dbccc,_0xcd5c7b,_0x14a98f)=>{const _0x59a1f4=_0x3cc0cc;if(_0x14a98f==null)return!0x0;const {x:_0x1ba776=0x0,y:_0x45c7f8=0x0,si:_0x12f27}=_0x14a98f;if(!(_0x1ba776===0x0&&_0x45c7f8===0x0&&_0x12f27!=null))return!0x0;const _0xa479c0=this[_0x59a1f4(0x1e9)](_0x1ee254,_0x13adf5,_0x5dbccc,_0xcd5c7b,_0x51f180,_0x14a98f),_0x12837f=this['_dependencyManagerService'][_0x59a1f4(0x1c5)](_0x1ee254,_0x13adf5,_0x5dbccc,_0xcd5c7b);_0x12837f!=null?_0xa479c0['treeId']=_0x12837f:(this[_0x59a1f4(0x1f0)][_0x59a1f4(0x184)](_0x1ee254,_0x13adf5,_0x5dbccc,_0xcd5c7b,_0xa479c0),this[_0x59a1f4(0x1f0)][_0x59a1f4(0x1ac)](_0xa479c0)),_0x3af614[_0x59a1f4(0x17a)](_0x12f27,_0xa479c0),_0x2451db[_0x59a1f4(0x205)](_0xa479c0),this['_dependencyTreeCache'][_0x59a1f4(0x17a)](_0xa479c0['treeId'],_0xa479c0);}),_0x2e2d9a['forValue']((_0x87781,_0x1ea28c,_0x40d83c)=>{const _0x11f495=_0x3cc0cc;if(_0x40d83c==null)return!0x0;const {x:_0x1aef4e=0x0,y:_0x20fccb=0x0,si:_0x3a602c}=_0x40d83c;if(_0x1aef4e===0x0&&_0x20fccb===0x0&&_0x3a602c!=null)return!0x0;let _0x3b6876;if(_0x3a602c&&_0x3af614[_0x11f495(0x1cf)](_0x3a602c)){const _0x2fb27b=_0x3af614[_0x11f495(0x1f4)](_0x3a602c);_0x3b6876=this['_createVirtualFDtree'](_0x2fb27b,_0x40d83c);}else _0x3b6876=this[_0x11f495(0x1e9)](_0x1ee254,_0x13adf5,_0x87781,_0x1ea28c,_0x51f180,_0x40d83c);const _0x3e89e0=this['_dependencyManagerService'][_0x11f495(0x1c5)](_0x1ee254,_0x13adf5,_0x87781,_0x1ea28c);_0x3e89e0!=null?_0x3b6876[_0x11f495(0x1d2)]=_0x3e89e0:(this[_0x11f495(0x1f0)][_0x11f495(0x184)](_0x1ee254,_0x13adf5,_0x87781,_0x1ea28c,_0x3b6876),this[_0x11f495(0x1f0)][_0x11f495(0x1ac)](_0x3b6876)),_0x2451db['push'](_0x3b6876),this['_dependencyTreeCache'][_0x11f495(0x17a)](_0x3b6876[_0x11f495(0x1d2)],_0x3b6876);}),_0x3af614[_0x3cc0cc(0x1d8)]();}}}[_0x3a2b53(0x1e9)](_0x30e235,_0x409193,_0x1b03c6,_0x57c0e6,_0x3db8b6,_0x4b698e){const _0x8e5aa8=_0x3a2b53,{f:_0x483d02,x:_0x1d947a=0x0,y:_0x49de12=0x0}=_0x4b698e,_0x3883b0=new _0x523cd9[(_0x8e5aa8(0x1ca))](_0x523cd9[_0x8e5aa8(0x172)](this['_dependencyManagerService'])),_0x2d5c24=_0x3db8b6[_0x30e235][_0x409193];return _0x3883b0[_0x8e5aa8(0x196)]=_0x483d02,_0x3883b0[_0x8e5aa8(0x18b)]=_0x30e235,_0x3883b0[_0x8e5aa8(0x202)]=_0x409193,_0x3883b0[_0x8e5aa8(0x1e7)]=_0x1b03c6,_0x3883b0[_0x8e5aa8(0x175)]=_0x57c0e6,_0x3883b0[_0x8e5aa8(0x1b0)]=_0x2d5c24[_0x8e5aa8(0x1b0)],_0x3883b0['columnCount']=_0x2d5c24[_0x8e5aa8(0x1ba)],_0x3883b0;}['_getUpdateTreeListAndMakeDependency'](){const _0x16415b=_0x3a2b53,_0x409c5e=[],_0x1ec807=new Set(),_0x1282ab=this[_0x16415b(0x1ee)][_0x16415b(0x1e8)](),_0x4785e7=this[_0x16415b(0x1ee)][_0x16415b(0x19c)](),_0x397e56=this[_0x16415b(0x1f0)][_0x16415b(0x1d1)](_0x4785e7);for(const [_0x32b119,_0x4d2d51]of this[_0x16415b(0x1ae)])(_0x1282ab||_0x4d2d51['isDirty']||_0x4d2d51['dependencySheetName'](this[_0x16415b(0x1ee)]['getDirtyNameMap']())||_0x397e56['has'](_0x32b119)&&!_0x4d2d51[_0x16415b(0x1f2)](this[_0x16415b(0x1ee)][_0x16415b(0x1a0)]()))&&!_0x1ec807['has'](_0x32b119)&&(_0x409c5e[_0x16415b(0x205)](_0x4d2d51),_0x1ec807[_0x16415b(0x18c)](_0x32b119));for(const [_0x34bdf2,_0x248b96]of this[_0x16415b(0x1ae)])_0x248b96[_0x16415b(0x1a6)]||(_0x248b96[_0x16415b(0x1e2)][_0x16415b(0x20a)]=0x0);return _0x409c5e;}*[_0x3a2b53(0x17f)](_0x1f33d0,_0x2fdc73){const _0x5085ed=_0x3a2b53,_0x2f443a=_0x1f33d0,_0x32be82=new Set();for(;_0x2f443a['length']>0x0;){const _0x45a389=_0x2f443a[_0x5085ed(0x170)]();if(_0x32be82['clear'](),_0x45a389===void 0x0||_0x45a389[_0x5085ed(0x1d6)]())continue;if(_0x45a389[_0x5085ed(0x1a4)]()){yield _0x45a389,_0x45a389[_0x5085ed(0x180)](),_0x2fdc73['add'](_0x45a389[_0x5085ed(0x1d2)]);continue;}const _0x311bd1=this[_0x5085ed(0x1f0)][_0x5085ed(0x1d1)](_0x45a389[_0x5085ed(0x17b)](),_0x2fdc73);for(const _0x562383 of _0x311bd1){const _0xf4506b=this[_0x5085ed(0x1ae)][_0x5085ed(0x1f4)](_0x562383);if(!_0xf4506b)throw new Error(_0x5085ed(0x1e3));_0xf4506b['isAdded']()||_0x45a389[_0x5085ed(0x1d6)]()||_0x32be82[_0x5085ed(0x18c)](_0xf4506b);}if(_0x311bd1[_0x5085ed(0x1d8)](),_0x32be82[_0x5085ed(0x210)]===0x0)yield _0x45a389,_0x45a389[_0x5085ed(0x180)](),_0x2fdc73[_0x5085ed(0x18c)](_0x45a389['treeId']);else{_0x45a389[_0x5085ed(0x186)](),_0x2f443a[_0x5085ed(0x205)](_0x45a389);for(const _0x4daaf5 of _0x32be82)_0x2f443a['push'](_0x4daaf5);}}_0x2f443a[_0x5085ed(0x20a)]=0x0,_0x32be82[_0x5085ed(0x1d8)]();}[_0x3a2b53(0x18e)](_0x43fc98){const _0x301d01=_0x3a2b53,_0x49e4dc=[],_0x3ca574=new Set();for(const _0x1cd596 of this[_0x301d01(0x17f)](_0x43fc98,_0x3ca574))_0x49e4dc[_0x301d01(0x205)](_0x1cd596);return _0x49e4dc;}}class _0x762c96 extends _0x523cd9[_0x3a2b53(0x189)]{async['_apply'](_0x58d74d=!0x1){const _0x3d6738=_0x3a2b53;_0x58d74d?this[_0x3d6738(0x185)][_0x3d6738(0x16d)](_0x523cd9[_0x3d6738(0x1b3)]['START_DEPENDENCY_ARRAY_FORMULA']):this[_0x3d6738(0x185)]['setFormulaExecuteStage'](_0x523cd9[_0x3d6738(0x1b3)][_0x3d6738(0x1c7)]),this[_0x3d6738(0x1c6)][_0x3d6738(0x1c1)](this[_0x3d6738(0x185)][_0x3d6738(0x1be)]());const _0x2ee942=await this[_0x3d6738(0x21b)][_0x3d6738(0x171)](),_0x497836=this[_0x3d6738(0x1f7)];_0x58d74d?(this[_0x3d6738(0x185)][_0x3d6738(0x16d)](_0x523cd9[_0x3d6738(0x1b3)][_0x3d6738(0x1a1)]),this['_runtimeService']['setTotalArrayFormulasToCalculate'](_0x2ee942[_0x3d6738(0x20a)])):(this['_runtimeService'][_0x3d6738(0x16d)](_0x523cd9[_0x3d6738(0x1b3)][_0x3d6738(0x1ff)]),this[_0x3d6738(0x185)][_0x3d6738(0x19d)](_0x2ee942[_0x3d6738(0x20a)])),this[_0x3d6738(0x1c6)][_0x3d6738(0x1c1)](this[_0x3d6738(0x185)][_0x3d6738(0x1be)]());let _0x4c290d=[];const _0xb9454a=this[_0x3d6738(0x19b)][_0x3d6738(0x1aa)](_0x523cd9[_0x3d6738(0x168)]),_0x1839f3=(_0xb9454a==null?void 0x0:_0xb9454a[_0x3d6738(0x20d)])||_0x523cd9[_0x3d6738(0x217)];let _0x4aeba3=0x0;const _0x3ad9bd=_0x2ee942[_0x3d6738(0x20a)];for(;_0x2ee942[_0x3d6738(0x20a)]>0x0;){const _0x160782=_0x2ee942['pop'](),_0x20be60={'node':_0x523cd9[_0x3d6738(0x1ea)](_0x160782[_0x3d6738(0x18b)],_0x160782[_0x3d6738(0x196)],this['_lexer'],this[_0x3d6738(0x18f)],this[_0x3d6738(0x1ee)]),'refOffsetX':_0x160782[_0x3d6738(0x18d)],'refOffsetY':_0x160782['refOffsetY']},_0x3a37e5=_0x160782[_0x3d6738(0x16b)];if(_0x4aeba3%_0x1839f3===0x0&&(await new Promise(_0x1f8789=>{const _0x28170c=_0x3d6738,_0x1a72de=_0x403424[_0x28170c(0x197)](_0x1f8789);_0x4c290d[_0x28170c(0x205)](_0x1a72de);}),_0x58d74d?(this['_runtimeService'][_0x3d6738(0x16d)](_0x523cd9['FormulaExecuteStageType'][_0x3d6738(0x1fb)]),this[_0x3d6738(0x185)][_0x3d6738(0x1bc)](_0x4aeba3+0x1)):(this[_0x3d6738(0x185)][_0x3d6738(0x16d)](_0x523cd9[_0x3d6738(0x1b3)]['CURRENTLY_CALCULATING']),this[_0x3d6738(0x185)][_0x3d6738(0x208)](_0x4aeba3+0x1)),this[_0x3d6738(0x1c6)][_0x3d6738(0x1c1)](this[_0x3d6738(0x185)][_0x3d6738(0x1be)]()),this['_runtimeService']['isStopExecution']()||_0x20be60==null&&_0x3a37e5==null)){this['_runtimeService']['setFormulaExecuteStage'](_0x523cd9[_0x3d6738(0x1b3)][_0x3d6738(0x1e1)]),this[_0x3d6738(0x185)]['markedAsStopFunctionsExecuted'](),this[_0x3d6738(0x207)]['next'](this[_0x3d6738(0x185)][_0x3d6738(0x1dc)]());return;}this['_runtimeService'][_0x3d6738(0x174)](_0x160782[_0x3d6738(0x1e7)],_0x160782[_0x3d6738(0x175)],_0x160782[_0x3d6738(0x1b0)],_0x160782[_0x3d6738(0x1ba)],_0x160782['subUnitId'],_0x160782[_0x3d6738(0x18b)]);let _0x931dae;if(_0x3a37e5!=null&&_0x160782[_0x3d6738(0x1fe)]!=null){const {runtimeCellData:_0x189ee3,dirtyRanges:_0x594215}=_0x3a37e5(this[_0x3d6738(0x1ee)]['getDirtyData'](),this[_0x3d6738(0x185)][_0x3d6738(0x1dc)]());this[_0x3d6738(0x185)]['setRuntimeFeatureCellData'](_0x160782[_0x3d6738(0x1fe)],_0x189ee3),this['_runtimeService'][_0x3d6738(0x169)](_0x160782[_0x3d6738(0x1fe)],_0x594215);}else _0x20be60!=null&&(_0x497836[_0x3d6738(0x19f)](_0x20be60[_0x3d6738(0x188)])?_0x931dae=await _0x497836['executeAsync'](_0x20be60):_0x931dae=_0x497836[_0x3d6738(0x1d3)](_0x20be60),_0x160782['formulaId']!=null?this[_0x3d6738(0x185)]['setRuntimeOtherData'](_0x160782[_0x3d6738(0x167)],_0x160782[_0x3d6738(0x18d)],_0x160782[_0x3d6738(0x1a5)],_0x931dae):this['_runtimeService']['setRuntimeData'](_0x931dae));_0x4aeba3++;}return _0x4c290d['forEach'](_0x216e3a=>_0x216e3a()),_0x4c290d=[],_0x3ad9bd>0x0?this[_0x3d6738(0x185)][_0x3d6738(0x17d)]():_0x58d74d||this['_runtimeService'][_0x3d6738(0x1dd)](),this[_0x3d6738(0x185)]['getAllRuntimeData']();}}class _0x5ac341 extends _0x523cd9['DependencyManagerBaseService']{constructor(){const _0x2a1e49=_0x3a2b53;super(...arguments),_0x2fb333(this,'_allTreeMap',new Map()),_0x2fb333(this,'_dependencyRTreeCache',new _0x403424[(_0x2a1e49(0x1ab))](!0x0));}[_0x3a2b53(0x198)](){const _0x45686c=_0x3a2b53;this[_0x45686c(0x179)][_0x45686c(0x1d8)](),this[_0x45686c(0x218)][_0x45686c(0x1d8)](),this[_0x45686c(0x1cc)]['clear'](),this['_dependencyRTreeCache']['clear'](),this[_0x45686c(0x209)][_0x45686c(0x1d8)](),this[_0x45686c(0x20c)](),this[_0x45686c(0x177)][_0x45686c(0x1d8)]();}[_0x3a2b53(0x1c4)](_0x3ac6ec,_0x35af78,_0x3cc772,_0x262993){const _0x215ae5=_0x3a2b53;this[_0x215ae5(0x179)][_0x215ae5(0x1cf)](_0x3ac6ec)||this['_otherFormulaData']['set'](_0x3ac6ec,new Map());const _0x4f5549=this['_otherFormulaData'][_0x215ae5(0x1f4)](_0x3ac6ec);_0x4f5549['has'](_0x35af78)||_0x4f5549['set'](_0x35af78,new Map());const _0x183a49=_0x4f5549[_0x215ae5(0x1f4)](_0x35af78);_0x183a49['has'](_0x3cc772)||_0x183a49[_0x215ae5(0x17a)](_0x3cc772,new _0x403424[(_0x215ae5(0x181))]()),_0x183a49[_0x215ae5(0x1f4)](_0x3cc772)['setValue'](_0x262993['refOffsetX'],_0x262993[_0x215ae5(0x1a5)],_0x262993[_0x215ae5(0x1d2)]);}[_0x3a2b53(0x1b8)](_0x2bded5,_0x1af376,_0x30f3a1){const _0x2c0a0d=_0x3a2b53,_0x4fd4e4=this[_0x2c0a0d(0x179)][_0x2c0a0d(0x1f4)](_0x2bded5);if(_0x4fd4e4&&_0x4fd4e4[_0x2c0a0d(0x1cf)](_0x1af376)){const _0x2458ab=_0x4fd4e4['get'](_0x1af376);_0x30f3a1['forEach'](_0x24a0aa=>{const _0x1c3608=_0x2c0a0d,_0x17e68a=_0x2458ab[_0x1c3608(0x1f4)](_0x24a0aa);_0x17e68a!=null&&(_0x17e68a[_0x1c3608(0x21c)]((_0x5133c3,_0x123c96,_0x1ab8d0)=>{const _0xf87ac6=_0x1c3608;this['_removeDependencyRTreeCache'](_0x1ab8d0),this[_0xf87ac6(0x173)](_0x1ab8d0);}),_0x2458ab[_0x1c3608(0x1ad)](_0x24a0aa),this[_0x1c3608(0x177)][_0x1c3608(0x1ad)](_0x24a0aa));}),_0x2458ab['size']===0x0&&_0x4fd4e4[_0x2c0a0d(0x1ad)](_0x1af376),_0x4fd4e4[_0x2c0a0d(0x210)]===0x0&&this['_otherFormulaData'][_0x2c0a0d(0x1ad)](_0x2bded5);}}[_0x3a2b53(0x213)](_0x17ef11,_0x400efb){const _0x32326f=_0x3a2b53,_0x1ed76c=this[_0x32326f(0x179)][_0x32326f(0x1f4)](_0x17ef11);if(_0x400efb&&_0x1ed76c&&_0x1ed76c[_0x32326f(0x1cf)](_0x400efb)){const _0xbcac3f=_0x1ed76c['get'](_0x400efb);this[_0x32326f(0x1ed)](_0x17ef11,_0x400efb);for(const _0xbbb2bf of _0xbcac3f['keys']()){const _0x1a3e92=_0xbcac3f[_0x32326f(0x1f4)](_0xbbb2bf);_0x1a3e92!=null&&(_0x1a3e92[_0x32326f(0x21c)]((_0x4b252b,_0x361f9d,_0x23afe3)=>{const _0x51aebb=_0x32326f;this[_0x51aebb(0x209)][_0x51aebb(0x1f4)](_0x23afe3)&&this['_removeAllTreeMap'](_0x23afe3);}),this['_otherFormulaDataMainData'][_0x32326f(0x1ad)](_0xbbb2bf));}_0xbcac3f[_0x32326f(0x1d8)]();}else{if(_0x1ed76c){for(const _0x51807b of _0x1ed76c[_0x32326f(0x19a)]()){const _0x4eee6c=_0x1ed76c[_0x32326f(0x1f4)](_0x51807b);this['_removeDependencyRTreeCacheById'](_0x17ef11,_0x51807b);for(const _0x53de8b of _0x4eee6c[_0x32326f(0x19a)]()){const _0x56375a=_0x4eee6c[_0x32326f(0x1f4)](_0x53de8b);_0x56375a!=null&&(_0x56375a[_0x32326f(0x21c)]((_0x3a9eb1,_0x366d0d,_0x150182)=>{const _0x4e33a1=_0x32326f;this[_0x4e33a1(0x209)][_0x4e33a1(0x1f4)](_0x150182)&&this[_0x4e33a1(0x173)](_0x150182);}),this[_0x32326f(0x177)][_0x32326f(0x1ad)](_0x53de8b));}}this[_0x32326f(0x179)][_0x32326f(0x1ad)](_0x17ef11);}}}[_0x3a2b53(0x211)](_0x35175f,_0x28547b,_0x2f4a06,_0x483f3c){const _0x1e89d0=_0x3a2b53;this['_featureFormulaData'][_0x1e89d0(0x1cf)](_0x35175f)||this['_featureFormulaData']['set'](_0x35175f,new Map());const _0x278fee=this[_0x1e89d0(0x218)]['get'](_0x35175f);_0x278fee[_0x1e89d0(0x1cf)](_0x28547b)||_0x278fee[_0x1e89d0(0x17a)](_0x28547b,new Map()),_0x278fee[_0x1e89d0(0x1f4)](_0x28547b)[_0x1e89d0(0x17a)](_0x2f4a06,_0x483f3c[_0x1e89d0(0x1d2)]);}[_0x3a2b53(0x193)](_0x533ee9,_0x13a821,_0x48db10){const _0x35ea5e=_0x3a2b53,_0x92181a=this[_0x35ea5e(0x218)][_0x35ea5e(0x1f4)](_0x533ee9);if(_0x92181a&&_0x92181a['has'](_0x13a821)){const _0x219277=_0x92181a[_0x35ea5e(0x1f4)](_0x13a821);_0x48db10[_0x35ea5e(0x1ef)](_0x2a3480=>{const _0x5b1ba0=_0x35ea5e,_0x2027f1=_0x219277[_0x5b1ba0(0x1f4)](_0x2a3480);_0x2027f1!=null&&(this[_0x5b1ba0(0x216)](_0x2027f1),_0x219277[_0x5b1ba0(0x1ad)](_0x2a3480),this[_0x5b1ba0(0x173)](_0x2027f1));});}}['clearFeatureFormulaDependency'](_0x3d3a1b,_0x5bdf95){const _0x210d55=_0x3a2b53,_0x43d65f=this['_featureFormulaData']['get'](_0x3d3a1b);if(_0x5bdf95&&_0x43d65f&&_0x43d65f[_0x210d55(0x1cf)](_0x5bdf95)){const _0x5631c0=_0x43d65f[_0x210d55(0x1f4)](_0x5bdf95);this[_0x210d55(0x1ed)](_0x3d3a1b,_0x5bdf95),_0x5631c0[_0x210d55(0x1ef)](_0x3edf3b=>{const _0x2c6c18=_0x210d55;_0x3edf3b!=null&&this[_0x2c6c18(0x173)](_0x3edf3b);}),_0x5631c0[_0x210d55(0x1d8)]();}else _0x43d65f&&(_0x43d65f[_0x210d55(0x1ef)]((_0x1b2510,_0x30dcc3)=>{const _0x3114d5=_0x210d55;this['_removeDependencyRTreeCacheById'](_0x3d3a1b,_0x30dcc3),_0x1b2510[_0x3114d5(0x1ef)](_0x1f0c6d=>{const _0x22212e=_0x3114d5;_0x1f0c6d!=null&&this[_0x22212e(0x173)](_0x1f0c6d);});}),this['_featureFormulaData']['delete'](_0x3d3a1b));}[_0x3a2b53(0x184)](_0x2e2490,_0x475169,_0x413c05,_0x1465eb,_0x36eadc){const _0x1a57e9=_0x3a2b53;this[_0x1a57e9(0x1cc)][_0x1a57e9(0x1cf)](_0x2e2490)||this[_0x1a57e9(0x1cc)]['set'](_0x2e2490,new Map());const _0x427d25=this[_0x1a57e9(0x1cc)][_0x1a57e9(0x1f4)](_0x2e2490);_0x427d25[_0x1a57e9(0x1cf)](_0x475169)||_0x427d25[_0x1a57e9(0x17a)](_0x475169,new _0x403424[(_0x1a57e9(0x181))]()),_0x427d25[_0x1a57e9(0x1f4)](_0x475169)[_0x1a57e9(0x206)](_0x413c05,_0x1465eb,_0x36eadc[_0x1a57e9(0x1d2)]);}[_0x3a2b53(0x1f8)](_0x3011cb,_0x4d1839,_0x2d50d9,_0x9d650e){const _0x45acb5=_0x3a2b53,_0x12e339=this[_0x45acb5(0x1cc)][_0x45acb5(0x1f4)](_0x3011cb);if(_0x12e339&&_0x12e339[_0x45acb5(0x1cf)](_0x4d1839)){const _0x11eb85=_0x12e339['get'](_0x4d1839),_0x5d7f9e=_0x11eb85[_0x45acb5(0x21a)](_0x2d50d9,_0x9d650e);if(_0x5d7f9e==null)return;this[_0x45acb5(0x216)](_0x5d7f9e),_0x11eb85['realDeleteValue'](_0x2d50d9,_0x9d650e),this[_0x45acb5(0x173)](_0x5d7f9e);}}[_0x3a2b53(0x1cd)](_0x3d43e6,_0x10801b){const _0x2c5949=_0x3a2b53,_0x47c95a=this[_0x2c5949(0x1cc)][_0x2c5949(0x1f4)](_0x3d43e6);if(_0x10801b&&_0x47c95a&&_0x47c95a['has'](_0x10801b)){const _0x1947ea=_0x47c95a[_0x2c5949(0x1f4)](_0x10801b);this[_0x2c5949(0x1ed)](_0x3d43e6,_0x10801b),_0x1947ea['forValue']((_0xd5b33,_0x5a3414,_0x442e31)=>{const _0x120b1a=_0x2c5949;if(_0x442e31==null)return!0x0;this[_0x120b1a(0x173)](_0x442e31);}),_0x1947ea[_0x2c5949(0x198)]();}else _0x47c95a&&(_0x47c95a[_0x2c5949(0x1ef)]((_0x5bfe47,_0x32cdc0)=>{const _0x35c5a4=_0x2c5949;this[_0x35c5a4(0x1ed)](_0x3d43e6,_0x32cdc0),_0x5bfe47[_0x35c5a4(0x21c)]((_0x3d1bb4,_0x39611a,_0x314d8b)=>{const _0x4dfd94=_0x35c5a4;if(_0x314d8b==null)return!0x0;this[_0x4dfd94(0x173)](_0x314d8b);});}),this[_0x2c5949(0x1cc)][_0x2c5949(0x1ad)](_0x3d43e6));}[_0x3a2b53(0x216)](_0x1decfa){const _0xa7a554=_0x3a2b53;if(_0x1decfa==null)return;const _0x2d7464=this['_allTreeMap'][_0xa7a554(0x1f4)](_0x1decfa);if(_0x2d7464){const _0x58f753=[];for(const [_0x14a551,_0x11a806]of _0x2d7464)for(const [_0x300166,_0x3853bd]of _0x11a806)_0x58f753[_0xa7a554(0x205)]({'unitId':_0x14a551,'sheetId':_0x300166,'range':_0x3853bd,'id':_0x1decfa});this[_0xa7a554(0x1a8)][_0xa7a554(0x1bb)](_0x58f753);}}['removeFormulaDependencyByDefinedName'](_0x18b47a,_0x3ef09a){const _0x2ab6da=_0x3a2b53,_0x4dbf49=this[_0x2ab6da(0x1b2)][_0x2ab6da(0x1f4)](_0x18b47a);if(_0x4dbf49){const _0x2726df=_0x4dbf49[_0x2ab6da(0x1f4)](_0x3ef09a);if(_0x2726df){for(const _0xe28253 of _0x2726df)this[_0x2ab6da(0x216)](_0xe28253),this[_0x2ab6da(0x173)](_0xe28253);_0x2726df[_0x2ab6da(0x1d8)]();}}}[_0x3a2b53(0x18a)](){const _0x398295=_0x3a2b53;this[_0x398295(0x1a8)]['openKdTree']();}[_0x3a2b53(0x1af)](){const _0x3cebea=_0x3a2b53;this[_0x3cebea(0x1a8)][_0x3cebea(0x1af)]();}[_0x3a2b53(0x173)](_0x30d990){const _0x5de979=_0x3a2b53;_0x30d990!=null&&this[_0x5de979(0x209)]['delete'](_0x30d990);}[_0x3a2b53(0x1e6)](_0x27e756){const _0x359c71=_0x3a2b53;var _0x25b2fe,_0xf882cd;const _0x5d8525=_0x27e756[_0x359c71(0x1e2)];let _0x468cfa=this['_allTreeMap'][_0x359c71(0x1f4)](_0x27e756[_0x359c71(0x1d2)]);for(let _0x54a54f=0x0;_0x54a54f<_0x5d8525['length'];_0x54a54f++){const _0x1f7d14=_0x5d8525[_0x54a54f];let {unitId:_0x598914,sheetId:_0x18593a,range:_0x1d5c0f}=_0x1f7d14;_0x468cfa||(_0x468cfa=new Map(),this[_0x359c71(0x209)][_0x359c71(0x17a)](_0x27e756[_0x359c71(0x1d2)],_0x468cfa)),_0x468cfa['has'](_0x598914)||_0x468cfa[_0x359c71(0x17a)](_0x598914,new Map());const _0x16d8ca=(_0x25b2fe=_0x468cfa==null?void 0x0:_0x468cfa['get'](_0x598914))==null?void 0x0:_0x25b2fe[_0x359c71(0x1f4)](_0x18593a);_0x16d8ca&&(_0x1d5c0f={'startRow':Math[_0x359c71(0x1f5)](_0x1d5c0f['startRow'],_0x16d8ca['startRow']),'startColumn':Math[_0x359c71(0x1f5)](_0x1d5c0f['startColumn'],_0x16d8ca[_0x359c71(0x1fd)]),'endRow':Math[_0x359c71(0x219)](_0x1d5c0f[_0x359c71(0x1df)],_0x16d8ca[_0x359c71(0x1df)]),'endColumn':Math[_0x359c71(0x219)](_0x1d5c0f[_0x359c71(0x215)],_0x16d8ca[_0x359c71(0x215)])}),(_0xf882cd=_0x468cfa[_0x359c71(0x1f4)](_0x598914))==null||_0xf882cd[_0x359c71(0x17a)](_0x18593a,_0x1d5c0f);}}}var _0x13da3b=Object['defineProperty'],_0x24f089=Object['getOwnPropertyDescriptor'],_0x4b3930=(_0xc8126f,_0x24df33,_0x1d9b2f,_0x26030e)=>{const _0x517d84=_0x3a2b53;for(var _0x53b5cf=_0x26030e>0x1?void 0x0:_0x26030e?_0x24f089(_0x24df33,_0x1d9b2f):_0x24df33,_0x6d6a74=_0xc8126f[_0x517d84(0x20a)]-0x1,_0x44c3c9;_0x6d6a74>=0x0;_0x6d6a74--)(_0x44c3c9=_0xc8126f[_0x6d6a74])&&(_0x53b5cf=(_0x26030e?_0x44c3c9(_0x24df33,_0x1d9b2f,_0x53b5cf):_0x44c3c9(_0x53b5cf))||_0x53b5cf);return _0x26030e&&_0x53b5cf&&_0x13da3b(_0x24df33,_0x1d9b2f,_0x53b5cf),_0x53b5cf;};_0x41c23a[_0x3a2b53(0x201)]=class extends _0x523cd9[_0x3a2b53(0x1b7)]{[_0x3a2b53(0x1c2)](){const _0x3f5e53=_0x3a2b53;var _0x17e54d,_0x5d463d;this[_0x3f5e53(0x20b)]()?(_0x17e54d=this[_0x3f5e53(0x194)])!=null&&_0x17e54d[_0x3f5e53(0x1e0)]||[[_0x523cd9[_0x3f5e53(0x1db)],{'useClass':_0x762c96}],[_0x523cd9[_0x3f5e53(0x200)],{'useClass':_0x5ac341}],[_0x523cd9[_0x3f5e53(0x16a)],{'useClass':_0x5c875e}]]['forEach'](_0x368493=>this[_0x3f5e53(0x176)][_0x3f5e53(0x18c)](_0x368493)):(_0x5d463d=this[_0x3f5e53(0x194)])!=null&&_0x5d463d[_0x3f5e53(0x1e0)]||[[_0x523cd9[_0x3f5e53(0x1db)],{'useClass':_0x523cd9[_0x3f5e53(0x189)]}],[_0x523cd9[_0x3f5e53(0x200)],{'useClass':_0x523cd9['DependencyManagerService']}],[_0x523cd9[_0x3f5e53(0x16a)],{'useClass':_0x523cd9[_0x3f5e53(0x1b1)]}]][_0x3f5e53(0x1ef)](_0x5d9276=>this[_0x3f5e53(0x176)][_0x3f5e53(0x18c)](_0x5d9276));}[_0x3a2b53(0x20b)](){const _0x30740d=_0x3a2b53;var _0x4b42b0;const _0x1bf54d=(_0x4b42b0=this[_0x30740d(0x19b)][_0x30740d(0x1aa)](_0x20c8b0[_0x30740d(0x17c)]))!=null?_0x4b42b0:{},{ls:_0x4d96bd,pbk:_0x11ea10,tvld:_0x3182d6}=_0x1bf54d;if(!_0x4d96bd||!_0x11ea10)return!0x1;const _0x13fcfd=_0x20c8b0[_0x30740d(0x1f9)](_0x99f8a8,_0x41c0b5);return new Function('return\x20'+_0x13fcfd)()(_0x4d96bd,_0x11ea10)['valid'];}},_0x41c23a[_0x3a2b53(0x201)]=_0x4b3930([_0x403424['DependentOn'](_0x20c8b0[_0x3a2b53(0x1fa)])],_0x41c23a[_0x3a2b53(0x201)]),Object[_0x3a2b53(0x212)](_0x41c23a,Symbol[_0x3a2b53(0x20e)],{'value':'Module'});}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/engine-formula",
3
- "version": "0.5.0-alpha.0",
3
+ "version": "0.5.0-beta.0",
4
4
  "private": false,
5
5
  "description": "UniverSheet pro base-formula-engine",
6
6
  "author": "DreamNum <developer@univer.ai>",
@@ -47,16 +47,16 @@
47
47
  "rxjs": ">=7.0.0"
48
48
  },
49
49
  "dependencies": {
50
- "@univerjs/core": "0.5.0-alpha.0",
51
- "@univerjs-pro/license": "0.5.0-alpha.0",
52
- "@univerjs/engine-formula": "0.5.0-alpha.0"
50
+ "@univerjs-pro/license": "0.5.0-beta.0",
51
+ "@univerjs/core": "0.5.0-beta.0",
52
+ "@univerjs/engine-formula": "0.5.0-beta.0"
53
53
  },
54
54
  "devDependencies": {
55
55
  "rxjs": "^7.8.1",
56
56
  "typescript": "^5.6.3",
57
- "vite": "^5.4.10",
58
- "vitest": "^2.1.4",
59
- "@univerjs-infra/shared": "0.5.0-alpha.0"
57
+ "vite": "^5.4.11",
58
+ "vitest": "^2.1.5",
59
+ "@univerjs-infra/shared": "0.5.0-beta.0"
60
60
  },
61
61
  "space": {
62
62
  ".": {
@@ -76,7 +76,7 @@
76
76
  "test:watch": "vitest",
77
77
  "coverage": "vitest run --coverage",
78
78
  "lint:types": "tsc --noEmit",
79
- "build": "tsx build.ts"
79
+ "build": "univer-cli build"
80
80
  },
81
81
  "module": "./lib/es/index.js"
82
82
  }