@univerjs-pro/sheets-chart 1.0.0-beta.0 → 1.0.0-beta.2

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.
Files changed (106) hide show
  1. package/lib/cjs/facade.js +1 -1
  2. package/lib/cjs/index.js +1 -1
  3. package/lib/cjs/locale/ar-SA.js +1 -1
  4. package/lib/cjs/locale/ca-ES.js +1 -1
  5. package/lib/cjs/locale/de-DE.js +1 -1
  6. package/lib/cjs/locale/en-US.js +1 -1
  7. package/lib/cjs/locale/es-ES.js +1 -1
  8. package/lib/cjs/locale/fa-IR.js +1 -1
  9. package/lib/cjs/locale/fr-FR.js +1 -1
  10. package/lib/cjs/locale/id-ID.js +1 -1
  11. package/lib/cjs/locale/it-IT.js +1 -1
  12. package/lib/cjs/locale/ja-JP.js +1 -1
  13. package/lib/cjs/locale/ko-KR.js +1 -1
  14. package/lib/cjs/locale/pl-PL.js +1 -1
  15. package/lib/cjs/locale/pt-BR.js +1 -1
  16. package/lib/cjs/locale/ru-RU.js +1 -1
  17. package/lib/cjs/locale/sk-SK.js +1 -1
  18. package/lib/cjs/locale/vi-VN.js +1 -1
  19. package/lib/cjs/locale/zh-CN.js +1 -1
  20. package/lib/cjs/locale/zh-HK.js +1 -1
  21. package/lib/cjs/locale/zh-TW.js +1 -1
  22. package/lib/es/facade.js +1 -1
  23. package/lib/es/index.js +1 -1
  24. package/lib/es/locale/ar-SA.js +1 -1
  25. package/lib/es/locale/ca-ES.js +1 -1
  26. package/lib/es/locale/de-DE.js +1 -1
  27. package/lib/es/locale/en-US.js +1 -1
  28. package/lib/es/locale/es-ES.js +1 -1
  29. package/lib/es/locale/fa-IR.js +1 -1
  30. package/lib/es/locale/fr-FR.js +1 -1
  31. package/lib/es/locale/id-ID.js +1 -1
  32. package/lib/es/locale/it-IT.js +1 -1
  33. package/lib/es/locale/ja-JP.js +1 -1
  34. package/lib/es/locale/ko-KR.js +1 -1
  35. package/lib/es/locale/pl-PL.js +1 -1
  36. package/lib/es/locale/pt-BR.js +1 -1
  37. package/lib/es/locale/ru-RU.js +1 -1
  38. package/lib/es/locale/sk-SK.js +1 -1
  39. package/lib/es/locale/vi-VN.js +1 -1
  40. package/lib/es/locale/zh-CN.js +1 -1
  41. package/lib/es/locale/zh-HK.js +1 -1
  42. package/lib/es/locale/zh-TW.js +1 -1
  43. package/lib/facade.js +1 -1
  44. package/lib/index.js +1 -1
  45. package/lib/locale/ar-SA.js +1 -1
  46. package/lib/locale/ca-ES.js +1 -1
  47. package/lib/locale/de-DE.js +1 -1
  48. package/lib/locale/en-US.js +1 -1
  49. package/lib/locale/es-ES.js +1 -1
  50. package/lib/locale/fa-IR.js +1 -1
  51. package/lib/locale/fr-FR.js +1 -1
  52. package/lib/locale/id-ID.js +1 -1
  53. package/lib/locale/it-IT.js +1 -1
  54. package/lib/locale/ja-JP.js +1 -1
  55. package/lib/locale/ko-KR.js +1 -1
  56. package/lib/locale/pl-PL.js +1 -1
  57. package/lib/locale/pt-BR.js +1 -1
  58. package/lib/locale/ru-RU.js +1 -1
  59. package/lib/locale/sk-SK.js +1 -1
  60. package/lib/locale/vi-VN.js +1 -1
  61. package/lib/locale/zh-CN.js +1 -1
  62. package/lib/locale/zh-HK.js +1 -1
  63. package/lib/locale/zh-TW.js +1 -1
  64. package/lib/types/chart-builder/{sheet-chart-builder-adapter.d.ts → sheet-chart-config-adapter.d.ts} +17 -8
  65. package/lib/types/chart-builder/types.d.ts +5 -1
  66. package/lib/types/chart-source/category-span-projection.d.ts +10 -0
  67. package/lib/types/chart-source/chart-source.d.ts +5 -13
  68. package/lib/types/chart-source/initial-chart-context.d.ts +7 -0
  69. package/lib/types/chart-source/source-util.d.ts +5 -1
  70. package/lib/types/commands/chart-persisted-context.d.ts +1 -1
  71. package/lib/types/common/util.d.ts +0 -1
  72. package/lib/types/config/config.d.ts +2 -0
  73. package/lib/types/facade/f-enum.d.ts +27 -0
  74. package/lib/types/facade/f-worksheet.d.ts +134 -0
  75. package/lib/types/facade/index.d.ts +3 -3
  76. package/lib/types/index.d.ts +4 -6
  77. package/lib/types/services/chart-model.service.d.ts +1 -0
  78. package/lib/types/services/sheets-chart.service.d.ts +4 -0
  79. package/lib/umd/facade.js +1 -1
  80. package/lib/umd/index.js +1 -1
  81. package/lib/umd/locale/ar-SA.js +1 -1
  82. package/lib/umd/locale/ca-ES.js +1 -1
  83. package/lib/umd/locale/de-DE.js +1 -1
  84. package/lib/umd/locale/en-US.js +1 -1
  85. package/lib/umd/locale/es-ES.js +1 -1
  86. package/lib/umd/locale/fa-IR.js +1 -1
  87. package/lib/umd/locale/fr-FR.js +1 -1
  88. package/lib/umd/locale/id-ID.js +1 -1
  89. package/lib/umd/locale/it-IT.js +1 -1
  90. package/lib/umd/locale/ja-JP.js +1 -1
  91. package/lib/umd/locale/ko-KR.js +1 -1
  92. package/lib/umd/locale/pl-PL.js +1 -1
  93. package/lib/umd/locale/pt-BR.js +1 -1
  94. package/lib/umd/locale/ru-RU.js +1 -1
  95. package/lib/umd/locale/sk-SK.js +1 -1
  96. package/lib/umd/locale/vi-VN.js +1 -1
  97. package/lib/umd/locale/zh-CN.js +1 -1
  98. package/lib/umd/locale/zh-HK.js +1 -1
  99. package/lib/umd/locale/zh-TW.js +1 -1
  100. package/package.json +11 -10
  101. package/lib/types/chart-builder/sheet-chart-builder.d.ts +0 -17
  102. package/lib/types/chart-builder/sheet-chart-create-spec.d.ts +0 -6
  103. package/lib/types/facade/chart/f-sheet-chart-builder.d.ts +0 -83
  104. package/lib/types/facade/chart/f-sheet-charts.d.ts +0 -100
  105. package/lib/types/facade/chart/sheet-chart-command-adapter.d.ts +0 -13
  106. package/lib/types/facade/f-worksheet-charts.d.ts +0 -12
