1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8006],{97473:function(a,b,c){c.d(b,{H9:function(){return k},PV:function(){return g},si:function(){return i}});var d=c(69248),e=c(82066),f=function(a){var b=a.category,c=a.locale,d=a.size,e=new URLSearchParams;return Array.isArray(b)?e.set("category",b.join(",")):e.set("category",b),e.set("locale",c),e.set("size",d.toString()),"/popular-searches?".concat(e.toString())},g=function(a){var b=a.category,c=a.locale,g=a.size,h=a.open,i=f({category:b,locale:c,size:g});return(0,e.useQuery)(i,function(){return(0,d.C)({path:i,locale:c})},{enabled:h})},h=function(a){var b=a.category,c=a.isMobile,d=a.debouncedSearchQuery;return"/search-v2?q=".concat(encodeURIComponent(d),"&category=").concat(b,"&mobile=").concat(c,"&by-inst-cat=1")},i=function(a){var b=a.debouncedSearchQuery,c=a.category,f=a.isMobile,g=a.open,i=a.locale,j=h({category:c,debouncedSearchQuery:b,isMobile:f});return(0,e.useQuery)(["search",b,c],function(){return(0,d.C)({path:j,locale:i})},{enabled:g&&Boolean(b)})},j=function(a){var b=a.category,c=a.range,d=a.tags,e=a.exclude;return"/articles/popular/concise?range=".concat(c,"&tags=").concat(d,"&category=").concat(b,"&exclude=").concat(e)},k=function(a){var b=a.category,c=a.locale,f=a.range,g=a.tags,h=a.exclude,i=a.open,k=j({category:b,locale:c,range:f,tags:g,exclude:h});return(0,e.useQuery)(["popularArticles",b],function(){return(0,d.C)({path:k,locale:c||"en"})},{enabled:i,staleTime:1/0})}},8006:function(a,b,c){var d=c(70865),e=c(96670),f=c(52322),g=c(28518),h=c(79416),i=c(30594),j=c(6377),k=c(48983),l=c(98843),m=c(78401),n=c(21209),o=c(92583),p=function(a){var b=a.searchResultsProps,c=a.categoryWrapperCustomStyles,p=a.instrumentResultCustomStyles,q=a.isShowSidebar,r=a.isResultLink,s=a.onLinkClick,t=(0,n.A)(),u=t.category,v=t.loading,w=t.sidebarLoading,x=t.instrumentCategoriesForMenu,y=t.searchQuery,z=t.finalInstruments,A=t.showingDefaults,B=t.sidebarSections,C=t.sidebarResults,D=t.notFoundSidebarResults,E=t.hideCategorySection,F=t.handleCategoryChange;return(0,f.jsxs)(f.Fragment,{children:[(0,f.jsxs)(g.Z,(0,e.Z)((0,d.Z)({display:"flex",flexDirection:"column",flex:"1"},b),{children:[!E&&(0,f.jsx)(h.Ul,(0,e.Z)((0,d.Z)({width:1,p:0,display:"flex",listStyle:"none",tabIndex:-1},c),{children:x.map(function(a,b){return(0,f.jsx)(i.Li,{pr:10,children:(0,f.jsx)(o.Z,{style:{height:"27px"},isActive:a===u,onClick:function(){F(a)},children:(0,f.jsx)(j._,{id:"Search.Categories.".concat(a===l.Z.CATEGORY_NAME.allInstruments?l.Z.ALL:a)})})},"".concat(a,"-").concat(b.toString()))})})),(0,f.jsx)(m.T,{finalInstruments:z,loading:v,showingDefaults:A,searchQuery:y,isResultLink:r,instrumentResultCustomStyles:p,onLinkClick:s})]})),(void 0===q||q)&&(0,f.jsx)(k.Y,{loading:w,sections:B,results:C,showingDefaults:A||D,searchQuery:y})]})};b.Z=p},21209:function(a,b,c){c.d(b,{X:function(){return x},A:function(){return w}});var d=c(47842),e=c(70865),f=c(96670),g=c(52322),h=c(2784),i=c(97473),j=c(82066),k=c(5632),l=c(98843),m=function(a){var b,c=a.shownResults,d=a.showingDefaults,e=a.resultsNotFound,f=a.activeCategory,g=a.loading,h=l.Z.INSTRUMENT_CATEGORIES_MENU,i=null==c?void 0:null===(b=c.instruments)|| void 0===b?void 0:b.length;if(!c)return[];if(Object.keys(c).length&&(i||e)&&!d){var j=[];l.Z.INSTRUMENT_CATEGORIES_MENU.forEach(function(a){var b;((null===(b=c[a===l.Z.CATEGORY_NAME.allInstruments?l.Z.CATEGORY_NAME.instruments:a])|| void 0===b?void 0:b.length)||a===f)&&j.push(a)}),h=j}else d||!e||g||(h=l.Z.INSTRUMENT_CATEGORIES_MENU.filter(function(a){return a===f}));return h},n=c(50930),o=function(a){var b=a.defaultResults,c=a.category,d=a.recentSearches,e=a.results,f=a.maxPopularResults,g=a.showingDefaults,h=c===l.Z.CATEGORY_NAME.allInstruments,i=d.length,j=g?b:e;return g&&i&&h&&(null==(j=function(a,b){return a.filter(function(c,d){return a.findIndex(function(a){return b(c,a)})===d})}((0,n.Z)(d).concat((0,n.Z)(j||[])),function(a,b){return a.slug===b.slug&&a.category===b.category}))?void 0:j.length)>f&&(j.length=f),j&&j.sort(function(a,b){var c,d,e=Number(null===(c=a.price)|| void 0===c?void 0:c.marketCap)||0,f=Number(null===(d=b.price)|| void 0===d?void 0:d.marketCap)||0;return f-e}),j},p=c(92812),q=c(29889),r=[],s=function(a){var b=a.open,c=a.prevPricesForRecentSearches,d=a.pricesForRecentSearches,e=a.client,f=a.customCategories,g=a.fetchPricesForRecentSearches,i=a.setFilteredRecentSearches,j=a.recentSearches,k=a.locale,m=a.setRecentSearches;(0,h.useEffect)(function(){if(b){var a=Object.keys(c||{}),f=Object.keys(d||{});if(!(a.length===f.length&&a.every(function(a){return d[a]}))||!j.length){var h=JSON.parse(localStorage.getItem(l.Z.RECENT_SEARCHES.localStorageKey))||r;h.length&&e.fetchQuery("pricesForRecentSearches",function(){return g(h.map(function(a){var b=a.slug,c=a.category;return{slug:b,category:c}}),k)})}}},[g,c,d,j.length,b,e,k]),(0,h.useEffect)(function(){if(d&&0!==Object.keys(d).length&&b){var a=JSON.parse(localStorage.getItem(l.Z.RECENT_SEARCHES.localStorageKey))||r;
1a.length&&(a.forEach(function(a){a.price=d[(null==a?void 0:a.category)+(null==a?void 0:a.slug)]}),Array.isArray(f)&&f.length&&i(a.filter(function(a){return(null==a?void 0:a.category)&&f.includes(a.category)})),m(a))}},[b,d,m,f,i])},t=l.Z.defaultResults,u=[],v=(0,h.createContext)(null),w=function(){var a=(0,h.useContext)(v);if(!a)throw Error("useSearch must be used within a SearchProvider");return a},x=function(a){var b,c,n=a.children,r=a.enabled,w=a.resultsSize,x=(0,k.useRouter)(),y=x.locale,z=void 0===y?"en":y,A=(0,j.useQueryClient)(),B=(0,h.useState)(""),C=B[0],D=B[1],E=(0,h.useState)(void 0!==r&&r),F=E[0],G=E[1],H=(0,h.useState)(!0),I=H[0],J=H[1],K=(0,h.useState)(!1),L=K[0],M=K[1],N=(0,p.N)(C,500),O=(0,h.useState)(l.Z.CATEGORY_NAME.allInstruments),P=O[0],Q=O[1],R=(0,h.useState)(t),S=R[0],T=R[1],U=(0,h.useState)(!1),V=U[0],W=U[1],X=(0,h.useState)(u),Y=X[0],Z=X[1],$=(0,h.useState)(null),_=$[0],aa=$[1],ab=(0,h.useState)(!1),ac=ab[0],ad=ab[1],ae=(0,h.useState)(!1),af=ae[0],ag=ae[1],ah=(0,h.useMemo)(function(){return l.Z.getDesktopSidebarDefaultResults()},[]),ai=(0,h.useMemo)(function(){return l.Z.getPopularInstrumentDefaults()},[]),aj=(0,h.useState)(null),ak=aj[0],al=aj[1],am=function(a){al(a),Q(a[0])},an=(c=P)===l.Z.CATEGORY_NAME.instruments?l.Z.CATEGORY_NAME.allInstruments:c,ao=(0,i.PV)({category:P===l._.allInstruments&&ak?ak:P,locale:z,size:w||(__IS_MOBILE__?l.Z.POPULAR_SEARCHES_SIZE.mobile:l.Z.POPULAR_SEARCHES_SIZE.desktop),open:F}),ap=ao.data,aq=ao.isLoading,ar=(0,i.si)({debouncedSearchQuery:N,category:P,isMobile:Number(__IS_MOBILE__),locale:z,open:F,searchQuery:C}),as=ar.data;(0,h.useEffect)(function(){ag(aq)},[aq]),(0,h.useEffect)(function(){ad(!0)},[]);var at=(0,j.useQuery)("pricesForRecentSearches",{enabled:!1,staleTime:1/0}),au=at.data,av=void 0===au?{}:au,aw=(0,i.H9)({category:P,locale:z||"en",range:l.Z.POPULAR_ARTICLES.daysRange,tags:l.Z.POPULAR_ARTICLES[P],exclude:l.Z.POPULAR_ARTICLES.excludeTags,open:F}),ax=aw.data;200===(null==ax?void 0:ax.statusCode)&&l.Z.addPopularArticlesToDefaults(ah,ax.data.articles);var ay=(0,h.useMemo)(function(){return Object.keys(S).reduce(function(a,b){var c;return l.Z.isSidebarCategory(b)&&S&&(null===(c=S[b])|| void 0===c?void 0:c.length)?(0,f.Z)((0,e.Z)({},a),(0,d.Z)({},b,S[b])):a},{})},[S]),az=!Object.keys(ay).length,aA=C?ay:ah,aB=Object.keys(aA).filter(function(a){var b;return null===(b=aA[a])|| void 0===b?void 0:b.length}),aC=(0,p.D)(I);(0,h.useEffect)(function(){C||aC?C&&aC&&J(!1):J(!0)},[C,aC]),(0,h.useEffect)(function(){200===(null==as?void 0:as.statusCode)&&(T((0,e.Z)({},null==as?void 0:as.data)),ag(!1),W(!1))},[as]);var aD=(0,p.D)(av);s({open:F,client:A,locale:z,recentSearches:Y,pricesForRecentSearches:av,prevPricesForRecentSearches:aD,customCategories:ak,fetchPricesForRecentSearches:q.E,setRecentSearches:Z,setFilteredRecentSearches:aa});var aE=function(a){Q(a)},aF=!Object.keys(S).reduce(function(a,b){var c;return a+((null==S?void 0:null===(c=S[b])|| void 0===c?void 0:c.length)||0)},0),aG=ak||m({shownResults:S,showingDefaults:I,resultsNotFound:aF,activeCategory:P,loading:af});(null==ap?void 0:ap.statusCode)===200&&l.Z.addPopularSearchesToDesktopDefaults(ai,an,null==ap?void 0:null===(b=ap.data)|| void 0===b?void 0:b.items);var aH=P===l.Z.CATEGORY_NAME.allInstruments?null==S?void 0:S.instruments:null==S?void 0:S[P],aI=(0,h.useMemo)(function(){return!ac|| !!localStorage.getItem(l.Z.RECENT_SEARCHES.localStorageKey)&&0===Y.length},[ac,Y])?[]:o({defaultResults:P===l._.allInstruments&&ak&&ak.find(function(a){return a===l._.allInstruments})?ai[l._.allInstruments]:(0,ai[an]),category:P,showingDefaults:I,recentSearches:_||Y,maxPopularResults:8,results:aH});return(0,g.jsx)(v.Provider,{value:{isEnabled:F,category:P,instrumentCategoriesForMenu:aG,finalInstruments:aI,searchQuery:C,sidebarResults:aA,sidebarSections:aB,notFoundSidebarResults:az,loading:af,sidebarLoading:V,searchCategory:an,showingDefaults:I,defaultDesktopResults:t,hideCategorySection:L,setHideCategorySection:M,setIsEnabled:G,setSearchQuery:D,setShownResults:T,setShowingDefaults:J,setLoading:ag,handleCategoryChange:aE,setSidebarLoading:W,createCustomInstrumentCategories:am},children:n})}},5266:function(a,b,c){c.d(b,{h:function(){return h}});var d=c(52322);c(2784);var e=c(99766),f="<span style='color: ".concat(e.O.brightPalette.black,"; font-weight:600;'>"),g=function(a,b){try{var c=a.replace(/([.?*+^$[\]\\(){}|-])/g,""),d=RegExp("\\b".concat(c),"i");return b.replace(d,function(a){return a?"".concat(f).concat(a).concat("</span>"):""})}catch(e){return console.error(e),b}},h=function(a){var b=a.fullText,c=a.searched;return(0,d.jsx)("div",{style:{textOverflow:"ellipsis",overflow:"hidden",
1whiteSpace:"nowrap"},dangerouslySetInnerHTML:{__html:g(c,b)}})}},78401:function(a,b,c){c.d(b,{T:function(){return D}});var d,e,f=c(70865),g=c(96670),h=c(52322),i=c(28518),j=c(79416),k=c(6377),l=c(92228);c(2784);var m=c(26021),n=c(30594),o=c(54415),p=c(70698),q=c(5632),r=c(56646),s=c(27290),t=c(98843),u=c(5266),v=c(56984),w=c(63678);function x(){var a=(0,l.Z)(["\n box-sizing: border-box;\n font-family: 'Rubik', sans-serif;\n cursor: pointer;\n border-bottom: 1px solid\n ",";\n\n // only apply hover effect on desktop and not on mobile\n @media (hover: hover) {\n &:hover,\n &.hovered {\n background-color: ",";\n }\n }\n\n &:hover {\n border-top-color: transparent;\n border-bottom-color: ",";\n }\n"]);return x=function(){return a},a}var y=(0,m.ZP)(n.Li).withConfig({componentId:"sc-b4d22647-0"})(x(),function(a){var b=a.showBorderBottom,c=a.theme;return b?__IS_DARK_MODE__?c.colors.brightPalette.grey:"#eeeeee":"transparent"},function(a){return a.theme.colors.brightPalette.auto_complete_hover_background},function(a){var b=a.borderBottom,c=a.theme;return b?__IS_DARK_MODE__?c.colors.brightPalette.grey:"#eeeeee":"transparent"}),z=function(a){return a>= -.01&&a<=.01},A=function(a){var b=a.price;return b&&null!==(e=null!==(d=b.percentChangeDisplay)&& void 0!==d?d:b.percentChange)&& void 0!==e?e:null},B=function(a){var b,c,d,e,j,l,n,x=a.item,B=a.isLastIndex,C=a.searchQuery,D=a.id,E=a.onLinkClick,F=a.isResultLink,G=a.customStyles,H=(0,q.useRouter)().locale,I=(0,m.Fg)(),J=t.Z.getPathByCategory(x),K="commodities"===x.category&&"Tradingview"===x.vendor,L=A(x),M=void 0===F||F?s.r:o.z;return(0,h.jsx)(y,(0,g.Z)((0,f.Z)({showBorderBottom:!B,id:D,"data-playwright":"desktop-search-drop-down-item-".concat(D),onMouseEnter:function(a){(0,v._X)(a.currentTarget)},onMouseLeave:function(){return(0,v.Ik)()},width:"100%",onClick:function(){return E(x)}},null==G?void 0:G.priceItemContainer),{children:(0,h.jsxs)(M,{href:J,external:!0,width:"100%",display:"flex",alignItems:"center",justifyContent:"space-between",px:"5px",children:[(0,h.jsx)(i.Z,{fontWeight:400,pt:["11px","8px"],pb:["13px","10px"],borderTopLeftRadius:"3px",borderTopRightRadius:"3px",children:(0,h.jsxs)(i.Z,{display:"flex",flexDirection:["column-reverse","column"],alignItems:"flex-start",fontWeight:400,children:[(0,h.jsx)(i.Z,{fontSize:[12,16],color:[I.colors.brightPalette.grey_3,I.colors.brightPalette.black],mb:[0,"9px"],height:[14,19],maxWidth:[200,400],children:x.subtitle?(0,h.jsx)(u.h,{fullText:x.subtitle,searched:C}):(0,h.jsx)(k._,{id:"Search.Defaults.".concat(x.slug)})}),(0,h.jsx)(i.Z,{color:[I.colors.brightPalette.black,I.colors.brightPalette.grey_3],mb:["7px",0],children:(0,h.jsxs)(i.Z,{display:"flex",fontSize:[16,12],children:[(0,h.jsx)(u.h,{fullText:x.title,searched:C}),x.exchange&&(0,h.jsxs)(i.Z,{display:"flex",ml:"2px",children:[(0,h.jsx)(p.D,{mx:"2px",children:":"}),(0,h.jsx)(p.D,{children:x.exchange})]})]})})]})}),(0,h.jsxs)(i.Z,(0,g.Z)((0,f.Z)({display:"flex",flexDirection:["column","row"],alignItems:["flex-end","center"],gap:18},null==G?void 0:G.priceWrapper),{children:[(0,h.jsx)(i.Z,{display:"flex",alignItems:"center",justifyContent:"end",color:I.colors.brightPalette.black,fontSize:16,mr:[(null==x?void 0:null===(b=x.price)|| void 0===b?void 0:b.percentChange)?"5px":"3px",0],mb:["2px",0],children:(null==x?void 0:null===(c=x.price)|| void 0===c?void 0:c.last)?(0,h.jsx)(i.Z,(0,g.Z)((0,f.Z)({},null==G?void 0:G.price),{children:(0,h.jsx)(w.C,{price:null==x?void 0:null===(d=x.price)|| void 0===d?void 0:d.last,symbol:(0,r.j)({item:x,locale:H}),tooltipIfDots:!1})})):K?null:(0,h.jsx)(i.Z,{children:(0,h.jsx)(k._,{id:"Search.NA"})})}),(0,h.jsx)(i.Z,{borderTopRightRadius:"3px",borderBottomRightRadius:"3px",children:null!=L?(0,h.jsx)(i.Z,(0,g.Z)((0,f.Z)({display:"flex",px:"6px",py:["3px","4px"],fontSize:[12,16],fontWeight:400,backgroundColor:(e=L,j=I,z(e)?j.colors.brightPalette.percent_change_background:e>0?j.colors.brightPalette.positive_percent_change_background:j.colors.brightPalette.negative_percent_change_background),color:(l=L,n=I,z(l)?n.colors.brightPalette.percent_change_color:l>0?n.colors.brightPalette.positive_percent_change_color:n.colors.brightPalette.negative_percent_change_color),borderRadius:"4px",justifyContent:["flex-end","center"],minWidth:["10px","70px"]},null==G?void 0:G.percentChange),{children:function(a){var b=a.val;b.endsWith("%")&&(b=b.slice(0,b.length));var c=Math.abs(Number(b));if(null==b||isNaN(c))return"N/A";var d=a.withSignPrefix,e=a.decimals,f="";return(void 0===d||d)&&0>
1 +b&&(f="-"),"".concat(f&&f).concat(c.toFixed(void 0===e?2:e),"%")}({val:L.toString()})})):K?null:(0,h.jsx)(i.Z,{display:"flex",justifyContent:"center",pr:[0,"12px"],fontSize:16,color:I.colors.deepPalette.grey_4,minWidth:["10px","70px"],children:(0,h.jsx)(k._,{id:"Search.NA"})})})]}))]})}))},C=c(70984),D=function(a){var b=a.finalInstruments,c=a.loading,d=a.showingDefaults,e=a.searchQuery,l=a.isResultLink,m=a.onLinkClick,n=a.instrumentResultCustomStyles;return(0,h.jsx)(i.Z,(0,g.Z)((0,f.Z)({mt:["7px","9px"],height:"100%",width:["auto","556px"],display:c?"grid":"block",placeContent:"center"},null==n?void 0:n.mainWrapper),{children:(0,h.jsx)(j.Ul,{display:"flex",my:c?"auto":"0",flexDirection:"column",height:"100%",justifyContent:c?"center":"stretch",listStyle:"none",children:c?(0,h.jsx)(i.Z,{display:"flex",justifyContent:"center",alignItems:"center",children:(0,h.jsx)(C.a,{loaderWrapperCustomStyles:{padding:"5px"}})}):(null==b?void 0:b.length)||d?null==b?void 0:b.map(function(a,c){return(0,h.jsx)(B,{id:"section-0-item-".concat(c),item:a,isLastIndex:b.length-1===c,searchQuery:e,onLinkClick:m,isResultLink:l,position:c,customStyles:n},"".concat(a.slug,"-").concat(c.toString()))}):(0,h.jsx)(i.Z,(0,g.Z)((0,f.Z)({fontSize:16,ml:["10px","5px"],mt:[20,0],mb:[20,0]},null==n?void 0:n.noResults),{children:(0,h.jsx)(k._,{id:"Search.NoMatchingInstruments"})}))})}))}},48983:function(a,b,c){c.d(b,{Y:function(){return t}});var d=c(52322);c(2784);var e=c(28518),f=c(70984),g=c(99766),h=c(70698),i=c(6377),j=c(27290),k=c(46793),l=c(88499),m=c(94210),n=c(98843),o=c(73137),p=function(a){var b,c=a.result,f=a.isArticle,g=a.size,h=void 0===g?53:g,i=a.imageBorderRadius;return(0,d.jsxs)(d.Fragment,{children:[f&&(0,d.jsx)(e.Z,{position:"relative",width:h,height:h,children:(0,d.jsx)(o.E,{src:(0,m.h)(c.mediaPath,h),layout:"fill",unoptimized:!0,alt:"Article Image",style:{borderRadius:"".concat(i,"px")}})}),c.category===n.Z.CATEGORY_NAME.brokersAll&&c.subtitle===n.Z.BROKERS.forex&&(0,d.jsx)(e.Z,{position:"relative",width:h,height:h,children:(0,d.jsx)(o.E,{src:c.mediaPath||(0,k.w)(c.slug,"png"),alt:"broker",unoptimized:!0,layout:"fill"})}),c.category===n.Z.CATEGORY_NAME.brokersAll&&c.subtitle===n.Z.BROKERS.stock&&(0,d.jsx)("img",{width:h,height:h,alt:"broker",src:(0,l.K)("search-default-broker-icon.svg")}),c.category===n.Z.CATEGORY_NAME.cryptoExchanges&&!c.subtitle&&(0,d.jsx)("img",{width:h,height:h,alt:"crypto exchanges",src:null!==(b=c.exchangeLogo)&& void 0!==b?b:(0,l.K)("search-default-crypto-exchange.svg")}),c.category===n.Z.CATEGORY_NAME.propFirms&&!c.subtitle&&(0,d.jsx)("img",{width:h,height:h,alt:"prop firms",src:c.firmLogo})]})},q=c(5266),r=c(56984),s=function(a){var b=a.header,c=a.results,f=a.showingDefaults,k=a.sectionsLength,l=a.searchQuery,m=a.sectionNumber,o="articles"===b,s=o?null==c?void 0:c.slice(0,6):c;return(0,d.jsxs)(e.Z,{display:"flex",flexDirection:"column",pt:["9px",1===k||o?22:0],pl:[0,33],children:[(0,d.jsx)(e.Z,{display:"flex",fontSize:18,fontWeight:[500,600],pl
1:["7px",14],pb:o?"8px":"6px",justifyContent:"space-between",alignItems:"center",borderBottom:["1px solid ".concat(g.O.brightPalette.grey),"none"],mb:[22,0],children:(0,d.jsx)(h.D,{children:(0,d.jsx)(i._,{id:f?"Search.PopularArticles":"Search.Categories.".concat(b)})})}),null==s?void 0:s.map(function(a,b){return(0,d.jsxs)(e.Z,{id:"section-".concat(m,"-item-").concat(b),alignItems:"center",display:"flex",flexDirection:o?["row-reverse","row"]:"row",borderRadius:"3px",mb:__IS_MOBILE__&&b!==(null==s?void 0:s.length)-1?22:0,height:[87,o?81:70],onMouseEnter:function(a){(0,r._X)(a.currentTarget)},onMouseLeave:function(){return(0,r.Ik)()},children:[(0,d.jsx)(e.Z,{pl:13,mr:[0,12],children:(0,d.jsx)(j.r,{width:[87,53],height:[87,53],color:g.O.brightPalette.black,href:n.Z.getPathByCategory(a),external:!0,children:(0,d.jsx)(p,{size:__IS_MOBILE__?87:53,result:a,isArticle:o,imageBorderRadius:__IS_MOBILE__?13:3})})}),(0,d.jsx)(e.Z,{display:"flex",justifyContent:"center",alignItems:"center",pr:[0,12],pl:["7px",0],children:(0,d.jsx)(j.r,{width:"100%",color:g.O.deepPalette.grey_4,href:n.Z.getPathByCategory(a),external:!0,children:(0,d.jsxs)(e.Z,{display:"flex",alignItems:"left",flexDirection:"column",children:[o?(0,d.jsx)(h.D,{color:o?g.O.brightPalette.black:"rgba(51, 51, 51, 0.7)",fontSize:14,lineClamp:2,textOverflow:"ellipsis",children:a.title}):(0,d.jsx)(h.D,{color:o?g.O.brightPalette.black:"rgba(51, 51, 51, 0.7)",fontSize:14,textOverflow:"ellipsis",children:(0,d.jsx)(q.h,{fullText:a.title||"",searched:l})}),!o&&(0,d.jsx)(h.D,{color:"rgba(51, 51, 51, 0.7)",fontSize:12,lineHeight:"21px",opacity:"0.7",children:(0,d.jsx)(i._,{id:"Search.".concat(a.subtitle?"BrokerType":"Categories",".").concat(a.subtitle||a.category)})})]})})})]},"".concat(a.slug,"-").concat((null==a?void 0:a.postId)||a.title))})]})},t=function(a){var b=a.loading,c=a.sections,g=a.results,h=a.showingDefaults,i=a.searchQuery;return(0,d.jsxs)(e.Z,{display:"flex",flexDirection:"column",borderTopRightRadius:"3px",borderBottomRightRadius:"3px",justifyContent:b?"center":"stretch",width:[1,415],children:[b&&(0,d.jsx)(e.Z,{display:"flex",alignItems:"center",justifyContent:"center",width:"100%",children:(0,d.jsx)(f.a,{})}),!b&&c.map(function(a,b){return(0,d.jsx)(s,{sectionNumber:b+1,header:a,results:g[a],showingDefaults:h,sectionsLength:null==c?void 0:c.length,searchQuery:i},a)})]})}},29889:function(a,b,c){c.d(b,{E:function(){return i}});var d,e=c(98788),f=c(94776),g=c.n(f),h=c(69248),i=(d=(0,e.Z)(g().mark(function a(b,c){var d;return g().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.prev=0,a.next=3,(0,h.C)({path:"/search-v2/prices",locale:c||"en",options:{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({items:b})}});case 3:if(200!==(null==(d=a.sent)?void 0:d.statusCode)){a.next=8;break}return a.abrupt("return",d.data);case 8:return a.abrupt("return",null);case 9:a.next=15;break;case 11:return a.prev=11,a.t0=a.catch(0),console.error("fetchPricesForRecentSearches error",a.t0),a.abrupt("return",null);case 15:case"end":return a.stop()}},a,null,[[0,11]])})),function(a,b){return d.apply(this,arguments)})},98843:function(a,b,c){c.d(b,{"_":function(){return s},Z:function(){return T}});var d,e,f,g,h,i,j=c(47842),k=c(70865),l=c(96670),m=c(50930),n={commodities:"commodities",currencies:"currencies",cryptocurrencies:"cryptocurrencies",indices:"indices",stocks:"stocks",etfs:"etfs"},o="allInstruments",p={wordpressForecasts:"wordpress-forecasts",wordpressNews:"wordpress-news",brokersAll:"brokers-all",cryptoExchanges:"crypto-exchanges",stockExchanges:"stock-exchanges",authors:"authors",tools:"tools",articles:"articles",reviews:"reviews",propFirms:"prop-firms"},q=(0,k.Z)({brokers:"brokers",stockBrokers:"stock-brokers"},p),r="instruments",s=(0,k.Z)((0,l.Z)((0,k.Z)({},n),(f={},(0,j.Z)(f,r,r),(0,j.Z)(f,o,o),f)),q),t={localStorageKey:"recentSearchesV2",maxResults:5},u=[r].concat((0,m.Z)(Object.values(p))),v=[o,n.commodities,n.currencies,n.cryptocurrencies,n.etfs,n.indices,n.stocks],w=[r].concat((0,m.Z)(Object.values(p))),x=Object.values(s),y=function(a){var b;return(0,l.Z)((0,k.Z)({},n),(b={"brokers-all":p.brokersAll,"crypto-exchanges":p.cryptoExchanges,authors:p.authors},(0,j.Z)(b,o,o),(0,j.Z)(b,r,r),b))[a]},z=[{slug:"natural-gas",category:"commodities",title:"NG",subtitle:"Natural Gas"},{slug:"wti-crude-oil",category:"commodities",title:"CL",subtitle:"WTI Oil"},{slug:"gold",category:"commodities",title:"XAU",subtitle:"Gold"},{slug:"silver",category:"commodities",title:"XAG",subtitle:"Silver"},{slug:"eur-usd",category:"currencies",title:"EUR/USD",subtitle:"Euro - US Dollar"}],A=(g={},(0,j.Z)(g,s.commodities,[{slug:"natural-gas",category:"commodities",title:"NG"},{slug:"wti-crude-oil",category:"commodities",title:"CL"},{slug:"gold",category:"commodities",title:"XAU"},{slug:"silver",category:"commodities",title:"XAG"},{slug:"copper",category:"commodities",title:"HG"}]),(0,j.Z)(g,s.currencies,[{slug:"eur-usd",category:"currencies",title:"EUR/USD"},{slug:"gbp-usd",category:"currencies",title:"GBP/USD"},{slug:"aud-usd",category:"currencies",title:"AUD/USD"},{slug:"usd-jpy",category:"currencies",title:"USD/JPY"},{slug:"usd-cad",category:"currencies",title:"USD/CAD"}]),(0,j.Z)(g,s.indices,[{slug:"spx",category:"indices",title:"SPX",subtitle:"S&P 500"},{slug:"vix",category:"indices",title:"VIX",subtitle:"S&P 500 Volatility Index"},{slug:"uk100-gbp",category:"indices",title:"UK100",subtitle:"UK 100"},{slug:"de30-eur",category:"indices",title:"DE30",subtitle:"Germany 30"},{slug:"jp225-usd",category:"indices",title:"JP225",subtitle:"Japan 225"}]),(0,j.Z)(g,s.stocks,[{slug:"aapl",category:"stocks",title:"AAPL",subtitle:"Ap
1ple Inc"},{slug:"amzn",category:"stocks",title:"AMZN",subtitle:"Amazon.com Inc"},{slug:"meta",category:"stocks",title:"Meta",subtitle:"Meta Platforms Inc"},{slug:"nflx",category:"stocks",title:"NFLX",subtitle:"Netflix Inc"},{slug:"goog",category:"stocks",title:"GOOG",subtitle:"Alphabet Inc"}]),(0,j.Z)(g,s.etfs,[{slug:"spy",category:"etfs",title:"SPY",subtitle:"S&P 500 ETF TRUST ETF"},{slug:"ivv",category:"etfs",title:"IVV",subtitle:"iShares Core S&P 500 ETF"},{slug:"vti",category:"etfs",title:"VTI",subtitle:"Vanguard Total Stock Market ETF"},{slug:"qqq",category:"etfs",title:"QQQ",subtitle:"Invesco QQQ Trust Series 1"},{slug:"iemg",category:"etfs",title:"IEMG",subtitle:"iShares Core MSCI Emerging Markets ETF"}]),g),B=function(a){return({articles:!0,reviews:!0})[a]},C=(h={},(0,j.Z)(h,s.wordpressNews,[]),(0,j.Z)(h,s.wordpressForecasts,[]),(0,j.Z)(h,s.brokersAll,[{slug:"fxtm",category:"brokers-all",title:"FXTM",subtitle:"forex"},{slug:"plus500",category:"brokers-all",title:"Plus500",subtitle:"forex"},{slug:"fxcm",category:"brokers-all",title:"FXCM",subtitle:"forex"},{slug:"allyinvest",category:"brokers-all",title:"Ally Invest",subtitle:"stock"},{slug:"charlesschwab",category:"brokers-all",title:"Charles Schwab",subtitle:"stock"}]),(0,j.Z)(h,s.cryptocurrencies,[{slug:"ethereum",category:"cryptocurrencies",title:"ETH"},{slug:"bitcoin",category:"cryptocurrencies",title:"BTC"},{slug:"ripple",category:"cryptocurrencies",title:"XRP"},{slug:"litecoin",category:"cryptocurrencies",title:"LTC"},{slug:"bitcoin-cash",category:"cryptocurrencies",title:"BCH"}]),(0,j.Z)(h,s.stockExchanges,[{slug:"xnas",category:"stock-exchanges",title:"XNAS",subtitle:"NASDAQ",countryCode:"US"},{slug:"xnys",category:"stock-exchanges",title:"XNYS",subtitle:"New York Stock Exchange",countryCode:"US"},{slug:"xshg",category:"stock-exchanges",title:"SSE",subtitle:"Shanghai Stock Exchange A-shares",countryCode:"CN"},{slug:"xlon",category:"stock-exchanges",title:"LSE",subtitle:"London Stock Exchange",countryCode:"GB"},{slug:"xtse",category:"stock-exchanges",title:"TSX",subtitle:"Toronto Stock Exchange",countryCode:"CA"}]),(0,j.Z)(h,s.cryptoExchanges,[{slug:"primebit",category:"crypto-exchanges",title:"PrimeBit"},{slug:"primexbt",category:"crypto-exchanges",title:"PrimeXBT"},{slug:"cex.io",category:"crypto-exchanges",title:"CEX.IO"},{slug:"binance",category:"crypto-exchanges",title:"BINANCE"},{slug:"coinmama",category:"crypto-exchanges",title:"Coinmama"}]),(0,j.Z)(h,s.authors,[{slug:"bobmason",title:"Bob Mason",subtitle:"author",category:"authors",author:{image:"8a715126152249c00446a534af4c9b48"}},{slug:"jameshyerczyk",title:"James Hyerczyk",subtitle:"author",category:"authors",author:{image:"cf18832761e97dd8c518e3f847201a53"}},{slug:"davidbecker",title:"David Becker",subtitle:"author",category:"authors",author:{image:"cc55e2d1a6211b658cd1ba62e9454a15"}},{slug:"fx-empire-analyst-christopher-lewis",title:"Christopher Lewis",subtitle:"author",category:"authors",author:{image:"d526548d07185d13d5590c4be787db9c"}},{slug:"vladimirzernov",title:"Vladimir Zernov",subtitle:"author",category:"authors",author:{image:"4efdcf9ab0013e715c6dac9b72552474"}}]),(0,j.Z)(h,s.tools,[{title:"Economic Calendar",category:"tools",slug:"economic-calendar"},{title:"Earnings Calendar",category:"tools",slug:"earnings-calendar"},{title:"Dividends Calendar",category:"tools",slug:"dividends-calendar"},{title:"Splits Calendar",category:"tools",slug:"splits-calendar"}]),h),D=(0,k.Z)((0,j.Z)({},o,z),(e={},Object.keys(d=A).forEach(function(a){var b;e[a]=null==d?void 0:null===(b=d[a])|| void 0===b?void 0:b.slice(0,5)}),e)),E=function(){return(0,k.Z)({instruments:z},C)},F=function(){var a;return a={},(0,j.Z)(a,s.articles,[]),(0,j.Z)(a,s.reviews,[]),a},G=function(){var a;return a={},(0,j.Z)(a,s.commodities,[]),(0,j.Z)(a,s.currencies,[]),(0,j.Z)(a,s.cryptocurrencies,[]),(0,j.Z)(a,s.indices,[]),(0,j.Z)(a,s.stocks,[]),(0,j.Z)(a,s.etfs,[]),a},H=function(){var a;return a={},(0,j.Z)(a,s.allInstruments,[]),(0,j.Z)(a,s.brokersAll,[]),(0,j.Z)(a,s.cryptoExchanges,[]),(0,j.Z)(a,s.authors,[]),a},I=[s.brokersAll,s.wordpressForecasts,s.wordpressNews],J={forex:"forex",stock:"stock"},K=function(a){return[s.wordpressNews,s.wordpressForecasts].includes(a)},L=function(a){return a===s.articles},M={},N=(i={daysRange:7,_delim:",",_defaultTag:"popular-news",excludeTags:"brokers-news",get _prefix(){return this._defaultTag+this._delim},get commodities(){return"".concat(this._prefix,"commodities")},get currencies(){return"".concat(this._prefix,"forex,forex-news")},get cryptocurrencies(){return"".concat(this._prefix,"cryptocurrencies,cryptocurrencies-news")},get indices(){return"".concat(this._prefix,"indices")},get stocks(){return"".concat(this._prefix,"stocks")},get etfs(){return"".concat(this._prefix,"etfs")}},M[o]=M[o]||{},M[o].get=function(){return this._defaultTag},function(a,b){for(var c in b){var d=b[c];d.configurable=d.enumerable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(a,c,d)}if(Object.getOwnPropertySymbols)for(var e=Object.getOwnPropertySymbols(b),f=0;f<e.length;f++){var g=e[f],d=b[g];d.configurable=d.enumerable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(a,g,d)}}(i,M),i),O=function(a,b){var c=!a[s.articles].length&&(null==b?void 0:b.length),d=a[s.articles].length&&a[s.articles]!==b&&(null==b?void 0:b.length);(c||d||b)&&(a[s.articles]=b)},P={mobile:{allInstruments:25,nonInstruments:15}},Q=function(a){return a===s.instruments?P.mobile.allInstruments:P.mobile.nonInstruments},R=function(a,b,c){var d;!(null===(d=a[b])|| void 0===d?void 0:d.length)&&(null==c?void 0:c.length)&&(a[b]=c)},S=function(a){try{if(n[null==a?void 0:a.category]){var b,c=localStorage.getItem(t.localStorageKey);return(b=c?JSON.parse(c):[]).length===t.maxResults&&b.pop(),(b=b.filter(function(b){var c=!0;return b.category===a.category&&(c=b.slug!==a.slug),c})).unshift(a),localStorage.setItem(t.localStorageKey,JSON.stringify(b)),b}}catch(d){console.error("error setting search result to localStorage:",JSON.stringify(a),d)}},T={ALL:"all",CATEGORY_NAME:s,INSTRUMENTS_NAME:n,RECENT_SEARCHES:t,tryInsertRecentSearchResult:S,defaultResults:D,categories:x,MOBILE_CATEGORIES_MENU:u,INSTRUMENT_CATEGORIES_MENU:v,MOBILE_CATEGORIES:w,POPULAR_ARTICLES:N,getDefaultMobileResults:E,coinzSearchDefaults:[{slug:"btc",title:"BTC",subtitle:"Bitcoin",category:"coins"},{slug:"eth",title:"ETH",subtitle:"Ethereum",category:"coins"},{slug:"xrp",title:"XRP",subtitle:"Ripple",category:"coins"},{slug:"bch",title:"BCH",subtitle:"Bitcoin Cash",category:"coins"},{slug:"eos",title:"EOS",subtitle:"EOS",category:"coins"}],getDesktopSidebarDefaultResults:F,getPopularMobileCategories:H,categoriesWithImage:I,BROKERS:J,POPULAR_SEARCHES:{forexBrokersCategory:"forex-brokers",stockBrokersCategory:"stock-brokers"},POPULAR_SEARCHES_SIZE:{desktop:8,mobile:8},isSidebarCategory:B,addPopularArticlesToDefaults:O,isWordpressCategory:K,isArticleCategory:L,getMaxMobileResultsNum:Q,isPopularSearchesCategory:y,addPopularSearchesToDesktopDefaults:R,getPopularInstrumentDefaults:G,getPathByCategory:function(a){var b=a.slug,c=a.category,d=a.vendor,e=a.subtitle,f=a.postId;switch(c){case s.brokersAll:return e===J.forex?"/brokers/".concat(b):"/stock-brokers/".concat(b);case s.cryptocurrencies:return"/crypto/".concat(b);case s.stockExchanges:return"/stock-exchanges/".concat(b);case s.cryptoExchanges:return"/exchanges/".concat(b);case s.currencies:return"/currencies/".concat(b);case s.stocks:return"/stocks/".concat(b);case s.etfs:return"/etfs/".concat(b);case s.indices:return"/indices/".concat("Tradingview"===d?"eod/":"").concat(b);case s.commodities:if("Tradingview"===d)return"/commodities/eod/".concat(b||(null==e?void 0:e.toLowerCase()));return"/commodities/".concat(b);case s.authors:return"/author/".concat(b);case s.tools:return"/tools/".concat(b);case s.propFirms:return"/prop-firms/".concat(b);case s.wordpressNews:return"/news/article/".concat(b,"-").concat(f);case s.wordpressForecasts:return"/forecasts/article/".concat(b,"-").concat(f);default:return console.error("getPathByCategory: unknown category '".concat(c,"'")),"/"}}}},56984:function(a,b,c){c.d(b,{"$v":function(){return h},Ik:function(){return f},"_X":function(){return e}});var d="hovered",e=function(a){a.classList.add(d)}
1,f=function(){var a=document.getElementsByClassName(d)[0];a&&a.classList.remove(d)},g=function(a){var b,c=document.getElementsByClassName(d)[0];if(c){var e,f,g=c.id.split("-")[1],h=Number(null===(e=c.id)|| void 0===e?void 0:e.split("-").pop());c.classList.remove(d);var i=document.getElementById("section-".concat(g,"-item-").concat(h+a));i?i.classList.add(d):null===(f=document.getElementById("section-".concat(g,"-item-0")))|| void 0===f||f.classList.add(d)}else null===(b=document.getElementById("section-0-item-0"))|| void 0===b||b.classList.add(d)},h=function(a){switch(a.key){case"ArrowDown":a.preventDefault(),g(1);break;case"ArrowUp":a.preventDefault(),g(-1);break;case"Enter":a.stopPropagation();var b=document.querySelectorAll(".".concat(d," *"))[0];b?b.click():document.activeElement&&document.activeElement.click();break;default:return}}},63678:function(a,b,c){c.d(b,{C:function(){return j}});var d=c(52322),e=c(70698),f=c(11070),g=c(36061),h=c(90216),i=function(a){var b=a.value,c=a.children,f=a.tooltipType,g=a.placement;return(0,d.jsx)(h.j,{tooltipType:f,placement:g,tooltipContent:(0,d.jsx)(e.D,{display:"block",textAlign:"center",width:1,children:b.toFixed(20).replace(/\.?0+$/,"")}),children:c})},j=function(a){var b=a.price,c=a.symbol,h=void 0===c?"":c,j=a.tooltipIfDots;if(!b)return(0,d.jsx)(e.D,{children:"-"});var k=(0,f.V)({value:b,instrumentType:g.yI.CRYPTO,withSignPrefix:!1}),l="".concat(h).concat((null==h?void 0:h.length)>2?" ":"");return k.includes("â¦")&&(void 0===j||j)?(0,d.jsx)(i,{value:b,tooltipType:"line",placement:"bottom-start",children:(0,d.jsx)(e.D,{children:"".concat(l).concat(k)})}):(0,d.jsx)(e.D,{children:"".concat(l).concat(k)})}},30594:function(a,b,c){c.d(b,{Li:function(){return i}});var d=c(92228),e=c(26021),f=c(78545),g=c(93483);function h(){var a=(0,d.Z)(["\n ","\n ","\n ","\n ","\n ","\n"]);return h=function(){return a},a}var i=e.ZP.li.withConfig({componentId:"sc-42643149-0"})(h(),g.VZ,g.d8,g.SG,g.Rx,(0,f.qC)(f.Dh,f.bK,f.jf,f.Oq,f.$_,f.cp,f.GQ,f.Cg,f.FK,f.AF))},79416:function(a,b,c){c.d(b,{Q:function(){return k},Ul:function(){return j}});var d=c(92228),e=c(26021),f=c(78545),g=c(93483);function h(){var a=(0,d.Z)(["\n ","\n ","\n ","\n ","\n ","\n ","\n ","\n"]);return h=function(){return a},a}function i(){var a=(0,d.Z)(["\n ","\n"]);return i=function(){return a},a}var j=e.ZP.ul.withConfig({componentId:"sc-c7f93d73-0"})(h(),g.ZX,g.VX,g.kk,g.SG,g.e$,g.s2,(0,f.qC)(f.Dh,f.bK,f.GQ,f.Cg,f.cp,f.jf,f.eC,f.$_)),k=(0,e.ZP)(j).withConfig({componentId:"sc-c7f93d73-1"})(i(),function(a){return a.showShadow&&"\n --border-radius: 47px;\n \n &:before,\n &:after {\n content: '';\n position: absolute;\n height: 100%;\n width: 30px;\n pointer-events: none;\n border: 1px solid #EFEFEF;\n }\n \n &:before {\n background: linear-gradient(to right,rgba(255,255,255,0.6) 0%,rgba(255,255,255,0.6) 20%, transparent 100%);\n width: 25px;\n left: 4px; \n border-top-left-radius: var(--border-radius);\n border-bottom-left-radius: var(--border-radius);\n border-right-width: 0;\n }\n \n &:after {\n right: 4px;\n background: linear-gradient(to right, transparent 0%, rgba(255, 255, 255, 0.6) 30%, white 100%);\n border-top-right-radius: var(--border-radius);\n border-bottom-right-radius: var(--border-radius);\n \n border-left-width: 0;\n }\n \n "})},46793:function(a,b,c){c.d(b,{w:function(){return e}});var d=c(16302),e=function(a){var b=arguments.length>1&& void 0!==arguments[1]?arguments[1]:"svg";return"".concat(d.jB,"/").concat(a,".").concat(b)}},94210:function(a,b,c){c.d(b,{h:function(){return e}});var d=(0,c(1486).x)().publicRuntimeConfig.CURRENT_ENV,e=function(a,b){return b?"https://responsive.fxempire.com/v7/_".concat("production"!==d?"fxempirebeta":"fxempire","_").concat(a,"?func=crop&q=70&width=").concat(b,"&height=").concat(b):"https://responsive.fxempire.com/v7/_".concat("production"!==d?"fxempirebeta":"fxempire","_").concat(a,"?func=crop&q=70")}},56646:function(a,b,c){c.d(b,{j:function(){return d}});var d=function(a){var b,c,d=a.item,e=a.locale,f="USD",g=d.slug,h=d.vendor,i=d.category;("indices"===i&&"Oanda"===h||"currencies"===i)&&"string"==typeof g&&(f=g.slice(-3).toUpperCase());
1var j=(b=void 0===e?"en":e,c=f,0..toLocaleString(b,{style:"currency",currency:c,minimumFractionDigits:0,maximumFractionDigits:0}).replace(/\d/g,"").trim());return j}}}])
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.