@univerjs-pro/sheets-chart-ui 0.5.2 → 0.5.3

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/es/facade.js CHANGED
@@ -1 +1 @@
1
- const _0x87b07f=_0x1c16;(function(_0x7b308,_0x404a93){const _0x569721=_0x1c16,_0x5f597a=_0x7b308();while(!![]){try{const _0x225fef=parseInt(_0x569721(0x147))/0x1+-parseInt(_0x569721(0x126))/0x2+parseInt(_0x569721(0x1ac))/0x3*(-parseInt(_0x569721(0x17a))/0x4)+-parseInt(_0x569721(0x1ab))/0x5*(-parseInt(_0x569721(0x143))/0x6)+parseInt(_0x569721(0x1b9))/0x7+parseInt(_0x569721(0x199))/0x8+-parseInt(_0x569721(0x137))/0x9*(parseInt(_0x569721(0x183))/0xa);if(_0x225fef===_0x404a93)break;else _0x5f597a['push'](_0x5f597a['shift']());}catch(_0x2100a4){_0x5f597a['push'](_0x5f597a['shift']());}}}(_0xcd83,0xbaa81));var v=Object['defineProperty'],b=(_0x586a82,_0x330187,_0x22cb2e)=>_0x330187 in _0x586a82?v(_0x586a82,_0x330187,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x22cb2e}):_0x586a82[_0x330187]=_0x22cb2e,r=(_0x4c9bcf,_0x3c0867,_0xb866dc)=>b(_0x4c9bcf,typeof _0x3c0867!=_0x87b07f(0x12b)?_0x3c0867+'':_0x3c0867,_0xb866dc);import{setProperty as _0x1d74c0,SheetsChartService as _0x4cab45,ChartUpdateSourceCommand as _0x32ef24,ChartUpdateConfigCommand as _0xab4527,ChartThemeService as _0x46da2b,ChartTypeBits as _0x3602dd}from'@univerjs-pro/sheets-chart';import{InsertChartCommand as _0x509a3d}from'@univerjs-pro/sheets-chart-ui';import{FBase as _0x202d0e,CommandService as _0x14d6b7,IUniverInstanceService as _0x4bd44d,UniverInstanceType as _0x3933ef,generateRandomId as _0x3c3094,DrawingTypeEnum as _0x317eee}from'@univerjs/core';function _0xcd83(){const _0x342e73=['setLineStyle','keys','updateChart','setYAxisTitle','seriesStyleMap','indicatorLineColor','4839777mnRtal','asPieChart','titles.xAxisTitle.fontWeight','titles.yAxisTitle.alignment','indicatorLineType','titles.title.font','title','setFill','shape','getCategoryData','setXAxisTitle','getUnitChartModels','6719094vDBkll','point','setRightYAxisTitle','setTheme','1013154SiHvwl','titles.xAxisTitle.fontColor','lineStyle','setAxisPointerStyle','pie.showLabelLine','height','setShowLabelLine','selectMode','titles.yAxisTitle.fontWeight','_injector','tooltip.indicatorLabelColor','top','xAxisTitle','dataSource','setInvalidValueStrategy','subUnitId','titles.rightYAxisTitle.alignment','Range\x20is\x20required\x20to\x20insert\x20a\x20chart','titles.rightYAxisTitle.fontWeight','addRange','executeCommand','setTransposeRowsAndColumns','sourceSheetName','modify','get','titles.xAxisTitle.fontStyle','series','options','allSeriesStyle.point.size','titles.yAxisTitle.fontStyle','legend.label.color','newChart','DRAWING_CHART','titles.title.content','style','build','borderColor','transposeRowsAndColumns','pie.isHalfPie','getRange','fontStyle','legend.position','color','theme','setHeight','titles.title.fontSize','position','isHalfPie','setDataPointColor','setBorderColor','getSheetBySheetName','264184CoiSkL','content','range','dataPointShape','left','pie','chartId','titles.xAxisTitle.alignment','getUnitId','10DrmUCW','setShape','yRightAxis','getRenderById','chartType','unitId','legend.label.bold','yAxis','pie.doughnutHole','font','axisPointer','setDataPointSize','backgroundColor','registerTheme','titles.title.fontWeight','titles.xAxisTitle.font','alignment','setWidth','setRightYAxisTextStyle','getSheetId','getCurrentUnitForType','removeChart','4390544Kkhjvh','italic','showLabelLine','setOptions','setAbsolutePosition','rightYAxis','width','setDataPointShape','dataPointColor','titles.rightYAxisTitle.fontColor','xAxis','_workbook','updateRange','allSeriesStyle.point.shape','titles.title.fontColor','fill','titles.title.alignment','area.lineStyle','5vRvvNc','12TMSIQe','tooltip.indicatorLabelTextColor','fontColor','titles.xAxisTitle.fontSize','isRowDirection','yAxisTitle','pie.borderColor','getWorkbook','fontSize','getChartId','legend','map','doughnutHole','1296904TdiKeU','getChartModel','getCharts','setYAxisTextStyle','getSeriesData','setDoughnutHole','area','pie.hasPaddingAngle','rosePie','This\x20api\x20only\x20works\x20in\x20the\x20active\x20sheet.','setHasPaddingAngle','setChartType','titles.rightYAxisTitle.content','sheetName','rightYAxisTitle','setPosition','radar.fill','titles.xAxisTitle.content','category','indicatorLabelColor','registerChartTheme','asLineChart','hasPaddingAngle','length','pie.rosePie','dataPointSize','extend','2601222PHwUwC','setSeriesStyle','legend.label.fontSize','config','titles.rightYAxisTitle.font','symbol','allSeriesStyle','_commandService','setIsHalfPie','fontWeight','\x20not\x20found'];_0xcd83=function(){return _0x342e73;};return _0xcd83();}import{RemoveSheetDrawingCommand as _0x3fd868}from'@univerjs/sheets-drawing-ui';import{FWorksheet as _0x4a9493}from'@univerjs/sheets/facade';import{deserializeRangeWithSheet as _0x4ab060}from'@univerjs/engine-formula';import{IRenderManagerService as _0x1dfd54}from'@univerjs/engine-render';import{ISheetSelectionRenderService as _0xdfa6c2,SheetSkeletonManagerService as _0x32e24b,convertPositionCellToSheetOverGrid as _0x4fb90b}from'@univerjs/sheets-ui';const s=(_0x348df2,_0x3d5266,_0xafd6b)=>{_0xafd6b!==void 0x0&&_0x1d74c0(_0x348df2,_0x3d5266,_0xafd6b);},A=(_0x255a72,_0x49eb91,_0x457b93,_0x3ec102={})=>{const _0x796ba0=_0x87b07f,_0x227a0b={},_0x25e4f7={};if(_0x3ec102[_0x796ba0(0x13d)]){const _0x170f31=_0x3ec102['title'];s(_0x227a0b,_0x796ba0(0x168),_0x170f31['content']),s(_0x227a0b,_0x796ba0(0x13c),_0x170f31[_0x796ba0(0x18c)]),s(_0x227a0b,_0x796ba0(0x174),_0x170f31['fontSize']),s(_0x227a0b,_0x796ba0(0x1a7),_0x170f31[_0x796ba0(0x1ae)]),s(_0x227a0b,'titles.title.fontStyle',_0x170f31['fontStyle']),s(_0x227a0b,_0x796ba0(0x191),_0x170f31[_0x796ba0(0x12f)]),s(_0x227a0b,_0x796ba0(0x1a9),_0x170f31[_0x796ba0(0x193)]),s(_0x227a0b,'titles.title.titlePosition',_0x170f31[_0x796ba0(0x175)]);}if(_0x3ec102['legend']){const _0x35e2ff=_0x3ec102[_0x796ba0(0x1b6)];s(_0x227a0b,_0x796ba0(0x170),_0x35e2ff['position']),s(_0x227a0b,'legend.selectMode',_0x35e2ff[_0x796ba0(0x14e)]),s(_0x227a0b,_0x796ba0(0x128),_0x35e2ff['fontSize']),s(_0x227a0b,_0x796ba0(0x165),_0x35e2ff[_0x796ba0(0x171)]),s(_0x227a0b,_0x796ba0(0x189),_0x35e2ff['bold']),s(_0x227a0b,'legend.label.italic',_0x35e2ff[_0x796ba0(0x19a)]);}if(_0x3ec102['pie']){const _0x107194=_0x3ec102[_0x796ba0(0x17f)];s(_0x227a0b,_0x796ba0(0x18b),_0x107194['doughnutHole']),s(_0x227a0b,_0x796ba0(0x1b2),_0x107194[_0x796ba0(0x16b)]),s(_0x227a0b,_0x796ba0(0x112),_0x107194[_0x796ba0(0x121)]),s(_0x227a0b,_0x796ba0(0x16d),_0x107194['isHalfPie']),s(_0x227a0b,'pie.rosePie',_0x107194[_0x796ba0(0x113)]),s(_0x227a0b,_0x796ba0(0x14b),_0x107194[_0x796ba0(0x19b)]);}if(_0x3ec102[_0x796ba0(0x18d)]){const _0x372562=_0x3ec102[_0x796ba0(0x18d)];s(_0x227a0b,_0x796ba0(0x151),_0x372562[_0x796ba0(0x11e)]),s(_0x227a0b,'tooltip.indicatorLineType',_0x372562[_0x796ba0(0x13b)]),s(_0x227a0b,'tooltip.indicatorLineColor',_0x372562[_0x796ba0(0x136)]),s(_0x227a0b,_0x796ba0(0x1ad),_0x372562['indicatorLabelTextColor']);}if(_0x3ec102[_0x796ba0(0x12c)]&&s(_0x227a0b,'allSeriesStyle.point',_0x3ec102['allSeriesStyle'][_0x796ba0(0x144)]),_0x3ec102[_0x796ba0(0x111)]&&s(_0x227a0b,_0x796ba0(0x1aa),_0x3ec102[_0x796ba0(0x111)][_0x796ba0(0x149)]),_0x3ec102[_0x796ba0(0x172)]&&s(_0x227a0b,_0x796ba0(0x172),_0x3ec102[_0x796ba0(0x172)]),_0x3ec102[_0x796ba0(0x153)]){const _0x301231=_0x3ec102[_0x796ba0(0x153)];s(_0x227a0b,_0x796ba0(0x11c),_0x301231[_0x796ba0(0x17b)]),s(_0x227a0b,_0x796ba0(0x192),_0x301231[_0x796ba0(0x18c)]),s(_0x227a0b,_0x796ba0(0x1af),_0x301231[_0x796ba0(0x1b4)]),s(_0x227a0b,_0x796ba0(0x148),_0x301231[_0x796ba0(0x1ae)]),s(_0x227a0b,_0x796ba0(0x160),_0x301231[_0x796ba0(0x16f)]),s(_0x227a0b,_0x796ba0(0x139),_0x301231['fontWeight']),s(_0x227a0b,_0x796ba0(0x181),_0x301231[_0x796ba0(0x193)]);}if(_0x3ec102['yAxisTitle']){const _0x224595=_0x3ec102['yAxisTitle'];s(_0x227a0b,'titles.yAxisTitle.content',_0x224595[_0x796ba0(0x17b)]),s(_0x227a0b,'titles.yAxisTitle.font',_0x224595[_0x796ba0(0x18c)]),s(_0x227a0b,'titles.yAxisTitle.fontSize',_0x224595[_0x796ba0(0x1b4)]),s(_0x227a0b,'titles.yAxisTitle.fontColor',_0x224595['fontColor']),s(_0x227a0b,_0x796ba0(0x164),_0x224595[_0x796ba0(0x16f)]),s(_0x227a0b,_0x796ba0(0x14f),_0x224595['fontWeight']),s(_0x227a0b,_0x796ba0(0x13a),_0x224595['alignment']);}if(_0x3ec102[_0x796ba0(0x119)]){const _0x595aac=_0x3ec102['rightYAxisTitle'];s(_0x227a0b,_0x796ba0(0x117),_0x595aac[_0x796ba0(0x17b)]),s(_0x227a0b,_0x796ba0(0x12a),_0x595aac[_0x796ba0(0x18c)]),s(_0x227a0b,'titles.rightYAxisTitle.fontSize',_0x595aac[_0x796ba0(0x1b4)]),s(_0x227a0b,_0x796ba0(0x1a2),_0x595aac[_0x796ba0(0x1ae)]),s(_0x227a0b,'titles.rightYAxisTitle.fontStyle',_0x595aac[_0x796ba0(0x16f)]),s(_0x227a0b,_0x796ba0(0x159),_0x595aac['fontWeight']),s(_0x227a0b,_0x796ba0(0x157),_0x595aac[_0x796ba0(0x193)]);}_0x3ec102[_0x796ba0(0x1a3)]&&s(_0x227a0b,_0x796ba0(0x1a3),_0x3ec102['xAxis']),_0x3ec102[_0x796ba0(0x18a)]&&s(_0x227a0b,'yAxis',_0x3ec102[_0x796ba0(0x18a)]),_0x3ec102[_0x796ba0(0x185)]&&s(_0x227a0b,_0x796ba0(0x19e),_0x3ec102['yRightAxis']),_0x3ec102[_0x796ba0(0x135)]&&s(_0x227a0b,'seriesStyleMap',_0x3ec102['seriesStyleMap']);const _0x5f0da1={'unitId':_0x255a72,'chartModelId':_0x49eb91};let _0x3f7dd1=!0x1;if(_0x457b93!==void 0x0&&(_0x5f0da1['chartType']=_0x457b93,_0x3f7dd1=!0x0),Object[_0x796ba0(0x132)](_0x227a0b)['length']>0x0&&(_0x5f0da1[_0x796ba0(0x169)]=_0x227a0b,_0x3f7dd1=!0x0),Object[_0x796ba0(0x132)](_0x25e4f7)[_0x796ba0(0x122)]>0x0&&(_0x5f0da1['context']=_0x25e4f7,_0x3f7dd1=!0x0),_0x3f7dd1)return _0x5f0da1;};class c extends _0x202d0e{constructor(_0x887c14,_0x1d6663,_0x3a27ba,_0x250299,_0x183c1d){const _0x27c0c0=_0x87b07f;super(),r(this,_0x27c0c0(0x1a4)),r(this,_0x27c0c0(0x150)),r(this,_0x27c0c0(0x188)),r(this,_0x27c0c0(0x156)),r(this,_0x27c0c0(0x180)),r(this,_0x27c0c0(0x17c)),r(this,_0x27c0c0(0x15d)),r(this,'x'),r(this,'y'),r(this,_0x27c0c0(0x19f)),r(this,_0x27c0c0(0x14c)),r(this,_0x27c0c0(0x187)),r(this,_0x27c0c0(0x162)),r(this,_0x27c0c0(0x16c)),(this[_0x27c0c0(0x188)]=_0x887c14,this[_0x27c0c0(0x156)]=_0x1d6663,this[_0x27c0c0(0x1a4)]=_0x3a27ba,this[_0x27c0c0(0x150)]=_0x250299,_0x183c1d&&(this[_0x27c0c0(0x180)]=_0x183c1d));}['getChartType'](){return this['chartType'];}[_0x87b07f(0x15a)](_0x3847c3){const _0x385c81=_0x87b07f;if(typeof _0x3847c3=='string'){const _0x146e93=_0x4ab060(_0x3847c3);_0x146e93[_0x385c81(0x118)]&&(this[_0x385c81(0x15d)]=_0x146e93[_0x385c81(0x118)]),this[_0x385c81(0x17c)]=_0x146e93[_0x385c81(0x17c)];}else this[_0x385c81(0x17c)]=_0x3847c3;return this;}['clearRange'](){return this['range']=void 0x0,this['sourceSheetName']=void 0x0,this;}[_0x87b07f(0x11a)](_0x1b7e9a,_0x3dbf85,_0x5e1dd9,_0xf8515c){const _0x4527e3=_0x87b07f,_0x1f68ac=this[_0x4527e3(0x150)][_0x4527e3(0x15f)](_0x1dfd54)[_0x4527e3(0x186)](this[_0x4527e3(0x188)]);if(!_0x1f68ac)throw new Error(_0x4527e3(0x114));const _0x424446=_0x1f68ac['with'](_0xdfa6c2),_0x16c9f2=_0x1f68ac['with'](_0x32e24b),{transform:_0x473420}=_0x4fb90b(this['unitId'],this['subUnitId'],{'row':_0x1b7e9a,'column':_0x3dbf85,'rowOffset':_0x5e1dd9,'columnOffset':_0xf8515c},0x1,0x1,_0x424446,_0x16c9f2),_0xc2b8d5=_0x473420[_0x4527e3(0x152)],_0x437110=_0x473420[_0x4527e3(0x17e)];return this['x']=_0x437110,this['y']=_0xc2b8d5,this;}[_0x87b07f(0x19d)](_0x4061b3,_0x303080){return this['x']=_0x4061b3,this['y']=_0x303080,this;}[_0x87b07f(0x116)](_0x1104be){return this['chartType']=_0x1104be,this;}[_0x87b07f(0x194)](_0x3f6de8){return this['width']=_0x3f6de8,this;}[_0x87b07f(0x173)](_0x1557d3){return this['height']=_0x1557d3,this;}[_0x87b07f(0x19c)](_0xc29c8,_0xfc4171){const _0x5a6045=_0x87b07f;return this[_0x5a6045(0x162)]||(this['options']={}),_0xc29c8===''?(this[_0x5a6045(0x162)]={...this[_0x5a6045(0x162)],..._0xfc4171},this):(_0x1d74c0(this[_0x5a6045(0x162)],_0xc29c8,_0xfc4171),this);}[_0x87b07f(0x15c)](_0x55a219){const _0xb6799b=_0x87b07f;return this[_0xb6799b(0x16c)]=_0x55a219,this;}[_0x87b07f(0x146)](_0x469987){const _0x183719=_0x87b07f;return this[_0x183719(0x19c)](_0x183719(0x172),_0x469987),this;}[_0x87b07f(0x141)](_0x301573){const _0x3a2ddf=_0x87b07f;var _0x1a9224;const _0xda55f8=((_0x1a9224=this[_0x3a2ddf(0x162)])==null?void 0x0:_0x1a9224[_0x3a2ddf(0x153)])||{};return _0xda55f8[_0x3a2ddf(0x17b)]=_0x301573,this['setOptions'](_0x3a2ddf(0x153),_0xda55f8),this;}[_0x87b07f(0x134)](_0x4d5aa5){const _0x3cd1e2=_0x87b07f;var _0x378d49;const _0x4c1ef8=((_0x378d49=this[_0x3cd1e2(0x162)])==null?void 0x0:_0x378d49[_0x3cd1e2(0x1b1)])||{};return _0x4c1ef8[_0x3cd1e2(0x17b)]=_0x4d5aa5,this['setOptions'](_0x3cd1e2(0x1b1),_0x4c1ef8),this;}[_0x87b07f(0x145)](_0x5a7a95){const _0x48bded=_0x87b07f;var _0x2dac29;const _0x5ec556=((_0x2dac29=this[_0x48bded(0x162)])==null?void 0x0:_0x2dac29[_0x48bded(0x119)])||{};return _0x5ec556[_0x48bded(0x17b)]=_0x5a7a95,this['setOptions']('rightYAxisTitle',_0x5ec556),this;}['setXAxisTextStyle'](_0xbd7737){const _0x5c6b96=_0x87b07f;var _0x4eb382;const _0x1fab21=((_0x4eb382=this[_0x5c6b96(0x162)])==null?void 0x0:_0x4eb382['xAxisTitle'])||{};return this[_0x5c6b96(0x19c)](_0x5c6b96(0x153),{..._0x1fab21,..._0xbd7737}),this;}[_0x87b07f(0x10e)](_0x40ac04){const _0x1b8fb2=_0x87b07f;var _0x534666;const _0x41138f=((_0x534666=this['options'])==null?void 0x0:_0x534666[_0x1b8fb2(0x1b1)])||{};return this[_0x1b8fb2(0x19c)]('yAxisTitle',{..._0x41138f,..._0x40ac04}),this;}[_0x87b07f(0x195)](_0x413a67){const _0x105628=_0x87b07f;var _0x2f6872;const _0x48bf9d=((_0x2f6872=this[_0x105628(0x162)])==null?void 0x0:_0x2f6872[_0x105628(0x119)])||{};return this[_0x105628(0x19c)](_0x105628(0x119),{..._0x48bf9d,..._0x413a67}),this;}[_0x87b07f(0x155)](_0x33d9d8){return this['setOptions']('invalidValueType',_0x33d9d8),this;}[_0x87b07f(0x14a)](_0x5efe70){const _0x186bc9=_0x87b07f;return this[_0x186bc9(0x19c)](_0x186bc9(0x18d),_0x5efe70),this;}['setAllSeriesStyle'](_0x438950){return this['setOptions']('allSeriesStyle',_0x438950),this;}[_0x87b07f(0x127)](_0x3aeccf,_0x1de16b){const _0x245e90=_0x87b07f;return this[_0x245e90(0x19c)](_0x245e90(0x135),{[_0x3aeccf]:_0x1de16b}),this;}[_0x87b07f(0x16a)](){const _0x500d45=_0x87b07f;var _0x445d84;let _0x215331=this[_0x500d45(0x156)];if(this[_0x500d45(0x15d)]){const _0x58643a=(_0x445d84=this[_0x500d45(0x1a4)][_0x500d45(0x179)](this[_0x500d45(0x15d)]))==null?void 0x0:_0x445d84['getSheetId']();if(!_0x58643a)throw new Error('Sheet\x20'+this[_0x500d45(0x15d)]+_0x500d45(0x130));_0x215331=_0x58643a;}return{'unitId':this[_0x500d45(0x188)],'subUnitId':_0x215331,'chartId':this[_0x500d45(0x180)],'range':this[_0x500d45(0x17c)],'x':this['x'],'y':this['y'],'width':this[_0x500d45(0x19f)],'height':this['height'],'chartType':this[_0x500d45(0x187)],'options':this[_0x500d45(0x162)],'isRowDirection':this['transposeRowsAndColumns']};}}class f{constructor(_0x4bc4a2,_0xd172bf,_0x255dc3,_0x8a966f){const _0x425a18=_0x87b07f;r(this,_0x425a18(0x188)),r(this,_0x425a18(0x156)),r(this,_0x425a18(0x180)),r(this,_0x425a18(0x150)),(this[_0x425a18(0x188)]=_0x4bc4a2,this['subUnitId']=_0xd172bf,this['chartId']=_0x255dc3,this[_0x425a18(0x150)]=_0x8a966f);}[_0x87b07f(0x1b5)](){return this['chartId'];}[_0x87b07f(0x16e)](){const _0x4ab672=_0x87b07f,_0x50bd2e=this[_0x4ab672(0x150)][_0x4ab672(0x15f)](_0x4cab45)[_0x4ab672(0x1ba)](this[_0x4ab672(0x180)]);if(_0x50bd2e)return _0x50bd2e[_0x4ab672(0x154)]['getRangeInfo']();}[_0x87b07f(0x1a5)](_0x4caec5){const _0x37f924=_0x87b07f;return this[_0x37f924(0x150)][_0x37f924(0x15f)](_0x14d6b7)[_0x37f924(0x15b)](_0x32ef24['id'],{'unitId':this[_0x37f924(0x188)],'chartModelId':this['chartId'],'range':_0x4caec5});}[_0x87b07f(0x10f)](){const _0x2d3183=_0x87b07f;var _0xc1ada0;const _0x348554=this[_0x2d3183(0x150)]['get'](_0x4cab45)[_0x2d3183(0x1ba)](this[_0x2d3183(0x180)]);if(_0x348554)return(_0xc1ada0=_0x348554[_0x2d3183(0x129)])==null?void 0x0:_0xc1ada0[_0x2d3183(0x161)];}[_0x87b07f(0x140)](){const _0x307208=_0x87b07f;var _0x23ef25;const _0x33a772=this[_0x307208(0x150)][_0x307208(0x15f)](_0x4cab45)['getChartModel'](this[_0x307208(0x180)]);if(_0x33a772)return(_0x23ef25=_0x33a772['config'])==null?void 0x0:_0x23ef25[_0x307208(0x11d)];}[_0x87b07f(0x15e)](){const _0x3066d4=_0x87b07f,_0xa4e761=this[_0x3066d4(0x150)]['get'](_0x4bd44d)[_0x3066d4(0x197)](_0x3933ef['UNIVER_SHEET']);return new c(this['unitId'],this['subUnitId'],_0xa4e761,this['_injector'],this[_0x3066d4(0x180)]);}}class B extends _0x4a9493{async['insertChart'](_0x4df7d6){const _0xaf34ea=_0x87b07f;var _0x360f7e,_0x578fa5,_0x3a23cf;const _0x4f7934=_0x4df7d6[_0xaf34ea(0x188)]||this[_0xaf34ea(0x1b3)]()['getUnitId'](),_0x4e0b34=_0x4df7d6[_0xaf34ea(0x156)]||this['getSheetId'](),_0x576518=_0x4df7d6[_0xaf34ea(0x180)]||_0x3c3094(),_0x3a1d0e=_0x4df7d6[_0xaf34ea(0x187)],_0x2fb885=_0x4df7d6[_0xaf34ea(0x17c)],_0x12ecf1={'x':_0x4df7d6['x'],'y':_0x4df7d6['y']},_0x238e5a=_0x4df7d6[_0xaf34ea(0x19f)],_0x1655c9=_0x4df7d6[_0xaf34ea(0x14c)],_0x2ebf8e=(_0x360f7e=_0x4df7d6[_0xaf34ea(0x162)])==null?void 0x0:_0x360f7e[_0xaf34ea(0x18f)],_0x24b3eb=(_0x578fa5=_0x4df7d6[_0xaf34ea(0x162)])==null?void 0x0:_0x578fa5[_0xaf34ea(0x16b)],_0x3e4203=A(_0x4f7934,_0x576518,_0x3a1d0e,_0x4df7d6[_0xaf34ea(0x162)]),_0x419395=(_0x3a23cf=_0x4df7d6[_0xaf34ea(0x1b0)])!=null?_0x3a23cf:!0x0;if(!_0x2fb885)throw new Error(_0xaf34ea(0x158));return await this[_0xaf34ea(0x12d)][_0xaf34ea(0x15b)](_0x509a3d['id'],{'unitId':_0x4f7934,'subUnitId':_0x4e0b34,'chartId':_0x576518,'chartType':_0x3a1d0e,'range':_0x2fb885,'position':_0x12ecf1,'width':_0x238e5a,'height':_0x1655c9,'backgroundColor':_0x2ebf8e,'borderColor':_0x24b3eb,'config':_0x3e4203,'isRowDirection':_0x419395}),new f(_0x4f7934,_0x4e0b34,_0x576518,this[_0xaf34ea(0x150)]);}[_0x87b07f(0x133)](_0x21b814){const _0xeea981=_0x87b07f,{unitId:_0x4f2cc6,chartId:_0x5c92fa,chartType:_0x3f6c7c,options:_0x5249ad}=_0x21b814,_0x254e4d=A(_0x4f2cc6,_0x5c92fa,_0x3f6c7c,_0x5249ad);this['_commandService'][_0xeea981(0x15b)](_0xab4527['id'],_0x254e4d);}[_0x87b07f(0x166)](_0x385fc4){const _0xa0c1c=_0x87b07f;if(_0x385fc4)return new c(_0x385fc4[_0xa0c1c(0x188)],_0x385fc4[_0xa0c1c(0x156)],this['_workbook'],this[_0xa0c1c(0x150)],_0x385fc4[_0xa0c1c(0x180)]);const _0x459fee=this[_0xa0c1c(0x1b3)]()[_0xa0c1c(0x182)](),_0x33a0f8=this[_0xa0c1c(0x196)]();return new c(_0x459fee,_0x33a0f8,this[_0xa0c1c(0x1a4)],this[_0xa0c1c(0x150)]);}[_0x87b07f(0x1bb)](){const _0x517422=_0x87b07f,_0x12c64c=this[_0x517422(0x150)][_0x517422(0x15f)](_0x4cab45),_0x139fc5=this[_0x517422(0x1b3)]()[_0x517422(0x182)]();return _0x12c64c[_0x517422(0x142)](_0x139fc5,this['getSheetId']())[_0x517422(0x1b7)](_0x4b5673=>new f(_0x139fc5,this[_0x517422(0x196)](),_0x4b5673['id'],this[_0x517422(0x150)]));}[_0x87b07f(0x198)](_0x17c3af){const _0x5ace4e=_0x87b07f,_0x44eeef=_0x17c3af[_0x5ace4e(0x188)],_0x32b953=_0x17c3af[_0x5ace4e(0x156)],_0x4a1ba5=_0x17c3af[_0x5ace4e(0x180)],_0x789bf1={'unitId':_0x44eeef,'drawings':[{'unitId':_0x44eeef,'subUnitId':_0x32b953,'drawingId':_0x4a1ba5,'drawingType':_0x317eee[_0x5ace4e(0x167)]}]};return this[_0x5ace4e(0x12d)][_0x5ace4e(0x15b)](_0x3fd868['id'],_0x789bf1);}[_0x87b07f(0x11f)](_0x501651,_0x1b205a){const _0x820810=_0x87b07f;this['_injector'][_0x820810(0x15f)](_0x46da2b)[_0x820810(0x190)](_0x501651,_0x1b205a);}}_0x4a9493[_0x87b07f(0x125)](B);class G extends c{constructor(_0x494ddb,_0x5da716,_0x1acdc9,_0x1b01bc,_0x15c9f1){const _0xa945f2=_0x87b07f;super(_0x494ddb,_0x5da716,_0x1acdc9,_0x1b01bc,_0x15c9f1),r(this,_0xa945f2(0x149)),r(this,_0xa945f2(0x17d)),r(this,_0xa945f2(0x1a1)),r(this,_0xa945f2(0x124));}[_0x87b07f(0x131)](_0x274165){const _0xc79e6e=_0x87b07f;return this[_0xc79e6e(0x149)]=_0x274165,this;}[_0x87b07f(0x1a0)](_0x1c2ace){const _0x587343=_0x87b07f;return this[_0x587343(0x17d)]=_0x1c2ace,this;}[_0x87b07f(0x177)](_0x94ff78){return this['dataPointColor']=_0x94ff78,this;}[_0x87b07f(0x18e)](_0xebb038){const _0x377b8e=_0x87b07f;return this[_0x377b8e(0x124)]=_0xebb038,this;}[_0x87b07f(0x16a)](){const _0x5c7160=_0x87b07f,_0x37ec97=super[_0x5c7160(0x16a)]();_0x37ec97[_0x5c7160(0x187)]=_0x3602dd['Line'];const _0x473a8a=_0x37ec97[_0x5c7160(0x162)]||{};return s(_0x473a8a,_0x5c7160(0x1aa),this[_0x5c7160(0x149)]),s(_0x473a8a,_0x5c7160(0x1a6),this[_0x5c7160(0x17d)]),s(_0x473a8a,'allSeriesStyle.point.color',this[_0x5c7160(0x1a1)]),s(_0x473a8a,_0x5c7160(0x163),this['dataPointSize']),_0x37ec97[_0x5c7160(0x162)]=_0x473a8a,_0x37ec97;}}class V extends c{[_0x87b07f(0x120)](){const _0x50a685=_0x87b07f;return new G(this[_0x50a685(0x188)],this[_0x50a685(0x156)],this[_0x50a685(0x1a4)],this['_injector'],this[_0x50a685(0x180)]);}}c[_0x87b07f(0x125)](V);class X extends c{constructor(_0x40aac3,_0x1d7fbb,_0x519601,_0x23f053,_0x47e601){const _0x4b46ec=_0x87b07f;super(_0x40aac3,_0x1d7fbb,_0x519601,_0x23f053,_0x47e601),r(this,_0x4b46ec(0x1b8)),r(this,_0x4b46ec(0x16b)),r(this,'hasPaddingAngle'),r(this,_0x4b46ec(0x176)),r(this,'rosePie'),r(this,_0x4b46ec(0x19b));}[_0x87b07f(0x110)](_0x4cd7a1){const _0x22768f=_0x87b07f;return this[_0x22768f(0x1b8)]=_0x4cd7a1,this;}[_0x87b07f(0x178)](_0x202bfc){const _0x2386d3=_0x87b07f;return this[_0x2386d3(0x16b)]=_0x202bfc,this;}[_0x87b07f(0x115)](_0x5cb84a){return this['hasPaddingAngle']=_0x5cb84a,this;}[_0x87b07f(0x12e)](_0x2a8cd8){const _0x5cad23=_0x87b07f;return this[_0x5cad23(0x176)]=_0x2a8cd8,this;}['setRosePie'](_0x483f2d){const _0x51cec8=_0x87b07f;return this[_0x51cec8(0x113)]=_0x483f2d,this;}[_0x87b07f(0x14d)](_0x5c5916){const _0x29e5ec=_0x87b07f;return this[_0x29e5ec(0x19b)]=_0x5c5916,this;}['build'](){const _0x30acbe=_0x87b07f,_0x82bf12=super[_0x30acbe(0x16a)]();_0x82bf12[_0x30acbe(0x187)]=_0x3602dd['Pie'];const _0x2ba70a=_0x82bf12[_0x30acbe(0x162)]||{};return s(_0x2ba70a,_0x30acbe(0x18b),this[_0x30acbe(0x1b8)]),s(_0x2ba70a,_0x30acbe(0x1b2),this[_0x30acbe(0x16b)]),s(_0x2ba70a,_0x30acbe(0x112),this[_0x30acbe(0x121)]),s(_0x2ba70a,_0x30acbe(0x16d),this[_0x30acbe(0x176)]),s(_0x2ba70a,_0x30acbe(0x123),this[_0x30acbe(0x113)]),s(_0x2ba70a,'pie.showLabelLine',this[_0x30acbe(0x19b)]),_0x82bf12[_0x30acbe(0x162)]=_0x2ba70a,_0x82bf12;}}class q extends c{[_0x87b07f(0x138)](){const _0x13647c=_0x87b07f;return new X(this[_0x13647c(0x188)],this[_0x13647c(0x156)],this[_0x13647c(0x1a4)],this[_0x13647c(0x150)],this[_0x13647c(0x180)]);}}c[_0x87b07f(0x125)](q);class $ extends c{constructor(_0x2ec869,_0x1c2b64,_0xe1d2da,_0x206b87,_0x274d3c){const _0x1f63f8=_0x87b07f;super(_0x2ec869,_0x1c2b64,_0xe1d2da,_0x206b87,_0x274d3c),r(this,'shape'),r(this,_0x1f63f8(0x1a8));}[_0x87b07f(0x184)](_0xbf392c){const _0x496d33=_0x87b07f;return this[_0x496d33(0x13f)]=_0xbf392c,this;}[_0x87b07f(0x13e)](_0x2293eb){const _0x3be999=_0x87b07f;return this[_0x3be999(0x1a8)]=_0x2293eb,this;}[_0x87b07f(0x16a)](){const _0x384536=_0x87b07f,_0x49c041=super[_0x384536(0x16a)]();_0x49c041[_0x384536(0x187)]=_0x3602dd['Radar'];const _0x2263c9=_0x49c041[_0x384536(0x162)]||{};return s(_0x2263c9,'radar.shape',this[_0x384536(0x13f)]),s(_0x2263c9,_0x384536(0x11b),this[_0x384536(0x1a8)]),_0x49c041['options']=_0x2263c9,_0x49c041;}}class J extends c{['asRadarChart'](){const _0x4d1c60=_0x87b07f;return new $(this[_0x4d1c60(0x188)],this['subUnitId'],this[_0x4d1c60(0x1a4)],this[_0x4d1c60(0x150)],this[_0x4d1c60(0x180)]);}}c[_0x87b07f(0x125)](J);function _0x1c16(_0x2085d5,_0x502ca0){const _0xcd831d=_0xcd83();return _0x1c16=function(_0x1c16dd,_0x51fc73){_0x1c16dd=_0x1c16dd-0x10e;let _0x595134=_0xcd831d[_0x1c16dd];return _0x595134;},_0x1c16(_0x2085d5,_0x502ca0);}export{f as FChart,c as FChartBuilderBase,G as LineChartBuilder,X as PieChartBuilder,$ as RadarChartBuilder};
1
+ function _0x4c69(){const _0x575dd2=['font','area','_commandService','dataPointColor','point','indicatorLabelTextColor','setPosition','pie.showLabelLine','newChart','titles.title.align','setRightYAxisTitle','config','asLineChart','This\x20api\x20only\x20works\x20in\x20the\x20active\x20sheet.','legend.label.fontSize','titles.rightYAxisTitle.color','yAxisTitle','setTheme','_workbook','position','content','sheetName','rosePie','yAxis.label.axisTitleAlign','fontStyle','titles.title.font','legend','getSheetBySheetName','Pie','getCategoryData','sourceSheetName','legend.label.italic','modify','8343666mxxGuW','allSeriesStyle.point.size','string','allSeriesStyle.point','setAbsolutePosition','with','yRightAxis','UNIVER_SHEET','pie.borderColor','fontSize','style','setRightYAxisTextStyle','1865690DYeOtJ','7HHyqrg','extend','23326408DPLnDX','allSeriesStyle','Line','titles.xAxisTitle.bold','shape','insertChart','xAxis','setShowLabelLine','setInvalidValueStrategy','fill','5073844fbtNdf','axisAlignment','allSeriesStyle.point.color','invalidValueType','titles.xAxisTitle.content','getUnitChartModels','radar.shape','setXAxisTitle','_injector','setYAxisTextStyle','xAxisTitle','rightYAxis','dataPointSize','backgroundColor','\x20not\x20found','1539540rASbsR','setFill','unitId','xAxis.label.axisTitleAlign','radar','lineStyle','setDataPointShape','titles.title.content','subUnitId','chartId','doughnutHole','area.lineStyle','pie.isHalfPie','titles.xAxisTitle.family','titles.xAxisTitle.font','titles.yAxisTitle.font','titles.rightYAxisTitle.family','titles.rightYAxisTitle.content','setIsHalfPie','setLineStyle','setTransposeRowsAndColumns','color','updateRange','setBorderColor','Radar','range','setYAxisTitle','yAxis','registerChartTheme','clearRange','width','transposeRowsAndColumns','setOptions','setShape','build','setRosePie','rightYAxisTitle','getChartModel','legend.position','indicatorLineColor','getCharts','titles.yAxisTitle.bold','getWorkbook','theme','allSeriesStyle.point.shape','isHalfPie','isRowDirection','seriesStyleMap','get','pie.hasPaddingAngle','fontColor','setWidth','setChartType','titles.yAxisTitle.content','showLabelLine','setSeriesStyle','keys','axisPointer','radar.fill','pie.doughnutHole','tooltip.indicatorLabelTextColor','dataSource','executeCommand','titles.yAxisTitle.fontSize','registerTheme','options','bold','updateChart','title','symbol','tooltip.indicatorLineColor','titles.rightYAxisTitle.bold','titles.title.family','setXAxisTextStyle','addRange','dataPointShape','2009343eJZTPC','legend.label.bold','pie','defineProperty','Sheet\x20','pie.rosePie','titles.title.fontSize','hasPaddingAngle','height','asRadarChart','titles.title.color','getSheetId','asPieChart','setDataPointColor','legend.label.color','chartType','getSeriesData','titles.rightYAxisTitle.font','1868495WqynAk','getChartType','titles.xAxisTitle.color','borderColor'];_0x4c69=function(){return _0x575dd2;};return _0x4c69();}const _0x56deed=_0x48d1;(function(_0x3fd918,_0x2b355e){const _0x38f12b=_0x48d1,_0x6b650e=_0x3fd918();while(!![]){try{const _0x396d9b=parseInt(_0x38f12b(0x1f3))/0x1+parseInt(_0x38f12b(0x179))/0x2+parseInt(_0x38f12b(0x1e1))/0x3+-parseInt(_0x38f12b(0x186))/0x4+parseInt(_0x38f12b(0x195))/0x5+parseInt(_0x38f12b(0x218))/0x6+parseInt(_0x38f12b(0x17a))/0x7*(-parseInt(_0x38f12b(0x17c))/0x8);if(_0x396d9b===_0x2b355e)break;else _0x6b650e['push'](_0x6b650e['shift']());}catch(_0x368ae9){_0x6b650e['push'](_0x6b650e['shift']());}}}(_0x4c69,0xf0922));var P=Object[_0x56deed(0x1e4)],v=(_0x38db51,_0x3e1c09,_0x5224a8)=>_0x3e1c09 in _0x38db51?P(_0x38db51,_0x3e1c09,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5224a8}):_0x38db51[_0x3e1c09]=_0x5224a8,n=(_0x54b316,_0x4e9eb9,_0x41dd8d)=>v(_0x54b316,typeof _0x4e9eb9!=_0x56deed(0x1da)?_0x4e9eb9+'':_0x4e9eb9,_0x41dd8d);import{setProperty as _0xec853f,SheetsChartService as _0x3cc55e,ChartUpdateSourceCommand as _0x3e169e,ChartUpdateConfigCommand as _0x266c1e,ChartThemeService as _0x2277d2,ChartTypeBits as _0x1262b1}from'@univerjs-pro/sheets-chart';import{InsertChartCommand as _0x2dfc8f}from'@univerjs-pro/sheets-chart-ui';import{FBase as _0x575d51,CommandService as _0x1302d6,IUniverInstanceService as _0x33c0bc,UniverInstanceType as _0x14fe24,generateRandomId as _0x133ca1,DrawingTypeEnum as _0x34621c}from'@univerjs/core';import{RemoveSheetDrawingCommand as _0x22715e}from'@univerjs/sheets-drawing-ui';import{FWorksheet as _0x4a98bf}from'@univerjs/sheets/facade';import{deserializeRangeWithSheet as _0x101d9e}from'@univerjs/engine-formula';import{IRenderManagerService as _0x56b460}from'@univerjs/engine-render';import{ISheetSelectionRenderService as _0x50045d,SheetSkeletonManagerService as _0x4b44e2,convertPositionCellToSheetOverGrid as _0xf65051}from'@univerjs/sheets-ui';const s=(_0x2f2570,_0x4ff24f,_0x1c5a27)=>{_0x1c5a27!==void 0x0&&_0xec853f(_0x2f2570,_0x4ff24f,_0x1c5a27);},C=(_0x4c9b3c,_0xd8354a,_0x2bebca,_0x4356bb={})=>{const _0x3d23e6=_0x56deed,_0x5b047b={},_0x51c952={};if(_0x4356bb[_0x3d23e6(0x1d9)]){const _0x5a8c31=_0x4356bb[_0x3d23e6(0x1d9)];s(_0x5b047b,_0x3d23e6(0x19c),_0x5a8c31[_0x3d23e6(0x20b)]),s(_0x5b047b,_0x3d23e6(0x210),_0x5a8c31[_0x3d23e6(0x1f7)]),s(_0x5b047b,_0x3d23e6(0x1e7),_0x5a8c31[_0x3d23e6(0x176)]),s(_0x5b047b,_0x3d23e6(0x1eb),_0x5a8c31[_0x3d23e6(0x1c7)]),s(_0x5b047b,_0x3d23e6(0x1dd),_0x5a8c31[_0x3d23e6(0x20f)]),s(_0x5b047b,'titles.title.bold',_0x5a8c31['bold']),s(_0x5b047b,_0x3d23e6(0x200),_0x5a8c31['titleAlignment']),s(_0x5b047b,'titles.titlePosition',_0x5a8c31[_0x3d23e6(0x20a)]);}if(_0x4356bb['legend']){const _0x1a090f=_0x4356bb[_0x3d23e6(0x211)];s(_0x5b047b,_0x3d23e6(0x1bb),_0x1a090f[_0x3d23e6(0x20a)]),s(_0x5b047b,'legend.selectMode',_0x1a090f['selectMode']),s(_0x5b047b,_0x3d23e6(0x205),_0x1a090f[_0x3d23e6(0x176)]),s(_0x5b047b,_0x3d23e6(0x1ef),_0x1a090f[_0x3d23e6(0x1aa)]),s(_0x5b047b,_0x3d23e6(0x1e2),_0x1a090f[_0x3d23e6(0x1d7)]),s(_0x5b047b,_0x3d23e6(0x216),_0x1a090f['italic']);}if(_0x4356bb[_0x3d23e6(0x1e3)]){const _0x40eeae=_0x4356bb[_0x3d23e6(0x1e3)];s(_0x5b047b,'pie.doughnutHole',_0x40eeae[_0x3d23e6(0x19f)]),s(_0x5b047b,_0x3d23e6(0x175),_0x40eeae[_0x3d23e6(0x1f6)]),s(_0x5b047b,_0x3d23e6(0x1c6),_0x40eeae[_0x3d23e6(0x1e8)]),s(_0x5b047b,_0x3d23e6(0x1a1),_0x40eeae[_0x3d23e6(0x1c2)]),s(_0x5b047b,'pie.rosePie',_0x40eeae[_0x3d23e6(0x20d)]),s(_0x5b047b,_0x3d23e6(0x1fe),_0x40eeae['showLabelLine']);}if(_0x4356bb[_0x3d23e6(0x1ce)]){const _0x15c078=_0x4356bb[_0x3d23e6(0x1ce)];s(_0x5b047b,'tooltip.indicatorLabelColor',_0x15c078['indicatorLabelColor']),s(_0x5b047b,'tooltip.indicatorLineType',_0x15c078['indicatorLineType']),s(_0x5b047b,_0x3d23e6(0x1db),_0x15c078[_0x3d23e6(0x1bc)]),s(_0x5b047b,_0x3d23e6(0x1d1),_0x15c078[_0x3d23e6(0x1fc)]);}if(_0x4356bb[_0x3d23e6(0x17d)]&&s(_0x5b047b,_0x3d23e6(0x170),_0x4356bb[_0x3d23e6(0x17d)][_0x3d23e6(0x1fb)]),_0x4356bb[_0x3d23e6(0x1f8)]&&s(_0x5b047b,'area.lineStyle',_0x4356bb[_0x3d23e6(0x1f8)]['lineStyle']),_0x4356bb[_0x3d23e6(0x1c0)]&&s(_0x5b047b,_0x3d23e6(0x1c0),_0x4356bb[_0x3d23e6(0x1c0)]),_0x4356bb['radar']&&s(_0x5b047b,_0x3d23e6(0x199),_0x4356bb['radar']),_0x4356bb[_0x3d23e6(0x190)]){const _0xb0a795=_0x4356bb[_0x3d23e6(0x190)];s(_0x5b047b,_0x3d23e6(0x18a),_0xb0a795['content']),s(_0x5b047b,_0x3d23e6(0x1a3),_0xb0a795[_0x3d23e6(0x1f7)]),s(_0x5b047b,'titles.xAxisTitle.fontSize',_0xb0a795[_0x3d23e6(0x176)]),s(_0x5b047b,_0x3d23e6(0x1f5),_0xb0a795['fontColor']),s(_0x5b047b,_0x3d23e6(0x1a2),_0xb0a795[_0x3d23e6(0x20f)]),s(_0x5b047b,_0x3d23e6(0x17f),_0xb0a795[_0x3d23e6(0x1d7)]),s(_0x5b047b,_0x3d23e6(0x198),_0xb0a795[_0x3d23e6(0x187)]);}if(_0x4356bb[_0x3d23e6(0x207)]){const _0x36fbf1=_0x4356bb[_0x3d23e6(0x207)];s(_0x5b047b,_0x3d23e6(0x1ca),_0x36fbf1[_0x3d23e6(0x20b)]),s(_0x5b047b,_0x3d23e6(0x1a4),_0x36fbf1[_0x3d23e6(0x1f7)]),s(_0x5b047b,_0x3d23e6(0x1d4),_0x36fbf1[_0x3d23e6(0x176)]),s(_0x5b047b,'titles.yAxisTitle.color',_0x36fbf1['fontColor']),s(_0x5b047b,'titles.yAxisTitle.family',_0x36fbf1[_0x3d23e6(0x20f)]),s(_0x5b047b,_0x3d23e6(0x1be),_0x36fbf1[_0x3d23e6(0x1d7)]),s(_0x5b047b,_0x3d23e6(0x20e),_0x36fbf1[_0x3d23e6(0x187)]);}if(_0x4356bb[_0x3d23e6(0x1b9)]){const _0x400940=_0x4356bb[_0x3d23e6(0x1b9)];s(_0x5b047b,_0x3d23e6(0x1a6),_0x400940['content']),s(_0x5b047b,_0x3d23e6(0x1f2),_0x400940[_0x3d23e6(0x1f7)]),s(_0x5b047b,'titles.rightYAxisTitle.fontSize',_0x400940[_0x3d23e6(0x176)]),s(_0x5b047b,_0x3d23e6(0x206),_0x400940[_0x3d23e6(0x1c7)]),s(_0x5b047b,_0x3d23e6(0x1a5),_0x400940[_0x3d23e6(0x20f)]),s(_0x5b047b,_0x3d23e6(0x1dc),_0x400940[_0x3d23e6(0x1d7)]),s(_0x5b047b,'rightYAxis.label.axisTitleAlign',_0x400940['axisAlignment']);}_0x4356bb[_0x3d23e6(0x182)]&&s(_0x5b047b,_0x3d23e6(0x182),_0x4356bb[_0x3d23e6(0x182)]),_0x4356bb[_0x3d23e6(0x1b0)]&&s(_0x5b047b,_0x3d23e6(0x1b0),_0x4356bb[_0x3d23e6(0x1b0)]),_0x4356bb['yRightAxis']&&s(_0x5b047b,_0x3d23e6(0x191),_0x4356bb[_0x3d23e6(0x173)]),_0x4356bb[_0x3d23e6(0x1c4)]&&s(_0x5b047b,_0x3d23e6(0x1c4),_0x4356bb['seriesStyleMap']);const _0x4728a6={'unitId':_0x4c9b3c,'chartModelId':_0xd8354a};let _0x4995bd=!0x1;if(_0x2bebca!==void 0x0&&(_0x4728a6[_0x3d23e6(0x1f0)]=_0x2bebca,_0x4995bd=!0x0),Object['keys'](_0x5b047b)['length']>0x0&&(_0x4728a6[_0x3d23e6(0x177)]=_0x5b047b,_0x4995bd=!0x0),Object[_0x3d23e6(0x1cd)](_0x51c952)['length']>0x0&&(_0x4728a6['context']=_0x51c952,_0x4995bd=!0x0),_0x4995bd)return _0x4728a6;};class c extends _0x575d51{constructor(_0x206893,_0x1d6d12,_0x5128c3,_0x21f6b7,_0x333289){const _0x16379a=_0x56deed;super(),n(this,_0x16379a(0x209)),n(this,_0x16379a(0x18e)),n(this,_0x16379a(0x197)),n(this,_0x16379a(0x19d)),n(this,_0x16379a(0x19e)),n(this,_0x16379a(0x1ae)),n(this,_0x16379a(0x215)),n(this,'x'),n(this,'y'),n(this,_0x16379a(0x1b3)),n(this,_0x16379a(0x1e9)),n(this,_0x16379a(0x1f0)),n(this,_0x16379a(0x1d6)),n(this,_0x16379a(0x1b4)),(this['unitId']=_0x206893,this[_0x16379a(0x19d)]=_0x1d6d12,this[_0x16379a(0x209)]=_0x5128c3,this['_injector']=_0x21f6b7,_0x333289&&(this[_0x16379a(0x19e)]=_0x333289));}[_0x56deed(0x1f4)](){const _0x149989=_0x56deed;return this[_0x149989(0x1f0)];}[_0x56deed(0x1df)](_0x2a5d5d){const _0x5d51cb=_0x56deed;if(typeof _0x2a5d5d==_0x5d51cb(0x21a)){const _0x2359b7=_0x101d9e(_0x2a5d5d);_0x2359b7[_0x5d51cb(0x20c)]&&(this[_0x5d51cb(0x215)]=_0x2359b7['sheetName']),this[_0x5d51cb(0x1ae)]=_0x2359b7[_0x5d51cb(0x1ae)];}else this['range']=_0x2a5d5d;return this;}[_0x56deed(0x1b2)](){const _0x19888a=_0x56deed;return this[_0x19888a(0x1ae)]=void 0x0,this[_0x19888a(0x215)]=void 0x0,this;}[_0x56deed(0x1fd)](_0x37a639,_0x263670,_0x4aab1c,_0x3ef896){const _0x35aebc=_0x56deed,_0x19fb31=this[_0x35aebc(0x18e)][_0x35aebc(0x1c5)](_0x56b460)['getRenderById'](this[_0x35aebc(0x197)]);if(!_0x19fb31)throw new Error(_0x35aebc(0x204));const _0x585057=_0x19fb31['with'](_0x50045d),_0x9de2cf=_0x19fb31[_0x35aebc(0x172)](_0x4b44e2),{transform:_0x41dd42}=_0xf65051(this[_0x35aebc(0x197)],this[_0x35aebc(0x19d)],{'row':_0x37a639,'column':_0x263670,'rowOffset':_0x4aab1c,'columnOffset':_0x3ef896},0x1,0x1,_0x585057,_0x9de2cf),_0x4c7bf2=_0x41dd42['top'],_0x2d4c44=_0x41dd42['left'];return this['x']=_0x2d4c44,this['y']=_0x4c7bf2,this;}[_0x56deed(0x171)](_0x241e55,_0x463323){return this['x']=_0x241e55,this['y']=_0x463323,this;}[_0x56deed(0x1c9)](_0x19c7e4){const _0x4728f5=_0x56deed;return this[_0x4728f5(0x1f0)]=_0x19c7e4,this;}[_0x56deed(0x1c8)](_0x5a2da2){const _0x112605=_0x56deed;return this[_0x112605(0x1b3)]=_0x5a2da2,this;}['setHeight'](_0x54e79d){const _0x3a2a26=_0x56deed;return this[_0x3a2a26(0x1e9)]=_0x54e79d,this;}[_0x56deed(0x1b5)](_0x4b66df,_0x5f676b){const _0x5a421c=_0x56deed;return this[_0x5a421c(0x1d6)]||(this['options']={}),_0x4b66df===''?(this[_0x5a421c(0x1d6)]={...this[_0x5a421c(0x1d6)],..._0x5f676b},this):(_0xec853f(this[_0x5a421c(0x1d6)],_0x4b66df,_0x5f676b),this);}[_0x56deed(0x1a9)](_0x413a01){return this['transposeRowsAndColumns']=_0x413a01,this;}[_0x56deed(0x208)](_0xdb00c5){const _0x4371d0=_0x56deed;return this[_0x4371d0(0x1b5)](_0x4371d0(0x1c0),_0xdb00c5),this;}[_0x56deed(0x18d)](_0x595945){const _0x5c2718=_0x56deed;var _0x36a9e6;const _0x42404a=((_0x36a9e6=this[_0x5c2718(0x1d6)])==null?void 0x0:_0x36a9e6['xAxisTitle'])||{};return _0x42404a['content']=_0x595945,this[_0x5c2718(0x1b5)](_0x5c2718(0x190),_0x42404a),this;}[_0x56deed(0x1af)](_0x49d322){const _0x3cdca8=_0x56deed;var _0x554ec9;const _0x3ba6b1=((_0x554ec9=this[_0x3cdca8(0x1d6)])==null?void 0x0:_0x554ec9[_0x3cdca8(0x207)])||{};return _0x3ba6b1['content']=_0x49d322,this[_0x3cdca8(0x1b5)](_0x3cdca8(0x207),_0x3ba6b1),this;}[_0x56deed(0x201)](_0x5147a1){const _0x3f157c=_0x56deed;var _0x5468ab;const _0x3b1537=((_0x5468ab=this[_0x3f157c(0x1d6)])==null?void 0x0:_0x5468ab[_0x3f157c(0x1b9)])||{};return _0x3b1537[_0x3f157c(0x20b)]=_0x5147a1,this[_0x3f157c(0x1b5)](_0x3f157c(0x1b9),_0x3b1537),this;}[_0x56deed(0x1de)](_0x3287d4){const _0xfe2523=_0x56deed;var _0xfac0ce;const _0x3b2e33=((_0xfac0ce=this[_0xfe2523(0x1d6)])==null?void 0x0:_0xfac0ce['xAxisTitle'])||{};return this[_0xfe2523(0x1b5)](_0xfe2523(0x190),{..._0x3b2e33,..._0x3287d4}),this;}[_0x56deed(0x18f)](_0x9d3527){const _0x59b814=_0x56deed;var _0x47a2c5;const _0x49a77c=((_0x47a2c5=this[_0x59b814(0x1d6)])==null?void 0x0:_0x47a2c5['yAxisTitle'])||{};return this['setOptions'](_0x59b814(0x207),{..._0x49a77c,..._0x9d3527}),this;}[_0x56deed(0x178)](_0x56c8f7){const _0x44810d=_0x56deed;var _0x1a280b;const _0x194854=((_0x1a280b=this[_0x44810d(0x1d6)])==null?void 0x0:_0x1a280b['rightYAxisTitle'])||{};return this[_0x44810d(0x1b5)](_0x44810d(0x1b9),{..._0x194854,..._0x56c8f7}),this;}[_0x56deed(0x184)](_0x12eb2d){const _0x51e602=_0x56deed;return this[_0x51e602(0x1b5)](_0x51e602(0x189),_0x12eb2d),this;}['setAxisPointerStyle'](_0x2122d8){const _0x127fd9=_0x56deed;return this[_0x127fd9(0x1b5)]('axisPointer',_0x2122d8),this;}['setAllSeriesStyle'](_0x2858a4){const _0x562f6a=_0x56deed;return this[_0x562f6a(0x1b5)](_0x562f6a(0x17d),_0x2858a4),this;}[_0x56deed(0x1cc)](_0x1baa8b,_0x204d40){const _0x5ee76c=_0x56deed;return this[_0x5ee76c(0x1b5)]('seriesStyleMap',{[_0x1baa8b]:_0x204d40}),this;}['build'](){const _0x3ee2d3=_0x56deed;var _0x1ecdcb;let _0x476aba=this['subUnitId'];if(this['sourceSheetName']){const _0x4f7023=(_0x1ecdcb=this[_0x3ee2d3(0x209)][_0x3ee2d3(0x212)](this['sourceSheetName']))==null?void 0x0:_0x1ecdcb['getSheetId']();if(!_0x4f7023)throw new Error(_0x3ee2d3(0x1e5)+this[_0x3ee2d3(0x215)]+_0x3ee2d3(0x194));_0x476aba=_0x4f7023;}return{'unitId':this['unitId'],'subUnitId':_0x476aba,'chartId':this[_0x3ee2d3(0x19e)],'range':this['range'],'x':this['x'],'y':this['y'],'width':this[_0x3ee2d3(0x1b3)],'height':this[_0x3ee2d3(0x1e9)],'chartType':this[_0x3ee2d3(0x1f0)],'options':this[_0x3ee2d3(0x1d6)],'isRowDirection':this['transposeRowsAndColumns']};}}class f{constructor(_0x2eda58,_0x3aae73,_0x3cfd0f,_0x5a1e08){const _0x2d0f30=_0x56deed;n(this,_0x2d0f30(0x197)),n(this,_0x2d0f30(0x19d)),n(this,_0x2d0f30(0x19e)),n(this,_0x2d0f30(0x18e)),(this[_0x2d0f30(0x197)]=_0x2eda58,this[_0x2d0f30(0x19d)]=_0x3aae73,this['chartId']=_0x3cfd0f,this[_0x2d0f30(0x18e)]=_0x5a1e08);}['getChartId'](){const _0xba2dab=_0x56deed;return this[_0xba2dab(0x19e)];}['getRange'](){const _0x5ae35a=_0x56deed,_0x3fe36b=this[_0x5ae35a(0x18e)][_0x5ae35a(0x1c5)](_0x3cc55e)[_0x5ae35a(0x1ba)](this[_0x5ae35a(0x19e)]);if(_0x3fe36b)return _0x3fe36b[_0x5ae35a(0x1d2)]['getRangeInfo']();}[_0x56deed(0x1ab)](_0x36dfb1){const _0x136d72=_0x56deed;return this[_0x136d72(0x18e)]['get'](_0x1302d6)['executeCommand'](_0x3e169e['id'],{'unitId':this[_0x136d72(0x197)],'chartModelId':this['chartId'],'range':_0x36dfb1});}[_0x56deed(0x1f1)](){const _0x52d2ef=_0x56deed;var _0x29d62c;const _0x15a81b=this[_0x52d2ef(0x18e)][_0x52d2ef(0x1c5)](_0x3cc55e)[_0x52d2ef(0x1ba)](this['chartId']);if(_0x15a81b)return(_0x29d62c=_0x15a81b[_0x52d2ef(0x202)])==null?void 0x0:_0x29d62c['series'];}[_0x56deed(0x214)](){const _0x427d57=_0x56deed;var _0x51798f;const _0x4d9595=this[_0x427d57(0x18e)]['get'](_0x3cc55e)[_0x427d57(0x1ba)](this['chartId']);if(_0x4d9595)return(_0x51798f=_0x4d9595['config'])==null?void 0x0:_0x51798f['category'];}[_0x56deed(0x217)](){const _0x2034a9=_0x56deed,_0x3f28f2=this[_0x2034a9(0x18e)][_0x2034a9(0x1c5)](_0x33c0bc)['getCurrentUnitForType'](_0x14fe24[_0x2034a9(0x174)]);return new c(this[_0x2034a9(0x197)],this[_0x2034a9(0x19d)],_0x3f28f2,this[_0x2034a9(0x18e)],this[_0x2034a9(0x19e)]);}}class B extends _0x4a98bf{async[_0x56deed(0x181)](_0x3d3d02){const _0x19b7fe=_0x56deed;var _0x4148af,_0x2d87e0,_0x4ea475;const _0x3d3140=_0x3d3d02['unitId']||this['getWorkbook']()['getUnitId'](),_0x2cc925=_0x3d3d02['subUnitId']||this['getSheetId'](),_0x1006f1=_0x3d3d02['chartId']||_0x133ca1(),_0x2fec85=_0x3d3d02[_0x19b7fe(0x1f0)],_0x1fba26=_0x3d3d02[_0x19b7fe(0x1ae)],_0x589716={'x':_0x3d3d02['x'],'y':_0x3d3d02['y']},_0x3eddb3=_0x3d3d02['width'],_0x127fe6=_0x3d3d02['height'],_0x518b5a=(_0x4148af=_0x3d3d02[_0x19b7fe(0x1d6)])==null?void 0x0:_0x4148af[_0x19b7fe(0x193)],_0x509142=(_0x2d87e0=_0x3d3d02[_0x19b7fe(0x1d6)])==null?void 0x0:_0x2d87e0[_0x19b7fe(0x1f6)],_0x3207b9=C(_0x3d3140,_0x1006f1,_0x2fec85,_0x3d3d02[_0x19b7fe(0x1d6)]),_0x34ee81=(_0x4ea475=_0x3d3d02[_0x19b7fe(0x1c3)])!=null?_0x4ea475:!0x0;if(!_0x1fba26)throw new Error('Range\x20is\x20required\x20to\x20insert\x20a\x20chart');return await this['_commandService']['executeCommand'](_0x2dfc8f['id'],{'unitId':_0x3d3140,'subUnitId':_0x2cc925,'chartId':_0x1006f1,'chartType':_0x2fec85,'range':_0x1fba26,'position':_0x589716,'width':_0x3eddb3,'height':_0x127fe6,'backgroundColor':_0x518b5a,'borderColor':_0x509142,'config':_0x3207b9,'isRowDirection':_0x34ee81}),new f(_0x3d3140,_0x2cc925,_0x1006f1,this[_0x19b7fe(0x18e)]);}[_0x56deed(0x1d8)](_0x12b330){const _0xd8ad9e=_0x56deed,{unitId:_0x3b8d1b,chartId:_0x2dabca,chartType:_0x2ff118,options:_0x4e3647}=_0x12b330,_0x5c5a08=C(_0x3b8d1b,_0x2dabca,_0x2ff118,_0x4e3647);this[_0xd8ad9e(0x1f9)]['executeCommand'](_0x266c1e['id'],_0x5c5a08);}[_0x56deed(0x1ff)](_0x508184){const _0x956614=_0x56deed;if(_0x508184)return new c(_0x508184[_0x956614(0x197)],_0x508184[_0x956614(0x19d)],this[_0x956614(0x209)],this[_0x956614(0x18e)],_0x508184[_0x956614(0x19e)]);const _0x3512c0=this[_0x956614(0x1bf)]()['getUnitId'](),_0x103a28=this[_0x956614(0x1ec)]();return new c(_0x3512c0,_0x103a28,this['_workbook'],this[_0x956614(0x18e)]);}[_0x56deed(0x1bd)](){const _0x213f1b=_0x56deed,_0x1f63d5=this[_0x213f1b(0x18e)][_0x213f1b(0x1c5)](_0x3cc55e),_0x3888d5=this['getWorkbook']()['getUnitId']();return _0x1f63d5[_0x213f1b(0x18b)](_0x3888d5,this[_0x213f1b(0x1ec)]())['map'](_0x4dd2e7=>new f(_0x3888d5,this[_0x213f1b(0x1ec)](),_0x4dd2e7['id'],this[_0x213f1b(0x18e)]));}['removeChart'](_0x5f09f){const _0x3d0352=_0x56deed,_0x4e627e=_0x5f09f[_0x3d0352(0x197)],_0x361813=_0x5f09f['subUnitId'],_0x4f9ca5=_0x5f09f['chartId'],_0x618ced={'unitId':_0x4e627e,'drawings':[{'unitId':_0x4e627e,'subUnitId':_0x361813,'drawingId':_0x4f9ca5,'drawingType':_0x34621c['DRAWING_CHART']}]};return this['_commandService'][_0x3d0352(0x1d3)](_0x22715e['id'],_0x618ced);}[_0x56deed(0x1b1)](_0x254743,_0x22fe67){const _0x59cbc8=_0x56deed;this[_0x59cbc8(0x18e)][_0x59cbc8(0x1c5)](_0x2277d2)[_0x59cbc8(0x1d5)](_0x254743,_0x22fe67);}}_0x4a98bf[_0x56deed(0x17b)](B);function _0x48d1(_0x379b6d,_0x1cd3ea){const _0x4c69b4=_0x4c69();return _0x48d1=function(_0x48d1c4,_0x56e9c9){_0x48d1c4=_0x48d1c4-0x170;let _0x2a42f5=_0x4c69b4[_0x48d1c4];return _0x2a42f5;},_0x48d1(_0x379b6d,_0x1cd3ea);}class G extends c{constructor(_0x442205,_0xbf9fe2,_0x2c0873,_0x1e0a3d,_0x5c54be){const _0x2f1a5f=_0x56deed;super(_0x442205,_0xbf9fe2,_0x2c0873,_0x1e0a3d,_0x5c54be),n(this,'lineStyle'),n(this,_0x2f1a5f(0x1e0)),n(this,'dataPointColor'),n(this,_0x2f1a5f(0x192));}[_0x56deed(0x1a8)](_0x5f33b7){const _0x30489f=_0x56deed;return this[_0x30489f(0x19a)]=_0x5f33b7,this;}[_0x56deed(0x19b)](_0x39c64c){return this['dataPointShape']=_0x39c64c,this;}[_0x56deed(0x1ee)](_0x2f869b){return this['dataPointColor']=_0x2f869b,this;}['setDataPointSize'](_0x1115e8){const _0x143412=_0x56deed;return this[_0x143412(0x192)]=_0x1115e8,this;}[_0x56deed(0x1b7)](){const _0x54de73=_0x56deed,_0x37e465=super[_0x54de73(0x1b7)]();_0x37e465['chartType']=_0x1262b1[_0x54de73(0x17e)];const _0x3abe5e=_0x37e465[_0x54de73(0x1d6)]||{};return s(_0x3abe5e,_0x54de73(0x1a0),this[_0x54de73(0x19a)]),s(_0x3abe5e,_0x54de73(0x1c1),this[_0x54de73(0x1e0)]),s(_0x3abe5e,_0x54de73(0x188),this[_0x54de73(0x1fa)]),s(_0x3abe5e,_0x54de73(0x219),this[_0x54de73(0x192)]),_0x37e465[_0x54de73(0x1d6)]=_0x3abe5e,_0x37e465;}}class V extends c{[_0x56deed(0x203)](){const _0x28f8e3=_0x56deed;return new G(this['unitId'],this[_0x28f8e3(0x19d)],this[_0x28f8e3(0x209)],this[_0x28f8e3(0x18e)],this[_0x28f8e3(0x19e)]);}}c[_0x56deed(0x17b)](V);class X extends c{constructor(_0x48eb9e,_0x1ad1cd,_0x249960,_0x5be939,_0x322d5a){const _0x2bb9cb=_0x56deed;super(_0x48eb9e,_0x1ad1cd,_0x249960,_0x5be939,_0x322d5a),n(this,_0x2bb9cb(0x19f)),n(this,_0x2bb9cb(0x1f6)),n(this,'hasPaddingAngle'),n(this,_0x2bb9cb(0x1c2)),n(this,_0x2bb9cb(0x20d)),n(this,_0x2bb9cb(0x1cb));}['setDoughnutHole'](_0x1907ab){return this['doughnutHole']=_0x1907ab,this;}[_0x56deed(0x1ac)](_0x36744e){return this['borderColor']=_0x36744e,this;}['setHasPaddingAngle'](_0x5c5ed9){return this['hasPaddingAngle']=_0x5c5ed9,this;}[_0x56deed(0x1a7)](_0x23a921){const _0x35ecdc=_0x56deed;return this[_0x35ecdc(0x1c2)]=_0x23a921,this;}[_0x56deed(0x1b8)](_0x395fff){const _0x144fc2=_0x56deed;return this[_0x144fc2(0x20d)]=_0x395fff,this;}[_0x56deed(0x183)](_0x4f07fc){return this['showLabelLine']=_0x4f07fc,this;}[_0x56deed(0x1b7)](){const _0x165c6c=_0x56deed,_0xc70cc5=super[_0x165c6c(0x1b7)]();_0xc70cc5[_0x165c6c(0x1f0)]=_0x1262b1[_0x165c6c(0x213)];const _0x3363f5=_0xc70cc5[_0x165c6c(0x1d6)]||{};return s(_0x3363f5,_0x165c6c(0x1d0),this[_0x165c6c(0x19f)]),s(_0x3363f5,_0x165c6c(0x175),this[_0x165c6c(0x1f6)]),s(_0x3363f5,'pie.hasPaddingAngle',this[_0x165c6c(0x1e8)]),s(_0x3363f5,'pie.isHalfPie',this[_0x165c6c(0x1c2)]),s(_0x3363f5,_0x165c6c(0x1e6),this['rosePie']),s(_0x3363f5,_0x165c6c(0x1fe),this['showLabelLine']),_0xc70cc5[_0x165c6c(0x1d6)]=_0x3363f5,_0xc70cc5;}}class q extends c{[_0x56deed(0x1ed)](){const _0x439257=_0x56deed;return new X(this[_0x439257(0x197)],this['subUnitId'],this[_0x439257(0x209)],this[_0x439257(0x18e)],this[_0x439257(0x19e)]);}}c[_0x56deed(0x17b)](q);class $ extends c{constructor(_0x30bcf1,_0x1a30fc,_0x42b8c9,_0x4007da,_0x2241b2){const _0x19beeb=_0x56deed;super(_0x30bcf1,_0x1a30fc,_0x42b8c9,_0x4007da,_0x2241b2),n(this,_0x19beeb(0x180)),n(this,_0x19beeb(0x185));}[_0x56deed(0x1b6)](_0x42d500){return this['shape']=_0x42d500,this;}[_0x56deed(0x196)](_0x4dde42){const _0x51fc51=_0x56deed;return this[_0x51fc51(0x185)]=_0x4dde42,this;}[_0x56deed(0x1b7)](){const _0x4784f0=_0x56deed,_0x3b5e8f=super[_0x4784f0(0x1b7)]();_0x3b5e8f[_0x4784f0(0x1f0)]=_0x1262b1[_0x4784f0(0x1ad)];const _0x37d992=_0x3b5e8f[_0x4784f0(0x1d6)]||{};return s(_0x37d992,_0x4784f0(0x18c),this['shape']),s(_0x37d992,_0x4784f0(0x1cf),this['fill']),_0x3b5e8f['options']=_0x37d992,_0x3b5e8f;}}class J extends c{[_0x56deed(0x1ea)](){const _0x381ee9=_0x56deed;return new $(this[_0x381ee9(0x197)],this[_0x381ee9(0x19d)],this[_0x381ee9(0x209)],this['_injector'],this[_0x381ee9(0x19e)]);}}c[_0x56deed(0x17b)](J);export{f as FChart,c as FChartBuilderBase,G as LineChartBuilder,X as PieChartBuilder,$ as RadarChartBuilder};