@univerjs-pro/docs-formula 1.3.0 → 1.3.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 _0xd3d361=_0x28c1;(function(_0x2ee3e7,_0x52a363){const _0x56f3b5=_0x28c1,_0x442a80=_0x2ee3e7();while(!![]){try{const _0x241406=parseInt(_0x56f3b5(0x1dd))/0x1*(-parseInt(_0x56f3b5(0x1ac))/0x2)+parseInt(_0x56f3b5(0x1ca))/0x3+parseInt(_0x56f3b5(0x1b6))/0x4*(-parseInt(_0x56f3b5(0x1e2))/0x5)+-parseInt(_0x56f3b5(0x1d3))/0x6*(-parseInt(_0x56f3b5(0x194))/0x7)+parseInt(_0x56f3b5(0x1cf))/0x8+-parseInt(_0x56f3b5(0x191))/0x9+parseInt(_0x56f3b5(0x1ee))/0xa;if(_0x241406===_0x52a363)break;else _0x442a80['push'](_0x442a80['shift']());}catch(_0x1260b){_0x442a80['push'](_0x442a80['shift']());}}}(_0x4728,0x871f6),Object['defineProperty'](exports,Symbol['toStringTag'],{'value':'Module'}));let e=require('@univerjs-pro/docs-formula'),t=require('@univerjs/core'),n=require('@univerjs/docs/facade');function r(_0x579b07,_0x55593d){return function(_0x3b660d,_0x4094c2){_0x55593d(_0x3b660d,_0x4094c2,_0x579b07);};}function i(_0x358a50,_0xa65942,_0xcca8be,_0x501152){const _0x2f5088=_0x28c1;var _0x3b7d1c=arguments[_0x2f5088(0x1d9)],_0x1c5f4d=_0x3b7d1c<0x3?_0xa65942:_0x501152===null?_0x501152=Object[_0x2f5088(0x1ea)](_0xa65942,_0xcca8be):_0x501152,_0x584b55;if(typeof Reflect==_0x2f5088(0x1a6)&&typeof Reflect[_0x2f5088(0x1ba)]==_0x2f5088(0x1d4))_0x1c5f4d=Reflect[_0x2f5088(0x1ba)](_0x358a50,_0xa65942,_0xcca8be,_0x501152);else{for(var _0x49f1a0=_0x358a50[_0x2f5088(0x1d9)]-0x1;_0x49f1a0>=0x0;_0x49f1a0--)(_0x584b55=_0x358a50[_0x49f1a0])&&(_0x1c5f4d=(_0x3b7d1c<0x3?_0x584b55(_0x1c5f4d):_0x3b7d1c>0x3?_0x584b55(_0xa65942,_0xcca8be,_0x1c5f4d):_0x584b55(_0xa65942,_0xcca8be))||_0x1c5f4d);}return _0x3b7d1c>0x3&&_0x1c5f4d&&Object[_0x2f5088(0x1bd)](_0xa65942,_0xcca8be,_0x1c5f4d),_0x1c5f4d;}let a=class{constructor(_0x4aa219,_0x370d3b,_0x2fc348,_0x174a10,_0xa0db81,_0x435206){const _0x9bc173=_0x28c1;this[_0x9bc173(0x1bc)]=_0x4aa219,this[_0x9bc173(0x1cc)]=_0x370d3b,this[_0x9bc173(0x1cd)]=_0x2fc348,this['_model']=_0x174a10,this[_0x9bc173(0x1d8)]=_0xa0db81,this[_0x9bc173(0x1a8)]=_0x435206;}[_0xd3d361(0x1df)](){const _0x25bc44=_0xd3d361;return this[_0x25bc44(0x1cc)];}['getRange'](){const _0x3b3663=_0xd3d361;let _0xf6eb7d=this[_0x3b3663(0x1c0)]();return _0xf6eb7d?{'endOffset':_0xf6eb7d['endIndex']+0x1,'rangeId':_0xf6eb7d['rangeId'],'startOffset':_0xf6eb7d[_0x3b3663(0x18c)]}:null;}[_0xd3d361(0x1e1)](){const _0x351e31=_0xd3d361;var _0x5497d3;return((_0x5497d3=this[_0x351e31(0x18d)][_0x351e31(0x1e1)](this[_0x351e31(0x1bc)],this[_0x351e31(0x1cc)]))==null?void 0x0:_0x5497d3[_0x351e31(0x1e7)])??'';}['getConfig'](){const _0x17174c=_0xd3d361;return this[_0x17174c(0x18d)][_0x17174c(0x1e1)](this[_0x17174c(0x1bc)],this[_0x17174c(0x1cc)])??null;}[_0xd3d361(0x1e0)](){const _0x79e470=_0xd3d361;return this['_service'][_0x79e470(0x1e0)]({'unitId':this[_0x79e470(0x1bc)],'rangeId':this[_0x79e470(0x1cc)]})??null;}['describe'](){const _0x497dd9=_0xd3d361;let _0x5b9a25=this[_0x497dd9(0x1b1)](),_0x2daf1d=this[_0x497dd9(0x1e6)](),_0x4c249c=this[_0x497dd9(0x1e0)]();return!_0x5b9a25||!_0x2daf1d||!_0x4c249c?null:{..._0x5b9a25,'config':_0x2daf1d,'formula':_0x2daf1d['formula'],'result':_0x4c249c,'type':_0x497dd9(0x1e7)};}[_0xd3d361(0x1b5)](_0x4a3e8a){const _0x2b6660=_0xd3d361;return this[_0x2b6660(0x1cd)][_0x2b6660(0x1a3)](e[_0x2b6660(0x18f)]['id'],{'externalReferences':_0x4a3e8a[_0x2b6660(0x1a1)],'formula':_0x4a3e8a[_0x2b6660(0x1e7)],'numberFormat':_0x4a3e8a[_0x2b6660(0x197)],'rangeId':this['_rangeId'],'unitId':this[_0x2b6660(0x1bc)]});}[_0xd3d361(0x1af)](_0x3332cf){const _0x381cad=_0xd3d361;return this['_commandService'][_0x381cad(0x1a3)](e[_0x381cad(0x1b2)]['id'],{'numberFormat':_0x3332cf,'rangeId':this[_0x381cad(0x1cc)],'unitId':this[_0x381cad(0x1bc)]});}[_0xd3d361(0x1aa)](){const _0x32ca86=_0xd3d361;return this[_0x32ca86(0x1cd)]['syncExecuteCommand'](e['RemoveDocFormulaCommand']['id'],{'rangeId':this[_0x32ca86(0x1cc)],'unitId':this[_0x32ca86(0x1bc)]});}['replaceWithText'](_0x164135){const _0x51045a=_0xd3d361;return this[_0x51045a(0x1cd)][_0x51045a(0x1a3)](e[_0x51045a(0x19d)]['id'],{'rangeId':this[_0x51045a(0x1cc)],'text':_0x164135,'unitId':this[_0x51045a(0x1bc)]});}[_0xd3d361(0x1b4)](){const _0x4af047=_0xd3d361;return this[_0x4af047(0x1cd)][_0x4af047(0x1a3)](e['ConvertDocFormulaToTextCommand']['id'],{'rangeId':this[_0x4af047(0x1cc)],'unitId':this[_0x4af047(0x1bc)]});}[_0xd3d361(0x1c0)](){const _0x50c0c7=_0xd3d361;var _0x3cb279;let _0x765358=this[_0x50c0c7(0x1a8)][_0x50c0c7(0x19a)](this[_0x50c0c7(0x1bc)],t[_0x50c0c7(0x1b3)][_0x50c0c7(0x1db)]);return _0x765358==null||(_0x3cb279=_0x765358[_0x50c0c7(0x19e)]()[_0x50c0c7(0x1a9)])==null||(_0x3cb279=_0x3cb279[_0x50c0c7(0x1be)])==null?void 0x0:_0x3cb279[_0x50c0c7(0x1e4)](_0x5c65d1=>_0x5c65d1[_0x50c0c7(0x1e8)]===this[_0x50c0c7(0x1cc)]&&(0x0,e[_0x50c0c7(0x1a7)])(_0x5c65d1));}};a=i([r(0x2,t[_0xd3d361(0x190)]),r(0x3,(0x0,t[_0xd3d361(0x1c7)])(e[_0xd3d361(0x192)])),r(0x4,(0x0,t[_0xd3d361(0x1c7)])(e[_0xd3d361(0x1da)])),r(0x5,t[_0xd3d361(0x1cb)])],a);function o(_0x5b71c1){'@babel/helpers - typeof';const _0x3d92dc=_0xd3d361;return o=typeof Symbol==_0x3d92dc(0x1d4)&&typeof Symbol['iterator']==_0x3d92dc(0x1ae)?function(_0xd36509){return typeof _0xd36509;}:function(_0x446bc2){const _0x59b13f=_0x3d92dc;return _0x446bc2&&typeof Symbol=='function'&&_0x446bc2[_0x59b13f(0x1c2)]===Symbol&&_0x446bc2!==Symbol[_0x59b13f(0x196)]?'symbol':typeof _0x446bc2;},o(_0x5b71c1);}function s(_0x42a2c7,_0xdd78d8){const _0x2fa9df=_0xd3d361;if(o(_0x42a2c7)!=_0x2fa9df(0x1a6)||!_0x42a2c7)return _0x42a2c7;var _0x1fcc2b=_0x42a2c7[Symbol[_0x2fa9df(0x1e5)]];if(_0x1fcc2b!==void 0x0){var _0x159f4b=_0x1fcc2b[_0x2fa9df(0x1a5)](_0x42a2c7,_0xdd78d8||_0x2fa9df(0x1dc));if(o(_0x159f4b)!=_0x2fa9df(0x1a6))return _0x159f4b;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0xdd78d8===_0x2fa9df(0x1c1)?String:Number)(_0x42a2c7);}function _0x28c1(_0x408777,_0x6a56e6){_0x408777=_0x408777-0x18c;const _0x472804=_0x4728();let _0x28c182=_0x472804[_0x408777];return _0x28c182;}function c(_0x639bf7){const _0x47d8b5=_0xd3d361;var _0xace01b=s(_0x639bf7,_0x47d8b5(0x1c1));return o(_0xace01b)==_0x47d8b5(0x1ae)?_0xace01b:_0xace01b+'';}function l(_0x43f897,_0x365498,_0x54fb92){const _0x3120e0=_0xd3d361;return(_0x365498=c(_0x365498))in _0x43f897?Object[_0x3120e0(0x1bd)](_0x43f897,_0x365498,{'value':_0x54fb92,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x43f897[_0x365498]=_0x54fb92,_0x43f897;}var u=class extends n[_0xd3d361(0x193)]{constructor(..._0x4436c2){const _0x415970=_0xd3d361;super(..._0x4436c2),l(this,'_docsFormulaCommandService',void 0x0),l(this,_0x415970(0x1c5),void 0x0),l(this,'_docsFormulaModel',void 0x0),l(this,_0x415970(0x195),void 0x0);}[_0xd3d361(0x1ab)](_0x706253){const _0x5c4323=_0xd3d361;this[_0x5c4323(0x1c4)]=_0x706253[_0x5c4323(0x1b0)](t['ICommandService']),this['_docsFormulaDisplayTextService']=_0x706253['get'](e[_0x5c4323(0x1b8)]),this[_0x5c4323(0x1bf)]=_0x706253['get'](e[_0x5c4323(0x192)]),this[_0x5c4323(0x195)]=_0x706253[_0x5c4323(0x1b0)](t[_0x5c4323(0x1a0)]);}[_0xd3d361(0x19b)](){const _0x2a4eff=_0xd3d361;return this[_0x2a4eff(0x1b7)]()[_0x2a4eff(0x1c3)](_0x3e6e78=>this[_0x2a4eff(0x1d2)](_0x3e6e78[_0x2a4eff(0x1e8)]));}[_0xd3d361(0x1e1)](_0x340a85){const _0x5675db=_0xd3d361;return this['_getCompleteRanges']()[_0x5675db(0x1a4)](_0x93c26d=>_0x93c26d['rangeId']===_0x340a85)?this[_0x5675db(0x1d2)](_0x340a85):null;}[_0xd3d361(0x1c8)](_0x31dd93){const _0x5484b9=_0xd3d361;let _0x162e13=this[_0x5484b9(0x1b7)]()['find'](_0x4307b8=>_0x4307b8[_0x5484b9(0x18c)]<=_0x31dd93&&_0x31dd93<=_0x4307b8[_0x5484b9(0x1ad)]);return _0x162e13?this[_0x5484b9(0x1d2)](_0x162e13['rangeId']):null;}[_0xd3d361(0x18e)](){const _0x3f7aa6=_0xd3d361;let _0x32c849=this[_0x3f7aa6(0x195)][_0x3f7aa6(0x1c6)](this['id']);if(!_0x32c849)throw Error(_0x3f7aa6(0x1ed)+this['id']+_0x3f7aa6(0x199));return this[_0x3f7aa6(0x1c5)][_0x3f7aa6(0x1c9)](_0x32c849);}[_0xd3d361(0x19f)](_0x5107d6){const _0x503617=_0xd3d361;return this['_insert']({'externalReferences':_0x5107d6[_0x503617(0x1a1)],'formula':_0x5107d6[_0x503617(0x1e7)],'numberFormat':_0x5107d6[_0x503617(0x197)],'target':{'type':_0x503617(0x1de),'startOffset':_0x5107d6[_0x503617(0x1d0)],'endOffset':_0x5107d6[_0x503617(0x198)]},'unitId':this[_0x503617(0x1df)]()});}['_insert'](_0x2ff348){const _0x2f6903=_0xd3d361;let _0x15041f=this['_docsFormulaCommandService'][_0x2f6903(0x1a3)](e[_0x2f6903(0x1e3)]['id'],_0x2ff348);return _0x15041f?this[_0x2f6903(0x1d2)](_0x15041f['rangeId']):null;}[_0xd3d361(0x1b7)](){const _0x1bcae4=_0xd3d361;var _0x1e3f06;let _0x520434=this[_0x1bcae4(0x1bf)][_0x1bcae4(0x19b)](this[_0x1bcae4(0x1df)]());return((_0x1e3f06=this[_0x1bcae4(0x1d6)]('')['customRanges'])==null?void 0x0:_0x1e3f06[_0x1bcae4(0x1d1)](_0x466117=>(0x0,e[_0x1bcae4(0x1a7)])(_0x466117)&&_0x520434[_0x466117[_0x1bcae4(0x1e8)]]!=null))??[];}[_0xd3d361(0x1d2)](_0x1609f0){const _0x497d7c=_0xd3d361;return this[_0x497d7c(0x1bb)][_0x497d7c(0x1e9)](a,this[_0x497d7c(0x1df)](),_0x1609f0);}};n[_0xd3d361(0x193)][_0xd3d361(0x1d7)](u);function _0x4728(){const _0x2689d3=['getResult','getFormula','2540990zDgZPc','InsertDocFormulaCommand','find','toPrimitive','getConfig','formula','rangeId','createInstance','getOwnPropertyDescriptor','FDocumentTextRange','_insert','Document\x20','6968090wHsatc','startIndex','_model','saveFormulaDisplayTextSnapshot','UpdateDocFormulaCommand','ICommandService','5705856cWwmYo','DocFormulaModel','FDocument','5709319jOAQaO','_docsFormulaResourceLoaderService','prototype','numberFormat','endOffset','\x20could\x20not\x20be\x20serialized.','getUnit','getFormulas','paragraph','ReplaceDocFormulaWithTextCommand','getSnapshot','insertFormula','IResourceLoaderService','externalReferences','end','syncExecuteCommand','some','call','object','isDocFormulaRange','_univerInstanceService','body','remove','_initialize','6yYUgZi','endIndex','symbol','setNumberFormat','get','getRange','SetDocFormulaNumberFormatCommand','UniverInstanceType','convertToText','update','8kpjTBS','_getCompleteRanges','DocFormulaDisplayTextService','FDocumentParagraph','decorate','_injector','_unitId','defineProperty','customRanges','_docsFormulaModel','_getCustomRange','string','constructor','map','_docsFormulaCommandService','_docsFormulaDisplayTextService','saveUnit','Inject','getFormulaAt','degradeDocumentData','1282620lEigmM','IUniverInstanceService','_rangeId','_commandService','_document','8029432BJnTRz','startOffset','filter','_createFormula','6HdMXhJ','function','appendFormula','getBody','extend','_service','length','DocFormulaService','UNIVER_DOC','default','246601OdjooV','range','getId'];_0x4728=function(){return _0x2689d3;};return _0x4728();}var d=class extends n['FDocumentParagraph']{constructor(..._0x13dded){super(..._0x13dded),l(this,'_docsFormulaCommandService',void 0x0);}[_0xd3d361(0x1ab)](_0x3ef2e6){const _0x890f63=_0xd3d361;this['_docsFormulaCommandService']=_0x3ef2e6[_0x890f63(0x1b0)](t[_0x890f63(0x190)]);}[_0xd3d361(0x19f)](_0x47e82d,_0x3d602d,_0x2bc91e={}){const _0x376ad7=_0xd3d361;return this[_0x376ad7(0x1ec)](_0x47e82d,_0x3d602d,_0x2bc91e);}[_0xd3d361(0x1d5)](_0x3f7bb9,_0x4fe69f={}){const _0x181367=_0xd3d361;return this['_insert'](_0x181367(0x1a2),_0x3f7bb9,_0x4fe69f);}[_0xd3d361(0x1ec)](_0xe15387,_0x2125e8,_0xfad777){const _0x423cfa=_0xd3d361;if(this['getSegmentId']())return null;let _0x19a8a1={'externalReferences':_0xfad777[_0x423cfa(0x1a1)],'formula':_0x2125e8,'numberFormat':_0xfad777['numberFormat'],'target':{'type':_0x423cfa(0x19c),'paragraphId':this[_0x423cfa(0x1df)](),'position':_0xe15387},'unitId':this[_0x423cfa(0x1ce)][_0x423cfa(0x1df)]()},_0x53af05=this[_0x423cfa(0x1c4)]['syncExecuteCommand'](e['InsertDocFormulaCommand']['id'],_0x19a8a1);return _0x53af05?this[_0x423cfa(0x1bb)][_0x423cfa(0x1e9)](a,this[_0x423cfa(0x1ce)][_0x423cfa(0x1df)](),_0x53af05['rangeId']):null;}};n[_0xd3d361(0x1b9)][_0xd3d361(0x1d7)](d);var f=class extends n[_0xd3d361(0x1eb)]{constructor(..._0x46bdea){const _0x32e3d4=_0xd3d361;super(..._0x46bdea),l(this,_0x32e3d4(0x1c4),void 0x0);}[_0xd3d361(0x1ab)](_0x75f4c2){const _0x2fba87=_0xd3d361;this[_0x2fba87(0x1c4)]=_0x75f4c2[_0x2fba87(0x1b0)](t[_0x2fba87(0x190)]);}['replaceWithFormula'](_0x12dabd,_0x4a13cc={}){const _0x4153f5=_0xd3d361;let {endOffset:_0x46e761,segmentId:_0x4c00fb,startOffset:_0x53cbf2}=this['getRange']();return _0x4c00fb?null:this[_0x4153f5(0x1ec)](_0x53cbf2,_0x46e761,_0x12dabd,_0x4a13cc);}[_0xd3d361(0x1ec)](_0x1b0fa2,_0x733c5a,_0x2559e9,_0x2525d9){const _0x125710=_0xd3d361;let _0x493a4d={'externalReferences':_0x2525d9[_0x125710(0x1a1)],'formula':_0x2559e9,'numberFormat':_0x2525d9['numberFormat'],'target':{'type':_0x125710(0x1de),'startOffset':_0x1b0fa2,'endOffset':_0x733c5a},'unitId':this['_document']['getId']()},_0x121f5b=this[_0x125710(0x1c4)][_0x125710(0x1a3)](e[_0x125710(0x1e3)]['id'],_0x493a4d);return _0x121f5b?this['_injector']['createInstance'](a,this[_0x125710(0x1ce)]['getId'](),_0x121f5b[_0x125710(0x1e8)]):null;}};n[_0xd3d361(0x1eb)][_0xd3d361(0x1d7)](f),Object[_0xd3d361(0x1bd)](exports,'FDocumentFormula',{'enumerable':!0x0,'get':function(){return a;}});
|
|
1
|
+
const _0x3617b1=_0x864f;(function(_0x55025d,_0x252a1a){const _0x424668=_0x864f,_0x15fec7=_0x55025d();while(!![]){try{const _0x36db13=parseInt(_0x424668(0x1d6))/0x1+parseInt(_0x424668(0x1c2))/0x2+parseInt(_0x424668(0x1b7))/0x3*(parseInt(_0x424668(0x1a9))/0x4)+-parseInt(_0x424668(0x1a3))/0x5+parseInt(_0x424668(0x1b2))/0x6+-parseInt(_0x424668(0x19d))/0x7*(parseInt(_0x424668(0x1cf))/0x8)+-parseInt(_0x424668(0x1dc))/0x9;if(_0x36db13===_0x252a1a)break;else _0x15fec7['push'](_0x15fec7['shift']());}catch(_0x478d86){_0x15fec7['push'](_0x15fec7['shift']());}}}(_0x5da3,0xa9e91),Object[_0x3617b1(0x1ac)](exports,Symbol[_0x3617b1(0x1bc)],{'value':_0x3617b1(0x193)}));let e=require('@univerjs-pro/docs-formula'),t=require('@univerjs/core'),n=require('@univerjs/docs/facade');function _0x864f(_0x106c79,_0x3e3d0c){_0x106c79=_0x106c79-0x18a;const _0x5da3b5=_0x5da3();let _0x864f2b=_0x5da3b5[_0x106c79];return _0x864f2b;}function r(_0x329875,_0x3e7810){return function(_0x3eb7ed,_0x228124){_0x3e7810(_0x3eb7ed,_0x228124,_0x329875);};}function i(_0x14a0bf,_0x1ab442,_0x548fbf,_0x110c19){const _0x3e8fc1=_0x3617b1;var _0x1aee8c=arguments[_0x3e8fc1(0x1e2)],_0x31b1c3=_0x1aee8c<0x3?_0x1ab442:_0x110c19===null?_0x110c19=Object['getOwnPropertyDescriptor'](_0x1ab442,_0x548fbf):_0x110c19,_0x2ed32f;if(typeof Reflect==_0x3e8fc1(0x192)&&typeof Reflect[_0x3e8fc1(0x1c9)]==_0x3e8fc1(0x19e))_0x31b1c3=Reflect['decorate'](_0x14a0bf,_0x1ab442,_0x548fbf,_0x110c19);else{for(var _0x50d1f7=_0x14a0bf[_0x3e8fc1(0x1e2)]-0x1;_0x50d1f7>=0x0;_0x50d1f7--)(_0x2ed32f=_0x14a0bf[_0x50d1f7])&&(_0x31b1c3=(_0x1aee8c<0x3?_0x2ed32f(_0x31b1c3):_0x1aee8c>0x3?_0x2ed32f(_0x1ab442,_0x548fbf,_0x31b1c3):_0x2ed32f(_0x1ab442,_0x548fbf))||_0x31b1c3);}return _0x1aee8c>0x3&&_0x31b1c3&&Object[_0x3e8fc1(0x1ac)](_0x1ab442,_0x548fbf,_0x31b1c3),_0x31b1c3;}let a=class{constructor(_0x16a283,_0xa8f61f,_0x18d708,_0x11d7d3,_0x2dc8b8,_0x59a17c){const _0x5e6fe8=_0x3617b1;this['_unitId']=_0x16a283,this['_rangeId']=_0xa8f61f,this[_0x5e6fe8(0x197)]=_0x18d708,this[_0x5e6fe8(0x1a6)]=_0x11d7d3,this['_service']=_0x2dc8b8,this[_0x5e6fe8(0x1c6)]=_0x59a17c;}['getId'](){const _0x21a1d0=_0x3617b1;return this[_0x21a1d0(0x1cd)];}[_0x3617b1(0x1a8)](){const _0x45f24d=_0x3617b1;let _0x1ce2e7=this[_0x45f24d(0x1d2)]();return _0x1ce2e7?{'endOffset':_0x1ce2e7[_0x45f24d(0x1a2)]+0x1,'rangeId':_0x1ce2e7[_0x45f24d(0x1e0)],'startOffset':_0x1ce2e7[_0x45f24d(0x1c0)]}:null;}['getFormula'](){const _0x363ceb=_0x3617b1;var _0x1da745;return((_0x1da745=this[_0x363ceb(0x1a6)][_0x363ceb(0x1b9)](this['_unitId'],this[_0x363ceb(0x1cd)]))==null?void 0x0:_0x1da745['formula'])??'';}[_0x3617b1(0x1c5)](){const _0xab2613=_0x3617b1;return this[_0xab2613(0x1a6)][_0xab2613(0x1b9)](this['_unitId'],this[_0xab2613(0x1cd)])??null;}['getResult'](){const _0x5ca197=_0x3617b1;return this[_0x5ca197(0x1ab)][_0x5ca197(0x1a7)]({'unitId':this['_unitId'],'rangeId':this[_0x5ca197(0x1cd)]})??null;}[_0x3617b1(0x1df)](){const _0x332b2b=_0x3617b1;let _0x33bba2=this[_0x332b2b(0x1a8)](),_0x170e30=this[_0x332b2b(0x1c5)](),_0xb81b4d=this[_0x332b2b(0x1a7)]();return!_0x33bba2||!_0x170e30||!_0xb81b4d?null:{..._0x33bba2,'config':_0x170e30,'formula':_0x170e30['formula'],'result':_0xb81b4d,'type':_0x332b2b(0x1db)};}['update'](_0x40ec96){const _0x8384c4=_0x3617b1;return this[_0x8384c4(0x197)][_0x8384c4(0x1c8)](e[_0x8384c4(0x1ae)]['id'],{'externalReferences':_0x40ec96['externalReferences'],'formula':_0x40ec96[_0x8384c4(0x1db)],'numberFormat':_0x40ec96[_0x8384c4(0x1ce)],'rangeId':this[_0x8384c4(0x1cd)],'unitId':this[_0x8384c4(0x1a0)]});}[_0x3617b1(0x1ad)](_0x4c516f){const _0x1c4bfd=_0x3617b1;return this[_0x1c4bfd(0x197)]['syncExecuteCommand'](e[_0x1c4bfd(0x1c4)]['id'],{'numberFormat':_0x4c516f,'rangeId':this['_rangeId'],'unitId':this[_0x1c4bfd(0x1a0)]});}[_0x3617b1(0x1b1)](){const _0x379059=_0x3617b1;return this[_0x379059(0x197)][_0x379059(0x1c8)](e[_0x379059(0x199)]['id'],{'rangeId':this['_rangeId'],'unitId':this[_0x379059(0x1a0)]});}['replaceWithText'](_0x16de30){const _0x49b723=_0x3617b1;return this[_0x49b723(0x197)][_0x49b723(0x1c8)](e[_0x49b723(0x1ca)]['id'],{'rangeId':this[_0x49b723(0x1cd)],'text':_0x16de30,'unitId':this['_unitId']});}[_0x3617b1(0x1d8)](){const _0x42abf4=_0x3617b1;return this[_0x42abf4(0x197)][_0x42abf4(0x1c8)](e[_0x42abf4(0x1d4)]['id'],{'rangeId':this[_0x42abf4(0x1cd)],'unitId':this['_unitId']});}[_0x3617b1(0x1d2)](){const _0x36fc41=_0x3617b1;var _0x101c79;let _0x28681=this[_0x36fc41(0x1c6)][_0x36fc41(0x1b3)](this[_0x36fc41(0x1a0)],t['UniverInstanceType']['UNIVER_DOC']);return _0x28681==null||(_0x101c79=_0x28681[_0x36fc41(0x1d1)]()[_0x36fc41(0x1d5)])==null||(_0x101c79=_0x101c79['customRanges'])==null?void 0x0:_0x101c79[_0x36fc41(0x1be)](_0x150fe9=>_0x150fe9[_0x36fc41(0x1e0)]===this[_0x36fc41(0x1cd)]&&(0x0,e[_0x36fc41(0x1dd)])(_0x150fe9));}};a=i([r(0x2,t[_0x3617b1(0x1aa)]),r(0x3,(0x0,t['Inject'])(e[_0x3617b1(0x1b4)])),r(0x4,(0x0,t[_0x3617b1(0x191)])(e[_0x3617b1(0x19a)])),r(0x5,t[_0x3617b1(0x1d3)])],a);function o(_0x14a26b){'@babel/helpers - typeof';const _0x538487=_0x3617b1;return o=typeof Symbol==_0x538487(0x19e)&&typeof Symbol[_0x538487(0x1af)]==_0x538487(0x190)?function(_0x2c8783){return typeof _0x2c8783;}:function(_0x1e04cc){const _0x5c8584=_0x538487;return _0x1e04cc&&typeof Symbol==_0x5c8584(0x19e)&&_0x1e04cc[_0x5c8584(0x1a4)]===Symbol&&_0x1e04cc!==Symbol[_0x5c8584(0x19c)]?_0x5c8584(0x190):typeof _0x1e04cc;},o(_0x14a26b);}function s(_0x20813e,_0x46d305){const _0x33625a=_0x3617b1;if(o(_0x20813e)!=_0x33625a(0x192)||!_0x20813e)return _0x20813e;var _0x6b3902=_0x20813e[Symbol['toPrimitive']];if(_0x6b3902!==void 0x0){var _0x35f7a8=_0x6b3902['call'](_0x20813e,_0x46d305||_0x33625a(0x1b6));if(o(_0x35f7a8)!=_0x33625a(0x192))return _0x35f7a8;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x46d305===_0x33625a(0x1ba)?String:Number)(_0x20813e);}function c(_0x11762f){const _0x2dc5d5=_0x3617b1;var _0x2cae8e=s(_0x11762f,'string');return o(_0x2cae8e)==_0x2dc5d5(0x190)?_0x2cae8e:_0x2cae8e+'';}function l(_0x2c248e,_0x535a47,_0x5be253){const _0x2ad50f=_0x3617b1;return(_0x535a47=c(_0x535a47))in _0x2c248e?Object[_0x2ad50f(0x1ac)](_0x2c248e,_0x535a47,{'value':_0x5be253,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x2c248e[_0x535a47]=_0x5be253,_0x2c248e;}var u=class extends n[_0x3617b1(0x1bf)]{constructor(..._0x2f585c){const _0x57eba2=_0x3617b1;super(..._0x2f585c),l(this,_0x57eba2(0x196),void 0x0),l(this,'_docsFormulaDisplayTextService',void 0x0),l(this,'_docsFormulaModel',void 0x0),l(this,'_docsFormulaResourceLoaderService',void 0x0);}[_0x3617b1(0x198)](_0x44bb84){const _0x40c20d=_0x3617b1;this[_0x40c20d(0x196)]=_0x44bb84['get'](t['ICommandService']),this['_docsFormulaDisplayTextService']=_0x44bb84[_0x40c20d(0x1da)](e[_0x40c20d(0x1e3)]),this[_0x40c20d(0x1a5)]=_0x44bb84[_0x40c20d(0x1da)](e[_0x40c20d(0x1b4)]),this[_0x40c20d(0x1a1)]=_0x44bb84[_0x40c20d(0x1da)](t['IResourceLoaderService']);}[_0x3617b1(0x19f)](){const _0x33a947=_0x3617b1;return this[_0x33a947(0x1bb)]()[_0x33a947(0x1e1)](_0x59a18f=>this[_0x33a947(0x18f)](_0x59a18f[_0x33a947(0x1e0)]));}[_0x3617b1(0x1b9)](_0x5a11cf){const _0xef22f1=_0x3617b1;return this[_0xef22f1(0x1bb)]()[_0xef22f1(0x1e5)](_0x4e53f3=>_0x4e53f3['rangeId']===_0x5a11cf)?this[_0xef22f1(0x18f)](_0x5a11cf):null;}['getFormulaAt'](_0x1020d9){const _0x9928a2=_0x3617b1;let _0x4ffa4e=this[_0x9928a2(0x1bb)]()['find'](_0x524f67=>_0x524f67['startIndex']<=_0x1020d9&&_0x1020d9<=_0x524f67[_0x9928a2(0x1a2)]);return _0x4ffa4e?this[_0x9928a2(0x18f)](_0x4ffa4e[_0x9928a2(0x1e0)]):null;}['saveFormulaDisplayTextSnapshot'](){const _0x3d3dc8=_0x3617b1;let _0x2ca50f=this[_0x3d3dc8(0x1a1)]['saveUnit'](this['id']);if(!_0x2ca50f)throw Error(_0x3d3dc8(0x1e4)+this['id']+_0x3d3dc8(0x18c));return this[_0x3d3dc8(0x18d)][_0x3d3dc8(0x1de)](_0x2ca50f);}['insertFormula'](_0x9c0d42){const _0x3f69c4=_0x3617b1;return this[_0x3f69c4(0x1d0)]({'externalReferences':_0x9c0d42['externalReferences'],'formula':_0x9c0d42[_0x3f69c4(0x1db)],'numberFormat':_0x9c0d42[_0x3f69c4(0x1ce)],'target':{'type':'range','startOffset':_0x9c0d42['startOffset'],'endOffset':_0x9c0d42[_0x3f69c4(0x1cc)]},'unitId':this[_0x3f69c4(0x1c7)]()});}[_0x3617b1(0x1d0)](_0x329841){const _0x37017e=_0x3617b1;let _0x2a9d70=this[_0x37017e(0x196)]['syncExecuteCommand'](e[_0x37017e(0x1c3)]['id'],_0x329841);return _0x2a9d70?this[_0x37017e(0x18f)](_0x2a9d70['rangeId']):null;}[_0x3617b1(0x1bb)](){const _0x4cb166=_0x3617b1;var _0x30c8b2;let _0x3e5f71=this['_docsFormulaModel'][_0x4cb166(0x19f)](this[_0x4cb166(0x1c7)]());return((_0x30c8b2=this[_0x4cb166(0x1b5)]('')['customRanges'])==null?void 0x0:_0x30c8b2[_0x4cb166(0x1b8)](_0x3902c2=>(0x0,e[_0x4cb166(0x1dd)])(_0x3902c2)&&_0x3e5f71[_0x3902c2['rangeId']]!=null))??[];}[_0x3617b1(0x18f)](_0x252c95){const _0xcd600a=_0x3617b1;return this[_0xcd600a(0x1c1)][_0xcd600a(0x1cb)](a,this[_0xcd600a(0x1c7)](),_0x252c95);}};n[_0x3617b1(0x1bf)][_0x3617b1(0x1b0)](u);var d=class extends n[_0x3617b1(0x18e)]{constructor(..._0x57a73f){const _0x5b3d85=_0x3617b1;super(..._0x57a73f),l(this,_0x5b3d85(0x196),void 0x0);}[_0x3617b1(0x198)](_0x208a65){const _0x24749d=_0x3617b1;this[_0x24749d(0x196)]=_0x208a65[_0x24749d(0x1da)](t[_0x24749d(0x1aa)]);}[_0x3617b1(0x1bd)](_0x5a1269,_0x5030e6,_0x2deb8e={}){const _0x1ae5b9=_0x3617b1;return this[_0x1ae5b9(0x1d0)](_0x5a1269,_0x5030e6,_0x2deb8e);}[_0x3617b1(0x195)](_0x2aa429,_0x5f1748={}){const _0x154e68=_0x3617b1;return this[_0x154e68(0x1d0)](_0x154e68(0x1d9),_0x2aa429,_0x5f1748);}[_0x3617b1(0x1d0)](_0xbcf0b8,_0x1064f1,_0x2af73a){const _0xc88842=_0x3617b1;if(this[_0xc88842(0x194)]())return null;let _0xb6b11a={'externalReferences':_0x2af73a[_0xc88842(0x18b)],'formula':_0x1064f1,'numberFormat':_0x2af73a['numberFormat'],'target':{'type':'paragraph','paragraphId':this[_0xc88842(0x1c7)](),'position':_0xbcf0b8},'unitId':this['_document'][_0xc88842(0x1c7)]()},_0x263918=this[_0xc88842(0x196)][_0xc88842(0x1c8)](e[_0xc88842(0x1c3)]['id'],_0xb6b11a);return _0x263918?this['_injector'][_0xc88842(0x1cb)](a,this[_0xc88842(0x1d7)]['getId'](),_0x263918[_0xc88842(0x1e0)]):null;}};n[_0x3617b1(0x18e)][_0x3617b1(0x1b0)](d);var f=class extends n[_0x3617b1(0x19b)]{constructor(..._0xcf07ac){super(..._0xcf07ac),l(this,'_docsFormulaCommandService',void 0x0);}[_0x3617b1(0x198)](_0x1f3680){const _0x3995b1=_0x3617b1;this[_0x3995b1(0x196)]=_0x1f3680[_0x3995b1(0x1da)](t[_0x3995b1(0x1aa)]);}[_0x3617b1(0x18a)](_0x28dea5,_0x514ddb={}){const _0x30535a=_0x3617b1;let {endOffset:_0x268b7f,segmentId:_0x21945e,startOffset:_0x15b996}=this[_0x30535a(0x1a8)]();return _0x21945e?null:this['_insert'](_0x15b996,_0x268b7f,_0x28dea5,_0x514ddb);}[_0x3617b1(0x1d0)](_0x5a3526,_0x433ba6,_0x33aff0,_0x1044ce){const _0x1d44e8=_0x3617b1;let _0x57a768={'externalReferences':_0x1044ce[_0x1d44e8(0x18b)],'formula':_0x33aff0,'numberFormat':_0x1044ce[_0x1d44e8(0x1ce)],'target':{'type':'range','startOffset':_0x5a3526,'endOffset':_0x433ba6},'unitId':this['_document'][_0x1d44e8(0x1c7)]()},_0x358b98=this[_0x1d44e8(0x196)][_0x1d44e8(0x1c8)](e[_0x1d44e8(0x1c3)]['id'],_0x57a768);return _0x358b98?this[_0x1d44e8(0x1c1)][_0x1d44e8(0x1cb)](a,this[_0x1d44e8(0x1d7)][_0x1d44e8(0x1c7)](),_0x358b98[_0x1d44e8(0x1e0)]):null;}};function _0x5da3(){const _0x48a75b=['_getCustomRange','IUniverInstanceService','ConvertDocFormulaToTextCommand','body','764458oFuijQ','_document','convertToText','end','get','formula','9921537mODWpM','isDocFormulaRange','degradeDocumentData','describe','rangeId','map','length','DocFormulaDisplayTextService','Document\x20','some','replaceWithFormula','externalReferences','\x20could\x20not\x20be\x20serialized.','_docsFormulaDisplayTextService','FDocumentParagraph','_createFormula','symbol','Inject','object','Module','getSegmentId','appendFormula','_docsFormulaCommandService','_commandService','_initialize','RemoveDocFormulaCommand','DocFormulaService','FDocumentTextRange','prototype','228557FMKfXb','function','getFormulas','_unitId','_docsFormulaResourceLoaderService','endIndex','4326880HIWirr','constructor','_docsFormulaModel','_model','getResult','getRange','427436NTEYzw','ICommandService','_service','defineProperty','setNumberFormat','UpdateDocFormulaCommand','iterator','extend','remove','7218504pukdhv','getUnit','DocFormulaModel','getBody','default','30oAaGHV','filter','getFormula','string','_getCompleteRanges','toStringTag','insertFormula','find','FDocument','startIndex','_injector','365314MmXufg','InsertDocFormulaCommand','SetDocFormulaNumberFormatCommand','getConfig','_univerInstanceService','getId','syncExecuteCommand','decorate','ReplaceDocFormulaWithTextCommand','createInstance','endOffset','_rangeId','numberFormat','136aQsIZx','_insert','getSnapshot'];_0x5da3=function(){return _0x48a75b;};return _0x5da3();}n[_0x3617b1(0x19b)][_0x3617b1(0x1b0)](f),Object[_0x3617b1(0x1ac)](exports,'FDocumentFormula',{'enumerable':!0x0,'get':function(){return a;}});
|
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x468d3c=_0x4dab;(function(_0x22065b,_0x22782c){const _0x174c87=_0x4dab,_0x28fc6e=_0x22065b();while(!![]){try{const _0x425c02=-parseInt(_0x174c87(0x16f))/0x1+-parseInt(_0x174c87(0x105))/0x2+-parseInt(_0x174c87(0x1db))/0x3*(-parseInt(_0x174c87(0x17c))/0x4)+parseInt(_0x174c87(0x1be))/0x5+-parseInt(_0x174c87(0x1cd))/0x6+-parseInt(_0x174c87(0x173))/0x7+parseInt(_0x174c87(0x162))/0x8;if(_0x425c02===_0x22782c)break;else _0x28fc6e['push'](_0x28fc6e['shift']());}catch(_0x5ea0ce){_0x28fc6e['push'](_0x28fc6e['shift']());}}}(_0x26ab,0x49859),Object['defineProperty'](exports,Symbol[_0x468d3c(0x188)],{'value':_0x468d3c(0x139)}));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=_0x468d3c(0x1ae),s=_0x468d3c(0xf5);function c(){return{'schemaVersion':0x1,'formulas':{}};}function l(_0x10d7a2){const _0x2f756d=_0x468d3c;return!_0x10d7a2||typeof _0x10d7a2!='object'||!f(_0x10d7a2,['schemaVersion','formulas'])||!(_0x2f756d(0xfa)in _0x10d7a2)||_0x10d7a2[_0x2f756d(0xfa)]!==0x1||!(_0x2f756d(0x164)in _0x10d7a2)||!_0x10d7a2[_0x2f756d(0x164)]||typeof _0x10d7a2[_0x2f756d(0x164)]!=_0x2f756d(0x120)||Array[_0x2f756d(0x11a)](_0x10d7a2[_0x2f756d(0x164)])?!0x1:Object[_0x2f756d(0x146)](_0x10d7a2[_0x2f756d(0x164)])['every'](([_0x1affc5,_0x1842a3])=>_0x1affc5[_0x2f756d(0x158)]>0x0&&u(_0x1842a3));}function u(_0xd50d1f){const _0x1be827=_0x468d3c;return!_0xd50d1f||typeof _0xd50d1f!=_0x1be827(0x120)||!f(_0xd50d1f,[_0x1be827(0x15e),_0x1be827(0x15b),_0x1be827(0x144)])||!(_0x1be827(0x15e)in _0xd50d1f)||typeof _0xd50d1f['formula']!=_0x1be827(0x1a8)||!_0xd50d1f[_0x1be827(0x15e)][_0x1be827(0x12b)]()||_0x1be827(0x15b)in _0xd50d1f&&_0xd50d1f['numberFormat']!=null&&(typeof _0xd50d1f['numberFormat']!=_0x1be827(0x120)||!f(_0xd50d1f[_0x1be827(0x15b)],['pattern'])||!(_0x1be827(0x13b)in _0xd50d1f[_0x1be827(0x15b)])||typeof _0xd50d1f[_0x1be827(0x15b)][_0x1be827(0x13b)]!='string')?!0x1:!('lastValue'in _0xd50d1f)||_0xd50d1f[_0x1be827(0x144)]==null||d(_0xd50d1f['lastValue']);}function d(_0x28e4f1){const _0x2dfb97=_0x468d3c;return!_0x28e4f1||typeof _0x28e4f1!=_0x2dfb97(0x120)||!f(_0x28e4f1,['v','t',_0x2dfb97(0x13b)])||!('v'in _0x28e4f1)||_0x28e4f1['v']!==null&&typeof _0x28e4f1['v']!=_0x2dfb97(0x1a8)&&typeof _0x28e4f1['v']!='number'&&typeof _0x28e4f1['v']!='boolean'||'t'in _0x28e4f1&&_0x28e4f1['t']!=null&&!ee(_0x28e4f1['t'])?!0x1:!('pattern'in _0x28e4f1)||_0x28e4f1[_0x2dfb97(0x13b)]==null||typeof _0x28e4f1['pattern']=='string';}function f(_0x3039d1,_0x431081){const _0x271891=_0x468d3c;let _0x5bfd7d=new Set(_0x431081);return Object[_0x271891(0xfc)](_0x3039d1)[_0x271891(0x159)](_0x48edbb=>_0x5bfd7d[_0x271891(0x1b8)](_0x48edbb));}function ee(_0x58ba08){const _0x26c12b=_0x468d3c;return typeof _0x58ba08==_0x26c12b(0x157)&&Object['values'](t['CellValueType'])['includes'](_0x58ba08);}const p=new Set([t[_0x468d3c(0x142)]['SECTION_BREAK'],t[_0x468d3c(0x142)]['TABLE_START'],t[_0x468d3c(0x142)]['TABLE_ROW_START'],t[_0x468d3c(0x142)]['TABLE_CELL_START'],t[_0x468d3c(0x142)][_0x468d3c(0x151)],t[_0x468d3c(0x142)][_0x468d3c(0x1c6)],t[_0x468d3c(0x142)]['TABLE_END'],t[_0x468d3c(0x142)][_0x468d3c(0x135)],t[_0x468d3c(0x142)][_0x468d3c(0x1e6)],t['DataStreamTreeTokenType'][_0x468d3c(0x16b)],t[_0x468d3c(0x142)][_0x468d3c(0x20b)],t['DataStreamTreeTokenType'][_0x468d3c(0x171)],t['DataStreamTreeTokenType'][_0x468d3c(0x207)],t[_0x468d3c(0x142)][_0x468d3c(0x216)]]);var m=class extends Error{constructor(){const _0x5301d7=_0x468d3c;super(_0x5301d7(0x1b2));}};function te(_0x461653){const _0xd526a7=_0x468d3c;var _0x5a6f62,_0x3031bb;let _0x87c690=t[_0xd526a7(0xeb)][_0xd526a7(0x149)](_0x461653[_0xd526a7(0x168)]),_0x39b354=T(_0x87c690),{startOffset:_0x17243e,endOffset:_0x1a5da3}=oe(_0x39b354,_0x461653['startOffset'],_0x461653['endOffset']);ie(_0x39b354,_0x17243e,_0x1a5da3);let _0x4ff303=((_0x5a6f62=_0x39b354[_0xd526a7(0x113)])==null?void 0x0:_0x5a6f62['filter'](_0x5f276a=>{const _0xf45ce4=_0xd526a7;if(!g(_0x5f276a))return!0x1;let _0x2a7c45=(0x0,t[_0xf45ce4(0x195)])(_0x5f276a);return _0x2a7c45[_0xf45ce4(0x186)]>_0x17243e&&_0x2a7c45[_0xf45ce4(0x1ba)]<_0x1a5da3;})['map'](_0x4d0f90=>_0x4d0f90[_0xd526a7(0x176)]))??[];ce(_0x39b354,_0x17243e,_0x1a5da3,''),_0x39b354[_0xd526a7(0x113)]=[...((_0x3031bb=_0x39b354[_0xd526a7(0x113)])==null?void 0x0:_0x3031bb[_0xd526a7(0x1ab)](_0x5872bf=>!_0x4ff303[_0xd526a7(0x182)](_0x5872bf[_0xd526a7(0x176)])&&_0x5872bf[_0xd526a7(0x176)]!==_0x461653[_0xd526a7(0x176)]))??[],ae(_0x461653[_0xd526a7(0x176)],_0x17243e)]['sort']((_0x1d2fa0,_0x68828e)=>_0x1d2fa0['startIndex']-_0x68828e['startIndex']);let _0x3c421c=v(_0x461653['resource']);return _0x4ff303[_0xd526a7(0x12d)](_0x2f8f1d=>{const _0x31857e=_0xd526a7;delete _0x3c421c[_0x31857e(0x164)][_0x2f8f1d];}),_0x3c421c['formulas'][_0x461653[_0xd526a7(0x176)]]=t[_0xd526a7(0xeb)]['deepClone'](_0x461653[_0xd526a7(0x198)]),{'nextDocumentData':_0x87c690,'nextResource':_0x3c421c,'cursorOffset':_0x17243e+0x1};}function ne(_0x41c5cc){const _0xc8e05a=_0x468d3c;var _0x36485f,_0x2c6f21;let _0x14b930=t[_0xc8e05a(0xeb)][_0xc8e05a(0x149)](_0x41c5cc[_0xc8e05a(0x168)]),_0x260c4d=(_0x36485f=T(_0x14b930)[_0xc8e05a(0x113)])==null?void 0x0:_0x36485f[_0xc8e05a(0x170)](_0x4297bb=>_0x4297bb['rangeId']===_0x41c5cc['rangeId']&&g(_0x4297bb));if(!_0x260c4d||!((_0x2c6f21=_0x41c5cc['resource'])!=null&&_0x2c6f21[_0xc8e05a(0x164)][_0x41c5cc[_0xc8e05a(0x176)]]))return null;let _0x498473=v(_0x41c5cc[_0xc8e05a(0x1c1)]);return _0x498473[_0xc8e05a(0x164)][_0x41c5cc[_0xc8e05a(0x176)]]=t[_0xc8e05a(0xeb)][_0xc8e05a(0x149)](_0x41c5cc['config']),{'nextDocumentData':_0x14b930,'nextResource':_0x498473,'cursorOffset':_0x260c4d[_0xc8e05a(0x179)]+0x1};}function h(_0x5ac61c){const _0x2ace8b=_0x468d3c;let _0x4d9a5c=t[_0x2ace8b(0xeb)][_0x2ace8b(0x149)](_0x5ac61c[_0x2ace8b(0x168)]),_0x1c528d=le(_0x4d9a5c,_0x5ac61c[_0x2ace8b(0x176)],_0x5ac61c[_0x2ace8b(0x11b)]??'');if(_0x1c528d==null)return null;let _0x4dc62f=v(_0x5ac61c[_0x2ace8b(0x1c1)]);return delete _0x4dc62f['formulas'][_0x5ac61c['rangeId']],{'nextDocumentData':_0x4d9a5c,'nextResource':_0x4dc62f,'cursorOffset':_0x1c528d};}function re(_0x5925f6,_0x5401a3){const _0x5d1b8f=_0x468d3c;var _0x2db0b4;let _0x2e518c=t[_0x5d1b8f(0xeb)][_0x5d1b8f(0x149)](_0x5925f6),_0x1e02b0=_0x2e518c['body'];if(!_0x1e02b0)return _0x2e518c;let _0x4b9dcc=new Map(_0x5401a3['map'](_0x219fe9=>[_0x219fe9[_0x5d1b8f(0x176)],_0x219fe9[_0x5d1b8f(0x11b)]])),_0x265d7b=((_0x2db0b4=_0x1e02b0[_0x5d1b8f(0x113)])==null?void 0x0:_0x2db0b4[_0x5d1b8f(0x1ab)](_0x469917=>g(_0x469917)&&_0x4b9dcc['has'](_0x469917['rangeId']))[_0x5d1b8f(0x140)]((_0x3d1d4c,_0x3c7ad7)=>_0x3c7ad7['startIndex']-_0x3d1d4c['startIndex']))??[];for(let _0x50081f of _0x265d7b)le(_0x2e518c,_0x50081f[_0x5d1b8f(0x176)],_0x4b9dcc['get'](_0x50081f[_0x5d1b8f(0x176)])??'');return _0x2e518c;}function g(_0x38b5c7){const _0x54cce6=_0x468d3c;var _0x2a1521;return(_0x38b5c7==null?void 0x0:_0x38b5c7['rangeType'])===t[_0x54cce6(0xe9)]['CUSTOM']&&_0x38b5c7[_0x54cce6(0x196)]===!0x0&&((_0x2a1521=_0x38b5c7[_0x54cce6(0x1b0)])==null?void 0x0:_0x2a1521['kind'])==='univer-docs-formula';}function _(_0x116142,_0x47a17e){const _0x2dec27=_0x468d3c;var _0x17c90c;return _0x116142==null||(_0x17c90c=_0x116142['customRanges'])==null?void 0x0:_0x17c90c[_0x2dec27(0x170)](_0x4762fc=>_0x4762fc[_0x2dec27(0x176)]===_0x47a17e&&g(_0x4762fc));}function ie(_0x8dcf73,_0x47347b,_0x323742){const _0x3ed903=_0x468d3c;if(_0x47347b===_0x323742){if(p[_0x3ed903(0x1b8)](_0x8dcf73[_0x3ed903(0xef)][_0x47347b]))throw new m();}else{for(let _0x11bb92=_0x47347b;_0x11bb92<_0x323742;_0x11bb92++)if(_0x8dcf73[_0x3ed903(0xef)][_0x11bb92]===t['DataStreamTreeTokenType'][_0x3ed903(0x11c)]||p[_0x3ed903(0x1b8)](_0x8dcf73[_0x3ed903(0xef)][_0x11bb92]))throw new m();}}function ae(_0xa9bba0,_0x2d97c6){const _0x3814b2=_0x468d3c;return{'startIndex':_0x2d97c6,'endIndex':_0x2d97c6,'rangeId':_0xa9bba0,'rangeType':t[_0x3814b2(0xe9)]['CUSTOM'],'wholeEntity':!0x0,'properties':{'kind':s}};}function v(_0x122b89){const _0x4b46a4=_0x468d3c;return _0x122b89?t[_0x4b46a4(0xeb)][_0x4b46a4(0x149)](_0x122b89):c();}function oe(_0x5cc055,_0x884d8d,_0x2aa145){const _0x5866bb=_0x468d3c;let _0x3f3dff=se(_0x5cc055),_0x11a3eb=_0x884d8d??_0x3f3dff,_0x52e6f6=_0x2aa145??_0x11a3eb;return{'startOffset':y(Math[_0x5866bb(0x136)](_0x11a3eb,_0x52e6f6),_0x3f3dff),'endOffset':y(Math[_0x5866bb(0xf2)](_0x11a3eb,_0x52e6f6),_0x3f3dff)};}function y(_0x1f3cdd,_0x11c8e1){const _0x58f8b0=_0x468d3c;return Math[_0x58f8b0(0xf2)](0x0,Math['min'](_0x1f3cdd,_0x11c8e1));}function se(_0x5b190a){const _0x4cfc52=_0x468d3c;return _0x5b190a[_0x4cfc52(0xef)]['endsWith'](''+t[_0x4cfc52(0x142)][_0x4cfc52(0x11c)]+t[_0x4cfc52(0x142)][_0x4cfc52(0x19e)])?Math[_0x4cfc52(0xf2)](0x0,_0x5b190a[_0x4cfc52(0xef)][_0x4cfc52(0x158)]-0x2):_0x5b190a[_0x4cfc52(0xef)][_0x4cfc52(0x137)](t['DataStreamTreeTokenType'][_0x4cfc52(0x19e)])?Math[_0x4cfc52(0xf2)](0x0,_0x5b190a[_0x4cfc52(0xef)][_0x4cfc52(0x158)]-0x1):_0x5b190a[_0x4cfc52(0xef)][_0x4cfc52(0x158)];}function ce(_0x1a5c4f,_0x6f1ad8,_0x12eb8a,_0x2a95cd){_0x12eb8a>_0x6f1ad8&&de(_0x1a5c4f,_0x6f1ad8,_0x12eb8a),ue(_0x1a5c4f,_0x6f1ad8,_0x2a95cd);}function le(_0x156057,_0x3f9117,_0x8af5a2){const _0x2e99df=_0x468d3c;var _0x56d937,_0x4c7eb8;let _0xbf1b65=T(_0x156057),_0x5a58da=(_0x56d937=_0xbf1b65[_0x2e99df(0x113)])==null?void 0x0:_0x56d937[_0x2e99df(0x170)](_0x240c80=>_0x240c80['rangeId']===_0x3f9117&&g(_0x240c80));if(!_0x5a58da)return null;let _0x381d3b=(0x0,t[_0x2e99df(0x195)])(_0x5a58da);return ce(_0xbf1b65,_0x381d3b[_0x2e99df(0x1ba)],_0x381d3b['endOffset'],_0x8af5a2),_0xbf1b65[_0x2e99df(0x113)]=(_0x4c7eb8=_0xbf1b65['customRanges'])==null?void 0x0:_0x4c7eb8[_0x2e99df(0x1ab)](_0x58d145=>_0x58d145[_0x2e99df(0x176)]!==_0x3f9117),_0x381d3b[_0x2e99df(0x1ba)]+_0x8af5a2[_0x2e99df(0x158)];}function ue(_0xdb158,_0x7007b2,_0x492069){const _0x26831e=_0x468d3c;_0x492069&&(_0xdb158[_0x26831e(0xef)]=''+_0xdb158[_0x26831e(0xef)][_0x26831e(0xec)](0x0,_0x7007b2)+_0x492069+_0xdb158[_0x26831e(0xef)][_0x26831e(0xec)](_0x7007b2),fe(_0xdb158,_0x7007b2,_0x492069[_0x26831e(0x158)]));}function de(_0x1e95ba,_0x29f8c3,_0x4b4b59){const _0x2a7def=_0x468d3c;let _0x50e5c5=_0x4b4b59-_0x29f8c3;_0x1e95ba[_0x2a7def(0xef)]=''+_0x1e95ba['dataStream'][_0x2a7def(0xec)](0x0,_0x29f8c3)+_0x1e95ba[_0x2a7def(0xef)][_0x2a7def(0xec)](_0x4b4b59),pe(_0x1e95ba,_0x29f8c3,_0x50e5c5);}function fe(_0x945ed2,_0x13f461,_0x4b400f){const _0x5937ce=_0x468d3c;_0x945ed2[_0x5937ce(0x1e2)]=b(_0x945ed2[_0x5937ce(0x1e2)],_0x13f461,_0x4b400f),_0x945ed2[_0x5937ce(0x191)]=b(_0x945ed2[_0x5937ce(0x191)],_0x13f461,_0x4b400f),_0x945ed2['customBlocks']=b(_0x945ed2[_0x5937ce(0x197)],_0x13f461,_0x4b400f),_0x945ed2[_0x5937ce(0x1a1)]=me(_0x945ed2[_0x5937ce(0x1a1)],_0x13f461,_0x4b400f),_0x945ed2[_0x5937ce(0x10e)]=he(_0x945ed2[_0x5937ce(0x10e)],_0x13f461,_0x4b400f),_0x945ed2['columnGroups']=S(_0x945ed2[_0x5937ce(0x1f5)],_0x13f461,_0x4b400f),_0x945ed2['customRanges']=S(_0x945ed2[_0x5937ce(0x113)],_0x13f461,_0x4b400f),_0x945ed2['customDecorations']=S(_0x945ed2['customDecorations'],_0x13f461,_0x4b400f),_0x945ed2['blockRanges']=S(_0x945ed2[_0x5937ce(0x169)],_0x13f461,_0x4b400f);}function pe(_0x137948,_0x4a0e81,_0x8ea955){const _0x1fddeb=_0x468d3c;var _0x7ebc4d,_0x7be763;_0x137948[_0x1fddeb(0x1e2)]=x(_0x137948['paragraphs'],_0x4a0e81,_0x8ea955),_0x137948[_0x1fddeb(0x191)]=x(_0x137948[_0x1fddeb(0x191)],_0x4a0e81,_0x8ea955),_0x137948[_0x1fddeb(0x197)]=x(_0x137948[_0x1fddeb(0x197)],_0x4a0e81,_0x8ea955),_0x137948[_0x1fddeb(0x1a1)]=(_0x7ebc4d=w((_0x7be763=_0x137948[_0x1fddeb(0x1a1)])==null?void 0x0:_0x7be763['map'](_0x1d6531=>({..._0x1d6531,'startIndex':_0x1d6531['st'],'endIndex':_0x1d6531['ed']})),_0x4a0e81,_0x8ea955))==null?void 0x0:_0x7ebc4d['map'](_0x2fd566=>{let {startIndex:_0x3736f6,endIndex:_0x44e31d,..._0x41e42f}=_0x2fd566;return{..._0x41e42f,'st':_0x3736f6,'ed':_0x44e31d};}),_0x137948[_0x1fddeb(0x10e)]=w(_0x137948['tables'],_0x4a0e81,_0x8ea955),_0x137948[_0x1fddeb(0x1f5)]=C(_0x137948['columnGroups'],_0x4a0e81,_0x8ea955),_0x137948[_0x1fddeb(0x113)]=C(_0x137948[_0x1fddeb(0x113)],_0x4a0e81,_0x8ea955),_0x137948[_0x1fddeb(0x1a3)]=C(_0x137948['customDecorations'],_0x4a0e81,_0x8ea955),_0x137948[_0x1fddeb(0x169)]=C(_0x137948[_0x1fddeb(0x169)],_0x4a0e81,_0x8ea955);}function b(_0x1c2c1d,_0x4dffe2,_0x4467f5){const _0x4c7c58=_0x468d3c;return _0x1c2c1d==null?void 0x0:_0x1c2c1d[_0x4c7c58(0x18f)](_0x1e6403=>_0x1e6403['startIndex']>=_0x4dffe2?{..._0x1e6403,'startIndex':_0x1e6403['startIndex']+_0x4467f5}:_0x1e6403);}function x(_0x284c90,_0x74f0f7,_0xd8ecdb){const _0x333408=_0x468d3c;let _0x301d79=_0x74f0f7+_0xd8ecdb;return _0x284c90==null?void 0x0:_0x284c90[_0x333408(0x18f)](_0x55cbc1=>_0x55cbc1[_0x333408(0x1fa)]>=_0x74f0f7&&_0x55cbc1[_0x333408(0x1fa)]<_0x301d79?null:_0x55cbc1[_0x333408(0x1fa)]>=_0x301d79?{..._0x55cbc1,'startIndex':_0x55cbc1['startIndex']-_0xd8ecdb}:_0x55cbc1)[_0x333408(0x1ab)](_0x17024a=>_0x17024a!=null);}function _0x26ab(){const _0x289c21=['unregisterUnit','_isDisposed','getCustomRangeInterval','wholeEntity','customBlocks','config','fromEntries','EMPTY','Disposable','eligible','registerPluginResource','SECTION_BREAK','removeUnit','onStarting','textRuns','UniverDocsFormulaPlugin','customDecorations','setFormulas','_syncUnit','resourceRedo','insertLength','string','push','unitDisposed$','filter','getBodySliceForTextXAction','default','DOC_FORMULA_PLUGIN','_configService','properties','isFormulaLastValue','Doc\x20Formula\x20range\x20cannot\x20cross\x20document\x20structure\x20boundaries','cursorOffset','registerFormulaWithRange','DocTextResolverService','findDocFormulaRange','resolveFormulaResultPresentation','has','_service','startOffset','clear','pushUndoRedo','DocFormulaResourceController','2086180hkbCGS','UpdateDocFormulaCommand','DependentOn','resource','insert','getAllUnitsForType','name','next','TABLE_ROW_END','nextDocumentData','_formulaService','collectFormulaExternalReferenceQualifiers','body','add','unsupported-version','2768100fBOEER','docs-formula.command.set-number-format','disposeWithMe','presentation','DocSelectionManagerService','range','subscribe','from','stale','setResource','UniverDocsPlugin','_loadErrors','ConvertDocFormulaToTextCommand','values','448143AChKrA','getRichTextEditPath','generateRandomId','editOp','_preserveInvalid','constructor','DOC_FORMULA_SCHEMA_VERSION','paragraphs','DocFormulaLifecycleController','_rawResources','getRevision','COLUMN_START','_deleteRegistration','replaceDocRanges','_hostExternalReferenceModel','delete','pending','collectMutations','color','status','decorate','getFormula','setFormula','IUniverInstanceService','_queueSync','previousResource','columnGroups','resolveFormula','type','Inject','isInteger','startIndex','SetDocFormulaMutation','retain','docs-formula.mutation.set-last-values','invalid-resource','_config','Injector','_presentationChanged$','document','SetDocFormulaResourceMutation','InvalidDocFormulaInsertRangeError','LexerTreeBuilder','some','BLOCK_END','_docFormulaModel','error','getResult','COLUMN_GROUP_END','register','formulaResult$','ICommandService','asObservable','JSONX','segmentId','SetDocFormulaNumberFormatCommand','SUCCESS','serialize','getFormulas','CUSTOM_BLOCK','toFormulaLastValue','ReplaceDocFormulaWithTextCommand','startsWith','assertSafeDocFormulaInsertRange','referenceRevision','pluginName','resources','updates','symbol','CustomRangeType','degradeDocumentData','Tools','slice','params','end','dataStream','SetDocFormulaLastValuesMutation','getBody','max','notifyTextChanged','MUTATION','univer-docs-formula','syncExecuteCommand','1.3.0','getRegisteredFormulas','defineProperty','schemaVersion','externalReferences','keys','getUnitId','_syncScheduled','cell','start','call','_model','getParagraphContentStartOffset','previousDocumentData','524532LTpPJo','resolveBinding','getScalarFormulaResultCell','identity','getUnit','COMMAND','resolved','degradeBody','version','tables','getCurrentUnitOfType','resourceUndo','source','RemoveDocFormulaMutation','customRanges','expectedNumberFormat','dispose','target','InsertDocFormulaCommand','_setPresentation','deleteFormula','isArray','text','PARAGRAPH','getResource','getPresentation','complete','object','documentRedo','degradeDocFormulaDocumentData','RichTextEditingMutation','DOC_FORMULA_CUSTOM_RANGE_KIND','unitId','paragraphId','function','set','DOC_SELECTION_OPTION_PRESERVE_CARET','load','trim','liveResult','forEach','UNIVER_DOC','_cacheEligibilityService','_registrations','trigger','buildRemoveDocFormulaActions','FormulaCacheEligibilityService','getLoadError','COLUMN_GROUP_START','min','endsWith','Subject','Module','change$','pattern','externalMutations','HostExternalReferenceModel','disabled','_injector','sort','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','DataStreamTreeTokenType','syncUnit','lastValue','removeFormula','entries','docs-formula.mutation.set-formula','docs-formula.config','deepClone','expectedReferenceRevision','formulaId','_commandService','resolveText','_resourceManagerService','FormulaResultStatus','_formulaKeys','TABLE_CELL_END','model','accessor','TextX','_instanceService','_registrationService','number','length','every','toPrimitive','numberFormat','buildUpsertHostExternalReferenceMutations','_univerInstanceService','formula','ERROR','DocFormulaService','references','7049032SqXSdq','docs-formula.command.replace-with-text','formulas','shiftExclusiveRangeOnInsert','_resources','CommandType','documentData','blockRanges','UniverInstanceType','COLUMN_END','_updateFormulaResult','undoMutation','DocFormulaModel','61700QXFtMu','find','BLOCK_START','resolveHostFormulaExternalReferences','3574662NtFvSa','parse','getSnapshot','rangeId','DocFormulaDisplayTextService','RegisterOtherFormulaService','endIndex','success','deleteLength','8YEDEDl','getFormulaValueSync','_pendingUnitIds','presentationChanged$','IResourceManagerService','get','includes','iterator','OtherFormulaBizType','PENDING','endOffset','empty','toStringTag','sequenceNodesBuilder','redoMutation','nextResource','shiftExclusiveRangeOnDelete','_change$','getOwnPropertyDescriptor','map','selection','sectionBreaks','unregister'];_0x26ab=function(){return _0x289c21;};return _0x26ab();}function me(_0x5564d7,_0x176017,_0x4d555f){const _0x410339=_0x468d3c;return _0x5564d7==null?void 0x0:_0x5564d7[_0x410339(0x18f)](_0x105bbc=>_0x105bbc['st']>=_0x176017?{..._0x105bbc,'st':_0x105bbc['st']+_0x4d555f,'ed':_0x105bbc['ed']+_0x4d555f}:_0x105bbc['ed']>_0x176017?{..._0x105bbc,'ed':_0x105bbc['ed']+_0x4d555f}:_0x105bbc);}function S(_0x2f5b2f,_0x22525a,_0x27b82a){return _0x2f5b2f==null?void 0x0:_0x2f5b2f['map'](_0xb4c930=>(0x0,t['shiftInclusiveRangeOnInsert'])(_0xb4c930,_0x22525a,_0x27b82a));}function he(_0x8d26ea,_0x1fcddb,_0x1b83fb){const _0x384b27=_0x468d3c;return _0x8d26ea==null?void 0x0:_0x8d26ea[_0x384b27(0x18f)](_0x3b1891=>(0x0,t[_0x384b27(0x165)])(_0x3b1891,_0x1fcddb,_0x1b83fb));}function C(_0x3fda2c,_0x5dd452,_0x3be7a6){const _0x3547a7=_0x468d3c;return _0x3fda2c==null?void 0x0:_0x3fda2c[_0x3547a7(0x18f)](_0x53c479=>(0x0,t['shiftInclusiveRangeOnDelete'])(_0x53c479,_0x5dd452,_0x3be7a6))[_0x3547a7(0x1ab)](_0x595135=>_0x595135!=null);}function w(_0x12fa04,_0x56b112,_0x1c9481){const _0x1a0983=_0x468d3c;return _0x12fa04==null?void 0x0:_0x12fa04[_0x1a0983(0x18f)](_0x29df18=>(0x0,t[_0x1a0983(0x18c)])(_0x29df18,_0x56b112,_0x1c9481))[_0x1a0983(0x1ab)](_0x1a20fc=>_0x1a20fc!=null);}function T(_0x575e3a){const _0x28fc86=_0x468d3c;if(!_0x575e3a['body'])throw Error('Document\x20main\x20body\x20is\x20required\x20to\x20insert\x20Doc\x20Formula.');return _0x575e3a[_0x28fc86(0x1ca)];}function E(_0x6c6f2d){'@babel/helpers - typeof';const _0xe2b6cc=_0x468d3c;return E=typeof Symbol==_0xe2b6cc(0x127)&&typeof Symbol[_0xe2b6cc(0x183)]==_0xe2b6cc(0xe8)?function(_0x5bcc84){return typeof _0x5bcc84;}:function(_0x1f5453){const _0x5a88d2=_0xe2b6cc;return _0x1f5453&&typeof Symbol==_0x5a88d2(0x127)&&_0x1f5453[_0x5a88d2(0x1e0)]===Symbol&&_0x1f5453!==Symbol['prototype']?_0x5a88d2(0xe8):typeof _0x1f5453;},E(_0x6c6f2d);}function ge(_0x177831,_0x325034){const _0x1cad4b=_0x468d3c;if(E(_0x177831)!=_0x1cad4b(0x120)||!_0x177831)return _0x177831;var _0x5c3545=_0x177831[Symbol[_0x1cad4b(0x15a)]];if(_0x5c3545!==void 0x0){var _0x5100d8=_0x5c3545[_0x1cad4b(0x101)](_0x177831,_0x325034||_0x1cad4b(0x1ad));if(E(_0x5100d8)!='object')return _0x5100d8;throw TypeError(_0x1cad4b(0x141));}return(_0x325034===_0x1cad4b(0x1a8)?String:Number)(_0x177831);}function _e(_0x5923a7){const _0x2b9b59=_0x468d3c;var _0x51741=ge(_0x5923a7,_0x2b9b59(0x1a8));return E(_0x51741)=='symbol'?_0x51741:_0x51741+'';}function D(_0x243554,_0x17b41e,_0x241350){const _0x553f23=_0x468d3c;return(_0x17b41e=_e(_0x17b41e))in _0x243554?Object[_0x553f23(0xf9)](_0x243554,_0x17b41e,{'value':_0x241350,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x243554[_0x17b41e]=_0x241350,_0x243554;}var O=class extends t[_0x468d3c(0x19b)]{constructor(..._0x270fb0){const _0x26d24d=_0x468d3c;super(..._0x270fb0),D(this,_0x26d24d(0x166),new Map()),D(this,_0x26d24d(0x1e4),new Map()),D(this,'_loadErrors',new Map()),D(this,'_change$',new i[(_0x26d24d(0x138))]()),D(this,'change$',this[_0x26d24d(0x18d)]['asObservable']());}[_0x468d3c(0x1f0)](_0x4b5972,_0xbf8cb0){const _0x24499c=_0x468d3c;var _0x377133;let _0x582ca3=(_0x377133=this[_0x24499c(0x166)][_0x24499c(0x181)](_0x4b5972))==null?void 0x0:_0x377133[_0x24499c(0x164)][_0xbf8cb0];return _0x582ca3?t['Tools'][_0x24499c(0x149)](_0x582ca3):void 0x0;}[_0x468d3c(0x215)](_0x753d31){const _0x3c80bd=_0x468d3c;var _0x453329;return t[_0x3c80bd(0xeb)][_0x3c80bd(0x149)](((_0x453329=this[_0x3c80bd(0x166)][_0x3c80bd(0x181)](_0x753d31))==null?void 0x0:_0x453329[_0x3c80bd(0x164)])??{});}['getResource'](_0x3a04f3){const _0x19bece=_0x468d3c;let _0x2947b2=this[_0x19bece(0x166)][_0x19bece(0x181)](_0x3a04f3);return _0x2947b2?t[_0x19bece(0xeb)]['deepClone'](_0x2947b2):void 0x0;}[_0x468d3c(0x1f1)](_0x23b103,_0x3bd107,_0x24e92f){const _0x3adbda=_0x468d3c;return this[_0x3adbda(0x1a4)](_0x23b103,{[_0x3bd107]:_0x24e92f});}['setResource'](_0x115226,_0x5e3bf7){const _0x31b736=_0x468d3c;return this[_0x31b736(0x1d8)][_0x31b736(0x1b8)](_0x115226)||!l(_0x5e3bf7)?!0x1:(this[_0x31b736(0x166)]['set'](_0x115226,t['Tools']['deepClone'](_0x5e3bf7)),this[_0x31b736(0x18d)][_0x31b736(0x1c5)]({'unitId':_0x115226}),!0x0);}['setFormulas'](_0x20d165,_0x514682){const _0x18cdd1=_0x468d3c;if(this['_loadErrors']['has'](_0x20d165)||!Object[_0x18cdd1(0xfc)](_0x514682)[_0x18cdd1(0x158)]||!l({'schemaVersion':0x1,'formulas':_0x514682}))return!0x1;let _0x1b4e32=this[_0x18cdd1(0x166)][_0x18cdd1(0x181)](_0x20d165)??c(),_0x31f4ef=t[_0x18cdd1(0xeb)][_0x18cdd1(0x149)](_0x1b4e32);return Object['assign'](_0x31f4ef['formulas'],t[_0x18cdd1(0xeb)]['deepClone'](_0x514682)),this['_resources'][_0x18cdd1(0x128)](_0x20d165,_0x31f4ef),this[_0x18cdd1(0x18d)][_0x18cdd1(0x1c5)]({'unitId':_0x20d165,'rangeIds':Object[_0x18cdd1(0xfc)](_0x514682)}),!0x0;}['removeFormula'](_0x2f6afd,_0x469cc1){const _0x3db0af=_0x468d3c;if(this[_0x3db0af(0x1d8)][_0x3db0af(0x1b8)](_0x2f6afd))return!0x1;let _0x229b3c=this[_0x3db0af(0x166)][_0x3db0af(0x181)](_0x2f6afd);if(!(_0x229b3c!=null&&_0x229b3c[_0x3db0af(0x164)][_0x469cc1]))return!0x1;let _0x2ffe66=t[_0x3db0af(0xeb)][_0x3db0af(0x149)](_0x229b3c);return delete _0x2ffe66['formulas'][_0x469cc1],this[_0x3db0af(0x166)]['set'](_0x2f6afd,_0x2ffe66),this[_0x3db0af(0x18d)][_0x3db0af(0x1c5)]({'unitId':_0x2f6afd,'rangeIds':[_0x469cc1]}),!0x0;}[_0x468d3c(0x12a)](_0x3120d6,_0x1fce61){const _0x4deb97=_0x468d3c;return _0x1fce61&&typeof _0x1fce61=='object'&&_0x4deb97(0xfa)in _0x1fce61&&_0x1fce61[_0x4deb97(0xfa)]!==0x1?(this['_preserveInvalid'](_0x3120d6,_0x1fce61,_0x4deb97(0x1cc)),!0x1):l(_0x1fce61)?(this['_resources'][_0x4deb97(0x128)](_0x3120d6,t[_0x4deb97(0xeb)][_0x4deb97(0x149)](_0x1fce61)),this[_0x4deb97(0x1e4)][_0x4deb97(0x1ea)](_0x3120d6),this[_0x4deb97(0x1d8)]['delete'](_0x3120d6),this[_0x4deb97(0x18d)][_0x4deb97(0x1c5)]({'unitId':_0x3120d6}),!0x0):(this[_0x4deb97(0x1df)](_0x3120d6,_0x1fce61,_0x4deb97(0x1fe)),!0x1);}['serialize'](_0x419f55){const _0x17de66=_0x468d3c;let _0x3ecf7a=this[_0x17de66(0x166)]['get'](_0x419f55);return _0x3ecf7a?t['Tools'][_0x17de66(0x149)](_0x3ecf7a):this[_0x17de66(0x1e4)]['has'](_0x419f55)?t[_0x17de66(0xeb)][_0x17de66(0x149)](this[_0x17de66(0x1e4)][_0x17de66(0x181)](_0x419f55)):c();}[_0x468d3c(0x134)](_0x27ec08){const _0x76eb5c=_0x468d3c;return this[_0x76eb5c(0x1d8)][_0x76eb5c(0x181)](_0x27ec08);}['removeUnit'](_0x16882b){const _0x243172=_0x468d3c;this[_0x243172(0x166)][_0x243172(0x1ea)](_0x16882b),this[_0x243172(0x1e4)]['delete'](_0x16882b),this[_0x243172(0x1d8)][_0x243172(0x1ea)](_0x16882b),this[_0x243172(0x18d)]['next']({'unitId':_0x16882b});}['dispose'](){const _0x4d47b4=_0x468d3c;this[_0x4d47b4(0x166)]['clear'](),this[_0x4d47b4(0x1e4)][_0x4d47b4(0x1bb)](),this['_loadErrors'][_0x4d47b4(0x1bb)](),this['_change$'][_0x4d47b4(0x11f)](),super[_0x4d47b4(0x115)]();}[_0x468d3c(0x1df)](_0x216f3d,_0x3e1872,_0x4894da){const _0x198d00=_0x468d3c;this['_resources']['delete'](_0x216f3d),this[_0x198d00(0x1e4)][_0x198d00(0x128)](_0x216f3d,t[_0x198d00(0xeb)][_0x198d00(0x149)](_0x3e1872)),this[_0x198d00(0x1d8)][_0x198d00(0x128)](_0x216f3d,_0x4894da),this[_0x198d00(0x18d)][_0x198d00(0x1c5)]({'unitId':_0x216f3d});}};let ve=function(_0x57a9da){const _0x33dc0d=_0x468d3c;return _0x57a9da[_0x33dc0d(0x19a)]=_0x33dc0d(0x187),_0x57a9da[_0x33dc0d(0x185)]=_0x33dc0d(0x1eb),_0x57a9da[_0x33dc0d(0x213)]=_0x33dc0d(0x17a),_0x57a9da[_0x33dc0d(0x15f)]=_0x33dc0d(0x209),_0x57a9da;}({});function k(_0xdf9a17,_0x1fd118){return function(_0x7aef7e,_0x39e7fa){_0x1fd118(_0x7aef7e,_0x39e7fa,_0xdf9a17);};}function A(_0x19cfc7,_0x38daaa,_0x5a6eeb,_0x435a73){const _0x2d3528=_0x468d3c;var _0x16e143=arguments[_0x2d3528(0x158)],_0x214ff3=_0x16e143<0x3?_0x38daaa:_0x435a73===null?_0x435a73=Object[_0x2d3528(0x18e)](_0x38daaa,_0x5a6eeb):_0x435a73,_0x33b34c;if(typeof Reflect==_0x2d3528(0x120)&&typeof Reflect['decorate']=='function')_0x214ff3=Reflect[_0x2d3528(0x1ef)](_0x19cfc7,_0x38daaa,_0x5a6eeb,_0x435a73);else{for(var _0x3ec663=_0x19cfc7['length']-0x1;_0x3ec663>=0x0;_0x3ec663--)(_0x33b34c=_0x19cfc7[_0x3ec663])&&(_0x214ff3=(_0x16e143<0x3?_0x33b34c(_0x214ff3):_0x16e143>0x3?_0x33b34c(_0x38daaa,_0x5a6eeb,_0x214ff3):_0x33b34c(_0x38daaa,_0x5a6eeb))||_0x214ff3);}return _0x16e143>0x3&&_0x214ff3&&Object[_0x2d3528(0xf9)](_0x38daaa,_0x5a6eeb,_0x214ff3),_0x214ff3;}let j=class extends t[_0x468d3c(0x19b)]{constructor(_0x533a43,_0x41b67c,_0x4d784a){const _0x397209=_0x468d3c;super(),this[_0x397209(0x102)]=_0x533a43,this[_0x397209(0x156)]=_0x41b67c,this[_0x397209(0x1e9)]=_0x4d784a,D(this,'_registrations',new Map()),D(this,'_formulaKeys',new Map()),D(this,_0x397209(0x201),new i[(_0x397209(0x138))]()),D(this,_0x397209(0x17f),this[_0x397209(0x201)][_0x397209(0x20f)]()),this[_0x397209(0x1cf)](this[_0x397209(0x156)][_0x397209(0x20d)][_0x397209(0x1d3)](_0x3df409=>{const _0x2a51f5=_0x397209;for(let _0x9b0ef8 of Object['values'](_0x3df409))for(let _0x55462d of Object['values'](_0x9b0ef8))_0x55462d[_0x2a51f5(0x12d)](_0x1fc744=>this['_updateFormulaResult'](_0x1fc744));}));}['syncUnit'](_0x330c82){const _0x4a05cf=_0x468d3c;var _0xc156d9;let _0x19ea98=_0x330c82[_0x4a05cf(0xfd)](),_0x3f2b49=((_0xc156d9=_0x330c82[_0x4a05cf(0x175)]()[_0x4a05cf(0x1ca)])==null||(_0xc156d9=_0xc156d9[_0x4a05cf(0x113)])==null?void 0x0:_0xc156d9[_0x4a05cf(0x1ab)](g))??[],_0x1d5da3=this['_model']['getFormulas'](_0x19ea98),_0x2a153e=new Set();for(let _0x9c2906 of _0x3f2b49){let _0x1ccb67=_0x1d5da3[_0x9c2906[_0x4a05cf(0x176)]];_0x1ccb67&&(_0x2a153e['add'](M(_0x19ea98,_0x9c2906['rangeId'])),this[_0x4a05cf(0x20c)]({'unitId':_0x19ea98,'rangeId':_0x9c2906[_0x4a05cf(0x176)]},_0x1ccb67));}for(let _0x4cb6db of Array[_0x4a05cf(0x1d4)](this[_0x4a05cf(0x130)][_0x4a05cf(0x1da)]()))_0x4cb6db[_0x4a05cf(0x125)]===_0x19ea98&&!_0x2a153e['has'](M(_0x4cb6db[_0x4a05cf(0x125)],_0x4cb6db[_0x4a05cf(0x176)]))&&this[_0x4a05cf(0x192)](_0x4cb6db);}[_0x468d3c(0x20c)](_0xc03823,_0x47b2aa){const _0x483299=_0x468d3c;let _0x266a17=M(_0xc03823[_0x483299(0x125)],_0xc03823['rangeId']),_0x5b761e=this[_0x483299(0x130)][_0x483299(0x181)](_0x266a17),_0x5e4bbf=this['_hostExternalReferenceModel']['getRevision'](_0xc03823[_0x483299(0x125)]);if(_0x5b761e&&_0x5b761e[_0x483299(0x198)][_0x483299(0x15e)]===_0x47b2aa[_0x483299(0x15e)]&&_0x5b761e[_0x483299(0xe4)]===_0x5e4bbf){_0x5b761e[_0x483299(0x198)]=_0x47b2aa;let _0x5da035=_0x5b761e[_0x483299(0x14b)]?this[_0x483299(0x156)][_0x483299(0x17d)](_0x5b761e[_0x483299(0x125)],_0x5b761e[_0x483299(0x125)],_0x5b761e['formulaId'])??void 0x0:void 0x0;_0x5b761e[_0x483299(0x12c)]=_0x5da035,this[_0x483299(0x118)](_0x266a17,N(_0x47b2aa,_0x5da035));return;}_0x5b761e!=null&&_0x5b761e[_0x483299(0x14b)]&&this[_0x483299(0x1e7)](_0x5b761e);let _0x3b8d02={..._0xc03823,'config':_0x47b2aa,'referenceRevision':_0x5e4bbf,'presentation':N(_0x47b2aa,void 0x0)};if(this['_registrations']['set'](_0x266a17,_0x3b8d02),!_0x47b2aa[_0x483299(0x15e)]['trim']())return;let _0x2d95a0=this[_0x483299(0x156)][_0x483299(0x1b4)](_0xc03823['unitId'],_0xc03823[_0x483299(0x125)],_0x47b2aa['formula'],void 0x0,{'rangeId':_0xc03823[_0x483299(0x176)]},r[_0x483299(0x184)]['DOC'],_0xc03823[_0x483299(0x176)]);_0x3b8d02[_0x483299(0x14b)]=_0x2d95a0,this[_0x483299(0x150)]['set'](_0x2d95a0,_0x266a17);}['unregister'](_0x527433){const _0x321282=_0x468d3c;let _0x1804f6=M(_0x527433[_0x321282(0x125)],_0x527433[_0x321282(0x176)]),_0x5c4b2e=this[_0x321282(0x130)][_0x321282(0x181)](_0x1804f6);_0x5c4b2e&&(this['_deleteRegistration'](_0x5c4b2e),this[_0x321282(0x130)]['delete'](_0x1804f6));}[_0x468d3c(0x193)](_0x1a4aa6){const _0x51953f=_0x468d3c;for(let _0x5bb9c2 of Array[_0x51953f(0x1d4)](this['_registrations'][_0x51953f(0x1da)]()))_0x5bb9c2[_0x51953f(0x125)]===_0x1a4aa6&&this[_0x51953f(0x192)](_0x5bb9c2);}[_0x468d3c(0x11e)](_0x263523){const _0x500ea0=_0x468d3c;var _0x1d19f4;return(_0x1d19f4=this['_registrations'][_0x500ea0(0x181)](M(_0x263523['unitId'],_0x263523[_0x500ea0(0x176)])))==null?void 0x0:_0x1d19f4[_0x500ea0(0x1d0)];}[_0x468d3c(0x20a)](_0x5b223a){const _0x1f6588=_0x468d3c;let _0x1762e2=this[_0x1f6588(0x130)][_0x1f6588(0x181)](M(_0x5b223a['unitId'],_0x5b223a[_0x1f6588(0x176)]));return _0x1762e2?P(_0x1762e2):void 0x0;}[_0x468d3c(0xf8)](){const _0x595f92=_0x468d3c;return Array[_0x595f92(0x1d4)](this[_0x595f92(0x130)][_0x595f92(0x1da)](),_0x2b3ce0=>({'identity':{'unitId':_0x2b3ce0[_0x595f92(0x125)],'rangeId':_0x2b3ce0[_0x595f92(0x176)]},'config':_0x2b3ce0[_0x595f92(0x198)],'referenceRevision':_0x2b3ce0[_0x595f92(0xe4)],..._0x2b3ce0[_0x595f92(0x12c)]?{'liveResult':_0x2b3ce0[_0x595f92(0x12c)]}:null}));}[_0x468d3c(0x115)](){const _0x57925a=_0x468d3c;for(let _0x4b5c8a of this[_0x57925a(0x130)]['values']())this[_0x57925a(0x1e7)](_0x4b5c8a);this[_0x57925a(0x130)][_0x57925a(0x1bb)](),this['_formulaKeys'][_0x57925a(0x1bb)](),this[_0x57925a(0x201)]['complete'](),super[_0x57925a(0x115)]();}[_0x468d3c(0x16c)](_0x3daa72){const _0x3e81bb=_0x468d3c;let _0x4c9a53=this[_0x3e81bb(0x150)][_0x3e81bb(0x181)](_0x3daa72[_0x3e81bb(0x14b)]),_0x12d23c=_0x4c9a53?this[_0x3e81bb(0x130)][_0x3e81bb(0x181)](_0x4c9a53):void 0x0;_0x4c9a53&&_0x12d23c&&(_0x12d23c[_0x3e81bb(0x12c)]=_0x3daa72,this['_setPresentation'](_0x4c9a53,N(_0x12d23c[_0x3e81bb(0x198)],_0x3daa72)));}[_0x468d3c(0x118)](_0x23e175,_0xe84b75){const _0x547bff=_0x468d3c;var _0x201359,_0x4c07d3;let _0x420f1d=this[_0x547bff(0x130)][_0x547bff(0x181)](_0x23e175);if(!_0x420f1d||ye(_0x420f1d['presentation'],_0xe84b75))return;let _0x19f43b=_0x420f1d[_0x547bff(0x1d0)],_0x38366e=P(_0x420f1d);_0x420f1d[_0x547bff(0x1d0)]=_0xe84b75,this[_0x547bff(0x201)][_0x547bff(0x1c5)]({'unitId':_0x420f1d[_0x547bff(0x125)],'rangeId':_0x420f1d[_0x547bff(0x176)],'presentation':_0xe84b75,'previousPresentation':_0x19f43b,'result':P(_0x420f1d),'previousResult':{..._0x38366e,..._0x19f43b,'value':(_0x201359=_0x19f43b[_0x547bff(0xff)])==null?void 0x0:_0x201359['v'],'valueType':((_0x4c07d3=_0x19f43b[_0x547bff(0xff)])==null?void 0x0:_0x4c07d3['t'])??void 0x0}});}[_0x468d3c(0x1e7)](_0x44791a){const _0x15d3aa=_0x468d3c;_0x44791a[_0x15d3aa(0x14b)]&&(this[_0x15d3aa(0x156)][_0x15d3aa(0x119)](_0x44791a[_0x15d3aa(0x125)],_0x44791a[_0x15d3aa(0x125)],[_0x44791a[_0x15d3aa(0x14b)]]),this[_0x15d3aa(0x150)][_0x15d3aa(0x1ea)](_0x44791a[_0x15d3aa(0x14b)]));}};j=A([k(0x0,(0x0,t[_0x468d3c(0x1f8)])(O)),k(0x1,(0x0,t[_0x468d3c(0x1f8)])(r[_0x468d3c(0x178)])),k(0x2,(0x0,t[_0x468d3c(0x1f8)])(e[_0x468d3c(0x13d)]))],j);function M(_0x14d291,_0x3cb0f5){return _0x14d291+'\x00'+_0x3cb0f5;}function N(_0x4806a3,_0x58edcf){const _0x3a201a=_0x468d3c;return(0x0,e[_0x3a201a(0x1b7)])({'numberFormat':_0x4806a3[_0x3a201a(0x15b)],'lastValue':_0x4806a3['lastValue'],'result':_0x58edcf});}function P(_0x1fa9ce){const _0xc616a4=_0x468d3c;var _0x269398,_0x4e8061,_0x29e50c;let _0x1a18ef=_0x1fa9ce[_0xc616a4(0x1d0)],_0x8d7f13=_0x1fa9ce[_0xc616a4(0x198)]['formula'][_0xc616a4(0x12b)]()?_0x1a18ef[_0xc616a4(0x1d5)]||_0x1a18ef['cell']==null?_0xc616a4(0x1eb):((_0x269398=_0x1fa9ce[_0xc616a4(0x12c)])==null?void 0x0:_0x269398[_0xc616a4(0x1ee)])===r[_0xc616a4(0x14f)][_0xc616a4(0x15f)]?'error':_0xc616a4(0x17a):_0xc616a4(0x187);return{..._0x1a18ef,'status':_0x8d7f13,'value':(_0x4e8061=_0x1a18ef[_0xc616a4(0xff)])==null?void 0x0:_0x4e8061['v'],'valueType':((_0x29e50c=_0x1a18ef[_0xc616a4(0xff)])==null?void 0x0:_0x29e50c['t'])??void 0x0};}function ye(_0x5e0919,_0x39289b){const _0xb97205=_0x468d3c;var _0x3ad056,_0xab3086,_0x26f758,_0x256f04;return _0x5e0919[_0xb97205(0x11b)]===_0x39289b[_0xb97205(0x11b)]&&_0x5e0919[_0xb97205(0x1ed)]===_0x39289b[_0xb97205(0x1ed)]&&_0x5e0919['pattern']===_0x39289b[_0xb97205(0x13b)]&&_0x5e0919[_0xb97205(0x111)]===_0x39289b['source']&&_0x5e0919[_0xb97205(0x1d5)]===_0x39289b[_0xb97205(0x1d5)]&&((_0x3ad056=_0x5e0919[_0xb97205(0xff)])==null?void 0x0:_0x3ad056['t'])===((_0xab3086=_0x39289b[_0xb97205(0xff)])==null?void 0x0:_0xab3086['t'])&&Object['is']((_0x26f758=_0x5e0919[_0xb97205(0xff)])==null?void 0x0:_0x26f758['v'],(_0x256f04=_0x39289b[_0xb97205(0xff)])==null?void 0x0:_0x256f04['v']);}const F={'id':_0x468d3c(0x147),'type':t[_0x468d3c(0x167)][_0x468d3c(0xf4)],'handler':(_0x48afd5,_0x5f6779)=>!(_0x5f6779!=null&&_0x5f6779[_0x468d3c(0x125)])||!_0x5f6779['rangeId']||!_0x5f6779[_0x468d3c(0x198)]?!0x1:_0x48afd5[_0x468d3c(0x181)](O)['setFormula'](_0x5f6779[_0x468d3c(0x125)],_0x5f6779[_0x468d3c(0x176)],_0x5f6779['config'])},I={'id':'docs-formula.mutation.remove-formula','type':t['CommandType'][_0x468d3c(0xf4)],'handler':(_0x34c9ef,_0x1ec692)=>!(_0x1ec692!=null&&_0x1ec692[_0x468d3c(0x125)])||!_0x1ec692['rangeId']?!0x1:_0x34c9ef[_0x468d3c(0x181)](O)[_0x468d3c(0x145)](_0x1ec692[_0x468d3c(0x125)],_0x1ec692[_0x468d3c(0x176)])},L={'id':'docs-formula.mutation.set-resource','type':t[_0x468d3c(0x167)][_0x468d3c(0xf4)],'handler':(_0x54c576,_0x22c86b)=>!(_0x22c86b!=null&&_0x22c86b[_0x468d3c(0x125)])||!_0x22c86b[_0x468d3c(0x1c1)]?!0x1:_0x54c576[_0x468d3c(0x181)](O)[_0x468d3c(0x1d6)](_0x22c86b[_0x468d3c(0x125)],_0x22c86b[_0x468d3c(0x1c1)])},R={'id':_0x468d3c(0x1fd),'type':t[_0x468d3c(0x167)]['MUTATION'],'handler':(_0x43dc9d,_0x5a954f)=>{const _0x2f6386=_0x468d3c;if(!(_0x5a954f!=null&&_0x5a954f[_0x2f6386(0x125)])||!_0x5a954f[_0x2f6386(0xe7)][_0x2f6386(0x158)])return!0x1;let _0x27347c=_0x43dc9d[_0x2f6386(0x181)](O),_0x5acd52=_0x43dc9d[_0x2f6386(0x181)](e['HostExternalReferenceModel']),_0x176107=_0x27347c['getResource'](_0x5a954f['unitId']);if(!_0x176107)return!0x1;let _0x42cff4=t[_0x2f6386(0xeb)][_0x2f6386(0x149)](_0x176107),_0x427e35=!0x1;for(let _0x358add of _0x5a954f['updates']){var _0xdf97,_0x58a006,_0xd8eae3,_0x48df8d;let _0x487b0c=_0x42cff4[_0x2f6386(0x164)][_0x358add[_0x2f6386(0x176)]];_0x487b0c&&_0x487b0c[_0x2f6386(0x15e)]===_0x358add['expectedFormula']&&((_0xdf97=_0x487b0c[_0x2f6386(0x15b)])==null?void 0x0:_0xdf97[_0x2f6386(0x13b)])===_0x358add[_0x2f6386(0x114)]&&_0x5acd52[_0x2f6386(0x1e5)](_0x5a954f[_0x2f6386(0x125)])===_0x358add[_0x2f6386(0x14a)]&&(((_0x58a006=_0x487b0c[_0x2f6386(0x144)])==null?void 0x0:_0x58a006['v'])!==_0x358add[_0x2f6386(0x144)]['v']||((_0xd8eae3=_0x487b0c[_0x2f6386(0x144)])==null?void 0x0:_0xd8eae3['t'])!==_0x358add['lastValue']['t']||((_0x48df8d=_0x487b0c['lastValue'])==null?void 0x0:_0x48df8d['pattern'])!==_0x358add[_0x2f6386(0x144)][_0x2f6386(0x13b)])&&(_0x487b0c[_0x2f6386(0x144)]=t[_0x2f6386(0xeb)][_0x2f6386(0x149)](_0x358add[_0x2f6386(0x144)]),_0x427e35=!0x0);}return!_0x427e35||_0x27347c[_0x2f6386(0x1d6)](_0x5a954f[_0x2f6386(0x125)],_0x42cff4);}},z={'id':'docs-formula.command.insert','type':t['CommandType'][_0x468d3c(0x10a)],'handler':(_0x1db679,_0x348e5b)=>{const _0x3d2fee=_0x468d3c;if(!(_0x348e5b!=null&&_0x348e5b['formula'][_0x3d2fee(0x12b)]()))return!0x1;let _0x455576=K(_0x1db679,_0x348e5b[_0x3d2fee(0x125)],'');if(!_0x455576)return!0x1;let _0x108a1c=xe(_0x348e5b[_0x3d2fee(0x116)],_0x455576['body'],be(_0x1db679,_0x455576[_0x3d2fee(0x125)]));if(!_0x108a1c)return!0x1;let _0x106fbe=Se(_0x1db679,_0x455576[_0x3d2fee(0x125)],_0x348e5b[_0x3d2fee(0x15e)],_0x348e5b[_0x3d2fee(0xfb)]??[]);if(!_0x106fbe)return!0x1;let _0x123c93=Ce(_0x455576[_0x3d2fee(0x1ca)],_0x455576[_0x3d2fee(0x152)],_0x455576[_0x3d2fee(0x125)]),_0x55bdfa=we({'documentData':_0x455576[_0x3d2fee(0x168)],'resource':_0x455576[_0x3d2fee(0x1c1)],'rangeId':_0x123c93,'config':{'formula':_0x348e5b[_0x3d2fee(0x15e)],..._0x348e5b['numberFormat']?{'numberFormat':_0x348e5b['numberFormat']}:null},'startOffset':_0x108a1c[_0x3d2fee(0x1ba)],'endOffset':_0x108a1c[_0x3d2fee(0x186)]});if(!_0x55bdfa)return!0x1;let _0x2da2a1=(0x0,e[_0x3d2fee(0x15c)])(_0x1db679,_0x455576['unitId'],_0x106fbe);return!_0x2da2a1||!q({'accessor':_0x1db679,'document':_0x455576[_0x3d2fee(0x202)],'unitId':_0x455576['unitId'],'trigger':z['id'],'rangeId':_0x123c93,'previousResource':_0x455576['resource'],'nextResource':_0x55bdfa[_0x3d2fee(0x18b)],'previousDocumentData':_0x455576[_0x3d2fee(0x168)],'nextDocumentData':_0x55bdfa[_0x3d2fee(0x1c7)],'cursorOffset':_0x55bdfa[_0x3d2fee(0x1b3)],'externalMutations':_0x2da2a1})?!0x1:{'rangeId':_0x123c93,'startOffset':_0x55bdfa['cursorOffset']-0x1,'endOffset':_0x55bdfa['cursorOffset']};}},B={'id':'docs-formula.command.update','type':t[_0x468d3c(0x167)][_0x468d3c(0x10a)],'handler':(_0x1a4bad,_0x1c4121)=>{const _0x198385=_0x468d3c;if(!(_0x1c4121!=null&&_0x1c4121[_0x198385(0x176)])||!_0x1c4121[_0x198385(0x15e)][_0x198385(0x12b)]())return!0x1;let _0x18136f=K(_0x1a4bad,_0x1c4121[_0x198385(0x125)],''),_0x337537=_0x18136f==null?void 0x0:_0x18136f[_0x198385(0x152)][_0x198385(0x1f0)](_0x18136f[_0x198385(0x125)],_0x1c4121[_0x198385(0x176)]),_0x2220e0=_0x18136f?_(_0x18136f[_0x198385(0x168)][_0x198385(0x1ca)],_0x1c4121[_0x198385(0x176)]):void 0x0;if(!_0x18136f||!_0x337537||!_0x2220e0)return!0x1;let _0x48e134=Se(_0x1a4bad,_0x18136f[_0x198385(0x125)],_0x1c4121[_0x198385(0x15e)],_0x1c4121[_0x198385(0xfb)]??[]);if(!_0x48e134)return!0x1;let _0x10284f=(0x0,e[_0x198385(0x15c)])(_0x1a4bad,_0x18136f[_0x198385(0x125)],_0x48e134);if(!_0x10284f)return!0x1;let _0x55d048=je(_0x18136f[_0x198385(0x1c1)]);return _0x55d048[_0x198385(0x164)][_0x1c4121[_0x198385(0x176)]]={'formula':_0x1c4121[_0x198385(0x15e)],..._0x1c4121[_0x198385(0x15b)]?{'numberFormat':_0x1c4121[_0x198385(0x15b)]}:_0x337537[_0x198385(0x15b)]?{'numberFormat':_0x337537[_0x198385(0x15b)]}:null},q({'accessor':_0x1a4bad,'document':_0x18136f[_0x198385(0x202)],'unitId':_0x18136f[_0x198385(0x125)],'trigger':B['id'],'rangeId':_0x1c4121[_0x198385(0x176)],'previousResource':_0x18136f['resource'],'nextResource':_0x55d048,'cursorOffset':_0x2220e0[_0x198385(0x179)]+0x1,'externalMutations':_0x10284f});}},V={'id':_0x468d3c(0x1ce),'type':t[_0x468d3c(0x167)][_0x468d3c(0x10a)],'handler':(_0x4256bc,_0x4d8dc5)=>{const _0xf270d3=_0x468d3c;if(!(_0x4d8dc5!=null&&_0x4d8dc5[_0xf270d3(0x176)]))return!0x1;let _0x204aa4=K(_0x4256bc,_0x4d8dc5[_0xf270d3(0x125)],''),_0x5abf47=_0x204aa4==null?void 0x0:_0x204aa4[_0xf270d3(0x152)][_0xf270d3(0x1f0)](_0x204aa4[_0xf270d3(0x125)],_0x4d8dc5['rangeId']),_0x41ccdb=_0x204aa4?_(_0x204aa4[_0xf270d3(0x168)][_0xf270d3(0x1ca)],_0x4d8dc5[_0xf270d3(0x176)]):void 0x0;if(!_0x204aa4||!_0x5abf47||!_0x41ccdb)return!0x1;let _0x372f2a=je(_0x204aa4[_0xf270d3(0x1c1)]);return _0x372f2a[_0xf270d3(0x164)][_0x4d8dc5[_0xf270d3(0x176)]]={..._0x5abf47,..._0x4d8dc5['numberFormat']?{'numberFormat':_0x4d8dc5[_0xf270d3(0x15b)]}:null},_0x4d8dc5[_0xf270d3(0x15b)]||delete _0x372f2a[_0xf270d3(0x164)][_0x4d8dc5[_0xf270d3(0x176)]]['numberFormat'],q({'accessor':_0x4256bc,'document':_0x204aa4[_0xf270d3(0x202)],'unitId':_0x204aa4['unitId'],'trigger':V['id'],'rangeId':_0x4d8dc5['rangeId'],'previousResource':_0x204aa4[_0xf270d3(0x1c1)],'nextResource':_0x372f2a,'cursorOffset':_0x41ccdb[_0xf270d3(0x179)]+0x1,'externalMutations':{}});}},H={'id':'docs-formula.command.remove','type':t[_0x468d3c(0x167)][_0x468d3c(0x10a)],'handler':(_0x318be4,_0x245d23)=>G(_0x318be4,_0x245d23,'',H['id'])},U={'id':_0x468d3c(0x163),'type':t[_0x468d3c(0x167)][_0x468d3c(0x10a)],'handler':(_0x4e56cc,_0x54cf5a)=>G(_0x4e56cc,_0x54cf5a,(_0x54cf5a==null?void 0x0:_0x54cf5a[_0x468d3c(0x11b)])??'',U['id'])},W={'id':'docs-formula.command.convert-to-text','type':t[_0x468d3c(0x167)]['COMMAND'],'handler':(_0x12b6f7,_0x166437)=>{const _0x408f9f=_0x468d3c;if(!(_0x166437!=null&&_0x166437[_0x408f9f(0x176)]))return!0x1;let _0x551907=K(_0x12b6f7,_0x166437['unitId'],'');if(!_0x551907)return!0x1;let _0x555989=_0x12b6f7[_0x408f9f(0x181)](j)[_0x408f9f(0x20a)]({'unitId':_0x551907[_0x408f9f(0x125)],'rangeId':_0x166437[_0x408f9f(0x176)]});return _0x555989?G(_0x12b6f7,_0x166437,_0x555989[_0x408f9f(0x11b)],W['id']):!0x1;}};function G(_0x26a561,_0x198806,_0x4a5016,_0x2a761b){const _0xc5ab92=_0x468d3c;if(!(_0x198806!=null&&_0x198806[_0xc5ab92(0x176)]))return!0x1;let _0x2c665e=K(_0x26a561,_0x198806[_0xc5ab92(0x125)],'');if(!_0x2c665e)return!0x1;let _0x4c7834=h({'documentData':_0x2c665e[_0xc5ab92(0x168)],'resource':_0x2c665e[_0xc5ab92(0x1c1)],'rangeId':_0x198806[_0xc5ab92(0x176)],'text':_0x4a5016});return _0x4c7834?q({'accessor':_0x26a561,'document':_0x2c665e[_0xc5ab92(0x202)],'unitId':_0x2c665e[_0xc5ab92(0x125)],'trigger':_0x2a761b,'rangeId':_0x198806[_0xc5ab92(0x176)],'previousResource':_0x2c665e[_0xc5ab92(0x1c1)],'nextResource':_0x4c7834['nextResource'],'previousDocumentData':_0x2c665e[_0xc5ab92(0x168)],'nextDocumentData':_0x4c7834[_0xc5ab92(0x1c7)],'cursorOffset':_0x4c7834[_0xc5ab92(0x1b3)],'externalMutations':{}}):!0x1;}function K(_0x4cd2bd,_0x52f8d3,_0x465e16){const _0x17d1fc=_0x468d3c;if(_0x465e16)return null;let _0x5835ee=_0x4cd2bd[_0x17d1fc(0x181)](t[_0x17d1fc(0x1f2)]),_0x11d44b=(_0x52f8d3?_0x5835ee['getUnit'](_0x52f8d3,t['UniverInstanceType'][_0x17d1fc(0x12e)]):_0x5835ee[_0x17d1fc(0x10f)](t[_0x17d1fc(0x16a)][_0x17d1fc(0x12e)]))??null;if(!_0x11d44b)return null;let _0x311f0e=_0x11d44b[_0x17d1fc(0x175)](),_0x2209c0=_0x311f0e['body'];if(_0x311f0e[_0x17d1fc(0x13e)]||!_0x2209c0)return null;let _0xa19d21=_0x4cd2bd['get'](O);return _0xa19d21[_0x17d1fc(0x134)](_0x11d44b[_0x17d1fc(0xfd)]())?null:{'document':_0x11d44b,'body':_0x2209c0,'documentData':_0x311f0e,'model':_0xa19d21,'resource':_0xa19d21[_0x17d1fc(0x11d)](_0x11d44b['getUnitId']())??c(),'unitId':_0x11d44b[_0x17d1fc(0xfd)]()};}function be(_0x50f4fd,_0x370dd3){const _0x53addd=_0x468d3c;var _0x10f13e;return(_0x10f13e=_0x50f4fd[_0x53addd(0x181)](n['DocSelectionManagerService'])['getTextRanges']({'subUnitId':_0x370dd3,'unitId':_0x370dd3}))==null?void 0x0:_0x10f13e[0x0];}function xe(_0x4f7281,_0x2071bc,_0x4c5495){const _0xc05fc1=_0x468d3c;if((_0x4f7281==null?void 0x0:_0x4f7281[_0xc05fc1(0x1f7)])==='paragraph'){var _0x485a72;let _0x2d0036=((_0x485a72=_0x2071bc[_0xc05fc1(0x1e2)])==null?void 0x0:_0x485a72['filter'](_0x58d1ff=>_0x58d1ff['paragraphId']===_0x4f7281[_0xc05fc1(0x126)]))??[];if(_0x2d0036['length']!==0x1)return null;let _0x1708e1=_0x2d0036[0x0],_0x18e466=(0x0,t[_0xc05fc1(0x103)])(_0x2071bc,_0x1708e1),_0x2ca78b=_0x1708e1[_0xc05fc1(0x1fa)]-_0x18e466,_0xe12fb5=_0x4f7281['position']===_0xc05fc1(0xee)?_0x2ca78b:_0x4f7281['position'];if(!Number[_0xc05fc1(0x1f9)](_0xe12fb5)||_0xe12fb5<0x0||_0xe12fb5>_0x2ca78b)return null;let _0xe6287b=_0x18e466+_0xe12fb5;return{'startOffset':_0xe6287b,'endOffset':_0xe6287b};}if((_0x4f7281==null?void 0x0:_0x4f7281[_0xc05fc1(0x1f7)])===_0xc05fc1(0x1d2))return!Number[_0xc05fc1(0x1f9)](_0x4f7281[_0xc05fc1(0x1ba)])||!Number[_0xc05fc1(0x1f9)](_0x4f7281[_0xc05fc1(0x186)])?null:{'startOffset':Math['min'](_0x4f7281['startOffset'],_0x4f7281[_0xc05fc1(0x186)]),'endOffset':Math[_0xc05fc1(0xf2)](_0x4f7281[_0xc05fc1(0x1ba)],_0x4f7281['endOffset'])};let _0x5d9d78=(_0x4f7281==null?void 0x0:_0x4f7281['type'])===_0xc05fc1(0x190)?_0x4f7281[_0xc05fc1(0x190)]:_0x4c5495;return!_0x5d9d78||_0x5d9d78[_0xc05fc1(0x211)]?null:{'startOffset':Math['min'](_0x5d9d78[_0xc05fc1(0x1ba)],_0x5d9d78[_0xc05fc1(0x186)]),'endOffset':Math[_0xc05fc1(0xf2)](_0x5d9d78[_0xc05fc1(0x1ba)],_0x5d9d78['endOffset'])};}function Se(_0x3a804c,_0x860f10,_0x181b72,_0x1b20aa){const _0x3c2414=_0x468d3c;let _0x2cac96=_0x3a804c[_0x3c2414(0x181)](r[_0x3c2414(0x205)]),_0x296f11=_0x181b72[_0x3c2414(0xe2)]('=')?_0x181b72['slice'](0x1):_0x181b72,_0x318512=_0x2cac96[_0x3c2414(0x189)](_0x296f11);if(!_0x318512)return null;let _0x344b11=_0x3a804c[_0x3c2414(0x181)](e[_0x3c2414(0x13d)]),_0x3eb963=(0x0,e[_0x3c2414(0x172)])({'qualifiers':(0x0,e[_0x3c2414(0x1c9)])(_0x318512),'explicitReferences':_0x1b20aa??[],'resolveBinding':_0x4a3306=>_0x344b11[_0x3c2414(0x106)](_0x860f10,_0x4a3306)});return _0x3eb963[_0x3c2414(0x1ee)]===_0x3c2414(0x10b)?_0x3eb963[_0x3c2414(0x161)]:null;}function Ce(_0x477f83,_0x1868db,_0x1ded94){const _0x54f7e8=_0x468d3c;var _0x2e04df;let _0x325cc5=(0x0,t[_0x54f7e8(0x1dd)])(0x6);for(;_0x477f83!=null&&(_0x2e04df=_0x477f83['customRanges'])!=null&&_0x2e04df[_0x54f7e8(0x206)](_0x5b0648=>_0x5b0648[_0x54f7e8(0x176)]===_0x325cc5)||_0x1868db['getFormula'](_0x1ded94,_0x325cc5);)_0x325cc5=(0x0,t[_0x54f7e8(0x1dd)])(0x6);return _0x325cc5;}function we(_0x1a8297){try{return te(_0x1a8297);}catch(_0x187f58){if(_0x187f58 instanceof m)return null;throw _0x187f58;}}function Te(_0x2cbc75){const _0xbbe8c6=_0x468d3c;let _0x2d9e66=_0x2cbc75[_0xbbe8c6(0x104)]&&_0x2cbc75[_0xbbe8c6(0x1c7)]?De(_0x2cbc75[_0xbbe8c6(0x202)],_0x2cbc75[_0xbbe8c6(0x125)],_0x2cbc75['previousDocumentData'],_0x2cbc75[_0xbbe8c6(0x1c7)],_0x2cbc75[_0xbbe8c6(0x1b3)],_0x2cbc75['trigger']):null;return _0x2cbc75[_0xbbe8c6(0x104)]&&_0x2cbc75[_0xbbe8c6(0x1c7)]&&!_0x2d9e66?null:{'documentRedo':_0x2d9e66,'resourceRedo':{'id':L['id'],'params':{'unitId':_0x2cbc75[_0xbbe8c6(0x125)],'resource':_0x2cbc75['nextResource']}},'resourceUndo':{'id':L['id'],'params':{'unitId':_0x2cbc75[_0xbbe8c6(0x125)],'resource':_0x2cbc75[_0xbbe8c6(0x1f4)]}}};}function Ee(_0x259a72,_0x45030e,_0x5b0008,_0x4b1e28){const _0x2e8be4=_0x468d3c;_0x4b1e28[_0x2e8be4(0x1bc)]({'id':_0x259a72[_0x2e8be4(0x131)]+':'+_0x259a72[_0x2e8be4(0x176)],'unitID':_0x259a72[_0x2e8be4(0x125)],'redoMutations':[..._0x259a72[_0x2e8be4(0x13c)][_0x2e8be4(0x18a)]?[_0x259a72['externalMutations']['redoMutation']]:[],..._0x45030e[_0x2e8be4(0x121)]?[_0x45030e[_0x2e8be4(0x121)]]:[],_0x45030e['resourceRedo']],'undoMutations':[_0x45030e['resourceUndo'],..._0x5b0008?[_0x5b0008]:[],..._0x259a72[_0x2e8be4(0x13c)][_0x2e8be4(0x16d)]?[_0x259a72[_0x2e8be4(0x13c)][_0x2e8be4(0x16d)]]:[]]});}function q(_0x23220c){const _0x2cba53=_0x468d3c;let _0x45e24a=_0x23220c[_0x2cba53(0x153)]['get'](t['ICommandService']),_0x349b21=_0x23220c[_0x2cba53(0x153)][_0x2cba53(0x181)](t['IUndoRedoService']),_0x21548a=_0x23220c[_0x2cba53(0x153)][_0x2cba53(0x181)](n[_0x2cba53(0x1d1)]),_0x4f18bd=Te(_0x23220c);if(!_0x4f18bd)return!0x1;let _0x59a8c6=!0x1,_0x16704e=null,_0x171d20=!0x1;try{if(_0x23220c[_0x2cba53(0x13c)][_0x2cba53(0x18a)]){if(!_0x45e24a['syncExecuteCommand'](_0x23220c[_0x2cba53(0x13c)][_0x2cba53(0x18a)]['id'],_0x23220c['externalMutations'][_0x2cba53(0x18a)]['params']))return!0x1;_0x59a8c6=!0x0;}if(_0x4f18bd[_0x2cba53(0x121)]){let _0x3a6a2d=_0x45e24a[_0x2cba53(0xf6)](_0x4f18bd[_0x2cba53(0x121)]['id'],_0x4f18bd[_0x2cba53(0x121)][_0x2cba53(0xed)]);if(!_0x3a6a2d)return J(_0x45e24a,_0x23220c[_0x2cba53(0x13c)],_0x59a8c6),!0x1;_0x16704e={'id':n[_0x2cba53(0x123)]['id'],'params':{..._0x3a6a2d,'noHistory':!0x0,'noNeedSetTextRange':!0x0,'segmentId':''}};}if(!_0x45e24a[_0x2cba53(0xf6)](_0x4f18bd[_0x2cba53(0x1a6)]['id'],_0x4f18bd[_0x2cba53(0x1a6)][_0x2cba53(0xed)]))return Oe(_0x45e24a,_0x16704e),J(_0x45e24a,_0x23220c[_0x2cba53(0x13c)],_0x59a8c6),!0x1;_0x171d20=!0x0,Ee(_0x23220c,_0x4f18bd,_0x16704e,_0x349b21);}catch(_0x44ebef){throw _0x171d20&&_0x45e24a[_0x2cba53(0xf6)](_0x4f18bd[_0x2cba53(0x110)]['id'],_0x4f18bd[_0x2cba53(0x110)][_0x2cba53(0xed)]),Oe(_0x45e24a,_0x16704e),J(_0x45e24a,_0x23220c[_0x2cba53(0x13c)],_0x59a8c6),_0x44ebef;}return _0x21548a[_0x2cba53(0x1e8)]([{'startOffset':_0x23220c[_0x2cba53(0x1b3)],'endOffset':_0x23220c['cursorOffset'],'segmentId':''}],{'unitId':_0x23220c[_0x2cba53(0x125)],'subUnitId':_0x23220c[_0x2cba53(0x125)]},!0x1,{[n[_0x2cba53(0x129)]]:!0x0}),!0x0;}function De(_0x4a7877,_0x4e671d,_0x3eb5b2,_0x2cef0a,_0x1bcd76,_0x4fd18a){const _0x653839=_0x468d3c;let _0x563431=ke(_0x3eb5b2,_0x2cef0a,(0x0,t[_0x653839(0x1dc)])(_0x4a7877,''));return _0x563431?{'id':n['RichTextEditingMutation']['id'],'params':{'unitId':_0x4e671d,'actions':_0x563431,'segmentId':'','textRanges':[{'startOffset':_0x1bcd76,'endOffset':_0x1bcd76,'collapsed':!0x0,'segmentId':''}],'isEditing':!0x1,'noHistory':!0x0,'noNeedSetTextRange':!0x0,'trigger':_0x4fd18a}}:null;}function Oe(_0x4d48f4,_0x1a9e65){const _0x3d16e7=_0x468d3c;_0x1a9e65&&_0x4d48f4[_0x3d16e7(0xf6)](_0x1a9e65['id'],_0x1a9e65['params']);}function J(_0x158522,_0x2669c3,_0x2120ea){const _0x55e9db=_0x468d3c;_0x2120ea&&_0x2669c3['undoMutation']&&_0x158522[_0x55e9db(0xf6)](_0x2669c3[_0x55e9db(0x16d)]['id'],_0x2669c3[_0x55e9db(0x16d)][_0x55e9db(0xed)]);}function ke(_0xc07906,_0x37e253,_0x2a70e9){const _0x35d53f=_0x468d3c;let _0x3a240a=_0xc07906[_0x35d53f(0x1ca)],_0x5aa465=_0x37e253[_0x35d53f(0x1ca)],_0x41f121=Ae(_0x3a240a==null?void 0x0:_0x3a240a[_0x35d53f(0xef)],_0x5aa465==null?void 0x0:_0x5aa465[_0x35d53f(0xef)]);if(!_0x41f121||!_0x5aa465)return null;let _0x2d7e2d=new t[(_0x35d53f(0x154))]();return _0x2d7e2d[_0x35d53f(0x1fc)](_0x41f121[_0x35d53f(0x100)]),_0x41f121[_0x35d53f(0x1a7)]>0x0&&_0x2d7e2d[_0x35d53f(0x1c2)](_0x41f121[_0x35d53f(0x1a7)],(0x0,t[_0x35d53f(0x1ac)])(_0x5aa465,_0x41f121[_0x35d53f(0x100)],_0x41f121[_0x35d53f(0x100)]+_0x41f121['insertLength'],!0x1)),_0x41f121[_0x35d53f(0x17b)]>0x0&&_0x2d7e2d[_0x35d53f(0x1ea)](_0x41f121[_0x35d53f(0x17b)]),t[_0x35d53f(0x210)]['getInstance']()[_0x35d53f(0x1de)](_0x2d7e2d[_0x35d53f(0x214)](),_0x2a70e9);}function Ae(_0x406491,_0x7af8a0){const _0x1aa719=_0x468d3c;if(_0x406491==null||_0x7af8a0==null||_0x406491===_0x7af8a0)return null;let _0x1fe167=0x0;for(;_0x1fe167<_0x406491[_0x1aa719(0x158)]&&_0x1fe167<_0x7af8a0[_0x1aa719(0x158)]&&_0x406491[_0x1fe167]===_0x7af8a0[_0x1fe167];)_0x1fe167+=0x1;let _0x42c4b8=_0x406491['length'],_0x3e8750=_0x7af8a0['length'];for(;_0x42c4b8>_0x1fe167&&_0x3e8750>_0x1fe167&&_0x406491[_0x42c4b8-0x1]===_0x7af8a0[_0x3e8750-0x1];)--_0x42c4b8,--_0x3e8750;return{'start':_0x1fe167,'deleteLength':_0x42c4b8-_0x1fe167,'insertLength':_0x3e8750-_0x1fe167};}function je(_0x5efe31){const _0x56f72b=_0x468d3c;return{'schemaVersion':0x1,'formulas':Object[_0x56f72b(0x199)](Object[_0x56f72b(0x146)](_0x5efe31['formulas'])['map'](([_0x2eeb4a,_0x97a034])=>[_0x2eeb4a,{..._0x97a034,..._0x97a034[_0x56f72b(0x15b)]?{'numberFormat':{..._0x97a034['numberFormat']}}:null,..._0x97a034['lastValue']?{'lastValue':{..._0x97a034['lastValue']}}:null}]))};}let Y=class extends t[_0x468d3c(0x19b)]{constructor(_0x1ff6ef,_0x1e1fd1,_0x5dacf7,_0x61057f){const _0x2f4b0b=_0x468d3c;super(),this[_0x2f4b0b(0x155)]=_0x1ff6ef,this[_0x2f4b0b(0x14c)]=_0x1e1fd1,this['_model']=_0x5dacf7,this[_0x2f4b0b(0x1b9)]=_0x61057f,D(this,'_pendingUnitIds',new Set()),D(this,'_syncScheduled',!0x1),D(this,_0x2f4b0b(0x194),!0x1),this['_instanceService'][_0x2f4b0b(0x1c3)](t[_0x2f4b0b(0x16a)]['UNIVER_DOC'])[_0x2f4b0b(0x12d)](_0x32db92=>this['_service'][_0x2f4b0b(0x143)](_0x32db92)),this['disposeWithMe'](this[_0x2f4b0b(0x102)][_0x2f4b0b(0x13a)][_0x2f4b0b(0x1d3)](({unitId:_0x4ef519})=>this['_syncUnit'](_0x4ef519))),this[_0x2f4b0b(0x1cf)](this[_0x2f4b0b(0x155)]['unitAdded$']['subscribe'](({unit:_0xdbd2b8})=>{const _0x5b81cc=_0x2f4b0b;_0xdbd2b8['type']===t[_0x5b81cc(0x16a)][_0x5b81cc(0x12e)]&&this[_0x5b81cc(0x1f3)](_0xdbd2b8[_0x5b81cc(0xfd)]());})),this[_0x2f4b0b(0x1cf)](this['_instanceService'][_0x2f4b0b(0x1aa)][_0x2f4b0b(0x1d3)](_0x65c792=>{const _0x5f53ab=_0x2f4b0b;this[_0x5f53ab(0x1b9)][_0x5f53ab(0x193)](_0x65c792[_0x5f53ab(0xfd)]());})),this[_0x2f4b0b(0x1cf)](this[_0x2f4b0b(0x14c)]['onCommandExecuted'](_0x54c6a6=>{const _0x42b579=_0x2f4b0b;if(_0x54c6a6['id']===n[_0x42b579(0x123)]['id']&&Me(_0x54c6a6[_0x42b579(0xed)])){let _0x190752=_0x54c6a6[_0x42b579(0xed)];_0x190752[_0x42b579(0x211)]||this[_0x42b579(0x1a5)](_0x190752['unitId']);}}));}[_0x468d3c(0x115)](){const _0x419a7a=_0x468d3c;this['_isDisposed']=!0x0,super[_0x419a7a(0x115)]();}['_queueSync'](_0xb9ab63){const _0x366fce=_0x468d3c;this[_0x366fce(0x17e)][_0x366fce(0x1cb)](_0xb9ab63),!this[_0x366fce(0xfe)]&&(this[_0x366fce(0xfe)]=!0x0,queueMicrotask(()=>{const _0x5ebf81=_0x366fce;if(this[_0x5ebf81(0xfe)]=!0x1,this['_isDisposed'])return;let _0x7bc61c=Array[_0x5ebf81(0x1d4)](this[_0x5ebf81(0x17e)]);this[_0x5ebf81(0x17e)][_0x5ebf81(0x1bb)](),_0x7bc61c[_0x5ebf81(0x12d)](_0x52854e=>this['_syncUnit'](_0x52854e));}));}['_syncUnit'](_0x212a47){const _0xcd91c9=_0x468d3c;let _0x3a39d3=this[_0xcd91c9(0x155)][_0xcd91c9(0x109)](_0x212a47,t[_0xcd91c9(0x16a)][_0xcd91c9(0x12e)]);_0x3a39d3&&this['_service']['syncUnit'](_0x3a39d3);}};Y=A([k(0x0,t['IUniverInstanceService']),k(0x1,t[_0x468d3c(0x20e)]),k(0x2,(0x0,t[_0x468d3c(0x1f8)])(O)),k(0x3,(0x0,t['Inject'])(j))],Y);function Me(_0x1c84af){const _0x3cfe2e=_0x468d3c;return typeof _0x1c84af==_0x3cfe2e(0x120)&&!!_0x1c84af&&_0x3cfe2e(0x125)in _0x1c84af&&typeof _0x1c84af[_0x3cfe2e(0x125)]==_0x3cfe2e(0x1a8)&&(!('segmentId'in _0x1c84af)||_0x1c84af[_0x3cfe2e(0x211)]===void 0x0||typeof _0x1c84af[_0x3cfe2e(0x211)]==_0x3cfe2e(0x1a8));}let X=class extends t[_0x468d3c(0x19b)]{constructor(_0xfa9b46,_0x367991){const _0x1276fc=_0x468d3c;super(),this[_0x1276fc(0x14e)]=_0xfa9b46,this[_0x1276fc(0x208)]=_0x367991,this['disposeWithMe'](this['_resourceManagerService'][_0x1276fc(0x19d)]({'pluginName':o,'businesses':[t[_0x1276fc(0x16a)]['UNIVER_DOC']],'toJson':_0xdeb68=>JSON['stringify'](this['_docFormulaModel'][_0x1276fc(0x214)](_0xdeb68)),'parseJson':_0x2cdd39=>JSON[_0x1276fc(0x174)](_0x2cdd39),'onLoad':(_0x3c24dc,_0x54c840)=>{const _0x566af6=_0x1276fc;this[_0x566af6(0x208)]['load'](_0x3c24dc,_0x54c840);},'onUnLoad':_0x5af3f1=>this['_docFormulaModel'][_0x1276fc(0x19f)](_0x5af3f1)}));}};X=A([k(0x0,t[_0x468d3c(0x180)]),k(0x1,(0x0,t['Inject'])(O))],X);var Ne='@univerjs-pro/docs-formula',Pe=_0x468d3c(0xf7);function _0x4dab(_0x5501ff,_0x4f4cf2){_0x5501ff=_0x5501ff-0xe1;const _0x26ab41=_0x26ab();let _0x4dab02=_0x26ab41[_0x5501ff];return _0x4dab02;}const Fe={};let Z=class extends t[_0x468d3c(0x19b)]{constructor(_0x42c367,_0x34e933,_0x1ef4b8){const _0x44c74b=_0x468d3c;super(),this[_0x44c74b(0x15d)]=_0x42c367,this[_0x44c74b(0x1c8)]=_0x34e933,this[_0x44c74b(0x1cf)](_0x1ef4b8['register']({'resolve':(_0x306290,_0x4261fa)=>{const _0x289c2c=_0x44c74b;var _0x55ba91;return((_0x55ba91=_0x4261fa[_0x289c2c(0x113)])==null?void 0x0:_0x55ba91['filter'](g)[_0x289c2c(0x18f)](_0x1f9b9e=>({'startOffset':_0x1f9b9e[_0x289c2c(0x1fa)],'endOffset':_0x1f9b9e[_0x289c2c(0x179)]+0x1,'text':this[_0x289c2c(0x1f6)](_0x306290,_0x1f9b9e['rangeId'])})))??[];}})),this['disposeWithMe'](this[_0x44c74b(0x1c8)][_0x44c74b(0x17f)][_0x44c74b(0x1d3)](({unitId:_0x4144cd})=>{const _0x23af6d=_0x44c74b;_0x1ef4b8[_0x23af6d(0xf3)](_0x4144cd);}));}[_0x468d3c(0x1f6)](_0xd22b3b,_0x19afdc){const _0x15c97b=_0x468d3c;var _0x2ca57b;return((_0x2ca57b=this[_0x15c97b(0x1c8)][_0x15c97b(0x20a)]({'unitId':_0xd22b3b,'rangeId':_0x19afdc}))==null?void 0x0:_0x2ca57b[_0x15c97b(0x11b)])??'';}[_0x468d3c(0x14d)](_0x25dfd9,_0x5c8d31,_0x41b1be){const _0x6ba730=_0x468d3c;var _0x280d28;let _0x1f40c6=this[_0x6ba730(0x15d)]['getUnit'](_0x25dfd9,t[_0x6ba730(0x16a)][_0x6ba730(0x12e)]),_0x36df1e=_0x1f40c6==null?void 0x0:_0x1f40c6[_0x6ba730(0xf1)]();if(!_0x36df1e)return'';let _0xeb5efc=_0x36df1e[_0x6ba730(0xef)][_0x6ba730(0xec)](_0x5c8d31,_0x41b1be),_0x4551cf=((_0x280d28=_0x36df1e[_0x6ba730(0x113)])==null?void 0x0:_0x280d28['filter'](_0x1d15f4=>g(_0x1d15f4)&&_0x1d15f4[_0x6ba730(0x1fa)]>=_0x5c8d31&&_0x1d15f4['endIndex']<_0x41b1be)[_0x6ba730(0x140)]((_0x219d68,_0x3683ac)=>_0x3683ac[_0x6ba730(0x1fa)]-_0x219d68['startIndex']))??[];for(let _0x6917e of _0x4551cf){let _0x527223=_0x6917e[_0x6ba730(0x1fa)]-_0x5c8d31,_0x2055ce=_0x6917e['endIndex']-_0x5c8d31+0x1;_0xeb5efc=''+_0xeb5efc[_0x6ba730(0xec)](0x0,_0x527223)+this[_0x6ba730(0x1f6)](_0x25dfd9,_0x6917e['rangeId'])+_0xeb5efc[_0x6ba730(0xec)](_0x2055ce);}return _0xeb5efc;}[_0x468d3c(0xea)](_0x1ec6cd){return Ie(_0x1ec6cd);}[_0x468d3c(0x10c)](_0x21796e,_0x5ce76c,_0x528342={}){const _0x3dd8a8=_0x468d3c;var _0xc12551;return re({'id':_0x21796e,'body':_0x5ce76c,'documentStyle':{}},(((_0xc12551=_0x5ce76c[_0x3dd8a8(0x113)])==null?void 0x0:_0xc12551['filter'](g))??[])['map'](_0x5f4507=>({'rangeId':_0x5f4507[_0x3dd8a8(0x176)],'text':_0x528342[_0x5f4507[_0x3dd8a8(0x176)]]??this[_0x3dd8a8(0x1f6)](_0x21796e,_0x5f4507[_0x3dd8a8(0x176)])})))[_0x3dd8a8(0x1ca)]??{'dataStream':''};}};Z=A([k(0x0,t[_0x468d3c(0x1f2)]),k(0x1,(0x0,t['Inject'])(j)),k(0x2,(0x0,t['Inject'])(n[_0x468d3c(0x1b5)]))],Z);function Ie(_0x47a310){const _0x1baee8=_0x468d3c;var _0x1637c2,_0x1ba2e0;let _0x10c75f=Le(_0x47a310),_0x225838=re(_0x47a310,(((_0x1637c2=_0x47a310[_0x1baee8(0x1ca)])==null||(_0x1637c2=_0x1637c2[_0x1baee8(0x113)])==null?void 0x0:_0x1637c2['filter'](g))??[])[_0x1baee8(0x18f)](_0x29f57d=>({'rangeId':_0x29f57d['rangeId'],'text':Re(_0x10c75f==null?void 0x0:_0x10c75f[_0x1baee8(0x164)][_0x29f57d[_0x1baee8(0x176)]])})));return _0x225838['resources']=(_0x1ba2e0=_0x225838[_0x1baee8(0xe6)])==null?void 0x0:_0x1ba2e0[_0x1baee8(0x1ab)](_0x1a1d7e=>_0x1a1d7e[_0x1baee8(0x1c4)]!==o),_0x225838;}function Le(_0x3421c1){const _0x25889d=_0x468d3c;var _0x37862a;let _0x266ca8=(_0x37862a=_0x3421c1[_0x25889d(0xe6)])==null||(_0x37862a=_0x37862a['find'](_0x1a6076=>_0x1a6076['name']===_0x25889d(0x1ae)))==null?void 0x0:_0x37862a['data'];if(_0x266ca8)try{let _0x2f32c1=JSON['parse'](_0x266ca8);return l(_0x2f32c1)?_0x2f32c1:void 0x0;}catch{return;}}function Re(_0x40be67){const _0x19c429=_0x468d3c;return _0x40be67?(0x0,e[_0x19c429(0x1b7)])({'lastValue':_0x40be67[_0x19c429(0x144)],'numberFormat':_0x40be67[_0x19c429(0x15b)]})['text']:'';}let Q=class extends t['Disposable']{constructor(_0x27deda,_0x540c46,_0x57c0a1){const _0x255b57=_0x468d3c;super(),this[_0x255b57(0x1c8)]=_0x27deda,this[_0x255b57(0x12f)]=_0x540c46,this[_0x255b57(0x1cf)](_0x57c0a1['registerProvider'](this));}[_0x468d3c(0x1ec)](_0x6fd001){const _0x4ecdb7=_0x468d3c;let _0x3d4c2b=new Map();for(let _0x2bd784 of this[_0x4ecdb7(0x1c8)][_0x4ecdb7(0xf8)]()){var _0x216746;if(!this[_0x4ecdb7(0x12f)]['assess'](_0x2bd784[_0x4ecdb7(0x198)][_0x4ecdb7(0x15e)],_0x2bd784['liveResult'])[_0x4ecdb7(0x19c)])continue;let _0x4d4646=(0x0,e[_0x4ecdb7(0x107)])(_0x2bd784[_0x4ecdb7(0x12c)]),_0x25e4a6=_0x4d4646?(0x0,e[_0x4ecdb7(0x217)])(_0x4d4646):null;if(!_0x25e4a6||ze(_0x2bd784[_0x4ecdb7(0x198)][_0x4ecdb7(0x144)],_0x25e4a6))continue;let _0x4503b1=_0x3d4c2b[_0x4ecdb7(0x181)](_0x2bd784[_0x4ecdb7(0x108)]['unitId'])??[];_0x4503b1[_0x4ecdb7(0x1a9)]({'rangeId':_0x2bd784['identity'][_0x4ecdb7(0x176)],'expectedFormula':_0x2bd784['config'][_0x4ecdb7(0x15e)],'expectedNumberFormat':(_0x216746=_0x2bd784[_0x4ecdb7(0x198)][_0x4ecdb7(0x15b)])==null?void 0x0:_0x216746[_0x4ecdb7(0x13b)],'expectedReferenceRevision':_0x2bd784[_0x4ecdb7(0xe4)],'lastValue':_0x25e4a6}),_0x3d4c2b[_0x4ecdb7(0x128)](_0x2bd784[_0x4ecdb7(0x108)][_0x4ecdb7(0x125)],_0x4503b1);}return Array[_0x4ecdb7(0x1d4)](_0x3d4c2b,([_0x1d6c84,_0x316ed2])=>({'id':R['id'],'params':{'unitId':_0x1d6c84,'updates':_0x316ed2}}));}};Q=A([k(0x0,(0x0,t[_0x468d3c(0x1f8)])(j)),k(0x1,(0x0,t['Inject'])(e[_0x468d3c(0x133)])),k(0x2,(0x0,t[_0x468d3c(0x1f8)])(e['FormulaLastValuePersistenceService']))],Q);function ze(_0x5b0045,_0x5c4287){const _0x387f62=_0x468d3c;return(_0x5b0045==null?void 0x0:_0x5b0045['v'])===_0x5c4287['v']&&(_0x5b0045==null?void 0x0:_0x5b0045['t'])===_0x5c4287['t']&&(_0x5b0045==null?void 0x0:_0x5b0045[_0x387f62(0x13b)])===_0x5c4287[_0x387f62(0x13b)];}let $=class extends t['Plugin']{constructor(_0x14aa0a=Fe,_0x2116e1,_0x579714,_0x30c070){const _0x5ae62d=_0x468d3c;super(),this['_config']=_0x14aa0a,this['_injector']=_0x2116e1,this[_0x5ae62d(0x14c)]=_0x579714,this[_0x5ae62d(0x1af)]=_0x30c070;let {..._0x4e6b79}=(0x0,t['merge'])({},Fe,this[_0x5ae62d(0x1ff)]);this[_0x5ae62d(0x1af)]['setConfig'](_0x5ae62d(0x148),_0x4e6b79);}[_0x468d3c(0x1a0)](){const _0x451351=_0x468d3c;this[_0x451351(0x13f)][_0x451351(0x1cb)]([O]),this['_injector'][_0x451351(0x1cb)]([j]),this['_injector'][_0x451351(0x1cb)]([X]),this[_0x451351(0x13f)]['add']([Y]),this[_0x451351(0x13f)][_0x451351(0x1cb)]([Q]),this[_0x451351(0x13f)]['add']([Z]),(0x0,t['touchDependencies'])(this[_0x451351(0x13f)],[[O],[X],[Y],[Q],[Z]]),[F,I,L,R,z,B,V,H,U,W][_0x451351(0x12d)](_0x44cf59=>this['disposeWithMe'](this[_0x451351(0x14c)]['registerCommand'](_0x44cf59)));}};D($,_0x468d3c(0xe5),o),D($,'packageName',Ne),D($,_0x468d3c(0x10d),Pe),D($,_0x468d3c(0x1f7),t[_0x468d3c(0x16a)][_0x468d3c(0x12e)]),$=A([(0x0,t[_0x468d3c(0x1c0)])(a['UniverLicensePlugin'],e['UniverProFormulaEnginePlugin'],n[_0x468d3c(0x1d7)]),k(0x1,(0x0,t[_0x468d3c(0x1f8)])(t[_0x468d3c(0x200)])),k(0x2,t[_0x468d3c(0x20e)]),k(0x3,t['IConfigService'])],$),exports[_0x468d3c(0x1d9)]=W,exports[_0x468d3c(0x124)]=s,exports['DOC_FORMULA_OBJECT_REPLACEMENT']='',exports[_0x468d3c(0x1ae)]=o,exports[_0x468d3c(0x1e1)]=0x1,Object[_0x468d3c(0xf9)](exports,_0x468d3c(0x177),{'enumerable':!0x0,'get':function(){return Z;}}),Object['defineProperty'](exports,_0x468d3c(0x1e3),{'enumerable':!0x0,'get':function(){return Y;}}),exports[_0x468d3c(0x16e)]=O,Object[_0x468d3c(0xf9)](exports,_0x468d3c(0x1bd),{'enumerable':!0x0,'get':function(){return X;}}),exports['DocFormulaResultStatus']=ve,Object[_0x468d3c(0xf9)](exports,_0x468d3c(0x160),{'enumerable':!0x0,'get':function(){return j;}}),exports[_0x468d3c(0x117)]=z,exports[_0x468d3c(0x204)]=m,exports['RemoveDocFormulaCommand']=H,exports[_0x468d3c(0x112)]=I,exports[_0x468d3c(0xe1)]=U,exports[_0x468d3c(0xf0)]=R,exports[_0x468d3c(0x1fb)]=F,exports[_0x468d3c(0x212)]=V,exports[_0x468d3c(0x203)]=L,Object[_0x468d3c(0xf9)](exports,_0x468d3c(0x1a2),{'enumerable':!0x0,'get':function(){return $;}}),exports[_0x468d3c(0x1bf)]=B,exports[_0x468d3c(0xe3)]=ie,exports['buildInsertDocFormulaActions']=te,exports[_0x468d3c(0x132)]=h,exports['buildUpdateDocFormulaActions']=ne,exports['createEmptyDocFormulaResource']=c,exports[_0x468d3c(0x122)]=Ie,exports[_0x468d3c(0x1b6)]=_,exports['isDocFormulaConfig']=u,exports['isDocFormulaRange']=g,exports['isDocFormulaResource']=l,exports[_0x468d3c(0x1b1)]=d;
|
|
1
|
+
const _0x4136c9=_0x44d8;(function(_0x3e5984,_0x38f9f5){const _0x22882d=_0x44d8,_0x14de2f=_0x3e5984();while(!![]){try{const _0x1d7ed1=parseInt(_0x22882d(0x10f))/0x1*(-parseInt(_0x22882d(0x184))/0x2)+parseInt(_0x22882d(0x1b6))/0x3+parseInt(_0x22882d(0x12d))/0x4*(-parseInt(_0x22882d(0x1b2))/0x5)+parseInt(_0x22882d(0x17a))/0x6+parseInt(_0x22882d(0x22d))/0x7+-parseInt(_0x22882d(0x15b))/0x8+parseInt(_0x22882d(0x158))/0x9;if(_0x1d7ed1===_0x38f9f5)break;else _0x14de2f['push'](_0x14de2f['shift']());}catch(_0x501898){_0x14de2f['push'](_0x14de2f['shift']());}}}(_0xa4cb,0xc8069),Object['defineProperty'](exports,Symbol['toStringTag'],{'value':_0x4136c9(0x119)}));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=_0x4136c9(0x116),s=_0x4136c9(0x111);function c(){return{'schemaVersion':0x1,'formulas':{}};}function l(_0x48aa19){const _0x431d20=_0x4136c9;return!_0x48aa19||typeof _0x48aa19!='object'||!f(_0x48aa19,['schemaVersion','formulas'])||!('schemaVersion'in _0x48aa19)||_0x48aa19[_0x431d20(0x13f)]!==0x1||!(_0x431d20(0x1e2)in _0x48aa19)||!_0x48aa19[_0x431d20(0x1e2)]||typeof _0x48aa19['formulas']!=_0x431d20(0x217)||Array[_0x431d20(0x139)](_0x48aa19[_0x431d20(0x1e2)])?!0x1:Object[_0x431d20(0x176)](_0x48aa19[_0x431d20(0x1e2)])[_0x431d20(0x123)](([_0x2c0f29,_0x1f87e2])=>_0x2c0f29[_0x431d20(0x13a)]>0x0&&u(_0x1f87e2));}function u(_0x4722b4){const _0x161dbb=_0x4136c9;return!_0x4722b4||typeof _0x4722b4!='object'||!f(_0x4722b4,[_0x161dbb(0x220),_0x161dbb(0x20b),_0x161dbb(0x145)])||!('formula'in _0x4722b4)||typeof _0x4722b4[_0x161dbb(0x220)]!='string'||!_0x4722b4['formula']['trim']()||'numberFormat'in _0x4722b4&&_0x4722b4[_0x161dbb(0x20b)]!=null&&(typeof _0x4722b4[_0x161dbb(0x20b)]!=_0x161dbb(0x217)||!f(_0x4722b4[_0x161dbb(0x20b)],[_0x161dbb(0x168)])||!(_0x161dbb(0x168)in _0x4722b4[_0x161dbb(0x20b)])||typeof _0x4722b4[_0x161dbb(0x20b)][_0x161dbb(0x168)]!=_0x161dbb(0x122))?!0x1:!(_0x161dbb(0x145)in _0x4722b4)||_0x4722b4[_0x161dbb(0x145)]==null||d(_0x4722b4[_0x161dbb(0x145)]);}function d(_0x2d63d3){const _0x2a56ff=_0x4136c9;return!_0x2d63d3||typeof _0x2d63d3!='object'||!f(_0x2d63d3,['v','t',_0x2a56ff(0x168)])||!('v'in _0x2d63d3)||_0x2d63d3['v']!==null&&typeof _0x2d63d3['v']!=_0x2a56ff(0x122)&&typeof _0x2d63d3['v']!=_0x2a56ff(0x12e)&&typeof _0x2d63d3['v']!=_0x2a56ff(0x199)||'t'in _0x2d63d3&&_0x2d63d3['t']!=null&&!ee(_0x2d63d3['t'])?!0x1:!('pattern'in _0x2d63d3)||_0x2d63d3[_0x2a56ff(0x168)]==null||typeof _0x2d63d3[_0x2a56ff(0x168)]==_0x2a56ff(0x122);}function f(_0x1db214,_0x5a53b7){const _0x1d578f=_0x4136c9;let _0x42d851=new Set(_0x5a53b7);return Object['keys'](_0x1db214)[_0x1d578f(0x123)](_0x5e5070=>_0x42d851[_0x1d578f(0x156)](_0x5e5070));}function ee(_0x205d1f){const _0x1df62a=_0x4136c9;return typeof _0x205d1f==_0x1df62a(0x12e)&&Object[_0x1df62a(0x14d)](t[_0x1df62a(0x204)])['includes'](_0x205d1f);}const p=new Set([t[_0x4136c9(0x1a8)][_0x4136c9(0x104)],t[_0x4136c9(0x1a8)][_0x4136c9(0x142)],t[_0x4136c9(0x1a8)][_0x4136c9(0x170)],t[_0x4136c9(0x1a8)][_0x4136c9(0x130)],t[_0x4136c9(0x1a8)]['TABLE_CELL_END'],t[_0x4136c9(0x1a8)][_0x4136c9(0x140)],t['DataStreamTreeTokenType'][_0x4136c9(0x102)],t['DataStreamTreeTokenType'][_0x4136c9(0x18a)],t[_0x4136c9(0x1a8)][_0x4136c9(0x214)],t[_0x4136c9(0x1a8)][_0x4136c9(0xf6)],t['DataStreamTreeTokenType']['COLUMN_GROUP_END'],t[_0x4136c9(0x1a8)][_0x4136c9(0x118)],t['DataStreamTreeTokenType'][_0x4136c9(0x10a)],t[_0x4136c9(0x1a8)][_0x4136c9(0x1b0)]]);var m=class extends Error{constructor(){const _0x20dd4a=_0x4136c9;super(_0x20dd4a(0x162));}};function te(_0x4f3603){const _0x1d859d=_0x4136c9;var _0x4ff60d,_0x123cf3;let _0x2230c7=t[_0x1d859d(0x21e)][_0x1d859d(0x187)](_0x4f3603[_0x1d859d(0x1bd)]),_0x184c70=T(_0x2230c7),{startOffset:_0x532163,endOffset:_0x18bce5}=oe(_0x184c70,_0x4f3603[_0x1d859d(0x16f)],_0x4f3603['endOffset']);ie(_0x184c70,_0x532163,_0x18bce5);let _0x429675=((_0x4ff60d=_0x184c70['customRanges'])==null?void 0x0:_0x4ff60d[_0x1d859d(0x1e1)](_0x2593cc=>{const _0x283782=_0x1d859d;if(!g(_0x2593cc))return!0x1;let _0x32963b=(0x0,t[_0x283782(0x1d7)])(_0x2593cc);return _0x32963b[_0x283782(0x22e)]>_0x532163&&_0x32963b['startOffset']<_0x18bce5;})['map'](_0x386667=>_0x386667['rangeId']))??[];ce(_0x184c70,_0x532163,_0x18bce5,''),_0x184c70[_0x1d859d(0x103)]=[...((_0x123cf3=_0x184c70[_0x1d859d(0x103)])==null?void 0x0:_0x123cf3['filter'](_0x145b56=>!_0x429675[_0x1d859d(0x18d)](_0x145b56[_0x1d859d(0xf3)])&&_0x145b56[_0x1d859d(0xf3)]!==_0x4f3603[_0x1d859d(0xf3)]))??[],ae(_0x4f3603[_0x1d859d(0xf3)],_0x532163)][_0x1d859d(0x1e4)]((_0xe409bd,_0x7049ad)=>_0xe409bd[_0x1d859d(0x1fe)]-_0x7049ad['startIndex']);let _0x29776a=v(_0x4f3603[_0x1d859d(0x148)]);return _0x429675['forEach'](_0x265f99=>{const _0x462d16=_0x1d859d;delete _0x29776a[_0x462d16(0x1e2)][_0x265f99];}),_0x29776a[_0x1d859d(0x1e2)][_0x4f3603[_0x1d859d(0xf3)]]=t[_0x1d859d(0x21e)][_0x1d859d(0x187)](_0x4f3603['config']),{'nextDocumentData':_0x2230c7,'nextResource':_0x29776a,'cursorOffset':_0x532163+0x1};}function ne(_0x7771c7){const _0x18145c=_0x4136c9;var _0x4a619e,_0x401c8a;let _0x787051=t[_0x18145c(0x21e)][_0x18145c(0x187)](_0x7771c7[_0x18145c(0x1bd)]),_0x27618b=(_0x4a619e=T(_0x787051)['customRanges'])==null?void 0x0:_0x4a619e[_0x18145c(0x124)](_0x5beaa8=>_0x5beaa8[_0x18145c(0xf3)]===_0x7771c7[_0x18145c(0xf3)]&&g(_0x5beaa8));if(!_0x27618b||!((_0x401c8a=_0x7771c7[_0x18145c(0x148)])!=null&&_0x401c8a[_0x18145c(0x1e2)][_0x7771c7[_0x18145c(0xf3)]]))return null;let _0x1813e7=v(_0x7771c7[_0x18145c(0x148)]);return _0x1813e7[_0x18145c(0x1e2)][_0x7771c7[_0x18145c(0xf3)]]=t[_0x18145c(0x21e)][_0x18145c(0x187)](_0x7771c7[_0x18145c(0x1ab)]),{'nextDocumentData':_0x787051,'nextResource':_0x1813e7,'cursorOffset':_0x27618b['endIndex']+0x1};}function h(_0x171fa9){const _0x23d607=_0x4136c9;let _0x182109=t['Tools'][_0x23d607(0x187)](_0x171fa9[_0x23d607(0x1bd)]),_0x304647=le(_0x182109,_0x171fa9['rangeId'],_0x171fa9['text']??'');if(_0x304647==null)return null;let _0x565ff7=v(_0x171fa9[_0x23d607(0x148)]);return delete _0x565ff7[_0x23d607(0x1e2)][_0x171fa9[_0x23d607(0xf3)]],{'nextDocumentData':_0x182109,'nextResource':_0x565ff7,'cursorOffset':_0x304647};}function re(_0x6313b4,_0x4d82de){const _0x4554a8=_0x4136c9;var _0x5b0461;let _0x15b81a=t[_0x4554a8(0x21e)]['deepClone'](_0x6313b4),_0x22e464=_0x15b81a[_0x4554a8(0x1f5)];if(!_0x22e464)return _0x15b81a;let _0x1be1d9=new Map(_0x4d82de['map'](_0x5db669=>[_0x5db669[_0x4554a8(0xf3)],_0x5db669[_0x4554a8(0x137)]])),_0x7bfa42=((_0x5b0461=_0x22e464[_0x4554a8(0x103)])==null?void 0x0:_0x5b0461[_0x4554a8(0x1e1)](_0x264c02=>g(_0x264c02)&&_0x1be1d9[_0x4554a8(0x156)](_0x264c02['rangeId']))[_0x4554a8(0x1e4)]((_0x29e20e,_0x368894)=>_0x368894[_0x4554a8(0x1fe)]-_0x29e20e[_0x4554a8(0x1fe)]))??[];for(let _0x5d0feb of _0x7bfa42)le(_0x15b81a,_0x5d0feb[_0x4554a8(0xf3)],_0x1be1d9[_0x4554a8(0xfc)](_0x5d0feb['rangeId'])??'');return _0x15b81a;}function g(_0x3b6627){const _0x371d0f=_0x4136c9;var _0x17a584;return(_0x3b6627==null?void 0x0:_0x3b6627[_0x371d0f(0x1b8)])===t['CustomRangeType'][_0x371d0f(0x1c0)]&&_0x3b6627[_0x371d0f(0x117)]===!0x0&&((_0x17a584=_0x3b6627[_0x371d0f(0x19e)])==null?void 0x0:_0x17a584[_0x371d0f(0x164)])===_0x371d0f(0x111);}function _(_0x4a1284,_0x574b0c){const _0x4a4713=_0x4136c9;var _0x2f952b;return _0x4a1284==null||(_0x2f952b=_0x4a1284[_0x4a4713(0x103)])==null?void 0x0:_0x2f952b[_0x4a4713(0x124)](_0x5ea98c=>_0x5ea98c['rangeId']===_0x574b0c&&g(_0x5ea98c));}function _0xa4cb(){const _0xe8d34b=['default','previousResource','decorate','replaceDocRanges','registerProvider','accessor','getRevision','name','deleteLength','referenceRevision','createEmptyDocFormulaResource','_docFormulaModel','invalid-resource','onCommandExecuted','empty','set','unregister','resources','pending','min','getFormula','error','getCustomRangeInterval','eligible','constructor','presentationChanged$','disabled','CommandType','data','DOC_SELECTION_OPTION_PRESERVE_CARET','UniverProFormulaEnginePlugin','trim','filter','formulas','identity','sort','_commandService','HostExternalReferenceModel','asObservable','SetDocFormulaResourceMutation','_univerInstanceService','resolveFormula','getSnapshot','RichTextEditingMutation','ConvertDocFormulaToTextCommand','paragraph','Subject','getParagraphContentStartOffset','touchDependencies','docs-formula.config','pluginName','SetDocFormulaNumberFormatCommand','body','undoMutation','ReplaceDocFormulaWithTextCommand','SUCCESS','docs-formula.command.remove','complete','document','dispose','_hostExternalReferenceModel','startIndex','type','slice','buildUpdateDocFormulaActions','_service','assign','CellValueType','delete','serialize','expectedReferenceRevision','Disposable','fromEntries','docs-formula.command.replace-with-text','numberFormat','_setPresentation','docs-formula.mutation.set-formula','presentation','endIndex','getRegisteredFormulas','defineProperty','getPresentation','clear','COLUMN_START','color','DocTextResolverService','object','redoMutation','unregisterUnit','subscribe','from','cell','parse','Tools','getScalarFormulaResultCell','formula','success','registerFormulaWithRange','DependentOn','UniverLicensePlugin','unsupported-version','trigger','_change$','docs-formula.mutation.remove-formula','degradeDocFormulaDocumentData','SetDocFormulaMutation','nextResource','removeUnit','1201284NGmlhx','endOffset','insertLength','dataStream','assertSafeDocFormulaInsertRange','_model','rangeId','syncUnit','previousDocumentData','COLUMN_END','FormulaResultStatus','model','getTextRanges','degradeDocumentData','_preserveInvalid','get','LexerTreeBuilder','liveResult','COMMAND','_formulaKeys','IUndoRedoService','TABLE_END','customRanges','SECTION_BREAK','source','call','degradeBody','UniverDocsPlugin','getResource','BLOCK_END','add','resolveBinding','RemoveDocFormulaCommand','resolveFormulaResultPresentation','14533uNSvxe','UniverInstanceType','univer-docs-formula','EMPTY','_deleteRegistration','externalMutations','DocFormulaService','DOC_FORMULA_PLUGIN','wholeEntity','BLOCK_START','Module','getBody','getRichTextEditPath','_cacheEligibilityService','docs-formula.command.insert','isFormulaLastValue','keys','_rawResources','columnGroups','string','every','find','range','formulaId','buildUpsertHostExternalReferenceMutations','InvalidDocFormulaInsertRangeError','_resources','change$','PARAGRAPH','setResource','650472kSdXUh','number','CustomRangeType','TABLE_CELL_START','_injector','MUTATION','_isDisposed','expectedFormula','shiftExclusiveRangeOnDelete','PENDING','text','load','isArray','length','docs-formula.mutation.set-resource','docs-formula.command.convert-to-text','tables','getLoadError','schemaVersion','TABLE_ROW_END','version','TABLE_START','_registrations','IUniverInstanceService','lastValue','shiftInclusiveRangeOnDelete','end','resource','nextDocumentData','getFormulas','DocFormulaDisplayTextService','getUnitId','values','_syncUnit','1.3.1','segmentId','documentRedo','buildInsertDocFormulaActions','JSONX','SetDocFormulaLastValuesMutation','UpdateDocFormulaCommand','has','blockRanges','2848005UQDdwR','_configService','updates','2057552kDIbqF','toPrimitive','unitId','Document\x20main\x20body\x20is\x20required\x20to\x20insert\x20Doc\x20Formula.','_loadErrors','merge','function','Doc\x20Formula\x20range\x20cannot\x20cross\x20document\x20structure\x20boundaries','UNIVER_DOC','kind','notifyTextChanged','map','isInteger','pattern','docs-formula.command.set-number-format','position','getUnit','isDocFormulaResource','resolveText','resourceRedo','startOffset','TABLE_ROW_START','iterator','Inject','DocSelectionManagerService','DocFormulaLifecycleController','_presentationChanged$','entries','toFormulaLastValue','prototype','insert','3194172lhhEsG','_registrationService','max','UniverDocsFormulaPlugin','unitDisposed$','paragraphId','endsWith','resolved','symbol','ERROR','2cCBZYu','Plugin','start','deepClone','customBlocks','_resourceManagerService','COLUMN_GROUP_START','getResult','push','includes','findDocFormulaRange','InsertDocFormulaCommand','DocFormulaResultStatus','paragraphs','ICommandService','stale','setFormula','customDecorations','getFormulaValueSync','RegisterOtherFormulaService','_syncScheduled','boolean','_instanceService','docs-formula.mutation.set-last-values','assess','resolveHostFormulaExternalReferences','properties','references','_queueSync','forEach','resourceUndo','FormulaCacheEligibilityService','retain','_pendingUnitIds','registerPluginResource','sectionBreaks','DataStreamTreeTokenType','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','syncExecuteCommand','config','packageName','next','DOC_FORMULA_CUSTOM_RANGE_KIND','removeFormula','CUSTOM_BLOCK','register','20wiMDeT','_formulaService','status','generateRandomId','2163255ZkMLbX','cursorOffset','rangeType','externalReferences','selection','disposeWithMe','textRuns','documentData','params','startsWith','CUSTOM'];_0xa4cb=function(){return _0xe8d34b;};return _0xa4cb();}function ie(_0x419752,_0x1f6cdd,_0x45fce8){const _0x152432=_0x4136c9;if(_0x1f6cdd===_0x45fce8){if(p['has'](_0x419752['dataStream'][_0x1f6cdd]))throw new m();}else{for(let _0x7edd6e=_0x1f6cdd;_0x7edd6e<_0x45fce8;_0x7edd6e++)if(_0x419752['dataStream'][_0x7edd6e]===t[_0x152432(0x1a8)][_0x152432(0x12b)]||p[_0x152432(0x156)](_0x419752[_0x152432(0xf0)][_0x7edd6e]))throw new m();}}function ae(_0x186ad7,_0x4fc158){const _0xbb9349=_0x4136c9;return{'startIndex':_0x4fc158,'endIndex':_0x4fc158,'rangeId':_0x186ad7,'rangeType':t[_0xbb9349(0x12f)][_0xbb9349(0x1c0)],'wholeEntity':!0x0,'properties':{'kind':s}};}function v(_0x1c888a){const _0xb0612d=_0x4136c9;return _0x1c888a?t[_0xb0612d(0x21e)][_0xb0612d(0x187)](_0x1c888a):c();}function oe(_0x5b8508,_0x2b9c9d,_0x4b38db){const _0x4be517=_0x4136c9;let _0x44153c=se(_0x5b8508),_0x480bec=_0x2b9c9d??_0x44153c,_0x2fdf0e=_0x4b38db??_0x480bec;return{'startOffset':y(Math[_0x4be517(0x1d4)](_0x480bec,_0x2fdf0e),_0x44153c),'endOffset':y(Math[_0x4be517(0x17c)](_0x480bec,_0x2fdf0e),_0x44153c)};}function y(_0x189425,_0x3332c3){const _0x68b0ce=_0x4136c9;return Math[_0x68b0ce(0x17c)](0x0,Math[_0x68b0ce(0x1d4)](_0x189425,_0x3332c3));}function _0x44d8(_0x32ff33,_0x3c9752){_0x32ff33=_0x32ff33-0xf0;const _0xa4cb44=_0xa4cb();let _0x44d83c=_0xa4cb44[_0x32ff33];return _0x44d83c;}function se(_0x2eb1ff){const _0x4d2058=_0x4136c9;return _0x2eb1ff[_0x4d2058(0xf0)][_0x4d2058(0x180)](''+t[_0x4d2058(0x1a8)]['PARAGRAPH']+t[_0x4d2058(0x1a8)]['SECTION_BREAK'])?Math[_0x4d2058(0x17c)](0x0,_0x2eb1ff[_0x4d2058(0xf0)][_0x4d2058(0x13a)]-0x2):_0x2eb1ff[_0x4d2058(0xf0)][_0x4d2058(0x180)](t[_0x4d2058(0x1a8)][_0x4d2058(0x104)])?Math[_0x4d2058(0x17c)](0x0,_0x2eb1ff[_0x4d2058(0xf0)][_0x4d2058(0x13a)]-0x1):_0x2eb1ff[_0x4d2058(0xf0)][_0x4d2058(0x13a)];}function ce(_0x200f19,_0x257676,_0x278ad8,_0x513db6){_0x278ad8>_0x257676&&de(_0x200f19,_0x257676,_0x278ad8),ue(_0x200f19,_0x257676,_0x513db6);}function le(_0x4b03e0,_0x450b36,_0xb695c2){const _0x198b7f=_0x4136c9;var _0x4447d5,_0x2e1dbb;let _0x15e690=T(_0x4b03e0),_0x32d0db=(_0x4447d5=_0x15e690[_0x198b7f(0x103)])==null?void 0x0:_0x4447d5['find'](_0x140d40=>_0x140d40[_0x198b7f(0xf3)]===_0x450b36&&g(_0x140d40));if(!_0x32d0db)return null;let _0x5ac8ae=(0x0,t[_0x198b7f(0x1d7)])(_0x32d0db);return ce(_0x15e690,_0x5ac8ae[_0x198b7f(0x16f)],_0x5ac8ae[_0x198b7f(0x22e)],_0xb695c2),_0x15e690[_0x198b7f(0x103)]=(_0x2e1dbb=_0x15e690[_0x198b7f(0x103)])==null?void 0x0:_0x2e1dbb[_0x198b7f(0x1e1)](_0x40e9ce=>_0x40e9ce['rangeId']!==_0x450b36),_0x5ac8ae[_0x198b7f(0x16f)]+_0xb695c2['length'];}function ue(_0x4a996d,_0x56e7c8,_0x3edf38){const _0x28b539=_0x4136c9;_0x3edf38&&(_0x4a996d[_0x28b539(0xf0)]=''+_0x4a996d[_0x28b539(0xf0)][_0x28b539(0x200)](0x0,_0x56e7c8)+_0x3edf38+_0x4a996d[_0x28b539(0xf0)][_0x28b539(0x200)](_0x56e7c8),fe(_0x4a996d,_0x56e7c8,_0x3edf38[_0x28b539(0x13a)]));}function de(_0xba8461,_0x189a7e,_0x47a98e){const _0x577423=_0x4136c9;let _0x17e1e9=_0x47a98e-_0x189a7e;_0xba8461[_0x577423(0xf0)]=''+_0xba8461[_0x577423(0xf0)][_0x577423(0x200)](0x0,_0x189a7e)+_0xba8461['dataStream'][_0x577423(0x200)](_0x47a98e),pe(_0xba8461,_0x189a7e,_0x17e1e9);}function fe(_0x53d7a3,_0x5afe9d,_0x18f427){const _0x414032=_0x4136c9;_0x53d7a3[_0x414032(0x191)]=b(_0x53d7a3[_0x414032(0x191)],_0x5afe9d,_0x18f427),_0x53d7a3[_0x414032(0x1a7)]=b(_0x53d7a3[_0x414032(0x1a7)],_0x5afe9d,_0x18f427),_0x53d7a3[_0x414032(0x188)]=b(_0x53d7a3['customBlocks'],_0x5afe9d,_0x18f427),_0x53d7a3[_0x414032(0x1bc)]=me(_0x53d7a3['textRuns'],_0x5afe9d,_0x18f427),_0x53d7a3[_0x414032(0x13d)]=he(_0x53d7a3[_0x414032(0x13d)],_0x5afe9d,_0x18f427),_0x53d7a3[_0x414032(0x121)]=S(_0x53d7a3[_0x414032(0x121)],_0x5afe9d,_0x18f427),_0x53d7a3[_0x414032(0x103)]=S(_0x53d7a3[_0x414032(0x103)],_0x5afe9d,_0x18f427),_0x53d7a3[_0x414032(0x195)]=S(_0x53d7a3[_0x414032(0x195)],_0x5afe9d,_0x18f427),_0x53d7a3[_0x414032(0x157)]=S(_0x53d7a3['blockRanges'],_0x5afe9d,_0x18f427);}function pe(_0x58d4c7,_0x13abb0,_0x27aead){const _0x48fcaf=_0x4136c9;var _0xe34f0d,_0x21d36d;_0x58d4c7[_0x48fcaf(0x191)]=x(_0x58d4c7['paragraphs'],_0x13abb0,_0x27aead),_0x58d4c7[_0x48fcaf(0x1a7)]=x(_0x58d4c7['sectionBreaks'],_0x13abb0,_0x27aead),_0x58d4c7[_0x48fcaf(0x188)]=x(_0x58d4c7[_0x48fcaf(0x188)],_0x13abb0,_0x27aead),_0x58d4c7['textRuns']=(_0xe34f0d=w((_0x21d36d=_0x58d4c7[_0x48fcaf(0x1bc)])==null?void 0x0:_0x21d36d[_0x48fcaf(0x166)](_0x119060=>({..._0x119060,'startIndex':_0x119060['st'],'endIndex':_0x119060['ed']})),_0x13abb0,_0x27aead))==null?void 0x0:_0xe34f0d[_0x48fcaf(0x166)](_0x54191a=>{let {startIndex:_0xb8775f,endIndex:_0xb6a0d,..._0x38ddde}=_0x54191a;return{..._0x38ddde,'st':_0xb8775f,'ed':_0xb6a0d};}),_0x58d4c7[_0x48fcaf(0x13d)]=w(_0x58d4c7['tables'],_0x13abb0,_0x27aead),_0x58d4c7[_0x48fcaf(0x121)]=C(_0x58d4c7['columnGroups'],_0x13abb0,_0x27aead),_0x58d4c7['customRanges']=C(_0x58d4c7[_0x48fcaf(0x103)],_0x13abb0,_0x27aead),_0x58d4c7['customDecorations']=C(_0x58d4c7[_0x48fcaf(0x195)],_0x13abb0,_0x27aead),_0x58d4c7[_0x48fcaf(0x157)]=C(_0x58d4c7[_0x48fcaf(0x157)],_0x13abb0,_0x27aead);}function b(_0x59a7df,_0x3d0377,_0x293006){const _0x14035f=_0x4136c9;return _0x59a7df==null?void 0x0:_0x59a7df['map'](_0xccb6ca=>_0xccb6ca[_0x14035f(0x1fe)]>=_0x3d0377?{..._0xccb6ca,'startIndex':_0xccb6ca[_0x14035f(0x1fe)]+_0x293006}:_0xccb6ca);}function x(_0x1f134a,_0x2b2b72,_0x48a445){const _0x36c38d=_0x4136c9;let _0x3aa001=_0x2b2b72+_0x48a445;return _0x1f134a==null?void 0x0:_0x1f134a[_0x36c38d(0x166)](_0x28b69e=>_0x28b69e[_0x36c38d(0x1fe)]>=_0x2b2b72&&_0x28b69e[_0x36c38d(0x1fe)]<_0x3aa001?null:_0x28b69e[_0x36c38d(0x1fe)]>=_0x3aa001?{..._0x28b69e,'startIndex':_0x28b69e[_0x36c38d(0x1fe)]-_0x48a445}:_0x28b69e)['filter'](_0x3f023f=>_0x3f023f!=null);}function me(_0x1f3a81,_0x433aae,_0x39d0c1){const _0x52d4c7=_0x4136c9;return _0x1f3a81==null?void 0x0:_0x1f3a81[_0x52d4c7(0x166)](_0x2ccd6e=>_0x2ccd6e['st']>=_0x433aae?{..._0x2ccd6e,'st':_0x2ccd6e['st']+_0x39d0c1,'ed':_0x2ccd6e['ed']+_0x39d0c1}:_0x2ccd6e['ed']>_0x433aae?{..._0x2ccd6e,'ed':_0x2ccd6e['ed']+_0x39d0c1}:_0x2ccd6e);}function S(_0x28eeb6,_0x1cc37e,_0x18d218){const _0x1ffcfd=_0x4136c9;return _0x28eeb6==null?void 0x0:_0x28eeb6[_0x1ffcfd(0x166)](_0x3675d7=>(0x0,t['shiftInclusiveRangeOnInsert'])(_0x3675d7,_0x1cc37e,_0x18d218));}function he(_0x5760e4,_0xc05fb7,_0x3ff06){const _0x242ec8=_0x4136c9;return _0x5760e4==null?void 0x0:_0x5760e4[_0x242ec8(0x166)](_0x17da42=>(0x0,t['shiftExclusiveRangeOnInsert'])(_0x17da42,_0xc05fb7,_0x3ff06));}function C(_0x5e3fca,_0x4f25a3,_0xab582a){const _0x4f466a=_0x4136c9;return _0x5e3fca==null?void 0x0:_0x5e3fca['map'](_0x5dacba=>(0x0,t[_0x4f466a(0x146)])(_0x5dacba,_0x4f25a3,_0xab582a))[_0x4f466a(0x1e1)](_0xd1df59=>_0xd1df59!=null);}function w(_0xd6cc10,_0x33e713,_0x556778){const _0x1b5842=_0x4136c9;return _0xd6cc10==null?void 0x0:_0xd6cc10['map'](_0x20c2fb=>(0x0,t[_0x1b5842(0x135)])(_0x20c2fb,_0x33e713,_0x556778))[_0x1b5842(0x1e1)](_0x29a542=>_0x29a542!=null);}function T(_0x420b23){const _0x3df3eb=_0x4136c9;if(!_0x420b23[_0x3df3eb(0x1f5)])throw Error(_0x3df3eb(0x15e));return _0x420b23[_0x3df3eb(0x1f5)];}function E(_0x5079ff){'@babel/helpers - typeof';const _0x541b47=_0x4136c9;return E=typeof Symbol==_0x541b47(0x161)&&typeof Symbol[_0x541b47(0x171)]==_0x541b47(0x182)?function(_0x52e7c8){return typeof _0x52e7c8;}:function(_0x364c4f){const _0x3c1da2=_0x541b47;return _0x364c4f&&typeof Symbol==_0x3c1da2(0x161)&&_0x364c4f[_0x3c1da2(0x1d9)]===Symbol&&_0x364c4f!==Symbol[_0x3c1da2(0x178)]?_0x3c1da2(0x182):typeof _0x364c4f;},E(_0x5079ff);}function ge(_0x2fc47e,_0x1d45b2){const _0x564cb7=_0x4136c9;if(E(_0x2fc47e)!=_0x564cb7(0x217)||!_0x2fc47e)return _0x2fc47e;var _0x23d968=_0x2fc47e[Symbol[_0x564cb7(0x15c)]];if(_0x23d968!==void 0x0){var _0x3037ef=_0x23d968[_0x564cb7(0x106)](_0x2fc47e,_0x1d45b2||_0x564cb7(0x1c1));if(E(_0x3037ef)!=_0x564cb7(0x217))return _0x3037ef;throw TypeError(_0x564cb7(0x1a9));}return(_0x1d45b2===_0x564cb7(0x122)?String:Number)(_0x2fc47e);}function _e(_0x1764fe){const _0x449fe4=_0x4136c9;var _0x4a6c5c=ge(_0x1764fe,_0x449fe4(0x122));return E(_0x4a6c5c)==_0x449fe4(0x182)?_0x4a6c5c:_0x4a6c5c+'';}function D(_0x4c59eb,_0x134003,_0x5a2562){const _0x1d77cb=_0x4136c9;return(_0x134003=_e(_0x134003))in _0x4c59eb?Object[_0x1d77cb(0x211)](_0x4c59eb,_0x134003,{'value':_0x5a2562,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4c59eb[_0x134003]=_0x5a2562,_0x4c59eb;}var O=class extends t[_0x4136c9(0x208)]{constructor(..._0x5703ca){const _0x2faeb1=_0x4136c9;super(..._0x5703ca),D(this,_0x2faeb1(0x129),new Map()),D(this,_0x2faeb1(0x120),new Map()),D(this,'_loadErrors',new Map()),D(this,_0x2faeb1(0x227),new i[(_0x2faeb1(0x1ef))]()),D(this,'change$',this['_change$'][_0x2faeb1(0x1e7)]());}[_0x4136c9(0x1d5)](_0x397915,_0x1f0f9a){const _0x249ad2=_0x4136c9;var _0x8e77c1;let _0x1cdb50=(_0x8e77c1=this['_resources'][_0x249ad2(0xfc)](_0x397915))==null?void 0x0:_0x8e77c1[_0x249ad2(0x1e2)][_0x1f0f9a];return _0x1cdb50?t[_0x249ad2(0x21e)][_0x249ad2(0x187)](_0x1cdb50):void 0x0;}[_0x4136c9(0x14a)](_0x348d75){const _0x2be6a5=_0x4136c9;var _0x2819de;return t[_0x2be6a5(0x21e)][_0x2be6a5(0x187)](((_0x2819de=this[_0x2be6a5(0x129)]['get'](_0x348d75))==null?void 0x0:_0x2819de[_0x2be6a5(0x1e2)])??{});}[_0x4136c9(0x109)](_0xbafebd){const _0x40683b=_0x4136c9;let _0x3d56a7=this[_0x40683b(0x129)][_0x40683b(0xfc)](_0xbafebd);return _0x3d56a7?t['Tools'][_0x40683b(0x187)](_0x3d56a7):void 0x0;}[_0x4136c9(0x194)](_0x583367,_0xddfc86,_0x1b3e0d){return this['setFormulas'](_0x583367,{[_0xddfc86]:_0x1b3e0d});}[_0x4136c9(0x12c)](_0x3e546d,_0x37f16f){const _0x2525c3=_0x4136c9;return this[_0x2525c3(0x15f)]['has'](_0x3e546d)||!l(_0x37f16f)?!0x1:(this[_0x2525c3(0x129)][_0x2525c3(0x1d0)](_0x3e546d,t[_0x2525c3(0x21e)][_0x2525c3(0x187)](_0x37f16f)),this[_0x2525c3(0x227)][_0x2525c3(0x1ad)]({'unitId':_0x3e546d}),!0x0);}['setFormulas'](_0x1b9e03,_0x4e115b){const _0xe065dc=_0x4136c9;if(this[_0xe065dc(0x15f)][_0xe065dc(0x156)](_0x1b9e03)||!Object[_0xe065dc(0x11f)](_0x4e115b)[_0xe065dc(0x13a)]||!l({'schemaVersion':0x1,'formulas':_0x4e115b}))return!0x1;let _0xb3346f=this[_0xe065dc(0x129)][_0xe065dc(0xfc)](_0x1b9e03)??c(),_0x1a2cf9=t['Tools'][_0xe065dc(0x187)](_0xb3346f);return Object[_0xe065dc(0x203)](_0x1a2cf9[_0xe065dc(0x1e2)],t['Tools']['deepClone'](_0x4e115b)),this[_0xe065dc(0x129)][_0xe065dc(0x1d0)](_0x1b9e03,_0x1a2cf9),this[_0xe065dc(0x227)][_0xe065dc(0x1ad)]({'unitId':_0x1b9e03,'rangeIds':Object[_0xe065dc(0x11f)](_0x4e115b)}),!0x0;}[_0x4136c9(0x1af)](_0x109a83,_0x5e4d92){const _0x31dc67=_0x4136c9;if(this[_0x31dc67(0x15f)][_0x31dc67(0x156)](_0x109a83))return!0x1;let _0x2f09fb=this[_0x31dc67(0x129)]['get'](_0x109a83);if(!(_0x2f09fb!=null&&_0x2f09fb[_0x31dc67(0x1e2)][_0x5e4d92]))return!0x1;let _0x3a223d=t[_0x31dc67(0x21e)][_0x31dc67(0x187)](_0x2f09fb);return delete _0x3a223d['formulas'][_0x5e4d92],this['_resources'][_0x31dc67(0x1d0)](_0x109a83,_0x3a223d),this[_0x31dc67(0x227)][_0x31dc67(0x1ad)]({'unitId':_0x109a83,'rangeIds':[_0x5e4d92]}),!0x0;}[_0x4136c9(0x138)](_0x2bfef3,_0x2671b0){const _0x235b38=_0x4136c9;return _0x2671b0&&typeof _0x2671b0==_0x235b38(0x217)&&_0x235b38(0x13f)in _0x2671b0&&_0x2671b0[_0x235b38(0x13f)]!==0x1?(this[_0x235b38(0xfb)](_0x2bfef3,_0x2671b0,_0x235b38(0x225)),!0x1):l(_0x2671b0)?(this['_resources']['set'](_0x2bfef3,t[_0x235b38(0x21e)][_0x235b38(0x187)](_0x2671b0)),this[_0x235b38(0x120)][_0x235b38(0x205)](_0x2bfef3),this['_loadErrors'][_0x235b38(0x205)](_0x2bfef3),this[_0x235b38(0x227)][_0x235b38(0x1ad)]({'unitId':_0x2bfef3}),!0x0):(this[_0x235b38(0xfb)](_0x2bfef3,_0x2671b0,_0x235b38(0x1cd)),!0x1);}[_0x4136c9(0x206)](_0x5762b7){const _0x4f66eb=_0x4136c9;let _0x41879b=this[_0x4f66eb(0x129)][_0x4f66eb(0xfc)](_0x5762b7);return _0x41879b?t[_0x4f66eb(0x21e)][_0x4f66eb(0x187)](_0x41879b):this[_0x4f66eb(0x120)]['has'](_0x5762b7)?t['Tools']['deepClone'](this['_rawResources'][_0x4f66eb(0xfc)](_0x5762b7)):c();}[_0x4136c9(0x13e)](_0x379775){const _0x128f18=_0x4136c9;return this[_0x128f18(0x15f)][_0x128f18(0xfc)](_0x379775);}[_0x4136c9(0x22c)](_0x16ed3a){const _0x53f0d5=_0x4136c9;this[_0x53f0d5(0x129)][_0x53f0d5(0x205)](_0x16ed3a),this[_0x53f0d5(0x120)]['delete'](_0x16ed3a),this[_0x53f0d5(0x15f)][_0x53f0d5(0x205)](_0x16ed3a),this[_0x53f0d5(0x227)]['next']({'unitId':_0x16ed3a});}['dispose'](){const _0x2d58cc=_0x4136c9;this[_0x2d58cc(0x129)]['clear'](),this[_0x2d58cc(0x120)]['clear'](),this[_0x2d58cc(0x15f)][_0x2d58cc(0x213)](),this[_0x2d58cc(0x227)][_0x2d58cc(0x1fa)](),super[_0x2d58cc(0x1fc)]();}[_0x4136c9(0xfb)](_0x1993c7,_0x174f0f,_0x1dadea){const _0x1e7233=_0x4136c9;this[_0x1e7233(0x129)]['delete'](_0x1993c7),this['_rawResources'][_0x1e7233(0x1d0)](_0x1993c7,t['Tools'][_0x1e7233(0x187)](_0x174f0f)),this[_0x1e7233(0x15f)][_0x1e7233(0x1d0)](_0x1993c7,_0x1dadea),this[_0x1e7233(0x227)][_0x1e7233(0x1ad)]({'unitId':_0x1993c7});}};let ve=function(_0x1ab16c){const _0x108bf1=_0x4136c9;return _0x1ab16c[_0x108bf1(0x112)]='empty',_0x1ab16c[_0x108bf1(0x136)]=_0x108bf1(0x1d3),_0x1ab16c[_0x108bf1(0x1f8)]=_0x108bf1(0x221),_0x1ab16c[_0x108bf1(0x183)]=_0x108bf1(0x1d6),_0x1ab16c;}({});function k(_0xfd9171,_0x590f97){return function(_0x3141b0,_0x3498e3){_0x590f97(_0x3141b0,_0x3498e3,_0xfd9171);};}function A(_0xb28121,_0x35677b,_0x17a412,_0x115b5e){const _0x540f56=_0x4136c9;var _0x245e88=arguments[_0x540f56(0x13a)],_0x329a14=_0x245e88<0x3?_0x35677b:_0x115b5e===null?_0x115b5e=Object['getOwnPropertyDescriptor'](_0x35677b,_0x17a412):_0x115b5e,_0xbd9777;if(typeof Reflect==_0x540f56(0x217)&&typeof Reflect['decorate']==_0x540f56(0x161))_0x329a14=Reflect[_0x540f56(0x1c3)](_0xb28121,_0x35677b,_0x17a412,_0x115b5e);else{for(var _0xed2bba=_0xb28121[_0x540f56(0x13a)]-0x1;_0xed2bba>=0x0;_0xed2bba--)(_0xbd9777=_0xb28121[_0xed2bba])&&(_0x329a14=(_0x245e88<0x3?_0xbd9777(_0x329a14):_0x245e88>0x3?_0xbd9777(_0x35677b,_0x17a412,_0x329a14):_0xbd9777(_0x35677b,_0x17a412))||_0x329a14);}return _0x245e88>0x3&&_0x329a14&&Object[_0x540f56(0x211)](_0x35677b,_0x17a412,_0x329a14),_0x329a14;}let j=class extends t[_0x4136c9(0x208)]{constructor(_0x455dd1,_0x1ca43e,_0x3722f2){const _0x4e1798=_0x4136c9;super(),this[_0x4e1798(0xf2)]=_0x455dd1,this[_0x4e1798(0x17b)]=_0x1ca43e,this[_0x4e1798(0x1fd)]=_0x3722f2,D(this,_0x4e1798(0x143),new Map()),D(this,'_formulaKeys',new Map()),D(this,_0x4e1798(0x175),new i['Subject']()),D(this,_0x4e1798(0x1da),this['_presentationChanged$']['asObservable']()),this[_0x4e1798(0x1bb)](this[_0x4e1798(0x17b)]['formulaResult$'][_0x4e1798(0x21a)](_0x4b5afc=>{const _0x1f87df=_0x4e1798;for(let _0xf6092b of Object[_0x1f87df(0x14d)](_0x4b5afc))for(let _0x38c703 of Object[_0x1f87df(0x14d)](_0xf6092b))_0x38c703['forEach'](_0x370874=>this['_updateFormulaResult'](_0x370874));}));}[_0x4136c9(0xf4)](_0x3cf136){const _0x9993a1=_0x4136c9;var _0x84b361;let _0x286558=_0x3cf136[_0x9993a1(0x14c)](),_0x306c2b=((_0x84b361=_0x3cf136[_0x9993a1(0x1eb)]()[_0x9993a1(0x1f5)])==null||(_0x84b361=_0x84b361[_0x9993a1(0x103)])==null?void 0x0:_0x84b361[_0x9993a1(0x1e1)](g))??[],_0x1de419=this[_0x9993a1(0xf2)]['getFormulas'](_0x286558),_0x1dee00=new Set();for(let _0x230d03 of _0x306c2b){let _0x54ed58=_0x1de419[_0x230d03['rangeId']];_0x54ed58&&(_0x1dee00[_0x9993a1(0x10b)](M(_0x286558,_0x230d03[_0x9993a1(0xf3)])),this['register']({'unitId':_0x286558,'rangeId':_0x230d03[_0x9993a1(0xf3)]},_0x54ed58));}for(let _0x4a2578 of Array[_0x9993a1(0x21b)](this[_0x9993a1(0x143)][_0x9993a1(0x14d)]()))_0x4a2578[_0x9993a1(0x15d)]===_0x286558&&!_0x1dee00[_0x9993a1(0x156)](M(_0x4a2578[_0x9993a1(0x15d)],_0x4a2578['rangeId']))&&this[_0x9993a1(0x1d1)](_0x4a2578);}['register'](_0x529387,_0x3765e9){const _0x5dbb02=_0x4136c9;let _0x2157b9=M(_0x529387[_0x5dbb02(0x15d)],_0x529387['rangeId']),_0x3b6fd9=this[_0x5dbb02(0x143)][_0x5dbb02(0xfc)](_0x2157b9),_0x5d25c0=this[_0x5dbb02(0x1fd)]['getRevision'](_0x529387['unitId']);if(_0x3b6fd9&&_0x3b6fd9[_0x5dbb02(0x1ab)][_0x5dbb02(0x220)]===_0x3765e9[_0x5dbb02(0x220)]&&_0x3b6fd9[_0x5dbb02(0x1ca)]===_0x5d25c0){_0x3b6fd9['config']=_0x3765e9;let _0x53bf6d=_0x3b6fd9[_0x5dbb02(0x126)]?this['_registrationService'][_0x5dbb02(0x196)](_0x3b6fd9['unitId'],_0x3b6fd9[_0x5dbb02(0x15d)],_0x3b6fd9[_0x5dbb02(0x126)])??void 0x0:void 0x0;_0x3b6fd9[_0x5dbb02(0xfe)]=_0x53bf6d,this['_setPresentation'](_0x2157b9,N(_0x3765e9,_0x53bf6d));return;}_0x3b6fd9!=null&&_0x3b6fd9['formulaId']&&this[_0x5dbb02(0x113)](_0x3b6fd9);let _0x4ebee0={..._0x529387,'config':_0x3765e9,'referenceRevision':_0x5d25c0,'presentation':N(_0x3765e9,void 0x0)};if(this[_0x5dbb02(0x143)][_0x5dbb02(0x1d0)](_0x2157b9,_0x4ebee0),!_0x3765e9[_0x5dbb02(0x220)][_0x5dbb02(0x1e0)]())return;let _0x554119=this[_0x5dbb02(0x17b)][_0x5dbb02(0x222)](_0x529387['unitId'],_0x529387[_0x5dbb02(0x15d)],_0x3765e9[_0x5dbb02(0x220)],void 0x0,{'rangeId':_0x529387[_0x5dbb02(0xf3)]},r['OtherFormulaBizType']['DOC'],_0x529387[_0x5dbb02(0xf3)]);_0x4ebee0[_0x5dbb02(0x126)]=_0x554119,this[_0x5dbb02(0x100)][_0x5dbb02(0x1d0)](_0x554119,_0x2157b9);}['unregister'](_0xd81a4f){const _0x2a8f21=_0x4136c9;let _0x1d82bd=M(_0xd81a4f[_0x2a8f21(0x15d)],_0xd81a4f[_0x2a8f21(0xf3)]),_0xb29512=this[_0x2a8f21(0x143)][_0x2a8f21(0xfc)](_0x1d82bd);_0xb29512&&(this['_deleteRegistration'](_0xb29512),this[_0x2a8f21(0x143)]['delete'](_0x1d82bd));}[_0x4136c9(0x219)](_0xfa4e82){const _0x3917db=_0x4136c9;for(let _0x53cf90 of Array[_0x3917db(0x21b)](this[_0x3917db(0x143)][_0x3917db(0x14d)]()))_0x53cf90[_0x3917db(0x15d)]===_0xfa4e82&&this[_0x3917db(0x1d1)](_0x53cf90);}[_0x4136c9(0x212)](_0x56f1a9){const _0x223f25=_0x4136c9;var _0x31d2f2;return(_0x31d2f2=this[_0x223f25(0x143)][_0x223f25(0xfc)](M(_0x56f1a9['unitId'],_0x56f1a9[_0x223f25(0xf3)])))==null?void 0x0:_0x31d2f2[_0x223f25(0x20e)];}[_0x4136c9(0x18b)](_0x1f3f73){const _0x16f5c0=_0x4136c9;let _0xfe70b9=this[_0x16f5c0(0x143)]['get'](M(_0x1f3f73[_0x16f5c0(0x15d)],_0x1f3f73[_0x16f5c0(0xf3)]));return _0xfe70b9?P(_0xfe70b9):void 0x0;}[_0x4136c9(0x210)](){const _0x22953e=_0x4136c9;return Array['from'](this[_0x22953e(0x143)][_0x22953e(0x14d)](),_0x2b8812=>({'identity':{'unitId':_0x2b8812[_0x22953e(0x15d)],'rangeId':_0x2b8812['rangeId']},'config':_0x2b8812['config'],'referenceRevision':_0x2b8812[_0x22953e(0x1ca)],..._0x2b8812[_0x22953e(0xfe)]?{'liveResult':_0x2b8812['liveResult']}:null}));}['dispose'](){const _0x4fb51c=_0x4136c9;for(let _0x37ef8d of this[_0x4fb51c(0x143)][_0x4fb51c(0x14d)]())this[_0x4fb51c(0x113)](_0x37ef8d);this[_0x4fb51c(0x143)]['clear'](),this[_0x4fb51c(0x100)][_0x4fb51c(0x213)](),this[_0x4fb51c(0x175)][_0x4fb51c(0x1fa)](),super[_0x4fb51c(0x1fc)]();}['_updateFormulaResult'](_0x3f31f0){const _0x10336e=_0x4136c9;let _0x5682ff=this[_0x10336e(0x100)][_0x10336e(0xfc)](_0x3f31f0['formulaId']),_0x1b4a8e=_0x5682ff?this[_0x10336e(0x143)][_0x10336e(0xfc)](_0x5682ff):void 0x0;_0x5682ff&&_0x1b4a8e&&(_0x1b4a8e['liveResult']=_0x3f31f0,this[_0x10336e(0x20c)](_0x5682ff,N(_0x1b4a8e[_0x10336e(0x1ab)],_0x3f31f0)));}[_0x4136c9(0x20c)](_0x5f447e,_0x5ba95a){const _0x57760f=_0x4136c9;var _0x1efbaf,_0x82c6cc;let _0x21d875=this[_0x57760f(0x143)][_0x57760f(0xfc)](_0x5f447e);if(!_0x21d875||ye(_0x21d875[_0x57760f(0x20e)],_0x5ba95a))return;let _0x4205b3=_0x21d875[_0x57760f(0x20e)],_0x56f037=P(_0x21d875);_0x21d875[_0x57760f(0x20e)]=_0x5ba95a,this[_0x57760f(0x175)][_0x57760f(0x1ad)]({'unitId':_0x21d875[_0x57760f(0x15d)],'rangeId':_0x21d875['rangeId'],'presentation':_0x5ba95a,'previousPresentation':_0x4205b3,'result':P(_0x21d875),'previousResult':{..._0x56f037,..._0x4205b3,'value':(_0x1efbaf=_0x4205b3['cell'])==null?void 0x0:_0x1efbaf['v'],'valueType':((_0x82c6cc=_0x4205b3['cell'])==null?void 0x0:_0x82c6cc['t'])??void 0x0}});}['_deleteRegistration'](_0x17cd7d){const _0x36f21e=_0x4136c9;_0x17cd7d['formulaId']&&(this[_0x36f21e(0x17b)]['deleteFormula'](_0x17cd7d[_0x36f21e(0x15d)],_0x17cd7d['unitId'],[_0x17cd7d['formulaId']]),this[_0x36f21e(0x100)][_0x36f21e(0x205)](_0x17cd7d[_0x36f21e(0x126)]));}};j=A([k(0x0,(0x0,t[_0x4136c9(0x172)])(O)),k(0x1,(0x0,t['Inject'])(r[_0x4136c9(0x197)])),k(0x2,(0x0,t[_0x4136c9(0x172)])(e[_0x4136c9(0x1e6)]))],j);function M(_0x42b4e5,_0x4dd9f1){return _0x42b4e5+'\x00'+_0x4dd9f1;}function N(_0x5a9378,_0x509cf0){const _0x1fcc46=_0x4136c9;return(0x0,e['resolveFormulaResultPresentation'])({'numberFormat':_0x5a9378['numberFormat'],'lastValue':_0x5a9378[_0x1fcc46(0x145)],'result':_0x509cf0});}function P(_0x19a063){const _0x5ce060=_0x4136c9;var _0x18e637,_0x451c99,_0x41091b;let _0x589fe1=_0x19a063[_0x5ce060(0x20e)],_0x1a6feb=_0x19a063[_0x5ce060(0x1ab)]['formula'][_0x5ce060(0x1e0)]()?_0x589fe1[_0x5ce060(0x193)]||_0x589fe1[_0x5ce060(0x21c)]==null?'pending':((_0x18e637=_0x19a063[_0x5ce060(0xfe)])==null?void 0x0:_0x18e637['status'])===r[_0x5ce060(0xf7)][_0x5ce060(0x183)]?_0x5ce060(0x1d6):_0x5ce060(0x221):_0x5ce060(0x1cf);return{..._0x589fe1,'status':_0x1a6feb,'value':(_0x451c99=_0x589fe1[_0x5ce060(0x21c)])==null?void 0x0:_0x451c99['v'],'valueType':((_0x41091b=_0x589fe1[_0x5ce060(0x21c)])==null?void 0x0:_0x41091b['t'])??void 0x0};}function ye(_0x522e9f,_0xab45f8){const _0x599d32=_0x4136c9;var _0x4e23a5,_0x350cc1,_0x358783,_0x5f1115;return _0x522e9f['text']===_0xab45f8[_0x599d32(0x137)]&&_0x522e9f['color']===_0xab45f8[_0x599d32(0x215)]&&_0x522e9f[_0x599d32(0x168)]===_0xab45f8['pattern']&&_0x522e9f[_0x599d32(0x105)]===_0xab45f8[_0x599d32(0x105)]&&_0x522e9f[_0x599d32(0x193)]===_0xab45f8[_0x599d32(0x193)]&&((_0x4e23a5=_0x522e9f['cell'])==null?void 0x0:_0x4e23a5['t'])===((_0x350cc1=_0xab45f8[_0x599d32(0x21c)])==null?void 0x0:_0x350cc1['t'])&&Object['is']((_0x358783=_0x522e9f[_0x599d32(0x21c)])==null?void 0x0:_0x358783['v'],(_0x5f1115=_0xab45f8[_0x599d32(0x21c)])==null?void 0x0:_0x5f1115['v']);}const F={'id':_0x4136c9(0x20d),'type':t[_0x4136c9(0x1dc)][_0x4136c9(0x132)],'handler':(_0x2c1f8a,_0x55197a)=>!(_0x55197a!=null&&_0x55197a[_0x4136c9(0x15d)])||!_0x55197a[_0x4136c9(0xf3)]||!_0x55197a['config']?!0x1:_0x2c1f8a['get'](O)[_0x4136c9(0x194)](_0x55197a[_0x4136c9(0x15d)],_0x55197a[_0x4136c9(0xf3)],_0x55197a['config'])},I={'id':_0x4136c9(0x228),'type':t[_0x4136c9(0x1dc)]['MUTATION'],'handler':(_0x29345f,_0x455f48)=>!(_0x455f48!=null&&_0x455f48[_0x4136c9(0x15d)])||!_0x455f48[_0x4136c9(0xf3)]?!0x1:_0x29345f[_0x4136c9(0xfc)](O)[_0x4136c9(0x1af)](_0x455f48['unitId'],_0x455f48[_0x4136c9(0xf3)])},L={'id':_0x4136c9(0x13b),'type':t[_0x4136c9(0x1dc)][_0x4136c9(0x132)],'handler':(_0x5f0216,_0x34ed4a)=>!(_0x34ed4a!=null&&_0x34ed4a[_0x4136c9(0x15d)])||!_0x34ed4a[_0x4136c9(0x148)]?!0x1:_0x5f0216[_0x4136c9(0xfc)](O)[_0x4136c9(0x12c)](_0x34ed4a['unitId'],_0x34ed4a[_0x4136c9(0x148)])},R={'id':_0x4136c9(0x19b),'type':t['CommandType']['MUTATION'],'handler':(_0x3a278c,_0x644878)=>{const _0x4c7d40=_0x4136c9;if(!(_0x644878!=null&&_0x644878[_0x4c7d40(0x15d)])||!_0x644878[_0x4c7d40(0x15a)][_0x4c7d40(0x13a)])return!0x1;let _0x5859c7=_0x3a278c[_0x4c7d40(0xfc)](O),_0x14a26a=_0x3a278c[_0x4c7d40(0xfc)](e[_0x4c7d40(0x1e6)]),_0x3a4a61=_0x5859c7['getResource'](_0x644878[_0x4c7d40(0x15d)]);if(!_0x3a4a61)return!0x1;let _0x307728=t[_0x4c7d40(0x21e)][_0x4c7d40(0x187)](_0x3a4a61),_0x4c0829=!0x1;for(let _0x1c958b of _0x644878[_0x4c7d40(0x15a)]){var _0xc9a8eb,_0x28b28e,_0x1654dd,_0x12cd1c;let _0x3a2f18=_0x307728[_0x4c7d40(0x1e2)][_0x1c958b[_0x4c7d40(0xf3)]];_0x3a2f18&&_0x3a2f18[_0x4c7d40(0x220)]===_0x1c958b[_0x4c7d40(0x134)]&&((_0xc9a8eb=_0x3a2f18[_0x4c7d40(0x20b)])==null?void 0x0:_0xc9a8eb[_0x4c7d40(0x168)])===_0x1c958b['expectedNumberFormat']&&_0x14a26a[_0x4c7d40(0x1c7)](_0x644878[_0x4c7d40(0x15d)])===_0x1c958b[_0x4c7d40(0x207)]&&(((_0x28b28e=_0x3a2f18[_0x4c7d40(0x145)])==null?void 0x0:_0x28b28e['v'])!==_0x1c958b[_0x4c7d40(0x145)]['v']||((_0x1654dd=_0x3a2f18[_0x4c7d40(0x145)])==null?void 0x0:_0x1654dd['t'])!==_0x1c958b['lastValue']['t']||((_0x12cd1c=_0x3a2f18[_0x4c7d40(0x145)])==null?void 0x0:_0x12cd1c[_0x4c7d40(0x168)])!==_0x1c958b[_0x4c7d40(0x145)][_0x4c7d40(0x168)])&&(_0x3a2f18[_0x4c7d40(0x145)]=t['Tools'][_0x4c7d40(0x187)](_0x1c958b[_0x4c7d40(0x145)]),_0x4c0829=!0x0);}return!_0x4c0829||_0x5859c7['setResource'](_0x644878['unitId'],_0x307728);}},z={'id':_0x4136c9(0x11d),'type':t[_0x4136c9(0x1dc)][_0x4136c9(0xff)],'handler':(_0x1525f8,_0x20155b)=>{const _0x599377=_0x4136c9;if(!(_0x20155b!=null&&_0x20155b[_0x599377(0x220)][_0x599377(0x1e0)]()))return!0x1;let _0x218d2f=K(_0x1525f8,_0x20155b['unitId'],'');if(!_0x218d2f)return!0x1;let _0x44e536=xe(_0x20155b['target'],_0x218d2f['body'],be(_0x1525f8,_0x218d2f[_0x599377(0x15d)]));if(!_0x44e536)return!0x1;let _0x1e3d18=Se(_0x1525f8,_0x218d2f['unitId'],_0x20155b['formula'],_0x20155b[_0x599377(0x1b9)]??[]);if(!_0x1e3d18)return!0x1;let _0x29979a=Ce(_0x218d2f[_0x599377(0x1f5)],_0x218d2f['model'],_0x218d2f['unitId']),_0x1f33c4=we({'documentData':_0x218d2f['documentData'],'resource':_0x218d2f[_0x599377(0x148)],'rangeId':_0x29979a,'config':{'formula':_0x20155b[_0x599377(0x220)],..._0x20155b['numberFormat']?{'numberFormat':_0x20155b[_0x599377(0x20b)]}:null},'startOffset':_0x44e536[_0x599377(0x16f)],'endOffset':_0x44e536['endOffset']});if(!_0x1f33c4)return!0x1;let _0x19f95c=(0x0,e[_0x599377(0x127)])(_0x1525f8,_0x218d2f[_0x599377(0x15d)],_0x1e3d18);return!_0x19f95c||!q({'accessor':_0x1525f8,'document':_0x218d2f[_0x599377(0x1fb)],'unitId':_0x218d2f[_0x599377(0x15d)],'trigger':z['id'],'rangeId':_0x29979a,'previousResource':_0x218d2f[_0x599377(0x148)],'nextResource':_0x1f33c4[_0x599377(0x22b)],'previousDocumentData':_0x218d2f[_0x599377(0x1bd)],'nextDocumentData':_0x1f33c4[_0x599377(0x149)],'cursorOffset':_0x1f33c4[_0x599377(0x1b7)],'externalMutations':_0x19f95c})?!0x1:{'rangeId':_0x29979a,'startOffset':_0x1f33c4[_0x599377(0x1b7)]-0x1,'endOffset':_0x1f33c4[_0x599377(0x1b7)]};}},B={'id':'docs-formula.command.update','type':t[_0x4136c9(0x1dc)][_0x4136c9(0xff)],'handler':(_0x171447,_0x51c6d8)=>{const _0x40d10d=_0x4136c9;if(!(_0x51c6d8!=null&&_0x51c6d8['rangeId'])||!_0x51c6d8[_0x40d10d(0x220)]['trim']())return!0x1;let _0x2d64a5=K(_0x171447,_0x51c6d8['unitId'],''),_0x3cc3bf=_0x2d64a5==null?void 0x0:_0x2d64a5['model'][_0x40d10d(0x1d5)](_0x2d64a5[_0x40d10d(0x15d)],_0x51c6d8[_0x40d10d(0xf3)]),_0x1140ec=_0x2d64a5?_(_0x2d64a5[_0x40d10d(0x1bd)]['body'],_0x51c6d8[_0x40d10d(0xf3)]):void 0x0;if(!_0x2d64a5||!_0x3cc3bf||!_0x1140ec)return!0x1;let _0x2f0908=Se(_0x171447,_0x2d64a5[_0x40d10d(0x15d)],_0x51c6d8[_0x40d10d(0x220)],_0x51c6d8[_0x40d10d(0x1b9)]??[]);if(!_0x2f0908)return!0x1;let _0x365b2c=(0x0,e[_0x40d10d(0x127)])(_0x171447,_0x2d64a5[_0x40d10d(0x15d)],_0x2f0908);if(!_0x365b2c)return!0x1;let _0x186c01=je(_0x2d64a5['resource']);return _0x186c01[_0x40d10d(0x1e2)][_0x51c6d8[_0x40d10d(0xf3)]]={'formula':_0x51c6d8[_0x40d10d(0x220)],..._0x51c6d8[_0x40d10d(0x20b)]?{'numberFormat':_0x51c6d8[_0x40d10d(0x20b)]}:_0x3cc3bf[_0x40d10d(0x20b)]?{'numberFormat':_0x3cc3bf[_0x40d10d(0x20b)]}:null},q({'accessor':_0x171447,'document':_0x2d64a5[_0x40d10d(0x1fb)],'unitId':_0x2d64a5[_0x40d10d(0x15d)],'trigger':B['id'],'rangeId':_0x51c6d8['rangeId'],'previousResource':_0x2d64a5[_0x40d10d(0x148)],'nextResource':_0x186c01,'cursorOffset':_0x1140ec[_0x40d10d(0x20f)]+0x1,'externalMutations':_0x365b2c});}},V={'id':_0x4136c9(0x169),'type':t[_0x4136c9(0x1dc)]['COMMAND'],'handler':(_0x5c12f,_0x5afc6f)=>{const _0x2a4f35=_0x4136c9;if(!(_0x5afc6f!=null&&_0x5afc6f[_0x2a4f35(0xf3)]))return!0x1;let _0x3ed5c6=K(_0x5c12f,_0x5afc6f[_0x2a4f35(0x15d)],''),_0x5b7929=_0x3ed5c6==null?void 0x0:_0x3ed5c6[_0x2a4f35(0xf8)][_0x2a4f35(0x1d5)](_0x3ed5c6[_0x2a4f35(0x15d)],_0x5afc6f[_0x2a4f35(0xf3)]),_0x44d3ed=_0x3ed5c6?_(_0x3ed5c6[_0x2a4f35(0x1bd)][_0x2a4f35(0x1f5)],_0x5afc6f[_0x2a4f35(0xf3)]):void 0x0;if(!_0x3ed5c6||!_0x5b7929||!_0x44d3ed)return!0x1;let _0x36a215=je(_0x3ed5c6[_0x2a4f35(0x148)]);return _0x36a215[_0x2a4f35(0x1e2)][_0x5afc6f[_0x2a4f35(0xf3)]]={..._0x5b7929,..._0x5afc6f[_0x2a4f35(0x20b)]?{'numberFormat':_0x5afc6f['numberFormat']}:null},_0x5afc6f[_0x2a4f35(0x20b)]||delete _0x36a215[_0x2a4f35(0x1e2)][_0x5afc6f[_0x2a4f35(0xf3)]][_0x2a4f35(0x20b)],q({'accessor':_0x5c12f,'document':_0x3ed5c6[_0x2a4f35(0x1fb)],'unitId':_0x3ed5c6[_0x2a4f35(0x15d)],'trigger':V['id'],'rangeId':_0x5afc6f[_0x2a4f35(0xf3)],'previousResource':_0x3ed5c6[_0x2a4f35(0x148)],'nextResource':_0x36a215,'cursorOffset':_0x44d3ed['endIndex']+0x1,'externalMutations':{}});}},H={'id':_0x4136c9(0x1f9),'type':t[_0x4136c9(0x1dc)][_0x4136c9(0xff)],'handler':(_0x518ca0,_0x2782f1)=>G(_0x518ca0,_0x2782f1,'',H['id'])},U={'id':_0x4136c9(0x20a),'type':t['CommandType'][_0x4136c9(0xff)],'handler':(_0x19e0c0,_0x144f6f)=>G(_0x19e0c0,_0x144f6f,(_0x144f6f==null?void 0x0:_0x144f6f[_0x4136c9(0x137)])??'',U['id'])},W={'id':_0x4136c9(0x13c),'type':t[_0x4136c9(0x1dc)][_0x4136c9(0xff)],'handler':(_0x32dcb8,_0x38e17d)=>{const _0x3f9184=_0x4136c9;if(!(_0x38e17d!=null&&_0x38e17d['rangeId']))return!0x1;let _0x16623e=K(_0x32dcb8,_0x38e17d[_0x3f9184(0x15d)],'');if(!_0x16623e)return!0x1;let _0x48c49c=_0x32dcb8['get'](j)[_0x3f9184(0x18b)]({'unitId':_0x16623e[_0x3f9184(0x15d)],'rangeId':_0x38e17d[_0x3f9184(0xf3)]});return _0x48c49c?G(_0x32dcb8,_0x38e17d,_0x48c49c[_0x3f9184(0x137)],W['id']):!0x1;}};function G(_0x1d3fd6,_0x33d2b0,_0x5d23c1,_0x576f5d){const _0x353db2=_0x4136c9;if(!(_0x33d2b0!=null&&_0x33d2b0[_0x353db2(0xf3)]))return!0x1;let _0x3d0c66=K(_0x1d3fd6,_0x33d2b0[_0x353db2(0x15d)],'');if(!_0x3d0c66)return!0x1;let _0x3c3a0d=h({'documentData':_0x3d0c66[_0x353db2(0x1bd)],'resource':_0x3d0c66['resource'],'rangeId':_0x33d2b0[_0x353db2(0xf3)],'text':_0x5d23c1});return _0x3c3a0d?q({'accessor':_0x1d3fd6,'document':_0x3d0c66[_0x353db2(0x1fb)],'unitId':_0x3d0c66[_0x353db2(0x15d)],'trigger':_0x576f5d,'rangeId':_0x33d2b0[_0x353db2(0xf3)],'previousResource':_0x3d0c66[_0x353db2(0x148)],'nextResource':_0x3c3a0d[_0x353db2(0x22b)],'previousDocumentData':_0x3d0c66[_0x353db2(0x1bd)],'nextDocumentData':_0x3c3a0d[_0x353db2(0x149)],'cursorOffset':_0x3c3a0d[_0x353db2(0x1b7)],'externalMutations':{}}):!0x1;}function K(_0x238528,_0x1eeb4d,_0x4c4141){const _0x54cde0=_0x4136c9;if(_0x4c4141)return null;let _0x22c8ee=_0x238528['get'](t['IUniverInstanceService']),_0x38f689=(_0x1eeb4d?_0x22c8ee[_0x54cde0(0x16b)](_0x1eeb4d,t['UniverInstanceType'][_0x54cde0(0x163)]):_0x22c8ee['getCurrentUnitOfType'](t[_0x54cde0(0x110)][_0x54cde0(0x163)]))??null;if(!_0x38f689)return null;let _0x2251ee=_0x38f689[_0x54cde0(0x1eb)](),_0x3d2d37=_0x2251ee[_0x54cde0(0x1f5)];if(_0x2251ee[_0x54cde0(0x1db)]||!_0x3d2d37)return null;let _0x1cd282=_0x238528[_0x54cde0(0xfc)](O);return _0x1cd282[_0x54cde0(0x13e)](_0x38f689[_0x54cde0(0x14c)]())?null:{'document':_0x38f689,'body':_0x3d2d37,'documentData':_0x2251ee,'model':_0x1cd282,'resource':_0x1cd282[_0x54cde0(0x109)](_0x38f689[_0x54cde0(0x14c)]())??c(),'unitId':_0x38f689[_0x54cde0(0x14c)]()};}function be(_0x1b3364,_0x1e9c6a){const _0x5c658c=_0x4136c9;var _0x57a419;return(_0x57a419=_0x1b3364[_0x5c658c(0xfc)](n[_0x5c658c(0x173)])[_0x5c658c(0xf9)]({'subUnitId':_0x1e9c6a,'unitId':_0x1e9c6a}))==null?void 0x0:_0x57a419[0x0];}function xe(_0x44f283,_0xfb75ce,_0x5a87e7){const _0x50084b=_0x4136c9;if((_0x44f283==null?void 0x0:_0x44f283['type'])===_0x50084b(0x1ee)){var _0x1df23a;let _0xa17099=((_0x1df23a=_0xfb75ce[_0x50084b(0x191)])==null?void 0x0:_0x1df23a[_0x50084b(0x1e1)](_0x349a75=>_0x349a75['paragraphId']===_0x44f283[_0x50084b(0x17f)]))??[];if(_0xa17099[_0x50084b(0x13a)]!==0x1)return null;let _0x1735a4=_0xa17099[0x0],_0x4fa515=(0x0,t[_0x50084b(0x1f0)])(_0xfb75ce,_0x1735a4),_0x578f23=_0x1735a4['startIndex']-_0x4fa515,_0x3e9e19=_0x44f283[_0x50084b(0x16a)]===_0x50084b(0x147)?_0x578f23:_0x44f283[_0x50084b(0x16a)];if(!Number['isInteger'](_0x3e9e19)||_0x3e9e19<0x0||_0x3e9e19>_0x578f23)return null;let _0x95e009=_0x4fa515+_0x3e9e19;return{'startOffset':_0x95e009,'endOffset':_0x95e009};}if((_0x44f283==null?void 0x0:_0x44f283['type'])===_0x50084b(0x125))return!Number[_0x50084b(0x167)](_0x44f283[_0x50084b(0x16f)])||!Number['isInteger'](_0x44f283[_0x50084b(0x22e)])?null:{'startOffset':Math[_0x50084b(0x1d4)](_0x44f283['startOffset'],_0x44f283[_0x50084b(0x22e)]),'endOffset':Math[_0x50084b(0x17c)](_0x44f283[_0x50084b(0x16f)],_0x44f283[_0x50084b(0x22e)])};let _0x497772=(_0x44f283==null?void 0x0:_0x44f283[_0x50084b(0x1ff)])===_0x50084b(0x1ba)?_0x44f283[_0x50084b(0x1ba)]:_0x5a87e7;return!_0x497772||_0x497772[_0x50084b(0x150)]?null:{'startOffset':Math[_0x50084b(0x1d4)](_0x497772[_0x50084b(0x16f)],_0x497772['endOffset']),'endOffset':Math[_0x50084b(0x17c)](_0x497772[_0x50084b(0x16f)],_0x497772[_0x50084b(0x22e)])};}function Se(_0x4f9074,_0x49b196,_0x3aeadb,_0x252683){const _0x4abcfc=_0x4136c9;let _0x45144a=_0x4f9074[_0x4abcfc(0xfc)](r[_0x4abcfc(0xfd)]),_0xa17bbe=_0x3aeadb[_0x4abcfc(0x1bf)]('=')?_0x3aeadb[_0x4abcfc(0x200)](0x1):_0x3aeadb,_0x1af408=_0x45144a['sequenceNodesBuilder'](_0xa17bbe);if(!_0x1af408)return null;let _0x3a2065=_0x4f9074[_0x4abcfc(0xfc)](e['HostExternalReferenceModel']),_0x3d4a61=(0x0,e[_0x4abcfc(0x19d)])({'qualifiers':(0x0,e['collectFormulaExternalReferenceQualifiers'])(_0x1af408),'explicitReferences':_0x252683??[],'resolveBinding':_0xf321ed=>_0x3a2065[_0x4abcfc(0x10c)](_0x49b196,_0xf321ed)});return _0x3d4a61[_0x4abcfc(0x1b4)]===_0x4abcfc(0x181)?_0x3d4a61[_0x4abcfc(0x19f)]:null;}function Ce(_0x9f8668,_0x489570,_0xaf196d){const _0x5bfb81=_0x4136c9;var _0xb90fef;let _0x57cf1f=(0x0,t[_0x5bfb81(0x1b5)])(0x6);for(;_0x9f8668!=null&&(_0xb90fef=_0x9f8668[_0x5bfb81(0x103)])!=null&&_0xb90fef['some'](_0x48dd82=>_0x48dd82[_0x5bfb81(0xf3)]===_0x57cf1f)||_0x489570[_0x5bfb81(0x1d5)](_0xaf196d,_0x57cf1f);)_0x57cf1f=(0x0,t['generateRandomId'])(0x6);return _0x57cf1f;}function we(_0x940fd4){try{return te(_0x940fd4);}catch(_0x35a542){if(_0x35a542 instanceof m)return null;throw _0x35a542;}}function Te(_0x32b8a8){const _0x4938c4=_0x4136c9;let _0x29e9fa=_0x32b8a8['previousDocumentData']&&_0x32b8a8[_0x4938c4(0x149)]?De(_0x32b8a8[_0x4938c4(0x1fb)],_0x32b8a8['unitId'],_0x32b8a8[_0x4938c4(0xf5)],_0x32b8a8[_0x4938c4(0x149)],_0x32b8a8[_0x4938c4(0x1b7)],_0x32b8a8[_0x4938c4(0x226)]):null;return _0x32b8a8[_0x4938c4(0xf5)]&&_0x32b8a8['nextDocumentData']&&!_0x29e9fa?null:{'documentRedo':_0x29e9fa,'resourceRedo':{'id':L['id'],'params':{'unitId':_0x32b8a8[_0x4938c4(0x15d)],'resource':_0x32b8a8[_0x4938c4(0x22b)]}},'resourceUndo':{'id':L['id'],'params':{'unitId':_0x32b8a8[_0x4938c4(0x15d)],'resource':_0x32b8a8[_0x4938c4(0x1c2)]}}};}function Ee(_0x2e2d18,_0x54164e,_0xfa144e,_0x19f9b7){const _0x20747=_0x4136c9;_0x19f9b7['pushUndoRedo']({'id':_0x2e2d18[_0x20747(0x226)]+':'+_0x2e2d18['rangeId'],'unitID':_0x2e2d18[_0x20747(0x15d)],'redoMutations':[..._0x2e2d18['externalMutations'][_0x20747(0x218)]?[_0x2e2d18['externalMutations']['redoMutation']]:[],..._0x54164e[_0x20747(0x151)]?[_0x54164e[_0x20747(0x151)]]:[],_0x54164e[_0x20747(0x16e)]],'undoMutations':[_0x54164e[_0x20747(0x1a2)],..._0xfa144e?[_0xfa144e]:[],..._0x2e2d18[_0x20747(0x114)][_0x20747(0x1f6)]?[_0x2e2d18[_0x20747(0x114)]['undoMutation']]:[]]});}function q(_0xce4ebf){const _0x4308ef=_0x4136c9;let _0xff7027=_0xce4ebf[_0x4308ef(0x1c6)]['get'](t[_0x4308ef(0x192)]),_0x7d8434=_0xce4ebf[_0x4308ef(0x1c6)][_0x4308ef(0xfc)](t[_0x4308ef(0x101)]),_0x22041e=_0xce4ebf[_0x4308ef(0x1c6)]['get'](n['DocSelectionManagerService']),_0x2262b0=Te(_0xce4ebf);if(!_0x2262b0)return!0x1;let _0x66684=!0x1,_0x46e40a=null,_0x5360a9=!0x1;try{if(_0xce4ebf['externalMutations'][_0x4308ef(0x218)]){if(!_0xff7027[_0x4308ef(0x1aa)](_0xce4ebf[_0x4308ef(0x114)][_0x4308ef(0x218)]['id'],_0xce4ebf['externalMutations'][_0x4308ef(0x218)][_0x4308ef(0x1be)]))return!0x1;_0x66684=!0x0;}if(_0x2262b0['documentRedo']){let _0x257469=_0xff7027[_0x4308ef(0x1aa)](_0x2262b0['documentRedo']['id'],_0x2262b0['documentRedo'][_0x4308ef(0x1be)]);if(!_0x257469)return J(_0xff7027,_0xce4ebf[_0x4308ef(0x114)],_0x66684),!0x1;_0x46e40a={'id':n['RichTextEditingMutation']['id'],'params':{..._0x257469,'noHistory':!0x0,'noNeedSetTextRange':!0x0,'segmentId':''}};}if(!_0xff7027[_0x4308ef(0x1aa)](_0x2262b0[_0x4308ef(0x16e)]['id'],_0x2262b0[_0x4308ef(0x16e)][_0x4308ef(0x1be)]))return Oe(_0xff7027,_0x46e40a),J(_0xff7027,_0xce4ebf[_0x4308ef(0x114)],_0x66684),!0x1;_0x5360a9=!0x0,Ee(_0xce4ebf,_0x2262b0,_0x46e40a,_0x7d8434);}catch(_0x210e00){throw _0x5360a9&&_0xff7027[_0x4308ef(0x1aa)](_0x2262b0[_0x4308ef(0x1a2)]['id'],_0x2262b0[_0x4308ef(0x1a2)][_0x4308ef(0x1be)]),Oe(_0xff7027,_0x46e40a),J(_0xff7027,_0xce4ebf[_0x4308ef(0x114)],_0x66684),_0x210e00;}return _0x22041e[_0x4308ef(0x1c4)]([{'startOffset':_0xce4ebf['cursorOffset'],'endOffset':_0xce4ebf['cursorOffset'],'segmentId':''}],{'unitId':_0xce4ebf[_0x4308ef(0x15d)],'subUnitId':_0xce4ebf[_0x4308ef(0x15d)]},!0x1,{[n[_0x4308ef(0x1de)]]:!0x0}),!0x0;}function De(_0x321e03,_0x32b96d,_0x5cd652,_0x348d18,_0x140365,_0x1fd783){const _0x5c8f30=_0x4136c9;let _0x4ef001=ke(_0x5cd652,_0x348d18,(0x0,t[_0x5c8f30(0x11b)])(_0x321e03,''));return _0x4ef001?{'id':n[_0x5c8f30(0x1ec)]['id'],'params':{'unitId':_0x32b96d,'actions':_0x4ef001,'segmentId':'','textRanges':[{'startOffset':_0x140365,'endOffset':_0x140365,'collapsed':!0x0,'segmentId':''}],'isEditing':!0x1,'noHistory':!0x0,'noNeedSetTextRange':!0x0,'trigger':_0x1fd783}}:null;}function Oe(_0x3e6a9d,_0x107345){const _0x3865ff=_0x4136c9;_0x107345&&_0x3e6a9d[_0x3865ff(0x1aa)](_0x107345['id'],_0x107345[_0x3865ff(0x1be)]);}function J(_0x584c4a,_0x56bb66,_0x4e3c6f){const _0x3cbca1=_0x4136c9;_0x4e3c6f&&_0x56bb66[_0x3cbca1(0x1f6)]&&_0x584c4a[_0x3cbca1(0x1aa)](_0x56bb66[_0x3cbca1(0x1f6)]['id'],_0x56bb66[_0x3cbca1(0x1f6)]['params']);}function ke(_0xb2dea5,_0x284eba,_0x1f8932){const _0x2f21b9=_0x4136c9;let _0x46e83f=_0xb2dea5['body'],_0x51df84=_0x284eba[_0x2f21b9(0x1f5)],_0x58a87f=Ae(_0x46e83f==null?void 0x0:_0x46e83f[_0x2f21b9(0xf0)],_0x51df84==null?void 0x0:_0x51df84[_0x2f21b9(0xf0)]);if(!_0x58a87f||!_0x51df84)return null;let _0x5adb7c=new t['TextX']();return _0x5adb7c[_0x2f21b9(0x1a4)](_0x58a87f[_0x2f21b9(0x186)]),_0x58a87f[_0x2f21b9(0x22f)]>0x0&&_0x5adb7c[_0x2f21b9(0x179)](_0x58a87f[_0x2f21b9(0x22f)],(0x0,t['getBodySliceForTextXAction'])(_0x51df84,_0x58a87f[_0x2f21b9(0x186)],_0x58a87f[_0x2f21b9(0x186)]+_0x58a87f['insertLength'],!0x1)),_0x58a87f[_0x2f21b9(0x1c9)]>0x0&&_0x5adb7c['delete'](_0x58a87f[_0x2f21b9(0x1c9)]),t[_0x2f21b9(0x153)]['getInstance']()['editOp'](_0x5adb7c[_0x2f21b9(0x206)](),_0x1f8932);}function Ae(_0x2780b6,_0x312fd3){const _0x2675a3=_0x4136c9;if(_0x2780b6==null||_0x312fd3==null||_0x2780b6===_0x312fd3)return null;let _0x40eb16=0x0;for(;_0x40eb16<_0x2780b6[_0x2675a3(0x13a)]&&_0x40eb16<_0x312fd3[_0x2675a3(0x13a)]&&_0x2780b6[_0x40eb16]===_0x312fd3[_0x40eb16];)_0x40eb16+=0x1;let _0x1a2f15=_0x2780b6[_0x2675a3(0x13a)],_0x513fd8=_0x312fd3[_0x2675a3(0x13a)];for(;_0x1a2f15>_0x40eb16&&_0x513fd8>_0x40eb16&&_0x2780b6[_0x1a2f15-0x1]===_0x312fd3[_0x513fd8-0x1];)--_0x1a2f15,--_0x513fd8;return{'start':_0x40eb16,'deleteLength':_0x1a2f15-_0x40eb16,'insertLength':_0x513fd8-_0x40eb16};}function je(_0x161713){const _0x26904f=_0x4136c9;return{'schemaVersion':0x1,'formulas':Object[_0x26904f(0x209)](Object[_0x26904f(0x176)](_0x161713[_0x26904f(0x1e2)])[_0x26904f(0x166)](([_0x2686a6,_0x414fff])=>[_0x2686a6,{..._0x414fff,..._0x414fff[_0x26904f(0x20b)]?{'numberFormat':{..._0x414fff[_0x26904f(0x20b)]}}:null,..._0x414fff['lastValue']?{'lastValue':{..._0x414fff[_0x26904f(0x145)]}}:null}]))};}let Y=class extends t['Disposable']{constructor(_0x3df394,_0x16d376,_0x537328,_0x34aee8){const _0x1c2cf5=_0x4136c9;super(),this[_0x1c2cf5(0x19a)]=_0x3df394,this[_0x1c2cf5(0x1e5)]=_0x16d376,this[_0x1c2cf5(0xf2)]=_0x537328,this[_0x1c2cf5(0x202)]=_0x34aee8,D(this,_0x1c2cf5(0x1a5),new Set()),D(this,'_syncScheduled',!0x1),D(this,_0x1c2cf5(0x133),!0x1),this[_0x1c2cf5(0x19a)]['getAllUnitsForType'](t[_0x1c2cf5(0x110)][_0x1c2cf5(0x163)])[_0x1c2cf5(0x1a1)](_0x44d67a=>this[_0x1c2cf5(0x202)][_0x1c2cf5(0xf4)](_0x44d67a)),this[_0x1c2cf5(0x1bb)](this[_0x1c2cf5(0xf2)][_0x1c2cf5(0x12a)][_0x1c2cf5(0x21a)](({unitId:_0x50b220})=>this[_0x1c2cf5(0x14e)](_0x50b220))),this['disposeWithMe'](this[_0x1c2cf5(0x19a)]['unitAdded$'][_0x1c2cf5(0x21a)](({unit:_0x43a644})=>{const _0x559b2b=_0x1c2cf5;_0x43a644['type']===t[_0x559b2b(0x110)][_0x559b2b(0x163)]&&this[_0x559b2b(0x1a0)](_0x43a644['getUnitId']());})),this[_0x1c2cf5(0x1bb)](this[_0x1c2cf5(0x19a)][_0x1c2cf5(0x17e)]['subscribe'](_0x58c6aa=>{const _0x1c77e7=_0x1c2cf5;this[_0x1c77e7(0x202)][_0x1c77e7(0x219)](_0x58c6aa[_0x1c77e7(0x14c)]());})),this[_0x1c2cf5(0x1bb)](this[_0x1c2cf5(0x1e5)][_0x1c2cf5(0x1ce)](_0x14a8c1=>{const _0x2ce598=_0x1c2cf5;if(_0x14a8c1['id']===n['RichTextEditingMutation']['id']&&Me(_0x14a8c1[_0x2ce598(0x1be)])){let _0x241738=_0x14a8c1[_0x2ce598(0x1be)];_0x241738[_0x2ce598(0x150)]||this[_0x2ce598(0x14e)](_0x241738['unitId']);}}));}[_0x4136c9(0x1fc)](){const _0x5c2a17=_0x4136c9;this['_isDisposed']=!0x0,super[_0x5c2a17(0x1fc)]();}[_0x4136c9(0x1a0)](_0x2d1038){const _0x238633=_0x4136c9;this[_0x238633(0x1a5)][_0x238633(0x10b)](_0x2d1038),!this[_0x238633(0x198)]&&(this[_0x238633(0x198)]=!0x0,queueMicrotask(()=>{const _0x461301=_0x238633;if(this[_0x461301(0x198)]=!0x1,this['_isDisposed'])return;let _0x5770b2=Array[_0x461301(0x21b)](this[_0x461301(0x1a5)]);this['_pendingUnitIds'][_0x461301(0x213)](),_0x5770b2[_0x461301(0x1a1)](_0x2aef85=>this['_syncUnit'](_0x2aef85));}));}[_0x4136c9(0x14e)](_0x1f16e5){const _0x4e9d3f=_0x4136c9;let _0x4f6b43=this[_0x4e9d3f(0x19a)][_0x4e9d3f(0x16b)](_0x1f16e5,t['UniverInstanceType'][_0x4e9d3f(0x163)]);_0x4f6b43&&this[_0x4e9d3f(0x202)][_0x4e9d3f(0xf4)](_0x4f6b43);}};Y=A([k(0x0,t['IUniverInstanceService']),k(0x1,t[_0x4136c9(0x192)]),k(0x2,(0x0,t[_0x4136c9(0x172)])(O)),k(0x3,(0x0,t[_0x4136c9(0x172)])(j))],Y);function Me(_0x32d9cb){const _0x1355ed=_0x4136c9;return typeof _0x32d9cb==_0x1355ed(0x217)&&!!_0x32d9cb&&_0x1355ed(0x15d)in _0x32d9cb&&typeof _0x32d9cb[_0x1355ed(0x15d)]==_0x1355ed(0x122)&&(!(_0x1355ed(0x150)in _0x32d9cb)||_0x32d9cb[_0x1355ed(0x150)]===void 0x0||typeof _0x32d9cb[_0x1355ed(0x150)]==_0x1355ed(0x122));}let X=class extends t[_0x4136c9(0x208)]{constructor(_0x192be5,_0x33c170){const _0xf190e4=_0x4136c9;super(),this[_0xf190e4(0x189)]=_0x192be5,this['_docFormulaModel']=_0x33c170,this[_0xf190e4(0x1bb)](this[_0xf190e4(0x189)][_0xf190e4(0x1a6)]({'pluginName':o,'businesses':[t[_0xf190e4(0x110)][_0xf190e4(0x163)]],'toJson':_0x57c662=>JSON['stringify'](this[_0xf190e4(0x1cc)][_0xf190e4(0x206)](_0x57c662)),'parseJson':_0x36a906=>JSON[_0xf190e4(0x21d)](_0x36a906),'onLoad':(_0x45d560,_0x26328b)=>{const _0xb9c2a0=_0xf190e4;this[_0xb9c2a0(0x1cc)]['load'](_0x45d560,_0x26328b);},'onUnLoad':_0x34ffde=>this[_0xf190e4(0x1cc)]['removeUnit'](_0x34ffde)}));}};X=A([k(0x0,t['IResourceManagerService']),k(0x1,(0x0,t[_0x4136c9(0x172)])(O))],X);var Ne='@univerjs-pro/docs-formula',Pe=_0x4136c9(0x14f);const Fe={};let Z=class extends t[_0x4136c9(0x208)]{constructor(_0x103a66,_0x21ab71,_0x49291f){const _0x29b623=_0x4136c9;super(),this[_0x29b623(0x1e9)]=_0x103a66,this['_formulaService']=_0x21ab71,this[_0x29b623(0x1bb)](_0x49291f[_0x29b623(0x1b1)]({'resolve':(_0x3f7cd8,_0x21e500)=>{const _0x434c9f=_0x29b623;var _0x112eb6;return((_0x112eb6=_0x21e500[_0x434c9f(0x103)])==null?void 0x0:_0x112eb6['filter'](g)[_0x434c9f(0x166)](_0x5d904c=>({'startOffset':_0x5d904c[_0x434c9f(0x1fe)],'endOffset':_0x5d904c['endIndex']+0x1,'text':this['resolveFormula'](_0x3f7cd8,_0x5d904c[_0x434c9f(0xf3)])})))??[];}})),this[_0x29b623(0x1bb)](this[_0x29b623(0x1b3)][_0x29b623(0x1da)][_0x29b623(0x21a)](({unitId:_0x2b8fd7})=>{const _0x2927df=_0x29b623;_0x49291f[_0x2927df(0x165)](_0x2b8fd7);}));}[_0x4136c9(0x1ea)](_0x3b2fb5,_0xeab22f){const _0x1f8efd=_0x4136c9;var _0x71aefd;return((_0x71aefd=this[_0x1f8efd(0x1b3)][_0x1f8efd(0x18b)]({'unitId':_0x3b2fb5,'rangeId':_0xeab22f}))==null?void 0x0:_0x71aefd[_0x1f8efd(0x137)])??'';}[_0x4136c9(0x16d)](_0x19cd77,_0x2ca7d2,_0xfa185b){const _0x29e26b=_0x4136c9;var _0x19d577;let _0x6f54b3=this['_univerInstanceService'][_0x29e26b(0x16b)](_0x19cd77,t[_0x29e26b(0x110)][_0x29e26b(0x163)]),_0x124251=_0x6f54b3==null?void 0x0:_0x6f54b3[_0x29e26b(0x11a)]();if(!_0x124251)return'';let _0x16d5f4=_0x124251['dataStream'][_0x29e26b(0x200)](_0x2ca7d2,_0xfa185b),_0x3143bb=((_0x19d577=_0x124251[_0x29e26b(0x103)])==null?void 0x0:_0x19d577[_0x29e26b(0x1e1)](_0x44bf06=>g(_0x44bf06)&&_0x44bf06[_0x29e26b(0x1fe)]>=_0x2ca7d2&&_0x44bf06[_0x29e26b(0x20f)]<_0xfa185b)[_0x29e26b(0x1e4)]((_0x4f9b94,_0x3a9025)=>_0x3a9025[_0x29e26b(0x1fe)]-_0x4f9b94[_0x29e26b(0x1fe)]))??[];for(let _0x53113a of _0x3143bb){let _0x47a57b=_0x53113a[_0x29e26b(0x1fe)]-_0x2ca7d2,_0x107300=_0x53113a['endIndex']-_0x2ca7d2+0x1;_0x16d5f4=''+_0x16d5f4[_0x29e26b(0x200)](0x0,_0x47a57b)+this[_0x29e26b(0x1ea)](_0x19cd77,_0x53113a[_0x29e26b(0xf3)])+_0x16d5f4[_0x29e26b(0x200)](_0x107300);}return _0x16d5f4;}[_0x4136c9(0xfa)](_0x382dba){return Ie(_0x382dba);}[_0x4136c9(0x107)](_0x1077fa,_0x3f8a67,_0x523294={}){const _0x2f9798=_0x4136c9;var _0x1eb81b;return re({'id':_0x1077fa,'body':_0x3f8a67,'documentStyle':{}},(((_0x1eb81b=_0x3f8a67['customRanges'])==null?void 0x0:_0x1eb81b[_0x2f9798(0x1e1)](g))??[])['map'](_0x1adec7=>({'rangeId':_0x1adec7['rangeId'],'text':_0x523294[_0x1adec7[_0x2f9798(0xf3)]]??this[_0x2f9798(0x1ea)](_0x1077fa,_0x1adec7[_0x2f9798(0xf3)])})))[_0x2f9798(0x1f5)]??{'dataStream':''};}};Z=A([k(0x0,t[_0x4136c9(0x144)]),k(0x1,(0x0,t[_0x4136c9(0x172)])(j)),k(0x2,(0x0,t['Inject'])(n[_0x4136c9(0x216)]))],Z);function Ie(_0x7c15ae){const _0x6ad3e2=_0x4136c9;var _0x3ccb43,_0x55ef02;let _0x5df77d=Le(_0x7c15ae),_0xefeb35=re(_0x7c15ae,(((_0x3ccb43=_0x7c15ae[_0x6ad3e2(0x1f5)])==null||(_0x3ccb43=_0x3ccb43['customRanges'])==null?void 0x0:_0x3ccb43['filter'](g))??[])[_0x6ad3e2(0x166)](_0x16326c=>({'rangeId':_0x16326c['rangeId'],'text':Re(_0x5df77d==null?void 0x0:_0x5df77d[_0x6ad3e2(0x1e2)][_0x16326c[_0x6ad3e2(0xf3)]])})));return _0xefeb35[_0x6ad3e2(0x1d2)]=(_0x55ef02=_0xefeb35['resources'])==null?void 0x0:_0x55ef02[_0x6ad3e2(0x1e1)](_0x39bfda=>_0x39bfda['name']!==o),_0xefeb35;}function Le(_0x28b1d1){const _0x3e9459=_0x4136c9;var _0x3fe929;let _0xd5029f=(_0x3fe929=_0x28b1d1[_0x3e9459(0x1d2)])==null||(_0x3fe929=_0x3fe929[_0x3e9459(0x124)](_0x44ab29=>_0x44ab29[_0x3e9459(0x1c8)]===_0x3e9459(0x116)))==null?void 0x0:_0x3fe929[_0x3e9459(0x1dd)];if(_0xd5029f)try{let _0x4af4a7=JSON[_0x3e9459(0x21d)](_0xd5029f);return l(_0x4af4a7)?_0x4af4a7:void 0x0;}catch{return;}}function Re(_0x2494fb){const _0xa07cb3=_0x4136c9;return _0x2494fb?(0x0,e[_0xa07cb3(0x10e)])({'lastValue':_0x2494fb[_0xa07cb3(0x145)],'numberFormat':_0x2494fb[_0xa07cb3(0x20b)]})[_0xa07cb3(0x137)]:'';}let Q=class extends t['Disposable']{constructor(_0x4cb7d4,_0x5a799f,_0x4355de){const _0x120a06=_0x4136c9;super(),this[_0x120a06(0x1b3)]=_0x4cb7d4,this[_0x120a06(0x11c)]=_0x5a799f,this[_0x120a06(0x1bb)](_0x4355de[_0x120a06(0x1c5)](this));}['collectMutations'](_0x40ce32){const _0x564847=_0x4136c9;let _0x272cbc=new Map();for(let _0x29296f of this['_formulaService'][_0x564847(0x210)]()){var _0x2215b0;if(!this[_0x564847(0x11c)][_0x564847(0x19c)](_0x29296f['config'][_0x564847(0x220)],_0x29296f[_0x564847(0xfe)])[_0x564847(0x1d8)])continue;let _0xf492ec=(0x0,e[_0x564847(0x21f)])(_0x29296f[_0x564847(0xfe)]),_0x32e529=_0xf492ec?(0x0,e[_0x564847(0x177)])(_0xf492ec):null;if(!_0x32e529||ze(_0x29296f[_0x564847(0x1ab)][_0x564847(0x145)],_0x32e529))continue;let _0x5866d6=_0x272cbc[_0x564847(0xfc)](_0x29296f[_0x564847(0x1e3)][_0x564847(0x15d)])??[];_0x5866d6[_0x564847(0x18c)]({'rangeId':_0x29296f[_0x564847(0x1e3)][_0x564847(0xf3)],'expectedFormula':_0x29296f[_0x564847(0x1ab)][_0x564847(0x220)],'expectedNumberFormat':(_0x2215b0=_0x29296f[_0x564847(0x1ab)][_0x564847(0x20b)])==null?void 0x0:_0x2215b0['pattern'],'expectedReferenceRevision':_0x29296f['referenceRevision'],'lastValue':_0x32e529}),_0x272cbc[_0x564847(0x1d0)](_0x29296f[_0x564847(0x1e3)][_0x564847(0x15d)],_0x5866d6);}return Array[_0x564847(0x21b)](_0x272cbc,([_0x26fd66,_0x47d124])=>({'id':R['id'],'params':{'unitId':_0x26fd66,'updates':_0x47d124}}));}};Q=A([k(0x0,(0x0,t[_0x4136c9(0x172)])(j)),k(0x1,(0x0,t[_0x4136c9(0x172)])(e[_0x4136c9(0x1a3)])),k(0x2,(0x0,t[_0x4136c9(0x172)])(e['FormulaLastValuePersistenceService']))],Q);function ze(_0x480a9e,_0x85b674){const _0x46ee50=_0x4136c9;return(_0x480a9e==null?void 0x0:_0x480a9e['v'])===_0x85b674['v']&&(_0x480a9e==null?void 0x0:_0x480a9e['t'])===_0x85b674['t']&&(_0x480a9e==null?void 0x0:_0x480a9e[_0x46ee50(0x168)])===_0x85b674[_0x46ee50(0x168)];}let $=class extends t[_0x4136c9(0x185)]{constructor(_0x35655f=Fe,_0x59b549,_0x41fc24,_0x40e3c8){const _0x26f9ae=_0x4136c9;super(),this['_config']=_0x35655f,this[_0x26f9ae(0x131)]=_0x59b549,this['_commandService']=_0x41fc24,this[_0x26f9ae(0x159)]=_0x40e3c8;let {..._0x1e8557}=(0x0,t[_0x26f9ae(0x160)])({},Fe,this['_config']);this[_0x26f9ae(0x159)]['setConfig'](_0x26f9ae(0x1f2),_0x1e8557);}['onStarting'](){const _0x4fccd0=_0x4136c9;this[_0x4fccd0(0x131)]['add']([O]),this[_0x4fccd0(0x131)]['add']([j]),this[_0x4fccd0(0x131)][_0x4fccd0(0x10b)]([X]),this[_0x4fccd0(0x131)][_0x4fccd0(0x10b)]([Y]),this[_0x4fccd0(0x131)][_0x4fccd0(0x10b)]([Q]),this['_injector'][_0x4fccd0(0x10b)]([Z]),(0x0,t[_0x4fccd0(0x1f1)])(this[_0x4fccd0(0x131)],[[O],[X],[Y],[Q],[Z]]),[F,I,L,R,z,B,V,H,U,W]['forEach'](_0x18aecb=>this['disposeWithMe'](this[_0x4fccd0(0x1e5)]['registerCommand'](_0x18aecb)));}};D($,_0x4136c9(0x1f3),o),D($,_0x4136c9(0x1ac),Ne),D($,_0x4136c9(0x141),Pe),D($,'type',t[_0x4136c9(0x110)][_0x4136c9(0x163)]),$=A([(0x0,t[_0x4136c9(0x223)])(a[_0x4136c9(0x224)],e[_0x4136c9(0x1df)],n[_0x4136c9(0x108)]),k(0x1,(0x0,t[_0x4136c9(0x172)])(t['Injector'])),k(0x2,t[_0x4136c9(0x192)]),k(0x3,t['IConfigService'])],$),exports[_0x4136c9(0x1ed)]=W,exports[_0x4136c9(0x1ae)]=s,exports['DOC_FORMULA_OBJECT_REPLACEMENT']='',exports[_0x4136c9(0x116)]=o,exports['DOC_FORMULA_SCHEMA_VERSION']=0x1,Object['defineProperty'](exports,_0x4136c9(0x14b),{'enumerable':!0x0,'get':function(){return Z;}}),Object[_0x4136c9(0x211)](exports,_0x4136c9(0x174),{'enumerable':!0x0,'get':function(){return Y;}}),exports['DocFormulaModel']=O,Object[_0x4136c9(0x211)](exports,'DocFormulaResourceController',{'enumerable':!0x0,'get':function(){return X;}}),exports[_0x4136c9(0x190)]=ve,Object[_0x4136c9(0x211)](exports,_0x4136c9(0x115),{'enumerable':!0x0,'get':function(){return j;}}),exports[_0x4136c9(0x18f)]=z,exports[_0x4136c9(0x128)]=m,exports[_0x4136c9(0x10d)]=H,exports['RemoveDocFormulaMutation']=I,exports[_0x4136c9(0x1f7)]=U,exports[_0x4136c9(0x154)]=R,exports[_0x4136c9(0x22a)]=F,exports[_0x4136c9(0x1f4)]=V,exports[_0x4136c9(0x1e8)]=L,Object[_0x4136c9(0x211)](exports,_0x4136c9(0x17d),{'enumerable':!0x0,'get':function(){return $;}}),exports[_0x4136c9(0x155)]=B,exports[_0x4136c9(0xf1)]=ie,exports[_0x4136c9(0x152)]=te,exports['buildRemoveDocFormulaActions']=h,exports[_0x4136c9(0x201)]=ne,exports[_0x4136c9(0x1cb)]=c,exports[_0x4136c9(0x229)]=Ie,exports[_0x4136c9(0x18e)]=_,exports['isDocFormulaConfig']=u,exports['isDocFormulaRange']=g,exports[_0x4136c9(0x16c)]=l,exports[_0x4136c9(0x11e)]=d;
|
package/lib/es/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var _0x43e278=_0x32db;(function(_0x4072a8,_0x5c7423){var _0x27c94b=_0x32db,_0x12e726=_0x4072a8();while(!![]){try{var _0x534714=parseInt(_0x27c94b(0x17a))/0x1*(parseInt(_0x27c94b(0x190))/0x2)+parseInt(_0x27c94b(0x188))/0x3+parseInt(_0x27c94b(0x1ae))/0x4+-parseInt(_0x27c94b(0x1a4))/0x5+-parseInt(_0x27c94b(0x163))/0x6*(parseInt(_0x27c94b(0x195))/0x7)+parseInt(_0x27c94b(0x17d))/0x8+-parseInt(_0x27c94b(0x17c))/0x9*(parseInt(_0x27c94b(0x1a7))/0xa);if(_0x534714===_0x5c7423)break;else _0x12e726['push'](_0x12e726['shift']());}catch(_0x2ecb5e){_0x12e726['push'](_0x12e726['shift']());}}}(_0x5b6c,0x838c4));import{ConvertDocFormulaToTextCommand as _0x334f28,DocFormulaDisplayTextService as _0x29119a,DocFormulaModel as _0x352050,DocFormulaService as _0x285cca,InsertDocFormulaCommand as _0x4cef27,RemoveDocFormulaCommand as _0x280b1f,ReplaceDocFormulaWithTextCommand as _0x223a60,SetDocFormulaNumberFormatCommand as _0x1bb1a3,UpdateDocFormulaCommand as _0x236518,isDocFormulaRange as _0x3eb00d}from'@univerjs-pro/docs-formula';import{ICommandService as _0x5a6335,IResourceLoaderService as _0x2e4e88,IUniverInstanceService as _0x2b5182,Inject as _0x44bf6b,UniverInstanceType as _0x32ec54}from'@univerjs/core';import{FDocument as _0x9be5d2,FDocumentParagraph as _0x5f3dce,FDocumentTextRange as _0x2f9447}from'@univerjs/docs/facade';function v(_0x59e430,_0x3bde68){return function(_0x3f63d8,_0x358c97){_0x3bde68(_0x3f63d8,_0x358c97,_0x59e430);};}function y(_0x272e2f,_0x1f8d57,_0x23c313,_0x2d66e8){var _0x18fc56=_0x32db,_0x4396e9=arguments['length'],_0x3932e4=_0x4396e9<0x3?_0x1f8d57:_0x2d66e8===null?_0x2d66e8=Object['getOwnPropertyDescriptor'](_0x1f8d57,_0x23c313):_0x2d66e8,_0x4167fb;if(typeof Reflect==_0x18fc56(0x189)&&typeof Reflect[_0x18fc56(0x187)]==_0x18fc56(0x173))_0x3932e4=Reflect['decorate'](_0x272e2f,_0x1f8d57,_0x23c313,_0x2d66e8);else{for(var _0x2a2988=_0x272e2f[_0x18fc56(0x1a8)]-0x1;_0x2a2988>=0x0;_0x2a2988--)(_0x4167fb=_0x272e2f[_0x2a2988])&&(_0x3932e4=(_0x4396e9<0x3?_0x4167fb(_0x3932e4):_0x4396e9>0x3?_0x4167fb(_0x1f8d57,_0x23c313,_0x3932e4):_0x4167fb(_0x1f8d57,_0x23c313))||_0x3932e4);}return _0x4396e9>0x3&&_0x3932e4&&Object[_0x18fc56(0x1aa)](_0x1f8d57,_0x23c313,_0x3932e4),_0x3932e4;}let b=class{constructor(_0x42c7b3,_0x328197,_0x1bebed,_0x51aa71,_0x52a086,_0x111919){var _0x4483c6=_0x32db;this['_unitId']=_0x42c7b3,this[_0x4483c6(0x17b)]=_0x328197,this[_0x4483c6(0x184)]=_0x1bebed,this[_0x4483c6(0x167)]=_0x51aa71,this[_0x4483c6(0x174)]=_0x52a086,this[_0x4483c6(0x170)]=_0x111919;}[_0x43e278(0x176)](){var _0x29b724=_0x43e278;return this[_0x29b724(0x17b)];}[_0x43e278(0x171)](){var _0x495dcd=_0x43e278;let _0x52a55f=this[_0x495dcd(0x181)]();return _0x52a55f?{'endOffset':_0x52a55f[_0x495dcd(0x172)]+0x1,'rangeId':_0x52a55f['rangeId'],'startOffset':_0x52a55f[_0x495dcd(0x192)]}:null;}[_0x43e278(0x19d)](){var _0x5cfe4b=_0x43e278,_0x1a3291;return((_0x1a3291=this[_0x5cfe4b(0x167)][_0x5cfe4b(0x19d)](this['_unitId'],this['_rangeId']))==null?void 0x0:_0x1a3291[_0x5cfe4b(0x16e)])??'';}[_0x43e278(0x18f)](){var _0x3e6f95=_0x43e278;return this[_0x3e6f95(0x167)]['getFormula'](this[_0x3e6f95(0x168)],this[_0x3e6f95(0x17b)])??null;}['getResult'](){var _0x529f13=_0x43e278;return this[_0x529f13(0x174)][_0x529f13(0x16b)]({'unitId':this[_0x529f13(0x168)],'rangeId':this[_0x529f13(0x17b)]})??null;}[_0x43e278(0x164)](){var _0xfc804e=_0x43e278;let _0x49caf7=this[_0xfc804e(0x171)](),_0x162171=this['getConfig'](),_0x386d07=this[_0xfc804e(0x16b)]();return!_0x49caf7||!_0x162171||!_0x386d07?null:{..._0x49caf7,'config':_0x162171,'formula':_0x162171[_0xfc804e(0x16e)],'result':_0x386d07,'type':_0xfc804e(0x16e)};}['update'](_0x2a59f4){var _0x2547de=_0x43e278;return this[_0x2547de(0x184)]['syncExecuteCommand'](_0x236518['id'],{'externalReferences':_0x2a59f4[_0x2547de(0x1a3)],'formula':_0x2a59f4['formula'],'numberFormat':_0x2a59f4[_0x2547de(0x1a1)],'rangeId':this[_0x2547de(0x17b)],'unitId':this[_0x2547de(0x168)]});}['setNumberFormat'](_0x38fb22){var _0x472b87=_0x43e278;return this[_0x472b87(0x184)][_0x472b87(0x1b0)](_0x1bb1a3['id'],{'numberFormat':_0x38fb22,'rangeId':this[_0x472b87(0x17b)],'unitId':this[_0x472b87(0x168)]});}[_0x43e278(0x19a)](){var _0x3e8fca=_0x43e278;return this['_commandService'][_0x3e8fca(0x1b0)](_0x280b1f['id'],{'rangeId':this[_0x3e8fca(0x17b)],'unitId':this[_0x3e8fca(0x168)]});}[_0x43e278(0x1a2)](_0x1e6e89){var _0x4b3cbb=_0x43e278;return this[_0x4b3cbb(0x184)][_0x4b3cbb(0x1b0)](_0x223a60['id'],{'rangeId':this[_0x4b3cbb(0x17b)],'text':_0x1e6e89,'unitId':this[_0x4b3cbb(0x168)]});}['convertToText'](){var _0xc6920c=_0x43e278;return this[_0xc6920c(0x184)][_0xc6920c(0x1b0)](_0x334f28['id'],{'rangeId':this[_0xc6920c(0x17b)],'unitId':this[_0xc6920c(0x168)]});}[_0x43e278(0x181)](){var _0x2c44b8=_0x43e278,_0x451a14;let _0x5addea=this[_0x2c44b8(0x170)][_0x2c44b8(0x1ad)](this[_0x2c44b8(0x168)],_0x32ec54['UNIVER_DOC']);return _0x5addea==null||(_0x451a14=_0x5addea[_0x2c44b8(0x1b2)]()[_0x2c44b8(0x1a5)])==null||(_0x451a14=_0x451a14[_0x2c44b8(0x1ac)])==null?void 0x0:_0x451a14[_0x2c44b8(0x169)](_0x2660b7=>_0x2660b7[_0x2c44b8(0x19c)]===this[_0x2c44b8(0x17b)]&&_0x3eb00d(_0x2660b7));}};function _0x5b6c(){var _0x514806=['_docsFormulaCommandService','rangeId','getFormula','getSegmentId','_createFormula','filter','numberFormat','replaceWithText','externalReferences','2744600LNFOqv','body','some','10Mtykqb','length','getBody','defineProperty','range','customRanges','getUnit','2215532KmTEWU','paragraph','syncExecuteCommand','getFormulaAt','getSnapshot','12NCNdzi','describe','getFormulas','_document','_model','_unitId','find','_docsFormulaModel','getResult','map','end','formula','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','_univerInstanceService','getRange','endIndex','function','_service','prototype','getId','extend','iterator','createInstance','107957IviErs','_rangeId','5639661qyREGU','3415512HxqlnD','toPrimitive','_docsFormulaResourceLoaderService','saveFormulaDisplayTextSnapshot','_getCustomRange','_injector','symbol','_commandService','_insert','startOffset','decorate','2280900KsIlUA','object','default','_docsFormulaDisplayTextService','_initialize','_getCompleteRanges','saveUnit','getConfig','18gdoxcU','insertFormula','startIndex','degradeDocumentData','call','3494281LsAVKu','endOffset','replaceWithFormula','constructor','get','remove'];_0x5b6c=function(){return _0x514806;};return _0x5b6c();}function _0x32db(_0x4eefbf,_0x4bb507){_0x4eefbf=_0x4eefbf-0x163;var _0x5b6cd3=_0x5b6c();var _0x32db03=_0x5b6cd3[_0x4eefbf];return _0x32db03;}b=y([v(0x2,_0x5a6335),v(0x3,_0x44bf6b(_0x352050)),v(0x4,_0x44bf6b(_0x285cca)),v(0x5,_0x2b5182)],b);function x(_0x1a9e30){'@babel/helpers - typeof';var _0x43fa81=_0x43e278;return x=typeof Symbol=='function'&&typeof Symbol[_0x43fa81(0x178)]=='symbol'?function(_0xd2b72d){return typeof _0xd2b72d;}:function(_0x22386d){var _0x34819d=_0x43fa81;return _0x22386d&&typeof Symbol=='function'&&_0x22386d[_0x34819d(0x198)]===Symbol&&_0x22386d!==Symbol[_0x34819d(0x175)]?_0x34819d(0x183):typeof _0x22386d;},x(_0x1a9e30);}function S(_0x1e1b67,_0x322107){var _0x4c02a9=_0x43e278;if(x(_0x1e1b67)!=_0x4c02a9(0x189)||!_0x1e1b67)return _0x1e1b67;var _0xc425a1=_0x1e1b67[Symbol[_0x4c02a9(0x17e)]];if(_0xc425a1!==void 0x0){var _0x134350=_0xc425a1[_0x4c02a9(0x194)](_0x1e1b67,_0x322107||_0x4c02a9(0x18a));if(x(_0x134350)!=_0x4c02a9(0x189))return _0x134350;throw TypeError(_0x4c02a9(0x16f));}return(_0x322107==='string'?String:Number)(_0x1e1b67);}function C(_0x5bfd00){var _0x2374ec=_0x43e278,_0x428bd7=S(_0x5bfd00,'string');return x(_0x428bd7)==_0x2374ec(0x183)?_0x428bd7:_0x428bd7+'';}function w(_0x3e2484,_0x5c5c82,_0x4fb589){var _0x53b8ba=_0x43e278;return(_0x5c5c82=C(_0x5c5c82))in _0x3e2484?Object[_0x53b8ba(0x1aa)](_0x3e2484,_0x5c5c82,{'value':_0x4fb589,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x3e2484[_0x5c5c82]=_0x4fb589,_0x3e2484;}var T=class extends _0x9be5d2{constructor(..._0x43b413){var _0x1a54fa=_0x43e278;super(..._0x43b413),w(this,'_docsFormulaCommandService',void 0x0),w(this,_0x1a54fa(0x18b),void 0x0),w(this,_0x1a54fa(0x16a),void 0x0),w(this,_0x1a54fa(0x17f),void 0x0);}[_0x43e278(0x18c)](_0x51ac0e){var _0x4bed7c=_0x43e278;this[_0x4bed7c(0x19b)]=_0x51ac0e['get'](_0x5a6335),this[_0x4bed7c(0x18b)]=_0x51ac0e[_0x4bed7c(0x199)](_0x29119a),this[_0x4bed7c(0x16a)]=_0x51ac0e[_0x4bed7c(0x199)](_0x352050),this[_0x4bed7c(0x17f)]=_0x51ac0e[_0x4bed7c(0x199)](_0x2e4e88);}[_0x43e278(0x165)](){var _0x4017b0=_0x43e278;return this[_0x4017b0(0x18d)]()[_0x4017b0(0x16c)](_0x4f691c=>this[_0x4017b0(0x19f)](_0x4f691c[_0x4017b0(0x19c)]));}[_0x43e278(0x19d)](_0x39197a){var _0x4dd232=_0x43e278;return this[_0x4dd232(0x18d)]()[_0x4dd232(0x1a6)](_0x36b4ab=>_0x36b4ab['rangeId']===_0x39197a)?this[_0x4dd232(0x19f)](_0x39197a):null;}[_0x43e278(0x1b1)](_0x18a8c5){var _0x5be941=_0x43e278;let _0x543144=this['_getCompleteRanges']()['find'](_0x1e74dd=>_0x1e74dd[_0x5be941(0x192)]<=_0x18a8c5&&_0x18a8c5<=_0x1e74dd[_0x5be941(0x172)]);return _0x543144?this[_0x5be941(0x19f)](_0x543144[_0x5be941(0x19c)]):null;}[_0x43e278(0x180)](){var _0x5af2f7=_0x43e278;let _0x17f8e5=this['_docsFormulaResourceLoaderService'][_0x5af2f7(0x18e)](this['id']);if(!_0x17f8e5)throw Error('Document\x20'+this['id']+'\x20could\x20not\x20be\x20serialized.');return this[_0x5af2f7(0x18b)][_0x5af2f7(0x193)](_0x17f8e5);}[_0x43e278(0x191)](_0x1a0400){var _0x347b6e=_0x43e278;return this[_0x347b6e(0x185)]({'externalReferences':_0x1a0400['externalReferences'],'formula':_0x1a0400[_0x347b6e(0x16e)],'numberFormat':_0x1a0400[_0x347b6e(0x1a1)],'target':{'type':'range','startOffset':_0x1a0400[_0x347b6e(0x186)],'endOffset':_0x1a0400[_0x347b6e(0x196)]},'unitId':this[_0x347b6e(0x176)]()});}[_0x43e278(0x185)](_0x3bd1dd){var _0x1f769c=_0x43e278;let _0x37e264=this[_0x1f769c(0x19b)][_0x1f769c(0x1b0)](_0x4cef27['id'],_0x3bd1dd);return _0x37e264?this['_createFormula'](_0x37e264[_0x1f769c(0x19c)]):null;}[_0x43e278(0x18d)](){var _0x67f993=_0x43e278,_0x1b641e;let _0xd8b92d=this[_0x67f993(0x16a)][_0x67f993(0x165)](this[_0x67f993(0x176)]());return((_0x1b641e=this[_0x67f993(0x1a9)]('')[_0x67f993(0x1ac)])==null?void 0x0:_0x1b641e[_0x67f993(0x1a0)](_0x2c4b51=>_0x3eb00d(_0x2c4b51)&&_0xd8b92d[_0x2c4b51['rangeId']]!=null))??[];}[_0x43e278(0x19f)](_0xd52f63){var _0x5da3df=_0x43e278;return this[_0x5da3df(0x182)][_0x5da3df(0x179)](b,this[_0x5da3df(0x176)](),_0xd52f63);}};_0x9be5d2[_0x43e278(0x177)](T);var E=class extends _0x5f3dce{constructor(..._0x1130cc){var _0x56c59d=_0x43e278;super(..._0x1130cc),w(this,_0x56c59d(0x19b),void 0x0);}[_0x43e278(0x18c)](_0x575cf5){var _0x571a2b=_0x43e278;this[_0x571a2b(0x19b)]=_0x575cf5['get'](_0x5a6335);}['insertFormula'](_0x5c46e7,_0x52fb1a,_0x33cea5={}){var _0x2548b3=_0x43e278;return this[_0x2548b3(0x185)](_0x5c46e7,_0x52fb1a,_0x33cea5);}['appendFormula'](_0x383ee1,_0x234c10={}){var _0x2ab220=_0x43e278;return this['_insert'](_0x2ab220(0x16d),_0x383ee1,_0x234c10);}[_0x43e278(0x185)](_0x186e62,_0x190170,_0x2a7d2f){var _0x56da4f=_0x43e278;if(this[_0x56da4f(0x19e)]())return null;let _0x13d172={'externalReferences':_0x2a7d2f[_0x56da4f(0x1a3)],'formula':_0x190170,'numberFormat':_0x2a7d2f[_0x56da4f(0x1a1)],'target':{'type':_0x56da4f(0x1af),'paragraphId':this['getId'](),'position':_0x186e62},'unitId':this[_0x56da4f(0x166)][_0x56da4f(0x176)]()},_0x532f9=this[_0x56da4f(0x19b)]['syncExecuteCommand'](_0x4cef27['id'],_0x13d172);return _0x532f9?this[_0x56da4f(0x182)][_0x56da4f(0x179)](b,this[_0x56da4f(0x166)]['getId'](),_0x532f9[_0x56da4f(0x19c)]):null;}};_0x5f3dce[_0x43e278(0x177)](E);var D=class extends _0x2f9447{constructor(..._0x58f15a){var _0x14281f=_0x43e278;super(..._0x58f15a),w(this,_0x14281f(0x19b),void 0x0);}[_0x43e278(0x18c)](_0xc998de){var _0x1f7dea=_0x43e278;this[_0x1f7dea(0x19b)]=_0xc998de[_0x1f7dea(0x199)](_0x5a6335);}[_0x43e278(0x197)](_0x50335d,_0x3557db={}){var _0x136452=_0x43e278;let {endOffset:_0x5651ed,segmentId:_0x12862b,startOffset:_0x501b43}=this[_0x136452(0x171)]();return _0x12862b?null:this[_0x136452(0x185)](_0x501b43,_0x5651ed,_0x50335d,_0x3557db);}[_0x43e278(0x185)](_0x2f58a5,_0x2cb9d3,_0x5bd4df,_0x2c218c){var _0xcea158=_0x43e278;let _0x3e86d0={'externalReferences':_0x2c218c[_0xcea158(0x1a3)],'formula':_0x5bd4df,'numberFormat':_0x2c218c[_0xcea158(0x1a1)],'target':{'type':_0xcea158(0x1ab),'startOffset':_0x2f58a5,'endOffset':_0x2cb9d3},'unitId':this[_0xcea158(0x166)][_0xcea158(0x176)]()},_0x3135dd=this[_0xcea158(0x19b)]['syncExecuteCommand'](_0x4cef27['id'],_0x3e86d0);return _0x3135dd?this[_0xcea158(0x182)][_0xcea158(0x179)](b,this[_0xcea158(0x166)][_0xcea158(0x176)](),_0x3135dd[_0xcea158(0x19c)]):null;}};_0x2f9447[_0x43e278(0x177)](D);export{b as FDocumentFormula};
|
|
1
|
+
var _0x2b355b=_0x3a44;(function(_0x3b99bc,_0x4a9c94){var _0x205c82=_0x3a44,_0x4bf381=_0x3b99bc();while(!![]){try{var _0x3785b0=-parseInt(_0x205c82(0x1d2))/0x1*(-parseInt(_0x205c82(0x190))/0x2)+-parseInt(_0x205c82(0x19f))/0x3+parseInt(_0x205c82(0x1ac))/0x4+-parseInt(_0x205c82(0x18a))/0x5+parseInt(_0x205c82(0x1b3))/0x6+parseInt(_0x205c82(0x192))/0x7+-parseInt(_0x205c82(0x193))/0x8;if(_0x3785b0===_0x4a9c94)break;else _0x4bf381['push'](_0x4bf381['shift']());}catch(_0x4d233e){_0x4bf381['push'](_0x4bf381['shift']());}}}(_0x3b5e,0x58081));import{ConvertDocFormulaToTextCommand as _0x2d4520,DocFormulaDisplayTextService as _0xb17991,DocFormulaModel as _0x32fc45,DocFormulaService as _0x5bf394,InsertDocFormulaCommand as _0x3e5dad,RemoveDocFormulaCommand as _0x3eeb8c,ReplaceDocFormulaWithTextCommand as _0x497f52,SetDocFormulaNumberFormatCommand as _0x5dba3c,UpdateDocFormulaCommand as _0x9bf949,isDocFormulaRange as _0x3a1bb9}from'@univerjs-pro/docs-formula';import{ICommandService as _0x128e28,IResourceLoaderService as _0xcfcf25,IUniverInstanceService as _0x23abd6,Inject as _0x2f2ecf,UniverInstanceType as _0x5a4427}from'@univerjs/core';import{FDocument as _0x1cb9b3,FDocumentParagraph as _0x477006,FDocumentTextRange as _0xe94339}from'@univerjs/docs/facade';function v(_0x558cab,_0x40a1cc){return function(_0x4af14b,_0x55fda7){_0x40a1cc(_0x4af14b,_0x55fda7,_0x558cab);};}function y(_0x3795b2,_0x507c35,_0x2038e8,_0x1aaa30){var _0xef8a6c=_0x3a44,_0x3016e6=arguments['length'],_0x36f69a=_0x3016e6<0x3?_0x507c35:_0x1aaa30===null?_0x1aaa30=Object['getOwnPropertyDescriptor'](_0x507c35,_0x2038e8):_0x1aaa30,_0x217356;if(typeof Reflect==_0xef8a6c(0x1b1)&&typeof Reflect[_0xef8a6c(0x1c7)]==_0xef8a6c(0x1bf))_0x36f69a=Reflect['decorate'](_0x3795b2,_0x507c35,_0x2038e8,_0x1aaa30);else{for(var _0x48fc6d=_0x3795b2[_0xef8a6c(0x1c5)]-0x1;_0x48fc6d>=0x0;_0x48fc6d--)(_0x217356=_0x3795b2[_0x48fc6d])&&(_0x36f69a=(_0x3016e6<0x3?_0x217356(_0x36f69a):_0x3016e6>0x3?_0x217356(_0x507c35,_0x2038e8,_0x36f69a):_0x217356(_0x507c35,_0x2038e8))||_0x36f69a);}return _0x3016e6>0x3&&_0x36f69a&&Object[_0xef8a6c(0x1a3)](_0x507c35,_0x2038e8,_0x36f69a),_0x36f69a;}let b=class{constructor(_0x533d09,_0x2d879f,_0x2451b0,_0x3272f3,_0x280091,_0x1d3e0e){var _0x2e43d7=_0x3a44;this[_0x2e43d7(0x1a8)]=_0x533d09,this[_0x2e43d7(0x1c1)]=_0x2d879f,this[_0x2e43d7(0x1ab)]=_0x2451b0,this['_model']=_0x3272f3,this['_service']=_0x280091,this[_0x2e43d7(0x1b9)]=_0x1d3e0e;}[_0x2b355b(0x1b2)](){var _0x524c58=_0x2b355b;return this[_0x524c58(0x1c1)];}[_0x2b355b(0x19c)](){var _0x59abd3=_0x2b355b;let _0x321151=this[_0x59abd3(0x18b)]();return _0x321151?{'endOffset':_0x321151['endIndex']+0x1,'rangeId':_0x321151[_0x59abd3(0x195)],'startOffset':_0x321151[_0x59abd3(0x199)]}:null;}[_0x2b355b(0x1b8)](){var _0x2e643a=_0x2b355b,_0x1b162e;return((_0x1b162e=this[_0x2e643a(0x1cf)][_0x2e643a(0x1b8)](this[_0x2e643a(0x1a8)],this[_0x2e643a(0x1c1)]))==null?void 0x0:_0x1b162e[_0x2e643a(0x19e)])??'';}[_0x2b355b(0x197)](){var _0x351545=_0x2b355b;return this[_0x351545(0x1cf)][_0x351545(0x1b8)](this[_0x351545(0x1a8)],this[_0x351545(0x1c1)])??null;}['getResult'](){var _0x469f77=_0x2b355b;return this['_service'][_0x469f77(0x1ae)]({'unitId':this[_0x469f77(0x1a8)],'rangeId':this['_rangeId']})??null;}['describe'](){var _0x42f651=_0x2b355b;let _0x147ae0=this[_0x42f651(0x19c)](),_0x187639=this[_0x42f651(0x197)](),_0x3f2874=this['getResult']();return!_0x147ae0||!_0x187639||!_0x3f2874?null:{..._0x147ae0,'config':_0x187639,'formula':_0x187639[_0x42f651(0x19e)],'result':_0x3f2874,'type':_0x42f651(0x19e)};}['update'](_0x45ecf7){var _0x23646f=_0x2b355b;return this['_commandService'][_0x23646f(0x18c)](_0x9bf949['id'],{'externalReferences':_0x45ecf7['externalReferences'],'formula':_0x45ecf7[_0x23646f(0x19e)],'numberFormat':_0x45ecf7['numberFormat'],'rangeId':this[_0x23646f(0x1c1)],'unitId':this[_0x23646f(0x1a8)]});}[_0x2b355b(0x1a5)](_0x2ae9e6){var _0x1acf0f=_0x2b355b;return this[_0x1acf0f(0x1ab)][_0x1acf0f(0x18c)](_0x5dba3c['id'],{'numberFormat':_0x2ae9e6,'rangeId':this['_rangeId'],'unitId':this['_unitId']});}[_0x2b355b(0x19a)](){var _0x349c08=_0x2b355b;return this[_0x349c08(0x1ab)]['syncExecuteCommand'](_0x3eeb8c['id'],{'rangeId':this[_0x349c08(0x1c1)],'unitId':this[_0x349c08(0x1a8)]});}[_0x2b355b(0x1c9)](_0x3d05f6){var _0x55f668=_0x2b355b;return this[_0x55f668(0x1ab)][_0x55f668(0x18c)](_0x497f52['id'],{'rangeId':this[_0x55f668(0x1c1)],'text':_0x3d05f6,'unitId':this[_0x55f668(0x1a8)]});}[_0x2b355b(0x1cc)](){var _0x4a2b0a=_0x2b355b;return this[_0x4a2b0a(0x1ab)]['syncExecuteCommand'](_0x2d4520['id'],{'rangeId':this[_0x4a2b0a(0x1c1)],'unitId':this[_0x4a2b0a(0x1a8)]});}['_getCustomRange'](){var _0x4b8c6e=_0x2b355b,_0x18a5d5;let _0x161d28=this[_0x4b8c6e(0x1b9)][_0x4b8c6e(0x1c2)](this[_0x4b8c6e(0x1a8)],_0x5a4427[_0x4b8c6e(0x1b4)]);return _0x161d28==null||(_0x18a5d5=_0x161d28['getSnapshot']()['body'])==null||(_0x18a5d5=_0x18a5d5[_0x4b8c6e(0x1cd)])==null?void 0x0:_0x18a5d5[_0x4b8c6e(0x1d1)](_0x1f7d5e=>_0x1f7d5e[_0x4b8c6e(0x195)]===this[_0x4b8c6e(0x1c1)]&&_0x3a1bb9(_0x1f7d5e));}};b=y([v(0x2,_0x128e28),v(0x3,_0x2f2ecf(_0x32fc45)),v(0x4,_0x2f2ecf(_0x5bf394)),v(0x5,_0x23abd6)],b);function x(_0x32b2e8){'@babel/helpers - typeof';var _0x2b02d8=_0x2b355b;return x=typeof Symbol=='function'&&typeof Symbol[_0x2b02d8(0x1a1)]=='symbol'?function(_0x396b3e){return typeof _0x396b3e;}:function(_0x504d0f){var _0x12042d=_0x2b02d8;return _0x504d0f&&typeof Symbol==_0x12042d(0x1bf)&&_0x504d0f[_0x12042d(0x1b7)]===Symbol&&_0x504d0f!==Symbol[_0x12042d(0x18f)]?_0x12042d(0x1a6):typeof _0x504d0f;},x(_0x32b2e8);}function S(_0x395844,_0x4f7aa0){var _0x8dafe9=_0x2b355b;if(x(_0x395844)!=_0x8dafe9(0x1b1)||!_0x395844)return _0x395844;var _0x5d5e5e=_0x395844[Symbol[_0x8dafe9(0x198)]];if(_0x5d5e5e!==void 0x0){var _0x59d213=_0x5d5e5e[_0x8dafe9(0x1ce)](_0x395844,_0x4f7aa0||_0x8dafe9(0x191));if(x(_0x59d213)!='object')return _0x59d213;throw TypeError(_0x8dafe9(0x1c6));}return(_0x4f7aa0===_0x8dafe9(0x1c0)?String:Number)(_0x395844);}function C(_0x38fd36){var _0x3fff0d=_0x2b355b,_0x3e2604=S(_0x38fd36,_0x3fff0d(0x1c0));return x(_0x3e2604)==_0x3fff0d(0x1a6)?_0x3e2604:_0x3e2604+'';}function w(_0x1313de,_0x2c3e53,_0x5b5c4f){var _0x27a84d=_0x2b355b;return(_0x2c3e53=C(_0x2c3e53))in _0x1313de?Object[_0x27a84d(0x1a3)](_0x1313de,_0x2c3e53,{'value':_0x5b5c4f,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x1313de[_0x2c3e53]=_0x5b5c4f,_0x1313de;}var T=class extends _0x1cb9b3{constructor(..._0x2d01d5){var _0x77f48a=_0x2b355b;super(..._0x2d01d5),w(this,_0x77f48a(0x1bd),void 0x0),w(this,_0x77f48a(0x1b6),void 0x0),w(this,_0x77f48a(0x1ca),void 0x0),w(this,_0x77f48a(0x18e),void 0x0);}['_initialize'](_0x1bc0b6){var _0x6493a8=_0x2b355b;this[_0x6493a8(0x1bd)]=_0x1bc0b6[_0x6493a8(0x196)](_0x128e28),this[_0x6493a8(0x1b6)]=_0x1bc0b6[_0x6493a8(0x196)](_0xb17991),this[_0x6493a8(0x1ca)]=_0x1bc0b6[_0x6493a8(0x196)](_0x32fc45),this['_docsFormulaResourceLoaderService']=_0x1bc0b6[_0x6493a8(0x196)](_0xcfcf25);}[_0x2b355b(0x1b0)](){var _0x488e46=_0x2b355b;return this[_0x488e46(0x1d0)]()[_0x488e46(0x1c4)](_0x3cdc72=>this[_0x488e46(0x1aa)](_0x3cdc72['rangeId']));}[_0x2b355b(0x1b8)](_0x2efd01){var _0x38170d=_0x2b355b;return this[_0x38170d(0x1d0)]()[_0x38170d(0x1a9)](_0x29dc0d=>_0x29dc0d[_0x38170d(0x195)]===_0x2efd01)?this[_0x38170d(0x1aa)](_0x2efd01):null;}[_0x2b355b(0x19b)](_0x3febe2){var _0x167dad=_0x2b355b;let _0x431509=this[_0x167dad(0x1d0)]()['find'](_0x560648=>_0x560648['startIndex']<=_0x3febe2&&_0x3febe2<=_0x560648['endIndex']);return _0x431509?this[_0x167dad(0x1aa)](_0x431509[_0x167dad(0x195)]):null;}[_0x2b355b(0x1be)](){var _0x4aa8c1=_0x2b355b;let _0x28a557=this[_0x4aa8c1(0x18e)][_0x4aa8c1(0x1d4)](this['id']);if(!_0x28a557)throw Error(_0x4aa8c1(0x18d)+this['id']+_0x4aa8c1(0x1d5));return this['_docsFormulaDisplayTextService'][_0x4aa8c1(0x1af)](_0x28a557);}[_0x2b355b(0x1c8)](_0x41d33d){var _0x191160=_0x2b355b;return this[_0x191160(0x1a2)]({'externalReferences':_0x41d33d[_0x191160(0x1bb)],'formula':_0x41d33d['formula'],'numberFormat':_0x41d33d[_0x191160(0x1b5)],'target':{'type':_0x191160(0x1a7),'startOffset':_0x41d33d[_0x191160(0x1ba)],'endOffset':_0x41d33d['endOffset']},'unitId':this[_0x191160(0x1b2)]()});}[_0x2b355b(0x1a2)](_0x46ed4e){var _0x120a7d=_0x2b355b;let _0x132226=this['_docsFormulaCommandService'][_0x120a7d(0x18c)](_0x3e5dad['id'],_0x46ed4e);return _0x132226?this[_0x120a7d(0x1aa)](_0x132226['rangeId']):null;}[_0x2b355b(0x1d0)](){var _0x1d58c3=_0x2b355b,_0x116043;let _0xb34047=this[_0x1d58c3(0x1ca)]['getFormulas'](this[_0x1d58c3(0x1b2)]());return((_0x116043=this[_0x1d58c3(0x1c3)]('')[_0x1d58c3(0x1cd)])==null?void 0x0:_0x116043['filter'](_0x258602=>_0x3a1bb9(_0x258602)&&_0xb34047[_0x258602[_0x1d58c3(0x195)]]!=null))??[];}['_createFormula'](_0x3cadc1){var _0x59c9da=_0x2b355b;return this[_0x59c9da(0x1a0)]['createInstance'](b,this[_0x59c9da(0x1b2)](),_0x3cadc1);}};_0x1cb9b3['extend'](T);function _0x3b5e(){var _0x290e25=['_insert','defineProperty','createInstance','setNumberFormat','symbol','range','_unitId','some','_createFormula','_commandService','2256652GmuLhb','end','getResult','degradeDocumentData','getFormulas','object','getId','794124FRKoMV','UNIVER_DOC','numberFormat','_docsFormulaDisplayTextService','constructor','getFormula','_univerInstanceService','startOffset','externalReferences','_document','_docsFormulaCommandService','saveFormulaDisplayTextSnapshot','function','string','_rangeId','getUnit','getBody','map','length','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','decorate','insertFormula','replaceWithText','_docsFormulaModel','getSegmentId','convertToText','customRanges','call','_model','_getCompleteRanges','find','5VqnOuw','replaceWithFormula','saveUnit','\x20could\x20not\x20be\x20serialized.','365840jGNHzE','_getCustomRange','syncExecuteCommand','Document\x20','_docsFormulaResourceLoaderService','prototype','106250feYDGj','default','2654498EkXvZH','6966968rLuuwy','_initialize','rangeId','get','getConfig','toPrimitive','startIndex','remove','getFormulaAt','getRange','extend','formula','110220RQLZiJ','_injector','iterator'];_0x3b5e=function(){return _0x290e25;};return _0x3b5e();}var E=class extends _0x477006{constructor(..._0x13cc1b){var _0x23ef8e=_0x2b355b;super(..._0x13cc1b),w(this,_0x23ef8e(0x1bd),void 0x0);}['_initialize'](_0x374214){var _0x5e1903=_0x2b355b;this[_0x5e1903(0x1bd)]=_0x374214[_0x5e1903(0x196)](_0x128e28);}[_0x2b355b(0x1c8)](_0x4ddb55,_0x1026ca,_0x1c34e6={}){return this['_insert'](_0x4ddb55,_0x1026ca,_0x1c34e6);}['appendFormula'](_0x560153,_0x1392d0={}){var _0x40d68b=_0x2b355b;return this['_insert'](_0x40d68b(0x1ad),_0x560153,_0x1392d0);}[_0x2b355b(0x1a2)](_0x1b3211,_0x5a92bb,_0x22039c){var _0x11d99d=_0x2b355b;if(this[_0x11d99d(0x1cb)]())return null;let _0x1f8ec8={'externalReferences':_0x22039c[_0x11d99d(0x1bb)],'formula':_0x5a92bb,'numberFormat':_0x22039c[_0x11d99d(0x1b5)],'target':{'type':'paragraph','paragraphId':this['getId'](),'position':_0x1b3211},'unitId':this['_document']['getId']()},_0x33cff7=this[_0x11d99d(0x1bd)][_0x11d99d(0x18c)](_0x3e5dad['id'],_0x1f8ec8);return _0x33cff7?this['_injector'][_0x11d99d(0x1a4)](b,this[_0x11d99d(0x1bc)][_0x11d99d(0x1b2)](),_0x33cff7[_0x11d99d(0x195)]):null;}};function _0x3a44(_0x3dbffd,_0xdf1336){_0x3dbffd=_0x3dbffd-0x18a;var _0x3b5e39=_0x3b5e();var _0x3a44fe=_0x3b5e39[_0x3dbffd];return _0x3a44fe;}_0x477006[_0x2b355b(0x19d)](E);var D=class extends _0xe94339{constructor(..._0x4a40e1){var _0x610aa9=_0x2b355b;super(..._0x4a40e1),w(this,_0x610aa9(0x1bd),void 0x0);}[_0x2b355b(0x194)](_0x280f5d){var _0x37780b=_0x2b355b;this[_0x37780b(0x1bd)]=_0x280f5d['get'](_0x128e28);}[_0x2b355b(0x1d3)](_0x36cb09,_0x40b437={}){var _0x6b855b=_0x2b355b;let {endOffset:_0x32b929,segmentId:_0x353e47,startOffset:_0x2d07d4}=this[_0x6b855b(0x19c)]();return _0x353e47?null:this[_0x6b855b(0x1a2)](_0x2d07d4,_0x32b929,_0x36cb09,_0x40b437);}[_0x2b355b(0x1a2)](_0x5c1fcd,_0xac1fe0,_0x121cff,_0x1afa9a){var _0x1306de=_0x2b355b;let _0x8edbb6={'externalReferences':_0x1afa9a[_0x1306de(0x1bb)],'formula':_0x121cff,'numberFormat':_0x1afa9a[_0x1306de(0x1b5)],'target':{'type':_0x1306de(0x1a7),'startOffset':_0x5c1fcd,'endOffset':_0xac1fe0},'unitId':this[_0x1306de(0x1bc)]['getId']()},_0x3b6c94=this[_0x1306de(0x1bd)][_0x1306de(0x18c)](_0x3e5dad['id'],_0x8edbb6);return _0x3b6c94?this[_0x1306de(0x1a0)][_0x1306de(0x1a4)](b,this[_0x1306de(0x1bc)][_0x1306de(0x1b2)](),_0x3b6c94['rangeId']):null;}};_0xe94339[_0x2b355b(0x19d)](D);export{b as FDocumentFormula};
|