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

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/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0x55ce(){const _0x149323=['toFormulaLastValue','keys','UniverDocsPlugin','_commandService','SetDocFormulaNumberFormatCommand','docs-formula.mutation.set-resource','iterator','customRanges','LexerTreeBuilder','editOp','values','deleteFormula','1.0.0-beta.1','textRuns','trim','getResult','entries','position','accessor','buildInsertDocFormulaActions','syncExecuteCommand','DOC_FORMULA_OBJECT_REPLACEMENT','nextDocumentData','pushUndoRedo','_queueSync','source','getResource','shiftExclusiveRangeOnDelete','unitId','4688574IUjyVg','text','registerFormulaWithRange','parse','color','deepClone','rxjs','includes','_pendingUnitIds','externalReferences','max','RemoveDocFormulaMutation','expectedReferenceRevision','exports','UniverLicensePlugin','from','InvalidDocFormulaInsertRangeError','start','paragraphId','setResource','getLoadError','toPrimitive','DependentOn','forEach','document','rangeType','subscribe','add','sectionBreaks','IUndoRedoService','sequenceNodesBuilder','Document\x20main\x20body\x20is\x20required\x20to\x20insert\x20Doc\x20Formula.','OtherFormulaBizType','expectedNumberFormat','DOC_FORMULA_PLUGIN','endIndex','startOffset','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','toStringTag','empty','sort','next','startsWith','delete','_loadErrors','150208sQnTRW','Plugin','body','min','UpdateDocFormulaCommand','_presentationChanged$','resourceUndo','Subject','numberFormat','getUnit','@univerjs/engine-formula','3324104xLpBnK','resourceRedo','docs-formula.command.insert','CustomRangeType','params','MUTATION','generateRandomId','_deleteRegistration','TABLE_END','undoMutation','collectMutations','CUSTOM','set','_setPresentation','removeUnit','customBlocks','segmentId','buildUpdateDocFormulaActions','TABLE_ROW_END','DocFormulaResultStatus','docs-formula.mutation.set-formula','UniverProEngineFormula','DocSelectionManagerService','docs-formula.command.replace-with-text','_instanceService','cursorOffset','call','CellValueType','getPresentation','disposeWithMe','lastValue','UNIVER_DOC','registerCommand','CUSTOM_BLOCK','setFormulas','blockRanges','registerProvider','model','map','symbol','DOC','retain','TABLE_CELL_START','resolveFormulaResultPresentation','_injector','isInteger','isDocFormulaResource','constructor','@univerjs/core','pattern','PARAGRAPH','getCustomRangeInterval','ConvertDocFormulaToTextCommand','complete','pending','touchDependencies','config','customDecorations','_univerInstanceService','unregisterUnit','isArray','CommandType','getBody','resolveBinding','invalid-resource','unsupported-version','RemoveDocFormulaCommand','merge','documentRedo','function','slice','IUniverInstanceService','number','_config','has','DataStreamTreeTokenType','buildRemoveDocFormulaActions','error','selection','length','paragraph','EMPTY','liveResult','endsWith','nextResource','ERROR','ICommandService','docs-formula.command.update','getFormulaValueSync','7245888EKlfSb','stale','register','UniverCore','docs-formula.command.convert-to-text','Injector','_resources','UniverDocsFormulaPlugin','isDocFormulaConfig','find','setConfig','DocTextResolverService','_updateFormulaResult','_hostExternalReferenceModel','get','docs-formula.command.set-number-format','formulaResult$','getSnapshot','univer-docs-formula','unregister','docs-formula.command.remove','getFormulas','resolveFormula','defineProperty','FormulaResultStatus','syncUnit','decorate','getRegisteredFormulas','Inject','HostExternalReferenceModel','presentationChanged$','degradeDocFormulaDocumentData','fromEntries','resolved','FormulaCacheEligibilityService','docs-formula.mutation.remove-formula','formulaId','updates','TABLE_ROW_START','onCommandExecuted','BLOCK_END','getParagraphContentStartOffset','presentation','@univerjs-pro/engine-formula','resources','COLUMN_GROUP_START','paragraphs','eligible','getInstance','stringify','getUnitId','object','DocFormulaResourceController','_isDisposed','documentData','degradeDocumentData','_docFormulaModel','getOwnPropertyDescriptor','wholeEntity','_registrations','DocFormulaLifecycleController','dataStream','RichTextEditingMutation','schemaVersion','data','FormulaLastValuePersistenceService','setFormula','clear','removeFormula','formulas','getFormula','redoMutation','_formulaService','isFormulaLastValue','identity','resolveHostFormulaExternalReferences','_configService','formula','UniverProFormulaEnginePlugin','@univerjs-pro/license','isDocFormulaRange','serialize','1260iMDGuC','resource','SECTION_BREAK','referenceRevision','COLUMN_GROUP_END','_syncUnit','default','target','createEmptyDocFormulaResource','properties','deleteLength','_model','Disposable','getBodySliceForTextXAction','COMMAND','JSONX','@univerjs/docs','name','_preserveInvalid','prototype','DocFormulaService','insertLength','UniverInstanceType','endOffset','replaceDocRanges','_change$','boolean','UniverProLicense','cell','previousDocumentData','_registrationService','disabled','1484789CwWqaH','_syncScheduled','@univerjs-pro/docs-formula','BLOCK_START','load','trigger','7404110TjoHKH','dispose','docs-formula.config','UniverDocs','SUCCESS','range','TABLE_START','InsertDocFormulaCommand','rangeId','buildUpsertHostExternalReferenceMutations','15456xSvYqT','notifyTextChanged','tables','change$','Tools','ReplaceDocFormulaWithTextCommand','_rawResources','filter','every','startIndex','status','DOC_SELECTION_OPTION_PRESERVE_CARET','SetDocFormulaLastValuesMutation','_cacheEligibilityService','type','_resourceManagerService','docs-formula.mutation.set-last-values','previousResource','amd','onStarting','shiftExclusiveRangeOnInsert','getRevision','columnGroups','externalMutations','string','_formulaKeys'];_0x55ce=function(){return _0x149323;};return _0x55ce();}function _0x20db(_0x18ec38,_0x32d1c0){_0x18ec38=_0x18ec38-0xfd;const _0x55ce1d=_0x55ce();let _0x20dba7=_0x55ce1d[_0x18ec38];return _0x20dba7;}(function(_0x251fe9,_0x2c9105){const _0x22a426=_0x20db,_0x19b0d8=_0x251fe9();while(!![]){try{const _0x499e2e=-parseInt(_0x22a426(0x114))/0x1+-parseInt(_0x22a426(0x193))/0x2+parseInt(_0x22a426(0x15b))/0x3+-parseInt(_0x22a426(0x188))/0x4+parseInt(_0x22a426(0x23e))/0x5*(parseInt(_0x22a426(0x124))/0x6)+parseInt(_0x22a426(0x11a))/0x7+parseInt(_0x22a426(0x1ec))/0x8;if(_0x499e2e===_0x2c9105)break;else _0x19b0d8['push'](_0x19b0d8['shift']());}catch(_0x184d13){_0x19b0d8['push'](_0x19b0d8['shift']());}}}(_0x55ce,0xf1f6b),function(_0x506a11,_0x34a4b5){const _0x4e5dfd=_0x20db;typeof exports==_0x4e5dfd(0x21f)&&typeof module<'u'?_0x34a4b5(exports,require('@univerjs-pro/engine-formula'),require('@univerjs/core'),require('@univerjs/docs'),require('@univerjs/engine-formula'),require('rxjs'),require('@univerjs-pro/license')):typeof define==_0x4e5dfd(0x1d8)&&define[_0x4e5dfd(0x136)]?define([_0x4e5dfd(0x168),_0x4e5dfd(0x217),_0x4e5dfd(0x1c3),_0x4e5dfd(0x104),_0x4e5dfd(0x192),'rxjs',_0x4e5dfd(0x23b)],_0x34a4b5):(_0x506a11=typeof globalThis<'u'?globalThis:_0x506a11||self,_0x34a4b5(_0x506a11['UniverProDocsFormula']={},_0x506a11[_0x4e5dfd(0x1a8)],_0x506a11[_0x4e5dfd(0x1ef)],_0x506a11[_0x4e5dfd(0x11d)],_0x506a11['UniverEngineFormula'],_0x506a11[_0x4e5dfd(0x161)],_0x506a11[_0x4e5dfd(0x10f)]));}(this,function(_0x24865a,_0x49a424,_0x183152,_0x239b8e,_0x56a765,_0xb85794,_0x125396){const _0x5190c3=_0x20db;Object[_0x5190c3(0x203)](_0x24865a,Symbol[_0x5190c3(0x181)],{'value':'Module'});let _0x5df5c0=_0x5190c3(0x17d),_0x348d61=_0x5190c3(0x1fe);function _0x2d0395(){return{'schemaVersion':0x1,'formulas':{}};}function _0x48fcca(_0x157d6a){const _0x5aea7d=_0x5190c3;return!_0x157d6a||typeof _0x157d6a!=_0x5aea7d(0x21f)||!_0x1ffb1c(_0x157d6a,[_0x5aea7d(0x22b),_0x5aea7d(0x231)])||!('schemaVersion'in _0x157d6a)||_0x157d6a[_0x5aea7d(0x22b)]!==0x1||!(_0x5aea7d(0x231)in _0x157d6a)||!_0x157d6a['formulas']||typeof _0x157d6a[_0x5aea7d(0x231)]!=_0x5aea7d(0x21f)||Array[_0x5aea7d(0x1cf)](_0x157d6a[_0x5aea7d(0x231)])?!0x1:Object[_0x5aea7d(0x14e)](_0x157d6a[_0x5aea7d(0x231)])['every'](([_0xb37e,_0x64d60a])=>_0xb37e[_0x5aea7d(0x1e2)]>0x0&&_0x5aaa6e(_0x64d60a));}function _0x5aaa6e(_0x3315b3){const _0x964e6f=_0x5190c3;return!_0x3315b3||typeof _0x3315b3!=_0x964e6f(0x21f)||!_0x1ffb1c(_0x3315b3,['formula',_0x964e6f(0x190),_0x964e6f(0x1b1)])||!('formula'in _0x3315b3)||typeof _0x3315b3[_0x964e6f(0x239)]!=_0x964e6f(0x13c)||!_0x3315b3[_0x964e6f(0x239)][_0x964e6f(0x14c)]()||_0x964e6f(0x190)in _0x3315b3&&_0x3315b3[_0x964e6f(0x190)]!=null&&(typeof _0x3315b3[_0x964e6f(0x190)]!=_0x964e6f(0x21f)||!_0x1ffb1c(_0x3315b3[_0x964e6f(0x190)],[_0x964e6f(0x1c4)])||!('pattern'in _0x3315b3['numberFormat'])||typeof _0x3315b3[_0x964e6f(0x190)][_0x964e6f(0x1c4)]!='string')?!0x1:!(_0x964e6f(0x1b1)in _0x3315b3)||_0x3315b3['lastValue']==null||_0x2aa92a(_0x3315b3[_0x964e6f(0x1b1)]);}function _0x2aa92a(_0x3ff21d){const _0xfd991c=_0x5190c3;return!_0x3ff21d||typeof _0x3ff21d!=_0xfd991c(0x21f)||!_0x1ffb1c(_0x3ff21d,['v','t',_0xfd991c(0x1c4)])||!('v'in _0x3ff21d)||_0x3ff21d['v']!==null&&typeof _0x3ff21d['v']!=_0xfd991c(0x13c)&&typeof _0x3ff21d['v']!=_0xfd991c(0x1db)&&typeof _0x3ff21d['v']!=_0xfd991c(0x10e)||'t'in _0x3ff21d&&_0x3ff21d['t']!=null&&!_0x4ffc8b(_0x3ff21d['t'])?!0x1:!(_0xfd991c(0x1c4)in _0x3ff21d)||_0x3ff21d[_0xfd991c(0x1c4)]==null||typeof _0x3ff21d[_0xfd991c(0x1c4)]==_0xfd991c(0x13c);}function _0x1ffb1c(_0x16821e,_0x71da1){const _0x412461=_0x5190c3;let _0x793c76=new Set(_0x71da1);return Object[_0x412461(0x13f)](_0x16821e)[_0x412461(0x12c)](_0x176a8f=>_0x793c76[_0x412461(0x1dd)](_0x176a8f));}function _0x4ffc8b(_0x4114b2){const _0x37c6d5=_0x5190c3;return typeof _0x4114b2=='number'&&Object['values'](_0x183152[_0x37c6d5(0x1ae)])[_0x37c6d5(0x162)](_0x4114b2);}let _0x19820e=new Set([_0x183152[_0x5190c3(0x1de)][_0x5190c3(0x240)],_0x183152[_0x5190c3(0x1de)][_0x5190c3(0x120)],_0x183152['DataStreamTreeTokenType'][_0x5190c3(0x212)],_0x183152['DataStreamTreeTokenType'][_0x5190c3(0x1bd)],_0x183152[_0x5190c3(0x1de)]['TABLE_CELL_END'],_0x183152['DataStreamTreeTokenType'][_0x5190c3(0x1a5)],_0x183152['DataStreamTreeTokenType'][_0x5190c3(0x19b)],_0x183152[_0x5190c3(0x1de)][_0x5190c3(0x219)],_0x183152['DataStreamTreeTokenType']['COLUMN_START'],_0x183152['DataStreamTreeTokenType']['COLUMN_END'],_0x183152[_0x5190c3(0x1de)][_0x5190c3(0x242)],_0x183152[_0x5190c3(0x1de)][_0x5190c3(0x117)],_0x183152['DataStreamTreeTokenType'][_0x5190c3(0x214)],_0x183152['DataStreamTreeTokenType'][_0x5190c3(0x1b4)]]);var _0x3c9e54=class extends Error{constructor(){super('Doc\x20Formula\x20range\x20cannot\x20cross\x20document\x20structure\x20boundaries');}};function _0x3aebe8(_0x3dad58){const _0x14973c=_0x5190c3;var _0x18c7be,_0x176237;let _0xc1837=_0x183152[_0x14973c(0x128)][_0x14973c(0x160)](_0x3dad58['documentData']),_0x454538=_0x3c7415(_0xc1837),{startOffset:_0x2e0a92,endOffset:_0x4cdfb0}=_0x4b0bcb(_0x454538,_0x3dad58[_0x14973c(0x17f)],_0x3dad58[_0x14973c(0x10b)]);_0xb71898(_0x454538,_0x2e0a92,_0x4cdfb0);let _0x4df932=((_0x18c7be=_0x454538[_0x14973c(0x145)])==null?void 0x0:_0x18c7be['filter'](_0x58d92c=>{const _0x35f8a1=_0x14973c;if(!_0x11642f(_0x58d92c))return!0x1;let _0x4e9b8d=(0x0,_0x183152[_0x35f8a1(0x1c6)])(_0x58d92c);return _0x4e9b8d['endOffset']>_0x2e0a92&&_0x4e9b8d['startOffset']<_0x4cdfb0;})[_0x14973c(0x1b9)](_0xb6d0f=>_0xb6d0f[_0x14973c(0x122)]))??[];_0x343636(_0x454538,_0x2e0a92,_0x4cdfb0,''),_0x454538['customRanges']=[...((_0x176237=_0x454538[_0x14973c(0x145)])==null?void 0x0:_0x176237[_0x14973c(0x12b)](_0x27c477=>!_0x4df932[_0x14973c(0x162)](_0x27c477[_0x14973c(0x122)])&&_0x27c477[_0x14973c(0x122)]!==_0x3dad58[_0x14973c(0x122)]))??[],_0x1399ed(_0x3dad58[_0x14973c(0x122)],_0x2e0a92)]['sort']((_0x31ad1b,_0x39cf95)=>_0x31ad1b[_0x14973c(0x12d)]-_0x39cf95[_0x14973c(0x12d)]);let _0x46a732=_0x165397(_0x3dad58[_0x14973c(0x23f)]);return _0x4df932[_0x14973c(0x172)](_0x541734=>{delete _0x46a732['formulas'][_0x541734];}),_0x46a732[_0x14973c(0x231)][_0x3dad58[_0x14973c(0x122)]]=_0x183152[_0x14973c(0x128)]['deepClone'](_0x3dad58[_0x14973c(0x1cb)]),{'nextDocumentData':_0xc1837,'nextResource':_0x46a732,'cursorOffset':_0x2e0a92+0x1};}function _0x3509c1(_0x597edb){const _0x2eb648=_0x5190c3;var _0x5a5c53,_0x2feea4;let _0x2871ee=_0x183152[_0x2eb648(0x128)]['deepClone'](_0x597edb['documentData']),_0x238a52=(_0x5a5c53=_0x3c7415(_0x2871ee)[_0x2eb648(0x145)])==null?void 0x0:_0x5a5c53[_0x2eb648(0x1f5)](_0xd1bdd0=>_0xd1bdd0[_0x2eb648(0x122)]===_0x597edb['rangeId']&&_0x11642f(_0xd1bdd0));if(!_0x238a52||!((_0x2feea4=_0x597edb[_0x2eb648(0x23f)])!=null&&_0x2feea4['formulas'][_0x597edb[_0x2eb648(0x122)]]))return null;let _0x21a155=_0x165397(_0x597edb[_0x2eb648(0x23f)]);return _0x21a155['formulas'][_0x597edb['rangeId']]=_0x183152[_0x2eb648(0x128)][_0x2eb648(0x160)](_0x597edb[_0x2eb648(0x1cb)]),{'nextDocumentData':_0x2871ee,'nextResource':_0x21a155,'cursorOffset':_0x238a52[_0x2eb648(0x17e)]+0x1};}function _0x580626(_0x2b0599){const _0x188ecc=_0x5190c3;let _0x2075b1=_0x183152[_0x188ecc(0x128)][_0x188ecc(0x160)](_0x2b0599['documentData']),_0x13d09f=_0x20e325(_0x2075b1,_0x2b0599['rangeId'],_0x2b0599[_0x188ecc(0x15c)]??'');if(_0x13d09f==null)return null;let _0x3b2a7a=_0x165397(_0x2b0599[_0x188ecc(0x23f)]);return delete _0x3b2a7a[_0x188ecc(0x231)][_0x2b0599[_0x188ecc(0x122)]],{'nextDocumentData':_0x2075b1,'nextResource':_0x3b2a7a,'cursorOffset':_0x13d09f};}function _0xe38112(_0x586b67,_0x90f39c){const _0x129081=_0x5190c3;var _0x41eab1;let _0x57f37c=_0x183152['Tools'][_0x129081(0x160)](_0x586b67),_0x4c1b78=_0x57f37c['body'];if(!_0x4c1b78)return _0x57f37c;let _0x44edb6=new Map(_0x90f39c[_0x129081(0x1b9)](_0x58e202=>[_0x58e202[_0x129081(0x122)],_0x58e202[_0x129081(0x15c)]])),_0x28a78a=((_0x41eab1=_0x4c1b78['customRanges'])==null?void 0x0:_0x41eab1[_0x129081(0x12b)](_0x6eac25=>_0x11642f(_0x6eac25)&&_0x44edb6[_0x129081(0x1dd)](_0x6eac25[_0x129081(0x122)]))[_0x129081(0x183)]((_0x24392d,_0x65dde9)=>_0x65dde9[_0x129081(0x12d)]-_0x24392d[_0x129081(0x12d)]))??[];for(let _0x675ff4 of _0x28a78a)_0x20e325(_0x57f37c,_0x675ff4[_0x129081(0x122)],_0x44edb6[_0x129081(0x1fa)](_0x675ff4['rangeId'])??'');return _0x57f37c;}function _0x11642f(_0x4b03ee){const _0x2e8191=_0x5190c3;var _0x6c992d;return(_0x4b03ee==null?void 0x0:_0x4b03ee[_0x2e8191(0x174)])===_0x183152[_0x2e8191(0x196)][_0x2e8191(0x19e)]&&_0x4b03ee[_0x2e8191(0x226)]===!0x0&&((_0x6c992d=_0x4b03ee[_0x2e8191(0xfd)])==null?void 0x0:_0x6c992d['kind'])===_0x2e8191(0x1fe);}function _0x5dd8f2(_0x3ccdf6,_0xb209d0){const _0x540640=_0x5190c3;var _0x55cd59;return _0x3ccdf6==null||(_0x55cd59=_0x3ccdf6[_0x540640(0x145)])==null?void 0x0:_0x55cd59[_0x540640(0x1f5)](_0x3ae608=>_0x3ae608[_0x540640(0x122)]===_0xb209d0&&_0x11642f(_0x3ae608));}function _0xb71898(_0x46af6d,_0x3f33ea,_0x1dfd02){const _0x5e3c81=_0x5190c3;if(_0x3f33ea===_0x1dfd02){if(_0x19820e[_0x5e3c81(0x1dd)](_0x46af6d[_0x5e3c81(0x229)][_0x3f33ea]))throw new _0x3c9e54();return;}for(let _0x48a630=_0x3f33ea;_0x48a630<_0x1dfd02;_0x48a630++)if(_0x46af6d[_0x5e3c81(0x229)][_0x48a630]===_0x183152['DataStreamTreeTokenType'][_0x5e3c81(0x1c5)]||_0x19820e[_0x5e3c81(0x1dd)](_0x46af6d[_0x5e3c81(0x229)][_0x48a630]))throw new _0x3c9e54();}function _0x1399ed(_0x29a9a3,_0x16b5a4){const _0x22db9b=_0x5190c3;return{'startIndex':_0x16b5a4,'endIndex':_0x16b5a4,'rangeId':_0x29a9a3,'rangeType':_0x183152['CustomRangeType'][_0x22db9b(0x19e)],'wholeEntity':!0x0,'properties':{'kind':_0x348d61}};}function _0x165397(_0x4d144b){const _0x450372=_0x5190c3;return _0x4d144b?_0x183152[_0x450372(0x128)][_0x450372(0x160)](_0x4d144b):_0x2d0395();}function _0x4b0bcb(_0x568ae6,_0x3e287f,_0x4371ea){const _0x1b0895=_0x5190c3;let _0x40599e=_0x3397e7(_0x568ae6),_0x44092a=_0x3e287f??_0x40599e,_0x2bb5fd=_0x4371ea??_0x44092a;return{'startOffset':_0x4207ec(Math[_0x1b0895(0x18b)](_0x44092a,_0x2bb5fd),_0x40599e),'endOffset':_0x4207ec(Math[_0x1b0895(0x165)](_0x44092a,_0x2bb5fd),_0x40599e)};}function _0x4207ec(_0x3342de,_0x437ad9){const _0x131ab4=_0x5190c3;return Math[_0x131ab4(0x165)](0x0,Math[_0x131ab4(0x18b)](_0x3342de,_0x437ad9));}function _0x3397e7(_0x3b4343){const _0x5795ff=_0x5190c3;return _0x3b4343[_0x5795ff(0x229)][_0x5795ff(0x1e6)](''+_0x183152['DataStreamTreeTokenType'][_0x5795ff(0x1c5)]+_0x183152[_0x5795ff(0x1de)][_0x5795ff(0x240)])?Math[_0x5795ff(0x165)](0x0,_0x3b4343[_0x5795ff(0x229)][_0x5795ff(0x1e2)]-0x2):_0x3b4343[_0x5795ff(0x229)]['endsWith'](_0x183152[_0x5795ff(0x1de)][_0x5795ff(0x240)])?Math[_0x5795ff(0x165)](0x0,_0x3b4343[_0x5795ff(0x229)][_0x5795ff(0x1e2)]-0x1):_0x3b4343['dataStream'][_0x5795ff(0x1e2)];}function _0x343636(_0x2afa95,_0x49be22,_0x40bdfd,_0x578aba){_0x40bdfd>_0x49be22&&_0x2b98d4(_0x2afa95,_0x49be22,_0x40bdfd),_0x249359(_0x2afa95,_0x49be22,_0x578aba);}function _0x20e325(_0x142908,_0x2ef9d5,_0x523539){const _0x520ce5=_0x5190c3;var _0x248a1d,_0x39ef1f;let _0x2b5f82=_0x3c7415(_0x142908),_0x1be49f=(_0x248a1d=_0x2b5f82[_0x520ce5(0x145)])==null?void 0x0:_0x248a1d[_0x520ce5(0x1f5)](_0xfa575e=>_0xfa575e[_0x520ce5(0x122)]===_0x2ef9d5&&_0x11642f(_0xfa575e));if(!_0x1be49f)return null;let _0x2514b4=(0x0,_0x183152['getCustomRangeInterval'])(_0x1be49f);return _0x343636(_0x2b5f82,_0x2514b4[_0x520ce5(0x17f)],_0x2514b4[_0x520ce5(0x10b)],_0x523539),_0x2b5f82[_0x520ce5(0x145)]=(_0x39ef1f=_0x2b5f82['customRanges'])==null?void 0x0:_0x39ef1f[_0x520ce5(0x12b)](_0x7200c6=>_0x7200c6[_0x520ce5(0x122)]!==_0x2ef9d5),_0x2514b4[_0x520ce5(0x17f)]+_0x523539['length'];}function _0x249359(_0x326316,_0x36f055,_0x2b3272){const _0x5f454d=_0x5190c3;_0x2b3272&&(_0x326316[_0x5f454d(0x229)]=''+_0x326316[_0x5f454d(0x229)]['slice'](0x0,_0x36f055)+_0x2b3272+_0x326316['dataStream'][_0x5f454d(0x1d9)](_0x36f055),_0x864a52(_0x326316,_0x36f055,_0x2b3272[_0x5f454d(0x1e2)]));}function _0x2b98d4(_0x2a21f,_0x1df60a,_0x3e4060){const _0xb85749=_0x5190c3;let _0x1c3d3c=_0x3e4060-_0x1df60a;_0x2a21f[_0xb85749(0x229)]=''+_0x2a21f['dataStream']['slice'](0x0,_0x1df60a)+_0x2a21f[_0xb85749(0x229)][_0xb85749(0x1d9)](_0x3e4060),_0x5317d6(_0x2a21f,_0x1df60a,_0x1c3d3c);}function _0x864a52(_0x2b2f49,_0x23e102,_0x5795f2){const _0x4b096f=_0x5190c3;_0x2b2f49[_0x4b096f(0x21a)]=_0x2ee326(_0x2b2f49['paragraphs'],_0x23e102,_0x5795f2),_0x2b2f49[_0x4b096f(0x177)]=_0x2ee326(_0x2b2f49[_0x4b096f(0x177)],_0x23e102,_0x5795f2),_0x2b2f49[_0x4b096f(0x1a2)]=_0x2ee326(_0x2b2f49[_0x4b096f(0x1a2)],_0x23e102,_0x5795f2),_0x2b2f49['textRuns']=_0x39c4a7(_0x2b2f49[_0x4b096f(0x14b)],_0x23e102,_0x5795f2),_0x2b2f49['tables']=_0x5347d9(_0x2b2f49[_0x4b096f(0x126)],_0x23e102,_0x5795f2),_0x2b2f49['columnGroups']=_0x217e9e(_0x2b2f49['columnGroups'],_0x23e102,_0x5795f2),_0x2b2f49[_0x4b096f(0x145)]=_0x217e9e(_0x2b2f49['customRanges'],_0x23e102,_0x5795f2),_0x2b2f49[_0x4b096f(0x1cc)]=_0x217e9e(_0x2b2f49[_0x4b096f(0x1cc)],_0x23e102,_0x5795f2),_0x2b2f49['blockRanges']=_0x217e9e(_0x2b2f49[_0x4b096f(0x1b6)],_0x23e102,_0x5795f2);}function _0x5317d6(_0x183075,_0x5bbb6a,_0x4db429){const _0x22f132=_0x5190c3;var _0x353101,_0x4bb5d7;_0x183075[_0x22f132(0x21a)]=_0x2868a0(_0x183075[_0x22f132(0x21a)],_0x5bbb6a,_0x4db429),_0x183075['sectionBreaks']=_0x2868a0(_0x183075['sectionBreaks'],_0x5bbb6a,_0x4db429),_0x183075[_0x22f132(0x1a2)]=_0x2868a0(_0x183075[_0x22f132(0x1a2)],_0x5bbb6a,_0x4db429),_0x183075['textRuns']=(_0x353101=_0x1a7aa9((_0x4bb5d7=_0x183075[_0x22f132(0x14b)])==null?void 0x0:_0x4bb5d7[_0x22f132(0x1b9)](_0x131c31=>({..._0x131c31,'startIndex':_0x131c31['st'],'endIndex':_0x131c31['ed']})),_0x5bbb6a,_0x4db429))==null?void 0x0:_0x353101[_0x22f132(0x1b9)](_0x3e7634=>{let {startIndex:_0x15d430,endIndex:_0x4bf208,..._0x41589e}=_0x3e7634;return{..._0x41589e,'st':_0x15d430,'ed':_0x4bf208};}),_0x183075[_0x22f132(0x126)]=_0x1a7aa9(_0x183075[_0x22f132(0x126)],_0x5bbb6a,_0x4db429),_0x183075[_0x22f132(0x13a)]=_0x4be033(_0x183075[_0x22f132(0x13a)],_0x5bbb6a,_0x4db429),_0x183075[_0x22f132(0x145)]=_0x4be033(_0x183075[_0x22f132(0x145)],_0x5bbb6a,_0x4db429),_0x183075[_0x22f132(0x1cc)]=_0x4be033(_0x183075[_0x22f132(0x1cc)],_0x5bbb6a,_0x4db429),_0x183075[_0x22f132(0x1b6)]=_0x4be033(_0x183075[_0x22f132(0x1b6)],_0x5bbb6a,_0x4db429);}function _0x2ee326(_0x45a071,_0x23c59e,_0x847fb){const _0x3d3fa3=_0x5190c3;return _0x45a071==null?void 0x0:_0x45a071[_0x3d3fa3(0x1b9)](_0x387c31=>_0x387c31[_0x3d3fa3(0x12d)]>=_0x23c59e?{..._0x387c31,'startIndex':_0x387c31['startIndex']+_0x847fb}:_0x387c31);}function _0x2868a0(_0x1f1274,_0x321d51,_0x2e31f1){const _0x408e2d=_0x5190c3;let _0x7ad7b9=_0x321d51+_0x2e31f1;return _0x1f1274==null?void 0x0:_0x1f1274[_0x408e2d(0x1b9)](_0x57f3d8=>_0x57f3d8[_0x408e2d(0x12d)]>=_0x321d51&&_0x57f3d8[_0x408e2d(0x12d)]<_0x7ad7b9?null:_0x57f3d8['startIndex']>=_0x7ad7b9?{..._0x57f3d8,'startIndex':_0x57f3d8['startIndex']-_0x2e31f1}:_0x57f3d8)[_0x408e2d(0x12b)](_0x1f6f5f=>_0x1f6f5f!=null);}function _0x39c4a7(_0x1cdac6,_0x36e928,_0x247b75){return _0x1cdac6==null?void 0x0:_0x1cdac6['map'](_0x7b776c=>_0x7b776c['st']>=_0x36e928?{..._0x7b776c,'st':_0x7b776c['st']+_0x247b75,'ed':_0x7b776c['ed']+_0x247b75}:_0x7b776c['ed']>_0x36e928?{..._0x7b776c,'ed':_0x7b776c['ed']+_0x247b75}:_0x7b776c);}function _0x217e9e(_0x10a6e0,_0x19624b,_0x21ac1b){const _0x139e1a=_0x5190c3;return _0x10a6e0==null?void 0x0:_0x10a6e0[_0x139e1a(0x1b9)](_0x59cb89=>(0x0,_0x183152['shiftInclusiveRangeOnInsert'])(_0x59cb89,_0x19624b,_0x21ac1b));}function _0x5347d9(_0x4c87ab,_0x42c2fd,_0x19a7dc){const _0x44b8ce=_0x5190c3;return _0x4c87ab==null?void 0x0:_0x4c87ab[_0x44b8ce(0x1b9)](_0x299612=>(0x0,_0x183152[_0x44b8ce(0x138)])(_0x299612,_0x42c2fd,_0x19a7dc));}function _0x4be033(_0x4749c1,_0x4114a9,_0x41115f){const _0x24474b=_0x5190c3;return _0x4749c1==null?void 0x0:_0x4749c1[_0x24474b(0x1b9)](_0x342c23=>(0x0,_0x183152['shiftInclusiveRangeOnDelete'])(_0x342c23,_0x4114a9,_0x41115f))[_0x24474b(0x12b)](_0x5f4a7f=>_0x5f4a7f!=null);}function _0x1a7aa9(_0x1290b6,_0x21121b,_0x35810f){const _0x14d7d6=_0x5190c3;return _0x1290b6==null?void 0x0:_0x1290b6[_0x14d7d6(0x1b9)](_0x4ebb9a=>(0x0,_0x183152[_0x14d7d6(0x159)])(_0x4ebb9a,_0x21121b,_0x35810f))[_0x14d7d6(0x12b)](_0x11c966=>_0x11c966!=null);}function _0x3c7415(_0x53173e){const _0x2a3c4f=_0x5190c3;if(!_0x53173e['body'])throw Error(_0x2a3c4f(0x17a));return _0x53173e[_0x2a3c4f(0x18a)];}function _0xf98fa8(_0x2abaf3){'@babel/helpers - typeof';const _0x1cadef=_0x5190c3;return _0xf98fa8=typeof Symbol=='function'&&typeof Symbol[_0x1cadef(0x144)]==_0x1cadef(0x1ba)?function(_0x2655c8){return typeof _0x2655c8;}:function(_0x3157fe){const _0x1214e5=_0x1cadef;return _0x3157fe&&typeof Symbol=='function'&&_0x3157fe[_0x1214e5(0x1c2)]===Symbol&&_0x3157fe!==Symbol[_0x1214e5(0x107)]?_0x1214e5(0x1ba):typeof _0x3157fe;},_0xf98fa8(_0x2abaf3);}function _0x1921c6(_0xfa79d4,_0x46f46b){const _0x58c890=_0x5190c3;if(_0xf98fa8(_0xfa79d4)!=_0x58c890(0x21f)||!_0xfa79d4)return _0xfa79d4;var _0x3ee981=_0xfa79d4[Symbol[_0x58c890(0x170)]];if(_0x3ee981!==void 0x0){var _0x20af67=_0x3ee981[_0x58c890(0x1ad)](_0xfa79d4,_0x46f46b||_0x58c890(0x244));if(_0xf98fa8(_0x20af67)!=_0x58c890(0x21f))return _0x20af67;throw TypeError(_0x58c890(0x180));}return(_0x46f46b===_0x58c890(0x13c)?String:Number)(_0xfa79d4);}function _0x3c7b7d(_0x3f5471){const _0xdd7e3b=_0x5190c3;var _0x2161d4=_0x1921c6(_0x3f5471,_0xdd7e3b(0x13c));return _0xf98fa8(_0x2161d4)==_0xdd7e3b(0x1ba)?_0x2161d4:_0x2161d4+'';}function _0x34651a(_0x5e6d78,_0x2d9f38,_0x12bc12){const _0x3f8901=_0x5190c3;return(_0x2d9f38=_0x3c7b7d(_0x2d9f38))in _0x5e6d78?Object[_0x3f8901(0x203)](_0x5e6d78,_0x2d9f38,{'value':_0x12bc12,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x5e6d78[_0x2d9f38]=_0x12bc12,_0x5e6d78;}var _0x11f2bf=class extends _0x183152[_0x5190c3(0x100)]{constructor(..._0x5dbe6d){const _0xcf2a7d=_0x5190c3;super(..._0x5dbe6d),_0x34651a(this,'_resources',new Map()),_0x34651a(this,_0xcf2a7d(0x12a),new Map()),_0x34651a(this,_0xcf2a7d(0x187),new Map()),_0x34651a(this,_0xcf2a7d(0x10d),new _0xb85794[(_0xcf2a7d(0x18f))]()),_0x34651a(this,_0xcf2a7d(0x127),this[_0xcf2a7d(0x10d)]['asObservable']());}[_0x5190c3(0x232)](_0x177c9e,_0x59cc9d){const _0x217ca6=_0x5190c3;var _0x588abb;let _0x2c6603=(_0x588abb=this[_0x217ca6(0x1f2)][_0x217ca6(0x1fa)](_0x177c9e))==null?void 0x0:_0x588abb['formulas'][_0x59cc9d];return _0x2c6603?_0x183152[_0x217ca6(0x128)][_0x217ca6(0x160)](_0x2c6603):void 0x0;}['getFormulas'](_0x5e898d){const _0x4fe1ce=_0x5190c3;var _0x23ad88;return _0x183152[_0x4fe1ce(0x128)][_0x4fe1ce(0x160)](((_0x23ad88=this[_0x4fe1ce(0x1f2)]['get'](_0x5e898d))==null?void 0x0:_0x23ad88['formulas'])??{});}[_0x5190c3(0x158)](_0x4b5609){const _0x421558=_0x5190c3;let _0x5c0877=this[_0x421558(0x1f2)]['get'](_0x4b5609);return _0x5c0877?_0x183152[_0x421558(0x128)][_0x421558(0x160)](_0x5c0877):void 0x0;}[_0x5190c3(0x22e)](_0x5ca471,_0x2e6a8b,_0xc97b96){const _0x4c6a91=_0x5190c3;return this[_0x4c6a91(0x1b5)](_0x5ca471,{[_0x2e6a8b]:_0xc97b96});}[_0x5190c3(0x16e)](_0x3c57c7,_0x355835){const _0x27bf9f=_0x5190c3;return this['_loadErrors'][_0x27bf9f(0x1dd)](_0x3c57c7)||!_0x48fcca(_0x355835)?!0x1:(this[_0x27bf9f(0x1f2)][_0x27bf9f(0x19f)](_0x3c57c7,_0x183152[_0x27bf9f(0x128)][_0x27bf9f(0x160)](_0x355835)),this[_0x27bf9f(0x10d)][_0x27bf9f(0x184)]({'unitId':_0x3c57c7}),!0x0);}[_0x5190c3(0x1b5)](_0x5d07e4,_0x16c8de){const _0x176b77=_0x5190c3;if(this[_0x176b77(0x187)][_0x176b77(0x1dd)](_0x5d07e4)||!Object[_0x176b77(0x13f)](_0x16c8de)[_0x176b77(0x1e2)]||!_0x48fcca({'schemaVersion':0x1,'formulas':_0x16c8de}))return!0x1;let _0x4c1eb5=this[_0x176b77(0x1f2)][_0x176b77(0x1fa)](_0x5d07e4)??_0x2d0395(),_0x31f848=_0x183152['Tools'][_0x176b77(0x160)](_0x4c1eb5);return Object['assign'](_0x31f848['formulas'],_0x183152[_0x176b77(0x128)]['deepClone'](_0x16c8de)),this[_0x176b77(0x1f2)][_0x176b77(0x19f)](_0x5d07e4,_0x31f848),this[_0x176b77(0x10d)][_0x176b77(0x184)]({'unitId':_0x5d07e4,'rangeIds':Object[_0x176b77(0x13f)](_0x16c8de)}),!0x0;}[_0x5190c3(0x230)](_0x3a0e8c,_0x2d64a8){const _0x21035a=_0x5190c3;if(this[_0x21035a(0x187)]['has'](_0x3a0e8c))return!0x1;let _0x34fca6=this['_resources'][_0x21035a(0x1fa)](_0x3a0e8c);if(!(_0x34fca6!=null&&_0x34fca6['formulas'][_0x2d64a8]))return!0x1;let _0x33a0e1=_0x183152[_0x21035a(0x128)]['deepClone'](_0x34fca6);return delete _0x33a0e1[_0x21035a(0x231)][_0x2d64a8],this['_resources'][_0x21035a(0x19f)](_0x3a0e8c,_0x33a0e1),this['_change$']['next']({'unitId':_0x3a0e8c,'rangeIds':[_0x2d64a8]}),!0x0;}[_0x5190c3(0x118)](_0x516e8d,_0x42dd10){const _0x2a9c7d=_0x5190c3;return _0x42dd10&&typeof _0x42dd10==_0x2a9c7d(0x21f)&&'schemaVersion'in _0x42dd10&&_0x42dd10['schemaVersion']!==0x1?(this['_preserveInvalid'](_0x516e8d,_0x42dd10,_0x2a9c7d(0x1d4)),!0x1):_0x48fcca(_0x42dd10)?(this[_0x2a9c7d(0x1f2)]['set'](_0x516e8d,_0x183152[_0x2a9c7d(0x128)][_0x2a9c7d(0x160)](_0x42dd10)),this[_0x2a9c7d(0x12a)][_0x2a9c7d(0x186)](_0x516e8d),this[_0x2a9c7d(0x187)][_0x2a9c7d(0x186)](_0x516e8d),this[_0x2a9c7d(0x10d)]['next']({'unitId':_0x516e8d}),!0x0):(this[_0x2a9c7d(0x106)](_0x516e8d,_0x42dd10,_0x2a9c7d(0x1d3)),!0x1);}[_0x5190c3(0x23d)](_0x43557b){const _0x16765b=_0x5190c3;let _0x1b177c=this[_0x16765b(0x1f2)]['get'](_0x43557b);return _0x1b177c?_0x183152[_0x16765b(0x128)][_0x16765b(0x160)](_0x1b177c):this[_0x16765b(0x12a)]['has'](_0x43557b)?_0x183152['Tools'][_0x16765b(0x160)](this[_0x16765b(0x12a)][_0x16765b(0x1fa)](_0x43557b)):_0x2d0395();}[_0x5190c3(0x16f)](_0xd154a1){const _0x3cffc7=_0x5190c3;return this[_0x3cffc7(0x187)][_0x3cffc7(0x1fa)](_0xd154a1);}[_0x5190c3(0x1a1)](_0x48568e){const _0x530628=_0x5190c3;this[_0x530628(0x1f2)][_0x530628(0x186)](_0x48568e),this[_0x530628(0x12a)][_0x530628(0x186)](_0x48568e),this[_0x530628(0x187)][_0x530628(0x186)](_0x48568e),this['_change$'][_0x530628(0x184)]({'unitId':_0x48568e});}['dispose'](){const _0xd5fa83=_0x5190c3;this[_0xd5fa83(0x1f2)][_0xd5fa83(0x22f)](),this['_rawResources'][_0xd5fa83(0x22f)](),this[_0xd5fa83(0x187)][_0xd5fa83(0x22f)](),this['_change$'][_0xd5fa83(0x1c8)](),super[_0xd5fa83(0x11b)]();}[_0x5190c3(0x106)](_0x5b609c,_0x49f5d8,_0x15aae8){const _0x16d528=_0x5190c3;this['_resources']['delete'](_0x5b609c),this[_0x16d528(0x12a)][_0x16d528(0x19f)](_0x5b609c,_0x183152['Tools'][_0x16d528(0x160)](_0x49f5d8)),this[_0x16d528(0x187)]['set'](_0x5b609c,_0x15aae8),this[_0x16d528(0x10d)][_0x16d528(0x184)]({'unitId':_0x5b609c});}};let _0x2940b2=function(_0x30ad13){const _0x33c1ca=_0x5190c3;return _0x30ad13[_0x33c1ca(0x1e4)]='empty',_0x30ad13['PENDING']='pending',_0x30ad13[_0x33c1ca(0x11e)]='success',_0x30ad13[_0x33c1ca(0x1e8)]='error',_0x30ad13;}({});function _0x500cc3(_0x769908,_0x4c35b5){return function(_0x29b7b7,_0x27e78e){_0x4c35b5(_0x29b7b7,_0x27e78e,_0x769908);};}function _0x299920(_0x338ced,_0x326c86,_0x3ab65a,_0x495e53){const _0x38438d=_0x5190c3;var _0x4bff50=arguments[_0x38438d(0x1e2)],_0x49661=_0x4bff50<0x3?_0x326c86:_0x495e53===null?_0x495e53=Object[_0x38438d(0x225)](_0x326c86,_0x3ab65a):_0x495e53,_0x3034c9;if(typeof Reflect==_0x38438d(0x21f)&&typeof Reflect['decorate']==_0x38438d(0x1d8))_0x49661=Reflect[_0x38438d(0x206)](_0x338ced,_0x326c86,_0x3ab65a,_0x495e53);else{for(var _0x27d534=_0x338ced[_0x38438d(0x1e2)]-0x1;_0x27d534>=0x0;_0x27d534--)(_0x3034c9=_0x338ced[_0x27d534])&&(_0x49661=(_0x4bff50<0x3?_0x3034c9(_0x49661):_0x4bff50>0x3?_0x3034c9(_0x326c86,_0x3ab65a,_0x49661):_0x3034c9(_0x326c86,_0x3ab65a))||_0x49661);}return _0x4bff50>0x3&&_0x49661&&Object['defineProperty'](_0x326c86,_0x3ab65a,_0x49661),_0x49661;}let _0x2b3eec=class extends _0x183152[_0x5190c3(0x100)]{constructor(_0x10aedb,_0x159ea5,_0x13117b){const _0x48d237=_0x5190c3;super(),this[_0x48d237(0xff)]=_0x10aedb,this[_0x48d237(0x112)]=_0x159ea5,this[_0x48d237(0x1f9)]=_0x13117b,_0x34651a(this,_0x48d237(0x227),new Map()),_0x34651a(this,_0x48d237(0x13d),new Map()),_0x34651a(this,'_presentationChanged$',new _0xb85794[(_0x48d237(0x18f))]()),_0x34651a(this,'presentationChanged$',this[_0x48d237(0x18d)]['asObservable']()),this['disposeWithMe'](this['_registrationService'][_0x48d237(0x1fc)][_0x48d237(0x175)](_0x2cd366=>{const _0x2d9b9d=_0x48d237;for(let _0x51a8e4 of Object[_0x2d9b9d(0x148)](_0x2cd366))for(let _0xf95961 of Object[_0x2d9b9d(0x148)](_0x51a8e4))_0xf95961[_0x2d9b9d(0x172)](_0x4f1604=>this[_0x2d9b9d(0x1f8)](_0x4f1604));}));}['syncUnit'](_0x4717d7){const _0x1b5ef4=_0x5190c3;var _0x25c8bd;let _0x3da86e=_0x4717d7['getUnitId'](),_0x1cc6fe=((_0x25c8bd=_0x4717d7[_0x1b5ef4(0x1fd)]()[_0x1b5ef4(0x18a)])==null||(_0x25c8bd=_0x25c8bd[_0x1b5ef4(0x145)])==null?void 0x0:_0x25c8bd['filter'](_0x11642f))??[],_0xf04da4=this['_model'][_0x1b5ef4(0x201)](_0x3da86e),_0x3b26b9=new Set();for(let _0x432da9 of _0x1cc6fe){let _0xb040f1=_0xf04da4[_0x432da9['rangeId']];_0xb040f1&&(_0x3b26b9[_0x1b5ef4(0x176)](_0x3adbeb(_0x3da86e,_0x432da9[_0x1b5ef4(0x122)])),this[_0x1b5ef4(0x1ee)]({'unitId':_0x3da86e,'rangeId':_0x432da9[_0x1b5ef4(0x122)]},_0xb040f1));}for(let _0x1d30aa of Array[_0x1b5ef4(0x16a)](this['_registrations'][_0x1b5ef4(0x148)]()))_0x1d30aa[_0x1b5ef4(0x15a)]===_0x3da86e&&!_0x3b26b9['has'](_0x3adbeb(_0x1d30aa[_0x1b5ef4(0x15a)],_0x1d30aa[_0x1b5ef4(0x122)]))&&this['unregister'](_0x1d30aa);}['register'](_0x7120d0,_0x71595d){const _0x35427d=_0x5190c3;let _0x41d963=_0x3adbeb(_0x7120d0[_0x35427d(0x15a)],_0x7120d0[_0x35427d(0x122)]),_0x34d78e=this[_0x35427d(0x227)][_0x35427d(0x1fa)](_0x41d963),_0x24dfe8=this[_0x35427d(0x1f9)][_0x35427d(0x139)](_0x7120d0[_0x35427d(0x15a)]);if(_0x34d78e&&_0x34d78e[_0x35427d(0x1cb)][_0x35427d(0x239)]===_0x71595d[_0x35427d(0x239)]&&_0x34d78e[_0x35427d(0x241)]===_0x24dfe8){_0x34d78e[_0x35427d(0x1cb)]=_0x71595d;let _0x28250c=_0x34d78e['formulaId']?this[_0x35427d(0x112)][_0x35427d(0x1eb)](_0x34d78e[_0x35427d(0x15a)],_0x34d78e[_0x35427d(0x15a)],_0x34d78e[_0x35427d(0x210)])??void 0x0:void 0x0;_0x34d78e[_0x35427d(0x1e5)]=_0x28250c,this[_0x35427d(0x1a0)](_0x41d963,_0x453e00(_0x71595d,_0x28250c));return;}_0x34d78e!=null&&_0x34d78e[_0x35427d(0x210)]&&this[_0x35427d(0x19a)](_0x34d78e);let _0x45285b={..._0x7120d0,'config':_0x71595d,'referenceRevision':_0x24dfe8,'presentation':_0x453e00(_0x71595d,void 0x0)};if(this[_0x35427d(0x227)][_0x35427d(0x19f)](_0x41d963,_0x45285b),!_0x71595d[_0x35427d(0x239)][_0x35427d(0x14c)]())return;let _0x3e68c0=this[_0x35427d(0x112)][_0x35427d(0x15d)](_0x7120d0[_0x35427d(0x15a)],_0x7120d0[_0x35427d(0x15a)],_0x71595d[_0x35427d(0x239)],void 0x0,{'rangeId':_0x7120d0[_0x35427d(0x122)]},_0x56a765[_0x35427d(0x17b)][_0x35427d(0x1bb)],_0x7120d0[_0x35427d(0x122)]);_0x45285b[_0x35427d(0x210)]=_0x3e68c0,this['_formulaKeys']['set'](_0x3e68c0,_0x41d963);}[_0x5190c3(0x1ff)](_0x31ddf0){const _0x48cd07=_0x5190c3;let _0x388649=_0x3adbeb(_0x31ddf0[_0x48cd07(0x15a)],_0x31ddf0[_0x48cd07(0x122)]),_0x175774=this[_0x48cd07(0x227)][_0x48cd07(0x1fa)](_0x388649);_0x175774&&(this[_0x48cd07(0x19a)](_0x175774),this['_registrations'][_0x48cd07(0x186)](_0x388649));}[_0x5190c3(0x1ce)](_0x4cf8ca){const _0x35b84e=_0x5190c3;for(let _0x4d5dbf of Array[_0x35b84e(0x16a)](this[_0x35b84e(0x227)][_0x35b84e(0x148)]()))_0x4d5dbf[_0x35b84e(0x15a)]===_0x4cf8ca&&this['unregister'](_0x4d5dbf);}[_0x5190c3(0x1af)](_0x623311){const _0x18f4cf=_0x5190c3;var _0x11b536;return(_0x11b536=this[_0x18f4cf(0x227)][_0x18f4cf(0x1fa)](_0x3adbeb(_0x623311[_0x18f4cf(0x15a)],_0x623311[_0x18f4cf(0x122)])))==null?void 0x0:_0x11b536[_0x18f4cf(0x216)];}[_0x5190c3(0x14d)](_0x411b92){const _0x4ebd96=_0x5190c3;let _0x547b1e=this[_0x4ebd96(0x227)][_0x4ebd96(0x1fa)](_0x3adbeb(_0x411b92[_0x4ebd96(0x15a)],_0x411b92['rangeId']));return _0x547b1e?_0x1523e8(_0x547b1e):void 0x0;}[_0x5190c3(0x207)](){const _0x49bebe=_0x5190c3;return Array[_0x49bebe(0x16a)](this[_0x49bebe(0x227)][_0x49bebe(0x148)](),_0x386fa3=>({'identity':{'unitId':_0x386fa3[_0x49bebe(0x15a)],'rangeId':_0x386fa3[_0x49bebe(0x122)]},'config':_0x386fa3[_0x49bebe(0x1cb)],'referenceRevision':_0x386fa3[_0x49bebe(0x241)],..._0x386fa3['liveResult']?{'liveResult':_0x386fa3[_0x49bebe(0x1e5)]}:null}));}['dispose'](){const _0x408342=_0x5190c3;for(let _0x1eb781 of this['_registrations']['values']())this[_0x408342(0x19a)](_0x1eb781);this[_0x408342(0x227)][_0x408342(0x22f)](),this['_formulaKeys'][_0x408342(0x22f)](),this[_0x408342(0x18d)][_0x408342(0x1c8)](),super[_0x408342(0x11b)]();}['_updateFormulaResult'](_0x512b50){const _0x3f1e52=_0x5190c3;let _0x128c5b=this[_0x3f1e52(0x13d)][_0x3f1e52(0x1fa)](_0x512b50[_0x3f1e52(0x210)]),_0x444125=_0x128c5b?this[_0x3f1e52(0x227)][_0x3f1e52(0x1fa)](_0x128c5b):void 0x0;!_0x128c5b||!_0x444125||(_0x444125[_0x3f1e52(0x1e5)]=_0x512b50,this[_0x3f1e52(0x1a0)](_0x128c5b,_0x453e00(_0x444125['config'],_0x512b50)));}[_0x5190c3(0x1a0)](_0x24aeab,_0x549e27){const _0x132f6b=_0x5190c3;var _0x5d87b4,_0x708bf0;let _0x2687bb=this[_0x132f6b(0x227)]['get'](_0x24aeab);if(!_0x2687bb||_0x27f9b4(_0x2687bb['presentation'],_0x549e27))return;let _0x2aa42c=_0x2687bb['presentation'],_0x21c8be=_0x1523e8(_0x2687bb);_0x2687bb[_0x132f6b(0x216)]=_0x549e27,this[_0x132f6b(0x18d)][_0x132f6b(0x184)]({'unitId':_0x2687bb[_0x132f6b(0x15a)],'rangeId':_0x2687bb[_0x132f6b(0x122)],'presentation':_0x549e27,'previousPresentation':_0x2aa42c,'result':_0x1523e8(_0x2687bb),'previousResult':{..._0x21c8be,..._0x2aa42c,'value':(_0x5d87b4=_0x2aa42c[_0x132f6b(0x110)])==null?void 0x0:_0x5d87b4['v'],'valueType':((_0x708bf0=_0x2aa42c[_0x132f6b(0x110)])==null?void 0x0:_0x708bf0['t'])??void 0x0}});}[_0x5190c3(0x19a)](_0x1c345c){const _0x3494d3=_0x5190c3;_0x1c345c[_0x3494d3(0x210)]&&(this['_registrationService'][_0x3494d3(0x149)](_0x1c345c[_0x3494d3(0x15a)],_0x1c345c[_0x3494d3(0x15a)],[_0x1c345c[_0x3494d3(0x210)]]),this[_0x3494d3(0x13d)][_0x3494d3(0x186)](_0x1c345c[_0x3494d3(0x210)]));}};_0x2b3eec=_0x299920([_0x500cc3(0x0,(0x0,_0x183152['Inject'])(_0x11f2bf)),_0x500cc3(0x1,(0x0,_0x183152['Inject'])(_0x56a765['RegisterOtherFormulaService'])),_0x500cc3(0x2,(0x0,_0x183152[_0x5190c3(0x208)])(_0x49a424[_0x5190c3(0x209)]))],_0x2b3eec);function _0x3adbeb(_0x560ee0,_0x31075e){return _0x560ee0+'\x00'+_0x31075e;}function _0x453e00(_0x113b27,_0x93b8f){const _0x5076d0=_0x5190c3;return(0x0,_0x49a424[_0x5076d0(0x1be)])({'numberFormat':_0x113b27['numberFormat'],'lastValue':_0x113b27['lastValue'],'result':_0x93b8f});}function _0x1523e8(_0x599688){const _0x562c69=_0x5190c3;var _0x219f3b,_0x3714a5,_0x7eb281;let _0x27139a=_0x599688[_0x562c69(0x216)],_0x15ffa3=_0x599688['config'][_0x562c69(0x239)][_0x562c69(0x14c)]()?_0x27139a[_0x562c69(0x1ed)]||_0x27139a['cell']==null?_0x562c69(0x1c9):((_0x219f3b=_0x599688['liveResult'])==null?void 0x0:_0x219f3b[_0x562c69(0x12e)])===_0x56a765[_0x562c69(0x204)][_0x562c69(0x1e8)]?_0x562c69(0x1e0):'success':_0x562c69(0x182);return{..._0x27139a,'status':_0x15ffa3,'value':(_0x3714a5=_0x27139a[_0x562c69(0x110)])==null?void 0x0:_0x3714a5['v'],'valueType':((_0x7eb281=_0x27139a[_0x562c69(0x110)])==null?void 0x0:_0x7eb281['t'])??void 0x0};}function _0x27f9b4(_0x59a7ea,_0x46cad2){const _0x205637=_0x5190c3;var _0x15c7de,_0x42b7dd,_0x82655,_0x48908f;return _0x59a7ea[_0x205637(0x15c)]===_0x46cad2[_0x205637(0x15c)]&&_0x59a7ea['color']===_0x46cad2[_0x205637(0x15f)]&&_0x59a7ea[_0x205637(0x1c4)]===_0x46cad2[_0x205637(0x1c4)]&&_0x59a7ea[_0x205637(0x157)]===_0x46cad2[_0x205637(0x157)]&&_0x59a7ea['stale']===_0x46cad2['stale']&&((_0x15c7de=_0x59a7ea['cell'])==null?void 0x0:_0x15c7de['t'])===((_0x42b7dd=_0x46cad2[_0x205637(0x110)])==null?void 0x0:_0x42b7dd['t'])&&Object['is']((_0x82655=_0x59a7ea[_0x205637(0x110)])==null?void 0x0:_0x82655['v'],(_0x48908f=_0x46cad2[_0x205637(0x110)])==null?void 0x0:_0x48908f['v']);}let _0x33e542={'id':_0x5190c3(0x1a7),'type':_0x183152['CommandType']['MUTATION'],'handler':(_0x51a813,_0x53dd4c)=>!(_0x53dd4c!=null&&_0x53dd4c[_0x5190c3(0x15a)])||!_0x53dd4c[_0x5190c3(0x122)]||!_0x53dd4c[_0x5190c3(0x1cb)]?!0x1:_0x51a813[_0x5190c3(0x1fa)](_0x11f2bf)['setFormula'](_0x53dd4c[_0x5190c3(0x15a)],_0x53dd4c['rangeId'],_0x53dd4c[_0x5190c3(0x1cb)])},_0x33280a={'id':_0x5190c3(0x20f),'type':_0x183152[_0x5190c3(0x1d0)][_0x5190c3(0x198)],'handler':(_0x5f9de2,_0x175ecc)=>!(_0x175ecc!=null&&_0x175ecc[_0x5190c3(0x15a)])||!_0x175ecc['rangeId']?!0x1:_0x5f9de2[_0x5190c3(0x1fa)](_0x11f2bf)[_0x5190c3(0x230)](_0x175ecc['unitId'],_0x175ecc[_0x5190c3(0x122)])},_0x49adcc={'id':_0x5190c3(0x143),'type':_0x183152[_0x5190c3(0x1d0)]['MUTATION'],'handler':(_0xfce073,_0x4cd5bd)=>!(_0x4cd5bd!=null&&_0x4cd5bd['unitId'])||!_0x4cd5bd[_0x5190c3(0x23f)]?!0x1:_0xfce073['get'](_0x11f2bf)[_0x5190c3(0x16e)](_0x4cd5bd['unitId'],_0x4cd5bd[_0x5190c3(0x23f)])},_0x2a4ae2={'id':_0x5190c3(0x134),'type':_0x183152['CommandType'][_0x5190c3(0x198)],'handler':(_0x28819e,_0x296b60)=>{const _0x154bb3=_0x5190c3;if(!(_0x296b60!=null&&_0x296b60['unitId'])||!_0x296b60[_0x154bb3(0x211)][_0x154bb3(0x1e2)])return!0x1;let _0x5ccbc4=_0x28819e[_0x154bb3(0x1fa)](_0x11f2bf),_0xf45a74=_0x28819e[_0x154bb3(0x1fa)](_0x49a424['HostExternalReferenceModel']),_0x4461dd=_0x5ccbc4[_0x154bb3(0x158)](_0x296b60['unitId']);if(!_0x4461dd)return!0x1;let _0x22e881=_0x183152[_0x154bb3(0x128)]['deepClone'](_0x4461dd),_0x21fd9f=!0x1;for(let _0x142eae of _0x296b60[_0x154bb3(0x211)]){var _0x1a5911,_0x37b736,_0x388215,_0x24ffeb;let _0x5beae6=_0x22e881[_0x154bb3(0x231)][_0x142eae[_0x154bb3(0x122)]];!_0x5beae6||_0x5beae6[_0x154bb3(0x239)]!==_0x142eae['expectedFormula']||((_0x1a5911=_0x5beae6[_0x154bb3(0x190)])==null?void 0x0:_0x1a5911[_0x154bb3(0x1c4)])!==_0x142eae[_0x154bb3(0x17c)]||_0xf45a74[_0x154bb3(0x139)](_0x296b60['unitId'])!==_0x142eae[_0x154bb3(0x167)]||(((_0x37b736=_0x5beae6[_0x154bb3(0x1b1)])==null?void 0x0:_0x37b736['v'])!==_0x142eae['lastValue']['v']||((_0x388215=_0x5beae6[_0x154bb3(0x1b1)])==null?void 0x0:_0x388215['t'])!==_0x142eae[_0x154bb3(0x1b1)]['t']||((_0x24ffeb=_0x5beae6[_0x154bb3(0x1b1)])==null?void 0x0:_0x24ffeb[_0x154bb3(0x1c4)])!==_0x142eae['lastValue'][_0x154bb3(0x1c4)])&&(_0x5beae6[_0x154bb3(0x1b1)]=_0x183152[_0x154bb3(0x128)][_0x154bb3(0x160)](_0x142eae[_0x154bb3(0x1b1)]),_0x21fd9f=!0x0);}return!_0x21fd9f||_0x5ccbc4[_0x154bb3(0x16e)](_0x296b60['unitId'],_0x22e881);}},_0x381968={'id':_0x5190c3(0x195),'type':_0x183152[_0x5190c3(0x1d0)][_0x5190c3(0x102)],'handler':(_0x446a41,_0x34d706)=>{const _0x3f9efc=_0x5190c3;if(!(_0x34d706!=null&&_0x34d706[_0x3f9efc(0x239)][_0x3f9efc(0x14c)]()))return!0x1;let _0x32ab8d=_0x3548cd(_0x446a41,_0x34d706[_0x3f9efc(0x15a)],'');if(!_0x32ab8d)return!0x1;let _0x23846a=_0x239404(_0x34d706[_0x3f9efc(0x245)],_0x32ab8d[_0x3f9efc(0x18a)],_0x4a4592(_0x446a41,_0x32ab8d[_0x3f9efc(0x15a)]));if(!_0x23846a)return!0x1;let _0x52e465=_0x5acbc5(_0x446a41,_0x32ab8d[_0x3f9efc(0x15a)],_0x34d706[_0x3f9efc(0x239)],_0x34d706['externalReferences']??[]);if(!_0x52e465)return!0x1;let _0x3e70b6=_0x58b27b(_0x32ab8d[_0x3f9efc(0x18a)],_0x32ab8d[_0x3f9efc(0x1b8)],_0x32ab8d[_0x3f9efc(0x15a)]),_0x55e8e0=_0x4d6e72({'documentData':_0x32ab8d['documentData'],'resource':_0x32ab8d['resource'],'rangeId':_0x3e70b6,'config':{'formula':_0x34d706[_0x3f9efc(0x239)],..._0x34d706[_0x3f9efc(0x190)]?{'numberFormat':_0x34d706[_0x3f9efc(0x190)]}:null},'startOffset':_0x23846a[_0x3f9efc(0x17f)],'endOffset':_0x23846a[_0x3f9efc(0x10b)]});if(!_0x55e8e0)return!0x1;let _0x9c1788=(0x0,_0x49a424[_0x3f9efc(0x123)])(_0x446a41,_0x32ab8d[_0x3f9efc(0x15a)],_0x52e465);return!_0x9c1788||!_0x51ad31({'accessor':_0x446a41,'document':_0x32ab8d[_0x3f9efc(0x173)],'unitId':_0x32ab8d[_0x3f9efc(0x15a)],'trigger':_0x381968['id'],'rangeId':_0x3e70b6,'previousResource':_0x32ab8d[_0x3f9efc(0x23f)],'nextResource':_0x55e8e0[_0x3f9efc(0x1e7)],'previousDocumentData':_0x32ab8d['documentData'],'nextDocumentData':_0x55e8e0[_0x3f9efc(0x154)],'cursorOffset':_0x55e8e0[_0x3f9efc(0x1ac)],'externalMutations':_0x9c1788})?!0x1:{'rangeId':_0x3e70b6,'startOffset':_0x55e8e0[_0x3f9efc(0x1ac)]-0x1,'endOffset':_0x55e8e0[_0x3f9efc(0x1ac)]};}},_0x191887={'id':_0x5190c3(0x1ea),'type':_0x183152['CommandType'][_0x5190c3(0x102)],'handler':(_0x4149c1,_0x29abb3)=>{const _0x30364f=_0x5190c3;if(!(_0x29abb3!=null&&_0x29abb3['rangeId'])||!_0x29abb3[_0x30364f(0x239)]['trim']())return!0x1;let _0xe1d625=_0x3548cd(_0x4149c1,_0x29abb3[_0x30364f(0x15a)],''),_0x2ae640=_0xe1d625==null?void 0x0:_0xe1d625['model'][_0x30364f(0x232)](_0xe1d625[_0x30364f(0x15a)],_0x29abb3[_0x30364f(0x122)]),_0x352a13=_0xe1d625?_0x5dd8f2(_0xe1d625[_0x30364f(0x222)][_0x30364f(0x18a)],_0x29abb3['rangeId']):void 0x0;if(!_0xe1d625||!_0x2ae640||!_0x352a13)return!0x1;let _0x5e848c=_0x5acbc5(_0x4149c1,_0xe1d625[_0x30364f(0x15a)],_0x29abb3[_0x30364f(0x239)],_0x29abb3[_0x30364f(0x164)]??[]);if(!_0x5e848c)return!0x1;let _0x6064bd=(0x0,_0x49a424[_0x30364f(0x123)])(_0x4149c1,_0xe1d625[_0x30364f(0x15a)],_0x5e848c);if(!_0x6064bd)return!0x1;let _0xc054f9=_0x28b943(_0xe1d625['resource']);return _0xc054f9[_0x30364f(0x231)][_0x29abb3[_0x30364f(0x122)]]={'formula':_0x29abb3['formula'],..._0x29abb3['numberFormat']?{'numberFormat':_0x29abb3[_0x30364f(0x190)]}:_0x2ae640[_0x30364f(0x190)]?{'numberFormat':_0x2ae640[_0x30364f(0x190)]}:null},_0x51ad31({'accessor':_0x4149c1,'document':_0xe1d625[_0x30364f(0x173)],'unitId':_0xe1d625[_0x30364f(0x15a)],'trigger':_0x191887['id'],'rangeId':_0x29abb3[_0x30364f(0x122)],'previousResource':_0xe1d625[_0x30364f(0x23f)],'nextResource':_0xc054f9,'cursorOffset':_0x352a13[_0x30364f(0x17e)]+0x1,'externalMutations':_0x6064bd});}},_0x5e200b={'id':_0x5190c3(0x1fb),'type':_0x183152['CommandType'][_0x5190c3(0x102)],'handler':(_0x52687e,_0xf08c8e)=>{const _0x302189=_0x5190c3;if(!(_0xf08c8e!=null&&_0xf08c8e[_0x302189(0x122)]))return!0x1;let _0x17a1f8=_0x3548cd(_0x52687e,_0xf08c8e['unitId'],''),_0x1cb3ee=_0x17a1f8==null?void 0x0:_0x17a1f8[_0x302189(0x1b8)]['getFormula'](_0x17a1f8[_0x302189(0x15a)],_0xf08c8e[_0x302189(0x122)]),_0x57e2cd=_0x17a1f8?_0x5dd8f2(_0x17a1f8[_0x302189(0x222)][_0x302189(0x18a)],_0xf08c8e[_0x302189(0x122)]):void 0x0;if(!_0x17a1f8||!_0x1cb3ee||!_0x57e2cd)return!0x1;let _0x2223b8=_0x28b943(_0x17a1f8[_0x302189(0x23f)]);return _0x2223b8[_0x302189(0x231)][_0xf08c8e[_0x302189(0x122)]]={..._0x1cb3ee,..._0xf08c8e[_0x302189(0x190)]?{'numberFormat':_0xf08c8e[_0x302189(0x190)]}:null},_0xf08c8e['numberFormat']||delete _0x2223b8[_0x302189(0x231)][_0xf08c8e['rangeId']][_0x302189(0x190)],_0x51ad31({'accessor':_0x52687e,'document':_0x17a1f8[_0x302189(0x173)],'unitId':_0x17a1f8[_0x302189(0x15a)],'trigger':_0x5e200b['id'],'rangeId':_0xf08c8e[_0x302189(0x122)],'previousResource':_0x17a1f8[_0x302189(0x23f)],'nextResource':_0x2223b8,'cursorOffset':_0x57e2cd[_0x302189(0x17e)]+0x1,'externalMutations':{}});}},_0x591a56={'id':_0x5190c3(0x200),'type':_0x183152[_0x5190c3(0x1d0)][_0x5190c3(0x102)],'handler':(_0x203eaf,_0x2889e6)=>_0x54e9b3(_0x203eaf,_0x2889e6,'',_0x591a56['id'])},_0x58cd44={'id':_0x5190c3(0x1aa),'type':_0x183152[_0x5190c3(0x1d0)][_0x5190c3(0x102)],'handler':(_0x4d2376,_0x353063)=>_0x54e9b3(_0x4d2376,_0x353063,(_0x353063==null?void 0x0:_0x353063[_0x5190c3(0x15c)])??'',_0x58cd44['id'])},_0xd2841f={'id':_0x5190c3(0x1f0),'type':_0x183152[_0x5190c3(0x1d0)][_0x5190c3(0x102)],'handler':(_0x3b0ae1,_0x3577f9)=>{const _0x2e9923=_0x5190c3;if(!(_0x3577f9!=null&&_0x3577f9[_0x2e9923(0x122)]))return!0x1;let _0x284034=_0x3548cd(_0x3b0ae1,_0x3577f9[_0x2e9923(0x15a)],'');if(!_0x284034)return!0x1;let _0x1eb70c=_0x3b0ae1[_0x2e9923(0x1fa)](_0x2b3eec)[_0x2e9923(0x14d)]({'unitId':_0x284034[_0x2e9923(0x15a)],'rangeId':_0x3577f9[_0x2e9923(0x122)]});return _0x1eb70c?_0x54e9b3(_0x3b0ae1,_0x3577f9,_0x1eb70c['text'],_0xd2841f['id']):!0x1;}};function _0x54e9b3(_0x3e6371,_0x5d3420,_0x363a7d,_0xf43d74){const _0x5449f1=_0x5190c3;if(!(_0x5d3420!=null&&_0x5d3420[_0x5449f1(0x122)]))return!0x1;let _0x181aa4=_0x3548cd(_0x3e6371,_0x5d3420[_0x5449f1(0x15a)],'');if(!_0x181aa4)return!0x1;let _0x30fcaf=_0x580626({'documentData':_0x181aa4[_0x5449f1(0x222)],'resource':_0x181aa4['resource'],'rangeId':_0x5d3420['rangeId'],'text':_0x363a7d});return _0x30fcaf?_0x51ad31({'accessor':_0x3e6371,'document':_0x181aa4['document'],'unitId':_0x181aa4['unitId'],'trigger':_0xf43d74,'rangeId':_0x5d3420[_0x5449f1(0x122)],'previousResource':_0x181aa4[_0x5449f1(0x23f)],'nextResource':_0x30fcaf[_0x5449f1(0x1e7)],'previousDocumentData':_0x181aa4[_0x5449f1(0x222)],'nextDocumentData':_0x30fcaf['nextDocumentData'],'cursorOffset':_0x30fcaf['cursorOffset'],'externalMutations':{}}):!0x1;}function _0x3548cd(_0x2f569b,_0x323cfa,_0x965cd2){const _0x47534=_0x5190c3;if(_0x965cd2)return null;let _0x2d5e34=_0x2f569b['get'](_0x183152[_0x47534(0x1da)]),_0x5126e8=(_0x323cfa?_0x2d5e34[_0x47534(0x191)](_0x323cfa,_0x183152[_0x47534(0x10a)][_0x47534(0x1b2)]):_0x2d5e34['getCurrentUnitOfType'](_0x183152[_0x47534(0x10a)][_0x47534(0x1b2)]))??null;if(!_0x5126e8)return null;let _0x156e5c=_0x5126e8[_0x47534(0x1fd)](),_0x37f5e0=_0x156e5c[_0x47534(0x18a)];if(_0x156e5c[_0x47534(0x113)]||!_0x37f5e0)return null;let _0x39f225=_0x2f569b[_0x47534(0x1fa)](_0x11f2bf);return _0x39f225[_0x47534(0x16f)](_0x5126e8[_0x47534(0x21e)]())?null:{'document':_0x5126e8,'body':_0x37f5e0,'documentData':_0x156e5c,'model':_0x39f225,'resource':_0x39f225[_0x47534(0x158)](_0x5126e8[_0x47534(0x21e)]())??_0x2d0395(),'unitId':_0x5126e8[_0x47534(0x21e)]()};}function _0x4a4592(_0x2f6068,_0xe9d221){const _0x3a3f74=_0x5190c3;var _0x48df98;return(_0x48df98=_0x2f6068[_0x3a3f74(0x1fa)](_0x239b8e[_0x3a3f74(0x1a9)])['getTextRanges']({'subUnitId':_0xe9d221,'unitId':_0xe9d221}))==null?void 0x0:_0x48df98[0x0];}function _0x239404(_0x7fabce,_0x122fd8,_0xb222f3){const _0xe95194=_0x5190c3;if((_0x7fabce==null?void 0x0:_0x7fabce[_0xe95194(0x132)])===_0xe95194(0x1e3)){var _0x2643d9;let _0x5ebed0=((_0x2643d9=_0x122fd8['paragraphs'])==null?void 0x0:_0x2643d9[_0xe95194(0x12b)](_0x1dcd3b=>_0x1dcd3b[_0xe95194(0x16d)]===_0x7fabce[_0xe95194(0x16d)]))??[];if(_0x5ebed0['length']!==0x1)return null;let _0x4b6ce0=_0x5ebed0[0x0],_0x40f222=(0x0,_0x183152[_0xe95194(0x215)])(_0x122fd8,_0x4b6ce0),_0x13f1de=_0x4b6ce0['startIndex']-_0x40f222,_0x5a9882=_0x7fabce[_0xe95194(0x14f)]==='end'?_0x13f1de:_0x7fabce['position'];if(!Number[_0xe95194(0x1c0)](_0x5a9882)||_0x5a9882<0x0||_0x5a9882>_0x13f1de)return null;let _0x9fff1=_0x40f222+_0x5a9882;return{'startOffset':_0x9fff1,'endOffset':_0x9fff1};}if((_0x7fabce==null?void 0x0:_0x7fabce[_0xe95194(0x132)])===_0xe95194(0x11f))return!Number[_0xe95194(0x1c0)](_0x7fabce[_0xe95194(0x17f)])||!Number[_0xe95194(0x1c0)](_0x7fabce[_0xe95194(0x10b)])?null:{'startOffset':Math['min'](_0x7fabce[_0xe95194(0x17f)],_0x7fabce['endOffset']),'endOffset':Math['max'](_0x7fabce[_0xe95194(0x17f)],_0x7fabce[_0xe95194(0x10b)])};let _0x428be0=(_0x7fabce==null?void 0x0:_0x7fabce[_0xe95194(0x132)])===_0xe95194(0x1e1)?_0x7fabce[_0xe95194(0x1e1)]:_0xb222f3;return!_0x428be0||_0x428be0[_0xe95194(0x1a3)]?null:{'startOffset':Math['min'](_0x428be0['startOffset'],_0x428be0[_0xe95194(0x10b)]),'endOffset':Math['max'](_0x428be0[_0xe95194(0x17f)],_0x428be0['endOffset'])};}function _0x5acbc5(_0x5c9ebb,_0x4b343a,_0x5e12c8,_0x9e0046){const _0x5a7ca9=_0x5190c3;let _0x3c02f3=_0x5c9ebb['get'](_0x56a765[_0x5a7ca9(0x146)]),_0x58fe3e=_0x5e12c8[_0x5a7ca9(0x185)]('=')?_0x5e12c8[_0x5a7ca9(0x1d9)](0x1):_0x5e12c8,_0x1cdb85=_0x3c02f3[_0x5a7ca9(0x179)](_0x58fe3e);if(!_0x1cdb85)return null;let _0xf1b04e=_0x5c9ebb['get'](_0x49a424[_0x5a7ca9(0x209)]),_0x5005ab=(0x0,_0x49a424[_0x5a7ca9(0x237)])({'qualifiers':(0x0,_0x49a424['collectFormulaExternalReferenceQualifiers'])(_0x1cdb85),'explicitReferences':_0x9e0046??[],'resolveBinding':_0x33adb1=>_0xf1b04e[_0x5a7ca9(0x1d2)](_0x4b343a,_0x33adb1)});return _0x5005ab[_0x5a7ca9(0x12e)]===_0x5a7ca9(0x20d)?_0x5005ab['references']:null;}function _0x58b27b(_0x116417,_0x28f7b1,_0x267daf){const _0x547477=_0x5190c3;var _0x586bf6;let _0x512f18=(0x0,_0x183152[_0x547477(0x199)])(0x6);for(;_0x116417!=null&&(_0x586bf6=_0x116417['customRanges'])!=null&&_0x586bf6['some'](_0x4fcb2d=>_0x4fcb2d[_0x547477(0x122)]===_0x512f18)||_0x28f7b1[_0x547477(0x232)](_0x267daf,_0x512f18);)_0x512f18=(0x0,_0x183152['generateRandomId'])(0x6);return _0x512f18;}function _0x4d6e72(_0x2592bf){try{return _0x3aebe8(_0x2592bf);}catch(_0x460264){if(_0x460264 instanceof _0x3c9e54)return null;throw _0x460264;}}function _0x4716ad(_0x3b2151){const _0x2bda33=_0x5190c3;let _0x532aa0=_0x3b2151['previousDocumentData']&&_0x3b2151[_0x2bda33(0x154)]?_0x2be070(_0x3b2151[_0x2bda33(0x173)],_0x3b2151[_0x2bda33(0x15a)],_0x3b2151['previousDocumentData'],_0x3b2151['nextDocumentData'],_0x3b2151[_0x2bda33(0x1ac)],_0x3b2151[_0x2bda33(0x119)]):null;return _0x3b2151[_0x2bda33(0x111)]&&_0x3b2151[_0x2bda33(0x154)]&&!_0x532aa0?null:{'documentRedo':_0x532aa0,'resourceRedo':{'id':_0x49adcc['id'],'params':{'unitId':_0x3b2151[_0x2bda33(0x15a)],'resource':_0x3b2151['nextResource']}},'resourceUndo':{'id':_0x49adcc['id'],'params':{'unitId':_0x3b2151[_0x2bda33(0x15a)],'resource':_0x3b2151[_0x2bda33(0x135)]}}};}function _0x225673(_0x3e1072,_0x5674ac,_0x22ef6a,_0x4024b9){const _0x2f446b=_0x5190c3;_0x4024b9[_0x2f446b(0x155)]({'id':_0x3e1072[_0x2f446b(0x119)]+':'+_0x3e1072[_0x2f446b(0x122)],'unitID':_0x3e1072[_0x2f446b(0x15a)],'redoMutations':[..._0x3e1072[_0x2f446b(0x13b)]['redoMutation']?[_0x3e1072[_0x2f446b(0x13b)][_0x2f446b(0x233)]]:[],..._0x5674ac['documentRedo']?[_0x5674ac[_0x2f446b(0x1d7)]]:[],_0x5674ac[_0x2f446b(0x194)]],'undoMutations':[_0x5674ac['resourceUndo'],..._0x22ef6a?[_0x22ef6a]:[],..._0x3e1072[_0x2f446b(0x13b)][_0x2f446b(0x19c)]?[_0x3e1072[_0x2f446b(0x13b)][_0x2f446b(0x19c)]]:[]]});}function _0x51ad31(_0x3dde7c){const _0x7d3d67=_0x5190c3;let _0x56cca8=_0x3dde7c[_0x7d3d67(0x150)][_0x7d3d67(0x1fa)](_0x183152[_0x7d3d67(0x1e9)]),_0x5b0c4c=_0x3dde7c['accessor']['get'](_0x183152[_0x7d3d67(0x178)]),_0x1ddacf=_0x3dde7c[_0x7d3d67(0x150)]['get'](_0x239b8e[_0x7d3d67(0x1a9)]),_0x18d109=_0x4716ad(_0x3dde7c);if(!_0x18d109)return!0x1;let _0x2dfb36=!0x1,_0x1b737f=null,_0x197029=!0x1;try{if(_0x3dde7c[_0x7d3d67(0x13b)]['redoMutation']){if(!_0x56cca8['syncExecuteCommand'](_0x3dde7c[_0x7d3d67(0x13b)][_0x7d3d67(0x233)]['id'],_0x3dde7c['externalMutations'][_0x7d3d67(0x233)][_0x7d3d67(0x197)]))return!0x1;_0x2dfb36=!0x0;}if(_0x18d109[_0x7d3d67(0x1d7)]){let _0x504941=_0x56cca8[_0x7d3d67(0x152)](_0x18d109[_0x7d3d67(0x1d7)]['id'],_0x18d109['documentRedo'][_0x7d3d67(0x197)]);if(!_0x504941)return _0x5729c5(_0x56cca8,_0x3dde7c[_0x7d3d67(0x13b)],_0x2dfb36),!0x1;_0x1b737f={'id':_0x239b8e[_0x7d3d67(0x22a)]['id'],'params':{..._0x504941,'noHistory':!0x0,'noNeedSetTextRange':!0x0,'segmentId':''}};}if(!_0x56cca8[_0x7d3d67(0x152)](_0x18d109[_0x7d3d67(0x194)]['id'],_0x18d109[_0x7d3d67(0x194)]['params']))return _0xe4acd3(_0x56cca8,_0x1b737f),_0x5729c5(_0x56cca8,_0x3dde7c[_0x7d3d67(0x13b)],_0x2dfb36),!0x1;_0x197029=!0x0,_0x225673(_0x3dde7c,_0x18d109,_0x1b737f,_0x5b0c4c);}catch(_0x3b067a){throw _0x197029&&_0x56cca8[_0x7d3d67(0x152)](_0x18d109[_0x7d3d67(0x18e)]['id'],_0x18d109['resourceUndo'][_0x7d3d67(0x197)]),_0xe4acd3(_0x56cca8,_0x1b737f),_0x5729c5(_0x56cca8,_0x3dde7c[_0x7d3d67(0x13b)],_0x2dfb36),_0x3b067a;}return _0x1ddacf[_0x7d3d67(0x10c)]([{'startOffset':_0x3dde7c[_0x7d3d67(0x1ac)],'endOffset':_0x3dde7c[_0x7d3d67(0x1ac)],'segmentId':''}],{'unitId':_0x3dde7c[_0x7d3d67(0x15a)],'subUnitId':_0x3dde7c[_0x7d3d67(0x15a)]},!0x1,{[_0x239b8e[_0x7d3d67(0x12f)]]:!0x0}),!0x0;}function _0x2be070(_0x195f98,_0x307d6c,_0x51c03b,_0x2cac11,_0x575b40,_0x5978e6){let _0x1a5250=_0x557272(_0x51c03b,_0x2cac11,(0x0,_0x183152['getRichTextEditPath'])(_0x195f98,''));return _0x1a5250?{'id':_0x239b8e['RichTextEditingMutation']['id'],'params':{'unitId':_0x307d6c,'actions':_0x1a5250,'segmentId':'','textRanges':[{'startOffset':_0x575b40,'endOffset':_0x575b40,'collapsed':!0x0,'segmentId':''}],'isEditing':!0x1,'noHistory':!0x0,'noNeedSetTextRange':!0x0,'trigger':_0x5978e6}}:null;}function _0xe4acd3(_0x3bcb02,_0x5a90f5){const _0x688f37=_0x5190c3;_0x5a90f5&&_0x3bcb02[_0x688f37(0x152)](_0x5a90f5['id'],_0x5a90f5[_0x688f37(0x197)]);}function _0x5729c5(_0x5bf073,_0x19067f,_0x493a74){const _0x261f5c=_0x5190c3;_0x493a74&&_0x19067f[_0x261f5c(0x19c)]&&_0x5bf073['syncExecuteCommand'](_0x19067f[_0x261f5c(0x19c)]['id'],_0x19067f[_0x261f5c(0x19c)][_0x261f5c(0x197)]);}function _0x557272(_0x56e22d,_0x4645d5,_0x43157f){const _0xd97156=_0x5190c3;let _0x241cf7=_0x56e22d['body'],_0x3e42b2=_0x4645d5[_0xd97156(0x18a)],_0x2355f1=_0x3f6b45(_0x241cf7==null?void 0x0:_0x241cf7[_0xd97156(0x229)],_0x3e42b2==null?void 0x0:_0x3e42b2[_0xd97156(0x229)]);if(!_0x2355f1||!_0x3e42b2)return null;let _0x24d922=new _0x183152['TextX']();return _0x24d922[_0xd97156(0x1bc)](_0x2355f1[_0xd97156(0x16c)]),_0x2355f1[_0xd97156(0x109)]>0x0&&_0x24d922['insert'](_0x2355f1[_0xd97156(0x109)],(0x0,_0x183152[_0xd97156(0x101)])(_0x3e42b2,_0x2355f1['start'],_0x2355f1[_0xd97156(0x16c)]+_0x2355f1[_0xd97156(0x109)],!0x1)),_0x2355f1[_0xd97156(0xfe)]>0x0&&_0x24d922['delete'](_0x2355f1[_0xd97156(0xfe)]),_0x183152[_0xd97156(0x103)][_0xd97156(0x21c)]()[_0xd97156(0x147)](_0x24d922[_0xd97156(0x23d)](),_0x43157f);}function _0x3f6b45(_0xcf5c86,_0x336e56){const _0x515ce6=_0x5190c3;if(_0xcf5c86==null||_0x336e56==null||_0xcf5c86===_0x336e56)return null;let _0x32adf8=0x0;for(;_0x32adf8<_0xcf5c86['length']&&_0x32adf8<_0x336e56[_0x515ce6(0x1e2)]&&_0xcf5c86[_0x32adf8]===_0x336e56[_0x32adf8];)_0x32adf8+=0x1;let _0xbaf652=_0xcf5c86[_0x515ce6(0x1e2)],_0x3b75de=_0x336e56[_0x515ce6(0x1e2)];for(;_0xbaf652>_0x32adf8&&_0x3b75de>_0x32adf8&&_0xcf5c86[_0xbaf652-0x1]===_0x336e56[_0x3b75de-0x1];)--_0xbaf652,--_0x3b75de;return{'start':_0x32adf8,'deleteLength':_0xbaf652-_0x32adf8,'insertLength':_0x3b75de-_0x32adf8};}function _0x28b943(_0x1b81f5){const _0x48e982=_0x5190c3;return{'schemaVersion':0x1,'formulas':Object[_0x48e982(0x20c)](Object[_0x48e982(0x14e)](_0x1b81f5['formulas'])[_0x48e982(0x1b9)](([_0x1388f6,_0x397024])=>[_0x1388f6,{..._0x397024,..._0x397024[_0x48e982(0x190)]?{'numberFormat':{..._0x397024[_0x48e982(0x190)]}}:null,..._0x397024[_0x48e982(0x1b1)]?{'lastValue':{..._0x397024[_0x48e982(0x1b1)]}}:null}]))};}let _0x4ab4c1=class extends _0x183152[_0x5190c3(0x100)]{constructor(_0x8f2b02,_0x5d7996,_0x36a6fc,_0x580d5d){const _0x2b6fc2=_0x5190c3;super(),this['_instanceService']=_0x8f2b02,this[_0x2b6fc2(0x141)]=_0x5d7996,this[_0x2b6fc2(0xff)]=_0x36a6fc,this['_service']=_0x580d5d,_0x34651a(this,_0x2b6fc2(0x163),new Set()),_0x34651a(this,_0x2b6fc2(0x115),!0x1),_0x34651a(this,'_isDisposed',!0x1),this['_instanceService']['getAllUnitsForType'](_0x183152[_0x2b6fc2(0x10a)][_0x2b6fc2(0x1b2)])[_0x2b6fc2(0x172)](_0x529f52=>this['_service'][_0x2b6fc2(0x205)](_0x529f52)),this[_0x2b6fc2(0x1b0)](this[_0x2b6fc2(0xff)][_0x2b6fc2(0x127)][_0x2b6fc2(0x175)](({unitId:_0x4f9eb6})=>this[_0x2b6fc2(0x243)](_0x4f9eb6))),this[_0x2b6fc2(0x1b0)](this['_instanceService']['unitAdded$'][_0x2b6fc2(0x175)](({unit:_0x4dcf3e})=>{const _0x565f09=_0x2b6fc2;_0x4dcf3e[_0x565f09(0x132)]===_0x183152[_0x565f09(0x10a)][_0x565f09(0x1b2)]&&this[_0x565f09(0x156)](_0x4dcf3e[_0x565f09(0x21e)]());})),this[_0x2b6fc2(0x1b0)](this[_0x2b6fc2(0x1ab)]['unitDisposed$'][_0x2b6fc2(0x175)](_0x5ad0cc=>{const _0x5b42f3=_0x2b6fc2;this['_service'][_0x5b42f3(0x1ce)](_0x5ad0cc[_0x5b42f3(0x21e)]());})),this['disposeWithMe'](this[_0x2b6fc2(0x141)][_0x2b6fc2(0x213)](_0x2316d1=>{const _0x9de394=_0x2b6fc2;if(_0x2316d1['id']===_0x239b8e[_0x9de394(0x22a)]['id']&&_0x1fc809(_0x2316d1[_0x9de394(0x197)])){let _0x14c488=_0x2316d1[_0x9de394(0x197)];_0x14c488[_0x9de394(0x1a3)]||this[_0x9de394(0x243)](_0x14c488[_0x9de394(0x15a)]);}}));}[_0x5190c3(0x11b)](){const _0xab87a0=_0x5190c3;this[_0xab87a0(0x221)]=!0x0,super['dispose']();}[_0x5190c3(0x156)](_0x3cd94c){const _0x1d1d03=_0x5190c3;this['_pendingUnitIds'][_0x1d1d03(0x176)](_0x3cd94c),!this[_0x1d1d03(0x115)]&&(this[_0x1d1d03(0x115)]=!0x0,queueMicrotask(()=>{const _0x4df394=_0x1d1d03;if(this[_0x4df394(0x115)]=!0x1,this[_0x4df394(0x221)])return;let _0xb2a4dc=Array[_0x4df394(0x16a)](this[_0x4df394(0x163)]);this[_0x4df394(0x163)][_0x4df394(0x22f)](),_0xb2a4dc[_0x4df394(0x172)](_0x3522bb=>this[_0x4df394(0x243)](_0x3522bb));}));}[_0x5190c3(0x243)](_0x194c53){const _0x205ec4=_0x5190c3;let _0x41fdcc=this['_instanceService'][_0x205ec4(0x191)](_0x194c53,_0x183152['UniverInstanceType'][_0x205ec4(0x1b2)]);_0x41fdcc&&this['_service'][_0x205ec4(0x205)](_0x41fdcc);}};_0x4ab4c1=_0x299920([_0x500cc3(0x0,_0x183152['IUniverInstanceService']),_0x500cc3(0x1,_0x183152['ICommandService']),_0x500cc3(0x2,(0x0,_0x183152['Inject'])(_0x11f2bf)),_0x500cc3(0x3,(0x0,_0x183152['Inject'])(_0x2b3eec))],_0x4ab4c1);function _0x1fc809(_0x34bc6f){const _0x447c88=_0x5190c3;return typeof _0x34bc6f==_0x447c88(0x21f)&&!!_0x34bc6f&&_0x447c88(0x15a)in _0x34bc6f&&typeof _0x34bc6f[_0x447c88(0x15a)]==_0x447c88(0x13c)&&(!('segmentId'in _0x34bc6f)||_0x34bc6f[_0x447c88(0x1a3)]===void 0x0||typeof _0x34bc6f['segmentId']==_0x447c88(0x13c));}let _0x1397e3=class extends _0x183152[_0x5190c3(0x100)]{constructor(_0x53ea6c,_0x5df274){const _0x17b3dc=_0x5190c3;super(),this[_0x17b3dc(0x133)]=_0x53ea6c,this[_0x17b3dc(0x224)]=_0x5df274,this['disposeWithMe'](this[_0x17b3dc(0x133)]['registerPluginResource']({'pluginName':_0x5df5c0,'businesses':[_0x183152['UniverInstanceType']['UNIVER_DOC']],'toJson':_0x19606d=>JSON[_0x17b3dc(0x21d)](this['_docFormulaModel'][_0x17b3dc(0x23d)](_0x19606d)),'parseJson':_0x4f6381=>JSON[_0x17b3dc(0x15e)](_0x4f6381),'onLoad':(_0x4d257d,_0x599b93)=>{const _0x25d5d9=_0x17b3dc;this[_0x25d5d9(0x224)][_0x25d5d9(0x118)](_0x4d257d,_0x599b93);},'onUnLoad':_0xec1357=>this[_0x17b3dc(0x224)][_0x17b3dc(0x1a1)](_0xec1357)}));}};_0x1397e3=_0x299920([_0x500cc3(0x0,_0x183152['IResourceManagerService']),_0x500cc3(0x1,(0x0,_0x183152[_0x5190c3(0x208)])(_0x11f2bf))],_0x1397e3);var _0x325e90=_0x5190c3(0x116),_0x54e921=_0x5190c3(0x14a);let _0x5a830a={},_0x450d24=class extends _0x183152[_0x5190c3(0x100)]{constructor(_0x4569f1,_0x5f4d32,_0x2f330d){const _0x5df1d1=_0x5190c3;super(),this['_univerInstanceService']=_0x4569f1,this[_0x5df1d1(0x234)]=_0x5f4d32,this[_0x5df1d1(0x1b0)](_0x2f330d[_0x5df1d1(0x1ee)]({'resolve':(_0x2e0c27,_0x1ac1a0)=>{const _0x3840eb=_0x5df1d1;var _0x5b1956;return((_0x5b1956=_0x1ac1a0[_0x3840eb(0x145)])==null?void 0x0:_0x5b1956[_0x3840eb(0x12b)](_0x11642f)['map'](_0x3945ec=>({'startOffset':_0x3945ec[_0x3840eb(0x12d)],'endOffset':_0x3945ec[_0x3840eb(0x17e)]+0x1,'text':this[_0x3840eb(0x202)](_0x2e0c27,_0x3945ec['rangeId'])})))??[];}})),this[_0x5df1d1(0x1b0)](this['_formulaService'][_0x5df1d1(0x20a)][_0x5df1d1(0x175)](({unitId:_0x366781})=>{const _0x56c2ef=_0x5df1d1;_0x2f330d[_0x56c2ef(0x125)](_0x366781);}));}[_0x5190c3(0x202)](_0x3f8d71,_0x54ecec){const _0xd3fb3=_0x5190c3;var _0x14c180;return((_0x14c180=this[_0xd3fb3(0x234)][_0xd3fb3(0x14d)]({'unitId':_0x3f8d71,'rangeId':_0x54ecec}))==null?void 0x0:_0x14c180['text'])??'';}['resolveText'](_0x1b7eb8,_0x3cd17e,_0x4f7a41){const _0x4a77f4=_0x5190c3;var _0x479ad8;let _0x26d25b=this[_0x4a77f4(0x1cd)][_0x4a77f4(0x191)](_0x1b7eb8,_0x183152['UniverInstanceType']['UNIVER_DOC']),_0x3c2571=_0x26d25b==null?void 0x0:_0x26d25b[_0x4a77f4(0x1d1)]();if(!_0x3c2571)return'';let _0x21ed71=_0x3c2571[_0x4a77f4(0x229)][_0x4a77f4(0x1d9)](_0x3cd17e,_0x4f7a41),_0x2eea7d=((_0x479ad8=_0x3c2571[_0x4a77f4(0x145)])==null?void 0x0:_0x479ad8[_0x4a77f4(0x12b)](_0x3c2990=>_0x11642f(_0x3c2990)&&_0x3c2990['startIndex']>=_0x3cd17e&&_0x3c2990[_0x4a77f4(0x17e)]<_0x4f7a41)[_0x4a77f4(0x183)]((_0x1a276b,_0x1460bf)=>_0x1460bf[_0x4a77f4(0x12d)]-_0x1a276b[_0x4a77f4(0x12d)]))??[];for(let _0x15a80a of _0x2eea7d){let _0x2b5ba3=_0x15a80a['startIndex']-_0x3cd17e,_0x273b70=_0x15a80a[_0x4a77f4(0x17e)]-_0x3cd17e+0x1;_0x21ed71=''+_0x21ed71['slice'](0x0,_0x2b5ba3)+this[_0x4a77f4(0x202)](_0x1b7eb8,_0x15a80a[_0x4a77f4(0x122)])+_0x21ed71['slice'](_0x273b70);}return _0x21ed71;}[_0x5190c3(0x223)](_0x271176){return _0x2667d9(_0x271176);}['degradeBody'](_0x3323cf,_0x5485c5,_0x1f89d0={}){const _0x38b525=_0x5190c3;var _0x5bea7d;return _0xe38112({'id':_0x3323cf,'body':_0x5485c5,'documentStyle':{}},(((_0x5bea7d=_0x5485c5[_0x38b525(0x145)])==null?void 0x0:_0x5bea7d[_0x38b525(0x12b)](_0x11642f))??[])[_0x38b525(0x1b9)](_0x4d7ecd=>({'rangeId':_0x4d7ecd[_0x38b525(0x122)],'text':_0x1f89d0[_0x4d7ecd[_0x38b525(0x122)]]??this[_0x38b525(0x202)](_0x3323cf,_0x4d7ecd[_0x38b525(0x122)])})))[_0x38b525(0x18a)]??{'dataStream':''};}};_0x450d24=_0x299920([_0x500cc3(0x0,_0x183152[_0x5190c3(0x1da)]),_0x500cc3(0x1,(0x0,_0x183152[_0x5190c3(0x208)])(_0x2b3eec)),_0x500cc3(0x2,(0x0,_0x183152[_0x5190c3(0x208)])(_0x239b8e[_0x5190c3(0x1f7)]))],_0x450d24);function _0x2667d9(_0x2dd976){const _0x22bce5=_0x5190c3;var _0x5949a3,_0x51f388;let _0x534e28=_0xcb1b56(_0x2dd976),_0x27cf87=_0xe38112(_0x2dd976,(((_0x5949a3=_0x2dd976[_0x22bce5(0x18a)])==null||(_0x5949a3=_0x5949a3['customRanges'])==null?void 0x0:_0x5949a3[_0x22bce5(0x12b)](_0x11642f))??[])['map'](_0x1a8117=>({'rangeId':_0x1a8117[_0x22bce5(0x122)],'text':_0x426345(_0x534e28==null?void 0x0:_0x534e28[_0x22bce5(0x231)][_0x1a8117[_0x22bce5(0x122)]])})));return _0x27cf87[_0x22bce5(0x218)]=(_0x51f388=_0x27cf87[_0x22bce5(0x218)])==null?void 0x0:_0x51f388[_0x22bce5(0x12b)](_0x1b7ba2=>_0x1b7ba2[_0x22bce5(0x105)]!==_0x5df5c0),_0x27cf87;}function _0xcb1b56(_0x158511){const _0x2ea3a6=_0x5190c3;var _0xfe2283;let _0x47517e=(_0xfe2283=_0x158511[_0x2ea3a6(0x218)])==null||(_0xfe2283=_0xfe2283[_0x2ea3a6(0x1f5)](_0x2fbc15=>_0x2fbc15['name']===_0x2ea3a6(0x17d)))==null?void 0x0:_0xfe2283[_0x2ea3a6(0x22c)];if(_0x47517e)try{let _0x45b0df=JSON[_0x2ea3a6(0x15e)](_0x47517e);return _0x48fcca(_0x45b0df)?_0x45b0df:void 0x0;}catch{return;}}function _0x426345(_0x2b72ed){const _0x5754d7=_0x5190c3;return _0x2b72ed?(0x0,_0x49a424[_0x5754d7(0x1be)])({'lastValue':_0x2b72ed[_0x5754d7(0x1b1)],'numberFormat':_0x2b72ed['numberFormat']})[_0x5754d7(0x15c)]:'';}let _0x503fb3=class extends _0x183152[_0x5190c3(0x100)]{constructor(_0x55c763,_0x3ec635,_0x2ef381){const _0x1fd0b0=_0x5190c3;super(),this[_0x1fd0b0(0x234)]=_0x55c763,this[_0x1fd0b0(0x131)]=_0x3ec635,this[_0x1fd0b0(0x1b0)](_0x2ef381[_0x1fd0b0(0x1b7)](this));}[_0x5190c3(0x19d)](_0x1a62b3){const _0x1964a9=_0x5190c3;let _0x5faeb=new Map();for(let _0x223713 of this[_0x1964a9(0x234)]['getRegisteredFormulas']()){var _0x3aaae0;if(!this['_cacheEligibilityService']['assess'](_0x223713[_0x1964a9(0x1cb)][_0x1964a9(0x239)],_0x223713[_0x1964a9(0x1e5)])[_0x1964a9(0x21b)])continue;let _0x696d60=(0x0,_0x49a424['getScalarFormulaResultCell'])(_0x223713[_0x1964a9(0x1e5)]),_0x1c05d1=_0x696d60?(0x0,_0x49a424[_0x1964a9(0x13e)])(_0x696d60):null;if(!_0x1c05d1||_0x380330(_0x223713[_0x1964a9(0x1cb)][_0x1964a9(0x1b1)],_0x1c05d1))continue;let _0x414ee3=_0x5faeb[_0x1964a9(0x1fa)](_0x223713['identity'][_0x1964a9(0x15a)])??[];_0x414ee3['push']({'rangeId':_0x223713[_0x1964a9(0x236)]['rangeId'],'expectedFormula':_0x223713[_0x1964a9(0x1cb)][_0x1964a9(0x239)],'expectedNumberFormat':(_0x3aaae0=_0x223713[_0x1964a9(0x1cb)]['numberFormat'])==null?void 0x0:_0x3aaae0[_0x1964a9(0x1c4)],'expectedReferenceRevision':_0x223713[_0x1964a9(0x241)],'lastValue':_0x1c05d1}),_0x5faeb[_0x1964a9(0x19f)](_0x223713[_0x1964a9(0x236)][_0x1964a9(0x15a)],_0x414ee3);}return Array[_0x1964a9(0x16a)](_0x5faeb,([_0x50fc5d,_0x242617])=>({'id':_0x2a4ae2['id'],'params':{'unitId':_0x50fc5d,'updates':_0x242617}}));}};_0x503fb3=_0x299920([_0x500cc3(0x0,(0x0,_0x183152[_0x5190c3(0x208)])(_0x2b3eec)),_0x500cc3(0x1,(0x0,_0x183152[_0x5190c3(0x208)])(_0x49a424[_0x5190c3(0x20e)])),_0x500cc3(0x2,(0x0,_0x183152['Inject'])(_0x49a424[_0x5190c3(0x22d)]))],_0x503fb3);function _0x380330(_0x3d6cc5,_0x9031df){const _0x846f6e=_0x5190c3;return(_0x3d6cc5==null?void 0x0:_0x3d6cc5['v'])===_0x9031df['v']&&(_0x3d6cc5==null?void 0x0:_0x3d6cc5['t'])===_0x9031df['t']&&(_0x3d6cc5==null?void 0x0:_0x3d6cc5[_0x846f6e(0x1c4)])===_0x9031df[_0x846f6e(0x1c4)];}let _0x140593=class extends _0x183152[_0x5190c3(0x189)]{constructor(_0x51baf1=_0x5a830a,_0x14f558,_0x394a51,_0x3f6f2a){const _0x2e9182=_0x5190c3;super(),this['_config']=_0x51baf1,this['_injector']=_0x14f558,this[_0x2e9182(0x141)]=_0x394a51,this[_0x2e9182(0x238)]=_0x3f6f2a;let {..._0x3fddcf}=(0x0,_0x183152[_0x2e9182(0x1d6)])({},_0x5a830a,this[_0x2e9182(0x1dc)]);this[_0x2e9182(0x238)][_0x2e9182(0x1f6)](_0x2e9182(0x11c),_0x3fddcf);}[_0x5190c3(0x137)](){const _0x25f059=_0x5190c3;this['_injector'][_0x25f059(0x176)]([_0x11f2bf]),this[_0x25f059(0x1bf)]['add']([_0x2b3eec]),this[_0x25f059(0x1bf)][_0x25f059(0x176)]([_0x1397e3]),this[_0x25f059(0x1bf)][_0x25f059(0x176)]([_0x4ab4c1]),this[_0x25f059(0x1bf)][_0x25f059(0x176)]([_0x503fb3]),this[_0x25f059(0x1bf)]['add']([_0x450d24]),(0x0,_0x183152[_0x25f059(0x1ca)])(this['_injector'],[[_0x11f2bf],[_0x1397e3],[_0x4ab4c1],[_0x503fb3],[_0x450d24]]),[_0x33e542,_0x33280a,_0x49adcc,_0x2a4ae2,_0x381968,_0x191887,_0x5e200b,_0x591a56,_0x58cd44,_0xd2841f]['forEach'](_0x584857=>this[_0x25f059(0x1b0)](this[_0x25f059(0x141)][_0x25f059(0x1b3)](_0x584857)));}};_0x34651a(_0x140593,'pluginName',_0x5df5c0),_0x34651a(_0x140593,'packageName',_0x325e90),_0x34651a(_0x140593,'version',_0x54e921),_0x34651a(_0x140593,_0x5190c3(0x132),_0x183152['UniverInstanceType'][_0x5190c3(0x1b2)]),_0x140593=_0x299920([(0x0,_0x183152[_0x5190c3(0x171)])(_0x125396[_0x5190c3(0x169)],_0x49a424[_0x5190c3(0x23a)],_0x239b8e[_0x5190c3(0x140)]),_0x500cc3(0x1,(0x0,_0x183152[_0x5190c3(0x208)])(_0x183152[_0x5190c3(0x1f1)])),_0x500cc3(0x2,_0x183152[_0x5190c3(0x1e9)]),_0x500cc3(0x3,_0x183152['IConfigService'])],_0x140593),_0x24865a[_0x5190c3(0x1c7)]=_0xd2841f,_0x24865a['DOC_FORMULA_CUSTOM_RANGE_KIND']=_0x348d61,_0x24865a[_0x5190c3(0x153)]='',_0x24865a[_0x5190c3(0x17d)]=_0x5df5c0,_0x24865a['DOC_FORMULA_SCHEMA_VERSION']=0x1,Object[_0x5190c3(0x203)](_0x24865a,'DocFormulaDisplayTextService',{'enumerable':!0x0,'get':function(){return _0x450d24;}}),Object[_0x5190c3(0x203)](_0x24865a,_0x5190c3(0x228),{'enumerable':!0x0,'get':function(){return _0x4ab4c1;}}),_0x24865a['DocFormulaModel']=_0x11f2bf,Object[_0x5190c3(0x203)](_0x24865a,_0x5190c3(0x220),{'enumerable':!0x0,'get':function(){return _0x1397e3;}}),_0x24865a[_0x5190c3(0x1a6)]=_0x2940b2,Object[_0x5190c3(0x203)](_0x24865a,_0x5190c3(0x108),{'enumerable':!0x0,'get':function(){return _0x2b3eec;}}),_0x24865a[_0x5190c3(0x121)]=_0x381968,_0x24865a[_0x5190c3(0x16b)]=_0x3c9e54,_0x24865a[_0x5190c3(0x1d5)]=_0x591a56,_0x24865a[_0x5190c3(0x166)]=_0x33280a,_0x24865a[_0x5190c3(0x129)]=_0x58cd44,_0x24865a[_0x5190c3(0x130)]=_0x2a4ae2,_0x24865a['SetDocFormulaMutation']=_0x33e542,_0x24865a[_0x5190c3(0x142)]=_0x5e200b,_0x24865a['SetDocFormulaResourceMutation']=_0x49adcc,Object['defineProperty'](_0x24865a,_0x5190c3(0x1f3),{'enumerable':!0x0,'get':function(){return _0x140593;}}),_0x24865a[_0x5190c3(0x18c)]=_0x191887,_0x24865a['assertSafeDocFormulaInsertRange']=_0xb71898,_0x24865a[_0x5190c3(0x151)]=_0x3aebe8,_0x24865a[_0x5190c3(0x1df)]=_0x580626,_0x24865a[_0x5190c3(0x1a4)]=_0x3509c1,_0x24865a[_0x5190c3(0x246)]=_0x2d0395,_0x24865a[_0x5190c3(0x20b)]=_0x2667d9,_0x24865a['findDocFormulaRange']=_0x5dd8f2,_0x24865a[_0x5190c3(0x1f4)]=_0x5aaa6e,_0x24865a[_0x5190c3(0x23c)]=_0x11642f,_0x24865a[_0x5190c3(0x1c1)]=_0x48fcca,_0x24865a[_0x5190c3(0x235)]=_0x2aa92a;}));
1
+ function _0x5bf7(_0x1a26f8,_0x16e62b){_0x1a26f8=_0x1a26f8-0x103;const _0xa1f9d1=_0xa1f9();let _0x5bf7bf=_0xa1f9d1[_0x1a26f8];return _0x5bf7bf;}(function(_0x38bd67,_0x56d8f6){const _0x36b3ba=_0x5bf7,_0x56c382=_0x38bd67();while(!![]){try{const _0x1c00a6=parseInt(_0x36b3ba(0x14f))/0x1*(-parseInt(_0x36b3ba(0x1ed))/0x2)+-parseInt(_0x36b3ba(0x1d4))/0x3*(-parseInt(_0x36b3ba(0x162))/0x4)+-parseInt(_0x36b3ba(0x1c7))/0x5*(parseInt(_0x36b3ba(0x1c2))/0x6)+parseInt(_0x36b3ba(0x17d))/0x7*(parseInt(_0x36b3ba(0x212))/0x8)+-parseInt(_0x36b3ba(0x17e))/0x9+parseInt(_0x36b3ba(0x103))/0xa*(parseInt(_0x36b3ba(0x24d))/0xb)+parseInt(_0x36b3ba(0x181))/0xc;if(_0x1c00a6===_0x56d8f6)break;else _0x56c382['push'](_0x56c382['shift']());}catch(_0x4d78da){_0x56c382['push'](_0x56c382['shift']());}}}(_0xa1f9,0x3a7d3),function(_0x1fd92a,_0x1d0850){const _0x34130c=_0x5bf7;typeof exports==_0x34130c(0x14e)&&typeof module<'u'?_0x1d0850(exports,require('@univerjs-pro/engine-formula'),require('@univerjs/core'),require('@univerjs/docs'),require('@univerjs/engine-formula'),require('rxjs'),require('@univerjs-pro/license')):typeof define==_0x34130c(0x22f)&&define[_0x34130c(0x1ab)]?define([_0x34130c(0x189),_0x34130c(0x1a0),_0x34130c(0x221),_0x34130c(0x11e),'@univerjs/engine-formula',_0x34130c(0x13e),_0x34130c(0x206)],_0x1d0850):(_0x1fd92a=typeof globalThis<'u'?globalThis:_0x1fd92a||self,_0x1d0850(_0x1fd92a[_0x34130c(0x144)]={},_0x1fd92a[_0x34130c(0x14d)],_0x1fd92a[_0x34130c(0x23d)],_0x1fd92a[_0x34130c(0x173)],_0x1fd92a[_0x34130c(0x223)],_0x1fd92a['rxjs'],_0x1fd92a['UniverProLicense']));}(this,function(_0x371713,_0x1e3b22,_0x515716,_0x32243b,_0x4066ff,_0x133f14,_0x2342e0){const _0x485351=_0x5bf7;Object[_0x485351(0x228)](_0x371713,Symbol['toStringTag'],{'value':'Module'});let _0x366fa0=_0x485351(0x17b),_0x41ad86=_0x485351(0x21c);function _0x5e7e4c(){return{'schemaVersion':0x1,'formulas':{}};}function _0xc09f6(_0x2a7afa){const _0x97b92c=_0x485351;return!_0x2a7afa||typeof _0x2a7afa!=_0x97b92c(0x14e)||!_0x527be9(_0x2a7afa,['schemaVersion',_0x97b92c(0x151)])||!(_0x97b92c(0x236)in _0x2a7afa)||_0x2a7afa['schemaVersion']!==0x1||!('formulas'in _0x2a7afa)||!_0x2a7afa[_0x97b92c(0x151)]||typeof _0x2a7afa[_0x97b92c(0x151)]!='object'||Array[_0x97b92c(0x20d)](_0x2a7afa['formulas'])?!0x1:Object[_0x97b92c(0x120)](_0x2a7afa[_0x97b92c(0x151)])[_0x97b92c(0x1fa)](([_0x40ebac,_0x1a3f5e])=>_0x40ebac['length']>0x0&&_0x8c5f6b(_0x1a3f5e));}function _0x8c5f6b(_0x3a26dc){const _0x4b5bd1=_0x485351;return!_0x3a26dc||typeof _0x3a26dc!='object'||!_0x527be9(_0x3a26dc,[_0x4b5bd1(0x1a6),_0x4b5bd1(0x1f4),_0x4b5bd1(0x1da)])||!(_0x4b5bd1(0x1a6)in _0x3a26dc)||typeof _0x3a26dc[_0x4b5bd1(0x1a6)]!=_0x4b5bd1(0x1fe)||!_0x3a26dc[_0x4b5bd1(0x1a6)]['trim']()||'numberFormat'in _0x3a26dc&&_0x3a26dc[_0x4b5bd1(0x1f4)]!=null&&(typeof _0x3a26dc['numberFormat']!=_0x4b5bd1(0x14e)||!_0x527be9(_0x3a26dc[_0x4b5bd1(0x1f4)],[_0x4b5bd1(0x190)])||!(_0x4b5bd1(0x190)in _0x3a26dc[_0x4b5bd1(0x1f4)])||typeof _0x3a26dc[_0x4b5bd1(0x1f4)]['pattern']!=_0x4b5bd1(0x1fe))?!0x1:!(_0x4b5bd1(0x1da)in _0x3a26dc)||_0x3a26dc['lastValue']==null||_0x1d3967(_0x3a26dc['lastValue']);}function _0x1d3967(_0x1ec6c6){const _0x4ee835=_0x485351;return!_0x1ec6c6||typeof _0x1ec6c6!=_0x4ee835(0x14e)||!_0x527be9(_0x1ec6c6,['v','t',_0x4ee835(0x190)])||!('v'in _0x1ec6c6)||_0x1ec6c6['v']!==null&&typeof _0x1ec6c6['v']!=_0x4ee835(0x1fe)&&typeof _0x1ec6c6['v']!=_0x4ee835(0x12c)&&typeof _0x1ec6c6['v']!=_0x4ee835(0x19e)||'t'in _0x1ec6c6&&_0x1ec6c6['t']!=null&&!_0x555bd6(_0x1ec6c6['t'])?!0x1:!('pattern'in _0x1ec6c6)||_0x1ec6c6['pattern']==null||typeof _0x1ec6c6[_0x4ee835(0x190)]==_0x4ee835(0x1fe);}function _0x527be9(_0x241cb7,_0xb87f5){const _0x426d1e=_0x485351;let _0x4dc230=new Set(_0xb87f5);return Object['keys'](_0x241cb7)[_0x426d1e(0x1fa)](_0x9451fd=>_0x4dc230[_0x426d1e(0x10e)](_0x9451fd));}function _0x555bd6(_0xf240a1){const _0x49d57c=_0x485351;return typeof _0xf240a1==_0x49d57c(0x12c)&&Object['values'](_0x515716[_0x49d57c(0x22d)])[_0x49d57c(0x1e1)](_0xf240a1);}let _0x2bdb71=new Set([_0x515716[_0x485351(0x128)][_0x485351(0x140)],_0x515716[_0x485351(0x128)]['TABLE_START'],_0x515716[_0x485351(0x128)]['TABLE_ROW_START'],_0x515716[_0x485351(0x128)][_0x485351(0x15c)],_0x515716[_0x485351(0x128)][_0x485351(0x216)],_0x515716[_0x485351(0x128)][_0x485351(0x10b)],_0x515716[_0x485351(0x128)][_0x485351(0x1aa)],_0x515716[_0x485351(0x128)][_0x485351(0x132)],_0x515716[_0x485351(0x128)][_0x485351(0x119)],_0x515716[_0x485351(0x128)]['COLUMN_END'],_0x515716[_0x485351(0x128)]['COLUMN_GROUP_END'],_0x515716['DataStreamTreeTokenType'][_0x485351(0x18e)],_0x515716[_0x485351(0x128)][_0x485351(0x1ce)],_0x515716[_0x485351(0x128)][_0x485351(0x1cd)]]);var _0x2ef40e=class extends Error{constructor(){const _0x58db47=_0x485351;super(_0x58db47(0x1ff));}};function _0x4a2117(_0x9d4f5c){const _0x538b76=_0x485351;var _0xce28de,_0x1ff522;let _0x33755a=_0x515716['Tools'][_0x538b76(0x14c)](_0x9d4f5c[_0x538b76(0x1db)]),_0x31b5fd=_0x24a5cb(_0x33755a),{startOffset:_0x5f37f8,endOffset:_0x221f81}=_0x4f1347(_0x31b5fd,_0x9d4f5c['startOffset'],_0x9d4f5c['endOffset']);_0x255c8b(_0x31b5fd,_0x5f37f8,_0x221f81);let _0x57c4a5=((_0xce28de=_0x31b5fd['customRanges'])==null?void 0x0:_0xce28de[_0x538b76(0x215)](_0x504dd5=>{const _0x552d30=_0x538b76;if(!_0x47d677(_0x504dd5))return!0x1;let _0x4f6156=(0x0,_0x515716[_0x552d30(0x182)])(_0x504dd5);return _0x4f6156[_0x552d30(0x204)]>_0x5f37f8&&_0x4f6156[_0x552d30(0x21d)]<_0x221f81;})[_0x538b76(0x1cb)](_0x4099e6=>_0x4099e6[_0x538b76(0x23f)]))??[];_0x85c7c(_0x31b5fd,_0x5f37f8,_0x221f81,''),_0x31b5fd['customRanges']=[...((_0x1ff522=_0x31b5fd[_0x538b76(0x1d0)])==null?void 0x0:_0x1ff522[_0x538b76(0x215)](_0x59c487=>!_0x57c4a5[_0x538b76(0x1e1)](_0x59c487[_0x538b76(0x23f)])&&_0x59c487[_0x538b76(0x23f)]!==_0x9d4f5c[_0x538b76(0x23f)]))??[],_0x2faa4a(_0x9d4f5c['rangeId'],_0x5f37f8)][_0x538b76(0x193)]((_0x372c76,_0x4b7906)=>_0x372c76['startIndex']-_0x4b7906['startIndex']);let _0x59beab=_0x48b16d(_0x9d4f5c[_0x538b76(0x137)]);return _0x57c4a5['forEach'](_0x565d92=>{const _0xa59b67=_0x538b76;delete _0x59beab[_0xa59b67(0x151)][_0x565d92];}),_0x59beab[_0x538b76(0x151)][_0x9d4f5c[_0x538b76(0x23f)]]=_0x515716[_0x538b76(0x247)][_0x538b76(0x14c)](_0x9d4f5c[_0x538b76(0x183)]),{'nextDocumentData':_0x33755a,'nextResource':_0x59beab,'cursorOffset':_0x5f37f8+0x1};}function _0x540bc7(_0x295e4c){const _0x251f93=_0x485351;var _0x34fd64,_0x16cb5c;let _0x442b20=_0x515716['Tools'][_0x251f93(0x14c)](_0x295e4c[_0x251f93(0x1db)]),_0x315502=(_0x34fd64=_0x24a5cb(_0x442b20)[_0x251f93(0x1d0)])==null?void 0x0:_0x34fd64[_0x251f93(0x13c)](_0x450111=>_0x450111[_0x251f93(0x23f)]===_0x295e4c[_0x251f93(0x23f)]&&_0x47d677(_0x450111));if(!_0x315502||!((_0x16cb5c=_0x295e4c[_0x251f93(0x137)])!=null&&_0x16cb5c['formulas'][_0x295e4c[_0x251f93(0x23f)]]))return null;let _0x18fda7=_0x48b16d(_0x295e4c['resource']);return _0x18fda7[_0x251f93(0x151)][_0x295e4c[_0x251f93(0x23f)]]=_0x515716[_0x251f93(0x247)][_0x251f93(0x14c)](_0x295e4c[_0x251f93(0x183)]),{'nextDocumentData':_0x442b20,'nextResource':_0x18fda7,'cursorOffset':_0x315502[_0x251f93(0x126)]+0x1};}function _0x33c701(_0x50047b){const _0x549ae5=_0x485351;let _0x952fd8=_0x515716[_0x549ae5(0x247)][_0x549ae5(0x14c)](_0x50047b['documentData']),_0x379bca=_0x15f1c0(_0x952fd8,_0x50047b['rangeId'],_0x50047b['text']??'');if(_0x379bca==null)return null;let _0x5c0171=_0x48b16d(_0x50047b[_0x549ae5(0x137)]);return delete _0x5c0171[_0x549ae5(0x151)][_0x50047b[_0x549ae5(0x23f)]],{'nextDocumentData':_0x952fd8,'nextResource':_0x5c0171,'cursorOffset':_0x379bca};}function _0x81449f(_0x5f3483,_0x2c7da2){const _0x451ca8=_0x485351;var _0xe4091;let _0x9d3174=_0x515716[_0x451ca8(0x247)][_0x451ca8(0x14c)](_0x5f3483),_0x93e60b=_0x9d3174[_0x451ca8(0x1e7)];if(!_0x93e60b)return _0x9d3174;let _0x2b3163=new Map(_0x2c7da2[_0x451ca8(0x1cb)](_0x28be11=>[_0x28be11[_0x451ca8(0x23f)],_0x28be11[_0x451ca8(0x1a3)]])),_0x2c7461=((_0xe4091=_0x93e60b['customRanges'])==null?void 0x0:_0xe4091['filter'](_0x2f9812=>_0x47d677(_0x2f9812)&&_0x2b3163[_0x451ca8(0x10e)](_0x2f9812['rangeId']))['sort']((_0xa5c5ab,_0x4f3c22)=>_0x4f3c22[_0x451ca8(0x1e4)]-_0xa5c5ab[_0x451ca8(0x1e4)]))??[];for(let _0x3d9ce6 of _0x2c7461)_0x15f1c0(_0x9d3174,_0x3d9ce6[_0x451ca8(0x23f)],_0x2b3163['get'](_0x3d9ce6[_0x451ca8(0x23f)])??'');return _0x9d3174;}function _0x47d677(_0x19ad81){const _0x39630f=_0x485351;var _0x45be80;return(_0x19ad81==null?void 0x0:_0x19ad81[_0x39630f(0x198)])===_0x515716['CustomRangeType'][_0x39630f(0x107)]&&_0x19ad81['wholeEntity']===!0x0&&((_0x45be80=_0x19ad81['properties'])==null?void 0x0:_0x45be80[_0x39630f(0x105)])==='univer-docs-formula';}function _0x34e6ea(_0x4259cb,_0x2f44a2){const _0x24e1fb=_0x485351;var _0x1a4c2b;return _0x4259cb==null||(_0x1a4c2b=_0x4259cb[_0x24e1fb(0x1d0)])==null?void 0x0:_0x1a4c2b['find'](_0x1a4cfb=>_0x1a4cfb[_0x24e1fb(0x23f)]===_0x2f44a2&&_0x47d677(_0x1a4cfb));}function _0x255c8b(_0x80fd60,_0x242bdb,_0x154b22){const _0x1456f7=_0x485351;if(_0x242bdb===_0x154b22){if(_0x2bdb71[_0x1456f7(0x10e)](_0x80fd60[_0x1456f7(0x1fd)][_0x242bdb]))throw new _0x2ef40e();return;}for(let _0x58c423=_0x242bdb;_0x58c423<_0x154b22;_0x58c423++)if(_0x80fd60[_0x1456f7(0x1fd)][_0x58c423]===_0x515716[_0x1456f7(0x128)][_0x1456f7(0x207)]||_0x2bdb71[_0x1456f7(0x10e)](_0x80fd60['dataStream'][_0x58c423]))throw new _0x2ef40e();}function _0x2faa4a(_0x2b03b8,_0x484c45){const _0x94c1f4=_0x485351;return{'startIndex':_0x484c45,'endIndex':_0x484c45,'rangeId':_0x2b03b8,'rangeType':_0x515716[_0x94c1f4(0x1d6)][_0x94c1f4(0x107)],'wholeEntity':!0x0,'properties':{'kind':_0x41ad86}};}function _0x48b16d(_0x34339e){const _0x6531c5=_0x485351;return _0x34339e?_0x515716[_0x6531c5(0x247)][_0x6531c5(0x14c)](_0x34339e):_0x5e7e4c();}function _0x4f1347(_0x2f2606,_0x1797dd,_0x21562b){const _0x59ae23=_0x485351;let _0x419c67=_0x43fbd8(_0x2f2606),_0x3f883e=_0x1797dd??_0x419c67,_0x3a9141=_0x21562b??_0x3f883e;return{'startOffset':_0x2a505e(Math[_0x59ae23(0x199)](_0x3f883e,_0x3a9141),_0x419c67),'endOffset':_0x2a505e(Math[_0x59ae23(0x14a)](_0x3f883e,_0x3a9141),_0x419c67)};}function _0x2a505e(_0x579c0b,_0x1754e2){const _0x37e6e4=_0x485351;return Math[_0x37e6e4(0x14a)](0x0,Math[_0x37e6e4(0x199)](_0x579c0b,_0x1754e2));}function _0x43fbd8(_0x32b0d6){const _0x3948de=_0x485351;return _0x32b0d6['dataStream'][_0x3948de(0x1f5)](''+_0x515716[_0x3948de(0x128)][_0x3948de(0x207)]+_0x515716[_0x3948de(0x128)][_0x3948de(0x140)])?Math['max'](0x0,_0x32b0d6[_0x3948de(0x1fd)][_0x3948de(0x187)]-0x2):_0x32b0d6[_0x3948de(0x1fd)][_0x3948de(0x1f5)](_0x515716[_0x3948de(0x128)][_0x3948de(0x140)])?Math[_0x3948de(0x14a)](0x0,_0x32b0d6[_0x3948de(0x1fd)][_0x3948de(0x187)]-0x1):_0x32b0d6[_0x3948de(0x1fd)]['length'];}function _0x85c7c(_0x68f161,_0xb6507e,_0x48bfd3,_0x40a8f4){_0x48bfd3>_0xb6507e&&_0x1ac313(_0x68f161,_0xb6507e,_0x48bfd3),_0x511db8(_0x68f161,_0xb6507e,_0x40a8f4);}function _0x15f1c0(_0xd219eb,_0x2718ee,_0x241178){const _0x566486=_0x485351;var _0x394114,_0x3fe318;let _0x1473c6=_0x24a5cb(_0xd219eb),_0x361248=(_0x394114=_0x1473c6[_0x566486(0x1d0)])==null?void 0x0:_0x394114[_0x566486(0x13c)](_0xa7e981=>_0xa7e981[_0x566486(0x23f)]===_0x2718ee&&_0x47d677(_0xa7e981));if(!_0x361248)return null;let _0x1eaebc=(0x0,_0x515716[_0x566486(0x182)])(_0x361248);return _0x85c7c(_0x1473c6,_0x1eaebc[_0x566486(0x21d)],_0x1eaebc[_0x566486(0x204)],_0x241178),_0x1473c6[_0x566486(0x1d0)]=(_0x3fe318=_0x1473c6[_0x566486(0x1d0)])==null?void 0x0:_0x3fe318['filter'](_0x53649f=>_0x53649f[_0x566486(0x23f)]!==_0x2718ee),_0x1eaebc[_0x566486(0x21d)]+_0x241178[_0x566486(0x187)];}function _0x511db8(_0x467c4b,_0x12e832,_0x1ae7d4){const _0x421b20=_0x485351;_0x1ae7d4&&(_0x467c4b[_0x421b20(0x1fd)]=''+_0x467c4b['dataStream'][_0x421b20(0x1bd)](0x0,_0x12e832)+_0x1ae7d4+_0x467c4b[_0x421b20(0x1fd)][_0x421b20(0x1bd)](_0x12e832),_0x55877a(_0x467c4b,_0x12e832,_0x1ae7d4[_0x421b20(0x187)]));}function _0x1ac313(_0x11debe,_0x5e0d0e,_0xa39013){const _0x5e086e=_0x485351;let _0x3acd41=_0xa39013-_0x5e0d0e;_0x11debe['dataStream']=''+_0x11debe['dataStream']['slice'](0x0,_0x5e0d0e)+_0x11debe[_0x5e086e(0x1fd)][_0x5e086e(0x1bd)](_0xa39013),_0x67cb3(_0x11debe,_0x5e0d0e,_0x3acd41);}function _0x55877a(_0x5ed33f,_0x2d15d9,_0xbb7d7f){const _0x183d56=_0x485351;_0x5ed33f[_0x183d56(0x230)]=_0x4bf522(_0x5ed33f['paragraphs'],_0x2d15d9,_0xbb7d7f),_0x5ed33f[_0x183d56(0x1df)]=_0x4bf522(_0x5ed33f[_0x183d56(0x1df)],_0x2d15d9,_0xbb7d7f),_0x5ed33f[_0x183d56(0x1ca)]=_0x4bf522(_0x5ed33f[_0x183d56(0x1ca)],_0x2d15d9,_0xbb7d7f),_0x5ed33f[_0x183d56(0x141)]=_0x3bd94c(_0x5ed33f[_0x183d56(0x141)],_0x2d15d9,_0xbb7d7f),_0x5ed33f['tables']=_0x7c0246(_0x5ed33f[_0x183d56(0x1fb)],_0x2d15d9,_0xbb7d7f),_0x5ed33f[_0x183d56(0x1b7)]=_0x1e9f56(_0x5ed33f[_0x183d56(0x1b7)],_0x2d15d9,_0xbb7d7f),_0x5ed33f[_0x183d56(0x1d0)]=_0x1e9f56(_0x5ed33f[_0x183d56(0x1d0)],_0x2d15d9,_0xbb7d7f),_0x5ed33f[_0x183d56(0x249)]=_0x1e9f56(_0x5ed33f[_0x183d56(0x249)],_0x2d15d9,_0xbb7d7f),_0x5ed33f[_0x183d56(0x1a8)]=_0x1e9f56(_0x5ed33f[_0x183d56(0x1a8)],_0x2d15d9,_0xbb7d7f);}function _0x67cb3(_0x59ccfb,_0x52a884,_0x39840e){const _0x298b6c=_0x485351;var _0x379e38,_0x2117c8;_0x59ccfb[_0x298b6c(0x230)]=_0x7cc467(_0x59ccfb['paragraphs'],_0x52a884,_0x39840e),_0x59ccfb['sectionBreaks']=_0x7cc467(_0x59ccfb['sectionBreaks'],_0x52a884,_0x39840e),_0x59ccfb[_0x298b6c(0x1ca)]=_0x7cc467(_0x59ccfb[_0x298b6c(0x1ca)],_0x52a884,_0x39840e),_0x59ccfb['textRuns']=(_0x379e38=_0x39c750((_0x2117c8=_0x59ccfb[_0x298b6c(0x141)])==null?void 0x0:_0x2117c8['map'](_0x1c4e86=>({..._0x1c4e86,'startIndex':_0x1c4e86['st'],'endIndex':_0x1c4e86['ed']})),_0x52a884,_0x39840e))==null?void 0x0:_0x379e38[_0x298b6c(0x1cb)](_0x22291e=>{let {startIndex:_0x254f47,endIndex:_0x330741,..._0xef1247}=_0x22291e;return{..._0xef1247,'st':_0x254f47,'ed':_0x330741};}),_0x59ccfb['tables']=_0x39c750(_0x59ccfb[_0x298b6c(0x1fb)],_0x52a884,_0x39840e),_0x59ccfb[_0x298b6c(0x1b7)]=_0x2be27b(_0x59ccfb[_0x298b6c(0x1b7)],_0x52a884,_0x39840e),_0x59ccfb[_0x298b6c(0x1d0)]=_0x2be27b(_0x59ccfb['customRanges'],_0x52a884,_0x39840e),_0x59ccfb[_0x298b6c(0x249)]=_0x2be27b(_0x59ccfb[_0x298b6c(0x249)],_0x52a884,_0x39840e),_0x59ccfb[_0x298b6c(0x1a8)]=_0x2be27b(_0x59ccfb[_0x298b6c(0x1a8)],_0x52a884,_0x39840e);}function _0x4bf522(_0x3d65e1,_0x2c7377,_0xf7751e){const _0x173112=_0x485351;return _0x3d65e1==null?void 0x0:_0x3d65e1['map'](_0x392784=>_0x392784[_0x173112(0x1e4)]>=_0x2c7377?{..._0x392784,'startIndex':_0x392784[_0x173112(0x1e4)]+_0xf7751e}:_0x392784);}function _0x7cc467(_0x4d8bf3,_0x594e26,_0x4eeaeb){const _0x166e65=_0x485351;let _0x3017e0=_0x594e26+_0x4eeaeb;return _0x4d8bf3==null?void 0x0:_0x4d8bf3[_0x166e65(0x1cb)](_0x6ead73=>_0x6ead73['startIndex']>=_0x594e26&&_0x6ead73[_0x166e65(0x1e4)]<_0x3017e0?null:_0x6ead73[_0x166e65(0x1e4)]>=_0x3017e0?{..._0x6ead73,'startIndex':_0x6ead73[_0x166e65(0x1e4)]-_0x4eeaeb}:_0x6ead73)[_0x166e65(0x215)](_0x321102=>_0x321102!=null);}function _0x3bd94c(_0x8a7e1e,_0x5063a5,_0x3d69dd){const _0x2a4de0=_0x485351;return _0x8a7e1e==null?void 0x0:_0x8a7e1e[_0x2a4de0(0x1cb)](_0x5722d9=>_0x5722d9['st']>=_0x5063a5?{..._0x5722d9,'st':_0x5722d9['st']+_0x3d69dd,'ed':_0x5722d9['ed']+_0x3d69dd}:_0x5722d9['ed']>_0x5063a5?{..._0x5722d9,'ed':_0x5722d9['ed']+_0x3d69dd}:_0x5722d9);}function _0x1e9f56(_0x40db21,_0x3dea9d,_0x544b29){const _0x3f4f9d=_0x485351;return _0x40db21==null?void 0x0:_0x40db21[_0x3f4f9d(0x1cb)](_0x54fd45=>(0x0,_0x515716[_0x3f4f9d(0x1d1)])(_0x54fd45,_0x3dea9d,_0x544b29));}function _0x7c0246(_0x5e3469,_0x38796f,_0x530827){const _0x5b3733=_0x485351;return _0x5e3469==null?void 0x0:_0x5e3469[_0x5b3733(0x1cb)](_0x5a81bc=>(0x0,_0x515716[_0x5b3733(0x21a)])(_0x5a81bc,_0x38796f,_0x530827));}function _0x2be27b(_0x19eae0,_0x55fdd4,_0x2bad35){const _0x2ef360=_0x485351;return _0x19eae0==null?void 0x0:_0x19eae0[_0x2ef360(0x1cb)](_0xd3bbb5=>(0x0,_0x515716[_0x2ef360(0x1a1)])(_0xd3bbb5,_0x55fdd4,_0x2bad35))[_0x2ef360(0x215)](_0x1f8106=>_0x1f8106!=null);}function _0x39c750(_0x4711ec,_0x2ba50e,_0x1b83e7){const _0x2cffe9=_0x485351;return _0x4711ec==null?void 0x0:_0x4711ec[_0x2cffe9(0x1cb)](_0x351022=>(0x0,_0x515716[_0x2cffe9(0x1a7)])(_0x351022,_0x2ba50e,_0x1b83e7))['filter'](_0x2ed0fd=>_0x2ed0fd!=null);}function _0x24a5cb(_0x26f119){const _0x5bc3ba=_0x485351;if(!_0x26f119[_0x5bc3ba(0x1e7)])throw Error(_0x5bc3ba(0x23c));return _0x26f119['body'];}function _0x360506(_0xcae02c){'@babel/helpers - typeof';const _0x4bb1f1=_0x485351;return _0x360506=typeof Symbol=='function'&&typeof Symbol[_0x4bb1f1(0x1b0)]=='symbol'?function(_0x4e6bd8){return typeof _0x4e6bd8;}:function(_0x24816d){const _0x15aee3=_0x4bb1f1;return _0x24816d&&typeof Symbol==_0x15aee3(0x22f)&&_0x24816d[_0x15aee3(0x197)]===Symbol&&_0x24816d!==Symbol[_0x15aee3(0x1f6)]?_0x15aee3(0x184):typeof _0x24816d;},_0x360506(_0xcae02c);}function _0x10881a(_0x2faaac,_0x490195){const _0x216b40=_0x485351;if(_0x360506(_0x2faaac)!=_0x216b40(0x14e)||!_0x2faaac)return _0x2faaac;var _0x27d568=_0x2faaac[Symbol['toPrimitive']];if(_0x27d568!==void 0x0){var _0x51f3d4=_0x27d568[_0x216b40(0x252)](_0x2faaac,_0x490195||_0x216b40(0x1c0));if(_0x360506(_0x51f3d4)!=_0x216b40(0x14e))return _0x51f3d4;throw TypeError(_0x216b40(0x1f0));}return(_0x490195===_0x216b40(0x1fe)?String:Number)(_0x2faaac);}function _0x396031(_0x54d24b){const _0x1dcad8=_0x485351;var _0x37b17a=_0x10881a(_0x54d24b,_0x1dcad8(0x1fe));return _0x360506(_0x37b17a)=='symbol'?_0x37b17a:_0x37b17a+'';}function _0x1b20d0(_0x463c45,_0x3decb6,_0x722fc6){return(_0x3decb6=_0x396031(_0x3decb6))in _0x463c45?Object['defineProperty'](_0x463c45,_0x3decb6,{'value':_0x722fc6,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x463c45[_0x3decb6]=_0x722fc6,_0x463c45;}var _0x4ac8e7=class extends _0x515716[_0x485351(0x15b)]{constructor(..._0x2c9e5e){const _0xe3579c=_0x485351;super(..._0x2c9e5e),_0x1b20d0(this,_0xe3579c(0x111),new Map()),_0x1b20d0(this,'_rawResources',new Map()),_0x1b20d0(this,_0xe3579c(0x15d),new Map()),_0x1b20d0(this,_0xe3579c(0x245),new _0x133f14[(_0xe3579c(0x22b))]()),_0x1b20d0(this,'change$',this[_0xe3579c(0x245)][_0xe3579c(0x115)]());}[_0x485351(0x176)](_0x2b0f93,_0x3e8736){const _0x57ea7a=_0x485351;var _0x21c2ed;let _0x5c57b5=(_0x21c2ed=this[_0x57ea7a(0x111)][_0x57ea7a(0x205)](_0x2b0f93))==null?void 0x0:_0x21c2ed[_0x57ea7a(0x151)][_0x3e8736];return _0x5c57b5?_0x515716[_0x57ea7a(0x247)][_0x57ea7a(0x14c)](_0x5c57b5):void 0x0;}[_0x485351(0x18f)](_0x1f613b){const _0x45d88a=_0x485351;var _0x1dd173;return _0x515716[_0x45d88a(0x247)][_0x45d88a(0x14c)](((_0x1dd173=this['_resources'][_0x45d88a(0x205)](_0x1f613b))==null?void 0x0:_0x1dd173['formulas'])??{});}['getResource'](_0x3e78b8){const _0x12c10e=_0x485351;let _0x48816f=this[_0x12c10e(0x111)][_0x12c10e(0x205)](_0x3e78b8);return _0x48816f?_0x515716[_0x12c10e(0x247)][_0x12c10e(0x14c)](_0x48816f):void 0x0;}[_0x485351(0x1f3)](_0x51d967,_0x4c5d2d,_0x5af3cd){const _0x4431a2=_0x485351;return this[_0x4431a2(0x11c)](_0x51d967,{[_0x4c5d2d]:_0x5af3cd});}[_0x485351(0x13a)](_0x2431b0,_0x602143){const _0x553e08=_0x485351;return this['_loadErrors'][_0x553e08(0x10e)](_0x2431b0)||!_0xc09f6(_0x602143)?!0x1:(this[_0x553e08(0x111)][_0x553e08(0x152)](_0x2431b0,_0x515716[_0x553e08(0x247)][_0x553e08(0x14c)](_0x602143)),this[_0x553e08(0x245)][_0x553e08(0x255)]({'unitId':_0x2431b0}),!0x0);}['setFormulas'](_0x17e24b,_0x4970da){const _0x5d9127=_0x485351;if(this[_0x5d9127(0x15d)]['has'](_0x17e24b)||!Object['keys'](_0x4970da)['length']||!_0xc09f6({'schemaVersion':0x1,'formulas':_0x4970da}))return!0x1;let _0x110c75=this[_0x5d9127(0x111)][_0x5d9127(0x205)](_0x17e24b)??_0x5e7e4c(),_0x3872eb=_0x515716['Tools']['deepClone'](_0x110c75);return Object[_0x5d9127(0x191)](_0x3872eb[_0x5d9127(0x151)],_0x515716[_0x5d9127(0x247)][_0x5d9127(0x14c)](_0x4970da)),this[_0x5d9127(0x111)]['set'](_0x17e24b,_0x3872eb),this[_0x5d9127(0x245)][_0x5d9127(0x255)]({'unitId':_0x17e24b,'rangeIds':Object['keys'](_0x4970da)}),!0x0;}[_0x485351(0x19a)](_0x45074e,_0x37c490){const _0x3db9dd=_0x485351;if(this[_0x3db9dd(0x15d)][_0x3db9dd(0x10e)](_0x45074e))return!0x1;let _0x1fd9e8=this[_0x3db9dd(0x111)][_0x3db9dd(0x205)](_0x45074e);if(!(_0x1fd9e8!=null&&_0x1fd9e8['formulas'][_0x37c490]))return!0x1;let _0x56d403=_0x515716['Tools']['deepClone'](_0x1fd9e8);return delete _0x56d403[_0x3db9dd(0x151)][_0x37c490],this[_0x3db9dd(0x111)][_0x3db9dd(0x152)](_0x45074e,_0x56d403),this[_0x3db9dd(0x245)]['next']({'unitId':_0x45074e,'rangeIds':[_0x37c490]}),!0x0;}[_0x485351(0x1e5)](_0x4a5e9a,_0x4ccdf0){const _0x515a2b=_0x485351;return _0x4ccdf0&&typeof _0x4ccdf0=='object'&&_0x515a2b(0x236)in _0x4ccdf0&&_0x4ccdf0[_0x515a2b(0x236)]!==0x1?(this[_0x515a2b(0x1b5)](_0x4a5e9a,_0x4ccdf0,_0x515a2b(0x1b2)),!0x1):_0xc09f6(_0x4ccdf0)?(this[_0x515a2b(0x111)][_0x515a2b(0x152)](_0x4a5e9a,_0x515716[_0x515a2b(0x247)]['deepClone'](_0x4ccdf0)),this[_0x515a2b(0x1dc)]['delete'](_0x4a5e9a),this[_0x515a2b(0x15d)][_0x515a2b(0x16c)](_0x4a5e9a),this['_change$'][_0x515a2b(0x255)]({'unitId':_0x4a5e9a}),!0x0):(this[_0x515a2b(0x1b5)](_0x4a5e9a,_0x4ccdf0,_0x515a2b(0x10f)),!0x1);}[_0x485351(0x1ef)](_0x1ba4d6){const _0x160df0=_0x485351;let _0x3ae521=this[_0x160df0(0x111)]['get'](_0x1ba4d6);return _0x3ae521?_0x515716[_0x160df0(0x247)][_0x160df0(0x14c)](_0x3ae521):this[_0x160df0(0x1dc)][_0x160df0(0x10e)](_0x1ba4d6)?_0x515716[_0x160df0(0x247)]['deepClone'](this[_0x160df0(0x1dc)]['get'](_0x1ba4d6)):_0x5e7e4c();}[_0x485351(0x195)](_0x25a760){return this['_loadErrors']['get'](_0x25a760);}[_0x485351(0x1f9)](_0x12faac){const _0x573007=_0x485351;this['_resources'][_0x573007(0x16c)](_0x12faac),this[_0x573007(0x1dc)][_0x573007(0x16c)](_0x12faac),this[_0x573007(0x15d)][_0x573007(0x16c)](_0x12faac),this[_0x573007(0x245)]['next']({'unitId':_0x12faac});}[_0x485351(0x1af)](){const _0x190808=_0x485351;this[_0x190808(0x111)][_0x190808(0x1b3)](),this[_0x190808(0x1dc)][_0x190808(0x1b3)](),this['_loadErrors'][_0x190808(0x1b3)](),this['_change$']['complete'](),super[_0x190808(0x1af)]();}['_preserveInvalid'](_0x573ef4,_0x283dca,_0x4132a2){const _0x588efe=_0x485351;this[_0x588efe(0x111)][_0x588efe(0x16c)](_0x573ef4),this[_0x588efe(0x1dc)][_0x588efe(0x152)](_0x573ef4,_0x515716[_0x588efe(0x247)][_0x588efe(0x14c)](_0x283dca)),this[_0x588efe(0x15d)][_0x588efe(0x152)](_0x573ef4,_0x4132a2),this['_change$']['next']({'unitId':_0x573ef4});}};let _0x35daa2=function(_0x2f6f52){const _0x5101b1=_0x485351;return _0x2f6f52[_0x5101b1(0x1a5)]='empty',_0x2f6f52[_0x5101b1(0x19d)]=_0x5101b1(0x24f),_0x2f6f52[_0x5101b1(0x14b)]='success',_0x2f6f52[_0x5101b1(0x220)]=_0x5101b1(0x104),_0x2f6f52;}({});function _0x2a8da1(_0xed90c2,_0x55cb9c){return function(_0x24ac08,_0x424875){_0x55cb9c(_0x24ac08,_0x424875,_0xed90c2);};}function _0x35b31f(_0x105e7e,_0x306ba7,_0x461ce7,_0x24ad74){const _0x16fc64=_0x485351;var _0x4a51b3=arguments['length'],_0x42d23c=_0x4a51b3<0x3?_0x306ba7:_0x24ad74===null?_0x24ad74=Object[_0x16fc64(0x1ba)](_0x306ba7,_0x461ce7):_0x24ad74,_0x4e65e0;if(typeof Reflect==_0x16fc64(0x14e)&&typeof Reflect[_0x16fc64(0x12f)]==_0x16fc64(0x22f))_0x42d23c=Reflect['decorate'](_0x105e7e,_0x306ba7,_0x461ce7,_0x24ad74);else{for(var _0x2c985b=_0x105e7e[_0x16fc64(0x187)]-0x1;_0x2c985b>=0x0;_0x2c985b--)(_0x4e65e0=_0x105e7e[_0x2c985b])&&(_0x42d23c=(_0x4a51b3<0x3?_0x4e65e0(_0x42d23c):_0x4a51b3>0x3?_0x4e65e0(_0x306ba7,_0x461ce7,_0x42d23c):_0x4e65e0(_0x306ba7,_0x461ce7))||_0x42d23c);}return _0x4a51b3>0x3&&_0x42d23c&&Object[_0x16fc64(0x228)](_0x306ba7,_0x461ce7,_0x42d23c),_0x42d23c;}let _0x242f59=class extends _0x515716['Disposable']{constructor(_0x5e1c0b,_0x70c254,_0x16db32){const _0x122f52=_0x485351;super(),this[_0x122f52(0x16f)]=_0x5e1c0b,this[_0x122f52(0x149)]=_0x70c254,this[_0x122f52(0x169)]=_0x16db32,_0x1b20d0(this,_0x122f52(0x155),new Map()),_0x1b20d0(this,_0x122f52(0x194),new Map()),_0x1b20d0(this,_0x122f52(0x229),new _0x133f14[(_0x122f52(0x22b))]()),_0x1b20d0(this,_0x122f52(0x20a),this[_0x122f52(0x229)][_0x122f52(0x115)]()),this[_0x122f52(0x10d)](this[_0x122f52(0x149)][_0x122f52(0x168)][_0x122f52(0x254)](_0x121fb9=>{const _0x27973d=_0x122f52;for(let _0x22485b of Object[_0x27973d(0x142)](_0x121fb9))for(let _0xf13b17 of Object[_0x27973d(0x142)](_0x22485b))_0xf13b17[_0x27973d(0x1e9)](_0x3de0c1=>this['_updateFormulaResult'](_0x3de0c1));}));}[_0x485351(0x11a)](_0x339b73){const _0x504274=_0x485351;var _0x392450;let _0x46a5d1=_0x339b73[_0x504274(0x227)](),_0x2f52d0=((_0x392450=_0x339b73[_0x504274(0x153)]()[_0x504274(0x1e7)])==null||(_0x392450=_0x392450[_0x504274(0x1d0)])==null?void 0x0:_0x392450[_0x504274(0x215)](_0x47d677))??[],_0x1b7751=this[_0x504274(0x16f)][_0x504274(0x18f)](_0x46a5d1),_0x4b66a1=new Set();for(let _0x50629d of _0x2f52d0){let _0x4748d9=_0x1b7751[_0x50629d[_0x504274(0x23f)]];_0x4748d9&&(_0x4b66a1[_0x504274(0x117)](_0x181e5f(_0x46a5d1,_0x50629d['rangeId'])),this[_0x504274(0x1d2)]({'unitId':_0x46a5d1,'rangeId':_0x50629d[_0x504274(0x23f)]},_0x4748d9));}for(let _0x5ffde6 of Array[_0x504274(0x16e)](this[_0x504274(0x155)][_0x504274(0x142)]()))_0x5ffde6['unitId']===_0x46a5d1&&!_0x4b66a1['has'](_0x181e5f(_0x5ffde6[_0x504274(0x113)],_0x5ffde6['rangeId']))&&this['unregister'](_0x5ffde6);}['register'](_0x29d7ab,_0x4262e1){const _0x3580b4=_0x485351;let _0x367db5=_0x181e5f(_0x29d7ab[_0x3580b4(0x113)],_0x29d7ab[_0x3580b4(0x23f)]),_0x10c085=this[_0x3580b4(0x155)][_0x3580b4(0x205)](_0x367db5),_0x4a2e38=this[_0x3580b4(0x169)][_0x3580b4(0x1f7)](_0x29d7ab[_0x3580b4(0x113)]);if(_0x10c085&&_0x10c085[_0x3580b4(0x183)][_0x3580b4(0x1a6)]===_0x4262e1[_0x3580b4(0x1a6)]&&_0x10c085[_0x3580b4(0x1b4)]===_0x4a2e38){_0x10c085[_0x3580b4(0x183)]=_0x4262e1;let _0x1dd762=_0x10c085['formulaId']?this[_0x3580b4(0x149)][_0x3580b4(0x1d9)](_0x10c085[_0x3580b4(0x113)],_0x10c085[_0x3580b4(0x113)],_0x10c085[_0x3580b4(0x17a)])??void 0x0:void 0x0;_0x10c085[_0x3580b4(0x23a)]=_0x1dd762,this[_0x3580b4(0x1de)](_0x367db5,_0x564c6a(_0x4262e1,_0x1dd762));return;}_0x10c085!=null&&_0x10c085[_0x3580b4(0x17a)]&&this[_0x3580b4(0x160)](_0x10c085);let _0x24e77f={..._0x29d7ab,'config':_0x4262e1,'referenceRevision':_0x4a2e38,'presentation':_0x564c6a(_0x4262e1,void 0x0)};if(this[_0x3580b4(0x155)][_0x3580b4(0x152)](_0x367db5,_0x24e77f),!_0x4262e1[_0x3580b4(0x1a6)]['trim']())return;let _0x45197f=this['_registrationService'][_0x3580b4(0x15a)](_0x29d7ab[_0x3580b4(0x113)],_0x29d7ab['unitId'],_0x4262e1[_0x3580b4(0x1a6)],void 0x0,{'rangeId':_0x29d7ab[_0x3580b4(0x23f)]},_0x4066ff[_0x3580b4(0x1ec)][_0x3580b4(0x1d8)],_0x29d7ab[_0x3580b4(0x23f)]);_0x24e77f[_0x3580b4(0x17a)]=_0x45197f,this['_formulaKeys']['set'](_0x45197f,_0x367db5);}['unregister'](_0x3cad8d){const _0x43f356=_0x485351;let _0x5406ee=_0x181e5f(_0x3cad8d[_0x43f356(0x113)],_0x3cad8d[_0x43f356(0x23f)]),_0x377d12=this[_0x43f356(0x155)][_0x43f356(0x205)](_0x5406ee);_0x377d12&&(this[_0x43f356(0x160)](_0x377d12),this['_registrations'][_0x43f356(0x16c)](_0x5406ee));}[_0x485351(0x166)](_0x41d606){const _0x57c7a3=_0x485351;for(let _0x54ec11 of Array[_0x57c7a3(0x16e)](this[_0x57c7a3(0x155)][_0x57c7a3(0x142)]()))_0x54ec11['unitId']===_0x41d606&&this['unregister'](_0x54ec11);}[_0x485351(0x159)](_0x316162){const _0x55af8c=_0x485351;var _0x10cc21;return(_0x10cc21=this[_0x55af8c(0x155)]['get'](_0x181e5f(_0x316162[_0x55af8c(0x113)],_0x316162[_0x55af8c(0x23f)])))==null?void 0x0:_0x10cc21[_0x55af8c(0x1b1)];}[_0x485351(0x20b)](_0x23cd4f){const _0x555eaa=_0x485351;let _0x3db9ed=this[_0x555eaa(0x155)][_0x555eaa(0x205)](_0x181e5f(_0x23cd4f[_0x555eaa(0x113)],_0x23cd4f[_0x555eaa(0x23f)]));return _0x3db9ed?_0x1105e9(_0x3db9ed):void 0x0;}[_0x485351(0x127)](){const _0x894115=_0x485351;return Array[_0x894115(0x16e)](this['_registrations'][_0x894115(0x142)](),_0x290c8c=>({'identity':{'unitId':_0x290c8c[_0x894115(0x113)],'rangeId':_0x290c8c[_0x894115(0x23f)]},'config':_0x290c8c[_0x894115(0x183)],'referenceRevision':_0x290c8c[_0x894115(0x1b4)],..._0x290c8c['liveResult']?{'liveResult':_0x290c8c[_0x894115(0x23a)]}:null}));}['dispose'](){const _0x185747=_0x485351;for(let _0x2075f3 of this['_registrations'][_0x185747(0x142)]())this[_0x185747(0x160)](_0x2075f3);this[_0x185747(0x155)][_0x185747(0x1b3)](),this[_0x185747(0x194)][_0x185747(0x1b3)](),this['_presentationChanged$'][_0x185747(0x234)](),super[_0x185747(0x1af)]();}['_updateFormulaResult'](_0x3300d5){const _0x17ad50=_0x485351;let _0x275e53=this[_0x17ad50(0x194)][_0x17ad50(0x205)](_0x3300d5[_0x17ad50(0x17a)]),_0xf22bcb=_0x275e53?this[_0x17ad50(0x155)][_0x17ad50(0x205)](_0x275e53):void 0x0;!_0x275e53||!_0xf22bcb||(_0xf22bcb[_0x17ad50(0x23a)]=_0x3300d5,this[_0x17ad50(0x1de)](_0x275e53,_0x564c6a(_0xf22bcb[_0x17ad50(0x183)],_0x3300d5)));}[_0x485351(0x1de)](_0x154d20,_0x40dcc8){const _0x369991=_0x485351;var _0x29861b,_0x192e70;let _0x14eb13=this[_0x369991(0x155)][_0x369991(0x205)](_0x154d20);if(!_0x14eb13||_0x12ec24(_0x14eb13[_0x369991(0x1b1)],_0x40dcc8))return;let _0x1f8f91=_0x14eb13[_0x369991(0x1b1)],_0x230187=_0x1105e9(_0x14eb13);_0x14eb13[_0x369991(0x1b1)]=_0x40dcc8,this[_0x369991(0x229)][_0x369991(0x255)]({'unitId':_0x14eb13['unitId'],'rangeId':_0x14eb13[_0x369991(0x23f)],'presentation':_0x40dcc8,'previousPresentation':_0x1f8f91,'result':_0x1105e9(_0x14eb13),'previousResult':{..._0x230187,..._0x1f8f91,'value':(_0x29861b=_0x1f8f91[_0x369991(0x13f)])==null?void 0x0:_0x29861b['v'],'valueType':((_0x192e70=_0x1f8f91[_0x369991(0x13f)])==null?void 0x0:_0x192e70['t'])??void 0x0}});}[_0x485351(0x160)](_0x2fb48c){const _0x1a8385=_0x485351;_0x2fb48c[_0x1a8385(0x17a)]&&(this[_0x1a8385(0x149)][_0x1a8385(0x1b8)](_0x2fb48c['unitId'],_0x2fb48c[_0x1a8385(0x113)],[_0x2fb48c['formulaId']]),this[_0x1a8385(0x194)][_0x1a8385(0x16c)](_0x2fb48c[_0x1a8385(0x17a)]));}};_0x242f59=_0x35b31f([_0x2a8da1(0x0,(0x0,_0x515716['Inject'])(_0x4ac8e7)),_0x2a8da1(0x1,(0x0,_0x515716['Inject'])(_0x4066ff[_0x485351(0x257)])),_0x2a8da1(0x2,(0x0,_0x515716[_0x485351(0x145)])(_0x1e3b22[_0x485351(0x106)]))],_0x242f59);function _0x181e5f(_0x2ef3ad,_0x130d6c){return _0x2ef3ad+'\x00'+_0x130d6c;}function _0x564c6a(_0x35f79f,_0x2c00f9){const _0x572e5a=_0x485351;return(0x0,_0x1e3b22[_0x572e5a(0x109)])({'numberFormat':_0x35f79f['numberFormat'],'lastValue':_0x35f79f['lastValue'],'result':_0x2c00f9});}function _0x1105e9(_0x40dd4e){const _0x47f3d4=_0x485351;var _0x268ba2,_0xcc6a4,_0x5c2f50;let _0x291169=_0x40dd4e['presentation'],_0x59a3bb=_0x40dd4e[_0x47f3d4(0x183)][_0x47f3d4(0x1a6)][_0x47f3d4(0x147)]()?_0x291169[_0x47f3d4(0x243)]||_0x291169['cell']==null?_0x47f3d4(0x24f):((_0x268ba2=_0x40dd4e[_0x47f3d4(0x23a)])==null?void 0x0:_0x268ba2['status'])===_0x4066ff['FormulaResultStatus'][_0x47f3d4(0x220)]?_0x47f3d4(0x104):_0x47f3d4(0x246):_0x47f3d4(0x24e);return{..._0x291169,'status':_0x59a3bb,'value':(_0xcc6a4=_0x291169[_0x47f3d4(0x13f)])==null?void 0x0:_0xcc6a4['v'],'valueType':((_0x5c2f50=_0x291169[_0x47f3d4(0x13f)])==null?void 0x0:_0x5c2f50['t'])??void 0x0};}function _0x12ec24(_0x1ec231,_0x3c625d){const _0x35bdbf=_0x485351;var _0x5db33d,_0x445d82,_0xa8064e,_0x1b869d;return _0x1ec231[_0x35bdbf(0x1a3)]===_0x3c625d[_0x35bdbf(0x1a3)]&&_0x1ec231['color']===_0x3c625d[_0x35bdbf(0x1a9)]&&_0x1ec231[_0x35bdbf(0x190)]===_0x3c625d['pattern']&&_0x1ec231['source']===_0x3c625d[_0x35bdbf(0x202)]&&_0x1ec231[_0x35bdbf(0x243)]===_0x3c625d[_0x35bdbf(0x243)]&&((_0x5db33d=_0x1ec231[_0x35bdbf(0x13f)])==null?void 0x0:_0x5db33d['t'])===((_0x445d82=_0x3c625d['cell'])==null?void 0x0:_0x445d82['t'])&&Object['is']((_0xa8064e=_0x1ec231[_0x35bdbf(0x13f)])==null?void 0x0:_0xa8064e['v'],(_0x1b869d=_0x3c625d[_0x35bdbf(0x13f)])==null?void 0x0:_0x1b869d['v']);}let _0x14005e={'id':'docs-formula.mutation.set-formula','type':_0x515716[_0x485351(0x256)][_0x485351(0x11f)],'handler':(_0x14dcff,_0x35ac95)=>!(_0x35ac95!=null&&_0x35ac95['unitId'])||!_0x35ac95[_0x485351(0x23f)]||!_0x35ac95[_0x485351(0x183)]?!0x1:_0x14dcff[_0x485351(0x205)](_0x4ac8e7)['setFormula'](_0x35ac95[_0x485351(0x113)],_0x35ac95[_0x485351(0x23f)],_0x35ac95['config'])},_0x235d43={'id':_0x485351(0x24a),'type':_0x515716[_0x485351(0x256)][_0x485351(0x11f)],'handler':(_0x4e2f2a,_0x35d422)=>!(_0x35d422!=null&&_0x35d422['unitId'])||!_0x35d422['rangeId']?!0x1:_0x4e2f2a['get'](_0x4ac8e7)[_0x485351(0x19a)](_0x35d422[_0x485351(0x113)],_0x35d422['rangeId'])},_0x1dbf88={'id':_0x485351(0x143),'type':_0x515716[_0x485351(0x256)]['MUTATION'],'handler':(_0x177aa9,_0x202698)=>!(_0x202698!=null&&_0x202698[_0x485351(0x113)])||!_0x202698[_0x485351(0x137)]?!0x1:_0x177aa9[_0x485351(0x205)](_0x4ac8e7)[_0x485351(0x13a)](_0x202698[_0x485351(0x113)],_0x202698[_0x485351(0x137)])},_0x3a4fc7={'id':_0x485351(0x226),'type':_0x515716[_0x485351(0x256)][_0x485351(0x11f)],'handler':(_0x4f172a,_0x11875d)=>{const _0x14076e=_0x485351;if(!(_0x11875d!=null&&_0x11875d[_0x14076e(0x113)])||!_0x11875d[_0x14076e(0x165)][_0x14076e(0x187)])return!0x1;let _0x1e9ea6=_0x4f172a[_0x14076e(0x205)](_0x4ac8e7),_0x24fb42=_0x4f172a['get'](_0x1e3b22[_0x14076e(0x106)]),_0x39ba3e=_0x1e9ea6['getResource'](_0x11875d[_0x14076e(0x113)]);if(!_0x39ba3e)return!0x1;let _0x19b405=_0x515716[_0x14076e(0x247)]['deepClone'](_0x39ba3e),_0x270e28=!0x1;for(let _0x3c223a of _0x11875d[_0x14076e(0x165)]){var _0x6c3515,_0x16a9c0,_0x41ceed,_0x1ce7a3;let _0x56baba=_0x19b405['formulas'][_0x3c223a[_0x14076e(0x23f)]];!_0x56baba||_0x56baba['formula']!==_0x3c223a[_0x14076e(0x1c5)]||((_0x6c3515=_0x56baba[_0x14076e(0x1f4)])==null?void 0x0:_0x6c3515['pattern'])!==_0x3c223a[_0x14076e(0x10c)]||_0x24fb42[_0x14076e(0x1f7)](_0x11875d[_0x14076e(0x113)])!==_0x3c223a[_0x14076e(0x12a)]||(((_0x16a9c0=_0x56baba['lastValue'])==null?void 0x0:_0x16a9c0['v'])!==_0x3c223a[_0x14076e(0x1da)]['v']||((_0x41ceed=_0x56baba[_0x14076e(0x1da)])==null?void 0x0:_0x41ceed['t'])!==_0x3c223a[_0x14076e(0x1da)]['t']||((_0x1ce7a3=_0x56baba[_0x14076e(0x1da)])==null?void 0x0:_0x1ce7a3['pattern'])!==_0x3c223a[_0x14076e(0x1da)][_0x14076e(0x190)])&&(_0x56baba[_0x14076e(0x1da)]=_0x515716[_0x14076e(0x247)][_0x14076e(0x14c)](_0x3c223a[_0x14076e(0x1da)]),_0x270e28=!0x0);}return!_0x270e28||_0x1e9ea6[_0x14076e(0x13a)](_0x11875d[_0x14076e(0x113)],_0x19b405);}},_0x33db8c={'id':_0x485351(0x180),'type':_0x515716[_0x485351(0x256)][_0x485351(0x1e0)],'handler':(_0x575c9b,_0x54906b)=>{const _0x5a3cfa=_0x485351;if(!(_0x54906b!=null&&_0x54906b[_0x5a3cfa(0x1a6)][_0x5a3cfa(0x147)]()))return!0x1;let _0x3cb6b3=_0x44f75b(_0x575c9b,_0x54906b['unitId'],'');if(!_0x3cb6b3)return!0x1;let _0x315da7=_0xbd5723(_0x54906b[_0x5a3cfa(0x114)],_0x3cb6b3['body'],_0x3966b0(_0x575c9b,_0x3cb6b3['unitId']));if(!_0x315da7)return!0x1;let _0x2abffd=_0xfbf865(_0x575c9b,_0x3cb6b3[_0x5a3cfa(0x113)],_0x54906b[_0x5a3cfa(0x1a6)],_0x54906b['externalReferences']??[]);if(!_0x2abffd)return!0x1;let _0x600fe4=_0x37dbba(_0x3cb6b3['body'],_0x3cb6b3[_0x5a3cfa(0x235)],_0x3cb6b3[_0x5a3cfa(0x113)]),_0x31c2e4=_0x2e4688({'documentData':_0x3cb6b3[_0x5a3cfa(0x1db)],'resource':_0x3cb6b3[_0x5a3cfa(0x137)],'rangeId':_0x600fe4,'config':{'formula':_0x54906b[_0x5a3cfa(0x1a6)],..._0x54906b[_0x5a3cfa(0x1f4)]?{'numberFormat':_0x54906b[_0x5a3cfa(0x1f4)]}:null},'startOffset':_0x315da7[_0x5a3cfa(0x21d)],'endOffset':_0x315da7['endOffset']});if(!_0x31c2e4)return!0x1;let _0x4600ac=(0x0,_0x1e3b22[_0x5a3cfa(0x1e2)])(_0x575c9b,_0x3cb6b3[_0x5a3cfa(0x113)],_0x2abffd);return!_0x4600ac||!_0x36cdef({'accessor':_0x575c9b,'document':_0x3cb6b3['document'],'unitId':_0x3cb6b3[_0x5a3cfa(0x113)],'trigger':_0x33db8c['id'],'rangeId':_0x600fe4,'previousResource':_0x3cb6b3[_0x5a3cfa(0x137)],'nextResource':_0x31c2e4[_0x5a3cfa(0x224)],'previousDocumentData':_0x3cb6b3['documentData'],'nextDocumentData':_0x31c2e4['nextDocumentData'],'cursorOffset':_0x31c2e4[_0x5a3cfa(0x1f1)],'externalMutations':_0x4600ac})?!0x1:{'rangeId':_0x600fe4,'startOffset':_0x31c2e4[_0x5a3cfa(0x1f1)]-0x1,'endOffset':_0x31c2e4[_0x5a3cfa(0x1f1)]};}},_0x4432c5={'id':_0x485351(0x1eb),'type':_0x515716[_0x485351(0x256)][_0x485351(0x1e0)],'handler':(_0x4963d1,_0x598552)=>{const _0x336961=_0x485351;if(!(_0x598552!=null&&_0x598552[_0x336961(0x23f)])||!_0x598552['formula']['trim']())return!0x1;let _0x2f00a6=_0x44f75b(_0x4963d1,_0x598552[_0x336961(0x113)],''),_0x27f2df=_0x2f00a6==null?void 0x0:_0x2f00a6[_0x336961(0x235)][_0x336961(0x176)](_0x2f00a6['unitId'],_0x598552[_0x336961(0x23f)]),_0xcb7fe0=_0x2f00a6?_0x34e6ea(_0x2f00a6[_0x336961(0x1db)][_0x336961(0x1e7)],_0x598552[_0x336961(0x23f)]):void 0x0;if(!_0x2f00a6||!_0x27f2df||!_0xcb7fe0)return!0x1;let _0x440ed5=_0xfbf865(_0x4963d1,_0x2f00a6[_0x336961(0x113)],_0x598552[_0x336961(0x1a6)],_0x598552[_0x336961(0x1e3)]??[]);if(!_0x440ed5)return!0x1;let _0xbb6590=(0x0,_0x1e3b22[_0x336961(0x1e2)])(_0x4963d1,_0x2f00a6[_0x336961(0x113)],_0x440ed5);if(!_0xbb6590)return!0x1;let _0x49d695=_0x4bf2b4(_0x2f00a6[_0x336961(0x137)]);return _0x49d695[_0x336961(0x151)][_0x598552[_0x336961(0x23f)]]={'formula':_0x598552[_0x336961(0x1a6)],..._0x598552[_0x336961(0x1f4)]?{'numberFormat':_0x598552[_0x336961(0x1f4)]}:_0x27f2df[_0x336961(0x1f4)]?{'numberFormat':_0x27f2df[_0x336961(0x1f4)]}:null},_0x36cdef({'accessor':_0x4963d1,'document':_0x2f00a6[_0x336961(0x11d)],'unitId':_0x2f00a6[_0x336961(0x113)],'trigger':_0x4432c5['id'],'rangeId':_0x598552[_0x336961(0x23f)],'previousResource':_0x2f00a6['resource'],'nextResource':_0x49d695,'cursorOffset':_0xcb7fe0['endIndex']+0x1,'externalMutations':_0xbb6590});}},_0xc6c098={'id':'docs-formula.command.set-number-format','type':_0x515716[_0x485351(0x256)]['COMMAND'],'handler':(_0x259515,_0x1f1e55)=>{const _0x44c0dd=_0x485351;if(!(_0x1f1e55!=null&&_0x1f1e55[_0x44c0dd(0x23f)]))return!0x1;let _0x424948=_0x44f75b(_0x259515,_0x1f1e55[_0x44c0dd(0x113)],''),_0x1a0da3=_0x424948==null?void 0x0:_0x424948[_0x44c0dd(0x235)][_0x44c0dd(0x176)](_0x424948[_0x44c0dd(0x113)],_0x1f1e55['rangeId']),_0x4471ca=_0x424948?_0x34e6ea(_0x424948['documentData'][_0x44c0dd(0x1e7)],_0x1f1e55[_0x44c0dd(0x23f)]):void 0x0;if(!_0x424948||!_0x1a0da3||!_0x4471ca)return!0x1;let _0x2003a8=_0x4bf2b4(_0x424948[_0x44c0dd(0x137)]);return _0x2003a8[_0x44c0dd(0x151)][_0x1f1e55['rangeId']]={..._0x1a0da3,..._0x1f1e55[_0x44c0dd(0x1f4)]?{'numberFormat':_0x1f1e55['numberFormat']}:null},_0x1f1e55[_0x44c0dd(0x1f4)]||delete _0x2003a8[_0x44c0dd(0x151)][_0x1f1e55[_0x44c0dd(0x23f)]][_0x44c0dd(0x1f4)],_0x36cdef({'accessor':_0x259515,'document':_0x424948['document'],'unitId':_0x424948[_0x44c0dd(0x113)],'trigger':_0xc6c098['id'],'rangeId':_0x1f1e55[_0x44c0dd(0x23f)],'previousResource':_0x424948[_0x44c0dd(0x137)],'nextResource':_0x2003a8,'cursorOffset':_0x4471ca[_0x44c0dd(0x126)]+0x1,'externalMutations':{}});}},_0x145357={'id':_0x485351(0x171),'type':_0x515716['CommandType']['COMMAND'],'handler':(_0x127bbe,_0x2f9a7c)=>_0x5cfad5(_0x127bbe,_0x2f9a7c,'',_0x145357['id'])},_0x3ffb4b={'id':_0x485351(0x18b),'type':_0x515716[_0x485351(0x256)][_0x485351(0x1e0)],'handler':(_0x4cc77,_0x265e56)=>_0x5cfad5(_0x4cc77,_0x265e56,(_0x265e56==null?void 0x0:_0x265e56['text'])??'',_0x3ffb4b['id'])},_0x5b67a6={'id':'docs-formula.command.convert-to-text','type':_0x515716[_0x485351(0x256)][_0x485351(0x1e0)],'handler':(_0x15ea33,_0x1897bd)=>{const _0x157690=_0x485351;if(!(_0x1897bd!=null&&_0x1897bd[_0x157690(0x23f)]))return!0x1;let _0x276f19=_0x44f75b(_0x15ea33,_0x1897bd[_0x157690(0x113)],'');if(!_0x276f19)return!0x1;let _0x4f4e80=_0x15ea33[_0x157690(0x205)](_0x242f59)[_0x157690(0x20b)]({'unitId':_0x276f19[_0x157690(0x113)],'rangeId':_0x1897bd['rangeId']});return _0x4f4e80?_0x5cfad5(_0x15ea33,_0x1897bd,_0x4f4e80['text'],_0x5b67a6['id']):!0x1;}};function _0x5cfad5(_0x5dbacf,_0xfe8b25,_0x5eecda,_0x419ceb){const _0x10421d=_0x485351;if(!(_0xfe8b25!=null&&_0xfe8b25['rangeId']))return!0x1;let _0x212511=_0x44f75b(_0x5dbacf,_0xfe8b25['unitId'],'');if(!_0x212511)return!0x1;let _0x586a86=_0x33c701({'documentData':_0x212511['documentData'],'resource':_0x212511[_0x10421d(0x137)],'rangeId':_0xfe8b25[_0x10421d(0x23f)],'text':_0x5eecda});return _0x586a86?_0x36cdef({'accessor':_0x5dbacf,'document':_0x212511[_0x10421d(0x11d)],'unitId':_0x212511['unitId'],'trigger':_0x419ceb,'rangeId':_0xfe8b25[_0x10421d(0x23f)],'previousResource':_0x212511[_0x10421d(0x137)],'nextResource':_0x586a86['nextResource'],'previousDocumentData':_0x212511[_0x10421d(0x1db)],'nextDocumentData':_0x586a86['nextDocumentData'],'cursorOffset':_0x586a86['cursorOffset'],'externalMutations':{}}):!0x1;}function _0x44f75b(_0x5d767b,_0x244aa8,_0x2d81fc){const _0x98769e=_0x485351;if(_0x2d81fc)return null;let _0x55c5ce=_0x5d767b[_0x98769e(0x205)](_0x515716['IUniverInstanceService']),_0xc6beb2=(_0x244aa8?_0x55c5ce['getUnit'](_0x244aa8,_0x515716[_0x98769e(0x22e)]['UNIVER_DOC']):_0x55c5ce[_0x98769e(0x248)](_0x515716[_0x98769e(0x22e)][_0x98769e(0x12d)]))??null;if(!_0xc6beb2)return null;let _0x5b19cf=_0xc6beb2['getSnapshot'](),_0x1464d7=_0x5b19cf['body'];if(_0x5b19cf['disabled']||!_0x1464d7)return null;let _0x75a188=_0x5d767b[_0x98769e(0x205)](_0x4ac8e7);return _0x75a188[_0x98769e(0x195)](_0xc6beb2[_0x98769e(0x227)]())?null:{'document':_0xc6beb2,'body':_0x1464d7,'documentData':_0x5b19cf,'model':_0x75a188,'resource':_0x75a188['getResource'](_0xc6beb2['getUnitId']())??_0x5e7e4c(),'unitId':_0xc6beb2[_0x98769e(0x227)]()};}function _0x3966b0(_0xf40821,_0xeb1f40){const _0xb2b21a=_0x485351;var _0xca0a90;return(_0xca0a90=_0xf40821[_0xb2b21a(0x205)](_0x32243b[_0xb2b21a(0x154)])[_0xb2b21a(0x1d7)]({'subUnitId':_0xeb1f40,'unitId':_0xeb1f40}))==null?void 0x0:_0xca0a90[0x0];}function _0xbd5723(_0x44ebe6,_0x3bf9a4,_0x3aac83){const _0x28a3b5=_0x485351;if((_0x44ebe6==null?void 0x0:_0x44ebe6[_0x28a3b5(0x16a)])==='paragraph'){var _0x13a3cf;let _0xd08d1d=((_0x13a3cf=_0x3bf9a4['paragraphs'])==null?void 0x0:_0x13a3cf[_0x28a3b5(0x215)](_0x5ca616=>_0x5ca616[_0x28a3b5(0x178)]===_0x44ebe6[_0x28a3b5(0x178)]))??[];if(_0xd08d1d['length']!==0x1)return null;let _0x3a5e76=_0xd08d1d[0x0],_0x301640=(0x0,_0x515716[_0x28a3b5(0x118)])(_0x3bf9a4,_0x3a5e76),_0x31e914=_0x3a5e76[_0x28a3b5(0x1e4)]-_0x301640,_0x2df855=_0x44ebe6[_0x28a3b5(0x1f2)]===_0x28a3b5(0x218)?_0x31e914:_0x44ebe6[_0x28a3b5(0x1f2)];if(!Number[_0x28a3b5(0x196)](_0x2df855)||_0x2df855<0x0||_0x2df855>_0x31e914)return null;let _0x1207ef=_0x301640+_0x2df855;return{'startOffset':_0x1207ef,'endOffset':_0x1207ef};}if((_0x44ebe6==null?void 0x0:_0x44ebe6[_0x28a3b5(0x16a)])===_0x28a3b5(0x167))return!Number['isInteger'](_0x44ebe6[_0x28a3b5(0x21d)])||!Number[_0x28a3b5(0x196)](_0x44ebe6[_0x28a3b5(0x204)])?null:{'startOffset':Math[_0x28a3b5(0x199)](_0x44ebe6[_0x28a3b5(0x21d)],_0x44ebe6['endOffset']),'endOffset':Math[_0x28a3b5(0x14a)](_0x44ebe6[_0x28a3b5(0x21d)],_0x44ebe6[_0x28a3b5(0x204)])};let _0x109fd0=(_0x44ebe6==null?void 0x0:_0x44ebe6['type'])==='selection'?_0x44ebe6[_0x28a3b5(0x124)]:_0x3aac83;return!_0x109fd0||_0x109fd0[_0x28a3b5(0x134)]?null:{'startOffset':Math[_0x28a3b5(0x199)](_0x109fd0[_0x28a3b5(0x21d)],_0x109fd0['endOffset']),'endOffset':Math[_0x28a3b5(0x14a)](_0x109fd0[_0x28a3b5(0x21d)],_0x109fd0[_0x28a3b5(0x204)])};}function _0xfbf865(_0x429423,_0x4441e4,_0x27b8ff,_0x21ea28){const _0x55ab25=_0x485351;let _0x4de0f9=_0x429423[_0x55ab25(0x205)](_0x4066ff[_0x55ab25(0x11b)]),_0x1d8203=_0x27b8ff[_0x55ab25(0x1ea)]('=')?_0x27b8ff[_0x55ab25(0x1bd)](0x1):_0x27b8ff,_0x244ef3=_0x4de0f9[_0x55ab25(0x1c6)](_0x1d8203);if(!_0x244ef3)return null;let _0x148d5c=_0x429423['get'](_0x1e3b22[_0x55ab25(0x106)]),_0x3700fa=(0x0,_0x1e3b22[_0x55ab25(0x19c)])({'qualifiers':(0x0,_0x1e3b22[_0x55ab25(0x172)])(_0x244ef3),'explicitReferences':_0x21ea28??[],'resolveBinding':_0x33657b=>_0x148d5c[_0x55ab25(0x238)](_0x4441e4,_0x33657b)});return _0x3700fa[_0x55ab25(0x156)]===_0x55ab25(0x18d)?_0x3700fa[_0x55ab25(0x19f)]:null;}function _0x37dbba(_0x31a1d7,_0x22f800,_0x332754){const _0xcd6683=_0x485351;var _0x3d5e44;let _0x1211a5=(0x0,_0x515716[_0xcd6683(0x174)])(0x6);for(;_0x31a1d7!=null&&(_0x3d5e44=_0x31a1d7[_0xcd6683(0x1d0)])!=null&&_0x3d5e44[_0xcd6683(0x24b)](_0x584377=>_0x584377[_0xcd6683(0x23f)]===_0x1211a5)||_0x22f800[_0xcd6683(0x176)](_0x332754,_0x1211a5);)_0x1211a5=(0x0,_0x515716[_0xcd6683(0x174)])(0x6);return _0x1211a5;}function _0x2e4688(_0x579863){try{return _0x4a2117(_0x579863);}catch(_0x253dc8){if(_0x253dc8 instanceof _0x2ef40e)return null;throw _0x253dc8;}}function _0x3a814c(_0x37feb6){const _0x19acdc=_0x485351;let _0x32cdc4=_0x37feb6[_0x19acdc(0x1ee)]&&_0x37feb6[_0x19acdc(0x192)]?_0x15c67e(_0x37feb6[_0x19acdc(0x11d)],_0x37feb6['unitId'],_0x37feb6['previousDocumentData'],_0x37feb6[_0x19acdc(0x192)],_0x37feb6[_0x19acdc(0x1f1)],_0x37feb6[_0x19acdc(0x175)]):null;return _0x37feb6[_0x19acdc(0x1ee)]&&_0x37feb6[_0x19acdc(0x192)]&&!_0x32cdc4?null:{'documentRedo':_0x32cdc4,'resourceRedo':{'id':_0x1dbf88['id'],'params':{'unitId':_0x37feb6[_0x19acdc(0x113)],'resource':_0x37feb6[_0x19acdc(0x224)]}},'resourceUndo':{'id':_0x1dbf88['id'],'params':{'unitId':_0x37feb6['unitId'],'resource':_0x37feb6['previousResource']}}};}function _0x3ff911(_0x236b09,_0xb3a1f8,_0x53de8d,_0x2c3393){const _0x43fb0f=_0x485351;_0x2c3393[_0x43fb0f(0x250)]({'id':_0x236b09[_0x43fb0f(0x175)]+':'+_0x236b09[_0x43fb0f(0x23f)],'unitID':_0x236b09[_0x43fb0f(0x113)],'redoMutations':[..._0x236b09[_0x43fb0f(0x1fc)]['redoMutation']?[_0x236b09[_0x43fb0f(0x1fc)][_0x43fb0f(0x214)]]:[],..._0xb3a1f8[_0x43fb0f(0x20f)]?[_0xb3a1f8[_0x43fb0f(0x20f)]]:[],_0xb3a1f8[_0x43fb0f(0x1a2)]],'undoMutations':[_0xb3a1f8[_0x43fb0f(0x18c)],..._0x53de8d?[_0x53de8d]:[],..._0x236b09[_0x43fb0f(0x1fc)][_0x43fb0f(0x23b)]?[_0x236b09[_0x43fb0f(0x1fc)][_0x43fb0f(0x23b)]]:[]]});}function _0x36cdef(_0x1e2ba6){const _0x3b5924=_0x485351;let _0x6ccb83=_0x1e2ba6['accessor']['get'](_0x515716[_0x3b5924(0x1d3)]),_0x2ba79d=_0x1e2ba6[_0x3b5924(0x213)][_0x3b5924(0x205)](_0x515716[_0x3b5924(0x211)]),_0x4f2db6=_0x1e2ba6[_0x3b5924(0x213)][_0x3b5924(0x205)](_0x32243b[_0x3b5924(0x154)]),_0xfd1f3a=_0x3a814c(_0x1e2ba6);if(!_0xfd1f3a)return!0x1;let _0x4394bf=!0x1,_0x44b4c3=null,_0x194ec2=!0x1;try{if(_0x1e2ba6[_0x3b5924(0x1fc)][_0x3b5924(0x214)]){if(!_0x6ccb83[_0x3b5924(0x130)](_0x1e2ba6[_0x3b5924(0x1fc)][_0x3b5924(0x214)]['id'],_0x1e2ba6[_0x3b5924(0x1fc)][_0x3b5924(0x214)]['params']))return!0x1;_0x4394bf=!0x0;}if(_0xfd1f3a['documentRedo']){let _0x259f1f=_0x6ccb83[_0x3b5924(0x130)](_0xfd1f3a[_0x3b5924(0x20f)]['id'],_0xfd1f3a[_0x3b5924(0x20f)][_0x3b5924(0x23e)]);if(!_0x259f1f)return _0x763863(_0x6ccb83,_0x1e2ba6[_0x3b5924(0x1fc)],_0x4394bf),!0x1;_0x44b4c3={'id':_0x32243b['RichTextEditingMutation']['id'],'params':{..._0x259f1f,'noHistory':!0x0,'noNeedSetTextRange':!0x0,'segmentId':''}};}if(!_0x6ccb83[_0x3b5924(0x130)](_0xfd1f3a[_0x3b5924(0x1a2)]['id'],_0xfd1f3a['resourceRedo']['params']))return _0xca0259(_0x6ccb83,_0x44b4c3),_0x763863(_0x6ccb83,_0x1e2ba6[_0x3b5924(0x1fc)],_0x4394bf),!0x1;_0x194ec2=!0x0,_0x3ff911(_0x1e2ba6,_0xfd1f3a,_0x44b4c3,_0x2ba79d);}catch(_0x2011a8){throw _0x194ec2&&_0x6ccb83['syncExecuteCommand'](_0xfd1f3a[_0x3b5924(0x18c)]['id'],_0xfd1f3a[_0x3b5924(0x18c)][_0x3b5924(0x23e)]),_0xca0259(_0x6ccb83,_0x44b4c3),_0x763863(_0x6ccb83,_0x1e2ba6['externalMutations'],_0x4394bf),_0x2011a8;}return _0x4f2db6[_0x3b5924(0x121)]([{'startOffset':_0x1e2ba6[_0x3b5924(0x1f1)],'endOffset':_0x1e2ba6[_0x3b5924(0x1f1)],'segmentId':''}],{'unitId':_0x1e2ba6[_0x3b5924(0x113)],'subUnitId':_0x1e2ba6[_0x3b5924(0x113)]},!0x1,{[_0x32243b[_0x3b5924(0x237)]]:!0x0}),!0x0;}function _0x15c67e(_0x18c171,_0x1d25f6,_0x21366d,_0xcecd83,_0x666473,_0x1ee033){const _0x4c0d20=_0x485351;let _0x24bae7=_0x1aa107(_0x21366d,_0xcecd83,(0x0,_0x515716['getRichTextEditPath'])(_0x18c171,''));return _0x24bae7?{'id':_0x32243b[_0x4c0d20(0x1ac)]['id'],'params':{'unitId':_0x1d25f6,'actions':_0x24bae7,'segmentId':'','textRanges':[{'startOffset':_0x666473,'endOffset':_0x666473,'collapsed':!0x0,'segmentId':''}],'isEditing':!0x1,'noHistory':!0x0,'noNeedSetTextRange':!0x0,'trigger':_0x1ee033}}:null;}function _0xca0259(_0x35d95d,_0x36dd72){_0x36dd72&&_0x35d95d['syncExecuteCommand'](_0x36dd72['id'],_0x36dd72['params']);}function _0x763863(_0x2f7ab9,_0x1832ec,_0x58a541){const _0x1eca72=_0x485351;_0x58a541&&_0x1832ec[_0x1eca72(0x23b)]&&_0x2f7ab9['syncExecuteCommand'](_0x1832ec[_0x1eca72(0x23b)]['id'],_0x1832ec[_0x1eca72(0x23b)]['params']);}function _0x1aa107(_0x228b48,_0x42de85,_0x320d78){const _0x2ef3eb=_0x485351;let _0x55b48d=_0x228b48[_0x2ef3eb(0x1e7)],_0x50f972=_0x42de85[_0x2ef3eb(0x1e7)],_0x482704=_0x403d29(_0x55b48d==null?void 0x0:_0x55b48d[_0x2ef3eb(0x1fd)],_0x50f972==null?void 0x0:_0x50f972[_0x2ef3eb(0x1fd)]);if(!_0x482704||!_0x50f972)return null;let _0x5c9b90=new _0x515716[(_0x2ef3eb(0x1be))]();return _0x5c9b90[_0x2ef3eb(0x16b)](_0x482704[_0x2ef3eb(0x19b)]),_0x482704[_0x2ef3eb(0x1a4)]>0x0&&_0x5c9b90[_0x2ef3eb(0x185)](_0x482704[_0x2ef3eb(0x1a4)],(0x0,_0x515716[_0x2ef3eb(0x233)])(_0x50f972,_0x482704[_0x2ef3eb(0x19b)],_0x482704[_0x2ef3eb(0x19b)]+_0x482704[_0x2ef3eb(0x1a4)],!0x1)),_0x482704[_0x2ef3eb(0x219)]>0x0&&_0x5c9b90[_0x2ef3eb(0x16c)](_0x482704[_0x2ef3eb(0x219)]),_0x515716['JSONX'][_0x2ef3eb(0x1c1)]()[_0x2ef3eb(0x112)](_0x5c9b90[_0x2ef3eb(0x1ef)](),_0x320d78);}function _0x403d29(_0x13013a,_0x13421c){const _0x298984=_0x485351;if(_0x13013a==null||_0x13421c==null||_0x13013a===_0x13421c)return null;let _0x597794=0x0;for(;_0x597794<_0x13013a[_0x298984(0x187)]&&_0x597794<_0x13421c[_0x298984(0x187)]&&_0x13013a[_0x597794]===_0x13421c[_0x597794];)_0x597794+=0x1;let _0x2a98d1=_0x13013a[_0x298984(0x187)],_0x2348e2=_0x13421c['length'];for(;_0x2a98d1>_0x597794&&_0x2348e2>_0x597794&&_0x13013a[_0x2a98d1-0x1]===_0x13421c[_0x2348e2-0x1];)--_0x2a98d1,--_0x2348e2;return{'start':_0x597794,'deleteLength':_0x2a98d1-_0x597794,'insertLength':_0x2348e2-_0x597794};}function _0x4bf2b4(_0x39e4c0){const _0x5a9572=_0x485351;return{'schemaVersion':0x1,'formulas':Object[_0x5a9572(0x131)](Object[_0x5a9572(0x120)](_0x39e4c0[_0x5a9572(0x151)])[_0x5a9572(0x1cb)](([_0x49ce4a,_0x353b8f])=>[_0x49ce4a,{..._0x353b8f,..._0x353b8f[_0x5a9572(0x1f4)]?{'numberFormat':{..._0x353b8f[_0x5a9572(0x1f4)]}}:null,..._0x353b8f[_0x5a9572(0x1da)]?{'lastValue':{..._0x353b8f[_0x5a9572(0x1da)]}}:null}]))};}let _0xbe36bf=class extends _0x515716[_0x485351(0x15b)]{constructor(_0x54c790,_0xc4a27c,_0x8686a0,_0x487f97){const _0x3936ed=_0x485351;super(),this[_0x3936ed(0x209)]=_0x54c790,this[_0x3936ed(0x217)]=_0xc4a27c,this[_0x3936ed(0x16f)]=_0x8686a0,this['_service']=_0x487f97,_0x1b20d0(this,_0x3936ed(0x1e8),new Set()),_0x1b20d0(this,_0x3936ed(0x10a),!0x1),_0x1b20d0(this,_0x3936ed(0x1f8),!0x1),this['_instanceService']['getAllUnitsForType'](_0x515716['UniverInstanceType']['UNIVER_DOC'])[_0x3936ed(0x1e9)](_0xf9a219=>this[_0x3936ed(0x251)]['syncUnit'](_0xf9a219)),this[_0x3936ed(0x10d)](this[_0x3936ed(0x16f)][_0x3936ed(0x164)][_0x3936ed(0x254)](({unitId:_0x2e3493})=>this[_0x3936ed(0x21f)](_0x2e3493))),this[_0x3936ed(0x10d)](this[_0x3936ed(0x209)][_0x3936ed(0x17c)]['subscribe'](({unit:_0x4e93e7})=>{const _0x4faf7d=_0x3936ed;_0x4e93e7[_0x4faf7d(0x16a)]===_0x515716['UniverInstanceType'][_0x4faf7d(0x12d)]&&this['_queueSync'](_0x4e93e7[_0x4faf7d(0x227)]());})),this[_0x3936ed(0x10d)](this[_0x3936ed(0x209)]['unitDisposed$'][_0x3936ed(0x254)](_0x2517a3=>{const _0x12c8fe=_0x3936ed;this[_0x12c8fe(0x251)]['unregisterUnit'](_0x2517a3[_0x12c8fe(0x227)]());})),this[_0x3936ed(0x10d)](this[_0x3936ed(0x217)][_0x3936ed(0x240)](_0x13ec6a=>{const _0x327db3=_0x3936ed;if(_0x13ec6a['id']===_0x32243b['RichTextEditingMutation']['id']&&_0x5d10d3(_0x13ec6a['params'])){let _0xcb4a9d=_0x13ec6a[_0x327db3(0x23e)];_0xcb4a9d[_0x327db3(0x134)]||this['_syncUnit'](_0xcb4a9d[_0x327db3(0x113)]);}}));}[_0x485351(0x1af)](){const _0x3a6c28=_0x485351;this['_isDisposed']=!0x0,super[_0x3a6c28(0x1af)]();}[_0x485351(0x20e)](_0x35335c){const _0x5427ff=_0x485351;this[_0x5427ff(0x1e8)][_0x5427ff(0x117)](_0x35335c),!this['_syncScheduled']&&(this[_0x5427ff(0x10a)]=!0x0,queueMicrotask(()=>{const _0x128a33=_0x5427ff;if(this['_syncScheduled']=!0x1,this['_isDisposed'])return;let _0x4dfcde=Array[_0x128a33(0x16e)](this[_0x128a33(0x1e8)]);this[_0x128a33(0x1e8)][_0x128a33(0x1b3)](),_0x4dfcde[_0x128a33(0x1e9)](_0x121628=>this['_syncUnit'](_0x121628));}));}['_syncUnit'](_0x2332b3){const _0x46058c=_0x485351;let _0x2d8412=this[_0x46058c(0x209)][_0x46058c(0x208)](_0x2332b3,_0x515716[_0x46058c(0x22e)][_0x46058c(0x12d)]);_0x2d8412&&this[_0x46058c(0x251)]['syncUnit'](_0x2d8412);}};_0xbe36bf=_0x35b31f([_0x2a8da1(0x0,_0x515716[_0x485351(0x17f)]),_0x2a8da1(0x1,_0x515716[_0x485351(0x1d3)]),_0x2a8da1(0x2,(0x0,_0x515716[_0x485351(0x145)])(_0x4ac8e7)),_0x2a8da1(0x3,(0x0,_0x515716[_0x485351(0x145)])(_0x242f59))],_0xbe36bf);function _0x5d10d3(_0x37fdd4){const _0x2cc4b1=_0x485351;return typeof _0x37fdd4==_0x2cc4b1(0x14e)&&!!_0x37fdd4&&'unitId'in _0x37fdd4&&typeof _0x37fdd4[_0x2cc4b1(0x113)]=='string'&&(!(_0x2cc4b1(0x134)in _0x37fdd4)||_0x37fdd4[_0x2cc4b1(0x134)]===void 0x0||typeof _0x37fdd4[_0x2cc4b1(0x134)]=='string');}let _0x5e08f9=class extends _0x515716[_0x485351(0x15b)]{constructor(_0x33ee3b,_0x22e263){const _0xd70746=_0x485351;super(),this[_0xd70746(0x1cf)]=_0x33ee3b,this[_0xd70746(0x133)]=_0x22e263,this[_0xd70746(0x10d)](this['_resourceManagerService']['registerPluginResource']({'pluginName':_0x366fa0,'businesses':[_0x515716['UniverInstanceType'][_0xd70746(0x12d)]],'toJson':_0x12487f=>JSON['stringify'](this[_0xd70746(0x133)]['serialize'](_0x12487f)),'parseJson':_0xc5c9fa=>JSON[_0xd70746(0x21b)](_0xc5c9fa),'onLoad':(_0x2c91d4,_0x460477)=>{const _0x33d30d=_0xd70746;this[_0x33d30d(0x133)][_0x33d30d(0x1e5)](_0x2c91d4,_0x460477);},'onUnLoad':_0x8c0bb5=>this['_docFormulaModel'][_0xd70746(0x1f9)](_0x8c0bb5)}));}};_0x5e08f9=_0x35b31f([_0x2a8da1(0x0,_0x515716['IResourceManagerService']),_0x2a8da1(0x1,(0x0,_0x515716[_0x485351(0x145)])(_0x4ac8e7))],_0x5e08f9);var _0x3b26ca=_0x485351(0x241),_0x5d895b=_0x485351(0x201);let _0x80177e={},_0x242107=class extends _0x515716[_0x485351(0x15b)]{constructor(_0x201021,_0x6f4718,_0xd71b07){const _0x3c3cc2=_0x485351;super(),this[_0x3c3cc2(0x225)]=_0x201021,this['_formulaService']=_0x6f4718,this['disposeWithMe'](_0xd71b07[_0x3c3cc2(0x1d2)]({'resolve':(_0x1cf096,_0x4ed7b7)=>{const _0x5b26e2=_0x3c3cc2;var _0x375ce5;return((_0x375ce5=_0x4ed7b7['customRanges'])==null?void 0x0:_0x375ce5[_0x5b26e2(0x215)](_0x47d677)[_0x5b26e2(0x1cb)](_0x24af12=>({'startOffset':_0x24af12[_0x5b26e2(0x1e4)],'endOffset':_0x24af12['endIndex']+0x1,'text':this['resolveFormula'](_0x1cf096,_0x24af12[_0x5b26e2(0x23f)])})))??[];}})),this[_0x3c3cc2(0x10d)](this[_0x3c3cc2(0x232)][_0x3c3cc2(0x20a)]['subscribe'](({unitId:_0x37c9ce})=>{const _0x709a72=_0x3c3cc2;_0xd71b07[_0x709a72(0x231)](_0x37c9ce);}));}[_0x485351(0x123)](_0x2b3b0f,_0x13391f){const _0x4fc9c4=_0x485351;var _0x360be0;return((_0x360be0=this[_0x4fc9c4(0x232)][_0x4fc9c4(0x20b)]({'unitId':_0x2b3b0f,'rangeId':_0x13391f}))==null?void 0x0:_0x360be0[_0x4fc9c4(0x1a3)])??'';}[_0x485351(0x1bf)](_0x638a25,_0x776a04,_0x154781){const _0x60b07f=_0x485351;var _0x3ac175;let _0x411249=this[_0x60b07f(0x225)][_0x60b07f(0x208)](_0x638a25,_0x515716[_0x60b07f(0x22e)]['UNIVER_DOC']),_0x22a328=_0x411249==null?void 0x0:_0x411249[_0x60b07f(0x186)]();if(!_0x22a328)return'';let _0x611b45=_0x22a328[_0x60b07f(0x1fd)]['slice'](_0x776a04,_0x154781),_0x3a889a=((_0x3ac175=_0x22a328[_0x60b07f(0x1d0)])==null?void 0x0:_0x3ac175[_0x60b07f(0x215)](_0x16b06a=>_0x47d677(_0x16b06a)&&_0x16b06a[_0x60b07f(0x1e4)]>=_0x776a04&&_0x16b06a[_0x60b07f(0x126)]<_0x154781)['sort']((_0x5414b1,_0x30166f)=>_0x30166f[_0x60b07f(0x1e4)]-_0x5414b1[_0x60b07f(0x1e4)]))??[];for(let _0x4b1bd8 of _0x3a889a){let _0x3c58ac=_0x4b1bd8[_0x60b07f(0x1e4)]-_0x776a04,_0x44af21=_0x4b1bd8[_0x60b07f(0x126)]-_0x776a04+0x1;_0x611b45=''+_0x611b45[_0x60b07f(0x1bd)](0x0,_0x3c58ac)+this[_0x60b07f(0x123)](_0x638a25,_0x4b1bd8[_0x60b07f(0x23f)])+_0x611b45[_0x60b07f(0x1bd)](_0x44af21);}return _0x611b45;}[_0x485351(0x129)](_0x29fd8d){return _0x5b6022(_0x29fd8d);}[_0x485351(0x148)](_0x48f313,_0x3559c6,_0x5caece={}){const _0x1edede=_0x485351;var _0x4ecd75;return _0x81449f({'id':_0x48f313,'body':_0x3559c6,'documentStyle':{}},(((_0x4ecd75=_0x3559c6[_0x1edede(0x1d0)])==null?void 0x0:_0x4ecd75[_0x1edede(0x215)](_0x47d677))??[])['map'](_0x4e2e27=>({'rangeId':_0x4e2e27[_0x1edede(0x23f)],'text':_0x5caece[_0x4e2e27[_0x1edede(0x23f)]]??this[_0x1edede(0x123)](_0x48f313,_0x4e2e27[_0x1edede(0x23f)])})))[_0x1edede(0x1e7)]??{'dataStream':''};}};_0x242107=_0x35b31f([_0x2a8da1(0x0,_0x515716['IUniverInstanceService']),_0x2a8da1(0x1,(0x0,_0x515716[_0x485351(0x145)])(_0x242f59)),_0x2a8da1(0x2,(0x0,_0x515716[_0x485351(0x145)])(_0x32243b['DocTextResolverService']))],_0x242107);function _0x5b6022(_0x5c424f){const _0x5980d4=_0x485351;var _0x3acb7b,_0x1b95ca;let _0x34af4a=_0x3232c5(_0x5c424f),_0x471d4b=_0x81449f(_0x5c424f,(((_0x3acb7b=_0x5c424f['body'])==null||(_0x3acb7b=_0x3acb7b[_0x5980d4(0x1d0)])==null?void 0x0:_0x3acb7b[_0x5980d4(0x215)](_0x47d677))??[])['map'](_0x39e7fe=>({'rangeId':_0x39e7fe[_0x5980d4(0x23f)],'text':_0x515c5c(_0x34af4a==null?void 0x0:_0x34af4a['formulas'][_0x39e7fe[_0x5980d4(0x23f)]])})));return _0x471d4b['resources']=(_0x1b95ca=_0x471d4b[_0x5980d4(0x1bc)])==null?void 0x0:_0x1b95ca[_0x5980d4(0x215)](_0x3fc674=>_0x3fc674[_0x5980d4(0x161)]!==_0x366fa0),_0x471d4b;}function _0x3232c5(_0x397aab){const _0x1a3076=_0x485351;var _0x5f3681;let _0x4611e9=(_0x5f3681=_0x397aab[_0x1a3076(0x1bc)])==null||(_0x5f3681=_0x5f3681[_0x1a3076(0x13c)](_0xf5e35d=>_0xf5e35d[_0x1a3076(0x161)]===_0x1a3076(0x17b)))==null?void 0x0:_0x5f3681[_0x1a3076(0x20c)];if(_0x4611e9)try{let _0x1a27bd=JSON['parse'](_0x4611e9);return _0xc09f6(_0x1a27bd)?_0x1a27bd:void 0x0;}catch{return;}}function _0x515c5c(_0x458aaa){const _0x4d8a4c=_0x485351;return _0x458aaa?(0x0,_0x1e3b22[_0x4d8a4c(0x109)])({'lastValue':_0x458aaa[_0x4d8a4c(0x1da)],'numberFormat':_0x458aaa[_0x4d8a4c(0x1f4)]})[_0x4d8a4c(0x1a3)]:'';}let _0x1e6f98=class extends _0x515716[_0x485351(0x15b)]{constructor(_0x148d40,_0x2a88dd,_0xd964fd){const _0xd04a72=_0x485351;super(),this['_formulaService']=_0x148d40,this[_0xd04a72(0x135)]=_0x2a88dd,this['disposeWithMe'](_0xd964fd[_0xd04a72(0x13b)](this));}['collectMutations'](_0x473ae6){const _0x5ccf91=_0x485351;let _0x4ddb5c=new Map();for(let _0x491fc2 of this['_formulaService']['getRegisteredFormulas']()){var _0x15b242;if(!this[_0x5ccf91(0x135)][_0x5ccf91(0x24c)](_0x491fc2[_0x5ccf91(0x183)][_0x5ccf91(0x1a6)],_0x491fc2[_0x5ccf91(0x23a)])['eligible'])continue;let _0x246a78=(0x0,_0x1e3b22[_0x5ccf91(0x18a)])(_0x491fc2['liveResult']),_0x38dbcf=_0x246a78?(0x0,_0x1e3b22[_0x5ccf91(0x163)])(_0x246a78):null;if(!_0x38dbcf||_0x1df475(_0x491fc2['config'][_0x5ccf91(0x1da)],_0x38dbcf))continue;let _0x4e8d7f=_0x4ddb5c['get'](_0x491fc2['identity']['unitId'])??[];_0x4e8d7f['push']({'rangeId':_0x491fc2[_0x5ccf91(0x12e)][_0x5ccf91(0x23f)],'expectedFormula':_0x491fc2[_0x5ccf91(0x183)][_0x5ccf91(0x1a6)],'expectedNumberFormat':(_0x15b242=_0x491fc2['config']['numberFormat'])==null?void 0x0:_0x15b242[_0x5ccf91(0x190)],'expectedReferenceRevision':_0x491fc2[_0x5ccf91(0x1b4)],'lastValue':_0x38dbcf}),_0x4ddb5c['set'](_0x491fc2[_0x5ccf91(0x12e)][_0x5ccf91(0x113)],_0x4e8d7f);}return Array[_0x5ccf91(0x16e)](_0x4ddb5c,([_0x4bd69,_0x3a4d44])=>({'id':_0x3a4fc7['id'],'params':{'unitId':_0x4bd69,'updates':_0x3a4d44}}));}};_0x1e6f98=_0x35b31f([_0x2a8da1(0x0,(0x0,_0x515716['Inject'])(_0x242f59)),_0x2a8da1(0x1,(0x0,_0x515716['Inject'])(_0x1e3b22[_0x485351(0x242)])),_0x2a8da1(0x2,(0x0,_0x515716[_0x485351(0x145)])(_0x1e3b22[_0x485351(0x244)]))],_0x1e6f98);function _0x1df475(_0x48873c,_0x741706){return(_0x48873c==null?void 0x0:_0x48873c['v'])===_0x741706['v']&&(_0x48873c==null?void 0x0:_0x48873c['t'])===_0x741706['t']&&(_0x48873c==null?void 0x0:_0x48873c['pattern'])===_0x741706['pattern'];}let _0x5baf6f=class extends _0x515716[_0x485351(0x1e6)]{constructor(_0x3c43e8=_0x80177e,_0x4b37cf,_0xde1fb8,_0x22be1b){const _0x110398=_0x485351;super(),this[_0x110398(0x108)]=_0x3c43e8,this[_0x110398(0x1c9)]=_0x4b37cf,this[_0x110398(0x217)]=_0xde1fb8,this[_0x110398(0x158)]=_0x22be1b;let {..._0x344cd4}=(0x0,_0x515716[_0x110398(0x1d5)])({},_0x80177e,this[_0x110398(0x108)]);this['_configService'][_0x110398(0x203)](_0x110398(0x188),_0x344cd4);}[_0x485351(0x239)](){const _0x10d175=_0x485351;this['_injector'][_0x10d175(0x117)]([_0x4ac8e7]),this[_0x10d175(0x1c9)][_0x10d175(0x117)]([_0x242f59]),this[_0x10d175(0x1c9)][_0x10d175(0x117)]([_0x5e08f9]),this[_0x10d175(0x1c9)][_0x10d175(0x117)]([_0xbe36bf]),this[_0x10d175(0x1c9)][_0x10d175(0x117)]([_0x1e6f98]),this['_injector']['add']([_0x242107]),(0x0,_0x515716[_0x10d175(0x146)])(this[_0x10d175(0x1c9)],[[_0x4ac8e7],[_0x5e08f9],[_0xbe36bf],[_0x1e6f98],[_0x242107]]),[_0x14005e,_0x235d43,_0x1dbf88,_0x3a4fc7,_0x33db8c,_0x4432c5,_0xc6c098,_0x145357,_0x3ffb4b,_0x5b67a6][_0x10d175(0x1e9)](_0xc04e50=>this[_0x10d175(0x10d)](this[_0x10d175(0x217)][_0x10d175(0x200)](_0xc04e50)));}};_0x1b20d0(_0x5baf6f,_0x485351(0x22a),_0x366fa0),_0x1b20d0(_0x5baf6f,_0x485351(0x1c4),_0x3b26ca),_0x1b20d0(_0x5baf6f,_0x485351(0x1ad),_0x5d895b),_0x1b20d0(_0x5baf6f,_0x485351(0x16a),_0x515716[_0x485351(0x22e)][_0x485351(0x12d)]),_0x5baf6f=_0x35b31f([(0x0,_0x515716[_0x485351(0x177)])(_0x2342e0[_0x485351(0x125)],_0x1e3b22['UniverProFormulaEnginePlugin'],_0x32243b[_0x485351(0x16d)]),_0x2a8da1(0x1,(0x0,_0x515716['Inject'])(_0x515716[_0x485351(0x1cc)])),_0x2a8da1(0x2,_0x515716['ICommandService']),_0x2a8da1(0x3,_0x515716[_0x485351(0x139)])],_0x5baf6f),_0x371713[_0x485351(0x1dd)]=_0x5b67a6,_0x371713['DOC_FORMULA_CUSTOM_RANGE_KIND']=_0x41ad86,_0x371713[_0x485351(0x122)]='',_0x371713[_0x485351(0x17b)]=_0x366fa0,_0x371713['DOC_FORMULA_SCHEMA_VERSION']=0x1,Object[_0x485351(0x228)](_0x371713,_0x485351(0x179),{'enumerable':!0x0,'get':function(){return _0x242107;}}),Object[_0x485351(0x228)](_0x371713,'DocFormulaLifecycleController',{'enumerable':!0x0,'get':function(){return _0xbe36bf;}}),_0x371713[_0x485351(0x12b)]=_0x4ac8e7,Object['defineProperty'](_0x371713,_0x485351(0x15e),{'enumerable':!0x0,'get':function(){return _0x5e08f9;}}),_0x371713[_0x485351(0x210)]=_0x35daa2,Object['defineProperty'](_0x371713,_0x485351(0x170),{'enumerable':!0x0,'get':function(){return _0x242f59;}}),_0x371713[_0x485351(0x150)]=_0x33db8c,_0x371713[_0x485351(0x21e)]=_0x2ef40e,_0x371713[_0x485351(0x1ae)]=_0x145357,_0x371713[_0x485351(0x22c)]=_0x235d43,_0x371713['ReplaceDocFormulaWithTextCommand']=_0x3ffb4b,_0x371713[_0x485351(0x116)]=_0x3a4fc7,_0x371713[_0x485351(0x15f)]=_0x14005e,_0x371713[_0x485351(0x13d)]=_0xc6c098,_0x371713[_0x485351(0x110)]=_0x1dbf88,Object['defineProperty'](_0x371713,_0x485351(0x1b6),{'enumerable':!0x0,'get':function(){return _0x5baf6f;}}),_0x371713[_0x485351(0x222)]=_0x4432c5,_0x371713[_0x485351(0x1c8)]=_0x255c8b,_0x371713[_0x485351(0x1c3)]=_0x4a2117,_0x371713[_0x485351(0x258)]=_0x33c701,_0x371713[_0x485351(0x253)]=_0x540bc7,_0x371713[_0x485351(0x1bb)]=_0x5e7e4c,_0x371713['degradeDocFormulaDocumentData']=_0x5b6022,_0x371713['findDocFormulaRange']=_0x34e6ea,_0x371713[_0x485351(0x1b9)]=_0x8c5f6b,_0x371713[_0x485351(0x136)]=_0x47d677,_0x371713[_0x485351(0x157)]=_0xc09f6,_0x371713[_0x485351(0x138)]=_0x1d3967;}));function _0xa1f9(){const _0x262658=['amd','RichTextEditingMutation','version','RemoveDocFormulaCommand','dispose','iterator','presentation','unsupported-version','clear','referenceRevision','_preserveInvalid','UniverDocsFormulaPlugin','columnGroups','deleteFormula','isDocFormulaConfig','getOwnPropertyDescriptor','createEmptyDocFormulaResource','resources','slice','TextX','resolveText','default','getInstance','12mFSNVP','buildInsertDocFormulaActions','packageName','expectedFormula','sequenceNodesBuilder','110155aBhHDs','assertSafeDocFormulaInsertRange','_injector','customBlocks','map','Injector','CUSTOM_BLOCK','BLOCK_END','_resourceManagerService','customRanges','shiftInclusiveRangeOnInsert','register','ICommandService','1083kVwcbf','merge','CustomRangeType','getTextRanges','DOC','getFormulaValueSync','lastValue','documentData','_rawResources','ConvertDocFormulaToTextCommand','_setPresentation','sectionBreaks','COMMAND','includes','buildUpsertHostExternalReferenceMutations','externalReferences','startIndex','load','Plugin','body','_pendingUnitIds','forEach','startsWith','docs-formula.command.update','OtherFormulaBizType','4ozszTG','previousDocumentData','serialize','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','cursorOffset','position','setFormula','numberFormat','endsWith','prototype','getRevision','_isDisposed','removeUnit','every','tables','externalMutations','dataStream','string','Doc\x20Formula\x20range\x20cannot\x20cross\x20document\x20structure\x20boundaries','registerCommand','1.0.0-beta.2','source','setConfig','endOffset','get','@univerjs-pro/license','PARAGRAPH','getUnit','_instanceService','presentationChanged$','getResult','data','isArray','_queueSync','documentRedo','DocFormulaResultStatus','IUndoRedoService','1192xUbaqc','accessor','redoMutation','filter','TABLE_CELL_END','_commandService','end','deleteLength','shiftExclusiveRangeOnInsert','parse','univer-docs-formula','startOffset','InvalidDocFormulaInsertRangeError','_syncUnit','ERROR','@univerjs/core','UpdateDocFormulaCommand','UniverEngineFormula','nextResource','_univerInstanceService','docs-formula.mutation.set-last-values','getUnitId','defineProperty','_presentationChanged$','pluginName','Subject','RemoveDocFormulaMutation','CellValueType','UniverInstanceType','function','paragraphs','notifyTextChanged','_formulaService','getBodySliceForTextXAction','complete','model','schemaVersion','DOC_SELECTION_OPTION_PRESERVE_CARET','resolveBinding','onStarting','liveResult','undoMutation','Document\x20main\x20body\x20is\x20required\x20to\x20insert\x20Doc\x20Formula.','UniverCore','params','rangeId','onCommandExecuted','@univerjs-pro/docs-formula','FormulaCacheEligibilityService','stale','FormulaLastValuePersistenceService','_change$','success','Tools','getCurrentUnitOfType','customDecorations','docs-formula.mutation.remove-formula','some','assess','451eokxSe','empty','pending','pushUndoRedo','_service','call','buildUpdateDocFormulaActions','subscribe','next','CommandType','RegisterOtherFormulaService','buildRemoveDocFormulaActions','1690ShSaNm','error','kind','HostExternalReferenceModel','CUSTOM','_config','resolveFormulaResultPresentation','_syncScheduled','TABLE_ROW_END','expectedNumberFormat','disposeWithMe','has','invalid-resource','SetDocFormulaResourceMutation','_resources','editOp','unitId','target','asObservable','SetDocFormulaLastValuesMutation','add','getParagraphContentStartOffset','COLUMN_START','syncUnit','LexerTreeBuilder','setFormulas','document','@univerjs/docs','MUTATION','entries','replaceDocRanges','DOC_FORMULA_OBJECT_REPLACEMENT','resolveFormula','selection','UniverLicensePlugin','endIndex','getRegisteredFormulas','DataStreamTreeTokenType','degradeDocumentData','expectedReferenceRevision','DocFormulaModel','number','UNIVER_DOC','identity','decorate','syncExecuteCommand','fromEntries','COLUMN_GROUP_START','_docFormulaModel','segmentId','_cacheEligibilityService','isDocFormulaRange','resource','isFormulaLastValue','IConfigService','setResource','registerProvider','find','SetDocFormulaNumberFormatCommand','rxjs','cell','SECTION_BREAK','textRuns','values','docs-formula.mutation.set-resource','UniverProDocsFormula','Inject','touchDependencies','trim','degradeBody','_registrationService','max','SUCCESS','deepClone','UniverProEngineFormula','object','101191CBWVFW','InsertDocFormulaCommand','formulas','set','getSnapshot','DocSelectionManagerService','_registrations','status','isDocFormulaResource','_configService','getPresentation','registerFormulaWithRange','Disposable','TABLE_CELL_START','_loadErrors','DocFormulaResourceController','SetDocFormulaMutation','_deleteRegistration','name','1172EQXvlK','toFormulaLastValue','change$','updates','unregisterUnit','range','formulaResult$','_hostExternalReferenceModel','type','retain','delete','UniverDocsPlugin','from','_model','DocFormulaService','docs-formula.command.remove','collectFormulaExternalReferenceQualifiers','UniverDocs','generateRandomId','trigger','getFormula','DependentOn','paragraphId','DocFormulaDisplayTextService','formulaId','DOC_FORMULA_PLUGIN','unitAdded$','22358KKkAwL','960597GBtmLP','IUniverInstanceService','docs-formula.command.insert','49680pXoGOW','getCustomRangeInterval','config','symbol','insert','getBody','length','docs-formula.config','exports','getScalarFormulaResultCell','docs-formula.command.replace-with-text','resourceUndo','resolved','BLOCK_START','getFormulas','pattern','assign','nextDocumentData','sort','_formulaKeys','getLoadError','isInteger','constructor','rangeType','min','removeFormula','start','resolveHostFormulaExternalReferences','PENDING','boolean','references','@univerjs-pro/engine-formula','shiftInclusiveRangeOnDelete','resourceRedo','text','insertLength','EMPTY','formula','shiftExclusiveRangeOnDelete','blockRanges','color','TABLE_END'];_0xa1f9=function(){return _0x262658;};return _0xa1f9();}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/docs-formula",
3
- "version": "1.0.0-beta.1",
3
+ "version": "1.0.0-beta.2",
4
4
  "private": false,
5
5
  "description": "Inline data formula model integration for Univer Docs.",
6
6
  "author": "DreamNum Co., Ltd. <developer@univer.ai>",
@@ -11,7 +11,7 @@
11
11
  "homepage": "https://univer.ai",
12
12
  "repository": {
13
13
  "type": "git",
14
- "url": "https://github.com/dream-num/univer"
14
+ "url": "https://github.com/dream-num/univer-pro"
15
15
  },
16
16
  "bugs": {
17
17
  "url": "https://github.com/dream-num/univer/issues"
@@ -61,18 +61,18 @@
61
61
  "rxjs": ">=7.0.0"
62
62
  },
63
63
  "dependencies": {
64
- "@univerjs-pro/license": "1.0.0-beta.1",
65
- "@univerjs-pro/engine-formula": "1.0.0-beta.1",
66
- "@univerjs/core": "1.0.0-beta.1",
67
- "@univerjs/docs": "1.0.0-beta.1",
68
- "@univerjs/engine-formula": "1.0.0-beta.1"
64
+ "@univerjs-pro/license": "1.0.0-beta.2",
65
+ "@univerjs/core": "1.0.0-beta.2",
66
+ "@univerjs/docs": "1.0.0-beta.2",
67
+ "@univerjs/engine-formula": "1.0.0-beta.2",
68
+ "@univerjs-pro/engine-formula": "1.0.0-beta.2"
69
69
  },
70
70
  "devDependencies": {
71
71
  "rxjs": "7.8.2",
72
72
  "typescript": "^6.0.3",
73
73
  "vitest": "^4.1.10",
74
- "@univerjs-infra/shared": "1.0.0-beta.1",
75
- "@univerjs/engine-render": "1.0.0-beta.1"
74
+ "@univerjs-infra/shared": "1.0.0-beta.2",
75
+ "@univerjs/engine-render": "1.0.0-beta.2"
76
76
  },
77
77
  "scripts": {
78
78
  "test": "vitest run",