/*!@license * Infragistics.Web.ClientUI infragistics.datachart_financial.js 19.1.20191.172 * * Copyright (c) 2011-2019 Infragistics Inc. * * http://www.infragistics.com/ * * Depends: * jquery-1.4.4.js * jquery.ui.core.js * jquery.ui.widget.js * infragistics.util.js * infragistics.ext_core.js * infragistics.ext_collections.js * infragistics.dv_core.js * infragistics.dv_geometry.js * infragistics.datachart_categorycore.js * infragistics.datachart_core.js * infragistics.ext_ui.js */ (function(factory){if(typeof define==="function"&&define.amd){define(["./infragistics.util","./infragistics.ext_core","./infragistics.ext_collections","./infragistics.dv_core","./infragistics.dv_geometry","./infragistics.datachart_categorycore","./infragistics.datachart_core","./infragistics.ext_ui"],factory)}else{factory(igRoot)}})(function($){$.ig=$.ig||{};var $$t={};$.ig.globalDefs=$.ig.globalDefs||{};$.ig.globalDefs.$$n=$$t;$$0=$.ig.globalDefs.$$0;$$4=$.ig.globalDefs.$$4;$$1=$.ig.globalDefs.$$1;$$w=$.ig.globalDefs.$$w;$$r=$.ig.globalDefs.$$r;$$g=$.ig.globalDefs.$$g;$$j=$.ig.globalDefs.$$j;$$6=$.ig.globalDefs.$$6;$$a=$.ig.globalDefs.$$a;$.ig.$currDefinitions=$$t;$.ig.util.bulkDefine(["FinancialEventArgs:a","FinancialEventHandler:b","FinancialPriceSeries:d","FinancialBucketCalculator:e","FinancialSeries:g","FinancialSeries___CalculateTypicalColumn__IteratorClass:h","FinancialSeries___CalculateTR__IteratorClass:i","FinancialSeries___CalculateTL__IteratorClass:j","FinancialCalculationSupportingCalculations:k","ProvideColumnValuesStrategy:m","DataSourceSupportingCalculation:n","SupportingCalculationStrategy:r","FinancialCalculationDataSource:s","FinancialPriceSeriesView:t","FinancialSeriesView:u"]);var $a=$.ig.intDivide,$b=$.ig.util.cast,$c=$.ig.util.defType,$d=$.ig.util.defEnum,$e=$.ig.util.getBoxIfEnum,$f=$.ig.util.getDefaultValue,$g=$.ig.util.getEnumValue,$h=$.ig.util.getValue,$i=$.ig.util.intSToU,$j=$.ig.util.nullableEquals,$k=$.ig.util.nullableIsNull,$l=$.ig.util.nullableNotEquals,$m=$.ig.util.toNullable,$n=$.ig.util.toString$1,$o=$.ig.util.u32BitwiseAnd,$p=$.ig.util.u32BitwiseOr,$q=$.ig.util.u32BitwiseXor,$r=$.ig.util.u32LS,$s=$.ig.util.unwrapNullable,$t=$.ig.util.wrapNullable,$u=String.fromCharCode,$v=$.ig.util.castObjTo$t,$w=$.ig.util.compareSimple,$x=$.ig.util.tryParseNumber,$y=$.ig.util.tryParseNumber1,$z=$.ig.util.numberToString,$0=$.ig.util.numberToString1,$1=$.ig.util.parseNumber,$2=$.ig.util.compare,$3=$.ig.util.replace,$4=$.ig.util.stringFormat,$5=$.ig.util.stringFormat1,$6=$.ig.util.stringFormat2,$7=$.ig.util.stringCompare1,$8=$.ig.util.stringCompare2,$9=$.ig.util.stringCompare3;$c("FinancialEventArgs:a","EventArgs",{init:function(a,b,c,d,e){$$0.$w.init.call(this);this.position(a);this.count(b);this.dataSource(c);this.supportingCalculations(d);if(c!=null){c.series(e)}},_position:0,position:function(a){if(arguments.length===1){this._position=a;return a}else{return this._position}},_count:0,count:function(a){if(arguments.length===1){this._count=a;return a}else{return this._count}},_dataSource:null,dataSource:function(a){if(arguments.length===1){this._dataSource=a;return a}else{return this._dataSource}},_supportingCalculations:null,supportingCalculations:function(a){if(arguments.length===1){this._supportingCalculations=a;return a}else{return this._supportingCalculations}},_basedOn:null,basedOn:function(a){if(arguments.length===1){this._basedOn=a;return a}else{return this._basedOn}},$type:new $.ig.Type("FinancialEventArgs",$$0.$w.$type)},true);$c("FinancialBucketCalculator:e","Object",{_a:null,init:function(a){$.ig.$op.init.call(this);if(a==null){throw new $$6.e(0,"view")}this._a=a;this._c=-1;this._d=this._d;this._b=0},getBucket:function(a){return null},getBucketWithoutUnknowns:function(a){return this.getBucket(a)},getErrorBucket:function(a,b){return NaN},_c:0,_d:0,_b:0,getBucketInfo:function(a,b,c,d){a=this._c;b=this._d;c=this._b;d=this._a._bw.resolution();return{p0:a,p1:b,p2:c,p3:d}},e:function(a){var b=this._a.bs();var c=this._a.br();var d=this._a.br();if(this._a._bw!=null){d=this._a._bw.getEffectiveViewport1(this._a)}if(b.isEmpty()||c.isEmpty()||this._a._bw.xAxis()==null){this._b=0;return}var e=this._a._bw.xAxis()!=null?this._a._bw.xAxis().isInverted():false;var f=new $.ig.ScalerParams(0,b,c,e,d);var g=this._a._bw.li(this._a);var h=$b($.ig.ISortingAxis.prototype.$type,this._a._bw.xAxis());if(h==null||h.sortedIndices()==null){var i=Math.floor(this._a._bw.xAxis().getUnscaledValue(g.left(),f));var j=Math.ceil(this._a._bw.xAxis().getUnscaledValue(g.right(),f));if(this._a._bw.xAxis().isInverted()){j=Math.ceil(this._a._bw.xAxis().getUnscaledValue(g.left(),f));i=Math.floor(this._a._bw.xAxis().getUnscaledValue(g.right(),f))}var k=Math.floor((j-i+1)*a/g.width());this._b=$.ig.truncate(Math.max(1,k));this._c=$.ig.truncate(Math.floor(i/this._b));this._d=$.ig.truncate(Math.ceil(j/this._b))}else{this._c=h.getFirstVisibleIndex(b,c,d,g);this._d=h.getLastVisibleIndex(b,c,d,g);this._b=1}},cacheValues:function(){},unCacheValues:function(){},$type:new $.ig.Type("FinancialBucketCalculator",$.ig.$ot,[$.ig.IBucketizer.prototype.$type])},true);$c("FinancialPriceBucketCalculator:c","FinancialBucketCalculator",{init:function(a){$$t.$e.init.call(this,a)},getBucket:function(a){var b=a*this._b;var c=Math.min(b+this._b-1,this._a._bw.bz().count()-1);if(b<=c&&b>=0&&c>=0){var d=this._a._bw.mu().item(b);var e=Number.NEGATIVE_INFINITY;var f=Number.POSITIVE_INFINITY;var g=this._a._bw.mo().item(c);for(var h=b;h<=c;++h){e=Math.max(e,this._a._bw.mq().item(h));f=Math.min(f,this._a._bw.ms().item(h))}f=Math.min(d,f);e=Math.max(g,e);return[.5*(b+c),d,e,f,g]}return[NaN,NaN,NaN,NaN,NaN]},$type:new $.ig.Type("FinancialPriceBucketCalculator",$$t.$e.$type)},true);$c("FinancialSeries:g","Series",{im:function(a){$.ig.Series.prototype.im.call(this,a);this._mg=a},_mg:null,isFinancial:function(){return true},getAxes:function(){return[this.xAxis(),this.yAxis()]},n0:function(){return 2},ny:function(){return 4},ah:function(a){var b=this.aj(this.xAxis(),this.l2.f,this.nx(this.view()),this.nz(this.view()),this.toWorldPosition(a),true);if(b==null){return null}var c=b[0];var d=b[1];var e=new Array(1);var f=new Array(2);var g=this.n0();f[0]={__x:c[0],__y:c[g],$type:$$a.$y.$type,getType:$.ig.$op.getType,getGetHashCode:$.ig.$op.getGetHashCode,typeName:$.ig.$op.typeName};f[1]={__x:d[0],__y:d[g],$type:$$a.$y.$type,getType:$.ig.$op.getType,getGetHashCode:$.ig.$op.getGetHashCode,typeName:$.ig.$op.typeName};e[0]=f;return e},ai:function(a){var b=this.aj(this.xAxis(),this.l2.f,this.nx(this.view()),this.nz(this.view()),this.toWorldPosition(a),true);if(b==null){return null}var c=b[0];var d=b[1];var e=new Array(1);var f=new Array(2);f[0]={__x:c[0],__y:c[1],$type:$$a.$y.$type,getType:$.ig.$op.getType,getGetHashCode:$.ig.$op.getGetHashCode,typeName:$.ig.$op.typeName};f[1]={__x:d[0],__y:d[1],$type:$$a.$y.$type,getType:$.ig.$op.getType,getGetHashCode:$.ig.$op.getGetHashCode,typeName:$.ig.$op.typeName};e[0]=f;return e},init:function(){this.nb=new $$4.h($.ig.IFastItemColumn$1.prototype.$type.specialize(Number),String,0);this.nc=new $$4.h(String,String,0);this.mz=false;this.my=false;$.ig.Series.prototype.init.call(this);this.l8=new $.ig.CategorySeriesRenderManager;this._m0=false;this._mb=new $.ig.CategoryTransitionSourceFramePreparer;this._l4=new $.ig.CategoryFrame(3);this._ab=$$t.$g.$type;this.l7(0)},negativeBrush:function(a){if(arguments.length===1){this.h($$t.$g.negativeBrushProperty,a);return a}else{return this.c($$t.$g.negativeBrushProperty)}},k1:function(){return this.negativeBrush()},hn:function(){$.ig.Series.prototype.hn.call(this);this.xAxis(null);this.yAxis(null)},xAxis:function(a){if(arguments.length===1){this.h($$t.$g.xAxisProperty,a);return a}else{return this.c($$t.$g.xAxisProperty)}},yAxis:function(a){if(arguments.length===1){this.h($$t.$g.yAxisProperty,a);return a}else{return this.c($$t.$g.yAxisProperty)}},openMemberPath:function(a){if(arguments.length===1){this.h($$t.$g.openMemberPathProperty,a);return a}else{return this.c($$t.$g.openMemberPathProperty)}},mu:function(a){if(arguments.length===1){if(this.mt!=a){var b=this.mt;this.mt=a;this.raisePropertyChanged("OpenColumn",b,this.mt)}return a}else{return this.mt}},mt:null,highMemberPath:function(a){if(arguments.length===1){this.h($$t.$g.highMemberPathProperty,a);return a}else{return this.c($$t.$g.highMemberPathProperty)}},mq:function(a){if(arguments.length===1){if(this.mp!=a){var b=this.mp;this.mp=a;this.raisePropertyChanged("HighColumn",b,this.mp)}return a}else{return this.mp}},mp:null,lowMemberPath:function(a){if(arguments.length===1){this.h($$t.$g.lowMemberPathProperty,a);return a}else{return this.c($$t.$g.lowMemberPathProperty)}},ms:function(a){if(arguments.length===1){if(this.mr!=a){var b=this.mr;this.mr=a;this.raisePropertyChanged("LowColumn",b,this.mr)}return a}else{return this.mr}},mr:null,closeMemberPath:function(a){if(arguments.length===1){this.h($$t.$g.closeMemberPathProperty,a);return a}else{return this.c($$t.$g.closeMemberPathProperty)}},mo:function(a){if(arguments.length===1){if(this.mn!=a){var b=this.mn;this.mn=a;this.raisePropertyChanged("CloseColumn",b,this.mn)}return a}else{return this.mn}},mn:null,volumeMemberPath:function(a){if(arguments.length===1){this.h($$t.$g.volumeMemberPathProperty,a);return a}else{return this.c($$t.$g.volumeMemberPathProperty)}},mx:function(a){if(arguments.length===1){if(this.mw!=a){var b=this.mw;this.mw=a;this.raisePropertyChanged("VolumeColumn",b,this.mw)}return a}else{return this.mw}},mw:null,isCustomCategoryStyleAllowed:function(a){if(arguments.length===1){this.h($$t.$g.isCustomCategoryStyleAllowedProperty,a);return a}else{return this.c($$t.$g.isCustomCategoryStyleAllowedProperty)}},_m0:false,assigningCategoryStyle:null,m8:function(){return this.assigningCategoryStyle!=null&&this._m0||this.isHighlightingEnabled()},os:function(a){if(this.assigningCategoryStyle!=null&&this._m0){this.assigningCategoryStyle(this,a)}},l8:null,oq:function(a,b,c,d,e,f){var g=this._b9;this.l8.ac(a,b,c,d,e,f,g);var h=this.l8._c;var i=null;var j=this.bz();if(g&&this.seriesViewer()!=null){i=this.seriesViewer().az().getHighlightingInfo(this,j,d,h.startIndex(),h.endIndex(),false);h.highlightingInfo(i)}h.isThumbnail(f);this.os(h);this.l8.aa(i,f,g)},nq:function(a){return this.ea(a,this.xAxis())},getPreviousOrExactIndex:function(a,b){return this.fc(a,b,this.xAxis(),this.nq.runOn(this),new $$t.f(this.mu(),this.mq(),this.ms(),this.mo(),this.mx()))},getNextOrExactIndex:function(a,b){return this.fa(a,b,this.xAxis(),this.nq.runOn(this),new $$t.f(this.mu(),this.mq(),this.ms(),this.mo(),this.mx()))},d6:function(a,b,c,d,e){if(c==null){return Number.POSITIVE_INFINITY}var f=this.xAxis().jr;return this.d7(a,b,this.xAxis(),d,e,f,this.nq.runOn(this))},getOffsetValue:function(){return this.nr(this.view().bs(),this.view().br(),this.getEffectiveViewport1(this.view()))},getCategoryWidth:function(){return this.xAxis().getCategorySize(this.view().bs(),this.view().br(),this.getEffectiveViewport1(this.view()))},getSeriesValuePosition:function(a,b,c){return this.lf(a,b,c,this.nr(this.view().bs(),this.view().br(),this.getEffectiveViewport1(this.view())),this.yAxis(),this.xAxis(),null,null,null)},getSeriesValue:function(a,b,c){var d=this.getEffectiveViewport1(this.view());var e=this.nr(this.view().bs(),this.view().br(),d);var f=new $.ig.ScalerParams(0,this.view().bs(),this.view().br(),this.xAxis().isInverted(),d);return this.em(new $$t.f(this.mu(),this.mq(),this.ms(),this.mo(),this.mx()),a,this.xAxis(),f,e,this.nq.runOn(this),b,c)},getSeriesHighValue:function(a,b,c){var d=this.getEffectiveViewport1(this.view());var e=this.nr(this.view().bs(),this.view().br(),d);var f=new $.ig.ScalerParams(0,this.view().bs(),this.view().br(),this.xAxis().isInverted(),d);return this.em(this.mq(),a,this.xAxis(),f,e,this.nq.runOn(this),b,c)},getSeriesLowValue:function(a,b,c){var d=this.getEffectiveViewport1(this.view());var e=this.nr(this.view().bs(),this.view().br(),d);var f=new $.ig.ScalerParams(0,this.view().bs(),this.view().br(),this.xAxis().isInverted(),d);return this.em(this.ms(),a,this.xAxis(),f,e,this.nq.runOn(this),b,c)},getSeriesCloseValue:function(a,b,c){var d=this.getEffectiveViewport1(this.view());var e=this.nr(this.view().bs(),this.view().br(),d);var f=new $.ig.ScalerParams(0,this.view().bs(),this.view().br(),this.xAxis().isInverted(),d);return this.em(this.mo(),a,this.xAxis(),f,e,this.nq.runOn(this),b,c)},getSeriesOpenValue:function(a,b,c){var d=this.getEffectiveViewport1(this.view());var e=this.nr(this.view().bs(),this.view().br(),d);var f=new $.ig.ScalerParams(0,this.view().bs(),this.view().br(),this.xAxis().isInverted(),d);return this.em(this.mu(),a,this.xAxis(),f,e,this.nq.runOn(this),b,c)},getSeriesVolumeValue:function(a,b,c){var d=this.getEffectiveViewport1(this.view());var e=this.nr(this.view().bs(),this.view().br(),d);var f=new $.ig.ScalerParams(0,this.view().bs(),this.view().br(),this.xAxis().isInverted(),d);return this.em(this.mx(),a,this.xAxis(),f,e,this.nq.runOn(this),b,c)},getSeriesHighValuePosition:function(a,b,c){var $self=this;return this.lf(a,b,c,this.nr(this.view().bs(),this.view().br(),this.getEffectiveViewport1(this.view())),this.yAxis(),this.xAxis(),this.getSeriesHighValue.runOn(this),function(d,e){return $self.fc(d,e,$self.xAxis(),$self.nq.runOn($self),$self.mq())},function(d,e){return $self.fa(d,e,$self.xAxis(),$self.nq.runOn($self),$self.mq())})},getSeriesLowValuePosition:function(a,b,c){var $self=this;return this.lf(a,b,c,this.nr(this.view().bs(),this.view().br(),this.getEffectiveViewport1(this.view())),this.yAxis(),this.xAxis(),this.getSeriesLowValue.runOn(this),function(d,e){return $self.fc(d,e,$self.xAxis(),$self.nq.runOn($self),$self.ms())},function(d,e){return $self.fa(d,e,$self.xAxis(),$self.nq.runOn($self),$self.ms())})},getSeriesOpenValuePosition:function(a,b,c){var $self=this;return this.lf(a,b,c,this.nr(this.view().bs(),this.view().br(),this.getEffectiveViewport1(this.view())),this.yAxis(),this.xAxis(),this.getSeriesOpenValue.runOn(this),function(d,e){return $self.fc(d,e,$self.xAxis(),$self.nq.runOn($self),$self.mu())},function(d,e){return $self.fa(d,e,$self.xAxis(),$self.nq.runOn($self),$self.mu())})},getSeriesCloseValuePosition:function(a,b,c){var $self=this;return this.lf(a,b,c,this.nr(this.view().bs(),this.view().br(),this.getEffectiveViewport1(this.view())),this.yAxis(),this.xAxis(),this.getSeriesCloseValue.runOn(this),function(d,e){return $self.fc(d,e,$self.xAxis(),$self.nq.runOn($self),$self.mo())},function(d,e){return $self.fa(d,e,$self.xAxis(),$self.nq.runOn($self),$self.mo())})},getSeriesVolumeValuePosition:function(a,b,c){var $self=this;return this.lf(a,b,c,this.nr(this.view().bs(),this.view().br(),this.getEffectiveViewport1(this.view())),this.yAxis(),this.xAxis(),this.getSeriesVolumeValue.runOn(this),function(d,e){return $self.fc(d,e,$self.xAxis(),$self.nq.runOn($self),$self.mx())},function(d,e){return $self.fa(d,e,$self.xAxis(),$self.nq.runOn($self),$self.mx())})},h4:function(){$.ig.Series.prototype.h4.call(this);if(this.xAxis()!=null){this.xAxis().g0(false)}if(this.yAxis()!=null){this.yAxis().g0(false)}},jl:function(a,b){this._mg._bu.e(this.resolution());this.renderSeries(false)},jk:function(a,b){if(this._dl&&this.ew()<.05){this.dm(true)}this._mg._bu.e(this.resolution());this.renderSeries(false)},nb:null,nc:null,mv:function(a,b,c){var d=this.bw(b);this.nb.add(d,b);this.nc.add(b,c);return d},op:function(a,b){if(b==null){return}a.deregisterColumn(b);var c=this.nb.item(b);this.nc.remove(c);this.nb.remove(b)},mz:false,is:function(a,b,c,d){$.ig.Series.prototype.is.call(this,a,b,c,d);switch(b){case"SyncLink":if(this.syncLink()!=null&&this.seriesViewer()!=null){this._mg._bu.e(this.resolution());this.renderSeries(false)}break;case"SeriesViewer":if(c!=null&&d==null){if(this.xAxis()!=null){this.xAxis().deregisterSeries(this)}if(this.yAxis()!=null){this.yAxis().deregisterSeries(this)}}if(c==null&&d!=null){if(this.xAxis()!=null){this.xAxis().registerSeries(this)}if(this.yAxis()!=null){this.yAxis().registerSeries(this)}}this._mg._bu.e(this.resolution());this.renderSeries(false);break;case"FastItemsSource":this.mz=true;if($b($.ig.IFastItemsSource.prototype.$type,c)!=null){this.op($b($.ig.IFastItemsSource.prototype.$type,c),this.mu());this.op($b($.ig.IFastItemsSource.prototype.$type,c),this.mq());this.op($b($.ig.IFastItemsSource.prototype.$type,c),this.ms());this.op($b($.ig.IFastItemsSource.prototype.$type,c),this.mo());this.op($b($.ig.IFastItemsSource.prototype.$type,c),this.mx());this.mu(null);this.mq(null);this.ms(null);this.mo(null);this.mx(null)}if($b($.ig.IFastItemsSource.prototype.$type,d)!=null){if(String.isNullOrEmpty(this.openMemberPath())==false){this.mu(this.mv($b($.ig.IFastItemsSource.prototype.$type,d),this.openMemberPath(),"OpenColumn"))}if(String.isNullOrEmpty(this.highMemberPath())==false){this.mq(this.mv($b($.ig.IFastItemsSource.prototype.$type,d),this.highMemberPath(),"HighColumn"))}if(String.isNullOrEmpty(this.lowMemberPath())==false){this.ms(this.mv($b($.ig.IFastItemsSource.prototype.$type,d),this.lowMemberPath(),"LowColumn"))}if(String.isNullOrEmpty(this.closeMemberPath())==false){this.mo(this.mv($b($.ig.IFastItemsSource.prototype.$type,d),this.closeMemberPath(),"CloseColumn"))}if(String.isNullOrEmpty(this.volumeMemberPath())==false){this.mx(this.mv($b($.ig.IFastItemsSource.prototype.$type,d),this.volumeMemberPath(),"VolumeColumn"))}}this.mz=false;if(this.yAxis()!=null&&!this.yAxis().updateRange()){this._mg._bu.e(this.resolution());this.renderSeries(false)}break;case"OpenMemberPath":if(this.bz()!=null){this.op(this.bz(),this.mu());this.mu(this.mv(this.bz(),this.openMemberPath(),"OpenColumn"))}break;case"OpenColumn":if(this.yAxis()!=null&&!this.yAxis().updateRange()&&!this.mz){this._mg._bu.e(this.resolution());this.renderSeries(false)}break;case"HighMemberPath":if(this.bz()!=null){this.op(this.bz(),this.mq());this.mq(this.mv(this.bz(),this.highMemberPath(),"HighColumn"))}break;case"HighColumn":if(this.yAxis()!=null&&!this.yAxis().updateRange()&&!this.mz){this._mg._bu.e(this.resolution());this.renderSeries(false)}break;case"LowMemberPath":if(this.bz()!=null){this.op(this.bz(),this.ms());this.ms(this.mv(this.bz(),this.lowMemberPath(),"LowColumn"))}break;case"LowColumn":if(this.yAxis()!=null&&!this.yAxis().updateRange()&&!this.mz){this._mg._bu.e(this.resolution());this.renderSeries(false)}break;case"CloseMemberPath":if(this.bz()!=null){this.op(this.bz(),this.mo());this.mo(this.mv(this.bz(),this.closeMemberPath(),"CloseColumn"))}break;case"CloseColumn":if(this.yAxis()!=null&&!this.yAxis().updateRange()&&!this.mz){this._mg._bu.e(this.resolution());this.renderSeries(false)}this.ou();break;case"VolumeMemberPath":if(this.bz()!=null){this.op(this.bz(),this.mx());this.mx(this.mv(this.bz(),this.volumeMemberPath(),"VolumeColumn"))}break;case"VolumeColumn":if(this.yAxis()!=null&&!this.yAxis().updateRange()&&!this.mz){this._mg._bu.e(this.resolution());this.renderSeries(false)}break;case"XAxis":if(c!=null){c.deregisterSeries(this)}if(d!=null){d.registerSeries(this)}this._mg._bu.e(this.resolution());this.renderSeries(false);this.ic();this._mk=$b($.ig.ITimeRangeSelectorAxis.prototype.$type,this.xAxis());break;case"YAxis":if(c!=null){c.deregisterSeries(this)}if(d!=null){d.registerSeries(this)}this._mg._bu.e(this.resolution());if(this.yAxis()!=null){this.yAxis().updateRange()}{this.renderSeries(false)}this.ic();break;case"TransitionProgress":this.l5.c(this.ew(),this.l3,this.l2);if(this.cc(this.view())){return}if(this.ew()==1){this.l2.v();this.ot(this.l2,this._mg);if(this._dl){this._dl=false;this.hq();this._bt.intervalMilliseconds($.ig.truncate(this.en()));this._bt.easingFunction(this.transitionEasingFunction())}}else{this.ot(this.l5,this._mg)}if(this.seriesViewer()!=null){this.seriesViewer().jj(this)}break;case"NegativeBrush":this.renderSeries(false);break;case"IsCustomCategoryStyleAllowed":this._m0=this.m3();this.renderSeries(false);break;case"CategoryMode":if(this.xAxis()!=null){this.xAxis().kg(true)}break}},canUseAsYAxis:function(a){if($b($.ig.NumericYAxis.prototype.$type,a)!==null){return true}return false},canUseAsXAxis:function(a){if($b($.ig.CategoryXAxis.prototype.$type,a)!==null||a.isDateTime()){return true}return false},lt:function(a,b,c){if(bthis.bz().count()||b<0||b>this.bz().count()||c==null){return null}var d=new Array(b-a+1);var e=c.isSorting();var f=null;if(e){f=c.sortedIndices()}for(var g=a;g<=b;g++){var h=g;if(e){h=f.__inner[h]}d[g-a]=this.bz().item(g)}return d},nx:function(a){return a._bu._b},nz:function(a){return a._bu._c},getCategoryItems:function(a,b){return this.lt(a,b,this.yAxis())},_mj:null,m4:function(){return false},cv:function(){return true},at:function(a,b){if(this.m4()){var c=this.mi(a,b,this._mj);this._mj=c;return c}else{var d=this.mh(a,b,this._mj);this._mj=d;return d}},n1:function(a){var b=this.l2;if(this.ca()){b=this.l5}var c=this.view().br();var d=this.view().bs();var e=this.xAxis();var f=0;if(e.isVertical()){var g=(a.__y-d.top())/d.height();f=g*c.height()+c.top()}else{var h=(a.__x-d.left())/d.width();f=h*c.width()+c.left()}var i=b.f.count();var j=0;for(j=0;j=f){if(l!=null){if(Math.abs(k[0]-f)=0&&this.bz()!=null&&b0){return c.basedOn()}}return a},no:null,getOpenColumnAsArray:function(){if(this.mu()==null){return null}if(this.xAxis()!=null&&$b($.ig.ISortingAxis.prototype.$type,this.xAxis())!==null){if(this.no!=null){return this.no.asArray()}var a=new $$4.x(Number,2,this.mu().count());var b=this.xAxis().sortedIndices();var c=this.mu().asArray();for(var d=0;d=0&&$$a.$ae.l_op_Inequality(c,null)&&$$a.$ae.l_op_Inequality(d,null)){if(this.xAxis()!=null){var g=new $.ig.ScalerParams(0,e,e,this.xAxis().isInverted(),f);var h=this.xAxis().getScaledValue(b,g);if(hc.right()-.1*c.width()){h=h-.4*c.width()}c.x(h-.5*c.width())}if(this.yAxis()!=null&&this.ms()!=null&&this.mq()!=null&&bc.bottom()-.1*c.height()){j=j-.4*c.height()}c.y(j-.5*c.height())}}}this.syncLink().ap(this.seriesViewer(),c,true)}return b>=0},dv:function(a,b,c){var d=$$t.$g.dv.call(this,a,b,c);if(this.mu()==null||this.mo()==null||this.mq()==null||this.ms()==null){d=false}return d},or:function(a,b){var $self=this;$$t.$g.or.call(this,a,b);var c=b.bs();var d=b.br();var e=this.getEffectiveViewport1(b);var f=this.xAxis();var g=this.yAxis();var h=new $.ig.ScalerParams(0,c,d,f.isInverted(),e);var i=function(){var $ret=new $.ig.ScalerParams(0,c,d,g.isInverted(),e);$ret._b=$self.ee();return $ret}();a.f.clear();a.m.clear();a.p.clear();var j=0;var k=$b($.ig.ISortingAxis.prototype.$type,this.xAxis());if(k!=null&&(k.sortedIndices()==null||k.sortedIndices().count()!=this.bz().count())){return}j=this.nr(c,d,e);var l=$b($$t.$t.$type,b);var m=this.resolution();if(this.trendLineType()!=0){var n=new Array(this.bz().count());var o=0;var q=this.ni().getEnumerator();while(q.moveNext()){var p=q.current();n[o]=p;o++}if(this._pb.b4()){this._pb.b2().prepareLineCore(a.p,this.trendLineType(),n,this.trendLinePeriod(),function(r){return $self.xAxis().getScaledValue(r,h)},function(r){return $self.yAxis().getScaledValue(r,i)},function(){var $ret=new $.ig.TrendResolutionParams;$ret._c=b._bu._b;$ret._d=b._bu._c;$ret._e=b._bu._d;$ret._a=j;$ret._b=m;$ret._f=d;return $ret}())}}var r=this.xAxis().getUnscaledValue(2,h)-this.xAxis().getUnscaledValue(1,h);for(var s=b._bu._c;s<=b._bu._d;++s){var t;if(k==null){t=b._bu.getBucket(s)}else{var u=k.sortedIndices().__inner[s];var v=k.getUnscaledValueAt(u);var w=this.mu().item(u);var x=this.mq().item(u);var y=this.ms().item(u);var z=this.mo().item(u);var aa=w;var ab=x;var ac=y;var ad=z;var ae=v;while(sr*m){break}s++;ab=Math.max(ab,this.mq().item(u));ac=Math.min(ac,this.ms().item(u));ad=this.mo().item(u)}var af=NaN;if(!$.ig.util.isNaN(v)){af=this.xAxis().getScaledValue(v,h)}t=[af,aa,ab,ac,ad]}if(!$.ig.util.isNaN(t[0])){if(k!=null){t[0]=t[0]+j}else{t[0]=f.getScaledValue(t[0],h)+j}t[1]=g.getScaledValue(t[1],i);t[2]=g.getScaledValue(t[2],i);t[3]=g.getScaledValue(t[3],i);t[4]=g.getScaledValue(t[4],i);a.f.add(t)}}return},hp:function(a,b){$$t.$g.hp.call(this,a,b);var c=$b($$t.$t.$type,b);c.b8();if(a){c._b3.count(0)}if(c.b4()&&c.b2()!=null){c.b2().clearPoints()}},m4:function(){return true},ot:function(a,b){$$t.$g.ot.call(this,a,b);if(this.xAxis()==null||this.yAxis()==null){return}var c=false;if(b.checkFrameDirty(a)){c=true;b.updateFrameVersion(a)}this.l8.x(this,this.m8(),this.xAxis(),this.getCategoryItems.runOn(this),this.nx(b),this.nz(b));var d=false;var e=this.l8._c;if(e!=null){d=true}var f=$b($$t.$t.$type,b);f.b7();f.separateMode(false);if(f.b4()){f.b2().clearPoints()}if(this.trendLineType()!=0){f.b2().rasterizeTrendLine(a.p)}if(d){this.pj(a,b,c)}else{f._b3.count(0);this.pi(a,b)}},getItemSpan:function(){var a=this.getEffectiveViewport1(this.view());return this.pd(this._mg,a)},pj:function(a,b,c){var d=this.displayType();var e=this.getEffectiveViewport1(b);var f=this.pd(b,e);var g=(f-1)/2;var h=$b($$t.$t.$type,b);h.separateMode(true);var i=a.f;var j=0;var k=this.bz().count();var l=this.xAxis();var m=new $.ig.ScalerParams(0,b.bs(),b.br(),l.isInverted(),e);var n=this.actualBrush();var o=this.negativeBrush();if(o==null){o=n}var p=this.actualOutline();var q=this.negativeOutline();if(q==null){q=p}for(var r=0;r=0&&a=0&&a=0&&a=0&&a=0&&a0){switch(a){case 1:this.init1.apply(this,arguments);break}return}$.ig.$op.init.call(this);this.a=b;this.d=new $$4.x(String,0)},init1:function($tCalculationStrategy,a,b,c){this.$tCalculationStrategy=$tCalculationStrategy;if(!this.hasOwnProperty("$type")){this.$type=this.$type.specialize(this.$tCalculationStrategy)}$.ig.$op.init.call(this);this.a=b;this.d=new $$4.x(String,1,c)},a:null,d:null,b:function(){return this.a},c:function(){return this.d},$type:new $.ig.Type("SupportingCalculation$1",$.ig.$ot)},true);$c("ColumnSupportingCalculation:l","SupportingCalculation$1",{init:function(a,b){if(a>0){switch(a){case 1:this.init1.apply(this,arguments);break}return}$$t.$q.init.call(this,$$t.$r.$type,0,b)},init1:function(a,b,c){$$t.$q.init1.call(this,$$t.$r.$type,1,b,c)},$type:new $.ig.Type("ColumnSupportingCalculation",$$t.$q.$type.specialize($$t.$r.$type))},true);$c("DataSourceSupportingCalculation:n","SupportingCalculation$1",{init:function(a,b){if(a>0){switch(a){case 1:this.init1.apply(this,arguments);break}return}$$t.$q.init.call(this,$$t.$m.$type,0,b)},init1:function(a,b,c){$$t.$q.init1.call(this,$$t.$m.$type,1,b,c)},$type:new $.ig.Type("DataSourceSupportingCalculation",$$t.$q.$type.specialize($$t.$m.$type))},true);$c("CalculatedColumn:o","Object",{init:function(a,b,c){if(a>0){switch(a){case 1:this.init1.apply(this,arguments);break}return}$.ig.$op.init.call(this);this.__valuesProvider=b;this.c=new $$4.x(String,1,c)},init1:function(a,b,c){$.ig.$op.init.call(this);this.__valuesProvider=b;this.c=new $$4.x(String,1,c)},__valuesProvider:null,c:null,basedOn:function(){return this.c},getEnumerator:function(){return this.__valuesProvider.getEnumerator()},$type:new $.ig.Type("CalculatedColumn",$.ig.$ot,[$$0.$bw.$type.specialize(Number)])},true);$c("FinancialPriceSeriesProxy:p","Object",{init:function(){$.ig.$op.init.call(this)},getCloseMemberPath:function(a){return a.closeMemberPath()},getHighMemberPath:function(a){return a.highMemberPath()},getLowMemberPath:function(a){return a.lowMemberPath()},getOpenMemberPath:function(a){return a.openMemberPath()},getVolumeMemberPath:function(a){return a.volumeMemberPath()},matchesType:function(a){if(!a.isFinancial()){return false}if(a.getType().typeName().endsWith("Indicator")||a.getType().typeName().endsWith("Overlay")){return false}return true},setCategoryMode:function(a,b){a.l7(b)},setCloseMemberPath:function(a,b){a.closeMemberPath(b)},setDisplayType:function(a,b){a.displayType(b)},setHighMemberPath:function(a,b){a.highMemberPath(b)},setLowMemberPath:function(a,b){a.lowMemberPath(b)},setOpenMemberPath:function(a,b){a.openMemberPath(b)},setVolumeMemberPath:function(a,b){a.volumeMemberPath(b)},setXAxis:function(a,b){a.xAxis(b)},setYAxis:function(a,b){a.yAxis(b)},$type:new $.ig.Type("FinancialPriceSeriesProxy",$.ig.$ot,[$.ig.IFinancialPriceSeriesProxy.prototype.$type])},true);$c("FinancialCalculationDataSource:s","Object",{init:function(){$.ig.$op.init.call(this)},_openColumn:null,openColumn:function(a){if(arguments.length===1){this._openColumn=a;return a}else{return this._openColumn}},_closeColumn:null,closeColumn:function(a){if(arguments.length===1){this._closeColumn=a;return a}else{return this._closeColumn}},_highColumn:null,highColumn:function(a){if(arguments.length===1){this._highColumn=a;return a}else{return this._highColumn}},_lowColumn:null,lowColumn:function(a){if(arguments.length===1){this._lowColumn=a;return a}else{return this._lowColumn}},_volumeColumn:null,volumeColumn:function(a){if(arguments.length===1){this._volumeColumn=a;return a}else{return this._volumeColumn}},_indicatorColumn:null,indicatorColumn:function(a){if(arguments.length===1){this._indicatorColumn=a;return a}else{return this._indicatorColumn}},_typicalColumn:null,typicalColumn:function(a){if(arguments.length===1){this._typicalColumn=a;return a}else{return this._typicalColumn}},_trueRange:null,trueRange:function(a){if(arguments.length===1){this._trueRange=a;return a}else{return this._trueRange}},_trueLow:null,trueLow:function(a){if(arguments.length===1){this._trueLow=a;return a}else{return this._trueLow}},_period:0,period:function(a){if(arguments.length===1){this._period=a;return a}else{return this._period}},_shortPeriod:0,shortPeriod:function(a){if(arguments.length===1){this._shortPeriod=a;return a}else{return this._shortPeriod}},_longPeriod:0,longPeriod:function(a){if(arguments.length===1){this._longPeriod=a;return a}else{return this._longPeriod}},_count:0,count:function(a){if(arguments.length===1){this._count=a;return a}else{return this._count}},_calculateFrom:0,calculateFrom:function(a){if(arguments.length===1){this._calculateFrom=a;return a}else{return this._calculateFrom}},_calculateCount:0,calculateCount:function(a){if(arguments.length===1){this._calculateCount=a;return a}else{return this._calculateCount}},_multiplier:0,multiplier:function(a){if(arguments.length===1){this._multiplier=a;return a}else{return this._multiplier}},_minimumValue:0,minimumValue:function(a){if(arguments.length===1){this._minimumValue=a;return a}else{return this._minimumValue}},_maximumValue:0,maximumValue:function(a){if(arguments.length===1){this._maximumValue=a;return a}else{return this._maximumValue}},_specifiesRange:false,specifiesRange:function(a){if(arguments.length===1){this._specifiesRange=a;return a}else{return this._specifiesRange}},_series:null,series:function(a){if(arguments.length===1){this._series=a;return a}else{return this._series}},$type:new $.ig.Type("FinancialCalculationDataSource",$.ig.$ot)},true);$c("FinancialSeriesView:u","SeriesView",{_bw:null,_bu:null,_frameVersion:0,frameVersion:function(a){if(arguments.length===1){this._frameVersion=a;return a}else{return this._frameVersion}},checkFrameDirty:function(a){if(this.frameVersion()!=a._t){return true}return false},updateFrameVersion:function(a){this.frameVersion(a._t)},init:function(a){$.ig.SeriesView.prototype.init.call(this,a);this.frameVersion(-1);this._bw=a;this._bu=this.bv()},bv:function(){},onInit:function(){$.ig.SeriesView.prototype.onInit.call(this);if(!this.isThumbnailView()){this._e._bj=6}},getDefaultTooltipTemplate:function(){var a="
";if(this._bw.xAxis().isDateTime()){a+="${itemLabel}
"}else if(this._bw.xAxis().label()!=null){a+="${item."+this._bw.xAxis().label()+"}
"}a+=""+this._bw.title()+"";if(!String.isNullOrEmpty(this._bw.volumeMemberPath())){var h=c.al("financialSeries_Volume");h=String.isNullOrEmpty(h)?"Volume":h;a+=""}a+="
"+d+":"+"${item."+this._bw.openMemberPath()+"}
"+e+":"+"${item."+this._bw.highMemberPath()+"}
"+f+":"+"${item."+this._bw.lowMemberPath()+"}
"+g+":"+"${item."+this._bw.closeMemberPath()+"}
"+h+":"+"${item."+this._bw.volumeMemberPath()+"}
";return a},ac:function(){var a=new $$a.ax;a.colorString("rgba(95,95,95,0.5)");this._e.shadowColor(a);this._e.shadowBlur(5);this._e.shadowOffsetX(2);this._e.shadowOffsetY(2)},$type:new $.ig.Type("FinancialSeriesView",$.ig.SeriesView.prototype.$type)},true);$c("FinancialPriceSeriesView:t","FinancialSeriesView",{_b0:null,init:function(a){var $self=this;this.ck=function(){var $ret=new $$a.bs;$ret._aj=new $$a.a3;return $ret}();this.cj=function(){var $ret=new $$a.bs;$ret._aj=new $$a.a3;return $ret}();this.b1=null;this.ci=new $$a.bs;$$t.$u.init.call(this,a);this._b0=a;this._b6=new $$4.x($$a.$bs.$type,0);this._b3=function(){ var $ret=new $.ig.Pool$1($$a.$bs.$type);$ret.create($self.cl.runOn($self));$ret.activate($self.cb.runOn($self));$ret.disactivate($self.cd.runOn($self));$ret.destroy($self.cc.runOn($self));return $ret}()},_b3:null,cl:function(){var a=new $$a.bs;this._b6.add(a);a.__visibility=1;return a},_b6:null,cb:function(a){a.__visibility=0},cd:function(a){a.__visibility=1},cc:function(a){this._b6.remove(a)},bv:function(){return new $$t.c(this)},onInit:function(){$$t.$u.onInit.call(this);if(!this.isThumbnailView()){this._bw.negativeBrush(function(){var $ret=new $$a.at;$ret.fill("#C62828");return $ret}());this._b0.negativeOutline(this._bw.negativeBrush());this._bw.resolution(5);this._bw.thickness(1)}},ck:null,cj:null,b1:null,b2:function(a){if(arguments.length===1){this.b1=a;return a}else{if(this.b1==null){this.b1=$.ig.CategoryTrendLineManagerFactory.prototype.a(this.b1,this._e.ap(),this._e.rootCanvas(),this._e,this._e.b2())}return this.b1}},b4:function(){return this.b1!=null},ce:function(){if(this._b0.displayType()==1){this.ck.__stroke=this._e.actualBrush()}else{this.ck.__stroke=this._e.actualOutline()}if(this._b0.displayType()==1){this.cj.__stroke=this._bw.negativeBrush()}else{this.cj.__stroke=this._b0.negativeOutline()}},b8:function(){this.an();this._b3.count(0);this.b7()},b7:function(){var a=$b($$a.$a3.$type,this.ck._aj);var b=$b($$a.$a3.$type,this.cj._aj);$.ig.Extensions.prototype.d(a);$.ig.Extensions.prototype.d(b)},ch:function(){this.an();return $b($$a.$a3.$type,this.ck._aj)},cg:function(){this.an();return $b($$a.$a3.$type,this.cj._aj)},cf:function(){this._b0.actualTrendLineBrush(null);if(this._b0.trendLineBrush()!=null){this._b0.actualTrendLineBrush(this._b0.trendLineBrush())}else{this._b0.actualTrendLineBrush(this._b0.actualBrush())}},a8:function(){$$t.$u.a8.call(this);this.ck._ac=this._e.thickness();this.ck._ai=this._e.dashArray();this.ck._ad=this._e.dashCap();if(this._b0.displayType()==1){this.ck.__stroke=this._e.actualBrush()}else{this.ck.__stroke=this._e.actualOutline();this.ck.__fill=this._e.actualBrush()}this.cj._ac=this._e.thickness();this.cj._ai=this._e.dashArray();this.cj._ad=this._e.dashCap();if(this._b0.displayType()==1){this.cj.__stroke=this._bw.negativeBrush()}else{this.cj.__stroke=this._b0.negativeOutline();this.cj.__fill=this._bw.negativeBrush()}},a9:function(){$$t.$u.a9.call(this);var a=this.bl();this.ck._ac=this._e.thickness()+3;if(this._b0.displayType()==1){this.ck.__stroke=a}else{this.ck.__stroke=a;this.ck.__fill=a}this.cj._ac=this._e.thickness()+3;if(this._b0.displayType()==1){this.cj.__stroke=a}else{this.cj.__stroke=a;this.cj.__fill=a}},z:function(a){return this._b6.__inner[a]},ci:null,y:function(a){var b=this._b6.__inner[a];this.ci.__visibility=b.__visibility;this.ci._aj=b._aj;var c=this.bm(a);this.ci.__fill=c;this.ci.__stroke=c;this.ci._ac=this._e.thickness()+3;return this.ci},a3:function(a,b){$$t.$u.a3.call(this,a,b);if(a.d()){if(this.separateMode()){for(var c=0;c=0){switch(this.d){case 0:this.d=-1;if(this.__4__this.na()&&this.__4__this.xAxis().sortedIndices()!=null){this.e=this.__4__this.mq().count();this.b=this.__4__this.xAxis().sortedIndices();if(this.e>0){this.c=this.__4__this.nw(this.__4__this.mq().item(this.b.item(0))-this.__4__this.ms().item(this.b.item(0)));this.d=1;return true}this.d=1;break}this.f=this.__4__this.mq().count();if(this.f>0){this.c=this.__4__this.nw(this.__4__this.mq().item(0)-this.__4__this.ms().item(0));this.d=4;return true}this.d=4;break;case 1:this.d=-1;this.g=1;this.d=2;break;case 2:this.d=-1;if(this.g=0){switch(this.d){case 0:this.d=-1;if(this.__4__this.na()&&this.__4__this.xAxis().sortedIndices()!=null){this.e=this.__4__this.ms().count();this.b=this.__4__this.xAxis().sortedIndices();if(this.e>0){this.c=this.__4__this.nw(this.__4__this.ms().item(this.b.item(0)));this.d=1;return true}this.d=1;break}this.f=this.__4__this.ms().count();if(this.f>0){this.c=this.__4__this.nw(this.__4__this.ms().item(0));this.d=4;return true}this.d=4;break;case 1:this.d=-1;this.g=1;this.d=2;break;case 2:this.d=-1;if(this.g=0){switch(this.h){case 0:this.h=-1;this.c=false;if(this.__4__this.m5()){this.a=this.__4__this.mc(0,this.__4__this.bz().count());this.__4__this.oo(new $$t.a(0,this.__4__this.bz().count(),this.a,this.__4__this.md(this.a),this.__4__this));if(this.a.typicalColumn()!=null){this.c=true;this.h=1;this.d=this.a.typicalColumn().getEnumerator();this.h=2;break}}if(!this.c){if(this.__4__this.na()&&this.__4__this.xAxis().sortedIndices()!=null){this.i=this.__4__this.bz().count();this.e=this.__4__this.xAxis().sortedIndices();this.k=0;this.h=3;break}this.j=this.__4__this.bz().count();this.l=0;this.h=5;break}break;case 2:this.h=1;if(this.d.moveNext()){this.g=this.d.current();this.f=this.g;this.h=2;return true}this.m();if(!this.c){if(this.__4__this.na()&&this.__4__this.xAxis().sortedIndices()!=null){this.i=this.__4__this.bz().count();this.e=this.__4__this.xAxis().sortedIndices();this.k=0;this.h=3;break}this.j=this.__4__this.bz().count();this.l=0;this.h=5;break}break;case 3:this.h=-1;if(this.k