(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[24484],{240834:e=>{e.exports={"tv-circle-logo-pair":"tv-circle-logo-pair-ocURKVwI","tv-circle-logo-pair--xxxsmall":"tv-circle-logo-pair--xxxsmall-ocURKVwI","tv-circle-logo-pair--xxsmall":"tv-circle-logo-pair--xxsmall-ocURKVwI","tv-circle-logo-pair--xsmall":"tv-circle-logo-pair--xsmall-ocURKVwI","tv-circle-logo-pair--small":"tv-circle-logo-pair--small-ocURKVwI","tv-circle-logo-pair--medium":"tv-circle-logo-pair--medium-ocURKVwI","tv-circle-logo-pair--large":"tv-circle-logo-pair--large-ocURKVwI","tv-circle-logo-pair--xlarge":"tv-circle-logo-pair--xlarge-ocURKVwI","tv-circle-logo-pair--xxlarge":"tv-circle-logo-pair--xxlarge-ocURKVwI","tv-circle-logo-pair--xxxlarge":"tv-circle-logo-pair--xxxlarge-ocURKVwI","tv-circle-logo-pair__logo":"tv-circle-logo-pair__logo-ocURKVwI","tv-circle-logo-pair__logo--xxxsmall":"tv-circle-logo-pair__logo--xxxsmall-ocURKVwI","tv-circle-logo-pair__logo--xxsmall":"tv-circle-logo-pair__logo--xxsmall-ocURKVwI","tv-circle-logo-pair__logo--xsmall":"tv-circle-logo-pair__logo--xsmall-ocURKVwI","tv-circle-logo-pair__logo--small":"tv-circle-logo-pair__logo--small-ocURKVwI","tv-circle-logo-pair__logo--medium":"tv-circle-logo-pair__logo--medium-ocURKVwI","tv-circle-logo-pair__logo--large":"tv-circle-logo-pair__logo--large-ocURKVwI","tv-circle-logo-pair__logo--xlarge":"tv-circle-logo-pair__logo--xlarge-ocURKVwI","tv-circle-logo-pair__logo--xxlarge":"tv-circle-logo-pair__logo--xxlarge-ocURKVwI","tv-circle-logo-pair__logo--xxxlarge":"tv-circle-logo-pair__logo--xxxlarge-ocURKVwI","tv-circle-logo-pair__logo-empty":"tv-circle-logo-pair__logo-empty-ocURKVwI"}},134602:e=>{e.exports={"tv-circle-logo":"tv-circle-logo-PsAlMQQF","tv-circle-logo--xxxsmall":"tv-circle-logo--xxxsmall-PsAlMQQF","tv-circle-logo--xxsmall":"tv-circle-logo--xxsmall-PsAlMQQF","tv-circle-logo--xsmall":"tv-circle-logo--xsmall-PsAlMQQF","tv-circle-logo--small":"tv-circle-logo--small-PsAlMQQF","tv-circle-logo--medium":"tv-circle-logo--medium-PsAlMQQF","tv-circle-logo--large":"tv-circle-logo--large-PsAlMQQF","tv-circle-logo--xlarge":"tv-circle-logo--xlarge-PsAlMQQF","tv-circle-logo--xxlarge":"tv-circle-logo--xxlarge-PsAlMQQF","tv-circle-logo--xxxlarge":"tv-circle-logo--xxxlarge-PsAlMQQF","tv-circle-logo--visually-hidden":"tv-circle-logo--visually-hidden-PsAlMQQF"}},467236:(e,t,o)=>{"use strict";o.d(t,{getCircleLogoAnyHtml:()=>i});var l=o(857430),r=o(348091);function i(e){const{logoUrls:t,...o}=e;return 1===t.length?(0,l.getCircleLogoHtml)({logoUrl:t[0],...o}):2===t.length?(0,r.getCircleLogoPairHtml)({primaryLogoUrl:t[0],secondaryLogoUrl:t[1],...o}):(0,l.getCircleLogoHtml)({logoUrl:void 0,...o})}},348091:(e,t,o)=>{"use strict";o.d(t,{getCircleLogoPairHtml:()=>r});var l=o(115078);function r(e){const{primaryLogoUrl:t,secondaryLogoUrl:o,size:r,className:n}=e;return`\n\t\t\t${i({logoUrl:o,size:r})}\n\t\t\t${i({logoUrl:t,size:r})}\n\t\t`}function i(e){const{logoUrl:t,size:o}=e,r=(0,l.getLogoStyleClasses)(o,Boolean(t))
;return void 0===t?``:``}},115078:(e,t,o)=>{"use strict";o.d(t,{getBlockStyleClasses:()=>n,getLogoStyleClasses:()=>s});var l=o(497754),r=o(240834),i=o.n(r);function n(e,t){return l(i()["tv-circle-logo-pair"],i()[`tv-circle-logo-pair--${e}`],t)}function s(e,t=!0){return l(i()["tv-circle-logo-pair__logo"],i()[`tv-circle-logo-pair__logo--${e}`],!t&&i()["tv-circle-logo-pair__logo-empty"])}},857430:(e,t,o)=>{"use strict";o.d(t,{getCircleLogoHtml:()=>r});var l=o(842060);o(134602);function r(e){const t=(0,l.getStyleClasses)(e.size,e.className);return(0,l.isCircleLogoWithUrlProps)(e)?``:`${e.placeholderLetter||""}`}},842060:(e,t,o)=>{"use strict";o.d(t,{getStyleClasses:()=>n,isCircleLogoWithUrlProps:()=>s});var l=o(497754),r=o(134602),i=o.n(r);function n(e,t){return l(i()["tv-circle-logo"],i()[`tv-circle-logo--${e}`],t)}function s(e){return"logoUrl"in e&&null!==e.logoUrl&&void 0!==e.logoUrl&&0!==e.logoUrl.length}},745269:(e,t,o)=>{"use strict";o.d(t,{color:()=>r,dur:()=>l});const l=350;const r={black70:"#4A4A4A",black80:"#535353"}},673747:(e,t,o)=>{"use strict";o.d(t,{hide:()=>v,showOnElement:()=>d});var l=o(778785),r=o(650151),i=o(799786),n=o(112539),s=o(630112),c=o(779527);let a=!1,u=null,g=null;l.mobiletouch||document.addEventListener("mouseover",(function(e){var t;if(null===(t=e.sourceCapabilities)||void 0===t?void 0:t.firesTouchEvents)return;const o=e.target,l=e.currentTarget,r=function(e,t,o){const l=[];for(;e&&e!==t;)e.classList&&e.classList.contains(o)&&l.push(e),e=e.parentElement||f(e.parentNode);return l}(o,l,"apply-common-tooltip"),n=()=>{g&&(g.destroy(),g=null)};for(const t of r){if("buttons"in e){if(1&e.buttons)continue}else if(1===e.which)continue;const o=()=>d(t);if(o()){const e=e=>l(null,!0),l=(r,i=!1)=>{t.removeEventListener("common-tooltip-update",o),t.removeEventListener("mouseleave",l),t.removeEventListener("mousedown",l),document.removeEventListener("scroll",e,{capture:!0}),n(),v(i)};t.addEventListener("common-tooltip-update",o),t.addEventListener("mouseleave",l),t.addEventListener("mousedown",l),document.addEventListener("scroll",e,{capture:!0}),null===g&&(g=(0,i.createGroup)({desc:"Tooltip"}),g.add({desc:"Hide",hotkey:27,handler:l}));break}}}),!0);const m=new MutationObserver((()=>{if(u&&u.options.target){let e;e="isConnected"in u.options.target?u.options.target.isConnected:document.body.contains(u.options.target),e||v()}})),d=(e,t={})=>{const{content:o,...l}=y(t),r=c.getDataFromTarget(e),i=Object.assign(r,l);return"none"!==o.type&&(i.content=o),!("none"===i.content.type&&!i.hotkey)&&(i.target=e,p(i),!0)},p=e=>{const t=y(e),o=c.getTooltip(t);if(u={options:t,element:o},(0,s.setTooltip)(o),(0,n.clearSchedule)(),!a)return c.hideTooltip(o),void(0,n.scheduleRender)((()=>_(o)),function(e){return"number"!=typeof e.tooltipDelay||isNaN(e.tooltipDelay)?500:e.tooltipDelay}(t));const{tooltipDebounce:l}=e;"number"!=typeof l||isNaN(l)?_(o):(0,
n.scheduleRender)((()=>_(o)),l)};function h(){(0,s.empty)(),a=!1,u=null}const v=(e,t)=>{if((0,n.clearSchedule)(),(0,r.ensureNotNull)(m).disconnect(),!u)return;if(!e&&!a)return;const{element:o,options:l}=u,i=()=>{o.removeEventListener("mouseleave",i),c.hideTooltip(o),e?h():(0,n.scheduleRemove)((()=>{h()}),250),null==t||t()};l.tooltipHideDelay?(0,n.scheduleHide)((()=>{o.querySelector(":hover")?o.addEventListener("mouseleave",i):i()}),l.tooltipHideDelay):i()};function _(e){const{options:t}=(0,r.ensureNotNull)(u);if(c.setStyle(e,t),c.showTooltip(e),(0,r.ensureNotNull)(m).observe(document,{childList:!0,subtree:!0}),a=!0,t.forceHideOnMove){const e=()=>{document.removeEventListener("mousemove",e),document.removeEventListener("touchmove",e),v()};document.addEventListener("mousemove",e),document.addEventListener("touchmove",e)}}function f(e){return e&&(e.nodeType===Node.ELEMENT_NODE?e:null)}function y(e){if(function(e){return"content"in e}(e))return e;const{inner:t,html:o,text:l,...r}=e;let i={type:"none"};return t&&(i={type:"element",data:t}),l&&(i={type:o?"html":"text",data:l}),{content:i,...r}}},750532:(e,t,o)=>{"use strict";var l=o(673747);function r(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 c(e,t){let o=!1;const l=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=n(t);if(t.matches(".apply-overflow-tooltip--check-children-recursively")){if(!i(t,e))return}else if(t.matches(".apply-overflow-tooltip--check-children")){if(!c(t,e))return}else if(!r(t,e))return;(0,l.showOnElement)(t,{text:s(t)});const o=()=>{(0,l.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=n(e);if(e.matches(".apply-overflow-tooltip--check-children-recursively")){if(!i(e,o))return}else if(e.matches(".apply-overflow-tooltip--check-children")){if(!c(e,o))return}else if(!r(e,o))return;(0,
l.showOnElement)(t,{text:s(e)});const a=()=>{(0,l.hide)(),t.removeEventListener("blur",a)};t.addEventListener("blur",a)}}),!0)}))},780237:(e,t,o)=>{"use strict";o.d(t,{TickerItemAbstract:()=>u});o(750532);var l=o(201089),r=o(327034),i=o(903972),n=o(707957),s=o(31341),c=o(17966);const a=(0,l.getLogger)("WidgetTicker");class u{constructor(e,t,o){this.onInit=new n.Delegate,this.onComplete=new n.Delegate,this.onError=new n.Delegate,this._quoteTickerComplete=null,this._isRunning=!1,this._prevQuoteSymbol=null,this._el=t||document.createElement("a"),this._symbolData=e,this._options=o||{},(0,i.validateSymbolData)(e)?(this.render(),this.start()):a.logError("symbolData is not valid")}render(){this._el.classList.add(this._getClass()),this._el.innerHTML=this._getView(),this._setTitle(),this._setLink()}start(){this._isRunning||(this._startQuoteTicker(),this._isRunning=!0)}stop(){this._isRunning&&(this._stopQuoteTicker(),this._isRunning=!1)}getElement(){return this._el}changeSymbol(e){const t=e.includes(":")?{proName:e}:{shortName:e};this._prevQuoteSymbol=this._getSymbolName(),this._symbolData=t,this._setTitle(),this._setLink(),this.stop(),this.start()}quoteTicker(){return this._quoteTicker}_getElementClass(e){return this._getClass()+"__"+e}_getSymbolName(){return this._symbolData.proName||this._symbolData.shortName}_renderSymbolLogo(e,t){const o=this._el.querySelector(".js-header-icon"),l=0===e.length?this._getPlaceholderLetter():void 0;o&&this._setSymbolLogoHtml(o,e,t,l)}_getPlaceholderLetter(){const e=this._symbolData.proName,t=e&&e.split(":")[1];return(this._symbolData.title||this._symbolData.description||t||""||" ")[0]}_setSymbolLogoHtml(e,t,o,l){if(t.length>0||void 0!==l){const r=(0,c.getCircleLogoAnyHtml)({logoUrls:t,size:o,className:this._getElementClass("icon"),placeholderLetter:l});e.innerHTML=r}else e.innerHTML=""}_setTitle(){const e=this._getElTitle();if(!e)return;const t=this._symbolData.title||this._symbolData.description||""||this._symbolData.shortName||this._symbolData.proName||"",o=(0,s.detectAutoDirection)(t);o&&(e.dir=o),e.textContent=t}_setLink(){if(!(this._el instanceof HTMLAnchorElement))return;const e=this._symbolData.linkPage;e&&(this._el.href=e),this._options.isEmbedWidget&&(this._el.target="_blank",this._el.rel="external noopener")}_startQuoteTicker(){if(!this._quoteTicker)return void this._createQuoteTicker();const e=this._getSymbolName();this._prevQuoteSymbol!==e?(this._destroyQuoteTicker(),this._createQuoteTicker()):this._quoteTicker.enable()}_stopQuoteTicker(){this._quoteTicker&&(this._quoteTicker.disable(),this._quoteTickerComplete=null)}_createQuoteTicker(){const e=this._getSymbolName(),t=this._getTickerOptions(),o=t.initedHook,l=t.setStateHook;this._quoteTickerComplete=null,this._quoteTicker=new r.QuoteTicker(e,this._el,{noSuchSymbolHook:()=>this.onError.fire("no_symbol"),permissionDeniedHook:()=>this.onError.fire("permission_denied"),...t,initedHook:(...e)=>{null==o||o(...e),this.onInit.fire(...e)},setStateHook:(e,t,o)=>{null==l||l(e,t,o),
o&&null===this._quoteTickerComplete&&(this._quoteTickerComplete=o,this.onComplete.fire())}})}_destroyQuoteTicker(){this._stopQuoteTicker(),delete this._quoteTicker}_getElTitle(){return this._el.querySelector(`.${this._getElementClass("title")}`)}}},903972:(e,t,o)=>{"use strict";function l(e){return Boolean(e)&&("string"==typeof e.proName||"string"==typeof e.shortName)}o.d(t,{validateSymbolData:()=>l})},626333:(e,t,o)=>{"use strict";function l(e,t=window){const o="theme-"+e,l=t.document.documentElement.classList;for(const e of Array.from(l))e.startsWith("theme-")&&e!==o&&l.remove(e);l.add(o)}o.d(t,{applyTheme:()=>l})},331633:(e,t,o)=>{"use strict";o.d(t,{setTheme:()=>n});var l=o(401580),r=o(626333);const i=new l.WatchedValue;function n(e){i.setValue(e)}i.subscribe((e=>{(0,r.applyTheme)(e,window)}))},889267:(e,t,o)=>{"use strict";o.d(t,{isSpread:()=>a,tokenize:()=>s});var l=o(244842),r=o(173777);const i={number:/\d+(?:\.\d*|(?![a-zA-Z0-9_!:.&]))|\.\d+/,incompleteNumber:/\./,symbol:l.enabled("charting_library_base")?/(?:[^-+\/*^\s]'|[a-zA-Z0-9_\u0370-\u1FFF_\u2E80-\uFFFF^])(?:[^-+\/*^\s]'|[a-zA-Z0-9_\u0020\u0370-\u1FFF_\u2E80-\uFFFF_!:.&])*|'.+?'/:/(?:[^-+\/*^\s]'|[a-zA-Z0-9_\u0370-\u1FFF_\u2E80-\uFFFF])(?:[^-+\/*^\s]'|[a-zA-Z0-9_\u0020\u0370-\u1FFF_\u2E80-\uFFFF_!|:.&])*|'.+?'/,incompleteSymbol:/'[^']*/,separatorPrefix:r.SEPARATOR_PREFIX,openBrace:"(",closeBrace:")",plus:"+",minus:"-",multiply:"*",divide:"/",power:"^",whitespace:/[\0-\x20\s]+/,unparsed:null},n=new RegExp(Object.values(i).map((e=>{return null===e?"":`(${"string"==typeof e?(t=e,t.replace(/[\^$()[\]{}*+?|\\]/g,"\\$&")):e.source})`;var t})).filter((e=>""!==e)).concat(".").join("|"),"g");function s(e){if(!e)return[];const t=[],o=Object.keys(i);let l;for(;l=n.exec(e);){let e=!1;for(let r=o.length;r--;)if(l[r+1]){o[r]&&t.push({value:l[r+1],type:o[r],precedence:0,offset:l.index}),e=!0;break}e||t.push({value:l[0],type:"unparsed",precedence:0,offset:l.index})}return t}function c(e){return"plus"===e||"minus"===e||"multiply"===e||"divide"===e||"power"===e}function a(e){return e.length>1&&e.some((e=>c(e.type)))}},17966:(e,t,o)=>{"use strict";o.d(t,{getCircleLogoAnyHtml:()=>l.getCircleLogoAnyHtml});var l=o(467236)},607546:(e,t,o)=>{"use strict";o.d(t,{getLogoUrlsHook:()=>l.getLogoUrlsHook});var l=o(526639)},526639:(e,t,o)=>{"use strict";o.d(t,{getLogoUrlsHook:()=>i});var l=o(849204);const r=(0,l.getLogoUrlResolver)();function i(e,t){let o=!1;return(i,s,c)=>{const a=i["currency-logoid"]&&i["base-currency-logoid"];if(!o&&(i.logoid||a||c)){o=!0;const s=function(e){if(2!==e.length)return e;if(function(e){return e.some((e=>n(e)))}(e)&&!function(e){return e.some((e=>e.includes("country")&&!n(e)))}(e))return e.filter((e=>!n(e)));return e}(function(e,t=l.LogoSize.Medium){const o=e.logoid,i=e["base-currency-logoid"],n=e["currency-logoid"],s=o&&r.getSymbolLogoUrl(o,t);if(s)return[s];const c=i&&r.getSymbolLogoUrl(i,t),a=n&&r.getSymbolLogoUrl(n,t);return c&&a?[c,a]:c?[c]:a?[a]:[]}({logoid:i.logoid,"base-currency-logoid":i["base-currency-logoid"],
"currency-logoid":i["currency-logoid"]},t));e(s)}}}function n(e){return e.includes("country/US")}},31341:(e,t,o)=>{"use strict";o.d(t,{detectAutoDirection:()=>u,forceLTRStr:()=>s,isRtl:()=>l,stripLTRMarks:()=>n});o(64531);const l=()=>"rtl"===window.document.dir,r="",i=new RegExp("|||","g");function n(e){return""!==e&&l()&&null!=e?e.replace(i,""):e}function s(e){return""!==e&&l()&&null!=e?""+e+r:e}const c=/[^\u0000-\u0040\u005B-\u0060\u007B-\u00BF\u00D7\u00F7\u02B9-\u02FF\u2000-\u200E\u2010-\u2029\u202C\u202F-\u2BFF]/,a=/[\u0590-\u07FF\u200F\u202B\u202E\uFB1D-\uFDFD\uFE70-\uFEFC]/;function u(e){const t=c.exec(e);return t?a.test(t[0])?"rtl":"ltr":""}},81979:(e,t,o)=>{"use strict";o.d(t,{color:()=>l.color,dur:()=>l.dur});var l=o(745269)},702269:(e,t,o)=>{"use strict";function l(e){return e.replace("{{shortName}}","{tvsymbol}").replace("{{proName}}","{tvprosymbol}").replace("{{symbol}}","{tvsymbol}").replace("{{exchange}}","{tvexchange}")}o.d(t,{replaceOldPlaceholders:()=>l})},663261:(e,t,o)=>{"use strict";o.d(t,{handleTVLinksClick:()=>n});var l=o(439563),r=o(185515),i=o(691239);function n(){document.addEventListener("click",(e=>{const t=e.target.closest(":link");if(!(null==t?void 0:t.hostname)||!(0,i.isInternalHost)(t.hostname,"tradingview.com"))return;const o=t.dataset.targetType||null;!function(e,t){const o=function(){const e=window.initData.hashSettings;if(Object.keys(e).length>0)return(0,r.filterUtmInfo)(e);const t=new URLSearchParams(location.href);return{utm_campaign:t.get("utm_campaign")||void 0,utm_source:t.get("utm_source")||void 0}}(),i=function(e){var t;const o=(null===(t=location.ancestorOrigins)||void 0===t?void 0:t[0])||document.referrer;return e.utm_source||function(e){try{return new URL(e).host}catch(e){return""}}(o)}(o);!async function(e){var t;null===(t=await(0,l.getEmbedWidgetTracker)())||void 0===t||t.trackWidgetTVLinkClick(e)}({widget_type:s(o),domain:i,link:e,target_type:t})}(t.href,o)}))}function s(e){if(e.utm_campaign)return e.utm_campaign;const t=location.pathname;return t.includes("embed-widget")?t.split("/")[2]:t}},194058:(e,t,o)=>{"use strict";o.d(t,{makeWidgetSymbolLink:()=>n});var l=o(702269),r=o(503344),i=o(889267);function n(e){var t;const{customUrl:o,utmInfo:n,path:s,typespecs:c}=e;let a,u,g=e.symbol;const m=(0,i.tokenize)(g);return(0,i.isSpread)(m)&&(g=(null===(t=m.find((e=>"symbol"===e.type)))||void 0===t?void 0:t.value)||g),g.includes(":")?[u,a]=g.split(":"):a=g,o?(0,r.makeTemplateSymbolUrl)((0,l.replaceOldPlaceholders)(o),{proName:g}):(0,r.makeSymbolPageUrl)({shortName:a,exchange:u,typespecs:c},n,void 0,s)}}}]);