(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[44082],{989897:e=>{e.exports={}},167175:(e,t,o)=>{"use strict";o.d(t,{isAndroid:()=>p,isAnyMobile:()=>S,isBlackBerry:()=>m,isChrome:()=>a,isEdge:()=>c,isFF:()=>l,isIOS:()=>g,isIPad:()=>w,isLinux:()=>_,isMac:()=>u,isOperaMini:()=>f,isSafari:()=>d,isWindows:()=>h,mobiletouch:()=>s,touch:()=>r});const i="undefined"!=typeof window&&"undefined"!=typeof navigator,n=i&&"ontouchstart"in window,s=i&&n&&"onorientationchange"in window,r=i&&(n||!!navigator.maxTouchPoints),a=i&&window.chrome&&window.chrome.runtime,l=i&&window.navigator.userAgent.toLowerCase().indexOf("firefox")>-1,c=i&&/\sEdge\/\d\d\b/.test(navigator.userAgent),d=i&&Boolean(navigator.vendor)&&navigator.vendor.indexOf("Apple")>-1&&-1===navigator.userAgent.indexOf("CriOS")&&-1===navigator.userAgent.indexOf("FxiOS"),u=i&&/mac/i.test(navigator.platform),h=i&&/Win32|Win64/i.test(navigator.platform),_=i&&/Linux/i.test(navigator.platform),p=i&&/Android/i.test(navigator.userAgent),m=i&&/BlackBerry/i.test(navigator.userAgent),g=i&&/iPhone|iPad|iPod/.test(navigator.platform),f=i&&/Opera Mini/i.test(navigator.userAgent),w=i&&("MacIntel"===navigator.platform&&navigator.maxTouchPoints>1||/iPad/.test(navigator.platform)),S=p||m||g||f},581996:(e,t,o)=>{"use strict";o.d(t,{ResizerDetacherState:()=>s});var i=o(650151),n=o(401580);class s{constructor(e){this._alive=new n.WatchedValue,this._container=new n.WatchedValue,this._width=new n.WatchedValue,this._height=new n.WatchedValue,this._fullscreen=new n.WatchedValue,this._detachable=new n.WatchedValue,this._fullscreenable=new n.WatchedValue,this._visible=new n.WatchedValue,this._availWidth=new n.WatchedValue,this._availHeight=new n.WatchedValue,this._owner=new n.WatchedValue,this._ownersStack=[],this.owner=this._owner.readonly(),this._bridge={alive:this._alive.readonly(),container:this._container.readonly(),width:this._width.readonly(),height:this._height.readonly(),fullscreen:this._fullscreen.readonly(),detachable:this._detachable.readonly(),fullscreenable:this._fullscreenable.readonly(),visible:this._visible.readonly(),availWidth:this._availWidth.readonly(),availHeight:this._availHeight.readonly(),remove:()=>{const e=this._owner.value();e&&e.remove&&e.remove()},negotiateWidth:e=>{const t=this._owner.value();t&&t.negotiateWidth&&t.negotiateWidth(e)},negotiateHeight:e=>{const t=this._owner.value();t&&t.negotiateHeight&&t.negotiateHeight(e)},requestFullscreen:()=>{const e=this._owner.value();e&&e.requestFullscreen&&e.requestFullscreen()},exitFullscreen:()=>{const e=this._owner.value();e&&e.exitFullscreen&&e.exitFullscreen()},detach:e=>{const t=this._owner.value();t&&t.detach&&t.detach(e)},attach:()=>{const e=this._owner.value();e&&e.attach&&e.attach()}},e&&this.pushOwner(e)}bridge(){return this._bridge}pushOwner(e){if(!e.alive.value())return;for(const e of this._ownersStack)this._unsubscribeOwner(e);const t={owner:e};this._ownersStack.push(t),this._subscribeOwner(t)}_subscribeOwner(e){const t=e.owner;if(e.deathWatcher||(this._alive.setValue(!0), e.deathWatcher=t.alive.spawn(),e.deathWatcher.subscribe((t=>{t||this._deadHandler(e)}))),this._owner.setValue(t),!e.subscriptions){const o=e.subscriptions=[];this._visible.setValue(!1);const i=(e,t)=>{if(e){const i=e.spawn();o.push(i),i.subscribe((e=>{t.setValue(e)}),{callWithLast:!0})}else t.deleteValue()};i(t.container,this._container),i(t.width,this._width),i(t.height,this._height),i(t.fullscreen,this._fullscreen),i(t.detachable,this._detachable),i(t.fullscreenable,this._fullscreenable),i(t.availWidth,this._availWidth),i(t.availHeight,this._availHeight),i(t.visible,this._visible)}}_unsubscribeOwner(e,t){if(e.subscriptions){for(const t of e.subscriptions)t.unsubscribe();e.subscriptions=null}t&&e.deathWatcher&&(e.deathWatcher.unsubscribe(),e.deathWatcher=null)}_deadHandler(e){const t=this._ownersStack.indexOf(e);(0,i.assert)(-1!==t,"sanitized owner should be in stack");for(let e=this._ownersStack.length-1;e>=t;e--)this._unsubscribeOwner(this._ownersStack[e],!0);this._ownersStack.length=t,t>0?this._subscribeOwner(this._ownersStack[t-1]):(this._alive.setValue(!1),this._owner.deleteValue())}}},554433:(e,t,o)=>{"use strict";o.d(t,{VisibilityApi:()=>n});var i=o(401580);class n{constructor(e){let t;this.isVisible=new i.WatchedValue(!0);let o=null;for(const i of["","moz","ms","webkit"]){const n=i?`${i}Hidden`:"hidden";if(n in e){t=`${i}visibilitychange`,o=()=>{this.isVisible.setValue(!e[n])},o(),e.addEventListener(t,o,!1);break}}this.destroy=()=>{o&&(e.removeEventListener(t,o,!1),o=null)}}}},600303:(e,t,o)=>{"use strict";o.d(t,{MarketStatusIndicator:()=>a});var i=o(444372),n=(o(989897),o(780792));const s={invalid:"tv-market-status--invalid",market:"tv-market-status--market",out_of_session:"tv-market-status--out-of-session",post_market:"tv-market-status--post-market",pre_market:"tv-market-status--pre-market",loading:"tv-market-status--loading",holiday:"tv-market-status--holiday",replay:"tv-market-status--replay",delisted:"tv-market-status--delisted"},r={invalid:"tv-market-status__icon--invalid",market:"tv-market-status__icon--market",out_of_session:"tv-market-status__icon--out-of-session",post_market:"tv-market-status__icon--post-market",pre_market:"tv-market-status__icon--pre-market",loading:"tv-market-status__icon--loading",holiday:"tv-market-status__icon--holiday",replay:"tv-market-status__icon--replay",delisted:"tv-market-status__icon--delisted"};class a extends n.AbstractIndicator{constructor(e){super(e),this._quoteSessionPrefix="market-status-indicator",this._componentClass="tv-market-status",this._extraTitle="",this._init(e)}setStatus(e,t){const o={values:{current_session:"delisted"===this.getValue()?"delisted":e}};this.update(o,t)}getTooltipText(){let e=super.getTooltipText();return""===e||""!==this._extraTitle&&(e=`${e}, ${this._extraTitle}`),e}setExtraTitle(e){this._extraTitle=e}reset(){this._clearClasses(),this._labelEl.textContent="",this._extraTitle="",this._el.setAttribute("title",""),this._value=""}enableShortMode(e=!0){void 0!==this._labelEl&&this._labelEl.classList.add("i-hidden"),super.enableShortMode()} disableShortMode(){void 0!==this._labelEl&&this._labelEl.classList.remove("i-hidden"),super.disableShortMode()}_renderLabel(){this._labelEl.textContent=this.getLabel()}_getValueFromData(e){var t,o,i;return(null===(o=null===(t=e.values)||void 0===t?void 0:t.typespecs)||void 0===o?void 0:o.includes("discontinued"))?"delisted":void 0!==(null===(i=e.values)||void 0===i?void 0:i.current_session)?e.values.current_session:this.getValue()}_render(){this._renderLabelElement(),this._sessionStatusIcon?this._renderIconElement():this._renderDotElement(),super._render()}_init(e){const t=Object.assign({},function(){const e={invalid:i.t(null,void 0,o(132619)),market:i.t(null,void 0,o(383949)),out_of_session:i.t(null,void 0,o(895814)),post_market:i.t(null,void 0,o(429985)),pre_market:i.t(null,void 0,o(356042)),loading:i.t(null,void 0,o(25911)),holiday:i.t(null,void 0,o(988958)),delisted:i.t(null,void 0,o(389905)),replay:""};return{classMap:s,iconClassMap:r,classSuffix:"",data:{},extraTitle:"",labelMap:e,short:!1,showTooltip:!0,tooltipType:"custom"}}(),e);super._init(t),this.setExtraTitle(t.extraTitle),this._render()}_renderLabelElement(){void 0===this._labelEl&&(this._labelEl=document.createElement("span"),this._labelEl.classList.add(`${this._componentClass}__label`),this._labelEl.classList.add(`${this._componentClass}__label${this._classSuffix}`),this._el.appendChild(this._labelEl))}_renderDotElement(){void 0===this._dotEl&&(this._dotEl=document.createElement("span"),this._dotEl.classList.add(`${this._componentClass}__dot`),this._dotEl.classList.add(`${this._componentClass}__dot${this._classSuffix}`),this._el.appendChild(this._dotEl))}_renderIconElement(){void 0===this._iconEl&&this._value&&(this._iconEl=document.createElement("span"),this._iconEl.classList.add(`${this._componentClass}__icon`),this._iconEl.classList.add(`${this._componentClass}__icon${this._classSuffix}`),this._el.appendChild(this._iconEl))}}},719718:(e,t,o)=>{"use strict";o.d(t,{adwordsAnalyticsEnabled:()=>r,createImage:()=>n,marketingAnalyticsEnabled:()=>s});var i=o(125226);function n(e){const t=document.createElement("img");return t.src=e,t}function s(){return(0,i.isFeatureEnabled)("marketing-analytics")}function r(){return(0,i.isFeatureEnabled)("adwords-analytics")}},384295:(e,t,o)=>{"use strict";o.d(t,{CmEvent:()=>i,trackCmEvent:()=>r});var i,n=o(719718);!function(e){e.PageView="visit",e.RegistrationCompleted="signup",e.TrialSignUp="trial",e.PaidPlanAcquired="psub"}(i||(i={}));const s=(e,t)=>`https://ad.doubleclick.net/ddm/activity/src=13919399;type=${e===i.PaidPlanAcquired?"wsales":"wcount"};cat=${e};${t?`cost=${t};`:""}u27=${function(e="_sp_"){const t=new RegExp(e+"id\\.[a-f0-9]+=([^;]+);?"),o=document.cookie.match(t);return o&&o[1]?o[1].split(".")[0]:""}()};u28=${window.user.id};dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;npa=;ord=${1e3*Math.random()}?`;function r(e,t){(0,n.createImage)(s(e,t))}},641261:(e,t,o)=>{"use strict";o.d(t,{GTagEvent:()=>u,trackGTagAdsEvent:()=>_}) ;var i=o(251954),n=o(261030),s=o(314802),r=o(638456),a=o(588948),l=o(691805),c=o(719718);let d=!1;var u;function h(){d||!(0,c.adwordsAnalyticsEnabled)()||(0,s.isOnMobileAppPage)("any")||r.CheckMobile.iOS()||((0,a.updateInitData)(),(0,a.getInitData)().gadwId&&(d=!0,(0,l.appendScript)(`https://www.googletagmanager.com/gtag/js?id=${(0,a.getInitData)().gadwId}`),window.dataLayer=window.dataLayer||[],window.gtag=function(){window.dataLayer.push(arguments)},window.gtag("js",new Date),window.gtag("consent","default",{ad_storage:(0,n.getCookieSetting)(n.CookieSettings.Advertising)?"granted":"denied"}),window.gtag("config",(0,a.getInitData)().gadwId),i.subscribe(n.cookieSettingsChangeEvent,((e,t)=>{e===n.CookieSettings.Advertising&&window.gtag("consent","update",{ad_storage:t?"granted":"denied"})}),null)))}function _(e,t={}){if(h(),!d)return;const o=(0,a.getInitData)().gadwId;window.gtag("event","conversion",{send_to:`${o}/${e}`,user_id:window.user.id,...t})}!function(e){e.PageView="kwnRCP6AwqsBEOTvvuED",e.TrialSignUp="6_gCCOyejsACEK3sq6gB",e.RegistrationCompleted="JzYhCIOr578CEK3sq6gB",e.PaidPlanAcquired="ca8iCNrG578CEK3sq6gB"}(u||(u={}))},665343:(e,t,o)=>{"use strict";o.d(t,{TwitterEvent:()=>i,trackTwitterEvent:()=>r});var i,n=o(719718),s=o(261030);!function(e){e.SiteVisit="o2eg2",e.TrialSignUp="o1wjo",e.RegistrationCompleted="o1wjq",e.PaidPlanAcquired="o1wjr"}(i||(i={}));function r(e){(0,n.marketingAnalyticsEnabled)()&&(0,s.getCookieSetting)(s.CookieSettings.Analytics)&&(e=>[`https://analytics.twitter.com/i/adsct?txn_id=${e}&p_id=Twitter&tw_sale_amount=0&tw_order_quantity=0`,`https://t.co/i/adsct?txn_id=${e}&p_id=Twitter&tw_sale_amount=0&tw_order_quantity=0"`])(e).map(n.createImage)}},691805:(e,t,o)=>{"use strict";o.d(t,{appendScript:()=>n});var i=o(503031);function n(e){const t=document.createElement("script");t.async=!0,t.src=e;const o=(0,i.getCspNonce)();return o&&t.setAttribute("nonce",o),document.head.appendChild(t),t}},261030:(e,t,o)=>{"use strict";o.d(t,{CookieSettings:()=>i,cookieSettingsChangeEvent:()=>d,cookieSettingsReady:()=>u,getCookieSetting:()=>f,setCookieSetting:()=>g});var i,n=o(251954),s=o(268222),r=o(49437),a=o(43464),l=o(66974),c=o(16188);!function(e){e.Analytics="analytics",e.Advertising="advertising"}(i||(i={}));const d="cookie_settings_changed",u=(0,s.createDeferredPromise)(),h="cookiesSettings",_="localCookiesSettings",p="cookiePrivacyPreferenceBanner",m={[i.Analytics]:!1,[i.Advertising]:!1};function g(e,t){m[e]=t,c.set((0,l.isProd)()?h:_,JSON.stringify(m),3653,"/",a.cookieBannerDomain),n.emit(d,e,t)}function f(e){return m[e]}function w(){return r.TVLocalStorage.removeItem(p)}!function(){const e=c.get((0,l.isProd)()?h:_),t=r.TVLocalStorage.getItem(p),o=r.TVLocalStorage.getItem(h);if(e){t&&o&&(w(),r.TVLocalStorage.removeItem(h)),(0,a.checkCookiePolicyInLs)(a.oldBannerKey)&&(0,a.removeOldCookieBannerKey)();try{const t=JSON.parse(e);m[i.Analytics]=(null==t?void 0:t[i.Analytics])||!1,m[i.Advertising]=(null==t?void 0:t[i.Advertising])||!1}catch(e){}}else if((0, a.checkCookiePolicyInLs)(a.oldBannerKey)&&(g(i.Analytics,!0),g(i.Advertising,!0),(0,a.onAccept)(),(0,a.removeOldCookieBannerKey)()),t&&o){const e=JSON.parse(o);(0,a.setCookiePolicy)(t),g(i.Analytics,null==e?void 0:e[i.Analytics]),g(i.Advertising,null==e?void 0:e[i.Advertising]),w(),r.TVLocalStorage.removeItem(h)}}()},503031:(e,t,o)=>{"use strict";function i(){const e=document.querySelector("script[nonce]");if(null!==e)return e.getAttribute("nonce")||e.nonce}o.d(t,{getCspNonce:()=>i})},461909:(e,t,o)=>{"use strict";function i(e){if(void 0===e)return null;const t=e.match(/(delayed_streaming)_([\d]{1,4})/);return null===t?null:{mode:t[1],interval:parseInt(t[2])}}function n(e){const t=i(e.update_mode);return null===t||(e.update_mode=t.mode,e.update_mode_seconds=t.interval),e}o.r(t),o.d(t,{normalizeUpdateMode:()=>n,parseUpdateMode:()=>i})},66974:(e,t,o)=>{"use strict";function i(e=location.host){return-1!==["i18n.tradingview.com","partial.tradingview.com","www.tradingview.com","wwwcn.tradingview.com"].indexOf(e)||-1!==["d33t3vvu2t2yu5.cloudfront.net","dwq4do82y8xi7.cloudfront.net","s.tradingview.com","s3.tradingview.com"].indexOf(e)||e.match(/^[a-z]{2}\.tradingview\.com/)||e.match(/prod-[^.]+.tradingview.com/)?"battle":e.includes("tradingview.com")||e.includes("staging")?"staging":e.match(/webcharts/)?"staging_local":(e.match(/^localhost(:\d+)?$/),"local")}function n(){return"local"===i()}function s(){return"battle"===i()}function r(){return!s()}o.r(t),o.d(t,{environment:()=>i,isDebug:()=>r,isLocal:()=>n,isProd:()=>s})},152592:(e,t,o)=>{"use strict";o.d(t,{isMcxQuoteData:()=>s});var i=o(416234);function n(e){return e===i.SymbolGroup.McxFlag}function s(e){var t;return!!e&&(n(e.symbolname)||"permission_denied"===e.status&&n(null===(t=e.values)||void 0===t?void 0:t.alternative))}},40763:(e,t,o)=>{"use strict";function i(e){return e.endsWith("_dly")}function n(e){return!!e&&(!(void 0===e.symbolname||!i(e.symbolname))||Boolean("permission_denied"===e.status&&e.values&&void 0!==e.values.alternative&&i(e.values.alternative)))}o.d(t,{isSfQuoteData:()=>n})},778016:(e,t,o)=>{"use strict";o.d(t,{canUpgradePlan:()=>p,enabled:()=>c,getConfig:()=>_,getExpertPlansWithFeature:()=>u,getProPlansWithFeature:()=>d});var i=o(650151),n=o(409352),s=o(102710),r=o(833813),a=o(822122),l=o(255453);function c(e,t,o){let i=window.user;o&&(i=o);const n=_(e,t,i);return!!n&&!(n[r.ProductFeatures.DISABLE_ON_TRIAL]&&(!i||i.is_trial))}function d(e){return Object.values(a.ProPlans).filter((t=>{const o=_(e,(0,l.getProductForTrial)(t));return o&&!((0,l.isTrialProduct)(t)&&o[r.ProductFeatures.DISABLE_ON_TRIAL])}))}function u(e){return Object.values(a.ExpertPlans).filter((t=>{const o=_(e,t);return o&&!((0,l.isTrialProduct)(t)&&o[r.ProductFeatures.DISABLE_ON_TRIAL])}))}function h(e){const t=n[e];return t?t.extends?Object.assign({},h(t.extends),t):t:null}function _(e,t,o){var i;let n=h(t||function(e){let t=window.user;e&&(t=e);let o=(null==t?void 0:t.pro_plan)||a.ProPlans.Free;const i=o!==a.ProPlans.Free&&!(0,l.isTrialProduct)(o);return i||(o=(0, l.getProductForTrial)(o)),i&&t&&!t.new_pro_product_line&&(o=`__legacy_${o}`),o}(o));if(!n)return null;const r=null===(i=window.TradingView)||void 0===i?void 0:i.widgetCustomer;return r&&s[r]&&(n=Object.assign({},n,s[r])),n&&n[e]||null}function p(){var e,t,o,n;const s=null!==(t=null===(e=_(r.ProductFeatures.BACKEND_CONNECTIONS))||void 0===e?void 0:e.limit)&&void 0!==t?t:0,a=(0,i.ensureDefined)(window.pro),l=a.getProductsByType(a.PRODUCT_TYPES.pro_plan);for(const e of l)if((null!==(n=null===(o=_(r.ProductFeatures.BACKEND_CONNECTIONS,(0,i.ensureDefined)(e.id)))||void 0===o?void 0:o.limit)&&void 0!==n?n:0)>s)return!0;return!1}},833813:(e,t,o)=>{"use strict";var i;o.d(t,{ProductFeatures:()=>i,UNLIMITED_FEATURE_LIMIT:()=>n}),function(e){e.DISABLE_ON_TRIAL="disable_on_trial",e.CUSTOM_INTERVALS="CUSTOM_INTERVALS",e.CHART_STORAGE="CHART_STORAGE",e.MULTIPLE_CHARTS="MULTIPLE_CHARTS",e.MULTIPLE_WATCHLISTS="MULTIPLE_WATCHLISTS",e.IMPORT_WATCHLISTS="IMPORT_WATCHLISTS",e.EXPORT_WATCHLISTS="EXPORT_WATCHLISTS",e.WATCHLIST_SYMBOLS="WATCHLIST_SYMBOLS",e.INDICATORS_ON_CHART="INDICATORS_ON_CHART",e.STUDY_ON_STUDY="STUDY_ON_STUDY",e.TICK_BY_TICK_PUSH_DATA="TICK_BY_TICK_PUSH_DATA",e.SERVER_SIDE_ALERTS="SERVER_SIDE_ALERTS",e.PUBLISH_INVITE_ONLY_SCRIPTS="PUBLISH_INVITE_ONLY_SCRIPTS",e.PUBLISH_PROTECTED_SCRIPTS="PUBLISH_PROTECTED_SCRIPTS",e.SCREENER_ALERTS="SCREENER_ALERTS",e.SCREENER_AUTO_REFRESH="SCREENER_AUTO_REFRESH",e.SCREENER_NEW_AUTO_REFRESH="SCREENER_NEW_AUTO_REFRESH",e.SCREENER_EXPORT_DATA="SCREENER_EXPORT_DATA",e.SCREENER_INTERVALS="SCREENER_INTERVALS",e.SCREENER_NEW_EXPORT_CSV_DATA="SCREENER_NEW_EXPORT_CSV_DATA",e.SIMULTANEOUS_CONNECTIONS="SIMULTANEOUS_CONNECTIONS",e.BACKEND_CONNECTIONS="BACKEND_CONNECTIONS",e.STUDY_TEMPLATES="STUDY_TEMPLATES",e.CAN_EDIT_PUBLIC_CHATS="CAN_EDIT_PUBLIC_CHATS",e.NO_SPONSORED_ADS="NO_SPONSORED_ADS",e.IDC_AVAILABLE_DELAY="IDC_AVAILABLE_DELAY",e.STATUS="STATUS",e.ALERTS_NO_EXPIRATION="ALERTS_NO_EXPIRATION",e.MULTIFLAGGED_SYMBOLS_LISTS="MULTIFLAGGED_SYMBOLS_LISTS",e.BAR_REPLAY_INTRADAY="BAR_REPLAY_INTRADAY",e.TV_VOLUMEBYPRICE="TV_VOLUMEBYPRICE",e.ALERTS_WEBHOOK="ALERTS_WEBHOOK",e.DEEP_FUNDAMENTALS_HISTORY="DEEP_FUNDAMENTALS_HISTORY",e.EXPORT_CHART_DATA="EXPORT_CHART_DATA",e.EXPORT_FINANCIALS_DATA="EXPORT_FINANCIALS_DATA",e.ALERTS_ON_SECONDS="ALERTS_ON_SECONDS",e.PERMANENT_STREAM_RECORDS="PERMANENT_STREAM_RECORDS",e.IDEA_SOCIAL_LINKS="IDEA_SOCIAL_LINKS",e.EXTENDED_SOCIAL_LINKS="EXTENDED_SOCIAL_LINKS",e.DEEP_HISTORY_BACKTEST="DEEP_HISTORY_BACKTEST",e.BACKTESTING_EXPORT="BACKTESTING_EXPORT",e.USE_BAR_MAGNIFIER="USE_BAR_MAGNIFIER",e.HISTORICAL_BARS="HISTORICAL_BARS",e.KAGI_RENKO="KAGI_RENKO",e.INTRADAY_SPREAD="INTRADAY_SPREAD",e.SECONDS_INTERVALS="SECONDS_INTERVALS",e.MULTICOLOR_FLAGGED_SYMBOLS="MULTICOLOR_FLAGGED_SYMBOLS",e.INTRADAY_EXCHANGE="INTRADAY_EXCHANGE",e.CUSTOM_CHATS="CUSTOM_CHATS",e.VOLUME_PROFILE="VOLUME_PROFILE",e.TPO_PERIODIC="TPO_PERIODIC",e.PRIMITIVE_ALERTS="PRIMITIVE_ALERTS",e.COMPLEX_ALERTS="COMPLEX_ALERTS",e.TV_PROSTUDIES="TV_PROSTUDIES",e.CHART_PATTERNS="CHART_PATTERNS", e.SMS_2FA_VERIFICATION="SMS_2FA_VERIFICATION",e.SOCIAL_ACTIVITY="SOCIAL_ACTIVITY",e.TICK_INTERVALS="TICK_INTERVALS",e.CUSTOM_FORMULAS="CUSTOM_FORMULAS",e.CUSTOM_RANGE_BARS="CUSTOM_RANGE_BARS",e.BUY_PRO_DATA="BUY_PRO_DATA",e.FASTEST_DATA_FLOW="FASTEST_DATA_FLOW",e.FIRST_PRIORITY_SUPPORT="FIRST_PRIORITY_SUPPORT",e.FUNDAMENTALS_ON_CHART="FUNDAMENTALS_ON_CHART"}(i||(i={}));const n=99999},128327:(e,t,o)=>{"use strict";function i(e){if(e instanceof Error)return e.stack||e.message;try{return e.outerHTML.slice(0,1024)}catch(e){}try{if(void 0!==e)return JSON.stringify(e).slice(0,1024)}catch(e){}return String(e)}function n(){window.__tv_js_errors||(window.__tv_js_errors=[]),window.addEventListener("error",(e=>{const t=(new Date).toISOString();window.__tv_js_errors.push(`${t} ${e.message||"JS error"}. ${e.filename||""}, line ${e.lineno}, col ${e.colno}.\nError: ${i(e.error)}`)}),!1),window.addEventListener("unhandledrejection",(e=>{const t=(new Date).toISOString();window.__tv_js_errors.push(`${t} Unhandled rejection.\nReason: ${i(e.reason)}`)}),!1),document.addEventListener("securitypolicyviolation",(e=>{if(String(e.sourceFile).startsWith("https://securepubads.g.doubleclick.net")&&String(e.blockedURI).startsWith("https://adservice.google."))return;const t=(new Date).toISOString(),o="report"===e.disposition?"CSP report-only":"CSP violation";window.__tv_js_errors.push(`${t} ${o}: ${e.violatedDirective||e.effectiveDirective}. ${e.sourceFile||""}, line ${e.lineNumber}, col ${e.columnNumber}.\nBlocked URI: ${e.blockedURI}\nSample: ${e.sample}\nTarget: ${i(e.target)}`)}),!1)}o.d(t,{install:()=>n})},314802:(e,t,o)=>{"use strict";o.d(t,{isOnMobileAppPage:()=>n,urlWithMobileAppParams:()=>s});var i=o(16188);function n(e,t=!1){const{searchParams:o}=new URL(String(location));let n="true"===o.get("mobileapp_new"),s="true"===o.get("mobileapp");if(!t){const e=i.get("tv_app")||"";n||(n=["android","android_nps"].includes(e)),s||(s="ios"===e)}return!("new"!==e&&"any"!==e||!n)||!("new"===e||!s)}function s(e,t=!1){if(n("new",t)){const t=new URL(e,location.href);t.searchParams.set("mobileapp_new","true"),e=t.toString()}if(n("old",t)){const t=new URL(e,location.href);t.searchParams.set("mobileapp","true"),e=t.toString()}return e}},912445:(e,t,o)=>{"use strict";let i;function n(e,t){null==i||i(e,t)}function s(e){i=e}o.d(t,{muteLinkingGroup:()=>n,setMuteLinkingGroup:()=>s})},934440:(e,t,o)=>{"use strict";const i=o(244842);window.TradingView=window.TradingView||{};var n,s,r,a,l,c,d,u=TradingView.postMessageWrapper=(s=Object.create(null),r=Object.create(null),a=Object.create(null),l=0,c=0,d="TradingView",window.addEventListener&&window.addEventListener("message",(function(e){var t;try{t=JSON.parse(e.data),i.enabled("charting_library_debug_mode")&&console.log("PostMessage: incoming message: "+JSON.stringify(t))}catch(e){return}if(t&&t.provider&&t.provider===d)if("get"===t.type){if(!r[t.name])return;r[t.name].forEach((function(e){"function"==typeof e&&e.call(t,t.data,(function(e){var o={id:t.id,type:"on",name:t.name, client_id:t.client_id,data:e,provider:d};n.postMessage(JSON.stringify(o),"*")}))}))}else if("on"===t.type)s[t.client_id]&&s[t.client_id][t.id]&&(s[t.client_id][t.id].call(t,t.data),delete s[t.client_id][t.id]);else if("post"===t.type){if(!r[t.name])return;r[t.name].forEach((function(e){"function"==typeof e&&e.call(t,t.data,(function(){}))}))}})),function(e,t){s[t]=Object.create(null),a[t]=e,n=e;var o="";return{on:function(e,t,o){r[e]&&o||(r[e]=[]),r[e].push(t)},get:function(e,o,i){var n={id:l++,type:"get",name:e,client_id:t,data:o,provider:d};s[t][n.id]=i,a[t].postMessage(JSON.stringify(n),"*")},post:function(e,t,i){var n={id:c++,type:"post",name:t,client_id:o,data:i,provider:d};e&&"function"==typeof e.postMessage&&e.postMessage(JSON.stringify(n),"*")},setClientId:function(e){o=e}}});e.exports=u},634786:(e,t,o)=>{"use strict";o.d(t,{trackCookies:()=>n});var i=o(776734);async function n(e,t){var o;let n,s;n="/"===window.location.pathname?"index":window.location.pathname.split("/")[1];const r=null!==(o=window.user.pro_plan)&&void 0!==o?o:window.is_authenticated?"free":"visitor";window.is_authenticated&&(s=window.user.id);const a=await(0,i.getTracker)();a&&a.trackToastDialog("cookies",e,t,n,r,s)}},416234:(e,t,o)=>{"use strict";o.d(t,{SymbolGroup:()=>i,getSymbolGroupData:()=>s});o(586463);var i,n=o(444372);function s(e){const t={[i.NseFlag]:{title:n.t(null,void 0,o(343857)),description:n.t(null,void 0,o(552666))}};return t[e]?t[e]:null}!function(e){e.NseFlag="nse_free",e.McxFlag="mcx_free"}(i||(i={}))},519073:(e,t,o)=>{"use strict";function i(e){return void 0!==e&&e.includes("crypto")}function n(e,t){return"stock"===e&&t.includes("right")||"right"===e}function s(e,t){return r(e,t)||"stock"===e&&t.includes("fund")&&t.includes("etf")||"structured"===e&&t.includes("etn")}function r(e,t){return"fund"===e&&t.includes("etf")}function a(e){return"economic"===e}function l(e,t,o){return i(t)&&"spot"===e&&"USD"===o}function c(e,t){return"spot"===e&&t.includes("cryptoasset")}function d(e){var t;return Boolean(null===(t=e.typespecs)||void 0===t?void 0:t.includes("yield"))}function u(e,t){return"stock"===e&&t.includes("common")||"stock"===e&&t.includes("preferred")||"stock"===e&&t.includes("forward")||"stock"===e&&t.includes("bonus")||"stock"===e&&t.includes("cfd")||"fund"===e&&t.includes("mutual")||"fund"===e&&t.includes("unit")||"fund"===e&&t.includes("trust")||"fund"===e&&t.includes("reit")||"fund"===e&&t.includes("etn")||"fund"===e&&t.includes("closedend")||"bond"===e&&t.includes("convertible")||"dr"===e||"warrant"===e||"structured"===e&&!t.includes("etn")}o.d(t,{hasCryptoTypespec:()=>i,isCryptoSpotUsd:()=>l,isCryptoassetSpot:()=>c,isEconomicSymbol:()=>a,isEtf:()=>s,isFundEtf:()=>r,isRight:()=>n,isStocksSymbol:()=>u,isYield:()=>d})},779923:(e,t,o)=>{"use strict";async function i(e,t){const i=await Promise.all([o.e(62253),o.e(22666),o.e(92108),o.e(92191),o.e(32109),o.e(9817),o.e(34465),o.e(69121),o.e(66639),o.e(30006),o.e(88194),o.e(26855),o.e(40812),o.e(29998),o.e(62526),o.e(38890)]).then(o.bind(o,872462)) ;return i.showSimpleDialog(e,i.renameModule,t)}async function n(e,t){const i=await Promise.all([o.e(62253),o.e(22666),o.e(92108),o.e(92191),o.e(32109),o.e(9817),o.e(34465),o.e(69121),o.e(66639),o.e(30006),o.e(88194),o.e(26855),o.e(40812),o.e(29998),o.e(62526),o.e(38890)]).then(o.bind(o,872462));return i.showSimpleDialog(e,i.confirmModule,t)}async function s(e,t){const i=await Promise.all([o.e(62253),o.e(22666),o.e(92108),o.e(92191),o.e(32109),o.e(9817),o.e(34465),o.e(69121),o.e(66639),o.e(30006),o.e(88194),o.e(26855),o.e(40812),o.e(29998),o.e(62526),o.e(38890)]).then(o.bind(o,872462));return i.showSimpleDialog(e,i.warningModule,t)}o.r(t),o.d(t,{showConfirm:()=>n,showRename:()=>i,showWarning:()=>s})},83871:(e,t,o)=>{"use strict";o.d(t,{SYMBOL_LIST_SERVICE:()=>i});const i={id:"SymbolListService"}},34077:e=>{e.exports={loaderContainer:"loaderContainer-UjjEDANi",loaderOrderContainer:"loaderOrderContainer-UjjEDANi",openAnimation:"openAnimation-UjjEDANi",openOrderAnimation:"openOrderAnimation-UjjEDANi"}},531005:(e,t,o)=>{"use strict";o.d(t,{reconnectChartApi:()=>i,setBroker:()=>n});o(730128);function i(e){const t=window.ChartApiInstance;window.is_authenticated&&(t.disconnect(),e&&t.authTokenManager().reset(),setTimeout((()=>t.connect()),500))}function n(e){window.ChartApiInstance.setBroker(e)}},315347:(e,t,o)=>{"use strict";var i,n;function s(e,t){return"period-back"===e.type&&"period-back"===t.type?e.value===t.value:"time-range"===e.type&&"time-range"===t.type&&(e.from===t.from&&e.to===t.to)}o.d(t,{TIMEFRAMETYPE:()=>n,areEqualTimeFrames:()=>s}),function(e){e.extractErrorReason=function(e){return e.params[1]}}(i||(i={})),function(e){e.PeriodBack="period-back",e.TimeRange="time-range"}(n||(n={}))},707957:(e,t,o)=>{"use strict";o.d(t,{Delegate:()=>s});const i=(0,o(194582).getLogger)("Common.Delegate");function n(e){return!e.singleShot}class s{constructor(){this.fire=this._fireImpl.bind(this),this._listeners=[]}subscribe(e,t,o){this._listeners.push({object:e,member:t,singleShot:!!o,skip:!1})}unsubscribe(e,t){for(let o=0;o=0;--t){const o=this._listeners[t];o.object===e&&(o.skip=!0,this._listeners.splice(t,1))}}destroy(){this._listeners=[]}_fireImpl(...e){const t=this._listeners;this._listeners=this._listeners.filter(n);const o=t.length;for(let n=0;n{"use strict";function i(e,t){return!!(null==t?void 0:t.includes("cfd"))&&["commodity","futures","index","stock","fund"].includes(e)}function n(e,t){return"stock"===e&&void 0!==t&&!t.includes("cfd")}o.d(t,{isCFDSymbol:()=>i,isStockSymbol:()=>n})},866319:(e,t,o)=>{"use strict";o.d(t,{PLATFORM_ACCESSIBILITY_ENABLED:()=>n});var i=o(125226);o(244842);const n=(0,i.isFeatureEnabled)("platform_accessibility")},580602:(e,t,o)=>{"use strict";o.d(t,{ createScopedVisibleElementFilter:()=>c,getActiveElementSelectors:()=>d,mapKeyCodeToDirection:()=>l,navigationOrderComparator:()=>n,queryFocusableElements:()=>r,queryTabbableElements:()=>s,updateTabIndexes:()=>a});var i=o(31341);function n(e,t){return e===t?0:e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1}function s(e){return Array.from(e.querySelectorAll('button:not([disabled]):not([aria-disabled]):not([tabindex="-1"]), [tabindex]:not([disabled]):not([aria-disabled]):not([tabindex="-1"])')).filter(c(e))}function r(e){return Array.from(e.querySelectorAll('button:not([disabled]):not([aria-disabled="true"]):not([aria-disabled=""]), [tabindex]:not([disabled]):not([aria-disabled="true"]):not([aria-disabled=""])')).filter(c(e))}function a(){window.dispatchEvent(new CustomEvent("keyboard-navigation-activation",{bubbles:!0}))}function l(e){const t=(0,i.isRtl)();switch(e){case 38:return"blockPrev";case 40:return"blockNext";case 37:return t?"inlineNext":"inlinePrev";case 39:return t?"inlinePrev":"inlineNext";default:return null}}function c(e){return t=>{let o=t;for(;o!==e&&null!==o;){const e=getComputedStyle(o);if("none"===e.display||"visible"!==e.visibility)return!1;o=o.parentElement}return!0}}function d(){return["button:not([disabled]):not([aria-disabled])","input:not([disabled]):not([aria-disabled])","select:not([disabled]):not([aria-disabled])","textarea:not([disabled]):not([aria-disabled])",'[tabindex]:not([disabled]):not([aria-disabled]):not([tabindex="-1"])'].join(", ")}},497981:(e,t,o)=>{"use strict";o.d(t,{PriceColorer:()=>i});var i,n=o(81979),s=o(790188);!function(e){function t(e,t){return 0===e?t&&void 0!==t.neutral?t.neutral:n.color.black70:e>0?t&&void 0!==t.up?t.up:s.colorsPalette["color-success"]:t&&void 0!==t.down?t.down:s.colorsPalette["color-danger"]}e.formatSign=t,e.formatDiff=function(e,o){return t(o-e)},e.domDifference=function(e,t,o=0,i="",n=""){function s(e){const t=document.createElement("span");return t.innerHTML=e,t}const r=document.createElement("div");if(!o)return r.appendChild(s(e)),r;const a=e+"",l=t+"";let c=null;if(a.length===l.length){for(let e=0;e{"use strict";o.d(t,{PLACE_HOLDER:()=>r,VolumeFormatter:()=>a});var i=o(444372),n=o(182436),s=o(389137);const r="---";class a{constructor(e,t){this.type="volume",this._numericFormatter=new n.NumericFormatter,this._fractionalValues=void 0!==e&&e>0,this._precision=e,this._spaceBeforeDimension=t?" ":""}state(){return{precision:this._precision}}format(e,t){if(!(0,s.isNumber)(e))return r;let n="";return e<0?(n="−",e=-e):e>0&&t&&(n="+"),e>=1e100?i.t(null,void 0,o(343088)):(!this._fractionalValues||e>=995?e=Math.round(e):this._fractionalValues&&(e=+e.toFixed(this._precision)), e<995?n+this._formatNumber(e):e<999995?n+this._formatNumber(e/1e3)+this._spaceBeforeDimension+"K":e<999999995?(e=1e3*Math.round(e/1e3),n+this._formatNumber(e/1e6)+this._spaceBeforeDimension+"M"):e<999999999995?(e=1e6*Math.round(e/1e6),n+this._formatNumber(e/1e9)+this._spaceBeforeDimension+"B"):(e=1e9*Math.round(e/1e9),n+this._formatNumber(e/1e12)+this._spaceBeforeDimension+"T"))}parse(e){if("---"===e)return{error:"not a number",res:!1,value:NaN};const t={K:1e3,M:1e6,B:1e9,T:1e12},o=e.slice(-1);if(t.hasOwnProperty(o)){const i=this._numericFormatter.parse(e.slice(0,-1));return(0,s.isNumber)(i)?{res:!0,value:i*t[o]}:{error:"not a number",res:!1,value:NaN}}{const t=this._numericFormatter.parse(e);return(0,s.isNumber)(t)?{res:!0,value:t}:{error:"not a number",res:!1,value:NaN}}}static serialize(e){return e.state()}static deserialize(e){return new a(e.precision)}_formatNumber(e){if(this._fractionalValues&&0!==e){const t=14-Math.ceil(Math.log10(e)),o=Math.pow(10,t);e=Math.round(e*o)/o}return this._numericFormatter.format(e).replace(/(\.[1-9]*)0+$/,((e,t)=>t))}}},824837:(e,t,o)=>{"use strict";o.d(t,{createWVFromGetterAndSubscription:()=>n});var i=o(401580);function n(e,t){const o=new i.WatchedValue(e()),n={};t.subscribe(n,(()=>{o.setValue(e())}));return o.readonly().spawn((()=>t.unsubscribeAll(n)))}},529426:(e,t,o)=>{"use strict";function i(e){if(!e)return"";if(["AMEX"].includes(e))return"Arca";if(["NYSE ARCA & MKT"].includes(e))return"NYSE Arca";if(["Cboe BZX"].includes(e))return"Cboe One";if(["FTSEST"].includes(e))return"FTSE ST";const t=/^(CME|COMEX|CBOT|NYMEX)_MINI$/.exec(e);return null!==t?t[1]:e}o.d(t,{redefineExchangeName:()=>i})},339315:(e,t,o)=>{"use strict";o.r(t),o.d(t,{SERIES_STATUS_TEXT:()=>f,STATUS_DELAYED:()=>u,STATUS_DELAYED_STREAMING:()=>h,STATUS_EOD:()=>c,STATUS_ERROR:()=>m,STATUS_INVALID_SYMBOL:()=>a,STATUS_LOADING:()=>s,STATUS_NO_BARS:()=>_,STATUS_OFFLINE:()=>i,STATUS_PULSE:()=>d,STATUS_READY:()=>r,STATUS_REPLAY:()=>p,STATUS_RESOLVING:()=>n,STATUS_SNAPSHOT:()=>l,STYLE_AREA:()=>E,STYLE_BARS:()=>w,STYLE_BASELINE:()=>A,STYLE_CANDLES:()=>S,STYLE_COLUMNS:()=>D,STYLE_HEIKEN_ASHI:()=>P,STYLE_HILO:()=>O,STYLE_HLC_AREA:()=>I,STYLE_HOLLOW_CANDLES:()=>N,STYLE_KAGI:()=>y,STYLE_LINE:()=>v,STYLE_LINE_WITH_MARKERS:()=>k,STYLE_PB:()=>T,STYLE_PNF:()=>b,STYLE_RANGE:()=>L,STYLE_RENKO:()=>C,STYLE_SHORT_NAMES:()=>F,STYLE_STEPLINE:()=>x,SYMBOL_STRING_DATA:()=>R,chartStylesWithAttachedStudies:()=>M,seriesReadyStatuses:()=>g});const i=0,n=1,s=2,r=3,a=4,l=5,c=6,d=7,u=8,h=9,_=10,p=11,m=12,g=new Set([3,6,7,8,9,11]),f={[i]:"connecting",[n]:"loading",[s]:"loading",[r]:"realtime",[a]:"invalid",[l]:"snapshot",[c]:"endofday",[d]:"endofday",[u]:"delayed",[h]:"delayed_streaming",[_]:"forbidden",[p]:"replay",[m]:"error"},w=0,S=1,v=2,E=3,C=4,y=5,b=6,T=7,P=8,N=9,A=10,L=11,O=12,D=13,k=14,x=15,I=16,F={0:"bar",1:"candle",9:"hollowCandle",2:"line",14:"lineWithMarkers",15:"stepline",3:"area",16:"hlcArea",4:"renko",7:"pb",5:"kagi",6:"pnf",8:"ha",10:"baseline",11:"range",12:"hilo",13:"column",17:"volFootprint",18:"tpo",19:"volCandles"},R={4:{ type:"BarSetRenko@tv-prostudies",basicStudyVersion:64},7:{type:"BarSetPriceBreak@tv-prostudies",basicStudyVersion:34},5:{type:"BarSetKagi@tv-prostudies",basicStudyVersion:34},6:{type:"BarSetPnF@tv-prostudies",basicStudyVersion:34},8:{type:"BarSetHeikenAshi@tv-basicstudies",basicStudyVersion:60},11:{type:"BarSetRange@tv-basicstudies",basicStudyVersion:72},17:{type:"Footprint@tv-volumebyprice",basicStudyVersion:104},18:{type:"TPOPeriodic@tv-volumebyprice",basicStudyVersion:104}},M=[17,18]},846540:(e,t,o)=>{"use strict";o.r(t),o.d(t,{types:()=>i});const i={ECONOMIC:"economic",QUANDL:"quandl"}},151874:(e,t,o)=>{"use strict";o.r(t);var i=o(226722),n=o(345848),s=o(120780),r=o(924335),a=o(534909),l=o(541558),c=o(66974),d=o(49437),u=o(201089);const h=(0,u.getLogger)("Common.Evercookie");o(30707);const _=new window.evercookie({domain:(0,c.isProd)()?".tradingview.com":location.hostname,lso:!1}),p=(0,u.getLogger)("Common.Evercookie"),m=/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i;class g{constructor(){this._cookieName="tv_ecuid",this._env=null,this.check=()=>{if(this._isEcNotAvailable()||d.TVLocalStorage.getItem("_tv_ec_ignore_username")===window.user.username)return;const e=window.user.id;this._getEcUids().catch((e=>{p.logWarn(`Error thrown inside getEcUids(). Leave evercookie data untouched. User: ${window.user.username} (${window.user.id})\nActual error: ${e}`)})).then((t=>{if(void 0===t)return void p.logWarn(`getEcUids() returned no data. Leave evercookie data untouched. User: ${window.user.username} (${window.user.id})`);let i=t.localEcUid;const n=t.remoteEcUids;i&&m.test(i)||(i=(0,l.guid)(),_.set(this._cookieName,i));const r=t=>{t.subscription_canceled&&Promise.all([o.e(62253),o.e(92191),o.e(33199),o.e(61298),o.e(9236),o.e(50690),o.e(18932)]).then(o.bind(o,136313)).then((e=>e.createTrialCanceledDialog())),e===window.user.id&&t.is_suspicious?d.TVLocalStorage.setItem("is_suspicious","1"):d.TVLocalStorage.removeItem("is_suspicious")};n&&0!==n.length&&-1!==n.indexOf(i)||e!==window.user.id||function(e){const t=new FormData;return t.append("ecuid",e),(0,s.fetch)("/accounts/set-ecuid/",{body:t,credentials:"include",method:"POST"}).then((e=>{if(e.ok)return e.json().catch((e=>{h.logWarn(`Error in reponse.json() of /accounts/set-ecuid/. User: ${window.user.username} (${window.user.id})\nActual error: ${e}`)}));throw new Error("Unable to set remote ecuids. Response was not OK")}))}(i).then(r)})).catch((e=>{p.logError(e.message+` User: ${window.user.username} (${window.user.id})`)}))},this._isEcNotAvailable()||(this._env=(0,c.environment)(),(0,c.isDebug)()&&(this._cookieName+="_"+this._env))}_isEcNotAvailable(){return TradingView.onWidget&&TradingView.onWidget()||!window.user}_getLocalEcUid(){return new Promise((e=>{_.get(this._cookieName,(t=>{e(t)}))}))}_getEcUids(){return new Promise(((e,t)=>{let o;this._getLocalEcUid().then((e=>(o=e,function(e){return new Promise(((t,o)=>{const i=new FormData;e&&i.append("local_ecuid",e),(0,s.fetch)("/accounts/get-ecuid/",{body:i,credentials:"include",method:"POST" }).then((e=>{if(e.ok)return e.json().catch((e=>{h.logWarn(`Error in reponse.json() of /accounts/get-ecuid/. User: ${window.user.username} (${window.user.id})\nActual error: ${e}`)}));throw new Error("Unable to get remote ecuids. Response was not OK")})).then((e=>{t(e)})).catch((e=>{o(e)}))}))}(e)))).then((t=>{if(void 0===t)throw new Error(`getRemoteEcUids() returned no response. User: ${window.user.username} (${window.user.id})`);e({localEcUid:o,remoteEcUids:t.ecuids})})).catch((e=>{t(e)}))}))}}var f=o(252458);document.addEventListener("DOMContentLoaded",(()=>{document.addEventListener("click",(e=>{const t=e.target.closest(".js-profile-message");t instanceof HTMLElement&&(e.preventDefault(),function(e){const t=e.dataset.username;window.runOrSignIn((()=>(0,f.openPMDialog)(t)),{source:"Private message from broker popup",verifiedPhoneRequired:!0})}(t))}))}));var w=o(781666),S=o(638456),v=o(314802),E=o(799786),C=o(860037);var y=o(251954),b=o(673747),T=o(49336);function P(e,t="x"){let o=!1;return"x"!==t&&"both"!==t||(o=o||e.offsetWidth(t.nodeType===Node.TEXT_NODE&&e.push(t.textContent||""),e)),[]).join("").trim()),o}function O(e,t){let o=!1;const i=e.children;for(let e=0;e{document.addEventListener("mouseenter",(e=>{const t=e.target;if(t instanceof HTMLElement&&t.matches(".apply-overflow-tooltip")){const e=A(t);if(t.matches(".apply-overflow-tooltip--check-children-recursively")){if(!N(t,e))return}else if(t.matches(".apply-overflow-tooltip--check-children")){if(!O(t,e))return}else if(!P(t,e))return;(0,b.showOnElement)(t,{text:L(t)});const o=()=>{(0,b.hide)(),["mouseleave","mousedown"].forEach((e=>t.removeEventListener(e,o)))};["mouseleave","mousedown"].forEach((e=>t.addEventListener(e,o)))}}),!0),document.addEventListener("focus",(e=>{const t=e.target;if(t instanceof HTMLElement&&(t.matches(".apply-overflow-tooltip-focus")||t.querySelector(".apply-overflow-tooltip-focus"))){const e=t.matches(".apply-overflow-tooltip")?t:t.querySelector(".apply-overflow-tooltip"),o=A(e);if(e.matches(".apply-overflow-tooltip--check-children-recursively")){if(!N(e,o))return}else if(e.matches(".apply-overflow-tooltip--check-children")){if(!O(e,o))return}else if(!P(e,o))return;(0,b.showOnElement)(t,{text:L(e)});const i=()=>{(0,b.hide)(),t.removeEventListener("blur",i)};t.addEventListener("blur",i)}}),!0)}));var D=o(707957),k=o(173278),x=o(329806),I=o(895171),F=o(591800),R=o(580602) ;class M{constructor(){this._handleMouseDown=()=>{this._forwardTab=void 0},this._handleKeyDown=e=>{this._forwardTab=void 0,[9,F.Modifiers.Shift+9].includes((0,F.hashFromEvent)(e))&&(this._forwardTab=!e.shiftKey)},this._handleFocus=e=>{const t=e.target;if(void 0===this._forwardTab||!(t instanceof HTMLElement))return;const o=this._findDeepestFocusTrapElement(document.documentElement);if(!(o instanceof HTMLElement)||!o||o.contains(t))return;e.preventDefault(),e.stopPropagation(),t.blur();const i=o.compareDocumentPosition(t);if(i&Node.DOCUMENT_POSITION_PRECEDING||i&Node.DOCUMENT_POSITION_FOLLOWING){const e=this._forwardTab?V(o):V(o,!0);e instanceof HTMLElement&&e.focus()}},document.documentElement.addEventListener("focus",this._handleFocus,{capture:!0}),document.documentElement.addEventListener("keydown",this._handleKeyDown,{capture:!0}),document.documentElement.addEventListener("mousedown",this._handleMouseDown,{capture:!0})}destroy(){document.documentElement.removeEventListener("focus",this._handleFocus,{capture:!0}),document.documentElement.removeEventListener("keydown",this._handleKeyDown,{capture:!0}),document.documentElement.removeEventListener("mousedown",this._handleMouseDown,{capture:!0})}_findDeepestFocusTrapElement(e){const t=e.querySelectorAll('[data-focus-trap="true"]');let o=null,i=-1;return t.forEach((t=>{const n=this._calculateParentCount(t,e);n>i&&(i=n,o=t)})),o}_calculateParentCount(e,t){let o=0,i=e.parentElement;for(;i&&i!==t;)"true"===i.getAttribute("data-focus-trap")&&o++,i=i.parentElement;return o}}const U=(0,I.default)((()=>new M));function V(e,t){var o;const i=(0,R.getActiveElementSelectors)(),n=Array.from(e.querySelectorAll(i)).filter((0,R.createScopedVisibleElementFilter)(e));return null!==(o=t?n[n.length-1]:n[0])&&void 0!==o?o:null}var B=o(402243);var H=o(392896),j=o(641261),W=o(665343),Y=o(384295);let $,G;function q(){if(window.initData.lfs){const e=document.getElementsByClassName("js-admin-warning")[0];document.body.removeChild(e)}let e=!0;[/^\/chart\//,/^\/share-your-love\//].forEach((t=>{t.test(window.location.pathname)&&(e=!1)})),e&&window.location.reload()}function K(e){window.user=(0,x.deepExtend)({},e),window.TradingView.changeLoginState(!0)}function X(e){const t=window.user.available_offers||{};{const e=document.documentElement;e.classList.toggle("is-authenticated",window.is_authenticated),e.classList.toggle("is-not-authenticated",!window.is_authenticated)}window.TVSettings&&window.TVSettings.sync(window.user.settings),window.is_authenticated?(e&&!1!==window.user.profile_data_filled||void 0===G||G.check(),e||(Promise.all([o.e(20941),o.e(50690),o.e(19158)]).then(o.bind(o,444139)).then((e=>e.offerButtonLoginStateChangeInit())),(0,S.onGoPro)()&&window.location.reload()),!1===window.user.profile_data_filled&&((0,S.checkPageType)("mobile")||(0,v.isOnMobileAppPage)("any")||window.location.pathname.startsWith("/privacy-policy")||window.location.pathname.startsWith("/policies")||(0,T.whenDocumentReady)((()=>{(0,w.showSignModal)({mode:"create-account",onUnmountEvent:()=>{ window.user.social_registration?(o.e(22947).then(o.bind(o,113452)).then((({registrationEvent:e})=>{e("Social")})),(0,j.trackGTagAdsEvent)(j.GTagEvent.RegistrationCompleted),(0,W.trackTwitterEvent)(W.TwitterEvent.RegistrationCompleted),(0,Y.trackCmEvent)(Y.CmEvent.RegistrationCompleted),delete window.user.social_registration):i.TVXWindowEvents.emit("loginStateChange",JSON.stringify({is_authenticated:window.is_authenticated,user:window.user}))}})}),!0),(0,n.trackEvent)("Conversion","First login"),delete window.user.profile_data_filled),window.TradingView.setTrialAvailiable(void 0!==t[r.OFFERS.trial])):(Object.keys(t).forEach((e=>{const o=e;t[o].available_for_anons||delete t[o]})),window.user={username:"Guest",following:"0",followers:"0",ignore_list:[],available_offers:t},d.TVLocalStorage.removeItem("trial_availiable"))}$=window.loginStateChange?window.loginStateChange:window.loginStateChange=new D.Delegate,$.subscribe(null,X),(0,E.createGroup)({desc:"Support"}).add({desc:"Open",hotkey:E.Modifiers.Mod+191,handler:()=>(0,C.showSupportDialog)({initialState:"shortcuts"})}),i.TVXWindowEvents.on("loginStateChange",(e=>{const t=JSON.parse(e);window.user=t.user,window.is_authenticated=!!t.is_authenticated,$.fire()})),i.TVXWindowEvents.on("signOut",(()=>{q()})),(()=>{const e="user-obj-changed",t={};window.crossTabSyncUserAttr=t=>{const o={};t instanceof Array?t.forEach((e=>{o[e]=window.user[e]})):o[t]=window.user[t],i.TVXWindowEvents.emit(e,JSON.stringify(o))},i.TVXWindowEvents.on(e,(e=>{const o=JSON.parse(e);let i;for(i in o)if(o.hasOwnProperty(i)){window.user[i]=o[i];(t[i]||[]).forEach((e=>{e.fire(o[i])}))}}))})(),window.TradingView.changeLoginState=e=>{window.is_authenticated=!!e,i.TVXWindowEvents.emit("loginStateChange",JSON.stringify({is_authenticated:window.is_authenticated,user:window.user})),$.fire(),window.is_authenticated&&y.emit(k.GLOBAL_EVENT_SIGN_IN_SUCCESS)},window.loginUser=K,window.addEventListener("storage",(e=>{"login_user"===e.key&&null!==e.newValue&&K(JSON.parse(e.newValue))})),window.TradingView.signOut=()=>{const e={...window.user};(0,s.fetch)("/accounts/logout/",{method:"POST",headers:{accept:"html"},credentials:"same-origin"}).then((()=>{window.TradingView.changeLoginState(!1),i.TVXWindowEvents.emit("signOut"),q()})).catch((()=>{window.user=e,window.TradingView.changeLoginState(!0)}))},G=new g,window.loginRequiredDelegate=new D.Delegate,window.runOrSignIn=(e,t)=>{t||(t={});const o=[];if(t.paidAccountCheck&&o.push((()=>(0,H.paidAccountCheck)({successButtonText:t.paidAccountSuccessButtonText}))),t.verifiedPhoneRequired){const e=()=>Promise.resolve((0,B.whenVerified)({showDialog:!0,source:t.source,doNotCheckSuspicious:t.doNotCheckSuspicious,doNotCheckSocialActivity:t.doNotCheckSocialActivity,customPhoneCheck:t.customPhoneCheck,doNotShowConfirmation:t.doNotShowConfirmation,isSuspiciousCountry:t.isSuspiciousCountry}));o.push(e)}window.is_authenticated?o.reduce(((e,t)=>e.then(t)),Promise.resolve()).then(e).catch((()=>{})):(0,w.showSignModal)({source:t.source,sourceMeta:t.sourceMeta,feature:t.feature, mode:t.mode,signinSuccess:e,startTrial:t.startTrial,onUnmountEvent:t.onUnmountEvent})},window.is_authenticated&&i.TVXWindowEvents.on("user-status-declared",(e=>{window.user.declared_status=e})),window.onLoginStateChange=X,window.TradingView.setTrialAvailiable=e=>{d.TVLocalStorage.setItem("trial_availiable",e?"1":"0")},window.TradingView.notificationsChanged=new D.Delegate,(0,a.install)(),U()},764005:(e,t,o)=>{"use strict";function i(e,t,o){return e*(1-o)+t*o}o.d(t,{doAnimate:()=>r,lerp:()=>i});const n={from:0,duration:250,easing:o(81979).easingFunc.easeOutCubic};class s{constructor(e){this._doing=!0,this._completed=!1,this._options={...n,...e};const t=performance.now();window.requestAnimationFrame((e=>{this._animation(t,this._options.from,e)}))}stop(){this._doing=!1}completed(){return this._completed}_animation(e,t,o){if(!this._doing)return void this._finishAnimation();const n=(o=!o||o<1e12?performance.now():o)-e,s=n>=this._options.duration||t===this._options.to,r=i(this._options.from,this._options.to,this._options.easing(n/this._options.duration)),a=s?this._options.to:r,l=a-t;this._options.onStep(l,a),s?this._finishAnimation():window.requestAnimationFrame((t=>{this._animation(e,a,t)}))}_finishAnimation(){this._options.onComplete&&this._options.onComplete(),this._completed=!0}}function r(e){return new s(e)}},201089:(e,t,o)=>{"use strict";o.r(t),o.d(t,{LOGLEVEL:()=>i.LOGLEVEL,getLogHistory:()=>i.getLogHistory,getLogLevel:()=>i.getLogLevel,getLogger:()=>i.getLogger,getRawLogHistory:()=>i.getRawLogHistory,isHighRateEnabled:()=>i.isHighRateEnabled,loggingOff:()=>i.loggingOff,loggingOn:()=>i.loggingOn,serializeLogHistoryEntry:()=>i.serializeLogHistoryEntry,setLogLevel:()=>i.setLogLevel});var i=o(194582)},922651:()=>{"use strict";(()=>{if(window.matchMedia("").addEventListener)return;const e=window.matchMedia;window.matchMedia=(...t)=>{const o=e(...t);return o.addEventListener=(e,t)=>o.addListener(t),o.removeEventListener=(e,t)=>o.removeListener(t),o}})()},851269:(e,t,o)=>{"use strict";o.d(t,{getCountries:()=>s});var i=o(120780);let n=null;async function s(){var e;if(null!==n)return n;const t=await(0,i.fetch)("/accounts/countries/",{credentials:"include"});if(!t.ok){const e=await t.json();throw Error(String(e))}const o=await t.json();return n={...o,current_country_code:null!==(e=o.current_country_code)&&void 0!==e?e:"US"},n}},822122:(e,t,o)=>{"use strict";var i,n,s,r;o.d(t,{BrokerPlans:()=>s,BrokerPlansIds:()=>r,ExpertPlans:()=>n,ProPlans:()=>i}),function(e){e.Free="free",e.Pro="pro",e.ProTrial="pro_trial",e.ProRealtime="pro_realtime",e.ProRealtimeTrial="pro_realtime_trial",e.ProPremium="pro_premium",e.ProPremiumTrial="pro_premium_trial"}(i||(i={})),function(e){e.ProExpert="pro_expert",e.ProRealtimeExpert="pro_realtime_expert",e.PremiumExpert="pro_premium_expert"}(n||(n={})),function(e){e.Platinum="platinum",e.Gold="gold",e.Silver="silver",e.Free="free"}(s||(s={})),function(e){e[e.Platinum=3]="Platinum",e[e.Gold=2]="Gold",e[e.Silver=1]="Silver",e[e.Free=0]="Free"}(r||(r={}))},371927:(e,t,o)=>{"use strict";o.d(t,{ ActionButtonsLayout:()=>s,ContentAlign:()=>n,PredefinedAction:()=>i});var i,n,s;o(86746);!function(e){e.Close="close",e.OpenGopro="openGopro"}(i||(i={})),function(e){e.Center="center",e.Left="left"}(n||(n={})),function(e){e.Row="row",e.Column="column"}(s||(s={}))},261642:(e,t,o)=>{"use strict";o.d(t,{initOrderDialogLoader:()=>s});var i=o(34077);let n=null;async function s(e=!1){if(n)return n;const t=document.querySelector("body"),s=document.createElement("div");t.classList.add("i-no-scroll"),s.classList.add(i.loaderContainer),e&&s.classList.add(i.loaderOrderContainer),t.appendChild(s);const{Spinner:r}=await Promise.all([o.e(76592),o.e(78775)]).then(o.bind(o,941285)),a=new r;return a.spin(s),e?s.classList.add(i.openOrderAnimation):s.classList.add(i.openAnimation),n=()=>{a&&a.destroy(),s&&t.contains(s)&&t.removeChild(s),n=null},n}},971843:(e,t,o)=>{"use strict";async function i(e){(await Promise.all([o.e(78596),o.e(18762),o.e(27960),o.e(72374),o.e(98873),o.e(62253),o.e(22666),o.e(92108),o.e(5993),o.e(92191),o.e(32109),o.e(9817),o.e(4015),o.e(53842),o.e(34465),o.e(69121),o.e(93502),o.e(66639),o.e(88194),o.e(76592),o.e(72639),o.e(36884),o.e(68992),o.e(88548),o.e(13423),o.e(10990),o.e(81643),o.e(13152),o.e(48986),o.e(91033),o.e(84281),o.e(49205),o.e(6209),o.e(8740),o.e(13821),o.e(542),o.e(55242),o.e(27620),o.e(36842),o.e(43131),o.e(87689),o.e(73628),o.e(73028),o.e(20941),o.e(27143),o.e(93785),o.e(76329),o.e(1564),o.e(46987),o.e(23307),o.e(20563),o.e(30794),o.e(35995),o.e(35530),o.e(51908),o.e(50690),o.e(20522),o.e(40619),o.e(2493),o.e(42292),o.e(19359),o.e(77908),o.e(92553),o.e(39013),o.e(17522),o.e(54285),o.e(38357),o.e(78703)]).then(o.bind(o,781258))).openPaymentOrderDialog(e)}o.d(t,{showPaymentOrderDialog:()=>i})},683253:(e,t,o)=>{"use strict";o.d(t,{check:()=>n});var i=o(851269);async function n(){const{is_restricted:e}=await(0,i.getCountries)();return e}},419398:(e,t,o)=>{"use strict";o.r(t),o.d(t,{showRestrictedCountryNotificationDialog:()=>s});var i=o(444372),n=o(779923);function s(){(0,n.showWarning)({title:i.t(null,void 0,o(513111)),text:i.t(null,void 0,o(82352))})}},252458:(e,t,o)=>{"use strict";function i(){return Promise.all([o.e(65454),o.e(48009),o.e(32109),o.e(4015),o.e(76592),o.e(72639),o.e(89842),o.e(88548),o.e(13423),o.e(63987),o.e(33371),o.e(54712),o.e(6744),o.e(42244),o.e(58961),o.e(42254),o.e(40639),o.e(50690),o.e(24951),o.e(30877),o.e(87566),o.e(24327),o.e(82614),o.e(24025)]).then(o.t.bind(o,748598,19))}function n(e,t){i().then((o=>o.noteForAuthor(e,t)))}function s(e,t){i().then((o=>o.openPMDialog(e,t)))}function r(){i().then((e=>e.newPrivateChatDialog()))}o.d(t,{newPrivateChatDialog:()=>r,noteForAuthor:()=>n,openPMDialog:()=>s})},397150:(e,t,o)=>{"use strict";o.d(t,{showTooManyStudiesNotice:()=>s});var i=o(444372),n=o(779923);function s(e){(0,n.showWarning)({title:i.t(null,void 0,o(533603)),text:i.t(null,{replace:{number:`${e}`}},o(470213))})}},173278:(e,t,o)=>{"use strict";o.d(t,{GLOBAL_EVENT_SIGN_IN_SUCCESS:()=>i,showEmailKey:()=>r,signupSource:()=>n,signupSourceMeta:()=>s}) ;const i="GLOBAL_EVENT_SIGN_IN_SUCCESS";const n="signupSource",s="signupSourceMeta",r="auto-show-email-for-signin"},860037:(e,t,o)=>{"use strict";o.d(t,{showSupportDialog:()=>i});o(659863);function i(e){return Promise.all([o.e(3232),o.e(22666),o.e(5993),o.e(92191),o.e(32109),o.e(4015),o.e(53842),o.e(34465),o.e(69121),o.e(93502),o.e(66639),o.e(88194),o.e(76592),o.e(72639),o.e(36884),o.e(13423),o.e(10990),o.e(48986),o.e(63987),o.e(92483),o.e(1888),o.e(35213),o.e(6209),o.e(63830),o.e(8740),o.e(61298),o.e(73954),o.e(542),o.e(73628),o.e(90592),o.e(94502),o.e(58961),o.e(34690),o.e(33578),o.e(50690),o.e(25977),o.e(23127),o.e(24951),o.e(64972),o.e(87566),o.e(50431),o.e(54285),o.e(57274)]).then(o.bind(o,615592)).then((t=>new t.SupportDialog(e).open()))}},434290:(e,t,o)=>{"use strict";async function i(e,t,i,n=!0){Promise.all([o.e(5447),o.e(62253),o.e(22666),o.e(92108),o.e(92191),o.e(32109),o.e(9817),o.e(48986),o.e(6209),o.e(8740),o.e(76329),o.e(23307),o.e(43830),o.e(50690),o.e(62526),o.e(54554),o.e(79124)]).then(o.bind(o,859786)).then((({showDeclarationDialog:o})=>o(e,t,i,n)))}o.d(t,{showDeclarationDialog:()=>i})},21509:(e,t,o)=>{"use strict";o.d(t,{showWithUserDeclarationDialog:()=>a});var i=o(434290),n=o(29900),s=o(807655),r=o(793335);const a=e=>{const{callback:t,isExpertProduct:o,isCloseButtonShown:a,onClose:l}=e;return null===window.user.declared_status?((0,r.trackUserDeclarationEvent)("show_user_declaration",s.UserStatus.NonPro),(0,i.showDeclarationDialog)(t,l,o,void 0===a||a)):(e=>{var t,o,i;return void 0!==e&&!e&&(null===(t=window.user)||void 0===t?void 0:t.declared_status)===s.UserStatus.Pro&&!(null===(o=window.user)||void 0===o?void 0:o.is_expert)&&Boolean(null===(i=window.user)||void 0===i?void 0:i.is_pro)})(o)?(0,n.showUpgradeToProDialog)({onClose:l}):t()}},29900:(e,t,o)=>{"use strict";async function i(e={}){Promise.all([o.e(78596),o.e(39228),o.e(62253),o.e(22666),o.e(92108),o.e(32109),o.e(9817),o.e(13423),o.e(48986),o.e(76329),o.e(7543),o.e(50690),o.e(62526),o.e(53490),o.e(72736),o.e(54554),o.e(60662),o.e(15199)]).then(o.bind(o,782171)).then((({showUpgradeToProDialog:t})=>t(e)))}o.d(t,{showUpgradeToProDialog:()=>i})},793335:(e,t,o)=>{"use strict";o.d(t,{trackUserDeclarationEvent:()=>n});var i=o(776734);async function n(e,t){const o=await(0,i.getTracker)(),n={action:e,status:t};o&&o.trackUserDeclarationEvent(n)}},807655:(e,t,o)=>{"use strict";o.d(t,{DAYS_UNTIL_BLOCK:()=>s,UserStatus:()=>i,getDaysUntilBlock:()=>r,isUserLockedOut:()=>a});var i,n=o(755785);!function(e){e.NonPro="non_pro",e.Pro="pro"}(i||(i={}));const s=30,r=(0,n.memoize)((()=>{const e=window.user.declared_status_timestamp;if(!e)return null;const t=((new Date).getTime()-new Date(1e3*e).getTime())/1e3/24/60/60;return s-Math.floor(t)})),a=(0,n.memoize)((e=>{const t=null!=e?e:r();return Boolean(t&&t<0)}))},859261:(e,t,o)=>{"use strict";async function i(e){ return(await Promise.all([o.e(78596),o.e(52926),o.e(92191),o.e(32109),o.e(34465),o.e(69121),o.e(66639),o.e(88194),o.e(76592),o.e(10990),o.e(13152),o.e(63987),o.e(1888),o.e(35213),o.e(63830),o.e(61298),o.e(542),o.e(87689),o.e(97828),o.e(50690),o.e(25977),o.e(24461),o.e(42292),o.e(88913),o.e(77908),o.e(33770),o.e(68606)]).then(o.bind(o,460978))).createPhoneDialog(e)}async function n(e){return(await Promise.all([o.e(78596),o.e(52926),o.e(92191),o.e(32109),o.e(34465),o.e(69121),o.e(66639),o.e(88194),o.e(76592),o.e(10990),o.e(13152),o.e(63987),o.e(1888),o.e(35213),o.e(63830),o.e(61298),o.e(542),o.e(87689),o.e(97828),o.e(50690),o.e(25977),o.e(24461),o.e(42292),o.e(88913),o.e(77908),o.e(33770),o.e(68606)]).then(o.bind(o,460978))).createEmailDialog(e)}o.d(t,{createPhoneDialog:()=>i,createSMSEmailDialog:()=>n})},534909:(e,t,o)=>{"use strict";async function i(e){if(!(e.target&&e.target instanceof Element))return;const t=e.target.closest(".js-follow-user");if(!t)return;const{followUserHandler:i}=await Promise.all([o.e(57285),o.e(45607)]).then(o.bind(o,999026));await i(t)}function n(){document.body.addEventListener("click",i)}o.d(t,{install:()=>n})},402243:(e,t,o)=>{"use strict";o.d(t,{verificationIsRequired:()=>h,whenVerified:()=>_});var i=o(444372),n=o(345848),s=o(859261),r=o(49437),a=o(244842),l=o(957879);let c=l.Deferred();function d(e,t){var o=TVSettings.getBool("_phone_verif_dlg_initial",!0);TVSettings.setValue("_phone_verif_dlg_initial",!1),(0,n.trackEvent)("Phone verification",e+(o?" initial":""),t)}function u(e){const t=l.Deferred();return(0,s.createPhoneDialog)({featureSource:e.source,doNotShowConfirmation:e.doNotShowConfirmation}).then((o=>{o.on("afterOpen",(()=>d("Show dialog",e.source))).on("verification:success",(o=>{t.resolve(o),d("Verified",e.source)})).on("verification:cancel",(()=>{t.reject("cancelled"),d("Cancelled",e.source)})).on("verification:codeExpired",(()=>d("Show dialog",e.source))).open()})),t}function h(e={}){return new Promise((t=>{!window.is_authenticated||user.is_staff||user.is_superuser||user.is_pro||user.is_moderator?t([!1]):e.customPhoneCheck?e.customPhoneCheck()?t([!0,"date-joined"]):t([!1]):a.enabled("phone_verification")&&!user.has_phone?e.isSuspiciousCountry?t([!0]):!0!==e.doNotCheckSocialActivity?t([!0,"date-joined"]):(!0!==e.doNotCheckSuspicious&&t([Boolean(r.TVLocalStorage.getItem("is_suspicious")),"suspicious"]),t([!0,"default"])):t([!1])}))}function _(e={}){const t=l.Deferred();return h({doNotCheckSuspicious:e.doNotCheckSuspicious,doNotCheckSocialActivity:e.doNotCheckSocialActivity,customPhoneCheck:e.customPhoneCheck,isSuspiciousCountry:e.isSuspiciousCountry}).then((([n,s])=>{if(!n)return c.resolve(),t.resolve();if(n&&e.silentPhoneVerification)return t.reject("phone_verification_required");if(!e.showDialog)return c.done((()=>t.resolve()));const r={source:e.source,doNotShowConfirmation:e.doNotShowConfirmation};"suspicious"!==s&&(r.topMessage=i.t(null,void 0,o(236640))),u(r).done((()=>t.resolve())).always((()=>t.reject("phone_verification_declined")))})).catch((e=>e)),t.promise()} window.loginStateChange&&loginStateChange.subscribe(null,(()=>{window.is_authenticated&&(c=l.Deferred(),h().then((([e,t])=>{e||c.resolve()})))}))},318172:(e,t,o)=>{"use strict";o.d(t,{Pro:()=>u});var i=o(120780),n=o(101090),s=o(746133),r=o(403009),a=o(707957),l=o(588948),c=o(201089);const d=(0,l.getFreshInitData)();class u{constructor(e){var t;this.packagesUpdated=new a.Delegate,this.PRODUCT_TYPES={pro_plan:1,exchange:4,connection:6,coins:8},this._products={},this._invalidShopConf=!1,this._freeProductIds=["tv-scripting","tv-basicstudies","tv-prostudies","Script$USER","Script$EDGR","ESD$TV"],this._discounts={},this._offers=[],this._logger=(0,c.getLogger)("Pro"),e&&(this._offers=null!==(t=e.offers)&&void 0!==t?t:[],this._invalidShopConf=!0,"undefined"!=typeof window&&window.loginStateChange.subscribe(this,this.onLoginStateChange))}isDiscountProductId(e){return e in this._discounts}hasPackage(e){return this._offers.includes(e)||this._freeProductIds.includes(e)}async updateShopConf(e=!1){return void 0!==this._shopConfPromise||(this._shopConfPromise=(0,i.fetch)("/market/shopconf/",{credentials:"include"}).then((async t=>{const o=await t.json();return this._products=o.all_products&&JSON.parse(o.all_products)||{},this._discounts=o.discounts&&JSON.parse(o.discounts)||{},this._offers=o.offers&&JSON.parse(o.offers)||[],this._invalidShopConf=!1,delete this._shopConfPromise,e||this.packagesUpdated.fire(),o})).catch((()=>{throw this._logger.logError("Update shopconf error"),delete this._shopConfPromise,Error("Update shopconf error")}))),this._shopConfPromise}invalidateShopConf(){this._invalidShopConf=!0}isInvalidShopConf(){return!!this._invalidShopConf}ensureValidShopConf(){return new Promise((e=>this.runOrUpdate(e)))}onLoginStateChange(e){e||this.updateShopConf()}runOrUpdate(e,t){this.isInvalidShopConf()?this.updateShopConf(t).then(e):e()}getIDCExchanges(e){const t=this._products;if(d)if(e){if(d.idc_delay_exchanges_list)return d.idc_delay_exchanges_list}else if(d.idc_exchanges_list)return d.idc_exchanges_list;return Object.keys(t).filter((o=>{const i=t[o];return!!(0,r.isExchange)(i)&&(e?i.idc_service_codes_delay:i.idc_service_codes)})).map((e=>t[e].exchange))}getProduct(e){if(e in this._products)return this._products[e];if(this.isDiscountProductId(e)){const t=this._discounts[e],o={discount_text_id:e,...this._products[t.product]};return void 0!==t.fixed_cost&&(o.fixed_cost=t.fixed_cost),void 0!==t.extra_days&&(o.extra_days=t.extra_days),void 0!==t.billing_cycle&&(o.billing_cycle=t.billing_cycle),void 0!==t.next_billing_cycle&&(o.next_billing_cycle=t.next_billing_cycle),o}return{}}async findProduct(e){if(this.isInvalidShopConf())try{await this.updateShopConf()}catch(e){}return this.getProduct(e)}getDiscountProduct(e){var t;return null!==(t=this._discounts[e])&&void 0!==t?t:{}}isOffer(e,t){return Object.keys(this._discounts).filter((e=>!this._discounts[e].expired&&this._discounts[e].offer_type===t)).includes(e)}getUserExchanges(){var e;const t=null===(e=window.pro)||void 0===e?void 0:e.offers() ;return t?t.map((e=>this.getProduct(e))).filter((e=>(0,r.isExchange)(e))):[]}getUserExchangeByPerm(e){return this.getUserExchanges().find((t=>t.exchange===e))}getExchange(e){const t=this.getProductsByType(r.ProductType.Exchange);let o;for(let i=0;ithis._products[t].type===e)).map((e=>this.getProduct(e)))}getProPlanProducts(){return this.getProductsByType(r.ProductType.ProPlan).filter((e=>!e.is_expert))}getExpertPlanProducts(){return this.getProductsByType(r.ProductType.ProPlan).filter((e=>e.is_expert))}getPaidExchangesForProfessional(){return this.getProductsByType(r.ProductType.Exchange).filter((e=>e.paid_for_expert))}getProPlanProductsList(){return this.getProPlanProducts().map((e=>e.text_id))}getExpertPlanProductsList(){return this.getExpertPlanProducts().map((e=>e.text_id))}isExpertProduct(e){return this.getExpertPlanProductsList().includes(e)}isPro(){return(0,r.isPro)(window.user)}getSuperProduct(e){}getStudiesOrder(){return[]}userHasRealtimeForExchange(e){const t=(null!=e?e:"").toLowerCase().replace("exchange-",""),o=this.getExchange(t);if(!(0,r.isProductDefined)(o))return!1;if(this._offers.includes("exchange-"+o.exchange))return!0;if(o.included_exchanges)for(let e=0;e{"use strict";o.r(t),o.d(t,{CUSTOM_SUFFIX:()=>l,EA_SUFFIX:()=>a,TRIAL_SUFFIX:()=>r,billingCycleToMonth:()=>y,billingCycleToTimeUnit:()=>c,billingPeriodText:()=>h, countDiscountByBillingCycle:()=>E,countPriceIncludeExtraDays:()=>C,floor0:()=>P,getDiscountFromEarlyAccess:()=>g,getPlanName:()=>O,getProductForTrial:()=>m,getReadableCycle:()=>d,getReadableNumericCycle:()=>u,getRelativeAmountOfDaysFromBillingCycle:()=>v,humanizeCardPlan:()=>S,humanizeProPlan:()=>w,isEarlyAccess:()=>_,isOldUser:()=>D,isTrialProduct:()=>p,round0:()=>T,round1or0:()=>A,round2:()=>b,round2or0:()=>N,roundMinimal:()=>L,toEarlyAccess:()=>f});o(586463);var i=o(444372),n=o(822122),s=o(746133);const r="_trial",a="_discount",l="_custom";function c(e){return{y:i.t(null,{plural:"years",count:1},o(870659)),m:i.t(null,{plural:"months",count:1},o(99062)),"3m":i.t(null,void 0,o(252656)),"2y":i.t(null,void 0,o(943350))}[e]}function d(e){return{m:i.t(null,void 0,o(438144)),y:i.t(null,void 0,o(739048)),"3m":i.t(null,void 0,o(490227)),"2y":i.t(null,void 0,o(565851))}[e]||""}function u(e){return{[s.BillingCycle.Monthly]:i.t(null,void 0,o(438144)),[s.BillingCycle.OneYear]:i.t(null,void 0,o(187534)),[s.BillingCycle.ThreeMonths]:i.t(null,void 0,o(490227)),[s.BillingCycle.TwoYears]:i.t(null,void 0,o(122354))}[e]||""}function h(e){var t;return null!==(t={y:i.t(null,void 0,o(304183)),m:i.t(null,void 0,o(432950)),"2y":i.t(null,void 0,o(89571))}[e])&&void 0!==t?t:""}function _(e){return/\d{0,2}_discount$/.test(e)}function p(e){return new RegExp(r+"$").test(e)}function m(e){return e.split(r)[0]}function g(e){const t=e.match(new RegExp("^(d{0,2})"+a+"$"));return t?+t[1]||50:0}function f(e,t){return`${e}_${t}${a}`}function w(e,t){let s=e;switch(e){case n.ProPlans.Free:s="Basic";break;case n.ProPlans.Pro:s="Essential";break;case n.ProPlans.ProRealtime:s="Plus";break;case n.ProPlans.ProPremium:s="Premium";break;case n.ExpertPlans.ProExpert:s="Expert";break;case n.ExpertPlans.ProRealtimeExpert:s="Elite";break;case n.ExpertPlans.PremiumExpert:s="Ultimate"}return t&&(s+=" "+i.t(null,void 0,o(679372))),s}function S(e){let t=e;switch(e){case n.ProPlans.Pro:t="Essential";break;case n.ProPlans.ProRealtime:t="Plus";break;case n.ProPlans.ProPremium:t="Premium";break;case n.ExpertPlans.ProExpert:t="Expert";break;case n.ExpertPlans.ProRealtimeExpert:t="Elite";break;case n.ExpertPlans.PremiumExpert:t="Ultimate";break;case n.ProPlans.Free:t="Basic"}return t}function v(e,t){const o=t||new Date,i=y(e),n=o.getMonth()+i,s=new Date(new Date(o).setMonth(n));return s.getMonth()>n%12&&s.setDate(0),function(e,t){const o=t.getTime()-e.getTime();return Math.round(o/1e3/60/60/24)}(o,s)}function E(e,t,o){return Math.round((t-e)*y(o))}function C(e,t,o=0){return e/(30*y(t)+o)*(30*y(s.BillingCycle.Monthly))}function y(e){switch(e){case s.BillingCycle.TwoYears:return 24;case s.BillingCycle.OneYear:return 12;case s.BillingCycle.ThreeMonths:return 3;default:return 1}}function b(e){return(Math.round(100*e)/100).toFixed(2)}function T(e){const t=Math.round(100*e)/100;return Math.round(t).toFixed(0)}function P(e){return Math.floor(e).toString()}function N(e){const t=Math.round(100*e)/100,o=Math.round(t);return Math.abs(t-o)>0?t.toFixed(2):o.toFixed(0)}function A(e){ return Number.isInteger(e)?e.toFixed(0):(Math.round(10*e)/10).toFixed(1)}function L(e){const t=Math.round(100*e)/100,o=Math.round(10*e)/10,i=Math.round(t);return Math.abs(t-i)>0?Math.abs(t-o)>0?t.toFixed(2):o.toFixed(1):i.toFixed(0)}function O(e){const t=i.t(null,void 0,o(133011));if(p(e)){const o=w(m(e));return t.format({proPlanName:o})}return w(e)}function D(){return!!window.user.date_joined&&new Date(window.user.date_joined).getTime(){"use strict";o.r(t),o.d(t,{QuoteTicker:()=>E});var i=o(329806),n=o(201089),s=o(389137),r=o(541346),a=o(497981),l=o(624444),c=o(943994),d=o(600303),u=o(719240),h=o(665570),_=o(955255),p=o(876332),m=o(152592),g=o(40763);const f=(0,n.getLogger)("QuoteTicker"),w={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,permissionDeniedHook:void 0,noSuchSymbolHook:void 0},S=String.fromCharCode(8198),v=/[K,M,B]/;function E(e,t,o={}){this.enabled=!0,this._symbol=e,this._symbolOriginal=null,this._options=(0,i.deepExtend)({},w,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 r.PercentageFormatter,this._defaultPriceFormatter=new l.PriceFormatter(100),this._priceFormatter=this._customPriceFormatter||this._defaultPriceFormatter,this._volumeFormatter=new c.VolumeFormatter(2),this._cache={},this._lastPrice=null,this._lastPriceFormatted="",this._elements={},this._textNodes={},this._changeVolumeLetter=this._getChangeVolumeLetterCallback(),this._setElements(t),this._highlighters={},this._initHighlighters(),this._options.setStateHook&&this.setStateHook(this._options.setStateHook),this.quoteSession=this._options.quoteSession||(0,p.getQuoteSessionInstance)("simple"),this._quoteSessionEventHandler=this.onData.bind(this),this._connectTimeoutId=setTimeout(this.connect.bind(this),0)}function C(e){const t=e.search(v),o=t>=0?`${S}${e.slice(t)}`:"";return[t>0?e.substring(t,0):0===t?"":e,o]}function y(e,t,o,i,n){var s,r=null;function a(){if(s&&(clearTimeout(s),s=void 0),o||t)for(var r=0;re.classList.add("i-hidden"))),this._textNodes.change=this._getOrCreateTextNodes(this._elements.change),this._textNodes.changePercent=this._getOrCreateTextNodes(this._elements.changePercent),this._textNodes.extHrsChange=this._getOrCreateTextNodes(this._elements.extHrsChange),this._textNodes.extHrsChangePercent=this._getOrCreateTextNodes(this._elements.extHrsChangePercent),this._textNodes.extHrsClose=this._getOrCreateTextNodes(this._elements.extHrsClose),this._textNodes.last=this._getOrCreateTextNodes(this._elements.last),this._textNodes.open=this._findTextNodes(e,"js-symbol-open"),this._textNodes.eps=this._findTextNodes(e,"js-symbol-eps"),this._textNodes.marketCap=this._findTextNodes(e,"js-symbol-market-cap"),this._textNodes.prevClose=this._findTextNodes(e,"js-symbol-prev-close"),this._textNodes.dividends=this._findTextNodes(e,"js-symbol-dividends"),this._textNodes.priceEarnings=this._findTextNodes(e,"js-symbol-pe"),this._textNodes.volume=this._findTextNodes(e,"js-symbol-volume"),this._textNodes.high=this._findTextNodes(e,"js-symbol-high"),this._textNodes.low=this._findTextNodes(e,"js-symbol-low"),this._textNodes.currency=this._findTextNodes(e,"js-symbol-currency"),this._textNodes.lastPriceTime=this._findTextNodes(e,"js-symbol-lp-time"),this._textNodes.rtcTime=this._findTextNodes(e,"js-symbol-rtc-time"), this._elements.lastHighlight=this._options.lastPriceHighlightDiffOnly?this._elements.last.map((e=>this._appendAndGetNewElement(e,"span"))):this._elements.last,this._textNodes.lastHighlight=this._getOrCreateTextNodes(this._elements.lastHighlight),this._elements.lastSup=this._options.lastPriceLastCharSup?this._elements.lastHighlight.map((e=>this._appendAndGetNewElement(e,"sup"))):[],this._textNodes.lastSup=this._getOrCreateTextNodes(this._elements.lastSup)},E.prototype._findElements=function(e,t){var o=(0,s.isArray)(t)?t:[t];return Array.prototype.concat.apply([],o.map((t=>Array.prototype.slice.call(e.getElementsByClassName(t)))))},E.prototype._findTextNodes=function(e,t){return this._getOrCreateTextNodes(this._findElements(e,t))},E.prototype._getOrCreateTextNodes=function(e){return e.map((e=>{var t=this._getFirstTextNode(e);return t||(t=e.ownerDocument.createTextNode(""),e.appendChild(t)),t}))},E.prototype._appendAndGetNewElement=function(e,t){const o=document.createElement(t);return e.appendChild(o),o},E.prototype._getFirstTextNode=function(e){for(var t=e.childNodes,o=t.length-1;o>=0;o--)if(3===t.item(o).nodeType)return t.item(o);return null},E.prototype.connect=function(e){this._subscribed||(this._subscribedSymbol=e||this._symbol,this.quoteSession.subscribe(this._options.clientName,this._subscribedSymbol,this._quoteSessionEventHandler),this._subscribed=!0)},E.prototype.disconnect=function(){clearTimeout(this._connectTimeoutId),this._subscribed&&(this.quoteSession.unsubscribe(this._options.clientName,this._subscribedSymbol,this._quoteSessionEventHandler),this._subscribed=!1)},E.prototype.onData=function(e,t){this.enabled&&("ok"===e.status?this.successData(e,t):"permission_denied"===e.status?this.onPermissionDenied(e):"error"===e.status&&this.errorData(e))},E.prototype.successData=function(e,t){e.values&&this.setState(e.values,e,t)},E.prototype.onPermissionDenied=function(e){(0,g.isSfQuoteData)(e)||(0,m.isMcxQuoteData)(e)?this._options.permissionDeniedHook?this._options.permissionDeniedHook(e,this._symbolOriginal||this._symbol):this.errorData(e):this.downgradeData(e)},E.prototype.errorData=function(e){this._options.showInvalidSymbolStatus&&(this.setShortName(this._symbol),this._elements.sessionStatus.map((e=>new d.MarketStatusIndicator({classSuffix:this._options.sessionStatusClassSuffix,el:e,data:{values:{current_session:"invalid"}},tooltipType:this._options.indicatorsTooltipType})))),this._options.noSuchSymbolHook?(this._symbolOriginal&&this.setShortName(this._symbolOriginal),this._options.noSuchSymbolHook.call(this,e,this._symbolOriginal||this._symbol)):f.logWarn("No data for: "+this._symbol)},E.prototype.downgradeData=function(e){{const t=e&&e.values&&e.values.alternative,o=this._symbol===t;if(!(t&&-1!==t.indexOf(":"))||o)return void this.errorData(e);this._symbolOriginal=this._symbol,this._symbol=t,this._subscribed=!1,this.connect()}},E.prototype.setState=function(e,t,o){const i=o.values;this._isVolumeFormat="volume"===e.format, null==i.pricescale&&null==i.minmov&&null==i.fractional&&null==i.minmove2||(this._priceFormatter=this._customPriceFormatter||this._isVolumeFormat&&this._volumeFormatter||new l.PriceFormatter(e.pricescale||100,e.minmov||1,e.fractional,e.minmove2));const n=this._options,s=this._percentFormatter,r=this._priceFormatter,a=this._defaultPriceFormatter,p=this._volumeFormatter,m=(e,t=!0)=>t?`(${e})`:e,g=void 0!==n.signPositiveChange?n.signPositiveChange:n.signPositive,w=e=>{const t=r.format(e,g,void 0,n.signNegative);return m(t,n.changeInBrackets)},S=e=>{const t=s.format(e,g,void 0,n.signNegative);return m(t,n.changePercentInBrackets)},v=r.format.bind(r),E=a.format.bind(a),C=p.format.bind(p),y=e=>null==e?c.PLACE_HOLDER:E(e);n.disableChange||(this._setNodesValue(this._textNodes.change,i.change,w),this._setNodesValue(this._textNodes.changePercent,i.change_percent,S),null!=i.change&&(n.dontDyePrice||this._setChangeFontColor([].concat(this._elements.change,this._elements.changePercent),i.change,n.changeUpFontColor,n.changeDownFontColor,n.changeNeutralFontColor),this._setChangeDirection(this._elements.changeDirection,i.change)),this._setNodesValue(this._textNodes.extHrsChange,i.rch,w),this._setNodesValue(this._textNodes.extHrsChangePercent,i.rchp,S),null!=i.rch&&(n.dontDyePrice||this._setChangeFontColor([].concat(this._elements.extHrsChange,this._elements.extHrsChangePercent),i.rch,n.changeUpFontColor,n.changeDownFontColor,n.changeNeutralFontColor),this._setChangeDirection(this._elements.extHrsChangeDirection,i.rch))),this._setNodesValue(this._textNodes.prevClose,i.prev_close_price,v),this._setNodesValue(this._textNodes.dividends,e.dividends_yield,(e=>null==e?c.PLACE_HOLDER:s.format(e,n.signPositive,void 0,n.signNegative)),!0);let b=(0,h.getTranslatedSymbolDescription)(i);if(b&&(b=this._prepareSymbolDescription(b),this._setTextsContent(this._elements.description,b),this._options.addDescriptionTitle))for(var T=0;Te)),i.sector&&this._setTextsContent(this._elements.sector,e.sector),this._elements.sessionStatus&&i.current_session&&(this._sessionStatusInstances?this._sessionStatusInstances.forEach((e=>e.setStatus(i.current_session))):this._sessionStatusInstances=this._elements.sessionStatus.map((t=>new d.MarketStatusIndicator({classSuffix:this._options.sessionStatusClassSuffix,el:t,short:!0,data:{values:i},quoteSession:this.quoteSession,symbol:e.original_name,manualUpdate:!0,tooltipType:this._options.indicatorsTooltipType,sessionStatusIcon:this._options.sessionStatusIcon})))), this._setNodesValue(this._textNodes.open,i.open_price,v),this._setNodesValue(this._textNodes.high,i.high_price,v),this._setNodesValue(this._textNodes.low,i.low_price,v),this._setNodesValue(this._textNodes.eps,e.earnings_per_share_basic_ttm,y,!0),this._setNodesValue(this._textNodes.priceEarnings,e.price_earnings_ttm,y,!0),this._setNodesValue(this._textNodes.marketCap,e.market_cap_basic,C,!0),this._setNodesValue(this._textNodes.volume,e.volume,C,!0);const N=(0,_.prepareCurrencyValue)(i);if(N&&this._setNodesValue(this._textNodes.currency,N,null,!0),(i.lp_time||e.lp_time)&&this._textNodes.lastPriceTime.length&&(this._timeFormatter&&this._timeFormatter.lastPrice?this._setNodesValue(this._textNodes.lastPriceTime,m(this._timeFormatter.lastPrice(e.lp_time,e.current_session),this._options.lastPriceTimeInBrackets)):f.logError("last price time field requested with no formatter provided")),(i.rtc_time||e.rtc_time)&&this._textNodes.rtcTime.length&&(this._timeFormatter&&this._timeFormatter.rtc?this._setNodesValue(this._textNodes.rtcTime,m(this._timeFormatter.rtc(e.rtc_time,e.current_session),this._options.rtcTimeInBrackets)):f.logError("rtc time field requested with no formatter provided")),null!=i.last_price)for(T=0;Tt.update({values:e}))):this._updateModeInstances=this._elements.updateMode.map((t=>new u.DataModeIndicator({classSuffix:this._options.dataModeClassSuffix,el:t,data:{values:e},modeInterval:e.update_mode_seconds,short:!0,tooltipType:this._options.indicatorsTooltipType})))),this._setStateHook&&this._setStateHook(t.values,o.values,t.complete),this._lastPrice?this._highlighters.last.show(e.last_price):null===this._lastPrice&&(this._container.classList.add("quote-ticker-inited"),"function"==typeof this._options.initedHook&&this._options.initedHook("last_price"in e)),this._lastPrice=e.last_price},E.prototype._setNodesValue=function(e,t,o,i){if(null!=t||i)for(var n="function"==typeof o?o(t):t,s=0;s{ 3!==t.childNodes.length?t.appendChild(document.createTextNode(e)):t.childNodes[2].nodeValue=e})))}},E.prototype._getLastValueStringDiff=function(e,t){if(e===t){const[e,o]=C(t);return[e,"",o]}let o=0;for(;e[o]===t[o];)o++;const[i,n]=C(t.slice(o));return[t.slice(0,o),i,n]},E.prototype._setChangeFontColor=function(e,t,o,i,n){for(var s=a.PriceColorer.formatSign(t,{up:o,down:i,neutral:n}),r=0;r0),i.toggle(this._options.changeDirectionDownClass,t<0),i.toggle(this._options.changeDirectionNeutralClass,0===t)}},E.prototype.setShortName=function(e=""){this._setTextsContent(this._elements.shortName,e)},E.prototype._prepareSymbolDescription=function(e){var t=this._getCache("symbol-description:"+e);return t||(t=e,this._setCache("symbol-description:"+e,t),t)},E.prototype._initHighlighters=function(){this._highlighters.last=new y(this._elements.lastHighlight,this._options.growingBg,this._options.fallingBg,this._options.lastGrowingClass,this._options.lastFallingClass),this._highlighters.extHrsClose=new y(this._elements.extHrsClose,this._options.growingBg,this._options.fallingBg,this._options.lastGrowingClass,this._options.lastFallingClass)},E.prototype.disable=function(){this.enabled=!1,this.disconnect()},E.prototype.enable=function(){this.enabled=!0,this.connect()},E.prototype.setStateHook=function(e){null===e&&this._setStateHook?delete this._setStateHook:"function"==typeof e&&(this._setStateHook=e)},E.prototype._setCache=function(e,t){null==t?delete this._cache[e]:this._cache[e]=t},E.prototype._getCache=function(e){return this._cache&&this._cache[e]}},529366:(e,t,o)=>{"use strict";var i=o(960337).createGoProDialog,n=o(781666).showSignModal;window.TVDialogs={showSignInDialog:function(e){return n(e)},showGoProDialog:function(e){i(e)}}},755785:(e,t,o)=>{"use strict";function i(e,t){const o=new Map;return function(...i){const n=""+(t?t.apply(null,i):i[0]);if(!o.has(n)){const t=e.apply(this,i);return o.set(n,t),t}return o.get(n)}}o.d(t,{memoize:()=>i})},955255:(e,t,o)=>{"use strict";function i(e){let t=[];const o=e.currency_code||e.value_unit_id;switch(e.measure){case"price":t=[o,e.unit_id];break;case"unit":t=["PCT"===o?"%":o,e.unit_id];break;default:t=["PCT"===o?"%":o]}return t.filter(Boolean).join(" / ")}o.d(t,{prepareCurrencyValue:()=>i})},101090:(e,t,o)=>{"use strict";o.d(t,{visitPaymentPage:()=>u});var i=o(444372),n=o(971843),s=o(746133),r=o(683253),a=o(419398),l=o(261642),c=o(501437),d=o(21509);function u(e="y",t={},u){var h;const _=null!==(h=t.productName)&&void 0!==h?h:"pro",p="bitcoin"===(t.paymentMethod||"paypal")?"Bitcoin payment":"Paypal payment",m=null!=u?u:(0,l.initOrderDialogLoader)();window.runOrSignIn((async()=>{var i;if(await(0,r.check)())return void(0,a.showRestrictedCountryNotificationDialog)();if("function"==typeof t.canVisit&&!t.canVisit())return void(t.reloadIfCantVisit?location.reload():location.href="/") ;const{coupon:l,coupon_billing_cycle:u}=(0,c.getUrlParams)(),{updateConversionData:h}=await o.e(19434).then(o.bind(o,388326)),_=await h("gopro-payment-dialog"),p=()=>(0,n.showPaymentOrderDialog)({productId:t.productName,billingCycle:t.exchangesOnly?s.BillingCycle.Monthly:e,fixedCycle:t.fixedCycle,exchanges:t.selectedPackages,coupon:Boolean(u)?l:void 0,planStatus:t.planStatus,initialSelectedPackageName:t.initialSelectedPackageName,initialState:{user:_.user,state:_.state}});null===(i=window.pro)||void 0===i||i.runOrUpdate((()=>{var e;const o=Boolean(t.productName&&(null===(e=window.pro)||void 0===e?void 0:e.isExpertProduct(t.productName)));return t.isPromoOrder?p().then((async()=>(await m)())):(0,d.showWithUserDeclarationDialog)({callback:p,isExpertProduct:o}).then((async()=>{(await m)()}))}))}),{source:p,paidAccountCheck:window.pro&&window.pro.getProduct(_).type===window.pro.PRODUCT_TYPES.pro_plan,paidAccountSuccessButtonText:i.t(null,void 0,o(976111)),onUnmountEvent:async()=>{u?u():(await m)()}})}},746518:e=>{"use strict" ;e.exports=JSON.parse('{"content":{"chartProperties":{"scalesProperties":{"textColor":"#B2B5BE","lineColor":"rgba(240, 243, 250, 0)","backgroundColor":"#ffffff"},"paneProperties":{"vertGridProperties":{"color":"rgba(240, 243, 250, 0.06)"},"horzGridProperties":{"color":"rgba(240, 243, 250, 0.06)"},"crossHairProperties":{"color":"#9598A1"},"background":"#131722","backgroundGradientStartColor":"#181C27","backgroundGradientEndColor":"#131722","backgroundType":"gradient","separatorColor":"#2A2E39"}},"sessions":{"graphics":{"backgrounds":{"outOfSession":{"color":"#2962FF","transparency":92},"preMarket":{"color":"#FF9800","transparency":92},"postMarket":{"color":"#2962FF","transparency":92}},"vertlines":{"sessBreaks":{"color":"#4985e7","style":2,"width":1}}}},"mainSourceProperties":{"baseLineColor":"#5d606b","candleStyle":{"borderColor":"#378658","upColor":"#089981","wickColor":"#B5B5B8","wickUpColor":"#089981","wickDownColor":"#F23645","downColor":"#F23645","borderUpColor":"#089981","borderDownColor":"#F23645"},"haStyle":{"borderColor":"#378658","upColor":"#089981","wickColor":"#B5B5B8","wickUpColor":"#089981","wickDownColor":"#F23645","downColor":"#F23645","borderUpColor":"#089981","borderDownColor":"#F23645"},"barStyle":{"downColor":"#F23645","upColor":"#089981"},"pnfStyle":{"downColor":"#F23645","upColor":"#089981","upColorProjection":"#336854","downColorProjection":"#7f323f"},"baselineStyle":{"baselineColor":"#758696","topFillColor1":"rgba(8, 153, 129, 0.28)","topFillColor2":"rgba(8, 153, 129, 0.05)","bottomFillColor1":"rgba(242, 54, 69, 0.05)","bottomFillColor2":"rgba(242, 54, 69, 0.28)","topLineColor":"#089981","bottomLineColor":"#F23645"},"areaStyle":{"transparency":100,"color1":"rgba(41, 98, 255, 0.28)","color2":"#2962FF","linecolor":"#2962FF","linewidth":2,"linestyle":0},"hiloStyle":{"color":"#2962FF","borderColor":"#2962FF","labelColor":"#2962FF"},"columnStyle":{"upColor":"rgba(8, 153, 129, 0.5)","downColor":"rgba(242, 54, 69, 0.5)","priceSource":"close"},"renkoStyle":{"upColor":"#089981","downColor":"#F23645","borderUpColor":"#089981","borderDownColor":"#F23645","upColorProjection":"#336854","downColorProjection":"#7f323f","borderUpColorProjection":"#336854","borderDownColorProjection":"#7f323f","wickUpColor":"#089981","wickDownColor":"#F23645"},"lineStyle":{"color":"#2962FF","linewidth":2,"linestyle":0},"lineWithMarkersStyle":{"color":"#2962FF","linewidth":2,"linestyle":0},"steplineStyle":{"color":"#2962FF","linewidth":2,"linestyle":0},"kagiStyle":{"downColor":"#F23645","upColor":"#089981","upColorProjection":"#336854","downColorProjection":"#7f323f"},"pbStyle":{"upColor":"#089981","downColor":"#F23645","borderUpColor":"#089981","borderDownColor":"#F23645","upColorProjection":"#336854","downColorProjection":"#7f323f","borderUpColorProjection":"#336854","borderDownColorProjection":"#7f323f"},"rangeStyle":{"upColor":"#089981","downColor":"#F23645","upColorProjection":"#336854","downColorProjection":"#7f323f"},"tpoStyle":{"color":"#2962ff","tpo":{"colors":{"gradientColors":["#e91e63","#00c853","#00bcd4","#651FFF"]}},"volumeProfile":{"valuesColor":"#089981","vah":{"color":"#3179F5"},"val":{"color":"#3179F5"},"poc":{"color":"#F23645"},"volumeColor":"rgba(41, 98, 255, 0.3)","valueAreaColor":"rgba(41, 98, 255, 0.7)"}}}}}') },979706:e=>{"use strict" ;e.exports=JSON.parse('{"content":{"chartProperties":{"scalesProperties":{"textColor":"#131722","lineColor":"rgba(42, 46, 57, 0)","backgroundColor":"#ffffff"},"paneProperties":{"vertGridProperties":{"color":"rgba(42, 46, 57, 0.06)"},"horzGridProperties":{"color":"rgba(42, 46, 57, 0.06)"},"crossHairProperties":{"color":"#9598A1"},"background":"#ffffff","backgroundGradientStartColor":"#ffffff","backgroundGradientEndColor":"#ffffff","separatorColor":"#E0E3EB"}},"sessions":{"graphics":{"backgrounds":{"outOfSession":{"color":"#2962FF","transparency":92},"preMarket":{"color":"#FF9800","transparency":92},"postMarket":{"color":"#2962FF","transparency":92}},"vertlines":{"sessBreaks":{"color":"#4985e7","style":2,"width":1}}}},"mainSourceProperties":{"baseLineColor":"#B2B5BE","candleStyle":{"borderColor":"#378658","upColor":"#089981","wickColor":"#737375","wickUpColor":"#089981","wickDownColor":"#F23645","downColor":"#F23645","borderUpColor":"#089981","borderDownColor":"#F23645"},"haStyle":{"borderColor":"#378658","upColor":"#089981","wickColor":"#737375","wickUpColor":"#089981","wickDownColor":"#F23645","downColor":"#F23645","borderUpColor":"#089981","borderDownColor":"#F23645"},"barStyle":{"downColor":"#F23645","upColor":"#089981"},"pnfStyle":{"downColor":"#F23645","upColor":"#089981","upColorProjection":"#a9dcc3","downColorProjection":"#f5a6ae"},"baselineStyle":{"baselineColor":"#758696","topFillColor1":"rgba(8, 153, 129, 0.28)","topFillColor2":"rgba(8, 153, 129, 0.05)","bottomFillColor1":"rgba(242, 54, 69, 0.05)","bottomFillColor2":"rgba(242, 54, 69, 0.28)","topLineColor":"#089981","bottomLineColor":"#F23645"},"areaStyle":{"transparency":100,"color1":"rgba(41, 98, 255, 0.28)","color2":"#2962FF","linecolor":"#2962FF","linewidth":2,"linestyle":0},"hiloStyle":{"color":"#2962FF","borderColor":"#2962FF","labelColor":"#2962FF"},"columnStyle":{"upColor":"rgba(8, 153, 129, 0.5)","downColor":"rgba(242, 54, 69, 0.5)","priceSource":"close"},"renkoStyle":{"upColor":"#089981","downColor":"#F23645","borderUpColor":"#089981","borderDownColor":"#F23645","upColorProjection":"#a9dcc3","downColorProjection":"#f5a6ae","borderUpColorProjection":"#a9dcc3","borderDownColorProjection":"#f5a6ae","wickUpColor":"#089981","wickDownColor":"#F23645"},"lineStyle":{"color":"#2962FF","linewidth":2,"linestyle":0},"lineWithMarkersStyle":{"color":"#2962FF","linewidth":2,"linestyle":0},"steplineStyle":{"color":"#2962FF","linewidth":2,"linestyle":0},"kagiStyle":{"downColor":"#F23645","upColor":"#089981","upColorProjection":"#a9dcc3","downColorProjection":"#f5a6ae"},"pbStyle":{"upColor":"#089981","downColor":"#F23645","borderUpColor":"#089981","borderDownColor":"#F23645","upColorProjection":"#a9dcc3","downColorProjection":"#f5a6ae","borderUpColorProjection":"#a9dcc3","borderDownColorProjection":"#f5a6ae"},"rangeStyle":{"upColor":"#089981","downColor":"#F23645","upColorProjection":"#a9dcc3","downColorProjection":"#f5a6ae"},"tpoStyle":{"color":"#2962ff","tpo":{"colors":{"gradientColors":["#e91e63","#00c853","#00bcd4","#651FFF"]}},"volumeProfile":{"valuesColor":"#089981","vah":{"color":"#3179F5"},"val":{"color":"#3179F5"},"poc":{"color":"#F23645"},"volumeColor":"rgba(41, 98, 255, 0.3)","valueAreaColor":"rgba(41, 98, 255, 0.7)"}}}}}') }}]);