(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[1584],{97754:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var s=typeof n;if("string"===s||"number"===s)e.push(n);else if(Array.isArray(n)&&n.length){var i=o.apply(null,n);i&&e.push(i)}else if("object"===s)for(var a in n)r.call(n,a)&&n[a]&&e.push(a)}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},76773:e=>{e.exports={"default-drawer-min-top-distance":"100px",wrap:"wrap-_HnK0UIN",positionBottom:"positionBottom-_HnK0UIN",backdrop:"backdrop-_HnK0UIN",drawer:"drawer-_HnK0UIN",positionLeft:"positionLeft-_HnK0UIN"}},39416:(e,t,n)=>{"use strict";n.d(t,{useFunctionalRefObject:()=>s});var r=n(50959),o=n(43010);function s(e){const t=(0,r.useMemo)((()=>function(e){const t=n=>{e(n),t.current=n};return t.current=null,t}((e=>{a.current(e)}))),[]),n=(0,r.useRef)(null),s=t=>{if(null===t)return i(n.current,t),void(n.current=null);n.current!==e&&(n.current=e,i(n.current,t))},a=(0,r.useRef)(s);return a.current=s,(0,o.useIsomorphicLayoutEffect)((()=>{if(null!==t.current)return a.current(t.current),()=>a.current(null)}),[e]),t}function i(e,t){null!==e&&("function"==typeof e?e(t):e.current=t)}},90186:(e,t,n)=>{"use strict";function r(e){return s(e,i)}function o(e){return s(e,a)}function s(e,t){const n=Object.entries(e).filter(t),r={};for(const[e,t]of n)r[e]=t;return r}function i(e){const[t,n]=e;return 0===t.indexOf("data-")&&"string"==typeof n}function a(e){return 0===e[0].indexOf("aria-")}n.d(t,{filterAriaProps:()=>o,filterDataProps:()=>r,filterProps:()=>s,isAriaAttribute:()=>a,isDataAttribute:()=>i})},52778:(e,t,n)=>{"use strict";n.d(t,{OutsideEvent:()=>o});var r=n(36383);function o(e){const{children:t,...n}=e;return t((0,r.useOutsideEvent)(n))}},50238:(e,t,n)=>{"use strict";n.d(t,{useRovingTabindexElement:()=>i});var r=n(50959),o=n(39416),s=n(43010);function i(e,t=[]){const[n,i]=(0,r.useState)(!1),a=(0,o.useFunctionalRefObject)(e);return(0,s.useIsomorphicLayoutEffect)((()=>{const e=a.current;if(null===e)return;const t=e=>{switch(e.type){case"roving-tabindex:main-element":i(!0);break;case"roving-tabindex:secondary-element":i(!1)}};return e.addEventListener("roving-tabindex:main-element",t),e.addEventListener("roving-tabindex:secondary-element",t),()=>{e.removeEventListener("roving-tabindex:main-element",t),e.removeEventListener("roving-tabindex:secondary-element",t)}}),t),[a,n?0:-1]}},37558:(e,t,n)=>{"use strict";n.d(t,{DrawerContext:()=>i,DrawerManager:()=>s});var r=n(50959),o=n(99054);class s extends r.PureComponent{constructor(e){super(e),this._isBodyFixed=!1,this._addDrawer=e=>{this.setState((t=>({stack:[...t.stack,e]})))},this._removeDrawer=e=>{this.setState((t=>({stack:t.stack.filter((t=>t!==e))})))},this.state={stack:[]}}componentDidUpdate(e,t){!t.stack.length&&this.state.stack.length&&((0,o.setFixedBodyState)(!0),this._isBodyFixed=!0),
t.stack.length&&!this.state.stack.length&&this._isBodyFixed&&((0,o.setFixedBodyState)(!1),this._isBodyFixed=!1)}componentWillUnmount(){this.state.stack.length&&this._isBodyFixed&&(0,o.setFixedBodyState)(!1)}render(){return r.createElement(i.Provider,{value:{addDrawer:this._addDrawer,removeDrawer:this._removeDrawer,currentDrawer:this.state.stack.length?this.state.stack[this.state.stack.length-1]:null}},this.props.children)}}const i=r.createContext(null)},41590:(e,t,n)=>{"use strict";n.d(t,{Drawer:()=>m});var r=n(50959),o=n(50151),s=n(97754),i=n(4226),a=n(65718),c=n(37558),l=n(29197),u=n(86656),d=n(76773);var h;function m(e){const{position:t="Bottom",onClose:n,children:u,reference:h,className:m,theme:v=d}=e,p=(0,o.ensureNotNull)((0,r.useContext)(c.DrawerContext)),[b]=(0,r.useState)((()=>(0,i.randomHash)())),g=(0,r.useRef)(null),y=(0,r.useContext)(l.CloseDelegateContext);return(0,r.useLayoutEffect)((()=>((0,o.ensureNotNull)(g.current).focus({preventScroll:!0}),y.subscribe(p,n),p.addDrawer(b),()=>{p.removeDrawer(b),y.unsubscribe(p,n)})),[]),r.createElement(a.Portal,null,r.createElement("div",{ref:h,className:s(d.wrap,d[`position${t}`])},b===p.currentDrawer&&r.createElement("div",{className:d.backdrop,onClick:n}),r.createElement(f,{className:s(v.drawer,d[`position${t}`],m),ref:g,"data-name":e["data-name"],"data-qa-id":e["data-qa-id"]},u)))}!function(e){e.Left="Left",e.Bottom="Bottom"}(h||(h={}));const f=(0,r.forwardRef)(((e,t)=>{const{className:n,...o}=e;return r.createElement(u.TouchScrollContainer,{className:s(d.drawer,n),tabIndex:-1,ref:t,...o})}))},86431:(e,t,n)=>{"use strict";n.d(t,{makeOverlapable:()=>s});var r=n(50959),o=n(65718);function s(e,t){return class extends r.PureComponent{render(){const{isOpened:n,root:s}=this.props;if(!n)return null;const i=r.createElement(e,{...this.props,ref:this.props.componentRef,zIndex:150});return"parent"===s?i:r.createElement(o.Portal,{shouldTrapFocus:t},i)}}}},86656:(e,t,n)=>{"use strict";n.d(t,{TouchScrollContainer:()=>l});var r=n(50959),o=n(59142),s=n(50151),i=n(49483);const a=CSS.supports("overscroll-behavior","none");let c=0;const l=(0,r.forwardRef)(((e,t)=>{const{children:n,...s}=e,l=(0,r.useRef)(null);return(0,r.useImperativeHandle)(t,(()=>l.current)),(0,r.useLayoutEffect)((()=>{if(i.CheckMobile.iOS())return c++,null!==l.current&&(a?1===c&&(document.body.style.overscrollBehavior="none"):(0,o.disableBodyScroll)(l.current,{allowTouchMove:u(l)})),()=>{c--,null!==l.current&&(a?0===c&&(document.body.style.overscrollBehavior=""):(0,o.enableBodyScroll)(l.current))}}),[]),r.createElement("div",{ref:l,...s},n)}));function u(e){return t=>{const n=(0,s.ensureNotNull)(e.current),r=document.activeElement;return!n.contains(t)||null!==r&&n.contains(r)&&r.contains(t)}}},73607:(e,t,n)=>{"use strict";n.d(t,{focusFirstMenuItem:()=>u,handleAccessibleMenuFocus:()=>c,handleAccessibleMenuKeyDown:()=>l,queryMenuElements:()=>m});var r=n(22692),o=n(33647),s=n(68335),i=n(15754);const a=[37,39,38,40];function c(e,t){if(!e.target)return;const n=e.relatedTarget?.getAttribute("aria-activedescendant")
;if(e.relatedTarget!==t.current){const e=n&&document.getElementById(n);if(!e||e!==t.current)return}u(e.target)}function l(e){if(e.defaultPrevented)return;const t=(0,s.hashFromEvent)(e);if(!a.includes(t))return;const n=document.activeElement;if(!(document.activeElement instanceof HTMLElement))return;const i=m(e.currentTarget).sort(r.navigationOrderComparator);if(0===i.length)return;const c=document.activeElement.closest('[data-role="menuitem"]')||document.activeElement.parentElement?.querySelector('[data-role="menuitem"]');if(!(c instanceof HTMLElement))return;const l=i.indexOf(c);if(-1===l)return;const u=f(c),v=u.indexOf(document.activeElement),p=-1!==v,b=e=>{n&&(0,o.becomeSecondaryElement)(n),(0,o.becomeMainElement)(e),e.focus()};switch((0,r.mapKeyCodeToDirection)(t)){case"inlinePrev":if(!u.length)return;e.preventDefault(),b(0===v?i[l]:p?d(u,v,-1):u[u.length-1]);break;case"inlineNext":if(!u.length)return;e.preventDefault(),v===u.length-1?b(i[l]):b(p?d(u,v,1):u[0]);break;case"blockPrev":{e.preventDefault();const t=d(i,l,-1);if(p){const e=h(t,v);b(e||t);break}b(t);break}case"blockNext":{e.preventDefault();const t=d(i,l,1);if(p){const e=h(t,v);b(e||t);break}b(t)}}}function u(e){const[t]=m(e);t&&((0,o.becomeMainElement)(t),t.focus())}function d(e,t,n){return e[(t+e.length+n)%e.length]}function h(e,t){const n=f(e);return n.length?n[(t+n.length)%n.length]:null}function m(e){return Array.from(e.querySelectorAll('[data-role="menuitem"]:not([disabled]):not([aria-disabled])')).filter((0,i.createScopedVisibleElementFilter)(e))}function f(e){return Array.from(e.querySelectorAll("[tabindex]:not([disabled]):not([aria-disabled])")).filter((0,i.createScopedVisibleElementFilter)(e))}},33647:(e,t,n)=>{"use strict";var r;function o(e){e.dispatchEvent(new CustomEvent("roving-tabindex:main-element"))}function s(e){e.dispatchEvent(new CustomEvent("roving-tabindex:secondary-element"))}n.d(t,{becomeMainElement:()=>o,becomeSecondaryElement:()=>s}),function(e){e.MainElement="roving-tabindex:main-element",e.SecondaryElement="roving-tabindex:secondary-element"}(r||(r={}))},14474:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ContextMenuRenderer:()=>c});var r=n(50959),o=n(32227),s=n(91561),i=n(24640),a=n(50655);class c{constructor(e,t,n,o){this._root=document.createElement("div"),this._isShown=!1,this._manager=null,this._props={isOpened:!1,items:e,position:{x:0,y:0},menuStatName:t.statName,mode:t.mode,"data-name":t["data-name"],isKeyboardEvent:t.isKeyboardEvent},this._onDestroy=n,this._onShow=o,this._activeElement=document.activeElement,this._returnFocus=t.returnFocus,this._takeFocus=t.takeFocus,this._menuElementRef=r.createRef(),this._doNotCloseOn=t.doNotCloseOn,t.manager&&(this._manager=t.manager)}show(e){this._onShow&&this._onShow(),this._isShown=!0,this._render({...this._props,position:t=>{const{contentWidth:n,contentHeight:r,availableWidth:o,availableHeight:s}=t;let a;if(void 0!==e.box)a=e.box;else{a={x:e.touches?.[0].clientX??e.clientX,y:e.touches?.[0].clientY??e.clientY,w:0,h:0}}const c=e.marginX??0,l=e.marginY??0;let u,d
;switch(u=void 0===e.attachToXBy?(0,i.isRtl)()?"right":"left":"auto"===e.attachToXBy?(0,i.isRtl)()?a.x-c-n>=0?"right":"left":a.x+a.w+c+n<=o?"left":"right":e.attachToXBy,u){case"left":d=a.x+a.w+c;break;case"right":d=a.x-n-c}let h,m=e.attachToYBy??"auto";"auto-strict"===m&&(m=s<a.y+a.h+l+r?"bottom":"top");let f=a.y;switch(m){case"top":f=a.y+a.h+l,h=r>s-f?s-f:void 0;break;case"bottom":f=Math.max(0,a.y-l-r),h=0===f?a.y-l:void 0}return{x:d,y:f,overrideHeight:h}},isOpened:!0,onClose:()=>{this.hide(),this._unmount()},doNotCloseOn:this._doNotCloseOn,takeFocus:this._takeFocus,menuElementReference:this._menuElementRef})}hide(){this._isShown=!1,this._render({...this._props,isOpened:!1})}isShown(){return this._isShown}_unmount(){this._isShown=!1,o.unmountComponentAtNode(this._root),this._onDestroy&&this._onDestroy(),this._returnFocus&&this._activeElement instanceof HTMLElement&&this._activeElement.focus({preventScroll:!0})}_render(e){o.render(r.createElement(a.SlotContext.Provider,{value:this._manager},r.createElement(s.OverlapContextMenu,{...e})),this._root)}}},60925:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18" width="18" height="18"><path fill="currentColor" d="M12 4h3v1h-1.04l-.88 9.64a1.5 1.5 0 0 1-1.5 1.36H6.42a1.5 1.5 0 0 1-1.5-1.36L4.05 5H3V4h3v-.5C6 2.67 6.67 2 7.5 2h3c.83 0 1.5.67 1.5 1.5V4ZM7.5 3a.5.5 0 0 0-.5.5V4h4v-.5a.5.5 0 0 0-.5-.5h-3ZM5.05 5l.87 9.55a.5.5 0 0 0 .5.45h5.17a.5.5 0 0 0 .5-.45L12.94 5h-7.9Z"/></svg>'},25931:(e,t,n)=>{"use strict";n.d(t,{nanoid:()=>r});let r=(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?"-":"_"),"")}}]);