diff --git a/charting_library/charting_library.min.js b/charting_library/charting_library.min.js index f9e4b42e..29c2be18 100644 --- a/charting_library/charting_library.min.js +++ b/charting_library/charting_library.min.js @@ -1,6 +1,6 @@ (function(){function m(a){var b;if("object"!==typeof a||a.constructor&&!a.hasOwnProperty("constructor")&&!(a.constructor.prototype||{}).hasOwnProperty("isPrototypeOf"))return!1;for(b in a);return void 0===b||a.hasOwnProperty(b)}function k(){var a,b,c,e,d,f=arguments[0]||{},h=1,g=arguments.length,l=!1;"boolean"===typeof f&&(l=f,f=arguments[h]||{},h++);"object"!==typeof f&&"function"!==typeof f&&(f={});h===g&&(f=this,h--);for(;h=0&&e.left>=0&&e.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&e.right<=(window.innerWidth||document.documentElement.clientWidth)},s.checkObjIsOutOfWindowX=function(t,e){var i,o=$(window).width()-s.offsetX(t,e);return o<0?(i=e.pageX+o,i>0?i:0):e.pageX},s.checkObjIsOutOfWindowY=function(t,e){ var i,o=$(window).height()-s.offsetY(t,e);return o<0?(i=e.pageY+o,i>0?i:0):e.pageY},s.checkObjIsOutOfWindow=function(t,e){return{left:s.checkObjIsOutOfWindowX(t,e),top:s.checkObjIsOutOfWindowY(t,e)}},s.setAttr=function(t,e,i){return t.attr?t.attr(e,i):t[e]=i,t},s.removeAttr=function(t,e){return t.removeAttr?t.removeAttr(e):t.removeAttribute(e),t},s.notNull=function(t){return-1===$.inArray(t,[null,void 0,"false","null","undefined",0])},s.hideControl=function(t){return t.css({position:"absolute",top:-1e3,left:-1e3})},s.createPopup=function(t,e,i){return new s.Popup(t,e,i).render()},s.Popup=function(t,e,i){if(void 0!==t.selector?this.jqDiv=t:t.nodeType?this.jqDiv=$(t):this.jqDiv=o.create("div",t),i){var s=this;$.each(i,function(t,e){s[t]=e})}n(this.jqDiv,this),this._callback=e},s.Popup.prototype.render=function(){return this.jqDiv},s.Popup.prototype.show=function(){this.jqDiv.show()},s.Popup.prototype.hide=function(){this.jqDiv.hide()},s.Popup.prototype.setVisible=function(t){t?this.show():this.hide()},s.Popup.prototype.isVisible=function(){return this.jqDiv.is(":visible")},s.Popup.prototype.contextMenuEvent=function(t){return!1},s.Popup.prototype.mouseDownOutsideEvent=function(t){if(this.isVisible()){if(this._callback&&!this._callback())return;this.hide()}},t.exports=s},function(t,e){"use strict";var i={};i.renderAttributes=function(t){var e,i="";for(e in t)t[e]&&(i+=" "+e+'="'+t[e]+'"');return i},i.create=function(t,e){var i=$(document.createElement(t));return e&&(e.html&&(i.html(e.html),delete e.html),i.attr(e)),i},i.validAttributes=["abbr","accept-charset","accept","accesskey","action","align","alink","alt","archive","axis","background","bgcolor","border","cellpadding","cellspacing","char","charoff","charset","checked","cite","class","classid","clear","code","codebase","codetype","color","cols","colspan","compact","content","coords","data","datetime","declare","defer","dir","disabled","enctype","face","for","frame","frameborder","headers","height","href","hreflang","hspace","http-equiv","id","ismap","label","lang","language","link","longdesc","marginheight","marginwidth","maxlength","media","method","multiple","name","nohref","noresize","noshade","nowrap","object","onblur","onchange","onclick","ondblclick","onfocus","onkeydown","onkeypress","onkeyup","onload","onmousedown","onmousemove","onmouseout","onmouseover","onmouseup","onreset","onselect","onsubmit","onunload","profile","prompt","readonly","rel","rev","rows","rowspan","rules","scheme","scope","scrolling","selected","shape","size","span","src","standby","start","style","summary","tabindex","target","text","title","type","usemap","valign","value","valuetype","version","vlink","vspace","width"],i.validAttribute=function(t){return-1!==jQuery.inArray(t,i.validAttributes)},i.cleanAttributes=function(t){return jQuery.each(t,function(e,o){i.validAttribute(e)||delete t[e]}),t},t.exports=i},function(t,e,i){(function(t){"use strict";function i(e,i,o){var n,s,r,a,l,h,c=this;if(this._options=$.extend({},this._defaultOptions,o||{}),this._$wrapper=e,this._$content=i, this._scroll_speed=40,this._shadow_offset=10,this._header_height=this._options.headerHeight,this._scroll_margin_top=this._options.scrollMarginTop,this.scrolled=new t,this.scrolltoend=new t,this.scrolltostart=new t,this.visibilityCallbacks=[],n=navigator.platform.toLowerCase(),s=navigator.userAgent.toLowerCase(),r=s.indexOf("firefox")>-1,a=n.indexOf("android")>-1||s.indexOf("android")>-1,this._touch=Modernizr.touch||navigator.msMaxTouchPoints||r&&a,this._touch)return this._$content.css("position","relative"),void this._$wrapper.css({"overflow-y":"auto","-webkit-overflow-scrolling":"touch","-ms-overflow-style":"-ms-autohiding-scrollbar"}).scroll(this._onScroll.bind(this));this._$wrapper.css("overflow","hidden"),this._$wrapper.on("mouseenter.sidebar-scroll",function(){c._bottomFixed||c._dragging||(c._options.alwaysVisible||c._$scrollBar.addClass("active"),c._onScroll())}).on("mouseleave.sidebar-scroll",function(){c._bottomFixed||c._dragging||(c._options.alwaysVisible||c._$scrollBar.removeClass("active"),c._onScroll())}).on("mousewheel.sidebar-scroll",function(t,e){if(!t.isDefaultPrevented())return c.scroll(e,"MozMousePixelScroll"===t.originalEvent.type?2:null)}),!1!==this._options.showTopShadow&&(this._$shadowTop=$('
').appendTo(this._$wrapper)),!1!==this._options.showBottomShadow&&(this._$shadowBottom=$('
').appendTo(this._$wrapper)),this._$shadowTop&&this._header_height&&this._$shadowTop.css("top",this._header_height-this._shadow_offset),l=this._options.additionalClass?" "+this._options.additionalClass:"",h=this._options.alwaysVisible?" active-always":"",this._$scrollBarWrapper=$('
').appendTo(this._$wrapper),this._$scrollBar=$('
').appendTo(this._$scrollBarWrapper),this._onScroll()}i.prototype.isTouch=function(){return this._touch},i.prototype.getScrollBar=function(){return this._$scrollBar},i.prototype._defaultOptions={headerHeight:0,additionalClass:"",alwaysVisible:!1,showBottomShadow:!0,scrollMarginTop:1,bubbleScrollEvent:!1},i.prototype.initDraggable=function(){if(this._dragInitialized)return this;var t=this;return this._$scrollBar.draggable({axis:"y",containment:this._$scrollBarWrapper,start:function(){t._dragging=!0},stop:function(){t._dragging=!1},drag:function(e,i){t.updateScroll()}}),this._dragInitialized=!0,this},i.prototype.updateScroll=function(){var t,e,i,o,n;return this._touch?this:(t=1,e=Math.ceil(this._$scrollBar.position().top-this._scroll_margin_top-this._header_height),i=this.getContainerHeightWithoutHeader(),o=this._$content.outerHeight(),n=o-i-t,i<=0?this:(this._scroll_target_top=n<=0?this._header_height:Math.min(-e*o/i+this._header_height,this._header_height),e+this._$scrollBar.height()+2>=i?this.scrollToEnd():(this._$content.css("top",this._scroll_target_top+"px"),this._onScroll()),this))},i.prototype.getContainerHeightWithoutHeader=function(){return this._$wrapper.outerHeight()-this._header_height}, @@ -490,8 +490,8 @@ h._studyEngine.purgeEndOfDataFlags(t,e),h._studyEngine.purgeRangeExtensionData(t ;for(e=0;ee?1:t=e||!i._shouldExtrapolateMore()?null:r.extrapolateBarsFrontByCount(i.newBarBuilder(t),o,e)})},a.prototype._ensureExtrapolatedToTime=function(t,e){var i=this;return this._extrapolateData(t,function(o){var n,s;return o>=e||!i._shouldExtrapolateMore()?null:(n=2e3,s=r.extrapolateBarsFrontToTime(i.newBarBuilder(t),o,e,n),s[s.length-1]t?this._extrapolatedBarsCache=[]:this._lastRealBarTime!==e&&this._extrapolatedBarsCache.shift(t-this._lastRealBarIndex)),this._lastRealBarIndex=t,this._lastRealBarTime=e;for(var i=0;i=0&&!e()&&setTimeout(function(){try{var e=t();window.ga&&0!==e&&ga("send","event","s",e)}catch(t){}},3e4)}},function(t,e,i){(function(e){"use strict";var o=i(58),n={},s=function(t,i,s){function r(){var t={};t.symbolname=_,t.status="ok",t.values={},t.values.current_session=p,n[_]=p,TradingView.ChartapiMessagerInstances[f].onQuotesData([f].concat([t]))}function a(t,i,n){var s=e.get_timezone(i);h=(new o.Session).init(s,t),c=n,m=setTimeout(l,6e4),l(),r()}function l(){var t,e;if(h){if(c)return void(p="out_of_session");t=o.isTradingNow(new Date,h),e=t?"market":"out_of_session",e!==p&&(p=e,r())}}var h,c,d={},p=n[s]||"out_of_session",u=!1,_=s,f=i,m=null;return t.resolveSymbol(s,function(t){u||a(t.session,t.timezone,t.expired)},function(){}),d.stop=function(){u=!0,m&&clearTimeout(m)},d.marketStatus=function(){return p},d};t.exports=s}).call(e,i(57))},function(t,e,i){ -(function(e){"use strict";var o=i(730).HeikenAshi,n=i(36).Interval,s=function(){function t(t){this.host=t,this.cache={}}function s(t){var e=t.indexOf(",");return-1===e?t:t.slice(0,e)}function r(t,e,i,o,n){return n+t+e+i+(a(o)?"_":"")}function a(t){return t.has_empty_bars||t.force_session_rebuild}function l(t){if(0!==t.indexOf("="))return{symbol:t};var e;try{e=JSON.parse(t.slice(1))}catch(e){return{symbol:t}}return e.type&&(0===e.type.indexOf("BarSetHeikenAshi@tv-basicstudies-")?e.builder=new o:console.error("unknown builder type: "+e.type)),"string"!=typeof e.symbol&&(e.session=e.symbol.session||e.session,e.symbol=e.symbol.symbol),e}function h(e){t.instance=new t(e),u.setupFeed(t.instance)}var c,d,p,u=i(56),_=i(58),f=u.Symbol,m=u.StudyEngine,g=u.BarBuilder,v=u.BarSet;return t.prototype.getCache=function(t){return this.cache[t]},t.prototype.putCache=function(t,e){this.cache[t]=e},t.prototype.subscribe=function(t,e,i,o,n,s,a,l){var h=r(t,e,i,s,a),c=this.getCache(h);return c||(c=this.createItem(t,e,i,s,l),this.putCache(h,c)),c.listeners.addListener(o,n),{key:h,listener:o}},t.prototype.unsubscribe=function(t){var e=this.getCache(t.key);e&&e.listeners.removeListener(t.listener)},t.prototype.removeUnused=function(){var t,e,i,o,n,s=[];for(t in this.cache)this.cache[t]&&(e=this.cache[t],0===e.listeners.listenersCount()&&s.push(t));if(0!==s.length){for(i=0;i=0;s--)if(r=+n[s],o%r==0)return r+(a.isSeconds?"S":"");return""}return o+(a.isSeconds?"S":"")},t.prototype.createItem=function(t,e,i,o,r){var h,u,_,f,m,v,y=new p,b=l(t);return b.builder?new d(y,b.symbol,e,i,b.builder,o,r):(h=s(e),u=this.rebuildFrom(h,s(i),o),_=a(o),!n.isEqual(h,u)||_?(f=o.has_empty_bars,m=$.extend({},o),_&&(m.has_empty_bars=!1,m.force_session_rebuild=!1),new d(y,b.symbol,e,u,new g(e,f),m,r)):(v=b.session&&"extended"!==b.session,new c(y,b.symbol,e,i,v,this.host,o,r)))},c=function(t,e,i,o,n,r,a,l){this.listeners=t,this.host=r;var h=this;this.host.resolve(e,function(t){n&&t.regular_session&&(t.session=t.regular_session);var r=h.calculateFromTo(t,o||i,e,l);h.subs=h.host.subscribe(t,s(i),r,function(t){h.listeners.fire(t)},function(t){h.listeners.onError(t)})},function(t){h.listeners.onError(t)})},c.prototype._createDWMAligner=function(t,i){var o=e.get_timezone(i.timezone),n=new _.Session;return n.init(o,i.session),f.newBarBuilder(t,n,n)}, +this._extrapolatedBarsCache&&this._extrapolatedBarsCache.length&&this._lastRealBarIndex!==t&&(this._lastRealBarIndex>t?this._extrapolatedBarsCache=[]:this._lastRealBarTime!==e&&this._extrapolatedBarsCache.shift(t-this._lastRealBarIndex)),this._lastRealBarIndex=t,this._lastRealBarTime=e;for(var i=0;i=0&&!e()&&setTimeout(function(){try{var e=t();window.ga&&0!==e&&Math.random()>.98&&window.ga("send","event","s",e)}catch(t){}},3e4)}},function(t,e,i){(function(e){"use strict";var o=i(58),n={},s=function(t,i,s){function r(){var t={};t.symbolname=_,t.status="ok",t.values={},t.values.current_session=p,n[_]=p,TradingView.ChartapiMessagerInstances[f].onQuotesData([f].concat([t]))}function a(t,i,n){var s=e.get_timezone(i);h=(new o.Session).init(s,t),c=n,m=setTimeout(l,6e4),l(),r()}function l(){var t,e;if(h){if(c)return void(p="out_of_session");t=o.isTradingNow(new Date,h),e=t?"market":"out_of_session",e!==p&&(p=e,r())}}var h,c,d={},p=n[s]||"out_of_session",u=!1,_=s,f=i,m=null;return t.resolveSymbol(s,function(t){u||a(t.session,t.timezone,t.expired)},function(){}),d.stop=function(){u=!0,m&&clearTimeout(m)},d.marketStatus=function(){return p},d};t.exports=s}).call(e,i(57)) +},function(t,e,i){(function(e){"use strict";var o=i(730).HeikenAshi,n=i(36).Interval,s=function(){function t(t){this.host=t,this.cache={}}function s(t){var e=t.indexOf(",");return-1===e?t:t.slice(0,e)}function r(t,e,i,o,n){return n+t+e+i+(a(o)?"_":"")}function a(t){return t.has_empty_bars||t.force_session_rebuild}function l(t){if(0!==t.indexOf("="))return{symbol:t};var e;try{e=JSON.parse(t.slice(1))}catch(e){return{symbol:t}}return e.type&&(0===e.type.indexOf("BarSetHeikenAshi@tv-basicstudies-")?e.builder=new o:console.error("unknown builder type: "+e.type)),"string"!=typeof e.symbol&&(e.session=e.symbol.session||e.session,e.symbol=e.symbol.symbol),e}function h(e){t.instance=new t(e),u.setupFeed(t.instance)}var c,d,p,u=i(56),_=i(58),f=u.Symbol,m=u.StudyEngine,g=u.BarBuilder,v=u.BarSet;return t.prototype.getCache=function(t){return this.cache[t]},t.prototype.putCache=function(t,e){this.cache[t]=e},t.prototype.subscribe=function(t,e,i,o,n,s,a,l){var h=r(t,e,i,s,a),c=this.getCache(h);return c||(c=this.createItem(t,e,i,s,l),this.putCache(h,c)),c.listeners.addListener(o,n),{key:h,listener:o}},t.prototype.unsubscribe=function(t){var e=this.getCache(t.key);e&&e.listeners.removeListener(t.listener)},t.prototype.removeUnused=function(){var t,e,i,o,n,s=[];for(t in this.cache)this.cache[t]&&(e=this.cache[t],0===e.listeners.listenersCount()&&s.push(t));if(0!==s.length){for(i=0;i=0;s--)if(r=+n[s],o%r==0)return r+(a.isSeconds?"S":"");return""}return o+(a.isSeconds?"S":"")},t.prototype.createItem=function(t,e,i,o,r){var h,u,_,f,m,v,y=new p,b=l(t);return b.builder?new d(y,b.symbol,e,i,b.builder,o,r):(h=s(e),u=this.rebuildFrom(h,s(i),o),_=a(o),!n.isEqual(h,u)||_?(f=o.has_empty_bars,m=$.extend({},o),_&&(m.has_empty_bars=!1,m.force_session_rebuild=!1),new d(y,b.symbol,e,u,new g(e,f),m,r)):(v=b.session&&"extended"!==b.session,new c(y,b.symbol,e,i,v,this.host,o,r)))},c=function(t,e,i,o,n,r,a,l){this.listeners=t,this.host=r;var h=this;this.host.resolve(e,function(t){n&&t.regular_session&&(t.session=t.regular_session);var r=h.calculateFromTo(t,o||i,e,l);h.subs=h.host.subscribe(t,s(i),r,function(t){h.listeners.fire(t)},function(t){h.listeners.onError(t)})},function(t){h.listeners.onError(t)})},c.prototype._createDWMAligner=function(t,i){var o=e.get_timezone(i.timezone),n=new _.Session;return n.init(o,i.session),f.newBarBuilder(t,n,n)}, c.prototype.stop=function(){this.subs&&this.host.unsubscribe(this.subs)},c.prototype.calculateFromTo=function(t,i,o,n){var s,r,a,l,h,c,d,p,u=f.parsePeriod(i),m=(new Date).valueOf(),g=t.expired?e.cal_to_utc(e.get_timezone(t.timezone),new Date(1e3*t.expiration_date))||m:m;return""===u.resolution?(r=u.interval,a="D"):"S"===u.resolution?(r=10*u.interval,a=""):(l="D"===u.resolution?1:"W"===u.resolution?5:30,r=12*l*u.interval,a="M"),u.range?(r=u.range.interval,a=u.range.resolution):this.host.calculateHistoryDepth&&(h=this.host.calculateHistoryDepth(i,a,r))&&(r=h.intervalBack||r,a=void 0===h.resolutionBack?a:h.resolutionBack),c=t.sessionString||t.session,s=_.alignPeriodsBack(c,a,r,1,g),n&&n.getRangeExtensionTime&&(d=n.getRangeExtensionTime())&&(s=Math.min(1e3*d,s)),n&&n.getRangeExtensionCount&&(p=n.getRangeExtensionCount())>0&&(s=_.alignPeriodsBack(c,u.resolution,u.interval,p,s)),{from:s,to:g+6e4}},d=function(t,e,i,o,n,s,r){if(this.listeners=t,this.isRecalculated=!1,""===o)return console.error("unsupported resolution for rebuild: "+i),void this.listeners.onError("unsupported resolution for rebuild: "+i);this.symbolInfo=s;var a=this;this.engine=new m({tickerid:e,period:o,periodBase:i,body:n,symbolInfo:s,rangeExtension:r,recalc:function(t,e){a._recalc(e)},out:function(t,e){a._out(t,e)},nonseriesOut:function(t,e){a._nonseriesOut(t,e)},setNoMoreData:function(){a.barset&&(a.barset.endOfData=!0)},onErrorCallback:function(t){a.listeners.onError(t)}})},d.prototype.stop=function(){this.engine?this.engine.stop():console.error("Internal library error 0x1")},d.prototype._recalc=function(t){this.isRecalculated&&console.error("recalc called twice!"),this.barset||(this.barset=new v(this.symbolInfo)),t&&(this.barset.nextTime=t.nextTime,this.barset.endOfData=t.endOfData),this.listeners.fire(this.barset),this.isRecalculated=!0},d.prototype._nonseriesOut=function(t,e){var i=Object.assign({},e);i.nonseries=!0,i.data=e.bars,delete i.bars,i.barsetSize=this.barset?this.barset.count():0,i.lastBar=this.barset?this.barset.bar(this.barset.count()-1):null,this.listeners.fire(i,!0)},d.prototype._out=function(t,e){var i,o,n,s,r,a,l,h=e[0];if(!isNaN(h)){if(i={time:h,open:e[1],high:e[2],low:e[3],close:e[4],volume:e[5],updatetime:e[6]},o=e[7],this.barset||(this.barset=new v(t.info)),(n=e[8])instanceof Array)for(s=0;se?1:t.value[0]').append($(i(896)).attr({class:"icon"})).addClass("apply-common-tooltip").attr("title",$.t("Take instant snapshot of your chart. No more Paint or other editors to save screenshots – simply click the button and copy the link of the picture.")+"\n"+I).appendTo(A),A.click(function(t){if(!e.enabled("show_dialog_on_snapshot_ready")){if(E.hasClass("process"))return;E.addClass("process"),c.subscribe("onScreenshotReady",function(t){E.removeClass("process")},null,!0)}f.actions().takeScreenshot.callbacks().fire(),t.preventDefault()})),e.enabled("header_saveload")&&(M=e.enabled("header_saveload_to_the_right")?this._$right:this._$left,y=this.createGroup("save-load",{single:!0,showInNarrowView:!0}).appendTo(M),D=$("
").addClass("save-load-buttons").appendTo(y),this._saveLoad=new r(D,a,{popupDirection:"down",popupReverse:!0}),this._saveLoad.onTitleSizeChanged.subscribe(this,this._onInternalResize),TradingView.isOnFeaturePage&&this._saveLoad.hideTitle()),e.enabled("header_widget_dom_node")||$(".header-chart-panel").css("display","none"),f.withModel(this,s.prototype.bindToModel),this._resizerBridge.availWidth.subscribe(this._onAvailSizeChange.bind(this)),this._resizerBridge.availHeight.subscribe(this._onAvailSizeChange.bind(this)),this._onAvailSizeChange(),this._onInternalResize()}var n=i(671),s=i(594),r=i(660),a=i(602),l=i(291),h=i(664),c=i(34),d=i(77),p=i(367).FavoredList,u=i(43),_=i(290);inherit(o,s),o.prototype.saveLoadWidget=function(){return this._saveLoad},o.prototype._onAvailSizeChange=function(){var t=this._resizerBridge.availWidth.value()<=520||this._resizerBridge.availHeight.value()<=250;!!this._compactMode!==t&&(this._compactMode=t,this._$root.toggleClass("header-chart-panel--compact",t),this._onInternalResize())},o.prototype.addButton=function(t,e){(e?this._$left:this._$right).append(t),this._onInternalResize()},o.prototype._createUndoRedoGroup=function(){return this._undoRedo=new n(this._$left,this._chartWidget),this._undoRedo.undoElement().addClass("apply-common-tooltip"),this._undoRedo.redoElement().addClass("apply-common-tooltip"),this.createGroup("undo-redo",{single:!0}).append(this._undoRedo.element())},o.prototype._createFullscreenGroup=function(){this._fullscreen=new a(this._chartWidgetCollection);var t=this.createGroup("fullscreen",{single:!0});return this._fullscreen.element().addClass("apply-common-tooltip").appendTo(t),t},o.prototype._createLayout=function(t,i,o){var n=[];e.enabled("header_chart_type")&&n.push(this._createBarsGroup(i)),e.enabled("header_settings")&&e.enabled("show_chart_property_page")&&n.push(this._createPropertiesGroup(o,t.chartWidgetCollection)),e.enabled("header_indicators")&&n.push(this._createIndicatorsGroup(o)),e.enabled("header_compare")&&n.push(this._createCompareGroup(i,t.chartWidgetCollection,o)),e.enabled("header_undo_redo")&&!this._chartWidget.readOnly()&&n.push(this._createUndoRedoGroup()),e.enabled("header_fullscreen_button")&&n.push(this._createFullscreenGroup()),n.forEach(function(t){t.appendTo(this._$left)},this)}, o.prototype._onInternalResize=function(){if(this.hidden)return void this._resizerBridge.negotiateHeight(0);this._onResizeRequested||(this._onResizeRequested=!0,this._resizerBridge.visible.when(function(){var t,i;this._onResizeRequested=!1,e.enabled("caption_buttons_text_if_possible")&&(t=this._$left,i=t.children(".group"),t.addClass("captions"),i.size()>1&&i.last().offset().top>i.first().offset().top+5&&t.removeClass("captions")),this._$content.find("svg").pixelSnap(),this._resizerBridge.negotiateHeight({min:0,max:this._$content.height()})}.bind(this)))},o.prototype._setupCaptionButtons=function(){this._domeButton&&this._domeButton.onResize.subscribe(this,this._onInternalResize),window.studyTemplates&&studyTemplates.onFavoriteListResize.subscribe(this,this._onInternalResize)},o.prototype._createMinimizeButton=function(){var t=this,e=$("",this._$root).addClass("tv-close-panel top").appendTo(this._$root).on("click",function(i){i.isDefaultPrevented()||(t.hidden=!t.hidden,e.toggleClass("top",!t.hidden),e.toggleClass("bottom",t.hidden),i.preventDefault(),c.emit("toggle_header",!t.hidden),t._onInternalResize())})},t.exports=o}).call(e,i(3))},function(t,e,i){(function(e){"use strict";function o(t,e,i){var o,n,s=e.m_model.properties();a.call(this,s,e),o=this._series=e.mainSeries(),this._chart=e.m_model,this._model=e,this._source=i,this._property=s,this._seriesProperty=o.properties(),this._scaleProperty=o.m_priceScale.properties(),this._mainAxisProperty=o.properties().priceAxisProperties,n=null,$.each(e.m_model.panes(),function(t,e){$.each(e.dataSources(),function(t,i){if(i===o)return n=e,!1})}),this._pane=n,this.prepareLayout(),this._themes=[]}var n=i(301),s=(i(53).UndoHistory,i(76)),r=i(5),a=r.PropertyPage,l=r.GreateTransformer,h=r.LessTransformer,c=r.ToIntTransformer,d=r.SimpleStringBinder,p=r.BooleanBinder,u=r.SliderBinder,_=r.ColorBinding,f=r.SimpleComboBinder,m=r.DisabledBinder,g=r.CheckboxWVBinding,v=i(43),y=i(21),b=i(32).addColorPicker,w=i(19).createLineStyleEditor,S=i(13).createLineWidthEditor,T=i(63).bindPopupMenu,C=i(7).DefaultProperty,x=i(161).availableTimezones,P=i(298),L=i(93).createConfirmDialog,k=i(12).getLogger("Chart.PropertyPage");inherit(o,a),inherit(o,n),o.prototype.setScalesOpenTab=function(){this.scalesTab&&this.scalesTab.data("layout-tab-open",s.TAB_OPEN_OVERRIDE)},o.prototype.setTmzOpenTab=function(){this.tmzSessTable&&this.tmzSessTable.data("layout-tab-open",s.TAB_OPEN_OVERRIDE)},o.prototype.prepareLayout=function(){var t,i,o,n,s,r,a,b,T,C,L,k,I,A,E,M,D,O,V,B,R,N,F,z,W,H,U,j,q,Y,G,K,X,Z,J,Q,tt,et,it,ot,nt,st,rt,at,lt,ht,ct,dt,pt,ut,_t,ft,mt,gt,vt,yt,bt,wt,St,Tt,Ct,xt,Pt,Lt,kt,It,At,Et,Mt,Dt,Ot,$t,Vt,Bt,Rt,Nt,Ft,zt,Wt,Ht,Ut,jt,qt,Yt,Gt,Kt,Xt,Zt,Jt,Qt,te,ee,ie,oe,ne,se,re,ae,le,he,ce,de,pe,ue,_e,fe,me,ge,ve,ye,be,we,Se,Te,Ce,xe,Pe,Le,ke,Ie,Ae=this;if(e.enabled("chart_property_page_style")&&(t=$('').data("layout-tab",$.t("Style")),i=$('
').data("layout-tab",$.t("Style")), o=$('
').data("layout-tab",$.t("Style")),this._prepareSeriesStyleLayout(t,i,o,this._seriesProperty),this._hasSeriesStyleLayout=!0,r=$('
').data("layout-tab",$.t("Style")),E=$(''),M=this.addLabeledRow(r,$.t("Price Line"),E),$("
").append(E).prependTo(M),this.bindControl(new p(E,this._seriesProperty.showPriceLine,!0,this.model(),"Change Price Price Line")),D=S(),$("").append(D).appendTo(M),this.bindControl(new u(D,this._seriesProperty.priceLineWidth,!0,this.model(),"Change Price Line Width")),a=$('').data("layout-tab",$.t("Style")),O=this.createSeriesMinTickEditor(),V=$(""),V.appendTo(a),$("").appendTo(V),$("
"+$.t("Override Min Tick")+"").append(O).appendTo(V),this.bindControl(new f(O,this._seriesProperty.minTick,null,!0,this.model(),"Change MinTick")),b=$('').data("layout-tab",$.t("Style")),this._pane&&(-1!==this._pane.leftPriceScale().dataSources().indexOf(this._series)?B="left":-1!==this._pane.rightPriceScale().dataSources().indexOf(this._series)?B="right":this._pane.isOverlay(this._series)&&(B="none")),B&&(R={left:$.t("Scale Left"),right:$.t("Scale Right")},Ae._pane.actionNoScaleIsEnabled(Ae._series)&&(R.none=$.t("Screen (No Scale)")),N=this.createKeyCombo(R).val(B).change(function(){switch(this.value){case"left":Ae._model.move(Ae._series,Ae._pane,Ae._pane.leftPriceScale());break;case"right":Ae._model.move(Ae._series,Ae._pane,Ae._pane.rightPriceScale());break;case"none":Ae._model.move(Ae._series,Ae._pane,null)}}),F=this.addRow(b),$("").appendTo(F),$("
"+$.t("Scale")+"").appendTo(F).append(N))),e.enabled("chart_property_page_scales")&&(z=$('').data("layout-tab",$.t("Scales")),W=$('').change(function(){this.checked&&setTimeout(function(){Ae._model.m_model.invalidate(new y(y.LIGHT_UPDATE))},0)}),H=this.addLabeledRow(z,$.t("Auto Scale"),W),U=function(t){this._undoModel.setAutoScaleProperty(this._property,t,Ae._series.priceScale(),this._undoText)},$("
").append(W).prependTo(H),this.bindControl(new p(W,this._scaleProperty.autoScale,!0,this.model(),"Auto Scale",U)),this.bindControl(new m(W,this._scaleProperty.autoScaleDisabled,!0,this.model(),"Auto Scale")),j=$(''),q=this.addLabeledRow(z,$.t("Percentage"),j),Y=function(t){this._undoModel.setPercentProperty(this._property,t,Ae._series.priceScale(),this._undoText)},$("").append(j).prependTo(q),this.bindControl(new p(j,this._mainAxisProperty.percentage,!0,this.model(),"Scale Percentage",Y)),this.bindControl(new m(j,this._mainAxisProperty.percentageDisabled,!0,this.model(),"Scale Percentage")),G=$(''),K=this.addLabeledRow(z,$.t("Log Scale"),G),X=function(t){this._undoModel.setLogProperty(this._property,t,Ae._series.priceScale(),this._undoText)}, -$("").append(G).prependTo(K),this.bindControl(new p(G,this._mainAxisProperty.log,!0,this.model(),"Log Scale",X)),this.bindControl(new m(G,this._mainAxisProperty.logDisabled,!0,this.model(),"Log Scale")),Z=$('').change(function(){this.checked&&setTimeout(function(){Ae._model.m_model.invalidate(new y(y.LIGHT_UPDATE))},0)}),J=this.addLabeledRow(z,$.t("Scale Series Only"),Z),$("").append(Z).prependTo(J),this.bindControl(new p(Z,this._property.scalesProperties.scaleSeriesOnly,!0,this.model(),"Scale Series Only")),Q=$(""),tt=this.addLabeledRow(z,$.t("Lock scale"),Q),et=function(t){this._undoModel.setLockScaleProperty(this._property,t,Ae._series,this._undoText)},it=function(t){tt.toggle(t.value()===v.STYLE_PNF)},$("").append(Q).prependTo(tt),this.bindControl(new p(Q,this._seriesProperty.lockScale,!0,this.model(),"Change lock scale",et)),this._seriesProperty.style.listeners().subscribe(this,it),ot=$(""),nt=this.addLabeledRow(z,$.t("Track time"),ot),$("").append(ot).prependTo(nt),this.bindControl(new g(ot,this._model.trackTime(),null,"Change track time")),st=$('').data("layout-tab",$.t("Scales")),rt=$(''),at=this.addLabeledRow(st,$.t("Top Margin"),rt),$("").appendTo(at),lt=[c(this._property.paneProperties.topMargin.value())],lt.push(h(25)),lt.push(l(0)),this.bindControl(new d(rt,this._property.paneProperties.topMargin,lt,!0,this.model(),"Top Margin")),ht=$(''),ct=this.addLabeledRow(st,$.t("Bottom Margin"),ht),$("").appendTo(ct),dt=[c(this._property.paneProperties.bottomMargin.value())],dt.push(h(25)),dt.push(l(0)),this.bindControl(new d(ht,this._property.paneProperties.bottomMargin,dt,!0,this.model(),"Bottom Margin")),pt=$(''),ut=this.addLabeledRow(st,$.t("Right Margin"),pt),$("").appendTo(ut),_t=[c(this._property.timeScale.rightOffset.value())],_t.push(h(~~this._chart.m_timeScale.maxOffset())),_t.push(l(-200)),this.bindControl(new d(pt,this._property.timeScale.rightOffset,_t,!0,this.model(),"Right Margin")),ft=$('
").appendTo(at).append(rt),$("%").appendTo(ct).append(ht),$("%").appendTo(ut).append(pt),$(""+$.t("bars",{context:"margin"})+"
').data("layout-tab",$.t("Scales")),mt=$(""),gt=this.addLabeledRow(ft,$.t("Left Axis"),mt),$("
").append(mt).prependTo(gt),setTimeout(function(){this.bindControl(new p(mt,this._property.scalesProperties.showLeftScale,!0,this.model(),"Show Left Axis"))}.bind(this),0),vt=$(""),yt=this.addLabeledRow(ft,$.t("Right Axis"),vt),$("").append(vt).prependTo(yt),setTimeout(function(){this.bindControl(new p(vt,this._property.scalesProperties.showRightScale,!0,this.model(),"Show Right Axis"))}.bind(this),0),e.enabled("countdown")&&(bt=$(""), +$("").append(G).prependTo(K),this.bindControl(new p(G,this._mainAxisProperty.log,!0,this.model(),"Log Scale",X)),this.bindControl(new m(G,this._mainAxisProperty.logDisabled,!0,this.model(),"Log Scale")),Z=$('').change(function(){this.checked&&setTimeout(function(){Ae._model.m_model.invalidate(new y(y.LIGHT_UPDATE))},0)}),J=this.addLabeledRow(z,$.t("Scale Series Only"),Z),$("").append(Z).prependTo(J),this.bindControl(new p(Z,this._property.scalesProperties.scaleSeriesOnly,!0,this.model(),"Scale Series Only")),Q=$(""),tt=this.addLabeledRow(z,$.t("Lock scale"),Q),et=function(t){this._undoModel.setLockScaleProperty(this._property,t,Ae._series,this._undoText)},it=function(t){tt.toggle(t.value()===v.STYLE_PNF)},$("").append(Q).prependTo(tt),this.bindControl(new p(Q,this._seriesProperty.lockScale,!0,this.model(),"Change lock scale",et)),this._seriesProperty.style.listeners().subscribe(this,it),e.enabled("support_multicharts")&&(ot=$(""),nt=this.addLabeledRow(z,$.t("Track time"),ot),$("").append(ot).prependTo(nt),this.bindControl(new g(ot,this._model.trackTime(),null,"Change track time"))),st=$('').data("layout-tab",$.t("Scales")),rt=$(''),at=this.addLabeledRow(st,$.t("Top Margin"),rt),$("").appendTo(at),lt=[c(this._property.paneProperties.topMargin.value())],lt.push(h(25)),lt.push(l(0)),this.bindControl(new d(rt,this._property.paneProperties.topMargin,lt,!0,this.model(),"Top Margin")),ht=$(''),ct=this.addLabeledRow(st,$.t("Bottom Margin"),ht),$("").appendTo(ct),dt=[c(this._property.paneProperties.bottomMargin.value())],dt.push(h(25)),dt.push(l(0)),this.bindControl(new d(ht,this._property.paneProperties.bottomMargin,dt,!0,this.model(),"Bottom Margin")),pt=$(''),ut=this.addLabeledRow(st,$.t("Right Margin"),pt),$("").appendTo(ut),_t=[c(this._property.timeScale.rightOffset.value())],_t.push(h(~~this._chart.m_timeScale.maxOffset())),_t.push(l(-200)),this.bindControl(new d(pt,this._property.timeScale.rightOffset,_t,!0,this.model(),"Right Margin")),ft=$('
").appendTo(at).append(rt),$("%").appendTo(ct).append(ht),$("%").appendTo(ut).append(pt),$(""+$.t("bars",{context:"margin"})+"
').data("layout-tab",$.t("Scales")),mt=$(""),gt=this.addLabeledRow(ft,$.t("Left Axis"),mt),$("
").append(mt).prependTo(gt),setTimeout(function(){this.bindControl(new p(mt,this._property.scalesProperties.showLeftScale,!0,this.model(),"Show Left Axis"))}.bind(this),0),vt=$(""),yt=this.addLabeledRow(ft,$.t("Right Axis"),vt),$("").append(vt).prependTo(yt),setTimeout(function(){this.bindControl(new p(vt,this._property.scalesProperties.showRightScale,!0,this.model(),"Show Right Axis"))}.bind(this),0),e.enabled("countdown")&&(bt=$(""), wt=this.addLabeledRow(ft,$.t("Countdown"),bt),$("").append(bt).prependTo(wt),this.bindControl(new p(bt,this._seriesProperty.showCountdown,!0,this.model(),"Change Show Countdown"))),St=$(''),Tt=this.addLabeledRow(ft,$.t("Symbol Last Value"),St),$("").append(St).prependTo(Tt),this.bindControl(new p(St,this._property.scalesProperties.showSeriesLastValue,!0,this.model(),"Change Symbol Last Value Visibility")),Ct=$(''),xt=this.addLabeledRow(ft,$.t("Indicator Last Value"),Ct),$("").append(Ct).prependTo(xt),this.bindControl(new p(Ct,this._property.scalesProperties.showStudyLastValue,!0,this.model(),"Change Indicator Last Value Visibility")),Pt=$(''),Lt=this.addLabeledRow(ft,$.t("Symbol Labels"),Pt),$("").append(Pt).prependTo(Lt),this.bindControl(new p(Pt,this._property.scalesProperties.showSymbolLabels,!0,this.model(),"Show Symbol Labels")),kt=$(''),It=this.addLabeledRow(ft,$.t("Indicator Labels"),kt),$("").append(kt).prependTo(It),this.bindControl(new p(kt,this._property.scalesProperties.showStudyPlotLabels,!0,this.model(),"Show Study Plots Labels")),At=$(""),Et=this.addLabeledRow(ft,$.t("Precise Labels"),At),$("").append(At).prependTo(Et),this.bindControl(new p(At,this._scaleProperty.alignLabels,!0,this.model(),"Precise Labels")),Mt=$('
').append(z).append(st),Dt=$('
').append(ft),T=$("
").css("min-width","420px").data("layout-tab",$.t("Scales")),T.append(Mt).append(Dt),this.scalesTab=T),e.enabled("chart_property_page_background")&&(Ot=$(''),$t=this.createColorPicker({hideTransparency:!0}),Vt=this.addLabeledRow(Ot,$.t("Background")),$('
').append($t).appendTo(Vt),this.bindControl(new _($t,this._property.paneProperties.background,!0,this.model(),"Change Chart Background Color")),Bt=this.addLabeledRow(Ot,$.t("Vert Grid Lines")),Rt=this.createColorPicker(),$("").append(Rt).appendTo(Bt),this.bindControl(new _(Rt,this._property.paneProperties.vertGridProperties.color,!0,this.model(),"Change Vert Grid Lines Color")),Nt=w(),$('').append(Nt.render()).appendTo(Bt),this.bindControl(new f(Nt,this._property.paneProperties.vertGridProperties.style,parseInt,!0,this.model(),"Change Vert Grid Lines Style")),Ft=this.addLabeledRow(Ot,$.t("Horz Grid Lines")),zt=this.createColorPicker(),$("").append(zt).appendTo(Ft),this.bindControl(new _(zt,this._property.paneProperties.horzGridProperties.color,!0,this.model(),"Change Horz Grid Lines Color")),Wt=w(),$('').append(Wt.render()).appendTo(Ft),this.bindControl(new f(Wt,this._property.paneProperties.horzGridProperties.style,parseInt,!0,this.model(),"Change Horz Grid Lines Style")),Ht=this.createColorPicker(),Ut=this.addLabeledRow(Ot,$.t("Scales Text")),$("").append(Ht).appendTo(Ut), this.bindControl(new _(Ht,this._property.scalesProperties.textColor,!0,this.model(),"Change Scales Text Color")),jt=this.createFontSizeEditor(),$("").append(jt).appendTo(Ut),this.bindControl(new f(jt,this._property.scalesProperties.fontSize,parseInt,!0,this.model(),"Change Scales Font Size")),qt=this.createColorPicker(),Yt=this.addLabeledRow(Ot,$.t("Scales Lines")),$('').append(qt).appendTo(Yt),this.bindControl(new _(qt,this._property.scalesProperties.lineColor,!0,this.model(),"Change Scales Lines Color")),Gt=this.addLabeledRow(Ot,$.t("Watermark")),Kt=this.createColorPicker(),$("").append(Kt).appendTo(Gt),this.bindControl(new _(Kt,this._property.symbolWatermarkProperties.color,!0,this.model(),"Change Symbol Watermark Color",this._property.symbolWatermarkProperties.transparency)),Xt=this.addLabeledRow(Ot,$.t("Crosshair")),Zt=this.createColorPicker(),$("").append(Zt).appendTo(Xt),this.bindControl(new _(Zt,this._property.paneProperties.crossHairProperties.color,!0,this.model(),"Change Crosshair Color",this._property.paneProperties.crossHairProperties.transparency)),Jt=w(),$("").append(Jt.render()).appendTo(Xt),this.bindControl(new f(Jt,this._property.paneProperties.crossHairProperties.style,parseInt,!0,this.model(),"Change Crosshair Style")),Qt=S(),$("").append(Qt).appendTo(this.addRow(Ot).prepend("")),this.bindControl(new u(Qt,this._property.paneProperties.crossHairProperties.width,!0,this.model(),"Change Crosshair Width")),te=$(''),ee=this.addLabeledRow(te,$.t("Navigation Buttons"),null,!0),ie=[],Object.keys(P.visibilityPropertyAvailableValues).forEach(function(t){ie.push('")}),oe=$(""),$("
").append(oe).appendTo(ee),this.bindControl(new f(oe,P.visibilityProperty,null,!0,this.model(),"Change Navigation Buttons Visibility")),ne=$(''),se=$(''),re=this.addLabeledRow(ne,$.t("Symbol Description"),se),$("
").append(se).prependTo(re),this.bindControl(new p(se,this._property.paneProperties.legendProperties.showSeriesTitle,!0,this.model(),"Change Symbol Description Visibility")),ae=$(''),le=this.addLabeledRow(ne,$.t("OHLC Values"),ae),$("").append(ae).prependTo(le),this.bindControl(new p(ae,this._property.paneProperties.legendProperties.showSeriesOHLC,!0,this.model(),"Change OHLC Values Visibility")),he=$(''),ce=this.addLabeledRow(ne,$.t("Indicator Titles"),he),$("").append(he).prependTo(ce),this.bindControl(new p(he,this._property.paneProperties.legendProperties.showStudyTitles,!0,this.model(),"Change Indicator Titles Visibility")),de=$(''),pe=this.addLabeledRow(ne,$.t("Indicator Arguments"),de),ue=function(t){de.prop("disabled",!t.value())},$("").append(de).prependTo(pe), this.bindControl(new p(de,this._property.paneProperties.legendProperties.showStudyArguments,!0,this.model(),"Change Indicator Arguments Visibility")),this._property.paneProperties.legendProperties.showStudyTitles.listeners().subscribe(this,ue),ue(this._property.paneProperties.legendProperties.showStudyTitles),_e=$(''),fe=this.addLabeledRow(ne,$.t("Indicator Values"),_e),$("").append(_e).prependTo(fe),this.bindControl(new p(_e,this._property.paneProperties.legendProperties.showStudyValues,!0,this.model(),"Change Indicator Values Visibility")),me=$('
').append(Ot),ge=$('
').append(ne),ve=$('
').append(te),C=$("
").css("min-width","520px").data("layout-tab",$.t("Background")),C.append(me).append(ge).append(ve)),e.enabled("chart_property_page_timezone_sessions")){for(k=$('').data("layout-tab",$.t("Timezone/Sessions")),this.tmzSessTable=k,ut=$("").appendTo(k),ye=$("
").appendTo(ut),be=$('').appendTo(ye),we=$(""),we.appendTo(be),Se=$("
"),Se.appendTo(we),Se.text($.t("Time Zone")),Te=$(''),Te.appendTo(we),Ce="",xe=0;xe'+x[xe].title+"";Pe=$(""),Pe.appendTo(Te),this.bindControl(new f(Pe,this._property.timezone,null,!0,this.model(),"Change Timezone")),e.enabled("charting_library_base")||(this._series.createSessStudy(),this.createSessTable(k))}Le=e.enabled("chart_property_page_events_alerts")&&!e.enabled("charting_library_base"),Le&&(ke=e.enabled("alerts")?$.t("Events & Alerts"):$.t("Events"),A=$('').data("layout-tab",ke),this.createEventsTable(A)),Ie=e.enabled("trading_options")||e.enabled("chart_property_page_trading"),Ie&&(I=this.createTradingTable()),n=$('
'),s=$('
').css({width:"100%"}).data("layout-separated",!0),L=$('
').data("layout-tab",$.t("Drawings")),this._table=$().add(t).add(i).add(o).add(n).add(s).add(r).add(b).add(a).add(T).add(C).add(L).add(k).add(I).add(A),this.loadData()},o.prototype.widget=function(){return this._table},o.prototype.loadData=function(){this.superclass.prototype.loadData.call(this),this.switchStyle()},o.prototype.loadTheme=function(t){var e=this;$.get("/theme/?themeName="+encodeURIComponent(t),function(t){e.applyTheme(JSON.parse(t.content))})},o.prototype.applyTheme=function(t){var e=this._seriesProperty.extendedHours.value();this._model.model().restoreTheme(t),this._seriesProperty.extendedHours.value()!==e&&this._seriesProperty.extendedHours.listeners().fire(this._seriesProperty.extendedHours),this.loadData()},o.prototype.createTemplateButton=function(t){var i,o,n diff --git a/charting_library/static/bundles/vendors.8c445fe91dc494c5dec6.js b/charting_library/static/bundles/vendors.7b89b40661ed8fd3d2ce.js similarity index 99% rename from charting_library/static/bundles/vendors.8c445fe91dc494c5dec6.js rename to charting_library/static/bundles/vendors.7b89b40661ed8fd3d2ce.js index 753ea3a4..600c116e 100644 --- a/charting_library/static/bundles/vendors.8c445fe91dc494c5dec6.js +++ b/charting_library/static/bundles/vendors.7b89b40661ed8fd3d2ce.js @@ -1,4 +1,4 @@ -!function(t){function e(i){if(n[i])return n[i].exports;var r=n[i]={exports:{},id:i,loaded:!1};return t[i].call(r.exports,r,r.exports,e),r.loaded=!0,r.exports}var n,i,r=window.webpackJsonp;window.webpackJsonp=function(o,s){for(var a,l,u=0,c=[];u=0===n})}function g(t){var e=pt.split("|"),n=t.createDocumentFragment();if(n.createElement)for(;e.length;)n.createElement(e.pop());return n}function m(t,e){ +!function(t){function e(i){if(n[i])return n[i].exports;var r=n[i]={exports:{},id:i,loaded:!1};return t[i].call(r.exports,r,r.exports,e),r.loaded=!0,r.exports}var n,i,r=window.webpackJsonp;window.webpackJsonp=function(o,s){for(var a,l,u=0,c=[];u=0===n})}function g(t){var e=pt.split("|"),n=t.createDocumentFragment();if(n.createElement)for(;e.length;)n.createElement(e.pop());return n}function m(t,e){ return Te.nodeName(t,"table")?t.getElementsByTagName("tbody")[0]||t.appendChild(t.ownerDocument.createElement("tbody")):t}function y(t,e){if(1===e.nodeType&&Te.hasData(t)){var n,i,r,o=Te._data(t),s=Te._data(e,o),a=o.events;if(a){delete s.handle,s.events={};for(n in a)for(i=0,r=a[n].length;i0){if("border"!==n)for(;r").appendTo(e),i=n.css("display");n.remove(),"none"!==i&&""!==i||(pe||(pe=Se.createElement("iframe"),pe.frameBorder=pe.width=pe.height=0),e.appendChild(pe),ge&&pe.createElement||(ge=(pe.contentWindow||pe.contentDocument).document,ge.write((Te.support.boxModel?"":"")+""),ge.close()),n=ge.createElement(t),ge.body.appendChild(n),i=Te.css(n,"display"),e.removeChild(pe)),de[t]=i}return de[t]}function j(t){return Te.isWindow(t)?t:9===t.nodeType&&(t.defaultView||t.parentWindow)}var F,H,Y,z,R,W,V,B,U,q,$,G,X,K,Q,J,Z,tt,et,nt,it,rt,ot,st,at,lt,ut,ct,ht,ft,dt,pt,gt,mt,yt,vt,bt,_t,wt,xt,kt,St,Mt,Dt,Tt,Ct,Pt,Ot,Et,Nt,Lt,At,It,jt,Ft,Ht,Yt,zt,Rt,Wt,Vt,Bt,Ut,qt,$t,Gt,Xt,Kt,Qt,Jt,Zt,te,ee,ne,ie,re,oe,se,ae,le,ue,ce,he,fe,de,pe,ge,me,ye,ve,be,_e,we,xe,ke,Se=o.document,Me=o.navigator,De=o.location,Te=function(){function t(){if(!a.isReady){try{Se.documentElement.doScroll("left")}catch(e){return void setTimeout(t,1)}a.ready()}}var e,n,i,r,a=function(t,n){return new a.fn.init(t,n,e)},l=o.jQuery,u=o.$,c=/^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,h=/\S/,f=/^\s+/,d=/\s+$/,p=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,g=/^[\],:{}\s]*$/,m=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,y=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,v=/(?:^|:|,)(?:\s*\[)+/g,b=/(webkit)[ \/]([\w.]+)/,_=/(opera)(?:.*version)?[ \/]([\w.]+)/,w=/(msie) ([\w.]+)/,x=/(mozilla)(?:.*? rv:([\w.]+))?/,k=/-([a-z]|[0-9])/gi,S=/^-ms-/,M=function(t,e){return(e+"").toUpperCase()},D=Me.userAgent,T=Object.prototype.toString,C=Object.prototype.hasOwnProperty,P=Array.prototype.push,O=Array.prototype.slice,E=String.prototype.trim,N=Array.prototype.indexOf,L={};return a.fn=a.prototype={constructor:a,init:function(t,e,n){var i,r,o,l;if(!t)return this;if(t.nodeType)return this.context=this[0]=t,this.length=1,this;if("body"===t&&!e&&Se.body)return this.context=Se,this[0]=Se.body,this.selector=t,this.length=1,this;if("string"==typeof t){ if(!(i="<"===t.charAt(0)&&">"===t.charAt(t.length-1)&&t.length>=3?[null,t,null]:c.exec(t))||!i[1]&&e)return!e||e.jquery?(e||n).find(t):this.constructor(e).find(t);if(i[1])return e=e instanceof a?e[0]:e,l=e?e.ownerDocument||e:Se,o=p.exec(t),o?a.isPlainObject(e)?(t=[Se.createElement(o[1])],a.fn.attr.call(t,e,!0)):t=[l.createElement(o[1])]:(o=a.buildFragment([i[1]],[l]),t=(o.cacheable?a.clone(o.fragment):o.fragment).childNodes),a.merge(this,t);if((r=Se.getElementById(i[2]))&&r.parentNode){if(r.id!==i[2])return n.find(t);this.length=1,this[0]=r}return this.context=Se,this.selector=t,this}return a.isFunction(t)?n.ready(t):(t.selector!==s&&(this.selector=t.selector,this.context=t.context),a.makeArray(t,this))},selector:"",jquery:"1.7.2",length:0,size:function(){return this.length},toArray:function(){return O.call(this,0)},get:function(t){return null==t?this.toArray():t<0?this[this.length+t]:this[t]},pushStack:function(t,e,n){var i=this.constructor();return a.isArray(t)?P.apply(i,t):a.merge(i,t),i.prevObject=this,i.context=this.context,"find"===e?i.selector=this.selector+(this.selector?" ":"")+n:e&&(i.selector=this.selector+"."+e+"("+n+")"),i},each:function(t,e){return a.each(this,t,e)},ready:function(t){return a.bindReady(),i.add(t),this},eq:function(t){return t=+t,-1===t?this.slice(t):this.slice(t,t+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(O.apply(this,arguments),"slice",O.call(arguments).join(","))},map:function(t){return this.pushStack(a.map(this,function(e,n){return t.call(e,n,e)}))},end:function(){return this.prevObject||this.constructor(null)},push:P,sort:[].sort,splice:[].splice},a.fn.init.prototype=a.fn,a.extend=a.fn.extend=function(){var t,e,n,i,r,o,l=arguments[0]||{},u=1,c=arguments.length,h=!1;for("boolean"==typeof l&&(h=l,l=arguments[1]||{},u=2),"object"==typeof l||a.isFunction(l)||(l={}),c===u&&(l=this,--u);u0)return;i.fireWith(Se,[a]),a.fn.trigger&&a(Se).trigger("ready").off("ready")}},bindReady:function(){if(!i){if(i=a.Callbacks("once memory"),"complete"===Se.readyState)return setTimeout(a.ready,1);if(Se.addEventListener)Se.addEventListener("DOMContentLoaded",r,!1),o.addEventListener("load",a.ready,!1);else if(Se.attachEvent){Se.attachEvent("onreadystatechange",r),o.attachEvent("onload",a.ready);var e=!1;try{e=null==o.frameElement}catch(t){}Se.documentElement.doScroll&&e&&t()}}},isFunction:function(t){return"function"===a.type(t)},isArray:Array.isArray||function(t){return"array"===a.type(t)},isWindow:function(t){ diff --git a/charting_library/static/tv-chart.fe3192321931572c06b8.html b/charting_library/static/tv-chart.017b428a4ef9c1e9362a.html similarity index 92% rename from charting_library/static/tv-chart.fe3192321931572c06b8.html rename to charting_library/static/tv-chart.017b428a4ef9c1e9362a.html index 933fa946..3058c993 100644 --- a/charting_library/static/tv-chart.fe3192321931572c06b8.html +++ b/charting_library/static/tv-chart.017b428a4ef9c1e9362a.html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file