(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[8020],{27267:(t,e,r)=>{"use strict";function n(t,e,r,n,o){function i(o){if(t>o.timeStamp)return;const i=o.target;void 0!==r&&null!==e&&null!==i&&i.ownerDocument===n&&(e.contains(i)||r(o))}return o.click&&n.addEventListener("click",i,!1),o.mouseDown&&n.addEventListener("mousedown",i,!1),o.touchEnd&&n.addEventListener("touchend",i,!1),o.touchStart&&n.addEventListener("touchstart",i,!1),()=>{n.removeEventListener("click",i,!1),n.removeEventListener("mousedown",i,!1),n.removeEventListener("touchend",i,!1),n.removeEventListener("touchstart",i,!1)}}r.d(e,{addOutsideEventListener:()=>n})},36383:(t,e,r)=>{"use strict";r.d(e,{useOutsideEvent:()=>i});var n=r(50959),o=r(27267);function i(t){const{click:e,mouseDown:r,touchEnd:i,touchStart:u,handler:s,reference:c,ownerDocument:a=document}=t,l=(0,n.useRef)(null),f=(0,n.useRef)(new CustomEvent("timestamp").timeStamp);return(0,n.useLayoutEffect)((()=>{const t={click:e,mouseDown:r,touchEnd:i,touchStart:u},n=c?c.current:l.current;return(0,o.addOutsideEventListener)(f.current,n,s,a,t)}),[e,r,i,u,s]),c||l}},95257:(t,e)=>{"use strict";var r=Symbol.for("react.element"),n=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),c=Symbol.for("react.context"),a=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),f=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),p=Symbol.iterator;var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m=Object.assign,_={};function y(t,e,r){this.props=t,this.context=e,this.refs=_,this.updater=r||h}function v(){}function w(t,e,r){this.props=t,this.context=e,this.refs=_,this.updater=r||h}y.prototype.isReactComponent={},y.prototype.setState=function(t,e){if("object"!=typeof t&&"function"!=typeof t&&null!=t)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,t,e,"setState")},y.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")},v.prototype=y.prototype;var E=w.prototype=new v;E.constructor=w,m(E,y.prototype),E.isPureReactComponent=!0;var C=Array.isArray,b=Object.prototype.hasOwnProperty,S={current:null},I={key:!0,ref:!0,__self:!0,__source:!0};function k(t,e,n){var o,i={},u=null,s=null;if(null!=e)for(o in void 0!==e.ref&&(s=e.ref),void 0!==e.key&&(u=""+e.key),e)b.call(e,o)&&!I.hasOwnProperty(o)&&(i[o]=e[o]);var c=arguments.length-2;if(1===c)i.children=n;else if(1{"use strict";t.exports=r(95257)},46315:t=>{t.exports={css_value_arrow_size:"13",tooltip:"tooltip-eSLcXvvL",show:"show-eSLcXvvL",right:"right-eSLcXvvL"}},49844:t=>{t.exports={text:"text-hF57_4zZ"}},5972:(t,e,r)=>{"use strict";r.r(e),r.d(e,{TooltipRenderer:()=>c});var n=r(50959),o=r(962),i=r(36383),u=r(46315);const s=parseInt(u.css_value_arrow_size);class c{constructor(t){this._container=null,this._props=null,this._deferredActions={hideItemTime:0},this._updatePosition=()=>{if(null===this._props||null===this._container)return;const{width:t,height:e}=this._tooltipContainer.getBoundingClientRect(),r=this._container.getBoundingClientRect(),n=Math.round(this._props.itemSize/2),o=Math.min(8,n);let i=!1,c=this._props.x-t-n-s-o;c<0&&(c=this._props.x+n+s+o,i=!0);const a=r.height;let l=Math.max(0,this._props.y-e/2);l>0&&(l=Math.min(l,a-e)),this._tooltipContainer.classList.toggle(u.right,i),this._tooltipContainer.style.top=`${l}px`,this._tooltipContainer.style.left=`${c}px`},this._tooltipFactory=t,this._tooltipContainer=document.createElement("div"),this._tooltipContainer.classList.add(u.tooltip)}destroy(){this._unmountComponent()}contains(t){return this._tooltipContainer.contains(t)}hide(t){this._deferredActions.hideItemTime=performance.now(),this._clearTimeouts(),t?this._tooltipContainer.classList.remove(u.show):this._deferredActions.hideItemTimerId=setTimeout((()=>{this._tooltipContainer.classList.remove(u.show)}),100)}show(t){this._clearTimeouts(),performance.now()this._showImpl(t)),400)} _showImpl(t){this._props=t,this._render(t),this._clearTimeouts(),this._tooltipContainer.classList.add(u.show)}_render(t){const e=t.container;this._container!==e&&(this._unmountComponent(),this._container=e,this._container.appendChild(this._tooltipContainer)),o.render(n.createElement(a,{handler:t.onClickOutside,child:n.createElement(this._tooltipFactory,t.factoryProps)}),this._tooltipContainer,this._updatePosition)}_unmountComponent(){null!==this._container&&(o.unmountComponentAtNode(this._tooltipContainer),this._tooltipContainer.remove(),this._container=null,this._clearTimeouts())}_clearTimeouts(){void 0!==this._deferredActions.showItemTimerId&&(clearTimeout(this._deferredActions.showItemTimerId),this._deferredActions.showItemTimerId=void 0),void 0!==this._deferredActions.hideItemTimerId&&(clearTimeout(this._deferredActions.hideItemTimerId),this._deferredActions.hideItemTimerId=void 0)}}function a(t){const{handler:e,child:r}=t,o=(0,i.useOutsideEvent)({mouseDown:!0,touchStart:!0,handler:e});return n.createElement("div",{ref:o},r)}},48080:(t,e,r)=>{"use strict";r.r(e),r.d(e,{UserDefinedBarsMarksTooltip:()=>i});var n=r(50959),o=r(49844);function i(t){const{text:e}=t;return n.createElement("div",{className:o.text},e)}}}]);