/*! For license information please see embed_market_overview_widget.9bb513341cba36e11711.js.LICENSE.txt */ (window.webpackJsonp=window.webpackJsonp||[]).push([["embed_market_overview_widget",7,16,17,23,35,37,74,79,82,162,181,182,189,267,283],{"+GxX":function(t,e,o){"use strict";var n=o("VVxS").TVLocalStorage;o("qFKp"),TradingView.FeatureToggle={force_prefix:"forcefeaturetoggle.",enableFeature:function(t){n.setItem(this.force_prefix+t,"true")},disableFeature:function(t){n.setItem(this.force_prefix+t,"false")},resetFeature:function(t){n.removeItem(this.force_prefix+t)}},TradingView.isFeatureEnabled=function(t){function e(e){var o=Math.random()<=t[e];return n.setItem("featuretoggle."+e,o),o}return TradingView.onWidget()||Promise.all([o.e("vendors_embed"),o.e(55),o.e(162),o.e(283)]).then(function(n){o("TxTq").on("featuretoggle",(function(o){t[o.name]=o.state,e(o.name)}))}.bind(null,o)).catch(o.oe),function(o){if("local"===window.environment&&function(t){return-1===["black_friday_mainpage","black_friday_popup","black_friday","broker_ALOR_dev","broker_TRADESTATION_coming_soon","datawindow","hide-copy-readonly","chart_sharing","hide-alert-controls-on-property-page","trading-fast-renew-oauth-token","switching_trial_year_to_month_disabled","switching_year_to_month_disabled","default_year_billing_cycle_switcher","marketing-analytics","trial_verify_phone","disable_obs_streaming","broker_FXCM_token_v2","disable-alert-resolution-filter","google-ads","visible_address_fields_by_default","slow-support-warning","hide-trading-floating-toolbar","tvcoins_donations","details_disable_bid_ask","vat_disabled"].indexOf(t)&&-1===t.indexOf("-maintenance")}(o))return!0;if(t[o]&&-1===t[o])return!1;if("true"===n.getItem(TradingView.FeatureToggle.force_prefix+o)||window.is_authenticated&&"undefined"!=typeof user&&user.settings&&"true"===user.settings[TradingView.FeatureToggle.force_prefix+o])return!0;if("false"===n.getItem(TradingView.FeatureToggle.force_prefix+o)||window.is_authenticated&&"undefined"!=typeof user&&user.settings&&"false"===user.settings[TradingView.FeatureToggle.force_prefix+o])return!1;if(!t[o])return!1;if(1===t[o])return!0;var i=n.getItem("featuretoggle."+o);return null==i?e(o):"true"===i}}(window.featureToggleState||{}),e.FeatureToggle=TradingView.FeatureToggle,e.isFeatureEnabled=TradingView.isFeatureEnabled},"+lbv":function(t){ t.exports=JSON.parse('{"free":{"CHART_STORAGE":{"limit":1},"MULTIPLE_CHARTS":{"limit":1},"INDICATORS_ON_CHART":{"limit":3},"STUDY_ON_STUDY":{"limit":270,"child_limit":1},"SERVER_SIDE_ALERTS":{"limit":1},"SCREENER_ALERTS":{"limit":1},"SCREENER_INTERVALS":{"interval":["1D","1W","1M"]},"STUDY_TEMPLATES":{"limit":1},"SIMULTANEOUS_CONNECTIONS":{"limit":1}},"__legacy_pro":{"CHART_STORAGE":{"limit":99999},"MULTIPLE_CHARTS":{"limit":8},"CUSTOM_INTERVALS":{},"MULTIPLE_WATCHLISTS":{},"IMPORT_WATCHLISTS":{},"EXPORT_WATCHLISTS":{},"INDICATORS_ON_CHART":{"limit":99999},"TV_VOLUMEBYPRICE":{"study_packages":["tv-volumebyprice"]},"STUDY_ON_STUDY":{"limit":270,"child_limit":99999},"TICK_BY_TICK_PUSH_DATA":{},"SERVER_SIDE_ALERTS":{"limit":10},"SCREENER_ALERTS":{"limit":99999},"SCREENER_AUTO_REFRESH":{},"SCREENER_EXPORT_DATA":{},"SCREENER_INTERVALS":{"interval":["1m","5m","15m","1h","4h","1D","1W","1M"]},"SCREENER_REALTIME_IDC":{},"NO_SPONSORED_ADS":{},"STUDY_TEMPLATES":{"limit":99999},"SIMULTANEOUS_CONNECTIONS":{"limit":1},"IDC_AVAILABLE_DELAY":{},"STATUS":{"disable_on_trial":true},"MULTIFLAGGED_SYMBOLS_LISTS":{},"BAR_REPLAY_INTRADAY":{},"SHOWS":{"disable_on_trial":true},"ALERTS_WEBHOOK":{},"DEEP_FUNDAMENTALS_HISTORY":{}},"__legacy_pro_realtime":{"extends":"__legacy_pro","TV_PROSTUDIES":{"study_packages":["tv-prostudies"]},"SERVER_SIDE_ALERTS":{"limit":1000},"CAN_EDIT_PUBLIC_CHATS":{"disable_on_trial":true},"EXPORT_CHART_DATA":{}},"__legacy_pro_premium":{"extends":"__legacy_pro_realtime","ALERTS_TRUE_SMS":{"disable_on_trial":true},"IDEA_SIGNATURE":{"disable_on_trial":true},"PROFILE_WEBSITE_FIELD":{"disable_on_trial":true},"ALERTS_NO_EXPIRATION":{},"PUBLISH_INVITE_ONLY_SCRIPTS":{"disable_on_trial":true},"EXPORT_CHART_DATA":{},"ALERTS_ON_SECONDS":{"disable_on_trial":true},"PERMANENT_STREAM_RECORDS":{}},"pro":{"CHART_STORAGE":{"limit":5},"MULTIPLE_CHARTS":{"limit":2},"CUSTOM_INTERVALS":{},"MULTIPLE_WATCHLISTS":{},"IMPORT_WATCHLISTS":{},"EXPORT_WATCHLISTS":{},"INDICATORS_ON_CHART":{"limit":5},"TV_VOLUMEBYPRICE":{"study_packages":["tv-volumebyprice"]},"STUDY_ON_STUDY":{"limit":270,"child_limit":1},"TICK_BY_TICK_PUSH_DATA":{},"SERVER_SIDE_ALERTS":{"limit":10},"SCREENER_ALERTS":{"limit":99999},"SCREENER_AUTO_REFRESH":{},"SCREENER_EXPORT_DATA":{},"SCREENER_INTERVALS":{"interval":["1m","5m","15m","1h","4h","1D","1W","1M"]},"SCREENER_REALTIME_IDC":{},"NO_SPONSORED_ADS":{},"STUDY_TEMPLATES":{"limit":99999},"SIMULTANEOUS_CONNECTIONS":{"limit":1},"IDC_AVAILABLE_DELAY":{},"STATUS":{"disable_on_trial":true},"BAR_REPLAY_INTRADAY":{},"MULTIFLAGGED_SYMBOLS_LISTS":{},"SHOWS":{"disable_on_trial":true},"ALERTS_WEBHOOK":{},"DEEP_FUNDAMENTALS_HISTORY":{}},"pro_realtime":{"extends":"pro","CHART_STORAGE":{"limit":10},"MULTIPLE_CHARTS":{"limit":4},"INDICATORS_ON_CHART":{"limit":10},"TV_PROSTUDIES":{"study_packages":["tv-prostudies"]},"STUDY_ON_STUDY":{"limit":270,"child_limit":99999},"SERVER_SIDE_ALERTS":{"limit":30},"CAN_EDIT_PUBLIC_CHATS":{"disable_on_trial":true},"SIMULTANEOUS_CONNECTIONS":{"limit":2},"EXPORT_CHART_DATA":{}},"pro_premium":{"extends":"pro_realtime","CHART_STORAGE":{"limit":99999},"MULTIPLE_CHARTS":{"limit":8},"INDICATORS_ON_CHART":{"limit":25},"SERVER_SIDE_ALERTS":{"limit":400},"SIMULTANEOUS_CONNECTIONS":{"limit":5},"ALERTS_TRUE_SMS":{"disable_on_trial":true},"IDEA_SIGNATURE":{"disable_on_trial":true},"PROFILE_WEBSITE_FIELD":{"disable_on_trial":true},"ALERTS_NO_EXPIRATION":{},"PUBLISH_INVITE_ONLY_SCRIPTS":{"disable_on_trial":true},"EXPORT_CHART_DATA":{},"ALERTS_ON_SECONDS":{"disable_on_trial":true},"PERMANENT_STREAM_RECORDS":{}},"pro_mini_alerts":{"extends":"free","SERVER_SIDE_ALERTS":{"limit":30},"SCREENER_ALERTS":{"limit":99999},"SCREENER_REALTIME_IDC":{},"SHOWS":{"disable_on_trial":true},"IDC_AVAILABLE_DELAY":{},"DEEP_FUNDAMENTALS_HISTORY":{}},"pro_mini_ads":{"extends":"free","SCREENER_REALTIME_IDC":{},"NO_SPONSORED_ADS":{},"SHOWS":{"disable_on_trial":true},"IDC_AVAILABLE_DELAY":{},"DEEP_FUNDAMENTALS_HISTORY":{}},"pro_mini_layouts":{"extends":"free","MULTIPLE_CHARTS":{"limit":8},"SCREENER_REALTIME_IDC":{},"SHOWS":{"disable_on_trial":true},"IDC_AVAILABLE_DELAY":{},"DEEP_FUNDAMENTALS_HISTORY":{}},"pro_edu":{"extends":"free","CHART_STORAGE":{"limit":3},"MULTIPLE_CHARTS":{"limit":2},"MULTIPLE_WATCHLISTS":{},"IMPORT_WATCHLISTS":{},"EXPORT_WATCHLISTS":{},"TICK_BY_TICK_PUSH_DATA":{},"SERVER_SIDE_ALERTS":{"limit":5},"SCREENER_ALERTS":{"limit":99999},"SCREENER_REALTIME_IDC":{},"SHOWS":{"disable_on_trial":true},"IDC_AVAILABLE_DELAY":{},"DEEP_FUNDAMENTALS_HISTORY":{}}}') },"/3z9":function(t,e,o){"use strict";o.r(e),o.d(e,"isMacKeyboard",(function(){return r})),o.d(e,"Modifiers",(function(){return n})),o.d(e,"modifiersFromEvent",(function(){return s})),o.d(e,"hashFromEvent",(function(){return a})),o.d(e,"humanReadableModifiers",(function(){return l})),o.d(e,"humanReadableHash",(function(){return d}));var n,i=o("qFKp"),r=Object(i.isMac)()||i.CheckMobile.iOS();function s(t){var e=0;return t.shiftKey&&(e+=1024),t.altKey&&(e+=512),t.ctrlKey&&(e+=256),t.metaKey&&(e+=2048),e}function a(t){return s(t)|t.keyCode}function l(t){var e="";return 256&t&&(e+=r?"^":"Ctrl + "),512&t&&(e+=r?"⌥":"Alt + "),1024&t&&(e+=r?"⇧":"Shift + "),2048&t&&(e+=r?"⌘":"Win + "),e}!function(t){t[t.None=0]="None",t[t.Alt=512]="Alt",t[t.Shift=1024]="Shift",t[t.Mod=r?2048:256]="Mod",t[t.Control=256]="Control",t[t.Meta=2048]="Meta"}(n||(n={}));for(var c={9:"⇥",13:"↵",27:"Esc",8:r?"⌫":"Backspace",32:"Space",35:"End",36:"Home",37:"←",38:"↑",39:"→",40:"↓",45:"Ins",46:"Del",191:"/"},u=1;u<=16;u++)c[u+111]="F"+u;function d(t){var e=l(t),o=255&t;return e+=o in c?c[o]:String.fromCharCode(o)}},"/NcV":function(t,e){t.exports=''},"0F0w":function(t,e,o){"use strict";o.r(e);var n=o("mrSG"),i=o("aIyQ"),r=o.n(i),s=o("Eyy1"),a=o("hY0g"),l=o.n(a),c=o("0waE"),u=o("uOxu"),d=Object(u.getLogger)("ChartApi.AbstractSession"),h=function(){function t(t,e,o){this._isConnected=new l.a(!1),this._state=0,this._isConnectForbidden=!1,this._sessionId="",this._sessionIdChanged=new r.a,this._chartApi=t,this._sessionPrefix=e,this._shouldReconnectAfterCriticalError=o}return t.prototype.destroy=function(){this._logNormal("Destroying session"),this._isConnected.unsubscribe(),this.disconnect(),this._sessionIdChanged.destroy(),delete this._chartApi,this._logNormal("Session has been destroyed")},t.prototype.isConnected=function(){return this._isConnected},t.prototype.sessionId=function(){return this._sessionId},t.prototype.onSessionIdChanged=function(){return this._sessionIdChanged},t.prototype.connect=function(){0===this._state&&(Object(s.assert)(!this._isConnectForbidden,"Cannot call connect because it is forbidden at this moment"),this._setSessionId(this._sessionPrefix+"_"+Object(c.randomHash)()),this._logNormal("Connecting session - wait until transport stay connected"),this._state=1,this._chartApi.createSession(this._sessionId,this))},t.prototype.disconnect=function(){var t=this;0!==this._state&&(Object(s.assert)(""!==this._sessionId,"sessionId must not be invalid"),this._logNormal("Disconnecting session..."),this._forbidConnectWhile((function(){t._chartApi.connected()&&t._sendRemoveSession(),t._processDestroyingOnServer()})))},t.prototype.onMessage=function(t){switch(t.method){case"connected":return void this._onChartApiConnected();case"disconnected":return void this._onChartApiDisconnected();case"critical_error":var e=String(t.params[0]),o=String(t.params[1]) ;return void this._onCriticalError(e,o)}this._onMessage(t)},t.prototype._getChartApi=function(){return this._chartApi},t.prototype._generateLogMessage=function(t){return"["+this._sessionId+"] "+t},t.prototype._onCriticalError=function(t,e){var o=this;this._logError("Critical error. Reason="+t+", info="+e+"."),this._forbidConnectWhile((function(){o._processDestroyingOnServer()})),this._shouldReconnectAfterCriticalError?(this._logNormal("Reconnecting after critical error..."),this.connect()):this._logNormal("Reconnecting after critical error skipped")},t.prototype._onChartApiConnected=function(){Object(s.assert)(1===this._state,"Session is not registered"),this._logNormal("Transport is connected. Creating session on the server"),this._sendCreateSession(),this._state=2,this._isConnected.setValue(!0)},t.prototype._onChartApiDisconnected=function(){var t=this;this._logNormal("Transport is disconnected. Reconnecting..."),this._forbidConnectWhile((function(){t._processDestroyingOnServer()})),this.connect()},t.prototype._setSessionId=function(t){var e=this._sessionId;this._logNormal("Changing sessionId: old="+e+", new="+t),this._sessionId=t,this._sessionIdChanged.fire(t,e)},t.prototype._logNormal=function(t){d.logNormal(this._generateLogMessage(t))},t.prototype._logError=function(t){d.logError(this._generateLogMessage(t))},t.prototype._processDestroyingOnServer=function(){this._state=0,this._isConnected.setValue(!1),this._chartApi.removeSession(this._sessionId),this._setSessionId("")},t.prototype._forbidConnectWhile=function(t){this._isConnectForbidden=!0,t(),this._isConnectForbidden=!1},t}();o.d(e,"ChartSession",(function(){return _}));var p=Object(u.getLogger)("ChartSession"),_=function(t){function e(e,o){void 0===o&&(o=!1);var n=t.call(this,e,"cs",!1)||this;return n._sessionDisabled=!1,n._handler=null,n._criticalError=new r.a,n._disableStatistics=o,n}return Object(n.__extends)(e,t),e.prototype.destroy=function(){this._criticalError.destroy(),this._handler=null,t.prototype.destroy.call(this)},e.prototype.serverTimeOffset=function(){return this._getChartApi().serverTimeOffset()},e.prototype.switchTimezone=function(t){return this._getChartApi().switchTimezone(this.sessionId(),t)},e.prototype.defaultResolutions=function(){return this._getChartApi().defaultResolutions()},e.prototype.availableCurrencies=function(){return this._getChartApi().availableCurrencies()},e.prototype.resolveSymbol=function(t,e,o){return this._getChartApi().resolveSymbol(this.sessionId(),t,e,o)},e.prototype.requestFirstBarTime=function(t,e,o){return this._getChartApi().requestFirstBarTime(this.sessionId(),t,e,o)},e.prototype.createSeries=function(t,e,o,n,i,r){return this._getChartApi().createSeries(this.sessionId(),t,e,o,n,i,r)},e.prototype.modifySeries=function(t,e,o,n,i){return this._getChartApi().modifySeries(this.sessionId(),t,e,o,n,i)},e.prototype.removeSeries=function(t,e){return!!this.isConnected().value()&&this._getChartApi().removeSeries(this.sessionId(),t,e)},e.prototype.requestMoreData=function(t,e,o){ return this._getChartApi().requestMoreData(this.sessionId(),t,e,o)},e.prototype.requestMoreTickmarks=function(t,e,o){return this._getChartApi().requestMoreTickmarks(this.sessionId(),t,e,o)},e.prototype.requestMetadata=function(t,e){var o=this;window.localForageReady.done((function(){return o._getChartApi().requestMetadata(o.sessionId(),t,e)})).fail((function(t){p.logError("localForage is not initialized, cannot proceed. "+t)}))},e.prototype.isCanCreateStudy=function(t){return this._getChartApi().isCanCreateStudy(t)},e.prototype.createStudy=function(t,e,o,n,i,r,s){return this._getChartApi().createStudy(this.sessionId(),t,e,o,n,i,r,s)},e.prototype.rebindStudy=function(t,e,o,n,i,r,s){return this._getChartApi().rebindStudy(this.sessionId(),t,e,o,n,i,r,s)},e.prototype.modifyStudy=function(t,e,o,n){return this._getChartApi().modifyStudy(this.sessionId(),t,e,o,n)},e.prototype.removeStudy=function(t,e,o){return this._getChartApi().removeStudy(this.sessionId(),t,e,o)},e.prototype.createPointset=function(t,e,o,n,i,r){return this._getChartApi().createPointset(this.sessionId(),t,e,o,n,i,r)},e.prototype.modifyPointset=function(t,e,o,n){return this._getChartApi().modifyPointset(this.sessionId(),t,e,o,n)},e.prototype.removePointset=function(t){return this._getChartApi().removePointset(this.sessionId(),t)},e.prototype.setVisibleTimeRange=function(t,e,o,n,i){0},e.prototype.criticalError=function(){return this._criticalError},e.prototype.connect=function(e){void 0===e&&(e=null),null!==e&&(this._handler=e),t.prototype.connect.call(this)},e.prototype.setHandler=function(t){this._handler=t},e.prototype.connected=function(){return this.isConnected().value()&&!this._sessionDisabled},e.prototype.disable=function(){this._sessionDisabled=!0},e.prototype.chartApi=function(){return this._getChartApi()},e.prototype._sendCreateSession=function(){var t=this;Object.keys(this).forEach((function(e){/^(s|st|symbol_)\d+$/.test(e)&&delete t[e]})),this._getChartApi().chartCreateSession(this.sessionId(),this._disableStatistics)},e.prototype._sendRemoveSession=function(){this._getChartApi().chartDeleteSession(this.sessionId())},e.prototype._onMessage=function(t){this._handler&&this._handler(t)},e.prototype._onCriticalError=function(e,o){this._criticalError.fire(e,o),t.prototype._onCriticalError.call(this,e,o)},e}(h)},"0UyP":function(t,e,o){"use strict";o.r(e),o.d(e,"getTracker",(function(){return i}));var n=o("mrSG");function i(){return Object(n.__awaiter)(this,void 0,void 0,(function(){var t,e;return Object(n.__generator)(this,(function(n){switch(n.label){case 0:return window.user&&!window.user.do_not_track?[3,1]:[2,null];case 1:return[4,o.e("snowplow-tracker").then(o.bind(null,"fZ4Q"))];case 2:return t=n.sent(),(e=t.getTrackerInstance())?[2,e]:[2,null]}}))}))}},"0waE":function(t,e,o){"use strict";o.r(e),o.d(e,"guid",(function(){return i})),o.d(e,"randomHash",(function(){return r})),o.d(e,"randomHashN",(function(){return s}));var n="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function i(){ return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){var e=16*Math.random()|0;return("x"===t?e:3&e|8).toString(16)}))}function r(){return s(12)}function s(t){for(var e="",o=0;o=1;--e){var n=this._ticker.slice(0,e);if(t(n)){this._root=n,this._contract=this._ticker.slice(e);break}}},g.prototype.exchange=function(t){if(this.hasOwnProperty("_ticker")||this.parse(),!(arguments.length>0))return this._exchange;null==t?delete this._exchange:this._exchange=t+""},g.prototype.ticker=function(t){if(this.hasOwnProperty("_ticker")||this.parse(),!(arguments.length>0))return this._ticker;null==t?delete this._ticker:this._ticker=t+"",delete this._root,delete this._contract},g.prototype.root=function(t){if(this.hasOwnProperty("_root")||this.parseAsFutures(),!(arguments.length>0))return this._root;null==t?delete this._root:(this._root=t+"",this._root&&(this._ticker=this._root+(this._contract||"")))},g.prototype.contract=function(t){if(this.hasOwnProperty("_contract")||this.parseAsFutures(),!(arguments.length>0))return this._root;null==t?delete this._contract:(this._contract=t+"",this._root&&(this._ticker=this._root+this._contract))},n(m,i),m.prototype.toString=function(){return this.hasOwnProperty("_normalizedValue")?this._normalizedValue:this.value},m.prototype.parse=function(){this._normalizedValue=this.value.replace(/^0+|\.0*$/g,"").replace(/(\.\d*?)0+$/,"$1").replace(/^(\.|$)/,"0$1")},v.prototype.toString=function(){return this.value},n(y,g),y.prototype.isIncomplete=!0, y.prototype.incompleteSuggest=function(){if("'"!==this.value)return String("'")},n(b,m),b.prototype.isIncomplete=!0;var w=new RegExp(t.map((function(t){return"("+("string"==typeof t.pattern?t.pattern.replace(/[\^\$\(\)\[\]\{\}\*\+\?\|\\]/g,"\\$&"):t.pattern.source)+")"})).concat(".").join("|"),"g");function S(e,o){var n,i=[];t:for(;n=w.exec(e);){for(var s=t.length;s--;)if(n[s+1]){if(t[s].ctor){var a=new t[s].ctor(n[s+1]);a._offset=n.index,i.push(a)}continue t}var l=new v(n[0]);l._offset=n.index,i.push(l)}if(o&&o.recover){var c;for(s=i.length;s--;){var u=i[s];if(u instanceof m||u instanceof g){if(void 0!==c){var d=new g(""),h=i.splice(s,c-s+1,d);d.value=h.map((function(t){return t.value})).join("")}c=s}else u instanceof r||(c=void 0)}}return i}function C(t){for(var e=[],o=0;or.precedence&&(n[n.length-1].minPrecedence=r.precedence);else if(r instanceof s)n.push(e={minPrecedence:1/0,openBraceIndex:i});else if(r instanceof a){var c=t[(e=n.pop()).openBraceIndex-1],u=t[i+1];u instanceof l&&!(u.precedence<=e.minPrecedence)||!(!(c instanceof l)||c.precedencee.minPrecedence&&(n[n.length-1].minPrecedence=e.minPrecedence))}}for(i=o.length;i--;)t.splice(o[i],1);return t}function T(t){if("string"!=typeof t)throw new TypeError("expression must be a string");return(t=S(t)).filter((function(t){return t instanceof g})).map((function(t){return t.exchange()})).filter((function(t){return t}))}function x(t){return 1!==(t=T(t)).length?null:t[0]}function A(t,e){return(t=T(t)).some((function(t){return e.includes((t||"").toUpperCase())}))}function k(t){return t.join("")}return{tokenize:S,validate:function(t){if(e.enabled("charting_library_base"))return{currentState:"var"};for(var o="init",n={warnings:[],errors:[],isEmpty:!0},i=[],c=0;c2&&void 0!==arguments[2]?arguments[2]:{};this._options=(0,s.deepExtend)(this.defaults(),i),this._elContainer=o,this._canvasBinding=null,this._ctx=null,this._onResizeThrottled=null,this._isResizeScheduled=!1,this._plots=(t||[]).map((function(t){return i=(0,s.deepExtend)({},n._options.plot,t.options||{}),new y(t.data,i)})),this._initCanvas();var r=function(){return n._plots};this._xScale=new C(r,this._canvasBinding,this._options.xScale),this._yScale=new E(r,this._canvasBinding,this._options.yScale),this._plotArea=new w(r,this._canvasBinding,this._xScale,this._yScale,{grid:this._options.grid,plot:this._options.plot,loading:this._options.loading,overlayLines:this._options.overlayLines}),this.height=new e(0),this.width=new e(0),this._initSizeHandling(),this._onPlotsChanged(),!0!==i.noAutoResize&&this.bindOnResize()}function y(t,e){this.id=(0,d.guid)(),this._options=(0,c.clone)(e),this._x=null,this._y=null,t&&this.setData(t,!0),this.dataChanged=new n}function b(t,o,n,i){this.originX=new e(t||0),this.originY=new e(o||0),this.width=new e(n||0),this.height=new e(i||0)}function w(t,e,o,n,i){b.call(this),this.getWidgetPlots=t,this._canvasBinding=e,this._ctx=(0,p.getPretransformedContext2D)(this._canvasBinding),this._xScale=o,this._yScale=n,this._options=i,this._elLoadingIndicator=null;var r=this._xScale._options.visible&&"top"===this._xScale._options.position&&!this._xScale._options.drawOverPlotArea?this._xScale.height.value():0;this.originY.setValue(r),this.originY.setValue=function(){m.logWarn("updating originY forbidden")}}function S(t,e,o){b.call(this),this._canvasBinding=e,this._ctx=(0,p.getPretransformedContext2D)(this._canvasBinding),this._options=o,this._min=null,this._max=null,this._tickMarks=[],this.getWidgetPlots=t}function C(t,e,o){S.apply(this,arguments),this._series=[];var n="number"==typeof this._options.height&&this._options.height||this._options.paddingBottom+this._options.font.size+this._options.paddingTop;this.height.setValue(n),this.height.setValue=function(){m.logWarn("updating height forbidden")},this.width.subscribe(this._updateSize.bind(this))}function E(t,e,o){ S.apply(this,arguments),this._min=null,this._max=null,this.height.subscribe(this._updateSize.bind(this))}v.prototype.defaults=function(){return{showMessage:!0,minWidth:100,minHeight:75,bgColor:null,grid:{xIsVisible:!0,yIsVisible:!0,line:{width:1,style:r.LINESTYLE_DASHED,color:"#e9e9ea"}},xScale:{visible:!0,position:"bottom",isTimeScale:!0,height:null,paddingTop:4,paddingBottom:4,font:{size:10,family:f.CHART_FONT_FAMILY,color:"#83888d"},drawOverPlotArea:!0,ingnoreFloats:!1,bgColor:"transparent",borderColor:"transparent",drawTickMarkLine:!1,maxTickMarkAmount:10,paddingHorz:10,fade:!1},yScale:{visible:!0,position:"right",isPercentage:!1,paddingLeft:4,paddingRight:4,marginInPercents:10,font:{size:10,family:f.CHART_FONT_FAMILY,color:"#83888d"},drawOverPlotArea:!0,ingnoreFloats:!1,bgColor:"transparent",borderColor:"transparent",drawTickMarkLine:!1,fade:!1},plot:{line:{width:2,color:l.color.success,colorGrowing:null,colorFalling:null},belowLineFillStyle:"rgba(60, 188, 152, 0.05)",belowLineFillStyleGrowing:null,belowLineFillStyleFalling:null,aboveLineFillStyle:null,aboveLineFillStyleGrowing:null,aboveLineFillStyleFalling:null,last:{visible:!1,style:r.LINESTYLE_DASHED,color:null,colorGrowing:null,colorFalling:null}},loading:{width:4,color:l.color.spinner}}},v.prototype._initCanvas=function(){var t=this;this._canvasBinding=(0,p.createBoundCanvas)(this._elContainer,{width:this._options.minWidth,height:this._options.minHeight}),this._canvasBinding.canvas.style.display="block",this._ctx=(0,p.getPretransformedContext2D)(this._canvasBinding),this._ctx._fillText=function(e,o,n){o=Math.round(o),n=Math.round(n),t._ctx.fillText(e,o,n)}},v.prototype._initSizeHandling=function(){var t=this,e=this._xScale,o=this._yScale,n=this._plotArea;function i(t){return!t._options.drawOverPlotArea&&t._options.visible}function r(){var o=i(e)?t.height.value()-e.height.value():t.height.value();n.height.setValue(o)}function s(){var e=i(o)?t.width.value()-o.width.value():t.width.value(),r=[],s=!0,a=!1,l=void 0;try{for(var c,u=t._plots[Symbol.iterator]();!(s=(c=u.next()).done);s=!0){var d=c.value;r.push(d._options.line.width)}}catch(p){a=!0,l=p}finally{try{!s&&u.return&&u.return()}finally{if(a)throw l}}var h=.5*Math.max(r);n.width.setValue(e-h)}function a(){var t=0;"right"===o._options.position&&(t=i(o)?n.width.value():n.width.value()-o.width.value()),o.originX.setValue(t)}t.height.subscribe(r),e.height.subscribe(r),n.height.subscribe((function(t){var r;o.height.setValue(t),r=0,"bottom"===e._options.position&&(r=i(e)?n.height.value():n.height.value()-e.height.value()),e.originY.setValue(r)})),t.width.subscribe(s),o.width.subscribe(s),o.width.subscribe((function(){var t=0;"left"===o._options.position&&i(o)&&(t=o.width.value()),n.originX.setValue(t)})),o.width.subscribe(a),o.width.subscribe((function(){var t=0;"left"===o._options.position&&i(o)&&(t=o.width.value()),e.originX.setValue(t)})),n.width.subscribe((function(t){e.width.setValue(t),a()}))},v.prototype.resetSize=function(){ var t=this._elContainer.clientHeight||this._options.minHeight,e=this._elContainer.clientWidth||this._options.minWidth,o="left"===this._yScale._options.position?this._yScale.width.value():0,n="top"===this._xScale._options.position?this._xScale.height.value():0;this._xScale.originX.setValue(o),this._yScale.originY.setValue(n),this._canvasBinding.resizeCanvas({width:e,height:t}),this._ctx=(0,p.getPretransformedContext2D)(this._canvasBinding),this.height.setValue(t),this.width.setValue(e)},v.prototype.onResize=function(){this._isResizeScheduled=!1,this.resetSize(),this.draw()},v.prototype.bindOnResize=function(){var t=this;this._onResizeThrottled||(this._onResizeThrottled=function(){t._isResizeScheduled||(t._isResizeScheduled=!0,window.requestAnimationFrame(t.onResize.bind(t)))},window.addEventListener("resize",this._onResizeThrottled))},v.prototype.unbindOnResize=function(){this._onResizeThrottled&&(window.removeEventListener("resize",this._onResizeThrottled),delete this._onResizeThrottled)},v.prototype.destroy=function(){this.unbindOnResize()},v.prototype.addPlot=function(t){var e=t;if(!(e instanceof y)){if(!e.data)return void m.logError("wrong plot format");var o=(0,c.clone)(this._options.plot);o=(0,s.deepExtend)(o,e.options||{}),e=new y(e.data,o)}if(!!!this._plots.filter((function(t){return t.id===e.id})).length)return this._plots.push(e),e.dataChanged.subscribe(this,this._onPlotsChanged),this._onPlotsChanged(),e},v.prototype._onPlotsChanged=function(){this.resetSize(),this._yScale.onPlotsChanged(),this._xScale.onPlotsChanged(),this.draw()},v.prototype.removePlot=function(t){this._plots=this._plots.filter((function(e){return e.id!==t.id})),this._yScale.onPlotsChanged.call(this._yScale),this._xScale.onPlotsChanged.call(this._xScale),this.draw()},v.prototype.removeAllPlots=function(){this._plots=[],this._yScale.onPlotsChanged.call(this._yScale),this._xScale.onPlotsChanged.call(this._xScale),this.draw()},v.prototype.draw=function(){this._messageShown?this.showMessage(this._messageShown):(this._plotArea.draw(),this._yScale.draw(),this._xScale.draw())},v.prototype.showMessage=function(t){this._options.showMessage&&(this._showMessage(t),this._messageShown=t)},v.prototype.hideMessage=function(t){delete this._messageShown,this.draw()},v.prototype._showMessage=function(t){this._plotArea._hideLoading(),this._options.bgColor&&"transparent"!==this._options.bgColor?(this._ctx.fillStyle=this._options.bgColor,this._ctx.fillRect(0,0,this.width.value(),this.height.value())):this._ctx.clearRect(0,0,this.width.value(),this.height.value());var e=this._ctx.measureText(t).width;this._ctx.fillStyle=this._options.xScale.font.color,this._ctx.font=this._options.xScale.font.size+"px "+this._options.xScale.font.family,this._ctx._fillText(t,(this.width.value()-e)/2,(this.height.value()-this._options.xScale.font.size)/2)},v.prototype.xScale=function(){return this._xScale},v.prototype.yScale=function(){return this._yScale},v.prototype.getContainer=function(){return this._elContainer},y.prototype.setData=function(t,e){ t.x&&t.y||m.logError("wrong data format"),this._x=t.x,this._y=t.y,e||this.dataChanged.fire()},y.prototype.setOptions=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments[1];this._options=(0,s.deepExtend)(this._options,t),e||this.dataChanged.fire()},y.prototype.x=function(){return this._x},y.prototype.y=function(t){var e,o,n,i=this._y;if(!t)return i;e=function(){for(var t=0,e=i.length;ts?(a=e._options.line.colorFalling||e._options.line.color,l=e._options.last.colorFalling||a,c=e._options.belowLineFillStyleFalling||e._options.belowLineFillStyle,u=e._options.aboveLineFillStyleFalling||e._options.aboveLineFillStyle):(a=e._options.line.color,l=e._options.last.color||a,c=e._options.belowLineFillStyle,u=e._options.aboveLineFillStyle),1!==o.length){if(c&&"transparent"!==c&&this._drawNearAroundArea(t,o,n,m,c),u&&"transparent"!==u&&this._drawNearAroundArea(t,o,n,g,u),this._drawLine(t,o,n,e._options.line.width,a),e._options.last.visible){var y=Math.round(p(s));t.lineStyle=e._options.last.style,t.strokeStyle=l,t.lineWidth=e._options.line.width,r.drawLine(t,_,y,f,y)}}else this._drawCircle(t,o[0],n[0],e._options.line.width,e._options.line.color)},w.prototype._drawNearAroundArea=function(t,e,o,n,i){var r=function(){for(var t=0,n=e.length;t=0;t--)if(isNumber(e[t])&&isNumber(o[t]))return t;return null}();if(null!==r||null!==s){t.fillStyle=i,t.beginPath(),t.moveTo(e[r],n);for(var a=r;a<=s;a++)isNumber(e[a])&&isNumber(o[a])&&t.lineTo(e[a],o[a]);t.lineTo(e[s],n),t.closePath(),t.fill()}},w.prototype._drawLine=function(t,e,o,n,i){var r=function(){for(var t=0,n=e.length;t=0;t--)if(isNumber(e[t])&&isNumber(o[t]))return t;return null}();if(null!==r||null!==s){t.lineWidth=n,t.strokeStyle=i,t.lineJoin="round",t.moveTo(e[r],o[r]),t.beginPath();for(var a=r;a<=s;a++)isNumber(e[a])&&isNumber(o[a])&&t.lineTo(e[a],o[a]);t.stroke()}},w.prototype._drawCircle=function(t,e,o,n,i){isNumber(e)&&isNumber(o)&&(t.beginPath(),t.arc(e,o,n,0,2*Math.PI,!1),t.fillStyle=i,t.fill())},w.prototype._showLoading=function(){this._isLoading||(this._canvasBinding.canvas.classList.add("i-invisible"),this._options.loading.noSpinner||(this._spinner||(this._spinner=new a.Spinner("mini").setStyle({color:this._options.loading.color||this._options.grid.line.color,width:this._options.loading.width,zIndex:1})),this._spinner.spin(this._canvasBinding.canvas.parentNode)),this._isLoading=!0)},w.prototype._hideLoading=function(){this._isLoading&&(this._spinner&&this._spinner.stop(),this._canvasBinding.canvas.classList.remove("i-invisible"),this._isLoading=!1)},(0,c.inherit)(S,b),S.prototype._calculateTickMarks=function(t,e,o){var n=this,i=n._min,r=n._max;if(!t||null===i||null===r||"function"!=typeof e)return[];o=o||"vertical";var s=n._options.maxTickMarkAmount||10,a=t/(s||20),l=!n._options.drawOverPlotArea;function c(t){return Math.round(1e6*t)/1e6+(n._options.isPercentage?"%":"")}function u(t){var i=c(t),r=n.valueToCoord(t);return"vertical"!==o||l?"vertical"===o&&l?r+.5*e(i):"horizontal"!==o||l?"horizontal"===o&&l?r-.5*e(i):void 0:r:r}function d(t){var i=c(t),r=n.valueToCoord(t) ;return"vertical"!==o||l?"vertical"===o&&l?r-.5*e(i):"horizontal"!==o||l?"horizontal"===o&&l?r+.5*e(i):void 0:r+e(i):r-e(i)}function h(t,e){return"vertical"===o?d(t)-a>u(e):n.originX.value()+n._options.paddingHorz<=u(e)&&u(e)<=n.originX.value()+n.width.value()-n._options.paddingHorz&&d(t)+a0;){var f=(r-i)/s,g=Math.pow(10,Math.ceil(Math.log(f)/Math.LN10));g/5>=f&&(g/=5),g/2>=f&&(g/=2);var m,v=Math.floor(i/g)*g;for(v1?this.width.value()/(this._maxIndex-this._minIndex-1):this.width.value()},C.prototype._updateTickMarks=function(){var t=this.width.value(),e=function(t){return this._ctx.measureText(t).width}.bind(this);this._options.isTimeScale?this._tickMarks=this._calculateTimeTickMarks(t,e):this._tickMarks=this._calculateTickMarks(t,e,"horizontal")},C.prototype._calculateTimeTickMarks=function(t,e){if(!t||null===this._min||null===this._max)return[];var o=this._max-this._min,n=o/86400,i=[],r=[],s=this._ctx;if(s.font=this._options.fontSize+"px "+this._options.fontFamily,s.fillStyle=this._options.fontColor,s.textBaseline="bottom",n<2)i=this._timeSplit(t,e,this._trimToHour,this._formatHour);else if(n<3)i=this._timeSplit(t,e,this._trimToHour,this._formatDayHour);else if(n<6)i=this._timeSplit(t,e,this._trimToDay,this._formatDay);else{if(o/604800<6)i=this._timeSplit(t,e,this._trimToWeek,this._formatDay);else if(o/2592e3<15){var a=new Date(1e3*this._max).getFullYear()===(new Date).getFullYear()?this._formatMonthOnly:this._formatMonthYear;i=this._timeSplit(t,e,this._trimToMonth,a)}else{var l=o/31104e3;i=l<6?this._timeSplit(t,e,this._trimToYear,this._formatYear):l<30?this._timeSplit(t,e,this._trimTo5Years,this._formatYear):l<50?this._timeSplit(t,e,this._trimTo10Years,this._formatYear):this._timeSplit(t,e,this._trimTo25Years,this._formatYear)}}for(var c=0,u=i.length;cthis._options.maxTickMarkAmount;){b++,y=[];for(h=0;h]+(>|$)/g,"")}function i(t){var e=/([^&=]+)=?([^&]*)/g,o={};if(!t)return o;for(var i=e.exec(t);i;)o[n(i[1])]=n(i[2]),i=e.exec(t);return o}function r(){return i(window.location.search.substring(1))}function s(){return i(window.location.hash.split("#")[1])}function a(t){var e=[];for(var o in t)t.hasOwnProperty(o)&&null!=t[o]&&e.push({key:o,pair:encodeURIComponent(o)+"="+encodeURIComponent(t[o])});return e.sort((function(t,e){return t.key>e.key?1:t.key2&&void 0!==arguments[2]?arguments[2]:{};e=e||{},i(t)&&(e.headers?e.headers instanceof Headers||(e.headers=new Headers(e.headers)):e.headers=new Headers, window.locale&&e.headers.set("X-Language",window.locale),e.headers.set("X-Requested-With","XMLHttpRequest"));var r=window.fetch(t,e);return r.then((function(i){if(!i.ok){var r="";e.method&&(r+=e.method.toUpperCase()+" "),r+=t,r+=". Status "+i.status,i.statusText&&(r+=". "+i.statusText),i.headers.via&&(r+=". Via: "+i.headers.via),o.logBodyOnError&&"string"==typeof e.body&&(r+=". Body: "+e.body.slice(0,1024)),n.logError(r)}return i}),(function(o){var i="";e.method&&(i+=e.method.toUpperCase()+" "),i+=t,navigator.onLine?i+=". "+o:i+=". User is offline.",n.logError(i)})),r};var n=(0,o("uOxu").getLogger)("Fetch");function i(t){var e=document.createElement("a");return e.href=t,e.hostname||(e.href=e.href),e.hostname===location.hostname&&!e.username}},Bdgc:function(t,e,o){"use strict";var n,i;o.r(e),o.d(e,"ParentEvents",(function(){return n})),o.d(e,"IFrameEvents",(function(){return i})),function(t){!function(t){t.SetSymbol="set-symbol",t.SetInterval="set-interval"}(t.Names||(t.Names={}))}(n||(n={})),function(t){!function(t){t.SymbolClick="tv-widget-symbol-click",t.WidgetLoad="tv-widget-load",t.ResizeIframe="tv-widget-resize-iframe",t.NoData="tv-widget-no-data"}(t.Names||(t.Names={}))}(i||(i={}))},BlPY:function(t,e){t.exports=[{name:window.t("All"),value:""},{name:window.t("Stock"),value:"stock"},{name:window.t("Futures"),value:"futures"},{name:window.t("Forex"),value:"forex"},{name:window.t("CFD"),value:"cfd"},{name:window.t("Cryptocurrency"),value:"bitcoin,crypto"},{name:window.t("Index"),value:"index"},{name:window.t("Economy"),value:"economic"}]},CLNU:function(t,e,o){(function(t){TradingView.cleanButAmpersand=function(t,e){var o=e?["&"]:["&"];return TradingView.clean(t,e,o)},TradingView.strip_tags=function(t){return t&&t.replace?t.replace(/(<([^>]+)>)/gi,""):t},TradingView.encodeSpread=function(t){return encodeURIComponent(t)},TradingView.clean=function(t,e,o){var n=[["&","&"],["<","<"],[">",">"],['"',"""],["'","'"],["'","'"]],i=t;if(!t||!t.replace)return i;for(var r=0;rr&&(l=r,a=!0),e.style.width=c(l)}if(null!==s){var u=n||s;"100%"===n&&(u=s),parseInt(u)>s&&(u=s,a=!0),e.style.height=c(u)}e.style.overflow=a?"auto":"hidden",e.innerHTML="";var d=Object(i.parseHtmlElement)(t),h=d.querySelector("script:not([src])"),p=document.querySelector("script[nonce]");null!==h&&null!==p&&("nonce"in p?h.nonce=p.nonce:h.setAttribute("nonce",p.getAttribute("nonce"))),e.appendChild(d)}function c(t){return null===t?"":(t.toString().endsWith("px")||(t+="px"),t)}},Eyy1:function(t,e,o){"use strict";function n(t){if(void 0===t)throw new Error("Value is undefined");return t}function i(t){if(null===t)throw new Error("Value is null");return t}Object.defineProperty(e,"__esModule",{value:!0}),e.assert=function(t,e){if(!t)throw new Error("Assertion failed"+(e?": "+e:""))},e.ensureDefined=n,e.ensureNotNull=i,e.ensure=function(t){return i(n(t))},e.ensureNever=function(t){}},FBuY:function(t,e,o){"use strict";o.r(e),o.d(e,"TVXWindowEvents",(function(){return n}));o("HbRj");var n,i=o("uOxu"),r=o("VVxS"),s=Object(i.getLogger)("XWindowEvents");!function(t){var e,o="tvxwevents.",n={};window.BroadcastChannel?((e=new BroadcastChannel("tvxwevents")).addEventListener("message",(function(t){var e=t.data,o=e.event,i=e.value;n[o]&&n[o].forEach((function(t){t(i)}))})),function(){for(var t=[],e=performance.now(),n=0;n0?e.toFixed(2):o.toFixed(0)}function T(t){var e=Math.round(100*t)/100,o=Math.round(10*t)/10,n=Math.round(e);return Math.abs(e-n)>0?Math.abs(e-o)>0?e.toFixed(2):o.toFixed(1):n.toFixed(0)}function x(t){var e=n.t("{proPlanName} Trial");if(_(t)){var o=m(f(t));return e.format({proPlanName:o})}return m(t)}},FoKP:function(t,e,o){"use strict";function n(t,e){for(var o=Object.create(Object.getPrototypeOf(t)),n=0,i=e;n2&&void 0!==arguments[2]?arguments[2]:{};this._chartApi=ChartApiInstance,this._options=(0,a.deepExtend)({},f.defaultOptions,o),this._widget=new p([],e,this._options.chartOptions),this._container=e,this.setTimeframe(this._options.timeframe.value,{updateData:!1}),this._initPlots(t),this.connect()}function g(t,o){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.id=f.random(),this._miniChart=t,this._viewOptions=i||{},this._view=null,this.symbol=o,this.symbolInfo=null,this.seriesId=null,this.studyId=null,this.availableResolutions=[],this.minBarIndex=null,this.maxBarIndex=null,this._bars=new u.PlotList,this._turnaround_cnt="1",this.error=new e(!1),this.complete=new e(!1),this.symbolResolved=new n}f.prototype.studyOverlayMetaInfo=null,f.random=function(){return(1048576*(1+Math.random())|0).toString(16).substring(1)},f.defaultOptions={onFirstData:null,description:"",showDescription:!0,onlyLastBars:null,timeframe:{visible:!1,container:null,value:"12m"},chartOptions:{grid:{xIsVisible:!1,yIsVisible:!0},xScale:{visible:!0,position:"bottom",isTimeScale:!0,font:{size:10,family:"Trebuchet MS",color:"#83888D"},drawOverPlotArea:!0,maxTickMarkAmount:10},yScale:{visible:!0,position:"right",font:{size:10,family:"Trebuchet MS",color:"#83888D"},drawOverPlotArea:!0}}},f.prototype.setTimeframe=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=e.updateData,n=void 0===o||o,i=this._timeframe,r=t||this._options.timeframe.value,s={"1y":"12m","5y":"60m",max:"all"};void 0!==s[r]&&(r=s[r]),this._timeframe=this._timeframeIsValid(r)?r:f.defaultOptions.timeframe.value,n&&i!==this._timeframe&&(this.disconnect(),this.plots().forEach((function(t){t.deleteView()})),this.connect())},f.prototype._initTimefrmeSelector=function(){var t=this;if(this._options.timeframe.visible){this._options.timeframe.container?this._elTimeframe=this._options.timeframe.container:(this._elTimeframe=document.createElement("div"),this._container.appendChild(this._elTimeframe));var e=this._getAvailableTimeFrames();return Promise.all([o.e("vendors_embed"),o.e(313),o.e(0),o.e(238)]).then(o.bind(null,"fdYN")).then((function(o){t._timeframeView=new o.TimeFrameViewRenderer(t._elTimeframe,{ name:"minichart_timeframe",activeRange:t._timeframe,ranges:e,onSelectRange:function(e){t.setTimeframe(e),t._timeframeView.update({activeRange:e})}})}))}},f.prototype._getAvailableTimeFrames=function(){var t=[],e=!0,o=!1,n=void 0;try{for(var i,r=h.miniTimeFrameOptions[Symbol.iterator]();!(e=(i=r.next()).done);e=!0){var s=i.value;this._timeframeIsValid(s.value)&&t.push({value:s.value,text:s.text,description:s.description})}}catch(a){o=!0,n=a}finally{try{!e&&r.return&&r.return()}finally{if(o)throw n}}return t},f.prototype._initPlots=function(t){var e=this,o=[];function n(t){if(t){for(var o=e.plots(),n=o.length-1;n>=0;n--)if(!o[n].error.value())return;_.logError("Errors in all plots"),e.showMessage($.t("Error"))}}function i(t){if(t){e.hideMessage(),e._loadErrorTimeout&&(clearTimeout(e._loadErrorTimeout),delete e._loadErrorTimeout);for(var o=e.plots(),n=o.length-1;n>=0;n--)if(!o[n].complete.value())return;e.disconnect()}}(0,c.isArray)(t)?o=t:t.hasOwnProperty("symbol")?o=[t]:"string"==typeof t?o=[{symbol:t}]:_.logError("Wrong 'plots' format"),o=o.map((function(t){var o=new g(e,t.symbol,t.options||{});return o.error.subscribe(n),o.complete.subscribe(i),o})),e._plots=o},f.prototype.connect=function(t){var e=this;"function"==typeof t&&(this._connectCallback=t),e.connected()||(e._allSymbolsResolved=!1,e.plots().forEach((function(t){t.flush()})),e._chartSession||(e._chartSession=new d.ChartSession(e._chartApi,!0)),e._boundOnChartSessionIsConnectedChanged=e._onChartSessionIsConnectedChanged.bind(e),e._chartSession.isConnected().subscribe(e._boundOnChartSessionIsConnectedChanged),e._chartSession.criticalError().subscribe(e,e._onChartSessionCriticalError),e._chartSession.connect(e.onMessage.bind(e)),e._chartSession.stopped=!1,e._loadErrorTimeout=setTimeout((function(){e.showMessage(window.t("No data")),"function"==typeof e._options.onFirstData&&(e._options.onFirstData(),e._options.onFirstData=null)}),15e3))},f.prototype.disconnect=function(){this.connected()&&(this._chartSession.criticalError().unsubscribe(this,this._onChartSessionCriticalError),this._chartSession.isConnected().unsubscribe(this._boundOnChartSessionIsConnectedChanged),this.plots().forEach((function(t){t.disconnect()})),this._chartSession&&this._chartSession.connected()&&!this._chartSession.stopped&&(this._chartSession.disconnect(),this._chartSession.stopped=!0),this._allSymbolsResolved=!1,this._connected=!1,clearTimeout(this._loadErrorTimeout))},f.prototype.connected=function(){return this._connected&&this._chartSession&&this._chartSession.connected()},f.prototype._onChartSessionIsConnectedChanged=function(t){t?(this._connected=!0,"function"==typeof this._connectCallback&&this._connectCallback(),this._requestData()):(this._connected=!1,this._allSymbolsResolved=!1,this.plots().forEach((function(t){t.disconnect()})))},f.prototype._onChartSessionCriticalError=function(t,e){this._connected=!1},f.prototype.onMessage=function(t){switch(t.method){case"studies_metadata":if(!t.params[1]||!t.params[1].metainfo)return;var e=t.params[1].metainfo ;t:for(var o=e.length-1;o>=0;o--)if(-1!==e[o].id.indexOf("Overlay@tv-basicstudies")){f.prototype.studyOverlayMetaInfo=e[o];break t}"function"==typeof this._onStudiesMetadata&&(this._onStudiesMetadata(),delete this._onStudiesMetadata)}},f.prototype.changeSymbol=function(t){this.disconnect(),this.widget().removeAllPlots(),this._initPlots(t),this.connect()},f.prototype.showMessage=function(t){this.widget().showMessage(t)},f.prototype.hideMessage=function(){this.widget().hideMessage()},f.prototype._requestData=function(){var t=this;if(!t.studyOverlayMetaInfo&&t.plots().length>1)t._requestMetadata(t._requestData.bind(t));else if(t._allSymbolsResolved){var e=t.plots()[0];e.createSeries(),this.seriesPlot=e;for(var o=1,n=t.plots().length;o=0;o--)if(!e[o].symbolInfo)return;"function"==typeof t&&t()}e.forEach((function(t){t.symbolResolved.subscribe(null,o,!0),t.resolveSymbol()}))},f.prototype.chartSession=function(){return this._chartSession},f.prototype.plots=function(t){return this._plots},f.prototype.widget=function(){return this._widget},f.prototype._timeframeIsValid=function(t){var e=h.miniTimeFrameOptions.find((function(e){return e.value===t})),o=!!e,n=this._availableResolutions&&this._availableResolutions.length,i=o&&n&&-1!==this._availableResolutions.indexOf(e.targetResolution);return o&&(!n||i)},f.prototype.timeframe=function(){return this._timeframe},f.prototype.resolution=function(){var t=this,e=h.miniTimeFrameOptions.find((function(e){return e.value===t.timeframe()}));return e.resolution||e.targetResolution},f.prototype.from=function(){var t=this;return[h.miniTimeFrameOptions.find((function(e){return e.value===t.timeframe()})).from]},f.prototype.enable=function(t){this._widget.bindOnResize(),this.connect(t)},f.prototype.disable=function(){this.disconnect(),this._widget.unbindOnResize()},f.prototype.destroy=function(){this.disconnect(),this._widget.destroy();for(var t=this._plots.length-1;t>=0;t--)this._plots[t].symbolResolved.unsubscribeAll(null),this._plots[t].destroy();this._timeframeView&&this._timeframeView.destroy()},g.prototype._resolution=function(){return this._miniChart.resolution()}, g.prototype._barsNum=function(){return/,/.test(this._resolution())?2:["from_to"].concat(this._miniChart.from())},g.prototype._makeNextSymbolId=function(){return this._nextSymbolId||(this._nextSymbolId=1),"symbol_"+this.id+"_"+this._nextSymbolId++},g.prototype._makeNextSeriesId=function(){return this._nextSeriesId||(this._nextSeriesId=1),"ser_"+this.id+"_"+this._nextSeriesId++},g.prototype._turnaround=function(){return"turn"+this._turnaround_cnt},g.prototype.chartSession=function(){return this._miniChart.chartSession()},g.prototype.resolveSymbol=function(){this.symbolId=this._makeNextSymbolId(),this.chartSession().resolveSymbol(this.symbolId,this.symbol,this.onMessage.bind(this))},g.prototype.onMessage=function(t){switch(t.method){case"symbol_resolved":t.params[0]===this.symbolId&&(this.symbolInfo=t.params[1],this.symbolResolved.fire(this.symbolInfo));break;case"data_update":"function"==typeof this._miniChart._options.onFirstData&&(this._miniChart._options.onFirstData(),this._miniChart._options.onFirstData=null),t.params.customId===(this.seriesId||this.studyId)&&this.updateData(t.params.plots);break;case"series_timeframe":t.params[0]===this.seriesId&&t.params[1]===this._turnaround()&&this.updateBarIndexes(t.params[2],t.params[3]);break;case"symbol_error":t.params[0]===this.symbolId&&_.logWarn(this.symbol+" symbol error: "+t.params[1]);case"series_error":case"study_error":t.params[0]===this._id&&t.params[1]===this._turnaround()&&(this.updateData(null),_.logError(this.symbol+" plot error"),this.error.setValue(!0));var e=t.params[2];if("resolution_not_entitled"===e||"custom_resolution"===e){this._miniChart.showMessage(window.t("No data for this resolution")),this.availableResolutions=["D","W","M"];var o=this;setTimeout((function(){o._miniChart.updateAvailableTimeframes(!0)}),1e3)}break;case"study_completed":case"series_completed":this.complete.setValue(!0)}},g.prototype.createSeries=function(){this.seriesId?(this._turnaround_cnt++,this.chartSession().modifySeries(this.seriesId,this._turnaround(),this.symbolId,this._resolution(),this.onMessage.bind(this))):(this.seriesId=this._makeNextSeriesId(),this.chartSession().createSeries(this.seriesId,this._turnaround(),this.symbolId,this._resolution(),this._barsNum(),this.onMessage.bind(this)))},g.prototype.createStudy=function(t){this.studyId="st_"+this.id,this.symbolInfo?(this.chartSession().createStudy(this.studyId,this._turnaround(),t,this._miniChart.studyOverlayMetaInfo.id,[this.symbolInfo.full_name],this.onMessage.bind(this)),this._turnaround_cnt++):_.logWarn("Can't create study without symbolInfo")},g.prototype.updateData=function(t){var e,o=this._miniChart,n=void 0===(window.TradingView||{}).TIME_PLOT?0:window.TradingView.TIME_PLOT,i=(window.TradingView||{}).CLOSE_PLOT||4;if(arguments.length&&!t&&this._bars.clear(),t&&this._bars.merge(t),0!==this._bars.size()){var r=(e=o.seriesPlot)&&(0,c.isInteger)(e.minBarIndex)?e.minBarIndex:null,s=e&&(0,c.isInteger)(e.maxBarIndex)?e.maxBarIndex:null,a=(0,c.isInteger)(r)?r:(0, c.isInteger)(this.minBarIndex)?this.minBarIndex:this._bars.firstIndex(),l=(0,c.isInteger)(s)?s:(0,c.isInteger)(this.maxBarIndex)?this.maxBarIndex:this._bars.lastIndex(),u={x:[],y:[]};this._bars.range(a,l).each((function(t,e){var o=e[n],r=e[i];u.x.push(o),u.y.push(r)})),u.x.length&&(this._view?this._view.setData(u):this._view=o.widget().addPlot({data:u,options:this._viewOptions||{}}))}else t&&0===t.length&&o.showMessage(window.t("No data for this conditions"))},g.prototype.deleteView=function(){this._view&&(this._miniChart.widget().removePlot(this._view),this._view=null)},g.prototype.disconnect=function(){this.seriesId?this.chartSession().removeSeries(this.seriesId):this.studyId&&this.chartSession().removeStudy(this.studyId),this.seriesId=null,this.studyId=null},g.prototype.flush=function(){this.symbolInfo=null,this.seriesId=null,this.studyId=null,this._bars.clear(),this.minBarIndex=null,this.maxBarIndex=null,this.complete.setValue(!1),this.error.setValue(!1)},g.prototype.updateBarIndexes=function(t,e){this.minBarIndex=t,this.maxBarIndex=e,this.updateData()},g.prototype.destroy=function(){this.error.unsubscribe(),this.complete.unsubscribe()},t.exports.MiniChart=f}).call(this,o("hY0g"),o("aIyQ"))},Hr11:function(t,e,o){"use strict";o.r(e),o.d(e,"lessThan",(function(){return r})),o.d(e,"greaterThan",(function(){return s})),o.d(e,"clamp",(function(){return a})),o.d(e,"sign",(function(){return l})),o.d(e,"isBaseDecimal",(function(){return c})),o.d(e,"greaterOrEqual",(function(){return u})),o.d(e,"equal",(function(){return d})),o.d(e,"log10",(function(){return h})),o.d(e,"defComparator",(function(){return p})),o.d(e,"min",(function(){return _})),o.d(e,"max",(function(){return f})),o.d(e,"ceiledEven",(function(){return g}));var n=o("uOxu"),i=Object(n.getLogger)("Common.MathEx");function r(t,e){return t<=e}function s(t,e){return t>=e}function a(t,e,o){return Math.min(Math.max(t,e),o)}function l(t){return t<0?-1:t>0?1:0}function c(t){if(t<0)return i.logDebug("MathEx.isBaseDecimal: argument less zero"),!1;for(var e=t;e>1;e/=10)if(e%10!=0)return!1;return!0}function u(t,e,o){return e-t<=o}function d(t,e,o){return Math.abs(t-e)e?1:0}function _(t,e){if(void 0===e&&(e=p),t.length<1)throw Error("array is empty");for(var o=t[0],n=0;n0&&(o=t[n]);return o}function g(t){var e=Math.ceil(t);return e%2!=0?e-1:e}},IVMC:function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return t.reduce((function(t,e,o){return~t.indexOf(e)||t.push(e),t}),[])},t.exports=e.default},IWXC:function(t,e,o){"use strict";o.r(e),o.d(e,"getQuoteSessionInstance",(function(){return s})),o.d(e,"setQuoteSessionInstance",(function(){return a})),o.d(e,"getQuoteSessionNoEnsure",(function(){return l})), o.d(e,"destroyQuoteSessions",(function(){return c}));var n=o("hGf4"),i=o.n(n),r={};function s(t){return void 0===t&&(t="full"),r[t]||a(t,new i.a(t)),r[t]}function a(t,e){void 0===t&&(t="full"),r[t]=e}function l(t){return void 0===t&&(t="full"),r[t]}function c(){for(var t in r)if(r.hasOwnProperty(t)){var e=r[t];void 0!==e&&e.destroy(),delete r[t]}}},Ialn:function(t,e,o){"use strict";o.r(e),o.d(e,"isRtl",(function(){return i})),o.d(e,"stripLTRMarks",(function(){return s})),o.d(e,"startWithLTR",(function(){return a})),o.d(e,"forceLTRStr",(function(){return l})),o.d(e,"forceLTRStrSsr",(function(){return c})),o.d(e,"forceRTLStr",(function(){return u})),o.d(e,"getLTRScrollLeft",(function(){return d})),o.d(e,"getLTRScrollLeftOffset",(function(){return h})),o.d(e,"detectAutoDirection",(function(){return f}));var n=o("oYVD"),i=function(){return"rtl"===window.document.dir},r=new RegExp("‎|‪|‫|‬","g");function s(t){return""!==t&&i()&&null!=t?t.replace(r,""):t}function a(t){return""!==t&&i()&&null!=t?"‎"+t:t}function l(t){return""!==t&&i()&&null!=t?"‪"+t+"‬":t}function c(t){return"‪"+t+"‬"}function u(t){return""!==t&&i()&&null!=t?"‫"+t+"‬":t}function d(t){return Object(n.getNormalizedScrollLeft)(t,"rtl")}function h(t,e){var o=Object(n.detectScrollType)();if("indeterminate"===o)return 0;switch(o){case"negative":e=t.clientWidth-t.scrollWidth+e;break;case"reverse":e=t.scrollWidth-t.clientWidth-e}return e}var p=/[^\u0000-\u0040\u005B-\u0060\u007B-\u00BF\u00D7\u00F7\u02B9-\u02FF\u2000-\u200E\u2010-\u2029\u202C\u202F-\u2BFF]/,_=/[\u0590-\u07FF\u200F\u202B\u202E\uFB1D-\uFDFD\uFE70-\uFEFC]/;function f(t){var e=p.exec(t);return e?_.test(e[0])?"rtl":"ltr":""}},IuUg:function(t,e,o){"use strict";o.r(e),o.d(e,"CopyrightPosition",(function(){return n})),o.d(e,"createCopyrightLabel",(function(){return l}));var n,i=o("YFKU"),r=o("tzRX"),s=o("l/9j");!function(t){!function(t){t[t.Bottom=0]="Bottom",t[t.Top=1]="Top"}(t.Vertical||(t.Vertical={})),function(t){t[t.Start=0]="Start",t[t.End=1]="End"}(t.Horizontal||(t.Horizontal={}))}(n||(n={}));var a=i.t("By TradingView");function l(t){var e=t.url,o=t.verticalPosition,i=void 0===o?n.Vertical.Bottom:o,l=t.horizontalPosition,c=void 0===l?n.Horizontal.End:l,u=t.snapToEdge,d=void 0===u||u,h=t.isLarge,p=void 0!==h&&h,_=t.customer,f=document.createElement("a");f.href=e,f.target="_blank",f.classList.add(s.label),f.classList.toggle(s.start,c===n.Horizontal.Start),f.classList.toggle(s.end,c===n.Horizontal.End),f.classList.toggle(s.top,i===n.Vertical.Top),f.classList.toggle(s.bottom,i===n.Vertical.Bottom),f.classList.toggle(s.snap,d),f.classList.toggle(s.large,p),f.classList.toggle(s.cmoneycomtw,"cmoneycomtw"===_);var g=document.createElement("span");g.classList.add(s.textWrap);var m=document.createElement("span");return m.textContent=a,m.classList.add(s.text),f.innerHTML=r,f.appendChild(g),g.appendChild(m),f}},JOqt:function(t,e,o){"use strict";o.r(e),o.d(e,"debounce",(function(){return n}));var n=function(t,e){var o,n,i=0;function r(){t.apply(n,o)}return function(){n=this,o=arguments,clearTimeout(i), i=setTimeout(r,e)}}},JUKA:function(t,e){t.exports=[{value:"",name:"All Exchanges",desc:window.t("All Exchanges"),flag:"",country:"",group:"AllExchanges"},{value:"BITHUMB",name:"Bithumb",desc:window.t("Bithumb"),flag:"bitcoin",group:"Cryptocurrency",country:""},{value:"796",name:"796",desc:window.t("796"),flag:"bitcoin",group:"Cryptocurrency",hideInSymbolSearch:!0,country:""},{value:"COINFLOOR",name:"Coinfloor",desc:window.t("Coinfloor"),flag:"bitcoin",group:"Cryptocurrency",country:""},{value:"DERIBIT",name:"Deribit",desc:window.t("Deribit"),flag:"bitcoin",group:"Cryptocurrency",country:""},{value:"BITBAY",name:"BitBay",desc:window.t("BitBay"),flag:"bitcoin",group:"Cryptocurrency",country:""},{value:"CURRENCYCOM",name:"Currencycom",desc:window.t("Currencycom"),flag:"bitcoin",group:"Cryptocurrency",country:""},{value:"OKEX",name:"OKEx",desc:window.t("OKEx"),flag:"bitcoin",group:"Cryptocurrency",country:""},{value:"DFM",name:"DFM",desc:window.t("DFM — Dubai Financial Market"),flag:"ae",group:"Middle East / Africa",country:"ae"},{value:"LSE",name:"LSE",desc:window.t("LSE — London Stock Exchange (UK Companies)"),flag:"uk",group:"Europe",country:"uk"},{value:"LSIN",name:"LSIN",desc:window.t("LSIN — London Stock Exchange (International Companies)"),flag:"uk",group:"Europe",country:"uk"},{value:"EUREX",name:"EUREX",desc:window.t("EUREX — Eurex Exchange"),flag:"europe",group:"Europe",country:"eu"},{value:"MGEX",name:"MGEX",desc:window.t("MGEX — Futures"),flag:"usa",hideInSymbolSearch:!0,group:"North America",country:"us"},{value:"NASDAQ",name:"NASDAQ",desc:window.t("NASDAQ — NASDAQ Stock Market"),flag:"usa",group:"North America",country:"us",priorityInGroup:1},{value:"NYSE",name:"NYSE",desc:window.t("NYSE — New York Stock Exchange"),flag:"usa",group:"North America",country:"us",priorityInGroup:2},{value:"AMEX",name:"ARCA",desc:window.t("ARCA — ARCA & MKT"),flag:"usa",group:"North America",country:"us",priorityInGroup:3},{value:"OTC",name:"OTC",desc:window.t("OTC — OTC Markets"),flag:"usa",group:"North America",country:"us",priorityInGroup:4},{value:"DJ",name:"DJ",desc:window.t("DJ — Dow Jones Indices"),flag:"usa",group:"North America",country:"us",priorityInGroup:5},{value:"SP",name:"SP",desc:window.t("SP — S&P Indices"),flag:"usa",group:"North America",country:"us",priorityInGroup:6},{value:"CBOE",name:"CBOE",desc:window.t("CBOE — Chicago Board Options Exchange"),flag:"usa",group:"North America",country:"us",priorityInGroup:7},{value:"CBOT",name:"CBOT",desc:window.t("CBOT — Chicago Board of Trade"),flag:"usa",group:"North America",country:"us",priorityInGroup:8},{value:"CME",name:"CME GLOBEX",desc:window.t("CME GLOBEX — Chicago Mercantile Exchange Globex"),flag:"usa",group:"North America",country:"us",priorityInGroup:9},{value:"COMEX",name:"COMEX",desc:window.t("COMEX — Commodity Exchange"),flag:"usa",group:"North America",country:"us",priorityInGroup:10},{value:"NYMEX",name:"NYMEX",desc:window.t("NYMEX — New York Mercantile Exchange"),flag:"usa",group:"North America",country:"us",priorityInGroup:11},{value:"ICEUSA", name:"ICEUSA",desc:window.t("ICEUSA — ICE Futures U.S."),flag:"usa",group:"North America",country:"us",priorityInGroup:12},{value:"CSE",name:"CSE",desc:window.t("CSE — Canadian Securities Exchange"),flag:"canada",group:"North America",country:"ca",priorityInGroup:13},{value:"NEO",name:"NEO",desc:window.t("NEO — NEO Exchange"),flag:"canada",group:"North America",country:"ca",priorityInGroup:14},{value:"TSX",name:"TSX",desc:window.t("TSX — Toronto Stock Exchange"),flag:"canada",group:"North America",country:"ca",priorityInGroup:15},{value:"TSXV",name:"TSXV",desc:window.t("TSXV — TSX Venture Exchange"),flag:"canada",group:"North America",country:"ca",priorityInGroup:16},{value:"MOEX",name:"MOEX",desc:window.t("MOEX — Moscow Exchange"),flag:"russia",group:"Europe",country:"ru"},{value:"MYX",name:"MYX",desc:window.t("MYX — Bursa Malaysia Berhad"),flag:"malaysia",group:"Asia / Pacific",country:"my"},{value:"FTSEMYX",name:"FTSE",desc:window.t("FTSE — Bursa Malaysia FTSE Indices"),flag:"malaysia",group:"Asia / Pacific",country:"my"},{value:"HOSE",name:"HOSE",desc:window.t("HOSE — Ho Chi Minh City Stock Exchange"),flag:"vietnam",group:"Asia / Pacific",country:"vn"},{value:"BITSTAMP",name:"Bitstamp",desc:window.t("Bitstamp"),flag:"bitcoin",group:"Cryptocurrency",country:""},{value:"FX",name:"FXCM",desc:window.t("FXCM"),flag:"forex",group:"Forex",country:""},{value:"MERCADO",name:"Mercado",desc:window.t("Mercado"),flag:"bitcoin",group:"Cryptocurrency",country:""},{value:"BTCE",name:"BTC-e",desc:window.t("BTC-E"),flag:"bitcoin",group:"Cryptocurrency",hideInSymbolSearch:!0,country:""},{value:"GOCIO",name:"Gocio",desc:window.t("Gocio"),flag:"bitcoin",group:"Cryptocurrency",country:""},{value:"BTCYOU",name:"BTCYou",desc:window.t("BTCYou"),flag:"bitcoin",group:"Cryptocurrency",country:""},{value:"HITBTC",name:"HitBTC",desc:window.t("HitBTC"),flag:"bitcoin",group:"Cryptocurrency",country:""},{value:"BSE",name:"BSE",desc:window.t("BSE — Bombay Stock Exchange"),flag:"india",group:"Asia / Pacific",country:"in"},{value:"NYMEX_MINI",name:"NYMEX E-mini",desc:window.t("NYMEX E-mini — New York Mercantile Exchange"),flag:"usa",group:"North America",hideInSymbolSearch:!0,country:"us"},{value:"COMEX_MINI",name:"COMEX E-mini",desc:window.t("COMEX E-mini — Commodity Exchange"),flag:"usa",group:"North America",hideInSymbolSearch:!0,country:"us"},{value:"ICEEUR",name:"ICEEUR",desc:window.t("ICEEUR — ICE Futures Europe"),flag:"europe",group:"Europe",country:"eu"},{value:"NSE",name:"NSE",desc:window.t("NSE — National Stock Exchange of India"),flag:"india",group:"Asia / Pacific",country:"in"},{value:"MCX",name:"MCX",desc:window.t("MCX — Multi Commodity Exchange"),flag:"india",group:"Asia / Pacific",country:"in"},{value:"KCBT",name:"KCBT",desc:window.t("KCBT Futures"),flag:"usa",hideInSymbolSearch:!0,group:"North America",country:"us"},{value:"OKCOIN",name:"OKCoin",desc:window.t("OKCoin"),flag:"bitcoin",group:"Cryptocurrency",country:""},{value:"CBOT_MINI",name:"CBOT E-mini",desc:window.t("CBOT E-mini — Chicago Board of Trade"),flag:"usa", group:"North America",hideInSymbolSearch:!0,country:"us"},{value:"KRAKEN",name:"Kraken",desc:window.t("Kraken"),flag:"bitcoin",group:"Cryptocurrency",country:""},{value:"KUCOIN",name:"KuCoin",desc:window.t("KuCoin"),flag:"bitcoin",group:"Cryptocurrency",country:""},{value:"CME_MINI",name:"CME E-mini",desc:window.t("CME GLOBEX E-mini — Chicago Mercantile Exchange Globex"),flag:"usa",group:"North America",hideInSymbolSearch:!0,country:"us"},{value:"DJ",name:"DJ",desc:window.t("DJ — Dow Jones Indexes"),flag:"usa",hideInSymbolSearch:!0,group:"North America",country:"us"},{value:"SP",name:"SP",desc:window.t("SP — S&P Indexes"),flag:"usa",hideInSymbolSearch:!0,group:"North America",country:"us"},{value:"BTCCHINA",name:"BTC China",desc:window.t("BTC China"),flag:"bitcoin",group:"Cryptocurrency",hideInSymbolSearch:!0,country:""},{value:"HUOBI",name:"Huobi",desc:window.t("Huobi"),flag:"bitcoin",group:"Cryptocurrency",country:""},{value:"KORBIT",name:"Korbit",desc:window.t("Korbit"),flag:"bitcoin",group:"Cryptocurrency",country:""},{value:"THEROCKTRADING",name:"The Rock Trading",desc:window.t("The Rock Trading"),flag:"bitcoin",group:"Cryptocurrency",country:""},{value:"ANX",name:"ANX",desc:window.t("ANX"),flag:"bitcoin",group:"Cryptocurrency",hideInSymbolSearch:!0,country:""},{value:"MEXBT",name:"meXBT",desc:window.t("meXBT"),flag:"bitcoin",group:"Cryptocurrency",hideInSymbolSearch:!0,country:""},{value:"FTX",name:"FTX",desc:window.t("FTX"),flag:"bitcoin",group:"Cryptocurrency",country:""},{value:"GEMINI",name:"Gemini",desc:window.t("Gemini"),flag:"bitcoin",group:"Cryptocurrency",country:""},{value:"BITVC",name:"BitVC",desc:window.t("BitVC"),flag:"bitcoin",group:"Cryptocurrency",hideInSymbolSearch:!0,country:""},{value:"BITYES",name:"BitYes",desc:window.t("BitYes"),flag:"bitcoin",group:"Cryptocurrency",hideInSymbolSearch:!0,country:""},{value:"BNC",name:"BNC",desc:window.t("BNC"),flag:"bitcoin",group:"Cryptocurrency",hideInSymbolSearch:!0,country:""},{value:"BITFLYER",name:"bitFlyer",desc:window.t("bitFlyer"),flag:"bitcoin",group:"Cryptocurrency",country:""},{value:"BYBIT",name:"Bybit",desc:window.t("Bybit"),flag:"bitcoin",group:"Cryptocurrency",country:""},{value:"BITMEX",name:"BitMEX",desc:window.t("BitMEX"),flag:"bitcoin",group:"Cryptocurrency",country:""},{value:"BITPANDAPRO",name:"Bitpanda Pro",desc:window.t("Bitpanda Pro"),flag:"bitcoin",group:"Cryptocurrency",country:""},{value:"FOREXCOM",name:"FOREX.com",desc:window.t("FOREX.com"),flag:"forex",group:"Forex",country:""},{value:"FX_IDC",name:"ICE",desc:window.t("ICE Data Services"),flag:"forex",group:"Forex",country:""},{value:"CEXIO",name:"CEX.IO",desc:window.t("CEX.IO"),flag:"bitcoin",group:"Cryptocurrency",country:""},{value:"BITSO",name:"Bitso",desc:window.t("Bitso"),flag:"bitcoin",group:"Cryptocurrency",country:""},{value:"BITFINEX",name:"Bitfinex",desc:window.t("Bitfinex"),flag:"bitcoin",group:"Cryptocurrency",country:""},{value:"MTGOX",name:"Mt.Gox",desc:window.t("Mt.Gox"),flag:"bitcoin",group:"Cryptocurrency",hideInSymbolSearch:!0,country:""},{value:"POLONIEX", name:"Poloniex",desc:window.t("Poloniex"),flag:"bitcoin",group:"Cryptocurrency",country:""},{value:"BITTREX",name:"Bittrex",desc:window.t("Bittrex"),flag:"bitcoin",group:"Cryptocurrency",country:""},{value:"BINANCE",name:"Binance",desc:window.t("Binance"),flag:"bitcoin",group:"Cryptocurrency",country:""},{value:"BCBA",name:"BYMA",desc:window.t("BYMA — Argentine Stock Exchanges and Markets"),flag:"argentina",group:"Mexico and South America",country:"ar"},{value:"BMFBOVESPA",name:"B3",desc:window.t("B3 — Brasil Bolsa Balcao S.A."),flag:"brasil",group:"Mexico and South America",country:"br"},{value:"BMV",name:"BMV",desc:window.t("BMV — Mexican Stock Exchange"),flag:"mexico",group:"Mexico and South America",country:"mx"},{value:"BVL",name:"BVL",desc:window.t("BVL — Bolsa de Valores de Lima"),flag:"peru",group:"Mexico and South America",country:"pe"},{value:"BCS",name:"SSE",desc:window.t("SSE — Santiago Stock Exchange"),flag:"chile",group:"Mexico and South America",country:"cl"},{value:"BVC",name:"BVC",desc:window.t("BVC — Bolsa de Valores de Colombia"),flag:"colombia",group:"Mexico and South America",country:"co"},{value:"NAG",name:"NSE",desc:window.t("NSE — Nagoya Stock Exchange"),flag:"japan",group:"Asia / Pacific",country:"jp"},{value:"TSE",name:"TSE",desc:window.t("TSE — Tokyo Stock Exchange"),flag:"japan",group:"Asia / Pacific",country:"jp"},{value:"TFEX",name:"TFEX",desc:window.t("TFEX — Thailand Futures Exchange"),flag:"thailand",group:"Asia / Pacific",country:"th"},{value:"TFX",name:"TFX",desc:window.t("TFX — Tokyo Financial Exchange"),flag:"japan",group:"Asia / Pacific",country:"jp"},{value:"TOCOM",name:"TOCOM",desc:window.t("TOCOM — Tokyo Commodity Exchange"),flag:"japan",group:"Asia / Pacific",country:"jp"},{value:"OSE",name:"OSE",desc:window.t("OSE — Osaka Securities Exchange"),flag:"japan",group:"Asia / Pacific",country:"jp"},{value:"SGX",name:"SGX",desc:window.t("SGX — Singapore Stock Exchange"),flag:"singapore",group:"Asia / Pacific",country:"sg"},{value:"SAPSE",name:"SSE",desc:window.t("SSE — Sapporo Securities Exchange"),flag:"japan",group:"Asia / Pacific",country:"jp"},{value:"FSE",name:"FSE",desc:window.t("FSE — Fukuoka Stock Exchange"),flag:"japan",group:"Asia / Pacific",country:"jp"},{value:"TWSE",name:"TWSE",desc:window.t("TWSE — Taiwan Stock Exchange"),flag:"taiwan",group:"Asia / Pacific",country:"tw"},{value:"SET",name:"SET",desc:window.t("SET — Stock Exchange of Thailand"),flag:"thailand",group:"Asia / Pacific",country:"th"},{value:"KRX",name:"KRX",desc:window.t("KRX — Korea Stock Exchange"),flag:"south_korea",group:"Asia / Pacific",country:"kr"},{value:"BAHRAIN",name:"BSE",desc:window.t("BSE — Bahrain Stock Exchange"),flag:"bahrain",group:"Middle East / Africa",country:"bh"},{value:"BELEX",name:"BELEX",desc:window.t("BELEX — Belgrade Stock Exchange"),flag:"serbia",group:"Europe",country:"rs"},{value:"EGX",name:"EGX",desc:window.t("EGX — Egyptian Exchange"),flag:"egypt",group:"Middle East / Africa",country:"eg"},{value:"TADAWUL",name:"Tadawul",desc:window.t("Tadawul — Saudi Stock Exchange"), flag:"saudi_arabia",group:"Middle East / Africa",country:"sa"},{value:"IDX",name:"IDX",desc:window.t("IDX — Indonesia Stock Exchange"),flag:"indonesia",group:"Asia / Pacific",country:"id"},{value:"HSI",name:"HSI",desc:window.t("HSI — Hang Seng Indices"),flag:"hong_kong",group:"Asia / Pacific",country:"hk"},{value:"QSE",name:"QSE",desc:window.t("QSE — Qatar Stock Exchange"),flag:"qatar",group:"Middle East / Africa",country:"qa"},{value:"OANDA",name:"OANDA",desc:window.t("OANDA"),flag:"forex",group:"Forex",country:""},{value:"SAXO",name:"Saxo",desc:window.t("Saxo"),flag:"forex",group:"Forex",country:""},{value:"EURONEXT",name:"Euronext",desc:window.t("Euronext — Euronext NV"),flag:"europe",group:"Europe",country:"eu"},{value:"EURONEXTAMS",name:"EURONEXTAMS",desc:window.t("Euronext — Euronext Amsterdam"),flag:"netherlands",group:"Europe",country:"nl"},{value:"EURONEXTBRU",name:"EURONEXTBRU",desc:window.t("Euronext — Euronext Brussels"),flag:"belgium",group:"Europe",country:"be"},{value:"EURONEXTLIS",name:"EURONEXTLIS",desc:window.t("Euronext — Euronext Lisbon"),flag:"portugal",group:"Europe",country:"pt"},{value:"EURONEXTPAR",name:"EURONEXTPAR",desc:window.t("Euronext — Euronext Paris"),flag:"france",group:"Europe",country:"fr"},{value:"OMX",name:"OMX",desc:window.t("OMX — Nasdaq OMX Group"),flag:"europe",group:"Europe",country:"eu"},{value:"FWB",name:"FWB",desc:window.t("FWB — Frankfurt Stock Exchange"),flag:"germany",group:"Europe",country:"de"},{value:"FRA",name:"FRA",desc:window.t("FRA — Frankfurt Stock Exchange"),flag:"germany",hideInSymbolSearch:!0,group:"Europe",country:"de"},{value:"SWB",name:"SWB",desc:window.t("SWB — Stuttgart Stock Exchange"),flag:"germany",group:"Europe",country:"de"},{value:"XETR",name:"XETR",desc:window.t("XETR — Xetra"),flag:"germany",group:"Europe",country:"de"},{value:"BME",name:"BME",desc:window.t("BME — Bolsa de Madrid"),flag:"spain",group:"Europe",country:"es"},{value:"GPW",name:"GPW",desc:window.t("GPW — Warsaw Stock Exchange"),flag:"poland",group:"Europe",country:"pl"},{value:"MIL",name:"MIL",desc:window.t("MIL — Milan Stock Exchange"),flag:"italy",group:"Europe",country:"it"},{value:"MILSEDEX",name:"MILSEDEX",desc:window.t("MILSEDEX — Milan Stock Exchange"),flag:"italy",group:"Europe",hideInSymbolSearch:!0,country:"it"},{value:"OSL",name:"OSE",desc:window.t("OSE — Oslo Stock Exchange"),flag:"norway",group:"Europe",country:"no"},{value:"IST",name:"IST",desc:window.t("IST — Istanbul Stock Exchange"),flag:"turkey",hideInSymbolSearch:!0,group:"Europe",country:"tr"},{value:"BIST",name:"BIST",desc:window.t("BIST — Borsa Istanbul"),flag:"turkey",group:"Europe",country:"tr"},{value:"TASE",name:"TASE",desc:window.t("TASE — Tel Aviv Stock Exchange"),flag:"israel",group:"Middle East / Africa",country:"il"},{value:"SIX",name:"SIX",desc:window.t("SIX — Swiss Stock Exchange"),flag:"switzerland",hideInSymbolSearch:!0,group:"Europe",country:"ch"},{value:"SIX",name:"SIX",desc:window.t("SIX — SIX Swiss Exchange"),flag:"switzerland",group:"Europe",country:"ch"},{value:"ASX",name:"ASX", desc:window.t("ASX — Australian Securities Exchange"),flag:"australia",group:"Asia / Pacific",country:"au"},{value:"NZX",name:"NZX",desc:window.t("NZX — New Zealand Stock Exchange"),flag:"new_zealand",group:"Asia / Pacific",country:"nz"},{value:"SSE",name:"SSE",desc:window.t("SSE — Shanghai Stock Exchange"),flag:"china",group:"Asia / Pacific",country:"cn"},{value:"SZSE",name:"SZSE",desc:window.t("SZSE — Shenzhen Stock Exchange"),flag:"china",group:"Asia / Pacific",country:"cn"},{value:"HKEX",name:"HKEX",desc:window.t("HKEX — Hong Kong Exchange"),flag:"hong_kong",group:"Asia / Pacific",country:"hk"},{value:"NSENG",name:"NSE",desc:window.t("NSE — Nigerian Stock Exchange"),flag:"nigeria",group:"Middle East / Africa",country:"ng"},{value:"JSE",name:"JSE",desc:window.t("JSE — Johannesburg Stock Exchange"),flag:"south_africa",group:"Middle East / Africa",country:"za"},{value:"COINBASE",name:"Coinbase",desc:window.t("Coinbase"),flag:"bitcoin",group:"Cryptocurrency",country:""},{value:"USI",name:"USI",desc:window.t("USI"),flag:"usa",hideInSymbolSearch:!0,group:"North America",country:"us"},{value:"OMXHEX",name:"HEX",desc:window.t("HEX — Nasdaq Helsinki"),flag:"finland",group:"Europe",country:"fi"},{value:"OMXICE",name:"ICEX",desc:window.t("ICEX — Nasdaq Iceland"),flag:"iceland",group:"Europe",country:"is"},{value:"OMXCOP",name:"CSE",desc:window.t("CSE — Nasdaq Copenhagen"),flag:"denmark",group:"Europe",country:"dk"},{value:"OMXSTO",name:"STO",desc:window.t("STO — Nasdaq Stockholm"),flag:"sweden",group:"Europe",country:"se"},{value:"OMXVSE",name:"VSE",desc:window.t("VSE — Nasdaq Vilnius"),flag:"lithuania",group:"Europe",country:"lt"},{value:"OMXTSE",name:"TALSE",desc:window.t("TALSE — Nasdaq Tallinn"),flag:"estonia",group:"Europe",country:"ee"},{value:"OMXRSE",name:"OMXR",desc:window.t("OMXR — Nasdaq Riga"),flag:"latvia",group:"Europe",country:"lv"},{value:"OMXNORDIC",name:"OMXNORDIC",desc:window.t("OMXNORDIC"),flag:"europe",hideInSymbolSearch:!0,group:"Europe",country:"eu"},{value:"OMXBALTIC",name:"OMXBALTIC",desc:window.t("OMXBALTIC"),flag:"europe",hideInSymbolSearch:!0,group:"Europe",country:"eu"}]},JgDS:function(t,e,o){"use strict";o.r(e),o.d(e,"UTM_PARAM_NAMES",(function(){return r})),o.d(e,"filterUtmInfo",(function(){return s})),o.d(e,"buildUtmQueryString",(function(){return a})),o.d(e,"buildUtmQueryStringFromUrlParams",(function(){return l}));var n=o("B+p7"),i=o("LIFs"),r=["utm_source","utm_medium","utm_campaign"];function s(t){var e={};return r.forEach((function(o){var n=t[o];"string"==typeof n&&""!==n&&(e[o]=Object(i.htmlEscape)(n))})),e}function a(t,e){void 0===e&&(e=!1);var o=Object(n.createUrlParams)(t);return o&&e?"?"+o:o}function l(t){return a(s(Object(n.getUrlParams)()),t)}},K9GE:function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.dur=350,e.easingFunc={linear:function(t){return t},easeInQuad:function(t){return t*t},easeOutQuad:function(t){return t*(2-t)},easeInOutQuad:function(t){return t<.5?2*t*t:(4-2*t)*t-1},easeInCubic:function(t){return t*t*t},easeOutCubic:function(t){ return--t*t*t+1},easeInOutCubic:function(t){return t<.5?4*t*t*t:(t-1)*(2*t-2)*(2*t-2)+1},easeInQuart:function(t){return t*t*t*t},easeOutQuart:function(t){return 1- --t*t*t*t},easeInOutQuart:function(t){return t<.5?8*t*t*t*t:1-8*--t*t*t*t},easeInQuint:function(t){return t*t*t*t*t},easeOutQuint:function(t){return 1+--t*t*t*t*t},easeInOutQuint:function(t){return t<.5?16*t*t*t*t*t:1+16*--t*t*t*t*t}};var n=function(){function t(t,e,o,n){this._mX1=t,this._mY1=e,this._mX2=o,this._mY2=n}return t.prototype.easingFunc=function(t){return this._mX1===this._mY1&&this._mX2===this._mY2?t:this._calcBezier(this._getTForX(t))},t.prototype._a=function(t,e){return 1-3*e+3*t},t.prototype._b=function(t,e){return 3*e-6*t},t.prototype._c=function(t){return 3*t},t.prototype._calcBezier=function(t){return((this._a(this._mY1,this._mY2)*t+this._b(this._mY1,this._mY2))*t+this._c(this._mY1))*t},t.prototype._getSlope=function(t){return 3*this._a(this._mX1,this._mX2)*t*t+2*this._b(this._mX1,this._mX2)*t+this._c(this._mX1)},t.prototype._getTForX=function(t){for(var e=t,o=0;o<4;++o){var n=this._getSlope(e);if(0===n)return e;e-=(this._calcBezier(e)-t)/n}return e},t}();e.CubicBezier=n,e.color={black0:"#000",black20:"#2b2d36",black25:"#2b2e37",black27:"#2f3241",black30:"#212121",black70:"#4A4A4A",black80:"#535353",black100:"#646464",black110:"#757575",black140:"#8A8A8A",black170:"#ADAEB0",black180:"#b4b4b4",black200:"#C8C8C8",black220:"#DADDE0",black230:"#ECECEC",black240:"#F2F2F2",black248:"#F8F8F8",black255:"#FFF",brand:"#3BB3E4",brandHover:"#3BABD8",brandActive:"#3898C2",brandDown:"#049DDC",brand220:"#3BB3E0",brand255:"#3BB3FF",brandNew:"#37A6EF",brandNew2:"#2196F3",spinner:"#00A2E2",brandMedium80:"#3C4650",brandMedium90:"#465a6e",brandMedium100:"#627384",brandMedium120:"#758696",brandMedium150:"#94959C",brandMedium190:"#9DB2BD",brandMedium220:"#E9EFF2",brandMedium230:"#EAECEF",brandMedium240:"#F1F3F6",brandDark:"#2A2C39",brandDark50:"#252733",brandDark45:"#20222D",brandDarkText:"#6A6B74",danger:"#FF4A68",dangerHover:"#F24965",dangerDown:"#FF173E",success:"#3CBC98",success55:"#37BC9B",success250:"#00FFC0",successHover:"#38B395",successDown:"#00A97F",attention:"#FFC84A",attention50:"#F89E30",growing:"#37bc9b",falling:"#ff4a68"}},KuNA:function(t,e,o){"use strict";var n,i;o.r(e),o.d(e,"ProPlans",(function(){return n})),o.d(e,"BrokerPlans",(function(){return i})),function(t){t.Free="free",t.Pro="pro",t.ProTrial="pro_trial",t.ProRealtime="pro_realtime",t.ProRealtimeTrial="pro_realtime_trial",t.ProPremium="pro_premium",t.ProPremiumTrial="pro_premium_trial",t.ProMiniAlerts="pro_mini_alerts",t.ProMiniAds="pro_mini_ads",t.ProMiniLayouts="pro_mini_layouts",t.ProEdu="pro_edu"}(n||(n={})),function(t){t.Platinum="platinum",t.Gold="gold",t.Silver="silver",t.Free="free"}(i||(i={}))},Kxc7:function(t,e,o){var n=o("qlfx"),i={},r={},s={},a={init:function(){var t,e;Object.keys(n).forEach((function(o){t=n[o],e=t.subsets,Array.isArray(e)?e.forEach((function(t){i[t]=1})):e&&Object.keys(e).forEach((function(t){i[t]=1})),i[o]=1}));var o,l=Object.keys(i) ;l.forEach((function(t){l.forEach((function(i){if(void 0!==(o=n[i])){if(!(e=o.subsets))return;r.hasOwnProperty(t)||(r[t]=[]),(Array.isArray(e)&&~e.indexOf(t)||t in e)&&r[t].push(i)}}))})),"undefined"!=typeof __initialDisabledFeaturesets&&__initialDisabledFeaturesets&&__initialDisabledFeaturesets.forEach((function(t){a.disable(t)})),"undefined"!=typeof __initialEnabledFeaturesets&&__initialEnabledFeaturesets&&__initialEnabledFeaturesets.forEach((function(t){a.enable(t)})),"undefined"!=typeof window&&(window.Featuresets=a),this.meta={_uniqueSetsNames:i,_setsReverseDependencies:r,_setsStates:s}},enabled:function(t){var e=function(t){var o=r.hasOwnProperty(t)?r[t]:[];if(!1===s[t])return!1;for(var n=s[t],i=0;i]/g,i=function(t){return"&#"+t.charCodeAt(0)+";"};function r(t){return t.replace(n,i)}function s(t){return void 0===t&&(t=""),t.replace(/(<([^>]+)>)/gi,"")}function a(t){return void 0===t&&(t=""),t.replace(/\s+/g,"")}function l(t){return void 0===t&&(t=""),t.replace(/\b\w/g,(function(t){return t.toUpperCase()}))}},Ls63:function(t,e,o){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.WidgetWatchlist=e.CHART_COLOR_SETTING_NAMES=e.WIDGET_COLOR_SETTING_NAMES=void 0;var n=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var o=[],n=!0,i=!1,r=void 0;try{for(var s,a=t[Symbol.iterator]();!(n=(s=a.next()).done)&&(o.push(s.value),!e||o.length!==e);n=!0);}catch(l){i=!0,r=l}finally{try{!n&&a.return&&a.return()}finally{if(i)throw r}}return o}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=function(){function t(t,e){for(var o=0;o1&&void 0!==arguments[1]?arguments[1]:{};if(x(this,e),t){this.$el=$(t),this.tabsInstance=null,this._stopPageTimeouts={},this.settings=this._prepareSettings(n),this._activePageLoadedPromise=null;var i=(0,d.pickFields)(this.settings,k);this.widgetColorClassMap=M(Object.keys(i)),t.appendChild(D(k,i,this.widgetColorClassMap)),this.settings.isEmbedWidget||"hotlists"===this.widgetName?(1===this.settings.tabs.length&&this.$el.find(".js-widget-head").addClass("i-hidden"),this.renderContent().then((function(){o._initPages(),"function"==typeof o.setAutoUpdate&&o.setAutoUpdate()}),(function(t){console.log("WidgetWatchlist constructor error",t)}))):this._initPages()}else A.logError("`el` is required","WidgetWatchlist")}return i(e,[{key:"_prepareSettings",value:function(t){var e,o=this.$el.data("widget-data");if(o)if(o.is_embed_widget)e=Object.assign({},o,t);else{var n=this.userSettings;(!1===o.hotlists_select_enabled||o.override_user_exchange)&&delete n.exchange,e=Object.assign({},o,t,n)}else this.$el.data("widget-data",t),e=t;return void 0!==e.is_embed_widget&&(e.isEmbedWidget=e.is_embed_widget),delete e.is_embed_widget,e}},{key:"renderContent",value:function(){var e=this,o=this.settings.tabs.map((function(o){e.renderTab(o);var n=$(t.render(e.templates.tabContent,{showChart:e.settings.show_chart,isEmbedWidget:e.settings.isEmbedWidget,group:o.group,firstTab:o===e.settings.tabs[0],forceEndBorder:e.settings.force_end_border},e.templates));return n.data("symbols",o.symbols.map((function(t){return Object({s:t.s,d:t.d})}))),e.$el.find(".js-pages").append(n),!0}));return Promise.all(o)}},{key:"renderTab",value:function(e){var o=$(t.render(this.templates.tab,{title:e.title,title_raw:e.title_raw}));this.$el.find(".js-tabs").append(o)}},{key:"saveToTVSettings",value:function(t){var e=window.locale,o=TVSettings.getJSON(this.settingsKey);o||(o={}),o[e]=t,TVSettings.setJSON(this.settingsKey,o)}},{key:"_initPages",value:function(){var t=this,e=this.$el.find(".js-tabs").eq(0),o=this.$el.find(".js-pages").eq(0),n=1===o.children().length;this.settings.fixedChartHeight&&(this._normalizeSymbolListHeight(),setTimeout((function(){return t._adjustSymbolsListHeight()}),0)),n?this._startPage(o.children().eq(0)):(this._initTabs(e,o), !this.settings.fixedChartHeight&&this.settings.adjust_widget_height&&o.find(".js-chart").length&&this._adjustChartHeight(o,this.settings.adjust_widget_height)),this.$pagesContainer=o}},{key:"_initTabs",value:function(t,e){this.tabsInstance=new y.Tabs(t.get(0),e.get(0),{activeTabClass:this.widgetColorClassMap.tabActiveColor,inactiveTabClass:this.widgetColorClassMap.tabInactiveColor,activePageClass:null,inactivePageClass:"i-hidden",lArrowClass:"tv-tabs__left-arrow tv-widget-watch-list__tabs--left",rArrowClass:"tv-tabs__right-arrow tv-widget-watch-list__tabs--right",addSliderClass:this.widgetColorClassMap.tabSliderColor}),this.tabsInstance.tabChanged.subscribe(this,this._onActivePageChanged),this._startPage($(this.tabsInstance.getElActivePage()))}},{key:"_adjustChartHeight",value:function(t,e){var o=t.children(),n=document.querySelector(".js-quote-ticker"),i=document.querySelector(".js-chart");if(n&&i)for(var r=n.offsetHeight,s=i.offsetHeight,a=0;a{{ title }}\n\t\t\t\t', tabContent:'\n\t\t\t\t
\n\t\t\t\t\t{{#showChart}}\n\t\t\t\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t\t{{/showChart}}\n\t\t\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t\t\t{{^isEmbedWidget}}\n\t\t\t\t\t\t{{#quickLink}}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t{{/quickLink}}\n\t\t\t\t\t{{/isEmbedWidget}}\n\t\t\t\t
",tabContentSkin:'\n\t\t\t\t
\n\t\t\t\t
'}}}]),e}(),function(){function e(t){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(x(this,e),t&&t.length){if(this._SELECTOR_CHART=".js-chart",this._SELECTOR_SYMBOL=".js-quote-ticker",this._SELECTOR_SYMBOL_WRAPPER=".js-symbols-wrapper",this.CLASS_SYMBOL_ACTIVE="tv-site-table__row--highlighted tv-widget-watch-list__row--highlighted",this.$el=t,this.$chart=t.find(this._SELECTOR_CHART).eq(0),this.hasChart=!!this.$chart.length,this.settings=this.transferSettings(o),this.showDataMode=!(!1===this.settings.showDataMode),this.showMarketStatus=!(!1===this.settings.showMarketStatus),this.chartColorMap=this.settings.chartColorMap,this.widgetColorClassMap=this.settings.widgetColorClassMap,"hotlists"===this.settings.widgetName||this.settings.isEmbedWidget){this._symbols=this.$el.data("symbols");var n=this.$el.find(this._SELECTOR_SYMBOL_WRAPPER).find(".js-symbols-body");n.append(this._renderPage())}this._chart=null,this._symbol=null,this._started=!1,this._hasDataPromise=null,this.settings.isEmbedWidget&&this._adjustToAvailableSizes(),this.start()}else A.logError("`$el` is required","WidgetWatchlistPage")}return i(e,[{key:"transferSettings",value:function(t){var e,o=t.utmInfo?$.param(t.utmInfo):void 0;t.largeChartUrl&&((e=t.largeChartUrl).match(/^https?:\/\//)||(e="http://"+e));return{arrowOnValue:t.arrowOnValue, chartColorMap:Object.assign({},this.defaultChartColors,t.chartColorMap),customer:t.customer,dateRange:t.dateRange,disableLastFallingFlash:Boolean(t.disableLastFallingFlash),disableLastGrowingFlash:Boolean(t.disableLastGrowingFlash),hideAbsoluteChange:Boolean(t.hideAbsoluteChange),indexNameBold:t.indexNameBold,indexNonClickable:t.indexNonClickable,isEmbedWidget:t.isEmbedWidget,largeChartUrl:e,noLinks:t.noLinks,onlyDescription:t.onlyDescription,paintLastWithChangeColors:Boolean(t.paintLastWithChangeColors),showDataMode:t.showDataMode,showMarketStatus:t.showMarketStatus,showTitles:t.showTitles,tradingviewBaseUrl:t.tradingviewBaseUrl,utmStringified:o,valueBold:t.valueBold,valueTitleMarked:t.valueTitleMarked,widgetColorClassMap:Object.assign({},t.widgetColorClassMap),widgetName:t.widgetName}}},{key:"start",value:function(){this._started||(this.symbol||(this.symbol=this.$symbols.eq(0).data("symbol")),this.hasChart&&(this._bindSymbolClick(),this._startChart()),this._startSymbolRows(),this._started=!0)}},{key:"stop",value:function(){this._started&&(this._unbindSymbolClick(),this._stopChart(),this._stopSymbolRows(),this._started=!1)}},{key:"hasData",value:function(){if(null===this._hasDataPromise){var t=[];this.$symbols.each((function(e,o){var n=$(o).data("watchlist-widget__symbol-row");t.push(n.hasData())})),this._hasDataPromise=Promise.all(t).then((function(t){return t.some((function(t){return t}))}))}return this._hasDataPromise}},{key:"_bindSymbolClick",value:function(){var t=this;this.$el.on("click",this._SELECTOR_SYMBOL,(function(e){t.symbol=$(e.currentTarget).data("symbol")}))}},{key:"_unbindSymbolClick",value:function(){this.$el.off("click",this._SELECTOR_SYMBOL)}},{key:"_adjustToAvailableSizes",value:function(){var t=window.innerHeight-document.querySelector(".js-watchlist-widget").offsetHeight,e=this.$el.find(this._SELECTOR_SYMBOL_WRAPPER),o=e.get(0).offsetHeight;if(t<0){e.css("height",o+t+"px").addClass("sb-scrollbar__content-wrapper--scroll-inited");var n=e.find(".js-symbols-body");n.addClass("sb-scrollbar__content--scroll-inited"),this._scroll||(this._scroll=new g.SidebarCustomScroll(e,n,{vAlignBottom:!0,showBottomShadow:!1}))}else this.hasChart&&(this.$chart[0].style.height=this.$chart.height()+t+"px")}},{key:"_getSymbolDataToRender",value:function(t){var e=t.s.split(":"),o=n(e,2),i=o[0],r=o[1],s=this.settings.largeChartUrl&&(0,p.makeTemplateSymbolUrl)(this.settings.largeChartUrl,{shortName:r,exchange:i})||"",a=(0,p.makeSymbolPageUrl)({shortName:r,exchange:i},this.settings.utmInfo);return{s:t.s,description:t.d,exchange:i,shortName:r,symbolUrl:a,showChart:this.hasChart,onlyDescription:this.settings.onlyDescription,isEmbedWidget:this.settings.isEmbedWidget,utmStringified:this.settings.utmStringified,largeChartUrl:s,tradingviewBaseUrl:this.settings.tradingviewBaseUrl,showDataMode:this.showDataMode,showMarketStatus:this.showMarketStatus,indexNameBold:this.settings.indexNameBold,valueBold:this.settings.valueBold,arrowOnValue:this.settings.arrowOnValue,shortNameClass:this.widgetColorClassMap.symbolShortNameColor, descriptionClass:this.widgetColorClassMap.symbolDescriptionColor,symbolColumnClass:this.widgetColorClassMap.symbolSeparatorColor,lastClass:this.widgetColorClassMap.lastColor,lastDirection:this.settings.paintLastWithChangeColors,hideAbsoluteChange:this.settings.hideAbsoluteChange,noLinks:this.settings.noLinks}}},{key:"_renderSymbol",value:function(e){return t.render(this.pageTemplates.symbol,this._getSymbolDataToRender(e))}},{key:"_renderPage",value:function(){var e=this,o=[];return this._symbols.forEach((function(t){return o.push(e._getSymbolDataToRender(t))})),t.render(this.pageTemplates.page,{symbols:o,showTitles:this.settings.showTitles,showDataMode:this.showDataMode,showMarketStatus:this.showMarketStatus,arrowOnValue:this.settings.arrowOnValue,valueTitleMarked:this.settings.valueTitleMarked},this.pageTemplates)}},{key:"_renderTitle",value:function(){return t.render(this.pageTemplates.title,{valueTitleMarked:this.settings.valueTitleMarked})}},{key:"_startChart",value:function(){this._chart?this._chart.enable():this.symbol&&(this._chart=new m.MiniChart(this.symbol,this.$chart.get(0),{onlyLastBars:30,timeframe:{visible:!0,container:this.$el.find(".js-timeframes").get(0),value:this.settings.dateRange},chartOptions:{minWidth:this.$chart.width(),minHeight:this.$chart.height(),grid:{xIsVisible:!1,yIsVisible:!0,line:{width:1,style:_.LINESTYLE_DASHED,color:this.chartColorMap.gridLineColor}},xScale:{visible:!0,paddingBottom:10,font:{size:12,color:this.chartColorMap.scaleFontColor},fade:!1,maxTickMarkAmount:4,paddingHorz:25},yScale:{visible:!0,paddingRight:25,fade:!1,font:{size:12,color:this.chartColorMap.scaleFontColor}},plot:this._getPlotOptions(),loading:{showWhileNoPlots:!0}}}))}},{key:"_stopChart",value:function(){this._chart&&this._chart.disable()}},{key:"_getPlotOptions",value:function(){var t={line:{color:this.chartColorMap.plotLineColor,colorGrowing:this.chartColorMap.plotLineColorGrowing,colorFalling:this.chartColorMap.plotLineColorFalling,width:2},last:{visible:!1,color:this.chartColorMap.lastPriceLineColor,colorGrowing:this.chartColorMap.lastPriceLineColorGrowing,colorFalling:this.chartColorMap.lastPriceLineColorFalling},belowLineFillStyle:this.chartColorMap.belowLineFillColor,belowLineFillStyleGrowing:this.chartColorMap.belowLineFillColorGrowing,belowLineFillStyleFalling:this.chartColorMap.belowLineFillColorFalling};return this.settings.isEmbedWidget||(0,h.deepExtend)(t,function(t){var e={"COVID19:CONFIRMED":l.colorsPalette["color-covid19-confirmed"],"COVID19:RECOVERED":l.colorsPalette["color-covid19-recovered"],"COVID19:DEATHS":l.colorsPalette["color-covid19-deaths"]},o=Object.keys(e).find((function(e){return t.startsWith(e)})),n=o&&e[o];if(!n)return{};return{line:{color:n,colorGrowing:null,colorFalling:null},belowLineFillStyle:(0,c.generateColor)(n,88),belowLineFillStyleGrowing:null,belowLineFillStyleFalling:null,last:{color:(0,c.generateColor)(n,50),colorGrowing:null,colorFalling:null}}}(this.symbol)),t}},{key:"_startSymbolRows",value:function(){var t=this;this.$symbols.each((function(e,o){ t._startSymbolRow($(o))}))}},{key:"_startSymbolRow",value:function(t){var e=t.data("watchlist-widget__symbol-row");e?e.start():t.data("watchlist-widget__symbol-row",new N(t,{showDataMode:this.settings.showDataMode,showMarketStatus:this.settings.showMarketStatus,tradingviewBaseUrl:this.settings.tradingviewBaseUrl,largeChartUrl:this.settings.largeChartUrl,isEmbedWidget:this.settings.isEmbedWidget,directionUpClass:this.widgetColorClassMap.changeUpColor,directionDownClass:this.widgetColorClassMap.changeDownColor,directionNeutralClass:this.widgetColorClassMap.changeNeutralColor,lastGrowingClass:this.settings.disableLastGrowingFlash?null:this.widgetColorClassMap.lastGrowingFlashColor,lastFallingClass:this.settings.disableLastFallingFlash?null:this.widgetColorClassMap.lastFallingFlashColor,noLinks:this.settings.noLinks}))}},{key:"_stopSymbolRows",value:function(){var t=this;this.$symbols.each((function(e,o){t._stopSymbolRow($(o))}))}},{key:"_stopSymbolRow",value:function(t){var e=t.data("watchlist-widget__symbol-row");e&&e.stop()}},{key:"$symbols",get:function(){return this.$el.find(this._SELECTOR_SYMBOL)}},{key:"symbols",set:function(e){var o,n,i=this,r=this._symbols.map((function(t){return t.s})),s=e.map((function(t){return t.s})),a=function(t,e){return $(e).data("symbol")===o};if(r&&r.toString()!==s.toString()){for(var l={},c=[],u=[],d=0;dtitle}}\n\t\t\t\t{{/showTitles}}\n\t\t\t\t{{#symbols}}\n\t\t\t\t\t{{>symbol}}\n\t\t\t\t{{/symbols}}", symbol:'\n\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t\t\t\t{{^noLinks}}\n \x3c!--\n\t\t\t\t\t\t\t\t{{^onlyDescription}}\n\t\t\t\t\t\t\t\t\t--\x3e{{ shortName }}\x3c!--\n\t\t\t\t\t\t\t\t{{/onlyDescription}}\n\t\t\t\t\t\t\t\t{{#onlyDescription}}\n\t\t\t\t\t\t\t\t\t{{#description}}\n\t\t\t\t\t\t\t\t\t--\x3e{{ description }}\x3c!--\n\t\t\t\t\t\t\t\t\t{{/description}}\n\t\t\t\t\t\t\t\t{{/onlyDescription}}\n\t\t\t\t\t\t\t\t{{#showMarketStatus}}\n\t\t\t\t\t\t\t\t\t--\x3e\x3c!--\n\t\t\t\t\t\t\t\t{{/showMarketStatus}}\n\t\t\t\t\t\t\t--\x3e{{^noLinks}}{{/noLinks}}{{#noLinks}}{{/noLinks}}\n\t\t\t\t\t\t\t{{^onlyDescription}}\n\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t{{#description}}{{ description }}{{/description}}{{^description}} {{/description}}\n\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t{{/onlyDescription}}\n\t\t\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t{{#arrowOnValue}}{{/arrowOnValue}}{{#last}}{{ last }}{{/last}}{{^last}} {{/last}}\n\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t{{#showDataMode}}
{{/showDataMode}}\n\t\t\t\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t{{#change_pt}}{{ change_pt }}{{/change_pt}}{{^change_pt}} {{/change_pt}}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t{{^hideAbsoluteChange}}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t{{#change}}{{ change }}{{/change}}{{^change}} {{/change}}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t{{/hideAbsoluteChange}}\n\t\t\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t\t
', title:'\n\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t\t\t\tIndex\n\t\t\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t\t\t\tValue{{#valueTitleMarked}}*{{/valueTitleMarked}}\n\t\t\t\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t\t\t\tChange\n\t\t\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t\t
'}}},{key:"symbol",set:function(t){if(this._symbol=t,this._chart&&this._chart.changeSymbol({symbol:t,options:this._getPlotOptions()}),this.hasChart){var e=(0,r.default)(this.CLASS_SYMBOL_ACTIVE,this.widgetColorClassMap.symbolActiveColor);this.$symbols.removeClass(e).filter((function(e,o){return $(o).data("symbol")===t})).addClass(e)}else this.$symbols.filter((function(e,o){return $(o).data("symbol")===t}))},get:function(){return this._symbol}}]),e}()),N=function(){function t(e){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(x(this,t),e&&e.length){this.$el=e,this.showDataMode=!(!1===o.showDataMode),this.symbol=e.data("symbol"),this.start(),this._hasData=new C.default,this._largeChartUrl=o.largeChartUrl||"",this._utmInfo=o.utmInfo||{},this._isEmbedWidget=!!o.isEmbedWidget,this._noLinks=o.noLinks;var n=(0,d.pickFields)(o,["directionUpClass","directionDownClass","directionNeutralClass","lastGrowingClass","lastFallingClass"]);this._isEmbedWidget||(0,h.deepExtend)(n,L(this.symbol)),this._directionUpClass=n.directionUpClass,this._directionDownClass=n.directionDownClass,this._directionNeutralClass=n.directionNeutralClass,this._lastGrowingClass=n.lastGrowingClass,this._lastFallingClass=n.lastFallingClass}else A.logError("`$el` is required","WidgetWatchlistSymbolRow")}return i(t,[{key:"start",value:function(){var t=this;this._startQuoteTicker().then((function(){t._startMarketStatus()})).catch((function(t){return A.logError(t.exchange,t.reason)}))}},{key:"stop",value:function(){this._stopQuoteTicker(),this._stopMarketStatus()}},{key:"hasData",value:function(){var t=this;return void 0===this._hasData.value()?new Promise((function(e){t._hasData.subscribe(e,{once:!0})})):Promise.resolve(this._hasData.value())}},{key:"_startMarketStatus",value:function(){if(!(0,E.isCovid19Symbol)({proName:this.symbol})){var t=new b.MarketStatusIndicator({classSuffix:"--for-watch-list",el:this.$el.find(".js-market-status")[0],short:!0,symbol:this.symbol});t.start(),this.$el.data("market-status",t) ;var e=new w.DataModeIndicator({classSuffix:"--for-watch-list",el:this.$el.find(".js-data-mode")[0],short:!0,symbol:this.symbol});e.start(),this.$el.data("data-mode",e)}}},{key:"_stopMarketStatus",value:function(){var t=this.$el.data("market-status"),e=this.$el.data("data-mode");t&&t.stop(),e&&e.stop()}},{key:"_showSFWarning",value:function(){var t=this.$el.get(0);if(!t.getElementsByClassName("js-exclamationed-symbol").length){var e=document.createElement("span");e.classList.add("tv-widget-watch-list__symbol-exclamation-mark","js-exclamationed-symbol","apply-common-tooltip"),e.setAttribute("title",(0,a.getSFWarningTextForFreeUsers)());var o=t.getElementsByClassName("js-symbol-link").item(0);o&&(o.appendChild(e),loginStateChange.subscribe(null,(function(){if(window.is_authenticated)for(var e=t.getElementsByClassName("js-exclamationed-symbol");e.length>0;)e[0].parentNode.removeChild(e[0])})))}}},{key:"_startQuoteTicker",value:function(){var t=this,e=this.$el.data("quote-ticker");if(e)return e.enable(),Promise.resolve(e);var o=this._showSFWarning.bind(this),n=void 0;return this._noLinks||(n=this._setSymbolLink.bind(this)),new Promise((function(i,r){(0,s.check)(t.symbol,!1).then((function(r){var s={dontDyePrice:!0,addDescriptionTitle:!1,signPositive:!0,changePercentInBrackets:!1,setStateHook:n,changeDirectionUpClass:t._directionUpClass,changeDirectionDownClass:t._directionDownClass,changeDirectionNeutralClass:t._directionNeutralClass,lastGrowingClass:t._lastGrowingClass,lastFallingClass:t._lastFallingClass,initedHook:function(){t._hasData.setValue(!0)},noSuchSymbolHook:function(){t._hasData.setValue(!1)},sfPermissionDeniedHook:function(){t._hasData.setValue(!1),o()}};e=new v.QuoteTicker(r,t.$el.get(0),s),t.$el.data("quote-ticker",e),i(e)})).catch((function(e){t._hasData.setValue(!1),o(),r(e)}))}))}},{key:"_setSymbolLink",value:function(t){if(!this._setSymbolLinkCompleted){var e=t.short_name,o=t.exchange,n=t.pro_name,i=t.type;if(e&&o&&n&&i){var r=this.$el[0].getElementsByClassName("js-symbol-link")[0],s=this._largeChartUrl&&this._isEmbedWidget,a={shortName:e,exchange:o,proName:n,type:i};r.href=s?(0,p.makeTemplateSymbolUrl)(this._largeChartUrl,a):(0,p.makeSymbolPageUrl)(a,this._utmInfo),this._setSymbolLinkCompleted=!0}}}},{key:"_stopQuoteTicker",value:function(){var t=this.$el.data("quote-ticker");t&&t.disable()}}]),t}();function D(t,e,o){var n=function(t,e){return"."+t+", ."+t+":hover, ."+t+":active { color: "+e+" }"},i={symbolActiveColor:function(t,e){return"."+t+" { background: "+e+" }"},symbolSeparatorColor:function(t,e){return"."+t+":after { background: "+e+" }"},tabSliderColor:function(t,e){return"."+t+" { background: "+e+" }"}},r=document.createElement("style"),s=[],a=!0,l=!1,c=void 0;try{for(var d,h=t[Symbol.iterator]();!(a=(d=h.next()).done);a=!0){var p=d.value,_=o[p],f=e[p];_&&f&&null!==(0,u.tryParseRgb)(f)&&s.push(i[p]?i[p](_,f):n(_,f))}}catch(g){l=!0,c=g}finally{try{!a&&h.return&&h.return()}finally{if(l)throw c}}return r.textContent=s.join(" "),r}function M(t){var e=(0,f.randomHashN)(4) ;return t.reduce((function(t,o){var n=o.replace(/[A-Z]/g,(function(t){return"-"+t.toLowerCase()}));return t[o]=n+"--"+e,t}),{})}function L(t){return(0,E.isCovid19Symbol)({proName:t})?{directionUpClass:null,directionDownClass:null,directionNeutralClass:null}:{}}}).call(this,o("nbsC"))},MjtL:function(t,e){t.exports=''},"Mrs/":function(t,e,o){"use strict";function n(t){return({ar_AE:"ar",de_DE:"de",en:"www",es:"es",fa_IR:"ir",fr:"fr",he_IL:"il",hu_HU:"hu",id:"id",in:"in",it:"it",ja:"jp",kr:"kr",ms_MY:"my",pl:"pl",br:"br",ru:"ru",sv_SE:"se",th_TH:"th",tr:"tr",uk:"uk",vi_VN:"vn",zh_CN:"cn",zh_TW:"tw"}[t]||"www")+".tradingview.com"}o.r(e),o.d(e,"getTVHostFromLocale",(function(){return n}))},MwnV:function(t,e,o){"use strict";o.r(e),o.d(e,"getSFWarningTextForFreeUsers",(function(){return n}));o("YFKU");function n(){return window.is_authenticated?window.t("Data is not available for basic account holders"):window.t("Login or register to get data")}},NP3r:function(t,e,o){"use strict";o.r(e),o.d(e,"getProductId",(function(){return c})),o.d(e,"enabled",(function(){return u})),o.d(e,"getConfig",(function(){return d}));o("bSeV");var n=o("+lbv"),i=o("FwoV"),r=o("bKsZ"),s=o("KuNA"),a=o("FfBj"),l=o("+GxX");function c(){var t,e=(null===(t=window.user)||void 0===t?void 0:t.pro_plan)||s.ProPlans.Free,o=e!==s.ProPlans.Free&&!Object(a.isTrialProduct)(e);return o||(e=Object(a.getProductForTrial)(e)),o&&window.user&&!window.user.is_pro_limited&&!window.user.new_pro_product_line&&(e="__legacy_"+e),e}function u(t,e){var o=d(t,e);return!!o&&!(o[r.ProductFeatures.DISABLE_ON_TRIAL]&&(!window.user||window.user.is_trial))}function d(t,e){var o=function t(e){var o=n[e];return o?o.extends?Object.assign({},t(o.extends),o):o:null}(e||c());if(!o)return null;var r=window.TradingView.widgetCustomer;return r&&i[r]&&(o=Object.assign({},o,i[r])),o&&o[t]||null}Object(l.isFeatureEnabled)("alerts_on_seconds_for_trial")&&(delete n.pro_premium[r.ProductFeatures.ALERTS_ON_SECONDS][r.ProductFeatures.DISABLE_ON_TRIAL],delete n.__legacy_pro_premium[r.ProductFeatures.ALERTS_ON_SECONDS][r.ProductFeatures.DISABLE_ON_TRIAL]),Object(l.isFeatureEnabled)("alerts_on_seconds")||(delete n.pro_premium[r.ProductFeatures.ALERTS_ON_SECONDS],delete n.__legacy_pro_premium[r.ProductFeatures.ALERTS_ON_SECONDS])},ONPi:function(t){ t.exports=JSON.parse('{"smartlab":"widget_user_token-smartlab","smartlab-custom":"widget_user_token-smartlab","seekingalpha":"widget_user_token-seekingalpha","abrilcombr":"widget_user_token-abrilcombr","agencialbmcombr":"widget_user_token-agencialbmcombr","bovespa":"widget_user_token-bmfbovespacombr","belugagroupru":"widget_user_token-belugagroupru","elespanolcom":"widget_user_token-elespanolcom","euqueroinvestir":"widget_user_token-euqueroinvestircom","healthitalia":"widget_user_token-healthitalia","hegnarno":"widget_user_token-hegnarno","investopedia":"widget_user_token-investopedia","ivsgroup":"widget_user_token-ivsgroup","marcopolocombr":"widget_user_token-marcopolocombr","moneytimescombr":"widget_user_token-moneytimescombr","recrusulcombr":"widget_user_token-recrusulcombr","seudinheiro":"widget_user_token-seudinheiro","sgcompanyit":"widget_user_token-sgcompanyit","sharejunction":"widget_user_token-sharejunction","spacemoneycombr":"widget_user_token-spacemoneycombr","thetradersnet":"widget_user_token-thetradersnet","toroinvestimentoscombr":"widget_user_token-toroinvestimentoscombr","xpicombr":"widget_user_token-xpicombr","europapresses":"widget_user_token-europapresses","mercadofinancierocom":"widget_user_token-mercadofinancierocom"}')},Owlf:function(t,e,o){"use strict";o.d(e,"a",(function(){return n}));var n="large"},PC8g:function(t,e,o){"use strict";o.r(e),o.d(e,"trackEvent",(function(){return l}));o("bSeV");var n=o("FQhm"),i=o("Kxc7"),r=o("uOxu"),s=Object(r.getLogger)("Common.TrackEvent"),a=[/Study_(Drawing)_(.*)/,/(Study)_(.*)@tv-basicstudies/,/(Study)_(.*)/,/(Chart Style) (.*)/],l=function(t,e,o){if(i.enabled("charting_library_base"))!function(t,e,o){e=e||t||o||"";for(var i="",r=0;re?(s&&(clearTimeout(s),s=null),a=c,r=t.apply(n,i),s||(n=i=null)):s||!1===o.trailing||(s=setTimeout(l,u)),r}},t.exports=e.default},RjiR:function(t,e,o){"use strict";var n=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var o=[],n=!0,i=!1,r=void 0;try{for(var s,a=t[Symbol.iterator]();!(n=(s=a.next()).done)&&(o.push(s.value),!e||o.length!==e);n=!0);}catch(l){i=!0,r=l}finally{try{!n&&a.return&&a.return()}finally{if(i)throw r}}return o}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance") },i=o("FIi8"),r=o("uOxu"),s=o("ogJP"),a=o("GH0z"),l=o("RoXi"),c=o("kcTO"),u=o("nEwK"),d=o("oNU6"),h=o("Wc1E"),p=o("RqCd"),_=o("IWXC"),f=o("kyOc"),g=o("y8Ih"),m=(0,r.getLogger)("QuoteTicker"),v={addDescriptionTitle:!0,changeDirectionDownClass:"down",changeDirectionUpClass:"up",changeDirectionNeutralClass:"neutral",changeInBrackets:!1,changePercentInBrackets:!1,lastPriceTimeInBrackets:!0,rtcTimeInBrackets:!0,clientName:"quote-ticker",dontDyePrice:!1,fallingBg:null,growingBg:null,lastFallingClass:"falling",lastGrowingClass:"growing",quoteSession:null,signNegative:!0,signPositive:!1,customPriceFormatter:null,customTimeFormatter:null,sessionStatusClassSuffix:"--for-ticker",dataModeClassSuffix:"--for-ticker",showInvalidSymbolStatus:!1,indicatorsTooltipType:"custom",lastPriceLastCharSup:!1,lastPriceHighlightDiffOnly:!1,initedHook:void 0,setStateHook:void 0,sfPermissionDeniedHook:void 0,noSuchSymbolHook:void 0},y=["aboard","about","above","abreast","abroad","absent","across","adjacent","after","against","along","alongside","amid","among","an","apropos","apud","around","as","astride","at","atop","bar","before","behind","below","beneath","beside","besides","between","beyond","but","by","chez","circa","come","despite","down","during","except","for","from","in","inside","into","less","like","minus","near","notwithstanding","of","off","on","onto","ontop","opposite","out","outside","over","pace","past","per","post","pre","pro","qua","re","sans","save","short","since","than","through","throughout","to","toward, towards","under","underneath","unlike","until","up","upon","upside","versus","via","vice","with","within","without","worth"];function b(t,e){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.enabled=!0,this._symbol=t,this._symbolOriginal=null,this._options=(0,i.deepExtend)({},v,o),!1!==this._options.signNegative&&!0!==this._options.signNegative&&delete this._options.signNegative,o.customPriceFormatter&&(this._customPriceFormatter=o.customPriceFormatter),o.customTimeFormatter&&(void 0!==o.customTimeFormatter.lastPrice||void 0!==o.customTimeFormatter.rtc?this._timeFormatter=o.customTimeFormatter:this._timeFormatter={lastPrice:o.customPriceFormatter,rtc:o.customPriceFormatter}),this._percentFormatter=new a.PercentageFormatter,this._priceFormatter=this._customPriceFormatter||new c.PriceFormatter(100),this._volumeFormatter=new u.VolumeFormatter,this._cache={},this._lastPrice=null,this._lastPriceFormatted="",this._elements={},this._textNodes={},this._setElements(e),this._highlighters={},this._initHighlighters(),this._options.setStateHook&&this.setStateHook(this._options.setStateHook),this.quoteSession=this._options.quoteSession||(0,_.getQuoteSessionInstance)("simple"),this._quoteSessionEventHandler=this.onData.bind(this),setTimeout(this.connect.bind(this),0)}function w(t,e,o,n,i){var r,s=null;function a(){if(r&&(clearTimeout(r),r=void 0),o||e)for(var s=0;s=0;o--)if(3===e.item(o).nodeType)return e.item(o);return null},b.prototype.connect=function(t){this._subscribed||(this._subscribedSymbol=t||this._symbol,this.quoteSession.subscribe(this._options.clientName,this._subscribedSymbol,this._quoteSessionEventHandler),this._subscribed=!0)},b.prototype.disconnect=function(){this._subscribed&&(this.quoteSession.unsubscribe(this._options.clientName,this._subscribedSymbol,this._quoteSessionEventHandler),this._subscribed=!1)},b.prototype.onData=function(t,e){if(this.enabled)switch(t.status){case"ok":this.successData(t,e);break;case"permission_denied":this.onPermissionDenied(t);break;case"error":this.errorData(t)}},b.prototype.successData=function(t,e){t.values&&this.setState(t.values,t,e)},b.prototype.onPermissionDenied=function(t){(0,g.isSfQuoteData)(t)?this._options.sfPermissionDeniedHook?this._options.sfPermissionDeniedHook(t,this._symbolOriginal||this._symbol):this.errorData(t):this.downgradeData(t)},b.prototype.errorData=function(t){var e=this;this._options.showInvalidSymbolStatus&&(this.setShortName(this._symbol),this._elements.sessionStatus.map((function(t){return new d.MarketStatusIndicator({classSuffix:e._options.sessionStatusClassSuffix,el:t,data:{values:{current_session:"invalid"}},tooltipType:e._options.indicatorsTooltipType})}))),this._options.noSuchSymbolHook?(this._symbolOriginal&&this.setShortName(this._symbolOriginal),this._options.noSuchSymbolHook.call(this,t,this._symbolOriginal||this._symbol)):m.logWarn("No data for: "+this._symbol)},b.prototype.downgradeData=function(t){var e=t&&t.values&&t.values.alternative,o=this._symbol===e;e&&-1!==e.indexOf(":")&&!o?(this._symbolOriginal=this._symbol,this._symbol=e,this._subscribed=!1,this.connect()):this.errorData(t)},b.prototype.setState=function(t,e,o){var n=this,i=o.values;null==i.pricescale&&null==i.minmov&&null==i.fractional&&null==i.minmove2||(this._priceFormatter=this._customPriceFormatter||new c.PriceFormatter(t.pricescale||100,t.minmov||1,t.fractional,t.minmove2)) ;var r=this._options,s=this._percentFormatter,a=this._priceFormatter,l=this._volumeFormatter;i.timezone&&this._timeFormatter&&(this._timeFormatter.lastPrice&&this._timeFormatter.lastPrice.setTimezone(i.timezone),this._timeFormatter.rtc&&this._timeFormatter.rtc.setTimezone(i.timezone));var _=function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return e?"("+t+")":t},f=void 0!==r.signPositiveChange?r.signPositiveChange:r.signPositive,g=function(t){var e=a.format(t,f,void 0,r.signNegative);return _(e,r.changeInBrackets)},v=function(t){var e=s.format(t,f,void 0,r.signNegative);return _(e,r.changePercentInBrackets)},y=a.format.bind(a),b=l.format.bind(l),w=function(t){return null==t?u.PLACE_HOLDER:y(t)};this._setNodesValue(this._textNodes.change,i.change,g),this._setNodesValue(this._textNodes.changePercent,i.change_percent,v),null!=i.change&&(r.dontDyePrice||this._setChangeFontColor([].concat(this._elements.change,this._elements.changePercent),i.change,r.changeUpFontColor,r.changeDownFontColor,r.changeNeutralFontColor),this._setChangeDirection(this._elements.changeDirection,i.change)),this._setNodesValue(this._textNodes.extHrsChange,i.rch,g),this._setNodesValue(this._textNodes.extHrsChangePercent,i.rchp,v),null!=i.rch&&(r.dontDyePrice||this._setChangeFontColor([].concat(this._elements.extHrsChange,this._elements.extHrsChangePercent),i.rch,r.changeUpFontColor,r.changeDownFontColor,r.changeNeutralFontColor),this._setChangeDirection(this._elements.extHrsChangeDirection,i.rch)),this._setNodesValue(this._textNodes.prevClose,i.prev_close_price,y),this._setNodesValue(this._textNodes.dividends,t.dividends_yield,(function(t){return null==t?u.PLACE_HOLDER:s.format(t,r.signPositive,void 0,r.signNegative)}),!0);var S=(0,p.getTranslatedSymbolDescription)(i);if(S&&(S=this._prepareSymbolDescription(S),this._setTextsContent(this._elements.description,S),this._options.addDescriptionTitle))for(var C=0;C0),n.toggle(this._options.changeDirectionDownClass,e<0),n.toggle(this._options.changeDirectionNeutralClass,0===e)}},b.prototype.setShortName=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";this._setTextsContent(this._elements.shortName,t)},b.prototype._prepareSymbolDescription=function(t){var e,o=this._getCache("symbol-description:"+t);if(o)return o;return o=(o=(e=t)===e.toUpperCase()?t.toLowerCase():t).replace(/[^\s]\S*/g,(function(t){return function(t){return 1!==t.length&&!~y.indexOf(t)}(t)?(0,f.capitalizeFirstLetter)(t):t})),o=(0,f.capitalizeFirstLetter)(o),this._setCache("symbol-description:"+t,o),o},b.prototype._initHighlighters=function(){this._highlighters.last=new w(this._elements.lastHighlight,this._options.growingBg,this._options.fallingBg,this._options.lastGrowingClass,this._options.lastFallingClass),this._highlighters.extHrsClose=new w(this._elements.extHrsClose,this._options.growingBg,this._options.fallingBg,this._options.lastGrowingClass,this._options.lastFallingClass)},b.prototype.disable=function(){this.enabled=!1,this.disconnect()},b.prototype.enable=function(){this.enabled=!0,this.connect()},b.prototype.setStateHook=function(t){null===t&&this._setStateHook?delete this._setStateHook:"function"==typeof t&&(this._setStateHook=t)},b.prototype._setCache=function(t,e){null==e?delete this._cache[t]:this._cache[t]=e},b.prototype._getCache=function(t){return this._cache&&this._cache[t]},t.exports.QuoteTicker=b},RoXi:function(t,e,o){"use strict";o.r(e),o.d(e,"PriceColorer",(function(){return n}));o("P5fv");var n,i=o("j1f4");!function(t){function e(t,e){return 0===t?e&&void 0!==e.neutral?e.neutral:i.color.black70:t>0?e&&void 0!==e.up?e.up:i.color.success:e&&void 0!==e.down?e.down:i.color.danger}t.formatSign=e,t.formatDiff=function(t,o){return e(o-t)},t.domDifference=function(t,e,o,n,i){function r(t){var e=document.createElement("span");return e.innerHTML=t,e}if(void 0===o&&(o=0),void 0===n&&(n=""),void 0===i&&(i=""),!o)return $(r(t));var s=t+"",a=e+"",l=null;if(s.length===a.length){for(var c=0;c100)throw new Error("invalid transparency");return 1-t/100}function a(t){return c(t)?t:Object(n.rgbaToString)(Object(n.rgba)(Object(n.parseRgb)(t),Object(n.normalizeAlphaComponent)(1)))}function l(t){var e=Object(n.parseRgb)(t).map((function(t){return(t/=255)<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)}));return Number((.2126*e[0]+.7152*e[1]+.0722*e[2]).toFixed(3))}function c(t){return 0===t.indexOf("#")}function u(t){return"black"===Object(n.rgbToBlackWhiteString)(Object(n.parseRgb)(t),150)?"white":"black"}},TzTt:function(t,e,o){"use strict";var n;function i(t,e){var o,i;return o=null==e?document.documentElement:9===e.nodeType?e.documentElement:e,n&&(i=n.get(o)),i||((i=o.ownerDocument.createRange()).selectNodeContents(o),n&&n.set(o,i)),i.createContextualFragment(t)}function r(t,e){var o,n=i(t,e);if("firstElementChild"in n)o=n.firstElementChild;else{o=null;for(var r=0;r=0;r--)t.test(o[r])&&n.push(o[r]),t.lastIndex=0;return n},sync:function(e){u?O(u.initialSettings||{}):window.is_authenticated&&!o?O(e||{}):(function(){if(TradingView.onWidget()&&l.includes(window.location.host))for(var t=s.length;t--;){var e=s.key(t);if(0===e.indexOf("tradingview.")){var o=e.replace("tradingview.",m+".");s.setItem(o,s.getItem(e)),s.removeItem(e)}}}(),function(){v={};for(var e=m+".",o=!t.enabled("save_chart_properties_to_local_storage"),n=s.length;n--;){var i=s.key(n);if(i&&i.substring(0,e.length)===e){var r=i.substring(e.length);o&&!I(r)||(v[r]=s.getItem(i))}}}()),N.fire()},onSync:N,setSettingsAdapter:function(t){u=t}}}();setTimeout((function(){o.e("clear-old-settings").then(function(t){o("FwaW").clearOldSettings()}.bind(null,o)).catch(o.oe)}),3e4),e&&e.exports&&(e.exports=c)}).call(this,o("Kxc7"),o("YuTi")(t))},W178:function(t,e){ t.exports=''},W3MX:function(t){ t.exports=JSON.parse('{"color-aqua-spring":"#ebf9f5","color-army-green":"#3d2c12","color-army-green-2":"#31230d","color-athens-gray-1":"#f2f3f5","color-athens-gray-2":"#f7f8fa","color-athens-gray-3":"#eceff2","color-black":"#000000","color-blue-dianne":"#21384d","color-bluish":"#2185cc","color-bright-gray":"#363c4e","color-brownish-grey":"#8d6e63","color-carnation":"#f04561","color-catskill-white":"#e1ecf2","color-charade":"#2f3241","color-charcoal-grey":"#323337","color-curious-blue":"#299dcd","color-dark-blue-grey":"#123440","color-darkness-blue-grey":"#12213b","color-dark-grey":"#292a2d","color-dark-grey-blue":"#28415a","color-dark-sky-blue":"#37a6ef","color-dark-slate-blue":"#194453","color-deep-sea-blue":"#016087","color-duck-egg-blue":"#e1eff9","color-ebony-clay":"#262b3e","color-foam":"#d7f0fb","color-gull-gray":"#9db2bd","color-humming-bird":"#d3eef9","color-keppel-1":"#37bc9b","color-keppel-2":"#34b293","color-lavender-blush":"#ffedf0","color-lightish-purple":"#a75ee8","color-loblolly":"#c5cbce","color-manatee":"#878ca8","color-mandy":"#eb4d5c","color-medium-blue":"#2e7bb2","color-milk-chocolate":"#6f2626","color-mirage-1":"#131722","color-mirage-2":"#171b29","color-mirage-3":"#1c2030","color-mischka":"#d6d8e0","color-morning-glory":"#9addcc","color-oslo-gray":"#8b8e95","color-pale":"#fff2cf","color-pale-grey-1":"#f9fafb","color-pale-grey-2":"#e7ebee","color-pale-sky":"#6b7988","color-picton-blue-1":"#3bb3e4","color-picton-blue-2":"#41bef1","color-puerto-rico":"#3bc2a1","color-purple-brown":"#4e2934","color-purple-brown-2":"#3d2028","color-radical-red":"#ff4a68","color-regent-gray":"#8797a5","color-scooter":"#38acdb","color-silver-tree":"#53b987","color-slate-gray":"#758696","color-sundown":"#ffa4b3","color-sunglow":"#ffca3b","color-tan-hide":"#ff9850","color-trout-1":"#4c525e","color-trout-2":"#4f5966","color-violet-1":"#332738","color-violet-2":"#271d2b","color-water-blue":"#1592e6","color-white":"#ffffff","color-white-ice":"#ebf7fc","color-wild-watermelon":"#ff5773","color-bg-primary":"color-white","color-bg-primary-hover":"color-cold-gray-100","color-bg-secondary":"color-white","color-bg-highlight":"color-cold-gray-50","color-bg-scroll-buttons":"color-cold-gray-100","color-legacy-bg-scroll-buttons":"color-cold-gray-850","color-legacy-bg-widget":"color-white","color-text-primary":"color-cold-gray-900","color-text-secondary":"color-cold-gray-500","color-text-tertiary":"color-cold-gray-400","color-text-disabled":"color-cold-gray-300","color-box-shadow":"color-cold-gray-300","color-divider":"color-cold-gray-150","color-divider-hover":"color-cold-gray-100","color-active-hover-text":"color-black","color-alert-text":"color-black","color-border-table":"color-cold-gray-100","color-brand":"color-tv-blue-500","color-brand-active":"color-tv-blue-600","color-brand-hover":"color-tv-blue-600","color-brand-light":"color-picton-blue-2","color-chart-page-bg":"color-cold-gray-150","color-common-tooltip-bg":"color-cold-gray-800","color-common-tooltip-text":"color-cold-gray-100","color-danger":"color-radical-red","color-depthrenderer-stroke-style":"color-athens-gray-1","color-highlight-new":"color-pale","color-input-bg":"color-white","color-input-publish-bg":"color-white","color-link":"color-tv-blue-500","color-link-hover":"color-tv-blue-600","color-link-active":"color-tv-blue-600","color-list-nth-child-bg":"color-athens-gray-2","color-pane-bg":"color-white","color-pane-secondary-bg":"color-cold-gray-100","color-popup-menu-item-hover-bg":"color-cold-gray-100","color-popup-menu-separator":"color-cold-gray-150","color-replay-data-mode":"color-radical-red","color-screener-description":"color-trout-2","color-legacy-success":"color-keppel-1","color-success":"color-minty-green-500","color-success-hover":"color-minty-green-600","color-success-active":"color-minty-green-700","color-toolbar-button-text":"color-cold-gray-900","color-toolbar-button-text-hover":"color-black","color-toolbar-button-text-active":"color-tv-blue-500","color-toolbar-button-text-active-hover":"color-tv-blue-600","color-toolbar-button-background-hover":"color-cold-gray-100","color-toolbar-button-background-secondary-hover":"color-cold-gray-150","color-toolbar-toggle-button-background-active":"color-tv-blue-500","color-toolbar-toggle-button-background-active-hover":"color-tv-blue-600","color-toolbar-interactive-element-text-normal":"color-cold-gray-900","color-toolbar-interactive-element-text-hover":"color-black","color-toolbar-opened-element-bg":"color-cold-gray-100","color-tooltip-bg":"color-ebony-clay","color-tv-dialog-caption":"color-trout-2","color-tv-dropdown-item-hover-bg":"color-athens-gray-1","color-underlined-text":"color-slate-gray","color-widget-pages-bg":"color-white","color-warning":"color-tan-orange-500","color-growing":"color-minty-green-400","color-falling":"color-ripe-red-400","color-collapse-tabs-border":"color-athens-gray-3","color-forex-icon":"color-bright-gray","color-list-item-active-bg":"color-dark-sky-blue","color-list-item-hover-bg":"color-white-ice","color-list-item-text":"color-ebony-clay","color-site-widget-hover":"color-athens-gray-1","color-attention":"color-sunglow","color-price-axis-label-back":"color-cold-gray-150","color-price-axis-label-text":"color-cold-gray-650","color-price-axis-gear":"color-cold-gray-900","color-price-axis-gear-hover":"#000000","color-price-axis-highlight":"color-cold-gray-150","color-marker-flagged":"color-ripe-red-400","color-marker-flagged-hovered":"color-ripe-red-600","color-bid":"color-tv-blue-500","color-ask":"color-ripe-red-400","color-sell":"color-ripe-red-400","color-buy":"color-tv-blue-500","color-neutral":"color-cold-gray-500","color-border":"#dadde0","color-border-chat-fields":"#c9cbcd","color-border-hover":"#c8c8c8","color-button-hover-bg":"#f2f2f2","color-depthrenderer-fill-style":"#555555","color-disabled-border-and-color":"#ececec","color-disabled-input":"#ececec","color-readonly-input":"#b4b4b4","color-empty-container-message":"#8a8a8a","color-icons":"#7d7d7d","color-input-textarea-readonly":"#555555","color-item-active-blue":"#eff9ff","color-item-hover-active-bg":"#f1f3f6","color-item-hover-bg":"#edf1f2","color-item-hover-blue":"#c6e9f8","color-item-selected-blue":"#eafafe","color-item-active-text":"color-white","color-item-active-bg":"color-tv-blue-500","color-list-item":"#888989","color-news-highlight":"#f2f5f8","color-placeholder":"#adaeb0","color-row-hover-active-bg":"#f1f3f6","color-sb-scrollbar-body-bg":"#d8d8d8","color-section-separator-border":"#b5b7b9","color-separator-table-chat":"#eaecef","color-tag-active-bg":"#cfdce3","color-tag-hover-bg":"#dce6ea","color-text-regular":"#4a4a4a","color-tv-button-checked":"#757575","color-white-theme-tooltip-text":"#333333","color-brand-dark":"#2a2c39","color-scroll-bg":"color-cold-gray-400","color-scroll-border":"color-item-hover-active-bg","color-widget-border":"color-cold-gray-100","color-scroll-buttons-arrow":"color-white","color-control-intent-default":"color-cold-gray-200","color-control-intent-success":"color-minty-green-600","color-control-intent-primary":"color-tv-blue-500","color-control-intent-warning":"color-tan-orange-500","color-control-intent-danger":"color-ripe-red-500","color-seeking-alpha-brand":"#ff7200","color-pro":"color-minty-green-400","color-pro-hover":"color-minty-green-600","color-pro-plus":"color-tv-blue-500","color-pro-plus-hover":"color-tv-blue-600","color-pro-premium":"color-tan-orange-500","color-pro-premium-hover":"color-tan-orange-700","color-trial":"color-cold-gray-500","color-trial-hover":"color-cold-gray-600","color-mod":"color-ripe-red-400","color-mod-hover":"color-ripe-red-600","color-top":"color-banana-yellow-700","color-top-hover":"color-banana-yellow-800","color-ad":"color-banana-yellow-a700","color-broker-featured":"color-minty-green-400","color-broker-featured-hover":"color-minty-green-600","color-alert-status-active":"color-minty-green-400","color-alert-status-stopped":"color-ripe-red-500","color-alert-status-stopped-auto":"color-tan-orange-500","color-covid19-confirmed":"color-ripe-red-500","color-covid19-recovered":"color-minty-green-500","color-covid19-deaths":"color-cold-gray-450","color-blue-gray-950":"#0C0E15","color-cold-gray-50":"#F8F9FD","color-cold-gray-100":"#F0F3FA","color-cold-gray-150":"#E0E3EB","color-cold-gray-200":"#D1D4DC","color-cold-gray-250":"#C1C4CD","color-cold-gray-300":"#B2B5BE","color-cold-gray-350":"#A3A6AF","color-cold-gray-400":"#9598A1","color-cold-gray-450":"#868993","color-cold-gray-500":"#787B86","color-cold-gray-550":"#6A6D78","color-cold-gray-600":"#5D606B","color-cold-gray-650":"#50535E","color-cold-gray-700":"#434651","color-cold-gray-750":"#363A45","color-cold-gray-800":"#2A2E39","color-cold-gray-850":"#1E222D","color-cold-gray-900":"#131722","color-cold-gray-950":"#0C0E15","color-ripe-red-50":"#FFEBEE","color-ripe-red-100":"#FFCDD2","color-ripe-red-200":"#ef9a9a","color-ripe-red-300":"#E57373","color-ripe-red-400":"#EF5350","color-ripe-red-500":"#F44336","color-ripe-red-600":"#E53935","color-ripe-red-700":"#D32F2F","color-ripe-red-800":"#C62828","color-ripe-red-900":"#B71C1C","color-ripe-red-a200":"#FF5252","color-tan-orange-50":"#FFF3E0","color-tan-orange-100":"#FFE0B2","color-tan-orange-200":"#FFCC80","color-tan-orange-300":"#ffb74d","color-tan-orange-400":"#FFA726","color-tan-orange-500":"#FF9800","color-tan-orange-600":"#FB8C00","color-tan-orange-700":"#F57C00","color-tan-orange-800":"#EF6C00","color-tan-orange-900":"#e65100","color-tan-orange-a200":"#ffab40","color-tan-orange-a400":"#ff9100","color-tan-orange-a700":"#FF6D00","color-iguana-green-100":"#C8E6C9","color-iguana-green-200":"#A5D6A7","color-iguana-green-300":"#81c784","color-iguana-green-400":"#66BB6A","color-iguana-green-500":"#4caf50","color-iguana-green-600":"#43a047","color-iguana-green-700":"#388e3c","color-iguana-green-900":"#1B5E20","color-iguana-green-a700":"#00c853","color-banana-yellow-100":"#FFF9C4","color-banana-yellow-200":"#FFF59D","color-banana-yellow-300":"#FFF176","color-banana-yellow-400":"#ffee58","color-banana-yellow-500":"#ffeb3b","color-banana-yellow-600":"#fdd835","color-banana-yellow-700":"#fbc02d","color-banana-yellow-800":"#f9a825","color-banana-yellow-900":"#F57F17","color-banana-yellow-a400":"#ffea00","color-banana-yellow-a700":"#ffd600","color-tv-blue-50":"#E3F2FD","color-tv-blue-100":"#BBDEFB","color-tv-blue-200":"#90CAF9","color-tv-blue-300":"#64B5F6","color-tv-blue-400":"#42A5F5","color-tv-blue-500":"#2196F3","color-tv-blue-600":"#1E88E5","color-tv-blue-700":"#1976D2","color-tv-blue-800":"#1565C0","color-tv-blue-900":"#0d47a1","color-tv-blue-a100":"#82b1ff","color-tv-blue-a200":"#448aff","color-tv-blue-a400":"#2979ff","color-tv-blue-a600":"#2962FF","color-tv-blue-a700":"#144987","color-tv-blue-a800":"#143661","color-tv-blue-a900":"#132742","color-deep-blue-100":"#D1C4E9","color-deep-blue-200":"#B39DDB","color-deep-blue-300":"#9575cd","color-deep-blue-400":"#7e57c2","color-deep-blue-500":"#673ab7","color-deep-blue-700":"#512da8","color-deep-blue-800":"#4527A0","color-deep-blue-900":"#311B92","color-deep-blue-a100":"#b388ff","color-deep-blue-a700":"#6200EA","color-minty-green-100":"#B2DFDB","color-minty-green-200":"#80cbc4","color-minty-green-300":"#4db6ac","color-minty-green-400":"#26a69a","color-minty-green-500":"#009688","color-minty-green-600":"#00897b","color-minty-green-700":"#00796b","color-minty-green-900":"#004D40","color-minty-green-a400":"#1de9b6","color-minty-green-a700":"#00BFA5","color-grapes-purple-100":"#E1BEE7","color-grapes-purple-200":"#CE93D8","color-grapes-purple-300":"#ba68c8","color-grapes-purple-400":"#ab47bc","color-grapes-purple-500":"#9c27b0","color-grapes-purple-600":"#8e24aa","color-grapes-purple-700":"#7b1fa2","color-grapes-purple-800":"#6A1B9A","color-grapes-purple-900":"#4A148C","color-grapes-purple-a700":"#aa00ff","color-berry-pink-100":"#F8BBD0","color-berry-pink-200":"#f48fb1","color-berry-pink-300":"#f06292","color-berry-pink-400":"#ec407a","color-berry-pink-500":"#e91e63","color-berry-pink-600":"#D81B60","color-berry-pink-700":"#C2185B","color-berry-pink-900":"#880E4F","color-berry-pink-a200":"#ff4081","color-sky-blue-100":"#B2EBF2","color-sky-blue-200":"#80DEEA","color-sky-blue-300":"#4dd0e1","color-sky-blue-400":"#26c6da","color-sky-blue-500":"#00bcd4","color-sky-blue-600":"#00acc1","color-sky-blue-700":"#0097A7","color-sky-blue-800":"#00838F","color-sky-blue-900":"#006064","color-sky-blue-a400":"#00e5ff","color-sky-blue-a700":"#00B8D4","color-deep-blue-600":"#5E35B1","color-facebook":"#1877F2","color-twitter":"#1DA1F2","color-pre-market":"color-tan-orange-600","color-pre-market-bg":"color-tan-orange-400","color-post-market":"color-tv-blue-500","color-post-market-bg":"color-tv-blue-400","color-market-open":"color-minty-green-500","color-market-open-bg":"color-minty-green-400","color-market-closed":"color-cold-gray-400","color-market-holiday":"color-cold-gray-400","color-invalid-symbol":"color-ripe-red-400","color-invalid-symbol-hover":"color-ripe-red-700","color-replay-mode":"color-tv-blue-500","color-replay-mode-icon":"color-white","color-replay-mode-hover":"color-tv-blue-600","color-delay-mode":"color-berry-pink-600","color-delay-mode-bg":"color-berry-pink-600","color-eod-mode":"color-berry-pink-600","color-eod-mode-bg":"color-berry-pink-600","color-data-problem":"color-ripe-red-600","color-data-problem-bg":"color-ripe-red-400","color-data-problem-hover":"color-ripe-red-700","color-list-item-bg-highlighted":"color-tv-blue-50","color-list-item-bg-selected":"color-tv-blue-100","color-screener-header-bg":"color-white","color-screener-header-bg-hover":"color-cold-gray-100"}') },Wc1E:function(t,e,o){"use strict";o.r(e),o.d(e,"DataModeIndicator",(function(){return c}));var n=o("mrSG"),i=(o("YFKU"),o("HbRj"),o("quTg"),o("r8Gw")),r={connecting:window.t("Connecting"),delayed:window.t("Delayed"),delayed_streaming:window.t("Delayed"),endofday:window.t("End of Day"),forbidden:window.t("Instrument is not allowed"),realtime:window.t("Real-time"),snapshot:window.t("Snapshot"),loading:"",replay:window.t("Replay Mode")},s={connecting:window.t("C",{context:"data_mode_connecting_letter"}),delayed:window.t("D",{context:"data_mode_delayed_letter"}),delayed_streaming:window.t("D",{context:"data_mode_delayed_streaming_letter"}),endofday:window.t("E",{context:"data_mode_end_of_day_letter"}),forbidden:window.t("F",{context:"data_mode_forbidden_letter"}),realtime:window.t("R",{context:"data_mode_realtime_letter"}),snapshot:window.t("S",{context:"data_mode_snapshot_letter"}),loading:"",replay:window.t("R",{context:"data_mode_replay_letter"})},a={streaming:"realtime"},l={classMap:{connecting:"tv-data-mode--connecting",delayed:"tv-data-mode--delayed",delayed_streaming:"tv-data-mode--delayed",endofday:"tv-data-mode--endofday",forbidden:"tv-data-mode--forbidden",realtime:"tv-data-mode--realtime",snapshot:"tv-data-mode--snapshot",loading:"tv-data-mode--loading",replay:"tv-data-mode--replay"},classSuffix:"",data:{values:{update_mode:"connecting"}},labelMap:r,modeInterval:600,short:!1,shortLabelMap:s,showTooltip:!0,tooltipType:"custom"},c=function(t){function e(e){var o=t.call(this,e)||this;return o._quoteSessionPrefix="data-mode-indicator",o._componentClass="tv-data-mode",o._init(e),o}return Object(n.__extends)(e,t),e.prototype.getLabel=function(){return!0===this._shortMode?this._shortLabelMap[this._value]||"":t.prototype.getLabel.call(this)},e.prototype.setMode=function(t,e){this.update({values:{update_mode:t,update_mode_seconds:e}})},e.prototype.hide=function(){this._el.classList.add("i-hidden")},e.prototype.show=function(){this._el.classList.remove("i-hidden")},e.prototype.getTooltipText=function(){var t="",e=this.getValue();if(""===e)return t;switch(e){case"delayed":t=window.t("Quotes are delayed by {0} min and updated every 30 seconds");break;case"delayed_streaming":t=window.t("Quotes are delayed by {0} min");break;default:t=this._labelMap[e]||t}return["delayed","delayed_streaming"].includes(e)&&(t=t.format(Math.round(this._modeInterval/60))),t},e.prototype._init=function(e){void 0===e&&(e={});var o=Object.assign({},l,e);this._modeInterval=o.modeInterval||600,this._shortLabelMap=o.shortLabelMap||s,t.prototype._init.call(this,o),this._render()},e.prototype._getValueFromData=function(t){var e;return e=void 0!==t.values&&void 0!==t.values.update_mode?t.values.update_mode:this.getValue(),a[e]||e},e.prototype._updateValue=function(e,o){void 0!==e.values&&void 0!==e.values.update_mode_seconds&&(this._modeInterval=e.values.update_mode_seconds),t.prototype._updateValue.call(this,e,o)},e}(i.a)},Wh9f:function(t,e,o){"use strict";o.r(e),o.d(e,"getSymbolPagePath",(function(){return r})), o.d(e,"makeSymbolInfoWithSymbolInfoPriority",(function(){return s})),o.d(e,"renderTemplate",(function(){return a})),o.d(e,"makeSymbolPagePathTemplate",(function(){return l})),o.d(e,"makeTemplateSymbolUrl",(function(){return c})),o.d(e,"makeTemplatedSymbolPageUrl",(function(){return u})),o.d(e,"makeSymbolPageUrl",(function(){return d})),o.d(e,"makeSymbolChartUrl",(function(){return h})),o.d(e,"makeSymbolTechnicalsPageUrl",(function(){return p}));o("bSeV");var n=o("E1RQ"),i=o("wuAJ");function r(t){return a(l(t),s(t))}function s(t){var e,o={shortName:t.shortName,exchange:t.exchange,proName:t.proName,type:t.type};return t.proName&&t.proName.includes(":")&&(e=t.proName.split(":"),o.exchange=e[0],o.shortName=e[1]),o}function a(t,e){return t.replace("{tvexchange}",e.exchange||"").replace("{tvsymbol}",e.shortName||"").replace("{tvprosymbol}",e.proName||"")}function l(t){return t.type&&["spread","expression"].includes(t.type)?t.proName?"/symbols/spread/{tvprosymbol}/":"/":void 0===t.shortName&&void 0===t.proName?(console.warn("Params missed"),"/"):t.type&&["forex","bitcoin","crypto"].includes(t.type)?t.exchange?"/symbols/{tvsymbol}/?exchange={tvexchange}":"/symbols/{tvsymbol}/":t.exchange||t.proName?"/symbols/{tvexchange}-{tvsymbol}/":"/symbols/{tvsymbol}/"}function c(t,e){var o=t;if(!/{tvsymbol}|{tvexchange}|{tvprosymbol}/.test(t)){var n="tvprosymbol";void 0===e.proName&&(n="tvsymbol"),o=t+"?tvwidgetsymbol={"+n+"}"}var r=a(o,s(e));if(!Object(i.c)(r))throw new Error("The symbol URL "+r+" is not allowed.");return r}function u(t,e,o,i){var r=(window.locale_domains?Object(n.determineBaseUrl)(window.locale_domains,i):window.location.origin)+a(t,s(e));return o?Object(n.addUtmToUrl)(r,o):r}function d(t,e,o){return u(l(t),t,e,o)}function h(t,e){return u("/chart/?symbol={tvprosymbol}",t,e)}function p(t,e,o){return u(l(t)+"technicals/",t,e,o)}},Wo0S:function(t,e,o){t.exports={"common-tooltip":"common-tooltip-s2GEoMlT","common-tooltip--hidden":"common-tooltip--hidden-Z0EAvXgv","common-tooltip--horizontal":"common-tooltip--horizontal-13imOC5w","common-tooltip--farther":"common-tooltip--farther-2yXMAkHF","common-tooltip--vertical":"common-tooltip--vertical-mcRoucek","common-tooltip-farther":"common-tooltip-farther-XoKytD99","common-tooltip--no-pointer-events":"common-tooltip--no-pointer-events-3nL0Vygu","common-tooltip--direction_normal":"common-tooltip--direction_normal-3u9ejKM2","common-tooltip__body":"common-tooltip__body-356XFpBj","common-tooltip__button-container":"common-tooltip__button-container-3EjyKV3s","common-tooltip__body--no-buttons":"common-tooltip__body--no-buttons-3quqi1Sv","common-tooltip__button":"common-tooltip__button-1rnQgujz","common-tooltip--direction_reversed":"common-tooltip--direction_reversed-XN-JUTdr","common-tooltip__ear-holder":"common-tooltip__ear-holder-yIJjpvgu","common-tooltip__ear-holder--below":"common-tooltip__ear-holder--below-1rmzWejA","common-tooltip__ear-holder--above":"common-tooltip__ear-holder--above-1D8FkNkw","common-tooltip__ear-holder--before":"common-tooltip__ear-holder--before-oXq5sFXr", "common-tooltip__ear-holder--after":"common-tooltip__ear-holder--after-BnAcuW1N","common-tooltip__body--with-hotkey":"common-tooltip__body--with-hotkey-2wXRtgYZ","common-tooltip__body--width_wide":"common-tooltip__body--width_wide-3oG604Li","common-tooltip__body--width_narrow":"common-tooltip__body--width_narrow-34hrFTFo","common-tooltip__body--no-padding":"common-tooltip__body--no-padding-2vVe6Xco","common-tooltip__hotkey-block":"common-tooltip__hotkey-block-2gS_uAOl","common-tooltip__hotkey-block--divider":"common-tooltip__hotkey-block--divider-rQ38KmpQ","common-tooltip__hotkey-text":"common-tooltip__hotkey-text-1eb7dyCg","common-tooltip__hotkey-button":"common-tooltip__hotkey-button-1XJ40e4D","common-tooltip__plus-sign":"common-tooltip__plus-sign-3CKSupKp"}},Wt0y:function(t,e,o){"use strict";function n(t){void 0===t&&(t=location.host);return-1!==["i18n.tradingview.com","partial.tradingview.com","www.tradingview.com","wwwcn.tradingview.com"].indexOf(t)||-1!==["d33t3vvu2t2yu5.cloudfront.net","dwq4do82y8xi7.cloudfront.net","s.tradingview.com","s3.tradingview.com"].indexOf(t)||t.match(/^[a-z]{2}\.tradingview\.com/)||t.match(/prod-[^.]+.tradingview.com/)?"battle":-1!==t.indexOf("tradingview.com")?"staging":t.match(/webcharts/)?"staging_local":(t.match(/^localhost(:\d+)?$/),"local")}function i(){return"local"===n()}function r(){return"battle"===n()}function s(){return!r()}o.r(e),o.d(e,"environment",(function(){return n})),o.d(e,"isLocal",(function(){return i})),o.d(e,"isProd",(function(){return r})),o.d(e,"isDebug",(function(){return s}))},XAms:function(t,e,o){"use strict";function n(t){t.preventDefault()}o.d(e,"a",(function(){return n})),o.d(e,"b",(function(){return r}));var i=["input:not([type])",'input[type="text"]','input[type="email"]','input[type="password"]','input[type="search"]','input[type="number"]','input[type="url"]',"textarea","a[href]",'*[contenteditable="true"]'];function r(t){var e=t.target;e&&!e.closest(i.join(", "))&&t.preventDefault()}},XzZr:function(t,e,o){"use strict";var n=o("ogJP").declareClassAsPureInterface;function i(){}TradingView.WEB_SOCKET_WAS_CONNECTED=!1,i.REBIND_STUDY_STANDALONE_TO_CHILD=1,i.REBIND_STUDY_CHILD_TO_STANDALONE=2,i.prototype.defaultWatchlistSymbols=function(){},i.prototype.defaultResolutions=function(){},i.prototype.availableCurrencies=function(){},i.prototype.supportedSymbolsTypes=function(){},i.prototype.supportedExchangesList=function(){},i.prototype.futuresRegex=function(){},i.prototype.quoteCreateSession=function(t){},i.prototype.quoteDeleteSession=function(t){},i.prototype.quoteSetFields=function(t,e){},i.prototype.quoteAddSymbols=function(t,e){},i.prototype.quoteRemoveSymbols=function(t,e){},i.prototype.quoteFastSymbols=function(t,e){},i.prototype.depthCreateSession=function(t,e,o){},i.prototype.depthDeleteSession=function(t){},i.prototype.depthSetSymbol=function(t,e){},i.prototype.depthClearSymbol=function(t){},i.prototype.depthSetScale=function(t,e){},i.prototype.chartCreateSession=function(t,e){},i.prototype.chartDeleteSession=function(t){}, i.prototype.createSession=function(t,e){},i.prototype.removeSession=function(t){},i.prototype.connected=function(){},i.prototype.connect=function(){},i.prototype.disconnect=function(){},i.prototype.switchTimezone=function(t,e){},i.prototype.resolveSymbol=function(t,e,o,n,i){},i.prototype.createSeries=function(t,e,o,n,i,r,s){},i.prototype.removeSeries=function(t,e,o){},i.prototype.modifySeries=function(t,e,o,n,i,r){},i.prototype.requestMoreData=function(t,e,o,n){},i.prototype.requestMetadata=function(t,e,o){},i.prototype.isCanCreateStudy=function(t,e){},i.prototype.createStudy=function(t,e,o,n,i,r,s){},i.prototype.rebindStudy=function(t,e,o,n,i,r,s,a){},i.prototype.removeStudy=function(t,e,o){},i.prototype.modifyStudy=function(t,e,o,n,i){},i.prototype.createPointset=function(t,e,o,n,i,r,s){},i.prototype.modifyPointset=function(t,e,o,n,i){},i.prototype.removePointset=function(t,e,o){},i.prototype.requestMoreTickmarks=function(t,e,o,n){},i.prototype.requestFirstBarTime=function(t,e,o,n){},i.prototype._invokeHandler=function(t,e){},i.prototype._sendRequest=function(t,e){},i.prototype._onMessage=function(t){},i.prototype._convertTimescaleResponse=function(t){},i.prototype._dispathNotification=function(t){},i.prototype._invokeNotificationHandler=function(t,e,o){},i.prototype._notifySessions=function(t){},i.prototype.unpack=function(t){},i.prototype.searchSymbols=function(t,e,o,n,i,r,s,a,l,c){},i.prototype.serverTimeOffset=function(){},i.prototype.getMarks=function(t,e,o,n,i){},i.prototype.getTimescaleMarks=function(t,e,o,n,i){},n(i,"ChartApiInterface"),t.exports.HandlerInfo=function(t,e){this.handler=t,this.customId=e},t.exports.ChartApiInterface=i},Y7w9:function(t,e,o){"use strict";o.r(e),o.d(e,"lowerbound",(function(){return r})),o.d(e,"lowerbound_int",(function(){return s})),o.d(e,"upperbound",(function(){return a})),o.d(e,"upperbound_int",(function(){return l})),o.d(e,"subtract",(function(){return c})),o.d(e,"moveToHead",(function(){return u})),o.d(e,"moveAfter",(function(){return d})),o.d(e,"moveBefore",(function(){return h}));var n=o("mrSG");function i(t,e){return t>1,a=n+s;o(t[a],e)?(n=a+1,r-=s+1):r=s}return n}function s(t,e,o,n){return void 0===o&&(o=0),void 0===n&&(n=t.length),r(t,e,i,o,n)}function a(t,e,o,n,i){void 0===n&&(n=0),void 0===i&&(i=t.length);for(var r=i-n;0>1,a=n+s;o(e,t[a])?r=s:(n=a+1,r-=s+1)}return n}function l(t,e,o,n){return void 0===o&&(o=0),void 0===n&&(n=t.length),a(t,e,i,o,n)}function c(t,e){return t.filter((function(t){return!e.includes(t)}))}function u(t,e){var o=t.indexOf(e);return o<0?t.slice():[e].concat(t.slice(0,o)).concat(t.slice(o+1))}function d(t,e,o){var i=new Set(e),r=[],a=[];return t.forEach((function(t,e){i.has(t)||(r.push(t),a.push(e))})),os?(console.warn("Too many variables-link in HEX-color search: "+o[0]),null):t(r,o)}(t);r[t]=i.ensureNotNull(e)})),e.colorsPalette=r,e.getHexColorByName=function(t){var o=e.colorsPalette[t];if(!o)throw new Error("No such color "+t);return o}},a4bl:function(t,e,o){},aIyQ:function(t,e,o){"use strict";(function(t){o("uOxu").getLogger("Common.Delegate");function e(){this._listeners=[]}function n(t){return!t.singleshot}e.prototype.subscribe=function(t,e,o){var n={object:t,member:e,singleshot:!!o};this._listeners.push(n)},e.prototype.unsubscribe=function(t,e){for(var o=0;o=0;--e){this._listeners[e].object===t&&this._listeners.splice(e,1)}},e.prototype.destroy=function(){delete this._listeners},e.prototype.fire=function(){var t=this._listeners;this._listeners=this._listeners.filter(n);for(var e=t.length,o=0;o

',actionsWrapTemplate:'
',actions:[{name:"ok",type:"primary",text:window.t("Ok"),method:"close",key:[13,32]}]});function r(t){return new Promise((function(e){Promise.all([o.e("vendors_embed"),o.e("dialogs-core"),o.e(1),o.e(2),o.e(7),o.e(17),o.e(12),o.e(16),o.e(182),o.e("create-dialog")]).then(function(r){var s=o("YDhE").createDialog;e(s(Object(n.__assign)(Object(n.__assign)({},i),t)))}.bind(null,o)).catch(void 0)}))}function s(t){r(t).then((function(t){return t.open()}))}},c2JX:function(t,e,o){"use strict";o.r(e),o.d(e,"renderSpinnerTemplate",(function(){return r})),o.d(e,"Spinner",(function(){return a}));o("SzKR");var n=o("TzTt"),i=o("Owlf");function r(t){return void 0===t&&(t=""),'\n\t\t
\n\t\t\t
\n\t\t\t\t
\n\t\t\t\t
\x3c!--\n\t\t\t\t--\x3e
\n\t\t\t
\n\t\t
\n\t'}var s=Object(n.parseHtmlElement)(r()),a=function(){function t(t){this._shown=!1,this._el=s.cloneNode(!0),this.setSize(t||i.a)}return t.prototype.spin=function(t){return this._el.classList.add("tv-spinner--shown"),void 0===this._container&&(this._container=t,void 0!==t&&t.appendChild(this._el)),this._shown=!0,this},t.prototype.stop=function(t){return t&&void 0!==this._container&&this._container.removeChild(this._el),this._el.classList.remove("tv-spinner--shown"),this._shown=!1,this},t.prototype.setStyle=function(t){var e=this;return Object.keys(t).forEach((function(o){var n=t[o];void 0!==n&&e._el.style.setProperty(o,n)})),this},t.prototype.setSize=function(t){var e=void 0!==t?"tv-spinner--size_"+t:"";return this._el.className="tv-spinner "+e+" "+(this._shown?"tv-spinner--shown":""),this},t.prototype.getEl=function(){return this._el},t.prototype.destroy=function(){this.stop(),delete this._el,delete this._container},t}()},c6oQ:function(t,e,o){},d700:function(t,e,o){"use strict";o.d(e,"b",(function(){return i})),o.d(e,"a",(function(){return r}));var n=o("/3z9");function i(t){if("INPUT"===t.tagName){var e=t.type;return"text"===e||"email"===e||"number"===e||"password"===e||"search"===e||"tel"===e||"url"===e}return"TEXTAREA"===t.tagName||t.isContentEditable}function r(t,e){if(!e)return!1;var o=255&t ;if(27===o||o>>>4==7)return!1;switch(t^o){case n.Modifiers.Alt:return(38===o||40===o)&&"SELECT"===e.tagName||i(e);case n.Modifiers.Alt+n.Modifiers.Shift:return i(e);case n.Modifiers.Mod:if(67===o||!n.isMacKeyboard&&45===o){var r=e.ownerDocument&&e.ownerDocument.getSelection();if(r&&!r.isCollapsed)return!0}return i(e);case n.Modifiers.Mod+n.Modifiers.Shift:return o>=33&&o<=40&&i(e);case n.Modifiers.Shift:case 0:return!!(9!==o||e.ownerDocument&&e!==e.ownerDocument.body&&e!==e.ownerDocument.documentElement)&&((13===o||32===o||!function(t){if("BUTTON"===t.tagName)return!0;if("INPUT"===t.tagName){var e=t.type;if("submit"===e||"button"===e||"reset"===e||"checkbox"===e||"radio"===e)return!0}return!1}(e))&&("form"in e||e.isContentEditable))}return!1}},dJ3D:function(t,e,o){"use strict";(function(t){var e=o("x+tH").WSMode,n=!1,i=!1,r=Date.now()-3e5,s=o("7MZv").showTooManyStudiesNotice,a=o("XzZr"),l=a.ChartApiInterface,c=a.HandlerInfo,u=o("hGxK"),d=o("Wt0y"),h=o("xlbu").telemetry,p=o("i4z7"),_=null,f=o("Kxc7"),g=o("ePL1");o("iSkW");var m=o("NP3r").enabled,v=o("NP3r").getConfig,y=o("bKsZ").ProductFeatures,b=o("ogJP").requireFullInterfaceImplementation,w=o("+GxX").isFeatureEnabled,S=o("0waE").randomHash,C=o("pP4S").ResponseMethods,E=o("mNbo").isOnMobileAppPage,T=o("uOxu"),x=T.getLogger("ChartApi.Core",{color:"#706"}),A=T.getLogger("ChartApi.ChartSession",{color:"#706"}),k=T.getLogger("ChartApi.ChartSession",{highRate:!0,maxCount:100,color:"#706"}),I=T.getLogger("ChartApi.ChartSession",{maxCount:0,color:"#706"}),O=T.getLogger("ChartApi.ChartSession",{maxCount:50,color:"#706"}),N=T.getLogger("ChartApi.QuoteSession",{maxCount:50,color:"#660"}),D=T.getLogger("ChartApi.QuoteSession",{highRate:!0,maxCount:10,color:"#660"}),M=T.getLogger("ChartApi.TrafficMeter",{maxCount:20,color:"#268"}),L=o("rOif"),R=o("lt96").exchanges,P=o("BlPY"),F=o("0UyP").getTracker,B=o("iWlB").BackendSessionEventType,j=o("Cf1E").errorToString,U=o("ONPi"),H=Number(window.TELEMETRY_SERVER_TIME_DIFF_THRESHOLD)||3e3;function V(t){if(this._isAuthTokenLoaded=!1,this._authTokenDfd=null,this._notificationHandlers={},this._sessions={},this._dataHandleModule=null,this.studyCounter=0,this.childStudyCounter=0,this._sendingQueuedRequestsCount=0,this._pendingMessagesQueue=[],this._wasConnectedAtLeastOnce=!1,this._trafficStats={total:0,sinceConnect:0,lastChunk:0},this._wsBackendConnection=t,this._wsBackendConnection.onReconnect(this._bindSocketEvents.bind(this)),this._wsBackendConnection.setLogger(x,T.getLogHistory),this._wsBackendConnection.setTelemetry(h),this._bindSocketEvents(),this._lowQualityEnabled=!1,this._turnaroundPrefix=S(),this._turnaroundIndex=0,null===_){x.logInfo("Delayed loading protobuf handler after 6000ms"),setTimeout(this._loadProtobufHandler.bind(this),6e3)}else x.logInfo("Protobuf handler is loaded already");function e(t){if(0===t)return"0";var e=parseInt(Math.floor(Math.log(t)/Math.log(1024)));return Math.round(t/Math.pow(1024,e),2)+["","KB","MB","GB","TB"][e]}setInterval(function(){ M.logNormal("Last 30 seconds:"+e(this._trafficStats.lastChunk)+" Since last connect:"+e(this._trafficStats.sinceConnect)+" Total traffic:"+e(this._trafficStats.total)),this._trafficStats.lastChunk=0}.bind(this),3e4)}V.prototype.defaultWatchlistSymbols=function(){var t=L[window.locale];return void 0===t&&(t=L.default),t},V.prototype.defaultResolutions=function(){var t=["1","3","5","15","30","45","60","120","180","240","1D","1W","1M","1000R","100R","10R","1R"];if(!f.enabled("widget")&&w("seconds_bars")){return["1S","5S","15S","30S"].concat(t)}return t},V.prototype.availableCurrencies=function(){return Promise.resolve(["USD","RUB","EUR","CAD"])},V.prototype.supportedSymbolsTypes=function(){return"bovespa"===TradingView.widgetCustomer?P.filter((function(t){return-1!==["","stock","futures","index"].indexOf(t.value)})):"cme"===TradingView.widgetCustomer?P.filter((function(t){return t.value!==g.types.QUANDL})):P},V.prototype.supportedExchangesList=function(){return R},V.prototype.futuresRegex=function(){return/^(.+?)([12]!|\w\d{4})?$/},V.prototype.enableLowQualityMode=function(){this._lowQualityEnabled=!0,this._sendLowQualityModeIfEnabled()},V.prototype._sendLowQualityModeIfEnabled=function(){this._lowQualityEnabled&&this.connected()&&this._sendRequest("set_data_quality",[])},V.prototype.setLoadNew=function(t){this._loadNewBars=!!t},V.prototype.quoteCreateSession=function(t){return this._sendRequest("quote_create_session",[t])},V.prototype.quoteDeleteSession=function(t){return this._sendRequest("quote_delete_session",[t])},V.prototype.quoteSetFields=function(t,e){return this._sendRequest("quote_set_fields",[t,e])},V.prototype.quoteAddSymbols=function(t,e){return this._sendRequest("quote_add_symbols",[t,e])},V.prototype.quoteRemoveSymbols=function(t,e){return this._sendRequest("quote_remove_symbols",[t,e])},V.prototype.quoteFastSymbols=function(t,e){return this._sendRequest("quote_fast_symbols",[t,e])},V.prototype.quoteHibernateAll=function(t){return this._sendRequest("quote_hibernate_all",[t])},V.prototype.depthCreateSession=function(t,e,o){return this._sendRequest("depth_create_session",[t,e,o])},V.prototype.depthDeleteSession=function(t){return this._sendRequest("depth_delete_session",[t])},V.prototype.depthSetSymbol=function(t,e){return this._sendRequest("depth_set_symbol",[t,e])},V.prototype.depthClearSymbol=function(t){return this._sendRequest("depth_clear_symbol",[t])},V.prototype.depthSetScale=function(t,e){return this._sendRequest("depth_set_scale",[t,e])},V.prototype.chartCreateSession=function(t,e){return this._sendRequest("chart_create_session",[t,e])},V.prototype.chartDeleteSession=function(t){return this._sendRequest("chart_delete_session",[t])},V.prototype.createSession=function(t,e){this._sessions[t]=e,this._notificationHandlers[t]={},this.connected()&&this._isAuthTokenLoaded&&e.onMessage({method:"connected",params:[]})},V.prototype.removeSession=function(t){delete this._sessions[t],delete this._notificationHandlers[t]},V.prototype.connected=function(){return!!this._isConnected}, V.prototype._bindSocketEvents=function(){var t=this;this.connectDfd=new Promise((function(e,o){t._wsBackendConnection.on("connect",(function(){t._onConnect(),e()})),t._wsBackendConnection.on("message",t._onMessage.bind(t)),t._wsBackendConnection.on("disconnect",(function(){t._authTokenDfd&&(t._authTokenDfd=null),delete t._isConnected,t.studyCounter=0,t._notifySessions({method:"disconnected",params:[]}),delete t._metadataCallback,t._disconnectCount=(t._disconnectCount||0)+1,t._wsBackendConnection.isConnected()&&(t._telemetryDisconnectTimeout=setTimeout((function(){h.sendChartReport("disconnect")}),5e3),t._wsBackendConnection.isMaxReconnects()&&(t._notifySessions({method:"reconnect_bailout",params:[]}),o(),h.sendChartReport("reconnect_bailout")))}))}))},V.prototype.serverTimeOffset=function(){return this._serverTimeOffset?this._serverTimeOffset:0},V.disconnectReason=function(t){return 1e3===t?"Normal closure, meaning that the purpose for which the connection was established has been fulfilled.":1001===t?'An endpoint is "going away", such as a server going down or a browser having navigated away from a page.':1002===t?"An endpoint is terminating the connection due to a protocol error":1003===t?"An endpoint is terminating the connection because it has received a type of data it cannot accept (e.g., an endpoint that understands only text data MAY send this if it receives a binary message).":1004===t?"Reserved. The specific meaning might be defined in the future.":1005===t?"No status code was actually present.":1006===t?"The connection was closed abnormally, e.g., without sending or receiving a Close control frame":1007===t?"An endpoint is terminating the connection because it has received data within a message that was not consistent with the type of the message (e.g., non-UTF-8 [http://tools.ietf.org/html/rfc3629] data within a text message).":1008===t?'An endpoint is terminating the connection because it has received a message that "violates its policy". This reason is given either if there is no other sutible reason, or if there is a need to hide specific details about the policy.':1009===t?"An endpoint is terminating the connection because it has received a message that is too big for it to process.":1010===t?"An endpoint (client) is terminating the connection because it has expected the server to negotiate one or more extension, but the server didn't return them in the response message of the WebSocket handshake.
Specifically, the extensions that are needed are: "+event.reason:1011===t?"A server is terminating the connection because it encountered an unexpected condition that prevented it from fulfilling the request.":1015===t?"The connection was closed due to a failure to perform a TLS handshake (e.g., the server certificate can't be verified).":"Unknown reason"},V.prototype._getAuthTokenDfd=function(t){if(this._loadNewBars)return Promise.resolve("load_new_token");if(f.enabled("widget")||-1!==window.location.search.indexOf("widget_token")||-1!==window.location.hash.indexOf("widget_token")){ var e=window.TradingView&&window.TradingView.widgetCustomer||"";return Promise.resolve(U[e]||"widget_user_token")}if(E("any")){if(!window.is_authenticated)return Promise.resolve("widget_user_token-mobile-app");if(window.shopConf&&!window.user.is_pro&&!window.shopConf.offers.length)return Promise.resolve("widget_user_token-mobile-app-free")}if(!window.is_authenticated)return Promise.resolve("unauthorized_user_token");var o=this;if(!o._authTokenManager){var n=new u;o._authTokenManager=n,o._authTokenManager.invalidated.subscribe(null,(function(t){o._authTokenManager.get().then((function(t){t&&o.connected()&&o._sendRequest("set_auth_token",[t])}))}))}return o._authTokenManager.get(t)},V.prototype._onConnect=function(){if(!this.connected()){this._trafficStats.sinceConnect=0,this._isAuthTokenLoaded=!1;var t=this;this._connectOnlyOptions=this._connectOnlyOptions||{},this._authTokenDfd=this._getAuthTokenDfd(this._connectOnlyOptions.tokenGrabSession),this._connectOnlyOptions={};var e=this._wsBackendConnection.getConnectionStart(),o=this._wsBackendConnection.getConnectionDuration();if(this._changeHandlerToJson(),this.sessionid=this._wsBackendConnection.getSessionId(),this.sessionid&&!this._isConnected){this._pendingMessagesQueue=[],this._sendingQueuedRequestsCount=0,this._isConnected=!0;var n=JSON.parse(this.sessionid),s=this._wasConnectedAtLeastOnce?B.Reconnect:B.Connect;this._wasConnectedAtLeastOnce=!0,F().then((function(t){null!==t&&t.trackBackendSession(s,n.session_id)})),this._sendLowQualityModeIfEnabled(),this._switchWSProtocol(),this._metadataServerHash=n.studies_metadata_hash||null;try{var a=n.timestamp-(new Date).valueOf()/1e3;this._serverTimeOffset=a}catch(c){this._serverTimeOffset=0}if(x.logInfo("Time shift with server:"+Math.round(this._serverTimeOffset)+" seconds."),this._authTokenDfd){this._sendingQueuedRequestsCount+=1,x.logInfo("Wait for auth token before send messages");var l=this._authTokenDfd;l.then((function(e){null!==t._authTokenDfd&&t._authTokenDfd===l?(x.logNormal("Auth token request is finished, token: "+Boolean(e)),t._authTokenDfd=null,e&&t._pendingMessagesQueue.unshift({method:"set_auth_token",args:[e]}),t._onSendingQueueRequestFinished(),t._isAuthTokenLoaded=!0,t._notifySessions({method:"connected",params:[]})):x.logNormal("Comes auth token after requesting new token or after socket disconnected")})).catch((function(t){x.logNormal(j(t))}))}else x.logWarn("Deferred auth token object is not valid"),this._isAuthTokenLoaded=!0;TradingView.WEB_SOCKET_WAS_CONNECTED=!0,h.setSessionInfo(this.sessionid),h.sendChartReport("websocket_connected"),h.sendChartReport("websocket_connection_time_frame",{value:o}),h.timeCounters.series.wsConnected=e+o,h.sendChartReport("reconnect_count_frame",{value:this._wsBackendConnection.getReconnectCount()}),h.sendChartReport("redirect_count_frame",{value:this._wsBackendConnection.getRedirectCount()}),!i&&window.performance&&window.performance.timing&&window.performance.timing.requestStart>r&&(i=!0,h.sendChartReport("before_websocket_connection_time_frame",{ value:e-window.performance.timing.requestStart})),this._wsBackendConnection.resetCounters(),clearTimeout(this._telemetryDisconnectTimeout)}}},V.prototype.connect=function(t){this._connectOnlyOptions=t,this._wsBackendConnection.isConnected()||this._wsBackendConnection.isConnecting()||this._wsBackendConnection.connect()},V.prototype.disconnect=function(t){return this._wsBackendConnection.disconnect(),!0},V.prototype.switchTimezone=function(t,e){return this._sendRequest("switch_timezone",[t,e])},V.prototype.resolveSymbol=function(t,e,o,n){return h.timeCounters.series["resolve_symbol_"+t]=Date.now(),this._notificationHandlers[t][e]=new c(n,e),this._sendRequest("resolve_symbol",[t,e,o])},V.prototype.createSeries=function(t,e,o,n,i,r,s){return this._notificationHandlers[t][e]=new c(s,e),h.timeCounters.series.marks.push("create_series_"+t),this._sendRequest("create_series",[t,e,o,n,i,r])},V.prototype.removeSeries=function(t,e,o){return this._notificationHandlers[t][e]=new c(o,e),this._sendRequest("remove_series",[t,e])},V.prototype.modifySeries=function(t,e,o,n,i,r){return this._notificationHandlers[t][e]=new c(r,e),this._sendRequest("modify_series",[t,e,o,n,i])},V.prototype.requestMoreData=function(t,e,o,n){return this._notificationHandlers[t][e]=new c(n,e),this._sendRequest("request_more_data",[t,e,o])},V.prototype.requestMetadata=function(t,e,o){var n=this;if(n._metadataCallback)n._metadataCallback.handlers.push(o);else{var i=f.enabled("widget"),r=i?"studies_metadata_widget":"studies_metadata",s=[];n._metadataCallback=function(t){n._metadataCallback=null,TVLocalForage.setItem(r,TradingView.clone(t)).then((function(){if(x.logNormal("Updated studies_metadata cache"),!i){var t=pro.hash();TVLocalForage.setItem("pro_hash",TradingView.clone(t)).then((function(){x.logNormal("Updated pro_hash cache")})).catch((function(t){x.logError("Cannot update pro_hash cache, reason: "+t)}))}})).catch((function(t){x.logError("Cannot update studies_metadata cache, reason: "+t)}));for(var e=0;e0:o.session){var l="json"===this._protocol?o[0]:o.session;l.startsWith("qs_")?N.logNormal("send: "+a):l.startsWith("cs_")&&A.logNormal("send: "+a)}else x.logNormal("send: "+a);var c=this._dataHandleModule.prepareEncodeMessage(t,o);return this._wsBackendConnection.send(c)},V.prototype._onMessage=function(t){this._calcTrafficStats(t);var e=this.unpack(t);if("protocol_switched"===e.method&&e.params[0]!==this._protocol)return x.logInfo("Protocol changing accepted. Change handler and try flush queue"),this._changeHandlerToProtobuf(),void this._onSendingQueueRequestFinished();this._dispathNotification(e,t)},V.prototype._onSendingQueueRequestFinished=function(){this._sendingQueuedRequestsCount-=1,x.logInfo("Sending queue request finished. Remaining pending requests="+this._sendingQueuedRequestsCount),this._sendingQueuedRequestsCount<0&&x.logError("Invalid queue state="+this._sendingQueuedRequestsCount),0===this._sendingQueuedRequestsCount&&this._flushPendingMessages()},V.prototype._convertTimescaleResponse=function(t){return this._dataHandleModule.convertTimescaleResponse(t)},V.prototype._appendDuration=function(t,e){return t?e+", duration: "+Math.round(Date.now()/1e3-t+this._serverTimeOffset)+"s":e},V.prototype._dispathNotification=function(t,e){var o=t.params.shift();if(this._notificationHandlers[o]){var i=t.params[0];if("symbol_resolved"===t.method){var s=t.params[1].full_name;h.sendChartReport("symbol_resolved",{count:1,additional:{symbol:s}});var a=h.timeCounters.series["resolve_symbol_"+o];if("number"==typeof a){var l=Date.now()-a,c=t.params[t.params.length-1];if(c){var u=Math.round(1e3*(c-this.serverTimeOffset()))-a,d=u>0&&l-u>=H;h.sendChartReport("symbol_resolve_server_time_frame",{value:d?u:l,additional:{symbol:s}})}h.sendChartReport("symbol_resolve_time_frame",{value:l,additional:{symbol:s}})}}if(["series_error","series_completed"].includes(t.method)&&h.timeCounters.series.marks.length>0){var p="create_series_"+o,_=h.timeCounters.series.marks.indexOf(p);_>=0&&h.timeCounters.series.marks.splice(_,1)}if(h.timeCounters.series.wsConnected&&"series_error"===t.method&&0===h.timeCounters.series.marks.length&&delete h.timeCounters.series.wsConnected,h.timeCounters.series.wsConnected&&"series_completed"===t.method&&(h.sendChartReport("first_series_full_time_frame",{value:Date.now()-h.timeCounters.series.wsConnected}),delete h.timeCounters.series.wsConnected,h.timeCounters.series.marks=[],!n&&window.performance&&window.performance.timing&&window.performance.timing.requestStart>r&&(n=!0,h.sendChartReport("page_full_load_time_frame",{value:Date.now()-window.performance.timing.requestStart}))),o.startsWith("cs_")){ var f="recv: "+("json"===this._protocol?e:JSON.stringify({m:t.m,s:o,p:t.p}));"data_update"===t.method?(f=T.isHighRateEnabled()?f:f.slice(0,500),k.logNormal(this._appendDuration(t.time,f))):"study_loading"===t.method?I.logNormal(this._appendDuration(t.time,f)):"tickmark_update"===t.method?O.logNormal(this._appendDuration(t.time,f)):A.logNormal(this._appendDuration(t.time,f))}if(o.startsWith("qs_"))("quote_symbol_data"===t.method?D.logNormal:N.logNormal)("recv: "+("json"===this._protocol?e:JSON.stringify({m:t.m,s:o,p:t.p})));switch(t.method){case"timescale_update":var g=this._dataHandleModule.getTimescaleObjects(t),m=this._dataHandleModule.getTimescaleChangeset(t);(v=this._convertTimescaleResponse(m)).clear=0===v.changes.length&&0===v.index_diff.length&&0===v.marks.length,this._sessions[o].onMessage({method:"timescale_update",params:v}),this._dataHandleModule.prepareDataUpdateObjects(o,g,function(t,e,o){this._invokeNotificationHandler(t,e,o)}.bind(this));break;case"tickmark_update":var v;(v=this._convertTimescaleResponse(t.params[0])).changes=[],this._sessions[o].onMessage({method:"timescale_update",params:v});break;case"data_update":g=this._dataHandleModule.getDataUpdateObjects(t);this._dataHandleModule.prepareDataUpdateObjects(o,g,function(t,e,o){this._invokeNotificationHandler(t,e,o)}.bind(this));break;case"index_update":for(var y in t.params[0]){var b={method:"index_update",params:t.params[0][y]};this._invokeNotificationHandler(o,y,b)}break;case"critical_error":x.logInfo(new Date+" critical_error session:"+this.sessionid+" reason:"+t.params[0]),h.sendChartReport("critical_error"),this._sessions[o].onMessage({method:"critical_error",params:t.params});break;case"quote_symbol_data":case"quote_list_fields":case"depth_symbol_error":case"depth_symbol_success":case"dd":case"dpu":case"depth_bar_last_value":this._sessions[o].onMessage({method:t.method,params:t.params});break;case C.point:case C.resolutions:case C.endOfData:case C.instanceId:this._sessions[o].onMessage(t);break;default:this._invokeNotificationHandler(o,i,t)}}},V.prototype._isStrategy=function(t,e){var o=this._notificationHandlers[t][e];return o&&o.handler&&o.handler.isTVScriptStrategy},V.prototype._invokeNotificationHandler=function(t,e,o){if(void 0!==e){var n=this._notificationHandlers[t][e];"series_deleted"!==o.method&&"study_deleted"!==o.method&&0!==o.method.indexOf("replay_")||delete this._notificationHandlers[t][e],void 0!==n&&this._invokeHandler(n.handler,o)}},V.prototype._notifySessions=function(t){for(var e in this._sessions){if(!this._sessions.hasOwnProperty(e))return;var o=this._sessions[e];"function"==typeof o.onMessage&&o.onMessage(t)}},V.prototype.unpack=function(t){return this._dataHandleModule.unpack(t)},V.prototype._symbolSearchRequest=null,V.prototype.searchSymbols=function(t,e,o,n,i,r,s,a,l,c){var u=this;this._symbolSearchRequest&&this._symbolSearchRequest.abort();var p=location.protocol+"//"+window.SS_HOST;d.isProd()?p+="/symbol_search/":p+="/local_search/",window.SS_URL&&(p=window.SS_URL);var _={text:t,exchange:e,type:o,hl:i,lang:n} ;window.SS_DOMAIN_PARAMETER&&(_.domain=window.SS_DOMAIN_PARAMETER),r&&(_.strict=1),o===g.types.QUANDL&&(p="https://quandlapi.tradingview.com/api/v3/datasets.json",_={query:t,database_code:e}),s&&(_.broker=s,a&&(_.tradable=!0),l&&(_.unhide=l));var f=Object.keys(_).map((function(t){return encodeURIComponent(t)+"="+encodeURIComponent(_[t])})).join("&"),m=new XMLHttpRequest;m.open("GET",p+"?"+f);var v=(new Date).getTime();function y(){var t=(new Date).getTime()-v;h.sendChartReport("symbol_search_time_frame",{value:t})}function b(){y(),h.sendChartReport("symbol_search_http_error"),u._symbolSearchRequest=null}m.addEventListener("load",(function(){var t=JSON.parse(m.responseText);c&&c(t),y(),h.sendChartReport("symbol_search_http_status",{value:m.status}),u._symbolSearchRequest=null})),m.addEventListener("error",b),m.addEventListener("timeout",b),this._symbolSearchRequest=m,m.send()},V.prototype.getMarks=function(t,e,o,n,i){throw Error("This method is not implemented")},V.prototype.getTimescaleMarks=function(t,e,o,n,i){throw Error("This method is not implemented")},V.prototype.getPingInfo=function(){return this._wsBackendConnection.getPingInfo()},V.prototype._calcTrafficStats=function(t){var e="protobuf"===this._protocol?t.byteLength:t.length;this._trafficStats.total+=e,this._trafficStats.sinceConnect+=e,this._trafficStats.lastChunk+=e},b(V,"TVChartApi",l,"ChartApiInterface"),window.ChartApiInstance=new V(window.WSBackendConnection),t&&t.exports&&(t.exports=V)}).call(this,o("YuTi")(t))},dTSQ:function(t,e,o){"use strict";function n(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}o.r(e),o.d(e,"regExpEscape",(function(){return n}))},eJTA:function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=o("ivNn");function i(t,e,o){return n.isNaN(e)||eo?o:Math.round(e)}function r(t,e,o){return n.isNaN(e)||eo?o:Math.round(1e4*e)/1e4}function s(t){return i(0,t,255)}function a(t){return i(0,t,255)}function l(t){return i(0,t,255)}function c(t){return r(0,t,1)}function u(t){return r(0,t,1)}function d(t){return r(0,t,1)}function h(t){return r(0,t,1)}function p(t){return r(0,t,1)}function _(t){return r(0,t,1)}function f(t){var e=t[0]/255,o=t[1]/255,n=t[2]/255,i=Math.min(e,o,n),r=Math.max(e,o,n),s=0,a=0,l=(i+r)/2;if(i===r)s=0,a=0;else{var c=r-i;switch(a=l>.5?c/(2-r-i):c/(r+i),r){case e:s=((o-n)/c+(o1&&(o-=1),o<1/6?t+6*(e-t)*o:o<.5?e:o<2/3?t+(e-t)*(2/3-o)*6:t}function m(t){var e,o,n,i=t[0],r=t[1],c=t[2];if(0===r)e=o=n=c;else{var u=c<.5?c*(1+r):c+r-c*r,d=2*c-u;e=g(d,u,i+1/3),o=g(d,u,i),n=g(d,u,i-1/3)}return[s(255*e),a(255*o),l(255*n)]}e.normalizeRedComponent=s,e.normalizeGreenComponent=a,e.normalizeBlueComponent=l,e.normalizeAlphaComponent=c,e.rgb=function(t,e,o){return[s(t),a(e),l(o)]},e.areEqualRgb=function(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]},e.rgba=function(t,e,o,n){if(Array.isArray(t)){var i=t;return n=e,[i[0],i[1],i[2],c(n)]}var r=e;return o=o||0,n=n||0, [s(t),a(r),l(o),c(n)]},e.areEqualRgba=function(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]},e.normalizeHue=u,e.normalizeHslSaturation=d,e.normalizeHsvSaturation=h,e.normalizeLightness=p,e.normalizeValue=_,e.hsl=function(t,e,o){return[u(t),d(e),p(o)]},e.areEqualHsl=function(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]},e.hsv=function(t,e,o){return[u(t),h(e),_(o)]},e.areEqualHsv=function(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]},e.rgbToHsl=f,e.hslToRgb=m,e.rgbToHsv=function(t){var e=t[0],o=t[1],n=t[2],i=e/255,r=o/255,s=n/255,a=Math.min(i,r,s),l=Math.max(i,r,s),c=l-a,u=0,d=0===l?0:c/l,h=l;if(l===a)u=0;else switch(l){case e:u=((r-s)/c+(r255)throw new Error("invalid threshold value, valid values are [0, 255]");return y(t)>=e?"white":"black"},e.tryParseRgb=M,e.parseRgb=function(t){var e=M(t);if(null!==e)return e;throw new Error("Passed color string does not match any of the known color representations")},e.tryParseRgba=L,e.parseRgba=R},ePL1:function(t,e,o){"use strict";o.r(e),o.d(e,"types",(function(){return n}));var n={ECONOMIC:"economic",QUANDL:"quandl"}},ei7k:function(t,e,o){"use strict";o.d(e,"b",(function(){return i})),o.d(e,"a",(function(){return r}));var n=o("CLNU");function i(t){return Object(n.clean)(JSON.stringify(t))}function r(t){return JSON.parse(Object(n.clean)(t,!0))}},"f+Sq":function(t,e,o){"use strict";function n(t){if(void 0===t)throw new Error("Value is undefined");return t}function i(t){if(null===t)throw new Error("Value is null");return t}Object.defineProperty(e,"__esModule",{value:!0}),e.assert=function(t,e){if(!t)throw new Error("Assertion failed"+(e?": "+e:""))},e.ensureDefined=n,e.ensureNotNull=i,e.ensure=function(t){return i(n(t))}},fgbt:function(t,e,o){"use strict";o.r(e),o.d(e,"isIDCExchangeByProductId",(function(){return n})),o.d(e,"isIDCExchange",(function(){return i}));o("bSeV");function n(t,e){void 0===e&&(e=!1);var o=window.pro,n=o.getProduct(t);return!!o.isProductDefined(n)&&(e?!!n.idc_service_codes_delay:!!n.idc_service_codes)}function i(t,e){if(void 0===e&&(e=!1),t&&t.startsWith("exchange-"))return n(t,e);var o=(t||"").toLowerCase();return window.pro.getIDCExchanges(e).includes(o)}},glKZ:function(t,e,o){"use strict";o.r(e);var n=o("mrSG"),i=(o("bf9a"),0),r=0,s=0;function a(){clearTimeout(i),clearTimeout(r),clearTimeout(s)}var l,c="tooltip-root-element";function u(){var t=document.getElementById(c);t?l=t:((l=document.createElement("div")).id=c,document.body.appendChild(l))}function d(){l&&(l.innerHTML="")}"interactive"===document.readyState?u():document.addEventListener("DOMContentLoaded",u);var h=o("Eyy1"),p={default:"",white:"theme-white","round-shadow":"theme-round-shadow"},_=Object.keys(p);var f=o("ljE9"),g=o("ei7k"),m=o("TzTt"),v=o("Ialn"),y=(o("HbRj"),o("XAms")),b=o("Wo0S");function w(t){var e=t.getAttribute("title");return e&&(Object(f.setTooltipData)(t,"text",e), t.removeAttribute("title")),Object(f.getTooltipData)(t,"text")||""}function S(t){var e,o=I.cloneNode(!0),n=D(o),i=t.content;switch(i.type){case"element":n.innerHTML="",n.appendChild(i.data);break;case"html":n.innerHTML=i.data;break;case"text":if(t.hotkey){var r=N.cloneNode(!0);r.innerText=i.data,n.appendChild(r)}else n.innerText=i.data}if(t.hotkey){var s="none"!==i.type,a=O.cloneNode(!0),l=Object(g.a)(t.hotkey),c=l.keys.map((function(t){return''+t+""}));a.innerHTML=(e=l.text).format.apply(e,c).replace(/\s\+\s/g,'+'),n.classList.add(b["common-tooltip__body--with-hotkey"]),s&&a.classList.add(b["common-tooltip__hotkey-block--divider"]),n.appendChild(a)}return o.addEventListener("contextmenu",y.a),o}function C(t,e){var o=e.rect;if(o){!function(t,e){var o,n=_.includes(e)?p[e]:"";(o=t.classList).remove.apply(o,_.map((function(t){return p[t]})).filter((function(t){return!!t}))),n&&!t.classList.contains(n)&&t.classList.add(n)}(t,e.colorTheme||"default"),e.addClass&&t.classList.add(e.addClass);var n=D(t);n.classList.toggle(b["common-tooltip__body--width_wide"],Boolean(e.wide)),n.classList.toggle(b["common-tooltip__body--no-padding"],Boolean(e.noPadding)),n.classList.toggle(b["common-tooltip__body--width_narrow"],Boolean(e.narrow)),n.classList.toggle(b["common-tooltip__body--no-buttons"],!0),t.classList.toggle(b["common-tooltip--no-pointer-events"],!Modernizr.pointerevents),n.style.left=T(0),n.style.width=T(n.clientWidth+(Boolean(e.noPadding)?0:2));var i=document.body.clientWidth,r=window.innerHeight,s=e.vertical,a=e.extendMargin||s&&o.w<20||!s&&o.h<20;t.classList.toggle(b["common-tooltip--farther"],a),t.classList.toggle(b["common-tooltip--vertical"],s),t.classList.toggle(b["common-tooltip--horizontal"],!s);var l=t.querySelector("."+b["common-tooltip__ear-holder"]),c="";if(s){t.style.left=T(o.x+o.w),t.style.top=T(o.y-(t.offsetHeight-o.h)/2);var u=(t.querySelector(":last-child")||n).getBoundingClientRect().right+10>i;t.classList.toggle(b["common-tooltip--direction_reversed"],u),t.classList.toggle(b["common-tooltip--direction_normal"],!u),c=u?"after":"before",Object(v.isRtl)()?(c=e.otr?"after":c,c=e.otl?"before":c):(c=e.otr?"before":c,c=e.otl?"after":c),l.classList.toggle(b["common-tooltip__ear-holder--before"],"before"===c),l.classList.toggle(b["common-tooltip__ear-holder--after"],"after"===c),"after"===c&&(t.style.left="auto",t.style.right=T(i-o.x))}else{var d=o.x-(n.offsetWidth-o.w)/2,h=i-10-t.offsetWidth,f=Math.max(10,Math.min(d,h));t.style.bottom=T(r-o.y),t.style.left=T(f);u=h\n\t\t
\n\t\t\t
\n\t\t
\n\t\t
\n\t
\n',A='\n\t
\n',k='\n\t
\n',I=Object(m.parseHtmlElement)(x),O=Object(m.parseHtmlElement)(A),N=Object(m.parseHtmlElement)(k);function D(t){return t.querySelector("."+b["common-tooltip__body"])}var M=o("lxNp");o.d(e,"showOnElement",(function(){return B})),o.d(e,"show",(function(){return j})),o.d(e,"updateTooltipText",(function(){return U})),o.d(e,"hide",(function(){return H}));var L=!1,R=null,P=null;Modernizr.mobiletouch||document.addEventListener("mouseover",(function(t){for(var e=t.target,o=t.currentTarget,n=function(t,e,o){var n=[];for(;t&&t!==e;)t.classList&&t.classList.contains(o)&&n.push(t),t=t.parentElement||(i=t.parentNode)&&(i.nodeType===Node.ELEMENT_NODE?i:null);var i;return n}(e,o,"apply-common-tooltip"),i=function(e){if("buttons"in t){if(1&t.buttons)return"continue"}else if(1===t.which)return"continue";var o=function(){return B(e)};if(o()){var n=function(){e.removeEventListener("common-tooltip-update",o),e.removeEventListener("mouseleave",n),e.removeEventListener("mousedown",n),document.removeEventListener("scroll",n),P&&(P.destroy(),P=null),H()};return e.addEventListener("common-tooltip-update",o),e.addEventListener("mouseleave",n),e.addEventListener("mousedown",n),document.addEventListener("scroll",n),null===P&&(P=Object(M.createGroup)({desc:"Tooltip"})).add({desc:"Hide",hotkey:27,handler:n}),"break"}},r=0,s=n;r0&&(this._value=t), this._listeners=[]}o.prototype.value=function(){return this._owner?this._owner._value:this._value},o.prototype.setValue=function(t,e){var o=this._owner?this._owner:this;if("function"==typeof o.hook&&(t=o.hook(t)),o.writeLock)return o._value;if(!e&&o._value===t&&o.hasOwnProperty("_value"))return t;o._value=t;for(var n=o._listeners.slice(),i=0,r=0;r1||this._options.allowDownsampling?t.devicePixelRatio:1},enumerable:!0,configurable:!0}),t.prototype.subscribeCanvasConfigured=function(t){this._canvasConfiguredListeners.push(t)},t.prototype.unsubscribeCanvasConfigured=function(t){this._canvasConfiguredListeners=this._canvasConfiguredListeners.filter((function(e){return e!=t}))},t.prototype._configureCanvas=function(){var t=this.pixelRatio;this.canvas.style.width=this._canvasSize.width+"px",this.canvas.style.height=this._canvasSize.height+"px",this.canvas.width=this._canvasSize.width*t,this.canvas.height=this._canvasSize.height*t,this._emitCanvasConfigured()},t.prototype._emitCanvasConfigured=function(){var t=this;this._canvasConfiguredListeners.forEach((function(e){return e.call(t)}))},t.prototype._installResolutionListener=function(){if(null!==this._resolutionMediaQueryList)throw new Error("Resolution listener is already installed");var t=this.canvas.ownerDocument.defaultView;if(null==t)throw new Error("No window is associated with the canvas");var e=t.devicePixelRatio;this._resolutionMediaQueryList=t.matchMedia("all and (resolution: "+e+"dppx)"),this._resolutionMediaQueryList.addListener(this._resolutionListener)},t.prototype._uninstallResolutionListener=function(){null!==this._resolutionMediaQueryList&&(this._resolutionMediaQueryList.removeListener(this._resolutionListener),this._resolutionMediaQueryList=null)},t.prototype._reinstallResolutionListener=function(){this._uninstallResolutionListener(),this._installResolutionListener()},t.prototype._onResolutionChanged=function(){this._configureCanvas(),this._reinstallResolutionListener()},t}(),s=o("Eyy1"),a=o("Ialn");o.d(e,"Size",(function(){return l})),o.d(e,"getCanvasDevicePixelRatio",(function(){return c})),o.d(e,"getContext2D",(function(){return u})),o.d(e,"getPrescaledContext2D",(function(){return d})),o.d(e,"getPretransformedContext2D",(function(){return h})),o.d(e,"hardResizeCanvas",(function(){return p})),o.d(e,"resizeCanvasPreservingContent",(function(){return _})),o.d(e,"fillRect",(function(){return f})), o.d(e,"clearRect",(function(){return g})),o.d(e,"drawScaled",(function(){return m})),o.d(e,"createDisconnectedCanvas",(function(){return v})),o.d(e,"createDisconnectedBoundCanvas",(function(){return y})),o.d(e,"createBoundCanvas",(function(){return w})),o.d(e,"calcTextHorizontalShift",(function(){return S}));var l=function(){function t(t,e){this.w=t,this.h=e}return t.prototype.equals=function(t){return this.w===t.w&&this.h===t.h},t}();function c(t){var e,o;return Math.max(1,(null===(o=null===(e=t.ownerDocument)||void 0===e?void 0:e.defaultView)||void 0===o?void 0:o.devicePixelRatio)||1)}function u(t){var e=Object(s.ensureNotNull)(t.getContext("2d"));return e.setTransform(1,0,0,1,0,0),e}function d(t){var e=Object(s.ensureNotNull)(t.getContext("2d")),o=c(t);return e.setTransform(o,0,0,o,0,0),e}function h(t){var e=Object(s.ensureNotNull)(t.canvas.getContext("2d"));return e.setTransform(t.pixelRatio,0,0,t.pixelRatio,0,0),e.translate(.5,.5),e}function p(t,e){t.resizeCanvas({width:0,height:0}),t.resizeCanvas({width:e.w,height:e.h})}function _(t,e){var o=y(document,e),n=d(o.canvas);return n.save(),n.setTransform(1,0,0,1,0,0),n.drawImage(t.canvas,0,0,t.canvasSize.width*t.pixelRatio,t.canvasSize.height*t.pixelRatio),n.restore(),o}function f(t,e,o,n,i,r){t.save(),t.translate(-.5,-.5),t.fillStyle=r,t.fillRect(e,o,n,i),t.restore()}function g(t,e,o,n,i,r){t.save(),t.translate(-.5,-.5),t.globalCompositeOperation="copy",t.fillStyle=r,t.fillRect(e,o,n,i),t.restore()}function m(t,e,o){t.save(),t.scale(e,e),o(),t.restore()}function v(t,e,o){var n=b(t);return void 0===o&&(o=c(n)),n.width=e.w*o,n.height=e.h*o,n}function y(t,e){var o=i(b(t),{allowDownsampling:!1});return o.resizeCanvas({width:e.w,height:e.h}),o}function b(t){var e=t.createElement("canvas");return function(t){t.style.userSelect="none",t.style.webkitUserSelect="none",t.style.msUserSelect="none",t.style.MozUserSelect="none",t.style.webkitTapHighlightColor="transparent"}(e),e}function w(t,e){var o=b(Object(s.ensureNotNull)(t.ownerDocument));t.appendChild(o);var n=i(o,{allowDownsampling:!1});return n.resizeCanvas({width:e.w,height:e.h}),n}function S(t,e){return"center"===t.textAlign?0:Object(a.isRtl)()?"start"===t.textAlign||"right"===t.textAlign?e:0:"start"===t.textAlign||"left"===t.textAlign?0:e}},ivNn:function(t,e,o){"use strict";function n(t){return Math.round(1e10*t)/1e10}Object.defineProperty(e,"__esModule",{value:!0}),e.isNumber=function(t){return"number"==typeof t&&isFinite(t)},e.isInteger=function(t){return"number"==typeof t&&t%1==0},e.isNaN=function(t){return!(t<=0||t>0)},e.fixComputationError=n,e.alignTo=function(t,e){var o=t/e,i=Math.floor(o),r=o-i;return r>2e-10?n(r>.5?(i+1)*e:i*e):t}},j1f4:function(t,e,o){"use strict";o.r(e);var n=o("K9GE");for(var i in n)"default"!==i&&function(t){o.d(e,t,(function(){return n[t]}))}(i)},j6W2:function(t,e,o){"use strict";o.r(e),o.d(e,"initGA",(function(){return s})),o.d(e,"trackPageview",(function(){return a})),o.d(e,"trackTiming",(function(){return l}));o("bSeV");var n=o("h7NA"),i=o("rzpF"),r=!1;function s(){if(!r){ Object(n.updateInitData)();var t=Object(n.getInitData)();if(t.gaId){r=!0,Object(i.a)("https://www.googletagmanager.com/gtag/js?id="+Object(n.getInitData)().gaId),window.dataLayer=window.dataLayer||[],window.gtag=function(){window.dataLayer.push(arguments)},window.gtag("js",new Date);var e={optimize_id:t.optimizeId};t.gaGdpr&&(e.anonymize_ip=!0),t.gaVars&&window.gtag("set",t.gaVars),window.gtag("config",t.gaId,e)}}}function a(t){s();var e=Object(n.getInitData)();window.gtag("config",e.gaId,{page_path:t})}function l(t,e,o,n){s(),window.gtag("event","timing_complete",{name:e,value:o,event_category:t,event_label:n})}},jFln:function(t,e,o){"use strict";var n=o("Hr11"),i=n.greaterThan,r=n.lessThan,s=window.CanvasEx=o("8Uy/");s.computeDashPattern=function(t){return[[t.lineWidth,2*t.lineWidth],[5*t.lineWidth,6*t.lineWidth],[6*t.lineWidth,6*t.lineWidth],[t.lineWidth,4*t.lineWidth],[2*t.lineWidth,t.lineWidth]][t.lineStyle-1]},s.drawLine=function(t,e,o,n,i){isFinite(e)&&isFinite(n)&&isFinite(o)&&isFinite(i)&&(t.lineStyle!==s.LINESTYLE_SOLID?s.drawDashedLine(t,e,o,n,i):s.drawSolidLine(t,e,o,n,i))},s.drawArrow=function(t,e,o,n,i,r){if(r=void 0===r?2:r,isFinite(e)&&isFinite(n)&&isFinite(o)&&isFinite(i)){var s=Math.round(r/2);t.beginPath(),t.moveTo(n,i),t.lineTo(e,o),t.moveTo(e+r,o+r),t.lineTo(e-r,o+r),t.moveTo(e-s,o+s),t.lineTo(e+s,o+s),t.stroke()}},s.drawSolidLine=function(t,e,o,n,i){t.beginPath(),t.moveTo(e,o),t.lineTo(n,i),t.stroke()},s.setLineStyle=function(t,e){t.lineStyle=e;var o=[];e!==s.LINESTYLE_SOLID&&(o=s.computeDashPattern(t)),s.setLineDash(t,o)},s.setLineDash=function(t,e){"function"==typeof t.setLineDash?t.setLineDash(e):void 0!==t.mozDash?t.mozDash=e:void 0!==t.webkitLineDash&&(t.webkitLineDash=e)},s.drawPoly=function(t,e,o){t.beginPath(),t.moveTo(e[0].x,e[0].y);for(var n=0;n0&&(c.thereYet=r, c.cap=Math.max),e-n>0&&(l.thereYet=r,l.cap=Math.max),t.moveTo(e,o);for(var u=e,d=o,h=0,p=!0;!l.thereYet(u,n)||!c.thereYet(d,s);){var _=Math.atan2(s-o,n-e),f=a[h];u=l.cap(n,u+Math.cos(_)*f),d=c.cap(s,d+Math.sin(_)*f),p?t.lineTo(u,d):t.moveTo(u,d),h=(h+1)%a.length,p=!p}},s.setFont=function(t,e){if(t.font!==e)try{t.font=e}catch(o){}},"undefined"!=typeof CanvasRenderingContext2D&&(CanvasRenderingContext2D.prototype.setFont=function(t){s.setFont(this,t)},CanvasRenderingContext2D.prototype.lineStyle=s.LINESTYLE_SOLID),t.exports=s},jofe:function(t,e,o){"use strict";function n(){var t,e;return{promise:new Promise((function(o,n){t=o,e=n})),reject:e,resolve:t}}o.r(e),o.d(e,"createDeferredPromise",(function(){return n}))},"k9/m":function(t,e,o){"use strict";o.r(e),o.d(e,"PlotRowSearchMode",(function(){return n})),o.d(e,"PlotList",(function(){return c})),o.d(e,"mergeMinMax",(function(){return u})),o.d(e,"mergePlotRows",(function(){return d}));var n,i=o("Eyy1"),r=o("Y7w9"),s=o("tqok"),a=o("uOxu"),l=Object(a.getLogger)("Chart.PlotList");!function(t){t[t.NearestLeft=-1]="NearestLeft",t[t.Exact=0]="Exact",t[t.NearestRight=1]="NearestRight"}(n||(n={}));var c=function(){function t(t,e){void 0===t&&(t=null),void 0===e&&(e=null),this._items=[],this._start=0,this._end=0,this._shareRead=!1,this._minMaxCache=new Map,this._rowSearchCache=new Map,this._rowSearchCacheWithoutEmptyValues=new Map,this._plotFunctions=t||new Map,this._emptyValuePredicate=e}return t.prototype.clear=function(){this._items=[],this._start=0,this._end=0,this._shareRead=!1,this._minMaxCache.clear(),this._rowSearchCache.clear(),this._rowSearchCacheWithoutEmptyValues.clear()},t.prototype.first=function(){return this.size()>0?this._items[this._start]:null},t.prototype.last=function(){return this.size()>0?this._items[this._end-1]:null},t.prototype.firstIndex=function(){return this.size()>0?this._indexAt(this._start):null},t.prototype.lastIndex=function(){return this.size()>0?this._indexAt(this._end-1):null},t.prototype.size=function(){return this._end-this._start},t.prototype.isEmpty=function(){return 0===this.size()},t.prototype.contains=function(t){return null!==this._search(t,n.Exact)},t.prototype.valueAt=function(t){var e=this.search(t);return null!==e?e.value:null},t.prototype.add=function(t,e){if(this._shareRead)return l.logDebug("add: readonly collection modification attempt"),!1;var o={index:t,value:e},i=this._search(t,n.Exact);return this._rowSearchCache.clear(),this._rowSearchCacheWithoutEmptyValues.clear(),null===i?(this._items.splice(this._lowerbound(t),0,o),this._start=0,this._end=this._items.length,!0):(this._items[i]=o,!1)},t.prototype.search=function(t,e,o){void 0===e&&(e=n.Exact);var i=void 0!==o?this._rowSearchCacheWithoutEmptyValues:this._rowSearchCache,r=void 0!==o?1e4*(e+1)+o:e,s=i.get(t);if(void 0!==s){var a=s.get(r);if(void 0!==a)return a}var l=this._search(t,e,o);if(null===l)return null;var c={index:this._indexAt(l),value:this._valueAt(l)};return void 0===s&&(s=new Map,i.set(t,s)),s.set(r,c),c},t.prototype.fold=function(t,e){ for(var o=e,n=this._start;n=o;--n){var i=this._indexAt(n),r=this._valueAt(n);if(t(i,r))return{index:i,value:r}}return null},t.prototype.each=function(t){for(var e=this._start;ethis._items[this._items.length-1].index?this._append(t):1===t.length&&t[0].index===this._items[this._items.length-1].index?(this._updateLast(t[0]),t[0]):this._merge(t)},t.prototype.addTail=function(t,e){void 0===e&&(e=!1);var o=0;e&&this._end-this._start>0&&(o=1,this._items[this._end-this._start-1].value=t[0].value);for(var n=o;n0?o[0]:null},t.prototype.state=function(){return{start:this._start,end:this._end,data:this._items,shareread:this._shareRead}},t.prototype.restoreState=function(t){t?(this._start=t.start,this._end=t.end,this._shareRead=t.shareread,this._items=t.data,this._minMaxCache.clear(),this._rowSearchCache.clear(),this._rowSearchCacheWithoutEmptyValues.clear()):this.clear()},t.prototype._indexAt=function(t){return this._items[t].index},t.prototype._valueAt=function(t){return this._items[t].value},t.prototype._length=function(){return this._items.length},t.prototype._search=function(t,e,o){var i=this._bsearch(t);if(null===i&&e!==n.Exact)switch(e){case n.NearestLeft:return this._searchNearestLeft(t,o);case n.NearestRight:return this._searchNearestRight(t,o);default:throw new TypeError("Unknown search mode")}if(void 0===o||null===i||e===n.Exact)return i;switch(e){case n.NearestLeft:return this._nonEmptyNearestLeft(i,o);case n.NearestRight:return this._nonEmptyNearestRight(i,o);default:throw new TypeError("Unknown search mode")}},t.prototype._nonEmptyNearestRight=function(t,e){for(var o=Object(i.ensure)(this._emptyValuePredicate),n=Object(i.ensure)(e);t=this._start&&o(this._valueAt(t),n);)t-=1;return tthis._start&&(o-=1);var n=o!==this._end&&this._indexAt(o)t}),this._start,this._end)},t.prototype._plotMinMax=function(t,e,o){var n=null,i=this._plotFunctions.get(o);if(void 0===i)throw new Error('Plot "'+o+'" is not registered');for(var r=t;rn.max&&(n.max=s)))}return n},t.prototype._invalidateCacheForRow=function(t){var e=Math.floor(t.index/30);this._minMaxCache.forEach((function(t){return t.delete(e)}))},t.prototype._prepend=function(t){return Object(i.assert)(!this._shareRead,"collection should not be readonly"),Object(i.assert)(0!==t.length,"plotRows should not be empty"),this._rowSearchCache.clear(),this._rowSearchCacheWithoutEmptyValues.clear(),this._minMaxCache.clear(),this._items=t.concat(this._items),this._start=0, this._end=this._items.length,t[0]},t.prototype._append=function(t){return Object(i.assert)(!this._shareRead,"collection should not be readonly"),Object(i.assert)(0!==t.length,"plotRows should not be empty"),this._rowSearchCache.clear(),this._rowSearchCacheWithoutEmptyValues.clear(),this._minMaxCache.clear(),this._items=this._items.concat(t),this._start=0,this._end=this._items.length,t[0]},t.prototype._updateLast=function(t){Object(i.assert)(!this.isEmpty(),"plot list should not be empty");var e=this._items[this._end-1];Object(i.assert)(e.index===t.index,"last row index should match new row index"),this._invalidateCacheForRow(t),this._rowSearchCache.delete(t.index),this._rowSearchCacheWithoutEmptyValues.delete(t.index),this._items[this._end-1]=t},t.prototype._merge=function(t){return Object(i.assert)(0!==t.length,"plot rows should not be empty"),this._rowSearchCache.clear(),this._rowSearchCacheWithoutEmptyValues.clear(),this._minMaxCache.clear(),this._items=d(this._items,t),this._start=0,this._end=this._items.length,t[0]},t.prototype._minMaxOnRangeCachedImpl=function(t,e,o){if(this.isEmpty())return null;var n=null,r=Object(i.ensureNotNull)(this.firstIndex()),s=Object(i.ensureNotNull)(this.lastIndex()),a=Math.max(t,r),l=Math.min(e,s),c=30*Math.ceil(a/30),d=Math.max(c,30*Math.floor(l/30));n=u(n,this._minMaxOnRange(a,Math.min(c,e,l),o));var h=this._minMaxCache.get(o);void 0===h&&(h=new Map,this._minMaxCache.set(o,h));for(var p=Math.max(c+1,a);pe[s].index?s++:(r++,s++,i--);return i}(t,e),n=new Array(o),i=0,r=0,s=t.length,a=e.length,l=0;ie[r].index?(n[l]=e[r],r++):(n[l]=e[r],i++,r++),l++;for(;i16)throw new TypeError("invalid length");if(0===e)return t.toString();return("0000000000000000"+t.toString()).slice(-e)}var h=function(){function t(t,e,o,n){if(this.type="price",e||(e=1),Object(i.isNumber)(t)&&Object(i.isInteger)(t)||(t=100),t<0)throw new TypeError("invalid base");this._priceScale=t,this._minMove=e,this._minMove2=n,o&&void 0!==n&&n>0&&2!==n&&4!==n&&8!==n?a.logDebug("invalid minmove2"):(this._fractional=o,this.calculateDecimal())}return t.prototype.isFractional=function(){return!!this._fractional},t.prototype.state=function(){return{fractional:this._fractional,fractionalLength:this._fractionalLength,minMove:this._minMove,minMove2:this._minMove2,priceScale:this._priceScale}},t.prototype.calculateDecimal=function(){if(this._fractionalLength=0,this._priceScale>0&&this._minMove>0){var t=this._priceScale;for(this._fractional&&this._minMove2&&(t/=this._minMove2);t>1;)t/=10,this._fractionalLength++}},t.prototype.format=function(t,e,o,n,i){void 0===n&&(n=!0),void 0===i&&(i=!0);var s,a="";return t<0?(a=!1===n?"":"−",t=-t):t&&!0===e&&(a="+"),s=this._fractional?a+this._formatAsFractional(t,o):a+this._formatAsDecimal(t,o),i?Object(r.forceLTRStr)(s):s},t.prototype.parse=function(t){return t=(t=Object(r.stripLTRMarks)(t)).replace("−","-"),this._fractional?this._minMove2?this._parseAsDoubleFractional(t):this._parseAsSingleFractional(t):this._parseAsDecimal(t)},t.prototype.hasForexAdditionalPrecision=function(){return!this._fractional&&10===this._minMove2},t.serialize=function(t){return t.state()},t.deserialize=function(e){return new t(e.priceScale,e.minMove,e.fractional,e.minMove2)},t.prototype._formatAsDecimal=function(t,e){var o;e=e||0;var n,i=1/(o=this._fractional?Math.pow(10,this._fractionalLength||0):Math.pow(10,e)*this._priceScale/this._minMove);if(o>1)n=Math.floor(t);else{var r=Math.floor(Math.round(t/i)*i);n=0===Math.round((t-r)/i)?r:r+i}var s="";if(o>1){var a=+(Math.round(t*o)-n*o).toFixed(this._fractionalLength);a>=o&&(a-=o,n+=1);var l=void 0!==this._fractionalLength?this._fractionalLength:NaN;s=c.decimalSign+d(+a.toFixed(this._fractionalLength)*this._minMove,l+e),s=this._removeEndingZeros(s,e)}return n.toString()+s},t.prototype._getFractPart=function(t,e){var o=[0,5],n=[0,2,5,7];return 2===e?void 0===o[t]?-1:o[t]:4===e?void 0===n[t]?-1:n[t]:t},t.prototype._formatAsFractional=function(t,e){var o=this._priceScale/this._minMove,n=Math.floor(t),i=e?Math.floor(t*o)-n*o:Math.round(t*o)-n*o;i===o&&(i=0,n+=1);var r="";if(e){var s=(t-n-i/o)*o;r=d(s=Math.round(s*Math.pow(10,e)),e),r=this._removeEndingZeros(r,e)}if(!this._fractionalLength)throw new Error("_fractionalLength is not calculated");var a="";if(this._minMove2){var l=i%this._minMove2,u=d(i=(i-l)/this._minMove2,this._fractionalLength),h=this._getFractPart(l,this._minMove2);a=u+c.decimalSignFractional+h}else a=d((i=this._getFractPart(i,this._priceScale))*this._minMove,this._fractionalLength);return n.toString()+c.decimalSignFractional+a+r},t.prototype._removeEndingZeros=function(t,e){ for(var o=0;o=i||r<0)return{error:u.fraction,res:!1};var s=n+r/i;return o&&(s=-s),{value:s,res:!0,suggest:this.format(s)}}return{error:u.custom,res:!1}},t.prototype._parseAsDoubleFractional=function(t){var e=new RegExp(/^(\-?)[0-9]+$/).exec(t);if(e)return{value:d=parseFloat(t),res:!0,suggest:this.format(d)};if(e=new RegExp("^(-?)([0-9]+)\\"+c.decimalSignFractional+"([0-9]+)\\"+c.decimalSignFractional+"([0-9]+)$").exec(t)){var o=!!e[1],n=parseInt(e[2]),i=void 0!==this._minMove2?this._minMove2:NaN,r=this._priceScale/i,s=this._minMove2,a=this._patchFractPart(parseInt(e[3]),r),l=this._patchFractPart(parseInt(e[4]),s);if(a>=r||a<0)return{error:u.fraction,res:!1};if(void 0!==s&&l>=s||l<0)return{error:u.secondFraction,res:!1};var d=void 0!==s?n+a/r+l/(r*s):NaN;return o&&(d=-d),{value:d,res:!0,suggest:this.format(d)}}return{error:u.custom,res:!1}},t}()},kyOc:function(t,e,o){"use strict";function n(t){return t.charAt(0).toUpperCase()+t.substr(1)}o.r(e),o.d(e,"capitalizeFirstLetter",(function(){return n}))},"l/9j":function(t,e,o){t.exports={label:"label-13XFthDT",start:"start-3sygLELB",end:"end-1tjyjlqO",snap:"snap-3jwwmr9K",large:"large-31XnQHkE",top:"top-1raFV70c",bottom:"bottom-21EGGcaf",textWrap:"textWrap-21E4nTC1",text:"text-2mzQABJX",cmoneycomtw:"cmoneycomtw-1CtsAZwI"}},ljE9:function(t,e,o){"use strict";o.r(e),o.d(e,"getTooltipData",(function(){return i})),o.d(e,"setTooltipData",(function(){return r}));var n=new WeakMap;function i(t,e){var o=n.get(t);return o instanceof Function?o(e):o&&o[e]}function r(t,e,o){if(o instanceof Function)n.set(t,o);else{var i=n.get(t),r=void 0===i||i instanceof Function?{}:i;r[e]=o,n.set(t,r)}}},ljrM:function(t,e,o){"use strict";o.r(e),o.d(e,"timeFrames",(function(){return n}));o("YFKU");var n={"1d":{text:window.t("1D"),value:"1d",targetResolution:"1",description:window.t("%d day",{plural:"%d days",count:1}).replace("%d","1")},"5d":{text:window.t("5D"),value:"5d",targetResolution:"5",description:window.t("%d day",{plural:"%d days",count:5}).replace("%d","5")},"1m":{text:window.t("1M"),value:"1m",targetResolution:"30",description:window.t("%d month",{plural:"%d months",count:1}).replace("%d","1")},"3m":{text:window.t("3M"),value:"3m", targetResolution:"60",description:window.t("%d month",{plural:"%d months",count:3}).replace("%d","3")},"6m":{text:window.t("6M"),value:"6m",targetResolution:"120",description:window.t("%d month",{plural:"%d months",count:6}).replace("%d","6")},ytd:{text:window.t("YTD"),value:"ytd",targetResolution:"1D"},"12m":{text:window.t("1Y"),value:"12m",targetResolution:"1D",description:window.t("%d year",{plural:"%d years",count:1}).replace("%d","1")},"60m":{text:window.t("5Y"),value:"60m",targetResolution:"1W",description:window.t("%d year",{plural:"%d years",count:5}).replace("%d","5")},all:{text:window.t("All"),value:"all",targetResolution:"1M"}}},lt96:function(t,e,o){"use strict";o.r(e),o.d(e,"exchanges",(function(){return i}));o("YFKU");var n=o("JUKA"),i=n},lxNp:function(t,e,o){"use strict";o.r(e);var n=o("/3z9"),i=o("d700"),r=o("hY0g"),s=o.n(r),a=function(){function t(){var t=this;this._groups=[],this._pressedKeys=new s.a(0),this._keyDownListener=function(e){if(!e.defaultPrevented){var o=Object(n.hashFromEvent)(e);if(t._pressedKeys.setValue(o),!Object(i.a)(o,e.target))for(var r=t._groups.length;r-- >0;){var s=t._groups[r];if(!s.isDisabled()){if(s.handleHotkey(o,e))return;if(s.modal)return}}}},this._keyUpListener=function(e){var o=Object(n.hashFromEvent)(e);t._pressedKeys.setValue(o)},this._blurEvent=function(){t._pressedKeys.setValue(0)},this._mouseEvent=function(e){var o=Object(n.modifiersFromEvent)(e),i=255&t._pressedKeys.value();t._pressedKeys.setValue(o|i)}}return t.prototype.listen=function(t){t.addEventListener("keydown",this._keyDownListener),t.addEventListener("keyup",this._keyUpListener),t.addEventListener("blur",this._blurEvent),t.addEventListener("mousemove",this._mouseEvent)},t.prototype.unlisten=function(t){t.removeEventListener("keydown",this._keyDownListener),t.removeEventListener("keyup",this._keyUpListener),t.removeEventListener("blur",this._blurEvent),t.removeEventListener("mousemove",this._mouseEvent)},t.prototype.registerGroup=function(t){this._groups.push(t)},t.prototype.unregisterGroup=function(t){for(var e=this._groups.length;e--;)this._groups[e]===t&&this._groups.splice(e,1)},t.prototype.promoteGroup=function(t){for(var e=this._groups.length-1,o=this._groups.length;o--;){if(this._groups[o]===t)return void(o!==e&&(this._groups.splice(o,1),this._groups.splice(e,0,t)));this._groups[o].modal&&(e=o-1)}},t.prototype.pressedKeys=function(){return this._pressedKeys},t}(),l=o("PC8g"),c=function(){function t(t,e){this._group=t,this.hotkey=e.hotkey,this.handler=e.handler,this.desc=e.desc,this.element=e.element||null,e.isDisabled?"function"==typeof e.isDisabled?this.isDisabled=e.isDisabled:this.isDisabled=function(){return!0}:this.isDisabled=function(){return!1}}return t.prototype.destroy=function(){this._group&&(this._group.remove(this),this._group=null)},t}(),u=function(){function t(t,e){this._actions=[],this._manager=t,this.modal=!(!e||!e.modal),e&&(this.desc=e.desc),e&&e.isDisabled?"function"==typeof e.isDisabled?this.isDisabled=e.isDisabled:this.isDisabled=function(){return!0}:this.isDisabled=function(){ return!1},this._manager.registerGroup(this)}return t.prototype.add=function(t){var e=new c(this,t);return this._actions.push(e),e},t.prototype.remove=function(t){for(var e=this._actions.length;e-- >0;)this._actions[e]===t&&this._actions.splice(e,1)},t.prototype.handleHotkey=function(t,e){for(var o=this._actions.length;o-- >0;){var i=this._actions[o];if(i.hotkey===t&&((!i.element||e.target&&i.element.contains(e.target))&&!i.isDisabled()))return i.handler(e),e.preventDefault(),Object(l.trackEvent)("Keyboard Shortcuts",Object(n.humanReadableHash)(t)),!0}return!1},t.prototype.promote=function(){this._manager.promoteGroup(this)},t.prototype.destroy=function(){this._actions.length=0,this._manager.unregisterGroup(this)},t}();o.d(e,"pressedKeys",(function(){return h})),o.d(e,"createGroup",(function(){return p})),o.d(e,"registerWindow",(function(){return _})),o.d(e,"unregisterWindow",(function(){return f})),o.d(e,"Modifiers",(function(){return n.Modifiers}));var d=new a,h=d.pressedKeys();function p(t){return new u(d,t)}function _(t){d.listen(t)}function f(t){d.unlisten(t)}_(window)},mNbo:function(t,e,o){"use strict";function n(t){var e=new URLSearchParams(location.search);return("new"===t||"any"===t)&&"true"===e.get("mobileapp_new")||"new"!==t&&"true"===e.get("mobileapp")}o.r(e),o.d(e,"isOnMobileAppPage",(function(){return n}))},mrSG:function(t,e,o){"use strict";o.r(e),o.d(e,"__extends",(function(){return i})),o.d(e,"__assign",(function(){return r})),o.d(e,"__rest",(function(){return s})),o.d(e,"__decorate",(function(){return a})),o.d(e,"__param",(function(){return l})),o.d(e,"__metadata",(function(){return c})),o.d(e,"__awaiter",(function(){return u})),o.d(e,"__generator",(function(){return d})),o.d(e,"__exportStar",(function(){return h})),o.d(e,"__values",(function(){return p})),o.d(e,"__read",(function(){return _})),o.d(e,"__spread",(function(){return f})),o.d(e,"__spreadArrays",(function(){return g})),o.d(e,"__await",(function(){return m})),o.d(e,"__asyncGenerator",(function(){return v})),o.d(e,"__asyncDelegator",(function(){return y})),o.d(e,"__asyncValues",(function(){return b})),o.d(e,"__makeTemplateObject",(function(){return w})),o.d(e,"__importStar",(function(){return S})),o.d(e,"__importDefault",(function(){return C})),o.d(e,"__classPrivateFieldGet",(function(){return E})),o.d(e,"__classPrivateFieldSet",(function(){return T}));var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])})(t,e)};function i(t,e){function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}var r=function(){return(r=Object.assign||function(t){for(var e,o=1,n=arguments.length;o=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s}function l(t,e){return function(o,n){e(o,n,t)}}function c(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function u(t,e,o,n){return new(o||(o=Promise))((function(i,r){function s(t){try{l(n.next(t))}catch(e){r(e)}}function a(t){try{l(n.throw(t))}catch(e){r(e)}}function l(t){var e;t.done?i(t.value):(e=t.value,e instanceof o?e:new o((function(t){t(e)}))).then(s,a)}l((n=n.apply(t,e||[])).next())}))}function d(t,e){var o,n,i,r,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return r={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function a(r){return function(a){return function(r){if(o)throw new TypeError("Generator is already executing.");for(;s;)try{if(o=1,n&&(i=2&r[0]?n.return:r[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,r[1])).done)return i;switch(n=0,i&&(r=[2&r[0],i.value]),r[0]){case 0:case 1:i=r;break;case 4:return s.label++,{value:r[1],done:!1};case 5:s.label++,n=r[1],r=[0];continue;case 7:r=s.ops.pop(),s.trys.pop();continue;default:if(!(i=s.trys,(i=i.length>0&&i[i.length-1])||6!==r[0]&&2!==r[0])){s=0;continue}if(3===r[0]&&(!i||r[1]>i[0]&&r[1]=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function _(t,e){var o="function"==typeof Symbol&&t[Symbol.iterator];if(!o)return t;var n,i,r=o.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(n=r.next()).done;)s.push(n.value)}catch(a){i={error:a}}finally{try{n&&!n.done&&(o=r.return)&&o.call(r)}finally{if(i)throw i.error}}return s}function f(){for(var t=[],e=0;e1||a(t,e)}))})}function a(t,e){try{(o=i[t](e)).value instanceof m?Promise.resolve(o.value.v).then(l,c):u(r[0][2],o)}catch(n){u(r[0][3],n)}var o}function l(t){a("next",t)}function c(t){a("throw",t)}function u(t,e){t(e),r.shift(),r.length&&a(r[0][0],r[0][1])}}function y(t){var e,o;return e={},n("next"),n("throw",(function(t){throw t})),n("return"),e[Symbol.iterator]=function(){return this},e;function n(n,i){e[n]=t[n]?function(e){return(o=!o)?{value:m(t[n](e)),done:"return"===n}:i?i(e):e}:i}}function b(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,o=t[Symbol.asyncIterator];return o?o.call(t):(t=p(t),e={},n("next"),n("throw"),n("return"),e[Symbol.asyncIterator]=function(){return this},e);function n(o){e[o]=t[o]&&function(e){return new Promise((function(n,i){(function(t,e,o,n){Promise.resolve(n).then((function(e){t({value:e,done:o})}),e)})(n,i,(e=t[o](e)).done,e.value)}))}}}function w(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}function S(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var o in t)Object.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e.default=t,e}function C(t){return t&&t.__esModule?t:{default:t}}function E(t,e){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return e.get(t)}function T(t,e,o){if(!e.has(t))throw new TypeError("attempted to set private field on non-instance");return e.set(t,o),o}},nEwK:function(t,e,o){"use strict";o.r(e),o.d(e,"PLACE_HOLDER",(function(){return s})),o.d(e,"VolumeFormatter",(function(){return a}));var n=o("zXvd"),i=o("ogJP"),r=o("ivNn"),s=(o("YFKU"),"---"),a=function(){function t(t){this.type="volume",this._numericFormatter=new n.NumericFormatter,this._fractionalValues=void 0!==t&&t>0,this._precision=t}return t.prototype.state=function(){return{precision:this._precision}},t.prototype.format=function(t){if(!Object(i.isNumber)(t))return s;var e="";return t<0&&(e="-",t=-t),t>=1e100?window.t("N/A"):(!this._fractionalValues||t>=995?t=Math.round(t):this._fractionalValues&&(t=+t.toFixed(this._precision)),t<995?e+this._formatNumber(t):t<999995?e+this._formatNumber(t/1e3)+"K":t<999999995?(t=1e3*Math.round(t/1e3),e+this._formatNumber(t/1e6)+"M"):(t=1e6*Math.round(t/1e6),e+this._formatNumber(t/1e9)+"B"))},t.prototype.parse=function(t){if("---"===t)return{error:"not a number",res:!1,value:NaN};var e={K:1e3,M:1e6,B:1e9},o=t.slice(-1);if(e.hasOwnProperty(o)){var n=this._numericFormatter.parse(t.slice(0,-1));return Object(i.isNumber)(n)?{res:!0,value:n*e[o]}:{error:"not a number",res:!1,value:NaN}}n=this._numericFormatter.parse(t);return Object(i.isNumber)(n)?{res:!0,value:n}:{error:"not a number",res:!1,value:NaN}},t.serialize=function(t){return t.state()},t.deserialize=function(e){return new t(e.precision)},t.prototype._formatNumber=function(t){ return this._fractionalValues&&(t=Object(r.fixComputationError)(t)),this._numericFormatter.format(t).replace(/(\.[1-9]*)0+$/,(function(t,e){return e}))},t}()},nzny:function(t,e,o){},oAJy:function(t,e,o){(function(e){t.exports=function t(e,o,n){function i(s,a){if(!o[s]){if(!e[s]){if(r)return r(s,!0);var l=new Error("Cannot find module '"+s+"'");throw l.code="MODULE_NOT_FOUND",l}var c=o[s]={exports:{}};e[s][0].call(c.exports,(function(t){var o=e[s][1][t];return i(o||t)}),c,c.exports,t,e,o,n)}return o[s].exports}for(var r=!1,s=0;s=43)}})).catch((function(){return!1}))).then((function(t){return c=t}));var e}function p(t,e){return new s((function(o,n){if(t.db){if(!e)return o(t.db) ;!function(t){var e=u[t.name],o={};o.promise=new s((function(t){o.resolve=t})),e.deferredOperations.push(o),e.dbReady?e.dbReady=e.dbReady.then((function(){return o.promise})):e.dbReady=o.promise}(t),t.db.close()}var r=[t.name];e&&r.push(t.version);var a=i.open.apply(i,r);e&&(a.onupgradeneeded=function(e){var o=a.result;try{o.createObjectStore(t.storeName),e.oldVersion<=1&&o.createObjectStore("local-forage-detect-blob-support")}catch(n){if("ConstraintError"!==n.name)throw n;console.warn('The database "'+t.name+'" has been upgraded from version '+e.oldVersion+" to version "+e.newVersion+', but the storage "'+t.storeName+'" already exists.')}}),a.onerror=function(){n(a.error)},a.onsuccess=function(){o(a.result),function(t){var e=u[t.name].deferredOperations.pop();e&&e.resolve()}(t)}}))}function _(t){return r([function(t){for(var e=t.length,o=new ArrayBuffer(e),n=new Uint8Array(o),i=0;it.db.version;if(n&&(t.version!==e&&console.warn('The database "'+t.name+"\" can't be downgraded from version "+t.db.version+" to version "+t.version+"."),t.version=t.db.version),i||o){if(o){var r=t.db.version+1;r>t.version&&(t.version=r)}return!0}return!1}(o,e._defaultConfig.version)?function(t){return p(t,!0)}(o):t})).then((function(t){o.db=i.db=t,e._dbInfo=o;for(var n=0;n>4,u[l++]=(15&n)<<4|i>>2,u[l++]=(3&i)<<6|63&r;return c}function E(t){var e,o=new Uint8Array(t),n="";for(e=0;e>2], n+=v[(3&o[e])<<4|o[e+1]>>4],n+=v[(15&o[e+1])<<2|o[e+2]>>6],n+=v[63&o[e+2]];return o.length%3==2?n=n.substring(0,n.length-1)+"=":o.length%3==1&&(n=n.substring(0,n.length-2)+"=="),n}var T={serialize:function(t,e){var o="";if(t&&(o=S.call(t)),t&&("[object ArrayBuffer]"===o||t.buffer&&"[object ArrayBuffer]"===S.call(t.buffer))){var n,i="__lfsc__:";t instanceof ArrayBuffer?(n=t,i+="arbf"):(n=t.buffer,"[object Int8Array]"===o?i+="si08":"[object Uint8Array]"===o?i+="ui08":"[object Uint8ClampedArray]"===o?i+="uic8":"[object Int16Array]"===o?i+="si16":"[object Uint16Array]"===o?i+="ur16":"[object Int32Array]"===o?i+="si32":"[object Uint32Array]"===o?i+="ui32":"[object Float32Array]"===o?i+="fl32":"[object Float64Array]"===o?i+="fl64":e(new Error("Failed to get type for BinaryArray"))),e(i+E(n))}else if("[object Blob]"===o){var r=new FileReader;r.onload=function(){var o="~~local_forage_type~"+t.type+"~"+E(this.result);e("__lfsc__:blob"+o)},r.readAsArrayBuffer(t)}else try{e(JSON.stringify(t))}catch(s){console.error("Couldn't convert value into a JSON string: ",t),e(null,s)}},deserialize:function(t){if("__lfsc__:"!==t.substring(0,b))return JSON.parse(t);var e,o=t.substring(w),n=t.substring(b,w);if("blob"===n&&y.test(o)){var i=o.match(y);e=i[1],o=o.substring(i[0].length)}var s=C(o);switch(n){case"arbf":return s;case"blob":return r([s],{type:e});case"si08":return new Int8Array(s);case"ui08":return new Uint8Array(s);case"uic8":return new Uint8ClampedArray(s);case"si16":return new Int16Array(s);case"ur16":return new Uint16Array(s);case"si32":return new Int32Array(s);case"ui32":return new Uint32Array(s);case"fl32":return new Float32Array(s);case"fl64":return new Float64Array(s);default:throw new Error("Unkown type: "+n)}},stringToBuffer:C,bufferToString:E},x={_driver:"webSQLStorage",_initStorage:function(t){var e=this,o={db:null};if(t)for(var n in t)o[n]="string"!=typeof t[n]?t[n].toString():t[n];var i=new s((function(t,n){try{o.db=openDatabase(o.name,String(o.version),o.description,o.size)}catch(i){return n(i)}o.db.transaction((function(i){i.executeSql("CREATE TABLE IF NOT EXISTS "+o.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],(function(){e._dbInfo=o,t()}),(function(t,e){n(e)}))}))}));return o.serializer=T,i},iterate:function(t,e){var o=this,n=new s((function(e,n){o.ready().then((function(){var i=o._dbInfo;i.db.transaction((function(o){o.executeSql("SELECT * FROM "+i.storeName,[],(function(o,n){for(var r=n.rows,s=r.length,a=0;a=0;o--){var n=localStorage.key(o);0===n.indexOf(t)&&localStorage.removeItem(n)}}));return a(o,t),o},length:function(t){var e=this.keys().then((function(t){return t.length}));return a(e,t),e},key:function(t,e){var o=this,n=o.ready().then((function(){var e,n=o._dbInfo;try{e=localStorage.key(t)}catch(i){e=null}return e&&(e=e.substring(n.keyPrefix.length)),e}));return a(n,e),n},keys:function(t){var e=this,o=e.ready().then((function(){for(var t=e._dbInfo,o=localStorage.length,n=[],i=0;i0?n="default":(t.scrollLeft=1,0===t.scrollLeft&&(n="negative")),document.body.removeChild(t),n}e._setScrollType=function(t){n=t},e.detectScrollType=r,e.getNormalizedScrollLeft=function(t,e){var o=t.scrollLeft;if("rtl"!==e)return o;var n=r();if("indeterminate"===n)return Number.NaN;switch(n){case"negative":return t.scrollWidth-t.clientWidth+o;case"reverse":return t.scrollWidth-t.clientWidth-o}return o},e.setNormalizedScrollLeft=function(t,e,o){if("rtl"===o){var n=r();if("indeterminate"!==n)switch(n){case"negative":t.scrollLeft=t.clientWidth-t.scrollWidth+e;break;case"reverse":t.scrollLeft=t.scrollWidth-t.clientWidth-e;break;default:t.scrollLeft=e}}else t.scrollLeft=e}},ogJP:function(t,e,o){(function(t){var e,o=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)},n=function(t){return"object"==typeof t&&null!==t};function i(t){return"number"==typeof t&&isFinite(t)}function r(t){return null!=t&&t.constructor===Function}function s(t,e){t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}"undefined"!=typeof window?(e=window.TradingView=window.TradingView||{},window.isNumber=i,window.isFunction=r,window.inherit=s,window.isArray=o):e=this.TradingView=this.TradingView||{},e.isNaN=function(t){return!(t<=0||t>0)},e.isAbsent=function(t){return null==t},e.isExistent=function(t){return null!=t},Number.isNaN=Number.isNaN||function(t){return t!=t},e.isSameType=function(t,e){return Number.isNaN(t)||Number.isNaN(e)?Number.isNaN(t)===Number.isNaN(e):{}.toString.call(t)==={}.toString.call(e)},e.isInteger=function(t){return"number"==typeof t&&t%1==0},e.parseBool=function(t){return!0===t||"true"===t},e.isBoolean=function(t){return!0===t||!1===t},e.isString=function(t){return null!=t&&t.constructor===String},e.isInherited=function(t,e){if(null==t||null==t.prototype)throw new TypeError("isInherited: child should be a constructor function");if(null==e||null==e.prototype)throw new TypeError("isInherited: parent should be a constructor function");return t.prototype instanceof e||t.prototype===e.prototype},e.TypeValidator=function(t){this.m_type=t},e.TypeValidator.prototype.check=function(t){return t.constructor===this.m_type||e.isInherited(t.constructor,this.m_type)},e.PredicateValidator=function(t){this.m_predicate=t},e.PredicateValidator.prototype.check=function(t){return this.m_predicate(t)},e.clone=function(t){if(!t||"object"!=typeof t)return t;var o,n,i;for(n in o="function"==typeof t.pop?[]:{},t)t.hasOwnProperty(n)&&(i=t[n],o[n]=i&&"object"==typeof i?e.clone(i):i);return o},e.deepEquals=function(t,n,i){if(i||(i=""),t===n)return[!0,i];if(r(t)&&(t=void 0),r(n)&&(n=void 0),void 0===t&&void 0!==n)return[!1,i];if(void 0===n&&void 0!==t)return[!1,i];if(null===t&&null!==n)return[!1,i];if(null===n&&null!==t)return[!1,i];if("object"!=typeof t&&"object"!=typeof n)return[t===n,i] ;if(Array.isArray(t)&&Array.isArray(n)){var s=t.length;if(s!==n.length)return[!1,i];for(var a=0;ar&&(c=1*l),0===c);u++);return c}},t&&t.exports&&(t.exports={inherit:s,clone:e.clone,merge:e.merge,isNumber:i,isInteger:e.isInteger,isBoolean:e.isBoolean,isString:e.isString,isObject:n,isHashObject:function(t){return n(t)&&-1!==t.constructor.toString().indexOf("function Object")},isPromise:function(t){return n(t)&&t.then},isNaN:e.isNaN,isAbsent:e.isAbsent,isExistent:e.isExistent,isSameType:e.isSameType,isArray:o,parseBool:e.parseBool,parseJSONorNot:function(t){return"string"==typeof t?JSON.parse(t):t},deepEquals:e.deepEquals,notNull:function(t){return null!==t},declareClassAsPureInterface:function(t,e){for(var o in t.prototype)"function"==typeof t.prototype[o]&&t.prototype.hasOwnProperty(o)&&(t.prototype[o]=function(){throw new Error(e+"::"+o+" is an interface member declaration and must be overloaded in order to be called")})},requireFullInterfaceImplementation:function(t,e,o,n){for(var i in o.prototype)if("function"==typeof o.prototype[i]&&!t.prototype[i])throw new Error("Interface implementation assertion failed: "+e+" does not implement "+n+"::"+i+" function")}})}).call(this,o("YuTi")(t))},ohga:function(t,e,o){},pIOw:function(t,e,o){"use strict";o.r(e),o.d(e,"Tabs",(function(){return m}));o("ohga");var n,i=o("Eyy1"),r=o("9+gJ"),s=(o("bf9a"),o("j1f4")),a=o("FIi8"),l=o("aIyQ"),c=o.n(l),u=o("MjtL"),d=o("/NcV"),h=o("Vdly"),p=o("Ialn");!function(t){t[t.Left=0]="Left",t[t.Right=1]="Right"}(n||(n={}));var _={saveTab:"",noSlider:!1,onTabClick:!1,loadedClass:"i-loaded",tabsContainerClass:"tv-tabs",tabClass:"tv-tabs__tab",tabDisabledClass:"disabled",activeTabClass:"i-active",activePageClass:"active",sliderClass:"tv-tabs__slider",scrollBoxClass:"tv-tabs__scroll-box",scrollWrapClass:"tv-tabs__scroll-wrap",lArrowClass:"tv-tabs__left-arrow",rArrowClass:"tv-tabs__right-arrow"},f=u,g=d,m=function(){function t(t,e,o){void 0===o&&(o={}),this._animating=!1,this._prevWidth=-1,this._bindings=[],this._options=Object(a.deepExtend)({},_,o),this.tabChanged=new c.a,this._elTabs=t,this._elPages=e, this._elScrollWrap=this._findOrCreateElement(this._options.scrollWrapClass||"",this._elTabs,"wrapInner"),this._elScrollBox=this._findOrCreateElement(this._options.scrollBoxClass||"",this._elScrollWrap,"wrapInner"),this._options.noSlider||(this._elSlider=this._findOrCreateElement(this._options.sliderClass||"",this._elScrollBox,"append")),Modernizr.mobiletouch||(this._elArrowLeft=this._findOrCreateElement(this._options.lArrowClass||"",this._elTabs,"append",'
'+f+"
"),this._elArrowRight=this._findOrCreateElement(this._options.rArrowClass||"",this._elTabs,"append",'
'+g+"
"),this._addClass(this._elArrowLeft,this._options.addLeftArrowsClass),this._addClass(this._elArrowRight,this._options.addRightArrowsClass)),this._addClass(this._elScrollBox,this._options.addScrollBoxClass),this._addClass(this._elSlider,this._options.addSliderClass),this._addClass(this._elTabs,this._options.tabsContainerClass),this._addClass(this.getTabsArray(),this._options.tabClass),this._addClass(this._elTabs,this._options.loadedClass),this.checkScrollArrows(!0),this._initActivePage(),this._bindEvents()}return t.prototype.getTabsArray=function(){var t=this._elScrollBox.children;if(!this._options.sliderClass)return Array.prototype.slice.call(t);for(var e=[],o=0;o=1?a(this._elArrowLeft):(e<=1||this._elScrollWrap.scrollWidth<=o)&&l(this._elArrowLeft,n.Left)),this._elArrowRight&&(i-e>1?a(this._elArrowRight):(e>=i||this._elScrollWrap.scrollWidth<=o)&&l(this._elArrowRight,n.Right))},t.prototype.index=function(){var t=this.getElActiveTab();return t?this.getTabsArray().indexOf(t):-1},t.prototype.getElActiveTab=function(){return this._getActiveElement(this.getTabsArray(),this._options.activeTabClass||"",this._options.inactiveTabClass)},t.prototype.getElActivePage=function(){return this._getActiveElement(this.getPagesArray(),this._options.activePageClass||"",this._options.inactivePageClass)},t.prototype.setActivePage=function(t,e,o){if(-1!==t&&(t!==this.index()||o)){ var n=this.index();i(this.getTabsArray(),this._options.activeTabClass,this._options.inactiveTabClass),i(this.getPagesArray(),this._options.activePageClass,this._options.inactivePageClass),this._options.noSlider||this.updateSlider(n,t,e),this._options.saveTab&&h.setValue(this._options.saveTab,t),this.tabChanged.fire(t)}function i(e,o,n){e.forEach((function(e,i){var r=t===i,s=e.classList;o&&s.toggle(o,r),n&&s.toggle(n,!r)}))}},t.prototype.updateSlider=function(t,e,o){var n=this;if(!this._options.noSlider){var i=this.getTabsArray()[e];if(!(0===i.clientWidth||0===i.clientHeight||"none"===window.getComputedStyle(i).getPropertyValue("display"))){var a=window.getComputedStyle(i),l=i.offsetLeft+parseInt(a.getPropertyValue("padding-left")),c=this._getElWidth(i),u=i.querySelector(".js-tabs__slider-pos");if(u){var d=window.getComputedStyle(u);l+=parseInt(d.getPropertyValue("padding-left"))+u.offsetLeft,c-=c-this._getElWidth(u)}(o=o||-1===t||document.all&&!window.atob)?(this._elSlider.style.left=l+"px",this._elSlider.style.width=c+"px"):(this._animating=!0,Object(r.lazyVelocity)().then((function(){$.Velocity.animate(n._elSlider,{left:l},{duration:s.dur,easing:"easeOutCubic",queue:!1}),$.Velocity.animate(n._elSlider,{width:c},{complete:function(){n._animating=!1},duration:s.dur,easing:"easeOutCubic",queue:!1})})))}}},t.prototype.onTabClick=function(t){var e=t.currentTarget||t.target,o=this.getTabsArray().indexOf(e);-1===o||this._isTabDisabled(e)||this.setActivePage(o),document.activeElement.blur(),t.preventDefault()},t.prototype.resizeSlider=function(){if(!this._options.noSlider){var t=this._elTabs.offsetWidth;if(t!==this._prevWidth){this._prevWidth=t;var e=this.index();this.updateSlider(e,e,!0)}}},t.prototype.count=function(){return this.getTabsArray().length},t.prototype.add=function(t,e){this._elScrollBox.appendChild(t),this._elPages&&e&&this._elPages.appendChild(e),this._bindTabEvents(t),this.checkScrollArrows(!0)},t.prototype.remove=function(t){function e(t){t.parentElement&&t.parentElement.removeChild(t)}var o=this.tabAt(t);o&&(this._unbindTabEvents(o),e(o));var n=this.pageAt(t);n&&e(n);var i=t-1>=0?t-1:0;this.setActivePage(i),this.checkScrollArrows(!0)},t.prototype.indexOfTab=function(t){return this.getTabsArray().indexOf(t)},t.prototype.indexOfPage=function(t){return this.getPagesArray().indexOf(t)},t.prototype.pageAt=function(t){return this.getPagesArray()[t]||null},t.prototype.tabAt=function(t){return this.getTabsArray()[t]||null},t.prototype.deselect=function(t){var e=this.getElActiveTab();this._options.activeTabClass&&e&&e.classList.remove(this._options.activeTabClass);var o=this.getElActivePage();return this._options.activePageClass&&o&&o.classList.remove(this._options.activePageClass),this._elSlider&&(this._elSlider.style.left="",this._elSlider.style.width=""),this},t.prototype.stop=function(){this._unbindEvents({})},t.prototype._getElWidth=function(t){if(0===t.offsetWidth)return 0;var e=window.getComputedStyle(t) ;return t.offsetWidth-parseFloat(e.getPropertyValue("padding-left"))-parseFloat(e.getPropertyValue("padding-right"))-parseFloat(e.getPropertyValue("border-left-width"))-parseFloat(e.getPropertyValue("border-right-width"))},t.prototype._findOrCreateElement=function(t,e,o,n){var i=e.querySelector("."+t);if(!i){var r=document.createElement("div");if(r.innerHTML=n||'
',i=r.firstElementChild,"append"===o)e.appendChild(i);else{if("wrapInner"!==o)throw new Error("Unknown insertMethod");for(var s=Array.prototype.slice.call(e.childNodes),a=0;aa?i=!0:n=e}})),Object(r.lazyVelocity)().then((function(){$.Velocity.animate(t._elScrollWrap,"scroll",{axis:"x",container:$(t._elScrollWrap),duration:s.dur/2,easing:"easeInOutCubic",offset:Math.floor(n-a-t._getElWidth(t._elArrowLeft)),queue:!1})}))},target:this._elArrowLeft}),this._elArrowRight&&this._bindOneEvent({eventName:"click",listener:function(e){var o=t.getTabsArray(),n=0,a=Object(p.isRtl)()?0:t._elScrollWrap.scrollLeft+t._getElWidth(t._elScrollWrap);Object(p.isRtl)()&&o.reverse(),o.forEach((function(t){if(0===n){var e=t.offsetLeft+t.offsetWidth;e>a&&(n=e)}})),Object(r.lazyVelocity)().then((function(){$.Velocity.animate(t._elScrollWrap,"scroll",{axis:"x",container:$(t._elScrollWrap),duration:s.dur/2,easing:"easeInOutCubic",offset:Math.ceil(n-a+t._getElWidth(Object(i.ensureDefined)(t._elArrowRight))),queue:!1})}))},target:this._elArrowRight});var e=Array.prototype.slice.call(this._elTabs.querySelectorAll(".js-tabs__slider-hover")||[]);e.length&&e.forEach((function(e){return t._bindOneEvent({eventName:"mouseenter",listener:function(e){if(!t._animating){var o=e.currentTarget;o&&t._options.activeTabClass&&o.classList&&o.classList.contains(t._options.activeTabClass)&&t._hoverSlider(o)}},target:e})}));var o=null,n=function(){o=null,t.checkScrollArrows(!0),t._options.noSlider||t.resizeSlider()};this._bindOneEvent({eventName:"resize",listener:function(){null===o&&(o=window.requestAnimationFrame(n))},target:window})},t.prototype._bindTabEvents=function(t){var e=this;this._bindOneEvent({eventName:"click",listener:function(t){ "function"==typeof e._options.onTabClick?e._options.onTabClick(t):e.onTabClick(t)},target:t})},t.prototype._unbindTabEvents=function(t){this._unbindEvents({target:t})},t.prototype._bindOneEvent=function(t){t.target.addEventListener(t.eventName,t.listener),this._bindings.push(t)},t.prototype._unbindEvents=function(t){var e=function(e){return!(void 0!==e.eventName&&e.eventName!==t.eventName||void 0!==e.target&&e.target!==t.target||void 0!==e.listener&&e.listener!==t.listener)};this._bindings.filter(e).forEach((function(t){return t.target.removeEventListener(t.eventName,t.listener)})),this._bindings=this._bindings.filter((function(t){return!e(t)}))},t.prototype._getActiveElement=function(t,e,o){return t.filter((function(t,n,i){return e?t.classList.contains(e):!!o&&!t.classList.contains(o)}))[0]||null},t.prototype._isTabDisabled=function(t){return t.classList.contains("i-disabled")||this._options.tabDisabledClass&&t.classList.contains(this._options.tabDisabledClass)||t.hasAttribute("disabled")},t.prototype._hoverSlider=function(t){var e=this,o=this._getElWidth(t),n=window.getComputedStyle(t),i=t.offsetLeft+parseInt(n.getPropertyValue("padding-left"))+parseInt(n.getPropertyValue("margin-left")),a={duration:s.dur/4,easing:"easeOutCubic",queue:!1};Object(r.lazyVelocity)().then((function(){$.Velocity.animate(e._elSlider,{left:i},a),$.Velocity.animate(e._elSlider,{width:o},a)}));var l=function(){e.getElActiveTab()===t&&e._unhoverSlider(t),t.removeEventListener("mousleave",l)};t.addEventListener("mouseleave",l)},t.prototype._unhoverSlider=function(t){var e=this,o=window.getComputedStyle(t),n=t.querySelector(".js-tabs__slider-pos"),i=window.getComputedStyle(n),a=t.offsetLeft+parseInt(o.getPropertyValue("padding-left"))+parseInt(o.getPropertyValue("margin-left"))+parseInt(i.getPropertyValue("padding-left"))+n.offsetLeft,l=this._getElWidth(t),c=l-(l-this._getElWidth(n)),u={duration:s.dur/2,easing:"easeInSine",queue:!1};Object(r.lazyVelocity)().then((function(){$.Velocity.animate(e._elSlider,{left:a},u),$.Velocity.animate(e._elSlider,{width:c},u)}))},t}()},pLUm:function(t,e,o){t.exports={wrapper:"wrapper-2KWBfDVB",touch:"touch-E6yQTRo_"}},pP4S:function(t,e,o){"use strict";var n,i;o.r(e),o.d(e,"ResponseMethods",(function(){return n})),o.d(e,"ErrorReasons",(function(){return i})),function(t){t.error="replay_error",t.point="replay_point",t.ok="replay_ok",t.resolutions="replay_resolutions",t.endOfData="replay_data_end",t.instanceId="replay_instance_id"}(n||(n={})),function(t){t.tooSmallDelay="too_small_delay",t.alreadyInAutoplay="already_in_autoplay",t.nothingToStop="nothing_to_stop",t.pointTooDeep="point_too_deep",t.alreadyInSession="already_in_session",t.thereIsNoSuchSeries="no_series",t.notAllowedInAutoplay="not_allow_in_autoplay",t.invalidResolution="invalid_resolution"}(i||(i={}))},qlfx:function(t){ t.exports=JSON.parse('{"14851":{},"custom_items_in_context_menu":{},"websocket_connection":{},"countdown":{},"symbol_search_parser_mixin":{},"show_pro_features":{},"daily_timeframe_suffix":{},"symbollist_context_menu":{},"pay_attention_to_ticker_not_symbol":{},"graying_disabled_tools_enabled":{},"update_study_formatter_on_symbol_resolve":{},"constraint_dialogs_movement":{},"same_data_requery":{},"phone_verification":{},"show_trading_notifications_history":{},"show_interval_dialog_on_key_press":{},"header_interval_dialog_button":{"subsets":["show_interval_dialog_on_key_press"]},"header_fullscreen_button":{},"header_symbol_search":{},"symbol_search_hot_key":{},"header_resolutions":{"subsets":["header_interval_dialog_button"]},"header_chart_type":{},"header_settings":{},"header_indicators":{},"header_compare":{},"header_undo_redo":{},"header_screenshot":{},"header_saveload":{},"study_on_study":{},"header_widget":{"subsets":["header_widget_dom_node","header_symbol_search","header_resolutions","header_chart_type","header_settings","header_indicators","header_compare","header_undo_redo","header_fullscreen_button","compare_symbol","header_screenshot"]},"legend_widget":{},"compare_symbol":{"subsets":["header_compare"]},"property_pages":{"subsets":["show_chart_property_page","chart_property_page"]},"show_chart_property_page":{},"chart_property_page":{"subsets":["chart_property_page_style","chart_property_page_scales","chart_property_page_background","chart_property_page_timezone_sessions","chart_property_page_events_alerts","chart_property_page_trading","chart_property_page_template_button","chart_property_page_right_margin_editor"]},"disable_userlink_popup":{},"left_toolbar":{},"hide_left_toolbar_by_default":{},"control_bar":{},"widget_logo":{},"timeframes_toolbar":{},"edit_buttons_in_legend":{"subsets":["show_hide_button_in_legend","format_button_in_legend","study_buttons_in_legend","delete_button_in_legend"]},"hide_legend_by_default":{},"show_hide_button_in_legend":{},"format_button_in_legend":{},"study_buttons_in_legend":{},"delete_button_in_legend":{},"pane_context_menu":{},"scales_context_menu":{},"legend_context_menu":{},"context_menus":{"subsets":["pane_context_menu","scales_context_menu","legend_context_menu","objects_tree_context_menu"]},"items_favoriting":{},"save_chart_properties_to_local_storage":{},"use_localstorage_for_settings":{"subsets":["items_favoriting","save_chart_properties_to_local_storage"]},"handle_scale":{"subsets":["mouse_wheel_scale","pinch_scale","axis_pressed_mouse_move_scale"]},"handle_scroll":{"subsets":["mouse_wheel_scroll","pressed_mouse_move_scroll","horz_touch_drag_scroll","vert_touch_drag_scroll"]},"plain_studymarket":{},"trading_watch_positions":{},"disable_resolution_rebuild":{},"border_around_the_chart":{},"charting_library_debug_mode":{},"log_data_request_time":{},"saveload_requires_authentication":{},"saveload_storage_customization":{},"new_chart_creation_available":{},"volume_force_overlay":{},"create_volume_indicator_by_default":{},"create_volume_indicator_by_default_once":{},"saved_charts_count_restriction":{},"lean_chart_load":{},"stop_study_on_restart":{},"star_some_intervals_by_default":{},"predefined_items_only_may_be_starred":{},"move_logo_to_main_pane":{},"show_animated_logo":{},"link_to_tradingview":{},"logo_without_link":{},"right_bar_stays_on_scroll":{},"chart_content_overrides_by_defaults":{},"show_dialog_on_snapshot_ready":{},"snapshot_trading_drawings":{},"allow_supported_resolutions_set_only":{},"study_market_minimized":{},"widgetbar_tabs":{},"collapsible_header":{},"show_extension_popup":{},"study_templates":{},"side_toolbar_in_fullscreen_mode":{},"header_in_fullscreen_mode":{},"remove_library_container_border":{},"whotrades_auth_only":{},"support_multicharts":{},"display_market_status":{},"display_data_mode":{},"show_chart_warn_message":{},"datasource_copypaste":{},"line_tool_templates":{},"expand_symbolsearch_items":{},"symbol_search_three_columns_exchanges":{},"symbol_search_flags":{},"symbol_search_limited_exchanges":{},"bugreport_button":{},"footer_publish_idea_button":{},"showdom_button":{},"text_notes":{},"show_source_code":{},"symbol_info":{},"no_bars_status":{},"clear_bars_on_series_error":{},"hide_loading_screen_on_series_error":{},"seconds_resolution":{},"dont_show_boolean_study_arguments":{},"hide_last_na_study_output":{},"price_scale_always_last_bar_value":{},"study_dialog_search_control":{},"study_dialog_fundamentals_economy_addons":{},"uppercase_instrument_names":{},"cqg_trading_confirm_risks":{},"trading_notifications":{},"chart_crosshair_menu":{},"japanese_chart_styles":{},"hide_series_legend_item":{},"hide_study_overlay_legend_item":{},"hide_study_compare_legend_item":{},"linetoolpropertieswidget_template_button":{},"use_overrides_for_overlay":{},"timezone_menu":{},"main_series_scale_menu":{},"show_login_dialog":{},"remove_img_from_rss":{},"bars_marks":{},"chart_scroll":{},"chart_zoom":{},"source_selection_markers":{},"high_density_bars":{},"low_density_bars":{},"end_of_period_timescale_marks":{},"open_account_manager":{},"order_panel":{},"multiple_watchlists":{},"study_overlay_compare_legend_option":{},"custom_resolutions":{},"referral_program_for_widget_owners":{},"mobile_app_force_chart_maximize":{},"no_min_chart_width":{},"lock_visible_time_range_on_resize":{},"pricescale_currency":{},"referral_program_policy_aggressive":{"subsets":["referral_program_policy_passive","referral_program_policy_normal"]},"referral_program_policy_normal":{"subsets":["referral_program_policy_passive","header_fake_features_buttons","custom_resolutions"]},"cropped_tick_marks":{},"tv_production":{"subsets":["show_pro_features","countdown","symbol_search_parser_mixin","symbollist_context_menu","websocket_connection","header_fullscreen_button","header_widget","dont_show_boolean_study_arguments","left_toolbar","control_bar","symbol_search_hot_key","context_menus","edit_buttons_in_legend","uppercase_instrument_names","use_localstorage_for_settings","saveload_requires_authentication","volume_force_overlay","new_chart_creation_available","saved_charts_count_restriction","create_volume_indicator_by_default","create_volume_indicator_by_default_once","charts_auto_save","save_old_chart_before_save_as","chart_content_overrides_by_defaults","alerts","show_dialog_on_snapshot_ready","show_extension_popup","header_saveload","header_layouttoggle","datasource_copypaste","show_saved_watchlists","watchlists_from_to_file","add_to_watchlist","property_pages","support_multicharts","display_market_status","display_data_mode","show_chart_warn_message","support_manage_drawings","widgetbar_tabs","study_templates","collapsible_header","line_tool_templates","caption_buttons_text_if_possible","footer_publish_idea_button","text_notes","show_source_code","trading_watch_positions","symbol_info","linetoolpropertieswidget_template_button","cqg_trading_confirm_risks","trading_notifications","symbol_search_three_columns_exchanges","symbol_search_flags","symbol_search_limited_exchanges","phone_verification","chart_events","custom_resolutions","compare_symbol","study_on_study","japanese_chart_styles","show_login_dialog","dome_widget","bars_marks","chart_scroll","chart_zoom","show_trading_notifications_history","source_selection_markers","study_dialog_fundamentals_economy_addons","multiple_watchlists","marked_symbols","order_panel","pricescale_currency","show_animated_logo","pricescale_currency","show_object_tree"]},"browser_extension":{"subsets":["disable_userlink_popup","show_pro_features","show_saved_watchlists","display_market_status","display_data_mode","show_chart_warn_message","widgetbar_tabs","show_login_dialog"]},"widget":{"subsets":["show_pro_features","countdown","symbol_search_parser_mixin","symbollist_context_menu","websocket_connection","uppercase_instrument_names","left_toolbar","control_bar","symbol_search_hot_key","context_menus","edit_buttons_in_legend","use_localstorage_for_settings","saveload_requires_authentication","volume_force_overlay","create_volume_indicator_by_default","create_volume_indicator_by_default_once","show_dialog_on_snapshot_ready","dont_show_boolean_study_arguments","header_widget_dom_node","header_symbol_search","header_resolutions","header_chart_type","header_compare","header_indicators","star_some_intervals_by_default","display_market_status","display_data_mode","show_chart_warn_message","symbol_info","linetoolpropertieswidget_template_button","symbol_search_three_columns_exchanges","symbol_search_flags","symbol_search_limited_exchanges","widgetbar_tabs","compare_symbol","show_login_dialog","plain_studymarket","japanese_chart_styles","bars_marks","chart_scroll","chart_zoom","source_selection_markers","property_pages"]},"bovespa_widget":{"subsets":["widget","header_settings","chart_property_page_timezone_sessions","linetoolpropertieswidget_template_button"]},"charting_library_base":{"subsets":["14851","allow_supported_resolutions_set_only","border_around_the_chart","collapsible_header","constraint_dialogs_movement","context_menus","control_bar","create_volume_indicator_by_default","custom_items_in_context_menu","datasource_copypaste","daily_timeframe_suffix","uppercase_instrument_names","display_market_status","edit_buttons_in_legend","graying_disabled_tools_enabled","header_widget","legend_widget","header_saveload","dont_show_boolean_study_arguments","lean_chart_load","left_toolbar","trading_watch_positions","link_to_tradingview","pay_attention_to_ticker_not_symbol","plain_studymarket","predefined_items_only_may_be_starred","refresh_saved_charts_list_on_dialog_show","right_bar_stays_on_scroll","saveload_storage_customization","show_dialog_on_snapshot_ready","stop_study_on_restart","study_market_minimized","timeframes_toolbar","symbol_search_hot_key","update_study_formatter_on_symbol_resolve","update_timeframes_set_on_symbol_resolve","use_localstorage_for_settings","volume_force_overlay","widget_logo","countdown","use_overrides_for_overlay","trading_notifications","compare_symbol","symbol_info","timezone_menu","main_series_scale_menu","study_dialog_search_control","chart_crosshair_menu","create_volume_indicator_by_default_once","bars_marks","chart_scroll","chart_zoom","source_selection_markers","property_pages","go_to_date","adaptive_logo","caption_buttons_text_if_possible","show_animated_logo","handle_scale","handle_scroll","shift_visible_range_on_new_bar","chart_content_overrides_by_defaults","cropped_tick_marks"]},"charting_library":{"subsets":["charting_library_base"]},"static_charts_service":{"subsets":["charting_library","disable_resolution_rebuild","log_data_request_time","same_data_requery"]},"trading_terminal":{"subsets":["charting_library_base","showdom_button","support_multicharts","header_layouttoggle","japanese_chart_styles","chart_property_page_trading","add_to_watchlist","open_account_manager","show_dom_first_time","order_panel","multiple_watchlists","show_trading_notifications_history","always_pass_called_order_to_modify","show_object_tree"]},"cqg_terminal":{"subsets":["charting_library_base","chart_property_page_trading","expand_symbolsearch_items","clear_bars_on_series_error","no_bars_status","hide_loading_screen_on_series_error","support_multicharts","header_layouttoggle","same_data_requery","bugreport_button","showdom_button","dome_widget","show_dom_first_time","japanese_chart_styles","remove_img_from_rss","add_to_watchlist","order_panel","show_trading_notifications_history","show_object_tree"]},"amp_terminal":{"subsets":["cqg_terminal","show_object_tree"]}}') },qocr:function(t,e,o){"use strict";function n(t,e){void 0===e&&(e=!1),("attachEvent"in document?"complete"===document.readyState:"loading"!==document.readyState)?e?setTimeout((function(){return t()}),1):t():document.addEventListener("DOMContentLoaded",(function(){return t()}))}o.r(e),o.d(e,"whenDocumentReady",(function(){return n})),o.d(e,"whenDocumentReadyPromise",(function(){return i}));var i=new Promise((function(t){return n(t)}))},quTg:function(t,e,o){},r8Gw:function(t,e,o){"use strict";o.d(e,"a",(function(){return a}));var n=o("uOxu"),i=o("0waE"),r=o("IWXC"),s=(o("glKZ"),Object(n.getLogger)("GUI.Blocks.AbstractIndicator")),a=function(){function t(t){this._classSuffix="",this._quoteSessionPrefix="abstract-indicator",this._shortMode=!1,this._showTooltip=!0,this._subscribed=!1,this._tooltipType="custom",this._lastTooltipText="",this._quoteSession=t.quoteSession}return t.prototype.getValue=function(){return this._value},t.prototype.getTooltipText=function(){return this._labelMap[this._value]||""},t.prototype.getLabel=function(){return this._labelMap[this._value]||""},t.prototype.getElement=function(){return this._el},t.prototype.update=function(t,e){this._updateValue(t,e),this._render()},t.prototype.setTooltipEnabled=function(t){void 0===t&&(t=!1),this._showTooltip!==t&&(this._showTooltip=t,this._renderTooltip())},t.prototype.enableShortMode=function(){!0!==this._shortMode&&(this._shortMode=!0,this._render())},t.prototype.disableShortMode=function(){!1!==this._shortMode&&(this._shortMode=!1,this._render())},t.prototype.isShortModeEnabled=function(){return this._shortMode},t.prototype.start=function(){!this._subscribed&&this._symbolName&&(this._quoteSession||(this._quoteSession=Object(r.getQuoteSessionInstance)("simple")),this._quoteSession.subscribe(this._getQuoteSessionId(),this._symbolName,this.update.bind(this)),this._subscribed=!0)},t.prototype.stop=function(){this._subscribed&&this._quoteSession&&this._symbolName&&(this._quoteSession.unsubscribe(this._getQuoteSessionId(),this._symbolName),this._subscribed=!1)},t.prototype._init=function(t){this._el=t.el?t.el:document.createElement("span"),this._el.innerHTML="",this._classMap=t.classMap,this._labelMap=t.labelMap,this._showTooltip=t.showTooltip,this._classSuffix=t.classSuffix,this._symbolName=t.symbol,t.tooltipType&&(this._tooltipType=t.tooltipType),this._quoteSessionGUID=Object(i.guid)(),!0===t.short&&this.enableShortMode(),t.data&&this._updateValue(t.data)},t.prototype._clearClasses=function(){var t=this;Object.values(this._classMap).map((function(e){t._el.classList.remove(""+e),t._el.classList.remove(""+e+t._classSuffix)}))},t.prototype._render=function(){this._renderClasses(),this._renderTooltip(),this._renderLabel()},t.prototype._renderLabel=function(){this._el.textContent=this.getLabel()},t.prototype._updateValue=function(t,e){var o=this._getValueFromData(t);(e||o!==this._value)&&(this._value=o)},t.prototype._renderClasses=function(){var t=this._el.classList;t.add(this._componentClass,this._componentClass+this._classSuffix) ;var e=this._classMap[this._value];for(var o in this._classMap){var n=this._classMap[o];n&&(n===e?t.add(n,n+this._classSuffix):t.remove(n,n+this._classSuffix))}!e&&this._value&&s.logWarn("no className for status "+this._value)},t.prototype._renderTooltip=function(){var t=this._showTooltip?this.getTooltipText():"";t!==this._lastTooltipText&&(this._lastTooltipText=t,this._el.setAttribute("title",t),"custom"===this._tooltipType&&this._el.classList.toggle("apply-common-tooltip",this._showTooltip))},t.prototype._getQuoteSessionId=function(){return this._quoteSessionPrefix+"."+this._quoteSessionGUID},t}();window.AbstractIndicator=a},rOif:function(t){ t.exports=JSON.parse('{"au":["ASX:XAT","ASX:XAF","INDEX:NZD","SP:SPX","TVC:US30","BITSTAMP:BTCUSD","BITSTAMP:XRPUSD","BITSTAMP:ETHUSD","COINBASE:EOSUSD","COINBASE:LTCUSD","FX:AUDUSD","FX:EURUSD","FX:USDJPY","FX:GBPUSD","FX_IDC:XAUUSD","NYMEX:CL1!","COMEX:HG1!"],"br":["BMFBOVESPA:IBOV","BMFBOVESPA:IBXL","BITSTAMP:BTCUSD","BITSTAMP:XRPUSD","BITSTAMP:ETHUSD","COINBASE:EOSUSD","COINBASE:LTCUSD","FX_IDC:USDBRL","FX_IDC:EURBRL","FX_IDC:BRLJPY","BMFBOVESPA:PETR3","BMFBOVESPA:GGBR3","BMFBOVESPA:VALE3"],"ca":["TSX:TXSX","TSX:VIXC","SP:SPX","TVC:DJI","BITSTAMP:BTCUSD","BITSTAMP:XRPUSD","BITSTAMP:ETHUSD","COINBASE:EOSUSD","COINBASE:LTCUSD","FX:USDCAD","FX:EURUSD","FX:USDJPY","FX:GBPUSD","FX_IDC:XAUUSD","NYMEX:CL1!"],"default":["SP:SPX","TVC:DXY","BITSTAMP:BTCUSD","BINANCE:BTCUSDT","FX:EURUSD","FX:GBPUSD","FX:USDJPY","NASDAQ:AAPL","NASDAQ:TSLA","TVC:USOIL","TVC:UKOIL","COMEX:GC1!","TVC:VIX","TVC:GOLD"],"es":["TVC:IBEX35","EURONEXT:SABE","BME:SAN","BME:TEF","BME:IBE","BME:REP","SP:SPX","TVC:NDX","TVC:SX5E","XETR:DAX","BME:BKIA","BITSTAMP:BTCUSD","BITSTAMP:XRPUSD","BITSTAMP:ETHUSD","COINBASE:EOSUSD","COINBASE:LTCUSD","FX:EURUSD","FX:USDJPY","BME:ELE","BME:AMS","BME:BKT","BME:TL5"],"fr":["TVC:CAC40","XETR:DAX","TVC:US30","SP:SPX","BITSTAMP:BTCUSD","BITSTAMP:XRPUSD","BITSTAMP:ETHUSD","COINBASE:EOSUSD","COINBASE:LTCUSD","FX:EURUSD","FX:EURGBP","FX:USDJPY","FX:GBPUSD","TVC:DXY","NYMEX:CL1!","LSE:ACA","LSE:GLE","LSE:ENGI","NASDAQ:UG"],"id":["FX_IDC:USDIDR","FX:EURUSD","FX:USDJPY","FX:AUDUSD","TVC:DXY","SP:SPX","TVC:NI225","BITSTAMP:BTCUSD","BITSTAMP:XRPUSD","BITSTAMP:ETHUSD","COINBASE:EOSUSD","COINBASE:LTCUSD","FX_IDC:XAUUSD","FX_IDC:XAGUSD","TVC:UKOIL","NYMEX:CL1!"],"in":["NSE:NIFTY","NSE:BANKNIFTY","BSE:SENSEX","FX_IDC:USDINR","FX_IDC:EURINR","SP:SPX","AMEX:SPY","TVC:NDX","TVC:DJI","TVC:DXY","TVC:UKX","XETR:DAX","TVC:NI225","BITSTAMP:BTCUSD","BITSTAMP:XRPUSD","BITSTAMP:ETHUSD","COINBASE:EOSUSD","COINBASE:LTCUSD","FX:EURUSD"],"it":["MIL:IMIB","FX:EURUSD","FX:EURGBP","FX:USDJPY","FX:GBPUSD","TVC:DXY","TVC:UKX","XETR:DAX","SP:SPX","BITSTAMP:BTCUSD","BITSTAMP:XRPUSD","BITSTAMP:ETHUSD","COINBASE:EOSUSD","COINBASE:LTCUSD","NYMEX:CL1!"],"ja":["SP:SPX","TVC:NI225","ASX:XJO","BITSTAMP:BTCUSD","BITSTAMP:XRPUSD","BITSTAMP:ETHUSD","COINBASE:EOSUSD","COINBASE:LTCUSD","FX:USDJPY","FX:EURJPY","OTC:IHRMF","CME:NY1!"],"kr":["FX_IDC:USDKRW","FX_IDC:JPYKRW","FX:USDJPY","SP:SPX","TVC:NI225","INDEX:HSCE","TVC:DXY","BITSTAMP:BTCUSD","BITSTAMP:XRPUSD","BITSTAMP:ETHUSD","COINBASE:EOSUSD","COINBASE:LTCUSD","KORBIT:BTCKRW","NYMEX:CL1!","FX_IDC:XAUUSD"],"ms_MY":["FX_IDC:USDMYR","FX_IDC:SGDMYR","FX:EURUSD","FX:GBPUSD","NYMEX:CL1!","TVC:UKOIL","INDEX:KLSE","BITSTAMP:BTCUSD","BITSTAMP:XRPUSD","BITSTAMP:ETHUSD","COINBASE:EOSUSD","COINBASE:LTCUSD","FX_IDC:XAUUSD"],"pl":["FX_IDC:USDPLN","FX_IDC:EURPLN","FX:EURUSD","FX:USDJPY","FX:GBPUSD","XETR:DAX","TVC:UKX","SP:SPX","NYMEX:CL1!","BITSTAMP:BTCUSD","BITSTAMP:XRPUSD","BITSTAMP:ETHUSD","COINBASE:EOSUSD","COINBASE:LTCUSD"],"ru":["MOEX:IMOEX","MOEX:RTSI","BITSTAMP:BTCUSD","BITSTAMP:XRPUSD","BITSTAMP:ETHUSD","COINBASE:EOSUSD","COINBASE:LTCUSD","MOEX:USDRUB_TOM","MOEX:EURRUB_TOM","MOEX:SBER","MOEX:GAZP","MOEX:VTBR","MOEX:LKOH","MOEX:MGNT","ICEEUR:BRN1!","NYMEX:CL1!","NYMEX:NG1!","TVC:NDX","TVC:SX5E","XETR:DAX","TVC:FTMIB"],"tr":["FX:USDTRY","FX:EURTRY","XETR:DAX","SP:SPX","BITSTAMP:BTCUSD","BITSTAMP:XRPUSD","BITSTAMP:ETHUSD","COINBASE:EOSUSD","COINBASE:LTCUSD","NYMEX:CL1!","FX_IDC:XAUUSD"],"uk":["TVC:UKX","XETR:DAX","TVC:SX5E","BITSTAMP:BTCUSD","BITSTAMP:XRPUSD","BITSTAMP:ETHUSD","COINBASE:EOSUSD","COINBASE:LTCUSD","FX:GBPUSD","FX_IDC:GBPEUR","LSE:LLOY","LSE:BARC","SP:SPX","AMEX:SPY","TVC:NDX","TVC:DJI","TVC:DXY","TVC:NI225","FX:EURUSD"]}') },rzpF:function(t,e,o){"use strict";o.d(e,"a",(function(){return i})),o.d(e,"b",(function(){return r})),o.d(e,"c",(function(){return s}));var n=o("+GxX");function i(t,e){void 0===e&&(e=!0);var o=document.createElement("script");return o.async=e,o.src=t,document.head.appendChild(o),o}function r(t){var e=document.createElement("img");return e.src=t,e}function s(){return Object(n.isFeatureEnabled)("marketing-analytics")}},sE80:function(t,e){"undefined"!=typeof window&&(Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector||Element.prototype.mozMatchesSelector),Element.prototype.closest||(Element.prototype.closest=function(t){for(var e=this;e&&1===e.nodeType;e=e.parentNode)if(e.matches(t))return e;return null}))},sEom:function(t,e,o){"use strict";var n=Object.assign||function(t){for(var e=1;e').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);var s=this._options.additionalClass?" "+this._options.additionalClass:"",a=this._options.alwaysVisible?" active-always":"";this._$scrollBarWrapper=$('
').appendTo(this._$wrapper),this._$scrollBar=$('
').appendTo(this._$scrollBarWrapper),this._onScroll()}r.prototype.isTouch=function(){return this._touch},r.prototype.getScrollBar=function(){return this._$scrollBar},r.prototype._defaultOptions={headerHeight:0,additionalClass:"",alwaysVisible:!1,showBottomShadow:!0,scrollMarginTop:1,bubbleScrollEvent:!1},r.prototype.initDraggable=function(){if(this._dragInitialized)return this;var t=this;return n(this._$scrollBar).draggable({axis:"y",containment:this._$scrollBarWrapper,start:function(){t._dragging=!0},stop:function(){t._dragging=!1},drag:function(e,o){t.updateScroll()}}),this._dragInitialized=!0,this},r.prototype.updateScroll=function(){if(this._touch)return this ;var t=Math.ceil(this._$scrollBar.position().top-this._scroll_margin_top-this._header_height),e=this.getContainerHeightWithoutHeader(),o=this._$content.outerHeight(),n=o-e-1;return e<=0||(this._scroll_target_top=n<=0?this._header_height:Math.min(-t*o/e+this._header_height,this._header_height),t+this._$scrollBar.height()+2>=e?this.scrollToEnd():(this._$content.css("top",this._scroll_target_top+"px"),this._onScroll())),this},r.prototype.getContainerHeightWithoutHeader=function(){return this._$wrapper[0].getBoundingClientRect().height-this._header_height},r.prototype.getContainerHeight=function(){return this._$wrapper[0].getBoundingClientRect().height},r.prototype.getContentHeight=function(){return this._$content[0].getBoundingClientRect().height},r.prototype.updateScrollBar=function(){if(this._touch)return this;var t=this._$content.position().top,e=this.getContentHeight(),o=this.getContainerHeight(),n=this.getContainerHeightWithoutHeader(),i=1+this._header_height,r=n-2,s=(Math.abs(t)-this._header_height)*r/e,a=o*o/e;return this.isContentShort()?(this._$scrollBar.addClass("js-hidden"),this._$wrapper.removeClass("sb-scroll-active")):(this._$scrollBar.removeClass("js-hidden").height(a).css("top",i+s),this._$wrapper.addClass("sb-scroll-active"),this.initDraggable()),this},r.prototype.scroll=function(t,e){var o=this._$content.position().top,n=this._$content.outerHeight()-this.getContainerHeightWithoutHeader()-1,i=e||this._scroll_speed;return n<=0||(this._scroll_target_top=Math.max(-n+this._header_height,Math.min(this._header_height,o+t*i)),this.setContentTop(this._scroll_target_top),this._onScroll())},r.prototype.animateTo=function(t){if(this._touch)return this;var e=this._$content.outerHeight()-this.getContainerHeightWithoutHeader()-1;if(e<=0)return!0;this._scroll_target_top=Math.max(-e+this._header_height,Math.min(this._header_height,-t)),this._$content.animate({top:this._scroll_target_top},500,function(){this._onScroll()}.bind(this))},r.prototype.resize=function(){if(!this._bottomFixed){var t=this._$content.outerHeight(),e=this._$wrapper.outerHeight();!this._options.vAlignBottom&&tr&&t+e.areaHeights?s-t-e.areaHeight:r-t}else"top"===e.position&&(a=r-t);return this.scroll(a,1),this._onScroll(),!1}, r.prototype.scrollToEnd=function(){var t=this._$content.position().top,e=this._$content.outerHeight(),o=this._$wrapper.outerHeight(),n=e>o?t+(o-(e+t))+1:1;return this.setContentTop(n),this._onScroll(),this},r.prototype.scrollToStart=function(){return this.setContentTop(this._header_height),this._onScroll(),this},r.prototype.currentPosition=function(){return Math.round(this._$content.position().top)},r.prototype.atStart=function(){return Math.round(this._$content.position().top)>=this._header_height},r.prototype.atEnd=function(t){"number"==typeof t&&isFinite(t)||(t=0);var e=Math.round(this._$content.position().top),o=this._$content.outerHeight(),n=this._$wrapper.outerHeight();return o-Math.abs(e)-1<=n+t},r.prototype._onScroll=function(t){this._touch||this._$content.css("bottom","auto"),this.scrolled.fire(),this._dragging&&!0!==t||this.updateScrollBar();var e=this.atStart(),o=this.atEnd();return this._$shadowTop&&this._$shadowTop.toggleClass("i-invisible",!!e),this._$shadowBottom&&this._$shadowBottom.toggleClass("i-invisible",!!o),this._onContentVisible(),!this._atStart&&e?(this._atStart=!0,this.scrolltostart.fire()):this._atStart&&!e&&delete this._atStart,!this._atEnd&&o?(this._atEnd=!0,this.scrolltoend.fire()):this._atEnd&&!o&&delete this._atEnd,this._options.vAlignBottom&&(this._stickyBottom=this._$content.outerHeight()-Math.abs(this._$content.position().top)-this._$wrapper.outerHeight()),!(!this._atStart&&!this._atEnd||("function"==typeof this._options.bubbleScrollEvent?!this._options.bubbleScrollEvent():!this._options.bubbleScrollEvent))},r.prototype.checkContentVisibility=function(){this._onContentVisible()},r.prototype.subscribeToContentVisible=function(t,e,o){this.visibilityCallbacks.push({id:t,$el:e,callback:o})},r.prototype.triggerVisibilityCallbacks=function(t){this._onContentVisible(t)},r.prototype._contentIsVisible=function(t){return t.$el.position().top>-1*this.currentPosition()},r.prototype._onContentVisible=function(t){if(this.visibilityCallbacks.length){var e=t||this._contentIsVisible.bind(this),o=[],n=this.visibilityCallbacks.filter((function(t,n){if(!$.contains(this._$content,t.$el[0]))return!1;var i=e(t);return i&&o.push(n),!i}),this);o.forEach((function(e){this.visibilityCallbacks[e].callback(!!t)}),this),delete this.visibilityCallbacks,this.visibilityCallbacks=n}},r.prototype.save=function(){return this._saved={top:this._$content.position().top,height:this._$content.outerHeight()},this},r.prototype.restore=function(){if(this._saved){if(this._saved.top===this._$content.position().top&&this._saved.height===this._$content.outerHeight())return delete this._saved,this;this._options.vAlignBottom&&(this._saved.top-=this._$content.outerHeight()-this._saved.height,this._saved.top>this._header_height&&(this._saved.top=this._header_height)),this.setContentTop(this._saved.top),delete this._saved,this._onScroll(!0)}return this},r.prototype.fixBottom=function(){if(this._bottomFixed)return this;if(this._touch){var t=this._$content.outerHeight(),e=this._$wrapper.scrollTop() ;this._tempIntervalID=setInterval(function(){this._$wrapper.scrollTop(e+(this._$content.outerHeight()-t))}.bind(this),0)}else this._$content.css({top:"auto",bottom:this._$wrapper.outerHeight()-this._$content.position().top-this._$content.outerHeight()});return this._bottomFixed=!0,this},r.prototype.releaseBottom=function(){return this._bottomFixed?(this._touch?clearInterval(this._tempIntervalID):this._$content.css({top:this._$content.position().top,bottom:"auto"}),delete this._bottomFixed,this._onScroll(),this):this},r.prototype.setContentTop=function(t){return this._touch?this._options.vAlignBottom&&this._$content.outerHeight()=9?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],r=Array.prototype.slice;if(t.event.fixHooks)for(var s=n.length;s;)t.event.fixHooks[n[--s]]=t.event.mouseHooks;var a=t.event.special.mousewheel={version:"3.1.12",setup:function(){if(this.addEventListener)for(var e=i.length;e;)this.addEventListener(i[--e],l,!1);else this.onmousewheel=l;t.data(this,"mousewheel-line-height",a.getLineHeight(this)),t.data(this,"mousewheel-page-height",a.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var e=i.length;e;)this.removeEventListener(i[--e],l,!1);else this.onmousewheel=null;t.removeData(this,"mousewheel-line-height"),t.removeData(this,"mousewheel-page-height")},getLineHeight:function(e){var o=t(e),n=o["offsetParent"in t.fn?"offsetParent":"parent"]();return n.length||(n=t("body")),parseInt(n.css("fontSize"),10)||parseInt(o.css("fontSize"),10)||16},getPageHeight:function(e){return t(e).height()},settings:{adjustOldDeltas:!0,normalizeOffset:!0}};function l(n){var i=n||window.event,s=r.call(arguments,1),l=0,d=0,h=0,p=0,_=0,f=0;if((n=t.event.fix(i)).type="mousewheel","detail"in i&&(h=-1*i.detail),"wheelDelta"in i&&(h=i.wheelDelta),"wheelDeltaY"in i&&(h=i.wheelDeltaY),"wheelDeltaX"in i&&(d=-1*i.wheelDeltaX),"axis"in i&&i.axis===i.HORIZONTAL_AXIS&&(d=-1*h,h=0),l=0===h?d:h,"deltaY"in i&&(l=h=-1*i.deltaY),"deltaX"in i&&(d=i.deltaX,0===h&&(l=-1*d)),0!==h||0!==d){if(1===i.deltaMode){ var g=t.data(this,"mousewheel-line-height");l*=g,h*=g,d*=g}else if(2===i.deltaMode){var m=t.data(this,"mousewheel-page-height");l*=m,h*=m,d*=m}if(p=Math.max(Math.abs(h),Math.abs(d)),(!o||p=1?"floor":"ceil"](l/o),d=Math[d>=1?"floor":"ceil"](d/o),h=Math[h>=1?"floor":"ceil"](h/o),a.settings.normalizeOffset&&this.getBoundingClientRect){var v=this.getBoundingClientRect();_=n.clientX-v.left,f=n.clientY-v.top}return n.deltaX=d,n.deltaY=h,n.deltaFactor=o,n.offsetX=_,n.offsetY=f,n.deltaMode=0,s.unshift(n,l,d,h),e&&clearTimeout(e),e=setTimeout(c,200),(t.event.dispatch||t.event.handle).apply(this,s)}}function c(){o=null}function u(t,e){return a.settings.adjustOldDeltas&&"mousewheel"===t.type&&e%120==0}t.fn.extend({mousewheel:function(t){return t?this.bind("mousewheel",t):this.trigger("mousewheel")},unmousewheel:function(t){return this.unbind("mousewheel",t)}})})?n.apply(e,i):n)||(t.exports=r)},t2oF:function(t){t.exports=JSON.parse('{"OK":"OK","ERR":"ERR","SYMBOL_NOT_AVAILABLE_FOR_ANON":"SYMBOL_NOT_AVAILABLE_FOR_ANON","DELAY_NOT_AVAILABLE":"DELAY_NOT_AVAILABLE","NEED_SIGN_AGREEMENT":"NEED_SIGN_AGREEMENT","NEED_ADD_SERVICE":"NEED_ADD_SERVICE"}')},tqok:function(t,e,o){"use strict";o.r(e),o.d(e,"INVALID_TIME_POINT_INDEX",(function(){return n}));var n=-2e6},tzRX:function(t,e){t.exports=''},uOxu:function(t,e,o){"use strict";o.r(e),o.d(e,"LOGLEVEL",(function(){return n})),o.d(e,"getLogLevel",(function(){return _})),o.d(e,"isHighRateEnabled",(function(){return f})),o.d(e,"setLogLevel",(function(){return g})),o.d(e,"getRawLogHistory",(function(){return m})),o.d(e,"serializeLogHistoryEntry",(function(){return v})),o.d(e,"getLogHistory",(function(){return y})),o.d(e,"getLogger",(function(){return w})),o.d(e,"loggingOn",(function(){return C})),o.d(e,"loggingOff",(function(){return E}));var n,i="undefined"!=typeof window?window:{},r=!1;try{localStorage.getItem(""),r=!0}catch(x){}!function(t){t[t.ERROR=1]="ERROR",t[t.WARNING=2]="WARNING",t[t.INFO=3]="INFO",t[t.NORMAL=4]="NORMAL",t[t.DEBUG=5]="DEBUG"}(n||(n={}));var s=0,a=[],l=null,c=null,u=null,d=NaN,h=n.WARNING,p=!1;function _(){return h}function f(){return p}function g(t){t=Math.max(n.ERROR,Math.min(n.DEBUG,t)),h=t,T()}function m(t,e){var o=a.reduce((function(t,e){return t.concat(e)}),[]);return o.sort((function(t,e){return t.id-e.id})),void 0!==e&&(o=o.filter((function(t){return t.subSystemId===e}))),"number"==typeof t&&(o=o.slice(-t)),o}function v(t){ return new Date(t.timestamp).toISOString()+":"+t.subSystemId+":"+t.message.replace(/"/g,"'")}function y(t,e){return function(t,e){var o,n=0;for(o=t.length-1;o>=1&&(n+=8*(1+encodeURIComponent(t[o]).length),!(o-1>0&&n+8*(1+encodeURIComponent(t[o-1]).length)>e));o--);return t.slice(o)}(m(t,e).map(v),75497472)}function b(t,e,o,i){if(e!==c||i.id!==u){var r=new Date;if(t<=n.NORMAL&&function(t,e,o,n,i){var r={id:s,message:String(e),subSystemId:n,timestamp:Number(t)};s+=1,o.push(r),void 0!==i&&o.length>i&&o.splice(0,1)}(r,e,o,i.id,i.maxCount),t<=h&&(!i.highRate||f())&&(!l||i.id.match(l))){var a=r.toISOString()+":"+i.id+":"+e;switch(t){case n.DEBUG:console.debug(a);break;case n.INFO:case n.NORMAL:i.color?console.log("%c"+a,"color: "+i.color):console.log(a);break;case n.WARNING:console.warn(a);break;case n.ERROR:console.error(a)}c=e,u=i.id,d&&clearTimeout(d),d=setTimeout((function(){c=null,u=null,d=NaN}),1e3)}}}function w(t,e){void 0===e&&(e={});var o=[];a.push(o);var i=Object.assign(e,{id:t});function r(t){return function(e){return b(t,e,o,i)}}return{logDebug:r(n.DEBUG),logError:r(n.ERROR),logInfo:r(n.INFO),logNormal:r(n.NORMAL),logWarn:r(n.WARNING)}}var S=w("logger"),C=i.lon=function(t,e){g(n.DEBUG),S.logNormal("Debug logging enabled"),p=Boolean(t),l=e||null,T()},E=i.loff=function(){g(n.INFO),S.logInfo("Debug logging disabled")};function T(){try{r&&(localStorage.setItem("tv.logger.logHighRate",String(p)),localStorage.setItem("tv.logger.loglevel",String(h)))}catch(t){S.logWarn("Cannot save logger state (level: "+h+", high-rate: "+p+") to localStorage: "+t.message)}}!function(){p=!!r&&"true"===localStorage.getItem("tv.logger.logHighRate");var t=parseInt(r&&localStorage.getItem("tv.logger.loglevel")||"");Number.isNaN(t)&&(t=n.WARNING),g(t),S.logNormal("Init with settings - level: "+h+", high-rate: "+p)}(),i.performance&&i.performance.now?S.logNormal("Sync logger and perf times, now is "+i.performance.now()):S.logWarn("Perf time is not available")},wi9r:function(t,e,o){"use strict";(function(t){var e=o("0waE").randomHash;function n(t){this._chartApi=t,this._sessionid="qs_"+e(),this._sessionstarted=!1}n.prototype.destroy=function(){this._sessionstarted&&(this._chartApi.quoteDeleteSession(this._sessionid),this._sessionid=null,this._sessionstarted=!1)},n.prototype.connected=function(){return this._chartApi.connected()},n.prototype.connect=function(t){this._globalHandler=t,this._chartApi.createSession(this._sessionid,this),this._chartApi.connect()},n.prototype.disconnect=function(){this._chartApi.disconnect()},n.prototype.quoteAddSymbols=function(t,e){t=[].concat(t),e&&e.forcePermission&&(t=t.concat({flags:["force_permission"]})),this._chartApi.quoteAddSymbols(this._sessionid,t)},n.prototype.quoteRemoveSymbols=function(t){this._chartApi.quoteRemoveSymbols(this._sessionid,t)},n.prototype.quoteFastSymbols=function(t){this._chartApi.quoteFastSymbols(this._sessionid,t)},n.prototype.quoteSetFields=function(t){this._chartApi.quoteSetFields(this._sessionid,t)},n.prototype.onMessage=function(t){switch(t.method){case"connected": this._sessionstarted||(this._chartApi.quoteCreateSession(this._sessionid),this._sessionstarted=!0);break;case"disconnected":this._sessionstarted=!1}this._globalHandler(t)},n.prototype.quoteHibernateAll=function(t){this._chartApi.quoteHibernateAll(this._sessionid)},TradingView.QuoteSession=n,t&&t.exports&&(t.exports=n)}).call(this,o("YuTi")(t))},wuAJ:function(t,e,o){"use strict";function n(t){var e=document.createElement("a");return e.href=t,a(e)&&s(e)&&r(e)}function i(t){var e=document.createElement("a");return e.href=t,s(e)&&r(e)}o.d(e,"b",(function(){return n})),o.d(e,"c",(function(){return i})),o.d(e,"a",(function(){return l}));var r=function(t){return!t.username},s=function(t){return"http:"===t.protocol||"https:"===t.protocol},a=function(t){return t.hostname===location.hostname||!/^\d+\.\d+\.\d+\.\d+$/.test(t.hostname)&&l(t.hostname)};function l(t,e){void 0===e&&(e=window.location.hostname);var o="."===e.slice(-1)?3:2,n=e.toLowerCase().split(".").slice(-o),i=t.toLowerCase().split(".").slice(-n.length);return n.join(".")===i.join(".")}},"x+tH":function(t,e,o){"use strict";var n;o.r(e),o.d(e,"WSMode",(function(){return n})),function(t){t[t.Text=1]="Text",t[t.Binary=2]="Binary"}(n||(n={}))},xTrU:function(t,e,o){"use strict";o.r(e);o("a4bl");var n=o("mrSG"),i=o("Eyy1"),r=o("Mrs/"),s=o("JgDS"),a=o("IuUg");function l(t,e,o){if(void 0===o&&(o={}),null===t.parentElement)return console.warn("Can not wrap 'elWidgetContainer' because it has no parentElement"),t;var l=null,c=document.querySelector(".js-embed-widget-body"),u=null!==c;if(u){c=Object(i.ensureNotNull)(c),l=Object(i.ensureNotNull)(c.parentElement);var d=document.querySelector(".js-embed-widget-head");null===d&&((d=document.createElement("div")).classList.add("tv-embed-widget-wrapper__header"),d.classList.add("js-embed-widget-head"),l.insertBefore(d,c))}else(l=document.createElement("div")).classList.add("tv-embed-widget-wrapper"),l.innerHTML='
',c=l.querySelector(".js-embed-widget-body");if(o.overflowAuto&&c.classList.add("tv-embed-widget-wrapper__body--overflow_auto"),o.showBorderOnTransparent&&c.classList.add("tv-embed-widget-wrapper__body--border-on-transparent"),!o.isWhiteLabel){var h=Object(r.getTVHostFromLocale)(o.locale||"en"),p=e?Object(s.buildUtmQueryString)(e):"",_="https://"+h+(p?"?"+p:""),f=!document.documentElement.classList.contains("is-transparent")||Boolean(o.showBorderOnTransparent);c.appendChild(Object(a.createCopyrightLabel)(Object(n.__assign)({url:_,snapToEdge:f},o.copyrightOptions)))}return u||(t.parentElement.insertBefore(l,t),c.appendChild(t)),t}o.d(e,"createEmbedWidgetWrapper",(function(){return l}))},xlbu:function(t,e,o){"use strict";o.r(e),o.d(e,"Telemetry",(function(){return u})),o.d(e,"telemetry",(function(){return d}));o("bSeV");var n=o("aIyQ"),i=o.n(n),r=o("BHQF"),s=o("qFKp"),a=(o("iKPL"), o("uOxu")),l=Object(a.getLogger)("Common.Telemetry"),c=["before_websocket_connection_time_frame","websocket_connection_time_frame","first_series_full_time_frame","page_full_load_time_frame","page_load_time_frame"],u=function(){function t(){this.reportSent=new i.a,this.timeCounters={series:{marks:[]},study:{},pine:{}},this._timeout=null,this._commonAdditionalData={cluster:null,userId:"0"},this._reportStash={}}return t.prototype.setSessionInfo=function(t){var e=this._parseCluster(t);null!==e&&(this._commonAdditionalData.cluster=e)},t.prototype.sendReport=function(t,e,o){if(this._isAbleToSendReport(e)){var n=this._getSubserviceType(t),i=this._getHost(t,n);null!==i?(o=void 0===o?{count:1}:o,this._addReportToStash(o,e,i),this._timeout||(this._timeout=setTimeout(this._sendTelemetryToService.bind(this),15e3))):l.logError("Unable to get host for counter: "+e+", metric type: "+t+", serivce type: "+n)}},t.prototype.sendChartReport=function(t,e,o){void 0===o&&(o=!0),this._updateUserInfo(),e=void 0===e?{count:1}:e,o&&(e=this._appendCommonAdditionalInfo(e,["cluster","userId"])),this.sendReport("charts",t,e)},t.prototype._updateUserInfo=function(){var t="user"in window&&"id"in window.user?window.user.id:"0";this._commonAdditionalData.userId=String(t)},t.prototype._isAbleToSendReport=function(t){var e=window.TELEMETRY_HOSTS,o=c.includes(t),n=Boolean(window.TradingView.onChartPage||Object(s.onWidget)());return e&&(!o||n)},t.prototype._sendTelemetryToService=function(){for(var t in this._reportStash)if(this._reportStash.hasOwnProperty(t)){var e=this._renameAllParams(this._reportStash[t]),o={event:"report_stash",params:this._cleanAllParams(e)};l.logDebug("Report to host: "+t+"; stash: "+JSON.stringify(this._reportStash[t])),this.reportSent.fire(this._reportStash[t]),delete this._reportStash[t],Object(r.fetch)(t+"/report",{method:"POST",headers:new Headers({"Content-Type":"application/json"}),body:JSON.stringify(o)})}this._timeout=null},t.prototype._getHost=function(t,e){var o=window.TELEMETRY_HOSTS,n=o[t]&&o[t][e];return Boolean(n)?n:null},t.prototype._getSubserviceType=function(t){var e="free";return Object(s.onWidget)()?e="widget":window.user.is_pro&&(e="pro"),["charts","site"].includes(t)||(e="all"),e},t.prototype._parseCluster=function(t){var e;try{e=JSON.parse(t).session_id}catch(n){return l.logError("Could not parse cluster id (session id)"),null}var o=/(.*@)(.*)/gi.exec(e);return null!==o&&o.length>=3?o[2]:null},t.prototype._appendCommonAdditionalInfo=function(t,e){var o=this;return e.forEach((function(e){e in o._commonAdditionalData&&(t.additional=t.additional||{},t.additional[e]=o._commonAdditionalData[e])})),t},t.prototype._renameAllParams=function(t){var e=this,o={},n=function(n){t.hasOwnProperty(n)&&(o[n]=[],t[n].forEach((function(t){o[n].push(e._renameEntryParams(t))})))};for(var i in t)n(i);return o},t.prototype._renameEntryParams=function(t){var e={count:"c",value:"v",text:"t",additional:"a"};return Object.keys(t).reduce((function(o,n){return o[e[n]]=t[n],o}),{})},t.prototype._cleanAllParams=function(t){ var e=this,o={},n=function(n){if(t.hasOwnProperty(n)){o[n]=[];var i={c:0};t[n].forEach((function(t){var r=e._cleanEntryParams(t),s=Object.keys(r).length;1===s&&void 0!==r.c?i.c+=r.c:s>0&&o[n].push(r)})),i.c>0&&o[n].push(i),0===o[n].length&&delete o[n]}};for(var i in t)n(i);return o},t.prototype._cleanEntryParams=function(t){var e=Object.keys(t).reduce((function(e,o){return"c"!==o&&"t"!==o||t[o]?(e[o]=t[o],e):e}),{});return"c"in e||"v"in e||"t"in e?e:{}},t.prototype._addReportToStash=function(t,e,o){o in this._reportStash||(this._reportStash[o]={}),e in this._reportStash[o]||(this._reportStash[o][e]=[]),Object.keys(t).length>0&&this._reportStash[o][e].push(t)},t}(),d=new u},y8Ih:function(t,e,o){"use strict";o.r(e);var n={sf_dly:0,sf_rt:0};function i(t){return n.hasOwnProperty(t)}function r(t){return!!t&&(!(void 0===t.symbolname||!i(t.symbolname))||Boolean("permission_denied"===t.status&&t.values&&void 0!==t.values.alternative&&i(t.values.alternative)))}o.d(e,"isSfQuoteData",(function(){return r}))},zDbI:function(t,e,o){"use strict";o.r(e),o.d(e,"CHART_FONT_FAMILY",(function(){return i}));var n=o("mNbo");var i=Object(n.isOnMobileAppPage)("old")?"system-ui, -apple-system":"'Trebuchet MS', Roboto, Ubuntu, sans-serif"},zXvd:function(t,e,o){"use strict";o.r(e),o.d(e,"NumericFormatter",(function(){return i}));var n=o("kcTO"),i=function(){function t(t){this._precision=t}return t.prototype.format=function(e){return(void 0!==this._precision?e.toFixed(this._precision):t.formatNoE(e)).replace(".",n.formatterOptions.decimalSign)},t.prototype.parse=function(t){var e=t.replace(n.formatterOptions.decimalSign,"."),o=parseFloat(e);return this._precision&&(o=+o.toFixed(this._precision)),o},t.formatNoE=function(t){return t>=1e-15&&t<1?t.toFixed(15).replace(/\.?0+$/,""):String(t)},t}()}},[["sEom","runtime","vendors_embed"]]]);