package/lib/umd/facade.js CHANGED
@@ -1 +1 @@
1
- function _0x924e(_0x4145b8,_0x1d398f){_0x4145b8=_0x4145b8-0x184;const _0x279b73=_0x279b();let _0x924e44=_0x279b73[_0x4145b8];return _0x924e44;}function _0x279b(){const _0x587e45=['toSheetChartCreateSpec','FChartBuilderBase','getSeriesData','getRange','constructor','string','toChartModelConfig','getRangeInfo','UniverCore','function','getChartBuilderConstructor','rejectCommit','Module','iterator','385mhSElQ','map','call','category','chartId','Error','InsertChartCommand','UniverSheetsDrawing','Sheet\x20chart\x20source\x20is\x20required\x20before\x20insert().','mapping','ChartSourceOrientation','prototype','RemoveSheetDrawingCommand','_worksheet','Invalid\x20Sheet\x20chart\x20source.','describe','ChartThemeService','UniverSheetsFacade','width','setLayout','ICommandService','theme','Failed\x20to\x20create\x20Sheet\x20chart.','resolveSourceSeries','charts','getSubUnitId','resolveSource','toPrimitive','@univerjs/core/facade','join','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','registerTheme','638058kiBIAO','_sourceContext','FSheetCharts','getCategoryData','@univerjs/core','getUnitId','get','create','@univerjs-pro/engine-chart','DataOrientation','DrawingTypeEnum','unitId','setSource','symbol','109bicivO','DRAWING_CHART','getChartModel','getChartSuggestion','updateRange','defineProperty','UniverProSheetsChart','getId','dataAggregation','getUnitChartModels','UniverProEngineChart','remove','severity','410vXnrIg','Insert\x20the\x20Sheet\x20chart\x20before\x20calling\x20commit().','object','source','SheetChartBuilder','default','DetachedChartBuilderAdapter','generateRandomId','extend','UniverCoreFacade','getSheetId','4202vYRHnZ','chartTypeToBits','series','33464iRTZCQ','getChartBuilderPendingConfig','1139035fshJAt','subUnitId','637494ljORlH','Range','setAbsolutePosition','_injector','size','SheetChartBuilderAdapter','context','exportImage','getInject','_wrap','34920GYHKaP','type','FEnum','getWorkbook','list','SheetsChartService','ranges','config','executeCommand','getSource','509744ZHIYqA','FWorksheet','@univerjs/sheets/facade','some','_sheetBuilder','toStringTag','@univerjs-pro/engine-chart/facade','setSize','FChartsBase','_commands'];_0x279b=function(){return _0x587e45;};return _0x279b();}(function(_0x519646,_0x489108){const _0x17e79f=_0x924e,_0x3205a9=_0x519646();while(!![]){try{const _0x1d1ebd=parseInt(_0x17e79f(0x1d4))/0x1*(parseInt(_0x17e79f(0x1ec))/0x2)+parseInt(_0x17e79f(0x1f3))/0x3+-parseInt(_0x17e79f(0x18e))/0x4+-parseInt(_0x17e79f(0x1f1))/0x5+parseInt(_0x17e79f(0x1c6))/0x6+-parseInt(_0x17e79f(0x1a6))/0x7*(parseInt(_0x17e79f(0x1ef))/0x8)+parseInt(_0x17e79f(0x184))/0x9*(parseInt(_0x17e79f(0x1e1))/0xa);if(_0x1d1ebd===_0x489108)break;else _0x3205a9['push'](_0x3205a9['shift']());}catch(_0x1445f4){_0x3205a9['push'](_0x3205a9['shift']());}}}(_0x279b,0x1db16),function(_0x420410,_0x23fc85){const _0x3ba952=_0x924e;typeof exports==_0x3ba952(0x1e3)&&typeof module<'u'?_0x23fc85(exports,require('@univerjs/sheets/facade'),require('@univerjs-pro/engine-chart'),require('@univerjs-pro/engine-chart/facade'),require('@univerjs-pro/sheets-chart'),require('@univerjs/core'),require('@univerjs/sheets-drawing'),require('@univerjs/core/facade')):typeof define==_0x3ba952(0x1a1)&&define['amd']?define(['exports',_0x3ba952(0x190),_0x3ba952(0x1ce),_0x3ba952(0x194),'@univerjs-pro/sheets-chart',_0x3ba952(0x1ca),'@univerjs/sheets-drawing',_0x3ba952(0x1c2)],_0x23fc85):(_0x420410=typeof globalThis<'u'?globalThis:_0x420410||self,_0x23fc85(_0x420410['UniverProSheetsChartFacade']={},_0x420410[_0x3ba952(0x1b7)],_0x420410[_0x3ba952(0x1de)],_0x420410['UniverProEngineChartFacade'],_0x420410[_0x3ba952(0x1da)],_0x420410[_0x3ba952(0x1a0)],_0x420410[_0x3ba952(0x1ad)],_0x420410[_0x3ba952(0x1ea)]));}(this,function(_0x1d7a7a,_0x4eac2c,_0x369936,_0x13b7ad,_0x37f5b2,_0x3164d4,_0x44c818,_0x4d240a){const _0x5577d2=_0x924e;Object[_0x5577d2(0x1d9)](_0x1d7a7a,Symbol[_0x5577d2(0x193)],{'value':_0x5577d2(0x1a4)});function _0xadb2df(_0x28ac81){const _0xaac8bb=_0x5577d2;return class extends _0x28ac81{get[_0xaac8bb(0x192)](){return this['_builder'];}[_0xaac8bb(0x1d2)](_0x3b8237){const _0x8714b=_0xaac8bb;return this[_0x8714b(0x192)]['setSource'](_0x3b8237),this;}[_0xaac8bb(0x18d)](){const _0x1b0897=_0xaac8bb;return this[_0x1b0897(0x192)]['getSource']();}['setPosition'](_0x4a8bb9){const _0x2eb074=_0xaac8bb;return this['_sheetBuilder'][_0x2eb074(0x1b9)]({'anchor':_0x4a8bb9}),this;}[_0xaac8bb(0x1f5)](_0x5342ce,_0x1a0b62){const _0x577676=_0xaac8bb;return this[_0x577676(0x192)][_0x577676(0x1b9)]({'position':{'x':_0x5342ce,'y':_0x1a0b62}}),this;}[_0xaac8bb(0x195)](_0x35279d,_0x1272a8){const _0x123607=_0xaac8bb;return this[_0x123607(0x192)][_0x123607(0x1b9)]({'size':{'width':_0x35279d,'height':_0x1272a8}}),this;}};}let _0x3c9fdb=new _0x13b7ad['HostBuilderComposer'](_0x27ec9c=>_0xadb2df(_0x27ec9c));var _0x4cd11f=class{constructor(_0x1487b1,_0x22553a,_0x558979,_0x4fa31c){const _0x18f488=_0x5577d2;this[_0x18f488(0x1d1)]=_0x1487b1,this['subUnitId']=_0x22553a,this[_0x18f488(0x1aa)]=_0x558979,this[_0x18f488(0x1f6)]=_0x4fa31c;}['getChartId'](){const _0x2620f6=_0x5577d2;return this[_0x2620f6(0x1aa)];}[_0x5577d2(0x1db)](){const _0x4a3c78=_0x5577d2;return this[_0x4a3c78(0x1aa)];}[_0x5577d2(0x19b)](){const _0x3b4f30=_0x5577d2;var _0x2e6afe;return(_0x2e6afe=this['_injector'][_0x3b4f30(0x1cc)](_0x37f5b2['SheetsChartService'])['getChartModel'](this[_0x3b4f30(0x1aa)]))==null?void 0x0:_0x2e6afe['dataSource'][_0x3b4f30(0x19f)]();}[_0x5577d2(0x1d8)](_0x41271b){const _0x169e4a=_0x5577d2;return this[_0x169e4a(0x1f6)][_0x169e4a(0x1cc)](_0x3164d4[_0x169e4a(0x1ba)])[_0x169e4a(0x18c)](_0x37f5b2['ChartUpdateSourceCommand']['id'],{'unitId':this[_0x169e4a(0x1d1)],'chartModelId':this[_0x169e4a(0x1aa)],'range':_0x41271b});}[_0x5577d2(0x19a)](){const _0x1738f6=_0x5577d2;var _0x14aab1;return(_0x14aab1=this[_0x1738f6(0x1f6)][_0x1738f6(0x1cc)](_0x37f5b2['SheetsChartService'])['getChartModel'](this[_0x1738f6(0x1aa)]))==null||(_0x14aab1=_0x14aab1[_0x1738f6(0x18b)])==null?void 0x0:_0x14aab1[_0x1738f6(0x1ee)];}[_0x5577d2(0x1c9)](){const _0xb9fb1=_0x5577d2;var _0x2dd225;return(_0x2dd225=this['_injector'][_0xb9fb1(0x1cc)](_0x37f5b2['SheetsChartService'])['getChartModel'](this[_0xb9fb1(0x1aa)]))==null||(_0x2dd225=_0x2dd225['config'])==null?void 0x0:_0x2dd225[_0xb9fb1(0x1a9)];}async[_0x5577d2(0x1fa)](_0x23daa3){const _0x31c4d3=_0x5577d2;return new _0x37f5b2[(_0x31c4d3(0x1f8))]({'unitId':this['unitId'],'subUnitId':this[_0x31c4d3(0x1f2)],'chartId':this[_0x31c4d3(0x1aa)],'injector':this[_0x31c4d3(0x1f6)]})['exportImage'](_0x23daa3);}['remove'](){const _0x6e318d=_0x5577d2;return this[_0x6e318d(0x1f6)][_0x6e318d(0x1cc)](_0x3164d4[_0x6e318d(0x1ba)])['executeCommand'](_0x44c818['RemoveSheetDrawingCommand']['id'],{'unitId':this[_0x6e318d(0x1d1)],'drawings':[{'unitId':this['unitId'],'subUnitId':this[_0x6e318d(0x1f2)],'drawingId':this[_0x6e318d(0x1aa)],'drawingType':_0x3164d4[_0x6e318d(0x1d0)][_0x6e318d(0x1d5)]}]});}},_0xa665c7=class{constructor(_0x16b59a){const _0x8ab7ea=_0x5577d2;this[_0x8ab7ea(0x1b3)]=_0x16b59a;}async[_0x5577d2(0x1cd)](_0x4eebc2){const _0x392b12=_0x5577d2;var _0x11ad97,_0x5c9a0a,_0x341e57;let _0x44c328=this[_0x392b12(0x1c7)](),_0x59537e=[],_0x896e32=(0x0,_0x37f5b2['resolveSourceSpec'])(_0x4eebc2[_0x392b12(0x1e4)],_0x44c328,_0x59537e);if(!_0x896e32||_0x59537e[_0x392b12(0x191)](_0x44cbcd=>_0x44cbcd[_0x392b12(0x1e0)]===_0x37f5b2['ChartDiagnosticSeverity'][_0x392b12(0x1ab)]))throw Error(_0x59537e[_0x392b12(0x1a7)](_0x1fee6c=>_0x1fee6c['message'])[_0x392b12(0x1c3)](';\x20')||_0x392b12(0x1b4));let _0x19c4bb=(0x0,_0x3164d4[_0x392b12(0x1e8)])(),_0x7536cc=(0x0,_0x369936[_0x392b12(0x19e)])(_0x4eebc2,{'series':(0x0,_0x37f5b2[_0x392b12(0x1bd)])(_0x896e32,_0x44c328,((_0x11ad97=_0x4eebc2[_0x392b12(0x1af)])==null?void 0x0:_0x11ad97['categoryIndex'])??0x0)}),_0x399cae=(0x0,_0x37f5b2['resolveInitialChartPosition'])({'unitId':_0x44c328['unitId'],'subUnitId':_0x44c328[_0x392b12(0x1f2)],'injector':this[_0x392b12(0x1b3)][_0x392b12(0x1fb)]()},_0x4eebc2,_0x59537e),_0x4fc10e={'unitId':_0x44c328['unitId'],'subUnitId':_0x44c328[_0x392b12(0x1f2)],'chartId':_0x19c4bb,'chartType':(0x0,_0x369936[_0x392b12(0x1ed)])(_0x4eebc2[_0x392b12(0x185)]),'source':_0x896e32['kind']===_0x37f5b2['ChartSourceKind'][_0x392b12(0x1f4)]?_0x896e32['rangeInfo']:_0x896e32[_0x392b12(0x18a)],'position':_0x399cae,'width':(_0x5c9a0a=_0x4eebc2[_0x392b12(0x1f7)])==null?void 0x0:_0x5c9a0a[_0x392b12(0x1b8)],'height':(_0x341e57=_0x4eebc2[_0x392b12(0x1f7)])==null?void 0x0:_0x341e57['height'],'theme':_0x4eebc2[_0x392b12(0x1bb)]??void 0x0,'config':{'unitId':_0x44c328[_0x392b12(0x1d1)],'chartModelId':_0x19c4bb,'style':_0x7536cc['style'],'context':_0x7536cc[_0x392b12(0x1f9)],'dataAggregation':_0x7536cc[_0x392b12(0x1dc)]}};if(!await this['_worksheet']['getInject']()[_0x392b12(0x1cc)](_0x3164d4[_0x392b12(0x1ba)])['executeCommand'](_0x37f5b2[_0x392b12(0x1ac)]['id'],_0x4fc10e))throw Error(_0x392b12(0x1bc));return new _0x4cd11f(_0x44c328[_0x392b12(0x1d1)],_0x44c328[_0x392b12(0x1f2)],_0x19c4bb,this[_0x392b12(0x1b3)][_0x392b12(0x1fb)]());}[_0x5577d2(0x1cc)](_0x49bb34){const _0x25a7c2=_0x5577d2;let {unitId:_0x200fc9,subUnitId:_0xbb7bd}=this[_0x25a7c2(0x1c7)](),_0x5cd442=this[_0x25a7c2(0x1b3)]['getInject']()[_0x25a7c2(0x1cc)](_0x37f5b2[_0x25a7c2(0x189)]);return _0x5cd442[_0x25a7c2(0x1d6)](_0x49bb34)&&_0x5cd442[_0x25a7c2(0x1bf)](_0x200fc9,_0x49bb34)===_0xbb7bd?new _0x4cd11f(_0x200fc9,_0xbb7bd,_0x49bb34,this[_0x25a7c2(0x1b3)]['getInject']()):null;}[_0x5577d2(0x188)](){const _0x12c1e8=_0x5577d2;let {unitId:_0x169dad,subUnitId:_0x4b0e55}=this[_0x12c1e8(0x1c7)]();return this[_0x12c1e8(0x1b3)][_0x12c1e8(0x1fb)]()[_0x12c1e8(0x1cc)](_0x37f5b2[_0x12c1e8(0x189)])[_0x12c1e8(0x1dd)](_0x169dad,_0x4b0e55)['filter'](Boolean)[_0x12c1e8(0x1a7)](_0x1e99c0=>new _0x4cd11f(_0x169dad,_0x4b0e55,_0x1e99c0['id'],this[_0x12c1e8(0x1b3)][_0x12c1e8(0x1fb)]()));}['remove'](_0x4befa8){const _0x3101ed=_0x5577d2;let _0x5d7add=typeof _0x4befa8==_0x3101ed(0x19d)?this['get'](_0x4befa8):_0x4befa8;return _0x5d7add?this[_0x3101ed(0x1b3)]['getInject']()['get'](_0x3164d4[_0x3101ed(0x1ba)])[_0x3101ed(0x18c)](_0x44c818[_0x3101ed(0x1b2)]['id'],{'unitId':_0x5d7add[_0x3101ed(0x1d1)],'drawings':[{'unitId':_0x5d7add[_0x3101ed(0x1d1)],'subUnitId':_0x5d7add[_0x3101ed(0x1f2)],'drawingId':_0x5d7add['chartId'],'drawingType':_0x3164d4[_0x3101ed(0x1d0)]['DRAWING_CHART']}]}):Promise['resolve'](!0x1);}['_sourceContext'](){const _0x4d793a=_0x5577d2;let _0x58a582=this[_0x4d793a(0x1b3)][_0x4d793a(0x187)](),_0x3c6fe0=this[_0x4d793a(0x1b3)][_0x4d793a(0x1fb)]()[_0x4d793a(0x1cc)](_0x37f5b2[_0x4d793a(0x189)]);return{'unitId':_0x58a582['getUnitId'](),'subUnitId':this[_0x4d793a(0x1b3)][_0x4d793a(0x1eb)](),'workbook':_0x58a582,'resolveAutoIsRowDirection':_0x2d43f1=>_0x3c6fe0[_0x4d793a(0x1d7)](_0x2d43f1)['orient']===_0x369936[_0x4d793a(0x1cf)]['Row']};}};function _0x2387af(_0x4dd1d6){'@babel/helpers - typeof';const _0x240ab5=_0x5577d2;return _0x2387af=typeof Symbol==_0x240ab5(0x1a1)&&typeof Symbol[_0x240ab5(0x1a5)]=='symbol'?function(_0x1e445c){return typeof _0x1e445c;}:function(_0x55f71d){const _0x2ea05e=_0x240ab5;return _0x55f71d&&typeof Symbol=='function'&&_0x55f71d[_0x2ea05e(0x19c)]===Symbol&&_0x55f71d!==Symbol[_0x2ea05e(0x1b1)]?_0x2ea05e(0x1d3):typeof _0x55f71d;},_0x2387af(_0x4dd1d6);}function _0x3b6b4f(_0x1b9f4f,_0x190f26){const _0x4f8ee5=_0x5577d2;if(_0x2387af(_0x1b9f4f)!=_0x4f8ee5(0x1e3)||!_0x1b9f4f)return _0x1b9f4f;var _0x5c67e6=_0x1b9f4f[Symbol[_0x4f8ee5(0x1c1)]];if(_0x5c67e6!==void 0x0){var _0x4aa8c7=_0x5c67e6[_0x4f8ee5(0x1a8)](_0x1b9f4f,_0x190f26||_0x4f8ee5(0x1e6));if(_0x2387af(_0x4aa8c7)!='object')return _0x4aa8c7;throw TypeError(_0x4f8ee5(0x1c4));}return(_0x190f26===_0x4f8ee5(0x19d)?String:Number)(_0x1b9f4f);}function _0x5d8533(_0x277c28){const _0x27ff82=_0x5577d2;var _0x30997e=_0x3b6b4f(_0x277c28,'string');return _0x2387af(_0x30997e)==_0x27ff82(0x1d3)?_0x30997e:_0x30997e+'';}function _0x46afcf(_0x45f978,_0x549f60,_0x28ea2b){return(_0x549f60=_0x5d8533(_0x549f60))in _0x45f978?Object['defineProperty'](_0x45f978,_0x549f60,{'value':_0x28ea2b,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x45f978[_0x549f60]=_0x28ea2b,_0x45f978;}var _0x260e9b=class extends _0x369936[_0x5577d2(0x1e7)]{constructor(_0x2beffb,_0x530a1f,_0x41eca4){const _0x4a5fb6=_0x5577d2;super(_0x2beffb,_0x4a5fb6(0x1e2),_0x41eca4),this['_resolveSource']=_0x530a1f;}['commitHost'](_0x55ddf1){const _0xbfece9=_0x5577d2;return this[_0xbfece9(0x1a3)]();}[_0x5577d2(0x1c0)](_0x4cc477){return this['_resolveSource'](_0x4cc477);}},_0x2f93b1=class extends _0x13b7ad[_0x5577d2(0x196)]{constructor(_0x339a78){const _0x5e62a5=_0x5577d2;super(),this[_0x5e62a5(0x1b3)]=_0x339a78,_0x46afcf(this,'_commands',void 0x0),this['_commands']=new _0xa665c7(_0x339a78);}[_0x5577d2(0x1cd)](){const _0x8b8401=_0x5577d2;let _0x2b8b36=(0x0,_0x3164d4[_0x8b8401(0x1e8)])(),_0x42e750={'id':_0x2b8b36,'type':_0x369936['DEFAULT_CHART_TYPE'],'series':{}},_0x4722eb=this[_0x8b8401(0x1b3)][_0x8b8401(0x1fb)](),_0x26c5b5=new _0x37f5b2[(_0x8b8401(0x1e5))](_0x2b8b36,_0x42e750,new _0x260e9b(_0x42e750,_0x2c5a17=>new _0x37f5b2[(_0x8b8401(0x1f8))]({'unitId':this[_0x8b8401(0x1b3)][_0x8b8401(0x187)]()[_0x8b8401(0x1cb)](),'subUnitId':this['_worksheet']['getSheetId'](),'chartId':_0x2b8b36,'injector':_0x4722eb})[_0x8b8401(0x1c0)](_0x2c5a17),_0x4722eb));return _0x3c9fdb[_0x8b8401(0x1cd)](_0x26c5b5,_0x13b7ad[_0x8b8401(0x199)]);}async['insert'](_0x52bcca){const _0x3aafc1=_0x5577d2;let _0x59d7c0=_0x52bcca['describe']();if(!_0x59d7c0['source'])throw Error(_0x3aafc1(0x1ae));let _0x4d36bc=(0x0,_0x37f5b2[_0x3aafc1(0x198)])(_0x59d7c0,(0x0,_0x13b7ad[_0x3aafc1(0x1f0)])(_0x52bcca)),_0x17ba44=await this[_0x3aafc1(0x197)][_0x3aafc1(0x1cd)](_0x4d36bc);return this[_0x3aafc1(0x1fc)](_0x17ba44);}[_0x5577d2(0x1cc)](_0x2ac220){const _0x53fc2f=_0x5577d2;let _0x75b517=this[_0x53fc2f(0x197)][_0x53fc2f(0x1cc)](_0x2ac220);return _0x75b517?this[_0x53fc2f(0x1fc)](_0x75b517):null;}['list'](){const _0xc2553f=_0x5577d2;return this['_commands'][_0xc2553f(0x188)]()[_0xc2553f(0x1a7)](_0x33ce23=>this[_0xc2553f(0x1fc)](_0x33ce23));}[_0x5577d2(0x1df)](_0x4588a6){const _0x1d76a8=_0x5577d2;return this[_0x1d76a8(0x197)][_0x1d76a8(0x1df)](typeof _0x4588a6==_0x1d76a8(0x19d)?_0x4588a6:_0x4588a6[_0x1d76a8(0x1db)]());}[_0x5577d2(0x1c5)](_0x3bc722,_0x12e8c3){const _0x340bff=_0x5577d2;this[_0x340bff(0x1b3)]['getInject']()[_0x340bff(0x1cc)](_0x369936[_0x340bff(0x1b6)])[_0x340bff(0x1c5)](_0x3bc722,_0x12e8c3);}['_wrap'](_0xf04653){const _0x47c466=_0x5577d2;let _0x179e0e=new _0x37f5b2[(_0x47c466(0x1f8))]({'unitId':_0xf04653[_0x47c466(0x1d1)],'subUnitId':_0xf04653['subUnitId'],'chartId':_0xf04653[_0x47c466(0x1aa)],'injector':this['_worksheet'][_0x47c466(0x1fb)]()}),_0xe281bf=_0x179e0e[_0x47c466(0x1b5)](),_0x10e9ca=new _0x37f5b2['SheetChartBuilder'](_0xf04653[_0x47c466(0x1db)](),_0xe281bf,_0x179e0e),_0x3a97bf=(0x0,_0x13b7ad[_0x47c466(0x1a2)])(_0xe281bf['type']);return _0x3c9fdb['create'](_0x10e9ca,_0x3a97bf);}},_0x161ced=class extends _0x4eac2c[_0x5577d2(0x18f)]{get[_0x5577d2(0x1be)](){return new _0x2f93b1(this);}};_0x4eac2c['FWorksheet']['extend'](_0x161ced);var _0x341ea5=class extends _0x4d240a[_0x5577d2(0x186)]{get['ChartSourceOrientation'](){const _0x199804=_0x5577d2;return _0x37f5b2[_0x199804(0x1b0)];}};_0x4d240a['FEnum'][_0x5577d2(0x1e9)](_0x341ea5),_0x1d7a7a[_0x5577d2(0x1c8)]=_0x2f93b1;}));
1
+ function _0x4e0b(){const _0x1af7a1=['map','defineProperty','429700OCmwQu','getChartSuggestion','FChart','ChartSourceOrientation','exports','18fqzYmq','2286298kWCRbK','SheetsChartService','Invalid\x20Sheet\x20chart\x20source.','UniverSheetsFacade','1455405GazCCu','@univerjs-pro/engine-chart','mapping','size','1303760OJnoEE','rangeInfo','extend','executeCommand','function','amd','toChartModelConfig','2975408gLkExQ','getSubUnitId','filter','Range','Error','newChart','@univerjs/core/facade','SheetChartConfigAdapter','chartId','resolveSourceSpec','join','subUnitId','getUnitChartModels','599407wCdZvy','width','840YoGtyg','type','FSheetChart','getChart','unitId','@univerjs-pro/sheets-chart','message','InsertChartCommand','14958DgBwsv','ChartSourceKind','UniverProSheetsChartFacade','get','getRangeInfo','commitHost','getInject','severity','createChartBuilder','orient','anchor','Row','categoryIndex','context','getWorkbook','height','getRange','@univerjs/core','_chartSourceContext','kind','getChartModel','UniverCoreFacade','_injector','chartTypeToBits','@univerjs-pro/engine-chart/facade','UniverCore','ChartDiagnosticSeverity','DataOrientation','createInstance','getUnitId','dataSource','@univerjs/sheets/facade','_createSheetAdapter','FEnum','setPosition','UniverProEngineChart','some','object'];_0x4e0b=function(){return _0x1af7a1;};return _0x4e0b();}function _0x82dc(_0x478eff,_0xf9af3b){_0x478eff=_0x478eff-0x134;const _0x4e0bd6=_0x4e0b();let _0x82dcaa=_0x4e0bd6[_0x478eff];return _0x82dcaa;}(function(_0x541251,_0x2988a3){const _0x2701bc=_0x82dc,_0x4bca03=_0x541251();while(!![]){try{const _0x3c6904=-parseInt(_0x2701bc(0x159))/0x1+parseInt(_0x2701bc(0x137))/0x2+parseInt(_0x2701bc(0x141))/0x3+parseInt(_0x2701bc(0x145))/0x4+-parseInt(_0x2701bc(0x15b))/0x5*(-parseInt(_0x2701bc(0x163))/0x6)+parseInt(_0x2701bc(0x13d))/0x7+parseInt(_0x2701bc(0x14c))/0x8*(-parseInt(_0x2701bc(0x13c))/0x9);if(_0x3c6904===_0x2988a3)break;else _0x4bca03['push'](_0x4bca03['shift']());}catch(_0x3cb6a1){_0x4bca03['push'](_0x4bca03['shift']());}}}(_0x4e0b,0x68848),function(_0x5f378f,_0x2b7be7){const _0x273a14=_0x82dc;typeof exports==_0x273a14(0x134)&&typeof module<'u'?_0x2b7be7(exports,require('@univerjs-pro/engine-chart'),require('@univerjs-pro/engine-chart/facade'),require('@univerjs-pro/sheets-chart'),require('@univerjs/core'),require('@univerjs/sheets/facade'),require('@univerjs/core/facade')):typeof define==_0x273a14(0x149)&&define[_0x273a14(0x14a)]?define([_0x273a14(0x13b),_0x273a14(0x142),_0x273a14(0x17b),_0x273a14(0x160),_0x273a14(0x174),_0x273a14(0x182),_0x273a14(0x152)],_0x2b7be7):(_0x5f378f=typeof globalThis<'u'?globalThis:_0x5f378f||self,_0x2b7be7(_0x5f378f[_0x273a14(0x165)]={},_0x5f378f[_0x273a14(0x186)],_0x5f378f['UniverProEngineChartFacade'],_0x5f378f['UniverProSheetsChart'],_0x5f378f[_0x273a14(0x17c)],_0x5f378f[_0x273a14(0x140)],_0x5f378f[_0x273a14(0x178)]));}(this,function(_0x299db8,_0x268741,_0x3714af,_0x5c6daf,_0x50278f,_0x16045a,_0x50b13c){const _0x49aafc=_0x82dc;Object[_0x49aafc(0x136)](_0x299db8,Symbol['toStringTag'],{'value':'Module'});var _0x73c2c2=class extends _0x3714af[_0x49aafc(0x139)]{constructor(_0x2c7e20,_0x10b5ab,_0x5ec3b2,_0x4eaace){const _0x13ecdd=_0x49aafc;super(_0x5ec3b2,()=>new _0x5c6daf[(_0x13ecdd(0x153))]({'unitId':_0x2c7e20,'subUnitId':_0x10b5ab,'chartId':_0x5ec3b2,'injector':_0x4eaace}),(_0x529360,_0x3b310c,_0x2de7d5)=>(0x0,_0x3714af[_0x13ecdd(0x16b)])({'info':_0x529360,'description':_0x3b310c,'type':_0x2de7d5,'normalizeSource':_0x39a413=>_0x39a413,'extension':({setInfo:_0x25c6dd})=>({'setPosition'(_0x45d88d){const _0x20002f=_0x13ecdd;return _0x25c6dd(_0x20002f(0x16d),_0x45d88d),this;}})}),_0x4eaace),this['unitId']=_0x2c7e20,this[_0x13ecdd(0x157)]=_0x10b5ab,this[_0x13ecdd(0x154)]=_0x5ec3b2;}[_0x49aafc(0x173)](){const _0x46e93b=_0x49aafc;var _0x53289a;return(_0x53289a=this[_0x46e93b(0x179)][_0x46e93b(0x166)](_0x5c6daf[_0x46e93b(0x13e)])[_0x46e93b(0x177)](this[_0x46e93b(0x154)]))==null?void 0x0:_0x53289a[_0x46e93b(0x181)][_0x46e93b(0x167)]();}[_0x49aafc(0x185)](_0x46f842){const _0xb91ecf=_0x49aafc;return this[_0xb91ecf(0x183)]()[_0xb91ecf(0x168)]({'layout':{'anchor':_0x46f842}}),this;}[_0x49aafc(0x183)](){const _0x4772b7=_0x49aafc;return new _0x5c6daf['SheetChartConfigAdapter']({'unitId':this[_0x4772b7(0x15f)],'subUnitId':this[_0x4772b7(0x157)],'chartId':this[_0x4772b7(0x154)],'injector':this[_0x4772b7(0x179)]});}},_0x295416=class extends _0x16045a['FWorksheet']{[_0x49aafc(0x151)](_0x586c5a){const _0x3b8c37=_0x49aafc;return(0x0,_0x3714af[_0x3b8c37(0x16b)])({'type':_0x586c5a,'injector':this[_0x3b8c37(0x179)],'commitError':'Insert\x20the\x20Sheet\x20chart\x20before\x20updating\x20it.','normalizeSource':_0x173f0d=>_0x173f0d,'createInfo':()=>({'anchor':void 0x0}),'extension':({setInfo:_0x9b2acc})=>({'setPosition'(_0x4eed94){return _0x9b2acc('anchor',_0x4eed94),this;}})});}async['insertChart'](_0x56b086){const _0x26bf48=_0x49aafc;var _0x1c8c74,_0x4e26a4,_0x2f4239;let {config:_0x37b3cc,dataSource:_0x481ea1,anchor:_0x22e582,position:_0x4b6268,size:_0x37ce35}=_0x56b086,_0xb7d3ae={..._0x37b3cc,'source':_0x481ea1,'anchor':_0x22e582,'position':_0x4b6268,'size':_0x37ce35},_0x3d9ad4=this['_chartSourceContext'](),_0x1568a2=[],_0x21aef0=(0x0,_0x5c6daf[_0x26bf48(0x155)])(_0xb7d3ae['source'],_0x3d9ad4,_0x1568a2);if(!_0x21aef0||_0x1568a2[_0x26bf48(0x187)](_0x3777cf=>_0x3777cf[_0x26bf48(0x16a)]===_0x5c6daf[_0x26bf48(0x17d)][_0x26bf48(0x150)]))throw Error(_0x1568a2[_0x26bf48(0x135)](_0x1a4c25=>_0x1a4c25[_0x26bf48(0x161)])[_0x26bf48(0x156)](';\x20')||_0x26bf48(0x13f));let _0x1eb319=(0x0,_0x50278f['generateRandomId'])(),_0xb99bdb=(0x0,_0x268741[_0x26bf48(0x14b)])(_0xb7d3ae,{'series':(0x0,_0x5c6daf['resolveSourceSeries'])(_0x21aef0,_0x3d9ad4,((_0x1c8c74=_0xb7d3ae[_0x26bf48(0x143)])==null?void 0x0:_0x1c8c74[_0x26bf48(0x16f)])??0x0)}),_0x43bc9f=(0x0,_0x5c6daf['resolveInitialChartPosition'])({'unitId':_0x3d9ad4['unitId'],'subUnitId':_0x3d9ad4[_0x26bf48(0x157)],'injector':this[_0x26bf48(0x169)]()},_0xb7d3ae,_0x1568a2),_0x27eae2={'unitId':_0x3d9ad4[_0x26bf48(0x15f)],'subUnitId':_0x3d9ad4[_0x26bf48(0x157)],'chartId':_0x1eb319,'chartType':(0x0,_0x268741[_0x26bf48(0x17a)])(_0xb7d3ae[_0x26bf48(0x15c)]),'source':_0x21aef0[_0x26bf48(0x176)]===_0x5c6daf[_0x26bf48(0x164)][_0x26bf48(0x14f)]?_0x21aef0[_0x26bf48(0x146)]:_0x21aef0['ranges'],'position':_0x43bc9f,'width':(_0x4e26a4=_0xb7d3ae[_0x26bf48(0x144)])==null?void 0x0:_0x4e26a4[_0x26bf48(0x15a)],'height':(_0x2f4239=_0xb7d3ae[_0x26bf48(0x144)])==null?void 0x0:_0x2f4239[_0x26bf48(0x172)],'theme':_0xb7d3ae['theme']??void 0x0,'config':{'unitId':_0x3d9ad4[_0x26bf48(0x15f)],'chartModelId':_0x1eb319,'style':_0xb99bdb['style'],'context':_0xb99bdb[_0x26bf48(0x170)],'dataAggregation':_0xb99bdb['dataAggregation']}};if(!await this[_0x26bf48(0x169)]()[_0x26bf48(0x166)](_0x50278f['ICommandService'])[_0x26bf48(0x148)](_0x5c6daf[_0x26bf48(0x162)]['id'],_0x27eae2))throw Error('Failed\x20to\x20create\x20Sheet\x20chart.');return this[_0x26bf48(0x179)][_0x26bf48(0x17f)](_0x73c2c2,_0x3d9ad4[_0x26bf48(0x15f)],_0x3d9ad4[_0x26bf48(0x157)],_0x1eb319,this[_0x26bf48(0x179)]);}[_0x49aafc(0x15e)](_0x40ef3f){const _0x56ac97=_0x49aafc;let {unitId:_0x1d2450,subUnitId:_0xf255f1}=this[_0x56ac97(0x175)](),_0x38a8d2=this[_0x56ac97(0x169)]()[_0x56ac97(0x166)](_0x5c6daf[_0x56ac97(0x13e)]);return _0x38a8d2['getChartModel'](_0x40ef3f)&&_0x38a8d2[_0x56ac97(0x14d)](_0x1d2450,_0x40ef3f)===_0xf255f1?this[_0x56ac97(0x179)][_0x56ac97(0x17f)](_0x73c2c2,_0x1d2450,_0xf255f1,_0x40ef3f,this[_0x56ac97(0x179)]):null;}['getCharts'](){const _0x1be968=_0x49aafc;let {unitId:_0x5cbb54,subUnitId:_0x387c89}=this[_0x1be968(0x175)]();return this[_0x1be968(0x169)]()[_0x1be968(0x166)](_0x5c6daf[_0x1be968(0x13e)])[_0x1be968(0x158)](_0x5cbb54,_0x387c89)[_0x1be968(0x14e)](Boolean)[_0x1be968(0x135)](_0x2572b8=>this[_0x1be968(0x179)][_0x1be968(0x17f)](_0x73c2c2,_0x5cbb54,_0x387c89,_0x2572b8['id'],this['_injector']));}[_0x49aafc(0x175)](){const _0x42f252=_0x49aafc;let _0x4793cb=this[_0x42f252(0x171)](),_0x19880d=this[_0x42f252(0x169)]()['get'](_0x5c6daf[_0x42f252(0x13e)]);return{'unitId':_0x4793cb[_0x42f252(0x180)](),'subUnitId':this['getSheetId'](),'workbook':_0x4793cb,'resolveAutoIsRowDirection':_0x5b2205=>_0x19880d[_0x42f252(0x138)](_0x5b2205)[_0x42f252(0x16c)]===_0x268741[_0x42f252(0x17e)][_0x42f252(0x16e)]};}};_0x16045a['FWorksheet'][_0x49aafc(0x147)](_0x295416);var _0x2358e1=class extends _0x50b13c[_0x49aafc(0x184)]{get['ChartSourceOrientation'](){const _0x127172=_0x49aafc;return _0x5c6daf[_0x127172(0x13a)];}};_0x50b13c[_0x49aafc(0x184)][_0x49aafc(0x147)](_0x2358e1),_0x299db8[_0x49aafc(0x15d)]=_0x73c2c2;}));