(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[6166],{97754:(e,t)=>{var r;!function(){"use strict";var o={}.hasOwnProperty;function n(){for(var e=[],t=0;t{e.exports={container:"container-kfvcmk8t",centerElement:"centerElement-kfvcmk8t",text:"text-kfvcmk8t"}},43970:e=>{e.exports={container:"container-zLVm6B4t",content:"content-zLVm6B4t",arrowHolder:"arrowHolder-zLVm6B4t","arrowHolder--below":"arrowHolder--below-zLVm6B4t","arrowHolder--above":"arrowHolder--above-zLVm6B4t","arrowHolder--before":"arrowHolder--before-zLVm6B4t","arrowHolder--after":"arrowHolder--after-zLVm6B4t","arrowHolder--above-fix":"arrowHolder--above-fix-zLVm6B4t","arrowHolder--before-rtl-fix":"arrowHolder--before-rtl-fix-zLVm6B4t","arrowHolder--after-ltr-fix":"arrowHolder--after-ltr-fix-zLVm6B4t",label:"label-zLVm6B4t",closeButton:"closeButton-zLVm6B4t"}},9745:(e,t,r)=>{"use strict";r.d(t,{Icon:()=>n});var o=r(50959);const n=o.forwardRef(((e,t)=>{const{icon:r="",title:n,ariaLabel:s,ariaLabelledby:a,ariaHidden:i,...l}=e,d=!!(n||s||a);return o.createElement("span",{role:"img",...l,ref:t,"aria-label":s,"aria-labelledby":a,"aria-hidden":i||!d,title:n,dangerouslySetInnerHTML:{__html:r}})}))},19250:(e,t,r)=>{"use strict";r.d(t,{Portal:()=>d,PortalContext:()=>c});var o=r(50959),n=r(32227),s=r(25931),a=r(67961),i=r(34811),l=r(99663);class d extends o.PureComponent{constructor(){super(...arguments),this._uuid=(0,s.nanoid)()}componentWillUnmount(){this._manager().removeWindow(this._uuid)}render(){const e=this._manager().ensureWindow(this._uuid,this.props.layerOptions);e.style.top=this.props.top||"",e.style.bottom=this.props.bottom||"",e.style.left=this.props.left||"",e.style.right=this.props.right||"",e.style.pointerEvents=this.props.pointerEvents||"";const t=this.props.className;return t&&("string"==typeof t?e.classList.add(t):e.classList.add(...t)),this.props.shouldTrapFocus&&!e.hasAttribute(i.FOCUS_TRAP_DATA_ATTRIBUTE)&&e.setAttribute(i.FOCUS_TRAP_DATA_ATTRIBUTE,"true"),this.props["aria-hidden"]&&e.setAttribute("aria-hidden","true"),n.createPortal(o.createElement(c.Provider,{value:this},this.props.children),e)}moveToTop(){this._manager().moveToTop(this._uuid)}_manager(){return null===this.context?(0,a.getRootOverlapManager)():this.context}}d.contextType=l.SlotContext;const c=o.createContext(null)},99663:(e,t,r)=>{"use strict";r.d(t,{Slot:()=>n,SlotContext:()=>s});var o=r(50959);class n extends o.Component{shouldComponentUpdate(){return!1}render(){return o.createElement("div",{style:{position:"fixed",zIndex:150,left:0,top:0},ref:this.props.reference})}}const s=o.createContext(null)},67961:(e,t,r)=>{"use strict";r.d(t,{OverlapManager:()=>a,getRootOverlapManager:()=>l}) ;var o=r(50151),n=r(34811);class s{constructor(){this._storage=[]}add(e){this._storage.push(e)}remove(e){this._storage=this._storage.filter((t=>e!==t))}has(e){return this._storage.includes(e)}getItems(){return this._storage}}class a{constructor(e=document){this._storage=new s,this._windows=new Map,this._index=0,this._document=e,this._container=e.createDocumentFragment()}setContainer(e){const t=this._container,r=null===e?this._document.createDocumentFragment():e;!function(e,t){Array.from(e.childNodes).forEach((e=>{e.nodeType===Node.ELEMENT_NODE&&t.appendChild(e)}))}(t,r),this._container=r}registerWindow(e){this._storage.has(e)||this._storage.add(e)}ensureWindow(e,t={position:"fixed",direction:"normal"}){const r=this._windows.get(e);if(void 0!==r)return r;this.registerWindow(e);const o=this._document.createElement("div");if(o.style.position=t.position,o.style.zIndex=this._index.toString(),o.dataset.id=e,void 0!==t.index){const e=this._container.childNodes.length;if(t.index>=e)this._container.appendChild(o);else if(t.index<=0)this._container.insertBefore(o,this._container.firstChild);else{const e=this._container.childNodes[t.index];this._container.insertBefore(o,e)}}else"reverse"===t.direction?this._container.insertBefore(o,this._container.firstChild):this._container.appendChild(o);return this._windows.set(e,o),++this._index,o}unregisterWindow(e){this._storage.remove(e);const t=this._windows.get(e);void 0!==t&&(null!==t.parentElement&&t.parentElement.removeChild(t),this._windows.delete(e))}getZindex(e){const t=this.ensureWindow(e);return parseInt(t.style.zIndex||"0")}moveLastWindowToTop(){const e=this._storage.getItems(),t=e[e.length-1];t&&this.moveToTop(t)}moveToTop(e){if(this.getZindex(e)!==this._index){const t=this.ensureWindow(e);this._windows.forEach(((e,r)=>{e.hasAttribute(n.FOCUS_TRAP_DATA_ATTRIBUTE)&&e.setAttribute(n.FOCUS_TRAP_DATA_ATTRIBUTE,e===t?"true":"false")})),t.style.zIndex=(++this._index).toString()}}removeWindow(e){this.unregisterWindow(e)}}const i=new WeakMap;function l(e=document){const t=e.getElementById("overlap-manager-root");if(null!==t)return(0,o.ensureDefined)(i.get(t));{const t=new a(e),r=function(e){const t=e.createElement("div");return t.style.position="absolute",t.style.zIndex=150..toString(),t.style.top="0px",t.style.left="0px",t.id="overlap-manager-root",t.dataset.qaId="overlap-manager-root",t}(e);return i.set(r,t),t.setContainer(r),e.body.appendChild(r),t}}var d;!function(e){e[e.BaseZindex=150]="BaseZindex"}(d||(d={}))},91759:(e,t,r)=>{"use strict";r.r(t),r.d(t,{ChartEventHintRenderer:()=>l});var o=r(50959),n=r(32227),s=r(65551),a=r(22496);function i(e){const{bottomOffset:t,text:r,onClose:n}=e;return o.createElement("div",{className:a.container,style:{bottom:t}},o.createElement("div",{className:a.centerElement},o.createElement(s.TooltipWidget,{arrow:!1,onClose:n},o.createElement("div",{className:a.text},r))))}class l{constructor(e){this.type=0,this._wrap=document.createElement("div"),this._container=e}show(e,t){if(!this._wrap)return;this.hide(),this._container.append(this._wrap) ;const r={text:e,onClose:()=>{t&&t(),this.hide()},bottomOffset:Array.from(this._container.children).reduce(((e,t)=>(t.getAttribute("data-is-chart-toolbar-component")&&(e+=t.clientHeight),e)),32)};n.render(o.createElement(i,{...r}),this._wrap)}hide(){this._wrap&&(n.unmountComponentAtNode(this._wrap),this._wrap.remove())}destroy(){this.hide(),delete this._wrap}}},65718:(e,t,r)=>{"use strict";r.d(t,{Portal:()=>o.Portal,PortalContext:()=>o.PortalContext});var o=r(19250)},65551:(e,t,r)=>{"use strict";r.d(t,{TooltipWidget:()=>c,TooltipWizard:()=>d});var o=r(50959),n=r(97754),s=r(9745),a=r(65718),i=r(33765),l=r(43970);class d extends o.PureComponent{render(){const{children:e,popperChildrenProps:t,onClose:r,reference:s,containerClassName:i,arrowClassName:d,role:h}=this.props;return o.createElement(a.Portal,null,o.createElement("div",{ref:s},o.createElement(c,{reference:t.ref,style:t.style,arrowClassName:n(l.arrowHolder,this._getArrowDirectionClass(),d),arrowReference:t.arrowProps.ref,arrowStyle:t.arrowProps.style,"data-placement":t.placement,onClose:r,containerClassName:i,role:h},e)))}_getArrowDirectionClass(){const{popperChildrenProps:e}=this.props;switch(e.placement){case"left":case"left-start":return n(l["arrowHolder--after"],l["arrowHolder--after-ltr-fix"]);case"top":return n(l["arrowHolder--above"],l["arrowHolder--above-fix"]);case"bottom":case"bottom-start":case"bottom-end":return l["arrowHolder--below"];default:return n(l["arrowHolder--before"],l["arrowHolder--before-rtl-fix"])}}}function c(e){const{className:t,containerClassName:r,contentClassName:a,reference:d,style:c,arrow:h=!0,arrowClassName:p,arrowReference:m,onClose:u,arrowStyle:f,children:w,role:_,...v}=e;return o.createElement("div",{...v,className:t,ref:d,style:c,"data-role":_},h&&o.createElement("div",{className:p,ref:m,style:f}),o.createElement("div",{className:n(l.container,r)},o.createElement("div",{className:n(l.content,a)},w),u&&o.createElement(s.Icon,{className:l.closeButton,icon:i,onClick:u})))}},33765:e=>{e.exports=''},25931:(e,t,r)=>{"use strict";r.d(t,{nanoid:()=>o});let o=(e=21)=>crypto.getRandomValues(new Uint8Array(e)).reduce(((e,t)=>e+=(t&=63)<36?t.toString(36):t<62?(t-26).toString(36).toUpperCase():t>62?"-":"_"),"")}}]);