(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[6456],{345350:e=>{e.exports={"nav-button":"nav-button-znwuaSC1",link:"link-znwuaSC1",background:"background-znwuaSC1",icon:"icon-znwuaSC1","flip-icon":"flip-icon-znwuaSC1","size-large":"size-large-znwuaSC1","preserve-paddings":"preserve-paddings-znwuaSC1","size-medium":"size-medium-znwuaSC1","size-small":"size-small-znwuaSC1","size-xsmall":"size-xsmall-znwuaSC1","size-xxsmall":"size-xxsmall-znwuaSC1","visually-hidden":"visually-hidden-znwuaSC1"}},101414:e=>{e.exports={button:"button-D4RPB3ZC",content:"content-D4RPB3ZC","icon-only":"icon-only-D4RPB3ZC",link:"link-D4RPB3ZC","color-brand":"color-brand-D4RPB3ZC","variant-primary":"variant-primary-D4RPB3ZC","variant-secondary":"variant-secondary-D4RPB3ZC","color-gray":"color-gray-D4RPB3ZC","color-green":"color-green-D4RPB3ZC","color-red":"color-red-D4RPB3ZC","color-black":"color-black-D4RPB3ZC","color-black-friday":"color-black-friday-D4RPB3ZC","color-cyber-monday":"color-cyber-monday-D4RPB3ZC","size-xsmall":"size-xsmall-D4RPB3ZC","start-icon-wrap":"start-icon-wrap-D4RPB3ZC","end-icon-wrap":"end-icon-wrap-D4RPB3ZC","with-start-icon":"with-start-icon-D4RPB3ZC","with-end-icon":"with-end-icon-D4RPB3ZC","size-small":"size-small-D4RPB3ZC","size-medium":"size-medium-D4RPB3ZC","size-large":"size-large-D4RPB3ZC","size-xlarge":"size-xlarge-D4RPB3ZC",animated:"animated-D4RPB3ZC",stretch:"stretch-D4RPB3ZC",grouped:"grouped-D4RPB3ZC","adjust-position":"adjust-position-D4RPB3ZC","first-row":"first-row-D4RPB3ZC","first-col":"first-col-D4RPB3ZC","no-corner-top-left":"no-corner-top-left-D4RPB3ZC","no-corner-top-right":"no-corner-top-right-D4RPB3ZC","no-corner-bottom-right":"no-corner-bottom-right-D4RPB3ZC","no-corner-bottom-left":"no-corner-bottom-left-D4RPB3ZC","text-wrap":"text-wrap-D4RPB3ZC","multiline-content":"multiline-content-D4RPB3ZC","secondary-text":"secondary-text-D4RPB3ZC","primary-text":"primary-text-D4RPB3ZC"}},488803:e=>{e.exports={"tablet-normal-breakpoint":"screen and (max-width: 768px)","small-height-breakpoint":"screen and (max-height: 360px)","tablet-small-breakpoint":"screen and (max-width: 430px)"}},755596:e=>{e.exports={dialog:"dialog-b8SxMnzX",wrapper:"wrapper-b8SxMnzX",separator:"separator-b8SxMnzX",bounded:"bounded-b8SxMnzX"}},869827:e=>{e.exports={"small-height-breakpoint":"screen and (max-height: 360px)",container:"container-BZKENkhT",unsetAlign:"unsetAlign-BZKENkhT",title:"title-BZKENkhT",subtitle:"subtitle-BZKENkhT",textWrap:"textWrap-BZKENkhT",ellipsis:"ellipsis-BZKENkhT",close:"close-BZKENkhT",icon:"icon-BZKENkhT"}},140281:e=>{e.exports={container:"container-qm7Rg5MB",inputContainer:"inputContainer-qm7Rg5MB",withCancel:"withCancel-qm7Rg5MB",input:"input-qm7Rg5MB",icon:"icon-qm7Rg5MB",cancel:"cancel-qm7Rg5MB"}},854829:e=>{e.exports={wrapper:"wrapper-nGEmjtaX",container:"container-nGEmjtaX",tab:"tab-nGEmjtaX",active:"active-nGEmjtaX",title:"title-nGEmjtaX",icon:"icon-nGEmjtaX",withoutIcon:"withoutIcon-nGEmjtaX",titleText:"titleText-nGEmjtaX",nested:"nested-nGEmjtaX",
isTablet:"isTablet-nGEmjtaX",isMobile:"isMobile-nGEmjtaX",accessible:"accessible-nGEmjtaX"}},561098:e=>{e.exports={title:"title-z9fs4j4t",small:"small-z9fs4j4t",normal:"normal-z9fs4j4t",large:"large-z9fs4j4t"}},876797:e=>{e.exports={container:"container-XOHpda28"}},395988:e=>{e.exports={title:"title-cIIj4HrJ",disabled:"disabled-cIIj4HrJ",icon:"icon-cIIj4HrJ",locked:"locked-cIIj4HrJ",open:"open-cIIj4HrJ",actionIcon:"actionIcon-cIIj4HrJ",selected:"selected-cIIj4HrJ",codeIcon:"codeIcon-cIIj4HrJ",solutionIcon:"solutionIcon-cIIj4HrJ"}},160430:e=>{e.exports={"tablet-small-breakpoint":"screen and (max-width: 430px)",container:"container-WeNdU0sq",selected:"selected-WeNdU0sq",disabled:"disabled-WeNdU0sq",favorite:"favorite-WeNdU0sq",highlighted:"highlighted-WeNdU0sq",light:"light-WeNdU0sq","highlight-animation-theme-light":"highlight-animation-theme-light-WeNdU0sq",dark:"dark-WeNdU0sq","highlight-animation-theme-dark":"highlight-animation-theme-dark-WeNdU0sq",badge:"badge-WeNdU0sq",main:"main-WeNdU0sq",paddingLeft:"paddingLeft-WeNdU0sq",author:"author-WeNdU0sq",likes:"likes-WeNdU0sq",actions:"actions-WeNdU0sq",isActive:"isActive-WeNdU0sq"}},860030:e=>{e.exports={container:"container-hrZZtP0J"}},4567:e=>{e.exports={"tablet-small-breakpoint":"screen and (max-width: 430px)",dialog:"dialog-I087YV6b",dialogLibrary:"dialogLibrary-I087YV6b",contentContainer:"contentContainer-I087YV6b",listContainer:"listContainer-I087YV6b",scroll:"scroll-I087YV6b",sidebarContainer:"sidebarContainer-I087YV6b",noContentBlock:"noContentBlock-I087YV6b",tabWithHint:"tabWithHint-I087YV6b",solution:"solution-I087YV6b"}},770722:e=>{e.exports={container:"container-QcG0kDOU",image:"image-QcG0kDOU",title:"title-QcG0kDOU",description:"description-QcG0kDOU",button:"button-QcG0kDOU"}},214877:e=>{e.exports={favorite:"favorite-_FRQhM5Y",hovered:"hovered-_FRQhM5Y",disabled:"disabled-_FRQhM5Y",active:"active-_FRQhM5Y",checked:"checked-_FRQhM5Y"}},275623:e=>{e.exports={highlighted:"highlighted-cwp8YRo6"}},345719:e=>{e.exports={separator:"separator-Pf4rIzEt"}},805184:(e,t,n)=>{"use strict";n.d(t,{Button:()=>c});var r=n(50959),i=n(171529);function o(e="default"){switch(e){case"default":return"primary";case"stroke":return"secondary"}}function s(e="primary"){switch(e){case"primary":return"brand";case"success":return"green";case"default":return"gray";case"danger":return"red"}}function a(e="m"){switch(e){case"s":return"xsmall";case"m":return"small";case"l":return"large"}}function l(e){const{intent:t,size:n,appearance:r,useFullWidth:i,icon:l,...c}=e;return{...c,color:s(t),size:a(n),variant:o(r),stretch:i,startIcon:l}}function c(e){return r.createElement(i.SquareButton,{...l(e)})}},389986:(e,t,n)=>{"use strict";n.d(t,{CloseButton:()=>u});var r=n(50959),i=n(270762),o=n(117105),s=n(315130),a=n(238822),l=n(663346),c=n(534983);function d(e="large"){switch(e){case"large":return o;case"medium":default:return s;case"small":return a;case"xsmall":return l;case"xxsmall":return c}}const u=r.forwardRef(((e,t)=>r.createElement(i.NavButton,{...e,ref:t,icon:d(e.size)})))},270762:(e,t,n)=>{
"use strict";n.d(t,{NavButton:()=>c});var r=n(50959),i=n(497754),o=n(72571),s=n(345350);function a(e){const{size:t="large",preservePaddings:n,isLink:r,flipIconOnRtl:o,className:a}=e;return i(s["nav-button"],s[`size-${t}`],n&&s["preserve-paddings"],o&&s["flip-icon"],r&&s.link,a)}function l(e){const{children:t,icon:n}=e;return r.createElement(r.Fragment,null,r.createElement("span",{className:s.background}),r.createElement(o.Icon,{icon:n,className:s.icon,"aria-hidden":!0}),t&&r.createElement("span",{className:s["visually-hidden"]},t))}const c=(0,r.forwardRef)(((e,t)=>{const{icon:n,type:i="button",preservePaddings:o,flipIconOnRtl:s,size:c,"aria-label":d,...u}=e;return r.createElement("button",{...u,className:a({...e,children:d}),ref:t,type:i},r.createElement(l,{icon:n},d))}));c.displayName="NavButton";var d=n(591365),u=n(273388);(0,r.forwardRef)(((e,t)=>{const{icon:n,renderComponent:i,"aria-label":o,...s}=e,c=null!=i?i:d.CustomComponentDefaultLink;return r.createElement(c,{...s,className:a({...e,children:o,isLink:!0}),reference:(0,u.isomorphicRef)(t)},r.createElement(l,{icon:n},o))})).displayName="NavAnchorButton"},171529:(e,t,n)=>{"use strict";n.d(t,{SquareButton:()=>v});var r=n(50959),i=n(497754),o=n(331774),s=n(72571),a=n(101414),l=n.n(a);const c="apply-overflow-tooltip apply-overflow-tooltip--check-children-recursively apply-overflow-tooltip--allow-text";function d(e){const{color:t="brand",size:n="medium",variant:r="primary",stretch:s=!1,icon:a,startIcon:d,endIcon:u,iconOnly:h=!1,className:p,isGrouped:m,cellState:f,disablePositionAdjustment:v=!1,primaryText:g,secondaryText:y,isAnchor:b=!1}=e,_=function(e){let t="";return 0!==e&&(1&e&&(t=i(t,l()["no-corner-top-left"])),2&e&&(t=i(t,l()["no-corner-top-right"])),4&e&&(t=i(t,l()["no-corner-bottom-right"])),8&e&&(t=i(t,l()["no-corner-bottom-left"]))),t}((0,o.getGroupCellRemoveRoundBorders)(f));return i(p,l().button,l()[`size-${n}`],l()[`color-${t}`],l()[`variant-${r}`],s&&l().stretch,(a||d)&&l()["with-start-icon"],u&&l()["with-end-icon"],h&&l()["icon-only"],_,m&&l().grouped,m&&!v&&l()["adjust-position"],m&&f.isTop&&l()["first-row"],m&&f.isLeft&&l()["first-col"],g&&y&&l()["multiline-content"],b&&l().link,c)}function u(e){const{startIcon:t,icon:n,iconOnly:o,children:a,endIcon:d,primaryText:u,secondaryText:h}=e,p=null!=t?t:n,m=!(t||n||d||o)&&!a&&u&&h;return r.createElement(r.Fragment,null,p&&r.createElement(s.Icon,{icon:p,className:l()["start-icon-wrap"]}),a&&r.createElement("span",{className:l().content},a),d&&!o&&r.createElement(s.Icon,{icon:d,className:l()["end-icon-wrap"]}),m&&function(e){return e.primaryText&&e.secondaryText&&r.createElement("div",{className:i(l()["text-wrap"],c)},r.createElement("span",{className:l()["primary-text"]}," ",e.primaryText," "),"string"==typeof e.secondaryText?r.createElement("span",{className:l()["secondary-text"]}," ",e.secondaryText," "):r.createElement("span",{className:l()["secondary-text"]},r.createElement("span",null,e.secondaryText.firstLine),r.createElement("span",null,e.secondaryText.secondLine)))}(e))}
var h=n(601198),p=n(380327),m=n(800417);function f(e){const{className:t,color:n,variant:r,size:i,stretch:o,animated:s,icon:a,iconOnly:l,startIcon:c,endIcon:d,primaryText:u,secondaryText:h,...p}=e;return{...p,...(0,m.filterDataProps)(e),...(0,m.filterAriaProps)(e)}}function v(e){const{reference:t,tooltipText:n,...i}=e,{isGrouped:o,cellState:s,disablePositionAdjustment:a}=(0,r.useContext)(p.ControlGroupContext),l=d({...i,isGrouped:o,cellState:s,disablePositionAdjustment:a});return r.createElement("button",{...f(i),className:l,ref:t,"data-overflow-tooltip-text":null!=n?n:e.primaryText?[e.primaryText,e.secondaryText].join(" "):(0,h.getTextForTooltip)(e.children)},r.createElement(u,{...i}))}},380327:(e,t,n)=>{"use strict";n.d(t,{ControlGroupContext:()=>r});const r=n(50959).createContext({isGrouped:!1,cellState:{isTop:!0,isRight:!0,isBottom:!0,isLeft:!0}})},331774:(e,t,n)=>{"use strict";function r(e){let t=0;return e.isTop&&e.isLeft||(t+=1),e.isTop&&e.isRight||(t+=2),e.isBottom&&e.isLeft||(t+=8),e.isBottom&&e.isRight||(t+=4),t}n.d(t,{getGroupCellRemoveRoundBorders:()=>r})},409245:(e,t,n)=>{"use strict";function r(e){const{reference:t,...n}=e;return{...n,ref:t}}n.d(t,{renameRef:()=>r})},591365:(e,t,n)=>{"use strict";n.d(t,{CustomComponentDefaultLink:()=>o});var r=n(50959),i=n(409245);function o(e){return r.createElement("a",{...(0,i.renameRef)(e)})}r.PureComponent},778199:(e,t,n)=>{"use strict";function r(e,t,n,r,i){function o(i){if(e>i.timeStamp)return;const o=i.target;void 0!==n&&null!==t&&null!==o&&o.ownerDocument===r&&(t.contains(o)||n(i))}return i.click&&r.addEventListener("click",o,!1),i.mouseDown&&r.addEventListener("mousedown",o,!1),i.touchEnd&&r.addEventListener("touchend",o,!1),i.touchStart&&r.addEventListener("touchstart",o,!1),()=>{r.removeEventListener("click",o,!1),r.removeEventListener("mousedown",o,!1),r.removeEventListener("touchend",o,!1),r.removeEventListener("touchstart",o,!1)}}n.d(t,{addOutsideEventListener:()=>r})},908783:(e,t,n)=>{"use strict";n.d(t,{useOutsideEvent:()=>o});var r=n(50959),i=n(778199);function o(e){const{click:t,mouseDown:n,touchEnd:o,touchStart:s,handler:a,reference:l,ownerDocument:c=document}=e,d=(0,r.useRef)(null),u=(0,r.useRef)(new CustomEvent("timestamp").timeStamp);return(0,r.useLayoutEffect)((()=>{const e={click:t,mouseDown:n,touchEnd:o,touchStart:s},r=l?l.current:d.current;return(0,i.addOutsideEventListener)(u.current,r,a,c,e)}),[t,n,o,s,a]),l||d}},72571:(e,t,n)=>{"use strict";n.d(t,{Icon:()=>i});var r=n(50959);const i=r.forwardRef(((e,t)=>{const{icon:n="",...i}=e;return r.createElement("span",{...i,ref:t,dangerouslySetInnerHTML:{__html:n}})}))},682925:(e,t,n)=>{"use strict";n.d(t,{Slot:()=>i,SlotContext:()=>o});var r=n(50959);class i extends r.Component{shouldComponentUpdate(){return!1}render(){return r.createElement("div",{style:{position:"fixed",zIndex:150,left:0,top:0},ref:this.props.reference})}}const o=r.createContext(null)},672511:(e,t,n)=>{"use strict";n.d(t,{Spinner:()=>s});var r=n(50959),i=n(497754),o=n(843442);n(683135);function s(e){
const t=i(e.className,"tv-spinner","tv-spinner--shown",`tv-spinner--size_${o.spinnerSizeMap[e.size||o.DEFAULT_SIZE]}`);return r.createElement("div",{className:t,style:e.style,role:"progressbar"})}},800417:(e,t,n)=>{"use strict";function r(e){return o(e,s)}function i(e){return o(e,a)}function o(e,t){const n=Object.entries(e).filter(t),r={};for(const[e,t]of n)r[e]=t;return r}function s(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:()=>i,filterDataProps:()=>r,filterProps:()=>o,isAriaAttribute:()=>a,isDataAttribute:()=>s})},601198:(e,t,n)=>{"use strict";n.d(t,{getTextForTooltip:()=>s});var r=n(50959);const i=e=>(0,r.isValidElement)(e)&&Boolean(e.props.children),o=e=>null==e||"boolean"==typeof e||"{}"===JSON.stringify(e)?"":e.toString()+" ",s=e=>Array.isArray(e)||(0,r.isValidElement)(e)?r.Children.toArray(e).reduce(((e,t)=>{let n="";return n=(0,r.isValidElement)(t)&&i(t)?s(t.props.children):(0,r.isValidElement)(t)&&!i(t)?"":o(t),e.concat(n)}),"").trim():o(e)},273388:(e,t,n)=>{"use strict";function r(e){return t=>{e.forEach((e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)}))}}function i(e){return r([e])}n.d(t,{isomorphicRef:()=>i,mergeRefs:()=>r})},801808:(e,t,n)=>{"use strict";n.d(t,{OverlapManager:()=>o,getRootOverlapManager:()=>a});var r=n(650151);class i{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 o{constructor(e=document){this._storage=new i,this._windows=new Map,this._index=0,this._document=e,this._container=e.createDocumentFragment()}setContainer(e){const t=this._container,n=null===e?this._document.createDocumentFragment():e;!function(e,t){Array.from(e.childNodes).forEach((e=>{e.nodeType===Node.ELEMENT_NODE&&t.appendChild(e)}))}(t,n),this._container=n}registerWindow(e){this._storage.has(e)||this._storage.add(e)}ensureWindow(e,t={position:"fixed",direction:"normal"}){const n=this._windows.get(e);if(void 0!==n)return n;this.registerWindow(e);const r=this._document.createElement("div");if(r.style.position=t.position,r.style.zIndex=this._index.toString(),r.dataset.id=e,void 0!==t.index){const e=this._container.childNodes.length;if(t.index>=e)this._container.appendChild(r);else if(t.index<=0)this._container.insertBefore(r,this._container.firstChild);else{const e=this._container.childNodes[t.index];this._container.insertBefore(r,e)}}else"reverse"===t.direction?this._container.insertBefore(r,this._container.firstChild):this._container.appendChild(r);return this._windows.set(e,r),++this._index,r}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")}moveToTop(e){if(this.getZindex(e)!==this._index){this.ensureWindow(e).style.zIndex=(++this._index).toString()}}removeWindow(e){
this.unregisterWindow(e)}}const s=new WeakMap;function a(e=document){const t=e.getElementById("overlap-manager-root");if(null!==t)return(0,r.ensureDefined)(s.get(t));{const t=new o(e),n=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}(e);return s.set(n,t),t.setContainer(n),e.body.appendChild(n),t}}},285089:(e,t,n)=>{"use strict";n.d(t,{setFixedBodyState:()=>l});var r=n(735922);const i=()=>!window.matchMedia("screen and (min-width: 768px)").matches,o=()=>!window.matchMedia("screen and (min-width: 1280px)").matches;let s=0,a=!1;function l(e){const{body:t}=document,n=t.querySelector(".widgetbar-wrap");if(e&&1==++s){const e=(0,r.getCSSProperty)(t,"overflow"),i=(0,r.getCSSPropertyNumericValue)(t,"padding-right");"hidden"!==e.toLowerCase()&&t.scrollHeight>t.offsetHeight&&((0,r.setStyle)(n,"right",`${(0,r.getScrollbarWidth)()}px`),t.style.paddingRight=`${i+(0,r.getScrollbarWidth)()}px`,a=!0),t.classList.add("i-no-scroll")}else if(!e&&s>0&&0==--s&&(t.classList.remove("i-no-scroll"),a)){(0,r.setStyle)(n,"right","0px");let e=0;e=n?(l=(0,r.getContentWidth)(n),i()?0:o()?45:Math.min(Math.max(l,45),450)):0,t.scrollHeight<=t.clientHeight&&(e-=(0,r.getScrollbarWidth)()),t.style.paddingRight=(e<0?0:e)+"px",a=!1}var l}},996038:(e,t,n)=>{"use strict";n.d(t,{DialogBreakpoints:()=>i});var r=n(488803);const i={SmallHeight:r["small-height-breakpoint"],TabletSmall:r["tablet-small-breakpoint"],TabletNormal:r["tablet-normal-breakpoint"]}},533408:(e,t,n)=>{"use strict";n.d(t,{AdaptivePopupDialog:()=>P});var r=n(50959),i=n(650151),o=n(660538),s=n(497754),a=n.n(s),l=n(180185),c=n(710263),d=n(698043),u=n(40766),h=n(494707),p=n(996038),m=n(930052),f=n(910549);var v=n(206594),g=n(559410),y=n(609838),b=n(389986),_=n(190410),C=n(869827);function w(e){const{title:t,titleTextWrap:i=!1,subtitle:o,showCloseIcon:s=!0,onClose:l,onCloseButtonKeyDown:c,renderBefore:d,renderAfter:u,draggable:h,className:p,unsetAlign:m,closeAriaLabel:f=y.t(null,void 0,n(680395)),closeButtonReference:v}=e,[g,w]=(0,r.useState)(!1);return r.createElement(_.DialogHeaderContext.Provider,{value:{setHideClose:w}},r.createElement("div",{className:a()(C.container,p,(o||m)&&C.unsetAlign)},d,r.createElement("div",{"data-dragg-area":h,className:C.title},r.createElement("div",{className:a()(i?C.textWrap:C.ellipsis)},t),o&&r.createElement("div",{className:a()(C.ellipsis,C.subtitle)},o)),u,s&&!g&&r.createElement(b.CloseButton,{className:C.close,"data-name":"close","aria-label":f,onClick:l,onKeyDown:c,ref:v,size:"medium",preservePaddings:!0})))}var x=n(273388),E=n(800417),k=n(755596);const S={vertical:20},N={vertical:0};class P extends r.PureComponent{constructor(){super(...arguments),this._controller=null,this._reference=null,this._orientationMediaQuery=null,this._renderChildren=(e,t)=>(this._controller=e,this.props.render({requestResize:this._requestResize,centerAndFit:this._centerAndFit,isSmallWidth:t})),this._handleReference=e=>this._reference=e,
this._handleCloseBtnClick=()=>{this.props.onKeyboardClose&&this.props.onKeyboardClose(),this._handleClose()},this._handleClose=()=>{this.props.onClose()},this._handleOpen=()=>{void 0!==this.props.onOpen&&this.props.isOpened&&this.props.onOpen(this.props.fullScreen||window.matchMedia(p.DialogBreakpoints.TabletSmall).matches)},this._handleKeyDown=e=>{if(!e.defaultPrevented){if(this.props.onKeyDown&&this.props.onKeyDown(e),27===(0,l.hashFromEvent)(e)){if(e.defaultPrevented)return;if(this.props.forceCloseOnEsc&&this.props.forceCloseOnEsc())return this.props.onKeyboardClose&&this.props.onKeyboardClose(),void this._handleClose();const{activeElement:n}=document,r=(0,i.ensureNotNull)(this._reference);if(null!==n){if(e.preventDefault(),"true"===(t=n).getAttribute("data-haspopup")&&"true"!==t.getAttribute("data-expanded"))return void this._handleClose();if((0,d.isTextEditingField)(n))return void r.focus();if(r.contains(n))return this.props.onKeyboardClose&&this.props.onKeyboardClose(),void this._handleClose()}}var t,n;(function(e){if("function"==typeof e)return e();return Boolean(e)})(this.props.disableTabNavigationContainment)||(n=e,[9,l.Modifiers.Shift+9].includes((0,l.hashFromEvent)(n))&&n.stopPropagation())}},this._requestResize=()=>{null!==this._controller&&this._controller.recalculateBounds()},this._centerAndFit=()=>{null!==this._controller&&this._controller.centerAndFit()},this._calculatePositionWithOffsets=(e,t)=>{const n=(0,i.ensureDefined)(this.props.fullScreenViewOffsets).value();return{top:n.top,left:(0,c.isRtl)()?-n.right:n.left,width:t.clientWidth-n.left-n.right,height:t.clientHeight-n.top-n.bottom}}}componentDidMount(){this.props.ignoreClosePopupsAndDialog||g.subscribe(v.CLOSE_POPUPS_AND_DIALOGS_COMMAND,this._handleClose,null),this._handleOpen(),void 0!==this.props.onOpen&&(this._orientationMediaQuery=window.matchMedia("(orientation: portrait)"),(0,o.mediaQueryAddEventListener)(this._orientationMediaQuery,this._handleOpen)),this.props.fullScreenViewOffsets&&this.props.fullScreen&&this.props.fullScreenViewOffsets.subscribe(this._requestResize)}componentWillUnmount(){this.props.ignoreClosePopupsAndDialog||g.unsubscribe(v.CLOSE_POPUPS_AND_DIALOGS_COMMAND,this._handleClose,null),null!==this._orientationMediaQuery&&(0,o.mediaQueryRemoveEventListener)(this._orientationMediaQuery,this._handleOpen),this.props.fullScreenViewOffsets&&this.props.fullScreen&&this.props.fullScreenViewOffsets.unsubscribe(this._requestResize)}focus(){(0,i.ensureNotNull)(this._reference).focus()}getElement(){return this._reference}contains(e){var t,n;return null!==(n=null===(t=this._reference)||void 0===t?void 0:t.contains(e))&&void 0!==n&&n}render(){
const{className:e,wrapperClassName:t,headerClassName:n,isOpened:i,title:o,titleTextWrap:s,dataName:l,onClickOutside:c,additionalElementPos:d,additionalHeaderElement:v,backdrop:g,shouldForceFocus:y=!0,shouldReturnFocus:b,onForceFocus:_,showSeparator:C,subtitle:P,draggable:D=!0,fullScreen:I=!1,showCloseIcon:R=!0,rounded:B=!0,isAnimationEnabled:T,growPoint:z,dialogTooltip:L,unsetHeaderAlign:A,onDragStart:M,dataDialogName:F,closeAriaLabel:O,containerAriaLabel:W,reference:j,containerTabIndex:H,closeButtonReference:Z,onCloseButtonKeyDown:q,shadowed:U,fullScreenViewOffsets:K,fixedBody:V}=this.props,G="after"!==d?v:void 0,Y="after"===d?v:void 0,Q="string"==typeof o?o:F||"",J=(0,E.filterDataProps)(this.props),X=(0,x.mergeRefs)([this._handleReference,j]);return r.createElement(m.MatchMedia,{rule:p.DialogBreakpoints.SmallHeight},(d=>r.createElement(m.MatchMedia,{rule:p.DialogBreakpoints.TabletSmall},(p=>r.createElement(u.PopupDialog,{rounded:!(p||I)&&B,className:a()(k.dialog,I&&K&&k.bounded,e),isOpened:i,reference:X,onKeyDown:this._handleKeyDown,onClickOutside:c,onClickBackdrop:c,fullscreen:p||I,guard:d?N:S,boundByScreen:p||I,shouldForceFocus:y,onForceFocus:_,shouldReturnFocus:b,backdrop:g,draggable:D,isAnimationEnabled:T,growPoint:z,name:this.props.dataName,dialogTooltip:L,onDragStart:M,containerAriaLabel:W,containerTabIndex:H,calculateDialogPosition:I&&K?this._calculatePositionWithOffsets:void 0,shadowed:U,fixedBody:V,...J},r.createElement("div",{className:a()(k.wrapper,t),"data-name":l,"data-dialog-name":Q},void 0!==o&&r.createElement(w,{draggable:D&&!(p||I),onClose:this._handleCloseBtnClick,renderAfter:Y,renderBefore:G,subtitle:P,title:o,titleTextWrap:s,showCloseIcon:R,className:n,unsetAlign:A,closeAriaLabel:O,closeButtonReference:Z,onCloseButtonKeyDown:q}),C&&r.createElement(h.Separator,{className:k.separator}),r.createElement(f.PopupContext.Consumer,null,(e=>this._renderChildren(e,p||I)))))))))}}},190410:(e,t,n)=>{"use strict";n.d(t,{DialogHeaderContext:()=>r});const r=n(50959).createContext({setHideClose:()=>{}})},231862:(e,t,n)=>{"use strict";n.d(t,{DialogSearch:()=>d});var r=n(50959),i=n(497754),o=n.n(i),s=n(609838),a=n(72571),l=n(969859),c=n(140281);function d(e){const{children:t,renderInput:i,onCancel:d,containerClassName:h,inputContainerClassName:p,iconClassName:m,...f}=e;return r.createElement("div",{className:o()(c.container,h)},r.createElement("div",{className:o()(c.inputContainer,p,d&&c.withCancel)},i||r.createElement(u,{...f})),t,r.createElement(a.Icon,{className:o()(c.icon,m),icon:l}),d&&r.createElement("div",{className:c.cancel,onClick:d},s.t(null,void 0,n(620036))))}function u(e){const{className:t,reference:n,value:i,onChange:s,onFocus:a,onBlur:l,onKeyDown:d,onSelect:u,placeholder:h,...p}=e;return r.createElement("input",{...p,ref:n,type:"text",className:o()(t,c.input),autoComplete:"off","data-role":"search",placeholder:h,value:i,onChange:s,onFocus:a,onBlur:l,onSelect:u,onKeyDown:d})}},982850:(e,t,n)=>{"use strict";n.d(t,{DialogSidebarContainer:()=>d,DialogSidebarItem:()=>h,DialogSidebarWrapper:()=>u})
;var r=n(50959),i=n(497754),o=n.n(i),s=n(72571),a=n(393832),l=n(568648),c=n(854829);function d(e){const{mode:t,className:n,...i}=e,{isMobile:s,isTablet:l}=(0,a.getSidebarMode)(t),d=o()(c.container,l&&c.isTablet,s&&c.isMobile,n);return r.createElement("div",{...i,className:d,"data-role":"dialog-sidebar"})}function u(e){return r.createElement("div",{className:c.wrapper,...e})}function h(e){const{mode:t,title:n,icon:i,isActive:d,onClick:u,tag:h="div",reference:p,className:m,...f}=e,{isMobile:v,isTablet:g}=(0,a.getSidebarMode)(t),y=d?null==i?void 0:i.active:null==i?void 0:i.default;return r.createElement(h,{...f,ref:p,className:o()(c.tab,g&&c.isTablet,v&&c.isMobile,d&&c.active,m),onClick:u},i&&r.createElement(s.Icon,{className:c.icon,icon:y}),!g&&r.createElement("span",{className:o()(c.title,!i&&c.withoutIcon)},r.createElement("span",{className:c.titleText},n),v&&r.createElement(s.Icon,{className:c.nested,icon:l})))}},393832:(e,t,n)=>{"use strict";function r(e){return{isMobile:"mobile"===e,isTablet:"tablet"===e}}n.d(t,{getSidebarMode:()=>r})},570839:(e,t,n)=>{"use strict";n.r(t),n.d(t,{IndicatorsLibraryContainer:()=>de});var r=n(50959),i=n(500962),o=n(609838),s=n(683471);const a=o.t(null,void 0,n(144463));var l=n(597399),c=n(156963),d=n(919577);function u(e,t){const n=e.title.toLowerCase(),r=t.title.toLowerCase();return n<r?-1:n>r?1:0}const h={earning:new RegExp("EPS"),earnings:new RegExp("EPS"),"trailing twelve months":new RegExp("TTM")};function p(e){var t;const{id:r,description:i,shortDescription:s,description_localized:d,is_hidden_study:u,version:h,extra:p,tags:f}=e,v=c.enabled("graying_disabled_tools_enabled")&&(null===(t=window.ChartApiInstance)||void 0===t?void 0:t.studiesAccessController.isToolGrayed(i));return{id:r,title:d||o.t(i,{context:"study"},n(168716)),shortDescription:s,shortTitle:s,isStrategy:l.StudyMetaInfo.isScriptStrategy(e),isHidden:u,isNew:null==p?void 0:p.isNew,isUpdated:null==p?void 0:p.isUpdated,isBeta:null==p?void 0:p.isBeta,isPro:null==p?void 0:p.isPro,proBadgeTitle:a,isFundamental:!1,isOverlay:e.is_price_study,studyData:{id:r,version:h,descriptor:{type:"java",studyId:e.id},packageName:m(r,p)},isGrayed:v,tags:f}}function m(e,t){return(null==t?void 0:t.isChartPattern)?"tv-chart_patterns":(null==t?void 0:t.isAuto)?"auto-java":l.StudyMetaInfo.getPackageName(e)}var f=n(497754),v=n.n(f),g=n(132455),y=n(533408),b=n(601227),_=n(231862),C=n(982850),w=n(860030);function x(e){const{reference:t,className:n,...i}=e;return r.createElement("div",{ref:t,className:v()(w.container,n),...i,"data-role":"dialog-content"})}var E=n(395988);function k(e){const{children:t,className:n,disabled:i}=e;return r.createElement("span",{className:v()(E.title,i&&E.disabled,n)},t)}const S=r.createContext(null);var N=n(260598),P=n(297265),D=n(702054),I=n(651049),R=n(577687),B=n(180185),T=n(160430);function z(e){const t=(0,
r.useContext)(S),{style:i,layoutMode:s,item:a,query:l,regExpRules:c,isBeta:d,isNew:u,isUpdated:h,isSelected:p,isHighlighted:m,reference:f,onClick:g,renderActions:y,isPro:b,proBadgeTitle:_,onItemActionsClick:C,favoriteClickHandler:w,hideEP:x}=e,{isFavorite:E,isLocked:B,public:z,editorsPick:A}=a,M=void 0!==E,F=L(g,a),O=(0,r.useCallback)((e=>{e.stopPropagation(),null==C||C()}),[C]),W=(0,r.useCallback)((e=>{if(w)return null==C||C(),void w(e);if(null==t?void 0:t.toggleFavorite){L((e=>{null==C||C(),t.toggleFavorite(e)}),a)(e)}}),[w,C,null==t?void 0:t.toggleFavorite]),j=(0,P.useWatchedValueReadonly)({watchedValue:D.watchedTheme})===I.StdTheme.Dark?T.dark:T.light,H=v()(T.container,a.isGrayed&&T.disabled,p&&T.selected,m&&T.highlighted,m&&j);return r.createElement("div",{ref:f,className:H,onClick:F,style:i,"data-role":"list-item","data-disabled":a.isGrayed,"data-title":a.title,"data-id":a.id},r.createElement("div",{className:v()(T.main,!M&&T.paddingLeft)},M&&r.createElement(R.FavoriteButton,{className:v()(T.favorite,E&&T.isActive),isFilled:E,onClick:W}),r.createElement(k,{disabled:a.isGrayed},r.createElement(N.HighlightedText,{queryString:l,rules:c,text:a.title})),!1,d&&r.createElement(BadgeIndicator,{type:"beta",className:T.badge}),u&&r.createElement(BadgeIndicator,{type:"new",className:T.badge}),h&&r.createElement(BadgeIndicator,{type:"updated",className:T.badge}),Boolean(A&&!x)&&r.createElement(BadgeIndicator,{type:"ep",className:T.badge,tooltip:o.t(null,void 0,n(192490))}),!1),z&&r.createElement("a",{href:z.authorLink,className:T.author,target:"_blank",onClick:O},z.authorName),"mobile"!==s&&z&&r.createElement("span",{className:T.likes},z.likesCount),!1)}function L(e,t){return n=>{const r=0===(0,B.modifiersFromEvent)(n)&&0===n.button;!n.defaultPrevented&&e&&r&&(n.preventDefault(),e(t))}}var A=n(561098);function M(e){const{title:t,type:n,className:i}=e;return r.createElement("h3",{className:v()(A.title,"Small"===n&&A.small,"Normal"===n&&A.normal,"Large"===n&&A.large,i)},t)}var F=n(876797);function O(e){const{style:t,children:n}=e;return r.createElement("div",{style:t,className:F.container},n)}var W=n(72571),j=n(805184),H=n(770722);function Z(e){const{className:t,icon:n,title:i,description:o,buttonText:s,buttonAction:a}=e;return r.createElement("div",{className:v()(H.container,t)},n&&r.createElement(W.Icon,{icon:n,className:H.image}),i&&r.createElement("h3",{className:H.title},i),o&&r.createElement("p",{className:H.description},o),s&&a&&r.createElement(j.Button,{onClick:a,className:H.button},s))}function q(e){const[t,n]=(0,r.useState)(null);function i(e){return e.findIndex((e=>(null==t?void 0:t.id)===e.id))}return[t,n,function(){n(function(){var n;const r=i(e),o=r===e.length-1;return null===t||-1===r?null!==(n=e[0])&&void 0!==n?n:null:o?e[r]:e[r+1]}())},function(){n(function(){var n;const r=i(e);return null===t||0===r||-1===r?null!==(n=e[0])&&void 0!==n?n:null:e[r-1]}())}]}var U=n(512991),K=n(4567),V=n(466052),G=n(870122);const Y=new V.Delegate,Q=new V.Delegate,J=new V.Delegate;let X=[];function $(e){
return-1===te(e)?(function(e){!ee(e)&&(X.push(e),re(),Y.fire(e))}(e),!0):(function(e){const t=te(e);-1!==t&&(X.splice(t,1),re(),Q.fire(e))}(e),!1)}function ee(e){return-1!==te(e)}function te(e){return X.indexOf(e)}function ne(){var e,t;X=[];const n=Boolean(void 0===(0,G.getValue)("chart.favoriteLibraryIndicators")),r=(0,G.getJSON)("chart.favoriteLibraryIndicators",[]);if(X.push(...r),0===X.length&&n&&"undefined"!=typeof window){const n=JSON.parse(null!==(t=null===(e=window.urlParams)||void 0===e?void 0:e.favorites)&&void 0!==t?t:"{}").indicators;n&&Array.isArray(n)&&X.push(...n)}J.fire()}function re(){const e=X.slice();(0,G.setJSON)("chart.favoriteLibraryIndicators",e)}function ie(e){const{reference:t,data:i,isOpened:s,onClose:a,applyStudy:l,shouldReturnFocus:c}=e,[d,u]=(0,r.useState)(""),p=(0,r.useMemo)((()=>(0,U.createRegExpList)(d,h)),[d]),m=(0,r.useMemo)((()=>d?(0,U.rankedSearch)({data:i,rules:p,queryString:d,primaryKey:"shortDescription",secondaryKey:"title",optionalPrimaryKey:"shortTitle",tertiaryKey:"tags"}):i),[d,p,i]),{highlightedItem:f,selectedItem:w,selectedNodeReference:E,scrollContainerRef:k,searchInputRef:S,onClickStudy:N,handleKeyDown:P}=function(e,t,n,i){let o=0;const[s,a]=(0,r.useState)(null),l=(0,r.useRef)(null),c=(0,r.useRef)(null),[d,u,h,p]=q(t),m=(0,r.useRef)(null);return(0,r.useEffect)((()=>{e?f(0):u(null)}),[e]),(0,r.useEffect)((()=>{void 0!==i&&(f(0),u(null))}),[i]),(0,r.useEffect)((()=>(s&&(o=setTimeout((()=>{a(null)}),1500)),()=>{clearInterval(o)})),[s]),{highlightedItem:s,scrollContainerRef:l,selectedNodeReference:c,selectedItem:d,searchInputRef:m,onClickStudy:function(e){n&&(n(e),u(e),a(e))},handleKeyDown:function(e){const[t,r]=function(e,t){if(null===e.current||null===t.current)return[0,0];const n=e.current.getBoundingClientRect(),r=t.current.getBoundingClientRect(),{height:i}=n,o=n.top-r.top,s=n.bottom-r.bottom+i<0?0:i,a=o-i>0?0:i,{scrollTop:l}=t.current;return[l-a,l+s]}(c,l);if(40===(0,B.hashFromEvent)(e)&&(e.preventDefault(),h(),f(r)),38===(0,B.hashFromEvent)(e)&&(e.preventDefault(),p(),f(t)),13===(0,B.hashFromEvent)(e)&&d){if(!n)return;n(d),a(d)}}};function f(e){null!==l.current&&l.current.scrollTo&&l.current.scrollTo(0,e)}}(s,m,l),D=""===d&&!m.length;return(0,r.useEffect)((()=>{var e;s||u(""),b.CheckMobile.any()||null===(e=S.current)||void 0===e||e.focus()}),[s]),r.createElement(y.AdaptivePopupDialog,{isOpened:s,onClose:a,onClickOutside:a,className:v()(K.dialogLibrary),render:function(){return r.createElement(r.Fragment,null,r.createElement(_.DialogSearch,{reference:S,placeholder:o.t(null,void 0,n(252298)),onChange:I,onFocus:R}),r.createElement(C.DialogSidebarWrapper,null,r.createElement(x,{reference:k,className:K.scroll},D?r.createElement(g.Spinner,null):m.length?r.createElement(r.Fragment,null,r.createElement(O,null,r.createElement(M,{title:o.t(null,void 0,n(515491))})),m.slice().sort(oe).map((e=>{const t=(null==w?void 0:w.id)===e.id;return r.createElement(z,{key:e.id,item:e,onClick:()=>N(e),query:d,regExpRules:p,reference:t?E:void 0,isSelected:(null==w?void 0:w.id)===e.id,
isHighlighted:(null==f?void 0:f.id)===e.id,favoriteClickHandler:t=>{t.stopPropagation(),$(e.title)}})}))):r.createElement(Z,{className:K.noContentBlock,description:o.t(null,void 0,n(353170))}))))},title:o.t(null,void 0,n(561142)),dataName:"indicators-dialog",onKeyDown:P,shouldReturnFocus:c,ref:t});function I(e){u(e.target.value)}function R(){var e;d.length>0&&(null===(e=S.current)||void 0===e||e.select())}}function oe(e,t){return e.isFavorite===t.isFavorite?0:e.isFavorite?-1:1}ne(),G.onSync.subscribe(null,ne);var se=n(559410),ae=n(982552),le=n(650802);function ce(e,t){return e[t]||[]}class de extends class{constructor(e){this._searchInputRef=r.createRef(),this._dialog=r.createRef(),this._visibility=new le.WatchedValue(!1),this._container=document.createElement("div"),this._isForceRender=!1,this._parentSources=[],this._isDestroyed=!1,this._deepFundamentalsHistoryNotificationHasBeenShown=!1,this._showDeepFundamentalsHistoryNotification=()=>{},this._chartWidgetCollection=e}isDestroyed(){return this._isDestroyed}visible(){return this._visibility.readonly()}resetAllStudies(){}updateFavorites(){}open(e,t,n,r,i){this._parentSources=e,this._updateSymbol(),this._setProps({isOpened:!0,shouldReturnFocus:null==i?void 0:i.shouldReturnFocus}),this._visibility.setValue(!0),se.emit("indicators_dialog")}show(e){this.open([],void 0,void 0,void 0,e)}hide(){this._parentSources=[],this._setProps({isOpened:!1}),this._visibility.setValue(!1)}destroy(){this._isDestroyed=!0,i.unmountComponentAtNode(this._container)}_shouldPreventRender(){return this._isDestroyed||!this._isForceRender&&!this._getProps().value().isOpened}_getRenderData(){return{props:this._getProps().value(),container:this._getContainer()}}_applyStudy(e,t){var n;e.isGrayed?se.emit("onGrayedObjectClicked",{type:"study",name:e.shortDescription}):(b.CheckMobile.any()||null===(n=this._searchInputRef.current)||void 0===n||n.select(),async function(e,t,n,r,i){const o=e.activeChartWidget.value();if(!o)return null;const{studyData:a}=t;if(!a)return Promise.resolve(null);const l=a.descriptor;if("java"===l.type){const e=(0,d.tryFindStudyLineToolNameByStudyId)(l.studyId);if(null!==e)return s.tool.setValue(e),null}return o.insertStudy(a.descriptor,n,{stubTitle:t.shortDescription,isFundamental:t.isFundamental,isOverlay:t.isOverlay})}(this._chartWidgetCollection,e,this._parentSources,0,this._symbol).then((()=>{var e;window.is_authenticated;b.CheckMobile.any()||(null===document.activeElement||document.activeElement===document.body||null!==this._dialog.current&&this._dialog.current.contains(document.activeElement))&&(null===(e=this._searchInputRef.current)||void 0===e||e.focus())})))}_setProps(e){const t=this._getProps().value(),{isOpened:n}=t;this._isForceRender=n&&"isOpened"in e&&!e.isOpened;const r={...t,...e};this._getProps().setValue(r)}_requestBuiltInJavaStudies(){return(0,ae.studyMetaInfoRepository)().findAllJavaStudies()}_focus(){var e;this._getProps().value().isOpened&&(null===(e=this._dialog.current)||void 0===e||e.focus())}_getContainer(){return this._container}_getDialog(){
return this._dialog}_getSymbol(){return this._symbol}_updateSymbol(){this._symbol=void 0}}{constructor(e,t){super(e),this._options={onWidget:!1},this._indicatorData=[],t&&(this._options=t),this._props=new le.WatchedValue({data:[],applyStudy:this._applyStudy.bind(this),isOpened:!1,reference:this._getDialog(),onClose:this.hide.bind(this)}),this._getProps().subscribe(this._render.bind(this)),this._init()}_getProps(){return this._props}async _init(){const e=function(e){const t={};return e.forEach((e=>{const{studyData:n}=e;if(!n)return;const{packageName:r}=n;r in t?t[r].push(e):t[r]=[e]})),t}(function(e,t=!0){return e.filter((e=>{const n=!!t||!function(e){return e.isStrategy}(e);return!e.isHidden&&n}))}((await this._requestBuiltInJavaStudies()).map(p)));this._indicatorData=await async function(e,t){let n={...t};return[...ce(n,"tv-basicstudies"),...ce(n,"Script$STD"),...ce(n,"tv-volumebyprice")].filter((e=>!e.isStrategy)).sort(u)}(this._options.onWidget,e),this._setFavorites(),this._setProps({data:this._indicatorData}),Y.subscribe(null,(()=>this._refreshFavorites())),Q.subscribe(null,(()=>this._refreshFavorites()))}_setFavorites(){c.enabled("items_favoriting")&&this._indicatorData.forEach((e=>{e.isFavorite=ee(e.title)}))}_refreshFavorites(){this._setFavorites(),this._setProps({data:this._indicatorData})}_render(){if(this._shouldPreventRender())return;const{props:e,container:t}=this._getRenderData();i.render(r.createElement(ie,{...e}),t)}}},577687:(e,t,n)=>{"use strict";n.d(t,{FavoriteButton:()=>u});var r=n(609838),i=n(50959),o=n(497754),s=n(72571),a=n(239146),l=n(648010),c=n(214877);const d={add:r.t(null,void 0,n(44629)),remove:r.t(null,void 0,n(572482))};function u(e){const{className:t,isFilled:n,isActive:r,onClick:u,...h}=e;return i.createElement(s.Icon,{...h,className:o(c.favorite,"apply-common-tooltip",n&&c.checked,r&&c.active,t),icon:n?a:l,onClick:u,title:n?d.remove:d.add})}},512991:(e,t,n)=>{"use strict";n.d(t,{createRegExpList:()=>o,getHighlightedChars:()=>s,rankedSearch:()=>i});var r=n(372605);function i(e){const{data:t,rules:n,queryString:i,isPreventedFromFiltering:o,primaryKey:s,secondaryKey:a=s,optionalPrimaryKey:l,tertiaryKey:c}=e;return t.map((e=>{const t=l&&e[l]?e[l]:e[s],o=e[a],d=c&&e[c];let u,h=0;return n.forEach((e=>{var n,s,a,l,c;const{re:p,fullMatch:m}=e;if(p.lastIndex=0,(0,r.isString)(t)&&t&&t.toLowerCase()===i.toLowerCase())return h=4,void(u=null===(n=t.match(m))||void 0===n?void 0:n.index);if((0,r.isString)(t)&&m.test(t))return h=3,void(u=null===(s=t.match(m))||void 0===s?void 0:s.index);if((0,r.isString)(o)&&m.test(o))return h=2,void(u=null===(a=o.match(m))||void 0===a?void 0:a.index);if((0,r.isString)(o)&&p.test(o))return h=2,void(u=null===(l=o.match(p))||void 0===l?void 0:l.index);if(Array.isArray(d))for(const e of d)if(m.test(e))return h=1,void(u=null===(c=e.match(m))||void 0===c?void 0:c.index)})),{matchPriority:h,matchIndex:u,item:e}})).filter((e=>o||e.matchPriority)).sort(((e,t)=>{if(e.matchPriority<t.matchPriority)return 1;if(e.matchPriority>t.matchPriority)return-1
;if(e.matchPriority===t.matchPriority){if(void 0===e.matchIndex||void 0===t.matchIndex)return 0;if(e.matchIndex>t.matchIndex)return 1;if(e.matchIndex<t.matchIndex)return-1}return 0})).map((({item:e})=>e))}function o(e,t){const n=[],r=e.toLowerCase(),i=e.split("").map(((e,t)=>`(${0!==t?`[/\\s-]${a(e)}`:a(e)})`)).join("(.*?)")+"(.*)";return n.push({fullMatch:new RegExp(`(${a(e)})`,"i"),re:new RegExp(`^${i}`,"i"),reserveRe:new RegExp(i,"i"),fuzzyHighlight:!0}),t&&t.hasOwnProperty(r)&&n.push({fullMatch:t[r],re:t[r],fuzzyHighlight:!1}),n}function s(e,t,n){const r=[];return e&&n?(n.forEach((e=>{const{fullMatch:n,re:i,reserveRe:o}=e;n.lastIndex=0,i.lastIndex=0;const s=n.exec(t),a=s||i.exec(t)||o&&o.exec(t);if(e.fuzzyHighlight=!s,a)if(e.fuzzyHighlight){let e=a.index;for(let t=1;t<a.length;t++){const n=a[t],i=a[t].length;if(t%2){const t=n.startsWith(" ")||n.startsWith("/")||n.startsWith("-");r[t?e+1:e]=!0}e+=i}}else for(let e=0;e<a[0].length;e++)r[a.index+e]=!0})),r):r}function a(e){return e.replace(/[!-/[-^{-}?]/g,"\\$&")}},260598:(e,t,n)=>{"use strict";n.d(t,{HighlightedText:()=>a});var r=n(50959),i=n(497754),o=n(512991),s=n(275623);function a(e){const{queryString:t,rules:n,text:a,className:l}=e,c=(0,r.useMemo)((()=>(0,o.getHighlightedChars)(t,a,n)),[t,n,a]);return r.createElement(r.Fragment,null,c.length?a.split("").map(((e,t)=>r.createElement(r.Fragment,{key:t},c[t]?r.createElement("span",{className:i(s.highlighted,l)},e):r.createElement("span",null,e)))):a)}},297265:(e,t,n)=>{"use strict";n.d(t,{useWatchedValueReadonly:()=>i});var r=n(50959);const i=(e,t=!1)=>{const n="watchedValue"in e?e.watchedValue:void 0,i="defaultValue"in e?e.defaultValue:e.watchedValue.value(),[o,s]=(0,r.useState)(n?n.value():i);return(t?r.useLayoutEffect:r.useEffect)((()=>{if(n){s(n.value());const e=e=>s(e);return n.subscribe(e),()=>n.unsubscribe(e)}return()=>{}}),[n]),o}},930052:(e,t,n)=>{"use strict";n.d(t,{MatchMedia:()=>i});var r=n(50959);class i extends r.PureComponent{constructor(e){super(e),this._handleChange=()=>{this.forceUpdate()},this.state={query:window.matchMedia(this.props.rule)}}componentDidMount(){this._subscribe(this.state.query)}componentDidUpdate(e,t){this.state.query!==t.query&&(this._unsubscribe(t.query),this._subscribe(this.state.query))}componentWillUnmount(){this._unsubscribe(this.state.query)}render(){return this.props.children(this.state.query.matches)}static getDerivedStateFromProps(e,t){return e.rule!==t.query.media?{query:window.matchMedia(e.rule)}:null}_subscribe(e){e.addListener(this._handleChange)}_unsubscribe(e){e.removeListener(this._handleChange)}}},494707:(e,t,n)=>{"use strict";n.d(t,{Separator:()=>s});var r=n(50959),i=n(497754),o=n(345719);function s(e){return r.createElement("div",{className:i(o.separator,e.className)})}},813113:(e,t,n)=>{"use strict";n.d(t,{Portal:()=>l,PortalContext:()=>c});var r=n(50959),i=n(500962),o=n(925931),s=n(801808),a=n(682925);class l extends r.PureComponent{constructor(){super(...arguments),this._uuid=(0,o.nanoid)()}componentWillUnmount(){this._manager().removeWindow(this._uuid)}
render(){const e=this._manager().ensureWindow(this._uuid,this.props.layerOptions);return 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||"",this.props.className&&e.classList.add(this.props.className),this.props["aria-hidden"]&&e.setAttribute("aria-hidden","true"),i.createPortal(r.createElement(c.Provider,{value:this},this.props.children),e)}moveToTop(){this._manager().moveToTop(this._uuid)}_manager(){return null===this.context?(0,s.getRootOverlapManager)():this.context}}l.contextType=a.SlotContext;const c=r.createContext(null)},132455:(e,t,n)=>{"use strict";n.d(t,{Spinner:()=>r.Spinner});var r=n(672511)},660538:(e,t,n)=>{"use strict";n.d(t,{mediaQueryAddEventListener:()=>r,mediaQueryRemoveEventListener:()=>i});const r=(e,t)=>{(null==e?void 0:e.addEventListener)?e.addEventListener("change",t):e.addListener(t)},i=(e,t)=>{(null==e?void 0:e.removeEventListener)?e.removeEventListener("change",t):e.removeListener(t)}},117105:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24"><path stroke="currentColor" stroke-width="1.2" d="m1.5 1.5 21 21m0-21-21 21"/></svg>'},315130:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18" width="18" height="18"><path stroke="currentColor" stroke-width="1.2" d="m1.5 1.5 15 15m0-15-15 15"/></svg>'},238822:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 14 14" width="14" height="14"><path stroke="currentColor" stroke-width="1.2" d="m1.5 1.5 11 11m0-11-11 11"/></svg>'},663346:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 12" width="12" height="12"><path stroke="currentColor" stroke-width="1.2" d="m1.5 1.5 9 9m0-9-9 9"/></svg>'},534983:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 10 10" width="10" height="10"><path stroke="currentColor" stroke-width="1.2" d="m1.5 1.5 7 7m0-7-7 7"/></svg>'},568648:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28" width="28" height="28" fill="none"><path stroke="currentcolor" stroke-width="1.3" d="M12 9l5 5-5 5"/></svg>'},969859:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" fill="none"><path stroke="currentColor" d="M12.4 12.5a7 7 0 1 0-4.9 2 7 7 0 0 0 4.9-2zm0 0l5.101 5"/></svg>'},239146:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18" width="18" height="18" fill="none"><path fill="currentColor" d="M9 1l2.35 4.76 5.26.77-3.8 3.7.9 5.24L9 13l-4.7 2.47.9-5.23-3.8-3.71 5.25-.77L9 1z"/></svg>'},648010:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18" width="18" height="18" fill="none"><path stroke="currentColor" d="M9 2.13l1.903 3.855.116.236.26.038 4.255.618-3.079 3.001-.188.184.044.259.727 4.237-3.805-2L9 12.434l-.233.122-3.805 2.001.727-4.237.044-.26-.188-.183-3.079-3.001 4.255-.618.26-.038.116-.236L9 2.13z"/></svg>'},925931:(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?"-":"_"),"")},620036:e=>{e.exports={ar:["إلغاء"],ca_ES:["Cancel·la"],cs:["Zrušit"],de:["Abbrechen"],el:["Άκυρο"],en:"Cancel",es:["Cancelar"],fa:["لغو"],fr:["Annuler"],he_IL:["ביטול"],hu_HU:["Törlés"],id_ID:["Batal"],it:["Annulla"],ja:["キャンセル"],ko:["취소"],ms_MY:["Batal"],nl_NL:["Annuleren"],pl:["Anuluj"],pt:["Cancelar"],ro:"Cancel",ru:["Отмена"],sv:["Avbryt"],th:["ยกเลิก"],tr:["İptal"],vi:["Hủy bỏ"],zh:["取消"],zh_TW:["取消"]}},680395:e=>{e.exports={ar:["إغلاق القائمة"],ca_ES:"Close menu",cs:"Close menu",de:["Menü schließen"],el:"Close menu",en:"Close menu",es:["Cerrar menú"],fa:"Close menu",fr:["Fermer le menu"],he_IL:["סגור תפריט"],hu_HU:"Close menu",id_ID:["Pilih menu"],it:["Chiudere menù"],ja:["メニューを閉じる"],ko:["메뉴 닫기"],ms_MY:["Tutup menu"],nl_NL:"Close menu",pl:["Zamknij menu"],pt:["Fechar menu"],ro:"Close menu",ru:["Закрыть меню"],sv:["Stäng menyn"],th:["ปิดเมนู"],tr:["Menüyü kapat"],vi:["Đóng menu"],zh:["关闭菜单"],zh_TW:["關閉選單"]}},44629:e=>{e.exports={ar:["اضف إلى القائمة التفضيلات"],ca_ES:["Afegeix a preferits"],cs:["Přidat do oblíbených"],de:["Zu Favoriten hinzufügen"],el:["Προσθήκη στα αγαπημένα"],en:"Add to favorites",es:["Añadir a favoritos"],fa:["افزودن به موارد مورد علاقه"],fr:["Ajouter aux favoris"],he_IL:["הוסף למועדפים"],hu_HU:["Hozzáadás kedvencekhez"],id_ID:["Tambah ke daftar favorit"],it:["Aggiungi ai preferiti"],ja:["お気に入りに追加"],ko:["즐겨찾기에 넣기"],ms_MY:["Tambah kepada kegemaran"],nl_NL:["Voeg toe aan favorieten"],pl:["Dodaj do ulubionych"],pt:["Adicionar aos favoritos"],ro:"Add to favorites",ru:["Добавить в избранное"],sv:["Lägg till som favorit"],th:["เพิ่มลงรายการโปรด"],tr:["Favorilere ekle"],vi:["Thêm vào mục yêu thích"],zh:["添加到收藏"],zh_TW:["加入收藏"]}},144463:e=>{e.exports={ar:["متاح لحسابات Pro"],ca_ES:"Available for Pro accounts",cs:"Available for Pro accounts",de:["Erhältlich für Pro-Konten"],el:"Available for Pro accounts",en:"Available for Pro accounts",es:["Disponible para las cuentas Pro"],fa:"Available for Pro accounts",fr:["Disponible pour les comptes Pro"],he_IL:["זמין עבור חשבונות Pro"],hu_HU:"Available for Pro accounts",id_ID:["Tersedia untuk akun Pro"],it:["Disponibile per gli account Pro"],ja:["Proアカウントでご利用いただけます"],ko:["프로 계정에서 사용 가능"],ms_MY:["Tersedia untuk akaun Pro"],nl_NL:"Available for Pro accounts",pl:["Dostępne dla kont Pro"],pt:["Disponível para contas Pro"],ro:"Available for Pro accounts",ru:["Доступно для подписок Pro"],sv:["Tillgängligt för Proabonnenter"],th:["มีให้สำหรับบัญชี Pro"],tr:["Pro hesaplar için kullanılabilir"],vi:["Dành cho các tài khoản Pro"],zh:["适用于Pro账户"],zh_TW:["適用於Pro帳戶"]}},192490:e=>{e.exports={ar:["مختارات المحرر"],ca_ES:["Seleccions dels editors"],cs:"Editors' picks",de:["Editor's Picks"],el:"Editors' picks",en:"Editors' picks",es:["Selecciones de los editores"],fa:"Editors' picks",fr:["Choix de la rédaction"],he_IL:["בחירות העורכים"],hu_HU:"Editors' picks",id_ID:["Pilihan editor"],it:["Selezione editoriale"],
ja:["エディターズ・ピック"],ko:["에디터즈 픽"],ms_MY:["Pilihan Editor"],nl_NL:"Editors' picks",pl:["Wybór Redakcji"],pt:["Sugestão da Casa"],ro:"Editors' picks",ru:["Выбор редакции"],sv:["Redaktörens val"],th:["คัดสรรโดยบรรณาธิการ"],tr:["Editörün Seçtikleri"],vi:["Biên tập viên chọn"],zh:["编辑精选"],zh_TW:["編輯精選"]}},561142:e=>{e.exports={ar:["مؤشرات"],ca_ES:["Indicadors"],cs:["Indikátory"],de:["Indikatoren"],el:["Τέχν. Δείκτες"],en:"Indicators",es:["Indicadores"],fa:["اندیکاتورها"],fr:["Indicateurs"],he_IL:["אינדיקטורים"],hu_HU:["Indikátorok"],id_ID:["Indikator"],it:["Indicatori"],ja:["インジケーター"],ko:["지표"],ms_MY:["Penunjuk"],nl_NL:["Indicatoren"],pl:["Wskaźniki"],pt:["Indicadores"],ro:"Indicators",ru:["Индикаторы"],sv:["Indikatorer"],th:["อินดิเคเตอร์"],tr:["Göstergeler"],vi:["Các chỉ báo"],zh:["指标"],zh_TW:["技術指標"]}},353170:e=>{e.exports={ar:["لا توجد مؤشرات تتوافق مع معاييرك."],ca_ES:["Cap indicador coincideix amb els vostres criteris"],cs:["Indikátory nevyhovující vaším požadavkům"],de:["Keine passenden Indikatoren zu Ihren Kriterien gefunden"],el:["Δε βρέθηκαν Τέχνικο. Δείκτες που να ταιριάζουν με τα κριτήρια αναζήτησης"],en:"No indicators matched your criteria",es:["Ningún indicador coincide con sus criterios"],fa:["هیچ اندیکاتوری با شرط شما مطابقت ندارد."],fr:["Aucuns indicateurs ne correspondent à vos critères."],he_IL:["לא נמצאו התאמות לאינדקטור"],hu_HU:["Egyetlen indikátor se felel meg a kritériumoknak."],id_ID:["Tidak ada indikator yang cocok dengan kriteria anda."],it:["Nessun indicatore corrisponde ai criteri"],ja:["条件に合致するインジケーターはありません"],ko:["찾는 지표가 없습니다."],ms_MY:["Tiada penunjuk yang sepadan dengan kriteria anda."],nl_NL:["Geen indicator voldeed aan je criteria"],pl:["Brak wskaźników spełniających twoje kryteria"],pt:["Não foram encontrados indicadores que correspondam à escolha selecionada."],ro:["No indicators matched your criteria."],ru:["Нет подходящих индикаторов."],sv:["Inga indikatorer överensstämde med dina kriterier."],th:["ไม่พบตัวชี้วัดตามเกณฑ์ของคุณ"],tr:["Kriterinize uygun gösterge bulunamadı."],vi:["Không có chỉ số nào khớp với tiêu chí của bạn."],zh:["没有符合您搜索条件的指标."],zh_TW:["沒有指標符合您的搜尋條件。"]}},515491:e=>{e.exports={ar:["اسم النص البرمجي"],ca_ES:["Nom de l'script"],cs:"Script name",de:["Skripname"],el:"Script name",en:"Script name",es:["Nombre del script"],fa:"Script name",fr:["Nom du script"],he_IL:["שם הסקריפט"],hu_HU:["Szkript név"],id_ID:["Nama skrip"],it:["Nome script"],ja:["スクリプト名"],ko:["스크립트 이름"],ms_MY:["Nama skrip"],nl_NL:"Script name",pl:["Nazwa skryptu"],pt:["Nome do script"],ro:"Script name",ru:["Имя скрипта"],sv:["Skriptets namn"],th:["ชื่อชุดคำสั่ง"],tr:["Komut adı"],vi:["Tên Script"],zh:["脚本名称"],zh_TW:["腳本名稱"]}},252298:e=>{e.exports={ar:["بحث"],ca_ES:["Cercar"],cs:["Hledat"],de:["Suche"],el:["Αναζήτησή"],en:"Search",es:["Buscar"],fa:["جستجو"],fr:["Chercher"],he_IL:["חפש"],hu_HU:["Keresés"],id_ID:["Cari"],it:["Cerca"],ja:["検索"],ko:["찾기"],ms_MY:["Cari"],nl_NL:["Zoeken"],pl:["Szukaj"],pt:["Pesquisar"],ro:"Search",ru:["Поиск"],sv:["Sök"],th:["ค้นหา"],tr:["Ara"],vi:["Tìm kiếm"],zh:["搜索"],zh_TW:["搜尋"]}
},572482:e=>{e.exports={ar:["حذف من القائمة المفضلة"],ca_ES:["Treure de preferits"],cs:["Odebrat z oblíbených"],de:["Aus Favoriten entfernen"],el:["Διαγραφή απο τα αγαπημένα"],en:"Remove from favorites",es:["Quitar de favoritos"],fa:["حذف از موارد مورد علاقه"],fr:["Retirer des favoris"],he_IL:["הסר ממועדפים"],hu_HU:["Eltávolít kedvencek közül"],id_ID:["Hilangkan dari favorit"],it:["Rimuovi dai preferiti"],ja:["お気に入りから削除"],ko:["즐겨찾기지움"],ms_MY:["Buang dari kegemaran"],nl_NL:["Verwijder van favorieten"],pl:["Usuń z ulubionych"],pt:["Remover dos favoritos"],ro:"Remove from favorites",ru:["Удалить из предпочтений"],sv:["Ta bort från favoriter"],th:["ลบออกจากรายการโปรด"],tr:["Favorilerimden çıkar"],vi:["Loại bỏ khỏi mục yêu thích"],zh:["从收藏中移除"],zh_TW:["從收藏移除"]}}}]);