@univerjs-pro/sheets-pivot 0.6.10-experimental.20250410-b7c4a5b → 0.6.10-experimental.20250411-055c47d

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 _0x21cdf8=_0x4f7e;(function(_0x5e28c8,_0x2ca397){const _0x6f25f8=_0x4f7e,_0x400ba1=_0x5e28c8();while(!![]){try{const _0x2f5553=-parseInt(_0x6f25f8(0x14b))/0x1*(parseInt(_0x6f25f8(0x1d7))/0x2)+-parseInt(_0x6f25f8(0x14e))/0x3+-parseInt(_0x6f25f8(0x1e2))/0x4*(-parseInt(_0x6f25f8(0x168))/0x5)+-parseInt(_0x6f25f8(0x236))/0x6+-parseInt(_0x6f25f8(0x217))/0x7*(parseInt(_0x6f25f8(0x225))/0x8)+-parseInt(_0x6f25f8(0x1fc))/0x9*(parseInt(_0x6f25f8(0x204))/0xa)+-parseInt(_0x6f25f8(0x1bd))/0xb*(-parseInt(_0x6f25f8(0x181))/0xc);if(_0x2f5553===_0x2ca397)break;else _0x400ba1['push'](_0x400ba1['shift']());}catch(_0x5f299f){_0x400ba1['push'](_0x400ba1['shift']());}}}(_0x50a0,0x3ab30));var ee=Object['defineProperty'],te=(_0x5ed51f,_0x573589,_0x5719b6)=>_0x573589 in _0x5ed51f?ee(_0x5ed51f,_0x573589,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5719b6}):_0x5ed51f[_0x573589]=_0x5719b6,y=(_0xf64c2b,_0x18441e,_0x31076b)=>te(_0xf64c2b,typeof _0x18441e!=_0x21cdf8(0x210)?_0x18441e+'':_0x18441e,_0x31076b);const r=require(_0x21cdf8(0x1e0)),l=require(_0x21cdf8(0x23a)),m=require(_0x21cdf8(0x1e6)),R=require(_0x21cdf8(0x17b)),A=require(_0x21cdf8(0x224)),ie=require(_0x21cdf8(0x1bf));class x{constructor(_0x137ebb,_0x33076f,_0x3e7250,_0x179cc4){const _0x396b5c=_0x21cdf8;y(this,_0x396b5c(0x1e4)),y(this,'subUnitId'),y(this,'pivotTableId'),y(this,_0x396b5c(0x17d)),(this['unitId']=_0x137ebb,this['subUnitId']=_0x33076f,this[_0x396b5c(0x14d)]=_0x3e7250,this[_0x396b5c(0x17d)]=_0x179cc4);}[_0x21cdf8(0x16d)](){const _0x94b840=_0x21cdf8;return this['_injector']['get'](l[_0x94b840(0x1d5)])[_0x94b840(0x211)](this[_0x94b840(0x1e4)],this[_0x94b840(0x1cf)],this[_0x94b840(0x14d)]);}[_0x21cdf8(0x19d)](_0x21de7a){const _0xddb1bf=_0x21cdf8,_0x247a2f=this['_injector']['get'](m[_0xddb1bf(0x22a)]),_0x1e2b6c={'unitId':this[_0xddb1bf(0x1e4)],'subUnitId':this['subUnitId'],'pivotTableId':this[_0xddb1bf(0x14d)],'pivotTableConfig':_0x21de7a};return _0x247a2f[_0xddb1bf(0x18a)](l[_0xddb1bf(0x16b)]['id'],_0x1e2b6c);}[_0x21cdf8(0x1ef)](_0x260dfa){const _0x2a7c0d=_0x21cdf8,_0x16bfa7=this['_injector'][_0x2a7c0d(0x150)](m[_0x2a7c0d(0x22a)]),_0x2e4331={'unitId':this[_0x2a7c0d(0x1e4)],'subUnitId':this[_0x2a7c0d(0x1cf)],'pivotTableId':this[_0x2a7c0d(0x14d)],'resetArea':_0x260dfa};return _0x16bfa7[_0x2a7c0d(0x18a)](l['ResetPivotFieldsConfigCommand']['id'],_0x2e4331);}[_0x21cdf8(0x1c7)](){const _0x4036fd=_0x21cdf8;return this[_0x4036fd(0x14d)];}[_0x21cdf8(0x1d2)](_0x51e33b){const _0x2f27b8=_0x21cdf8,_0x50ce51=this[_0x2f27b8(0x17d)][_0x2f27b8(0x150)](l['SheetsPivotTableConfigModel'])['getPivotTableConfig'](this[_0x2f27b8(0x1e4)],this[_0x2f27b8(0x1cf)],this[_0x2f27b8(0x14d)]),_0x2a3d38=_0x50ce51==null?void 0x0:_0x50ce51[_0x2f27b8(0x203)];if(_0x2a3d38)return _0x2a3d38[_0x2f27b8(0x228)][_0x51e33b]||_0x2a3d38[_0x2f27b8(0x20d)][_0x51e33b];}['getSourceFieldsInfo'](){const _0x1c6af0=_0x21cdf8,_0x508c15=this[_0x1c6af0(0x17d)],_0x223fca=this[_0x1c6af0(0x1e4)],_0x4d2804=this['pivotTableId'],_0x5ebdee=_0x508c15[_0x1c6af0(0x150)](l[_0x1c6af0(0x1d5)])['getCollection'](_0x223fca,_0x4d2804);if(_0x5ebdee){const _0x465657=_0x5ebdee[_0x1c6af0(0x1c5)],_0x5ae002=_0x5ebdee['fields'],_0x418708=_0x5ebdee[_0x1c6af0(0x1b6)],_0x33e50b=[];for(const _0x366630 of _0x465657){const _0x5e9ecc=_0x5ae002[_0x366630];if(_0x5e9ecc){const _0x5d3cce={'id':_0x366630,'name':_0x5e9ecc[_0x1c6af0(0x1f6)],'fieldDataType':_0x5e9ecc[_0x1c6af0(0x1ad)]};_0x418708&&_0x418708[_0x366630]!==void 0x0&&(_0x5d3cce[_0x1c6af0(0x155)]=_0x418708[_0x366630]),_0x33e50b[_0x1c6af0(0x174)](_0x5d3cce);}}return _0x33e50b;}return[];}[_0x21cdf8(0x172)](_0x5b9ee1){const _0x26e9f5=_0x21cdf8;var _0x5e18ec;const _0xeffc59=this[_0x26e9f5(0x17d)][_0x26e9f5(0x150)](l[_0x26e9f5(0x1d5)])[_0x26e9f5(0x211)](this[_0x26e9f5(0x1e4)],this[_0x26e9f5(0x1cf)],this['pivotTableId']),_0x146263=_0xeffc59==null?void 0x0:_0xeffc59[_0x26e9f5(0x203)][_0x26e9f5(0x1c2)];return(_0x5e18ec=_0x146263==null?void 0x0:_0x146263[_0x26e9f5(0x1a0)](_0x2fc25b=>_0x2fc25b[_0x26e9f5(0x16f)]===_0x5b9ee1))==null?void 0x0:_0x5e18ec[_0x26e9f5(0x21a)];}[_0x21cdf8(0x239)](){const _0x2c111a=_0x21cdf8,_0x47533c=this[_0x2c111a(0x17d)][_0x2c111a(0x150)](l[_0x2c111a(0x1d5)])['getPivotTableConfig'](this[_0x2c111a(0x1e4)],this['subUnitId'],this['pivotTableId']),_0x2d733c=_0x47533c==null?void 0x0:_0x47533c[_0x2c111a(0x203)][_0x2c111a(0x1c2)];return(_0x2d733c==null?void 0x0:_0x2d733c[_0x2c111a(0x1d4)]())||[];}[_0x21cdf8(0x18e)](_0x171aa4){const _0x4349d2=_0x21cdf8,_0x1f795a=this[_0x4349d2(0x17d)]['get'](l['SheetsPivotTableConfigModel'])['getPivotTableConfig'](this['unitId'],this[_0x4349d2(0x1cf)],this[_0x4349d2(0x14d)]),_0x24c616=_0x1f795a==null?void 0x0:_0x1f795a[_0x4349d2(0x203)];if(_0x24c616)switch(_0x171aa4){case r[_0x4349d2(0x16e)]['Column']:return _0x24c616['columnFields']['concat']();case r[_0x4349d2(0x16e)]['Row']:return _0x24c616[_0x4349d2(0x14c)][_0x4349d2(0x1d4)]();case r[_0x4349d2(0x16e)][_0x4349d2(0x1ed)]:return _0x24c616['valueFields'][_0x4349d2(0x1d4)]();case r['PivotTableFiledAreaEnum'][_0x4349d2(0x1cc)]:return _0x24c616[_0x4349d2(0x209)][_0x4349d2(0x1d4)]();case r[_0x4349d2(0x16e)][_0x4349d2(0x23b)]:return _0x24c616['hiddenFields'][_0x4349d2(0x1d4)]();}return[];}['getPivotTableRangeInfo'](){const _0x2480b7=_0x21cdf8;var _0x2031ae;const _0x8e072a=(_0x2031ae=this['_injector'][_0x2480b7(0x150)](l[_0x2480b7(0x1d5)])[_0x2480b7(0x1fb)](this[_0x2480b7(0x1e4)],this[_0x2480b7(0x1cf)],this[_0x2480b7(0x14d)]))==null?void 0x0:_0x2031ae[_0x2480b7(0x243)];if(_0x8e072a)return l[_0x2480b7(0x14a)](_0x8e072a);}async[_0x21cdf8(0x19e)](){const _0xb36ca4=_0x21cdf8;return await this['_injector'][_0xb36ca4(0x150)](m['ICommandService'])['syncExecuteCommand'](l[_0xb36ca4(0x1a4)]['id'],{'unitId':this[_0xb36ca4(0x1e4)],'subUnitId':this[_0xb36ca4(0x1cf)],'pivotTableId':this['pivotTableId']});}async[_0x21cdf8(0x1c8)](_0x3b0dd6,_0x258992,_0x28717e){const _0x43ace2=_0x21cdf8,_0x402f0d=this['_injector'],_0x14515c=this[_0x43ace2(0x1e4)],_0x7dd8c1=this[_0x43ace2(0x1cf)],_0x46c6cd=this['pivotTableId'],_0x307a8a=_0x402f0d['get'](m['ICommandService']),_0x389c16=_0x402f0d[_0x43ace2(0x150)](l[_0x43ace2(0x1d5)]),_0x47ad4a=_0x389c16[_0x43ace2(0x211)](_0x14515c,_0x7dd8c1,_0x46c6cd),_0x58a260=_0x389c16['getCollection'](_0x14515c,_0x46c6cd);if(!_0x47ad4a||!_0x58a260)return!0x1;let _0x40d282=_0x3b0dd6;typeof _0x40d282==_0x43ace2(0x175)&&(_0x40d282=_0x389c16[_0x43ace2(0x20c)](_0x14515c,_0x46c6cd)['fieldIds'][_0x3b0dd6]);const _0x731cb9={'unitId':_0x14515c,'subUnitId':_0x7dd8c1,'pivotTableId':_0x46c6cd,'dataFieldId':_0x40d282,'fieldArea':_0x258992,'index':_0x28717e};return _0x307a8a[_0x43ace2(0x18a)](l['AddPivotFieldCommand']['id'],_0x731cb9);}async[_0x21cdf8(0x163)](_0x3e697e){const _0xe300ae=_0x21cdf8,_0x229ca6=this[_0xe300ae(0x17d)],_0xd1e5a9=this[_0xe300ae(0x1e4)],_0xcae7d2=this[_0xe300ae(0x1cf)],_0x4cbc40=this[_0xe300ae(0x14d)],_0xa4b41b=_0x229ca6[_0xe300ae(0x150)](m[_0xe300ae(0x22a)]),_0x5340c2={'unitId':_0xd1e5a9,'subUnitId':_0xcae7d2,'pivotTableId':_0x4cbc40,'fieldIds':_0x3e697e};return _0xa4b41b['executeCommand'](l['RemovePivotFieldCommand']['id'],_0x5340c2);}async[_0x21cdf8(0x230)](_0x52c003,_0xcc3952,_0x422b55){const _0xb0e4a=_0x21cdf8,_0x42f5bc=this[_0xb0e4a(0x17d)],_0x2cb33e=this[_0xb0e4a(0x1e4)],_0x1c9de2=this[_0xb0e4a(0x1cf)],_0x1f8e13=this['pivotTableId'],_0x5d8613=_0x42f5bc[_0xb0e4a(0x150)](m[_0xb0e4a(0x22a)]),_0x49ac02={'unitId':_0x2cb33e,'subUnitId':_0x1c9de2,'pivotTableId':_0x1f8e13,'fieldId':_0x52c003,'area':_0xcc3952,'index':_0x422b55};return _0x5d8613[_0xb0e4a(0x18a)](l[_0xb0e4a(0x1de)]['id'],_0x49ac02);}async[_0x21cdf8(0x18f)](_0x273040,_0x49a152){const _0x192e94=_0x21cdf8,_0x41bac9=this[_0x192e94(0x17d)],_0x480251=this['unitId'],_0x5ee78e=this[_0x192e94(0x1cf)],_0x59f1c5=this[_0x192e94(0x14d)],_0x5ecb03=_0x41bac9[_0x192e94(0x150)](m[_0x192e94(0x22a)]),_0x139a7b={'unitId':_0x480251,'subUnitId':_0x5ee78e,'pivotTableId':_0x59f1c5,'position':_0x273040,'index':_0x49a152};return _0x5ecb03[_0x192e94(0x18a)](l['UpdatePivotValuePositionCommand']['id'],_0x139a7b);}async[_0x21cdf8(0x1e1)](_0x267f60,_0xd75a8e){const _0x3c7005=_0x21cdf8,_0x41b097=this[_0x3c7005(0x17d)],_0x55a768=this[_0x3c7005(0x1e4)],_0x2644f3=this[_0x3c7005(0x1cf)],_0x345905=this['pivotTableId'],_0x43d04a=_0x41b097[_0x3c7005(0x150)](m[_0x3c7005(0x22a)]),_0x8fe605={'unitId':_0x55a768,'subUnitId':_0x2644f3,'pivotTableId':_0x345905,'fieldId':_0x267f60,'subtotalType':_0xd75a8e};return _0x43d04a[_0x3c7005(0x18a)](l[_0x3c7005(0x207)]['id'],_0x8fe605);}async['setLabelSort'](_0x4ee7ca,_0x1a2944){const _0x502c59=_0x21cdf8,_0x1692aa=this[_0x502c59(0x17d)],_0x3f37aa=this['unitId'],_0x5c5b5d=this['subUnitId'],_0x26409f=this[_0x502c59(0x14d)],_0x374467=_0x1692aa[_0x502c59(0x150)](m[_0x502c59(0x22a)]),_0x3532a9={'unitId':_0x3f37aa,'subUnitId':_0x5c5b5d,'tableFieldId':_0x4ee7ca,'pivotTableId':_0x26409f,'info':_0x1a2944};return _0x374467['executeCommand'](l[_0x502c59(0x242)]['id'],_0x3532a9);}async[_0x21cdf8(0x208)](_0x567478,_0x4f497c,_0x1b4250){const _0x3b817a=_0x21cdf8,_0x31483e=this[_0x3b817a(0x17d)],_0x53c3b1=this['unitId'],_0x43e3bf=this[_0x3b817a(0x1cf)],_0xf5d1a3=this[_0x3b817a(0x14d)],_0x432638=_0x31483e[_0x3b817a(0x150)](m[_0x3b817a(0x22a)]),_0xfe2d0f={'unitId':_0x53c3b1,'subUnitId':_0x43e3bf,'pivotTableId':_0xf5d1a3,'tableFieldId':_0x567478,'items':_0x4f497c,'isAll':_0x1b4250};return _0x432638['executeCommand'](l[_0x3b817a(0x223)]['id'],_0xfe2d0f);}async[_0x21cdf8(0x22f)](_0x5a007c,_0x500e9c){const _0x36b991=_0x21cdf8,_0x5dbc02=this[_0x36b991(0x17d)],_0x4ecc60=this[_0x36b991(0x1e4)],_0x5c087f=this[_0x36b991(0x1cf)],_0x46637a=this['pivotTableId'],_0x2d1cf4=_0x5dbc02[_0x36b991(0x150)](m[_0x36b991(0x22a)]);if(_0x5a007c===void 0x0)return console[_0x36b991(0x1fe)]('[Pivot\x20Table]:\x20The\x20field\x20id\x20is\x20undefined'),!0x1;const _0x558090=_0x500e9c&&{..._0x500e9c,'type':r['PivotFilterTypeEnum'][_0x36b991(0x1a7)]},_0x3a7d5b={'unitId':_0x4ecc60,'subUnitId':_0x5c087f,'pivotTableId':_0x46637a,'fieldId':_0x5a007c,'valueFilterInfo':_0x558090};return _0x2d1cf4['executeCommand'](l[_0x36b991(0x1b5)]['id'],_0x3a7d5b);}async[_0x21cdf8(0x1fd)](_0x20ae14,_0x20a091){const _0x2ee65f=_0x21cdf8,_0x32f9a2=this['_injector'],_0x257cce=this[_0x2ee65f(0x1e4)],_0x1f62e8=this[_0x2ee65f(0x1cf)],_0x86c6c8=this[_0x2ee65f(0x14d)],_0x339e06=_0x32f9a2[_0x2ee65f(0x150)](m['ICommandService']),_0x58e111={'unitId':_0x257cce,'subUnitId':_0x1f62e8,'pivotTableId':_0x86c6c8,'fieldId':_0x20ae14,'name':_0x20a091};return _0x339e06[_0x2ee65f(0x18a)](l[_0x2ee65f(0x177)]['id'],_0x58e111);}async['move'](_0x495fbb,_0x214148,_0x4ed56b){const _0x2210c2=_0x21cdf8,_0x23efe9=this[_0x2210c2(0x17d)][_0x2210c2(0x150)](m['ICommandService']),_0x422ecc=this[_0x2210c2(0x17d)][_0x2210c2(0x150)](m[_0x2210c2(0x1e5)])[_0x2210c2(0x237)](this['unitId']),_0x549ed3=_0x422ecc==null?void 0x0:_0x422ecc[_0x2210c2(0x206)](_0x495fbb);if(!_0x422ecc||!_0x549ed3)throw new Error(_0x2210c2(0x201));return _0x23efe9[_0x2210c2(0x18a)](l[_0x2210c2(0x1b1)]['id'],{'pivotTableId':this[_0x2210c2(0x14d)],'targetCellInfo':{'subUnitId':_0x549ed3[_0x2210c2(0x180)](),'unitId':this[_0x2210c2(0x1e4)],'row':_0x214148,'col':_0x4ed56b},'originTargetInfo':{'subUnitId':this[_0x2210c2(0x1cf)],'unitId':this[_0x2210c2(0x1e4)]}});}async['setDateGroupType'](_0x440343,_0x156fc9){const _0x1e701f=_0x21cdf8,_0x3d2f2d=this[_0x1e701f(0x17d)],_0x4e7741=this[_0x1e701f(0x1e4)],_0x549d51=this[_0x1e701f(0x1cf)],_0x3d13ac=this['pivotTableId'],_0x4a47c2=_0x3d2f2d['get'](m[_0x1e701f(0x22a)]),_0x35894c={'unitId':_0x4e7741,'subUnitId':_0x549d51,'pivotTableId':_0x3d13ac,'tableFieldId':_0x440343,'dateType':_0x156fc9};return _0x4a47c2[_0x1e701f(0x18a)](l[_0x1e701f(0x23e)]['id'],_0x35894c);}}class oe extends R['FWorkbook']{async['addPivotTable'](_0x48b76b,_0x4bddd6,_0x904891){const _0x3af4bc=_0x21cdf8,_0x3893ee=this[_0x3af4bc(0x17d)],_0x159ba0=_0x3893ee[_0x3af4bc(0x150)](m['ICommandService']),_0x5a1018=r['generateHexNumber'](0x8),_0x53ea33={'positionType':_0x4bddd6,'pivotTableId':_0x5a1018,'pivotTableConfig':{'targetCellInfo':_0x904891,'sourceRangeInfo':_0x48b76b,'isEmpty':!0x0}};if(await _0x159ba0[_0x3af4bc(0x18a)](l[_0x3af4bc(0x20b)]['id'],_0x53ea33))return new x(_0x904891['unitId'],_0x904891[_0x3af4bc(0x1cf)],_0x5a1018,_0x3893ee);}[_0x21cdf8(0x165)](_0x153936,_0x4f66e7,_0x4245e0,_0x379781){const _0x4cc978=_0x21cdf8,_0x199ead=this[_0x4cc978(0x17d)],_0xf6c2d6=_0x199ead['get'](l[_0x4cc978(0x233)])[_0x4cc978(0x159)](_0x153936,_0x4f66e7,_0x4245e0,_0x379781);if(_0xf6c2d6)return new x(_0x153936,_0x4f66e7,_0xf6c2d6,_0x199ead);}[_0x21cdf8(0x1a6)](_0x263f5b){const _0x1efd92=_0x21cdf8,_0x3a99bd=this['_injector'],_0x53cb75=_0x3a99bd[_0x1efd92(0x150)](l[_0x1efd92(0x1d5)])[_0x1efd92(0x1b4)](this[_0x1efd92(0x1dd)](),_0x263f5b);if(_0x53cb75)return new x(_0x53cb75['unitId'],_0x53cb75[_0x1efd92(0x1cf)],_0x263f5b,_0x3a99bd);}}R[_0x21cdf8(0x220)][_0x21cdf8(0x1cd)](oe);class ne extends R[_0x21cdf8(0x238)]{[_0x21cdf8(0x165)](_0x2b2abc,_0x18e876){const _0x2f48f1=_0x21cdf8,_0x33f4aa=this['_injector'],_0x59e330=_0x33f4aa[_0x2f48f1(0x150)](l[_0x2f48f1(0x233)]),_0x569638=this['_workbook'][_0x2f48f1(0x216)](),_0x3044d5=this[_0x2f48f1(0x180)](),_0x2d94eb=_0x59e330[_0x2f48f1(0x159)](_0x569638,_0x3044d5,_0x2b2abc,_0x18e876);if(_0x2d94eb)return new x(_0x569638,_0x3044d5,_0x2d94eb,_0x33f4aa);}}R[_0x21cdf8(0x238)][_0x21cdf8(0x1cd)](ne);class ae extends A[_0x21cdf8(0x21e)]{get[_0x21cdf8(0x1e7)](){const _0x1f8b2f=_0x21cdf8;return r[_0x1f8b2f(0x1e7)];}get[_0x21cdf8(0x22c)](){const _0x3bc89e=_0x21cdf8;return r[_0x3bc89e(0x22c)];}get[_0x21cdf8(0x16e)](){const _0x2ccca5=_0x21cdf8;return r[_0x2ccca5(0x16e)];}get[_0x21cdf8(0x1c4)](){const _0x511f17=_0x21cdf8;return r[_0x511f17(0x1c4)];}get['PivotDataFieldDataTypeEnum'](){const _0x1c5c16=_0x21cdf8;return r[_0x1c5c16(0x189)];}get[_0x21cdf8(0x222)](){const _0x5ba845=_0x21cdf8;return r[_0x5ba845(0x222)];}get[_0x21cdf8(0x23d)](){const _0x555623=_0x21cdf8;return r[_0x555623(0x23d)];}get['PivotFilterOperatorEnum'](){const _0x3cd107=_0x21cdf8;return r[_0x3cd107(0x229)];}get[_0x21cdf8(0x1f0)](){const _0x20bcf3=_0x21cdf8;return l[_0x20bcf3(0x226)];}get['PivotTableChangeTypeEnum'](){return r['PivotTableChangeTypeEnum'];}get['PivotDateGroupFieldDateTypeEnum'](){const _0x48e10f=_0x21cdf8;return r[_0x48e10f(0x1bb)];}}A[_0x21cdf8(0x21e)]['extend'](ae);class se extends A[_0x21cdf8(0x1f9)]{get[_0x21cdf8(0x1da)](){const _0x3eefb9=_0x21cdf8;return _0x3eefb9(0x1da);}get[_0x21cdf8(0x187)](){return'BeforePivotTableAdd';}get[_0x21cdf8(0x1dc)](){const _0x5f51f0=_0x21cdf8;return _0x5f51f0(0x1dc);}get['PivotTableMoved'](){const _0x1714c4=_0x21cdf8;return _0x1714c4(0x15e);}get[_0x21cdf8(0x156)](){const _0x34a8cf=_0x21cdf8;return _0x34a8cf(0x156);}get[_0x21cdf8(0x1d1)](){const _0x21f9b9=_0x21cdf8;return _0x21f9b9(0x1d1);}get[_0x21cdf8(0x1ac)](){const _0x51541f=_0x21cdf8;return _0x51541f(0x1ac);}get[_0x21cdf8(0x1ba)](){return'PivotTableFieldMoved';}get[_0x21cdf8(0x1d3)](){const _0x181af0=_0x21cdf8;return _0x181af0(0x1d3);}get[_0x21cdf8(0x1c0)](){const _0x557f03=_0x21cdf8;return _0x557f03(0x1c0);}get[_0x21cdf8(0x196)](){const _0x5fc52d=_0x21cdf8;return _0x5fc52d(0x196);}get[_0x21cdf8(0x17f)](){const _0xfc111a=_0x21cdf8;return _0xfc111a(0x17f);}get[_0x21cdf8(0x1a5)](){return'PivotTableValuePositionChanged';}}A[_0x21cdf8(0x1f9)]['extend'](se);const Z='YYYY-MM-DD';function _0x4f7e(_0xcc6059,_0x4b3399){const _0x50a04f=_0x50a0();return _0x4f7e=function(_0x4f7e8f,_0x53dd9d){_0x4f7e8f=_0x4f7e8f-0x14a;let _0x5c667f=_0x50a04f[_0x4f7e8f];return _0x5c667f;},_0x4f7e(_0xcc6059,_0x4b3399);}function de(_0x5817d4){return _0x5817d4/0x3e8/0x15180+0x63e1;}function le(_0x1bff46,_0x3969be,_0x33067d,_0x15d77b){const _0x5a1515=_0x21cdf8;var _0x2f736c,_0x2b6c17,_0x202c71,_0x55cb20,_0x1ab31f,_0x4daab7,_0x16d9e5,_0x418bcc,_0x2918fe,_0x2b77ca,_0x2f6034,_0x10ec97,_0x21bca7,_0x59e663,_0x4b4925;const _0x40dbde=[],_0x1fa353=[],_0x1eab84=[],{showRowGrandTotal:_0x5c4837,showRowSubTotal:_0x2d67a8}=_0x15d77b,{cornerView:_0x374701,colView:_0x303995,rowView:_0x541864,dataView:_0x3131e8,formatMap:_0x284a25}=_0x3969be,_0x1708fb=_0x374701['getRowCount'](),_0x51c183=_0x374701['getColCount']();for(let _0x1ff4e7=0x0;_0x1ff4e7<_0x1708fb;_0x1ff4e7++)for(let _0x5e4267=0x0;_0x5e4267<_0x51c183;_0x5e4267++){const _0x300559={...(_0x2b6c17=(_0x2f736c=_0x374701[_0x5a1515(0x1ea)])==null?void 0x0:_0x2f736c[_0x1ff4e7])==null?void 0x0:_0x2b6c17[_0x5e4267]};_0x300559['v']&&(_0x40dbde[_0x1ff4e7]||(_0x40dbde[_0x1ff4e7]=[]),_0x1eab84[_0x1ff4e7]||(_0x1eab84[_0x1ff4e7]=[]),_0x40dbde[_0x1ff4e7][_0x5e4267]=_0x300559['v'],_0x1eab84[_0x1ff4e7][_0x5e4267]=_0x300559['v']);}for(let _0x206750=0x0;_0x206750<_0x303995[_0x5a1515(0x15d)]();_0x206750++){const _0x3b309f=(_0x55cb20=(_0x202c71=_0x303995==null?void 0x0:_0x303995[_0x5a1515(0x234)])==null?void 0x0:_0x202c71[_0x206750])==null?void 0x0:_0x55cb20[_0x5a1515(0x213)],_0x5e25a4=_0x3b309f?_0x284a25[_0x3b309f]:'';for(let _0x55dc35=0x0;_0x55dc35<_0x303995[_0x5a1515(0x231)]();_0x55dc35++){const _0x7dae46={...(_0x4daab7=(_0x1ab31f=_0x303995[_0x5a1515(0x1ea)])==null?void 0x0:_0x1ab31f[_0x206750])==null?void 0x0:_0x4daab7[_0x55dc35]};if((_0x7dae46==null?void 0x0:_0x7dae46['v'])!==void 0x0){let _0x2e782a=_0x5e25a4?m[_0x5a1515(0x198)][_0x5a1515(0x22d)](_0x5e25a4,Number(_0x7dae46['v'])):_0x7dae46['v'];(_0x7dae46==null?void 0x0:_0x7dae46['s'])===r['PivotCellStyleTypeEnum'][_0x5a1515(0x188)]?_0x2e782a=_0x33067d?'小计\x20'+_0x2e782a:_0x5a1515(0x235)+_0x2e782a:(_0x7dae46==null?void 0x0:_0x7dae46['s'])===r[_0x5a1515(0x17c)][_0x5a1515(0x192)]&&(_0x2e782a=_0x33067d?'总计\x20'+_0x2e782a:_0x5a1515(0x21f)+_0x2e782a),(_0x7dae46==null?void 0x0:_0x7dae46['t'])===r['PivotViewCellValueTypeEnum'][_0x5a1515(0x21c)]&&(_0x2e782a=_0x33067d?_0x5a1515(0x185):_0x5a1515(0x184)),_0x40dbde[_0x206750]||(_0x40dbde[_0x206750]=[]),_0x1eab84[_0x206750]||(_0x1eab84[_0x206750]=[]),_0x40dbde[_0x206750][_0x55dc35+_0x51c183]=_0x2e782a,_0x1eab84[_0x206750][_0x55dc35+_0x51c183]=_0x2e782a;}}}let _0x16a188=0x0,_0x2fe7e8=0x0,_0xef759b=0x0;for(let _0x23dac5=0x0;_0x23dac5<_0x541864[_0x5a1515(0x15d)]();_0x23dac5++){const _0x3663a7=_0x541864['info'][_0x23dac5];if(!_0x2d67a8&&_0x3663a7[_0x5a1515(0x202)]&&_0x3663a7[_0x5a1515(0x1ce)]!==0x0){_0xef759b++,_0x2fe7e8=0x0;continue;}if(!(!_0x5c4837&&_0x3663a7[_0x5a1515(0x202)]&&_0x3663a7[_0x5a1515(0x1ce)]===0x0)){for(let _0x3af61f=0x0;_0x3af61f<_0x541864[_0x5a1515(0x231)]();_0x3af61f++){const _0x875c76={...(_0x418bcc=(_0x16d9e5=_0x541864['data'])==null?void 0x0:_0x16d9e5[_0x23dac5])==null?void 0x0:_0x418bcc[_0x3af61f]},_0x89434=(_0x2b77ca=(_0x2918fe=_0x541864==null?void 0x0:_0x541864[_0x5a1515(0x234)])==null?void 0x0:_0x2918fe[_0x3af61f])==null?void 0x0:_0x2b77ca[_0x5a1515(0x213)],_0x17b0ec=_0x89434?_0x284a25[_0x89434]:'';if((_0x875c76==null?void 0x0:_0x875c76['v'])!==void 0x0){let _0x3da8d4=_0x17b0ec?m[_0x5a1515(0x198)][_0x5a1515(0x22d)](_0x17b0ec,Number(_0x875c76['v'])):_0x875c76['v'];(_0x875c76==null?void 0x0:_0x875c76['s'])===r[_0x5a1515(0x17c)][_0x5a1515(0x188)]?_0x3da8d4=_0x33067d?_0x5a1515(0x1e3)+_0x3da8d4:_0x5a1515(0x235)+_0x3da8d4:(_0x875c76==null?void 0x0:_0x875c76['s'])===r[_0x5a1515(0x17c)]['GrandTotal']&&(_0x3da8d4=_0x33067d?_0x5a1515(0x1ae)+_0x3da8d4:_0x5a1515(0x21f)+_0x3da8d4),(_0x875c76==null?void 0x0:_0x875c76['t'])===r[_0x5a1515(0x1d9)]['blank']&&(_0x3da8d4=_0x33067d?_0x5a1515(0x185):_0x5a1515(0x184)),_0x40dbde[_0x16a188+_0x1708fb]||(_0x40dbde[_0x16a188+_0x1708fb]=[]);let _0x51e3c5=_0x1fa353[_0xef759b];_0x51e3c5||(_0x51e3c5=[..._0x1eab84],_0x1fa353[_0xef759b]=_0x51e3c5),_0x51e3c5[_0x2fe7e8+_0x1708fb]||(_0x51e3c5[_0x2fe7e8+_0x1708fb]=[]),_0x51e3c5[_0x2fe7e8+_0x1708fb][_0x3af61f]=_0x3da8d4,_0x40dbde[_0x16a188+_0x1708fb][_0x3af61f]=_0x3da8d4;}}_0x16a188++,_0x541864[_0x5a1515(0x1ec)][_0x23dac5][_0x5a1515(0x202)]?(_0xef759b++,_0x2fe7e8=0x0):_0x2fe7e8++;}}_0x16a188=0x0,_0xef759b=0x0,_0x2fe7e8=0x0;for(let _0x2e3a07=0x0;_0x2e3a07<_0x3131e8[_0x5a1515(0x15d)]();_0x2e3a07++){const _0x5ab551=_0x541864[_0x5a1515(0x1ec)][_0x2e3a07];if(!_0x2d67a8&&_0x5ab551[_0x5a1515(0x202)]&&_0x5ab551[_0x5a1515(0x1ce)]!==0x0){_0xef759b++,_0x2fe7e8=0x0;continue;}if(!(!_0x5c4837&&_0x5ab551[_0x5a1515(0x202)]&&_0x5ab551['level']===0x0)){for(let _0x306a9f=0x0;_0x306a9f<_0x3131e8[_0x5a1515(0x231)]();_0x306a9f++){const _0x168bab={...(_0x10ec97=(_0x2f6034=_0x3131e8[_0x5a1515(0x1ea)])==null?void 0x0:_0x2f6034[_0x2e3a07])==null?void 0x0:_0x10ec97[_0x306a9f]};if(_0x168bab['v']){const _0x23c78d=_0x541864[_0x5a1515(0x1ec)][_0x2e3a07][_0x5a1515(0x18b)],_0x51ae24=_0x303995[_0x5a1515(0x1ec)][_0x306a9f][_0x5a1515(0x18b)],_0x5f0df5=Math['max'](_0x23c78d,_0x51ae24),_0x56af59=_0x1bff46[_0x5a1515(0x19a)]()['concat']();let _0x5317e3='';_0x5f0df5<0x0?_0x5317e3=(_0x21bca7=_0x56af59[0x0])!=null?_0x21bca7:'':_0x5317e3=(_0x59e663=_0x56af59[_0x5f0df5])!=null?_0x59e663:'';const _0x51e166=(_0x4b4925=_0x284a25[_0x5317e3])!=null?_0x4b4925:'';_0x40dbde[_0x16a188+_0x1708fb]||(_0x40dbde[_0x16a188+_0x1708fb]=[]);let _0xbd5e9b=_0x1fa353[_0xef759b];_0xbd5e9b||(_0xbd5e9b=[..._0x1eab84],_0x1fa353[_0xef759b]=_0xbd5e9b),_0xbd5e9b[_0x2fe7e8+_0x1708fb]||(_0xbd5e9b[_0x2fe7e8+_0x1708fb]=[]);const _0x3a3a2c=_0x51e166?m[_0x5a1515(0x198)][_0x5a1515(0x22d)](_0x51e166,Number(_0x168bab['v'])):_0x168bab['v'];_0xbd5e9b[_0x2fe7e8+_0x1708fb][_0x306a9f+_0x51c183]=_0x3a3a2c,_0x40dbde[_0x16a188+_0x1708fb][_0x306a9f+_0x51c183]=_0x3a3a2c;}}_0x16a188++,_0x541864['info'][_0x2e3a07][_0x5a1515(0x202)]?(_0xef759b++,_0x2fe7e8=0x0):_0x2fe7e8++;}}return{'dataArr':_0x40dbde,'dataArrWithSplit':_0x1fa353};}function _0x50a0(){const _0x19a9b3=['Subtotal','PivotDataFieldDataTypeEnum','executeCommand','valueIndex','getformat','lifecycle$','getFieldIdsByArea','updateValuePosition','addFieldWithName','range','GrandTotal','getPivotSourceData','_getSourceIdByName','_fireMovedPivotTableEvent','PivotTableFieldSortChanged','UpdatePivotValuePositionCommand','numfmt','[PivotTable]:\x20The\x20field\x20name\x20','getValueFields','_fireBeforeAddPivotTableEvent','_firePivotTableFieldAddedEvent','setFieldsConfig','remove','object','find','startRow','registerEventHandler','params','RemovePivotTableMutation','PivotTableValuePositionChanged','getPivotTableById','ValueFilter','setDisplayName','DataFieldManager','RemovePivotFieldCommand','Ready','PivotTableFieldRemoved','fieldDataType','总计\x20','getRangeData','_firePivotTableFieldRemovedEvent','MovePivotTableCommand','_firePivotTableFieldMovedEvent','getCurrentLocale','getTargetByPivotTableId','SetPivotValueFilterCommand','displayNameRecord','getFieldDataType','_fireBeforeMovePivotTableEvent','disposeWithMe','PivotTableFieldMoved','PivotDateGroupFieldDateTypeEnum','endRow','3047jWYcxJ','sum','rxjs','PivotTableFieldFilterChanged','LocaleType','valueFilter','sheetName','PivotTableValuePositionEnum','fieldIds','targetCellInfo','getPivotTableId','addField','viewUpdate$','keys','_firePivotTableFieldCollapsedEvent','Filter','extend','level','subUnitId','getValueIndex','PivotTableFieldAdded','getFieldSetting','PivotTableFieldCollapseChanged','concat','SheetsPivotTableConfigModel','forEach','4UNLHJX','length','PivotViewCellValueTypeEnum','PivotTableAdded','date','PivotTableRemoved','getId','MovePivotFieldCommand','AddPivotTableWithConfigCommand','@univerjs-pro/engine-pivot','setSubtotalType','31276KLvTnK','小计\x20','unitId','IUniverInstanceService','@univerjs/core','PivotSubtotalTypeEnum','setOptions','LifecycleService','data','PivotTable','info','Value','_sourceData','reset','PositionTypeEnum','Column','\x20failed.','getFieldDisplayNames','string','_id','name','query','getNameWithColumnIndex','FEventName','column','getPivotTableRangeInfo','9UgqWzt','renameField','warn','getTime','getDataFieldByTableId','[Pivot\x20Table]:\x20Target\x20sheet\x20is\x20not\x20valid','isBottomTotal','fieldsConfig','1398730kAlTGk','Row','getSheetBySheetName','SetPivotSubtotalTypeMutation','setLabelManualFilter','filterFields','ZH_CN','AddPivotTableCommand','getCollection','measure','BeforePivotTableMove','col','symbol','getPivotTableConfig','None','tableFieldId','isNaN','Event','getUnitId','7ExJqKt','iterateFieldByArea','startColumn','filterInfo','_firePivotTableRemovedEvent','blank','getValuePosition','FEnum','Grand\x20Total\x20','FWorkbook','generateHexNumber','PivotDataFieldSortTypeEnum','SetPivotFilterCommand','@univerjs/core/facade','3168424NxQGxh','PositionType','setFieldFormat','dimension','ST_PivotFilterOperatorEnum','ICommandService','getFieldIds','PivotFilterTypeEnum','format','getDimensionInfo','setValueFilter','updateFieldPosition','getColCount','_firePivotTableFieldSortChangedEvent','SheetsPivotTableAdaptorModel','headerMap','Total\x20','53388LnJtcK','getUnit','FWorksheet','getValueFilters','@univerjs-pro/sheets-pivot','Hidden','getDataFieldIdByDisplayName','PivotDataFieldSortOperatorEnum','UpdateDateGroupCommand','dataFieldsCollection','_firePivotTableFieldSettingChangedEvent','_pivot','SetPivotSortCommand','rangeInfo','unionPivotViewRange','191639OqZLGz','rowFields','pivotTableId','342273SUroLh','LifecycleStages','get','value','getFieldDataTypeByFieldName','removeFieldWithName','subtotal','displayName','PivotTableRendered','setSubtotal','filter','getPivotTableIdByCell','createCollection','_fireRenderPivotTableEvent','UpdatePivotFieldSettingCommand','getRowCount','PivotTableMoved','fireEvent','addValueFieldWithName','getFieldCountByArea','Before\x20add\x20pivot\x20table\x20event\x20canceled','removeField','addFieldWithSourceId','getPivotTableByCell','[DataFieldManager]:\x20Data\x20is\x20not\x20a\x20valid\x20array','onCommandExecuted','185MvxDVX','generatePivotTable','\x20is\x20not\x20found\x20in\x20the\x20pivot\x20table.','SetPivotFieldsConfigCommand','Before\x20move\x20pivot\x20table\x20event\x20canceled','getConfig','PivotTableFiledAreaEnum','fieldId','cancel','SetPivotCollapseCommand','getValueFilter','getFieldById','push','number','count','RenamePivotFieldMutation','_isZhCN','AddPivotFieldCommand','_firePivotTableValuePositionChangedEvent','@univerjs/sheets/facade','PivotCellStyleTypeEnum','_injector','beforeCommandExecuted','PivotTableFieldSettingChanged','getSheetId','43032ZjUfkP','row','getFieldDataTypeByColumnIndex','(blank)','(空白)','endColumn','BeforePivotTableAdd'];_0x50a0=function(){return _0x19a9b3;};return _0x50a0();}class re{constructor(_0x771536,_0x56ceae,_0x3e1972,_0x15464a){const _0x2b726b=_0x21cdf8;y(this,'_pivot'),y(this,_0x2b726b(0x1ee)),y(this,'_injector'),y(this,_0x2b726b(0x178)),y(this,_0x2b726b(0x1f5)),(this[_0x2b726b(0x17d)]=_0x771536,this[_0x2b726b(0x241)]=_0x56ceae,this[_0x2b726b(0x1ee)]=_0x3e1972,this['_id']=_0x15464a);const _0x1d0812=this[_0x2b726b(0x17d)]['get'](m['LocaleService']);this['_isZhCN']=_0x1d0812[_0x2b726b(0x1b3)]()===m[_0x2b726b(0x1c1)][_0x2b726b(0x20a)];}[_0x21cdf8(0x194)](_0x388c06){const _0x2c629f=_0x21cdf8,_0x277351=this[_0x2c629f(0x241)][_0x2c629f(0x23c)](_0x388c06);if(!_0x277351)throw new Error(_0x2c629f(0x199)+_0x388c06+_0x2c629f(0x16a));return _0x277351;}[_0x21cdf8(0x190)](_0x1c462c,_0x332535){const _0x5f2270=_0x21cdf8,_0x339e9d=this[_0x5f2270(0x194)](_0x1c462c),_0x323172=this[_0x5f2270(0x241)][_0x5f2270(0x164)](_0x339e9d,_0x332535);if(!_0x323172)throw new Error('[PivotTable]:\x20add\x20field\x20'+_0x1c462c+_0x5f2270(0x1f2));if(_0x332535===r[_0x5f2270(0x16e)][_0x5f2270(0x1ed)]){const _0x14fc5b=_0x323172[_0x5f2270(0x1dd)](),_0x204d32=this['_pivot'][_0x5f2270(0x200)](_0x14fc5b);if(_0x204d32){const _0x1ff843=_0x204d32==null?void 0x0:_0x204d32['getFieldDataType']();this[_0x5f2270(0x241)]['setSubtotalType'](_0x14fc5b,_0x1ff843===r[_0x5f2270(0x189)]['number']?r['PivotSubtotalTypeEnum'][_0x5f2270(0x1be)]:r[_0x5f2270(0x1e7)][_0x5f2270(0x176)]);}const _0x30991d=this[_0x5f2270(0x241)][_0x5f2270(0x1d0)](),_0x1300c9=this[_0x5f2270(0x241)][_0x5f2270(0x21d)](),_0x18d1f3=this[_0x5f2270(0x241)][_0x5f2270(0x161)](r[_0x5f2270(0x16e)]['Value']);if(_0x30991d===-0x1&&_0x18d1f3>0x1){const _0x19a1a9=_0x1300c9===r[_0x5f2270(0x1c4)][_0x5f2270(0x212)]?r[_0x5f2270(0x1c4)][_0x5f2270(0x1f1)]:_0x1300c9,_0x70151c=_0x19a1a9===r[_0x5f2270(0x1c4)][_0x5f2270(0x205)]?r[_0x5f2270(0x16e)][_0x5f2270(0x205)]:r[_0x5f2270(0x16e)]['Column'];this[_0x5f2270(0x241)]['updateValuePosition'](_0x19a1a9,this['_pivot'][_0x5f2270(0x161)](_0x70151c));}}else{if(_0x332535===r[_0x5f2270(0x16e)]['Row']||_0x332535===r[_0x5f2270(0x16e)]['Column']){const _0xa34ae3=_0x323172[_0x5f2270(0x1dd)](),_0x31e030=this[_0x5f2270(0x241)][_0x5f2270(0x200)](_0xa34ae3);if(_0x31e030&&(_0x31e030==null?void 0x0:_0x31e030['getFieldDataType']())===r[_0x5f2270(0x189)][_0x5f2270(0x1db)]){const _0x1e2cc5=_0x31e030[_0x5f2270(0x18c)]();_0x1e2cc5&&this[_0x5f2270(0x241)][_0x5f2270(0x227)](_0xa34ae3,_0x1e2cc5);}}}return _0x323172;}['addFilterFieldWithName'](_0xbbeb34,_0x266edc){const _0x4b5d57=_0x21cdf8,_0x27ee4a=this['_getSourceIdByName'](_0xbbeb34),_0x2209df=this[_0x4b5d57(0x241)]['addFieldWithSourceId'](_0x27ee4a,r[_0x4b5d57(0x16e)][_0x4b5d57(0x1cc)]);return _0x2209df['setFilterInfo'](_0x266edc),_0x2209df;}[_0x21cdf8(0x160)](_0x2eb4d8,_0x2ea3bc){const _0xd743cc=_0x21cdf8,_0x40f9b7=this['addFieldWithName'](_0x2eb4d8,r[_0xd743cc(0x16e)]['Value']);return _0x2ea3bc!=null&&_0x2ea3bc[_0xd743cc(0x154)]&&_0x40f9b7[_0xd743cc(0x157)](_0x2ea3bc==null?void 0x0:_0x2ea3bc[_0xd743cc(0x154)]),_0x40f9b7;}[_0x21cdf8(0x153)](_0x25301e){const _0x48e859=_0x21cdf8,_0x1d7486=this[_0x48e859(0x194)](_0x25301e);this[_0x48e859(0x241)]['getTableFieldsByDataFieldId'](_0x1d7486)[_0x48e859(0x1d6)](_0x39a2dd=>{const _0x1b0107=_0x48e859,_0x21b623=_0x39a2dd[_0x1b0107(0x1dd)]();this[_0x1b0107(0x241)][_0x1b0107(0x163)](_0x21b623);});}['getResultByCalculate'](_0x2d7734={}){const _0x1990fb=_0x21cdf8,_0x297178=this[_0x1990fb(0x241)][_0x1990fb(0x1f7)](),{dataArr:_0x213d45,dataArrWithSplit:_0x38aefb}=le(this[_0x1990fb(0x241)],_0x297178,this[_0x1990fb(0x178)],_0x2d7734);return{'dataArr':_0x213d45,'dataArrWithSplit':_0x38aefb};}[_0x21cdf8(0x1f8)](_0x33a8d2){const _0x1462f2=_0x21cdf8;return this['_pivot'][_0x1462f2(0x1f3)]()[_0x33a8d2];}['reset'](){const _0x5921c7=_0x21cdf8;this[_0x5921c7(0x241)]['reset']();}['resetDimension'](_0x301790){const _0xe190d6=_0x21cdf8;this[_0xe190d6(0x241)][_0xe190d6(0x1ef)](_0x301790);}[_0x21cdf8(0x183)](_0x4e4ce5){const _0x4d5077=_0x21cdf8,_0x522488=this[_0x4d5077(0x241)][_0x4d5077(0x23f)],_0x1e86f9=_0x522488[_0x4d5077(0x22b)]()[_0x4e4ce5];if(_0x1e86f9)return _0x522488[_0x4d5077(0x173)](_0x1e86f9)[_0x4d5077(0x1b7)]();}[_0x21cdf8(0x152)](_0x4b24eb){const _0x413a15=_0x21cdf8,_0x40550b=this[_0x413a15(0x194)](_0x4b24eb),_0x141840=this[_0x413a15(0x241)][_0x413a15(0x23f)][_0x413a15(0x173)](_0x40550b);return _0x141840==null?void 0x0:_0x141840['getFieldDataType']();}[_0x21cdf8(0x22e)](){const _0x5daefb=_0x21cdf8,_0x174f19={};return[[r['PivotTableFiledAreaEnum']['Row'],'row'],[r['PivotTableFiledAreaEnum'][_0x5daefb(0x1f1)],_0x5daefb(0x1fa)],[r['PivotTableFiledAreaEnum'][_0x5daefb(0x1cc)],_0x5daefb(0x158)],[r['PivotTableFiledAreaEnum'][_0x5daefb(0x1ed)],_0x5daefb(0x151)]][_0x5daefb(0x1d6)](_0x1aaed4=>{const _0x26ad35=_0x5daefb,[_0x40aae8,_0x184487]=_0x1aaed4;this['_pivot'][_0x26ad35(0x218)](_0x40aae8,_0x5c0551=>{const _0xd3199b=_0x26ad35;_0x174f19[_0x184487]||(_0x174f19[_0x184487]=[]),_0x174f19[_0x184487][_0xd3199b(0x174)](_0x5c0551['getSourceName']());});}),Object[_0x5daefb(0x1ca)](_0x174f19)[_0x5daefb(0x1d8)]>0x0?_0x174f19:void 0x0;}[_0x21cdf8(0x193)](){return this['_sourceData'];}[_0x21cdf8(0x1e8)](_0x15eb08){const _0x1f372d=_0x21cdf8;this[_0x1f372d(0x241)][_0x1f372d(0x1e8)](_0x15eb08);}[_0x21cdf8(0x19e)](){this['_pivot']['dispose']();}}class ve extends r[_0x21cdf8(0x1a9)]{[_0x21cdf8(0x1af)](_0x10c68e){const _0x1e7d55=_0x21cdf8;if(Array['isArray'](_0x10c68e)&&_0x10c68e[_0x1e7d55(0x1d8)]>0x0){const _0x50d041=[],_0x2a5e98=_0x10c68e[0x0],_0x194a34={},_0x3abc28=_0x10c68e[0x1];for(let _0x559e2c=0x0;_0x559e2c<_0x3abc28['length'];_0x559e2c++){const _0x3f56f3=_0x3abc28[_0x559e2c];if(typeof _0x3f56f3==_0x1e7d55(0x19f)&&_0x3f56f3 instanceof Date)_0x194a34[_0x559e2c]=Z;else{if(typeof _0x3f56f3==_0x1e7d55(0x1f4)){const _0xe21ddf=new Date(_0x3f56f3);Number[_0x1e7d55(0x214)](_0xe21ddf[_0x1e7d55(0x1ff)]())||(_0x194a34[_0x559e2c]=Z);}}}for(let _0x338b03=0x1;_0x338b03<_0x10c68e[_0x1e7d55(0x1d8)];_0x338b03++){const _0x1c2527=_0x10c68e[_0x338b03],_0x586fea=[];for(let _0x42ac30=0x0;_0x42ac30<_0x1c2527['length'];_0x42ac30++)if(_0x194a34[_0x42ac30]){const _0x47b4e1=_0x1c2527[_0x42ac30],_0x2356a4=typeof _0x47b4e1==_0x1e7d55(0x19f)&&_0x47b4e1 instanceof Date?_0x47b4e1:new Date(_0x47b4e1),_0x267b3f={'v':de(_0x2356a4[_0x1e7d55(0x1ff)]()),'f':_0x194a34[_0x42ac30]};_0x586fea[_0x1e7d55(0x174)](_0x267b3f);}else _0x586fea['push'](_0x1c2527[_0x42ac30]);_0x50d041['push'](_0x586fea);}return{'header':_0x2a5e98,'data':_0x50d041};}else throw new Error(_0x1e7d55(0x166));}}class ce extends A['FUniver']{['_initialize'](_0x7b64d1){const _0x59d521=_0x21cdf8,_0x13dff7=_0x7b64d1['get'](m[_0x59d521(0x22a)]);this[_0x59d521(0x1a2)](this[_0x59d521(0x215)]['BeforePivotTableAdd'],()=>_0x13dff7['beforeCommandExecuted'](_0x2de059=>{const _0x3e7f0b=_0x59d521;switch(_0x2de059['id']){case l[_0x3e7f0b(0x1b1)]['id']:{const _0x9e8d8b=_0x2de059['params'];this[_0x3e7f0b(0x1b8)](_0x9e8d8b);break;}}})),this[_0x59d521(0x1a2)](this[_0x59d521(0x215)]['BeforePivotTableMove'],()=>_0x13dff7[_0x59d521(0x17e)](_0xe6e3fb=>{const _0x5b37b5=_0x59d521;switch(_0xe6e3fb['id']){case l[_0x5b37b5(0x1df)]['id']:case l[_0x5b37b5(0x20b)]['id']:{const _0x5de9e4=_0xe6e3fb[_0x5b37b5(0x1a3)];this['_fireBeforeAddPivotTableEvent'](_0x5de9e4);break;}}})),this[_0x59d521(0x1a2)](this[_0x59d521(0x215)][_0x59d521(0x1da)],()=>_0x13dff7['onCommandExecuted'](_0x51c96f=>{const _0x37788a=_0x59d521;if(_0x51c96f['id']===l[_0x37788a(0x1df)]['id']||_0x51c96f['id']===l[_0x37788a(0x20b)]['id']){const _0x4db163=_0x51c96f['params'];this['_fireAddPivotTableEvent'](_0x4db163);}})),this[_0x59d521(0x1a2)](this[_0x59d521(0x215)]['PivotTableMoved'],()=>_0x13dff7[_0x59d521(0x167)](_0x50d03b=>{const _0x27f5b4=_0x59d521;if(_0x50d03b['id']===l['MovePivotTableCommand']['id']){const _0x526b7c=_0x50d03b[_0x27f5b4(0x1a3)];this[_0x27f5b4(0x195)](_0x526b7c);}})),this[_0x59d521(0x1a2)](this[_0x59d521(0x215)][_0x59d521(0x1dc)],()=>_0x13dff7[_0x59d521(0x167)](_0xf666b5=>{const _0x22a8f0=_0x59d521;if(_0xf666b5['id']===l[_0x22a8f0(0x1a4)]['id']){const _0x3e0398=_0xf666b5['params'];this[_0x22a8f0(0x21b)](_0x3e0398);}})),this['registerEventHandler'](this[_0x59d521(0x215)][_0x59d521(0x1d1)],()=>_0x13dff7['onCommandExecuted'](_0xc74ad9=>{const _0x5ab784=_0x59d521;if(_0xc74ad9['id']===l[_0x5ab784(0x179)]['id']){const _0x376bad=_0xc74ad9[_0x5ab784(0x1a3)];this[_0x5ab784(0x19c)](_0x376bad);}})),this[_0x59d521(0x1a2)](this['Event'][_0x59d521(0x1ac)],()=>_0x13dff7[_0x59d521(0x167)](_0x2345b3=>{const _0x34cacd=_0x59d521;if(_0x2345b3['id']===l[_0x34cacd(0x1aa)]['id']){const _0x44e499=_0x2345b3['params'];this['_firePivotTableFieldRemovedEvent'](_0x44e499);}})),this['registerEventHandler'](this[_0x59d521(0x215)][_0x59d521(0x1ba)],()=>_0x13dff7[_0x59d521(0x167)](_0x47542a=>{const _0x129957=_0x59d521;if(_0x47542a['id']===l['MovePivotFieldCommand']['id']){const _0x311baf=_0x47542a[_0x129957(0x1a3)];this['_firePivotTableFieldMovedEvent'](_0x311baf);}})),this['registerEventHandler'](this[_0x59d521(0x215)]['PivotTableFieldCollapseChanged'],()=>_0x13dff7[_0x59d521(0x167)](_0x5e16f5=>{const _0x158724=_0x59d521;if(_0x5e16f5['id']===l[_0x158724(0x171)]['id']){const _0x3099c8=_0x5e16f5[_0x158724(0x1a3)];this[_0x158724(0x1cb)](_0x3099c8);}})),this[_0x59d521(0x1a2)](this[_0x59d521(0x215)][_0x59d521(0x1c0)],()=>_0x13dff7[_0x59d521(0x167)](_0x2270d0=>{const _0x3a4263=_0x59d521;if(_0x2270d0['id']===l[_0x3a4263(0x223)]['id']){const _0x44b17b=_0x2270d0[_0x3a4263(0x1a3)];this['_firePivotTableFieldFilterChangedEvent'](_0x44b17b);}})),this[_0x59d521(0x1a2)](this[_0x59d521(0x215)]['PivotTableFieldSortChanged'],()=>_0x13dff7[_0x59d521(0x167)](_0xea8246=>{const _0x643b76=_0x59d521;if(_0xea8246['id']===l[_0x643b76(0x242)]['id']){const _0x267561=_0xea8246[_0x643b76(0x1a3)];this[_0x643b76(0x232)](_0x267561);}})),this[_0x59d521(0x1a2)](this[_0x59d521(0x215)][_0x59d521(0x17f)],()=>_0x13dff7[_0x59d521(0x167)](_0x4a605c=>{const _0x9683d5=_0x59d521;if(_0x4a605c['id']===l[_0x9683d5(0x15c)]['id']){const _0x37d2d1=_0x4a605c['params'];this[_0x9683d5(0x240)](_0x37d2d1);}})),this['registerEventHandler'](this[_0x59d521(0x215)][_0x59d521(0x1a5)],()=>_0x13dff7[_0x59d521(0x167)](_0x1e292b=>{const _0x22e710=_0x59d521;if(_0x1e292b['id']===l[_0x22e710(0x197)]['id']){const _0x40d3bc=_0x1e292b[_0x22e710(0x1a3)];this[_0x22e710(0x17a)](_0x40d3bc);}}));const _0x17aa73=_0x7b64d1['get'](m[_0x59d521(0x1e9)]);this[_0x59d521(0x1b9)](_0x17aa73[_0x59d521(0x18d)]['subscribe'](_0x570af5=>{const _0x18b6f5=_0x59d521;if(_0x570af5===m[_0x18b6f5(0x14f)][_0x18b6f5(0x1ab)]){const _0x265c33=_0x7b64d1[_0x18b6f5(0x150)](l[_0x18b6f5(0x233)]);this[_0x18b6f5(0x1a2)](this['Event']['PivotTableRendered'],()=>_0x265c33[_0x18b6f5(0x1c9)]['pipe'](ie['auditTime'](0x32))['subscribe'](_0x292303=>{this['_fireRenderPivotTableEvent'](_0x292303);}));}}));}['_firePivotTableFieldAddedEvent'](_0x24f20d){const _0x5b2021=_0x21cdf8;if(_0x24f20d){const {unitId:_0x2fa22b,subUnitId:_0x5888f9,pivotTableId:_0xb6bd20,dataFieldId:_0x1da504,fieldArea:_0x503297,index:_0x9c6537}=_0x24f20d;this[_0x5b2021(0x15f)](this[_0x5b2021(0x215)][_0x5b2021(0x1d1)],{'unitId':_0x2fa22b,'subUnitId':_0x5888f9,'pivotTableId':_0xb6bd20,'dataFieldId':_0x1da504,'fieldArea':_0x503297,'index':_0x9c6537});}}[_0x21cdf8(0x1b0)](_0x1eb9a4){const _0x1d506c=_0x21cdf8;if(_0x1eb9a4){const {unitId:_0xcecb20,subUnitId:_0xe40818,pivotTableId:_0x2f9353,fieldIds:_0x4fc476}=_0x1eb9a4;this[_0x1d506c(0x15f)](this[_0x1d506c(0x215)]['PivotTableFieldRemoved'],{'unitId':_0xcecb20,'subUnitId':_0xe40818,'pivotTableId':_0x2f9353,'fieldIds':_0x4fc476[_0x1d506c(0x1d4)]()});}}[_0x21cdf8(0x1b2)](_0x573822){const _0x54f40c=_0x21cdf8;if(_0x573822){const {unitId:_0x1bd5d0,subUnitId:_0x5ae915,pivotTableId:_0x3111c9,fieldId:_0x228bd5,area:_0x1ea219,index:_0x1bcfca}=_0x573822;this['fireEvent'](this[_0x54f40c(0x215)][_0x54f40c(0x1ba)],{'unitId':_0x1bd5d0,'subUnitId':_0x5ae915,'pivotTableId':_0x3111c9,'fieldId':_0x228bd5,'area':_0x1ea219,'index':_0x1bcfca});}}[_0x21cdf8(0x1cb)](_0x3b025a){if(_0x3b025a){const {unitId:_0x16bc6e,subUnitId:_0x56c35b,row:_0x4f2948,col:_0x516baa,collapse:_0x10acfe}=_0x3b025a;this['fireEvent'](this['Event']['PivotTableFieldCollapseChanged'],{'unitId':_0x16bc6e,'subUnitId':_0x56c35b,'row':_0x4f2948,'col':_0x516baa,'collapse':_0x10acfe});}}['_firePivotTableFieldFilterChangedEvent'](_0x285be1){const _0x18fac3=_0x21cdf8;if(_0x285be1){const {unitId:_0xcf1ea5,subUnitId:_0x1fe914,pivotTableId:_0x14e955,tableFieldId:_0x3066f6,items:_0xf8fccb,isAll:_0x2cf9e9}=_0x285be1;this[_0x18fac3(0x15f)](this[_0x18fac3(0x215)]['PivotTableFieldFilterChanged'],{'unitId':_0xcf1ea5,'subUnitId':_0x1fe914,'pivotTableId':_0x14e955,'tableFieldId':_0x3066f6,'items':_0xf8fccb[_0x18fac3(0x1d4)](),'isAll':_0x2cf9e9});}}[_0x21cdf8(0x232)](_0x28b107){const _0x142107=_0x21cdf8;if(_0x28b107){const {unitId:_0x2cb998,subUnitId:_0x47ae57,pivotTableId:_0x4c2370,tableFieldId:_0x41c6bf,info:_0x329bc2}=_0x28b107;this[_0x142107(0x15f)](this[_0x142107(0x215)][_0x142107(0x196)],{'unitId':_0x2cb998,'subUnitId':_0x47ae57,'pivotTableId':_0x4c2370,'tableFieldId':_0x41c6bf,'info':{..._0x329bc2}});}}[_0x21cdf8(0x240)](_0x1e8b61){const _0x24bd80=_0x21cdf8;if(_0x1e8b61){const {unitId:_0x3e7532,subUnitId:_0x5bc053,tableFieldId:_0x324238,pivotTableId:_0x41b559,displayName:_0x154f68,format:_0x5256bf,subtotalType:_0x480cca,tableFieldInfo:_0x556c2e,dataFieldInfo:_0x38224f}=_0x1e8b61;this[_0x24bd80(0x15f)](this[_0x24bd80(0x215)][_0x24bd80(0x17f)],{'unitId':_0x3e7532,'subUnitId':_0x5bc053,'tableFieldId':_0x324238,'pivotTableId':_0x41b559,'displayName':_0x154f68,'format':_0x5256bf,'subtotalType':_0x480cca,'tableFieldInfo':_0x556c2e,'dataFieldInfo':_0x38224f});}}[_0x21cdf8(0x17a)](_0x4cae6a){const _0x1f9447=_0x21cdf8;if(_0x4cae6a){const {pivotTableId:_0x454ab0,position:_0x432408,index:_0x49a643}=_0x4cae6a;this[_0x1f9447(0x15f)](this[_0x1f9447(0x215)][_0x1f9447(0x1a5)],{'pivotTableId':_0x454ab0,'position':_0x432408,'index':_0x49a643});}}['_fireAddPivotTableEvent'](_0x152439){const _0x770d5=_0x21cdf8;if(_0x152439){const {positionType:_0x2d0885,pivotTableId:_0x581a79,pivotTableConfig:_0x440f14}=_0x152439,{targetCellInfo:_0x2ac099,sourceRangeInfo:_0x18f59e}=_0x440f14,{unitId:_0xf27217}=_0x2ac099;this[_0x770d5(0x15f)](this[_0x770d5(0x215)][_0x770d5(0x1da)],{'unitId':_0xf27217,'positionType':_0x2d0885,'pivotTableId':_0x581a79,'sourceRangeInfo':{'startRow':_0x18f59e[_0x770d5(0x191)][_0x770d5(0x1a1)],'endRow':_0x18f59e['range']['endRow'],'startColumn':_0x18f59e[_0x770d5(0x191)]['startColumn'],'endColumn':_0x18f59e[_0x770d5(0x191)][_0x770d5(0x186)],'unitId':_0x18f59e['unitId'],'subUnitId':_0x18f59e[_0x770d5(0x1cf)],'sheetName':_0x18f59e['sheetName']},'targetCellInfo':{'row':_0x2ac099[_0x770d5(0x182)],'column':_0x2ac099[_0x770d5(0x20f)],'sheetName':_0x2ac099[_0x770d5(0x1c3)],'unitId':_0x2ac099[_0x770d5(0x1e4)],'subUnitId':_0x2ac099['subUnitId']}});}}[_0x21cdf8(0x19b)](_0x57ecfc){const _0x354de8=_0x21cdf8;if(_0x57ecfc){const {positionType:_0x22e330,pivotTableId:_0x246809,pivotTableConfig:_0x28c6f5}=_0x57ecfc,{targetCellInfo:_0x1495c3,sourceRangeInfo:_0x3e1212}=_0x28c6f5,{unitId:_0x3b1589}=_0x1495c3,_0x1703e8={'unitId':_0x3b1589,'positionType':_0x22e330,'pivotTableId':_0x246809,'sourceRangeInfo':{'startRow':_0x3e1212['range']['startRow'],'endRow':_0x3e1212['range'][_0x354de8(0x1bc)],'startColumn':_0x3e1212[_0x354de8(0x191)][_0x354de8(0x219)],'endColumn':_0x3e1212[_0x354de8(0x191)]['endColumn'],'unitId':_0x3e1212['unitId'],'subUnitId':_0x3e1212[_0x354de8(0x1cf)],'sheetName':_0x3e1212[_0x354de8(0x1c3)]},'targetCellInfo':{'row':_0x1495c3['row'],'column':_0x1495c3[_0x354de8(0x20f)],'sheetName':_0x1495c3[_0x354de8(0x1c3)],'unitId':_0x1495c3[_0x354de8(0x1e4)],'subUnitId':_0x1495c3[_0x354de8(0x1cf)]},'cancel':!0x1};if(this[_0x354de8(0x15f)](this[_0x354de8(0x215)][_0x354de8(0x187)],_0x1703e8),_0x1703e8['cancel'])throw new Error(_0x354de8(0x162));}}[_0x21cdf8(0x21b)](_0x5276e9){const _0x2b45b5=_0x21cdf8;if(_0x5276e9){const {unitId:_0x16f7a2,pivotTableId:_0x16677f}=_0x5276e9;this[_0x2b45b5(0x15f)](this[_0x2b45b5(0x215)][_0x2b45b5(0x1dc)],{'unitId':_0x16f7a2,'pivotTableId':_0x16677f});}}['_fireBeforeMovePivotTableEvent'](_0x18f75d){const _0x7cb21e=_0x21cdf8;if(_0x18f75d){const {originTargetInfo:_0x5387ee,pivotTableId:_0xb959a0,targetCellInfo:_0xb5ffcd}=_0x18f75d,{unitId:_0x3d0192}=_0x5387ee,_0x35bb02=this[_0x7cb21e(0x17d)][_0x7cb21e(0x150)](l[_0x7cb21e(0x1d5)])['getPivotTableConfig'](_0x5387ee[_0x7cb21e(0x1e4)],_0x5387ee[_0x7cb21e(0x1cf)],_0xb959a0);if(!_0x35bb02)return;const _0x2054a1={'unitId':_0x3d0192,'pivotTableId':_0xb959a0,'originTargetInfo':{'row':_0x35bb02[_0x7cb21e(0x1c6)]['row'],'column':_0x35bb02[_0x7cb21e(0x1c6)][_0x7cb21e(0x20f)],'unitId':_0x35bb02[_0x7cb21e(0x1c6)]['unitId'],'subUnitId':_0x35bb02[_0x7cb21e(0x1c6)][_0x7cb21e(0x1cf)]},'targetCellInfo':{'row':_0xb5ffcd[_0x7cb21e(0x182)],'column':_0xb5ffcd[_0x7cb21e(0x20f)],'unitId':_0xb5ffcd[_0x7cb21e(0x1e4)],'subUnitId':_0xb5ffcd[_0x7cb21e(0x1cf)]},'cancel':!0x1};if(this['fireEvent'](this[_0x7cb21e(0x215)][_0x7cb21e(0x20e)],_0x2054a1),_0x2054a1[_0x7cb21e(0x170)])throw new Error(_0x7cb21e(0x16c));}}['_fireMovedPivotTableEvent'](_0x14c116){const _0x5ce7ac=_0x21cdf8;if(_0x14c116){const {originTargetInfo:_0x3ee765,pivotTableId:_0x3bd1c8,targetCellInfo:_0x2e44a3}=_0x14c116,{unitId:_0x4aeaa6}=_0x3ee765,_0xf642ce=this[_0x5ce7ac(0x17d)][_0x5ce7ac(0x150)](l[_0x5ce7ac(0x1d5)])[_0x5ce7ac(0x211)](_0x3ee765[_0x5ce7ac(0x1e4)],_0x3ee765[_0x5ce7ac(0x1cf)],_0x3bd1c8);if(!_0xf642ce)return;this['fireEvent'](this[_0x5ce7ac(0x215)][_0x5ce7ac(0x15e)],{'unitId':_0x4aeaa6,'pivotTableId':_0x3bd1c8,'originTargetInfo':{'row':_0xf642ce[_0x5ce7ac(0x1c6)][_0x5ce7ac(0x182)],'column':_0xf642ce[_0x5ce7ac(0x1c6)]['col'],'unitId':_0xf642ce[_0x5ce7ac(0x1c6)][_0x5ce7ac(0x1e4)],'subUnitId':_0xf642ce[_0x5ce7ac(0x1c6)][_0x5ce7ac(0x1cf)]},'targetCellInfo':{'row':_0x2e44a3[_0x5ce7ac(0x182)],'column':_0x2e44a3[_0x5ce7ac(0x20f)],'unitId':_0x2e44a3[_0x5ce7ac(0x1e4)],'subUnitId':_0x2e44a3[_0x5ce7ac(0x1cf)]}});}}[_0x21cdf8(0x15b)](_0x1bbc79){const _0x158a4e=_0x21cdf8;if(_0x1bbc79){const {unitId:_0x30ea57,subUnitId:_0x3f0949,pivotTableId:_0x104b86,type:_0x2e12a4,rangesCache:_0x1478dd,isEmpty:_0x2bbfc2}=_0x1bbc79;this[_0x158a4e(0x15f)](this[_0x158a4e(0x215)][_0x158a4e(0x156)],{'unitId':_0x30ea57,'subUnitId':_0x3f0949,'pivotTableId':_0x104b86,'changeType':_0x2e12a4,'isEmpty':!!_0x2bbfc2,'rangeInfo':_0x1478dd});}}[_0x21cdf8(0x169)](_0x3c6858,_0x3c9718){const _0x570cfe=_0x21cdf8,_0x521a67=(_0x3c9718?new _0x3c9718():new ve())[_0x570cfe(0x15a)](_0x570cfe(0x1ea),_0x3c6858),_0x461810=_0x3c6858[0x0];_0x521a67[_0x570cfe(0x22b)]()['forEach']((_0x258393,_0x35c815)=>{const _0x5b1297=_0x570cfe;_0x521a67[_0x5b1297(0x1a8)](_0x258393,_0x461810[_0x35c815]);});const _0x13d88f=r[_0x570cfe(0x221)](0x8),_0x28ab1c=new r[(_0x570cfe(0x1eb))](_0x521a67,void 0x0,_0x13d88f);return new re(this[_0x570cfe(0x17d)],_0x28ab1c,_0x3c6858,_0x13d88f);}}A['FUniver'][_0x21cdf8(0x1cd)](ce);
1
+ 'use strict';const _0x4df760=_0x3878;function _0x3878(_0x175205,_0x7df81b){const _0x11a5da=_0x11a5();return _0x3878=function(_0x387895,_0x718a4b){_0x387895=_0x387895-0x97;let _0x59f1da=_0x11a5da[_0x387895];return _0x59f1da;},_0x3878(_0x175205,_0x7df81b);}(function(_0x28db77,_0x351a1d){const _0x18386f=_0x3878,_0x3e7af9=_0x28db77();while(!![]){try{const _0x292399=-parseInt(_0x18386f(0x17f))/0x1+-parseInt(_0x18386f(0x132))/0x2+parseInt(_0x18386f(0xf4))/0x3+-parseInt(_0x18386f(0xe4))/0x4+parseInt(_0x18386f(0xbc))/0x5+-parseInt(_0x18386f(0x179))/0x6+parseInt(_0x18386f(0xfd))/0x7;if(_0x292399===_0x351a1d)break;else _0x3e7af9['push'](_0x3e7af9['shift']());}catch(_0x59c83e){_0x3e7af9['push'](_0x3e7af9['shift']());}}}(_0x11a5,0x1b32f));var ee=Object['defineProperty'],te=(_0x432914,_0x2cc827,_0x484eb4)=>_0x2cc827 in _0x432914?ee(_0x432914,_0x2cc827,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x484eb4}):_0x432914[_0x2cc827]=_0x484eb4,y=(_0x376423,_0x2c18de,_0x221976)=>te(_0x376423,typeof _0x2c18de!=_0x4df760(0xee)?_0x2c18de+'':_0x2c18de,_0x221976);const r=require(_0x4df760(0x16b)),l=require('@univerjs-pro/sheets-pivot'),m=require(_0x4df760(0xeb)),R=require(_0x4df760(0xf1)),A=require('@univerjs/core/facade'),ie=require(_0x4df760(0xa9));class x{constructor(_0x5a7cbb,_0x4b224b,_0x35bb10,_0x4e5f91){const _0x58fd34=_0x4df760;y(this,_0x58fd34(0xab)),y(this,_0x58fd34(0x107)),y(this,'pivotTableId'),y(this,_0x58fd34(0xc2)),(this['unitId']=_0x5a7cbb,this[_0x58fd34(0x107)]=_0x4b224b,this['pivotTableId']=_0x35bb10,this[_0x58fd34(0xc2)]=_0x4e5f91);}[_0x4df760(0xd3)](){const _0x4facc1=_0x4df760;return this[_0x4facc1(0xc2)][_0x4facc1(0x12a)](l[_0x4facc1(0xff)])[_0x4facc1(0xb4)](this[_0x4facc1(0xab)],this['subUnitId'],this[_0x4facc1(0x16d)]);}[_0x4df760(0xf0)](_0x4b7d97){const _0x352618=_0x4df760,_0x58d3e7=this[_0x352618(0xc2)][_0x352618(0x12a)](m[_0x352618(0xe2)]),_0x550576={'unitId':this['unitId'],'subUnitId':this[_0x352618(0x107)],'pivotTableId':this[_0x352618(0x16d)],'pivotTableConfig':_0x4b7d97};return _0x58d3e7[_0x352618(0x120)](l[_0x352618(0xbf)]['id'],_0x550576);}[_0x4df760(0x153)](_0x92b9a3){const _0x415f54=_0x4df760,_0x115eff=this[_0x415f54(0xc2)][_0x415f54(0x12a)](m['ICommandService']),_0x326212={'unitId':this[_0x415f54(0xab)],'subUnitId':this[_0x415f54(0x107)],'pivotTableId':this[_0x415f54(0x16d)],'resetArea':_0x92b9a3};return _0x115eff[_0x415f54(0x120)](l[_0x415f54(0x185)]['id'],_0x326212);}[_0x4df760(0x176)](){return this['pivotTableId'];}[_0x4df760(0x97)](_0x251162){const _0x1d7645=_0x4df760,_0x4308a1=this[_0x1d7645(0xc2)][_0x1d7645(0x12a)](l['SheetsPivotTableConfigModel'])[_0x1d7645(0xb4)](this[_0x1d7645(0xab)],this[_0x1d7645(0x107)],this[_0x1d7645(0x16d)]),_0x215eab=_0x4308a1==null?void 0x0:_0x4308a1[_0x1d7645(0xef)];if(_0x215eab)return _0x215eab[_0x1d7645(0xdd)][_0x251162]||_0x215eab[_0x1d7645(0x166)][_0x251162];}[_0x4df760(0x11b)](){const _0x239334=_0x4df760,_0x27bced=this[_0x239334(0xc2)],_0x3d0df6=this[_0x239334(0xab)],_0x2704cc=this[_0x239334(0x16d)],_0x484f3c=_0x27bced[_0x239334(0x12a)](l[_0x239334(0xff)])[_0x239334(0xf3)](_0x3d0df6,_0x2704cc);if(_0x484f3c){const _0x72cb48=_0x484f3c[_0x239334(0x144)],_0x3bda1b=_0x484f3c[_0x239334(0xb5)],_0x1f51d9=_0x484f3c['displayNameRecord'],_0xc06f1a=[];for(const _0x31bd74 of _0x72cb48){const _0x52cf2f=_0x3bda1b[_0x31bd74];if(_0x52cf2f){const _0x3b1128={'id':_0x31bd74,'name':_0x52cf2f[_0x239334(0xe6)],'fieldDataType':_0x52cf2f[_0x239334(0x17a)]};_0x1f51d9&&_0x1f51d9[_0x31bd74]!==void 0x0&&(_0x3b1128[_0x239334(0xdb)]=_0x1f51d9[_0x31bd74]),_0xc06f1a[_0x239334(0x180)](_0x3b1128);}}return _0xc06f1a;}return[];}[_0x4df760(0x178)](_0xa4120){const _0x293af0=_0x4df760;var _0x19653e;const _0x4892=this[_0x293af0(0xc2)][_0x293af0(0x12a)](l[_0x293af0(0xff)])[_0x293af0(0xb4)](this['unitId'],this[_0x293af0(0x107)],this[_0x293af0(0x16d)]),_0x2a6478=_0x4892==null?void 0x0:_0x4892['fieldsConfig'][_0x293af0(0x99)];return(_0x19653e=_0x2a6478==null?void 0x0:_0x2a6478[_0x293af0(0x10a)](_0x3ece36=>_0x3ece36[_0x293af0(0x9c)]===_0xa4120))==null?void 0x0:_0x19653e['filterInfo'];}[_0x4df760(0x98)](){const _0x2313d2=_0x4df760,_0x10fd13=this['_injector'][_0x2313d2(0x12a)](l[_0x2313d2(0xff)])[_0x2313d2(0xb4)](this['unitId'],this[_0x2313d2(0x107)],this[_0x2313d2(0x16d)]),_0xe3e478=_0x10fd13==null?void 0x0:_0x10fd13[_0x2313d2(0xef)][_0x2313d2(0x99)];return(_0xe3e478==null?void 0x0:_0xe3e478[_0x2313d2(0x13e)]())||[];}['getFieldIdsByArea'](_0x211984){const _0x1d3ed0=_0x4df760,_0x3e3647=this[_0x1d3ed0(0xc2)][_0x1d3ed0(0x12a)](l['SheetsPivotTableConfigModel'])['getPivotTableConfig'](this[_0x1d3ed0(0xab)],this[_0x1d3ed0(0x107)],this[_0x1d3ed0(0x16d)]),_0x4d8087=_0x3e3647==null?void 0x0:_0x3e3647[_0x1d3ed0(0xef)];if(_0x4d8087)switch(_0x211984){case r[_0x1d3ed0(0x181)]['Column']:return _0x4d8087['columnFields']['concat']();case r[_0x1d3ed0(0x181)][_0x1d3ed0(0x147)]:return _0x4d8087[_0x1d3ed0(0x167)][_0x1d3ed0(0x13e)]();case r['PivotTableFiledAreaEnum'][_0x1d3ed0(0x154)]:return _0x4d8087[_0x1d3ed0(0xaf)][_0x1d3ed0(0x13e)]();case r['PivotTableFiledAreaEnum'][_0x1d3ed0(0xbd)]:return _0x4d8087[_0x1d3ed0(0x15f)][_0x1d3ed0(0x13e)]();case r['PivotTableFiledAreaEnum'][_0x1d3ed0(0x108)]:return _0x4d8087['hiddenFields']['concat']();}return[];}[_0x4df760(0x171)](){const _0x5baee2=_0x4df760;var _0x2f0405;const _0x4138f7=(_0x2f0405=this[_0x5baee2(0xc2)][_0x5baee2(0x12a)](l[_0x5baee2(0xff)])[_0x5baee2(0x171)](this[_0x5baee2(0xab)],this[_0x5baee2(0x107)],this[_0x5baee2(0x16d)]))==null?void 0x0:_0x2f0405['rangeInfo'];if(_0x4138f7)return l[_0x5baee2(0x136)](_0x4138f7);}async[_0x4df760(0x122)](){const _0x4d63e0=_0x4df760;return await this[_0x4d63e0(0xc2)][_0x4d63e0(0x12a)](m['ICommandService'])[_0x4d63e0(0x135)](l['RemovePivotTableMutation']['id'],{'unitId':this[_0x4d63e0(0xab)],'subUnitId':this[_0x4d63e0(0x107)],'pivotTableId':this['pivotTableId']});}async['addField'](_0x31d38a,_0x21ba64,_0x1aedf6){const _0x166d0c=_0x4df760,_0x2a6a9a=this['_injector'],_0x3e0d1a=this[_0x166d0c(0xab)],_0x20ea1d=this['subUnitId'],_0x4a1e5c=this['pivotTableId'],_0x57e653=_0x2a6a9a[_0x166d0c(0x12a)](m[_0x166d0c(0xe2)]),_0xe35ae9=_0x2a6a9a['get'](l[_0x166d0c(0xff)]),_0x80e95e=_0xe35ae9[_0x166d0c(0xb4)](_0x3e0d1a,_0x20ea1d,_0x4a1e5c),_0xadffa8=_0xe35ae9[_0x166d0c(0xf3)](_0x3e0d1a,_0x4a1e5c);if(!_0x80e95e||!_0xadffa8)return!0x1;let _0x331ad2=_0x31d38a;typeof _0x331ad2==_0x166d0c(0x10c)&&(_0x331ad2=_0xe35ae9[_0x166d0c(0xf3)](_0x3e0d1a,_0x4a1e5c)[_0x166d0c(0x144)][_0x31d38a]);const _0x2770ba={'unitId':_0x3e0d1a,'subUnitId':_0x20ea1d,'pivotTableId':_0x4a1e5c,'dataFieldId':_0x331ad2,'fieldArea':_0x21ba64,'index':_0x1aedf6};return _0x57e653[_0x166d0c(0x120)](l[_0x166d0c(0x174)]['id'],_0x2770ba);}async['removeField'](_0x48b7f2){const _0x8b7795=_0x4df760,_0x20a1a0=this[_0x8b7795(0xc2)],_0x1c37bf=this['unitId'],_0x406d76=this['subUnitId'],_0x40d52c=this['pivotTableId'],_0x412bbb=_0x20a1a0[_0x8b7795(0x12a)](m[_0x8b7795(0xe2)]),_0x38b534={'unitId':_0x1c37bf,'subUnitId':_0x406d76,'pivotTableId':_0x40d52c,'fieldIds':_0x48b7f2};return _0x412bbb[_0x8b7795(0x120)](l['RemovePivotFieldCommand']['id'],_0x38b534);}async['updateFieldPosition'](_0x45ed56,_0x167953,_0x2a4cf8){const _0x55ec67=_0x4df760,_0x18b442=this[_0x55ec67(0xc2)],_0xbc3412=this[_0x55ec67(0xab)],_0x21208b=this[_0x55ec67(0x107)],_0x1659c8=this[_0x55ec67(0x16d)],_0x3e0482=_0x18b442[_0x55ec67(0x12a)](m[_0x55ec67(0xe2)]),_0x533f50={'unitId':_0xbc3412,'subUnitId':_0x21208b,'pivotTableId':_0x1659c8,'fieldId':_0x45ed56,'area':_0x167953,'index':_0x2a4cf8};return _0x3e0482['executeCommand'](l[_0x55ec67(0xea)]['id'],_0x533f50);}async[_0x4df760(0xe5)](_0x29e4b9,_0x170642){const _0x3a1bcd=_0x4df760,_0x1e60a9=this[_0x3a1bcd(0xc2)],_0x45f3e2=this[_0x3a1bcd(0xab)],_0x5bc4dc=this[_0x3a1bcd(0x107)],_0x173fb8=this['pivotTableId'],_0xca95f3=_0x1e60a9[_0x3a1bcd(0x12a)](m['ICommandService']),_0x452cb8={'unitId':_0x45f3e2,'subUnitId':_0x5bc4dc,'pivotTableId':_0x173fb8,'position':_0x29e4b9,'index':_0x170642};return _0xca95f3['executeCommand'](l['UpdatePivotValuePositionCommand']['id'],_0x452cb8);}async[_0x4df760(0x14a)](_0x2042f8,_0x44ca9d){const _0x37cc89=_0x4df760,_0x59f77f=this[_0x37cc89(0xc2)],_0x5ae1df=this[_0x37cc89(0xab)],_0x49e082=this[_0x37cc89(0x107)],_0x82c673=this[_0x37cc89(0x16d)],_0x417e8e=_0x59f77f[_0x37cc89(0x12a)](m[_0x37cc89(0xe2)]),_0x3f13c3={'unitId':_0x5ae1df,'subUnitId':_0x49e082,'pivotTableId':_0x82c673,'fieldId':_0x2042f8,'subtotalType':_0x44ca9d};return _0x417e8e['executeCommand'](l[_0x37cc89(0x14b)]['id'],_0x3f13c3);}async['setLabelSort'](_0x3527f6,_0xe3fd2d){const _0x298e1f=_0x4df760,_0x1c7972=this[_0x298e1f(0xc2)],_0x1e7d7c=this[_0x298e1f(0xab)],_0x5ee6cb=this[_0x298e1f(0x107)],_0xb7c4f1=this[_0x298e1f(0x16d)],_0x1b71f5=_0x1c7972[_0x298e1f(0x12a)](m[_0x298e1f(0xe2)]),_0x29373d={'unitId':_0x1e7d7c,'subUnitId':_0x5ee6cb,'tableFieldId':_0x3527f6,'pivotTableId':_0xb7c4f1,'info':_0xe3fd2d};return _0x1b71f5[_0x298e1f(0x120)](l['SetPivotSortCommand']['id'],_0x29373d);}async[_0x4df760(0x17b)](_0x27f6ec,_0x2ac7cd,_0x49fc78){const _0x953dd7=_0x4df760,_0x512705=this[_0x953dd7(0xc2)],_0x25ab99=this[_0x953dd7(0xab)],_0x2ebbd3=this[_0x953dd7(0x107)],_0x1bfe47=this['pivotTableId'],_0x238bc1=_0x512705['get'](m[_0x953dd7(0xe2)]),_0x53a84f={'unitId':_0x25ab99,'subUnitId':_0x2ebbd3,'pivotTableId':_0x1bfe47,'tableFieldId':_0x27f6ec,'items':_0x2ac7cd,'isAll':_0x49fc78};return _0x238bc1['executeCommand'](l[_0x953dd7(0xdc)]['id'],_0x53a84f);}async[_0x4df760(0x12b)](_0x1ecaba,_0x47ac5b){const _0x1d3a6e=_0x4df760,_0x147802=this['_injector'],_0x47eca2=this[_0x1d3a6e(0xab)],_0xe4f06c=this[_0x1d3a6e(0x107)],_0x2abde7=this[_0x1d3a6e(0x16d)],_0x143764=_0x147802[_0x1d3a6e(0x12a)](m[_0x1d3a6e(0xe2)]);if(_0x1ecaba===void 0x0)return console[_0x1d3a6e(0x161)](_0x1d3a6e(0x12f)),!0x1;const _0x399a65=_0x47ac5b&&{..._0x47ac5b,'type':r[_0x1d3a6e(0x16c)][_0x1d3a6e(0x158)]},_0x2c9465={'unitId':_0x47eca2,'subUnitId':_0xe4f06c,'pivotTableId':_0x2abde7,'fieldId':_0x1ecaba,'valueFilterInfo':_0x399a65};return _0x143764[_0x1d3a6e(0x120)](l[_0x1d3a6e(0xf6)]['id'],_0x2c9465);}async['renameField'](_0xba5336,_0x51547e){const _0x48e52e=_0x4df760,_0x2719ae=this[_0x48e52e(0xc2)],_0x1599b4=this['unitId'],_0xe5483b=this['subUnitId'],_0x3cf5fa=this[_0x48e52e(0x16d)],_0x548f5e=_0x2719ae['get'](m[_0x48e52e(0xe2)]),_0x3041a6={'unitId':_0x1599b4,'subUnitId':_0xe5483b,'pivotTableId':_0x3cf5fa,'fieldId':_0xba5336,'name':_0x51547e};return _0x548f5e[_0x48e52e(0x120)](l[_0x48e52e(0xa7)]['id'],_0x3041a6);}async[_0x4df760(0x145)](_0x38e1db,_0x50fad3,_0x32ffc0){const _0x298db1=_0x4df760,_0xe220fd=this[_0x298db1(0xc2)][_0x298db1(0x12a)](m[_0x298db1(0xe2)]),_0x2b8de7=this[_0x298db1(0xc2)][_0x298db1(0x12a)](m[_0x298db1(0x9f)])[_0x298db1(0xbe)](this[_0x298db1(0xab)]),_0x1fa24c=_0x2b8de7==null?void 0x0:_0x2b8de7[_0x298db1(0xa4)](_0x38e1db);if(!_0x2b8de7||!_0x1fa24c)throw new Error('[Pivot\x20Table]:\x20Target\x20sheet\x20is\x20not\x20valid');return _0xe220fd[_0x298db1(0x120)](l[_0x298db1(0x186)]['id'],{'pivotTableId':this[_0x298db1(0x16d)],'targetCellInfo':{'subUnitId':_0x1fa24c['getSheetId'](),'unitId':this[_0x298db1(0xab)],'row':_0x50fad3,'col':_0x32ffc0},'originTargetInfo':{'subUnitId':this[_0x298db1(0x107)],'unitId':this[_0x298db1(0xab)]}});}async[_0x4df760(0x162)](_0x359b75,_0x5e9236){const _0x1ce0b3=_0x4df760,_0x36b095=this[_0x1ce0b3(0xc2)],_0x118d8a=this['unitId'],_0x2c88f6=this[_0x1ce0b3(0x107)],_0xa7e399=this[_0x1ce0b3(0x16d)],_0x1796d8=_0x36b095[_0x1ce0b3(0x12a)](m[_0x1ce0b3(0xe2)]),_0x3f86fc={'unitId':_0x118d8a,'subUnitId':_0x2c88f6,'pivotTableId':_0xa7e399,'tableFieldId':_0x359b75,'dateType':_0x5e9236};return _0x1796d8['executeCommand'](l['UpdateDateGroupCommand']['id'],_0x3f86fc);}}class oe extends R[_0x4df760(0x118)]{async[_0x4df760(0xfe)](_0x34a7a7,_0x507323,_0x2db1ea){const _0x1ec2c3=_0x4df760,_0x2594cc=this[_0x1ec2c3(0xc2)],_0x48c639=_0x2594cc[_0x1ec2c3(0x12a)](m[_0x1ec2c3(0xe2)]),_0x39141c=r['generateHexNumber'](0x8),_0x39b704={'positionType':_0x507323,'pivotTableId':_0x39141c,'pivotTableConfig':{'targetCellInfo':_0x2db1ea,'sourceRangeInfo':_0x34a7a7,'isEmpty':!0x0}};if(await _0x48c639[_0x1ec2c3(0x120)](l[_0x1ec2c3(0x103)]['id'],_0x39b704))return new x(_0x2db1ea[_0x1ec2c3(0xab)],_0x2db1ea[_0x1ec2c3(0x107)],_0x39141c,_0x2594cc);}[_0x4df760(0xd7)](_0x488a5c,_0x44d6fc,_0x11d9a7,_0x5afaa1){const _0x35d36d=_0x4df760,_0x51e0b2=this[_0x35d36d(0xc2)],_0xf25f8d=_0x51e0b2['get'](l['SheetsPivotTableAdaptorModel'])[_0x35d36d(0xe1)](_0x488a5c,_0x44d6fc,_0x11d9a7,_0x5afaa1);if(_0xf25f8d)return new x(_0x488a5c,_0x44d6fc,_0xf25f8d,_0x51e0b2);}[_0x4df760(0xe8)](_0x443431){const _0x43a60d=_0x4df760,_0x173803=this[_0x43a60d(0xc2)],_0x4f6797=_0x173803[_0x43a60d(0x12a)](l[_0x43a60d(0xff)])[_0x43a60d(0x13c)](this[_0x43a60d(0x151)](),_0x443431);if(_0x4f6797)return new x(_0x4f6797[_0x43a60d(0xab)],_0x4f6797['subUnitId'],_0x443431,_0x173803);}}R[_0x4df760(0x118)]['extend'](oe);class ne extends R[_0x4df760(0x182)]{['getPivotTableByCell'](_0x220f52,_0x25be95){const _0x5bd27c=_0x4df760,_0x9ed70f=this[_0x5bd27c(0xc2)],_0x5a08a2=_0x9ed70f[_0x5bd27c(0x12a)](l[_0x5bd27c(0xb9)]),_0x4d391f=this['_workbook'][_0x5bd27c(0x9d)](),_0x37c590=this[_0x5bd27c(0xc0)](),_0x39c4bc=_0x5a08a2['getPivotTableIdByCell'](_0x4d391f,_0x37c590,_0x220f52,_0x25be95);if(_0x39c4bc)return new x(_0x4d391f,_0x37c590,_0x39c4bc,_0x9ed70f);}}R['FWorksheet'][_0x4df760(0x112)](ne);function _0x11a5(){const _0x30aaa6=['PivotTableFieldAdded','RenamePivotFieldMutation','getRangeData','rxjs','PivotTableChangeTypeEnum','unitId','AddPivotTableWithConfigCommand','_firePivotTableValuePositionChangedEvent','registerEventHandler','valueFields','PivotTableValuePositionEnum','getValueFields','PivotTableAdded','string','getPivotTableConfig','fields','onCommandExecuted','(空白)','PivotViewCellValueTypeEnum','SheetsPivotTableAdaptorModel','numfmt','getTime','176335ioQmkQ','Filter','getUnit','SetPivotFieldsConfigCommand','getSheetId','getTableFieldsByDataFieldId','_injector','PivotTableFieldSettingChanged','PivotDataFieldDataTypeEnum','FEventName','BeforePivotTableMove','[PivotTable]:\x20The\x20field\x20name\x20','_firePivotTableFieldFilterChangedEvent','小计\x20','query','(blank)','PivotDataFieldSortTypeEnum','length','_isZhCN','PivotTableFieldFilterChanged','ZH_CN','getFieldDataTypeByFieldName','getDataFieldIdByDisplayName','getConfig','setSubtotal','getDataFieldByTableId','_firePivotTableFieldSortChangedEvent','getPivotTableByCell','_fireBeforeAddPivotTableEvent','count','setDisplayName','displayName','SetPivotFilterCommand','dimension','getValueIndex','getFieldIds','endColumn','getPivotTableIdByCell','ICommandService','PivotTableFieldRemoved','376804oQnTdU','updateValuePosition','name','column','getPivotTableById','valueIndex','MovePivotFieldCommand','@univerjs/core','总计\x20','_fireBeforeMovePivotTableEvent','symbol','fieldsConfig','setFieldsConfig','@univerjs/sheets/facade','LocaleService','getCollection','395826GTusQF','targetCellInfo','SetPivotValueFilterCommand','getFieldById','getNameWithColumnIndex','getPivotSourceData','_initialize','_fireAddPivotTableEvent','addFilterFieldWithName','3412535RtZHmj','addPivotTable','SheetsPivotTableConfigModel','_pivot','getValuePosition','\x20failed.','AddPivotTableCommand','addFieldWithSourceId','_firePivotTableRemovedEvent','PivotDataFieldSortOperatorEnum','subUnitId','Hidden','max','find','Total\x20','number','PivotTableRendered','getFieldDataType','params','_id','\x20is\x20not\x20found\x20in\x20the\x20pivot\x20table.','extend','isNaN','Subtotal','row','filter','_getSourceIdByName','FWorkbook','ST_PivotFilterOperatorEnum','PivotFilterOperatorEnum','getSourceFieldsInfo','getResultByCalculate','viewUpdate$','pipe','FUniver','executeCommand','dataFieldsCollection','remove','_sourceData','BeforePivotTableAdd','level','generateHexNumber','Event','sheetName','PivotTableFieldSortChanged','get','setValueFilter','addFieldWithName','UpdatePivotValuePositionCommand','fireEvent','[Pivot\x20Table]:\x20The\x20field\x20id\x20is\x20undefined','isBottomTotal','getCurrentLocale','402838exNfqu','blank','_firePivotTableFieldSettingChangedEvent','syncExecuteCommand','unionPivotViewRange','col','tableFieldId','RemovePivotFieldCommand','PivotTableMoved','getRowCount','getTargetByPivotTableId','createCollection','concat','PivotCellStyleTypeEnum','startRow','object','DataFieldManager','Grand\x20Total\x20','fieldIds','move','PositionTypeEnum','Row','PivotSubtotalTypeEnum','getFieldCountByArea','setSubtotalType','SetPivotSubtotalTypeMutation','headerMap','keys','forEach','info','RemovePivotTableMutation','getId','value','reset','Value','LifecycleService','_firePivotTableFieldMovedEvent','lifecycle$','ValueFilter','getFieldDisplayNames','cancel','PivotTableValuePositionChanged','generatePivotTable','Column','setOptions','filterFields','Before\x20add\x20pivot\x20table\x20event\x20canceled','warn','setDateGroupType','format','PivotTable','_firePivotTableFieldCollapsedEvent','measure','rowFields','data','date','getformat','@univerjs-pro/engine-pivot','PivotFilterTypeEnum','pivotTableId','_firePivotTableFieldRemovedEvent','startColumn','_fireRenderPivotTableEvent','getPivotTableRangeInfo','FEnum','PivotDateGroupFieldDateTypeEnum','AddPivotFieldCommand','PivotTableFieldMoved','getPivotTableId','subtotal','getValueFilter','242508qFHnjI','fieldDataType','setLabelManualFilter','SetPivotSortCommand','removeFieldWithName','getColCount','207269kQgSQG','push','PivotTableFiledAreaEnum','FWorksheet','range','endRow','ResetPivotFieldsConfigCommand','MovePivotTableCommand','getFieldSetting','getValueFilters','valueFilter','_firePivotTableFieldAddedEvent','PivotTableFieldCollapseChanged','fieldId','getUnitId','YYYY-MM-DD','IUniverInstanceService','GrandTotal','subscribe','UpdatePivotFieldSettingCommand','beforeCommandExecuted','getSheetBySheetName','PivotTableRemoved'];_0x11a5=function(){return _0x30aaa6;};return _0x11a5();}class ae extends A[_0x4df760(0x172)]{get[_0x4df760(0x148)](){const _0x353060=_0x4df760;return r[_0x353060(0x148)];}get['PivotFilterTypeEnum'](){const _0x34db8f=_0x4df760;return r[_0x34db8f(0x16c)];}get['PivotTableFiledAreaEnum'](){const _0x173f24=_0x4df760;return r[_0x173f24(0x181)];}get['PivotTableValuePositionEnum'](){const _0x469001=_0x4df760;return r[_0x469001(0xb0)];}get['PivotDataFieldDataTypeEnum'](){const _0x20e84e=_0x4df760;return r[_0x20e84e(0xc4)];}get[_0x4df760(0xcc)](){const _0x3811aa=_0x4df760;return r[_0x3811aa(0xcc)];}get[_0x4df760(0x106)](){const _0xee83c5=_0x4df760;return r[_0xee83c5(0x106)];}get[_0x4df760(0x11a)](){const _0x4d2659=_0x4df760;return r[_0x4d2659(0x119)];}get[_0x4df760(0x146)](){return l['PositionType'];}get[_0x4df760(0xaa)](){const _0x24050f=_0x4df760;return r[_0x24050f(0xaa)];}get[_0x4df760(0x173)](){const _0x3d2fbf=_0x4df760;return r[_0x3d2fbf(0x173)];}}A[_0x4df760(0x172)][_0x4df760(0x112)](ae);class se extends A['FEventName']{get['PivotTableAdded'](){const _0x3c1068=_0x4df760;return _0x3c1068(0xb2);}get[_0x4df760(0x124)](){return'BeforePivotTableAdd';}get[_0x4df760(0xa5)](){const _0x2ccb33=_0x4df760;return _0x2ccb33(0xa5);}get[_0x4df760(0x13a)](){const _0x38c94e=_0x4df760;return _0x38c94e(0x13a);}get[_0x4df760(0x10d)](){return'PivotTableRendered';}get['PivotTableFieldAdded'](){const _0xa5cc9a=_0x4df760;return _0xa5cc9a(0xa6);}get['PivotTableFieldRemoved'](){const _0x8d08ce=_0x4df760;return _0x8d08ce(0xe3);}get[_0x4df760(0x175)](){const _0x1421e4=_0x4df760;return _0x1421e4(0x175);}get['PivotTableFieldCollapseChanged'](){return'PivotTableFieldCollapseChanged';}get[_0x4df760(0xcf)](){return'PivotTableFieldFilterChanged';}get[_0x4df760(0x129)](){const _0x5e67ea=_0x4df760;return _0x5e67ea(0x129);}get['PivotTableFieldSettingChanged'](){const _0x5a7d0d=_0x4df760;return _0x5a7d0d(0xc3);}get['PivotTableValuePositionChanged'](){const _0x4094a4=_0x4df760;return _0x4094a4(0x15b);}}A[_0x4df760(0xc5)][_0x4df760(0x112)](se);const Z=_0x4df760(0x9e);function de(_0x725d24){return _0x725d24/0x3e8/0x15180+0x63e1;}function le(_0xe658c9,_0x58172d,_0x5bc06f,_0x21fd8e){const _0x3ac29a=_0x4df760;var _0x30a824,_0x4ede90,_0x5ef4e8,_0x2efd53,_0x594118,_0x2c1ba4,_0x54d8a1,_0x50e767,_0x3ada2b,_0x37c128,_0x46b09a,_0x3a39fc,_0x5a8c97,_0x426268,_0x17efdf;const _0x391c39=[],_0x2df059=[],_0x19559d=[],{showRowGrandTotal:_0x10ff1b,showRowSubTotal:_0x38dda3}=_0x21fd8e,{cornerView:_0x23c21d,colView:_0xf7ed4d,rowView:_0x261b0e,dataView:_0x20da89,formatMap:_0x17fcfb}=_0x58172d,_0x266a09=_0x23c21d[_0x3ac29a(0x13b)](),_0x537f59=_0x23c21d[_0x3ac29a(0x17e)]();for(let _0x16a2ad=0x0;_0x16a2ad<_0x266a09;_0x16a2ad++)for(let _0x36fc09=0x0;_0x36fc09<_0x537f59;_0x36fc09++){const _0x47b97a={...(_0x4ede90=(_0x30a824=_0x23c21d[_0x3ac29a(0x168)])==null?void 0x0:_0x30a824[_0x16a2ad])==null?void 0x0:_0x4ede90[_0x36fc09]};_0x47b97a['v']&&(_0x391c39[_0x16a2ad]||(_0x391c39[_0x16a2ad]=[]),_0x19559d[_0x16a2ad]||(_0x19559d[_0x16a2ad]=[]),_0x391c39[_0x16a2ad][_0x36fc09]=_0x47b97a['v'],_0x19559d[_0x16a2ad][_0x36fc09]=_0x47b97a['v']);}for(let _0x1ad818=0x0;_0x1ad818<_0xf7ed4d[_0x3ac29a(0x13b)]();_0x1ad818++){const _0x2ad250=(_0x2efd53=(_0x5ef4e8=_0xf7ed4d==null?void 0x0:_0xf7ed4d[_0x3ac29a(0x14c)])==null?void 0x0:_0x5ef4e8[_0x1ad818])==null?void 0x0:_0x2efd53[_0x3ac29a(0x138)],_0x1dfad1=_0x2ad250?_0x17fcfb[_0x2ad250]:'';for(let _0x22c8b7=0x0;_0x22c8b7<_0xf7ed4d[_0x3ac29a(0x17e)]();_0x22c8b7++){const _0x323c39={...(_0x2c1ba4=(_0x594118=_0xf7ed4d['data'])==null?void 0x0:_0x594118[_0x1ad818])==null?void 0x0:_0x2c1ba4[_0x22c8b7]};if((_0x323c39==null?void 0x0:_0x323c39['v'])!==void 0x0){let _0x2df32b=_0x1dfad1?m[_0x3ac29a(0xba)][_0x3ac29a(0x163)](_0x1dfad1,Number(_0x323c39['v'])):_0x323c39['v'];(_0x323c39==null?void 0x0:_0x323c39['s'])===r['PivotCellStyleTypeEnum'][_0x3ac29a(0x114)]?_0x2df32b=_0x5bc06f?_0x3ac29a(0xc9)+_0x2df32b:_0x3ac29a(0x10b)+_0x2df32b:(_0x323c39==null?void 0x0:_0x323c39['s'])===r['PivotCellStyleTypeEnum'][_0x3ac29a(0xa0)]&&(_0x2df32b=_0x5bc06f?_0x3ac29a(0xec)+_0x2df32b:'Grand\x20Total\x20'+_0x2df32b),(_0x323c39==null?void 0x0:_0x323c39['t'])===r[_0x3ac29a(0xb8)][_0x3ac29a(0x133)]&&(_0x2df32b=_0x5bc06f?_0x3ac29a(0xb7):_0x3ac29a(0xcb)),_0x391c39[_0x1ad818]||(_0x391c39[_0x1ad818]=[]),_0x19559d[_0x1ad818]||(_0x19559d[_0x1ad818]=[]),_0x391c39[_0x1ad818][_0x22c8b7+_0x537f59]=_0x2df32b,_0x19559d[_0x1ad818][_0x22c8b7+_0x537f59]=_0x2df32b;}}}let _0x4ef972=0x0,_0x3b6fe6=0x0,_0x28dd19=0x0;for(let _0x395397=0x0;_0x395397<_0x261b0e['getRowCount']();_0x395397++){const _0x9e2a9d=_0x261b0e[_0x3ac29a(0x14f)][_0x395397];if(!_0x38dda3&&_0x9e2a9d['isBottomTotal']&&_0x9e2a9d[_0x3ac29a(0x125)]!==0x0){_0x28dd19++,_0x3b6fe6=0x0;continue;}if(!(!_0x10ff1b&&_0x9e2a9d['isBottomTotal']&&_0x9e2a9d['level']===0x0)){for(let _0x87ea32=0x0;_0x87ea32<_0x261b0e[_0x3ac29a(0x17e)]();_0x87ea32++){const _0x23fc4b={...(_0x50e767=(_0x54d8a1=_0x261b0e[_0x3ac29a(0x168)])==null?void 0x0:_0x54d8a1[_0x395397])==null?void 0x0:_0x50e767[_0x87ea32]},_0x51f8be=(_0x37c128=(_0x3ada2b=_0x261b0e==null?void 0x0:_0x261b0e[_0x3ac29a(0x14c)])==null?void 0x0:_0x3ada2b[_0x87ea32])==null?void 0x0:_0x37c128[_0x3ac29a(0x138)],_0x308d62=_0x51f8be?_0x17fcfb[_0x51f8be]:'';if((_0x23fc4b==null?void 0x0:_0x23fc4b['v'])!==void 0x0){let _0x25d477=_0x308d62?m[_0x3ac29a(0xba)][_0x3ac29a(0x163)](_0x308d62,Number(_0x23fc4b['v'])):_0x23fc4b['v'];(_0x23fc4b==null?void 0x0:_0x23fc4b['s'])===r[_0x3ac29a(0x13f)][_0x3ac29a(0x114)]?_0x25d477=_0x5bc06f?_0x3ac29a(0xc9)+_0x25d477:_0x3ac29a(0x10b)+_0x25d477:(_0x23fc4b==null?void 0x0:_0x23fc4b['s'])===r[_0x3ac29a(0x13f)][_0x3ac29a(0xa0)]&&(_0x25d477=_0x5bc06f?_0x3ac29a(0xec)+_0x25d477:_0x3ac29a(0x143)+_0x25d477),(_0x23fc4b==null?void 0x0:_0x23fc4b['t'])===r[_0x3ac29a(0xb8)]['blank']&&(_0x25d477=_0x5bc06f?_0x3ac29a(0xb7):'(blank)'),_0x391c39[_0x4ef972+_0x266a09]||(_0x391c39[_0x4ef972+_0x266a09]=[]);let _0x4da7d8=_0x2df059[_0x28dd19];_0x4da7d8||(_0x4da7d8=[..._0x19559d],_0x2df059[_0x28dd19]=_0x4da7d8),_0x4da7d8[_0x3b6fe6+_0x266a09]||(_0x4da7d8[_0x3b6fe6+_0x266a09]=[]),_0x4da7d8[_0x3b6fe6+_0x266a09][_0x87ea32]=_0x25d477,_0x391c39[_0x4ef972+_0x266a09][_0x87ea32]=_0x25d477;}}_0x4ef972++,_0x261b0e[_0x3ac29a(0x14f)][_0x395397][_0x3ac29a(0x130)]?(_0x28dd19++,_0x3b6fe6=0x0):_0x3b6fe6++;}}_0x4ef972=0x0,_0x28dd19=0x0,_0x3b6fe6=0x0;for(let _0x4b5044=0x0;_0x4b5044<_0x20da89[_0x3ac29a(0x13b)]();_0x4b5044++){const _0x525ebd=_0x261b0e[_0x3ac29a(0x14f)][_0x4b5044];if(!_0x38dda3&&_0x525ebd[_0x3ac29a(0x130)]&&_0x525ebd[_0x3ac29a(0x125)]!==0x0){_0x28dd19++,_0x3b6fe6=0x0;continue;}if(!(!_0x10ff1b&&_0x525ebd[_0x3ac29a(0x130)]&&_0x525ebd[_0x3ac29a(0x125)]===0x0)){for(let _0x1f07a3=0x0;_0x1f07a3<_0x20da89['getColCount']();_0x1f07a3++){const _0x2f23d4={...(_0x3a39fc=(_0x46b09a=_0x20da89[_0x3ac29a(0x168)])==null?void 0x0:_0x46b09a[_0x4b5044])==null?void 0x0:_0x3a39fc[_0x1f07a3]};if(_0x2f23d4['v']){const _0x98277d=_0x261b0e[_0x3ac29a(0x14f)][_0x4b5044]['valueIndex'],_0x3ae247=_0xf7ed4d['info'][_0x1f07a3][_0x3ac29a(0xe9)],_0x4243f8=Math[_0x3ac29a(0x109)](_0x98277d,_0x3ae247),_0x20f8a3=_0xe658c9[_0x3ac29a(0xb1)]()[_0x3ac29a(0x13e)]();let _0x258906='';_0x4243f8<0x0?_0x258906=(_0x5a8c97=_0x20f8a3[0x0])!=null?_0x5a8c97:'':_0x258906=(_0x426268=_0x20f8a3[_0x4243f8])!=null?_0x426268:'';const _0x20cdbd=(_0x17efdf=_0x17fcfb[_0x258906])!=null?_0x17efdf:'';_0x391c39[_0x4ef972+_0x266a09]||(_0x391c39[_0x4ef972+_0x266a09]=[]);let _0x154453=_0x2df059[_0x28dd19];_0x154453||(_0x154453=[..._0x19559d],_0x2df059[_0x28dd19]=_0x154453),_0x154453[_0x3b6fe6+_0x266a09]||(_0x154453[_0x3b6fe6+_0x266a09]=[]);const _0x1661df=_0x20cdbd?m[_0x3ac29a(0xba)][_0x3ac29a(0x163)](_0x20cdbd,Number(_0x2f23d4['v'])):_0x2f23d4['v'];_0x154453[_0x3b6fe6+_0x266a09][_0x1f07a3+_0x537f59]=_0x1661df,_0x391c39[_0x4ef972+_0x266a09][_0x1f07a3+_0x537f59]=_0x1661df;}}_0x4ef972++,_0x261b0e['info'][_0x4b5044][_0x3ac29a(0x130)]?(_0x28dd19++,_0x3b6fe6=0x0):_0x3b6fe6++;}}return{'dataArr':_0x391c39,'dataArrWithSplit':_0x2df059};}class re{constructor(_0x5d32e5,_0x1d5495,_0x169c50,_0x234763){const _0x45c041=_0x4df760;y(this,_0x45c041(0x100)),y(this,_0x45c041(0x123)),y(this,_0x45c041(0xc2)),y(this,'_isZhCN'),y(this,_0x45c041(0x110)),(this['_injector']=_0x5d32e5,this['_pivot']=_0x1d5495,this[_0x45c041(0x123)]=_0x169c50,this['_id']=_0x234763);const _0x253064=this[_0x45c041(0xc2)]['get'](m[_0x45c041(0xf2)]);this[_0x45c041(0xce)]=_0x253064[_0x45c041(0x131)]()===m['LocaleType'][_0x45c041(0xd0)];}[_0x4df760(0x117)](_0x1e6982){const _0x26ff7b=_0x4df760,_0x278ba6=this['_pivot'][_0x26ff7b(0xd2)](_0x1e6982);if(!_0x278ba6)throw new Error(_0x26ff7b(0xc7)+_0x1e6982+_0x26ff7b(0x111));return _0x278ba6;}[_0x4df760(0x12c)](_0x5854ec,_0x368c08){const _0x13627a=_0x4df760,_0x40a3df=this['_getSourceIdByName'](_0x5854ec),_0x30b941=this['_pivot'][_0x13627a(0x104)](_0x40a3df,_0x368c08);if(!_0x30b941)throw new Error('[PivotTable]:\x20add\x20field\x20'+_0x5854ec+_0x13627a(0x102));if(_0x368c08===r[_0x13627a(0x181)][_0x13627a(0x154)]){const _0x1c648e=_0x30b941[_0x13627a(0x151)](),_0x30553c=this['_pivot']['getDataFieldByTableId'](_0x1c648e);if(_0x30553c){const _0x445681=_0x30553c==null?void 0x0:_0x30553c[_0x13627a(0x10e)]();this['_pivot'][_0x13627a(0x14a)](_0x1c648e,_0x445681===r[_0x13627a(0xc4)]['number']?r[_0x13627a(0x148)]['sum']:r[_0x13627a(0x148)][_0x13627a(0xd9)]);}const _0x45b096=this[_0x13627a(0x100)][_0x13627a(0xde)](),_0xd21c12=this[_0x13627a(0x100)][_0x13627a(0x101)](),_0x32a2bc=this[_0x13627a(0x100)]['getFieldCountByArea'](r[_0x13627a(0x181)][_0x13627a(0x154)]);if(_0x45b096===-0x1&&_0x32a2bc>0x1){const _0x229e5e=_0xd21c12===r['PivotTableValuePositionEnum']['None']?r[_0x13627a(0xb0)][_0x13627a(0x15d)]:_0xd21c12,_0x5c3cd6=_0x229e5e===r[_0x13627a(0xb0)][_0x13627a(0x147)]?r[_0x13627a(0x181)]['Row']:r[_0x13627a(0x181)][_0x13627a(0x15d)];this[_0x13627a(0x100)][_0x13627a(0xe5)](_0x229e5e,this['_pivot'][_0x13627a(0x149)](_0x5c3cd6));}}else{if(_0x368c08===r[_0x13627a(0x181)][_0x13627a(0x147)]||_0x368c08===r[_0x13627a(0x181)][_0x13627a(0x15d)]){const _0x207652=_0x30b941['getId'](),_0x2ee173=this['_pivot'][_0x13627a(0xd5)](_0x207652);if(_0x2ee173&&(_0x2ee173==null?void 0x0:_0x2ee173['getFieldDataType']())===r[_0x13627a(0xc4)][_0x13627a(0x169)]){const _0x2b74dc=_0x2ee173[_0x13627a(0x16a)]();_0x2b74dc&&this[_0x13627a(0x100)]['setFieldFormat'](_0x207652,_0x2b74dc);}}}return _0x30b941;}[_0x4df760(0xfc)](_0x416bd2,_0x255190){const _0x267620=_0x4df760,_0x3be8a2=this[_0x267620(0x117)](_0x416bd2),_0x56b494=this['_pivot'][_0x267620(0x104)](_0x3be8a2,r['PivotTableFiledAreaEnum']['Filter']);return _0x56b494['setFilterInfo'](_0x255190),_0x56b494;}['addValueFieldWithName'](_0x249426,_0x17df11){const _0x7bcc87=_0x4df760,_0x1a99dc=this['addFieldWithName'](_0x249426,r[_0x7bcc87(0x181)][_0x7bcc87(0x154)]);return _0x17df11!=null&&_0x17df11[_0x7bcc87(0x177)]&&_0x1a99dc[_0x7bcc87(0xd4)](_0x17df11==null?void 0x0:_0x17df11[_0x7bcc87(0x177)]),_0x1a99dc;}[_0x4df760(0x17d)](_0x563641){const _0x8c10a0=_0x4df760,_0x467dac=this['_getSourceIdByName'](_0x563641);this[_0x8c10a0(0x100)][_0x8c10a0(0xc1)](_0x467dac)[_0x8c10a0(0x14e)](_0x21c876=>{const _0x1556b0=_0x8c10a0,_0x2f0463=_0x21c876[_0x1556b0(0x151)]();this['_pivot']['removeField'](_0x2f0463);});}[_0x4df760(0x11c)](_0x2efd44={}){const _0x4e3ddb=_0x4df760,_0x37fad9=this[_0x4e3ddb(0x100)][_0x4e3ddb(0xca)](),{dataArr:_0x47ef22,dataArrWithSplit:_0x5d2bf7}=le(this[_0x4e3ddb(0x100)],_0x37fad9,this[_0x4e3ddb(0xce)],_0x2efd44);return{'dataArr':_0x47ef22,'dataArrWithSplit':_0x5d2bf7};}[_0x4df760(0xf8)](_0x5a6c1b){const _0x36ad86=_0x4df760;return this[_0x36ad86(0x100)][_0x36ad86(0x159)]()[_0x5a6c1b];}['reset'](){const _0x5b0a26=_0x4df760;this[_0x5b0a26(0x100)][_0x5b0a26(0x153)]();}['resetDimension'](_0x596353){const _0x57e8a9=_0x4df760;this['_pivot'][_0x57e8a9(0x153)](_0x596353);}['getFieldDataTypeByColumnIndex'](_0x3e552f){const _0x474449=_0x4df760,_0x157d7f=this['_pivot'][_0x474449(0x121)],_0x65705f=_0x157d7f[_0x474449(0xdf)]()[_0x3e552f];if(_0x65705f)return _0x157d7f[_0x474449(0xf7)](_0x65705f)[_0x474449(0x10e)]();}[_0x4df760(0xd1)](_0x1b748f){const _0x4d7291=_0x4df760,_0x3c1fe9=this['_getSourceIdByName'](_0x1b748f),_0x52c27f=this['_pivot'][_0x4d7291(0x121)][_0x4d7291(0xf7)](_0x3c1fe9);return _0x52c27f==null?void 0x0:_0x52c27f['getFieldDataType']();}['getDimensionInfo'](){const _0x5422d9=_0x4df760,_0x415cb3={};return[[r[_0x5422d9(0x181)]['Row'],'row'],[r[_0x5422d9(0x181)][_0x5422d9(0x15d)],_0x5422d9(0xe7)],[r['PivotTableFiledAreaEnum'][_0x5422d9(0xbd)],_0x5422d9(0x116)],[r['PivotTableFiledAreaEnum'][_0x5422d9(0x154)],_0x5422d9(0x152)]][_0x5422d9(0x14e)](_0x59126b=>{const _0x390c39=_0x5422d9,[_0x2be549,_0x1c2fcf]=_0x59126b;this[_0x390c39(0x100)]['iterateFieldByArea'](_0x2be549,_0x5e8d43=>{const _0x3deb8e=_0x390c39;_0x415cb3[_0x1c2fcf]||(_0x415cb3[_0x1c2fcf]=[]),_0x415cb3[_0x1c2fcf][_0x3deb8e(0x180)](_0x5e8d43['getSourceName']());});}),Object[_0x5422d9(0x14d)](_0x415cb3)[_0x5422d9(0xcd)]>0x0?_0x415cb3:void 0x0;}[_0x4df760(0xf9)](){const _0x1cf4ff=_0x4df760;return this[_0x1cf4ff(0x123)];}[_0x4df760(0x15e)](_0x3ab398){this['_pivot']['setOptions'](_0x3ab398);}['remove'](){const _0x1faeb4=_0x4df760;this[_0x1faeb4(0x100)]['dispose']();}}class ve extends r[_0x4df760(0x142)]{[_0x4df760(0xa8)](_0x21c42d){const _0x3d3745=_0x4df760;if(Array['isArray'](_0x21c42d)&&_0x21c42d[_0x3d3745(0xcd)]>0x0){const _0x58934c=[],_0x52c48f=_0x21c42d[0x0],_0x5c1544={},_0x51e7da=_0x21c42d[0x1];for(let _0x432818=0x0;_0x432818<_0x51e7da[_0x3d3745(0xcd)];_0x432818++){const _0x104910=_0x51e7da[_0x432818];if(typeof _0x104910=='object'&&_0x104910 instanceof Date)_0x5c1544[_0x432818]=Z;else{if(typeof _0x104910==_0x3d3745(0xb3)){const _0xfc2acb=new Date(_0x104910);Number[_0x3d3745(0x113)](_0xfc2acb[_0x3d3745(0xbb)]())||(_0x5c1544[_0x432818]=Z);}}}for(let _0x1a8508=0x1;_0x1a8508<_0x21c42d[_0x3d3745(0xcd)];_0x1a8508++){const _0x825f5b=_0x21c42d[_0x1a8508],_0x1482a7=[];for(let _0x2c951d=0x0;_0x2c951d<_0x825f5b[_0x3d3745(0xcd)];_0x2c951d++)if(_0x5c1544[_0x2c951d]){const _0x4cbf7=_0x825f5b[_0x2c951d],_0x423824=typeof _0x4cbf7==_0x3d3745(0x141)&&_0x4cbf7 instanceof Date?_0x4cbf7:new Date(_0x4cbf7),_0xc39087={'v':de(_0x423824[_0x3d3745(0xbb)]()),'f':_0x5c1544[_0x2c951d]};_0x1482a7['push'](_0xc39087);}else _0x1482a7[_0x3d3745(0x180)](_0x825f5b[_0x2c951d]);_0x58934c[_0x3d3745(0x180)](_0x1482a7);}return{'header':_0x52c48f,'data':_0x58934c};}else throw new Error('[DataFieldManager]:\x20Data\x20is\x20not\x20a\x20valid\x20array');}}class ce extends A[_0x4df760(0x11f)]{[_0x4df760(0xfa)](_0x2cedf1){const _0x1f90a1=_0x4df760,_0x3e193a=_0x2cedf1['get'](m[_0x1f90a1(0xe2)]);this[_0x1f90a1(0xae)](this['Event'][_0x1f90a1(0x124)],()=>_0x3e193a['beforeCommandExecuted'](_0x5ce89c=>{const _0xed53b3=_0x1f90a1;switch(_0x5ce89c['id']){case l['MovePivotTableCommand']['id']:{const _0x272ada=_0x5ce89c[_0xed53b3(0x10f)];this[_0xed53b3(0xed)](_0x272ada);break;}}})),this['registerEventHandler'](this[_0x1f90a1(0x127)][_0x1f90a1(0xc6)],()=>_0x3e193a[_0x1f90a1(0xa3)](_0x239b9e=>{const _0x1bca68=_0x1f90a1;switch(_0x239b9e['id']){case l['AddPivotTableWithConfigCommand']['id']:case l[_0x1bca68(0x103)]['id']:{const _0x1b0812=_0x239b9e[_0x1bca68(0x10f)];this['_fireBeforeAddPivotTableEvent'](_0x1b0812);break;}}})),this[_0x1f90a1(0xae)](this['Event'][_0x1f90a1(0xb2)],()=>_0x3e193a[_0x1f90a1(0xb6)](_0x3ecfea=>{const _0x31117a=_0x1f90a1;if(_0x3ecfea['id']===l[_0x31117a(0xac)]['id']||_0x3ecfea['id']===l[_0x31117a(0x103)]['id']){const _0x1ab47b=_0x3ecfea[_0x31117a(0x10f)];this[_0x31117a(0xfb)](_0x1ab47b);}})),this[_0x1f90a1(0xae)](this[_0x1f90a1(0x127)][_0x1f90a1(0x13a)],()=>_0x3e193a[_0x1f90a1(0xb6)](_0x42435c=>{const _0x143980=_0x1f90a1;if(_0x42435c['id']===l[_0x143980(0x186)]['id']){const _0x2467c0=_0x42435c[_0x143980(0x10f)];this['_fireMovedPivotTableEvent'](_0x2467c0);}})),this[_0x1f90a1(0xae)](this['Event'][_0x1f90a1(0xa5)],()=>_0x3e193a['onCommandExecuted'](_0x58862b=>{const _0x4ee79c=_0x1f90a1;if(_0x58862b['id']===l[_0x4ee79c(0x150)]['id']){const _0x2a7612=_0x58862b[_0x4ee79c(0x10f)];this[_0x4ee79c(0x105)](_0x2a7612);}})),this['registerEventHandler'](this['Event']['PivotTableFieldAdded'],()=>_0x3e193a['onCommandExecuted'](_0x5048da=>{const _0x59949b=_0x1f90a1;if(_0x5048da['id']===l[_0x59949b(0x174)]['id']){const _0x4851bc=_0x5048da['params'];this[_0x59949b(0x9a)](_0x4851bc);}})),this['registerEventHandler'](this['Event']['PivotTableFieldRemoved'],()=>_0x3e193a['onCommandExecuted'](_0x18f202=>{const _0x42ead2=_0x1f90a1;if(_0x18f202['id']===l[_0x42ead2(0x139)]['id']){const _0x2eb915=_0x18f202[_0x42ead2(0x10f)];this[_0x42ead2(0x16e)](_0x2eb915);}})),this['registerEventHandler'](this[_0x1f90a1(0x127)][_0x1f90a1(0x175)],()=>_0x3e193a[_0x1f90a1(0xb6)](_0x508939=>{const _0x1626d1=_0x1f90a1;if(_0x508939['id']===l[_0x1626d1(0xea)]['id']){const _0xc8a097=_0x508939[_0x1626d1(0x10f)];this[_0x1626d1(0x156)](_0xc8a097);}})),this[_0x1f90a1(0xae)](this['Event'][_0x1f90a1(0x9b)],()=>_0x3e193a['onCommandExecuted'](_0x3d15eb=>{const _0x4731fb=_0x1f90a1;if(_0x3d15eb['id']===l['SetPivotCollapseCommand']['id']){const _0x147ffd=_0x3d15eb[_0x4731fb(0x10f)];this[_0x4731fb(0x165)](_0x147ffd);}})),this[_0x1f90a1(0xae)](this[_0x1f90a1(0x127)][_0x1f90a1(0xcf)],()=>_0x3e193a[_0x1f90a1(0xb6)](_0x14f889=>{const _0x2f9329=_0x1f90a1;if(_0x14f889['id']===l[_0x2f9329(0xdc)]['id']){const _0xd38af9=_0x14f889[_0x2f9329(0x10f)];this['_firePivotTableFieldFilterChangedEvent'](_0xd38af9);}})),this[_0x1f90a1(0xae)](this[_0x1f90a1(0x127)][_0x1f90a1(0x129)],()=>_0x3e193a[_0x1f90a1(0xb6)](_0x419263=>{const _0x52a5b9=_0x1f90a1;if(_0x419263['id']===l[_0x52a5b9(0x17c)]['id']){const _0x2820ac=_0x419263[_0x52a5b9(0x10f)];this[_0x52a5b9(0xd6)](_0x2820ac);}})),this[_0x1f90a1(0xae)](this['Event'][_0x1f90a1(0xc3)],()=>_0x3e193a['onCommandExecuted'](_0x417a07=>{const _0x4f5654=_0x1f90a1;if(_0x417a07['id']===l[_0x4f5654(0xa2)]['id']){const _0x38aef3=_0x417a07[_0x4f5654(0x10f)];this['_firePivotTableFieldSettingChangedEvent'](_0x38aef3);}})),this[_0x1f90a1(0xae)](this[_0x1f90a1(0x127)][_0x1f90a1(0x15b)],()=>_0x3e193a[_0x1f90a1(0xb6)](_0x48a392=>{const _0x3aa29d=_0x1f90a1;if(_0x48a392['id']===l[_0x3aa29d(0x12d)]['id']){const _0x3fb87d=_0x48a392[_0x3aa29d(0x10f)];this[_0x3aa29d(0xad)](_0x3fb87d);}}));const _0x3fd7ee=_0x2cedf1[_0x1f90a1(0x12a)](m[_0x1f90a1(0x155)]);this['disposeWithMe'](_0x3fd7ee[_0x1f90a1(0x157)]['subscribe'](_0x5846cd=>{const _0x8f8eba=_0x1f90a1;if(_0x5846cd===m['LifecycleStages']['Ready']){const _0x11f465=_0x2cedf1[_0x8f8eba(0x12a)](l['SheetsPivotTableAdaptorModel']);this[_0x8f8eba(0xae)](this[_0x8f8eba(0x127)][_0x8f8eba(0x10d)],()=>_0x11f465[_0x8f8eba(0x11d)][_0x8f8eba(0x11e)](ie['auditTime'](0x32))[_0x8f8eba(0xa1)](_0x5c759b=>{const _0xf8e44a=_0x8f8eba;this[_0xf8e44a(0x170)](_0x5c759b);}));}}));}['_firePivotTableFieldAddedEvent'](_0x21af3f){const _0x48a9ad=_0x4df760;if(_0x21af3f){const {unitId:_0x5e1e97,subUnitId:_0x241e85,pivotTableId:_0x5c7eeb,dataFieldId:_0x9ff126,fieldArea:_0x4534bf,index:_0x528ddf}=_0x21af3f;this[_0x48a9ad(0x12e)](this[_0x48a9ad(0x127)][_0x48a9ad(0xa6)],{'unitId':_0x5e1e97,'subUnitId':_0x241e85,'pivotTableId':_0x5c7eeb,'dataFieldId':_0x9ff126,'fieldArea':_0x4534bf,'index':_0x528ddf});}}[_0x4df760(0x16e)](_0x2559eb){const _0x21afc6=_0x4df760;if(_0x2559eb){const {unitId:_0x1b7c86,subUnitId:_0x10c84b,pivotTableId:_0x4f1d0e,fieldIds:_0x51cdb6}=_0x2559eb;this[_0x21afc6(0x12e)](this['Event']['PivotTableFieldRemoved'],{'unitId':_0x1b7c86,'subUnitId':_0x10c84b,'pivotTableId':_0x4f1d0e,'fieldIds':_0x51cdb6['concat']()});}}['_firePivotTableFieldMovedEvent'](_0x4bc2a1){const _0x53103c=_0x4df760;if(_0x4bc2a1){const {unitId:_0x3c2de2,subUnitId:_0x47d129,pivotTableId:_0x3af6a5,fieldId:_0x248620,area:_0x49d27c,index:_0x11989c}=_0x4bc2a1;this[_0x53103c(0x12e)](this[_0x53103c(0x127)][_0x53103c(0x175)],{'unitId':_0x3c2de2,'subUnitId':_0x47d129,'pivotTableId':_0x3af6a5,'fieldId':_0x248620,'area':_0x49d27c,'index':_0x11989c});}}[_0x4df760(0x165)](_0x57dc5d){const _0x340129=_0x4df760;if(_0x57dc5d){const {unitId:_0xa4b05d,subUnitId:_0x3613be,row:_0x313f53,col:_0x5a5315,collapse:_0x3258ec}=_0x57dc5d;this[_0x340129(0x12e)](this[_0x340129(0x127)][_0x340129(0x9b)],{'unitId':_0xa4b05d,'subUnitId':_0x3613be,'row':_0x313f53,'col':_0x5a5315,'collapse':_0x3258ec});}}[_0x4df760(0xc8)](_0x4aa117){const _0x303af5=_0x4df760;if(_0x4aa117){const {unitId:_0x42d119,subUnitId:_0x3a0645,pivotTableId:_0x425280,tableFieldId:_0x1d3723,items:_0x37c7d0,isAll:_0x7d877f}=_0x4aa117;this[_0x303af5(0x12e)](this['Event']['PivotTableFieldFilterChanged'],{'unitId':_0x42d119,'subUnitId':_0x3a0645,'pivotTableId':_0x425280,'tableFieldId':_0x1d3723,'items':_0x37c7d0['concat'](),'isAll':_0x7d877f});}}[_0x4df760(0xd6)](_0xf5e9b9){const _0x1eb880=_0x4df760;if(_0xf5e9b9){const {unitId:_0x567642,subUnitId:_0x1889ac,pivotTableId:_0x1de6ef,tableFieldId:_0xf12f32,info:_0x1b9795}=_0xf5e9b9;this[_0x1eb880(0x12e)](this[_0x1eb880(0x127)][_0x1eb880(0x129)],{'unitId':_0x567642,'subUnitId':_0x1889ac,'pivotTableId':_0x1de6ef,'tableFieldId':_0xf12f32,'info':{..._0x1b9795}});}}[_0x4df760(0x134)](_0x430c2c){const _0x45ae7d=_0x4df760;if(_0x430c2c){const {unitId:_0x574f38,subUnitId:_0x50e7b1,tableFieldId:_0x317ad6,pivotTableId:_0x4a0e08,displayName:_0x5b8922,format:_0x2210e4,subtotalType:_0x29cafd,tableFieldInfo:_0xc27172,dataFieldInfo:_0x2cc2a2}=_0x430c2c;this[_0x45ae7d(0x12e)](this[_0x45ae7d(0x127)][_0x45ae7d(0xc3)],{'unitId':_0x574f38,'subUnitId':_0x50e7b1,'tableFieldId':_0x317ad6,'pivotTableId':_0x4a0e08,'displayName':_0x5b8922,'format':_0x2210e4,'subtotalType':_0x29cafd,'tableFieldInfo':_0xc27172,'dataFieldInfo':_0x2cc2a2});}}[_0x4df760(0xad)](_0x868fad){const _0x335368=_0x4df760;if(_0x868fad){const {pivotTableId:_0x1fc24b,position:_0xf4214a,index:_0xf873b2}=_0x868fad;this[_0x335368(0x12e)](this['Event'][_0x335368(0x15b)],{'pivotTableId':_0x1fc24b,'position':_0xf4214a,'index':_0xf873b2});}}['_fireAddPivotTableEvent'](_0x3687f5){const _0x2c0e05=_0x4df760;if(_0x3687f5){const {positionType:_0x3c15ee,pivotTableId:_0x1d596c,pivotTableConfig:_0x1d4fdf}=_0x3687f5,{targetCellInfo:_0x406d4f,sourceRangeInfo:_0x46cf30}=_0x1d4fdf,{unitId:_0x24bf89}=_0x406d4f;this[_0x2c0e05(0x12e)](this[_0x2c0e05(0x127)][_0x2c0e05(0xb2)],{'unitId':_0x24bf89,'positionType':_0x3c15ee,'pivotTableId':_0x1d596c,'sourceRangeInfo':{'startRow':_0x46cf30['range'][_0x2c0e05(0x140)],'endRow':_0x46cf30['range'][_0x2c0e05(0x184)],'startColumn':_0x46cf30['range']['startColumn'],'endColumn':_0x46cf30[_0x2c0e05(0x183)][_0x2c0e05(0xe0)],'unitId':_0x46cf30[_0x2c0e05(0xab)],'subUnitId':_0x46cf30[_0x2c0e05(0x107)],'sheetName':_0x46cf30[_0x2c0e05(0x128)]},'targetCellInfo':{'row':_0x406d4f[_0x2c0e05(0x115)],'column':_0x406d4f['col'],'sheetName':_0x406d4f[_0x2c0e05(0x128)],'unitId':_0x406d4f[_0x2c0e05(0xab)],'subUnitId':_0x406d4f[_0x2c0e05(0x107)]}});}}[_0x4df760(0xd8)](_0x118a1c){const _0x3de45b=_0x4df760;if(_0x118a1c){const {positionType:_0x2d04a0,pivotTableId:_0x41d170,pivotTableConfig:_0x18c4a2}=_0x118a1c,{targetCellInfo:_0x5f0a89,sourceRangeInfo:_0x446a14}=_0x18c4a2,{unitId:_0x5832e8}=_0x5f0a89,_0x5b988f={'unitId':_0x5832e8,'positionType':_0x2d04a0,'pivotTableId':_0x41d170,'sourceRangeInfo':{'startRow':_0x446a14['range']['startRow'],'endRow':_0x446a14['range'][_0x3de45b(0x184)],'startColumn':_0x446a14[_0x3de45b(0x183)][_0x3de45b(0x16f)],'endColumn':_0x446a14[_0x3de45b(0x183)]['endColumn'],'unitId':_0x446a14[_0x3de45b(0xab)],'subUnitId':_0x446a14[_0x3de45b(0x107)],'sheetName':_0x446a14[_0x3de45b(0x128)]},'targetCellInfo':{'row':_0x5f0a89[_0x3de45b(0x115)],'column':_0x5f0a89['col'],'sheetName':_0x5f0a89['sheetName'],'unitId':_0x5f0a89[_0x3de45b(0xab)],'subUnitId':_0x5f0a89[_0x3de45b(0x107)]},'cancel':!0x1};if(this[_0x3de45b(0x12e)](this[_0x3de45b(0x127)][_0x3de45b(0x124)],_0x5b988f),_0x5b988f['cancel'])throw new Error(_0x3de45b(0x160));}}[_0x4df760(0x105)](_0x34c5b6){const _0x1836d1=_0x4df760;if(_0x34c5b6){const {unitId:_0x1c06eb,pivotTableId:_0x51249c}=_0x34c5b6;this[_0x1836d1(0x12e)](this['Event'][_0x1836d1(0xa5)],{'unitId':_0x1c06eb,'pivotTableId':_0x51249c});}}[_0x4df760(0xed)](_0x2a8bc0){const _0x415d22=_0x4df760;if(_0x2a8bc0){const {originTargetInfo:_0x468b92,pivotTableId:_0x2b4f1e,targetCellInfo:_0x2bbd2e}=_0x2a8bc0,{unitId:_0x44ff84}=_0x468b92,_0x1434f4=this['_injector'][_0x415d22(0x12a)](l[_0x415d22(0xff)])[_0x415d22(0xb4)](_0x468b92['unitId'],_0x468b92['subUnitId'],_0x2b4f1e);if(!_0x1434f4)return;const _0xfc7fff={'unitId':_0x44ff84,'pivotTableId':_0x2b4f1e,'originTargetInfo':{'row':_0x1434f4[_0x415d22(0xf5)][_0x415d22(0x115)],'column':_0x1434f4[_0x415d22(0xf5)][_0x415d22(0x137)],'unitId':_0x1434f4[_0x415d22(0xf5)][_0x415d22(0xab)],'subUnitId':_0x1434f4[_0x415d22(0xf5)][_0x415d22(0x107)]},'targetCellInfo':{'row':_0x2bbd2e[_0x415d22(0x115)],'column':_0x2bbd2e[_0x415d22(0x137)],'unitId':_0x2bbd2e[_0x415d22(0xab)],'subUnitId':_0x2bbd2e[_0x415d22(0x107)]},'cancel':!0x1};if(this['fireEvent'](this[_0x415d22(0x127)][_0x415d22(0xc6)],_0xfc7fff),_0xfc7fff[_0x415d22(0x15a)])throw new Error('Before\x20move\x20pivot\x20table\x20event\x20canceled');}}['_fireMovedPivotTableEvent'](_0xe31cbe){const _0x24f3b1=_0x4df760;if(_0xe31cbe){const {originTargetInfo:_0x133713,pivotTableId:_0x40252d,targetCellInfo:_0x54a8aa}=_0xe31cbe,{unitId:_0x263072}=_0x133713,_0x23b864=this['_injector'][_0x24f3b1(0x12a)](l[_0x24f3b1(0xff)])[_0x24f3b1(0xb4)](_0x133713[_0x24f3b1(0xab)],_0x133713[_0x24f3b1(0x107)],_0x40252d);if(!_0x23b864)return;this[_0x24f3b1(0x12e)](this[_0x24f3b1(0x127)][_0x24f3b1(0x13a)],{'unitId':_0x263072,'pivotTableId':_0x40252d,'originTargetInfo':{'row':_0x23b864[_0x24f3b1(0xf5)][_0x24f3b1(0x115)],'column':_0x23b864[_0x24f3b1(0xf5)][_0x24f3b1(0x137)],'unitId':_0x23b864['targetCellInfo'][_0x24f3b1(0xab)],'subUnitId':_0x23b864[_0x24f3b1(0xf5)][_0x24f3b1(0x107)]},'targetCellInfo':{'row':_0x54a8aa[_0x24f3b1(0x115)],'column':_0x54a8aa[_0x24f3b1(0x137)],'unitId':_0x54a8aa[_0x24f3b1(0xab)],'subUnitId':_0x54a8aa[_0x24f3b1(0x107)]}});}}[_0x4df760(0x170)](_0x4dc223){const _0x5191eb=_0x4df760;if(_0x4dc223){const {unitId:_0x431f16,subUnitId:_0xc9bc31,pivotTableId:_0x5088bb,type:_0x10ca7d,rangesCache:_0x4952ff,isEmpty:_0x3ca094}=_0x4dc223;this['fireEvent'](this[_0x5191eb(0x127)]['PivotTableRendered'],{'unitId':_0x431f16,'subUnitId':_0xc9bc31,'pivotTableId':_0x5088bb,'changeType':_0x10ca7d,'isEmpty':!!_0x3ca094,'rangeInfo':_0x4952ff});}}[_0x4df760(0x15c)](_0x21d826,_0x547e97){const _0x29482f=_0x4df760,_0x392350=(_0x547e97?new _0x547e97():new ve())[_0x29482f(0x13d)]('data',_0x21d826),_0x301f47=_0x21d826[0x0];_0x392350[_0x29482f(0xdf)]()[_0x29482f(0x14e)]((_0x22e8a1,_0x267767)=>{const _0xb852f1=_0x29482f;_0x392350[_0xb852f1(0xda)](_0x22e8a1,_0x301f47[_0x267767]);});const _0x1e7976=r[_0x29482f(0x126)](0x8),_0x1022f3=new r[(_0x29482f(0x164))](_0x392350,void 0x0,_0x1e7976);return new re(this[_0x29482f(0xc2)],_0x1022f3,_0x21d826,_0x1e7976);}}A[_0x4df760(0x11f)]['extend'](ce);