@univerjs-pro/docs-formula 1.0.1 → 1.0.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 _0x439d(){const _0x6ad436=['buildUpsertHostExternalReferenceMutations','7341160CZuMSW','PENDING','JSONX','subscribe','_syncUnit','_hostExternalReferenceModel','schemaVersion','toPrimitive','delete','previousResource','toFormulaLastValue','registerFormulaWithRange','eligible','fromEntries','DOC_SELECTION_OPTION_PRESERVE_CARET','resolveFormula','number','params','getScalarFormulaResultCell','getSnapshot','color','RemoveDocFormulaMutation','endIndex','getFormulas','replaceDocRanges','externalReferences','textRuns','resolveHostFormulaExternalReferences','docs-formula.command.insert','getBodySliceForTextXAction','univer-docs-formula','kind','COMMAND','docs-formula.mutation.set-last-values','registerCommand','cursorOffset','wholeEntity','updates','rangeId','unitId','onCommandExecuted','RemoveDocFormulaCommand','segmentId','parse','deleteLength','body','UniverCore','register','Disposable','EMPTY','isDocFormulaResource','expectedReferenceRevision','SetDocFormulaLastValuesMutation','degradeDocumentData','DocSelectionManagerService','startIndex','_setPresentation','TABLE_CELL_END','sectionBreaks','getUnit','DataStreamTreeTokenType','pending','document','toStringTag','resource','Inject','DocFormulaDisplayTextService','UniverDocsFormulaPlugin','registerProvider','empty','getCurrentUnitOfType','_configService','UNIVER_DOC','externalMutations','_resourceManagerService','symbol','_updateFormulaResult','getResource','setFormulas','DocFormulaModel','degradeDocFormulaDocumentData','amd','TABLE_ROW_END','includes','name','rangeType','_model','paragraphId','ERROR','expectedFormula','call','rxjs','defineProperty','resources','type','FormulaLastValuePersistenceService','complete','resourceRedo','function','unitAdded$','docs-formula.command.update','formulaResult$','DependentOn','getLoadError','419292xYzcrm','_syncScheduled','DocTextResolverService','assign','BLOCK_END','_formulaKeys','CommandType','start','success','syncUnit','getBody','SetDocFormulaMutation','filter','_pendingUnitIds','TABLE_ROW_START','endOffset','findDocFormulaRange','Tools','expectedNumberFormat','LexerTreeBuilder','pattern','previousDocumentData','nextDocumentData','every','COLUMN_START','Module','properties','getFormula','TextX','notifyTextChanged','1ZmrlOj','_cacheEligibilityService','undoMutation','dataStream','isInteger','lastValue','get','length','docs-formula.mutation.set-resource','shiftExclusiveRangeOnInsert','199410StjAew','RichTextEditingMutation','TABLE_CELL_START','_injector','ICommandService','_registrations','_univerInstanceService','exports','getAllUnitsForType','text','collectMutations','asObservable','_formulaService','HostExternalReferenceModel','max','formulas','cell','_loadErrors','FormulaCacheEligibilityService','assertSafeDocFormulaInsertRange','blockRanges','slice','SetDocFormulaNumberFormatCommand','setFormula','formula','_deleteRegistration','_change$','unitDisposed$','serialize','startOffset','_config','presentation','tables','redoMutation','selection','constructor','_service','from','DOC_FORMULA_PLUGIN','CUSTOM','_preserveInvalid','COLUMN_END','ConvertDocFormulaToTextCommand','getParagraphContentStartOffset','resolveBinding','RegisterOtherFormulaService','@univerjs/engine-formula','stale','sequenceNodesBuilder','map','UpdateDocFormulaCommand','setResource','getOwnPropertyDescriptor','string','values','FormulaResultStatus','some','IResourceManagerService','merge','_presentationChanged$','SetDocFormulaResourceMutation','_isDisposed','columnGroups','24718640UuPkhK','SUCCESS','MUTATION','removeFormula','@univerjs-pro/engine-formula','documentData','9pSVVor','startsWith','CellValueType','position','touchDependencies','forEach','BLOCK_START','invalid-resource','getTextRanges','_queueSync','resolved','UniverProEngineFormula','docs-formula.mutation.set-formula','@univerjs-pro/docs-formula','resolveText','DocFormulaResultStatus','getUnitId','unregisterUnit','disposeWithMe','next','trigger','numberFormat','_docFormulaModel','3302560cfqFxy','identity','_rawResources','Plugin','data','docs-formula.mutation.remove-formula','getRevision','min','customRanges','2150228KdvJjB','has','resourceUndo','config','getPresentation','buildRemoveDocFormulaActions','ReplaceDocFormulaWithTextCommand','_commandService','version','IUniverInstanceService','getResult','clear','_resources','15lPKewm','UniverInstanceType','_registrationService','paragraphs','documentRedo','source','removeUnit','presentationChanged$','createEmptyDocFormulaResource','SECTION_BREAK','isDocFormulaConfig','@univerjs/docs','resolveFormulaResultPresentation','UniverLicensePlugin','find','keys','object','model','add','insertLength','syncExecuteCommand','trim','UniverProDocsFormula','getRichTextEditPath','deepClone','docs-formula.command.convert-to-text','Subject','entries','_instanceService','getCustomRangeInterval','DOC_FORMULA_OBJECT_REPLACEMENT','shiftExclusiveRangeOnDelete','getRegisteredFormulas','retain','registerPluginResource','generateRandomId','formulaId','set','Doc\x20Formula\x20range\x20cannot\x20cross\x20document\x20structure\x20boundaries','accessor','paragraph','customBlocks','error','DOC_FORMULA_CUSTOM_RANGE_KIND','sort','default','assess','range','nextResource','IConfigService','setConfig','OtherFormulaBizType','customDecorations','DocFormulaResourceController','change$','docs-formula.config','referenceRevision','insert','4911963RygLke','unregister','prototype','dispose','UniverProLicense','docs-formula.command.remove','liveResult','load','DOC','onStarting'];_0x439d=function(){return _0x6ad436;};return _0x439d();}function _0x55f6(_0x3ddf53,_0x370835){_0x3ddf53=_0x3ddf53-0xf0;const _0x439dc4=_0x439d();let _0x55f6f2=_0x439dc4[_0x3ddf53];return _0x55f6f2;}(function(_0x1ae1d9,_0x4b2a5c){const _0x227631=_0x55f6,_0x5b081b=_0x1ae1d9();while(!![]){try{const _0x1ec177=parseInt(_0x227631(0x149))/0x1*(-parseInt(_0x227631(0x1b8))/0x2)+parseInt(_0x227631(0x12b))/0x3+-parseInt(_0x227631(0x1af))/0x4+-parseInt(_0x227631(0x1c5))/0x5*(-parseInt(_0x227631(0x153))/0x6)+parseInt(_0x227631(0x1ff))/0x7+-parseInt(_0x227631(0x20a))/0x8+parseInt(_0x227631(0x198))/0x9*(parseInt(_0x227631(0x192))/0xa);if(_0x1ec177===_0x4b2a5c)break;else _0x5b081b['push'](_0x5b081b['shift']());}catch(_0x302edb){_0x5b081b['push'](_0x5b081b['shift']());}}}(_0x439d,0x912d3),function(_0x59a3a0,_0x9a6b1){const _0x1e2339=_0x55f6;typeof exports=='object'&&typeof module<'u'?_0x9a6b1(exports,require('@univerjs-pro/engine-formula'),require('@univerjs/core'),require('@univerjs/docs'),require('@univerjs/engine-formula'),require('rxjs'),require('@univerjs-pro/license')):typeof define=='function'&&define[_0x1e2339(0x114)]?define([_0x1e2339(0x15a),_0x1e2339(0x196),'@univerjs/core',_0x1e2339(0x1d0),_0x1e2339(0x181),'rxjs','@univerjs-pro/license'],_0x9a6b1):(_0x59a3a0=typeof globalThis<'u'?globalThis:_0x59a3a0||self,_0x9a6b1(_0x59a3a0[_0x1e2339(0x1db)]={},_0x59a3a0[_0x1e2339(0x1a3)],_0x59a3a0[_0x1e2339(0xf1)],_0x59a3a0['UniverDocs'],_0x59a3a0['UniverEngineFormula'],_0x59a3a0[_0x1e2339(0x11e)],_0x59a3a0[_0x1e2339(0x203)]));}(this,function(_0x415d22,_0x27ed60,_0x3ad0ce,_0xe8b14d,_0xce0fe7,_0x5e5a60,_0x3ebd32){const _0x754d11=_0x55f6;Object[_0x754d11(0x11f)](_0x415d22,Symbol[_0x754d11(0x102)],{'value':_0x754d11(0x144)});let _0x959d06=_0x754d11(0x179),_0x13f145=_0x754d11(0x228);function _0x2dd373(){return{'schemaVersion':0x1,'formulas':{}};}function _0x1b1cdf(_0x4dc09c){const _0x52931a=_0x754d11;return!_0x4dc09c||typeof _0x4dc09c!=_0x52931a(0x1d5)||!_0x5120be(_0x4dc09c,[_0x52931a(0x210),_0x52931a(0x162)])||!(_0x52931a(0x210)in _0x4dc09c)||_0x4dc09c[_0x52931a(0x210)]!==0x1||!(_0x52931a(0x162)in _0x4dc09c)||!_0x4dc09c[_0x52931a(0x162)]||typeof _0x4dc09c[_0x52931a(0x162)]!=_0x52931a(0x1d5)||Array['isArray'](_0x4dc09c['formulas'])?!0x1:Object[_0x52931a(0x1e0)](_0x4dc09c['formulas'])[_0x52931a(0x142)](([_0x40b867,_0x3252b5])=>_0x40b867[_0x52931a(0x150)]>0x0&&_0x14ba05(_0x3252b5));}function _0x14ba05(_0x30378b){const _0x46690e=_0x754d11;return!_0x30378b||typeof _0x30378b!=_0x46690e(0x1d5)||!_0x5120be(_0x30378b,['formula','numberFormat',_0x46690e(0x14e)])||!(_0x46690e(0x16b)in _0x30378b)||typeof _0x30378b['formula']!='string'||!_0x30378b[_0x46690e(0x16b)][_0x46690e(0x1da)]()||_0x46690e(0x1ad)in _0x30378b&&_0x30378b[_0x46690e(0x1ad)]!=null&&(typeof _0x30378b[_0x46690e(0x1ad)]!=_0x46690e(0x1d5)||!_0x5120be(_0x30378b['numberFormat'],['pattern'])||!('pattern'in _0x30378b['numberFormat'])||typeof _0x30378b[_0x46690e(0x1ad)][_0x46690e(0x13f)]!=_0x46690e(0x188))?!0x1:!(_0x46690e(0x14e)in _0x30378b)||_0x30378b[_0x46690e(0x14e)]==null||_0x590ba7(_0x30378b['lastValue']);}function _0x590ba7(_0x41f5b9){const _0x278f02=_0x754d11;return!_0x41f5b9||typeof _0x41f5b9!=_0x278f02(0x1d5)||!_0x5120be(_0x41f5b9,['v','t',_0x278f02(0x13f)])||!('v'in _0x41f5b9)||_0x41f5b9['v']!==null&&typeof _0x41f5b9['v']!=_0x278f02(0x188)&&typeof _0x41f5b9['v']!=_0x278f02(0x21a)&&typeof _0x41f5b9['v']!='boolean'||'t'in _0x41f5b9&&_0x41f5b9['t']!=null&&!_0x492c9c(_0x41f5b9['t'])?!0x1:!('pattern'in _0x41f5b9)||_0x41f5b9[_0x278f02(0x13f)]==null||typeof _0x41f5b9[_0x278f02(0x13f)]==_0x278f02(0x188);}function _0x5120be(_0x4abdf0,_0x29866f){const _0x51aa20=_0x754d11;let _0x53e7d6=new Set(_0x29866f);return Object[_0x51aa20(0x1d4)](_0x4abdf0)['every'](_0x352aa9=>_0x53e7d6[_0x51aa20(0x1b9)](_0x352aa9));}function _0x492c9c(_0x1237e3){const _0x52ef02=_0x754d11;return typeof _0x1237e3==_0x52ef02(0x21a)&&Object[_0x52ef02(0x189)](_0x3ad0ce[_0x52ef02(0x19a)])[_0x52ef02(0x116)](_0x1237e3);}let _0x5991e1=new Set([_0x3ad0ce[_0x754d11(0xff)][_0x754d11(0x1ce)],_0x3ad0ce[_0x754d11(0xff)]['TABLE_START'],_0x3ad0ce[_0x754d11(0xff)][_0x754d11(0x139)],_0x3ad0ce['DataStreamTreeTokenType'][_0x754d11(0x155)],_0x3ad0ce[_0x754d11(0xff)][_0x754d11(0xfc)],_0x3ad0ce[_0x754d11(0xff)][_0x754d11(0x115)],_0x3ad0ce[_0x754d11(0xff)]['TABLE_END'],_0x3ad0ce['DataStreamTreeTokenType']['COLUMN_GROUP_START'],_0x3ad0ce[_0x754d11(0xff)][_0x754d11(0x143)],_0x3ad0ce[_0x754d11(0xff)][_0x754d11(0x17c)],_0x3ad0ce[_0x754d11(0xff)]['COLUMN_GROUP_END'],_0x3ad0ce[_0x754d11(0xff)][_0x754d11(0x19e)],_0x3ad0ce['DataStreamTreeTokenType'][_0x754d11(0x12f)],_0x3ad0ce[_0x754d11(0xff)]['CUSTOM_BLOCK']]);var _0x471f6f=class extends Error{constructor(){const _0x27a2d0=_0x754d11;super(_0x27a2d0(0x1eb));}};function _0x2a913d(_0x35c0fd){const _0x492cf9=_0x754d11;var _0x59698c,_0x4a3c01;let _0x5bc55b=_0x3ad0ce[_0x492cf9(0x13c)][_0x492cf9(0x1dd)](_0x35c0fd[_0x492cf9(0x197)]),_0x3a491d=_0x3a0ded(_0x5bc55b),{startOffset:_0x5bcf8a,endOffset:_0x590096}=_0x51f330(_0x3a491d,_0x35c0fd[_0x492cf9(0x170)],_0x35c0fd[_0x492cf9(0x13a)]);_0x216280(_0x3a491d,_0x5bcf8a,_0x590096);let _0x1f9b82=((_0x59698c=_0x3a491d[_0x492cf9(0x1b7)])==null?void 0x0:_0x59698c[_0x492cf9(0x137)](_0x3b0bb5=>{const _0x4ab13c=_0x492cf9;if(!_0x2ea921(_0x3b0bb5))return!0x1;let _0x50df55=(0x0,_0x3ad0ce['getCustomRangeInterval'])(_0x3b0bb5);return _0x50df55[_0x4ab13c(0x13a)]>_0x5bcf8a&&_0x50df55['startOffset']<_0x590096;})[_0x492cf9(0x184)](_0x10a70b=>_0x10a70b[_0x492cf9(0x230)]))??[];_0x1fd56f(_0x3a491d,_0x5bcf8a,_0x590096,''),_0x3a491d[_0x492cf9(0x1b7)]=[...((_0x4a3c01=_0x3a491d['customRanges'])==null?void 0x0:_0x4a3c01['filter'](_0x5d3250=>!_0x1f9b82[_0x492cf9(0x116)](_0x5d3250[_0x492cf9(0x230)])&&_0x5d3250[_0x492cf9(0x230)]!==_0x35c0fd[_0x492cf9(0x230)]))??[],_0x32cef5(_0x35c0fd[_0x492cf9(0x230)],_0x5bcf8a)][_0x492cf9(0x1f1)]((_0x4963c2,_0x29cc3f)=>_0x4963c2[_0x492cf9(0xfa)]-_0x29cc3f['startIndex']);let _0x230e14=_0x6d4f40(_0x35c0fd[_0x492cf9(0x103)]);return _0x1f9b82[_0x492cf9(0x19d)](_0x5a6b33=>{const _0x1e9e91=_0x492cf9;delete _0x230e14[_0x1e9e91(0x162)][_0x5a6b33];}),_0x230e14[_0x492cf9(0x162)][_0x35c0fd['rangeId']]=_0x3ad0ce[_0x492cf9(0x13c)][_0x492cf9(0x1dd)](_0x35c0fd[_0x492cf9(0x1bb)]),{'nextDocumentData':_0x5bc55b,'nextResource':_0x230e14,'cursorOffset':_0x5bcf8a+0x1};}function _0x40505e(_0x58dd4d){const _0x2e6c6f=_0x754d11;var _0x1068e8,_0x3f8d56;let _0x1d955e=_0x3ad0ce['Tools']['deepClone'](_0x58dd4d[_0x2e6c6f(0x197)]),_0x16fde1=(_0x1068e8=_0x3a0ded(_0x1d955e)[_0x2e6c6f(0x1b7)])==null?void 0x0:_0x1068e8[_0x2e6c6f(0x1d3)](_0x5be49f=>_0x5be49f[_0x2e6c6f(0x230)]===_0x58dd4d['rangeId']&&_0x2ea921(_0x5be49f));if(!_0x16fde1||!((_0x3f8d56=_0x58dd4d['resource'])!=null&&_0x3f8d56['formulas'][_0x58dd4d['rangeId']]))return null;let _0x3d0d13=_0x6d4f40(_0x58dd4d['resource']);return _0x3d0d13[_0x2e6c6f(0x162)][_0x58dd4d[_0x2e6c6f(0x230)]]=_0x3ad0ce['Tools'][_0x2e6c6f(0x1dd)](_0x58dd4d[_0x2e6c6f(0x1bb)]),{'nextDocumentData':_0x1d955e,'nextResource':_0x3d0d13,'cursorOffset':_0x16fde1[_0x2e6c6f(0x220)]+0x1};}function _0x2dc10f(_0x45b3a0){const _0x5612cc=_0x754d11;let _0x1c6b71=_0x3ad0ce['Tools'][_0x5612cc(0x1dd)](_0x45b3a0[_0x5612cc(0x197)]),_0x3568e3=_0x12cda4(_0x1c6b71,_0x45b3a0[_0x5612cc(0x230)],_0x45b3a0['text']??'');if(_0x3568e3==null)return null;let _0x14196f=_0x6d4f40(_0x45b3a0[_0x5612cc(0x103)]);return delete _0x14196f[_0x5612cc(0x162)][_0x45b3a0[_0x5612cc(0x230)]],{'nextDocumentData':_0x1c6b71,'nextResource':_0x14196f,'cursorOffset':_0x3568e3};}function _0x1fb233(_0x58f703,_0x232f29){const _0x41ac69=_0x754d11;var _0x5d0225;let _0x163ebc=_0x3ad0ce[_0x41ac69(0x13c)]['deepClone'](_0x58f703),_0x2feca5=_0x163ebc[_0x41ac69(0xf0)];if(!_0x2feca5)return _0x163ebc;let _0x3e9848=new Map(_0x232f29['map'](_0x5d7f78=>[_0x5d7f78['rangeId'],_0x5d7f78[_0x41ac69(0x15c)]])),_0xee51a9=((_0x5d0225=_0x2feca5[_0x41ac69(0x1b7)])==null?void 0x0:_0x5d0225[_0x41ac69(0x137)](_0xb90c35=>_0x2ea921(_0xb90c35)&&_0x3e9848[_0x41ac69(0x1b9)](_0xb90c35[_0x41ac69(0x230)]))['sort']((_0x2f8a34,_0xcac9b8)=>_0xcac9b8[_0x41ac69(0xfa)]-_0x2f8a34[_0x41ac69(0xfa)]))??[];for(let _0x17308b of _0xee51a9)_0x12cda4(_0x163ebc,_0x17308b[_0x41ac69(0x230)],_0x3e9848[_0x41ac69(0x14f)](_0x17308b[_0x41ac69(0x230)])??'');return _0x163ebc;}function _0x2ea921(_0x1fc298){const _0x2899c0=_0x754d11;var _0x3ceeb1;return(_0x1fc298==null?void 0x0:_0x1fc298[_0x2899c0(0x118)])===_0x3ad0ce['CustomRangeType'][_0x2899c0(0x17a)]&&_0x1fc298[_0x2899c0(0x22e)]===!0x0&&((_0x3ceeb1=_0x1fc298[_0x2899c0(0x145)])==null?void 0x0:_0x3ceeb1[_0x2899c0(0x229)])===_0x2899c0(0x228);}function _0x4001d5(_0x5ec4d3,_0x56fdd7){const _0x2bc724=_0x754d11;var _0x759c8f;return _0x5ec4d3==null||(_0x759c8f=_0x5ec4d3['customRanges'])==null?void 0x0:_0x759c8f[_0x2bc724(0x1d3)](_0x96b5c0=>_0x96b5c0[_0x2bc724(0x230)]===_0x56fdd7&&_0x2ea921(_0x96b5c0));}function _0x216280(_0x488eda,_0x325c45,_0x18ee37){const _0x355ceb=_0x754d11;if(_0x325c45===_0x18ee37){if(_0x5991e1[_0x355ceb(0x1b9)](_0x488eda[_0x355ceb(0x14c)][_0x325c45]))throw new _0x471f6f();return;}for(let _0x2a9240=_0x325c45;_0x2a9240<_0x18ee37;_0x2a9240++)if(_0x488eda[_0x355ceb(0x14c)][_0x2a9240]===_0x3ad0ce['DataStreamTreeTokenType']['PARAGRAPH']||_0x5991e1[_0x355ceb(0x1b9)](_0x488eda[_0x355ceb(0x14c)][_0x2a9240]))throw new _0x471f6f();}function _0x32cef5(_0x5c6bdd,_0x47c982){const _0x3887b8=_0x754d11;return{'startIndex':_0x47c982,'endIndex':_0x47c982,'rangeId':_0x5c6bdd,'rangeType':_0x3ad0ce['CustomRangeType'][_0x3887b8(0x17a)],'wholeEntity':!0x0,'properties':{'kind':_0x13f145}};}function _0x6d4f40(_0x265b2b){const _0x21e4e4=_0x754d11;return _0x265b2b?_0x3ad0ce[_0x21e4e4(0x13c)][_0x21e4e4(0x1dd)](_0x265b2b):_0x2dd373();}function _0x51f330(_0x2c2fd2,_0x3916a7,_0xbfa5ac){const _0xb92d83=_0x754d11;let _0x24eb37=_0x49257a(_0x2c2fd2),_0x49c83e=_0x3916a7??_0x24eb37,_0x17b333=_0xbfa5ac??_0x49c83e;return{'startOffset':_0x556704(Math[_0xb92d83(0x1b6)](_0x49c83e,_0x17b333),_0x24eb37),'endOffset':_0x556704(Math[_0xb92d83(0x161)](_0x49c83e,_0x17b333),_0x24eb37)};}function _0x556704(_0x2ff147,_0x58f2e6){const _0x3a613b=_0x754d11;return Math[_0x3a613b(0x161)](0x0,Math['min'](_0x2ff147,_0x58f2e6));}function _0x49257a(_0x32e709){const _0x3e352b=_0x754d11;return _0x32e709[_0x3e352b(0x14c)]['endsWith'](''+_0x3ad0ce[_0x3e352b(0xff)]['PARAGRAPH']+_0x3ad0ce[_0x3e352b(0xff)][_0x3e352b(0x1ce)])?Math['max'](0x0,_0x32e709['dataStream'][_0x3e352b(0x150)]-0x2):_0x32e709[_0x3e352b(0x14c)]['endsWith'](_0x3ad0ce[_0x3e352b(0xff)][_0x3e352b(0x1ce)])?Math[_0x3e352b(0x161)](0x0,_0x32e709['dataStream']['length']-0x1):_0x32e709[_0x3e352b(0x14c)][_0x3e352b(0x150)];}function _0x1fd56f(_0x21bafc,_0xd0a9db,_0x1cd62a,_0x518097){_0x1cd62a>_0xd0a9db&&_0x5809e1(_0x21bafc,_0xd0a9db,_0x1cd62a),_0x23c8ef(_0x21bafc,_0xd0a9db,_0x518097);}function _0x12cda4(_0x557881,_0x3773aa,_0x10882e){const _0x21f7d0=_0x754d11;var _0x35f94f,_0x141f3e;let _0x4af25e=_0x3a0ded(_0x557881),_0x187857=(_0x35f94f=_0x4af25e[_0x21f7d0(0x1b7)])==null?void 0x0:_0x35f94f[_0x21f7d0(0x1d3)](_0xa3aaac=>_0xa3aaac[_0x21f7d0(0x230)]===_0x3773aa&&_0x2ea921(_0xa3aaac));if(!_0x187857)return null;let _0x4f89f7=(0x0,_0x3ad0ce[_0x21f7d0(0x1e2)])(_0x187857);return _0x1fd56f(_0x4af25e,_0x4f89f7['startOffset'],_0x4f89f7[_0x21f7d0(0x13a)],_0x10882e),_0x4af25e[_0x21f7d0(0x1b7)]=(_0x141f3e=_0x4af25e[_0x21f7d0(0x1b7)])==null?void 0x0:_0x141f3e['filter'](_0x3a202c=>_0x3a202c[_0x21f7d0(0x230)]!==_0x3773aa),_0x4f89f7['startOffset']+_0x10882e[_0x21f7d0(0x150)];}function _0x23c8ef(_0x5f0c1e,_0x53c36b,_0x1ae49a){const _0x5a2e2a=_0x754d11;_0x1ae49a&&(_0x5f0c1e['dataStream']=''+_0x5f0c1e[_0x5a2e2a(0x14c)][_0x5a2e2a(0x168)](0x0,_0x53c36b)+_0x1ae49a+_0x5f0c1e[_0x5a2e2a(0x14c)]['slice'](_0x53c36b),_0x19a3da(_0x5f0c1e,_0x53c36b,_0x1ae49a[_0x5a2e2a(0x150)]));}function _0x5809e1(_0x5a4f31,_0x5410a4,_0x5dc13c){const _0x3d735d=_0x754d11;let _0xa4d85b=_0x5dc13c-_0x5410a4;_0x5a4f31[_0x3d735d(0x14c)]=''+_0x5a4f31['dataStream']['slice'](0x0,_0x5410a4)+_0x5a4f31[_0x3d735d(0x14c)][_0x3d735d(0x168)](_0x5dc13c),_0x27242d(_0x5a4f31,_0x5410a4,_0xa4d85b);}function _0x19a3da(_0x12161b,_0x1d26fe,_0x297ed4){const _0x33f29b=_0x754d11;_0x12161b[_0x33f29b(0x1c8)]=_0xf485f4(_0x12161b[_0x33f29b(0x1c8)],_0x1d26fe,_0x297ed4),_0x12161b[_0x33f29b(0xfd)]=_0xf485f4(_0x12161b[_0x33f29b(0xfd)],_0x1d26fe,_0x297ed4),_0x12161b[_0x33f29b(0x1ee)]=_0xf485f4(_0x12161b[_0x33f29b(0x1ee)],_0x1d26fe,_0x297ed4),_0x12161b[_0x33f29b(0x224)]=_0x4a7334(_0x12161b['textRuns'],_0x1d26fe,_0x297ed4),_0x12161b[_0x33f29b(0x173)]=_0x1a2da9(_0x12161b[_0x33f29b(0x173)],_0x1d26fe,_0x297ed4),_0x12161b[_0x33f29b(0x191)]=_0x4068bb(_0x12161b['columnGroups'],_0x1d26fe,_0x297ed4),_0x12161b['customRanges']=_0x4068bb(_0x12161b[_0x33f29b(0x1b7)],_0x1d26fe,_0x297ed4),_0x12161b[_0x33f29b(0x1f9)]=_0x4068bb(_0x12161b[_0x33f29b(0x1f9)],_0x1d26fe,_0x297ed4),_0x12161b[_0x33f29b(0x167)]=_0x4068bb(_0x12161b[_0x33f29b(0x167)],_0x1d26fe,_0x297ed4);}function _0x27242d(_0xd0eec2,_0x2c7ca6,_0x3392d6){const _0x2f0f7c=_0x754d11;var _0x18a008,_0x4c0541;_0xd0eec2[_0x2f0f7c(0x1c8)]=_0x3aa950(_0xd0eec2['paragraphs'],_0x2c7ca6,_0x3392d6),_0xd0eec2[_0x2f0f7c(0xfd)]=_0x3aa950(_0xd0eec2['sectionBreaks'],_0x2c7ca6,_0x3392d6),_0xd0eec2[_0x2f0f7c(0x1ee)]=_0x3aa950(_0xd0eec2[_0x2f0f7c(0x1ee)],_0x2c7ca6,_0x3392d6),_0xd0eec2[_0x2f0f7c(0x224)]=(_0x18a008=_0x3636fd((_0x4c0541=_0xd0eec2[_0x2f0f7c(0x224)])==null?void 0x0:_0x4c0541[_0x2f0f7c(0x184)](_0x4ecce3=>({..._0x4ecce3,'startIndex':_0x4ecce3['st'],'endIndex':_0x4ecce3['ed']})),_0x2c7ca6,_0x3392d6))==null?void 0x0:_0x18a008[_0x2f0f7c(0x184)](_0x80370c=>{let {startIndex:_0x21d750,endIndex:_0x2127fb,..._0x3a8df3}=_0x80370c;return{..._0x3a8df3,'st':_0x21d750,'ed':_0x2127fb};}),_0xd0eec2['tables']=_0x3636fd(_0xd0eec2[_0x2f0f7c(0x173)],_0x2c7ca6,_0x3392d6),_0xd0eec2[_0x2f0f7c(0x191)]=_0x36957c(_0xd0eec2['columnGroups'],_0x2c7ca6,_0x3392d6),_0xd0eec2[_0x2f0f7c(0x1b7)]=_0x36957c(_0xd0eec2[_0x2f0f7c(0x1b7)],_0x2c7ca6,_0x3392d6),_0xd0eec2[_0x2f0f7c(0x1f9)]=_0x36957c(_0xd0eec2[_0x2f0f7c(0x1f9)],_0x2c7ca6,_0x3392d6),_0xd0eec2['blockRanges']=_0x36957c(_0xd0eec2[_0x2f0f7c(0x167)],_0x2c7ca6,_0x3392d6);}function _0xf485f4(_0x213dea,_0x480928,_0x287194){const _0x5f04eb=_0x754d11;return _0x213dea==null?void 0x0:_0x213dea[_0x5f04eb(0x184)](_0x50541d=>_0x50541d[_0x5f04eb(0xfa)]>=_0x480928?{..._0x50541d,'startIndex':_0x50541d[_0x5f04eb(0xfa)]+_0x287194}:_0x50541d);}function _0x3aa950(_0x46f2cb,_0x1b9cb4,_0x342ea7){const _0xa6b4d6=_0x754d11;let _0x2dd71c=_0x1b9cb4+_0x342ea7;return _0x46f2cb==null?void 0x0:_0x46f2cb['map'](_0x298c58=>_0x298c58[_0xa6b4d6(0xfa)]>=_0x1b9cb4&&_0x298c58[_0xa6b4d6(0xfa)]<_0x2dd71c?null:_0x298c58[_0xa6b4d6(0xfa)]>=_0x2dd71c?{..._0x298c58,'startIndex':_0x298c58['startIndex']-_0x342ea7}:_0x298c58)[_0xa6b4d6(0x137)](_0x32f9cb=>_0x32f9cb!=null);}function _0x4a7334(_0x3b4289,_0xef38ad,_0x5b6097){const _0x2179ba=_0x754d11;return _0x3b4289==null?void 0x0:_0x3b4289[_0x2179ba(0x184)](_0x534e8d=>_0x534e8d['st']>=_0xef38ad?{..._0x534e8d,'st':_0x534e8d['st']+_0x5b6097,'ed':_0x534e8d['ed']+_0x5b6097}:_0x534e8d['ed']>_0xef38ad?{..._0x534e8d,'ed':_0x534e8d['ed']+_0x5b6097}:_0x534e8d);}function _0x4068bb(_0x4057ef,_0x131820,_0x5e1600){const _0x54c7ab=_0x754d11;return _0x4057ef==null?void 0x0:_0x4057ef[_0x54c7ab(0x184)](_0x3d644d=>(0x0,_0x3ad0ce['shiftInclusiveRangeOnInsert'])(_0x3d644d,_0x131820,_0x5e1600));}function _0x1a2da9(_0x26e5d8,_0x5af637,_0x133ecb){const _0xb631b6=_0x754d11;return _0x26e5d8==null?void 0x0:_0x26e5d8[_0xb631b6(0x184)](_0x18463a=>(0x0,_0x3ad0ce[_0xb631b6(0x152)])(_0x18463a,_0x5af637,_0x133ecb));}function _0x36957c(_0x421a4b,_0x30eeb6,_0x45c036){const _0x1a6e0e=_0x754d11;return _0x421a4b==null?void 0x0:_0x421a4b[_0x1a6e0e(0x184)](_0x1d2b61=>(0x0,_0x3ad0ce['shiftInclusiveRangeOnDelete'])(_0x1d2b61,_0x30eeb6,_0x45c036))['filter'](_0x3a9baa=>_0x3a9baa!=null);}function _0x3636fd(_0x3b93d7,_0x4a7a1c,_0xdab041){const _0x22658a=_0x754d11;return _0x3b93d7==null?void 0x0:_0x3b93d7[_0x22658a(0x184)](_0x3f1a7a=>(0x0,_0x3ad0ce[_0x22658a(0x1e4)])(_0x3f1a7a,_0x4a7a1c,_0xdab041))[_0x22658a(0x137)](_0x2b5b17=>_0x2b5b17!=null);}function _0x3a0ded(_0x1f4858){const _0x455c75=_0x754d11;if(!_0x1f4858[_0x455c75(0xf0)])throw Error('Document\x20main\x20body\x20is\x20required\x20to\x20insert\x20Doc\x20Formula.');return _0x1f4858['body'];}function _0x5b04cb(_0x1b3f90){'@babel/helpers - typeof';const _0x8a1a3a=_0x754d11;return _0x5b04cb=typeof Symbol==_0x8a1a3a(0x125)&&typeof Symbol['iterator']=='symbol'?function(_0x4db4ec){return typeof _0x4db4ec;}:function(_0x4b0ad8){const _0x555ad5=_0x8a1a3a;return _0x4b0ad8&&typeof Symbol=='function'&&_0x4b0ad8[_0x555ad5(0x176)]===Symbol&&_0x4b0ad8!==Symbol[_0x555ad5(0x201)]?_0x555ad5(0x10e):typeof _0x4b0ad8;},_0x5b04cb(_0x1b3f90);}function _0x5cf4d7(_0x764dc4,_0x38d92f){const _0x2c1c66=_0x754d11;if(_0x5b04cb(_0x764dc4)!='object'||!_0x764dc4)return _0x764dc4;var _0x431639=_0x764dc4[Symbol[_0x2c1c66(0x211)]];if(_0x431639!==void 0x0){var _0x5599d9=_0x431639[_0x2c1c66(0x11d)](_0x764dc4,_0x38d92f||_0x2c1c66(0x1f2));if(_0x5b04cb(_0x5599d9)!=_0x2c1c66(0x1d5))return _0x5599d9;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x38d92f===_0x2c1c66(0x188)?String:Number)(_0x764dc4);}function _0x403ee9(_0x8ad2f1){const _0x5157bd=_0x754d11;var _0x53cce1=_0x5cf4d7(_0x8ad2f1,_0x5157bd(0x188));return _0x5b04cb(_0x53cce1)=='symbol'?_0x53cce1:_0x53cce1+'';}function _0x4fce06(_0x1bf1ab,_0x2e3ecc,_0x610d54){const _0x178ea2=_0x754d11;return(_0x2e3ecc=_0x403ee9(_0x2e3ecc))in _0x1bf1ab?Object[_0x178ea2(0x11f)](_0x1bf1ab,_0x2e3ecc,{'value':_0x610d54,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x1bf1ab[_0x2e3ecc]=_0x610d54,_0x1bf1ab;}var _0x46f2a0=class extends _0x3ad0ce[_0x754d11(0xf3)]{constructor(..._0x4a1f5e){const _0x30be3f=_0x754d11;super(..._0x4a1f5e),_0x4fce06(this,_0x30be3f(0x1c4),new Map()),_0x4fce06(this,_0x30be3f(0x1b1),new Map()),_0x4fce06(this,_0x30be3f(0x164),new Map()),_0x4fce06(this,_0x30be3f(0x16d),new _0x5e5a60[(_0x30be3f(0x1df))]()),_0x4fce06(this,'change$',this[_0x30be3f(0x16d)]['asObservable']());}[_0x754d11(0x146)](_0x7cf1d5,_0x5f166e){const _0x28cae4=_0x754d11;var _0x53ebc3;let _0x222dae=(_0x53ebc3=this[_0x28cae4(0x1c4)][_0x28cae4(0x14f)](_0x7cf1d5))==null?void 0x0:_0x53ebc3['formulas'][_0x5f166e];return _0x222dae?_0x3ad0ce['Tools'][_0x28cae4(0x1dd)](_0x222dae):void 0x0;}[_0x754d11(0x221)](_0x42a420){const _0x585ee3=_0x754d11;var _0x4813cc;return _0x3ad0ce[_0x585ee3(0x13c)][_0x585ee3(0x1dd)](((_0x4813cc=this[_0x585ee3(0x1c4)][_0x585ee3(0x14f)](_0x42a420))==null?void 0x0:_0x4813cc['formulas'])??{});}[_0x754d11(0x110)](_0x588871){const _0x763a1d=_0x754d11;let _0xf80d48=this[_0x763a1d(0x1c4)][_0x763a1d(0x14f)](_0x588871);return _0xf80d48?_0x3ad0ce[_0x763a1d(0x13c)]['deepClone'](_0xf80d48):void 0x0;}[_0x754d11(0x16a)](_0x55305c,_0x1e9721,_0x21f67e){const _0xc1e45f=_0x754d11;return this[_0xc1e45f(0x111)](_0x55305c,{[_0x1e9721]:_0x21f67e});}['setResource'](_0x5a1d74,_0xc51bd4){const _0x916b66=_0x754d11;return this[_0x916b66(0x164)]['has'](_0x5a1d74)||!_0x1b1cdf(_0xc51bd4)?!0x1:(this[_0x916b66(0x1c4)]['set'](_0x5a1d74,_0x3ad0ce[_0x916b66(0x13c)][_0x916b66(0x1dd)](_0xc51bd4)),this[_0x916b66(0x16d)][_0x916b66(0x1ab)]({'unitId':_0x5a1d74}),!0x0);}['setFormulas'](_0x52b172,_0x2810ef){const _0xccaa00=_0x754d11;if(this[_0xccaa00(0x164)][_0xccaa00(0x1b9)](_0x52b172)||!Object[_0xccaa00(0x1d4)](_0x2810ef)[_0xccaa00(0x150)]||!_0x1b1cdf({'schemaVersion':0x1,'formulas':_0x2810ef}))return!0x1;let _0x217ced=this[_0xccaa00(0x1c4)]['get'](_0x52b172)??_0x2dd373(),_0x6f56fb=_0x3ad0ce[_0xccaa00(0x13c)][_0xccaa00(0x1dd)](_0x217ced);return Object[_0xccaa00(0x12e)](_0x6f56fb[_0xccaa00(0x162)],_0x3ad0ce[_0xccaa00(0x13c)]['deepClone'](_0x2810ef)),this[_0xccaa00(0x1c4)]['set'](_0x52b172,_0x6f56fb),this[_0xccaa00(0x16d)][_0xccaa00(0x1ab)]({'unitId':_0x52b172,'rangeIds':Object[_0xccaa00(0x1d4)](_0x2810ef)}),!0x0;}[_0x754d11(0x195)](_0x363069,_0xb0309e){const _0x4c66d2=_0x754d11;if(this[_0x4c66d2(0x164)]['has'](_0x363069))return!0x1;let _0x275c8a=this[_0x4c66d2(0x1c4)][_0x4c66d2(0x14f)](_0x363069);if(!(_0x275c8a!=null&&_0x275c8a[_0x4c66d2(0x162)][_0xb0309e]))return!0x1;let _0x559699=_0x3ad0ce[_0x4c66d2(0x13c)][_0x4c66d2(0x1dd)](_0x275c8a);return delete _0x559699[_0x4c66d2(0x162)][_0xb0309e],this['_resources'][_0x4c66d2(0x1ea)](_0x363069,_0x559699),this[_0x4c66d2(0x16d)][_0x4c66d2(0x1ab)]({'unitId':_0x363069,'rangeIds':[_0xb0309e]}),!0x0;}[_0x754d11(0x206)](_0x16ac68,_0x5afba4){const _0x29ea06=_0x754d11;return _0x5afba4&&typeof _0x5afba4==_0x29ea06(0x1d5)&&_0x29ea06(0x210)in _0x5afba4&&_0x5afba4[_0x29ea06(0x210)]!==0x1?(this[_0x29ea06(0x17b)](_0x16ac68,_0x5afba4,'unsupported-version'),!0x1):_0x1b1cdf(_0x5afba4)?(this[_0x29ea06(0x1c4)][_0x29ea06(0x1ea)](_0x16ac68,_0x3ad0ce['Tools'][_0x29ea06(0x1dd)](_0x5afba4)),this[_0x29ea06(0x1b1)][_0x29ea06(0x212)](_0x16ac68),this[_0x29ea06(0x164)][_0x29ea06(0x212)](_0x16ac68),this['_change$'][_0x29ea06(0x1ab)]({'unitId':_0x16ac68}),!0x0):(this[_0x29ea06(0x17b)](_0x16ac68,_0x5afba4,_0x29ea06(0x19f)),!0x1);}['serialize'](_0xba92ce){const _0x137861=_0x754d11;let _0x2785b2=this['_resources'][_0x137861(0x14f)](_0xba92ce);return _0x2785b2?_0x3ad0ce[_0x137861(0x13c)][_0x137861(0x1dd)](_0x2785b2):this[_0x137861(0x1b1)]['has'](_0xba92ce)?_0x3ad0ce['Tools'][_0x137861(0x1dd)](this[_0x137861(0x1b1)][_0x137861(0x14f)](_0xba92ce)):_0x2dd373();}[_0x754d11(0x12a)](_0x1a9d98){const _0x38a480=_0x754d11;return this[_0x38a480(0x164)][_0x38a480(0x14f)](_0x1a9d98);}[_0x754d11(0x1cb)](_0x4ab54c){const _0x221ed7=_0x754d11;this[_0x221ed7(0x1c4)]['delete'](_0x4ab54c),this[_0x221ed7(0x1b1)][_0x221ed7(0x212)](_0x4ab54c),this[_0x221ed7(0x164)]['delete'](_0x4ab54c),this[_0x221ed7(0x16d)]['next']({'unitId':_0x4ab54c});}[_0x754d11(0x202)](){const _0x5f2ba1=_0x754d11;this[_0x5f2ba1(0x1c4)]['clear'](),this[_0x5f2ba1(0x1b1)][_0x5f2ba1(0x1c3)](),this[_0x5f2ba1(0x164)]['clear'](),this[_0x5f2ba1(0x16d)][_0x5f2ba1(0x123)](),super['dispose']();}[_0x754d11(0x17b)](_0x44d995,_0x4eaf1b,_0x546b66){const _0x27e60c=_0x754d11;this[_0x27e60c(0x1c4)][_0x27e60c(0x212)](_0x44d995),this[_0x27e60c(0x1b1)]['set'](_0x44d995,_0x3ad0ce[_0x27e60c(0x13c)][_0x27e60c(0x1dd)](_0x4eaf1b)),this['_loadErrors'][_0x27e60c(0x1ea)](_0x44d995,_0x546b66),this[_0x27e60c(0x16d)][_0x27e60c(0x1ab)]({'unitId':_0x44d995});}};let _0x26d030=function(_0x39be29){const _0x372a31=_0x754d11;return _0x39be29[_0x372a31(0xf4)]=_0x372a31(0x108),_0x39be29[_0x372a31(0x20b)]=_0x372a31(0x100),_0x39be29[_0x372a31(0x193)]=_0x372a31(0x133),_0x39be29[_0x372a31(0x11b)]='error',_0x39be29;}({});function _0x54abe0(_0x1bf88a,_0x256085){return function(_0x61550a,_0x82bddb){_0x256085(_0x61550a,_0x82bddb,_0x1bf88a);};}function _0x2f1059(_0x58f382,_0x10fc6e,_0x274168,_0xe997dc){const _0x7414a7=_0x754d11;var _0x27071b=arguments[_0x7414a7(0x150)],_0x36a294=_0x27071b<0x3?_0x10fc6e:_0xe997dc===null?_0xe997dc=Object[_0x7414a7(0x187)](_0x10fc6e,_0x274168):_0xe997dc,_0x9d79e2;if(typeof Reflect=='object'&&typeof Reflect['decorate']==_0x7414a7(0x125))_0x36a294=Reflect['decorate'](_0x58f382,_0x10fc6e,_0x274168,_0xe997dc);else{for(var _0x123484=_0x58f382[_0x7414a7(0x150)]-0x1;_0x123484>=0x0;_0x123484--)(_0x9d79e2=_0x58f382[_0x123484])&&(_0x36a294=(_0x27071b<0x3?_0x9d79e2(_0x36a294):_0x27071b>0x3?_0x9d79e2(_0x10fc6e,_0x274168,_0x36a294):_0x9d79e2(_0x10fc6e,_0x274168))||_0x36a294);}return _0x27071b>0x3&&_0x36a294&&Object[_0x7414a7(0x11f)](_0x10fc6e,_0x274168,_0x36a294),_0x36a294;}let _0x20a44b=class extends _0x3ad0ce['Disposable']{constructor(_0x2d4296,_0x2abfab,_0x323a8a){const _0x25ed1d=_0x754d11;super(),this['_model']=_0x2d4296,this[_0x25ed1d(0x1c7)]=_0x2abfab,this[_0x25ed1d(0x20f)]=_0x323a8a,_0x4fce06(this,'_registrations',new Map()),_0x4fce06(this,_0x25ed1d(0x130),new Map()),_0x4fce06(this,'_presentationChanged$',new _0x5e5a60[(_0x25ed1d(0x1df))]()),_0x4fce06(this,_0x25ed1d(0x1cc),this[_0x25ed1d(0x18e)][_0x25ed1d(0x15e)]()),this[_0x25ed1d(0x1aa)](this[_0x25ed1d(0x1c7)][_0x25ed1d(0x128)][_0x25ed1d(0x20d)](_0x1da54c=>{const _0x5e8c98=_0x25ed1d;for(let _0x3192e4 of Object['values'](_0x1da54c))for(let _0x2228fd of Object[_0x5e8c98(0x189)](_0x3192e4))_0x2228fd['forEach'](_0x562936=>this[_0x5e8c98(0x10f)](_0x562936));}));}['syncUnit'](_0x557736){const _0x186418=_0x754d11;var _0x22d308;let _0x5ee9f7=_0x557736[_0x186418(0x1a8)](),_0x3a9e2f=((_0x22d308=_0x557736[_0x186418(0x21d)]()[_0x186418(0xf0)])==null||(_0x22d308=_0x22d308['customRanges'])==null?void 0x0:_0x22d308['filter'](_0x2ea921))??[],_0x4a1c29=this[_0x186418(0x119)][_0x186418(0x221)](_0x5ee9f7),_0x2361ce=new Set();for(let _0x15cb62 of _0x3a9e2f){let _0x3daaa0=_0x4a1c29[_0x15cb62[_0x186418(0x230)]];_0x3daaa0&&(_0x2361ce['add'](_0x142418(_0x5ee9f7,_0x15cb62[_0x186418(0x230)])),this['register']({'unitId':_0x5ee9f7,'rangeId':_0x15cb62[_0x186418(0x230)]},_0x3daaa0));}for(let _0x2a94b5 of Array['from'](this[_0x186418(0x158)][_0x186418(0x189)]()))_0x2a94b5['unitId']===_0x5ee9f7&&!_0x2361ce[_0x186418(0x1b9)](_0x142418(_0x2a94b5[_0x186418(0x231)],_0x2a94b5['rangeId']))&&this[_0x186418(0x200)](_0x2a94b5);}[_0x754d11(0xf2)](_0xfbb454,_0x473b41){const _0x471090=_0x754d11;let _0x52897e=_0x142418(_0xfbb454['unitId'],_0xfbb454[_0x471090(0x230)]),_0x33a34d=this[_0x471090(0x158)]['get'](_0x52897e),_0x1c5d7d=this[_0x471090(0x20f)]['getRevision'](_0xfbb454['unitId']);if(_0x33a34d&&_0x33a34d[_0x471090(0x1bb)][_0x471090(0x16b)]===_0x473b41[_0x471090(0x16b)]&&_0x33a34d['referenceRevision']===_0x1c5d7d){_0x33a34d[_0x471090(0x1bb)]=_0x473b41;let _0x3c6f5d=_0x33a34d[_0x471090(0x1e9)]?this[_0x471090(0x1c7)]['getFormulaValueSync'](_0x33a34d[_0x471090(0x231)],_0x33a34d[_0x471090(0x231)],_0x33a34d[_0x471090(0x1e9)])??void 0x0:void 0x0;_0x33a34d[_0x471090(0x205)]=_0x3c6f5d,this[_0x471090(0xfb)](_0x52897e,_0x4ee25d(_0x473b41,_0x3c6f5d));return;}_0x33a34d!=null&&_0x33a34d[_0x471090(0x1e9)]&&this[_0x471090(0x16c)](_0x33a34d);let _0x25a5ec={..._0xfbb454,'config':_0x473b41,'referenceRevision':_0x1c5d7d,'presentation':_0x4ee25d(_0x473b41,void 0x0)};if(this[_0x471090(0x158)]['set'](_0x52897e,_0x25a5ec),!_0x473b41[_0x471090(0x16b)][_0x471090(0x1da)]())return;let _0x5e5c4e=this[_0x471090(0x1c7)][_0x471090(0x215)](_0xfbb454[_0x471090(0x231)],_0xfbb454[_0x471090(0x231)],_0x473b41['formula'],void 0x0,{'rangeId':_0xfbb454['rangeId']},_0xce0fe7[_0x471090(0x1f8)][_0x471090(0x207)],_0xfbb454['rangeId']);_0x25a5ec[_0x471090(0x1e9)]=_0x5e5c4e,this[_0x471090(0x130)][_0x471090(0x1ea)](_0x5e5c4e,_0x52897e);}[_0x754d11(0x200)](_0x37a5d5){const _0x5ecdb4=_0x754d11;let _0x412609=_0x142418(_0x37a5d5['unitId'],_0x37a5d5[_0x5ecdb4(0x230)]),_0x1f44c6=this['_registrations'][_0x5ecdb4(0x14f)](_0x412609);_0x1f44c6&&(this[_0x5ecdb4(0x16c)](_0x1f44c6),this[_0x5ecdb4(0x158)][_0x5ecdb4(0x212)](_0x412609));}[_0x754d11(0x1a9)](_0x29e51b){const _0x13acb4=_0x754d11;for(let _0x56c5be of Array[_0x13acb4(0x178)](this[_0x13acb4(0x158)][_0x13acb4(0x189)]()))_0x56c5be[_0x13acb4(0x231)]===_0x29e51b&&this[_0x13acb4(0x200)](_0x56c5be);}[_0x754d11(0x1bc)](_0x4a4dfb){const _0x5acd96=_0x754d11;var _0x2399f4;return(_0x2399f4=this['_registrations'][_0x5acd96(0x14f)](_0x142418(_0x4a4dfb[_0x5acd96(0x231)],_0x4a4dfb['rangeId'])))==null?void 0x0:_0x2399f4[_0x5acd96(0x172)];}[_0x754d11(0x1c2)](_0x374aa2){const _0x3a8b39=_0x754d11;let _0x390104=this[_0x3a8b39(0x158)][_0x3a8b39(0x14f)](_0x142418(_0x374aa2[_0x3a8b39(0x231)],_0x374aa2['rangeId']));return _0x390104?_0x5140b3(_0x390104):void 0x0;}[_0x754d11(0x1e5)](){const _0x2005bb=_0x754d11;return Array[_0x2005bb(0x178)](this['_registrations'][_0x2005bb(0x189)](),_0x16c3ff=>({'identity':{'unitId':_0x16c3ff[_0x2005bb(0x231)],'rangeId':_0x16c3ff[_0x2005bb(0x230)]},'config':_0x16c3ff['config'],'referenceRevision':_0x16c3ff[_0x2005bb(0x1fd)],..._0x16c3ff['liveResult']?{'liveResult':_0x16c3ff[_0x2005bb(0x205)]}:null}));}[_0x754d11(0x202)](){const _0x333aa8=_0x754d11;for(let _0x3c372e of this['_registrations']['values']())this['_deleteRegistration'](_0x3c372e);this[_0x333aa8(0x158)][_0x333aa8(0x1c3)](),this[_0x333aa8(0x130)][_0x333aa8(0x1c3)](),this[_0x333aa8(0x18e)][_0x333aa8(0x123)](),super[_0x333aa8(0x202)]();}[_0x754d11(0x10f)](_0x519538){const _0x55d8be=_0x754d11;let _0x35c6b3=this[_0x55d8be(0x130)][_0x55d8be(0x14f)](_0x519538[_0x55d8be(0x1e9)]),_0x27af5c=_0x35c6b3?this['_registrations']['get'](_0x35c6b3):void 0x0;_0x35c6b3&&_0x27af5c&&(_0x27af5c[_0x55d8be(0x205)]=_0x519538,this[_0x55d8be(0xfb)](_0x35c6b3,_0x4ee25d(_0x27af5c[_0x55d8be(0x1bb)],_0x519538)));}[_0x754d11(0xfb)](_0x599608,_0x1e4fd2){const _0x3879ae=_0x754d11;var _0x3a2d23,_0x5f00e3;let _0x2f3196=this[_0x3879ae(0x158)][_0x3879ae(0x14f)](_0x599608);if(!_0x2f3196||_0x303dbe(_0x2f3196[_0x3879ae(0x172)],_0x1e4fd2))return;let _0x23f05a=_0x2f3196[_0x3879ae(0x172)],_0x3f5cec=_0x5140b3(_0x2f3196);_0x2f3196[_0x3879ae(0x172)]=_0x1e4fd2,this['_presentationChanged$']['next']({'unitId':_0x2f3196[_0x3879ae(0x231)],'rangeId':_0x2f3196[_0x3879ae(0x230)],'presentation':_0x1e4fd2,'previousPresentation':_0x23f05a,'result':_0x5140b3(_0x2f3196),'previousResult':{..._0x3f5cec,..._0x23f05a,'value':(_0x3a2d23=_0x23f05a[_0x3879ae(0x163)])==null?void 0x0:_0x3a2d23['v'],'valueType':((_0x5f00e3=_0x23f05a['cell'])==null?void 0x0:_0x5f00e3['t'])??void 0x0}});}[_0x754d11(0x16c)](_0x1e56fb){const _0x5c1a25=_0x754d11;_0x1e56fb[_0x5c1a25(0x1e9)]&&(this[_0x5c1a25(0x1c7)]['deleteFormula'](_0x1e56fb[_0x5c1a25(0x231)],_0x1e56fb[_0x5c1a25(0x231)],[_0x1e56fb[_0x5c1a25(0x1e9)]]),this[_0x5c1a25(0x130)][_0x5c1a25(0x212)](_0x1e56fb['formulaId']));}};_0x20a44b=_0x2f1059([_0x54abe0(0x0,(0x0,_0x3ad0ce[_0x754d11(0x104)])(_0x46f2a0)),_0x54abe0(0x1,(0x0,_0x3ad0ce[_0x754d11(0x104)])(_0xce0fe7[_0x754d11(0x180)])),_0x54abe0(0x2,(0x0,_0x3ad0ce[_0x754d11(0x104)])(_0x27ed60[_0x754d11(0x160)]))],_0x20a44b);function _0x142418(_0x5d85a7,_0x90aeac){return _0x5d85a7+'\x00'+_0x90aeac;}function _0x4ee25d(_0x2d878c,_0x47d62f){const _0x25a9be=_0x754d11;return(0x0,_0x27ed60[_0x25a9be(0x1d1)])({'numberFormat':_0x2d878c[_0x25a9be(0x1ad)],'lastValue':_0x2d878c['lastValue'],'result':_0x47d62f});}function _0x5140b3(_0x1b782e){const _0x520221=_0x754d11;var _0x2d608d,_0x15d11b,_0x17809d;let _0x4fe569=_0x1b782e[_0x520221(0x172)],_0x5d1093=_0x1b782e[_0x520221(0x1bb)][_0x520221(0x16b)]['trim']()?_0x4fe569[_0x520221(0x182)]||_0x4fe569[_0x520221(0x163)]==null?_0x520221(0x100):((_0x2d608d=_0x1b782e[_0x520221(0x205)])==null?void 0x0:_0x2d608d['status'])===_0xce0fe7[_0x520221(0x18a)]['ERROR']?_0x520221(0x1ef):_0x520221(0x133):_0x520221(0x108);return{..._0x4fe569,'status':_0x5d1093,'value':(_0x15d11b=_0x4fe569[_0x520221(0x163)])==null?void 0x0:_0x15d11b['v'],'valueType':((_0x17809d=_0x4fe569[_0x520221(0x163)])==null?void 0x0:_0x17809d['t'])??void 0x0};}function _0x303dbe(_0x803784,_0x1fc5b9){const _0x3e3704=_0x754d11;var _0x1b6c30,_0x5998d7,_0x4e5acb,_0x1fe96b;return _0x803784['text']===_0x1fc5b9[_0x3e3704(0x15c)]&&_0x803784['color']===_0x1fc5b9[_0x3e3704(0x21e)]&&_0x803784[_0x3e3704(0x13f)]===_0x1fc5b9[_0x3e3704(0x13f)]&&_0x803784[_0x3e3704(0x1ca)]===_0x1fc5b9[_0x3e3704(0x1ca)]&&_0x803784[_0x3e3704(0x182)]===_0x1fc5b9['stale']&&((_0x1b6c30=_0x803784[_0x3e3704(0x163)])==null?void 0x0:_0x1b6c30['t'])===((_0x5998d7=_0x1fc5b9[_0x3e3704(0x163)])==null?void 0x0:_0x5998d7['t'])&&Object['is']((_0x4e5acb=_0x803784[_0x3e3704(0x163)])==null?void 0x0:_0x4e5acb['v'],(_0x1fe96b=_0x1fc5b9[_0x3e3704(0x163)])==null?void 0x0:_0x1fe96b['v']);}let _0x4ce42c={'id':_0x754d11(0x1a4),'type':_0x3ad0ce[_0x754d11(0x131)][_0x754d11(0x194)],'handler':(_0x4e5d49,_0x246177)=>!(_0x246177!=null&&_0x246177['unitId'])||!_0x246177['rangeId']||!_0x246177['config']?!0x1:_0x4e5d49[_0x754d11(0x14f)](_0x46f2a0)[_0x754d11(0x16a)](_0x246177[_0x754d11(0x231)],_0x246177[_0x754d11(0x230)],_0x246177[_0x754d11(0x1bb)])},_0x27e5d8={'id':_0x754d11(0x1b4),'type':_0x3ad0ce['CommandType']['MUTATION'],'handler':(_0x3ad4a2,_0x51519b)=>!(_0x51519b!=null&&_0x51519b['unitId'])||!_0x51519b['rangeId']?!0x1:_0x3ad4a2['get'](_0x46f2a0)[_0x754d11(0x195)](_0x51519b[_0x754d11(0x231)],_0x51519b[_0x754d11(0x230)])},_0x3db73a={'id':_0x754d11(0x151),'type':_0x3ad0ce[_0x754d11(0x131)]['MUTATION'],'handler':(_0x13b6cf,_0x4a8377)=>!(_0x4a8377!=null&&_0x4a8377[_0x754d11(0x231)])||!_0x4a8377[_0x754d11(0x103)]?!0x1:_0x13b6cf[_0x754d11(0x14f)](_0x46f2a0)[_0x754d11(0x186)](_0x4a8377[_0x754d11(0x231)],_0x4a8377['resource'])},_0x3618d4={'id':_0x754d11(0x22b),'type':_0x3ad0ce[_0x754d11(0x131)][_0x754d11(0x194)],'handler':(_0x497f92,_0x4cc8ad)=>{const _0x1916ff=_0x754d11;if(!(_0x4cc8ad!=null&&_0x4cc8ad[_0x1916ff(0x231)])||!_0x4cc8ad[_0x1916ff(0x22f)][_0x1916ff(0x150)])return!0x1;let _0x140858=_0x497f92['get'](_0x46f2a0),_0x33b204=_0x497f92['get'](_0x27ed60['HostExternalReferenceModel']),_0x38ae7b=_0x140858[_0x1916ff(0x110)](_0x4cc8ad[_0x1916ff(0x231)]);if(!_0x38ae7b)return!0x1;let _0x1037d1=_0x3ad0ce[_0x1916ff(0x13c)][_0x1916ff(0x1dd)](_0x38ae7b),_0x38aba5=!0x1;for(let _0x2914a1 of _0x4cc8ad['updates']){var _0x2f3399,_0x6031bf,_0x5ed7ba,_0xe5d90c;let _0x16d2f5=_0x1037d1[_0x1916ff(0x162)][_0x2914a1[_0x1916ff(0x230)]];_0x16d2f5&&_0x16d2f5[_0x1916ff(0x16b)]===_0x2914a1[_0x1916ff(0x11c)]&&((_0x2f3399=_0x16d2f5[_0x1916ff(0x1ad)])==null?void 0x0:_0x2f3399[_0x1916ff(0x13f)])===_0x2914a1[_0x1916ff(0x13d)]&&_0x33b204[_0x1916ff(0x1b5)](_0x4cc8ad[_0x1916ff(0x231)])===_0x2914a1[_0x1916ff(0xf6)]&&(((_0x6031bf=_0x16d2f5['lastValue'])==null?void 0x0:_0x6031bf['v'])!==_0x2914a1[_0x1916ff(0x14e)]['v']||((_0x5ed7ba=_0x16d2f5[_0x1916ff(0x14e)])==null?void 0x0:_0x5ed7ba['t'])!==_0x2914a1[_0x1916ff(0x14e)]['t']||((_0xe5d90c=_0x16d2f5[_0x1916ff(0x14e)])==null?void 0x0:_0xe5d90c['pattern'])!==_0x2914a1['lastValue'][_0x1916ff(0x13f)])&&(_0x16d2f5[_0x1916ff(0x14e)]=_0x3ad0ce[_0x1916ff(0x13c)][_0x1916ff(0x1dd)](_0x2914a1[_0x1916ff(0x14e)]),_0x38aba5=!0x0);}return!_0x38aba5||_0x140858[_0x1916ff(0x186)](_0x4cc8ad[_0x1916ff(0x231)],_0x1037d1);}},_0x28c79d={'id':_0x754d11(0x226),'type':_0x3ad0ce['CommandType'][_0x754d11(0x22a)],'handler':(_0x2954bf,_0x549c21)=>{const _0x48480f=_0x754d11;if(!(_0x549c21!=null&&_0x549c21[_0x48480f(0x16b)]['trim']()))return!0x1;let _0x108b30=_0x2d9b2e(_0x2954bf,_0x549c21[_0x48480f(0x231)],'');if(!_0x108b30)return!0x1;let _0x5a5638=_0x1a44ab(_0x549c21['target'],_0x108b30[_0x48480f(0xf0)],_0x389dea(_0x2954bf,_0x108b30[_0x48480f(0x231)]));if(!_0x5a5638)return!0x1;let _0x125f81=_0x50ed22(_0x2954bf,_0x108b30[_0x48480f(0x231)],_0x549c21[_0x48480f(0x16b)],_0x549c21[_0x48480f(0x223)]??[]);if(!_0x125f81)return!0x1;let _0x315d2a=_0x3f76d3(_0x108b30[_0x48480f(0xf0)],_0x108b30[_0x48480f(0x1d6)],_0x108b30[_0x48480f(0x231)]),_0x25ac88=_0x2d32d3({'documentData':_0x108b30[_0x48480f(0x197)],'resource':_0x108b30[_0x48480f(0x103)],'rangeId':_0x315d2a,'config':{'formula':_0x549c21[_0x48480f(0x16b)],..._0x549c21[_0x48480f(0x1ad)]?{'numberFormat':_0x549c21[_0x48480f(0x1ad)]}:null},'startOffset':_0x5a5638[_0x48480f(0x170)],'endOffset':_0x5a5638[_0x48480f(0x13a)]});if(!_0x25ac88)return!0x1;let _0x439ed4=(0x0,_0x27ed60[_0x48480f(0x209)])(_0x2954bf,_0x108b30[_0x48480f(0x231)],_0x125f81);return!_0x439ed4||!_0x29c804({'accessor':_0x2954bf,'document':_0x108b30[_0x48480f(0x101)],'unitId':_0x108b30[_0x48480f(0x231)],'trigger':_0x28c79d['id'],'rangeId':_0x315d2a,'previousResource':_0x108b30[_0x48480f(0x103)],'nextResource':_0x25ac88[_0x48480f(0x1f5)],'previousDocumentData':_0x108b30[_0x48480f(0x197)],'nextDocumentData':_0x25ac88[_0x48480f(0x141)],'cursorOffset':_0x25ac88[_0x48480f(0x22d)],'externalMutations':_0x439ed4})?!0x1:{'rangeId':_0x315d2a,'startOffset':_0x25ac88[_0x48480f(0x22d)]-0x1,'endOffset':_0x25ac88['cursorOffset']};}},_0x4b3299={'id':_0x754d11(0x127),'type':_0x3ad0ce['CommandType'][_0x754d11(0x22a)],'handler':(_0x3cec8b,_0x198247)=>{const _0x1d4abc=_0x754d11;if(!(_0x198247!=null&&_0x198247[_0x1d4abc(0x230)])||!_0x198247['formula'][_0x1d4abc(0x1da)]())return!0x1;let _0x3423a4=_0x2d9b2e(_0x3cec8b,_0x198247[_0x1d4abc(0x231)],''),_0x5a39b6=_0x3423a4==null?void 0x0:_0x3423a4[_0x1d4abc(0x1d6)][_0x1d4abc(0x146)](_0x3423a4[_0x1d4abc(0x231)],_0x198247[_0x1d4abc(0x230)]),_0x346539=_0x3423a4?_0x4001d5(_0x3423a4['documentData'][_0x1d4abc(0xf0)],_0x198247[_0x1d4abc(0x230)]):void 0x0;if(!_0x3423a4||!_0x5a39b6||!_0x346539)return!0x1;let _0x55498a=_0x50ed22(_0x3cec8b,_0x3423a4[_0x1d4abc(0x231)],_0x198247[_0x1d4abc(0x16b)],_0x198247[_0x1d4abc(0x223)]??[]);if(!_0x55498a)return!0x1;let _0x96bae6=(0x0,_0x27ed60[_0x1d4abc(0x209)])(_0x3cec8b,_0x3423a4[_0x1d4abc(0x231)],_0x55498a);if(!_0x96bae6)return!0x1;let _0x5b4a15=_0x351b6a(_0x3423a4[_0x1d4abc(0x103)]);return _0x5b4a15['formulas'][_0x198247[_0x1d4abc(0x230)]]={'formula':_0x198247[_0x1d4abc(0x16b)],..._0x198247[_0x1d4abc(0x1ad)]?{'numberFormat':_0x198247[_0x1d4abc(0x1ad)]}:_0x5a39b6[_0x1d4abc(0x1ad)]?{'numberFormat':_0x5a39b6[_0x1d4abc(0x1ad)]}:null},_0x29c804({'accessor':_0x3cec8b,'document':_0x3423a4[_0x1d4abc(0x101)],'unitId':_0x3423a4['unitId'],'trigger':_0x4b3299['id'],'rangeId':_0x198247[_0x1d4abc(0x230)],'previousResource':_0x3423a4[_0x1d4abc(0x103)],'nextResource':_0x5b4a15,'cursorOffset':_0x346539[_0x1d4abc(0x220)]+0x1,'externalMutations':_0x96bae6});}},_0x1dcb18={'id':'docs-formula.command.set-number-format','type':_0x3ad0ce[_0x754d11(0x131)][_0x754d11(0x22a)],'handler':(_0x1cd37c,_0x3489ee)=>{const _0x1740bb=_0x754d11;if(!(_0x3489ee!=null&&_0x3489ee[_0x1740bb(0x230)]))return!0x1;let _0x296e56=_0x2d9b2e(_0x1cd37c,_0x3489ee['unitId'],''),_0x29f089=_0x296e56==null?void 0x0:_0x296e56['model'][_0x1740bb(0x146)](_0x296e56[_0x1740bb(0x231)],_0x3489ee[_0x1740bb(0x230)]),_0x20eeb0=_0x296e56?_0x4001d5(_0x296e56[_0x1740bb(0x197)]['body'],_0x3489ee[_0x1740bb(0x230)]):void 0x0;if(!_0x296e56||!_0x29f089||!_0x20eeb0)return!0x1;let _0x247caf=_0x351b6a(_0x296e56['resource']);return _0x247caf[_0x1740bb(0x162)][_0x3489ee[_0x1740bb(0x230)]]={..._0x29f089,..._0x3489ee[_0x1740bb(0x1ad)]?{'numberFormat':_0x3489ee['numberFormat']}:null},_0x3489ee[_0x1740bb(0x1ad)]||delete _0x247caf[_0x1740bb(0x162)][_0x3489ee[_0x1740bb(0x230)]][_0x1740bb(0x1ad)],_0x29c804({'accessor':_0x1cd37c,'document':_0x296e56[_0x1740bb(0x101)],'unitId':_0x296e56[_0x1740bb(0x231)],'trigger':_0x1dcb18['id'],'rangeId':_0x3489ee['rangeId'],'previousResource':_0x296e56['resource'],'nextResource':_0x247caf,'cursorOffset':_0x20eeb0[_0x1740bb(0x220)]+0x1,'externalMutations':{}});}},_0x4dc2c7={'id':_0x754d11(0x204),'type':_0x3ad0ce[_0x754d11(0x131)][_0x754d11(0x22a)],'handler':(_0x48eef,_0x12e089)=>_0x39afc0(_0x48eef,_0x12e089,'',_0x4dc2c7['id'])},_0x550e48={'id':'docs-formula.command.replace-with-text','type':_0x3ad0ce[_0x754d11(0x131)][_0x754d11(0x22a)],'handler':(_0x21f215,_0x22d66e)=>_0x39afc0(_0x21f215,_0x22d66e,(_0x22d66e==null?void 0x0:_0x22d66e[_0x754d11(0x15c)])??'',_0x550e48['id'])},_0x2d94b4={'id':_0x754d11(0x1de),'type':_0x3ad0ce['CommandType'][_0x754d11(0x22a)],'handler':(_0x47e984,_0x2d42de)=>{const _0x1fd46a=_0x754d11;if(!(_0x2d42de!=null&&_0x2d42de[_0x1fd46a(0x230)]))return!0x1;let _0x55f896=_0x2d9b2e(_0x47e984,_0x2d42de[_0x1fd46a(0x231)],'');if(!_0x55f896)return!0x1;let _0x38a3f1=_0x47e984[_0x1fd46a(0x14f)](_0x20a44b)[_0x1fd46a(0x1c2)]({'unitId':_0x55f896[_0x1fd46a(0x231)],'rangeId':_0x2d42de['rangeId']});return _0x38a3f1?_0x39afc0(_0x47e984,_0x2d42de,_0x38a3f1['text'],_0x2d94b4['id']):!0x1;}};function _0x39afc0(_0x45668c,_0x4f0366,_0x54e2f3,_0x2846f2){const _0x4633e1=_0x754d11;if(!(_0x4f0366!=null&&_0x4f0366['rangeId']))return!0x1;let _0x3973f6=_0x2d9b2e(_0x45668c,_0x4f0366[_0x4633e1(0x231)],'');if(!_0x3973f6)return!0x1;let _0x4123c2=_0x2dc10f({'documentData':_0x3973f6[_0x4633e1(0x197)],'resource':_0x3973f6[_0x4633e1(0x103)],'rangeId':_0x4f0366['rangeId'],'text':_0x54e2f3});return _0x4123c2?_0x29c804({'accessor':_0x45668c,'document':_0x3973f6[_0x4633e1(0x101)],'unitId':_0x3973f6[_0x4633e1(0x231)],'trigger':_0x2846f2,'rangeId':_0x4f0366[_0x4633e1(0x230)],'previousResource':_0x3973f6['resource'],'nextResource':_0x4123c2[_0x4633e1(0x1f5)],'previousDocumentData':_0x3973f6['documentData'],'nextDocumentData':_0x4123c2[_0x4633e1(0x141)],'cursorOffset':_0x4123c2[_0x4633e1(0x22d)],'externalMutations':{}}):!0x1;}function _0x2d9b2e(_0x2e9101,_0x31412b,_0x188841){const _0x101596=_0x754d11;if(_0x188841)return null;let _0x50c99e=_0x2e9101['get'](_0x3ad0ce['IUniverInstanceService']),_0x128cb5=(_0x31412b?_0x50c99e[_0x101596(0xfe)](_0x31412b,_0x3ad0ce[_0x101596(0x1c6)][_0x101596(0x10b)]):_0x50c99e[_0x101596(0x109)](_0x3ad0ce[_0x101596(0x1c6)][_0x101596(0x10b)]))??null;if(!_0x128cb5)return null;let _0x4bb9b2=_0x128cb5[_0x101596(0x21d)](),_0x12d1b8=_0x4bb9b2[_0x101596(0xf0)];if(_0x4bb9b2['disabled']||!_0x12d1b8)return null;let _0x6e85e5=_0x2e9101['get'](_0x46f2a0);return _0x6e85e5['getLoadError'](_0x128cb5[_0x101596(0x1a8)]())?null:{'document':_0x128cb5,'body':_0x12d1b8,'documentData':_0x4bb9b2,'model':_0x6e85e5,'resource':_0x6e85e5['getResource'](_0x128cb5['getUnitId']())??_0x2dd373(),'unitId':_0x128cb5[_0x101596(0x1a8)]()};}function _0x389dea(_0x21ca58,_0x47c9dd){const _0x255baa=_0x754d11;var _0x42e707;return(_0x42e707=_0x21ca58[_0x255baa(0x14f)](_0xe8b14d[_0x255baa(0xf9)])[_0x255baa(0x1a0)]({'subUnitId':_0x47c9dd,'unitId':_0x47c9dd}))==null?void 0x0:_0x42e707[0x0];}function _0x1a44ab(_0x244c61,_0x32069f,_0x1de56e){const _0x4842d1=_0x754d11;if((_0x244c61==null?void 0x0:_0x244c61[_0x4842d1(0x121)])===_0x4842d1(0x1ed)){var _0x459c82;let _0x10baf0=((_0x459c82=_0x32069f[_0x4842d1(0x1c8)])==null?void 0x0:_0x459c82[_0x4842d1(0x137)](_0x5ebbcf=>_0x5ebbcf[_0x4842d1(0x11a)]===_0x244c61[_0x4842d1(0x11a)]))??[];if(_0x10baf0[_0x4842d1(0x150)]!==0x1)return null;let _0x56463d=_0x10baf0[0x0],_0x273f4d=(0x0,_0x3ad0ce[_0x4842d1(0x17e)])(_0x32069f,_0x56463d),_0x5eb229=_0x56463d['startIndex']-_0x273f4d,_0x24aba5=_0x244c61[_0x4842d1(0x19b)]==='end'?_0x5eb229:_0x244c61[_0x4842d1(0x19b)];if(!Number[_0x4842d1(0x14d)](_0x24aba5)||_0x24aba5<0x0||_0x24aba5>_0x5eb229)return null;let _0x5cb94d=_0x273f4d+_0x24aba5;return{'startOffset':_0x5cb94d,'endOffset':_0x5cb94d};}if((_0x244c61==null?void 0x0:_0x244c61[_0x4842d1(0x121)])===_0x4842d1(0x1f4))return!Number['isInteger'](_0x244c61[_0x4842d1(0x170)])||!Number[_0x4842d1(0x14d)](_0x244c61[_0x4842d1(0x13a)])?null:{'startOffset':Math[_0x4842d1(0x1b6)](_0x244c61[_0x4842d1(0x170)],_0x244c61[_0x4842d1(0x13a)]),'endOffset':Math['max'](_0x244c61[_0x4842d1(0x170)],_0x244c61[_0x4842d1(0x13a)])};let _0x54d2d5=(_0x244c61==null?void 0x0:_0x244c61['type'])===_0x4842d1(0x175)?_0x244c61[_0x4842d1(0x175)]:_0x1de56e;return!_0x54d2d5||_0x54d2d5['segmentId']?null:{'startOffset':Math[_0x4842d1(0x1b6)](_0x54d2d5[_0x4842d1(0x170)],_0x54d2d5['endOffset']),'endOffset':Math[_0x4842d1(0x161)](_0x54d2d5[_0x4842d1(0x170)],_0x54d2d5[_0x4842d1(0x13a)])};}function _0x50ed22(_0x4f82ff,_0x72358e,_0x4a6c41,_0xce4142){const _0x5a7c85=_0x754d11;let _0x3880e3=_0x4f82ff['get'](_0xce0fe7[_0x5a7c85(0x13e)]),_0x499abd=_0x4a6c41[_0x5a7c85(0x199)]('=')?_0x4a6c41[_0x5a7c85(0x168)](0x1):_0x4a6c41,_0x186955=_0x3880e3[_0x5a7c85(0x183)](_0x499abd);if(!_0x186955)return null;let _0x5e997e=_0x4f82ff[_0x5a7c85(0x14f)](_0x27ed60[_0x5a7c85(0x160)]),_0x1c37fb=(0x0,_0x27ed60[_0x5a7c85(0x225)])({'qualifiers':(0x0,_0x27ed60['collectFormulaExternalReferenceQualifiers'])(_0x186955),'explicitReferences':_0xce4142??[],'resolveBinding':_0x4bbcbf=>_0x5e997e[_0x5a7c85(0x17f)](_0x72358e,_0x4bbcbf)});return _0x1c37fb['status']===_0x5a7c85(0x1a2)?_0x1c37fb['references']:null;}function _0x3f76d3(_0x25d031,_0x32241e,_0x3bdd9a){const _0x32cc65=_0x754d11;var _0x416109;let _0x175ed3=(0x0,_0x3ad0ce[_0x32cc65(0x1e8)])(0x6);for(;_0x25d031!=null&&(_0x416109=_0x25d031['customRanges'])!=null&&_0x416109[_0x32cc65(0x18b)](_0x5b5768=>_0x5b5768['rangeId']===_0x175ed3)||_0x32241e['getFormula'](_0x3bdd9a,_0x175ed3);)_0x175ed3=(0x0,_0x3ad0ce['generateRandomId'])(0x6);return _0x175ed3;}function _0x2d32d3(_0x2a78fb){try{return _0x2a913d(_0x2a78fb);}catch(_0x1d1088){if(_0x1d1088 instanceof _0x471f6f)return null;throw _0x1d1088;}}function _0x1c6031(_0xf5b57b){const _0x32c432=_0x754d11;let _0x2df47a=_0xf5b57b['previousDocumentData']&&_0xf5b57b[_0x32c432(0x141)]?_0x1009a5(_0xf5b57b[_0x32c432(0x101)],_0xf5b57b[_0x32c432(0x231)],_0xf5b57b[_0x32c432(0x140)],_0xf5b57b[_0x32c432(0x141)],_0xf5b57b['cursorOffset'],_0xf5b57b['trigger']):null;return _0xf5b57b[_0x32c432(0x140)]&&_0xf5b57b[_0x32c432(0x141)]&&!_0x2df47a?null:{'documentRedo':_0x2df47a,'resourceRedo':{'id':_0x3db73a['id'],'params':{'unitId':_0xf5b57b[_0x32c432(0x231)],'resource':_0xf5b57b['nextResource']}},'resourceUndo':{'id':_0x3db73a['id'],'params':{'unitId':_0xf5b57b['unitId'],'resource':_0xf5b57b[_0x32c432(0x213)]}}};}function _0x52b8f4(_0x8390b1,_0x5b9c94,_0x153d6a,_0x4b2c12){const _0x56069b=_0x754d11;_0x4b2c12['pushUndoRedo']({'id':_0x8390b1[_0x56069b(0x1ac)]+':'+_0x8390b1[_0x56069b(0x230)],'unitID':_0x8390b1[_0x56069b(0x231)],'redoMutations':[..._0x8390b1[_0x56069b(0x10c)][_0x56069b(0x174)]?[_0x8390b1[_0x56069b(0x10c)]['redoMutation']]:[],..._0x5b9c94['documentRedo']?[_0x5b9c94[_0x56069b(0x1c9)]]:[],_0x5b9c94[_0x56069b(0x124)]],'undoMutations':[_0x5b9c94['resourceUndo'],..._0x153d6a?[_0x153d6a]:[],..._0x8390b1[_0x56069b(0x10c)][_0x56069b(0x14b)]?[_0x8390b1[_0x56069b(0x10c)][_0x56069b(0x14b)]]:[]]});}function _0x29c804(_0x133e2f){const _0xf2d4c6=_0x754d11;let _0x347101=_0x133e2f[_0xf2d4c6(0x1ec)][_0xf2d4c6(0x14f)](_0x3ad0ce[_0xf2d4c6(0x157)]),_0x5813bb=_0x133e2f['accessor']['get'](_0x3ad0ce['IUndoRedoService']),_0x109fc5=_0x133e2f[_0xf2d4c6(0x1ec)][_0xf2d4c6(0x14f)](_0xe8b14d['DocSelectionManagerService']),_0x48d899=_0x1c6031(_0x133e2f);if(!_0x48d899)return!0x1;let _0x52c9bb=!0x1,_0x1d4a6d=null,_0x577a5a=!0x1;try{if(_0x133e2f[_0xf2d4c6(0x10c)][_0xf2d4c6(0x174)]){if(!_0x347101[_0xf2d4c6(0x1d9)](_0x133e2f['externalMutations'][_0xf2d4c6(0x174)]['id'],_0x133e2f[_0xf2d4c6(0x10c)][_0xf2d4c6(0x174)][_0xf2d4c6(0x21b)]))return!0x1;_0x52c9bb=!0x0;}if(_0x48d899[_0xf2d4c6(0x1c9)]){let _0x1f9d48=_0x347101['syncExecuteCommand'](_0x48d899[_0xf2d4c6(0x1c9)]['id'],_0x48d899[_0xf2d4c6(0x1c9)][_0xf2d4c6(0x21b)]);if(!_0x1f9d48)return _0x22a54f(_0x347101,_0x133e2f[_0xf2d4c6(0x10c)],_0x52c9bb),!0x1;_0x1d4a6d={'id':_0xe8b14d['RichTextEditingMutation']['id'],'params':{..._0x1f9d48,'noHistory':!0x0,'noNeedSetTextRange':!0x0,'segmentId':''}};}if(!_0x347101[_0xf2d4c6(0x1d9)](_0x48d899[_0xf2d4c6(0x124)]['id'],_0x48d899['resourceRedo'][_0xf2d4c6(0x21b)]))return _0x58b000(_0x347101,_0x1d4a6d),_0x22a54f(_0x347101,_0x133e2f[_0xf2d4c6(0x10c)],_0x52c9bb),!0x1;_0x577a5a=!0x0,_0x52b8f4(_0x133e2f,_0x48d899,_0x1d4a6d,_0x5813bb);}catch(_0x394eee){throw _0x577a5a&&_0x347101['syncExecuteCommand'](_0x48d899[_0xf2d4c6(0x1ba)]['id'],_0x48d899[_0xf2d4c6(0x1ba)][_0xf2d4c6(0x21b)]),_0x58b000(_0x347101,_0x1d4a6d),_0x22a54f(_0x347101,_0x133e2f[_0xf2d4c6(0x10c)],_0x52c9bb),_0x394eee;}return _0x109fc5[_0xf2d4c6(0x222)]([{'startOffset':_0x133e2f[_0xf2d4c6(0x22d)],'endOffset':_0x133e2f[_0xf2d4c6(0x22d)],'segmentId':''}],{'unitId':_0x133e2f[_0xf2d4c6(0x231)],'subUnitId':_0x133e2f[_0xf2d4c6(0x231)]},!0x1,{[_0xe8b14d[_0xf2d4c6(0x218)]]:!0x0}),!0x0;}function _0x1009a5(_0x2d4e0e,_0x1954f4,_0x4096a2,_0x122355,_0x537de5,_0xb5539b){const _0x56ca0c=_0x754d11;let _0x327b2e=_0x15be00(_0x4096a2,_0x122355,(0x0,_0x3ad0ce[_0x56ca0c(0x1dc)])(_0x2d4e0e,''));return _0x327b2e?{'id':_0xe8b14d[_0x56ca0c(0x154)]['id'],'params':{'unitId':_0x1954f4,'actions':_0x327b2e,'segmentId':'','textRanges':[{'startOffset':_0x537de5,'endOffset':_0x537de5,'collapsed':!0x0,'segmentId':''}],'isEditing':!0x1,'noHistory':!0x0,'noNeedSetTextRange':!0x0,'trigger':_0xb5539b}}:null;}function _0x58b000(_0x27ab4a,_0x2db17f){const _0x306d2d=_0x754d11;_0x2db17f&&_0x27ab4a[_0x306d2d(0x1d9)](_0x2db17f['id'],_0x2db17f['params']);}function _0x22a54f(_0x36ee23,_0x14699c,_0x14b729){const _0x64e1d=_0x754d11;_0x14b729&&_0x14699c[_0x64e1d(0x14b)]&&_0x36ee23['syncExecuteCommand'](_0x14699c[_0x64e1d(0x14b)]['id'],_0x14699c[_0x64e1d(0x14b)][_0x64e1d(0x21b)]);}function _0x15be00(_0x25e4ed,_0x477bd6,_0x23c625){const _0x240c3b=_0x754d11;let _0x5b96e2=_0x25e4ed['body'],_0x3552dd=_0x477bd6[_0x240c3b(0xf0)],_0x27b687=_0x3882f8(_0x5b96e2==null?void 0x0:_0x5b96e2[_0x240c3b(0x14c)],_0x3552dd==null?void 0x0:_0x3552dd['dataStream']);if(!_0x27b687||!_0x3552dd)return null;let _0x311787=new _0x3ad0ce[(_0x240c3b(0x147))]();return _0x311787[_0x240c3b(0x1e6)](_0x27b687[_0x240c3b(0x132)]),_0x27b687[_0x240c3b(0x1d8)]>0x0&&_0x311787[_0x240c3b(0x1fe)](_0x27b687[_0x240c3b(0x1d8)],(0x0,_0x3ad0ce[_0x240c3b(0x227)])(_0x3552dd,_0x27b687[_0x240c3b(0x132)],_0x27b687[_0x240c3b(0x132)]+_0x27b687[_0x240c3b(0x1d8)],!0x1)),_0x27b687['deleteLength']>0x0&&_0x311787['delete'](_0x27b687[_0x240c3b(0x236)]),_0x3ad0ce[_0x240c3b(0x20c)]['getInstance']()['editOp'](_0x311787[_0x240c3b(0x16f)](),_0x23c625);}function _0x3882f8(_0x15dc3d,_0x41e617){const _0x6f7345=_0x754d11;if(_0x15dc3d==null||_0x41e617==null||_0x15dc3d===_0x41e617)return null;let _0x519cdb=0x0;for(;_0x519cdb<_0x15dc3d['length']&&_0x519cdb<_0x41e617[_0x6f7345(0x150)]&&_0x15dc3d[_0x519cdb]===_0x41e617[_0x519cdb];)_0x519cdb+=0x1;let _0x14cf01=_0x15dc3d[_0x6f7345(0x150)],_0x40279f=_0x41e617['length'];for(;_0x14cf01>_0x519cdb&&_0x40279f>_0x519cdb&&_0x15dc3d[_0x14cf01-0x1]===_0x41e617[_0x40279f-0x1];)--_0x14cf01,--_0x40279f;return{'start':_0x519cdb,'deleteLength':_0x14cf01-_0x519cdb,'insertLength':_0x40279f-_0x519cdb};}function _0x351b6a(_0x209262){const _0x3cb2e1=_0x754d11;return{'schemaVersion':0x1,'formulas':Object[_0x3cb2e1(0x217)](Object[_0x3cb2e1(0x1e0)](_0x209262[_0x3cb2e1(0x162)])[_0x3cb2e1(0x184)](([_0x3edd32,_0x161817])=>[_0x3edd32,{..._0x161817,..._0x161817[_0x3cb2e1(0x1ad)]?{'numberFormat':{..._0x161817[_0x3cb2e1(0x1ad)]}}:null,..._0x161817[_0x3cb2e1(0x14e)]?{'lastValue':{..._0x161817[_0x3cb2e1(0x14e)]}}:null}]))};}let _0x841e44=class extends _0x3ad0ce['Disposable']{constructor(_0x4d86c7,_0xf9631d,_0x5ab3da,_0x24197d){const _0x245293=_0x754d11;super(),this['_instanceService']=_0x4d86c7,this['_commandService']=_0xf9631d,this[_0x245293(0x119)]=_0x5ab3da,this[_0x245293(0x177)]=_0x24197d,_0x4fce06(this,_0x245293(0x138),new Set()),_0x4fce06(this,'_syncScheduled',!0x1),_0x4fce06(this,_0x245293(0x190),!0x1),this[_0x245293(0x1e1)][_0x245293(0x15b)](_0x3ad0ce[_0x245293(0x1c6)][_0x245293(0x10b)])[_0x245293(0x19d)](_0xb9ed08=>this[_0x245293(0x177)][_0x245293(0x134)](_0xb9ed08)),this[_0x245293(0x1aa)](this[_0x245293(0x119)][_0x245293(0x1fb)][_0x245293(0x20d)](({unitId:_0x458cc5})=>this['_syncUnit'](_0x458cc5))),this['disposeWithMe'](this[_0x245293(0x1e1)][_0x245293(0x126)][_0x245293(0x20d)](({unit:_0x1aeb39})=>{const _0x9f0498=_0x245293;_0x1aeb39[_0x9f0498(0x121)]===_0x3ad0ce[_0x9f0498(0x1c6)][_0x9f0498(0x10b)]&&this[_0x9f0498(0x1a1)](_0x1aeb39[_0x9f0498(0x1a8)]());})),this[_0x245293(0x1aa)](this['_instanceService'][_0x245293(0x16e)][_0x245293(0x20d)](_0x19154b=>{const _0x1771b7=_0x245293;this[_0x1771b7(0x177)][_0x1771b7(0x1a9)](_0x19154b[_0x1771b7(0x1a8)]());})),this[_0x245293(0x1aa)](this['_commandService'][_0x245293(0x232)](_0x1a6b62=>{const _0x5b7ad1=_0x245293;if(_0x1a6b62['id']===_0xe8b14d[_0x5b7ad1(0x154)]['id']&&_0x491e33(_0x1a6b62['params'])){let _0x1b5ae5=_0x1a6b62['params'];_0x1b5ae5[_0x5b7ad1(0x234)]||this[_0x5b7ad1(0x20e)](_0x1b5ae5[_0x5b7ad1(0x231)]);}}));}['dispose'](){const _0x27ea91=_0x754d11;this[_0x27ea91(0x190)]=!0x0,super[_0x27ea91(0x202)]();}[_0x754d11(0x1a1)](_0x367a6a){const _0x2663ba=_0x754d11;this['_pendingUnitIds'][_0x2663ba(0x1d7)](_0x367a6a),!this[_0x2663ba(0x12c)]&&(this[_0x2663ba(0x12c)]=!0x0,queueMicrotask(()=>{const _0x4d08c2=_0x2663ba;if(this['_syncScheduled']=!0x1,this[_0x4d08c2(0x190)])return;let _0x4f3ef2=Array['from'](this[_0x4d08c2(0x138)]);this['_pendingUnitIds']['clear'](),_0x4f3ef2[_0x4d08c2(0x19d)](_0x5cd954=>this[_0x4d08c2(0x20e)](_0x5cd954));}));}[_0x754d11(0x20e)](_0x3895a2){const _0x49bf5b=_0x754d11;let _0x5aaccf=this[_0x49bf5b(0x1e1)][_0x49bf5b(0xfe)](_0x3895a2,_0x3ad0ce['UniverInstanceType'][_0x49bf5b(0x10b)]);_0x5aaccf&&this[_0x49bf5b(0x177)][_0x49bf5b(0x134)](_0x5aaccf);}};_0x841e44=_0x2f1059([_0x54abe0(0x0,_0x3ad0ce['IUniverInstanceService']),_0x54abe0(0x1,_0x3ad0ce['ICommandService']),_0x54abe0(0x2,(0x0,_0x3ad0ce[_0x754d11(0x104)])(_0x46f2a0)),_0x54abe0(0x3,(0x0,_0x3ad0ce[_0x754d11(0x104)])(_0x20a44b))],_0x841e44);function _0x491e33(_0xc8a81d){const _0x1ae096=_0x754d11;return typeof _0xc8a81d==_0x1ae096(0x1d5)&&!!_0xc8a81d&&_0x1ae096(0x231)in _0xc8a81d&&typeof _0xc8a81d[_0x1ae096(0x231)]=='string'&&(!(_0x1ae096(0x234)in _0xc8a81d)||_0xc8a81d['segmentId']===void 0x0||typeof _0xc8a81d[_0x1ae096(0x234)]==_0x1ae096(0x188));}let _0x573977=class extends _0x3ad0ce['Disposable']{constructor(_0x249b5e,_0x14f0c0){const _0x47a6f5=_0x754d11;super(),this[_0x47a6f5(0x10d)]=_0x249b5e,this[_0x47a6f5(0x1ae)]=_0x14f0c0,this[_0x47a6f5(0x1aa)](this[_0x47a6f5(0x10d)][_0x47a6f5(0x1e7)]({'pluginName':_0x959d06,'businesses':[_0x3ad0ce[_0x47a6f5(0x1c6)]['UNIVER_DOC']],'toJson':_0x5a555f=>JSON['stringify'](this[_0x47a6f5(0x1ae)][_0x47a6f5(0x16f)](_0x5a555f)),'parseJson':_0x234777=>JSON[_0x47a6f5(0x235)](_0x234777),'onLoad':(_0x1d3818,_0x540e98)=>{const _0x5b14db=_0x47a6f5;this[_0x5b14db(0x1ae)][_0x5b14db(0x206)](_0x1d3818,_0x540e98);},'onUnLoad':_0x245adb=>this[_0x47a6f5(0x1ae)]['removeUnit'](_0x245adb)}));}};_0x573977=_0x2f1059([_0x54abe0(0x0,_0x3ad0ce[_0x754d11(0x18c)]),_0x54abe0(0x1,(0x0,_0x3ad0ce['Inject'])(_0x46f2a0))],_0x573977);var _0x13460d=_0x754d11(0x1a5),_0x18c596='1.0.1';let _0x2f8a9f={},_0x4ec3b4=class extends _0x3ad0ce[_0x754d11(0xf3)]{constructor(_0x1c261d,_0x4d3cd9,_0x62211){const _0x56e074=_0x754d11;super(),this[_0x56e074(0x159)]=_0x1c261d,this[_0x56e074(0x15f)]=_0x4d3cd9,this[_0x56e074(0x1aa)](_0x62211[_0x56e074(0xf2)]({'resolve':(_0x31a957,_0xc75f20)=>{const _0x47352f=_0x56e074;var _0x8d0ea;return((_0x8d0ea=_0xc75f20[_0x47352f(0x1b7)])==null?void 0x0:_0x8d0ea[_0x47352f(0x137)](_0x2ea921)[_0x47352f(0x184)](_0x135f0d=>({'startOffset':_0x135f0d[_0x47352f(0xfa)],'endOffset':_0x135f0d[_0x47352f(0x220)]+0x1,'text':this['resolveFormula'](_0x31a957,_0x135f0d['rangeId'])})))??[];}})),this['disposeWithMe'](this['_formulaService'][_0x56e074(0x1cc)][_0x56e074(0x20d)](({unitId:_0x50cf57})=>{const _0x2a19df=_0x56e074;_0x62211[_0x2a19df(0x148)](_0x50cf57);}));}[_0x754d11(0x219)](_0xa2ef8c,_0x5596bd){const _0x3b1e18=_0x754d11;var _0x4a6180;return((_0x4a6180=this[_0x3b1e18(0x15f)]['getResult']({'unitId':_0xa2ef8c,'rangeId':_0x5596bd}))==null?void 0x0:_0x4a6180['text'])??'';}[_0x754d11(0x1a6)](_0x183fca,_0xcb27ff,_0x12d903){const _0x588186=_0x754d11;var _0x49106d;let _0x63cbbf=this[_0x588186(0x159)]['getUnit'](_0x183fca,_0x3ad0ce[_0x588186(0x1c6)][_0x588186(0x10b)]),_0x102652=_0x63cbbf==null?void 0x0:_0x63cbbf[_0x588186(0x135)]();if(!_0x102652)return'';let _0xa1b1e6=_0x102652[_0x588186(0x14c)][_0x588186(0x168)](_0xcb27ff,_0x12d903),_0x2ed59d=((_0x49106d=_0x102652[_0x588186(0x1b7)])==null?void 0x0:_0x49106d[_0x588186(0x137)](_0x5395fe=>_0x2ea921(_0x5395fe)&&_0x5395fe[_0x588186(0xfa)]>=_0xcb27ff&&_0x5395fe[_0x588186(0x220)]<_0x12d903)[_0x588186(0x1f1)]((_0xddbc5e,_0x564ef4)=>_0x564ef4[_0x588186(0xfa)]-_0xddbc5e[_0x588186(0xfa)]))??[];for(let _0x58b48f of _0x2ed59d){let _0x32d438=_0x58b48f[_0x588186(0xfa)]-_0xcb27ff,_0x496171=_0x58b48f['endIndex']-_0xcb27ff+0x1;_0xa1b1e6=''+_0xa1b1e6[_0x588186(0x168)](0x0,_0x32d438)+this[_0x588186(0x219)](_0x183fca,_0x58b48f[_0x588186(0x230)])+_0xa1b1e6[_0x588186(0x168)](_0x496171);}return _0xa1b1e6;}[_0x754d11(0xf8)](_0x16f311){return _0xca32cb(_0x16f311);}['degradeBody'](_0x339a9a,_0x5ae85d,_0x4386a8={}){const _0xdd25a1=_0x754d11;var _0x4af93d;return _0x1fb233({'id':_0x339a9a,'body':_0x5ae85d,'documentStyle':{}},(((_0x4af93d=_0x5ae85d[_0xdd25a1(0x1b7)])==null?void 0x0:_0x4af93d[_0xdd25a1(0x137)](_0x2ea921))??[])[_0xdd25a1(0x184)](_0x2ea464=>({'rangeId':_0x2ea464['rangeId'],'text':_0x4386a8[_0x2ea464[_0xdd25a1(0x230)]]??this['resolveFormula'](_0x339a9a,_0x2ea464[_0xdd25a1(0x230)])})))[_0xdd25a1(0xf0)]??{'dataStream':''};}};_0x4ec3b4=_0x2f1059([_0x54abe0(0x0,_0x3ad0ce[_0x754d11(0x1c1)]),_0x54abe0(0x1,(0x0,_0x3ad0ce[_0x754d11(0x104)])(_0x20a44b)),_0x54abe0(0x2,(0x0,_0x3ad0ce[_0x754d11(0x104)])(_0xe8b14d[_0x754d11(0x12d)]))],_0x4ec3b4);function _0xca32cb(_0x3c3bfe){const _0x3717b2=_0x754d11;var _0x263dd6,_0xa7b13f;let _0xc36412=_0x2a46e4(_0x3c3bfe),_0x3364ad=_0x1fb233(_0x3c3bfe,(((_0x263dd6=_0x3c3bfe[_0x3717b2(0xf0)])==null||(_0x263dd6=_0x263dd6[_0x3717b2(0x1b7)])==null?void 0x0:_0x263dd6['filter'](_0x2ea921))??[])[_0x3717b2(0x184)](_0x22b012=>({'rangeId':_0x22b012[_0x3717b2(0x230)],'text':_0x345a78(_0xc36412==null?void 0x0:_0xc36412[_0x3717b2(0x162)][_0x22b012['rangeId']])})));return _0x3364ad[_0x3717b2(0x120)]=(_0xa7b13f=_0x3364ad['resources'])==null?void 0x0:_0xa7b13f[_0x3717b2(0x137)](_0x311036=>_0x311036[_0x3717b2(0x117)]!==_0x959d06),_0x3364ad;}function _0x2a46e4(_0x24ea26){const _0x48a5ce=_0x754d11;var _0x516a03;let _0x13486b=(_0x516a03=_0x24ea26['resources'])==null||(_0x516a03=_0x516a03[_0x48a5ce(0x1d3)](_0x6bf995=>_0x6bf995[_0x48a5ce(0x117)]===_0x48a5ce(0x179)))==null?void 0x0:_0x516a03[_0x48a5ce(0x1b3)];if(_0x13486b)try{let _0x4fe22e=JSON[_0x48a5ce(0x235)](_0x13486b);return _0x1b1cdf(_0x4fe22e)?_0x4fe22e:void 0x0;}catch{return;}}function _0x345a78(_0x29d5a7){const _0x250bf0=_0x754d11;return _0x29d5a7?(0x0,_0x27ed60[_0x250bf0(0x1d1)])({'lastValue':_0x29d5a7[_0x250bf0(0x14e)],'numberFormat':_0x29d5a7[_0x250bf0(0x1ad)]})[_0x250bf0(0x15c)]:'';}let _0x5a43fc=class extends _0x3ad0ce[_0x754d11(0xf3)]{constructor(_0x51d196,_0x2ad542,_0x56b65c){const _0x3248fa=_0x754d11;super(),this[_0x3248fa(0x15f)]=_0x51d196,this['_cacheEligibilityService']=_0x2ad542,this[_0x3248fa(0x1aa)](_0x56b65c[_0x3248fa(0x107)](this));}[_0x754d11(0x15d)](_0x23b40a){const _0x3498ae=_0x754d11;let _0x4d75d1=new Map();for(let _0x2aee38 of this[_0x3498ae(0x15f)][_0x3498ae(0x1e5)]()){var _0x2018d2;if(!this[_0x3498ae(0x14a)][_0x3498ae(0x1f3)](_0x2aee38[_0x3498ae(0x1bb)][_0x3498ae(0x16b)],_0x2aee38[_0x3498ae(0x205)])[_0x3498ae(0x216)])continue;let _0x584b18=(0x0,_0x27ed60[_0x3498ae(0x21c)])(_0x2aee38['liveResult']),_0x265f04=_0x584b18?(0x0,_0x27ed60[_0x3498ae(0x214)])(_0x584b18):null;if(!_0x265f04||_0x18ab00(_0x2aee38[_0x3498ae(0x1bb)][_0x3498ae(0x14e)],_0x265f04))continue;let _0xaf8a05=_0x4d75d1[_0x3498ae(0x14f)](_0x2aee38[_0x3498ae(0x1b0)][_0x3498ae(0x231)])??[];_0xaf8a05['push']({'rangeId':_0x2aee38[_0x3498ae(0x1b0)][_0x3498ae(0x230)],'expectedFormula':_0x2aee38[_0x3498ae(0x1bb)][_0x3498ae(0x16b)],'expectedNumberFormat':(_0x2018d2=_0x2aee38[_0x3498ae(0x1bb)][_0x3498ae(0x1ad)])==null?void 0x0:_0x2018d2[_0x3498ae(0x13f)],'expectedReferenceRevision':_0x2aee38[_0x3498ae(0x1fd)],'lastValue':_0x265f04}),_0x4d75d1[_0x3498ae(0x1ea)](_0x2aee38[_0x3498ae(0x1b0)]['unitId'],_0xaf8a05);}return Array['from'](_0x4d75d1,([_0x118459,_0x298a92])=>({'id':_0x3618d4['id'],'params':{'unitId':_0x118459,'updates':_0x298a92}}));}};_0x5a43fc=_0x2f1059([_0x54abe0(0x0,(0x0,_0x3ad0ce[_0x754d11(0x104)])(_0x20a44b)),_0x54abe0(0x1,(0x0,_0x3ad0ce[_0x754d11(0x104)])(_0x27ed60[_0x754d11(0x165)])),_0x54abe0(0x2,(0x0,_0x3ad0ce[_0x754d11(0x104)])(_0x27ed60[_0x754d11(0x122)]))],_0x5a43fc);function _0x18ab00(_0x19b2d0,_0xca958f){const _0x5cba05=_0x754d11;return(_0x19b2d0==null?void 0x0:_0x19b2d0['v'])===_0xca958f['v']&&(_0x19b2d0==null?void 0x0:_0x19b2d0['t'])===_0xca958f['t']&&(_0x19b2d0==null?void 0x0:_0x19b2d0[_0x5cba05(0x13f)])===_0xca958f[_0x5cba05(0x13f)];}let _0x429a18=class extends _0x3ad0ce[_0x754d11(0x1b2)]{constructor(_0x180da7=_0x2f8a9f,_0x3aa989,_0x3ea98d,_0x2650f8){const _0x3a1860=_0x754d11;super(),this[_0x3a1860(0x171)]=_0x180da7,this[_0x3a1860(0x156)]=_0x3aa989,this[_0x3a1860(0x1bf)]=_0x3ea98d,this['_configService']=_0x2650f8;let {..._0x4c8beb}=(0x0,_0x3ad0ce[_0x3a1860(0x18d)])({},_0x2f8a9f,this[_0x3a1860(0x171)]);this[_0x3a1860(0x10a)][_0x3a1860(0x1f7)](_0x3a1860(0x1fc),_0x4c8beb);}[_0x754d11(0x208)](){const _0x3bea5a=_0x754d11;this[_0x3bea5a(0x156)][_0x3bea5a(0x1d7)]([_0x46f2a0]),this[_0x3bea5a(0x156)][_0x3bea5a(0x1d7)]([_0x20a44b]),this[_0x3bea5a(0x156)][_0x3bea5a(0x1d7)]([_0x573977]),this['_injector'][_0x3bea5a(0x1d7)]([_0x841e44]),this[_0x3bea5a(0x156)]['add']([_0x5a43fc]),this[_0x3bea5a(0x156)][_0x3bea5a(0x1d7)]([_0x4ec3b4]),(0x0,_0x3ad0ce[_0x3bea5a(0x19c)])(this[_0x3bea5a(0x156)],[[_0x46f2a0],[_0x573977],[_0x841e44],[_0x5a43fc],[_0x4ec3b4]]),[_0x4ce42c,_0x27e5d8,_0x3db73a,_0x3618d4,_0x28c79d,_0x4b3299,_0x1dcb18,_0x4dc2c7,_0x550e48,_0x2d94b4]['forEach'](_0x3e2899=>this[_0x3bea5a(0x1aa)](this['_commandService'][_0x3bea5a(0x22c)](_0x3e2899)));}};_0x4fce06(_0x429a18,'pluginName',_0x959d06),_0x4fce06(_0x429a18,'packageName',_0x13460d),_0x4fce06(_0x429a18,_0x754d11(0x1c0),_0x18c596),_0x4fce06(_0x429a18,_0x754d11(0x121),_0x3ad0ce[_0x754d11(0x1c6)][_0x754d11(0x10b)]),_0x429a18=_0x2f1059([(0x0,_0x3ad0ce[_0x754d11(0x129)])(_0x3ebd32[_0x754d11(0x1d2)],_0x27ed60['UniverProFormulaEnginePlugin'],_0xe8b14d['UniverDocsPlugin']),_0x54abe0(0x1,(0x0,_0x3ad0ce[_0x754d11(0x104)])(_0x3ad0ce['Injector'])),_0x54abe0(0x2,_0x3ad0ce[_0x754d11(0x157)]),_0x54abe0(0x3,_0x3ad0ce[_0x754d11(0x1f6)])],_0x429a18),_0x415d22[_0x754d11(0x17d)]=_0x2d94b4,_0x415d22[_0x754d11(0x1f0)]=_0x13f145,_0x415d22[_0x754d11(0x1e3)]='',_0x415d22[_0x754d11(0x179)]=_0x959d06,_0x415d22['DOC_FORMULA_SCHEMA_VERSION']=0x1,Object[_0x754d11(0x11f)](_0x415d22,_0x754d11(0x105),{'enumerable':!0x0,'get':function(){return _0x4ec3b4;}}),Object[_0x754d11(0x11f)](_0x415d22,'DocFormulaLifecycleController',{'enumerable':!0x0,'get':function(){return _0x841e44;}}),_0x415d22[_0x754d11(0x112)]=_0x46f2a0,Object[_0x754d11(0x11f)](_0x415d22,_0x754d11(0x1fa),{'enumerable':!0x0,'get':function(){return _0x573977;}}),_0x415d22[_0x754d11(0x1a7)]=_0x26d030,Object['defineProperty'](_0x415d22,'DocFormulaService',{'enumerable':!0x0,'get':function(){return _0x20a44b;}}),_0x415d22['InsertDocFormulaCommand']=_0x28c79d,_0x415d22['InvalidDocFormulaInsertRangeError']=_0x471f6f,_0x415d22[_0x754d11(0x233)]=_0x4dc2c7,_0x415d22[_0x754d11(0x21f)]=_0x27e5d8,_0x415d22[_0x754d11(0x1be)]=_0x550e48,_0x415d22[_0x754d11(0xf7)]=_0x3618d4,_0x415d22[_0x754d11(0x136)]=_0x4ce42c,_0x415d22[_0x754d11(0x169)]=_0x1dcb18,_0x415d22[_0x754d11(0x18f)]=_0x3db73a,Object[_0x754d11(0x11f)](_0x415d22,_0x754d11(0x106),{'enumerable':!0x0,'get':function(){return _0x429a18;}}),_0x415d22[_0x754d11(0x185)]=_0x4b3299,_0x415d22[_0x754d11(0x166)]=_0x216280,_0x415d22['buildInsertDocFormulaActions']=_0x2a913d,_0x415d22[_0x754d11(0x1bd)]=_0x2dc10f,_0x415d22['buildUpdateDocFormulaActions']=_0x40505e,_0x415d22[_0x754d11(0x1cd)]=_0x2dd373,_0x415d22[_0x754d11(0x113)]=_0xca32cb,_0x415d22[_0x754d11(0x13b)]=_0x4001d5,_0x415d22[_0x754d11(0x1cf)]=_0x14ba05,_0x415d22['isDocFormulaRange']=_0x2ea921,_0x415d22[_0x754d11(0xf5)]=_0x1b1cdf,_0x415d22['isFormulaLastValue']=_0x590ba7;}));
1
+ function _0x371c(_0x1bb790,_0x484b10){_0x1bb790=_0x1bb790-0x14f;const _0x4f32e1=_0x4f32();let _0x371cfb=_0x4f32e1[_0x1bb790];return _0x371cfb;}(function(_0x451183,_0x4bb4dc){const _0x4b0316=_0x371c,_0x112bbf=_0x451183();while(!![]){try{const _0x13419b=parseInt(_0x4b0316(0x27c))/0x1*(parseInt(_0x4b0316(0x1f2))/0x2)+parseInt(_0x4b0316(0x227))/0x3*(-parseInt(_0x4b0316(0x251))/0x4)+parseInt(_0x4b0316(0x1d2))/0x5+parseInt(_0x4b0316(0x1f6))/0x6+-parseInt(_0x4b0316(0x200))/0x7*(parseInt(_0x4b0316(0x1b4))/0x8)+parseInt(_0x4b0316(0x234))/0x9+-parseInt(_0x4b0316(0x247))/0xa;if(_0x13419b===_0x4bb4dc)break;else _0x112bbf['push'](_0x112bbf['shift']());}catch(_0x1ae892){_0x112bbf['push'](_0x112bbf['shift']());}}}(_0x4f32,0x1dd00),function(_0x3c4a63,_0x27e23){const _0x1a44dd=_0x371c;typeof exports==_0x1a44dd(0x1a5)&&typeof module<'u'?_0x27e23(exports,require('@univerjs-pro/engine-formula'),require('@univerjs/core'),require('@univerjs/docs'),require('@univerjs/engine-formula'),require('rxjs'),require('@univerjs-pro/license')):typeof define==_0x1a44dd(0x1f1)&&define['amd']?define([_0x1a44dd(0x26b),_0x1a44dd(0x28d),_0x1a44dd(0x1f0),_0x1a44dd(0x1ca),_0x1a44dd(0x182),'rxjs','@univerjs-pro/license'],_0x27e23):(_0x3c4a63=typeof globalThis<'u'?globalThis:_0x3c4a63||self,_0x27e23(_0x3c4a63[_0x1a44dd(0x1e5)]={},_0x3c4a63[_0x1a44dd(0x23d)],_0x3c4a63[_0x1a44dd(0x25c)],_0x3c4a63[_0x1a44dd(0x1bb)],_0x3c4a63[_0x1a44dd(0x1cc)],_0x3c4a63[_0x1a44dd(0x24e)],_0x3c4a63['UniverProLicense']));}(this,function(_0x1dc156,_0x4e3069,_0x4bed3b,_0x4e7dc9,_0x2b808c,_0x593723,_0x26a251){const _0x57f770=_0x371c;Object[_0x57f770(0x1b9)](_0x1dc156,Symbol['toStringTag'],{'value':'Module'});let _0xd27543=_0x57f770(0x162),_0xc6a381='univer-docs-formula';function _0x5e4c14(){return{'schemaVersion':0x1,'formulas':{}};}function _0x2c51c9(_0x24ec81){const _0x7bf154=_0x57f770;return!_0x24ec81||typeof _0x24ec81!=_0x7bf154(0x1a5)||!_0x52c67f(_0x24ec81,[_0x7bf154(0x16a),_0x7bf154(0x20f)])||!(_0x7bf154(0x16a)in _0x24ec81)||_0x24ec81[_0x7bf154(0x16a)]!==0x1||!('formulas'in _0x24ec81)||!_0x24ec81[_0x7bf154(0x20f)]||typeof _0x24ec81['formulas']!='object'||Array['isArray'](_0x24ec81[_0x7bf154(0x20f)])?!0x1:Object[_0x7bf154(0x22b)](_0x24ec81[_0x7bf154(0x20f)])['every'](([_0x47123c,_0x474d60])=>_0x47123c[_0x7bf154(0x23b)]>0x0&&_0x36e466(_0x474d60));}function _0x36e466(_0x4016a8){const _0x316be4=_0x57f770;return!_0x4016a8||typeof _0x4016a8!=_0x316be4(0x1a5)||!_0x52c67f(_0x4016a8,[_0x316be4(0x1b8),_0x316be4(0x177),_0x316be4(0x246)])||!(_0x316be4(0x1b8)in _0x4016a8)||typeof _0x4016a8[_0x316be4(0x1b8)]!='string'||!_0x4016a8[_0x316be4(0x1b8)][_0x316be4(0x210)]()||_0x316be4(0x177)in _0x4016a8&&_0x4016a8[_0x316be4(0x177)]!=null&&(typeof _0x4016a8[_0x316be4(0x177)]!=_0x316be4(0x1a5)||!_0x52c67f(_0x4016a8[_0x316be4(0x177)],[_0x316be4(0x28c)])||!(_0x316be4(0x28c)in _0x4016a8[_0x316be4(0x177)])||typeof _0x4016a8[_0x316be4(0x177)][_0x316be4(0x28c)]!='string')?!0x1:!(_0x316be4(0x246)in _0x4016a8)||_0x4016a8['lastValue']==null||_0x5b24ff(_0x4016a8[_0x316be4(0x246)]);}function _0x5b24ff(_0x1b6282){const _0x33ddb7=_0x57f770;return!_0x1b6282||typeof _0x1b6282!=_0x33ddb7(0x1a5)||!_0x52c67f(_0x1b6282,['v','t','pattern'])||!('v'in _0x1b6282)||_0x1b6282['v']!==null&&typeof _0x1b6282['v']!='string'&&typeof _0x1b6282['v']!='number'&&typeof _0x1b6282['v']!=_0x33ddb7(0x273)||'t'in _0x1b6282&&_0x1b6282['t']!=null&&!_0x2af51d(_0x1b6282['t'])?!0x1:!('pattern'in _0x1b6282)||_0x1b6282[_0x33ddb7(0x28c)]==null||typeof _0x1b6282[_0x33ddb7(0x28c)]=='string';}function _0x52c67f(_0x4f59a0,_0x478ea1){const _0x325f3e=_0x57f770;let _0x2a020c=new Set(_0x478ea1);return Object[_0x325f3e(0x283)](_0x4f59a0)['every'](_0x47c4a1=>_0x2a020c[_0x325f3e(0x221)](_0x47c4a1));}function _0x2af51d(_0x51295d){const _0x4a90e4=_0x57f770;return typeof _0x51295d==_0x4a90e4(0x1cf)&&Object['values'](_0x4bed3b[_0x4a90e4(0x269)])['includes'](_0x51295d);}let _0x41be3e=new Set([_0x4bed3b['DataStreamTreeTokenType']['SECTION_BREAK'],_0x4bed3b[_0x57f770(0x21a)][_0x57f770(0x266)],_0x4bed3b[_0x57f770(0x21a)]['TABLE_ROW_START'],_0x4bed3b[_0x57f770(0x21a)]['TABLE_CELL_START'],_0x4bed3b[_0x57f770(0x21a)]['TABLE_CELL_END'],_0x4bed3b[_0x57f770(0x21a)][_0x57f770(0x18b)],_0x4bed3b[_0x57f770(0x21a)][_0x57f770(0x213)],_0x4bed3b['DataStreamTreeTokenType'][_0x57f770(0x158)],_0x4bed3b[_0x57f770(0x21a)]['COLUMN_START'],_0x4bed3b[_0x57f770(0x21a)][_0x57f770(0x24d)],_0x4bed3b[_0x57f770(0x21a)][_0x57f770(0x241)],_0x4bed3b[_0x57f770(0x21a)][_0x57f770(0x1d7)],_0x4bed3b[_0x57f770(0x21a)]['BLOCK_END'],_0x4bed3b['DataStreamTreeTokenType'][_0x57f770(0x26d)]]);var _0x4b9dca=class extends Error{constructor(){const _0x481a25=_0x57f770;super(_0x481a25(0x222));}};function _0x2e6ab7(_0x223825){const _0x310cd9=_0x57f770;var _0x3cd856,_0xd9f568;let _0x975012=_0x4bed3b[_0x310cd9(0x252)][_0x310cd9(0x196)](_0x223825['documentData']),_0x2fc1dc=_0x5e2027(_0x975012),{startOffset:_0x4aa48a,endOffset:_0x332eaa}=_0x16c630(_0x2fc1dc,_0x223825[_0x310cd9(0x1ef)],_0x223825['endOffset']);_0x36c271(_0x2fc1dc,_0x4aa48a,_0x332eaa);let _0x31306f=((_0x3cd856=_0x2fc1dc[_0x310cd9(0x15e)])==null?void 0x0:_0x3cd856[_0x310cd9(0x25d)](_0x550fe4=>{const _0x3628de=_0x310cd9;if(!_0x3f3a71(_0x550fe4))return!0x1;let _0x21be4b=(0x0,_0x4bed3b['getCustomRangeInterval'])(_0x550fe4);return _0x21be4b[_0x3628de(0x199)]>_0x4aa48a&&_0x21be4b[_0x3628de(0x1ef)]<_0x332eaa;})['map'](_0x1aff0c=>_0x1aff0c[_0x310cd9(0x24b)]))??[];_0x337991(_0x2fc1dc,_0x4aa48a,_0x332eaa,''),_0x2fc1dc['customRanges']=[...((_0xd9f568=_0x2fc1dc[_0x310cd9(0x15e)])==null?void 0x0:_0xd9f568[_0x310cd9(0x25d)](_0x1a6a3e=>!_0x31306f[_0x310cd9(0x235)](_0x1a6a3e[_0x310cd9(0x24b)])&&_0x1a6a3e[_0x310cd9(0x24b)]!==_0x223825[_0x310cd9(0x24b)]))??[],_0x318d5a(_0x223825[_0x310cd9(0x24b)],_0x4aa48a)][_0x310cd9(0x287)]((_0x43a5d8,_0xa4e84)=>_0x43a5d8[_0x310cd9(0x268)]-_0xa4e84[_0x310cd9(0x268)]);let _0x240bd9=_0x58dfbf(_0x223825[_0x310cd9(0x1c1)]);return _0x31306f[_0x310cd9(0x1e1)](_0x137a6f=>{const _0x23347c=_0x310cd9;delete _0x240bd9[_0x23347c(0x20f)][_0x137a6f];}),_0x240bd9[_0x310cd9(0x20f)][_0x223825[_0x310cd9(0x24b)]]=_0x4bed3b[_0x310cd9(0x252)][_0x310cd9(0x196)](_0x223825['config']),{'nextDocumentData':_0x975012,'nextResource':_0x240bd9,'cursorOffset':_0x4aa48a+0x1};}function _0x496d24(_0x5e0470){const _0x1fee35=_0x57f770;var _0x56c0a1,_0x599266;let _0x2642b7=_0x4bed3b['Tools'][_0x1fee35(0x196)](_0x5e0470['documentData']),_0x39746c=(_0x56c0a1=_0x5e2027(_0x2642b7)[_0x1fee35(0x15e)])==null?void 0x0:_0x56c0a1[_0x1fee35(0x174)](_0x43c3a6=>_0x43c3a6[_0x1fee35(0x24b)]===_0x5e0470['rangeId']&&_0x3f3a71(_0x43c3a6));if(!_0x39746c||!((_0x599266=_0x5e0470['resource'])!=null&&_0x599266[_0x1fee35(0x20f)][_0x5e0470[_0x1fee35(0x24b)]]))return null;let _0x406175=_0x58dfbf(_0x5e0470['resource']);return _0x406175[_0x1fee35(0x20f)][_0x5e0470[_0x1fee35(0x24b)]]=_0x4bed3b[_0x1fee35(0x252)][_0x1fee35(0x196)](_0x5e0470[_0x1fee35(0x1c4)]),{'nextDocumentData':_0x2642b7,'nextResource':_0x406175,'cursorOffset':_0x39746c[_0x1fee35(0x23a)]+0x1};}function _0x562d2a(_0x561b24){const _0x3de149=_0x57f770;let _0x5a216d=_0x4bed3b[_0x3de149(0x252)]['deepClone'](_0x561b24[_0x3de149(0x185)]),_0x19502a=_0x587bcd(_0x5a216d,_0x561b24['rangeId'],_0x561b24[_0x3de149(0x159)]??'');if(_0x19502a==null)return null;let _0xeed849=_0x58dfbf(_0x561b24[_0x3de149(0x1c1)]);return delete _0xeed849['formulas'][_0x561b24[_0x3de149(0x24b)]],{'nextDocumentData':_0x5a216d,'nextResource':_0xeed849,'cursorOffset':_0x19502a};}function _0x12f0e6(_0x228a05,_0x5adbf7){const _0x55e7d7=_0x57f770;var _0x2f989a;let _0x296cf0=_0x4bed3b[_0x55e7d7(0x252)][_0x55e7d7(0x196)](_0x228a05),_0x307a6d=_0x296cf0['body'];if(!_0x307a6d)return _0x296cf0;let _0x32c7a5=new Map(_0x5adbf7[_0x55e7d7(0x261)](_0x471f3d=>[_0x471f3d[_0x55e7d7(0x24b)],_0x471f3d['text']])),_0x4f6b64=((_0x2f989a=_0x307a6d['customRanges'])==null?void 0x0:_0x2f989a[_0x55e7d7(0x25d)](_0xf52643=>_0x3f3a71(_0xf52643)&&_0x32c7a5[_0x55e7d7(0x221)](_0xf52643['rangeId']))[_0x55e7d7(0x287)]((_0x315137,_0x1077e3)=>_0x1077e3['startIndex']-_0x315137[_0x55e7d7(0x268)]))??[];for(let _0x22a305 of _0x4f6b64)_0x587bcd(_0x296cf0,_0x22a305['rangeId'],_0x32c7a5['get'](_0x22a305[_0x55e7d7(0x24b)])??'');return _0x296cf0;}function _0x3f3a71(_0x5d3b4b){const _0x56e9bb=_0x57f770;var _0x1a16ed;return(_0x5d3b4b==null?void 0x0:_0x5d3b4b[_0x56e9bb(0x1da)])===_0x4bed3b[_0x56e9bb(0x21c)][_0x56e9bb(0x280)]&&_0x5d3b4b[_0x56e9bb(0x20c)]===!0x0&&((_0x1a16ed=_0x5d3b4b[_0x56e9bb(0x1be)])==null?void 0x0:_0x1a16ed['kind'])===_0x56e9bb(0x163);}function _0x339a9d(_0xfede1a,_0x575493){const _0x5e0b6c=_0x57f770;var _0x28fb97;return _0xfede1a==null||(_0x28fb97=_0xfede1a['customRanges'])==null?void 0x0:_0x28fb97[_0x5e0b6c(0x174)](_0x267a8b=>_0x267a8b[_0x5e0b6c(0x24b)]===_0x575493&&_0x3f3a71(_0x267a8b));}function _0x36c271(_0x94d7a6,_0x163c8d,_0x279a0b){const _0x4b10d6=_0x57f770;if(_0x163c8d===_0x279a0b){if(_0x41be3e[_0x4b10d6(0x221)](_0x94d7a6[_0x4b10d6(0x25f)][_0x163c8d]))throw new _0x4b9dca();return;}for(let _0x567fcb=_0x163c8d;_0x567fcb<_0x279a0b;_0x567fcb++)if(_0x94d7a6[_0x4b10d6(0x25f)][_0x567fcb]===_0x4bed3b[_0x4b10d6(0x21a)][_0x4b10d6(0x23e)]||_0x41be3e[_0x4b10d6(0x221)](_0x94d7a6[_0x4b10d6(0x25f)][_0x567fcb]))throw new _0x4b9dca();}function _0x318d5a(_0x2fc422,_0x4dc72c){const _0x130b1e=_0x57f770;return{'startIndex':_0x4dc72c,'endIndex':_0x4dc72c,'rangeId':_0x2fc422,'rangeType':_0x4bed3b[_0x130b1e(0x21c)][_0x130b1e(0x280)],'wholeEntity':!0x0,'properties':{'kind':_0xc6a381}};}function _0x58dfbf(_0x5723f8){const _0x5d6ae8=_0x57f770;return _0x5723f8?_0x4bed3b['Tools'][_0x5d6ae8(0x196)](_0x5723f8):_0x5e4c14();}function _0x16c630(_0x25aa4a,_0x3ec1eb,_0x32c962){const _0x2dffcc=_0x57f770;let _0x32b789=_0x17029c(_0x25aa4a),_0x3c3cc3=_0x3ec1eb??_0x32b789,_0x3d1b2f=_0x32c962??_0x3c3cc3;return{'startOffset':_0x1566e6(Math[_0x2dffcc(0x254)](_0x3c3cc3,_0x3d1b2f),_0x32b789),'endOffset':_0x1566e6(Math['max'](_0x3c3cc3,_0x3d1b2f),_0x32b789)};}function _0x1566e6(_0x545456,_0x15fa37){const _0x2c95c1=_0x57f770;return Math[_0x2c95c1(0x219)](0x0,Math[_0x2c95c1(0x254)](_0x545456,_0x15fa37));}function _0x17029c(_0x57d9aa){const _0x4d457e=_0x57f770;return _0x57d9aa[_0x4d457e(0x25f)]['endsWith'](''+_0x4bed3b[_0x4d457e(0x21a)][_0x4d457e(0x23e)]+_0x4bed3b['DataStreamTreeTokenType'][_0x4d457e(0x197)])?Math[_0x4d457e(0x219)](0x0,_0x57d9aa[_0x4d457e(0x25f)][_0x4d457e(0x23b)]-0x2):_0x57d9aa[_0x4d457e(0x25f)]['endsWith'](_0x4bed3b[_0x4d457e(0x21a)][_0x4d457e(0x197)])?Math['max'](0x0,_0x57d9aa[_0x4d457e(0x25f)]['length']-0x1):_0x57d9aa[_0x4d457e(0x25f)]['length'];}function _0x337991(_0x4954a3,_0x41717b,_0x4c5943,_0x25f708){_0x4c5943>_0x41717b&&_0x2182db(_0x4954a3,_0x41717b,_0x4c5943),_0x550248(_0x4954a3,_0x41717b,_0x25f708);}function _0x587bcd(_0x874bce,_0x1d9070,_0x126def){const _0x2813bc=_0x57f770;var _0x827c7,_0x27b3e2;let _0xb73718=_0x5e2027(_0x874bce),_0x4c353f=(_0x827c7=_0xb73718[_0x2813bc(0x15e)])==null?void 0x0:_0x827c7[_0x2813bc(0x174)](_0x421071=>_0x421071['rangeId']===_0x1d9070&&_0x3f3a71(_0x421071));if(!_0x4c353f)return null;let _0x3aed51=(0x0,_0x4bed3b[_0x2813bc(0x21b)])(_0x4c353f);return _0x337991(_0xb73718,_0x3aed51['startOffset'],_0x3aed51[_0x2813bc(0x199)],_0x126def),_0xb73718[_0x2813bc(0x15e)]=(_0x27b3e2=_0xb73718[_0x2813bc(0x15e)])==null?void 0x0:_0x27b3e2['filter'](_0xdd67fc=>_0xdd67fc[_0x2813bc(0x24b)]!==_0x1d9070),_0x3aed51['startOffset']+_0x126def[_0x2813bc(0x23b)];}function _0x550248(_0x4cf388,_0x49e951,_0x15b341){const _0x5aa104=_0x57f770;_0x15b341&&(_0x4cf388[_0x5aa104(0x25f)]=''+_0x4cf388[_0x5aa104(0x25f)][_0x5aa104(0x25b)](0x0,_0x49e951)+_0x15b341+_0x4cf388[_0x5aa104(0x25f)][_0x5aa104(0x25b)](_0x49e951),_0x29e20a(_0x4cf388,_0x49e951,_0x15b341[_0x5aa104(0x23b)]));}function _0x2182db(_0x4043b5,_0xace62f,_0x3f5532){const _0x3cce05=_0x57f770;let _0x1621f7=_0x3f5532-_0xace62f;_0x4043b5[_0x3cce05(0x25f)]=''+_0x4043b5[_0x3cce05(0x25f)]['slice'](0x0,_0xace62f)+_0x4043b5[_0x3cce05(0x25f)][_0x3cce05(0x25b)](_0x3f5532),_0x433c39(_0x4043b5,_0xace62f,_0x1621f7);}function _0x29e20a(_0x5698ac,_0x36ace0,_0x3552ac){const _0x6885f0=_0x57f770;_0x5698ac[_0x6885f0(0x21f)]=_0x4c9873(_0x5698ac['paragraphs'],_0x36ace0,_0x3552ac),_0x5698ac[_0x6885f0(0x228)]=_0x4c9873(_0x5698ac[_0x6885f0(0x228)],_0x36ace0,_0x3552ac),_0x5698ac[_0x6885f0(0x167)]=_0x4c9873(_0x5698ac[_0x6885f0(0x167)],_0x36ace0,_0x3552ac),_0x5698ac['textRuns']=_0x4b8c8f(_0x5698ac[_0x6885f0(0x178)],_0x36ace0,_0x3552ac),_0x5698ac[_0x6885f0(0x26c)]=_0x1c6f46(_0x5698ac[_0x6885f0(0x26c)],_0x36ace0,_0x3552ac),_0x5698ac[_0x6885f0(0x1aa)]=_0xf87d3d(_0x5698ac['columnGroups'],_0x36ace0,_0x3552ac),_0x5698ac[_0x6885f0(0x15e)]=_0xf87d3d(_0x5698ac[_0x6885f0(0x15e)],_0x36ace0,_0x3552ac),_0x5698ac[_0x6885f0(0x1fa)]=_0xf87d3d(_0x5698ac[_0x6885f0(0x1fa)],_0x36ace0,_0x3552ac),_0x5698ac[_0x6885f0(0x192)]=_0xf87d3d(_0x5698ac[_0x6885f0(0x192)],_0x36ace0,_0x3552ac);}function _0x433c39(_0x5cb2c2,_0x28c6d1,_0x184571){const _0x5bdcbf=_0x57f770;var _0x3f3ec9,_0x18617d;_0x5cb2c2['paragraphs']=_0x167d18(_0x5cb2c2['paragraphs'],_0x28c6d1,_0x184571),_0x5cb2c2[_0x5bdcbf(0x228)]=_0x167d18(_0x5cb2c2[_0x5bdcbf(0x228)],_0x28c6d1,_0x184571),_0x5cb2c2[_0x5bdcbf(0x167)]=_0x167d18(_0x5cb2c2[_0x5bdcbf(0x167)],_0x28c6d1,_0x184571),_0x5cb2c2['textRuns']=(_0x3f3ec9=_0x5bcf60((_0x18617d=_0x5cb2c2[_0x5bdcbf(0x178)])==null?void 0x0:_0x18617d['map'](_0x31b2ab=>({..._0x31b2ab,'startIndex':_0x31b2ab['st'],'endIndex':_0x31b2ab['ed']})),_0x28c6d1,_0x184571))==null?void 0x0:_0x3f3ec9[_0x5bdcbf(0x261)](_0x49a4d0=>{let {startIndex:_0x18e82e,endIndex:_0x519ae5,..._0x1c877e}=_0x49a4d0;return{..._0x1c877e,'st':_0x18e82e,'ed':_0x519ae5};}),_0x5cb2c2['tables']=_0x5bcf60(_0x5cb2c2[_0x5bdcbf(0x26c)],_0x28c6d1,_0x184571),_0x5cb2c2[_0x5bdcbf(0x1aa)]=_0x4076a7(_0x5cb2c2[_0x5bdcbf(0x1aa)],_0x28c6d1,_0x184571),_0x5cb2c2[_0x5bdcbf(0x15e)]=_0x4076a7(_0x5cb2c2[_0x5bdcbf(0x15e)],_0x28c6d1,_0x184571),_0x5cb2c2[_0x5bdcbf(0x1fa)]=_0x4076a7(_0x5cb2c2[_0x5bdcbf(0x1fa)],_0x28c6d1,_0x184571),_0x5cb2c2['blockRanges']=_0x4076a7(_0x5cb2c2[_0x5bdcbf(0x192)],_0x28c6d1,_0x184571);}function _0x4c9873(_0x136574,_0x2c7427,_0x2bf3e4){const _0x3712f1=_0x57f770;return _0x136574==null?void 0x0:_0x136574[_0x3712f1(0x261)](_0x199f6b=>_0x199f6b[_0x3712f1(0x268)]>=_0x2c7427?{..._0x199f6b,'startIndex':_0x199f6b[_0x3712f1(0x268)]+_0x2bf3e4}:_0x199f6b);}function _0x167d18(_0x43466f,_0x426f34,_0x49ed91){const _0x499eae=_0x57f770;let _0x140838=_0x426f34+_0x49ed91;return _0x43466f==null?void 0x0:_0x43466f[_0x499eae(0x261)](_0x522015=>_0x522015['startIndex']>=_0x426f34&&_0x522015['startIndex']<_0x140838?null:_0x522015[_0x499eae(0x268)]>=_0x140838?{..._0x522015,'startIndex':_0x522015[_0x499eae(0x268)]-_0x49ed91}:_0x522015)[_0x499eae(0x25d)](_0x112e66=>_0x112e66!=null);}function _0x4b8c8f(_0x3be01f,_0x290bbd,_0xe91446){return _0x3be01f==null?void 0x0:_0x3be01f['map'](_0x9d297d=>_0x9d297d['st']>=_0x290bbd?{..._0x9d297d,'st':_0x9d297d['st']+_0xe91446,'ed':_0x9d297d['ed']+_0xe91446}:_0x9d297d['ed']>_0x290bbd?{..._0x9d297d,'ed':_0x9d297d['ed']+_0xe91446}:_0x9d297d);}function _0xf87d3d(_0x56ae94,_0xfc0d3d,_0x550c1b){const _0x5c4b92=_0x57f770;return _0x56ae94==null?void 0x0:_0x56ae94[_0x5c4b92(0x261)](_0x228a9c=>(0x0,_0x4bed3b[_0x5c4b92(0x264)])(_0x228a9c,_0xfc0d3d,_0x550c1b));}function _0x1c6f46(_0x1b9330,_0x17c331,_0x14a90b){const _0x386b40=_0x57f770;return _0x1b9330==null?void 0x0:_0x1b9330['map'](_0x54e324=>(0x0,_0x4bed3b[_0x386b40(0x1a6)])(_0x54e324,_0x17c331,_0x14a90b));}function _0x4076a7(_0x22c128,_0x2e9053,_0x533e52){const _0x3aad79=_0x57f770;return _0x22c128==null?void 0x0:_0x22c128[_0x3aad79(0x261)](_0x12ad83=>(0x0,_0x4bed3b['shiftInclusiveRangeOnDelete'])(_0x12ad83,_0x2e9053,_0x533e52))[_0x3aad79(0x25d)](_0x5b06a9=>_0x5b06a9!=null);}function _0x5bcf60(_0x149cda,_0xd632c4,_0x149986){const _0x32ada7=_0x57f770;return _0x149cda==null?void 0x0:_0x149cda[_0x32ada7(0x261)](_0x258e46=>(0x0,_0x4bed3b[_0x32ada7(0x1ec)])(_0x258e46,_0xd632c4,_0x149986))[_0x32ada7(0x25d)](_0x29a692=>_0x29a692!=null);}function _0x5e2027(_0x4c9bc2){const _0x361949=_0x57f770;if(!_0x4c9bc2[_0x361949(0x1b0)])throw Error(_0x361949(0x16c));return _0x4c9bc2[_0x361949(0x1b0)];}function _0x29afda(_0xeceded){'@babel/helpers - typeof';const _0x34dafe=_0x57f770;return _0x29afda=typeof Symbol==_0x34dafe(0x1f1)&&typeof Symbol[_0x34dafe(0x169)]==_0x34dafe(0x17c)?function(_0x14489f){return typeof _0x14489f;}:function(_0x12a133){const _0x140878=_0x34dafe;return _0x12a133&&typeof Symbol==_0x140878(0x1f1)&&_0x12a133['constructor']===Symbol&&_0x12a133!==Symbol['prototype']?_0x140878(0x17c):typeof _0x12a133;},_0x29afda(_0xeceded);}function _0x21e00f(_0x561a03,_0x41e2cc){const _0x3aaf34=_0x57f770;if(_0x29afda(_0x561a03)!=_0x3aaf34(0x1a5)||!_0x561a03)return _0x561a03;var _0x5d7a13=_0x561a03[Symbol[_0x3aaf34(0x1e0)]];if(_0x5d7a13!==void 0x0){var _0x4418b4=_0x5d7a13[_0x3aaf34(0x208)](_0x561a03,_0x41e2cc||'default');if(_0x29afda(_0x4418b4)!='object')return _0x4418b4;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x41e2cc===_0x3aaf34(0x262)?String:Number)(_0x561a03);}function _0x276234(_0x481580){const _0x131f57=_0x57f770;var _0x43ad6a=_0x21e00f(_0x481580,_0x131f57(0x262));return _0x29afda(_0x43ad6a)=='symbol'?_0x43ad6a:_0x43ad6a+'';}function _0x2c07ac(_0x17c19f,_0x23fb7b,_0x3d56f0){const _0x3f6e62=_0x57f770;return(_0x23fb7b=_0x276234(_0x23fb7b))in _0x17c19f?Object[_0x3f6e62(0x1b9)](_0x17c19f,_0x23fb7b,{'value':_0x3d56f0,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x17c19f[_0x23fb7b]=_0x3d56f0,_0x17c19f;}var _0x419434=class extends _0x4bed3b[_0x57f770(0x267)]{constructor(..._0x5b046d){const _0x5ab423=_0x57f770;super(..._0x5b046d),_0x2c07ac(this,_0x5ab423(0x1c2),new Map()),_0x2c07ac(this,'_rawResources',new Map()),_0x2c07ac(this,_0x5ab423(0x1b3),new Map()),_0x2c07ac(this,_0x5ab423(0x14f),new _0x593723[(_0x5ab423(0x17d))]()),_0x2c07ac(this,_0x5ab423(0x153),this[_0x5ab423(0x14f)]['asObservable']());}['getFormula'](_0x34bacf,_0xa72eb8){const _0x96e233=_0x57f770;var _0x4b1c10;let _0x46baac=(_0x4b1c10=this['_resources'][_0x96e233(0x1ff)](_0x34bacf))==null?void 0x0:_0x4b1c10['formulas'][_0xa72eb8];return _0x46baac?_0x4bed3b['Tools'][_0x96e233(0x196)](_0x46baac):void 0x0;}[_0x57f770(0x21e)](_0x4bcbdf){const _0x58667d=_0x57f770;var _0x231608;return _0x4bed3b[_0x58667d(0x252)][_0x58667d(0x196)](((_0x231608=this[_0x58667d(0x1c2)][_0x58667d(0x1ff)](_0x4bcbdf))==null?void 0x0:_0x231608['formulas'])??{});}[_0x57f770(0x1c5)](_0x421ae5){const _0xe6ba1f=_0x57f770;let _0x14641d=this['_resources'][_0xe6ba1f(0x1ff)](_0x421ae5);return _0x14641d?_0x4bed3b[_0xe6ba1f(0x252)][_0xe6ba1f(0x196)](_0x14641d):void 0x0;}[_0x57f770(0x1a1)](_0x42ea8f,_0x18c592,_0x26d4a6){const _0x395c88=_0x57f770;return this[_0x395c88(0x285)](_0x42ea8f,{[_0x18c592]:_0x26d4a6});}['setResource'](_0x3c8a12,_0x47cea2){const _0x41f2b4=_0x57f770;return this[_0x41f2b4(0x1b3)][_0x41f2b4(0x221)](_0x3c8a12)||!_0x2c51c9(_0x47cea2)?!0x1:(this[_0x41f2b4(0x1c2)]['set'](_0x3c8a12,_0x4bed3b['Tools'][_0x41f2b4(0x196)](_0x47cea2)),this[_0x41f2b4(0x14f)][_0x41f2b4(0x240)]({'unitId':_0x3c8a12}),!0x0);}[_0x57f770(0x285)](_0x13d333,_0x5aad2a){const _0x160e2b=_0x57f770;if(this[_0x160e2b(0x1b3)][_0x160e2b(0x221)](_0x13d333)||!Object['keys'](_0x5aad2a)[_0x160e2b(0x23b)]||!_0x2c51c9({'schemaVersion':0x1,'formulas':_0x5aad2a}))return!0x1;let _0x2031d9=this[_0x160e2b(0x1c2)][_0x160e2b(0x1ff)](_0x13d333)??_0x5e4c14(),_0x392f76=_0x4bed3b[_0x160e2b(0x252)][_0x160e2b(0x196)](_0x2031d9);return Object[_0x160e2b(0x1cd)](_0x392f76['formulas'],_0x4bed3b[_0x160e2b(0x252)][_0x160e2b(0x196)](_0x5aad2a)),this[_0x160e2b(0x1c2)][_0x160e2b(0x1e7)](_0x13d333,_0x392f76),this[_0x160e2b(0x14f)][_0x160e2b(0x240)]({'unitId':_0x13d333,'rangeIds':Object[_0x160e2b(0x283)](_0x5aad2a)}),!0x0;}[_0x57f770(0x231)](_0x4923b0,_0xfd0545){const _0x303ff2=_0x57f770;if(this[_0x303ff2(0x1b3)]['has'](_0x4923b0))return!0x1;let _0x4e154a=this[_0x303ff2(0x1c2)]['get'](_0x4923b0);if(!(_0x4e154a!=null&&_0x4e154a[_0x303ff2(0x20f)][_0xfd0545]))return!0x1;let _0x4f68c5=_0x4bed3b[_0x303ff2(0x252)][_0x303ff2(0x196)](_0x4e154a);return delete _0x4f68c5['formulas'][_0xfd0545],this[_0x303ff2(0x1c2)][_0x303ff2(0x1e7)](_0x4923b0,_0x4f68c5),this['_change$'][_0x303ff2(0x240)]({'unitId':_0x4923b0,'rangeIds':[_0xfd0545]}),!0x0;}[_0x57f770(0x180)](_0x110211,_0x53cb96){const _0x4d6408=_0x57f770;return _0x53cb96&&typeof _0x53cb96==_0x4d6408(0x1a5)&&_0x4d6408(0x16a)in _0x53cb96&&_0x53cb96[_0x4d6408(0x16a)]!==0x1?(this['_preserveInvalid'](_0x110211,_0x53cb96,_0x4d6408(0x172)),!0x1):_0x2c51c9(_0x53cb96)?(this[_0x4d6408(0x1c2)][_0x4d6408(0x1e7)](_0x110211,_0x4bed3b[_0x4d6408(0x252)][_0x4d6408(0x196)](_0x53cb96)),this[_0x4d6408(0x1a3)]['delete'](_0x110211),this[_0x4d6408(0x1b3)]['delete'](_0x110211),this[_0x4d6408(0x14f)]['next']({'unitId':_0x110211}),!0x0):(this['_preserveInvalid'](_0x110211,_0x53cb96,_0x4d6408(0x188)),!0x1);}[_0x57f770(0x238)](_0x4fab97){const _0x340339=_0x57f770;let _0x651f8=this[_0x340339(0x1c2)]['get'](_0x4fab97);return _0x651f8?_0x4bed3b[_0x340339(0x252)][_0x340339(0x196)](_0x651f8):this['_rawResources'][_0x340339(0x221)](_0x4fab97)?_0x4bed3b[_0x340339(0x252)]['deepClone'](this[_0x340339(0x1a3)]['get'](_0x4fab97)):_0x5e4c14();}[_0x57f770(0x15f)](_0x451f7e){const _0x37e956=_0x57f770;return this[_0x37e956(0x1b3)][_0x37e956(0x1ff)](_0x451f7e);}[_0x57f770(0x232)](_0x7da657){const _0x14244d=_0x57f770;this[_0x14244d(0x1c2)]['delete'](_0x7da657),this[_0x14244d(0x1a3)][_0x14244d(0x215)](_0x7da657),this[_0x14244d(0x1b3)][_0x14244d(0x215)](_0x7da657),this[_0x14244d(0x14f)]['next']({'unitId':_0x7da657});}[_0x57f770(0x16b)](){const _0x48379e=_0x57f770;this[_0x48379e(0x1c2)]['clear'](),this[_0x48379e(0x1a3)][_0x48379e(0x1bf)](),this[_0x48379e(0x1b3)]['clear'](),this['_change$'][_0x48379e(0x165)](),super[_0x48379e(0x16b)]();}[_0x57f770(0x203)](_0x370e64,_0x7d2c1b,_0x59deec){const _0x46f5cb=_0x57f770;this['_resources'][_0x46f5cb(0x215)](_0x370e64),this[_0x46f5cb(0x1a3)][_0x46f5cb(0x1e7)](_0x370e64,_0x4bed3b[_0x46f5cb(0x252)][_0x46f5cb(0x196)](_0x7d2c1b)),this['_loadErrors'][_0x46f5cb(0x1e7)](_0x370e64,_0x59deec),this[_0x46f5cb(0x14f)]['next']({'unitId':_0x370e64});}};let _0x3e772c=function(_0x3a9f58){const _0x4dd31a=_0x57f770;return _0x3a9f58['EMPTY']=_0x4dd31a(0x17b),_0x3a9f58['PENDING']=_0x4dd31a(0x24f),_0x3a9f58[_0x4dd31a(0x1d9)]=_0x4dd31a(0x1e2),_0x3a9f58['ERROR']=_0x4dd31a(0x17f),_0x3a9f58;}({});function _0x52ecc4(_0x2011b2,_0x425335){return function(_0x451549,_0x2461e0){_0x425335(_0x451549,_0x2461e0,_0x2011b2);};}function _0x4d4426(_0x54f76a,_0x47952f,_0x7abbc7,_0x27a8b0){const _0x3f04b3=_0x57f770;var _0x1053ae=arguments[_0x3f04b3(0x23b)],_0x505722=_0x1053ae<0x3?_0x47952f:_0x27a8b0===null?_0x27a8b0=Object[_0x3f04b3(0x19c)](_0x47952f,_0x7abbc7):_0x27a8b0,_0xb5d806;if(typeof Reflect==_0x3f04b3(0x1a5)&&typeof Reflect[_0x3f04b3(0x1bd)]==_0x3f04b3(0x1f1))_0x505722=Reflect[_0x3f04b3(0x1bd)](_0x54f76a,_0x47952f,_0x7abbc7,_0x27a8b0);else{for(var _0x144050=_0x54f76a['length']-0x1;_0x144050>=0x0;_0x144050--)(_0xb5d806=_0x54f76a[_0x144050])&&(_0x505722=(_0x1053ae<0x3?_0xb5d806(_0x505722):_0x1053ae>0x3?_0xb5d806(_0x47952f,_0x7abbc7,_0x505722):_0xb5d806(_0x47952f,_0x7abbc7))||_0x505722);}return _0x1053ae>0x3&&_0x505722&&Object['defineProperty'](_0x47952f,_0x7abbc7,_0x505722),_0x505722;}let _0x51a5f5=class extends _0x4bed3b[_0x57f770(0x267)]{constructor(_0x4bb5b7,_0x25cfe7,_0x3ab571){const _0x29c398=_0x57f770;super(),this[_0x29c398(0x211)]=_0x4bb5b7,this[_0x29c398(0x15a)]=_0x25cfe7,this[_0x29c398(0x1f8)]=_0x3ab571,_0x2c07ac(this,_0x29c398(0x19b),new Map()),_0x2c07ac(this,_0x29c398(0x270),new Map()),_0x2c07ac(this,_0x29c398(0x255),new _0x593723[(_0x29c398(0x17d))]()),_0x2c07ac(this,_0x29c398(0x1e4),this[_0x29c398(0x255)]['asObservable']()),this[_0x29c398(0x1c3)](this[_0x29c398(0x15a)][_0x29c398(0x1a0)][_0x29c398(0x243)](_0x367f42=>{const _0x1281ac=_0x29c398;for(let _0x4e597a of Object[_0x1281ac(0x1c9)](_0x367f42))for(let _0x4a6da1 of Object[_0x1281ac(0x1c9)](_0x4e597a))_0x4a6da1[_0x1281ac(0x1e1)](_0x110ecf=>this['_updateFormulaResult'](_0x110ecf));}));}[_0x57f770(0x179)](_0x5cce44){const _0x3ffb91=_0x57f770;var _0x4f94fc;let _0x58ff41=_0x5cce44['getUnitId'](),_0x432a52=((_0x4f94fc=_0x5cce44[_0x3ffb91(0x166)]()['body'])==null||(_0x4f94fc=_0x4f94fc['customRanges'])==null?void 0x0:_0x4f94fc[_0x3ffb91(0x25d)](_0x3f3a71))??[],_0x4af811=this[_0x3ffb91(0x211)][_0x3ffb91(0x21e)](_0x58ff41),_0x5ca630=new Set();for(let _0x81cd0f of _0x432a52){let _0x5dc309=_0x4af811[_0x81cd0f[_0x3ffb91(0x24b)]];_0x5dc309&&(_0x5ca630[_0x3ffb91(0x28b)](_0x43079d(_0x58ff41,_0x81cd0f[_0x3ffb91(0x24b)])),this[_0x3ffb91(0x217)]({'unitId':_0x58ff41,'rangeId':_0x81cd0f['rangeId']},_0x5dc309));}for(let _0x3e431d of Array[_0x3ffb91(0x1cb)](this[_0x3ffb91(0x19b)][_0x3ffb91(0x1c9)]()))_0x3e431d[_0x3ffb91(0x242)]===_0x58ff41&&!_0x5ca630[_0x3ffb91(0x221)](_0x43079d(_0x3e431d[_0x3ffb91(0x242)],_0x3e431d[_0x3ffb91(0x24b)]))&&this[_0x3ffb91(0x1df)](_0x3e431d);}[_0x57f770(0x217)](_0x4afe7e,_0x9c1cbd){const _0x2577df=_0x57f770;let _0x2f65d2=_0x43079d(_0x4afe7e[_0x2577df(0x242)],_0x4afe7e[_0x2577df(0x24b)]),_0x586bf2=this['_registrations'][_0x2577df(0x1ff)](_0x2f65d2),_0x1c2bc5=this[_0x2577df(0x1f8)][_0x2577df(0x18f)](_0x4afe7e[_0x2577df(0x242)]);if(_0x586bf2&&_0x586bf2[_0x2577df(0x1c4)]['formula']===_0x9c1cbd[_0x2577df(0x1b8)]&&_0x586bf2['referenceRevision']===_0x1c2bc5){_0x586bf2['config']=_0x9c1cbd;let _0x585261=_0x586bf2[_0x2577df(0x1f9)]?this[_0x2577df(0x15a)][_0x2577df(0x239)](_0x586bf2['unitId'],_0x586bf2['unitId'],_0x586bf2['formulaId'])??void 0x0:void 0x0;_0x586bf2[_0x2577df(0x1b5)]=_0x585261,this[_0x2577df(0x279)](_0x2f65d2,_0x9dc728(_0x9c1cbd,_0x585261));return;}_0x586bf2!=null&&_0x586bf2[_0x2577df(0x1f9)]&&this[_0x2577df(0x229)](_0x586bf2);let _0x3de715={..._0x4afe7e,'config':_0x9c1cbd,'referenceRevision':_0x1c2bc5,'presentation':_0x9dc728(_0x9c1cbd,void 0x0)};if(this['_registrations'][_0x2577df(0x1e7)](_0x2f65d2,_0x3de715),!_0x9c1cbd[_0x2577df(0x1b8)][_0x2577df(0x210)]())return;let _0x31a652=this[_0x2577df(0x15a)][_0x2577df(0x1de)](_0x4afe7e[_0x2577df(0x242)],_0x4afe7e[_0x2577df(0x242)],_0x9c1cbd[_0x2577df(0x1b8)],void 0x0,{'rangeId':_0x4afe7e[_0x2577df(0x24b)]},_0x2b808c['OtherFormulaBizType'][_0x2577df(0x19f)],_0x4afe7e[_0x2577df(0x24b)]);_0x3de715[_0x2577df(0x1f9)]=_0x31a652,this[_0x2577df(0x270)][_0x2577df(0x1e7)](_0x31a652,_0x2f65d2);}['unregister'](_0x26d0cf){const _0x4912f4=_0x57f770;let _0xaeb006=_0x43079d(_0x26d0cf[_0x4912f4(0x242)],_0x26d0cf[_0x4912f4(0x24b)]),_0xaf4444=this[_0x4912f4(0x19b)][_0x4912f4(0x1ff)](_0xaeb006);_0xaf4444&&(this['_deleteRegistration'](_0xaf4444),this['_registrations']['delete'](_0xaeb006));}[_0x57f770(0x22c)](_0x40e200){const _0x81f3b4=_0x57f770;for(let _0x3b8609 of Array[_0x81f3b4(0x1cb)](this['_registrations'][_0x81f3b4(0x1c9)]()))_0x3b8609[_0x81f3b4(0x242)]===_0x40e200&&this[_0x81f3b4(0x1df)](_0x3b8609);}[_0x57f770(0x23c)](_0x5990a8){const _0x59c466=_0x57f770;var _0x42bc64;return(_0x42bc64=this[_0x59c466(0x19b)][_0x59c466(0x1ff)](_0x43079d(_0x5990a8[_0x59c466(0x242)],_0x5990a8[_0x59c466(0x24b)])))==null?void 0x0:_0x42bc64['presentation'];}[_0x57f770(0x218)](_0x1d65ba){const _0x20dab1=_0x57f770;let _0x3802a9=this[_0x20dab1(0x19b)][_0x20dab1(0x1ff)](_0x43079d(_0x1d65ba['unitId'],_0x1d65ba['rangeId']));return _0x3802a9?_0x5a8e33(_0x3802a9):void 0x0;}[_0x57f770(0x259)](){const _0x4ddc9e=_0x57f770;return Array[_0x4ddc9e(0x1cb)](this[_0x4ddc9e(0x19b)]['values'](),_0x7c05d3=>({'identity':{'unitId':_0x7c05d3['unitId'],'rangeId':_0x7c05d3['rangeId']},'config':_0x7c05d3[_0x4ddc9e(0x1c4)],'referenceRevision':_0x7c05d3['referenceRevision'],..._0x7c05d3['liveResult']?{'liveResult':_0x7c05d3['liveResult']}:null}));}[_0x57f770(0x16b)](){const _0x1ca338=_0x57f770;for(let _0x17c78f of this[_0x1ca338(0x19b)][_0x1ca338(0x1c9)]())this[_0x1ca338(0x229)](_0x17c78f);this[_0x1ca338(0x19b)][_0x1ca338(0x1bf)](),this[_0x1ca338(0x270)]['clear'](),this[_0x1ca338(0x255)][_0x1ca338(0x165)](),super[_0x1ca338(0x16b)]();}['_updateFormulaResult'](_0x3c1bd1){const _0x3dcba6=_0x57f770;let _0x977ff8=this[_0x3dcba6(0x270)][_0x3dcba6(0x1ff)](_0x3c1bd1[_0x3dcba6(0x1f9)]),_0x4dc088=_0x977ff8?this[_0x3dcba6(0x19b)][_0x3dcba6(0x1ff)](_0x977ff8):void 0x0;_0x977ff8&&_0x4dc088&&(_0x4dc088[_0x3dcba6(0x1b5)]=_0x3c1bd1,this['_setPresentation'](_0x977ff8,_0x9dc728(_0x4dc088[_0x3dcba6(0x1c4)],_0x3c1bd1)));}[_0x57f770(0x279)](_0x4e0771,_0x302530){const _0x51a8e0=_0x57f770;var _0x15f7df,_0x4ad13f;let _0x72128a=this[_0x51a8e0(0x19b)][_0x51a8e0(0x1ff)](_0x4e0771);if(!_0x72128a||_0x30f295(_0x72128a[_0x51a8e0(0x263)],_0x302530))return;let _0x4654e6=_0x72128a[_0x51a8e0(0x263)],_0x3d8e55=_0x5a8e33(_0x72128a);_0x72128a[_0x51a8e0(0x263)]=_0x302530,this[_0x51a8e0(0x255)]['next']({'unitId':_0x72128a[_0x51a8e0(0x242)],'rangeId':_0x72128a[_0x51a8e0(0x24b)],'presentation':_0x302530,'previousPresentation':_0x4654e6,'result':_0x5a8e33(_0x72128a),'previousResult':{..._0x3d8e55,..._0x4654e6,'value':(_0x15f7df=_0x4654e6['cell'])==null?void 0x0:_0x15f7df['v'],'valueType':((_0x4ad13f=_0x4654e6[_0x51a8e0(0x184)])==null?void 0x0:_0x4ad13f['t'])??void 0x0}});}[_0x57f770(0x229)](_0x5004ed){const _0x359826=_0x57f770;_0x5004ed[_0x359826(0x1f9)]&&(this[_0x359826(0x15a)][_0x359826(0x22e)](_0x5004ed[_0x359826(0x242)],_0x5004ed['unitId'],[_0x5004ed[_0x359826(0x1f9)]]),this['_formulaKeys'][_0x359826(0x215)](_0x5004ed[_0x359826(0x1f9)]));}};_0x51a5f5=_0x4d4426([_0x52ecc4(0x0,(0x0,_0x4bed3b[_0x57f770(0x176)])(_0x419434)),_0x52ecc4(0x1,(0x0,_0x4bed3b[_0x57f770(0x176)])(_0x2b808c['RegisterOtherFormulaService'])),_0x52ecc4(0x2,(0x0,_0x4bed3b['Inject'])(_0x4e3069[_0x57f770(0x206)]))],_0x51a5f5);function _0x43079d(_0xd6e3eb,_0x1e7ae5){return _0xd6e3eb+'\x00'+_0x1e7ae5;}function _0x9dc728(_0x3936f0,_0x1ca06d){const _0x34b32d=_0x57f770;return(0x0,_0x4e3069[_0x34b32d(0x1d3)])({'numberFormat':_0x3936f0[_0x34b32d(0x177)],'lastValue':_0x3936f0[_0x34b32d(0x246)],'result':_0x1ca06d});}function _0x5a8e33(_0x15f867){const _0xcca399=_0x57f770;var _0x2e0d47,_0xce94f2,_0x11732a;let _0x2b036c=_0x15f867[_0xcca399(0x263)],_0x8554c1=_0x15f867[_0xcca399(0x1c4)][_0xcca399(0x1b8)]['trim']()?_0x2b036c['stale']||_0x2b036c[_0xcca399(0x184)]==null?_0xcca399(0x24f):((_0x2e0d47=_0x15f867['liveResult'])==null?void 0x0:_0x2e0d47['status'])===_0x2b808c[_0xcca399(0x224)]['ERROR']?_0xcca399(0x17f):_0xcca399(0x1e2):'empty';return{..._0x2b036c,'status':_0x8554c1,'value':(_0xce94f2=_0x2b036c[_0xcca399(0x184)])==null?void 0x0:_0xce94f2['v'],'valueType':((_0x11732a=_0x2b036c['cell'])==null?void 0x0:_0x11732a['t'])??void 0x0};}function _0x30f295(_0x157397,_0x36b063){const _0x3190cc=_0x57f770;var _0x3da0cc,_0x1aa229,_0x3210f9,_0x272814;return _0x157397['text']===_0x36b063[_0x3190cc(0x159)]&&_0x157397['color']===_0x36b063[_0x3190cc(0x1af)]&&_0x157397[_0x3190cc(0x28c)]===_0x36b063[_0x3190cc(0x28c)]&&_0x157397[_0x3190cc(0x18c)]===_0x36b063['source']&&_0x157397['stale']===_0x36b063[_0x3190cc(0x272)]&&((_0x3da0cc=_0x157397[_0x3190cc(0x184)])==null?void 0x0:_0x3da0cc['t'])===((_0x1aa229=_0x36b063[_0x3190cc(0x184)])==null?void 0x0:_0x1aa229['t'])&&Object['is']((_0x3210f9=_0x157397[_0x3190cc(0x184)])==null?void 0x0:_0x3210f9['v'],(_0x272814=_0x36b063[_0x3190cc(0x184)])==null?void 0x0:_0x272814['v']);}let _0x465b96={'id':_0x57f770(0x156),'type':_0x4bed3b['CommandType'][_0x57f770(0x1d8)],'handler':(_0x532d75,_0x4b1cb5)=>!(_0x4b1cb5!=null&&_0x4b1cb5[_0x57f770(0x242)])||!_0x4b1cb5[_0x57f770(0x24b)]||!_0x4b1cb5['config']?!0x1:_0x532d75[_0x57f770(0x1ff)](_0x419434)[_0x57f770(0x1a1)](_0x4b1cb5[_0x57f770(0x242)],_0x4b1cb5['rangeId'],_0x4b1cb5[_0x57f770(0x1c4)])},_0x30c2aa={'id':_0x57f770(0x16d),'type':_0x4bed3b['CommandType'][_0x57f770(0x1d8)],'handler':(_0x2ec433,_0x318f4c)=>!(_0x318f4c!=null&&_0x318f4c[_0x57f770(0x242)])||!_0x318f4c['rangeId']?!0x1:_0x2ec433['get'](_0x419434)[_0x57f770(0x231)](_0x318f4c[_0x57f770(0x242)],_0x318f4c['rangeId'])},_0x1b5161={'id':'docs-formula.mutation.set-resource','type':_0x4bed3b[_0x57f770(0x1f3)]['MUTATION'],'handler':(_0x2d7e55,_0x1c0907)=>!(_0x1c0907!=null&&_0x1c0907['unitId'])||!_0x1c0907[_0x57f770(0x1c1)]?!0x1:_0x2d7e55[_0x57f770(0x1ff)](_0x419434)[_0x57f770(0x22f)](_0x1c0907[_0x57f770(0x242)],_0x1c0907[_0x57f770(0x1c1)])},_0x2d9019={'id':'docs-formula.mutation.set-last-values','type':_0x4bed3b[_0x57f770(0x1f3)]['MUTATION'],'handler':(_0x389bd7,_0x1e8494)=>{const _0x25074=_0x57f770;if(!(_0x1e8494!=null&&_0x1e8494[_0x25074(0x242)])||!_0x1e8494['updates'][_0x25074(0x23b)])return!0x1;let _0x2e51fc=_0x389bd7[_0x25074(0x1ff)](_0x419434),_0x4c0f5d=_0x389bd7[_0x25074(0x1ff)](_0x4e3069[_0x25074(0x206)]),_0x60f2b0=_0x2e51fc[_0x25074(0x1c5)](_0x1e8494['unitId']);if(!_0x60f2b0)return!0x1;let _0x3e3ffc=_0x4bed3b[_0x25074(0x252)]['deepClone'](_0x60f2b0),_0x3cb65e=!0x1;for(let _0x472371 of _0x1e8494[_0x25074(0x249)]){var _0x219d62,_0x5be578,_0x5a579e,_0x233b23;let _0x4e50ca=_0x3e3ffc[_0x25074(0x20f)][_0x472371[_0x25074(0x24b)]];_0x4e50ca&&_0x4e50ca[_0x25074(0x1b8)]===_0x472371[_0x25074(0x274)]&&((_0x219d62=_0x4e50ca[_0x25074(0x177)])==null?void 0x0:_0x219d62[_0x25074(0x28c)])===_0x472371[_0x25074(0x245)]&&_0x4c0f5d[_0x25074(0x18f)](_0x1e8494['unitId'])===_0x472371[_0x25074(0x216)]&&(((_0x5be578=_0x4e50ca['lastValue'])==null?void 0x0:_0x5be578['v'])!==_0x472371[_0x25074(0x246)]['v']||((_0x5a579e=_0x4e50ca[_0x25074(0x246)])==null?void 0x0:_0x5a579e['t'])!==_0x472371[_0x25074(0x246)]['t']||((_0x233b23=_0x4e50ca[_0x25074(0x246)])==null?void 0x0:_0x233b23['pattern'])!==_0x472371[_0x25074(0x246)][_0x25074(0x28c)])&&(_0x4e50ca[_0x25074(0x246)]=_0x4bed3b[_0x25074(0x252)]['deepClone'](_0x472371['lastValue']),_0x3cb65e=!0x0);}return!_0x3cb65e||_0x2e51fc[_0x25074(0x22f)](_0x1e8494[_0x25074(0x242)],_0x3e3ffc);}},_0x2f5e40={'id':_0x57f770(0x209),'type':_0x4bed3b[_0x57f770(0x1f3)][_0x57f770(0x175)],'handler':(_0x48de4f,_0x1a48ed)=>{const _0x30cd5d=_0x57f770;if(!(_0x1a48ed!=null&&_0x1a48ed[_0x30cd5d(0x1b8)][_0x30cd5d(0x210)]()))return!0x1;let _0x97ceb2=_0x1c0b6b(_0x48de4f,_0x1a48ed[_0x30cd5d(0x242)],'');if(!_0x97ceb2)return!0x1;let _0x372431=_0x27bca5(_0x1a48ed[_0x30cd5d(0x1e9)],_0x97ceb2['body'],_0x172891(_0x48de4f,_0x97ceb2[_0x30cd5d(0x242)]));if(!_0x372431)return!0x1;let _0x20d9a3=_0x5a4c92(_0x48de4f,_0x97ceb2[_0x30cd5d(0x242)],_0x1a48ed['formula'],_0x1a48ed['externalReferences']??[]);if(!_0x20d9a3)return!0x1;let _0x3d697f=_0x2ae9aa(_0x97ceb2[_0x30cd5d(0x1b0)],_0x97ceb2[_0x30cd5d(0x1ae)],_0x97ceb2[_0x30cd5d(0x242)]),_0x2f3709=_0x3b7a23({'documentData':_0x97ceb2[_0x30cd5d(0x185)],'resource':_0x97ceb2[_0x30cd5d(0x1c1)],'rangeId':_0x3d697f,'config':{'formula':_0x1a48ed[_0x30cd5d(0x1b8)],..._0x1a48ed[_0x30cd5d(0x177)]?{'numberFormat':_0x1a48ed[_0x30cd5d(0x177)]}:null},'startOffset':_0x372431[_0x30cd5d(0x1ef)],'endOffset':_0x372431[_0x30cd5d(0x199)]});if(!_0x2f3709)return!0x1;let _0x2fd559=(0x0,_0x4e3069[_0x30cd5d(0x281)])(_0x48de4f,_0x97ceb2[_0x30cd5d(0x242)],_0x20d9a3);return!_0x2fd559||!_0x209fb5({'accessor':_0x48de4f,'document':_0x97ceb2[_0x30cd5d(0x225)],'unitId':_0x97ceb2['unitId'],'trigger':_0x2f5e40['id'],'rangeId':_0x3d697f,'previousResource':_0x97ceb2['resource'],'nextResource':_0x2f3709[_0x30cd5d(0x171)],'previousDocumentData':_0x97ceb2['documentData'],'nextDocumentData':_0x2f3709['nextDocumentData'],'cursorOffset':_0x2f3709[_0x30cd5d(0x1ba)],'externalMutations':_0x2fd559})?!0x1:{'rangeId':_0x3d697f,'startOffset':_0x2f3709[_0x30cd5d(0x1ba)]-0x1,'endOffset':_0x2f3709[_0x30cd5d(0x1ba)]};}},_0x1039f9={'id':'docs-formula.command.update','type':_0x4bed3b['CommandType']['COMMAND'],'handler':(_0x2c6eac,_0x1ad623)=>{const _0x4d9469=_0x57f770;if(!(_0x1ad623!=null&&_0x1ad623[_0x4d9469(0x24b)])||!_0x1ad623[_0x4d9469(0x1b8)][_0x4d9469(0x210)]())return!0x1;let _0x176cd2=_0x1c0b6b(_0x2c6eac,_0x1ad623[_0x4d9469(0x242)],''),_0x1978bc=_0x176cd2==null?void 0x0:_0x176cd2['model'][_0x4d9469(0x160)](_0x176cd2[_0x4d9469(0x242)],_0x1ad623[_0x4d9469(0x24b)]),_0x403c6e=_0x176cd2?_0x339a9d(_0x176cd2[_0x4d9469(0x185)]['body'],_0x1ad623[_0x4d9469(0x24b)]):void 0x0;if(!_0x176cd2||!_0x1978bc||!_0x403c6e)return!0x1;let _0x5141ec=_0x5a4c92(_0x2c6eac,_0x176cd2[_0x4d9469(0x242)],_0x1ad623[_0x4d9469(0x1b8)],_0x1ad623[_0x4d9469(0x256)]??[]);if(!_0x5141ec)return!0x1;let _0x38aa0b=(0x0,_0x4e3069[_0x4d9469(0x281)])(_0x2c6eac,_0x176cd2[_0x4d9469(0x242)],_0x5141ec);if(!_0x38aa0b)return!0x1;let _0x57b360=_0x585799(_0x176cd2[_0x4d9469(0x1c1)]);return _0x57b360[_0x4d9469(0x20f)][_0x1ad623['rangeId']]={'formula':_0x1ad623['formula'],..._0x1ad623[_0x4d9469(0x177)]?{'numberFormat':_0x1ad623[_0x4d9469(0x177)]}:_0x1978bc[_0x4d9469(0x177)]?{'numberFormat':_0x1978bc[_0x4d9469(0x177)]}:null},_0x209fb5({'accessor':_0x2c6eac,'document':_0x176cd2[_0x4d9469(0x225)],'unitId':_0x176cd2[_0x4d9469(0x242)],'trigger':_0x1039f9['id'],'rangeId':_0x1ad623[_0x4d9469(0x24b)],'previousResource':_0x176cd2[_0x4d9469(0x1c1)],'nextResource':_0x57b360,'cursorOffset':_0x403c6e[_0x4d9469(0x23a)]+0x1,'externalMutations':_0x38aa0b});}},_0x3c50cd={'id':_0x57f770(0x19a),'type':_0x4bed3b[_0x57f770(0x1f3)][_0x57f770(0x175)],'handler':(_0x4cc698,_0x36babf)=>{const _0x55f809=_0x57f770;if(!(_0x36babf!=null&&_0x36babf[_0x55f809(0x24b)]))return!0x1;let _0x435314=_0x1c0b6b(_0x4cc698,_0x36babf['unitId'],''),_0x25d19a=_0x435314==null?void 0x0:_0x435314[_0x55f809(0x1ae)][_0x55f809(0x160)](_0x435314[_0x55f809(0x242)],_0x36babf[_0x55f809(0x24b)]),_0x18d976=_0x435314?_0x339a9d(_0x435314[_0x55f809(0x185)][_0x55f809(0x1b0)],_0x36babf[_0x55f809(0x24b)]):void 0x0;if(!_0x435314||!_0x25d19a||!_0x18d976)return!0x1;let _0x2d91c0=_0x585799(_0x435314['resource']);return _0x2d91c0[_0x55f809(0x20f)][_0x36babf[_0x55f809(0x24b)]]={..._0x25d19a,..._0x36babf['numberFormat']?{'numberFormat':_0x36babf[_0x55f809(0x177)]}:null},_0x36babf[_0x55f809(0x177)]||delete _0x2d91c0[_0x55f809(0x20f)][_0x36babf[_0x55f809(0x24b)]]['numberFormat'],_0x209fb5({'accessor':_0x4cc698,'document':_0x435314[_0x55f809(0x225)],'unitId':_0x435314['unitId'],'trigger':_0x3c50cd['id'],'rangeId':_0x36babf['rangeId'],'previousResource':_0x435314[_0x55f809(0x1c1)],'nextResource':_0x2d91c0,'cursorOffset':_0x18d976[_0x55f809(0x23a)]+0x1,'externalMutations':{}});}},_0x16b842={'id':_0x57f770(0x275),'type':_0x4bed3b['CommandType']['COMMAND'],'handler':(_0x448578,_0xba8508)=>_0x278e44(_0x448578,_0xba8508,'',_0x16b842['id'])},_0x4fdf1c={'id':'docs-formula.command.replace-with-text','type':_0x4bed3b['CommandType'][_0x57f770(0x175)],'handler':(_0x45657d,_0x38f557)=>_0x278e44(_0x45657d,_0x38f557,(_0x38f557==null?void 0x0:_0x38f557[_0x57f770(0x159)])??'',_0x4fdf1c['id'])},_0x38dc53={'id':_0x57f770(0x194),'type':_0x4bed3b['CommandType'][_0x57f770(0x175)],'handler':(_0x2fa56a,_0x484874)=>{const _0x4df6c4=_0x57f770;if(!(_0x484874!=null&&_0x484874['rangeId']))return!0x1;let _0x2ec813=_0x1c0b6b(_0x2fa56a,_0x484874['unitId'],'');if(!_0x2ec813)return!0x1;let _0x13fe72=_0x2fa56a[_0x4df6c4(0x1ff)](_0x51a5f5)[_0x4df6c4(0x218)]({'unitId':_0x2ec813[_0x4df6c4(0x242)],'rangeId':_0x484874['rangeId']});return _0x13fe72?_0x278e44(_0x2fa56a,_0x484874,_0x13fe72[_0x4df6c4(0x159)],_0x38dc53['id']):!0x1;}};function _0x278e44(_0x15e5e3,_0x2483b1,_0x4d2562,_0x2b0b1d){const _0x477759=_0x57f770;if(!(_0x2483b1!=null&&_0x2483b1[_0x477759(0x24b)]))return!0x1;let _0x13abe4=_0x1c0b6b(_0x15e5e3,_0x2483b1['unitId'],'');if(!_0x13abe4)return!0x1;let _0x38e485=_0x562d2a({'documentData':_0x13abe4['documentData'],'resource':_0x13abe4[_0x477759(0x1c1)],'rangeId':_0x2483b1[_0x477759(0x24b)],'text':_0x4d2562});return _0x38e485?_0x209fb5({'accessor':_0x15e5e3,'document':_0x13abe4[_0x477759(0x225)],'unitId':_0x13abe4[_0x477759(0x242)],'trigger':_0x2b0b1d,'rangeId':_0x2483b1[_0x477759(0x24b)],'previousResource':_0x13abe4[_0x477759(0x1c1)],'nextResource':_0x38e485[_0x477759(0x171)],'previousDocumentData':_0x13abe4[_0x477759(0x185)],'nextDocumentData':_0x38e485['nextDocumentData'],'cursorOffset':_0x38e485['cursorOffset'],'externalMutations':{}}):!0x1;}function _0x1c0b6b(_0x4e46d1,_0x217b71,_0x33ba99){const _0x1518df=_0x57f770;if(_0x33ba99)return null;let _0x3a428b=_0x4e46d1[_0x1518df(0x1ff)](_0x4bed3b[_0x1518df(0x1f5)]),_0x59a6a2=(_0x217b71?_0x3a428b['getUnit'](_0x217b71,_0x4bed3b[_0x1518df(0x1eb)][_0x1518df(0x20e)]):_0x3a428b[_0x1518df(0x26e)](_0x4bed3b[_0x1518df(0x1eb)]['UNIVER_DOC']))??null;if(!_0x59a6a2)return null;let _0x5dc553=_0x59a6a2[_0x1518df(0x166)](),_0x34594d=_0x5dc553['body'];if(_0x5dc553['disabled']||!_0x34594d)return null;let _0x594f06=_0x4e46d1[_0x1518df(0x1ff)](_0x419434);return _0x594f06[_0x1518df(0x15f)](_0x59a6a2[_0x1518df(0x1fe)]())?null:{'document':_0x59a6a2,'body':_0x34594d,'documentData':_0x5dc553,'model':_0x594f06,'resource':_0x594f06[_0x1518df(0x1c5)](_0x59a6a2[_0x1518df(0x1fe)]())??_0x5e4c14(),'unitId':_0x59a6a2[_0x1518df(0x1fe)]()};}function _0x172891(_0x1c00f1,_0x3655fd){const _0x374f54=_0x57f770;var _0x17f36c;return(_0x17f36c=_0x1c00f1[_0x374f54(0x1ff)](_0x4e7dc9['DocSelectionManagerService'])['getTextRanges']({'subUnitId':_0x3655fd,'unitId':_0x3655fd}))==null?void 0x0:_0x17f36c[0x0];}function _0x27bca5(_0x506c7e,_0x201eb0,_0x474dae){const _0x5940c3=_0x57f770;if((_0x506c7e==null?void 0x0:_0x506c7e[_0x5940c3(0x1db)])==='paragraph'){var _0xd032c5;let _0x579182=((_0xd032c5=_0x201eb0[_0x5940c3(0x21f)])==null?void 0x0:_0xd032c5['filter'](_0xe84f4=>_0xe84f4[_0x5940c3(0x277)]===_0x506c7e[_0x5940c3(0x277)]))??[];if(_0x579182[_0x5940c3(0x23b)]!==0x1)return null;let _0x5ea958=_0x579182[0x0],_0x56f2ba=(0x0,_0x4bed3b[_0x5940c3(0x170)])(_0x201eb0,_0x5ea958),_0x1d4fb9=_0x5ea958[_0x5940c3(0x268)]-_0x56f2ba,_0x428551=_0x506c7e[_0x5940c3(0x237)]===_0x5940c3(0x1a4)?_0x1d4fb9:_0x506c7e[_0x5940c3(0x237)];if(!Number[_0x5940c3(0x23f)](_0x428551)||_0x428551<0x0||_0x428551>_0x1d4fb9)return null;let _0x17950e=_0x56f2ba+_0x428551;return{'startOffset':_0x17950e,'endOffset':_0x17950e};}if((_0x506c7e==null?void 0x0:_0x506c7e[_0x5940c3(0x1db)])===_0x5940c3(0x1b6))return!Number[_0x5940c3(0x23f)](_0x506c7e[_0x5940c3(0x1ef)])||!Number['isInteger'](_0x506c7e['endOffset'])?null:{'startOffset':Math['min'](_0x506c7e[_0x5940c3(0x1ef)],_0x506c7e['endOffset']),'endOffset':Math[_0x5940c3(0x219)](_0x506c7e[_0x5940c3(0x1ef)],_0x506c7e[_0x5940c3(0x199)])};let _0x333a73=(_0x506c7e==null?void 0x0:_0x506c7e[_0x5940c3(0x1db)])===_0x5940c3(0x257)?_0x506c7e[_0x5940c3(0x257)]:_0x474dae;return!_0x333a73||_0x333a73[_0x5940c3(0x1fc)]?null:{'startOffset':Math[_0x5940c3(0x254)](_0x333a73['startOffset'],_0x333a73[_0x5940c3(0x199)]),'endOffset':Math[_0x5940c3(0x219)](_0x333a73[_0x5940c3(0x1ef)],_0x333a73[_0x5940c3(0x199)])};}function _0x5a4c92(_0xc083c8,_0x4416af,_0x2a267b,_0x1458fe){const _0x221c36=_0x57f770;let _0x2ad00e=_0xc083c8['get'](_0x2b808c[_0x221c36(0x204)]),_0x3f168f=_0x2a267b['startsWith']('=')?_0x2a267b[_0x221c36(0x25b)](0x1):_0x2a267b,_0x1e5a11=_0x2ad00e[_0x221c36(0x276)](_0x3f168f);if(!_0x1e5a11)return null;let _0x44d699=_0xc083c8[_0x221c36(0x1ff)](_0x4e3069[_0x221c36(0x206)]),_0x1774e6=(0x0,_0x4e3069['resolveHostFormulaExternalReferences'])({'qualifiers':(0x0,_0x4e3069['collectFormulaExternalReferenceQualifiers'])(_0x1e5a11),'explicitReferences':_0x1458fe??[],'resolveBinding':_0x264af4=>_0x44d699[_0x221c36(0x1fd)](_0x4416af,_0x264af4)});return _0x1774e6['status']==='resolved'?_0x1774e6[_0x221c36(0x151)]:null;}function _0x2ae9aa(_0x579e25,_0x143e71,_0x269f38){const _0x59e34d=_0x57f770;var _0x32d90f;let _0x533681=(0x0,_0x4bed3b[_0x59e34d(0x183)])(0x6);for(;_0x579e25!=null&&(_0x32d90f=_0x579e25[_0x59e34d(0x15e)])!=null&&_0x32d90f[_0x59e34d(0x25e)](_0x184879=>_0x184879['rangeId']===_0x533681)||_0x143e71[_0x59e34d(0x160)](_0x269f38,_0x533681);)_0x533681=(0x0,_0x4bed3b[_0x59e34d(0x183)])(0x6);return _0x533681;}function _0x3b7a23(_0x3fba6a){try{return _0x2e6ab7(_0x3fba6a);}catch(_0x2c0277){if(_0x2c0277 instanceof _0x4b9dca)return null;throw _0x2c0277;}}function _0x355c8a(_0x17713c){const _0x5a6781=_0x57f770;let _0xfdcde8=_0x17713c[_0x5a6781(0x15d)]&&_0x17713c[_0x5a6781(0x17e)]?_0x16c2eb(_0x17713c[_0x5a6781(0x225)],_0x17713c[_0x5a6781(0x242)],_0x17713c[_0x5a6781(0x15d)],_0x17713c['nextDocumentData'],_0x17713c[_0x5a6781(0x1ba)],_0x17713c[_0x5a6781(0x1a2)]):null;return _0x17713c[_0x5a6781(0x15d)]&&_0x17713c[_0x5a6781(0x17e)]&&!_0xfdcde8?null:{'documentRedo':_0xfdcde8,'resourceRedo':{'id':_0x1b5161['id'],'params':{'unitId':_0x17713c[_0x5a6781(0x242)],'resource':_0x17713c['nextResource']}},'resourceUndo':{'id':_0x1b5161['id'],'params':{'unitId':_0x17713c[_0x5a6781(0x242)],'resource':_0x17713c[_0x5a6781(0x164)]}}};}function _0x1cbe6a(_0x572fd4,_0xe0dcd0,_0x508abd,_0x16a430){const _0x11d999=_0x57f770;_0x16a430[_0x11d999(0x226)]({'id':_0x572fd4[_0x11d999(0x1a2)]+':'+_0x572fd4['rangeId'],'unitID':_0x572fd4[_0x11d999(0x242)],'redoMutations':[..._0x572fd4[_0x11d999(0x1e8)][_0x11d999(0x26f)]?[_0x572fd4['externalMutations'][_0x11d999(0x26f)]]:[],..._0xe0dcd0[_0x11d999(0x157)]?[_0xe0dcd0[_0x11d999(0x157)]]:[],_0xe0dcd0[_0x11d999(0x191)]],'undoMutations':[_0xe0dcd0['resourceUndo'],..._0x508abd?[_0x508abd]:[],..._0x572fd4[_0x11d999(0x1e8)]['undoMutation']?[_0x572fd4[_0x11d999(0x1e8)][_0x11d999(0x288)]]:[]]});}function _0x209fb5(_0x1cfef8){const _0x5454ee=_0x57f770;let _0x435633=_0x1cfef8[_0x5454ee(0x187)][_0x5454ee(0x1ff)](_0x4bed3b[_0x5454ee(0x15c)]),_0x137c70=_0x1cfef8[_0x5454ee(0x187)][_0x5454ee(0x1ff)](_0x4bed3b[_0x5454ee(0x1d6)]),_0x12ca65=_0x1cfef8[_0x5454ee(0x187)][_0x5454ee(0x1ff)](_0x4e7dc9[_0x5454ee(0x258)]),_0x43f89b=_0x355c8a(_0x1cfef8);if(!_0x43f89b)return!0x1;let _0x1c3eb5=!0x1,_0x4ee6ac=null,_0x3f204e=!0x1;try{if(_0x1cfef8[_0x5454ee(0x1e8)][_0x5454ee(0x26f)]){if(!_0x435633[_0x5454ee(0x1ed)](_0x1cfef8[_0x5454ee(0x1e8)][_0x5454ee(0x26f)]['id'],_0x1cfef8['externalMutations'][_0x5454ee(0x26f)]['params']))return!0x1;_0x1c3eb5=!0x0;}if(_0x43f89b[_0x5454ee(0x157)]){let _0xe168ed=_0x435633[_0x5454ee(0x1ed)](_0x43f89b[_0x5454ee(0x157)]['id'],_0x43f89b[_0x5454ee(0x157)][_0x5454ee(0x1a7)]);if(!_0xe168ed)return _0x5069c3(_0x435633,_0x1cfef8[_0x5454ee(0x1e8)],_0x1c3eb5),!0x1;_0x4ee6ac={'id':_0x4e7dc9['RichTextEditingMutation']['id'],'params':{..._0xe168ed,'noHistory':!0x0,'noNeedSetTextRange':!0x0,'segmentId':''}};}if(!_0x435633[_0x5454ee(0x1ed)](_0x43f89b[_0x5454ee(0x191)]['id'],_0x43f89b[_0x5454ee(0x191)][_0x5454ee(0x1a7)]))return _0x256a50(_0x435633,_0x4ee6ac),_0x5069c3(_0x435633,_0x1cfef8[_0x5454ee(0x1e8)],_0x1c3eb5),!0x1;_0x3f204e=!0x0,_0x1cbe6a(_0x1cfef8,_0x43f89b,_0x4ee6ac,_0x137c70);}catch(_0x1a93d8){throw _0x3f204e&&_0x435633[_0x5454ee(0x1ed)](_0x43f89b[_0x5454ee(0x1c6)]['id'],_0x43f89b[_0x5454ee(0x1c6)][_0x5454ee(0x1a7)]),_0x256a50(_0x435633,_0x4ee6ac),_0x5069c3(_0x435633,_0x1cfef8[_0x5454ee(0x1e8)],_0x1c3eb5),_0x1a93d8;}return _0x12ca65[_0x5454ee(0x1d1)]([{'startOffset':_0x1cfef8['cursorOffset'],'endOffset':_0x1cfef8[_0x5454ee(0x1ba)],'segmentId':''}],{'unitId':_0x1cfef8[_0x5454ee(0x242)],'subUnitId':_0x1cfef8[_0x5454ee(0x242)]},!0x1,{[_0x4e7dc9[_0x5454ee(0x1ee)]]:!0x0}),!0x0;}function _0x16c2eb(_0x55726a,_0x4f22e4,_0x1220fd,_0x37ad29,_0x37bd8f,_0x2aebe6){const _0x38b58a=_0x57f770;let _0xf23582=_0x3587e4(_0x1220fd,_0x37ad29,(0x0,_0x4bed3b['getRichTextEditPath'])(_0x55726a,''));return _0xf23582?{'id':_0x4e7dc9[_0x38b58a(0x181)]['id'],'params':{'unitId':_0x4f22e4,'actions':_0xf23582,'segmentId':'','textRanges':[{'startOffset':_0x37bd8f,'endOffset':_0x37bd8f,'collapsed':!0x0,'segmentId':''}],'isEditing':!0x1,'noHistory':!0x0,'noNeedSetTextRange':!0x0,'trigger':_0x2aebe6}}:null;}function _0x256a50(_0x24c384,_0xdf65ae){const _0xf51b4d=_0x57f770;_0xdf65ae&&_0x24c384[_0xf51b4d(0x1ed)](_0xdf65ae['id'],_0xdf65ae[_0xf51b4d(0x1a7)]);}function _0x5069c3(_0x2a7ac1,_0x3dfc0d,_0x10d274){const _0x165818=_0x57f770;_0x10d274&&_0x3dfc0d['undoMutation']&&_0x2a7ac1[_0x165818(0x1ed)](_0x3dfc0d[_0x165818(0x288)]['id'],_0x3dfc0d['undoMutation']['params']);}function _0x3587e4(_0x2266c1,_0x300f85,_0x4c1999){const _0x17ada=_0x57f770;let _0x243f5a=_0x2266c1[_0x17ada(0x1b0)],_0x313cdf=_0x300f85[_0x17ada(0x1b0)],_0x54892e=_0x400a80(_0x243f5a==null?void 0x0:_0x243f5a[_0x17ada(0x25f)],_0x313cdf==null?void 0x0:_0x313cdf['dataStream']);if(!_0x54892e||!_0x313cdf)return null;let _0x2db9ab=new _0x4bed3b['TextX']();return _0x2db9ab[_0x17ada(0x186)](_0x54892e['start']),_0x54892e[_0x17ada(0x193)]>0x0&&_0x2db9ab[_0x17ada(0x21d)](_0x54892e[_0x17ada(0x193)],(0x0,_0x4bed3b[_0x17ada(0x154)])(_0x313cdf,_0x54892e[_0x17ada(0x155)],_0x54892e[_0x17ada(0x155)]+_0x54892e[_0x17ada(0x193)],!0x1)),_0x54892e[_0x17ada(0x1b1)]>0x0&&_0x2db9ab[_0x17ada(0x215)](_0x54892e[_0x17ada(0x1b1)]),_0x4bed3b[_0x17ada(0x150)]['getInstance']()[_0x17ada(0x1c0)](_0x2db9ab['serialize'](),_0x4c1999);}function _0x400a80(_0x42e84e,_0x122426){const _0x46c2d1=_0x57f770;if(_0x42e84e==null||_0x122426==null||_0x42e84e===_0x122426)return null;let _0xf47a9=0x0;for(;_0xf47a9<_0x42e84e[_0x46c2d1(0x23b)]&&_0xf47a9<_0x122426['length']&&_0x42e84e[_0xf47a9]===_0x122426[_0xf47a9];)_0xf47a9+=0x1;let _0x996816=_0x42e84e[_0x46c2d1(0x23b)],_0x589cbb=_0x122426[_0x46c2d1(0x23b)];for(;_0x996816>_0xf47a9&&_0x589cbb>_0xf47a9&&_0x42e84e[_0x996816-0x1]===_0x122426[_0x589cbb-0x1];)--_0x996816,--_0x589cbb;return{'start':_0xf47a9,'deleteLength':_0x996816-_0xf47a9,'insertLength':_0x589cbb-_0xf47a9};}function _0x585799(_0x50b140){const _0x467696=_0x57f770;return{'schemaVersion':0x1,'formulas':Object[_0x467696(0x16f)](Object['entries'](_0x50b140['formulas'])[_0x467696(0x261)](([_0x4b1111,_0x5a8865])=>[_0x4b1111,{..._0x5a8865,..._0x5a8865[_0x467696(0x177)]?{'numberFormat':{..._0x5a8865[_0x467696(0x177)]}}:null,..._0x5a8865[_0x467696(0x246)]?{'lastValue':{..._0x5a8865[_0x467696(0x246)]}}:null}]))};}let _0x57ea5b=class extends _0x4bed3b[_0x57f770(0x267)]{constructor(_0xfcef5b,_0x4edee6,_0x3b2fb7,_0x3bd260){const _0x1804fb=_0x57f770;super(),this[_0x1804fb(0x282)]=_0xfcef5b,this[_0x1804fb(0x244)]=_0x4edee6,this[_0x1804fb(0x211)]=_0x3b2fb7,this['_service']=_0x3bd260,_0x2c07ac(this,_0x1804fb(0x1ce),new Set()),_0x2c07ac(this,_0x1804fb(0x1ea),!0x1),_0x2c07ac(this,_0x1804fb(0x284),!0x1),this[_0x1804fb(0x282)][_0x1804fb(0x286)](_0x4bed3b[_0x1804fb(0x1eb)]['UNIVER_DOC'])[_0x1804fb(0x1e1)](_0xa2d827=>this[_0x1804fb(0x253)]['syncUnit'](_0xa2d827)),this[_0x1804fb(0x1c3)](this[_0x1804fb(0x211)][_0x1804fb(0x153)][_0x1804fb(0x243)](({unitId:_0x4b97a0})=>this['_syncUnit'](_0x4b97a0))),this[_0x1804fb(0x1c3)](this[_0x1804fb(0x282)]['unitAdded$'][_0x1804fb(0x243)](({unit:_0x235704})=>{const _0x2aa4e6=_0x1804fb;_0x235704[_0x2aa4e6(0x1db)]===_0x4bed3b['UniverInstanceType'][_0x2aa4e6(0x20e)]&&this['_queueSync'](_0x235704[_0x2aa4e6(0x1fe)]());})),this[_0x1804fb(0x1c3)](this['_instanceService']['unitDisposed$'][_0x1804fb(0x243)](_0x5ce540=>{const _0x53ca8d=_0x1804fb;this[_0x53ca8d(0x253)][_0x53ca8d(0x22c)](_0x5ce540[_0x53ca8d(0x1fe)]());})),this[_0x1804fb(0x1c3)](this[_0x1804fb(0x244)][_0x1804fb(0x27f)](_0x4e7282=>{const _0x4daf88=_0x1804fb;if(_0x4e7282['id']===_0x4e7dc9[_0x4daf88(0x181)]['id']&&_0x10b641(_0x4e7282['params'])){let _0x483c05=_0x4e7282[_0x4daf88(0x1a7)];_0x483c05[_0x4daf88(0x1fc)]||this[_0x4daf88(0x1ab)](_0x483c05[_0x4daf88(0x242)]);}}));}[_0x57f770(0x16b)](){const _0x49f91a=_0x57f770;this['_isDisposed']=!0x0,super[_0x49f91a(0x16b)]();}[_0x57f770(0x20d)](_0x32868f){const _0x53bbac=_0x57f770;this[_0x53bbac(0x1ce)][_0x53bbac(0x28b)](_0x32868f),!this['_syncScheduled']&&(this[_0x53bbac(0x1ea)]=!0x0,queueMicrotask(()=>{const _0x324d44=_0x53bbac;if(this[_0x324d44(0x1ea)]=!0x1,this[_0x324d44(0x284)])return;let _0x21f1ef=Array[_0x324d44(0x1cb)](this[_0x324d44(0x1ce)]);this[_0x324d44(0x1ce)][_0x324d44(0x1bf)](),_0x21f1ef[_0x324d44(0x1e1)](_0x1c48bf=>this['_syncUnit'](_0x1c48bf));}));}[_0x57f770(0x1ab)](_0x5bd09e){const _0x4d7d9d=_0x57f770;let _0x151ec4=this[_0x4d7d9d(0x282)]['getUnit'](_0x5bd09e,_0x4bed3b[_0x4d7d9d(0x1eb)][_0x4d7d9d(0x20e)]);_0x151ec4&&this['_service'][_0x4d7d9d(0x179)](_0x151ec4);}};_0x57ea5b=_0x4d4426([_0x52ecc4(0x0,_0x4bed3b[_0x57f770(0x1f5)]),_0x52ecc4(0x1,_0x4bed3b[_0x57f770(0x15c)]),_0x52ecc4(0x2,(0x0,_0x4bed3b[_0x57f770(0x176)])(_0x419434)),_0x52ecc4(0x3,(0x0,_0x4bed3b[_0x57f770(0x176)])(_0x51a5f5))],_0x57ea5b);function _0x10b641(_0x46669c){const _0xc362d6=_0x57f770;return typeof _0x46669c==_0xc362d6(0x1a5)&&!!_0x46669c&&_0xc362d6(0x242)in _0x46669c&&typeof _0x46669c[_0xc362d6(0x242)]==_0xc362d6(0x262)&&(!('segmentId'in _0x46669c)||_0x46669c['segmentId']===void 0x0||typeof _0x46669c['segmentId']==_0xc362d6(0x262));}let _0x206277=class extends _0x4bed3b[_0x57f770(0x267)]{constructor(_0x30f2ac,_0x1be1c7){const _0x31890b=_0x57f770;super(),this['_resourceManagerService']=_0x30f2ac,this[_0x31890b(0x233)]=_0x1be1c7,this[_0x31890b(0x1c3)](this['_resourceManagerService'][_0x31890b(0x17a)]({'pluginName':_0xd27543,'businesses':[_0x4bed3b[_0x31890b(0x1eb)][_0x31890b(0x20e)]],'toJson':_0xcff78b=>JSON[_0x31890b(0x27b)](this[_0x31890b(0x233)][_0x31890b(0x238)](_0xcff78b)),'parseJson':_0x2946b2=>JSON[_0x31890b(0x1b7)](_0x2946b2),'onLoad':(_0x3f977a,_0x15759e)=>{const _0x3f3a8f=_0x31890b;this[_0x3f3a8f(0x233)][_0x3f3a8f(0x180)](_0x3f977a,_0x15759e);},'onUnLoad':_0x25ce7b=>this[_0x31890b(0x233)]['removeUnit'](_0x25ce7b)}));}};_0x206277=_0x4d4426([_0x52ecc4(0x0,_0x4bed3b[_0x57f770(0x22a)]),_0x52ecc4(0x1,(0x0,_0x4bed3b[_0x57f770(0x176)])(_0x419434))],_0x206277);var _0x330da3=_0x57f770(0x28a),_0x181800='1.0.2';let _0x463c63={},_0x5e85b3=class extends _0x4bed3b[_0x57f770(0x267)]{constructor(_0x1132bf,_0x4c24ce,_0x1d17e0){const _0x2a961d=_0x57f770;super(),this['_univerInstanceService']=_0x1132bf,this[_0x2a961d(0x20a)]=_0x4c24ce,this['disposeWithMe'](_0x1d17e0[_0x2a961d(0x217)]({'resolve':(_0x382bb9,_0x2abd9e)=>{const _0x37b518=_0x2a961d;var _0x34171b;return((_0x34171b=_0x2abd9e[_0x37b518(0x15e)])==null?void 0x0:_0x34171b[_0x37b518(0x25d)](_0x3f3a71)[_0x37b518(0x261)](_0x29e438=>({'startOffset':_0x29e438[_0x37b518(0x268)],'endOffset':_0x29e438[_0x37b518(0x23a)]+0x1,'text':this[_0x37b518(0x1e6)](_0x382bb9,_0x29e438['rangeId'])})))??[];}})),this[_0x2a961d(0x1c3)](this[_0x2a961d(0x20a)][_0x2a961d(0x1e4)][_0x2a961d(0x243)](({unitId:_0x188d13})=>{_0x1d17e0['notifyTextChanged'](_0x188d13);}));}[_0x57f770(0x1e6)](_0x175d42,_0x1a4c84){const _0x25edf7=_0x57f770;var _0x4bbe53;return((_0x4bbe53=this[_0x25edf7(0x20a)][_0x25edf7(0x218)]({'unitId':_0x175d42,'rangeId':_0x1a4c84}))==null?void 0x0:_0x4bbe53[_0x25edf7(0x159)])??'';}[_0x57f770(0x19d)](_0x8e1fc6,_0x5d87ff,_0x27f10f){const _0x19da30=_0x57f770;var _0x54b4f3;let _0x6f643b=this[_0x19da30(0x24a)][_0x19da30(0x212)](_0x8e1fc6,_0x4bed3b['UniverInstanceType'][_0x19da30(0x20e)]),_0x418c21=_0x6f643b==null?void 0x0:_0x6f643b[_0x19da30(0x190)]();if(!_0x418c21)return'';let _0x228e01=_0x418c21['dataStream']['slice'](_0x5d87ff,_0x27f10f),_0x3324ee=((_0x54b4f3=_0x418c21['customRanges'])==null?void 0x0:_0x54b4f3[_0x19da30(0x25d)](_0x58e2fe=>_0x3f3a71(_0x58e2fe)&&_0x58e2fe[_0x19da30(0x268)]>=_0x5d87ff&&_0x58e2fe['endIndex']<_0x27f10f)[_0x19da30(0x287)]((_0x5020f5,_0x17004e)=>_0x17004e['startIndex']-_0x5020f5[_0x19da30(0x268)]))??[];for(let _0x41cf66 of _0x3324ee){let _0x2c4695=_0x41cf66[_0x19da30(0x268)]-_0x5d87ff,_0x13e856=_0x41cf66[_0x19da30(0x23a)]-_0x5d87ff+0x1;_0x228e01=''+_0x228e01[_0x19da30(0x25b)](0x0,_0x2c4695)+this[_0x19da30(0x1e6)](_0x8e1fc6,_0x41cf66[_0x19da30(0x24b)])+_0x228e01[_0x19da30(0x25b)](_0x13e856);}return _0x228e01;}['degradeDocumentData'](_0x39b34e){return _0x1baa5f(_0x39b34e);}[_0x57f770(0x189)](_0x57137c,_0x42796b,_0x4d88ba={}){const _0xff1088=_0x57f770;var _0x312e6c;return _0x12f0e6({'id':_0x57137c,'body':_0x42796b,'documentStyle':{}},(((_0x312e6c=_0x42796b[_0xff1088(0x15e)])==null?void 0x0:_0x312e6c['filter'](_0x3f3a71))??[])[_0xff1088(0x261)](_0x1abd5b=>({'rangeId':_0x1abd5b[_0xff1088(0x24b)],'text':_0x4d88ba[_0x1abd5b[_0xff1088(0x24b)]]??this[_0xff1088(0x1e6)](_0x57137c,_0x1abd5b[_0xff1088(0x24b)])})))[_0xff1088(0x1b0)]??{'dataStream':''};}};_0x5e85b3=_0x4d4426([_0x52ecc4(0x0,_0x4bed3b[_0x57f770(0x1f5)]),_0x52ecc4(0x1,(0x0,_0x4bed3b[_0x57f770(0x176)])(_0x51a5f5)),_0x52ecc4(0x2,(0x0,_0x4bed3b[_0x57f770(0x176)])(_0x4e7dc9[_0x57f770(0x214)]))],_0x5e85b3);function _0x1baa5f(_0x4629b5){const _0x40b484=_0x57f770;var _0x40b8b7,_0x40a704;let _0x183b67=_0x410d65(_0x4629b5),_0x3e15f6=_0x12f0e6(_0x4629b5,(((_0x40b8b7=_0x4629b5[_0x40b484(0x1b0)])==null||(_0x40b8b7=_0x40b8b7[_0x40b484(0x15e)])==null?void 0x0:_0x40b8b7[_0x40b484(0x25d)](_0x3f3a71))??[])[_0x40b484(0x261)](_0x22df74=>({'rangeId':_0x22df74[_0x40b484(0x24b)],'text':_0x59843b(_0x183b67==null?void 0x0:_0x183b67[_0x40b484(0x20f)][_0x22df74[_0x40b484(0x24b)]])})));return _0x3e15f6[_0x40b484(0x1ad)]=(_0x40a704=_0x3e15f6[_0x40b484(0x1ad)])==null?void 0x0:_0x40a704[_0x40b484(0x25d)](_0x428713=>_0x428713[_0x40b484(0x18e)]!==_0xd27543),_0x3e15f6;}function _0x410d65(_0x145552){const _0x2b3afb=_0x57f770;var _0xcfd1a0;let _0x402897=(_0xcfd1a0=_0x145552[_0x2b3afb(0x1ad)])==null||(_0xcfd1a0=_0xcfd1a0['find'](_0x301c71=>_0x301c71[_0x2b3afb(0x18e)]===_0x2b3afb(0x162)))==null?void 0x0:_0xcfd1a0[_0x2b3afb(0x1f4)];if(_0x402897)try{let _0x4b257=JSON[_0x2b3afb(0x1b7)](_0x402897);return _0x2c51c9(_0x4b257)?_0x4b257:void 0x0;}catch{return;}}function _0x59843b(_0x1021b9){const _0x5cf135=_0x57f770;return _0x1021b9?(0x0,_0x4e3069[_0x5cf135(0x1d3)])({'lastValue':_0x1021b9[_0x5cf135(0x246)],'numberFormat':_0x1021b9['numberFormat']})[_0x5cf135(0x159)]:'';}let _0x56817c=class extends _0x4bed3b[_0x57f770(0x267)]{constructor(_0xcde45b,_0x1a74f7,_0x255a55){const _0x16e531=_0x57f770;super(),this[_0x16e531(0x20a)]=_0xcde45b,this[_0x16e531(0x207)]=_0x1a74f7,this[_0x16e531(0x1c3)](_0x255a55[_0x16e531(0x250)](this));}[_0x57f770(0x152)](_0x3f9d80){const _0x4e6460=_0x57f770;let _0x3d685b=new Map();for(let _0x370a13 of this[_0x4e6460(0x20a)]['getRegisteredFormulas']()){var _0x37ac0b;if(!this[_0x4e6460(0x207)][_0x4e6460(0x173)](_0x370a13['config'][_0x4e6460(0x1b8)],_0x370a13[_0x4e6460(0x1b5)])[_0x4e6460(0x18a)])continue;let _0x57c855=(0x0,_0x4e3069[_0x4e6460(0x161)])(_0x370a13[_0x4e6460(0x1b5)]),_0x426fff=_0x57c855?(0x0,_0x4e3069['toFormulaLastValue'])(_0x57c855):null;if(!_0x426fff||_0x40bd36(_0x370a13['config'][_0x4e6460(0x246)],_0x426fff))continue;let _0x174465=_0x3d685b[_0x4e6460(0x1ff)](_0x370a13[_0x4e6460(0x168)][_0x4e6460(0x242)])??[];_0x174465[_0x4e6460(0x236)]({'rangeId':_0x370a13[_0x4e6460(0x168)][_0x4e6460(0x24b)],'expectedFormula':_0x370a13[_0x4e6460(0x1c4)][_0x4e6460(0x1b8)],'expectedNumberFormat':(_0x37ac0b=_0x370a13[_0x4e6460(0x1c4)][_0x4e6460(0x177)])==null?void 0x0:_0x37ac0b[_0x4e6460(0x28c)],'expectedReferenceRevision':_0x370a13[_0x4e6460(0x27a)],'lastValue':_0x426fff}),_0x3d685b[_0x4e6460(0x1e7)](_0x370a13[_0x4e6460(0x168)][_0x4e6460(0x242)],_0x174465);}return Array[_0x4e6460(0x1cb)](_0x3d685b,([_0x599279,_0x52115e])=>({'id':_0x2d9019['id'],'params':{'unitId':_0x599279,'updates':_0x52115e}}));}};_0x56817c=_0x4d4426([_0x52ecc4(0x0,(0x0,_0x4bed3b[_0x57f770(0x176)])(_0x51a5f5)),_0x52ecc4(0x1,(0x0,_0x4bed3b[_0x57f770(0x176)])(_0x4e3069[_0x57f770(0x248)])),_0x52ecc4(0x2,(0x0,_0x4bed3b[_0x57f770(0x176)])(_0x4e3069[_0x57f770(0x205)]))],_0x56817c);function _0x40bd36(_0x23356c,_0x5dfaa3){const _0x3bd951=_0x57f770;return(_0x23356c==null?void 0x0:_0x23356c['v'])===_0x5dfaa3['v']&&(_0x23356c==null?void 0x0:_0x23356c['t'])===_0x5dfaa3['t']&&(_0x23356c==null?void 0x0:_0x23356c[_0x3bd951(0x28c)])===_0x5dfaa3[_0x3bd951(0x28c)];}let _0x2f90cc=class extends _0x4bed3b[_0x57f770(0x223)]{constructor(_0x3f0fa5=_0x463c63,_0x8e2438,_0x413c98,_0x47c54d){const _0x44a711=_0x57f770;super(),this[_0x44a711(0x1a8)]=_0x3f0fa5,this[_0x44a711(0x27e)]=_0x8e2438,this[_0x44a711(0x244)]=_0x413c98,this[_0x44a711(0x1ac)]=_0x47c54d;let {..._0xc0837f}=(0x0,_0x4bed3b[_0x44a711(0x230)])({},_0x463c63,this['_config']);this[_0x44a711(0x1ac)][_0x44a711(0x1b2)]('docs-formula.config',_0xc0837f);}[_0x57f770(0x26a)](){const _0x3d88e6=_0x57f770;this[_0x3d88e6(0x27e)]['add']([_0x419434]),this['_injector'][_0x3d88e6(0x28b)]([_0x51a5f5]),this[_0x3d88e6(0x27e)][_0x3d88e6(0x28b)]([_0x206277]),this[_0x3d88e6(0x27e)][_0x3d88e6(0x28b)]([_0x57ea5b]),this[_0x3d88e6(0x27e)][_0x3d88e6(0x28b)]([_0x56817c]),this['_injector'][_0x3d88e6(0x28b)]([_0x5e85b3]),(0x0,_0x4bed3b[_0x3d88e6(0x1e3)])(this['_injector'],[[_0x419434],[_0x206277],[_0x57ea5b],[_0x56817c],[_0x5e85b3]]),[_0x465b96,_0x30c2aa,_0x1b5161,_0x2d9019,_0x2f5e40,_0x1039f9,_0x3c50cd,_0x16b842,_0x4fdf1c,_0x38dc53][_0x3d88e6(0x1e1)](_0x15a37d=>this['disposeWithMe'](this[_0x3d88e6(0x244)]['registerCommand'](_0x15a37d)));}};_0x2c07ac(_0x2f90cc,_0x57f770(0x260),_0xd27543),_0x2c07ac(_0x2f90cc,_0x57f770(0x1f7),_0x330da3),_0x2c07ac(_0x2f90cc,_0x57f770(0x28e),_0x181800),_0x2c07ac(_0x2f90cc,_0x57f770(0x1db),_0x4bed3b[_0x57f770(0x1eb)]['UNIVER_DOC']),_0x2f90cc=_0x4d4426([(0x0,_0x4bed3b['DependentOn'])(_0x26a251[_0x57f770(0x195)],_0x4e3069['UniverProFormulaEnginePlugin'],_0x4e7dc9[_0x57f770(0x18d)]),_0x52ecc4(0x1,(0x0,_0x4bed3b[_0x57f770(0x176)])(_0x4bed3b[_0x57f770(0x278)])),_0x52ecc4(0x2,_0x4bed3b[_0x57f770(0x15c)]),_0x52ecc4(0x3,_0x4bed3b[_0x57f770(0x16e)])],_0x2f90cc),_0x1dc156[_0x57f770(0x1c8)]=_0x38dc53,_0x1dc156[_0x57f770(0x1a9)]=_0xc6a381,_0x1dc156['DOC_FORMULA_OBJECT_REPLACEMENT']='',_0x1dc156['DOC_FORMULA_PLUGIN']=_0xd27543,_0x1dc156['DOC_FORMULA_SCHEMA_VERSION']=0x1,Object['defineProperty'](_0x1dc156,'DocFormulaDisplayTextService',{'enumerable':!0x0,'get':function(){return _0x5e85b3;}}),Object['defineProperty'](_0x1dc156,_0x57f770(0x289),{'enumerable':!0x0,'get':function(){return _0x57ea5b;}}),_0x1dc156[_0x57f770(0x1dd)]=_0x419434,Object[_0x57f770(0x1b9)](_0x1dc156,_0x57f770(0x271),{'enumerable':!0x0,'get':function(){return _0x206277;}}),_0x1dc156['DocFormulaResultStatus']=_0x3e772c,Object[_0x57f770(0x1b9)](_0x1dc156,_0x57f770(0x1c7),{'enumerable':!0x0,'get':function(){return _0x51a5f5;}}),_0x1dc156[_0x57f770(0x24c)]=_0x2f5e40,_0x1dc156['InvalidDocFormulaInsertRangeError']=_0x4b9dca,_0x1dc156['RemoveDocFormulaCommand']=_0x16b842,_0x1dc156[_0x57f770(0x20b)]=_0x30c2aa,_0x1dc156[_0x57f770(0x15b)]=_0x4fdf1c,_0x1dc156[_0x57f770(0x22d)]=_0x2d9019,_0x1dc156[_0x57f770(0x1dc)]=_0x465b96,_0x1dc156[_0x57f770(0x19e)]=_0x3c50cd,_0x1dc156[_0x57f770(0x220)]=_0x1b5161,Object[_0x57f770(0x1b9)](_0x1dc156,'UniverDocsFormulaPlugin',{'enumerable':!0x0,'get':function(){return _0x2f90cc;}}),_0x1dc156[_0x57f770(0x27d)]=_0x1039f9,_0x1dc156[_0x57f770(0x265)]=_0x36c271,_0x1dc156['buildInsertDocFormulaActions']=_0x2e6ab7,_0x1dc156[_0x57f770(0x201)]=_0x562d2a,_0x1dc156[_0x57f770(0x1d4)]=_0x496d24,_0x1dc156[_0x57f770(0x1fb)]=_0x5e4c14,_0x1dc156[_0x57f770(0x1d0)]=_0x1baa5f,_0x1dc156[_0x57f770(0x1d5)]=_0x339a9d,_0x1dc156[_0x57f770(0x198)]=_0x36e466,_0x1dc156[_0x57f770(0x1bc)]=_0x3f3a71,_0x1dc156[_0x57f770(0x202)]=_0x2c51c9,_0x1dc156[_0x57f770(0x25a)]=_0x5b24ff;}));function _0x4f32(){const _0x5133af=['743850texWAX','FormulaCacheEligibilityService','updates','_univerInstanceService','rangeId','InsertDocFormulaCommand','COLUMN_END','rxjs','pending','registerProvider','12RWrymO','Tools','_service','min','_presentationChanged$','externalReferences','selection','DocSelectionManagerService','getRegisteredFormulas','isFormulaLastValue','slice','UniverCore','filter','some','dataStream','pluginName','map','string','presentation','shiftInclusiveRangeOnInsert','assertSafeDocFormulaInsertRange','TABLE_START','Disposable','startIndex','CellValueType','onStarting','exports','tables','CUSTOM_BLOCK','getCurrentUnitOfType','redoMutation','_formulaKeys','DocFormulaResourceController','stale','boolean','expectedFormula','docs-formula.command.remove','sequenceNodesBuilder','paragraphId','Injector','_setPresentation','referenceRevision','stringify','46BUOpSg','UpdateDocFormulaCommand','_injector','onCommandExecuted','CUSTOM','buildUpsertHostExternalReferenceMutations','_instanceService','keys','_isDisposed','setFormulas','getAllUnitsForType','sort','undoMutation','DocFormulaLifecycleController','@univerjs-pro/docs-formula','add','pattern','@univerjs-pro/engine-formula','version','_change$','JSONX','references','collectMutations','change$','getBodySliceForTextXAction','start','docs-formula.mutation.set-formula','documentRedo','COLUMN_GROUP_START','text','_registrationService','ReplaceDocFormulaWithTextCommand','ICommandService','previousDocumentData','customRanges','getLoadError','getFormula','getScalarFormulaResultCell','DOC_FORMULA_PLUGIN','univer-docs-formula','previousResource','complete','getSnapshot','customBlocks','identity','iterator','schemaVersion','dispose','Document\x20main\x20body\x20is\x20required\x20to\x20insert\x20Doc\x20Formula.','docs-formula.mutation.remove-formula','IConfigService','fromEntries','getParagraphContentStartOffset','nextResource','unsupported-version','assess','find','COMMAND','Inject','numberFormat','textRuns','syncUnit','registerPluginResource','empty','symbol','Subject','nextDocumentData','error','load','RichTextEditingMutation','@univerjs/engine-formula','generateRandomId','cell','documentData','retain','accessor','invalid-resource','degradeBody','eligible','TABLE_ROW_END','source','UniverDocsPlugin','name','getRevision','getBody','resourceRedo','blockRanges','insertLength','docs-formula.command.convert-to-text','UniverLicensePlugin','deepClone','SECTION_BREAK','isDocFormulaConfig','endOffset','docs-formula.command.set-number-format','_registrations','getOwnPropertyDescriptor','resolveText','SetDocFormulaNumberFormatCommand','DOC','formulaResult$','setFormula','trigger','_rawResources','end','object','shiftExclusiveRangeOnInsert','params','_config','DOC_FORMULA_CUSTOM_RANGE_KIND','columnGroups','_syncUnit','_configService','resources','model','color','body','deleteLength','setConfig','_loadErrors','192yCSPaG','liveResult','range','parse','formula','defineProperty','cursorOffset','UniverDocs','isDocFormulaRange','decorate','properties','clear','editOp','resource','_resources','disposeWithMe','config','getResource','resourceUndo','DocFormulaService','ConvertDocFormulaToTextCommand','values','@univerjs/docs','from','UniverEngineFormula','assign','_pendingUnitIds','number','degradeDocFormulaDocumentData','replaceDocRanges','1187685Csobff','resolveFormulaResultPresentation','buildUpdateDocFormulaActions','findDocFormulaRange','IUndoRedoService','BLOCK_START','MUTATION','SUCCESS','rangeType','type','SetDocFormulaMutation','DocFormulaModel','registerFormulaWithRange','unregister','toPrimitive','forEach','success','touchDependencies','presentationChanged$','UniverProDocsFormula','resolveFormula','set','externalMutations','target','_syncScheduled','UniverInstanceType','shiftExclusiveRangeOnDelete','syncExecuteCommand','DOC_SELECTION_OPTION_PRESERVE_CARET','startOffset','@univerjs/core','function','4226HzSoVV','CommandType','data','IUniverInstanceService','330174CveFNH','packageName','_hostExternalReferenceModel','formulaId','customDecorations','createEmptyDocFormulaResource','segmentId','resolveBinding','getUnitId','get','59017AvABTT','buildRemoveDocFormulaActions','isDocFormulaResource','_preserveInvalid','LexerTreeBuilder','FormulaLastValuePersistenceService','HostExternalReferenceModel','_cacheEligibilityService','call','docs-formula.command.insert','_formulaService','RemoveDocFormulaMutation','wholeEntity','_queueSync','UNIVER_DOC','formulas','trim','_model','getUnit','TABLE_END','DocTextResolverService','delete','expectedReferenceRevision','register','getResult','max','DataStreamTreeTokenType','getCustomRangeInterval','CustomRangeType','insert','getFormulas','paragraphs','SetDocFormulaResourceMutation','has','Doc\x20Formula\x20range\x20cannot\x20cross\x20document\x20structure\x20boundaries','Plugin','FormulaResultStatus','document','pushUndoRedo','19449iwnrGU','sectionBreaks','_deleteRegistration','IResourceManagerService','entries','unregisterUnit','SetDocFormulaLastValuesMutation','deleteFormula','setResource','merge','removeFormula','removeUnit','_docFormulaModel','256734FrqHQj','includes','push','position','serialize','getFormulaValueSync','endIndex','length','getPresentation','UniverProEngineFormula','PARAGRAPH','isInteger','next','COLUMN_GROUP_END','unitId','subscribe','_commandService','expectedNumberFormat','lastValue'];_0x4f32=function(){return _0x5133af;};return _0x4f32();}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/docs-formula",
3
- "version": "1.0.1",
3
+ "version": "1.0.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>",
@@ -61,15 +61,15 @@
61
61
  "rxjs": ">=7.0.0"
62
62
  },
63
63
  "dependencies": {
64
- "@univerjs-pro/engine-formula": "1.0.1",
65
- "@univerjs-pro/license": "1.0.1",
66
- "@univerjs/core": "1.0.1",
67
- "@univerjs/docs": "1.0.1",
68
- "@univerjs/engine-formula": "1.0.1"
64
+ "@univerjs-pro/engine-formula": "1.0.2",
65
+ "@univerjs-pro/license": "1.0.2",
66
+ "@univerjs/core": "1.0.2",
67
+ "@univerjs/docs": "1.0.2",
68
+ "@univerjs/engine-formula": "1.0.2"
69
69
  },
70
70
  "devDependencies": {
71
- "@univerjs-infra/shared": "1.0.1",
72
- "@univerjs/engine-render": "1.0.1",
71
+ "@univerjs-infra/shared": "1.0.2",
72
+ "@univerjs/engine-render": "1.0.2",
73
73
  "rxjs": "7.8.2",
74
74
  "typescript": "^6.0.3",
75
75
  "vitest": "^5.0.0"