Files
ai/charting_library/bundles/symbol-info-dialog-impl.2f21baa368bc25a999d2.js

12 lines
33 KiB
JavaScript

(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[3968],{14487:(e,t)=>{var n;!function(){"use strict";var o={}.hasOwnProperty;function r(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var i=typeof n;if("string"===i||"number"===i)e.push(n);else if(Array.isArray(n)&&n.length){var s=r.apply(null,n);s&&e.push(s)}else if("object"===i)for(var a in n)o.call(n,a)&&n[a]&&e.push(a)}}return e.join(" ")}e.exports?(r.default=r,e.exports=r):void 0===(n=function(){return r}.apply(t,[]))||(e.exports=n)}()},8878:e=>{e.exports={brand:"brand-H6_2ZGVv",hovered:"hovered-H6_2ZGVv",background:"background-H6_2ZGVv","states-without-bg":"states-without-bg-H6_2ZGVv",disableActiveStateStyles:"disableActiveStateStyles-H6_2ZGVv",dimmed:"dimmed-H6_2ZGVv",selected:"selected-H6_2ZGVv",activated:"activated-H6_2ZGVv",gray:"gray-H6_2ZGVv","light-gray":"light-gray-H6_2ZGVv",xsmall:"xsmall-H6_2ZGVv",small:"small-H6_2ZGVv",medium:"medium-H6_2ZGVv",large:"large-H6_2ZGVv",textButton:"textButton-H6_2ZGVv",link:"link-H6_2ZGVv",content:"content-H6_2ZGVv",withStartIcon:"withStartIcon-H6_2ZGVv","start-icon":"start-icon-H6_2ZGVv",withEndIcon:"withEndIcon-H6_2ZGVv","end-icon":"end-icon-H6_2ZGVv",iconOnly:"iconOnly-H6_2ZGVv",caret:"caret-H6_2ZGVv",semibold18px:"semibold18px-H6_2ZGVv",semibold16px:"semibold16px-H6_2ZGVv",semibold14px:"semibold14px-H6_2ZGVv",regular12px:"regular12px-H6_2ZGVv",regular14px:"regular14px-H6_2ZGVv",regular16px:"regular16px-H6_2ZGVv"}},53160:e=>{e.exports={"tablet-normal-breakpoint":"(max-width: 768px)","small-height-breakpoint":"(max-height: 360px)","tablet-small-breakpoint":"(max-width: 440px)"}},10306:e=>{e.exports={label:"label-ou2KkVr5",text:"text-ou2KkVr5",icon:"icon-ou2KkVr5"}},55604:e=>{e.exports={icon:"icon-OJpk_CAQ"}},13528:(e,t,n)=>{"use strict";n.d(t,{AppContext:()=>o});const o=(0,n(79474).createContext)({isOnMobileAppPage:()=>!1,isRtl:!1,locale:"en",renderMode:"legacy"})},69947:(e,t,n)=>{"use strict";n.d(t,{useIsomorphicLayoutEffect:()=>r});var o=n(79474);function r(e,t){("undefined"==typeof window?o.useEffect:o.useLayoutEffect)(e,t)}},50534:(e,t,n)=>{"use strict";function o(e,t,n,o,r){function i(r){if(e>r.timeStamp)return;const i=r.target;void 0!==n&&null!==t&&null!==i&&i.ownerDocument===o&&(t.contains(i)||n(r))}return r.click&&o.addEventListener("click",i,!1),r.mouseDown&&o.addEventListener("mousedown",i,!1),r.touchEnd&&o.addEventListener("touchend",i,!1),r.touchStart&&o.addEventListener("touchstart",i,!1),()=>{o.removeEventListener("click",i,!1),o.removeEventListener("mousedown",i,!1),o.removeEventListener("touchend",i,!1),o.removeEventListener("touchstart",i,!1)}}n.d(t,{addOutsideEventListener:()=>o})},4138:(e,t,n)=>{"use strict";n.d(t,{useOutsideEvent:()=>s});var o=n(79474),r=n(69947),i=n(50534);function s(e){const{click:t,mouseDown:n,touchEnd:s,touchStart:a,handler:l,reference:c}=e,d=(0,o.useRef)(null),u=(0,o.useRef)("undefined"==typeof window?0:new window.CustomEvent("timestamp").timeStamp);return(0,r.useIsomorphicLayoutEffect)((()=>{const e={click:t,mouseDown:n,touchEnd:s,
touchStart:a},o=c?c.current:d.current;return(0,i.addOutsideEventListener)(u.current,o,l,document,e)}),[t,n,s,a,l]),c||d}},73457:(e,t,n)=>{"use strict";n.d(t,{Icon:()=>r});var o=n(79474);const r=o.forwardRef(((e,t)=>{const{icon:n="",title:r,ariaLabel:i,ariaLabelledby:s,ariaHidden:a,...l}=e,c=!!(r||i||s);return o.createElement("span",{role:"img",...l,ref:t,"aria-label":i,"aria-labelledby":s,"aria-hidden":a||!c,title:r,dangerouslySetInnerHTML:{__html:n}})}))},66334:(e,t,n)=>{"use strict";n.d(t,{Icon:()=>o.Icon});var o=n(73457)},52885:(e,t,n)=>{"use strict";n.d(t,{Portal:()=>c,PortalContext:()=>d});var o=n(79474),r=n(29365),i=n(56770),s=n(46765),a=n(70014),l=n(99286);class c extends o.PureComponent{constructor(){super(...arguments),this._uuid=(0,i.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(a.FOCUS_TRAP_DATA_ATTRIBUTE)&&e.setAttribute(a.FOCUS_TRAP_DATA_ATTRIBUTE,"true"),this.props["aria-hidden"]&&e.setAttribute("aria-hidden","true"),r.createPortal(o.createElement(d.Provider,{value:this},this.props.children),e)}moveToTop(){this._manager().moveToTop(this._uuid)}_manager(){return null===this.context?(0,s.getRootOverlapManager)():this.context}}c.contextType=l.SlotContext;const d=o.createContext(null)},99286:(e,t,n)=>{"use strict";n.d(t,{Slot:()=>r,SlotContext:()=>i});var o=n(79474);class r 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 i=o.createContext(null)},40197:(e,t,n)=>{"use strict";function o(e){return i(e,s)}function r(e){return i(e,a)}function i(e,t){const n=Object.entries(e).filter(t),o={};for(const[e,t]of n)o[e]=t;return o}function s(e){const[t,n]=e;return 0===t.indexOf("data-")&&"string"==typeof n}function a(e){return 0===e[0].indexOf("aria-")}function l(e,t){const n=o(e);return t&&(n["data-qa-id"]=t),n}n.d(t,{filterAriaProps:()=>r,filterCheckedDataProps:()=>l,filterDataProps:()=>o,filterProps:()=>i,isAriaAttribute:()=>a,isDataAttribute:()=>s})},46765:(e,t,n)=>{"use strict";n.d(t,{OverlapManager:()=>s,getRootOverlapManager:()=>l});var o=n(85842),r=n(70014);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 s{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 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,n)=>{e.hasAttribute(r.FOCUS_TRAP_DATA_ATTRIBUTE)&&e.setAttribute(r.FOCUS_TRAP_DATA_ATTRIBUTE,e===t?"true":"false")})),t.style.zIndex=(++this._index).toString()}}removeWindow(e){this.unregisterWindow(e)}}const a=new WeakMap;function l(e=document){const t=e.getElementById("overlap-manager-root");if(null!==t)return(0,o.ensureDefined)(a.get(t));{const t=new s(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.dataset.qaId="overlap-manager-root",t}(e);return a.set(n,t),t.setContainer(n),e.body.appendChild(n),t}}var c;!function(e){e[e.BaseZindex=150]="BaseZindex"}(c||(c={}))},11288:(e,t,n)=>{"use strict";n.d(t,{setFixedBodyState:()=>c});const o=(()=>{let e;return()=>{if(void 0===e){const t=document.createElement("div"),n=t.style;n.visibility="hidden",n.width="100px",n.msOverflowStyle="scrollbar",document.body.appendChild(t);const o=t.offsetWidth;t.style.overflow="scroll";const r=document.createElement("div");r.style.width="100%",t.appendChild(r);const i=r.offsetWidth;t.parentNode?.removeChild(t),e=o-i}return e}})();function r(e,t,n){null!==e&&e.style.setProperty(t,n)}function i(e,t){return getComputedStyle(e,null).getPropertyValue(t)}function s(e,t){return parseInt(i(e,t))}let a=0,l=!1;function c(e){const{body:t}=document,n=t.querySelector(".widgetbar-wrap");if(e&&1==++a){const e=i(t,"overflow"),a=s(t,"padding-right");"hidden"!==e.toLowerCase()&&t.scrollHeight>t.offsetHeight&&(r(n,"right",`${o()}px`),t.style.paddingRight=`${a+o()}px`,l=!0),t.classList.add("i-no-scroll")}else if(!e&&a>0&&0==--a&&(t.classList.remove("i-no-scroll"),l)){r(n,"right","0px");let e=0;0,t.scrollHeight<=t.clientHeight&&(e-=o()),t.style.paddingRight=(e<0?0:e)+"px",l=!1}}},
64483:(e,t,n)=>{"use strict";n.d(t,{createReactRoot:()=>u});var o=n(79474),r=n(29365),i=n(36334),s=n(13528),a=n(90141),l=n(81458);const c={iOs:"old",android:"new",old:"old",new:"new",any:"any"};function d(e){const[t]=(0,o.useState)({isOnMobileAppPage:e=>(0,a.isOnMobileAppPage)(c[e]),isRtl:(0,l.isRtl)(),locale:window.locale,renderMode:e.renderMode??"legacy"});return o.createElement(s.AppContext.Provider,{value:t},e.children)}function u(e,t,n="legacy"){const s=o.createElement(d,{renderMode:n},e);if("modern"===n){const e=(0,i.createRoot)(t);return e.render(s),{render(t){e.render(o.createElement(d,{renderMode:n},t))},unmount(){e.unmount()}}}return r.render(s,t),{render(e){r.render(o.createElement(d,{renderMode:n},e),t)},unmount(){r.unmountComponentAtNode(t)}}}},73873:(e,t,n)=>{"use strict";n.d(t,{DialogBreakpoints:()=>r});var o=n(53160);const r={SmallHeight:o["small-height-breakpoint"],TabletSmall:o["tablet-small-breakpoint"],TabletNormal:o["tablet-normal-breakpoint"]}},60334:(e,t,n)=>{"use strict";n.d(t,{SymbolSearchFlag:()=>g});var o=n(79474),r=n(14487),i=n.n(r),s=n(47097),a=n(93645);const l=n.p+"mock-dark.16b5f3a431f502b03ae3.svg",c=n.p+"mock-light.d201313017eb2c1b989f.svg";function d(e){return e===s.StdTheme.Dark?l:c}var u=n(57069),m=n(49841),p=n(85842);const h=a.LogoSize.Medium;var v=n(55604);function g(e){const{country:t,tooltip:n,providerId:r,sourceId:s,sourceLogoId:l,className:c}=e,g=(0,u.useWatchedValueReadonly)({watchedValue:m.watchedTheme}),[f,y]=(0,o.useState)(function({country:e,providerId:t,sourceId:n,sourceLogoId:o}){const r=(0,a.getLogoUrlResolver)();return i=>{const s=e=>r.getProviderLogoUrl(e,h),a=[{value:o,resolve:e=>r.getSymbolLogoUrl(e,h)},{value:n,resolve:s},{value:e,resolve:e=>r.getCountryFlagUrl(e.toUpperCase(),h)},{value:t,resolve:s}].find((({value:e})=>void 0!==e&&e.length>0));return void 0!==a?a.resolve((0,p.ensureDefined)(a.value)):d(i)}}({country:t,providerId:r,sourceId:s,sourceLogoId:l})(g));return o.createElement("img",{className:i()(c,"apply-common-tooltip",v.icon),crossOrigin:"","data-tooltip":n,src:f,onError:function(){y(d(g))}})}},54466:(e,t,n)=>{"use strict";n.d(t,{MatchMedia:()=>r});var o=n(79474);class r extends o.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.addEventListener("change",this._handleChange)}_unsubscribe(e){e.removeEventListener("change",this._handleChange)}}},64888:(e,t,n)=>{"use strict";n.d(t,{Portal:()=>o.Portal,PortalContext:()=>o.PortalContext});var o=n(52885)},36334:(e,t,n)=>{"use strict";var o=n(29365);t.createRoot=o.createRoot,o.hydrateRoot},96696:e=>{e.exports={
"tablet-small-breakpoint":"(max-width: 440px)",dialog:"dialog-mBXAEZtB",wrap:"wrap-mBXAEZtB",separator:"separator-mBXAEZtB",groupSeparator:"groupSeparator-mBXAEZtB",widgetSeparator:"widgetSeparator-mBXAEZtB",firstGroup:"firstGroup-mBXAEZtB",row:"row-mBXAEZtB",item:"item-mBXAEZtB",menuButton:"menuButton-mBXAEZtB",multipleLinks:"multipleLinks-mBXAEZtB",title:"title-mBXAEZtB",valueItem:"valueItem-mBXAEZtB",copyButton:"copyButton-mBXAEZtB",sessionHeader:"sessionHeader-mBXAEZtB",sessionWidget:"sessionWidget-mBXAEZtB",timeZone:"timeZone-mBXAEZtB",link:"link-mBXAEZtB",icon:"icon-mBXAEZtB",startSlot:"startSlot-mBXAEZtB",endSlot:"endSlot-mBXAEZtB"}},26588:e=>{e.exports={button:"button-GwQQdU8S",pressed:"pressed-GwQQdU8S",hover:"hover-GwQQdU8S",clicked:"clicked-GwQQdU8S",isInteractive:"isInteractive-GwQQdU8S",accessible:"accessible-GwQQdU8S",isGrouped:"isGrouped-GwQQdU8S",isActive:"isActive-GwQQdU8S",isOpened:"isOpened-GwQQdU8S",isDisabled:"isDisabled-GwQQdU8S",text:"text-GwQQdU8S",icon:"icon-GwQQdU8S",endIcon:"endIcon-GwQQdU8S"}},3247:e=>{e.exports={icon:"icon-mwO_HX5L"}},11313:(e,t,n)=>{"use strict";n.d(t,{DEFAULT_TOOL_WIDGET_BUTTON_THEME:()=>a,ToolWidgetButton:()=>l});var o=n(79474),r=n(14487),i=n(66334),s=n(26588);const a=s,l=o.forwardRef(((e,t)=>{const{tag:n="div",icon:a,endIcon:l,isActive:c,isOpened:d,isDisabled:u,isDisabledAppearance:m,isDisableInteraction:p,isGrouped:h,isHovered:v,isClicked:g,onClick:f,text:y,textBeforeIcon:w,title:_,theme:b=s,className:E,forceInteractive:S,"data-name":x,"data-tooltip":I,tooltipPosition:A,children:C,isPressed:N,...B}=e,k=r(E,b.button,{"apply-common-tooltip":Boolean(_||I),"common-tooltip-vertical":Boolean(I)&&"vertical"===A,[b.isActive]:c,[b.isOpened]:d,[b.isInteractive]:(S||Boolean(f))&&!u&&!m,[b.isDisabled]:Boolean(u||m),[b.isGrouped]:h,[b.hover]:v,[b.clicked]:g,[b.pressed]:N}),V=a&&("string"==typeof a?o.createElement(i.Icon,{className:b.icon,icon:a}):o.cloneElement(a,{className:r(b.icon,a.props.className)}));return"button"===n?o.createElement("button",{...B,ref:t,type:"button",className:r(k,b.accessible),disabled:u&&!m||p,onClick:f,title:_,"data-name":x,"data-tooltip":I},w&&y&&o.createElement("div",{className:r("js-button-text",b.text)},y),V,!w&&y&&o.createElement("div",{className:r("js-button-text",b.text)},y),C):o.createElement("div",{...B,ref:t,"data-role":"button",className:k,onClick:u||p?void 0:f,title:_,"data-name":x,"data-tooltip":I},w&&y&&o.createElement("div",{className:r("js-button-text",b.text)},y),V,!w&&y&&o.createElement("div",{className:r("js-button-text",b.text)},y),l&&o.createElement(i.Icon,{icon:l,className:s.endIcon}),C)}))},65659:(e,t,n)=>{"use strict";n.r(t),n.d(t,{SymbolInfoDialogImpl:()=>_e});var o=n(79474),r=n(14487),i=n.n(r),s=n(91599),a=n(66334),l=n(73457),c=n(42391),d=n(43616),u=n.n(d),m=n(8878),p=n.n(m);const h=e=>{const t=(0,
o.useContext)(c.CustomBehaviourContext),{className:n,isSelected:r,isDimmed:s,isHovered:a,size:l="medium",color:d,startIcon:u,endIcon:m,showCaret:h,enableActiveStateStyles:v=t.enableActiveStateStyles,typography:g,iconOnly:f,isLink:y=!1,isActivated:w}=e;return i()(n,p().textButton,y&&p().link,r&&p().selected,s&&p().dimmed,a&&p().hovered,p()[d],p()[l],u&&p().withStartIcon,f&&p().iconOnly,(h||m)&&p().withEndIcon,!v&&p().disableActiveStateStyles,g&&p()[g],w&&p().activated)};function v(e){return o.createElement(o.Fragment,null,o.createElement("span",{className:i()(p().background,e.statesWithoutBg&&p()["states-without-bg"])}),e.startIcon&&o.createElement(l.Icon,{...e.startIconAriaAttrs,className:p()["start-icon"],icon:e.startIcon}),o.createElement("span",{className:p().content},e.children),(e.endIcon||e.showCaret)&&(e=>o.createElement(l.Icon,{...e.showCaret?void 0:e.endIconAriaAttrs,className:i()(p()["end-icon"],e.showCaret&&p().caret),icon:e.showCaret?u():e.endIcon}))(e))}function g(e){const{reference:t,className:n,isSelected:r,isHovered:i,isDimmed:s,children:a,startIcon:l,startIconAriaAttrs:c,showCaret:d,color:u,endIcon:m,endIconAriaAttrs:p,size:g,typography:f,iconOnly:y,statesWithoutBg:w,isActivated:_,dataQaId:b,...E}=e;return o.createElement("button",{"data-qa-id":b,...E,className:h({className:n,isSelected:r,isHovered:i,startIcon:l,showCaret:d,endIcon:m,color:u,size:g,typography:f,iconOnly:y,isDimmed:s,isActivated:_}),ref:t},o.createElement(v,{showCaret:d,startIcon:l,startIconAriaAttrs:{...c},endIcon:m,endIconAriaAttrs:{...p},statesWithoutBg:w},a))}n(14232);n(90741);var f=n(35088),y=n(81323),w=n(45327);class _ extends o.PureComponent{constructor(e){super(e),this._fullSessionScheduleViewModel=new y.FullSessionScheduleViewModel(e.source)}componentWillUnmount(){this._fullSessionScheduleViewModel.destroy()}render(){const{className:e,showAllDays:t,timeZoneClassName:n}=this.props;return this.props.source.marketStatusModel()?.futuresContractExpirationTime()?.expired().value()?null:o.createElement(w.FullSessionScheduleRenderer,{className:e,timezone:this._fullSessionScheduleViewModel.timezone(),now:this._fullSessionScheduleViewModel.currentTimeValue(),sessionDays:this._fullSessionScheduleViewModel.sessionsDays,showAllDays:t,timeZoneClassName:n})}}var b=n(11313),E=n(47121),S=n(88434),x=n(1324),I=n(83409);const A=(0,S.default)(C,1500);function C(){document.removeEventListener("scroll",C),document.removeEventListener("touchstart",C),document.removeEventListener("mouseout",C),(0,x.hide)()}const N=400;function B(e,t={}){const{initialDelay:o=N,leaveOnMouseOut:r,withoutThumbsupIcon:i,text:a=s.t(null,void 0,n(47150))}=t;(0,x.showOnElement)(e,{below:!0,tooltipDelay:o,content:{type:"html",data:`${a}${i?"":` <span style="vertical-align: middle;">${I}</span>`}`}}),document.addEventListener("scroll",C),document.addEventListener("touchstart",C),r||document.addEventListener("mouseout",C)}var k=n(95398),V=n(22955),Z=n(46788),L=n(47728),M=n(39565),T=n(96696);function D(e){const{onClose:t,isOpened:i,groups:a,statusProvider:l}=e,[c,d]=(0,
o.useState)(!1),u=(0,o.useRef)(null),m=(0,o.useRef)(null),p=c?Z:V;return(0,o.useEffect)((()=>{null!==m.current&&m.current()}),[c]),o.createElement(f.AdaptivePopupDialog,{ref:u,className:T.dialog,isOpened:i,title:s.t(null,void 0,n(24845)),onClose:t,onClickOutside:t,dataName:"symbol-info-dialog",render:function({requestResize:e}){return m.current=e,o.createElement("div",{className:T.wrap,"data-symbol-info-dialog-content":!0},h(),a.flat().length&&l&&o.createElement("div",{className:r(T.separator,T.widgetSeparator)}),l&&o.createElement(o.Fragment,null,o.createElement("div",{className:T.sessionHeader},o.createElement("span",{className:T.title},s.t(null,void 0,n(9956))),o.createElement(g,{onClick:()=>d(!c),color:"light-gray",size:"small",startIcon:p},s.t(null,void 0,n(57850)))),o.createElement(_,{source:l,showAllDays:c,className:T.sessionWidget,timeZoneClassName:T.timeZone})))},showSeparator:!0});function h(){return a?a.map(((e,t)=>e.length?o.createElement(o.Fragment,{key:t},o.createElement("div",{className:0===t?T.firstGroup:void 0},function(e){const t=[];for(let n=0;n<e.length;n+=2)t.push(e.slice(n,n+2));return t.map(((e,t)=>o.createElement(H,{key:t,fields:e})))}(e)),t!==a.length-1&&o.createElement("div",{className:r(T.separator,T.groupSeparator)})):null)):null}}function H(e){return o.createElement("div",{className:T.row},e.fields.map(((e,t)=>{const n=function(e){const t=e.value||e.defValue||"-";return!1===e.capitalize||Array.isArray(t)?t:(0,k.capitalizeFirstLetter)(t)}(e);return Array.isArray(n)?o.createElement(O,{key:t,field:e,fieldValue:n}):o.createElement(G,{key:t,field:e,fieldValue:n})})))}function O(e){const{field:t,fieldValue:n}=e,r=(0,o.useMemo)((()=>n.map((e=>{try{return new URL(e)}catch(e){return}})).filter((e=>void 0!==e))),[n]),[i,...s]=r;return o.createElement("div",{className:T.item},o.createElement("span",{className:T.title},t.title),o.createElement("div",{className:T.multipleLinks},o.createElement(P,{value:U(i),startSlot:t.startSlot,endSlot:t.endSlot,canCopy:t.canCopy,link:n[0]}),s.length?o.createElement(ToolWidgetMenu,{className:T.menuButton,arrow:!1,closeOnClickOutside:!0,horizontalAttachEdge:HorizontalAttachEdge.Right,horizontalDropDirection:HorizontalDropDirection.FromRightToLeft,verticalAttachEdge:VerticalAttachEdge.AutoStrict,content:o.createElement(a.Icon,{icon:dotsIcon})},s.map((e=>o.createElement(PopupMenuItem,{suppressToolboxClick:!1,onClick:()=>window.open(e.href),label:U(e),key:e.href,toolbox:o.createElement(a.Icon,{className:T.icon,icon:M})})))):null))}function U(e){return e.hostname.replace(/^www\./g,"")}function G(e){const{field:t,fieldValue:n}=e;return o.createElement("div",{className:T.item},o.createElement("span",{className:T.title},t.title),o.createElement(P,{value:n,startSlot:t.startSlot,endSlot:t.endSlot,canCopy:t.canCopy,link:t.link}))}function P(e){const{value:t,canCopy:i,link:l,startSlot:c,endSlot:d}=e,u=(0,o.useRef)(null),m=l?"a":"div",p="-"!==t;return o.createElement("div",{className:T.valueItem},c&&p&&o.createElement("div",{className:T.startSlot},c),o.createElement(m,{href:l,
target:"_blank",className:r(l&&T.link)},o.createElement("span",{ref:u},t),l&&o.createElement(a.Icon,{icon:M,className:T.icon})),i&&p&&o.createElement(b.ToolWidgetButton,{className:T.copyButton,onClick:async function(){await(0,E.copyToClipboard)({text:t}),u.current&&(B(u.current,{initialDelay:0,leaveOnMouseOut:!0,text:s.t(null,void 0,n(79342))}),A())},icon:L}),d&&p&&o.createElement("div",{className:T.endSlot},d))}var R=n(89659),F=n(43533),W=n(56476);const z=new R.WatchedValue(!1);class Q{constructor(e){this._symbolInfo=new R.WatchedValue(null),this._quotesProvider=new W.QuotesProvider("simple"),this._setSymbolInfo=e=>{this._marketStatusModel.setSymbolInfo(e)},this._symbol=e.pro_name,this._quotesProvider.setQuotesSessionSymbol(this._symbol),this._symbolInfo.setValue(e),this._marketStatusModel=new F.MarketStatusModel(this._quotesProvider),this._symbolInfo.subscribe(this._setSymbolInfo,{callWithLast:!0})}destroy(){this._quotesProvider.destroy(),this._marketStatusModel.destroy(),this._symbolInfo.unsubscribe(this._setSymbolInfo)}symbol(){return new R.WatchedValue(this._symbol).readonly()}isSymbolInvalid(){return new R.WatchedValue(!1).readonly()}marketStatusModel(){return this._marketStatusModel}errorStatus(){return new R.WatchedValue(null).readonly()}symbolInfo(){return this._symbolInfo.readonly()}hidden(){return z.readonly()}dataProblemModel(){return null}dataUpdatedModeModel(){return null}async pineSourceCodeModel(){return null}alertSourceModel(){return null}}class X{constructor(e){this._adapter=new Q(e)}destroy(){this._adapter.destroy()}getAdapter(){return this._adapter.marketStatusModel()?this._adapter:null}}var q=n(4751),j=n(16905);function $(e,t){const n=Math.floor(t/1e4)%1e4,o=Math.floor(t/100)%100-1,r=t%100;return e.format(new Date(Date.UTC(n,o,r)))}var K=n(60334),Y=n(3247);function J(e){return o.createElement(K.SymbolSearchFlag,{...e,className:Y.icon})}var ee=n(37032),te=n(85842),ne=n(58456),oe=n(24624);const re=new Set(["cfd","etf","reit","etn","dr","cdi"]);function ie(e,t){return(e.minmove2??0)>0&&!e.fractional&&0!==e.pricescale}function se(e,t){return ie(e)&&void 0!==e.pricescale?new ne.PriceFormatter({priceScale:e.pricescale/(0,te.ensureDefined)(e.minmove2)}).format((0,te.ensureDefined)(e.minmove2)/e.pricescale):null}function ae(e,t){const{minmov:o,pricescale:r,fractional:i,minmove2:a}=e;if(void 0===o||void 0===r)return null;if(i&&r&&o)return a?s.t(null,{context:"double fractional tick size",replace:{minmove2:String(a),pricescale:String(r/a)}},n(18992)):`${o}/${r}`;const{variable_tick_size:l,...c}=e;return(0,ee.createSeriesFormatter)(c,"default").format(o/r)}function le(e,t){const{type:n="",typespecs:o=[]}=e;return[n,...o.filter((e=>oe.VISIBLE_TYPESPECS.has(e)))].map((e=>re.has(e)?e.toUpperCase():e)).join(" ")}function ce(e,t){return!1}function de(e,t){return!0}function ue(e,t){return"expiration"in e}const me=new Set(["stock","fund","dr","right","warrant","structured"]);var pe=n(30708),he=n(10306);function ve(e){const{className:t}=e;return o.createElement("span",{className:i()(t,he.label)
},o.createElement(a.Icon,{className:he.icon,icon:pe}),o.createElement("span",{className:he.text},s.t(null,void 0,n(41458))))}var ge=n(95397),fe=n(48994);var ye=n(64483);let we;class _e{constructor(){this._container=null,this._rootInstance=null,this._renderDialog=e=>{this._container||(this._container=document.createElement("div"));const t=o.createElement(D,{...e});this._rootInstance?this._rootInstance.render(t):this._rootInstance=(0,ye.createReactRoot)(t,this._container)},this._close=()=>{this._rootInstance?.unmount(),this._rootInstance=null},this._getVisibleURL=e=>{try{return new URL(e).hostname.replace(/^www\./g,"")}catch(e){return}}}async show(e){const t=e.symbolInfo;if(!t)return;let r;r=new X(t);const i=function(e){const t=(0,j.isFeaturesetEnabled)("show_exchange_logos");return[{title:s.t(null,void 0,n(34993)),group:1,propName:"name",getEndSlot:e=>{if((0,ge.isSymbolDelisted)(e.typespecs))return o.createElement(ve,null)}},{title:s.t(null,void 0,n(97987)),group:1,propName:"description",getter:(e,t)=>t?(0,fe.getTranslatedSymbolDescription)(t):e.description},{title:s.t(null,void 0,n(72684)),group:1,propName:"front_contract",visibility:ce,canCopy:!0},{title:s.t(null,void 0,n(78729)),group:1,propName:"sector",visibility:(e,t)=>me.has(e.type??"")&&!!t?.sector},{title:s.t(null,void 0,n(87761)),group:1,propName:"industry",visibility:(e,t)=>me.has(e.type??"")&&!!t?.industry},{title:s.t(null,void 0,n(67917)),group:1,propName:"isin-displayed",canCopy:!0,visibility:(e,t)=>!1},{title:s.t(null,void 0,n(9919)),group:1,propName:"cusip",canCopy:!0,visibility:(e,t)=>!1},{title:s.t(null,void 0,n(81908)),group:1,propName:"figi",canCopy:!0,getter:(e,t)=>e.figi&&e.figi["exchange-level"]?e.figi["exchange-level"]:null,visibility:(e,t)=>!1},{title:s.t(null,void 0,n(87978)),group:1,propName:"web_site_url",showURLAsValue:!0,capitalize:!1,visibility:(e,t)=>"stock"===e.type&&!!t?.web_site_url},{title:s.t(null,void 0,n(91868)),group:1,propName:"homepage",showURLAsValue:!0,capitalize:!1,visibility:(e,t)=>"fund"===e.type&&!!t?.homepage},{title:s.t(null,void 0,n(87978)),group:1,propName:"website",capitalize:!1,getter:(e,t)=>t?.website?t?.website:null,visibility:(e,t)=>!!t?.website?.length},{title:s.t(null,void 0,n(41019)),group:2,propName:"type",getter:le},{title:s.t(null,void 0,n(57371)),group:2,propName:"expiration",visibility:ue,formatter:$.bind(null,e.dateFormatter)},{title:s.t(null,void 0,n(43282)),group:2,propName:"pointvalue"},{title:s.t(null,void 0,n(31658)),group:2,propName:"listed_exchange",visibility:de,getStartSlot:(e,n)=>{const r=n?.country_code??e.country,i=e.exchange_logo;return t?o.createElement(J,{country:r,providerId:e.provider_id,sourceId:i}):void 0}},{title:s.t(null,void 0,n(26607)),group:2,propName:"exchange",visibility:de,getter:ee.getSymbolTradedExchange},{title:s.t(null,void 0,n(38948)),group:2,propName:"source",getter:ee.getSourceForEconomySymbol,visibility:(e,t)=>Boolean((0,ee.getSourceForEconomySymbol)(e))},{title:s.t(null,void 0,n(61728)),group:2,propName:"currency_code",getter:(e,t)=>(0,
ee.symbolOriginalCurrency)(e,!0),visibility:(e,t)=>Boolean((0,ee.symbolOriginalCurrency)(e,!0)),formatter:e=>e??"",defValue:""},{title:s.t(null,void 0,n(69034)),group:2,propName:"value_unit_id",getter:(t,n)=>e.unitDescription((0,ee.measureUnitId)(t)),visibility:(t,n)=>Boolean((0,ee.measureUnitId)(t)&&(0,ee.isMeasureUnitSymbol)(t)&&e.showUnit),formatter:e=>e??"",defValue:""},{title:s.t(null,void 0,n(73354)),group:2,propName:"unit_id",getter:(t,n)=>e.unitDescription((0,ee.symbolOriginalUnit)(t,!!e.showUnit)),visibility:(t,n)=>Boolean((0,ee.symbolOriginalUnit)(t,!!e.showUnit)),formatter:e=>e??"",defValue:""},{title:s.t(null,void 0,n(98490)),group:2,propName:"pip_size",getter:se,visibility:ie},{title:s.t(null,void 0,n(73795)),group:2,propName:"tick_size",getter:ae}]}(e);(0,q.getAdditionalSymbolInfoFields)().forEach((e=>{i.push({title:e.title,propName:e.propertyName,group:3})})),this._retrieveValues(i,t),this._renderDialog(this._createDialogProps(i,r))}static getInstance(){return we||(we=new _e),we}_createDialogProps(e,t){return{isOpened:!0,onClose:()=>{t?.destroy(),this._close()},groups:this._separateByGroups(e),statusProvider:t?.getAdapter()}}_setURLs(e,t){}_defaultFormatter(e){return e?.toString()??"-"}_setFieldValue(e,t){(void 0===e.value||t)&&(e.value=t)}_retrieveValues(e,t,n){const o=n??t;for(let r=0;r<e.length;r++){const i=e[r].getter,s=e[r].getStartSlot?.(t,n),a=e[r].getEndSlot?.(t,n);if(s&&(e[r].startSlot=s),a&&(e[r].endSlot=a),i){const o=i(t,n);null!==o&&this._setFieldValue(e[r],o);continue}const l=e[r].propName,c=l in o?l:void 0;if(void 0!==c){const t=o[c];this._setFieldValue(e[r],(e[r].formatter||this._defaultFormatter)(t))}}this._removeHiddenFields(t,e,n)}_removeHiddenFields(e,t,n){for(let o=0;o<t.length;o++){const r=t[o];void 0===r.visibility||r.visibility(e,n)||(t.splice(o,1),o--)}}_separateByGroups(e){const t={};return e.forEach((e=>{const n=e.group;t[n]||(t[n]=[]),t[n].push(e)})),Object.values(t)}async _getMarket(e){return null}}},24624:(e,t,n)=>{"use strict";n.d(t,{VISIBLE_TYPESPECS:()=>a,marketType:()=>l});var o=n(95397),r=n(91599);const i=new Map([["cfd",()=>r.t(null,void 0,n(8017))],["dr",()=>r.t(null,void 0,n(74264))],["index",()=>r.t(null,void 0,n(58926))],["forex",()=>r.t(null,void 0,n(73597))],["right",()=>r.t(null,{context:"symbol_type"},n(87038))],["bond",()=>r.t(null,void 0,n(9054))],["bitcoin",()=>r.t(null,void 0,n(91059))],["crypto",()=>r.t(null,void 0,n(91059))],["economic",()=>r.t(null,void 0,n(96882))],["indices",()=>r.t(null,void 0,n(15161))],["futures",()=>r.t(null,void 0,n(29108))],["stock",()=>r.t(null,void 0,n(64625))],["commodity",()=>r.t(null,void 0,n(62922))]]);n(53225);const s=new Map,a=new Set(["cfd","spreadbet","defi","yield","government","corporate","mutual","money","etf","unit","trust","reit","etn","convertible","closedend","crypto","oracle","ndf","algorithmic"]);function l(e,t=[],n=!0){if((0,o.isPreIpo)(e,t))return"pre-IPO";const r=t.filter((e=>a.has(e))),l=`${e}_${r.sort().join("_")}`,c=s.get(l);if(void 0!==c)return c;const d=n?function(e){return i.get(e)?.()||e
}(e):e,u=Boolean(t.length)?[d,...r].join(" "):d;return s.set(l,u),u}},95398:(e,t,n)=>{"use strict";function o(e){return e.charAt(0).toUpperCase()+e.substring(1)}n.d(t,{capitalizeFirstLetter:()=>o})},22955:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18" width="18" height="18"><path fill="currentColor" d="m4.67 7.38.66-.76L9 9.84l3.67-3.22.66.76L9 11.16 4.67 7.38Z"/></svg>'},46788:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18" width="18" height="18"><path fill="currentColor" d="m4.67 10.62.66.76L9 8.16l3.67 3.22.66-.76L9 6.84l-4.33 3.78Z"/></svg>'},83409:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none"><g clip-path="url(#clip0)"><path fill="#FFDB5E" d="M13.651 7.972c0-.168-.04-.325-.107-.468-.447-1.442-2.54-1.337-5.516-1.407-.498-.012-.213-.6-.038-1.89.113-.838-.428-2.127-1.337-2.127-1.5 0-.057 1.183-1.383 4.108-.708 1.562-2.291.687-2.291 2.257v3.573c0 .61.06 1.198.919 1.295.833.093.646.687 1.847.687h6.015a1.112 1.112 0 0 0 1.11-1.111c0-.254-.088-.486-.232-.673.34-.19.573-.55.573-.966a1.1 1.1 0 0 0-.232-.672c.341-.19.576-.55.576-.967 0-.303-.123-.578-.32-.779a1.105 1.105 0 0 0 .416-.86z"/><path fill="#EE9547" d="M9.673 9.083h2.867c.39 0 .757-.209.956-.544a.292.292 0 0 0-.502-.298.53.53 0 0 1-.454.259H9.604a.528.528 0 0 1 0-1.056h1.962a.292.292 0 0 0 0-.583H9.603a1.112 1.112 0 0 0-1.11 1.111c0 .342.158.644.4.848a1.107 1.107 0 0 0-.332.791c0 .343.16.646.404.85a1.105 1.105 0 0 0 .14 1.693 1.102 1.102 0 0 0 .042 1.52c.208.208.49.325.785.326h1.828a1.117 1.117 0 0 0 .956-.544.292.292 0 0 0-.502-.298.531.531 0 0 1-.454.258H9.932a.528.528 0 0 1 0-1.055H12.1a1.117 1.117 0 0 0 .956-.544.292.292 0 1 0-.501-.298.526.526 0 0 1-.454.259H9.745a.529.529 0 0 1 0-1.056h2.697a1.116 1.116 0 0 0 .956-.544.292.292 0 0 0-.501-.298.525.525 0 0 1-.455.259h-2.77a.529.529 0 0 1 0-1.056z"/></g><defs><clipPath id="clip0"><path fill="#fff" d="M0 0h12v12H0z" transform="translate(2 2)"/></clipPath></defs></svg>'},39565:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18" width="18" height="18"><path fill="currentColor" d="M4.5 3C3.67 3 3 3.67 3 4.5v9c0 .83.67 1.5 1.5 1.5h9c.83 0 1.5-.67 1.5-1.5V10h-1v3.5a.5.5 0 0 1-.5.5h-9a.5.5 0 0 1-.5-.5v-9c0-.28.22-.5.5-.5H8V3H4.5ZM11 4h2.3L9.14 8.15l.7.7L14 4.71V7h1V3h-4v1Z"/></svg>'},47728:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18" width="18" height="18"><path fill="currentColor" d="M6.5 2C5.67 2 5 2.67 5 3.5v8c0 .83.67 1.5 1.5 1.5h8c.83 0 1.5-.67 1.5-1.5v-8c0-.83-.67-1.5-1.5-1.5h-8ZM6 3.5c0-.28.22-.5.5-.5h8c.28 0 .5.22.5.5v8a.5.5 0 0 1-.5.5h-8a.5.5 0 0 1-.5-.5v-8Zm-3 3c0-.28.22-.5.5-.5H4V5h-.5C2.67 5 2 5.67 2 6.5v8c0 .83.67 1.5 1.5 1.5h8c.83 0 1.5-.67 1.5-1.5V14h-1v.5a.5.5 0 0 1-.5.5h-8a.5.5 0 0 1-.5-.5v-8Z"/></svg>'},69454:(e,t,n)=>{"use strict";n.d(t,{default:()=>o});const o=function(e){for(var t=-1,n=null==e?0:e.length,o={};++t<n;){var r=e[t];o[r[0]]=r[1]}return o}},80141:(e,t,n)=>{"use strict";n.d(t,{default:()=>o});const o=function(e){
return e&&e.length?e[0]:void 0}},56770:(e,t,n)=>{"use strict";n.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?"-":"_"),"")}}]);