@univerjs-pro/sheets-pivot 0.6.10-nightly.202504141607 → 0.6.10-nightly.202504161609

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 CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x138703=_0x102c;(function(_0x2519fa,_0x95b288){const _0x46a7ea=_0x102c,_0x747baa=_0x2519fa();while(!![]){try{const _0x8a4f72=parseInt(_0x46a7ea(0x122))/0x1+-parseInt(_0x46a7ea(0x115))/0x2*(parseInt(_0x46a7ea(0x159))/0x3)+-parseInt(_0x46a7ea(0x155))/0x4*(parseInt(_0x46a7ea(0x16f))/0x5)+-parseInt(_0x46a7ea(0x121))/0x6*(parseInt(_0x46a7ea(0x14b))/0x7)+-parseInt(_0x46a7ea(0x183))/0x8+-parseInt(_0x46a7ea(0xea))/0x9+parseInt(_0x46a7ea(0x188))/0xa;if(_0x8a4f72===_0x95b288)break;else _0x747baa['push'](_0x747baa['shift']());}catch(_0x4bd74e){_0x747baa['push'](_0x747baa['shift']());}}}(_0x157a,0x615b8));function _0x102c(_0x579f9a,_0x35a53a){const _0x157adb=_0x157a();return _0x102c=function(_0x102c8d,_0x137c3e){_0x102c8d=_0x102c8d-0xbc;let _0x15564a=_0x157adb[_0x102c8d];return _0x15564a;},_0x102c(_0x579f9a,_0x35a53a);}var ee=Object[_0x138703(0xc5)],te=(_0x418cbf,_0x2c66bc,_0x452fb0)=>_0x2c66bc in _0x418cbf?ee(_0x418cbf,_0x2c66bc,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x452fb0}):_0x418cbf[_0x2c66bc]=_0x452fb0,y=(_0x3c3c76,_0x3f78b1,_0x2c4c13)=>te(_0x3c3c76,typeof _0x3f78b1!=_0x138703(0x14a)?_0x3f78b1+'':_0x3f78b1,_0x2c4c13);const r=require(_0x138703(0xd0)),l=require('@univerjs-pro/sheets-pivot'),m=require(_0x138703(0x147)),R=require('@univerjs/sheets/facade'),A=require(_0x138703(0xe5)),ie=require('rxjs');class x{constructor(_0x4beefd,_0x442402,_0x588b4b,_0x42fdfa){const _0x27d305=_0x138703;y(this,_0x27d305(0x17f)),y(this,_0x27d305(0xc0)),y(this,_0x27d305(0x19d)),y(this,_0x27d305(0xe7)),(this[_0x27d305(0x17f)]=_0x4beefd,this[_0x27d305(0xc0)]=_0x442402,this[_0x27d305(0x19d)]=_0x588b4b,this['_injector']=_0x42fdfa);}['getConfig'](){const _0x22311f=_0x138703;return this[_0x22311f(0xe7)][_0x22311f(0x1a2)](l['SheetsPivotTableConfigModel'])[_0x22311f(0x104)](this['unitId'],this[_0x22311f(0xc0)],this[_0x22311f(0x19d)]);}[_0x138703(0x109)](_0x34a38d){const _0x80e20b=_0x138703,_0x3b5710=this['_injector'][_0x80e20b(0x1a2)](m[_0x80e20b(0xec)]),_0x1de4f5={'unitId':this[_0x80e20b(0x17f)],'subUnitId':this['subUnitId'],'pivotTableId':this[_0x80e20b(0x19d)],'pivotTableConfig':_0x34a38d};return _0x3b5710[_0x80e20b(0x1a8)](l[_0x80e20b(0xcc)]['id'],_0x1de4f5);}['reset'](_0x6c53e8){const _0x290c95=_0x138703,_0xc13d3c=this[_0x290c95(0xe7)][_0x290c95(0x1a2)](m[_0x290c95(0xec)]),_0x4307d0={'unitId':this[_0x290c95(0x17f)],'subUnitId':this[_0x290c95(0xc0)],'pivotTableId':this[_0x290c95(0x19d)],'resetArea':_0x6c53e8};return _0xc13d3c[_0x290c95(0x1a8)](l[_0x290c95(0x123)]['id'],_0x4307d0);}['getPivotTableId'](){const _0x5f0e07=_0x138703;return this[_0x5f0e07(0x19d)];}[_0x138703(0x143)](_0x36bcbc){const _0x322e16=_0x138703,_0x4383da=this[_0x322e16(0xe7)]['get'](l[_0x322e16(0xfb)])[_0x322e16(0x104)](this[_0x322e16(0x17f)],this['subUnitId'],this[_0x322e16(0x19d)]),_0x3b0fb9=_0x4383da==null?void 0x0:_0x4383da[_0x322e16(0x190)];if(_0x3b0fb9)return _0x3b0fb9[_0x322e16(0x1a6)][_0x36bcbc]||_0x3b0fb9[_0x322e16(0xc2)][_0x36bcbc];}[_0x138703(0x117)](){const _0x27b3de=_0x138703,_0x4762f1=this[_0x27b3de(0xe7)],_0xa0844e=this[_0x27b3de(0x17f)],_0x703ec3=this['pivotTableId'],_0x1010df=_0x4762f1[_0x27b3de(0x1a2)](l[_0x27b3de(0xfb)])[_0x27b3de(0xf0)](_0xa0844e,_0x703ec3);if(_0x1010df){const _0x383a64=_0x1010df[_0x27b3de(0x10d)],_0x3bdb22=_0x1010df[_0x27b3de(0x149)],_0x4e43c4=_0x1010df[_0x27b3de(0x179)],_0x4dcfc7=[];for(const _0x36e115 of _0x383a64){const _0x29c544=_0x3bdb22[_0x36e115];if(_0x29c544){const _0x5df698={'id':_0x36e115,'name':_0x29c544[_0x27b3de(0x133)],'fieldDataType':_0x29c544['fieldDataType']};_0x4e43c4&&_0x4e43c4[_0x36e115]!==void 0x0&&(_0x5df698['displayName']=_0x4e43c4[_0x36e115]),_0x4dcfc7['push'](_0x5df698);}}return _0x4dcfc7;}return[];}[_0x138703(0x101)](_0x2b630c){const _0x11e941=_0x138703;var _0x10e35d;const _0x82c126=this[_0x11e941(0xe7)][_0x11e941(0x1a2)](l[_0x11e941(0xfb)])[_0x11e941(0x104)](this[_0x11e941(0x17f)],this[_0x11e941(0xc0)],this[_0x11e941(0x19d)]),_0x5d37cf=_0x82c126==null?void 0x0:_0x82c126[_0x11e941(0x190)][_0x11e941(0x194)];return(_0x10e35d=_0x5d37cf==null?void 0x0:_0x5d37cf[_0x11e941(0x129)](_0x3f35ec=>_0x3f35ec[_0x11e941(0xf8)]===_0x2b630c))==null?void 0x0:_0x10e35d[_0x11e941(0x10c)];}[_0x138703(0x182)](){const _0x5e7fd3=_0x138703,_0x2908a9=this[_0x5e7fd3(0xe7)]['get'](l[_0x5e7fd3(0xfb)])[_0x5e7fd3(0x104)](this['unitId'],this[_0x5e7fd3(0xc0)],this[_0x5e7fd3(0x19d)]),_0x50735c=_0x2908a9==null?void 0x0:_0x2908a9[_0x5e7fd3(0x190)][_0x5e7fd3(0x194)];return(_0x50735c==null?void 0x0:_0x50735c[_0x5e7fd3(0x146)]())||[];}[_0x138703(0x16c)](_0x58f829){const _0x2a5679=_0x138703,_0x13b09e=this[_0x2a5679(0xe7)][_0x2a5679(0x1a2)](l[_0x2a5679(0xfb)])[_0x2a5679(0x104)](this[_0x2a5679(0x17f)],this[_0x2a5679(0xc0)],this[_0x2a5679(0x19d)]),_0x50e2bc=_0x13b09e==null?void 0x0:_0x13b09e[_0x2a5679(0x190)];if(_0x50e2bc)switch(_0x58f829){case r['PivotTableFiledAreaEnum'][_0x2a5679(0x166)]:return _0x50e2bc['columnFields']['concat']();case r['PivotTableFiledAreaEnum']['Row']:return _0x50e2bc[_0x2a5679(0x171)][_0x2a5679(0x146)]();case r[_0x2a5679(0x167)][_0x2a5679(0x18f)]:return _0x50e2bc[_0x2a5679(0xc9)][_0x2a5679(0x146)]();case r[_0x2a5679(0x167)][_0x2a5679(0x15b)]:return _0x50e2bc[_0x2a5679(0x163)][_0x2a5679(0x146)]();case r[_0x2a5679(0x167)]['Hidden']:return _0x50e2bc[_0x2a5679(0xca)][_0x2a5679(0x146)]();}return[];}['getPivotTableRangeInfo'](){const _0x3fc39d=_0x138703;var _0x1dd5c5;const _0x45067d=(_0x1dd5c5=this[_0x3fc39d(0xe7)][_0x3fc39d(0x1a2)](l[_0x3fc39d(0xfb)])[_0x3fc39d(0x10a)](this[_0x3fc39d(0x17f)],this[_0x3fc39d(0xc0)],this['pivotTableId']))==null?void 0x0:_0x1dd5c5[_0x3fc39d(0x111)];if(_0x45067d)return l[_0x3fc39d(0xbc)](_0x45067d);}async[_0x138703(0x17c)](){const _0x24f06a=_0x138703;return await this['_injector']['get'](m['ICommandService'])['syncExecuteCommand'](l[_0x24f06a(0x192)]['id'],{'unitId':this[_0x24f06a(0x17f)],'subUnitId':this[_0x24f06a(0xc0)],'pivotTableId':this[_0x24f06a(0x19d)]});}async['addField'](_0x4a7cd2,_0x36a304,_0x35015c){const _0x28d5fb=_0x138703,_0x210cd6=this['_injector'],_0xd92c48=this['unitId'],_0x23c7c7=this[_0x28d5fb(0xc0)],_0x30b155=this[_0x28d5fb(0x19d)],_0x3181f0=_0x210cd6[_0x28d5fb(0x1a2)](m[_0x28d5fb(0xec)]),_0x8beda6=_0x210cd6[_0x28d5fb(0x1a2)](l[_0x28d5fb(0xfb)]),_0x16b8d4=_0x8beda6[_0x28d5fb(0x104)](_0xd92c48,_0x23c7c7,_0x30b155),_0x3a81a3=_0x8beda6[_0x28d5fb(0xf0)](_0xd92c48,_0x30b155);if(!_0x16b8d4||!_0x3a81a3)return!0x1;let _0x1750b9=_0x4a7cd2;typeof _0x1750b9==_0x28d5fb(0x11b)&&(_0x1750b9=_0x8beda6[_0x28d5fb(0xf0)](_0xd92c48,_0x30b155)[_0x28d5fb(0x10d)][_0x4a7cd2]);const _0x12b77c={'unitId':_0xd92c48,'subUnitId':_0x23c7c7,'pivotTableId':_0x30b155,'dataFieldId':_0x1750b9,'fieldArea':_0x36a304,'index':_0x35015c};return _0x3181f0['executeCommand'](l[_0x28d5fb(0xf7)]['id'],_0x12b77c);}async[_0x138703(0x164)](_0x4d21b5){const _0x1a57b4=_0x138703,_0x14112d=this[_0x1a57b4(0xe7)],_0x6198de=this[_0x1a57b4(0x17f)],_0x5e96e5=this['subUnitId'],_0x47f0ec=this[_0x1a57b4(0x19d)],_0x2bf064=_0x14112d[_0x1a57b4(0x1a2)](m[_0x1a57b4(0xec)]),_0x5deea1={'unitId':_0x6198de,'subUnitId':_0x5e96e5,'pivotTableId':_0x47f0ec,'fieldIds':_0x4d21b5};return _0x2bf064[_0x1a57b4(0x1a8)](l[_0x1a57b4(0x19a)]['id'],_0x5deea1);}async[_0x138703(0xcd)](_0x5cb8b0,_0x25198f,_0x52e3cb){const _0x255c37=_0x138703,_0x31a05f=this[_0x255c37(0xe7)],_0x31c9ae=this[_0x255c37(0x17f)],_0x18f9d8=this[_0x255c37(0xc0)],_0x1e5097=this[_0x255c37(0x19d)],_0x5dc26b=_0x31a05f['get'](m[_0x255c37(0xec)]),_0x145903={'unitId':_0x31c9ae,'subUnitId':_0x18f9d8,'pivotTableId':_0x1e5097,'fieldId':_0x5cb8b0,'area':_0x25198f,'index':_0x52e3cb};return _0x5dc26b['executeCommand'](l['MovePivotFieldCommand']['id'],_0x145903);}async[_0x138703(0x150)](_0x496342,_0x307b3e){const _0x1f5378=_0x138703,_0x3cbd3b=this[_0x1f5378(0xe7)],_0x59558b=this[_0x1f5378(0x17f)],_0x220635=this['subUnitId'],_0xcf9d8a=this[_0x1f5378(0x19d)],_0x43fb0b=_0x3cbd3b['get'](m[_0x1f5378(0xec)]),_0x411800={'unitId':_0x59558b,'subUnitId':_0x220635,'pivotTableId':_0xcf9d8a,'position':_0x496342,'index':_0x307b3e};return _0x43fb0b[_0x1f5378(0x1a8)](l['UpdatePivotValuePositionCommand']['id'],_0x411800);}async[_0x138703(0xda)](_0x313876,_0x53d2b7){const _0x3e20e1=_0x138703,_0x63d637=this[_0x3e20e1(0xe7)],_0x38cf60=this[_0x3e20e1(0x17f)],_0x4ce425=this[_0x3e20e1(0xc0)],_0xc91691=this[_0x3e20e1(0x19d)],_0x107909=_0x63d637[_0x3e20e1(0x1a2)](m[_0x3e20e1(0xec)]),_0x343fef={'unitId':_0x38cf60,'subUnitId':_0x4ce425,'pivotTableId':_0xc91691,'fieldId':_0x313876,'subtotalType':_0x53d2b7};return _0x107909[_0x3e20e1(0x1a8)](l[_0x3e20e1(0x12d)]['id'],_0x343fef);}async[_0x138703(0xf4)](_0x3bcc37,_0x986bd){const _0xd9a58d=_0x138703,_0x5574cb=this['_injector'],_0x1c1090=this[_0xd9a58d(0x17f)],_0x5e813d=this[_0xd9a58d(0xc0)],_0x59607d=this[_0xd9a58d(0x19d)],_0x1f438c=_0x5574cb['get'](m[_0xd9a58d(0xec)]),_0x1ab354={'unitId':_0x1c1090,'subUnitId':_0x5e813d,'tableFieldId':_0x3bcc37,'pivotTableId':_0x59607d,'info':_0x986bd};return _0x1f438c['executeCommand'](l[_0xd9a58d(0x141)]['id'],_0x1ab354);}async[_0x138703(0x15d)](_0x14e0bd,_0x508a8b,_0x55bba8){const _0x6c921c=_0x138703,_0x3c6651=this[_0x6c921c(0xe7)],_0x1da064=this['unitId'],_0x3cdb36=this[_0x6c921c(0xc0)],_0x5316ff=this[_0x6c921c(0x19d)],_0x4ca232=_0x3c6651[_0x6c921c(0x1a2)](m[_0x6c921c(0xec)]),_0x51159a={'unitId':_0x1da064,'subUnitId':_0x3cdb36,'pivotTableId':_0x5316ff,'tableFieldId':_0x14e0bd,'items':_0x508a8b,'isAll':_0x55bba8};return _0x4ca232[_0x6c921c(0x1a8)](l[_0x6c921c(0xf9)]['id'],_0x51159a);}async[_0x138703(0xe1)](_0x50470a,_0x9e392a){const _0x5c85b8=_0x138703,_0x2f655b=this['_injector'],_0x489d3e=this['unitId'],_0x567f55=this[_0x5c85b8(0xc0)],_0x356262=this[_0x5c85b8(0x19d)],_0xaf2b6d=_0x2f655b[_0x5c85b8(0x1a2)](m[_0x5c85b8(0xec)]);if(_0x50470a===void 0x0)return console[_0x5c85b8(0x113)](_0x5c85b8(0x187)),!0x1;const _0x468fcf=_0x9e392a&&{..._0x9e392a,'type':r[_0x5c85b8(0x139)]['ValueFilter']},_0x13ee47={'unitId':_0x489d3e,'subUnitId':_0x567f55,'pivotTableId':_0x356262,'fieldId':_0x50470a,'valueFilterInfo':_0x468fcf};return _0xaf2b6d[_0x5c85b8(0x1a8)](l['SetPivotValueFilterCommand']['id'],_0x13ee47);}async[_0x138703(0xde)](_0x1b980b,_0x5ce942){const _0x1a4038=_0x138703,_0x568541=this['_injector'],_0x276793=this[_0x1a4038(0x17f)],_0x1275b5=this[_0x1a4038(0xc0)],_0x2796b5=this['pivotTableId'],_0xe556=_0x568541['get'](m['ICommandService']),_0x5a3409={'unitId':_0x276793,'subUnitId':_0x1275b5,'pivotTableId':_0x2796b5,'fieldId':_0x1b980b,'name':_0x5ce942};return _0xe556[_0x1a4038(0x1a8)](l[_0x1a4038(0x14f)]['id'],_0x5a3409);}async['move'](_0x13e289,_0x112bc2,_0x22f55d){const _0x1624a2=_0x138703,_0x5a00e1=this[_0x1624a2(0xe7)][_0x1624a2(0x1a2)](m[_0x1624a2(0xec)]),_0x170481=this[_0x1624a2(0xe7)]['get'](m['IUniverInstanceService'])[_0x1624a2(0x158)](this[_0x1624a2(0x17f)]),_0xdb0b74=_0x170481==null?void 0x0:_0x170481[_0x1624a2(0x106)](_0x13e289);if(!_0x170481||!_0xdb0b74)throw new Error(_0x1624a2(0xe9));return _0x5a00e1[_0x1624a2(0x1a8)](l[_0x1624a2(0x151)]['id'],{'pivotTableId':this[_0x1624a2(0x19d)],'targetCellInfo':{'subUnitId':_0xdb0b74[_0x1624a2(0xc1)](),'unitId':this[_0x1624a2(0x17f)],'row':_0x112bc2,'col':_0x22f55d},'originTargetInfo':{'subUnitId':this[_0x1624a2(0xc0)],'unitId':this[_0x1624a2(0x17f)]}});}async[_0x138703(0x17a)](_0x15c07a,_0xd8e62){const _0x477bad=_0x138703,_0x35ccdf=this[_0x477bad(0xe7)],_0x4055b1=this[_0x477bad(0x17f)],_0x59beba=this[_0x477bad(0xc0)],_0x55c37a=this[_0x477bad(0x19d)],_0xcfee2c=_0x35ccdf[_0x477bad(0x1a2)](m[_0x477bad(0xec)]),_0x4cceca={'unitId':_0x4055b1,'subUnitId':_0x59beba,'pivotTableId':_0x55c37a,'tableFieldId':_0x15c07a,'dateType':_0xd8e62};return _0xcfee2c['executeCommand'](l['UpdateDateGroupCommand']['id'],_0x4cceca);}}class oe extends R['FWorkbook']{async['addPivotTable'](_0x5edd95,_0x4d1714,_0x12331a){const _0x26914c=_0x138703,_0x1eebba=this[_0x26914c(0xe7)],_0x5b0afe=_0x1eebba['get'](m[_0x26914c(0xec)]),_0x7419a0=r[_0x26914c(0xfa)](0x8),_0x431d82={'positionType':_0x4d1714,'pivotTableId':_0x7419a0,'pivotTableConfig':{'targetCellInfo':_0x12331a,'sourceRangeInfo':_0x5edd95,'isEmpty':!0x0}};if(await _0x5b0afe['executeCommand'](l[_0x26914c(0x132)]['id'],_0x431d82))return new x(_0x12331a['unitId'],_0x12331a[_0x26914c(0xc0)],_0x7419a0,_0x1eebba);}['getPivotTableByCell'](_0x2c15e8,_0x44efe6,_0x428f76,_0x2c2c5c){const _0x42e7a4=_0x138703,_0x1ce50c=this[_0x42e7a4(0xe7)],_0xda9954=_0x1ce50c[_0x42e7a4(0x1a2)](l[_0x42e7a4(0xd5)])[_0x42e7a4(0xf3)](_0x2c15e8,_0x44efe6,_0x428f76,_0x2c2c5c);if(_0xda9954)return new x(_0x2c15e8,_0x44efe6,_0xda9954,_0x1ce50c);}[_0x138703(0xd2)](_0x74ebb0){const _0x4660c4=_0x138703,_0x148a6a=this[_0x4660c4(0xe7)],_0x55e03e=_0x148a6a['get'](l['SheetsPivotTableConfigModel'])[_0x4660c4(0x1ad)](this['getId'](),_0x74ebb0);if(_0x55e03e)return new x(_0x55e03e[_0x4660c4(0x17f)],_0x55e03e[_0x4660c4(0xc0)],_0x74ebb0,_0x148a6a);}}R[_0x138703(0x10b)][_0x138703(0x1a4)](oe);class ne extends R[_0x138703(0x1a5)]{[_0x138703(0x17b)](_0x58dad5,_0x54e9c9){const _0x5c8a79=_0x138703,_0x498e76=this[_0x5c8a79(0xe7)],_0x443ecb=_0x498e76[_0x5c8a79(0x1a2)](l['SheetsPivotTableAdaptorModel']),_0x34d032=this[_0x5c8a79(0x198)][_0x5c8a79(0x153)](),_0x2d30c8=this['getSheetId'](),_0x20a46c=_0x443ecb[_0x5c8a79(0xf3)](_0x34d032,_0x2d30c8,_0x58dad5,_0x54e9c9);if(_0x20a46c)return new x(_0x34d032,_0x2d30c8,_0x20a46c,_0x498e76);}}R[_0x138703(0x1a5)][_0x138703(0x1a4)](ne);class ae extends A[_0x138703(0x128)]{get[_0x138703(0xeb)](){return r['PivotSubtotalTypeEnum'];}get[_0x138703(0x139)](){const _0x31be63=_0x138703;return r[_0x31be63(0x139)];}get['PivotTableFiledAreaEnum'](){const _0x26890b=_0x138703;return r[_0x26890b(0x167)];}get[_0x138703(0x15f)](){return r['PivotTableValuePositionEnum'];}get['PivotDataFieldDataTypeEnum'](){const _0x4c5896=_0x138703;return r[_0x4c5896(0x13f)];}get[_0x138703(0x114)](){const _0x399f0b=_0x138703;return r[_0x399f0b(0x114)];}get[_0x138703(0xf1)](){const _0x427a8c=_0x138703;return r[_0x427a8c(0xf1)];}get[_0x138703(0x12a)](){const _0x1ab233=_0x138703;return r[_0x1ab233(0x1aa)];}get[_0x138703(0x110)](){const _0x122ca9=_0x138703;return l[_0x122ca9(0x11c)];}get[_0x138703(0x19c)](){return r['PivotTableChangeTypeEnum'];}get[_0x138703(0x108)](){const _0x6c2374=_0x138703;return r[_0x6c2374(0x108)];}}A[_0x138703(0x128)][_0x138703(0x1a4)](ae);class se extends A[_0x138703(0x1a7)]{get[_0x138703(0x11d)](){const _0x48c880=_0x138703;return _0x48c880(0x11d);}get['BeforePivotTableAdd'](){const _0xacc70a=_0x138703;return _0xacc70a(0x11e);}get[_0x138703(0x16a)](){const _0x1fd3ea=_0x138703;return _0x1fd3ea(0x16a);}get['PivotTableMoved'](){const _0x1468ad=_0x138703;return _0x1468ad(0xe4);}get[_0x138703(0x144)](){const _0x48f8c4=_0x138703;return _0x48f8c4(0x144);}get[_0x138703(0x196)](){const _0x4b16fe=_0x138703;return _0x4b16fe(0x196);}get[_0x138703(0x116)](){const _0x3b672c=_0x138703;return _0x3b672c(0x116);}get[_0x138703(0xbd)](){const _0x267f13=_0x138703;return _0x267f13(0xbd);}get['PivotTableFieldCollapseChanged'](){const _0x488373=_0x138703;return _0x488373(0x156);}get[_0x138703(0x184)](){const _0x332fbd=_0x138703;return _0x332fbd(0x184);}get['PivotTableFieldSortChanged'](){const _0x34262a=_0x138703;return _0x34262a(0x17d);}get[_0x138703(0x13a)](){return'PivotTableFieldSettingChanged';}get[_0x138703(0x169)](){const _0x3eb351=_0x138703;return _0x3eb351(0x169);}}A[_0x138703(0x1a7)][_0x138703(0x1a4)](se);const Z=_0x138703(0xf6);function _0x157a(){const _0x4aac2c=['_initialize','PivotTableFieldAdded','_firePivotTableValuePositionChangedEvent','_workbook','setFilterInfo','RemovePivotFieldCommand','startRow','PivotTableChangeTypeEnum','pivotTableId','format','tableFieldId','GrandTotal','level','get','sheetName','extend','FWorksheet','dimension','FEventName','executeCommand','data','ST_PivotFilterOperatorEnum','LifecycleService','query','getTargetByPivotTableId','unionPivotViewRange','PivotTableFieldMoved','max','_sourceData','subUnitId','getSheetId','measure','row','总计\x20','defineProperty','getFieldDisplayNames','getTime','setFieldFormat','valueFields','hiddenFields','getSourceName','SetPivotFieldsConfigCommand','updateFieldPosition','_fireAddPivotTableEvent','LifecycleStages','@univerjs-pro/engine-pivot','PivotCellStyleTypeEnum','getPivotTableById','getValuePosition','setDisplayName','SheetsPivotTableAdaptorModel','auditTime','getDimensionInfo','value','viewUpdate$','setSubtotalType','getFieldById','push','beforeCommandExecuted','renameField','LocaleType','_firePivotTableFieldAddedEvent','setValueFilter','Subtotal','targetCellInfo','PivotTableMoved','@univerjs/core/facade','keys','_injector','numfmt','[Pivot\x20Table]:\x20Target\x20sheet\x20is\x20not\x20valid','2507247XpkzoN','PivotSubtotalTypeEnum','ICommandService','getFieldDataType','info','registerEventHandler','getCollection','PivotDataFieldSortOperatorEnum','getRangeData','getPivotTableIdByCell','setLabelSort','getformat','YYYY-MM-DD','AddPivotFieldCommand','fieldId','SetPivotFilterCommand','generateHexNumber','SheetsPivotTableConfigModel','getFieldDataTypeByFieldName','Grand\x20Total\x20','object','getFieldDataTypeByColumnIndex','_pivot','getValueFilter','LocaleService','valueIndex','getPivotTableConfig','_isZhCN','getSheetBySheetName','getCurrentLocale','PivotDateGroupFieldDateTypeEnum','setFieldsConfig','getPivotTableRangeInfo','FWorkbook','filterInfo','fieldIds','getColCount','subscribe','PositionTypeEnum','rangeInfo','string','warn','PivotDataFieldSortTypeEnum','340358aETRLM','PivotTableFieldRemoved','getSourceFieldsInfo','fireEvent','reset','MovePivotFieldCommand','number','PositionType','PivotTableAdded','BeforePivotTableAdd','getDataFieldIdByDisplayName','endColumn','18uTwoMs','639598wRzNVe','ResetPivotFieldsConfigCommand','BeforePivotTableMove','_firePivotTableFieldSettingChangedEvent','getFieldCountByArea','[DataFieldManager]:\x20Data\x20is\x20not\x20a\x20valid\x20array','FEnum','find','PivotFilterOperatorEnum','_firePivotTableFieldMovedEvent','blank','SetPivotSubtotalTypeMutation','dataFieldsCollection','PivotViewCellValueTypeEnum','disposeWithMe','SetPivotCollapseCommand','AddPivotTableCommand','name','_firePivotTableFieldRemovedEvent','getNameWithColumnIndex','Event','_fireBeforeAddPivotTableEvent','_firePivotTableFieldFilterChangedEvent','PivotFilterTypeEnum','PivotTableFieldSettingChanged','subtotal','cancel','getPivotSourceData','getValueFields','PivotDataFieldDataTypeEnum','generatePivotTable','SetPivotSortCommand','Total\x20','getFieldSetting','PivotTableRendered','getResultByCalculate','concat','@univerjs/core','onCommandExecuted','fields','symbol','1181019ZgGkjW','Row','\x20failed.','endRow','RenamePivotFieldMutation','updateValuePosition','MovePivotTableCommand','params','getUnitId','isBottomTotal','152PuWhWH','PivotTableFieldCollapseChanged','Before\x20add\x20pivot\x20table\x20event\x20canceled','getUnit','3iPjymA','headerMap','Filter','[PivotTable]:\x20add\x20field\x20','setLabelManualFilter','FUniver','PivotTableValuePositionEnum','dispose','range','iterateFieldByArea','filterFields','removeField','pipe','Column','PivotTableFiledAreaEnum','_getSourceIdByName','PivotTableValuePositionChanged','PivotTableRemoved','col','getFieldIdsByArea','lifecycle$','getRowCount','4295WoGynG','getDataFieldByTableId','rowFields','AddPivotTableWithConfigCommand','_fireMovedPivotTableEvent','length','_firePivotTableFieldSortChangedEvent','addFieldWithSourceId','getFieldIds','getValueIndex','displayNameRecord','setDateGroupType','getPivotTableByCell','remove','PivotTableFieldSortChanged','_firePivotTableFieldCollapsedEvent','unitId','None','_id','getValueFilters','1007016hrKwmI','PivotTableFieldFilterChanged','_firePivotTableRemovedEvent','addValueFieldWithName','[Pivot\x20Table]:\x20The\x20field\x20id\x20is\x20undefined','8726100iGmHHi','forEach','_fireBeforeMovePivotTableEvent','count','setSubtotal','filter','addFieldWithName','Value','fieldsConfig','createCollection','RemovePivotTableMutation','getId','valueFilter'];_0x157a=function(){return _0x4aac2c;};return _0x157a();}function de(_0x39cbd6){return _0x39cbd6/0x3e8/0x15180+0x63e1;}function le(_0x31ba3a,_0x4ab472,_0x441300,_0x57e2bb){const _0x136f5a=_0x138703;var _0x1613ee,_0x2d04c6,_0x38693b,_0x176fa0,_0x1f85b3,_0x253911,_0x5c7465,_0x4f0ca3,_0x18ce7c,_0x2d015f,_0x259da9,_0xcc664d,_0x241e53,_0x566e70,_0x381123;const _0x32f740=[],_0x1c37ce=[],_0x4eba9c=[],{showRowGrandTotal:_0x4442c6,showRowSubTotal:_0x19c0e8}=_0x57e2bb,{cornerView:_0x13454c,colView:_0x42a633,rowView:_0x27b845,dataView:_0x5ca8b4,formatMap:_0x7e77b3}=_0x4ab472,_0x43dda0=_0x13454c[_0x136f5a(0x16e)](),_0x2e7e02=_0x13454c[_0x136f5a(0x10e)]();for(let _0x29ba40=0x0;_0x29ba40<_0x43dda0;_0x29ba40++)for(let _0x2ca61b=0x0;_0x2ca61b<_0x2e7e02;_0x2ca61b++){const _0x599e75={...(_0x2d04c6=(_0x1613ee=_0x13454c[_0x136f5a(0x1a9)])==null?void 0x0:_0x1613ee[_0x29ba40])==null?void 0x0:_0x2d04c6[_0x2ca61b]};_0x599e75['v']&&(_0x32f740[_0x29ba40]||(_0x32f740[_0x29ba40]=[]),_0x4eba9c[_0x29ba40]||(_0x4eba9c[_0x29ba40]=[]),_0x32f740[_0x29ba40][_0x2ca61b]=_0x599e75['v'],_0x4eba9c[_0x29ba40][_0x2ca61b]=_0x599e75['v']);}for(let _0x5e391e=0x0;_0x5e391e<_0x42a633[_0x136f5a(0x16e)]();_0x5e391e++){const _0x8ba6cc=(_0x176fa0=(_0x38693b=_0x42a633==null?void 0x0:_0x42a633[_0x136f5a(0x15a)])==null?void 0x0:_0x38693b[_0x5e391e])==null?void 0x0:_0x176fa0[_0x136f5a(0x19f)],_0x1cd986=_0x8ba6cc?_0x7e77b3[_0x8ba6cc]:'';for(let _0x7db14c=0x0;_0x7db14c<_0x42a633[_0x136f5a(0x10e)]();_0x7db14c++){const _0x4a451c={...(_0x253911=(_0x1f85b3=_0x42a633[_0x136f5a(0x1a9)])==null?void 0x0:_0x1f85b3[_0x5e391e])==null?void 0x0:_0x253911[_0x7db14c]};if((_0x4a451c==null?void 0x0:_0x4a451c['v'])!==void 0x0){let _0x557b45=_0x1cd986?m[_0x136f5a(0xe8)]['format'](_0x1cd986,Number(_0x4a451c['v'])):_0x4a451c['v'];(_0x4a451c==null?void 0x0:_0x4a451c['s'])===r[_0x136f5a(0xd1)][_0x136f5a(0xe2)]?_0x557b45=_0x441300?'小计\x20'+_0x557b45:_0x136f5a(0x142)+_0x557b45:(_0x4a451c==null?void 0x0:_0x4a451c['s'])===r[_0x136f5a(0xd1)][_0x136f5a(0x1a0)]&&(_0x557b45=_0x441300?_0x136f5a(0xc4)+_0x557b45:_0x136f5a(0xfd)+_0x557b45),(_0x4a451c==null?void 0x0:_0x4a451c['t'])===r[_0x136f5a(0x12f)][_0x136f5a(0x12c)]&&(_0x557b45=_0x441300?'(空白)':'(blank)'),_0x32f740[_0x5e391e]||(_0x32f740[_0x5e391e]=[]),_0x4eba9c[_0x5e391e]||(_0x4eba9c[_0x5e391e]=[]),_0x32f740[_0x5e391e][_0x7db14c+_0x2e7e02]=_0x557b45,_0x4eba9c[_0x5e391e][_0x7db14c+_0x2e7e02]=_0x557b45;}}}let _0x2aee87=0x0,_0x23c43c=0x0,_0x59f115=0x0;for(let _0x71bd1a=0x0;_0x71bd1a<_0x27b845[_0x136f5a(0x16e)]();_0x71bd1a++){const _0x47e561=_0x27b845[_0x136f5a(0xee)][_0x71bd1a];if(!_0x19c0e8&&_0x47e561[_0x136f5a(0x154)]&&_0x47e561[_0x136f5a(0x1a1)]!==0x0){_0x59f115++,_0x23c43c=0x0;continue;}if(!(!_0x4442c6&&_0x47e561[_0x136f5a(0x154)]&&_0x47e561[_0x136f5a(0x1a1)]===0x0)){for(let _0x3f6d84=0x0;_0x3f6d84<_0x27b845[_0x136f5a(0x10e)]();_0x3f6d84++){const _0x120761={...(_0x4f0ca3=(_0x5c7465=_0x27b845['data'])==null?void 0x0:_0x5c7465[_0x71bd1a])==null?void 0x0:_0x4f0ca3[_0x3f6d84]},_0x3b32a3=(_0x2d015f=(_0x18ce7c=_0x27b845==null?void 0x0:_0x27b845[_0x136f5a(0x15a)])==null?void 0x0:_0x18ce7c[_0x3f6d84])==null?void 0x0:_0x2d015f[_0x136f5a(0x19f)],_0x2c181c=_0x3b32a3?_0x7e77b3[_0x3b32a3]:'';if((_0x120761==null?void 0x0:_0x120761['v'])!==void 0x0){let _0x42368e=_0x2c181c?m[_0x136f5a(0xe8)][_0x136f5a(0x19e)](_0x2c181c,Number(_0x120761['v'])):_0x120761['v'];(_0x120761==null?void 0x0:_0x120761['s'])===r[_0x136f5a(0xd1)][_0x136f5a(0xe2)]?_0x42368e=_0x441300?'小计\x20'+_0x42368e:_0x136f5a(0x142)+_0x42368e:(_0x120761==null?void 0x0:_0x120761['s'])===r['PivotCellStyleTypeEnum'][_0x136f5a(0x1a0)]&&(_0x42368e=_0x441300?_0x136f5a(0xc4)+_0x42368e:_0x136f5a(0xfd)+_0x42368e),(_0x120761==null?void 0x0:_0x120761['t'])===r[_0x136f5a(0x12f)][_0x136f5a(0x12c)]&&(_0x42368e=_0x441300?'(空白)':'(blank)'),_0x32f740[_0x2aee87+_0x43dda0]||(_0x32f740[_0x2aee87+_0x43dda0]=[]);let _0x513cb0=_0x1c37ce[_0x59f115];_0x513cb0||(_0x513cb0=[..._0x4eba9c],_0x1c37ce[_0x59f115]=_0x513cb0),_0x513cb0[_0x23c43c+_0x43dda0]||(_0x513cb0[_0x23c43c+_0x43dda0]=[]),_0x513cb0[_0x23c43c+_0x43dda0][_0x3f6d84]=_0x42368e,_0x32f740[_0x2aee87+_0x43dda0][_0x3f6d84]=_0x42368e;}}_0x2aee87++,_0x27b845[_0x136f5a(0xee)][_0x71bd1a][_0x136f5a(0x154)]?(_0x59f115++,_0x23c43c=0x0):_0x23c43c++;}}_0x2aee87=0x0,_0x59f115=0x0,_0x23c43c=0x0;for(let _0x4017b2=0x0;_0x4017b2<_0x5ca8b4[_0x136f5a(0x16e)]();_0x4017b2++){const _0x2295d5=_0x27b845[_0x136f5a(0xee)][_0x4017b2];if(!_0x19c0e8&&_0x2295d5['isBottomTotal']&&_0x2295d5[_0x136f5a(0x1a1)]!==0x0){_0x59f115++,_0x23c43c=0x0;continue;}if(!(!_0x4442c6&&_0x2295d5['isBottomTotal']&&_0x2295d5[_0x136f5a(0x1a1)]===0x0)){for(let _0x4fd473=0x0;_0x4fd473<_0x5ca8b4[_0x136f5a(0x10e)]();_0x4fd473++){const _0x5a47db={...(_0xcc664d=(_0x259da9=_0x5ca8b4[_0x136f5a(0x1a9)])==null?void 0x0:_0x259da9[_0x4017b2])==null?void 0x0:_0xcc664d[_0x4fd473]};if(_0x5a47db['v']){const _0x46629e=_0x27b845['info'][_0x4017b2][_0x136f5a(0x103)],_0x2471b3=_0x42a633[_0x136f5a(0xee)][_0x4fd473]['valueIndex'],_0x40959a=Math[_0x136f5a(0xbe)](_0x46629e,_0x2471b3),_0x5e9ac3=_0x31ba3a[_0x136f5a(0x13e)]()[_0x136f5a(0x146)]();let _0x2ad87d='';_0x40959a<0x0?_0x2ad87d=(_0x241e53=_0x5e9ac3[0x0])!=null?_0x241e53:'':_0x2ad87d=(_0x566e70=_0x5e9ac3[_0x40959a])!=null?_0x566e70:'';const _0x4ca54e=(_0x381123=_0x7e77b3[_0x2ad87d])!=null?_0x381123:'';_0x32f740[_0x2aee87+_0x43dda0]||(_0x32f740[_0x2aee87+_0x43dda0]=[]);let _0x12914d=_0x1c37ce[_0x59f115];_0x12914d||(_0x12914d=[..._0x4eba9c],_0x1c37ce[_0x59f115]=_0x12914d),_0x12914d[_0x23c43c+_0x43dda0]||(_0x12914d[_0x23c43c+_0x43dda0]=[]);const _0x572b2f=_0x4ca54e?m[_0x136f5a(0xe8)][_0x136f5a(0x19e)](_0x4ca54e,Number(_0x5a47db['v'])):_0x5a47db['v'];_0x12914d[_0x23c43c+_0x43dda0][_0x4fd473+_0x2e7e02]=_0x572b2f,_0x32f740[_0x2aee87+_0x43dda0][_0x4fd473+_0x2e7e02]=_0x572b2f;}}_0x2aee87++,_0x27b845['info'][_0x4017b2][_0x136f5a(0x154)]?(_0x59f115++,_0x23c43c=0x0):_0x23c43c++;}}return{'dataArr':_0x32f740,'dataArrWithSplit':_0x1c37ce};}class re{constructor(_0x1b6c49,_0x3e7655,_0x45ffe1,_0x4f78fb){const _0x2b7927=_0x138703;y(this,_0x2b7927(0x100)),y(this,_0x2b7927(0xbf)),y(this,_0x2b7927(0xe7)),y(this,_0x2b7927(0x105)),y(this,_0x2b7927(0x181)),(this[_0x2b7927(0xe7)]=_0x1b6c49,this['_pivot']=_0x3e7655,this[_0x2b7927(0xbf)]=_0x45ffe1,this[_0x2b7927(0x181)]=_0x4f78fb);const _0x297489=this['_injector'][_0x2b7927(0x1a2)](m[_0x2b7927(0x102)]);this[_0x2b7927(0x105)]=_0x297489[_0x2b7927(0x107)]()===m[_0x2b7927(0xdf)]['ZH_CN'];}['_getSourceIdByName'](_0x583e34){const _0x4883ea=_0x138703,_0x3e957b=this[_0x4883ea(0x100)][_0x4883ea(0x11f)](_0x583e34);if(!_0x3e957b)throw new Error('[PivotTable]:\x20The\x20field\x20name\x20'+_0x583e34+'\x20is\x20not\x20found\x20in\x20the\x20pivot\x20table.');return _0x3e957b;}[_0x138703(0x18e)](_0xcf428a,_0x42ac22){const _0x4147a5=_0x138703,_0x32f47e=this['_getSourceIdByName'](_0xcf428a),_0x50a24b=this[_0x4147a5(0x100)][_0x4147a5(0x176)](_0x32f47e,_0x42ac22);if(!_0x50a24b)throw new Error(_0x4147a5(0x15c)+_0xcf428a+_0x4147a5(0x14d));if(_0x42ac22===r[_0x4147a5(0x167)][_0x4147a5(0x18f)]){const _0x25e72e=_0x50a24b['getId'](),_0x16e714=this[_0x4147a5(0x100)][_0x4147a5(0x170)](_0x25e72e);if(_0x16e714){const _0x2d9ba7=_0x16e714==null?void 0x0:_0x16e714[_0x4147a5(0xed)]();this[_0x4147a5(0x100)][_0x4147a5(0xda)](_0x25e72e,_0x2d9ba7===r['PivotDataFieldDataTypeEnum']['number']?r['PivotSubtotalTypeEnum']['sum']:r[_0x4147a5(0xeb)][_0x4147a5(0x18b)]);}const _0x5a9a58=this[_0x4147a5(0x100)][_0x4147a5(0x178)](),_0x1611b5=this[_0x4147a5(0x100)][_0x4147a5(0xd3)](),_0x580148=this[_0x4147a5(0x100)][_0x4147a5(0x126)](r[_0x4147a5(0x167)][_0x4147a5(0x18f)]);if(_0x5a9a58===-0x1&&_0x580148>0x1){const _0x4409fb=_0x1611b5===r[_0x4147a5(0x15f)][_0x4147a5(0x180)]?r[_0x4147a5(0x15f)]['Column']:_0x1611b5,_0x560ee5=_0x4409fb===r[_0x4147a5(0x15f)][_0x4147a5(0x14c)]?r[_0x4147a5(0x167)][_0x4147a5(0x14c)]:r[_0x4147a5(0x167)][_0x4147a5(0x166)];this['_pivot'][_0x4147a5(0x150)](_0x4409fb,this['_pivot'][_0x4147a5(0x126)](_0x560ee5));}}else{if(_0x42ac22===r[_0x4147a5(0x167)][_0x4147a5(0x14c)]||_0x42ac22===r[_0x4147a5(0x167)][_0x4147a5(0x166)]){const _0x3a10de=_0x50a24b[_0x4147a5(0x193)](),_0x2562c6=this['_pivot'][_0x4147a5(0x170)](_0x3a10de);if(_0x2562c6&&(_0x2562c6==null?void 0x0:_0x2562c6[_0x4147a5(0xed)]())===r[_0x4147a5(0x13f)]['date']){const _0x5b52ad=_0x2562c6[_0x4147a5(0xf5)]();_0x5b52ad&&this[_0x4147a5(0x100)][_0x4147a5(0xc8)](_0x3a10de,_0x5b52ad);}}}return _0x50a24b;}['addFilterFieldWithName'](_0x4b3e22,_0x32c564){const _0xf8a2c8=_0x138703,_0x1c1670=this[_0xf8a2c8(0x168)](_0x4b3e22),_0x2c9b40=this[_0xf8a2c8(0x100)][_0xf8a2c8(0x176)](_0x1c1670,r[_0xf8a2c8(0x167)]['Filter']);return _0x2c9b40[_0xf8a2c8(0x199)](_0x32c564),_0x2c9b40;}[_0x138703(0x186)](_0x1705b5,_0x4ea5c4){const _0x5913d0=_0x138703,_0x20b887=this['addFieldWithName'](_0x1705b5,r[_0x5913d0(0x167)][_0x5913d0(0x18f)]);return _0x4ea5c4!=null&&_0x4ea5c4[_0x5913d0(0x13b)]&&_0x20b887[_0x5913d0(0x18c)](_0x4ea5c4==null?void 0x0:_0x4ea5c4['subtotal']),_0x20b887;}['removeFieldWithName'](_0x37f5c3){const _0x3bf8b7=_0x138703,_0x10347d=this[_0x3bf8b7(0x168)](_0x37f5c3);this[_0x3bf8b7(0x100)]['getTableFieldsByDataFieldId'](_0x10347d)[_0x3bf8b7(0x189)](_0x591075=>{const _0x534105=_0x3bf8b7,_0x47ddab=_0x591075[_0x534105(0x193)]();this['_pivot']['removeField'](_0x47ddab);});}[_0x138703(0x145)](_0xb238dd={}){const _0x49d858=_0x138703,_0x229a13=this[_0x49d858(0x100)][_0x49d858(0x1ac)](),{dataArr:_0x11c0c0,dataArrWithSplit:_0x2db76b}=le(this['_pivot'],_0x229a13,this[_0x49d858(0x105)],_0xb238dd);return{'dataArr':_0x11c0c0,'dataArrWithSplit':_0x2db76b};}[_0x138703(0x135)](_0x2e6c31){const _0x2fbbeb=_0x138703;return this[_0x2fbbeb(0x100)][_0x2fbbeb(0xc6)]()[_0x2e6c31];}[_0x138703(0x119)](){const _0x2c568e=_0x138703;this['_pivot'][_0x2c568e(0x119)]();}['resetDimension'](_0x3b65a7){const _0x25c440=_0x138703;this[_0x25c440(0x100)][_0x25c440(0x119)](_0x3b65a7);}[_0x138703(0xff)](_0x18e359){const _0x455692=_0x138703,_0x13f1c7=this[_0x455692(0x100)]['dataFieldsCollection'],_0x14795b=_0x13f1c7[_0x455692(0x177)]()[_0x18e359];if(_0x14795b)return _0x13f1c7[_0x455692(0xdb)](_0x14795b)['getFieldDataType']();}[_0x138703(0xfc)](_0x48a559){const _0x465a0f=_0x138703,_0x2d0c99=this[_0x465a0f(0x168)](_0x48a559),_0x4105a5=this[_0x465a0f(0x100)][_0x465a0f(0x12e)]['getFieldById'](_0x2d0c99);return _0x4105a5==null?void 0x0:_0x4105a5[_0x465a0f(0xed)]();}[_0x138703(0xd7)](){const _0x2540be=_0x138703,_0x4dc55a={};return[[r[_0x2540be(0x167)][_0x2540be(0x14c)],'row'],[r[_0x2540be(0x167)][_0x2540be(0x166)],'column'],[r[_0x2540be(0x167)][_0x2540be(0x15b)],_0x2540be(0x18d)],[r['PivotTableFiledAreaEnum'][_0x2540be(0x18f)],_0x2540be(0xd8)]]['forEach'](_0x178bc9=>{const _0x44f57a=_0x2540be,[_0x30c1f8,_0x324f78]=_0x178bc9;this[_0x44f57a(0x100)][_0x44f57a(0x162)](_0x30c1f8,_0xd253fe=>{const _0x35a819=_0x44f57a;_0x4dc55a[_0x324f78]||(_0x4dc55a[_0x324f78]=[]),_0x4dc55a[_0x324f78]['push'](_0xd253fe[_0x35a819(0xcb)]());});}),Object[_0x2540be(0xe6)](_0x4dc55a)[_0x2540be(0x174)]>0x0?_0x4dc55a:void 0x0;}[_0x138703(0x13d)](){const _0x50bc2c=_0x138703;return this[_0x50bc2c(0xbf)];}['setOptions'](_0x2feedf){this['_pivot']['setOptions'](_0x2feedf);}[_0x138703(0x17c)](){const _0xb2ead8=_0x138703;this[_0xb2ead8(0x100)][_0xb2ead8(0x160)]();}}class ve extends r['DataFieldManager']{[_0x138703(0xf2)](_0x5ec594){const _0x387ca6=_0x138703;if(Array['isArray'](_0x5ec594)&&_0x5ec594[_0x387ca6(0x174)]>0x0){const _0x2e57ef=[],_0x28a9a7=_0x5ec594[0x0],_0x6c0ce4={},_0x441183=_0x5ec594[0x1];for(let _0x271e0c=0x0;_0x271e0c<_0x441183[_0x387ca6(0x174)];_0x271e0c++){const _0x4f344d=_0x441183[_0x271e0c];if(typeof _0x4f344d=='object'&&_0x4f344d instanceof Date)_0x6c0ce4[_0x271e0c]=Z;else{if(typeof _0x4f344d==_0x387ca6(0x112)){const _0x2a72d4=new Date(_0x4f344d);Number['isNaN'](_0x2a72d4[_0x387ca6(0xc7)]())||(_0x6c0ce4[_0x271e0c]=Z);}}}for(let _0x50c571=0x1;_0x50c571<_0x5ec594['length'];_0x50c571++){const _0x2976a7=_0x5ec594[_0x50c571],_0x369c04=[];for(let _0x3c9f98=0x0;_0x3c9f98<_0x2976a7['length'];_0x3c9f98++)if(_0x6c0ce4[_0x3c9f98]){const _0xc8e9d7=_0x2976a7[_0x3c9f98],_0x285016=typeof _0xc8e9d7==_0x387ca6(0xfe)&&_0xc8e9d7 instanceof Date?_0xc8e9d7:new Date(_0xc8e9d7),_0x10a085={'v':de(_0x285016[_0x387ca6(0xc7)]()),'f':_0x6c0ce4[_0x3c9f98]};_0x369c04[_0x387ca6(0xdc)](_0x10a085);}else _0x369c04[_0x387ca6(0xdc)](_0x2976a7[_0x3c9f98]);_0x2e57ef[_0x387ca6(0xdc)](_0x369c04);}return{'header':_0x28a9a7,'data':_0x2e57ef};}else throw new Error(_0x387ca6(0x127));}}class ce extends A[_0x138703(0x15e)]{[_0x138703(0x195)](_0x160697){const _0x54ea87=_0x138703,_0x4b1905=_0x160697['get'](m[_0x54ea87(0xec)]);this['registerEventHandler'](this[_0x54ea87(0x136)][_0x54ea87(0x11e)],()=>_0x4b1905[_0x54ea87(0xdd)](_0x200abf=>{const _0x4f438f=_0x54ea87;switch(_0x200abf['id']){case l[_0x4f438f(0x151)]['id']:{const _0x2f9de3=_0x200abf['params'];this[_0x4f438f(0x18a)](_0x2f9de3);break;}}})),this[_0x54ea87(0xef)](this[_0x54ea87(0x136)][_0x54ea87(0x124)],()=>_0x4b1905['beforeCommandExecuted'](_0x286771=>{const _0x1134ff=_0x54ea87;switch(_0x286771['id']){case l['AddPivotTableWithConfigCommand']['id']:case l[_0x1134ff(0x132)]['id']:{const _0x3826bf=_0x286771['params'];this['_fireBeforeAddPivotTableEvent'](_0x3826bf);break;}}})),this['registerEventHandler'](this[_0x54ea87(0x136)]['PivotTableAdded'],()=>_0x4b1905[_0x54ea87(0x148)](_0x1dbecd=>{const _0x2fb759=_0x54ea87;if(_0x1dbecd['id']===l[_0x2fb759(0x172)]['id']||_0x1dbecd['id']===l[_0x2fb759(0x132)]['id']){const _0x773147=_0x1dbecd[_0x2fb759(0x152)];this[_0x2fb759(0xce)](_0x773147);}})),this[_0x54ea87(0xef)](this['Event'][_0x54ea87(0xe4)],()=>_0x4b1905['onCommandExecuted'](_0x44febd=>{const _0x3d31ce=_0x54ea87;if(_0x44febd['id']===l[_0x3d31ce(0x151)]['id']){const _0x502b77=_0x44febd[_0x3d31ce(0x152)];this[_0x3d31ce(0x173)](_0x502b77);}})),this['registerEventHandler'](this[_0x54ea87(0x136)][_0x54ea87(0x16a)],()=>_0x4b1905[_0x54ea87(0x148)](_0x423c24=>{const _0x52b8bc=_0x54ea87;if(_0x423c24['id']===l[_0x52b8bc(0x192)]['id']){const _0x568eff=_0x423c24[_0x52b8bc(0x152)];this[_0x52b8bc(0x185)](_0x568eff);}})),this['registerEventHandler'](this[_0x54ea87(0x136)][_0x54ea87(0x196)],()=>_0x4b1905['onCommandExecuted'](_0x45fd96=>{const _0x25c2b9=_0x54ea87;if(_0x45fd96['id']===l[_0x25c2b9(0xf7)]['id']){const _0x91b2e6=_0x45fd96[_0x25c2b9(0x152)];this[_0x25c2b9(0xe0)](_0x91b2e6);}})),this['registerEventHandler'](this[_0x54ea87(0x136)][_0x54ea87(0x116)],()=>_0x4b1905['onCommandExecuted'](_0x2bb7d5=>{const _0x381632=_0x54ea87;if(_0x2bb7d5['id']===l[_0x381632(0x19a)]['id']){const _0x1dbdf8=_0x2bb7d5[_0x381632(0x152)];this[_0x381632(0x134)](_0x1dbdf8);}})),this[_0x54ea87(0xef)](this['Event'][_0x54ea87(0xbd)],()=>_0x4b1905['onCommandExecuted'](_0x25338d=>{const _0x5c596f=_0x54ea87;if(_0x25338d['id']===l[_0x5c596f(0x11a)]['id']){const _0x1f5031=_0x25338d['params'];this[_0x5c596f(0x12b)](_0x1f5031);}})),this[_0x54ea87(0xef)](this[_0x54ea87(0x136)][_0x54ea87(0x156)],()=>_0x4b1905[_0x54ea87(0x148)](_0xc3bce9=>{const _0x4cf568=_0x54ea87;if(_0xc3bce9['id']===l[_0x4cf568(0x131)]['id']){const _0x21b5b0=_0xc3bce9[_0x4cf568(0x152)];this['_firePivotTableFieldCollapsedEvent'](_0x21b5b0);}})),this[_0x54ea87(0xef)](this[_0x54ea87(0x136)][_0x54ea87(0x184)],()=>_0x4b1905['onCommandExecuted'](_0x3db1b7=>{const _0x3d79a7=_0x54ea87;if(_0x3db1b7['id']===l['SetPivotFilterCommand']['id']){const _0x420b62=_0x3db1b7['params'];this[_0x3d79a7(0x138)](_0x420b62);}})),this[_0x54ea87(0xef)](this[_0x54ea87(0x136)]['PivotTableFieldSortChanged'],()=>_0x4b1905[_0x54ea87(0x148)](_0x3c9ed7=>{const _0x58ec83=_0x54ea87;if(_0x3c9ed7['id']===l[_0x58ec83(0x141)]['id']){const _0x2428be=_0x3c9ed7['params'];this[_0x58ec83(0x175)](_0x2428be);}})),this[_0x54ea87(0xef)](this[_0x54ea87(0x136)][_0x54ea87(0x13a)],()=>_0x4b1905['onCommandExecuted'](_0x51b659=>{const _0x55ead0=_0x54ea87;if(_0x51b659['id']===l['UpdatePivotFieldSettingCommand']['id']){const _0x3a8223=_0x51b659[_0x55ead0(0x152)];this[_0x55ead0(0x125)](_0x3a8223);}})),this[_0x54ea87(0xef)](this[_0x54ea87(0x136)][_0x54ea87(0x169)],()=>_0x4b1905[_0x54ea87(0x148)](_0xec51ee=>{const _0x39f069=_0x54ea87;if(_0xec51ee['id']===l['UpdatePivotValuePositionCommand']['id']){const _0x1fc4f1=_0xec51ee[_0x39f069(0x152)];this[_0x39f069(0x197)](_0x1fc4f1);}}));const _0x4ab196=_0x160697['get'](m[_0x54ea87(0x1ab)]);this[_0x54ea87(0x130)](_0x4ab196[_0x54ea87(0x16d)][_0x54ea87(0x10f)](_0x18992c=>{const _0x58c838=_0x54ea87;if(_0x18992c===m[_0x58c838(0xcf)]['Ready']){const _0x4e1dab=_0x160697[_0x58c838(0x1a2)](l[_0x58c838(0xd5)]);this[_0x58c838(0xef)](this[_0x58c838(0x136)][_0x58c838(0x144)],()=>_0x4e1dab[_0x58c838(0xd9)][_0x58c838(0x165)](ie[_0x58c838(0xd6)](0x32))[_0x58c838(0x10f)](_0x3a7c3e=>{this['_fireRenderPivotTableEvent'](_0x3a7c3e);}));}}));}[_0x138703(0xe0)](_0x28b1a0){const _0x1b2199=_0x138703;if(_0x28b1a0){const {unitId:_0x398e84,subUnitId:_0x56cbb3,pivotTableId:_0xf8d023,dataFieldId:_0x55dcc5,fieldArea:_0x2ad94e,index:_0x225a10}=_0x28b1a0;this[_0x1b2199(0x118)](this[_0x1b2199(0x136)][_0x1b2199(0x196)],{'unitId':_0x398e84,'subUnitId':_0x56cbb3,'pivotTableId':_0xf8d023,'dataFieldId':_0x55dcc5,'fieldArea':_0x2ad94e,'index':_0x225a10});}}['_firePivotTableFieldRemovedEvent'](_0x1acf3c){const _0x105dfd=_0x138703;if(_0x1acf3c){const {unitId:_0x2057a0,subUnitId:_0xf67fd1,pivotTableId:_0x1f1166,fieldIds:_0x49c92f}=_0x1acf3c;this[_0x105dfd(0x118)](this[_0x105dfd(0x136)][_0x105dfd(0x116)],{'unitId':_0x2057a0,'subUnitId':_0xf67fd1,'pivotTableId':_0x1f1166,'fieldIds':_0x49c92f[_0x105dfd(0x146)]()});}}[_0x138703(0x12b)](_0x5c5585){const _0x5780c9=_0x138703;if(_0x5c5585){const {unitId:_0x5608f2,subUnitId:_0x1510fa,pivotTableId:_0x3b13e3,fieldId:_0xc2a0cc,area:_0x5f5cf7,index:_0x32d986}=_0x5c5585;this[_0x5780c9(0x118)](this[_0x5780c9(0x136)][_0x5780c9(0xbd)],{'unitId':_0x5608f2,'subUnitId':_0x1510fa,'pivotTableId':_0x3b13e3,'fieldId':_0xc2a0cc,'area':_0x5f5cf7,'index':_0x32d986});}}[_0x138703(0x17e)](_0xb6031b){const _0x2f2464=_0x138703;if(_0xb6031b){const {unitId:_0x558c53,subUnitId:_0x469120,row:_0x568d99,col:_0x54c644,collapse:_0x27f362}=_0xb6031b;this[_0x2f2464(0x118)](this[_0x2f2464(0x136)][_0x2f2464(0x156)],{'unitId':_0x558c53,'subUnitId':_0x469120,'row':_0x568d99,'col':_0x54c644,'collapse':_0x27f362});}}[_0x138703(0x138)](_0x2f2f51){const _0x3392c8=_0x138703;if(_0x2f2f51){const {unitId:_0x4656f2,subUnitId:_0x1d20db,pivotTableId:_0x3022d2,tableFieldId:_0x4ff50c,items:_0x576172,isAll:_0x51909b}=_0x2f2f51;this['fireEvent'](this['Event'][_0x3392c8(0x184)],{'unitId':_0x4656f2,'subUnitId':_0x1d20db,'pivotTableId':_0x3022d2,'tableFieldId':_0x4ff50c,'items':_0x576172[_0x3392c8(0x146)](),'isAll':_0x51909b});}}[_0x138703(0x175)](_0x2e2eea){const _0x3edcaa=_0x138703;if(_0x2e2eea){const {unitId:_0xc677c3,subUnitId:_0xe0aeb6,pivotTableId:_0x5ea5b4,tableFieldId:_0x1ecc9f,info:_0x3633f1}=_0x2e2eea;this[_0x3edcaa(0x118)](this[_0x3edcaa(0x136)]['PivotTableFieldSortChanged'],{'unitId':_0xc677c3,'subUnitId':_0xe0aeb6,'pivotTableId':_0x5ea5b4,'tableFieldId':_0x1ecc9f,'info':{..._0x3633f1}});}}[_0x138703(0x125)](_0x1f2b45){const _0xad23a8=_0x138703;if(_0x1f2b45){const {unitId:_0x185200,subUnitId:_0x480833,tableFieldId:_0x5471e2,pivotTableId:_0x3a2009,displayName:_0x241772,format:_0x53b89e,subtotalType:_0x46c69e,tableFieldInfo:_0x3aa80d,dataFieldInfo:_0x62a6ca}=_0x1f2b45;this[_0xad23a8(0x118)](this[_0xad23a8(0x136)][_0xad23a8(0x13a)],{'unitId':_0x185200,'subUnitId':_0x480833,'tableFieldId':_0x5471e2,'pivotTableId':_0x3a2009,'displayName':_0x241772,'format':_0x53b89e,'subtotalType':_0x46c69e,'tableFieldInfo':_0x3aa80d,'dataFieldInfo':_0x62a6ca});}}[_0x138703(0x197)](_0x22993a){const _0x5f4a4f=_0x138703;if(_0x22993a){const {pivotTableId:_0x338490,position:_0x3bf96c,index:_0x194fb2}=_0x22993a;this[_0x5f4a4f(0x118)](this[_0x5f4a4f(0x136)][_0x5f4a4f(0x169)],{'pivotTableId':_0x338490,'position':_0x3bf96c,'index':_0x194fb2});}}[_0x138703(0xce)](_0x4b5477){const _0x38e02f=_0x138703;if(_0x4b5477){const {positionType:_0x411740,pivotTableId:_0x1495bf,pivotTableConfig:_0x441b0e}=_0x4b5477,{targetCellInfo:_0x3a4b9a,sourceRangeInfo:_0x492f28}=_0x441b0e,{unitId:_0x188e8f}=_0x3a4b9a;this[_0x38e02f(0x118)](this[_0x38e02f(0x136)][_0x38e02f(0x11d)],{'unitId':_0x188e8f,'positionType':_0x411740,'pivotTableId':_0x1495bf,'sourceRangeInfo':{'startRow':_0x492f28[_0x38e02f(0x161)][_0x38e02f(0x19b)],'endRow':_0x492f28[_0x38e02f(0x161)][_0x38e02f(0x14e)],'startColumn':_0x492f28[_0x38e02f(0x161)]['startColumn'],'endColumn':_0x492f28[_0x38e02f(0x161)][_0x38e02f(0x120)],'unitId':_0x492f28[_0x38e02f(0x17f)],'subUnitId':_0x492f28[_0x38e02f(0xc0)],'sheetName':_0x492f28[_0x38e02f(0x1a3)]},'targetCellInfo':{'row':_0x3a4b9a[_0x38e02f(0xc3)],'column':_0x3a4b9a[_0x38e02f(0x16b)],'sheetName':_0x3a4b9a[_0x38e02f(0x1a3)],'unitId':_0x3a4b9a['unitId'],'subUnitId':_0x3a4b9a[_0x38e02f(0xc0)]}});}}[_0x138703(0x137)](_0x26d2bc){const _0x340161=_0x138703;if(_0x26d2bc){const {positionType:_0x18dbaf,pivotTableId:_0x4fe8b6,pivotTableConfig:_0x33bbeb}=_0x26d2bc,{targetCellInfo:_0x441cbe,sourceRangeInfo:_0x159dd6}=_0x33bbeb,{unitId:_0x2ac674}=_0x441cbe,_0x37838f={'unitId':_0x2ac674,'positionType':_0x18dbaf,'pivotTableId':_0x4fe8b6,'sourceRangeInfo':{'startRow':_0x159dd6[_0x340161(0x161)]['startRow'],'endRow':_0x159dd6['range'][_0x340161(0x14e)],'startColumn':_0x159dd6[_0x340161(0x161)]['startColumn'],'endColumn':_0x159dd6[_0x340161(0x161)][_0x340161(0x120)],'unitId':_0x159dd6[_0x340161(0x17f)],'subUnitId':_0x159dd6[_0x340161(0xc0)],'sheetName':_0x159dd6[_0x340161(0x1a3)]},'targetCellInfo':{'row':_0x441cbe['row'],'column':_0x441cbe[_0x340161(0x16b)],'sheetName':_0x441cbe[_0x340161(0x1a3)],'unitId':_0x441cbe[_0x340161(0x17f)],'subUnitId':_0x441cbe[_0x340161(0xc0)]},'cancel':!0x1};if(this[_0x340161(0x118)](this[_0x340161(0x136)][_0x340161(0x11e)],_0x37838f),_0x37838f[_0x340161(0x13c)])throw new Error(_0x340161(0x157));}}[_0x138703(0x185)](_0x1b2582){const _0x14038b=_0x138703;if(_0x1b2582){const {unitId:_0x31e8b4,pivotTableId:_0x31fc34}=_0x1b2582;this[_0x14038b(0x118)](this[_0x14038b(0x136)][_0x14038b(0x16a)],{'unitId':_0x31e8b4,'pivotTableId':_0x31fc34});}}['_fireBeforeMovePivotTableEvent'](_0x1f8b7f){const _0x5b80d1=_0x138703;if(_0x1f8b7f){const {originTargetInfo:_0x558f06,pivotTableId:_0x55e4bd,targetCellInfo:_0x19d2e4}=_0x1f8b7f,{unitId:_0x47c185}=_0x558f06,_0x20788f=this['_injector'][_0x5b80d1(0x1a2)](l['SheetsPivotTableConfigModel'])[_0x5b80d1(0x104)](_0x558f06[_0x5b80d1(0x17f)],_0x558f06['subUnitId'],_0x55e4bd);if(!_0x20788f)return;const _0x403669={'unitId':_0x47c185,'pivotTableId':_0x55e4bd,'originTargetInfo':{'row':_0x20788f[_0x5b80d1(0xe3)][_0x5b80d1(0xc3)],'column':_0x20788f['targetCellInfo'][_0x5b80d1(0x16b)],'unitId':_0x20788f[_0x5b80d1(0xe3)][_0x5b80d1(0x17f)],'subUnitId':_0x20788f[_0x5b80d1(0xe3)][_0x5b80d1(0xc0)]},'targetCellInfo':{'row':_0x19d2e4[_0x5b80d1(0xc3)],'column':_0x19d2e4[_0x5b80d1(0x16b)],'unitId':_0x19d2e4[_0x5b80d1(0x17f)],'subUnitId':_0x19d2e4[_0x5b80d1(0xc0)]},'cancel':!0x1};if(this['fireEvent'](this[_0x5b80d1(0x136)][_0x5b80d1(0x124)],_0x403669),_0x403669[_0x5b80d1(0x13c)])throw new Error('Before\x20move\x20pivot\x20table\x20event\x20canceled');}}[_0x138703(0x173)](_0x1786ff){const _0x1551fe=_0x138703;if(_0x1786ff){const {originTargetInfo:_0x11cd76,pivotTableId:_0x4f25ff,targetCellInfo:_0x2b06b9}=_0x1786ff,{unitId:_0x586046}=_0x11cd76,_0x5eef3b=this[_0x1551fe(0xe7)][_0x1551fe(0x1a2)](l['SheetsPivotTableConfigModel'])['getPivotTableConfig'](_0x11cd76[_0x1551fe(0x17f)],_0x11cd76['subUnitId'],_0x4f25ff);if(!_0x5eef3b)return;this[_0x1551fe(0x118)](this['Event']['PivotTableMoved'],{'unitId':_0x586046,'pivotTableId':_0x4f25ff,'originTargetInfo':{'row':_0x5eef3b[_0x1551fe(0xe3)]['row'],'column':_0x5eef3b[_0x1551fe(0xe3)][_0x1551fe(0x16b)],'unitId':_0x5eef3b['targetCellInfo']['unitId'],'subUnitId':_0x5eef3b['targetCellInfo']['subUnitId']},'targetCellInfo':{'row':_0x2b06b9[_0x1551fe(0xc3)],'column':_0x2b06b9[_0x1551fe(0x16b)],'unitId':_0x2b06b9['unitId'],'subUnitId':_0x2b06b9[_0x1551fe(0xc0)]}});}}['_fireRenderPivotTableEvent'](_0x52162e){const _0x5a6e74=_0x138703;if(_0x52162e){const {unitId:_0x56571b,subUnitId:_0x49916b,pivotTableId:_0x4291e3,type:_0x338ba7,rangesCache:_0xb6293a,isEmpty:_0x58a74e}=_0x52162e;this['fireEvent'](this[_0x5a6e74(0x136)]['PivotTableRendered'],{'unitId':_0x56571b,'subUnitId':_0x49916b,'pivotTableId':_0x4291e3,'changeType':_0x338ba7,'isEmpty':!!_0x58a74e,'rangeInfo':_0xb6293a});}}[_0x138703(0x140)](_0x17f7b0,_0x14aa8f){const _0x426f70=_0x138703,_0x16b836=(_0x14aa8f?new _0x14aa8f():new ve())[_0x426f70(0x191)](_0x426f70(0x1a9),_0x17f7b0),_0x2a7a97=_0x17f7b0[0x0];_0x16b836[_0x426f70(0x177)]()['forEach']((_0x1448e9,_0x333027)=>{const _0x457856=_0x426f70;_0x16b836[_0x457856(0xd4)](_0x1448e9,_0x2a7a97[_0x333027]);});const _0x5a50e2=r['generateHexNumber'](0x8),_0x356cf0=new r['PivotTable'](_0x16b836,void 0x0,_0x5a50e2);return new re(this[_0x426f70(0xe7)],_0x356cf0,_0x17f7b0,_0x5a50e2);}}A[_0x138703(0x15e)][_0x138703(0x1a4)](ce);
1
+ 'use strict';const _0x483097=_0x1967;(function(_0x2eeb65,_0x176b58){const _0x58735e=_0x1967,_0x1d99a5=_0x2eeb65();while(!![]){try{const _0x8c0770=parseInt(_0x58735e(0xc4))/0x1+-parseInt(_0x58735e(0x15f))/0x2+parseInt(_0x58735e(0x9a))/0x3+parseInt(_0x58735e(0xd1))/0x4+-parseInt(_0x58735e(0xea))/0x5+-parseInt(_0x58735e(0xba))/0x6+-parseInt(_0x58735e(0xb0))/0x7*(-parseInt(_0x58735e(0x16c))/0x8);if(_0x8c0770===_0x176b58)break;else _0x1d99a5['push'](_0x1d99a5['shift']());}catch(_0x1aba1b){_0x1d99a5['push'](_0x1d99a5['shift']());}}}(_0xba91,0x41923));var ee=Object[_0x483097(0x173)],te=(_0x4eb5e5,_0x314f87,_0x208ebc)=>_0x314f87 in _0x4eb5e5?ee(_0x4eb5e5,_0x314f87,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x208ebc}):_0x4eb5e5[_0x314f87]=_0x208ebc,y=(_0x408ef1,_0x357d8d,_0x50fd59)=>te(_0x408ef1,typeof _0x357d8d!=_0x483097(0x12c)?_0x357d8d+'':_0x357d8d,_0x50fd59);const r=require(_0x483097(0x103)),l=require(_0x483097(0xf3)),m=require(_0x483097(0x132)),R=require(_0x483097(0x137)),A=require(_0x483097(0x102)),ie=require('rxjs');class x{constructor(_0x259eab,_0x5790fb,_0x545d21,_0x562478){const _0x163100=_0x483097;y(this,_0x163100(0xda)),y(this,'subUnitId'),y(this,'pivotTableId'),y(this,_0x163100(0x168)),(this[_0x163100(0xda)]=_0x259eab,this['subUnitId']=_0x5790fb,this[_0x163100(0x8c)]=_0x545d21,this[_0x163100(0x168)]=_0x562478);}[_0x483097(0x150)](){const _0x21f245=_0x483097;return this[_0x21f245(0x168)][_0x21f245(0xcb)](l['SheetsPivotTableConfigModel'])['getPivotTableConfig'](this[_0x21f245(0xda)],this[_0x21f245(0x8d)],this[_0x21f245(0x8c)]);}[_0x483097(0x14b)](_0x84a4ad){const _0x31f72e=_0x483097,_0x30ce55=this['_injector'][_0x31f72e(0xcb)](m['ICommandService']),_0x2299ae={'unitId':this[_0x31f72e(0xda)],'subUnitId':this[_0x31f72e(0x8d)],'pivotTableId':this[_0x31f72e(0x8c)],'pivotTableConfig':_0x84a4ad};return _0x30ce55['executeCommand'](l['SetPivotFieldsConfigCommand']['id'],_0x2299ae);}['reset'](_0x2afd5c){const _0xadc1e9=_0x483097,_0x1bd4f4=this[_0xadc1e9(0x168)][_0xadc1e9(0xcb)](m[_0xadc1e9(0xa0)]),_0x14fe0b={'unitId':this[_0xadc1e9(0xda)],'subUnitId':this[_0xadc1e9(0x8d)],'pivotTableId':this[_0xadc1e9(0x8c)],'resetArea':_0x2afd5c};return _0x1bd4f4[_0xadc1e9(0x93)](l[_0xadc1e9(0xf9)]['id'],_0x14fe0b);}['getPivotTableId'](){return this['pivotTableId'];}[_0x483097(0x97)](_0x4e85e5){const _0x399ee9=_0x483097,_0x392f3a=this['_injector'][_0x399ee9(0xcb)](l[_0x399ee9(0xe0)])[_0x399ee9(0x144)](this[_0x399ee9(0xda)],this[_0x399ee9(0x8d)],this['pivotTableId']),_0x2f54fb=_0x392f3a==null?void 0x0:_0x392f3a['fieldsConfig'];if(_0x2f54fb)return _0x2f54fb[_0x399ee9(0x91)][_0x4e85e5]||_0x2f54fb['measure'][_0x4e85e5];}[_0x483097(0x140)](){const _0x17fedf=_0x483097,_0x1a1d6c=this[_0x17fedf(0x168)],_0x2b7302=this['unitId'],_0x496ffd=this[_0x17fedf(0x8c)],_0x321d52=_0x1a1d6c[_0x17fedf(0xcb)](l['SheetsPivotTableConfigModel'])['getCollection'](_0x2b7302,_0x496ffd);if(_0x321d52){const _0x42d535=_0x321d52[_0x17fedf(0x121)],_0x561647=_0x321d52[_0x17fedf(0xf2)],_0x275367=_0x321d52[_0x17fedf(0x163)],_0x245ff8=[];for(const _0x23f3f0 of _0x42d535){const _0xeb3e0b=_0x561647[_0x23f3f0];if(_0xeb3e0b){const _0x973d7d={'id':_0x23f3f0,'name':_0xeb3e0b[_0x17fedf(0xd2)],'fieldDataType':_0xeb3e0b['fieldDataType']};_0x275367&&_0x275367[_0x23f3f0]!==void 0x0&&(_0x973d7d[_0x17fedf(0x101)]=_0x275367[_0x23f3f0]),_0x245ff8['push'](_0x973d7d);}}return _0x245ff8;}return[];}[_0x483097(0xa8)](_0x350287){const _0x18a764=_0x483097;var _0x286cb3;const _0x5a7064=this[_0x18a764(0x168)][_0x18a764(0xcb)](l['SheetsPivotTableConfigModel'])[_0x18a764(0x144)](this[_0x18a764(0xda)],this['subUnitId'],this[_0x18a764(0x8c)]),_0xfd49fb=_0x5a7064==null?void 0x0:_0x5a7064[_0x18a764(0x10b)]['valueFilter'];return(_0x286cb3=_0xfd49fb==null?void 0x0:_0xfd49fb[_0x18a764(0xb8)](_0xa4ffb7=>_0xa4ffb7[_0x18a764(0x159)]===_0x350287))==null?void 0x0:_0x286cb3['filterInfo'];}[_0x483097(0x118)](){const _0x3eb2ca=_0x483097,_0x145991=this[_0x3eb2ca(0x168)]['get'](l[_0x3eb2ca(0xe0)])['getPivotTableConfig'](this[_0x3eb2ca(0xda)],this['subUnitId'],this[_0x3eb2ca(0x8c)]),_0x351aff=_0x145991==null?void 0x0:_0x145991[_0x3eb2ca(0x10b)][_0x3eb2ca(0xa5)];return(_0x351aff==null?void 0x0:_0x351aff[_0x3eb2ca(0xc1)]())||[];}['getFieldIdsByArea'](_0x458d75){const _0x33c36a=_0x483097,_0x557a5b=this[_0x33c36a(0x168)][_0x33c36a(0xcb)](l[_0x33c36a(0xe0)])[_0x33c36a(0x144)](this[_0x33c36a(0xda)],this[_0x33c36a(0x8d)],this[_0x33c36a(0x8c)]),_0x3d562a=_0x557a5b==null?void 0x0:_0x557a5b[_0x33c36a(0x10b)];if(_0x3d562a)switch(_0x458d75){case r[_0x33c36a(0x136)][_0x33c36a(0x162)]:return _0x3d562a[_0x33c36a(0x164)]['concat']();case r[_0x33c36a(0x136)]['Row']:return _0x3d562a['rowFields']['concat']();case r['PivotTableFiledAreaEnum'][_0x33c36a(0xaa)]:return _0x3d562a['valueFields'][_0x33c36a(0xc1)]();case r['PivotTableFiledAreaEnum'][_0x33c36a(0xe6)]:return _0x3d562a[_0x33c36a(0xdc)][_0x33c36a(0xc1)]();case r[_0x33c36a(0x136)]['Hidden']:return _0x3d562a[_0x33c36a(0xcf)]['concat']();}return[];}['getPivotTableRangeInfo'](){const _0x5eb76e=_0x483097;var _0x2c41b0;const _0xf821b9=(_0x2c41b0=this[_0x5eb76e(0x168)][_0x5eb76e(0xcb)](l[_0x5eb76e(0xe0)])[_0x5eb76e(0x15d)](this[_0x5eb76e(0xda)],this[_0x5eb76e(0x8d)],this['pivotTableId']))==null?void 0x0:_0x2c41b0[_0x5eb76e(0xd9)];if(_0xf821b9)return l['unionPivotViewRange'](_0xf821b9);}async[_0x483097(0xfd)](){const _0x2b2424=_0x483097;return await this['_injector'][_0x2b2424(0xcb)](m[_0x2b2424(0xa0)])[_0x2b2424(0x116)](l[_0x2b2424(0x92)]['id'],{'unitId':this[_0x2b2424(0xda)],'subUnitId':this[_0x2b2424(0x8d)],'pivotTableId':this[_0x2b2424(0x8c)]});}async['addField'](_0x5e08a4,_0x53cf1a,_0x4d7bf7){const _0x1e6f8a=_0x483097,_0x417517=this['_injector'],_0x2bc0c7=this[_0x1e6f8a(0xda)],_0x50e86e=this[_0x1e6f8a(0x8d)],_0x71f239=this[_0x1e6f8a(0x8c)],_0x386f82=_0x417517[_0x1e6f8a(0xcb)](m[_0x1e6f8a(0xa0)]),_0x202bdd=_0x417517[_0x1e6f8a(0xcb)](l[_0x1e6f8a(0xe0)]),_0x37caf3=_0x202bdd[_0x1e6f8a(0x144)](_0x2bc0c7,_0x50e86e,_0x71f239),_0x1ce9d1=_0x202bdd[_0x1e6f8a(0x90)](_0x2bc0c7,_0x71f239);if(!_0x37caf3||!_0x1ce9d1)return!0x1;let _0x43e561=_0x5e08a4;typeof _0x43e561=='number'&&(_0x43e561=_0x202bdd[_0x1e6f8a(0x90)](_0x2bc0c7,_0x71f239)['fieldIds'][_0x5e08a4]);const _0x360c1e={'unitId':_0x2bc0c7,'subUnitId':_0x50e86e,'pivotTableId':_0x71f239,'dataFieldId':_0x43e561,'fieldArea':_0x53cf1a,'index':_0x4d7bf7};return _0x386f82[_0x1e6f8a(0x93)](l[_0x1e6f8a(0x16e)]['id'],_0x360c1e);}async['removeField'](_0x29051d){const _0x2c3751=_0x483097,_0x369b18=this[_0x2c3751(0x168)],_0x72ba6a=this[_0x2c3751(0xda)],_0x218d40=this[_0x2c3751(0x8d)],_0xa38b62=this[_0x2c3751(0x8c)],_0x67b1f5=_0x369b18[_0x2c3751(0xcb)](m[_0x2c3751(0xa0)]),_0x168bc7={'unitId':_0x72ba6a,'subUnitId':_0x218d40,'pivotTableId':_0xa38b62,'fieldIds':_0x29051d};return _0x67b1f5[_0x2c3751(0x93)](l[_0x2c3751(0x127)]['id'],_0x168bc7);}async[_0x483097(0x146)](_0x57339b,_0x4a7958,_0x47e259){const _0x1bd23f=_0x483097,_0x308194=this[_0x1bd23f(0x168)],_0x771cf2=this[_0x1bd23f(0xda)],_0xaacfea=this[_0x1bd23f(0x8d)],_0x5d229a=this[_0x1bd23f(0x8c)],_0x31925e=_0x308194[_0x1bd23f(0xcb)](m[_0x1bd23f(0xa0)]),_0xe445d0={'unitId':_0x771cf2,'subUnitId':_0xaacfea,'pivotTableId':_0x5d229a,'fieldId':_0x57339b,'area':_0x4a7958,'index':_0x47e259};return _0x31925e['executeCommand'](l[_0x1bd23f(0xc7)]['id'],_0xe445d0);}async['updateValuePosition'](_0x46d4b2,_0x24b597){const _0x2fe59b=_0x483097,_0x1c5a5e=this[_0x2fe59b(0x168)],_0x28dda0=this[_0x2fe59b(0xda)],_0x59df0f=this[_0x2fe59b(0x8d)],_0x31bccd=this[_0x2fe59b(0x8c)],_0x50d760=_0x1c5a5e['get'](m['ICommandService']),_0x4f337a={'unitId':_0x28dda0,'subUnitId':_0x59df0f,'pivotTableId':_0x31bccd,'position':_0x46d4b2,'index':_0x24b597};return _0x50d760['executeCommand'](l['UpdatePivotValuePositionCommand']['id'],_0x4f337a);}async[_0x483097(0xf0)](_0x1027e5,_0x44e0f4){const _0x3e8b38=_0x483097,_0x3d38a3=this['_injector'],_0x5a8302=this[_0x3e8b38(0xda)],_0x3a7aac=this['subUnitId'],_0x364bac=this[_0x3e8b38(0x8c)],_0x571067=_0x3d38a3[_0x3e8b38(0xcb)](m[_0x3e8b38(0xa0)]),_0x3ab1a9={'unitId':_0x5a8302,'subUnitId':_0x3a7aac,'pivotTableId':_0x364bac,'fieldId':_0x1027e5,'subtotalType':_0x44e0f4};return _0x571067[_0x3e8b38(0x93)](l['SetPivotSubtotalTypeMutation']['id'],_0x3ab1a9);}async['setLabelSort'](_0x596865,_0x2ccbee){const _0x482991=_0x483097,_0x5a39ae=this[_0x482991(0x168)],_0x1d6ec2=this[_0x482991(0xda)],_0x5c62ae=this[_0x482991(0x8d)],_0xd76458=this[_0x482991(0x8c)],_0x1ae69f=_0x5a39ae[_0x482991(0xcb)](m[_0x482991(0xa0)]),_0x39fac9={'unitId':_0x1d6ec2,'subUnitId':_0x5c62ae,'tableFieldId':_0x596865,'pivotTableId':_0xd76458,'info':_0x2ccbee};return _0x1ae69f[_0x482991(0x93)](l['SetPivotSortCommand']['id'],_0x39fac9);}async['setLabelManualFilter'](_0xdffa34,_0x55325b,_0x41d16c){const _0x44a5d4=_0x483097,_0x308e0a=this[_0x44a5d4(0x168)],_0x426919=this[_0x44a5d4(0xda)],_0x4dfe2f=this[_0x44a5d4(0x8d)],_0x395f42=this[_0x44a5d4(0x8c)],_0x4b4b2b=_0x308e0a['get'](m[_0x44a5d4(0xa0)]),_0x312b20={'unitId':_0x426919,'subUnitId':_0x4dfe2f,'pivotTableId':_0x395f42,'tableFieldId':_0xdffa34,'items':_0x55325b,'isAll':_0x41d16c};return _0x4b4b2b[_0x44a5d4(0x93)](l[_0x44a5d4(0x13b)]['id'],_0x312b20);}async[_0x483097(0xb7)](_0x3fabea,_0x4afda9){const _0x520810=_0x483097,_0x5dedbe=this[_0x520810(0x168)],_0x522a82=this[_0x520810(0xda)],_0x4bbf6d=this[_0x520810(0x8d)],_0x535014=this[_0x520810(0x8c)],_0x53c3fb=_0x5dedbe['get'](m['ICommandService']);if(_0x3fabea===void 0x0)return console['warn'](_0x520810(0xb4)),!0x1;const _0x1883fc=_0x4afda9&&{..._0x4afda9,'type':r[_0x520810(0xb2)]['ValueFilter']},_0x1ead6a={'unitId':_0x522a82,'subUnitId':_0x4bbf6d,'pivotTableId':_0x535014,'fieldId':_0x3fabea,'valueFilterInfo':_0x1883fc};return _0x53c3fb[_0x520810(0x93)](l[_0x520810(0x12d)]['id'],_0x1ead6a);}async[_0x483097(0x105)](_0xa200b,_0x36bed3){const _0x289dcf=_0x483097,_0x4cf04a=this[_0x289dcf(0x168)],_0x5c2ce5=this[_0x289dcf(0xda)],_0x3ba8bf=this[_0x289dcf(0x8d)],_0xdd992c=this['pivotTableId'],_0x414e05=_0x4cf04a['get'](m['ICommandService']),_0x3089bd={'unitId':_0x5c2ce5,'subUnitId':_0x3ba8bf,'pivotTableId':_0xdd992c,'fieldId':_0xa200b,'name':_0x36bed3};return _0x414e05[_0x289dcf(0x93)](l[_0x289dcf(0x11d)]['id'],_0x3089bd);}async[_0x483097(0xf4)](_0x56ea92,_0x28f8d2,_0x177948){const _0x533ce5=_0x483097,_0x242abf=this[_0x533ce5(0x168)][_0x533ce5(0xcb)](m[_0x533ce5(0xa0)]),_0x53ba05=this[_0x533ce5(0x168)]['get'](m[_0x533ce5(0xc5)])['getUnit'](this['unitId']),_0x57169e=_0x53ba05==null?void 0x0:_0x53ba05[_0x533ce5(0x12e)](_0x56ea92);if(!_0x53ba05||!_0x57169e)throw new Error(_0x533ce5(0xc0));return _0x242abf[_0x533ce5(0x93)](l[_0x533ce5(0xfc)]['id'],{'pivotTableId':this[_0x533ce5(0x8c)],'targetCellInfo':{'subUnitId':_0x57169e[_0x533ce5(0xc2)](),'unitId':this[_0x533ce5(0xda)],'row':_0x28f8d2,'col':_0x177948},'originTargetInfo':{'subUnitId':this['subUnitId'],'unitId':this[_0x533ce5(0xda)]}});}async[_0x483097(0xc9)](_0x14893d,_0x5764f5){const _0x3700aa=_0x483097,_0x36fdc4=this['_injector'],_0x3dde6b=this['unitId'],_0xe899a4=this['subUnitId'],_0x5223e5=this[_0x3700aa(0x8c)],_0x5328e6=_0x36fdc4[_0x3700aa(0xcb)](m[_0x3700aa(0xa0)]),_0x4701a0={'unitId':_0x3dde6b,'subUnitId':_0xe899a4,'pivotTableId':_0x5223e5,'tableFieldId':_0x14893d,'dateType':_0x5764f5};return _0x5328e6[_0x3700aa(0x93)](l[_0x3700aa(0x171)]['id'],_0x4701a0);}}function _0xba91(){const _0x2dd437=['_sourceData','3092178CDNsvz','PivotTableFieldCollapseChanged','Grand\x20Total\x20','getFieldDataTypeByFieldName','小计\x20','isArray','[Pivot\x20Table]:\x20Target\x20sheet\x20is\x20not\x20valid','concat','getSheetId','viewUpdate$','3734xGoowC','IUniverInstanceService','push','MovePivotFieldCommand','PivotSubtotalTypeEnum','setDateGroupType','_firePivotTableFieldRemovedEvent','get','createCollection','count','PositionType','hiddenFields','fireEvent','840780FmhznE','name','date','setSubtotal','getNameWithColumnIndex','_fireAddPivotTableEvent','FEnum','subtotal','rangeInfo','unitId','Row','filterFields','PivotDataFieldSortOperatorEnum','row','PivotTableRendered','SheetsPivotTableConfigModel','PivotTableRemoved','ST_PivotFilterOperatorEnum','sum','getTime','headerMap','Filter','LocaleType','_firePivotTableRemovedEvent','addValueFieldWithName','1825320bQNjaE','onCommandExecuted','_fireRenderPivotTableEvent','PivotFilterOperatorEnum','object','_fireBeforeMovePivotTableEvent','setSubtotalType','FWorksheet','fields','@univerjs-pro/sheets-pivot','move','getCurrentLocale','Subtotal','setDisplayName','getId','ResetPivotFieldsConfigCommand','setOptions','getValueFields','MovePivotTableCommand','remove','PivotTableMoved','generateHexNumber','cancel','displayName','@univerjs/core/facade','@univerjs-pro/engine-pivot','AddPivotTableWithConfigCommand','renameField','FEventName','PivotViewCellValueTypeEnum','PivotTableValuePositionEnum','PivotDateGroupFieldDateTypeEnum','string','fieldsConfig','pipe','addPivotTable','GrandTotal','column','removeField','level','getTableFieldsByDataFieldId','getFieldById','_firePivotTableFieldSettingChangedEvent','SheetsPivotTableAdaptorModel','syncExecuteCommand','getDataFieldIdByDisplayName','getValueFilters','addFieldWithSourceId','(空白)','_getSourceIdByName','dataFieldsCollection','RenamePivotFieldMutation','addFieldWithName','Event','总计\x20','fieldIds','startRow','SetPivotSortCommand','LocaleService','valueIndex','generatePivotTable','RemovePivotFieldCommand','LifecycleStages','[PivotTable]:\x20add\x20field\x20','lifecycle$','reset','symbol','SetPivotValueFilterCommand','getSheetBySheetName','BeforePivotTableMove','range','numfmt','@univerjs/core','setFieldFormat','getFieldIds','tableFieldId','PivotTableFiledAreaEnum','@univerjs/sheets/facade','PivotTableFieldRemoved','col','UpdatePivotValuePositionCommand','SetPivotFilterCommand','getColCount','getResultByCalculate','updateValuePosition','removeFieldWithName','getSourceFieldsInfo','getPivotTableByCell','max','isBottomTotal','getPivotTableConfig','data','updateFieldPosition','getDataFieldByTableId','None','endColumn','PivotDataFieldSortTypeEnum','setFieldsConfig','YYYY-MM-DD','_fireBeforeAddPivotTableEvent','startColumn','getformat','getConfig','format','ZH_CN','filter','subscribe','PivotDataFieldDataTypeEnum','SetPivotCollapseCommand','extend','FWorkbook','fieldId','\x20failed.','addFilterFieldWithName','getFieldCountByArea','getPivotTableRangeInfo','targetCellInfo','921764eHhOtY','sheetName','getFieldDataType','Column','displayNameRecord','columnFields','isNaN','PivotTableValuePositionChanged','[DataFieldManager]:\x20Data\x20is\x20not\x20a\x20valid\x20array','_injector','BeforePivotTableAdd','getTargetByPivotTableId','LifecycleService','8sahcQf','getRangeData','AddPivotFieldCommand','setFilterInfo','endRow','UpdateDateGroupCommand','PivotTableAdded','defineProperty','PivotTableFieldSortChanged','getUnitId','_firePivotTableValuePositionChangedEvent','_firePivotTableFieldCollapsedEvent','PivotTableFieldAdded','getPivotSourceData','_id','getRowCount','pivotTableId','subUnitId','getValueIndex','length','getCollection','dimension','RemovePivotTableMutation','executeCommand','_pivot','blank','_firePivotTableFieldFilterChangedEvent','getFieldSetting','getSourceName','(blank)','1103316YBOUbd','\x20is\x20not\x20found\x20in\x20the\x20pivot\x20table.','getPivotTableIdByCell','dispose','disposeWithMe','_workbook','ICommandService','params','info','PivotTableFieldMoved','PivotTableChangeTypeEnum','valueFilter','PivotTableFieldFilterChanged','auditTime','getValueFilter','PivotTableFieldSettingChanged','Value','getFieldDataTypeByColumnIndex','_firePivotTableFieldAddedEvent','_firePivotTableFieldSortChangedEvent','getPivotTableById','Total\x20','7197309adQmvA','PivotCellStyleTypeEnum','PivotFilterTypeEnum','registerEventHandler','[Pivot\x20Table]:\x20The\x20field\x20id\x20is\x20undefined','AddPivotTableCommand','forEach','setValueFilter','find'];_0xba91=function(){return _0x2dd437;};return _0xba91();}class oe extends R[_0x483097(0x158)]{async[_0x483097(0x10d)](_0x3c91bf,_0x513d82,_0x3989ad){const _0x35b803=_0x483097,_0x1631f5=this[_0x35b803(0x168)],_0x1774d8=_0x1631f5[_0x35b803(0xcb)](m[_0x35b803(0xa0)]),_0x22633c=r['generateHexNumber'](0x8),_0x1c93d8={'positionType':_0x513d82,'pivotTableId':_0x22633c,'pivotTableConfig':{'targetCellInfo':_0x3989ad,'sourceRangeInfo':_0x3c91bf,'isEmpty':!0x0}};if(await _0x1774d8[_0x35b803(0x93)](l[_0x35b803(0xb5)]['id'],_0x1c93d8))return new x(_0x3989ad[_0x35b803(0xda)],_0x3989ad[_0x35b803(0x8d)],_0x22633c,_0x1631f5);}[_0x483097(0x141)](_0xbcd742,_0x4ce566,_0x5f23af,_0x27d55b){const _0x5cd05e=_0x483097,_0x58aca5=this[_0x5cd05e(0x168)],_0x435770=_0x58aca5[_0x5cd05e(0xcb)](l[_0x5cd05e(0x115)])['getPivotTableIdByCell'](_0xbcd742,_0x4ce566,_0x5f23af,_0x27d55b);if(_0x435770)return new x(_0xbcd742,_0x4ce566,_0x435770,_0x58aca5);}[_0x483097(0xae)](_0x17733e){const _0x5d7f24=_0x483097,_0x57ee96=this[_0x5d7f24(0x168)],_0x48e0a6=_0x57ee96[_0x5d7f24(0xcb)](l[_0x5d7f24(0xe0)])[_0x5d7f24(0x16a)](this[_0x5d7f24(0xf8)](),_0x17733e);if(_0x48e0a6)return new x(_0x48e0a6['unitId'],_0x48e0a6[_0x5d7f24(0x8d)],_0x17733e,_0x57ee96);}}R['FWorkbook']['extend'](oe);class ne extends R[_0x483097(0xf1)]{['getPivotTableByCell'](_0x42535e,_0x2a7253){const _0x21acb9=_0x483097,_0x29d833=this['_injector'],_0x235de6=_0x29d833[_0x21acb9(0xcb)](l[_0x21acb9(0x115)]),_0x499fbc=this[_0x21acb9(0x9f)][_0x21acb9(0x175)](),_0x540d16=this[_0x21acb9(0xc2)](),_0x562872=_0x235de6[_0x21acb9(0x9c)](_0x499fbc,_0x540d16,_0x42535e,_0x2a7253);if(_0x562872)return new x(_0x499fbc,_0x540d16,_0x562872,_0x29d833);}}R[_0x483097(0xf1)][_0x483097(0x157)](ne);class ae extends A[_0x483097(0xd7)]{get[_0x483097(0xc8)](){return r['PivotSubtotalTypeEnum'];}get['PivotFilterTypeEnum'](){const _0x9be11e=_0x483097;return r[_0x9be11e(0xb2)];}get[_0x483097(0x136)](){const _0x454d48=_0x483097;return r[_0x454d48(0x136)];}get[_0x483097(0x108)](){const _0x852d69=_0x483097;return r[_0x852d69(0x108)];}get[_0x483097(0x155)](){const _0x35cbd6=_0x483097;return r[_0x35cbd6(0x155)];}get[_0x483097(0x14a)](){const _0x1d7984=_0x483097;return r[_0x1d7984(0x14a)];}get[_0x483097(0xdd)](){return r['PivotDataFieldSortOperatorEnum'];}get[_0x483097(0xed)](){const _0x3206f0=_0x483097;return r[_0x3206f0(0xe2)];}get['PositionTypeEnum'](){const _0x28666a=_0x483097;return l[_0x28666a(0xce)];}get[_0x483097(0xa4)](){const _0x4324a8=_0x483097;return r[_0x4324a8(0xa4)];}get[_0x483097(0x109)](){const _0x2f247c=_0x483097;return r[_0x2f247c(0x109)];}}A[_0x483097(0xd7)]['extend'](ae);function _0x1967(_0x5ee217,_0x6813fe){const _0xba918b=_0xba91();return _0x1967=function(_0x19679e,_0x593ca8){_0x19679e=_0x19679e-0x87;let _0x4b7015=_0xba918b[_0x19679e];return _0x4b7015;},_0x1967(_0x5ee217,_0x6813fe);}class se extends A['FEventName']{get['PivotTableAdded'](){const _0x1f81a5=_0x483097;return _0x1f81a5(0x172);}get[_0x483097(0x169)](){return'BeforePivotTableAdd';}get[_0x483097(0xe1)](){const _0x39f6ec=_0x483097;return _0x39f6ec(0xe1);}get[_0x483097(0xfe)](){const _0xe9b31b=_0x483097;return _0xe9b31b(0xfe);}get[_0x483097(0xdf)](){const _0x5e1e87=_0x483097;return _0x5e1e87(0xdf);}get['PivotTableFieldAdded'](){const _0x516b56=_0x483097;return _0x516b56(0x88);}get['PivotTableFieldRemoved'](){return'PivotTableFieldRemoved';}get[_0x483097(0xa3)](){const _0x80b668=_0x483097;return _0x80b668(0xa3);}get['PivotTableFieldCollapseChanged'](){return'PivotTableFieldCollapseChanged';}get[_0x483097(0xa6)](){const _0x77801b=_0x483097;return _0x77801b(0xa6);}get[_0x483097(0x174)](){return'PivotTableFieldSortChanged';}get[_0x483097(0xa9)](){const _0x3bd333=_0x483097;return _0x3bd333(0xa9);}get[_0x483097(0x166)](){const _0x211464=_0x483097;return _0x211464(0x166);}}A[_0x483097(0x106)][_0x483097(0x157)](se);const Z=_0x483097(0x14c);function de(_0x2af3db){return _0x2af3db/0x3e8/0x15180+0x63e1;}function le(_0xffb301,_0x194e03,_0x2cc6bb,_0x3adc61){const _0x3755c5=_0x483097;var _0x879de3,_0x4eb943,_0x1d499d,_0xd72f07,_0x331f71,_0x3c1bf3,_0x5e82e3,_0x10a034,_0x2294fa,_0x2142f3,_0x44297e,_0xc4ef4e,_0x112ddb,_0x46640b,_0x19846d;const _0x395062=[],_0x5e6af8=[],_0x5b40db=[],{showRowGrandTotal:_0x637c8b,showRowSubTotal:_0x1ec254}=_0x3adc61,{cornerView:_0x2fdbff,colView:_0x13e395,rowView:_0x2d2391,dataView:_0x31aecc,formatMap:_0x58ff53}=_0x194e03,_0x5de70d=_0x2fdbff['getRowCount'](),_0x4b111b=_0x2fdbff[_0x3755c5(0x13c)]();for(let _0x2fd009=0x0;_0x2fd009<_0x5de70d;_0x2fd009++)for(let _0xf201f9=0x0;_0xf201f9<_0x4b111b;_0xf201f9++){const _0x3fbe22={...(_0x4eb943=(_0x879de3=_0x2fdbff[_0x3755c5(0x145)])==null?void 0x0:_0x879de3[_0x2fd009])==null?void 0x0:_0x4eb943[_0xf201f9]};_0x3fbe22['v']&&(_0x395062[_0x2fd009]||(_0x395062[_0x2fd009]=[]),_0x5b40db[_0x2fd009]||(_0x5b40db[_0x2fd009]=[]),_0x395062[_0x2fd009][_0xf201f9]=_0x3fbe22['v'],_0x5b40db[_0x2fd009][_0xf201f9]=_0x3fbe22['v']);}for(let _0x347caa=0x0;_0x347caa<_0x13e395[_0x3755c5(0x8b)]();_0x347caa++){const _0x1e9d59=(_0xd72f07=(_0x1d499d=_0x13e395==null?void 0x0:_0x13e395[_0x3755c5(0xe5)])==null?void 0x0:_0x1d499d[_0x347caa])==null?void 0x0:_0xd72f07[_0x3755c5(0x135)],_0x33bc3b=_0x1e9d59?_0x58ff53[_0x1e9d59]:'';for(let _0x54b759=0x0;_0x54b759<_0x13e395[_0x3755c5(0x13c)]();_0x54b759++){const _0x91254a={...(_0x3c1bf3=(_0x331f71=_0x13e395[_0x3755c5(0x145)])==null?void 0x0:_0x331f71[_0x347caa])==null?void 0x0:_0x3c1bf3[_0x54b759]};if((_0x91254a==null?void 0x0:_0x91254a['v'])!==void 0x0){let _0x2fe213=_0x33bc3b?m[_0x3755c5(0x131)]['format'](_0x33bc3b,Number(_0x91254a['v'])):_0x91254a['v'];(_0x91254a==null?void 0x0:_0x91254a['s'])===r['PivotCellStyleTypeEnum'][_0x3755c5(0xf6)]?_0x2fe213=_0x2cc6bb?_0x3755c5(0xbe)+_0x2fe213:_0x3755c5(0xaf)+_0x2fe213:(_0x91254a==null?void 0x0:_0x91254a['s'])===r[_0x3755c5(0xb1)][_0x3755c5(0x10e)]&&(_0x2fe213=_0x2cc6bb?_0x3755c5(0x120)+_0x2fe213:'Grand\x20Total\x20'+_0x2fe213),(_0x91254a==null?void 0x0:_0x91254a['t'])===r[_0x3755c5(0x107)]['blank']&&(_0x2fe213=_0x2cc6bb?_0x3755c5(0x11a):_0x3755c5(0x99)),_0x395062[_0x347caa]||(_0x395062[_0x347caa]=[]),_0x5b40db[_0x347caa]||(_0x5b40db[_0x347caa]=[]),_0x395062[_0x347caa][_0x54b759+_0x4b111b]=_0x2fe213,_0x5b40db[_0x347caa][_0x54b759+_0x4b111b]=_0x2fe213;}}}let _0x567212=0x0,_0x4c7f89=0x0,_0x4d5e9f=0x0;for(let _0x19e0c3=0x0;_0x19e0c3<_0x2d2391[_0x3755c5(0x8b)]();_0x19e0c3++){const _0x16b996=_0x2d2391[_0x3755c5(0xa2)][_0x19e0c3];if(!_0x1ec254&&_0x16b996[_0x3755c5(0x143)]&&_0x16b996[_0x3755c5(0x111)]!==0x0){_0x4d5e9f++,_0x4c7f89=0x0;continue;}if(!(!_0x637c8b&&_0x16b996[_0x3755c5(0x143)]&&_0x16b996[_0x3755c5(0x111)]===0x0)){for(let _0x2051aa=0x0;_0x2051aa<_0x2d2391['getColCount']();_0x2051aa++){const _0x6ea61a={...(_0x10a034=(_0x5e82e3=_0x2d2391[_0x3755c5(0x145)])==null?void 0x0:_0x5e82e3[_0x19e0c3])==null?void 0x0:_0x10a034[_0x2051aa]},_0x5547ee=(_0x2142f3=(_0x2294fa=_0x2d2391==null?void 0x0:_0x2d2391[_0x3755c5(0xe5)])==null?void 0x0:_0x2294fa[_0x2051aa])==null?void 0x0:_0x2142f3[_0x3755c5(0x135)],_0x1d5941=_0x5547ee?_0x58ff53[_0x5547ee]:'';if((_0x6ea61a==null?void 0x0:_0x6ea61a['v'])!==void 0x0){let _0x578dfe=_0x1d5941?m['numfmt'][_0x3755c5(0x151)](_0x1d5941,Number(_0x6ea61a['v'])):_0x6ea61a['v'];(_0x6ea61a==null?void 0x0:_0x6ea61a['s'])===r['PivotCellStyleTypeEnum'][_0x3755c5(0xf6)]?_0x578dfe=_0x2cc6bb?_0x3755c5(0xbe)+_0x578dfe:_0x3755c5(0xaf)+_0x578dfe:(_0x6ea61a==null?void 0x0:_0x6ea61a['s'])===r['PivotCellStyleTypeEnum']['GrandTotal']&&(_0x578dfe=_0x2cc6bb?_0x3755c5(0x120)+_0x578dfe:_0x3755c5(0xbc)+_0x578dfe),(_0x6ea61a==null?void 0x0:_0x6ea61a['t'])===r[_0x3755c5(0x107)][_0x3755c5(0x95)]&&(_0x578dfe=_0x2cc6bb?'(空白)':_0x3755c5(0x99)),_0x395062[_0x567212+_0x5de70d]||(_0x395062[_0x567212+_0x5de70d]=[]);let _0x50a350=_0x5e6af8[_0x4d5e9f];_0x50a350||(_0x50a350=[..._0x5b40db],_0x5e6af8[_0x4d5e9f]=_0x50a350),_0x50a350[_0x4c7f89+_0x5de70d]||(_0x50a350[_0x4c7f89+_0x5de70d]=[]),_0x50a350[_0x4c7f89+_0x5de70d][_0x2051aa]=_0x578dfe,_0x395062[_0x567212+_0x5de70d][_0x2051aa]=_0x578dfe;}}_0x567212++,_0x2d2391[_0x3755c5(0xa2)][_0x19e0c3][_0x3755c5(0x143)]?(_0x4d5e9f++,_0x4c7f89=0x0):_0x4c7f89++;}}_0x567212=0x0,_0x4d5e9f=0x0,_0x4c7f89=0x0;for(let _0x3547c8=0x0;_0x3547c8<_0x31aecc['getRowCount']();_0x3547c8++){const _0x481500=_0x2d2391[_0x3755c5(0xa2)][_0x3547c8];if(!_0x1ec254&&_0x481500['isBottomTotal']&&_0x481500[_0x3755c5(0x111)]!==0x0){_0x4d5e9f++,_0x4c7f89=0x0;continue;}if(!(!_0x637c8b&&_0x481500['isBottomTotal']&&_0x481500['level']===0x0)){for(let _0x136fcc=0x0;_0x136fcc<_0x31aecc[_0x3755c5(0x13c)]();_0x136fcc++){const _0x2c8396={...(_0xc4ef4e=(_0x44297e=_0x31aecc[_0x3755c5(0x145)])==null?void 0x0:_0x44297e[_0x3547c8])==null?void 0x0:_0xc4ef4e[_0x136fcc]};if(_0x2c8396['v']){const _0x4ea40b=_0x2d2391[_0x3755c5(0xa2)][_0x3547c8][_0x3755c5(0x125)],_0x4d4eab=_0x13e395[_0x3755c5(0xa2)][_0x136fcc][_0x3755c5(0x125)],_0x530bfe=Math[_0x3755c5(0x142)](_0x4ea40b,_0x4d4eab),_0x529cab=_0xffb301[_0x3755c5(0xfb)]()[_0x3755c5(0xc1)]();let _0x20bf60='';_0x530bfe<0x0?_0x20bf60=(_0x112ddb=_0x529cab[0x0])!=null?_0x112ddb:'':_0x20bf60=(_0x46640b=_0x529cab[_0x530bfe])!=null?_0x46640b:'';const _0x1cefbf=(_0x19846d=_0x58ff53[_0x20bf60])!=null?_0x19846d:'';_0x395062[_0x567212+_0x5de70d]||(_0x395062[_0x567212+_0x5de70d]=[]);let _0x171307=_0x5e6af8[_0x4d5e9f];_0x171307||(_0x171307=[..._0x5b40db],_0x5e6af8[_0x4d5e9f]=_0x171307),_0x171307[_0x4c7f89+_0x5de70d]||(_0x171307[_0x4c7f89+_0x5de70d]=[]);const _0x502487=_0x1cefbf?m[_0x3755c5(0x131)][_0x3755c5(0x151)](_0x1cefbf,Number(_0x2c8396['v'])):_0x2c8396['v'];_0x171307[_0x4c7f89+_0x5de70d][_0x136fcc+_0x4b111b]=_0x502487,_0x395062[_0x567212+_0x5de70d][_0x136fcc+_0x4b111b]=_0x502487;}}_0x567212++,_0x2d2391[_0x3755c5(0xa2)][_0x3547c8][_0x3755c5(0x143)]?(_0x4d5e9f++,_0x4c7f89=0x0):_0x4c7f89++;}}return{'dataArr':_0x395062,'dataArrWithSplit':_0x5e6af8};}class re{constructor(_0x395252,_0x2f7cd1,_0x2e4ac7,_0x38ff71){const _0xfcd86a=_0x483097;y(this,_0xfcd86a(0x94)),y(this,_0xfcd86a(0xb9)),y(this,'_injector'),y(this,'_isZhCN'),y(this,_0xfcd86a(0x8a)),(this['_injector']=_0x395252,this['_pivot']=_0x2f7cd1,this[_0xfcd86a(0xb9)]=_0x2e4ac7,this[_0xfcd86a(0x8a)]=_0x38ff71);const _0x58ed44=this[_0xfcd86a(0x168)][_0xfcd86a(0xcb)](m[_0xfcd86a(0x124)]);this['_isZhCN']=_0x58ed44[_0xfcd86a(0xf5)]()===m[_0xfcd86a(0xe7)][_0xfcd86a(0x152)];}['_getSourceIdByName'](_0x466707){const _0x349a8a=_0x483097,_0x31fe32=this[_0x349a8a(0x94)][_0x349a8a(0x117)](_0x466707);if(!_0x31fe32)throw new Error('[PivotTable]:\x20The\x20field\x20name\x20'+_0x466707+_0x349a8a(0x9b));return _0x31fe32;}[_0x483097(0x11e)](_0x2192d7,_0x1fdc72){const _0xd6a9e0=_0x483097,_0x236161=this['_getSourceIdByName'](_0x2192d7),_0x36f3ce=this[_0xd6a9e0(0x94)][_0xd6a9e0(0x119)](_0x236161,_0x1fdc72);if(!_0x36f3ce)throw new Error(_0xd6a9e0(0x129)+_0x2192d7+_0xd6a9e0(0x15a));if(_0x1fdc72===r[_0xd6a9e0(0x136)][_0xd6a9e0(0xaa)]){const _0x35ca66=_0x36f3ce['getId'](),_0x2ffb3a=this[_0xd6a9e0(0x94)][_0xd6a9e0(0x147)](_0x35ca66);if(_0x2ffb3a){const _0x35e175=_0x2ffb3a==null?void 0x0:_0x2ffb3a[_0xd6a9e0(0x161)]();this['_pivot'][_0xd6a9e0(0xf0)](_0x35ca66,_0x35e175===r['PivotDataFieldDataTypeEnum']['number']?r[_0xd6a9e0(0xc8)][_0xd6a9e0(0xe3)]:r[_0xd6a9e0(0xc8)][_0xd6a9e0(0xcd)]);}const _0x5a3d60=this[_0xd6a9e0(0x94)][_0xd6a9e0(0x8e)](),_0x32d17a=this[_0xd6a9e0(0x94)]['getValuePosition'](),_0x25f009=this[_0xd6a9e0(0x94)][_0xd6a9e0(0x15c)](r[_0xd6a9e0(0x136)][_0xd6a9e0(0xaa)]);if(_0x5a3d60===-0x1&&_0x25f009>0x1){const _0x72d0b9=_0x32d17a===r[_0xd6a9e0(0x108)][_0xd6a9e0(0x148)]?r[_0xd6a9e0(0x108)][_0xd6a9e0(0x162)]:_0x32d17a,_0x5142d0=_0x72d0b9===r[_0xd6a9e0(0x108)][_0xd6a9e0(0xdb)]?r['PivotTableFiledAreaEnum'][_0xd6a9e0(0xdb)]:r[_0xd6a9e0(0x136)][_0xd6a9e0(0x162)];this['_pivot'][_0xd6a9e0(0x13e)](_0x72d0b9,this[_0xd6a9e0(0x94)][_0xd6a9e0(0x15c)](_0x5142d0));}}else{if(_0x1fdc72===r[_0xd6a9e0(0x136)][_0xd6a9e0(0xdb)]||_0x1fdc72===r[_0xd6a9e0(0x136)][_0xd6a9e0(0x162)]){const _0x4666db=_0x36f3ce['getId'](),_0x1990a9=this[_0xd6a9e0(0x94)][_0xd6a9e0(0x147)](_0x4666db);if(_0x1990a9&&(_0x1990a9==null?void 0x0:_0x1990a9['getFieldDataType']())===r[_0xd6a9e0(0x155)][_0xd6a9e0(0xd3)]){const _0x839ae0=_0x1990a9[_0xd6a9e0(0x14f)]();_0x839ae0&&this[_0xd6a9e0(0x94)][_0xd6a9e0(0x133)](_0x4666db,_0x839ae0);}}}return _0x36f3ce;}[_0x483097(0x15b)](_0x3d9823,_0x3117cc){const _0xcbbaa9=_0x483097,_0x1951d4=this[_0xcbbaa9(0x11b)](_0x3d9823),_0x110f53=this['_pivot']['addFieldWithSourceId'](_0x1951d4,r[_0xcbbaa9(0x136)]['Filter']);return _0x110f53[_0xcbbaa9(0x16f)](_0x3117cc),_0x110f53;}[_0x483097(0xe9)](_0x3e1635,_0x16d2b8){const _0x4349b9=_0x483097,_0x37191e=this[_0x4349b9(0x11e)](_0x3e1635,r[_0x4349b9(0x136)][_0x4349b9(0xaa)]);return _0x16d2b8!=null&&_0x16d2b8[_0x4349b9(0xd8)]&&_0x37191e[_0x4349b9(0xd4)](_0x16d2b8==null?void 0x0:_0x16d2b8['subtotal']),_0x37191e;}[_0x483097(0x13f)](_0x351140){const _0x93eaad=_0x483097,_0x3ed2c2=this[_0x93eaad(0x11b)](_0x351140);this['_pivot'][_0x93eaad(0x112)](_0x3ed2c2)['forEach'](_0x54124f=>{const _0x134145=_0x93eaad,_0x3a88ee=_0x54124f['getId']();this['_pivot'][_0x134145(0x110)](_0x3a88ee);});}[_0x483097(0x13d)](_0x53b886={}){const _0x452833=_0x483097,_0x2dfc07=this['_pivot']['query'](),{dataArr:_0x5749c4,dataArrWithSplit:_0x2c0c8b}=le(this[_0x452833(0x94)],_0x2dfc07,this['_isZhCN'],_0x53b886);return{'dataArr':_0x5749c4,'dataArrWithSplit':_0x2c0c8b};}[_0x483097(0xd5)](_0x29829f){return this['_pivot']['getFieldDisplayNames']()[_0x29829f];}[_0x483097(0x12b)](){const _0xd3f22e=_0x483097;this[_0xd3f22e(0x94)][_0xd3f22e(0x12b)]();}['resetDimension'](_0x2c0c37){const _0xda7aa1=_0x483097;this[_0xda7aa1(0x94)]['reset'](_0x2c0c37);}[_0x483097(0xab)](_0x2e35ca){const _0x546600=_0x483097,_0x12d2fd=this[_0x546600(0x94)]['dataFieldsCollection'],_0x418beb=_0x12d2fd[_0x546600(0x134)]()[_0x2e35ca];if(_0x418beb)return _0x12d2fd[_0x546600(0x113)](_0x418beb)['getFieldDataType']();}[_0x483097(0xbd)](_0xc3d049){const _0x3ad32e=_0x483097,_0x1001f3=this['_getSourceIdByName'](_0xc3d049),_0x3bab3e=this[_0x3ad32e(0x94)][_0x3ad32e(0x11c)][_0x3ad32e(0x113)](_0x1001f3);return _0x3bab3e==null?void 0x0:_0x3bab3e['getFieldDataType']();}['getDimensionInfo'](){const _0x59c564=_0x483097,_0x2fbfe7={};return[[r[_0x59c564(0x136)][_0x59c564(0xdb)],_0x59c564(0xde)],[r[_0x59c564(0x136)][_0x59c564(0x162)],_0x59c564(0x10f)],[r[_0x59c564(0x136)][_0x59c564(0xe6)],_0x59c564(0x153)],[r['PivotTableFiledAreaEnum'][_0x59c564(0xaa)],'value']][_0x59c564(0xb6)](_0x549ca4=>{const _0x322615=_0x59c564,[_0x243a84,_0xf20685]=_0x549ca4;this[_0x322615(0x94)]['iterateFieldByArea'](_0x243a84,_0x4fc577=>{const _0x43878d=_0x322615;_0x2fbfe7[_0xf20685]||(_0x2fbfe7[_0xf20685]=[]),_0x2fbfe7[_0xf20685][_0x43878d(0xc6)](_0x4fc577[_0x43878d(0x98)]());});}),Object['keys'](_0x2fbfe7)[_0x59c564(0x8f)]>0x0?_0x2fbfe7:void 0x0;}[_0x483097(0x89)](){const _0x214b3c=_0x483097;return this[_0x214b3c(0xb9)];}[_0x483097(0xfa)](_0x35fbd2){const _0x1995a7=_0x483097;this['_pivot'][_0x1995a7(0xfa)](_0x35fbd2);}[_0x483097(0xfd)](){const _0x5a95c5=_0x483097;this[_0x5a95c5(0x94)][_0x5a95c5(0x9d)]();}}class ve extends r['DataFieldManager']{[_0x483097(0x16d)](_0x1a637a){const _0x4a4e02=_0x483097;if(Array[_0x4a4e02(0xbf)](_0x1a637a)&&_0x1a637a[_0x4a4e02(0x8f)]>0x0){const _0x3892a1=[],_0x38049d=_0x1a637a[0x0],_0x194037={},_0x7d4679=_0x1a637a[0x1];for(let _0x1ace87=0x0;_0x1ace87<_0x7d4679[_0x4a4e02(0x8f)];_0x1ace87++){const _0xee83ab=_0x7d4679[_0x1ace87];if(typeof _0xee83ab==_0x4a4e02(0xee)&&_0xee83ab instanceof Date)_0x194037[_0x1ace87]=Z;else{if(typeof _0xee83ab==_0x4a4e02(0x10a)){const _0x4410ab=new Date(_0xee83ab);Number[_0x4a4e02(0x165)](_0x4410ab[_0x4a4e02(0xe4)]())||(_0x194037[_0x1ace87]=Z);}}}for(let _0x5cbe81=0x1;_0x5cbe81<_0x1a637a[_0x4a4e02(0x8f)];_0x5cbe81++){const _0x549022=_0x1a637a[_0x5cbe81],_0xb9c929=[];for(let _0x915a47=0x0;_0x915a47<_0x549022[_0x4a4e02(0x8f)];_0x915a47++)if(_0x194037[_0x915a47]){const _0x72b35=_0x549022[_0x915a47],_0x2fd43c=typeof _0x72b35==_0x4a4e02(0xee)&&_0x72b35 instanceof Date?_0x72b35:new Date(_0x72b35),_0x9649e5={'v':de(_0x2fd43c[_0x4a4e02(0xe4)]()),'f':_0x194037[_0x915a47]};_0xb9c929['push'](_0x9649e5);}else _0xb9c929['push'](_0x549022[_0x915a47]);_0x3892a1['push'](_0xb9c929);}return{'header':_0x38049d,'data':_0x3892a1};}else throw new Error(_0x4a4e02(0x167));}}class ce extends A['FUniver']{['_initialize'](_0xb77e9a){const _0x3e32f8=_0x483097,_0x5015bd=_0xb77e9a[_0x3e32f8(0xcb)](m[_0x3e32f8(0xa0)]);this[_0x3e32f8(0xb3)](this['Event'][_0x3e32f8(0x169)],()=>_0x5015bd['beforeCommandExecuted'](_0x20a191=>{const _0x3b613f=_0x3e32f8;switch(_0x20a191['id']){case l[_0x3b613f(0xfc)]['id']:{const _0x510fb1=_0x20a191[_0x3b613f(0xa1)];this[_0x3b613f(0xef)](_0x510fb1);break;}}})),this['registerEventHandler'](this['Event'][_0x3e32f8(0x12f)],()=>_0x5015bd['beforeCommandExecuted'](_0x17759a=>{const _0x166d81=_0x3e32f8;switch(_0x17759a['id']){case l[_0x166d81(0x104)]['id']:case l[_0x166d81(0xb5)]['id']:{const _0x4c8aee=_0x17759a[_0x166d81(0xa1)];this[_0x166d81(0x14d)](_0x4c8aee);break;}}})),this[_0x3e32f8(0xb3)](this[_0x3e32f8(0x11f)][_0x3e32f8(0x172)],()=>_0x5015bd['onCommandExecuted'](_0x137b87=>{const _0x1741ae=_0x3e32f8;if(_0x137b87['id']===l[_0x1741ae(0x104)]['id']||_0x137b87['id']===l['AddPivotTableCommand']['id']){const _0x221320=_0x137b87[_0x1741ae(0xa1)];this['_fireAddPivotTableEvent'](_0x221320);}})),this[_0x3e32f8(0xb3)](this['Event']['PivotTableMoved'],()=>_0x5015bd['onCommandExecuted'](_0x1264d4=>{if(_0x1264d4['id']===l['MovePivotTableCommand']['id']){const _0x312e6c=_0x1264d4['params'];this['_fireMovedPivotTableEvent'](_0x312e6c);}})),this['registerEventHandler'](this['Event'][_0x3e32f8(0xe1)],()=>_0x5015bd[_0x3e32f8(0xeb)](_0x4f0126=>{const _0x1fd9ed=_0x3e32f8;if(_0x4f0126['id']===l[_0x1fd9ed(0x92)]['id']){const _0x1e737e=_0x4f0126['params'];this[_0x1fd9ed(0xe8)](_0x1e737e);}})),this['registerEventHandler'](this[_0x3e32f8(0x11f)][_0x3e32f8(0x88)],()=>_0x5015bd['onCommandExecuted'](_0x428f7b=>{const _0x37cf3d=_0x3e32f8;if(_0x428f7b['id']===l[_0x37cf3d(0x16e)]['id']){const _0x4360ce=_0x428f7b['params'];this[_0x37cf3d(0xac)](_0x4360ce);}})),this[_0x3e32f8(0xb3)](this[_0x3e32f8(0x11f)][_0x3e32f8(0x138)],()=>_0x5015bd[_0x3e32f8(0xeb)](_0x49a3ce=>{const _0x2579b8=_0x3e32f8;if(_0x49a3ce['id']===l[_0x2579b8(0x127)]['id']){const _0x54837c=_0x49a3ce[_0x2579b8(0xa1)];this[_0x2579b8(0xca)](_0x54837c);}})),this[_0x3e32f8(0xb3)](this[_0x3e32f8(0x11f)][_0x3e32f8(0xa3)],()=>_0x5015bd[_0x3e32f8(0xeb)](_0x3e2285=>{const _0x24142e=_0x3e32f8;if(_0x3e2285['id']===l[_0x24142e(0xc7)]['id']){const _0x157f13=_0x3e2285[_0x24142e(0xa1)];this['_firePivotTableFieldMovedEvent'](_0x157f13);}})),this[_0x3e32f8(0xb3)](this[_0x3e32f8(0x11f)][_0x3e32f8(0xbb)],()=>_0x5015bd[_0x3e32f8(0xeb)](_0x7aa55f=>{const _0x2d8150=_0x3e32f8;if(_0x7aa55f['id']===l[_0x2d8150(0x156)]['id']){const _0x2ab488=_0x7aa55f[_0x2d8150(0xa1)];this[_0x2d8150(0x87)](_0x2ab488);}})),this[_0x3e32f8(0xb3)](this[_0x3e32f8(0x11f)][_0x3e32f8(0xa6)],()=>_0x5015bd['onCommandExecuted'](_0x5962a5=>{const _0x80a505=_0x3e32f8;if(_0x5962a5['id']===l['SetPivotFilterCommand']['id']){const _0x1b12db=_0x5962a5['params'];this[_0x80a505(0x96)](_0x1b12db);}})),this[_0x3e32f8(0xb3)](this[_0x3e32f8(0x11f)][_0x3e32f8(0x174)],()=>_0x5015bd[_0x3e32f8(0xeb)](_0x2d4788=>{const _0xf89759=_0x3e32f8;if(_0x2d4788['id']===l[_0xf89759(0x123)]['id']){const _0x11208a=_0x2d4788[_0xf89759(0xa1)];this['_firePivotTableFieldSortChangedEvent'](_0x11208a);}})),this[_0x3e32f8(0xb3)](this[_0x3e32f8(0x11f)][_0x3e32f8(0xa9)],()=>_0x5015bd['onCommandExecuted'](_0x13d569=>{const _0x430ae1=_0x3e32f8;if(_0x13d569['id']===l['UpdatePivotFieldSettingCommand']['id']){const _0x152d68=_0x13d569[_0x430ae1(0xa1)];this['_firePivotTableFieldSettingChangedEvent'](_0x152d68);}})),this[_0x3e32f8(0xb3)](this['Event'][_0x3e32f8(0x166)],()=>_0x5015bd['onCommandExecuted'](_0x2c2c90=>{const _0x2450da=_0x3e32f8;if(_0x2c2c90['id']===l[_0x2450da(0x13a)]['id']){const _0x53f4ca=_0x2c2c90[_0x2450da(0xa1)];this[_0x2450da(0x176)](_0x53f4ca);}}));const _0x3bc1e4=_0xb77e9a[_0x3e32f8(0xcb)](m[_0x3e32f8(0x16b)]);this[_0x3e32f8(0x9e)](_0x3bc1e4[_0x3e32f8(0x12a)][_0x3e32f8(0x154)](_0x34f233=>{const _0x58fd7d=_0x3e32f8;if(_0x34f233===m[_0x58fd7d(0x128)]['Ready']){const _0x191633=_0xb77e9a['get'](l[_0x58fd7d(0x115)]);this['registerEventHandler'](this['Event'][_0x58fd7d(0xdf)],()=>_0x191633[_0x58fd7d(0xc3)][_0x58fd7d(0x10c)](ie[_0x58fd7d(0xa7)](0x32))[_0x58fd7d(0x154)](_0x312724=>{this['_fireRenderPivotTableEvent'](_0x312724);}));}}));}[_0x483097(0xac)](_0x20c7ae){const _0x3a6332=_0x483097;if(_0x20c7ae){const {unitId:_0x110071,subUnitId:_0x46768e,pivotTableId:_0x4db618,dataFieldId:_0x520198,fieldArea:_0x4893e3,index:_0x51fcfa}=_0x20c7ae;this[_0x3a6332(0xd0)](this[_0x3a6332(0x11f)][_0x3a6332(0x88)],{'unitId':_0x110071,'subUnitId':_0x46768e,'pivotTableId':_0x4db618,'dataFieldId':_0x520198,'fieldArea':_0x4893e3,'index':_0x51fcfa});}}[_0x483097(0xca)](_0x52e13d){const _0x3307a4=_0x483097;if(_0x52e13d){const {unitId:_0x292f1e,subUnitId:_0x19a4eb,pivotTableId:_0x49af43,fieldIds:_0x217337}=_0x52e13d;this[_0x3307a4(0xd0)](this[_0x3307a4(0x11f)][_0x3307a4(0x138)],{'unitId':_0x292f1e,'subUnitId':_0x19a4eb,'pivotTableId':_0x49af43,'fieldIds':_0x217337['concat']()});}}['_firePivotTableFieldMovedEvent'](_0x591129){const _0xa1b260=_0x483097;if(_0x591129){const {unitId:_0xd657e2,subUnitId:_0x133139,pivotTableId:_0x4651b3,fieldId:_0x4925a4,area:_0x1070da,index:_0x509896}=_0x591129;this[_0xa1b260(0xd0)](this[_0xa1b260(0x11f)][_0xa1b260(0xa3)],{'unitId':_0xd657e2,'subUnitId':_0x133139,'pivotTableId':_0x4651b3,'fieldId':_0x4925a4,'area':_0x1070da,'index':_0x509896});}}[_0x483097(0x87)](_0x44ad6d){const _0x1ff624=_0x483097;if(_0x44ad6d){const {unitId:_0x3fa6df,subUnitId:_0x22540f,row:_0x304511,col:_0x11835,collapse:_0x20741d}=_0x44ad6d;this[_0x1ff624(0xd0)](this[_0x1ff624(0x11f)][_0x1ff624(0xbb)],{'unitId':_0x3fa6df,'subUnitId':_0x22540f,'row':_0x304511,'col':_0x11835,'collapse':_0x20741d});}}[_0x483097(0x96)](_0x50fd56){const _0x4c5b4c=_0x483097;if(_0x50fd56){const {unitId:_0x594c38,subUnitId:_0x1f60b5,pivotTableId:_0x130805,tableFieldId:_0x186a8f,items:_0x2ce2e3,isAll:_0x24cfeb}=_0x50fd56;this[_0x4c5b4c(0xd0)](this[_0x4c5b4c(0x11f)]['PivotTableFieldFilterChanged'],{'unitId':_0x594c38,'subUnitId':_0x1f60b5,'pivotTableId':_0x130805,'tableFieldId':_0x186a8f,'items':_0x2ce2e3[_0x4c5b4c(0xc1)](),'isAll':_0x24cfeb});}}[_0x483097(0xad)](_0x4cfec6){const _0x24b80d=_0x483097;if(_0x4cfec6){const {unitId:_0x1a2c96,subUnitId:_0x269a54,pivotTableId:_0x5e7773,tableFieldId:_0x3b17d2,info:_0x15df2c}=_0x4cfec6;this['fireEvent'](this[_0x24b80d(0x11f)]['PivotTableFieldSortChanged'],{'unitId':_0x1a2c96,'subUnitId':_0x269a54,'pivotTableId':_0x5e7773,'tableFieldId':_0x3b17d2,'info':{..._0x15df2c}});}}[_0x483097(0x114)](_0x23f99e){const _0x4465eb=_0x483097;if(_0x23f99e){const {unitId:_0x1bc8a3,subUnitId:_0x7f2147,tableFieldId:_0x534020,pivotTableId:_0xb9de8e,displayName:_0x5391f5,format:_0x50640c,subtotalType:_0x538f38,tableFieldInfo:_0x1cc347,dataFieldInfo:_0x19dc16}=_0x23f99e;this[_0x4465eb(0xd0)](this['Event'][_0x4465eb(0xa9)],{'unitId':_0x1bc8a3,'subUnitId':_0x7f2147,'tableFieldId':_0x534020,'pivotTableId':_0xb9de8e,'displayName':_0x5391f5,'format':_0x50640c,'subtotalType':_0x538f38,'tableFieldInfo':_0x1cc347,'dataFieldInfo':_0x19dc16});}}[_0x483097(0x176)](_0x49aeeb){const _0x288cb8=_0x483097;if(_0x49aeeb){const {pivotTableId:_0x25e3bc,position:_0x7bc306,index:_0x46db21}=_0x49aeeb;this['fireEvent'](this[_0x288cb8(0x11f)][_0x288cb8(0x166)],{'pivotTableId':_0x25e3bc,'position':_0x7bc306,'index':_0x46db21});}}[_0x483097(0xd6)](_0x34b071){const _0x4165c6=_0x483097;if(_0x34b071){const {positionType:_0x45e397,pivotTableId:_0x7eb329,pivotTableConfig:_0x36e0c8}=_0x34b071,{targetCellInfo:_0x3b9e71,sourceRangeInfo:_0x9c9d57}=_0x36e0c8,{unitId:_0x4237f9}=_0x3b9e71;this[_0x4165c6(0xd0)](this[_0x4165c6(0x11f)][_0x4165c6(0x172)],{'unitId':_0x4237f9,'positionType':_0x45e397,'pivotTableId':_0x7eb329,'sourceRangeInfo':{'startRow':_0x9c9d57[_0x4165c6(0x130)][_0x4165c6(0x122)],'endRow':_0x9c9d57[_0x4165c6(0x130)][_0x4165c6(0x170)],'startColumn':_0x9c9d57['range'][_0x4165c6(0x14e)],'endColumn':_0x9c9d57[_0x4165c6(0x130)]['endColumn'],'unitId':_0x9c9d57[_0x4165c6(0xda)],'subUnitId':_0x9c9d57[_0x4165c6(0x8d)],'sheetName':_0x9c9d57['sheetName']},'targetCellInfo':{'row':_0x3b9e71[_0x4165c6(0xde)],'column':_0x3b9e71[_0x4165c6(0x139)],'sheetName':_0x3b9e71[_0x4165c6(0x160)],'unitId':_0x3b9e71[_0x4165c6(0xda)],'subUnitId':_0x3b9e71[_0x4165c6(0x8d)]}});}}[_0x483097(0x14d)](_0x283a76){const _0x3a6a85=_0x483097;if(_0x283a76){const {positionType:_0x1cfc6e,pivotTableId:_0x32e09c,pivotTableConfig:_0x216342}=_0x283a76,{targetCellInfo:_0x26e2f1,sourceRangeInfo:_0x13072c}=_0x216342,{unitId:_0x564514}=_0x26e2f1,_0x16f1a5={'unitId':_0x564514,'positionType':_0x1cfc6e,'pivotTableId':_0x32e09c,'sourceRangeInfo':{'startRow':_0x13072c[_0x3a6a85(0x130)]['startRow'],'endRow':_0x13072c[_0x3a6a85(0x130)]['endRow'],'startColumn':_0x13072c['range'][_0x3a6a85(0x14e)],'endColumn':_0x13072c[_0x3a6a85(0x130)][_0x3a6a85(0x149)],'unitId':_0x13072c[_0x3a6a85(0xda)],'subUnitId':_0x13072c['subUnitId'],'sheetName':_0x13072c[_0x3a6a85(0x160)]},'targetCellInfo':{'row':_0x26e2f1[_0x3a6a85(0xde)],'column':_0x26e2f1[_0x3a6a85(0x139)],'sheetName':_0x26e2f1['sheetName'],'unitId':_0x26e2f1[_0x3a6a85(0xda)],'subUnitId':_0x26e2f1[_0x3a6a85(0x8d)]},'cancel':!0x1};if(this[_0x3a6a85(0xd0)](this[_0x3a6a85(0x11f)][_0x3a6a85(0x169)],_0x16f1a5),_0x16f1a5[_0x3a6a85(0x100)])throw new Error('Before\x20add\x20pivot\x20table\x20event\x20canceled');}}[_0x483097(0xe8)](_0x4146b5){const _0x1d78c7=_0x483097;if(_0x4146b5){const {unitId:_0x586764,pivotTableId:_0x167f58}=_0x4146b5;this[_0x1d78c7(0xd0)](this[_0x1d78c7(0x11f)][_0x1d78c7(0xe1)],{'unitId':_0x586764,'pivotTableId':_0x167f58});}}[_0x483097(0xef)](_0x2fa29e){const _0x293647=_0x483097;if(_0x2fa29e){const {originTargetInfo:_0x48d2be,pivotTableId:_0x4959de,targetCellInfo:_0x33f285}=_0x2fa29e,{unitId:_0x3dc054}=_0x48d2be,_0xdd7d3a=this['_injector'][_0x293647(0xcb)](l[_0x293647(0xe0)])[_0x293647(0x144)](_0x48d2be[_0x293647(0xda)],_0x48d2be[_0x293647(0x8d)],_0x4959de);if(!_0xdd7d3a)return;const _0x3340f5={'unitId':_0x3dc054,'pivotTableId':_0x4959de,'originTargetInfo':{'row':_0xdd7d3a[_0x293647(0x15e)][_0x293647(0xde)],'column':_0xdd7d3a[_0x293647(0x15e)][_0x293647(0x139)],'unitId':_0xdd7d3a[_0x293647(0x15e)][_0x293647(0xda)],'subUnitId':_0xdd7d3a[_0x293647(0x15e)][_0x293647(0x8d)]},'targetCellInfo':{'row':_0x33f285[_0x293647(0xde)],'column':_0x33f285[_0x293647(0x139)],'unitId':_0x33f285[_0x293647(0xda)],'subUnitId':_0x33f285[_0x293647(0x8d)]},'cancel':!0x1};if(this[_0x293647(0xd0)](this[_0x293647(0x11f)][_0x293647(0x12f)],_0x3340f5),_0x3340f5[_0x293647(0x100)])throw new Error('Before\x20move\x20pivot\x20table\x20event\x20canceled');}}['_fireMovedPivotTableEvent'](_0x56dedf){const _0xa918cf=_0x483097;if(_0x56dedf){const {originTargetInfo:_0x1e35c7,pivotTableId:_0x29d2b8,targetCellInfo:_0x3691ed}=_0x56dedf,{unitId:_0x291158}=_0x1e35c7,_0x5d1cee=this[_0xa918cf(0x168)]['get'](l['SheetsPivotTableConfigModel'])[_0xa918cf(0x144)](_0x1e35c7[_0xa918cf(0xda)],_0x1e35c7['subUnitId'],_0x29d2b8);if(!_0x5d1cee)return;this[_0xa918cf(0xd0)](this[_0xa918cf(0x11f)][_0xa918cf(0xfe)],{'unitId':_0x291158,'pivotTableId':_0x29d2b8,'originTargetInfo':{'row':_0x5d1cee[_0xa918cf(0x15e)][_0xa918cf(0xde)],'column':_0x5d1cee['targetCellInfo'][_0xa918cf(0x139)],'unitId':_0x5d1cee[_0xa918cf(0x15e)][_0xa918cf(0xda)],'subUnitId':_0x5d1cee[_0xa918cf(0x15e)]['subUnitId']},'targetCellInfo':{'row':_0x3691ed[_0xa918cf(0xde)],'column':_0x3691ed['col'],'unitId':_0x3691ed[_0xa918cf(0xda)],'subUnitId':_0x3691ed[_0xa918cf(0x8d)]}});}}[_0x483097(0xec)](_0x75f641){const _0x576dd1=_0x483097;if(_0x75f641){const {unitId:_0x2ca944,subUnitId:_0x45f683,pivotTableId:_0x2fc792,type:_0x2d9f98,rangesCache:_0x550f89,isEmpty:_0x5a44f4}=_0x75f641;this[_0x576dd1(0xd0)](this[_0x576dd1(0x11f)][_0x576dd1(0xdf)],{'unitId':_0x2ca944,'subUnitId':_0x45f683,'pivotTableId':_0x2fc792,'changeType':_0x2d9f98,'isEmpty':!!_0x5a44f4,'rangeInfo':_0x550f89});}}[_0x483097(0x126)](_0x21b1ca,_0x377505){const _0x3363e0=_0x483097,_0x47dc79=(_0x377505?new _0x377505():new ve())[_0x3363e0(0xcc)]('data',_0x21b1ca),_0x3ec846=_0x21b1ca[0x0];_0x47dc79['getFieldIds']()[_0x3363e0(0xb6)]((_0x2b44e4,_0x5acda4)=>{const _0x5bdf18=_0x3363e0;_0x47dc79[_0x5bdf18(0xf7)](_0x2b44e4,_0x3ec846[_0x5acda4]);});const _0x3e680f=r[_0x3363e0(0xff)](0x8),_0x4b2462=new r['PivotTable'](_0x47dc79,void 0x0,_0x3e680f);return new re(this['_injector'],_0x4b2462,_0x21b1ca,_0x3e680f);}}A['FUniver'][_0x483097(0x157)](ce);