/*! * * Spread.Sheets Library 11.2.2 * * Copyright(c) GrapeCity, Inc. All rights reserved. * * Licensed under the SpreadJS Commercial License. * us.sales@grapecity.com * http://www.grapecity.com/en/licensing/grapecity/ * * */ !function(a){"object"==typeof module&&"object"==typeof module.exports?module.exports=a(require("@grapecity/spread-sheets")):"function"==typeof define&&define.amd?define(["@grapecity/spread-sheets"],a):"object"==typeof exports?exports.Spread=a(require("@grapecity/spread-sheets")):a(GC)}(function(a){a=a||{},a.Spread=a.Spread||{},a.Spread.Sheets=a.Spread.Sheets||{},a.Spread.Sheets.Charts=function(a){var b={};function c(d){if(b[d])return b[d].exports;var e=b[d]={exports:{},id:d,loaded:!1};return a[d].call(e.exports,e,e.exports,c),e.loaded=!0,e.exports}return c.m=a,c.c=b,c.p="/assets/",c(0)}([function(a,b,c){!function(){"use strict";c(1),c(2);var b=c(3);c(4),c(5),c(7),c(9),c(22),c(23),c(10),c(30),c(14),c(13),c(12),c(28),c(18),c(11),c(20),c(19),c(15),c(31),c(16),c(37),c(32),c(25),c(17),c(34),c(36),c(29),c(33),a.exports=b}()},function(b,c){var d,e=this&&this.__extends||function(){var a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return function(b,c){a(b,c);function d(){this.constructor=b}b.prototype=null===c?Object.create(c):(d.prototype=c.prototype,new d)}}();!function(a){"use strict";a.Sya="gcdv-flexdv",a.tSa="gcdv-header",a.uSa="gcdv-footer",a.vSa="gcdv-plotarea",a.wSa="gcdv-plot",a.xSa="gcdv-legend",a.ySa="gcdv-axis-x",a.zSa="gcdv-axis-y",a.ASa="gcdv-label",a.BSa="gcdv-title",a.CSa="gcdv-tick-major",a.DSa="gcdv-tick-minor",a.ESa="gcdv-gridline-major",a.FSa="gcdv-gridline-minor",a.GSa="gcdv-line",a.Tya=15,a.Uya="#666",a.Vya=["r"],a.Wya="black",a.kPa="VALUESNAME"}(d||(d={})),function(a){"use strict";var b=function(){function b(c,d,e){var f,g,h,i,j,k,l,m;void 0===d&&(d=null),void 0===e&&(e=!1),f=this,this.M4=!1,this.uwa=0,this.vwa=!1,this.gotFocus=new a.core.Event,this.lostFocus=new a.core.Event,a.core.assert(null==b.getControl(c),"Element is already hosting a control."),g=a.core.getElement(c),a.core.assert(null!=g,"Cannot find the host element."),this.wwa=g.outerHTML,this.xwa=g.innerHTML,this.ywa=g.tagName,"INPUT"!=g.tagName&&"SELECT"!=g.tagName||(g=this.zwa(g)),this.Awa=g,h=g,h[b.Bwa]=this,1==e&&(this.Cwa=new a.core.Size(g.offsetWidth,g.offsetHeight),i=this.Dwa.bind(this),this.addEventListener(window,"resize",i)),this.addEventListener(g,"focus",function(){setTimeout(function(){f.Ewa()})},!0),this.addEventListener(g,"blur",function(){setTimeout(function(){f.Ewa()},20)},!0),j=this.Fwa.bind(this),this.addEventListener(g,"mousedown",j,!0),this.addEventListener(g,"mouseup",j,!0),this.addEventListener(g,"click",j,!0),this.addEventListener(g,"dblclick",j,!0),this.addEventListener(g,"keydown",j,!0),this.addEventListener(g,"wheel",j,!0),null==b.Gwa&&(b.Gwa=!1,("ontouchstart"in window||"onpointerdown"in window)&&(k=document.body,l=this.Hwa,m=this.Iwa,"ontouchstart"in window?(k.addEventListener("touchstart",l),k.addEventListener("touchend",m),k.addEventListener("touchcancel",m),k.addEventListener("touchleave",m)):"onpointerdown"in window&&(k.addEventListener("pointerdown",l),k.addEventListener("pointerup",m),k.addEventListener("pointerout",m),k.addEventListener("pointercancel",m),k.addEventListener("pointerleave",m))))}return b.prototype.getTemplate=function(){var a,b;for(a=Object.getPrototypeOf(this);a;a=Object.getPrototypeOf(a))if(b=a.constructor.controlTemplate)return b;return null},b.prototype.applyTemplate=function(b,c,d,e){var f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w=this.Awa;if(b&&a.core.addClass(w,b),f=null,c&&(f=a.core.createElement(c,w)),g=w.querySelectorAll("input"),h=1==g.length?g[0]:null,i=w.attributes,h&&i)for(j=0;j2&&0==f.indexOf("on")&&(g=e[f[2].toLowerCase()+f.substr(3)],g instanceof a.core.Event&&g.removeAllHandlers());if(h=e.collectionView,h instanceof a.core.collections.CollectionView){i=h;for(f in i)g=i[f],g instanceof a.core.Event&&g.removeHandler(null,this)}this.Awa.parentNode&&(this.Awa.outerHTML=this.wwa),j=this.Awa,j[b.Bwa]=null,this.Awa=this.wwa=this.xwa=this.ywa=null},b.getControl=function(c){var d=a.core.getElement(c);return d?a.core.asType(d[b.Bwa],b,!0):null},Object.defineProperty(b.prototype,"hostElement",{get:function(){return this.Awa},enumerable:!0,configurable:!0}),b.prototype.focus=function(){this.Awa&&this.Awa.focus()},b.prototype.containsFocus=function(){var c,d,e,f,g;if(!this.Awa)return!1;for(c=this.Awa.querySelectorAll(".wj-control"),d=0;d0},enumerable:!0,configurable:!0}),b.prototype.deferUpdate=function(a){try{this.beginUpdate(),a()}finally{this.endUpdate()}},Object.defineProperty(b.prototype,"isTouching",{get:function(){return b.Gwa},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"isDisabled",{get:function(){return this.Awa&&null!=this.Awa.getAttribute("disabled")},set:function(b){b=a.core.asBoolean(b,!0),b!=this.isDisabled&&a.core.enable(this.Awa,!b)},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"disabled",{get:function(){return a.core.cwa("disabled","isDisabled"),this.isDisabled},set:function(b){a.core.cwa("disabled","isDisabled"),this.isDisabled=b},enumerable:!0,configurable:!0}),b.prototype.initialize=function(b){b&&(this.beginUpdate(),a.core.copy(this,b),this.endUpdate())},b.prototype.addEventListener=function(a,b,c,d){void 0===d&&(d=!1),a&&(a.addEventListener(b,c,d),null==this.Ze&&(this.Ze=[]),this.Ze.push({target:a,type:b,fn:c,capture:d}))},b.prototype.removeEventListener=function(a,b,c,d){var e,f,g=0;if(this.Ze)for(e=0;e0)))},b.prototype.Hwa=function(a){null!=a.pointerType&&"touch"!=a.pointerType||(b.Gwa=!0)},b.prototype.Iwa=function(a){null!=a.pointerType&&"touch"!=a.pointerType||setTimeout(function(){b.Gwa=!1},400)},b.prototype.Fwa=function(a){this.isDisabled&&(a.preventDefault(),a.stopPropagation(),a.stopImmediatePropagation())},b.prototype.zwa=function(a){var b,c,d,e=document.createElement("div");for(a.parentElement.replaceChild(e,a),e.innerHTML=a.innerHTML,b=a.attributes,c=0;cj)&&h.bw(j),(void 0===h.cw()||h.cw()k.valueOf())&&h.bw(k.valueOf()),(void 0===h.cw()||h.cw()e.valueOf())&&(h=e),f=this.VCa.T0(d[this.VCa.Cj]),null!=f&&(null==g||g.valueOf()n)&&(n=g),a.core.isNumber(g)&&!isNaN(g)?(j++,k+=g,l+=g*g):"boolean"==typeof g&&(j++,1==g&&(k++,l++)));switch(h=0==j?0:k/j,c){case b.Average:return h;case b.Count:return i;case b.Max:return n;case b.Min:return m;case b.Range:return n-m;case b.Sum:return k;case b.PopulationVariance:return j<=1?0:l/j-h*h;case b.PopulationStandardDeviation:return j<=1?0:Math.sqrt(l/j-h*h);case b.Variance:return j<=1?0:(l/j-h*h)*j/(j-1);case b.StandardDeviation:return j<=1?0:Math.sqrt((l/j-h*h)*j/(j-1))}throw"Invalid aggregate type."}a.ePa=c}(d||(d={})),function(a){"use strict";var b;!function(a){a[a.Auto=0]="Auto",a[a.Show=1]="Show"}(b=a.AxisOverlappingLabels||(a.AxisOverlappingLabels={}))}(d||(d={})),function(a){"use strict";var b;!function(a){a[a.None=0]="None",a[a.Near=1]="Near",a[a.Far=2]="Far"}(b=a.AxisPosition||(a.AxisPosition={}))}(d||(d={})),function(a){"use strict";var b;!function(a){a[a.X=0]="X",a[a.Y=1]="Y"}(b=a.AxisType||(a.AxisType={}))}(d||(d={})),function(a){"use strict";var b;!function(a){a[a.None=0]="None",a[a.Fit=1]="Fit",a[a.Clip=2]="Clip"}(b=a.ClippingMode||(a.ClippingMode={}))}(d||(d={})),function(a){"use strict";var b;!function(a){a[a.Shape=0]="Shape",a[a.Label=1]="Label",a[a.Legend=2]="Legend",a[a.LegendItem=3]="LegendItem",a[a.Axis=4]="Axis",a[a.Plot=5]="Plot",a[a.Header=6]="Header",a[a.Footter=7]="Footter",a[a.Series=8]="Series",a[a.PlotArea=9]="PlotArea",a[a.Control=10]="Control"}(b=a.ElementType||(a.ElementType={}))}(d||(d={})),function(a){"use strict";var b;!function(a){a[a.Cluster=0]="Cluster",a[a.Stack=1]="Stack"}(b=a.Group||(a.Group={}))}(d||(d={})),function(a){"use strict";var b;!function(a){a[a.Left=0]="Left",a[a.Center=1]="Center",a[a.Right=2]="Right"}(b=a.HAlign||(a.HAlign={}))}(d||(d={})),function(a){"use strict";var b;!function(a){a[a.Color=0]="Color",a[a.Size=1]="Size",a[a.Shape=2]="Shape"}(b=a.LegendType||(a.LegendType={}))}(d||(d={})),function(a){"use strict";var b;!function(a){a[a.Default=0]="Default",a[a.Spline=1]="Spline",a[a.StepLeft=2]="StepLeft",a[a.StepRight=3]="StepRight",a[a.StepCenter=4]="StepCenter"}(b=a.LineAspect||(a.LineAspect={}))}(d||(d={})),function(a){"use strict";var b;!function(a){a[a.Auto=0]="Auto",a[a.Center=1]="Center"}(b=a.LinePosition||(a.LinePosition={}))}(d||(d={})),function(a){"use strict";var b;!function(a){a[a.Horizontal=0]="Horizontal",a[a.Vertical=1]="Vertical"}(b=a.Orientation||(a.Orientation={}))}(d||(d={})),function(a){"use strict";var b;!function(a){a[a.Auto=0]="Auto",a[a.Show=1]="Show"}(b=a.OverlappingLabels||(a.OverlappingLabels={}))}(d||(d={})),function(a){"use strict";var b;!function(a){a[a.Standard=0]="Standard",a[a.Cocoa=1]="Cocoa",a[a.Coral=2]="Coral",a[a.Dark=3]="Dark",a[a.HighContrast=4]="HighContrast",a[a.Light=5]="Light",a[a.Midnight=6]="Midnight",a[a.Modern=7]="Modern",a[a.Organic=8]="Organic",a[a.Slate=9]="Slate",a[a.Zen=10]="Zen",a[a.Cyborg=11]="Cyborg",a[a.Superhero=12]="Superhero",a[a.Flatly=13]="Flatly",a[a.Darkly=14]="Darkly",a[a.Cerulan=15]="Cerulan",a[a.Office=16]="Office",a[a.Office2010=17]="Office2010",a[a.Grayscale=18]="Grayscale",a[a.BlueWarm=19]="BlueWarm",a[a.Blue=20]="Blue",a[a.Blue2=21]="Blue2",a[a.BlueGreen=22]="BlueGreen",a[a.Green=23]="Green",a[a.GreenYellow=24]="GreenYellow",a[a.Yellow=25]="Yellow",a[a.YellowOrange=26]="YellowOrange",a[a.Orange=27]="Orange",a[a.OrangeRed=28]="OrangeRed",a[a.RedOrange=29]="RedOrange",a[a.Red=30]="Red",a[a.RedViolet=31]="RedViolet",a[a.Violet=32]="Violet",a[a.Violet2=33]="Violet2",a[a.Median=34]="Median",a[a.Paper=35]="Paper",a[a.Marquee=36]="Marquee",a[a.Slipstream=37]="Slipstream",a[a.Aspect=38]="Aspect"}(b=a.Palette||(a.Palette={}))}(d||(d={})),function(a){"use strict";var b;!function(a){a[a.Bar=0]="Bar",a[a.Line=1]="Line",a[a.Scatter=2]="Scatter",a[a.Area=3]="Area"}(b=a.PlotType||(a.PlotType={}))}(d||(d={})),function(a){"use strict";var b;!function(a){a[a.Left=0]="Left",a[a.Top=1]="Top",a[a.Right=2]="Right",a[a.Bottom=3]="Bottom"}(b=a.Position||(a.Position={}))}(d||(d={})),function(a){"use strict";var b;!function(a){a[a.SVG=0]="SVG",a[a.Canvas=1]="Canvas"}(b=a.RenderMethod||(a.RenderMethod={}))}(d||(d={})),function(a){"use strict";var b;!function(a){a[a.None=0]="None",a[a.Point=1]="Point",a[a.Points=2]="Points",a[a.Group=3]="Group",a[a.Color=4]="Color",a[a.Shape=5]="Shape",a[a.Size=6]="Size",a[a.Custom=7]="Custom"}(b=a.SelectionMode||(a.SelectionMode={}))}(d||(d={})),function(a){"use strict";var b;!function(a){a[a.Gaps=0]="Gaps",a[a.Zeros=1]="Zeros",a[a.Connected=2]="Connected"}(b=a.ShowNulls||(a.ShowNulls={}))}(d||(d={})),function(a){"use strict";var b;!function(a){a[a.Auto=0]="Auto",a[a.Outside=1]="Outside",a[a.Center=2]="Center",a[a.Inside=3]="Inside"}(b=a.TextPosition||(a.TextPosition={}))}(d||(d={})),function(a){"use strict";var b;!function(a){a[a.None=0]="None",a[a.Outside=1]="Outside",a[a.Inside=2]="Inside",a[a.Cross=3]="Cross"}(b=a.TickMark||(a.TickMark={}))}(d||(d={})),function(a){"use strict";var b;!function(a){a[a.Ordinal=0]="Ordinal",a[a.Linear=1]="Linear",a[a.Logarithmic=2]="Logarithmic",a[a.Percentage=3]="Percentage"}(b=a.ValueScaleType||(a.ValueScaleType={}))}(d||(d={})),function(a){"use strict";function b(a){if(!a())throw"Debug: Assert Fail."}a.Yya=b}(d||(d={})),function(a){"use strict";var b;!function(a){a[a.Unknown=0]="Unknown",a[a.InvalidOperation=1]="InvalidOperation",a[a.EmptyName=2]="EmptyName",a[a.PlotTypeIsRegistered=3]="PlotTypeIsRegistered",a[a.UnknownPlotType=4]="UnknownPlotType",a[a.CoordinateSystemTypeIsRegistered=5]="CoordinateSystemTypeIsRegistered",a[a.UnknownCoordinateSystemType=6]="UnknownCoordinateSystemType",a[a.LegendSymbolTypeIsRegistered=7]="LegendSymbolTypeIsRegistered",a[a.UnknownLegendSymbolType=8]="UnknownLegendSymbolType",a[a.PlotTypeCannotSupportCoordinateSystem=9]="PlotTypeCannotSupportCoordinateSystem",a[a.Option_PlotArea_InvalidRow=4097]="Option_PlotArea_InvalidRow",a[a.Option_PlotArea_InvalidColumn=4098]="Option_PlotArea_InvalidColumn",a[a.Option_Config_DuplicatedRowAndColumnOfPlotArea=4353]="Option_Config_DuplicatedRowAndColumnOfPlotArea",a[a.AdornerRender_InvalidTypeName=8193]="AdornerRender_InvalidTypeName",a[a.AdornerRender_InvalidPlugin=8194]="AdornerRender_InvalidPlugin",a[a.AdornerRender_IsRegistered=8195]="AdornerRender_IsRegistered",a[a.ConditionalFormattingRule_InvalidTypeName=8209]="ConditionalFormattingRule_InvalidTypeName",a[a.ConditionalFormattingRule_InvalidPlugin=8210]="ConditionalFormattingRule_InvalidPlugin",a[a.ConditionalFormattingRule_IsRegistered=8211]="ConditionalFormattingRule_IsRegistered",a[a.DataContentProvider_InvalidTypeName=8225]="DataContentProvider_InvalidTypeName",a[a.DataContentProvider_InvalidPlugin=8226]="DataContentProvider_InvalidPlugin",a[a.DataContentProvider_IsRegistered=8227]="DataContentProvider_IsRegistered",a[a.DateParser_InvalidTypeName=8241]="DateParser_InvalidTypeName",a[a.DateParser_InvalidPlugin=8242]="DateParser_InvalidPlugin",a[a.DateParser_IsRegistered=8243]="DateParser_IsRegistered",a[a.RenderEngine_InvalidTypeName=8257]="RenderEngine_InvalidTypeName",a[a.RenderEngine_InvalidPlugin=8258]="RenderEngine_InvalidPlugin",a[a.RenderEngine_IsRegistered=8259]="RenderEngine_IsRegistered",a[a.StringFormatting_InvalidTypeName=8273]="StringFormatting_InvalidTypeName",a[a.StringFormatting_InvalidPlugin=8274]="StringFormatting_InvalidPlugin",a[a.StringFormatting_IsRegistered=8275]="StringFormatting_IsRegistered",a[a.Symbol_InvalidTypeName=8289]="Symbol_InvalidTypeName",a[a.Symbol_InvalidPlugin=8290]="Symbol_InvalidPlugin",a[a.Symbol_IsRegistered=8291]="Symbol_IsRegistered",a[a.DataGraph_InvalidTypeName=8305]="DataGraph_InvalidTypeName",a[a.DataGraph_InvalidPlugin=8306]="DataGraph_InvalidPlugin",a[a.DataGraph_IsRegistered=8307]="DataGraph_IsRegistered"}(b=a.Exception||(a.Exception={}))}(d||(d={})),function(a){"use strict";var b=[{exception:a.Exception.Unknown,message:"Unknown exception."},{exception:a.Exception.InvalidOperation,message:"Invalid operation exception."},{exception:a.Exception.EmptyName,message:"The name is empty."},{exception:a.Exception.Option_PlotArea_InvalidRow,message:"The row is invalid in the plot area option."},{exception:a.Exception.Option_PlotArea_InvalidColumn,message:"The column is invalid in the plot area option."}];function c(a){throw b.forEach(function(b){if(b.exception==a)throw Error(b.message)}),Error("Unknown exception.")}a.Jza=c}(d||(d={})),function(a){"use strict";var b=function(b){e(c,b);function c(c,d){var e=b.call(this,c,null,!0)||this;return e.Kza=a.RenderMethod.SVG,e.Lza=new a.core.Event,e.qOa=!0,e.vp=!1,e.applyTemplate(a.Sya,null,null),e.Pza(),e.Qza=e.Rza(e.hostElement,e.Kza),e.initialize(d),e.refreshDelay(),e}return Object.defineProperty(c.prototype,"option",{get:function(){return this.eAa},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"devicePixelRatio",{get:function(){return this.Qza.devicePixelRatio},set:function(b){isNaN(b)||null==b||this.Qza.devicePixelRatio==b||this.Kza==a.RenderMethod.Canvas&&(this.Qza&&this.hostElement.removeChild(this.Qza.element),this.Qza=this.Rza(this.hostElement,this.Kza),this.Qza.devicePixelRatio=b,this.refreshDelay())},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"enabled",{get:function(){return this.qOa},set:function(a){null!=a&&(this.qOa=a)},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"renderMethod",{get:function(){return this.Kza},set:function(b){if(null!=this.jAa){var c=a.core.asEnum(b,a.RenderMethod,!0);null!=c&&c!=this.Kza&&(this.Kza=c,this.Qza&&this.hostElement.removeChild(this.Qza.element),this.Qza=this.Rza(this.hostElement,this.Kza),this.refreshDelay())}},enumerable:!0,configurable:!0}),c.prototype.vw=function(){return null==this.Oza&&(this.Oza=new a.core.Tooltip,this.Oza.showDelay=200),this.Oza},c.prototype.initialize=function(b){var c,d;null!=b?(this.eAa=b,this.renderMethod=b.renderMethod,c=new a.options.fAa(b.data),d=this.iAa(b.plots),this.jAa=new a.kAa(this,new a.options.hAa(b.config),c,d),this.jAa.lAa(c.values)):(this.eAa=null,this.jAa=new a.kAa(this,new a.options.hAa(null),new a.options.fAa(null),[]))},c.prototype.load=function(a){null!=this.jAa&&(this.initialize(a),this.refreshDelay())},c.prototype.refresh=function(c){var d,e;void 0===c&&(c=!0),null!=this.jAa&&(b.prototype.refresh.call(this,c),this.isUpdating||(d=this.mAa(),e=new a.core.Rect(0,0,d.width,d.height),this._R(this.Qza,e),this.yl(this.Qza,e)))},c.prototype.invalidate=function(){if(null!=this.jAa){var b=this.mAa();this.yl(this.Qza,new a.core.Rect(0,0,b.width,b.height))}},c.prototype._R=function(a,b){return a.beginRender(),a.setViewportSize(b.width,b.height),null!=this.jAa&&this.jAa._R(a,b),a.endRender(),b},c.prototype.yl=function(a,b){var c,d,e,f,g,h,i,j,k,l;if(a.beginRender(),a.setViewportSize(b.width,b.height),null!=this.jAa&&this.jAa.yl(a),this.jAa.$z().selectedStyle.adorners)for(c=0,d=this.jAa.plotAreas;c0?this.ZNa=window.setTimeout(function(){d.ZNa=null,d.vw().show(d.hostElement,a,b),d.$Na(c),d.vw().hideDelay>0&&(d.ZNa=window.setTimeout(function(){d.ZNa=null,d.vw().hide()},d.vw().hideDelay))},this.vw().showDelay):(this.vw().show(this.hostElement,a,b),this.$Na(c),this.vw().hideDelay>0&&(this.ZNa=window.setTimeout(function(){d.ZNa=null,d.vw().hide()},this.vw().hideDelay)))},c.prototype._Na=function(){null!=this.ZNa&&(clearTimeout(this.ZNa),this.ZNa=null),this.vw().hide()},c.prototype.$Na=function(a){var b=document.querySelector(".gcdv-tooltip");b.style.backgroundColor=a.backgroundColor||null,b.style.borderColor=a.borderStyle.stroke||null,b.style.borderWidth=null==a.borderStyle.strokeWidth?null:a.borderStyle.strokeWidth+"px", b.style.color=a.textStyle.color||null,b.style.fontFamily=a.textStyle.fontFamily||null,b.style.fontSize=null==a.textStyle.fontSize?null:a.textStyle.fontSize+"px"},c.prototype.Pza=function(){this.hostElement.addEventListener("mousemove",this.ontouch.bind(this),!1),this.hostElement.addEventListener("mousewheel",this.ontouch.bind(this),!1),this.hostElement.addEventListener("mouseleave",this.ontouch.bind(this),!1),this.hostElement.addEventListener("click",this.ontouch.bind(this),!1),this.hostElement.addEventListener("wheel",this.ontouch.bind(this),!1)},c.prototype.ontouch=function(b){var c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s;if(this.enabled){switch(b=b||window.event,c=new a.MotionEvent(0,0,0),b.type){case"touchstart":c=new a.MotionEvent(a.MotionEvent.ACTION_DOWN);break;case"touchend":c=new a.MotionEvent(a.MotionEvent.ACTION_UP);break;case"touchcancel":c=new a.MotionEvent(a.MotionEvent.ACTION_CANCEL);break;case"touchmove":c=new a.MotionEvent(a.MotionEvent.ACTION_MOVE);break;case"mousedown":c=new a.MotionEvent(a.MotionEvent.ACTION_MOUSE_DOWN);break;case"mousemove":c=new a.MotionEvent(a.MotionEvent.ACTION_MOUSE_MOVE);break;case"mouseup":c=new a.MotionEvent(a.MotionEvent.ACTION_MOUSE_UP);break;case"mouseout":c=new a.MotionEvent(a.MotionEvent.ACTION_MOUSE_OUT);break;case"mouseover":c=new a.MotionEvent(a.MotionEvent.ACTION_MOUSE_OVER);break;case"click":c=new a.MotionEvent(a.MotionEvent.ACTION_CLICK);break;case"mouseenter":c=new a.MotionEvent(a.MotionEvent.ACTION_MOUSE_ENTER);break;case"mouseleave":c=new a.MotionEvent(a.MotionEvent.ACTION_MOUSE_LEAVE);break;case"wheel":c=new a.MotionEvent(a.MotionEvent.ACTION_WHEEL)}if(d=this.rAa(b,0),c.x=d.x,c.y=d.y,c.originalEvent=b,e=this.jAa.onHitted(c),null!=e)if(e.event=c,this.Lza.raise(this,e),c.action==a.MotionEvent.ACTION_CLICK){if(e&&this.jAa.$z().selectionMode!=a.SelectionMode.None&&this.jAa.$z().selectionMode!=a.SelectionMode.Custom)if(f=this.jAa.$z().selectionMode,e.elementType[0]==a.ElementType.Shape&&e.model&&e.model instanceof a.models.sAa&&e.plot)f==a.SelectionMode.Points&&(b.metaKey||b.ctrlKey||(f=a.SelectionMode.Point)),this.vp=!0,e.plot.setSelected(e.model,f),this.invalidate();else if(e.elementType[0]==a.ElementType.Series&&null!=e.model)f==a.SelectionMode.Points&&(b.metaKey||b.ctrlKey||(f=a.SelectionMode.Point)),e.plot instanceof a.TGa||e.plot instanceof a.PGa,e.plot.setSelected(e.model,f),this.vp=!0,this.invalidate();else if(e.elementType[0]!=a.ElementType.Series&&e.elementType[0]!=a.ElementType.Shape&&this.vp){for(this.vp=!1,g=0,h=this.jAa.plotAreas;g0&&this.uw(m,new a.core.Rect(b.clientX,b.clientY,5,5),e.plot.mPa())):this._Na(),e.elementType[0]==a.ElementType.Shape||e.elementType[0]==a.ElementType.Series?e.plot&&e.element instanceof a.MIa&&!e.element.IQa&&(n=e.plot.config.hoverStyle,n instanceof a.options.AFa&&n.iT()||(e.plot.setHovered(e.element),this.invalidate())):e.plot&&(n=e.plot.config.hoverStyle,n instanceof a.options.AFa&&n.iT()||(e.plot.setHovered(null),this.invalidate())));if(c.action==a.MotionEvent.ACTION_MOUSE_LEAVE||c.action==a.MotionEvent.ACTION_WHEEL){for(o=!1,p=0,q=this.jAa.plotAreas;p-1&&(this.owa[b]=c.substr(0,d),this.owa.splice(++b,0,parseInt(c.substr(d+1))));this.pwa=1==this.owa.length?this.owa[0]:null},enumerable:!0,configurable:!0}),a.prototype.getValue=function(a){if(a){if(this.pwa)return a[this.pwa];if(this.nwa in a)return a[this.nwa];for(var b=0;b-1&&this.Sta-1&&this.onCurrentChanged()}},enumerable:!0,configurable:!0}),d.prototype.qxa=function(a,b){this.uwa<=0&&this.refresh()},d.prototype.contains=function(a){return this.ixa.indexOf(a)>-1},d.prototype.moveCurrentTo=function(a){return this.moveCurrentToPosition(this.ixa.indexOf(a))},d.prototype.moveCurrentToFirst=function(){return this.moveCurrentToPosition(0)},d.prototype.moveCurrentToLast=function(){return this.moveCurrentToPosition(this.ixa.length-1)},d.prototype.moveCurrentToPrevious=function(){return this.Sta>0&&this.moveCurrentToPosition(this.Sta-1)},d.prototype.moveCurrentToNext=function(){return this.moveCurrentToPosition(this.Sta+1)},d.prototype.moveCurrentToPosition=function(a){if(a>=-1&&a0||this.Swa||this.Twa||(this.rxa(),this.onCollectionChanged())},d.prototype.rxa=function(){var a,b=this.currentItem;this.oxa?this.PY&&this.canFilter?this.jxa=this.sxa(this.oxa):this.jxa=this.Qwa.length>0&&this.canSort?this.oxa.slice(0):this.oxa:this.jxa=[],this.canSort&&this.Qwa.length>0&&this.txa(this.jxa),this.Ub=this.canGroup?this.uxa(this.jxa):null,this.mta=this.Ub,this.Ub&&(this.jxa=this.vxa(this.Ub)),this.Vwa=j(this.Vwa,0,this.pageCount-1),this.ixa=this.wxa(),this.Ub&&this.pageCount>1&&(this.Ub=this.uxa(this.ixa),this.vxa(this.Ub)),a=this.ixa.indexOf(b),a<0&&(a=Math.min(this.Sta,this.ixa.length-1)),this.Sta=a,this.xxa=this.yxa(this.groups),this.currentItem!==b&&this.onCurrentChanged()},d.prototype.txa=function(a){var b,c,d;if(this.Wwa)for(b=a.map(function(a,b){return{item:a,index:b}}),c=this.zxa(),b.sort(function(a,b){var d=c(a.item,b.item);return 0==d?a.index-b.index:d}),d=0;dk?1:0,0!=e)return i.ascending?+e:-e}return 0}},d.prototype.sxa=function(a){return this.canFilter&&this.PY?a.filter(this.PY,this):a},d.prototype.onCurrentChanged=function(a){void 0===a&&(a=b.EventArgs.empty),this.currentChanged.raise(this,a)},d.prototype.onCurrentChanging=function(a){return this.currentChanging.raise(this,a),!a.cancel},Object.defineProperty(d.prototype,"items",{get:function(){return this.ixa},enumerable:!0,configurable:!0}),d.prototype.beginUpdate=function(){this.uwa++},d.prototype.endUpdate=function(){this.uwa--,this.uwa<=0&&this.refresh()},Object.defineProperty(d.prototype,"isUpdating",{get:function(){return this.uwa>0},enumerable:!0,configurable:!0}),d.prototype.deferUpdate=function(a){try{this.beginUpdate(),a()}finally{this.endUpdate()}},Object.defineProperty(d.prototype,"canAddNew",{get:function(){return this.$wa},set:function(a){this.$wa=b.asBoolean(a)},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"canCancelEdit",{get:function(){return this._wa},set:function(a){this._wa=b.asBoolean(a)},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"canRemove",{get:function(){return this.vL},set:function(a){this.vL=b.asBoolean(a)},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"currentAddItem",{get:function(){return this.Swa},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"currentEditItem",{get:function(){return this.Twa},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"isAddingNew",{get:function(){return null!=this.Swa},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"isEditingItem",{get:function(){return null!=this.Twa},enumerable:!0,configurable:!0}),d.prototype.editItem=function(a){a!=this.Twa&&this.moveCurrentTo(a)&&(this.commitEdit(),this.Twa=a,this.Axa={},this.Ia(this.Axa,this.Twa))},d.prototype.commitEdit=function(){var a,c,d,e=this.Twa;null!=e&&(this.lxa=!0,a=this.Bxa(e,this.Axa),this.Twa=null,this.Axa=null,c=this.ixa.indexOf(e),d=this.xxa,this.rxa(),a||this.nxa(e),this.ixa.indexOf(e)==c&&d==this.xxa?this.Pwa(b.NotifyCollectionChangedAction.Change,e,c):this.Pwa(),this.lxa=!1)},d.prototype.cancelEdit=function(){var a,c=this.Twa;if(null!=c){if(this.Twa=null,!this.canCancelEdit)return void b.assert(!1,"cannot cancel edits (canCancelEdit == false).");if(a=this.oxa.indexOf(c),a<0||!this.Axa)return;this.Ia(this.oxa[a],this.Axa),this.Axa=null,this.mxa=!0,this.Pwa(b.NotifyCollectionChangedAction.Change,c,a),this.mxa=!1}},d.prototype.commitNew=function(){var a,c,d,e=this.Swa;null!=e&&(this.Swa=null,a=this.ixa.indexOf(e),c=this.xxa,this.rxa(),1==this.bxa&&(d=this.exa.indexOf(e),d>-1&&this.exa.removeAt(d),this.cxa.indexOf(e)<0&&this.cxa.push(e)),this.ixa.indexOf(e)==a&&c==this.xxa?this.Pwa(b.NotifyCollectionChangedAction.Change,e,a):this.Pwa())},d.prototype.cancelNew=function(){var a=this.Swa;null!=a&&this.remove(a)},d.prototype.remove=function(a){var c,d,e,f,g,h,i,j,k=a==this.Swa;return k&&(this.Swa=null),a==this.Twa&&this.cancelEdit(),this.canRemove?(c=this.oxa.indexOf(a),void(c>-1&&(d=this.currentItem,this.uwa++,this.oxa.splice(c,1),this.uwa--,e=this.xxa,this.rxa(),1==this.bxa&&(f=this.cxa.indexOf(a),f>-1&&this.cxa.removeAt(f),g=this.exa.indexOf(a),g>-1&&this.exa.removeAt(g),h=this.dxa.indexOf(a),h<0&&!k&&f<0&&this.dxa.push(a)),i=this.sortDescriptions.length>0,j=this.pageSize>0&&this.Vwa>-1,i||j||e!=this.yxa(this.groups)?this.Pwa():this.Pwa(b.NotifyCollectionChangedAction.Remove,a,c),this.currentItem!==d&&this.onCurrentChanged()))):void b.assert(!1,"cannot remove items (canRemove == false).")},d.prototype.removeAt=function(a){a=b.asInt(a),this.remove(this.ixa[a])},d.prototype.nxa=function(a){var c,d;this.bxa&&(c=this.exa.indexOf(a),c<0&&this.cxa.indexOf(a)<0?this.exa.push(a):c>-1?(d=new b.NotifyCollectionChangedEventArgs(b.NotifyCollectionChangedAction.Change,a,c),this.exa.onCollectionChanged(d)):(c=this.cxa.indexOf(a),c>-1&&(d=new b.NotifyCollectionChangedEventArgs(b.NotifyCollectionChangedAction.Change,a,c),this.cxa.onCollectionChanged(d))))},d.prototype.Ia=function(a,b){for(var c in b)a[c]=b[c]},d.prototype.Bxa=function(a,b){var c;for(c in b)if(!this.Cxa(a[c],b[c]))return!1;for(c in a)if(!this.Cxa(a[c],b[c]))return!1;return!0},d.prototype.Cxa=function(a,c){return a==c||b.DateTime.equals(a,c)},Object.defineProperty(d.prototype,"canChangePage",{get:function(){return this.axa},set:function(a){this.axa=b.asBoolean(a)},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"isPageChanging",{get:function(){return!1},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"itemCount",{get:function(){return this.ixa.length},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"pageIndex",{get:function(){return this.Vwa},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"pageSize",{get:function(){return this.Uwa},set:function(a){a!=this.Uwa&&(this.Uwa=b.asInt(a),this.refresh())},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"totalItemCount",{get:function(){return this.jxa.length},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"pageCount",{get:function(){return this.pageSize?Math.ceil(this.totalItemCount/this.pageSize):1},enumerable:!0,configurable:!0}),d.prototype.moveToFirstPage=function(){return this.moveToPage(0)},d.prototype.moveToLastPage=function(){return this.moveToPage(this.pageCount-1)},d.prototype.moveToNextPage=function(){return this.moveToPage(this.pageIndex+1)},d.prototype.moveToPage=function(a){var c,d=j(a,0,this.pageCount-1);return d!=this.Vwa&&(this.canChangePage||b.assert(!1,"cannot change pages (canChangePage == false)."),c=new b.PageChangingEventArgs(d),this.onPageChanging(c)&&(this.Vwa=d,this.ixa=this.wxa(),this.Sta=0,this.groupDescriptions&&0!=this.groupDescriptions.length?this.refresh():(this.onPageChanged(),this.onCollectionChanged()))),this.Vwa==a},d.prototype.moveToPreviousPage=function(){return this.moveToPage(this.pageIndex-1)},d.prototype.onPageChanged=function(a){void 0===a&&(a=b.EventArgs.empty),this.pageChanged.raise(this,a)},d.prototype.onPageChanging=function(a){return this.pageChanging.raise(this,a),!a.cancel},d.prototype.Dxa=function(a){var b=this.Exa(this.mta,a.level,a.nwa);return null!=b&&(a=b),a},d.prototype.Exa=function(a,b,c){var d,e;for(d=0;d0&&(d+=",",d+=this.yxa(c.groups)),d+="}";return d},d.prototype.vxa=function(a){var b,c,d,e,f,g=[];for(b=0;bc&&(a=c),null!=b&&a-1&&(this.removeAt(b),!0)},c.prototype.removeAt=function(a){this.splice(a,1)},c.prototype.setAt=function(a,b){a>this.length&&(this.length=a),this.splice(a,1,b)},c.prototype.clear=function(){0!==this.length&&(this.splice(0,this.length),this.Pwa())},c.prototype.beginUpdate=function(){this.uwa++},c.prototype.endUpdate=function(){this.uwa>0&&(this.uwa--,0==this.uwa&&this.Pwa())},Object.defineProperty(c.prototype,"isUpdating",{get:function(){return this.uwa>0},enumerable:!0,configurable:!0}),c.prototype.deferUpdate=function(a){try{this.beginUpdate(),a()}finally{this.endUpdate()}},c.prototype.implementsInterface=function(a){return"INotifyCollectionChanged"==a},c.prototype.onCollectionChanged=function(b){void 0===b&&(b=a.NotifyCollectionChangedEventArgs.reset),this.isUpdating||this.collectionChanged.raise(this,b)},c.prototype.Pwa=function(b,c,d){if(void 0===b&&(b=a.NotifyCollectionChangedAction.Reset),!this.isUpdating){var e=new a.NotifyCollectionChangedEventArgs(b,c,d);this.onCollectionChanged(e)}},c}(d),b.ObservableArray=c}(b=a.collections||(a.collections={}))}(b=a.core||(a.core={}))}(d||(d={})),function(a){var b;!function(a){"use strict";var b=function(){function b(){}return b.addDays=function(a,b){var c=new Date(a);return c.setDate(c.getDate()+b),c},b.addMonths=function(a,b){var c=new Date(a);return c.setMonth(c.getMonth()+b),c},b.addYears=function(a,b){var c=new Date(a);return c.setFullYear(c.getFullYear()+b),c},b.addHours=function(a,b){var c=new Date(a);return c.setHours(c.getHours()+b),c},b.addMinutes=function(a,b){var c=new Date(a);return c.setMinutes(c.getMinutes()+b),c},b.addSeconds=function(a,b){var c=new Date(a);return c.setSeconds(c.getSeconds()+b),c},b.sameDate=function(b,c){return a.isDate(b)&&a.isDate(c)&&b.getFullYear()==c.getFullYear()&&b.getMonth()==c.getMonth()&&b.getDate()==c.getDate()},b.sameTime=function(b,c){return a.isDate(b)&&a.isDate(c)&&b.getHours()==c.getHours()&&b.getMinutes()==c.getMinutes()&&b.getSeconds()==c.getSeconds()},b.equals=function(b,c){return a.isDate(b)&&a.isDate(c)&&b.getTime()==c.getTime()},b.fromDateTime=function(a,b){return a||b?(a||(a=b),b||(b=a),new Date(a.getFullYear(),a.getMonth(),a.getDate(),b.getHours(),b.getMinutes(),b.getSeconds())):null},b.toFiscal=function(c,d){var e=a.culture.Globalize.calendar;return Array.isArray(e.fiscalYearOffsets)?b.addMonths(c,-e.fiscalYearOffsets[d?0:1]):c},b.fromFiscal=function(c,d){var e=a.culture.Globalize.calendar;return Array.isArray(e.fiscalYearOffsets)?b.addMonths(c,+e.fiscalYearOffsets[d?0:1]):c},b.newDate=function(){var a=new Date;return new Date(a.getFullYear(),a.getMonth(),a.getDate())},b.clone=function(a){return b.fromDateTime(a,a)},b}();a.DateTime=b}(b=a.core||(a.core={}))}(d||(d={})),function(a){var b;!function(a){"use strict";var b=function(){function a(a,b,c){var d,e,f,g,h=Math.max(Math.max(a,b),c),i=Math.min(Math.min(a,b),c),j=h+i;this.luminosity=parseInt(""+(240*j+255)/510,10),d=h-i,0===d?(this.saturation=0,this.hue=160):(this.luminosity<=120?this.saturation=parseInt(""+(240*d+j/2)/j,10):this.saturation=parseInt(""+(240*d+(510-j)/2)/(510-j),10),e=(40*(h-a)+d/2)/d,f=(40*(h-b)+d/2)/d,g=(40*(h-c)+d/2)/d,a===h?this.hue=parseInt(""+(g-f),10):b===h?this.hue=parseInt(""+(80+e-g),10):this.hue=parseInt(""+(160+f-e),10),this.hue<0&&(this.hue+=240),this.hue>240&&(this.hue-=240))}return a}();a.HslColor=b;function c(a,c){var e,f,g;return 0===c?a:(e=new b(a.r,a.g,a.b),f=parseInt(""+(c>0?""+(240-e.luminosity)*c:e.luminosity*c),10),g=d(e.hue,e.saturation,e.luminosity+f),{r:g.r,g:g.g,b:g.b,a:a.a})}a.applyTint=c;function d(a,b,c){var d,f,g,h,i;function j(a,b,c){return parseInt(""+(255*e(a,b,c)+120)/240,10)}return 0===b?d=f=g=parseInt(""+255*c/240,10):(i=c<=120?(c*(240+b)+120)/240:c+b-(c*b+120)/240,h=2*c-i,d=j(h,i,a+80),f=j(h,i,a),g=j(h,i,a-80)),{a:255,r:d,g:f,b:g}}a.fromHsl=d;function e(a,b,c){return c<0&&(c+=240),c>240&&(c-=240),c<40?a+((b-a)*c+20)/40:c<120?b:c<160?a+((b-a)*(160-c)+20)/40:a}}(b=a.core||(a.core={}))}(d||(d={})),function(a){var b;!function(a){"use strict";var b,c,d,f,g,h,i;!function(a){a[a.Add=0]="Add",a[a.Remove=1]="Remove",a[a.Change=2]="Change",a[a.Reset=3]="Reset"}(b=a.NotifyCollectionChangedAction||(a.NotifyCollectionChangedAction={})),c=function(){function a(a,b){this.handler=a,this.self=b}return a}(),d=function(){function b(){this.qwa=[]}return b.prototype.addHandler=function(b,d){a.asFunction(b),this.qwa.push(new c(b,d))},b.prototype.removeHandler=function(b,c){var d,e;for(a.asFunction(b),d=0;d0},enumerable:!0,configurable:!0}),b}(),a.Event=d,f=function(){function a(){}return a.empty=new a,a}(),a.EventArgs=f,g=function(a){e(b,a);function b(){var b=null!==a&&a.apply(this,arguments)||this;return b.cancel=!1,b}return b}(f),a.CancelEventArgs=g,h=function(a){e(c,a);function c(c,d,e){void 0===c&&(c=b.Reset),void 0===d&&(d=null),void 0===e&&(e=-1);var f=a.call(this)||this;return f.action=c,f.item=d,f.index=e,f}return c.reset=new c(b.Reset),c}(f),a.NotifyCollectionChangedEventArgs=h,i=function(a){e(b,a);function b(b){var c=a.call(this)||this;return c.newPageIndex=b,c}return b}(g),a.PageChangingEventArgs=i}(b=a.core||(a.core={}))}(d||(d={})),function(a){var b;!function(a){function b(a,b,c){return null!=a&&(null!=c&&a>c&&(a=c),null!=b&&a-1&&(d=d.substr(0,e+1+b),a=parseFloat(d))):(d=a.toFixed(b),a=parseFloat(d)),a}a.toFixed=b}(b=a.core||(a.core={}))}(d||(d={})),function(a){var b;!function(a){"use strict";var b=function(){function b(a){this.Yxa=0,this.Zxa=0,this.$xa=0,this._xa=1,a&&this.T0(a)}return Object.defineProperty(b.prototype,"r",{get:function(){return this.Yxa},set:function(b){this.Yxa=a.clamp(a.asNumber(b),0,255)},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"g",{get:function(){return this.Zxa},set:function(b){this.Zxa=a.clamp(a.asNumber(b),0,255)},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"b",{get:function(){return this.$xa},set:function(b){this.$xa=a.clamp(a.asNumber(b),0,255)},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"a",{get:function(){return this._xa},set:function(b){this._xa=a.clamp(a.asNumber(b),0,1)},enumerable:!0,configurable:!0}),b.prototype.equals=function(a){return a instanceof b&&this.r==a.r&&this.g==a.g&&this.b==a.b&&this.a==a.a},b.prototype.toString=function(){var a=Math.round(100*this.a);return a>99?"#"+((1<<24)+(this.r<<16)+(this.g<<8)+this.b).toString(16).slice(1):"rgba("+this.r+","+this.g+","+this.b+","+a/100+")"},b.fromRgba=function(c,d,e,f){void 0===f&&(f=1);var g=new b(null);return g.r=Math.round(a.clamp(a.asNumber(c),0,255)),g.g=Math.round(a.clamp(a.asNumber(d),0,255)),g.b=Math.round(a.clamp(a.asNumber(e),0,255)),g.a=a.clamp(a.asNumber(f),0,1),g},b.fromHsb=function(c,d,e,f){void 0===f&&(f=1);var g=b.aya(a.clamp(a.asNumber(c),0,1),a.clamp(a.asNumber(d),0,1),a.clamp(a.asNumber(e),0,1));return b.fromRgba(g[0],g[1],g[2],f)},b.fromHsl=function(c,d,e,f){void 0===f&&(f=1);var g=b.bya(a.clamp(a.asNumber(c),0,1),a.clamp(a.asNumber(d),0,1),a.clamp(a.asNumber(e),0,1));return b.fromRgba(g[0],g[1],g[2],f)},b.fromString=function(c){var d=new b(null);return d.T0(a.asString(c))?d:null},b.prototype.getHsb=function(){return b.cya(this.r,this.g,this.b)},b.prototype.getHsl=function(){return b.dya(this.r,this.g,this.b)},b.interpolate=function(c,d,e){var f,g,h,i,j,k;return e=a.clamp(a.asNumber(e),0,1),f=b.dya(c.r,c.g,c.b),g=b.dya(d.r,d.g,d.b),h=1-e,i=c.a*h+d.a*e,j=[f[0]*h+g[0]*e,f[1]*h+g[1]*e,f[2]*h+g[2]*e],k=b.bya(j[0],j[1],j[2]),b.fromRgba(k[0],k[1],k[2],i)},b.toOpaque=function(d,e){if(d=a.isString(d)?b.fromString(d):c(d,b),1==d.a)return d;e=null==e?b.fromRgba(255,255,255,1):a.isString(e)?b.fromString(e):c(e,b);var f=d.a,g=1-f;return b.fromRgba(d.r*f+e.r*g,d.g*f+e.g*g,d.b*f+e.b*g)},b.prototype.T0=function(a){var c,d,e,f,g,h,i,j,k;return a=a.toLowerCase(),"transparent"==a?(this.Yxa=this.Zxa=this.$xa=this._xa=0,!0):(a&&0!=a.indexOf("#")&&0!=a.indexOf("rgb")&&0!=a.indexOf("hsl")&&(c=document.createElement("div"),c.style.color=a,d=c.style.color,d==a&&(d=window.getComputedStyle(c).color,d||(document.body.appendChild(c),d=window.getComputedStyle(c).color,document.body.removeChild(c))),a=d.toLowerCase()),0==a.indexOf("#")?4==a.length?(this.r=parseInt(a[1]+a[1],16),this.g=parseInt(a[2]+a[2],16),this.b=parseInt(a[3]+a[3],16),this.a=1,!0):7==a.length&&(this.r=parseInt(a.substr(1,2),16),this.g=parseInt(a.substr(3,2),16),this.b=parseInt(a.substr(5,2),16),this.a=1,!0):0==a.indexOf("rgb")&&(e=a.indexOf("("),f=a.indexOf(")"),e>-1&&f>-1&&(g=a.substr(e+1,f-(e+1)).split(","),g.length>2))?(this.r=parseInt(g[0]),this.g=parseInt(g[1]),this.b=parseInt(g[2]),this.a=g.length>3?parseFloat(g[3]):1,!0):0==a.indexOf("hsl")&&(e=a.indexOf("("),f=a.indexOf(")"),e>-1&&f>-1&&(g=a.substr(e+1,f-(e+1)).split(","),g.length>2))&&(h=parseInt(g[0])/360,i=parseInt(g[1]),j=parseInt(g[2]),g[1].indexOf("%")>-1&&(i/=100),g[2].indexOf("%")>-1&&(j/=100),k=b.bya(h,i,j),this.r=k[0],this.g=k[1],this.b=k[2],this.a=g.length>3?parseFloat(g[3]):1,!0))},b.bya=function(c,d,e){var f,g,h,i,j;return a.assert(c>=0&&c<=1&&d>=0&&d<=1&&e>=0&&e<=1,"bad HSL values"),0==d?f=g=h=e:(i=e<.5?e*(1+d):e+d-e*d,j=2*e-i,f=b.eya(j,i,c+1/3),g=b.eya(j,i,c),h=b.eya(j,i,c-1/3)),[Math.round(255*f),Math.round(255*g),Math.round(255*h)]},b.eya=function(a,b,c){return c<0&&(c+=1),c>1&&(c-=1),c<1/6?a+6*(b-a)*c:c<.5?b:c<2/3?a+(b-a)*(2/3-c)*6:a},b.dya=function(b,c,d){var e,f,g,h,i,j;if(a.assert(b>=0&&b<=255&&c>=0&&c<=255&&d>=0&&d<=255,"bad RGB values"),b/=255,c/=255,d/=255,e=Math.max(b,c,d),f=Math.min(b,c,d),i=(e+f)/2,e==f)g=h=0;else{switch(j=e-f,h=i>.5?j/(2-e-f):j/(e+f),e){case b:g=(c-d)/j+(c=0&&c<=255&&d>=0&&d<=255&&e>=0&&e<=255,"bad RGB values");var f=b.dya(c,d,e);return b.fya(f[0],f[1],f[2])},b.aya=function(a,c,d){var e=b.gya(a,c,d);return b.bya(e[0],e[1],e[2])},b.gya=function(b,c,d){a.assert(b>=0&&b<=1&&c>=0&&c<=1&&d>=0&&d<=1,"bad HSB values");var e=a.clamp(d*(2-c)/2,0,1),f=1-Math.abs(2*e-1),g=a.clamp(f>0?d*c/f:c,0,1);return a.assert(!isNaN(e)&&!isNaN(g),"bad conversion to HSL"),[b,g,e]},b.fya=function(b,c,d){var e,f;return a.assert(b>=0&&b<=1&&c>=0&&c<=1&&d>=0&&d<=1,"bad HSL values"),e=a.clamp(1==d?1:(2*d+c*(1-Math.abs(2*d-1)))/2,0,1),f=a.clamp(e>0?2*(e-d)/e:c,0,1),a.assert(!isNaN(e)&&!isNaN(f),"bad conversion to HSB"),[b,f,e]},b}();a.Color=b;function c(b,c,e){return void 0===e&&(e=!1),b=d(b,c),a.assert(e||null!=b,c+" expected."),b}a.asType=c;function d(b,c){return null==b?null:a.isString(c)?a.isFunction(b.implementsInterface)&&b.implementsInterface(c)?b:null:b instanceof c?b:null}a.tryCast=d}(b=a.core||(a.core={}))}(d||(d={})),function(a){var b;!function(a){"use strict";var b=function(){function b(){}return b.format=function(c,d,e,f){return a.isString(c)?c:a.isNumber(c)?(d=d||(c==Math.round(c)?"n0":"n2"),b.formatNumber(c,d,e,f)):a.isDate(c)?(d=d||"d",b.formatDate(c,d)):null!=c?""+c:""},b.formatNumber=function(c,d,e,f){var g,h,i,j,k,l,m,n,o,p,q,r;if(a.asNumber(c),a.asString(d),h=d?d.match(/([a-z])(\d*)(,*)(.*)/i):null,i=a.culture.Globalize.numberFormat,j=h?h[1].toLowerCase():"n",k=h&&h[2]?parseInt(h[2]):"c"==j?i.currency.decimals:c==Math.round(c)?0:2,l=h&&h[3]?3*h[3].length:0,m=h&&h[4]?h[4]:i.currency.symbol,n=i["."],o=i[","],l&&(c/=Math.pow(10,l)),"d"==j||"x"==j){for(g=Math.round(Math.abs(c)).toString("d"==j?10:16);g.length-1&&(g=g.replace(/(\.[0-9]*?)0+$/g,"$1"),g=g.replace(/\.$/,"")),"."!=n&&(g=g.replace(".",n)),!o||"n"!=j&&"c"!=j&&"p"!=j||(p=g.indexOf(n),q=/\B(?=(\d\d\d)+(?!\d))/g,g=p>-1?g.substr(0,p).replace(q,o)+g.substr(p):g.replace(q,o)),"c"==j&&(r=i.currency.pattern[c<0?0:1],g=r.replace("n",g).replace("$",m)),"p"==j&&(r=i.percent.pattern[c<0?0:1],g=r.replace("n",g)),g},b.formatDate=function(a,c){var d,e,f;switch(c){case"r":case"R":return a.toUTCString();case"u":return a.toISOString().replace(/\.\d{3}/,"")}for(c=b.ewa(c),d=b.fwa(c),e="",f=0;f-1||b.indexOf("(")>-1&&b.indexOf(")")>-1?-1:1,h=b.indexOf("%")>-1?.01:1,i=c?c.match(/,+/):null,j=i?3*i[0].length:0;return!c||"x"!=c[0]&&"X"!=c[0]?(d=a.culture.Globalize.numberFormat["."],e=RegExp("[^\\d\\"+d+"]","g"),f=b.replace(e,"").replace(d,"."),parseFloat(f)*g*h*Math.pow(10,j)):(b=b.replace(/[^0-9a-f]+.*$/gi,""),parseInt(b,16)*g*h*Math.pow(10,j))},b.parseDate=function(c,d){var e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,A,B,C,D,E,F,G,H;if(c=a.asString(c),!c)return null;if("u"==d)return new Date(c);if("R"==d||"r"==d)return f=/(([0-9]+)\-([0-9]+)\-([0-9]+))?\s?(([0-9]+):([0-9]+)(:([0-9]+))?)?/,g=c.match(f),g[1]||g[5]?(e=g[1]?new Date(parseInt(g[2]),parseInt(g[3])-1,parseInt(g[4])):new Date,g[5]&&(e.setHours(parseInt(g[6])),e.setMinutes(parseInt(g[7])),e.setSeconds(g[8]?parseInt(g[9]):0))):e=new Date(c),isNaN(e.getTime())?null:e;if(d=b.ewa(d?d:"d"),h=a.culture.Globalize.calendar,i=b.hwa,j=RegExp("(\\"+h["/"]+")|(\\"+h[":"]+")|(\\d+)|(["+i+"\\.]{2,})|(["+i+"]+)","gi"),k=c.match(j),l=b.fwa(d),m=0,n=-1,o=0,p=1,q=0,r=0,s=0,t=0,u=0,v=-1,!(k&&k.length&&l&&l.length))return null;for(B=0;B-1&&C1&&D.length>E&&(k[C]=D.substr(E),D=D.substr(0,E),m++),n=parseInt(D);break;case"MMMM":case"MMM":for(z=!0,F=D.toLowerCase(),o=-1,G=0;G<12;G++)if(0==h.months[G].toLowerCase().indexOf(F)){o=G;break}if(o>-1)break;case"MM":case"M":z=!0,E>1&&D.length>E&&(k[C]=D.substr(E),D=D.substr(0,E),m++),o=parseInt(D)-1;break;case"dddd":case"ddd":w=!0;break;case"dd":case"d":E>1&&D.length>E&&(k[C]=D.substr(E),D=D.substr(0,E),m++),p=parseInt(D),x=!0;break;case"hh":case"h":E>1&&D.length>E&&(k[C]=D.substr(E),D=D.substr(0,E),m++),q=parseInt(D),q=12==q?0:q;break;case"HH":E>1&&D.length>E&&(k[C]=D.substr(E),D=D.substr(0,E),m++),q=parseInt(D);break;case"H":q=parseInt(D);break;case"mm":case"m":E>1&&D.length>E&&(k[C]=D.substr(E),D=D.substr(0,E),m++),r=parseInt(D);break;case"ss":case"s":E>1&&D.length>E&&(k[C]=D.substr(E),D=D.substr(0,E),m++),t=parseInt(D);break;case"fffffff":case"FFFFFFF":case"ffffff":case"FFFFFF":case"fffff":case"FFFFF":case"ffff":case"FFFF":case"fff":case"FFF":case"ff":case"FF":case"f":case"F":u=parseInt(D)/Math.pow(10,E-3);break;case"tt":case"t":D=D.toUpperCase(),(h.pm[0]&&D==h.pm[0]&&q<12||h.pm[1]&&D==h.pm[1]&&q<12)&&(q+=12);break;case"q":case"Q":case"u":case"U":y=!0;break;case"ggg":case"gg":case"g":v=h.eras.length>1?b.iwa(D,h):-1;break;case h["/"]:case h[":"]:if(D&&D!=l[B])return null;break;case"K":break;default:b.jwa(l[B])!=D&&m++}if(z&&x&&(isNaN(q)&&(q=0),isNaN(r)&&(r=0),isNaN(t)&&(t=0)),o<0||o>11||isNaN(o)||p<0||p>31||isNaN(p)||q<0||q>24||isNaN(q)||r<0||r>60||isNaN(r)||t<0||t>60||isNaN(t))return null;if(A){if(!z)return null;e=new Date(n,o),e=a.DateTime.fromFiscal(e,"E"==A[0]),n=e.getFullYear(),o=e.getMonth()}return w&&!x?null:y&&!z?null:(n<0&&(n=(new Date).getFullYear()),v>-1?n=n+h.eras[v].start.getFullYear()-1:n<100&&(H=a.isNumber(h.twoDigitYearMax)?h.twoDigitYearMax:2029,n+=n+2e31&&a[0]==a[a.length-1]&&("'"==a[0]||'"'==a[0])?a.substr(1,a.length-2):a},b.fwa=function(a){var c,d,e,f,g;if(a in b.yAa)return b.yAa[a];for(c=[],d="",e=0;e>-1&&e-1))c.push(a.substring(e,f+1)),e=f;else{for(f=e+1;f1&&d.indexOf("g")>-1&&(i=b.iwa(c,h),i>-1&&(j=j-h.eras[i].start.getFullYear()+1)),b.lwa(j,4).substr(4-e.length);case"MMMM":return h.months[c.getMonth()];case"MMM":return h.monthsAbbr[c.getMonth()];case"MM":case"M":return b.lwa(c.getMonth()+1,l);case"dddd":return h.days[c.getDay()];case"ddd":return h.daysAbbr[c.getDay()];case"dd":return b.lwa(c.getDate(),2);case"d":return""+c.getDate();case"hh":case"h":return b.lwa(b.mwa(c),l);case"HH":case"H":return b.lwa(c.getHours(),l);case"mm":case"m":return b.lwa(c.getMinutes(),l);case"ss":case"s":return b.lwa(c.getSeconds(),l);case"fffffff":case"FFFFFFF":case"ffffff":case"FFFFFF":case"fffff":case"FFFFF":case"ffff":case"FFFF":case"fff":case"FFF":case"ff":case"FF":case"f":case"F":return k=c.getMilliseconds()*Math.pow(10,l-3),"f"==e[0]?b.lwa(k,l):k.toFixed(0);case"tt":return c.getHours()<12?h.am[0]:h.pm[0];case"t":return c.getHours()<12?h.am[1]:h.pm[1];case"q":case"Q":return""+(Math.floor(c.getMonth()/3)+1);case"u":case"U":return f=a.DateTime.toFiscal(c,"U"==e),""+(Math.floor(f.getMonth()/3)+1);case"ggg":case"gg":case"g":return h.eras.length>1&&(i=b.iwa(c,h),i>-1)?"ggg"==e?h.eras[i].name:"gg"==e?h.eras[i].name[0]:h.eras[i].symbol:h.eras[0];case":":case"/":return h[e];case"K":return g=(""+c).match(/(\+|\-)(\d{2})(\d{2})/),g?g[1]+g[2]+g[3]:""}return l>1&&e[0]==e[l-1]&&('"'==e[0]||"'"==e[0])?e.substr(1,l-2):e},b.iwa=function(b,c){var d;if(a.isDate(b)){for(d=0;d=c.eras[d].start)return d}else if(a.isString(b))for(d=0;d0?Array(d).join("0")+c:c},b.mwa=function(b){var c=a.culture.Globalize.calendar,d=b.getHours();return c.am&&c.am[0]&&(d%=12,0==d&&(d=12)),d},b.dwa=function(a){var b=""+a,c=b.indexOf(".");return c<0?b+="00":(c+=2,b=b.replace(".","")+"00",b=b.substr(0,c)+"."+b.substr(c)),parseFloat(b)},b.hwa="a-z"+"u00c0-u017fu3000-u30ffu4e00-u9faf".replace(/u/g,"\\u")+"u1100-u11ffu3130-u318fua960-ua97fuac00-ud7afud7b0-ud7ff".replace(/u/g,"\\u"),b.yAa={},b}();a.Globalize=b}(b=a.core||(a.core={}))}(d||(d={})),function(a){var b;!function(b){"use strict";function c(c,d,h,i,j){var k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,A,B,C,D,E;if(void 0===d&&(d=null),void 0===h&&(h=!1),void 0===i&&(i=!1),void 0===j&&(j=!0),k=document.body,d instanceof HTMLElement){if(!b.contains(document.body,d))return;for(l=d.parentElement;l;l=l.parentElement)if("fixed"==getComputedStyle(l).position){k=l;break}}else for(l=f();l;l=l.parentElement)if(!b.hasClass(l,"gcdv-popup")&&"fixed"==getComputedStyle(l).position){k=l;break}if(k.lastChild!=c&&k.appendChild(c),d instanceof HTMLElement&&j&&(m=getComputedStyle(d),n=new b.Color(m.backgroundColor),n.a&&b.setCss(c,{color:m.color,backgroundColor:m.backgroundColor,fontFamily:m.fontFamily,fontSize:m.fontSize,fontWeight:m.fontWeight,fontStyle:m.fontStyle})),b.setCss(c,{position:"absolute",visibility:"hidden",display:""}),a.Control.refreshAll(c),o=getComputedStyle(c),p=parseFloat(o.marginTop)+parseFloat(o.marginBottom),q=parseFloat(o.marginLeft)+parseFloat(o.marginRight),r=new b.Size(c.offsetWidth+q,c.offsetHeight+p),s=new b.Point,t=null,d&&null!=d.clientX&&null!=d.clientY&&null!=d.pageX&&null!=d.pageY)d.clientX<=0&&d.clientY<=0&&d.target?t=d.target.getBoundingClientRect():(s.x=Math.max(0,d.pageX-pageXOffset),s.y=Math.max(0,d.pageY-pageYOffset));else if(d instanceof b.Point)s=d;else if(d instanceof HTMLElement)t=d.getBoundingClientRect();else if(d&&null!=d.top&&null!=d.left)t=d;else{if(null!=d)throw"Invalid ref parameter.";s.x=Math.max(0,(innerWidth-r.width)/2),s.y=Math.max(0,Math.round((innerHeight-r.height)/2*.7))}if(u=parseFloat(o.minWidth),t&&(v=t.top,w=innerHeight-t.bottom,x="rtl"==getComputedStyle(c).direction,x?s.x=Math.max(0,t.right-r.width):s.x=Math.max(0,Math.min(t.left,innerWidth-r.width)),h?s.y=v>r.height||v>w?Math.max(0,t.top-r.height):t.bottom:s.y=w>r.height||w>v?t.bottom:Math.max(0,t.top-r.height),u=Math.max(u,t.width),b.isIE()&&(y=c.offsetWidth-(c.clientWidth+parseInt(o.borderLeftWidth)+parseInt(o.borderRightWidth)),u-=y)),z=new b.Point(0,0),null!=d&&(k==document.body?z=new b.Point((-pageXOffset),(-pageYOffset)):k&&(A=k.getBoundingClientRect(),z=new b.Point(A.left-k.scrollLeft,A.top-k.scrollTop))),B={position:null==d?"fixed":"absolute",left:s.x-z.x,top:s.y-z.y,minWidth:u,display:"",visibility:"",zIndex:1500},i&&(c.style.opacity="0",g(function(a){c.style.opacity=1==a?"":""+a})),b.setCss(c,B),C=d instanceof MouseEvent?d.target:d,C instanceof HTMLElement)for(E=C.parentElement;E&&E!=document.body;E=E.parentElement)"auto"==getComputedStyle(E).overflowY&&E.scrollHeight>E.offsetHeight&&(D||(D=new a.Control(document.createElement("div"))),D.addEventListener(E,"scroll",function(a){e(c,!0),D.dispose()}))}b.showPopup=c;function d(a,b,c){void 0===b&&(b=!0),void 0===c&&(c=!1),c?g(function(c){a.style.opacity=""+(1-c),1==c&&(e(a,b),a.style.opacity="")}):e(a,b)}b.hidePopup=d;function e(a,b){a.style.display="none",b&&a.parentElement&&a.parentElement.removeChild(a)}function f(){var a,b=document.activeElement;return b&&(a=b.shadowRoot,a&&a.activeElement&&(b=a.activeElement)),b}b.getActiveElement=f;function g(a,c,d){var e,f;return void 0===c&&(c=400),void 0===d&&(d=35),b.asFunction(a),b.asNumber(c,!1,!0),b.asNumber(d,!1,!0),e=Date.now(),f=setInterval(function(){var b=Math.min(1,(Date.now()-e)/c);b=Math.sin(b*Math.PI/2),b*=b,requestAnimationFrame(function(){a(b)}),b>=1&&clearInterval(f)},d),+f}b.animate=g}(b=a.core||(a.core={}))}(d||(d={})),function(a){var b;!function(a){"use strict";var b,c,d=function(){function b(b){this.Ixa=this.Jxa.bind(this),this.Kxa=this.Lxa.bind(this),this.Mxa=!0,this.Nxa=6,this.Oxa=!1,this.Pxa=500,this.Qxa=0,this.Rxa=[],this.popup=new a.Event,a.copy(this,b)}return b.prototype.setTooltip=function(b,c){b=a.getElement(b),c=this.Sxa(c);var d=this.Cb(b);d>-1&&(this.FQ(b),this.Rxa.splice(d,1)),c&&(this.EQ(b),this.Rxa.push({element:b,content:c}))},b.prototype.show=function(d,e,f){var g,h;d=a.getElement(d),e=this.Sxa(e),f||(f=a.Rect.fromBoundingRect(d.getBoundingClientRect())),g=b.Txa,g||(g=b.Txa=document.createElement("div"),a.addClass(g,"gcdv-tooltip"),g.style.visibility="none",document.body.appendChild(g)),this.Uxa(e),h=new c(e),this.onPopup(h),h.content&&!h.cancel&&(this.Uxa(h.content),g.style.minWidth="",f=new a.Rect(f.left-(g.offsetWidth-f.width)/2,f.top-this.gap,g.offsetWidth,f.height+2*this.gap),a.showPopup(g,f,!0),document.addEventListener("mousedown",this.Kxa))},b.prototype.hide=function(){b.Txa&&(b.Txa.style.visibility="hidden",b.Txa.innerHTML=""),document.removeEventListener("mousedown",this.Kxa)},Object.defineProperty(b.prototype,"isVisible",{get:function(){return b.Txa&&"hidden"!=b.Txa.style.visibility},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"isContentHtml",{get:function(){return this.Mxa},set:function(b){this.Mxa=a.asBoolean(b)},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"gap",{get:function(){return this.Nxa},set:function(b){this.Nxa=a.asNumber(b)},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"showAtMouse",{get:function(){return this.Oxa},set:function(b){this.Oxa=a.asBoolean(b)},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"showDelay",{get:function(){return this.Pxa},set:function(b){this.Pxa=a.asInt(b)},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"hideDelay",{get:function(){return this.Qxa},set:function(b){this.Qxa=a.asInt(b)},enumerable:!0,configurable:!0}),b.prototype.onPopup=function(a){this.popup&&this.popup.raise(this,a)},b.prototype.Cb=function(a){for(var b=0;b-1&&(d=c.Rxa[f],e=c.Oxa?new a.Rect(b.clientX,b.clientY,0,0):null,c.show(d.element,d.content,e),c.Qxa>0&&(c.Xxa=setTimeout(function(){c.hide()},c.Qxa)))},d)},b.prototype.Lxa=function(){this.Vxa(),this.hide()},b.prototype.Vxa=function(){this.Wxa&&(clearTimeout(this.Wxa),this.Wxa=null),this.Xxa&&(clearTimeout(this.Xxa),this.Xxa=null)},b.prototype.Sxa=function(b){if(b=a.asString(b),b&&"#"==b[0]){var c=a.getElement(b);c&&(b=c.innerHTML)}return b},b.prototype.Uxa=function(a){var c=b.Txa;c&&(this.isContentHtml?c.innerHTML=a:c.textContent=a)},b}();a.Tooltip=d,b=function(){function a(){}return a}(),c=function(b){e(c,b);function c(c){var d=b.call(this)||this;return d.Uc=a.asString(c),d}return Object.defineProperty(c.prototype,"content",{get:function(){return this.Uc},set:function(b){this.Uc=a.asString(b)},enumerable:!0,configurable:!0}),c}(a.CancelEventArgs),a.TooltipEventArgs=c}(b=a.core||(a.core={}))}(d||(d={})),function(a){var b;!function(a){var b,c,d,e=function(){function b(b,c){void 0===b&&(b=0),void 0===c&&(c=0),this.width=a.asNumber(b),this.height=a.asNumber(c)}return b.prototype.equals=function(a){return a instanceof b&&this.width==a.width&&this.height==a.height},b.prototype.clone=function(){return new b(this.width,this.height)},b}();a.Size=e;function f(a,b){if(a&&b&&a.setAttribute&&!i(a,b)){var c=a.getAttribute("class");a.setAttribute("class",c?c+" "+b:b)}}a.addClass=f;function g(a,b){var c,d=document.createElement("div");return d.innerHTML=a,c=d.removeChild(d.firstChild),b instanceof HTMLElement?b.appendChild(c):c}a.createElement=g;function h(b){return b instanceof Element?b:a.isString(b)?document.querySelector(b):b&&b.jquery?b[0]:null}a.getElement=h;function i(a,b){if(a&&a.getAttribute){var c=RegExp("(\\s|^)"+b+"(\\s|$)");return a&&c.test(a.getAttribute("class"))}return!1}a.hasClass=i,b=function(){function b(b,c,d,e){this.left=a.asNumber(b),this.top=a.asNumber(c),this.width=a.asNumber(d),this.height=a.asNumber(e)}return Object.defineProperty(b.prototype,"right",{get:function(){return this.left+this.width},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"bottom",{get:function(){return this.top+this.height},enumerable:!0,configurable:!0}),b.prototype.equals=function(a){return a instanceof b&&this.left==a.left&&this.top==a.top&&this.width==a.width&&this.height==a.height},b.prototype.clone=function(){return new b(this.left,this.top,this.width,this.height)},b.fromBoundingRect=function(c){return null!=c.left?new b(c.left,c.top,c.width,c.height):null!=c.x?new b(c.x,c.y,c.width,c.height):void a.assert(!1,"Invalid source rectangle.")},b.union=function(a,c){var d=Math.min(a.left,c.left),e=Math.min(a.top,c.top),f=Math.max(a.right,c.right),g=Math.max(a.bottom,c.bottom);return new b(d,e,f-d,g-e)},b.intersection=function(a,c){var d=Math.max(a.left,c.left),e=Math.max(a.top,c.top),f=Math.min(a.right,c.right),g=Math.min(a.bottom,c.bottom);return new b(d,e,f-d,g-e)},b.prototype.contains=function(d){if(d instanceof c)return d.x>=this.left&&d.x<=this.right&&d.y>=this.top&&d.y<=this.bottom;if(d instanceof b){var e=d;return e.left>=this.left&&e.right<=this.right&&e.top>=this.top&&e.bottom<=this.bottom}a.assert(!1,"Point or Rect expected.")},b.prototype.inflate=function(a,c){return new b(this.left-a,this.top-c,this.width+2*a,this.height+2*c)},b}(),a.Rect=b,c=function(){function b(b,c){void 0===b&&(b=0),void 0===c&&(c=0),this.x=a.asNumber(b),this.y=a.asNumber(c)}return b.prototype.equals=function(a){return a instanceof b&&this.x==a.x&&this.y==a.y},b.prototype.clone=function(){return new b(this.x,this.y)},b}(),a.Point=c;function j(b,c){var d,e;if(c)for(d in c)"_"!=d[0]&&(a.assert(d in b,'Unknown property "'+d+'".'),e=c[d],b.Zz&&b.Zz(d,e)||(b[d]instanceof a.Event&&a.isFunction(e)?b[d].addHandler(e):a.isObject(e)&&b[d]&&"itemsSource"!=d?j(b[d],e):b[d]=e))}a.copy=j;function k(a){var c=a.getBoundingClientRect();return new b(c.left+pageXOffset,c.top+pageYOffset,c.width,c.height)}a.getElementRect=k;function l(a,b){var c,d;for(c=b;c&&a;){if(c===a)return!0;d=c,d=d.parentNode||d.host,c=d}return!1}a.contains=l;function m(b,c){var d,e,f;if(a.isArray(b))return void b.forEach(function(a){m(a,c)});d=b.style;for(e in c)f=c[e],"number"==typeof f&&e.match(/width|height|left|top|right|bottom|size|padding|margin'/i)&&(f+="px"),d[e]!=f&&(d[e]=""+f)}a.setCss=m;function n(){return null!=navigator.userAgent.match(/MSIE |Trident\/|Edge\//)}a.isIE=n;function o(a,b){var c=a?a.matches||a.webkitMatchesSelector||a.mozMatchesSelector||a.msMatchesSelector:null;if(c)for(;a;a=a.parentNode)if(a instanceof Element&&c.call(a,b))return a;return null}a.closest=o;function p(a,b){var c,d,e;for(q(a,"gcdv-state-disabled",!b),b?a.removeAttribute("disabled"):a.setAttribute("disabled","true"),c=a.querySelectorAll("input"),d=0;d0&&(e=this.fields[d[0].trim()],null!=e))?null==b.aggregate||null==c?new a.data.BOa(e):new a.data.COa(e,null==b.aggregate?c:b.aggregate):null},d.prototype.dTa=function(a,b){var c,d,e,f,g,h,i,j,k,l,m,n,o=[];if(null==a)return o;for(c=a,Array.isArray(a)||(c=[a]),d=0,e=c;d0)for(h=0,i=g;h"),f=0,g=e;fj)&&i.bw(j),(void 0===i.cw()||i.cw()l.valueOf())&&k.bw(l.valueOf()),(void 0===k.cw()||k.cw()=0?(null==m[g.xValue]||m[g.xValue]1)for(c=0,d=b;c0&&this.DOa.push(b[0]);this.MBa=this.$Ba(this.$z().encodings.details),this.zBa=this._Ba(this.$z().encodings.color),this.BBa=this.aCa(this.$z().encodings.size),this.DBa=this.bCa(this.$z().encodings.shape),this.sBa=this.cCa(this.$z().encodings.text),this.tBa=this.dCa(this.$z().encodings.tooltip)}else this.LBa=null,this.DOa=null,this.MBa=null,this.zBa=null,this.BBa=null,this.DBa=null,this.sBa=null,this.tBa=null},d.prototype.cRa=function(){"string"!=typeof this.colorField&&this.oPa().yBa(this.colorField)},d.prototype.dRa=function(){this.oPa().ABa(this.BBa)},d.prototype.eRa=function(a){void 0===a&&(a=null),this.oPa().CBa(this.DBa,a)},d.prototype.cTa=function(b,c){var d,e;if(null!=this.LBa)return null;if(null!=b&&null!=b.field&&"string"==typeof b.field)if(d=b.field.split(","),d.length>1){if(this.LBa=this.fields[d[0].trim()],e=this.fields[d[1].trim()],null!=e)return null==b.aggregate||null==c?new a.data.BOa(e):new a.data.COa(e,null==b.aggregate?c:b.aggregate)}else if(d.length>0&&(e=this.fields[d[0].trim()],null!=e))return null==b.aggregate||null==c?new a.data.BOa(e):new a.data.COa(e,null==b.aggregate?c:b.aggregate);return null},d.prototype.$Ba=function(b){return this.dTa(b,a.Group.Cluster)},d.prototype._Ba=function(b){return b.field==a.kPa?a.kPa:this.bBa(b)},d.prototype.aCa=function(a){return this.cBa(a)},d.prototype.bCa=function(a){return this.bBa(a)},d.prototype.cCa=function(b){return this.dBa(b,a.Aggregate.List)},d.prototype.dCa=function(b){return this.dBa(b,a.Aggregate.List)},d.prototype.IBa=function(a,c){return void 0===c&&(c=0),null!=this.xField?new b.qBa(this.xField,c):new b.SOa(c)},d.prototype.KBa=function(a,c){return null==a||a.length<=0?new b.SOa(0):new b.eCa(a,c)},d.prototype.EBa=function(){var b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s=[];for(b=0,c=this.DOa;b0)for(e=this.MBa[0],this.oPa().yBa(this.MBa[0],!1),f=new a.core.collections.CollectionView(this.items),g=new a.core.collections.PropertyGroupDescription(e.Cj),f.groupDescriptions.push(g),h=!0,i=null,j=null,k=0,l=f.groups;k0?this.MBa[0]:null},enumerable:!0,configurable:!0}),d}(b.kBa);b.iCa=c}(b=a.models||(a.models={}))}(d||(d={})),function(a){var b;!function(b){"use strict";var c,d,f,g=function(b){e(c,b);function c(a,c,d){var e=b.call(this,c)||this;return e.jCa=a,e.mCa=a.valueDefinition.toValue(e.items),e.nCa=d,e.color=e.parent.parent.OBa(e),e.size=e.parent.parent.SBa(e),e.shape=e.parent.parent.RBa(e),e}return Object.defineProperty(c.prototype,"parent",{get:function(){return this.jCa},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"style",{get:function(){return null==this.tEa&&(this.tEa=new a.options.AFa(this.parent.parent.$z().config.style)),this.tEa},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"color",{get:function(){return this.oCa},set:function(a){this.oCa!=a&&(this.oCa=a)},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"shape",{get:function(){return this.pCa},set:function(a){this.pCa!=a&&(this.pCa=a)},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"size",{get:function(){return this.qCa},set:function(a){this.qCa!=a&&(this.qCa=a)},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"offset",{get:function(){return this.rCa},set:function(a){this.rCa!=a&&(this.rCa=a)},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"xValue",{get:function(){return this.nCa},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"value",{get:function(){return this.mCa},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"tooltipContentSite",{get:function(){return new d(this)},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"dataLabelContentSite",{get:function(){return new f(this)},enumerable:!0,configurable:!0}),c.prototype.mQa=function(a){var b,c,d;for(b=0,c=a;b0?this.value/this.parent.VBa():null},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"PercentagePlot",{get:function(){return this.value/this.parent.parent.VBa(this.parent.valueDefinition)},enumerable:!0,configurable:!0}),c}(b.sAa);b.sCa=g,c=function(){function b(b){this.defaultProperty="value",a.Yya(function(){return null!=b}),this.tCa=b}return Object.defineProperty(b.prototype,"stringFormatting",{get:function(){return this.tCa.parent.parent.parent.parent.lPa()},enumerable:!0,configurable:!0}),b.prototype.wCa=function(b,c,d){var e=this,f={name:null,value:null,aggregate:null};return"PercentageCategory"==b?(f.name="PercentageCategory",f.value=this.tCa.PercentageCategory):"PercentageDetail"==b?(f.name="PercentageDetail",f.value=this.tCa.PercentageDetail):"PercentagePlot"==b&&(f.name="PercentagePlot",f.value=this.tCa.PercentagePlot),f.name?f:d.some(function(c){if(c.name==b)return f.name=c.name,f.value=c.toItem(e.tCa.items),f.aggregate=a.Aggregate[c.sOa],!0})?f:(this.literalTokens.some(function(a){var d;if(a.name==b)return"valueField"==a.name?(d=e.tCa.parent.parent.valueDefinitions,d&&d.length&&c>=0&&c=0&&c0&&(a=null!=a?a+"\n":"",a+="{detailFields.name}: {detailFields.value}",c.push(b.detailFields[0])),b.tooltipFields.forEach(function(b){!b.sOa&&c.some(function(a){return a.Cj==b.name})||(a+="\n{"+b.name+".name}: {"+b.name+".value}")}),a},b.prototype.fromToken=function(a,b){return this.wCa(a,b,this.tCa.parent.parent.tooltipFields)},b}(c),f=function(a){e(b,a);function b(){return null!==a&&a.apply(this,arguments)||this}return Object.defineProperty(b.prototype,"template",{get:function(){if(null==this.tCa.parent.parent.textFields||0===this.tCa.parent.parent.textFields.length)return null;var a=this.tCa.parent.parent.$z();return a&&a.encodings&&a.encodings.text&&null!=a.config&&null!=a.config.text&&a.config.text.template?a.config.text.template:this.rPa()},enumerable:!0,configurable:!0}),b.prototype.rPa=function(){var a,b,c,d=[],e=this.tCa.parent.parent.$z().encodings;if(e&&e.text)for(a=0,b=e.text;a=0?(null==b[f.xValue]||g>b[f.xValue])&&(b[f.xValue]=g):(null==c[f.xValue]||g>c[f.xValue])&&(c[f.xValue]=g)):(h=f.w5(b[f.xValue],c[f.xValue]),h>=0?b[f.xValue]=h:c[f.xValue]=h)},d.prototype.WBa=function(a){var b,c,d,e;if(null==this.yCa[a])for(this.yCa[a]=0,b=0,c=this.dataPoints;b0&&(this.LBa=this.MCa[0])},d.prototype.cTa=function(b,d){var e,f,g,h;if(void 0===d&&(d=null),null==this.MCa||this.MCa.length<=0)return e=new a.options.lGa(b),e.aggregate=null,c.prototype.cTa.call(this,e,d);if(null!=b.field)if("object"==typeof b.field){if(null!=b.field.lower&&"string"==typeof b.field.lower&&null!=b.field.upper&&"string"==typeof b.field.upper&&null!=this.fields[b.field.lower]&&null!=this.fields[b.field.upper]){if(this.fields[b.field.lower].Nc==a.core.DataType.Number&&this.fields[b.field.upper].Nc==a.core.DataType.Number)return new a.data.zOa(this.fields[b.field.lower],this.fields[b.field.upper]);if(this.fields[b.field.lower].Nc==a.core.DataType.Date&&this.fields[b.field.upper].Nc==a.core.DataType.Date)return new a.data.AOa(this.fields[b.field.lower],this.fields[b.field.upper])}}else if("string"==typeof b.field&&(f=null!=b.aggregate?a.core.asEnum(b.aggregate,a.Aggregate,!0):null,g=b.field.split(","),g.length>0&&(h=this.fields[g[0].trim()],null!=h)))return new a.data.COa(h,null==b.aggregate?a.Aggregate.Sum:b.aggregate);return null},d.prototype.NCa=function(b){var c,d,e,f,g,h=[];if(null==b.field)return null;for(c=b.field.split(">").reverse(),d=0,e=c;d0?new b.LCa(this.categoryFields,a,d):c.prototype.IBa.call(this,a,d)},d.prototype.XBa=function(a){return"categoryField"==a?this.categoryFields:c.prototype.XBa.call(this,a)},d}(b.iCa);b.OCa=c}(b=a.models||(a.models={}))}(d||(d={})),function(a){var b;!function(b){"use strict";var c=function(b){e(c,b);function c(c,d,e){var f,g,h=b.call(this,c,d,e)||this;return h.PCa=NaN,h.QCa=NaN,h.RCa=NaN,c.valueDefinition instanceof a.data.zOa?(f=c.valueDefinition.toItem(h.items),h.PCa=Math.min(f.lower,f.upper),h.QCa=Math.max(f.lower,f.upper),g={},null!=c.parent.xField&&(g[c.parent.xField.Cj]=d[0][c.parent.xField.Cj]),g[c.valueDefinition.UCa.Cj]=f.lower,g[c.valueDefinition.VCa.Cj]=f.upper,h.qPa(g)):c.valueDefinition instanceof a.data.AOa&&(f=c.valueDefinition.toItem(h.items),h.PCa=Math.min(f.lower.valueOf(),f.upper.valueOf()),h.QCa=Math.max(f.lower.valueOf(),f.upper.valueOf()),g={},null!=c.parent.xField&&(g[c.parent.xField.Cj]=d[0][c.parent.xField.Cj]),g[c.valueDefinition.UCa.Cj]=f.lower,g[c.valueDefinition.VCa.Cj]=f.upper,h.qPa(g)),h}return Object.defineProperty(c.prototype,"yLowerValue",{get:function(){return this.PCa},set:function(a){this.PCa=a},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"yPreviousValue",{get:function(){return this.RCa},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"yUpperValue",{get:function(){return this.QCa},set:function(a){this.QCa=a},enumerable:!0,configurable:!0}),c.prototype.w5=function(a,b){if(this.yLowerValue>=0){if(null==a)return Math.max(this.yLowerValue,this.yUpperValue);this.RCa=a,this.yUpperValue=this.yUpperValue-this.yLowerValue+a,this.yLowerValue=a}else{if(null==b)return Math.min(this.yLowerValue,this.yUpperValue);this.RCa=b,this.yLowerValue=this.yLowerValue-this.yUpperValue+b,this.yUpperValue=b}},c.prototype.NBa=function(a){this.PCa=this.PCa/a,this.QCa=this.QCa/a},c}(b.sCa);b.SCa=c}(b=a.models||(a.models={}))}(d||(d={})),function(a){var b;!function(b){"use strict";var c,d=function(a){e(d,a);function d(){return null!==a&&a.apply(this,arguments)||this}return Object.defineProperty(d.prototype,"ySite",{get:function(){return null==this.JBa&&(this.JBa=new c(this,this.valueDefinition)),this.JBa},enumerable:!0,configurable:!0}),d.prototype.CCa=function(a,c){return new b.SCa(this,a,c)},d}(b.DCa);b.TCa=d,c=function(){function b(a,b){this.pBa=!1,this.valueCount=NaN,this.groups=null,this.groupLevels=0,this.jCa=a,this.FOa=b}return Object.defineProperty(b.prototype,"name",{get:function(){return this.FOa.UCa.Cj+"-"+this.FOa.VCa.Cj},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"min",{get:function(){var a,b,c,d,e=NaN;for(a=0,b=this.jCa.dataPoints;ad)&&(e=d);return e},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"max",{get:function(){var a,b,c,d,e=NaN;for(a=0,b=this.jCa.dataPoints;a=0?null!=a&&(this.RCa=a,this.yValue+=a):null!=b&&(this.RCa=b,this.yValue+=b),this.yValue},c.prototype.NBa=function(a){this.WCa=this.WCa/a,this.RCa=this.RCa/a},c}(b.sCa);b.XCa=c}(b=a.models||(a.models={}))}(d||(d={})),function(a){var b;!function(b){"use strict";var c,d=function(a){e(d,a);function d(){return null!==a&&a.apply(this,arguments)||this}return Object.defineProperty(d.prototype,"ySite",{get:function(){return null==this.JBa&&(this.JBa=new c(this,this.valueDefinition)),this.JBa},enumerable:!0,configurable:!0}),d.prototype.CCa=function(a,c){return new b.XCa(this,a,c)},d}(b.DCa);b.YCa=d,c=function(){function b(a,b){this.groups=null,this.groupLevels=0,this.jCa=a,this.GOa=b}return Object.defineProperty(b.prototype,"name",{get:function(){return this.GOa.rOa.Cj},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"min",{get:function(){var a,b,c,d=NaN;for(a=0,b=this.jCa.dataPoints;ac.yValue)&&(d=c.yValue);return d},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"max",{get:function(){var a,b,c,d=NaN;for(a=0,b=this.jCa.dataPoints;a0}),this.nBa=d,this.groupLevels=b.length-1,this.name=b[0].Cj,this.dataType=b[0].Nc,this.isOrdinal=!0,this.Ey=[],e=new a.core.collections.CollectionView(c),f=b.length-1;f>=0;f--)g=b[f],h=new a.core.collections.PropertyGroupDescription(g.Cj),e.groupDescriptions.push(h);for(this.groups=[],i=0,j=0,k=e.groups;j0){var c=this.Ey[a];return c?c.label:null}return null},b.prototype.KCa=function(a,b,c){var d,e,f,g,h,i;if(null!=b.groups&&b.groups.length>0){for(d=[],e=a,f=0,g=b.groups;f0&&d.indexOf(h.ySite.name)==-1&&d.push(h.ySite.name),!e&&h.ySite.isOrdinal?(this.ECa=h.ySite,this.ICa=h.ySite.dataType,(isNaN(this.JCa)||this.JCah.ySite.min)&&(this.FCa=h.ySite.min),(isNaN(this.GCa)||this.GCa0&&c==a.ShowNulls.Zeros&&h.WSa()&&(this.FCa=0));d.length>0&&(this.HCa=d.join(",")),this.ICa!=a.core.DataType.Number&&this.ICa!=a.core.DataType.Date||(i=(this.GCa-this.FCa)/1.5,this.FCa>0&&(this.FCa=this.FCa-i,this.FCa<0&&(this.FCa=0)))}return Object.defineProperty(b.prototype,"name",{get:function(){return this.HCa},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"min",{get:function(){return this.FCa},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"max",{get:function(){return this.GCa},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"dataType",{get:function(){return this.ICa},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"isOrdinal",{get:function(){return null!=this.ECa},set:function(a){throw"Not support!"},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"valueCount",{get:function(){return this.JCa},enumerable:!0,configurable:!0}),b.prototype.labelFromValue=function(b,c){var d,e;return null!=this.ECa?this.ECa.labelFromValue(b,c):(d=a.plugins._za("Default"),null!=d&&(e=d.create(),null!=e)?e.format(c,b):null)},b}();b.eCa=c}(b=a.models||(a.models={}))}(d||(d={})),function(a){var b;!function(a){"use strict"}(b=a.models||(a.models={}))}(d||(d={})),function(a){var b;!function(b){"use strict";var c,d,f,g=function(a){e(b,a);function b(b,c,d){var e=a.call(this,d)||this;return e.$Ca=[],e.HCa=b,e.mCa=c.toValue(d),e}return Object.defineProperty(b.prototype,"item",{get:function(){return this.mCa},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"color",{get:function(){return this.oCa},set:function(a){this.oCa!=a&&(this.oCa=a)},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"name",{get:function(){return this.HCa},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"value",{get:function(){return this.mCa},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"children",{get:function(){return this.$Ca},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"tooltipContentSite",{get:function(){return new d(this)},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"dataLabelContentSite",{get:function(){return new f(this)},enumerable:!0,configurable:!0}),b}(b.sAa);b._Ca=g,c=function(){function c(c){var d,e;if(this.al=null,this.defaultProperty="value",this.literalTokens=[],a.Yya(function(){return null!=c}),this.zoa=c,this.zoa instanceof b.aDa?this.al=this.zoa:this.zoa instanceof b.bDa&&(this.al=this.zoa.al()),null!=this.al)for(d=this.al.parent.TOa(),this.aOa=[],e=0;e0)for(d=0,e=c;d0?(c=this.S0,a=c.map(function(a){return"{"+a+".name}:{"+a+".value}"}),a.join("\n")):null},b}(c),f=function(a){e(b,a);function b(b){var c,d,e,f,g=a.call(this,b)||this,h=g.al.parent.$z().config.text.template;if(null==h||h.length<=0)g.S0=[],g.S0=g.aOa;else if(g.S0=[],c=g.al.parent.$z().encodings.text,c.length>0)for(d=0,e=c;d0))return null;for(a=0,b=e;a0)for(c=0,d=b;c0&&(e=this.fields[d[0].trim()],null!=e))?new a.data.COa(e,null==b.aggregate?a.Aggregate.Sum:b.aggregate):null},d.prototype.eDa=function(a,c,d,e){return new b.bDa(a,c,d,e)},d.prototype.dDa=function(a,c,d,e){return new b.aDa(a,c,d,e)},d.prototype.RNa=function(){var b,c,d,e,f,g,h,i=this.dDa(this,"",this.FOa,this.items);if(this.MBa&&this.MBa.length>0){for(b=new a.core.collections.CollectionView(this.items),c=0,d=this.MBa;c0)for(c=0,d=b.groups;c0)for(g=0,h=e;g0)for(f=0,g=d;f0)for(g=0,h=e;gb.to?1:a.to0&&null!=a.actions&&a.actions.length>0?this.hQa=this.ODa():this.hQa=null}return c.prototype.$z=function(){return this.eAa},c.prototype.Ok=function(){return this.iQa},c.prototype.evaluate=function(a){b.Xya&&null!=this.hQa&&(this.iQa=a,this.hQa.getCalcSourceModel().setFormulaByName("condition",this.$z().condition))},c.prototype.SDa=function(a){return"current"==a||a.length>8&&"current."==a.substring(0,8)||("parent"==a||a.length>5&&"parent."==a.substring(0,5))},c.prototype.ge=function(a){if(("parent"==a||a.length>7&&"parent."==a.substring(0,7))&&(a="current."+a),"current"==a)return this.Ok();if(a.length>8&&"current."==a.substring(0,8)&&null!=this.Ok()){var c=new b.core.Binding(a.substring(8));return c.getValue(this.Ok())}},c.prototype.TDa=function(){var a,b,c,e,f;for(a=0,b=this.$z().actions;a9&&"previous."==a.substring(0,9)||("next"==a||a.length>5&&"next."==a.substring(0,5)||("parent"==a||a.length>5&&"parent."==a.substring(0,5)||c.prototype.SDa.call(this,a))))},d.prototype.ge=function(d){var e,f=this.Ok();if(f instanceof b.XCa||f instanceof b.SCa){if("index"==d)return this.mi(f);if("previous"==d)return this.JGa(f);if(d.length>9&&"previous."==d.substring(0,9)&&null!=this.JGa(f))return e=new a.core.Binding(d.substring(9)),e.getValue(this.JGa(f));if("next"==d)return this.KGa(f);if(d.length>5&&"next."==d.substring(0,5)&&null!=this.KGa(f))return e=new a.core.Binding(d.substring(5)),e.getValue(this.KGa(f))}return c.prototype.ge.call(this,d)},d.prototype.jQa=function(a){return"DataPoint"==a.targetElement?this.Ok():null},d.prototype.JGa=function(a){var b=a.parent,c=this.mi(a);return c>0?b.dataPoints[c-1]:void 0},d.prototype.KGa=function(a){var b=a.parent,c=this.mi(a);return c9&&"previous."==a.substring(0,9)||("next"==a||a.length>5&&"next."==a.substring(0,5)||("parent"==a||a.length>5&&"parent."==a.substring(0,5)||c.prototype.SDa.call(this,a))))},d.prototype.ge=function(d){var e;if(this.Ok()instanceof b.YCa||this.Ok()instanceof b.TCa){if("index"==d)return this.mi(this.Ok());if("previous"==d)return this.JGa(this.Ok());if(d.length>9&&"previous."==d.substring(0,9)&&null!=this.JGa(this.Ok()))return e=new a.core.Binding(d.substring(9)),e.getValue(this.JGa(this.Ok()));if("next"==d)return this.KGa(this.Ok());if(d.length>5&&"next."==d.substring(0,5)&&null!=this.KGa(this.Ok()))return e=new a.core.Binding(d.substring(5)),e.getValue(this.KGa(this.Ok()))}return c.prototype.ge.call(this,d)},d.prototype.jQa=function(a){return"Group"==a.targetElement?this.Ok():null},d.prototype.JGa=function(a){var b=a.parent,c=this.mi(a);return c>0?b.dataSeriesList[c-1]:void 0},d.prototype.KGa=function(a){var b=a.parent,c=this.mi(a);return c"):""},b.prototype.toLines=function(a){var b=this.kOa(a);return b?b.split("\n"):[]},b.prototype.kOa=function(a){var b,c,d,e,f,g,h,i,j;if(null==a)return null;if(b=a.template,null==b)return null;if(c=/\{\s*(\w+)(\[(\d+)\])?(\.\w*)*\s*(\:\s*.+?)*\s*\}/g,d=b.match(c),null!=d&&d.length>0)for(e=0,f=d;e=0)}return Object.defineProperty(b.prototype,"element",{get:function(){return this._Ha},enumerable:!0,configurable:!0}),b.prototype.beginRender=function(){for(;this._Ha.firstChild;)this._Ha.removeChild(this._Ha.firstChild);this._Ha.appendChild(this.bIa),this._Ha.appendChild(this.eIa),this.$Ha={}},b.prototype.endRender=function(){this.eIa.parentNode&&this._Ha.removeChild(this.eIa)},b.prototype.setViewportSize=function(b,c){a.Yya(function(){return null!=b&&b>0}),a.Yya(function(){return null!=c&&c>0}),this._Ha.setAttribute("width",""+b),this._Ha.setAttribute("height",""+c)},b.prototype.addClipRect=function(a,c){var d,e;a&&c&&(d=document.createElementNS(b.aIa,"clipPath"),e=document.createElementNS(b.aIa,"rect"),e.setAttribute("x",a.left.toFixed(1)),e.setAttribute("y",a.top.toFixed(1)),e.setAttribute("width",a.width.toFixed(1)),e.setAttribute("height",a.height.toFixed(1)),d.appendChild(e),d.setAttribute("id",c),this._Ha.appendChild(d))},b.prototype.drawEllipse=function(a,c,d,e,f,g){var h=document.createElementNS(b.aIa,"ellipse");return this.GDa(h,"stroke",this.stroke),null!=this.opacity&&h.setAttribute("opacity",""+this.opacity),null!==this.strokeWidth&&h.setAttribute("stroke-width",""+this.strokeWidth),null!==this.strokeDasharray&&h.setAttribute("stroke-dasharray",this.strokeDasharray),this.GDa(h,"fill",this.fill),h.setAttribute("cx",a.toFixed(1)),h.setAttribute("cy",c.toFixed(1)),h.setAttribute("rx",d.toFixed(1)),h.setAttribute("ry",e.toFixed(1)),f&&h.setAttribute("class",f),this.GHa(h,g),this.gIa(h),h},b.prototype.drawRect=function(a,c,d,e,f,g,h){var i=document.createElementNS(b.aIa,"rect");return this.GDa(i,"fill",this.fill),this.GDa(i,"stroke",this.stroke),null!=this.opacity&&i.setAttribute("opacity",""+this.opacity),null!==this.strokeWidth&&i.setAttribute("stroke-width",""+this.strokeWidth),null!==this.strokeDasharray&&i.setAttribute("stroke-dasharray",this.strokeDasharray),i.setAttribute("x",a.toFixed(1)),i.setAttribute("y",c.toFixed(1)),d>0&&d<.05?i.setAttribute("width","0.1"):i.setAttribute("width",d.toFixed(1)),e>0&&e<.05?i.setAttribute("height","0.1"):i.setAttribute("height",e.toFixed(1)),h&&i.setAttribute("clip-path","url(#"+h+")"),f&&i.setAttribute("class",f),this.GHa(i,g),this.gIa(i),i},b.prototype.drawLine=function(a,c,d,e,f,g){var h=document.createElementNS(b.aIa,"line");return this.GDa(h,"stroke",this.stroke),null!=this.opacity&&h.setAttribute("opacity",""+this.opacity),null!==this.strokeWidth&&h.setAttribute("stroke-width",""+this.strokeWidth),null!==this.strokeDasharray&&h.setAttribute("stroke-dasharray",this.strokeDasharray),h.setAttribute("x1",a.toFixed(1)),h.setAttribute("x2",d.toFixed(1)),h.setAttribute("y1",c.toFixed(1)),h.setAttribute("y2",e.toFixed(1)),f&&h.setAttribute("class",f),this.GHa(h,g),this.gIa(h),h},b.prototype.drawLines=function(a,c,d,e,f){var g,h,i,j;if(a&&c&&(g=Math.min(a.length,c.length),g>0)){for(h=document.createElementNS(b.aIa,"polyline"),this.GDa(h,"stroke",this.stroke),null!=this.opacity&&h.setAttribute("opacity",""+this.opacity),null!==this.strokeWidth&&h.setAttribute("stroke-width",""+this.strokeWidth),null!==this.strokeDasharray&&h.setAttribute("stroke-dasharray",this.strokeDasharray),h.setAttribute("fill","none"),i="",j=0;j0)){for(m=document.createElementNS(b.aIa,"polyline"),this.GDa(m,"stroke",this.stroke),null!=this.opacity&&m.setAttribute("opacity",""+this.opacity),null!==this.strokeWidth&&m.setAttribute("stroke-width",""+this.strokeWidth),null!==this.strokeDasharray&&m.setAttribute("stroke-dasharray",this.strokeDasharray),m.setAttribute("fill","none"),n="",o=0;o0)){for(h=document.createElementNS(b.aIa,"polygon"),this.GDa(h,"stroke",this.stroke),null!=this.opacity&&h.setAttribute("opacity",""+this.opacity),null!==this.strokeWidth&&h.setAttribute("stroke-width",""+this.strokeWidth),null!==this.strokeDasharray&&h.setAttribute("stroke-dasharray",this.strokeDasharray),this.GDa(h,"fill",this.fill),i="",j=0;j=2*Math.PI?this.drawEllipse(c,d,e,e,h,i):(k=document.createElementNS(b.aIa,"path"),this.GDa(k,"fill",this.fill),this.GDa(k,"stroke",this.stroke),null!=this.opacity&&k.setAttribute("opacity",""+this.opacity),null!==this.strokeWidth&&k.setAttribute("stroke-width",""+this.strokeWidth),null!==this.strokeDasharray&&k.setAttribute("stroke-dasharray",this.strokeDasharray),l=new a.core.Point(c,d),l.x+=e*Math.cos(f),l.y+=e*Math.sin(f),m=f+g,n=new a.core.Point(c,d),n.x+=e*Math.cos(m),n.y+=e*Math.sin(m),o=" 0 0,1 ",Math.abs(g)>Math.PI&&(o=" 0 1,1 "),p="M "+l.x.toFixed(1)+","+l.y.toFixed(1),p+=" A "+e.toFixed(1)+","+e.toFixed(1)+o,p+=n.x.toFixed(1)+","+n.y.toFixed(1),p+=" L "+c.toFixed(1)+","+d.toFixed(1)+" z",k.setAttribute("d",p),j&&k.setAttribute("clip-path","url(#"+j+")"),h&&k.setAttribute("class",h),this.GHa(k,i),this.gIa(k),k)},b.prototype.drawDonutSegment=function(c,d,e,f,g,h,i,j,k){var l,m,n,o,p,q,r,s,t,u=!1;return h>=2*Math.PI&&(u=!0,h-=.001),l=document.createElementNS(b.aIa,"path"),this.GDa(l,"fill",this.fill),this.GDa(l,"stroke",this.stroke),null!=this.opacity&&l.setAttribute("opacity",""+this.opacity),null!==this.strokeWidth&&l.setAttribute("stroke-width",""+this.strokeWidth),null!==this.strokeDasharray&&l.setAttribute("stroke-dasharray",this.strokeDasharray),m=new a.core.Point(c,d),m.x+=e*Math.cos(g),m.y+=e*Math.sin(g),n=g+h,o=new a.core.Point(c,d),o.x+=e*Math.cos(n),o.y+=e*Math.sin(n),p=new a.core.Point(c,d),p.x+=f*Math.cos(n),p.y+=f*Math.sin(n),q=new a.core.Point(c,d),q.x+=f*Math.cos(g),q.y+=f*Math.sin(g),r=" 0 0,1 ",s=" 0 0,0 ",Math.abs(h)>Math.PI&&(r=" 0 1,1 ",s=" 0 1,0 "),t="M "+m.x.toFixed(3)+","+m.y.toFixed(3),t+=" A "+e.toFixed(3)+","+e.toFixed(3)+r,t+=o.x.toFixed(3)+","+o.y.toFixed(3),t+=u?" M "+p.x.toFixed(3)+","+p.y.toFixed(3):" L "+p.x.toFixed(3)+","+p.y.toFixed(3),t+=" A "+f.toFixed(3)+","+f.toFixed(3)+s,t+=q.x.toFixed(3)+","+q.y.toFixed(3),u||(t+=" z"),l.setAttribute("d",t),k&&l.setAttribute("clip-path","url(#"+k+")"),i&&l.setAttribute("class",i),this.GHa(l,j),this.gIa(l),l},b.prototype.drawString=function(a,b,c,d){var e,f=this.dIa(b,a);return c&&f.setAttribute("class",c),this.GHa(f,d),this.gIa(f),e=this.hIa(f),f.setAttribute("y",(b.y-(e.y+e.height-b.y)).toFixed(1)),f},b.prototype.drawStringRotated=function(a,c,d,e,f,g){var h,i,j=this.dIa(c,a);return f&&j.setAttribute("class",f),this.GHa(j,g),h=document.createElementNS(b.aIa,"g"),h.setAttribute("transform","rotate("+e.toFixed(1)+","+d.x.toFixed(1)+","+d.y.toFixed(1)+")"),h.appendChild(j),this.gIa(h),i=this.hIa(j),j.setAttribute("y",(c.y-(i.y+i.height-c.y)).toFixed(1)),j},b.prototype.measureString=function(b,c,d,e){var f,g,h=new a.core.Size(0,0);if(this.fontSize&&this.cIa.setAttribute("font-size",this.fontSize),this.fontFamily&&this.cIa.setAttribute("font-family",this.fontFamily),c&&this.cIa.setAttribute("class",c),d&&this.eIa.setAttribute("class",d),this.GHa(this.cIa,e),this.iIa(this.cIa,b),f=this.hIa(this.cIa),h.width=f.width,h.height=f.height,this.cIa.removeAttribute("font-size"),this.cIa.removeAttribute("font-family"),this.cIa.removeAttribute("class"),e)for(g in e)this.cIa.removeAttribute(this.jIa(g));return this.eIa.removeAttribute("class"),this.cIa.textContent=null,h},b.prototype.startGroup=function(a,c,d){void 0===d&&(d=!1);var e=document.createElementNS(b.aIa,"g");return a&&e.setAttribute("class",a),c&&e.setAttribute("clip-path","url(#"+c+")"),this.gIa(e),d&&e.transform.baseVal.appendItem(this._Ha.createSVGTransform()),this.cb=e,e},b.prototype.endGroup=function(){if(this.cb){var a=this.cb.parentNode;a==this._Ha?this.cb=null:this.cb=a}},b.prototype.drawImage=function(a,c,d,e,f){var g=document.createElementNS(b.aIa,"image");return g.setAttributeNS(b.kIa,"href",a),g.setAttribute("x",c.toFixed(1)),g.setAttribute("y",d.toFixed(1)),g.setAttribute("width",e.toFixed(1)),g.setAttribute("height",f.toFixed(1)),this.gIa(g),g},b.prototype.gIa=function(a){var b=this.cb;b||(b=this._Ha),b.appendChild(a)},b.prototype.iIa=function(a,b){var c,d,e,f,g=b?""+b:null;if(g&&g.indexOf("tspan")>=0)try{for(a.textContent=null,c=new DOMParser,d=''+g+"",e=c.parseFromString(d,"text/xml").documentElement,f=e.firstChild;f;)a.appendChild(a.ownerDocument.importNode(f,!0)),f=f.nextSibling}catch(a){throw Error("Error parsing XML string.")}else a.textContent=g},b.prototype.dIa=function(a,c){var d=document.createElementNS(b.aIa,"text");return this.iIa(d,c),null!=this.textFill&&d.setAttribute("fill",this.textFill),d.setAttribute("x",a.x.toFixed(1)),d.setAttribute("y",a.y.toFixed(1)),this.fontSize&&d.setAttribute("font-size",this.fontSize),this.fontFamily&&d.setAttribute("font-family",this.fontFamily),d},b.prototype.GHa=function(a,b){var c,d;if(b)for(c in b)d=b[c],void 0!==d&&null!==d&&("fill"===c||"stroke"===c?this.GDa(a,c,b[c]):"strokeWidth"===c?a.setAttribute("stroke-width",d):"fontSize"===c?a.setAttribute("font-size",d):"fontFamily"===c?a.setAttribute("font-family",d):"strokeDasharray"===c?a.setAttribute("stroke-dasharray",d):"color"===c?a.setAttribute("color",d):"opacity"===c?a.setAttribute("opacity",d):"_"==c.substring(0,1)||"constructor"==c||"hAlign"==c||a.setAttribute(this.jIa(c),b[c]))},b.prototype.jIa=function(a){return a.replace(/[A-Z]/g,function(a){return"-"+a.toLowerCase()})},b.prototype.hIa=function(c){var d,e,f,g,h,i=c.getAttribute("font-size"),j=c.getAttribute("font-family");if(d=a.core.isIE()?c.textContent:c.innerHTML,e=c.getAttribute("x"),f=c.getAttribute("y"),g=i+","+d+","+e+","+f+j,null!=this.xn[g])return this.xn[g];if(h=null,b.fIa)try{h=c.getBBox()}catch(a){h={x:0,y:0,width:0,height:0}}else h=c.getBBox();return this.xn[g]=h,h},b.prototype.GDa=function(d,e,f){var g,h,i=c.tryParse(f);null!=i&&(a.core.isString(i)?d.setAttribute(e,i):(null==this.$Ha[f]&&(g="gc"+(1e6*Math.random()).toFixed(),null!=i.x1?(h=document.createElementNS(b.aIa,"linearGradient"),["x1","y1","x2","y2","gradientUnits"].forEach(function(a){null!=i[a]&&h.setAttribute(a,i[a])})):null!=i.r&&(h=document.createElementNS(b.aIa,"radialGradient"),["cx","cy","r","fx","fy","fr","gradientUnits"].forEach(function(a){null!=i[a]&&h.setAttribute(a,i[a])})),i.colors&&i.colors&&i.colors.length>0&&i.colors.forEach(function(a){var c=document.createElementNS(b.aIa,"stop");null!=a.color&&c.setAttribute("stop-color",a.color),null!=a.offset&&c.setAttribute("offset",a.offset),null!=a.opacity&&c.setAttribute("stop-opacity",a.opacity),h.appendChild(c)}),h.setAttribute("id",g),this.bIa.appendChild(h),this.$Ha[f]=g),d.setAttribute(e,"url(#"+this.$Ha[f]+")")))},b.aIa="http://www.w3.org/2000/svg",b.kIa="http://www.w3.org/1999/xlink",b}();b.oAa=d,c=function(){function a(){}return a.tryParse=function(b){var c,d,e,f,g,h;return a.parsedColor[b]?a.parsedColor[b]:null==b||b.indexOf("-")===-1?b:(c=b.replace(/\s+/g,"").split(/\-/g),d=c[0][0],e=!1,g=c[0].match(/\(\S+\)/)[0].replace(/[\(\\)]/g,"").split(/\,/g),"l"===d||"L"===d?(f={x1:"0",y1:"0",x2:"0",y2:"0",colors:[]},"l"===d&&(e=!0),["x1","y1","x2","y2"].forEach(function(a,b){null!=g[b]&&(f[a]=e?100*+g[b]+"%":g[b]+"")})):"r"!==d&&"R"!==d||(f={cx:"0",cy:"0",r:"0",colors:[]},"r"===d&&(e=!0),["cx","cy","r","fx","fy","fr"].forEach(function(a,b){null!=g[b]&&""!==g[b]&&(f[a]=e?100*+g[b]+"%":g[b]+"")})),e||(f.gradientUnits="userSpaceOnUse"),a.parsedColor[b]=f,h=c.length-1,c.forEach(function(a,b){var c,d;a.indexOf(")")>-1&&(a=a.match(/\)\S+/)[0].replace(")","")),c=a.split(":"),d={color:"black"},null!=c[0]&&(d.color=c[0]),null!=c[1]?d.offset=e?100*+c[1]+"%":c[1]+"":d.offset=b/h*100+"%",null!=c[2]&&(d.opacity=c[2]),f.colors.push(d)}),f)},a.parsedColor={},a}()}(b=a.models||(a.models={}))}(d||(d={})),function(a){var b;!function(a){"use strict"}(b=a.models||(a.models={}))}(d||(d={})),function(a){var b;!function(b){"use strict";var c=function(){function b(){}return b.prototype.format=function(b,c){return a.core.Globalize.format(c,b)},b.prototype.defaultFormat=function(b,c){switch(void 0===c&&(c=!1),b){case a.core.DataType.Number:return c?"p":"N";case a.core.DataType.Date:return"d";default:return""}},b}();b.RRa=c}(b=a.models||(a.models={}))}(d||(d={})),function(a){var b;!function(a){"use strict"}(b=a.models||(a.models={}))}(d||(d={})),function(a){var b;!function(b){"use strict";var c=function(){function b(){}return b.prototype.render=function(b,c,d){void 0===d&&(d=null);var e=c.widthc.height&&(f.left=f.left+(c.width-e)/2,f.width=e),c.height>c.width&&(f.top=f.top+(c.height-e)/2,f.height=e),g=.5773502691896257,h=new a.core.Point(f.left+f.width/2,f.top),i=new a.core.Point(f.left,f.width/2/g+f.top),j=new a.core.Point(f.right,i.y),k=[],l=[],k.push(h.x),k.push(i.x),k.push(j.x),l.push(h.y),l.push(i.y),l.push(j.y),b.drawPolygon(k,l,null,a.core.merge({fill:this.tE,strokeWidth:0},d))},b}();b.XRa=c}(b=a.models||(a.models={}))}(d||(d={})),function(a){var b;!function(b){"use strict";var c=function(){function b(){}return b.prototype.render=function(b,c,d){var e,f,g;void 0===d&&(d=null),e=c.widththis.$Da&&(this.$Da=b),isNaN(this.maxValue)||(this.$Da=this.maxValue),isNaN(this.minValue)||(this._Da=this.minValue),this._Da==this.maxValue&&(this._Da-=.5,this.$Da+=.5),c=this.$Da-this._Da,isNaN(this.UDa)?(this.VDa=this.aEa(),(0==this.VDa||isNaN(this.VDa))&&(this.VDa=.1*this.mDa(c/this.tickNumber))):(this.XDa=Math.round(c/this.UDa+.5)+1,this.VDa=this.UDa),0==this.unit&&(this.unit=void 0),this.niceMaxValue=(Math.floor(this.$Da/this.unit)+1)*this.unit,this.niceMinValue=0==this._Da?this._Da:(Math.floor(this._Da/this.unit)-1)*this.unit,this.ZDa=this.bEa(),this},b.prototype.bEa=function(){var a,b,c=[];if(!isNaN(this.niceMinValue))for(a=NaN,b=0;isNaN(a)||a=this._Da&&c.push(a);return c},Object.defineProperty(b.prototype,"ticks",{get:function(){return this.ZDa},enumerable:!0,configurable:!0}),b.prototype.getScaleValue=function(a){var b;return b=this.$Da==this._Da?(this.end-this.start)/2+this.start:(this.end-this.start)/(this.$Da-this._Da)*(a-this._Da)+this.start},b.prototype.range=function(a){return this.ranges=a,this.refresh(),this},b.prototype.aEa=function(){var a,b,c,d=NaN;return isNaN(d)&&(a=this.$Da-this._Da,b=this.nDa(a),c=a/this.tickNumber,d=this.oDa(2*c,-b,!0),d=0?Math.floor(b):Math.ceil(b),d=a/Math.pow(10,c),d<3&&(c=-c+1,d=a/Math.pow(10,c),d<3&&(c+=1)),c)},b.prototype.oDa=function(a,b,c){var d,e;return 0==a?a:(a<0&&(a=-a),d=a/Math.pow(10,b),e=10,c?d<1.5?e=1:d<3?e=2:d<4.5?e=4:d<7&&(e=5):d<=1?e=1:d<=2?e=2:d<=5&&(e=5),e*Math.pow(10,b))},b.prototype.mDa=function(a){var b,c,d,e;return 0==a?a:(a<0&&(a=-a),b=Math.log(a)/Math.LN10,c=Math.floor(b),d=a/Math.pow(10,c),e=10,d<=1?e=1:d<=2?e=2:d<=5&&(e=5),e*Math.pow(10,c))},b}(a.Scale);a.LinearScale=b}(d||(d={})),function(a){"use strict";var b=function(a){e(b,a);function b(b,c){var d=a.call(this,c)||this;return d.logBase=b,d}return Object.defineProperty(b.prototype,"max",{get:function(){return this.$Da},set:function(a){this.maxValue=a},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"min",{get:function(){return this._Da},set:function(a){this.minValue=a},enumerable:!0,configurable:!0}),b.prototype.refresh=function(){var a,b,c,d;return this.reversed?(this.start=this.ranges[1],this.end=this.ranges[0]):(this.start=this.ranges[0],this.end=this.ranges[1]),this._Da=this.domains[0],this.$Da=this.domains[1],isNaN(this.maxValue)||(this.$Da=this.maxValue),isNaN(this.minValue)||(this._Da=this.minValue),this.logBase>0&&(a=this.logBase,b=Math.log(a),c=Math.ceil(Math.log(this.$Da)/b),this.$Da=Math.pow(a,c),d=Math.floor(Math.log(this._Da)/b),this._Da=Math.pow(a,d),(this._Da<=0||isNaN(this._Da))&&(this._Da=1),this.$Dab?1:-1}),this},b.prototype.range=function(a){return this.ranges=a,this.refresh(),this},b.prototype.getScaleValue=function(a){var b,c;return a0&&(r=!1,q=c),qh?g=Math.floor(f/h+1):r&&(f<=.2*h?q=.2*m:f<=.1*h&&(q=.1*m))),i=o;i<=p;i+=g)if(r)for(j=Math.pow(m,i),k=0;k*q=a&&l<=b&&(0==k?d.unshift(l):d.push(l));else l=Math.pow(q,i),l>=a&&l<=b&&d.push(l)},b}(a.Scale);a.LogScale=b}(d||(d={})),function(a){"use strict";var b=function(a){e(b,a);function b(b,c){var d=a.call(this,c)||this;return d.isRanges=!1,d.eEa=b,d}return b.prototype.refresh=function(){var a,b=this._Da,c=this.$Da;for(this._Da=this.domains[0],this.$Da=this.domains[1],bthis.$Da&&(this.$Da=c),isNaN(this.maxValue)||(this.$Da=this.maxValue),isNaN(this.minValue)||(this._Da=this.minValue),this._Da==this.maxValue&&(this._Da-=.5,this.$Da+=.5),this.reversed?(this.start=this.ranges[1],this.end=this.ranges[0]):(this.start=this.ranges[0],this.end=this.ranges[1]),isNaN(this.UDa)&&(this.UDa=1),this.ZDa=[],a=Math.round(this._Da);a<=Math.floor(this.$Da);a+=this.UDa)this.ZDa.push(parseFloat(a.toFixed(1/this.UDa)));return this},b.prototype.range=function(a){return this.ranges=a,this.bound=!1,this.refresh(),this},b.prototype.domain=function(a){return this.domains=a,this},b.prototype.getScaleValue=function(a){var b;return this.$Da==this._Da?b=(this.end-this.start)/2+this.start:(athis.$Da&&(a=this.$Da),b=(this.end-this.start)/(this.$Da-this._Da)*(a-this._Da)+this.start),b},Object.defineProperty(b.prototype,"tickNumber",{get:function(){return Math.floor(this.$Da)+1},set:function(a){},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"ticks",{get:function(){return this.ZDa},enumerable:!0,configurable:!0}),b}(a.LinearScale);a.OrdinalScale=b}(d||(d={})),function(a){"use strict";var b=function(b){e(c,b);function c(){return null!==b&&b.apply(this,arguments)||this}return Object.defineProperty(c.prototype,"max",{get:function(){return this.maxValue},set:function(a){this.maxValue=a},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"min",{get:function(){return this.minValue},set:function(a){this.minValue=a},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"tickNumber",{get:function(){return this.XDa?this.XDa:10},set:function(a){this.XDa=a,this.refresh()},enumerable:!0,configurable:!0}),c.prototype.refresh=function(){var b,c,d,e,f;return this.reversed?(this.start=this.ranges[1],this.end=this.ranges[0]):(this.start=this.ranges[0],this.end=this.ranges[1]),b=this.minValue,c=this.maxValue,this.minValue=this.domains[0],this.maxValue=this.domains[1],bthis.maxValue&&(this.maxValue=c),this.minValue==this.maxValue&&(this.minValue-=.5,this.maxValue+=.5),d=this.maxValue-this.minValue,this.niceMaxValue=(Math.floor(this.maxValue/this.UDa)+1)*this.UDa,this.niceMinValue=0==this.minValue?this.minValue:(Math.floor(this.minValue/this.UDa)-1)*this.UDa,e=Math.min(a.fEa.MAX_MAJOR,Math.floor(d/this.UDa)+1),f=Math.floor(this.minValue/this.UDa)*this.UDa,f12&&(x=12),d=.001*(this.maxValue-this.minValue)/x,e=new a.hEa(d*a.hEa.TicksPerSecond),f=isNaN(this.UDa)?a.iEa.NiceTimeSpan(e,w):a.hEa.fromDays(this.UDa),g=f.Ticks,h=a.iEa.RoundTime(s,f.TotalDays,!1),isFinite(h)&&(s=h),i=a.iEa.RoundTime(t,f.TotalDays,!0),isFinite(i)&&(t=i),j=new Date(s),k=new Date(t),f.TotalDays>=365&&isNaN(this.UDa))for(j=new Date(u.getFullYear(),1,1),j=30&&isNaN(this.UDa))for(j=new Date(u.getFullYear(),u.getMonth(),1),jp&&(m=new Date(m.getTime()+Math.floor(q/p)*p));m<=v;m=new Date(m.getTime()+p))m>=u&&(n=m.valueOf(),r.push(n));return r},c}(a.LinearScale);a.TimeScale=b}(d||(d={})),function(a){var b;!function(b){"use strict";var c=function(){function b(){}return b.prototype.getSymbol=function(b){var c=a.plugins.$Ra();return null!=c&&c.length>0?c[b%c.length]:null},b}();b.Zza=c}(b=a.models||(a.models={}))}(d||(d={})),function(a){var b;!function(a){"use strict";var b=function(){function a(a,b,c,d){void 0===d&&(d=!1),this.vRa=a,this.wRa=b,this.xRa=d,a==b?(this.KPa=a,this.LPa=b,this.UDa=0):(this.UDa=this.jDa(a,b,c),d?(this.KPa=this.kDa(this.vRa,this.UDa),this.LPa=this.lDa(this.wRa,this.UDa)):(this.KPa=a,this.LPa=b))}return Object.defineProperty(a.prototype,"ticks",{get:function(){var a,b=[];if(this.KPa==this.LPa)b.push(this.KPa);else if(this.xRa)for(a=this.KPa;a<=this.LPa;)b.push(a),a+=this.UDa;else for(a=this.kDa(this.vRa,this.UDa),aa)for(;c>a;)c-=b;else for(;c+b<=a;)c+=b;return c},a.prototype.lDa=function(a,b){var c=this.mDa(a);if(c=a;)c-=b;return c},a.prototype.jDa=function(a,b,c){var d=b-a,e=this.nDa(d),f=d/c,g=this.oDa(2*f,-e,!0);return g=0?Math.floor(b):Math.ceil(b),d=a/Math.pow(10,c),d<3&&(c=-c+1,d=a/Math.pow(10,c),d<3&&(c+=1)),c)},a.prototype.oDa=function(a,b,c){var d,e;return 0==a?a:(a<0&&(a=-a),d=a/Math.pow(10,b),e=10,c?d<1.5?e=1:d<3?e=2:d<4.5?e=4:d<7&&(e=5):d<=1?e=1:d<=2?e=2:d<=5&&(e=5),e*Math.pow(10,b))},a.prototype.mDa=function(a){var b,c,d,e;return 0==a?a:(a<0&&(a=-a),b=Math.log(a)/Math.LN10,c=Math.floor(b),d=a/Math.pow(10,c),e=10,d<=1?e=1:d<=2?e=2:d<=5&&(e=5),e*Math.pow(10,c))},a}();a.rRa=b}(b=a.models||(a.models={}))}(d||(d={})),function(a){var b;!function(a){"use strict";var b=function(){function a(a){null==a?this.eAa={}:this.eAa=a}return a.prototype.$z=function(){return this.eAa},a.prototype.iT=function(){return Object.getOwnPropertyNames(this.$z()).length<=0},a}();a.jEa=b}(b=a.options||(a.options={}))}(d||(d={})),function(a){var b;!function(b){"use strict";var c=function(c){e(d,c);function d(b){var d=c.call(this,b)||this;return d.type=d.$z().type,d.plots=d.$z().plots,d.title=d.$z().title,d.position=d.$z().position,d.overlappingLabels=d.$z().overlappingLabels,d.labels=d.$z().labels,d.max=d.$z().max,d.min=d.$z().min,d.format=d.$z().format,d.scale=d.$z().scale,d.style=d.$z().style,d.textStyle=d.$z().textStyle,d.labelStyle=d.$z().labelStyle,d.titleStyle=d.$z().titleStyle,d.majorUnit=d.$z().majorUnit,d.minorUnit=d.$z().minorUnit,d.majorTicks=d.$z().majorTicks,d.minorTicks=d.$z().minorTicks,d.majorTickSize=d.$z().majorTickSize,d.minorTickSize=d.$z().minorTickSize,d.majorTickStyle=d.$z().majorTickStyle,d.minorTickStyle=d.$z().minorTickStyle,d.majorGrid=d.$z().majorGrid,d.minorGrid=d.$z().minorGrid,d.majorGridStyle=d.$z().majorGridStyle,d.minorGridStyle=d.$z().minorGridStyle,d.lineStyle=d.$z().lineStyle,d.origin=d.$z().origin,d.reversed=d.$z().reversed,d.labelAngle=d.$z().labelAngle,d.logBase=d.$z().logBase,null==d.majorTicks&&(d.majorTicks=a.TickMark.None),null==d.minorTicks&&(d.minorTicks=a.TickMark.None),null==d.overlappingLabels&&(d.overlappingLabels=a.AxisOverlappingLabels.Auto),null==d.position&&(d.position=a.AxisPosition.Near),null==d.minorGrid&&(d.minorGrid=!1),null==d.labels&&(d.labels=!0),null==d.axisLine&&(d.axisLine=!0),d}return Object.defineProperty(d.prototype,"type",{get:function(){return this.kEa},set:function(b){null!=this.kEa&&this.kEa==b||(this.kEa=a.core.asEnum(b,a.AxisType,!0),null==this.kEa&&(this.kEa=a.AxisType.X))},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"plots",{get:function(){return this.lEa},set:function(b){var c,d,e,f;if((null==this.lEa||this.lEa!=b)&&(this.lEa=[],null!=b))for(Array.isArray(b)||(b=[b]),c=0,d=b;c1?this.REa=1:this.REa<0&&(this.REa=0))},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"bottomWidth",{get:function(){return this.SEa},set:function(a){null!=a&&this.SEa!=a&&(this.SEa=a)},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"topWidth",{get:function(){return this.REa},set:function(b){null!=b&&this.REa!=b&&(this.REa=a.core.asNumber(b,!0),this.REa>1?this.REa=1:this.REa<0&&(this.REa=0))},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"neckHeight",{get:function(){return this.TEa},set:function(a){null!=a&&this.TEa!=a&&(this.TEa=a)},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"overlap",{get:function(){return this.UEa},set:function(b){null!=this.UEa&&this.UEa==b||(this.UEa=a.core.asNumber(b,!0),null==this.UEa?this.UEa=0:this.UEa>1?this.UEa=1:this.UEa<-1&&(this.UEa=-1))},enumerable:!0,configurable:!0}),c}(b.jEa);b.VEa=c}(b=a.options||(a.options={}))}(d||(d={})),function(a){var b;!function(b){"use strict";var c=function(c){e(d,c);function d(a){var b=c.call(this,a)||this;return b.header=b.$z().header,b.headerStyle=b.$z().headerStyle,b.headerTextStyle=b.$z().headerTextStyle,b.footer=b.$z().footer,b.footerStyle=b.$z().footerStyle,b.footerTextStyle=b.$z().footerTextStyle,b.palette=b.$z().palette,b.plotAreas=b.$z().plotAreas,b.plotAreaLayout=b.$z().plotAreaLayout,b.borderStyle=b.$z().borderStyle,b.backgroundColor=b.$z().backgroundColor,b.legend=b.$z().legend,b.selectionMode=b.$z().selectionMode,b.selectedStyle=b.$z().selectedStyle,b.unselectedStyle=b.$z().unselectedStyle,b.style=b.$z().style,b.textStyle=b.$z().textStyle,b.bar=b.$z().bar,b}return Object.defineProperty(d.prototype,"bar",{get:function(){return this.WEa},set:function(a){null!=this.WEa&&this.WEa==a||(this.WEa=new b.VEa(a))},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"header",{get:function(){return this.XEa},set:function(b){this.XEa!=b&&(this.XEa=a.core.asString(b,!0))},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"headerStyle",{get:function(){return this.YEa},set:function(a){null!=this.YEa&&this.YEa==a||(this.YEa=new b.uEa(a))},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"headerTextStyle",{get:function(){return this.ZEa},set:function(a){null!=this.ZEa&&this.ZEa==a||(this.ZEa=new b.wEa(a))},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"footer",{get:function(){return this.$Ea},set:function(b){this.$Ea!=b&&(this.$Ea=a.core.asString(b,!0))},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"footerStyle",{get:function(){return this._Ea},set:function(a){null!=this._Ea&&this._Ea==a||(this._Ea=new b.uEa(a))},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"footerTextStyle",{get:function(){return this.aFa},set:function(a){null!=this.aFa&&this.aFa==a||(this.aFa=new b.wEa(a))},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"palette",{get:function(){return this.bFa},set:function(b){var c,d,e,f;if(null==this.bFa||this.bFa!=b)if(Array.isArray(b)){for(this.bFa=[],c=0,d=b;c1?this.rCa=1:this.rCa<-1&&(this.rCa=-1))},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"innerRadius",{get:function(){return this.YFa},set:function(b){null!=this.YFa&&this.YFa==b||(this.YFa=a.core.asNumber(b,!0),null==this.YFa&&(this.YFa=0))},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"sweep",{get:function(){return this.ZFa},set:function(b){null!=this.ZFa&&this.ZFa==b||(this.ZFa=a.core.asNumber(b,!0),null==this.ZFa&&(this.ZFa=360))},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"startAngle",{get:function(){return this.$Fa},set:function(b){null!=this.$Fa&&this.$Fa==b||(this.$Fa=a.core.asNumber(b,!0),null==this.$Fa&&(this.$Fa=0))},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"rules",{get:function(){return this._Fa},set:function(a){var c,d,e;if((null==this._Fa||this._Fa!=a)&&(this._Fa=[],null!=a))for(Array.isArray(a)||(a=[a]),c=0,d=a;c0&&null!=c.encodings.details[0].field&&c.encodings.details[0].field.indexOf(">")!=-1?new a.XGa(b,c):new a.RGa(b,c):null},b}();a.SGa=b}(d||(d={})),function(a){"use strict";var b=function(){function b(){}return b.prototype.create=function(b,c){return null!=c&&null!=b&&b instanceof a.kKa?new a.TGa(b,c):null},b}();a.UGa=b}(d||(d={})),function(a){"use strict";var b=function(){function b(){}return b.prototype.create=function(b,c){return null!=c&&null!=b&&b instanceof a.kKa?new a.VGa(b,c):null},b}();a.WGa=b}(d||(d={})),function(a){"use strict";var b=function(){function b(){}return b.prototype.create=function(b,c){return null!=c&&null!=b&&b instanceof a.kKa?new a.XGa(b,c):null},b}();a.YGa=b}(d||(d={})),function(a){"use strict";var b=function(){function b(){}return b.prototype.create=function(b,c){return null!=c&&null!=b&&b instanceof a.kKa?new a.ZGa(b,c):null},b}();a.$Ga=b}(d||(d={})),function(a){var b;!function(b){"use strict";var c=function(){function b(){}return b.prototype.create=function(b){return new a.models.pAa(b)},b}();b._Ra=c}(b=a.plugins||(a.plugins={}))}(d||(d={})),function(a){var b;!function(b){"use strict";var c=function(){function b(){}return b.prototype.create=function(b){return new a.models.oAa(b)},b}();b.aSa=c}(b=a.plugins||(a.plugins={}))}(d||(d={})),function(a){var b;!function(b){"use strict";var c=function(){function b(){}return b.prototype.create=function(b){return new a.models.QRa(b)},b}();b.PureCanvasRenderEnginePlugin=c}(b=a.plugins||(a.plugins={}))}(d||(d={})),function(a){var b;!function(b){"use strict";var c=function(){function b(){}return b.prototype.create=function(){return new a.models.SRa},b}();b.bSa=c}(b=a.plugins||(a.plugins={}))}(d||(d={})),function(a){var b;!function(b){"use strict";var c=function(){function b(){}return b.prototype.create=function(){return new a.models.TRa},b}();b.cSa=c}(b=a.plugins||(a.plugins={}))}(d||(d={})),function(a){var b;!function(b){"use strict";var c=function(){function b(){}return b.prototype.create=function(){return new a.models.URa},b}();b.dSa=c}(b=a.plugins||(a.plugins={}))}(d||(d={})),function(a){var b;!function(b){"use strict";var c=function(){function b(){}return b.prototype.create=function(){return new a.models.VRa},b}();b.eSa=c}(b=a.plugins||(a.plugins={}))}(d||(d={})),function(a){var b;!function(b){"use strict";var c=function(){function b(){}return b.prototype.create=function(){return new a.models.WRa},b}();b.fSa=c}(b=a.plugins||(a.plugins={}))}(d||(d={})),function(a){var b;!function(b){"use strict";var c=function(){function b(){}return b.prototype.create=function(){return new a.models.XRa},b}();b.gSa=c}(b=a.plugins||(a.plugins={}))}(d||(d={})),function(a){var b;!function(b){"use strict";var c=function(){function b(){}return b.prototype.create=function(){return new a.models.YRa},b}();b.hSa=c}(b=a.plugins||(a.plugins={}))}(d||(d={})),function(a){"use strict"}(d||(d={})),function(a){"use strict";var b={};function c(c,d){null!=c&&"string"==typeof c||a.Jza(a.Exception.DataGraph_InvalidTypeName),null==d&&a.Jza(a.Exception.DataGraph_InvalidPlugin),null==b[c]?b[c]=d:a.Jza(a.Exception.DataGraph_IsRegistered)}a.uHa=c;function d(c){null!=c&&"string"==typeof c||a.Jza(a.Exception.DataGraph_InvalidTypeName),null!=b[c]&&(b[c]=null)}a.vHa=d;function e(c){return null!=c&&"string"==typeof c||a.Jza(a.Exception.DataGraph_InvalidTypeName),null!=b[c]}a.wHa=e;function f(a){return null==a||"string"!=typeof a?null:null!=b[a]?b[a]:null}a.xHa=f}(d||(d={})),function(a){var b;!function(b){"use strict";var c={};function d(b,d){null!=b&&"string"==typeof b||a.Jza(a.Exception.AdornerRender_InvalidTypeName),null==d&&a.Jza(a.Exception.AdornerRender_InvalidPlugin),null==c[b]?c[b]=d:a.Jza(a.Exception.AdornerRender_IsRegistered)}b.registerAdornerRender=d;function e(b){null!=b&&"string"==typeof b||a.Jza(a.Exception.AdornerRender_InvalidTypeName),null!=c[b]&&(c[b]=null)}b.unregisterAdorner=e;function f(b){return null!=b&&"string"==typeof b||a.Jza(a.Exception.AdornerRender_InvalidTypeName),null!=c[b]}b.hasRegisteredAdornerRender=f;function g(a){return null==a||"string"!=typeof a?null:null!=c[a]?c[a]:null}b.OSa=g}(b=a.plugins||(a.plugins={}))}(d||(d={})),function(a){var b;!function(b){"use strict";var c={};function d(b,d){null!=b&&"string"==typeof b||a.Jza(a.Exception.ConditionalFormattingRule_InvalidTypeName),null==d&&a.Jza(a.Exception.ConditionalFormattingRule_InvalidPlugin),null==c[b]?c[b]=d:a.Jza(a.Exception.ConditionalFormattingRule_IsRegistered)}b.registerConditionalFormattingRule=d;function e(b){null!=b&&"string"==typeof b||a.Jza(a.Exception.ConditionalFormattingRule_InvalidTypeName),null!=c[b]&&(c[b]=null)}b.unregisterConditionalFormattingRule=e;function f(b){return null!=b&&"string"==typeof b||a.Jza(a.Exception.ConditionalFormattingRule_InvalidTypeName),null!=c[b]}b.hasRegisteredConditionalFormattingRule=f;function g(a){return null==a||"string"!=typeof a?null:null!=c[a]?c[a]:null}b.hCa=g}(b=a.plugins||(a.plugins={}))}(d||(d={})),function(a){var b;!function(b){"use strict";var c={};function d(b,d){null!=b&&"string"==typeof b||a.Jza(a.Exception.DataContentProvider_InvalidTypeName),null==d&&a.Jza(a.Exception.DataContentProvider_InvalidPlugin),null==c[b]?c[b]=d:a.Jza(a.Exception.DataContentProvider_IsRegistered)}b.registerDataContentProvider=d;function e(b){null!=b&&"string"==typeof b||a.Jza(a.Exception.DataContentProvider_InvalidTypeName),null!=c[b]&&(c[b]=null)}b.unregisterDataContentProvider=e;function f(b){return null!=b&&"string"==typeof b||a.Jza(a.Exception.DataContentProvider_InvalidTypeName),null!=c[b]}b.hasRegisteredDataContentProvider=f;function g(a){return null==a||"string"!=typeof a?null:null!=c[a]?c[a]:null}b.bAa=g}(b=a.plugins||(a.plugins={}))}(d||(d={})),function(a){var b;!function(b){"use strict";var c={};function d(b,d){null!=b&&"string"==typeof b||a.Jza(a.Exception.DateParser_InvalidTypeName),null==d&&a.Jza(a.Exception.DateParser_InvalidPlugin),null==c[b]?c[b]=d:a.Jza(a.Exception.DateParser_IsRegistered)}b.registerDateParser=d;function e(b){null!=b&&"string"==typeof b||a.Jza(a.Exception.DateParser_InvalidTypeName),null!=c[b]&&(c[b]=null)}b.unregisterDateParser=e;function f(b){return null!=b&&"string"==typeof b||a.Jza(a.Exception.DateParser_InvalidTypeName),null!=c[b]}b.hasRegisteredDateParser=f;function g(a){return null==a||"string"!=typeof a?null:null!=c[a]?c[a]:null}b.ORa=g}(b=a.plugins||(a.plugins={}))}(d||(d={})),function(a){var b;!function(b){"use strict";var c={};function d(b,d){null!=b&&"string"==typeof b||a.Jza(a.Exception.RenderEngine_InvalidTypeName),null==d&&a.Jza(a.Exception.RenderEngine_InvalidPlugin),null==c[b]?c[b]=d:a.Jza(a.Exception.RenderEngine_IsRegistered)}b.registerRenderEngine=d;function e(b){null!=b&&"string"==typeof b||a.Jza(a.Exception.RenderEngine_InvalidTypeName),null!=c[b]&&(c[b]=null)}b.unregisterRenderEngine=e;function f(b){return null!=b&&"string"==typeof b||a.Jza(a.Exception.RenderEngine_InvalidTypeName),null!=c[b]}b.hasRegisteredRenderEngine=f;function g(a){return null==a||"string"!=typeof a?null:null!=c[a]?c[a]:null}b.iSa=g}(b=a.plugins||(a.plugins={}))}(d||(d={})),function(a){var b;!function(b){"use strict";var c={};function d(b,d){null!=b&&"string"==typeof b||a.Jza(a.Exception.StringFormatting_InvalidTypeName),null==d&&a.Jza(a.Exception.StringFormatting_InvalidPlugin),null==c[b]?c[b]=d:a.Jza(a.Exception.StringFormatting_IsRegistered)}b.registerStringFormatting=d;function e(b){null!=b&&"string"==typeof b||a.Jza(a.Exception.StringFormatting_InvalidTypeName),null!=c[b]&&(c[b]=null)}b.unregisterStringFormatting=e;function f(b){return null!=b&&"string"==typeof b||a.Jza(a.Exception.StringFormatting_InvalidTypeName),null!=c[b]}b.hasRegisteredStringFormatting=f;function g(a){return null==a||"string"!=typeof a?null:null!=c[a]?c[a]:null}b._za=g}(b=a.plugins||(a.plugins={}))}(d||(d={})),function(a){var b;!function(b){"use strict";var c={},d=[];function e(b,e){null!=b&&"string"==typeof b||a.Jza(a.Exception.Symbol_InvalidTypeName),null==e&&a.Jza(a.Exception.Symbol_InvalidPlugin),null==c[b]?(c[b]=e,d.push(b)):a.Jza(a.Exception.Symbol_IsRegistered)}b.registerSymbol=e;function f(b){if(null!=b&&"string"==typeof b||a.Jza(a.Exception.Symbol_InvalidTypeName),null!=c[b]){c[b]=null;for(var e=0;e0)&&a.drawRect(b.left+a.strokeWidth/2,b.top+a.strokeWidth/2,b.width-a.strokeWidth,b.height-a.strokeWidth)}a.UHa=b}(d||(d={})),function(a){"use strict";var b=function(){function b(){}return b.renderText=function(b,c,d,e,f,g,h,i,j){var k,l=b.measureString(c,g,h,i),m=d.x,n=d.y;switch(e){case 1:m-=.5*l.width;break;case 2:m-=l.width}switch(f){case 1:n+=.5*l.height;break;case 0:n+=l.height}return k=new a.core.Rect(m,n-l.height,l.width,l.height),j?j(k)?(b.drawString(c,new a.core.Point(m,n),g,i),k):null:(b.drawString(c,new a.core.Point(m,n),g,i),k)},b.renderRotatedText=function(b,c,d,e,f,g,h,i,j,k){var l=b.measureString(c,i,j,k),m=d.x,n=d.y;switch(e){case 1:m-=.5*l.width;break;case 2:m-=l.width}switch(f){case 1:n+=.5*l.height;break;case 0:n+=l.height}b.drawStringRotated(c,new a.core.Point(m,n),g,h,i,k)},b}();a.VHa=b}(d||(d={})),function(a){"use strict";var b=function(){function b(b,c){var d,e,f,g,h,i,j,k,l,m;if(this.k=.002,this._xa=[],this.$xa=[],this.Sk=[],this.WHa=[],this.m=[[-.5,1.5,-1.5,.5],[1,-2.5,2,-.5],[-.5,0,.5,0],[0,1,0,0]],this.XHa=b,this.YHa=c,d=this.ZHa=Math.min(b.length,c.length),d>3)for(e=0;ethis.ZHa-2&&(e=this.ZHa-2),b=a-e,c=((this._xa[e].x*b+this.$xa[e].x)*b+this.Sk[e].x)*b+this.WHa[e].x,d=((this._xa[e].y*b+this.$xa[e].y)*b+this.Sk[e].y)*b+this.WHa[e].y,{x:c,y:d}},b.prototype.calculate=function(a,b){var c,d,e,f,g,h,i,j;if(void 0===a&&(a=1),void 0===b&&(b=1),this.ZHa<=3)return{xs:this.XHa,ys:this.YHa};for(c=[],d=[],e=this.calculatePoint(0),c.push(e.x),d.push(e.y),f=this.ZHa*this.k,g=3*a,h=3*b,i=f;i<=this.ZHa-1;i+=f)j=this.calculatePoint(i),(Math.abs(e.x-j.x)>=g||Math.abs(e.y-j.y)>=h)&&(c.push(j.x),d.push(j.y),e=j);return c[c.length-1].x==j.x&&d[d.length-1].y==j.y||(c.push(j.x),d.push(j.y)),{xs:c,ys:d}},b}();a.THa=b}(d||(d={})),function(a){"use strict";var b=function(){function b(a){this.RQa=a}return b.prototype.PQa=function(b,c,d,e,f,g,h){var i,j,k,l,m,n;if(void 0===d&&(d="Left"),void 0===e&&(e="None"),void 0===f&&(f=null),void 0===g&&(g=null),void 0===h&&(h=null),"None"==e)"Left"==d?this.RQa.drawString(b,new a.core.Point(c.left,c.bottom),f,h):"Center"==d?(i=this.RQa.measureString(b,f,g,h),this.RQa.drawString(b,new a.core.Point(c.left+(c.width-i.width)/2,c.bottom),f,h)):"Right"==d&&(i=this.RQa.measureString(b,f,g,h),this.RQa.drawString(b,new a.core.Point(c.left+c.width-i.width,c.bottom),f,h));else if("Wrap"==e)for(j=this.SQa(b,c.width,f,g,h),k=c.top,l=0,m=j;l0;)g=this.TQa(a,b,c,d,e),f.push({text:a.substring(0,g.position),size:g.size}),a=a.substring(g.position);return f},b.prototype.TQa=function(b,c,d,e,f){var g,h,i,j;void 0===d&&(d=null),void 0===e&&(e=null),void 0===f&&(f=null),g={position:0,size:new a.core.Size(0,0)},h=b.length;do if(i=b.substring(0,g.position+h),j=this.RQa.measureString(i,d,e,f),j.width<=c)g.position=g.position+h,g.size=j,h=b.length-g.position;else{if(1==h)break;h>0&&(h=Math.floor(h/2),h<1&&(h=1))}while(h>0);return g.position<=0&&(g.position=1,g.size=this.RQa.measureString(b.substring(0,g.position),d,e,f)),g},b}();a.NQa=b}(d||(d={})),function(a){"use strict";var b=function(){function b(a){this.IHa=[],this.RQa=a}return b.prototype.begin=function(){this.IHa.push({opacity:this.RQa.opacity,fill:this.RQa.fill,stroke:this.RQa.stroke,strokeWidth:this.RQa.strokeWidth,strokeDasharray:this.RQa.strokeDasharray,textFill:this.RQa.textFill,fontSize:this.RQa.fontSize,fontFamily:this.RQa.fontFamily})},b.prototype.restore=function(){var b,c=this;a.Yya(function(){return c.IHa.length>0}),this.IHa.length>0&&(b=this.IHa.pop(),this.RQa.opacity=b.opacity,this.RQa.fill=b.fill,this.RQa.stroke=b.stroke,this.RQa.strokeWidth=b.strokeWidth,this.RQa.strokeDasharray=b.strokeDasharray,this.RQa.textFill=b.textFill,this.RQa.fontSize=b.fontSize,this.RQa.fontFamily=b.fontFamily)},b}();a.lSa=b}(d||(d={})),function(a){"use strict"}(d||(d={})),function(a){"use strict";var b=function(){function a(){}return a.gradientColor=function(b,c,d){var e,f,g=a.colorRgb(b),h=g[0],i=g[1],j=g[2],k=a.colorRgb(c),l=k[0],m=k[1],n=k[2],o=(l-h)/d,p=(m-i)/d,q=(n-j)/d,r=[];for(e=0;e1){if(this.yIa&&this.zIa==a.LineAspect.StepLeft||!this.yIa&&this.zIa==a.LineAspect.StepRight){for(c=[],c.push(b[0]),d=1;d=a.left&&b.y<=a.bottom&&b.y>=a.top},b.getRect=function(b,c){var d=new a.core.Rect(b.x,b.y,b.x+c.width,b.y+c.height);return d},b.getStyleCss=function(a){return a?{"font-size":a?a.fontSize:"",stroke:a?a.color:"",fill:a?a.color:"","font-family":a?a.fontFamily:""}:null},b.getTextByMaxLength=function(a,b,c,d,e,f){for(var g=a.measureString(b,f,e,d);g.width>c;)b=b.substr(0,b.length-1),g=a.measureString(b,f,e,d);return b},b.binarySearch=function(a,c,d,e,f){var g,h,i,j;void 0===f&&(f=!0),a.length>0&&e&&(d-c>=2?(g=c,h=Math.floor((d+c)/2),i=d,j={left:!0,right:!0},f&&(e(a[g],g,NaN,NaN),e(a[i],i,NaN,NaN)),j=e(a[h],h,g,i),j.left&&b.binarySearch(a,g,h,e,!1),j.right&&b.binarySearch(a,h,i,e,!1)):d-c==1?(e(a[c],c,NaN,NaN),e(a[d],d,NaN,NaN)):c==d&&e(a[c],0,NaN,NaN))},b.mergeRect=function(){var b,c,d=[];for(b=0;bh||a.yj)return!1;for(e=!1,c=0,f=b.length-1;ca.y!=b[f].y>a.y&&a.x<(b[f].x-b[c].x)*(a.y-b[c].y)/(b[f].y-b[c].y)+b[c].x&&(e=!e);return e},b.IsPointInPolygon2=function(a,b,c){var d,e,f,g=b[0],h=b[0],i=c[0],j=c[0];for(d=1;dh||a.yj)return!1;for(e=!1,d=0,f=b.length-1;da.y!=c[f]>a.y&&a.x<(b[f]-b[d])*(a.y-c[d])/(c[f]-c[d])+b[d]&&(e=!e);return e},b.sort=function(a,b){var c,d,e;for(d=0;d0&&(c=a.width*b,d=a.height*b,a.left-=(c-a.width)/2,a.top-=(d-a.height)/2,a.width=c,a.height=d),a},b.pointToLine=function(a,c,d,e,f,g){var h,i,j=0,k=b.DQa(a,c,d,e),l=b.DQa(a,c,f,g),m=b.DQa(d,e,f,g);return m+l==k?j=0:k<=1e-6?j=l:m*m>=k*k+l*l?j=l:l*l>=k*k+m*m?j=m:(h=(k+l+m)/2,i=Math.sqrt(h*(h-k)*(h-l)*(h-m)),j=2*i/k)},b.DQa=function(a,b,c,d){var e=0;return e=Math.sqrt((a-c)*(a-c)+(b-d)*(b-d))},b}();a.x7=b}(d||(d={})),function(a){"use strict";var b,c=function(){function b(b,c,d,e,f){var g,h,i,j,k,l,m,n,o;this.angle=f,this.centerx=b,this.centery=c,this.width=d,this.height=e,this.points=[new a.core.Point,new a.core.Point,new a.core.Point,new a.core.Point,new a.core.Point,new a.core.Point,new a.core.Point,new a.core.Point,new a.core.Point],g=this.points[0],h=this.points[1],i=this.points[2],j=this.points[3],k=this.points[4],l=this.points[5],m=this.points[6],n=this.points[7],n.x=this.centerx+Math.cos(this.angle)*this.width/2,n.y=this.centery+Math.sin(this.angle)*this.width/2,m.x=2*this.centerx-n.x,m.y=2*this.centery-n.y,h.x=n.x+Math.sin(this.angle)*this.height/2,h.y=n.y-Math.cos(this.angle)*this.height/2,i.x=2*n.x-h.x,i.y=2*n.y-h.y,j.x=m.x-Math.sin(this.angle)*this.height/2,j.y=m.y+Math.cos(this.angle)*this.height/2,g.x=2*m.x-j.x,g.y=2*m.y-j.y,l.x=(j.x+i.x)/2,l.y=(j.y+i.y)/2,k.x=(g.x+h.x)/2,k.y=(g.y+h.y)/2,o=this.points[8],o.x=this.centerx,o.y=this.centery}return Object.defineProperty(b.prototype,"raidius",{get:function(){return Math.sqrt(Math.pow(this.center.x-this.leftTop.x,2)+Math.pow(this.center.y-this.leftTop.y,2))},enumerable:!0,configurable:!0}),b.prototype.offset=function(a,b,c){var d,e;for(d=0;d0)&&(a.drawRect(this.APa().left+a.strokeWidth/2,this.APa().top+a.strokeWidth/2,this.APa().width-a.strokeWidth,this.APa().height-a.strokeWidth),b=this.APa().inflate(-a.strokeWidth,-a.strokeWidth)),a.restoreTransform(),this.RIa(a,b)}},c.prototype.SIa=function(b,c){var d,e,f=new a.core.Size(0,0);return b.beginTransform(),this.OIa(b),null!=b.strokeWidth&&(f.width+=2*b.strokeWidth,f.height+=2*b.strokeWidth,null!=c&&(c=c.clone(),c.width-=2*b.strokeWidth,c.height-=2*b.strokeWidth)),d=this.zPa(),f.width+=d.left+d.right,f.height+=d.top+d.bottom,null!=c&&(c=c.clone(),c.width-=d.left+d.right,c.height-=d.left+d.right),b.restoreTransform(),e=this.TIa(b,c),f.width+=e.width,f.height+=e.height,f},c.prototype.PIa=function(a,b){},c.prototype.TIa=function(b,c){return new a.core.Size(0,0)},c.prototype.OIa=function(b){a.GHa(b,this.fPa())},c.prototype.QIa=function(b){a.GHa(b,{fill:this.gPa()})},c}(a.MIa);a.UIa=b}(d||(d={})),function(a){"use strict";var b=function(){function a(a,b,c){this.BPa=a,this.setRadius(b),this.TJa=c}return a.prototype.setRadius=function(a){this.UJa=a,this.VJa=a*a},Object.defineProperty(a.prototype,"radius",{get:function(){return this.UJa},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"center",{get:function(){return this.BPa},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"item",{get:function(){return this.TJa},enumerable:!0,configurable:!0}),a.prototype.contains=function(a){var b=this.BPa.x-a.x,c=this.BPa.y-a.y;return b*b+c*c<=this.VJa},a.prototype.distance=function(a){var b=isNaN(a.x)?0:this.BPa.x-a.x,c=isNaN(a.y)?0:this.BPa.y-a.y,d=b*b+c*c;return d<=this.VJa?0:Math.sqrt(d)-this.UJa},a.prototype.getPoint=function(){return this.BPa},a}();a.WJa=b}(d||(d={})),function(a){"use strict";var b,c=function(){function a(){}return a}();a.XJa=c,b=function(){function b(a){this.mOa=[],this.VLa=a}return b.prototype.fPa=function(){return{opacity:null,stroke:"#666",strokeWidth:0,strokeDasharray:null}},b.prototype.gPa=function(){return"none"},b.prototype.WOa=function(){return{opacity:null,stroke:"#666",strokeWidth:1,strokeDasharray:null}},b.prototype.pta=function(){return this.VLa},b.prototype.yl=function(b){var c,d,e,f,g,h;for(this.mOa=[],c=0,d=this.pta().nPa();cb.right||a.top>b.bottom||b.left>a.right||b.top>a.bottom)},b.prototype.$Ja=function(b,c,d){var e,f,g,h,i,j,k,l,m,n=this.pta().parent.QOa().toLines(d.item.dataLabelContentSite);if((!n||0!=n.length)&&(e=c.getLabelPosition(b,d,n))){if(f=e.rect,c.config&&c.config.text&&c.config.text.overlappingLabels===a.OverlappingLabels.Auto){for(g=0;g=2*Math.PI&&(this.PMa=!0),this.DPa=.5*f*180/Math.PI,this.FIa=b.clampAngle(180*e/Math.PI+this.DPa),this.TMa=c*c,this.UMa=d*d,this.TJa=g}return Object.defineProperty(a.prototype,"item",{get:function(){return this.TJa},enumerable:!0,configurable:!0}),a.prototype.contains=function(a){var c,d,e=a.x-this.BPa.x,f=a.y-this.BPa.y,g=e*e+f*f;return!!(g>=this.UMa&&g<=this.TMa&&(c=180*Math.atan2(f,e)/Math.PI,d=b.clampAngle(this.FIa-c),this.PMa||Math.abs(d)<=this.DPa))},a.prototype.distance=function(a){if(this.contains(a))return 0},a.prototype.getPoint=function(){return this.BPa},Object.defineProperty(a.prototype,"center",{get:function(){return this.BPa},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"radius",{get:function(){return this.CPa},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"langle",{get:function(){return this.FIa},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"angle",{get:function(){return this.RMa},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"sweep",{get:function(){return this.SMa},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"innerRadius",{get:function(){return this.QMa},enumerable:!0,configurable:!0}),a}();a.DonutArea=c,b=function(){function a(){}return a.clampAngle=function(a){var b=(a+180)%360-180;return b<-180&&(b+=360),b},a.isRectOverlap=function(a,b){return!(!a||!b)&&!(a.left>b.right||a.top>b.bottom||b.left>a.right||b.top>a.bottom)},a}()}(d||(d={})),function(a){"use strict";var b,c,d=function(c){e(d,c);function d(a,b,d,e){var f,g,h,i=c.call(this)||this;for(i.jCa=a,i.eAa=b,i.DRa=d,i.bKa=i.cKa(b),null!=i.bKa&&i.oi.push(i.bKa),i.dKa=i.eKa(b),null!=i.dKa&&i.oi.push(i.dKa),i.fKa=i.gKa(b.plotAreas,e),f=0,g=i.fKa;f0?new a.hKa(this):null},d.prototype.eKa=function(b){return null!=b.footer&&b.footer.length>0?new a.iKa(this):null},d.prototype.gKa=function(b,c){var d,e,f,g,h,i=[];if(null!=b&&b.length>0)for(d=0,e=b;d0&&k0&&k=0?(a=a.replace("*",""),b=parseFloat(a),isNaN(b)?{value:1,unit:c.Auto}:{value:b,unit:c.Star}):(b=parseFloat(a),isNaN(b)?{value:1,unit:c.Auto}:{value:b,unit:c.Pixel}):"number"==typeof a?{value:a,unit:c.Pixel}:{value:1,unit:c.Auto}},b}(),function(a){a[a.Auto=0]="Auto",a[a.Pixel=1]="Pixel",a[a.Star=2]="Star"}(c||(c={}))}(d||(d={})),function(a){"use strict";var b,c,d,f=function(b){e(c,b);function c(c,d,e){var f,g,h,i,j,k,l=b.call(this)||this;for(l.nKa=[],l.oKa=[],l.sPa=0,l.jCa=c,l.eAa=d,l.nKa=l.pKa(e),(null==l.nKa||l.nPa().length<=0)&&l.nKa.push(new a.XOa(l)),l.nKa.forEach(function(a){l.qKa(a.radial)}),l.oi.push(l.EPa().axisX),l.oi.push(l.EPa().axisY),f=0,g=l.EPa().auxAxes;f0){for(c={},d=0,e=this.eAa.axes;d=0&&(d=e[c]);return d},c.prototype.le=function(b){var c,d=this.EPa().axisY,e=this.EPa().getAxes();for(c=0;c=0&&(d=e[c]);return d},c}(a.UIa);a.kKa=f,b=20,c=20,d=function(){function d(){}return d.prototype._R=function(b,c,d){var e,f,g,h=[],i=[],j=[],k=[];for(e=0,f=d;e0){for(h=new a.core.Size(0,0),i=[],j=new a.core.Size(0,0),k=0;k=b.left&&a.x<=b.right&&a.y>=b.top&&a.y<=b.bottom},c.prototype.pointDistance=function(a,c,d){var e=c.x-a.x,f=c.y-a.y;return d==b.X?Math.abs(e):d==b.Y?Math.abs(f):Math.sqrt(e*e+f*f)},c.prototype.distance=function(c){var d,e=b.XY;return null===c.x?e=b.Y:null===c.y&&(e=b.X),d=this.sS,c.xd.bottom?this.pointDistance(c,new a.core.Point(d.left,d.bottom),e):e==b.Y?0:d.left-c.x:c.x>d.right?c.yd.bottom?this.pointDistance(c,new a.core.Point(d.right,d.bottom),e):e==b.Y?0:c.x-d.right:e==b.X?0:c.yd.bottom?c.y-d.bottom:0},c.prototype.getPoint=function(){return new a.core.Point(this.rect.left+.5*this.rect.width,this.rect.top+.5*this.rect.height)},c}(),a.CKa=c}(d||(d={})),function(a){"use strict";var b=function(){function b(a,b){this.fua=b,this.sS=a,this.fua&&0!=this.fua.length||this.BMa()}return Object.defineProperty(b.prototype,"rect",{get:function(){return this.sS},set:function(a){this.sS=a,this.fua&&0!=this.fua.length||this.BMa()},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"points",{get:function(){return this.fua},set:function(a){this.fua=a},enumerable:!0,configurable:!0}),b.prototype.BMa=function(){this.sS&&(this.fua=[],this.fua.push(new a.core.Point(this.sS.left,this.sS.top)),this.fua.push(new a.core.Point(this.sS.right,this.sS.top)),this.fua.push(new a.core.Point(this.sS.right,this.sS.bottom)),this.fua.push(new a.core.Point(this.sS.left,this.sS.bottom)))},b.prototype.yl=function(b,c){if(c){var d=a.plugins.OSa("dot").create();this.fua&&this.fua.length>0&&d.render(b,this.fua)}},b}();a.eOa=b}(d||(d={})),function(a){"use strict";var b=function(b){e(c,b);function c(){return b.call(this)||this}return c.prototype.PIa=function(a,b){},c.prototype.RIa=function(b,c){null!=this._text()&&this._text().length>0&&(b.beginTransform(),this.GHa(b),b.drawString(this._text(),new a.core.Point(c.left,c.bottom)),b.restoreTransform())},c.prototype.TIa=function(b,c){var d=new a.core.Size(0,0);return null!=this._text()&&this._text().length>0&&(b.beginTransform(),this.GHa(b),d=b.measureString(this._text()),b.restoreTransform()),d},c.prototype.GHa=function(a){},c}(a.UIa);a.DKa=b}(d||(d={})),function(a){"use strict";a.ERa=2,a.FRa=4;var b=function(){function b(b,c,d){this.VIa=.25,this.WIa=1,this.XIa=1,this.YIa=1,this.ZIa=4,this.$Ia=[],this.dJa=[],this.UP={left:0,top:0,right:0,bottom:0},this.eJa=a.AxisType.X,this.fJa=!1,this.fTa=NaN,this.gTa=[],this.gJa=null,this.hJa=null,this.rangeChanged=new a.core.Event,this.jCa=b,this.eJa=c,this.eAa=d}return b.prototype.GPa=function(a){return void 0===a?this.mJa:void(this.mJa=a)},b.prototype.LQa=function(a){null!=a&&(this.eAa=a)},b.prototype.HPa=function(){return this.axisType===a.AxisType.X?a.ySa:a.zSa},b.prototype.VOa=function(){return{opacity:null,stroke:"#666",strokeWidth:1,strokeDasharray:null}},b.prototype.hPa=function(){return{opacity:null,stroke:"#666",strokeWidth:1,strokeDasharray:null}},b.prototype.iPa=function(){return{opacity:null,stroke:"#666",strokeWidth:1,strokeDasharray:null}},b.prototype.IPa=function(){return{opacity:null,stroke:"#666",strokeWidth:1,strokeDasharray:null}},b.prototype.JPa=function(){return{opacity:null,stroke:"#666",strokeWidth:1,strokeDasharray:null}},Object.defineProperty(b.prototype,"rect",{get:function(){return this.lJa},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"hostElement",{get:function(){return this._hostElement},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"actualMin",{get:function(){return this.fJa?new Date(this.GPa().min):this.GPa().min},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"actualMax",{get:function(){return this.fJa?new Date(this.GPa().max):this.GPa().max},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"min",{get:function(){return this.eAa.min},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"max",{get:function(){return this.eAa.max},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"reversed",{get:function(){return this.eAa.reversed},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"position",{get:function(){return this.eAa.position},enumerable:!0,configurable:!0}),b.prototype.getPosition=function(){return this.position==a.AxisPosition.None?null:this.axisType==a.AxisType.X?this.position==a.AxisPosition.Near?a.Position.Bottom:a.Position.Top:this.axisType==a.AxisType.Y?this.position==a.AxisPosition.Near?a.Position.Left:a.Position.Right:null},Object.defineProperty(b.prototype,"majorUnit",{get:function(){return this.eAa.majorUnit},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"minorUnit",{get:function(){return this.eAa.minorUnit},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"name",{get:function(){return this.Cj},set:function(b){b!=this.Cj&&(this.Cj=a.core.asString(b,!0))},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"title",{get:function(){return this.eAa.title},set:function(b){b!==this.eAa.title&&(this.eAa.title=a.core.asString(b,!0))},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"format",{get:function(){return this.eAa.format},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"majorGrid",{get:function(){return this.eAa.majorGrid},set:function(b){null!=b&&b!=this.eAa.majorGrid&&(this.eAa.majorGrid=a.core.asBoolean(b,!0),this.$p())},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"majorTicks",{get:function(){return this.eAa.majorTicks},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"minorGrid",{get:function(){return this.eAa.minorGrid},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"minorTicks",{get:function(){return this.eAa.minorTicks},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"axisLine",{get:function(){return this.eAa.axisLine},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"labels",{get:function(){return this.eAa.labels},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"labelAlign",{get:function(){return this.rJa},set:function(b){b!=this.rJa&&(this.rJa=a.core.asString(b,!0),this.$p())},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"textStyle",{get:function(){return this.eAa.textStyle},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"labelStyle",{get:function(){return this.eAa.labelStyle},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"labelAngle",{get:function(){return this.eAa.labelAngle},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"origin",{get:function(){return this.eAa.origin},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"overlappingLabels",{get:function(){return this.eAa.overlappingLabels},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"itemFormatter",{get:function(){return this.vJa},set:function(b){this.vJa!=b&&(this.vJa=a.core.asFunction(b,!0),this.$p())},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"logBase",{get:function(){return null==this.eAa.logBase?10:this.eAa.logBase},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"scale",{get:function(){return this.eAa.scale},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"majorTickSize",{get:function(){return this.eAa.majorTickSize},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"minorTickSize",{get:function(){return this.eAa.minorTickSize},enumerable:!0,configurable:!0}),b.prototype.yJa=function(){},b.prototype.onRangeChanged=function(a){this.rangeChanged.raise(this,a)},b.prototype.zJa=function(b,c,d,e){var f,g,h,i,j,k,l,m,n,o=a.ASa,p=0,q=e+1;for(f=0;f0&&this.zJa(b,c[f].children,d,q),h=c[f].label,i=b.measureString(h,o,this.HPa()),j=i.height,k=i.width,d&&(l=d*Math.PI/180,m=i.width,n=i.height,k=m*Math.abs(Math.cos(l))+n*Math.abs(Math.sin(l)),j=m*Math.abs(Math.sin(l))+n*Math.abs(Math.cos(l))),this.axisType==a.AxisType.X?p0){for(a.GHa(b,this.style),d=this.EJa.groups,this.zJa(b,d,c,0),e=0,f=0;f0)for(e=o.length,f=0;f=this.EJa.min&&g<=this.EJa.max&&(i=this.mJa.getScaleValue(g),j=this.mJa.getScaleValue(h),k=this.EJa.labelFromValue(this.fJa?new Date(g):g,this.GPa().format),l=this.EJa.labelFromValue(this.fJa?new Date(h):h,this.mJa.format),m=a.measureString(k,d,this.HPa()),n=a.measureString(l,d,this.HPa()),f>0&&Math.abs(i-j)<(m.width+n.width)/2+b))return!0;return!1},d.prototype.SIa=function(b,c){var d,e,f,g,h,i,j,k,l;return c<0&&(c=0),b.beginTransform(),a.GHa(b,this.style),a.GHa(b,this.textStyle),d=a.ASa,this.FKa=void 0,e=0,f=this.labelAngle,this.fJa?(this.min instanceof Date?this.mJa.min=this.min.getTime():"number"==typeof this.min&&(this.mJa.min=this.min),this.max instanceof Date?this.mJa.max=this.max.getTime():"number"==typeof this.max&&(this.mJa.max=this.max)):(isNaN(this.min)||(this.mJa.min=this.min),isNaN(this.max)||(this.GPa().max=this.max)),null==this.majorUnit||isNaN(this.majorUnit)||(this.GPa().unit=this.majorUnit),this.mJa.format=this.FJa(),this.GKa=this.getMaxLableSize(b),this.axisType===a.AxisType.X?this.mJa.range([this.GKa.width/2,c-this.GKa.width/2]).refresh():this.axisType===a.AxisType.Y&&this.mJa.range([this.GKa.height/2,c-this.GKa.height/2]).refresh(),this.GKa=this.getMaxLableSize(b),isNaN(this.majorUnit)&&(this.axisType===a.AxisType.X?this.mJa.tickNumber=c/(this.GKa.width+6):this.axisType===a.AxisType.Y&&(this.mJa.tickNumber=c/(this.GKa.height+6))),this.mJa.refresh(),void 0===f&&this.axisType==a.AxisType.X&&(this.EKa(b,c,d)?f=this.FKa=-45:this.FKa=0),f&&(g=f*Math.PI/180,h=this.GKa.width,i=this.GKa.height,this.GKa.width=h*Math.abs(Math.cos(g))+i*Math.abs(Math.sin(g)),this.GKa.height=h*Math.abs(Math.sin(g))+i*Math.abs(Math.cos(g))),j=this.GPa().ticks,this.labels&&(e+=this.eJa===a.AxisType.X?this.GKa.height:this.GKa.width),b.beginTransform(),a.GHa(b,this.titleStyle),e+=Math.max(this.AJa(b,this.majorTicks,this.majorTickSize),this.AJa(b,this.minorTicks,this.minorTickSize)),e+=this.BJa(b),this.axisType==a.AxisType.Y?(k=this.titleStyle.padding,l=this.labelStyle.padding,e+=k.iT()?a.FRa:k.left+k.right,e+=l.iT()?a.ERa:l.left+l.right):this.axisType===a.AxisType.X&&(k=this.titleStyle.padding,l=this.labelStyle.padding,e+=k.iT()?a.FRa:k.top+k.bottom,e+=l.iT()?a.ERa:l.top+l.bottom),this.EJa.isOrdinal&&(a.GHa(b,this.labelStyle),e+=this.DJa(b,f)),b.restoreTransform(),b.restoreTransform(),this.position==a.AxisPosition.None?0:e},d.prototype.getMaxLableSize=function(b){var c,d,e,f,g,h,i,j;for(b.beginTransform(),a.GHa(b,this.labelStyle),c=a.ASa,d=a.BSa,e=this.EJa.isOrdinal,f=new a.core.Size(0,0),g=0;g=f.length?null:f[n+1],this.fJa&&!this.EJa.isOrdinal&&(o=new Date(o)),q=this.EJa.labelFromValue(o,this.GPa().format),r=b.measureString(q,F,this.HPa()),this.labels||(r.width=0,r.height=0),s=this.mJa.getScaleValue(o),t=NaN,u=m.iT()?a.ERa:m.top,v=this.lJa.top+Math.max(h,k)+u,w=this.lJa.top,g&&(u=m.iT()?a.ERa:m.bottom,v=this.lJa.bottom-Math.max(h,k)-this.GKa.height-u,w=this.lJa.bottom),x=new a.AxisViewModel,x.hidden=!1,x.label=q,y=s,z=v+r.height/2,null!=c&&c>0&&(y=s+Math.cos(c*Math.PI/180)*r.width/2,z=v+r.height/2+Math.sin(c*Math.PI/180)*r.width/2),null!=c&&c<0&&(y=s-Math.cos(c*Math.PI/180)*r.width/2,z=v+r.height/2+Math.sin(c*Math.PI/180)*r.width/2),x.labelRect=new a.RotateRect(y,z,r.width,r.height,c*Math.PI/180),x.majorTickLine=new a.RotateLine(s,w,h,i-h,g?Math.PI:0),A=this.majorTicks,B=this.minorTicks,C=this.fJa?1e3*a.hEa.fromDays(this.minorUnit).TotalSeconds:this.minorUnit,Math.abs(C)=e.length?null:e[m+1],this.fJa&&(n=new Date(n)),p=this.EJa.labelFromValue(n,this.GPa().format),q=b.measureString(p,E,this.HPa()),this.labels||(q.width=0,q.height=0),r=q.width,s=this.mJa.getScaleValue(n),t=l.iT()?a.ERa:l.right,u=this.lJa.right-Math.max(g,j)-t,v=this.lJa.right,f&&(t=l.iT()?a.ERa:l.left,u=this.lJa.left+Math.max(g,j)+t+q.width,v=this.lJa.left),w=new a.AxisViewModel,w.hidden=!1,w.label=p,x=u-q.width/2,y=s,null!=c&&0!=c&&(c<0?(x=u-Math.cos(c*Math.PI/180)*q.width/2,y=s-Math.sin(c*Math.PI/180)*q.width/2):(x=u-Math.sin(c*Math.PI/180)*q.width/2,y=s-Math.cos(c*Math.PI/180)*q.width/2)),w.labelRect=new a.RotateRect(x,y,q.width,q.height,c*Math.PI/180),w.majorTickLine=new a.RotateLine(v,s,g,h-g,Math.PI/2*(f?-1:1)),z=this.majorTicks,A=this.minorTicks,B=this.fJa?1e3*a.hEa.fromDays(this.minorUnit).TotalSeconds:this.minorUnit,Math.abs(B)0&&"transparent"!=b.stroke&&"#00000000"!=b.stroke&&"rgba(0,0,0,0)"!=b.stroke&&(d?c?this.fTa=this.lJa.right:this.fTa=this.lJa.left:c?this.fTa=this.lJa.top:this.fTa=this.lJa.bottom),b.restoreTransform()},d.prototype.IKa=function(){var a=0;return this.labelAngle&&(a=this.labelAngle,a>90?a=90:a<-90&&(a=-90)),void 0===this.labelAngle&&void 0!==this.FKa&&(a=this.FKa),a},d.prototype.yl=function(b){var c,d,e,f,g,h,i,j,k,l,m,n;if(null!=this.lJa&&!a.x7.isNil(this.lJa)&&this.position!=a.AxisPosition.None&&(b.beginTransform(),a.GHa(b,this.style),a.GHa(b,this.textStyle),c=this.VIa,null!==this.getPosition())){for(b.startGroup(this.HPa()),this.cEa={},d=this.IKa(),e=this.axisType==a.AxisType.Y,f=this.position==a.AxisPosition.Near,g=0,h=this.$Ia;g0&&(j=this.majorTickSize,k=this.YIa,l=this.majorTicks,void 0!==l&&null!==l||(l=a.TickMark.Outside),l==a.TickMark.Outside?k=1:l==a.TickMark.Inside?k=-1:l==a.TickMark.Cross&&(k=0),m=.5*(k-1)*j,n=.5*(1+k)*j,f?(this.QKa(b,this.EJa.groups,1,this.lJa.right-n-this.ZIa-2-this.GKa.width,this.lJa.top+n+this.GKa.height,d),this.EJa.groupLevels>=1&&this.RKa(b,this.EJa.groups,[],1,this.lJa.right,this.lJa.top)):(this.QKa(b,this.EJa.groups,1,this.lJa.left+n+this.ZIa+2+this.GKa.width,this.lJa.bottom-n-this.GKa.height,d),this.EJa.groupLevels>=1&&this.RKa(b,this.EJa.groups,[],1,this.lJa.left,this.lJa.bottom))),this.SKa(b,e,f),this.TKa(b,e,f),b.endGroup(),b.restoreTransform()}},d.prototype.OKa=function(b,c,d){var e,f,g;for(d.beginTransform(),a.GHa(d,this.style),d.fill=this.style.backgroundColor||"none",e=[],f=[],g=0;g<4;++g)e[g]=b.labelRect.points[g].x,f[g]=b.labelRect.points[g].y;d.drawPolygon(e,f),d.restoreTransform()},d.prototype.NKa=function(b,c){var d,e;if(this.majorTicks!=a.TickMark.None&&c.majorTickLine&&(b.beginTransform(),a.GHa(b,this.hPa()),a.GHa(b,this.majorTickStyle),b.drawLine(c.majorTickLine.startPoint.x,c.majorTickLine.startPoint.y,c.majorTickLine.endPoint.x,c.majorTickLine.endPoint.y,a.CSa),b.restoreTransform()),this.minorTicks!=a.TickMark.None){for(b.beginTransform(),a.GHa(b,this.iPa()),a.GHa(b,this.minorTickStyle),d=0;dMath.PI/2?b.drawStringRotated(c.label,c.labelRect.rightTop,c.labelRect.rightTop,180*c.labelRect.angle/Math.PI+180):b.drawStringRotated(c.label,c.labelRect.leftBottom,c.labelRect.leftBottom,180*c.labelRect.angle/Math.PI),b.endGroup(),b.restoreTransform()}},d.prototype.RKa=function(b,c,d,e,f,g){var h,i,j,k,l,m,n,o,p,q,r,s;if(b.beginTransform(),a.GHa(b,this.IPa()),a.GHa(b,this.majorGridStyle),h=this.axisType==a.AxisType.Y,i=a.CSa,j=this.position==a.AxisPosition.Near,h){if(k=f,j)for(l=0;l0&&this.RKa(b,n,d,e+1,f,g)}else{if(q=g,j)for(l=0;l0&&this.RKa(b,n,d,e+1,f,g)}b.restoreTransform()},d.prototype.QKa=function(b,c,d,e,f,g){var h,i,j;for(b.beginTransform(),a.GHa(b,this.labelStyle),h=0;h0&&this.QKa(b,i.children,d+1,e,f,g);b.restoreTransform()},d.prototype.SKa=function(b,c,d){if(this.axisLine){b.beginTransform(),a.GHa(b,this.VOa()),a.GHa(b,this.lineStyle);var e=a.GSa;c?d?b.drawLine(this.lJa.right,this.lJa.top,this.lJa.right,this.lJa.bottom,e):b.drawLine(this.lJa.left,this.lJa.top,this.lJa.left,this.lJa.bottom,e):d?b.drawLine(this.lJa.left,this.lJa.top,this.lJa.right,this.lJa.top,e):b.drawLine(this.lJa.left,this.lJa.bottom,this.lJa.right,this.lJa.bottom,e),b.restoreTransform()}},d.prototype.TKa=function(b,c,d){var e,f,g,h;this.title&&(b.beginTransform(),a.GHa(b,this.titleStyle),e=a.BSa,g=2,h=this.titleStyle.padding,c?d?(g=h.iT()?0:h.left,f=new a.core.Point(this.lJa.left+.5*this.CJa.height+g,this.lJa.top+.5*this.lJa.height),a.VHa.renderRotatedText(b,this.title,f,1,1,f,-90,e,this.HPa())):(g=h.iT()?0:h.right,f=new a.core.Point(this.lJa.right-.5*this.CJa.height-g,this.lJa.top+.5*this.lJa.height),a.VHa.renderRotatedText(b,this.title,f,1,1,f,90,e,this.HPa())):d?(g=h.iT()?0:h.bottom,a.VHa.renderText(b,this.title,new a.core.Point(this.lJa.left+.5*this.lJa.width,this.lJa.bottom-g),1,2,e)):(g=h.iT()?0:h.top,a.VHa.renderText(b,this.title,new a.core.Point(this.lJa.left+.5*this.lJa.width,this.lJa.top+g),1,0,e)),b.restoreTransform())},d.prototype.UKa=function(b,c,d,e,f,g,h){var i,j,k,l,m=a.ASa,n=this.eJa==a.AxisType.Y,o=this.VKa(n),p=this.position==a.AxisPosition.Near;if(n)if(i=this.convert(d),j=e,p){for(k=this.dJa.length-1;k>h;--k)j-=this.dJa[k];l=new a.core.Point(j,i),g>0?90==g?a.VHa.renderRotatedText(b,c,l,1,0,l,g,m,this.HPa()):a.VHa.renderRotatedText(b,c,l,2,1,l,g,m,this.HPa()):g<0?g==-90?a.VHa.renderRotatedText(b,c,l,1,2,l,g,m,this.HPa()):a.VHa.renderRotatedText(b,c,l,2,1,l,g,m,this.HPa()):this.$Ja(b,d,c,l,2,o,m)}else{for(k=this.dJa.length-1;k>h;--k)j+=this.dJa[k];l=new a.core.Point(j,i),g>0?90==g?a.VHa.renderRotatedText(b,c,l,1,2,l,g,m,this.HPa()):a.VHa.renderRotatedText(b,c,l,0,1,l,g,m,this.HPa()):g<0?g==-90?a.VHa.renderRotatedText(b,c,l,1,0,l,g,m,this.HPa()):a.VHa.renderRotatedText(b,c,l,0,1,l,g,m,this.HPa()):this.$Ja(b,d,c,l,0,o,m)}else if(j=this.convert(d),p){for(i=f,k=this.dJa.length-1;k>h;--k)i+=this.dJa[k];l=new a.core.Point(j,i),0!=g?this.WKa(b,c,l,g,m,p):this.$Ja(b,d,c,l,o,0,m)}else{for(i=f,k=this.dJa.length-1;k>h;--k)i-=this.dJa[k];l=new a.core.Point(j,i),0!=g?this.WKa(b,c,l,g,m,p):this.$Ja(b,d,c,l,o,1,m)}},d.prototype.$Ja=function(b,c,d,e,f,g,h){var i,j,k,l=!1;return this.itemFormatter&&(i=e.clone(),this.axisType==a.AxisType.X?this.getPosition()==a.Position.Top?i.y=this.KKa.top:i.y=this.KKa.bottom:this.getPosition()==a.Position.Right?i.x=this.KKa.right:i.x=this.KKa.left,j={val:c,text:d,pos:i,cls:h},j=this.itemFormatter(b,j),j?(d=j.text,h=j.cls):d=null),d&&(k=a.VHa.renderText(b,d,e,f,g,h,null,null,null)),!0},d.prototype.WKa=function(b,c,d,e,f,g){var h,i,j,k,l;return!!c&&(h=b.measureString(c,f,this.HPa()),i=new a.core.Rect(d.x,d.y,h.height+2,h.width),j=this.overlappingLabels==a.AxisOverlappingLabels.Auto,90!=e&&e!=-90&&(k=.5*h.height*Math.abs(Math.sin(e*Math.PI/180)),g?d.y+=k:d.y-=k),l=g?e>0?0:2:e>0?2:0,a.VHa.renderRotatedText(b,c,d,l,1,d,e,f,this.HPa()),!0)},d.prototype.VKa=function(a){var b,c=1;return this.labelAlign&&(b=this.labelAlign.toLowerCase(),a?"top"==b?c=0:"bottom"==b&&(c=2):"left"==b?c=0:"right"==b&&(c=2)),c},d.prototype.convert=function(a,b,c){return this.mJa.getScaleValue(a)},Object.defineProperty(d.prototype,"axisType",{get:function(){return this.eJa},enumerable:!0,configurable:!0}),d.prototype.HJa=function(){return this.GPa().min},d.prototype.IJa=function(){return this.GPa().max},d.prototype.$p=function(){},d.prototype.LKa=function(a){var b,c=a?this.GKa.height:this.GKa.width,d=a?this.lJa.height:this.lJa.width;return c>0&&d>0?(b=Math.floor(d/(c+6)),b<=0&&(b=1),b):10},d.prototype.onHitted=function(b){return b.contains(this.lJa)?new a.HitInfo(new a.core.Point(b.x,b.y),this.EJa,null,this,[a.ElementType.Axis],null):null},d}(a.QJa);a.fEa=c}(d||(d={})),function(a){"use strict";var b=function(b){e(c,b);function c(c){var d=b.call(this,c)||this;return d.XKa=[],d.YKa=new a.fEa(d,a.AxisType.X,new a.options.QEa({})),d.ZKa=new a.fEa(d,a.AxisType.Y,new a.options.QEa({})),d}return c.prototype.getAxes=function(){var a=[this.ZKa,this.YKa];return this.auxAxes.forEach(function(b){return a.push(b)}),a},Object.defineProperty(c.prototype,"axisX",{get:function(){return this.YKa},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"axisY",{get:function(){return this.ZKa},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"auxAxes",{get:function(){return this.XKa},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"plotRect",{get:function(){return this.$Ka},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"plotMargin",{get:function(){return this._Ka},set:function(a){this._Ka=a},enumerable:!0,configurable:!0}),c.prototype.updateAxis=function(a,b){void 0===b&&(b=null),a.GJa(b)},c.prototype._R=function(b,c){var d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t=c.width,u=c.height,v=new a.core.Size(t,.75*u),w=new a.core.Size(u,.75*t),x=0,y=0,z=t,A=u,B=0,C=0,D=t,E=u,F=0,G=0,H=this.getAxes();for(H.sort(function(b,c){return b.axisType===a.AxisType.X?1:-1}),d=0;dv.height&&(h=v.height),e.aLa=new a.core.Size(v.width,h),i=e.bLa=a.core.isNumber(f)&&f>this.axisY.HJa()&&fw.height&&(h=w.height),F+=h,e.aLa=new a.core.Size(w.width,h),i=e.bLa=a.core.isNumber(f)&&f>this.axisX.HJa()&&f0&&b.drawRect(this.plotRect.left,this.plotRect.top,this.plotRect.width,this.plotRect.height),b.restoreTransform()},c.prototype.dLa=function(a,b,c){var d=this.axisX;return d.reversed?c-(c-b)*(a-d.HJa())/(d.IJa()-d.HJa()):b+(c-b)*(a-d.HJa())/(d.IJa()-d.HJa())},c.prototype.cLa=function(a,b,c){var d=this.axisY;return d.reversed?b+(c-b)*(a-d.HJa())/(d.IJa()-d.HJa()):c-(c-b)*(a-d.HJa())/(d.IJa()-d.HJa())},c}(a.RJa);a.yKa=b}(d||(d={})),function(a){"use strict";var b=function(b){e(c,b);function c(c,d,e){var f=b.call(this,c,d,e)||this;return f.eLa=0,f.fLa=0,f.gLa=0,f.MPa=0,f.DPa=2*Math.PI,f.NPa=0,f.eAa.position=a.AxisPosition.Near,f}return Object.defineProperty(c.prototype,"cx",{get:function(){return this.wPa},set:function(a){this.wPa=a},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"cy",{get:function(){return this.xPa},set:function(a){this.xPa=a},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"innerRadius",{get:function(){return this.NPa},set:function(a){this.NPa=a},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"radius",{get:function(){return this.CPa},set:function(a){this.CPa=a},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"startAngle",{get:function(){return this.MPa+Math.PI},set:function(a){this.MPa=a},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"sweep",{get:function(){return this.DPa},set:function(a){this.DPa=a},enumerable:!0,configurable:!0}),c.prototype.OPa=function(a){return void 0===a?this.gLa:void(this.gLa=a)},c.prototype.getPosition=function(){return this.position==a.AxisPosition.None?null:this.axisType==a.AxisType.X?this.position==a.AxisPosition.Near?a.Position.Bottom:a.Position.Top:this.axisType==a.AxisType.Y?this.position==a.AxisPosition.Near?a.Position.Left:a.Position.Right:null},c.prototype.yJa=function(){var b,c,d,e;for(b=0;b=f.length?null:f[n+1],q=e?this.EJa.labelFromValue(this.fJa?new Date(o):o,null):this.EJa.labelFromValue(this.fJa?new Date(o):o,this.GPa().format),r=b.measureString(q,E,this.HPa()),this.labels||(r.width=0,r.height=0),s=this.mJa.getScaleValue(o+this.gLa),t=Math.cos(this.startAngle)*s+this.cx,u=Math.sin(this.startAngle)*s+this.cy,v=l.iT()?a.ERa:l.top,w=t+Math.sin(this.startAngle)*(Math.max(g,j)+v+r.height/2),x=u-Math.cos(this.startAngle)*(Math.max(g,j)+v+r.height/2),y=NaN,z=new a.RadialAxisViewModel,z.hidden=!1,z.label=q,z.labelRect=new a.RotateRect(w,x,r.width,r.height,this.startAngle-Math.PI+(isNaN(c)?0:c*Math.PI/180)+(isNaN(c)?Math.PI/2:0)),z.majorTickLine=new a.RotateLine(t,u,h-g,g,this.startAngle),A=this.minorUnit,null==A&&(A=(p-o)/2),isNaN(m)&&(m=o+A);m=e.length?null:e[n+1],this.fJa&&(o=new Date(o)),q=this.EJa.labelFromValue(o,this.GPa().format),r=b.measureString(q,D,this.HPa()),this.labels||(r.width=0,r.height=0),s=this.mJa.getScaleValue(o),t=this.cx+Math.cos(s)*this.radius,u=this.cy+Math.sin(s)*this.radius,v=m.iT()?a.ERa:m.bottom,w=this.cx+Math.cos(s)*(this.radius+Math.max(g,j)+v+(c?r.width/2:r.height/2)),x=this.cy+Math.sin(s)*(this.radius+Math.max(g,j)+v+(c?r.width/2:r.height/2)),y=new a.RadialAxisViewModel,y.hidden=!1,y.label=q,y.labelRect=new a.RotateRect(w,x,r.width,r.height,s+Math.PI/2+c*Math.PI/180),y.majorTickLine=new a.RotateLine(t,u,g,h-g,s-Math.PI/2),z=this.minorUnit,null==z&&(z=(p-o)/2),isNaN(k)&&(k=o+z);k90?a=90:a<-90&&(a=-90)),void 0===this.labelAngle&&void 0!==this.FKa&&(a=this.FKa),a},c.prototype.yl=function(b){var c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s;if(this.position!=a.AxisPosition.None&&(b.beginTransform(),a.GHa(b,this.style),a.GHa(b,this.textStyle),c=a.CSa,d=a.ASa,e=a.ESa,f=this.VIa,null!==this.getPosition())){for(b.startGroup(this.HPa()),this.cEa={},g=this.IKa(),h=this.axisType==a.AxisType.Y,i=this.position==a.AxisPosition.Near,j=0;j0&&d>0?(b=Math.floor(d/(c+6)),b<=0&&(b=1),b):10},c}(a.QJa);a.zKa=b}(d||(d={})),function(a){"use strict";var b=function(b){e(c,b);function c(c){var d=b.call(this,c)||this;return d.XKa=[],d.YKa=new a.zKa(d,a.AxisType.X,new a.options.QEa({})),d.ZKa=new a.zKa(d,a.AxisType.Y,new a.options.QEa({})),d}return c.prototype.getAxes=function(){var a=[this.YKa,this.ZKa];return this.auxAxes.forEach(function(b){return a.push(b)}),a},Object.defineProperty(c.prototype,"axisX",{get:function(){return this.YKa},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"axisY",{get:function(){return this.ZKa},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"auxAxes",{get:function(){return this.XKa},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"plotRect",{get:function(){return this.$Ka},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"plotMargin",{get:function(){return this._Ka},set:function(a){this._Ka=a},enumerable:!0,configurable:!0}),c.prototype.updateAxis=function(a,b){void 0===b&&(b=null),a.GJa(b)},c.prototype._R=function(b,c){var d,e,f,g,h,i,j,k,l=c.width,m=c.height,n=c.left+c.width/2,o=c.top+c.height/2,p=lthis.axisY.HJa()&&fthis.axisX.HJa()&&f0&&b.drawEllipse(e,f,g,g),b.restoreTransform()},c}(a.RJa);a.xKa=b}(d||(d={})),function(a){"use strict";var b,c=function(){function a(){}return a}();a.mLa=c,b=function(){function a(a){this.nLa=[],this.uPa=a}return a.prototype.add=function(a){this.nLa.push(a)},a.prototype.clear=function(){this.nLa=[]},a.prototype.hitTest=function(a,b){var d,e,f,g,h,i,j,k;if(void 0===b&&(b=!1),d=null,e=Number.MAX_VALUE,f=this.nLa)for(g=f.length,h=g-1;h>=0&&(i=f[h],j=i.distance(a),!(j0&&this.ellipsizethis.rLa.height?this.sLa.height:this.rLa.height,a.x7.translateRectY(this.hRa.layoutInfo.rect,c);break;case a.Position.Right:this.rLa.heightthis.rLa.height?this.sLa.height:this.rLa.height,a.x7.translateRect(this.hRa.layoutInfo.rect,this.sLa.width,c);break;case a.Position.Top:this.rLa.widththis.sLa.width?this.rLa.width:this.sLa.width,this.layoutInfo.rect.height+=this.sLa.height+this.rLa.height,a.x7.translateRect(this.hRa.layoutInfo.rect,c,0);break;case a.Position.Bottom:this.rLa.widththis.sLa.width?this.rLa.width:this.sLa.width,this.layoutInfo.rect.height+=this.sLa.height+this.rLa.height,a.x7.translateRect(this.hRa.layoutInfo.rect,c,this.sLa.height)}return this.orientation===a.Orientation.Horizontal?this.layoutInfo.rect.width+=this.itemPadding:this.layoutInfo.rect.height+=this.itemPadding,this.tLa=new a.core.Size(this.layoutInfo.rect.width,this.layoutInfo.rect.height),this.tLa},b.prototype.render=function(b){var c,d;b.startGroup(a.ASa),c=a.x7.getPoint(this.layoutInfo.rect),d=this.layoutInfo.rect.clone(),this.orientation===a.Orientation.Horizontal?(a.x7.translateRectX(d,this.itemPadding/2),c.x+=this.itemPadding/2):(a.x7.translateRectY(d,this.itemPadding/2),c.y+=this.itemPadding/2),this.uLa&&(c.x+=this.uLa.width-this.tLa.width,a.x7.translateRectX(d,this.uLa.width-this.tLa.width)),this.hRa.render(c,b),this.vLa(b,d),this.KIa.rect=d,b.endGroup()},b.prototype.vLa=function(b,c){var d,e,f=this.PPa().Za();null!=f&&(f.iTa=this.PPa().seriesColor,f.tE=this.PPa().color||"black",f.Wqa=this.jTa(),d=new a.core.Point(c.left,c.top),e=0,this.labelPosition===a.Position.Left||this.labelPosition===a.Position.Right?(this.rLa.height>this.sLa.height&&(e=(this.rLa.height-this.sLa.height)/2),this.labelPosition===a.Position.Left?(d.x+=this.rLa.width,d.y+=e,f.render(b,new a.core.Rect(d.x,d.y,this.sLa.width,this.sLa.height))):this.labelPosition===a.Position.Right&&f.render(b,new a.core.Rect(d.x,d.y+e,this.sLa.width,e+this.sLa.height))):(this.rLa.width>this.sLa.width&&(e=(this.rLa.width-this.sLa.width)/2),this.labelPosition===a.Position.Top?(d.y+=this.rLa.height,f.render(b,new a.core.Rect(d.x,d.y,this.sLa.width,this.sLa.height))):f.render(b,new a.core.Rect(d.x,d.y,this.sLa.width,this.sLa.height))))},b.prototype.jTa=function(){var b=this.PPa().parent.parent.parent.$z().style,c=new a.options.AFa(this.PPa().style);return null==c.stroke&&(c.stroke=b.stroke),null==c.strokeWidth&&(c.strokeWidth=b.strokeWidth),null==c.strokeDasharray&&(c.strokeDasharray=b.strokeDasharray),c},b.COL_ROW_PADDING=10,b.END="...",b}();a.kRa=b}(d||(d={})),function(a){"use strict";var b=function(){function b(b){this.layoutInfo=new a.pLa,this.zLa=[],this.ALa=0,this.BLa=b}return Object.defineProperty(b.prototype,"label",{get:function(){return this.BLa.title},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"position",{get:function(){return this.BLa.titlePosition},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"area",{get:function(){return this.layoutInfo.rect},enumerable:!0,configurable:!0}),b.prototype.getDesiredSize=function(c,d,e){var f,g,h;if(a.x7.resetRect(this.layoutInfo.rect,0,0,0,0),!this.label)return new a.core.Size(0,0);switch(f=null,this.zLa.length=0,g=c.measureString(this.label),this.zLa.push(this.label),this.ALa=g.height,h=1,this.position){case a.Position.Left:g=this.CLa(c,this.label,b.TITLE_MAX_SIZE_LEFT_RIGHT,f,!0),g.width+=b.TITLE_PADDING_HORIZONTAL,this.layoutInfo.rect.left=e.x,this.layoutInfo.rect.top=e.y+(d.height-g.height)/2;break;case a.Position.Right:g=this.CLa(c,this.label,b.TITLE_MAX_SIZE_LEFT_RIGHT,f,!0),g.width+=b.TITLE_PADDING_HORIZONTAL,this.layoutInfo.rect.left=e.x+d.width-g.width,this.layoutInfo.rect.top=e.y+(d.height-g.height)/2,a.x7.translateRectX(this.layoutInfo.rect,b.TITLE_PADDING_HORIZONTAL);break;case a.Position.Top:for(;g.width>=d.width;)h++,g=this.CLa(c,this.label,this.label.length/h,f);g.height+=b.TITLE_PADDING_VERTICAL,this.layoutInfo.rect.left=e.x+(d.width-g.width)/2,this.layoutInfo.rect.top=e.y;break;case a.Position.Bottom:for(;g.width>=d.width;)h++,g=this.CLa(c,this.label,this.label.length/h,f);g.height+=b.TITLE_PADDING_VERTICAL,this.layoutInfo.rect.left=e.x+(d.width-g.width)/2,this.layoutInfo.rect.top=e.y+d.height-g.height,a.x7.translateRectY(this.layoutInfo.rect,b.TITLE_PADDING_VERTICAL)}return this.layoutInfo.rect.width=g.width,this.layoutInfo.rect.height=g.height,g},b.prototype.CLa=function(c,d,e,f,g){var h,i,j,k;for(this.zLa.length=0,h=new a.core.Size(0,0),i=0;ic.width&&(f.width=c.width),f.height>c.height&&(f.height=c.height),b.restoreTransform(),this.ELa=!1,f)},d.prototype.PIa=function(a,b){var c,d,e;for(this.rCa.x=b.left-this.ILa.left,this.rCa.y=b.top-this.ILa.top,this.ILa=b.clone(),this.KIa.rect=this.ILa,c=0,d=this._items;cl.right?(a.x7.translateRect(g.layoutInfo.rect,l.left,k.layoutInfo.rect.top+m+a.kRa.COL_ROW_PADDING),m=g.layoutInfo.rect.height):(a.x7.translateRect(g.layoutInfo.rect,k.layoutInfo.rect.right,k.layoutInfo.rect.top),g.layoutInfo.rect.height>m&&(m=g.layoutInfo.rect.height)):(a.x7.translateRect(g.layoutInfo.rect,l.left,l.top),m=g.layoutInfo.rect.height):k?a.x7.translateRect(g.layoutInfo.rect,k.layoutInfo.rect.right,k.layoutInfo.rect.top):a.x7.translateRect(g.layoutInfo.rect,l.left,l.top),i.heightj.bottom?(a.x7.translateRect(g.layoutInfo.rect,f.layoutInfo.rect.left+k+a.kRa.COL_ROW_PADDING,j.top),k=g.layoutInfo.rect.width,l=new a.core.Size):(a.x7.translateRect(g.layoutInfo.rect,f.layoutInfo.rect.left,f.layoutInfo.rect.bottom),g.layoutInfo.rect.width>k&&(k=g.layoutInfo.rect.width)):(a.x7.translateRect(g.layoutInfo.rect,j.left,j.top),k=g.layoutInfo.rect.width):f?a.x7.translateRect(g.layoutInfo.rect,f.layoutInfo.rect.left,f.layoutInfo.rect.bottom):a.x7.translateRect(g.layoutInfo.rect,j.left,j.top),i.heightk.width&&(k.width=h.width),k.height+=h.height;return i=new a.XJa,i.rect=new a.core.Rect(j.x,j.y,k.width,k.height),i},b.prototype.getLineStartPoint=function(a,b){return b},b.prototype.LLa=function(){return null},b}();a.WLa=b}(d||(d={})),function(a){var b;!function(a){a[a.CoordinateSystem_None=0]="CoordinateSystem_None",a[a.CoordinateSystem_Xy=1]="CoordinateSystem_Xy",a[a.CoordinateSystem_Radial=2]="CoordinateSystem_Radial",a[a.CoordinateSystemFilter=255]="CoordinateSystemFilter",a[a.Chart_Empty=256]="Chart_Empty",a[a.Chart_Bar=512]="Chart_Bar",a[a.Chart_Area=768]="Chart_Area",a[a.Chart_Line=1024]="Chart_Line",a[a.Chart_Scatter=1280]="Chart_Scatter",a[a.Chart_Treemap=1536]="Chart_Treemap",a[a.ChartFilter=16776960]="ChartFilter"}(b=a.DataGraphType||(a.DataGraphType={}))}(d||(d={})),function(a){"use strict";var b=function(b){e(c,b);function c(){var c=null!==b&&b.apply(this,arguments)||this;return c.XLa=NaN,c.YLa=!1,c.cb=a.Group.Cluster,c.ZLa=null,c.$La={left:0,top:0,right:0,bottom:0},c}return Object.defineProperty(c.prototype,"radial",{get:function(){return this.$z().config.radial},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"symbols",{get:function(){return this.$z().config.symbols},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"swapAxes",{get:function(){return this.$z().config.swapAxes},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"clippingMode",{get:function(){return this.$z().config.clippingMode},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"showNulls",{get:function(){return this.$z().config.showNulls},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"innerRadius",{get:function(){return this.$z().config.innerRadius},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"sweep",{get:function(){return this.$z().config.sweep},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"startAngle",{get:function(){return this.$z().config.startAngle},enumerable:!0,configurable:!0}),c.prototype.RPa=function(){var a,b,c,d,e,f,g,h,i;if(isNaN(this.XLa))for(a=0,b=this.dataModel.dataSeriesList;athis.dataModel.xSite.min&&(h=2*(i-this.dataModel.xSite.min)):null!=d&&(h=Math.abs(i-this._La(d.xValue))),!isNaN(h)&&h>0&&(isNaN(this.XLa)||this.XLa>h)&&(this.XLa=h),d=g;return this.XLa},c.prototype._La=function(b){return!this.dataModel.xSite.isOrdinal||this.dataModel.xSite.dataType!=a.core.DataType.Date&&this.dataModel.xSite.dataType!=a.core.DataType.Number?b:this.dataModel.xField.Ey.indexOf(b)},c.prototype.AKa=function(){return this.plotArea.AKa(this.name)},c.prototype.le=function(){return this.plotArea.le(this.name)},c.prototype.LLa=function(){return this.ZLa},c.prototype.wPa=function(){return this.sS().left+this.sS().width/2},c.prototype.xPa=function(){return this.sS().top+this.sS().height/2},c.prototype.onHitted=function(b){var c,d,e;if(b.contains(this.sS()))for(c=null,d=this.oi.length-1;d>=0;--d)if(e=this.oi[d],c=e.onHitted(b),null!=c)return c.elementType.push(a.ElementType.Plot),c.plot=this,c;return null},c.prototype.Query=function(b){var c,d,e,f,g,h,i=[],j=new a.ZRa(b,function(b,c){var d,e;try{return d=new a.core.Binding(c),e=d.getValue(b.item),null==e&&(e=d.getValue(b)),e}catch(a){}return null},function(a,b){var c,d=a.item;for(c in d)if(b==c)return!0;return!1},function(a){i.push(a)});for(c=0,d=this.dataModel.dataSeriesList;ci&&(q=i),rk&&(s=k),tb.right&&(a.top=(a.bottom-this.xPa())*(b.right-this.wPa())/(a.right-this.wPa())+this.xPa()+a.height,a.left=b.right-a.width),a.top-a.heightb.bottom&&(a.left=(a.left-this.wPa())*(b.bottom-this.xPa())/(a.bottom-this.xPa())+this.wPa(),a.top=b.bottom)},c.prototype.getLabelPositionRadial=function(b,c,d){var e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x=2,y=c,z=c.item,A=this.AKa(),B=this.le(),C=new a.core.Size(0,0);for(e=0,f=d;eC.width&&(C.width=h.width),C.height+=h.height;return i=new a.XJa,j=a.core.asEnum(this.dataModel.$z().config.text.position,a.TextPosition),k=this.dataModel.$z().config.text.style&&this.dataModel.$z().config.text.style.strokeWidth?this.dataModel.$z().config.text.style.strokeWidth:x,l=this.RLa.nLa,m=this.sS().width=0&&o&&(u=m),j===a.TextPosition.Center&&(u+=y.radius),u+=n,r=p+Math.cos(t)*u,s=q+Math.sin(t)*u,i.rect=new a.core.Rect(r,s,C.width,C.height),i.pt1=new a.core.Point(p+Math.cos(t)*v,q+Math.sin(t)*v),i.pt1=this.getLineStartPoint(c,i.pt1),j=a.core.asEnum(this.dataModel.$z().config.text.position,a.TextPosition),j===a.TextPosition.Outside?(i.rect.top>this.xPa()?(i.rect.top+=i.rect.height,i.rect.top+=i.rect.height/2):i.rect.top-=i.rect.height/2,i.rect.left>this.wPa()?(i.rect.left-=i.rect.width/2,i.rect.left+=i.rect.height/2):(i.rect.left+=i.rect.width/2,i.rect.left-=i.rect.width,i.rect.left-=i.rect.height/2)):j===a.TextPosition.Inside?(i.rect.top>this.xPa()?(i.rect.top+=i.rect.height,i.rect.top-=i.rect.height/2):i.rect.top+=i.rect.height/2,i.rect.left>this.wPa()?(i.rect.left-=i.rect.width/2,i.rect.left-=i.rect.height/2):(i.rect.left+=i.rect.width/2,i.rect.left-=i.rect.width,i.rect.left+=i.rect.height/2)):j===a.TextPosition.Center&&(r=p+Math.cos(t)*u,s=q+Math.sin(t)*u,r-=C.width/2,s+=C.height/2,i.rect=new a.core.Rect(r,s,C.width,C.height)),w=this.plotArea.APa(),this.fittingLabels(i.rect,new a.core.Rect(w.left+k,w.top+k,w.width-2*k,w.height-2*k)),i.pt2=new a.core.Point(i.rect.left+i.rect.width/2,i.rect.bottom),this.dataModel.$z().config.text.style.strokeWidth?i.pt2.x=i.rect.left+i.rect.width/2:i.rect.left+i.rect.width/2=this.wPa()&&(i.pt2.x=i.rect.left),i.rect.top+i.rect.height/2=this.xPa()&&(i.pt2.y=i.rect.top-k),i.pt2.y-=i.rect.height,i},c.prototype.getLabelPositionCartesian=function(b,c,d){var e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y;if(!(c instanceof a.WJa))return null;for(e=2,f=this.dataModel.$z().config.text.style.stroke&&this.dataModel.$z().config.text.style.strokeWidth?this.dataModel.$z().config.text.style.strokeWidth:e,g=c.radius,h=c.item,i=this.AKa(),j=this.le(),k=0,l=0,this.swapAxes?(l=j.GPa().getScaleValue(this._La(h.xValue)),h instanceof a.models.XCa?k=i.GPa().getScaleValue(h.yValue):h instanceof a.models.SCa&&(k=i.GPa().getScaleValue(h.yUpperValue))):(k=i.GPa().getScaleValue(this._La(h.xValue)),h instanceof a.models.XCa?l=j.GPa().getScaleValue(h.yValue):h instanceof a.models.SCa&&(l=j.GPa().getScaleValue(h.yUpperValue))),this.swapAxes?k+=g:l-=g,m=new a.core.Size(0,0),n=0,o=d;nm.width&&(m.width=q.width),m.height+=q.height;switch(r=new a.core.Rect(k,l,m.width,m.height),s=0,t=0,u=this.dataModel.$z().config.text.offset,v=new a.XJa,v.pt1=new a.core.Point(k,l),v.pt2=new a.core.Point(k,l),w=a.core.asEnum(this.dataModel.$z().config.text.position,a.TextPosition),w==a.TextPosition.Auto&&(w=a.TextPosition.Outside),x=c.getPoint(),w){case a.TextPosition.Outside:this.swapAxes?(r.top=x.y,s+=u+f,t+=.5*m.height,v.pt2.x+=u+f,v.pt1.y=v.pt2.y=x.y):(r.left=x.x,s-=.5*m.width,t-=0+(u+f),v.pt1.x=v.pt2.x=x.x,v.pt2.y-=u+f);break;case a.TextPosition.Inside:this.swapAxes?(r.top=x.y,s-=m.width+u,t+=.5*m.height,v.pt2.x-=u,v.pt1.y=r.top,v.pt2.y=r.top):(r.left=x.x,s-=.5*m.width,t+=m.height+u,v.pt1.x=v.pt2.x=x.x,v.pt2.y+=u);break;case a.TextPosition.Center:r.left=x.x,r.top=x.y,s-=.5*m.width,t+=.5*m.height}return r.left+=s,r.top+=t,v.rect=r,y=this.plotArea.APa(),w===a.TextPosition.Outside?this.swapAxes?r.right+e+1>y.right&&(r.left=y.right-e-r.width-1,v.pt2.x=r.left-e):r.top-e-r.heighty.bottom&&(r.top=y.bottom+e-r.height,v.pt2.y=r.top-e)),v.pt1=this.getLineStartPoint(c,v.pt1),v},c.prototype.getLineStartPoint=function(b,c){var d,e,f;return this.dataModel.$z().config.text.linePosition?this.dataModel.$z().config.text.linePosition===a.LinePosition.Center?c:(d=b,e=d.center,f=d.radius,c.y-=f,c):c},c}(a.WLa);a.cMa=b}(d||(d={})),function(a){"use strict";var b,c,d,f=function(c){e(d,c);function d(a,b){return c.call(this,a,b)||this}return Object.defineProperty(d.prototype,"type",{get:function(){return a.DataGraphType.CoordinateSystem_Xy|a.DataGraphType.Chart_Area},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"dataModel",{get:function(){return this.dMa},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"symbols",{get:function(){return!1},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"lineAspect",{get:function(){return this.$z().config.lineAspect},enumerable:!0,configurable:!0}),d.prototype.bindData=function(b){this.dMa=this.eMa(b);var c=this.le();null!=c.scale&&c.scale.type==a.ValueScaleType.Percentage&&this.dMa.NBa()},d.prototype.eMa=function(a){return new b(this,a,this.$z())},d.prototype.setSelected=function(b,d){var e,f,g,h,i,j,k,l;if(null==b)c.prototype.setSelected.call(this,null,d);else if(b instanceof a.models.sCa)c.prototype.setSelected.call(this,b,d);else if(b instanceof a.models.DCa){for(e=0,f=this.dataModel.dataSeriesList;e0&&(h=this.createPolygon(g),i=new a.fMa(g,h.xs,h.ys),i.sS(this.sS().clone()),i.refresh(),this.oi.push(i));c.prototype.layoutSeries.call(this,b,d)}},d.prototype.createPolygon=function(b){var c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,A,B,C,D,E,F;if(null==b.dataPoints||b.dataPoints.length<=0)return null;for(c=this.AKa(),d=this.le(),e={xs:[],ys:[]},f={xs:[],ys:[]},g=0,h=b.dataPoints;g0?b.prototype.IBa.call(this,a,d):null!=this.xField?new c(this.xField,d):b.prototype.IBa.call(this,a,d)},f.prototype.fCa=function(b,c,d,e){return c instanceof a.data.COa?new a.models.YCa(this,b,c,d,e):c instanceof a.data.BOa?new a.models.YCa(this,b,c,d,e):c instanceof a.data.zOa?new a.models.TCa(this,b,c,d,e):c instanceof a.data.AOa?new a.models.TCa(this,b,c,d,e):null},f}(a.models.OCa),c=function(a){e(b,a);function b(){return null!==a&&a.apply(this,arguments)||this}return b.prototype.padding=function(b){return void 0===b?this.isOrdinal?0:a.prototype.padding.call(this):void a.prototype.padding.call(this,b)},b}(a.models.qBa),d=function(b){e(c,b);function c(){return null!==b&&b.apply(this,arguments)||this}return c.prototype.render=function(b,c){var d=c.width1&&(a=1),a<0&&(a=0),a)},f.prototype.UPa=function(){var a=this.QPa().bar.overlap;return null==a?0:(a>1&&(a=1),a<-1&&(a=-1),a)},f.prototype.VPa=function(){var b,c,d,e=0;for(b=0,c=this.dataModel.dataSeriesList;b0&&(d.FCa=0))},f.prototype.jMa=function(a){return this.iMa=a,a+this.VPa()},f.prototype.getwidth=function(a){var b,c;if(null!=a&&a.jMa(),!(null==this.dataModel.dataSeriesList||this.dataModel.dataSeriesList.length<=0))return b=this.RPa()*this.TPa()/a.VPa(),c=this.RPa()/a.VPa(),this.UPa()>0?(b+=b*(a.VPa()-1)*this.UPa(),c+=c*(a.VPa()-1)*this.UPa()):this.UPa()<0&&(b+=b*this.UPa()*.5,c+=c*this.UPa()*.5),{width:b,radialwidth:c}},f.prototype.eMa=function(a){return new c(this,a,this.$z())},f.prototype.measure=function(a,c){var e,f,g,h,i;d.prototype.measure.call(this,a,c),e=b.kMa(this.plotArea),f=this.getwidth(e),g=f.width,h=f.radialwidth,this.radial&&!this.swapAxes&&(i=this.AKa(),i.OPa((g-h)/2))},f.prototype.layoutSeries=function(c,d){var e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P;for(this.oi.length=0,e=b.kMa(this.plotArea),f=this.getwidth(e),g=f.width,h=f.radialwidth,i=this.iMa-1,j=0,k=this.dataModel.dataSeriesList;j=0&&(m=this.QPa().bar.neckHeight*(this.dataModel.ySite.max-(this.dataModel.ySite.min<0?l.ySite.min:0))),null!=this.QPa().bar.bottomWidth&&this.QPa().bar.bottomWidth<=1&&this.QPa().bar.bottomWidth>=0&&(n=this.TPa()<=0?this.QPa().bar.bottomWidth:this.QPa().bar.bottomWidth*g/this.TPa()),isNaN(n)||(this.config.swapAxes&&this.dataModel.xSite.isOrdinal?(o=this.le().GPa(),n=n*(o.endPosition-o.startPosition)/(o.max-o.min)):(o=this.AKa().GPa(),n=n*(o.endPosition-o.startPosition)/(o.max-o.min))),l.cb==a.Group.Cluster&&i++,p=0,e.VPa()>1&&(q=(this.RPa()*this.TPa()-g*e.VPa())/(e.VPa()-1),p=.5*(g-this.RPa()*this.TPa())+(g+q)*i),null!=l&&l.dataPoints.length>0)for(r=0,s=l.dataPoints;rMath.max(G,H)?(E+=(i-f)/2,F-=(i-f)/2,l=E,m=F,n.push(new a.core.Point(G,E)),n.push(new a.core.Point(H,l)),n.push(new a.core.Point(H,m)),n.push(new a.core.Point(G,F))):gMath.max(E,F)?(x=D.GPa().getScaleValue(this.dataModel.ySite.max),y=(E-x)/(g-x)*(h-f)/2,z=(F-x)/(g-x)*(h-f)/2,isNaN(y)&&(y=0),isNaN(z)&&(z=0),A=G,B=H,G=A+z,H=B-z,v=A+y,w=B-y,n.push(new a.core.Point(G,F)),n.push(new a.core.Point(v,E)),n.push(new a.core.Point(w,E)),n.push(new a.core.Point(H,F)),n.push(new a.core.Point(G,F))):(x=D.GPa().getScaleValue(this.dataModel.ySite.max),A=G,B=H,z=(F-x)/(g-x)*(h-f)/2,isNaN(z)&&(z=0),G=A+z,H=B-z,t=A+(h-f)/2,u=B-(h-f)/2,v=t,w=u,n.push(new a.core.Point(G,F)),n.push(new a.core.Point(t,g)),n.push(new a.core.Point(v,E)),n.push(new a.core.Point(w,E)),n.push(new a.core.Point(u,g)),n.push(new a.core.Point(H,F)),n.push(new a.core.Point(G,F))),n)},f.prototype.createRect=function(b,c,d,e){var f,g,h,i;return void 0===e&&(e=!1),f=this.AKa(),g=this.le(),h=NaN,i=NaN,this.swapAxes?(h=g.GPa().getScaleValue(c),i=g.GPa().getScaleValue(d),c=NaN,d=NaN,b instanceof a.models.XCa?(c=isNaN(b.yPreviousValue)?f.GPa().getScaleValue(f.GPa().min<0?0:f.GPa().min):f.GPa().getScaleValue(b.yPreviousValue),d=f.GPa().getScaleValue(b.yValue)):b instanceof a.models.SCa&&(c=f.GPa().getScaleValue(b.yLowerValue),d=f.GPa().getScaleValue(b.yUpperValue))):(c=f.GPa().getScaleValue(c),d=f.GPa().getScaleValue(d),Math.abs(c-d)<1&&(d=c+1),b instanceof a.models.XCa?(h=isNaN(b.yPreviousValue)?g.GPa().getScaleValue(g.GPa().min<0?0:g.GPa().min):g.GPa().getScaleValue(b.yPreviousValue),i=g.GPa().getScaleValue(b.yValue)):b instanceof a.models.SCa&&(h=g.GPa().getScaleValue(b.yLowerValue),i=g.GPa().getScaleValue(b.yUpperValue))),null==c||null==d||null==h||null==i||isNaN(c)||isNaN(d)||isNaN(h)||isNaN(i)?null:e?{innerRadius:Math.min(c,d),startAngle:Math.min(h,i),radius:Math.min(c,d)+Math.abs(d-c),sweep:Math.abs(i-h)}:{left:Math.min(c,d),top:Math.min(h,i),width:Math.abs(d-c),height:Math.abs(i-h)}},f.prototype.getLineStartPoint=function(b,c){var d,e,f,g;return this.$z().config.text.linePosition&&this.$z().config.text.linePosition==a.LinePosition.Center?this.radial?(d=b,e=d.angle+d.sweep/2,f=d.radius+d.innerRadius,c=new a.core.Point(d.center.x+Math.cos(e)*f/2,d.center.y+Math.sin(e)*f/2)):(d=b,g=d.rect,c.x=g.left+g.width/2,c.y=g.top+g.height/2,c):c},f.prototype.getLabelPosition=function(a,b,c){return this.radial?this.getLabelPositionRadial(a,b,c):this.getLabelPositionCartesian(a,b,c)},f.prototype.getLabelPositionRadial=function(b,c,d){var e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,A,B,C,D,E=2,F=c,G=this.AKa(),H=this.le(),I=new a.core.Size(0,0);for(e=0,f=d;eI.width&&(I.width=h.width),I.height+=h.height;if(i=new a.XJa,j=this.$z().config.text.position,k=E,null!=this.$z().config.text.style.strokeWidth&&(k=this.$z().config.text.style.strokeWidth),l=this.RLa.nLa,m=this.sS().width=0&&o&&(u=m),j===a.TextPosition.Center&&(u=(F.innerRadius+F.radius)/2),u+=n,r=p+Math.cos(t)*u,s=q+Math.sin(t)*u,i.rect=new a.core.Rect(r,s,I.width,I.height),i.pt1=new a.core.Point(p+Math.cos(t)*F.radius,q+Math.sin(t)*F.radius),i.pt1=this.getLineStartPoint(c,i.pt1),j===a.TextPosition.Outside?(i.rect.top>this.xPa()?(i.rect.top+=i.rect.height,i.rect.top+=i.rect.height/2):i.rect.top-=i.rect.height/2,i.rect.left>this.wPa()?(i.rect.left-=i.rect.width/2,i.rect.left+=i.rect.height/2):(i.rect.left+=i.rect.width/2,i.rect.left-=i.rect.width,i.rect.left-=i.rect.height/2)):j===a.TextPosition.Inside?(i.rect.top>this.xPa()?(i.rect.top+=i.rect.height,i.rect.top-=i.rect.height/2):i.rect.top+=i.rect.height/2,i.rect.left>this.wPa()?(i.rect.left-=i.rect.width/2,i.rect.left-=i.rect.height/2):(i.rect.left+=i.rect.width/2,i.rect.left-=i.rect.width,i.rect.left+=i.rect.height/2)):j===a.TextPosition.Center&&(r=p+Math.cos(t)*u,s=q+Math.sin(t)*u,r-=I.width/2,s+=I.height/2,i.rect=new a.core.Rect(r,s,I.width,I.height)),v=this.plotArea.APa(),this.fittingLabels(i.rect,new a.core.Rect(v.left+k,v.top+k,v.width-2*k,v.height-2*k)),i.pt2=new a.core.Point(i.rect.left+i.rect.width/2,i.rect.bottom),this.config&&this.config.text&&this.config.text.style.stroke?i.pt2.x=i.rect.left+i.rect.width/2:i.rect.left+i.rect.width/2=this.wPa()&&(i.pt2.x=i.rect.left),i.rect.top+i.rect.height/2=this.xPa()&&(i.pt2.y=i.rect.top-k),i.pt2.y-=i.rect.height,j===a.TextPosition.Center&&(w=i.rect.left+i.rect.width/2,x=i.rect.top+i.rect.height/2,Math.sqrt((w-this.wPa())*(w-this.wPa())+(x-this.xPa())*(x-this.xPa()))A&&(i.pt2=D.clone(),A=(D.x-this.wPa())*(D.x-this.wPa())+(D.y-this.xPa())*(D.y-this.xPa()));return i},f.prototype.getLabelPositionCartesian=function(b,c,d){var e,f,g,h,i,j,k,l,m,n,o,p,q,r,s=2,t=c.item,u=this.AKa(),v=this.le(),w=!1,x=0,y=0;for(this.swapAxes?(y=v.GPa().getScaleValue(this._La(t.xValue)),t instanceof a.models.XCa?(t.yValue<0&&(w=!0),x=u.GPa().getScaleValue(t.yValue)):t instanceof a.models.SCa&&(x=u.GPa().getScaleValue(t.yUpperValue),t.yUpperValue<0&&(w=!0))):(x=u.GPa().getScaleValue(this._La(t.xValue)),t instanceof a.models.XCa?(y=v.GPa().getScaleValue(t.yValue),t.yValue<0&&(w=!0)):t instanceof a.models.SCa&&(y=v.GPa().getScaleValue(t.yUpperValue),t.yUpperValue<0&&(w=!0))),e=new a.core.Size(0,0),f=0,g=d;fe.width&&(e.width=i.width),e.height+=i.height;switch(j=new a.core.Rect(x,y,e.width,e.height),k=0,l=0,m=0,this.config&&this.config.text&&this.config.text.offset&&(m=this.config.text.offset),n=m,this.config&&this.config.text&&this.config.text.style.stroke&&(n=m-s),o=new a.XJa,o.pt1=new a.core.Point(x,y),o.pt2=new a.core.Point(x,y),p=a.TextPosition.Auto,this.config&&this.config.text&&this.config.text.position&&(p=a.core.asEnum(this.config.text.position,a.TextPosition)),p==a.TextPosition.Auto&&(p=a.TextPosition.Outside),q=c.getPoint(),p){case a.TextPosition.Outside:this.swapAxes?(j.top=q.y,k+=m,l+=.5*e.height,o.pt2.x+=n,o.pt1.y=o.pt2.y=q.y):(j.left=q.x,k-=.5*e.width,l-=0+m,o.pt1.x=o.pt2.x=q.x,o.pt2.y-=n);break;case a.TextPosition.Inside:this.swapAxes?(j.top=q.y,k-=e.width+m,l+=.5*e.height,o.pt2.x-=m,o.pt1.y=j.top,o.pt2.y=j.top):(j.left=q.x,k-=.5*e.width,l+=e.height+m,o.pt1.x=o.pt2.x=q.x,o.pt2.y+=n);break;case a.TextPosition.Center:j.left=q.x,j.top=q.y,k-=.5*e.width,l+=.5*e.height}return j.left+=k,j.top+=l,o.rect=j,w&&(this.swapAxes?(j.left-=e.width+2*m,o.pt2.x-=2*m):(j.top+=e.height+2*m,o.pt2.y+=2*m)),r=this.plotArea.APa(),p===a.TextPosition.Outside?this.swapAxes?j.right+s+1>r.right?(j.left=r.right-s-j.width-1,o.pt2.x=j.left-s):j.left+sr.bottom&&(j.top=r.bottom-s,o.pt2.y=j.top+s-j.height):p===a.TextPosition.Inside&&(this.swapAxes?j.left-s-1r.bottom&&(j.top=r.bottom+s-j.height,o.pt2.y=j.top-s)),o.pt1=this.getLineStartPoint(c,o.pt1),o},f}(a.cMa);a.RGa=f,b=function(){function b(a){this.qMa=0,this.VLa=a}return b.kMa=function(a){if(null!=a){var c=a.kMa;return null==c&&(a.kMa=c=new b(a)),c}return null},b.prototype.VPa=function(){return this.qMa},b.prototype.jMa=function(){var b,c,d;for(this.qMa=0,b=0,c=this.VLa.nPa();b0&&(isNaN(i)||i>h)&&(i=h),d=g;return isNaN(i)?1:i},c}(a.models.OCa),d=function(b){e(c,b);function c(){return null!==b&&b.apply(this,arguments)||this}return c.prototype.render=function(b,c){var d=c.width0&&(h=this.sMa(g),null!=h))for(i=0,j=h;i1&&(s=this.gMa(r),this.lineAspect==a.LineAspect.Spline&&(s=this.hMa(r,Math.abs(n),Math.abs(o))),k.push(s));for(c=k,t=[],u=0,v=c;u0?b.prototype.IBa.call(this,c,.5):this.xField instanceof a.data.hBa||this.xField instanceof a.data.jBa?b.prototype.IBa.call(this,c,.5):b.prototype.IBa.call(this,c)},d.prototype.fCa=function(b,c,d,e){return c instanceof a.data.COa?new a.models.YCa(this,b,c,d,e):c instanceof a.data.BOa?new a.models.YCa(this,b,c,d,e):null},d}(a.models.OCa),c=function(b){e(c,b);function c(a){var c=b.call(this)||this;return c.R=a,c}return c.prototype.render=function(c,d){var e=this.iTa||this.tE;c.drawLine(d.left,d.top+d.height/2,d.right,d.top+d.height/2,null,a.core.merge({stroke:e,strokeWidth:1},this.Wqa)),this.R&&b.prototype.render.call(this,c,d)},c}(a.models.oSa)}(d||(d={})),function(a){"use strict";var b,c,d=function(b){e(d,b);function d(){return null!==b&&b.apply(this,arguments)||this}return Object.defineProperty(d.prototype,"type",{get:function(){return a.DataGraphType.CoordinateSystem_Xy|a.DataGraphType.Chart_Scatter},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"dataModel",{get:function(){return this.dMa},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"symbols",{get:function(){return!0},enumerable:!0,configurable:!0}),d.prototype.bindData=function(b){this.dMa=this.eMa(b);var c=this.le();null!=c.scale&&c.scale.type==a.ValueScaleType.Percentage&&this.dMa.NBa()},d.prototype.eMa=function(a){return new c(this,a,this.$z())},d}(a.cMa);a.VGa=d,b=function(a){e(b,a);function b(){return null!==a&&a.apply(this,arguments)||this}return Object.defineProperty(b.prototype,"min",{get:function(){return-.5},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"max",{get:function(){return this.Ey.length-.5},enumerable:!0,configurable:!0}),b}(a.models.LCa),c=function(c){e(d,c);function d(a,b,d){return c.call(this,a,b,d)||this}return d.prototype.IBa=function(a){return null!=this.categoryFields&&this.categoryFields.length>0?new b(this.categoryFields,a):c.prototype.IBa.call(this,a)},d.prototype.fCa=function(b,c,d,e){return c instanceof a.data.COa?new a.models.YCa(this,b,c,d,e):c instanceof a.data.BOa?new a.models.YCa(this,b,c,d,e):null},d}(a.models.OCa)}(d||(d={})),function(a){"use strict";var b,c,d,f=function(c){e(f,c);function f(){return null!==c&&c.apply(this,arguments)||this}return Object.defineProperty(f.prototype,"type",{get:function(){return a.DataGraphType.CoordinateSystem_None|a.DataGraphType.Chart_Treemap},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"radial",{get:function(){return!1},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"offset",{get:function(){return this.$z().config.offset},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"innerRadius",{get:function(){return this.$z().config.innerRadius},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"sweep",{get:function(){return this.$z().config.sweep},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"startAngle",{get:function(){return this.$z().config.startAngle},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"name",{get:function(){return"TreeMap"},enumerable:!0,configurable:!0}),f.prototype.onHitted=function(b){var c,d,e,f;if(b.contains(this.sS()))for(c=0,d=this.oi;c0))for(c=0,d=a.children;c=0;--e)f=this.uMa.layoutList[e],f.refresh(),this.oi.push(f),this.RLa.add(new a.DonutArea(f.BPa().clone(),f.CPa(),f.NPa(),f.MPa(),f.DPa(),f.datapoint))},f.prototype.render=function(b){var c,d;if(b.beginTransform(),a.GHa(b,this.$z().config.style),a.GHa(b,this.$z().config.textStyle),this.plotArea)for(a.x7.sort(this.oi,function(a,b){return a!=b&&a.GIa}),c=0;cx.width&&(x.width=h.width),x.height+=h.height;return i=new a.XJa,j=this.$z().config.text.position,k=v,null!=this.$z().config.text.style.strokeWidth&&(k=this.$z().config.text.style.strokeWidth),l=this.RLa.nLa,m=0,this.config&&this.config.text&&this.config.text.offset&&(m=this.config.text.offset),n=null,this.config&&this.config.text&&this.config.text.connectingLine&&(n=this.config.text.connectingLine),o=this.uMa.wPa,p=this.uMa.xPa,q=0,r=0,s=w.angle+w.sweep/2,t=w.radius,j===a.TextPosition.Center&&(t=(w.innerRadius+w.radius)/2),t+=m,q=o+Math.cos(s)*t,r=p+Math.sin(s)*t,i.rect=new a.core.Rect(q,r,x.width,x.height),i.pt1=new a.core.Point(o+Math.cos(s)*w.radius,p+Math.sin(s)*w.radius),i.pt1=this.getLineStartPoint(c,i.pt1),j===a.TextPosition.Outside?(i.rect.top>this.uMa.xPa?(i.rect.top+=i.rect.height,i.rect.top+=i.rect.height/2):i.rect.top-=i.rect.height/2,i.rect.left>this.uMa.wPa?(i.rect.left-=i.rect.width/2,i.rect.left+=i.rect.height/2):(i.rect.left+=i.rect.width/2,i.rect.left-=i.rect.width,i.rect.left-=i.rect.height/2)):j===a.TextPosition.Inside?(i.rect.top>this.uMa.xPa?(i.rect.top+=i.rect.height,i.rect.top-=i.rect.height/2):i.rect.top+=i.rect.height/2,i.rect.left>this.uMa.wPa?(i.rect.left-=i.rect.width/2,i.rect.left-=i.rect.height/2):(i.rect.left+=i.rect.width/2,i.rect.left-=i.rect.width,i.rect.left+=i.rect.height/2)):j===a.TextPosition.Center&&(q=o+Math.cos(s)*t,r=p+Math.sin(s)*t,q-=x.width/2,r+=x.height/2,i.rect=new a.core.Rect(q,r,x.width,x.height)),u=this.plotArea.APa(),this.fittingLabels(i.rect,new a.core.Rect(u.left+k,u.top+k,u.width-2*k,u.height-2*k)),i.pt2=new a.core.Point(i.rect.left+i.rect.width/2,i.rect.bottom),this.config&&this.config.text&&this.config.text.style.stroke?i.pt2.x=i.rect.left+i.rect.width/2:i.rect.left+i.rect.width/2=this.uMa.wPa&&(i.pt2.x=i.rect.left),i.rect.top+i.rect.height/2=this.uMa.xPa&&(i.pt2.y=i.rect.top-k),i.pt2.y-=i.rect.height,i},f.prototype.fittingLabels=function(a,b){a.leftb.right&&(a.top=(a.bottom-this.uMa.xPa)*(b.right-this.uMa.wPa)/(a.right-this.uMa.wPa)+this.uMa.xPa+a.height,a.left=b.right-a.width),a.top-a.heightb.bottom&&(a.left=(a.left-this.uMa.wPa)*(b.bottom-this.uMa.xPa)/(a.bottom-this.uMa.xPa)+this.uMa.wPa,a.top=b.bottom)},f}(a.WLa);a.XGa=f,b=function(b){e(c,b);function c(){return null!==b&&b.apply(this,arguments)||this}return c.prototype.eDa=function(b,c,d,e){return new a.models.bDa(b,c,d,e)},c.prototype.dDa=function(b,c,d,e){return new a.models.aDa(b,c,d,e)},c}(a.models.gDa),c=function(){function a(a,b,c,d,e,f,g,h,i){this.vs=a,this.startAngle=d,this.endAngle=e,this.innerRadius=f,this.radius=g,this.sum=h,this.depth=i,this.cx=b,this.cy=c}return Object.defineProperty(a.prototype,"sweep",{get:function(){return this.endAngle-this.startAngle},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"h",{get:function(){return this.radius-this.innerRadius},enumerable:!0,configurable:!0}),a}(),d=function(){function b(){this.showtitle=!0,this.ora=0,this.offset=.1,this.wPa=0,this.xPa=0,this.vMa=0}return b.prototype.covert=function(a,b,d,e,f,g,h,i,j){this.$Ia=[],this.calcDeep(a.children),this.offset=i*(h-g),this.vMa=(h-g-this.offset)/(this.ora-1),this.wPa=b,this.xPa=d,this.value=a,this.NPa=g,this.CPa=h;var k=new c(a.children,this.wPa,this.xPa,e,e+f,g,g+this.vMa,a.value,0);this.calcSum(k),this.wMa=k.sweep/k.sum,this.layoutItems(k,j)},Object.defineProperty(b.prototype,"layoutList",{get:function(){return this.$Ia},enumerable:!0,configurable:!0}),b.prototype.calcDeep=function(a){this.ora=0,this.ora=this.xMa(a)+1},b.prototype.xMa=function(a){var b,c,d;if(a&&a.length>0){for(b=0,c=0;c0&&(k=new c(f.children,h,i,l,l+g,b.radius,b.radius+this.vMa,0,b.depth+1),this.calcSum(k),this.layoutItems(k,d)),l+=g},b.prototype.calcSum=function(a){var b,c=0;for(b=0;b0))for(c=0,d=a.children;c=0;--e)f=this.uMa.layoutList[e],f.bz()==a.ViewState.Visible&&(f.refresh(),this.oi.push(f))},f.prototype.render=function(b){var c,d;if(b.beginTransform(),a.GHa(b,this.$z().config.style),a.GHa(b,this.$z().config.textStyle),this.plotArea)for(a.x7.sort(this.oi,function(a,b){return a!=b&&a.GIa}),c=0;c0){for(b=0,c=0;c0)for(b=a.area/a.sum,a.vs.sort(function(a,b){return a.value-b.value}),c=1e3,e=0;e0&&(o=(this.gOa-b.depth)/this.gOa*this.rCa,l=new a.core.Rect(l.left+o,l.top+o,l.width-2*o,l.height-2*o),p=new c(m.children,l.left,l.top,l.left+l.width,l.top+l.height,m.value,b.depth+1),q=new a.AMa(m),q.istitle=!0,q.title=m.name,q.datapoint=m,q.KQa(m.isSelected),this.fOa&&m.name&&(r=d.measureString(m.name,null,null,this.cJa),r.width>l.width&&(q.title=a.x7.getTextByMaxLength(d,m.name,l.width-15,this.cJa),r=d.measureString(q.title,null,null,this.cJa)),q.sS(new a.core.Rect(l.left,l.top,l.width,1.5*r.height)),q.titlerect=new a.core.Rect(l.left+(q.sS().width-r.width)/2,l.top+(q.sS().height-r.height)/2,r.width,r.height),q.sS().height>l.height||(q.titlestyle=this.cJa,p=new c(m.children,l.left,l.top+1.5*r.height,l.left+l.width,l.top+l.height,m.value,b.depth+1),this.hOa.push(q))),this.calcSum(p),this.hideSmallNode(p),p.sum>0?(n.bz(a.ViewState.Invisible),n.hidelabel=!0,this.layoutItems(p,d)):q.bz(a.ViewState.Visible)),n.hidelabel||(n.label=m.name,s=d.measureString(n.label,null,null,this.uIa),s.width>l.width&&(n.label=a.x7.getTextByMaxLength(d,n.label,l.width-15,this.uIa),s=d.measureString(n.label,null,null,this.uIa)),n.labelstyle=this.uIa,n.labelrect=new a.core.Rect(l.left,l.bottom,s.width,s.height)),this.hOa.push(n),++h)},b.prototype.locationRects=function(b,c,d,e){var f,g,h,i,j,k,l,m,n,o,p,q,r=[],s=0,t=0,u=0;for(g=c;gk?l/k:k/l,!(Math.abs(m-1)k?l/k:k/l;for(r.length=0,n=c;n<=g;n++)p=b[n].value*d/k,o=n===c?new a.core.Rect(e.left,e.top,k,l):new a.core.Rect(r[n-c-1].left,r[n-c-1].bottom,k,p),r.push(o)}else{if(t+=h.value,l=j=t*d/e.width,k=b[c].value*d/l,0!=s){if(m=l>k?l/k:k/l,!(Math.abs(m-1)k?l/k:k/l;for(r.length=0,n=c;n<=g;n++)q=b[n].value*d/l,o=n===c?new a.core.Rect(e.left,e.top,k,l):new a.core.Rect(r[n-c-1].right,r[n-c-1].top,q,l),r.push(o)}f=k,u=l}return r},b.prototype.clipRect=function(b,c){var d=null;return d=Math.abs(b.width-c.width)<=1e-4?new a.core.Rect(b.left,b.bottom,b.width,c.bottom-b.bottom):new a.core.Rect(b.right,b.top,c.right-b.right,b.height)},b}(),f=function(){function b(){this.showtitle=!0,this.splitRate=.5}return b.prototype.covert=function(a,b,d){this.sS=b.clone(),this.value=a;var e=new c(a.children,b.left,b.top,b.left+b.width,b.top+b.height,a.value,0);this.calcSum(e),this.layoutItems(e,d)},Object.defineProperty(b.prototype,"layoutList",{get:function(){return this.$Ia},enumerable:!0,configurable:!0}),b.prototype.layoutItems=function(a,b){var c,d,e;if(this.calcSum(a),c=this.divideValues(a),c&&c.length>1)for(d=0;d0&&(b.beginTransform(),this.GHa(b),this.parent.$z().headerStyle.hAlign==a.HAlign.Left?b.drawMultipleStrings(this._text(),c,"Left","Wrap"):this.parent.$z().headerStyle.hAlign==a.HAlign.Right?b.drawMultipleStrings(this._text(),c,"Right","Wrap"):b.drawMultipleStrings(this._text(),c,"Center","Wrap"),b.restoreTransform())},c.prototype.TIa=function(b,c){var d=new a.core.Size(0,0);return null!=this._text()&&this._text().length>0&&(b.beginTransform(),this.GHa(b),d=b.measureMultipleStrings(this._text(),new a.core.Rect(0,0,c.width,c.height),"Wrap"),b.restoreTransform()),d},c.prototype.GHa=function(b){a.GHa(b,this.parent.$z().footerStyle),a.GHa(b,this.parent.$z().footerTextStyle)},c.prototype.OIa=function(c){b.prototype.OIa.call(this,c),a.GHa(c,this.parent.$z().style.borderStyle),a.GHa(c,this.parent.$z().footerStyle.borderStyle)},c.prototype.QIa=function(c){b.prototype.QIa.call(this,c),a.GHa(c,{fill:this.parent.$z().style.backgroundColor}),a.GHa(c,{fill:this.parent.$z().footerStyle.backgroundColor})},c.prototype.onHitted=function(b){return b.contains(this.APa())?new a.HitInfo(new a.core.Point(b.x,b.y),this,null,this,[a.ElementType.Footter],this.KIa):null},c}(a.DKa);a.iKa=b}(d||(d={})),function(a){"use strict";var b=function(b){e(c,b);function c(a){var c=b.call(this)||this;return c.jCa=a,c}return Object.defineProperty(c.prototype,"parent",{get:function(){return this.jCa},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"title",{get:function(){return this.parent.$z().header},enumerable:!0,configurable:!0}),c.prototype.KQa=function(a){if(void 0===a)return!1},c.prototype._text=function(){return this.title},c.prototype._R=function(c,d){var e=this.SIa(c,new a.core.Size(d.width,d.height));this.parent.$z().headerStyle.hAlign==a.HAlign.Left?b.prototype._R.call(this,c,new a.core.Rect(d.left,d.top,e.width,e.height)):this.parent.$z().headerStyle.hAlign==a.HAlign.Right?b.prototype._R.call(this,c,new a.core.Rect(d.right-e.width,d.top,e.width,e.height)):b.prototype._R.call(this,c,new a.core.Rect(d.left+(d.width-e.width)/2,d.top,e.width,e.height))},c.prototype.yl=function(c){c.startGroup(a.tSa),b.prototype.yl.call(this,c),c.endGroup()},c.prototype.RIa=function(b,c){null!=this._text()&&this._text().length>0&&(b.beginTransform(),this.GHa(b),this.parent.$z().headerStyle.hAlign==a.HAlign.Left?b.drawMultipleStrings(this._text(),c,"Left","Wrap"):this.parent.$z().headerStyle.hAlign==a.HAlign.Right?b.drawMultipleStrings(this._text(),c,"Right","Wrap"):b.drawMultipleStrings(this._text(),c,"Center","Wrap"),b.restoreTransform())},c.prototype.TIa=function(b,c){var d=new a.core.Size(0,0);return null!=this._text()&&this._text().length>0&&(b.beginTransform(),this.GHa(b),d=b.measureMultipleStrings(this._text(),new a.core.Rect(0,0,c.width,c.height),"Wrap"),b.restoreTransform()),d},c.prototype.GHa=function(b){a.GHa(b,this.parent.$z().headerStyle),a.GHa(b,this.parent.$z().headerTextStyle)},c.prototype.OIa=function(c){b.prototype.OIa.call(this,c),a.GHa(c,this.parent.$z().style.borderStyle),a.GHa(c,this.parent.$z().headerStyle.borderStyle)},c.prototype.QIa=function(c){b.prototype.QIa.call(this,c),a.GHa(c,{fill:this.parent.$z().style.backgroundColor}),a.GHa(c,{fill:this.parent.$z().headerStyle.backgroundColor})},c.prototype.onHitted=function(b){return b.contains(this.APa())?new a.HitInfo(new a.core.Point(b.x,b.y),this,null,this,[a.ElementType.Header],this.KIa):null},c}(a.DKa);a.hKa=b}(d||(d={})),function(a){"use strict";var b,c,d;!function(a){a[a.tickf7=-7]="tickf7",a[a.tickf6=-6]="tickf6",a[a.tickf5=-5]="tickf5",a[a.tickf4=-4]="tickf4",a[a.tickf3=-3]="tickf3",a[a.tickf2=-2]="tickf2",a[a.tickf1=-1]="tickf1",a[a.second=1]="second",a[a.minute=60]="minute",a[a.hour=3600]="hour",a[a.day=86400]="day",a[a.week=604800]="week",a[a.month=2678400]="month",a[a.year=31536e3]="year",a[a.maxtime=Number.MAX_VALUE]="maxtime"}(b=a.tmInc||(a.tmInc={})),c=function(){function a(a){this.ticks=a}return Object.defineProperty(a.prototype,"Ticks",{get:function(){return this.ticks},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"TotalSeconds",{get:function(){return this.ticks/1e7},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"TotalDays",{get:function(){return this.ticks/1e7/86400},enumerable:!0,configurable:!0}),a.fromSeconds=function(b){return new a(1e7*b)},a.fromDays=function(b){return new a(1e7*b*24*60*60)},a.TicksPerSecond=1e7,a}(),a.hEa=c,d=function(){function d(b){a.core.isDate(b)?this.init(b):a.core.isNumber(b)&&this.init(new Date(b))}return d.prototype.init=function(a){this.year=a.getFullYear(),this.month=a.getMonth(),this.day=a.getDate(),this.hour=a.getHours(),this.minute=a.getMinutes(),this.second=a.getSeconds()},d.prototype.getTimeAsDateTime=function(){var a,b=0,c=0,d=0;return this.hour>=24&&(this.hour-=24,this.day+=1),this.month<0?(b=-1-this.day,this.month=1):this.month>11&&(b=this.month-12,this.month=12),this.day<1?(c=-1-this.day,this.day=1):this.day>28&&2==this.month?(c=this.day-28,this.day=28):this.day>30&&(4==this.month||4==this.month||6==this.month||9==this.month||11==this.month)?(c=this.day-30,this.day=30):this.day>31&&(c=this.day-31,this.day=31),this.second>59&&(d=this.second-59,this.second=59),a=0,this.minute>59&&(a=this.minute-59,this.minute=59),new Date(this.year,this.month,this.day,this.hour,this.minute,this.second)},d.prototype.getTimeAsDouble=function(){return this.getTimeAsDateTime().valueOf()},d.tround=function(a,b,c){var d=a/b*b;return d-=d%1,c&&d!=a&&(b-=b%1,d+=b),d},d.RoundTime=function(a,c,e){var f,g,h,i,j=24*c*60*60;return j>0?(f=new d(a),jb.tickf1)f=c.fromSeconds(a);else{for(d=a,e=1,d+=7;d>0;)e*=10,d--;f=new c(e)}return f},d.manualTimeInc=function(a){var c,d,e,f,g=b.second;if(null==a||0==a.length)return g;if(c=a.indexOf("f"),c>=0){if(d=-1,c>0&&"%"==a.substr(c-1,1))d=-1;else for(e=1;e<6&&!(c+e>=a.length)&&(f=a.substr(c+e,1),"f"==f);e++)d--;g=d}else a.indexOf("s")>=0?g=b.second:a.indexOf("m")>=0?g=b.minute:a.indexOf("h")>=0||a.indexOf("H")?g=b.hour:a.indexOf("d")>=0?g=b.day:a.indexOf("M")>=0?g=b.month:a.indexOf("y")>=0&&(g=b.year);return g},d.getNiceInc=function(a,b,c){var d,e;for(d=0;d0&&(i=d.manualTimeInc(e)),f=0,g=0,i10*g;)g*=10;return h=g,f>h&&(h*=2),f>h&&(h=5*g),f>h&&(h=10*g),new c(h)}if(f=Math.ceil(a.TotalSeconds),0==f)return d.TimeSpanFromTmInc(i);if(g=1,i=b.year)e="yyyy";else if(g>=b.month)e="MMM yyyy";else if(g>=b.day)e="MMM d";else if(g>=b.hour)e="ddd H:mm";else if(g>=.5*b.hour)e="H:mm";else if(g>=1)e="H:mm:ss";else if(g>0)for(h=f.Ticks,e="s.";h=4&&this.XPa().length>=4&&(this.KIa.points.push(new a.core.Point(this.WPa()[0],this.XPa()[0])),this.KIa.points.push(new a.core.Point(this.WPa()[Math.floor(.33*(this.WPa().length-1))],this.XPa()[Math.floor(.33*(this.XPa().length-1))])),this.KIa.points.push(new a.core.Point(this.WPa()[Math.floor(.66*(this.WPa().length-1))],this.XPa()[Math.floor(.66*(this.XPa().length-1))])),this.KIa.points.push(new a.core.Point(this.WPa()[this.WPa().length-1],this.XPa()[this.XPa().length-1])))},c}(a.MIa);a.fMa=b}(d||(d={})),function(a){"use strict";var b=function(b){e(c,b);function c(a,c){var d=b.call(this)||this;return d.IMa=a,d.JMa=c,d}return c.prototype.oI=function(){return this.IMa},c.prototype.Vma=function(){return this.JMa},c.prototype.yl=function(b){b.drawLine(this.oI().x,this.oI().y,this.Vma().x,this.Vma().y,null,{stroke:a.Wya,strokeWidth:1})},c}(a.MIa);a.pMa=b}(d||(d={})),function(a){"use strict";var b=function(a){e(b,a);function b(b){var c=a.call(this)||this;return c.FLa=b,c.datapoint=b,c}return b.prototype.KQa=function(a){return void 0===a?this.PPa().isSelected:void(1==a?this.PPa().N4():this.PPa().IAa())},b.prototype.PPa=function(){return this.FLa},b}(a.MIa);a.pOa=b}(d||(d={})),function(a){"use strict";var b=10,c=function(c){e(d,c);function d(a,b,d){var e=c.call(this)||this;return e.FLa=a,e.GMa=b,e.HMa=d,e.datapoint=a,e}return d.prototype.KQa=function(a){return void 0===a?this.PPa().isSelected:void(1==a?this.PPa().N4():this.PPa().IAa())},d.prototype.PPa=function(){return this.FLa},d.prototype.WPa=function(){return this.GMa},d.prototype.XPa=function(){return this.HMa},d.prototype.yy=function(){return{opacity:null,stroke:null,strokeWidth:1,strokeDasharray:null}},d.prototype.yl=function(b){this.bz()!==a.ViewState.Gone&&this.bz()!==a.ViewState.Invisible&&(b.beginTransform(),a.GHa(b,this.yy()),null!=this.PPa().color&&(b.stroke=this.PPa().color),this.GHa(b,this.PPa().style),null!=b.stroke&&"none"!=b.stroke||a.GHa(b,{stroke:this.PPa().parent.parent.parent.OOa().getColor(0)}),this.PPa().isSelected?this.GHa(b,this.PPa().parent.parent.parent.$z().selectedStyle):this.GHa(b,this.PPa().parent.parent.parent.$z().unselectedStyle),this.IQa&&this.GHa(b,this.PPa().parent.$z().config.hoverStyle),b.drawLines(this.WPa(),this.XPa()),b.restoreTransform())},d.prototype.GHa=function(a,b){null!=b&&(null!=b.opacity&&(a.opacity=b.opacity),null!=b.fill&&(a.fill=b.fill),null!=b.stroke&&(a.stroke=b.stroke),null!=b.strokeWidth&&(a.strokeWidth=b.strokeWidth),null!=b.strokeDasharray&&(a.strokeDasharray=b.strokeDasharray))},d.prototype.onHitted=function(c){if(c.contains(this.sS())){this.KIa.rect=this.sS();for(var d=0;d=4&&this.XPa().length>=4&&(this.KIa.points.push(new a.core.Point(this.WPa()[0],this.XPa()[0])),this.KIa.points.push(new a.core.Point(this.WPa()[Math.floor(.33*(this.WPa().length-1))],this.XPa()[Math.floor(.33*(this.XPa().length-1))])),this.KIa.points.push(new a.core.Point(this.WPa()[Math.floor(.66*(this.WPa().length-1))],this.XPa()[Math.floor(.66*(this.XPa().length-1))])),this.KIa.points.push(new a.core.Point(this.WPa()[this.WPa().length-1],this.XPa()[this.XPa().length-1])))},d}(a.MIa);a.tMa=c}(d||(d={})),function(a){"use strict";var b=function(){function a(){}return a.clampAngle=function(a){var b=(a+180)%360-180;return b<-180&&(b+=360),b},a.isRectOverlap=function(a,b){return!(!a||!b)&&!(a.left>b.right||a.top>b.bottom||b.left>a.right||b.top>a.bottom)},a}(),c=function(c){e(d,c);function d(a,b,d,e,f,g){var h=c.call(this)||this;return h.FLa=a,h.KMa=b,h.LMa=d,h.YFa=e,h.$Fa=f,h.ZFa=g,h.datapoint=a,h}return d.prototype.KQa=function(a){return void 0===a?this.PPa().isSelected:void(1==a?this.PPa().N4():this.PPa().IAa())},d.prototype.BPa=function(){return this.KMa},d.prototype.CPa=function(){return this.LMa},d.prototype.NPa=function(){return this.YFa},d.prototype.MPa=function(){return this.$Fa},d.prototype.DPa=function(){return this.ZFa},d.prototype.PPa=function(){return this.FLa},d.prototype.yl=function(b){var c,d;this.bz()!==a.ViewState.Gone&&this.bz()!==a.ViewState.Invisible&&(c=this.PPa().al(),null!=c&&(b.beginTransform(),this.GHa(b,this.PPa().style),null!=b.fill&&"none"!=b.fill||(d=this.PPa(),d instanceof a.models.bDa&&a.GHa(b,{fill:d.FB().color})),null==b.fill&&a.GHa(b,{fill:c.parent.parent.parent.OOa().getColor(0)}),this.PPa().isSelected?this.GHa(b,c.parent.parent.parent.$z().selectedStyle):this.GHa(b,c.parent.parent.parent.$z().unselectedStyle),this.IQa?(this.eb=1.05,this.GHa(b,c.parent.$z().config.hoverStyle)):this.eb=1,b.drawDonutSegment(this.BPa().x,this.BPa().y,this.CPa()*((this.eb-1)/2+1),this.NPa()*(1-(this.eb-1)/2),this.MPa(),this.DPa()),b.restoreTransform()))},d.prototype.GHa=function(a,b){null!=b&&(null!=b.opacity&&(a.opacity=b.opacity),null!=b.fill&&(a.fill=b.fill),null!=b.stroke&&(a.stroke=b.stroke),null!=b.strokeWidth&&(a.strokeWidth=b.strokeWidth),null!=b.strokeDasharray&&(a.strokeDasharray=b.strokeDasharray))},d.prototype.refresh=function(){var b,d,e;for(c.prototype.refresh.call(this),this.KIa.points=[],b=this.DPa()/4,d=this.MPa();d=l&&k<=m&&(d=90*this.DPa()/Math.PI,e=b.clampAngle(180*this.MPa()/Math.PI+d),f=180*Math.atan2(j,i)/Math.PI,g=b.clampAngle(e-f),Math.abs(g)<=d)?(h=new a.core.Point,h.x=this.BPa().x+Math.cos(this.MPa()+this.DPa())*this.CPa(),h.y=this.BPa().y+Math.sin(this.MPa()+this.DPa())*this.CPa(),this.KIa.points.push(h),this.KIa.points.push(this.BPa()),new a.HitInfo(new a.core.Point(c.x,c.y),this.datapoint,null,this,[a.ElementType.Shape],this.KIa)):null},d}(a.MIa);a.yMa=c}(d||(d={})),function(a){"use strict";var b=function(b){e(c,b);function c(c){var d=b.call(this)||this;return d.FLa=c,d.datapoint=c,d.label="",d.labelrect=new a.core.Rect(0,0,0,0),d.hidelabel=!1,d.title="",d.istitle=!1,d.titlerect=new a.core.Rect(0,0,0,0),d.titlestyle=new a.options.uEa({}),d}return c.prototype.KQa=function(a){return void 0===a?this.PPa().isSelected:void(1==a?this.PPa().N4():this.PPa().IAa())},c.prototype.PPa=function(){return this.FLa},c.prototype.yl=function(b){var c,d,e;this.bz()!==a.ViewState.Gone&&this.bz()!==a.ViewState.Invisible&&(c=this.PPa().al(),null!=c&&(b.beginTransform(),this.GHa(b,this.PPa().style),null!=b.fill&&"none"!=b.fill||(d=this.PPa(),d instanceof a.models.bDa&&a.GHa(b,{fill:d.FB().color})),null==b.fill&&a.GHa(b,{fill:c.parent.parent.parent.OOa().getColor(0)}),this.PPa().isSelected?this.GHa(b,c.parent.parent.parent.$z().selectedStyle):this.GHa(b,c.parent.parent.parent.$z().unselectedStyle),this.IQa?(this.eb=1.05,this.GHa(b,c.parent.$z().config.hoverStyle)):this.eb=1,e=a.x7.scale(a.core.cloneDeep(this.sS()),this.eb),b.drawRect(e.left,e.top,e.width,e.height),!this.hidelabel&&this.label&&(b.beginTransform(),a.GHa(b,c.parent.$z().config.textStyle),a.GHa(b,c.parent.$z().config.text.style),a.GHa(b,c.parent.$z().config.text.textStyle),b.drawString(this.label,new a.core.Point(this.labelrect.left,this.labelrect.top),a.ASa),b.restoreTransform()),this.title&&(b.beginTransform(),a.GHa(b,c.parent.$z().config.textStyle),a.GHa(b,c.parent.$z().config.text.style),a.GHa(b,c.parent.$z().config.text.textStyle),b.drawString(this.title,new a.core.Point(this.titlerect.left,this.titlerect.top+this.titlerect.height),a.ASa),b.restoreTransform()),b.restoreTransform()))},c.prototype.GHa=function(a,b){null!=b&&(null!=b.opacity&&(a.opacity=b.opacity),null!=b.fill&&(a.fill=b.fill),null!=b.stroke&&(a.stroke=b.stroke),null!=b.strokeWidth&&(a.strokeWidth=b.strokeWidth),null!=b.strokeDasharray&&(a.strokeDasharray=b.strokeDasharray))},c}(a.MIa);a.AMa=b}(d||(d={})),function(a){"use strict";var b=function(){function a(){this.minorTickLines=[],this.hidden=!1}return a}();a.AxisViewModel=b}(d||(d={})),function(a){"use strict";var b=function(b){e(c,b);function c(){return null!==b&&b.apply(this,arguments)||this}return c.prototype.yl=function(b){this.bz()!==a.ViewState.Gone&&this.bz()!==a.ViewState.Invisible&&(b.beginTransform(),null!=this.PPa().parent.color&&(b.fill=this.PPa().parent.color,b.stroke=this.PPa().parent.color),null!=this.PPa().color&&(b.fill=this.PPa().color,b.stroke=this.PPa().color),this.GHa(b,this.PPa().parent.style),this.GHa(b,this.PPa().style),null!=b.fill&&"none"!=b.fill||a.GHa(b,{fill:this.PPa().parent.parent.parent.parent.OOa().getColor(0)}),this.PPa().isSelected?this.GHa(b,this.PPa().parent.parent.parent.parent.$z().selectedStyle):this.GHa(b,this.PPa().parent.parent.parent.parent.$z().unselectedStyle),this.IQa&&this.GHa(b,this.PPa().parent.parent.$z().config.hoverStyle),b.drawRect(this.sS().left,this.sS().top,this.sS().width,this.sS().height),b.restoreTransform())},c.prototype.GHa=function(a,b){null!=b&&(null!=b.opacity&&(a.opacity=b.opacity),null!=b.fill&&(a.fill=b.fill),null!=b.stroke&&(a.stroke=b.stroke),null!=b.strokeWidth&&(a.strokeWidth=b.strokeWidth),null!=b.strokeDasharray&&(a.strokeDasharray=b.strokeDasharray))},c}(a.pOa);a.nMa=b}(d||(d={})),function(a){"use strict";var b=function(b){e(c,b);function c(a,c,d){var e=b.call(this,a)||this;return e.GMa=c,e.HMa=d,e}return c.prototype.WPa=function(){return this.GMa},c.prototype.XPa=function(){return this.HMa},c.prototype.yl=function(b){this.bz()!==a.ViewState.Gone&&this.bz()!==a.ViewState.Invisible&&(b.beginTransform(),null!=this.PPa().parent.color&&(b.fill=this.PPa().parent.color),null!=this.PPa().color&&(b.fill=this.PPa().color),this.GHa(b,this.PPa().style),null!=b.fill&&"none"!=b.fill||(null!=this.PPa().parent.style.fill?a.GHa(b,{fill:this.PPa().parent.style.fill}):a.GHa(b,{fill:this.PPa().parent.parent.parent.parent.OOa().getColor(0)})),this.PPa().isSelected?this.GHa(b,this.PPa().parent.parent.parent.parent.$z().selectedStyle):this.GHa(b,this.PPa().parent.parent.parent.parent.$z().unselectedStyle),this.IQa&&this.GHa(b,this.PPa().parent.parent.$z().config.hoverStyle),b.drawPolygon(this.GMa,this.HMa),b.restoreTransform())},c.prototype.GHa=function(a,b){null!=b&&(null!=b.opacity&&(a.opacity=b.opacity),null!=b.fill&&(a.fill=b.fill),null!=b.stroke&&(a.stroke=b.stroke),null!=b.strokeWidth&&(a.strokeWidth=b.strokeWidth),null!=b.strokeDasharray&&(a.strokeDasharray=b.strokeDasharray))},c.prototype.onHitted=function(b){return a.x7.IsPointInPolygon2(new a.core.Point(b.x,b.y),this.WPa(),this.XPa())?new a.HitInfo(new a.core.Point(b.x,b.y),this.datapoint,null,this,[a.ElementType.Shape],this.KIa):null},c.prototype.refresh=function(){b.prototype.refresh.call(this),this.KIa.points=[],this.WPa().length>=4&&this.XPa().length>=4&&(this.KIa.points.push(new a.core.Point(this.WPa()[0],this.XPa()[0])),this.KIa.points.push(new a.core.Point(this.WPa()[Math.floor(.33*(this.WPa().length-1))],this.XPa()[Math.floor(.33*(this.XPa().length-1))])),this.KIa.points.push(new a.core.Point(this.WPa()[Math.floor(.66*(this.WPa().length-1))],this.XPa()[Math.floor(.66*(this.XPa().length-1))])),this.KIa.points.push(new a.core.Point(this.WPa()[this.WPa().length-1],this.XPa()[this.XPa().length-1])))},c}(a.pOa);a.oMa=b}(d||(d={})),function(a){"use strict";var b=function(){function a(){}return a.clampAngle=function(a){var b=(a+180)%360-180;return b<-180&&(b+=360),b},a.isRectOverlap=function(a,b){return!(!a||!b)&&!(a.left>b.right||a.top>b.bottom||b.left>a.right||b.top>a.bottom)},a}(),c=function(c){e(d,c);function d(a,b,d,e,f,g){var h=c.call(this,a)||this;return h.KMa=b,h.LMa=d,h.YFa=e,h.$Fa=f,h.ZFa=g,h}return d.prototype.BPa=function(){return this.KMa},d.prototype.CPa=function(){return this.LMa},d.prototype.NPa=function(){return this.YFa},d.prototype.MPa=function(){return this.$Fa},d.prototype.DPa=function(){return this.ZFa},d.prototype.yl=function(b){this.bz()!==a.ViewState.Gone&&this.bz()!==a.ViewState.Invisible&&(b.beginTransform(),null!=this.PPa().parent.color&&(b.fill=this.PPa().parent.color,b.stroke=this.PPa().parent.color),null!=this.PPa().color&&(b.fill=this.PPa().color,b.stroke=this.PPa().color),this.GHa(b,this.PPa().style),null!=b.fill&&"none"!=b.fill||(null!=this.PPa().parent.style.fill?a.GHa(b,{fill:this.PPa().parent.style.fill}):a.GHa(b,{fill:this.PPa().parent.parent.parent.parent.OOa().getColor(0)})),this.PPa().isSelected?this.GHa(b,this.PPa().parent.parent.parent.parent.$z().selectedStyle):this.GHa(b,this.PPa().parent.parent.parent.parent.$z().unselectedStyle),this.IQa&&this.GHa(b,this.PPa().parent.parent.$z().config.hoverStyle),b.drawDonutSegment(this.BPa().x,this.BPa().y,this.CPa()*((this.eb-1)/2+1),this.NPa()*(1-(this.eb-1)/2),this.MPa(),this.DPa()),b.restoreTransform())},d.prototype.GHa=function(a,b){null!=b&&(null!=b.opacity&&(a.opacity=b.opacity),null!=b.fill&&(a.fill=b.fill),null!=b.stroke&&(a.stroke=b.stroke),null!=b.strokeWidth&&(a.strokeWidth=b.strokeWidth),null!=b.strokeDasharray&&(a.strokeDasharray=b.strokeDasharray))},d.prototype.refresh=function(){var b,d,e;for(c.prototype.refresh.call(this),this.KIa.points=[],b=this.DPa(),0==b&&(b=1),d=this.MPa();d<=this.MPa()+this.DPa();d+=b)e=new a.core.Point,e.x=this.BPa().x+Math.cos(d)*this.CPa(),e.y=this.BPa().y+Math.sin(d)*this.CPa(),this.KIa.points.push(e);0===this.YFa&&(e=new a.core.Point,e.x=this.KMa.x,e.y=this.KMa.y,this.KIa.points.push(e))},d.prototype.onHitted=function(c){var d,e,f,g,h,i=c.x-this.BPa().x,j=c.y-this.BPa().y,k=i*i+j*j,l=this.NPa()*this.NPa(),m=this.CPa()*this.CPa();return k>=l&&k<=m&&(d=90*this.DPa()/Math.PI,e=b.clampAngle(180*this.MPa()/Math.PI+d),f=180*Math.atan2(j,i)/Math.PI,g=b.clampAngle(e-f),Math.abs(g)<=d)?(h=new a.core.Point,h.x=this.BPa().x+Math.cos(this.MPa()+this.DPa())*this.CPa(),h.y=this.BPa().y+Math.sin(this.MPa()+this.DPa())*this.CPa(),this.KIa.points.push(h),this.KIa.points.push(this.BPa()),new a.HitInfo(new a.core.Point(c.x,c.y),this.datapoint,null,this,[a.ElementType.Shape],this.KIa)):null},d}(a.pOa);a.mMa=c}(d||(d={})),function(a){"use strict";var b=function(b){e(c,b);function c(c,d){var e=b.call(this,c)||this;return e.label="",e.labelrect=new a.core.Rect(0,0,0,0),e.hidelabel=!0,e.symbol=d,e}return c.prototype.yl=function(b){if(this.bz()!==a.ViewState.Gone&&this.bz()!==a.ViewState.Invisible){b.beginTransform(),null!=this.PPa().parent.color&&(b.fill=this.PPa().parent.color),null!=this.PPa().color&&(b.fill=this.PPa().color),this.GHa(b,this.PPa().parent.style),this.GHa(b,this.PPa().style),null!=b.fill&&"none"!=b.fill||a.GHa(b,{fill:this.PPa().parent.parent.parent.parent.OOa().getColor(0)}),this.PPa().isSelected?this.GHa(b,this.PPa().parent.parent.parent.parent.$z().selectedStyle):this.GHa(b,this.PPa().parent.parent.parent.parent.$z().unselectedStyle),this.eb=1;var c=this.sS();this.IQa&&(this.GHa(b,this.PPa().parent.parent.$z().config.hoverStyle),c=a.x7.scale(a.core.cloneDeep(this.sS()),this.eb)),this.symbol.render(b,c,{fill:b.fill,stroke:b.stroke,strokeWidth:b.strokeWidth,strokeDasharray:b.strokeDasharray}),!this.hidelabel&&this.label&&b.drawString(this.label,new a.core.Point(this.labelrect.left,this.labelrect.top),a.ASa,this.labelstyle),b.restoreTransform()}},c.prototype.GHa=function(a,b){null!=b&&(null!=b.symbolOpacity&&(a.opacity=b.symbolOpacity),null!=b.symbolFill&&(a.fill=b.symbolFill),null!=b.symbolStroke&&(a.stroke=b.symbolStroke),null!=b.symbolStrokeWidth&&(a.strokeWidth=b.symbolStrokeWidth),null!=b.symbolStrokeDasharray&&(a.strokeDasharray=b.symbolStrokeDasharray))},c}(a.pOa);a.bMa=b}(d||(d={})),function(a){"use strict";var b=function(){function a(){this.minorTickLines=[],this.hidden=!1}return a}();a.RadialAxisViewModel=b}(d||(d={})),function(a){var b;!function(b){"use strict";b.registerAdornerRender("dot",new b.NSa),b.registerConditionalFormattingRule("DataPoint",new b.pQa),b.registerConditionalFormattingRule("Group",new b.qQa),b.registerDataContentProvider("Default",new b.FGa),b.registerDateParser("Default",new b.zRa),b.registerRenderEngine("SVG",new b.aSa),b.registerRenderEngine("Canvas",new b._Ra),b.registerStringFormatting("Default",new b.ARa),b.registerSymbol("dot",new b.eSa),b.registerSymbol("box",new b.bSa),b.registerSymbol("diamond",new b.dSa),b.registerSymbol("triangle",new b.gSa),b.registerSymbol("x",new b.hSa),b.registerSymbol("dash",new b.cSa),b.registerSymbol("plus",new b.fSa),a.uHa("Bar",new a.SGa),a.uHa("TreeMap",new a.$Ga),a.uHa("Sunburst",new a.YGa),a.uHa("Line",new a.UGa),a.uHa("Area",new a.QGa),a.uHa("Scatter",new a.WGa)}(b=a.plugins||(a.plugins={}))}(d||(d={})),b.exports=d},function(a,b,c){var d=c(1),e=this&&this.__extends||function(){var a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return function(b,c){a(b,c);function d(){this.constructor=b}b.prototype=null===c?Object.create(c):(d.prototype=c.prototype,new d)}}();!function(a){var b;!function(a){a.XMa=65536,a.YMa=327680,a.ZMa="#666"}(b=a.financial||(a.financial={}))}(d||(d={})),function(a){var b;!function(a){var b;!function(a){"use strict";var b=function(){function a(){}return a}();a.JOa=b}(b=a.data||(a.data={}))}(b=a.financial||(a.financial={}))}(d||(d={})),function(a){var b;!function(b){var c;!function(b){"use strict";var c=function(){function b(a,b,c,d){this.name="",this.sNa=a,this.tNa=b,this.uNa=c,this.vNa=d}return b.prototype.toItem=function(b){var c,d,e,f,g=NaN,h=NaN,i=NaN,j=NaN;for(c=0,d=b;cf)&&(h=f));return{high:g,low:h,open:i,close:j}},b.prototype.toValue=function(a){var b=this.toItem(a);return isNaN(b.high)||isNaN(b.low)?null:b.high-b.low},b.prototype.equals=function(a){return a instanceof b&&(this.sNa==a.sNa&&this.tNa==a.tNa&&this.uNa==a.uNa&&this.vNa==a.vNa)},b.prototype.LPa=function(){var a=NaN;return null!=this.sNa&&(isNaN(a)||athis.sNa.bw())&&(a=this.sNa.bw()),null!=this.tNa&&(isNaN(a)||a>this.tNa.bw())&&(a=this.tNa.bw()),null!=this.uNa&&(isNaN(a)||a>this.uNa.bw())&&(a=this.uNa.bw()),null!=this.vNa&&(isNaN(a)||a>this.vNa.bw())&&(a=this.vNa.bw()),a},b}();b.KOa=c}(c=b.data||(b.data={}))}(b=a.financial||(a.financial={}))}(d||(d={})),function(a){var b;!function(b){var c;!function(b){"use strict";var c=function(){function b(a){this.name="",this.wNa=a}return b.prototype.toItem=function(b){var c,d,e,f,g=NaN,h=NaN,i=NaN,j=NaN;for(c=0,d=b;cf)&&(h=f));return{high:g,low:h,open:i,close:j}},b.prototype.toValue=function(a){var b=this.toItem(a);return isNaN(b.high)||isNaN(b.low)?null:b.high-b.low},b.prototype.equals=function(a){return a instanceof b&&this.wNa==a.wNa},b.prototype.LPa=function(){return this.wNa.cw()},b.prototype.KPa=function(){return this.wNa.bw()},b}();b.LOa=c}(c=b.data||(b.data={}))}(b=a.financial||(a.financial={}))}(d||(d={})),function(a){var b;!function(b){"use strict";var c=function(c){e(d,c);function d(){return null!==c&&c.apply(this,arguments)||this}return Object.defineProperty(d.prototype,"legends",{get:function(){return[]},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"dateField",{get:function(){return this.xField},enumerable:!0,configurable:!0}),d.prototype.xBa=function(){this.cNa=this.dNa(this.$z().encodings.category),c.prototype.xBa.call(this)},d.prototype.dNa=function(b){if(null==b||null==b.field)return null;var c=this.fields[b.field];return c&&c.Nc==a.core.DataType.Date?c:null},d.prototype.dTa=function(a){return null},d.prototype._Ba=function(a){return null},d.prototype.aCa=function(a){return null},d.prototype.bCa=function(a){return null},d.prototype.cCa=function(a){return null},d.prototype.dCa=function(a){return null},d.prototype.IBa=function(a,c){return void 0===c&&(c=0),new b.bNa(this.dataSeriesList)},d.prototype.KBa=function(b){return null==b||b.length<=0?new a.models.SOa(0):b[0].ySite},d.prototype.fCa=function(a,c,d,e){if(null!=c&&null!=this.dateField){if(c instanceof b.data.KOa)return new b.GRa(this,a,c,d,"Day");if(c instanceof b.data.LOa)return new b.GRa(this,a,c,d,"Day")}return null},d.prototype.xOa=function(c,d){var e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,A;if(void 0===d&&(d=null),e=[],null==c)return e;for(f=c,Array.isArray(c)||(f=[c]),g=[],h=0,i=f;h0)for(l=0,m=k;l0)for(e=0,f=d;e0)for(a=0,b=e;aj)&&(this.FCa=j),(isNaN(this.GCa)||this.GCaj-f)&&(b=j-f),f=j;isNaN(b)||(this.FCa-=.5*b,this.GCa+=.5*b)}return Object.defineProperty(b.prototype,"name",{get:function(){return"date"},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"min",{get:function(){return this.FCa},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"max",{get:function(){return this.GCa},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"dataType",{get:function(){return a.core.DataType.Date},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"isOrdinal",{get:function(){return this.pBa},set:function(a){this.pBa!=a&&(this.pBa=a)},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"valueCount",{get:function(){return this.aNa.length},enumerable:!0,configurable:!0}),b.prototype.labelFromValue=function(b,c){var d=new Date(b);return null==c?this.lPa().format(this.lPa().defaultFormat(a.core.DataType.Date,!1),d):this.lPa().format(c,d)},b.prototype.lPa=function(){if(null==this.$za){var b=a.plugins._za("Default");b&&(this.$za=b.create())}return this.$za},b}();b.bNa=c}(b=a.financial||(a.financial={}))}(d||(d={})),function(a){var b;!function(a){"use strict";var b=function(a){e(b,a);function b(){return null!==a&&a.apply(this,arguments)||this}return b.prototype.hNa=function(a){return a.length<=0?{highField:null,lowField:null,openField:null,closeField:null,transactionField:null}:a.length<=3?{highField:null,lowField:null,openField:null,closeField:null,transactionField:a[0]}:{highField:a[0],lowField:a[1],openField:a[2],closeField:a[3],transactionField:null}},b.prototype.jNa=function(a){return null!=a},b}(a.HRa);a.JRa=b}(b=a.financial||(a.financial={}))}(d||(d={})),function(a){var b;!function(a){"use strict";var b=function(a){e(b,a);function b(){return null!==a&&a.apply(this,arguments)||this}return b.prototype.hNa=function(a){return a.length<=0?{highField:null,lowField:null,openField:null,closeField:null,transactionField:null}:1==a.length?{highField:null,lowField:null,openField:null,closeField:null,transactionField:a[0]}:2==a.length?{highField:a[0],lowField:a[1],openField:null,closeField:null,transactionField:null}:3==a.length?{highField:a[0],lowField:a[1], openField:a[2],closeField:null,transactionField:null}:{highField:a[0],lowField:a[1],openField:a[2],closeField:a[3],transactionField:null}},b.prototype.jNa=function(a){return null!=a},b}(a.HRa);a.KRa=b}(b=a.financial||(a.financial={}))}(d||(d={})),function(a){var b;!function(b){"use strict";var c=function(){function c(){}return c.prototype.create=function(c,d){return null!=d&&null!=c&&c instanceof a.kKa?new b.zNa(c,d):null},c}();b.ANa=c}(b=a.financial||(a.financial={}))}(d||(d={})),function(a){var b;!function(b){"use strict";var c=function(){function c(){}return c.prototype.create=function(c,d){return null!=d&&null!=c&&c instanceof a.kKa?new b.GNa(c,d):null},c}();b.HNa=c}(b=a.financial||(a.financial={}))}(d||(d={})),function(a){var b;!function(b){"use strict";var c=function(b){e(c,b);function c(){return null!==b&&b.apply(this,arguments)||this}return Object.defineProperty(c.prototype,"radial",{get:function(){return!1},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"dataModel",{get:function(){return this.dMa},enumerable:!0,configurable:!0}),c.prototype.bindData=function(a){this.dMa=this.eMa(a)},c.prototype.TPa=function(){var a=this.QPa().bar.width;return null==a?.7:(a>1&&(a=1),a<0&&(a=0),a)},c.prototype.Query=function(b){var c,d,e,f,g,h,i=[],j=new a.ZRa(b,function(b,c){var d,e;try{return d=new a.core.Binding(c),e=d.getValue(b.item),null==e&&(e=d.getValue(b)),e}catch(a){}return null},function(a,b){var c,d=a.item;for(c in d)if(b==c)return!0;return!1},function(a){i.push(a)});for(c=0,d=this.dataModel.dataSeriesList;cd.close?h:i,j.topLineStart=new a.core.Point(e,f),j.topLineEnd=new a.core.Point(e,l),j.bottomLineStart=new a.core.Point(e,g),j.bottomLineEnd=new a.core.Point(e,l+Math.abs(i-h)),j.sS(new a.core.Rect(k,l,Math.abs(s-r),Math.abs(i-h))),m=new a.core.Rect(k,l,Math.abs(s-r),Math.abs(f-g)),j.refresh(),this.RLa.add(new a.CKa(m,d)),this.oi.push(j)},d}(b.xNa);b.zNa=c}(b=a.financial||(a.financial={}))}(d||(d={})),function(a){var b;!function(b){var c=function(b){e(c,b);function c(a){var c=b.call(this)||this;return c.FLa=a,c.datapoint=a,c.EQa=[],c}return c.prototype.KQa=function(a){return void 0===a?this.PPa().isSelected:void(1==a?this.PPa().N4():this.PPa().IAa())},c.prototype.PPa=function(){return this.FLa},c.prototype.yy=function(){return{opacity:null,fill:"#666",stroke:"#666",strokeWidth:1,strokeDasharray:null,symbolOpacity:null,symbolFill:null,symbolStroke:null,symbolStrokeWidth:null,symbolStrokeDasharray:null}},c.prototype.yl=function(b){this.bz()!==a.ViewState.Gone&&this.bz()!==a.ViewState.Invisible&&(b.beginTransform(),this.GHa(b,this.yy()),this.GHa(b,this.PPa().style),this.PPa().isSelected?a.GHa(b,this.PPa().parent.parent.parent.parent.$z().selectedStyle):a.GHa(b,this.PPa().parent.parent.parent.parent.$z().unselectedStyle),this.IQa&&a.GHa(b,this.PPa().parent.parent.$z().config.hoverStyle),null!=this.BNa&&null!=this.CNa&&(this.BNa.equals(this.CNa)||b.drawLine(this.BNa.x,this.BNa.y,this.CNa.x,this.CNa.y)),null!=this.DNa&&null!=this.ENa&&(this.DNa.equals(this.ENa)||b.drawLine(this.DNa.x,this.DNa.y,this.ENa.x,this.ENa.y)),b.drawRect(this.sS().left,this.sS().top,this.sS().width,this.sS().height),b.restoreTransform())},c.prototype.GHa=function(a,b){null!=b&&(null!=b.fill&&(a.fill=b.fill),null!=b.stroke&&(a.stroke=b.stroke),null!=b.strokeWidth&&(a.strokeWidth=b.strokeWidth),null!=b.strokeWidth&&(a.strokeDasharray=b.strokeDasharray))},Object.defineProperty(c.prototype,"topLineStart",{set:function(a){this.BNa=a.clone()},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"topLineEnd",{set:function(a){this.CNa=a.clone()},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"bottomLineStart",{set:function(a){this.DNa=a.clone()},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"bottomLineEnd",{set:function(a){this.ENa=a.clone()},enumerable:!0,configurable:!0}),c.prototype.onHitted=function(b){var c,d,e,f;for(c=0;cthis.datapoint.item.close,f=void 0,c){case 0:f="high";break;case 1:f=e?"open":"close";break;case 2:f=e?"close":"open";break;case 3:f="low"}return new a.HitInfo(new a.core.Point(b.x,b.y),this.datapoint,null,this,[a.ElementType.Shape],this.KIa,f)}return null},c.prototype.refresh=function(){var a,b,c,d,e,f,g;this.EQa=[this.sS().clone(),this.sS().clone(),this.sS().clone(),this.sS().clone()],this.FQa=[],a=this.sS().top,b=this.sS().bottom,c=a,d=this.sS().top+this.sS().height/2,e=this.sS().bottom,null!=this.BNa&&null!=this.CNa&&(this.FQa.push(this.BNa.clone()),this.FQa.push(this.CNa.clone()),a=this.BNa.y-10,c=this.CNa.y-(this.CNa.y-this.BNa.y)/2),null!=this.DNa&&null!=this.ENa&&(this.FQa.push(this.ENa.clone()),this.FQa.push(this.DNa.clone()),e=this.sS().bottom+Math.abs(this.ENa.y-this.DNa.y)/2,b=this.sS().bottom+Math.abs(this.ENa.y-this.DNa.y)+10),this.EQa[0].top=a,this.EQa[0].height=c-a,this.EQa[1].top=c,this.EQa[1].height=d-c,this.EQa[2].top=d,this.EQa[2].height=e-d,this.EQa[3].top=e,this.EQa[3].height=b-e,this.KIa.points=[],this.PPa().isSelected&&(f=this.PPa().field,null!=f?(f=f.replace("[","").replace("]",""),g=f.split("."),g.indexOf("high")>-1&&(this.KIa.points=this.KIa.points.concat([this.FQa[0]])),g.indexOf("open")>-1&&(this.PPa().open>this.PPa().close?this.KIa.points=this.KIa.points.concat([this.FQa[1]]):this.KIa.points=this.KIa.points.concat([this.FQa[2]])),g.indexOf("close")>-1&&(this.PPa().open>this.PPa().close?this.KIa.points=this.KIa.points.concat([this.FQa[2]]):this.KIa.points=this.KIa.points.concat([this.FQa[1]])),g.indexOf("low")>-1&&(this.KIa.points=this.KIa.points.concat([this.FQa[3]]))):(this.KIa.rect=this.sS().clone(),this.KIa.points=this.KIa.points.concat(this.FQa)))},c}(a.MIa);b.yNa=c}(b=a.financial||(a.financial={}))}(d||(d={})),function(a){var b;!function(b){"use strict";var c=function(c){e(d,c);function d(){return null!==c&&c.apply(this,arguments)||this}return Object.defineProperty(d.prototype,"type",{get:function(){return a.DataGraphType.CoordinateSystem_Xy|b.YMa},enumerable:!0,configurable:!0}),d.prototype.eMa=function(a){return new b.KRa(this,a,this.$z())},d.prototype.layoutSeries=function(a,b){var c,d,e,f,g,h;for(c=0,d=this.dataModel.dataSeriesList;cs?h:i,isNaN(e-Math.abs(w-v)/2)||isNaN(h)||isNaN(h)||(j.openLineStart=new a.core.Point(e-Math.abs(w-v)/2,h),j.openLineEnd=new a.core.Point(e,h)),isNaN(e)||isNaN(i)||isNaN(w)||isNaN(v)||(j.closeLineStart=new a.core.Point(e,i),j.closeLineEnd=new a.core.Point(e+Math.abs(w-v)/2,i)),j.refresh(),m=j.sS().clone(),this.oi.push(j),this.RLa.add(new a.CKa(m,p))},d}(b.xNa);b.GNa=c}(b=a.financial||(a.financial={}))}(d||(d={})),function(a){var b;!function(b){var c=10,d=function(b){e(d,b);function d(a){var c=b.call(this)||this;return c.FLa=a,c.datapoint=a,c}return d.prototype.KQa=function(a){return void 0===a?this.PPa().isSelected:void(1==a?this.PPa().N4():this.PPa().IAa())},d.prototype.PPa=function(){return this.FLa},d.prototype.yy=function(){return{opacity:null,fill:null,stroke:"green",strokeWidth:1,strokeDasharray:null,symbolOpacity:null,symbolFill:null,symbolStroke:null,symbolStrokeWidth:null,symbolStrokeDasharray:null}},d.prototype.yl=function(b){this.bz()!==a.ViewState.Gone&&this.bz()!==a.ViewState.Invisible&&(b.beginTransform(),this.GHa(b,this.yy()),this.GHa(b,this.PPa().style),this.PPa().isSelected?a.GHa(b,this.PPa().parent.parent.parent.parent.$z().selectedStyle):a.GHa(b,this.PPa().parent.parent.parent.parent.$z().unselectedStyle),this.IQa&&a.GHa(b,this.PPa().parent.parent.$z().config.hoverStyle),null!=this.INa&&null!=this.JNa&&b.drawLine(this.INa.x,this.INa.y,this.JNa.x,this.JNa.y),null!=this.KNa&&null!=this.LNa&&(this.KNa.equals(this.LNa)||b.drawLine(this.KNa.x,this.KNa.y,this.LNa.x,this.LNa.y)),null!=this.MNa&&null!=this.NNa&&(this.MNa.equals(this.NNa)||b.drawLine(this.MNa.x,this.MNa.y,this.NNa.x,this.NNa.y)),b.restoreTransform())},d.prototype.GHa=function(a,b){null!=b&&(null!=b.fill&&(a.fill=b.fill),null!=b.stroke&&(a.stroke=b.stroke),null!=b.strokeWidth&&(a.strokeWidth=b.strokeWidth),null!=b.strokeWidth&&(a.strokeDasharray=b.strokeDasharray))},Object.defineProperty(d.prototype,"hlLineStart",{set:function(a){this.INa=a.clone()},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"hlLineEnd",{set:function(a){this.JNa=a.clone()},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"openLineStart",{set:function(a){this.KNa=a.clone()},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"openLineEnd",{set:function(a){this.LNa=a.clone()},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"closeLineStart",{set:function(a){this.MNa=a.clone()},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"closeLineEnd",{set:function(a){this.NNa=a.clone()},enumerable:!0,configurable:!0}),d.prototype.onHitted=function(b){var c,d,e;for(c=0;c-1&&(this.KIa.points=this.KIa.points.concat([this.FQa[0]])),i.indexOf("open")>-1&&(this.KIa.points=this.KIa.points.concat([this.FQa[1]])),i.indexOf("close")>-1&&(this.KIa.points=this.KIa.points.concat([this.FQa[2]])),i.indexOf("low")>-1&&(this.KIa.points=this.KIa.points.concat([this.FQa[3]]))):this.KIa.rect=this.sS().clone())},d}(a.MIa);b.FNa=d}(b=a.financial||(a.financial={}))}(d||(d={})),function(a){a.uHa("Candlestick",new a.financial.ANa),a.uHa("HighLowOpenClose",new a.financial.HNa)}(d||(d={})),a.exports=d},function(a,b){!function(){"use strict";a.exports={}}()},function(a,b,c){!function(){"use strict";var b=c(3);b.ST_TextStrikeType={noStrike:0,sngStrike:1,dblStrike:2},b.ST_LineCap={rnd:0,sq:1,flat:2},b.ST_BlipCompression={email:0,screen:1,print:2,hqprint:3,none:4},b.ST_PathShadeType={shape:0,circle:1,rect:2},b.ST_PresetMaterialType={legacyMatte:0,legacyPlastic:1,legacyMetal:2,legacyWireframe:3,matte:4,plastic:5,metal:6,warmMatte:7,translucentPowder:8,powder:9,dkEdge:10,softEdge:11,clear:12,flat:13,softmetal:14},b.ST_Orientation={maxMin:0,minMax:1},b.ST_CrossBetween={between:0,midCat:1},b.AnchorType={TwoCellAnchor:0,OneCellAnchor:1,AbsoluteAnchor:2,RelSizeAnchor:3,AbsSizeAnchor:4},b.ColorFillType={SolidColorFillProperties:0,PatternFillProperties:1,GradientFillProperties:2,BlipFillProperties:3,GroupFillProperties:4,NoFillProperties:5},b.CT_ChartType={CT_StockChart:0,CT_ScatterChart:1,CT_RadarChart:2,CT_BubbleChart:3,CT_AreaChart:4,CT_Area3DChart:5,CT_BarChart:6,CT_Bar3DChart:7,CT_LineChart:8,CT_Line3DChart:9,CT_PieChart:10,CT_Pie3DChart:11,CT_DoughnutChart:12,CT_OfPieChart:13,CT_SurfaceChart:14,CT_Surface3DChart:15},b.CT_AxisType={CT_CatAx:0,CT_DateAx:1,CT_SerAx:2,CT_ValAx:3},b.CT_HiddenExtensionType={CT_HiddenScene3dExtension:0,CT_HiddenFillPropertiesExtension:1,CT_HiddenLinePropertiesBaseExtension:2,CT_HiddenShape3dExtension:3,CT_OfficeArtExtension:4},b.CT_ShapeType={CT_AlternateContent:0,CT_Picture:1,CT_GraphicalObjectFrame:2,CT_GroupShape:3,CT_Connector:4,CT_Shape:5},b.ST_FontCollectionIndex={major:0,minor:1,none:2},b.ST_PresetColorVal={aliceBlue:0,antiqueWhite:1,aqua:2,aquamarine:3,azure:4,beige:5,bisque:6,black:7,blanchedAlmond:8,blue:9,blueViolet:10,brown:11,burlyWood:12,cadetBlue:13,chartreuse:14,chocolate:15,coral:16,cornflowerBlue:17,cornsilk:18,crimson:19,cyan:20,dkBlue:21,dkCyan:22,dkGoldenrod:23,dkGray:24,dkGreen:25,dkKhaki:26,dkMagenta:27,dkOliveGreen:28,dkOrange:29,dkOrchid:30,dkRed:31,dkSalmon:32,dkSeaGreen:33,dkSlateBlue:34,dkSlateGray:35,dkTurquoise:36,dkViolet:37,deepPink:38,deepSkyBlue:39,dimGray:40,dodgerBlue:41,firebrick:42,floralWhite:43,forestGreen:44,fuchsia:45,gainsboro:46,ghostWhite:47,gold:48,goldenrod:49,gray:50,green:51,greenYellow:52,honeydew:53,hotPink:54,indianRed:55,indigo:56,ivory:57,khaki:58,lavender:59,lavenderBlush:60,lawnGreen:61,lemonChiffon:62,ltBlue:63,ltCoral:64,ltCyan:65,ltGoldenrodYellow:66,ltGray:67,ltGreen:68,ltPink:69,ltSalmon:70,ltSeaGreen:71,ltSkyBlue:72,ltSlateGray:73,ltSteelBlue:74,ltYellow:75,lime:76,limeGreen:77,linen:78,magenta:79,maroon:80,medAquamarine:81,medBlue:82,medOrchid:83,medPurple:84,medSeaGreen:85,medSlateBlue:86,medSpringGreen:87,medTurquoise:88,medVioletRed:89,midnightBlue:90,mintCream:91,mistyRose:92,moccasin:93,navajoWhite:94,navy:95,oldLace:96,olive:97,oliveDrab:98,orange:99,orangeRed:100,orchid:101,paleGoldenrod:102,paleGreen:103,paleTurquoise:104,paleVioletRed:105,papayaWhip:106,peachPuff:107,peru:108,pink:109,plum:110,powderBlue:111,purple:112,red:113,rosyBrown:114,royalBlue:115,saddleBrown:116,salmon:117,sandyBrown:118,seaGreen:119,seaShell:120,sienna:121,silver:122,skyBlue:123,slateBlue:124,slateGray:125,snow:126,springGreen:127,steelBlue:128,tan:129,teal:130,thistle:131,tomato:132,turquoise:133,violet:134,wheat:135,white:136,whiteSmoke:137,yellow:138,yellowGreen:139},b.ST_Grouping={percentStacked:0,standard:1,stacked:2},b.ST_ScatterStyle={none:0,line:1,lineMarker:2,marker:3,smooth:4,smoothMarker:5},b.ST_RadarStyle={standard:0,marker:1,filled:2},b.ST_BarGrouping={percentStacked:0,clustered:1,standard:2,stacked:3},b.ST_BarDir={bar:0,col:1},b.ST_OfPieType={pie:0,bar:1},b.ST_AxPos={b:0,l:1,r:2,t:3},b.ShadowEffectType={OuterShadowEffect:0,InnerShadowEffect:1,PresetShadowEffect:2},b.SeriesType={BarSer:0,AreaSer:1,LineSer:2,PieSer:3,RadarSer:4,ScatterSer:5,BubbleSer:6,SurfaceSer:7},b.ExtDataType={InvertSolidFillFmt:0,SeriesDataLabelsRange:1},b.TextParagraphElementType={RegularTextRun:0,TextLineBreak:1,TextField:2},b.StyleDataFlag={None:0,Font:1,Fill:2,Border:4,Alignment:8,Protection:16,FormatCode:32,All:63},b.ColorSchemeIndex={None:-4142,LT1:0,DK1:1,LT2:2,DK2:3,Accent1:4,Accent2:5,Accent3:6,Accent4:7,Accent5:8,Accent6:9,Hlink:10,FolHlink:11},b.ThemeFont={None:0,Major:1,Minor:2},b.DisplayBlanksAs={Interpolated:0,NotPlotted:1,Zero:2},b.ReferenceKind={Empty:0,Row:1,Column:2,RowIsRelative:4,ColumnIsRelative:8,LastRowIsRelative:16,LastColumnIsRelative:32,Range:64,Error:128},b.DrawingType={Shape:0,Chart:1,Picture:2,Connector:3,GroupShape:4},b.TextureAlignment={TextureTopLeft:0,TextureTop:1,TextureTopRight:2,TextureLeft:3,TextureCenter:4,TextureRight:5,TextureBottomLeft:6,TextureBottom:7,TextureBottomRight:8},b.TextureType={TextureTypeNone:0,TexturePreset:1,TextureUserDefined:2},b.FillType={FillSolid:0,FillPatterned:1,FillGradient:2,FillTextured:3,FillBackground:4,FillPicture:5,FillGroup:6},b.PresetGradientType={GradientEarlySunset:0,GradientLateSunset:1,GradientNightfall:2,GradientDaybreak:3,GradientHorizon:4,GradientDesert:5,GradientOcean:6,GradientCalmWater:7,GradientFire:8,GradientFog:9,GradientMoss:10,GradientPeacock:11,GradientWheat:12,GradientParchment:13,GradientMahogany:14,GradientRainbow:15,GradientRainbowII:16,GradientGold:17,GradientGoldII:18,GradientBrass:19,GradientChrome:20,GradientChromeII:21,GradientSilver:22,GradientSapphire:23},b.PresetTexture={TexturePapyrus:0,TextureCanvas:1,TextureDenim:2,TextureWovenMat:3,TextureWaterDroplets:4,TexturePaperBag:5,TextureFishFossil:6,TextureSand:7,TextureGreenMarble:8,TextureWhiteMarble:9,TextureBrownMarble:10,TextureGranite:11,TextureNewsprint:12,TextureRecycledPaper:13,TextureParchment:14,TextureStationery:15,TextureBlueTissuePaper:16,TexturePinkTissuePaper:17,TexturePurpleMesh:18,TextureBouquet:19,TextureCork:20,TextureWalnut:21,TextureOak:22,TextureMediumWood:23},b.GradientColorType={GradientColorNone:0,GradientOneColor:1,GradientTwoColors:2,GradientPresetColors:3,GradientMultiColor:4},b.PatternType={PatternNone:0,Pattern5Percent:1,Pattern10Percent:2,Pattern20Percent:3,Pattern25Percent:4,Pattern30Percent:5,Pattern40Percent:6,Pattern50Percent:7,Pattern60Percent:8,Pattern70Percent:9,Pattern75Percent:10,Pattern80Percent:11,Pattern90Percent:12,PatternDarkHorizontal:13,PatternDarkVertical:14,PatternDarkDownwardDiagonal:15,PatternDarkUpwardDiagonal:16,PatternSmallCheckerBoard:17,PatternTrellis:18,PatternLightHorizontal:19,PatternLightVertical:20,PatternLightDownwardDiagonal:21,PatternLightUpwardDiagonal:22,PatternSmallGrid:23,PatternDottedDiamond:24,PatternWideDownwardDiagonal:25,PatternWideUpwardDiagonal:26,PatternDashedUpwardDiagonal:27,PatternDashedDownwardDiagonal:28,PatternNarrowVertical:29,PatternNarrowHorizontal:30,PatternDashedVertical:31,PatternDashedHorizontal:32,PatternLargeConfetti:33,PatternLargeGrid:34,PatternHorizontalBrick:35,PatternLargeCheckerBoard:36,PatternSmallConfetti:37,PatternZigZag:38,PatternSolidDiamond:39,PatternDiagonalBrick:40,PatternOutlinedDiamond:41,PatternPlaid:42,PatternSphere:43,PatternWeave:44,PatternDottedGrid:45,PatternDivot:46,PatternShingle:47,PatternWave:48,PatternHorizontal:49,PatternVertical:50,PatternCross:51,PatternDownwardDiagonal:52,PatternUpwardDiagonal:53,PatternDiagonalCross:54},b.GradientStyle={GradientHorizontal:0,GradientVertical:1,GradientDiagonalUp:2,GradientDiagonalDown:3,GradientFromCorner:4,GradientFromTitle:5,GradientFromCenter:6},b.AutoShapeType={ShapeNone:0,ShapeRectangle:1,ShapeParallelogram:2,ShapeTrapezoid:3,ShapeDiamond:4,ShapeRoundedRectangle:5,ShapeOctagon:6,ShapeIsoscelesTriangle:7,ShapeRightTriangle:8,ShapeOval:9,ShapeHexagon:10,ShapeCross:11,ShapeRegularPentagon:12,ShapeCan:13,ShapeCube:14,ShapeBevel:15,ShapeFoldedCorner:16,ShapeSmileyFace:17,ShapeDonut:18,ShapeNoSymbol:19,ShapeBlockArc:20,ShapeHeart:21,ShapeLightningBolt:22,ShapeSun:23,ShapeMoon:24,ShapeArc:25,ShapeDoubleBracket:26,ShapeDoubleBrace:27,ShapePlaque:28,ShapeLeftBracket:29,ShapeRightBracket:30,ShapeLeftBrace:31,ShapeRightBrace:32,ShapeRightArrow:33,ShapeLeftArrow:34,ShapeUpArrow:35,ShapeDownArrow:36,ShapeLeftRightArrow:37,ShapeUpDownArrow:38,ShapeQuadArrow:39,ShapeLeftRightUpArrow:40,ShapeBentArrow:41,ShapeUTurnArrow:42,ShapeLeftUpArrow:43,ShapeBentUpArrow:44,ShapeCurvedRightArrow:45,ShapeCurvedLeftArrow:46,ShapeCurvedUpArrow:47,ShapeCurvedDownArrow:48,ShapeStripedRightArrow:49,ShapeNotchedRightArrow:50,ShapePentagon:51,ShapeChevron:52,ShapeRightArrowCallout:53,ShapeLeftArrowCallout:54,ShapeUpArrowCallout:55,ShapeDownArrowCallout:56,ShapeLeftRightArrowCallout:57,ShapeUpDownArrowCallout:58,ShapeQuadArrowCallout:59,ShapeCircularArrow:60,ShapeFlowchartProcess:61,ShapeFlowchartAlternateProcess:62,ShapeFlowchartDecision:63,ShapeFlowchartData:64,ShapeFlowchartPredefinedProcess:65,ShapeFlowchartInternalStorage:66,ShapeFlowchartDocument:67,ShapeFlowchartMultidocument:68,ShapeFlowchartTerminator:69,ShapeFlowchartPreparation:70,ShapeFlowchartManualInput:71,ShapeFlowchartManualOperation:72,ShapeFlowchartConnector:73,ShapeFlowchartOffpageConnector:74,ShapeFlowchartCard:75,ShapeFlowchartPunchedTape:76,ShapeFlowchartSummingJunction:77,ShapeFlowchartOr:78,ShapeFlowchartCollate:79,ShapeFlowchartSort:80,ShapeFlowchartExtract:81,ShapeFlowchartMerge:82,ShapeFlowchartStoredData:83,ShapeFlowchartDelay:84,ShapeFlowchartSequentialAccessStorage:85,ShapeFlowchartMagneticDisk:86,ShapeFlowchartDirectAccessStorage:87,ShapeFlowchartDisplay:88,ShapeExplosion1:89,ShapeExplosion2:90,Shape4pointStar:91,Shape5pointStar:92,Shape8pointStar:93,Shape16pointStar:94,Shape24pointStar:95,Shape32pointStar:96,ShapeUpRibbon:97,ShapeDownRibbon:98,ShapeCurvedUpRibbon:99,ShapeCurvedDownRibbon:100,ShapeVerticalScroll:101,ShapeHorizontalScroll:102,ShapeWave:103,ShapeDoubleWave:104,ShapeRectangularCallout:105,ShapeRoundedRectangularCallout:106,ShapeOvalCallout:107,ShapeCloudCallout:108,ShapeLineCallout1:109,ShapeLineCallout2:110,ShapeLineCallout3:111,ShapeLineCallout4:112,ShapeLineCallout1AccentBar:113,ShapeLineCallout2AccentBar:114,ShapeLineCallout3AccentBar:115,ShapeLineCallout4AccentBar:116,ShapeLineCallout1NoBorder:117,ShapeLineCallout2NoBorder:118,ShapeLineCallout3NoBorder:119,ShapeLineCallout4NoBorder:120,ShapeLineCallout1BorderandAccentBar:121,ShapeLineCallout2BorderandAccentBar:122,ShapeLineCallout3BorderandAccentBar:123,ShapeLineCallout4BorderandAccentBar:124,ShapeActionButtonCustom:125,ShapeActionButtonHome:126,ShapeActionButtonHelp:127,ShapeActionButtonInformation:128,ShapeActionButtonBackorPrevious:129,ShapeActionButtonForwardorNext:130,ShapeActionButtonBeginning:131,ShapeActionButtonEnd:132,ShapeActionButtonReturn:133,ShapeActionButtonDocument:134,ShapeActionButtonSound:135,ShapeActionButtonMovie:136,ShapeBalloon:137,ShapeFlowchartOfflineStorage:138,ShapeLeftRightRibbon:139,ShapeDiagonalStripe:140,ShapePie:141,ShapeNonIsoscelesTrapezoid:142,ShapeDecagon:143,ShapeHeptagon:144,ShapeDodecagon:145,Shape6pointStar:146,Shape7pointStar:147,Shape10pointStar:148,Shape12pointStar:149,ShapeRound1Rectangle:150,ShapeRound2SameRectangle:151,ShapeRound2DiagRectangle:152,ShapeSnipRoundRectangle:153,ShapeSnip1Rectangle:154,ShapeSnip2SameRectangle:155,ShapeSnip2DiagRectangle:156,ShapeFrame:157,ShapeHalfFrame:158,ShapeTear:159,ShapeChord:160,ShapeCorner:161,ShapeMathPlus:162,ShapeMathMinus:163,ShapeMathMultiply:164,ShapeMathDivide:165,ShapeMathEqual:166,ShapeMathNotEqual:167,ShapeCornerTabs:168,ShapeSquareTabs:169,ShapePlaqueTabs:170,ShapeGear6:171,ShapeGear9:172,ShapeFunnel:173,ShapePieWedge:174,ShapeLeftCircularArrow:175,ShapeLeftRightCircularArrow:176,ShapeSwooshArrow:177,ShapeCloud:178,ShapeChartX:179,ShapeChartStar:180,ShapeChartPlus:181,ShapeLineInverse:182},b.ArrowheadLength={ArrowheadShort:0,ArrowheadLengthMedium:1,ArrowheadLong:2},b.ArrowheadStyle={ArrowheadNone:0,ArrowheadTriangle:1,ArrowheadStealth:2,ArrowheadDiamond:3,ArrowheadOval:4,ArrowheadOpen:5},b.ArrowheadWidth={ArrowheadNarrow:0,ArrowheadWidthMedium:1,ArrowheadWide:2},b.LineDashStyle={LineSolid:0,LineSquareDot:1,LineDash:2,LineLongDash:3,LineDashDot:4,LineLongDashDot:5,LineLongDashDotDot:6,LineSysDash:7,LineSysDot:8,LineSysDashDot:9,LineDashDotDot:10,LineRoundDot:11},b.LineStyle={LineSingle:0,LineThinThin:1,LineThinThick:2,LineThickThin:3,LineThickBetweenThin:4},b.PictureColorType={PictureAutomatic:0,PictureGrayscale:1,PictureBlackAndWhite:2,PictureWatermark:3},b.ShadowType={Shadow1:0,Shadow2:1,Shadow3:2,Shadow4:3,Shadow5:4,Shadow6:5,Shadow7:6,Shadow8:7,Shadow9:8,Shadow10:9,Shadow11:10,Shadow12:11,Shadow13:12,Shadow14:13,Shadow15:14,Shadow16:15,Shadow17:16,Shadow18:17,Shadow19:18,Shadow20:19,Shadow21:20,Shadow22:21,Shadow23:22,Shadow24:23,Shadow25:24,Shadow26:25,Shadow27:26,Shadow28:27,Shadow29:28,Shadow30:29,Shadow31:30,Shadow32:31,Shadow33:32,Shadow34:33,Shadow35:34,Shadow36:35,Shadow37:36,Shadow38:37,Shadow39:38,Shadow40:39,Shadow41:40,Shadow42:41,Shadow43:42},b.ShadowStyle={ShadowStyleInnerShadow:0,ShadowStyleOuterShadow:1},b.SoftEdgeType={SoftEdgeTypeNone:0,SoftEdgeType1:1,SoftEdgeType2:2,SoftEdgeType3:3,SoftEdgeType4:4,SoftEdgeType5:5,SoftEdgeType6:6},b.PresetCamera={CameraLegacyObliqueTopLeft:0,CameraLegacyObliqueTop:1,CameraLegacyObliqueTopRight:2,CameraLegacyObliqueLeft:3,CameraLegacyObliqueFront:4,CameraLegacyObliqueRight:5,CameraLegacyObliqueBottomLeft:6,CameraLegacyObliqueBottom:7,CameraLegacyObliqueBottomRight:8,CameraLegacyPerspectiveTopLeft:9,CameraLegacyPerspectiveTop:10,CameraLegacyPerspectiveTopRight:11,CameraLegacyPerspectiveLeft:12,CameraLegacyPerspectiveFront:13,CameraLegacyPerspectiveRight:14,CameraLegacyPerspectiveBottomLeft:15,CameraLegacyPerspectiveBottom:16,CameraLegacyPerspectiveBottomRight:17,CameraOrthographicFront:18,CameraIsometricTopUp:19,CameraIsometricTopDown:20,CameraIsometricBottomUp:21,CameraIsometricBottomDown:22,CameraIsometricLeftUp:23,CameraIsometricLeftDown:24,CameraIsometricRightUp:25,CameraIsometricRightDown:26,CameraIsometricOffAxis1Left:27,CameraIsometricOffAxis1Right:28,CameraIsometricOffAxis1Top:29,CameraIsometricOffAxis2Left:30,CameraIsometricOffAxis2Right:31,CameraIsometricOffAxis2Top:32,CameraIsometricOffAxis3Left:33,CameraIsometricOffAxis3Right:34,CameraIsometricOffAxis3Bottom:35,CameraIsometricOffAxis4Left:36,CameraIsometricOffAxis4Right:37,CameraIsometricOffAxis4Bottom:38,CameraObliqueTopLeft:39,CameraObliqueTop:40,CameraObliqueTopRight:41,CameraObliqueLeft:42,CameraObliqueRight:43,CameraObliqueBottomLeft:44,CameraObliqueBottom:45,CameraObliqueBottomRight:46,CameraPerspectiveFront:47,CameraPerspectiveLeft:48,CameraPerspectiveRight:49,CameraPerspectiveAbove:50,CameraPerspectiveBelow:51,CameraPerspectiveAboveLeftFacing:52,CameraPerspectiveAboveRightFacing:53,CameraPerspectiveContrastingLeftFacing:54,CameraPerspectiveContrastingRightFacing:55,CameraPerspectiveHeroicLeftFacing:56,CameraPerspectiveHeroicRightFacing:57,CameraPerspectiveHeroicExtremeLeftFacing:58,CameraPerspectiveHeroicExtremeRightFacing:59,CameraPerspectiveRelaxed:60,CameraPerspectiveRelaxedModerately:61,PresetCameraNone:62},b.PresetLightingDirection={LightingTopLeft:0,LightingTop:1,LightingTopRight:2,LightingLeft:3,LightingNone:4,LightingRight:5,LightingBottomLeft:6,LightingBottom:7,LightingBottomRight:8},b.LightRigType={LightRigLegacyFlat1:0,LightRigLegacyFlat2:1,LightRigLegacyFlat3:2,LightRigLegacyFlat4:3,LightRigLegacyNormal1:4,LightRigLegacyNormal2:5,LightRigLegacyNormal3:6,LightRigLegacyNormal4:7,LightRigLegacyHarsh1:8,LightRigLegacyHarsh2:9,LightRigLegacyHarsh3:10,LightRigLegacyHarsh4:11,LightRigThreePoint:12,LightRigBalanced:13,LightRigSoft:14,LightRigHarsh:15,LightRigFlood:16,LightRigContrasting:17,LightRigMorning:18,LightRigSunrise:19,LightRigSunset:20,LightRigChilly:21,LightRigFreezing:22,LightRigFlat:23,LightRigTwoPoint:24,LightRigGlow:25,LightRigBrightRoom:26},b.AxisType={Category:0,Value:1,SeriesAxis:2},b.TickLabelPosition={high:0,low:1,nextToAxis:2,none:3},b.ScaleType={ScaleLogarithmic:0,ScaleLinear:1},b.TimeUnit={Days:0,Months:1,Years:2},b.TickMark={cross:0,inside:1,none:2,outside:3},b.DisplayUnit={Hundreds:0,Thousands:1,TenThousands:2,HundredThousands:3,Millions:4,TenMillions:5,HundredMillions:6,ThousandMillions:7,MillionMillions:8,None:9,Custom:10},b.AxisCrosses={AxisCrossesCustom:0,AxisCrossesAutomatic:1,AxisCrossesMaximum:2,AxisCrossesMinimum:3},b.CategoryType={AutomaticScale:0,CategoryScale:1,TimeScale:2,ValueScale:3},b.AxisGroup={primary:0,secondary:1},b.BarShape={ConeToPoint:0,ConeToMax:1,Box:2,Cylinder:3,PyramidToPoint:4,PyramidToMax:5},b.ChartType={combo:0,xyScatter:1,radar:2,doughnut:3,pie3D:4,line3D:5,column3D:6,area3D:7,area:8,line:9,pie:10,bubble:11,columnClustered:12,columnStacked:13,columnStacked100:14,columnClustered3D:15,columnStacked3D:16,columnStacked1003D:17,barClustered:18,barStacked:19,barStacked100:20,barClustered3D:21,barStacked3D:22,barStacked1003D:23,lineStacked:24,lineStacked100:25,lineMarkers:26,lineMarkersStacked:27,lineMarkersStacked100:28,pieOfPie:29,pieExploded:30,pieExploded3D:31,barOfPie:32,xyScatterSmooth:33,xyScatterSmoothNoMarkers:34,xyScatterLines:35,xyScatterLinesNoMarkers:36,areaStacked:37,areaStacked100:38,areaStacked3D:39,areaStacked1003D:40,doughnutExploded:41,radarMarkers:42,radarFilled:43,surface:44,surfaceWireframe:45,surfaceTopView:46,surfaceTopViewWireframe:47,bubble3DEffect:48,stockHLC:49,stockOHLC:50,stockVHLC:51,stockVOHLC:52},b.TrendlineType={Exponential:0,Linear:1,Logarithmic:2,MovingAvg:3,Polynomial:4,Power:5},b.DataLabelPosition={bestFit:0,below:1,center:2,insideBase:3,insideEnd:4,left:5,outsideEnd:6,right:7,above:8},b.MarkerStyle={MarkerStyleCircle:0,MarkerStyleDash:1,MarkerStyleDiamond:2,MarkerStyleDot:3,MarkerStyleNone:4,MarkerStylePicture:5,MarkerStylePlus:6,MarkerStyleSquare:7,MarkerStyleStar:8,MarkerStyleTriangle:9,MarkerStyleX:10,MarkerStyleAutomatic:11},b.DrawingPictureType={Stretch:0,Stack:1,StackScale:2},b.SizeRepresents={SizeIsArea:0,SizeIsWidth:1},b.ChartSplitType={SplitByPosition:0,SplitByValue:1,SplitByPercentValue:2,SplitByCustomSplit:3},b.LegendPosition={custom:0,top:1,right:2,left:3,bottom:4,corner:5},b.RowCol={rows:0,columns:1},b.ShapeType={AutoShape:0,Chart:1,Comment:2,Group:3,Picture:4,Slicer:5},b.Placement={MoveAndSize:0,Move:1,FreeFloating:2},b.ChartElements={All:0,Chart:1,PlotArea:2,Series:3,SeriesCollection:4,Point:5,DataLabel:6,DataMarker:7,CategoryAxis:8,ValueAxis:9,SeriesAxis:10,Lengend:11,FloorWall:12,SideWall:13,BackWall:14,ChartTitle:15,AxisTitle:16,ChartGroup:17},b.ImageType={PNG:0,JPG:1,JPEG:2,EMF:3},b.SolidColorType={None:0,Automatic:1,RGB:2,Theme:3},b.TextUnderlineType={None:0,Words:1,Single:2,Double:3,Heavy:4,Dotted:5,DottedHeavy:6,Dash:7,DashHeavy:8,DashLong:9,DashLongHeavy:10,DotDash:11,DotDashHeavy:12,DotDotDash:13,DotDotDashHeavy:14,Wavy:15,WavyHeavy:16,WavyDouble:17},b.ReflectionType={ReflectionTypeNone:0,ReflectionType1:1,ReflectionType2:2,ReflectionType3:3,ReflectionType4:4,ReflectionType5:5,ReflectionType6:6,ReflectionType7:7,ReflectionType8:8,ReflectionType9:9},a.exports=b}()},function(a,b,c){!function(){"use strict";var b=c(6),d=b.j,e=d.Ia,f=d.Fa,g=c(3),h=function(){var a,b;function c(a){var b=this; b.oi=[],b.qpa=0,b.rpa=0,b.spa=a,b.spa&&b.spa.AddChildInternal(b)}return a=c.prototype,b=Object.defineProperty,e(a,{SetState:function(a,b){var c=this,d=a;b?c.rpa|=d:c.rpa&=~d,c.IsClearChildrenStateSuspended||c.oi.forEach(function(b){b.SetState(a,!1)})},GetState:function(a,b){var c=this,d=a,e=(d&c.rpa)===d;return e||!b||f(c.spa)||(e=c.spa.GetState(a,!0)),e},OnStateChanged:function(a){},Dirty:function(a){this.SetState(a,!0)},UnDirty:function(a){this.SetState(a,!1)},UnDirtyAll:function(){this.rpa=0},IsDirty:function(a){return this.GetState(a)},IsPropDirtyIncludingParent:function(a,b){var c=this,d=c.GetState(a);return!!d||!(!b||f(c.spa))&&c.spa.IsPropDirtyIncludingParent(a,!0)},IsDirtyIncludingParent:function(a){var b=this;return b.rpa>0||!(!a||f(b.spa))&&b.spa.IsDirtyIncludingParent(!0)},AddChildInternal:function(a){var b=this.oi;b.indexOf(a)===-1&&b.push(a)},RemoveChildInternal:function(a){var b=this.oi,c=b.indexOf(a);c!==-1&&b.splice(c,1)},SetParentForChildren:function(a){var b=this.oi.slice(0);b.forEach(function(b){b.ParentStateful=a})},OnParentChanged:function(a){},SuspendClearChildrenState:function(){this.qpa++},ResumeClearChilrenState:function(){this.qpa--}}),b(a,"ParentStateful",{get:function(){return this.spa},set:function(a){var b=this;a!==b.spa&&(b.spa&&b.spa.RemoveChildInternal(this),b.spa=a,b.spa&&b.spa.AddChildInternal(this),b.OnParentChanged(a))},enumerable:!0,configurable:!0}),b(a,"Children",{get:function(){return this.oi},enumerable:!0,configurable:!0}),b(a,"IsClearChildrenStateSuspended",{get:function(){return this.qpa>0},enumerable:!0,configurable:!0}),c}();g.StatefullBase=h,a.exports=g}()},function(b,c){b.exports=a.Spread.Common},function(a,b,c){!function(){"use strict";var b,d,e,f,g,h,i,j,k,l,m,n,o=c(3),p=c(8).GC$,q=c(5).StatefullBase,r=null,s=void 0,t=Math.max,u=Math.min,v=Math.floor,w=Math.log,x=Math.pow,y=Math.ceil,z=Math.abs,A=1048576,B=16384;function C(a){return o.ARGBColor.FromArgb(a)}function D(a){return"number"==typeof a||a instanceof Date}function E(a,b,c){c.configurable=!0,c.enumerable=!0,Object.defineProperty(a,b,c)}function F(a){var b,c,d,f,g,h,i,j;if(!a||0===a.length)return!1;if(a=a.toUpperCase().trim(),"["===a[0]){if(b=a.indexOf("]"),b===-1||b===a.length-1)return!1;a=a.substr(b+1)}for(c=-1,d=0,f=!1,g=r,h=0;hf)return!1}return!0}function H(a){var b=a.getTimezoneOffset();return b===-485&&(b=-485-43/60),b}b=function(){function a(){}return a.FromOADate=function(a){var b,c,d,e,f,g,h,i,j,k;if(a<60&&a++,b=a-25569,c=new Date(864e5*b),d=b>=0?1:-1,e=H(c),f=(864e5*a*1440+d-3181192704e6+864e5*e)/1440,g=new Date(f),h=e>=0?1:-1,i=new Date(f+36e5*h),j=H(i),e!==j)if(k=new Date(f+60*(j-e)*1e3),e>j){if(h===-1||j===H(g))return k}else if(e0?e=90:a<0&&b<0?e=180:a>0&&b<0&&(e=270),180*Math.acos(d)/Math.PI+e)},a.INT32_MAX_VALUE=2147483647,a.DOUBLE_MAX_VALUE=Number.MAX_VALUE,a.DOUBLE_MIN_VALUE=-Number.MAX_VALUE,a}(),o.NumberExtension=d,e=function(){function a(){}function b(a,b){var c=Math.pow(10,b);return Math.round(a*c)/c}return a.pointToPixel=function(a){return b(96*a/72,2)},a.IsNullOrEmpty=function(b){return a.isNullOrUndefined(b)||""===b},a.IsNegativeInfinity=function(a){return a===Number.NEGATIVE_INFINITY},a.IsPositiveInfinity=function(a){return a===Number.POSITIVE_INFINITY},a.isNullOrUndefined=function(a){return a===s||a===r},a}(),o.UnitHelper=e,f=function(){function a(a,b,c,d){var e=this;e.Row=a,e.Column=b,e.RowCount=c,e.ColumnCount=d}var b=a.prototype;return E(b,"Left",{get:function(){return this.Column}}),E(b,"Top",{get:function(){return this.Row}}),E(b,"Right",{get:function(){return this.Column+this.ColumnCount}}),E(b,"Bottom",{get:function(){return this.Row+this.RowCount}}),E(b,"IsFullColumn",{get:function(){return 0===this.Row&&this.RowCount===d.INT32_MAX_VALUE}}),E(b,"IsFullRow",{get:function(){return 0===this.Column&&this.ColumnCount===d.INT32_MAX_VALUE}}),b.Intersect=function(a){var b=this,c=a,d=t(b.Column,c.Column),e=t(b.Row,c.Row),f=u(b.Right,c.Right),g=u(b.Bottom,c.Bottom);d>=f||e>=g?(b.Column=0,b.Row=0,b.ColumnCount=0,b.RowCount=0):(b.Column=d,b.Row=e,b.ColumnCount=f-d,b.RowCount=g-e)},b.IntersectsWith=function(a){var b=this,c=a;return!(b.Left>=c.Right||b.Right<=c.Left||b.Top>=c.Bottom||b.Bottom<=c.Top)},a}(),o.CellRect=f,g=function(){function a(a,b){this.Worksheet=a,this.tpa=b,this.UpdateRects()}var b=a.prototype;return b.UpdateRects=function(){var a,b,c,e,g,h,i,j,k=this;for(k.upa=[],e=0;eA))throw Error();if((0!==h||b!==d.INT32_MAX_VALUE)&&(h<0||b<=0||h+b>B))throw Error()}for(i=0,j=k.tpa;i0&&(d="["+c.Workbook+"]"),b=c.WorksheetName,e.isNullOrUndefined(b)&&(b=a),b&&(d+=e.isNullOrUndefined(c.LastWorksheetName)?b:b+":"+c.LastWorksheetName),d?((c.IsSpecialSheetName(b)||c.IsSpecialSheetName(c.LastWorksheetName))&&(d="'"+d.replace("'","''")+"'"),d+="!"):""===b&&(d="!"),d},b.IsSpecialSheetName=function(b){var c,d;if(!e.isNullOrUndefined(b)){if(b===a.ErrorWorksheetName)return!1;for(c=0;c="A"&&d<="Z"||d>="a"&&d<="z"||d>="0"&&d<="9"||"_"===d))return!0}return!1},b.GetColumnIndexInA1Letter=function(a){for(var b="ABCDEFGHIJKLMNOPQRSTUVWXYZ",c=[],d=0;;){if(d=a%26,c.unshift(b[d]),a=parseInt(a/26),0===a)break;a--}return c.join("")},a}(),h.ErrorWorksheetName="#REF",o.Reference=h,i=o.ChartConstants={XValuesMinMax:"XValuesMinMax",ValuesMinMax:"ValuesMinMax",PrimaryValuesMinMax:"PrimaryValuesMinMax",SecondaryValuesMinMax:"SecondaryValuesMinMax",PrimaryXValuesMinMax:"PrimaryXValuesMinMax",SecondaryXValuesMinMax:"SecondaryXValuesMinMax",Collection:"Collection",Restore:"Restore",ChartType:"ChartType",AxisGroup:"AxisGroup",AreAllXValuesDateTime:"AreAllXValuesDateTime",XValuesFormula:"XValuesFormula",XValues:"XValues",CategoryNames:"CategoryNames",CategoryType:"CategoryType",SecondaryPlot:"SecondaryPlot",SplitType:"SplitType",SplitValue:"SplitValue",IsMultiLevelXValues:"IsMultiLevelXValues",PlotOrder:"PlotOrder",FIELD_TYPE_CELLRANGE:"CELLRANGE",FIELD_TYPE_SERIESNAME:"SERIESNAME",FIELD_TYPE_CATEGORYNAME:"CATEGORYNAME",FIELD_TYPE_VALUE:"VALUE",FIELD_TYPE_XVALUE:"XVALUE",FIELD_TYPE_YVALUE:"YVALUE",FIELD_TYPE_BUBBLESIZE:"BUBBLESIZE",FIELD_TYPE_PERCENTAGE:"PERCENTAGE",FIELD_TYPE_TXLINK:"TxLink",FIELD_TEXT_CELLRANGE:"[CELLRANGE]",FIELD_TEXT_SERIESNAME:"[SERIES NAME]",FIELD_TEXT_CATEGORYNAME:"[CATEGORY NAME]",FIELD_TEXT_VALUE:"[VALUE]",FIELD_TEXT_XVALUE:"[XVALUE]",FIELD_TEXT_YVALUE:"[YVALUE]",FIELD_TEXT_BUBBLESIZE:"[BUBBLE SIZE]",CHART_LATIN_HEAD_FONT:"+mj-lt",CHART_LATIN_BODY_FONT:"+mn-lt",CHART_EA_HEAD_FONT:"+mj-ea",CHART_EA_BODY_FONT:"+mn-ea",CHART_CS_HEAD_FONT:"+mj-cs",CHART_CS_BODY_FONT:"+mn-cs",DefaultLineColorBrightness:.85,DefaultMarkerSize:5},o.ShapeConstants={ShapeTypePrefix:"Shape",PositiveFixedAngleConvert:6e4,PositionConver:1e5,CropPositionConver:1e3,ShadeConver:2e5,DefaultBrightness:.5,RelativeRectConver:1e3,DefaultTransparent:0,PositiveFixedPercentageConvert:1e5,DefaultOffset:2.07995176},j=function(){var a,f;function g(){}g.defineProperty=E,g.colorFormatToString=function(a,b){var c,d,e=a&&a.Color;if(e&&0!==e.ColorType){if(b&&(c=e.GetColorData(),4===c.ColorType))return g.toThemeColorString(c.Value,c.Tint);if(d=e.RGB)return"rgba("+d.R+","+d.G+","+d.B+","+d.A/255+")"}return"transparent"},a={0:"background 1",2:"background 2",1:"text 1",3:"text 2",4:"accent 1",5:"accent 2",6:"accent 3",7:"accent 4",8:"accent 5",9:"accent 6",10:"hyperlink",11:"followedhyperlink"},g.toThemeColorString=function(b,c){return a[b]+" "+parseInt(100*c)},f={"background 1":0,"background 2":2,"text 1":1,"text 2":3,"accent 1":4,"accent 2":5,"accent 3":6,"accent 4":7,"accent 5":8,"accent 6":9,hyperlink:10,followedhyperlink:11},g.fromThemeColorString=function(a){var b,c=a.split(" "),d=c.length,e=c[0].toLowerCase(),g=c[1],h=c[2];if("hyperlink"===e||"followedhyperlink"===e){if(1===d)return{index:f[e],tint:0};if(2===d)return{index:f[e],tint:parseInt(g)/100}}if(d>=2&&(b=f[e+" "+g],b!==s)){if(2===d)return{index:b,tint:0};if(3===d)return{index:b,tint:parseInt(h)/100}}},g.InitPresetColors=function(){var a=g.presetColors;a[0]=16766374,a[1]=10079474,a[2]=14276864,a[3]=12713798,a[4]=16777126,a[5]=10938086,a[6]=8439295,a[7]=0,a[8]=8966143,a[9]=14221312,a[10]=13180022,a[11]=2368652,a[12]=6135762,a[13]=8947281,a[14]=55660,a[15]=1661363,a[16]=1989375,a[17]=15234615,a[18]=9825023,a[19]=3346875,a[20]=14276864,a[21]=7733248,a[22]=7763456,a[23]=619164,a[24]=9474192,a[25]=21760,a[26]=5154734,a[27]=7733366,a[28]=2644808,a[29]=30681,a[30]=11348866,a[31]=118,a[32]=5010145,a[33]=7383408,a[34]=7746621,a[35]=4408104,a[36]=11710208,a[37]=11731070,a[38]=8257770,a[39]=14262784,a[40]=5855577,a[41]=15891200,a[42]=1908119,a[43]=10936831,a[44]=1930781,a[45]=14221529,a[46]=12303291,a[47]=16756141,a[48]=47065,a[49]=1805497,a[50]=7171437,a[51]=27904,a[52]=196507,a[53]=10944422,a[54]=10040319,a[55]=3881921,a[56]=7274560,a[57]=10944511,a[58]=5954537,a[59]=15641258,a[60]=12822271,a[61]=54889,a[62]=8975359,a[63]=14205567,a[64]=5197802,a[65]=16777112,a[66]=9761779,a[67]=11776947,a[68]=6219358,a[69]=9008383,a[70]=4290815,a[71]=9541403,a[72]=16299856,a[73]=8680547,a[74]=13411718,a[75]=10027007,a[76]=55552,a[77]=2797098,a[78]=11193582,a[79]=14221529,a[80]=109,a[81]=9945667,a[82]=11403264,a[83]=13120682,a[84]=13715573,a[85]=6330419,a[86]=15284819,a[87]=8639488,a[88]=12238640,a[89]=7410345,a[90]=6231317,a[91]=13959082,a[92]=10068991,a[93]=7654655,a[94]=7193855,a[95]=7143424,a[96]=10738424,a[97]=28013,a[98]=1997147,a[99]=36057,a[100]=15321,a[101]=13322704,a[102]=7854820,a[103]=6224222,a[104]=14934908,a[105]=7686353,a[106]=9426175,a[107]=7845887,a[108]=3109301,a[109]=9731583,a[110]=13530830,a[111]=14143106,a[112]=7143533,a[113]=217,a[114]=7368873,a[115]=13979170,a[116]=1063798,a[117]=4018680,a[118]=3181041,a[119]=4879911,a[120]=10799871,a[121]=2508424,a[122]=10724259,a[123]=14924631,a[124]=12597837,a[125]=8088927,a[126]=11448063,a[127]=7133440,a[128]=10055484,a[129]=6724547,a[130]=7171328,a[131]=12687809,a[132]=1456895,a[133]=12702498,a[134]=15159783,a[135]=8111854,a[136]=14277081,a[137]=13684944,a[138]=55769,a[139]=2797187},g.GetPresetColorRGB=function(a){return g.presetColors[a]},g.GetDimensioin=function(a){var b={0:-1,1:2,33:2,34:2,35:2,36:2,11:3,48:3};return b[a]||1},g.AreValuesDateTime=function(a,b,c){var d,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u;if(e.isNullOrUndefined(b)||0===b.length)return!1;for(d=!0,g=this.GetStylesFromCellRefers(a,b,c),h=this.GetValuesFromCellRefers(a,b,c),i=0;i=0||","!==g&&","!==h&&a.indexOf(",")>=0)return!1;if(i=!1,"%"===a.charAt(a.length-1)&&(i=!0,a=a.substr(0,a.length-1)),"$"===a[0])return!1;if(a.indexOf(g)!==a.lastIndexOf(g))return!1;if(a.length>=2&&"0"===a[0]&&"x"===a[1])return!1;if(m=new Number(a).valueOf(),d.isNaNOrInfinite(m)){if(j=a.charCodeAt(0),j|=32,a.length>4&&j>=96&&j<=122&&(k=a[0]+a[1]+a[2],k=k.toUpperCase(),!l[k]))return!1;if("/"===a[0]||"/"===a[a.length-1])return!1;if(m=new Date(a),d.isNaNOrInfinite(m.valueOf()))return!1;m=b.ToOADate(m)}i&&(m/=100)}else if("boolean"===f)m=a?1:0;else{if(!(a instanceof Date))return!1;m=b.ToOADate(a)}}catch(a){return!1}return c.value=m,!0},g.IsBarChart=function(a){return 18===a||21===a||19===a||20===a||23===a||22===a},g.zpa=function(a){var b,d,e=g.chartTypeDict;if(!e){e=g.chartTypeDict={},b=c(4).ChartType;for(d in b)e[b[d]]=d.toLowerCase()}return e[a]},g.IsColumnChart=function(a){return g.zpa(a).indexOf("column")>=0},g.IsAnyPieChart=function(a){return this.IsPieChart(a)||this.IsDoughnutChart(a)||this.IsOfPieChart(a)},g.IsPieChart=function(a){return g.zpa(a).indexOf("pie")>=0},g.IsPieOrDoughnutChart=function(a){return this.IsPieChart(a)||this.IsDoughnutChart(a)},g.IsOfPieChart=function(a){return 29===a||32===a},g.IsStackedChart=function(a){return g.zpa(a).indexOf("stacked")>=0},g.IsStacked100Chart=function(a){return g.zpa(a).indexOf("stacked100")>=0},g.IsLineChart=function(a){return 5===a||9===a||26===a||27===a||28===a||24===a||25===a},g.IsLineMarkerChart=function(a){return 26===a||27===a||28===a},g.IsLineSeries=function(a){return 9===a||26===a||27===a||28===a||24===a||25===a||35===a||36===a||33===a||34===a||2===a||42===a},g.IsMarkerSeries=function(a){return 26===a||27===a||28===a||42===a||1===a||35===a||33===a},g.IsFillSeries=function(a){return!this.IsLineSeries(a)&&1!==a},g.IsRadarChart=function(a){return g.zpa(a).indexOf("radar")>=0},g.IsAreaChart=function(a){return g.zpa(a).indexOf("area")>=0},g.IsScatterChart=function(a){return g.zpa(a).indexOf("scatter")>=0},g.IsSurfaceChart=function(a){return g.zpa(a).indexOf("surface")>=0},g.IsBubbleChart=function(a){return g.zpa(a).indexOf("bubble")>=0},g.IsSmoothLine=function(a){return g.zpa(a).indexOf("smooth")>=0},g.Is3DChart=function(a){var b=g.zpa(a);return b.indexOf("3d")>=0&&48!==a||this.IsSurfaceChart(a)||b.indexOf("cylinder")>=0||b.indexOf("cone")>=0||b.indexOf("pyramid")>=0},g.IsSurface3DChart=function(a){return 44===a||45===a},g.IsDoughnutChart=function(a){return 3===a||41===a},g.IsExplodedChart=function(a){return 31===a||41===a||30===a},g.HasSeriesAx=function(a){return 6===a||7===a||5===a||this.IsSurfaceChart(a)},g.IsStockChart=function(a){return g.zpa(a).indexOf("stock")>=0},g.IsBuiltInComboChart=function(a){return this.IsStockChart(a)},g.ConvertToTextUnderlineType=function(a){var b=0;return 1===a?b=2:2===a&&(b=3),b},g.ToUnderlineType=function(a){var b=0;return 2===a?b=1:3===a&&(b=2),b},g.MapToGroupType=function(a){var b={12:9,13:9,14:9,15:3,16:3,17:3,6:3,18:8,19:8,20:8,21:2,22:2,23:2,9:11,24:11,25:11,26:11,27:11,28:11,5:4,10:12,29:12,30:12,32:12,31:5,4:5,1:14,33:14,34:14,35:14,36:14,8:7,37:7,38:7,39:1,40:1,7:1,3:10,41:10,2:13,42:13,43:13,44:6,45:6,46:6,47:6,11:14,48:14,49:11,50:11,51:11,52:11};return b[a]||0},g.HasSeriesLines=function(a){return this.IsOfPieChart(a)},g.HasHiLoLines=function(a){return this.IsStockChart(a)},g.HasUpDownBars=function(a){return 50===a||52===a},g.RangeToReferences=function(a){var b,c,d,e=[];for(b=0,c=a.Areas;b0&&c.push(","),b?c.push(a[d].ToR1C1Text()):c.push(a[d].ToA1Text(0,0));return c.join("")},g.GetValuesFromCellRefers=function(a,b,c){var d,f,g,h,i=[];if(e.isNullOrUndefined(b)||0===b.length||b.some(function(a){return a.IsError}))return i;for(d=0,f=b;d0&&(b=a.axes[0],c.push(b.axId),c.push(b.crossAx)),c},g.GetAxises=function(a,b){var c,d,f,h,i,j=g.GetPrimaryAxises(a);if(0===b)return j;if(c=[],!e.isNullOrUndefined(a.axes))for(d=a.axes.filter(function(a){return j.indexOf(a.axId)<0}),f=0,h=d;f0&&f.push(d.axId[0]);return f},g.GetChartType=function(a){var b,c,d,f,h,i=this.GetStockChartType(a);if(!e.isNullOrUndefined(i))return i;for(b=[],c=0,d=a.chartGroups;c1?0:b[0]},g.GetStockChartType=function(a){var b=g.GetStockChart(a);if(0===b.length)return r;if(!e.isNullOrUndefined(a.chartGroups)&&a.chartGroups.length>1){if(3===b[0].ser.length)return 51;if(4===b[0].ser.length)return 52}else{if(3===b[0].ser.length)return 49;if(4===b[0].ser.length)return 50}return r},g.GetChartTypeByChartBase=function(a,b){return b===s&&(b=r),6===a.chartType||7===a.chartType?g.GetChartTypeByBarChart(a):4===a.chartType||5===a.chartType?g.GetChartTypeByAreaChart(a):8===a.chartType||9===a.chartType?g.GetChartTypeByLineChart(a,b):[10,11,12,13].indexOf(a.chartType)>=0?g.GetChartTypeByPieChart(a,b):2===a.chartType?g.GetChartTypeByRadarChart(a,b):1===a.chartType?g.GetChartTypeByScatterChart(a):3===a.chartType?g.GetChartTypeByBubbleChart(a):14===a.chartType||15===a.chartType?g.GetChartTypeBySurfaceChart(a):12},g.GetChartTypeByBarChart=function(a){var b=7===a.chartType;if(e.isNullOrUndefined(a.grouping))return b?0===a.barDir?21:15:0===a.barDir?18:12;switch(a.grouping){case 0:return b?0===a.barDir?23:17:0===a.barDir?20:14;case 1:return b?0===a.barDir?21:15:0===a.barDir?18:12;case 2:return b?0===a.barDir?21:6:0===a.barDir?18:12;case 3:return b?0===a.barDir?22:16:0===a.barDir?19:13}return 12},g.GetChartTypeByAreaChart=function(a){var b=5===a.chartType;if(e.isNullOrUndefined(a.grouping))return b?7:8;switch(a.grouping){case 0:return b?40:38;case 1:return b?7:8;case 2:return b?39:37}return 8},g.GetChartTypeByLineChart=function(a,b){var c=9===a.chartType,d=a.marker;if(d&&b&&b.marker&&4===b.marker.symbol&&(d=!1),e.isNullOrUndefined(a.grouping)){if(c)return 5}else switch(a.grouping){case 0:return c?5:d?28:25;case 1:return c?5:d?26:9;case 2:return c?5:d?27:24;default:return 8}return d?26:9},g.GetChartTypeByPieChart=function(a){if(10===a.chartType)return 10;if(11===a.chartType)return 4;if(13===a.chartType){var b=a;return 1===b.ofPieType?32:29}return 12===a.chartType?3:10},g.GetChartTypeByRadarChart=function(a,b){var c=!e.isNullOrUndefined(b)&&!e.isNullOrUndefined(b.marker)&&!e.isNullOrUndefined(b.marker.symbol)&&4!==b.marker.symbol;if(!e.isNullOrUndefined(a.radarStyle))switch(a.radarStyle){case 0:case 1:return c?42:2;case 2:return 43}return 2},g.GetChartTypeByScatterChart=function(a){var b,c,d,f,g,h,i,j=a.scatterStyle;return e.isNullOrUndefined(j)?1:(b={0:1,1:36,2:35,3:1,4:34,5:33},c=j,d=a.ser[0],f=d&&d.marker&&d.marker.symbol,g=4===f,h=d&&d.spPr&&d.spPr.ln,i=h&&h.noFill,2===c?i?c=3:g&&(c=1):5===c&&g&&(c=4),b[c])},g.GetChartTypeByBubbleChart=function(a){return a.bubble3D?48:11},g.GetChartTypeBySurfaceChart=function(a){var b=15===a.chartType;return b?a.wireframe?45:44:a.wireframe?47:46},g.GetTextFieldTypeString=function(a){var b={0:i.FIELD_TYPE_CELLRANGE,1:i.FIELD_TYPE_SERIESNAME,2:i.FIELD_TYPE_CATEGORYNAME,3:i.FIELD_TYPE_VALUE,4:i.FIELD_TYPE_XVALUE,5:i.FIELD_TYPE_YVALUE,6:i.FIELD_TYPE_BUBBLESIZE,7:i.FIELD_TYPE_PERCENTAGE,8:i.FIELD_TYPE_TXLINK};return b[a]||""},g.GetTextFieldTypeText=function(a){var b={0:i.FIELD_TEXT_CELLRANGE,1:i.FIELD_TEXT_SERIESNAME,2:i.FIELD_TEXT_CATEGORYNAME,3:i.FIELD_TEXT_VALUE,4:i.FIELD_TEXT_XVALUE,5:i.FIELD_TEXT_YVALUE,6:i.FIELD_TEXT_BUBBLESIZE};return b[a]||""},g.GetTextFieldType=function(a){var b=0;switch(a){case i.FIELD_TYPE_CELLRANGE:b=0;break;case i.FIELD_TYPE_SERIESNAME:b=1;break;case i.FIELD_TYPE_CATEGORYNAME:b=2;break;case i.FIELD_TYPE_VALUE:b=3;break;case i.FIELD_TYPE_XVALUE:b=4;break;case i.FIELD_TYPE_YVALUE:b=5;break;case i.FIELD_TYPE_BUBBLESIZE:b=6;break;case i.FIELD_TYPE_PERCENTAGE:b=7;break;case i.FIELD_TYPE_TXLINK:b=8}return b},g.GetPrimaryPieChart=function(a){return a[0]},g.GetPlotAreaCharts=function(a,b){return a.chartGroups.filter(function(a){return a.chartType===b})},g.GetAreaChart=function(a){return g.GetPlotAreaCharts(a,4)},g.GetArea3DChart=function(a){var b=g.GetPlotAreaCharts(a,5);return b.length>0?b[0]:r},g.GetBarChart=function(a){return g.GetPlotAreaCharts(a,6)},g.GetBar3DChart=function(a){var b=g.GetPlotAreaCharts(a,7);return b.length>0?b[0]:r},g.GetLineChart=function(a){return g.GetPlotAreaCharts(a,8)},g.GetLine3DChart=function(a){var b=g.GetPlotAreaCharts(a,9);return b.length>0?b[0]:r},g.GetStockChart=function(a){return g.GetPlotAreaCharts(a,0)},g.GetRadarChart=function(a){return g.GetPlotAreaCharts(a,2)},g.GetScatterChart=function(a){return g.GetPlotAreaCharts(a,1)},g.GetPieCharts=function(a){var b=[10,11,12,13];return a.chartGroups.filter(function(a){return b.indexOf(a.chartType)>=0})},g.GetPieChart=function(a){return g.GetPlotAreaCharts(a,10)},g.GetPie3DChart=function(a){var b=g.GetPlotAreaCharts(a,11);return b.length>0?b[0]:r},g.GetDoughnutChart=function(a){return g.GetPlotAreaCharts(a,12)},g.GetOfPieChart=function(a){return g.GetPlotAreaCharts(a,13)},g.GetSurfaceChart=function(a){var b=g.GetPlotAreaCharts(a,14);return b.length>0?b[0]:r},g.GetSurface3DChart=function(a){var b=g.GetPlotAreaCharts(a,15);return b.length>0?b[0]:r},g.GetBubbleChart=function(a){return g.GetPlotAreaCharts(a,3)},g.GetAxes=function(a,b){return a.axes.filter(function(a){return a.axisType===b})},g.removeEmptyArrayProperties=function(a){var b,c;for(b in a)a.hasOwnProperty(b)&&(c=a[b],Array.isArray(c)&&0===c.length&&delete a[b])},g.allSeriesIsScatterOrBubble=function(a){var b,c,d,e,f=a.ChartType;if(g.IsBubbleChart(f)||g.IsScatterChart(f))return!0;if(0===f){if(b=a.SeriesCollection.AllSers,c=b.length,d=b[0].ChartType,g.IsBubbleChart(d)){for(e=1;e=0||(d=a[c],Array.isArray(d)?0!==d.length&&null!==l(d,b)||delete a[c]:"object"==typeof d&&(d=k(d,b),null===d&&delete a[c]));return j(a)?null:a}function l(a,b){var c=[],d=a.length;return a.forEach(function(a){var d=k(a,b);null!==d&&c.push(d)}),c.length=0?(g=b,c(e)&&(g+=i),6*h>b?f=0:(f=a-h/2,(j.IsScatterChart(k)||j.IsBubbleChart(k))&&(f=a))):b<=0?(f=a,c(e)&&(f-=i),6*h+a>0?g=0:(g=b+h/2,(j.IsScatterChart(k)||j.IsBubbleChart(k))&&(g=b))):(f=a-i,g=b+i),{Min:f,Max:g}},a.CalculateMinimum2=function(a,b,c,e,f){return a=e?x(f,v(d.log(a,f))):v(a/c)*c},a.CalculateMaximum2=function(a,b,c,e,f){return b=e?x(f,y(d.log(b,f))):y(b/c)*c},a.CalculateMajorUnit=function(a,b,c,e,f,g){var h,i=z(b-a);return f?h=g:(h=x(10,v(d.log(i,10))),i/h<=1.6?h/=5:i/h<=4?h/=2:i/h>8&&(h*=2),c||(h=t(h,e))),h},a.CalculateMinorUnit=function(a,b,c,d){var e;return e=d?c:c/5},a.GenerateAxisId=function(){for(var a=0;;)if(a=v(9e7*Math.random())+1e7,!this.Gpa[a]){this.Gpa[a]=!0;break}return a},a}(),l.Gpa={},o.AxisUtility=l,m=function(){function a(){}var b=a.prototype;return E(b,"ChartFormat",{get:function(){return e.isNullOrUndefined(this.Kb)&&(this.Kb=this.GetDefaultFormat()),this.Kb}}),b.CreateFormat=function(){return r},b.GetDefaultFormat=function(){return this.CreateFormat()},b.GetFormatInternal=function(){return this.Kb},b.FromShapeProperties=function(a){var b=this;e.isNullOrUndefined(a)?b.ClearFormat():(e.isNullOrUndefined(b.Kb)&&(b.Kb=b.CreateFormat()),b.Kb.FromOOModel(a))},b.ToShapeProperties=function(){return e.isNullOrUndefined(this.Kb)?r:this.Kb.ToOOModel()},b.Delete=function(){e.isNullOrUndefined(this.Kb)||(this.Kb.ParentStateful=r)},b.ClearFormat=function(){var a=this;e.isNullOrUndefined(a.Kb)||(a.Kb.SetParentForChildren(r),a.Kb.ParentStateful=r,a.Kb=r)},a}(),o.ChartElementBase=m,n=function(a){p.inherit(b,a);function b(b){return a.call(this,b)||this}var c=b.prototype;return E(c,"ChartFormat",{get:function(){var a=this;return e.isNullOrUndefined(a.Kb)&&(a.Kb=a.GetDefaultFormat()),a.Kb},set:function(a){var b,c=this;e.isNullOrUndefined(c.Kb)||c.Kb.SetParentForChildren(a),b=c.Kb,c.Kb=a,e.isNullOrUndefined(b)||(c.Kb.ParentStateful=b.ParentStateful)}}),c.CreateFormat=function(){return r},c.GetDefaultFormat=function(){return this.CreateFormat()},c.FromShapeProperties=function(a){var b=this;e.isNullOrUndefined(a)?b.ClearFormat():(e.isNullOrUndefined(b.Kb)&&(b.Kb=b.CreateFormat()),b.Kb.FromOOModel(a))},c.ToShapeProperties=function(){return e.isNullOrUndefined(this.Kb)?r:this.Kb.ToOOModel()},c.Delete=function(){e.isNullOrUndefined(this.Kb)||(this.Kb.ParentStateful=r)},c.ClearFormat=function(){var a=this;e.isNullOrUndefined(a.Kb)||(a.Kb.SetParentForChildren(r),a.Kb.ParentStateful=r,a.Kb=r)},b}(q),o.StatefulChartElementBase=n,a.exports=o}()},function(b,c){b.exports=a.Spread.Sheets},function(a,b,c){!function(){"use strict";var b,d,e,f=c(3),g=c(8).GC$,h=g.inherit,i=c(7),j=i.UnitHelper,k=i.ChartUtility.defineProperty,l=i.UnitHelper.isNullOrUndefined,m=i.ChartElementBase,n=c(10).ChartFormat,o=c(19).DrawingTextBody,p=null,q=void 0,r=function(){function a(a){this.Hpa=a}var b=a.prototype;return k(b,"Formula",{get:function(){return this.GetFormula(!1)},set:function(a){a!==this.Formula&&this.UpdateTextByFormulas(a)}}),k(b,"FormulaR1C1",{get:function(){return this.GetFormula(!0)},set:function(a){a!==this.Formula&&this.UpdateTextByFormulas(a,!0)}}),k(b,"Parent",{get:function(){return this.Hpa}}),k(b,"ReferingText",{get:function(){return this.GetReferingText()}}),k(b,"Worksheet",{get:function(){return this.Hpa.sheet()}}),k(b,"TextRefer",{get:function(){return this.Ipa},set:function(a){this.SetTextRefer(a)}}),b.SetTextRefer=function(a,b){b===q&&(b=!0),this.SetTextReferInternal(a,b),this.OnSetTextRefer(a)},b.OnSetTextRefer=function(a){},b.GetReferingText=function(){var a,b,c,d="";if(!l(this.Ipa))for(a=this.GetTextList(this.Ipa),b=0,c=a;b0&&b.p[0].pPr?(e=b.p[0].pPr.defRPr,e&&(e.sz=d)):c&&c.rich&&c.rich.p&&c.rich.p.length>0&&c.rich.p[0].pPr&&(e=c.rich.p[0].pPr.defRPr,e&&(e.sz=d))}},b}(d),f.ChartTitle=e,a.exports=f}()},function(a,b,c){!function(){"use strict";var b,d=c(3),e=c(8).GC$,f=c(7),g=f.UnitHelper.isNullOrUndefined,h=f.ChartUtility.defineProperty,i=c(11).FillFormat,j=c(16).LineFormat,k=c(12).ColorFormat,l=c(17).ThreeDFormat,m=c(18),n=m.ShadowFormat,o=m.GlowFormat,p=m.SoftEdgeFormat,q=m.ReflectionFormat,r=c(14).ARGBColor,s=c(5).StatefullBase,t=null,u=void 0;d.ChartFormatStates={Fill:1,Glow:2,Line:4,PictureFormat:8,Shadow:16,SoftEdge:32,ThreeD:64},b=function(a){e.inherit(b,a);function b(b,c,d,e){c===u&&(c=t);var f=a.call(this,c)||this;return f.Tpa=t,f.Spa=b,f.Upa=c,f.Vpa=d||f.Wpa.bind(f),f.Xpa=e||f.Ypa.bind(f),f}var c=b.prototype;return c.Wpa=function(){var a=this.Upa,b=new k(this.Spa,a&&a.FillInternal);return b.RGB=r.FromRgb(255,255,255),b},c.Ypa=function(){var a=this.Upa,b=new k(this.Spa,a&&a.FillInternal);return b.RGB=r.FromRgb(0,0,0),b},h(c,"Fill",{get:function(){return this.FillInternal}}),h(c,"Line",{get:function(){return this.LineInternal}}),h(c,"ThreeD",{get:function(){return this.ThreedInternal}}),c.FromOOModel=function(a){var b=this;b.Tpa=a,g(a)||(g(a.solidFill)?g(a.noFill)?g(a.blipFill)?g(a.gradFill)?g(a.pattFill)||b.FillInternal.FromOOModel(a.pattFill,1):b.FillInternal.FromOOModel(a.gradFill,2):b.FillInternal.FromOOModel(a.blipFill,3):b.FillInternal.Color.ColorType=0:b.FillInternal.FromOOModel(a.solidFill,0),g(a.ln)||b.LineInternal.FromOOModel(a.ln),g(a.scene3d)&&g(a.sp3d)||b.ThreedInternal.FromOOModel({Scene3D:a.scene3d,Shape3D:a.sp3d}),b.FromCT_EffectList(a.effectLst))},c.ToOOModel=function(){return this.ToCT_ShapeProperties()},c.ToCT_ShapeProperties=function(){var a,b,c=this,d=g(c.Tpa)?{}:c.Tpa;return delete d.solidFill,delete d.pattFill,delete d.blipFill,delete d.gradFill,delete d.noFill,g(c.Zpa)||(a=c.Zpa.ToOOModel(),0===a.colorFillType?d.solidFill=a:1===a.colorFillType?d.pattFill=a:2===a.colorFillType?d.gradFill=a:3===a.colorFillType?d.blipFill=a:5===a.colorFillType&&(d.noFill=!0),delete a.colorFillType),g(c.Cna)?delete d.ln:d.ln=c.Cna.ToOOModel(),!g(c.$pa)&&c.$pa.IsDirtyIncludingParent()&&(b=c.$pa.ToOOModel(),d.scene3d=b.Scene3D,d.sp3d=b.Shape3D),d.effectLst=c.ToCT_EffectList(),d},c.Clone=function(){var a=this,c=new b(a.Spa);return g(a.Zpa)||(c.Zpa=a.Zpa.Clone()),g(a.Cna)?c.Cna=t:c.Cna=a.Cna.Clone(),g(a.$pa)||(c.$pa=a.$pa.Clone()),c.rpa=a.rpa,c.Upa=a.Upa,c},c.IsDirtyIncludingParent=function(b){var c=this;return b===u&&(b=!1),!(g(c.Zpa)||!c.Zpa.IsDirtyIncludingParent())||(!(g(c.Cna)||!c.Cna.IsDirtyIncludingParent())||(!(g(c.$pa)||!c.$pa.IsDirtyIncludingParent())||a.prototype.IsDirtyIncludingParent.call(c,b)))},c.OnParentChanged=function(a){var b=this;b.Upa=a,g(b.Upa)?(g(b.Zpa)||(b.Zpa.ParentStateful=t),g(b.Cna)||(b.Cna.ParentStateful=t),g(b.$pa)||(b.$pa.ParentStateful=t),g(b._pa)||(b._pa.ParentStateful=t),g(b.aqa)||(b.aqa.ParentStateful=t),g(b.bqa)||(b.bqa.ParentStateful=t),g(b.cqa)||(b.cqa.ParentStateful=t)):(g(b.Zpa)||(b.Zpa.ParentStateful=b.Upa.Fill),g(b.Cna)||(b.Cna.ParentStateful=b.Upa.Line),g(b.$pa)||(b.$pa.ParentStateful=b.Upa.ThreeD),g(b._pa)||(b._pa.ParentStateful=b.Upa.GlowFormatInternal),g(b.aqa)||(b.aqa.ParentStateful=b.Upa.ShadowFormatInternal),g(b.bqa)||(b.bqa.ParentStateful=b.Upa.SoftEdgeFormatInternal),g(b.cqa)||(b.cqa.ParentStateful=b.Upa.ReflectionFormatInternal))},c.FromCT_EffectList=function(a){var b=this;return g(a)?(b.SetShadowField(t),b.SetGlowField(t),b.SetSoftEdgeField(t),void b.SetReflectionField(t)):(g(a.innerShdw)?g(a.outerShdw)?g(a.prstShdw)?b.SetShadowField(t):b.ShadowFormatInternal.FromOOModel(a.prstShdw):b.ShadowFormatInternal.FromOOModel(a.outerShdw):b.ShadowFormatInternal.FromOOModel(a.innerShdw),g(a.glow)?b.SetGlowField(t):b.GlowFormatInternal.FromOOModel(a.glow),g(a.softEdge)?b.SetSoftEdgeField(t):b.SoftEdgeFormatInternal.FromOOModel(a.softEdge),void(g(a.reflection)?b.SetReflectionField(t):b.ReflectionFormatInternal.FromOOModel(a.reflection)))},c.ToCT_EffectList=function(){var a,b,c=this,d=g(c.Tpa)||g(c.Tpa.effectLst)?{}:c.Tpa.effectLst;return delete d.outerShdw,delete d.innerShdw,delete d.prstShdw,g(c.aqa)||(a=c.aqa.ToOOModel(),a&&(b=a.shadowEffectType,0===b?d.outerShdw=a:1===b?d.innerShdw=a:2===b&&(d.prstShdw=a))),delete d.glow,g(c._pa)||(d.glow=c._pa.ToOOModel()),delete d.softEdge,g(c.bqa)||(d.softEdge=c.bqa.ToOOModel()),delete d.reflection,g(c.cqa)||(d.reflection=c.cqa.ToOOModel()),c.IsEffectListDirty(d)?d:{}},h(c,"FillInternal",{get:function(){var a=this;return g(a.Zpa)&&(a.Zpa=new i(a.Spa,g(a.Upa)?t:a.Upa.FillInternal,a.Vpa,a.Spa.Parent)),a.Zpa}}),h(c,"LineInternal",{get:function(){var a=this;return g(a.Cna)&&(a.Cna=new j(a.Spa,g(a.Upa)?t:a.Upa.LineInternal,a.Xpa)),a.Cna}}),h(c,"ThreedInternal",{get:function(){var a=this;return g(a.$pa)&&(a.$pa=new l(a.Spa,g(a.Upa)?t:a.Upa.ThreedInternal)),a.$pa}}),h(c,"ShadowFormatInternal",{get:function(){var a=this;return g(a.aqa)&&(a.aqa=new n(a.Spa,g(a.Upa)?t:a.Upa.ShadowFormatInternal)),a.aqa}}),h(c,"GlowFormatInternal",{get:function(){var a=this;return g(a._pa)&&(a._pa=new o(a.Spa,g(a.Upa)?t:a.Upa.GlowFormatInternal)),a._pa}}),h(c,"SoftEdgeFormatInternal",{get:function(){return g(this.bqa)&&(this.bqa=new p),this.bqa}}),h(c,"ReflectionFormatInternal",{get:function(){var a=this;return g(a.cqa)&&(a.cqa=new q(a.Spa,g(a.Upa)?t:a.Upa.ReflectionFormatInternal)),a.cqa}}),c.AdjustStateful=function(a,b){g(a)||(a.SetParentForChildren(b),g(b)||(b.ParentStateful=a.ParentStateful),a.ParentStateful=t)},c.SetFillField=function(a){this.AdjustStateful(this.Zpa,a),this.Zpa=a},c.SetLineField=function(a){this.AdjustStateful(this.Cna,a),this.Cna=a},c.SetThreeDField=function(a){this.AdjustStateful(this.$pa,a),this.$pa=a},c.SetShadowField=function(a){this.AdjustStateful(this.aqa,a),this.aqa=a},c.SetGlowField=function(a){this.AdjustStateful(this._pa,a),this._pa=a},c.SetReflectionField=function(a){this.AdjustStateful(this.cqa,a),this.cqa=a},c.SetSoftEdgeField=function(a){this.AdjustStateful(this.bqa,a),this.bqa=a},c.IsEffectListDirty=function(a){return!(g(a.blur)&&g(a.fillOverlay)&&g(a.glow)&&g(a.innerShdw)&&g(a.outerShdw)&&g(a.prstShdw)&&g(a.reflection)&&g(a.softEdge))},b}(s),d.ChartFormat=b,a.exports=d}()},function(a,b,c){!function(){"use strict";var b=c(6),d=b.j.G,e=c(3),f=c(5).StatefullBase,g=c(7),h=g.ShapeConstants,i=h.PositiveFixedPercentageConvert,j=h.PositiveFixedAngleConvert,k=h.PositionConver,l=g.ShapeUtility,m=g.ChartUtility,n=m.defineProperty,o=g.UnitHelper,p=o.isNullOrUndefined,q=c(12).ColorFormat,r=c(15).GradientStops,s=null,t=void 0,u=Math.floor,v=function(a){d(b,a);function b(b,c,d,f){a.call(this,c);var g=this;return g.dqa=!0,g.eqa=2,g.wE=0,g.fqa=!0,g.bz=!0,g.gqa=s,g.xc=b,g.Nc=0,g.hqa=c,g.iqa=d,g.xo=f,g.jqa=new e.PictureFormat(1,c&&c.PictureFormat),g.jqa.Container=f,g.kqa=1,g.lqa=1,g.mqa=new r(g.xc),g}var c=b.prototype;return n(c,"Parent",{get:function(){return this.hqa}}),n(c,"PictureFormat",{get:function(){return this.jqa},set:function(a){var b,c=this;p(c.jqa)||c.jqa.SetParentForChildren(a),b=c.jqa,c.jqa=a,p(b)||(c.jqa.ParentStateful=b.ParentStateful)}}),n(c,"PatternColor",{get:function(){return this.PatternColorInternal}}),n(c,"Color",{get:function(){return this.ColorInternal}}),n(c,"GradientAngle",{get:function(){var a=this;if(!a.IsDirty(2097152)&&!p(a.hqa))return a.hqa.GradientAngle;if(6===a.GradientStyle||4===a.GradientStyle)throw Error();return a.nqa},set:function(a){this.nqa=a,this.Dirty(2097152)}}),n(c,"GradientColorType",{get:function(){return this.GetGradientColorType()}}),c.GetGradientColorType=function(){var a,b,c,d,e=[];for(a=0,b=this.mqa.GradientStopList;a1)throw Error("The specified value is out of range");var d=this;d.InitGradientInfo(a,b,0),d.pqa(c),l.InitGradientStops(d.xc,d,1)},c.TwoColorGradient=function(a,b){this.InitGradientInfo(a,b,0),l.InitGradientStops(this.xc,this,2)},c.PresetGradient=function(a,b,c){this.InitGradientInfo(a,b,c),l.InitGradientStops(this.xc,this,3)},c.Patterned=function(a){this.SetPatternColor(),this.vqa(1),this.uqa(a)},c.SetPatternColor=function(){var a=this;a.Color.ObjectThemeColor=0,a.PatternColor.ObjectThemeColor=4,a.Color.ClearModel(),a.PatternColor.ClearModel()},c.Solid=function(){this.vqa(0),p(this.tE)||this.tE.ClearModel()},n(c,"ColorInternal",{get:function(){var a=this;return p(a.tE)&&(a.tE=new q(a.xc,p(a.hqa)?s:a.hqa.Color),a.tE.AutoColorFormat=a.iqa),a.tE}}),n(c,"PatternColorInternal",{get:function(){var a=this;return p(a.Bqa)&&(a.Bqa=new q(a.xc,p(a.hqa)?s:a.hqa.PatternColor)),a.Bqa}}),n(c,"PresetTexture",{get:function(){var a=this;return a.IsDirty(16)||p(a.hqa)?a.Cqa:a.hqa.PresetTexture},set:function(a){this.Cqa=a,this.Dirty(16)}}),c.ClearColor=function(){this.tE=s},c.GetState=function(b,c){var d=this;return c===t&&(c=!1),131072!==b||p(d.tE)?262144!==b||p(d.Bqa)?a.prototype.GetState.call(d,b,c):d.Bqa.IsDirtyIncludingParent(c):d.tE.IsDirtyIncludingParent(c)},c.IsDirtyIncludingParent=function(b){var c=this;return b===t&&(b=!1),!(p(c.Bqa)||!c.Bqa.IsDirtyIncludingParent())||(!(p(c.tE)||!c.tE.IsDirtyIncludingParent())||(!p(c.mqa)&&c.mqa.Count>0||(!(p(c.jqa)||!c.jqa.IsDirtyIncludingParent())||a.prototype.IsDirtyIncludingParent.call(c,b))))},c.OnParentChanged=function(a){var b=this;b.hqa=a,p(b.hqa)?(p(b.tE)||(b.tE.ParentStateful=s),p(b.Bqa)||(b.Bqa.ParentStateful=s)):(p(b.tE)||(b.tE.ParentStateful=b.hqa.Color),p(b.Bqa)||(b.Bqa.ParentStateful=b.hqa.PatternColor))},c.FromOOModel=function(a,b){if(p(b))throw Error("colorFillType not provided!");var c=this;c.gqa=a,0===b?(c.ColorInternal.FromOOModel(c.gqa),c.Nc=0,c.SetState(32768,!0)):1===b?(c.FromCT_PatternFillProperties(a),c.Nc=1,c.SetState(32768,!0)):2===b?(c.FromCT_GradientFillProperties(a),c.Nc=2,c.SetState(32768,!0)):3===b?(c.jqa.FromOOModel(a),c.Nc=5,c.SetState(32768,!0)):4===b?(c.Nc=6,c.SetState(32768,!0)):5===b&&(c.Nc=0,c.SetState(32768,!0))},c.ToOOModel=function(){var a;if(this.Visible)switch(this.Type){case 0:a=this.ToCT_SolidColorFillProperties();break;case 1:a=this.ToCT_PatternFillProperties();break;case 2:a=this.ToCT_GradientFillProperties();break;case 3:a=this.ToCT_TileFillProperties();break;case 4:break;case 5:a=this.ToCT_PictureFillProperties();break;case 6:a={colorFillType:4}}else a={colorFillType:5};return a},c.FromCT_PatternFillProperties=function(a){this.uqa(a.prst),this.ColorInternal.FromOOModel(a.bgClr),this.PatternColorInternal.FromOOModel(a.fgClr)},c.ToCT_PatternFillProperties=function(){var a,b=this;return 4===b.xc.DrawingType?s:(a={colorFillType:1},a.prst=b.Pattern,0!==b.PatternColorInternal.ColorType&&(a.fgClr=b.PatternColorInternal.Color_ToOOModel()),0!==b.Color.ColorType&&(a.bgClr=b.Color.Color_ToOOModel()),a)},c.FromCT_GradientFillProperties=function(a){var b=this;b.Fpa(new r(b.xc)),b.mqa.FromOOModel(a.gsLst),b.RotateWithObject=a.rotWithShape,p(a.path)?p(a.lin)||(b.FromCT_LinearShadeProperties(a.lin),b.FromTitleCT_RelativeRect(a.tileRect)):b.FromCT_PathShadeProperties(a.path)},c.ToCT_GradientFillProperties=function(){var a=this,b={colorFillType:2};return b.rotWithShape=a.RotateWithObject,!p(a.GradientStops)&&a.GradientStops.Count>0&&(b.gsLst=a.GradientStops.ToOOModel()),6===a.GradientStyle||4===a.GradientStyle?b.path=a.ToCT_PathShadeProperties():b.lin=a.ToCT_LinearShadeProperties(),b.tileRect=a.ToTitleCT_RelativeRect(),b},c.ToCT_PictureFillProperties=function(){return 4===this.xc.DrawingType?s:this.jqa.ToOOModel()},c.FromTitleCT_RelativeRect=function(a){var b=this;p(a)||(a.l===-i&&a.t===-i?b.tqa(1):a.t===-i&&a.r===-i?b.tqa(2):a.l===-i&&a.b===-i?b.tqa(3):a.r===-i&&a.b===-i&&b.tqa(4))},c.ToTitleCT_RelativeRect=function(){var a={l:0,r:0,t:0,b:0},b=this.GradientVariant;return 4===this.GradientStyle&&(1===b?(a.l=-i,a.t=-i):2===b?(a.t=-i,a.r=-i):3===b?(a.l=-i,a.b=-i):4===b&&(a.r=-i,a.b=-i)),a},c.FromCT_LinearShadeProperties=function(a){this.GradientAngle=a.ang/j,this.dqa=a.scaled},c.ToCT_LinearShadeProperties=function(){return{ang:u(this.GradientAngle*j),scaled:this.dqa}},c.FromCT_PathShadeProperties=function(a){p(a)||(this.eqa=a.path,this.FromCT_RelativeRect(a.fillToRect))},c.ToCT_PathShadeProperties=function(){return{path:this.eqa,fillToRect:this.ToCT_RelativeRect()}},c.FromCT_RelativeRect=function(a){var b,c;p(a)||(b=.5*i,c=this,a.l===b&&a.t===b&&a.r===b&&a.b===b?c.rqa(6):a.r===i&&a.b===i?(c.rqa(4),c.tqa(1)):a.l===i&&a.b===i?(c.rqa(4),c.tqa(2)):a.r===i&&a.t===i?(c.rqa(4),c.tqa(3)):a.l===i&&a.t===i&&(c.rqa(4), c.tqa(4)))},c.ToCT_RelativeRect=function(){var a,b={l:0,r:0,t:0,b:0},c=.5*i;return 6===this.GradientStyle?(b.l=c,b.t=c,b.r=c,b.b=c):4===this.GradientStyle&&(a=this.GradientVariant,1===a?(b.r=i,b.b=i):2===a?(b.l=i,b.b=i):3===a?(b.t=i,b.r=i):4===a&&(b.l=i,b.t=i)),b},c.ToCT_SolidColorFillProperties=function(){return this.ColorInternal.ToOOModel()},c.ToCT_TileFillProperties=function(){var a=this.jqa.ToOOModel();return a.tile=this.ToCT_TileInfoProperties(),a},c.ToCT_TileInfoProperties=function(){var a=this;return{algn:a.TextureAlignment,tx:a.TextureOffsetX,ty:a.TextureOffsetY,sx:u(a.TextureHorizontalScale*k),sy:u(a.TextureVerticalScale*k)}},c.Clone=function(){var a=this,c=new b(a.xc,a.hqa,a.iqa,a.xo);return p(a.Bqa)||(c.Bqa=a.Bqa.Clone()),p(a.tE)||(c.tE=a.tE.Clone()),c.oqa=a.oqa,c.dqa=a.dqa,c.mqa=a.mqa,c.sqa=a.sqa,c.wE=a.wE,c.wqa=a.wqa,c.Cqa=a.Cqa,c.Dqa=a.Dqa,c.Eqa=a.Eqa,c.Nc=a.Nc,c.nqa=a.nqa,c.fqa=a.fqa,c.yqa=a.yqa,c.kqa=a.kqa,c.zqa=a.zqa,c.Aqa=a.Aqa,c.Fqa=a.Fqa,c.lqa=a.lqa,c.Gqa=a.Gqa,c.bz=a.bz,c.rpa=a.rpa,c.hqa=a.hqa,c},b}(f);e.FillFormat=v,a.exports=e}()},function(a,b,c){!function(){"use strict";var b,d=c(3),e=c(6).pc,f=c(8),g=f.GC$,h=g.inherit,i=c(7),j=i.ChartUtility,k=j.defineProperty,l=i.UnitHelper.isNullOrUndefined,m=i.ShapeConstants,n=m.DefaultTransparent,o=m.PositionConver,p=c(13).ColorData,q=c(14).ARGBColor,r=c(5).StatefullBase,s=null,t=Math.abs,u=Math.floor;function v(a,b){return a.getColor(b)!==b}b=function(a){h(b,a);function b(b,c){var d,e;return void 0===c&&(c=s),d=a.call(this,c)||this,d.Hqa=-4142,d.Iqa=s,d.Yba=0,d.Jqa=0,d.Gqa=n,d.xc=b,d.hqa=c,e=d.xc.DrawingType,0===e?d.Xba=3:1===e?d.Xba=1:2===e&&(d.Xba=0),d}var c=b.prototype;k(c,"Brightness",{get:function(){return this.GetState(1)||l(this.hqa)?this.Jqa:this.hqa.Brightness},set:function(a){if(a<-1||a>1)throw Error();this.Jqa=a,this.Dirty(1)}}),k(c,"ObjectThemeColor",{get:function(){return this.GetState(2)||l(this.hqa)?this.Hqa:this.hqa.ObjectThemeColor},set:function(a){var b=this;b.Hqa=a,b.Dirty(2),b.ColorType=3,b.Iqa=s,b.UnDirty(4),b.Jqa=0,b.Dirty(1)}}),k(c,"RGB",{get:function(){var a=this;return a.HasOwnColor()||l(a.hqa)?a.xc.Kqa(a.GetColorData()):a.hqa.RGB},set:function(a){var b=this;b.Iqa=a,b.Transparency=1-a.A/255,b.Dirty(4),b.ColorType=2,b.Hqa=-4142,b.Dirty(2),b.Jqa=0,b.Yba=0,b.Dirty(1),b.Dirty(8)}}),k(c,"TintAndShade",{get:function(){var a=this;return a.GetState(8)||l(a.hqa)?a.Yba:a.hqa.TintAndShade},set:function(a){this.Yba=a,this.Dirty(8)}}),k(c,"Transparency",{get:function(){var a=this;return a.GetState(32)||l(a.hqa)?a.Gqa:a.hqa.Transparency},set:function(a){this.Gqa=a,this.Dirty(32)}}),k(c,"ColorType",{get:function(){var a=this;return a.GetState(16)||l(a.hqa)?a.Xba:a.hqa.ColorType},set:function(a){this.Xba=a,this.Dirty(16)}}),c.setColor=function(a,b){var c,d,f=this;a&&v(a.currentTheme(),b)?(c=j.fromThemeColorString(b),c&&(f.ObjectThemeColor=c.index,void 0!==c.tint&&(f.TintAndShade=c.tint))):(d=e.ec(b),f.RGB=q.FromArgbs(d.a,d.r,d.g,d.b))},c.GetColorData=function(){var a,b,c=this,d=new p;if(d.ColorType=2,a=c.Xba,0===a)d.ColorType=0;else if(1===a){if(d.ColorType=1,b=c.GetAutoColorFormat(),!l(b))return b.GetColorData()}else 2===a?l(c.Iqa)||(d.ColorType=2,d.Value=c.Iqa.ToArgb()):3===a&&(d.ColorType=4,d.Value=c.Hqa,d.Tint=c.Yba||c.Jqa);return d},c.HasOwnColor=function(){return this.GetState(2)||this.GetState(4)||this.GetAutoColorFormat()!==s},c.GetAutoColorFormat=function(){if(1===this.ColorType&&!l(this.AutoColorFormat)){var a=this.AutoColorFormat();if(!l(a)&&1!==a.ColorType)return a}return s},c.OnParentChanged=function(a){this.hqa=a},c.ClearModel=function(){var a,b,c;for(this.Lqa=s,a=0,b=this.Children;a0&&b&&b.length>0?b[0]/o:a&&a.length>0?a[0]/o-1:0},c.CalcLumModeOff=function(a,b){var c=this;c.Brightness>0?(a.push(u((1-c.Brightness)*o)),b.push(u(c.Brightness*o))):c.Brightness<0&&a.push(u((1+c.Brightness)*o))},c.FromCT_ColorProperties=function(a){var b,c,d,e,f,g,h=this;h.Lqa=a,l(a)?h.ColorType=0:l(a.schemeClr)?l(a.srgbClr)||l(a.srgbClr.val)||3!==a.srgbClr.val.length?l(a.scrgbClr)?l(a.sysClr)?l(a.prstClr)||(g=a.prstClr,h.RGB=q.FromArgb(j.GetPresetColorRGB(g.val)),h.Brightness=h.CalcBrightness(g.lumMod,g.lumOff),!l(g.alpha)&&g.alpha.length>0&&(h.Transparency=g.alpha[0]/o)):(e=a.sysClr,f=e.val,l(f)?l(e.lastClr)||3!==e.lastClr.length||(h.RGB=q.FromRgb(e.lastClr[0],e.lastClr[1],e.lastClr[2])):h.RGB=q.FromKnownColor(f),h.Brightness=h.CalcBrightness(e.lumMod,e.lumOff),!l(e.alpha)&&e.alpha.length>0&&h.FromTransparency(e.alpha[0])):(d=a.scrgbClr,h.RGB=q.FromRgb(d.r,d.g,d.b)):(c=a.srgbClr,h.RGB=q.FromRgb(c.val[0],c.val[1],c.val[2]),h.Brightness=h.CalcBrightness(c.lumMod,c.lumOff),!l(c.alpha)&&c.alpha.length>0&&h.FromTransparency(c.alpha[0]),!l(c.tint)&&c.tint.length>0&&h.FromTint(c.tint[0])):(b=a.schemeClr,h.ObjectThemeColor=b.val,h.Brightness=h.CalcBrightness(b.lumMod,b.lumOff),!l(b.tint)&&b.tint.length>0&&h.FromTint(b.tint[0]),!l(b.alpha)&&b.alpha.length>0&&h.FromTransparency(b.alpha[0]))};function d(a){delete a.hslClr,delete a.prstClr,delete a.scrgbClr,delete a.srgbClr,delete a.sysClr}function f(a,b,c){b.length>0&&(a.lumMod=b),c.length>0&&(a.lumOff=c)}return c.ToCT_ColorProperties=function(a){var b,c,e,g,h=this,i=h.Lqa||a,k=[],m=[],o=i.schemeClr;return o&&j.removeEmptyArrayProperties(o),3===h.ColorType?(d(i),o||(o=i.schemeClr={}),o.val=h.ObjectThemeColor,h.CalcLumModeOff(k,m),f(o,k,m),h.TintAndShade>0?o.tint=[h.ToTint()]:h.TintAndShade<0&&(o.shade=[h.ToShade()]),h.Transparency!==n&&(o.alpha=[h.ToTransparency()])):2===h.ColorType&&(d(i),delete i.schemeClr,b=s,h.Iqa&&h.Iqa.IsKnownColor&&(b=h.Iqa.ToKnownColor()),l(b)?(e=i.srgbClr={},e.val=[h.RGB.R,h.RGB.G,h.RGB.B],h.CalcLumModeOff(k,m),f(e,k,m),h.Transparency!==n&&(e.alpha=[h.ToTransparency()]),h.TintAndShade>0?e.tint=[h.ToTint()]:h.TintAndShade<0&&(e.shade=[h.ToShade()])):(c=i.sysClr={},c.val=b,c.lastClr=[h.RGB.R,h.RGB.G,h.RGB.B],h.CalcLumModeOff(k,m),f(c,k,m),h.Transparency!==n&&(c.alpha=[h.ToTransparency()]))),g=a&&a.colorFillType,l(g)||(i.colorFillType=g),i},c.FromTint=function(a){this.TintAndShade=1-a/o},c.FromShade=function(a){this.TintAndShade=a/o-1},c.ToTint=function(){return u(t((1-this.TintAndShade)*o))},c.ToShade=function(){return u(t((1+this.TintAndShade)*o))},c.FromTransparency=function(a){this.Transparency=1-a/o},c.ToTransparency=function(){return u((1-this.Transparency)*o)},c.Clone=function(){var a=this,c=new b(a.xc);return c.Jqa=a.Jqa,c.Xba=a.Xba,c.xc=a.xc,c.Iqa=a.Iqa,c.Hqa=a.Hqa,c.Yba=a.Yba,c.AutoColorFormat=a.AutoColorFormat,c},c.FromOOModel=function(a){this.FromCT_ColorProperties(a)},c.ToOOModel=function(){var a=this.ColorType;return 1===a?{}:0===a?{colorFillType:5}:this.ToCT_ColorProperties({colorFillType:0})},c.Color_FromOOModel=function(a){this.FromCT_ColorProperties(a)},c.Color_ToOOModel=function(){return this.ToCT_ColorProperties({})},c.GradientStop_FromOOModel=function(a){this.FromCT_ColorProperties(a)},c.GradientStop_ToOOModel=function(){return this.ToCT_ColorProperties({})},c.ColorData_FromOOModel=function(a){2===a.ColorType||3===a.ColorType?this.RGB=q.FromArgb(a.Value):4===a.ColorType&&(this.ObjectThemeColor=a.Value,this.TintAndShade=a.Tint)},c.ColorData_ToOOModel=function(){var a=this,b=new p;return 2===a.ColorType?(b.Value=a.RGB.Value,b.ColorType=2):3===a.ColorType&&(b.Value=a.ObjectThemeColor,b.Tint=a.TintAndShade,b.ColorType=4),b},b}(r),d.ColorFormat=b,a.exports=d}()},function(a,b,c){!function(){"use strict";var b=c(3),d=function(){function a(){}a.ConvertHexStringToInt=function(a){return parseInt(a,16)};var b=a.prototype;return b.Equals=function(a){return this.ColorType===a.ColorType&&this.Value===a.Value&&this.Tint===a.Tint},b.Clone=function(){return this},b.Compose=function(a,b){void 0===b&&(b=!0),0!==a.Flag&&(b?this.ConflictCompose(a):this.NonConflictCompose(a))},b.ConflictCompose=function(a){var b=this;1===(1&a.Flag)&&b.ColorType!==a.ColorType&&(b.ColorType=a.ColorType,b.Value=0,b.Tint=0),2===(2&a.Flag)&&(b.Value=a.Value),4===(4&a.Flag)&&(b.Tint=a.Tint),b.Flag|=a.Flag},b.NonConflictCompose=function(a){var b=this;1!==(1&b.Flag)&&1===(1&a.Flag)&&(b.ColorType=a.ColorType,b.Value=a.Value,b.Tint=a.Tint,b.Flag=a.Flag)},b.RemoveDuplicateStyle=function(a){return this.Compare(a,!1)},b.RemoveDifferentStyle=function(a){return this.Compare(a,!0)},b.Compare=function(a,b){var c,d,e,f=this,g=!1;return 1===(1&f.Flag)&&(c=1!==(1&a.Flag)||f.ColorType!==a.ColorType,b?c?(f.Flag=0,g=!0):(2===(2&f.Flag)&&(d=2!==(2&a.Flag)||f.Value!==a.Value,d&&(f.Flag=0,g=!0)),4===(4&f.Flag)&&(e=4!==(4&a.Flag)||f.Tint!==a.Tint,e&&(f.Flag=0,g=!0))):c||(2===(2&f.Flag)&&(d=2!==(2&a.Flag)||f.Value!==a.Value,d||(f.Flag&=-3,g=!0)),4===(4&f.Flag)&&(e=4!==(4&a.Flag)||f.Tint!==a.Tint,e||(f.Flag&=-5,g=!0)),1===f.Flag&&(f.Flag=0,g=!0))),g},b.UpdateDefaultValueFlag=function(){0===this.ColorType?this.Flag=0:this.Flag=7},b.UpdateFlagFromBottom=function(){},b.ClearFlag=function(){this.Flag=0},b.SetFullFlag=function(){this.Flag=7},b.IsFullFlag=function(){return 7===this.Flag},a}();b.ColorData=d,b.ColorType={None:0,Auto:1,RGB:2,Index:3,Theme:4},b.ColorDataFlag={None:0,ColorType:1,Value:2,Tint:4,All:7},a.exports=b}()},function(a,b,c){!function(){"use strict";var b,d,e=c(3),f=c(6).pc,g=c(7),h=g.ChartUtility.defineProperty,i=g.UnitHelper.isNullOrUndefined,j=null,k=function(){var a,b;function c(a,b,c,d){var e=this;e.value=a,e.state=b,e.name=c,e.knownColor=d}return a=c.prototype,h(a,"Transparent",{get:function(){return c.FromKnownColor(27)}}),c.FromKnownColor=function(a){return new c(0,c.StateKnownColorValid,j,a)},c.FromIndexedColor=function(a,b){var d=c.IndexedColors;return d||(d=c.IndexedColors=[4278190080,4294967295,4294901760,4278255360,4278190335,4294967040,4294902015,4278255615,4278190080,4294967295,4294901760,4278255360,4278190335,4294967040,4294902015,4278255615,4286578688,4278222848,4278190208,4286611456,4286578816,4278222976,4290822336,4286611584,4288256511,4288230246,4294967244,4291624959,4284874854,4294934656,4278216396,4291611903,4278190208,4294902015,4294967040,4278255615,4286578816,4286578688,4278222976,4278190335,4278242559,4291624959,4291624908,4294967193,4288269567,4294941132,4291598847,4294954137,4281558783,4281584844,4288269312,4294953984,4294940928,4294927872,4284901017,4288059030,4278203238,4281571686,4278203136,4281545472,4288230144,4288230246,4281545625,4281545523,c.FromKnownColor(26).ToArgb(),c.FromKnownColor(24).ToArgb()]),c.FromArgb(d[a]).GetTintColor(b)},h(a,"R",{get:function(){return this.Value>>16&255}}),h(a,"G",{get:function(){return this.Value>>8&255}}),h(a,"B",{get:function(){return 255&this.Value}}),h(a,"A",{get:function(){return this.Value>>24&255}}),h(a,"IsKnownColor",{get:function(){return 0!==(this.state&c.StateKnownColorValid)}}),h(a,"IsEmpty",{get:function(){return 0===this.state}}),h(a,"IsNamedColor",{get:function(){return 0!==(this.state&c.StateNameValid)||this.IsKnownColor}}),h(a,"IsSystemColor",{get:function(){return!!this.IsKnownColor&&(!(this.knownColor>26)||this.knownColor>167)}}),h(a,"Name",{get:function(){var a,b=this;return 0!==(b.state&c.StateNameValid)?b.name:b.IsKnownColor?(a=e.KnownColorTable.KnownColorToName(b.knownColor),i(a)?"":a):b.value.toString(16)}}),h(a,"Value",{get:function(){var a=this;return 0!==(a.state&c.StateValueMask)?a.value:a.IsKnownColor?e.KnownColorTable.KnownColorToArgb(a.knownColor):c.NotDefinedValue}}),c.FromArgb=function(a){return new c(a,c.StateARGBValueValid,j,0)},c.FromArgbs=function(a,b,d,e){return c.CheckByte(a,"alpha"),c.CheckByte(b,"red"),c.CheckByte(d,"green"),c.CheckByte(e,"blue"),new c(c.MakeArgb(a,b,d,e),c.StateARGBValueValid,j,0)},c.FromBaseColor=function(a,b){return c.CheckByte(a,"alpha"),new c(c.MakeArgb(a,b.R,b.G,b.B),c.StateARGBValueValid,j,0)},c.FromRgb=function(a,b,d){return c.FromArgbs(255,a,b,d)},a.GetBrightness=function(){var a=this.R/255,b=this.G/255,c=this.B/255,d=a,e=a;return b>d&&(d=b),c>d&&(d=c),be&&(e=b),c>e&&(e=c),bf&&(f=c),d>f&&(f=d),c255)throw Error("InvalidEx2BoundArgument")},b=Math.pow(2,24),c.MakeArgb=function(a,c,d,e){return b*a+(c<<16|d<<8|e)},a.GetTintColor=function(a){var b,c=this;return 0===a?c:(b=f.jc({r:c.R,g:c.G,b:c.B},a),e.ARGBColor.FromArgbs(b.a,b.r,b.g,b.b))},c}();k.StateKnownColorValid=1,k.StateARGBValueValid=2,k.StateValueMask=2,k.StateNameValid=8,k.NotDefinedValue=0,e.ARGBColor=k,b=e.KnownColor={ActiveBorder:1,ActiveCaption:2,ActiveCaptionText:3,AliceBlue:28,AntiqueWhite:29,AppWorkspace:4,Aqua:30,Aquamarine:31,Azure:32,Beige:33,Bisque:34,Black:35,BlanchedAlmond:36,Blue:37,BlueViolet:38,Brown:39,BurlyWood:40,ButtonFace:168,ButtonHighlight:169,ButtonShadow:170,CadetBlue:41,Chartreuse:42,Chocolate:43,Control:5,ControlDark:6,ControlDarkDark:7,ControlLight:8,ControlLightLight:9,ControlText:10,Coral:44,CornflowerBlue:45,Cornsilk:46,Crimson:47,Cyan:48,DarkBlue:49,DarkCyan:50,DarkGoldenrod:51,DarkGray:52,DarkGreen:53,DarkKhaki:54,DarkMagenta:55,DarkOliveGreen:56,DarkOrange:57,DarkOrchid:58,DarkRed:59,DarkSalmon:60,DarkSeaGreen:61,DarkSlateBlue:62,DarkSlateGray:63,DarkTurquoise:64,DarkViolet:65,DeepPink:66,DeepSkyBlue:67,Desktop:11,DimGray:68,DodgerBlue:69,Firebrick:70,FloralWhite:71,ForestGreen:72,Fuchsia:73,Gainsboro:74,GhostWhite:75,Gold:76,Goldenrod:77,GradientActiveCaption:171,GradientInactiveCaption:172,Gray:78,GrayText:12,Green:79,GreenYellow:80,Highlight:13,HighlightText:14,Honeydew:81,HotPink:82,HotTrack:15,InactiveBorder:16,InactiveCaption:17,InactiveCaptionText:18,IndianRed:83,Indigo:84,Info:19,InfoText:20,Ivory:85,Khaki:86,Lavender:87,LavenderBlush:88,LawnGreen:89,LemonChiffon:90,LightBlue:91,LightCoral:92,LightCyan:93,LightGoldenrodYellow:94,LightGray:95,LightGreen:96,LightPink:97,LightSalmon:98,LightSeaGreen:99,LightSkyBlue:100,LightSlateGray:101,LightSteelBlue:102,LightYellow:103,Lime:104,LimeGreen:105,Linen:106,Magenta:107,Maroon:108,MediumAquamarine:109,MediumBlue:110,MediumOrchid:111,MediumPurple:112,MediumSeaGreen:113,MediumSlateBlue:114,MediumSpringGreen:115,MediumTurquoise:116,MediumVioletRed:117,Menu:21,MenuBar:173,MenuHighlight:174,MenuText:22,MidnightBlue:118,MintCream:119,MistyRose:120,Moccasin:121,NavajoWhite:122,Navy:123,OldLace:124,Olive:125,OliveDrab:126,Orange:127,OrangeRed:128,Orchid:129,PaleGoldenrod:130,PaleGreen:131,PaleTurquoise:132,PaleVioletRed:133,PapayaWhip:134,PeachPuff:135,Peru:136,Pink:137,Plum:138,PowderBlue:139,Purple:140,Red:141,RosyBrown:142,RoyalBlue:143,SaddleBrown:144,Salmon:145,SandyBrown:146,ScrollBar:23,SeaGreen:147,SeaShell:148,Sienna:149,Silver:150,SkyBlue:151,SlateBlue:152,SlateGray:153,Snow:154,SpringGreen:155,SteelBlue:156,Tan:157,Teal:158,Thistle:159,Tomato:160,Transparent:27,Turquoise:161,Violet:162,Wheat:163,White:164,WhiteSmoke:165,Window:24,WindowFrame:25,WindowText:26,Yellow:166,YellowGreen:167},d=function(){function a(){}a.ArgbToKnownColor=function(b){var c,d,e;for(this.EnsureColorTable(),c=0;c=0?b.Weight=a.w:(b.Xqa=-1,b.UnDirty(16384)),l(a.cmpd)||(b.Style=a.cmpd),b.Round=!!a.round,l(a.prstDash)?b.UnDirty(32):b.DashStyle=a.prstDash},c.ToCT_LineProperties=function(){var a,b,c,d=this,e=d.Yqa;return d.IsDirtyIncludingParent()||l(e)?(a=e||{},delete a.gradFill,delete a.noFill,delete a.pattFill,delete a.solidFill,d.bz?l(d.Zpa)||(b=d.Zpa.ToOOModel(),0===b.colorFillType?a.solidFill=b:1===b.colorFillType?a.pattFill=b:2===b.colorFillType?a.gradFill=b:5===b.colorFillType&&(a.noFill=!0),delete b.colorFillType):a.noFill=!0,c=d.ToCT_HeadLineEndProperties(),c&&(a.headEnd=c),c=d.ToCT_TailLineEndProperties(),c&&(a.tailEnd=c),d.Weight>=0&&(a.w=d.Weight),d.GetState(2048,!0)&&(a.cmpd=d.Style),d.GetState(32,!0)&&(a.prstDash=d.DashStyle),d.Round&&(a.round=!0),a):e},c.FromCT_LineEndProperties=function(a){var b=this;b.Qqa=a.type,b.Rqa=a.w,b.Pqa=a.len,b.SetState(8,!0),b.SetState(16,!0),b.SetState(4,!0)},c.ToCT_HeadLineEndProperties=function(){var a={w:1,len:1},b=this,c=!1;return b.GetState(8,!0)&&(a.type=b.BeginArrowheadStyle,c=!0),b.GetState(16,!0)&&(a.w=b.BeginArrowheadWidth,c=!0),b.GetState(4,!0)&&(a.len=b.BeginArrowheadLength,c=!0),c?a:n},c.FromCT_TailLineEndProperties=function(a){if(!l(a)){var b=this;b.Uqa=a.type,b.Vqa=a.w,b.Tqa=a.len,b.SetState(128,!0),b.SetState(256,!0),b.SetState(64,!0)}},c.ToCT_TailLineEndProperties=function(){var a={w:1,len:1},b=!1,c=this;return c.GetState(128,!0)&&(a.type=c.EndArrowheadStyle,b=!0),c.GetState(256,!0)&&(a.w=c.EndArrowheadWidth,b=!0),c.GetState(64,!0)&&(a.len=c.EndArrowheadLength,b=!0),b?a:n},c.Clone=function(){var a=this,c=new b(a.xc);return c.Zpa=a.Zpa&&a.Zpa.Clone(),c.Pqa=a.Pqa,c.Qqa=a.Qqa,c.Rqa=a.Rqa,c.Sqa=a.Sqa,c.Tqa=a.Tqa,c.Uqa=a.Uqa,c.Vqa=a.Vqa,c.Zqa=a.Zqa,c.bz=a.bz,c.Xqa=a.Xqa,c.rpa=a.rpa,c.hqa=a.hqa,c},b}(g);f.LineFormat=o,a.exports=f}()},function(a,b,c){!function(){"use strict";var b,d,e=c(6),f=e.j,g=f.Ia,h=f.G,i=c(3),j=c(7),k=j.ChartUtility.defineProperty,l=c(5).StatefullBase,m=j.ShapeConstants.PositiveFixedAngleConvert,n=j.UnitHelper.isNullOrUndefined;i.ThreeDFormatStates={BevelBottomDepth:1,BevelBottomInset:2,BevelBottomType:4,BevelTopDepth:8,BevelTopInset:16,BevelTopType:32,ContourColor:64,ContourWidth:128,Depth:256,ExtrusionColor:512,ExtrusionColorType:1024,FieldOfView:2048,LightAngle:4096,Perspective:8192,PresetCamera:16384,PresetExtrusionDirection:32768,PresetLighting:65536,PresetLightingDirection:131072,PresetLightingSoftness:262144,PresetMaterial:524288,PresetThreeDFormat:1048576,ProjectText:2097152,RotationX:4194304,RotationY:8388608,RotationZ:16777216,Visible:33554432,Z:67108864,AutoScale:134217728,DepthPercent:268435456,HeightPercent:536870912,RightAngleAxes:1073741824},b=null,d=function(a){h(c,a);function c(c,d){a.call(this,d);var e=this;e.$qa=0,e._qa=0,e.ara=0,e.bra=45,e.bz=!0,e.cra=b,e.dra=!0,e.era=100,e.fra=100,e.gra=!0,e.xc=c,e.hra=30,e.hqa=d,e.ira(62)}var d=c.prototype;return k(d,"Perspective",{get:function(){var a=this;return a.Dirty(32768)||n(a.hqa)?a.hra:a.hqa.Perspective},set:function(a){var b=this;b.hra=a,b.Dirty(32768)}}),k(d,"PresetCamera",{get:function(){var a=this;return a.Dirty(16384)||n(a.hqa)?a.jra:a.hqa.PresetCamera}}),k(d,"RotationX",{get:function(){var a=this;return a.Dirty(4194304)||n(a.hqa)?a.Visible?a.kra:0:a.hqa.RotationX},set:function(a){var b=this;a!==b.kra&&(b.kra=a,b.Dirty(4194304),b.UpdatePresetCamera())}}),k(d,"RotationY",{get:function(){var a=this;return a.Dirty(8388608)||n(a.hqa)?a.Visible?a.lra:0:a.hqa.RotationY},set:function(a){var b=this;if(1===b.xc.DrawingType){if(a<-90&&a>=180)return}else if(a<0&&a>=360)return;b.lra=a,b.Dirty(8388608),b.UpdatePresetCamera()}}),k(d,"RotationZ",{get:function(){var a=this;return a.Dirty(16777216)||n(a.hqa)?a.Visible?a.mra:0:a.hqa.RotationZ},set:function(a){var b=this;a!==b.mra&&(b.mra=a,b.Dirty(16777216),b.UpdatePresetCamera())}}),k(d,"Visible",{get:function(){var a=this;return a.Dirty(33554432)||n(a.hqa)?a.bz:a.hqa.Visible},set:function(a){var b=this;b.bz=a,b.Dirty(33554432)}}),k(d,"Z",{get:function(){var a=this;return a.Dirty(67108864)||n(a.hqa)?a.Visible?a.nra:0:a.hqa.Z},set:function(a){var b=this;b.nra=a,b.Dirty(67108864),b.UpdatePresetCamera()}}),k(d,"Depth",{get:function(){var a=this;return a.Dirty(256)||n(a.hqa)?a.Visible?a.ora:0:a.hqa.Depth},set:function(a){var b=this;b.ora=a,b.Dirty(256),b.UpdatePresetCamera()}}),k(d,"DicCameraType",{get:function(){var a=this;return n(a.cra)&&a.InitDicCameraType(),a.cra}}),k(d,"_InternalVisible",{get:function(){return this.bz},set:function(a){this.bz=a}}),k(d,"_AutoScale",{get:function(){return this.dra},set:function(a){var b=this;b.dra=a,b.Dirty(134217728)}}),k(d,"_DepthPercent",{get:function(){return this.era},set:function(a){var b=this;a>=20&&a<=2e3&&(b.era=a,b.Dirty(268435456))}}),k(d,"_HeightPercent",{get:function(){return this.fra},set:function(a){var b=this;a>=5&&a<=500&&(b.fra=a,b.Dirty(536870912))}}),k(d,"_RightAngleAxes",{get:function(){return this.gra},set:function(a){var b=this;b.gra=a,b.Dirty(1073741824)}}),g(d,{ira:function(a){var b=this;b.jra=a,b.Dirty(16384)},InitDicCameraType:function(){var a=this.cra={};a[0]=[0,0,0],a[1]=[0,0,0],a[2]=[0,0,0],a[3]=[0,0,0],a[4]=[0,0,0],a[5]=[0,0,0],a[6]=[0,0,0],a[7]=[0,0,0],a[8]=[0,0,0],a[9]=[0,0,0],a[10]=[0,0,0],a[11]=[0,0,0],a[12]=[0,0,0],a[13]=[0,0,0],a[14]=[0,0,0],a[15]=[0,0,0],a[16]=[0,0,0],a[17]=[0,0,0],a[18]=[0,0,0],a[19]=[314.7191,324.6037,60.16242],a[20]=[45.28088,324.6037,299.8376],a[21]=[45.28088,35.39627,60.16242],a[22]=[314.7191,35.39627,299.8376],a[23]=[45,325,0],a[24]=[45,35,0],a[25]=[315,35,0],a[26]=[315,325,0],a[27]=[64,18,0],a[28]=[334,18,0],a[29]=[306.5457,301.2619,57.6425],a[30]=[26,18,0],a[31]=[296,18,0],a[32]=[53.45424,301.2619,302.3575],a[33]=[64,342,0],a[34]=[334,342,0],a[35]=[306.5457,58.73808,302.3575],a[36]=[26,342,0],a[37]=[296,342,0],a[38]=[53.45424,58.73808,57.64252],a[39]=[0,0,0],a[40]=[0,0,0],a[41]=[0,0,0],a[42]=[0,0,0],a[43]=[0,0,0],a[44]=[0,0,0],a[45]=[0,0,0],a[46]=[0,0,0],a[47]=[0,0,0],a[48]=[20,0,0],a[49]=[340,0,0],a[50]=[0,340,0],a[51]=[0,20,0],a[52]=[14.33758,39.30647,341.1238],a[53]=[345.6624,39.30647,18.87615],a[54]=[43.93887,10.39642,356.4465],a[55]=[316.0611,10.39642,3.553517],a[56]=[14.29302,348.9837,2.626817],a[57]=[345.7069,348.9837,357.3732],a[58]=[34.46068,8.12245,357.0914],a[59]=[325.5393,8.12245,2.9086],a[60]=[0,309.5601,0],a[61]=[0,324.844,0]},SetPresetCamera:function(a){var b=this;b.jra=a,b.Dirty(16384)},UpdatePresetCamera:function(){var a=this;62===a.jra&&a.SetPresetCamera(18)},IncrementRotationX:function(a){this.RotationX+=a; },IncrementRotationY:function(a){this.RotationY+=a},IncrementRotationZ:function(a){this.RotationZ+=a},ResetRotation:function(){var a=this;a.RotationX=0,a.RotationY=0,a.RotationZ=0},Clone:function(){var a=this,b=new c(a.xc);return b.pra=a.pra,b.qra=a.qra,b.$qa=a.$qa,b.rra=a.rra,b.sra=a.sra,b._qa=a._qa,n(a.tra)||(b.tra=a.tra.Clone()),b.ura=a.ura,b.ora=a.ora,n(a.vra)||(b.vra=a.vra.Clone()),b.ara=a.ara,b.bra=a.bra,b.wra=a.wra,b.hra=a.hra,b.jra=a.jra,b.xra=a.xra,b.yra=a.yra,b.zra=a.zra,b.Ara=a.Ara,b.Bra=a.Bra,b.Cra=a.Cra,b.Dra=a.Dra,b.kra=a.kra,b.lra=a.lra,b.mra=a.mra,b.bz=a.bz,b.nra=a.nra,b.rpa=a.rpa,b.hqa=a.hqa,b},IsDirtyIncludingParent:function(b){var c=this;return!(!c.tra||!c.tra.IsDirtyIncludingParent(b))||(!(!c.vra||!c.vra.IsDirtyIncludingParent(b))||a.prototype.IsDirtyIncludingParent.call(c,b))},OnParentChanged:function(a){var c=this;c.hqa=a,n(c.hqa)&&(c.tra&&(c.tra.ParentStateful=b),c.vra&&(c.vra.ParentStateful=b))},FromOOModel:function(a){var b=this;b.Lqa=a,b.FromCT_Scene3D(b.Lqa.Scene3D),b.FromCT_View3D(b.Lqa.View3D),b.FromCT_Shape3D(b.Lqa.Shape3D)},ToOOModel:function(){var a=this,b=a.Lqa||{};return b.View3D=a.ToCT_View3D(),62!==a.PresetCamera&&(b.Scene3D=a.ToCT_Scene3D()),(a.IsPropDirtyIncludingParent(256,!0)||a.IsPropDirtyIncludingParent(67108864,!0))&&(b.Shape3D=a.ToCT_Shape3D()),b},FromCT_View3D:function(a){var b=this;n(a)||(n(a.hPercent)||(b._HeightPercent=a.hPercent),n(a.depthPercent)||(b._DepthPercent=a.depthPercent),n(a.rotX)||(b.RotationY=a.rotX),n(a.rotY)||(b.RotationX=a.rotY),n(a.rAngAx)?b._RightAngleAxes=!1:b._RightAngleAxes=a.rAngAx,n(a.perspective)||(b.Perspective=a.perspective/2))},ToCT_View3D:function(){var a=this,b=a.Lqa&&a.Lqa.View3D||{};return!a._AutoScale&&a.IsDirty(536870912)&&(b.hPercent=a._HeightPercent),a.IsDirty(268435456)&&(b.depthPercent=a._DepthPercent),a.IsDirty(8388608)&&(b.rotX=a.RotationY),a.IsDirty(4194304)&&(b.rotY=a.RotationX),a.IsDirty(1073741824)&&(b.rAngAx=a._RightAngleAxes),!a._RightAngleAxes&&a.IsDirty(32768)&&(b.perspective=2*a.Perspective),b},FromCT_Scene3D:function(a){n(a)||this.FromCT_Camera(a.camera)},ToCT_Scene3D:function(){var a=this,c=a.Lqa,d=c&&c.Scene3D||{};return d.camera=a.ToCT_Camera(),!n(d.camera)&&n(d.lightRig)&&(d.lightRig=a.ToDefaultCT_LightRig()),n(d.camera)&&n(d.backdrop)&&n(d.lightRig)?b:d},GetActualCT_Scene3D:function(){var a=this;return n(a.Lqa)||n(a.Lqa.Scene3D)?n(a.hqa)?b:a.GetActualCT_Scene3D():a.Lqa.Scene3D},FromCT_Shape3D:function(a){var b=this;n(a)||(0!==a.extrusionH&&(b.Depth=a.extrusionH,b.Dirty(256)),0!==a.z&&(b.Z=a.z,b.Dirty(67108864)))},ToCT_Shape3D:function(){var a=this,b=a.Lqa,c=b&&b.Shape3D||{z:0,extrusionH:0,contourW:0,prstMaterial:7};return c.extrusionH=a.Depth,c.z=a.Z,c},ToDefaultCT_LightRig:function(){return{rig:12,dir:0}},FromCT_Camera:function(a){n(a)||(this.ira(a.prst),n(a.rot)||this.FromCameraCT_SphereCoords(a.rot))},ToCT_Camera:function(){var a,c,d=this;return 0===d.xc.DrawingType||4===d.xc.DrawingType?(a={zoom:1e5},a.prst=d.PresetCamera,a.rot=d.ToCameraCT_SphereCoords(),a):(c=d.Lqa,c&&c.Scene3D&&c.Scene3D.camera||b)},FromCameraCT_SphereCoords:function(a){var b=this;n(a)||(b.RotationX=a.lon/m,b.RotationY=a.lat/m,b.RotationZ=a.rev/m)},ToCameraCT_SphereCoords:function(){var a,c,d,e,f=this;return 0===f.RotationX&&0===f.RotationY&&0===f.RotationZ?b:(a={},c=f.RotationX,d=f.RotationY,e=f.RotationZ,a.lon=c*m,a.lat=d*m,a.rev=e*m,a)}}),c}(l),i.ThreeDFormat=d,a.exports=i}()},function(a,b,c){!function(){"use strict";var b,d,e,f=c(6),g=f.j,h=g.G,i=c(3),j=c(5).StatefullBase,k=c(7),l=k.ShapeConstants,m=k.ChartUtility,n=m.defineProperty,o=k.NumberExtension,p=k.UnitHelper,q=p.isNullOrUndefined,r=Math.floor,s=Math.sqrt,t=function(a){h(b,a);function b(b,c){a.call(this);var d=this;d.Ira=5,d.Jra=!1,d.Kra=l.DefaultOffset,d.Lra=l.DefaultOffset,d.Mra=!1,d.Oz=100,d.Gqa=0,d.bz=!1,d.presetShadowOffset=-6,d.xc=b,d.hqa=c}var c=b.prototype;return c.OnStyleChange=function(){var a=this;a.Ira=0,a.Kra=0,a.Lra=0,a.Oz=100,a.Gqa=0,a.UnDirty(256),0===a.Style?a.Mra=!1:1===a.Style&&(a.Mra=!0)},c.OnTypeChange=function(){var a=this;a.Ira=5,a.Kra=a.presetShadowOffset,a.Lra=a.presetShadowOffset,a.Oz=100,a.Gqa=.5,a.UnDirty(64)},c.GetDefaultColor=function(){var a=new i.ColorFormat(this.xc,this.hqa&&this.hqa.Nra);return a.ColorType=0,a},n(c,"ForeColor",{get:function(){var a=this;return q(a.Nra)&&(a.Nra=a.GetDefaultColor()),a.Nra}}),n(c,"Obscured",{get:function(){var a=this;return a.GetState(2)||q(a.hqa)?a.Jra:a.hqa.Obscured},set:function(a){this.Jra=a,this.SetState(2,!0)}}),n(c,"Blur",{get:function(){var a=this;return a.GetState(1)||q(a.hqa)?a.Ira:a.hqa.Blur},set:function(a){this.Ira=a,this.SetState(1,!0)}}),n(c,"OffsetX",{get:function(){var a=this;return a.GetState(4)||q(a.hqa)?a.Kra:a.hqa.OffsetX},set:function(a){this.Kra=a,this.SetState(4,!0)}}),n(c,"OffsetY",{get:function(){var a=this;return a.GetState(8)||q(a.hqa)?a.Lra:a.hqa.OffsetY},set:function(a){this.Lra=a,this.SetState(8,!0)}}),n(c,"RotateWithShape",{get:function(){var a=this;return a.GetState(16)||q(a.hqa)?a.Mra:a.hqa.RotateWithShape},set:function(a){var b=this;0===b.Style||b.GetState(256)||(b.Mra=a,b.SetState(16,!0))}}),n(c,"Size",{get:function(){var a=this;return a.GetState(32)||q(a.hqa)?a.Oz:a.hqa.Size},set:function(a){this.Oz=a,this.SetState(32,!0)}}),n(c,"Style",{get:function(){var a=this;return a.GetState(64)||q(a.hqa)?a.Wqa:a.hqa.Style},set:function(a){var b=this;b.Style!==a&&b.OnStyleChange(),b.Wqa=a,b.SetState(64,!0)}}),n(c,"Transparency",{get:function(){var a=this;return a.GetState(128)||q(a.hqa)?a.Gqa:a.hqa.Transparency},set:function(a){this.Gqa=a,this.SetState(128,!0)}}),n(c,"Type",{get:function(){var a=this;return a.GetState(256)||q(a.hqa)?a.Nc:a.hqa.Type},set:function(a){this.Nc=a,this.SetState(256,!0),this.OnTypeChange()}}),n(c,"Visible",{get:function(){var a=this;return a.GetState(512)||q(a.hqa)?a.bz:a.hqa.Visible},set:function(a){var b=this;b.bz=a,b.SetState(512,!0),a===!1||b.GetState(64)||(b.Wqa=1)}}),c.IncrementOffsetX=function(a){this.OffsetX+=a},c.IncrementOffsetY=function(a){this.OffsetY+=a},c.FromOOModel=function(a){this.Lqa=a},c.ToOOModel=function(){return this.Lqa},c.ToCT_PresetShadowEffect=function(){var a=this,b=a.OffsetX,c=a.OffsetY,d=s(b*b+c*c),e={dist:0,dir:0};return e.dist=d,e.dir=r(o.GetTriangleAngle(b,c,d)*l.PositiveFixedAngleConvert),e.prst=a.Type,a.ToCT_Color(e),e},c.ToCT_InnerShadowEffect=function(){var a=this,b=a.OffsetX,c=a.OffsetY,d=s(b*b+c*c),e={blurRad:0,dist:0,dir:0};return e.blurRad=a.Blur,e.dist=d,0===b&&0===c||(e.dir=r(o.GetTriangleAngle(b,c,d)*l.PositiveFixedAngleConvert)),e.scrgbClr=a.ToCT_ScRgbColor(),e},c.ToCT_OuterShadowEffect=function(){var a=this,b=a.OffsetX,c=a.OffsetY,d=s(b*b+c*c),e={blurRad:0,dist:0,dir:0,sx:1e5,sy:1e5,kx:0,ky:0,algn:7,rotWithShape:!0};return e.blurRad=a.Blur,e.dist=d,0===b&&0===c||(e.dir=r(o.GetTriangleAngle(b,c,d)*l.PositiveFixedAngleConvert)),e.rotWithShape=a.RotateWithShape===!0,e.sx=r(a.Size*l.RelativeRectConver),e.sy=r(a.Size*l.RelativeRectConver),e.scrgbClr=a.ToCT_ScRgbColor(),e},c.ToCT_Color=function(a){var b,c,d,e,f,g=this;q(g.Nra)||(3===g.Nra.ColorType?(b={},b.val=g.Nra.ObjectThemeColor,0!==g.Nra.Brightness&&(c=r(1e5*g.Nra.Brightness),b.lumMod=[c],d=r(1e5*(1-g.Nra.Brightness)),b.lumOff=[d]),g.Nra.TintAndShade>0&&g.Nra.TintAndShade<1&&(e=r(g.Nra.TintAndShade*l.ShadeConver),b.shade=[e]),a.schemeClr=b):2===g.Nra.ColorType&&(f={},f.val=[g.Nra.RGB.R,g.Nra.RGB.G,g.Nra.RGB.B],0!==g.Nra.Brightness&&(c=r(1e5*g.Nra.Brightness),f.lumMod=[c],d=r(1e5*(1-g.Nra.Brightness)),f.lumOff=[d]),0!==g.Transparency&&(e=r(g.Transparency*l.PositiveFixedPercentageConvert),f.alpha=[e]),a.srgbClr=f))},c.ToCT_ScRgbColor=function(){var a,b={};return 0!==this.Transparency&&(a=r(this.Transparency*l.PositiveFixedPercentageConvert),b.alpha=[a]),b},c.SetState=function(b,c){a.prototype.SetState.call(this,b,c),1!==b&&4!==b&&8!==b&&16!==b&&32!==b&&128!==b||this.GetState(64)||(this.Wqa=1)},b}(j);i.ShadowFormat=t,b=function(a){h(b,a);function b(b){return a.call(this,b),this}var c=b.prototype;return c.FromOOModel=function(a){this.Lqa=a},c.ToOOModel=function(){return this.Lqa},b}(j),i.SoftEdgeFormat=b,d=function(a){h(b,a);function b(b,c){a.call(this);var d=this;return d.Oz=100,d.Nc=1,d.presetShadowOffset=-6,d.xc=b,d.hqa=c,d}var c=b.prototype;return n(c,"Blur",{get:function(){var a=this;return a.GetState(1)||q(a.hqa)?a.Ira:a.hqa.Blur},set:function(a){this.Ira=a,this.SetState(1,!0)}}),n(c,"Offset",{get:function(){var a=this;return a.GetState(2)||q(a.hqa)?a.UP:a.hqa.Offset},set:function(a){this.UP=a,this.SetState(2,!0)}}),n(c,"Size",{get:function(){var a=this;return a.GetState(4)||q(a.hqa)?a.Oz:a.hqa.Size},set:function(a){this.Oz=a,this.SetState(4,!0)}}),n(c,"Transparency",{get:function(){var a=this;return a.GetState(8)||q(a.hqa)?a.Gqa:a.hqa.Transparency},set:function(a){this.Gqa=a,this.SetState(8,!0)}}),c.FromOOModel=function(a){this.Lqa=a},c.ToOOModel=function(){return this.Lqa},c.OnTypeChange=function(){var a=this;a.Ira=5,a.UP=a.presetShadowOffset,a.Oz=100,a.Gqa=.5},b}(j),i.ReflectionFormat=d,e=function(a){h(b,a);function b(b,c){a.call(this),this.xc=b,this.hqa=c}var c=b.prototype;return n(c,"Color",{get:function(){var a=this;return q(a.tE)&&(a.tE=a.GetDefaultColor()),a.tE}}),n(c,"Radius",{get:function(){var a=this;return a.GetState(2)||q(a.hqa)?a.radius:a.hqa.Radius},set:function(a){this.radius=a,this.Dirty(2)}}),n(c,"Transparency",{get:function(){var a=this;return a.GetState(4)||q(a.hqa)?a.Gqa:a.hqa.Transparency},set:function(a){this.Gqa=a,this.Dirty(4)}}),c.FromOOModel=function(a){this.Lqa=a},c.ToOOModel=function(){return this.Lqa},c.GetDefaultColor=function(){var a=new i.ColorFormat(this.xc,this.hqa&&this.hqa.Color);return a.ColorType=0,a},c.SetState=function(b,c){var d=this;a.prototype.SetState.call(d,b,c),2!==b&&4!==b||d.tE&&0===d.tE.ColorType&&(d.tE.ColorType=2)},c.ToCT_Color=function(a){var b,c,d,e,f,g,h,i=this,j=i.tE;q(j)||(b=j.colorType,c=j.Brightness,3===b?(d={},d.val=j.ObjectThemeColor,0!==c&&(e=r(1e5*c),d.lumMod=[e],f=r(1e5*(1-c)),d.lumOff=[f]),j.TintAndShade>0&&j.TintAndShade<1&&(g=r(j.TintAndShade*l.ShadeConver),d.shade=[g]),a.schemeClr=d):2===b&&(h={},h.val=[j.RGB.R,j.RGB.G,j.RGB.B],0!==c&&(e=r(1e5*c),h.lumMod=[e],f=r(1e5*(1-c)),h.lumOff=[f]),0!==i.Transparency&&(g=r(i.Transparency*l.PositiveFixedPercentageConvert),h.alpha=[g]),a.srgbClr=h))},b}(j),i.GlowFormat=e,a.exports=i}()},function(a,b,c){!function(){"use strict";var b,d,e,f,g,h,i,j,k,l=c(6),m=l.j,n=m.G,o=c(3),p=c(5).StatefullBase,q=c(7),r=q.ChartUtility,s=r.defineProperty,t=q.ChartConstants,u=q.UnitHelper,v=u.isNullOrUndefined,w=c(11).FillFormat,x=c(20).FontData,y=null,z=void 0,A={Bold:1,Color:2,Italic:4,Name:8,OutlineFont:16,Shadow:32,Size:64,Strikethrough:128,Subscript:256,Superscript:512,ThemeFont:1024,Underline:2048};o.TextFieldType={CellRange:0,SeriesName:1,CategoryName:2,Value:3,XValue:4,YValue:5,BubbleSize:6,Percentage:7,TxLink:8},b=function(a){n(b,a);function b(b,c,d){c===z&&(c=y),d===z&&(d=y),a.call(this,c);var e=this;return e.Ora=0,e.Pra=y,e.Qra=y,e.Rra=y,e.xc=b,e.Zpa=new w(b,c&&c.FillInternal),e.hqa=c,d&&(v(d.Size)||(e.Oz=d.Size),v(d.Bold)||(e.Sra=d.Bold)),e}var c=b.prototype;return s(c,"Bold",{get:function(){var a=this.hqa;return a&&!this.GetState(1)?a.Bold:this.Sra},set:function(a){this.Sra=a,this.SetState(1,!0)}}),s(c,"Color",{get:function(){return this.FillInternal.Color}}),s(c,"Italic",{get:function(){var a=this.hqa;return a&&!this.GetState(4)?a.Italic:this.Tra},set:function(a){this.Tra=a,this.SetState(4,!0)}}),s(c,"Name",{get:function(){var a=this.hqa;return a&&!this.HasOwnFont()?a.Name:this.GetOwnFont()},set:function(a){this.SetFont(a),this.ClearOOFontNames()}}),s(c,"Size",{get:function(){var a=this.hqa;return a&&!this.GetState(64)?a.Size:this.Oz},set:function(a){this.Oz=a,this.SetState(64,!0)}}),s(c,"Strikethrough",{get:function(){var a=this.hqa;return a&&!this.GetState(128)?a.Strikethrough:this.Ura},set:function(a){this.Ura=a,this.SetState(128,!0)}}),s(c,"Subscript",{get:function(){var a=this.hqa;return a&&!this.GetState(256)?a.Subscript:this.Vra},set:function(a){this.Vra=a,this.SetState(256,!0)}}),s(c,"Superscript",{get:function(){var a=this.hqa;return a&&!this.GetState(512)?a.Superscript:this.Wra},set:function(a){this.Wra=a,this.SetState(512,!0)}}),s(c,"Underline",{get:function(){var a=this.hqa;return a&&!this.GetState(2048)?a.Underline:this.Xra},set:function(a){this.Xra=a,this.SetState(2048,!0)}}),s(c,"ThemeFont",{get:function(){var a=this.hqa;return a&&!this.GetState(1024)?a.ThemeFont:this.Ora},set:function(a){this.SetThemeFont(a),this.ClearOOFontNames()}}),c.IsDirtyIncludingParent=function(b){return!(!this.Zpa||!this.Zpa.IsDirtyIncludingParent(b))||a.prototype.IsDirtyIncludingParent.call(this,b)},c.HasOwnFont=function(){return this.IsDirty(8)||this.IsDirty(1024)},c.OnParentChanged=function(a){this.hqa=a,this.Zpa&&(this.Zpa.ParentStateful=a&&a.FillInternal)},c.GetOwnFont=function(){return 0===this.Ora?this.Cj:this.xc.Yra(this.Ora)},c.SetFont=function(a){var b=this;a===t.CHART_CS_HEAD_FONT||a===t.CHART_EA_HEAD_FONT||a===t.CHART_LATIN_HEAD_FONT?b.SetThemeFont(1):a===t.CHART_CS_BODY_FONT||a===t.CHART_EA_BODY_FONT||a===t.CHART_LATIN_BODY_FONT?b.SetThemeFont(2):(b.Cj=a,b.SetState(8,!0),b.Ora=0,b.SetState(1024,!1))},c.SetThemeFont=function(a){var b=this;b.Ora=a,b.SetState(1024,!0),b.Cj=y,b.SetState(8,!1)},c.ClearOOFontNames=function(){this.Qra=y,this.Rra=y,this.Pra=y},c.GetActualFormat=function(){var a,c,d=this,e=new b(d.xc);for(a in A)if(c=A[a],this.IsDirty(c))switch(c){case 1:e.Bold=this.Bold;break;case 4:e.Italic=this.Italic;break;case 8:e.Name=this.Name;break;case 64:e.Size=this.Size;break;case 128:e.Strikethrough=this.Strikethrough;break;case 256:e.Superscript=this.Superscript;break;case 512:e.Subscript=this.Subscript;break;case 1024:e.ThemeFont=this.ThemeFont;break;case 2048:e.Underline=this.Underline}return e},s(c,"FillInternal",{get:function(){var a=this;return a.Zpa||(a.Zpa=new w(a.xc,a.hqa&&a.hqa.FillInternal)),a.Zpa}}),c.TextCharacterProperties_FromOOModel=function(a){var b,c=this;c.SuspendClearChildrenState(),c.Zra=a,v(a.latin)||(c.Qra=a.latin.typeface),v(a.ea)||(c.Pra=a.ea.typeface),v(a.cs)||(c.Rra=a.cs.typeface),c.Qra?c.SetFont(c.Qra):c.Pra?c.SetFont(c.Pra):c.Rra&&c.SetFont(c.Rra),v(a.sz)?(c.Oz=0,c.SetState(64,!1)):(b=a.sz,c.Oz!==b&&(c.Size=b)),v(a.b)||(c.Bold=a.b),v(a.i)||(c.Italic=a.i),v(a.strike)||(c.Strikethrough=1===a.strike||2===a.strike),v(a.u)||(c.Underline=a.u),v(a.baseline)||0===a.baseline?c.Subscript=!1:c.Subscript=!0,v(a.solidFill)?v(a.noFill)?v(a.blipFill)?v(a.gradFill)?v(a.pattFill)?c.SetFillField(y):c.FillInternal.FromOOModel(a.pattFill,1):c.FillInternal.FromOOModel(a.gradFill,2):c.FillInternal.FromOOModel(a.blipFill,3):c.FillInternal.Color.ColorType=0:c.FillInternal.FromOOModel(a.solidFill,0),c.ResumeClearChilrenState()},c.AdjustStateful=function(a,b){v(a)||(a.SetParentForChildren(b),v(b)||(b.ParentStateful=a.ParentStateful),a.ParentStateful=y)},c.SetFillField=function(a){this.AdjustStateful(this.Zpa,a),this.Zpa=a},c.TextCharacterProperties_ToOOModel=function(){var a,b,c,d,e=this;return e.IsDirtyIncludingParent(!0)?(a=e.Zra||{},e.IsPropDirtyIncludingParent(8,!0)?(b=e.Name,v(a.latin)&&(a.latin={}),a.latin.typeface=b):e.IsPropDirtyIncludingParent(1024,!0)&&0!==e.ThemeFont?(v(a.latin)&&(a.latin={}),a.latin.typeface=1===e.ThemeFont?t.CHART_LATIN_HEAD_FONT:t.CHART_LATIN_BODY_FONT):(e.Qra||e.Pra||e.Rra)&&(e.Qra&&(v(a.latin)&&(a.latin={}),a.latin.typeface=e.Qra),e.Pra&&(v(a.ea)&&(a.ea={}),a.ea.typeface=e.Pra),e.Rra&&(v(a.cs)&&(a.cs={}),a.cs.typeface=e.Rra)),e.IsPropDirtyIncludingParent(64,!0)&&e.Size>1?a.sz=e.Size:delete a.sz,e.IsPropDirtyIncludingParent(1,!0)&&(a.b=e.Bold),e.IsPropDirtyIncludingParent(4,!0)&&(a.i=e.Italic),e.IsPropDirtyIncludingParent(128,!0)&&(a.strike=e.Strikethrough?1:0),e.IsPropDirtyIncludingParent(2048,!0)&&(a.u=e.Underline),e.Subscript&&v(a.baseline)?a.baseline=-25e3:e.Superscript&&v(a.baseline)?a.baseline=3e4:e.Subscript||e.Superscript||delete a.baseline,delete a.solidFill,delete a.blipFill,delete a.gradFill,delete a.grpFill,delete a.noFill,delete a.pattFill,delete a.uFill,delete a.uFillTx,!v(e.Zpa)&&e.Zpa.IsDirtyIncludingParent(!0)&&(c=e.Zpa.ToOOModel(),d=c.colorFillType,0===d?a.solidFill=c:1===d?a.pattFill=c:2===d?a.gradFill=c:3===d?a.blipFill=c:5===d&&(a.noFill=!0),delete c.colorFillType),a):{}},c.FromOOModel=function(a){var b=this;b.Bold=a.Bold,b.Italic=a.Italic,b.Name=a.Name,0!==a.Scheme&&(b.ThemeFont=a.Scheme),b.Size=a.Size,b.Underline=r.ConvertToTextUnderlineType(a.Underline),b.Strikethrough=a.Strike,b.Subscript=2===(2&a.VertAlign),b.Superscript=1===(1&a.VertAlign),b.FillInternal.ColorInternal.ColorData_FromOOModel(a.Color)},c.ToOOModel=function(){var a,b=this,c=new x;return c.Bold=b.Bold,c.Italic=b.Italic,c.Name=b.Name,c.Scheme=b.ThemeFont,c.Size=b.Size,c.Underline=r.ToUnderlineType(b.Underline),c.Strike=b.Strikethrough,b.Subscript?c.VertAlign=2:b.Superscript&&(c.VertAlign=1),a=b.Zpa,a&&a.ColorInternal.IsDirtyIncludingParent(!0)&&0!==a.ColorInternal.ColorType&&(c.Color=a.ColorInternal.ColorData_ToOOModel()),c},b}(p),o.FontFormat=b,d=function(){function a(a,c){var d=this;d.xc=a,d.$ra=c,d.MC=new b(a),d.MC.ParentStateful=c.Font}var c=a.prototype;return s(c,"Font",{get:function(){return this.MC}}),s(c,"Text",{get:function(){return""}}),s(c,"IsCustomText",{get:function(){return!1}}),c.Delete=function(){this.$ra.DeleteElement(this),this.$ra=y},a}(),o.DrawingTextElement=d,e=function(a){n(c,a);function c(b,c,d){a.call(this,b,d);var e=this;return e._ra=y,e._text=c,e.xc=b,e.elementType=0,e}var d=c.prototype;return s(d,"Text",{get:function(){return this._text},set:function(a){this._text=a}}),d.FromOOModel=function(a){var c=this;c._ra=a,c._text=a.t,v(a.rPr)?c.MC=new b(c.xc,c.MC.ParentStateful):c.MC.TextCharacterProperties_FromOOModel(a.rPr)},d.ToOOModel=function(){var a=this._ra||{elementType:0};return a.t=this.Text,a.rPr=this.MC.TextCharacterProperties_ToOOModel(),a},c}(d),o.DrawingTextRun=e,f=function(a){n(d,a);function d(b,d,e){a.call(this,b,e);var f=this;return f.Nc=d,f.Hpa=b,f.asa=new c(21)("./chartTitle.js").ReferenceText(f.Hpa),f.elementType=2,f}var e=d.prototype;return s(e,"Type",{get:function(){return this.Nc},set:function(a){this.Nc=a}}),s(e,"Text",{get:function(){return 8===this.Type?this.asa.ReferingText:r.GetTextFieldTypeText(this.Type)}}),s(e,"Worksheet",{get:function(){return this.Hpa&&this.Hpa.Parent}}),e.FromOOModel=function(a){var c=this;c.Lqa=a,c.Type=r.GetTextFieldType(a.type),v(a.rPr)?c.MC=new b(c.xc,c.MC.ParentStateful):c.MC.TextCharacterProperties_FromOOModel(a.rPr)},e.ToOOModel=function(){var a,b=this,c=b.Lqa||{elementType:2};return v(c.id)&&(a="{"+d.guid+"}",c.id=a,d.guid+=1),c.type=r.GetTextFieldTypeString(b.Type),v(c.rPr)&&(c.rPr={}),c.rPr=b.MC.TextCharacterProperties_ToOOModel(),c.t=b.Text,c},e.UpdateTextByFormulas=function(a,b){this.asa.UpdateTextByFormulas(a,b)},d}(d),f.guid=1,o.DrawingTextField=f,g=function(a){n(b,a);function b(b,c){a.call(this,b,c),this.elementType=1}var c=b.prototype;return s(c,"Text",{get:function(){return"\r\n"}}),c.FromOOModel=function(a){this.Lqa=a},c.ToOOModel=function(){return this.Lqa||{elementType:1}},b}(d),o.DrawingLineBreak=g,h=function(){function a(a,c){var d=this;d.bsa=y,d.MC=y,d.xc=y,d.csa=" ",d.xc=a,d.Lpa=c,d.MC=new b(a),d.MC.ParentStateful=d.Lpa.Font,d.rM=[]}var c=a.prototype;return s(c,"SplitSpaceFlag",{get:function(){return this.csa},set:function(a){this.csa=a}}),s(c,"Text",{get:function(){var a,b,c,d="";for(a=0,b=this.rM;a=d.length?d.push(c):d.splice(b,0,c),c},c.AddFieldInternal=function(a){var b=new f(this.xc,a,this);return this.rM.push(b),b},c.ToOOModel=function(){var a,b,c,d,e,f=this,g=f.bsa||{elements:[]};for(g.pPr||(g.pPr={}),a=g.pPr,v(f.MC)||(a.defRPr=f.MC.TextCharacterProperties_ToOOModel()),b=g.elements=[],c=0,d=f.rM,e=d.length;c=0;a--)b.DeleteElement(b.rM[a]);b.Lpa.DeleteParagraph(b),b.Lpa=y},c.DeleteElement=function(a){a.Font.ParentStateful=y;var b=this.rM.indexOf(a);b>=0&&this.rM.splice(b,1)},a}(),o.DrawingTextParagraph=h,i=function(){function a(a,c){this.dsa=[],this.esa=y,this.xc=a,this.Opa=c,this.MC=new b(a,y,c),this.kO=0}var c=a.prototype;return s(c,"Text",{get:function(){var a,b,c,d="";for(a=0,b=this.dsa;a=d.length?d.push(c):d.splice(b,0,c),c},c.Clear=function(){var a,b,c;for(a=0,b=this.dsa;a0)for(b=0;b=0;b--)this.DeleteParagraph(a[b])},c.DeleteParagraph=function(a){a.Font.ParentStateful=y;var b=this.dsa.indexOf(a);b>=0&&this.dsa.splice(b,1)},a}(),o.DrawingTextBody=i,j=function(a){n(b,a);function b(b,c){a.call(this);var d=this;return d.Format1=b,d.Format2=c,d}var c=b.prototype;return s(c,"Stateful1",{get:function(){return this.Format1}}),s(c,"Stateful2",{get:function(){return this.Format2}}),s(c,"Brightness",{get:function(){var a=this;return!v(a.Format2)&&a.Stateful2.IsPropDirtyIncludingParent(1,!1)?a.Format2.Brightness:a.Format1.Brightness},set:function(a){this.Format1.Brightness=a}}),s(c,"ColorType",{get:function(){var a=this;return!v(a.Format2)&&a.Stateful2.IsPropDirtyIncludingParent(16,!1)?a.Format2.ColorType:a.Format1.ColorType},set:function(a){this.Format1.ColorType=a}}),s(c,"ObjectThemeColor",{get:function(){var a=this;return!v(a.Format2)&&a.Stateful2.IsPropDirtyIncludingParent(2,!1)?a.Format2.ObjectThemeColor:a.Format1.ObjectThemeColor},set:function(a){this.Format1.ObjectThemeColor=a}}),s(c,"RGB",{get:function(){var a=this;return!v(a.Format2)&&a.Stateful2.IsPropDirtyIncludingParent(4,!1)?a.Format2.RGB:a.Format1.RGB},set:function(a){this.Format1.RGB=a}}),s(c,"TintAndShade",{get:function(){var a=this;return!v(a.Format2)&&a.Stateful2.IsPropDirtyIncludingParent(8,!1)?a.Format2.TintAndShade:a.Format1.TintAndShade},set:function(a){this.Format1.TintAndShade=a}}),c.GetState=function(){},c.SetState=function(){},c.IsDirtyIncludingParent=function(){},c.IsPropDirtyIncludingParent=function(a,b){return this.Stateful1.IsPropDirtyIncludingParent(a,b)||this.Stateful2.IsPropDirtyIncludingParent(a,b)},c.Dirty=function(){},c.UnDirty=function(){},c.SuspendClearChildrenState=function(){},c.ResumeClearChilrenState=function(){},c.AddChildInternal=function(){},c.RemoveChildInternal=function(){},b}(p),o.ComboColorFormat=j,k=function(a){n(b,a);function b(b,c){a.call(this);var d=this;return d.Format1=b,d.Format2=c,d}var c=b.prototype;return s(c,"Stateful1",{get:function(){return this.Format1}}),s(c,"Stateful2",{get:function(){return this.Format2}}),s(c,"Bold",{get:function(){var a=this;return!v(a.Format2)&&a.Stateful2.IsPropDirtyIncludingParent(1,!1)?a.Format2.Bold:a.Format1.Bold},set:function(a){this.Format1.Bold=a}}),s(c,"Color",{get:function(){return new j(this.Format1.Color,this.Format2.Color)}}),s(c,"Italic",{get:function(){var a=this;return!v(a.Format2)&&a.Stateful2.IsPropDirtyIncludingParent(4,!1)?a.Format2.Bold:a.Format1.Bold},set:function(a){this.Format1.Bold=a}}),s(c,"Name",{get:function(){var a=this;return!v(a.Format2)&&a.Stateful2.IsPropDirtyIncludingParent(8,!1)?a.Format2.Name:a.Format1.Name},set:function(a){this.Format1.Name=a}}),s(c,"Size",{get:function(){var a=this;return!v(a.Format2)&&a.Stateful2.IsPropDirtyIncludingParent(64,!1)?a.Format2.Size:a.Format1.Size},set:function(a){this.Format1.Size=a}}),s(c,"Strikethrough",{get:function(){var a=this;return!v(a.Format2)&&a.Stateful2.IsPropDirtyIncludingParent(128,!1)?a.Format2.Strikethrough:a.Format1.Strikethrough},set:function(a){this.Format1.Strikethrough=a}}),s(c,"Subscript",{get:function(){var a=this;return!v(a.Format2)&&a.Stateful2.IsPropDirtyIncludingParent(256,!1)?a.Format2.Subscript:a.Format1.Subscript},set:function(a){this.Format1.Subscript=a}}),s(c,"Superscript",{get:function(){var a=this;return!v(a.Format2)&&a.Stateful2.IsPropDirtyIncludingParent(512,!1)?a.Format2.Superscript:a.Format1.Superscript},set:function(a){this.Format1.Superscript=a}}),s(c,"ThemeFont",{get:function(){var a=this;return!v(a.Format2)&&a.Stateful2.IsPropDirtyIncludingParent(1024,!1)?a.Format2.ThemeFont:a.Format1.ThemeFont},set:function(a){this.Format1.ThemeFont=a}}),s(c,"Underline",{get:function(){var a=this;return!v(a.Format2)&&a.Stateful2.IsPropDirtyIncludingParent(2048,!1)?a.Format2.Underline:a.Format1.Underline},set:function(a){this.Format1.Underline=a}}),c.GetState=function(){},c.SetState=function(){},c.IsDirtyIncludingParent=function(){},c.IsPropDirtyIncludingParent=function(a,b){return this.Stateful1.IsPropDirtyIncludingParent(a,b)||this.Stateful2.IsPropDirtyIncludingParent(a,b)},c.Dirty=function(){},c.UnDirty=function(){},c.SuspendClearChildrenState=function(){},c.ResumeClearChilrenState=function(){},c.AddChildInternal=function(){},c.RemoveChildInternal=function(){},b}(p),o.ComboFontFormat=k,a.exports=o}()},function(a,b,c){!function(){"use strict";var b,d=c(3),e=c(7),f=e.UnitHelper.isNullOrUndefined;d.UnderlineType={None:0,Single:1,Double:2,SingleAccounting:3,DoubleAccounting:4},b=function(){function a(){var a=this;a.Flag=0,a.Size=0,a.Family=0,a.CharSet=0,a.Scheme=0,a.Underline=0,a.VertAlign=0}var b=a.prototype;return b.Equals=function(a){if(f(a))return!1;var b=this;return b.Size===a.Size&&b.Color.Equals(a.Color)&&b.Name===a.Name&&b.Family===a.Family&&b.CharSet===a.CharSet&&b.Scheme===a.Scheme&&b.Bold===a.Bold&&b.Italic===a.Italic&&b.Underline===a.Underline&&b.Strike===a.Strike&&b.VertAlign===a.VertAlign&&b.Shadow===a.Shadow&&b.Outline===a.Outline&&b.Condense===a.Condense&&b.Extend===a.Extend&&b.NotUsed===a.NotUsed},b.Clone=function(){var b=new a,c=this;return b.Color=c.Color,b.Size=c.Size,b.Name=c.Name,b.Family=c.Family,b.CharSet=c.CharSet,b.Scheme=c.Scheme,b.Bold=c.Bold,b.Italic=c.Italic,b.Underline=c.Underline,b.Strike=c.Strike,b.VertAlign=c.VertAlign,b.Shadow=c.Shadow,b.Outline=c.Outline,b.Condense=c.Condense,b.Extend=c.Extend,b.Flag=c.Flag,b.NotUsed=c.NotUsed,b},b.UpdateDefaultValueFlag=function(){var a=this,b=0;a.Color.UpdateDefaultValueFlag(),0!==a.Color.Flag&&(b|=1),0!==a.Size&&(b|=2),f(a.Name)||(b|=4),0!==a.Family&&(b|=8),0!==a.CharSet&&(b|=16),0!==a.Scheme&&(b|=32),a.Bold&&(b|=64),a.Italic&&(b|=128),0!==a.Underline&&(b|=256),a.Strike&&(b|=512),0!==a.VertAlign&&(b|=1024),a.Shadow&&(b|=2048),a.Outline&&(b|=4096),a.Condense&&(b|=8192),a.Extend&&(b|=16384),a.Flag=b},b.UpdateFlagFromBottom=function(){var a=this;a.Color.UpdateFlagFromBottom(),0===a.Color.Flag?a.Flag&=-2:a.Flag|=1},b.UpdateDefaultValueFlagForDxf=function(){var a=this,b=a.Flag,c=0;64===(64&b)&&(c|=64),128===(128&b)&&(c|=128),a.Color.UpdateDefaultValueFlag(),0!==a.Color.Flag&&(c|=1),0!==a.Size&&(c|=2),f(a.Name)||(c|=4),0!==a.Family&&(c|=8),0!==a.CharSet&&(c|=16),0!==a.Scheme&&(c|=32),0!==a.Underline&&(c|=256),a.Strike&&(c|=512),0!==a.VertAlign&&(c|=1024),a.Shadow&&(c|=2048),a.Outline&&(c|=4096),a.Condense&&(c|=8192),a.Extend&&(c|=16384),a.Flag=c},b.Compose=function(a,b){void 0===b&&(b=!0),0!==a.Flag&&(b?this.ConflictCompose(a):this.NonConflictCompose(a))},b.ConflictCompose=function(a){var b=this,c=a.Flag;1===(1&c)&&b.Color.Compose(a.Color),2===(2&c)&&(b.Size=a.Size),4===(4&c)&&(b.Name=a.Name),8===(8&c)&&(b.Family=a.Family),16===(16&c)&&(b.CharSet=a.CharSet),32===(32&c)?b.Scheme=a.Scheme:4===(4&c)&&(b.Scheme=0,c&=-33),64===(64&c)&&(b.Bold=a.Bold),128===(128&c)&&(b.Italic=a.Italic),256===(256&c)&&(b.Underline=a.Underline),512===(512&c)&&(b.Strike=a.Strike),1024===(1024&c)&&(b.VertAlign=a.VertAlign),2048===(2048&c)&&(b.Shadow=a.Shadow),4096===(4096&c)&&(b.Outline=a.Outline),8192===(8192&c)&&(b.Condense=a.Condense),16384===(16384&c)&&(b.Extend=a.Extend),b.Flag|=c},b.NonConflictCompose=function(a){var b=this,c=b.Flag;b.Color.Compose(a.Color,!1),2!==(2&c)&&(b.Size=a.Size),4!==(4&c)&&(b.Name=a.Name),8!==(8&c)&&(b.Family=a.Family),16!==(16&c)&&(b.CharSet=a.CharSet),32!==(32&c)&&(b.Scheme=a.Scheme),64!==(64&c)&&(b.Bold=a.Bold),128!==(128&c)&&(b.Italic=a.Italic),256!==(256&c)&&(b.Underline=a.Underline),512!==(512&c)&&(b.Strike=a.Strike),1024!==(1024&c)&&(b.VertAlign=a.VertAlign),2048!==(2048&c)&&(b.Shadow=a.Shadow),4096!==(4096&c)&&(b.Outline=a.Outline),8192!==(8192&c)&&(b.Condense=a.Condense),16384!==(16384&c)&&(b.Extend=a.Extend),b.Flag|=a.Flag},b.RemoveDuplicateStyle=function(a){return this.Compare(a,!1)},b.RemoveDifferentStyle=function(a){return this.Compare(a,!0)},b.Compare=function(a,b){var c,d,e,f,g=this,h=g.Flag,i=a.Flag,j=[],k=!1;if(1===(1&h)&&(c=1!==(1&i),c||(b?(k=g.Color.RemoveDifferentStyle(a.Color),c=0===g.Color.Flag):(k=g.Color.RemoveDuplicateStyle(a.Color),c=0!==g.Color.Flag)),d=b?c:!c,d&&j.push(1)),2===(2&h)&&(c=2!==(2&i)||g.Size!==a.Size,d=b?c:!c,d&&j.push(2)),4===(4&h)&&(c=4!==(4&i)||g.Name!==a.Name,d=b?c:!c,d&&j.push(4)),8===(8&h)&&(c=8!==(8&i)||g.Family!==a.Family,d=b?c:!c,d&&j.push(8)),16===(16&h)&&(c=16!==(16&i)||g.CharSet!==a.CharSet,d=b?c:!c,d&&j.push(16)),32===(32&h)&&(c=32!==(32&i)||g.Scheme!==a.Scheme,d=b?c:!c,d&&j.push(32)),64===(64&h)&&(c=64!==(64&i)||g.Bold!==a.Bold,d=b?c:!c,d&&j.push(64)),128===(128&h)&&(c=128!==(128&i)||g.Italic!==a.Italic,d=b?c:!c,d&&j.push(128)),256===(256&h)&&(c=256!==(256&i)||g.Underline!==a.Underline,d=b?c:!c,d&&j.push(256)),512===(512&h)&&(c=512!==(512&i)||g.Strike!==a.Strike,d=b?c:!c,d&&j.push(512)),1024===(1024&h)&&(c=1024!==(1024&i)||g.VertAlign!==a.VertAlign,d=b?c:!c,d&&j.push(1024)),2048===(2048&h)&&(c=2048!==(2048&i)||g.Shadow!==a.Shadow,d=b?c:!c,d&&j.push(-2049)),4096===(4096&h)&&(c=4096!==(4096&i)||g.Outline!==a.Outline,d=b?c:!c,d&&j.push(4096)),8192===(8192&h)&&(c=8192!==(8192&i)||g.Condense!==a.Condense,d=b?c:!c,d&&j.push(8192)),16384===(16384&h)&&(c=16384!==(16384&i)||g.Extend!==a.Extend,d=b?c:!c,d&&j.push(16384)),e=j.length, e>0)for(k=!0,f=0;f0&&(a=b.Get(0)),m(a))return A;c=A,0===k?c=a.XValuesRefers:1===k&&(c=a.ValuesRefers),c&&c.length>0&&(d={sheet:A,row:-1,col:-1},a.GetRowColIndex(c,0,d),e=d.sheet,f=d.row,g=d.col,e&&f!==-1&&g!==-1&&(h=e.ksa(f,g),h&&h.FormatCode&&(n=h.FormatCode)))}return n||i.jPa(l.ChartType,k,j)},b.jPa=function(a,b,c){var d="General";return n.IsStockChart(a)&&0===b||c.IsTimeScale()?d="mm/dd/yyyy":n.IsStacked100Chart(a)&&1===b&&(d="0%"),d},b.FromOOModel=function(a){var b=this,c={rich:a.CT_TextBody};b.Qpa.FromOOModel(c),a.CT_NumFmt?(b.Rd=a.CT_NumFmt.formatCode,b.jsa=a.CT_NumFmt.sourceLinked!==!1):(b.Rd=A,b.jsa=!0)},b.ToOOModel=function(){var a,b=this.Qpa.ToOOModel().rich,c={};return c.formatCode=this.GetNumberFormat(),this.NumberFormatLinked===!1&&(c.sourceLinked=!1),a={},a.CT_TextBody=b,a.CT_NumFmt=c,a},a}(),h.TickLabels=e,f=function(a){j(c,a);function c(b,c,d){var e=a.call(this)||this;return e.lsa=2,e.msa=2,e.nsa=!0,e.osa=10,e.psa=!1,e.qsa=9,e.rsa=1,e.ssa=A,e.tsa=A,e.usa=1,e.vsa=!0,e.wsa=2,e.xsa=1,e.ysa=!1,e.zsa=A,e.Asa=!0,e.Bsa=A,e.Csa=A,e.Dsa=b,e.Nc=c,e.fsa=d,e.zsa=new E(e.Dsa.Parent,e.fsa,e.Nc),e.Esa=e.GetDefaultTickLabels(),e.InitProps(),e.InitRulers(),e}var f=c.prototype;return f.InitRulers=function(){var a=this;a.Fsa=0,a.Gsa=1.2,a.Hsa=!0,a.Isa=!0,a.Jsa=.2,a.Ksa=.04,a.Lsa=!0,a.Msa=!0,a.Nsa=0,a.Osa=!0,a.Psa=0,a.Qsa=0,a.Rsa=1},f.InitProps=function(){var a=this;a.Ssa=0,a.Tsa=0,a.IsValueScaleAxis()&&0===a.fsa&&(a.Usa=!0,a.Vsa=a.GetDefaultGridlines()),a.IsValueOrDateScaleAxis()?(a.Wsa=1,a.IsLogarithmic?a.Xsa=1:a.Xsa=0,a.usa=10):0===a.Nc?(1===a.fsa?a.Wsa=2:a.Wsa=1,1===a.Tsa?a.usa=1:a.usa=10):2===a.Nc&&(a.Wsa=1),a.Ysa=0===a.Nc&&0!==a.fsa,a.nsa=!n.IsSurfaceChart(a.Chart.ChartType),a.tsa=new b(a),a.Kb=a.GetDefaultFormat()},s(f,"AxisBetweenCategories",{get:function(){return this.nsa},set:function(a){this.nsa=a}}),s(f,"AxisGroup",{get:function(){return this.fsa}}),s(f,"Type",{get:function(){return this.Nc}}),s(f,"CategoryType",{get:function(){return this.Ssa},set:function(a){var b=this;a!==b.Ssa&&(b.EnsureAxisType(0),b.EnsureNotAxisCatType(3),b.UpdateCategoryType(a),b.Chart.HandleElementChanged(8,b,o.CategoryType))}}),s(f,"ActualCategoryType",{get:function(){return this.Tsa},set:function(a){a!==this.Tsa&&(this.Tsa=a,this.UpdateAxisRulers())}}),s(f,"CategoryNames",{get:function(){return this.EnsureAxisType(0),this.EnsureNotAxisCatType(3),this.GetCategoryNames()},set:function(a){this.EnsureAxisType(0),this.EnsureNotAxisCatType(3),this.Chart.HandleElementChanged(8,this,o.CategoryNames,a)}}),s(f,"ScaleType",{get:function(){return this.Rsa},set:function(a){a!==this.Rsa&&(this.Rsa=a,this.UpdateAxisRulers())}}),s(f,"MaximumScale",{get:function(){return this.Gsa},set:function(a){var b=this;b.Isa=!1,a!==b.Gsa&&(b.Gsa=a,b.IsValueOrDateScaleAxis()&&(b.Gsab.Jsa&&(b.Lsa=!0),b.UpdateAxisRulers()))}}),s(f,"MinorUnitIsAuto",{get:function(){return this.Msa},set:function(a){a!==this.Msa&&(this.Msa=a,this.UpdateAxisRulers())}}),s(f,"BaseUnit",{get:function(){return this.Nsa},set:function(a){var b=this;b.Osa=!1,a!==b.Nsa&&(b.Nsa=a,b.MinorUnitIsAuto&&(b.Psa=a),b.MajorUnitIsAuto&&(b.Qsa=a)),b.UpdateAxisRulers()}}),s(f,"BaseUnitIsAuto",{get:function(){return this.Osa},set:function(a){a!==this.Osa&&(this.Osa=a,this.UpdateAxisRulers())}}),s(f,"MinorUnitScale",{get:function(){return this.Msa?this.Nsa:this.Psa},set:function(a){this.Msa=!1,a!==this.Psa&&(this.Psa=a,this.UpdateAxisRulers())}}),s(f,"MajorUnitScale",{get:function(){return this.Lsa?this.Nsa:this.Qsa},set:function(a){this.Lsa=!1,a!==this.Qsa&&(this.Qsa=a,this.UpdateAxisRulers())}}),s(f,"AxisTitle",{get:function(){return this.ysa?this.zsa:A},set:function(a){this.zsa=a}}),s(f,"Crosses",{get:function(){return this.GetCrosses()},set:function(a){a!==this.Wsa&&(0===a&&(this.Xsa=this.GetCrossesAt()),this.Wsa=a)}}),s(f,"CrossesAt",{get:function(){return this.GetCrossesAt()},set:function(a){a!==this.Xsa&&(this.Xsa=a,this.Wsa=0)}}),s(f,"Format",{get:function(){var a=this;return m(a.Kb)&&(a.Kb=a.GetDefaultFormat()),a.Kb}}),s(f,"DisplayUnit",{get:function(){return this.qsa},set:function(a){var b=this;a!==b.qsa&&(b.qsa=a,10===a&&(b.rsa=b.GetValuesFromDispUnit(a))),9!==a&&m(b.ssa)&&(b.ssa=!0)}}),s(f,"DisplayUnitCustom",{get:function(){return this.rsa},set:function(a){this.rsa=a,this.qsa=10,m(this.ssa)&&(this.ssa=!0)}}),s(f,"DisplayUnitLabel",{get:function(){return this.HasDisplayUnitLabel?this.tsa:A}}),s(f,"HasDisplayUnitLabel",{get:function(){return!m(this.ssa)&&this.ssa},set:function(a){this.ssa=a}}),s(f,"HasMajorGridlines",{get:function(){return!!this.Usa},set:function(a){var b=this;a!==b.Usa&&(b.Usa=a,a&&m(b.Vsa)&&(b.Vsa=b.GetDefaultGridlines()))}}),s(f,"HasMinorGridlines",{get:function(){return!!this.Zsa},set:function(a){var b=this;a!==b.Zsa&&(b.Zsa=a,a&&m(b.$sa)&&(b.$sa=b.GetDefaultGridlines()))}}),s(f,"HasTitle",{get:function(){return this.ysa},set:function(a){this.ysa=a}}),s(f,"LogBase",{get:function(){return this.osa},set:function(a){if(a!==this.osa){if(a<2||a>1e3)throw Error("The LogBase must be in range of 2 and 1000!");this.osa=a,this.UpdateAxisRulers()}}}),s(f,"MajorGridlines",{get:function(){return this.Usa?this.Vsa:A}}),s(f,"MinorGridlines",{get:function(){return this.Zsa?this.$sa:A}}),s(f,"Parent",{get:function(){return this.Dsa}}),s(f,"ReversePlotOrder",{get:function(){return this.psa},set:function(a){this.psa=a}}),s(f,"TickLabelPosition",{get:function(){return this.wsa},set:function(a){this.wsa=a}}),s(f,"TickLabels",{get:function(){return this.Esa}}),s(f,"TickLabelSpacing",{get:function(){return this.vsa?1:this.usa},set:function(a){if(a<1)throw Error("The value must be equal to or greater than 1");this.usa=a,this.vsa=!1}}),s(f,"TickLabelSpacingIsAuto",{get:function(){return this.vsa},set:function(a){this.vsa=a}}),s(f,"MajorTickMark",{get:function(){return this.lsa},set:function(a){this.lsa=a}}),s(f,"MinorTickMark",{get:function(){return this.msa},set:function(a){this.msa=a}}),s(f,"TickMarkSpacing",{get:function(){return this.xsa},set:function(a){this.xsa=a}}),s(f,"Visible",{get:function(){return!this.Ysa},set:function(a){this.Ysa=!a}}),s(f,"NoMultiLvlLbl",{get:function(){return this.Asa},set:function(a){a!==this.NoMultiLvlLbl&&(this.Asa=a,0!==this.TickLabels.Offset||a||(this.TickLabels.Offset=100))}}),s(f,"Chart",{get:function(){return this.Parent.Parent}}),f.GetDefaultGridlines=function(){var a=new d(this),b=a.Format.Line;return b.Color.ObjectThemeColor=1,b.Weight=1,b.Color.Brightness=o.DefaultLineColorBrightness,a},f.GetDefaultTickLabels=function(){return new e(this)},s(f,"SeriesCollection",{get:function(){return this.Dsa.Parent.SeriesCollection}}),s(f,"IsLogarithmic",{get:function(){return 0===this.Rsa}}),f.GetCategoryNames=function(){var a,b,c,d=this,e=d.SeriesCollection,f=e.Count;if(f>0){if(2===d.Nc){for(a=[],b=0;b=z?y:1):e--),g=this.GetDateItemsCount(a,b,f,e);return d.unitValue=e,f},f.GetDateItemsCount=function(a,b,c,d){var e,f,g;for(d=Math.floor(d),e=new Date(a),f=b,g=[];e<=f;)g.push(e),0===c?e.setDate(e.getDate()+d):1===c?e.setMonth(e.getMonth()+d):2===c&&e.setFullYear(e.getFullYear()+d);return g.length},f.GetFirstRightSer=function(){var a,b,c,d,e=this.SeriesCollection;for(a=0,b=e.Count;a1)return!0;return!1},f.ResetOnChartTypeChanged=function(){this.Bsa=A},f.CreateFormat=function(){return new t(this.Dsa.Parent,A,A,this.AutoLineColorFormat.bind(this))},f.GetDefaultFormat=function(){var b=a.prototype.GetDefaultFormat.call(this),c=this.Dsa.Parent.ChartType;return(n.IsSurfaceChart(c)||5===c)&&(b.Line.Weight=1),this.InitAutoLineColor(c,b.Line.Color),b},f.InitAutoLineColor=function(a,b){var c=o.DefaultLineColorBrightness;b.ObjectThemeColor=1,b.Brightness=c},f.AutoLineColorFormat=function(){var a=this.Dsa.Parent.ChartType,b=new u(this.Dsa.Parent);return this.InitAutoLineColor(a,b),b},f.EnsureAxisType=function(a){if(this.Nc!==a)throw Error()},f.EnsureAxisCatType=function(a){if(this.Tsa!==a)throw Error()},f.EnsureNotAxisType=function(a){if(this.Nc===a)throw Error()},f.EnsureNotAxisCatType=function(a){if(this.Tsa===a)throw Error()},f.UpdateCategoryType=function(a){this.Ssa=a,this.Tsa=a},f.FromOOModel=function(a){var b,c,d=this;d.Chart.SuspendElementChanged(),d.Bsa=a,b=d.Nc,0===b?(c=a.axisType,0===c?d.FromCT_CatAx(a):1===c?d.FromCT_DateAx(a):3===c&&d.FromCT_ValAx(a)):1===b?d.FromCT_ValAx(a):2===b&&d.FromCT_SerAx(a),d.Chart.ResumeElementChanged()},f.ToOOModel=function(){var a,b=this,c=A,d=b.Nc;return 0===d?(a=b.Tsa,1===a?c=b.ToCT_CatAx():2===a?c=b.ToCT_DateAx():3===a&&(c=b.ToCT_ValAx())):1===d?c=b.ToCT_ValAx():2===d&&(c=b.ToCT_SerAx()),c.AxisGroup=b.fsa,c.AxisType=d,c},f.ToCT_CatAx=function(){var a=this,b=a.Bsa,c=b&&0===b.axisType?b:{axisType:0};return a.ToCT_AxBase(c),c.auto=0===a.CategoryType,a.TickLabelSpacingIsAuto?c.tickLblSkip=A:c.tickLblSkip=a.TickLabelSpacing,c.lblOffset=a.TickLabels.Offset,c.tickMarkSkip=a.TickMarkSpacing,c.noMultiLvlLbl=a.NoMultiLvlLbl,c},f.FromCT_CatAx=function(a){var b=this;(m(a.auto)||1!==b.ActualCategoryType)&&b.UpdateCategoryType(1),b.FromCT_AxBase(a),m(a.tickLblSkip)?b.vsa=!0:(b.usa=a.tickLblSkip,b.vsa=!1),m(a.lblOffset)||(b.Esa.Offset=a.lblOffset),m(a.tickMarkSkip)||(b.xsa=a.tickMarkSkip)},f.ToCT_ValAx=function(){var a=this,b=a.Bsa,c=b&&3===b.axisType?b:{axisType:3};return a.ToCT_AxBase(c),a.MajorUnitIsAuto||(c.majorUnit=a.MajorUnit),a.MinorUnitIsAuto||(c.minorUnit=a.MinorUnit),9!==a.qsa&&(c.dispUnits=a.tsa.ToOOModel()),c},f.FromCT_ValAx=function(a){var b=this;b.FromCT_AxBase(a),m(a.majorUnit)?b.Lsa=!0:(b.Jsa=a.majorUnit,b.Lsa=!1),m(a.minorUnit)?b.Msa=!0:(b.Ksa=a.minorUnit,b.Msa=!1),b.tsa.FromOOModel(a.dispUnits)},f.ToCT_DateAx=function(){var a=this,b=a.Bsa,c=b&&1===b.axisType?b:{axisType:1};return a.ToCT_AxBase(c),c.auto=0===a.CategoryType,c.lblOffset=a.TickLabels.Offset,a.MajorUnitIsAuto||(c.majorUnit=a.MajorUnit,c.majorTimeUnit=a.MajorUnitScale),a.MinorUnitIsAuto||(c.minorUnit=a.MinorUnit,c.minorTimeUnit=a.MinorUnitScale),a.BaseUnitIsAuto||(c.baseTimeUnit=a.BaseUnit),c},f.FromCT_DateAx=function(a){var b=this;(m(a.auto)||2!==b.ActualCategoryType)&&b.UpdateCategoryType(2),b.FromCT_AxBase(a),m(a.majorUnit)?b.Lsa=!0:(b.Jsa=a.majorUnit,b.Lsa=!1),m(a.minorUnit)?b.Msa=!0:(b.Ksa=a.minorUnit,b.Msa=!1),m(a.baseTimeUnit)?b.Osa=!0:(b.Nsa=a.baseTimeUnit,b.Osa=!1),m(a.majorTimeUnit)||(b.Qsa=a.majorTimeUnit),m(a.minorTimeUnit)||(b.Psa=a.minorTimeUnit),m(a.lblOffset)||(b.Esa.Offset=a.lblOffset)},f.ToCT_SerAx=function(){var a=this,b=a.Bsa||{axisType:2};return a.ToCT_AxBase(b),a.TickLabelSpacingIsAuto?b.tickLblSkip=A:b.tickLblSkip=a.TickLabelSpacing,b.tickMarkSkip=a.TickMarkSpacing,b},f.FromCT_SerAx=function(a){var b=this;b.FromCT_AxBase(a),m(a.tickLblSkip)?b.vsa=!0:(b.usa=a.tickLblSkip,b.vsa=!1),m(a.tickMarkSkip)||(b.xsa=a.tickMarkSkip)},f.ToCT_AxBase=function(b){var c,d=this;b.axId=d.GetAxisId(),b.delete=d.Ysa,b.majorTickMark=d.MajorTickMark,b.minorTickMark=d.MinorTickMark,b.tickLblPos=d.TickLabelPosition,b.axPos=d.GetAxPos(),b.scaling=d.ToCT_Scaling(),b.spPr=a.prototype.ToShapeProperties.call(d),m(d.TickLabels)||(c=d.Esa.ToOOModel(),0===d.Chart.SeriesCollection.Count?b.numFmt=A:b.numFmt=c.CT_NumFmt,b.txPr=c.CT_TextBody),d.HasMajorGridlines&&!m(d.Vsa)&&(b.majorGridlines=d.Vsa.ToOOModel()),d.HasMinorGridlines&&!m(d.$sa)&&(b.minorGridlines=d.$sa.ToOOModel()),d.ysa&&(b.title=d.zsa.ToOOModel())},f.FromCT_AxBase=function(a){var b,c=this;m(a.delete)?1===c.fsa&&(c.Ysa=!1):c.Ysa=a.delete,m(a.majorTickMark)?c.MajorTickMark=3:c.MajorTickMark=a.majorTickMark,m(a.minorTickMark)||(c.MinorTickMark=a.minorTickMark),m(a.tickLblPos)||(c.TickLabelPosition=a.tickLblPos),c.FromCT_Scaling(a.scaling),c.FromShapeProperties(a.spPr),b={},b.CT_TextBody=a.txPr,b.CT_NumFmt=a.numFmt,c.Esa.FromOOModel(b),m(a.majorGridlines)?c.HasMajorGridlines=!1:(c.HasMajorGridlines=!0,c.Vsa.FromOOModel(a.majorGridlines)),m(a.minorGridlines)?c.HasMinorGridlines=!1:(c.HasMinorGridlines=!0,c.$sa.FromOOModel(a.minorGridlines)),m(a.title)||(c.zsa.FromOOModel(a.title),c.ysa=!0)},f.GetAxisPostion=function(){var a=this.GetAxPos(),b={0:"bottom",3:"top",1:"left",2:"right"};return b[a]},f.GetAxPos=function(){var a=this;return a.Bsa&&!m(a.Bsa.axPos)?a.Bsa.axPos:0===a.Type?n.IsBarChart(a.Chart.ChartType)?0===this.AxisGroup?1:2:0===this.AxisGroup?0:3:1===a.Type?0===this.AxisGroup?1:2:0},f.ToCT_Scaling=function(){var a=this,b=a.Bsa,c=b&&!m(b.scaling)?b.scaling:{};return c.orientation=a.ReversePlotOrder?0:1,a.IsValueOrDateScaleAxis()&&(a.MinimumScaleIsAuto||(c.min=a.MinimumScale),a.MaximumScaleIsAuto||(c.max=a.MaximumScale),0===a.ScaleType&&(c.logBase=a.LogBase)),c},f.FromCT_Scaling=function(a){if(a){var b=this;m(a.orientation)||(b.ReversePlotOrder=0===a.orientation),m(a.min)?b.Hsa=!0:(b.Fsa=a.min,b.Hsa=!1),m(a.max)?b.Isa=!0:(b.Gsa=a.max,b.Isa=!1),m(a.logBase)?b.Rsa=1:(b.osa=a.logBase,b.Rsa=0)}},f.GetCrossAtAx=function(){var a=this;return 0===a.Nc?a.Dsa.Item(1,a.fsa):a.Dsa.Item(0,a.fsa)},f.GetAxisId=function(){return m(this.Csa)&&(this.Csa=p.GenerateAxisId()),this.Csa},f._sa=function(a){var b=this;return a&&m(b.Vsa)&&(b.Vsa=b.GetDefaultGridlines()),b.Vsa},f.ata=function(a){var b=this;return a&&m(b.$sa)&&(b.$sa=b.GetDefaultGridlines()),b.$sa},f.ZOa=function(){var a=this.Tsa;return 0!==this.Nc||2===a||3===a},f.RVa=function(a){var b,c,d=this,e=d.Nc,f=d.fsa;0===f?0===e?b="primaryCategory":1===e&&(b="primaryValue"):1===f&&(0===e?b="secondaryCategory":1===e&&(b="secondaryValue")),c={},c[b]=a,this.Parent.RVa(c)},c}(r),h.Axis=f,g=function(){function a(a){this.Dsa=[],this.Spa=a}var b=a.prototype;s(b,"Parent",{get:function(){return this.Spa}}),s(b,"Count",{get:function(){return this.Dsa.length}}),b.Item=function(a,b){return b===B&&(b=0),this.GetAxis(a,b)},b.GetAxis=function(a,b){var c,d,e=this.Dsa;for(c=0;c0&&(c=this.GetAxis(2,0),c&&c.FromOOModel(b[0]))};function c(a,b,c,d){return a.filter(function(a){return a.axisType===d&&b.indexOf(a.axId)>=0&&c.indexOf(a.axId)>=0})[0]}function d(a,b){return a.filter(function(a){return 3===a.axisType&&a.axId===b.crossAx})[0]}return b.RestoreGroupAxes=function(a,b){var e,f,g,h=n.GetAxises(a,b),i=n.GetCategoryAxises(a),j=a.axes,k=c(j,h,i,0),l=c(j,h,i,3),o=c(j,h,i,1),p=A,q=this.GetAxis(0,b);k&&(q&&q.FromOOModel(k),p=d(j,k)),l&&(q&&3===q.ActualCategoryType&&q.FromOOModel(l),p=d(j,l)),o&&(q&&q.FromOOModel(o),p=d(j,o)),p&&(q&&(m(p.crosses)?m(p.crossesAt)||(q.CrossesAt=p.crossesAt):q.Crosses=p.crosses,m(p.crossBetween)||(q.AxisBetweenCategories=0===p.crossBetween)),e=this.GetAxis(1,b),e&&(e.FromOOModel(p),f=A,g=A,k?(f=k.crosses,g=k.crossesAt):o?(f=o.crosses,g=o.crossesAt):l&&(f=l.crosses,g=l.crossesAt),m(f)?m(g)||(e.CrossesAt=g):e.Crosses=f))},b.ResetOnChartTypeChanged=function(){var a,b=this.Dsa;for(a=0;a=0&&a<=500&&(this.dta=a)}}),q(c,"HasLegend",{get:function(){return this.fta},set:function(a){a!==this.fta&&(this.fta=a,a&&this.ota.LegendEntries.UpdateEntries())}}),q(c,"HasTitle",{get:function(){return this.ysa},set:function(a){this.ysa=a}}),q(c,"HeightPercent",{get:function(){return this.nta.Format.ThreeD._HeightPercent},set:function(a){this.nta.Format.ThreeD._HeightPercent=a}}),q(c,"Perspective",{get:function(){return this.nta.Format.ThreeD.Perspective},set:function(a){this.nta.Format.ThreeD.Perspective=a}}),q(c,"RightAngleAxes",{get:function(){return this.nta.Format.ThreeD._RightAngleAxes},set:function(a){this.nta.Format.ThreeD._RightAngleAxes=a}}),q(c,"Rotation",{get:function(){return this.nta.Format.ThreeD.RotationX},set:function(a){this.nta.Format.ThreeD.RotationX=a}}),c.InitChartGroups=function(){n(this.mta)&&(this.mta=new v(this))},q(c,"Area3DGroup",{get:function(){return this.GetFirstChartGroup(1)}}),q(c,"Bar3DGroup",{get:function(){return this.GetFirstChartGroup(2)}}),q(c,"Column3DGroup",{get:function(){return this.GetFirstChartGroup(3)}}),q(c,"Line3DGroup",{get:function(){return this.GetFirstChartGroup(4)}}),q(c,"Pie3DGroup",{get:function(){return this.GetFirstChartGroup(5)}}),q(c,"SurfaceGroup",{get:function(){return this.GetFirstChartGroup(6)}}),q(c,"AreaGroups",{get:function(){return this.GetChartGroups(7)}}),q(c,"BarGroups",{get:function(){return this.GetChartGroups(8)}}),q(c,"ColumnGroups",{get:function(){return this.GetChartGroups(9)}}),q(c,"DoughnutGroups",{get:function(){return this.GetChartGroups(10)}}),q(c,"LineGroups",{get:function(){return this.GetChartGroups(11)}}),q(c,"PieGroups",{get:function(){return this.GetChartGroups(12)}}),q(c,"RadarGroups",{get:function(){return this.GetChartGroups(13)}}),q(c,"XYGroups",{get:function(){return this.GetChartGroups(14)}}),q(c,"ChartGroups",{get:function(){return this.mta.Count>0?this.mta:F}}),c.SetSourceData=function(a,b){this.lta.SetSourceData(a,b)},c.Delete=function(){},c.UpdatePlotVisibleOnly=function(a){var b,c,d;for(this.eta=a,b=0,c=this.lta.AllSers;b0}}),c.HandleElementChanged=function(a,b,c,d,e){d===G&&(d=F),e===G&&(e=F);var f=this;f.IsElementChangedSuspended||(4===a?f.HandleSeriesCollectionChanged(b,c,d,e):3===a?f.HandleSeriesChanged(b,c,d,e):8===a?f.HandleCategoryAxisChanged(b,c,d,e):17===a?f.HandleChartGroupChanged(b,c,d,e):5===a&&f.HandleDataPointChanged(b,c,d,e))},c.FindChartGroup=function(a,b){var c,d,e,f=p.MapToGroupType(a),g=this.mta;for(c=0,d=g.Count;ch?l.PlotOrder===i&&l.SetPlotOrderInternal(h):l.PlotOrder>=i&&l.SetPlotOrderInternal(l.PlotOrder+1))},c.HandleCategoryAxisChanged=function(a,b,c,d){var e,f=a;b===r.CategoryNames?this.lta.SyncOneDimensionSersXValues(f.AxisGroup,c):b===r.CategoryType&&(e=f.CategoryType,0===e?f.ActualCategoryType=this.DetectCatAxisCategoryType(f.AxisGroup):f.ActualCategoryType=e)},c.HandleChartGroupChanged=function(a,b,c,d){var e,f,g,h=a;if(b===r.SplitType||b===r.SplitValue)for(e=0,f=h.GetSers();e1||!n(b.wta)&&2===b.wta.ActualCategoryType)&&c.UpdateXValuesMaxMin(0),(a>1||!n(b.xta)&&2===b.xta.ActualCategoryType)&&c.UpdateXValuesMaxMin(1)},c.UpdateAxes=function(){var a=this;a.Dsa||(a.Dsa=new x(a)),a.UpdateCatValAxes(),a.UpdateSeriesAxis(),a.UpdateAxisSettings()};function d(a,b,c,d){var e=a.Item(b,c);return!e&&d&&(e=a.Add(b,c)),e}return c.UpdateCatValAxes=function(){var a,b,c,e=this,f=e.Dsa,g=!1,h=!1;if(p.IsAnyPieChart(e.e8))g=!1,h=!1;else for(a=0,b=e.lta.Count;a0&&(a=d(this.Dsa,0,0),n(a)||(a.NoMultiLvlLbl=!f.some(function(a){return a.IsMultiLevelXValues}))),b=e.GetSers(!0,1),b.length>0&&(c=d(this.Dsa,0,1),n(c)||(c.NoMultiLvlLbl=!b.some(function(a){return a.IsMultiLevelXValues})))},c.UpdateFormat=function(){var a=this,b=a.nta.Format.ThreeD;p.Is3DChart(a.e8)&&(p.IsPieChart(a.e8)?(b.RotationX=0,b.RotationY=30):46===a.e8||47===a.e8?(b.RotationX=0,b.RotationY=90,b.Perspective=0):(b.RotationX=20,b.RotationY=15))},c.UpdateAxisSettings=function(a){a===G&&(a=F);var b=this;b.UpdateAxisActualCatType(a),n(b.uta)||(46===b.e8||47===b.e8?b.uta.TickLabelPosition=3:b.uta.TickLabelPosition=2)},c.UpdateAxisActualCatType=function(a){a===G&&(a=F);var b=this;n(b.wta)||0!==b.wta.CategoryType||!n(a)&&0!==a||(b.wta.ActualCategoryType=b.DetectCatAxisCategoryType(0)),n(b.xta)||0!==b.xta.CategoryType||!n(a)&&1!==a||(b.xta.ActualCategoryType=b.DetectCatAxisCategoryType(1))},c.UpdateOnChartTypeChanged=function(){var a,b,c=this;c.ResetSeriesByChartType(),c.UpdateAxes(),c.Dsa.ResetOnChartTypeChanged(),c.UpdateSeriesCollectionMinMax(),c.UpdateFormat(),a=p.MapToGroupType(c.e8),b=c.ita[a],b&&b.Reset()},c.UpdateChartTypeBySeries=function(){var a,b,c,d,e,f,g,h=this,i=h.e8,j=h.lta,k=j.Count;if(0===k)return!1;for(a=j.Get(0),b=a.InnerChartType,c=a.AxisGroup,d=!0,e=i,f=1;f1?3:1},c.AreAllFirstSerXValuesDateTime=function(a){var b=this.lta.Item(0,a);return!n(b)&&(!n(b.XValuesRefers)&&p.AreValuesDateTime(this.kta.sheet(),b.XValuesRefers,this.PlotVisibleOnly))},c.GetDefaultFloor=function(){var a,c=new b(this);return p.IsAreaChart(this.e8)&&p.Is3DChart(this.e8)?(a=c.Format.Line,a.Weight=1,a.Color.ObjectThemeColor=1,a.Color.Brightness=r.DefaultLineColorBrightness):c.Thickness=0,c},c.GetStockChartSersCount=function(a){return 49===a?3:50===a||51===a?4:52===a?5:-1},c.HasChartGroups=function(a){var b,c,d;for(b=0,c=this.lta.AllSers;b0?b.Get(0):F},c.FromOOModel=function(a){var b=this;b.zta=a,n(a)||(b.FromCT_ChartArea(a),n(b.zta.chart)||(b.mta.startCache(),b.FromCT_Chart(b.zta.chart),b.mta.endCache()),n(b.zta.userShapes)||b.FromCT_UserShapes(b.zta.userShapes))},c.FromCT_ChartArea=function(a){var b,c={};c.RoundedCorners=!n(a.roundedCorners)&&a.roundedCorners,c.SpPr=a.spPr,c.TxPr=a.txPr,this.nta.FromOOModel(c),n(a.chart)&&n(a.spPr)||(b={},n(a.chart)||(b.View3D=a.chart.view3D),n(a.spPr)||(b.Scene3D=a.spPr.scene3d,b.Shape3D=a.spPr.sp3d),n(b.View3D)&&n(b.Shape3D)&&n(b.Scene3D)||this.nta.FormatInternal.ThreeD.FromOOModel(b))},c.ToOOModel=function(){var a,b,c=this,d=n(c.zta)?{typeName:"chartSpace"}:c.zta;return n(c.nta)||(d.roundedCorners=c.nta.RoundedCorners),d.chart=c.ToCT_Chart(),n(c.nta)||(a=c.nta.ToOOModel(),d.spPr=a.SpPr,d.txPr=a.TxPr),b=c.ToCT_UserShapes(),b&&(d.userShapes=b),d},c.ToCT_UserShapes=function(){return 0===this.hta.length?F:this.hta.map(function(a){return a.toJSON()})},c.FromCT_UserShapes=function(a){var b=this,c=b.kta.sheet();a&&a.forEach(function(a){if(a){var d=F;a.chartSpace?d=new h.Chart(c):a.src&&(d=new i.Picture),d&&(d.fromJSON(a),b.hta.push(d))}})},c.ToCT_Chart=function(){var a=this,b=n(a.zta)||n(a.zta.chart)?{}:a.zta.chart;return a.HasTitle?(b.title=a.zsa.ToOOModel(),b.autoTitleDeleted=!1):(delete b.title,b.autoTitleDeleted=!0),a.ToCT_3DChartProps(b),b.plotArea=a.pta.ToOOModel(),a.HasLegend?b.legend=a.ota.ToOOModel():delete b.legend,b.plotVisOnly=a.PlotVisibleOnly,b.dispBlanksAs=a.DisplayBlanksAs,b.showDLblsOverMax=a.ShowDataLabelsOverMaximum,b.pivotFmts&&0===b.pivotFmts.length&&delete b.pivotFmts,b},c.FromCT_Chart=function(a){var c,d,e=this;if(e.e8=p.GetChartType(a.plotArea),n(a.title)?e.ysa=!1:(e.ysa=!0,e.zsa=new z(e),e.zsa.FromOOModel(a.title)),e.UpdatePlotVisibleOnly(!!n(a.plotVisOnly)||a.plotVisOnly),!n(a.plotArea))for(e.pta.FromOOModel(a.plotArea),c=0,d=e.mta.Count;c=0}function R(a,b,c){var d,e,f,g,h,i,j,k,l,m,n,o;if(a&&b){if(D(b.chartType)||(a.ChartType=b.chartType),D(b.axisGroup)||(a.AxisGroup=b.axisGroup),d=u.IsPieOrDoughnutChart(a.ChartType),b.backColor)if(d)for(e=a.Points,f=e.Count,g=P(b.backColor,","),h=0;h0)){for(c=a[0],d=1;d=0&&this.Jta.splice(b,1)},b.IndexOf=function(a){return this.Jta.indexOf(a)},b.RestoreTrendlines=function(a){var b,c,d,e;for(this.Jta=[],b=0,c=a;b400&&(c=400),c<0&&(c=0),b.Yta=c,b.Dirty(1))}}),v(d,"Format",{get:function(){return this.ChartFormat}}),d.getFillColor=function(a){return x(this.Format.Fill,a)},d.getLineColor=function(a){return x(this.Format.Line,a)},d.getMarkerFillColor=function(a){return x(this.MarkerFormat.Fill,a)},v(d,"LineWidth",{get:function(){var a=this.Format.Line.Weight;return a>0?a:0},set:function(a){D(a)||(this.Format.Line.Weight=a)}}),v(d,"Formula",{get:function(){return"="+this.GetFormulaString()},set:function(a){"="===a[0]&&(a=a.substr(1)),a!==this.GetFormulaString()&&this.UpdateFormulas(a)}}),v(d,"FormulaR1C1",{get:function(){return"="+this.GetFormulaString(!0)},set:function(a){"="===a[0]&&(a=a.substr(1)),a!==this.GetFormulaString(!0)&&this.UpdateFormulas(a)}}),v(d,"Has3DEffect",{get:function(){return this.Zta},set:function(a){this.Zta=a,this.Dirty(4)}}),v(d,"HasDataLabels",{get:function(){return this.$ta},set:function(a){var b=this;b.$ta=a,a&&(b.DataLabels.ShowValue=!0,b.DataLabels.ShowLeaderLines=!0),D(b.Qta)||b.Qta.UpdateDeleted(!a)}}),v(d,"InvertColor",{get:function(){var a=this;return D(a.ic)&&(a.ic=new F(a.Chart)),this.ic}}),v(d,"InvertIfNegative",{get:function(){return this._ta},set:function(a){this._ta=a,this.Dirty(8)}}),v(d,"MarkerFormat",{get:function(){var a=this;return D(a.Pta)&&(a.Pta=a.CreateMarkerFormat()),a.Pta}}),v(d,"MarkerSize",{get:function(){return this.aua},set:function(a){this.aua=a,this.Dirty(32)}}),v(d,"MarkerStyle",{get:function(){return this.bua},set:function(a){this.bua=a,this.Dirty(64)}}),v(d,"Name",{get:function(){return this.Cj},set:function(a){this.SetNameInternal(a)}}),v(d,"Parent",{get:function(){return this.GetParentGroup()}}),v(d,"PictureType",{get:function(){return this.cua},set:function(a){this.cua=a,this.Dirty(128)}}),v(d,"PictureUnit",{get:function(){return this.dua},set:function(a){this.dua=a,this.Dirty(256)}}),v(d,"Smooth",{get:function(){return this.eua},set:function(a){this.eua=a}}),v(d,"Values",{get:function(){return u.IsOfPieChart(this.Xta)?this.ProcessOfPieValues():this.Ey},set:function(a){this.SetValuesInternal(a)}}),v(d,"XValues",{get:function(){return this.GetXValues()},set:function(a){this.SetXValuesInternal(a),this.Chart.HandleElementChanged(3,this,z.XValues,a)}}),v(d,"BubbleSizes",{get:function(){return this.GetBubbleSizes()},set:function(a){this.SetBubbleSizesInternal(a)}}),v(d,"DataLabels",{get:function(){var a=this;return D(a.Qta)&&(a.Qta=new I(a)),a.Qta}}),v(d,"Points",{get:function(){return this.fua}}),v(d,"Trendlines",{get:function(){return this.gua}}),v(d,"PlotOrder",{get:function(){return this.Tta===-1?this.Index+1:this.Tta},set:function(a){var b,c=this;c.PlotOrder!==a&&a>0&&a<=c.Kta.Count&&(b=c.Tta===-1?c.Index+1:c.Tta,c.Tta=a,c.Chart.HandleElementChanged(3,c,z.PlotOrder,a,b))}}),v(d,"FormatInternal",{get:function(){var a=this;return D(a.Kb)&&(a.Kb=a.CreateFormat()),this.Kb}}),v(d,"AutoColorIndex",{get:function(){return this.Sta!==-1?this.Sta:this.SourceIndex}}),v(d,"OwnerChartType",{get:function(){return this.Kta.Parent.ChartType}}),v(d,"PointsCount",{get:function(){var a=this;return u.IsOfPieChart(a.InnerChartType)?a.ValuesCount+1:a.ValuesCount}}),v(d,"ValuesCount",{get:function(){return D(this.Ey)?0:this.Ey.length}}),v(d,"PlotVisibleOnly",{get:function(){return this.eta},set:function(a){var b=this;a!==b.eta&&(b.eta=a,b.RefreshValuesIfNeed())}}),v(d,"IsHidden",{get:function(){var a=this;return!D(a.Nta)&&a.Nta.length>0&&a.AreAllCellsHidden(a.Nta)}}),v(d,"SourceIndex",{get:function(){return this.Kta.IndexOfSource(this)}}),v(d,"Worksheet",{get:function(){return this.Kta.Parent.Parent.sheet()}}),v(d,"IsMultiLevelXValues",{get:function(){return this.Rta},set:function(a){var b=this;a!==b.Rta&&(b.Rta=a,b.Chart.HandleElementChanged(3,b,z.IsMultiLevelXValues))}}),v(d,"NameRefer",{get:function(){return this.Lta}}),v(d,"XValuesRefers",{get:function(){return this.Mta}}),v(d,"ValuesRefers",{get:function(){return this.Nta}}),v(d,"BubbleSizesRefers",{get:function(){return this.Ota}}),v(d,"ValuesMinMax",{get:function(){return this.Uta},set:function(a){var b=this;a!==b.Uta&&(b.Uta=a,b.Chart.HandleElementChanged(3,b,z.ValuesMinMax))}}),v(d,"XValuesMinMax",{get:function(){return this.Vta},set:function(a){var b=this;a!==b.Vta&&(b.Vta=a,b.Chart.HandleElementChanged(3,b,z.XValuesMinMax))}}),v(d,"AreAllXValuesDateTime",{get:function(){return this.hua},set:function(a){var b=this;a!==b.hua&&(b.hua=a,b.Chart.HandleElementChanged(3,b,z.AreAllXValuesDateTime))}}),v(d,"InnerChartType",{get:function(){return this.Xta}}),v(d,"Chart",{get:function(){return this.Kta.Parent}}),l(d,{Init:function(){var a=this;a.Pta=a.CreateMarkerFormat(),a.gta=N,a.ic=new F(a.Chart),a.ic.AutoColorFormat=a.AutoInvertColorFormat,a.gua=new f(a),a.fua=new H(a),a.cua=0,a.dua=1,a.bua=4,a.aua=z.DefaultMarkerSize,a.hua=!1,a.UpdateSettingsByChartType()},iua:function(){return this.ChartType+(this.AxisGroup?"F":"")},fQa:function(){var a=this;a.Wta&&a.Wta.dLbls&&delete a.Wta.dLbls},SetFillColor:function(a,b){this.Format.Fill.Color.setColor(a,b)},SetLineColor:function(a,b){this.Format.Line.Color.setColor(a,b)},SetMarkerFillColor:function(a,b){this.MarkerFormat.Fill.Color.setColor(a,b)},SetMarkerLineColor:function(a,b){this.MarkerFormat.Line.Color.setColor(a,b)},UpdateFormula:function(a,b){var c,d;b===O&&(b=!1),a&&(c=this,d=a.split(","),d.length>5&&(d.length=4),d.forEach(function(a,d){if(a)switch(d){case 0:a=a.replace("SERIES(",""),c.UpdateNameFormula(a,b);break;case 1:c.UpdateXValuesFormula(a,b);break;case 2:c.UpdateValuesFormula(a,b);break;case 4:a=a.replace(")",""),c.UpdateBubbleFormula(a)}}))},GetDataLabels:function(){return this.Qta},ClearFormats:function(){this.ChartFormat=this.GetDefaultFormat()},Delete:function(){this.Kta.DeleteSeries(this),this.Kta=N},RefreshValuesIfNeed:function(a,b){var c,d,e,f,g,h,i=this;D(a)&&(c=i.Worksheet.jua(!0),d=i.Worksheet.jua(!1),(c.length>0||d.length>0)&&(a=[],[].push.apply(a,i.SegmentToRects(c,!0)),[].push.apply(a,i.SegmentToRects(d,!1)))),e=i.Lta,e&&(b||i.InterectWith([e],a))&&i.UpdateNameByRefer(e),f=i.Mta,f&&f.length>0&&(b||i.InterectWith(f,a))&&i.UpdateXValuesByRefers(f),g=i.Nta,g&&g.length>0&&(b||i.InterectWith(g,a))&&i.UpdateValuesByRefers(g),h=i.Ota,h&&h.length>0&&(b||i.InterectWith(h,a))&&i.UpdateBubbleSizesRefers(h)},ClearBarShapeInternal:function(){this.gta=N},SegmentToRects:function(a,b){var c,d,e,f,g,h=[];for(c=0;c0;break;case 2:c=!D(b.Mta)&&b.Mta.length>0;break;case 3:c=!D(b.Ota)&&b.Ota.length>0}return c},UpdateOrder:function(a){this.Tta>a&&this.Tta--},SetNameInternal:function(a){this.Cj=a,this.ClearNameFormulaInternal()},SetXValuesInternal:function(a){this.UpdateXValues(a),this.ClearXValuesFormulaInternal()},SetValuesInternal:function(a){this.UpdateNumberValues(a),this.ClearValuesFormulaInternal()},SetBubbleSizesInternal:function(a){this.kua=a,this.ClearBubbleFormulaInternal()},SetPlotOrderInternal:function(a){this.Tta=a},ResetOnOwnerChartTypeChanged:function(a,b){var c=this;a===O&&(a=N),b===O&&(b=N),c.Xta=D(a)?c.Kta.Parent.ChartType:a,c.Wta=N,c.fsa=D(b)?0:b,c.sQa=N,c.UpdateSettingsByChartType()},UpdateSecondPlotPoints:function(){var a,b,c,d,e,f,g,h,i,j,k,l,m=this,n=m.Parent;if(D(n)||3!==n.SplitType){for(a=0,b=m.Points.Count;a1?"("+c+")":c:m.ToFormulaArray(m.lua,!0),j=d?m.Nta.length>1?"("+d+")":d:m.ToFormulaArray(m.Ey,!1),k=""+f,u.IsBubbleChart(m.Xta)?(l=e?m.Ota.length>1?"("+e+")":e:m.ToFormulaArray(m.BubbleSizes,!1),"SERIES("+g+","+i+","+j+","+k+","+l+")"):"SERIES("+g+","+i+","+j+","+k+")"},ToFormulaArray:function(a,b){var c,d,e,f,g;if(D(a)||0===a.length)return"";if(c=a,d=b&&c.some(function(a){return"string"==typeof a}),e=[],e.push("{"),!D(a)&&a.length>0)for(f=0;f0&&e.push(","),g=a[f],D(g)?e.push("#N/A"):"string"==typeof g?(e.push('"'),e.push(g),e.push('"')):d?(e.push('"'),e.push(""+g),e.push('"')):e.push(g);return e.push("}"),e.join("")},UpdateFormulas:function(a,b){var c,d,e=this;b===O&&(b=!1),c=e.Worksheet.Kpa(a,0,0,b),d=c.references,d&&(d[0]&&e.SetNameRefer(d[0]),d[1]&&e.SetXValuesRefers([d[1]]),d[2]&&e.SetValuesRefers([d[2]]),d[3]&&e.SetBubbleSizesRefers([d[3]]))},ClearNameFormula:function(){this.ClearNameFormulaInternal(),this.Cj=N},ClearNameFormulaInternal:function(){this.UpdateNameReferCore(N)},ClearXValuesFormula:function(){this.ClearXValuesFormulaInternal(),this.UpdateXValues(N)},ClearXValuesFormulaInternal:function(){this.UpdateXValuesRefersCore(N)},ClearValuesFormula:function(){this.ClearValuesFormulaInternal(),this.UpdateValues(N)},ClearValuesFormulaInternal:function(){this.UpdateValuesRefersCore(N)},ClearBubbleFormula:function(){this.ClearBubbleFormulaInternal(),this.UpdateBubbleSizes(N)},ClearBubbleFormulaInternal:function(){this.UpdateBubbleSizesRefersCore(N)},UpdateNameFormula:function(a,b){var c,d,e;b===O&&(b=!1),c=this.Worksheet.Kpa(a,0,0,b),d=c.references,e=d?d[0]:N,this.SetNameRefer(e)},UpdateXValuesFormula:function(a,b){var c,d;b===O&&(b=!1),c=this.Worksheet.Kpa(a,0,0,b),d=c.references,d.length>0?this.SetXValuesRefers(d):this.SetXValuesInternal(c.values)},UpdateValuesFormula:function(a,b){var c,d;b===O&&(b=!1),c=this.Worksheet.Kpa(a,0,0,b),d=c.references,d.length>0?this.SetValuesRefers(d):this.SetValuesInternal(c.values); },UpdateBubbleFormula:function(a,b){var c,d;b===O&&(b=!1),c=this.Worksheet.Kpa(a,0,0,b),d=c.references,d.length>0?this.SetBubbleSizesRefers(d):this.SetBubbleSizesInternal(c.values)},RemoveEquals:function(a){return a&&"="===a[0]&&(a=a.substr(1)),a},SetNameRefer:function(a){this.UpdateNameRefer(a)},SetXValuesRefers:function(a){this.UpdateXValuesRefers(a),this.IsMultiLevelXValues=!D(a)&&a.length>0&&a[0].RowCount>1&&a[0].ColumnCount>1},SetValuesRefers:function(a){this.CheckRefers(a),this.UpdateValuesRefers(a)},SetBubbleSizesRefers:function(a){this.CheckRefers(a),this.UpdateBubbleSizesRefers(a)},UpdateNameRefer:function(a){this.UpdateNameReferCore(a),this.UpdateNameByRefer(a)},UpdateXValuesRefers:function(a){this.UpdateXValuesRefersCore(a),this.UpdateXValuesByRefers(a)},UpdateValuesRefers:function(a){this.UpdateValuesRefersCore(a),this.UpdateValuesByRefers(a)},UpdateBubbleSizesRefers:function(a){this.UpdateBubbleSizesRefersCore(a),this.UpdateSizessByRefers(a)},UpdateNameReferCore:function(a){this.Lta=a},UpdateXValuesRefersCore:function(a){D(a)||0===a.length?this.Mta=[]:this.Mta=a},UpdateValuesRefersCore:function(a){D(a)||0===a.length?this.Nta=[]:this.Nta=a},UpdateBubbleSizesRefersCore:function(a){D(a)||0===a.length?this.Ota=[]:this.Ota=a},GetValuesFromRefers:function(a){var b,c,d,e,f,g,h,i,j,k=this,l=[],m=k.PlotVisibleOnly,n=u.GetValuesFromCellRefers(k.Worksheet,a,m);for(b=0,c=n;b0?(b=c.IsMultiLevelXValues?c.GetMultiLevelValuesFromRefers(a):c.GetValuesFromRefers(a),c.UpdateXValues(b)):c.UpdateXValues(N)},UpdateValuesByRefers:function(a){if(!D(a)&&a.length>0){var b=this.GetValuesFromRefers(a);this.UpdateValues(b)}else this.UpdateValues([])},UpdateSizessByRefers:function(a){if(!D(a)&&a.length>0){var b=this.GetValuesFromRefers(a);this.UpdateBubbleSizes(b)}else this.UpdateBubbleSizes([])},UpdateValues:function(a){var b=[];u.TryAllToNumbers(a,b),this.UpdateNumberValues(b)},cPa:function(){var a,c,d,e,f,g,h,i,j,k,l,m,n,o,p=this,q=p.Ey,r=b.getMinMaxValues(q),t=p.Xta;if(!D(q)&&q.length>0&&u.IsStackedChart(t)){for(a=p.Kta.GetValidSers(p.AxisGroup).filter(function(a){return a.Xta===t}).map(function(a){return a.Ey}),c=0,d=0,e=[],f=0;f=0?h+=k:g+=k,i+=k);e.push(i),cg&&(d=g)}0===c&&(c=Math.max.apply(null,e)),0===d&&(d=Math.min.apply(null,e)),a.length>0&&(l=a[0],l.length>0&&(m=Math.min.apply(null,l),n=Math.max.apply(null,l),o=s.calcMinMax(d,c,!1,this.Chart),o.Maxm&&(d=0))),r.Max=c,r.Min=d}p.ValuesMinMax=r},UpdateNumberValues:function(a){var b=this;b.Ey=a,b.cPa(),u.IsOfPieChart(b.InnerChartType)&&b.UpdateSecondPlotPoints(),a&&this.wWa(a.length)},wWa:function(a){var b=this,c=b.xWa;D(c)||(delete b.xWa,a!==c&&(b.XValuesMinMax={Min:1,Max:a}))},UpdateBubbleSizes:function(a){var b,c,d,e,f=[];for(b=0,c=a;b0&&null===a[0],c=!u.AreAllNull(a),d=this.Chart,e=d.Axes.GetAxis(0,this.AxisGroup),f=a&&e&&!e.IsValueOrDateScaleAxis();return b&&c&&f},GetOneDimensionXValues:function(){var a=this.PointsCount,b=this.GetAdjustedOneDimensionXValues(a),c=b.some(function(a){return"string"==typeof a});return(c||this.XValuesNeedText(b))&&(b=this.GetXValuesText(a)),b},GetAdjustedOneDimensionXValues:function(a){var b=this.lua,c=[];return c=D(b)||0===b.length?this.AutoGenerateXValues():b.length!==a?this.AdjustList(b,a):b},GetMultiDimensionXValues:function(){var a,b=this,c=b.lua,d=[];return D(c)||0===c.length?d=b.AutoGenerateXValues():u.AreAllNumbers(c)?(d=c,a=b.PointsCount,d.length>a&&(d=b.AdjustList(d,a))):d=b.AutoGenerateXValues(),d},AdjustList:function(a,b){var c,d=[];if([].push.apply(d,a),d.length>b)d.splice(b,d.length-b);else for(c=0;c<=b-d.length;c++)d.push(N);return d},AutoGenerateXValues:function(){var a,b=this.PointsCount,c=[];for(a=0;a1&&e.ColumnCount>1)throw Error("The Range must contain single row or column!")}},ProcessOfPieValues:function(){var a,b,c,d,e=this,f=e.Ey;if(D(f)||0===f.length)return f;for(a=0,b=0;bb.length?"":b[a]},GetCatText:function(a){var b=this.PointsCount;return u.IsOfPieChart(this.Xta)&&a===b-1?"":this.GetXValueText(a)},GetPercentageValue:function(a){var b,c,d,e=this.Values[a],f=0;for(b=0,c=this.Values;b0&&(d=i.GetStylesFromRefers(i.XValuesRefers)),e=i.GetAdjustedOneDimensionXValues(a),f=0;f0&&f0)for(a=0,b=this.gua.GetLines();a0){for(m=[],n=0,o=b;n0&&(e.pt=g,h.length>0&&(S(h)?e.formatCode=h[0]:e.formatCodes=h)),e},ToCT_StrData:function(a){var b=a.map(function(a){return!D(a)&&a.toLocaleString?a.toLocaleString():a});return{ptCount:a.length,pt:b}},ToCT_MultiLvlStrData:function(){var a,b,c,d=this,e={lvl:[]};for(e.ptCount=d.PointsCount,a=1===d.Kta.RowCol?d.Mta[0].ColumnCount:d.Mta[0].RowCount,b=0;b0){for(j=d.Ata.length,d.RVa({type:"add",index:j,count:i}),k=j,D(a)||(k=a),l=0;l0)for(a.sort(function(a,b){return a-b});a.length;){var b=a.pop();this.Get(b).Delete()}},c.TVa=function(a){this.RVa({type:"updateSeriesInCalc",series:a})},c.RVa=function(a){this.ChartView.RVa("series",a)},c.RUa=function(a){var b,c,d,e,f,g;if(a&&a.type)if(b=this,c=a.type,d=a.index,e=a.count,f=a.series,"add"===c)for(g=0;g0&&d0&&d0&&(m=j.XValuesRefers.slice(0),m.push(u.CreateReference(a.Worksheet.name(),e.Row,e.Column,e.RowCount,e.ColumnCount)),j.UpdateXValuesFormula(u.ReferencesToFormula(m)))},c.Get=function(a){return this.Item(a,N)},c.NewSeries=function(){var a=this,b=new g(a);return a.Ata.push(b),b},v(c,"PrimaryValuesMinMax",{get:function(){return this.nua},set:function(a){var b=this;a!==b.nua&&(b.nua=a,b.Spa.HandleElementChanged(4,b,z.PrimaryValuesMinMax))}}),v(c,"SecondaryValuesMinMax",{get:function(){return this.oua},set:function(a){var b=this;a!==b.oua&&(b.oua=a,b.Spa.HandleElementChanged(4,b,z.SecondaryValuesMinMax))}}),v(c,"PrimaryXValuesMinMax",{get:function(){return this.pua},set:function(a){var b=this;a!==b.pua&&(b.pua=a,b.Spa.HandleElementChanged(4,b,z.PrimaryXValuesMinMax))}}),v(c,"SecondaryXValuesMinMax",{get:function(){return this.qua},set:function(a){var b=this;a!==b.qua&&(b.qua=a,b.Spa.HandleElementChanged(4,b,z.SecondaryXValuesMinMax))}}),v(c,"AllSers",{get:function(){return this.Ata}}),v(c,"RowCol",{get:function(){return D(this._S)?1:this._S}}),c.IndexOf=function(a){var b=a;return b.PlotVisibleOnly&&b.IsHidden?-1:this.GetValidSers().indexOf(a)},c.IndexOfSource=function(a){return this.Ata.indexOf(a)},c.AdjustIndex=function(a,b){var c,d,e,f,g,h=this,i=h.GetValidSers();a<0||a>=i.length||b<0||b>=i.length||(c=h.MapToSourceIndex(a),d=h.MapToSourceIndex(b),e=h.Ata,f=e[c],g=e[d],e[c]=g,e[d]=f)},c.GetSers=function(a,b){return a===O&&(a=!0),a?this.Ata.filter(function(a){return!a.IsHidden&&(D(b)||a.AxisGroup===b)}):D(b)?this.Ata:this.Ata.filter(function(a){return a.AxisGroup===b})},c.GetValidSers=function(a){return this.GetSers(this.Spa.PlotVisibleOnly,a)},c.DetectRanges2=function(a,b,c,d,e,f){var g,h,i=this.DetectRanges(a,b,c,d,e,f);return u.GetDimensioin(this.Spa.ChartType)>1&&D(f.category)&&!D(f.data)&&(h=f.data,i?h.ColumnCount>1&&(f.category=new B(h.Row,h.Column,h.RowCount,1),f.data=new B(h.Row,h.Column+1,h.RowCount,h.ColumnCount-1),D(f.seriesName)||(g=f.seriesName,f.seriesName=new B(g.Row,g.Column+1,g.RowCount,g.ColumnCount-1))):f.data.RowCount>1&&(f.category=new B(h.Row,h.Column,1,h.ColumnCount),f.data=new B(h.Row+1,h.Column,h.RowCount-1,h.ColumnCount),D(f.seriesName)||(g=f.seriesName,f.seriesName=new B(g.Row+1,g.Column,h.RowCount-1,g.ColumnCount)))),i},c.GenerateSeriesStructures=function(a,b,c,d){var e,f,g,h,i=this,j=i.Spa.Parent.sheet().Apa(a[0].WorksheetName),k=new B(a[0].Row,a[0].Column,a[0].RowCount,a[0].ColumnCount),l=N,m=N,n=N;return D(b)?(e={seriesName:N,category:N,data:N},f=i.DetectRanges2(j,k.Row,k.Column,k.RowCount,k.ColumnCount,e),l=e.seriesName,m=e.category,n=e.data,i._S=f?1:0):(i._S=b,D(c)&&D(d)&&(e={seriesName:N,category:N,data:N},f=i.DetectRanges2(j,k.Row,k.Column,k.RowCount,k.ColumnCount,e),l=e.seriesName,m=e.category,n=e.data,g=f?1:0,i._S!==g&&(h=m,m=l,l=h))),D(c)&&D(d)||(1===i._S?c&&d?(l=new B(k.Row,k.Column+1,1,k.ColumnCount-1),m=new B(k.Row+1,k.Column,k.RowCount-1,1),n=new B(k.Row+1,k.Column+1,k.RowCount-1,k.ColumnCount-1)):c?(l=new B(k.Row,k.Column,1,k.ColumnCount),m=N,n=new B(k.Row+1,k.Column,k.RowCount-1,k.ColumnCount)):d?(l=N,m=new B(k.Row,k.Column,k.RowCount,1),n=new B(k.Row,k.Column+1,k.RowCount,k.ColumnCount-1)):(l=N,m=N,n=new B(k.Row,k.Column,k.RowCount,k.ColumnCount)):c&&d?(l=new B(k.Row+1,k.Column,k.RowCount-1,1),m=new B(k.Row,k.Column+1,1,k.ColumnCount-1),n=new B(k.Row+1,k.Column+1,k.RowCount-1,k.ColumnCount-1)):c?(l=new B(k.Row,k.Column,k.RowCount,1),m=N,n=new B(k.Row,k.Column+1,k.RowCount,k.ColumnCount-1)):d?(l=N,m=new B(k.Row,k.Column,1,k.ColumnCount),n=new B(k.Row+1,k.Column,k.RowCount-1,k.ColumnCount)):(l=N,m=N,n=new B(k.Row,k.Column,k.RowCount,k.ColumnCount))),i.GenerateSeriesStructures2(a,i._S,l,m,n)},c.GenerateSeriesStructures2=function(a,b,c,e,f){var g,h,i,j,k,l,m,n,o,p,q,r,s,t,v,w,x,y=[];if(D(a)||0===a.length)return y;if(g=a[0].WorksheetName,h=a[0],i=D(b)?1:b,!D(f)){if(1===i)for(o=h.Column;o=e.Column+e.ColumnCount)&&(l=new d,D(c)||(l.Label=u.CreateReference(g,c.Row,o,c.RowCount,1)),l.Data.push(u.CreateReference(g,f.Row,o,f.RowCount,1)),D(e)||l.Categories.push(u.CreateReference(g,e.Row,e.Column,e.RowCount,e.ColumnCount)),y.push(l));else for(n=h.Row;n=e.Row+e.RowCount)&&(l=new d,D(c)||(l.Label=u.CreateReference(g,n,c.Column,1,c.ColumnCount)),l.Data.push(u.CreateReference(g,n,f.Column,1,f.ColumnCount)),D(e)||l.Categories.push(u.CreateReference(g,e.Row,e.Column,1,e.ColumnCount)),y.push(l));if(a.length>1)if(p=this.InSameColumnRowStrip(a)){if(1===this._S){for(q=f.Column,r=f.ColumnCount,o=q;o1?e>1?(f.category=new B(b,c+1,1,e-1),f.seriesName=new B(b+1,c,d-1,1),f.data=new B(b+1,c+1,d-1,e-1)):(f.seriesName=new B(b,c,1,1),f.data=new B(b+1,c,d-1,1)):(f.seriesName=new B(b,c,1,1),f.data=new B(b,c+1,d,e-1)):e>1?(e>1&&k-b>=1&&(f.category=new B(b,c+1,k-b,e-1)),d>1&&b+d>k&&(f.seriesName=new B(k,c,b+d-k,1)),f.data=new B(k,c+1,b+d-k,e-1)):(f.seriesName=N,d>1&&k>b&&kb?f.data=new B(k,c,b+d-k,e):f.data=new B(b,c,d,e))}else{for(j--;k1?(e>1&&k-b>=1&&(f.category=new B(b,l,1,m)),d>1&&e>m&&(f.seriesName=new B(b+1,c,d-1,e-m)),f.data=new B(b+1,l,d-1,m)):(f.seriesName=new B(b,c,d,l-c),f.data=new B(b,l,d,m)):(e>1&&k-b>=1&&(f.category=new B(b,l,k-b,m)),d>1&&b+d>k&&e>m&&(f.seriesName=new B(k,c,b+d-k,e-m)),f.data=new B(k,l,b+d-k,m))}}else if(n=c+e-1,o=b+d-1,e>1&&d>1){for(j=n,m=0;j>=c&&t.IsNumericData(a.mua(o,j));)m++,j--;if(p=0===m,p&&(m=1,j--),e>1){if(l=j+1,j=o-1,q=1,!p)for(;j>=b&&t.IsNumericData(a.mua(j,n));)q++,j--;m>0&&l>=c&&j+1>b&&(f.category=new B(b,l,j+1-b,m)),q>0&&l>c&&(f.seriesName=new B(j+1,c,q,l-c)),f.data=new B(j+1,l,q,m)}}else if(d>1)if(t.IsNumericData(a.mua(b,c)))f.data=new B(b,c,d,e);else{for(j=o;j>=b&&t.IsNumericData(a.mua(j,c));)j--;j!==o||t.IsNumericData(a.mua(j,c))||j--,f.data=new B(j+1,c,o-j,e),j>=b&&(f.seriesName=new B(b,c,j-b+1,e))}else if(t.IsNumericData(a.mua(b,c)))f.data=new B(b,c,d,e);else{for(j=n;j>=c&&t.IsNumericData(a.mua(b,j));)j--;j!==n||t.IsNumericData(a.mua(b,j))||j--,f.data=new B(b,j+1,d,n-j),j>=c&&(f.seriesName=new B(b,c,d,j-c+1))}if(!D(f.data)&&f.data.RowCount>f.data.ColumnCount&&f.data.RowCount>1&&(f.data.ColumnCount>1||1===f.data.ColumnCount&&(!D(f.seriesName)||!D(f.category))))return r=!1,D(f.seriesName)?D(f.category)||(r=f.category.Column===f.data.Column):r=f.seriesName.Row===f.data.Row,r&&(s=f.category,f.category=f.seriesName,f.seriesName=s),!0;if(!D(f.data)){if(1===f.data.RowCount)return!1;if(1===f.data.ColumnCount)return!0}return!D(f.seriesName)&&f.seriesName.Column===f.data.Column||!D(f.category)&&f.category.Row===f.data.Row},c.TrimCellRect=function(a,b,c,d,e){var f,g,h,i,j,k,l=a.getRowCount(),m=a.getColumnCount();if(0!==l&&0!==m){if(b===-1||0===b&&d===l){k=c===-1,k&&(c=0,e=m),b=0,d=l,f=!0;do{for(h=c,i=c+e;h0)},c.UpdateValuesMaxMin=function(a){0===a?this.UpdatePrimaryValuesMaxMin():this.UpdateSecondaryValuesMaxMin()},c.UpdateXValuesMaxMin=function(a){0===a?this.UpdatePrimaryXValuesMaxMin():this.UpdateSecondaryXValuesMaxMin()},c.Item=function(a,b){var c,d,e,f=this.GetSers(this.Spa.PlotVisibleOnly,b);if("number"==typeof a){if(a>=0&&af&&(f=e.length);return f};function e(a,b,c){(b||c)&&(a.HasDataLabels=!0,b&&a.DataLabels.mRa(b))}return c.nRa=function(a){var b,c,d,f;if(a)for(b=this.Ata,c=b.length,d=a.count,f=0;f=d)},c.AddSers=function(a,b,c){var d,e=this;if(e.Spa.SuspendElementChanged(),d=e.Parent.ChartType,u.IsBubbleChart(d))e.AddSersForBubble(a);else if(49===d||50===d){if(49===d&&3!==a.length)throw Error("To create this stock chart, arrange the data on your sheet in this order: high price, low price, closing price. Use dates or stock names as labels.");if(50===d&&4!==a.length)throw Error("To create this stock chart, arrange the data on your sheet in this order: opening price, high price, low price, closing price. Use dates or stock names as labels.");e.AddSersForStock(a)}else if(51===d||52===d){if(51===d&&4!==a.length)throw Error("To create this stock chart, arrange the data on your sheet in this order: volume traded, high price, low price, closing price. Use dates or stock names as labels.");if(52===d&&5!==a.length)throw Error("To create this stock chart, arrange the data on your sheet in this order: volume traded, opening price, high price, low price, closing price. Use dates or stock names as labels.");e.AddSersForVolumeStock(a)}else e.AddSersDefault(a,N,N,c);e.nRa(b),e.Spa.ResumeElementChanged(4,e,z.Collection)},c.AddSersDefault=function(a,b,c,d){var e,f,h,i=d&&d.length,j=i&&d.slice(-1)[0];for(e=0;e0}),this.AddSersForStock(b,1)},c.DeleteSeries=function(a){var b,c=this;c.UpdatePlotOrders(a.PlotOrder),b=c.Ata.indexOf(a),b>=0&&c.Ata.splice(b,1),c.Spa.HandleElementChanged(4,c,z.Collection)},c.UpdatePlotOrders=function(a){var b,c,d;for(b=0,c=this.Ata;b=0)for(o=m,p=0,q=o.ser;p=0?0:1,t=0,v=s.ser;t=0?0:1,y=0,A=m.ser;y0&&(d.AreAllXValuesDateTime=u.AreValuesDateTime(this.ChartView.sheet(),d.XValuesRefers,d.PlotVisibleOnly)))},c.SetSourceData=function(a,b){this.Ata.length=0,this.AddInteral(a,b,N,N)},c.AddInteral=function(a,b,c,d,e,f){var g,h=u.RangeToReferences(a);if(h.length>0){if(g=this.GenerateSeriesStructures(h,b,c,d),u.IsStockChart(this.Parent.ChartType)&&!u.AreValuesDateTime(this.ChartView.sheet(),g[0].Categories))throw Error("The xValues of stock chart should be date.");this.AddSers(g,e,f)}},a}(),o.SeriesCollection=h,a.exports=o}()},function(b,c){b.exports=a.Spread.CalcEngine},function(b,c){b.exports=a.Spread.Formatter},function(a,b,c){!function(){"use strict";var b,d,e,f,g,h,i,j,k=c(3),l=c(8).GC$,m=l.inherit,n=c(7),o=n.ChartElementBase,p=n.StatefulChartElementBase,q=n.ChartConstants,r=n.ChartUtility,s=r.defineProperty,t=r.colorFormatToString,u=n.UnitHelper,v=u.isNullOrUndefined,w=c(4).ColorSchemeIndex,x=c(10).ChartFormat,y=c(12).ColorFormat,z=c(9).DrawingText,A=c(27).GeneralFormatter,B=null,C=void 0;k.PointStates={Explosion:1,Format:2,Has3DEffect:4,InvertIfNegative:8,MarkerFormat:16,MarkerSize:32,MarkerStyle:64,PictureType:128,PictureUnit:256},b=function(a){m(b,a);function b(b,c){var d=a.call(this,b)||this;return d.tua=B,d.Ata=b,d.mi=c,d.dua=1,d.aua=5,d.bua=4,d}var c=b.prototype;return s(c,"DataLabel",{get:function(){return this.Ata.DataLabels.Get(this.mi)}}),s(c,"Explosion",{get:function(){return this.GetState(1)?this.Yta:this.Ata.Explosion},set:function(a){a!==this.Yta&&a>=0&&a<=400&&(this.Yta=a,this.Dirty(1))}}),s(c,"Format",{get:function(){return this.ChartFormat}}),c.getFillColor=function(a){return t(this.Format.Fill,a)},c.getLineColor=function(a){return t(this.Format.Line,a)},s(c,"Has3DEffect",{get:function(){return this.GetState(4)?this.Zta:this.Ata.Has3DEffect},set:function(a){this.Zta=a,this.Dirty(4)}}),s(c,"HasDataLabel",{get:function(){return!this.Ata.DataLabels.Get(this.mi).Deleted},set:function(a){this.Ata.DataLabels.Get(this.mi).Deleted=!a}}),s(c,"InvertIfNegative",{get:function(){return this.GetState(8)?this._ta:this.Ata.InvertIfNegative},set:function(a){this._ta=a,this.Dirty(8)}}),s(c,"MarkerFormat",{get:function(){var a=this;return v(a.Pta)&&(a.Pta=a.CreateMarkerFormat()),a.Pta}}),s(c,"MarkerSize",{get:function(){return this.GetState(32)?this.aua:this.Ata.MarkerSize},set:function(a){this.aua=a,this.Dirty(32)}}),s(c,"MarkerStyle",{get:function(){return this.GetState(64)?this.bua:this.Ata.MarkerStyle},set:function(a){this.bua=a,this.Dirty(64)}}),s(c,"Parent",{get:function(){return this.Ata}}),s(c,"PictureType",{get:function(){return this.GetState(128)?this.cua:this.Ata.PictureType},set:function(a){this.cua=a,this.Dirty(128)}}),s(c,"PictureUnit",{get:function(){return this.GetState(256)?this.dua:this.Ata.PictureUnit},set:function(a){this.dua=a,this.Dirty(256)}}),s(c,"SecondaryPlot",{get:function(){return this.uua},set:function(a){a!==this.uua&&(this.uua=a,this.Chart.HandleElementChanged(5,this,q.SecondaryPlot))}}),s(c,"Chart",{get:function(){return this.Ata.SeriesCollection.Parent}}),s(c,"Index",{get:function(){return this.mi}}),c.SetFillColor=function(a,b){this.Format.Fill.Color.setColor(a,b)},c.SetSecondaryPlotInteral=function(a){this.uua=a},c.GetValueText=function(a){return a===C&&(a=B),this.Ata.GetPointValueText(this.mi,a)},c.GetCatText=function(){return this.Ata.GetCatText(this.mi)},c.GetPercentageValue=function(){return this.Ata.GetPercentageValue(this.mi)},c.CreateFormat=function(){var a=this;return new x(a.Ata.SeriesCollection.Parent,a.Ata.FormatInternal,a.AutoFillColorFormat.bind(a),a.AutoLineColorFormat.bind(a))},c.GetDefaultFormat=function(){return a.prototype.GetDefaultFormat.call(this)},c.CreateMarkerFormat=function(){var a=this;return new x(a.Chart,a.Ata.MarkerFormat,a.AutoMarkerColorFormat.bind(a),a.AutoMarkerColorFormat.bind(a))},c.AutoFillColorFormat=function(){return r.IsFillSeries(this.Ata.InnerChartType)?this.GenerateAutoColor():B},c.AutoLineColorFormat=function(){return r.IsLineSeries(this.Ata.InnerChartType)?this.GenerateAutoColor():B},c.AutoMarkerColorFormat=function(){return r.IsMarkerSeries(this.Ata.InnerChartType)?this.GenerateAutoColor():B},c.GenerateAutoColor=function(){var a,b;return a=this.IsRenderVaryColors()?this.mi:this.Ata.AutoColorIndex,b=new y(this.Chart),b.ObjectThemeColor=w["Accent"+(a%6+1)],b},c.IsRenderVaryColors=function(){var a=this.Ata.Parent.VaryByCategories;return 1===this.Ata.SeriesCollection.Count&&a||r.IsAnyPieChart(this.Ata.InnerChartType)&&a},c.IsDirtyIncludingParent=function(b){b===C&&(b=!1);var c=this;return!(v(c.Kb)||!c.Kb.IsDirtyIncludingParent(b))||(!(v(c.Pta)||!c.Pta.IsDirtyIncludingParent(b))||a.prototype.IsDirtyIncludingParent.call(c,b))},c.OnParentChanged=function(a){var b=this;b.Ata=a,v(b.Kb)||(b.Kb.ParentStateful=b.Ata.ChartFormat),v(b.Pta)||(b.Pta.ParentStateful=b.Ata.MarkerFormat)},c.IsNegative=function(){return this.Ata.Values[this.mi]<0},c.MapToSourceIndex=function(a){var b,c,d,e,f,g,h,i,j=this;if(!j.Ata.PlotVisibleOnly||!j.Ata.HasRefers(1)||!j.Ata.HasHiddenValues())return a;for(b=0,c=0,d=0,e=j.Ata.ValuesRefers;d=d.Count?B:(c=d.fua[a])?c:(c=new b(d.Ata,a),d.fua[a]=c,c)},c.GetPoints=function(){return this.fua},c.RestorePoints=function(a){var b,c,d,e;if(this.ClearPoints(),!v(a))for(b=0,c=a;b=c.Count?B:(b=c.Gua[a])?b:(b=new g(c.Ata,a),c.Gua[a]=b,b)},c.UpdateDeleted=function(a){var b,c,d=this.Gua;for(b in d)c=d[b],v(c)||(c.Deleted=a)},c.ResetByChartType=function(){var b,c,d;for(a.prototype.ResetByChartType.call(this),b=0,c=this.Count;b0?b=a.GetFirstNumberFormat():v(a.Eua)||(b=a.Eua.NumberFormat)),b||"General"},c.GetFirstNumberFormat=function(){var a,b=this.Ata.ValuesRefers[0],c=this.Ata.Worksheet.Apa(b.WorksheetName),d=B;return v(c)||(a=c.ksa(b.Row,b.Column),v(a)||(d=a.FormatCode)),d||"General"},c.ToOOModel=function(){var b,c,d,e,f=this,g=a.prototype.ToOOModel.call(f);f.ShowLeaderLines&&(g.extLst={ext:[]},b={uri:"{CE6537A1-D6FC-4f65-9D91-7224C49458BB}"},g.extLst.ext.push(b),b.showLeaderLines=!0,g.showLeaderLines=!0,v(f.Fua)?delete g.leaderLines:g.leaderLines=f.Fua.ToOOModel()),c=[];for(d in f.Gua)e=f.Gua[d],v(e)||v(f.Qpa.TextRefer)&&!e.Deleted&&!e.IsDirtyIncludingParent()||c.push(e.ToOOModel());return c.length>0&&(g.dLbl=c),g},c.FromOOModel=function(b){var c,d,e,f,g,h,i,j=this;if(a.prototype.FromOOModel.call(j,b),j.Gua={},c=b.dLbl,!v(c))for(d=0,e=c;d0?(b={sheet:B,row:-1,col:-1},g.Ata.GetRowColIndex(a,g.mi,b),c=b.sheet,d=b.row,e=b.col,v(c)||d===-1||e===-1||(f=c.ksa(d,e),v(f)||(h=f.FormatCode))):v(g.Eua)||(h=g.Eua.NumberFormat)),h||"General"},c.GetText=function(){return this.AutoText?this.GetAutoText():this.Qpa.Text},c.GetAutoText=function(){var a,b=this,c=[],d=!1;return b.ShowSeriesName&&(a=b.Ata.Name,c.push(v(a)?"":a),d=!0),b.ShowCategoryName&&(d&&c.push(b.Separator),c.push(b.Ata.GetCatText(b.mi)),d=!0),b.ShowValue&&(d&&c.push(b.Separator),c.push(b.Ata.GetPointValueText(b.mi,b.NumberFormat)),d=!0),b.ShowBubbleSize&&r.IsBubbleChart(b.Ata.InnerChartType)&&(d&&c.push(b.Separator),c.push(""+b.Ata.BubbleSizes[b.mi]),d=!0),b.ShowPercentage&&r.IsPieOrDoughnutChart(b.Ata.InnerChartType)&&(d&&c.push(b.Separator),c.push(b.GetPercentText())),c.join("")},c.GetValueText=function(){var a=this;return a.GetState(8192)?a.NumberFormatLinked?a.Ata.GetPointValueText(a.mi):a.Ata.GetPointValueText(a.mi,a.NumberFormat):a.Qpa.Text},c.GetPercentText=function(){var a=this.GetNumberFormat(),b=new A("General"===a?"0%":a),c=this.Ata.GetPercentageValue(this.mi);return b.format(c)},c.FromOOModel=function(b){var c,d,e,f,g,h,i,j=this;if(a.prototype.FromOOModel.call(j,b),j.mi=b.idx,v(b.tx))v(b.txPr)||(i={},i.rich=b.txPr,j.ChartTextInternal.FromOOModel(i),j.Dua=!0,j.UnDirty(16384));else{if(c=b.tx.rich,v(b.tx.rich)&&!v(b.txPr)&&(b.tx.rich=b.txPr),j.ChartTextInternal.FromOOModel(b.tx),d=!1,e=b.extLst,!v(e)&&!v(e.ext))for(f=0,g=e.ext;f0){for(e=B,f=d.ext,h=0,i=f.length;h1)for(d=0;d0?b=[Q(b)||b[0]]:0===a.ChartType&&(b=P(b)),b}function S(a,b){var c,d,e,f=a.Name,g=f;if(f){if(b)if(d=b[f],d>0){for(e=0;e=0&&(c.symbolStrokeWidth=e),c):G}function U(a,b){return w.IsPieOrDoughnutChart(a.ChartType)?V(a.Points.Get(0),b):V(a,b)}function V(a,b){var c,d,e,f=a&&a.Format&&a.Format.Line;return f?(c=f.Weight,d={},c>=0&&(d.width=c),e=x(f,b),e&&(d.color=e),d):G}function W(a,b,c){var d,e,f,g=a.ChartType;switch(g){case 12:case 6:case 15:d={type:H};break;case 13:case 16:case 14:case 17:d={type:H,group:L};break;case 19:case 22:case 20:case 23:d={type:H,swapAxes:!0,group:L};break;case 18:case 21:d={type:H,swapAxes:!0};break;case 9:case 5:case 36:d={type:I};break;case 26:case 35:d={type:I,symbols:!0};break;case 24:case 25:d={type:I,group:L};break;case 27:case 28:d={type:I,group:L,symbols:!0};break;case 8:case 7:d={type:J};break;case 37:case 39:case 38:case 40:d={type:J,group:L};break;case 1:d={type:K};break;case 33:d={type:I,symbols:!0,lineAspect:M};break;case 34:d={type:I,lineAspect:M};break;case 11:case 48:d={type:K,size:!0};break;case 10:case 4:case 30:case 31:case 29:case 32:d={type:H,radial:!0,group:L};break;case 3:case 41:d={type:H,radial:!0,group:L,doughnut:!0};break;default:d={type:H}}return 52===b?c?d.stock=!0:9===g&&(d={type:E}):51===b?c?d.stock=!0:9===g&&(d={type:F}):50===b?d={type:E}:49===b&&(d={type:F}),e=a.XValuesIsAuto(),f=w.IsScatterChart(g)||w.IsBubbleChart(g),f&&(d.scatter=!0,e&&(d.needXNames=!0)),d}function X(a,b){return a instanceof Date?b?new s(N).format(a):u.ToOADate(a):a}function Y(a,b){var c=a?a[b]:b+1;return X(c)}function Z(a,b,c,d,e,f,g,h,i){var j,k,l,m,n={},o=d[e];if(a&&v(o)&&(o=0,j=!0),n[g]=X(o),a===!0){if(n[f]=b,k=Y(c,e),j&&v(k))return G;n[h]="number"==typeof k?""+k:k}else{if(l=Y(c,e),v(o)&&v(l))return G;n[f]=l,n[h]=b,i&&(m=i.names,n[D]=(m&&m[e]||l)+"")}return n}b={2:"None",3:"Outside",1:"Inside",0:"Cross"};function $(a){return b[a]}function _(a,b,c,d){var e,f=a.AxisTitle;if(f)return e=f.Font.Size*d,b&&(e+=""),{color:x(f.Font,c),fontFamily:f.Font.Name,fontSize:e}}d={bottom:"Near",top:"Far",left:"Near",right:"Far"};function aa(a){var b,c;return a.Visible===!0&&(c=a.GetAxisPostion(),b=d[c]),b||"None"}function ba(a){var b={majorGrid:!!a.MajorGridlines,minorGrid:!!a.MinorGridlines},c=ca(V(a.MajorGridlines,!1));return c&&(b.majorGridStyle=c),c=ca(V(a.MinorGridlines,!1)),c&&(b.minorGridStyle=c),b}function ca(a){var b,c,d;if(a&&(b=a.width,c=a.color,b||c))return d={},b&&(d.strokeWidth=b),c&&(d.stroke=c),d}function da(a){var b,c,d,e,f;return a.MinimumScaleIsAuto||a.MaximumScaleIsAuto?(b=0,c=1,d=a.CalcualteValueAxisMinMax({},!0,!0),e=d.Max,f=d.Min,a.MaximumScaleIsAuto?e<=0&&(c=0):c=a.MaximumScale,a.MinimumScaleIsAuto?f<0&&(b=Math.abs(f)>e?-1:Math.floor(5*f/e)/5):b=a.MinimumScale,{min:b,max:c}):{min:a.MinimumScale,max:a.MaximumScale}}function ea(a){var b,c,d,e,f,g,h,i,j={visible:a.Visible,tickLabelPosition:3===a.TickLabelPosition?3:2,format:a.TickLabels.NumberFormat,majorTickPosition:a.MajorTickMark,minorTickPosition:a.MinorTickMark},k=a.MajorGridlines,l=V(k,!0)||{};return l.visible=!!k,j.majorGridLine=l,b=a.MinorGridlines,c=V(b,!0)||{},c.visible=!!b,j.minorGridLine=c,d=_(a,!1,!0,1)||{},d.text=a.AxisTitle?a.AxisTitle.Text:"",j.title=d,a.MajorUnitIsAuto||(j.majorUnit=a.MajorUnit),a.MinorUnitIsAuto||(j.minorUnit=a.MinorUnit),a.IsValueOrDateScaleAxis()&&(e=a.MinimumScale,f=a.MaximumScale,a.IsTimeScale()?(e=u.FromOADate(e),f=u.FromOADate(f)):ha(a.Chart,a.AxisGroup)&&(g=da(a),e=g.min,f=g.max,j.format&&!a.TickLabels.NumberFormatLinked||(j.format="0%")),a.MinimumScaleIsAuto||(j.min=e),a.MaximumScaleIsAuto||(j.max=f)),h=a.TickLabels.Font,h&&(j.style={color:x(h,!0),fontFamily:h.Name,fontSize:h.Size}),i=V(a,!0),i&&(j.lineStyle={color:i.color||"transparent",width:v(i.width)?1:i.width}),0===a.Type&&(j.categoryType=a.ActualCategoryType),j}e={0:1,1:31,2:365};function fa(a){return e[a]}function ga(a,b,c,d,e,f){var g,h,i,j,k,l,m,n,o,p,q,r,s,t,w,z,A,B,C,D=aa(a),E=ba(a),F={};return"X"===b?(F.bottom=5,F.top=5):(F.left=5,F.right=5),g={plots:c,type:b,format:a.TickLabels.NumberFormat,majorTicks:$(a.MajorTickMark),minorTicks:$(a.MinorTickMark),majorGrid:E.majorGrid,minorGrid:E.minorGrid,title:a.AxisTitle?a.AxisTitle.Text:"",titleStyle:_(a,!0,!1,f),position:D,labelStyle:{padding:F}},3===a.TickLabelPosition&&(g.labels=!1),h=a.IsTimeScale(),i=a.MajorUnitIsAuto?a.BaseUnit:a.MajorUnitScale,j=a.MinorUnitIsAuto?a.BaseUnit:a.MinorUnitScale,k=h?fa(i):1,l=h?fa(j):1,a.MajorUnitIsAuto||(g.majorUnit=a.MajorUnit*k),m=a.MinorUnit*l,a.MinorUnitIsAuto||(g.minorUnit=m),n=a.Chart.ChartType,o="Y"===b,p=y(n),q=o&&p,q?(g.max=a.MaximumScale,g.min=a.MinimumScale):(r=e&&!d,a.MaximumScaleIsAuto&&!r||(s=a.MaximumScale,h&&(p?s=u.FromOADate(s).valueOf():s+=m/2),g.max=s),a.MinimumScaleIsAuto&&!r||(t=a.MinimumScale,h&&(p?t=u.FromOADate(t).valueOf():t-=m/2),g.min=t)),o&&(d?g.scale={type:"Percentage"}:0===a.ScaleType&&(g.scale={type:"Logarithmic"},g.logBase=a.LogBase)),d&&e&&(w=da(a),g.min=w.min,g.max=w.max,g.format&&!a.TickLabels.NumberFormatLinked||(g.format="0%")),z=E.majorGridStyle,z&&(g.majorGridStyle=z),z=E.minorGridStyle,z&&(g.minorGridStyle=z),A=a.TickLabels.Font,A&&(g.textStyle={color:x(A,!1),fontFamily:A.Name},A.Size&&(g.textStyle.fontSize=A.Size*f+"")),B=V(a,!1),B&&(g.lineStyle={stroke:B.color||"transparent",strokeWidth:v(B.width)?1:B.width}),C=a.TickLabels&&a.TickLabels.Qpa&&a.TickLabels.Qpa.TextBody&&a.TickLabels.Qpa.TextBody.Rotation,C&&(g.labelAngle=C),g}function ha(a,b,c){c||(c=R(a));var d,e,f;for(d=0;d0&&(e.fontSize=f*c+"")),g}function ja(a,b){var c,d,e,f,g,h=a.Format.Line;if(h.Color&&0===h.Color.ColorType)return G;switch(c={},d=x(h,!0),d&&(c.stroke=b.currentTheme().getColor(d)),e=h.Weight>0?h.Weight:1,c.strokeWidth=e,f=h.DashStyle){case 1:g=e+","+3*e;break;case 2:g=4*e+","+3*e;break;case 3:g=8*e+","+3*e;break;case 4:g=4*e+","+3*e+","+e+","+3*e;break;case 5:g=8*e+","+3*e+","+e+","+3*e;break;case 6:g=8*e+","+3*e+","+e+","+3*e+","+e+","+3*e;break;case 7:g=3*e+","+e;break;case 8:g=e+","+e;break;case 9:g=3*e+","+e+","+e+","+e;break;case 10:g=3*e+","+e+","+e+","+e+","+e+","+e}return g&&(c.strokeDasharray=g),c}function ka(a){var b=a.Parent.FirstSliceAngle;return b+90}function la(a){var b={1:"Top",4:"Bottom",3:"Left"};return b[a]||"Right"}function ma(a){var b="Vertical";return 1!==a&&4!==a||(b="Horizontal"),b}function na(a,b){var c={},d=x(a,!1),e=a.Name,f=a.Size;return(d||e||f>0)&&(d&&(c.color=d),e&&(c.fontFamily=e),f>0&&(c.fontSize=f*b+"")),c}function oa(a,b,c){var d,e=a.type,f=a.stock;return d=e===E?{x:"date",high:"high",low:"low",open:"open",close:"close"}:e===F?{x:"date",high:"high",low:"low",close:"close"}:f?"date, volume":c+", "+b,[{field:d}]}function pa(a,b){var c={field:b,excludeNulls:!0};return a.group&&(c.group=a.group),[c]}function qa(a,b,c,d,e){var f,g,h=a.ShowValue,i=a.ShowCategoryName,j=a.ShowSeriesName,k=a.ShowPercentage,l=[],m=e.radial;return j&&l.push("{"+(m?c:b)+".value}"),i&&l.push("{"+(m?b:c)+".value}"),h&&(f="",g=a.NumberFormat,g&&(f=": "+g),l.push("{"+d+".value"+f+"}")),k&&l.push("{PercentageCategory:0%}"),l.length>0?l.join(a.Separator):G}function ra(a,b,c,d,e){var f,g,h,i,j,k;return a?(f=a.ShowValue,g=a.ShowCategoryName,h=a.ShowSeriesName,i=a.ShowPercentage,j=e.radial,k=[],(f||i)&&k.push({field:d}),g&&k.push({field:j?b:c}),h&&k.push({field:j?c:b}),k.length>0?k:G):G}function sa(a,b,c,d,e){var f,g,h=a.type,i=a.stock,j=a.radial,k=a.scatter;return h===E?f="{date.name}:{date.value}\n{high.name}:{high.value}\n{low.name}:{low.value}\n{open.name}:{open.value}\n{close.name}:{close.value}":h===F?f="{date.name}:{date.value}\n{high.name}:{high.value}\n{low.name}:{low.value}\n{close.name}:{close.value}":k?(g=a.needXNames?D:c,f='Series "{'+b+'.value}" Point "{'+g+'.value}" \n({'+c+".value}, {"+d+".value})",a.size&&(f+=" Size: {"+C+".value}")):f=i?"{date.name}:{date.value}\n{volume.name}:{volume.value}":j?'Series "{'+c+'.value}" Point "{'+b+'.value}" \nValue: {'+d+".value: "+(e||"#,##0")+"} ({PercentageCategory:0%})":'Series "{'+b+'.value}" Point "{'+c+'.value}" \nValue: {'+d+".value: "+(e||"#,##0")+"}",f}function ta(a,b,c,d){var e,f,g=a.type,h=a.stock;return g===E?e=["date","high","low","open","close"]:g===F?e=["date","high","low","close"]:h?e=["date","volume"]:(e=[d,c,b],a.size&&e.push(C),a.needXNames&&e.push(D)),f=[],e.forEach(function(a){f.push({field:a})}),f}function ua(a,b,c,d,e,f){var g,h,i,j,k,l,m,n,o,p,q,r,s,t={},u=a.Position;return"number"==typeof u&&u>=0&&u<=8&&(g={0:"Auto",1:"Inside",2:"Center",3:"Inside",4:"Inside",5:"Center",6:"Outside",7:"Center",8:"Outside"},h=g[u],h&&(t.position=h)),a.ShowLeaderLines&&"Outside"===t.position?(i=V(a.LeaderLines,!1),i&&(t.connectingLine={stroke:i.color||"transparent",strokeWidth:v(i.width)?1:i.width})):t.connectingLine={stroke:"transparent"},j=t.style={},k=V(a,!1),k&&(j.borderStyle={strokeWidth:v(k.width)?1:k.width,stroke:k.color||"transparent"}),l=a.Format&&a.Format.Fill,m=x(l,!1),j.backgroundColor=m||"transparent",n=a.Font,o=x(n,!1),p=n.Name,q=n.Size,(o||p||q>0)&&(r=t.textStyle={},o&&(r.color=o),p&&(r.fontFamily=p),q>0&&(r.fontSize=q*f+"")),s=qa(a,d,b,c,e),s&&(t.template=s),t}function va(a,b,c,d,e,f){var g,h={};return h.values=oa(a,c,f),h.details=pa(a,d),h.color={field:d},a.size&&(h.size={field:C}),g=ra(e.GetDataLabels(),d,f,c,a),g&&(h.text=g),h.tooltip=ta(a,d,f,c),h}function wa(a,b,c,d,e,f,g){var h,i,j,k,l,m,n,o=c[0],p={};return a.radial||(p.clippingMode="Clip"),h=o.GetDataLabels(),h&&(p.text=ua(h,d,e,f,a,g)),p.tooltip={style:{borderStyle:{stroke:"#767676"},backgroundColor:"white"},textStyle:{color:"#575757",fontFamily:"Calibri, Arial",fontSize:14*g},template:sa(a,f,d,e,h&&h.NumberFormat)},a.swapAxes&&(p.swapAxes=!0),a.symbols&&(p.symbols=!0),a.lineAspect&&(p.lineAspect=a.lineAspect),a.radial&&(p.radial=!0,p.startAngle=ka(o),a.doughnut&&(p.innerRadius=o.Parent.DoughnutHoleSize/100),p.sweep=360),y(b)||(i=xa(c),(c.length<=1||i)&&(p.style||(p.style={}),j=U(o,!1),k=j&&j.width,l=j&&j.color,(k>=0||l)&&(k>=0&&(p.style.strokeWidth=k),l&&!w.IsLineChart(o.ChartType)&&(p.style.stroke=l)),m=T(o,!1),m&&(p.style.symbolFill=m.symbolFill,p.style.symbolStroke=m.symbolStroke,v(m.symbolStrokeWidth)||(p.style.symbolStrokeWidth=m.symbolStrokeWidth))),n=[],c.length>1&&!i&&(n=n.concat(ya(c,f,a.type===I||a.type===J))),n.length>0&&(p.rules=n)),p}function xa(a){var b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r=[],s=[];for(b=0;b0)for(d=r[0],e=d&&d.color,f=d&&d.width,g=s[0],h=g&&g.symbolFill,i=g&&g.symbolStroke,j=g&&g.symbolStrokeWidth,b=1;b0&&k&&(l=c?"Group":"DataPoint",m.push({condition:"current.items[0]."+b+' = "'+k+'"',type:l,actions:[{targetElement:l,properties:i}]}));return m}function za(a,b,c,d,e,f,g,h){var i={name:c,type:a.type};return i.encodings=va(a,b,f,g,d[0],e),i.config=wa(a,b,d,e,f,g,h),i}function Aa(a,b){var c,d,e,f=a.Points,g=f.Count,h=[];for(c=0;c0&&(f=d.iua(),i[f]?i[f].push(d):(i[f]=[d],g=W(d,b,0===c),h=Ea(d.AxisGroup,g.type),j.push({type:f,value:h,chartInfo:g})));return j.length>1&&j.sort(function(a,b){return b.value-a.value}),{serGroupsOrder:j,serGroups:i}}function Ga(a,b,c,d,e){var f,g,h,i,j,k,l,m=[],n=a.serGroupsOrder,o=a.serGroups;for(f=0;f0&&(E[C]=u[D]),c(E,e)))return}function Ma(a){if(a){for(var b in a)if(!v(a[b]))return!1;return!0}return!1}function Na(a,b){var c,d,e=[];return La(a,b,function(a){Ma(a)||e.push(a)}),e.length>0&&(c=a.ChartType,d=a.Axes.Item(0,0),(w.IsLineChart(c)||w.IsAreaChart(c))&&d&&d.IsValueOrDateScaleAxis()&&e.sort(function(a,b){return a[z]-b[z]})),{values:e}}function Oa(a,b){return JSON.stringify(a)===JSON.stringify(b)}function Pa(a,b,c){var d,e,f,g,i,j,k=a.ChartType;if(y(k)){if(e=h[k],f=e.indexOf(c),f>=0)return a.SeriesCollection.Get(f)}else g=R(a),i=Fa(g,a.ChartType),j=Za(i),La(a,j,function(a,c){if(Oa(a,b))return d=c,!0});return d}function Qa(a,b){if(b||(b=R(a)),1===b.length)return b[0].Name}function Ra(a,b){return a.Text||Qa(a.Parent,b)||a.DefaultText}function Sa(a,b,c,d){var e,f,g;return a?(e={text:Ra(a,c)},f=a.GetChartTextInternal(),f&&(g=f.Font,e.color=x(g,b),e.fontFamily=g.Name,e.fontSize=(g.Size||a.DefaultFontSize)*d),e):G}function Ta(a,b,c){var d,e,f=Sa(a,!1,b,c);return f?(d={header:f.text},a.GetChartTextInternal()&&(d.headerTextStyle={color:f.color,fontFamily:f.fontFamily},f.fontSize&&(d.headerTextStyle.fontSize=f.fontSize*c+""),d.headerStyle={backgroundColor:x(a.Format.Fill,!1)},e=V(a,!1),e&&(d.headerStyle.borderStyle={strokeWidth:v(e.width)?1:e.width,stroke:e.color||"transparent"})),d):G}function Ua(a,b){var c;return c=a?{position:la(a.Position),orientation:ma(a.Position),textStyle:na(a.Font,b)}:{hidden:!0},{legend:c,legends:[{title:"",type:"Color"}]}}function Va(a,b){var c,d,e;if(w.IsBarChart(a.ChartType))return!0;if(0===a.ChartType){for(c=a.SeriesCollection.GetValidSers(b),d=!0,e=0;e=0&&(m.origin=0),g.ReversePlotOrder&&(o.reversed=!0)):x&&r.push({plots:c,type:"Y",position:"None",scale:{type:"Percentage"}}),z=ha(a,1,b),h&&(j=ga(h,u?"Y":"X",d,z,h.IsValueOrDateScaleAxis(),e),u||h.IsValueOrDateScaleAxis()||y(s)||(j.scale={type:"Ordinal"},p=a.SeriesCollection.GetValidSers(1)[0],j.min=-.5,j.max=(p?p.XValues.length:0)-.5),l=i&&i.GetCustomCrossesAt(),v(l)||(j.origin=l),m&&j.position===m.position?m.plots=m.plots.concat(j.plots):r.push(j)),i&&(k=ga(i,u?"X":"Y",d,z,!0,e),l=h&&h.GetCustomCrossesAt(),v(l)||(k.origin=l),o&&k.position===o.position?o.plots=o.plots.concat(k.plots):r.push(k),i.ReversePlotOrder&&(k.reversed=!0))),r}function Xa(a){var b,c,d,e,f,g,h,i,j=a.ColumnGroups;return j&&j.Count>0?b=j.Get(0):(c=a.BarGroups,c&&c.Count>0&&(b=c.Get(0))),b&&(d=b.GetSers(),e=d&&d.length,e>0)?(f=b.Overlap,g=b.GapWidth,h={},i=w.IsStackedChart(d[0].ChartType)?1:e,v(f)||(h.overlap=f/100),v(g)||(h.width=i/(i+g/100)),h):G}function Ya(a,b,c,d,e,f,g){var h,i,j,k,l,m,n,o=ia(a.ChartArea,!1,g),p=c.DR(a.Parent),q={style:o.style,textStyle:o.textStyle,selectionMode:y(a.ChartType)?"Custom":"Group",selectedStyle:{adorners:p}};return f.length>0&&(q.palette=f),h=ja(a.ChartArea,c),h&&(q.borderStyle=h),i=Ta(a.ChartTitle,b,g),i&&(i.header&&(q.header=i.header),i.headerTextStyle&&(q.headerTextStyle=i.headerTextStyle),i.headerStyle&&(q.headerStyle=i.headerStyle)),j=Wa(a,b,d,e,g),j.length>0&&(k={axes:j,style:{fill:x(a.PlotArea.Format.Fill,!1)}},l=V(a.PlotArea,!1),l&&(k.borderStyle={strokeWidth:v(l.width)?1:l.width,stroke:l.color||"transparent"}),m=Ua(a.Legend,g),m&&(k.legend=m.legend,l&&(k.legend.style={borderStyle:{strokeWidth:1,stroke:"transparent"}}),k.legends=m.legends,w.IsBubbleChart(a.ChartType)&&k.legends.push({type:"Size",hidden:!0})),q.plotAreas=[k]),n=Xa(a),n&&(q.bar=n),q}function Za(a){var b,c,d,e,f,g,h=a.serGroupsOrder,i=a.serGroups,j=[];for(b=0,c=h.length;b0&&(h=g.Get(0),i=h.getLineColor(!0),i&&(e.color=i),f=h.Format.Line.Weight)):(f=a.LineWidth,j=a.getLineColor(!0),j&&(e.color=j)),!v(f)&&f>=0&&(e.width=f),p.radial&&(q.startAngle=a.Parent.FirstSliceAngle),k=a.GetNameFormula(),k?q.name=k:q.name='"'+S(a)+'"',l=a.GetXValuesFormula(),l&&(q.xValues=l),m=a.GetValuesFormula(),m&&(q.yValues=m),n=a.GetBubbleSizesFormula(),n&&(q.bubbleSizes=n),q}j=c(1),j&&(k={format:function(a,b){return"General"===a&&"number"==typeof b&&Math.abs(b-parseFloat(b.toFixed(2)))<1e-10&&(b=b.toFixed(2)),new s(a).format(b)},defaultFormat:function(a,b){return 4===a?"mm/dd/yyyy":"General"}},l={create:function(){return k}},m=j.plugins,m.unregisterStringFormatting("Default"),m.registerStringFormatting("Default",l),m.unregisterRenderEngine("Canvas"),m.registerRenderEngine("Canvas",new m.PureCanvasRenderEnginePlugin),n=j.FlexDV.prototype,o=n.load,n.load=function(){try{o.apply(this,arguments)}catch(a){}},p=n.refresh,n.refresh=function(){try{p.apply(this,arguments)}catch(a){}},q=n.Select,n.Select=function(){try{q.apply(this,arguments)}catch(a){}}),r.ChartHelper={getChartModelData:_a,getSeries:Pa,getChartAreaStyle:ia,colorFormatToString:x,getChartTitleProperties:Sa,getSeriesProperties:ab,getAxisProperties:ea,isPercentageScaleType:ha,getChartTitleText:Ra},a.exports=r}()},function(a,b,c){!function(){"use strict";var b,d,e,f,g=c(3),h=c(8).GC$,i=h.inherit,j=c(7),k=j.ChartConstants,l=j.ChartUtility,m=l.defineProperty,n=j.ChartElementBase,o=j.UnitHelper,p=o.isNullOrUndefined,q=c(10).ChartFormat,r=null,s=function(a){i(b,a);function b(b,c){var d=a.call(this)||this;return d.Hua=r,d.Jua=b,d.Kua=c,d}var c=b.prototype;return m(c,"Format",{get:function(){return this.ChartFormat}}),c.GetDefaultFormat=function(){var b=this;switch(b.Kua){case 0:return b.GetDefaultDropLinesFormat();case 1:return b.GetDefaultHiLoLinesFormat();case 2:return b.GetOfPieDefaultSerLinesFormat();case 3:return b.GetDlblsDefaultLeaderLines()}return a.prototype.GetDefaultFormat.call(b)},c.GetOfPieDefaultSerLinesFormat=function(){var b=a.prototype.GetDefaultFormat.call(this),c=b.Line,d=c.Color;return d.ObjectThemeColor=1,d.Brightness=.65,c.Weight=1,b},c.GetDefaultHiLoLinesFormat=function(){var b=a.prototype.GetDefaultFormat.call(this),c=b.Line,d=c.Color;return d.ObjectThemeColor=1,d.Brightness=.25,c.Weight=1,b},c.GetDefaultDropLinesFormat=function(){var b=a.prototype.GetDefaultFormat.call(this),c=b.Line,d=c.Color;return d.ObjectThemeColor=1,d.Brightness=.65,c.Weight=1,b},c.GetDlblsDefaultLeaderLines=function(){var b=a.prototype.GetDefaultFormat.call(this),c=b.Line,d=c.Color;return d.ObjectThemeColor=1,d.Brightness=.65,c.Weight=1,b},c.Delete=function(){var a=this,b=a.Kua,c=a.Jua;0===b?c.HasDropLines=!1:1===b?c.HasHiLoLines=!1:2===b&&(c.HasSeriesLines=!1)},c.FromOOModel=function(b){this.Hua=b,p(b)?a.prototype.ClearFormat.call(this):a.prototype.FromShapeProperties.call(this,b.spPr)},c.ToOOModel=function(){var b=this.Hua||{};return b.spPr=a.prototype.ToShapeProperties.call(this),b},c.CreateFormat=function(){return new q(this.Jua.Parent)},b}(n);g.ChartLines=s,g.BarType={Up:0,Down:1},b=function(a){i(b,a);function b(b,c){var d=a.call(this)||this;return d.Lua=r,d.Jua=b,d.Nc=c,d}var c=b.prototype;return m(c,"Format",{get:function(){return this.ChartFormat}}),m(c,"Parent",{get:function(){return this.Jua}}),c.GetDefaultFormat=function(){return 0===this.Nc?this.GetDefaultUpBarsFormat():this.GetDefaultDownBarsFormat()},c.GetDefaultUpBarsFormat=function(){var b,c,d=a.prototype.GetDefaultFormat.call(this);return d.Fill.Color.ObjectThemeColor=0,b=d.Line,c=b.Color,c.ObjectThemeColor=1,c.Brightness=.35,b.Weight=1,d},c.GetDefaultDownBarsFormat=function(){var b,c,d=a.prototype.GetDefaultFormat.call(this);return d.Fill.Color.ObjectThemeColor=1,b=d.Line,c=b.Color,c.ObjectThemeColor=1,c.Brightness=.35,b.Weight=1,d},c.Delete=function(){this.Jua.HasUpDownBars=!1},c.FromOOModel=function(b){this.Lua=b,p(b)?a.prototype.ClearFormat.call(this):a.prototype.FromShapeProperties.call(this,b.spPr)},c.ToOOModel=function(){var b=this.Lua||{};return b.spPr=a.prototype.ToShapeProperties.call(this),b},c.CreateFormat=function(){return new q(this.Jua.Parent)},b}(n),g.ChartBars=b,d=function(){function a(a,b,c){var d=this;d.Mua=75,d.Nua=0,d.Oua=2,d.Pua=75,d.Qua=!1,d.Rua=!1,d.Sua=!1,d.Tua=!1,d.Uua=!1,d.Vua=0,d.Wua=100,d.Xua=0,d.Yua=0,d.Spa=a,d.Zua=b,d.fsa=c,d.Init()}var c=a.prototype;m(c,"AxisGroup",{get:function(){return this.fsa},set:function(a){var b,c,d,e=this;if(a!==e.fsa){for(e.fsa=a,e.Spa.SuspendElementChanged(),b=0,c=e.GetSers();b=0&&a<=300&&(this.Wua=a)}}),m(c,"DoughnutHoleSize",{get:function(){return this.Pua},set:function(a){a!==this.Pua&&a>=10&&a<=90&&(this.Pua=a)}}),m(c,"FirstSliceAngle",{get:function(){return this.Xua},set:function(a){a!==this.Xua&&a>=0&&a<=360&&(this.Xua=a)}}),m(c,"GapWidth",{get:function(){return this.Yua},set:function(a){a!==this.Yua&&a>=0&&a<=500&&(this.Yua=a)}}),m(c,"HasDropLines",{get:function(){return this.Rua},set:function(a){var b=this;a!==b.Rua&&(b.Rua=a,a&&p(b.$ua)&&(b.$ua=new s(b,0)))}}),m(c,"HasHiLoLines",{get:function(){return this.Sua},set:function(a){var b=this;a!==b.Sua&&(b.Sua=a,a&&p(b._ua)&&(b._ua=new s(b,1)))}}),m(c,"HasSeriesLines",{get:function(){return this.Tua},set:function(a){var b=this;a!==b.Tua&&(b.Tua=a,a&&p(b.ava)&&(b.ava=new s(b,2)))}}),m(c,"HasUpDownBars",{get:function(){return this.Uua},set:function(a){var c=this;a!==c.Uua&&(c.Uua=a,a&&p(c.bva)&&(c.bva=new b(c,0)),a&&p(c.cva)&&(c.cva=new b(c,1)))}}),m(c,"Overlap",{get:function(){return this.dva},set:function(a){a!==this.dva&&a>=-100&&a<=100&&(this.dva=a)}}),m(c,"Parent",{get:function(){return this.Spa}}),m(c,"SecondPlotSize",{get:function(){return this.Mua},set:function(a){a!==this.Mua&&a>=5&&a<=200&&(this.Mua=a)}}),m(c,"SeriesLines",{get:function(){return this.HasSeriesLines?this.ava:r}}),m(c,"HiLoLines",{get:function(){return this.HasHiLoLines?this._ua:r}}),m(c,"DropLines",{get:function(){return this.HasDropLines?this.$ua:r}}),m(c,"SizeRepresents",{get:function(){return this.Vua},set:function(a){this.Vua=a}}),m(c,"SplitType",{get:function(){return this.Nua},set:function(a){var b,c=this;a!==c.Nua&&(c.Nua=a,b={0:2,1:50,2:10},c.Oua=b[c.Nua]||c.Oua,c.Spa.HandleElementChanged(17,c,k.SplitType))}}),m(c,"SplitValue",{get:function(){return this.Oua},set:function(a){var b=this;a!==b.Oua&&(b.Oua=a,b.Spa.HandleElementChanged(17,b,k.SplitValue))}}),m(c,"UpBars",{get:function(){return this.HasUpDownBars?this.bva:r}}),m(c,"DownBars",{get:function(){return this.HasUpDownBars?this.cva:r}}),m(c,"VaryByCategories",{get:function(){return this.Qua},set:function(a){var b,c,d,e,f,g=this;if(a!==g.Qua&&(g.Qua=a,a))for(b=0,c=g.GetSers();b0&&(c=e[0],d.RestoreBarBaseGroup(c),p(c.overlap)?d.Overlap=0:d.Overlap=c.overlap,c.serLines&&c.serLines.length>0?(d.HasSeriesLines=!0,d.ava.FromOOModel(c.serLines[0])):d.HasSeriesLines=!1)},c.RestoreBarBaseGroup=function(a){p(a.gapWidth)||(this.GapWidth=a.gapWidth),p(a.varyColors)||(this.Qua=a.varyColors)},c.GetBarCharts=function(a,b,c){var d,e,f,g,h=this.GetCharts(6,a,b),i=[];for(d=0,e=h;d0&&(b=g[0],f.RestoreLineBaseGroup(b),c=b.hiLowLines,p(c)?f.HasHiLoLines=!1:(f.HasHiLoLines=!0,f._ua.FromOOModel(c)),d=b.upDownBars,p(d)?f.HasUpDownBars=!1:(f.HasUpDownBars=!0,f.bva.FromOOModel(d.upBars),f.cva.FromOOModel(d.downBars)),e=b.marker,p(e)?f.Marker=!1:f.Marker=e)},c.RestoreLineBaseGroup=function(a){var b,c=this,d=a.varyColors;p(d)||(c.Qua=d),b=a.dropLines,p(b)?c.HasDropLines=!1:(c.HasDropLines=!0,c.$ua.FromOOModel(b))},c.RestoreStockGroup=function(a){var b,c,d,e,f=this,g=f.GetCharts(0,a,f.fsa);g.length>0&&(b=g[0],c=b.dropLines,p(c)?f.HasDropLines=!1:(f.HasDropLines=!0,f.$ua.FromOOModel(c)),d=b.hiLowLines,p(d)?f.HasHiLoLines=!1:(f.HasHiLoLines=!0,f._ua.FromOOModel(d)),e=b.upDownBars,p(e)?f.HasUpDownBars=!1:(f.HasUpDownBars=!0,f.bva.FromOOModel(e.upBars),f.cva.FromOOModel(e.downBars),p(e.gapWidth)||(f.GapWidth=e.gapWidth)))},c.RestoreXYGroup=function(a){var b,c,d=this.GetCharts(1,a,this.fsa);d.length>0&&(b=d[0],c=b.varyColors,c&&(this.Qua=c))},c.RestoreBubbleGroup=function(a){var b,c,d,e,f,g=this,h=g.GetCharts(3,a,g.fsa);h.length>0&&(b=h[0],c=b.varyColors,c&&(g.Qua=c),d=b.bubbleScale,p(d)||(g.Wua=d),e=b.showNegBubbles,p(e)||(g.ShowNegativeBubbles=e),f=b.sizeRepresents,p(f)||(g.SizeRepresents=f))},c.RestorePieGroup=function(a){var b,c,d=r,e=l.GetPieChart(a);0===this.fsa?e.length>0&&(d=e[0]):(b=l.GetPieCharts(a),c=l.GetPrimaryPieChart(b),10===c.chartType?e.length>1&&(d=e[1]):e.length>0&&(d=e[0])),p(d)||this.RestorePieBaseGroup(d)};function d(a,b){return a.some(function(a){return a===b.Index})}return c.RestoreOfPieGroup=function(a){var b,c,e,f,g,h,i,j,k,m,n,o,q,s,t,u,v,w,x=this,y=r,z=l.GetOfPieChart(a);if(0===x.fsa?z.length>0&&(y=z[0]):(b=l.GetPieCharts(a), c=l.GetPrimaryPieChart(b),13===c.chartType?z.length>1&&(y=z[1]):z.length>0&&(y=z[0])),y)if(x.RestorePieBaseGroup(y),e=y.serLines,!p(e)&&e.length>0?(x.HasSeriesLines=!0,x.ava.FromOOModel(e[0])):x.HasSeriesLines=!1,f=y.secondPieSize,p(f)||(x.SecondPlotSize=f),g=y.gapWidth,p(g)||(x.GapWidth=g),h=y.splitType,p(h)||(x.Nua=h),i=y.splitPos,p(i)||(x.Oua=i),3===x.Nua){if(j=y.custSplit,k=j&&j.secondPiePt,k&&k.length>0)for(m=0,n=x.GetSers();m0&&(e=f[0]):(b=l.GetPieCharts(a),c=l.GetPrimaryPieChart(b),12===c.chartType?f.length>1&&(e=f[1]):f.length>0&&(e=f[0])),e&&(this.RestorePieBaseGroup(e),d=e.holeSize,p(d)||(this.DoughnutHoleSize=d))},c.RestorePieBaseGroup=function(a){var b,c=a.varyColors;p(c)||(this.Qua=c),b=a.firstSliceAng,p(b)||(this.Xua=b)},c.RestoreRadarGroup=function(a){var b,c,d=this.GetCharts(2,a,this.fsa);d.length>0&&(b=d[0],c=b.varyColors,p(c)||(this.Qua=c))},c.RestoreAreaGroup=function(a){var b=this.GetCharts(4,a,this.fsa);b.length>0&&this.RestoreAreaBaseGroup(b[0])},c.RestoreAreaBaseGroup=function(a){var b,c=this,d=a.varyColors;p(d)||(c.Qua=d),b=a.dropLines,p(b)?c.HasDropLines=!1:(c.HasDropLines=!0,c.$ua.FromOOModel(b))},c.RestoreArea3DGroup=function(a){var b,c,d=l.GetArea3DChart(a);p(d)||(b=d,this.RestoreAreaBaseGroup(b),c=b.gapDepth,p(c)||(this.Spa.GapDepth=c))},c.RestoreBar3DGroup=function(a){var b,c,d,e=l.GetBar3DChart(a);p(e)||(b=e,this.RestoreBarBaseGroup(b),c=b.gapDepth,p(c)||(this.Spa.GapDepth=c),d=b.shape,p(d)||this.Spa.SetBarShapeInternal(d))},c.RestoreLine3DGroup=function(a){var b,c=l.GetLine3DChart(a);p(c)||(this.RestoreLineBaseGroup(c),b=c.gapDepth,p(b)||(this.Spa.GapDepth=b))},c.RestorePie3DGroup=function(a){var b=l.GetPie3DChart(a);p(b)||this.RestorePieBaseGroup(b)},c.GetCharts=function(a,b,c){var d,e,f,g,h,i,j,k=l.GetPrimaryAxises(b),m=[],n=[];for(d=0,e=b.chartGroups;d=0&&a0&&b.push(c),a=this.TryGetCachedGroup(1),!p(a)&&a.Count>0&&b.push(a),b},b.Reset=function(){var a,b,c;for(a=0,b=this.fva;a=0&&a=0&&b0)if(c=j.Get(0),l.IsAnyPieChart(c.InnerChartType))for(d=c.PointsCount,e=0;e0&&(i.legendEntry=c),i},c.CreateFormat=function(){return new q(this.Spa)},b}(k),i.Legend=e,a.exports=i}()},function(a,b,c){!function(){"use strict";var b=c(6),d=b.j,e=d.G,f=c(3),g=c(4),h=g.ColorSchemeIndex,i=c(7),j=i.ChartElementBase,k=i.ChartUtility,l=k.defineProperty,m=i.UnitHelper,n=m.isNullOrUndefined,o=c(10).ChartFormat,p=null,q=void 0,r=function(a){e(b,a);function b(b){a.call(this);var c=this;return c.pva=p,c.Spa=b,c.Kb=c.GetDefaultFormat(),c}var c=b.prototype;return c.GetDefaultFormat=function(){var b=a.prototype.GetDefaultFormat.call(this);return b.Fill.Color.ColorType=0,b.Line.Color.ColorType=0,b},c.CreateFormat=function(){return new o(this.Spa)},l(c,"Format",{get:function(){return this.ChartFormat}}),l(c,"Parent",{get:function(){return this.Spa}}),l(c,"PrimaryCatAxis",{get:function(){return this.Spa.Axes.Item(0,0)}}),l(c,"PrimaryValAxis",{get:function(){return this.Spa.Axes.Item(1,0)}}),l(c,"SecondaryCatAxis",{get:function(){return this.Spa.Axes.Item(0,1)}}),l(c,"SecondaryValAxis",{get:function(){return this.Spa.Axes.Item(1,1)}}),l(c,"SerAxis",{get:function(){return this.Spa.Axes.Item(2,0)}}),l(c,"SeriesCollection",{get:function(){return this.Spa.SeriesCollection}}),c.FromOOModel=function(a){var b=this;b.pva=a,a.axes||(a.axes=[]),b.FromShapeProperties(a.spPr),b.Spa.SeriesCollection.RestoreSeries(a),b.Spa.Axes.RestoreAxes(a)},c.ToOOModel=function(){var a=this,b=a.Spa.ChartType,c=a.pva||{},d=a.ToCT_ChartPlotArea(b);return n(d)||(a.SyncPlotAreaCharts(d,c),c.spPr=a.ToShapeProperties()),c},c.ToCT_ChartPlotArea=function(a,b,c){var d,e,f,g,h,i,j,l;switch(b===q&&(b=p),c===q&&(c=!0),d={chartGroups:[],axes:[]},e=n(b)||0===b,f=!0,f=k.IsStockChart(a)?this.HasSecondarySeries(9):(n(b)||1===b)&&this.HasSecondarySeries(a)&&!k.Is3DChart(a)&&!k.IsSurfaceChart(a),k.IsAnyPieChart(a)&&(c=!1),g=p,h=p,a){case 0:d=this.ToComboChartPlotArea();break;case 12:case 13:case 14:case 18:case 19:case 20:case 15:case 16:case 17:case 6:case 21:case 22:case 23:e&&(g=this.ToCT_BarChart(a,0)),f&&(h=this.ToCT_BarChart(a,1));break;case 9:case 24:case 25:case 26:case 27:case 28:case 5:e&&(g=this.ToCT_LineChart(a,0)),f&&(h=this.ToCT_LineChart(a,1));break;case 10:case 30:case 31:case 4:case 29:case 32:case 3:case 41:e&&(g=this.ToCT_PieChart(a,0)),f&&(h=this.ToCT_PieChart(a,1));break;case 8:case 37:case 38:case 39:case 40:case 7:e&&(g=this.ToCT_AreaChart(a,0)),f&&(h=this.ToCT_AreaChart(a,1));break;case 2:case 42:case 43:e&&(g=this.ToCT_RadarChart(a,0)),f&&(h=this.ToCT_RadarChart(a,1));break;case 1:case 33:case 34:case 35:case 36:e&&(g=this.ToCT_ScatterChart(a,0)),f&&(h=this.ToCT_ScatterChart(a,1));break;case 11:case 48:e&&(g=this.ToCT_BubbleChart(a,0)),f&&(h=this.ToCT_BubbleChart(a,1));break;case 44:case 45:case 46:case 47:e&&(g=this.ToCT_SurfaceChartBase(a,0));break;case 49:case 50:e&&(g=this.ToCT_StockChart(a,0)),f&&(h=this.ToCT_StockChart(a,1));break;case 51:case 52:e&&(i=this.SeriesCollection.GetSers(!1,0),i.length>0&&(j=i[0].InnerChartType,g=this.ToCT_ChartBase(j,0))),f&&(h=this.ToCT_StockChart(a,1))}return n(g)||(d.chartGroups.push(g),c&&(l=this.SetPlotAreaAxies(d,this.PrimaryCatAxis,this.PrimaryValAxis,this.SerAxis),g.axId=g.axId.concat(l))),n(h)||(d.chartGroups.push(h),c&&(l=this.SetPlotAreaAxies(d,this.SecondaryCatAxis,this.SecondaryValAxis,this.SerAxis),h.axId=h.axId.concat(l))),d},c.ToCT_ChartBase=function(a,b){switch(a){case 12:case 13:case 14:return this.ToCT_BarChart(a,b);case 15:case 16:case 17:case 6:return this.ToCT_BarChart(a,b);case 18:case 19:case 20:return this.ToCT_BarChart(a,b);case 21:case 22:case 23:return this.ToCT_BarChart(a,b);case 9:case 24:case 25:case 26:case 27:case 28:return this.ToCT_LineChart(a,b);case 5:return this.ToCT_LineChart(a,b);case 10:case 30:return this.ToCT_PieChart(a,b);case 31:case 4:return this.ToCT_PieChart(a,b);case 29:case 32:return this.ToCT_PieChart(a,b);case 1:case 33:case 34:case 35:case 36:return this.ToCT_ScatterChart(a,b);case 8:case 37:case 38:return this.ToCT_AreaChart(a,b);case 39:case 40:case 7:return this.ToCT_AreaChart(a,b);case 3:case 41:return this.ToCT_PieChart(a,b);case 2:case 42:case 43:return this.ToCT_RadarChart(a,b);case 44:case 45:return this.ToCT_SurfaceChartBase(a,b);case 46:case 47:return this.ToCT_SurfaceChartBase(a,b);case 11:case 48:return this.ToCT_BubbleChart(a,b)}},c.SyncPlotAreaCharts=function(a,b){var c,d,e,f;b.axes=a.axes,b.chartGroups=a.chartGroups,c=p,d=k.GetSurface3DChart(b),n(d)||n(d.bandFmts)||(c=d.bandFmts),e=p,f=k.GetSurfaceChart(b),n(f)||n(f.bandFmts)||(e=f.bandFmts),n(d)||n(c)||(d.bandFmts=c),n(f)||n(e)||(f.bandFmts=e)},c.ToComboChartPlotArea=function(){var a=this.ConvertAxisGroupToComboChartPlotArea(0),b=this.ConvertAxisGroupToComboChartPlotArea(1);return n(a)||n(b)?n(a)?n(b)?null:b:a:this.MergePrimeSecondPlotArea(a,b)},c.ConvertAxisGroupToComboChartPlotArea=function(a){var b,c,d,e,f,g,h,i,j=[],l=this.SeriesCollection.GetSers(!1,a);for(b=0,c=l;b0?this.ProcessComboPlotAreas(e):null},c.ProcessComboPlotAreas=function(a){var b,c,d,e,f,g,h,i,j,l,m,o,q,r,s,t,u,v,w,x,y,z,A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z,$,_,aa,ba,ca,da,ea,fa,ga,ha,ia,ja,ka,la,ma,na,oa,pa,qa,ra,sa,ta,ua,va,wa,xa,ya,za,Aa,Ba,Ca,Da,Ea,Fa=p;for(b=0,c=a;b0?(Fa=a[0],a.splice(0,1)):a.splice(a.indexOf(Fa),1),!n(Fa)&&a.length>0){if(f=[],!n(Fa.axes))for(g=0,h=Fa.axes;gr.OADateMinAsDouble&&d1||d>1)for(e=0;e=0;b--)c=a[b],c.chart.RUa(c.value)}}),d.$n("Charts",{init:function(){this.Xva=new B(this.kj)},undo:function(a){var b=a.VVa;b&&this.WVa(b),this.kj.MOa(!0)}}),k.$n("chart",{init:function(){var a=this,b=a.Vva=new p(a);a.charts=a.ITa.Xva,a.$oa.push({Wva:function(a){"2"===a.typeName&&b.Qva(a)}});function c(b){var c,d,e;for(c=0,d=a.charts.all();c0&&l&&l.length>0)for(e=j.isSelected(),f=0,g=l.length;f0&&j.height()>0&&h.refresh()):"isSelected"!==k||e||h.Select(w)}),a.Fu(i.FloatingObjectRemoved+z,function(b,c){var d=c.floatingObject,e=d.Gva;e&&(d.no(),D(a))})},dispose:function(a){if(a!==!1){var b=this;b.Gu(z),D(b)}},processMouseDown:function(a){var b=this;a.hitInfo.formulaRangeHitInfo||(D(b),b.yl.uH())},toJson:function(a,b){var c,d,e=b&&b.ignoreStyle;e||(c=this,d=c.charts.all(),d.length>0&&(a.charts=d.map(function(a){return a.toJSON()})))},fromJsonAfterFormula:function(a,b,c){var d,e,f,g,h,i,j=c&&c.ignoreStyle;if(!j&&(d=a.charts,e=this,d))for(f=0, g=d;f0){for(c=0,d=f.length;c0),E=z.Font,w.fontFamily&&(A.fontFamily=E.Name,E.Name=w.fontFamily),v(w.fontSize)||(A.fontSize=E.Size,E.Size=w.fontSize),w.color&&(A.color=p(E,!0),E.Color.setColor(c,w.color))),F=b.majorGridLine,F&&(G=g.majorGridLine={},v(F.visible)||(G.visible=a.HasMajorGridlines,a.HasMajorGridlines=F.visible),C(a._sa(!0).Format.Line,F,c,G)),H=b.minorGridLine,H&&(I=g.minorGridLine={},v(H.visible)||(I.visible=a.HasMinorGridlines,a.HasMinorGridlines=H.visible),C(a.ata(!0).Format.Line,H,c,I)),x(g)||a.RVa(g))}function F(a){var b,c,d,e,f=a.Cva,g=f.series;g&&(b=s(a,f.text(),a.Jl,a.Kl),b[0]&&(c=b[0].ranges,d=c[0],e=new h.Reference(a.name(),d.row,d.col,d.row+d.rowCount-1,d.col+d.colCount-1),g.SetValuesRefers([e]),d=c[1],d&&(e=new h.Reference(a.name(),d.row,d.col,d.row+d.rowCount-1,d.col+d.colCount-1),g.SetNameRefer(e)),d=c[2],d&&(e=new h.Reference(a.name(),d.row,d.col,d.row+d.rowCount-1,d.col+d.colCount-1),g.SetXValuesRefers([e])),d=c[3],d&&(e=new h.Reference(a.name(),d.row,d.col,d.row+d.rowCount-1,d.col+d.colCount-1),g.SetBubbleSizesRefers([e])),f.chartView.sua(!0)))}d.ElementType={series:0,axis:1,legend:3,label:4,chartTitle:5,plotArea:7,chartArea:8};function G(a){var b,c,d=[[8,0],[0,0],[4,1],[1,4],[2,3],[3,3],[7,5],[6,5],[5,0],[9,7],[10,8]];for(b=0;b=0)return c[1];return 8}function H(a,b){var c=b.model.items[0],d=a.Dva(c,b.field);return d?{index:d.Index}:{}}function I(a,b){var c=b.element;return c?{axisType:1===c.axisType?"y":"x",axisPosition:1===c.position?"primary":"secondary"}:{}}function J(a,b){var c=a.series().AllSers,d=c.map(function(a){return a.Name}),e=b.model;return e?{index:d.indexOf(e)}:{}}function K(a,b,c){var d,e,f,g={};switch(a){case 0:g=H(b,c);break;case 1:g=I(b,c);break;case 3:g=J(b,c)}for(d=b.series().AllSers,e=[],f=0;f0){if(a=this.sheet(),b=z[0],c=b.GetXValuesFormula(),d=b.GetValuesFormula(),e=[],g=N(a,d),h=g.sheet,i=g.range,k=i.rowCount,l=i.colCount,m=i.row,n=i.col,o=r(m,n,k,l),p=!!c,e.push(b.GetNameFormula()),D&&(o=O(a,b,o,B),v(o)))return;for(s=1;s0)for(f=o(c.Spa,d),g=0,h=e.length;g1&&i.push(b.get(1).yValues),g=0,h=i.length;g1?0:i(b,e,c,d):1)),f}return d.getDataOrientation=function(){return j(this)},d.switchDataOrientation=function(){var a,b,c,d=this,e=d.Hva();return!!e&&(d.RVa("switchDataOrientation"),a=d.Spa.SeriesCollection,b=1^j(d),0===d.chartType()&&(c=a.AllSers.map(function(a){return a.ChartType})),d.Eva(e,b,c),!0)},d.getFormulas=function(){var a=this.Spa;if(a)return a.SeriesCollection.AllSers.map(function(a){return a.Formula})},d.clone=function(a){a=a||this.sheet();var c=new b(a);return c.fromJSON(this.toJSON()),c},d.Dva=function(a,b){return l.getSeries(this.Spa,a,b)},d.VQa=function(){var a,b,c,d,e,f,g,h,i,j=[],k=this,l=k.sheet().name(),m=k.series().AllSers;for(e=0;e0?(c=e.CalcEngine.rangesToFormula(a,d.Jl,d.Kl,0,!1),f.text("=SERIES("+c+")")):f.text(""),b?f.UQa=!0:f.UQa=!1,f.series=b,f.chartView=this,d.yl.uH()},d.toJSON=function(){var b,c=this,d=a.prototype.toJSON.call(c);return delete d.content,d.chartSpace=c.Spa.ToOOModel(),b=["hiLowLines","p"],w.simpleJSONObject(d,b),d},d.fromJSON=function(b,c){var d=this;a.prototype.fromJSON.call(d,b,c),d.Spa=new k(d),d.Spa.FromOOModel(b.chartSpace)},d.no=function(a){var b,c,d,e;if(a!==!1){for(b=this,c=b.Gva,d=0,e=c.length;d=0?c=b.model.items[0]:d.Select(y),j=b.field,w.IsStockChart(f.Spa.ChartType)&&(!j&&c&&(j="volume"),k="["+j+"]",l=d.Query(k),d.Select(l,{adorners:!0},k)),m=G(h),7===m||8===m?f.VQa():f.WQa(c,j),g.Wq(e.Events.ChartClicked,L(f,b))),f.getHost()[0].style.cursor="default"}),f.Gva.push(d))},d.onNameChanged=function(a,b){this.sheet().rua(this,{action:"rename",oldName:a,newName:b})},d.jOa=function(a,b){this.series().AllSers.forEach(function(c){var d,e,f,g=c.NameRefer;g&&g.WorksheetName===a&&(g.WorksheetName=b),d=c.XValuesRefers,d&&d.forEach(function(c){c.WorksheetName===a&&(c.WorksheetName=b)}),e=c.ValuesRefers,e&&e.forEach(function(c){c.WorksheetName===a&&(c.WorksheetName=b)}),f=c.BubbleSizesRefers,f&&f.forEach(function(c){c.WorksheetName===a&&(c.WorksheetName=b)})})},d.hitTest=function(a,b){var d,e,f,g,h,i,j,k,l,m,o,p,q,r=c(1);return r&&(d=this,e=d.Gva,e&&e.length>0&&(f=e[0],g=d.sheet().parent,h=n(g.getHost()),i=h.offset(),j=i.left,k=i.top,l=n(d.qo[0]),m=l.offset(),o=m.left,p=m.top,q=f.hitTest(new r.core.Point(a+j-o,b+k-p))))?L(d,q):y},d.refreshContent=function(){var a,b,c,d,e=this.sheet(),f=e.parent;if(f&&f.kv&&(a=this.Gva,a&&a.length>0))for(b=0,c=a.length;b0)return{index:+a.substr(b+1),name:a.substr(0,b)}}}function k(a,b,c,d,e,f){var g,h,i,k,l;a&&c&&d&&(g=j(c),g&&(h=b[g.name],h&&(i=a.get(h),i&&(k=f[h],k||(k=f[h]={indexes:[],chart:i}),l=d.formulaAdjusted,l&&(i.sWa=!0),i.Iva(g.index,d.formula,e,k,2===l)))))}function l(a,b,c,d){var e,f,g;a&&c&&d&&(e=j(c),e&&(f=b[e.name],f&&(g=a.get(f),g&&g.sua(!d.formula||d.formulaAdjusted))))}function m(a,b,c,d,e,f){var g=b.getFormulas();a.qWa[d]=e,g&&g.length&&g.forEach(function(a,b){c.setFormulaByName(d+","+b,a,f)})}function n(a,b,c){for(var d=0;;){if(!a.DTa(b+","+d))break;a.setFormulaByName(b+","+d,null,c),d++}}function o(a,b){if(b&&b.indexOf("#REF!")!==-1){b=b.replace(/#REF!/g,"");var c=b.split(",");a.formulaAdjusted=c[2].length?1:2}a.formula=b}g(i.prototype,{getValueByName:function(a){},setFormulaByName:function(a,b){var c=this.rWa,d=c[a];d||(d=c[a]={}),o(d,b)},setValueByName:function(a,b){var c=this.rWa,d=c[a];d||(d=c[a]={}),d.dataChanged=!0},Qva:function(a){this.Rva(a,0)},Sva:function(a){this.Rva(a,1)},Tva:function(a,b){this.Rva(a,2,b)},Rva:function(a,b,c){var d,e,f,g=this,h=g.kj,i=h.getCalcService(),j=i.getSourceModel(this);a&&(i.suspend(!0),d=a.name(),e=d.toUpperCase(),0===b?m(g,a,j,e,d):1===b?n(j,e):c&&"rename"===c.action?(n(j,c.oldName.toUpperCase()),m(g,a,j,c.newName.toUpperCase(),d)):(f=c&&c.syncOnly,n(j,e,f),m(g,a,j,e,d,f)),i.resume(!1))},startCalculation:function(){},endCalculation:function(){var a,b,c,d,e,f,g,h,i,m,n=this,o=n.kj,p=o.charts,q=n.getCalcService().useR1C1;if(p){b=n.qWa,c=this.rWa,d={};for(g in c)f=c[g],f.formula&&k(p,b,g,f,q,d);for(g in d)a=d[g],a.chart.XVa(a);h={};for(g in c)c[g].dataChanged&&(i=j(g),i&&(m=b[i.name],h[m]||(l(p,b,g,c[g]),h[m]=!0)));this.rWa={};for(g in d)a=d[g],e=a.chart,e&&e.sWa&&(delete e.sWa,o.rua(e,{syncOnly:!0}))}}})}()},function(a,b,c){!function(){"use strict";var b,d,e=c(6),f=e.j,g=f.G,h=c(3),i=c(5).StatefullBase,j=c(7),k=j.ShapeConstants,l=k.PositionConver,m=j.ChartUtility,n=m.defineProperty,o=j.ShapeUtility,p=o.FromLum,q=o.ToLum,r=j.UnitHelper,s=r.isNullOrUndefined,t=null,u=void 0;h.PictureFormatType={PictureShape:0,PictureFill:1,TextureFill:2},b=function(){function a(a){var b=this;b.qva=0,b.rva=0,b.sva=0,b.tva=0,b.xo=a}var b=a.prototype;return n(b,"PictureHeight",{get:function(){return this.tva},set:function(a){this.tva=a}}),n(b,"PictureOffsetX",{get:function(){return this.qva},set:function(a){this.qva=a}}),n(b,"PictureOffsetY",{get:function(){return this.rva},set:function(a){this.rva=a}}),n(b,"PictureWidth",{get:function(){return this.sva},set:function(a){this.sva=a}}),n(b,"ShapeHeight",{get:function(){return this.xo.Height},set:function(a){this.xo.Height=a}}),n(b,"ShapeLeft",{get:function(){return this.xo.Left},set:function(a){this.xo.Left=a}}),n(b,"ShapeTop",{get:function(){return this.xo.Top},set:function(a){this.xo.Top=a}}),n(b,"ShapeWidth",{get:function(){return this.xo.Width},set:function(a){this.xo.Width=a}}),b.Clone=function(){var b=this,c=new a(b.xo);return c.tva=b.tva,c.qva=b.qva,c.rva=b.rva,c.sva=b.sva,c},a}(),h.Crop=b,d=function(a){g(c,a);function c(b,c){b===u&&(b=0),c===u&&(c=t),a.call(this,c);var d=this;return d.Jqa=k.DefaultBrightness,d.Xba=0,d.uva=k.DefaultBrightness,d.vva=k.DefaultTransparent,d.wva=b,d.hqa=c,d.xva=0===d.wva,d}var d=c.prototype;return n(d,"Brightness",{get:function(){return this.IsDirty(1)||s(this.hqa)?this.Jqa:this.hqa.Brightness},set:function(a){if(a<0||a>1)throw Error();this.Jqa=a,this.Dirty(1)}}),n(d,"ColorType",{get:function(){return this.IsDirty(2)||s(this.hqa)?this.Xba:this.hqa.ColorType},set:function(a){0===a?(this.Jqa=k.DefaultBrightness,this.uva=k.DefaultBrightness):3===a&&(this.Jqa=.85,this.uva=.15),this.Xba=a,this.Dirty(2)}}),n(d,"Contrast",{get:function(){return this.IsDirty(4)||s(this.hqa)?this.uva:this.hqa.Contrast},set:function(a){if(a<0||a>1)throw Error();this.uva=a,this.Dirty(4)}}),n(d,"Crop",{get:function(){var a=this;return a.yva||(a.yva=new b(a.zva)),a.yva}}),n(d,"CropBottom",{get:function(){return this.Crop.ShapeTop+this.Crop.ShapeHeight},set:function(a){this.Crop.ShapeHeight=a-this.Crop.ShapeTop}}),n(d,"CropLeft",{get:function(){return this.Crop.ShapeLeft},set:function(a){this.Crop.ShapeLeft=a}}),n(d,"CropRight",{get:function(){return this.Crop.ShapeLeft+this.Crop.ShapeWidth},set:function(a){this.Crop.ShapeWidth=a-this.Crop.ShapeLeft}}),n(d,"CropTop",{get:function(){return this.Crop.ShapeTop},set:function(a){this.Crop.ShapeTop=a}}),n(d,"TransparencyColor",{get:function(){return this.IsDirty(8)||s(this.hqa)?this.vva:this.hqa.TransparencyColor},set:function(a){this.vva=a,this.Dirty(8)}}),n(d,"TransparentBackground",{get:function(){return this.IsDirty(16)||s(this.hqa)?this.xva:this.hqa.TransparentBackground},set:function(a){this.xva=a;var b=this.zva.Fill;a&&(b.Transparency=1),b.Solid(),this.Dirty(16)}}),n(d,"Container",{get:function(){return this.zva},set:function(a){if(this.zva=a,a){var b=this.Crop;b.PictureWidth=a.Width,b.PictureHeight=a.Height}}}),n(d,"PicFill",{get:function(){return this.IsDirty(32)||s(this.hqa)?this.Ava:this.hqa.PicFill},set:function(a){this.Ava=a,this.Dirty(32)}}),n(d,"PicType",{get:function(){return this.IsDirty(64)||s(this.hqa)?this.Bva:this.hqa.PicType},set:function(a){this.Bva=a,this.Dirty(64)}}),d.ClearModel=function(){var a,b,c;for(this.Tpa=t,a=0,b=this.Children;a