File Manager

Path: /home/liffinac1/domains/fxinvestcapital.us/public_html/db_files/a_data/

Viewing File: widget-toptoolbar.js

(window.webpackJsonp=window.webpackJsonp||[]).push([["widget-toptoolbar"],{"+GaQ":function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var a=n("q1tI");function i(e){return e.map?a.Children.toArray(e.children).map(e.map):e.children}},"/5ju":function(e,t,n){"use strict";n.r(t);var a=n("Kxc7"),i=n("hY0g"),o=n.n(i),r=n("mrSG"),s=function(e){function t(t,n){return e.call(this,t,n,"AUTO_SAVE_ENABLED_CHANGED","Chart.autoSaveEnabled",!0)||this}return Object(r.c)(t,e),t}(n("ulZB").b),l=n("FBuY"),c=n("Vdly"),u=n("FQhm"),h=n("aIyQ"),d=n.n(h),v=function(){function e(e,t,n){this._hasChanges=!1,this._undoHistory=e,this._chartSaver=t,this._globalEvents=n,this._onValueChanged=new d.a,this._subscribe()}return e.prototype.destroy=function(){this._unsubscribe(),this._onValueChanged.destroy()},e.prototype.hasChanges=function(){return this._hasChanges},e.prototype.getOnChange=function(){return this._onValueChanged},e.prototype._subscribe=function(){this._globalEvents.subscribe("chart_loaded",this._handleChartLoaded,this),this._undoHistory.undoStack().onChange().subscribe(this,this._handleChangeUndoStack),this._chartSaver.chartSaved().subscribe(this,this._handleChartSaved)},e.prototype._unsubscribe=function(){this._globalEvents.unsubscribe("chart_loaded",this._handleChartLoaded,this),this._undoHistory.undoStack().onChange().unsubscribe(this,this._handleChangeUndoStack),this._chartSaver.chartSaved().unsubscribe(this,this._handleChartSaved)},e.prototype._setChanges=function(e){this._hasChanges!==e&&(this._hasChanges=e,this._onValueChanged.fire(e))},e.prototype._handleChartLoaded=function(){this._setChanges(!1)},e.prototype._handleChangeUndoStack=function(e){e&&!e.customFlag("doesnt_affect_save")&&this._setChanges(!0)},e.prototype._handleChartSaved=function(e){e&&this._setChanges(!1)},e}(),p=n("/z0S"),f=n("h4Fc"),b=n("YFKU"),_=n("BHQF"),m=n("oOPW"),S=n("Gvuy"),y=n("G++a"),g=n("mNbo"),C=b.t("Error creating the chart layout copy"),E=b.t("We are doing some brief daily maintenance. Charts will be back really soon, thanks for your patience!"),O=b.t("Your browser seems to be offline");function w(e,t){void 0===t&&(t={}),window.runOrSignIn((function(){Object(y.asyncWindowOpen)(function(e,t){return Object(r.b)(this,void 0,void 0,(function(){var n,a,i;return Object(r.d)(this,(function(o){switch(o.label){case 0:return o.trys.push([0,3,,4]),[4,Object(_.fetch)("/charts/"+e+"/clone/",{method:"POST",body:JSON.stringify(t),credentials:"include"})];case 1:return a=o.sent(),i=a.headers.get("location"),a.ok&&i?[2,Object(g.urlWithMobileAppParams)(i)]:[4,a.json()];case 2:return n=o.sent().code,[3,4];case 3:return o.sent(),[3,4];case 4:return"count_limit"===n?Object(m.createGoProDialog)({feature:"savedChartsLimit"}):a||!1!==navigator.onLine?a&&a.status>=500||"feature_disabled"===n?Object(S.showErrorDialog)({content:E}):Object(S.showErrorDialog)({content:C}):Object(S.showErrorDialog)({content:O}),[2,void 0]}}))}))}(e,t))}),{source:"Clone_chart_layout"})}var T=n("zUrt"),M=n("NP3r"),I=n("bKsZ");function A(){var e
;return Object(r.b)(this,void 0,void 0,(function(){var t,n;return Object(r.d)(this,(function(i){switch(i.label){case 0:return window.is_authenticated?a.enabled("saved_charts_count_restriction")?void 0===(t=null===(e=Object(M.getConfig)(I.ProductFeatures.CHART_STORAGE))||void 0===e?void 0:e.limit)||t<=0?[2,!1]:[4,new Promise(T.backend.getChartsCount)]:[2,!0]:[2,!1];case 1:return n=i.sent(),[2,t>n]}}))}))}var R=n("fZEr"),V=function(){function e(e,t){this._visibility=new o.a(!1),this._chartWidgetCollection=e,this._doSave=t}return e.prototype.hide=function(){var e;null===(e=this._hide)||void 0===e||e.call(this),this._visibility.setValue(!1)},e.prototype.visible=function(){return this._visibility.readonly()},e}(),D=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r.c)(t,e),t.prototype.cloneChart=function(){var e=this;this._cloneChart().then((function(){return e._visibility.setValue(!0)}))},t.prototype.show=function(){Object(p.a)(this.cloneChart.bind(this),{source:"Clone chart"})},t.prototype._cloneChart=function(){return Object(r.b)(this,void 0,void 0,(function(){var e,t,n=this;return Object(r.d)(this,(function(i){switch(i.label){case 0:return[4,new Promise((function(e){window.runOrSignIn(e,{source:"Clone_chart_layout"})}))];case 1:i.sent(),i.label=2;case 2:return e=this._chartWidgetCollection,[4,A()];case 3:return i.sent()?(t=this,[4,Object(R.showRename)({title:Object(b.t)("Copy Chart Layout"),text:Object(b.t)("Enter a new chart layout name")+":",maxLength:64,initValue:Object(b.t)("{0} copy",{context:"ex: AAPL chart copy"}).format(e.metaInfo.name.value()),onRename:function(t){var i=t.newValue,o=t.dialogClose;a.enabled("saveload_storage_customization")?(e.metaInfo.uid.deleteValue(),e.metaInfo.id.deleteValue(),e.metaInfo.name.setValue(i),n._doSave()):w(e.metaInfo.uid.value(),{name:i}),o()},onClose:function(){return n._visibility.setValue(!1)}})]):[3,5];case 4:return t._hide=i.sent(),[3,6];case 5:Object(m.createGoProDialog)({feature:"savedChartsLimit"}),i.label=6;case 6:return[2]}}))}))},t}(V),j=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r.c)(t,e),t.prototype.show=function(e,t,n){var a=this;this._saveNewChart(e,t,n).then((function(){return a._visibility.setValue(!0)}))},t.prototype._saveNewChart=function(e,t,n){return Object(r.b)(this,void 0,void 0,(function(){var a,i,o,s=this;return Object(r.d)(this,(function(r){switch(r.label){case 0:return a=this._chartWidgetCollection,i=a.metaInfo.name.value(),[4,A()];case 1:return r.sent()?(o=this,[4,Object(R.showRename)({title:Object(b.t)("Save New Chart Layout"),text:Object(b.t)("Enter a new chart layout name")+":",maxLength:64,initValue:i,onRename:function(i){var o=i.newValue,r=i.dialogClose;a.metaInfo.name.setValue(o),s._doSave(e,t,n),r()},onClose:function(){return s._visibility.setValue(!1)}})]):[3,3];case 2:return o._hide=r.sent(),[3,4];case 3:Object(m.createGoProDialog)({feature:"savedChartsLimit"}),r.label=4;case 4:return[2]}}))}))},t}(V),F=function(e){function t(){
return null!==e&&e.apply(this,arguments)||this}return Object(r.c)(t,e),t.prototype.show=function(){this._renameChart(),this._visibility.setValue(!0)},t.prototype._renameChart=function(){var e=this;Object(p.a)((function(){return Object(r.b)(e,void 0,void 0,(function(){var e,t,n,a=this;return Object(r.d)(this,(function(i){switch(i.label){case 0:return e=this._chartWidgetCollection,t=e.metaInfo.name.value(),n=this,[4,Object(R.showRename)({title:Object(b.t)("Rename Chart Layout"),text:Object(b.t)("Enter a new chart layout name")+":",maxLength:64,initValue:t,onRename:function(t){var n=t.newValue,i=t.dialogClose;e.metaInfo.name.setValue(n),a._doSave(),i()},onClose:function(){return a._visibility.setValue(!1)}})];case 1:return n._hide=i.sent(),[2]}}))}))}),{source:"Rename chart"})},t}(V);n.d(t,"SaveChartService",(function(){return W}));var W=function(){function e(e,t){var a=this;this._autosaveTimer=null,this._watchedAutoSaveEnabled=new o.a,this._toggleAutoSaveEnabledHandler=this._toggleAutoSaveEnabled.bind(this),this._doSave=function(e,t,n,i){var o=a._chartWidgetCollection;void 0!==e&&e(),a._chartSaver.saveChartSilently((function(e){var n;n=o.metaInfo.uid.value(),"/chart/"===location.pathname&&(location.href="/chart/"+n),void 0!==t&&t(e)}),(function(){void 0!==n&&n()}),{autoSave:Boolean(i)})},this._chartWidgetCollection=e,this._chartSaver=t,this._createController=new j(e,this._doSave),this._renameController=new F(e,this._doSave),this._saveAsController=new D(e,this._doSave),this._autoSaveEnabledSetting=new s(l.TVXWindowEvents,c),this._chartSaver.chartSizeLimitExceeded().subscribe(null,(function(){var e=a._chartWidgetCollection.activeChartWidget.value();Promise.all([n.e("dialogs-core"),n.e(12),n.e(21),n.e(37),n.e(15),n.e(35),n.e("chart-size-limit-exceeded-dialog")]).then(function(t){(0,n("HV9R").showSizeLimitExceededDialog)(e)}.bind(null,n)).catch(void 0)})),this._chartSaver.chartHasBeenModified().subscribe(null,(function(){Promise.all([n.e("dialogs-core"),n.e(12),n.e(21),n.e(37),n.e(15),n.e(35),n.e("chart-has-been-modified-dialog")]).then(function(e){(0,n("Oc7A").showChartHasBeenModifiedDialog)(a._stopAutosave.bind(a),a._startAutosave.bind(a))}.bind(null,n)).catch(void 0)})),this._chartChangesWatcher=new v(e.undoHistory,t,u),e.saveKeysPressed().subscribe(this,this.saveChartOrShowTitleDialog);var i=this._autoSaveEnabledSetting.get();i&&this._enableAutoSave(),this._watchedAutoSaveEnabled.setValue(i),this._watchedAutoSaveEnabled.subscribe(this._toggleAutoSaveEnabledHandler),this._autoSaveEnabledSetting.getOnChange().subscribe(this,this._autoSaveEnabledSettingHandler)}return e.prototype.autoSaveEnabled=function(){return this._watchedAutoSaveEnabled},e.prototype.destroy=function(){this._watchedAutoSaveEnabled.unsubscribe(),delete this._watchedAutoSaveEnabled,this._autoSaveEnabledSetting.destroy(),delete this._autoSaveEnabledSetting},e.prototype.getCreateController=function(){return this._createController},e.prototype.getRenameController=function(){return this._renameController},e.prototype.getSaveAsController=function(){
return this._saveAsController},e.prototype.cloneChart=function(){this._saveAsController.cloneChart()},e.prototype.saveChartAs=function(){this._saveAsController.show()},e.prototype.renameChart=function(){this._renameController.show()},e.prototype.saveNewChart=function(e,t,n){this._createController.show(e,t,n)},e.prototype.saveExistentChart=function(e,t,n){this._doSave(e,t,n)},e.prototype.saveChartOrShowTitleDialog=function(e,t,n){var a=this,i=window.saver.isSaveInProcess(),o=this._chartChangesWatcher.hasChanges(),r=!!this._chartWidgetCollection.metaInfo.id.value();window.is_authenticated&&(i||!o&&r)||Object(p.a)((function(){null!=a._chartWidgetCollection.metaInfo.id.value()?a.saveExistentChart(e,t,n):a.saveNewChart(e,t,n)}),{source:"Save chart",sourceMeta:"Chart"})},e.prototype.whenReadyToSave=function(e){this._chartSaver.whenReadyToSave(e)},e.prototype.saveToJSON=function(){return this._chartSaver.saveToJSON()},e.prototype.saveChartSilently=function(e,t,n){this._chartSaver.saveChartSilently(e,t,n)},e.prototype.setAutoSaveEnabled=function(e){var t=this;window.is_authenticated&&window.saver.isSaveInProcess()||Object(p.a)((function(){t._watchedAutoSaveEnabled.setValue(e)}),{source:"AutoSave chart"})},e.prototype.saveChartLineTools=function(e,t){return this._chartSaver.saveChartLineTools(e,t)},e.prototype._autoSaveEnabledSettingHandler=function(e){this._watchedAutoSaveEnabled.setValue(e)},e.prototype._toggleAutoSaveEnabled=function(e){window.is_authenticated&&(e?this._enableAutoSave():this._disableAutoSave(),this._autoSaveEnabledSetting.set(e,{forceFlush:!0}))},e.prototype._enableAutoSave=function(){this._chartChangesWatcher.getOnChange().subscribe(this,this._onStateChanged),this._chartChangesWatcher.hasChanges()&&this._doSave()},e.prototype._disableAutoSave=function(){this._stopAutosave(),this._chartChangesWatcher.getOnChange().unsubscribeAll(this)},e.prototype._onStateChanged=function(e){e?this._startAutosave():this._stopAutosave()},e.prototype._startAutosave=function(){var e=this;a.enabled("charts_auto_save")&&null===this._autosaveTimer&&(this._autosaveTimer=setTimeout((function(){e._autosaveTimer=null,window.is_authenticated?e._chartWidgetCollection.metaInfo.id.value()&&e._doSave(void 0,void 0,void 0,!0):e._startAutosave()}),Object(f.a)()))},e.prototype._stopAutosave=function(){null!==this._autosaveTimer&&(clearInterval(this._autosaveTimer),this._autosaveTimer=null)},e}()},"/z0S":function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var a=n("Kxc7");function i(e,t){a.enabled("saveload_requires_authentication")?window.runOrSignIn(e,t):e()}},"16Al":function(e,t,n){"use strict";var a=n("WbBG");function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,o,r){if(r!==a){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,
string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:i};return n.PropTypes=n,n}},"17x9":function(e,t,n){e.exports=n("16Al")()},"1TxM":function(e,t,n){"use strict";n.d(t,"c",(function(){return l})),n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return u}));var a=n("q1tI"),i=n.n(a),o=n("17x9"),r=n.n(o),s=i.a.createContext({});function l(e,t){r.a.checkPropTypes(t,e,"context","RegistryContext")}function c(e){var t=e.validation,n=e.value;return l(n,t),i.a.createElement(s.Provider,{value:n},e.children)}function u(){return s}},"489C":function(e,t,n){"use strict";n.r(t);var a=n("dm8g"),i=n("oOPW"),o=n("NP3r"),r=n("bKsZ");function s(e,t,n){return t.value||Object(o.enabled)(e,n)}function l(e,t,n){switch(e){case r.ProductFeatures.SCREENER_INTERVALS:return function(e,t){var n=Object(o.getConfig)(r.ProductFeatures.SCREENER_INTERVALS,t);return!(!n||!n.interval)&&n.interval.includes(e.interval)}(t,n);case r.ProductFeatures.SCREENER_AUTO_REFRESH:return s(r.ProductFeatures.SCREENER_AUTO_REFRESH,t,n);case r.ProductFeatures.ALERTS_NO_EXPIRATION:return s(r.ProductFeatures.ALERTS_NO_EXPIRATION,t,n);default:return Object(o.enabled)(e,n)}}function c(e,t,n,a){l(t,a)?e():Object(i.createGoProDialog)(n)}function u(e,t,n,i){void 0===i&&(i={}),Object(a.a)("gopro").then((function(){return c(e,t,n,i)}))}n.d(t,"runOrGoProWithoutSync",(function(){return c})),n.d(t,"runOrGoPro",(function(){return u}))},"6aN0":function(e,t,n){e.exports={"css-value-header-toolbar-height":"38px",toolbar:"toolbar-LZaMRgb9",isHidden:"isHidden-LZaMRgb9",overflowWrap:"overflowWrap-LZaMRgb9",customButton:"customButton-LZaMRgb9",hovered:"hovered-LZaMRgb9"}},"6oLA":function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28"><path fill="currentColor" fill-rule="evenodd" d="M4.56 14a10.05 10.05 0 00.52.91c.41.69 1.04 1.6 1.85 2.5C8.58 19.25 10.95 21 14 21c3.05 0 5.42-1.76 7.07-3.58A17.18 17.18 0 0023.44 14a9.47 9.47 0 00-.52-.91c-.41-.69-1.04-1.6-1.85-2.5C19.42 8.75 17.05 7 14 7c-3.05 0-5.42 1.76-7.07 3.58A17.18 17.18 0 004.56 14zM24 14l.45-.21-.01-.03a7.03 7.03 0 00-.16-.32c-.11-.2-.28-.51-.5-.87-.44-.72-1.1-1.69-1.97-2.65C20.08 7.99 17.45 6 14 6c-3.45 0-6.08 2-7.8 3.92a18.18 18.18 0 00-2.64 3.84v.02h-.01L4 14l-.45-.21-.1.21.1.21L4 14l-.45.21.01.03a5.85 5.85 0 00.16.32c.11.2.28.51.5.87.44.72 1.1 1.69 1.97 2.65C7.92 20.01 10.55 22 14 22c3.45 0 6.08-2 7.8-3.92a18.18 18.18 0 002.64-3.84v-.02h.01L24 14zm0 0l.45.21.1-.21-.1-.21L24 14zm-10-3a3 3 0 100 6 3 3 0 000-6zm-4 3a4 4 0 118 0 4 4 0 01-8 0z"/></svg>'},"8d0Q":function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return o}));var a=n("q1tI");function i(){var e=Object(a.useState)(!1),t=e[0],n=e[1];return[t,{onMouseOver:function(e){o(e)&&n(!0)},onMouseOut:function(e){o(e)&&n(!1)}}]}function o(e){return!e.currentTarget.contains(e.relatedTarget)}},EA1V:function(e,t,n){"use strict";n.r(t);var a=n("mrSG"),i=(n("P5fv"),
n("q1tI")),o=n("TSYQ"),r=n("4O8T"),s=n.n(r),l=n("Kxc7"),c=n("FQhm"),u=n("PoSe"),h=n.n(u),d=n("17x9"),v=n("cvc5"),p=(n("EsMY"),n("+GaQ")),f=n("+GxX"),b=n("KrBX");function _(e){var t,n=e.children,a=e.className,r=e.noLeftDecoration,s=e.noRightDecoration,l=e.noMinimalWidth,c=e.onClick;return i.createElement("div",{className:o(a,b.group,(t={},t[b.noMinimalWidth]=l,t[b.noLeftDecoration]=r,t[b.noRightDecoration]=s,t)),onClick:c},n)}var m=n("tO+E"),S=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._handleMeasure=function(e){var n=e.width;t.props.onWidthChange(n)},t}return Object(a.c)(t,e),t.prototype.render=function(){var e=this.props,t=e.children,n=e.shouldMeasure;return i.createElement(v,{shouldMeasure:n,onMeasure:this._handleMeasure,whitelist:["width"]},i.createElement("div",{className:m.wrap},t))},t}(i.PureComponent),y=n("tU7i"),g=n("Opoj");function C(e){return i.createElement(y.b,Object(a.a)({},e,{forceInteractive:!0,icon:g}))}n("YFKU");var E=n("Iivm"),O=n("a+Yp"),w=n("6oLA"),T={text:window.t("View Only Mode")};function M(e){return i.createElement("div",{className:O.wrap},i.createElement(E.a,{className:O.icon,icon:w}),T.text)}var I,A=n("4Cm8"),R=n("XAms");!function(e){e.SymbolSearch="header-toolbar-symbol-search",e.Intervals="header-toolbar-intervals",e.ChartStyles="header-toolbar-chart-styles",e.Compare="header-toolbar-compare",e.Indicators="header-toolbar-indicators",e.StudyTemplates="header-toolbar-study-templates",e.Alerts="header-toolbar-alerts",e.Layouts="header-toolbar-layouts",e.SaveLoad="header-toolbar-save-load",e.UndoRedo="header-toolbar-undo-redo",e.Properties="header-toolbar-properties",e.PublishDesktop="header-toolbar-publish-desktop",e.PublishMobile="header-toolbar-publish-mobile",e.Fullscreen="header-toolbar-fullscreen",e.Screenshot="header-toolbar-screenshot",e.Replay="header-toolbar-replay",e.Financials="header-toolbar-financials",e.StartTrial="header-toolbar-start-trial"}(I||(I={}));var V=n("8d0Q"),D=n("1TxM"),j=(n("bSeV"),n("JWMC")),F=n("a8bL"),W=Object(f.isFeatureEnabled)("hide-copy-readonly"),x=Object(D.b)(),P=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r._handleMouseOver=function(e){Object(V.a)(e)&&r.setState({isHovered:!0})},r._handleMouseOut=function(e){Object(V.a)(e)&&r.setState({isHovered:!1})},r._activateSymbolSearchMode=function(){r._setMode(2)},r._activateNormalMode=function(){r._setMode(1)},r._handleInnerResize=function(e){var t=r.props.onWidthChange;t&&t(e)},r._handleMeasureAvailableSpace=function(e){var t=e.width,n=r.props.onAvailableSpaceChange;n&&n(t)},r._processCustoms=function(e){var t=r.props.isFake,n=r.state.mode,s=r.context.tools;return e.map((function(e){return i.createElement(_,{className:o(1!==n&&F.hidden)},i.createElement(s.Custom,Object(a.a)({},e,{isFake:t})))}))},r._fixLastGroup=function(e,t,n){if(t===n.length-1&&i.isValidElement(e)&&e.type===_){var a=void 0!==r.context.tools.Publish&&!r.props.readOnly;return i.cloneElement(e,{noRightDecoration:a})}return e},Object(D.c)(n,{tools:d.any.isRequired}),r.state={isHovered:!1,
mode:1,isAuthenticated:window.is_authenticated},r}return Object(a.c)(t,e),t.prototype.componentDidMount=function(){window.loginStateChange.subscribe(this,this._onLoginStateChange)},t.prototype.componentWillUnmount=function(){window.loginStateChange.unsubscribe(this,this._onLoginStateChange)},t.prototype.render=function(){var e,t,n=this.context.tools,r=this.props,s=r.features,l=r.displayMode,c=r.chartSaver,u=r.studyMarket,h=r.readOnly,d=r.saveLoadSyncEmitter,f=r.leftCustomButtons,b=r.rightCustomButtons,m=r.showScrollbarWhen,y=r.width,g=void 0===y?0:y,E=r.isFake,O=void 0!==E&&E,w=this.state,T=w.isHovered,V=w.mode,D=w.isAuthenticated,j=this._processCustoms(f),W=this._processCustoms(b),x=m.includes(l),P=!D&&Boolean(n.StartTrial);return i.createElement("div",{className:o(F.inner,(e={},e[F.fake]=O,e)),onContextMenu:R.b},i.createElement(v,{onMeasure:this._handleMeasureAvailableSpace,whitelist:["width"],shouldMeasure:!O},i.createElement(A.a,{isVisibleFade:Modernizr.mobiletouch&&x,isVisibleButtons:!Modernizr.mobiletouch&&x&&T,isVisibleScrollbar:!1,shouldMeasure:x&&!O,onMouseOver:this._handleMouseOver,onMouseOut:this._handleMouseOut},i.createElement("div",{className:F.content},i.createElement(S,{onWidthChange:this._handleInnerResize,shouldMeasure:O},i.createElement(p.a,{map:this._fixLastGroup},!h&&i.Children.toArray(Object(a.f)([n.SymbolSearch&&i.createElement(_,{key:"symbol",className:2===V&&F.symbolSearch},i.createElement(n.SymbolSearch,{id:O?void 0:I.SymbolSearch,isActionsVisible:s.allowSymbolSearchSpread,isExpanded:2===V,onFocus:this._activateSymbolSearchMode,onBlur:this._activateNormalMode,maxWidth:g})),n.DateRange&&i.createElement(_,{key:"range"},i.createElement(n.DateRange,null)),n.Intervals&&1===V&&i.createElement(_,{key:"intervals"},i.createElement(n.Intervals,{id:O?void 0:I.Intervals,isShownQuicks:s.allowFavoriting,isFavoritingAllowed:s.allowFavoriting,displayMode:l,isFake:O})),n.Bars&&1===V&&i.createElement(_,{key:"styles"},i.createElement(n.Bars,{id:O?void 0:I.ChartStyles,isShownQuicks:s.allowFavoriting,isFavoritingAllowed:s.allowFavoriting,displayMode:l,isFake:O})),n.Compare&&1===V&&i.createElement(_,{key:"compare"},i.createElement(n.Compare,{id:O?void 0:I.Compare,className:F.button,displayMode:l})),n.Indicators&&1===V&&i.createElement(_,{key:"indicators"},i.createElement(n.Indicators,{id:O?void 0:I.Indicators,className:F.button,studyMarket:u,displayMode:l})),n.Financials&&1===V&&i.createElement(_,{key:"financials"},i.createElement(n.Financials,{id:O?void 0:I.Financials,className:F.button,displayMode:l})),n.Templates&&1===V&&i.createElement(_,{key:"templates"},i.createElement(n.Templates,{id:O?void 0:I.StudyTemplates,isShownQuicks:s.allowFavoriting,isFavoritingAllowed:s.allowFavoriting,displayMode:l})),1===V&&n.Alert&&i.createElement(_,{key:"alert"},i.createElement(n.Alert,{id:O?void 0:I.Alerts,className:F.button,displayMode:l})),1===V&&n.AlertReferral&&i.createElement(_,{key:"alert-referral"},i.createElement(n.AlertReferral,{className:F.button,displayMode:l})),n.Replay&&1===V&&i.createElement(_,{key:"replay"
},i.createElement(n.Replay,{id:O?void 0:I.Replay,className:F.button,displayMode:l})),n.UndoRedo&&1===V&&i.createElement(_,{key:"undo-redo"},i.createElement(n.UndoRedo,{id:O?void 0:I.UndoRedo})),n.ScalePercentage&&i.createElement(_,{key:"percentage"},i.createElement(n.ScalePercentage,null)),n.ScaleLogarithm&&i.createElement(_,{key:"logarithm"},i.createElement(n.ScaleLogarithm,null))],j)),1===V?([(t=i.Children.toArray(Object(a.f)([h&&i.createElement(_,{key:"view-only-badge"},i.createElement(M,null)),i.createElement(_,{key:"gap",className:o(F.fill,O&&F.collapse)}),!h&&n.Layout&&i.createElement(_,{key:"layout"},i.createElement(n.Layout,{id:O?void 0:I.Layouts})),this._isSaveLoadVisible()&&n.SaveLoad&&i.createElement(_,{key:"save-load-right"},i.createElement(n.SaveLoad,{id:O?void 0:I.SaveLoad,chartSaver:c,isReadOnly:h,displayMode:l,isFake:O,stateSyncEmitter:d})),n.SaveLoadReferral&&i.createElement(_,{key:"save-load-referral"},i.createElement(n.SaveLoadReferral,{isReadOnly:h,displayMode:l})),s.showLaunchInPopupButton&&n.OpenPopup&&i.createElement(_,{key:"popup"},i.createElement(n.OpenPopup,null)),!h&&n.Properties&&i.createElement(_,{key:"properties"},i.createElement(n.Properties,{id:O?void 0:I.Properties,className:F.iconButton})),!h&&n.Fullscreen&&i.createElement(_,{key:"fullscreen",onClick:this._trackFullscreenButtonClick},i.createElement(n.Fullscreen,{id:O?void 0:I.Fullscreen})),n.Screenshot&&i.createElement(_,{key:"screenshot"},i.createElement(n.Screenshot,{id:O?void 0:I.Screenshot,className:F.iconButton})),P&&n.StartTrial?i.createElement(_,{key:"start-trial"},i.createElement(n.StartTrial,{id:O?void 0:I.StartTrial})):!h&&n.Publish&&i.createElement(_,{key:"publish",className:F.mobilePublish},i.createElement(n.Publish,{id:O?void 0:I.PublishMobile}))],W))).findIndex((function(e){return i.isValidElement(e)&&!!e.key&&-1!==e.key.toString().indexOf("view-only-badge")}))].filter((function(e){return e>=0})).forEach((function(e){t=i.Children.map(t,(function(t,n){if(i.isValidElement(t))switch([e-1,e,e+1].indexOf(n)){case 0:t=i.cloneElement(t,{noRightDecoration:!0});break;case 1:t=i.cloneElement(t,{noLeftDecoration:!0,noRightDecoration:!0});break;case 2:t=i.cloneElement(t,{noLeftDecoration:!0})}return t}))})),t):[i.createElement(_,{key:"gap",className:o(F.fill,2===V&&F.minimalPriority)}),i.createElement(_,{key:"symbol-search-close"},i.createElement(C,{className:o(F.iconButton,F.symbolSearchClose)}))]))))),n.Publish&&!h&&!O&&!P&&i.createElement(n.Publish,{id:I.PublishDesktop,className:F.desktopPublish}))},t.prototype._onLoginStateChange=function(){this.setState({isAuthenticated:window.is_authenticated})},t.prototype._setMode=function(e){this.setState({mode:e})},t.prototype._trackFullscreenButtonClick=function(){Object(j.trackEvent)("GUI","Chart Header Toolbar","fullscreen")},t.prototype._isSaveLoadVisible=function(){return!(this.props.readOnly&&W)},t.contextType=x,t}(i.PureComponent);var k,N=n("hY0g"),L=n.n(N),B=n("ulZB"),z=function(e){function t(t,n,a){return void 0===a&&(a=[]),
e.call(this,t,n,"FAVORITE_CHART_STYLES_CHANGED","StyleWidget.quicks",a)||this}return Object(a.c)(t,e),t}(B.b),H=n("pPtI"),K=n("IVMC"),G=n.n(K),U=function(e){function t(t,n,a){return e.call(this,t,n,"FAVORITE_INTERVALS_CHANGED","IntervalWidget.quicks",a)||this}return Object(a.c)(t,e),t.prototype._serialize=function(e){return G()(e.map(H.normalizeIntervalString))},t.prototype._deserialize=function(e){return G()(Object(H.convertResolutionsFromSettings)(e).filter(H.isResolutionMultiplierValid).map(H.normalizeIntervalString))},t}(B.a),X=n("XotN"),Y=n("LxhU"),Q=n("cSDC"),J=function(){function e(e){this._customIntervalsService=X.b,this._chartApiInstance=e}return e.prototype.getDefaultIntervals=function(){return null===this._chartApiInstance?[]:this._chartApiInstance.defaultResolutions().map(H.normalizeIntervalString)},e.prototype.getCustomIntervals=function(){return this._customIntervalsService.get()},e.prototype.add=function(e,t,n){if(!window.user.is_pro&&n)return n(),null;if(!this.isValidInterval(e,t))return null;var i=this._getIntervalString(e,t),o=Object(H.normalizeIntervalString)(i),r=this.getCustomIntervals();return this._isIntervalDefault(o)||r.includes(o)?null:(this._customIntervalsService.set(Object(H.sortResolutions)(Object(a.f)(Object(a.f)([],r),[o]))),o)},e.prototype.remove=function(e){this._customIntervalsService.set(this.getCustomIntervals().filter((function(t){return t!==e})))},e.prototype.isValidInterval=function(e,t){var n=parseInt(e);return n===this._minMaxTime(n,t)},e.prototype.getOnChange=function(){return this._customIntervalsService.getOnChange()},e.prototype.getPossibleIntervals=function(){return Q.a},e.prototype.getResolutionUtils=function(){return{getMaxResolutionValue:this._getMaxResolutionValue,getTranslatedResolutionModel:H.getTranslatedResolutionModel,mergeResolutions:H.mergeResolutions,sortResolutions:H.sortResolutions}},e.prototype._getMaxResolutionValue=function(e){return Y.Interval.isMinuteHours(e)?Math.floor(Object(H.getMaxResolutionValue)("1")/60):Object(H.getMaxResolutionValue)(e)},e.prototype._isIntervalDefault=function(e){return this.getDefaultIntervals().includes(e)},e.prototype._minMaxTime=function(e,t){return Math.max(1,Math.min(e,this._getMaxResolutionValue(t)))},e.prototype._getIntervalString=function(e,t){var n=parseInt(e),a=Y.Interval.parse(t),i=a.isMinuteHours()?60*n:n;return new Y.Interval(a.kind(),i).value()},e}(),Z=n("FBuY"),q=n("Vdly"),ee=n("yMne"),te=n("Eyy1"),ne=n("LiyS"),ae=((k={})[Y.ResolutionKind.Ticks]=!1,k[Y.ResolutionKind.Seconds]=!1,k[Y.ResolutionKind.Minutes]=!1,k[Y.SpecialResolutionKind.Hours]=!1,k[Y.ResolutionKind.Days]=!1,k[Y.ResolutionKind.Range]=!1,k),ie=function(e){function t(t,n,a){return void 0===a&&(a=ae),e.call(this,t,n,"INTERVALS_MENU_VIEW_STATE_CHANGED","IntervalWidget.menu.viewState",a)||this}return Object(a.c)(t,e),t.prototype.isAllowed=function(e){return Object.keys(ae).includes(e)},t}(B.b),oe={defaultsCollapsed:!1},re=function(e){function t(t,n,a){return void 0===a&&(a=oe),
e.call(this,t,n,"TEMPLATES_MENU_VIEW_STATE_CHANGED","TemplatesWidget.menu.viewState",a)||this}return Object(a.c)(t,e),t}(B.b),se=function(e){function t(t,n){return e.call(this,t,n,"FAVORITE_STUDY_TEMPLATES_CHANGED","StudyTemplates.quicks",[])||this}return Object(a.c)(t,e),t.prototype.remove=function(e){this.set(this.get().filter((function(t){return t!==e})))},t}(B.b),le={Area:3,Bars:0,Candles:1,"Heiken Ashi":8,"Hollow Candles":9,Line:2},ce=["1","30","60"];function ue(e){void 0===e&&(e=[]);var t=e.map((function(e){return le[e]}))||[1,4,5,6];return l.enabled("widget")&&(t=[0,1,3]),t}function he(e){return void 0===e&&(e=[]),Object(H.mergeResolutions)(e,l.enabled("star_some_intervals_by_default")?ce:[])}new U(Z.TVXWindowEvents,q,he()),new z(Z.TVXWindowEvents,q,ue()),new se(Z.TVXWindowEvents,q);var de={tools:d.any.isRequired,isFundamental:d.any,chartApiInstance:d.any,availableTimeFrames:d.any,chartWidgetCollection:d.any,windowMessageService:d.any,favoriteChartStylesService:d.any,favoriteIntervalsService:d.any,intervalService:d.any,favoriteStudyTemplatesService:d.any,studyTemplates:d.any,chartChangesWatcher:d.any,saveChartService:d.any,sharingChartService:d.any,loadChartService:d.any,chartWidget:d.any,favoriteScriptsModel:d.any,intervalsMenuViewStateService:d.any,templatesMenuViewStateService:d.any,financialsDialogController:d.any},ve=n("6aN0");n.d(t,"HeaderToolbar",(function(){return be}));var pe=[],fe=["full","medium"],be=function(e){function t(t){var n,a=e.call(this,t)||this;a._saveLoadSyncEmitter=new s.a,a._handleFullWidthChange=function(e){a._fullWidth=e,a.setState({measureValid:!1})},a._handleFavoritesWidthChange=function(e){a._favoritesWidth=e,a.setState({measureValid:!1})},a._handleCollapseWidthChange=function(e){a._collapseWidth=e,a.setState({measureValid:!1})},a._handleMeasure=function(e){a.setState({availableWidth:e,measureValid:!1})};var i=t.tools,o=t.windowMessageService,r=t.chartWidgetCollection,c=t.chartApiInstance,u=t.availableTimeFrames,d=t.isFundamental,v=t.favoriteIntervalsService,p=t.favoriteChartStylesService,f=t.favoriteStudyTemplatesService,b=t.studyTemplates,_=t.saveChartService,m=t.sharingChartService,S=t.loadChartService,y=t.financialsDialogController;a._showScrollbarWhen=Object(te.ensureDefined)(t.allowedModes).slice(-1),a._panelWidthChangeHandlers=((n={}).full=a._handleFullWidthChange,n.medium=a._handleFavoritesWidthChange,n.small=a._handleCollapseWidthChange,n);var g=t.chartChangesWatcher;a._chartChangesWatcher=g;var C=ue(a.props.defaultFavoriteStyles);a._favoriteChartStylesService=p||new z(Z.TVXWindowEvents,q,C);var E=he(a.props.defaultFavoriteIntervals);return a._favoriteIntervalsService=v||new U(Z.TVXWindowEvents,q,E),a._intervalsMenuViewStateService=new ie(Z.TVXWindowEvents,q),a._intervalService=new J(c),a._templatesMenuVuewStateService=new re(Z.TVXWindowEvents,q),a._registry={tools:i,isFundamental:d,chartWidgetCollection:r,windowMessageService:o,chartApiInstance:c,availableTimeFrames:u,favoriteStudyTemplatesService:f,studyTemplates:b,saveChartService:_,sharingChartService:m,
loadChartService:S,intervalsMenuViewStateService:a._intervalsMenuViewStateService,favoriteChartStylesService:a._favoriteChartStylesService,favoriteIntervalsService:a._favoriteIntervalsService,intervalService:a._intervalService,chartChangesWatcher:a._chartChangesWatcher,chartWidget:r.activeChartWidget.value(),favoriteScriptsModel:ne.FavoriteScriptsModel.getInstance(),templatesMenuViewStateService:a._templatesMenuVuewStateService,financialsDialogController:y},a.state={isVisible:!0,availableWidth:0,displayMode:"full",measureValid:!1,leftCustomButtons:[],rightCustomButtons:[]},a._readOnly=r.readOnly(),a._features={allowFavoriting:l.enabled("items_favoriting"),showIdeasButton:Boolean(a.props.ideas),showLaunchInPopupButton:Boolean(a.props.popupButton),allowSymbolSearchSpread:l.enabled("header_symbol_search")&&!l.enabled("charting_library_base"),allowToolbarHiding:l.enabled("collapsible_header")},a._setDisplayMode=h()(a._setDisplayMode,100),a._negotiateResizer(),a}return Object(a.c)(t,e),t.prototype.componentDidUpdate=function(e,t){var n=this.state,a=n.isVisible,i=n.measureValid;a!==t.isVisible&&(c.emit("toggle_header",a),this._negotiateResizer()),i||this._setDisplayMode()},t.prototype.render=function(){var e,t=this,n=this.props,r=(n.resizerBridge,n.allowedModes),s=Object(a.e)(n,["resizerBridge","allowedModes"]),l=this.state,c=l.displayMode,u=l.availableWidth,h=l.isVisible,d=l.leftCustomButtons,v=l.rightCustomButtons,p=Object(a.a)({features:this._features,readOnly:this._readOnly,isFake:!1,saveLoadSyncEmitter:this._saveLoadSyncEmitter,width:u,leftCustomButtons:d,rightCustomButtons:v},s),f=Object(a.a)(Object(a.a)({},p),{isFake:!0,showScrollbarWhen:pe}),b=Object(te.ensureDefined)(r),_=this.props.tools.PublishButtonManager||i.Fragment;return i.createElement(D.a,{value:this._registry,validation:de},i.createElement(_,null,i.createElement("div",{className:o(ve.toolbar,(e={},e[ve.isHidden]=!h,e)),onClick:this.props.onClick},i.createElement("div",{className:ve.overflowWrap},i.createElement(P,Object(a.a)({key:"live",showScrollbarWhen:this._showScrollbarWhen,displayMode:c,onAvailableSpaceChange:this._handleMeasure},p)),b.map((function(e){return i.createElement(P,Object(a.a)({key:e,displayMode:e,onWidthChange:t._panelWidthChangeHandlers[e]},f))}))))))},t.prototype.addButton=function(e){void 0===e&&(e="left");var t=new L.a(0),n=$('<div class="apply-common-tooltip '+ve.customButton+'">')[0],i={key:Number(new Date),element:n,width:t},o=this.state,r=o.leftCustomButtons,s=o.rightCustomButtons;return"left"===e?this.setState({leftCustomButtons:Object(a.f)(Object(a.f)([],r),[i])}):this.setState({rightCustomButtons:Object(a.f)(Object(a.f)([],s),[i])}),n},t.prototype._negotiateResizer=function(){this.props.resizerBridge.negotiateHeight(this.state.isVisible?ee.b:ee.a)},t.prototype._setDisplayMode=function(){var e,t=this.state.availableWidth,n=this.props.allowedModes,a=((e={}).full=this._fullWidth,e.medium=this._favoritesWidth,e.small=this._collapseWidth,e),i=Object(te.ensureDefined)(n),o=i.map((function(e){return a[e]})).findIndex((function(e){
return t>=e}));-1===o&&(o=i.length-1);var r=i[o];this.setState({measureValid:!0,displayMode:r})},t.defaultProps={allowedModes:fe},t}(i.PureComponent)},J2xC:function(e,t,n){e.exports={"css-value-header-toolbar-height":"38px"}},KrBX:function(e,t,n){e.exports={group:"group-3uonVBsm",noLeftDecoration:"noLeftDecoration-3uonVBsm",noRightDecoration:"noRightDecoration-3uonVBsm",noMinimalWidth:"noMinimalWidth-3uonVBsm"}},LiyS:function(e,t,n){"use strict";n.r(t),n.d(t,"FavoriteScriptsModel",(function(){return d}));var a=n("Vdly"),i=n("FBuY"),o=n("cBZt"),r=n("TcSq"),s=n("upcD"),l=n("aIyQ"),c=n.n(l),u=s,h=null,d=function(){function e(e){var t=this;void 0===e&&(e=a),this._favorites=[],this._favoritesChanged=new c.a,this._settings=e,i.TVXWindowEvents.on("StudyFavoritesChanged",(function(e){var n=JSON.parse(e);t._loadFromState(n.favorites||[])})),this._settings.onSync.subscribe(this,this._loadFavs),this._loadFavs()}return e.prototype.isFav=function(e){var t=this.favId(e);return-1!==this._findFavIndex(t)},e.prototype.toggleFavorite=function(e){this.isFav(e)?this.removeFavorite(e):this.addFavorite(e)},e.prototype.addFavorite=function(e){var t=this.favId(e);this._favorites.push(p(t)),this._favoritesChanged.fire(),this._saveFavs()},e.prototype.removeFavorite=function(e){var t=this.favId(e),n=this._findFavIndex(t);-1!==n&&(this._favorites.splice(n,1),this._favoritesChanged.fire()),this._saveFavs()},e.prototype.favId=function(e){return Object(r.isPineIdString)(e)?e:Object(r.extractPineId)(e)||Object(o.extractStudyId)(e)},e.prototype.favorites=function(){return this._favorites},e.prototype.favoritePineIds=function(){return this._favorites.filter((function(e){return"pine"===e.type})).map((function(e){return e.pineId}))},e.prototype.favoritesChanged=function(){return this._favoritesChanged},e.getInstance=function(){return null===h&&(h=new e),h},e.create=function(t){return new e(t)},e.prototype._loadFavs=function(){var e=this._settings.getJSON("studyMarket.favorites",[]);this._loadFromState(e)},e.prototype._saveFavs=function(){var e=this._stateToSave();this._settings.setJSON("studyMarket.favorites",e),i.TVXWindowEvents.emit("StudyFavoritesChanged",JSON.stringify({favorites:e}))},e.prototype._stateToSave=function(){return this._favorites.map(v)},e.prototype._loadFromState=function(e){this._favorites=e.map((function(e){return p(function(e){return e in u?u[e]:e}(e))})),this._favoritesChanged.fire()},e.prototype._findFavIndex=function(e){return this._favorites.findIndex((function(t){return e===v(t)}))},e}();function v(e){return"java"===e.type?e.studyId:e.pineId}function p(e){return Object(r.isPineIdString)(e)?{type:"pine",pineId:e}:{type:"java",studyId:e}}},Opoj:function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 17 17" width="17" height="17"><path fill="none" stroke="currentColor" d="M1 1l15 15M1 16L16 1"/></svg>'},Vike:function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 10" width="20" height="10"><path fill="none" stroke="currentColor" stroke-width="1.5" d="M2 1l8 8 8-8"/></svg>'},
WbBG:function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},XotN:function(e,t,n){"use strict";n.d(t,"a",(function(){return p})),n.d(t,"b",(function(){return f}));var a=n("mrSG"),i=n("Vdly"),o=n("FBuY"),r=(n("bSeV"),n("2vAl")),s=n.n(r),l=n("bKsZ"),c=n("489C"),u=n("ulZB"),h=n("pPtI"),d=n("IVMC"),v=n.n(d),p=function(e){function t(t,n,a){return void 0===a&&(a=[]),e.call(this,t,n,"CUSTOM_INTERVALS_CHANGED","IntervalWidget.intervals",a)||this}return Object(a.c)(t,e),t.prototype.set=function(t,n){var a=this;s()("customIntervals"),t.length<this.get().length?e.prototype.set.call(this,t,n):Object(c.runOrGoPro)((function(){return e.prototype.set.call(a,t,n)}),l.ProductFeatures.CUSTOM_INTERVALS,{feature:"customIntervals"})},t.prototype._serialize=function(e){return v()(e.map(h.normalizeIntervalString))},t.prototype._deserialize=function(e){return v()(Object(h.convertResolutionsFromSettings)(e).filter(h.isResolutionMultiplierValid).map(h.normalizeIntervalString))},t}(u.a),f=new p(o.TVXWindowEvents,i)},"a+Yp":function(e,t,n){e.exports={wrap:"wrap-35jKyg6w",icon:"icon-35jKyg6w"}},a8bL:function(e,t,n){e.exports={"css-value-header-toolbar-height":"38px",inner:"inner-pzOKvpP8",fake:"fake-pzOKvpP8",fill:"fill-pzOKvpP8",minimalPriority:"minimalPriority-pzOKvpP8",collapse:"collapse-pzOKvpP8",button:"button-pzOKvpP8",iconButton:"iconButton-pzOKvpP8",hidden:"hidden-pzOKvpP8",symbolSearch:"symbolSearch-pzOKvpP8",symbolSearchClose:"symbolSearchClose-pzOKvpP8",content:"content-pzOKvpP8",desktopPublish:"desktopPublish-pzOKvpP8",mobilePublish:"mobilePublish-pzOKvpP8"}},bQ7Y:function(e,t,n){e.exports={button:"button-2Vpz_LXc",hover:"hover-2Vpz_LXc",isInteractive:"isInteractive-2Vpz_LXc",isGrouped:"isGrouped-2Vpz_LXc",isActive:"isActive-2Vpz_LXc",isOpened:"isOpened-2Vpz_LXc",isDisabled:"isDisabled-2Vpz_LXc",text:"text-2Vpz_LXc",icon:"icon-2Vpz_LXc"}},cSDC:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var a=n("YFKU"),i=[{name:"1",label:Object(a.t)("minutes",{context:"interval"})},{name:"1H",label:Object(a.t)("hours",{context:"interval"})},{name:"1D",label:Object(a.t)("days",{context:"interval"})},{name:"1W",label:Object(a.t)("weeks",{context:"interval"})},{name:"1M",label:Object(a.t)("months",{context:"interval"})}];i.push({name:"1R",label:Object(a.t)("range",{context:"interval"})})},h4Fc:function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return o}));n("YFKU"),n("HbRj");var a=n("+GxX");function i(){var e=Math.ceil(o()/6e4);return window.t("Every minute",{plural:"Every {0} minutes",count:e}).format(e)}function o(){return Object(a.isFeatureEnabled)("chart_autosave_2min")?12e4:Object(a.isFeatureEnabled)("chart_autosave_3min")?18e4:Object(a.isFeatureEnabled)("chart_autosave_5min")?3e5:Object(a.isFeatureEnabled)("chart_autosave_7min")?42e4:Object(a.isFeatureEnabled)("chart_autosave_10min")?6e5:Object(a.isFeatureEnabled)("chart_autosave_20min")?12e5:Object(a.isFeatureEnabled)("chart_autosave_30min")?18e5:Object(a.isFeatureEnabled)("chart_autosave_year")?31536e6:6e4}},
lA7n:function(e,t,n){"use strict";n.r(t);var a=n("mrSG"),i=n("Kxc7"),o=function(e){function t(t,n){return e.call(this,t,n,"FAVORITE_CHARTS_CHANGED","loadChartDialog.favorites",{})||this}return Object(a.c)(t,e),t}(n("ulZB").b),r=n("zUrt"),s=n("FBuY"),l=n("Vdly"),c=n("/z0S"),u=n("sQaR");n.d(t,"LoadChartService",(function(){return h}));var h=function(e){function t(t){void 0===t&&(t=null);var n=e.call(this)||this;return n._favoriteChartsService=new o(s.TVXWindowEvents,l),n._chartWidgetCollection=null,n._promise=null,n._dialog=null,n._subscribe=function(e){n._setVisibility(e)},n._getChartEntry=function(e){return{id:e.id,url:e.url,title:e.name,symbol:e.short_symbol,interval:e.interval,toolsCount:0,modified:e.modified_iso,active:function(){return n._isActiveChart(e.id)},openAction:function(){return r.backend.loadChart(e)},deleteAction:function(){return new Promise((function(t){r.backend.removeChart(e.image_url,(function(){n._deleteChart(e.id),t()}))}))},favoriteAction:n._updateFavorites}},n._updateFavorites=function(e){return n._favoriteChartsService.set(e)},n._isActiveChart=function(e){return null!==n._chartWidgetCollection&&e===n._chartWidgetCollection.metaInfo.id.value()},n._deleteChart=function(e){n._isActiveChart(e)&&(i.enabled("saveload_storage_customization")?null!==n._chartWidgetCollection&&n._chartWidgetCollection.clearChartMetaInfo():location.href="/chart/"+location.search)},n._chartWidgetCollection=t,n}return Object(a.c)(t,e),t.prototype.showLoadDialog=function(){Object(c.a)(this._showLoadDialog.bind(this),{source:"Load chart",sourceMeta:"Chart"})},t.prototype.show=function(){this.showLoadDialog()},t.prototype.hide=function(){var e,t;null===(e=this._dialog)||void 0===e||e.hide(),null===(t=this._dialog)||void 0===t||t.visible().unsubscribe(this._subscribe)},t.prototype._showLoadDialog=function(){var e=this;(i.enabled("saveload_requires_authentication")&&!window.is_authenticated?Promise.resolve([]):new Promise((function(e){r.backend.getCharts((function(t){e(t)}))}))).then((function(t){return t.map(e._getChartEntry)})).then((function(t){var a=e._promise=Promise.all([n.e("vendors_embed"),n.e(2),n.e(3),n.e(4),n.e(5),n.e(9),n.e(11),n.e(25),n.e(33),n.e(36),n.e(49),n.e(51),n.e(52),n.e(53),n.e(68),n.e(154),n.e(206),n.e(269),n.e(374),n.e(8),n.e(10),n.e(24),n.e(34),n.e(41),n.e(48),n.e(60),n.e(80),n.e(226),n.e("load-chart-dialog")]).then(n.bind(null,"EgWQ")).then((function(n){if(e._promise===a){e._dialog&&(e._dialog.hide(),e._dialog.visible().unsubscribe(e._subscribe));var i={charts:t,favoriteChartsService:e._favoriteChartsService,chartWidgetCollection:e._chartWidgetCollection};e._dialog=new n.LoadChartDialogRenderer(i),e._dialog.visible().subscribe(e._subscribe),e._dialog.show()}}))}))},t}(u.a)},"tO+E":function(e,t,n){e.exports={"css-value-header-toolbar-height":"38px",wrap:"wrap-1ETeWwz2"}},tU7i:function(e,t,n){"use strict";n.d(t,"a",(function(){return l})),n.d(t,"b",(function(){return c}));var a=n("mrSG"),i=n("q1tI"),o=n("TSYQ"),r=n("Iivm"),s=n("bQ7Y"),l=s,c=i.forwardRef((function(e,t){
var n,l=e.icon,c=e.isActive,u=e.isOpened,h=e.isDisabled,d=e.isGrouped,v=e.isHovered,p=e.onClick,f=e.text,b=e.textBeforeIcon,_=e.title,m=e.theme,S=void 0===m?s:m,y=e.className,g=e.forceInteractive,C=e["data-name"],E=Object(a.e)(e,["icon","isActive","isOpened","isDisabled","isGrouped","isHovered","onClick","text","textBeforeIcon","title","theme","className","forceInteractive","data-name"]),O=o(y,S.button,_&&"apply-common-tooltip",((n={})[S.isActive]=c,n[S.isOpened]=u,n[S.isInteractive]=(g||Boolean(p))&&!h,n[S.isDisabled]=h,n[S.isGrouped]=d,n[S.hover]=v,n)),w=l&&("string"==typeof l?i.createElement(r.a,{className:S.icon,icon:l}):i.cloneElement(l,{className:o(S.icon,l.props.className)}));return i.createElement("div",Object(a.a)({},E,{ref:t,"data-role":"button",className:O,onClick:h?void 0:p,title:_,"data-name":C}),b&&f&&i.createElement("div",{className:o("js-button-text",S.text)},f),w,!b&&f&&i.createElement("div",{className:o("js-button-text",S.text)},f))}))},ulZB:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return s}));var a=n("mrSG"),i=n("aIyQ"),o=n.n(i),r=function(){function e(e,t,n,a,i){var r=this;this._onChange=new o.a,this._handleChange=function(){r._onChange.fire(r.get())},this._crossTabEvents=e,this._jsonKeyValueStore=t,this.CROSSTAB_EVENT_NAME=n,this.JSON_STORE_KEY=a,this.defaultStoreValue=this._serialize(i),this._subscribe()}return e.prototype.get=function(){var e=this._jsonKeyValueStore.getJSON(this.JSON_STORE_KEY,this.defaultStoreValue);return this._deserialize(e)},e.prototype.set=function(e,t){var n=this._serialize(e);this._jsonKeyValueStore.setJSON(this.JSON_STORE_KEY,n,t),this._crossTabEvents.emit(this.CROSSTAB_EVENT_NAME),this._onChange.fire(e)},e.prototype.getOnChange=function(){return this._onChange},e.prototype.destroy=function(){this._unsubscribe(),this._onChange.destroy(),delete this._onChange},e.prototype._subscribe=function(){this._crossTabEvents.on(this.CROSSTAB_EVENT_NAME,this._handleChange),this._jsonKeyValueStore.onSync.subscribe(this,this._handleChange)},e.prototype._unsubscribe=function(){this._crossTabEvents.off(this.CROSSTAB_EVENT_NAME,this._handleChange),this._jsonKeyValueStore.onSync.unsubscribe(this,this._handleChange)},e}(),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(a.c)(t,e),t.prototype._serialize=function(e){return e},t.prototype._deserialize=function(e){return e},t}(r)},upcD:function(e){
e.exports=JSON.parse('{"ACCD@tv-basicstudies":"STD;Accumulation_Distribution","studyADR@tv-basicstudies":"STD;Advance_Decline_Ratio_Bars","AROON@tv-basicstudies":"STD;Aroon","ATR@tv-basicstudies":"STD;Average_True_Range","AwesomeOscillator@tv-basicstudies":"STD;Awesome_Oscillator","BB@tv-basicstudies":"STD;Bollinger_Bands","BollingerBandsR@tv-basicstudies":"STD;Bollinger_Bands_B","BollingerBandsWidth@tv-basicstudies":"STD;Bollinger_Bands_Width","CMF@tv-basicstudies":"STD;Chaikin_Money_Flow","ChaikinOscillator@tv-basicstudies":"STD;Chaikin_Oscillator","ChoppinessIndex@tv-basicstudies":"STD;Choppiness_Index","DoubleEMA@tv-basicstudies":"STD;DEMA","WilliamR@tv-basicstudies":"STD;Willams_R","CCI@tv-basicstudies":"STD;CCI","CRSI@tv-basicstudies":"STD;Connors_RSI","DetrendedPriceOscillator@tv-basicstudies":"STD;DPO","DM@tv-basicstudies":"STD;DMI","DONCH@tv-basicstudies":"STD;Donchian_Channels","EaseOfMovement@tv-basicstudies":"STD;EOM","EFI@tv-basicstudies":"STD;EFI","ENV@tv-basicstudies":"STD;ENV","FisherTransform@tv-basicstudies":"STD;Fisher_Transform","HV@tv-basicstudies":"STD;Historical_Volatility","KLTNR@tv-basicstudies":"STD;Keltner_Channels","MOM@tv-basicstudies":"STD;Momentum","MF@tv-basicstudies":"STD;Money_Flow","UltimateOsc@tv-basicstudies":"STD;Ultimate_Oscillator","Trix@tv-basicstudies":"STD;TRIX","Stochastic@tv-basicstudies":"STD;Stochastic","StochasticRSI@tv-basicstudies":"STD;Stochastic_RSI","RSI@tv-basicstudies":"STD;RSI","ROC@tv-basicstudies":"STD;ROC","PriceOsc@tv-basicstudies":"STD;Price_Oscillator","MASimple@tv-basicstudies":"STD;SMA","OBV@tv-basicstudies":"STD;On_Balance_Volume","PSAR@tv-basicstudies":"STD;PSAR","VigorIndex@tv-basicstudies":"STD;Relative_Vigor_Index","VolatilityIndex@tv-basicstudies":"STD;Relative_Volatility_Index","SMIErgodicIndicator@tv-basicstudies":"STD;SMI_Ergodic_Indicator_Oscillator","SMIErgodicOscillator@tv-basicstudies":"STD;SMI_Ergodic_Oscillator","MACD@tv-basicstudies":"STD;MACD","MAWeighted@tv-basicstudies":"STD;WMA","MAExp@tv-basicstudies":"STD;EMA","hullMA@tv-basicstudies":"STD;Hull%1MA","chandeMO@tv-basicstudies":"STD;Chande_Momentum_Oscillator","TripleEMA@tv-basicstudies":"STD;TEMA","MAVolumeWeighted@tv-basicstudies":"STD;VWMA","WilliamsAlligator@tv-basicstudies":"STD;Williams_Alligator","WilliamsFractal@tv-basicstudies":"STD;Whilliams_Fractals"}')},yMne:function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return o}));var a=n("J2xC"),i=parseInt(a["css-value-header-toolbar-height"]),o=3}}]);