(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[1653,9725,4002],{43262:()=>{},57229:(t,e,i)=>{"use strict";i.r(e),i.d(e,{bannerPrivacyPreferenceKey:()=>p,checkCookiePolicy:()=>w,cookieBannerDelegate:()=>u,initCookiesNotification:()=>_,oldBannerKey:()=>g,onAccept:()=>f,removeOldCookieBannerKey:()=>v,showCookiesNotification:()=>y});var s=i(11417),o=i(84015),n=(i(51872),i(81836)),a=i(46433),r=i(85198);const l=(0,i(98125).getLogger)("User.GeoInfo");let d;var c=i(98999),h=i(11542);const g="cookieBanner",p="cookiePrivacyPreferenceBanner",u=(0,n.createDeferredPromise)();function v(){return s.TVLocalStorage.removeItem(g)}function w(t){return"accepted"===s.TVLocalStorage.getItem(t)||"notApplicable"===s.TVLocalStorage.getItem(t)}function f(){s.TVLocalStorage.setItem(p,"accepted")}let m=!1;async function y(){if(m)return;m=!0;const t=await Promise.all([i.e(5514),i.e(8463),i.e(8844),i.e(4408),i.e(1253),i.e(6464),i.e(5064),i.e(724),i.e(9255),i.e(9957),i.e(8869)]).then(i.bind(i,44598));await t.showCookiesNotification()&&(f(),(0,h.trackCookies)("click","accept_all")),m=!1}async function _(){var t;const e=document.querySelector(".js-main-page-promo-container");if(!w(p)&&!(0,o.isOnMobileAppPage)("any")){e||u.resolve();if((null===(t=(0,a.getFreshInitData)().currentLocaleInfo)||void 0===t?void 0:t.is_in_european_union)||"ignored"===s.TVLocalStorage.getItem(p))return u.promise.then(()=>y());{const t=await(void 0!==d||(d=(0,r.fetch)("/check_language/",{method:"POST"}).then(t=>{if(t.ok)return t.json();throw new Error(t.statusText)}).catch(t=>(l.logWarn(t.message),{}))),d);if(t.is_in_european_union||(i=t.country_code,["is","li","no","uk"].includes(i)))return s.TVLocalStorage.setItem(p,"ignored"),u.promise.then(()=>y());s.TVLocalStorage.setItem(p,"notApplicable"),(0,c.setCookieSetting)(c.CookieSettings.Analytics,!0),(0,c.setCookieSetting)(c.CookieSettings.Advertising,!0)}}var i}},89725:(t,e,i)=>{"use strict";i.r(e),i.d(e,{createDialog:()=>n});var s=i(976),o=i(77544);function n(t){const e=t.type||"popup";return delete t.type,"modal"===e?new s.TVModal(t):new o.TVPopup(t)}},976:(t,e,i)=>{"use strict";i.d(e,{TVModal:()=>v});var s=i(28353),o=i(68587),n=i(49483),a=i(43989),r=i(51536),l=i(4185),d=i(85739),c=i(25760),h=i(23127),g=i(25977);let p=[];const u={ajax:{},closingDuration:o.dur/2,fixBodyState:!0,overlayTemplate:'
',containerTemplate:'
',ajaxErrorTemplate:`
${(0,s.t)("Error")}
`};class v extends r.TVDialogAbstract{constructor(t={}){if(super({...u,...t}),this.$overlay=h(this.options.overlayTemplate),this.$modalWrap=h(this.options.containerTemplate),this.$body=this.$modalWrap.find(".tv-dialog__modal-body").append(this.$el),this.options.closeOnOutsideClick&&this.$overlay.add(this.$modalWrap).click(t=>{this.isEventOut(t)&&this.close()}),this.on("change:zIndex",()=>{this.$overlay.css("z-index",this.zIndex), this.$modalWrap.css("z-index",this.zIndex)}),this.on("destroy",()=>{const t=()=>{this.$overlay.remove(),this.$modalWrap.remove()};this.opened?(this.close(),setTimeout(t,this.options.closingDuration)):t()}),this.on("beforeOpen",()=>{p.push(this)}),this.options.ajax.url){const t=this.options.ajax.beforeSend||h.noop,e=this.options.ajax.success||!1,i=this.options.ajax.error||h.noop;h.extend(this.options.ajax,{beforeSend:()=>{this.trigger("beforeLoading",[this]),this.startSpinner(),t(this)},success:t=>{this.trigger("afterLoading",[this]),this.renderContent(e?e(this,t):t).showContent(),this.trigger("afterLoadingShow",[this])},error:()=>{this.renderContent(this.options.ajaxErrorTemplate),i(this),this.trigger("errorLoading",[this])}})}this.on("error",(t,e)=>{this.$modalWrap[0].getBoundingClientRect().height!this.opened,modal:!0}),this.options.closeOnEsc&&this._hotkeys.add({desc:"close",hotkey:27,handler:()=>this.close()}));const t=()=>{this.focus(),this.toTop(),this.trigger("beforeOpen",[this]),h(this.$wrap).append(this.$overlay.addClass("i-hidden i-closed").css("z-index",this.zIndex)).append(this.$modalWrap.addClass("i-hidden i-closed").css("z-index",this.zIndex)),this.$overlay.removeClass("i-hidden"),setTimeout(()=>{this.$overlay.removeClass("i-closed")},20),this.options.ajax.url?this.ajaxRequest=h.ajax(this.options.ajax):this.showContent()};return n.isSafari?setTimeout(()=>t(),50):t(),this}close(){if(this.opened)return this.opened=!1,this._keyboardBinderLockId&&d.enable(this._keyboardBinderLockId),this._hotkeys&&(this._hotkeys.destroy(),this._hotkeys=null),this.trigger("beforeClose",[this]),this.ajaxRequest&&(this.ajaxRequest.abort(),delete this.ajaxRequest),this.hideContent(),this.$overlay.addClass("i-closed"),setTimeout(()=>{this.$modalWrap.addClass("i-hidden").detach(),this.$overlay.addClass("i-hidden").detach(),p=g.without(p,this),this.options.fixBodyState&&(0,a.setFixedBodyState)(!1),this.trigger("afterClose",[this]),this.unfocus(),p.length>0&&p[p.length-1].focus(),this.options.destroyOnClose&&this.destroy()},this.options.closingDuration),this}showContent(){return this.$modalWrap.removeClass("i-hidden"),setTimeout(()=>{this.$modalWrap.removeClass("i-closed")},20),setTimeout(()=>{this.trigger("afterOpen",[this]),this.spinner&&this.stopSpinner()},.75*o.dur+20),this}hideContent(){if(this.$el)return this.$modalWrap.addClass("i-closed"),this.unfocus(),this}startSpinner(){return this.spinner=new l.Spinner("large"),this.spinner.spin(this.$overlay[0]),this}stopSpinner(){if(this.spinner)return this.spinner.stop(),delete this.spinner,this}}},77544:(t,e,i)=>{"use strict";i.d(e,{TVPopup:()=>p});var s=i(68587),o=i(52150),n=i(51536),a=i(30812),r=i(35190),l=i(25760),d=i(23127) ;const c=d("body"),h=d(window),g={closeOnClickAtOtherDialogs:!0,draggable:!0,scrollWrap:'
',scrollWrapInner:'
',withScroll:!0};class p extends n.TVDialogAbstract{constructor(t={}){super({...g,...t}),this.$scrollWrap=this.$content.hasClass("js-dialog__scroll-wrap")?this.$content:this.$content.find(".js-dialog__scroll-wrap"),this.$scrollWrap.length?this.$scrollWrapInner=this.$scrollWrap.children().first():(this.$scrollWrap=this.$content.wrap(d(this.options.scrollWrap)).parent(),this.$scrollWrapInner=this.$content.wrap(d(this.options.scrollWrapInner)).parent()),this.$actions&&this.$scrollWrap.addClass("i-with-actions"),this.options.withScroll&&(this.scroll=new a.SidebarCustomScroll(this.$scrollWrap[0],this.$scrollWrapInner[0]),this.scroll.scrolled.subscribe(null,()=>this.trigger("scroll"))),this.$scrollWrap.css("overflow","");const e=this.getDialogId();this.$el.addClass("tv-dialog--popup i-closed i-hidden"),this.options.width&&this.$el.css({width:"calc(100% - 20px)","max-width":this.options.width}),this._hotkeys=l.createGroup({desc:"Dialog",isDisabled:()=>!this.opened,modal:!1}),this.options.closeOnEsc&&this._hotkeys.add({desc:"Close",hotkey:27,handler:()=>this.close()}),this.$el.on("mousedown touchstart",this.toTop.bind(this)),this.options.closeOnOutsideClick&&(this._preventClick=!0,this.on("beforeOpen",()=>{setTimeout(()=>{this.opened&&(d(document).on("mousedown touchstart",()=>{this._preventClick=!1}),d(document).on("click.tv-popup-"+e,t=>{if(this._preventClick)return;const e=d(t.target).closest(".js-dialog");(this.options.closeOnClickAtOtherDialogs||0===e.length)&&this.isEventOut(t)&&this.close()}))},0)}),this.on("beforeClose",()=>d(document).off("click.tv-popup-"+e))),this.on("change:zIndex",()=>{this.$el.css("z-index",this.zIndex)}),this.on("destroy",()=>{const t=()=>{this.$el.remove(),this._hotkeys.destroy()};this.opened?(this.close(),setTimeout(t,s.dur/2)):t()})}open(){return this.opened||(this.opened=!0,this.trigger("beforeOpen",[this]),this.$el.appendTo(this.$wrap).removeClass("i-hidden").css((()=>{this.calcHeight();const t=h.height(),e=h.width(),i=this.$el.height(),s=this.$el.width();let o=this.options.position;return o||(o={top:t/2-i/2,left:e/2-s/2}),o.top>t-i&&(o.top=t-i),o.left>e-s&&(o.left=e-s),o.top<10&&(o.top=10),o.left<10&&(o.left=10),o})()),this.focus(),this.toTop(),this._doOpenAnimation().then(()=>{this.opened&&(this.$el.removeClass("i-closed"),this.options.draggable&&((0,r.lazyJqueryUI)(this.$el).draggable({handle:".js-dialog__drag",cancel:"input, textarea, button, select, option, .js-dialog__no-drag, .js-dialog__close",containment:"window",cursor:"-webkit-grabbing",stop:(t,e)=>{this.trigger("dragEnd",[this])}}),this.$el.find(".js-dialog__drag").addClass("tv-dialog__grab")),this.trigger("afterOpen",[this]))}),h.on("resize.tv-popup-"+this.getDialogId(),()=>{this.calcHeight(),this.fixPos()})),this}close(){if(this.opened)return this.trigger("beforeClose",[this]),this.$el.addClass("i-closed"),this.opened=!1, this._doCloseAnimation().then(()=>{this.opened||((0,r.lazyJqueryUI)(this.$el).draggable("instance").then(t=>{t&&t.destroy()}),this.$el.addClass("i-hidden").detach(),c.css("cursor","auto"),this.trigger("afterClose",[this]),this.options.destroyOnClose&&this.destroy())}),h.off("resize.tv-popup-"+this.getDialogId()),this}hide(){this.$el.addClass("i-hidden")}show(){this.$el.removeClass("i-hidden")}fixPos(){const t=this.$el[0].getBoundingClientRect(),e={};t.bottom>o.mediaState.height-10&&(e.top=o.mediaState.height-10-t.height,e.top<10&&(e.top=10)),t.right>o.mediaState.width-10&&(e.left=o.mediaState.width-10-t.width,e.left<10&&(e.left=10)),(e.top||e.left)&&this.$el.css(e)}calcHeight(){const t=this.$el[0].getBoundingClientRect(),e=this.$scrollWrapInner[0].getBoundingClientRect(),i=this.$scrollWrap[0].getBoundingClientRect();let s=this.options.height&&this.options.heights)&&(s-=t.height-i.height,s<60&&(s=60),this.$scrollWrap.css({height:s})),this.options.withScroll&&this.scroll.resize();const a=s{"use strict";i.r(e),i.d(e,{trialMessageSuccessDialog:()=>c});i(43262);var s=i(28353),o=i(89725),n=i(78540),a=i(1938),r=i(59401),l=i(82531);function d(t,e){const o=(0,l.getTrialLength)(),a=(0,s.t)("Your {days}-day free trial is live! You've got free access to additional features. Don't forget to keep your eyes peeled for special offers during the trial!",{plural:"Your {days}-day free trial is live! You've got free access to additional features. Don't forget to keep your eyes peeled for special offers during the trial!",context:"free_trial",count:o}).format({days:o.toString()}),r=(0,s.t)("Your {days}-day free trial is live! You've got free access to additional features.",{plural:"Your {days}-day free trial is live! You've got free access to additional features.",context:"free_trial",count:o}).format({days:o.toString()}),d=(0,s.t)("Remember, if you don't cancel your trial before it ends, you'll automatically continue on a paid monthly upgraded plan after the trial."),c=(0,s.t)("If you don't cancel your trial before it ends, you will be automatically converted to an annual paid plan after the trial."),h=window.initData.trialNextBillingInfo||{};let g="";return h.auto_renewal&&(g=`

${n.BillingCycle.OneYear===h.next_billing_cycle?c:d}

`),e=e||`\n\t\t

${n.BillingCycle.OneYear===h.next_billing_cycle?r:a}

\n\t\t${g}\n\t`, `\n\t\t
\n\t\t\t
\n\t\t\t\t\n\t\t\t\t

${t||(0,s.t)("Woohoo! Let the fun begin")}

\n\t\t\t
\n\t\t\t
\n\t\t\t\t
${e}
\n\t\t\t
\n\t\t
\n\t`}function c(t={}){(0,a.trackGTagAdsEvent)(a.GTagEvent.TrialSignUp),(0,r.trackTwitterEvent)(r.TwitterEvent.TrialSignUp);const e=(0,o.createDialog)({type:"modal",title:null,width:510,closeButton:!1,addClass:"tv-trial-dialog-success",contentWrapTemplate:'\n\t\t\t
\n\t\t\t\t
\n\t\t\t
\n\t\t',actionsWrapTemplate:'
',content:d(t.title,t.content),actions:[{name:"yes",text:(0,s.t)("Get Started!"),type:"primary"}]});return e.on("action:yes",t=>t.destroy()),e.on("afterOpen",()=>sessionStorage.removeItem("start_trial")),window.TVDialogs&&window.TVDialogs.signModal?window.TVDialogs.signModal.on("afterClose",()=>e.open()):e.open(),e}},1768:(t,e,i)=>{"use strict";i.d(e,{createImage:()=>o,marketingAnalyticsEnabled:()=>n});var s=i(76266);function o(t){const e=document.createElement("img");return e.src=t,e}function n(){return(0,s.isFeatureEnabled)("marketing-analytics")}},1938:(t,e,i)=>{"use strict";i.d(e,{GTagEvent:()=>h,trackGTagAdsEvent:()=>p});var s=i(76422),o=i(98999),n=i(84015),a=i(49483),r=i(46433),l=i(38663),d=i(1768);let c=!1;var h;function g(){c||!(0,d.marketingAnalyticsEnabled)()||(0,n.isOnMobileAppPage)("any")||a.CheckMobile.iOS()||((0,r.updateInitData)(),(0,r.getInitData)().gadwId&&(c=!0,(0,l.appendScript)("https://www.googletagmanager.com/gtag/js?id="+(0,r.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,o.getCookieSetting)(o.CookieSettings.Advertising)?"granted":"denied"}),window.gtag("config",(0,r.getInitData)().gadwId),s.subscribe(o.cookieSettingsChangeEvent,(t,e)=>{t===o.CookieSettings.Advertising&&window.gtag("consent","update",{ad_storage:e?"granted":"denied"})},null)))}function p(t,e={}){if(g(),!c)return;const i=(0,r.getInitData)().gadwId;window.gtag("event","conversion",{send_to:`${i}/${t}`,user_id:window.user.id,...e})}!function(t){t.PageView="kwnRCP6AwqsBEOTvvuED",t.TrialSignUp="6_gCCOyejsACEK3sq6gB",t.RegistrationCompleted="JzYhCIOr578CEK3sq6gB",t.PaidPlanAcquired="ca8iCNrG578CEK3sq6gB"}(h||(h={}))},59401:(t,e,i)=>{"use strict";i.d(e,{TwitterEvent:()=>s,trackTwitterEvent:()=>a});var s,o=i(1768),n=i(98999);!function(t){t.SiteVisit="o2eg2",t.TrialSignUp="o1wjo",t.RegistrationCompleted="o1wjq",t.PaidPlanAcquired="o1wjr"}(s||(s={})) ;function a(t){(0,o.marketingAnalyticsEnabled)()&&(0,n.getCookieSetting)(n.CookieSettings.Analytics)&&(t=>[`https://analytics.twitter.com/i/adsct?txn_id=${t}&p_id=Twitter&tw_sale_amount=0&tw_order_quantity=0`,`https://t.co/i/adsct?txn_id=${t}&p_id=Twitter&tw_sale_amount=0&tw_order_quantity=0"`])(t).map(o.createImage)}},38663:(t,e,i)=>{"use strict";i.d(e,{appendScript:()=>o});var s=i(15298);function o(t){const e=document.createElement("script");e.async=!0,e.src=t;const i=(0,s.getCspNonce)();return i&&e.setAttribute("nonce",i),document.head.appendChild(e),e}},98999:(t,e,i)=>{"use strict";i.d(e,{CookieSettings:()=>s,cookieSettingsChangeEvent:()=>r,setCookieSetting:()=>d,getCookieSetting:()=>c});var s,o=i(76422),n=i(11417),a=i(57229);!function(t){t.Analytics="analytics",t.Advertising="advertising"}(s||(s={}));const r="cookie_settings_changed",l={[s.Analytics]:!1,[s.Advertising]:!1};function d(t,e){l[t]=e,n.TVLocalStorage.setItem("cookiesSettings",JSON.stringify(l)),o.emit(r,t,e)}function c(t){return l[t]}!function(){const t=n.TVLocalStorage.getItem("cookiesSettings");if(t)try{const e=JSON.parse(t);l[s.Analytics]=(null==e?void 0:e[s.Analytics])||!1,l[s.Advertising]=(null==e?void 0:e[s.Advertising])||!1}catch(t){}else(0,a.checkCookiePolicy)(a.oldBannerKey)&&(d(s.Analytics,!0),d(s.Advertising,!0),(0,a.onAccept)(),(0,a.removeOldCookieBannerKey)())}()},15298:(t,e,i)=>{"use strict";function s(){const t=document.querySelector("script[nonce]");if(null!==t)return t.getAttribute("nonce")||t.nonce}i.d(e,{getCspNonce:()=>s})},46433:(t,e,i)=>{"use strict";i.d(e,{updateInitData:()=>a,getInitData:()=>r,getFreshInitData:()=>l});var s=i(88537);const o=(0,i(98125).getLogger)("Common.InitData"),n=window.initData||{};function a(){window.initData&&window.initData!==n&&(Object.assign(n,window.initData),window.initData=n);const t=document.querySelectorAll('script[type="application/prs.init-data+json"]');for(let e=0;e{"use strict";i.d(e,{mediaState:()=>d});var s=i(85459),o=i.n(s),n=i(69677),a=i(74664),r=i(68722);class l extends(o()){constructor(){super(),this.width=0,this.height=0,this.device=null,this.breakpoints=a.breakpoints,this._checkDevice(),window.addEventListener("resize",this._checkDevice),Object.entries(a.breakpoints).sort(([t,e],[i,s])=>e-s).forEach(([t,e],i,s)=>{let o;if(0!==i){const[,t]=s[i-1];o=t+1}else o=0;const n=(0,r.matchMediaMinMax)(o,e);n.matches&&this._setNewDevice(t),n.addListener(e=>{e.matches&&(this._checkDevice(),this._setNewDevice(t))})}),(0,n.whenDocumentReady)(this._checkDevice.bind(this)),this.isPhoneSizeDevice.bind(this)}isPhoneSizeDevice(){return"phone"===this.device||"phone-vertical"===this.device}_checkDevice(){this.width=window.innerWidth,this.height=window.innerHeight}_setNewDevice(t){const e=this.device;this.device=t, this.trigger("changeDevice",[t,e])}}const d=new l},11542:(t,e,i)=>{"use strict";i.d(e,{trackCookies:()=>o});var s=i(91955);async function o(t,e){var i;let o,n;o="/"===window.location.pathname?"index":window.location.pathname.split("/")[1];const a=null!==(i=window.user.pro_plan)&&void 0!==i?i:window.is_authenticated?"free":"visitor";window.is_authenticated&&(n=window.user.id);const r=await(0,s.getTracker)();r&&r.trackToastDialog("cookies",t,e,o,a,n)}},26415:t=>{t.exports=''}}]);