(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[70368],{252239:e=>{e.exports={"css-value-copyright-transition-params":".6s 0s cubic-bezier(.4, .01, .22, 1)","css-value-copyright-transition-params-half-time":".3s 0s cubic-bezier(.4, .01, .22, 1)",label:"label-w6JJhLCp",logoWrap:"logoWrap-w6JJhLCp",expandedWithTransition:"expandedWithTransition-w6JJhLCp",expandedByClick:"expandedByClick-w6JJhLCp",start:"start-w6JJhLCp",end:"end-w6JJhLCp",snap:"snap-w6JJhLCp",top:"top-w6JJhLCp",bottom:"bottom-w6JJhLCp",chartBottom:"chartBottom-w6JJhLCp",large:"large-w6JJhLCp",expanded:"expanded-w6JJhLCp",label__link:"label__link-w6JJhLCp"}},181620:e=>{e.exports={}},52093:e=>{e.exports={}},62889:(e,t,n)=>{"use strict";n.d(t,{CopyrightPosition:()=>r,copyrightLabel:()=>a});var r,i=n(497754),o=n(995683),s=n(252239);function a({svgText:e,icon:t,theme:n,url:a,verticalPosition:c=r.Vertical.Bottom,horizontalPosition:l=r.Horizontal.End,snapToEdge:u=!0,isLarge:d=!1,isExpanded:p=!1}){const f=(0,o.mergeThemes)(s,n),g=document.createElement("span");let h;a&&(h=document.createElement("a"),h.classList.add(f.label__link),h.href=a,h.target="_blank",h.rel="noopener noreferrer",g.append(h)),g.className=i(f.label,l===r.Horizontal.Start&&f.start,l===r.Horizontal.End&&f.end,c===r.Vertical.Top&&f.top,c===r.Vertical.Bottom&&f.bottom,c===r.Vertical.ChartBottom&&f.chartBottom,u&&f.snap,d&&f.large,p&&f.expanded,"js-copyright-label"),g.addEventListener("click",(()=>{function e(){g.classList.remove(f.expandedByClick),g.removeEventListener("mouseleave",e)}g.classList.contains(f.expandedWithTransition)||g.classList.contains(f.expanded)||(g.classList.contains(f.expandedByClick)?a||e():(g.classList.add(f.expandedByClick),g.addEventListener("mouseleave",e)))}));const y=document.createElement("span");y.className=f.logoWrap,y.innerHTML=t;const v=document.createElement("span");return v.className=f.svgTextWrap,v.innerHTML=e,g.append(y,v),[g,f]}!function(e){let t,n;!function(e){e[e.Bottom=0]="Bottom",e[e.Top=1]="Top",e[e.ChartBottom=2]="ChartBottom"}(t=e.Vertical||(e.Vertical={})),function(e){e[e.Start=0]="Start",e[e.End=1]="End"}(n=e.Horizontal||(e.Horizontal={}))}(r||(r={}))},351079:(e,t,n)=>{"use strict";n.d(t,{CopyrightPosition:()=>i.CopyrightPosition,createCopyrightLabel:()=>a});var r=n(497754),i=n(62889),o=n(650401),s=n(952598);function a({isSheriffDisabled:e=!1,...t}){const[n,a]=(0,i.copyrightLabel)(t);return e||(0,o.getWidgetSheriffActions)().then((e=>{n.className=r(n.className,e.includes(s.KnownAction.Expand)&&a.expandedWithTransition)})),n}},23580:(e,t,n)=>{"use strict";function r(e,t,r){return"lentaru"===e?Promise.all([n.e(48830),n.e(1523)]).then(n.bind(n,466672)).then((e=>e.getLentaCopyrightData())):"cmoneycomtw"===e?Promise.all([n.e(93606),n.e(28808),n.e(42091)]).then(n.bind(n,20922)).then((e=>e.getCmoneycomtwCopyrightData(t,r))):Promise.all([n.e(93606),n.e(53259)]).then(n.bind(n,794680)).then((e=>e.getTradingViewCopyrightData(t,r)))}n.d(t,{getCustomerCopyrightData:()=>r})},650401:(e,t,n)=>{"use strict";n.d(t,{getWidgetSheriffActions:()=>u });var r=n(125226),i=n(890740),o=n(272001),s=n(952598);const a=window.WIDGET_SHERIFF_HOST||"https://www.xstaging-widget.tv",c=(0,o.getLogger)("WidgetSheriff.Widget");let l=null;async function u(){return null===l&&(l=await async function(){if(!(0,r.isFeatureEnabled)("widget-sheriff"))return Promise.resolve([]);const e=document.location.ancestorOrigins&&document.location.ancestorOrigins.length?document.location.ancestorOrigins[document.location.ancestorOrigins.length-1]:null;if(null===e)return c.logWarn("ancestorOrigin is undefined"),Promise.resolve([]);const t=new URL("/sheriff/api/v1/rules/search",a);t.searchParams.append("origin",e);return(await(0,i.fetch)(t.toJSON()).then((e=>{if(!e.ok)throw new Error("Guard request error occured");return 204===e.status?Promise.resolve({actions:[]}):e.json()})).catch((e=>(c.logWarn(e.message),Promise.resolve({actions:[]}))))).actions.filter((e=>s.widgetSheriffActions.has(e)))}()),Promise.resolve(l)}},952598:(e,t,n)=>{"use strict";var r;n.d(t,{KnownAction:()=>r,widgetSheriffActions:()=>i}),function(e){e.Expand="expand-logo"}(r||(r={}));const i=new Set([r.Expand])},192784:(e,t,n)=>{"use strict";n.r(t),n.d(t,{flushDelegate:()=>i});var r=n(869403);const i=new(n.n(r)())},62802:(e,t,n)=>{"use strict";e=n.nmd(e),n(638456);var r=n(890740).fetch,i=n(627025).regExpEscape,o=n(226722).TVXWindowEvents,s=n(49437).TVLocalStorage,a=n(869403),c=n(495046),l=n(125226).isFeatureEnabled,{flushDelegate:u}=n(192784),d=n(272001).getLogger("Lib.TVSettings"),p=["s.tradingview.com","betacdn.tradingview.com"],f=(c.enabled("use_localstorage_for_settings"),window.TVSettings=function(){var e=!1,t=null,n=!1;function g(){return!(t||window.is_authenticated)}try{e=!TradingView.onWidget()&&parent&&parent!==window&&!!parent.IS_DEMO_PAGE}catch(e){}if(e){var h={"widgetbar.layout-settings":{widgets:{},settings:{minimized:!0}},notShowMainWizard:!0},y=function(e,t,n){var r=h[e];return null==r?t:r},v=function(){};return{loaded:!1,loadedModel:!1,getValue:y,getJSON:y,getBool:y,getFloat:y,getInt:y,setValue:v,setJSON:v,remove:v,keys:function(){return Object.keys(h)},keysMask:function(){return[]},sync:v,onSync:{subscribe:function(){}}}}var m=12e4;"local"===window.environment&&(m=5e3);var _,S,w,b=TradingView.onWidget()?"tradingview-widget":"tradingview",k=b+".",T={},E=[],L=[/^widgetbar\.widget\.watchlist.+/,/.+quicks$/,/^widgetbar\.layout-settings$/,/^ChartSideToolbarWidget\.visible$/,/^onwidget\.watchlist$/,/^domepanel.visible$/,/^orderpanel.visible$/,/^chart\.favoriteDrawings$/,/^chart\.favoriteDrawingsPosition$/,/^loadChartDialog.favorites$/,/^ChartFavoriteDrawingToolbarWidget\.visible/,/^trading\.chart\.proterty$/,/^trading_floating_toolbar\.position$/,/^trading\.orderWidgetMode\./,/^symbolWatermark$/,/^pinereference\.size$/,/^pinereference\.position$/,/^hint\.+/,/^ChartDrawingToolbarWidget\.visible/];function C(e){return k+e}function x(e){return e.substring(k.length)}function M(e,t){var n=T[e];return null==n?t:n}function $(e,t,n){n=n||{};var r=""+t;return T[e]!==r&&(T[e]=r,P(e)),n.forceFlush&&!S&&(S=setTimeout((function(){ S=void 0,O()}),10)),f}function I(e,t){return t=t||{},null!=T[e]&&(delete T[e],P(e)),t.forceFlush&&O(),f}function F(){_=void 0,E.length&&O()}function P(e){if(t)null==T[e]?t.removeValue(e):t.setValue(e,T[e]);else if(g())try{null==T[e]?s.removeItem(C(e)):s.setItem(C(e),T[e])}catch(e){}else E.push(e),_||(_=setTimeout(F,m));o.emit("settings",JSON.stringify({key:e,value:T[e]}))}function O(e){if(!n&&!w)if(l("disable_save_settings"))d.logWarn("Settings flashing has been skipped because of disable_save_settings featuretoggle");else if(!c.enabled("widget")&&!g()&&0!==E.length){var t=E;E=[];for(var i={},o=t.length;o--;){var s=t[o],a=T[s];void 0===a&&(a=null),i[s]=a}var u=new FormData;u.append("delta",JSON.stringify(i)),e&&navigator.sendBeacon?navigator.sendBeacon("/savesettings/",u):r("/savesettings/",{method:"POST",credentials:"include",body:u}).then((function(n){if(n.ok||(E=E.concat(t)),[429,503].includes(n.status)){var r=1e3*+n.headers.get("retry-after")||3e5;w=setTimeout((()=>{w=void 0,O(e)}),r)}})).catch((function(){E=E.concat(t)}))}}function A(){return Object.keys(T)}function D(e){for(var t=0;t{O()})),{loaded:!1,loadedModel:!1,getValue:M,getJSON:function(e,t){var n=M(e,void 0);if(null==n)return t;try{return JSON.parse(n)}catch(n){return I(e),t}},getBool:function(e,t){var n=M(e);return null==n?t:!(!n||"false"===n||0==+n)},getFloat:function(e,t,n){var r=M(e,void 0);if(null==r)return t;var i=parseFloat(r);if(!isFinite(i))throw new TypeError('"'+r+'" is not float (key: "'+e+'")');return i},getInt:function(e,t,n){var r=M(e,void 0);if(null==r)return t;var i=parseInt(r,10);if(!isFinite(i))throw new TypeError('"'+r+'" is not int (key: "'+e+'")');return i},setValue:$,setJSON:function(e,t,n){return $(e,JSON.stringify(t),n),f},remove:I,keys:A,keysMask:function(e,t){for(var n=A(),r=[],o=(e=new RegExp("^"+i(e).replace(/\\\*\\\*/gi,".+").replace(/\\\*/gi,"[^.]+")+"$","gi"),n.length-1);o>=0;o--)e.test(n[o])&&r.push(n[o]),e.lastIndex=0;return r},sync:function(e){null!==e?(t?B(t.initialSettings||{}):g()?(function(){if(TradingView.onWidget()&&p.includes(window.location.host))for(var e="tradingview.",t=s.length;t--;){var n=s.key(t);if(0===n.indexOf(e)){var r=n.replace(e,b+".");s.setItem(r,s.getItem(n)),s.removeItem(n)}}}(),function(){T={};for(var e=!c.enabled("save_chart_properties_to_local_storage"),t=s.length;t--;){var n=s.key(t);if(n&&V(n)){var r=n.substring(k.length);e&&!D(r)||(T[r]=s.getItem(n))}} }()):B(e||{}),U.fire()):n=!0},onSync:U,setSettingsAdapter:function(e){t=e}}}());setTimeout((function(){n.e(30362).then(n.bind(n,276141)).then((e=>{e.clearOldSettings()}))}),3e4),e&&e.exports&&(e.exports=f)},397239:(e,t,n)=>{"use strict";n.d(t,{isUserNeedSignAgreement:()=>i,checkIfExchangeAvailable:()=>o});n(984919);var r=n(237037);function i(e){if(!(0,r.isIDCExchange)(e))return!1;e=s(e);const t=window.pro,n=t.getProduct(e);return void 0!==n.idc_service_codes_delay&&((!Array.isArray(n.included_exchanges)||!n.included_exchanges.some((e=>t.hasPackage(s(e)))))&&!function(e){const t=window.pro;return t.hasPackage(e)||t.hasPackage(e+"_dly")}(e))}function o(e){const t=window.pro;return new Promise((n=>{window.is_authenticated?!t.getIDCExchanges(!0).length||t.isInvalidShopConf()?t.updateShopConf().then((()=>{n(!i(e))})).catch((()=>{n(!0)})):n(!i(e)):n(!0)}))}function s(e){return e.startsWith("exchange-")?e:"exchange-{0}".format(e.toLowerCase())}},237037:(e,t,n)=>{"use strict";function r(e,t=!1){if(e&&e.startsWith("exchange-"))return function(e,t=!1){const n=window.pro,r=n.getProduct(e);return!!n.isProductDefined(r)&&(t?!!r.idc_service_codes_delay:!!r.idc_service_codes)}(e,t);const n=(e||"").toLowerCase();return window.pro.getIDCExchanges(t).includes(n)}n.d(t,{isIDCExchange:()=>r})},226722:(e,t,n)=>{"use strict";n.d(t,{TVXWindowEvents:()=>s,getScopedTVXWindowEvents:()=>a});n(984919);var r=n(272001),i=n(49437);const o=(0,r.getLogger)("XWindowEvents");var s;function a(e){return{on:(t,n)=>s.on(`${e}.${t}`,n),off:(t,n)=>s.off(`${e}.${t}`,n),emit:(t,n)=>s.emit(`${e}.${t}`,n)}}!function(e){const t="tvxwevents.",n={};let r;window.BroadcastChannel?(r=new BroadcastChannel("tvxwevents"),r.addEventListener("message",(function(e){const{data:{event:t,value:r}}=e;n[t]&&n[t].forEach((e=>{e(r)}))})),function(){const e=[],n=performance.now();for(let n=0;n{t(e.newValue)}));i.TVLocalStorage.removeItem(o)})),e.on=function(e,t){n[e]||(n[e]=[]),n[e].push(t)},e.off=function(e,t){if(!n[e])return;const r=n[e].indexOf(t);-1!==r&&(1===n[e].length?delete n[e]:n[e].splice(r,1))},e.emit=function(e,n=Date.now()){try{r?r.postMessage({event:e,value:n}):i.TVLocalStorage.setItem(t+e,n.toString())}catch(e){o.logError(e.message)}}}(s||(s={}))},315723:(e,t,n)=>{"use strict";n.d(t,{getCircleLogoPairHtml:()=>i});var r=n(439378);n(181620);function i(e){const{primaryLogoUrl:t,secondaryLogoUrl:n,size:i,className:s}=e ;return`\n\t\t\t${o({logoUrl:n,size:i})}\n\t\t\t${o({logoUrl:t,size:i})}\n\t\t`}function o(e){const{logoUrl:t,size:n}=e,i=(0,r.getLogoStyleClasses)(n,Boolean(t));return void 0===t?``:``}},439378:(e,t,n)=>{"use strict";n.d(t,{getBlockStyleClasses:()=>i,getLogoStyleClasses:()=>o});var r=n(497754);function i(e,t){return r("tv-circle-logo-pair",`tv-circle-logo-pair--${e}`,t)}function o(e,t){return r("tv-circle-logo-pair__logo",`tv-circle-logo-pair__logo--${e}`,!t&&"tv-circle-logo-pair__logo-empty")}},562840:(e,t,n)=>{"use strict";n.d(t,{getCircleLogoHtml:()=>i});var r=n(783036);n(52093);function i(e){const t=(0,r.getStyleClasses)(e.size,e.className);return(0,r.isCircleLogoWithUrlProps)(e)?``:`${e.placeholderLetter||""}`}},783036:(e,t,n)=>{"use strict";n.d(t,{getStyleClasses:()=>i,isCircleLogoWithUrlProps:()=>o});var r=n(497754);function i(e,t){return r("tv-circle-logo",`tv-circle-logo--${e}`,t)}function o(e){return"logoUrl"in e&&void 0!==e.logoUrl&&0!==e.logoUrl.length}},995683:(e,t,n)=>{"use strict";function r(e,t,n={}){return Object.assign({},e,function(e,t,n={}){const r=Object.assign({},t);for(const i of Object.keys(t)){const o=n[i]||i;o in e&&(r[i]=[e[o],t[i]].join(" "))}return r}(e,t,n))}n.d(t,{mergeThemes:()=>r})},696828:(e,t,n)=>{"use strict";var r=n(495046),i=[{d:"E-Mini S&P 500",t:"ES"},{d:"E-Mini Nasdaq 100",t:"NQ"},{d:"Gold",t:"GC"},{d:"Silver",t:"SI"},{d:"Crude Oil WTI",t:"CL"},{d:"Natural Gas",t:"NG"},{d:"Australian Dollar",t:"6A"},{d:"Australian Dollar (Floor)",t:"AD"},{d:"Euro FX",t:"6E"},{d:"Euro FX (Floor)",t:"EC"},{d:"Corn",t:"ZC"},{d:"Corn (Floor)",t:"C"},{d:"Eurodollar",t:"GE"},{d:"Eurodollar (Floor)",t:"ED"}],o=function(){var e=[{pattern:"(",ctor:s},{pattern:")",ctor:a},{pattern:"+",ctor:l},{pattern:"-",ctor:u},{pattern:"*",ctor:d},{pattern:"/",ctor:p},{pattern:"^",ctor:f},{pattern:/\d+(?:\.\d*|(?![a-zA-Z0-9_!:.&]))|\.\d+/,ctor:v},{pattern:/\./,ctor:S},{pattern:r.enabled("charting_library_base")?/[a-zA-Z0-9_\u0370-\u1FFF_\u2E80-\uFFFF^][a-zA-Z0-9_\u0020\u0370-\u1FFF_\u2E80-\uFFFF_!:.&]*|'.+?'/:/[a-zA-Z0-9_\u0370-\u1FFF_\u2E80-\uFFFF][a-zA-Z0-9_\u0020\u0370-\u1FFF_\u2E80-\uFFFF_!|:.&]*|'.+?'/,ctor:y},{pattern:/'[^']*/,ctor:_},{pattern:/[\0-\x20\s]+/,ctor:o}];function t(e,t){var n=function(){};return n.prototype=t.prototype,e.prototype=new n,e}function n(){}function o(e){this.value=e}function s(){}function a(){}function c(){}function l(){}function u(){}function d(){}function p(){}function f(){}n.prototype.toString=function(){return this.value},t(o,n),t(s,n),s.prototype.value="(",t(a,n),a.prototype.value=")",t(c,n),t(l,c),l.prototype.value="+",l.prototype.precedence=0,l.prototype.commutative=!0,t(u,c),u.prototype.value="-",u.prototype.precedence=0,u.prototype.commutative=!1,t(d,c),d.prototype.value="*",d.prototype.precedence=1,d.prototype.commutative=!0,t(p,c),p.prototype.value="/",p.prototype.precedence=1, p.prototype.commutative=!1,t(f,c),f.prototype.value="^",f.prototype.precedence=2,f.prototype.commutative=!1;var g=/^'?(?:([A-Z0-9_]+):)?(.*?)'?$/i,h=/[+\-/*]/;function y(e){this.value=e}function v(e){this.value=e}function m(e){this.value=e}function _(){y.apply(this,arguments)}function S(){v.apply(this,arguments)}t(y,n),y.prototype.toString=function(){if(this.hasOwnProperty("_ticker")){var e=h.test(this._ticker)?"'":"";return e+(this._exchange?this._exchange+":":"")+this._ticker+e}return this.value},y.prototype.parse=function(){var e=g.exec(this.value);e[1]&&(this._exchange=e[1]),this._ticker=e[2]},y.prototype.parseAsFutures=function(){this.hasOwnProperty("_ticker")||this.parse();for(var e=function(e){return i.some((function(t){return t.t===e}))},t=2;t>=1;--t){var n=this._ticker.slice(0,t);if(e(n)){this._root=n,this._contract=this._ticker.slice(t);break}}},y.prototype.exchange=function(e){if(this.hasOwnProperty("_ticker")||this.parse(),!(arguments.length>0))return this._exchange;null==e?delete this._exchange:this._exchange=e+""},y.prototype.ticker=function(e){if(this.hasOwnProperty("_ticker")||this.parse(),!(arguments.length>0))return this._ticker;null==e?delete this._ticker:this._ticker=e+"",delete this._root,delete this._contract},y.prototype.root=function(e){if(this.hasOwnProperty("_root")||this.parseAsFutures(),!(arguments.length>0))return this._root;null==e?delete this._root:(this._root=e+"",this._root&&(this._ticker=this._root+(this._contract||"")))},y.prototype.contract=function(e){if(this.hasOwnProperty("_contract")||this.parseAsFutures(),!(arguments.length>0))return this._root;null==e?delete this._contract:(this._contract=e+"",this._root&&(this._ticker=this._root+this._contract))},t(v,n),v.prototype.toString=function(){return this.hasOwnProperty("_normalizedValue")?this._normalizedValue:this.value},v.prototype.parse=function(){this._normalizedValue=this.value.replace(/^0+|\.0*$/g,"").replace(/(\.\d*?)0+$/,"$1").replace(/^(\.|$)/,"0$1")},m.prototype.toString=function(){return this.value},t(_,y),_.prototype.isIncomplete=!0,_.prototype.incompleteSuggest=function(){if("'"!==this.value)return String("'")},t(S,v),S.prototype.isIncomplete=!0;var w=new RegExp(e.map((function(e){return"("+("string"==typeof e.pattern?e.pattern.replace(/[\^$()[\]{}*+?|\\]/g,"\\$&"):e.pattern.source)+")"})).concat(".").join("|"),"g");function b(t,n){var r,i=[];e:for(;r=w.exec(t);){for(var s=e.length;s--;)if(r[s+1]){if(e[s].ctor){var a=new e[s].ctor(r[s+1]);a._offset=r.index,i.push(a)}continue e}var c=new m(r[0]);c._offset=r.index,i.push(c)}if(n&&n.recover){var l;for(s=i.length;s--;){var u=i[s];if(u instanceof v||u instanceof y){if(void 0!==l){var d=new y(""),p=i.splice(s,l-s+1,d);d.value=p.map((function(e){return e.value})).join("")}l=s}else u instanceof o||(l=void 0)}}return i}function k(e){for(var t=[],n=0;no.precedence&&(r[r.length-1].minPrecedence=o.precedence);else if(o instanceof s)r.push(t={minPrecedence:1/0,openBraceIndex:i});else if(o instanceof a){var l=e[(t=r.pop()).openBraceIndex-1],u=e[i+1];u instanceof c&&!(u.precedence<=t.minPrecedence)||!(!(l instanceof c)||l.precedencet.minPrecedence&&(r[r.length-1].minPrecedence=t.minPrecedence))}}for(i=n.length;i--;)e.splice(n[i],1);return e}function E(e){if("string"!=typeof e)throw new TypeError("expression must be a string");return(e=b(e)).filter((function(e){return e instanceof y})).map((function(e){return e.exchange()})).filter((function(e){return e}))}function L(e){return 1!==(e=E(e)).length?null:e[0]}function C(e,t){return(e=E(e)).some((function(e){return t.includes((e||"").toUpperCase())}))}function x(e){return e.join("")}return{tokenize:b,validate:function(e){if(r.enabled("charting_library_base"))return{currentState:"var"};for(var t="init",n="var",i=t,l={warnings:[],errors:[],isEmpty:!0},u=[],d=0;d{"use strict";n.d(t,{monthFormatFunction:()=>h,dateFormatFunctions:()=>y,getDateFormatWithWeekday:()=>v,availableDateFormats:()=>m,defaultDateFormat:()=>_});var r=n(777754),i=n(39654),o=n(368725);const s={1:()=>r.t(null,void 0,n(795425)),2:()=>r.t(null,void 0,n(835050)),3:()=>r.t(null,void 0,n(651369)),4:()=>r.t(null,void 0,n(442762)),5:()=>r.t(null,{context:"short"},n(227991)),6:()=>r.t(null,void 0,n(715224)),7:()=>r.t(null,void 0,n(6215)),8:()=>r.t(null,void 0,n(38465)),9:()=>r.t(null,void 0,n(757902)),10:()=>r.t(null,void 0,n(73546)),11:()=>r.t(null,void 0,n(671230)),12:()=>r.t(null,void 0,n(92203))},a=(e,t)=>(t?e.getMonth():e.getUTCMonth())+1,c=(e,t)=>t?e.getFullYear():e.getUTCFullYear(),l=e=>e.toLocaleDateString(window.language?(0,i.getIsoLanguageCodeFromLanguage)(window.language):void 0,{weekday:"short",timeZone:"UTC"}),u=(e,t)=>(0,o.numberToStringWithLeadingZero)(((e,t)=>t?e.getDate():e.getUTCDate())(e,t),2),d=(e,t)=>s[a(e,t)](),p=(e,t)=>(0,o.numberToStringWithLeadingZero)(a(e,t),2),f=(e,t)=>(0,o.numberToStringWithLeadingZero)(c(e,t)%100,2),g=(e,t)=>(0,o.numberToStringWithLeadingZero)(c(e,t),4),h=(e,t)=>d(e,t),y={"dd MMM 'yy":(e,t)=>`${u(e,t)} ${d(e,t)} '${f(e,t)}`,"MMM dd, yyyy":(e,t)=>`${d(e,t)} ${u(e,t)}, ${g(e,t)}`,"MMM dd":(e,t)=>`${d(e,t)} ${u(e,t)}`,"MMM yyyy":(e,t)=>`${d(e,t)} ${g(e,t)}`,"dd MMM":(e,t)=>`${u(e,t)} ${d(e,t)}`,"yyyy-MM-dd":(e,t)=>`${g(e,t)}-${p(e,t)}-${u(e,t)}`,"yy-MM-dd":(e,t)=>`${f(e,t)}-${p(e,t)}-${u(e,t)}`,"yy/MM/dd":(e,t)=>`${f(e,t)}/${p(e,t)}/${u(e,t)}`,"yyyy/MM/dd":(e,t)=>`${g(e,t)}/${p(e,t)}/${u(e,t)}`,"dd-MM-yyyy":(e,t)=>`${u(e,t)}-${p(e,t)}-${g(e,t)}`,"dd-MM-yy":(e,t)=>`${u(e,t)}-${p(e,t)}-${f(e,t)}`,"dd/MM/yy":(e,t)=>`${u(e,t)}/${p(e,t)}/${f(e,t)}`,"dd/MM/yyyy":(e,t)=>`${u(e,t)}/${p(e,t)}/${g(e,t)}`,"MM/dd/yy":(e,t)=>`${p(e,t)}/${u(e,t)}/${f(e,t)}`,"MM/dd/yyyy":(e,t)=>`${p(e,t)}/${u(e,t)}/${g(e,t)}`};function v(e){return"ja"===window.language?(t,n)=>`${y[e](t,n)} (${l(t)})`:(t,n)=>`${l(t)} ${y[e](t,n)}`} const m=Object.keys(y),_=()=>-1!==["ja","ko","zh","zh_TW"].indexOf(window.language||"")?"yyyy-MM-dd":"dd MMM 'yy"},568450:(e,t,n)=>{"use strict";n.d(t,{ResolutionKind:()=>o,SpecialResolutionKind:()=>s,Interval:()=>u,isHour:()=>p});const r=/^(\d*)([TSHDWMR])$/,i=/^(\d+)$/;var o,s;!function(e){e.Ticks="ticks",e.Seconds="seconds",e.Minutes="minutes",e.Days="days",e.Weeks="weeks",e.Months="months",e.Range="range",e.Invalid="invalid"}(o||(o={})),function(e){e.Hours="hours"}(s||(s={}));const a={};a[o.Ticks]=1e3,a[o.Seconds]=1e3,a[o.Minutes]=60*a[o.Seconds],a[o.Days]=1440*a[o.Minutes],a[o.Weeks]=7*a[o.Days];const c={T:o.Ticks,S:o.Seconds,D:o.Days,W:o.Weeks,M:o.Months,R:o.Range},l=new Set([o.Ticks,o.Seconds,o.Minutes]);class u{constructor(e,t){this._kind=o.Invalid,this._multiplier=0,e!==o.Invalid&&t>0&&(this._kind=e,this._multiplier=t)}kind(){return this._kind}multiplier(){return this._multiplier}isValid(){return this.kind()!==o.Invalid&&this.multiplier()>0}isDWM(){return this.isValid()&&!this.isRange()&&!this.isIntraday()&&!this.isTicks()}isIntraday(){const e=l.has(this.kind());return this.isValid()&&e}isSeconds(){return this.kind()===o.Seconds}isMinutes(){return this.kind()===o.Minutes}isMinuteHours(){return this.kind()===o.Minutes&&p(this.multiplier())}isDays(){return this.kind()===o.Days}isWeeks(){return this.kind()===o.Weeks}isMonths(){return this.kind()===o.Months}isRange(){return this.kind()===o.Range}isTicks(){return this.kind()===o.Ticks}isTimeBased(){return!this.isRange()}letter(){return this.isValid()&&this.kind()!==o.Minutes?this.kind()[0].toUpperCase():""}value(){return this.isValid()?this.kind()===o.Minutes?this.multiplier()+"":this.multiplier()+this.letter():""}isEqualTo(e){if(!(e instanceof u))throw new Error("Argument is not an Interval");return!(!this.isValid()||!e.isValid())&&(this.kind()===e.kind()&&this.multiplier()===e.multiplier())}inMilliseconds(e=Date.now()){if(!this.isValid()||this.isRange())return NaN;if(this.isMonths()){const t=new Date(e);t.setUTCMonth(t.getUTCMonth()+(this.multiplier()||1));return+t-e}const t=this.multiplier();return a[this.kind()]*t}static isEqual(e,t){return e===t||u.parse(e).isEqualTo(u.parse(t))}static parseExt(e){e=(e+"").toUpperCase().split(",")[0];let t=r.exec(e);return null!==t?"H"===t[2]?{interval:new u(o.Minutes,60*d(t[1])),guiResolutionKind:s.Hours}:{interval:new u(c[t[2]],d(t[1])),guiResolutionKind:c[t[2]]}:(t=i.exec(e),null!==t?{interval:new u(o.Minutes,d(t[1])),guiResolutionKind:o.Minutes}:{interval:new u(o.Invalid,0),guiResolutionKind:o.Invalid})}static parse(e){return u.parseExt(e).interval}static kind(e){return u.parse(e).kind()}static isValid(e){return u.parse(e).isValid()}static isDWM(e){return u.parse(e).isDWM()}static isIntraday(e){return u.parse(e).isIntraday()}static isSeconds(e){return u.parse(e).isSeconds()}static isMinutes(e){return u.parse(e).isMinutes()}static isMinuteHours(e){return u.parse(e).isMinuteHours()}static isDays(e){return u.parse(e).isDays()}static isWeeks(e){return u.parse(e).isWeeks()}static isMonths(e){return u.parse(e).isMonths()} static isRange(e){return u.parse(e).isRange()}static isTicks(e){return u.parse(e).isTicks()}static isTimeBased(e){return u.parse(e).isTimeBased()}static normalize(e){const t=u.parse(e);return t.isValid()?t.value():null}}function d(e){return 0===e.length?1:parseInt(e,10)}function p(e){return e>=60&&!(e%60)}},933813:(e,t,n)=>{"use strict";n.r(t),n.d(t,{STATUS_OFFLINE:()=>r,STATUS_RESOLVING:()=>i,STATUS_LOADING:()=>o,STATUS_READY:()=>s,STATUS_INVALID_SYMBOL:()=>a,STATUS_SNAPSHOT:()=>c,STATUS_EOD:()=>l,STATUS_PULSE:()=>u,STATUS_DELAYED:()=>d,STATUS_DELAYED_STREAMING:()=>p,STATUS_NO_BARS:()=>f,STATUS_REPLAY:()=>g,STATUS_ERROR:()=>h,SERIES_STATUS_TEXT:()=>y,STYLE_LINE_TYPE_MARKERS:()=>v,STYLE_LINE_TYPE_STEP:()=>m,STYLE_LINE_TYPE_SIMPLE:()=>_,STYLE_BARS:()=>S,STYLE_CANDLES:()=>w,STYLE_LINE:()=>b,STYLE_AREA:()=>k,STYLE_RENKO:()=>T,STYLE_KAGI:()=>E,STYLE_PNF:()=>L,STYLE_PB:()=>C,STYLE_HEIKEN_ASHI:()=>x,STYLE_HOLLOW_CANDLES:()=>M,STYLE_BASELINE:()=>$,STYLE_RANGE:()=>I,STYLE_HILO:()=>F,STYLE_COLUMNS:()=>P,STYLE_SHORT_NAMES:()=>O,SYMBOL_STRING_DATA:()=>A});const r=0,i=1,o=2,s=3,a=4,c=5,l=6,u=7,d=8,p=9,f=10,g=11,h=12,y={[r]:"connecting",[i]:"loading",[o]:"loading",[s]:"realtime",[a]:"invalid",[c]:"snapshot",[l]:"endofday",[u]:"endofday",[d]:"delayed",[p]:"delayed_streaming",[f]:"forbidden",[g]:"replay",[h]:"error"},v=0,m=1,_=2,S=0,w=1,b=2,k=3,T=4,E=5,L=6,C=7,x=8,M=9,$=10,I=11,F=12,P=13,O={0:"bar",1:"candle",9:"hollowCandle",2:"line",3:"area",4:"renko",7:"pb",5:"kagi",6:"pnf",8:"ha",10:"baseline",11:"range",12:"hilo",13:"column"},A={4:{type:"BarSetRenko@tv-prostudies",basicStudyVersion:63},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}}},720444:(e,t,n)=>{"use strict";n.r(t),n.d(t,{getTranslatedChartStyleName:()=>b,isRequiringRestartSeriesStyles:()=>k,isRangeBasedStyle:()=>T,isRangeStyle:()=>E,isTimeBasedStyle:()=>L,isValidStyle:()=>C,isSingleValueBasedStyle:()=>x,setLastUsedStyle:()=>M,getLastUsedStyle:()=>$,getLastUsedSingleValueBasedStyle:()=>I,getDefaultStyle:()=>F,getChartStyleByResolution:()=>P,chartStyleStudyId:()=>O,preparePriceAxisProperties:()=>A,hasProjection:()=>V,isPriceSourceStyle:()=>B,getSeriesPriceFormattingState:()=>U,createSeriesFormatter:()=>W,symbolCurrencyConvertible:()=>N,symbolCurrency:()=>R,symbolOriginalCurrency:()=>J,symbolBaseCurrency:()=>Y,isConvertedToOtherCurrency:()=>H,symbolUnitConvertible:()=>z,symbolUnit:()=>j,symbolOriginalUnit:()=>G,isConvertedToOtherUnit:()=>K,symbolUnitConvertibleGroupsIfExist:()=>Z,symbolCurrentContract:()=>q,symbolHasPreOrPostMarket:()=>X,symbolHasSeveralSessions:()=>Q,symbolHasEconomicEvents:()=>ee,extractSymbolNameFromSymbolInfo:()=>te,symbolTitle:()=>ne,displayedSymbolName:()=>re,displayedSymbolExchange:()=>ie,actualSymbol:()=>oe,proSymbol:()=>se,symbolForApi:()=>ae,isRegularSessionId:()=>ce,isCloseBasedSymbol:()=>le, isMeasureUnitSymbol:()=>ue,measureUnitId:()=>de,hasVolume:()=>pe,isEconomicSymbol:()=>fe,getStudySymbolExchange:()=>ge,isFutureContinuousSymbolWithBackajustment:()=>he,isFuturesContractSymbol:()=>ye,isCryptoSymbol:()=>ve});var r=n(777754),i=n(62802),o=n(933813),s=n(568450),a=n(368725),c=n(495046),l=n(650151),u=n(738023),d=n(561068);const p=c.enabled("pay_attention_to_ticker_not_symbol"),f=c.enabled("uppercase_instrument_names"),g=c.enabled("charting_library_single_symbol_request"),h=c.enabled("use_ticker_on_symbol_info_update"),y=c.enabled("hide_object_tree_and_price_scale_exchange_label"),v=[4,5,6,7,8],m=[4,5,6,7,11],_=[0,1,9,2,3,10,8,12,13],S=[2,10,3,13],w={0:r.t(null,void 0,n(16812)),1:r.t(null,void 0,n(463528)),2:r.t(null,void 0,n(301277)),3:r.t(null,void 0,n(542097)),9:r.t(null,void 0,n(661582)),10:r.t(null,void 0,n(117712)),12:r.t(null,void 0,n(631994)),13:r.t(null,void 0,n(636018)),4:r.t(null,void 0,n(20801)),7:r.t(null,void 0,n(563492)),5:r.t(null,void 0,n(292901)),6:r.t(null,void 0,n(99969)),11:r.t(null,void 0,n(490357)),8:r.t(null,void 0,n(240530))};function b(e){return w[e]}function k(e){return-1!==v.indexOf(e)}function T(e){return-1!==m.indexOf(e)}function E(e){return 11===e}function L(e){return-1!==_.indexOf(e)}function C(e){return T(e)||L(e)}function x(e){switch(e){case 3:case 10:case 2:case 13:return!0;default:return!1}}function M(e,t){C(e)&&(11!==e&&i.setValue("chart.lastUsedStyle",e),le(t)&&x(e)&&i.setValue("chart.lastUsedSingleValueBasedStyle",e))}function $(){const e=i.getInt("chart.lastUsedStyle");return void 0===e?1:e}function I(){const e=i.getInt("chart.lastUsedSingleValueBasedStyle");return void 0===e?2:e}function F(e){return e?11:1}function P(e,t){const n=E(t),r=s.Interval.isRange(e);return!n&&r?F(!0):n&&!r?F(!1):t}function O(e,t){const n=o.SYMBOL_STRING_DATA[e];return void 0===n?null:t?`${n.type}-${n.basicStudyVersion}`:n.type}function A(e){const t=e.priceAxisProperties,n=t.lockScale.value(),r=6===e.style.value();(r||n)&&(t.log.setValue(!1),t.percentage.setValue(!1)),t.logDisabled.setValue(!(!r&&!n)),t.percentageDisabled.setValue(!(!r&&!n))}const D=[4,7,5,6];function V(e){return-1!==D.indexOf(e)}function B(e){return S.includes(e)}function U(e,t="default",n=!1){let r,i,o=100,s=1;if("default"===t)null!=e&&(o=e.pricescale,s=e.minmov,r=e.fractional,i=e.minmove2);else{let e=t.split(",");3!==e.length&&(e=["100","1","false"]),o=parseInt(e[0]),s=parseInt(e[1]),r="true"===e[2]}return n&&(s=1),{priceScale:o,minMove:s,fractional:r,minMove2:i}}function W(e,t,n=!1){if("default"===t&&null!=e){const t=e.formatter||e.format;if("volume"===t)return new u.VolumeFormatter(2);if("percent"===t)return new d.PercentageFormatter(e.pricescale)}const{priceScale:r,minMove:i,fractional:o,minMove2:s}=U(e,t,n);return new a.PriceFormatter(r,i,o,s)}function N(e){return null!==e&&"spread"!==e.type}function R(e,t,n){if(null===e)return null;const r=!t||n?e.currency_id:e.currency_code;return void 0===r||""===r||"pct"===r?null:r}function J(e,t){const n=t?e.original_currency_code:e.original_currency_id ;return"pct"===n?null:null!=n?n:R(e,t)}function Y(e){return e.base_currency_id||null}function H(e){return!(null===e||!N(e))&&(void 0!==e.original_currency_id&&e.original_currency_id!==e.currency_id)}function z(e,t){return t&&null!==e&&"spread"!==e.type}function j(e,t){if(null===e||!t)return null;const n=e.unit_id;return void 0===n||""===n?null:n}function G(e,t){return t?e.original_unit_id||j(e,t):null}function K(e,t){return!(null===e||!z(e,t))&&(void 0!==e.original_unit_id&&e.original_unit_id!==e.unit_id)}function Z(e,t){return null!==e&&z(e,t)?e.unit_conversion_types||null:[]}function q(e){return"futures"===e.type&&e.front_contract||null}function X(e){return null!==e&&void 0!==e.subsessions&&e.subsessions.some((e=>"premarket"===e.id||"postmarket"===e.id))}function Q(e){return null!==e&&void 0!==e.subsessions&&e.subsessions.filter((e=>!e.private)).length>1}function ee(e){return null!==e&&("forex"===e.type||"cfd"===e.type||ve(e))}function te(e,t){let n=e&&(e.pro_name||e.full_name||e.name);return g&&t?n=t:h&&e&&e.ticker&&(n=e.ticker),f&&n&&(n=n.toUpperCase()),n}function ne(e,t,n="exchange"){return t||y?e.name:`${e.name}, ${e[n]}`}function re(e){let t=e&&(q(e)||e.name)||"";return t.length>40&&(t=t.substring(0,37)+"..."),t.trim()}function ie(e){const t=e?e.exchange:"";return f?t.toUpperCase():t}function oe(e,t){return null!==e?e.full_name:t}function se(e,t){return null!==e?e.pro_name:t}function ae(e,t){return p&&e?(0,l.ensureDefined)(e.ticker):oe(e,t)}function ce(e){return"regular"===e||"us_regular"===e}function le(e){return"c"===(null==e?void 0:e.visible_plots_set)}function ue(e){return null!==e&&("unit"===e.measure&&null!==de(e))}function de(e){var t;return null!==(t=null==e?void 0:e.value_unit_id)&&void 0!==t?t:null}function pe(e){return void 0!==e.visible_plots_set?"ohlcv"===e.visible_plots_set:!e.has_no_volume}function fe(e){return null!==e&&"economic"===e.type}function ge(e){return fe(e)&&e.source?e.source:e.exchange&&0!==e.exchange.length?e.exchange:void 0}function he(e){var t;return null!==e&&"futures"===e.type&&Boolean(e.has_backadjustment&&(null===(t=e.typespecs)||void 0===t?void 0:t.includes("continuous")))}function ye(e){var t;return null!==e&&"futures"===e.type&&!Boolean(null===(t=e.typespecs)||void 0===t?void 0:t.includes("continuous"))}function ve(e){var t;return(null===(t=e.typespecs)||void 0===t?void 0:t.includes("crypto"))||"crypto"===e.type||"bitcoin"===e.type}},728685:(e,t,n)=>{n(778785).setClasses();var r=n(10571).whenDocumentReady,i=n(975420).initGA,o=n(540731).handleTVLinksClick;r((()=>{i(),o()}))},627025:(e,t,n)=>{"use strict";function r(e){return e.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}n.d(t,{regExpEscape:()=>r})},540731:(e,t,n)=>{"use strict";n.d(t,{handleTVLinksClick:()=>o,sendWidgetTrackData:()=>s});var r=n(186521),i=n(620031);function o(){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 n=t.classList.contains("js-copyright-label")?"copyright":null;s(t.href,n)}))} function s(e,t){const i=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}}(),o=function(e){var t;const n=(null===(t=location.ancestorOrigins)||void 0===t?void 0:t[0])||document.referrer;return e.utm_source||(n.length>0?new URL(n).host:"")}(i);!async function(e){var t;null===(t=await async function(){return(await Promise.all([n.e(26904),n.e(36683)]).then(n.bind(n,449946))).getTrackerInstance()||null}())||void 0===t||t.trackWidgetTVLinkClick(e)}({widget_type:a(i),domain:o,link:e,target_type:t})}function a(e){if(e.utm_campaign)return e.utm_campaign;const t=location.pathname;return t.includes("embed-widget")?t.split("/")[2]:t}}}]);