"use strict";(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[85778],{607423:(e,t,n)=>{n.d(t,{isNativeUIInteraction:()=>r});var s=n(591800);function o(e){if("INPUT"===e.tagName){const t=e.type;return"text"===t||"email"===t||"number"===t||"password"===t||"search"===t||"tel"===t||"url"===t}return"TEXTAREA"===e.tagName||e.isContentEditable}function r(e,t){if(!t)return!1;const n=255&e;if(27===n||n>>>4==7)return!1;switch(e^n){case s.Modifiers.Alt:return(38===n||40===n)&&"SELECT"===t.tagName||o(t);case s.Modifiers.Alt+s.Modifiers.Shift:return o(t);case s.Modifiers.Mod:if(67===n||!s.isMacKeyboard&&45===n){const e=t.ownerDocument&&t.ownerDocument.getSelection();if(e&&!e.isCollapsed)return!0}return o(t);case s.Modifiers.Mod+s.Modifiers.Shift:return n>=33&&n<=40&&o(t);case s.Modifiers.Shift:case 0:return 9===n?!(!t.ownerDocument||t===t.ownerDocument.body||t===t.ownerDocument.documentElement):(!function(e){if("BUTTON"===e.tagName)return!0;if("INPUT"===e.tagName){const t=e.type;if("submit"===t||"button"===t||"reset"===t||"checkbox"===t||"radio"===t)return!0}return!1}(t)||13===n||32===n||9===n)&&("form"in t||t.isContentEditable)}return!1}},336748:(e,t,n)=>{n.d(t,{colorsPalette:()=>h});var s=n(330120),o=n(559419),r=n(650151);const i={...s,...o},a={},c=Object.keys(i).length,l=/^#(([a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i;function u(e,t=[],n=i){const s=n[e];if(!s)return null;if(l.test(s))return s;const o=s;return t.push(e),-1!==t.indexOf(o)?(console.warn("Colors definitions cycled"),s):t.length>c?(console.warn("Too many variables-link in HEX-color search: "+t[0]),null):u(o,t,n)}Object.keys(i).forEach((e=>{const t=u(e);a[e]=(0,r.ensureNotNull)(t)}));const h=a},790188:(e,t,n)=>{n.d(t,{colorsPalette:()=>s.colorsPalette});var s=n(336748)},604286:(e,t,n)=>{n.d(t,{hotKeyDeserialize:()=>o});var s=n(919476);function o(e){return JSON.parse((0,s.decodeHTMLEntities)(e))}},401580:(e,t,n)=>{n.d(t,{WatchedValue:()=>c});var s=n(428123),o=n(194582),r=n(805377);const i=(0,o.getLogger)("Common.WatchedValue");function a(e){i.logError(`${e&&(e.stack||e.message)}`)}class c{constructor(...e){this._listeners=[],e.length>0&&(this._value=e[0])}destroy(){this.unsubscribe()}value(){return this._owner?this._owner._value:this._value}setValue(e,t){const n=this._owner?this._owner:this;if("function"==typeof n.hook&&(e=n.hook(e)),n.writeLock)return;const s=n._value===e||Number.isNaN(n._value)&&Number.isNaN(e);if(!t&&s&&n.hasOwnProperty("_value"))return;n._value=e;const o=n._listeners.slice();let r=0;for(let t=0;tthis.spawn(e).readonly(),destroy:this.destroy.bind(this)};return this._readonlyInstance=e,e}spawn(e){return new l(this._owner||this,e)}when(e){(0,r.callWhen)(this,(e=>Boolean(e)),(()=>{try{e(this.value())}catch(e){a(e)}}))}assertNoSubscriptions(){0}ownership(){return(0,s.ownership)(this)}spawnOwnership(){return(0,s.ownership)(this.spawn())}weakReference(){return(0,s.weakReference)(this)}}class l extends c{constructor(e,t){super(),delete this._listeners,this._owner=e,this._onDestroy=t}destroy(){var e;try{null===(e=this._onDestroy)||void 0===e||e.call(this)}catch(e){a(e)}super.destroy()}readonly(){return super.readonly()}}},503344:(e,t,n)=>{n.d(t,{makeSymbolPageUrl:()=>f,makeTemplateSymbolUrl:()=>m});var s=n(42398),o=n(239589),r=n(691239),i=n(889267),a=n(519073);function c(e){const t={...e};if("spread"===t.type||"expression"===t.type){const e=t.shortName&&l(t.shortName),n=t.proName&&l(t.proName);t.type=void 0,t.shortName=e,t.proName=n}return t}function l(e){var t;return null===(t=(0,i.tokenize)(e).find((e=>"symbol"===e.type)))||void 0===t?void 0:t.value}function u(e){const t={shortName:e.shortName,exchange:e.exchange,proName:e.proName,type:e.type,typespecs:e.typespecs,root:e.root};return t.proName&&t.proName.includes(":")&&([t.exchange,t.shortName]=t.proName.split(":")),t}function h(e,t){const n=encodeURIComponent(t.shortName||""),s=encodeURIComponent(t.exchange||""),o=encodeURIComponent(t.proName||""),r=encodeURIComponent(t.root||"");return e.replace("{tvexchange}",s).replace("{tvsymbol}",n).replace("{tvprosymbol}",o).replace("{tvroot}",r)}function d(e,t=""){const n=u(e),{type:s,typespecs:o,shortName:r,proName:i,exchange:c,root:l}=n;return void 0===r&&void 0===i?(console.warn("Params missed"),"/"):s||o?"commodity"===s&&o&&o.includes("cfd")?"/symbols/{tvsymbol}/?exchange={tvexchange}":!l||!o||"futures"!==s||o.includes("continuous")&&(null==r?void 0:r.endsWith("1!"))||o.includes("exchange-continuous")?c&&("forex"===s||o&&(0,a.hasCryptoTypespec)(o))?"/symbols/{tvsymbol}/?exchange={tvexchange}":c?`/symbols/{tvexchange}-{tvsymbol}/${t}`:`/symbols/{tvsymbol}/${t}`:`/symbols/{tvexchange}-{tvroot}1!/${t}?contract={tvsymbol}`:c?`/symbols/{tvexchange}-{tvsymbol}/${t}`:`/symbols/{tvsymbol}/${t}`}function m(e,t){let n=e;if(!/{tvsymbol}|{tvexchange}|{tvprosymbol}/.test(e)){let s="tvprosymbol";void 0===t.proName&&(s="tvsymbol"),n=`${e}?tvwidgetsymbol={${s}}`}const s=h(n,u(c(t)));if(!(0,r.isSafeUrl)(s))throw new Error(`The symbol URL ${s} is not allowed.`);return s}function p(e,t,n,r){const i=(window.locale_domains?(0,o.determineBaseUrl)(window.locale_domains,r):window.location.origin)+h(e,u(c(t))) ;return n?(0,s.addUtmToUrl)(i,n):i}function f(e,t,n,s){const o=c(e);return p(d(o,s),o,t,n)}},777466:(e,t,n)=>{function s(e){e.preventDefault()}n.d(t,{preventDefault:()=>s})}}]);