UNPKG

@univerjs-pro/engine-formula

Version:

UniverSheet pro base-formula-engine

1 lines 49.7 kB
'use strict';const _0x18c1ab=_0x4755;(function(_0x143a56,_0x4bdd50){const _0xd6a456=_0x4755,_0x518b13=_0x143a56();while(!![]){try{const _0x5ed78f=parseInt(_0xd6a456(0x1d3))/0x1*(parseInt(_0xd6a456(0x13d))/0x2)+parseInt(_0xd6a456(0x1ff))/0x3+-parseInt(_0xd6a456(0x237))/0x4+parseInt(_0xd6a456(0x1f0))/0x5*(-parseInt(_0xd6a456(0x16b))/0x6)+-parseInt(_0xd6a456(0x1d8))/0x7+-parseInt(_0xd6a456(0x15c))/0x8*(-parseInt(_0xd6a456(0x191))/0x9)+-parseInt(_0xd6a456(0x1a5))/0xa*(-parseInt(_0xd6a456(0x1c4))/0xb);if(_0x5ed78f===_0x4bdd50)break;else _0x518b13['push'](_0x518b13['shift']());}catch(_0x298f2e){_0x518b13['push'](_0x518b13['shift']());}}}(_0xd274,0x8ebc9));var k=Object[_0x18c1ab(0x23d)],b=(_0x4fcfc0,_0x46135d,_0x42d657)=>_0x46135d in _0x4fcfc0?k(_0x4fcfc0,_0x46135d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x42d657}):_0x4fcfc0[_0x46135d]=_0x42d657,F=(_0x420d00,_0x142966,_0x4129df)=>b(_0x420d00,typeof _0x142966!=_0x18c1ab(0x1ed)?_0x142966+'':_0x142966,_0x4129df);function _0xd274(){const _0x24363d=['has','LexerNode','range','addFormulaDependencyByDefinedName','toRTreeItem','_lambdaFunctionParameterSet','addFeatureFormulaDependency','_featureFormulaData','formula','isAdded','_restDependencyTreeId','FormulaExecuteStageType','children','_generateNewFunctionString','getDirtyRanges','isExcludeRange','getClearDependencyTreeCache','setRuntimeFeatureRange','startIndex','_isCalculateTreeModel','_handleChildrenForExprTree','4350948NngQjq','_resetPrefix','_getTableNameFromStructuredRef','rangeList','type','UniverProFormulaEnginePlugin','defineProperty','requestImmediateMacroTask','_dependencyRTreeCache','DEFAULT_TOKEN_TYPE_LAMBDA_PARAMETER','_configService','subUnitId','1597562ixbaHv','getToken','getStartIndex','clearFormulaDependency','_checkColonNodeForExprTree','isForceCalculate','endColumn','_updateRangeFlatten','OTHER_FORMULA','_xlpmPrefix','Lambda\x20parameter\x20name\x20\x22','_removeDependencyRTreeCache','row','START_CALCULATION_ARRAY_FORMULA','_createFDtree','_definedNameMap','add','_isCyclicUtilMap','bulkSearch','_clearPrefix','delete','pop','_initLicenseValid','_allTreeMap','markedAsSuccessfullyExecuted','_injector','enableCycleDependency','getFormulaExprTree','DEFAULT_TOKEN_TYPE_PARAMETER','setTotalArrayFormulasToCalculate','_checkIsCycleDependency','8717672WTUGNi','FormulaDependencyTreeVirtual','keys','rowCount','Module','_handleNewFunctionChild','isFeatureAuthorizedWithinTime','featureId','getNewFormulaWithPrefix','startRow','_removeDependencyRTreeCacheById','IDependencyManagerService','featureDirtyRanges','IFormulaDependencyGenerator','join','6dAyJGE','setSkip','PLUS','START_CALCULATION','DEFAULT_TOKEN_TYPE_ROOT','_removeAllTreeMap','isStopExecution','return\x20','error','columnCount','getAllRuntimeData','refOffsetX','bulkRemove','_endFormulaDependencyTreeModel','ICalculateFormulaService','_getDependencyTreeChildrenIds','/*t5nchVv-OhnNJc5t835d53-v548cNv5t*/dMV6vhQVtO563Z8vhQV(ch65Vn5,t8MJch6i5Z)t{ttttv3Zt{tttttttt6QVnvtch65Vn5UVdQ\x20N3vW33NZt=tch65Vn5.n8chv(\x27-\x27);tttttttt6QVnvtQ3hyhV75nnNy5t=tDs1e.8N3n5(NvQJ(ch65Vn5UVdQ\x20N3vW33NZ[G]));tttttttthdt(!Q3hyhV75nnNy5.MO)t{ttttttttttttQ3hyhV75nnNy5.MOt=teM4J53(ch65Vn5UVdQ\x20N3vW33NZ[A]);tttttttt}tttttttt6QVnvthnmQ3I53t=tvZ85QdtmQ3I53xcQJNcs6Q85t!==t\x27MVO5dhV5O\x27t&&tn5cdthVnvNV65QdtmQ3I53xcQJNcs6Q85;tttttttt6QVnvthnY3Qln53t=tvZ85QdtlhVOQlt!==t\x27MVO5dhV5O\x27t&&tvZ85QdtlhVOQl.cQ6NvhQVt!==t\x27MVO5dhV5O\x27;tttttttt6QVnvt6QVv52vt=thnmQ3I53t?tn5cdt:t(hnY3Qln53t?tlhVOQlt:tycQJNcKLhn);tttttttt6QVnvt45nnNy5mQ3Ot=t6QVv52v.__YNn5pA__.8N3n5(ch65Vn5UVdQ\x20N3vW33NZ[G]);tttttttt6QVnvt45nnNy5t=t6QVv52v.__H52__.nv3hVyhdZ(45nnNy5mQ3O);tttttttt6QVnvtnhyVNvM35mQ3Ot=t6QVv52v.__YNn5pA__.8N3n5(ch65Vn5UVdQ\x20N3vW33NZ[T]);tttttttt6QVnvtnhyVNvM35t=t6QVv52v.__H52__.nv3hVyhdZ(nhyVNvM35mQ3O);tttttttt6QVnvtnhyVXNchOt=t6QVv52v.__R53hdZ__(nhyVNvM35,t45nnNy5,t8MJch6i5Z);tttttttt6QVnvtOQ4NhVt=tQ3hyhV75nnNy5.O4;ttttttttdMV6vhQVthnFQ4NhV7Nv6LhVy(8Nvv53V,tLQnv)t{tttttttttttthdt(8Nvv53Vt===tLQnv)t35vM3Vtv3M5;tttttttttttthdt(8Nvv53V.nvN3vnmhvL(\x27*.\x27))t{tttttttttttttttt6QVnvtnMddh2t=t8Nvv53V.nch65(G);tttttttttttttttthdt(nMddh2t&&tnMddh2t===tLQnv)t{tttttttttttttttttttt35vM3Vtv3M5;tttttttttttttttt}tttttttttttttttthdt(nMddh2t&&t!LQnv.nvN3vnmhvL(\x27.\x27)t&&tLQnv.5VOnmhvL(\x27.\x27t+tnMddh2))t{tttttttttttttttttttt35vM3Vtv3M5;tttttttttttttttt}tttttttttttt}tttttttttttt35vM3VtdNcn5;tttttttt}ttttttttc5vtOQ4NhVXNchOt=tdNcn5;tttttttthdt(hnY3Qln53)t{ttttttttttttOQ4NhVXNchOt=t(OQ4NhVt&&tOQ4NhV.c5VyvL)t?tOQ4NhV.nQ45((O4Uv54)t=>thnFQ4NhV7Nv6LhVy(O4Uv54,tcQ6NvhQV.LQnvVN45))t:tv3M5;tttttttttttthdt(cQ6NvhQV.LQnvVN45t===t\x27cQ6NcLQnv\x27)t{ttttttttttttttttOQ4NhVXNchOt=tv3M5;tttttttttttt}tttttttt}t5cn5t{ttttttttttttOQ4NhVXNchOt=tv3M5;tttttttt}tttttttt6QVnvtRNchOt=tnhyVXNchOt&&tOQ4NhVXNchO;tttttttt35vM3Vt{ttttttttttttRNchO,tttttttttttt45nnNy5:tQ3hyhV75nnNy5,tttttttt};tttt}t6Nv6Lt(533Q3)t{tttttttt35vM3Vt{ttttttttttttRNchO:tdNcn5,tttttttttttt45nnNy5:t{},tttttttt};tttt}}','matchToken','reset','push','_getTreeById','getValue','closeKdTree','string','NEW_EXCEL_FUNCTIONS','treeBuilder','MINUS','searchDependency','addFormulaDependency','message','_getUpdateTreeListAndMakeDependency','prefixToken','next','dirtyRanges','_executionInProgressListener$','notExecuteFormula','removeOtherFormulaDependency','_currentUnitId','9HSexxb','_traverse','generateRandomDependencyTreeId','_config','_xlfnPrefix','forEach','_hasNewExcelFunction','_createVirtualFDtree','executeAsync','_getAllDependencyJson','_apply','length','_dependencyRTreeCacheForAddressFunction','set','removeFormulaDependency','DEFAULT_INTERVAL_COUNT','ObjectMatrix','OPERATOR_TOKEN_SET','addOtherFormulaDependency','parseInt','5402620GCsHGm','DEFAULT_TOKEN_LET_FUNCTION_NAME','getOwnPropertyDescriptor','unitId','clearOtherFormulaDependency','_formulaDependencyTreeModel','getFeatureFormulaDependency','UniverLicensePlugin','forValue','node','dependencySheetName','checkAsyncNode','CURRENTLY_CALCULATING_ARRAY_FORMULA','removeFormulaDependencyByDefinedName','values','RTree','unshiftString','startsWith','IDLE','_handleLambdaForExprTree','setFormulaExecuteStage','setDependencyTreeModelData','Let\x20variable\x20name\x20\x22','_dependencyTreeCache','max','_checkAddBracketForMinus','openKdTree','getChildren','isCache','_getAllTreeList','addOtherFormulaDependencyMainData','33ICnLsr','setCurrent','realDeleteValue','hasOwnProperty','_generateExprTree','generate','START_DEPENDENCY_ARRAY_FORMULA','call','execute','setRuntimeOtherData','_formulaDependencyGenerator','_formulaData','CalculateFormulaService','DependencyManagerService','default','1eLsKpz','_astTreeBuilder','_handleTextNodeForExprTree','setCompletedFormulasCount','COLON','6954045QLTXRe','getOtherFormulaData','treeId','_getDependencyTreeParenIds','setRuntimeData','refTree','hasOtherFormulaDataMainData','markedAsNoFunctionsExecuted','_currentConfigService','_lexer','_getCurNodeTypeForExprTree','get','_convertDirtyRangesToUnitRange','_getTreeNode','min','getOtherFormulaDependency','Dependency\x20tree\x20not\x20found\x20for\x20treeId:','generateAstNode','endRow','_xlfn.','column','symbol','DEFAULT_TOKEN_LAMBDA_FUNCTION_NAME','inRangeData','5806705pIzFva','_otherFormulaData','VALUE','_initializeWithOverride','getFormulaDependency','_startFormulaDependencyTreeModel','LexerTreeBuilder','slice','from','setRuntimeFeatureCellData','setCompletedArrayFormulasCount','clearFeatureFormulaDependency','getDirtyData','FormulaDependencyTree','FormulaDependencyTreeType','953658ZsjvtI','_registerFormulas','LS_CONFIG_KEY','isReferenceString','FormulaDependencyGenerator','_getFirstCellOfRange','_calculateRunList','trim','\x22\x20is\x20duplicated.','SUFFIX_TOKEN_SET','ErrorType','isArray','clearArrayObjectCache','isDirty','DependencyManagerBaseService','_dependencyManagerService','getRuntimeState','_clearFunctionString','_getFeatureFormulaTree','_otherFormulaDataMainData','clear','toUpperCase','formulaId','getConfig','_xlpm.','FEATURE_FORMULA','value','size','refOffsetY','_executionCompleteListener$','getSheetFeatureLimit','setValue','_registerOtherFormulas','setAdded','_runtimeService'];_0xd274=function(){return _0x24363d;};return _0xd274();}Object[_0x18c1ab(0x23d)](exports,Symbol['toStringTag'],{'value':_0x18c1ab(0x160)});const a=require('@univerjs/engine-formula'),x=require('@univerjs-pro/license'),M=require('@univerjs/core');function _0x4755(_0x586167,_0x1b7eac){_0x586167=_0x586167-0x13b;const _0xd274df=_0xd274();let _0x4755d5=_0xd274df[_0x586167];return _0x4755d5;}class A extends a[_0x18c1ab(0x1f6)]{constructor(){const _0x43e86a=_0x18c1ab;super(...arguments),F(this,_0x43e86a(0x197),!0x1),F(this,_0x43e86a(0x227),new Set()),F(this,_0x43e86a(0x146),_0x43e86a(0x217)),F(this,_0x43e86a(0x195),_0x43e86a(0x1eb)),F(this,'_currentUnitId','');}['_resetPrefix'](){const _0x4582bc=_0x18c1ab;this[_0x4582bc(0x146)]=_0x4582bc(0x217),this[_0x4582bc(0x195)]=_0x4582bc(0x1eb);}[_0x18c1ab(0x150)](){const _0x5afc60=_0x18c1ab;this['_xlpmPrefix']='',this[_0x5afc60(0x195)]='';}[_0x18c1ab(0x164)](_0x38c31f,_0x45b8fe){const _0x58ebf1=_0x18c1ab,_0xc1fbbb=this[_0x58ebf1(0x184)](_0x38c31f,!0x1);if(!_0xc1fbbb||_0xc1fbbb===a[_0x58ebf1(0x209)]['VALUE']||Array['isArray'](_0xc1fbbb))return null;const _0x4d6c85=[];return this[_0x58ebf1(0x197)]=!0x1,this[_0x58ebf1(0x22f)](_0xc1fbbb,_0x4d6c85,_0x45b8fe),this[_0x58ebf1(0x197)]?'='+_0x4d6c85['join'](''):null;}['_generateNewFunctionString'](_0x34a908,_0x439cdf,_0x36e082){const _0x5b6136=_0x18c1ab,_0x27eec5=_0x34a908[_0x5b6136(0x13e)](),_0x39a17f=_0x27eec5['trim'](),_0x4f4aa2=_0x39a17f[_0x5b6136(0x214)](),_0x516a84=this[_0x5b6136(0x210)](_0x4f4aa2),_0x3d45d8=_0x36e082(_0x516a84);let _0x269e85=0x0;_0x27eec5===a[_0x5b6136(0x16f)]?_0x269e85=0x3:_0x27eec5===a[_0x5b6136(0x159)]?_0x269e85=0x4:_0x27eec5===a['DEFAULT_TOKEN_TYPE_LAMBDA_PARAMETER']?_0x269e85=0x5:a[_0x5b6136(0x183)]['has'](_0x516a84)?(_0x439cdf['push'](''+this[_0x5b6136(0x195)]+_0x39a17f),this['_hasNewExcelFunction']=!0x0):_0x4f4aa2===a[_0x5b6136(0x1ee)]?(_0x439cdf[_0x5b6136(0x17e)](''+this[_0x5b6136(0x195)]+_0x39a17f),this[_0x5b6136(0x197)]=!0x0,_0x269e85=0x2):_0x4f4aa2===a[_0x5b6136(0x1a6)]?(_0x439cdf[_0x5b6136(0x17e)](''+this[_0x5b6136(0x195)]+_0x39a17f),this[_0x5b6136(0x197)]=!0x0,_0x269e85=0x1):_0x4f4aa2===a[_0x5b6136(0x17c)]['COLON']?_0x269e85=0x8:a[_0x5b6136(0x208)][_0x5b6136(0x222)](_0x4f4aa2)?_0x269e85=0x7:_0x4f4aa2===a['prefixToken'][_0x5b6136(0x185)]?(this[_0x5b6136(0x1be)](_0x34a908)&&(_0x269e85=0x9),_0x439cdf['push'](_0x27eec5)):(_0x439cdf[_0x5b6136(0x17e)](_0x27eec5),_0x269e85=0xa),_0x3d45d8?(_0x269e85!==0x2&&_0x269e85!==0x1&&(_0x269e85=0x6),_0x439cdf[_0x5b6136(0x17e)]('(')):_0x269e85===0x9&&_0x439cdf[_0x5b6136(0x17e)]('(');const _0x3b25bd=_0x34a908['getChildren'](),_0x3019ac=_0x3b25bd[_0x5b6136(0x19c)];if(_0x269e85===0x2){const _0x54b0aa=_0x3b25bd[0x0];let _0x61abf2=0x0;_0x54b0aa instanceof a[_0x5b6136(0x223)]&&_0x54b0aa[_0x5b6136(0x13e)]()===a[_0x5b6136(0x240)]&&(_0x61abf2=0x1);for(let _0x10c643=_0x61abf2;_0x10c643<_0x3019ac-0x1;_0x10c643++){const _0x28cad8=_0x3b25bd[_0x10c643];if(_0x28cad8 instanceof a[_0x5b6136(0x223)]){const _0xfd3b9c=_0x28cad8[_0x5b6136(0x1c0)]()[0x0];typeof _0xfd3b9c==_0x5b6136(0x182)&&(this['_lambdaFunctionParameterSet'][_0x5b6136(0x222)](_0xfd3b9c)&&console[_0x5b6136(0x173)](_0x5b6136(0x147)+_0xfd3b9c+_0x5b6136(0x207)),this[_0x5b6136(0x227)]['add'](_0xfd3b9c),_0x439cdf[_0x5b6136(0x17e)](''+this[_0x5b6136(0x146)]+_0xfd3b9c),this[_0x5b6136(0x197)]=!0x0);}_0x439cdf[_0x5b6136(0x17e)](',');}this['_handleNewFunctionChild'](_0x3b25bd[_0x3019ac-0x1],_0x439cdf,_0x36e082),_0x61abf2===0x1&&(_0x439cdf['push'](')'),_0x439cdf['push']('('),this['_generateNewFunctionString'](_0x54b0aa,_0x439cdf,_0x36e082)),_0x439cdf[_0x5b6136(0x17e)](')');return;}else{if(_0x269e85===0x1){for(let _0x3ad691=0x0;_0x3ad691<_0x3019ac-0x1;_0x3ad691++){const _0x1a5430=_0x3b25bd[_0x3ad691];if(_0x1a5430 instanceof a[_0x5b6136(0x223)]&&_0x3ad691%0x2===0x0){const _0x372805=_0x1a5430[_0x5b6136(0x1c0)]()[0x0];if(typeof _0x372805==_0x5b6136(0x182)){this[_0x5b6136(0x227)][_0x5b6136(0x222)](_0x372805)&&console['error'](_0x5b6136(0x1bb)+_0x372805+_0x5b6136(0x207)),this[_0x5b6136(0x227)][_0x5b6136(0x14d)](_0x372805),_0x439cdf[_0x5b6136(0x17e)](''+this[_0x5b6136(0x146)]+_0x372805),this[_0x5b6136(0x197)]=!0x0,_0x439cdf[_0x5b6136(0x17e)](',');continue;}}if(this[_0x5b6136(0x161)](_0x1a5430,_0x439cdf,_0x36e082),_0x1a5430 instanceof a[_0x5b6136(0x223)]){const _0x242b91=_0x3b25bd[_0x3ad691+0x1];_0x242b91&&_0x242b91 instanceof a[_0x5b6136(0x223)]&&_0x439cdf[_0x5b6136(0x17e)](',');}}this[_0x5b6136(0x161)](_0x3b25bd[_0x3019ac-0x1],_0x439cdf,_0x36e082),_0x439cdf['push'](')');return;}else{if(_0x269e85===0x8){const _0x45a62b=_0x3b25bd[0x0],_0x3f40f7=_0x3b25bd[0x1];this[_0x5b6136(0x161)](_0x45a62b,_0x439cdf,_0x36e082),_0x439cdf[_0x5b6136(0x17e)](_0x27eec5),this[_0x5b6136(0x161)](_0x3f40f7,_0x439cdf,_0x36e082);return;}}}for(let _0x421e93=0x0;_0x421e93<_0x3019ac;_0x421e93++){const _0x2b40f9=_0x3b25bd[_0x421e93];if(this[_0x5b6136(0x161)](_0x2b40f9,_0x439cdf,_0x36e082),_0x2b40f9 instanceof a['LexerNode']){const _0x3096f5=_0x3b25bd[_0x421e93+0x1];_0x3096f5&&_0x3096f5 instanceof a[_0x5b6136(0x223)]&&_0x439cdf[_0x5b6136(0x17e)](',');}}_0x269e85===0x7&&_0x439cdf[_0x5b6136(0x17e)](_0x27eec5),(_0x3d45d8||_0x269e85===0x9)&&_0x439cdf['push'](')');}[_0x18c1ab(0x161)](_0x3c2528,_0x3a6f66,_0x3226fc){const _0x3c137d=_0x18c1ab;_0x3c2528 instanceof a['LexerNode']?this[_0x3c137d(0x22f)](_0x3c2528,_0x3a6f66,_0x3226fc):this[_0x3c137d(0x227)]['has'](_0x3c2528)?(_0x3a6f66[_0x3c137d(0x17e)](''+this[_0x3c137d(0x146)]+_0x3c2528),this[_0x3c137d(0x197)]=!0x0):_0x3a6f66[_0x3c137d(0x17e)](_0x3c2528);}[_0x18c1ab(0x210)](_0x384ebd){const _0x42e8b4=_0x18c1ab;let _0x3b54a4=_0x384ebd[_0x42e8b4(0x206)]();if(!_0x3b54a4)return _0x3b54a4;const _0x405a10=_0x3b54a4[0x0];if((_0x405a10===a[_0x42e8b4(0x18a)]['AT']||_0x405a10===a['prefixToken'][_0x42e8b4(0x185)]||_0x405a10===a['prefixToken'][_0x42e8b4(0x16d)])&&(_0x3b54a4=_0x3b54a4[_0x42e8b4(0x1f7)](0x1)),!_0x3b54a4)return _0x3b54a4;const _0x424810=_0x3b54a4[_0x3b54a4[_0x42e8b4(0x19c)]-0x1];return a['SUFFIX_TOKEN_SET'][_0x42e8b4(0x222)](_0x424810)&&(_0x3b54a4=_0x3b54a4['slice'](0x0,-0x1)),_0x3b54a4;}[_0x18c1ab(0x1be)](_0x317d75){const _0x5400a4=_0x18c1ab,_0x44a26f=_0x317d75[_0x5400a4(0x1c0)]()[0x0];if(!_0x44a26f||!(_0x44a26f instanceof a['LexerNode'])||_0x317d75[_0x5400a4(0x1c0)]()[_0x5400a4(0x19c)]>0x1)return!0x1;const _0x56df38=_0x44a26f['getChildren'](),_0x16d662=_0x56df38[_0x5400a4(0x19c)];if(_0x16d662===0x1)return!0x1;for(let _0x46e3db=0x0;_0x46e3db<_0x16d662;_0x46e3db++){const _0x572f3b=_0x56df38[_0x46e3db];if(!(_0x572f3b instanceof a[_0x5400a4(0x223)])&&a[_0x5400a4(0x1a2)][_0x5400a4(0x222)](_0x572f3b))return!0x0;}return!0x1;}[_0x18c1ab(0x158)](_0x1b5975,_0x9ff906,_0x8213e2,_0x2a6a9e,_0x26dd32){const _0x2336cc=_0x18c1ab,_0xb889c=this[_0x2336cc(0x184)](_0x1b5975,!0x1);if(!_0xb889c||_0xb889c===a[_0x2336cc(0x209)][_0x2336cc(0x1f2)]||Array[_0x2336cc(0x20a)](_0xb889c))return null;this[_0x2336cc(0x150)](),this['_currentUnitId']=_0x9ff906;const _0x395afd=this[_0x2336cc(0x1c8)](_0xb889c,_0x8213e2,_0x2a6a9e,_0x26dd32);return this['_currentUnitId']='',this[_0x2336cc(0x238)](),_0x395afd;}[_0x18c1ab(0x1c8)](_0x4ad4ba,_0x294b09,_0x1853e7,_0x18e5ea){const _0x260ac7=_0x18c1ab,_0x14d1b6={'value':'','children':[],'startIndex':0x0};let _0x8834bb=_0x4ad4ba;if(_0x8834bb instanceof a[_0x260ac7(0x223)]&&(_0x8834bb['getToken']()===a[_0x260ac7(0x16f)]||_0x8834bb[_0x260ac7(0x13e)]()===a[_0x260ac7(0x159)])&&_0x8834bb[_0x260ac7(0x1c0)]()[_0x260ac7(0x19c)]===0x1&&(_0x8834bb=_0x8834bb[_0x260ac7(0x1c0)]()[0x0]),!(_0x8834bb instanceof a[_0x260ac7(0x223)]))return this[_0x260ac7(0x1d5)](_0x8834bb,_0x1853e7,_0x18e5ea);const _0x22b227=_0x8834bb[_0x260ac7(0x1c0)](),_0x2d4dfc=_0x22b227['length'],_0x52323d=[];this[_0x260ac7(0x22f)](_0x8834bb,_0x52323d,_0x294b09),_0x14d1b6[_0x260ac7(0x219)]=_0x52323d[_0x260ac7(0x16a)](''),_0x14d1b6[_0x260ac7(0x234)]=_0x8834bb['getStartIndex']();const _0x168d96=this[_0x260ac7(0x1e2)](_0x8834bb);if(_0x168d96===0x2){const _0x424d7c=_0x22b227[0x0];if(_0x424d7c instanceof a['LexerNode']){if(_0x424d7c['getToken']()[_0x260ac7(0x206)]()!==a[_0x260ac7(0x240)])return _0x14d1b6;this[_0x260ac7(0x1b8)](_0x424d7c,_0x14d1b6,_0x294b09,_0x1853e7,_0x18e5ea);}return _0x14d1b6;}else{if(_0x168d96===0x1){for(let _0x51f4da=0x0;_0x51f4da<_0x2d4dfc-0x1;_0x51f4da++){const _0xadb022=_0x22b227[_0x51f4da];if(_0xadb022 instanceof a[_0x260ac7(0x223)]&&_0x51f4da%0x2===0x1){const _0x2d627d=_0xadb022[_0x260ac7(0x1c0)]();if(_0x2d627d['length']===0x1&&!(_0x2d627d[0x0]instanceof a[_0x260ac7(0x223)]))continue;const _0x1bda2c=this[_0x260ac7(0x1c8)](_0xadb022,_0x294b09,_0x1853e7,_0x18e5ea);_0x1bda2c&&_0x14d1b6[_0x260ac7(0x22e)][_0x260ac7(0x17e)](_0x1bda2c);}}return _0x14d1b6;}else{if(_0x168d96===0x8){const _0x3461d0=_0x22b227[0x0];if(_0x3461d0 instanceof a[_0x260ac7(0x223)]){const _0x34dc46=_0x3461d0[_0x260ac7(0x1c0)]()[0x0];_0x34dc46 instanceof a[_0x260ac7(0x223)]&&(_0x14d1b6[_0x260ac7(0x234)]=_0x34dc46[_0x260ac7(0x13f)]());}if(this[_0x260ac7(0x141)](_0x8834bb))return _0x14d1b6;}else{if(_0x168d96===0x7){const _0x22c7fd=_0x22b227[0x0];if(_0x22c7fd instanceof a[_0x260ac7(0x223)]){const _0x5d3f63=_0x22c7fd['getChildren']()[0x0];_0x5d3f63 instanceof a[_0x260ac7(0x223)]&&(_0x14d1b6[_0x260ac7(0x234)]=_0x5d3f63['getStartIndex']());}}}}}return this[_0x260ac7(0x236)](_0x22b227,_0x168d96,_0x14d1b6,_0x294b09,_0x1853e7,_0x18e5ea),_0x14d1b6;}[_0x18c1ab(0x236)](_0x107cca,_0x25a4bd,_0x30f79c,_0x3a48aa,_0x4c07e5,_0x32c612){const _0x5164c8=_0x18c1ab;for(let _0x561c75=0x0;_0x561c75<_0x107cca[_0x5164c8(0x19c)];_0x561c75++){let _0x21dda2=_0x107cca[_0x561c75];if(!(_0x21dda2 instanceof a[_0x5164c8(0x223)])){const _0x21b3c9=this[_0x5164c8(0x1d5)](_0x21dda2,_0x4c07e5,_0x32c612);_0x21b3c9&&_0x30f79c[_0x5164c8(0x22e)][_0x5164c8(0x17e)](_0x21b3c9);continue;}const _0x2adc4d=_0x21dda2[_0x5164c8(0x1c0)]();if(_0x2adc4d[_0x5164c8(0x19c)]===0x1&&!(_0x2adc4d[0x0]instanceof a[_0x5164c8(0x223)])){const _0x3fe0a9=_0x2adc4d[0x0];if(!_0x4c07e5(this[_0x5164c8(0x190)],_0x3fe0a9)&&!this[_0x5164c8(0x239)](_0x3fe0a9,_0x32c612)&&!a[_0x5164c8(0x202)](_0x3fe0a9))continue;}if(_0x25a4bd===0x8){const _0xb1e47=_0x2adc4d[0x0];if(_0xb1e47 instanceof a[_0x5164c8(0x223)]){const _0x3a3a86=_0xb1e47[_0x5164c8(0x13e)]()['trim']();if(a[_0x5164c8(0x202)](_0x3a3a86))continue;_0x21dda2=_0xb1e47;}}const _0x5e06bd=this[_0x5164c8(0x1c8)](_0x21dda2,_0x3a48aa,_0x4c07e5,_0x32c612);_0x5e06bd&&_0x30f79c[_0x5164c8(0x22e)][_0x5164c8(0x17e)](_0x5e06bd);}}[_0x18c1ab(0x141)](_0x433dc7){const _0x517048=_0x18c1ab,_0x47cdc6=_0x433dc7[_0x517048(0x1c0)]();if(_0x47cdc6['length']<0x2)return!0x1;const _0x125d85=_0x47cdc6[0x0],_0x1ad63c=_0x47cdc6[0x1];if(!(_0x125d85 instanceof a[_0x517048(0x223)])||!(_0x1ad63c instanceof a[_0x517048(0x223)]))return!0x1;const _0x3e3d02=_0x125d85[_0x517048(0x1c0)]()[0x0],_0x4bfad7=_0x1ad63c[_0x517048(0x1c0)]()[0x0];if(!(_0x3e3d02 instanceof a[_0x517048(0x223)])||!(_0x4bfad7 instanceof a[_0x517048(0x223)]))return!0x1;const _0x339b04=_0x3e3d02[_0x517048(0x13e)]()[_0x517048(0x206)](),_0x48372d=_0x4bfad7[_0x517048(0x13e)]()[_0x517048(0x206)]();return!!a[_0x517048(0x202)](''+_0x339b04+a[_0x517048(0x17c)]['COLON']+_0x48372d);}[_0x18c1ab(0x1d5)](_0x19b233,_0x3990f3,_0x3c75b3){const _0x2dc6f7=_0x18c1ab,_0x4a7370=_0x19b233[_0x2dc6f7(0x206)]();return _0x4a7370[_0x2dc6f7(0x1b6)]('{')&&_0x4a7370['endsWith']('}')||_0x3990f3(this['_currentUnitId'],_0x4a7370)||this['_getTableNameFromStructuredRef'](_0x4a7370,_0x3c75b3)||a[_0x2dc6f7(0x202)](_0x4a7370)?{'value':_0x4a7370,'children':[],'startIndex':-0x1}:null;}[_0x18c1ab(0x239)](_0x29f92b,_0x5c8d86){const _0x5a041f=_0x18c1ab,{tableName:_0x584aab}=a['splitTableStructuredRef'](_0x29f92b);return _0x5c8d86(this[_0x5a041f(0x190)],_0x584aab)?_0x584aab:null;}['_handleLambdaForExprTree'](_0x52e9a,_0x1b9b6b,_0x1f15a9,_0x5d1234,_0x17b383){const _0x31d98a=_0x18c1ab,_0x13791a=_0x52e9a[_0x31d98a(0x1c0)]();for(let _0xb47438=0x0;_0xb47438<_0x13791a[_0x31d98a(0x19c)];_0xb47438++){const _0x1e1478=_0x13791a[_0xb47438];if(!(_0x1e1478 instanceof a['LexerNode']))continue;const _0x3fea4b=_0x1e1478[_0x31d98a(0x1c0)]();if(_0x3fea4b[_0x31d98a(0x19c)]===0x1&&!(_0x3fea4b[0x0]instanceof a['LexerNode']))continue;const _0x1af678=this[_0x31d98a(0x1c8)](_0x1e1478,_0x1f15a9,_0x5d1234,_0x17b383);_0x1af678&&_0x1b9b6b[_0x31d98a(0x22e)]['push'](_0x1af678);}}[_0x18c1ab(0x1e2)](_0x6b335a){const _0x84d03d=_0x18c1ab,_0x36ac87=_0x6b335a[_0x84d03d(0x13e)](),_0x5f1999=_0x36ac87[_0x84d03d(0x206)]()[_0x84d03d(0x214)]();let _0x224a01=0x0;return _0x36ac87===a[_0x84d03d(0x16f)]?_0x224a01=0x3:_0x36ac87===a[_0x84d03d(0x159)]?_0x224a01=0x4:_0x36ac87===a[_0x84d03d(0x240)]?_0x224a01=0x5:_0x5f1999===a[_0x84d03d(0x1ee)]?_0x224a01=0x2:_0x5f1999===a['DEFAULT_TOKEN_LET_FUNCTION_NAME']?_0x224a01=0x1:_0x5f1999===a['matchToken'][_0x84d03d(0x1d7)]?_0x224a01=0x8:a['SUFFIX_TOKEN_SET'][_0x84d03d(0x222)](_0x5f1999)?_0x224a01=0x7:_0x5f1999===a[_0x84d03d(0x18a)][_0x84d03d(0x185)]?this[_0x84d03d(0x1be)](_0x6b335a)&&(_0x224a01=0x9):_0x224a01=0xa,_0x224a01;}}const B={0x0:'Y',0x1:'O',0x2:'x',0x3:'r',0x4:'m',0x5:'e',0x6:'c',0x7:'M',0x8:'p',0x9:'R','k':'0','P':'1','G':'2','T':'3','A':'4','S':'5','p':'6','a':'7','g':'8','u':'9','N':'a','J':'b','O':'d','d':'f','y':'g','L':'h','h':'i','r':'j','I':'k','c':'l','V':'n','Q':'o','E':'q','n':'s','v':'t','M':'u','R':'v','l':'w','Z':'y','j':'z','W':'A','Y':'B','b':'C','F':'D','z':'E','B':'F','x':'G','H':'H','U':'I','D':'J','i':'K','f':'L','e':'N','\x20':'P','o':'Q','s':'S','K':'T','C':'U','X':'V','m':'W','w':'X','q':'Z','t':'\x20'},K=_0x18c1ab(0x17b);class Y extends a[_0x18c1ab(0x203)]{constructor(){const _0x28c1ff=_0x18c1ab;super(...arguments),F(this,_0x28c1ff(0x1bc),new Map());}['dispose'](){const _0x5c57dc=_0x18c1ab;super['dispose'](),this[_0x5c57dc(0x1bc)][_0x5c57dc(0x213)]();}async[_0x18c1ab(0x1c9)](_0x59e967=!0x1){const _0x593ce3=_0x18c1ab;this[_0x593ce3(0x144)]();const _0x379d04=this[_0x593ce3(0x1e0)]['getFormulaData'](),_0x131be0=this['_otherFormulaManagerService'][_0x593ce3(0x1d9)](),_0x5e6a55=this['_currentConfigService'][_0x593ce3(0x232)]();_0x5e6a55!=null&&Object[_0x593ce3(0x15e)](_0x5e6a55)[_0x593ce3(0x196)](_0x10dfb0=>{const _0x55aeb5=_0x593ce3;_0x10dfb0!=null&&Object[_0x55aeb5(0x15e)](_0x5e6a55[_0x10dfb0])[_0x55aeb5(0x196)](_0x197a1d=>{const _0x37a86e=_0x55aeb5;_0x197a1d!=null&&(this[_0x37a86e(0x20e)][_0x37a86e(0x1a9)](_0x10dfb0,_0x197a1d),this[_0x37a86e(0x20e)]['clearFeatureFormulaDependency'](_0x10dfb0,_0x197a1d),this[_0x37a86e(0x20e)][_0x37a86e(0x140)](_0x10dfb0,_0x197a1d));});});const _0x218c8e=this['_currentConfigService']['getUnitData']();await this['_generateTreeList'](_0x379d04,_0x131be0,_0x218c8e),this['_dependencyManagerService'][_0x593ce3(0x1bf)]();const _0x58a3c1=this[_0x593ce3(0x189)](),_0x22f0c0=this['_calculateRunList'](_0x58a3c1);return this[_0x593ce3(0x15b)](_0x22f0c0)&&this[_0x593ce3(0x221)][_0x593ce3(0x157)](),_0x59e967&&this[_0x593ce3(0x221)][_0x593ce3(0x1ba)](this[_0x593ce3(0x19a)](Array[_0x593ce3(0x1f8)](this['_dependencyTreeCache'][_0x593ce3(0x1b3)]()))),this[_0x593ce3(0x1bc)][_0x593ce3(0x213)](),this[_0x593ce3(0x19d)][_0x593ce3(0x213)](),this['_dependencyManagerService'][_0x593ce3(0x181)](),this[_0x593ce3(0x221)][_0x593ce3(0x20b)](),Promise['resolve'](_0x22f0c0);}[_0x18c1ab(0x14e)](_0x2b2bf2,_0x36bd03){const _0x4b9989=_0x18c1ab,_0x48e5e1=[_0x2b2bf2];for(;_0x48e5e1[_0x4b9989(0x19c)]>0x0;){const _0x2133cc=_0x48e5e1[_0x48e5e1['length']-0x1];if((_0x36bd03[_0x4b9989(0x1e3)](_0x2133cc)||0x0)===0x0){_0x36bd03[_0x4b9989(0x19e)](_0x2133cc,0x1);const _0x1366a3=this[_0x4b9989(0x1bc)][_0x4b9989(0x1e3)](_0x2133cc);if(_0x1366a3==null){_0x36bd03[_0x4b9989(0x19e)](_0x2133cc,0x2),_0x48e5e1[_0x4b9989(0x152)]();continue;}const _0x5e8345=this['_dependencyManagerService'][_0x4b9989(0x186)](_0x1366a3[_0x4b9989(0x226)]());for(const _0x11fc0f of _0x5e8345){const _0x596cb=_0x36bd03['get'](_0x11fc0f)||0x0;if(_0x596cb===0x1)return!0x0;_0x596cb===0x0&&_0x48e5e1[_0x4b9989(0x17e)](_0x11fc0f);}}else _0x36bd03[_0x4b9989(0x19e)](_0x2133cc,0x2),_0x48e5e1[_0x4b9989(0x152)]();}return!0x1;}[_0x18c1ab(0x15b)](_0x57f716){const _0x180ee1=_0x18c1ab,_0x5656f0=new Map();for(const _0x288b8a of _0x57f716)if(!_0x5656f0[_0x180ee1(0x222)](_0x288b8a[_0x180ee1(0x1da)])&&this[_0x180ee1(0x14e)](_0x288b8a[_0x180ee1(0x1da)],_0x5656f0))return!0x0;return _0x5656f0[_0x180ee1(0x213)](),!0x1;}[_0x18c1ab(0x211)](_0x4e4ee2,_0x588ab7,_0x22495d){const _0x599e72=_0x18c1ab,{unitId:_0x5c6d02,subUnitId:_0x4fd6b4,dependencyRanges:_0x39ee99,getDirtyData:_0x38ac0e}=_0x22495d,_0x1b92f3=_0x588ab7||a[_0x599e72(0x193)](this[_0x599e72(0x20e)]),_0x99b9e6=new a[(_0x599e72(0x1fd))](_0x1b92f3);_0x99b9e6['unitId']=_0x5c6d02,_0x99b9e6[_0x599e72(0x13c)]=_0x4fd6b4,_0x99b9e6['rangeList']=_0x39ee99,_0x99b9e6[_0x599e72(0x1fc)]=_0x38ac0e;const _0xceb80d=_0x38ac0e(this[_0x599e72(0x1e0)][_0x599e72(0x1fc)](),this[_0x599e72(0x221)]['getAllRuntimeData']()),_0x48c6b8=this[_0x599e72(0x1e4)](_0xceb80d[_0x599e72(0x18c)]);return _0x99b9e6[_0x599e72(0x168)]=_0x48c6b8,_0x99b9e6[_0x599e72(0x163)]=_0x4e4ee2,_0x99b9e6['type']=a[_0x599e72(0x1fe)][_0x599e72(0x218)],this[_0x599e72(0x20e)][_0x599e72(0x228)](_0x5c6d02,_0x4fd6b4,_0x4e4ee2,_0x99b9e6),this[_0x599e72(0x1bc)][_0x599e72(0x19e)](_0x99b9e6[_0x599e72(0x1da)],_0x99b9e6),this['_dependencyManagerService'][_0x599e72(0x1ab)](_0x22495d[_0x599e72(0x1a8)],_0x22495d[_0x599e72(0x13c)],_0x4e4ee2)&&(_0x99b9e6[_0x599e72(0x1c1)]=!0x0),_0x99b9e6;}[_0x18c1ab(0x21f)](_0x7e80ec,_0x816a47,_0x504efa){const _0x2bcb07=_0x18c1ab;var _0x36b6da;for(const _0xefadf8 of _0x816a47){const _0x5bd70e=_0x7e80ec[_0xefadf8];if(_0x5bd70e==null)continue;const _0x33de5c=Object[_0x2bcb07(0x15e)](_0x5bd70e);for(const _0x2d1a8e of _0x33de5c){const _0x1b4e98=_0x5bd70e[_0x2d1a8e];if(_0x1b4e98==null)continue;const _0x36116d=Object[_0x2bcb07(0x15e)](_0x1b4e98);for(const _0x57306a of _0x36116d){const _0x3badbd=this[_0x2bcb07(0x20e)][_0x2bcb07(0x1de)](_0x57306a),_0xeac2f4=_0x1b4e98[_0x57306a],{f:_0x1d6cff,ranges:_0x1a0211}=_0xeac2f4;let _0x462686=!0x1;_0x3badbd&&(_0x462686=!0x0);const {firstRow:_0xdce700,firstColumn:_0x474c01}=this[_0x2bcb07(0x204)](_0x1a0211),_0x3f0585=this[_0x2bcb07(0x20e)][_0x2bcb07(0x1e7)](_0xefadf8,_0x2d1a8e,_0x57306a),_0x241360=(_0x36b6da=_0x3f0585==null?void 0x0:_0x3f0585[_0x2bcb07(0x180)](0x0,0x0))!=null?_0x36b6da:a[_0x2bcb07(0x193)](this[_0x2bcb07(0x20e)]),_0x3f69ba=new a['FormulaDependencyTree'](_0x241360);for(let _0x1f4137=0x0;_0x1f4137<_0x1a0211[_0x2bcb07(0x19c)];_0x1f4137++){const _0x23fe76=_0x1a0211[_0x1f4137],{startRow:_0x110554,startColumn:_0x5af2aa,endRow:_0x54f6e7,endColumn:_0x492720}=_0x23fe76;for(let _0x57186e=_0x110554;_0x57186e<=_0x54f6e7;_0x57186e++)for(let _0x578398=_0x5af2aa;_0x578398<=_0x492720;_0x578398++){const _0x25bed3=_0x578398-_0x474c01,_0x575b02=_0x57186e-_0xdce700;if(_0x25bed3===0x0&&_0x575b02===0x0){_0x3f69ba['formula']=_0x1d6cff,_0x3f69ba[_0x2bcb07(0x1a8)]=_0xefadf8,_0x3f69ba[_0x2bcb07(0x13c)]=_0x2d1a8e,_0x3f69ba[_0x2bcb07(0x215)]=_0x57306a,_0x3f69ba[_0x2bcb07(0x23b)]=a['FormulaDependencyTreeType']['OTHER_FORMULA'],_0x3f69ba['isCache']=_0x462686,_0x504efa['push'](_0x3f69ba),this[_0x2bcb07(0x1bc)]['set'](_0x3f69ba[_0x2bcb07(0x1da)],_0x3f69ba),this['_dependencyManagerService'][_0x2bcb07(0x1a3)](_0xefadf8,_0x2d1a8e,_0x57306a,_0x3f69ba),this[_0x2bcb07(0x20e)]['addFormulaDependencyByDefinedName'](_0x3f69ba);continue;}const _0x5279bb=new a[(_0x2bcb07(0x15d))]();_0x5279bb['treeId']=(_0x3f0585==null?void 0x0:_0x3f0585[_0x2bcb07(0x180)](_0x25bed3,_0x575b02))||a[_0x2bcb07(0x193)](this[_0x2bcb07(0x20e)]),_0x5279bb[_0x2bcb07(0x1dd)]=_0x3f69ba,_0x5279bb['refOffsetX']=_0x25bed3,_0x5279bb['refOffsetY']=_0x575b02,_0x5279bb[_0x2bcb07(0x1c1)]=_0x462686,_0x5279bb[_0x2bcb07(0x23b)]=a[_0x2bcb07(0x1fe)][_0x2bcb07(0x145)],this['_dependencyManagerService']['addOtherFormulaDependency'](_0xefadf8,_0x2d1a8e,_0x57306a,_0x5279bb),this[_0x2bcb07(0x20e)]['addFormulaDependencyByDefinedName'](_0x5279bb),_0x504efa[_0x2bcb07(0x17e)](_0x5279bb),this[_0x2bcb07(0x1bc)][_0x2bcb07(0x19e)](_0x5279bb[_0x2bcb07(0x1da)],_0x5279bb);}}this['_dependencyManagerService'][_0x2bcb07(0x1c3)](_0x57306a);}}}}[_0x18c1ab(0x200)](_0x3e1f6b,_0x29a8b3,_0x4205d2,_0x36050c){const _0x18fc6c=_0x18c1ab;for(const _0x1d2393 of _0x3e1f6b){const _0x509c85=_0x29a8b3[_0x1d2393];if(_0x509c85==null)continue;const _0x3427c6=Object['keys'](_0x509c85);for(const _0x194781 of _0x3427c6){const _0x48bb87=new M[(_0x18fc6c(0x1a1))](_0x509c85[_0x194781]||{}),_0xfbae06=new Map();_0x48bb87[_0x18fc6c(0x1ad)]((_0x370fcd,_0x238b07,_0x430a62)=>{const _0x229ac2=_0x18fc6c;if(_0x430a62==null)return!0x0;const {x:_0x94fa7d=0x0,y:_0x668e1d=0x0,si:_0x5f0705}=_0x430a62;if(!(_0x94fa7d===0x0&&_0x668e1d===0x0&&_0x5f0705!=null))return!0x0;const _0x53e719=this['_createFDtree'](_0x1d2393,_0x194781,_0x370fcd,_0x238b07,_0x4205d2,_0x430a62),_0x208037=this['_dependencyManagerService'][_0x229ac2(0x1f4)](_0x1d2393,_0x194781,_0x370fcd,_0x238b07);_0x208037!=null?_0x53e719[_0x229ac2(0x1da)]=_0x208037:(this[_0x229ac2(0x20e)]['addFormulaDependency'](_0x1d2393,_0x194781,_0x370fcd,_0x238b07,_0x53e719),this[_0x229ac2(0x20e)][_0x229ac2(0x225)](_0x53e719)),_0xfbae06[_0x229ac2(0x19e)](_0x5f0705,_0x53e719),_0x36050c[_0x229ac2(0x17e)](_0x53e719),this[_0x229ac2(0x1bc)][_0x229ac2(0x19e)](_0x53e719[_0x229ac2(0x1da)],_0x53e719);}),_0x48bb87[_0x18fc6c(0x1ad)]((_0xef7504,_0xd3c8a4,_0x195677)=>{const _0x1a7bc0=_0x18fc6c;if(_0x195677==null)return!0x0;const {x:_0x533785=0x0,y:_0x3a70d5=0x0,si:_0x162751}=_0x195677;if(_0x533785===0x0&&_0x3a70d5===0x0&&_0x162751!=null)return!0x0;let _0x50a872;if(_0x162751&&_0xfbae06[_0x1a7bc0(0x222)](_0x162751)){const _0x25da71=_0xfbae06[_0x1a7bc0(0x1e3)](_0x162751);_0x50a872=this[_0x1a7bc0(0x198)](_0x25da71,_0x195677);}else _0x50a872=this[_0x1a7bc0(0x14b)](_0x1d2393,_0x194781,_0xef7504,_0xd3c8a4,_0x4205d2,_0x195677);const _0x1ba170=this[_0x1a7bc0(0x20e)]['getFormulaDependency'](_0x1d2393,_0x194781,_0xef7504,_0xd3c8a4);_0x1ba170!=null?_0x50a872['treeId']=_0x1ba170:(this[_0x1a7bc0(0x20e)][_0x1a7bc0(0x187)](_0x1d2393,_0x194781,_0xef7504,_0xd3c8a4,_0x50a872),this[_0x1a7bc0(0x20e)][_0x1a7bc0(0x225)](_0x50a872)),_0x36050c[_0x1a7bc0(0x17e)](_0x50a872),this[_0x1a7bc0(0x1bc)]['set'](_0x50a872[_0x1a7bc0(0x1da)],_0x50a872);}),_0xfbae06['clear']();}}}[_0x18c1ab(0x14b)](_0x4b9005,_0x1b6c2a,_0x167cdb,_0x1553d8,_0x19f105,_0x218a54){const _0xc97ea0=_0x18c1ab,{f:_0x1ca708,x:_0x756b80=0x0,y:_0x514418=0x0}=_0x218a54,_0x4ecb41=new a['FormulaDependencyTree'](a[_0xc97ea0(0x193)](this[_0xc97ea0(0x20e)])),_0x536eab=_0x19f105[_0x4b9005][_0x1b6c2a];return _0x4ecb41[_0xc97ea0(0x22a)]=_0x1ca708,_0x4ecb41[_0xc97ea0(0x1a8)]=_0x4b9005,_0x4ecb41[_0xc97ea0(0x13c)]=_0x1b6c2a,_0x4ecb41[_0xc97ea0(0x149)]=_0x167cdb,_0x4ecb41[_0xc97ea0(0x1ec)]=_0x1553d8,_0x4ecb41[_0xc97ea0(0x15f)]=_0x536eab[_0xc97ea0(0x15f)],_0x4ecb41[_0xc97ea0(0x174)]=_0x536eab['columnCount'],_0x4ecb41;}[_0x18c1ab(0x189)](){const _0x22a137=_0x18c1ab,_0x1787dc=[],_0xe2ac2a=new Set(),_0x1d604f=this[_0x22a137(0x1e0)][_0x22a137(0x142)](),_0x4704d5=this[_0x22a137(0x1e0)][_0x22a137(0x230)](),_0x4b5271=this[_0x22a137(0x20e)][_0x22a137(0x186)](_0x4704d5),_0x54d219=this['_dependencyRTreeCacheForAddressFunction'][_0x22a137(0x14f)](_0x4704d5);for(const _0x23e618 of _0x54d219)_0x4b5271[_0x22a137(0x14d)](_0x23e618);for(const [_0x104335,_0x36b11d]of this['_dependencyTreeCache'])(_0x1d604f||_0x36b11d[_0x22a137(0x20c)]||_0x36b11d[_0x22a137(0x1af)](this[_0x22a137(0x1e0)]['getDirtyNameMap']())||_0x4b5271[_0x22a137(0x222)](_0x104335)&&!_0x36b11d[_0x22a137(0x231)](this[_0x22a137(0x1e0)]['getExcludedRange']()))&&!_0xe2ac2a[_0x22a137(0x222)](_0x104335)&&(_0x1787dc['push'](_0x36b11d),_0xe2ac2a[_0x22a137(0x14d)](_0x104335));for(const [_0x524884,_0x152848]of this[_0x22a137(0x1bc)])_0x152848['isVirtual']||(_0x152848[_0x22a137(0x23a)][_0x22a137(0x19c)]=0x0);return _0x1787dc;}[_0x18c1ab(0x17f)](_0x3b637d){const _0x2fbfcd=_0x18c1ab;return this['_dependencyTreeCache'][_0x2fbfcd(0x1e3)](_0x3b637d);}[_0x18c1ab(0x1e5)](_0x4ff5ad){const _0xeed79c=_0x18c1ab;return a[_0xeed79c(0x1e9)](_0x4ff5ad[_0xeed79c(0x1a8)],_0x4ff5ad[_0xeed79c(0x22a)],this[_0xeed79c(0x1e1)],this[_0xeed79c(0x1d4)],this[_0xeed79c(0x1e0)]);}*[_0x18c1ab(0x192)](_0x2e0c7b,_0x380b52){const _0x1e6612=_0x18c1ab,_0x221de2=_0x2e0c7b,_0x351ced=new Set();for(;_0x221de2[_0x1e6612(0x19c)]>0x0;){const _0x470053=_0x221de2[_0x1e6612(0x152)]();if(_0x351ced[_0x1e6612(0x213)](),_0x470053===void 0x0||_0x470053['isSkip']())continue;if(_0x470053[_0x1e6612(0x22b)]()){yield _0x470053,_0x470053[_0x1e6612(0x16c)](),_0x380b52[_0x1e6612(0x14d)](_0x470053[_0x1e6612(0x1da)]);continue;}const _0x4a1f66=this['_dependencyManagerService'][_0x1e6612(0x186)](_0x470053['toRTreeItem'](),_0x380b52),_0x5b8f24=this[_0x1e6612(0x19d)][_0x1e6612(0x14f)](_0x470053[_0x1e6612(0x226)](),_0x380b52);for(const _0x22adef of _0x5b8f24)_0x4a1f66[_0x1e6612(0x14d)](_0x22adef);for(const _0x5ae3df of _0x4a1f66){const _0x40bb9b=this[_0x1e6612(0x1bc)][_0x1e6612(0x1e3)](_0x5ae3df);if(!_0x40bb9b){console['error'](_0x1e6612(0x1e8),_0x5ae3df);continue;}_0x40bb9b[_0x1e6612(0x22b)]()||_0x470053['isSkip']()||_0x351ced[_0x1e6612(0x14d)](_0x40bb9b);}if(_0x4a1f66['clear'](),_0x351ced['size']===0x0)yield _0x470053,_0x470053['setSkip'](),_0x380b52['add'](_0x470053['treeId']);else{_0x470053[_0x1e6612(0x220)](),_0x221de2[_0x1e6612(0x17e)](_0x470053);for(const _0x339a77 of _0x351ced)_0x221de2['push'](_0x339a77);}}_0x221de2[_0x1e6612(0x19c)]=0x0,_0x351ced['clear']();}[_0x18c1ab(0x205)](_0x2da272){const _0xcaeb9d=_0x18c1ab,_0x36ac9e=[],_0x30767f=new Set();for(const _0x4cf7b2 of this[_0xcaeb9d(0x192)](_0x2da272,_0x30767f))_0x36ac9e[_0xcaeb9d(0x17e)](_0x4cf7b2);return _0x36ac9e;}async[_0x18c1ab(0x1c2)](){const _0x4c476d=_0x18c1ab;return await this['_initializeGenerateTreeList'](),Array[_0x4c476d(0x1f8)](this['_dependencyTreeCache'][_0x4c476d(0x1b3)]());}[_0x18c1ab(0x1db)](_0x1b4fc3){const _0x270c94=_0x18c1ab;return this['_dependencyManagerService'][_0x270c94(0x186)](_0x1b4fc3[_0x270c94(0x226)]());}[_0x18c1ab(0x17a)](_0x50f472){const _0x1d17de=_0x18c1ab,_0x1ecb2c=new Set(),_0x517dc5=_0x50f472[_0x1d17de(0x23a)];for(const [_0x133022,_0xef5f26]of this['_dependencyTreeCache'])for(const _0xdd9309 of _0x517dc5){const _0x102eb3=_0xdd9309[_0x1d17de(0x1a8)],_0x5eed44=_0xdd9309['sheetId'];if(_0xef5f26[_0x1d17de(0x1a8)]!==_0x102eb3||_0xef5f26[_0x1d17de(0x13c)]!==_0x5eed44)continue;const _0x319278=_0xdd9309[_0x1d17de(0x224)];if(_0xef5f26[_0x1d17de(0x1ef)](_0x319278)){_0x1ecb2c[_0x1d17de(0x14d)](_0x133022);break;}}return _0x1ecb2c;}[_0x18c1ab(0x1f5)](){const _0x4c2cbc=_0x18c1ab;this[_0x4c2cbc(0x20e)][_0x4c2cbc(0x1bf)]();}[_0x18c1ab(0x178)](){const _0x1f90ca=_0x18c1ab;this[_0x1f90ca(0x1aa)][_0x1f90ca(0x213)](),this[_0x1f90ca(0x1bc)]['clear'](),this[_0x1f90ca(0x20e)][_0x1f90ca(0x181)]();}}class G extends a[_0x18c1ab(0x1d0)]{async[_0x18c1ab(0x19b)](_0x3e2d20=!0x1){const _0x5143ab=_0x18c1ab;_0x3e2d20?this['_runtimeService'][_0x5143ab(0x1b9)](a['FormulaExecuteStageType'][_0x5143ab(0x1ca)]):this[_0x5143ab(0x221)][_0x5143ab(0x1b9)](a[_0x5143ab(0x22d)]['START_DEPENDENCY']),this[_0x5143ab(0x18d)][_0x5143ab(0x18b)](this[_0x5143ab(0x221)][_0x5143ab(0x20f)]());const _0x3a704a=await this[_0x5143ab(0x1ce)][_0x5143ab(0x1c9)](this[_0x5143ab(0x235)]),_0x11b007=this['_interpreter'];_0x3e2d20?(this['_runtimeService']['setFormulaExecuteStage'](a[_0x5143ab(0x22d)][_0x5143ab(0x14a)]),this[_0x5143ab(0x221)][_0x5143ab(0x15a)](_0x3a704a[_0x5143ab(0x19c)])):(this[_0x5143ab(0x221)][_0x5143ab(0x1b9)](a[_0x5143ab(0x22d)][_0x5143ab(0x16e)]),this[_0x5143ab(0x221)]['setTotalFormulasToCalculate'](_0x3a704a[_0x5143ab(0x19c)])),this['_executionInProgressListener$']['next'](this['_runtimeService'][_0x5143ab(0x20f)]());let _0x59ea5d=[];const _0x44b9bf=this[_0x5143ab(0x13b)]['getConfig'](a['ENGINE_FORMULA_PLUGIN_CONFIG_KEY']),_0x6cbf87=(_0x44b9bf==null?void 0x0:_0x44b9bf['intervalCount'])||a[_0x5143ab(0x1a0)];let _0x1aa32d=0x0;const _0x23ae1a=_0x3a704a[_0x5143ab(0x19c)];for(;_0x3a704a[_0x5143ab(0x19c)]>0x0;){const _0x53e5f5=_0x3a704a[_0x5143ab(0x152)](),_0x48b0da=a[_0x5143ab(0x1e9)](_0x53e5f5[_0x5143ab(0x1a8)],_0x53e5f5['formula'],this['_lexer'],this['_astTreeBuilder'],this['_currentConfigService']),_0x37d1b6={'node':_0x48b0da,'refOffsetX':_0x53e5f5[_0x5143ab(0x176)],'refOffsetY':_0x53e5f5[_0x5143ab(0x21b)]},_0x239a77=_0x53e5f5['getDirtyData'];if(_0x1aa32d%_0x6cbf87===0x0&&(await new Promise(_0x512138=>{const _0x2398ff=_0x5143ab,_0x4dad98=M[_0x2398ff(0x23e)](_0x512138);_0x59ea5d[_0x2398ff(0x17e)](_0x4dad98);}),_0x3e2d20?(this['_runtimeService'][_0x5143ab(0x1b9)](a['FormulaExecuteStageType'][_0x5143ab(0x1b1)]),this[_0x5143ab(0x221)][_0x5143ab(0x1fa)](_0x1aa32d+0x1)):(this[_0x5143ab(0x221)][_0x5143ab(0x1b9)](a['FormulaExecuteStageType']['CURRENTLY_CALCULATING']),this['_runtimeService'][_0x5143ab(0x1d6)](_0x1aa32d+0x1)),this['_executionInProgressListener$']['next'](this[_0x5143ab(0x221)][_0x5143ab(0x20f)]()),this[_0x5143ab(0x221)][_0x5143ab(0x171)]()||_0x37d1b6==null&&_0x239a77==null)){this[_0x5143ab(0x221)]['setFormulaExecuteStage'](a[_0x5143ab(0x22d)][_0x5143ab(0x1b7)]),this[_0x5143ab(0x221)]['markedAsStopFunctionsExecuted'](),this[_0x5143ab(0x21c)][_0x5143ab(0x18b)](this[_0x5143ab(0x221)][_0x5143ab(0x175)]());return;}this[_0x5143ab(0x221)][_0x5143ab(0x1c5)](_0x53e5f5[_0x5143ab(0x149)],_0x53e5f5[_0x5143ab(0x1ec)],_0x53e5f5[_0x5143ab(0x15f)],_0x53e5f5[_0x5143ab(0x174)],_0x53e5f5[_0x5143ab(0x13c)],_0x53e5f5[_0x5143ab(0x1a8)]);let _0x50089d;if(_0x239a77!=null&&_0x53e5f5[_0x5143ab(0x163)]!=null){const {runtimeCellData:_0x4d9597,dirtyRanges:_0x212179}=_0x239a77(this[_0x5143ab(0x1e0)][_0x5143ab(0x1fc)](),this[_0x5143ab(0x221)][_0x5143ab(0x175)]());this[_0x5143ab(0x221)][_0x5143ab(0x1f9)](_0x53e5f5[_0x5143ab(0x163)],_0x4d9597),this[_0x5143ab(0x221)][_0x5143ab(0x233)](_0x53e5f5['featureId'],_0x212179);}else _0x37d1b6!=null&&(_0x11b007[_0x5143ab(0x1b0)](_0x37d1b6[_0x5143ab(0x1ae)])?_0x50089d=await _0x11b007[_0x5143ab(0x199)](_0x37d1b6):_0x50089d=_0x11b007[_0x5143ab(0x1cc)](_0x37d1b6),_0x53e5f5[_0x5143ab(0x215)]!=null?this['_runtimeService'][_0x5143ab(0x1cd)](_0x53e5f5['formulaId'],_0x53e5f5[_0x5143ab(0x176)],_0x53e5f5['refOffsetY'],_0x50089d):this[_0x5143ab(0x221)][_0x5143ab(0x1dc)](_0x50089d));_0x48b0da['resetCalculationState'](),_0x1aa32d++;}return _0x59ea5d[_0x5143ab(0x196)](_0x3527c7=>_0x3527c7()),_0x59ea5d=[],_0x23ae1a>0x0?this[_0x5143ab(0x221)][_0x5143ab(0x155)]():_0x3e2d20||this[_0x5143ab(0x221)][_0x5143ab(0x1df)](),this[_0x5143ab(0x221)]['getAllRuntimeData']();}}class $ extends a[_0x18c1ab(0x20d)]{constructor(){const _0x2484ba=_0x18c1ab;super(...arguments),F(this,_0x2484ba(0x154),new Map()),F(this,_0x2484ba(0x23f),new M[(_0x2484ba(0x1b4))](!0x0));}[_0x18c1ab(0x17d)](){const _0x1550ed=_0x18c1ab;this[_0x1550ed(0x1f1)][_0x1550ed(0x213)](),this[_0x1550ed(0x229)]['clear'](),this[_0x1550ed(0x1cf)][_0x1550ed(0x213)](),this['_dependencyRTreeCache'][_0x1550ed(0x213)](),this[_0x1550ed(0x154)]['clear'](),this[_0x1550ed(0x22c)](),this['_otherFormulaDataMainData'][_0x1550ed(0x213)]();}[_0x18c1ab(0x1a3)](_0xf492c0,_0x23b872,_0x2fdd2f,_0x3cd007){const _0x37b1b9=_0x18c1ab;this['_otherFormulaData'][_0x37b1b9(0x222)](_0xf492c0)||this[_0x37b1b9(0x1f1)]['set'](_0xf492c0,new Map());const _0x51cae0=this[_0x37b1b9(0x1f1)][_0x37b1b9(0x1e3)](_0xf492c0);_0x51cae0['has'](_0x23b872)||_0x51cae0[_0x37b1b9(0x19e)](_0x23b872,new Map());const _0x3659db=_0x51cae0[_0x37b1b9(0x1e3)](_0x23b872);_0x3659db[_0x37b1b9(0x222)](_0x2fdd2f)||_0x3659db[_0x37b1b9(0x19e)](_0x2fdd2f,new M[(_0x37b1b9(0x1a1))]()),_0x3659db[_0x37b1b9(0x1e3)](_0x2fdd2f)[_0x37b1b9(0x21e)](_0x3cd007['refOffsetX'],_0x3cd007[_0x37b1b9(0x21b)],_0x3cd007[_0x37b1b9(0x1da)]);}[_0x18c1ab(0x18f)](_0x1c2fa4,_0x20004b,_0x474545){const _0x5d35d8=_0x18c1ab,_0xd1ae24=this[_0x5d35d8(0x1f1)]['get'](_0x1c2fa4);if(_0xd1ae24&&_0xd1ae24[_0x5d35d8(0x222)](_0x20004b)){const _0x3e45ae=_0xd1ae24[_0x5d35d8(0x1e3)](_0x20004b);_0x474545['forEach'](_0x3ece76=>{const _0x2c6e07=_0x5d35d8,_0x12073f=_0x3e45ae[_0x2c6e07(0x1e3)](_0x3ece76);_0x12073f!=null&&(_0x12073f[_0x2c6e07(0x1ad)]((_0x34ef15,_0x1a851f,_0x49f064)=>{const _0x1018f4=_0x2c6e07;this[_0x1018f4(0x148)](_0x49f064),this['_removeAllTreeMap'](_0x49f064);}),_0x3e45ae[_0x2c6e07(0x151)](_0x3ece76),this[_0x2c6e07(0x212)]['delete'](_0x3ece76));}),_0x3e45ae['size']===0x0&&_0xd1ae24[_0x5d35d8(0x151)](_0x20004b),_0xd1ae24[_0x5d35d8(0x21a)]===0x0&&this[_0x5d35d8(0x1f1)][_0x5d35d8(0x151)](_0x1c2fa4);}}[_0x18c1ab(0x1a9)](_0xce03a7,_0x238e2f){const _0x23e28e=_0x18c1ab,_0x3f183a=this[_0x23e28e(0x1f1)][_0x23e28e(0x1e3)](_0xce03a7);if(_0x238e2f&&_0x3f183a&&_0x3f183a[_0x23e28e(0x222)](_0x238e2f)){const _0x4fb997=_0x3f183a[_0x23e28e(0x1e3)](_0x238e2f);this[_0x23e28e(0x166)](_0xce03a7,_0x238e2f);for(const _0x1aa97a of _0x4fb997['keys']()){const _0x50244c=_0x4fb997[_0x23e28e(0x1e3)](_0x1aa97a);_0x50244c!=null&&(_0x50244c[_0x23e28e(0x1ad)]((_0x5b774d,_0x1463b7,_0x32605b)=>{const _0x3955ab=_0x23e28e;this[_0x3955ab(0x154)]['get'](_0x32605b)&&this['_removeAllTreeMap'](_0x32605b);}),this[_0x23e28e(0x212)][_0x23e28e(0x151)](_0x1aa97a));}_0x4fb997['clear']();}else{if(_0x3f183a){for(const _0x30002f of _0x3f183a[_0x23e28e(0x15e)]()){const _0x3a1fba=_0x3f183a[_0x23e28e(0x1e3)](_0x30002f);this[_0x23e28e(0x166)](_0xce03a7,_0x30002f);for(const _0x3bd1c7 of _0x3a1fba['keys']()){const _0xed978b=_0x3a1fba[_0x23e28e(0x1e3)](_0x3bd1c7);_0xed978b!=null&&(_0xed978b[_0x23e28e(0x1ad)]((_0x55e3fc,_0x570dd5,_0x4d655e)=>{const _0x2dee8f=_0x23e28e;this[_0x2dee8f(0x154)][_0x2dee8f(0x1e3)](_0x4d655e)&&this[_0x2dee8f(0x170)](_0x4d655e);}),this[_0x23e28e(0x212)][_0x23e28e(0x151)](_0x3bd1c7));}}this[_0x23e28e(0x1f1)][_0x23e28e(0x151)](_0xce03a7);}}}['addFeatureFormulaDependency'](_0x2add9b,_0x5a2382,_0x1cf450,_0x1e53ff){const _0x4a7edc=_0x18c1ab;this['_featureFormulaData']['has'](_0x2add9b)||this[_0x4a7edc(0x229)]['set'](_0x2add9b,new Map());const _0x56f2e7=this[_0x4a7edc(0x229)][_0x4a7edc(0x1e3)](_0x2add9b);_0x56f2e7[_0x4a7edc(0x222)](_0x5a2382)||_0x56f2e7[_0x4a7edc(0x19e)](_0x5a2382,new Map()),_0x56f2e7[_0x4a7edc(0x1e3)](_0x5a2382)['set'](_0x1cf450,_0x1e53ff[_0x4a7edc(0x1da)]);}['removeFeatureFormulaDependency'](_0x3ebea1,_0x174cc7,_0x14247f){const _0x148589=_0x18c1ab,_0x52598a=this[_0x148589(0x229)][_0x148589(0x1e3)](_0x3ebea1);if(_0x52598a&&_0x52598a['has'](_0x174cc7)){const _0x53f699=_0x52598a['get'](_0x174cc7);_0x14247f[_0x148589(0x196)](_0x16feaa=>{const _0x50a719=_0x148589,_0x2e4aaf=_0x53f699[_0x50a719(0x1e3)](_0x16feaa);_0x2e4aaf!=null&&(this[_0x50a719(0x148)](_0x2e4aaf),_0x53f699[_0x50a719(0x151)](_0x16feaa),this['_removeAllTreeMap'](_0x2e4aaf));});}}[_0x18c1ab(0x1fb)](_0x1244b2,_0x4ef2d6){const _0x4feffd=_0x18c1ab,_0x321069=this[_0x4feffd(0x229)][_0x4feffd(0x1e3)](_0x1244b2);if(_0x4ef2d6&&_0x321069&&_0x321069[_0x4feffd(0x222)](_0x4ef2d6)){const _0x3af8ef=_0x321069[_0x4feffd(0x1e3)](_0x4ef2d6);this['_removeDependencyRTreeCacheById'](_0x1244b2,_0x4ef2d6),_0x3af8ef[_0x4feffd(0x196)](_0x437adc=>{const _0x35bbc3=_0x4feffd;_0x437adc!=null&&this[_0x35bbc3(0x170)](_0x437adc);}),_0x3af8ef[_0x4feffd(0x213)]();}else _0x321069&&(_0x321069[_0x4feffd(0x196)]((_0x280ca5,_0x4aa645)=>{const _0x1eaccc=_0x4feffd;this['_removeDependencyRTreeCacheById'](_0x1244b2,_0x4aa645),_0x280ca5[_0x1eaccc(0x196)](_0x44fa2b=>{const _0x3bd757=_0x1eaccc;_0x44fa2b!=null&&this[_0x3bd757(0x170)](_0x44fa2b);});}),this[_0x4feffd(0x229)][_0x4feffd(0x151)](_0x1244b2));}[_0x18c1ab(0x187)](_0x1296d7,_0x25897e,_0x534eca,_0x358cdd,_0x43e9d3){const _0xd4c330=_0x18c1ab;this['_formulaData'][_0xd4c330(0x222)](_0x1296d7)||this[_0xd4c330(0x1cf)][_0xd4c330(0x19e)](_0x1296d7,new Map());const _0x3ae3be=this['_formulaData'][_0xd4c330(0x1e3)](_0x1296d7);_0x3ae3be[_0xd4c330(0x222)](_0x25897e)||_0x3ae3be[_0xd4c330(0x19e)](_0x25897e,new M[(_0xd4c330(0x1a1))]()),_0x3ae3be[_0xd4c330(0x1e3)](_0x25897e)[_0xd4c330(0x21e)](_0x534eca,_0x358cdd,_0x43e9d3[_0xd4c330(0x1da)]);}[_0x18c1ab(0x19f)](_0x3c93b1,_0x6d49c7,_0x12e107,_0x17941c){const _0x466b7f=_0x18c1ab,_0x308f4c=this[_0x466b7f(0x1cf)][_0x466b7f(0x1e3)](_0x3c93b1);if(_0x308f4c&&_0x308f4c[_0x466b7f(0x222)](_0x6d49c7)){const _0x53e182=_0x308f4c[_0x466b7f(0x1e3)](_0x6d49c7),_0x3958b9=_0x53e182[_0x466b7f(0x180)](_0x12e107,_0x17941c);if(_0x3958b9==null)return;this[_0x466b7f(0x148)](_0x3958b9),_0x53e182[_0x466b7f(0x1c6)](_0x12e107,_0x17941c),this[_0x466b7f(0x170)](_0x3958b9);}}['clearFormulaDependency'](_0x33293e,_0x19bc8c){const _0xb5e34=_0x18c1ab,_0x4f7767=this[_0xb5e34(0x1cf)][_0xb5e34(0x1e3)](_0x33293e);if(_0x19bc8c&&_0x4f7767&&_0x4f7767[_0xb5e34(0x222)](_0x19bc8c)){const _0x33a90c=_0x4f7767[_0xb5e34(0x1e3)](_0x19bc8c);this[_0xb5e34(0x166)](_0x33293e,_0x19bc8c),_0x33a90c[_0xb5e34(0x1ad)]((_0x552c4a,_0x3fe84c,_0x1ec665)=>{const _0x25e48a=_0xb5e34;if(_0x1ec665==null)return!0x0;this[_0x25e48a(0x170)](_0x1ec665);}),_0x33a90c['reset']();}else _0x4f7767&&(_0x4f7767['forEach']((_0x526a1b,_0x40a38d)=>{const _0x1b6f52=_0xb5e34;this[_0x1b6f52(0x166)](_0x33293e,_0x40a38d),_0x526a1b[_0x1b6f52(0x1ad)]((_0x55693e,_0x187d6b,_0x1e1244)=>{const _0x293cd3=_0x1b6f52;if(_0x1e1244==null)return!0x0;this[_0x293cd3(0x170)](_0x1e1244);});}),this[_0xb5e34(0x1cf)][_0xb5e34(0x151)](_0x33293e));}['_removeDependencyRTreeCache'](_0x23e55c){const _0x835f2=_0x18c1ab;if(_0x23e55c==null)return;const _0x42b582=this[_0x835f2(0x154)]['get'](_0x23e55c);if(_0x42b582){const _0x54f36d=[];for(const [_0x18f62f,_0x489c52]of _0x42b582)for(const [_0x3fb27e,_0xddc74]of _0x489c52)_0x54f36d[_0x835f2(0x17e)]({'unitId':_0x18f62f,'sheetId':_0x3fb27e,'range':_0xddc74,'id':_0x23e55c});this[_0x835f2(0x23f)][_0x835f2(0x177)](_0x54f36d);}}[_0x18c1ab(0x1b2)](_0x4cd35f,_0x10850b){const _0x1905f8=_0x18c1ab,_0x30eed3=this[_0x1905f8(0x14c)][_0x1905f8(0x1e3)](_0x4cd35f);if(_0x30eed3){const _0x156142=_0x30eed3[_0x1905f8(0x1e3)](_0x10850b);if(_0x156142){for(const _0x18d268 of _0x156142)this['_removeDependencyRTreeCache'](_0x18d268),this[_0x1905f8(0x170)](_0x18d268);_0x156142[_0x1905f8(0x213)]();}}}[_0x18c1ab(0x1bf)](){const _0x1714c6=_0x18c1ab;this['_dependencyRTreeCache'][_0x1714c6(0x1bf)]();}[_0x18c1ab(0x181)](){const _0x5179e4=_0x18c1ab;this['_dependencyRTreeCache'][_0x5179e4(0x181)]();}[_0x18c1ab(0x170)](_0x74cb06){const _0x4d49b2=_0x18c1ab;_0x74cb06!=null&&this['_allTreeMap'][_0x4d49b2(0x151)](_0x74cb06);}['_addAllTreeMap'](_0x1ea261){const _0x5a8190=_0x18c1ab;var _0x15c916,_0x494b7c;const _0x3cf8e6=_0x1ea261['rangeList'];let _0x669283=this[_0x5a8190(0x154)][_0x5a8190(0x1e3)](_0x1ea261[_0x5a8190(0x1da)]);for(let _0x1e6074=0x0;_0x1e6074<_0x3cf8e6[_0x5a8190(0x19c)];_0x1e6074++){const _0x129bfb=_0x3cf8e6[_0x1e6074];let {unitId:_0x1ca7bf,sheetId:_0x7633f9,range:_0xa09cef}=_0x129bfb;_0x669283||(_0x669283=new Map(),this['_allTreeMap'][_0x5a8190(0x19e)](_0x1ea261[_0x5a8190(0x1da)],_0x669283)),_0x669283[_0x5a8190(0x222)](_0x1ca7bf)||_0x669283[_0x5a8190(0x19e)](_0x1ca7bf,new Map());const _0x420f3c=(_0x15c916=_0x669283==null?void 0x0:_0x669283[_0x5a8190(0x1e3)](_0x1ca7bf))==null?void 0x0:_0x15c916['get'](_0x7633f9);_0x420f3c&&(_0xa09cef={'startRow':Math[_0x5a8190(0x1e6)](_0xa09cef[_0x5a8190(0x165)],_0x420f3c[_0x5a8190(0x165)]),'startColumn':Math['min'](_0xa09cef['startColumn'],_0x420f3c['startColumn']),'endRow':Math[_0x5a8190(0x1bd)](_0xa09cef[_0x5a8190(0x1ea)],_0x420f3c[_0x5a8190(0x1ea)]),'endColumn':Math[_0x5a8190(0x1bd)](_0xa09cef[_0x5a8190(0x143)],_0x420f3c[_0x5a8190(0x143)])}),(_0x494b7c=_0x669283[_0x5a8190(0x1e3)](_0x1ca7bf))==null||_0x494b7c[_0x5a8190(0x19e)](_0x7633f9,_0xa09cef);}}}var j=Object[_0x18c1ab(0x1a7)],W=(_0x31f6df,_0x1e8f98,_0x1785f7,_0x479f20)=>{const _0x105951=_0x18c1ab;for(var _0x2f17e2=_0x479f20>0x1?void 0x0:_0x479f20?j(_0x1e8f98,_0x1785f7):_0x1e8f98,_0xeda5c6=_0x31f6df[_0x105951(0x19c)]-0x1,_0x10910c;_0xeda5c6>=0x0;_0xeda5c6--)(_0x10910c=_0x31f6df[_0xeda5c6])&&(_0x2f17e2=_0x10910c(_0x2f17e2)||_0x2f17e2);return _0x2f17e2;};const X=Number[_0x18c1ab(0x1a4)](0x696b4030);exports[_0x18c1ab(0x23c)]=class extends a['UniverFormulaEnginePlugin']{[_0x18c1ab(0x1f3)](){const _0xc4fa50=_0x18c1ab;var _0x151be5,_0x275ff3;this[_0xc4fa50(0x153)]()?(this[_0xc4fa50(0x156)]['add']([a[_0xc4fa50(0x1f6)],{'useClass':A}]),(_0x151be5=this[_0xc4fa50(0x194)])!=null&&_0x151be5[_0xc4fa50(0x18e)]||[[a[_0xc4fa50(0x179)],{'useClass':G}],[a['IDependencyManagerService'],{'useClass':$}],[a['IFormulaDependencyGenerator'],{'useClass':Y}]][_0xc4fa50(0x196)](_0x12ce89=>this['_injector'][_0xc4fa50(0x14d)](_0x12ce89))):(this[_0xc4fa50(0x156)]['add']([a['LexerTreeBuilder'],{'useClass':a[_0xc4fa50(0x1f6)]}]),(_0x275ff3=this['_config'])!=null&&_0x275ff3[_0xc4fa50(0x18e)]||[[a[_0xc4fa50(0x179)],{'useClass':a[_0xc4fa50(0x1d0)]}],[a[_0xc4fa50(0x167)],{'useClass':a[_0xc4fa50(0x1d1)]}],[a[_0xc4fa50(0x169)],{'useClass':a['FormulaDependencyGenerator']}]][_0xc4fa50(0x196)](_0x85d39b=>this[_0xc4fa50(0x156)]['add'](_0x85d39b)));}['_initLicenseValid'](){const _0x9082d8=_0x18c1ab;var _0x3102ba;const _0x315388=(_0x3102ba=this['_configService'][_0x9082d8(0x216)](x[_0x9082d8(0x201)]))!=null?_0x3102ba:{},{ls:_0x4d2497,pbk:_0x19eb81}=_0x315388;if(!_0x4d2497||!_0x19eb81)return!0x1;const _0xa3be5a=x[_0x9082d8(0x1b5)](K,B),_0x4d901e=new Function(_0x9082d8(0x172)+_0xa3be5a)()(_0x4d2497,_0x19eb81),_0x3a4ca3=_0x4d901e[_0x9082d8(0x188)];return _0x4d901e['valid']&&x[_0x9082d8(0x162)](_0x3a4ca3,'sf',X)?x[_0x9082d8(0x21d)](_0x3a4ca3,!0x0,'a',!0x0,!0x1,!0x1):!0x1;}},exports[_0x18c1ab(0x23c)]=W([M['DependentOn'](x[_0x18c1ab(0x1ac)])],exports[_0x18c1ab(0x23c)]),exports['LexerTreeProBuilder']=A,Object[_0x18c1ab(0x15e)](a)[_0x18c1ab(0x196)](_0x25e4fd=>{const _0x3c5a9d=_0x18c1ab;_0x25e4fd!==_0x3c5a9d(0x1d2)&&!Object['prototype'][_0x3c5a9d(0x1c7)][_0x3c5a9d(0x1cb)](exports,_0x25e4fd)&&Object[_0x3c5a9d(0x23d)](exports,_0x25e4fd,{'enumerable':!0x0,'get':()=>a[_0x25e4fd]});});