@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/cjs/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x3745db=_0xd885;(function(_0x57c0e5,_0x4e28e5){const _0x2f0cc0=_0xd885,_0x358ebc=_0x57c0e5();while(!![]){try{const _0x1e3a30=parseInt(_0x2f0cc0(0xb1))/0x1+parseInt(_0x2f0cc0(0x8b))/0x2+-parseInt(_0x2f0cc0(0xbc))/0x3+parseInt(_0x2f0cc0(0xb6))/0x4+-parseInt(_0x2f0cc0(0xe1))/0x5+-parseInt(_0x2f0cc0(0xd0))/0x6*(-parseInt(_0x2f0cc0(0xb2))/0x7)+-parseInt(_0x2f0cc0(0xc2))/0x8;if(_0x1e3a30===_0x4e28e5)break;else _0x358ebc['push'](_0x358ebc['shift']());}catch(_0x5a2db3){_0x358ebc['push'](_0x358ebc['shift']());}}}(_0x362c,0x6c9e0),Object[_0x3745db(0x8e)](exports,Symbol['toStringTag'],{'value':_0x3745db(0x88)}));let e=require('@univerjs-pro/docs-formula'),t=require('@univerjs/core'),n=require('@univerjs/docs/facade');function r(_0x6f6ecd,_0x364b0e){return function(_0x942e47,_0x4eb606){_0x364b0e(_0x942e47,_0x4eb606,_0x6f6ecd);};}function i(_0x5368f4,_0x5298f5,_0x108cb4,_0x1e8533){const _0x34b3e8=_0x3745db;var _0xe358d7=arguments[_0x34b3e8(0xa7)],_0x253631=_0xe358d7<0x3?_0x5298f5:_0x1e8533===null?_0x1e8533=Object[_0x34b3e8(0xd7)](_0x5298f5,_0x108cb4):_0x1e8533,_0x5f48f6;if(typeof Reflect==_0x34b3e8(0x9a)&&typeof Reflect[_0x34b3e8(0x8c)]==_0x34b3e8(0xa4))_0x253631=Reflect[_0x34b3e8(0x8c)](_0x5368f4,_0x5298f5,_0x108cb4,_0x1e8533);else{for(var _0x4d5215=_0x5368f4[_0x34b3e8(0xa7)]-0x1;_0x4d5215>=0x0;_0x4d5215--)(_0x5f48f6=_0x5368f4[_0x4d5215])&&(_0x253631=(_0xe358d7<0x3?_0x5f48f6(_0x253631):_0xe358d7>0x3?_0x5f48f6(_0x5298f5,_0x108cb4,_0x253631):_0x5f48f6(_0x5298f5,_0x108cb4))||_0x253631);}return _0xe358d7>0x3&&_0x253631&&Object[_0x34b3e8(0x8e)](_0x5298f5,_0x108cb4,_0x253631),_0x253631;}let a=class{constructor(_0x7710f,_0x26f519,_0x5dcf04,_0x195925,_0x5d89cc,_0x2fe992){const _0x635f89=_0x3745db;this['_unitId']=_0x7710f,this[_0x635f89(0xae)]=_0x26f519,this[_0x635f89(0x97)]=_0x5dcf04,this[_0x635f89(0xcb)]=_0x195925,this[_0x635f89(0x98)]=_0x5d89cc,this[_0x635f89(0xcf)]=_0x2fe992;}[_0x3745db(0x7f)](){const _0x5b52d1=_0x3745db;return this[_0x5b52d1(0xae)];}[_0x3745db(0xe2)](){const _0x23b11b=_0x3745db;let _0x598918=this[_0x23b11b(0xcd)]();return _0x598918?{'endOffset':_0x598918[_0x23b11b(0xa0)]+0x1,'rangeId':_0x598918[_0x23b11b(0x8d)],'startOffset':_0x598918[_0x23b11b(0xa3)]}:null;}[_0x3745db(0xb5)](){const _0x2959cf=_0x3745db;var _0x3eacc1;return((_0x3eacc1=this[_0x2959cf(0xcb)][_0x2959cf(0xb5)](this[_0x2959cf(0xa6)],this['_rangeId']))==null?void 0x0:_0x3eacc1[_0x2959cf(0xc4)])??'';}[_0x3745db(0x8a)](){const _0x841772=_0x3745db;return this[_0x841772(0xcb)][_0x841772(0xb5)](this[_0x841772(0xa6)],this[_0x841772(0xae)])??null;}[_0x3745db(0xd4)](){const _0xdbc566=_0x3745db;return this['_service'][_0xdbc566(0xd4)]({'unitId':this['_unitId'],'rangeId':this['_rangeId']})??null;}[_0x3745db(0xcc)](){const _0x48f41a=_0x3745db;let _0x39d149=this[_0x48f41a(0xe2)](),_0x7d13d=this[_0x48f41a(0x8a)](),_0x3bdb88=this[_0x48f41a(0xd4)]();return!_0x39d149||!_0x7d13d||!_0x3bdb88?null:{..._0x39d149,'config':_0x7d13d,'formula':_0x7d13d['formula'],'result':_0x3bdb88,'type':_0x48f41a(0xc4)};}[_0x3745db(0xc3)](_0x3f2e19){const _0x158d32=_0x3745db;return this['_commandService'][_0x158d32(0x85)](e[_0x158d32(0x80)]['id'],{'externalReferences':_0x3f2e19[_0x158d32(0xad)],'formula':_0x3f2e19[_0x158d32(0xc4)],'numberFormat':_0x3f2e19[_0x158d32(0x95)],'rangeId':this[_0x158d32(0xae)],'unitId':this[_0x158d32(0xa6)]});}[_0x3745db(0x86)](_0x58ce55){const _0x24788e=_0x3745db;return this[_0x24788e(0x97)][_0x24788e(0x85)](e[_0x24788e(0xda)]['id'],{'numberFormat':_0x58ce55,'rangeId':this['_rangeId'],'unitId':this[_0x24788e(0xa6)]});}[_0x3745db(0xc7)](){const _0xac5cab=_0x3745db;return this[_0xac5cab(0x97)]['syncExecuteCommand'](e[_0xac5cab(0xc8)]['id'],{'rangeId':this[_0xac5cab(0xae)],'unitId':this[_0xac5cab(0xa6)]});}[_0x3745db(0xc6)](_0x589479){const _0x5840a9=_0x3745db;return this[_0x5840a9(0x97)][_0x5840a9(0x85)](e[_0x5840a9(0xca)]['id'],{'rangeId':this[_0x5840a9(0xae)],'text':_0x589479,'unitId':this[_0x5840a9(0xa6)]});}[_0x3745db(0xac)](){const _0x5479f0=_0x3745db;return this[_0x5479f0(0x97)][_0x5479f0(0x85)](e[_0x5479f0(0xd3)]['id'],{'rangeId':this[_0x5479f0(0xae)],'unitId':this[_0x5479f0(0xa6)]});}['_getCustomRange'](){const _0x2f5952=_0x3745db;var _0x5d2605;let _0x521c2c=this[_0x2f5952(0xcf)][_0x2f5952(0xc9)](this[_0x2f5952(0xa6)],t[_0x2f5952(0xb4)][_0x2f5952(0x87)]);return _0x521c2c==null||(_0x5d2605=_0x521c2c[_0x2f5952(0x81)]()[_0x2f5952(0xa9)])==null||(_0x5d2605=_0x5d2605['customRanges'])==null?void 0x0:_0x5d2605['find'](_0x53f213=>_0x53f213['rangeId']===this[_0x2f5952(0xae)]&&(0x0,e[_0x2f5952(0x90)])(_0x53f213));}};a=i([r(0x2,t[_0x3745db(0x94)]),r(0x3,(0x0,t[_0x3745db(0xbb)])(e[_0x3745db(0xd2)])),r(0x4,(0x0,t[_0x3745db(0xbb)])(e[_0x3745db(0x96)])),r(0x5,t['IUniverInstanceService'])],a);function o(_0x4b83dd){'@babel/helpers - typeof';const _0x41b6a6=_0x3745db;return o=typeof Symbol==_0x41b6a6(0xa4)&&typeof Symbol[_0x41b6a6(0xdf)]==_0x41b6a6(0xce)?function(_0x5f2eca){return typeof _0x5f2eca;}:function(_0x4b8b96){const _0x52b9df=_0x41b6a6;return _0x4b8b96&&typeof Symbol==_0x52b9df(0xa4)&&_0x4b8b96[_0x52b9df(0xc1)]===Symbol&&_0x4b8b96!==Symbol[_0x52b9df(0xdb)]?_0x52b9df(0xce):typeof _0x4b8b96;},o(_0x4b83dd);}function s(_0x5545ec,_0x33406d){const _0x404729=_0x3745db;if(o(_0x5545ec)!=_0x404729(0x9a)||!_0x5545ec)return _0x5545ec;var _0xf1c4ae=_0x5545ec[Symbol['toPrimitive']];if(_0xf1c4ae!==void 0x0){var _0x2f5e18=_0xf1c4ae[_0x404729(0xbf)](_0x5545ec,_0x33406d||'default');if(o(_0x2f5e18)!='object')return _0x2f5e18;throw TypeError(_0x404729(0xe4));}return(_0x33406d==='string'?String:Number)(_0x5545ec);}function _0x362c(){const _0x43cbcd=['setNumberFormat','UNIVER_DOC','Module','customRanges','getConfig','1521146dgBYga','decorate','rangeId','defineProperty','paragraph','isDocFormulaRange','some','_createFormula','_initialize','ICommandService','numberFormat','DocFormulaService','_commandService','_service','\x20could\x20not\x20be\x20serialized.','object','_insert','extend','DocFormulaDisplayTextService','startOffset','createInstance','endIndex','saveUnit','_injector','startIndex','function','FDocumentParagraph','_unitId','length','getFormulas','body','map','InsertDocFormulaCommand','convertToText','externalReferences','_rangeId','string','filter','412760XBkTLN','5318299xaLpRc','FDocumentFormula','UniverInstanceType','getFormula','903132XESfKt','FDocumentTextRange','_document','getFormulaAt','end','Inject','45960OvITEF','FDocument','replaceWithFormula','call','_getCompleteRanges','constructor','6906712AcgUaE','update','formula','degradeDocumentData','replaceWithText','remove','RemoveDocFormulaCommand','getUnit','ReplaceDocFormulaWithTextCommand','_model','describe','_getCustomRange','symbol','_univerInstanceService','6MkpmME','_docsFormulaCommandService','DocFormulaModel','ConvertDocFormulaToTextCommand','getResult','saveFormulaDisplayTextSnapshot','getBody','getOwnPropertyDescriptor','endOffset','Document\x20','SetDocFormulaNumberFormatCommand','prototype','get','insertFormula','_docsFormulaModel','iterator','_docsFormulaDisplayTextService','4176590EQdaMQ','getRange','range','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','getId','UpdateDocFormulaCommand','getSnapshot','getSegmentId','_docsFormulaResourceLoaderService','appendFormula','syncExecuteCommand'];_0x362c=function(){return _0x43cbcd;};return _0x362c();}function c(_0x5ebbf5){const _0x100a01=_0x3745db;var _0x32b201=s(_0x5ebbf5,_0x100a01(0xaf));return o(_0x32b201)=='symbol'?_0x32b201:_0x32b201+'';}function l(_0x5298a0,_0x44e0cc,_0x191cc1){const _0x467667=_0x3745db;return(_0x44e0cc=c(_0x44e0cc))in _0x5298a0?Object[_0x467667(0x8e)](_0x5298a0,_0x44e0cc,{'value':_0x191cc1,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x5298a0[_0x44e0cc]=_0x191cc1,_0x5298a0;}var u=class extends n[_0x3745db(0xbd)]{constructor(..._0x1a6c40){const _0x1b6181=_0x3745db;super(..._0x1a6c40),l(this,_0x1b6181(0xd1),void 0x0),l(this,_0x1b6181(0xe0),void 0x0),l(this,_0x1b6181(0xde),void 0x0),l(this,_0x1b6181(0x83),void 0x0);}['_initialize'](_0x431ad1){const _0x6f9325=_0x3745db;this[_0x6f9325(0xd1)]=_0x431ad1['get'](t[_0x6f9325(0x94)]),this[_0x6f9325(0xe0)]=_0x431ad1[_0x6f9325(0xdc)](e[_0x6f9325(0x9d)]),this[_0x6f9325(0xde)]=_0x431ad1['get'](e[_0x6f9325(0xd2)]),this[_0x6f9325(0x83)]=_0x431ad1[_0x6f9325(0xdc)](t['IResourceLoaderService']);}[_0x3745db(0xa8)](){const _0x33b371=_0x3745db;return this[_0x33b371(0xc0)]()[_0x33b371(0xaa)](_0xfa05b7=>this[_0x33b371(0x92)](_0xfa05b7[_0x33b371(0x8d)]));}[_0x3745db(0xb5)](_0x383b6c){const _0x1a440b=_0x3745db;return this[_0x1a440b(0xc0)]()[_0x1a440b(0x91)](_0x2d6165=>_0x2d6165[_0x1a440b(0x8d)]===_0x383b6c)?this[_0x1a440b(0x92)](_0x383b6c):null;}[_0x3745db(0xb9)](_0x2917cd){const _0x4906e7=_0x3745db;let _0x3bf98e=this[_0x4906e7(0xc0)]()['find'](_0x47ea4a=>_0x47ea4a[_0x4906e7(0xa3)]<=_0x2917cd&&_0x2917cd<=_0x47ea4a['endIndex']);return _0x3bf98e?this['_createFormula'](_0x3bf98e[_0x4906e7(0x8d)]):null;}[_0x3745db(0xd5)](){const _0x4be7b0=_0x3745db;let _0x3bb577=this[_0x4be7b0(0x83)][_0x4be7b0(0xa1)](this['id']);if(!_0x3bb577)throw Error(_0x4be7b0(0xd9)+this['id']+_0x4be7b0(0x99));return this[_0x4be7b0(0xe0)][_0x4be7b0(0xc5)](_0x3bb577);}[_0x3745db(0xdd)](_0xa6f5d8){const _0x2d9287=_0x3745db;return this[_0x2d9287(0x9b)]({'externalReferences':_0xa6f5d8[_0x2d9287(0xad)],'formula':_0xa6f5d8['formula'],'numberFormat':_0xa6f5d8[_0x2d9287(0x95)],'target':{'type':_0x2d9287(0xe3),'startOffset':_0xa6f5d8[_0x2d9287(0x9e)],'endOffset':_0xa6f5d8[_0x2d9287(0xd8)]},'unitId':this[_0x2d9287(0x7f)]()});}[_0x3745db(0x9b)](_0x43c479){const _0x28e76c=_0x3745db;let _0x5414ff=this['_docsFormulaCommandService']['syncExecuteCommand'](e[_0x28e76c(0xab)]['id'],_0x43c479);return _0x5414ff?this[_0x28e76c(0x92)](_0x5414ff[_0x28e76c(0x8d)]):null;}[_0x3745db(0xc0)](){const _0x9d001e=_0x3745db;var _0x3e7c85;let _0x1624af=this[_0x9d001e(0xde)][_0x9d001e(0xa8)](this['getId']());return((_0x3e7c85=this[_0x9d001e(0xd6)]('')[_0x9d001e(0x89)])==null?void 0x0:_0x3e7c85[_0x9d001e(0xb0)](_0x24a179=>(0x0,e[_0x9d001e(0x90)])(_0x24a179)&&_0x1624af[_0x24a179[_0x9d001e(0x8d)]]!=null))??[];}['_createFormula'](_0x181075){const _0xd9d95f=_0x3745db;return this[_0xd9d95f(0xa2)][_0xd9d95f(0x9f)](a,this[_0xd9d95f(0x7f)](),_0x181075);}};function _0xd885(_0x3f4241,_0x2fa2ee){_0x3f4241=_0x3f4241-0x7f;const _0x362c1e=_0x362c();let _0xd8856e=_0x362c1e[_0x3f4241];return _0xd8856e;}n[_0x3745db(0xbd)][_0x3745db(0x9c)](u);var d=class extends n[_0x3745db(0xa5)]{constructor(..._0x18d57f){const _0x54135c=_0x3745db;super(..._0x18d57f),l(this,_0x54135c(0xd1),void 0x0);}[_0x3745db(0x93)](_0x2ee104){const _0x1b55ad=_0x3745db;this[_0x1b55ad(0xd1)]=_0x2ee104['get'](t[_0x1b55ad(0x94)]);}[_0x3745db(0xdd)](_0x5f0801,_0x26375c,_0x28e28a={}){const _0x1773c9=_0x3745db;return this[_0x1773c9(0x9b)](_0x5f0801,_0x26375c,_0x28e28a);}[_0x3745db(0x84)](_0x4a9216,_0x260a77={}){const _0x1e5bc4=_0x3745db;return this[_0x1e5bc4(0x9b)](_0x1e5bc4(0xba),_0x4a9216,_0x260a77);}[_0x3745db(0x9b)](_0x1215b8,_0x185f54,_0x5c7000){const _0x4a107f=_0x3745db;if(this[_0x4a107f(0x82)]())return null;let _0xe3ba70={'externalReferences':_0x5c7000[_0x4a107f(0xad)],'formula':_0x185f54,'numberFormat':_0x5c7000[_0x4a107f(0x95)],'target':{'type':_0x4a107f(0x8f),'paragraphId':this[_0x4a107f(0x7f)](),'position':_0x1215b8},'unitId':this[_0x4a107f(0xb8)][_0x4a107f(0x7f)]()},_0x478fba=this[_0x4a107f(0xd1)][_0x4a107f(0x85)](e['InsertDocFormulaCommand']['id'],_0xe3ba70);return _0x478fba?this['_injector'][_0x4a107f(0x9f)](a,this[_0x4a107f(0xb8)][_0x4a107f(0x7f)](),_0x478fba['rangeId']):null;}};n[_0x3745db(0xa5)][_0x3745db(0x9c)](d);var f=class extends n[_0x3745db(0xb7)]{constructor(..._0x195370){const _0x2a86c8=_0x3745db;super(..._0x195370),l(this,_0x2a86c8(0xd1),void 0x0);}[_0x3745db(0x93)](_0x18b227){const _0x5e5a3a=_0x3745db;this[_0x5e5a3a(0xd1)]=_0x18b227[_0x5e5a3a(0xdc)](t[_0x5e5a3a(0x94)]);}[_0x3745db(0xbe)](_0x388b70,_0x249a07={}){const _0x1a0251=_0x3745db;let {endOffset:_0xd87af7,segmentId:_0x166ade,startOffset:_0x45c47f}=this[_0x1a0251(0xe2)]();return _0x166ade?null:this[_0x1a0251(0x9b)](_0x45c47f,_0xd87af7,_0x388b70,_0x249a07);}[_0x3745db(0x9b)](_0xb4a60,_0x2255fc,_0xc3336,_0x477c7a){const _0x1935ba=_0x3745db;let _0x2cde17={'externalReferences':_0x477c7a[_0x1935ba(0xad)],'formula':_0xc3336,'numberFormat':_0x477c7a[_0x1935ba(0x95)],'target':{'type':'range','startOffset':_0xb4a60,'endOffset':_0x2255fc},'unitId':this[_0x1935ba(0xb8)][_0x1935ba(0x7f)]()},_0x3a6348=this[_0x1935ba(0xd1)][_0x1935ba(0x85)](e['InsertDocFormulaCommand']['id'],_0x2cde17);return _0x3a6348?this[_0x1935ba(0xa2)][_0x1935ba(0x9f)](a,this['_document'][_0x1935ba(0x7f)](),_0x3a6348[_0x1935ba(0x8d)]):null;}};n[_0x3745db(0xb7)][_0x3745db(0x9c)](f),Object[_0x3745db(0x8e)](exports,_0x3745db(0xb3),{'enumerable':!0x0,'get':function(){return a;}});
|
|
1
|
+
const _0x1a0ef9=_0x1e83;function _0xbbb8(){const _0x45ef29=['83976fwKvNt','16BGlaBx','_unitId','getConfig','getFormula','_service','toStringTag','endOffset','\x20could\x20not\x20be\x20serialized.','ConvertDocFormulaToTextCommand','_getCompleteRanges','appendFormula','170HZNnxb','_commandService','remove','insertFormula','update','rangeId','call','UNIVER_DOC','2618778PlPHIT','range','_insert','6909416tYVHie','IResourceLoaderService','DocFormulaService','formula','describe','decorate','18697KoLHlI','_getCustomRange','symbol','length','get','some','FDocumentFormula','getFormulaAt','function','customRanges','isDocFormulaRange','_docsFormulaResourceLoaderService','body','InsertDocFormulaCommand','saveUnit','DocFormulaDisplayTextService','numberFormat','_initialize','startIndex','object','createInstance','prototype','syncExecuteCommand','find','25458160mNZTFU','_model','ICommandService','getBody','startOffset','FDocument','_univerInstanceService','degradeDocumentData','_docsFormulaCommandService','870354ZrlsOa','convertToText','_docsFormulaModel','externalReferences','UpdateDocFormulaCommand','end','getRange','replaceWithText','defineProperty','Module','getUnit','paragraph','_injector','iterator','DocFormulaModel','Inject','extend','map','_createFormula','getOwnPropertyDescriptor','FDocumentParagraph','ReplaceDocFormulaWithTextCommand','4YWAZNs','6013693LhjClC','FDocumentTextRange','_docsFormulaDisplayTextService','_rangeId','getFormulas','getResult','endIndex','getId','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','SetDocFormulaNumberFormatCommand','replaceWithFormula','constructor'];_0xbbb8=function(){return _0x45ef29;};return _0xbbb8();}(function(_0x57e565,_0x456ff2){const _0x1eca99=_0x1e83,_0xb918c1=_0x57e565();while(!![]){try{const _0x361559=parseInt(_0x1eca99(0xbf))/0x1*(parseInt(_0x1eca99(0x104))/0x2)+-parseInt(_0x1eca99(0xb6))/0x3*(parseInt(_0x1eca99(0xf6))/0x4)+-parseInt(_0x1eca99(0xae))/0x5*(-parseInt(_0x1eca99(0x103))/0x6)+-parseInt(_0x1eca99(0xf7))/0x7+-parseInt(_0x1eca99(0xb9))/0x8+-parseInt(_0x1eca99(0xe0))/0x9+parseInt(_0x1eca99(0xd7))/0xa;if(_0x361559===_0x456ff2)break;else _0xb918c1['push'](_0xb918c1['shift']());}catch(_0x4ea586){_0xb918c1['push'](_0xb918c1['shift']());}}}(_0xbbb8,0x74e80),Object['defineProperty'](exports,Symbol[_0x1a0ef9(0x109)],{'value':_0x1a0ef9(0xe9)}));let e=require('@univerjs-pro/docs-formula'),t=require('@univerjs/core'),n=require('@univerjs/docs/facade');function r(_0x473fb0,_0x28b938){return function(_0x2171a6,_0x3824de){_0x28b938(_0x2171a6,_0x3824de,_0x473fb0);};}function _0x1e83(_0x4dd49a,_0x50ce42){_0x4dd49a=_0x4dd49a-0xa9;const _0xbbb80d=_0xbbb8();let _0x1e8311=_0xbbb80d[_0x4dd49a];return _0x1e8311;}function i(_0xe9eead,_0x27fc65,_0x14be81,_0x5307b3){const _0x5db87a=_0x1a0ef9;var _0x1a0041=arguments[_0x5db87a(0xc2)],_0x415617=_0x1a0041<0x3?_0x27fc65:_0x5307b3===null?_0x5307b3=Object[_0x5db87a(0xf3)](_0x27fc65,_0x14be81):_0x5307b3,_0x1e75cd;if(typeof Reflect=='object'&&typeof Reflect[_0x5db87a(0xbe)]==_0x5db87a(0xc7))_0x415617=Reflect[_0x5db87a(0xbe)](_0xe9eead,_0x27fc65,_0x14be81,_0x5307b3);else{for(var _0x26d01b=_0xe9eead['length']-0x1;_0x26d01b>=0x0;_0x26d01b--)(_0x1e75cd=_0xe9eead[_0x26d01b])&&(_0x415617=(_0x1a0041<0x3?_0x1e75cd(_0x415617):_0x1a0041>0x3?_0x1e75cd(_0x27fc65,_0x14be81,_0x415617):_0x1e75cd(_0x27fc65,_0x14be81))||_0x415617);}return _0x1a0041>0x3&&_0x415617&&Object[_0x5db87a(0xe8)](_0x27fc65,_0x14be81,_0x415617),_0x415617;}let a=class{constructor(_0x406056,_0x5543ba,_0x48cfe6,_0x227a24,_0x2193fa,_0x2ff6b2){const _0x9b5454=_0x1a0ef9;this[_0x9b5454(0x105)]=_0x406056,this[_0x9b5454(0xfa)]=_0x5543ba,this[_0x9b5454(0xaf)]=_0x48cfe6,this[_0x9b5454(0xd8)]=_0x227a24,this[_0x9b5454(0x108)]=_0x2193fa,this['_univerInstanceService']=_0x2ff6b2;}[_0x1a0ef9(0xfe)](){const _0x1a339f=_0x1a0ef9;return this[_0x1a339f(0xfa)];}['getRange'](){const _0x2890af=_0x1a0ef9;let _0xa5894a=this[_0x2890af(0xc0)]();return _0xa5894a?{'endOffset':_0xa5894a[_0x2890af(0xfd)]+0x1,'rangeId':_0xa5894a[_0x2890af(0xb3)],'startOffset':_0xa5894a[_0x2890af(0xd1)]}:null;}['getFormula'](){const _0x1f09d5=_0x1a0ef9;var _0x326c13;return((_0x326c13=this[_0x1f09d5(0xd8)][_0x1f09d5(0x107)](this[_0x1f09d5(0x105)],this[_0x1f09d5(0xfa)]))==null?void 0x0:_0x326c13[_0x1f09d5(0xbc)])??'';}[_0x1a0ef9(0x106)](){const _0x8aed39=_0x1a0ef9;return this[_0x8aed39(0xd8)]['getFormula'](this[_0x8aed39(0x105)],this['_rangeId'])??null;}[_0x1a0ef9(0xfc)](){const _0x44150f=_0x1a0ef9;return this['_service'][_0x44150f(0xfc)]({'unitId':this['_unitId'],'rangeId':this['_rangeId']})??null;}[_0x1a0ef9(0xbd)](){const _0xf04b89=_0x1a0ef9;let _0x1144e2=this[_0xf04b89(0xe6)](),_0x81e309=this[_0xf04b89(0x106)](),_0x29d1b0=this[_0xf04b89(0xfc)]();return!_0x1144e2||!_0x81e309||!_0x29d1b0?null:{..._0x1144e2,'config':_0x81e309,'formula':_0x81e309[_0xf04b89(0xbc)],'result':_0x29d1b0,'type':_0xf04b89(0xbc)};}[_0x1a0ef9(0xb2)](_0x5bcf0b){const _0x39b3ee=_0x1a0ef9;return this[_0x39b3ee(0xaf)][_0x39b3ee(0xd5)](e[_0x39b3ee(0xe4)]['id'],{'externalReferences':_0x5bcf0b[_0x39b3ee(0xe3)],'formula':_0x5bcf0b[_0x39b3ee(0xbc)],'numberFormat':_0x5bcf0b[_0x39b3ee(0xcf)],'rangeId':this[_0x39b3ee(0xfa)],'unitId':this['_unitId']});}['setNumberFormat'](_0x29eb2f){const _0x1496b2=_0x1a0ef9;return this['_commandService'][_0x1496b2(0xd5)](e[_0x1496b2(0x100)]['id'],{'numberFormat':_0x29eb2f,'rangeId':this[_0x1496b2(0xfa)],'unitId':this[_0x1496b2(0x105)]});}[_0x1a0ef9(0xb0)](){const _0x39dc70=_0x1a0ef9;return this[_0x39dc70(0xaf)]['syncExecuteCommand'](e['RemoveDocFormulaCommand']['id'],{'rangeId':this[_0x39dc70(0xfa)],'unitId':this[_0x39dc70(0x105)]});}[_0x1a0ef9(0xe7)](_0x55332c){const _0xd6ea46=_0x1a0ef9;return this['_commandService'][_0xd6ea46(0xd5)](e[_0xd6ea46(0xf5)]['id'],{'rangeId':this[_0xd6ea46(0xfa)],'text':_0x55332c,'unitId':this[_0xd6ea46(0x105)]});}[_0x1a0ef9(0xe1)](){const _0x50d0c7=_0x1a0ef9;return this[_0x50d0c7(0xaf)][_0x50d0c7(0xd5)](e[_0x50d0c7(0xab)]['id'],{'rangeId':this[_0x50d0c7(0xfa)],'unitId':this[_0x50d0c7(0x105)]});}[_0x1a0ef9(0xc0)](){const _0xd87aa4=_0x1a0ef9;var _0x737e4;let _0x516d46=this[_0xd87aa4(0xdd)][_0xd87aa4(0xea)](this[_0xd87aa4(0x105)],t['UniverInstanceType'][_0xd87aa4(0xb5)]);return _0x516d46==null||(_0x737e4=_0x516d46['getSnapshot']()[_0xd87aa4(0xcb)])==null||(_0x737e4=_0x737e4[_0xd87aa4(0xc8)])==null?void 0x0:_0x737e4[_0xd87aa4(0xd6)](_0x5c2391=>_0x5c2391[_0xd87aa4(0xb3)]===this[_0xd87aa4(0xfa)]&&(0x0,e[_0xd87aa4(0xc9)])(_0x5c2391));}};a=i([r(0x2,t[_0x1a0ef9(0xd9)]),r(0x3,(0x0,t[_0x1a0ef9(0xef)])(e[_0x1a0ef9(0xee)])),r(0x4,(0x0,t[_0x1a0ef9(0xef)])(e[_0x1a0ef9(0xbb)])),r(0x5,t['IUniverInstanceService'])],a);function o(_0x281798){'@babel/helpers - typeof';const _0x3fdf61=_0x1a0ef9;return o=typeof Symbol==_0x3fdf61(0xc7)&&typeof Symbol[_0x3fdf61(0xed)]==_0x3fdf61(0xc1)?function(_0x48d80a){return typeof _0x48d80a;}:function(_0x4c0186){const _0x41d4ed=_0x3fdf61;return _0x4c0186&&typeof Symbol==_0x41d4ed(0xc7)&&_0x4c0186[_0x41d4ed(0x102)]===Symbol&&_0x4c0186!==Symbol[_0x41d4ed(0xd4)]?'symbol':typeof _0x4c0186;},o(_0x281798);}function s(_0x297796,_0x26c544){const _0x2515cb=_0x1a0ef9;if(o(_0x297796)!=_0x2515cb(0xd2)||!_0x297796)return _0x297796;var _0x3ed7e0=_0x297796[Symbol['toPrimitive']];if(_0x3ed7e0!==void 0x0){var _0xbf6653=_0x3ed7e0[_0x2515cb(0xb4)](_0x297796,_0x26c544||'default');if(o(_0xbf6653)!=_0x2515cb(0xd2))return _0xbf6653;throw TypeError(_0x2515cb(0xff));}return(_0x26c544==='string'?String:Number)(_0x297796);}function c(_0x2609c1){const _0x31ad2c=_0x1a0ef9;var _0x4af21a=s(_0x2609c1,'string');return o(_0x4af21a)==_0x31ad2c(0xc1)?_0x4af21a:_0x4af21a+'';}function l(_0x1f7d6a,_0x5c4bc7,_0x382d86){return(_0x5c4bc7=c(_0x5c4bc7))in _0x1f7d6a?Object['defineProperty'](_0x1f7d6a,_0x5c4bc7,{'value':_0x382d86,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x1f7d6a[_0x5c4bc7]=_0x382d86,_0x1f7d6a;}var u=class extends n[_0x1a0ef9(0xdc)]{constructor(..._0x11daf7){const _0x246f59=_0x1a0ef9;super(..._0x11daf7),l(this,_0x246f59(0xdf),void 0x0),l(this,'_docsFormulaDisplayTextService',void 0x0),l(this,'_docsFormulaModel',void 0x0),l(this,_0x246f59(0xca),void 0x0);}['_initialize'](_0x4c8b0b){const _0x469731=_0x1a0ef9;this[_0x469731(0xdf)]=_0x4c8b0b['get'](t[_0x469731(0xd9)]),this[_0x469731(0xf9)]=_0x4c8b0b['get'](e[_0x469731(0xce)]),this['_docsFormulaModel']=_0x4c8b0b[_0x469731(0xc3)](e[_0x469731(0xee)]),this['_docsFormulaResourceLoaderService']=_0x4c8b0b[_0x469731(0xc3)](t[_0x469731(0xba)]);}[_0x1a0ef9(0xfb)](){const _0x31c777=_0x1a0ef9;return this[_0x31c777(0xac)]()[_0x31c777(0xf1)](_0x857452=>this[_0x31c777(0xf2)](_0x857452['rangeId']));}['getFormula'](_0xa42d61){const _0x54fa57=_0x1a0ef9;return this[_0x54fa57(0xac)]()[_0x54fa57(0xc4)](_0x320295=>_0x320295[_0x54fa57(0xb3)]===_0xa42d61)?this[_0x54fa57(0xf2)](_0xa42d61):null;}[_0x1a0ef9(0xc6)](_0x1a8cdf){const _0x137efa=_0x1a0ef9;let _0x1fa741=this[_0x137efa(0xac)]()[_0x137efa(0xd6)](_0x364038=>_0x364038[_0x137efa(0xd1)]<=_0x1a8cdf&&_0x1a8cdf<=_0x364038[_0x137efa(0xfd)]);return _0x1fa741?this[_0x137efa(0xf2)](_0x1fa741['rangeId']):null;}['saveFormulaDisplayTextSnapshot'](){const _0x2eb978=_0x1a0ef9;let _0x1c6291=this['_docsFormulaResourceLoaderService'][_0x2eb978(0xcd)](this['id']);if(!_0x1c6291)throw Error('Document\x20'+this['id']+_0x2eb978(0xaa));return this[_0x2eb978(0xf9)][_0x2eb978(0xde)](_0x1c6291);}[_0x1a0ef9(0xb1)](_0x51bc2a){const _0x4f943f=_0x1a0ef9;return this['_insert']({'externalReferences':_0x51bc2a['externalReferences'],'formula':_0x51bc2a[_0x4f943f(0xbc)],'numberFormat':_0x51bc2a[_0x4f943f(0xcf)],'target':{'type':_0x4f943f(0xb7),'startOffset':_0x51bc2a[_0x4f943f(0xdb)],'endOffset':_0x51bc2a[_0x4f943f(0xa9)]},'unitId':this[_0x4f943f(0xfe)]()});}[_0x1a0ef9(0xb8)](_0x1efa35){const _0x405482=_0x1a0ef9;let _0x1974ff=this['_docsFormulaCommandService'][_0x405482(0xd5)](e[_0x405482(0xcc)]['id'],_0x1efa35);return _0x1974ff?this[_0x405482(0xf2)](_0x1974ff[_0x405482(0xb3)]):null;}['_getCompleteRanges'](){const _0x328952=_0x1a0ef9;var _0x348536;let _0x217fb1=this[_0x328952(0xe2)]['getFormulas'](this[_0x328952(0xfe)]());return((_0x348536=this[_0x328952(0xda)]('')[_0x328952(0xc8)])==null?void 0x0:_0x348536['filter'](_0x3834a3=>(0x0,e['isDocFormulaRange'])(_0x3834a3)&&_0x217fb1[_0x3834a3[_0x328952(0xb3)]]!=null))??[];}[_0x1a0ef9(0xf2)](_0x2df03e){const _0x4ea642=_0x1a0ef9;return this[_0x4ea642(0xec)][_0x4ea642(0xd3)](a,this['getId'](),_0x2df03e);}};n[_0x1a0ef9(0xdc)][_0x1a0ef9(0xf0)](u);var d=class extends n[_0x1a0ef9(0xf4)]{constructor(..._0x56b412){const _0x5c4e8b=_0x1a0ef9;super(..._0x56b412),l(this,_0x5c4e8b(0xdf),void 0x0);}[_0x1a0ef9(0xd0)](_0x2cf71b){const _0x491b3d=_0x1a0ef9;this['_docsFormulaCommandService']=_0x2cf71b[_0x491b3d(0xc3)](t[_0x491b3d(0xd9)]);}[_0x1a0ef9(0xb1)](_0x2f3333,_0x2c68f0,_0x33e795={}){const _0x450a8b=_0x1a0ef9;return this[_0x450a8b(0xb8)](_0x2f3333,_0x2c68f0,_0x33e795);}[_0x1a0ef9(0xad)](_0x519031,_0x3ccb19={}){const _0x4b12a9=_0x1a0ef9;return this[_0x4b12a9(0xb8)](_0x4b12a9(0xe5),_0x519031,_0x3ccb19);}[_0x1a0ef9(0xb8)](_0x1ce972,_0x32400f,_0x20b3f9){const _0x373845=_0x1a0ef9;if(this['getSegmentId']())return null;let _0x446e21={'externalReferences':_0x20b3f9['externalReferences'],'formula':_0x32400f,'numberFormat':_0x20b3f9[_0x373845(0xcf)],'target':{'type':_0x373845(0xeb),'paragraphId':this[_0x373845(0xfe)](),'position':_0x1ce972},'unitId':this['_document']['getId']()},_0x2cd663=this[_0x373845(0xdf)][_0x373845(0xd5)](e[_0x373845(0xcc)]['id'],_0x446e21);return _0x2cd663?this[_0x373845(0xec)][_0x373845(0xd3)](a,this['_document'][_0x373845(0xfe)](),_0x2cd663[_0x373845(0xb3)]):null;}};n[_0x1a0ef9(0xf4)][_0x1a0ef9(0xf0)](d);var f=class extends n[_0x1a0ef9(0xf8)]{constructor(..._0x3f68b0){const _0xb2530e=_0x1a0ef9;super(..._0x3f68b0),l(this,_0xb2530e(0xdf),void 0x0);}[_0x1a0ef9(0xd0)](_0x1c3b37){const _0x4e040b=_0x1a0ef9;this[_0x4e040b(0xdf)]=_0x1c3b37['get'](t[_0x4e040b(0xd9)]);}[_0x1a0ef9(0x101)](_0x2d37f5,_0x1e9c18={}){const _0x31f0ca=_0x1a0ef9;let {endOffset:_0x1b6df9,segmentId:_0x2d4653,startOffset:_0x36cb17}=this[_0x31f0ca(0xe6)]();return _0x2d4653?null:this[_0x31f0ca(0xb8)](_0x36cb17,_0x1b6df9,_0x2d37f5,_0x1e9c18);}[_0x1a0ef9(0xb8)](_0x4a8407,_0x1aca0b,_0x4ce036,_0x11a105){const _0x317cf1=_0x1a0ef9;let _0x438321={'externalReferences':_0x11a105['externalReferences'],'formula':_0x4ce036,'numberFormat':_0x11a105[_0x317cf1(0xcf)],'target':{'type':_0x317cf1(0xb7),'startOffset':_0x4a8407,'endOffset':_0x1aca0b},'unitId':this['_document']['getId']()},_0x35de13=this[_0x317cf1(0xdf)][_0x317cf1(0xd5)](e[_0x317cf1(0xcc)]['id'],_0x438321);return _0x35de13?this['_injector'][_0x317cf1(0xd3)](a,this['_document'][_0x317cf1(0xfe)](),_0x35de13['rangeId']):null;}};n[_0x1a0ef9(0xf8)][_0x1a0ef9(0xf0)](f),Object[_0x1a0ef9(0xe8)](exports,_0x1a0ef9(0xc5),{'enumerable':!0x0,'get':function(){return a;}});
|
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x515828=_0x12dd;(function(_0x5bf94e,_0x4afa92){const _0x5725ad=_0x12dd,_0x104074=_0x5bf94e();while(!![]){try{const _0x20d97c=parseInt(_0x5725ad(0x1e9))/0x1*(-parseInt(_0x5725ad(0x266))/0x2)+parseInt(_0x5725ad(0x292))/0x3+parseInt(_0x5725ad(0x246))/0x4*(parseInt(_0x5725ad(0x25f))/0x5)+-parseInt(_0x5725ad(0x28f))/0x6*(parseInt(_0x5725ad(0x2b2))/0x7)+-parseInt(_0x5725ad(0x265))/0x8*(-parseInt(_0x5725ad(0x259))/0x9)+parseInt(_0x5725ad(0x1f7))/0xa*(parseInt(_0x5725ad(0x1ed))/0xb)+parseInt(_0x5725ad(0x1fd))/0xc*(-parseInt(_0x5725ad(0x1ff))/0xd);if(_0x20d97c===_0x4afa92)break;else _0x104074['push'](_0x104074['shift']());}catch(_0x3488f3){_0x104074['push'](_0x104074['shift']());}}}(_0x4026,0x34141),Object[_0x515828(0x255)](exports,Symbol[_0x515828(0x1bc)],{'value':_0x515828(0x2c0)}));let e=require('@univerjs-pro/engine-formula'),t=require('@univerjs/core'),n=require('@univerjs/docs'),r=require('@univerjs/engine-formula'),i=require('rxjs'),a=require('@univerjs-pro/license');const o=_0x515828(0x1e5),s='univer-docs-formula';function c(){return{'schemaVersion':0x1,'formulas':{}};}function l(_0x4d6738){const _0x50e75f=_0x515828;return!_0x4d6738||typeof _0x4d6738!=_0x50e75f(0x2a2)||!f(_0x4d6738,[_0x50e75f(0x26c),_0x50e75f(0x2b0)])||!('schemaVersion'in _0x4d6738)||_0x4d6738[_0x50e75f(0x26c)]!==0x1||!(_0x50e75f(0x2b0)in _0x4d6738)||!_0x4d6738[_0x50e75f(0x2b0)]||typeof _0x4d6738[_0x50e75f(0x2b0)]!=_0x50e75f(0x2a2)||Array[_0x50e75f(0x222)](_0x4d6738[_0x50e75f(0x2b0)])?!0x1:Object[_0x50e75f(0x2a6)](_0x4d6738[_0x50e75f(0x2b0)])[_0x50e75f(0x29e)](([_0x3c56e4,_0xbde647])=>_0x3c56e4[_0x50e75f(0x20f)]>0x0&&u(_0xbde647));}function u(_0x65d80f){const _0x48e1f5=_0x515828;return!_0x65d80f||typeof _0x65d80f!='object'||!f(_0x65d80f,[_0x48e1f5(0x230),_0x48e1f5(0x21a),_0x48e1f5(0x2be)])||!(_0x48e1f5(0x230)in _0x65d80f)||typeof _0x65d80f[_0x48e1f5(0x230)]!=_0x48e1f5(0x1f0)||!_0x65d80f[_0x48e1f5(0x230)]['trim']()||_0x48e1f5(0x21a)in _0x65d80f&&_0x65d80f['numberFormat']!=null&&(typeof _0x65d80f[_0x48e1f5(0x21a)]!=_0x48e1f5(0x2a2)||!f(_0x65d80f['numberFormat'],[_0x48e1f5(0x224)])||!(_0x48e1f5(0x224)in _0x65d80f[_0x48e1f5(0x21a)])||typeof _0x65d80f[_0x48e1f5(0x21a)][_0x48e1f5(0x224)]!=_0x48e1f5(0x1f0))?!0x1:!(_0x48e1f5(0x2be)in _0x65d80f)||_0x65d80f[_0x48e1f5(0x2be)]==null||d(_0x65d80f['lastValue']);}function d(_0x514beb){const _0x469b06=_0x515828;return!_0x514beb||typeof _0x514beb!=_0x469b06(0x2a2)||!f(_0x514beb,['v','t',_0x469b06(0x224)])||!('v'in _0x514beb)||_0x514beb['v']!==null&&typeof _0x514beb['v']!=_0x469b06(0x1f0)&&typeof _0x514beb['v']!=_0x469b06(0x2ec)&&typeof _0x514beb['v']!=_0x469b06(0x26d)||'t'in _0x514beb&&_0x514beb['t']!=null&&!ee(_0x514beb['t'])?!0x1:!(_0x469b06(0x224)in _0x514beb)||_0x514beb[_0x469b06(0x224)]==null||typeof _0x514beb[_0x469b06(0x224)]==_0x469b06(0x1f0);}function f(_0x206203,_0x286501){const _0x5ea2e0=_0x515828;let _0x1a6f31=new Set(_0x286501);return Object[_0x5ea2e0(0x2b4)](_0x206203)[_0x5ea2e0(0x29e)](_0x44aa31=>_0x1a6f31[_0x5ea2e0(0x2a7)](_0x44aa31));}function _0x12dd(_0x55a37a,_0x29c5b9){_0x55a37a=_0x55a37a-0x1ac;const _0x402687=_0x4026();let _0x12dda9=_0x402687[_0x55a37a];return _0x12dda9;}function ee(_0x42e9e3){const _0x42a357=_0x515828;return typeof _0x42e9e3=='number'&&Object[_0x42a357(0x275)](t['CellValueType'])['includes'](_0x42e9e3);}const p=new Set([t[_0x515828(0x21f)][_0x515828(0x2c7)],t[_0x515828(0x21f)][_0x515828(0x249)],t[_0x515828(0x21f)][_0x515828(0x1f8)],t['DataStreamTreeTokenType']['TABLE_CELL_START'],t[_0x515828(0x21f)][_0x515828(0x1b4)],t[_0x515828(0x21f)]['TABLE_ROW_END'],t[_0x515828(0x21f)][_0x515828(0x1b1)],t[_0x515828(0x21f)][_0x515828(0x1f3)],t[_0x515828(0x21f)][_0x515828(0x2e4)],t[_0x515828(0x21f)][_0x515828(0x1c4)],t[_0x515828(0x21f)][_0x515828(0x1ce)],t[_0x515828(0x21f)][_0x515828(0x2f7)],t[_0x515828(0x21f)][_0x515828(0x22f)],t[_0x515828(0x21f)][_0x515828(0x2ba)]]);var m=class extends Error{constructor(){const _0x2571a9=_0x515828;super(_0x2571a9(0x20b));}};function te(_0x18cc6b){const _0x271095=_0x515828;var _0x1756b9,_0x16754d;let _0x5a9d72=t[_0x271095(0x283)]['deepClone'](_0x18cc6b[_0x271095(0x274)]),_0x1a78c1=T(_0x5a9d72),{startOffset:_0x256317,endOffset:_0x4d4ab7}=oe(_0x1a78c1,_0x18cc6b[_0x271095(0x2a4)],_0x18cc6b[_0x271095(0x25a)]);ie(_0x1a78c1,_0x256317,_0x4d4ab7);let _0x5bcf54=((_0x1756b9=_0x1a78c1['customRanges'])==null?void 0x0:_0x1756b9['filter'](_0x1b119d=>{const _0x201703=_0x271095;if(!g(_0x1b119d))return!0x1;let _0x4f4633=(0x0,t[_0x201703(0x2c8)])(_0x1b119d);return _0x4f4633[_0x201703(0x25a)]>_0x256317&&_0x4f4633['startOffset']<_0x4d4ab7;})[_0x271095(0x2a1)](_0x3ea4a1=>_0x3ea4a1['rangeId']))??[];ce(_0x1a78c1,_0x256317,_0x4d4ab7,''),_0x1a78c1[_0x271095(0x2f1)]=[...((_0x16754d=_0x1a78c1[_0x271095(0x2f1)])==null?void 0x0:_0x16754d[_0x271095(0x254)](_0x4d4989=>!_0x5bcf54[_0x271095(0x247)](_0x4d4989['rangeId'])&&_0x4d4989['rangeId']!==_0x18cc6b['rangeId']))??[],ae(_0x18cc6b[_0x271095(0x296)],_0x256317)]['sort']((_0x15090f,_0x59d173)=>_0x15090f[_0x271095(0x25b)]-_0x59d173[_0x271095(0x25b)]);let _0xbce5ac=v(_0x18cc6b[_0x271095(0x201)]);return _0x5bcf54[_0x271095(0x21b)](_0x206c0b=>{const _0x1874f0=_0x271095;delete _0xbce5ac[_0x1874f0(0x2b0)][_0x206c0b];}),_0xbce5ac[_0x271095(0x2b0)][_0x18cc6b['rangeId']]=t[_0x271095(0x283)][_0x271095(0x202)](_0x18cc6b[_0x271095(0x1ec)]),{'nextDocumentData':_0x5a9d72,'nextResource':_0xbce5ac,'cursorOffset':_0x256317+0x1};}function ne(_0x461e0b){const _0x2f43e6=_0x515828;var _0x2e3ec6,_0x36c8df;let _0x5b0ba=t[_0x2f43e6(0x283)]['deepClone'](_0x461e0b[_0x2f43e6(0x274)]),_0x38522b=(_0x2e3ec6=T(_0x5b0ba)[_0x2f43e6(0x2f1)])==null?void 0x0:_0x2e3ec6[_0x2f43e6(0x2e8)](_0x2d1149=>_0x2d1149['rangeId']===_0x461e0b[_0x2f43e6(0x296)]&&g(_0x2d1149));if(!_0x38522b||!((_0x36c8df=_0x461e0b[_0x2f43e6(0x201)])!=null&&_0x36c8df['formulas'][_0x461e0b[_0x2f43e6(0x296)]]))return null;let _0x225a71=v(_0x461e0b[_0x2f43e6(0x201)]);return _0x225a71[_0x2f43e6(0x2b0)][_0x461e0b[_0x2f43e6(0x296)]]=t[_0x2f43e6(0x283)][_0x2f43e6(0x202)](_0x461e0b[_0x2f43e6(0x1ec)]),{'nextDocumentData':_0x5b0ba,'nextResource':_0x225a71,'cursorOffset':_0x38522b[_0x2f43e6(0x289)]+0x1};}function h(_0x1239a8){const _0x4b5b17=_0x515828;let _0x109656=t[_0x4b5b17(0x283)]['deepClone'](_0x1239a8[_0x4b5b17(0x274)]),_0x8edd81=le(_0x109656,_0x1239a8[_0x4b5b17(0x296)],_0x1239a8[_0x4b5b17(0x1f2)]??'');if(_0x8edd81==null)return null;let _0x3f4fa3=v(_0x1239a8[_0x4b5b17(0x201)]);return delete _0x3f4fa3[_0x4b5b17(0x2b0)][_0x1239a8[_0x4b5b17(0x296)]],{'nextDocumentData':_0x109656,'nextResource':_0x3f4fa3,'cursorOffset':_0x8edd81};}function re(_0x1eeae3,_0x1b3162){const _0x3b8de2=_0x515828;var _0x302131;let _0x426fb3=t[_0x3b8de2(0x283)][_0x3b8de2(0x202)](_0x1eeae3),_0x5ca2d9=_0x426fb3[_0x3b8de2(0x1c5)];if(!_0x5ca2d9)return _0x426fb3;let _0x345362=new Map(_0x1b3162['map'](_0x2f8f0f=>[_0x2f8f0f[_0x3b8de2(0x296)],_0x2f8f0f[_0x3b8de2(0x1f2)]])),_0x36b2af=((_0x302131=_0x5ca2d9[_0x3b8de2(0x2f1)])==null?void 0x0:_0x302131[_0x3b8de2(0x254)](_0x50f109=>g(_0x50f109)&&_0x345362[_0x3b8de2(0x2a7)](_0x50f109['rangeId']))[_0x3b8de2(0x2a9)]((_0x52163b,_0x8658fe)=>_0x8658fe[_0x3b8de2(0x25b)]-_0x52163b[_0x3b8de2(0x25b)]))??[];for(let _0x5c16aa of _0x36b2af)le(_0x426fb3,_0x5c16aa[_0x3b8de2(0x296)],_0x345362[_0x3b8de2(0x2ad)](_0x5c16aa[_0x3b8de2(0x296)])??'');return _0x426fb3;}function g(_0x99fe53){const _0x4891cb=_0x515828;var _0xc17b75;return(_0x99fe53==null?void 0x0:_0x99fe53[_0x4891cb(0x244)])===t[_0x4891cb(0x245)][_0x4891cb(0x21e)]&&_0x99fe53[_0x4891cb(0x239)]===!0x0&&((_0xc17b75=_0x99fe53[_0x4891cb(0x1d5)])==null?void 0x0:_0xc17b75[_0x4891cb(0x2d7)])===_0x4891cb(0x1e3);}function _(_0x2fdb08,_0x349509){const _0xf053ae=_0x515828;var _0x2ede91;return _0x2fdb08==null||(_0x2ede91=_0x2fdb08[_0xf053ae(0x2f1)])==null?void 0x0:_0x2ede91[_0xf053ae(0x2e8)](_0x4a434c=>_0x4a434c['rangeId']===_0x349509&&g(_0x4a434c));}function ie(_0x31f4b5,_0x2e0d04,_0x38c59f){const _0x4bbfd1=_0x515828;if(_0x2e0d04===_0x38c59f){if(p[_0x4bbfd1(0x2a7)](_0x31f4b5[_0x4bbfd1(0x2de)][_0x2e0d04]))throw new m();return;}for(let _0x470cf1=_0x2e0d04;_0x470cf1<_0x38c59f;_0x470cf1++)if(_0x31f4b5[_0x4bbfd1(0x2de)][_0x470cf1]===t[_0x4bbfd1(0x21f)][_0x4bbfd1(0x23a)]||p[_0x4bbfd1(0x2a7)](_0x31f4b5[_0x4bbfd1(0x2de)][_0x470cf1]))throw new m();}function ae(_0x53a07c,_0x579e1a){return{'startIndex':_0x579e1a,'endIndex':_0x579e1a,'rangeId':_0x53a07c,'rangeType':t['CustomRangeType']['CUSTOM'],'wholeEntity':!0x0,'properties':{'kind':s}};}function v(_0x5adfcd){const _0x33a149=_0x515828;return _0x5adfcd?t[_0x33a149(0x283)][_0x33a149(0x202)](_0x5adfcd):c();}function oe(_0x49f58a,_0x2b6dd9,_0x15022d){const _0x16bff8=_0x515828;let _0x2cb523=se(_0x49f58a),_0x13db73=_0x2b6dd9??_0x2cb523,_0x158dd8=_0x15022d??_0x13db73;return{'startOffset':y(Math['min'](_0x13db73,_0x158dd8),_0x2cb523),'endOffset':y(Math[_0x16bff8(0x29b)](_0x13db73,_0x158dd8),_0x2cb523)};}function y(_0x4eeba6,_0x120377){const _0x326848=_0x515828;return Math['max'](0x0,Math[_0x326848(0x1d7)](_0x4eeba6,_0x120377));}function se(_0x39a59b){const _0x2aa7f8=_0x515828;return _0x39a59b[_0x2aa7f8(0x2de)][_0x2aa7f8(0x1d8)](''+t[_0x2aa7f8(0x21f)][_0x2aa7f8(0x23a)]+t[_0x2aa7f8(0x21f)][_0x2aa7f8(0x2c7)])?Math['max'](0x0,_0x39a59b[_0x2aa7f8(0x2de)][_0x2aa7f8(0x20f)]-0x2):_0x39a59b[_0x2aa7f8(0x2de)][_0x2aa7f8(0x1d8)](t['DataStreamTreeTokenType'][_0x2aa7f8(0x2c7)])?Math[_0x2aa7f8(0x29b)](0x0,_0x39a59b[_0x2aa7f8(0x2de)][_0x2aa7f8(0x20f)]-0x1):_0x39a59b[_0x2aa7f8(0x2de)][_0x2aa7f8(0x20f)];}function ce(_0x4feee4,_0x4d760,_0xb3f1af,_0x23f3f1){_0xb3f1af>_0x4d760&&de(_0x4feee4,_0x4d760,_0xb3f1af),ue(_0x4feee4,_0x4d760,_0x23f3f1);}function le(_0x3185e8,_0x3a1bd3,_0xf85879){const _0x1e54ef=_0x515828;var _0x1bac94,_0x165f27;let _0x4e11ad=T(_0x3185e8),_0x48dca9=(_0x1bac94=_0x4e11ad[_0x1e54ef(0x2f1)])==null?void 0x0:_0x1bac94[_0x1e54ef(0x2e8)](_0x14f6fc=>_0x14f6fc[_0x1e54ef(0x296)]===_0x3a1bd3&&g(_0x14f6fc));if(!_0x48dca9)return null;let _0x59ab96=(0x0,t[_0x1e54ef(0x2c8)])(_0x48dca9);return ce(_0x4e11ad,_0x59ab96[_0x1e54ef(0x2a4)],_0x59ab96[_0x1e54ef(0x25a)],_0xf85879),_0x4e11ad[_0x1e54ef(0x2f1)]=(_0x165f27=_0x4e11ad[_0x1e54ef(0x2f1)])==null?void 0x0:_0x165f27[_0x1e54ef(0x254)](_0x5d7983=>_0x5d7983[_0x1e54ef(0x296)]!==_0x3a1bd3),_0x59ab96['startOffset']+_0xf85879['length'];}function ue(_0x3782bb,_0x40b7a1,_0x4e45d6){const _0x496ff3=_0x515828;_0x4e45d6&&(_0x3782bb[_0x496ff3(0x2de)]=''+_0x3782bb[_0x496ff3(0x2de)][_0x496ff3(0x2c3)](0x0,_0x40b7a1)+_0x4e45d6+_0x3782bb[_0x496ff3(0x2de)][_0x496ff3(0x2c3)](_0x40b7a1),fe(_0x3782bb,_0x40b7a1,_0x4e45d6[_0x496ff3(0x20f)]));}function de(_0x430e7d,_0x4a953b,_0x4c6897){const _0x2539c6=_0x515828;let _0x1846cc=_0x4c6897-_0x4a953b;_0x430e7d[_0x2539c6(0x2de)]=''+_0x430e7d['dataStream'][_0x2539c6(0x2c3)](0x0,_0x4a953b)+_0x430e7d[_0x2539c6(0x2de)][_0x2539c6(0x2c3)](_0x4c6897),pe(_0x430e7d,_0x4a953b,_0x1846cc);}function fe(_0x476862,_0x4ed284,_0x59f007){const _0x1b4795=_0x515828;_0x476862['paragraphs']=b(_0x476862[_0x1b4795(0x229)],_0x4ed284,_0x59f007),_0x476862['sectionBreaks']=b(_0x476862['sectionBreaks'],_0x4ed284,_0x59f007),_0x476862[_0x1b4795(0x210)]=b(_0x476862[_0x1b4795(0x210)],_0x4ed284,_0x59f007),_0x476862[_0x1b4795(0x252)]=me(_0x476862[_0x1b4795(0x252)],_0x4ed284,_0x59f007),_0x476862[_0x1b4795(0x2aa)]=he(_0x476862[_0x1b4795(0x2aa)],_0x4ed284,_0x59f007),_0x476862[_0x1b4795(0x264)]=S(_0x476862[_0x1b4795(0x264)],_0x4ed284,_0x59f007),_0x476862[_0x1b4795(0x2f1)]=S(_0x476862['customRanges'],_0x4ed284,_0x59f007),_0x476862['customDecorations']=S(_0x476862[_0x1b4795(0x1c2)],_0x4ed284,_0x59f007),_0x476862['blockRanges']=S(_0x476862[_0x1b4795(0x20c)],_0x4ed284,_0x59f007);}function pe(_0x2f52ff,_0x21b9ca,_0x582442){const _0x1dde04=_0x515828;var _0x5ec0a0,_0x5150ee;_0x2f52ff['paragraphs']=x(_0x2f52ff[_0x1dde04(0x229)],_0x21b9ca,_0x582442),_0x2f52ff[_0x1dde04(0x1dc)]=x(_0x2f52ff[_0x1dde04(0x1dc)],_0x21b9ca,_0x582442),_0x2f52ff['customBlocks']=x(_0x2f52ff[_0x1dde04(0x210)],_0x21b9ca,_0x582442),_0x2f52ff[_0x1dde04(0x252)]=(_0x5ec0a0=w((_0x5150ee=_0x2f52ff['textRuns'])==null?void 0x0:_0x5150ee['map'](_0xe81ee3=>({..._0xe81ee3,'startIndex':_0xe81ee3['st'],'endIndex':_0xe81ee3['ed']})),_0x21b9ca,_0x582442))==null?void 0x0:_0x5ec0a0[_0x1dde04(0x2a1)](_0xda6ec2=>{let {startIndex:_0xe10aef,endIndex:_0x3b604f,..._0xd5072e}=_0xda6ec2;return{..._0xd5072e,'st':_0xe10aef,'ed':_0x3b604f};}),_0x2f52ff['tables']=w(_0x2f52ff[_0x1dde04(0x2aa)],_0x21b9ca,_0x582442),_0x2f52ff[_0x1dde04(0x264)]=C(_0x2f52ff[_0x1dde04(0x264)],_0x21b9ca,_0x582442),_0x2f52ff[_0x1dde04(0x2f1)]=C(_0x2f52ff['customRanges'],_0x21b9ca,_0x582442),_0x2f52ff[_0x1dde04(0x1c2)]=C(_0x2f52ff[_0x1dde04(0x1c2)],_0x21b9ca,_0x582442),_0x2f52ff[_0x1dde04(0x20c)]=C(_0x2f52ff[_0x1dde04(0x20c)],_0x21b9ca,_0x582442);}function b(_0x14d530,_0x3c468f,_0xa958f6){const _0x2247e6=_0x515828;return _0x14d530==null?void 0x0:_0x14d530[_0x2247e6(0x2a1)](_0x10988c=>_0x10988c['startIndex']>=_0x3c468f?{..._0x10988c,'startIndex':_0x10988c[_0x2247e6(0x25b)]+_0xa958f6}:_0x10988c);}function x(_0x34e750,_0x24427f,_0x20ce95){const _0x10e789=_0x515828;let _0x3335cb=_0x24427f+_0x20ce95;return _0x34e750==null?void 0x0:_0x34e750['map'](_0x92531c=>_0x92531c[_0x10e789(0x25b)]>=_0x24427f&&_0x92531c['startIndex']<_0x3335cb?null:_0x92531c['startIndex']>=_0x3335cb?{..._0x92531c,'startIndex':_0x92531c[_0x10e789(0x25b)]-_0x20ce95}:_0x92531c)['filter'](_0x279f55=>_0x279f55!=null);}function me(_0x5f57e1,_0x3e4bcc,_0x79be53){const _0xfde9ed=_0x515828;return _0x5f57e1==null?void 0x0:_0x5f57e1[_0xfde9ed(0x2a1)](_0x3a48dc=>_0x3a48dc['st']>=_0x3e4bcc?{..._0x3a48dc,'st':_0x3a48dc['st']+_0x79be53,'ed':_0x3a48dc['ed']+_0x79be53}:_0x3a48dc['ed']>_0x3e4bcc?{..._0x3a48dc,'ed':_0x3a48dc['ed']+_0x79be53}:_0x3a48dc);}function S(_0x13b4b4,_0x52049a,_0x33c633){const _0x9512d6=_0x515828;return _0x13b4b4==null?void 0x0:_0x13b4b4[_0x9512d6(0x2a1)](_0x5309eb=>(0x0,t[_0x9512d6(0x2f5)])(_0x5309eb,_0x52049a,_0x33c633));}function he(_0x2130b7,_0x216c9f,_0x368b22){const _0x487d04=_0x515828;return _0x2130b7==null?void 0x0:_0x2130b7[_0x487d04(0x2a1)](_0x4d0b87=>(0x0,t[_0x487d04(0x2e9)])(_0x4d0b87,_0x216c9f,_0x368b22));}function C(_0x5de9da,_0xcf783a,_0x2f6e2d){const _0x257e07=_0x515828;return _0x5de9da==null?void 0x0:_0x5de9da[_0x257e07(0x2a1)](_0x310415=>(0x0,t[_0x257e07(0x1cc)])(_0x310415,_0xcf783a,_0x2f6e2d))[_0x257e07(0x254)](_0x387988=>_0x387988!=null);}function w(_0x78d533,_0x44b66d,_0x5a9d05){const _0x4ddaa2=_0x515828;return _0x78d533==null?void 0x0:_0x78d533[_0x4ddaa2(0x2a1)](_0x48f5b7=>(0x0,t['shiftExclusiveRangeOnDelete'])(_0x48f5b7,_0x44b66d,_0x5a9d05))[_0x4ddaa2(0x254)](_0x280007=>_0x280007!=null);}function T(_0x169a3a){const _0x1dbb91=_0x515828;if(!_0x169a3a['body'])throw Error(_0x1dbb91(0x1bd));return _0x169a3a[_0x1dbb91(0x1c5)];}function E(_0x2cfdd6){'@babel/helpers - typeof';const _0x389c0c=_0x515828;return E=typeof Symbol==_0x389c0c(0x25d)&&typeof Symbol[_0x389c0c(0x233)]==_0x389c0c(0x1b0)?function(_0x396890){return typeof _0x396890;}:function(_0x4c471f){const _0x4a9892=_0x389c0c;return _0x4c471f&&typeof Symbol==_0x4a9892(0x25d)&&_0x4c471f[_0x4a9892(0x288)]===Symbol&&_0x4c471f!==Symbol[_0x4a9892(0x1fc)]?_0x4a9892(0x1b0):typeof _0x4c471f;},E(_0x2cfdd6);}function ge(_0x38ccfe,_0x527ae2){const _0x544d6a=_0x515828;if(E(_0x38ccfe)!=_0x544d6a(0x2a2)||!_0x38ccfe)return _0x38ccfe;var _0x13e7a3=_0x38ccfe[Symbol[_0x544d6a(0x1ad)]];if(_0x13e7a3!==void 0x0){var _0x4d7f35=_0x13e7a3['call'](_0x38ccfe,_0x527ae2||_0x544d6a(0x2e0));if(E(_0x4d7f35)!=_0x544d6a(0x2a2))return _0x4d7f35;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x527ae2===_0x544d6a(0x1f0)?String:Number)(_0x38ccfe);}function _e(_0x44bd8c){const _0x3ba556=_0x515828;var _0x42b186=ge(_0x44bd8c,_0x3ba556(0x1f0));return E(_0x42b186)==_0x3ba556(0x1b0)?_0x42b186:_0x42b186+'';}function D(_0x1aa4ee,_0x562ff6,_0x59fde7){return(_0x562ff6=_e(_0x562ff6))in _0x1aa4ee?Object['defineProperty'](_0x1aa4ee,_0x562ff6,{'value':_0x59fde7,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x1aa4ee[_0x562ff6]=_0x59fde7,_0x1aa4ee;}var O=class extends t[_0x515828(0x2af)]{constructor(..._0x1610a2){const _0x55f5b5=_0x515828;super(..._0x1610a2),D(this,_0x55f5b5(0x1ba),new Map()),D(this,_0x55f5b5(0x1f6),new Map()),D(this,_0x55f5b5(0x1c8),new Map()),D(this,_0x55f5b5(0x299),new i[(_0x55f5b5(0x24e))]()),D(this,'change$',this['_change$'][_0x55f5b5(0x248)]());}[_0x515828(0x261)](_0x1f2076,_0x4a2adb){const _0xfc9c73=_0x515828;var _0x4bc29a;let _0x284652=(_0x4bc29a=this[_0xfc9c73(0x1ba)][_0xfc9c73(0x2ad)](_0x1f2076))==null?void 0x0:_0x4bc29a[_0xfc9c73(0x2b0)][_0x4a2adb];return _0x284652?t['Tools'][_0xfc9c73(0x202)](_0x284652):void 0x0;}[_0x515828(0x1d6)](_0x3b9fe2){const _0x40292e=_0x515828;var _0x5ecfa8;return t[_0x40292e(0x283)]['deepClone'](((_0x5ecfa8=this[_0x40292e(0x1ba)]['get'](_0x3b9fe2))==null?void 0x0:_0x5ecfa8['formulas'])??{});}[_0x515828(0x271)](_0x634dca){const _0x64ed11=_0x515828;let _0x149b0a=this[_0x64ed11(0x1ba)]['get'](_0x634dca);return _0x149b0a?t['Tools'][_0x64ed11(0x202)](_0x149b0a):void 0x0;}[_0x515828(0x276)](_0x46ac6f,_0x294b15,_0x419607){return this['setFormulas'](_0x46ac6f,{[_0x294b15]:_0x419607});}['setResource'](_0x49c95c,_0x43b30f){const _0x2f175d=_0x515828;return this['_loadErrors'][_0x2f175d(0x2a7)](_0x49c95c)||!l(_0x43b30f)?!0x1:(this[_0x2f175d(0x1ba)][_0x2f175d(0x1b8)](_0x49c95c,t['Tools'][_0x2f175d(0x202)](_0x43b30f)),this[_0x2f175d(0x299)][_0x2f175d(0x1e4)]({'unitId':_0x49c95c}),!0x0);}['setFormulas'](_0x5b60e7,_0x2f666d){const _0x1ee52f=_0x515828;if(this[_0x1ee52f(0x1c8)][_0x1ee52f(0x2a7)](_0x5b60e7)||!Object[_0x1ee52f(0x2b4)](_0x2f666d)[_0x1ee52f(0x20f)]||!l({'schemaVersion':0x1,'formulas':_0x2f666d}))return!0x1;let _0x10919f=this['_resources']['get'](_0x5b60e7)??c(),_0x5d7246=t[_0x1ee52f(0x283)][_0x1ee52f(0x202)](_0x10919f);return Object[_0x1ee52f(0x1fb)](_0x5d7246[_0x1ee52f(0x2b0)],t['Tools'][_0x1ee52f(0x202)](_0x2f666d)),this[_0x1ee52f(0x1ba)][_0x1ee52f(0x1b8)](_0x5b60e7,_0x5d7246),this[_0x1ee52f(0x299)]['next']({'unitId':_0x5b60e7,'rangeIds':Object[_0x1ee52f(0x2b4)](_0x2f666d)}),!0x0;}[_0x515828(0x20a)](_0x1cf820,_0x13b638){const _0x371126=_0x515828;if(this[_0x371126(0x1c8)][_0x371126(0x2a7)](_0x1cf820))return!0x1;let _0x4b4030=this[_0x371126(0x1ba)]['get'](_0x1cf820);if(!(_0x4b4030!=null&&_0x4b4030['formulas'][_0x13b638]))return!0x1;let _0x5e7198=t['Tools']['deepClone'](_0x4b4030);return delete _0x5e7198[_0x371126(0x2b0)][_0x13b638],this[_0x371126(0x1ba)][_0x371126(0x1b8)](_0x1cf820,_0x5e7198),this['_change$']['next']({'unitId':_0x1cf820,'rangeIds':[_0x13b638]}),!0x0;}['load'](_0x5057ac,_0x12d1ed){const _0x2b8189=_0x515828;return _0x12d1ed&&typeof _0x12d1ed==_0x2b8189(0x2a2)&&_0x2b8189(0x26c)in _0x12d1ed&&_0x12d1ed[_0x2b8189(0x26c)]!==0x1?(this[_0x2b8189(0x29a)](_0x5057ac,_0x12d1ed,_0x2b8189(0x2b9)),!0x1):l(_0x12d1ed)?(this[_0x2b8189(0x1ba)][_0x2b8189(0x1b8)](_0x5057ac,t[_0x2b8189(0x283)][_0x2b8189(0x202)](_0x12d1ed)),this[_0x2b8189(0x1f6)]['delete'](_0x5057ac),this[_0x2b8189(0x1c8)][_0x2b8189(0x1b6)](_0x5057ac),this[_0x2b8189(0x299)]['next']({'unitId':_0x5057ac}),!0x0):(this[_0x2b8189(0x29a)](_0x5057ac,_0x12d1ed,_0x2b8189(0x2dd)),!0x1);}[_0x515828(0x262)](_0x11daa6){const _0x1bbd0d=_0x515828;let _0x26bdf9=this['_resources'][_0x1bbd0d(0x2ad)](_0x11daa6);return _0x26bdf9?t[_0x1bbd0d(0x283)][_0x1bbd0d(0x202)](_0x26bdf9):this[_0x1bbd0d(0x1f6)]['has'](_0x11daa6)?t[_0x1bbd0d(0x283)][_0x1bbd0d(0x202)](this['_rawResources'][_0x1bbd0d(0x2ad)](_0x11daa6)):c();}[_0x515828(0x27d)](_0x48410d){const _0xd83f26=_0x515828;return this[_0xd83f26(0x1c8)][_0xd83f26(0x2ad)](_0x48410d);}[_0x515828(0x2ce)](_0x47ea20){const _0x7f3550=_0x515828;this[_0x7f3550(0x1ba)][_0x7f3550(0x1b6)](_0x47ea20),this[_0x7f3550(0x1f6)][_0x7f3550(0x1b6)](_0x47ea20),this['_loadErrors'][_0x7f3550(0x1b6)](_0x47ea20),this[_0x7f3550(0x299)][_0x7f3550(0x1e4)]({'unitId':_0x47ea20});}[_0x515828(0x27f)](){const _0x8b8b33=_0x515828;this[_0x8b8b33(0x1ba)][_0x8b8b33(0x2b1)](),this[_0x8b8b33(0x1f6)][_0x8b8b33(0x2b1)](),this[_0x8b8b33(0x1c8)]['clear'](),this['_change$'][_0x8b8b33(0x1af)](),super['dispose']();}[_0x515828(0x29a)](_0x1e15a3,_0xd297f1,_0x3d2be8){const _0x2dbb8f=_0x515828;this[_0x2dbb8f(0x1ba)][_0x2dbb8f(0x1b6)](_0x1e15a3),this[_0x2dbb8f(0x1f6)][_0x2dbb8f(0x1b8)](_0x1e15a3,t[_0x2dbb8f(0x283)]['deepClone'](_0xd297f1)),this[_0x2dbb8f(0x1c8)][_0x2dbb8f(0x1b8)](_0x1e15a3,_0x3d2be8),this[_0x2dbb8f(0x299)][_0x2dbb8f(0x1e4)]({'unitId':_0x1e15a3});}};let ve=function(_0x1e4a53){const _0x3d6f80=_0x515828;return _0x1e4a53[_0x3d6f80(0x1ee)]='empty',_0x1e4a53['PENDING']='pending',_0x1e4a53['SUCCESS']=_0x3d6f80(0x1c9),_0x1e4a53[_0x3d6f80(0x2c5)]=_0x3d6f80(0x1ac),_0x1e4a53;}({});function k(_0x404e9c,_0x11d446){return function(_0xa19289,_0xec3d1b){_0x11d446(_0xa19289,_0xec3d1b,_0x404e9c);};}function A(_0x2527e6,_0x469840,_0x1b9ac3,_0x284b11){const _0x14dcd0=_0x515828;var _0x229d49=arguments['length'],_0x491013=_0x229d49<0x3?_0x469840:_0x284b11===null?_0x284b11=Object['getOwnPropertyDescriptor'](_0x469840,_0x1b9ac3):_0x284b11,_0x14115c;if(typeof Reflect=='object'&&typeof Reflect[_0x14dcd0(0x2d6)]=='function')_0x491013=Reflect[_0x14dcd0(0x2d6)](_0x2527e6,_0x469840,_0x1b9ac3,_0x284b11);else{for(var _0x4111fe=_0x2527e6[_0x14dcd0(0x20f)]-0x1;_0x4111fe>=0x0;_0x4111fe--)(_0x14115c=_0x2527e6[_0x4111fe])&&(_0x491013=(_0x229d49<0x3?_0x14115c(_0x491013):_0x229d49>0x3?_0x14115c(_0x469840,_0x1b9ac3,_0x491013):_0x14115c(_0x469840,_0x1b9ac3))||_0x491013);}return _0x229d49>0x3&&_0x491013&&Object[_0x14dcd0(0x255)](_0x469840,_0x1b9ac3,_0x491013),_0x491013;}let j=class extends t[_0x515828(0x2af)]{constructor(_0x52015c,_0x45e488,_0x5297e3){const _0x2ca5ae=_0x515828;super(),this['_model']=_0x52015c,this['_registrationService']=_0x45e488,this[_0x2ca5ae(0x2cd)]=_0x5297e3,D(this,_0x2ca5ae(0x22b),new Map()),D(this,_0x2ca5ae(0x2e2),new Map()),D(this,'_presentationChanged$',new i[(_0x2ca5ae(0x24e))]()),D(this,'presentationChanged$',this[_0x2ca5ae(0x2d0)][_0x2ca5ae(0x248)]()),this[_0x2ca5ae(0x24f)](this[_0x2ca5ae(0x2d3)][_0x2ca5ae(0x216)][_0x2ca5ae(0x2f0)](_0x2619bd=>{const _0x41026c=_0x2ca5ae;for(let _0x4706a5 of Object[_0x41026c(0x275)](_0x2619bd))for(let _0x412341 of Object['values'](_0x4706a5))_0x412341[_0x41026c(0x21b)](_0x1c8a5a=>this[_0x41026c(0x1cb)](_0x1c8a5a));}));}[_0x515828(0x215)](_0x11cf86){const _0x52811d=_0x515828;var _0x1b34c4;let _0x1a220b=_0x11cf86[_0x52811d(0x234)](),_0x258ea1=((_0x1b34c4=_0x11cf86[_0x52811d(0x2dc)]()[_0x52811d(0x1c5)])==null||(_0x1b34c4=_0x1b34c4[_0x52811d(0x2f1)])==null?void 0x0:_0x1b34c4[_0x52811d(0x254)](g))??[],_0x24f181=this[_0x52811d(0x2e3)][_0x52811d(0x1d6)](_0x1a220b),_0x383761=new Set();for(let _0x14671d of _0x258ea1){let _0x5634a0=_0x24f181[_0x14671d['rangeId']];_0x5634a0&&(_0x383761[_0x52811d(0x2ac)](M(_0x1a220b,_0x14671d[_0x52811d(0x296)])),this[_0x52811d(0x250)]({'unitId':_0x1a220b,'rangeId':_0x14671d[_0x52811d(0x296)]},_0x5634a0));}for(let _0xf8a861 of Array[_0x52811d(0x231)](this[_0x52811d(0x22b)][_0x52811d(0x275)]()))_0xf8a861[_0x52811d(0x1f9)]===_0x1a220b&&!_0x383761[_0x52811d(0x2a7)](M(_0xf8a861[_0x52811d(0x1f9)],_0xf8a861[_0x52811d(0x296)]))&&this['unregister'](_0xf8a861);}[_0x515828(0x250)](_0x2e8141,_0xc3b880){const _0x468685=_0x515828;let _0x2157f3=M(_0x2e8141[_0x468685(0x1f9)],_0x2e8141[_0x468685(0x296)]),_0x2e7219=this[_0x468685(0x22b)][_0x468685(0x2ad)](_0x2157f3),_0x1a7282=this[_0x468685(0x2cd)][_0x468685(0x2f2)](_0x2e8141['unitId']);if(_0x2e7219&&_0x2e7219[_0x468685(0x1ec)][_0x468685(0x230)]===_0xc3b880['formula']&&_0x2e7219[_0x468685(0x217)]===_0x1a7282){_0x2e7219[_0x468685(0x1ec)]=_0xc3b880;let _0x1fbbbb=_0x2e7219[_0x468685(0x2db)]?this['_registrationService'][_0x468685(0x1df)](_0x2e7219[_0x468685(0x1f9)],_0x2e7219['unitId'],_0x2e7219['formulaId'])??void 0x0:void 0x0;_0x2e7219[_0x468685(0x28b)]=_0x1fbbbb,this[_0x468685(0x279)](_0x2157f3,N(_0xc3b880,_0x1fbbbb));return;}_0x2e7219!=null&&_0x2e7219[_0x468685(0x2db)]&&this[_0x468685(0x2b7)](_0x2e7219);let _0x58bb13={..._0x2e8141,'config':_0xc3b880,'referenceRevision':_0x1a7282,'presentation':N(_0xc3b880,void 0x0)};if(this['_registrations'][_0x468685(0x1b8)](_0x2157f3,_0x58bb13),!_0xc3b880[_0x468685(0x230)]['trim']())return;let _0x3b2c0d=this['_registrationService']['registerFormulaWithRange'](_0x2e8141[_0x468685(0x1f9)],_0x2e8141[_0x468685(0x1f9)],_0xc3b880[_0x468685(0x230)],void 0x0,{'rangeId':_0x2e8141[_0x468685(0x296)]},r[_0x468685(0x1d4)][_0x468685(0x277)],_0x2e8141[_0x468685(0x296)]);_0x58bb13['formulaId']=_0x3b2c0d,this[_0x468685(0x2e2)][_0x468685(0x1b8)](_0x3b2c0d,_0x2157f3);}[_0x515828(0x1d0)](_0x1f3417){const _0x6e3d75=_0x515828;let _0x8d783d=M(_0x1f3417[_0x6e3d75(0x1f9)],_0x1f3417['rangeId']),_0x2c9bf0=this[_0x6e3d75(0x22b)][_0x6e3d75(0x2ad)](_0x8d783d);_0x2c9bf0&&(this[_0x6e3d75(0x2b7)](_0x2c9bf0),this[_0x6e3d75(0x22b)][_0x6e3d75(0x1b6)](_0x8d783d));}[_0x515828(0x1f1)](_0x17ce94){const _0x5c30c8=_0x515828;for(let _0x4d9235 of Array[_0x5c30c8(0x231)](this['_registrations'][_0x5c30c8(0x275)]()))_0x4d9235['unitId']===_0x17ce94&&this[_0x5c30c8(0x1d0)](_0x4d9235);}[_0x515828(0x232)](_0x2a118d){const _0x111a5c=_0x515828;var _0x52c5ec;return(_0x52c5ec=this[_0x111a5c(0x22b)][_0x111a5c(0x2ad)](M(_0x2a118d['unitId'],_0x2a118d[_0x111a5c(0x296)])))==null?void 0x0:_0x52c5ec[_0x111a5c(0x209)];}[_0x515828(0x1e2)](_0xeec7b){const _0x18aeca=_0x515828;let _0x4ec711=this[_0x18aeca(0x22b)]['get'](M(_0xeec7b['unitId'],_0xeec7b[_0x18aeca(0x296)]));return _0x4ec711?P(_0x4ec711):void 0x0;}[_0x515828(0x293)](){const _0x352134=_0x515828;return Array[_0x352134(0x231)](this[_0x352134(0x22b)][_0x352134(0x275)](),_0x3ccaac=>({'identity':{'unitId':_0x3ccaac[_0x352134(0x1f9)],'rangeId':_0x3ccaac[_0x352134(0x296)]},'config':_0x3ccaac['config'],'referenceRevision':_0x3ccaac[_0x352134(0x217)],..._0x3ccaac[_0x352134(0x28b)]?{'liveResult':_0x3ccaac[_0x352134(0x28b)]}:null}));}['dispose'](){const _0x3bea28=_0x515828;for(let _0x318821 of this['_registrations'][_0x3bea28(0x275)]())this['_deleteRegistration'](_0x318821);this[_0x3bea28(0x22b)][_0x3bea28(0x2b1)](),this[_0x3bea28(0x2e2)][_0x3bea28(0x2b1)](),this[_0x3bea28(0x2d0)][_0x3bea28(0x1af)](),super[_0x3bea28(0x27f)]();}[_0x515828(0x1cb)](_0x235a7e){const _0x58789d=_0x515828;let _0x56f00f=this[_0x58789d(0x2e2)][_0x58789d(0x2ad)](_0x235a7e[_0x58789d(0x2db)]),_0x15ce8f=_0x56f00f?this[_0x58789d(0x22b)][_0x58789d(0x2ad)](_0x56f00f):void 0x0;!_0x56f00f||!_0x15ce8f||(_0x15ce8f['liveResult']=_0x235a7e,this[_0x58789d(0x279)](_0x56f00f,N(_0x15ce8f[_0x58789d(0x1ec)],_0x235a7e)));}['_setPresentation'](_0xe2b189,_0x355648){const _0x15985f=_0x515828;var _0x25c044,_0x301aa4;let _0x58f367=this[_0x15985f(0x22b)][_0x15985f(0x2ad)](_0xe2b189);if(!_0x58f367||ye(_0x58f367['presentation'],_0x355648))return;let _0x187cad=_0x58f367[_0x15985f(0x209)],_0x1bfc32=P(_0x58f367);_0x58f367[_0x15985f(0x209)]=_0x355648,this[_0x15985f(0x2d0)]['next']({'unitId':_0x58f367[_0x15985f(0x1f9)],'rangeId':_0x58f367[_0x15985f(0x296)],'presentation':_0x355648,'previousPresentation':_0x187cad,'result':P(_0x58f367),'previousResult':{..._0x1bfc32,..._0x187cad,'value':(_0x25c044=_0x187cad[_0x15985f(0x2b8)])==null?void 0x0:_0x25c044['v'],'valueType':((_0x301aa4=_0x187cad[_0x15985f(0x2b8)])==null?void 0x0:_0x301aa4['t'])??void 0x0}});}['_deleteRegistration'](_0x2794fa){const _0x4dedfd=_0x515828;_0x2794fa[_0x4dedfd(0x2db)]&&(this['_registrationService'][_0x4dedfd(0x28a)](_0x2794fa[_0x4dedfd(0x1f9)],_0x2794fa[_0x4dedfd(0x1f9)],[_0x2794fa[_0x4dedfd(0x2db)]]),this['_formulaKeys']['delete'](_0x2794fa[_0x4dedfd(0x2db)]));}};j=A([k(0x0,(0x0,t['Inject'])(O)),k(0x1,(0x0,t[_0x515828(0x282)])(r[_0x515828(0x2c2)])),k(0x2,(0x0,t['Inject'])(e[_0x515828(0x256)]))],j);function M(_0x35c094,_0x2b2426){return _0x35c094+'\x00'+_0x2b2426;}function _0x4026(){const _0x2e344e=['config','343321eAZIkc','EMPTY','RichTextEditingMutation','string','unregisterUnit','text','COLUMN_GROUP_START','docs-formula.command.update','JSONX','_rawResources','90ulCHnU','TABLE_ROW_START','unitId','SetDocFormulaNumberFormatCommand','assign','prototype','2360604PVwLID','presentationChanged$','39pXpAuG','assess','resource','deepClone','Injector','isDocFormulaRange','findDocFormulaRange','getRichTextEditPath','getInstance','disabled','presentation','removeFormula','Doc\x20Formula\x20range\x20cannot\x20cross\x20document\x20structure\x20boundaries','blockRanges','color','type','length','customBlocks','docs-formula.command.remove','push','_injector','resolveHostFormulaExternalReferences','syncUnit','formulaResult$','referenceRevision','resourceUndo','_cacheEligibilityService','numberFormat','forEach','SetDocFormulaMutation','externalMutations','CUSTOM','DataStreamTreeTokenType','startsWith','parse','isArray','isFormulaLastValue','pattern','DOC_FORMULA_SCHEMA_VERSION','_instanceService','end','FormulaLastValuePersistenceService','paragraphs','updates','_registrations','InvalidDocFormulaInsertRangeError','assertSafeDocFormulaInsertRange','IUndoRedoService','BLOCK_END','formula','from','getPresentation','iterator','getUnitId','isInteger','UniverInstanceType','UpdateDocFormulaCommand','DocFormulaService','wholeEntity','PARAGRAPH','getTextRanges','version','CommandType','docs-formula.mutation.set-last-values','buildUpsertHostExternalReferenceMutations','isDocFormulaResource','_resourceManagerService','getScalarFormulaResultCell','getUnit','rangeType','CustomRangeType','5124SzukBO','includes','asObservable','TABLE_START','load','undoMutation','documentRedo','_syncUnit','Subject','disposeWithMe','register','syncExecuteCommand','textRuns','_queueSync','filter','defineProperty','HostExternalReferenceModel','setResource','accessor','427905bOwKYw','endOffset','startIndex','TextX','function','DocFormulaResultStatus','1370KZtWjn','registerCommand','getFormula','serialize','IUniverInstanceService','columnGroups','64smCDNL','2AYvTSQ','_docFormulaModel','collectMutations','pushUndoRedo','ConvertDocFormulaToTextCommand','UNIVER_DOC','schemaVersion','boolean','generateRandomId','ReplaceDocFormulaWithTextCommand','SetDocFormulaResourceMutation','getResource','externalReferences','degradeDocumentData','documentData','values','setFormula','DOC','buildUpdateDocFormulaActions','_setPresentation','getAllUnitsForType','docs-formula.command.set-number-format','docs-formula.command.insert','getLoadError','DocFormulaLifecycleController','dispose','position','expectedReferenceRevision','Inject','Tools','DOC_FORMULA_OBJECT_REPLACEMENT','ICommandService','start','RemoveDocFormulaCommand','constructor','endIndex','deleteFormula','liveResult','some','paragraph','UniverDocsPlugin','6jQolhq','stringify','references','691308gScxIS','getRegisteredFormulas','docs-formula.command.replace-with-text','resolveFormula','rangeId','DocFormulaResourceController','buildInsertDocFormulaActions','_change$','_preserveInvalid','max','status','LexerTreeBuilder','every','identity','docs-formula.mutation.remove-formula','map','object','getCurrentUnitOfType','startOffset','@univerjs-pro/docs-formula','entries','has','insert','sort','tables','_univerInstanceService','add','get','deleteLength','Disposable','formulas','clear','1212323bNwKqJ','expectedFormula','keys','replaceDocRanges','RemoveDocFormulaMutation','_deleteRegistration','cell','unsupported-version','CUSTOM_BLOCK','name','IConfigService','resources','lastValue','registerProvider','Module','DocFormulaModel','RegisterOtherFormulaService','slice','insertLength','ERROR','merge','SECTION_BREAK','getCustomRangeInterval','previousResource','fromEntries','_service','cursorOffset','_hostExternalReferenceModel','removeUnit','source','_presentationChanged$','segmentId','trigger','_registrationService','FormulaCacheEligibilityService','DocTextResolverService','decorate','kind','paragraphId','InsertDocFormulaCommand','degradeBody','formulaId','getSnapshot','invalid-resource','dataStream','IResourceManagerService','default','registerPluginResource','_formulaKeys','_model','COLUMN_START','_syncScheduled','_isDisposed','_configService','find','shiftExclusiveRangeOnInsert','docs-formula.mutation.set-resource','isDocFormulaConfig','number','stale','nextDocumentData','buildRemoveDocFormulaActions','subscribe','customRanges','getRevision','FormulaResultStatus','redoMutation','shiftInclusiveRangeOnInsert','_commandService','BLOCK_START','retain','selection','editOp','SetDocFormulaLastValuesMutation','resourceRedo','error','toPrimitive','toFormulaLastValue','complete','symbol','TABLE_END','change$','document','TABLE_CELL_END','_pendingUnitIds','delete','model','set','DependentOn','_resources','params','toStringTag','Document\x20main\x20body\x20is\x20required\x20to\x20insert\x20Doc\x20Formula.','unitAdded$','pluginName','_config','getBodySliceForTextXAction','customDecorations','COMMAND','COLUMN_END','body','resolveFormulaResultPresentation','_formulaService','_loadErrors','success','onCommandExecuted','_updateFormulaResult','shiftInclusiveRangeOnDelete','range','COLUMN_GROUP_END','touchDependencies','unregister','nextResource','Plugin','docs-formula.mutation.set-formula','OtherFormulaBizType','properties','getFormulas','min','endsWith','UniverLicensePlugin','getBody','previousDocumentData','sectionBreaks','collectFormulaExternalReferenceQualifiers','pending','getFormulaValueSync','degradeDocFormulaDocumentData','getParagraphContentStartOffset','getResult','univer-docs-formula','next','DOC_FORMULA_PLUGIN','DocSelectionManagerService','target','unitDisposed$','266036mIXsGj','trim','createEmptyDocFormulaResource'];_0x4026=function(){return _0x2e344e;};return _0x4026();}function N(_0x1f1790,_0x267cdd){const _0x59db04=_0x515828;return(0x0,e[_0x59db04(0x1c6)])({'numberFormat':_0x1f1790[_0x59db04(0x21a)],'lastValue':_0x1f1790[_0x59db04(0x2be)],'result':_0x267cdd});}function P(_0x59f0c5){const _0x1e024a=_0x515828;var _0x1a21cb,_0x2eae4a,_0x31b73c;let _0x3c8521=_0x59f0c5[_0x1e024a(0x209)],_0x56abf7=_0x59f0c5[_0x1e024a(0x1ec)]['formula'][_0x1e024a(0x1ea)]()?_0x3c8521[_0x1e024a(0x2ed)]||_0x3c8521['cell']==null?_0x1e024a(0x1de):((_0x1a21cb=_0x59f0c5[_0x1e024a(0x28b)])==null?void 0x0:_0x1a21cb[_0x1e024a(0x29c)])===r[_0x1e024a(0x2f3)]['ERROR']?_0x1e024a(0x1ac):_0x1e024a(0x1c9):'empty';return{..._0x3c8521,'status':_0x56abf7,'value':(_0x2eae4a=_0x3c8521[_0x1e024a(0x2b8)])==null?void 0x0:_0x2eae4a['v'],'valueType':((_0x31b73c=_0x3c8521['cell'])==null?void 0x0:_0x31b73c['t'])??void 0x0};}function ye(_0x4ff65,_0xf53af0){const _0x198cab=_0x515828;var _0x4d3e79,_0x449c25,_0x199c5d,_0x4d0e93;return _0x4ff65[_0x198cab(0x1f2)]===_0xf53af0['text']&&_0x4ff65['color']===_0xf53af0[_0x198cab(0x20d)]&&_0x4ff65[_0x198cab(0x224)]===_0xf53af0['pattern']&&_0x4ff65[_0x198cab(0x2cf)]===_0xf53af0['source']&&_0x4ff65[_0x198cab(0x2ed)]===_0xf53af0[_0x198cab(0x2ed)]&&((_0x4d3e79=_0x4ff65['cell'])==null?void 0x0:_0x4d3e79['t'])===((_0x449c25=_0xf53af0[_0x198cab(0x2b8)])==null?void 0x0:_0x449c25['t'])&&Object['is']((_0x199c5d=_0x4ff65[_0x198cab(0x2b8)])==null?void 0x0:_0x199c5d['v'],(_0x4d0e93=_0xf53af0['cell'])==null?void 0x0:_0x4d0e93['v']);}const F={'id':_0x515828(0x1d3),'type':t['CommandType']['MUTATION'],'handler':(_0x3bcc25,_0x3c4c10)=>!(_0x3c4c10!=null&&_0x3c4c10[_0x515828(0x1f9)])||!_0x3c4c10[_0x515828(0x296)]||!_0x3c4c10[_0x515828(0x1ec)]?!0x1:_0x3bcc25[_0x515828(0x2ad)](O)[_0x515828(0x276)](_0x3c4c10[_0x515828(0x1f9)],_0x3c4c10[_0x515828(0x296)],_0x3c4c10[_0x515828(0x1ec)])},I={'id':_0x515828(0x2a0),'type':t['CommandType']['MUTATION'],'handler':(_0xe2a668,_0x407214)=>!(_0x407214!=null&&_0x407214[_0x515828(0x1f9)])||!_0x407214['rangeId']?!0x1:_0xe2a668[_0x515828(0x2ad)](O)['removeFormula'](_0x407214[_0x515828(0x1f9)],_0x407214[_0x515828(0x296)])},L={'id':_0x515828(0x2ea),'type':t[_0x515828(0x23d)]['MUTATION'],'handler':(_0x20dd2b,_0x50f61a)=>!(_0x50f61a!=null&&_0x50f61a['unitId'])||!_0x50f61a['resource']?!0x1:_0x20dd2b[_0x515828(0x2ad)](O)[_0x515828(0x257)](_0x50f61a[_0x515828(0x1f9)],_0x50f61a[_0x515828(0x201)])},R={'id':_0x515828(0x23e),'type':t['CommandType']['MUTATION'],'handler':(_0x2ff6ab,_0x2d4386)=>{const _0x42abaf=_0x515828;if(!(_0x2d4386!=null&&_0x2d4386[_0x42abaf(0x1f9)])||!_0x2d4386['updates'][_0x42abaf(0x20f)])return!0x1;let _0x51d69b=_0x2ff6ab[_0x42abaf(0x2ad)](O),_0x44d58f=_0x2ff6ab['get'](e[_0x42abaf(0x256)]),_0xbcfb85=_0x51d69b[_0x42abaf(0x271)](_0x2d4386[_0x42abaf(0x1f9)]);if(!_0xbcfb85)return!0x1;let _0x2d8837=t['Tools']['deepClone'](_0xbcfb85),_0x43f81b=!0x1;for(let _0x27a879 of _0x2d4386[_0x42abaf(0x22a)]){var _0x43195b,_0x884b9d,_0x2c8c9b,_0x23f6f6;let _0x4d22ae=_0x2d8837[_0x42abaf(0x2b0)][_0x27a879[_0x42abaf(0x296)]];!_0x4d22ae||_0x4d22ae[_0x42abaf(0x230)]!==_0x27a879[_0x42abaf(0x2b3)]||((_0x43195b=_0x4d22ae['numberFormat'])==null?void 0x0:_0x43195b['pattern'])!==_0x27a879['expectedNumberFormat']||_0x44d58f[_0x42abaf(0x2f2)](_0x2d4386[_0x42abaf(0x1f9)])!==_0x27a879[_0x42abaf(0x281)]||(((_0x884b9d=_0x4d22ae[_0x42abaf(0x2be)])==null?void 0x0:_0x884b9d['v'])!==_0x27a879[_0x42abaf(0x2be)]['v']||((_0x2c8c9b=_0x4d22ae['lastValue'])==null?void 0x0:_0x2c8c9b['t'])!==_0x27a879[_0x42abaf(0x2be)]['t']||((_0x23f6f6=_0x4d22ae[_0x42abaf(0x2be)])==null?void 0x0:_0x23f6f6[_0x42abaf(0x224)])!==_0x27a879[_0x42abaf(0x2be)][_0x42abaf(0x224)])&&(_0x4d22ae[_0x42abaf(0x2be)]=t[_0x42abaf(0x283)][_0x42abaf(0x202)](_0x27a879[_0x42abaf(0x2be)]),_0x43f81b=!0x0);}return!_0x43f81b||_0x51d69b['setResource'](_0x2d4386[_0x42abaf(0x1f9)],_0x2d8837);}},z={'id':_0x515828(0x27c),'type':t['CommandType'][_0x515828(0x1c3)],'handler':(_0x20ddd3,_0x119514)=>{const _0x3b86c7=_0x515828;if(!(_0x119514!=null&&_0x119514[_0x3b86c7(0x230)][_0x3b86c7(0x1ea)]()))return!0x1;let _0x8c3172=K(_0x20ddd3,_0x119514[_0x3b86c7(0x1f9)],'');if(!_0x8c3172)return!0x1;let _0x5276c6=xe(_0x119514[_0x3b86c7(0x1e7)],_0x8c3172[_0x3b86c7(0x1c5)],be(_0x20ddd3,_0x8c3172['unitId']));if(!_0x5276c6)return!0x1;let _0x339029=Se(_0x20ddd3,_0x8c3172['unitId'],_0x119514[_0x3b86c7(0x230)],_0x119514[_0x3b86c7(0x272)]??[]);if(!_0x339029)return!0x1;let _0x1fb8c7=Ce(_0x8c3172[_0x3b86c7(0x1c5)],_0x8c3172[_0x3b86c7(0x1b7)],_0x8c3172[_0x3b86c7(0x1f9)]),_0x2c58f0=we({'documentData':_0x8c3172['documentData'],'resource':_0x8c3172['resource'],'rangeId':_0x1fb8c7,'config':{'formula':_0x119514[_0x3b86c7(0x230)],..._0x119514['numberFormat']?{'numberFormat':_0x119514[_0x3b86c7(0x21a)]}:null},'startOffset':_0x5276c6[_0x3b86c7(0x2a4)],'endOffset':_0x5276c6[_0x3b86c7(0x25a)]});if(!_0x2c58f0)return!0x1;let _0x560458=(0x0,e[_0x3b86c7(0x23f)])(_0x20ddd3,_0x8c3172['unitId'],_0x339029);return!_0x560458||!q({'accessor':_0x20ddd3,'document':_0x8c3172[_0x3b86c7(0x1b3)],'unitId':_0x8c3172[_0x3b86c7(0x1f9)],'trigger':z['id'],'rangeId':_0x1fb8c7,'previousResource':_0x8c3172['resource'],'nextResource':_0x2c58f0['nextResource'],'previousDocumentData':_0x8c3172['documentData'],'nextDocumentData':_0x2c58f0[_0x3b86c7(0x2ee)],'cursorOffset':_0x2c58f0['cursorOffset'],'externalMutations':_0x560458})?!0x1:{'rangeId':_0x1fb8c7,'startOffset':_0x2c58f0[_0x3b86c7(0x2cc)]-0x1,'endOffset':_0x2c58f0[_0x3b86c7(0x2cc)]};}},B={'id':_0x515828(0x1f4),'type':t[_0x515828(0x23d)][_0x515828(0x1c3)],'handler':(_0x23ce21,_0x3f3cb0)=>{const _0x58e70e=_0x515828;if(!(_0x3f3cb0!=null&&_0x3f3cb0[_0x58e70e(0x296)])||!_0x3f3cb0[_0x58e70e(0x230)][_0x58e70e(0x1ea)]())return!0x1;let _0x15b4b3=K(_0x23ce21,_0x3f3cb0[_0x58e70e(0x1f9)],''),_0x365bb1=_0x15b4b3==null?void 0x0:_0x15b4b3['model'][_0x58e70e(0x261)](_0x15b4b3['unitId'],_0x3f3cb0['rangeId']),_0x52952b=_0x15b4b3?_(_0x15b4b3['documentData'][_0x58e70e(0x1c5)],_0x3f3cb0[_0x58e70e(0x296)]):void 0x0;if(!_0x15b4b3||!_0x365bb1||!_0x52952b)return!0x1;let _0x1b454a=Se(_0x23ce21,_0x15b4b3[_0x58e70e(0x1f9)],_0x3f3cb0['formula'],_0x3f3cb0[_0x58e70e(0x272)]??[]);if(!_0x1b454a)return!0x1;let _0x6dcd7e=(0x0,e[_0x58e70e(0x23f)])(_0x23ce21,_0x15b4b3[_0x58e70e(0x1f9)],_0x1b454a);if(!_0x6dcd7e)return!0x1;let _0x512853=je(_0x15b4b3[_0x58e70e(0x201)]);return _0x512853[_0x58e70e(0x2b0)][_0x3f3cb0['rangeId']]={'formula':_0x3f3cb0[_0x58e70e(0x230)],..._0x3f3cb0[_0x58e70e(0x21a)]?{'numberFormat':_0x3f3cb0[_0x58e70e(0x21a)]}:_0x365bb1[_0x58e70e(0x21a)]?{'numberFormat':_0x365bb1[_0x58e70e(0x21a)]}:null},q({'accessor':_0x23ce21,'document':_0x15b4b3[_0x58e70e(0x1b3)],'unitId':_0x15b4b3[_0x58e70e(0x1f9)],'trigger':B['id'],'rangeId':_0x3f3cb0[_0x58e70e(0x296)],'previousResource':_0x15b4b3[_0x58e70e(0x201)],'nextResource':_0x512853,'cursorOffset':_0x52952b[_0x58e70e(0x289)]+0x1,'externalMutations':_0x6dcd7e});}},V={'id':_0x515828(0x27b),'type':t[_0x515828(0x23d)][_0x515828(0x1c3)],'handler':(_0x1b81e2,_0x4a6ac5)=>{const _0x3dfc61=_0x515828;if(!(_0x4a6ac5!=null&&_0x4a6ac5[_0x3dfc61(0x296)]))return!0x1;let _0x39bf6f=K(_0x1b81e2,_0x4a6ac5[_0x3dfc61(0x1f9)],''),_0x3e89fa=_0x39bf6f==null?void 0x0:_0x39bf6f[_0x3dfc61(0x1b7)]['getFormula'](_0x39bf6f[_0x3dfc61(0x1f9)],_0x4a6ac5[_0x3dfc61(0x296)]),_0x5dd8ad=_0x39bf6f?_(_0x39bf6f[_0x3dfc61(0x274)][_0x3dfc61(0x1c5)],_0x4a6ac5['rangeId']):void 0x0;if(!_0x39bf6f||!_0x3e89fa||!_0x5dd8ad)return!0x1;let _0x358458=je(_0x39bf6f[_0x3dfc61(0x201)]);return _0x358458[_0x3dfc61(0x2b0)][_0x4a6ac5[_0x3dfc61(0x296)]]={..._0x3e89fa,..._0x4a6ac5[_0x3dfc61(0x21a)]?{'numberFormat':_0x4a6ac5[_0x3dfc61(0x21a)]}:null},_0x4a6ac5[_0x3dfc61(0x21a)]||delete _0x358458[_0x3dfc61(0x2b0)][_0x4a6ac5[_0x3dfc61(0x296)]]['numberFormat'],q({'accessor':_0x1b81e2,'document':_0x39bf6f[_0x3dfc61(0x1b3)],'unitId':_0x39bf6f[_0x3dfc61(0x1f9)],'trigger':V['id'],'rangeId':_0x4a6ac5[_0x3dfc61(0x296)],'previousResource':_0x39bf6f[_0x3dfc61(0x201)],'nextResource':_0x358458,'cursorOffset':_0x5dd8ad['endIndex']+0x1,'externalMutations':{}});}},H={'id':_0x515828(0x211),'type':t['CommandType']['COMMAND'],'handler':(_0x543b83,_0x442658)=>G(_0x543b83,_0x442658,'',H['id'])},U={'id':_0x515828(0x294),'type':t['CommandType'][_0x515828(0x1c3)],'handler':(_0x32e364,_0x47ef4b)=>G(_0x32e364,_0x47ef4b,(_0x47ef4b==null?void 0x0:_0x47ef4b[_0x515828(0x1f2)])??'',U['id'])},W={'id':'docs-formula.command.convert-to-text','type':t[_0x515828(0x23d)]['COMMAND'],'handler':(_0x1d7f4b,_0x20bc4b)=>{const _0x15d222=_0x515828;if(!(_0x20bc4b!=null&&_0x20bc4b[_0x15d222(0x296)]))return!0x1;let _0x2f43e5=K(_0x1d7f4b,_0x20bc4b['unitId'],'');if(!_0x2f43e5)return!0x1;let _0x674a86=_0x1d7f4b[_0x15d222(0x2ad)](j)[_0x15d222(0x1e2)]({'unitId':_0x2f43e5['unitId'],'rangeId':_0x20bc4b[_0x15d222(0x296)]});return _0x674a86?G(_0x1d7f4b,_0x20bc4b,_0x674a86[_0x15d222(0x1f2)],W['id']):!0x1;}};function G(_0x305b60,_0x325780,_0x4e88c7,_0x5d7460){const _0x525a64=_0x515828;if(!(_0x325780!=null&&_0x325780[_0x525a64(0x296)]))return!0x1;let _0x667866=K(_0x305b60,_0x325780[_0x525a64(0x1f9)],'');if(!_0x667866)return!0x1;let _0x538c94=h({'documentData':_0x667866[_0x525a64(0x274)],'resource':_0x667866['resource'],'rangeId':_0x325780[_0x525a64(0x296)],'text':_0x4e88c7});return _0x538c94?q({'accessor':_0x305b60,'document':_0x667866[_0x525a64(0x1b3)],'unitId':_0x667866[_0x525a64(0x1f9)],'trigger':_0x5d7460,'rangeId':_0x325780['rangeId'],'previousResource':_0x667866[_0x525a64(0x201)],'nextResource':_0x538c94[_0x525a64(0x1d1)],'previousDocumentData':_0x667866[_0x525a64(0x274)],'nextDocumentData':_0x538c94[_0x525a64(0x2ee)],'cursorOffset':_0x538c94[_0x525a64(0x2cc)],'externalMutations':{}}):!0x1;}function K(_0x483e5d,_0x2c75d3,_0x5cf20b){const _0x582dc4=_0x515828;if(_0x5cf20b)return null;let _0x4127d8=_0x483e5d[_0x582dc4(0x2ad)](t[_0x582dc4(0x263)]),_0x16237b=(_0x2c75d3?_0x4127d8[_0x582dc4(0x243)](_0x2c75d3,t['UniverInstanceType'][_0x582dc4(0x26b)]):_0x4127d8[_0x582dc4(0x2a3)](t[_0x582dc4(0x236)]['UNIVER_DOC']))??null;if(!_0x16237b)return null;let _0x3e716e=_0x16237b[_0x582dc4(0x2dc)](),_0x316843=_0x3e716e[_0x582dc4(0x1c5)];if(_0x3e716e[_0x582dc4(0x208)]||!_0x316843)return null;let _0xd36145=_0x483e5d['get'](O);return _0xd36145[_0x582dc4(0x27d)](_0x16237b[_0x582dc4(0x234)]())?null:{'document':_0x16237b,'body':_0x316843,'documentData':_0x3e716e,'model':_0xd36145,'resource':_0xd36145[_0x582dc4(0x271)](_0x16237b[_0x582dc4(0x234)]())??c(),'unitId':_0x16237b[_0x582dc4(0x234)]()};}function be(_0x4236f5,_0x325794){const _0x496103=_0x515828;var _0x1d400b;return(_0x1d400b=_0x4236f5[_0x496103(0x2ad)](n[_0x496103(0x1e6)])[_0x496103(0x23b)]({'subUnitId':_0x325794,'unitId':_0x325794}))==null?void 0x0:_0x1d400b[0x0];}function xe(_0x544c67,_0x4e5c52,_0xd5a1e9){const _0x5e9cf1=_0x515828;if((_0x544c67==null?void 0x0:_0x544c67[_0x5e9cf1(0x20e)])===_0x5e9cf1(0x28d)){var _0x2f89c7;let _0x3c5d5c=((_0x2f89c7=_0x4e5c52[_0x5e9cf1(0x229)])==null?void 0x0:_0x2f89c7[_0x5e9cf1(0x254)](_0x1897f3=>_0x1897f3[_0x5e9cf1(0x2d8)]===_0x544c67['paragraphId']))??[];if(_0x3c5d5c['length']!==0x1)return null;let _0x199be9=_0x3c5d5c[0x0],_0x4847bd=(0x0,t[_0x5e9cf1(0x1e1)])(_0x4e5c52,_0x199be9),_0x5b0d41=_0x199be9[_0x5e9cf1(0x25b)]-_0x4847bd,_0x31a6f4=_0x544c67[_0x5e9cf1(0x280)]===_0x5e9cf1(0x227)?_0x5b0d41:_0x544c67['position'];if(!Number[_0x5e9cf1(0x235)](_0x31a6f4)||_0x31a6f4<0x0||_0x31a6f4>_0x5b0d41)return null;let _0x3c5bdf=_0x4847bd+_0x31a6f4;return{'startOffset':_0x3c5bdf,'endOffset':_0x3c5bdf};}if((_0x544c67==null?void 0x0:_0x544c67[_0x5e9cf1(0x20e)])===_0x5e9cf1(0x1cd))return!Number['isInteger'](_0x544c67['startOffset'])||!Number[_0x5e9cf1(0x235)](_0x544c67[_0x5e9cf1(0x25a)])?null:{'startOffset':Math['min'](_0x544c67[_0x5e9cf1(0x2a4)],_0x544c67[_0x5e9cf1(0x25a)]),'endOffset':Math['max'](_0x544c67[_0x5e9cf1(0x2a4)],_0x544c67[_0x5e9cf1(0x25a)])};let _0x3228fa=(_0x544c67==null?void 0x0:_0x544c67[_0x5e9cf1(0x20e)])===_0x5e9cf1(0x2f9)?_0x544c67[_0x5e9cf1(0x2f9)]:_0xd5a1e9;return!_0x3228fa||_0x3228fa[_0x5e9cf1(0x2d1)]?null:{'startOffset':Math[_0x5e9cf1(0x1d7)](_0x3228fa['startOffset'],_0x3228fa[_0x5e9cf1(0x25a)]),'endOffset':Math[_0x5e9cf1(0x29b)](_0x3228fa[_0x5e9cf1(0x2a4)],_0x3228fa['endOffset'])};}function Se(_0x2f42ee,_0x374dd4,_0x567d0e,_0x46fa30){const _0x35248e=_0x515828;let _0x2c9d06=_0x2f42ee['get'](r[_0x35248e(0x29d)]),_0x10decb=_0x567d0e[_0x35248e(0x220)]('=')?_0x567d0e[_0x35248e(0x2c3)](0x1):_0x567d0e,_0x22c990=_0x2c9d06['sequenceNodesBuilder'](_0x10decb);if(!_0x22c990)return null;let _0x168de2=_0x2f42ee[_0x35248e(0x2ad)](e['HostExternalReferenceModel']),_0x2afbc8=(0x0,e[_0x35248e(0x214)])({'qualifiers':(0x0,e[_0x35248e(0x1dd)])(_0x22c990),'explicitReferences':_0x46fa30??[],'resolveBinding':_0x533928=>_0x168de2['resolveBinding'](_0x374dd4,_0x533928)});return _0x2afbc8[_0x35248e(0x29c)]==='resolved'?_0x2afbc8[_0x35248e(0x291)]:null;}function Ce(_0x33b089,_0x2c2b5d,_0x35e922){const _0x10daae=_0x515828;var _0x12b1cd;let _0x5c34ff=(0x0,t[_0x10daae(0x26e)])(0x6);for(;_0x33b089!=null&&(_0x12b1cd=_0x33b089[_0x10daae(0x2f1)])!=null&&_0x12b1cd[_0x10daae(0x28c)](_0x3dc17e=>_0x3dc17e[_0x10daae(0x296)]===_0x5c34ff)||_0x2c2b5d['getFormula'](_0x35e922,_0x5c34ff);)_0x5c34ff=(0x0,t[_0x10daae(0x26e)])(0x6);return _0x5c34ff;}function we(_0x55c940){try{return te(_0x55c940);}catch(_0x43dbf3){if(_0x43dbf3 instanceof m)return null;throw _0x43dbf3;}}function Te(_0x494ba7){const _0x5882ab=_0x515828;let _0x2c5a9c=_0x494ba7[_0x5882ab(0x1db)]&&_0x494ba7[_0x5882ab(0x2ee)]?De(_0x494ba7[_0x5882ab(0x1b3)],_0x494ba7['unitId'],_0x494ba7[_0x5882ab(0x1db)],_0x494ba7[_0x5882ab(0x2ee)],_0x494ba7[_0x5882ab(0x2cc)],_0x494ba7['trigger']):null;return _0x494ba7[_0x5882ab(0x1db)]&&_0x494ba7[_0x5882ab(0x2ee)]&&!_0x2c5a9c?null:{'documentRedo':_0x2c5a9c,'resourceRedo':{'id':L['id'],'params':{'unitId':_0x494ba7[_0x5882ab(0x1f9)],'resource':_0x494ba7[_0x5882ab(0x1d1)]}},'resourceUndo':{'id':L['id'],'params':{'unitId':_0x494ba7[_0x5882ab(0x1f9)],'resource':_0x494ba7[_0x5882ab(0x2c9)]}}};}function Ee(_0x361852,_0xf095,_0x3a4ee1,_0x2a9a4d){const _0x499090=_0x515828;_0x2a9a4d[_0x499090(0x269)]({'id':_0x361852[_0x499090(0x2d2)]+':'+_0x361852[_0x499090(0x296)],'unitID':_0x361852[_0x499090(0x1f9)],'redoMutations':[..._0x361852[_0x499090(0x21d)][_0x499090(0x2f4)]?[_0x361852[_0x499090(0x21d)][_0x499090(0x2f4)]]:[],..._0xf095[_0x499090(0x24c)]?[_0xf095['documentRedo']]:[],_0xf095[_0x499090(0x2fc)]],'undoMutations':[_0xf095[_0x499090(0x218)],..._0x3a4ee1?[_0x3a4ee1]:[],..._0x361852[_0x499090(0x21d)][_0x499090(0x24b)]?[_0x361852['externalMutations'][_0x499090(0x24b)]]:[]]});}function q(_0xaf1931){const _0x101f02=_0x515828;let _0x26029c=_0xaf1931[_0x101f02(0x258)][_0x101f02(0x2ad)](t[_0x101f02(0x285)]),_0x58daee=_0xaf1931[_0x101f02(0x258)][_0x101f02(0x2ad)](t[_0x101f02(0x22e)]),_0x4b63fe=_0xaf1931[_0x101f02(0x258)][_0x101f02(0x2ad)](n[_0x101f02(0x1e6)]),_0x398e44=Te(_0xaf1931);if(!_0x398e44)return!0x1;let _0x2c759a=!0x1,_0x2aea8e=null,_0x578ae9=!0x1;try{if(_0xaf1931[_0x101f02(0x21d)]['redoMutation']){if(!_0x26029c[_0x101f02(0x251)](_0xaf1931[_0x101f02(0x21d)]['redoMutation']['id'],_0xaf1931[_0x101f02(0x21d)][_0x101f02(0x2f4)][_0x101f02(0x1bb)]))return!0x1;_0x2c759a=!0x0;}if(_0x398e44['documentRedo']){let _0x3ce30a=_0x26029c[_0x101f02(0x251)](_0x398e44[_0x101f02(0x24c)]['id'],_0x398e44['documentRedo'][_0x101f02(0x1bb)]);if(!_0x3ce30a)return J(_0x26029c,_0xaf1931[_0x101f02(0x21d)],_0x2c759a),!0x1;_0x2aea8e={'id':n[_0x101f02(0x1ef)]['id'],'params':{..._0x3ce30a,'noHistory':!0x0,'noNeedSetTextRange':!0x0,'segmentId':''}};}if(!_0x26029c[_0x101f02(0x251)](_0x398e44[_0x101f02(0x2fc)]['id'],_0x398e44[_0x101f02(0x2fc)]['params']))return Oe(_0x26029c,_0x2aea8e),J(_0x26029c,_0xaf1931[_0x101f02(0x21d)],_0x2c759a),!0x1;_0x578ae9=!0x0,Ee(_0xaf1931,_0x398e44,_0x2aea8e,_0x58daee);}catch(_0x239f0f){throw _0x578ae9&&_0x26029c[_0x101f02(0x251)](_0x398e44[_0x101f02(0x218)]['id'],_0x398e44[_0x101f02(0x218)]['params']),Oe(_0x26029c,_0x2aea8e),J(_0x26029c,_0xaf1931[_0x101f02(0x21d)],_0x2c759a),_0x239f0f;}return _0x4b63fe[_0x101f02(0x2b5)]([{'startOffset':_0xaf1931[_0x101f02(0x2cc)],'endOffset':_0xaf1931[_0x101f02(0x2cc)],'segmentId':''}],{'unitId':_0xaf1931['unitId'],'subUnitId':_0xaf1931[_0x101f02(0x1f9)]},!0x1,{[n['DOC_SELECTION_OPTION_PRESERVE_CARET']]:!0x0}),!0x0;}function De(_0x462f7e,_0x472f94,_0x50831b,_0x112579,_0x22de07,_0x4df773){const _0x409ebd=_0x515828;let _0x27ef52=ke(_0x50831b,_0x112579,(0x0,t[_0x409ebd(0x206)])(_0x462f7e,''));return _0x27ef52?{'id':n[_0x409ebd(0x1ef)]['id'],'params':{'unitId':_0x472f94,'actions':_0x27ef52,'segmentId':'','textRanges':[{'startOffset':_0x22de07,'endOffset':_0x22de07,'collapsed':!0x0,'segmentId':''}],'isEditing':!0x1,'noHistory':!0x0,'noNeedSetTextRange':!0x0,'trigger':_0x4df773}}:null;}function Oe(_0x21a9b3,_0x19e05e){const _0x16b96c=_0x515828;_0x19e05e&&_0x21a9b3['syncExecuteCommand'](_0x19e05e['id'],_0x19e05e[_0x16b96c(0x1bb)]);}function J(_0x1db1e5,_0x29d629,_0x37d7c4){const _0x2d68b4=_0x515828;_0x37d7c4&&_0x29d629[_0x2d68b4(0x24b)]&&_0x1db1e5[_0x2d68b4(0x251)](_0x29d629[_0x2d68b4(0x24b)]['id'],_0x29d629[_0x2d68b4(0x24b)][_0x2d68b4(0x1bb)]);}function ke(_0xf9ca07,_0x3a6649,_0x1f7e83){const _0x2fcb88=_0x515828;let _0x1f64a7=_0xf9ca07[_0x2fcb88(0x1c5)],_0x3a0d02=_0x3a6649[_0x2fcb88(0x1c5)],_0x4cc3c=Ae(_0x1f64a7==null?void 0x0:_0x1f64a7['dataStream'],_0x3a0d02==null?void 0x0:_0x3a0d02[_0x2fcb88(0x2de)]);if(!_0x4cc3c||!_0x3a0d02)return null;let _0x487c16=new t[(_0x2fcb88(0x25c))]();return _0x487c16[_0x2fcb88(0x2f8)](_0x4cc3c[_0x2fcb88(0x286)]),_0x4cc3c['insertLength']>0x0&&_0x487c16[_0x2fcb88(0x2a8)](_0x4cc3c[_0x2fcb88(0x2c4)],(0x0,t[_0x2fcb88(0x1c1)])(_0x3a0d02,_0x4cc3c[_0x2fcb88(0x286)],_0x4cc3c[_0x2fcb88(0x286)]+_0x4cc3c[_0x2fcb88(0x2c4)],!0x1)),_0x4cc3c[_0x2fcb88(0x2ae)]>0x0&&_0x487c16['delete'](_0x4cc3c[_0x2fcb88(0x2ae)]),t[_0x2fcb88(0x1f5)][_0x2fcb88(0x207)]()[_0x2fcb88(0x2fa)](_0x487c16[_0x2fcb88(0x262)](),_0x1f7e83);}function Ae(_0x5716bf,_0x50d70d){const _0x6a1f6a=_0x515828;if(_0x5716bf==null||_0x50d70d==null||_0x5716bf===_0x50d70d)return null;let _0x3c5d6a=0x0;for(;_0x3c5d6a<_0x5716bf[_0x6a1f6a(0x20f)]&&_0x3c5d6a<_0x50d70d['length']&&_0x5716bf[_0x3c5d6a]===_0x50d70d[_0x3c5d6a];)_0x3c5d6a+=0x1;let _0x137382=_0x5716bf[_0x6a1f6a(0x20f)],_0x5e26c8=_0x50d70d['length'];for(;_0x137382>_0x3c5d6a&&_0x5e26c8>_0x3c5d6a&&_0x5716bf[_0x137382-0x1]===_0x50d70d[_0x5e26c8-0x1];)--_0x137382,--_0x5e26c8;return{'start':_0x3c5d6a,'deleteLength':_0x137382-_0x3c5d6a,'insertLength':_0x5e26c8-_0x3c5d6a};}function je(_0x2aec0a){const _0x4c8e06=_0x515828;return{'schemaVersion':0x1,'formulas':Object[_0x4c8e06(0x2ca)](Object[_0x4c8e06(0x2a6)](_0x2aec0a[_0x4c8e06(0x2b0)])[_0x4c8e06(0x2a1)](([_0x537160,_0x48a8c6])=>[_0x537160,{..._0x48a8c6,..._0x48a8c6[_0x4c8e06(0x21a)]?{'numberFormat':{..._0x48a8c6['numberFormat']}}:null,..._0x48a8c6[_0x4c8e06(0x2be)]?{'lastValue':{..._0x48a8c6[_0x4c8e06(0x2be)]}}:null}]))};}let Y=class extends t[_0x515828(0x2af)]{constructor(_0x3a7ba7,_0xf8279e,_0x1214d4,_0x205df6){const _0x39f9d3=_0x515828;super(),this[_0x39f9d3(0x226)]=_0x3a7ba7,this[_0x39f9d3(0x2f6)]=_0xf8279e,this[_0x39f9d3(0x2e3)]=_0x1214d4,this[_0x39f9d3(0x2cb)]=_0x205df6,D(this,_0x39f9d3(0x1b5),new Set()),D(this,'_syncScheduled',!0x1),D(this,_0x39f9d3(0x2e6),!0x1),this[_0x39f9d3(0x226)][_0x39f9d3(0x27a)](t[_0x39f9d3(0x236)][_0x39f9d3(0x26b)])[_0x39f9d3(0x21b)](_0x51ab76=>this['_service'][_0x39f9d3(0x215)](_0x51ab76)),this[_0x39f9d3(0x24f)](this[_0x39f9d3(0x2e3)][_0x39f9d3(0x1b2)][_0x39f9d3(0x2f0)](({unitId:_0x17e886})=>this['_syncUnit'](_0x17e886))),this[_0x39f9d3(0x24f)](this[_0x39f9d3(0x226)][_0x39f9d3(0x1be)][_0x39f9d3(0x2f0)](({unit:_0x354f94})=>{const _0x24c3c9=_0x39f9d3;_0x354f94['type']===t[_0x24c3c9(0x236)]['UNIVER_DOC']&&this[_0x24c3c9(0x253)](_0x354f94[_0x24c3c9(0x234)]());})),this[_0x39f9d3(0x24f)](this[_0x39f9d3(0x226)][_0x39f9d3(0x1e8)][_0x39f9d3(0x2f0)](_0x1307f8=>{const _0x5cf31f=_0x39f9d3;this['_service'][_0x5cf31f(0x1f1)](_0x1307f8[_0x5cf31f(0x234)]());})),this[_0x39f9d3(0x24f)](this[_0x39f9d3(0x2f6)][_0x39f9d3(0x1ca)](_0x1ca3b2=>{const _0x142f7d=_0x39f9d3;if(_0x1ca3b2['id']===n[_0x142f7d(0x1ef)]['id']&&Me(_0x1ca3b2[_0x142f7d(0x1bb)])){let _0x408780=_0x1ca3b2[_0x142f7d(0x1bb)];_0x408780['segmentId']||this[_0x142f7d(0x24d)](_0x408780[_0x142f7d(0x1f9)]);}}));}['dispose'](){const _0x4fe3fa=_0x515828;this[_0x4fe3fa(0x2e6)]=!0x0,super[_0x4fe3fa(0x27f)]();}[_0x515828(0x253)](_0x286f19){const _0x34541d=_0x515828;this['_pendingUnitIds'][_0x34541d(0x2ac)](_0x286f19),!this[_0x34541d(0x2e5)]&&(this[_0x34541d(0x2e5)]=!0x0,queueMicrotask(()=>{const _0x22f611=_0x34541d;if(this[_0x22f611(0x2e5)]=!0x1,this['_isDisposed'])return;let _0x209e5b=Array[_0x22f611(0x231)](this['_pendingUnitIds']);this['_pendingUnitIds']['clear'](),_0x209e5b[_0x22f611(0x21b)](_0x1cbd4e=>this['_syncUnit'](_0x1cbd4e));}));}['_syncUnit'](_0x32d9d4){const _0x52fdf3=_0x515828;let _0x1720c2=this[_0x52fdf3(0x226)][_0x52fdf3(0x243)](_0x32d9d4,t[_0x52fdf3(0x236)][_0x52fdf3(0x26b)]);_0x1720c2&&this[_0x52fdf3(0x2cb)]['syncUnit'](_0x1720c2);}};Y=A([k(0x0,t[_0x515828(0x263)]),k(0x1,t[_0x515828(0x285)]),k(0x2,(0x0,t[_0x515828(0x282)])(O)),k(0x3,(0x0,t['Inject'])(j))],Y);function Me(_0x3a487d){const _0x430878=_0x515828;return typeof _0x3a487d==_0x430878(0x2a2)&&!!_0x3a487d&&_0x430878(0x1f9)in _0x3a487d&&typeof _0x3a487d['unitId']==_0x430878(0x1f0)&&(!(_0x430878(0x2d1)in _0x3a487d)||_0x3a487d['segmentId']===void 0x0||typeof _0x3a487d[_0x430878(0x2d1)]==_0x430878(0x1f0));}let X=class extends t[_0x515828(0x2af)]{constructor(_0x35237c,_0x37f676){const _0x4c77a1=_0x515828;super(),this['_resourceManagerService']=_0x35237c,this[_0x4c77a1(0x267)]=_0x37f676,this['disposeWithMe'](this[_0x4c77a1(0x241)][_0x4c77a1(0x2e1)]({'pluginName':o,'businesses':[t['UniverInstanceType'][_0x4c77a1(0x26b)]],'toJson':_0x46a3a5=>JSON[_0x4c77a1(0x290)](this[_0x4c77a1(0x267)][_0x4c77a1(0x262)](_0x46a3a5)),'parseJson':_0x12a490=>JSON['parse'](_0x12a490),'onLoad':(_0x59513b,_0x3d1021)=>{const _0x153890=_0x4c77a1;this[_0x153890(0x267)][_0x153890(0x24a)](_0x59513b,_0x3d1021);},'onUnLoad':_0x234d36=>this[_0x4c77a1(0x267)][_0x4c77a1(0x2ce)](_0x234d36)}));}};X=A([k(0x0,t[_0x515828(0x2df)]),k(0x1,(0x0,t[_0x515828(0x282)])(O))],X);var Ne=_0x515828(0x2a5),Pe='1.0.0-beta.0';const Fe={};let Z=class extends t[_0x515828(0x2af)]{constructor(_0x30a29d,_0x1d208c,_0x1d8f51){const _0x6552c=_0x515828;super(),this[_0x6552c(0x2ab)]=_0x30a29d,this[_0x6552c(0x1c7)]=_0x1d208c,this[_0x6552c(0x24f)](_0x1d8f51['register']({'resolve':(_0x525819,_0x48c6a7)=>{const _0x563f5e=_0x6552c;var _0x157160;return((_0x157160=_0x48c6a7['customRanges'])==null?void 0x0:_0x157160[_0x563f5e(0x254)](g)[_0x563f5e(0x2a1)](_0x3e1668=>({'startOffset':_0x3e1668[_0x563f5e(0x25b)],'endOffset':_0x3e1668[_0x563f5e(0x289)]+0x1,'text':this[_0x563f5e(0x295)](_0x525819,_0x3e1668[_0x563f5e(0x296)])})))??[];}})),this['disposeWithMe'](this['_formulaService'][_0x6552c(0x1fe)][_0x6552c(0x2f0)](({unitId:_0x5caea6})=>{_0x1d8f51['notifyTextChanged'](_0x5caea6);}));}[_0x515828(0x295)](_0x5b9246,_0xb0d544){const _0x352b2c=_0x515828;var _0xa1ad2;return((_0xa1ad2=this[_0x352b2c(0x1c7)]['getResult']({'unitId':_0x5b9246,'rangeId':_0xb0d544}))==null?void 0x0:_0xa1ad2['text'])??'';}['resolveText'](_0x143dc5,_0xdd8a1b,_0xa07daa){const _0x5e2d5a=_0x515828;var _0x546858;let _0x3554e4=this[_0x5e2d5a(0x2ab)][_0x5e2d5a(0x243)](_0x143dc5,t[_0x5e2d5a(0x236)]['UNIVER_DOC']),_0x1782bd=_0x3554e4==null?void 0x0:_0x3554e4[_0x5e2d5a(0x1da)]();if(!_0x1782bd)return'';let _0x136802=_0x1782bd[_0x5e2d5a(0x2de)][_0x5e2d5a(0x2c3)](_0xdd8a1b,_0xa07daa),_0x48bf66=((_0x546858=_0x1782bd['customRanges'])==null?void 0x0:_0x546858[_0x5e2d5a(0x254)](_0x911c13=>g(_0x911c13)&&_0x911c13[_0x5e2d5a(0x25b)]>=_0xdd8a1b&&_0x911c13['endIndex']<_0xa07daa)[_0x5e2d5a(0x2a9)]((_0x45371c,_0x46aadd)=>_0x46aadd[_0x5e2d5a(0x25b)]-_0x45371c[_0x5e2d5a(0x25b)]))??[];for(let _0x16c355 of _0x48bf66){let _0x59fb57=_0x16c355[_0x5e2d5a(0x25b)]-_0xdd8a1b,_0x4ab6f1=_0x16c355['endIndex']-_0xdd8a1b+0x1;_0x136802=''+_0x136802['slice'](0x0,_0x59fb57)+this[_0x5e2d5a(0x295)](_0x143dc5,_0x16c355['rangeId'])+_0x136802[_0x5e2d5a(0x2c3)](_0x4ab6f1);}return _0x136802;}[_0x515828(0x273)](_0xfe73b){return Ie(_0xfe73b);}[_0x515828(0x2da)](_0x1e4ff8,_0x339fcc,_0x3c8341={}){const _0x3dc1e7=_0x515828;var _0xc48dab;return re({'id':_0x1e4ff8,'body':_0x339fcc,'documentStyle':{}},(((_0xc48dab=_0x339fcc['customRanges'])==null?void 0x0:_0xc48dab[_0x3dc1e7(0x254)](g))??[])[_0x3dc1e7(0x2a1)](_0x587d93=>({'rangeId':_0x587d93['rangeId'],'text':_0x3c8341[_0x587d93[_0x3dc1e7(0x296)]]??this[_0x3dc1e7(0x295)](_0x1e4ff8,_0x587d93[_0x3dc1e7(0x296)])})))[_0x3dc1e7(0x1c5)]??{'dataStream':''};}};Z=A([k(0x0,t['IUniverInstanceService']),k(0x1,(0x0,t[_0x515828(0x282)])(j)),k(0x2,(0x0,t[_0x515828(0x282)])(n[_0x515828(0x2d5)]))],Z);function Ie(_0x2b23eb){const _0x1e0488=_0x515828;var _0x263a7b,_0x2726a9;let _0x219fdf=Le(_0x2b23eb),_0xbe3405=re(_0x2b23eb,(((_0x263a7b=_0x2b23eb['body'])==null||(_0x263a7b=_0x263a7b['customRanges'])==null?void 0x0:_0x263a7b[_0x1e0488(0x254)](g))??[])['map'](_0x39c44a=>({'rangeId':_0x39c44a[_0x1e0488(0x296)],'text':Re(_0x219fdf==null?void 0x0:_0x219fdf['formulas'][_0x39c44a[_0x1e0488(0x296)]])})));return _0xbe3405[_0x1e0488(0x2bd)]=(_0x2726a9=_0xbe3405['resources'])==null?void 0x0:_0x2726a9[_0x1e0488(0x254)](_0x1bc23b=>_0x1bc23b[_0x1e0488(0x2bb)]!==o),_0xbe3405;}function Le(_0x303940){const _0x50c728=_0x515828;var _0x40cc34;let _0x47bbfd=(_0x40cc34=_0x303940[_0x50c728(0x2bd)])==null||(_0x40cc34=_0x40cc34['find'](_0x9071c1=>_0x9071c1['name']===_0x50c728(0x1e5)))==null?void 0x0:_0x40cc34['data'];if(_0x47bbfd)try{let _0x3dc653=JSON[_0x50c728(0x221)](_0x47bbfd);return l(_0x3dc653)?_0x3dc653:void 0x0;}catch{return;}}function Re(_0x38f51f){const _0x1e7933=_0x515828;return _0x38f51f?(0x0,e['resolveFormulaResultPresentation'])({'lastValue':_0x38f51f[_0x1e7933(0x2be)],'numberFormat':_0x38f51f[_0x1e7933(0x21a)]})[_0x1e7933(0x1f2)]:'';}let Q=class extends t[_0x515828(0x2af)]{constructor(_0x2ae8b8,_0x3cb4a3,_0x35b79c){const _0x1c0180=_0x515828;super(),this[_0x1c0180(0x1c7)]=_0x2ae8b8,this['_cacheEligibilityService']=_0x3cb4a3,this[_0x1c0180(0x24f)](_0x35b79c[_0x1c0180(0x2bf)](this));}[_0x515828(0x268)](_0x237201){const _0x55cbd4=_0x515828;let _0x559ac2=new Map();for(let _0x40cf66 of this['_formulaService']['getRegisteredFormulas']()){var _0x38ba8e;if(!this[_0x55cbd4(0x219)][_0x55cbd4(0x200)](_0x40cf66[_0x55cbd4(0x1ec)][_0x55cbd4(0x230)],_0x40cf66[_0x55cbd4(0x28b)])['eligible'])continue;let _0x33431c=(0x0,e[_0x55cbd4(0x242)])(_0x40cf66[_0x55cbd4(0x28b)]),_0x13a865=_0x33431c?(0x0,e[_0x55cbd4(0x1ae)])(_0x33431c):null;if(!_0x13a865||ze(_0x40cf66[_0x55cbd4(0x1ec)][_0x55cbd4(0x2be)],_0x13a865))continue;let _0x482f37=_0x559ac2['get'](_0x40cf66[_0x55cbd4(0x29f)]['unitId'])??[];_0x482f37[_0x55cbd4(0x212)]({'rangeId':_0x40cf66[_0x55cbd4(0x29f)][_0x55cbd4(0x296)],'expectedFormula':_0x40cf66[_0x55cbd4(0x1ec)]['formula'],'expectedNumberFormat':(_0x38ba8e=_0x40cf66[_0x55cbd4(0x1ec)][_0x55cbd4(0x21a)])==null?void 0x0:_0x38ba8e['pattern'],'expectedReferenceRevision':_0x40cf66[_0x55cbd4(0x217)],'lastValue':_0x13a865}),_0x559ac2[_0x55cbd4(0x1b8)](_0x40cf66[_0x55cbd4(0x29f)][_0x55cbd4(0x1f9)],_0x482f37);}return Array[_0x55cbd4(0x231)](_0x559ac2,([_0x443968,_0xd4e4ce])=>({'id':R['id'],'params':{'unitId':_0x443968,'updates':_0xd4e4ce}}));}};Q=A([k(0x0,(0x0,t[_0x515828(0x282)])(j)),k(0x1,(0x0,t[_0x515828(0x282)])(e[_0x515828(0x2d4)])),k(0x2,(0x0,t[_0x515828(0x282)])(e[_0x515828(0x228)]))],Q);function ze(_0x3d530e,_0x50c1a6){const _0x1ae39e=_0x515828;return(_0x3d530e==null?void 0x0:_0x3d530e['v'])===_0x50c1a6['v']&&(_0x3d530e==null?void 0x0:_0x3d530e['t'])===_0x50c1a6['t']&&(_0x3d530e==null?void 0x0:_0x3d530e[_0x1ae39e(0x224)])===_0x50c1a6[_0x1ae39e(0x224)];}let $=class extends t[_0x515828(0x1d2)]{constructor(_0x5c7dc7=Fe,_0x1fda5a,_0x3b278e,_0x29df7f){const _0x2d569c=_0x515828;super(),this[_0x2d569c(0x1c0)]=_0x5c7dc7,this[_0x2d569c(0x213)]=_0x1fda5a,this[_0x2d569c(0x2f6)]=_0x3b278e,this[_0x2d569c(0x2e7)]=_0x29df7f;let {..._0x54ef7c}=(0x0,t[_0x2d569c(0x2c6)])({},Fe,this[_0x2d569c(0x1c0)]);this[_0x2d569c(0x2e7)]['setConfig']('docs-formula.config',_0x54ef7c);}['onStarting'](){const _0x4c1a89=_0x515828;this[_0x4c1a89(0x213)]['add']([O]),this['_injector'][_0x4c1a89(0x2ac)]([j]),this[_0x4c1a89(0x213)][_0x4c1a89(0x2ac)]([X]),this[_0x4c1a89(0x213)][_0x4c1a89(0x2ac)]([Y]),this[_0x4c1a89(0x213)]['add']([Q]),this[_0x4c1a89(0x213)]['add']([Z]),(0x0,t[_0x4c1a89(0x1cf)])(this[_0x4c1a89(0x213)],[[O],[X],[Y],[Q],[Z]]),[F,I,L,R,z,B,V,H,U,W]['forEach'](_0x2107ba=>this[_0x4c1a89(0x24f)](this[_0x4c1a89(0x2f6)][_0x4c1a89(0x260)](_0x2107ba)));}};D($,_0x515828(0x1bf),o),D($,'packageName',Ne),D($,_0x515828(0x23c),Pe),D($,_0x515828(0x20e),t[_0x515828(0x236)]['UNIVER_DOC']),$=A([(0x0,t[_0x515828(0x1b9)])(a[_0x515828(0x1d9)],e['UniverProFormulaEnginePlugin'],n[_0x515828(0x28e)]),k(0x1,(0x0,t[_0x515828(0x282)])(t[_0x515828(0x203)])),k(0x2,t[_0x515828(0x285)]),k(0x3,t[_0x515828(0x2bc)])],$),exports[_0x515828(0x26a)]=W,exports['DOC_FORMULA_CUSTOM_RANGE_KIND']=s,exports[_0x515828(0x284)]='',exports['DOC_FORMULA_PLUGIN']=o,exports[_0x515828(0x225)]=0x1,Object['defineProperty'](exports,'DocFormulaDisplayTextService',{'enumerable':!0x0,'get':function(){return Z;}}),Object[_0x515828(0x255)](exports,_0x515828(0x27e),{'enumerable':!0x0,'get':function(){return Y;}}),exports[_0x515828(0x2c1)]=O,Object[_0x515828(0x255)](exports,_0x515828(0x297),{'enumerable':!0x0,'get':function(){return X;}}),exports[_0x515828(0x25e)]=ve,Object['defineProperty'](exports,_0x515828(0x238),{'enumerable':!0x0,'get':function(){return j;}}),exports[_0x515828(0x2d9)]=z,exports[_0x515828(0x22c)]=m,exports[_0x515828(0x287)]=H,exports[_0x515828(0x2b6)]=I,exports[_0x515828(0x26f)]=U,exports[_0x515828(0x2fb)]=R,exports[_0x515828(0x21c)]=F,exports[_0x515828(0x1fa)]=V,exports[_0x515828(0x270)]=L,Object['defineProperty'](exports,'UniverDocsFormulaPlugin',{'enumerable':!0x0,'get':function(){return $;}}),exports[_0x515828(0x237)]=B,exports[_0x515828(0x22d)]=ie,exports[_0x515828(0x298)]=te,exports[_0x515828(0x2ef)]=h,exports[_0x515828(0x278)]=ne,exports[_0x515828(0x1eb)]=c,exports[_0x515828(0x1e0)]=Ie,exports[_0x515828(0x205)]=_,exports[_0x515828(0x2eb)]=u,exports[_0x515828(0x204)]=g,exports[_0x515828(0x240)]=l,exports[_0x515828(0x223)]=d;
|
|
1
|
+
const _0x5ef621=_0x2ae2;(function(_0x8a31e6,_0x1717ef){const _0x3ed690=_0x2ae2,_0x525b99=_0x8a31e6();while(!![]){try{const _0x1fb69d=-parseInt(_0x3ed690(0x25e))/0x1*(parseInt(_0x3ed690(0x292))/0x2)+parseInt(_0x3ed690(0x2c4))/0x3+-parseInt(_0x3ed690(0x252))/0x4*(-parseInt(_0x3ed690(0x238))/0x5)+-parseInt(_0x3ed690(0x23f))/0x6+parseInt(_0x3ed690(0x231))/0x7*(-parseInt(_0x3ed690(0x25d))/0x8)+-parseInt(_0x3ed690(0x1ba))/0x9*(-parseInt(_0x3ed690(0x2b0))/0xa)+parseInt(_0x3ed690(0x248))/0xb;if(_0x1fb69d===_0x1717ef)break;else _0x525b99['push'](_0x525b99['shift']());}catch(_0x44835f){_0x525b99['push'](_0x525b99['shift']());}}}(_0x17a8,0x88a4b),Object[_0x5ef621(0x23e)](exports,Symbol[_0x5ef621(0x1ef)],{'value':_0x5ef621(0x1c6)}));let e=require('@univerjs-pro/engine-formula'),t=require('@univerjs/core'),n=require('@univerjs/docs'),r=require('@univerjs/engine-formula'),i=require('rxjs'),a=require('@univerjs-pro/license');const o=_0x5ef621(0x28a),s=_0x5ef621(0x29b);function _0x2ae2(_0x266c29,_0x120c7e){_0x266c29=_0x266c29-0x1aa;const _0x17a81f=_0x17a8();let _0x2ae2bf=_0x17a81f[_0x266c29];return _0x2ae2bf;}function c(){return{'schemaVersion':0x1,'formulas':{}};}function l(_0x4bbec2){const _0xf71a25=_0x5ef621;return!_0x4bbec2||typeof _0x4bbec2!=_0xf71a25(0x284)||!f(_0x4bbec2,[_0xf71a25(0x22e),_0xf71a25(0x23c)])||!(_0xf71a25(0x22e)in _0x4bbec2)||_0x4bbec2[_0xf71a25(0x22e)]!==0x1||!(_0xf71a25(0x23c)in _0x4bbec2)||!_0x4bbec2['formulas']||typeof _0x4bbec2['formulas']!='object'||Array[_0xf71a25(0x1e5)](_0x4bbec2['formulas'])?!0x1:Object[_0xf71a25(0x279)](_0x4bbec2[_0xf71a25(0x23c)])[_0xf71a25(0x2c3)](([_0x4b49d5,_0x9efe25])=>_0x4b49d5[_0xf71a25(0x1ae)]>0x0&&u(_0x9efe25));}function u(_0x5e7b03){const _0x5c30d3=_0x5ef621;return!_0x5e7b03||typeof _0x5e7b03!='object'||!f(_0x5e7b03,['formula',_0x5c30d3(0x1bf),_0x5c30d3(0x1bb)])||!(_0x5c30d3(0x1ce)in _0x5e7b03)||typeof _0x5e7b03[_0x5c30d3(0x1ce)]!='string'||!_0x5e7b03[_0x5c30d3(0x1ce)][_0x5c30d3(0x213)]()||_0x5c30d3(0x1bf)in _0x5e7b03&&_0x5e7b03['numberFormat']!=null&&(typeof _0x5e7b03[_0x5c30d3(0x1bf)]!=_0x5c30d3(0x284)||!f(_0x5e7b03[_0x5c30d3(0x1bf)],[_0x5c30d3(0x1fc)])||!(_0x5c30d3(0x1fc)in _0x5e7b03[_0x5c30d3(0x1bf)])||typeof _0x5e7b03['numberFormat'][_0x5c30d3(0x1fc)]!=_0x5c30d3(0x1e8))?!0x1:!(_0x5c30d3(0x1bb)in _0x5e7b03)||_0x5e7b03[_0x5c30d3(0x1bb)]==null||d(_0x5e7b03[_0x5c30d3(0x1bb)]);}function d(_0x4d4595){const _0x160369=_0x5ef621;return!_0x4d4595||typeof _0x4d4595!=_0x160369(0x284)||!f(_0x4d4595,['v','t',_0x160369(0x1fc)])||!('v'in _0x4d4595)||_0x4d4595['v']!==null&&typeof _0x4d4595['v']!='string'&&typeof _0x4d4595['v']!=_0x160369(0x1ac)&&typeof _0x4d4595['v']!=_0x160369(0x2df)||'t'in _0x4d4595&&_0x4d4595['t']!=null&&!ee(_0x4d4595['t'])?!0x1:!(_0x160369(0x1fc)in _0x4d4595)||_0x4d4595[_0x160369(0x1fc)]==null||typeof _0x4d4595[_0x160369(0x1fc)]==_0x160369(0x1e8);}function f(_0x355b07,_0x4c4c4e){const _0x8b351f=_0x5ef621;let _0x1d9f0e=new Set(_0x4c4c4e);return Object[_0x8b351f(0x264)](_0x355b07)[_0x8b351f(0x2c3)](_0x27ecbc=>_0x1d9f0e[_0x8b351f(0x258)](_0x27ecbc));}function ee(_0x5b4565){const _0x2d6a9b=_0x5ef621;return typeof _0x5b4565=='number'&&Object['values'](t[_0x2d6a9b(0x2de)])[_0x2d6a9b(0x1b8)](_0x5b4565);}function _0x17a8(){const _0x162bc1=['wholeEntity','constructor','dispose','UpdateDocFormulaCommand','getParagraphContentStartOffset','eligible','customRanges','resolveText','end','presentationChanged$','unregister','_commandService','SUCCESS','DataStreamTreeTokenType','PENDING','pushUndoRedo','trim','_configService','TABLE_START','getFormulas','liveResult','docs-formula.command.set-number-format','_syncScheduled','_docFormulaModel','_formulaKeys','ReplaceDocFormulaWithTextCommand','setResource','formulaResult$','buildRemoveDocFormulaActions','startOffset','docs-formula.command.remove','serialize','_model','referenceRevision','buildUpsertHostExternalReferenceMutations','DocFormulaLifecycleController','stale','getOwnPropertyDescriptor','shiftInclusiveRangeOnInsert','Disposable','getUnit','_change$','model','schemaVersion','getAllUnitsForType','syncUnit','218869uEVLsj','DOC_FORMULA_CUSTOM_RANGE_KIND','formulaId','get','nextDocumentData','references','SECTION_BREAK','398250OmNjyS','isDocFormulaRange','iterator','RichTextEditingMutation','formulas','add','defineProperty','4742946pEtWUe','DOC_FORMULA_OBJECT_REPLACEMENT','resource','deleteFormula','_instanceService','generateRandomId','slice','getFormula','position','11403799WljRtm','tables','DocFormulaDisplayTextService','SetDocFormulaNumberFormatCommand','retain','symbol','COLUMN_END','name','start','ERROR','56cHKPmg','min','source','_service','status','getCustomRangeInterval','has','_registrations','pluginName','createEmptyDocFormulaResource','getBodySliceForTextXAction','152oQsZSS','4932BgAIBT','degradeDocFormulaDocumentData','SetDocFormulaLastValuesMutation','endIndex','COLUMN_GROUP_END','columnGroups','keys','startIndex','unitId','_pendingUnitIds','shiftExclusiveRangeOnDelete','_formulaService','expectedReferenceRevision','DocSelectionManagerService','find','_config','identity','parse','range','IUndoRedoService','TABLE_CELL_START','touchDependencies','_hostExternalReferenceModel','_preserveInvalid','EMPTY','type','UNIVER_DOC','entries','externalMutations','deleteLength','_isDisposed','push','UniverDocsPlugin','params','accessor','1.0.0-beta.1','_rawResources','resources','object','buildUpdateDocFormulaActions','onStarting','removeUnit','getPresentation','redoMutation','DOC_FORMULA_PLUGIN','startsWith','success','getTextRanges','config','IConfigService','documentRedo','setFormulas','302Yvimyt','_univerInstanceService','unregisterUnit','PARAGRAPH','FormulaLastValuePersistenceService','ICommandService','Injector','CUSTOM','Inject','univer-docs-formula','presentation','UniverLicensePlugin','FormulaCacheEligibilityService','assertSafeDocFormulaInsertRange','_registrationService','documentData','docs-formula.mutation.set-last-values','change$','Tools','decorate','previousDocumentData','updates','JSONX','values','disposeWithMe','error','_resources','filter','cell','customDecorations','135370MCcLmm','DocFormulaResourceController','_presentationChanged$','docs-formula.command.replace-with-text','resolveFormulaResultPresentation','Subject','externalReferences','TextX','asObservable','RemoveDocFormulaCommand','getFormulaValueSync','unitDisposed$','TABLE_CELL_END','isInteger','docs-formula.command.convert-to-text','registerFormulaWithRange','setConfig','getRegisteredFormulas','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','every','1570923ErqFFh','pending','resolveFormula','_setPresentation','assess','color','next','docs-formula.command.update','sequenceNodesBuilder','body','segmentId','paragraphId','document','docs-formula.config','getSnapshot','BLOCK_START','undoMutation','insertLength','trigger','resourceRedo','resolveHostFormulaExternalReferences','version','selection','getResource','shiftInclusiveRangeOnDelete','CUSTOM_BLOCK','CellValueType','boolean','getRevision','rangeId','_deleteRegistration','DocFormulaResultStatus','packageName','complete','endOffset','prototype','getScalarFormulaResultCell','expectedFormula','paragraphs','number','_cacheEligibilityService','length','getLoadError','load','nextResource','DOC','registerPluginResource','registerCommand','forEach','_resourceManagerService','default','includes','UniverProFormulaEnginePlugin','9ioGjeu','lastValue','IUniverInstanceService','onCommandExecuted','delete','numberFormat','blockRanges','RegisterOtherFormulaService','getUnitId','OtherFormulaBizType','HostExternalReferenceModel','syncExecuteCommand','Module','CustomRangeType','getResult','endsWith','toFormulaLastValue','some','dataStream','docs-formula.command.insert','formula','getBody','registerProvider','rangeType','toPrimitive','_injector','textRuns','COMMAND','expectedNumberFormat','deepClone','from','CommandType','customBlocks','clear','Document\x20main\x20body\x20is\x20required\x20to\x20insert\x20Doc\x20Formula.','BLOCK_END','subscribe','UniverInstanceType','cursorOffset','replaceDocRanges','MUTATION','RemoveDocFormulaMutation','empty','isArray','sectionBreaks','sort','string','IResourceManagerService','docs-formula.mutation.remove-formula','_syncUnit','COLUMN_START','degradeDocumentData','_updateFormulaResult','toStringTag','paragraph','SetDocFormulaResourceMutation','buildInsertDocFormulaActions','DocTextResolverService','_loadErrors','DOC_SELECTION_OPTION_PRESERVE_CARET','previousResource','editOp','isFormulaLastValue','max','set','resolved','pattern','function','map','notifyTextChanged','DOC_FORMULA_SCHEMA_VERSION','text','degradeBody'];_0x17a8=function(){return _0x162bc1;};return _0x17a8();}const p=new Set([t['DataStreamTreeTokenType']['SECTION_BREAK'],t[_0x5ef621(0x210)][_0x5ef621(0x215)],t[_0x5ef621(0x210)]['TABLE_ROW_START'],t[_0x5ef621(0x210)][_0x5ef621(0x272)],t[_0x5ef621(0x210)][_0x5ef621(0x2bc)],t['DataStreamTreeTokenType']['TABLE_ROW_END'],t[_0x5ef621(0x210)]['TABLE_END'],t[_0x5ef621(0x210)]['COLUMN_GROUP_START'],t[_0x5ef621(0x210)][_0x5ef621(0x1ec)],t[_0x5ef621(0x210)][_0x5ef621(0x24e)],t['DataStreamTreeTokenType'][_0x5ef621(0x262)],t[_0x5ef621(0x210)][_0x5ef621(0x2d3)],t[_0x5ef621(0x210)][_0x5ef621(0x1dd)],t[_0x5ef621(0x210)][_0x5ef621(0x2dd)]]);var m=class extends Error{constructor(){super('Doc\x20Formula\x20range\x20cannot\x20cross\x20document\x20structure\x20boundaries');}};function te(_0x18cf3d){const _0x44355e=_0x5ef621;var _0x38c46b,_0x46f324;let _0x4ec1f3=t[_0x44355e(0x2a4)]['deepClone'](_0x18cf3d['documentData']),_0x5817a6=T(_0x4ec1f3),{startOffset:_0x30239c,endOffset:_0x45b2e4}=oe(_0x5817a6,_0x18cf3d[_0x44355e(0x220)],_0x18cf3d[_0x44355e(0x2e6)]);ie(_0x5817a6,_0x30239c,_0x45b2e4);let _0x4a7f0a=((_0x38c46b=_0x5817a6['customRanges'])==null?void 0x0:_0x38c46b['filter'](_0x2c4bd1=>{const _0x441379=_0x44355e;if(!g(_0x2c4bd1))return!0x1;let _0x5ac126=(0x0,t[_0x441379(0x257)])(_0x2c4bd1);return _0x5ac126['endOffset']>_0x30239c&&_0x5ac126[_0x441379(0x220)]<_0x45b2e4;})[_0x44355e(0x1fe)](_0xee5e5f=>_0xee5e5f['rangeId']))??[];ce(_0x5817a6,_0x30239c,_0x45b2e4,''),_0x5817a6[_0x44355e(0x209)]=[...((_0x46f324=_0x5817a6[_0x44355e(0x209)])==null?void 0x0:_0x46f324[_0x44355e(0x2ad)](_0x4ef06e=>!_0x4a7f0a[_0x44355e(0x1b8)](_0x4ef06e[_0x44355e(0x2e1)])&&_0x4ef06e[_0x44355e(0x2e1)]!==_0x18cf3d[_0x44355e(0x2e1)]))??[],ae(_0x18cf3d[_0x44355e(0x2e1)],_0x30239c)][_0x44355e(0x1e7)]((_0x3f1296,_0x54b901)=>_0x3f1296['startIndex']-_0x54b901[_0x44355e(0x265)]);let _0x328818=v(_0x18cf3d['resource']);return _0x4a7f0a[_0x44355e(0x1b5)](_0x438048=>{const _0x375b29=_0x44355e;delete _0x328818[_0x375b29(0x23c)][_0x438048];}),_0x328818[_0x44355e(0x23c)][_0x18cf3d['rangeId']]=t[_0x44355e(0x2a4)]['deepClone'](_0x18cf3d[_0x44355e(0x28e)]),{'nextDocumentData':_0x4ec1f3,'nextResource':_0x328818,'cursorOffset':_0x30239c+0x1};}function ne(_0x125cba){const _0x3486af=_0x5ef621;var _0xa65095,_0x4e7178;let _0x295c8e=t[_0x3486af(0x2a4)][_0x3486af(0x1d7)](_0x125cba[_0x3486af(0x2a1)]),_0x3f52d7=(_0xa65095=T(_0x295c8e)[_0x3486af(0x209)])==null?void 0x0:_0xa65095['find'](_0x3d0e5d=>_0x3d0e5d[_0x3486af(0x2e1)]===_0x125cba[_0x3486af(0x2e1)]&&g(_0x3d0e5d));if(!_0x3f52d7||!((_0x4e7178=_0x125cba[_0x3486af(0x241)])!=null&&_0x4e7178[_0x3486af(0x23c)][_0x125cba[_0x3486af(0x2e1)]]))return null;let _0x5570b7=v(_0x125cba['resource']);return _0x5570b7[_0x3486af(0x23c)][_0x125cba[_0x3486af(0x2e1)]]=t['Tools'][_0x3486af(0x1d7)](_0x125cba[_0x3486af(0x28e)]),{'nextDocumentData':_0x295c8e,'nextResource':_0x5570b7,'cursorOffset':_0x3f52d7[_0x3486af(0x261)]+0x1};}function h(_0xe11502){const _0x3603a9=_0x5ef621;let _0x4b4f14=t['Tools'][_0x3603a9(0x1d7)](_0xe11502[_0x3603a9(0x2a1)]),_0x326921=le(_0x4b4f14,_0xe11502[_0x3603a9(0x2e1)],_0xe11502[_0x3603a9(0x201)]??'');if(_0x326921==null)return null;let _0x23bff0=v(_0xe11502[_0x3603a9(0x241)]);return delete _0x23bff0[_0x3603a9(0x23c)][_0xe11502[_0x3603a9(0x2e1)]],{'nextDocumentData':_0x4b4f14,'nextResource':_0x23bff0,'cursorOffset':_0x326921};}function re(_0x15e934,_0x5bafee){const _0x5246c4=_0x5ef621;var _0x53e235;let _0x20f9e9=t[_0x5246c4(0x2a4)][_0x5246c4(0x1d7)](_0x15e934),_0x55baf4=_0x20f9e9[_0x5246c4(0x2cd)];if(!_0x55baf4)return _0x20f9e9;let _0x1ce814=new Map(_0x5bafee['map'](_0x4488e7=>[_0x4488e7[_0x5246c4(0x2e1)],_0x4488e7[_0x5246c4(0x201)]])),_0x46813f=((_0x53e235=_0x55baf4[_0x5246c4(0x209)])==null?void 0x0:_0x53e235[_0x5246c4(0x2ad)](_0x48221a=>g(_0x48221a)&&_0x1ce814[_0x5246c4(0x258)](_0x48221a[_0x5246c4(0x2e1)]))['sort']((_0x429be4,_0x22e6a4)=>_0x22e6a4['startIndex']-_0x429be4[_0x5246c4(0x265)]))??[];for(let _0x318205 of _0x46813f)le(_0x20f9e9,_0x318205['rangeId'],_0x1ce814[_0x5246c4(0x234)](_0x318205[_0x5246c4(0x2e1)])??'');return _0x20f9e9;}function g(_0x306862){const _0x1e7a90=_0x5ef621;var _0x2e6837;return(_0x306862==null?void 0x0:_0x306862[_0x1e7a90(0x1d1)])===t['CustomRangeType'][_0x1e7a90(0x299)]&&_0x306862[_0x1e7a90(0x203)]===!0x0&&((_0x2e6837=_0x306862['properties'])==null?void 0x0:_0x2e6837['kind'])===_0x1e7a90(0x29b);}function _(_0x185711,_0x429885){const _0x55c793=_0x5ef621;var _0x105340;return _0x185711==null||(_0x105340=_0x185711['customRanges'])==null?void 0x0:_0x105340[_0x55c793(0x26c)](_0x32947a=>_0x32947a[_0x55c793(0x2e1)]===_0x429885&&g(_0x32947a));}function ie(_0x101978,_0x2d1824,_0xdd57fe){const _0x5b54dd=_0x5ef621;if(_0x2d1824===_0xdd57fe){if(p[_0x5b54dd(0x258)](_0x101978[_0x5b54dd(0x1cc)][_0x2d1824]))throw new m();return;}for(let _0x31f26d=_0x2d1824;_0x31f26d<_0xdd57fe;_0x31f26d++)if(_0x101978['dataStream'][_0x31f26d]===t['DataStreamTreeTokenType']['PARAGRAPH']||p[_0x5b54dd(0x258)](_0x101978[_0x5b54dd(0x1cc)][_0x31f26d]))throw new m();}function ae(_0x39b793,_0x5869e6){const _0x1abde8=_0x5ef621;return{'startIndex':_0x5869e6,'endIndex':_0x5869e6,'rangeId':_0x39b793,'rangeType':t[_0x1abde8(0x1c7)][_0x1abde8(0x299)],'wholeEntity':!0x0,'properties':{'kind':s}};}function v(_0x45fe85){const _0x15f19c=_0x5ef621;return _0x45fe85?t[_0x15f19c(0x2a4)][_0x15f19c(0x1d7)](_0x45fe85):c();}function oe(_0x1d6bbb,_0x1e7ce2,_0x24e23f){const _0xb6d80e=_0x5ef621;let _0xb3c53b=se(_0x1d6bbb),_0x1a399a=_0x1e7ce2??_0xb3c53b,_0xec588c=_0x24e23f??_0x1a399a;return{'startOffset':y(Math[_0xb6d80e(0x253)](_0x1a399a,_0xec588c),_0xb3c53b),'endOffset':y(Math[_0xb6d80e(0x1f9)](_0x1a399a,_0xec588c),_0xb3c53b)};}function y(_0x201393,_0x26b736){const _0x39a802=_0x5ef621;return Math['max'](0x0,Math[_0x39a802(0x253)](_0x201393,_0x26b736));}function se(_0x48cc64){const _0x472722=_0x5ef621;return _0x48cc64[_0x472722(0x1cc)][_0x472722(0x1c9)](''+t[_0x472722(0x210)][_0x472722(0x295)]+t[_0x472722(0x210)][_0x472722(0x237)])?Math['max'](0x0,_0x48cc64[_0x472722(0x1cc)]['length']-0x2):_0x48cc64['dataStream']['endsWith'](t[_0x472722(0x210)]['SECTION_BREAK'])?Math[_0x472722(0x1f9)](0x0,_0x48cc64['dataStream'][_0x472722(0x1ae)]-0x1):_0x48cc64['dataStream'][_0x472722(0x1ae)];}function ce(_0x525a06,_0x384139,_0x5cb90f,_0x432ab2){_0x5cb90f>_0x384139&&de(_0x525a06,_0x384139,_0x5cb90f),ue(_0x525a06,_0x384139,_0x432ab2);}function le(_0x35540b,_0x22748a,_0x3c04fc){const _0x4af76f=_0x5ef621;var _0x2b9f1e,_0x47e1cf;let _0x3df3c1=T(_0x35540b),_0x5dd528=(_0x2b9f1e=_0x3df3c1['customRanges'])==null?void 0x0:_0x2b9f1e['find'](_0x2d8a7d=>_0x2d8a7d[_0x4af76f(0x2e1)]===_0x22748a&&g(_0x2d8a7d));if(!_0x5dd528)return null;let _0xb66824=(0x0,t[_0x4af76f(0x257)])(_0x5dd528);return ce(_0x3df3c1,_0xb66824['startOffset'],_0xb66824[_0x4af76f(0x2e6)],_0x3c04fc),_0x3df3c1[_0x4af76f(0x209)]=(_0x47e1cf=_0x3df3c1[_0x4af76f(0x209)])==null?void 0x0:_0x47e1cf[_0x4af76f(0x2ad)](_0x427560=>_0x427560[_0x4af76f(0x2e1)]!==_0x22748a),_0xb66824[_0x4af76f(0x220)]+_0x3c04fc[_0x4af76f(0x1ae)];}function ue(_0x3af3b3,_0x3e3399,_0x562649){const _0x408429=_0x5ef621;_0x562649&&(_0x3af3b3[_0x408429(0x1cc)]=''+_0x3af3b3['dataStream'][_0x408429(0x245)](0x0,_0x3e3399)+_0x562649+_0x3af3b3[_0x408429(0x1cc)][_0x408429(0x245)](_0x3e3399),fe(_0x3af3b3,_0x3e3399,_0x562649[_0x408429(0x1ae)]));}function de(_0x3800c6,_0x47d8b1,_0x24a304){const _0x2152ed=_0x5ef621;let _0x561a5b=_0x24a304-_0x47d8b1;_0x3800c6['dataStream']=''+_0x3800c6[_0x2152ed(0x1cc)][_0x2152ed(0x245)](0x0,_0x47d8b1)+_0x3800c6[_0x2152ed(0x1cc)][_0x2152ed(0x245)](_0x24a304),pe(_0x3800c6,_0x47d8b1,_0x561a5b);}function fe(_0x4a456a,_0x2d2477,_0x52daee){const _0x169ffa=_0x5ef621;_0x4a456a[_0x169ffa(0x1ab)]=b(_0x4a456a[_0x169ffa(0x1ab)],_0x2d2477,_0x52daee),_0x4a456a[_0x169ffa(0x1e6)]=b(_0x4a456a[_0x169ffa(0x1e6)],_0x2d2477,_0x52daee),_0x4a456a[_0x169ffa(0x1da)]=b(_0x4a456a[_0x169ffa(0x1da)],_0x2d2477,_0x52daee),_0x4a456a[_0x169ffa(0x1d4)]=me(_0x4a456a[_0x169ffa(0x1d4)],_0x2d2477,_0x52daee),_0x4a456a[_0x169ffa(0x249)]=he(_0x4a456a[_0x169ffa(0x249)],_0x2d2477,_0x52daee),_0x4a456a[_0x169ffa(0x263)]=S(_0x4a456a[_0x169ffa(0x263)],_0x2d2477,_0x52daee),_0x4a456a[_0x169ffa(0x209)]=S(_0x4a456a[_0x169ffa(0x209)],_0x2d2477,_0x52daee),_0x4a456a['customDecorations']=S(_0x4a456a[_0x169ffa(0x2af)],_0x2d2477,_0x52daee),_0x4a456a[_0x169ffa(0x1c0)]=S(_0x4a456a[_0x169ffa(0x1c0)],_0x2d2477,_0x52daee);}function pe(_0x29a7b4,_0x5d71b6,_0x414ac6){const _0x414db9=_0x5ef621;var _0xb5573d,_0x31a947;_0x29a7b4[_0x414db9(0x1ab)]=x(_0x29a7b4[_0x414db9(0x1ab)],_0x5d71b6,_0x414ac6),_0x29a7b4[_0x414db9(0x1e6)]=x(_0x29a7b4['sectionBreaks'],_0x5d71b6,_0x414ac6),_0x29a7b4[_0x414db9(0x1da)]=x(_0x29a7b4[_0x414db9(0x1da)],_0x5d71b6,_0x414ac6),_0x29a7b4[_0x414db9(0x1d4)]=(_0xb5573d=w((_0x31a947=_0x29a7b4[_0x414db9(0x1d4)])==null?void 0x0:_0x31a947[_0x414db9(0x1fe)](_0x71c8fe=>({..._0x71c8fe,'startIndex':_0x71c8fe['st'],'endIndex':_0x71c8fe['ed']})),_0x5d71b6,_0x414ac6))==null?void 0x0:_0xb5573d['map'](_0x15120a=>{let {startIndex:_0x218a7c,endIndex:_0x4803c2,..._0x1ac821}=_0x15120a;return{..._0x1ac821,'st':_0x218a7c,'ed':_0x4803c2};}),_0x29a7b4[_0x414db9(0x249)]=w(_0x29a7b4[_0x414db9(0x249)],_0x5d71b6,_0x414ac6),_0x29a7b4[_0x414db9(0x263)]=C(_0x29a7b4['columnGroups'],_0x5d71b6,_0x414ac6),_0x29a7b4[_0x414db9(0x209)]=C(_0x29a7b4[_0x414db9(0x209)],_0x5d71b6,_0x414ac6),_0x29a7b4[_0x414db9(0x2af)]=C(_0x29a7b4[_0x414db9(0x2af)],_0x5d71b6,_0x414ac6),_0x29a7b4[_0x414db9(0x1c0)]=C(_0x29a7b4[_0x414db9(0x1c0)],_0x5d71b6,_0x414ac6);}function b(_0x1079bc,_0x273f00,_0x1be4f0){const _0x22b9d7=_0x5ef621;return _0x1079bc==null?void 0x0:_0x1079bc[_0x22b9d7(0x1fe)](_0xa2dc56=>_0xa2dc56[_0x22b9d7(0x265)]>=_0x273f00?{..._0xa2dc56,'startIndex':_0xa2dc56[_0x22b9d7(0x265)]+_0x1be4f0}:_0xa2dc56);}function x(_0x22c293,_0x18f67c,_0x24b006){const _0x24c2d6=_0x5ef621;let _0x4d3a3f=_0x18f67c+_0x24b006;return _0x22c293==null?void 0x0:_0x22c293['map'](_0x3869a4=>_0x3869a4[_0x24c2d6(0x265)]>=_0x18f67c&&_0x3869a4['startIndex']<_0x4d3a3f?null:_0x3869a4[_0x24c2d6(0x265)]>=_0x4d3a3f?{..._0x3869a4,'startIndex':_0x3869a4[_0x24c2d6(0x265)]-_0x24b006}:_0x3869a4)[_0x24c2d6(0x2ad)](_0x5e8544=>_0x5e8544!=null);}function me(_0x404f68,_0x2dd5e0,_0x23f184){return _0x404f68==null?void 0x0:_0x404f68['map'](_0x5eb04c=>_0x5eb04c['st']>=_0x2dd5e0?{..._0x5eb04c,'st':_0x5eb04c['st']+_0x23f184,'ed':_0x5eb04c['ed']+_0x23f184}:_0x5eb04c['ed']>_0x2dd5e0?{..._0x5eb04c,'ed':_0x5eb04c['ed']+_0x23f184}:_0x5eb04c);}function S(_0x373ecd,_0x17f216,_0x2c1927){const _0x52ef7c=_0x5ef621;return _0x373ecd==null?void 0x0:_0x373ecd[_0x52ef7c(0x1fe)](_0xb25f8c=>(0x0,t[_0x52ef7c(0x229)])(_0xb25f8c,_0x17f216,_0x2c1927));}function he(_0xd5492,_0x5b30ce,_0x21b128){return _0xd5492==null?void 0x0:_0xd5492['map'](_0x3ac5ea=>(0x0,t['shiftExclusiveRangeOnInsert'])(_0x3ac5ea,_0x5b30ce,_0x21b128));}function C(_0x30aed0,_0x1ddebc,_0x50e659){const _0x5ce0d8=_0x5ef621;return _0x30aed0==null?void 0x0:_0x30aed0[_0x5ce0d8(0x1fe)](_0x18dbcb=>(0x0,t[_0x5ce0d8(0x2dc)])(_0x18dbcb,_0x1ddebc,_0x50e659))[_0x5ce0d8(0x2ad)](_0x1e7ca0=>_0x1e7ca0!=null);}function w(_0x3becaf,_0xc54569,_0x59444c){const _0x428c61=_0x5ef621;return _0x3becaf==null?void 0x0:_0x3becaf['map'](_0x394836=>(0x0,t[_0x428c61(0x268)])(_0x394836,_0xc54569,_0x59444c))[_0x428c61(0x2ad)](_0x3ceea0=>_0x3ceea0!=null);}function T(_0xd9064f){const _0x385f45=_0x5ef621;if(!_0xd9064f[_0x385f45(0x2cd)])throw Error(_0x385f45(0x1dc));return _0xd9064f[_0x385f45(0x2cd)];}function E(_0x4a936c){'@babel/helpers - typeof';const _0x33c435=_0x5ef621;return E=typeof Symbol==_0x33c435(0x1fd)&&typeof Symbol[_0x33c435(0x23a)]==_0x33c435(0x24d)?function(_0x2304c6){return typeof _0x2304c6;}:function(_0x27bc4b){const _0x563490=_0x33c435;return _0x27bc4b&&typeof Symbol==_0x563490(0x1fd)&&_0x27bc4b[_0x563490(0x204)]===Symbol&&_0x27bc4b!==Symbol[_0x563490(0x2e7)]?'symbol':typeof _0x27bc4b;},E(_0x4a936c);}function ge(_0x100d9b,_0x5ced8c){const _0x40a38f=_0x5ef621;if(E(_0x100d9b)!='object'||!_0x100d9b)return _0x100d9b;var _0x5dfa67=_0x100d9b[Symbol[_0x40a38f(0x1d2)]];if(_0x5dfa67!==void 0x0){var _0x4ee129=_0x5dfa67['call'](_0x100d9b,_0x5ced8c||_0x40a38f(0x1b7));if(E(_0x4ee129)!='object')return _0x4ee129;throw TypeError(_0x40a38f(0x2c2));}return(_0x5ced8c===_0x40a38f(0x1e8)?String:Number)(_0x100d9b);}function _e(_0x3c9ec8){const _0x276735=_0x5ef621;var _0x59e0cb=ge(_0x3c9ec8,'string');return E(_0x59e0cb)==_0x276735(0x24d)?_0x59e0cb:_0x59e0cb+'';}function D(_0x53e819,_0x3297c9,_0x36f753){const _0xf9f8da=_0x5ef621;return(_0x3297c9=_e(_0x3297c9))in _0x53e819?Object[_0xf9f8da(0x23e)](_0x53e819,_0x3297c9,{'value':_0x36f753,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x53e819[_0x3297c9]=_0x36f753,_0x53e819;}var O=class extends t[_0x5ef621(0x22a)]{constructor(..._0x2f9304){const _0x34e29f=_0x5ef621;super(..._0x2f9304),D(this,_0x34e29f(0x2ac),new Map()),D(this,'_rawResources',new Map()),D(this,'_loadErrors',new Map()),D(this,_0x34e29f(0x22c),new i['Subject']()),D(this,_0x34e29f(0x2a3),this['_change$'][_0x34e29f(0x2b8)]());}[_0x5ef621(0x246)](_0x32cdb8,_0x50d5b3){const _0x8fcb0f=_0x5ef621;var _0x302e39;let _0x531a78=(_0x302e39=this[_0x8fcb0f(0x2ac)][_0x8fcb0f(0x234)](_0x32cdb8))==null?void 0x0:_0x302e39['formulas'][_0x50d5b3];return _0x531a78?t[_0x8fcb0f(0x2a4)][_0x8fcb0f(0x1d7)](_0x531a78):void 0x0;}['getFormulas'](_0x1cfd0e){const _0x1d7020=_0x5ef621;var _0x2b6a99;return t['Tools'][_0x1d7020(0x1d7)](((_0x2b6a99=this[_0x1d7020(0x2ac)][_0x1d7020(0x234)](_0x1cfd0e))==null?void 0x0:_0x2b6a99[_0x1d7020(0x23c)])??{});}[_0x5ef621(0x2db)](_0x49967f){const _0x61c992=_0x5ef621;let _0x486c38=this[_0x61c992(0x2ac)]['get'](_0x49967f);return _0x486c38?t[_0x61c992(0x2a4)][_0x61c992(0x1d7)](_0x486c38):void 0x0;}['setFormula'](_0x5ef48c,_0x40a941,_0x1991b7){const _0x1bc6f3=_0x5ef621;return this[_0x1bc6f3(0x291)](_0x5ef48c,{[_0x40a941]:_0x1991b7});}[_0x5ef621(0x21d)](_0x27f640,_0x345561){const _0x376595=_0x5ef621;return this['_loadErrors'][_0x376595(0x258)](_0x27f640)||!l(_0x345561)?!0x1:(this[_0x376595(0x2ac)][_0x376595(0x1fa)](_0x27f640,t[_0x376595(0x2a4)]['deepClone'](_0x345561)),this[_0x376595(0x22c)][_0x376595(0x2ca)]({'unitId':_0x27f640}),!0x0);}['setFormulas'](_0x51c7ca,_0x1233e7){const _0x40c8b0=_0x5ef621;if(this[_0x40c8b0(0x1f4)][_0x40c8b0(0x258)](_0x51c7ca)||!Object[_0x40c8b0(0x264)](_0x1233e7)['length']||!l({'schemaVersion':0x1,'formulas':_0x1233e7}))return!0x1;let _0xe407a1=this[_0x40c8b0(0x2ac)][_0x40c8b0(0x234)](_0x51c7ca)??c(),_0x413465=t[_0x40c8b0(0x2a4)][_0x40c8b0(0x1d7)](_0xe407a1);return Object['assign'](_0x413465['formulas'],t[_0x40c8b0(0x2a4)][_0x40c8b0(0x1d7)](_0x1233e7)),this['_resources']['set'](_0x51c7ca,_0x413465),this[_0x40c8b0(0x22c)]['next']({'unitId':_0x51c7ca,'rangeIds':Object[_0x40c8b0(0x264)](_0x1233e7)}),!0x0;}['removeFormula'](_0x2d1030,_0x11cba7){const _0x356184=_0x5ef621;if(this[_0x356184(0x1f4)][_0x356184(0x258)](_0x2d1030))return!0x1;let _0x25aaca=this[_0x356184(0x2ac)][_0x356184(0x234)](_0x2d1030);if(!(_0x25aaca!=null&&_0x25aaca[_0x356184(0x23c)][_0x11cba7]))return!0x1;let _0x5d0e3e=t[_0x356184(0x2a4)]['deepClone'](_0x25aaca);return delete _0x5d0e3e[_0x356184(0x23c)][_0x11cba7],this[_0x356184(0x2ac)][_0x356184(0x1fa)](_0x2d1030,_0x5d0e3e),this[_0x356184(0x22c)][_0x356184(0x2ca)]({'unitId':_0x2d1030,'rangeIds':[_0x11cba7]}),!0x0;}[_0x5ef621(0x1b0)](_0x1eba9d,_0x4ee702){const _0x2892ad=_0x5ef621;return _0x4ee702&&typeof _0x4ee702=='object'&&_0x2892ad(0x22e)in _0x4ee702&&_0x4ee702['schemaVersion']!==0x1?(this['_preserveInvalid'](_0x1eba9d,_0x4ee702,'unsupported-version'),!0x1):l(_0x4ee702)?(this[_0x2892ad(0x2ac)][_0x2892ad(0x1fa)](_0x1eba9d,t[_0x2892ad(0x2a4)]['deepClone'](_0x4ee702)),this[_0x2892ad(0x282)][_0x2892ad(0x1be)](_0x1eba9d),this[_0x2892ad(0x1f4)][_0x2892ad(0x1be)](_0x1eba9d),this['_change$'][_0x2892ad(0x2ca)]({'unitId':_0x1eba9d}),!0x0):(this[_0x2892ad(0x275)](_0x1eba9d,_0x4ee702,'invalid-resource'),!0x1);}[_0x5ef621(0x222)](_0xdffc5b){const _0xa005a5=_0x5ef621;let _0x3406b8=this['_resources'][_0xa005a5(0x234)](_0xdffc5b);return _0x3406b8?t[_0xa005a5(0x2a4)][_0xa005a5(0x1d7)](_0x3406b8):this[_0xa005a5(0x282)][_0xa005a5(0x258)](_0xdffc5b)?t[_0xa005a5(0x2a4)]['deepClone'](this[_0xa005a5(0x282)]['get'](_0xdffc5b)):c();}[_0x5ef621(0x1af)](_0x2fe792){const _0x235031=_0x5ef621;return this[_0x235031(0x1f4)]['get'](_0x2fe792);}[_0x5ef621(0x287)](_0x2c57b5){const _0x154f33=_0x5ef621;this[_0x154f33(0x2ac)][_0x154f33(0x1be)](_0x2c57b5),this[_0x154f33(0x282)][_0x154f33(0x1be)](_0x2c57b5),this[_0x154f33(0x1f4)][_0x154f33(0x1be)](_0x2c57b5),this[_0x154f33(0x22c)][_0x154f33(0x2ca)]({'unitId':_0x2c57b5});}[_0x5ef621(0x205)](){const _0x4d3c88=_0x5ef621;this[_0x4d3c88(0x2ac)][_0x4d3c88(0x1db)](),this[_0x4d3c88(0x282)]['clear'](),this[_0x4d3c88(0x1f4)][_0x4d3c88(0x1db)](),this[_0x4d3c88(0x22c)][_0x4d3c88(0x2e5)](),super[_0x4d3c88(0x205)]();}['_preserveInvalid'](_0x4d7f81,_0x257d1a,_0x6514fb){const _0x53c460=_0x5ef621;this[_0x53c460(0x2ac)][_0x53c460(0x1be)](_0x4d7f81),this[_0x53c460(0x282)]['set'](_0x4d7f81,t['Tools'][_0x53c460(0x1d7)](_0x257d1a)),this[_0x53c460(0x1f4)][_0x53c460(0x1fa)](_0x4d7f81,_0x6514fb),this['_change$'][_0x53c460(0x2ca)]({'unitId':_0x4d7f81});}};let ve=function(_0x53bdfe){const _0x4bcdf8=_0x5ef621;return _0x53bdfe[_0x4bcdf8(0x276)]=_0x4bcdf8(0x1e4),_0x53bdfe[_0x4bcdf8(0x211)]=_0x4bcdf8(0x2c5),_0x53bdfe[_0x4bcdf8(0x20f)]='success',_0x53bdfe[_0x4bcdf8(0x251)]='error',_0x53bdfe;}({});function k(_0x5d99e7,_0x179f63){return function(_0x1f0dd9,_0x308ae7){_0x179f63(_0x1f0dd9,_0x308ae7,_0x5d99e7);};}function A(_0x747289,_0x1c0b0c,_0x215188,_0x1c5e9c){const _0x38b84c=_0x5ef621;var _0x53e4ce=arguments[_0x38b84c(0x1ae)],_0x2715ab=_0x53e4ce<0x3?_0x1c0b0c:_0x1c5e9c===null?_0x1c5e9c=Object[_0x38b84c(0x228)](_0x1c0b0c,_0x215188):_0x1c5e9c,_0x30d1f5;if(typeof Reflect==_0x38b84c(0x284)&&typeof Reflect['decorate']==_0x38b84c(0x1fd))_0x2715ab=Reflect[_0x38b84c(0x2a5)](_0x747289,_0x1c0b0c,_0x215188,_0x1c5e9c);else{for(var _0x6809e5=_0x747289[_0x38b84c(0x1ae)]-0x1;_0x6809e5>=0x0;_0x6809e5--)(_0x30d1f5=_0x747289[_0x6809e5])&&(_0x2715ab=(_0x53e4ce<0x3?_0x30d1f5(_0x2715ab):_0x53e4ce>0x3?_0x30d1f5(_0x1c0b0c,_0x215188,_0x2715ab):_0x30d1f5(_0x1c0b0c,_0x215188))||_0x2715ab);}return _0x53e4ce>0x3&&_0x2715ab&&Object['defineProperty'](_0x1c0b0c,_0x215188,_0x2715ab),_0x2715ab;}let j=class extends t[_0x5ef621(0x22a)]{constructor(_0x47be8b,_0x408575,_0x5e5278){const _0x844062=_0x5ef621;super(),this[_0x844062(0x223)]=_0x47be8b,this[_0x844062(0x2a0)]=_0x408575,this[_0x844062(0x274)]=_0x5e5278,D(this,_0x844062(0x259),new Map()),D(this,_0x844062(0x21b),new Map()),D(this,_0x844062(0x2b2),new i[(_0x844062(0x2b5))]()),D(this,_0x844062(0x20c),this[_0x844062(0x2b2)][_0x844062(0x2b8)]()),this[_0x844062(0x2aa)](this['_registrationService'][_0x844062(0x21e)][_0x844062(0x1de)](_0x359307=>{const _0x22d2c1=_0x844062;for(let _0x40bd59 of Object['values'](_0x359307))for(let _0x396f6e of Object[_0x22d2c1(0x2a9)](_0x40bd59))_0x396f6e[_0x22d2c1(0x1b5)](_0x306df8=>this[_0x22d2c1(0x1ee)](_0x306df8));}));}['syncUnit'](_0x36b464){const _0x3f1724=_0x5ef621;var _0x405521;let _0x24db8a=_0x36b464[_0x3f1724(0x1c2)](),_0x2450e7=((_0x405521=_0x36b464[_0x3f1724(0x2d2)]()[_0x3f1724(0x2cd)])==null||(_0x405521=_0x405521[_0x3f1724(0x209)])==null?void 0x0:_0x405521[_0x3f1724(0x2ad)](g))??[],_0x5abf10=this['_model'][_0x3f1724(0x216)](_0x24db8a),_0x2b7c7b=new Set();for(let _0x2fc2e2 of _0x2450e7){let _0xeaf40e=_0x5abf10[_0x2fc2e2[_0x3f1724(0x2e1)]];_0xeaf40e&&(_0x2b7c7b[_0x3f1724(0x23d)](M(_0x24db8a,_0x2fc2e2[_0x3f1724(0x2e1)])),this['register']({'unitId':_0x24db8a,'rangeId':_0x2fc2e2['rangeId']},_0xeaf40e));}for(let _0x40f575 of Array[_0x3f1724(0x1d8)](this[_0x3f1724(0x259)][_0x3f1724(0x2a9)]()))_0x40f575[_0x3f1724(0x266)]===_0x24db8a&&!_0x2b7c7b[_0x3f1724(0x258)](M(_0x40f575[_0x3f1724(0x266)],_0x40f575[_0x3f1724(0x2e1)]))&&this[_0x3f1724(0x20d)](_0x40f575);}['register'](_0x27aa6d,_0x288e09){const _0x92e27d=_0x5ef621;let _0x153ea6=M(_0x27aa6d[_0x92e27d(0x266)],_0x27aa6d[_0x92e27d(0x2e1)]),_0x2396ff=this[_0x92e27d(0x259)][_0x92e27d(0x234)](_0x153ea6),_0x4bd128=this['_hostExternalReferenceModel'][_0x92e27d(0x2e0)](_0x27aa6d[_0x92e27d(0x266)]);if(_0x2396ff&&_0x2396ff['config'][_0x92e27d(0x1ce)]===_0x288e09['formula']&&_0x2396ff[_0x92e27d(0x224)]===_0x4bd128){_0x2396ff[_0x92e27d(0x28e)]=_0x288e09;let _0x527438=_0x2396ff['formulaId']?this[_0x92e27d(0x2a0)][_0x92e27d(0x2ba)](_0x2396ff[_0x92e27d(0x266)],_0x2396ff[_0x92e27d(0x266)],_0x2396ff['formulaId'])??void 0x0:void 0x0;_0x2396ff[_0x92e27d(0x217)]=_0x527438,this['_setPresentation'](_0x153ea6,N(_0x288e09,_0x527438));return;}_0x2396ff!=null&&_0x2396ff[_0x92e27d(0x233)]&&this['_deleteRegistration'](_0x2396ff);let _0x20cff1={..._0x27aa6d,'config':_0x288e09,'referenceRevision':_0x4bd128,'presentation':N(_0x288e09,void 0x0)};if(this['_registrations']['set'](_0x153ea6,_0x20cff1),!_0x288e09[_0x92e27d(0x1ce)][_0x92e27d(0x213)]())return;let _0x58de25=this[_0x92e27d(0x2a0)][_0x92e27d(0x2bf)](_0x27aa6d[_0x92e27d(0x266)],_0x27aa6d[_0x92e27d(0x266)],_0x288e09[_0x92e27d(0x1ce)],void 0x0,{'rangeId':_0x27aa6d['rangeId']},r[_0x92e27d(0x1c3)][_0x92e27d(0x1b2)],_0x27aa6d[_0x92e27d(0x2e1)]);_0x20cff1[_0x92e27d(0x233)]=_0x58de25,this[_0x92e27d(0x21b)][_0x92e27d(0x1fa)](_0x58de25,_0x153ea6);}[_0x5ef621(0x20d)](_0x209320){const _0x37202e=_0x5ef621;let _0x348125=M(_0x209320[_0x37202e(0x266)],_0x209320['rangeId']),_0x1abd42=this[_0x37202e(0x259)][_0x37202e(0x234)](_0x348125);_0x1abd42&&(this[_0x37202e(0x2e2)](_0x1abd42),this[_0x37202e(0x259)][_0x37202e(0x1be)](_0x348125));}[_0x5ef621(0x294)](_0x4e3e86){const _0x984abb=_0x5ef621;for(let _0x395c09 of Array[_0x984abb(0x1d8)](this[_0x984abb(0x259)][_0x984abb(0x2a9)]()))_0x395c09[_0x984abb(0x266)]===_0x4e3e86&&this['unregister'](_0x395c09);}[_0x5ef621(0x288)](_0x17ae14){const _0x5df011=_0x5ef621;var _0x7ae624;return(_0x7ae624=this[_0x5df011(0x259)][_0x5df011(0x234)](M(_0x17ae14[_0x5df011(0x266)],_0x17ae14['rangeId'])))==null?void 0x0:_0x7ae624[_0x5df011(0x29c)];}[_0x5ef621(0x1c8)](_0x327d9d){const _0x43b8a5=_0x5ef621;let _0x2eb85f=this[_0x43b8a5(0x259)][_0x43b8a5(0x234)](M(_0x327d9d['unitId'],_0x327d9d[_0x43b8a5(0x2e1)]));return _0x2eb85f?P(_0x2eb85f):void 0x0;}[_0x5ef621(0x2c1)](){const _0x58eb50=_0x5ef621;return Array[_0x58eb50(0x1d8)](this['_registrations']['values'](),_0x1b9e27=>({'identity':{'unitId':_0x1b9e27[_0x58eb50(0x266)],'rangeId':_0x1b9e27[_0x58eb50(0x2e1)]},'config':_0x1b9e27['config'],'referenceRevision':_0x1b9e27[_0x58eb50(0x224)],..._0x1b9e27[_0x58eb50(0x217)]?{'liveResult':_0x1b9e27[_0x58eb50(0x217)]}:null}));}[_0x5ef621(0x205)](){const _0x2ac41c=_0x5ef621;for(let _0x3763a0 of this[_0x2ac41c(0x259)]['values']())this[_0x2ac41c(0x2e2)](_0x3763a0);this[_0x2ac41c(0x259)]['clear'](),this[_0x2ac41c(0x21b)][_0x2ac41c(0x1db)](),this[_0x2ac41c(0x2b2)][_0x2ac41c(0x2e5)](),super[_0x2ac41c(0x205)]();}[_0x5ef621(0x1ee)](_0x10ab48){const _0x35be4e=_0x5ef621;let _0xf8974c=this[_0x35be4e(0x21b)][_0x35be4e(0x234)](_0x10ab48[_0x35be4e(0x233)]),_0x59065e=_0xf8974c?this[_0x35be4e(0x259)][_0x35be4e(0x234)](_0xf8974c):void 0x0;!_0xf8974c||!_0x59065e||(_0x59065e[_0x35be4e(0x217)]=_0x10ab48,this['_setPresentation'](_0xf8974c,N(_0x59065e[_0x35be4e(0x28e)],_0x10ab48)));}[_0x5ef621(0x2c7)](_0x2c7086,_0x585623){const _0x3454a7=_0x5ef621;var _0x47f9fb,_0x2fd3dd;let _0x2cb524=this[_0x3454a7(0x259)][_0x3454a7(0x234)](_0x2c7086);if(!_0x2cb524||ye(_0x2cb524[_0x3454a7(0x29c)],_0x585623))return;let _0x214398=_0x2cb524[_0x3454a7(0x29c)],_0x404e7a=P(_0x2cb524);_0x2cb524[_0x3454a7(0x29c)]=_0x585623,this[_0x3454a7(0x2b2)][_0x3454a7(0x2ca)]({'unitId':_0x2cb524[_0x3454a7(0x266)],'rangeId':_0x2cb524[_0x3454a7(0x2e1)],'presentation':_0x585623,'previousPresentation':_0x214398,'result':P(_0x2cb524),'previousResult':{..._0x404e7a,..._0x214398,'value':(_0x47f9fb=_0x214398[_0x3454a7(0x2ae)])==null?void 0x0:_0x47f9fb['v'],'valueType':((_0x2fd3dd=_0x214398[_0x3454a7(0x2ae)])==null?void 0x0:_0x2fd3dd['t'])??void 0x0}});}['_deleteRegistration'](_0xd62faa){const _0x5261ae=_0x5ef621;_0xd62faa[_0x5261ae(0x233)]&&(this['_registrationService'][_0x5261ae(0x242)](_0xd62faa[_0x5261ae(0x266)],_0xd62faa[_0x5261ae(0x266)],[_0xd62faa['formulaId']]),this['_formulaKeys'][_0x5261ae(0x1be)](_0xd62faa[_0x5261ae(0x233)]));}};j=A([k(0x0,(0x0,t[_0x5ef621(0x29a)])(O)),k(0x1,(0x0,t[_0x5ef621(0x29a)])(r[_0x5ef621(0x1c1)])),k(0x2,(0x0,t['Inject'])(e[_0x5ef621(0x1c4)]))],j);function M(_0x17dc6d,_0x56e24f){return _0x17dc6d+'\x00'+_0x56e24f;}function N(_0x47c84c,_0x2a58f9){const _0x49b781=_0x5ef621;return(0x0,e[_0x49b781(0x2b4)])({'numberFormat':_0x47c84c['numberFormat'],'lastValue':_0x47c84c[_0x49b781(0x1bb)],'result':_0x2a58f9});}function P(_0x4a42cf){const _0x2391ac=_0x5ef621;var _0x48fc10,_0x47ad9b,_0x5d6ce4;let _0x58196c=_0x4a42cf[_0x2391ac(0x29c)],_0x45c7d0=_0x4a42cf[_0x2391ac(0x28e)][_0x2391ac(0x1ce)]['trim']()?_0x58196c[_0x2391ac(0x227)]||_0x58196c[_0x2391ac(0x2ae)]==null?_0x2391ac(0x2c5):((_0x48fc10=_0x4a42cf[_0x2391ac(0x217)])==null?void 0x0:_0x48fc10[_0x2391ac(0x256)])===r['FormulaResultStatus'][_0x2391ac(0x251)]?_0x2391ac(0x2ab):_0x2391ac(0x28c):'empty';return{..._0x58196c,'status':_0x45c7d0,'value':(_0x47ad9b=_0x58196c[_0x2391ac(0x2ae)])==null?void 0x0:_0x47ad9b['v'],'valueType':((_0x5d6ce4=_0x58196c[_0x2391ac(0x2ae)])==null?void 0x0:_0x5d6ce4['t'])??void 0x0};}function ye(_0x82b3fc,_0x224fe0){const _0x208163=_0x5ef621;var _0x2e500c,_0x301715,_0x1f288f,_0x1ba1be;return _0x82b3fc[_0x208163(0x201)]===_0x224fe0[_0x208163(0x201)]&&_0x82b3fc[_0x208163(0x2c9)]===_0x224fe0[_0x208163(0x2c9)]&&_0x82b3fc[_0x208163(0x1fc)]===_0x224fe0[_0x208163(0x1fc)]&&_0x82b3fc['source']===_0x224fe0[_0x208163(0x254)]&&_0x82b3fc['stale']===_0x224fe0[_0x208163(0x227)]&&((_0x2e500c=_0x82b3fc[_0x208163(0x2ae)])==null?void 0x0:_0x2e500c['t'])===((_0x301715=_0x224fe0[_0x208163(0x2ae)])==null?void 0x0:_0x301715['t'])&&Object['is']((_0x1f288f=_0x82b3fc['cell'])==null?void 0x0:_0x1f288f['v'],(_0x1ba1be=_0x224fe0[_0x208163(0x2ae)])==null?void 0x0:_0x1ba1be['v']);}const F={'id':'docs-formula.mutation.set-formula','type':t[_0x5ef621(0x1d9)][_0x5ef621(0x1e2)],'handler':(_0x4acb4b,_0x20642a)=>!(_0x20642a!=null&&_0x20642a[_0x5ef621(0x266)])||!_0x20642a['rangeId']||!_0x20642a[_0x5ef621(0x28e)]?!0x1:_0x4acb4b[_0x5ef621(0x234)](O)['setFormula'](_0x20642a['unitId'],_0x20642a[_0x5ef621(0x2e1)],_0x20642a[_0x5ef621(0x28e)])},I={'id':_0x5ef621(0x1ea),'type':t['CommandType'][_0x5ef621(0x1e2)],'handler':(_0x50485e,_0x2af994)=>!(_0x2af994!=null&&_0x2af994[_0x5ef621(0x266)])||!_0x2af994[_0x5ef621(0x2e1)]?!0x1:_0x50485e[_0x5ef621(0x234)](O)['removeFormula'](_0x2af994[_0x5ef621(0x266)],_0x2af994[_0x5ef621(0x2e1)])},L={'id':'docs-formula.mutation.set-resource','type':t[_0x5ef621(0x1d9)][_0x5ef621(0x1e2)],'handler':(_0x21a071,_0x3a8929)=>!(_0x3a8929!=null&&_0x3a8929['unitId'])||!_0x3a8929[_0x5ef621(0x241)]?!0x1:_0x21a071[_0x5ef621(0x234)](O)[_0x5ef621(0x21d)](_0x3a8929[_0x5ef621(0x266)],_0x3a8929[_0x5ef621(0x241)])},R={'id':_0x5ef621(0x2a2),'type':t[_0x5ef621(0x1d9)][_0x5ef621(0x1e2)],'handler':(_0x2baca7,_0x5a4226)=>{const _0x334f7f=_0x5ef621;if(!(_0x5a4226!=null&&_0x5a4226[_0x334f7f(0x266)])||!_0x5a4226[_0x334f7f(0x2a7)][_0x334f7f(0x1ae)])return!0x1;let _0x2dbda5=_0x2baca7['get'](O),_0x217273=_0x2baca7[_0x334f7f(0x234)](e[_0x334f7f(0x1c4)]),_0x2823a6=_0x2dbda5[_0x334f7f(0x2db)](_0x5a4226['unitId']);if(!_0x2823a6)return!0x1;let _0x1e04be=t['Tools'][_0x334f7f(0x1d7)](_0x2823a6),_0x3e744a=!0x1;for(let _0x1db856 of _0x5a4226[_0x334f7f(0x2a7)]){var _0x33e94a,_0x54559b,_0xef3c36,_0x240b78;let _0x55fe7a=_0x1e04be[_0x334f7f(0x23c)][_0x1db856[_0x334f7f(0x2e1)]];!_0x55fe7a||_0x55fe7a['formula']!==_0x1db856[_0x334f7f(0x1aa)]||((_0x33e94a=_0x55fe7a[_0x334f7f(0x1bf)])==null?void 0x0:_0x33e94a[_0x334f7f(0x1fc)])!==_0x1db856[_0x334f7f(0x1d6)]||_0x217273[_0x334f7f(0x2e0)](_0x5a4226[_0x334f7f(0x266)])!==_0x1db856[_0x334f7f(0x26a)]||(((_0x54559b=_0x55fe7a['lastValue'])==null?void 0x0:_0x54559b['v'])!==_0x1db856[_0x334f7f(0x1bb)]['v']||((_0xef3c36=_0x55fe7a[_0x334f7f(0x1bb)])==null?void 0x0:_0xef3c36['t'])!==_0x1db856[_0x334f7f(0x1bb)]['t']||((_0x240b78=_0x55fe7a['lastValue'])==null?void 0x0:_0x240b78['pattern'])!==_0x1db856[_0x334f7f(0x1bb)][_0x334f7f(0x1fc)])&&(_0x55fe7a[_0x334f7f(0x1bb)]=t[_0x334f7f(0x2a4)]['deepClone'](_0x1db856['lastValue']),_0x3e744a=!0x0);}return!_0x3e744a||_0x2dbda5[_0x334f7f(0x21d)](_0x5a4226[_0x334f7f(0x266)],_0x1e04be);}},z={'id':_0x5ef621(0x1cd),'type':t[_0x5ef621(0x1d9)][_0x5ef621(0x1d5)],'handler':(_0x352279,_0x55c67f)=>{const _0x315934=_0x5ef621;if(!(_0x55c67f!=null&&_0x55c67f['formula'][_0x315934(0x213)]()))return!0x1;let _0x2319b0=K(_0x352279,_0x55c67f['unitId'],'');if(!_0x2319b0)return!0x1;let _0x3eaf95=xe(_0x55c67f['target'],_0x2319b0['body'],be(_0x352279,_0x2319b0[_0x315934(0x266)]));if(!_0x3eaf95)return!0x1;let _0x59d53e=Se(_0x352279,_0x2319b0[_0x315934(0x266)],_0x55c67f[_0x315934(0x1ce)],_0x55c67f[_0x315934(0x2b6)]??[]);if(!_0x59d53e)return!0x1;let _0x389171=Ce(_0x2319b0[_0x315934(0x2cd)],_0x2319b0[_0x315934(0x22d)],_0x2319b0[_0x315934(0x266)]),_0x535cda=we({'documentData':_0x2319b0[_0x315934(0x2a1)],'resource':_0x2319b0[_0x315934(0x241)],'rangeId':_0x389171,'config':{'formula':_0x55c67f[_0x315934(0x1ce)],..._0x55c67f[_0x315934(0x1bf)]?{'numberFormat':_0x55c67f['numberFormat']}:null},'startOffset':_0x3eaf95[_0x315934(0x220)],'endOffset':_0x3eaf95[_0x315934(0x2e6)]});if(!_0x535cda)return!0x1;let _0x5d74d0=(0x0,e[_0x315934(0x225)])(_0x352279,_0x2319b0[_0x315934(0x266)],_0x59d53e);return!_0x5d74d0||!q({'accessor':_0x352279,'document':_0x2319b0[_0x315934(0x2d0)],'unitId':_0x2319b0['unitId'],'trigger':z['id'],'rangeId':_0x389171,'previousResource':_0x2319b0['resource'],'nextResource':_0x535cda[_0x315934(0x1b1)],'previousDocumentData':_0x2319b0[_0x315934(0x2a1)],'nextDocumentData':_0x535cda['nextDocumentData'],'cursorOffset':_0x535cda['cursorOffset'],'externalMutations':_0x5d74d0})?!0x1:{'rangeId':_0x389171,'startOffset':_0x535cda[_0x315934(0x1e0)]-0x1,'endOffset':_0x535cda['cursorOffset']};}},B={'id':_0x5ef621(0x2cb),'type':t[_0x5ef621(0x1d9)][_0x5ef621(0x1d5)],'handler':(_0x442e0a,_0x107f56)=>{const _0x33b948=_0x5ef621;if(!(_0x107f56!=null&&_0x107f56['rangeId'])||!_0x107f56[_0x33b948(0x1ce)][_0x33b948(0x213)]())return!0x1;let _0x427d64=K(_0x442e0a,_0x107f56[_0x33b948(0x266)],''),_0x45fdb5=_0x427d64==null?void 0x0:_0x427d64[_0x33b948(0x22d)][_0x33b948(0x246)](_0x427d64[_0x33b948(0x266)],_0x107f56[_0x33b948(0x2e1)]),_0x2e4c68=_0x427d64?_(_0x427d64[_0x33b948(0x2a1)][_0x33b948(0x2cd)],_0x107f56[_0x33b948(0x2e1)]):void 0x0;if(!_0x427d64||!_0x45fdb5||!_0x2e4c68)return!0x1;let _0x3b6676=Se(_0x442e0a,_0x427d64[_0x33b948(0x266)],_0x107f56['formula'],_0x107f56['externalReferences']??[]);if(!_0x3b6676)return!0x1;let _0x31518b=(0x0,e[_0x33b948(0x225)])(_0x442e0a,_0x427d64['unitId'],_0x3b6676);if(!_0x31518b)return!0x1;let _0x5d87c8=je(_0x427d64[_0x33b948(0x241)]);return _0x5d87c8[_0x33b948(0x23c)][_0x107f56[_0x33b948(0x2e1)]]={'formula':_0x107f56[_0x33b948(0x1ce)],..._0x107f56['numberFormat']?{'numberFormat':_0x107f56[_0x33b948(0x1bf)]}:_0x45fdb5[_0x33b948(0x1bf)]?{'numberFormat':_0x45fdb5[_0x33b948(0x1bf)]}:null},q({'accessor':_0x442e0a,'document':_0x427d64[_0x33b948(0x2d0)],'unitId':_0x427d64[_0x33b948(0x266)],'trigger':B['id'],'rangeId':_0x107f56['rangeId'],'previousResource':_0x427d64[_0x33b948(0x241)],'nextResource':_0x5d87c8,'cursorOffset':_0x2e4c68[_0x33b948(0x261)]+0x1,'externalMutations':_0x31518b});}},V={'id':_0x5ef621(0x218),'type':t[_0x5ef621(0x1d9)][_0x5ef621(0x1d5)],'handler':(_0x4ca28f,_0x3c1c65)=>{const _0x5b734c=_0x5ef621;if(!(_0x3c1c65!=null&&_0x3c1c65[_0x5b734c(0x2e1)]))return!0x1;let _0x52869b=K(_0x4ca28f,_0x3c1c65[_0x5b734c(0x266)],''),_0xc36584=_0x52869b==null?void 0x0:_0x52869b[_0x5b734c(0x22d)][_0x5b734c(0x246)](_0x52869b[_0x5b734c(0x266)],_0x3c1c65['rangeId']),_0x15f50d=_0x52869b?_(_0x52869b[_0x5b734c(0x2a1)][_0x5b734c(0x2cd)],_0x3c1c65[_0x5b734c(0x2e1)]):void 0x0;if(!_0x52869b||!_0xc36584||!_0x15f50d)return!0x1;let _0x30b548=je(_0x52869b[_0x5b734c(0x241)]);return _0x30b548['formulas'][_0x3c1c65[_0x5b734c(0x2e1)]]={..._0xc36584,..._0x3c1c65['numberFormat']?{'numberFormat':_0x3c1c65[_0x5b734c(0x1bf)]}:null},_0x3c1c65['numberFormat']||delete _0x30b548[_0x5b734c(0x23c)][_0x3c1c65[_0x5b734c(0x2e1)]]['numberFormat'],q({'accessor':_0x4ca28f,'document':_0x52869b[_0x5b734c(0x2d0)],'unitId':_0x52869b[_0x5b734c(0x266)],'trigger':V['id'],'rangeId':_0x3c1c65['rangeId'],'previousResource':_0x52869b[_0x5b734c(0x241)],'nextResource':_0x30b548,'cursorOffset':_0x15f50d['endIndex']+0x1,'externalMutations':{}});}},H={'id':_0x5ef621(0x221),'type':t[_0x5ef621(0x1d9)][_0x5ef621(0x1d5)],'handler':(_0x4c4b9b,_0x2e5e69)=>G(_0x4c4b9b,_0x2e5e69,'',H['id'])},U={'id':_0x5ef621(0x2b3),'type':t['CommandType']['COMMAND'],'handler':(_0x4bdf08,_0x4464e2)=>G(_0x4bdf08,_0x4464e2,(_0x4464e2==null?void 0x0:_0x4464e2[_0x5ef621(0x201)])??'',U['id'])},W={'id':_0x5ef621(0x2be),'type':t[_0x5ef621(0x1d9)]['COMMAND'],'handler':(_0x5cec05,_0x46444d)=>{const _0x439833=_0x5ef621;if(!(_0x46444d!=null&&_0x46444d[_0x439833(0x2e1)]))return!0x1;let _0x2dce7a=K(_0x5cec05,_0x46444d[_0x439833(0x266)],'');if(!_0x2dce7a)return!0x1;let _0x1196e0=_0x5cec05[_0x439833(0x234)](j)[_0x439833(0x1c8)]({'unitId':_0x2dce7a[_0x439833(0x266)],'rangeId':_0x46444d[_0x439833(0x2e1)]});return _0x1196e0?G(_0x5cec05,_0x46444d,_0x1196e0['text'],W['id']):!0x1;}};function G(_0x4a4211,_0x3f4b75,_0x42e0e9,_0x31abcf){const _0xa53e38=_0x5ef621;if(!(_0x3f4b75!=null&&_0x3f4b75['rangeId']))return!0x1;let _0x59f803=K(_0x4a4211,_0x3f4b75[_0xa53e38(0x266)],'');if(!_0x59f803)return!0x1;let _0x5ecb17=h({'documentData':_0x59f803[_0xa53e38(0x2a1)],'resource':_0x59f803[_0xa53e38(0x241)],'rangeId':_0x3f4b75[_0xa53e38(0x2e1)],'text':_0x42e0e9});return _0x5ecb17?q({'accessor':_0x4a4211,'document':_0x59f803[_0xa53e38(0x2d0)],'unitId':_0x59f803[_0xa53e38(0x266)],'trigger':_0x31abcf,'rangeId':_0x3f4b75[_0xa53e38(0x2e1)],'previousResource':_0x59f803[_0xa53e38(0x241)],'nextResource':_0x5ecb17[_0xa53e38(0x1b1)],'previousDocumentData':_0x59f803[_0xa53e38(0x2a1)],'nextDocumentData':_0x5ecb17[_0xa53e38(0x235)],'cursorOffset':_0x5ecb17[_0xa53e38(0x1e0)],'externalMutations':{}}):!0x1;}function K(_0x4a897f,_0x43b443,_0x5de615){const _0x248c27=_0x5ef621;if(_0x5de615)return null;let _0x5ce8d5=_0x4a897f[_0x248c27(0x234)](t[_0x248c27(0x1bc)]),_0x59dd7e=(_0x43b443?_0x5ce8d5[_0x248c27(0x22b)](_0x43b443,t['UniverInstanceType'][_0x248c27(0x278)]):_0x5ce8d5['getCurrentUnitOfType'](t['UniverInstanceType'][_0x248c27(0x278)]))??null;if(!_0x59dd7e)return null;let _0x38a5cb=_0x59dd7e[_0x248c27(0x2d2)](),_0xabf540=_0x38a5cb['body'];if(_0x38a5cb['disabled']||!_0xabf540)return null;let _0x173368=_0x4a897f[_0x248c27(0x234)](O);return _0x173368[_0x248c27(0x1af)](_0x59dd7e[_0x248c27(0x1c2)]())?null:{'document':_0x59dd7e,'body':_0xabf540,'documentData':_0x38a5cb,'model':_0x173368,'resource':_0x173368['getResource'](_0x59dd7e[_0x248c27(0x1c2)]())??c(),'unitId':_0x59dd7e[_0x248c27(0x1c2)]()};}function be(_0x4427ae,_0x67c63c){const _0x309b70=_0x5ef621;var _0x1134aa;return(_0x1134aa=_0x4427ae['get'](n[_0x309b70(0x26b)])[_0x309b70(0x28d)]({'subUnitId':_0x67c63c,'unitId':_0x67c63c}))==null?void 0x0:_0x1134aa[0x0];}function xe(_0x5dc75e,_0x1354ce,_0x278ad4){const _0x8e4f9f=_0x5ef621;if((_0x5dc75e==null?void 0x0:_0x5dc75e[_0x8e4f9f(0x277)])===_0x8e4f9f(0x1f0)){var _0x1ac611;let _0x2451ad=((_0x1ac611=_0x1354ce['paragraphs'])==null?void 0x0:_0x1ac611[_0x8e4f9f(0x2ad)](_0x1b5a68=>_0x1b5a68[_0x8e4f9f(0x2cf)]===_0x5dc75e[_0x8e4f9f(0x2cf)]))??[];if(_0x2451ad[_0x8e4f9f(0x1ae)]!==0x1)return null;let _0x195483=_0x2451ad[0x0],_0x41bf86=(0x0,t[_0x8e4f9f(0x207)])(_0x1354ce,_0x195483),_0x4bc6aa=_0x195483[_0x8e4f9f(0x265)]-_0x41bf86,_0x1582d3=_0x5dc75e[_0x8e4f9f(0x247)]===_0x8e4f9f(0x20b)?_0x4bc6aa:_0x5dc75e[_0x8e4f9f(0x247)];if(!Number[_0x8e4f9f(0x2bd)](_0x1582d3)||_0x1582d3<0x0||_0x1582d3>_0x4bc6aa)return null;let _0x34c06b=_0x41bf86+_0x1582d3;return{'startOffset':_0x34c06b,'endOffset':_0x34c06b};}if((_0x5dc75e==null?void 0x0:_0x5dc75e[_0x8e4f9f(0x277)])===_0x8e4f9f(0x270))return!Number[_0x8e4f9f(0x2bd)](_0x5dc75e['startOffset'])||!Number[_0x8e4f9f(0x2bd)](_0x5dc75e[_0x8e4f9f(0x2e6)])?null:{'startOffset':Math[_0x8e4f9f(0x253)](_0x5dc75e[_0x8e4f9f(0x220)],_0x5dc75e[_0x8e4f9f(0x2e6)]),'endOffset':Math[_0x8e4f9f(0x1f9)](_0x5dc75e[_0x8e4f9f(0x220)],_0x5dc75e[_0x8e4f9f(0x2e6)])};let _0x516672=(_0x5dc75e==null?void 0x0:_0x5dc75e[_0x8e4f9f(0x277)])===_0x8e4f9f(0x2da)?_0x5dc75e[_0x8e4f9f(0x2da)]:_0x278ad4;return!_0x516672||_0x516672[_0x8e4f9f(0x2ce)]?null:{'startOffset':Math['min'](_0x516672[_0x8e4f9f(0x220)],_0x516672[_0x8e4f9f(0x2e6)]),'endOffset':Math[_0x8e4f9f(0x1f9)](_0x516672['startOffset'],_0x516672[_0x8e4f9f(0x2e6)])};}function Se(_0x1d61b0,_0x176fd1,_0x417870,_0x3d3f47){const _0x5bc953=_0x5ef621;let _0xe7a72d=_0x1d61b0[_0x5bc953(0x234)](r['LexerTreeBuilder']),_0x11bcd8=_0x417870[_0x5bc953(0x28b)]('=')?_0x417870['slice'](0x1):_0x417870,_0x3eb31a=_0xe7a72d[_0x5bc953(0x2cc)](_0x11bcd8);if(!_0x3eb31a)return null;let _0x4a4f2c=_0x1d61b0['get'](e[_0x5bc953(0x1c4)]),_0x9dd70c=(0x0,e[_0x5bc953(0x2d8)])({'qualifiers':(0x0,e['collectFormulaExternalReferenceQualifiers'])(_0x3eb31a),'explicitReferences':_0x3d3f47??[],'resolveBinding':_0x34e455=>_0x4a4f2c['resolveBinding'](_0x176fd1,_0x34e455)});return _0x9dd70c[_0x5bc953(0x256)]===_0x5bc953(0x1fb)?_0x9dd70c[_0x5bc953(0x236)]:null;}function Ce(_0x41c63f,_0x5ef9dd,_0x20147b){const _0x416034=_0x5ef621;var _0x1d2c31;let _0x5f2ff5=(0x0,t[_0x416034(0x244)])(0x6);for(;_0x41c63f!=null&&(_0x1d2c31=_0x41c63f[_0x416034(0x209)])!=null&&_0x1d2c31[_0x416034(0x1cb)](_0x60531b=>_0x60531b[_0x416034(0x2e1)]===_0x5f2ff5)||_0x5ef9dd[_0x416034(0x246)](_0x20147b,_0x5f2ff5);)_0x5f2ff5=(0x0,t['generateRandomId'])(0x6);return _0x5f2ff5;}function we(_0x18f180){try{return te(_0x18f180);}catch(_0x424842){if(_0x424842 instanceof m)return null;throw _0x424842;}}function Te(_0x3c8551){const _0x908342=_0x5ef621;let _0x2cdc48=_0x3c8551[_0x908342(0x2a6)]&&_0x3c8551['nextDocumentData']?De(_0x3c8551[_0x908342(0x2d0)],_0x3c8551[_0x908342(0x266)],_0x3c8551['previousDocumentData'],_0x3c8551[_0x908342(0x235)],_0x3c8551['cursorOffset'],_0x3c8551[_0x908342(0x2d6)]):null;return _0x3c8551['previousDocumentData']&&_0x3c8551[_0x908342(0x235)]&&!_0x2cdc48?null:{'documentRedo':_0x2cdc48,'resourceRedo':{'id':L['id'],'params':{'unitId':_0x3c8551[_0x908342(0x266)],'resource':_0x3c8551[_0x908342(0x1b1)]}},'resourceUndo':{'id':L['id'],'params':{'unitId':_0x3c8551['unitId'],'resource':_0x3c8551[_0x908342(0x1f6)]}}};}function Ee(_0x251970,_0x3f754a,_0x55d35c,_0x5cf9bc){const _0x7cbf43=_0x5ef621;_0x5cf9bc[_0x7cbf43(0x212)]({'id':_0x251970[_0x7cbf43(0x2d6)]+':'+_0x251970[_0x7cbf43(0x2e1)],'unitID':_0x251970[_0x7cbf43(0x266)],'redoMutations':[..._0x251970[_0x7cbf43(0x27a)]['redoMutation']?[_0x251970[_0x7cbf43(0x27a)][_0x7cbf43(0x289)]]:[],..._0x3f754a['documentRedo']?[_0x3f754a[_0x7cbf43(0x290)]]:[],_0x3f754a[_0x7cbf43(0x2d7)]],'undoMutations':[_0x3f754a['resourceUndo'],..._0x55d35c?[_0x55d35c]:[],..._0x251970[_0x7cbf43(0x27a)]['undoMutation']?[_0x251970[_0x7cbf43(0x27a)][_0x7cbf43(0x2d4)]]:[]]});}function q(_0x158e53){const _0x3af898=_0x5ef621;let _0x43c9b7=_0x158e53[_0x3af898(0x280)][_0x3af898(0x234)](t[_0x3af898(0x297)]),_0x58e014=_0x158e53[_0x3af898(0x280)][_0x3af898(0x234)](t[_0x3af898(0x271)]),_0x3902a1=_0x158e53['accessor'][_0x3af898(0x234)](n[_0x3af898(0x26b)]),_0x42c5a0=Te(_0x158e53);if(!_0x42c5a0)return!0x1;let _0x7016=!0x1,_0x3b8b5d=null,_0x1bdd02=!0x1;try{if(_0x158e53[_0x3af898(0x27a)][_0x3af898(0x289)]){if(!_0x43c9b7['syncExecuteCommand'](_0x158e53[_0x3af898(0x27a)]['redoMutation']['id'],_0x158e53[_0x3af898(0x27a)][_0x3af898(0x289)]['params']))return!0x1;_0x7016=!0x0;}if(_0x42c5a0[_0x3af898(0x290)]){let _0x5166b0=_0x43c9b7[_0x3af898(0x1c5)](_0x42c5a0[_0x3af898(0x290)]['id'],_0x42c5a0[_0x3af898(0x290)][_0x3af898(0x27f)]);if(!_0x5166b0)return J(_0x43c9b7,_0x158e53[_0x3af898(0x27a)],_0x7016),!0x1;_0x3b8b5d={'id':n['RichTextEditingMutation']['id'],'params':{..._0x5166b0,'noHistory':!0x0,'noNeedSetTextRange':!0x0,'segmentId':''}};}if(!_0x43c9b7[_0x3af898(0x1c5)](_0x42c5a0['resourceRedo']['id'],_0x42c5a0[_0x3af898(0x2d7)][_0x3af898(0x27f)]))return Oe(_0x43c9b7,_0x3b8b5d),J(_0x43c9b7,_0x158e53[_0x3af898(0x27a)],_0x7016),!0x1;_0x1bdd02=!0x0,Ee(_0x158e53,_0x42c5a0,_0x3b8b5d,_0x58e014);}catch(_0x57277e){throw _0x1bdd02&&_0x43c9b7[_0x3af898(0x1c5)](_0x42c5a0['resourceUndo']['id'],_0x42c5a0['resourceUndo'][_0x3af898(0x27f)]),Oe(_0x43c9b7,_0x3b8b5d),J(_0x43c9b7,_0x158e53[_0x3af898(0x27a)],_0x7016),_0x57277e;}return _0x3902a1[_0x3af898(0x1e1)]([{'startOffset':_0x158e53[_0x3af898(0x1e0)],'endOffset':_0x158e53['cursorOffset'],'segmentId':''}],{'unitId':_0x158e53[_0x3af898(0x266)],'subUnitId':_0x158e53['unitId']},!0x1,{[n[_0x3af898(0x1f5)]]:!0x0}),!0x0;}function De(_0x57ac42,_0x4c408b,_0x4dda76,_0x25d221,_0x25034c,_0x53930f){const _0x559872=_0x5ef621;let _0x52d51f=ke(_0x4dda76,_0x25d221,(0x0,t['getRichTextEditPath'])(_0x57ac42,''));return _0x52d51f?{'id':n[_0x559872(0x23b)]['id'],'params':{'unitId':_0x4c408b,'actions':_0x52d51f,'segmentId':'','textRanges':[{'startOffset':_0x25034c,'endOffset':_0x25034c,'collapsed':!0x0,'segmentId':''}],'isEditing':!0x1,'noHistory':!0x0,'noNeedSetTextRange':!0x0,'trigger':_0x53930f}}:null;}function Oe(_0xcfb531,_0x4bb6d0){const _0x1e872a=_0x5ef621;_0x4bb6d0&&_0xcfb531['syncExecuteCommand'](_0x4bb6d0['id'],_0x4bb6d0[_0x1e872a(0x27f)]);}function J(_0x201378,_0x4fa28e,_0x52a9fd){const _0x49586f=_0x5ef621;_0x52a9fd&&_0x4fa28e[_0x49586f(0x2d4)]&&_0x201378[_0x49586f(0x1c5)](_0x4fa28e['undoMutation']['id'],_0x4fa28e[_0x49586f(0x2d4)][_0x49586f(0x27f)]);}function ke(_0x452fc9,_0x3ac9ca,_0x44c94a){const _0x16aaec=_0x5ef621;let _0x7afd6e=_0x452fc9[_0x16aaec(0x2cd)],_0x4a62cd=_0x3ac9ca[_0x16aaec(0x2cd)],_0x584427=Ae(_0x7afd6e==null?void 0x0:_0x7afd6e[_0x16aaec(0x1cc)],_0x4a62cd==null?void 0x0:_0x4a62cd[_0x16aaec(0x1cc)]);if(!_0x584427||!_0x4a62cd)return null;let _0xc21d5a=new t[(_0x16aaec(0x2b7))]();return _0xc21d5a[_0x16aaec(0x24c)](_0x584427[_0x16aaec(0x250)]),_0x584427[_0x16aaec(0x2d5)]>0x0&&_0xc21d5a['insert'](_0x584427[_0x16aaec(0x2d5)],(0x0,t[_0x16aaec(0x25c)])(_0x4a62cd,_0x584427[_0x16aaec(0x250)],_0x584427[_0x16aaec(0x250)]+_0x584427[_0x16aaec(0x2d5)],!0x1)),_0x584427['deleteLength']>0x0&&_0xc21d5a[_0x16aaec(0x1be)](_0x584427[_0x16aaec(0x27b)]),t[_0x16aaec(0x2a8)]['getInstance']()[_0x16aaec(0x1f7)](_0xc21d5a[_0x16aaec(0x222)](),_0x44c94a);}function Ae(_0x3f645d,_0x1d91ff){const _0x31391b=_0x5ef621;if(_0x3f645d==null||_0x1d91ff==null||_0x3f645d===_0x1d91ff)return null;let _0x5e5875=0x0;for(;_0x5e5875<_0x3f645d[_0x31391b(0x1ae)]&&_0x5e5875<_0x1d91ff[_0x31391b(0x1ae)]&&_0x3f645d[_0x5e5875]===_0x1d91ff[_0x5e5875];)_0x5e5875+=0x1;let _0x3552d7=_0x3f645d[_0x31391b(0x1ae)],_0x2eca96=_0x1d91ff[_0x31391b(0x1ae)];for(;_0x3552d7>_0x5e5875&&_0x2eca96>_0x5e5875&&_0x3f645d[_0x3552d7-0x1]===_0x1d91ff[_0x2eca96-0x1];)--_0x3552d7,--_0x2eca96;return{'start':_0x5e5875,'deleteLength':_0x3552d7-_0x5e5875,'insertLength':_0x2eca96-_0x5e5875};}function je(_0x557f6e){const _0x11db9e=_0x5ef621;return{'schemaVersion':0x1,'formulas':Object['fromEntries'](Object['entries'](_0x557f6e[_0x11db9e(0x23c)])['map'](([_0x5a1f10,_0x5d94e6])=>[_0x5a1f10,{..._0x5d94e6,..._0x5d94e6['numberFormat']?{'numberFormat':{..._0x5d94e6['numberFormat']}}:null,..._0x5d94e6['lastValue']?{'lastValue':{..._0x5d94e6['lastValue']}}:null}]))};}let Y=class extends t['Disposable']{constructor(_0x41514d,_0x3a219d,_0x119e40,_0x31afcb){const _0x14f4ba=_0x5ef621;super(),this[_0x14f4ba(0x243)]=_0x41514d,this[_0x14f4ba(0x20e)]=_0x3a219d,this['_model']=_0x119e40,this[_0x14f4ba(0x255)]=_0x31afcb,D(this,'_pendingUnitIds',new Set()),D(this,_0x14f4ba(0x219),!0x1),D(this,'_isDisposed',!0x1),this['_instanceService'][_0x14f4ba(0x22f)](t['UniverInstanceType'][_0x14f4ba(0x278)])[_0x14f4ba(0x1b5)](_0xc5c0e8=>this[_0x14f4ba(0x255)][_0x14f4ba(0x230)](_0xc5c0e8)),this[_0x14f4ba(0x2aa)](this[_0x14f4ba(0x223)][_0x14f4ba(0x2a3)]['subscribe'](({unitId:_0x4d581a})=>this[_0x14f4ba(0x1eb)](_0x4d581a))),this[_0x14f4ba(0x2aa)](this[_0x14f4ba(0x243)]['unitAdded$'][_0x14f4ba(0x1de)](({unit:_0x2db815})=>{const _0x50a230=_0x14f4ba;_0x2db815[_0x50a230(0x277)]===t[_0x50a230(0x1df)][_0x50a230(0x278)]&&this['_queueSync'](_0x2db815['getUnitId']());})),this[_0x14f4ba(0x2aa)](this[_0x14f4ba(0x243)][_0x14f4ba(0x2bb)][_0x14f4ba(0x1de)](_0x4cb752=>{const _0xe327f6=_0x14f4ba;this[_0xe327f6(0x255)][_0xe327f6(0x294)](_0x4cb752['getUnitId']());})),this['disposeWithMe'](this[_0x14f4ba(0x20e)][_0x14f4ba(0x1bd)](_0x37ad02=>{const _0x5c8797=_0x14f4ba;if(_0x37ad02['id']===n[_0x5c8797(0x23b)]['id']&&Me(_0x37ad02[_0x5c8797(0x27f)])){let _0x953703=_0x37ad02['params'];_0x953703['segmentId']||this[_0x5c8797(0x1eb)](_0x953703[_0x5c8797(0x266)]);}}));}[_0x5ef621(0x205)](){const _0x362b41=_0x5ef621;this[_0x362b41(0x27c)]=!0x0,super[_0x362b41(0x205)]();}['_queueSync'](_0x452417){const _0x3e7a29=_0x5ef621;this[_0x3e7a29(0x267)]['add'](_0x452417),!this[_0x3e7a29(0x219)]&&(this['_syncScheduled']=!0x0,queueMicrotask(()=>{const _0x348728=_0x3e7a29;if(this[_0x348728(0x219)]=!0x1,this[_0x348728(0x27c)])return;let _0x32b278=Array[_0x348728(0x1d8)](this[_0x348728(0x267)]);this[_0x348728(0x267)][_0x348728(0x1db)](),_0x32b278['forEach'](_0x3885d8=>this[_0x348728(0x1eb)](_0x3885d8));}));}['_syncUnit'](_0x2081e7){const _0x4ba4d2=_0x5ef621;let _0x51d6bf=this[_0x4ba4d2(0x243)][_0x4ba4d2(0x22b)](_0x2081e7,t[_0x4ba4d2(0x1df)]['UNIVER_DOC']);_0x51d6bf&&this[_0x4ba4d2(0x255)][_0x4ba4d2(0x230)](_0x51d6bf);}};Y=A([k(0x0,t[_0x5ef621(0x1bc)]),k(0x1,t[_0x5ef621(0x297)]),k(0x2,(0x0,t[_0x5ef621(0x29a)])(O)),k(0x3,(0x0,t[_0x5ef621(0x29a)])(j))],Y);function Me(_0x237d93){const _0x366c96=_0x5ef621;return typeof _0x237d93==_0x366c96(0x284)&&!!_0x237d93&&_0x366c96(0x266)in _0x237d93&&typeof _0x237d93[_0x366c96(0x266)]=='string'&&(!(_0x366c96(0x2ce)in _0x237d93)||_0x237d93[_0x366c96(0x2ce)]===void 0x0||typeof _0x237d93[_0x366c96(0x2ce)]==_0x366c96(0x1e8));}let X=class extends t[_0x5ef621(0x22a)]{constructor(_0x11cc88,_0x555145){const _0x31fedc=_0x5ef621;super(),this[_0x31fedc(0x1b6)]=_0x11cc88,this[_0x31fedc(0x21a)]=_0x555145,this[_0x31fedc(0x2aa)](this[_0x31fedc(0x1b6)][_0x31fedc(0x1b3)]({'pluginName':o,'businesses':[t[_0x31fedc(0x1df)][_0x31fedc(0x278)]],'toJson':_0x291f05=>JSON['stringify'](this['_docFormulaModel'][_0x31fedc(0x222)](_0x291f05)),'parseJson':_0x492af5=>JSON[_0x31fedc(0x26f)](_0x492af5),'onLoad':(_0x59c805,_0x24fe22)=>{const _0x15b3d8=_0x31fedc;this[_0x15b3d8(0x21a)]['load'](_0x59c805,_0x24fe22);},'onUnLoad':_0x343ac5=>this[_0x31fedc(0x21a)][_0x31fedc(0x287)](_0x343ac5)}));}};X=A([k(0x0,t[_0x5ef621(0x1e9)]),k(0x1,(0x0,t[_0x5ef621(0x29a)])(O))],X);var Ne='@univerjs-pro/docs-formula',Pe=_0x5ef621(0x281);const Fe={};let Z=class extends t['Disposable']{constructor(_0x9ac92e,_0x13cb74,_0x54320b){const _0x33233f=_0x5ef621;super(),this[_0x33233f(0x293)]=_0x9ac92e,this[_0x33233f(0x269)]=_0x13cb74,this[_0x33233f(0x2aa)](_0x54320b['register']({'resolve':(_0x45e926,_0x4bf4c4)=>{const _0xe6693b=_0x33233f;var _0xa392be;return((_0xa392be=_0x4bf4c4[_0xe6693b(0x209)])==null?void 0x0:_0xa392be[_0xe6693b(0x2ad)](g)[_0xe6693b(0x1fe)](_0x26bab2=>({'startOffset':_0x26bab2[_0xe6693b(0x265)],'endOffset':_0x26bab2[_0xe6693b(0x261)]+0x1,'text':this['resolveFormula'](_0x45e926,_0x26bab2[_0xe6693b(0x2e1)])})))??[];}})),this[_0x33233f(0x2aa)](this[_0x33233f(0x269)][_0x33233f(0x20c)][_0x33233f(0x1de)](({unitId:_0xc2f1e0})=>{const _0x473fad=_0x33233f;_0x54320b[_0x473fad(0x1ff)](_0xc2f1e0);}));}[_0x5ef621(0x2c6)](_0x1b3a2f,_0xbb4f87){const _0x3c58d9=_0x5ef621;var _0x10dfcf;return((_0x10dfcf=this['_formulaService'][_0x3c58d9(0x1c8)]({'unitId':_0x1b3a2f,'rangeId':_0xbb4f87}))==null?void 0x0:_0x10dfcf[_0x3c58d9(0x201)])??'';}[_0x5ef621(0x20a)](_0x1f742e,_0x3faa23,_0xa6d602){const _0x5d8cb7=_0x5ef621;var _0x3e7bc8;let _0x73a199=this['_univerInstanceService']['getUnit'](_0x1f742e,t[_0x5d8cb7(0x1df)][_0x5d8cb7(0x278)]),_0x41fbad=_0x73a199==null?void 0x0:_0x73a199[_0x5d8cb7(0x1cf)]();if(!_0x41fbad)return'';let _0x498c14=_0x41fbad[_0x5d8cb7(0x1cc)][_0x5d8cb7(0x245)](_0x3faa23,_0xa6d602),_0x3aef97=((_0x3e7bc8=_0x41fbad[_0x5d8cb7(0x209)])==null?void 0x0:_0x3e7bc8[_0x5d8cb7(0x2ad)](_0x5b1e4e=>g(_0x5b1e4e)&&_0x5b1e4e[_0x5d8cb7(0x265)]>=_0x3faa23&&_0x5b1e4e['endIndex']<_0xa6d602)[_0x5d8cb7(0x1e7)]((_0x785151,_0x269aa9)=>_0x269aa9[_0x5d8cb7(0x265)]-_0x785151['startIndex']))??[];for(let _0x3f9c57 of _0x3aef97){let _0x33010f=_0x3f9c57[_0x5d8cb7(0x265)]-_0x3faa23,_0x3f5d7a=_0x3f9c57[_0x5d8cb7(0x261)]-_0x3faa23+0x1;_0x498c14=''+_0x498c14[_0x5d8cb7(0x245)](0x0,_0x33010f)+this[_0x5d8cb7(0x2c6)](_0x1f742e,_0x3f9c57[_0x5d8cb7(0x2e1)])+_0x498c14[_0x5d8cb7(0x245)](_0x3f5d7a);}return _0x498c14;}[_0x5ef621(0x1ed)](_0x220cfb){return Ie(_0x220cfb);}[_0x5ef621(0x202)](_0x10dc44,_0x5c1c9f,_0x2b690b={}){const _0x5c16b8=_0x5ef621;var _0x50708a;return re({'id':_0x10dc44,'body':_0x5c1c9f,'documentStyle':{}},(((_0x50708a=_0x5c1c9f[_0x5c16b8(0x209)])==null?void 0x0:_0x50708a[_0x5c16b8(0x2ad)](g))??[])[_0x5c16b8(0x1fe)](_0x3aff8a=>({'rangeId':_0x3aff8a[_0x5c16b8(0x2e1)],'text':_0x2b690b[_0x3aff8a['rangeId']]??this['resolveFormula'](_0x10dc44,_0x3aff8a[_0x5c16b8(0x2e1)])})))['body']??{'dataStream':''};}};Z=A([k(0x0,t[_0x5ef621(0x1bc)]),k(0x1,(0x0,t['Inject'])(j)),k(0x2,(0x0,t[_0x5ef621(0x29a)])(n[_0x5ef621(0x1f3)]))],Z);function Ie(_0x414448){const _0x159140=_0x5ef621;var _0x2be4cc,_0x2a4c1d;let _0x1c31a9=Le(_0x414448),_0xf78e75=re(_0x414448,(((_0x2be4cc=_0x414448[_0x159140(0x2cd)])==null||(_0x2be4cc=_0x2be4cc[_0x159140(0x209)])==null?void 0x0:_0x2be4cc['filter'](g))??[])[_0x159140(0x1fe)](_0x5d0b2f=>({'rangeId':_0x5d0b2f[_0x159140(0x2e1)],'text':Re(_0x1c31a9==null?void 0x0:_0x1c31a9['formulas'][_0x5d0b2f['rangeId']])})));return _0xf78e75[_0x159140(0x283)]=(_0x2a4c1d=_0xf78e75['resources'])==null?void 0x0:_0x2a4c1d[_0x159140(0x2ad)](_0x2d84f0=>_0x2d84f0['name']!==o),_0xf78e75;}function Le(_0x5f1d3e){const _0xc0372f=_0x5ef621;var _0x18244f;let _0xacf046=(_0x18244f=_0x5f1d3e['resources'])==null||(_0x18244f=_0x18244f[_0xc0372f(0x26c)](_0x5fe107=>_0x5fe107[_0xc0372f(0x24f)]===_0xc0372f(0x28a)))==null?void 0x0:_0x18244f['data'];if(_0xacf046)try{let _0x1b559d=JSON['parse'](_0xacf046);return l(_0x1b559d)?_0x1b559d:void 0x0;}catch{return;}}function Re(_0x1d5128){const _0x13272f=_0x5ef621;return _0x1d5128?(0x0,e[_0x13272f(0x2b4)])({'lastValue':_0x1d5128[_0x13272f(0x1bb)],'numberFormat':_0x1d5128['numberFormat']})[_0x13272f(0x201)]:'';}let Q=class extends t[_0x5ef621(0x22a)]{constructor(_0x5f3917,_0x24ec37,_0x4f90c1){const _0xf79475=_0x5ef621;super(),this[_0xf79475(0x269)]=_0x5f3917,this['_cacheEligibilityService']=_0x24ec37,this[_0xf79475(0x2aa)](_0x4f90c1[_0xf79475(0x1d0)](this));}['collectMutations'](_0x5547ed){const _0x19baed=_0x5ef621;let _0x2c7ef0=new Map();for(let _0xfa4737 of this[_0x19baed(0x269)][_0x19baed(0x2c1)]()){var _0x59f4df;if(!this[_0x19baed(0x1ad)][_0x19baed(0x2c8)](_0xfa4737['config'][_0x19baed(0x1ce)],_0xfa4737[_0x19baed(0x217)])[_0x19baed(0x208)])continue;let _0x2f9621=(0x0,e[_0x19baed(0x2e8)])(_0xfa4737[_0x19baed(0x217)]),_0x1400b1=_0x2f9621?(0x0,e[_0x19baed(0x1ca)])(_0x2f9621):null;if(!_0x1400b1||ze(_0xfa4737[_0x19baed(0x28e)][_0x19baed(0x1bb)],_0x1400b1))continue;let _0x5d19a6=_0x2c7ef0['get'](_0xfa4737[_0x19baed(0x26e)][_0x19baed(0x266)])??[];_0x5d19a6[_0x19baed(0x27d)]({'rangeId':_0xfa4737[_0x19baed(0x26e)][_0x19baed(0x2e1)],'expectedFormula':_0xfa4737[_0x19baed(0x28e)][_0x19baed(0x1ce)],'expectedNumberFormat':(_0x59f4df=_0xfa4737[_0x19baed(0x28e)]['numberFormat'])==null?void 0x0:_0x59f4df[_0x19baed(0x1fc)],'expectedReferenceRevision':_0xfa4737[_0x19baed(0x224)],'lastValue':_0x1400b1}),_0x2c7ef0[_0x19baed(0x1fa)](_0xfa4737[_0x19baed(0x26e)][_0x19baed(0x266)],_0x5d19a6);}return Array['from'](_0x2c7ef0,([_0x255af1,_0x39001e])=>({'id':R['id'],'params':{'unitId':_0x255af1,'updates':_0x39001e}}));}};Q=A([k(0x0,(0x0,t[_0x5ef621(0x29a)])(j)),k(0x1,(0x0,t['Inject'])(e[_0x5ef621(0x29e)])),k(0x2,(0x0,t['Inject'])(e[_0x5ef621(0x296)]))],Q);function ze(_0x3cc462,_0x4890e4){const _0x7d019b=_0x5ef621;return(_0x3cc462==null?void 0x0:_0x3cc462['v'])===_0x4890e4['v']&&(_0x3cc462==null?void 0x0:_0x3cc462['t'])===_0x4890e4['t']&&(_0x3cc462==null?void 0x0:_0x3cc462[_0x7d019b(0x1fc)])===_0x4890e4[_0x7d019b(0x1fc)];}let $=class extends t['Plugin']{constructor(_0x2a5e6a=Fe,_0x3bc63b,_0x3f1e7a,_0x3ab008){const _0x35af95=_0x5ef621;super(),this[_0x35af95(0x26d)]=_0x2a5e6a,this['_injector']=_0x3bc63b,this[_0x35af95(0x20e)]=_0x3f1e7a,this[_0x35af95(0x214)]=_0x3ab008;let {..._0x2e79ce}=(0x0,t['merge'])({},Fe,this[_0x35af95(0x26d)]);this[_0x35af95(0x214)][_0x35af95(0x2c0)](_0x35af95(0x2d1),_0x2e79ce);}[_0x5ef621(0x286)](){const _0x19f66a=_0x5ef621;this[_0x19f66a(0x1d3)][_0x19f66a(0x23d)]([O]),this['_injector'][_0x19f66a(0x23d)]([j]),this[_0x19f66a(0x1d3)][_0x19f66a(0x23d)]([X]),this[_0x19f66a(0x1d3)]['add']([Y]),this['_injector']['add']([Q]),this[_0x19f66a(0x1d3)][_0x19f66a(0x23d)]([Z]),(0x0,t[_0x19f66a(0x273)])(this[_0x19f66a(0x1d3)],[[O],[X],[Y],[Q],[Z]]),[F,I,L,R,z,B,V,H,U,W]['forEach'](_0x3f44c4=>this[_0x19f66a(0x2aa)](this[_0x19f66a(0x20e)][_0x19f66a(0x1b4)](_0x3f44c4)));}};D($,_0x5ef621(0x25a),o),D($,_0x5ef621(0x2e4),Ne),D($,_0x5ef621(0x2d9),Pe),D($,'type',t[_0x5ef621(0x1df)][_0x5ef621(0x278)]),$=A([(0x0,t['DependentOn'])(a[_0x5ef621(0x29d)],e[_0x5ef621(0x1b9)],n[_0x5ef621(0x27e)]),k(0x1,(0x0,t['Inject'])(t[_0x5ef621(0x298)])),k(0x2,t[_0x5ef621(0x297)]),k(0x3,t[_0x5ef621(0x28f)])],$),exports['ConvertDocFormulaToTextCommand']=W,exports[_0x5ef621(0x232)]=s,exports[_0x5ef621(0x240)]='',exports[_0x5ef621(0x28a)]=o,exports[_0x5ef621(0x200)]=0x1,Object[_0x5ef621(0x23e)](exports,_0x5ef621(0x24a),{'enumerable':!0x0,'get':function(){return Z;}}),Object[_0x5ef621(0x23e)](exports,_0x5ef621(0x226),{'enumerable':!0x0,'get':function(){return Y;}}),exports['DocFormulaModel']=O,Object['defineProperty'](exports,_0x5ef621(0x2b1),{'enumerable':!0x0,'get':function(){return X;}}),exports[_0x5ef621(0x2e3)]=ve,Object['defineProperty'](exports,'DocFormulaService',{'enumerable':!0x0,'get':function(){return j;}}),exports['InsertDocFormulaCommand']=z,exports['InvalidDocFormulaInsertRangeError']=m,exports[_0x5ef621(0x2b9)]=H,exports[_0x5ef621(0x1e3)]=I,exports[_0x5ef621(0x21c)]=U,exports[_0x5ef621(0x260)]=R,exports['SetDocFormulaMutation']=F,exports[_0x5ef621(0x24b)]=V,exports[_0x5ef621(0x1f1)]=L,Object[_0x5ef621(0x23e)](exports,'UniverDocsFormulaPlugin',{'enumerable':!0x0,'get':function(){return $;}}),exports[_0x5ef621(0x206)]=B,exports[_0x5ef621(0x29f)]=ie,exports[_0x5ef621(0x1f2)]=te,exports[_0x5ef621(0x21f)]=h,exports[_0x5ef621(0x285)]=ne,exports[_0x5ef621(0x25b)]=c,exports[_0x5ef621(0x25f)]=Ie,exports['findDocFormulaRange']=_,exports['isDocFormulaConfig']=u,exports[_0x5ef621(0x239)]=g,exports['isDocFormulaResource']=l,exports[_0x5ef621(0x1f8)]=d;
|
package/lib/es/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};
|