@univerjs-pro/docs-formula 1.0.0-beta.0 → 1.0.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +8 -8
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x11b942=_0x48a7;(function(_0x58f04b,_0x27c6a5){const _0x2aeaa1=_0x48a7,_0x525e06=_0x58f04b();while(!![]){try{const _0x3735f5=-parseInt(_0x2aeaa1(0x134))/0x1*(parseInt(_0x2aeaa1(0x138))/0x2)+-parseInt(_0x2aeaa1(0x165))/0x3*(parseInt(_0x2aeaa1(0xbe))/0x4)+parseInt(_0x2aeaa1(0x12c))/0x5*(-parseInt(_0x2aeaa1(0x113))/0x6)+-parseInt(_0x2aeaa1(0x10f))/0x7*(-parseInt(_0x2aeaa1(0x97))/0x8)+parseInt(_0x2aeaa1(0x169))/0x9*(-parseInt(_0x2aeaa1(0x17b))/0xa)+-parseInt(_0x2aeaa1(0x132))/0xb+parseInt(_0x2aeaa1(0x16d))/0xc;if(_0x3735f5===_0x27c6a5)break;else _0x525e06['push'](_0x525e06['shift']());}catch(_0x58c0e7){_0x525e06['push'](_0x525e06['shift']());}}}(_0x2755,0xe5e74));import{FormulaCacheEligibilityService as _0x477178,FormulaLastValuePersistenceService as _0x3f3931,HostExternalReferenceModel as _0x4e55da,UniverProFormulaEnginePlugin as _0x16665e,buildUpsertHostExternalReferenceMutations as _0x1d12c5,collectFormulaExternalReferenceQualifiers as _0x59b99e,getScalarFormulaResultCell as _0xc59680,resolveFormulaResultPresentation as _0x57ce95,resolveHostFormulaExternalReferences as _0x7dadcf,toFormulaLastValue as _0x34e83b}from'@univerjs-pro/engine-formula';import{CellValueType as _0x8a3f37,CommandType as _0x5965b8,CustomRangeType as _0x3e39c6,DataStreamTreeTokenType as _0x104972,DependentOn as _0x1cc9db,Disposable as _0x35945f,ICommandService as _0x33bec9,IConfigService as _0x3270a2,IResourceManagerService as _0x1e7c1d,IUndoRedoService as _0x21b9cd,IUniverInstanceService as _0x930636,Inject as _0x3d3024,Injector as _0x13e4a3,JSONX as _0x583736,Plugin as _0x459c8d,TextX as _0x3b5ea5,Tools as _0x29e987,UniverInstanceType as _0x45653d,generateRandomId as _0x2dbc3e,getBodySliceForTextXAction as _0x1be218,getCustomRangeInterval as _0x173fb8,getParagraphContentStartOffset as _0x54e7b7,getRichTextEditPath as _0x36d11e,merge as _0x4b4880,shiftExclusiveRangeOnDelete as _0x20fbe4,shiftExclusiveRangeOnInsert as _0x15d769,shiftInclusiveRangeOnDelete as _0x3d5ca1,shiftInclusiveRangeOnInsert as _0x44d86d,touchDependencies as _0x2fa40d}from'@univerjs/core';import{DOC_SELECTION_OPTION_PRESERVE_CARET as _0xa0c5b1,DocSelectionManagerService as _0x42f86e,DocTextResolverService as _0x56e8c8,RichTextEditingMutation as _0x480fe8,UniverDocsPlugin as _0x44a698}from'@univerjs/docs';import{FormulaResultStatus as _0x110262,LexerTreeBuilder as _0x3c43da,OtherFormulaBizType as _0x591f38,RegisterOtherFormulaService as _0xa717d0}from'@univerjs/engine-formula';import{Subject as _0x6a8876}from'rxjs';import{UniverLicensePlugin as _0x42a144}from'@univerjs-pro/license';const y=_0x11b942(0xd5),je=0x1,Me='univer-docs-formula',Ne='';function b(){return{'schemaVersion':0x1,'formulas':{}};}function x(_0x70ddb3){const _0x55f6e1=_0x11b942;return!_0x70ddb3||typeof _0x70ddb3!=_0x55f6e1(0xee)||!S(_0x70ddb3,['schemaVersion',_0x55f6e1(0x12b)])||!(_0x55f6e1(0xb7)in _0x70ddb3)||_0x70ddb3[_0x55f6e1(0xb7)]!==0x1||!('formulas'in _0x70ddb3)||!_0x70ddb3[_0x55f6e1(0x12b)]||typeof _0x70ddb3[_0x55f6e1(0x12b)]!=_0x55f6e1(0xee)||Array[_0x55f6e1(0xf6)](_0x70ddb3[_0x55f6e1(0x12b)])?!0x1:Object[_0x55f6e1(0x81)](_0x70ddb3['formulas'])[_0x55f6e1(0x7f)](([_0xa8bdb6,_0x2ffaba])=>_0xa8bdb6['length']>0x0&&Pe(_0x2ffaba));}function Pe(_0x448e59){const _0x35b67e=_0x11b942;return!_0x448e59||typeof _0x448e59!=_0x35b67e(0xee)||!S(_0x448e59,[_0x35b67e(0x16f),_0x35b67e(0x13c),'lastValue'])||!(_0x35b67e(0x16f)in _0x448e59)||typeof _0x448e59[_0x35b67e(0x16f)]!='string'||!_0x448e59[_0x35b67e(0x16f)]['trim']()||_0x35b67e(0x13c)in _0x448e59&&_0x448e59['numberFormat']!=null&&(typeof _0x448e59[_0x35b67e(0x13c)]!=_0x35b67e(0xee)||!S(_0x448e59[_0x35b67e(0x13c)],[_0x35b67e(0xc1)])||!('pattern'in _0x448e59[_0x35b67e(0x13c)])||typeof _0x448e59['numberFormat'][_0x35b67e(0xc1)]!=_0x35b67e(0xf2))?!0x1:!(_0x35b67e(0xdb)in _0x448e59)||_0x448e59['lastValue']==null||Fe(_0x448e59[_0x35b67e(0xdb)]);}function Fe(_0x3d6dbe){const _0x53a98d=_0x11b942;return!_0x3d6dbe||typeof _0x3d6dbe!=_0x53a98d(0xee)||!S(_0x3d6dbe,['v','t',_0x53a98d(0xc1)])||!('v'in _0x3d6dbe)||_0x3d6dbe['v']!==null&&typeof _0x3d6dbe['v']!=_0x53a98d(0xf2)&&typeof _0x3d6dbe['v']!=_0x53a98d(0x106)&&typeof _0x3d6dbe['v']!=_0x53a98d(0xe5)||'t'in _0x3d6dbe&&_0x3d6dbe['t']!=null&&!Ie(_0x3d6dbe['t'])?!0x1:!(_0x53a98d(0xc1)in _0x3d6dbe)||_0x3d6dbe[_0x53a98d(0xc1)]==null||typeof _0x3d6dbe['pattern']==_0x53a98d(0xf2);}function S(_0x224092,_0x4e35e5){const _0x348344=_0x11b942;let _0x3dfc27=new Set(_0x4e35e5);return Object[_0x348344(0xde)](_0x224092)[_0x348344(0x7f)](_0x437134=>_0x3dfc27[_0x348344(0x154)](_0x437134));}function Ie(_0x4831a1){const _0x3bd0a2=_0x11b942;return typeof _0x4831a1==_0x3bd0a2(0x106)&&Object['values'](_0x8a3f37)[_0x3bd0a2(0x15c)](_0x4831a1);}const Le=new Set([_0x104972['SECTION_BREAK'],_0x104972[_0x11b942(0x10a)],_0x104972[_0x11b942(0x16e)],_0x104972['TABLE_CELL_START'],_0x104972['TABLE_CELL_END'],_0x104972[_0x11b942(0x8f)],_0x104972[_0x11b942(0x164)],_0x104972[_0x11b942(0x155)],_0x104972[_0x11b942(0x89)],_0x104972[_0x11b942(0x16b)],_0x104972[_0x11b942(0xa7)],_0x104972[_0x11b942(0x180)],_0x104972[_0x11b942(0xf5)],_0x104972[_0x11b942(0x15a)]]);var C=class extends Error{constructor(){const _0x34c38b=_0x11b942;super(_0x34c38b(0x93));}};function Re(_0xea415d){const _0x195992=_0x11b942;var _0x5b57c2,_0x8fd26c;let _0x5fd1b0=_0x29e987['deepClone'](_0xea415d[_0x195992(0x15e)]),_0x54a2fa=j(_0x5fd1b0),{startOffset:_0x7437f3,endOffset:_0x3beea0}=We(_0x54a2fa,_0xea415d[_0x195992(0x10d)],_0xea415d['endOffset']);He(_0x54a2fa,_0x7437f3,_0x3beea0);let _0x415f09=((_0x5b57c2=_0x54a2fa[_0x195992(0xe9)])==null?void 0x0:_0x5b57c2[_0x195992(0x112)](_0x563bf3=>{const _0x2b87f1=_0x195992;if(!w(_0x563bf3))return!0x1;let _0x5aea1c=_0x173fb8(_0x563bf3);return _0x5aea1c[_0x2b87f1(0x173)]>_0x7437f3&&_0x5aea1c[_0x2b87f1(0x10d)]<_0x3beea0;})[_0x195992(0x14e)](_0x1ef998=>_0x1ef998[_0x195992(0x170)]))??[];qe(_0x54a2fa,_0x7437f3,_0x3beea0,''),_0x54a2fa[_0x195992(0xe9)]=[...((_0x8fd26c=_0x54a2fa[_0x195992(0xe9)])==null?void 0x0:_0x8fd26c['filter'](_0x2fd7c7=>!_0x415f09[_0x195992(0x15c)](_0x2fd7c7['rangeId'])&&_0x2fd7c7[_0x195992(0x170)]!==_0xea415d[_0x195992(0x170)]))??[],Ue(_0xea415d[_0x195992(0x170)],_0x7437f3)]['sort']((_0x2f5511,_0x27d02f)=>_0x2f5511['startIndex']-_0x27d02f[_0x195992(0xc8)]);let _0x5d1090=E(_0xea415d['resource']);return _0x415f09[_0x195992(0xef)](_0x207ffc=>{delete _0x5d1090['formulas'][_0x207ffc];}),_0x5d1090['formulas'][_0xea415d[_0x195992(0x170)]]=_0x29e987[_0x195992(0xe4)](_0xea415d[_0x195992(0xd6)]),{'nextDocumentData':_0x5fd1b0,'nextResource':_0x5d1090,'cursorOffset':_0x7437f3+0x1};}function ze(_0x19567a){const _0x154813=_0x11b942;var _0x327ab7,_0x497230;let _0x2061fa=_0x29e987['deepClone'](_0x19567a[_0x154813(0x15e)]),_0xc5e36c=(_0x327ab7=j(_0x2061fa)['customRanges'])==null?void 0x0:_0x327ab7[_0x154813(0xb2)](_0x3c9809=>_0x3c9809[_0x154813(0x170)]===_0x19567a[_0x154813(0x170)]&&w(_0x3c9809));if(!_0xc5e36c||!((_0x497230=_0x19567a['resource'])!=null&&_0x497230[_0x154813(0x12b)][_0x19567a[_0x154813(0x170)]]))return null;let _0x34e0e9=E(_0x19567a[_0x154813(0xf3)]);return _0x34e0e9[_0x154813(0x12b)][_0x19567a[_0x154813(0x170)]]=_0x29e987[_0x154813(0xe4)](_0x19567a['config']),{'nextDocumentData':_0x2061fa,'nextResource':_0x34e0e9,'cursorOffset':_0xc5e36c['endIndex']+0x1};}function Be(_0x2ca315){const _0x10ed2c=_0x11b942;let _0x430012=_0x29e987['deepClone'](_0x2ca315['documentData']),_0x184b6e=Je(_0x430012,_0x2ca315[_0x10ed2c(0x170)],_0x2ca315[_0x10ed2c(0x14d)]??'');if(_0x184b6e==null)return null;let _0x203891=E(_0x2ca315[_0x10ed2c(0xf3)]);return delete _0x203891[_0x10ed2c(0x12b)][_0x2ca315[_0x10ed2c(0x170)]],{'nextDocumentData':_0x430012,'nextResource':_0x203891,'cursorOffset':_0x184b6e};}function Ve(_0x405da3,_0x2000ad){const _0x1762bb=_0x11b942;var _0xff5ccc;let _0x12a0a7=_0x29e987[_0x1762bb(0xe4)](_0x405da3),_0x29eeea=_0x12a0a7[_0x1762bb(0x166)];if(!_0x29eeea)return _0x12a0a7;let _0x49e3b9=new Map(_0x2000ad['map'](_0x3b98fb=>[_0x3b98fb[_0x1762bb(0x170)],_0x3b98fb[_0x1762bb(0x14d)]])),_0x1056e3=((_0xff5ccc=_0x29eeea[_0x1762bb(0xe9)])==null?void 0x0:_0xff5ccc[_0x1762bb(0x112)](_0x5b15af=>w(_0x5b15af)&&_0x49e3b9[_0x1762bb(0x154)](_0x5b15af[_0x1762bb(0x170)]))[_0x1762bb(0x13e)]((_0x5c2361,_0x9c3430)=>_0x9c3430[_0x1762bb(0xc8)]-_0x5c2361[_0x1762bb(0xc8)]))??[];for(let _0x460505 of _0x1056e3)Je(_0x12a0a7,_0x460505[_0x1762bb(0x170)],_0x49e3b9[_0x1762bb(0x102)](_0x460505[_0x1762bb(0x170)])??'');return _0x12a0a7;}function w(_0x4bb691){const _0x3b7c80=_0x11b942;var _0x12a004;return(_0x4bb691==null?void 0x0:_0x4bb691[_0x3b7c80(0xab)])===_0x3e39c6['CUSTOM']&&_0x4bb691[_0x3b7c80(0x157)]===!0x0&&((_0x12a004=_0x4bb691[_0x3b7c80(0xad)])==null?void 0x0:_0x12a004[_0x3b7c80(0xc7)])==='univer-docs-formula';}function T(_0x477c0d,_0x1be433){const _0x4c7fef=_0x11b942;var _0x986493;return _0x477c0d==null||(_0x986493=_0x477c0d[_0x4c7fef(0xe9)])==null?void 0x0:_0x986493['find'](_0x1d6f60=>_0x1d6f60['rangeId']===_0x1be433&&w(_0x1d6f60));}function He(_0x29e64e,_0x36a886,_0x49297d){const _0x1e9800=_0x11b942;if(_0x36a886===_0x49297d){if(Le[_0x1e9800(0x154)](_0x29e64e[_0x1e9800(0x11a)][_0x36a886]))throw new C();return;}for(let _0x44ce54=_0x36a886;_0x44ce54<_0x49297d;_0x44ce54++)if(_0x29e64e['dataStream'][_0x44ce54]===_0x104972[_0x1e9800(0x175)]||Le[_0x1e9800(0x154)](_0x29e64e[_0x1e9800(0x11a)][_0x44ce54]))throw new C();}function Ue(_0x24491e,_0x551d8e){return{'startIndex':_0x551d8e,'endIndex':_0x551d8e,'rangeId':_0x24491e,'rangeType':_0x3e39c6['CUSTOM'],'wholeEntity':!0x0,'properties':{'kind':Me}};}function E(_0x3a6a75){const _0xbfb92c=_0x11b942;return _0x3a6a75?_0x29e987[_0xbfb92c(0xe4)](_0x3a6a75):b();}function We(_0x346b65,_0x38fa8d,_0x5197a5){const _0x51f1d6=_0x11b942;let _0x2a81d2=Ke(_0x346b65),_0x5ace16=_0x38fa8d??_0x2a81d2,_0x332286=_0x5197a5??_0x5ace16;return{'startOffset':Ge(Math[_0x51f1d6(0xed)](_0x5ace16,_0x332286),_0x2a81d2),'endOffset':Ge(Math[_0x51f1d6(0x17f)](_0x5ace16,_0x332286),_0x2a81d2)};}function Ge(_0x573caf,_0x3939e5){const _0x46f4f1=_0x11b942;return Math['max'](0x0,Math[_0x46f4f1(0xed)](_0x573caf,_0x3939e5));}function Ke(_0x2e7713){const _0x1d24ae=_0x11b942;return _0x2e7713['dataStream'][_0x1d24ae(0xfc)](''+_0x104972[_0x1d24ae(0x175)]+_0x104972['SECTION_BREAK'])?Math['max'](0x0,_0x2e7713[_0x1d24ae(0x11a)][_0x1d24ae(0x10b)]-0x2):_0x2e7713['dataStream'][_0x1d24ae(0xfc)](_0x104972[_0x1d24ae(0xcb)])?Math[_0x1d24ae(0x17f)](0x0,_0x2e7713[_0x1d24ae(0x11a)][_0x1d24ae(0x10b)]-0x1):_0x2e7713[_0x1d24ae(0x11a)][_0x1d24ae(0x10b)];}function qe(_0x129a86,_0x4c36a5,_0x58d99d,_0x4f79be){_0x58d99d>_0x4c36a5&&Xe(_0x129a86,_0x4c36a5,_0x58d99d),Ye(_0x129a86,_0x4c36a5,_0x4f79be);}function Je(_0x5cec49,_0x1f2b63,_0x31aef6){const _0x5acb4f=_0x11b942;var _0xf8272,_0x3083db;let _0x2f28b7=j(_0x5cec49),_0x1e04d0=(_0xf8272=_0x2f28b7['customRanges'])==null?void 0x0:_0xf8272['find'](_0x49f6ba=>_0x49f6ba['rangeId']===_0x1f2b63&&w(_0x49f6ba));if(!_0x1e04d0)return null;let _0xe7a677=_0x173fb8(_0x1e04d0);return qe(_0x2f28b7,_0xe7a677[_0x5acb4f(0x10d)],_0xe7a677[_0x5acb4f(0x173)],_0x31aef6),_0x2f28b7[_0x5acb4f(0xe9)]=(_0x3083db=_0x2f28b7[_0x5acb4f(0xe9)])==null?void 0x0:_0x3083db['filter'](_0x215df9=>_0x215df9[_0x5acb4f(0x170)]!==_0x1f2b63),_0xe7a677[_0x5acb4f(0x10d)]+_0x31aef6['length'];}function Ye(_0x1e8759,_0x2184a8,_0x1319bc){const _0x5120ac=_0x11b942;_0x1319bc&&(_0x1e8759[_0x5120ac(0x11a)]=''+_0x1e8759[_0x5120ac(0x11a)][_0x5120ac(0x10c)](0x0,_0x2184a8)+_0x1319bc+_0x1e8759[_0x5120ac(0x11a)][_0x5120ac(0x10c)](_0x2184a8),Ze(_0x1e8759,_0x2184a8,_0x1319bc[_0x5120ac(0x10b)]));}function Xe(_0x2e8789,_0x20f1df,_0x59dfbe){const _0x2ace64=_0x11b942;let _0x16b386=_0x59dfbe-_0x20f1df;_0x2e8789[_0x2ace64(0x11a)]=''+_0x2e8789[_0x2ace64(0x11a)][_0x2ace64(0x10c)](0x0,_0x20f1df)+_0x2e8789[_0x2ace64(0x11a)][_0x2ace64(0x10c)](_0x59dfbe),Qe(_0x2e8789,_0x20f1df,_0x16b386);}function Ze(_0x568aa6,_0xb1fb5a,_0xcf68ae){const _0x1a1195=_0x11b942;_0x568aa6[_0x1a1195(0x156)]=D(_0x568aa6['paragraphs'],_0xb1fb5a,_0xcf68ae),_0x568aa6[_0x1a1195(0x162)]=D(_0x568aa6[_0x1a1195(0x162)],_0xb1fb5a,_0xcf68ae),_0x568aa6[_0x1a1195(0x8c)]=D(_0x568aa6[_0x1a1195(0x8c)],_0xb1fb5a,_0xcf68ae),_0x568aa6[_0x1a1195(0xdc)]=$e(_0x568aa6[_0x1a1195(0xdc)],_0xb1fb5a,_0xcf68ae),_0x568aa6['tables']=et(_0x568aa6[_0x1a1195(0x174)],_0xb1fb5a,_0xcf68ae),_0x568aa6['columnGroups']=k(_0x568aa6[_0x1a1195(0x9d)],_0xb1fb5a,_0xcf68ae),_0x568aa6['customRanges']=k(_0x568aa6[_0x1a1195(0xe9)],_0xb1fb5a,_0xcf68ae),_0x568aa6[_0x1a1195(0xba)]=k(_0x568aa6[_0x1a1195(0xba)],_0xb1fb5a,_0xcf68ae),_0x568aa6[_0x1a1195(0x158)]=k(_0x568aa6[_0x1a1195(0x158)],_0xb1fb5a,_0xcf68ae);}function Qe(_0x10763f,_0x2f8b40,_0x42e815){const _0x2b4518=_0x11b942;var _0x3020dc,_0x533860;_0x10763f[_0x2b4518(0x156)]=O(_0x10763f[_0x2b4518(0x156)],_0x2f8b40,_0x42e815),_0x10763f[_0x2b4518(0x162)]=O(_0x10763f['sectionBreaks'],_0x2f8b40,_0x42e815),_0x10763f[_0x2b4518(0x8c)]=O(_0x10763f['customBlocks'],_0x2f8b40,_0x42e815),_0x10763f[_0x2b4518(0xdc)]=(_0x3020dc=tt((_0x533860=_0x10763f[_0x2b4518(0xdc)])==null?void 0x0:_0x533860[_0x2b4518(0x14e)](_0x460e02=>({..._0x460e02,'startIndex':_0x460e02['st'],'endIndex':_0x460e02['ed']})),_0x2f8b40,_0x42e815))==null?void 0x0:_0x3020dc['map'](_0x1930ec=>{let {startIndex:_0x5d2e45,endIndex:_0x1a4e94,..._0x12a171}=_0x1930ec;return{..._0x12a171,'st':_0x5d2e45,'ed':_0x1a4e94};}),_0x10763f[_0x2b4518(0x174)]=tt(_0x10763f[_0x2b4518(0x174)],_0x2f8b40,_0x42e815),_0x10763f['columnGroups']=A(_0x10763f['columnGroups'],_0x2f8b40,_0x42e815),_0x10763f[_0x2b4518(0xe9)]=A(_0x10763f['customRanges'],_0x2f8b40,_0x42e815),_0x10763f[_0x2b4518(0xba)]=A(_0x10763f[_0x2b4518(0xba)],_0x2f8b40,_0x42e815),_0x10763f[_0x2b4518(0x158)]=A(_0x10763f[_0x2b4518(0x158)],_0x2f8b40,_0x42e815);}function D(_0x8e720f,_0x24a9f6,_0x44adbf){const _0x189360=_0x11b942;return _0x8e720f==null?void 0x0:_0x8e720f[_0x189360(0x14e)](_0x11b025=>_0x11b025[_0x189360(0xc8)]>=_0x24a9f6?{..._0x11b025,'startIndex':_0x11b025['startIndex']+_0x44adbf}:_0x11b025);}function O(_0x30025c,_0x45f48d,_0x365830){const _0x5de980=_0x11b942;let _0x180ec2=_0x45f48d+_0x365830;return _0x30025c==null?void 0x0:_0x30025c[_0x5de980(0x14e)](_0x40fddc=>_0x40fddc[_0x5de980(0xc8)]>=_0x45f48d&&_0x40fddc[_0x5de980(0xc8)]<_0x180ec2?null:_0x40fddc[_0x5de980(0xc8)]>=_0x180ec2?{..._0x40fddc,'startIndex':_0x40fddc[_0x5de980(0xc8)]-_0x365830}:_0x40fddc)[_0x5de980(0x112)](_0x45ba60=>_0x45ba60!=null);}function $e(_0x4da71b,_0x26212e,_0x21fc3a){const _0x4b5ad2=_0x11b942;return _0x4da71b==null?void 0x0:_0x4da71b[_0x4b5ad2(0x14e)](_0xe6898d=>_0xe6898d['st']>=_0x26212e?{..._0xe6898d,'st':_0xe6898d['st']+_0x21fc3a,'ed':_0xe6898d['ed']+_0x21fc3a}:_0xe6898d['ed']>_0x26212e?{..._0xe6898d,'ed':_0xe6898d['ed']+_0x21fc3a}:_0xe6898d);}function k(_0x15a7b2,_0x325651,_0x1e1363){const _0xcf15b1=_0x11b942;return _0x15a7b2==null?void 0x0:_0x15a7b2[_0xcf15b1(0x14e)](_0x2f962e=>_0x44d86d(_0x2f962e,_0x325651,_0x1e1363));}function et(_0x5ab970,_0x1fbe5a,_0x3c93ba){return _0x5ab970==null?void 0x0:_0x5ab970['map'](_0x52cf5a=>_0x15d769(_0x52cf5a,_0x1fbe5a,_0x3c93ba));}function A(_0x4f6cfa,_0x362857,_0x3c1751){const _0x1a8e21=_0x11b942;return _0x4f6cfa==null?void 0x0:_0x4f6cfa[_0x1a8e21(0x14e)](_0x15e541=>_0x3d5ca1(_0x15e541,_0x362857,_0x3c1751))[_0x1a8e21(0x112)](_0x567181=>_0x567181!=null);}function tt(_0x203008,_0x43c353,_0x143312){const _0x24b1b5=_0x11b942;return _0x203008==null?void 0x0:_0x203008[_0x24b1b5(0x14e)](_0x498371=>_0x20fbe4(_0x498371,_0x43c353,_0x143312))[_0x24b1b5(0x112)](_0x3f72dc=>_0x3f72dc!=null);}function j(_0x456650){const _0x28a72c=_0x11b942;if(!_0x456650[_0x28a72c(0x166)])throw Error(_0x28a72c(0xac));return _0x456650[_0x28a72c(0x166)];}function M(_0x278878){'@babel/helpers - typeof';const _0xd3b544=_0x11b942;return M=typeof Symbol=='function'&&typeof Symbol[_0xd3b544(0x100)]==_0xd3b544(0x88)?function(_0x174225){return typeof _0x174225;}:function(_0xd6d513){const _0x1cfdd5=_0xd3b544;return _0xd6d513&&typeof Symbol=='function'&&_0xd6d513[_0x1cfdd5(0x181)]===Symbol&&_0xd6d513!==Symbol[_0x1cfdd5(0x163)]?_0x1cfdd5(0x88):typeof _0xd6d513;},M(_0x278878);}function nt(_0x4a9f47,_0xcb17e9){const _0x4c5e3b=_0x11b942;if(M(_0x4a9f47)!=_0x4c5e3b(0xee)||!_0x4a9f47)return _0x4a9f47;var _0x5a5e97=_0x4a9f47[Symbol['toPrimitive']];if(_0x5a5e97!==void 0x0){var _0x54d828=_0x5a5e97['call'](_0x4a9f47,_0xcb17e9||_0x4c5e3b(0xca));if(M(_0x54d828)!=_0x4c5e3b(0xee))return _0x54d828;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0xcb17e9==='string'?String:Number)(_0x4a9f47);}function rt(_0x55ccd1){const _0x3fd0fb=_0x11b942;var _0x3848a8=nt(_0x55ccd1,_0x3fd0fb(0xf2));return M(_0x3848a8)==_0x3fd0fb(0x88)?_0x3848a8:_0x3848a8+'';}function N(_0x14d039,_0x517f30,_0x3a645e){const _0x559784=_0x11b942;return(_0x517f30=rt(_0x517f30))in _0x14d039?Object[_0x559784(0xa8)](_0x14d039,_0x517f30,{'value':_0x3a645e,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x14d039[_0x517f30]=_0x3a645e,_0x14d039;}var P=class extends _0x35945f{constructor(..._0x479524){const _0x2ca207=_0x11b942;super(..._0x479524),N(this,_0x2ca207(0x147),new Map()),N(this,_0x2ca207(0x14c),new Map()),N(this,_0x2ca207(0x87),new Map()),N(this,'_change$',new _0x6a8876()),N(this,_0x2ca207(0x80),this[_0x2ca207(0xbc)]['asObservable']());}[_0x11b942(0x161)](_0x1f6232,_0x2ceb6a){const _0x552495=_0x11b942;var _0xac7178;let _0xf6de4=(_0xac7178=this['_resources'][_0x552495(0x102)](_0x1f6232))==null?void 0x0:_0xac7178[_0x552495(0x12b)][_0x2ceb6a];return _0xf6de4?_0x29e987[_0x552495(0xe4)](_0xf6de4):void 0x0;}['getFormulas'](_0x1be989){const _0x540a28=_0x11b942;var _0x1b4de5;return _0x29e987[_0x540a28(0xe4)](((_0x1b4de5=this['_resources']['get'](_0x1be989))==null?void 0x0:_0x1b4de5[_0x540a28(0x12b)])??{});}['getResource'](_0x390fe7){const _0x1132ee=_0x11b942;let _0x550689=this[_0x1132ee(0x147)][_0x1132ee(0x102)](_0x390fe7);return _0x550689?_0x29e987['deepClone'](_0x550689):void 0x0;}['setFormula'](_0x5b7bb5,_0x3359a4,_0x9128dc){const _0x186196=_0x11b942;return this[_0x186196(0x149)](_0x5b7bb5,{[_0x3359a4]:_0x9128dc});}[_0x11b942(0x11f)](_0x11d614,_0x4f84ef){const _0x1f86c6=_0x11b942;return this[_0x1f86c6(0x87)]['has'](_0x11d614)||!x(_0x4f84ef)?!0x1:(this[_0x1f86c6(0x147)][_0x1f86c6(0x172)](_0x11d614,_0x29e987['deepClone'](_0x4f84ef)),this[_0x1f86c6(0xbc)][_0x1f86c6(0xa0)]({'unitId':_0x11d614}),!0x0);}[_0x11b942(0x149)](_0x211884,_0x12aa01){const _0x55d54b=_0x11b942;if(this[_0x55d54b(0x87)]['has'](_0x211884)||!Object[_0x55d54b(0xde)](_0x12aa01)['length']||!x({'schemaVersion':0x1,'formulas':_0x12aa01}))return!0x1;let _0x541d0c=this[_0x55d54b(0x147)]['get'](_0x211884)??b(),_0x2b5690=_0x29e987[_0x55d54b(0xe4)](_0x541d0c);return Object[_0x55d54b(0xec)](_0x2b5690[_0x55d54b(0x12b)],_0x29e987[_0x55d54b(0xe4)](_0x12aa01)),this[_0x55d54b(0x147)][_0x55d54b(0x172)](_0x211884,_0x2b5690),this[_0x55d54b(0xbc)]['next']({'unitId':_0x211884,'rangeIds':Object[_0x55d54b(0xde)](_0x12aa01)}),!0x0;}[_0x11b942(0xa3)](_0x5a456e,_0x2c798b){const _0x11a1ba=_0x11b942;if(this['_loadErrors']['has'](_0x5a456e))return!0x1;let _0x43b0fc=this[_0x11a1ba(0x147)]['get'](_0x5a456e);if(!(_0x43b0fc!=null&&_0x43b0fc[_0x11a1ba(0x12b)][_0x2c798b]))return!0x1;let _0x8b3993=_0x29e987['deepClone'](_0x43b0fc);return delete _0x8b3993[_0x11a1ba(0x12b)][_0x2c798b],this['_resources'][_0x11a1ba(0x172)](_0x5a456e,_0x8b3993),this['_change$'][_0x11a1ba(0xa0)]({'unitId':_0x5a456e,'rangeIds':[_0x2c798b]}),!0x0;}[_0x11b942(0x141)](_0x325be0,_0x369cdf){const _0x15f568=_0x11b942;return _0x369cdf&&typeof _0x369cdf=='object'&&_0x15f568(0xb7)in _0x369cdf&&_0x369cdf['schemaVersion']!==0x1?(this[_0x15f568(0xff)](_0x325be0,_0x369cdf,_0x15f568(0x142)),!0x1):x(_0x369cdf)?(this['_resources'][_0x15f568(0x172)](_0x325be0,_0x29e987[_0x15f568(0xe4)](_0x369cdf)),this[_0x15f568(0x14c)]['delete'](_0x325be0),this[_0x15f568(0x87)][_0x15f568(0x91)](_0x325be0),this['_change$'][_0x15f568(0xa0)]({'unitId':_0x325be0}),!0x0):(this['_preserveInvalid'](_0x325be0,_0x369cdf,_0x15f568(0x9e)),!0x1);}[_0x11b942(0x13b)](_0x2d8f59){const _0x3235a8=_0x11b942;let _0x3b5a2d=this[_0x3235a8(0x147)][_0x3235a8(0x102)](_0x2d8f59);return _0x3b5a2d?_0x29e987[_0x3235a8(0xe4)](_0x3b5a2d):this[_0x3235a8(0x14c)][_0x3235a8(0x154)](_0x2d8f59)?_0x29e987[_0x3235a8(0xe4)](this['_rawResources']['get'](_0x2d8f59)):b();}[_0x11b942(0x176)](_0x5b8278){const _0x1e3b60=_0x11b942;return this[_0x1e3b60(0x87)]['get'](_0x5b8278);}[_0x11b942(0x133)](_0x139c78){const _0x3f9829=_0x11b942;this[_0x3f9829(0x147)][_0x3f9829(0x91)](_0x139c78),this['_rawResources'][_0x3f9829(0x91)](_0x139c78),this[_0x3f9829(0x87)]['delete'](_0x139c78),this[_0x3f9829(0xbc)][_0x3f9829(0xa0)]({'unitId':_0x139c78});}[_0x11b942(0xce)](){const _0x2a31c3=_0x11b942;this[_0x2a31c3(0x147)][_0x2a31c3(0x17c)](),this['_rawResources'][_0x2a31c3(0x17c)](),this[_0x2a31c3(0x87)]['clear'](),this[_0x2a31c3(0xbc)][_0x2a31c3(0x14b)](),super[_0x2a31c3(0xce)]();}[_0x11b942(0xff)](_0x4cd606,_0x3de666,_0x3ef237){const _0x536a52=_0x11b942;this['_resources']['delete'](_0x4cd606),this[_0x536a52(0x14c)][_0x536a52(0x172)](_0x4cd606,_0x29e987[_0x536a52(0xe4)](_0x3de666)),this[_0x536a52(0x87)][_0x536a52(0x172)](_0x4cd606,_0x3ef237),this[_0x536a52(0xbc)][_0x536a52(0xa0)]({'unitId':_0x4cd606});}};let it=function(_0x3a4437){const _0x51751b=_0x11b942;return _0x3a4437['EMPTY']=_0x51751b(0xcc),_0x3a4437['PENDING']='pending',_0x3a4437[_0x51751b(0x119)]=_0x51751b(0x11e),_0x3a4437[_0x51751b(0x160)]=_0x51751b(0x12a),_0x3a4437;}({});function F(_0x18ffd1,_0x33be9e){return function(_0x4cb237,_0xe92de0){_0x33be9e(_0x4cb237,_0xe92de0,_0x18ffd1);};}function I(_0x10e2d5,_0x41fd51,_0x47c69f,_0x22e508){const _0x314f53=_0x11b942;var _0x4d43ab=arguments[_0x314f53(0x10b)],_0x567725=_0x4d43ab<0x3?_0x41fd51:_0x22e508===null?_0x22e508=Object[_0x314f53(0x179)](_0x41fd51,_0x47c69f):_0x22e508,_0x2f2e05;if(typeof Reflect==_0x314f53(0xee)&&typeof Reflect['decorate']==_0x314f53(0xd8))_0x567725=Reflect[_0x314f53(0xf0)](_0x10e2d5,_0x41fd51,_0x47c69f,_0x22e508);else{for(var _0x54ff2d=_0x10e2d5[_0x314f53(0x10b)]-0x1;_0x54ff2d>=0x0;_0x54ff2d--)(_0x2f2e05=_0x10e2d5[_0x54ff2d])&&(_0x567725=(_0x4d43ab<0x3?_0x2f2e05(_0x567725):_0x4d43ab>0x3?_0x2f2e05(_0x41fd51,_0x47c69f,_0x567725):_0x2f2e05(_0x41fd51,_0x47c69f))||_0x567725);}return _0x4d43ab>0x3&&_0x567725&&Object[_0x314f53(0xa8)](_0x41fd51,_0x47c69f,_0x567725),_0x567725;}let L=class extends _0x35945f{constructor(_0x5a1517,_0x45f236,_0x4c537d){const _0x1ab3f8=_0x11b942;super(),this[_0x1ab3f8(0x178)]=_0x5a1517,this[_0x1ab3f8(0x12e)]=_0x45f236,this[_0x1ab3f8(0x104)]=_0x4c537d,N(this,_0x1ab3f8(0xeb),new Map()),N(this,_0x1ab3f8(0x131),new Map()),N(this,'_presentationChanged$',new _0x6a8876()),N(this,'presentationChanged$',this[_0x1ab3f8(0x17e)][_0x1ab3f8(0xf7)]()),this['disposeWithMe'](this[_0x1ab3f8(0x12e)][_0x1ab3f8(0x115)][_0x1ab3f8(0x94)](_0x397d5b=>{const _0x2d961e=_0x1ab3f8;for(let _0x2ac374 of Object['values'](_0x397d5b))for(let _0xbdb530 of Object[_0x2d961e(0xfe)](_0x2ac374))_0xbdb530[_0x2d961e(0xef)](_0x5ad07b=>this[_0x2d961e(0xc2)](_0x5ad07b));}));}[_0x11b942(0x14f)](_0x5030b0){const _0x2b5e8e=_0x11b942;var _0x51ed76;let _0x1f8ffa=_0x5030b0[_0x2b5e8e(0xdd)](),_0xd6e6b9=((_0x51ed76=_0x5030b0[_0x2b5e8e(0x10e)]()[_0x2b5e8e(0x166)])==null||(_0x51ed76=_0x51ed76[_0x2b5e8e(0xe9)])==null?void 0x0:_0x51ed76['filter'](w))??[],_0x5c89fd=this['_model'][_0x2b5e8e(0xc3)](_0x1f8ffa),_0x32d6dd=new Set();for(let _0x61aee9 of _0xd6e6b9){let _0x2ec4a7=_0x5c89fd[_0x61aee9[_0x2b5e8e(0x170)]];_0x2ec4a7&&(_0x32d6dd[_0x2b5e8e(0xfb)](R(_0x1f8ffa,_0x61aee9[_0x2b5e8e(0x170)])),this[_0x2b5e8e(0x171)]({'unitId':_0x1f8ffa,'rangeId':_0x61aee9[_0x2b5e8e(0x170)]},_0x2ec4a7));}for(let _0x1230df of Array[_0x2b5e8e(0x15f)](this[_0x2b5e8e(0xeb)][_0x2b5e8e(0xfe)]()))_0x1230df[_0x2b5e8e(0x84)]===_0x1f8ffa&&!_0x32d6dd[_0x2b5e8e(0x154)](R(_0x1230df['unitId'],_0x1230df[_0x2b5e8e(0x170)]))&&this['unregister'](_0x1230df);}['register'](_0x159979,_0x456ff0){const _0x104fa0=_0x11b942;let _0x2b2923=R(_0x159979[_0x104fa0(0x84)],_0x159979['rangeId']),_0x282abf=this[_0x104fa0(0xeb)][_0x104fa0(0x102)](_0x2b2923),_0x4de174=this[_0x104fa0(0x104)][_0x104fa0(0x9b)](_0x159979[_0x104fa0(0x84)]);if(_0x282abf&&_0x282abf[_0x104fa0(0xd6)][_0x104fa0(0x16f)]===_0x456ff0[_0x104fa0(0x16f)]&&_0x282abf[_0x104fa0(0x7e)]===_0x4de174){_0x282abf['config']=_0x456ff0;let _0x155cf1=_0x282abf['formulaId']?this[_0x104fa0(0x12e)]['getFormulaValueSync'](_0x282abf[_0x104fa0(0x84)],_0x282abf[_0x104fa0(0x84)],_0x282abf['formulaId'])??void 0x0:void 0x0;_0x282abf[_0x104fa0(0x126)]=_0x155cf1,this[_0x104fa0(0x90)](_0x2b2923,z(_0x456ff0,_0x155cf1));return;}_0x282abf!=null&&_0x282abf[_0x104fa0(0xda)]&&this[_0x104fa0(0xbd)](_0x282abf);let _0x645d11={..._0x159979,'config':_0x456ff0,'referenceRevision':_0x4de174,'presentation':z(_0x456ff0,void 0x0)};if(this['_registrations'][_0x104fa0(0x172)](_0x2b2923,_0x645d11),!_0x456ff0[_0x104fa0(0x16f)][_0x104fa0(0x8b)]())return;let _0x274559=this['_registrationService'][_0x104fa0(0x140)](_0x159979[_0x104fa0(0x84)],_0x159979[_0x104fa0(0x84)],_0x456ff0[_0x104fa0(0x16f)],void 0x0,{'rangeId':_0x159979[_0x104fa0(0x170)]},_0x591f38['DOC'],_0x159979['rangeId']);_0x645d11['formulaId']=_0x274559,this[_0x104fa0(0x131)][_0x104fa0(0x172)](_0x274559,_0x2b2923);}[_0x11b942(0xb1)](_0x2a7815){const _0x4def0a=_0x11b942;let _0x269cd7=R(_0x2a7815[_0x4def0a(0x84)],_0x2a7815[_0x4def0a(0x170)]),_0x2e5936=this['_registrations'][_0x4def0a(0x102)](_0x269cd7);_0x2e5936&&(this[_0x4def0a(0xbd)](_0x2e5936),this[_0x4def0a(0xeb)][_0x4def0a(0x91)](_0x269cd7));}[_0x11b942(0x109)](_0x2dd82a){const _0x462432=_0x11b942;for(let _0xc537f5 of Array[_0x462432(0x15f)](this[_0x462432(0xeb)][_0x462432(0xfe)]()))_0xc537f5[_0x462432(0x84)]===_0x2dd82a&&this[_0x462432(0xb1)](_0xc537f5);}['getPresentation'](_0x56b19e){const _0x3b094f=_0x11b942;var _0x4172d0;return(_0x4172d0=this[_0x3b094f(0xeb)][_0x3b094f(0x102)](R(_0x56b19e[_0x3b094f(0x84)],_0x56b19e['rangeId'])))==null?void 0x0:_0x4172d0[_0x3b094f(0x137)];}[_0x11b942(0x123)](_0x1c2f7e){const _0xe1ca3c=_0x11b942;let _0x2c7af9=this[_0xe1ca3c(0xeb)][_0xe1ca3c(0x102)](R(_0x1c2f7e[_0xe1ca3c(0x84)],_0x1c2f7e[_0xe1ca3c(0x170)]));return _0x2c7af9?B(_0x2c7af9):void 0x0;}['getRegisteredFormulas'](){const _0x3c122e=_0x11b942;return Array[_0x3c122e(0x15f)](this[_0x3c122e(0xeb)][_0x3c122e(0xfe)](),_0x5b1919=>({'identity':{'unitId':_0x5b1919[_0x3c122e(0x84)],'rangeId':_0x5b1919['rangeId']},'config':_0x5b1919[_0x3c122e(0xd6)],'referenceRevision':_0x5b1919[_0x3c122e(0x7e)],..._0x5b1919[_0x3c122e(0x126)]?{'liveResult':_0x5b1919[_0x3c122e(0x126)]}:null}));}[_0x11b942(0xce)](){const _0x295781=_0x11b942;for(let _0x4f04c5 of this[_0x295781(0xeb)][_0x295781(0xfe)]())this['_deleteRegistration'](_0x4f04c5);this[_0x295781(0xeb)][_0x295781(0x17c)](),this[_0x295781(0x131)]['clear'](),this[_0x295781(0x17e)][_0x295781(0x14b)](),super[_0x295781(0xce)]();}[_0x11b942(0xc2)](_0x1625ad){const _0x9a5ca7=_0x11b942;let _0x1cb00c=this[_0x9a5ca7(0x131)][_0x9a5ca7(0x102)](_0x1625ad['formulaId']),_0x28a1f8=_0x1cb00c?this['_registrations'][_0x9a5ca7(0x102)](_0x1cb00c):void 0x0;!_0x1cb00c||!_0x28a1f8||(_0x28a1f8[_0x9a5ca7(0x126)]=_0x1625ad,this[_0x9a5ca7(0x90)](_0x1cb00c,z(_0x28a1f8['config'],_0x1625ad)));}['_setPresentation'](_0x5a3ed7,_0x311d59){const _0x9d6f31=_0x11b942;var _0x124b71,_0x485bfe;let _0x1c1e74=this[_0x9d6f31(0xeb)][_0x9d6f31(0x102)](_0x5a3ed7);if(!_0x1c1e74||at(_0x1c1e74[_0x9d6f31(0x137)],_0x311d59))return;let _0x4fc8f9=_0x1c1e74[_0x9d6f31(0x137)],_0x334375=B(_0x1c1e74);_0x1c1e74[_0x9d6f31(0x137)]=_0x311d59,this[_0x9d6f31(0x17e)][_0x9d6f31(0xa0)]({'unitId':_0x1c1e74[_0x9d6f31(0x84)],'rangeId':_0x1c1e74[_0x9d6f31(0x170)],'presentation':_0x311d59,'previousPresentation':_0x4fc8f9,'result':B(_0x1c1e74),'previousResult':{..._0x334375,..._0x4fc8f9,'value':(_0x124b71=_0x4fc8f9[_0x9d6f31(0x8e)])==null?void 0x0:_0x124b71['v'],'valueType':((_0x485bfe=_0x4fc8f9[_0x9d6f31(0x8e)])==null?void 0x0:_0x485bfe['t'])??void 0x0}});}['_deleteRegistration'](_0x3fdd76){const _0x42639b=_0x11b942;_0x3fdd76[_0x42639b(0xda)]&&(this[_0x42639b(0x12e)]['deleteFormula'](_0x3fdd76['unitId'],_0x3fdd76[_0x42639b(0x84)],[_0x3fdd76[_0x42639b(0xda)]]),this[_0x42639b(0x131)][_0x42639b(0x91)](_0x3fdd76[_0x42639b(0xda)]));}};L=I([F(0x0,_0x3d3024(P)),F(0x1,_0x3d3024(_0xa717d0)),F(0x2,_0x3d3024(_0x4e55da))],L);function R(_0x58c0df,_0x142750){return _0x58c0df+'\x00'+_0x142750;}function z(_0x2fbfb4,_0x31e794){const _0x3dc0de=_0x11b942;return _0x57ce95({'numberFormat':_0x2fbfb4[_0x3dc0de(0x13c)],'lastValue':_0x2fbfb4[_0x3dc0de(0xdb)],'result':_0x31e794});}function B(_0x1841d6){const _0xc0e2f9=_0x11b942;var _0x55ed7e,_0x5bf50f,_0x3e9436;let _0x2a4df2=_0x1841d6[_0xc0e2f9(0x137)],_0x3009a6=_0x1841d6[_0xc0e2f9(0xd6)]['formula'][_0xc0e2f9(0x8b)]()?_0x2a4df2[_0xc0e2f9(0x11c)]||_0x2a4df2[_0xc0e2f9(0x8e)]==null?_0xc0e2f9(0x11d):((_0x55ed7e=_0x1841d6[_0xc0e2f9(0x126)])==null?void 0x0:_0x55ed7e[_0xc0e2f9(0xb3)])===_0x110262[_0xc0e2f9(0x160)]?'error':_0xc0e2f9(0x11e):_0xc0e2f9(0xcc);return{..._0x2a4df2,'status':_0x3009a6,'value':(_0x5bf50f=_0x2a4df2[_0xc0e2f9(0x8e)])==null?void 0x0:_0x5bf50f['v'],'valueType':((_0x3e9436=_0x2a4df2[_0xc0e2f9(0x8e)])==null?void 0x0:_0x3e9436['t'])??void 0x0};}function at(_0x473611,_0x1e00c8){const _0x1e38da=_0x11b942;var _0x17b95c,_0x45599b,_0x6a711e,_0xef6d9c;return _0x473611[_0x1e38da(0x14d)]===_0x1e00c8[_0x1e38da(0x14d)]&&_0x473611['color']===_0x1e00c8[_0x1e38da(0xe0)]&&_0x473611['pattern']===_0x1e00c8[_0x1e38da(0xc1)]&&_0x473611[_0x1e38da(0xfa)]===_0x1e00c8[_0x1e38da(0xfa)]&&_0x473611[_0x1e38da(0x11c)]===_0x1e00c8[_0x1e38da(0x11c)]&&((_0x17b95c=_0x473611[_0x1e38da(0x8e)])==null?void 0x0:_0x17b95c['t'])===((_0x45599b=_0x1e00c8[_0x1e38da(0x8e)])==null?void 0x0:_0x45599b['t'])&&Object['is']((_0x6a711e=_0x473611[_0x1e38da(0x8e)])==null?void 0x0:_0x6a711e['v'],(_0xef6d9c=_0x1e00c8[_0x1e38da(0x8e)])==null?void 0x0:_0xef6d9c['v']);}const ot={'id':_0x11b942(0xf8),'type':_0x5965b8[_0x11b942(0x15d)],'handler':(_0x6a7fdf,_0x1d683a)=>!(_0x1d683a!=null&&_0x1d683a[_0x11b942(0x84)])||!_0x1d683a[_0x11b942(0x170)]||!_0x1d683a[_0x11b942(0xd6)]?!0x1:_0x6a7fdf[_0x11b942(0x102)](P)['setFormula'](_0x1d683a[_0x11b942(0x84)],_0x1d683a['rangeId'],_0x1d683a[_0x11b942(0xd6)])},st={'id':_0x11b942(0x117),'type':_0x5965b8[_0x11b942(0x15d)],'handler':(_0x1c0473,_0x59a01b)=>!(_0x59a01b!=null&&_0x59a01b[_0x11b942(0x84)])||!_0x59a01b[_0x11b942(0x170)]?!0x1:_0x1c0473[_0x11b942(0x102)](P)['removeFormula'](_0x59a01b[_0x11b942(0x84)],_0x59a01b[_0x11b942(0x170)])},V={'id':_0x11b942(0xa4),'type':_0x5965b8[_0x11b942(0x15d)],'handler':(_0x39bea1,_0x3af3e3)=>!(_0x3af3e3!=null&&_0x3af3e3[_0x11b942(0x84)])||!_0x3af3e3[_0x11b942(0xf3)]?!0x1:_0x39bea1[_0x11b942(0x102)](P)[_0x11b942(0x11f)](_0x3af3e3[_0x11b942(0x84)],_0x3af3e3['resource'])},H={'id':_0x11b942(0xf4),'type':_0x5965b8[_0x11b942(0x15d)],'handler':(_0x2ec8d9,_0x19b904)=>{const _0x5a20b4=_0x11b942;if(!(_0x19b904!=null&&_0x19b904['unitId'])||!_0x19b904[_0x5a20b4(0x12d)]['length'])return!0x1;let _0x330a82=_0x2ec8d9[_0x5a20b4(0x102)](P),_0x4d6167=_0x2ec8d9[_0x5a20b4(0x102)](_0x4e55da),_0x8774c0=_0x330a82['getResource'](_0x19b904[_0x5a20b4(0x84)]);if(!_0x8774c0)return!0x1;let _0x14c2d8=_0x29e987[_0x5a20b4(0xe4)](_0x8774c0),_0x56185d=!0x1;for(let _0x49edf2 of _0x19b904['updates']){var _0x5aa7a9,_0x45f57e,_0x24560d,_0x8e6c24;let _0x1cbef4=_0x14c2d8['formulas'][_0x49edf2[_0x5a20b4(0x170)]];!_0x1cbef4||_0x1cbef4['formula']!==_0x49edf2[_0x5a20b4(0x150)]||((_0x5aa7a9=_0x1cbef4[_0x5a20b4(0x13c)])==null?void 0x0:_0x5aa7a9[_0x5a20b4(0xc1)])!==_0x49edf2[_0x5a20b4(0x105)]||_0x4d6167[_0x5a20b4(0x9b)](_0x19b904[_0x5a20b4(0x84)])!==_0x49edf2[_0x5a20b4(0x98)]||(((_0x45f57e=_0x1cbef4[_0x5a20b4(0xdb)])==null?void 0x0:_0x45f57e['v'])!==_0x49edf2[_0x5a20b4(0xdb)]['v']||((_0x24560d=_0x1cbef4[_0x5a20b4(0xdb)])==null?void 0x0:_0x24560d['t'])!==_0x49edf2[_0x5a20b4(0xdb)]['t']||((_0x8e6c24=_0x1cbef4['lastValue'])==null?void 0x0:_0x8e6c24['pattern'])!==_0x49edf2[_0x5a20b4(0xdb)]['pattern'])&&(_0x1cbef4['lastValue']=_0x29e987[_0x5a20b4(0xe4)](_0x49edf2[_0x5a20b4(0xdb)]),_0x56185d=!0x0);}return!_0x56185d||_0x330a82['setResource'](_0x19b904[_0x5a20b4(0x84)],_0x14c2d8);}},U={'id':_0x11b942(0x146),'type':_0x5965b8[_0x11b942(0x9c)],'handler':(_0x2e4465,_0x59bbf1)=>{const _0x3b6fd4=_0x11b942;if(!(_0x59bbf1!=null&&_0x59bbf1[_0x3b6fd4(0x16f)][_0x3b6fd4(0x8b)]()))return!0x1;let _0x45bb42=q(_0x2e4465,_0x59bbf1[_0x3b6fd4(0x84)],'');if(!_0x45bb42)return!0x1;let _0x11edf8=ft(_0x59bbf1[_0x3b6fd4(0xb6)],_0x45bb42[_0x3b6fd4(0x166)],dt(_0x2e4465,_0x45bb42['unitId']));if(!_0x11edf8)return!0x1;let _0x4f1f31=pt(_0x2e4465,_0x45bb42['unitId'],_0x59bbf1[_0x3b6fd4(0x16f)],_0x59bbf1['externalReferences']??[]);if(!_0x4f1f31)return!0x1;let _0x1e0526=mt(_0x45bb42[_0x3b6fd4(0x166)],_0x45bb42[_0x3b6fd4(0xd9)],_0x45bb42['unitId']),_0x213562=ht({'documentData':_0x45bb42['documentData'],'resource':_0x45bb42[_0x3b6fd4(0xf3)],'rangeId':_0x1e0526,'config':{'formula':_0x59bbf1[_0x3b6fd4(0x16f)],..._0x59bbf1[_0x3b6fd4(0x13c)]?{'numberFormat':_0x59bbf1[_0x3b6fd4(0x13c)]}:null},'startOffset':_0x11edf8[_0x3b6fd4(0x10d)],'endOffset':_0x11edf8[_0x3b6fd4(0x173)]});if(!_0x213562)return!0x1;let _0x1cb69b=_0x1d12c5(_0x2e4465,_0x45bb42['unitId'],_0x4f1f31);return!_0x1cb69b||!J({'accessor':_0x2e4465,'document':_0x45bb42[_0x3b6fd4(0x110)],'unitId':_0x45bb42[_0x3b6fd4(0x84)],'trigger':U['id'],'rangeId':_0x1e0526,'previousResource':_0x45bb42[_0x3b6fd4(0xf3)],'nextResource':_0x213562['nextResource'],'previousDocumentData':_0x45bb42[_0x3b6fd4(0x15e)],'nextDocumentData':_0x213562[_0x3b6fd4(0x17a)],'cursorOffset':_0x213562['cursorOffset'],'externalMutations':_0x1cb69b})?!0x1:{'rangeId':_0x1e0526,'startOffset':_0x213562[_0x3b6fd4(0x8a)]-0x1,'endOffset':_0x213562[_0x3b6fd4(0x8a)]};}},W={'id':_0x11b942(0xe2),'type':_0x5965b8[_0x11b942(0x9c)],'handler':(_0x52e4bf,_0x1aa596)=>{const _0x432aed=_0x11b942;if(!(_0x1aa596!=null&&_0x1aa596['rangeId'])||!_0x1aa596[_0x432aed(0x16f)]['trim']())return!0x1;let _0x3a4093=q(_0x52e4bf,_0x1aa596[_0x432aed(0x84)],''),_0x490cce=_0x3a4093==null?void 0x0:_0x3a4093[_0x432aed(0xd9)][_0x432aed(0x161)](_0x3a4093[_0x432aed(0x84)],_0x1aa596[_0x432aed(0x170)]),_0x1398b9=_0x3a4093?T(_0x3a4093[_0x432aed(0x15e)][_0x432aed(0x166)],_0x1aa596[_0x432aed(0x170)]):void 0x0;if(!_0x3a4093||!_0x490cce||!_0x1398b9)return!0x1;let _0x22ea79=pt(_0x52e4bf,_0x3a4093[_0x432aed(0x84)],_0x1aa596[_0x432aed(0x16f)],_0x1aa596[_0x432aed(0x9a)]??[]);if(!_0x22ea79)return!0x1;let _0x26d0cb=_0x1d12c5(_0x52e4bf,_0x3a4093[_0x432aed(0x84)],_0x22ea79);if(!_0x26d0cb)return!0x1;let _0x2be6e4=Ct(_0x3a4093[_0x432aed(0xf3)]);return _0x2be6e4[_0x432aed(0x12b)][_0x1aa596[_0x432aed(0x170)]]={'formula':_0x1aa596[_0x432aed(0x16f)],..._0x1aa596[_0x432aed(0x13c)]?{'numberFormat':_0x1aa596[_0x432aed(0x13c)]}:_0x490cce['numberFormat']?{'numberFormat':_0x490cce['numberFormat']}:null},J({'accessor':_0x52e4bf,'document':_0x3a4093[_0x432aed(0x110)],'unitId':_0x3a4093[_0x432aed(0x84)],'trigger':W['id'],'rangeId':_0x1aa596[_0x432aed(0x170)],'previousResource':_0x3a4093[_0x432aed(0xf3)],'nextResource':_0x2be6e4,'cursorOffset':_0x1398b9[_0x432aed(0xa6)]+0x1,'externalMutations':_0x26d0cb});}},G={'id':_0x11b942(0xaf),'type':_0x5965b8[_0x11b942(0x9c)],'handler':(_0x170c89,_0x1ddf95)=>{const _0x5b1c53=_0x11b942;if(!(_0x1ddf95!=null&&_0x1ddf95[_0x5b1c53(0x170)]))return!0x1;let _0x27efc3=q(_0x170c89,_0x1ddf95['unitId'],''),_0x347d4e=_0x27efc3==null?void 0x0:_0x27efc3['model'][_0x5b1c53(0x161)](_0x27efc3[_0x5b1c53(0x84)],_0x1ddf95[_0x5b1c53(0x170)]),_0x4eaf7d=_0x27efc3?T(_0x27efc3['documentData'][_0x5b1c53(0x166)],_0x1ddf95[_0x5b1c53(0x170)]):void 0x0;if(!_0x27efc3||!_0x347d4e||!_0x4eaf7d)return!0x1;let _0x3723e1=Ct(_0x27efc3[_0x5b1c53(0xf3)]);return _0x3723e1['formulas'][_0x1ddf95[_0x5b1c53(0x170)]]={..._0x347d4e,..._0x1ddf95[_0x5b1c53(0x13c)]?{'numberFormat':_0x1ddf95[_0x5b1c53(0x13c)]}:null},_0x1ddf95['numberFormat']||delete _0x3723e1[_0x5b1c53(0x12b)][_0x1ddf95[_0x5b1c53(0x170)]]['numberFormat'],J({'accessor':_0x170c89,'document':_0x27efc3[_0x5b1c53(0x110)],'unitId':_0x27efc3[_0x5b1c53(0x84)],'trigger':G['id'],'rangeId':_0x1ddf95[_0x5b1c53(0x170)],'previousResource':_0x27efc3['resource'],'nextResource':_0x3723e1,'cursorOffset':_0x4eaf7d['endIndex']+0x1,'externalMutations':{}});}},K={'id':'docs-formula.command.remove','type':_0x5965b8[_0x11b942(0x9c)],'handler':(_0x4e3828,_0x4cf093)=>ut(_0x4e3828,_0x4cf093,'',K['id'])},ct={'id':_0x11b942(0x114),'type':_0x5965b8['COMMAND'],'handler':(_0x17ec76,_0x9e03ed)=>ut(_0x17ec76,_0x9e03ed,(_0x9e03ed==null?void 0x0:_0x9e03ed[_0x11b942(0x14d)])??'',ct['id'])},lt={'id':_0x11b942(0x16c),'type':_0x5965b8[_0x11b942(0x9c)],'handler':(_0x159ea6,_0x1c208b)=>{const _0x306990=_0x11b942;if(!(_0x1c208b!=null&&_0x1c208b[_0x306990(0x170)]))return!0x1;let _0x2771bb=q(_0x159ea6,_0x1c208b['unitId'],'');if(!_0x2771bb)return!0x1;let _0x7f266e=_0x159ea6[_0x306990(0x102)](L)[_0x306990(0x123)]({'unitId':_0x2771bb[_0x306990(0x84)],'rangeId':_0x1c208b[_0x306990(0x170)]});return _0x7f266e?ut(_0x159ea6,_0x1c208b,_0x7f266e['text'],lt['id']):!0x1;}};function ut(_0x353ea3,_0x1fb9a0,_0x237405,_0x42e8ce){const _0x37ebb9=_0x11b942;if(!(_0x1fb9a0!=null&&_0x1fb9a0[_0x37ebb9(0x170)]))return!0x1;let _0x2fe8b5=q(_0x353ea3,_0x1fb9a0[_0x37ebb9(0x84)],'');if(!_0x2fe8b5)return!0x1;let _0xd0b72=Be({'documentData':_0x2fe8b5['documentData'],'resource':_0x2fe8b5[_0x37ebb9(0xf3)],'rangeId':_0x1fb9a0['rangeId'],'text':_0x237405});return _0xd0b72?J({'accessor':_0x353ea3,'document':_0x2fe8b5[_0x37ebb9(0x110)],'unitId':_0x2fe8b5[_0x37ebb9(0x84)],'trigger':_0x42e8ce,'rangeId':_0x1fb9a0['rangeId'],'previousResource':_0x2fe8b5[_0x37ebb9(0xf3)],'nextResource':_0xd0b72[_0x37ebb9(0xb8)],'previousDocumentData':_0x2fe8b5[_0x37ebb9(0x15e)],'nextDocumentData':_0xd0b72[_0x37ebb9(0x17a)],'cursorOffset':_0xd0b72['cursorOffset'],'externalMutations':{}}):!0x1;}function q(_0x157d22,_0x5f95ca,_0x1e77b1){const _0xbead58=_0x11b942;if(_0x1e77b1)return null;let _0xf21601=_0x157d22['get'](_0x930636),_0x53461d=(_0x5f95ca?_0xf21601['getUnit'](_0x5f95ca,_0x45653d[_0xbead58(0x144)]):_0xf21601['getCurrentUnitOfType'](_0x45653d[_0xbead58(0x144)]))??null;if(!_0x53461d)return null;let _0x3683c0=_0x53461d[_0xbead58(0x10e)](),_0x965c7b=_0x3683c0['body'];if(_0x3683c0[_0xbead58(0x14a)]||!_0x965c7b)return null;let _0x13085f=_0x157d22[_0xbead58(0x102)](P);return _0x13085f['getLoadError'](_0x53461d['getUnitId']())?null:{'document':_0x53461d,'body':_0x965c7b,'documentData':_0x3683c0,'model':_0x13085f,'resource':_0x13085f[_0xbead58(0x16a)](_0x53461d[_0xbead58(0xdd)]())??b(),'unitId':_0x53461d[_0xbead58(0xdd)]()};}function dt(_0x5006e2,_0x484716){const _0x3859a2=_0x11b942;var _0x3dc8cb;return(_0x3dc8cb=_0x5006e2['get'](_0x42f86e)[_0x3859a2(0x116)]({'subUnitId':_0x484716,'unitId':_0x484716}))==null?void 0x0:_0x3dc8cb[0x0];}function ft(_0x4709ef,_0x25965f,_0x468180){const _0x5575a8=_0x11b942;if((_0x4709ef==null?void 0x0:_0x4709ef[_0x5575a8(0xd2)])===_0x5575a8(0xc0)){var _0x38f724;let _0x190c62=((_0x38f724=_0x25965f[_0x5575a8(0x156)])==null?void 0x0:_0x38f724[_0x5575a8(0x112)](_0x94516f=>_0x94516f['paragraphId']===_0x4709ef['paragraphId']))??[];if(_0x190c62['length']!==0x1)return null;let _0x36d4b9=_0x190c62[0x0],_0x2c1532=_0x54e7b7(_0x25965f,_0x36d4b9),_0xbc45d6=_0x36d4b9[_0x5575a8(0xc8)]-_0x2c1532,_0x11b44f=_0x4709ef[_0x5575a8(0x145)]===_0x5575a8(0x96)?_0xbc45d6:_0x4709ef['position'];if(!Number[_0x5575a8(0x151)](_0x11b44f)||_0x11b44f<0x0||_0x11b44f>_0xbc45d6)return null;let _0x214e15=_0x2c1532+_0x11b44f;return{'startOffset':_0x214e15,'endOffset':_0x214e15};}if((_0x4709ef==null?void 0x0:_0x4709ef[_0x5575a8(0xd2)])===_0x5575a8(0xe6))return!Number[_0x5575a8(0x151)](_0x4709ef[_0x5575a8(0x10d)])||!Number['isInteger'](_0x4709ef[_0x5575a8(0x173)])?null:{'startOffset':Math[_0x5575a8(0xed)](_0x4709ef[_0x5575a8(0x10d)],_0x4709ef['endOffset']),'endOffset':Math[_0x5575a8(0x17f)](_0x4709ef[_0x5575a8(0x10d)],_0x4709ef[_0x5575a8(0x173)])};let _0x5ddeec=(_0x4709ef==null?void 0x0:_0x4709ef[_0x5575a8(0xd2)])==='selection'?_0x4709ef['selection']:_0x468180;return!_0x5ddeec||_0x5ddeec[_0x5575a8(0x9f)]?null:{'startOffset':Math[_0x5575a8(0xed)](_0x5ddeec[_0x5575a8(0x10d)],_0x5ddeec[_0x5575a8(0x173)]),'endOffset':Math[_0x5575a8(0x17f)](_0x5ddeec[_0x5575a8(0x10d)],_0x5ddeec[_0x5575a8(0x173)])};}function pt(_0x112629,_0x3d4e25,_0x245075,_0x18a669){const _0x56790b=_0x11b942;let _0x1c645d=_0x112629[_0x56790b(0x102)](_0x3c43da),_0x29e0e9=_0x245075[_0x56790b(0x103)]('=')?_0x245075['slice'](0x1):_0x245075,_0x3183a7=_0x1c645d[_0x56790b(0x125)](_0x29e0e9);if(!_0x3183a7)return null;let _0x322aab=_0x112629[_0x56790b(0x102)](_0x4e55da),_0x471c9b=_0x7dadcf({'qualifiers':_0x59b99e(_0x3183a7),'explicitReferences':_0x18a669??[],'resolveBinding':_0x903b3f=>_0x322aab[_0x56790b(0xc5)](_0x3d4e25,_0x903b3f)});return _0x471c9b['status']===_0x56790b(0xe3)?_0x471c9b[_0x56790b(0xbf)]:null;}function mt(_0x45f602,_0x40a866,_0x48e831){const _0x2a0773=_0x11b942;var _0x13ac37;let _0x3e0802=_0x2dbc3e(0x6);for(;_0x45f602!=null&&(_0x13ac37=_0x45f602[_0x2a0773(0xe9)])!=null&&_0x13ac37[_0x2a0773(0x107)](_0x5a7cbe=>_0x5a7cbe[_0x2a0773(0x170)]===_0x3e0802)||_0x40a866['getFormula'](_0x48e831,_0x3e0802);)_0x3e0802=_0x2dbc3e(0x6);return _0x3e0802;}function ht(_0x1cdc3a){try{return Re(_0x1cdc3a);}catch(_0x1cc7c0){if(_0x1cc7c0 instanceof C)return null;throw _0x1cc7c0;}}function gt(_0x1f144e){const _0x45eb60=_0x11b942;let _0x21a2d5=_0x1f144e[_0x45eb60(0xb5)]&&_0x1f144e[_0x45eb60(0x17a)]?vt(_0x1f144e['document'],_0x1f144e[_0x45eb60(0x84)],_0x1f144e[_0x45eb60(0xb5)],_0x1f144e['nextDocumentData'],_0x1f144e[_0x45eb60(0x8a)],_0x1f144e[_0x45eb60(0x15b)]):null;return _0x1f144e[_0x45eb60(0xb5)]&&_0x1f144e[_0x45eb60(0x17a)]&&!_0x21a2d5?null:{'documentRedo':_0x21a2d5,'resourceRedo':{'id':V['id'],'params':{'unitId':_0x1f144e['unitId'],'resource':_0x1f144e[_0x45eb60(0xb8)]}},'resourceUndo':{'id':V['id'],'params':{'unitId':_0x1f144e[_0x45eb60(0x84)],'resource':_0x1f144e[_0x45eb60(0x177)]}}};}function _t(_0x551c0a,_0x4c754b,_0x53eccf,_0x21140f){const _0x1cbb2e=_0x11b942;_0x21140f['pushUndoRedo']({'id':_0x551c0a['trigger']+':'+_0x551c0a[_0x1cbb2e(0x170)],'unitID':_0x551c0a[_0x1cbb2e(0x84)],'redoMutations':[..._0x551c0a[_0x1cbb2e(0xd4)][_0x1cbb2e(0x167)]?[_0x551c0a['externalMutations'][_0x1cbb2e(0x167)]]:[],..._0x4c754b[_0x1cbb2e(0x152)]?[_0x4c754b[_0x1cbb2e(0x152)]]:[],_0x4c754b[_0x1cbb2e(0xd0)]],'undoMutations':[_0x4c754b[_0x1cbb2e(0x120)],..._0x53eccf?[_0x53eccf]:[],..._0x551c0a[_0x1cbb2e(0xd4)][_0x1cbb2e(0xa1)]?[_0x551c0a[_0x1cbb2e(0xd4)][_0x1cbb2e(0xa1)]]:[]]});}function J(_0x4f1330){const _0x237f0c=_0x11b942;let _0x3dd31e=_0x4f1330[_0x237f0c(0xbb)]['get'](_0x33bec9),_0x1ca664=_0x4f1330['accessor'][_0x237f0c(0x102)](_0x21b9cd),_0x5c5085=_0x4f1330[_0x237f0c(0xbb)][_0x237f0c(0x102)](_0x42f86e),_0x306f3c=gt(_0x4f1330);if(!_0x306f3c)return!0x1;let _0x218805=!0x1,_0x5f3913=null,_0x33f174=!0x1;try{if(_0x4f1330[_0x237f0c(0xd4)][_0x237f0c(0x167)]){if(!_0x3dd31e['syncExecuteCommand'](_0x4f1330[_0x237f0c(0xd4)][_0x237f0c(0x167)]['id'],_0x4f1330[_0x237f0c(0xd4)][_0x237f0c(0x167)]['params']))return!0x1;_0x218805=!0x0;}if(_0x306f3c[_0x237f0c(0x152)]){let _0x2048db=_0x3dd31e['syncExecuteCommand'](_0x306f3c[_0x237f0c(0x152)]['id'],_0x306f3c['documentRedo'][_0x237f0c(0x13a)]);if(!_0x2048db)return bt(_0x3dd31e,_0x4f1330[_0x237f0c(0xd4)],_0x218805),!0x1;_0x5f3913={'id':_0x480fe8['id'],'params':{..._0x2048db,'noHistory':!0x0,'noNeedSetTextRange':!0x0,'segmentId':''}};}if(!_0x3dd31e[_0x237f0c(0xf1)](_0x306f3c['resourceRedo']['id'],_0x306f3c[_0x237f0c(0xd0)][_0x237f0c(0x13a)]))return yt(_0x3dd31e,_0x5f3913),bt(_0x3dd31e,_0x4f1330[_0x237f0c(0xd4)],_0x218805),!0x1;_0x33f174=!0x0,_t(_0x4f1330,_0x306f3c,_0x5f3913,_0x1ca664);}catch(_0x556456){throw _0x33f174&&_0x3dd31e[_0x237f0c(0xf1)](_0x306f3c[_0x237f0c(0x120)]['id'],_0x306f3c[_0x237f0c(0x120)]['params']),yt(_0x3dd31e,_0x5f3913),bt(_0x3dd31e,_0x4f1330[_0x237f0c(0xd4)],_0x218805),_0x556456;}return _0x5c5085[_0x237f0c(0xcf)]([{'startOffset':_0x4f1330['cursorOffset'],'endOffset':_0x4f1330[_0x237f0c(0x8a)],'segmentId':''}],{'unitId':_0x4f1330[_0x237f0c(0x84)],'subUnitId':_0x4f1330['unitId']},!0x1,{[_0xa0c5b1]:!0x0}),!0x0;}function vt(_0xd531a6,_0xa13539,_0x47eb4c,_0x273e1f,_0x4022d6,_0x107de9){let _0x5b35c7=xt(_0x47eb4c,_0x273e1f,_0x36d11e(_0xd531a6,''));return _0x5b35c7?{'id':_0x480fe8['id'],'params':{'unitId':_0xa13539,'actions':_0x5b35c7,'segmentId':'','textRanges':[{'startOffset':_0x4022d6,'endOffset':_0x4022d6,'collapsed':!0x0,'segmentId':''}],'isEditing':!0x1,'noHistory':!0x0,'noNeedSetTextRange':!0x0,'trigger':_0x107de9}}:null;}function yt(_0x42e4a9,_0x84813d){_0x84813d&&_0x42e4a9['syncExecuteCommand'](_0x84813d['id'],_0x84813d['params']);}function bt(_0x4f61ee,_0x2cfd1a,_0x5b46b5){const _0x13070a=_0x11b942;_0x5b46b5&&_0x2cfd1a[_0x13070a(0xa1)]&&_0x4f61ee[_0x13070a(0xf1)](_0x2cfd1a[_0x13070a(0xa1)]['id'],_0x2cfd1a[_0x13070a(0xa1)][_0x13070a(0x13a)]);}function xt(_0x9331c9,_0x589dac,_0x233360){const _0x950300=_0x11b942;let _0x451dfc=_0x9331c9[_0x950300(0x166)],_0x1f433c=_0x589dac[_0x950300(0x166)],_0x1bbda7=St(_0x451dfc==null?void 0x0:_0x451dfc[_0x950300(0x11a)],_0x1f433c==null?void 0x0:_0x1f433c[_0x950300(0x11a)]);if(!_0x1bbda7||!_0x1f433c)return null;let _0x1a92c0=new _0x3b5ea5();return _0x1a92c0[_0x950300(0x122)](_0x1bbda7[_0x950300(0x99)]),_0x1bbda7[_0x950300(0x135)]>0x0&&_0x1a92c0[_0x950300(0x17d)](_0x1bbda7[_0x950300(0x135)],_0x1be218(_0x1f433c,_0x1bbda7[_0x950300(0x99)],_0x1bbda7[_0x950300(0x99)]+_0x1bbda7[_0x950300(0x135)],!0x1)),_0x1bbda7[_0x950300(0xb0)]>0x0&&_0x1a92c0[_0x950300(0x91)](_0x1bbda7[_0x950300(0xb0)]),_0x583736[_0x950300(0x95)]()[_0x950300(0x92)](_0x1a92c0[_0x950300(0x13b)](),_0x233360);}function St(_0xd9da5,_0x28fbd2){const _0x5e2572=_0x11b942;if(_0xd9da5==null||_0x28fbd2==null||_0xd9da5===_0x28fbd2)return null;let _0xfbb648=0x0;for(;_0xfbb648<_0xd9da5[_0x5e2572(0x10b)]&&_0xfbb648<_0x28fbd2[_0x5e2572(0x10b)]&&_0xd9da5[_0xfbb648]===_0x28fbd2[_0xfbb648];)_0xfbb648+=0x1;let _0x5ecdae=_0xd9da5['length'],_0x1b0fe3=_0x28fbd2[_0x5e2572(0x10b)];for(;_0x5ecdae>_0xfbb648&&_0x1b0fe3>_0xfbb648&&_0xd9da5[_0x5ecdae-0x1]===_0x28fbd2[_0x1b0fe3-0x1];)--_0x5ecdae,--_0x1b0fe3;return{'start':_0xfbb648,'deleteLength':_0x5ecdae-_0xfbb648,'insertLength':_0x1b0fe3-_0xfbb648};}function Ct(_0x4d0578){const _0x2ed9cf=_0x11b942;return{'schemaVersion':0x1,'formulas':Object['fromEntries'](Object['entries'](_0x4d0578[_0x2ed9cf(0x12b)])[_0x2ed9cf(0x14e)](([_0x4bec15,_0x3a86a1])=>[_0x4bec15,{..._0x3a86a1,..._0x3a86a1[_0x2ed9cf(0x13c)]?{'numberFormat':{..._0x3a86a1['numberFormat']}}:null,..._0x3a86a1[_0x2ed9cf(0xdb)]?{'lastValue':{..._0x3a86a1[_0x2ed9cf(0xdb)]}}:null}]))};}let Y=class extends _0x35945f{constructor(_0x226b09,_0x3095e0,_0x574718,_0x1db3b6){const _0x164e8b=_0x11b942;super(),this[_0x164e8b(0xa5)]=_0x226b09,this[_0x164e8b(0x111)]=_0x3095e0,this[_0x164e8b(0x178)]=_0x574718,this[_0x164e8b(0x8d)]=_0x1db3b6,N(this,_0x164e8b(0xb4),new Set()),N(this,_0x164e8b(0xcd),!0x1),N(this,_0x164e8b(0x11b),!0x1),this['_instanceService'][_0x164e8b(0xdf)](_0x45653d[_0x164e8b(0x144)])[_0x164e8b(0xef)](_0xf8ecb1=>this[_0x164e8b(0x8d)]['syncUnit'](_0xf8ecb1)),this['disposeWithMe'](this[_0x164e8b(0x178)][_0x164e8b(0x80)]['subscribe'](({unitId:_0x243129})=>this['_syncUnit'](_0x243129))),this[_0x164e8b(0x128)](this[_0x164e8b(0xa5)][_0x164e8b(0xfd)][_0x164e8b(0x94)](({unit:_0x1147c4})=>{const _0x2e1619=_0x164e8b;_0x1147c4[_0x2e1619(0xd2)]===_0x45653d[_0x2e1619(0x144)]&&this['_queueSync'](_0x1147c4[_0x2e1619(0xdd)]());})),this[_0x164e8b(0x128)](this[_0x164e8b(0xa5)][_0x164e8b(0xd3)][_0x164e8b(0x94)](_0x36a31f=>{const _0x583da1=_0x164e8b;this[_0x583da1(0x8d)][_0x583da1(0x109)](_0x36a31f[_0x583da1(0xdd)]());})),this[_0x164e8b(0x128)](this[_0x164e8b(0x111)][_0x164e8b(0x136)](_0x231215=>{const _0x57a9cd=_0x164e8b;if(_0x231215['id']===_0x480fe8['id']&&wt(_0x231215['params'])){let _0x5e33e8=_0x231215[_0x57a9cd(0x13a)];_0x5e33e8[_0x57a9cd(0x9f)]||this[_0x57a9cd(0x108)](_0x5e33e8[_0x57a9cd(0x84)]);}}));}[_0x11b942(0xce)](){const _0x4815cc=_0x11b942;this[_0x4815cc(0x11b)]=!0x0,super['dispose']();}['_queueSync'](_0x4e82fd){const _0x336b71=_0x11b942;this[_0x336b71(0xb4)][_0x336b71(0xfb)](_0x4e82fd),!this[_0x336b71(0xcd)]&&(this[_0x336b71(0xcd)]=!0x0,queueMicrotask(()=>{const _0x12f257=_0x336b71;if(this[_0x12f257(0xcd)]=!0x1,this[_0x12f257(0x11b)])return;let _0x149743=Array['from'](this[_0x12f257(0xb4)]);this['_pendingUnitIds'][_0x12f257(0x17c)](),_0x149743[_0x12f257(0xef)](_0xd3bec8=>this[_0x12f257(0x108)](_0xd3bec8));}));}[_0x11b942(0x108)](_0x20c45f){const _0x5526e6=_0x11b942;let _0x219fa0=this[_0x5526e6(0xa5)][_0x5526e6(0x101)](_0x20c45f,_0x45653d[_0x5526e6(0x144)]);_0x219fa0&&this[_0x5526e6(0x8d)][_0x5526e6(0x14f)](_0x219fa0);}};Y=I([F(0x0,_0x930636),F(0x1,_0x33bec9),F(0x2,_0x3d3024(P)),F(0x3,_0x3d3024(L))],Y);function wt(_0x35e259){const _0x22e223=_0x11b942;return typeof _0x35e259=='object'&&!!_0x35e259&&'unitId'in _0x35e259&&typeof _0x35e259[_0x22e223(0x84)]=='string'&&(!(_0x22e223(0x9f)in _0x35e259)||_0x35e259[_0x22e223(0x9f)]===void 0x0||typeof _0x35e259[_0x22e223(0x9f)]=='string');}let X=class extends _0x35945f{constructor(_0x48ea6b,_0x252613){const _0x23131c=_0x11b942;super(),this[_0x23131c(0x121)]=_0x48ea6b,this['_docFormulaModel']=_0x252613,this[_0x23131c(0x128)](this[_0x23131c(0x121)]['registerPluginResource']({'pluginName':y,'businesses':[_0x45653d['UNIVER_DOC']],'toJson':_0x375474=>JSON['stringify'](this[_0x23131c(0x148)][_0x23131c(0x13b)](_0x375474)),'parseJson':_0x37e8bd=>JSON[_0x23131c(0xf9)](_0x37e8bd),'onLoad':(_0x179916,_0x1b2f80)=>{const _0x5c9a9b=_0x23131c;this['_docFormulaModel'][_0x5c9a9b(0x141)](_0x179916,_0x1b2f80);},'onUnLoad':_0x1d9538=>this[_0x23131c(0x148)][_0x23131c(0x133)](_0x1d9538)}));}};X=I([F(0x0,_0x1e7c1d),F(0x1,_0x3d3024(P))],X);var Tt=_0x11b942(0xa2),Et=_0x11b942(0xea);const Dt={};let Z=class extends _0x35945f{constructor(_0xbe2a7b,_0x51dac4,_0x9a280){const _0x33b6bb=_0x11b942;super(),this[_0x33b6bb(0x118)]=_0xbe2a7b,this[_0x33b6bb(0x159)]=_0x51dac4,this[_0x33b6bb(0x128)](_0x9a280['register']({'resolve':(_0x465869,_0x4165d0)=>{const _0x9214a=_0x33b6bb;var _0x580461;return((_0x580461=_0x4165d0['customRanges'])==null?void 0x0:_0x580461[_0x9214a(0x112)](w)[_0x9214a(0x14e)](_0x55851d=>({'startOffset':_0x55851d[_0x9214a(0xc8)],'endOffset':_0x55851d[_0x9214a(0xa6)]+0x1,'text':this[_0x9214a(0xb9)](_0x465869,_0x55851d[_0x9214a(0x170)])})))??[];}})),this[_0x33b6bb(0x128)](this[_0x33b6bb(0x159)][_0x33b6bb(0x153)]['subscribe'](({unitId:_0x45d3e3})=>{const _0x5f1a00=_0x33b6bb;_0x9a280[_0x5f1a00(0xa9)](_0x45d3e3);}));}[_0x11b942(0xb9)](_0x42fa1c,_0x38f44b){const _0x625eea=_0x11b942;var _0x25213b;return((_0x25213b=this[_0x625eea(0x159)]['getResult']({'unitId':_0x42fa1c,'rangeId':_0x38f44b}))==null?void 0x0:_0x25213b[_0x625eea(0x14d)])??'';}[_0x11b942(0x127)](_0x357f94,_0x469467,_0x4df14d){const _0x1ba136=_0x11b942;var _0x19686f;let _0x390de9=this['_univerInstanceService'][_0x1ba136(0x101)](_0x357f94,_0x45653d[_0x1ba136(0x144)]),_0x568db6=_0x390de9==null?void 0x0:_0x390de9['getBody']();if(!_0x568db6)return'';let _0x1245ae=_0x568db6[_0x1ba136(0x11a)][_0x1ba136(0x10c)](_0x469467,_0x4df14d),_0x16b933=((_0x19686f=_0x568db6[_0x1ba136(0xe9)])==null?void 0x0:_0x19686f['filter'](_0x143862=>w(_0x143862)&&_0x143862['startIndex']>=_0x469467&&_0x143862[_0x1ba136(0xa6)]<_0x4df14d)['sort']((_0x8b4e7a,_0x240a85)=>_0x240a85[_0x1ba136(0xc8)]-_0x8b4e7a[_0x1ba136(0xc8)]))??[];for(let _0x4690c8 of _0x16b933){let _0x251a47=_0x4690c8['startIndex']-_0x469467,_0x4de432=_0x4690c8[_0x1ba136(0xa6)]-_0x469467+0x1;_0x1245ae=''+_0x1245ae[_0x1ba136(0x10c)](0x0,_0x251a47)+this[_0x1ba136(0xb9)](_0x357f94,_0x4690c8[_0x1ba136(0x170)])+_0x1245ae['slice'](_0x4de432);}return _0x1245ae;}[_0x11b942(0xe8)](_0x2179b9){return Ot(_0x2179b9);}[_0x11b942(0xd7)](_0x45e8c6,_0x303cdf,_0x256bca={}){const _0x49d8eb=_0x11b942;var _0xff84e2;return Ve({'id':_0x45e8c6,'body':_0x303cdf,'documentStyle':{}},(((_0xff84e2=_0x303cdf[_0x49d8eb(0xe9)])==null?void 0x0:_0xff84e2[_0x49d8eb(0x112)](w))??[])[_0x49d8eb(0x14e)](_0x57da55=>({'rangeId':_0x57da55[_0x49d8eb(0x170)],'text':_0x256bca[_0x57da55[_0x49d8eb(0x170)]]??this[_0x49d8eb(0xb9)](_0x45e8c6,_0x57da55[_0x49d8eb(0x170)])})))[_0x49d8eb(0x166)]??{'dataStream':''};}};Z=I([F(0x0,_0x930636),F(0x1,_0x3d3024(L)),F(0x2,_0x3d3024(_0x56e8c8))],Z);function Ot(_0x6fcc2d){const _0x2735fc=_0x11b942;var _0xae345a,_0x2de02d;let _0x4e5b66=kt(_0x6fcc2d),_0x212df8=Ve(_0x6fcc2d,(((_0xae345a=_0x6fcc2d[_0x2735fc(0x166)])==null||(_0xae345a=_0xae345a[_0x2735fc(0xe9)])==null?void 0x0:_0xae345a[_0x2735fc(0x112)](w))??[])[_0x2735fc(0x14e)](_0x1f72b9=>({'rangeId':_0x1f72b9['rangeId'],'text':At(_0x4e5b66==null?void 0x0:_0x4e5b66[_0x2735fc(0x12b)][_0x1f72b9[_0x2735fc(0x170)]])})));return _0x212df8[_0x2735fc(0x168)]=(_0x2de02d=_0x212df8['resources'])==null?void 0x0:_0x2de02d[_0x2735fc(0x112)](_0x3f678d=>_0x3f678d['name']!==y),_0x212df8;}function _0x48a7(_0x266d20,_0x1ad06d){_0x266d20=_0x266d20-0x7e;const _0x2755e1=_0x2755();let _0x48a776=_0x2755e1[_0x266d20];return _0x48a776;}function kt(_0x53aa9e){const _0x131953=_0x11b942;var _0x574fac;let _0x1c3230=(_0x574fac=_0x53aa9e[_0x131953(0x168)])==null||(_0x574fac=_0x574fac[_0x131953(0xb2)](_0x5c0994=>_0x5c0994[_0x131953(0xc4)]==='DOC_FORMULA_PLUGIN'))==null?void 0x0:_0x574fac[_0x131953(0xc9)];if(_0x1c3230)try{let _0x2104b9=JSON[_0x131953(0xf9)](_0x1c3230);return x(_0x2104b9)?_0x2104b9:void 0x0;}catch{return;}}function At(_0x2844b3){const _0x506887=_0x11b942;return _0x2844b3?_0x57ce95({'lastValue':_0x2844b3[_0x506887(0xdb)],'numberFormat':_0x2844b3['numberFormat']})['text']:'';}let Q=class extends _0x35945f{constructor(_0x55f4c1,_0x363e7b,_0x436228){const _0x44fd17=_0x11b942;super(),this[_0x44fd17(0x159)]=_0x55f4c1,this[_0x44fd17(0x13f)]=_0x363e7b,this[_0x44fd17(0x128)](_0x436228[_0x44fd17(0xe1)](this));}[_0x11b942(0xd1)](_0x5c7316){const _0x2988cd=_0x11b942;let _0x2052b6=new Map();for(let _0xd6e51d of this[_0x2988cd(0x159)][_0x2988cd(0x12f)]()){var _0x4ec208;if(!this['_cacheEligibilityService'][_0x2988cd(0x139)](_0xd6e51d[_0x2988cd(0xd6)][_0x2988cd(0x16f)],_0xd6e51d[_0x2988cd(0x126)])[_0x2988cd(0xaa)])continue;let _0x55d954=_0xc59680(_0xd6e51d['liveResult']),_0x20c2e7=_0x55d954?_0x34e83b(_0x55d954):null;if(!_0x20c2e7||jt(_0xd6e51d[_0x2988cd(0xd6)][_0x2988cd(0xdb)],_0x20c2e7))continue;let _0x2b27a0=_0x2052b6[_0x2988cd(0x102)](_0xd6e51d[_0x2988cd(0x124)][_0x2988cd(0x84)])??[];_0x2b27a0[_0x2988cd(0xe7)]({'rangeId':_0xd6e51d[_0x2988cd(0x124)][_0x2988cd(0x170)],'expectedFormula':_0xd6e51d[_0x2988cd(0xd6)][_0x2988cd(0x16f)],'expectedNumberFormat':(_0x4ec208=_0xd6e51d[_0x2988cd(0xd6)][_0x2988cd(0x13c)])==null?void 0x0:_0x4ec208['pattern'],'expectedReferenceRevision':_0xd6e51d[_0x2988cd(0x7e)],'lastValue':_0x20c2e7}),_0x2052b6[_0x2988cd(0x172)](_0xd6e51d[_0x2988cd(0x124)][_0x2988cd(0x84)],_0x2b27a0);}return Array['from'](_0x2052b6,([_0x43b818,_0x398613])=>({'id':H['id'],'params':{'unitId':_0x43b818,'updates':_0x398613}}));}};function _0x2755(){const _0x39748f=['resourceRedo','collectMutations','type','unitDisposed$','externalMutations','DOC_FORMULA_PLUGIN','config','degradeBody','function','model','formulaId','lastValue','textRuns','getUnitId','keys','getAllUnitsForType','color','registerProvider','docs-formula.command.update','resolved','deepClone','boolean','range','push','degradeDocumentData','customRanges','1.0.0-beta.0','_registrations','assign','min','object','forEach','decorate','syncExecuteCommand','string','resource','docs-formula.mutation.set-last-values','BLOCK_END','isArray','asObservable','docs-formula.mutation.set-formula','parse','source','add','endsWith','unitAdded$','values','_preserveInvalid','iterator','getUnit','get','startsWith','_hostExternalReferenceModel','expectedNumberFormat','number','some','_syncUnit','unregisterUnit','TABLE_START','length','slice','startOffset','getSnapshot','7949683tenduv','document','_commandService','filter','768hArEYI','docs-formula.command.replace-with-text','formulaResult$','getTextRanges','docs-formula.mutation.remove-formula','_univerInstanceService','SUCCESS','dataStream','_isDisposed','stale','pending','success','setResource','resourceUndo','_resourceManagerService','retain','getResult','identity','sequenceNodesBuilder','liveResult','resolveText','disposeWithMe','packageName','error','formulas','65635KgCFVn','updates','_registrationService','getRegisteredFormulas','docs-formula.config','_formulaKeys','18626883bFugrN','removeUnit','19619qBYhNk','insertLength','onCommandExecuted','presentation','140whksQy','assess','params','serialize','numberFormat','registerCommand','sort','_cacheEligibilityService','registerFormulaWithRange','load','unsupported-version','_configService','UNIVER_DOC','position','docs-formula.command.insert','_resources','_docFormulaModel','setFormulas','disabled','complete','_rawResources','text','map','syncUnit','expectedFormula','isInteger','documentRedo','presentationChanged$','has','COLUMN_GROUP_START','paragraphs','wholeEntity','blockRanges','_formulaService','CUSTOM_BLOCK','trigger','includes','MUTATION','documentData','from','ERROR','getFormula','sectionBreaks','prototype','TABLE_END','5334YghnLJ','body','redoMutation','resources','20673OuPKfx','getResource','COLUMN_END','docs-formula.command.convert-to-text','89052492HrEyIv','TABLE_ROW_START','formula','rangeId','register','set','endOffset','tables','PARAGRAPH','getLoadError','previousResource','_model','getOwnPropertyDescriptor','nextDocumentData','5930LMqTUc','clear','insert','_presentationChanged$','max','BLOCK_START','constructor','referenceRevision','every','change$','entries','_injector','version','unitId','setConfig','pluginName','_loadErrors','symbol','COLUMN_START','cursorOffset','trim','customBlocks','_service','cell','TABLE_ROW_END','_setPresentation','delete','editOp','Doc\x20Formula\x20range\x20cannot\x20cross\x20document\x20structure\x20boundaries','subscribe','getInstance','end','8avHfle','expectedReferenceRevision','start','externalReferences','getRevision','COMMAND','columnGroups','invalid-resource','segmentId','next','undoMutation','@univerjs-pro/docs-formula','removeFormula','docs-formula.mutation.set-resource','_instanceService','endIndex','COLUMN_GROUP_END','defineProperty','notifyTextChanged','eligible','rangeType','Document\x20main\x20body\x20is\x20required\x20to\x20insert\x20Doc\x20Formula.','properties','_config','docs-formula.command.set-number-format','deleteLength','unregister','find','status','_pendingUnitIds','previousDocumentData','target','schemaVersion','nextResource','resolveFormula','customDecorations','accessor','_change$','_deleteRegistration','3388AhzGPU','references','paragraph','pattern','_updateFormulaResult','getFormulas','name','resolveBinding','onStarting','kind','startIndex','data','default','SECTION_BREAK','empty','_syncScheduled','dispose','replaceDocRanges'];_0x2755=function(){return _0x39748f;};return _0x2755();}Q=I([F(0x0,_0x3d3024(L)),F(0x1,_0x3d3024(_0x477178)),F(0x2,_0x3d3024(_0x3f3931))],Q);function jt(_0x31401a,_0x490b12){const _0x2f6019=_0x11b942;return(_0x31401a==null?void 0x0:_0x31401a['v'])===_0x490b12['v']&&(_0x31401a==null?void 0x0:_0x31401a['t'])===_0x490b12['t']&&(_0x31401a==null?void 0x0:_0x31401a[_0x2f6019(0xc1)])===_0x490b12[_0x2f6019(0xc1)];}let $=class extends _0x459c8d{constructor(_0x3f3dd1=Dt,_0x1cab4b,_0x4d566d,_0x499c66){const _0xd24ae9=_0x11b942;super(),this[_0xd24ae9(0xae)]=_0x3f3dd1,this[_0xd24ae9(0x82)]=_0x1cab4b,this['_commandService']=_0x4d566d,this[_0xd24ae9(0x143)]=_0x499c66;let {..._0x20e663}=_0x4b4880({},Dt,this[_0xd24ae9(0xae)]);this[_0xd24ae9(0x143)][_0xd24ae9(0x85)](_0xd24ae9(0x130),_0x20e663);}[_0x11b942(0xc6)](){const _0x42379c=_0x11b942;this[_0x42379c(0x82)][_0x42379c(0xfb)]([P]),this[_0x42379c(0x82)][_0x42379c(0xfb)]([L]),this[_0x42379c(0x82)]['add']([X]),this[_0x42379c(0x82)][_0x42379c(0xfb)]([Y]),this[_0x42379c(0x82)][_0x42379c(0xfb)]([Q]),this[_0x42379c(0x82)]['add']([Z]),_0x2fa40d(this['_injector'],[[P],[X],[Y],[Q],[Z]]),[ot,st,V,H,U,W,G,K,ct,lt][_0x42379c(0xef)](_0x1b22ed=>this[_0x42379c(0x128)](this[_0x42379c(0x111)][_0x42379c(0x13d)](_0x1b22ed)));}};N($,_0x11b942(0x86),y),N($,_0x11b942(0x129),Tt),N($,_0x11b942(0x83),Et),N($,_0x11b942(0xd2),_0x45653d[_0x11b942(0x144)]),$=I([_0x1cc9db(_0x42a144,_0x16665e,_0x44a698),F(0x1,_0x3d3024(_0x13e4a3)),F(0x2,_0x33bec9),F(0x3,_0x3270a2)],$);export{lt as ConvertDocFormulaToTextCommand,Me as DOC_FORMULA_CUSTOM_RANGE_KIND,Ne as DOC_FORMULA_OBJECT_REPLACEMENT,y as DOC_FORMULA_PLUGIN,je as DOC_FORMULA_SCHEMA_VERSION,Z as DocFormulaDisplayTextService,Y as DocFormulaLifecycleController,P as DocFormulaModel,X as DocFormulaResourceController,it as DocFormulaResultStatus,L as DocFormulaService,U as InsertDocFormulaCommand,C as InvalidDocFormulaInsertRangeError,K as RemoveDocFormulaCommand,st as RemoveDocFormulaMutation,ct as ReplaceDocFormulaWithTextCommand,H as SetDocFormulaLastValuesMutation,ot as SetDocFormulaMutation,G as SetDocFormulaNumberFormatCommand,V as SetDocFormulaResourceMutation,$ as UniverDocsFormulaPlugin,W as UpdateDocFormulaCommand,He as assertSafeDocFormulaInsertRange,Re as buildInsertDocFormulaActions,Be as buildRemoveDocFormulaActions,ze as buildUpdateDocFormulaActions,b as createEmptyDocFormulaResource,Ot as degradeDocFormulaDocumentData,T as findDocFormulaRange,Pe as isDocFormulaConfig,w as isDocFormulaRange,x as isDocFormulaResource,Fe as isFormulaLastValue};
|
|
1
|
+
const _0x4f6fbf=_0x2954;(function(_0x642624,_0xea1d35){const _0xa811c5=_0x2954,_0x16e0dd=_0x642624();while(!![]){try{const _0x5f1cad=parseInt(_0xa811c5(0x1d0))/0x1+-parseInt(_0xa811c5(0x237))/0x2*(-parseInt(_0xa811c5(0x1e0))/0x3)+-parseInt(_0xa811c5(0x23a))/0x4+parseInt(_0xa811c5(0x211))/0x5*(-parseInt(_0xa811c5(0x1b6))/0x6)+-parseInt(_0xa811c5(0x255))/0x7+-parseInt(_0xa811c5(0x1ef))/0x8+-parseInt(_0xa811c5(0x1cc))/0x9*(-parseInt(_0xa811c5(0x238))/0xa);if(_0x5f1cad===_0xea1d35)break;else _0x16e0dd['push'](_0x16e0dd['shift']());}catch(_0x2fe612){_0x16e0dd['push'](_0x16e0dd['shift']());}}}(_0x4a54,0xcb1fb));import{FormulaCacheEligibilityService as _0x4a49c8,FormulaLastValuePersistenceService as _0x13e281,HostExternalReferenceModel as _0x10c960,UniverProFormulaEnginePlugin as _0x3b8edb,buildUpsertHostExternalReferenceMutations as _0x3007cb,collectFormulaExternalReferenceQualifiers as _0x1e38dc,getScalarFormulaResultCell as _0x4ea63e,resolveFormulaResultPresentation as _0x42aa2e,resolveHostFormulaExternalReferences as _0x25aab3,toFormulaLastValue as _0x4677a5}from'@univerjs-pro/engine-formula';import{CellValueType as _0x359b1c,CommandType as _0x54b120,CustomRangeType as _0xd7705f,DataStreamTreeTokenType as _0x32085f,DependentOn as _0x156929,Disposable as _0x31b7da,ICommandService as _0x17a79b,IConfigService as _0x430bb8,IResourceManagerService as _0x5cca76,IUndoRedoService as _0x108c62,IUniverInstanceService as _0x2f4b97,Inject as _0x2acef3,Injector as _0x4d35b9,JSONX as _0xd1312c,Plugin as _0x19285f,TextX as _0x5043cb,Tools as _0x5009bd,UniverInstanceType as _0x84701a,generateRandomId as _0x567cbf,getBodySliceForTextXAction as _0x3936fb,getCustomRangeInterval as _0x98f7fa,getParagraphContentStartOffset as _0x3d7e00,getRichTextEditPath as _0x3a85ac,merge as _0x51f985,shiftExclusiveRangeOnDelete as _0x40f2b0,shiftExclusiveRangeOnInsert as _0x3994a9,shiftInclusiveRangeOnDelete as _0x1884f3,shiftInclusiveRangeOnInsert as _0x4c9420,touchDependencies as _0x446bb5}from'@univerjs/core';import{DOC_SELECTION_OPTION_PRESERVE_CARET as _0x53247e,DocSelectionManagerService as _0x415e0a,DocTextResolverService as _0x1f7daa,RichTextEditingMutation as _0x152a2b,UniverDocsPlugin as _0x2a1d9f}from'@univerjs/docs';function _0x4a54(){const _0x42315e=['function','number','externalReferences','@univerjs-pro/docs-formula','_registrations','CUSTOM','ERROR','PENDING','segmentId','deepClone','startIndex','object','textRuns','max','find','pushUndoRedo','parse','syncUnit','TABLE_START','formula','identity','degradeBody','_deleteRegistration','liveResult','_model','_service','references','20WwCHFO','getResult','selection','onStarting','dispose','getBody','default','getUnit','CUSTOM_BLOCK','entries','getCurrentUnitOfType','_cacheEligibilityService','registerProvider','unsupported-version','length','dataStream','UNIVER_DOC','collectMutations','updates','decorate','_syncUnit','customDecorations','resources','defineProperty','eligible','_syncScheduled','_preserveInvalid','_instanceService','resolveText','COLUMN_END','_resourceManagerService','disabled','resourceUndo','type','assign','string','customBlocks','Document\x20main\x20body\x20is\x20required\x20to\x20insert\x20Doc\x20Formula.','2kUkkOJ','139660WbMqJk','serialize','1551016RXiAhJ','startOffset','_config','getUnitId','trigger','disposeWithMe','_docFormulaModel','isArray','removeFormula','setConfig','complete','load','endsWith','_commandService','previousDocumentData','docs-formula.command.set-number-format','slice','add','_configService','stale','accessor','_presentationChanged$','SUCCESS','_updateFormulaResult','setFormulas','_queueSync','cursorOffset','5397560PlNoqN','_loadErrors','DOC_FORMULA_PLUGIN','referenceRevision','BLOCK_START','filter','resource','tables','text','docs-formula.mutation.set-last-values','documentData','prototype','source','getRegisteredFormulas','_registrationService','success','stringify','endOffset','nextResource','_hostExternalReferenceModel','subscribe','_setPresentation','docs-formula.mutation.set-formula','asObservable','getRevision','pending','getResource','resolveFormula','unregister','docs-formula.command.insert','every','trim','get','lastValue','call','body','formulaId','_formulaService','schemaVersion','paragraph','TABLE_END','model','values','constructor','keys','_pendingUnitIds','_resources','startsWith','push','name','error','sequenceNodesBuilder','replaceDocRanges','formulas','getTextRanges','getSnapshot','numberFormat','sectionBreaks','isInteger','presentation','getFormulas','removeUnit','notifyTextChanged','pluginName','unitAdded$','iterator','previousResource','PARAGRAPH','set','redoMutation','EMPTY','toPrimitive','documentRedo','_formulaKeys','next','expectedFormula','getInstance','sort','paragraphs','unregisterUnit','start','presentationChanged$','endIndex','columnGroups','unitDisposed$','SECTION_BREAK','min','expectedReferenceRevision','assess','syncExecuteCommand','setFormula','params','DOC','docs-formula.mutation.set-resource','2117124ZzMwXg','COLUMN_GROUP_START','undoMutation','paragraphId','_rawResources','getPresentation','boolean','COLUMN_START','1.0.0-beta.1','forEach','_change$','degradeDocumentData','pattern','unitId','some','position','status','from','data','insertLength','delete','_injector','1683BnuUar','docs-formula.mutation.remove-formula','register','resourceRedo','1344174JtSUvb','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','clear','nextDocumentData','setResource','onCommandExecuted','map','BLOCK_END','_isDisposed','rangeType','document','COLUMN_GROUP_END','end','getFormula','empty','cell','802491PjCcgv','externalMutations','getFormulaValueSync','TABLE_CELL_START','MUTATION','customRanges','rangeId','symbol','blockRanges','color','getLoadError','COMMAND','expectedNumberFormat','config','packageName','6568544lADEmq','range','target','includes','univer-docs-formula','editOp','has'];_0x4a54=function(){return _0x42315e;};return _0x4a54();}import{FormulaResultStatus as _0xa56ea4,LexerTreeBuilder as _0x4b333e,OtherFormulaBizType as _0x1fd681,RegisterOtherFormulaService as _0x13ff1c}from'@univerjs/engine-formula';import{Subject as _0x3ff55e}from'rxjs';import{UniverLicensePlugin as _0x347af6}from'@univerjs-pro/license';const y='DOC_FORMULA_PLUGIN',je=0x1,Me=_0x4f6fbf(0x1f3),Ne='';function b(){return{'schemaVersion':0x1,'formulas':{}};}function x(_0x3e34b4){const _0x3dae30=_0x4f6fbf;return!_0x3e34b4||typeof _0x3e34b4!=_0x3dae30(0x201)||!S(_0x3e34b4,['schemaVersion',_0x3dae30(0x18d)])||!('schemaVersion'in _0x3e34b4)||_0x3e34b4[_0x3dae30(0x27b)]!==0x1||!(_0x3dae30(0x18d)in _0x3e34b4)||!_0x3e34b4[_0x3dae30(0x18d)]||typeof _0x3e34b4[_0x3dae30(0x18d)]!=_0x3dae30(0x201)||Array[_0x3dae30(0x241)](_0x3e34b4[_0x3dae30(0x18d)])?!0x1:Object[_0x3dae30(0x21a)](_0x3e34b4[_0x3dae30(0x18d)])['every'](([_0x575ce8,_0x246bed])=>_0x575ce8[_0x3dae30(0x21f)]>0x0&&Pe(_0x246bed));}function Pe(_0x184980){const _0xe2888d=_0x4f6fbf;return!_0x184980||typeof _0x184980!='object'||!S(_0x184980,[_0xe2888d(0x209),_0xe2888d(0x190),'lastValue'])||!('formula'in _0x184980)||typeof _0x184980[_0xe2888d(0x209)]!=_0xe2888d(0x234)||!_0x184980[_0xe2888d(0x209)][_0xe2888d(0x274)]()||_0xe2888d(0x190)in _0x184980&&_0x184980[_0xe2888d(0x190)]!=null&&(typeof _0x184980[_0xe2888d(0x190)]!='object'||!S(_0x184980[_0xe2888d(0x190)],[_0xe2888d(0x1c2)])||!(_0xe2888d(0x1c2)in _0x184980['numberFormat'])||typeof _0x184980['numberFormat'][_0xe2888d(0x1c2)]!=_0xe2888d(0x234))?!0x1:!(_0xe2888d(0x276)in _0x184980)||_0x184980[_0xe2888d(0x276)]==null||Fe(_0x184980[_0xe2888d(0x276)]);}function Fe(_0x536d71){const _0x32cf83=_0x4f6fbf;return!_0x536d71||typeof _0x536d71!=_0x32cf83(0x201)||!S(_0x536d71,['v','t',_0x32cf83(0x1c2)])||!('v'in _0x536d71)||_0x536d71['v']!==null&&typeof _0x536d71['v']!='string'&&typeof _0x536d71['v']!=_0x32cf83(0x1f7)&&typeof _0x536d71['v']!=_0x32cf83(0x1bc)||'t'in _0x536d71&&_0x536d71['t']!=null&&!Ie(_0x536d71['t'])?!0x1:!(_0x32cf83(0x1c2)in _0x536d71)||_0x536d71[_0x32cf83(0x1c2)]==null||typeof _0x536d71[_0x32cf83(0x1c2)]==_0x32cf83(0x234);}function S(_0x1a6f97,_0xa6321d){const _0x516b73=_0x4f6fbf;let _0x3e8571=new Set(_0xa6321d);return Object['keys'](_0x1a6f97)[_0x516b73(0x273)](_0x4b5ed8=>_0x3e8571[_0x516b73(0x1f5)](_0x4b5ed8));}function Ie(_0x37c0a2){const _0x570ba5=_0x4f6fbf;return typeof _0x37c0a2=='number'&&Object[_0x570ba5(0x27f)](_0x359b1c)[_0x570ba5(0x1f2)](_0x37c0a2);}const Le=new Set([_0x32085f[_0x4f6fbf(0x1ad)],_0x32085f[_0x4f6fbf(0x208)],_0x32085f['TABLE_ROW_START'],_0x32085f[_0x4f6fbf(0x1e3)],_0x32085f['TABLE_CELL_END'],_0x32085f['TABLE_ROW_END'],_0x32085f[_0x4f6fbf(0x27d)],_0x32085f[_0x4f6fbf(0x1b7)],_0x32085f[_0x4f6fbf(0x1bd)],_0x32085f[_0x4f6fbf(0x22e)],_0x32085f[_0x4f6fbf(0x1db)],_0x32085f[_0x4f6fbf(0x259)],_0x32085f[_0x4f6fbf(0x1d7)],_0x32085f[_0x4f6fbf(0x219)]]);var C=class extends Error{constructor(){super('Doc\x20Formula\x20range\x20cannot\x20cross\x20document\x20structure\x20boundaries');}};function Re(_0x2cd420){const _0x58654c=_0x4f6fbf;var _0x94e591,_0x44a1be;let _0x541e05=_0x5009bd[_0x58654c(0x1ff)](_0x2cd420[_0x58654c(0x25f)]),_0x1b53f3=j(_0x541e05),{startOffset:_0x12da56,endOffset:_0x4d3421}=We(_0x1b53f3,_0x2cd420[_0x58654c(0x23b)],_0x2cd420['endOffset']);He(_0x1b53f3,_0x12da56,_0x4d3421);let _0xd60b36=((_0x94e591=_0x1b53f3[_0x58654c(0x1e5)])==null?void 0x0:_0x94e591[_0x58654c(0x25a)](_0x374dbb=>{const _0x2d66df=_0x58654c;if(!w(_0x374dbb))return!0x1;let _0x232890=_0x98f7fa(_0x374dbb);return _0x232890['endOffset']>_0x12da56&&_0x232890[_0x2d66df(0x23b)]<_0x4d3421;})[_0x58654c(0x1d6)](_0x5afd88=>_0x5afd88[_0x58654c(0x1e6)]))??[];qe(_0x1b53f3,_0x12da56,_0x4d3421,''),_0x1b53f3[_0x58654c(0x1e5)]=[...((_0x44a1be=_0x1b53f3[_0x58654c(0x1e5)])==null?void 0x0:_0x44a1be[_0x58654c(0x25a)](_0x3465b9=>!_0xd60b36[_0x58654c(0x1f2)](_0x3465b9[_0x58654c(0x1e6)])&&_0x3465b9[_0x58654c(0x1e6)]!==_0x2cd420[_0x58654c(0x1e6)]))??[],Ue(_0x2cd420[_0x58654c(0x1e6)],_0x12da56)]['sort']((_0xb510a7,_0xaca23e)=>_0xb510a7[_0x58654c(0x200)]-_0xaca23e[_0x58654c(0x200)]);let _0x3d7b7c=E(_0x2cd420[_0x58654c(0x25b)]);return _0xd60b36[_0x58654c(0x1bf)](_0x4bee5d=>{delete _0x3d7b7c['formulas'][_0x4bee5d];}),_0x3d7b7c[_0x58654c(0x18d)][_0x2cd420[_0x58654c(0x1e6)]]=_0x5009bd['deepClone'](_0x2cd420['config']),{'nextDocumentData':_0x541e05,'nextResource':_0x3d7b7c,'cursorOffset':_0x12da56+0x1};}function ze(_0x1e8c66){const _0x71457=_0x4f6fbf;var _0x193dd0,_0x783bc0;let _0x37838d=_0x5009bd[_0x71457(0x1ff)](_0x1e8c66[_0x71457(0x25f)]),_0x40db35=(_0x193dd0=j(_0x37838d)[_0x71457(0x1e5)])==null?void 0x0:_0x193dd0[_0x71457(0x204)](_0x3cfab0=>_0x3cfab0[_0x71457(0x1e6)]===_0x1e8c66['rangeId']&&w(_0x3cfab0));if(!_0x40db35||!((_0x783bc0=_0x1e8c66[_0x71457(0x25b)])!=null&&_0x783bc0[_0x71457(0x18d)][_0x1e8c66[_0x71457(0x1e6)]]))return null;let _0x299d05=E(_0x1e8c66[_0x71457(0x25b)]);return _0x299d05[_0x71457(0x18d)][_0x1e8c66['rangeId']]=_0x5009bd[_0x71457(0x1ff)](_0x1e8c66[_0x71457(0x1ed)]),{'nextDocumentData':_0x37838d,'nextResource':_0x299d05,'cursorOffset':_0x40db35[_0x71457(0x1aa)]+0x1};}function Be(_0x23af8e){const _0x2f725f=_0x4f6fbf;let _0x5c5d58=_0x5009bd[_0x2f725f(0x1ff)](_0x23af8e[_0x2f725f(0x25f)]),_0x5f2a24=Je(_0x5c5d58,_0x23af8e[_0x2f725f(0x1e6)],_0x23af8e[_0x2f725f(0x25d)]??'');if(_0x5f2a24==null)return null;let _0x3ba75c=E(_0x23af8e[_0x2f725f(0x25b)]);return delete _0x3ba75c[_0x2f725f(0x18d)][_0x23af8e[_0x2f725f(0x1e6)]],{'nextDocumentData':_0x5c5d58,'nextResource':_0x3ba75c,'cursorOffset':_0x5f2a24};}function Ve(_0x32418b,_0x331c79){const _0x4bf123=_0x4f6fbf;var _0xb4058;let _0x5e8907=_0x5009bd[_0x4bf123(0x1ff)](_0x32418b),_0x5b5aea=_0x5e8907['body'];if(!_0x5b5aea)return _0x5e8907;let _0xd2410d=new Map(_0x331c79[_0x4bf123(0x1d6)](_0x4efe11=>[_0x4efe11[_0x4bf123(0x1e6)],_0x4efe11[_0x4bf123(0x25d)]])),_0x408c87=((_0xb4058=_0x5b5aea[_0x4bf123(0x1e5)])==null?void 0x0:_0xb4058[_0x4bf123(0x25a)](_0x3892eb=>w(_0x3892eb)&&_0xd2410d['has'](_0x3892eb['rangeId']))[_0x4bf123(0x1a5)]((_0x4e5438,_0x3cc080)=>_0x3cc080[_0x4bf123(0x200)]-_0x4e5438[_0x4bf123(0x200)]))??[];for(let _0x5b888c of _0x408c87)Je(_0x5e8907,_0x5b888c[_0x4bf123(0x1e6)],_0xd2410d[_0x4bf123(0x275)](_0x5b888c['rangeId'])??'');return _0x5e8907;}function w(_0x3a2263){const _0x1e0f51=_0x4f6fbf;var _0x476355;return(_0x3a2263==null?void 0x0:_0x3a2263[_0x1e0f51(0x1d9)])===_0xd7705f[_0x1e0f51(0x1fb)]&&_0x3a2263['wholeEntity']===!0x0&&((_0x476355=_0x3a2263['properties'])==null?void 0x0:_0x476355['kind'])===_0x1e0f51(0x1f3);}function T(_0x24ccdf,_0x47139d){const _0x3399c7=_0x4f6fbf;var _0x24f333;return _0x24ccdf==null||(_0x24f333=_0x24ccdf['customRanges'])==null?void 0x0:_0x24f333[_0x3399c7(0x204)](_0x5efb1b=>_0x5efb1b[_0x3399c7(0x1e6)]===_0x47139d&&w(_0x5efb1b));}function He(_0xc8aad3,_0x26e80d,_0x2fc235){const _0x2d62cf=_0x4f6fbf;if(_0x26e80d===_0x2fc235){if(Le[_0x2d62cf(0x1f5)](_0xc8aad3['dataStream'][_0x26e80d]))throw new C();return;}for(let _0x3b1735=_0x26e80d;_0x3b1735<_0x2fc235;_0x3b1735++)if(_0xc8aad3[_0x2d62cf(0x220)][_0x3b1735]===_0x32085f[_0x2d62cf(0x19b)]||Le['has'](_0xc8aad3[_0x2d62cf(0x220)][_0x3b1735]))throw new C();}function Ue(_0x43adeb,_0xf0b9e4){const _0x1c8611=_0x4f6fbf;return{'startIndex':_0xf0b9e4,'endIndex':_0xf0b9e4,'rangeId':_0x43adeb,'rangeType':_0xd7705f[_0x1c8611(0x1fb)],'wholeEntity':!0x0,'properties':{'kind':Me}};}function E(_0x5a23c0){return _0x5a23c0?_0x5009bd['deepClone'](_0x5a23c0):b();}function We(_0x3b22d8,_0x18157e,_0x4bbcab){const _0x287758=_0x4f6fbf;let _0x4a3033=Ke(_0x3b22d8),_0x2e9bd7=_0x18157e??_0x4a3033,_0x32148c=_0x4bbcab??_0x2e9bd7;return{'startOffset':Ge(Math['min'](_0x2e9bd7,_0x32148c),_0x4a3033),'endOffset':Ge(Math[_0x287758(0x203)](_0x2e9bd7,_0x32148c),_0x4a3033)};}function Ge(_0x598dba,_0x4f92f5){const _0x17417e=_0x4f6fbf;return Math[_0x17417e(0x203)](0x0,Math[_0x17417e(0x1ae)](_0x598dba,_0x4f92f5));}function Ke(_0x5c1145){const _0x4f0748=_0x4f6fbf;return _0x5c1145[_0x4f0748(0x220)][_0x4f0748(0x246)](''+_0x32085f['PARAGRAPH']+_0x32085f['SECTION_BREAK'])?Math[_0x4f0748(0x203)](0x0,_0x5c1145[_0x4f0748(0x220)]['length']-0x2):_0x5c1145[_0x4f0748(0x220)]['endsWith'](_0x32085f['SECTION_BREAK'])?Math['max'](0x0,_0x5c1145['dataStream'][_0x4f0748(0x21f)]-0x1):_0x5c1145[_0x4f0748(0x220)]['length'];}function qe(_0x59a4dc,_0x442822,_0x1fd8c2,_0x26c4fb){_0x1fd8c2>_0x442822&&Xe(_0x59a4dc,_0x442822,_0x1fd8c2),Ye(_0x59a4dc,_0x442822,_0x26c4fb);}function Je(_0x428dc2,_0x4a2edd,_0x4e6412){const _0x22a44a=_0x4f6fbf;var _0x32f839,_0x343abc;let _0x342872=j(_0x428dc2),_0x32332f=(_0x32f839=_0x342872[_0x22a44a(0x1e5)])==null?void 0x0:_0x32f839['find'](_0xf95006=>_0xf95006[_0x22a44a(0x1e6)]===_0x4a2edd&&w(_0xf95006));if(!_0x32332f)return null;let _0x47f11f=_0x98f7fa(_0x32332f);return qe(_0x342872,_0x47f11f[_0x22a44a(0x23b)],_0x47f11f[_0x22a44a(0x266)],_0x4e6412),_0x342872['customRanges']=(_0x343abc=_0x342872[_0x22a44a(0x1e5)])==null?void 0x0:_0x343abc[_0x22a44a(0x25a)](_0x52674d=>_0x52674d[_0x22a44a(0x1e6)]!==_0x4a2edd),_0x47f11f[_0x22a44a(0x23b)]+_0x4e6412[_0x22a44a(0x21f)];}function Ye(_0x12c189,_0x341000,_0x5deca6){const _0x3d5d99=_0x4f6fbf;_0x5deca6&&(_0x12c189[_0x3d5d99(0x220)]=''+_0x12c189[_0x3d5d99(0x220)][_0x3d5d99(0x24a)](0x0,_0x341000)+_0x5deca6+_0x12c189[_0x3d5d99(0x220)][_0x3d5d99(0x24a)](_0x341000),Ze(_0x12c189,_0x341000,_0x5deca6[_0x3d5d99(0x21f)]));}function Xe(_0x540787,_0x1375d8,_0x49d527){const _0x129bfd=_0x4f6fbf;let _0x2c751b=_0x49d527-_0x1375d8;_0x540787[_0x129bfd(0x220)]=''+_0x540787[_0x129bfd(0x220)][_0x129bfd(0x24a)](0x0,_0x1375d8)+_0x540787[_0x129bfd(0x220)]['slice'](_0x49d527),Qe(_0x540787,_0x1375d8,_0x2c751b);}function Ze(_0x2269b6,_0x238246,_0x328933){const _0x3135c4=_0x4f6fbf;_0x2269b6[_0x3135c4(0x1a6)]=D(_0x2269b6[_0x3135c4(0x1a6)],_0x238246,_0x328933),_0x2269b6[_0x3135c4(0x191)]=D(_0x2269b6[_0x3135c4(0x191)],_0x238246,_0x328933),_0x2269b6[_0x3135c4(0x235)]=D(_0x2269b6[_0x3135c4(0x235)],_0x238246,_0x328933),_0x2269b6['textRuns']=$e(_0x2269b6[_0x3135c4(0x202)],_0x238246,_0x328933),_0x2269b6[_0x3135c4(0x25c)]=et(_0x2269b6['tables'],_0x238246,_0x328933),_0x2269b6['columnGroups']=k(_0x2269b6[_0x3135c4(0x1ab)],_0x238246,_0x328933),_0x2269b6[_0x3135c4(0x1e5)]=k(_0x2269b6[_0x3135c4(0x1e5)],_0x238246,_0x328933),_0x2269b6[_0x3135c4(0x226)]=k(_0x2269b6[_0x3135c4(0x226)],_0x238246,_0x328933),_0x2269b6[_0x3135c4(0x1e8)]=k(_0x2269b6[_0x3135c4(0x1e8)],_0x238246,_0x328933);}function Qe(_0x14dba0,_0xd08de5,_0x1e5b6e){const _0x341a6e=_0x4f6fbf;var _0x3b6ef0,_0x4c31ff;_0x14dba0[_0x341a6e(0x1a6)]=O(_0x14dba0[_0x341a6e(0x1a6)],_0xd08de5,_0x1e5b6e),_0x14dba0[_0x341a6e(0x191)]=O(_0x14dba0[_0x341a6e(0x191)],_0xd08de5,_0x1e5b6e),_0x14dba0[_0x341a6e(0x235)]=O(_0x14dba0['customBlocks'],_0xd08de5,_0x1e5b6e),_0x14dba0['textRuns']=(_0x3b6ef0=tt((_0x4c31ff=_0x14dba0['textRuns'])==null?void 0x0:_0x4c31ff[_0x341a6e(0x1d6)](_0x445f23=>({..._0x445f23,'startIndex':_0x445f23['st'],'endIndex':_0x445f23['ed']})),_0xd08de5,_0x1e5b6e))==null?void 0x0:_0x3b6ef0[_0x341a6e(0x1d6)](_0x5c4cfb=>{let {startIndex:_0x24aafc,endIndex:_0x44116d,..._0x3f0a2a}=_0x5c4cfb;return{..._0x3f0a2a,'st':_0x24aafc,'ed':_0x44116d};}),_0x14dba0[_0x341a6e(0x25c)]=tt(_0x14dba0[_0x341a6e(0x25c)],_0xd08de5,_0x1e5b6e),_0x14dba0[_0x341a6e(0x1ab)]=A(_0x14dba0[_0x341a6e(0x1ab)],_0xd08de5,_0x1e5b6e),_0x14dba0[_0x341a6e(0x1e5)]=A(_0x14dba0[_0x341a6e(0x1e5)],_0xd08de5,_0x1e5b6e),_0x14dba0['customDecorations']=A(_0x14dba0[_0x341a6e(0x226)],_0xd08de5,_0x1e5b6e),_0x14dba0['blockRanges']=A(_0x14dba0['blockRanges'],_0xd08de5,_0x1e5b6e);}function D(_0x78d465,_0x3d8819,_0x2ada22){const _0x19a89e=_0x4f6fbf;return _0x78d465==null?void 0x0:_0x78d465[_0x19a89e(0x1d6)](_0x1aa610=>_0x1aa610['startIndex']>=_0x3d8819?{..._0x1aa610,'startIndex':_0x1aa610[_0x19a89e(0x200)]+_0x2ada22}:_0x1aa610);}function O(_0x25e5dc,_0x3eca54,_0x34f649){const _0x4e13d1=_0x4f6fbf;let _0xe75554=_0x3eca54+_0x34f649;return _0x25e5dc==null?void 0x0:_0x25e5dc[_0x4e13d1(0x1d6)](_0x5547ff=>_0x5547ff[_0x4e13d1(0x200)]>=_0x3eca54&&_0x5547ff[_0x4e13d1(0x200)]<_0xe75554?null:_0x5547ff[_0x4e13d1(0x200)]>=_0xe75554?{..._0x5547ff,'startIndex':_0x5547ff[_0x4e13d1(0x200)]-_0x34f649}:_0x5547ff)[_0x4e13d1(0x25a)](_0x1ece29=>_0x1ece29!=null);}function $e(_0xba0856,_0x5f33a4,_0x34307f){const _0x2ddc48=_0x4f6fbf;return _0xba0856==null?void 0x0:_0xba0856[_0x2ddc48(0x1d6)](_0x1d1d07=>_0x1d1d07['st']>=_0x5f33a4?{..._0x1d1d07,'st':_0x1d1d07['st']+_0x34307f,'ed':_0x1d1d07['ed']+_0x34307f}:_0x1d1d07['ed']>_0x5f33a4?{..._0x1d1d07,'ed':_0x1d1d07['ed']+_0x34307f}:_0x1d1d07);}function k(_0x5b926e,_0x375611,_0x38cea8){const _0x5ea0b8=_0x4f6fbf;return _0x5b926e==null?void 0x0:_0x5b926e[_0x5ea0b8(0x1d6)](_0x55dfe6=>_0x4c9420(_0x55dfe6,_0x375611,_0x38cea8));}function et(_0x50877a,_0x20a746,_0x4dbaf1){const _0x273a76=_0x4f6fbf;return _0x50877a==null?void 0x0:_0x50877a[_0x273a76(0x1d6)](_0x30eb79=>_0x3994a9(_0x30eb79,_0x20a746,_0x4dbaf1));}function A(_0x47a5d3,_0x48891e,_0x15b595){return _0x47a5d3==null?void 0x0:_0x47a5d3['map'](_0x2cd407=>_0x1884f3(_0x2cd407,_0x48891e,_0x15b595))['filter'](_0x228e06=>_0x228e06!=null);}function tt(_0x4d14f5,_0x57c7e9,_0x57caef){return _0x4d14f5==null?void 0x0:_0x4d14f5['map'](_0x591868=>_0x40f2b0(_0x591868,_0x57c7e9,_0x57caef))['filter'](_0x1fc113=>_0x1fc113!=null);}function j(_0x28db63){const _0x44da8d=_0x4f6fbf;if(!_0x28db63[_0x44da8d(0x278)])throw Error(_0x44da8d(0x236));return _0x28db63[_0x44da8d(0x278)];}function M(_0xa76fe8){'@babel/helpers - typeof';const _0x27cd80=_0x4f6fbf;return M=typeof Symbol==_0x27cd80(0x1f6)&&typeof Symbol[_0x27cd80(0x199)]==_0x27cd80(0x1e7)?function(_0x1af0da){return typeof _0x1af0da;}:function(_0xd01203){const _0x4f6265=_0x27cd80;return _0xd01203&&typeof Symbol==_0x4f6265(0x1f6)&&_0xd01203[_0x4f6265(0x280)]===Symbol&&_0xd01203!==Symbol[_0x4f6265(0x260)]?_0x4f6265(0x1e7):typeof _0xd01203;},M(_0xa76fe8);}function nt(_0x56d852,_0x6aeaea){const _0x2f97e2=_0x4f6fbf;if(M(_0x56d852)!=_0x2f97e2(0x201)||!_0x56d852)return _0x56d852;var _0x3faaab=_0x56d852[Symbol[_0x2f97e2(0x19f)]];if(_0x3faaab!==void 0x0){var _0x41e97c=_0x3faaab[_0x2f97e2(0x277)](_0x56d852,_0x6aeaea||_0x2f97e2(0x217));if(M(_0x41e97c)!='object')return _0x41e97c;throw TypeError(_0x2f97e2(0x1d1));}return(_0x6aeaea===_0x2f97e2(0x234)?String:Number)(_0x56d852);}function rt(_0x260bb0){const _0x2aa2be=_0x4f6fbf;var _0x40659d=nt(_0x260bb0,'string');return M(_0x40659d)==_0x2aa2be(0x1e7)?_0x40659d:_0x40659d+'';}function N(_0x2d4945,_0x1d8eef,_0x4e6f27){const _0x442684=_0x4f6fbf;return(_0x1d8eef=rt(_0x1d8eef))in _0x2d4945?Object[_0x442684(0x228)](_0x2d4945,_0x1d8eef,{'value':_0x4e6f27,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x2d4945[_0x1d8eef]=_0x4e6f27,_0x2d4945;}var P=class extends _0x31b7da{constructor(..._0x4e3f7c){const _0x2f7838=_0x4f6fbf;super(..._0x4e3f7c),N(this,_0x2f7838(0x186),new Map()),N(this,_0x2f7838(0x1ba),new Map()),N(this,_0x2f7838(0x256),new Map()),N(this,_0x2f7838(0x1c0),new _0x3ff55e()),N(this,'change$',this[_0x2f7838(0x1c0)][_0x2f7838(0x26c)]());}[_0x4f6fbf(0x1dd)](_0x4abe52,_0x19ff96){const _0x553282=_0x4f6fbf;var _0x3c7bf8;let _0x5ed942=(_0x3c7bf8=this[_0x553282(0x186)][_0x553282(0x275)](_0x4abe52))==null?void 0x0:_0x3c7bf8[_0x553282(0x18d)][_0x19ff96];return _0x5ed942?_0x5009bd[_0x553282(0x1ff)](_0x5ed942):void 0x0;}[_0x4f6fbf(0x194)](_0x3ec31d){const _0x145e20=_0x4f6fbf;var _0x48e563;return _0x5009bd[_0x145e20(0x1ff)](((_0x48e563=this[_0x145e20(0x186)][_0x145e20(0x275)](_0x3ec31d))==null?void 0x0:_0x48e563[_0x145e20(0x18d)])??{});}[_0x4f6fbf(0x26f)](_0x412d9a){const _0x328c48=_0x4f6fbf;let _0x5eaf02=this[_0x328c48(0x186)][_0x328c48(0x275)](_0x412d9a);return _0x5eaf02?_0x5009bd[_0x328c48(0x1ff)](_0x5eaf02):void 0x0;}[_0x4f6fbf(0x1b2)](_0x10dce6,_0x375f12,_0x21f518){const _0x203429=_0x4f6fbf;return this[_0x203429(0x252)](_0x10dce6,{[_0x375f12]:_0x21f518});}[_0x4f6fbf(0x1d4)](_0x5a2967,_0x11830c){const _0x228796=_0x4f6fbf;return this['_loadErrors'][_0x228796(0x1f5)](_0x5a2967)||!x(_0x11830c)?!0x1:(this['_resources'][_0x228796(0x19c)](_0x5a2967,_0x5009bd[_0x228796(0x1ff)](_0x11830c)),this[_0x228796(0x1c0)]['next']({'unitId':_0x5a2967}),!0x0);}[_0x4f6fbf(0x252)](_0x11bfa9,_0x186616){const _0x37d9c5=_0x4f6fbf;if(this[_0x37d9c5(0x256)]['has'](_0x11bfa9)||!Object[_0x37d9c5(0x281)](_0x186616)[_0x37d9c5(0x21f)]||!x({'schemaVersion':0x1,'formulas':_0x186616}))return!0x1;let _0x2b0550=this[_0x37d9c5(0x186)][_0x37d9c5(0x275)](_0x11bfa9)??b(),_0x128f85=_0x5009bd[_0x37d9c5(0x1ff)](_0x2b0550);return Object[_0x37d9c5(0x233)](_0x128f85[_0x37d9c5(0x18d)],_0x5009bd[_0x37d9c5(0x1ff)](_0x186616)),this[_0x37d9c5(0x186)]['set'](_0x11bfa9,_0x128f85),this[_0x37d9c5(0x1c0)][_0x37d9c5(0x1a2)]({'unitId':_0x11bfa9,'rangeIds':Object[_0x37d9c5(0x281)](_0x186616)}),!0x0;}[_0x4f6fbf(0x242)](_0x30d3d5,_0x4a76c2){const _0x1f7905=_0x4f6fbf;if(this[_0x1f7905(0x256)][_0x1f7905(0x1f5)](_0x30d3d5))return!0x1;let _0x2ab402=this[_0x1f7905(0x186)][_0x1f7905(0x275)](_0x30d3d5);if(!(_0x2ab402!=null&&_0x2ab402[_0x1f7905(0x18d)][_0x4a76c2]))return!0x1;let _0x32c2e5=_0x5009bd[_0x1f7905(0x1ff)](_0x2ab402);return delete _0x32c2e5[_0x1f7905(0x18d)][_0x4a76c2],this[_0x1f7905(0x186)][_0x1f7905(0x19c)](_0x30d3d5,_0x32c2e5),this['_change$']['next']({'unitId':_0x30d3d5,'rangeIds':[_0x4a76c2]}),!0x0;}[_0x4f6fbf(0x245)](_0x31862c,_0x437cbd){const _0x513979=_0x4f6fbf;return _0x437cbd&&typeof _0x437cbd==_0x513979(0x201)&&_0x513979(0x27b)in _0x437cbd&&_0x437cbd['schemaVersion']!==0x1?(this[_0x513979(0x22b)](_0x31862c,_0x437cbd,_0x513979(0x21e)),!0x1):x(_0x437cbd)?(this['_resources'][_0x513979(0x19c)](_0x31862c,_0x5009bd['deepClone'](_0x437cbd)),this[_0x513979(0x1ba)][_0x513979(0x1ca)](_0x31862c),this[_0x513979(0x256)][_0x513979(0x1ca)](_0x31862c),this[_0x513979(0x1c0)][_0x513979(0x1a2)]({'unitId':_0x31862c}),!0x0):(this[_0x513979(0x22b)](_0x31862c,_0x437cbd,'invalid-resource'),!0x1);}[_0x4f6fbf(0x239)](_0x186a05){const _0x34ea94=_0x4f6fbf;let _0x2cd08f=this[_0x34ea94(0x186)][_0x34ea94(0x275)](_0x186a05);return _0x2cd08f?_0x5009bd[_0x34ea94(0x1ff)](_0x2cd08f):this['_rawResources'][_0x34ea94(0x1f5)](_0x186a05)?_0x5009bd[_0x34ea94(0x1ff)](this[_0x34ea94(0x1ba)][_0x34ea94(0x275)](_0x186a05)):b();}[_0x4f6fbf(0x1ea)](_0x5f4820){const _0xa516f2=_0x4f6fbf;return this[_0xa516f2(0x256)][_0xa516f2(0x275)](_0x5f4820);}[_0x4f6fbf(0x195)](_0x487c7a){const _0x18f04f=_0x4f6fbf;this[_0x18f04f(0x186)]['delete'](_0x487c7a),this[_0x18f04f(0x1ba)][_0x18f04f(0x1ca)](_0x487c7a),this[_0x18f04f(0x256)][_0x18f04f(0x1ca)](_0x487c7a),this[_0x18f04f(0x1c0)][_0x18f04f(0x1a2)]({'unitId':_0x487c7a});}[_0x4f6fbf(0x215)](){const _0x478b95=_0x4f6fbf;this[_0x478b95(0x186)][_0x478b95(0x1d2)](),this[_0x478b95(0x1ba)][_0x478b95(0x1d2)](),this[_0x478b95(0x256)][_0x478b95(0x1d2)](),this['_change$']['complete'](),super[_0x478b95(0x215)]();}[_0x4f6fbf(0x22b)](_0x1f9401,_0x4fd209,_0x3f12aa){const _0x4554e5=_0x4f6fbf;this[_0x4554e5(0x186)]['delete'](_0x1f9401),this[_0x4554e5(0x1ba)]['set'](_0x1f9401,_0x5009bd['deepClone'](_0x4fd209)),this['_loadErrors']['set'](_0x1f9401,_0x3f12aa),this[_0x4554e5(0x1c0)][_0x4554e5(0x1a2)]({'unitId':_0x1f9401});}};let it=function(_0x37d957){const _0x2ba963=_0x4f6fbf;return _0x37d957[_0x2ba963(0x19e)]=_0x2ba963(0x1de),_0x37d957[_0x2ba963(0x1fd)]=_0x2ba963(0x26e),_0x37d957[_0x2ba963(0x250)]='success',_0x37d957['ERROR']=_0x2ba963(0x18a),_0x37d957;}({});function F(_0x48d28a,_0x4c1267){return function(_0x460ff6,_0x42bb57){_0x4c1267(_0x460ff6,_0x42bb57,_0x48d28a);};}function I(_0x4a534b,_0x5288fc,_0x4b784f,_0x285269){const _0x2d4b29=_0x4f6fbf;var _0x7fe339=arguments['length'],_0x344cd4=_0x7fe339<0x3?_0x5288fc:_0x285269===null?_0x285269=Object['getOwnPropertyDescriptor'](_0x5288fc,_0x4b784f):_0x285269,_0x1cd98a;if(typeof Reflect==_0x2d4b29(0x201)&&typeof Reflect[_0x2d4b29(0x224)]==_0x2d4b29(0x1f6))_0x344cd4=Reflect[_0x2d4b29(0x224)](_0x4a534b,_0x5288fc,_0x4b784f,_0x285269);else{for(var _0x6335fe=_0x4a534b[_0x2d4b29(0x21f)]-0x1;_0x6335fe>=0x0;_0x6335fe--)(_0x1cd98a=_0x4a534b[_0x6335fe])&&(_0x344cd4=(_0x7fe339<0x3?_0x1cd98a(_0x344cd4):_0x7fe339>0x3?_0x1cd98a(_0x5288fc,_0x4b784f,_0x344cd4):_0x1cd98a(_0x5288fc,_0x4b784f))||_0x344cd4);}return _0x7fe339>0x3&&_0x344cd4&&Object[_0x2d4b29(0x228)](_0x5288fc,_0x4b784f,_0x344cd4),_0x344cd4;}let L=class extends _0x31b7da{constructor(_0x61dd4e,_0x2f85ad,_0x1c6603){const _0x13d8a9=_0x4f6fbf;super(),this[_0x13d8a9(0x20e)]=_0x61dd4e,this[_0x13d8a9(0x263)]=_0x2f85ad,this['_hostExternalReferenceModel']=_0x1c6603,N(this,_0x13d8a9(0x1fa),new Map()),N(this,'_formulaKeys',new Map()),N(this,_0x13d8a9(0x24f),new _0x3ff55e()),N(this,_0x13d8a9(0x1a9),this['_presentationChanged$']['asObservable']()),this[_0x13d8a9(0x23f)](this[_0x13d8a9(0x263)]['formulaResult$']['subscribe'](_0x5d62aa=>{for(let _0x786e3a of Object['values'](_0x5d62aa))for(let _0x2fa587 of Object['values'](_0x786e3a))_0x2fa587['forEach'](_0x59aaab=>this['_updateFormulaResult'](_0x59aaab));}));}['syncUnit'](_0x3628d5){const _0x31c429=_0x4f6fbf;var _0x45fdcc;let _0x30d2cc=_0x3628d5[_0x31c429(0x23d)](),_0x59da12=((_0x45fdcc=_0x3628d5[_0x31c429(0x18f)]()['body'])==null||(_0x45fdcc=_0x45fdcc[_0x31c429(0x1e5)])==null?void 0x0:_0x45fdcc[_0x31c429(0x25a)](w))??[],_0x3ef9be=this[_0x31c429(0x20e)][_0x31c429(0x194)](_0x30d2cc),_0x1f9acc=new Set();for(let _0x2f2274 of _0x59da12){let _0x4f8aec=_0x3ef9be[_0x2f2274[_0x31c429(0x1e6)]];_0x4f8aec&&(_0x1f9acc[_0x31c429(0x24b)](R(_0x30d2cc,_0x2f2274[_0x31c429(0x1e6)])),this[_0x31c429(0x1ce)]({'unitId':_0x30d2cc,'rangeId':_0x2f2274['rangeId']},_0x4f8aec));}for(let _0x331425 of Array[_0x31c429(0x1c7)](this[_0x31c429(0x1fa)][_0x31c429(0x27f)]()))_0x331425[_0x31c429(0x1c3)]===_0x30d2cc&&!_0x1f9acc[_0x31c429(0x1f5)](R(_0x331425['unitId'],_0x331425[_0x31c429(0x1e6)]))&&this[_0x31c429(0x271)](_0x331425);}[_0x4f6fbf(0x1ce)](_0x16d436,_0x312629){const _0x4bc2c6=_0x4f6fbf;let _0x52878b=R(_0x16d436[_0x4bc2c6(0x1c3)],_0x16d436[_0x4bc2c6(0x1e6)]),_0x1e92af=this[_0x4bc2c6(0x1fa)]['get'](_0x52878b),_0x470f14=this[_0x4bc2c6(0x268)]['getRevision'](_0x16d436[_0x4bc2c6(0x1c3)]);if(_0x1e92af&&_0x1e92af[_0x4bc2c6(0x1ed)][_0x4bc2c6(0x209)]===_0x312629['formula']&&_0x1e92af[_0x4bc2c6(0x258)]===_0x470f14){_0x1e92af['config']=_0x312629;let _0x33484b=_0x1e92af[_0x4bc2c6(0x279)]?this['_registrationService'][_0x4bc2c6(0x1e2)](_0x1e92af[_0x4bc2c6(0x1c3)],_0x1e92af[_0x4bc2c6(0x1c3)],_0x1e92af[_0x4bc2c6(0x279)])??void 0x0:void 0x0;_0x1e92af[_0x4bc2c6(0x20d)]=_0x33484b,this['_setPresentation'](_0x52878b,z(_0x312629,_0x33484b));return;}_0x1e92af!=null&&_0x1e92af[_0x4bc2c6(0x279)]&&this[_0x4bc2c6(0x20c)](_0x1e92af);let _0x50b8cd={..._0x16d436,'config':_0x312629,'referenceRevision':_0x470f14,'presentation':z(_0x312629,void 0x0)};if(this[_0x4bc2c6(0x1fa)][_0x4bc2c6(0x19c)](_0x52878b,_0x50b8cd),!_0x312629[_0x4bc2c6(0x209)][_0x4bc2c6(0x274)]())return;let _0x1d6f40=this['_registrationService']['registerFormulaWithRange'](_0x16d436[_0x4bc2c6(0x1c3)],_0x16d436['unitId'],_0x312629[_0x4bc2c6(0x209)],void 0x0,{'rangeId':_0x16d436['rangeId']},_0x1fd681[_0x4bc2c6(0x1b4)],_0x16d436[_0x4bc2c6(0x1e6)]);_0x50b8cd[_0x4bc2c6(0x279)]=_0x1d6f40,this[_0x4bc2c6(0x1a1)][_0x4bc2c6(0x19c)](_0x1d6f40,_0x52878b);}[_0x4f6fbf(0x271)](_0x3f20f0){const _0x2f1f1b=_0x4f6fbf;let _0x5ed15b=R(_0x3f20f0['unitId'],_0x3f20f0[_0x2f1f1b(0x1e6)]),_0x122d55=this['_registrations'][_0x2f1f1b(0x275)](_0x5ed15b);_0x122d55&&(this[_0x2f1f1b(0x20c)](_0x122d55),this[_0x2f1f1b(0x1fa)]['delete'](_0x5ed15b));}[_0x4f6fbf(0x1a7)](_0x55507e){const _0x193183=_0x4f6fbf;for(let _0x5c4a0c of Array['from'](this['_registrations'][_0x193183(0x27f)]()))_0x5c4a0c['unitId']===_0x55507e&&this[_0x193183(0x271)](_0x5c4a0c);}[_0x4f6fbf(0x1bb)](_0x3067e2){const _0x354f69=_0x4f6fbf;var _0x41d9ea;return(_0x41d9ea=this[_0x354f69(0x1fa)]['get'](R(_0x3067e2[_0x354f69(0x1c3)],_0x3067e2[_0x354f69(0x1e6)])))==null?void 0x0:_0x41d9ea[_0x354f69(0x193)];}[_0x4f6fbf(0x212)](_0x323fa2){const _0x407a20=_0x4f6fbf;let _0x5298a4=this[_0x407a20(0x1fa)][_0x407a20(0x275)](R(_0x323fa2[_0x407a20(0x1c3)],_0x323fa2[_0x407a20(0x1e6)]));return _0x5298a4?B(_0x5298a4):void 0x0;}[_0x4f6fbf(0x262)](){const _0x556ef4=_0x4f6fbf;return Array[_0x556ef4(0x1c7)](this['_registrations']['values'](),_0x44f77f=>({'identity':{'unitId':_0x44f77f['unitId'],'rangeId':_0x44f77f['rangeId']},'config':_0x44f77f['config'],'referenceRevision':_0x44f77f[_0x556ef4(0x258)],..._0x44f77f['liveResult']?{'liveResult':_0x44f77f['liveResult']}:null}));}[_0x4f6fbf(0x215)](){const _0x3d6e9e=_0x4f6fbf;for(let _0x1beb96 of this[_0x3d6e9e(0x1fa)]['values']())this['_deleteRegistration'](_0x1beb96);this[_0x3d6e9e(0x1fa)]['clear'](),this[_0x3d6e9e(0x1a1)][_0x3d6e9e(0x1d2)](),this['_presentationChanged$'][_0x3d6e9e(0x244)](),super[_0x3d6e9e(0x215)]();}[_0x4f6fbf(0x251)](_0x3913b3){const _0x1e1a02=_0x4f6fbf;let _0x597c15=this[_0x1e1a02(0x1a1)]['get'](_0x3913b3[_0x1e1a02(0x279)]),_0x42416c=_0x597c15?this[_0x1e1a02(0x1fa)]['get'](_0x597c15):void 0x0;!_0x597c15||!_0x42416c||(_0x42416c[_0x1e1a02(0x20d)]=_0x3913b3,this[_0x1e1a02(0x26a)](_0x597c15,z(_0x42416c[_0x1e1a02(0x1ed)],_0x3913b3)));}[_0x4f6fbf(0x26a)](_0x31df09,_0x44edfb){const _0x43bb91=_0x4f6fbf;var _0x35c93c,_0x58abf2;let _0x55c5ca=this[_0x43bb91(0x1fa)][_0x43bb91(0x275)](_0x31df09);if(!_0x55c5ca||at(_0x55c5ca['presentation'],_0x44edfb))return;let _0x4c7f38=_0x55c5ca[_0x43bb91(0x193)],_0x95b55=B(_0x55c5ca);_0x55c5ca['presentation']=_0x44edfb,this[_0x43bb91(0x24f)][_0x43bb91(0x1a2)]({'unitId':_0x55c5ca['unitId'],'rangeId':_0x55c5ca[_0x43bb91(0x1e6)],'presentation':_0x44edfb,'previousPresentation':_0x4c7f38,'result':B(_0x55c5ca),'previousResult':{..._0x95b55,..._0x4c7f38,'value':(_0x35c93c=_0x4c7f38[_0x43bb91(0x1df)])==null?void 0x0:_0x35c93c['v'],'valueType':((_0x58abf2=_0x4c7f38[_0x43bb91(0x1df)])==null?void 0x0:_0x58abf2['t'])??void 0x0}});}[_0x4f6fbf(0x20c)](_0x4f36e2){const _0x4da46c=_0x4f6fbf;_0x4f36e2[_0x4da46c(0x279)]&&(this[_0x4da46c(0x263)]['deleteFormula'](_0x4f36e2[_0x4da46c(0x1c3)],_0x4f36e2[_0x4da46c(0x1c3)],[_0x4f36e2[_0x4da46c(0x279)]]),this['_formulaKeys'][_0x4da46c(0x1ca)](_0x4f36e2[_0x4da46c(0x279)]));}};L=I([F(0x0,_0x2acef3(P)),F(0x1,_0x2acef3(_0x13ff1c)),F(0x2,_0x2acef3(_0x10c960))],L);function R(_0x58f1d6,_0x49206a){return _0x58f1d6+'\x00'+_0x49206a;}function z(_0x50bcdf,_0x46e716){return _0x42aa2e({'numberFormat':_0x50bcdf['numberFormat'],'lastValue':_0x50bcdf['lastValue'],'result':_0x46e716});}function B(_0x39b239){const _0x51163b=_0x4f6fbf;var _0x53f904,_0xdcb372,_0x1f2f38;let _0x11e8c2=_0x39b239['presentation'],_0x56e1bf=_0x39b239['config']['formula'][_0x51163b(0x274)]()?_0x11e8c2['stale']||_0x11e8c2[_0x51163b(0x1df)]==null?_0x51163b(0x26e):((_0x53f904=_0x39b239[_0x51163b(0x20d)])==null?void 0x0:_0x53f904[_0x51163b(0x1c6)])===_0xa56ea4[_0x51163b(0x1fc)]?'error':_0x51163b(0x264):_0x51163b(0x1de);return{..._0x11e8c2,'status':_0x56e1bf,'value':(_0xdcb372=_0x11e8c2[_0x51163b(0x1df)])==null?void 0x0:_0xdcb372['v'],'valueType':((_0x1f2f38=_0x11e8c2[_0x51163b(0x1df)])==null?void 0x0:_0x1f2f38['t'])??void 0x0};}function at(_0x46de42,_0x105086){const _0x5d6e2c=_0x4f6fbf;var _0x2fa9d2,_0x4365b3,_0x40c266,_0x6f78c6;return _0x46de42[_0x5d6e2c(0x25d)]===_0x105086[_0x5d6e2c(0x25d)]&&_0x46de42[_0x5d6e2c(0x1e9)]===_0x105086[_0x5d6e2c(0x1e9)]&&_0x46de42['pattern']===_0x105086[_0x5d6e2c(0x1c2)]&&_0x46de42['source']===_0x105086[_0x5d6e2c(0x261)]&&_0x46de42[_0x5d6e2c(0x24d)]===_0x105086[_0x5d6e2c(0x24d)]&&((_0x2fa9d2=_0x46de42['cell'])==null?void 0x0:_0x2fa9d2['t'])===((_0x4365b3=_0x105086['cell'])==null?void 0x0:_0x4365b3['t'])&&Object['is']((_0x40c266=_0x46de42[_0x5d6e2c(0x1df)])==null?void 0x0:_0x40c266['v'],(_0x6f78c6=_0x105086[_0x5d6e2c(0x1df)])==null?void 0x0:_0x6f78c6['v']);}const ot={'id':_0x4f6fbf(0x26b),'type':_0x54b120['MUTATION'],'handler':(_0x204bad,_0x213e4c)=>!(_0x213e4c!=null&&_0x213e4c[_0x4f6fbf(0x1c3)])||!_0x213e4c[_0x4f6fbf(0x1e6)]||!_0x213e4c['config']?!0x1:_0x204bad[_0x4f6fbf(0x275)](P)[_0x4f6fbf(0x1b2)](_0x213e4c[_0x4f6fbf(0x1c3)],_0x213e4c['rangeId'],_0x213e4c[_0x4f6fbf(0x1ed)])},st={'id':_0x4f6fbf(0x1cd),'type':_0x54b120[_0x4f6fbf(0x1e4)],'handler':(_0x45e125,_0x162caa)=>!(_0x162caa!=null&&_0x162caa[_0x4f6fbf(0x1c3)])||!_0x162caa['rangeId']?!0x1:_0x45e125['get'](P)[_0x4f6fbf(0x242)](_0x162caa[_0x4f6fbf(0x1c3)],_0x162caa[_0x4f6fbf(0x1e6)])},V={'id':_0x4f6fbf(0x1b5),'type':_0x54b120['MUTATION'],'handler':(_0x374b44,_0x100684)=>!(_0x100684!=null&&_0x100684['unitId'])||!_0x100684[_0x4f6fbf(0x25b)]?!0x1:_0x374b44[_0x4f6fbf(0x275)](P)[_0x4f6fbf(0x1d4)](_0x100684[_0x4f6fbf(0x1c3)],_0x100684[_0x4f6fbf(0x25b)])},H={'id':_0x4f6fbf(0x25e),'type':_0x54b120[_0x4f6fbf(0x1e4)],'handler':(_0xdca892,_0xd345f4)=>{const _0x18d233=_0x4f6fbf;if(!(_0xd345f4!=null&&_0xd345f4[_0x18d233(0x1c3)])||!_0xd345f4['updates'][_0x18d233(0x21f)])return!0x1;let _0xa1f684=_0xdca892['get'](P),_0x51e22d=_0xdca892[_0x18d233(0x275)](_0x10c960),_0x5b79ad=_0xa1f684['getResource'](_0xd345f4[_0x18d233(0x1c3)]);if(!_0x5b79ad)return!0x1;let _0xb826d7=_0x5009bd[_0x18d233(0x1ff)](_0x5b79ad),_0x3d9d97=!0x1;for(let _0x276f92 of _0xd345f4[_0x18d233(0x223)]){var _0x589757,_0x50d19b,_0x136ad6,_0x50709e;let _0x2d9dc7=_0xb826d7[_0x18d233(0x18d)][_0x276f92['rangeId']];!_0x2d9dc7||_0x2d9dc7[_0x18d233(0x209)]!==_0x276f92[_0x18d233(0x1a3)]||((_0x589757=_0x2d9dc7[_0x18d233(0x190)])==null?void 0x0:_0x589757[_0x18d233(0x1c2)])!==_0x276f92[_0x18d233(0x1ec)]||_0x51e22d[_0x18d233(0x26d)](_0xd345f4[_0x18d233(0x1c3)])!==_0x276f92[_0x18d233(0x1af)]||(((_0x50d19b=_0x2d9dc7[_0x18d233(0x276)])==null?void 0x0:_0x50d19b['v'])!==_0x276f92[_0x18d233(0x276)]['v']||((_0x136ad6=_0x2d9dc7[_0x18d233(0x276)])==null?void 0x0:_0x136ad6['t'])!==_0x276f92[_0x18d233(0x276)]['t']||((_0x50709e=_0x2d9dc7[_0x18d233(0x276)])==null?void 0x0:_0x50709e[_0x18d233(0x1c2)])!==_0x276f92[_0x18d233(0x276)][_0x18d233(0x1c2)])&&(_0x2d9dc7['lastValue']=_0x5009bd[_0x18d233(0x1ff)](_0x276f92[_0x18d233(0x276)]),_0x3d9d97=!0x0);}return!_0x3d9d97||_0xa1f684[_0x18d233(0x1d4)](_0xd345f4[_0x18d233(0x1c3)],_0xb826d7);}},U={'id':_0x4f6fbf(0x272),'type':_0x54b120[_0x4f6fbf(0x1eb)],'handler':(_0x497e3e,_0x148eaf)=>{const _0x58c822=_0x4f6fbf;if(!(_0x148eaf!=null&&_0x148eaf[_0x58c822(0x209)][_0x58c822(0x274)]()))return!0x1;let _0x520505=q(_0x497e3e,_0x148eaf[_0x58c822(0x1c3)],'');if(!_0x520505)return!0x1;let _0xdc7397=ft(_0x148eaf[_0x58c822(0x1f1)],_0x520505['body'],dt(_0x497e3e,_0x520505[_0x58c822(0x1c3)]));if(!_0xdc7397)return!0x1;let _0x9ecf4d=pt(_0x497e3e,_0x520505['unitId'],_0x148eaf[_0x58c822(0x209)],_0x148eaf['externalReferences']??[]);if(!_0x9ecf4d)return!0x1;let _0x411619=mt(_0x520505['body'],_0x520505[_0x58c822(0x27e)],_0x520505[_0x58c822(0x1c3)]),_0x5ce0a0=ht({'documentData':_0x520505[_0x58c822(0x25f)],'resource':_0x520505[_0x58c822(0x25b)],'rangeId':_0x411619,'config':{'formula':_0x148eaf[_0x58c822(0x209)],..._0x148eaf['numberFormat']?{'numberFormat':_0x148eaf[_0x58c822(0x190)]}:null},'startOffset':_0xdc7397['startOffset'],'endOffset':_0xdc7397['endOffset']});if(!_0x5ce0a0)return!0x1;let _0x4d1f62=_0x3007cb(_0x497e3e,_0x520505['unitId'],_0x9ecf4d);return!_0x4d1f62||!J({'accessor':_0x497e3e,'document':_0x520505[_0x58c822(0x1da)],'unitId':_0x520505[_0x58c822(0x1c3)],'trigger':U['id'],'rangeId':_0x411619,'previousResource':_0x520505[_0x58c822(0x25b)],'nextResource':_0x5ce0a0['nextResource'],'previousDocumentData':_0x520505['documentData'],'nextDocumentData':_0x5ce0a0[_0x58c822(0x1d3)],'cursorOffset':_0x5ce0a0[_0x58c822(0x254)],'externalMutations':_0x4d1f62})?!0x1:{'rangeId':_0x411619,'startOffset':_0x5ce0a0[_0x58c822(0x254)]-0x1,'endOffset':_0x5ce0a0[_0x58c822(0x254)]};}},W={'id':'docs-formula.command.update','type':_0x54b120[_0x4f6fbf(0x1eb)],'handler':(_0x776d37,_0x51b77a)=>{const _0x2fc63f=_0x4f6fbf;if(!(_0x51b77a!=null&&_0x51b77a[_0x2fc63f(0x1e6)])||!_0x51b77a[_0x2fc63f(0x209)]['trim']())return!0x1;let _0x5bb46c=q(_0x776d37,_0x51b77a[_0x2fc63f(0x1c3)],''),_0x18801=_0x5bb46c==null?void 0x0:_0x5bb46c[_0x2fc63f(0x27e)]['getFormula'](_0x5bb46c[_0x2fc63f(0x1c3)],_0x51b77a['rangeId']),_0x48444f=_0x5bb46c?T(_0x5bb46c[_0x2fc63f(0x25f)][_0x2fc63f(0x278)],_0x51b77a[_0x2fc63f(0x1e6)]):void 0x0;if(!_0x5bb46c||!_0x18801||!_0x48444f)return!0x1;let _0x2185b2=pt(_0x776d37,_0x5bb46c['unitId'],_0x51b77a[_0x2fc63f(0x209)],_0x51b77a[_0x2fc63f(0x1f8)]??[]);if(!_0x2185b2)return!0x1;let _0x1cd9ca=_0x3007cb(_0x776d37,_0x5bb46c[_0x2fc63f(0x1c3)],_0x2185b2);if(!_0x1cd9ca)return!0x1;let _0x2dab58=Ct(_0x5bb46c[_0x2fc63f(0x25b)]);return _0x2dab58['formulas'][_0x51b77a['rangeId']]={'formula':_0x51b77a[_0x2fc63f(0x209)],..._0x51b77a[_0x2fc63f(0x190)]?{'numberFormat':_0x51b77a[_0x2fc63f(0x190)]}:_0x18801['numberFormat']?{'numberFormat':_0x18801[_0x2fc63f(0x190)]}:null},J({'accessor':_0x776d37,'document':_0x5bb46c[_0x2fc63f(0x1da)],'unitId':_0x5bb46c['unitId'],'trigger':W['id'],'rangeId':_0x51b77a[_0x2fc63f(0x1e6)],'previousResource':_0x5bb46c[_0x2fc63f(0x25b)],'nextResource':_0x2dab58,'cursorOffset':_0x48444f[_0x2fc63f(0x1aa)]+0x1,'externalMutations':_0x1cd9ca});}},G={'id':_0x4f6fbf(0x249),'type':_0x54b120[_0x4f6fbf(0x1eb)],'handler':(_0xc776df,_0x3a4272)=>{const _0x28839b=_0x4f6fbf;if(!(_0x3a4272!=null&&_0x3a4272[_0x28839b(0x1e6)]))return!0x1;let _0x3e9660=q(_0xc776df,_0x3a4272[_0x28839b(0x1c3)],''),_0x332d8e=_0x3e9660==null?void 0x0:_0x3e9660[_0x28839b(0x27e)][_0x28839b(0x1dd)](_0x3e9660[_0x28839b(0x1c3)],_0x3a4272[_0x28839b(0x1e6)]),_0x2d9e40=_0x3e9660?T(_0x3e9660[_0x28839b(0x25f)][_0x28839b(0x278)],_0x3a4272[_0x28839b(0x1e6)]):void 0x0;if(!_0x3e9660||!_0x332d8e||!_0x2d9e40)return!0x1;let _0x2fd01e=Ct(_0x3e9660[_0x28839b(0x25b)]);return _0x2fd01e[_0x28839b(0x18d)][_0x3a4272['rangeId']]={..._0x332d8e,..._0x3a4272[_0x28839b(0x190)]?{'numberFormat':_0x3a4272['numberFormat']}:null},_0x3a4272['numberFormat']||delete _0x2fd01e['formulas'][_0x3a4272['rangeId']][_0x28839b(0x190)],J({'accessor':_0xc776df,'document':_0x3e9660[_0x28839b(0x1da)],'unitId':_0x3e9660[_0x28839b(0x1c3)],'trigger':G['id'],'rangeId':_0x3a4272[_0x28839b(0x1e6)],'previousResource':_0x3e9660['resource'],'nextResource':_0x2fd01e,'cursorOffset':_0x2d9e40['endIndex']+0x1,'externalMutations':{}});}},K={'id':'docs-formula.command.remove','type':_0x54b120[_0x4f6fbf(0x1eb)],'handler':(_0x2cdb50,_0x572ab1)=>ut(_0x2cdb50,_0x572ab1,'',K['id'])},ct={'id':'docs-formula.command.replace-with-text','type':_0x54b120[_0x4f6fbf(0x1eb)],'handler':(_0x1392e2,_0x27f65f)=>ut(_0x1392e2,_0x27f65f,(_0x27f65f==null?void 0x0:_0x27f65f[_0x4f6fbf(0x25d)])??'',ct['id'])},lt={'id':'docs-formula.command.convert-to-text','type':_0x54b120[_0x4f6fbf(0x1eb)],'handler':(_0x50c63a,_0x32fa5e)=>{const _0x2059b3=_0x4f6fbf;if(!(_0x32fa5e!=null&&_0x32fa5e['rangeId']))return!0x1;let _0x151528=q(_0x50c63a,_0x32fa5e[_0x2059b3(0x1c3)],'');if(!_0x151528)return!0x1;let _0x1a1be8=_0x50c63a[_0x2059b3(0x275)](L)[_0x2059b3(0x212)]({'unitId':_0x151528[_0x2059b3(0x1c3)],'rangeId':_0x32fa5e[_0x2059b3(0x1e6)]});return _0x1a1be8?ut(_0x50c63a,_0x32fa5e,_0x1a1be8[_0x2059b3(0x25d)],lt['id']):!0x1;}};function ut(_0x56d2be,_0x10b1d9,_0x5aaf2a,_0x4ca40c){const _0x166931=_0x4f6fbf;if(!(_0x10b1d9!=null&&_0x10b1d9[_0x166931(0x1e6)]))return!0x1;let _0x11fdbd=q(_0x56d2be,_0x10b1d9[_0x166931(0x1c3)],'');if(!_0x11fdbd)return!0x1;let _0x501f1c=Be({'documentData':_0x11fdbd[_0x166931(0x25f)],'resource':_0x11fdbd[_0x166931(0x25b)],'rangeId':_0x10b1d9[_0x166931(0x1e6)],'text':_0x5aaf2a});return _0x501f1c?J({'accessor':_0x56d2be,'document':_0x11fdbd[_0x166931(0x1da)],'unitId':_0x11fdbd[_0x166931(0x1c3)],'trigger':_0x4ca40c,'rangeId':_0x10b1d9[_0x166931(0x1e6)],'previousResource':_0x11fdbd['resource'],'nextResource':_0x501f1c[_0x166931(0x267)],'previousDocumentData':_0x11fdbd[_0x166931(0x25f)],'nextDocumentData':_0x501f1c[_0x166931(0x1d3)],'cursorOffset':_0x501f1c['cursorOffset'],'externalMutations':{}}):!0x1;}function q(_0x31eafb,_0x328a01,_0x330ba9){const _0x4a5d9c=_0x4f6fbf;if(_0x330ba9)return null;let _0x15702c=_0x31eafb['get'](_0x2f4b97),_0x178af1=(_0x328a01?_0x15702c['getUnit'](_0x328a01,_0x84701a[_0x4a5d9c(0x221)]):_0x15702c[_0x4a5d9c(0x21b)](_0x84701a[_0x4a5d9c(0x221)]))??null;if(!_0x178af1)return null;let _0x368064=_0x178af1[_0x4a5d9c(0x18f)](),_0x3400d0=_0x368064[_0x4a5d9c(0x278)];if(_0x368064[_0x4a5d9c(0x230)]||!_0x3400d0)return null;let _0x1abf1c=_0x31eafb[_0x4a5d9c(0x275)](P);return _0x1abf1c[_0x4a5d9c(0x1ea)](_0x178af1[_0x4a5d9c(0x23d)]())?null:{'document':_0x178af1,'body':_0x3400d0,'documentData':_0x368064,'model':_0x1abf1c,'resource':_0x1abf1c['getResource'](_0x178af1['getUnitId']())??b(),'unitId':_0x178af1[_0x4a5d9c(0x23d)]()};}function dt(_0x377032,_0x31fbac){const _0x80addd=_0x4f6fbf;var _0x5d69ed;return(_0x5d69ed=_0x377032['get'](_0x415e0a)[_0x80addd(0x18e)]({'subUnitId':_0x31fbac,'unitId':_0x31fbac}))==null?void 0x0:_0x5d69ed[0x0];}function ft(_0x38a6c8,_0x2adc89,_0x2e9cf4){const _0x5b85e=_0x4f6fbf;if((_0x38a6c8==null?void 0x0:_0x38a6c8[_0x5b85e(0x232)])===_0x5b85e(0x27c)){var _0x4999ca;let _0x3219e5=((_0x4999ca=_0x2adc89[_0x5b85e(0x1a6)])==null?void 0x0:_0x4999ca[_0x5b85e(0x25a)](_0x3b9055=>_0x3b9055['paragraphId']===_0x38a6c8[_0x5b85e(0x1b9)]))??[];if(_0x3219e5[_0x5b85e(0x21f)]!==0x1)return null;let _0x36a49d=_0x3219e5[0x0],_0x4bd618=_0x3d7e00(_0x2adc89,_0x36a49d),_0x79391b=_0x36a49d[_0x5b85e(0x200)]-_0x4bd618,_0x4e98c2=_0x38a6c8[_0x5b85e(0x1c5)]===_0x5b85e(0x1dc)?_0x79391b:_0x38a6c8['position'];if(!Number['isInteger'](_0x4e98c2)||_0x4e98c2<0x0||_0x4e98c2>_0x79391b)return null;let _0x231df6=_0x4bd618+_0x4e98c2;return{'startOffset':_0x231df6,'endOffset':_0x231df6};}if((_0x38a6c8==null?void 0x0:_0x38a6c8[_0x5b85e(0x232)])===_0x5b85e(0x1f0))return!Number[_0x5b85e(0x192)](_0x38a6c8['startOffset'])||!Number[_0x5b85e(0x192)](_0x38a6c8['endOffset'])?null:{'startOffset':Math[_0x5b85e(0x1ae)](_0x38a6c8[_0x5b85e(0x23b)],_0x38a6c8[_0x5b85e(0x266)]),'endOffset':Math[_0x5b85e(0x203)](_0x38a6c8[_0x5b85e(0x23b)],_0x38a6c8[_0x5b85e(0x266)])};let _0x4978f9=(_0x38a6c8==null?void 0x0:_0x38a6c8[_0x5b85e(0x232)])===_0x5b85e(0x213)?_0x38a6c8[_0x5b85e(0x213)]:_0x2e9cf4;return!_0x4978f9||_0x4978f9[_0x5b85e(0x1fe)]?null:{'startOffset':Math[_0x5b85e(0x1ae)](_0x4978f9['startOffset'],_0x4978f9[_0x5b85e(0x266)]),'endOffset':Math['max'](_0x4978f9[_0x5b85e(0x23b)],_0x4978f9[_0x5b85e(0x266)])};}function pt(_0x17ca72,_0x397a1c,_0x450613,_0x532fc4){const _0xd0e8c3=_0x4f6fbf;let _0x1a30cb=_0x17ca72[_0xd0e8c3(0x275)](_0x4b333e),_0x54cef0=_0x450613[_0xd0e8c3(0x187)]('=')?_0x450613[_0xd0e8c3(0x24a)](0x1):_0x450613,_0x3e4c4b=_0x1a30cb[_0xd0e8c3(0x18b)](_0x54cef0);if(!_0x3e4c4b)return null;let _0x30bf24=_0x17ca72[_0xd0e8c3(0x275)](_0x10c960),_0x5015=_0x25aab3({'qualifiers':_0x1e38dc(_0x3e4c4b),'explicitReferences':_0x532fc4??[],'resolveBinding':_0x21553d=>_0x30bf24['resolveBinding'](_0x397a1c,_0x21553d)});return _0x5015['status']==='resolved'?_0x5015[_0xd0e8c3(0x210)]:null;}function mt(_0x419e4f,_0x19e2c3,_0x21c953){const _0x2597d1=_0x4f6fbf;var _0x481150;let _0x491d9c=_0x567cbf(0x6);for(;_0x419e4f!=null&&(_0x481150=_0x419e4f[_0x2597d1(0x1e5)])!=null&&_0x481150[_0x2597d1(0x1c4)](_0x40b5a1=>_0x40b5a1[_0x2597d1(0x1e6)]===_0x491d9c)||_0x19e2c3[_0x2597d1(0x1dd)](_0x21c953,_0x491d9c);)_0x491d9c=_0x567cbf(0x6);return _0x491d9c;}function ht(_0x5a924f){try{return Re(_0x5a924f);}catch(_0x469312){if(_0x469312 instanceof C)return null;throw _0x469312;}}function gt(_0x40d906){const _0x38eab9=_0x4f6fbf;let _0x5bbf2d=_0x40d906['previousDocumentData']&&_0x40d906[_0x38eab9(0x1d3)]?vt(_0x40d906[_0x38eab9(0x1da)],_0x40d906['unitId'],_0x40d906[_0x38eab9(0x248)],_0x40d906['nextDocumentData'],_0x40d906[_0x38eab9(0x254)],_0x40d906['trigger']):null;return _0x40d906['previousDocumentData']&&_0x40d906[_0x38eab9(0x1d3)]&&!_0x5bbf2d?null:{'documentRedo':_0x5bbf2d,'resourceRedo':{'id':V['id'],'params':{'unitId':_0x40d906[_0x38eab9(0x1c3)],'resource':_0x40d906[_0x38eab9(0x267)]}},'resourceUndo':{'id':V['id'],'params':{'unitId':_0x40d906[_0x38eab9(0x1c3)],'resource':_0x40d906[_0x38eab9(0x19a)]}}};}function _t(_0x95b682,_0x5778eb,_0x5824b0,_0x2160cd){const _0x64c243=_0x4f6fbf;_0x2160cd[_0x64c243(0x205)]({'id':_0x95b682[_0x64c243(0x23e)]+':'+_0x95b682[_0x64c243(0x1e6)],'unitID':_0x95b682['unitId'],'redoMutations':[..._0x95b682[_0x64c243(0x1e1)][_0x64c243(0x19d)]?[_0x95b682[_0x64c243(0x1e1)][_0x64c243(0x19d)]]:[],..._0x5778eb[_0x64c243(0x1a0)]?[_0x5778eb[_0x64c243(0x1a0)]]:[],_0x5778eb[_0x64c243(0x1cf)]],'undoMutations':[_0x5778eb[_0x64c243(0x231)],..._0x5824b0?[_0x5824b0]:[],..._0x95b682['externalMutations']['undoMutation']?[_0x95b682[_0x64c243(0x1e1)][_0x64c243(0x1b8)]]:[]]});}function J(_0xac5ff2){const _0x144e60=_0x4f6fbf;let _0x374ab0=_0xac5ff2[_0x144e60(0x24e)][_0x144e60(0x275)](_0x17a79b),_0xa10563=_0xac5ff2['accessor'][_0x144e60(0x275)](_0x108c62),_0x197671=_0xac5ff2[_0x144e60(0x24e)][_0x144e60(0x275)](_0x415e0a),_0x227bdc=gt(_0xac5ff2);if(!_0x227bdc)return!0x1;let _0x1c4e0f=!0x1,_0x33d83b=null,_0xe61f55=!0x1;try{if(_0xac5ff2[_0x144e60(0x1e1)][_0x144e60(0x19d)]){if(!_0x374ab0[_0x144e60(0x1b1)](_0xac5ff2[_0x144e60(0x1e1)]['redoMutation']['id'],_0xac5ff2['externalMutations'][_0x144e60(0x19d)]['params']))return!0x1;_0x1c4e0f=!0x0;}if(_0x227bdc['documentRedo']){let _0xef1ab=_0x374ab0[_0x144e60(0x1b1)](_0x227bdc[_0x144e60(0x1a0)]['id'],_0x227bdc['documentRedo'][_0x144e60(0x1b3)]);if(!_0xef1ab)return bt(_0x374ab0,_0xac5ff2[_0x144e60(0x1e1)],_0x1c4e0f),!0x1;_0x33d83b={'id':_0x152a2b['id'],'params':{..._0xef1ab,'noHistory':!0x0,'noNeedSetTextRange':!0x0,'segmentId':''}};}if(!_0x374ab0[_0x144e60(0x1b1)](_0x227bdc[_0x144e60(0x1cf)]['id'],_0x227bdc['resourceRedo'][_0x144e60(0x1b3)]))return yt(_0x374ab0,_0x33d83b),bt(_0x374ab0,_0xac5ff2[_0x144e60(0x1e1)],_0x1c4e0f),!0x1;_0xe61f55=!0x0,_t(_0xac5ff2,_0x227bdc,_0x33d83b,_0xa10563);}catch(_0x44eac3){throw _0xe61f55&&_0x374ab0[_0x144e60(0x1b1)](_0x227bdc[_0x144e60(0x231)]['id'],_0x227bdc[_0x144e60(0x231)]['params']),yt(_0x374ab0,_0x33d83b),bt(_0x374ab0,_0xac5ff2[_0x144e60(0x1e1)],_0x1c4e0f),_0x44eac3;}return _0x197671[_0x144e60(0x18c)]([{'startOffset':_0xac5ff2[_0x144e60(0x254)],'endOffset':_0xac5ff2['cursorOffset'],'segmentId':''}],{'unitId':_0xac5ff2[_0x144e60(0x1c3)],'subUnitId':_0xac5ff2[_0x144e60(0x1c3)]},!0x1,{[_0x53247e]:!0x0}),!0x0;}function vt(_0x2e8df0,_0x4f03da,_0x5df35d,_0x1edad3,_0x336b6e,_0x260ae4){let _0x18fe95=xt(_0x5df35d,_0x1edad3,_0x3a85ac(_0x2e8df0,''));return _0x18fe95?{'id':_0x152a2b['id'],'params':{'unitId':_0x4f03da,'actions':_0x18fe95,'segmentId':'','textRanges':[{'startOffset':_0x336b6e,'endOffset':_0x336b6e,'collapsed':!0x0,'segmentId':''}],'isEditing':!0x1,'noHistory':!0x0,'noNeedSetTextRange':!0x0,'trigger':_0x260ae4}}:null;}function yt(_0x779167,_0xb80bb8){const _0x115612=_0x4f6fbf;_0xb80bb8&&_0x779167[_0x115612(0x1b1)](_0xb80bb8['id'],_0xb80bb8[_0x115612(0x1b3)]);}function bt(_0x3dd89a,_0x3fed1f,_0x2f903e){const _0x336f94=_0x4f6fbf;_0x2f903e&&_0x3fed1f[_0x336f94(0x1b8)]&&_0x3dd89a[_0x336f94(0x1b1)](_0x3fed1f[_0x336f94(0x1b8)]['id'],_0x3fed1f[_0x336f94(0x1b8)][_0x336f94(0x1b3)]);}function xt(_0x973c37,_0x50f3fd,_0x3d3a38){const _0x5b1b25=_0x4f6fbf;let _0x5ef30b=_0x973c37['body'],_0x485c18=_0x50f3fd['body'],_0x1e622d=St(_0x5ef30b==null?void 0x0:_0x5ef30b['dataStream'],_0x485c18==null?void 0x0:_0x485c18[_0x5b1b25(0x220)]);if(!_0x1e622d||!_0x485c18)return null;let _0x1e20f9=new _0x5043cb();return _0x1e20f9['retain'](_0x1e622d[_0x5b1b25(0x1a8)]),_0x1e622d['insertLength']>0x0&&_0x1e20f9['insert'](_0x1e622d[_0x5b1b25(0x1c9)],_0x3936fb(_0x485c18,_0x1e622d['start'],_0x1e622d[_0x5b1b25(0x1a8)]+_0x1e622d['insertLength'],!0x1)),_0x1e622d['deleteLength']>0x0&&_0x1e20f9['delete'](_0x1e622d['deleteLength']),_0xd1312c[_0x5b1b25(0x1a4)]()[_0x5b1b25(0x1f4)](_0x1e20f9[_0x5b1b25(0x239)](),_0x3d3a38);}function St(_0x313fcc,_0x345efe){const _0x25b5cc=_0x4f6fbf;if(_0x313fcc==null||_0x345efe==null||_0x313fcc===_0x345efe)return null;let _0x179c81=0x0;for(;_0x179c81<_0x313fcc[_0x25b5cc(0x21f)]&&_0x179c81<_0x345efe[_0x25b5cc(0x21f)]&&_0x313fcc[_0x179c81]===_0x345efe[_0x179c81];)_0x179c81+=0x1;let _0x279c43=_0x313fcc[_0x25b5cc(0x21f)],_0x13b25c=_0x345efe[_0x25b5cc(0x21f)];for(;_0x279c43>_0x179c81&&_0x13b25c>_0x179c81&&_0x313fcc[_0x279c43-0x1]===_0x345efe[_0x13b25c-0x1];)--_0x279c43,--_0x13b25c;return{'start':_0x179c81,'deleteLength':_0x279c43-_0x179c81,'insertLength':_0x13b25c-_0x179c81};}function Ct(_0x271602){const _0x49dead=_0x4f6fbf;return{'schemaVersion':0x1,'formulas':Object['fromEntries'](Object[_0x49dead(0x21a)](_0x271602['formulas'])[_0x49dead(0x1d6)](([_0x2c48db,_0x14bdad])=>[_0x2c48db,{..._0x14bdad,..._0x14bdad[_0x49dead(0x190)]?{'numberFormat':{..._0x14bdad[_0x49dead(0x190)]}}:null,..._0x14bdad[_0x49dead(0x276)]?{'lastValue':{..._0x14bdad[_0x49dead(0x276)]}}:null}]))};}let Y=class extends _0x31b7da{constructor(_0x3a74cd,_0x589688,_0x422c8f,_0x5f4511){const _0x55b9f6=_0x4f6fbf;super(),this[_0x55b9f6(0x22c)]=_0x3a74cd,this[_0x55b9f6(0x247)]=_0x589688,this['_model']=_0x422c8f,this[_0x55b9f6(0x20f)]=_0x5f4511,N(this,'_pendingUnitIds',new Set()),N(this,_0x55b9f6(0x22a),!0x1),N(this,_0x55b9f6(0x1d8),!0x1),this[_0x55b9f6(0x22c)]['getAllUnitsForType'](_0x84701a[_0x55b9f6(0x221)])[_0x55b9f6(0x1bf)](_0x321b23=>this['_service'][_0x55b9f6(0x207)](_0x321b23)),this[_0x55b9f6(0x23f)](this[_0x55b9f6(0x20e)]['change$'][_0x55b9f6(0x269)](({unitId:_0x50a077})=>this['_syncUnit'](_0x50a077))),this[_0x55b9f6(0x23f)](this[_0x55b9f6(0x22c)][_0x55b9f6(0x198)][_0x55b9f6(0x269)](({unit:_0x10d103})=>{const _0x75da1c=_0x55b9f6;_0x10d103['type']===_0x84701a[_0x75da1c(0x221)]&&this[_0x75da1c(0x253)](_0x10d103[_0x75da1c(0x23d)]());})),this[_0x55b9f6(0x23f)](this[_0x55b9f6(0x22c)][_0x55b9f6(0x1ac)][_0x55b9f6(0x269)](_0x2193aa=>{const _0x24dfa=_0x55b9f6;this[_0x24dfa(0x20f)][_0x24dfa(0x1a7)](_0x2193aa[_0x24dfa(0x23d)]());})),this[_0x55b9f6(0x23f)](this[_0x55b9f6(0x247)][_0x55b9f6(0x1d5)](_0x3099f2=>{const _0x4dcc23=_0x55b9f6;if(_0x3099f2['id']===_0x152a2b['id']&&wt(_0x3099f2[_0x4dcc23(0x1b3)])){let _0x2a2315=_0x3099f2['params'];_0x2a2315[_0x4dcc23(0x1fe)]||this[_0x4dcc23(0x225)](_0x2a2315[_0x4dcc23(0x1c3)]);}}));}[_0x4f6fbf(0x215)](){this['_isDisposed']=!0x0,super['dispose']();}['_queueSync'](_0x4fd253){const _0x44e433=_0x4f6fbf;this['_pendingUnitIds'][_0x44e433(0x24b)](_0x4fd253),!this['_syncScheduled']&&(this[_0x44e433(0x22a)]=!0x0,queueMicrotask(()=>{const _0x1e6364=_0x44e433;if(this[_0x1e6364(0x22a)]=!0x1,this['_isDisposed'])return;let _0x1d6034=Array[_0x1e6364(0x1c7)](this['_pendingUnitIds']);this[_0x1e6364(0x185)]['clear'](),_0x1d6034['forEach'](_0x5dbb03=>this[_0x1e6364(0x225)](_0x5dbb03));}));}[_0x4f6fbf(0x225)](_0x59ebe6){const _0x231c81=_0x4f6fbf;let _0x20fc3c=this[_0x231c81(0x22c)][_0x231c81(0x218)](_0x59ebe6,_0x84701a[_0x231c81(0x221)]);_0x20fc3c&&this[_0x231c81(0x20f)][_0x231c81(0x207)](_0x20fc3c);}};Y=I([F(0x0,_0x2f4b97),F(0x1,_0x17a79b),F(0x2,_0x2acef3(P)),F(0x3,_0x2acef3(L))],Y);function wt(_0xef09c0){const _0x81ba37=_0x4f6fbf;return typeof _0xef09c0=='object'&&!!_0xef09c0&&_0x81ba37(0x1c3)in _0xef09c0&&typeof _0xef09c0[_0x81ba37(0x1c3)]==_0x81ba37(0x234)&&(!('segmentId'in _0xef09c0)||_0xef09c0[_0x81ba37(0x1fe)]===void 0x0||typeof _0xef09c0[_0x81ba37(0x1fe)]==_0x81ba37(0x234));}let X=class extends _0x31b7da{constructor(_0x29741d,_0x3db2c5){const _0x437d83=_0x4f6fbf;super(),this[_0x437d83(0x22f)]=_0x29741d,this[_0x437d83(0x240)]=_0x3db2c5,this[_0x437d83(0x23f)](this['_resourceManagerService']['registerPluginResource']({'pluginName':y,'businesses':[_0x84701a[_0x437d83(0x221)]],'toJson':_0x4b0be0=>JSON[_0x437d83(0x265)](this[_0x437d83(0x240)][_0x437d83(0x239)](_0x4b0be0)),'parseJson':_0xcb6804=>JSON[_0x437d83(0x206)](_0xcb6804),'onLoad':(_0x222d68,_0x1958d0)=>{const _0x31f69d=_0x437d83;this['_docFormulaModel'][_0x31f69d(0x245)](_0x222d68,_0x1958d0);},'onUnLoad':_0x158bf1=>this[_0x437d83(0x240)][_0x437d83(0x195)](_0x158bf1)}));}};X=I([F(0x0,_0x5cca76),F(0x1,_0x2acef3(P))],X);var Tt=_0x4f6fbf(0x1f9),Et=_0x4f6fbf(0x1be);const Dt={};let Z=class extends _0x31b7da{constructor(_0x211df5,_0xced93a,_0x2316f3){const _0x5b10e7=_0x4f6fbf;super(),this['_univerInstanceService']=_0x211df5,this[_0x5b10e7(0x27a)]=_0xced93a,this[_0x5b10e7(0x23f)](_0x2316f3[_0x5b10e7(0x1ce)]({'resolve':(_0x2a809a,_0x5e4362)=>{const _0x1365fb=_0x5b10e7;var _0x15cfe5;return((_0x15cfe5=_0x5e4362[_0x1365fb(0x1e5)])==null?void 0x0:_0x15cfe5[_0x1365fb(0x25a)](w)['map'](_0x5f2138=>({'startOffset':_0x5f2138[_0x1365fb(0x200)],'endOffset':_0x5f2138['endIndex']+0x1,'text':this[_0x1365fb(0x270)](_0x2a809a,_0x5f2138['rangeId'])})))??[];}})),this['disposeWithMe'](this['_formulaService'][_0x5b10e7(0x1a9)][_0x5b10e7(0x269)](({unitId:_0x892902})=>{const _0x1b2626=_0x5b10e7;_0x2316f3[_0x1b2626(0x196)](_0x892902);}));}['resolveFormula'](_0x44392c,_0x2f12cf){const _0x554681=_0x4f6fbf;var _0x21d135;return((_0x21d135=this[_0x554681(0x27a)]['getResult']({'unitId':_0x44392c,'rangeId':_0x2f12cf}))==null?void 0x0:_0x21d135[_0x554681(0x25d)])??'';}[_0x4f6fbf(0x22d)](_0x86de3c,_0x2a3e85,_0x4f4414){const _0x4d658f=_0x4f6fbf;var _0x5d30be;let _0x407395=this['_univerInstanceService'][_0x4d658f(0x218)](_0x86de3c,_0x84701a[_0x4d658f(0x221)]),_0x1c19c4=_0x407395==null?void 0x0:_0x407395[_0x4d658f(0x216)]();if(!_0x1c19c4)return'';let _0x9f8927=_0x1c19c4[_0x4d658f(0x220)][_0x4d658f(0x24a)](_0x2a3e85,_0x4f4414),_0x4e883=((_0x5d30be=_0x1c19c4[_0x4d658f(0x1e5)])==null?void 0x0:_0x5d30be[_0x4d658f(0x25a)](_0x44c1af=>w(_0x44c1af)&&_0x44c1af[_0x4d658f(0x200)]>=_0x2a3e85&&_0x44c1af[_0x4d658f(0x1aa)]<_0x4f4414)[_0x4d658f(0x1a5)]((_0x34d89d,_0x45949d)=>_0x45949d[_0x4d658f(0x200)]-_0x34d89d[_0x4d658f(0x200)]))??[];for(let _0x2994f7 of _0x4e883){let _0x219154=_0x2994f7[_0x4d658f(0x200)]-_0x2a3e85,_0x415af0=_0x2994f7[_0x4d658f(0x1aa)]-_0x2a3e85+0x1;_0x9f8927=''+_0x9f8927[_0x4d658f(0x24a)](0x0,_0x219154)+this[_0x4d658f(0x270)](_0x86de3c,_0x2994f7[_0x4d658f(0x1e6)])+_0x9f8927[_0x4d658f(0x24a)](_0x415af0);}return _0x9f8927;}[_0x4f6fbf(0x1c1)](_0x4820e2){return Ot(_0x4820e2);}[_0x4f6fbf(0x20b)](_0x5a13e3,_0x491922,_0x106144={}){const _0x43042e=_0x4f6fbf;var _0x2b54f4;return Ve({'id':_0x5a13e3,'body':_0x491922,'documentStyle':{}},(((_0x2b54f4=_0x491922['customRanges'])==null?void 0x0:_0x2b54f4[_0x43042e(0x25a)](w))??[])[_0x43042e(0x1d6)](_0x5627e9=>({'rangeId':_0x5627e9[_0x43042e(0x1e6)],'text':_0x106144[_0x5627e9['rangeId']]??this[_0x43042e(0x270)](_0x5a13e3,_0x5627e9[_0x43042e(0x1e6)])})))[_0x43042e(0x278)]??{'dataStream':''};}};Z=I([F(0x0,_0x2f4b97),F(0x1,_0x2acef3(L)),F(0x2,_0x2acef3(_0x1f7daa))],Z);function Ot(_0x56db1a){const _0x5933a0=_0x4f6fbf;var _0xdb26db,_0xd656d6;let _0x39be67=kt(_0x56db1a),_0x457b60=Ve(_0x56db1a,(((_0xdb26db=_0x56db1a[_0x5933a0(0x278)])==null||(_0xdb26db=_0xdb26db[_0x5933a0(0x1e5)])==null?void 0x0:_0xdb26db[_0x5933a0(0x25a)](w))??[])['map'](_0x148ed3=>({'rangeId':_0x148ed3[_0x5933a0(0x1e6)],'text':At(_0x39be67==null?void 0x0:_0x39be67[_0x5933a0(0x18d)][_0x148ed3[_0x5933a0(0x1e6)]])})));return _0x457b60[_0x5933a0(0x227)]=(_0xd656d6=_0x457b60[_0x5933a0(0x227)])==null?void 0x0:_0xd656d6[_0x5933a0(0x25a)](_0x30ff69=>_0x30ff69[_0x5933a0(0x189)]!==y),_0x457b60;}function kt(_0x3aef76){const _0x3cc693=_0x4f6fbf;var _0x36bdaf;let _0x3ee909=(_0x36bdaf=_0x3aef76['resources'])==null||(_0x36bdaf=_0x36bdaf['find'](_0x39ba72=>_0x39ba72[_0x3cc693(0x189)]===_0x3cc693(0x257)))==null?void 0x0:_0x36bdaf[_0x3cc693(0x1c8)];if(_0x3ee909)try{let _0x278d4c=JSON[_0x3cc693(0x206)](_0x3ee909);return x(_0x278d4c)?_0x278d4c:void 0x0;}catch{return;}}function At(_0x16a8bf){const _0x156e40=_0x4f6fbf;return _0x16a8bf?_0x42aa2e({'lastValue':_0x16a8bf[_0x156e40(0x276)],'numberFormat':_0x16a8bf[_0x156e40(0x190)]})[_0x156e40(0x25d)]:'';}let Q=class extends _0x31b7da{constructor(_0x246c9f,_0x3ee08e,_0x82609c){const _0x4e486d=_0x4f6fbf;super(),this[_0x4e486d(0x27a)]=_0x246c9f,this[_0x4e486d(0x21c)]=_0x3ee08e,this[_0x4e486d(0x23f)](_0x82609c[_0x4e486d(0x21d)](this));}[_0x4f6fbf(0x222)](_0x3052ea){const _0x372047=_0x4f6fbf;let _0x45f49e=new Map();for(let _0xfffea7 of this[_0x372047(0x27a)][_0x372047(0x262)]()){var _0x174b59;if(!this[_0x372047(0x21c)][_0x372047(0x1b0)](_0xfffea7['config'][_0x372047(0x209)],_0xfffea7[_0x372047(0x20d)])[_0x372047(0x229)])continue;let _0x2c6bad=_0x4ea63e(_0xfffea7[_0x372047(0x20d)]),_0x3e751d=_0x2c6bad?_0x4677a5(_0x2c6bad):null;if(!_0x3e751d||jt(_0xfffea7[_0x372047(0x1ed)][_0x372047(0x276)],_0x3e751d))continue;let _0x560a30=_0x45f49e[_0x372047(0x275)](_0xfffea7[_0x372047(0x20a)][_0x372047(0x1c3)])??[];_0x560a30[_0x372047(0x188)]({'rangeId':_0xfffea7['identity']['rangeId'],'expectedFormula':_0xfffea7[_0x372047(0x1ed)][_0x372047(0x209)],'expectedNumberFormat':(_0x174b59=_0xfffea7['config'][_0x372047(0x190)])==null?void 0x0:_0x174b59[_0x372047(0x1c2)],'expectedReferenceRevision':_0xfffea7['referenceRevision'],'lastValue':_0x3e751d}),_0x45f49e[_0x372047(0x19c)](_0xfffea7['identity'][_0x372047(0x1c3)],_0x560a30);}return Array[_0x372047(0x1c7)](_0x45f49e,([_0x350635,_0x2319e8])=>({'id':H['id'],'params':{'unitId':_0x350635,'updates':_0x2319e8}}));}};Q=I([F(0x0,_0x2acef3(L)),F(0x1,_0x2acef3(_0x4a49c8)),F(0x2,_0x2acef3(_0x13e281))],Q);function jt(_0x194155,_0x4fa5f4){const _0x91ca0=_0x4f6fbf;return(_0x194155==null?void 0x0:_0x194155['v'])===_0x4fa5f4['v']&&(_0x194155==null?void 0x0:_0x194155['t'])===_0x4fa5f4['t']&&(_0x194155==null?void 0x0:_0x194155[_0x91ca0(0x1c2)])===_0x4fa5f4[_0x91ca0(0x1c2)];}let $=class extends _0x19285f{constructor(_0x3679ee=Dt,_0x5995c5,_0xe06a7c,_0x24058d){const _0x5b59f5=_0x4f6fbf;super(),this[_0x5b59f5(0x23c)]=_0x3679ee,this[_0x5b59f5(0x1cb)]=_0x5995c5,this['_commandService']=_0xe06a7c,this[_0x5b59f5(0x24c)]=_0x24058d;let {..._0x4fbac5}=_0x51f985({},Dt,this[_0x5b59f5(0x23c)]);this[_0x5b59f5(0x24c)][_0x5b59f5(0x243)]('docs-formula.config',_0x4fbac5);}[_0x4f6fbf(0x214)](){const _0x9a9932=_0x4f6fbf;this[_0x9a9932(0x1cb)]['add']([P]),this[_0x9a9932(0x1cb)]['add']([L]),this[_0x9a9932(0x1cb)]['add']([X]),this[_0x9a9932(0x1cb)]['add']([Y]),this[_0x9a9932(0x1cb)][_0x9a9932(0x24b)]([Q]),this['_injector']['add']([Z]),_0x446bb5(this[_0x9a9932(0x1cb)],[[P],[X],[Y],[Q],[Z]]),[ot,st,V,H,U,W,G,K,ct,lt][_0x9a9932(0x1bf)](_0x48b6f4=>this[_0x9a9932(0x23f)](this['_commandService']['registerCommand'](_0x48b6f4)));}};N($,_0x4f6fbf(0x197),y),N($,_0x4f6fbf(0x1ee),Tt),N($,'version',Et),N($,_0x4f6fbf(0x232),_0x84701a[_0x4f6fbf(0x221)]),$=I([_0x156929(_0x347af6,_0x3b8edb,_0x2a1d9f),F(0x1,_0x2acef3(_0x4d35b9)),F(0x2,_0x17a79b),F(0x3,_0x430bb8)],$);function _0x2954(_0x4fcc29,_0x3ae27a){_0x4fcc29=_0x4fcc29-0x185;const _0x4a5468=_0x4a54();let _0x2954e5=_0x4a5468[_0x4fcc29];return _0x2954e5;}export{lt as ConvertDocFormulaToTextCommand,Me as DOC_FORMULA_CUSTOM_RANGE_KIND,Ne as DOC_FORMULA_OBJECT_REPLACEMENT,y as DOC_FORMULA_PLUGIN,je as DOC_FORMULA_SCHEMA_VERSION,Z as DocFormulaDisplayTextService,Y as DocFormulaLifecycleController,P as DocFormulaModel,X as DocFormulaResourceController,it as DocFormulaResultStatus,L as DocFormulaService,U as InsertDocFormulaCommand,C as InvalidDocFormulaInsertRangeError,K as RemoveDocFormulaCommand,st as RemoveDocFormulaMutation,ct as ReplaceDocFormulaWithTextCommand,H as SetDocFormulaLastValuesMutation,ot as SetDocFormulaMutation,G as SetDocFormulaNumberFormatCommand,V as SetDocFormulaResourceMutation,$ as UniverDocsFormulaPlugin,W as UpdateDocFormulaCommand,He as assertSafeDocFormulaInsertRange,Re as buildInsertDocFormulaActions,Be as buildRemoveDocFormulaActions,ze as buildUpdateDocFormulaActions,b as createEmptyDocFormulaResource,Ot as degradeDocFormulaDocumentData,T as findDocFormulaRange,Pe as isDocFormulaConfig,w as isDocFormulaRange,x as isDocFormulaResource,Fe as isFormulaLastValue};
|
package/lib/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var _0x133101=_0x2244;(function(_0x51647b,_0x2a87d4){var _0x5404d8=_0x2244,_0x2b9653=_0x51647b();while(!![]){try{var _0x354a8e=parseInt(_0x5404d8(0x14a))/0x1*(-parseInt(_0x5404d8(0x165))/0x2)+-parseInt(_0x5404d8(0x16f))/0x3+parseInt(_0x5404d8(0x176))/0x4*(-parseInt(_0x5404d8(0x136))/0x5)+parseInt(_0x5404d8(0x160))/0x6*(-parseInt(_0x5404d8(0x180))/0x7)+-parseInt(_0x5404d8(0x162))/0x8*(parseInt(_0x5404d8(0x170))/0x9)+-parseInt(_0x5404d8(0x14d))/0xa*(parseInt(_0x5404d8(0x146))/0xb)+parseInt(_0x5404d8(0x152))/0xc;if(_0x354a8e===_0x2a87d4)break;else _0x2b9653['push'](_0x2b9653['shift']());}catch(_0x1857e3){_0x2b9653['push'](_0x2b9653['shift']());}}}(_0x2015,0xdb4e6));import{ConvertDocFormulaToTextCommand as _0x41ff34,DocFormulaDisplayTextService as _0x45e7a7,DocFormulaModel as _0x2472e3,DocFormulaService as _0x2c6bd6,InsertDocFormulaCommand as _0x966776,RemoveDocFormulaCommand as _0x4d8ed7,ReplaceDocFormulaWithTextCommand as _0x2353c8,SetDocFormulaNumberFormatCommand as _0x32654e,UpdateDocFormulaCommand as _0x44c1dd,isDocFormulaRange as _0x594c47}from'@univerjs-pro/docs-formula';import{ICommandService as _0x269ffc,IResourceLoaderService as _0x405d32,IUniverInstanceService as _0x4041c4,Inject as _0x2874bb,UniverInstanceType as _0x400561}from'@univerjs/core';import{FDocument as _0x46eb6b,FDocumentParagraph as _0x3aae64,FDocumentTextRange as _0x296e28}from'@univerjs/docs/facade';function v(_0x1cf129,_0x14d033){return function(_0x4da9a5,_0x247519){_0x14d033(_0x4da9a5,_0x247519,_0x1cf129);};}function _0x2015(){var _0x30b31b=['remove','getFormulaAt','_getCompleteRanges','syncExecuteCommand','66494376xQkfus','_document','_unitId','getSnapshot','insertFormula','customRanges','_model','endIndex','startOffset','numberFormat','_getCustomRange','object','getSegmentId','_rangeId','9318YmObRK','length','16Kjddrp','setNumberFormat','_docsFormulaCommandService','24074iovtBk','_docsFormulaDisplayTextService','convertToText','getFormula','defineProperty','describe','_insert','replaceWithFormula','call','get','10239mxxoIY','65997LGzpDp','_injector','constructor','getFormulas','_docsFormulaModel','saveUnit','66608otTPhI','symbol','_createFormula','extend','getUnit','formula','Document\x20','replaceWithText','filter','degradeDocumentData','4053YSPdJF','_commandService','saveFormulaDisplayTextSnapshot','end','endOffset','range','update','rangeId','getResult','appendFormula','510hQQlTw','UNIVER_DOC','function','_service','paragraph','createInstance','_initialize','getId','body','startIndex','getOwnPropertyDescriptor','_docsFormulaResourceLoaderService','find','decorate','externalReferences','getConfig','11nvsegg','toPrimitive','getRange','prototype','139IMuyXI','string','some','3540070TieAFo'];_0x2015=function(){return _0x30b31b;};return _0x2015();}function y(_0x57999f,_0x2b82b7,_0x3290e9,_0x3e4d98){var _0xe80f33=_0x2244,_0x1b77a2=arguments[_0xe80f33(0x161)],_0x178a5f=_0x1b77a2<0x3?_0x2b82b7:_0x3e4d98===null?_0x3e4d98=Object[_0xe80f33(0x140)](_0x2b82b7,_0x3290e9):_0x3e4d98,_0x14d058;if(typeof Reflect==_0xe80f33(0x15d)&&typeof Reflect[_0xe80f33(0x143)]==_0xe80f33(0x138))_0x178a5f=Reflect[_0xe80f33(0x143)](_0x57999f,_0x2b82b7,_0x3290e9,_0x3e4d98);else{for(var _0x4ec2de=_0x57999f[_0xe80f33(0x161)]-0x1;_0x4ec2de>=0x0;_0x4ec2de--)(_0x14d058=_0x57999f[_0x4ec2de])&&(_0x178a5f=(_0x1b77a2<0x3?_0x14d058(_0x178a5f):_0x1b77a2>0x3?_0x14d058(_0x2b82b7,_0x3290e9,_0x178a5f):_0x14d058(_0x2b82b7,_0x3290e9))||_0x178a5f);}return _0x1b77a2>0x3&&_0x178a5f&&Object[_0xe80f33(0x169)](_0x2b82b7,_0x3290e9,_0x178a5f),_0x178a5f;}let b=class{constructor(_0x198a91,_0x27c5fe,_0x240013,_0x3e7193,_0x18f473,_0x293e0e){var _0xda714e=_0x2244;this[_0xda714e(0x154)]=_0x198a91,this['_rangeId']=_0x27c5fe,this[_0xda714e(0x12d)]=_0x240013,this[_0xda714e(0x158)]=_0x3e7193,this[_0xda714e(0x139)]=_0x18f473,this['_univerInstanceService']=_0x293e0e;}[_0x133101(0x13d)](){var _0x5346af=_0x133101;return this[_0x5346af(0x15f)];}[_0x133101(0x148)](){var _0x4b8d12=_0x133101;let _0x58fe07=this[_0x4b8d12(0x15c)]();return _0x58fe07?{'endOffset':_0x58fe07[_0x4b8d12(0x159)]+0x1,'rangeId':_0x58fe07[_0x4b8d12(0x133)],'startOffset':_0x58fe07[_0x4b8d12(0x13f)]}:null;}['getFormula'](){var _0x38f029=_0x133101,_0x3a73f6;return((_0x3a73f6=this[_0x38f029(0x158)][_0x38f029(0x168)](this[_0x38f029(0x154)],this[_0x38f029(0x15f)]))==null?void 0x0:_0x3a73f6[_0x38f029(0x17b)])??'';}[_0x133101(0x145)](){var _0x46cd71=_0x133101;return this[_0x46cd71(0x158)][_0x46cd71(0x168)](this['_unitId'],this[_0x46cd71(0x15f)])??null;}[_0x133101(0x134)](){var _0x17dfd9=_0x133101;return this['_service'][_0x17dfd9(0x134)]({'unitId':this[_0x17dfd9(0x154)],'rangeId':this['_rangeId']})??null;}[_0x133101(0x16a)](){var _0x542b84=_0x133101;let _0x153329=this[_0x542b84(0x148)](),_0x10a5a1=this[_0x542b84(0x145)](),_0x3f8e2e=this['getResult']();return!_0x153329||!_0x10a5a1||!_0x3f8e2e?null:{..._0x153329,'config':_0x10a5a1,'formula':_0x10a5a1['formula'],'result':_0x3f8e2e,'type':_0x542b84(0x17b)};}[_0x133101(0x132)](_0x30b826){var _0x2ab634=_0x133101;return this[_0x2ab634(0x12d)]['syncExecuteCommand'](_0x44c1dd['id'],{'externalReferences':_0x30b826[_0x2ab634(0x144)],'formula':_0x30b826[_0x2ab634(0x17b)],'numberFormat':_0x30b826['numberFormat'],'rangeId':this[_0x2ab634(0x15f)],'unitId':this['_unitId']});}[_0x133101(0x163)](_0x47be5f){var _0x4cf2db=_0x133101;return this[_0x4cf2db(0x12d)][_0x4cf2db(0x151)](_0x32654e['id'],{'numberFormat':_0x47be5f,'rangeId':this['_rangeId'],'unitId':this[_0x4cf2db(0x154)]});}[_0x133101(0x14e)](){var _0x2259ea=_0x133101;return this[_0x2259ea(0x12d)][_0x2259ea(0x151)](_0x4d8ed7['id'],{'rangeId':this[_0x2259ea(0x15f)],'unitId':this[_0x2259ea(0x154)]});}[_0x133101(0x17d)](_0x23e20e){var _0x54d2d1=_0x133101;return this[_0x54d2d1(0x12d)][_0x54d2d1(0x151)](_0x2353c8['id'],{'rangeId':this['_rangeId'],'text':_0x23e20e,'unitId':this[_0x54d2d1(0x154)]});}[_0x133101(0x167)](){var _0xdf8a23=_0x133101;return this[_0xdf8a23(0x12d)]['syncExecuteCommand'](_0x41ff34['id'],{'rangeId':this[_0xdf8a23(0x15f)],'unitId':this[_0xdf8a23(0x154)]});}[_0x133101(0x15c)](){var _0x135a4b=_0x133101,_0x5338eb;let _0x2f5bb9=this['_univerInstanceService'][_0x135a4b(0x17a)](this['_unitId'],_0x400561[_0x135a4b(0x137)]);return _0x2f5bb9==null||(_0x5338eb=_0x2f5bb9[_0x135a4b(0x155)]()[_0x135a4b(0x13e)])==null||(_0x5338eb=_0x5338eb[_0x135a4b(0x157)])==null?void 0x0:_0x5338eb[_0x135a4b(0x142)](_0x252415=>_0x252415['rangeId']===this[_0x135a4b(0x15f)]&&_0x594c47(_0x252415));}};b=y([v(0x2,_0x269ffc),v(0x3,_0x2874bb(_0x2472e3)),v(0x4,_0x2874bb(_0x2c6bd6)),v(0x5,_0x4041c4)],b);function x(_0x128694){'@babel/helpers - typeof';var _0x5d9136=_0x133101;return x=typeof Symbol==_0x5d9136(0x138)&&typeof Symbol['iterator']==_0x5d9136(0x177)?function(_0x3ab038){return typeof _0x3ab038;}:function(_0x29527d){var _0x2727d6=_0x5d9136;return _0x29527d&&typeof Symbol==_0x2727d6(0x138)&&_0x29527d[_0x2727d6(0x172)]===Symbol&&_0x29527d!==Symbol[_0x2727d6(0x149)]?_0x2727d6(0x177):typeof _0x29527d;},x(_0x128694);}function S(_0x277161,_0x4e6a29){var _0x4aff5a=_0x133101;if(x(_0x277161)!=_0x4aff5a(0x15d)||!_0x277161)return _0x277161;var _0x1cb84f=_0x277161[Symbol[_0x4aff5a(0x147)]];if(_0x1cb84f!==void 0x0){var _0x3e77cb=_0x1cb84f[_0x4aff5a(0x16d)](_0x277161,_0x4e6a29||'default');if(x(_0x3e77cb)!=_0x4aff5a(0x15d))return _0x3e77cb;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x4e6a29==='string'?String:Number)(_0x277161);}function C(_0x1529a9){var _0x362513=_0x133101,_0x4341bd=S(_0x1529a9,_0x362513(0x14b));return x(_0x4341bd)==_0x362513(0x177)?_0x4341bd:_0x4341bd+'';}function _0x2244(_0x476b5e,_0x356898){_0x476b5e=_0x476b5e-0x12d;var _0x201551=_0x2015();var _0x2244ac=_0x201551[_0x476b5e];return _0x2244ac;}function w(_0x81e4fd,_0x383951,_0x54d0a2){return(_0x383951=C(_0x383951))in _0x81e4fd?Object['defineProperty'](_0x81e4fd,_0x383951,{'value':_0x54d0a2,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x81e4fd[_0x383951]=_0x54d0a2,_0x81e4fd;}var T=class extends _0x46eb6b{constructor(..._0x16d050){var _0x17bff2=_0x133101;super(..._0x16d050),w(this,_0x17bff2(0x164),void 0x0),w(this,_0x17bff2(0x166),void 0x0),w(this,_0x17bff2(0x174),void 0x0),w(this,_0x17bff2(0x141),void 0x0);}[_0x133101(0x13c)](_0x58b937){var _0x58bd71=_0x133101;this[_0x58bd71(0x164)]=_0x58b937[_0x58bd71(0x16e)](_0x269ffc),this['_docsFormulaDisplayTextService']=_0x58b937[_0x58bd71(0x16e)](_0x45e7a7),this[_0x58bd71(0x174)]=_0x58b937['get'](_0x2472e3),this['_docsFormulaResourceLoaderService']=_0x58b937[_0x58bd71(0x16e)](_0x405d32);}[_0x133101(0x173)](){var _0x576dd2=_0x133101;return this[_0x576dd2(0x150)]()['map'](_0x13f105=>this[_0x576dd2(0x178)](_0x13f105[_0x576dd2(0x133)]));}[_0x133101(0x168)](_0x35120b){var _0x3a3b78=_0x133101;return this[_0x3a3b78(0x150)]()[_0x3a3b78(0x14c)](_0x3b3017=>_0x3b3017[_0x3a3b78(0x133)]===_0x35120b)?this[_0x3a3b78(0x178)](_0x35120b):null;}[_0x133101(0x14f)](_0x30ac11){var _0x18b922=_0x133101;let _0x257084=this[_0x18b922(0x150)]()[_0x18b922(0x142)](_0x12b1ce=>_0x12b1ce[_0x18b922(0x13f)]<=_0x30ac11&&_0x30ac11<=_0x12b1ce[_0x18b922(0x159)]);return _0x257084?this['_createFormula'](_0x257084[_0x18b922(0x133)]):null;}[_0x133101(0x12e)](){var _0xb83ae3=_0x133101;let _0x16778a=this[_0xb83ae3(0x141)][_0xb83ae3(0x175)](this['id']);if(!_0x16778a)throw Error(_0xb83ae3(0x17c)+this['id']+'\x20could\x20not\x20be\x20serialized.');return this[_0xb83ae3(0x166)][_0xb83ae3(0x17f)](_0x16778a);}[_0x133101(0x156)](_0x242133){var _0x23e207=_0x133101;return this[_0x23e207(0x16b)]({'externalReferences':_0x242133['externalReferences'],'formula':_0x242133[_0x23e207(0x17b)],'numberFormat':_0x242133['numberFormat'],'target':{'type':_0x23e207(0x131),'startOffset':_0x242133[_0x23e207(0x15a)],'endOffset':_0x242133[_0x23e207(0x130)]},'unitId':this[_0x23e207(0x13d)]()});}['_insert'](_0x5c533c){var _0x229494=_0x133101;let _0x5e0d59=this[_0x229494(0x164)][_0x229494(0x151)](_0x966776['id'],_0x5c533c);return _0x5e0d59?this[_0x229494(0x178)](_0x5e0d59[_0x229494(0x133)]):null;}[_0x133101(0x150)](){var _0x2603ed=_0x133101,_0x1fa13a;let _0x33909e=this['_docsFormulaModel'][_0x2603ed(0x173)](this[_0x2603ed(0x13d)]());return((_0x1fa13a=this['getBody']('')[_0x2603ed(0x157)])==null?void 0x0:_0x1fa13a[_0x2603ed(0x17e)](_0x56b6b1=>_0x594c47(_0x56b6b1)&&_0x33909e[_0x56b6b1['rangeId']]!=null))??[];}[_0x133101(0x178)](_0x42190a){var _0xee7eb6=_0x133101;return this[_0xee7eb6(0x171)][_0xee7eb6(0x13b)](b,this['getId'](),_0x42190a);}};_0x46eb6b[_0x133101(0x179)](T);var E=class extends _0x3aae64{constructor(..._0x301ca7){super(..._0x301ca7),w(this,'_docsFormulaCommandService',void 0x0);}[_0x133101(0x13c)](_0x117c47){var _0x25ea04=_0x133101;this[_0x25ea04(0x164)]=_0x117c47[_0x25ea04(0x16e)](_0x269ffc);}['insertFormula'](_0x5e7978,_0x3959ec,_0x44408b={}){var _0x2fd2ba=_0x133101;return this[_0x2fd2ba(0x16b)](_0x5e7978,_0x3959ec,_0x44408b);}[_0x133101(0x135)](_0x311eda,_0x23e98e={}){var _0x28d7dc=_0x133101;return this[_0x28d7dc(0x16b)](_0x28d7dc(0x12f),_0x311eda,_0x23e98e);}[_0x133101(0x16b)](_0x46fbcc,_0x8ce1d5,_0x4d3c9b){var _0x2b2011=_0x133101;if(this[_0x2b2011(0x15e)]())return null;let _0x4d0a0e={'externalReferences':_0x4d3c9b[_0x2b2011(0x144)],'formula':_0x8ce1d5,'numberFormat':_0x4d3c9b[_0x2b2011(0x15b)],'target':{'type':_0x2b2011(0x13a),'paragraphId':this['getId'](),'position':_0x46fbcc},'unitId':this['_document'][_0x2b2011(0x13d)]()},_0x26b3c2=this['_docsFormulaCommandService']['syncExecuteCommand'](_0x966776['id'],_0x4d0a0e);return _0x26b3c2?this['_injector'][_0x2b2011(0x13b)](b,this[_0x2b2011(0x153)][_0x2b2011(0x13d)](),_0x26b3c2['rangeId']):null;}};_0x3aae64[_0x133101(0x179)](E);var D=class extends _0x296e28{constructor(..._0x248145){super(..._0x248145),w(this,'_docsFormulaCommandService',void 0x0);}[_0x133101(0x13c)](_0x53ecc9){var _0x2a2818=_0x133101;this[_0x2a2818(0x164)]=_0x53ecc9[_0x2a2818(0x16e)](_0x269ffc);}[_0x133101(0x16c)](_0x206fec,_0x381d3e={}){let {endOffset:_0x365f53,segmentId:_0x193178,startOffset:_0x4683bf}=this['getRange']();return _0x193178?null:this['_insert'](_0x4683bf,_0x365f53,_0x206fec,_0x381d3e);}[_0x133101(0x16b)](_0x5ee025,_0x521268,_0x1164ff,_0x212eb4){var _0x34dd2b=_0x133101;let _0x2fd09d={'externalReferences':_0x212eb4[_0x34dd2b(0x144)],'formula':_0x1164ff,'numberFormat':_0x212eb4[_0x34dd2b(0x15b)],'target':{'type':_0x34dd2b(0x131),'startOffset':_0x5ee025,'endOffset':_0x521268},'unitId':this[_0x34dd2b(0x153)][_0x34dd2b(0x13d)]()},_0x46331b=this[_0x34dd2b(0x164)][_0x34dd2b(0x151)](_0x966776['id'],_0x2fd09d);return _0x46331b?this[_0x34dd2b(0x171)][_0x34dd2b(0x13b)](b,this[_0x34dd2b(0x153)][_0x34dd2b(0x13d)](),_0x46331b[_0x34dd2b(0x133)]):null;}};_0x296e28[_0x133101(0x179)](D);export{b as FDocumentFormula};
|
|
1
|
+
var _0x4e28be=_0x4d49;(function(_0xfe661f,_0x42b94b){var _0x20428d=_0x4d49,_0x8b30d1=_0xfe661f();while(!![]){try{var _0x7dfc5c=-parseInt(_0x20428d(0xbf))/0x1*(parseInt(_0x20428d(0xc9))/0x2)+parseInt(_0x20428d(0xdd))/0x3+-parseInt(_0x20428d(0xd0))/0x4+-parseInt(_0x20428d(0xda))/0x5*(-parseInt(_0x20428d(0xb6))/0x6)+parseInt(_0x20428d(0xd6))/0x7*(parseInt(_0x20428d(0xa4))/0x8)+-parseInt(_0x20428d(0xa0))/0x9*(-parseInt(_0x20428d(0xe5))/0xa)+-parseInt(_0x20428d(0xac))/0xb;if(_0x7dfc5c===_0x42b94b)break;else _0x8b30d1['push'](_0x8b30d1['shift']());}catch(_0x5db816){_0x8b30d1['push'](_0x8b30d1['shift']());}}}(_0x3963,0x8064b));function _0x3963(){var _0x115ccb=['getOwnPropertyDescriptor','endOffset','_createFormula','9725320cFLeMc','formula','getFormulas','_getCustomRange','_document','_injector','function','defineProperty','_rangeId','getConfig','6LZXilN','getFormulaAt','update','find','saveUnit','extend','describe','startIndex','range','562967UqTvbc','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','_docsFormulaResourceLoaderService','getSnapshot','_commandService','prototype','_univerInstanceService','_unitId','insertFormula','_service','2FCkmuu','_insert','customRanges','numberFormat','map','syncExecuteCommand','iterator','1378892TlXyBt','rangeId','_getCompleteRanges','getRange','get','convertToText','291277xytsSG','decorate','getResult','_initialize','2549005IKycKp','string','remove','1722618NIBtjq','_docsFormulaCommandService','toPrimitive','getId','replaceWithFormula','filter','default','startOffset','1627870snBkpd','getFormula','_docsFormulaDisplayTextService','end','externalReferences','_docsFormulaModel','getUnit','paragraph','saveFormulaDisplayTextSnapshot','36lCrfbP','symbol','endIndex','_model','112StECWJ','object','getBody','length','UNIVER_DOC'];_0x3963=function(){return _0x115ccb;};return _0x3963();}import{ConvertDocFormulaToTextCommand as _0x22f059,DocFormulaDisplayTextService as _0x5dac4d,DocFormulaModel as _0x3c45d1,DocFormulaService as _0x443123,InsertDocFormulaCommand as _0xd93c8a,RemoveDocFormulaCommand as _0x2463be,ReplaceDocFormulaWithTextCommand as _0x56d891,SetDocFormulaNumberFormatCommand as _0x2555df,UpdateDocFormulaCommand as _0x159a2b,isDocFormulaRange as _0x291b33}from'@univerjs-pro/docs-formula';import{ICommandService as _0x3b22a1,IResourceLoaderService as _0x7784c8,IUniverInstanceService as _0x219ab7,Inject as _0x20f2aa,UniverInstanceType as _0x81e326}from'@univerjs/core';import{FDocument as _0x3a0dba,FDocumentParagraph as _0x277b0f,FDocumentTextRange as _0x3239ce}from'@univerjs/docs/facade';function v(_0x280af4,_0x1a2190){return function(_0x13bb37,_0x4e4987){_0x1a2190(_0x13bb37,_0x4e4987,_0x280af4);};}function y(_0x414fd2,_0x595af4,_0x322e29,_0x25610b){var _0x1ffbff=_0x4d49,_0x1709d8=arguments[_0x1ffbff(0xa7)],_0x5cc7f8=_0x1709d8<0x3?_0x595af4:_0x25610b===null?_0x25610b=Object[_0x1ffbff(0xa9)](_0x595af4,_0x322e29):_0x25610b,_0x17f427;if(typeof Reflect==_0x1ffbff(0xa5)&&typeof Reflect['decorate']==_0x1ffbff(0xb2))_0x5cc7f8=Reflect[_0x1ffbff(0xd7)](_0x414fd2,_0x595af4,_0x322e29,_0x25610b);else{for(var _0x38ec96=_0x414fd2[_0x1ffbff(0xa7)]-0x1;_0x38ec96>=0x0;_0x38ec96--)(_0x17f427=_0x414fd2[_0x38ec96])&&(_0x5cc7f8=(_0x1709d8<0x3?_0x17f427(_0x5cc7f8):_0x1709d8>0x3?_0x17f427(_0x595af4,_0x322e29,_0x5cc7f8):_0x17f427(_0x595af4,_0x322e29))||_0x5cc7f8);}return _0x1709d8>0x3&&_0x5cc7f8&&Object[_0x1ffbff(0xb3)](_0x595af4,_0x322e29,_0x5cc7f8),_0x5cc7f8;}function _0x4d49(_0x530cdc,_0x215455){_0x530cdc=_0x530cdc-0x9e;var _0x3963a1=_0x3963();var _0x4d4975=_0x3963a1[_0x530cdc];return _0x4d4975;}let b=class{constructor(_0x1515cd,_0x375851,_0x194dc0,_0x42cb12,_0x5062f4,_0x526fec){var _0x3501d3=_0x4d49;this['_unitId']=_0x1515cd,this[_0x3501d3(0xb4)]=_0x375851,this[_0x3501d3(0xc3)]=_0x194dc0,this[_0x3501d3(0xa3)]=_0x42cb12,this[_0x3501d3(0xc8)]=_0x5062f4,this[_0x3501d3(0xc5)]=_0x526fec;}[_0x4e28be(0xe0)](){var _0x40c903=_0x4e28be;return this[_0x40c903(0xb4)];}[_0x4e28be(0xd3)](){var _0x45416d=_0x4e28be;let _0x10d2f4=this[_0x45416d(0xaf)]();return _0x10d2f4?{'endOffset':_0x10d2f4['endIndex']+0x1,'rangeId':_0x10d2f4[_0x45416d(0xd1)],'startOffset':_0x10d2f4[_0x45416d(0xbd)]}:null;}[_0x4e28be(0xe6)](){var _0x38a396=_0x4e28be,_0x41614c;return((_0x41614c=this[_0x38a396(0xa3)][_0x38a396(0xe6)](this[_0x38a396(0xc6)],this[_0x38a396(0xb4)]))==null?void 0x0:_0x41614c[_0x38a396(0xad)])??'';}[_0x4e28be(0xb5)](){var _0x221806=_0x4e28be;return this[_0x221806(0xa3)][_0x221806(0xe6)](this[_0x221806(0xc6)],this[_0x221806(0xb4)])??null;}[_0x4e28be(0xd8)](){var _0x1e7fc7=_0x4e28be;return this['_service'][_0x1e7fc7(0xd8)]({'unitId':this['_unitId'],'rangeId':this['_rangeId']})??null;}[_0x4e28be(0xbc)](){var _0x53fce4=_0x4e28be;let _0x24a710=this[_0x53fce4(0xd3)](),_0x2e00f8=this[_0x53fce4(0xb5)](),_0x3e6526=this[_0x53fce4(0xd8)]();return!_0x24a710||!_0x2e00f8||!_0x3e6526?null:{..._0x24a710,'config':_0x2e00f8,'formula':_0x2e00f8[_0x53fce4(0xad)],'result':_0x3e6526,'type':_0x53fce4(0xad)};}[_0x4e28be(0xb8)](_0x279bd1){var _0x1efc1f=_0x4e28be;return this[_0x1efc1f(0xc3)][_0x1efc1f(0xce)](_0x159a2b['id'],{'externalReferences':_0x279bd1['externalReferences'],'formula':_0x279bd1[_0x1efc1f(0xad)],'numberFormat':_0x279bd1['numberFormat'],'rangeId':this[_0x1efc1f(0xb4)],'unitId':this[_0x1efc1f(0xc6)]});}['setNumberFormat'](_0x38128f){var _0x806013=_0x4e28be;return this[_0x806013(0xc3)][_0x806013(0xce)](_0x2555df['id'],{'numberFormat':_0x38128f,'rangeId':this['_rangeId'],'unitId':this[_0x806013(0xc6)]});}[_0x4e28be(0xdc)](){var _0x5c1a9d=_0x4e28be;return this[_0x5c1a9d(0xc3)]['syncExecuteCommand'](_0x2463be['id'],{'rangeId':this[_0x5c1a9d(0xb4)],'unitId':this[_0x5c1a9d(0xc6)]});}['replaceWithText'](_0xf50edc){var _0x4986c6=_0x4e28be;return this[_0x4986c6(0xc3)][_0x4986c6(0xce)](_0x56d891['id'],{'rangeId':this[_0x4986c6(0xb4)],'text':_0xf50edc,'unitId':this['_unitId']});}[_0x4e28be(0xd5)](){var _0x3ea5ab=_0x4e28be;return this[_0x3ea5ab(0xc3)][_0x3ea5ab(0xce)](_0x22f059['id'],{'rangeId':this[_0x3ea5ab(0xb4)],'unitId':this[_0x3ea5ab(0xc6)]});}[_0x4e28be(0xaf)](){var _0x19400a=_0x4e28be,_0x2ad9e1;let _0x24bcd1=this['_univerInstanceService'][_0x19400a(0xeb)](this[_0x19400a(0xc6)],_0x81e326[_0x19400a(0xa8)]);return _0x24bcd1==null||(_0x2ad9e1=_0x24bcd1[_0x19400a(0xc2)]()['body'])==null||(_0x2ad9e1=_0x2ad9e1[_0x19400a(0xcb)])==null?void 0x0:_0x2ad9e1[_0x19400a(0xb9)](_0x1c4df9=>_0x1c4df9[_0x19400a(0xd1)]===this[_0x19400a(0xb4)]&&_0x291b33(_0x1c4df9));}};b=y([v(0x2,_0x3b22a1),v(0x3,_0x20f2aa(_0x3c45d1)),v(0x4,_0x20f2aa(_0x443123)),v(0x5,_0x219ab7)],b);function x(_0x379f0e){'@babel/helpers - typeof';var _0x33f81c=_0x4e28be;return x=typeof Symbol==_0x33f81c(0xb2)&&typeof Symbol[_0x33f81c(0xcf)]=='symbol'?function(_0x3c95fe){return typeof _0x3c95fe;}:function(_0x4071fc){var _0xc65f18=_0x33f81c;return _0x4071fc&&typeof Symbol=='function'&&_0x4071fc['constructor']===Symbol&&_0x4071fc!==Symbol[_0xc65f18(0xc4)]?_0xc65f18(0xa1):typeof _0x4071fc;},x(_0x379f0e);}function S(_0x1e951a,_0x1acf72){var _0x1ca689=_0x4e28be;if(x(_0x1e951a)!=_0x1ca689(0xa5)||!_0x1e951a)return _0x1e951a;var _0x478fd1=_0x1e951a[Symbol[_0x1ca689(0xdf)]];if(_0x478fd1!==void 0x0){var _0x51a6c2=_0x478fd1['call'](_0x1e951a,_0x1acf72||_0x1ca689(0xe3));if(x(_0x51a6c2)!='object')return _0x51a6c2;throw TypeError(_0x1ca689(0xc0));}return(_0x1acf72===_0x1ca689(0xdb)?String:Number)(_0x1e951a);}function C(_0x5d1d30){var _0x16c34a=_0x4e28be,_0x1fee72=S(_0x5d1d30,_0x16c34a(0xdb));return x(_0x1fee72)==_0x16c34a(0xa1)?_0x1fee72:_0x1fee72+'';}function w(_0x3cedbe,_0xd2481c,_0x1a6e8c){var _0x44cae5=_0x4e28be;return(_0xd2481c=C(_0xd2481c))in _0x3cedbe?Object[_0x44cae5(0xb3)](_0x3cedbe,_0xd2481c,{'value':_0x1a6e8c,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x3cedbe[_0xd2481c]=_0x1a6e8c,_0x3cedbe;}var T=class extends _0x3a0dba{constructor(..._0x169e0b){var _0x1ab1a7=_0x4e28be;super(..._0x169e0b),w(this,_0x1ab1a7(0xde),void 0x0),w(this,_0x1ab1a7(0xe7),void 0x0),w(this,_0x1ab1a7(0xea),void 0x0),w(this,_0x1ab1a7(0xc1),void 0x0);}[_0x4e28be(0xd9)](_0x205e67){var _0x38e7c8=_0x4e28be;this['_docsFormulaCommandService']=_0x205e67[_0x38e7c8(0xd4)](_0x3b22a1),this[_0x38e7c8(0xe7)]=_0x205e67[_0x38e7c8(0xd4)](_0x5dac4d),this[_0x38e7c8(0xea)]=_0x205e67[_0x38e7c8(0xd4)](_0x3c45d1),this[_0x38e7c8(0xc1)]=_0x205e67[_0x38e7c8(0xd4)](_0x7784c8);}['getFormulas'](){var _0x206cc5=_0x4e28be;return this['_getCompleteRanges']()[_0x206cc5(0xcd)](_0xc0ab62=>this[_0x206cc5(0xab)](_0xc0ab62[_0x206cc5(0xd1)]));}['getFormula'](_0x5bd39d){var _0x453377=_0x4e28be;return this['_getCompleteRanges']()['some'](_0x1d97b5=>_0x1d97b5[_0x453377(0xd1)]===_0x5bd39d)?this[_0x453377(0xab)](_0x5bd39d):null;}[_0x4e28be(0xb7)](_0x8ddba8){var _0x1f0079=_0x4e28be;let _0x44320c=this[_0x1f0079(0xd2)]()['find'](_0x317713=>_0x317713[_0x1f0079(0xbd)]<=_0x8ddba8&&_0x8ddba8<=_0x317713[_0x1f0079(0xa2)]);return _0x44320c?this[_0x1f0079(0xab)](_0x44320c['rangeId']):null;}[_0x4e28be(0x9f)](){var _0x16b60c=_0x4e28be;let _0x2f9b82=this[_0x16b60c(0xc1)][_0x16b60c(0xba)](this['id']);if(!_0x2f9b82)throw Error('Document\x20'+this['id']+'\x20could\x20not\x20be\x20serialized.');return this[_0x16b60c(0xe7)]['degradeDocumentData'](_0x2f9b82);}[_0x4e28be(0xc7)](_0x273448){var _0x801168=_0x4e28be;return this['_insert']({'externalReferences':_0x273448[_0x801168(0xe9)],'formula':_0x273448['formula'],'numberFormat':_0x273448[_0x801168(0xcc)],'target':{'type':_0x801168(0xbe),'startOffset':_0x273448[_0x801168(0xe4)],'endOffset':_0x273448[_0x801168(0xaa)]},'unitId':this[_0x801168(0xe0)]()});}[_0x4e28be(0xca)](_0x14090a){var _0xf0aa83=_0x4e28be;let _0x3a47b8=this[_0xf0aa83(0xde)][_0xf0aa83(0xce)](_0xd93c8a['id'],_0x14090a);return _0x3a47b8?this[_0xf0aa83(0xab)](_0x3a47b8['rangeId']):null;}[_0x4e28be(0xd2)](){var _0x283512=_0x4e28be,_0x2e7a94;let _0x4cfd4f=this[_0x283512(0xea)][_0x283512(0xae)](this[_0x283512(0xe0)]());return((_0x2e7a94=this[_0x283512(0xa6)]('')[_0x283512(0xcb)])==null?void 0x0:_0x2e7a94[_0x283512(0xe2)](_0x936feb=>_0x291b33(_0x936feb)&&_0x4cfd4f[_0x936feb[_0x283512(0xd1)]]!=null))??[];}[_0x4e28be(0xab)](_0x475325){var _0x427ebd=_0x4e28be;return this['_injector']['createInstance'](b,this[_0x427ebd(0xe0)](),_0x475325);}};_0x3a0dba[_0x4e28be(0xbb)](T);var E=class extends _0x277b0f{constructor(..._0x2135e7){var _0x2190ed=_0x4e28be;super(..._0x2135e7),w(this,_0x2190ed(0xde),void 0x0);}[_0x4e28be(0xd9)](_0x3f10c5){var _0x427e9b=_0x4e28be;this['_docsFormulaCommandService']=_0x3f10c5[_0x427e9b(0xd4)](_0x3b22a1);}[_0x4e28be(0xc7)](_0x595ebf,_0x16a2b8,_0x2a0060={}){var _0x17d198=_0x4e28be;return this[_0x17d198(0xca)](_0x595ebf,_0x16a2b8,_0x2a0060);}['appendFormula'](_0x55999f,_0xeced5={}){var _0x355b97=_0x4e28be;return this[_0x355b97(0xca)](_0x355b97(0xe8),_0x55999f,_0xeced5);}['_insert'](_0x37af3a,_0x174e1f,_0x89d0d1){var _0x44232e=_0x4e28be;if(this['getSegmentId']())return null;let _0x4095fd={'externalReferences':_0x89d0d1[_0x44232e(0xe9)],'formula':_0x174e1f,'numberFormat':_0x89d0d1['numberFormat'],'target':{'type':_0x44232e(0x9e),'paragraphId':this['getId'](),'position':_0x37af3a},'unitId':this[_0x44232e(0xb0)][_0x44232e(0xe0)]()},_0x4e7a15=this[_0x44232e(0xde)][_0x44232e(0xce)](_0xd93c8a['id'],_0x4095fd);return _0x4e7a15?this[_0x44232e(0xb1)]['createInstance'](b,this[_0x44232e(0xb0)]['getId'](),_0x4e7a15[_0x44232e(0xd1)]):null;}};_0x277b0f[_0x4e28be(0xbb)](E);var D=class extends _0x3239ce{constructor(..._0x4fa4e1){var _0x348eb2=_0x4e28be;super(..._0x4fa4e1),w(this,_0x348eb2(0xde),void 0x0);}['_initialize'](_0x5d0c7d){var _0x256d73=_0x4e28be;this[_0x256d73(0xde)]=_0x5d0c7d[_0x256d73(0xd4)](_0x3b22a1);}[_0x4e28be(0xe1)](_0x488718,_0x158d30={}){var _0x333fa8=_0x4e28be;let {endOffset:_0x42d808,segmentId:_0x36c68,startOffset:_0x2d4fac}=this[_0x333fa8(0xd3)]();return _0x36c68?null:this['_insert'](_0x2d4fac,_0x42d808,_0x488718,_0x158d30);}[_0x4e28be(0xca)](_0x2e3419,_0x39496e,_0x2fb01a,_0x470988){var _0x504ca5=_0x4e28be;let _0x34bade={'externalReferences':_0x470988[_0x504ca5(0xe9)],'formula':_0x2fb01a,'numberFormat':_0x470988[_0x504ca5(0xcc)],'target':{'type':_0x504ca5(0xbe),'startOffset':_0x2e3419,'endOffset':_0x39496e},'unitId':this[_0x504ca5(0xb0)][_0x504ca5(0xe0)]()},_0x56e6fc=this[_0x504ca5(0xde)][_0x504ca5(0xce)](_0xd93c8a['id'],_0x34bade);return _0x56e6fc?this[_0x504ca5(0xb1)]['createInstance'](b,this[_0x504ca5(0xb0)][_0x504ca5(0xe0)](),_0x56e6fc[_0x504ca5(0xd1)]):null;}};_0x3239ce[_0x4e28be(0xbb)](D);export{b as FDocumentFormula};
|