(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[49497,82869],{188746:t=>{t.exports={}},424390:t=>{t.exports={}},217041:(t,e,s)=>{"use strict";s.d(e,{quoteTickerFormatChange:()=>l});var i=s(624444),o=s(943994),n=s(106368),a=s(572570);function l(t,e,s){const l=(0,a.toNumberOrUndefined)(t);if("economic"===(null==e?void 0:e.type)&&0===l||void 0===l)return;const r=(null==s?void 0:s.customPriceFormatter)||"volume"===e.format&&new o.VolumeFormatter(2)||new i.PriceFormatter(e.pricescale||100,e.minmov||1,e.fractional,e.minmove2),h=void 0!==(null==s?void 0:s.signPositiveChange)?s.signPositiveChange:null==s?void 0:s.signPositive,c=r.format(l,h,void 0,null==s?void 0:s.signNegative);return(0,n.wrapWithParentheses)(c,null==s?void 0:s.changeInBrackets)}},106368:(t,e,s)=>{"use strict";s.d(e,{wrapWithParentheses:()=>i});const i=(t,e=!0)=>e?`(${t})`:t},572570:(t,e,s)=>{"use strict";function i(t){if(null!=t&&"boolean"!=typeof t&&!isNaN(Number(t)))return Number(t)}s.d(e,{toNumberOrUndefined:()=>i})},780792:(t,e,s)=>{"use strict";s.d(e,{AbstractIndicator:()=>l});var i=s(201089),o=s(541558),n=s(876332);s(673747);const a=(0,i.getLogger)("GUI.Blocks.AbstractIndicator");class l{constructor(t){this._classSuffix="",this._quoteSessionPrefix="abstract-indicator",this._shortMode=!1,this._showTooltip=!0,this._subscribed=!1,this._tooltipType="custom",this._lastTooltipText="",this._quoteSession=t.quoteSession}getValue(){return this._value}getTooltipText(){return this._labelMap[this._value]||""}getLabel(){return this._labelMap[this._value]||""}getElement(){return this._el}update(t,e){this._updateValue(t,e),this._render()}setTooltipEnabled(t=!1){this._showTooltip!==t&&(this._showTooltip=t,this._renderTooltip())}enableShortMode(){!0!==this._shortMode&&(this._shortMode=!0,this._render())}disableShortMode(){!1!==this._shortMode&&(this._shortMode=!1,this._render())}isShortModeEnabled(){return this._shortMode}start(){!this._subscribed&&this._symbolName&&(this._quoteSession||(this._quoteSession=(0,n.getQuoteSessionInstance)("simple")),this._quoteSession.subscribe(this._getQuoteSessionId(),this._symbolName,this.update.bind(this)),this._subscribed=!0)}stop(){this._subscribed&&this._quoteSession&&this._symbolName&&(this._quoteSession.unsubscribe(this._getQuoteSessionId(),this._symbolName),this._subscribed=!1)}setSessionStatusIcon(t){this._sessionStatusIcon!==t&&(this._sessionStatusIcon=t,this._render())}_init(t){this._el=t.el?t.el:document.createElement("span"),this._el.innerHTML="",this._classMap=t.classMap,this._iconClassMap=t.iconClassMap,this._labelMap=t.labelMap,this._showTooltip=t.showTooltip,this._classSuffix=t.classSuffix,this._symbolName=t.symbol,this._sessionStatusIcon=t.sessionStatusIcon,this._onValueChange=t.onValueChange,t.tooltipType&&(this._tooltipType=t.tooltipType),this._quoteSessionGUID=(0,o.guid)(),!0===t.short&&this.enableShortMode(),t.data&&this._updateValue(t.data)}_clearClasses(){Object.values(this._classMap).map((t=>{this._el.classList.remove(`${t}`),this._el.classList.remove(`${t}${this._classSuffix}`)}))} _render(){this._renderClasses(),this._renderTooltip(),this._renderLabel()}_renderLabel(){this._el.textContent=this.getLabel()}_updateValue(t,e){var s;const i=this._getValueFromData(t);(e||i!==this._value)&&(this._value=i,null===(s=this._onValueChange)||void 0===s||s.call(this,this._value))}_renderClasses(){const t=this._el.classList;t.add(this._componentClass,this._componentClass+this._classSuffix);const e=this._classMap[this._value];for(const s in this._classMap){const i=this._classMap[s];i&&(i===e?(t.add(i,i+this._classSuffix),this._sessionStatusIcon&&t.add(i+"__withIcon")):(t.remove(i,i+this._classSuffix),this._sessionStatusIcon&&t.remove(i+"__withIcon")))}!e&&this._value&&a.logWarn(`no className for status ${this._value}`)}_renderTooltip(){const t=this._showTooltip?this.getTooltipText():"";t!==this._lastTooltipText&&(this._lastTooltipText=t,this._el.setAttribute("title",t),"custom"===this._tooltipType&&this._el.classList.toggle("apply-common-tooltip",this._showTooltip))}_getQuoteSessionId(){return`${this._quoteSessionPrefix}.${this._quoteSessionGUID}`}}},600303:(t,e,s)=>{"use strict";s.d(e,{MarketStatusIndicator:()=>l});var i=s(444372),o=(s(424390),s(780792));const n={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"},a={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 l extends o.AbstractIndicator{constructor(t){super(t),this._quoteSessionPrefix="market-status-indicator",this._componentClass="tv-market-status",this._extraTitle="",this._init(t)}setStatus(t,e){const s={values:{current_session:"delisted"===this.getValue()?"delisted":t}};this.update(s,e)}getTooltipText(){let t=super.getTooltipText();return""===t||""!==this._extraTitle&&(t=`${t}, ${this._extraTitle}`),t}setExtraTitle(t){this._extraTitle=t}reset(){this._clearClasses(),this._labelEl.textContent="",this._extraTitle="",this._el.setAttribute("title",""),this._value=""}enableShortMode(t=!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(t){var e,s,i;return(null===(s=null===(e=t.values)||void 0===e?void 0:e.typespecs)||void 0===s?void 0:s.includes("discontinued"))?"delisted":void 0!==(null===(i=t.values)||void 0===i?void 0:i.current_session)?t.values.current_session:this.getValue()} _render(){this._renderLabelElement(),this._sessionStatusIcon?this._renderIconElement():this._renderDotElement(),super._render()}_init(t){const e=Object.assign({},function(){const t={invalid:i.t(null,void 0,s(132619)),market:i.t(null,void 0,s(383949)),out_of_session:i.t(null,void 0,s(895814)),post_market:i.t(null,void 0,s(429985)),pre_market:i.t(null,void 0,s(356042)),loading:i.t(null,void 0,s(25911)),holiday:i.t(null,void 0,s(988958)),delisted:i.t(null,void 0,s(389905)),replay:""};return{classMap:n,iconClassMap:a,classSuffix:"",data:{},extraTitle:"",labelMap:t,short:!1,showTooltip:!0,tooltipType:"custom"}}(),t);super._init(e),this.setExtraTitle(e.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(){this._el.contains(this._iconEl)&&this._el.removeChild(this._iconEl),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(){this._el.contains(this._dotEl)&&this._el.removeChild(this._dotEl),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))}}},198281:(t,e,s)=>{"use strict";s.d(e,{isMcxQuoteData:()=>o});var i=s(712787);function o(t){var e;return!!t&&((0,i.isMcxFlag)(t.symbolname)||"permission_denied"===t.status&&(0,i.isMcxFlag)(null===(e=t.values)||void 0===e?void 0:e.alternative))}},946213:(t,e,s)=>{"use strict";s.d(e,{isSfQuoteData:()=>o});var i=s(178100);function o(t){return!!t&&(!(void 0===t.symbolname||!(0,i.isSfFlag)(t.symbolname))||Boolean("permission_denied"===t.status&&t.values&&void 0!==t.values.alternative&&(0,i.isSfFlag)(t.values.alternative)))}},712787:(t,e,s)=>{"use strict";s.d(e,{isMcxFlag:()=>o});var i=s(416234);function o(t){return t===i.SymbolGroup.McxFlag}},178100:(t,e,s)=>{"use strict";function i(t){return t.endsWith("_dly")}s.d(e,{isSfFlag:()=>i})},416234:(t,e,s)=>{"use strict";s.d(e,{SymbolGroup:()=>i});var i;s(586463),s(444372);!function(t){t.NseFlag="nse_free",t.McxFlag="mcx_free"}(i||(i={}))},497981:(t,e,s)=>{"use strict";s.d(e,{PriceColorer:()=>i});var i,o=s(81979),n=s(790188);!function(t){function e(t,e){return 0===t?e&&void 0!==e.neutral?e.neutral:o.color.black70:t>0?e&&void 0!==e.up?e.up:n.colorsPalette["color-success"]:e&&void 0!==e.down?e.down:n.colorsPalette["color-danger"]}t.formatSign=e,t.formatDiff=function(t,s){return e(s-t)},t.domDifference=function(t,e,s=0,i="",o=""){function n(t){const e=document.createElement("span");return e.innerHTML=t,e}const a=document.createElement("div");if(!s)return a.appendChild(n(t)),a ;const l=t+"",r=e+"";let h=null;if(l.length===r.length){for(let t=0;t{"use strict";s.d(e,{QuoteTicker:()=>x});var i=s(329806),o=s(201089),n=s(389137),a=s(541346),l=s(497981),r=s(624444),h=s(943994),c=s(600303),_=s(719240),d=s(665570),u=s(955255),m=s(876332),p=s(217041),g=s(198281),f=s(946213);const v=(0,o.getLogger)("QuoteTicker"),b={addDescriptionTitle:!0,changeDirectionDownClass:"down",changeDirectionUpClass:"up",changeDirectionNeutralClass:"neutral",changeInBrackets:!1,changePercentInBrackets:!1,lastPriceTimeInBrackets:!0,lastReleaseDateTimeInBrackets:!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},y=/[KMBT]/;function x(t,e,s={}){this.enabled=!0,this._symbol=t,this._symbolOriginal=null,this._options=(0,i.deepExtend)({},b,s),!1!==this._options.signNegative&&!0!==this._options.signNegative&&delete this._options.signNegative,s.customPriceFormatter&&(this._customPriceFormatter=s.customPriceFormatter),s.customTimeFormatter&&(void 0!==s.customTimeFormatter.lastPrice||void 0!==s.customTimeFormatter.rtc?this._timeFormatter=s.customTimeFormatter:this._timeFormatter={lastPrice:s.customPriceFormatter,rtc:s.customPriceFormatter}),this._percentFormatter=new a.PercentageFormatter,this._defaultPriceFormatter=new r.PriceFormatter(100),this._priceFormatter=this._customPriceFormatter||this._defaultPriceFormatter,this._volumeFormatter=new h.VolumeFormatter(2),this._cache={},this._lastPrice=null,this._lastPriceFormatted="",this._elements={},this._textNodes={},this._changeVolumeLetter=this._getChangeVolumeLetterCallback(),this._setElements(e),this._highlighters={},this._initHighlighters(),this._options.setStateHook&&this.setStateHook(this._options.setStateHook),this.quoteSession=this._options.quoteSession||(0,m.getQuoteSessionInstance)("simple"),this._quoteSessionEventHandler=this.onData.bind(this),this._connectTimeoutId=setTimeout(this.connect.bind(this),0)}function N(t){const e=t.search(y),s=e>=0?t.slice(e):"";return[e>0?t.substring(e,0):0===e?"":t,s]}function C(t,e,s,i,o){var n,a=null;function l(){if(n&&(clearTimeout(n),n=void 0),s||e)for(var a=0;at.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(t,"js-symbol-open"),this._textNodes.eps=this._findTextNodes(t,"js-symbol-eps"),this._textNodes.marketCap=this._findTextNodes(t,"js-symbol-market-cap"),this._textNodes.prevClose=this._findTextNodes(t,"js-symbol-prev-close"),this._textNodes.dividends=this._findTextNodes(t,"js-symbol-dividends"),this._textNodes.priceEarnings=this._findTextNodes(t,"js-symbol-pe"),this._textNodes.volume=this._findTextNodes(t,"js-symbol-volume"),this._textNodes.high=this._findTextNodes(t,"js-symbol-high"),this._textNodes.low=this._findTextNodes(t,"js-symbol-low"),this._textNodes.currency=this._findTextNodes(t,"js-symbol-currency"),this._textNodes.lastPriceTime=this._findTextNodes(t,"js-symbol-lp-time"),this._textNodes.lastReleaseDate=this._findTextNodes(t,"js-symbol-last-release-date"),this._textNodes.rtcTime=this._findTextNodes(t,"js-symbol-rtc-time"), this._elements.lastHighlight=this._options.lastPriceHighlightDiffOnly?this._elements.last.map((t=>this._appendAndGetNewElement(t,"span"))):this._elements.last,this._textNodes.lastHighlight=this._getOrCreateTextNodes(this._elements.lastHighlight),this._elements.lastSup=this._options.lastPriceLastCharSup?this._elements.lastHighlight.map((t=>this._appendAndGetNewElement(t,"sup"))):[],this._textNodes.lastSup=this._getOrCreateTextNodes(this._elements.lastSup)},x.prototype._findElements=function(t,e){var s=(0,n.isArray)(e)?e:[e];return Array.prototype.concat.apply([],s.map((e=>Array.prototype.slice.call(t.getElementsByClassName(e)))))},x.prototype._findTextNodes=function(t,e){return this._getOrCreateTextNodes(this._findElements(t,e))},x.prototype._getOrCreateTextNodes=function(t){return t.map((t=>{var e=this._getFirstTextNode(t);return e||(e=t.ownerDocument.createTextNode(""),t.appendChild(e)),e}))},x.prototype._appendAndGetNewElement=function(t,e){const s=document.createElement(e);return t.appendChild(s),s},x.prototype._getFirstTextNode=function(t){for(var e=t.childNodes,s=e.length-1;s>=0;s--)if(3===e.item(s).nodeType)return e.item(s);return null},x.prototype.connect=function(t){this._subscribed||(this._subscribedSymbol=t||this._symbol,this.quoteSession.subscribe(this._options.clientName,this._subscribedSymbol,this._quoteSessionEventHandler),this._subscribed=!0)},x.prototype.disconnect=function(){clearTimeout(this._connectTimeoutId),this._subscribed&&(this.quoteSession.unsubscribe(this._options.clientName,this._subscribedSymbol,this._quoteSessionEventHandler),this._subscribed=!1)},x.prototype.onData=function(t,e){this.enabled&&("ok"===t.status?this.successData(t,e):"permission_denied"===t.status?this.onPermissionDenied(t):"error"===t.status&&this.errorData(t))},x.prototype.successData=function(t,e){t.values&&this.setState(t.values,t,e)},x.prototype.onPermissionDenied=function(t){(0,f.isSfQuoteData)(t)||(0,g.isMcxQuoteData)(t)?this._options.permissionDeniedHook?this._options.permissionDeniedHook(t,this._symbolOriginal||this._symbol):this.errorData(t):this.downgradeData(t)},x.prototype.errorData=function(t){this._options.showInvalidSymbolStatus&&(this.setShortName(this._symbol),this._elements.sessionStatus.map((t=>new c.MarketStatusIndicator({classSuffix:this._options.sessionStatusClassSuffix,el:t,data:{values:{current_session:"invalid"}},tooltipType:this._options.indicatorsTooltipType})))),this._options.noSuchSymbolHook?(this._symbolOriginal&&this.setShortName(this._symbolOriginal),this._options.noSuchSymbolHook.call(this,t,this._symbolOriginal||this._symbol)):v.logWarn("No data for: "+this._symbol)},x.prototype.downgradeData=function(t){{const e=t&&t.values&&t.values.alternative,s=this._symbol===e;if(!(e&&-1!==e.indexOf(":"))||s)return void this.errorData(t);this._symbolOriginal=this._symbol,this._symbol=e,this._subscribed=!1,this.connect()}},x.prototype.setState=function(t,e,i){const o=i.values;this._isVolumeFormat="volume"===t.format, null==o.pricescale&&null==o.minmov&&null==o.fractional&&null==o.minmove2||(this._priceFormatter=this._customPriceFormatter||this._isVolumeFormat&&this._volumeFormatter||new r.PriceFormatter(t.pricescale||100,t.minmov||1,t.fractional,t.minmove2));const n=this._options,a=this._percentFormatter,l=this._priceFormatter,m=this._defaultPriceFormatter,g=this._volumeFormatter,f=(t,e=!0)=>e?`(${t})`:t,b=void 0!==n.signPositiveChange?n.signPositiveChange:n.signPositive,y=t=>(0,p.quoteTickerFormatChange)(t,o,n),x=t=>{const e=a.format(t,b,void 0,n.signNegative);return f(e,n.changePercentInBrackets)},N=l.format.bind(l),C=m.format.bind(m),S=g.format.bind(g),T=t=>null==t?h.PLACE_HOLDER:C(t);n.disableChange||(this._setNodesValue(this._textNodes.change,o.change,y),this._setNodesValue(this._textNodes.changePercent,o.change_percent,x),null!=o.change&&(n.dontDyePrice||this._setChangeFontColor([].concat(this._elements.change,this._elements.changePercent),o.change,n.changeUpFontColor,n.changeDownFontColor,n.changeNeutralFontColor),this._setChangeDirection(this._elements.changeDirection,o.change)),this._setNodesValue(this._textNodes.extHrsChange,o.rch,y),this._setNodesValue(this._textNodes.extHrsChangePercent,o.rchp,x),null!=o.rch&&(n.dontDyePrice||this._setChangeFontColor([].concat(this._elements.extHrsChange,this._elements.extHrsChangePercent),o.rch,n.changeUpFontColor,n.changeDownFontColor,n.changeNeutralFontColor),this._setChangeDirection(this._elements.extHrsChangeDirection,o.rch))),this._setNodesValue(this._textNodes.prevClose,o.prev_close_price,N),this._setNodesValue(this._textNodes.dividends,t.dividends_yield,(t=>null==t?h.PLACE_HOLDER:a.format(t,n.signPositive,void 0,n.signNegative)),!0);let k=(0,d.getTranslatedSymbolDescription)(o);if(k&&(k=this._prepareSymbolDescription(k),this._setTextsContent(this._elements.description,k),this._options.addDescriptionTitle))for(var E=0;E{this._setTextsContent(this._elements.lastPeriod,e.periodFormatter(t["reference-last-period"]))})),this._elements.lastPeriod.length&&void 0===t["reference-last-period"]&&this._setTextsContent(this._elements.lastPeriod,"—"),this._setLastValue(o.last_price,N),this._setNodesValue(this._textNodes.extHrsClose,o.rtc,N),o.rtc&&this._highlighters.extHrsClose.show(o.rtc),o.industry&&this._setTextsContent(this._elements.industry,t.industry,(t=>t)),o.sector&&this._setTextsContent(this._elements.sector,t.sector),this._elements.sessionStatus&&o.current_session&&(this._sessionStatusInstances?this._sessionStatusInstances.forEach((t=>t.setStatus(o.current_session))):this._sessionStatusInstances=this._elements.sessionStatus.map((e=>new c.MarketStatusIndicator({ classSuffix:this._options.sessionStatusClassSuffix,el:e,short:!0,data:{values:o},quoteSession:this.quoteSession,symbol:t.original_name,manualUpdate:!0,tooltipType:this._options.indicatorsTooltipType,sessionStatusIcon:this._options.sessionStatusIcon})))),this._setNodesValue(this._textNodes.open,o.open_price,N),this._setNodesValue(this._textNodes.high,o.high_price,N),this._setNodesValue(this._textNodes.low,o.low_price,N),this._setNodesValue(this._textNodes.eps,t.earnings_per_share_basic_ttm,T,!0),this._setNodesValue(this._textNodes.priceEarnings,t.price_earnings_ttm,T,!0),this._setNodesValue(this._textNodes.marketCap,t.market_cap_basic,S,!0),this._setNodesValue(this._textNodes.volume,t.volume,S,!0);const F=(0,u.prepareCurrencyValue)(o);if(F&&this._setNodesValue(this._textNodes.currency,F,null,!0),(o.lp_time||t.lp_time)&&this._textNodes.lastPriceTime.length&&(this._timeFormatter&&this._timeFormatter.lastPrice?this._setNodesValue(this._textNodes.lastPriceTime,f(this._timeFormatter.lastPrice(t.lp_time,t.current_session),this._options.lastPriceTimeInBrackets)):v.logError("last price time field requested with no formatter provided")),(o.last_release_date||t.last_release_date)&&this._textNodes.lastReleaseDate.length&&(this._timeFormatter&&this._timeFormatter.lastReleaseDate?this._setNodesValue(this._textNodes.lastReleaseDate,f(this._timeFormatter.lastReleaseDate(t.last_release_date,t.current_session),this._options.lastReleaseDateTimeInBrackets)):v.logError("lastReleaseDate time field requested with no formatter provided")),(o.rtc_time||t.rtc_time)&&this._textNodes.rtcTime.length&&(this._timeFormatter&&this._timeFormatter.rtc?this._setNodesValue(this._textNodes.rtcTime,f(this._timeFormatter.rtc(t.rtc_time,t.current_session),this._options.rtcTimeInBrackets)):v.logError("rtc time field requested with no formatter provided")),null!=o.last_price)for(E=0;Ee.update({values:t}))):this._updateModeInstances=this._elements.updateMode.map((e=>new _.DataModeIndicator({classSuffix:this._options.dataModeClassSuffix,el:e,data:{values:t},modeInterval:t.update_mode_seconds,short:!0,tooltipType:this._options.indicatorsTooltipType})))),this._setStateHook&&this._setStateHook(e.values,i.values,e.complete,this.getOptions()),this._lastPrice?this._highlighters.last.show(t.last_price):null===this._lastPrice&&(this._container.classList.add("quote-ticker-inited"),"function"==typeof this._options.initedHook&&this._options.initedHook("last_price"in t)),this._lastPrice=t.last_price},x.prototype._setNodesValue=function(t,e,s,i){if(null!=e||i)for(var o="function"==typeof s?s(e):e,n=0;n{3!==e.childNodes.length?e.appendChild(document.createTextNode(t)):e.childNodes[2].nodeValue=t})))}},x.prototype._getLastValueStringDiff=function(t,e){if(t===e){const[t,s]=N(e);return[t,"",s]}let s=0;for(;t[s]===e[s];)s++;const[i,o]=N(e.slice(s));return[e.slice(0,s),i,o]},x.prototype._setChangeFontColor=function(t,e,s,i,o){for(var n=l.PriceColorer.formatSign(e,{up:s,down:i,neutral:o}),a=0;a0),i.toggle(this._options.changeDirectionDownClass,e<0),i.toggle(this._options.changeDirectionNeutralClass,0===e)}},x.prototype.setShortName=function(t=""){this._setTextsContent(this._elements.shortName,t)},x.prototype._prepareSymbolDescription=function(t){var e=this._getCache("symbol-description:"+t);return e||(e=t,this._setCache("symbol-description:"+t,e),e)},x.prototype._initHighlighters=function(){this._highlighters.last=new C(this._elements.lastHighlight,this._options.growingBg,this._options.fallingBg,this._options.lastGrowingClass,this._options.lastFallingClass),this._highlighters.extHrsClose=new C(this._elements.extHrsClose,this._options.growingBg,this._options.fallingBg,this._options.lastGrowingClass,this._options.lastFallingClass)},x.prototype.disable=function(){this.enabled=!1,this.disconnect()},x.prototype.enable=function(){this.enabled=!0,this.connect()},x.prototype.setStateHook=function(t){null===t&&this._setStateHook?delete this._setStateHook:"function"==typeof t&&(this._setStateHook=t)},x.prototype._setCache=function(t,e){null==e?delete this._cache[t]:this._cache[t]=e},x.prototype._getCache=function(t){return this._cache&&this._cache[t]},x.prototype.getOptions=function(){return this._options}},665570:(t,e,s)=>{"use strict";s.d(e,{getTranslatedSymbolDescription:()=>n});var i=s(444372);function o(t){const e=`#${t}-symbol-description`,o=i.t(e,void 0,s(118562));return o===e?null:o}function n(t){if(void 0!==t.pro_name){const e=o(t.pro_name);if(null!==e)return e;if(void 0!==t.short_name){const e=o(t.short_name);if(null!==e)return e}}return"en"!==t.language&&void 0!==t.local_description&&t.language===window.language||"en"===t.language&&void 0!==t.local_description&&t.language===window.language?t.local_description:t.description||""}},955255:(t,e,s)=>{"use strict";function i(t){ let e=[];const s=t.currency_code||t.value_unit_id;switch(t.measure){case"price":e=[s,t.unit_id];break;case"unit":e=["PCT"===s?"%":s,t.unit_id];break;default:e=["PCT"===s?"%":s]}return e.filter(Boolean).join(" / ")}s.d(e,{prepareCurrencyValue:()=>i})}}]);