1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2125,8505,8802],{78505:function(e,t,n){n.r(t);var r,o,i=n(58872);function c(){return(c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}t.default=function(e){return i.createElement("svg",c({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 49 48"},e),r||(r=i.createElement("g",{clipPath:"url(#bank_svg__a)"},i.createElement("circle",{cx:24.5,cy:24,r:24,fill:"#356FE1"}),i.createElement("g",{fill:"#fff"},i.createElement("path",{d:"M36.5 34h-24v3h24zM24.5 11l-12 4.667V18h24v-2.333zM18.5 21h-3v10h3zM23.5 21h-3v10h3zM28.5 21h-3v10h3zM33.5 21h-3v10h3z"})))),o||(o=i.createElement("defs",null,i.createElement("clipPath",{id:"bank_svg__a"},i.createElement("path",{fill:"#fff",d:"M.5 0h48v48H.5z"})))))}},78802:function(e,t,n){n.r(t);var r,o=n(58872);function i(){return(i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}t.default=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"#D4D5D6"},e),r||(r=o.createElement("path",{fillRule:"evenodd",d:"M21 8.176c-1.076.7-2.258 1.477-3.292 2.16a819 819 0 0 0-2.572 1.707l-.16.107-.041.027-.01.007-.003.002h-.001l-.555-.831.555.832-.018.01-.126.081c-.725.463-1.292.826-1.931.97a3.9 3.9 0 0 1-1.692 0c-.64-.144-1.205-.506-1.929-.968L9.1 12.2l-.025-.017L3 8.195v7.946c0 1.12 0 1.68.218 2.108a2 2 0 0 0 .874.875c.427.217.987.217 2.105.217h11.606c1.118 0 1.677 0 2.104-.218.377-.191.683-.498.875-.874.218-.427.218-.986.218-2.104V8.176m-.446-2.094c-1.24.8-2.704 1.764-3.949 2.586a885 885 0 0 0-2.578 1.71l-.16.108-.042.027-.006.004c-.905.577-1.16.723-1.412.78-.266.06-.548.06-.814 0-.252-.057-.505-.202-1.405-.775l-.005-.003L3.44 6.09c.177-.22.399-.401.653-.53.428-.219.988-.219 2.108-.219h11.6c1.12 0 1.68 0 2.107.218.251.128.471.307.647.523",clipRule:"evenodd"})))}},1623:function(e,t,n){n.d(t,{C2:function(){return i},E9:function(){return f},OI:function(){return a},QD:function(){return c},X1:function(){return d},YN:function(){return o},Yu:function(){return s},q0:function(){return u},tF:function(){return r},xh:function(){return l}});let r={signup_bonus_banner:{description:"ARCHIVED â bonus banner on /lp/join: hidden (control) vs shown (bonus); replaced by the country rule",remoteConfigKey:"web_signup_bonus_banner",mixpanelName:"web_signup_bonus_banner",variants:["control","bonus"],defaultVariant:"control",status:"archived"},signup_page_split:{description:"ARCHIVED â landing CTA destination: /lp/join (control) vs /lp/join-bonus; never launched",remoteConfigKey:"web_signup_page_split",mixpanelName:"web_signup_page_split",variants:["join","join_bonus"],defaultVariant:"join",status:"archived"},onboarding_full_vs_short:{description:"ARCHIVED â full vs short mobile onboarding funnel",remoteConfigKey:"web_onboarding_flow",mixpanelName:"web_onboarding_full_vs_short",variants:["default","short"],defaultVariant:"default",variantLabels:{default:"control_group_full_a",short:"variant_group_short_funnel_b"},devices:["mobile"],status:"archived"},download_app_timer:{description:"ARCHIVED â download-app screen: plain (variant_a) vs countdown (variant_b/_c)",remoteConfigKey:"web_landing__timer_ab_test",mixpanelName:"web_landing__timer_ab_test",variants:["variant_a","variant_b","variant_c"],defaultVariant:"variant_a",variantLabels:{variant_a:"control_group_a",variant_b:"variant_group_timer_b"},devices:["mobile"],status:"archived"},account_creation_screen:{description:"ARCHIVED â account-created screen layout",remoteConfigKey:"web_onboarding_acc_creation_screen",mixpanelName:"web_onboarding_acc_creation_screen",variants:["default","group_download_app_b"],defaultVariant:"default",status:"archived"}},o=Object.keys(r);function i(e){return r[e]}function c(e){return"running"===r[e].status}function a(){return o.filter(c)}function s(e,t){return!!t&&r[e].variants.includes(t)}function u(e,t){var n;let o=r[e].variantLabels;return null!==(n=null==o?void 0:o[t])&&void 0!==n?n:t}let l="abExperiments",d=2592e3,f="exp_"}
1,15987:function(e,t,n){n.d(t,{m:function(){return o}});var r=n(7653);let o=()=>{let[e,t]=(0,r.useState)(!1);return(0,r.useEffect)(()=>t(!0),[]),e}},12980:function(e,t,n){n.d(t,{C:function(){return i}});var r=n(7653),o=n(19431);function i(e){let t=(0,r.useCallback)(t=>{t.preventDefault(),(0,o.k)(e)},[e]);return e?t:void 0}},6785:function(e,t,n){n.d(t,{SymbolSubscriptionProvider:function(){return s},c:function(){return u}});var r=n(27573),o=n(7653),i=n(11443),c=n(36653);let a=(0,o.createContext)(null);function s(e){let{children:t}=e,n=(0,o.useRef)(new Map),s=(0,o.useRef)(()=>{}),u=(0,o.useCallback)(()=>{let e=new Set;if(n.current.forEach(t=>t.forEach(t=>e.add(t))),0===e.size)return;let t=Array.from(e);s.current(c.jN.SymbolSubscribe,{symbols:t})},[]),{sendMessage:l}=(0,i.Z)(c.Hg.Symbol,void 0,{onConnect:u});s.current=l;let d=(0,o.useCallback)((e,t)=>{n.current.set(e,t),u()},[u]),f=(0,o.useCallback)(e=>{n.current.delete(e),u()},[u]);(0,o.useEffect)(()=>()=>{s.current(c.jN.SymbolSubscribe,{symbols:[]})},[]);let _=(0,o.useMemo)(()=>({registerSymbols:d,unregisterSymbols:f}),[d,f]);return(0,r.jsx)(a.Provider,{value:_,children:t})}function u(e,t){let n=(0,o.useContext)(a);if(!n)throw Error("useSymbolSubscription must be used within SymbolSubscriptionProvider");let{registerSymbols:r,unregisterSymbols:i}=n,c=t.join(",");(0,o.useEffect)(()=>{r(e,t)},[e,c,r]),(0,o.useEffect)(()=>()=>i(e),[e,i])}},11443:function(e,t,n){var r=n(7653),o=n(412),i=n(48688),c=n(3871),a=n(36653),s=n(91433),u=n(67995);let l="wss://prod-ws-server.anttix.app",d=()=>(globalThis._wsSharedManager||(globalThis._wsSharedManager=new i.dK(l,{reconnection:!1,transports:["websocket"],autoConnect:!1})),globalThis._wsSharedManager);t.Z=function(e,t){let{accountId:n,enabled:f=!0,reconnect:_=!0,maxReconnectAttempts:E=5,reconnectInterval:m=3e3,responseTimeout:h=0,onConnect:p}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},S=(0,r.useRef)(null),g=(0,r.useRef)(null),[C,R]=(0,r.useState)(a.X0.Uninstantiated),v=(0,r.useRef)(0),b=(0,r.useRef)(null),N=(0,r.useRef)(null),A=(0,r.useRef)(!1),P=(0,o.I0)(),O=(0,o.v9)(u.OI),I=null!=n?n:null,w=(0,r.useRef)(O);w.current=O;let y=(0,r.useRef)({}),T=(0,r.useRef)(p);return T.current=p,(0,r.useEffect)(()=>{let n={[a.Hg.Symbol]:{[a.jN.SymbolData]:e=>{var t,n,r,o;(null===(n=e.quoteList)||void 0===n?void 0:null===(t=n.quotes)||void 0===t?void 0:t.length)?P((0,s.Zb)(e.quoteList)):e.quote?P((0,s.c5)(e.quote)):(null===(o=e.instrumentStatuses)||void 0===o?void 0:null===(r=o.instrumentStatuses)||void 0===r?void 0:r.length)&&P((0,s.te)(e.instrumentStatuses))}}};y.current=t||n[e]||{}}),(0,r.useEffect)(()=>{if(!e||!f)return;let t=!0,n=[],r=[],o=()=>{S.current&&(n.forEach(e=>{var t;let{event:n,wrapper:r}=e;return null===(t=S.current)||void 0===t?void 0:t.off(n,r)}),n.length=0,r.forEach(e=>{var t;return null===(t=S.current)||void 0===t?void 0:t.offAny(e)}),r.length=0)},s=()=>
1{if(_&&t){if(v.current>=E){console.warn("Socket.IO: max reconnect attempts (".concat(E,") reached for '").concat(e,"'.")),v.current=0,A.current=!1;return}v.current+=1,console.log("[useWebSocket] RECONNECT_SCHEDULED path=".concat(e,", attempt=").concat(v.current,"/").concat(E,", in=").concat(m,"ms")),b.current=setTimeout(C,m)}},u=()=>{var e;N.current&&clearTimeout(N.current),h>0&&(null===(e=S.current)||void 0===e?void 0:e.connected)&&(N.current=setTimeout(()=>{S.current&&t&&console.warn("Socket.IO: No message received for ".concat(h,"ms."))},h))},p=()=>e===a.Hg.ChartHistory?(g.current||(g.current=new i.dK(l,{reconnection:!1,transports:["websocket"],autoConnect:!1})),g.current):d(),C=async()=>{if(t&&f){R(a.X0.Connecting);try{let i=p().socket(e);S.current=i,o(),i.connected&&i.disconnect();let{accessToken:l,country:d}=await (0,c.h$)();if(!t)return;let f=(null!=I?I:w.current)||"",_=d||"BR";i.auth={token:l||"",account:f,country:_},console.log("[useWebSocket] connect path=".concat(e,", account=").concat(f,", country=").concat(_,", hasToken=").concat(!!l,", reconnectAttempt=").concat(v.current,"/").concat(E));let m=()=>{var n;t&&(R(a.X0.Open),null===(n=T.current)||void 0===n||n.call(T),b.current&&clearTimeout(b.current),v.current=0,A.current=!1,u(),console.log("[useWebSocket] connected path=".concat(e,", account=").concat(f,", country=").concat(_)))};i.on("connect",m),n.push({event:"connect",wrapper:m}),Object.keys(y.current).forEach(r=>{let o=n=>{var o,c;t&&(u(),r.endsWith(":error")&&"string"==typeof(null==n?void 0:n.message)&&n.message.includes("PERMISSION_DENIED")&&(console.warn("Socket.IO [".concat(e,"] PERMISSION_DENIED on '").concat(r,"' â disconnecting for fresh token.")),A.current=!0,i.disconnect()),null===(o=(c=y.current)[r])||void 0===o||o.call(c,n))};i.on(r,o),n.push({event:r,wrapper:o})});let h=()=>{t&&(console.warn("Socket.IO [".concat(e,"] auth:error â disconnecting for fresh token.")),A.current=!0,i.disconnect())};i.on(a.jN.AuthError,h),n.push({event:a.jN.AuthError,wrapper:h});let g=n=>{if(N.current&&clearTimeout(N.current),!t)return;console.log("[useWebSocket] DISCONNECTED path=".concat(e,", reason=").concat(n));let r="io client disconnect"===n&&A.current;("io client disconnect"!==n||r)&&(R(a.X0.Closed),S.current=null,s())};i.on("disconnect",g),n.push({event:"disconnect",wrapper:g});let C=n=>{t&&(console.warn("Socket.IO connect_error on '".concat(e,"':"),n.message),R(a.X0.Closed),S.current=null,s())};i.on("connect_error",C),n.push({event:"connect_error",wrapper:C});let P=(n,r)=>{t&&"string"==typeof(null==r?void 0:r.message)&&r.message.includes("PERMISSION_DENIED")&&(console.warn("Socket.IO [".concat(e,"] PERMISSION_DENIED caught on event '").concat(n,"' â disconnecting for fresh token.")),A.current=!0,i.disconnect())};i.onAny(P),r.push(P),i.connect()}catch(n){t&&(console.error("[useWebSocket] connectSocket failed path=".concat(e),n),R(a.X0.Closed),s())}}};return C(),()=>{t=!1,A.current=!1,b.current&&clearTimeout(b.current),N.current&&clearTimeout(N.current),o(),S.current&&(S.current.disconnect(),S.current=null),e===a.Hg.ChartHistory&&g.current&&(g.current.removeAllListeners(),g.current=null)}},[I,e,f,_,E,m,h]),{sendMessage:(0,r.useCallback)((e,t)=>{S.current&&S.current.connected?S.current.emit(e,t):console.log("Socket.IO is not connected. Cannot send message.")},[]),status:C,disconnect:(0,r.useCallback)(()=>{S.current&&S.current.disconnect()},[])}}},54698:function(e,t,n){function r(e){let t=e?"[".concat(Object.values(e).join(":"),"] "):"";return{info:(e,t)=>{},debug:(e,t)=>{},warn:(e,n)=>console.warn(t+e,...void 0!==n?[n]:[]),error:(e,n)=>console.error(t+e,...void 0!==n?[n]:[]),child:t=>r({...e,...t})}}n.d(t,{h:function(){return r},k:function(){return o}});let o=r()},3871:function(e,t,n){n.d(t,{h$:function(){return o}}),n(43503);var r=n(99976);(0,r.$)("57038e1f7a8ec1642613690b15c6ae5083818eed"),(0,r.$)("f7daede22f35044908a4e1e9b97b24b99310ade9");var o=(0,r.$)("c6f527392e47d2d7dbfa44292aa10c1631f114bb");(0,r.$)("f5afbcb66157d7b74c151adfee59b2945209832f")},49792:function(e,t,n){n.d(t,{ExperimentsProvider:function(){return h},j:function(){return m}});var r=n(27573),o=n(7653),i=n(72926),c=n(54698),a=n(14373),s=n(1623),u=n(2944);let l=(0,c.h)({module:"services/experiments"}),d="abExperimentOverrides";async function f(e){if(!e.length)return{};try{let t=(0,i.sN)(u.Z);t.settings.minimumFetchIntervalMillis=432e5,t.defaultConfig=s.YN.reduce((e,t)=>
1{let n=(0,s.C2)(t);return e[n.remoteConfigKey]=n.defaultVariant,e},{});let n=await (0,i.xS)(t);return l.info("[Experiments] remote config ".concat(n?"fetched":"served from cache")),e.reduce((e,n)=>{let r=(0,i.NA)(t,(0,s.C2)(n).remoteConfigKey);return"remote"===r.getSource()?e[n]=r.asString():l.info("[Experiments] ".concat(n," has no live remote config value â not bucketing")),e},{})}catch(e){return l.error("[Experiments] remote config fetch failed â falling back to defaults",e instanceof Error?e:{error:e}),{}}}async function _(e){let t=function(){let e={};try{e=JSON.parse(window.sessionStorage.getItem(d)||"{}")}catch(t){e={}}let t=new URLSearchParams(window.location.search),n=!1;for(let r of s.YN){let o=t.get("".concat(s.E9).concat(r));if(o){if(!(0,s.Yu)(r,o)){l.warn("[Experiments] ignoring override ".concat(r,"=").concat(o," â not a declared variant"));continue}e[r]!==o&&(e[r]=o,n=!0)}}if(n)try{window.sessionStorage.setItem(d,JSON.stringify(e))}catch(e){}return e}(),n=function(){var e;if("undefined"==typeof document)return{};let t=null===(e=document.cookie.split("; ").find(e=>e.startsWith("".concat(s.xh,"="))))||void 0===e?void 0:e.slice(s.xh.length+1);if(!t)return{};try{let e=JSON.parse(decodeURIComponent(t));return"object"==typeof e&&null!==e?e:{}}catch(e){return{}}}(),r=(0,s.OI)(),o={},i=[];for(let c of r)if(function(e,t){var n,r;if(null===(n=e.devices)||void 0===n?void 0:n.length){let t=(0,a.b1)()?"mobile":"desktop";if(!e.devices.includes(t))return!1}return null===(r=e.locales)||void 0===r||!r.length||!t||!!e.locales.includes(t)}((0,s.C2)(c),e)){if(t[c]){o[c]=t[c];continue}if((0,s.Yu)(c,n[c])){o[c]=n[c];continue}i.push(c)}if(i.length){let e=await f(i);for(let t of i){let n=e[t];if(t in e){if(!(0,s.Yu)(t,n)){l.warn("[Experiments] ".concat(t,': remote config returned "').concat(n,'", which is not a declared ')+'variant â falling back to "'.concat((0,s.C2)(t).defaultVariant,'"')),o[t]=(0,s.C2)(t).defaultVariant;continue}o[t]=n}}}let c=Object.keys(n),u=Object.keys(o);return(c.length!==u.length||u.some(e=>n[e]!==o[e]))&&function(e){if("undefined"==typeof document)return;let t=encodeURIComponent(JSON.stringify(e)),n=(0,a.yT)();document.cookie=["".concat(s.xh,"=").concat(t),"path=/","max-age=".concat(s.X1),n?"domain=".concat(n):"","samesite=lax"].filter(Boolean).join("; ")}(o),o}let E=(0,o.createContext)({assignments:{},isReady:!1}),m=()=>(0,o.useContext)(E);function h(e){let{children:t,initialAssignments:n,locale:i}=e,[c,a]=(0,o.useState)(null!=n?n:{}),[s,u]=(0,o.useState)(!1);(0,o.useEffect)(()=>{let e=!1;return _(i).then(t=>{e||a(t)}).finally(()=>{e||u(!0)}),()=>{e=!0}},[i]);let l=(0,o.useMemo)(()=>({assignments:c,isReady:s}),[c,s]);return(0,r.jsx)(E.Provider,{value:l,children:t})}},94225:function(e,t,n){n.d(t,{Fh:function(){return h},MZ:function(){return _},X1:function(){return E},tr:function(){return d}});var r=n(12578),o=n(2346),i=n(14373);let c=(e,t)=>t,a=e=>e.instruments,s=(0,r.P1)(a,e=>e.quotes),u=(0,r.P1)(a,e=>e.list),l=(0,r.P1)(a,e=>e.tree);(0,r.P1)(l,e=>e&&e.child.map(e=>e.category)),(0,r.P1)(l,e=>(0,o.Gh)(e));let d=(0,r.P1)([l,c],(e,t)=>e&&(0,o.lv)(e,t)),f=(0,r.P1)([s,c],(e,t)=>e&&e[t]||{}),_=(0,r.P1)([f],e=>{var t,n,r,o;return{symbol:e.symbol,precision:null!==(n=null==e?void 0:null===(t=e.bid)||void 0===t?void 0:t.scale)&&void 0!==n?n:2,bid:(0,i.FU)(e.bid),ask:(0,i.FU)(e.ask),priceChange:null!==(r=(0,i.FU)(e.priceChange))&&void 0!==r?r:0,priceChangePercent:null!==(o=(0,i.FU)(e.priceChangePercent))&&void 0!==o?o:0}});(0,r.P1)([f],e=>{var t,n,r,o;return{symbol:e.symbol,time:e.time?(0,i.in)("".concat(e.time)):"",precision:null!==(n=null==e?void 0:null===(t=e.bid)||void 0===t?void 0:t.scale)&&void 0!==n?n:2,bid:(0,i.FU)(e.bid),ask:(0,i.FU)(e.ask),priceChange:null!==(r=(0,i.FU)(e.priceChange))&&void 0!==r?r:0,priceChangePercent:null!==(o=(0,i.FU)(e.priceChangePercent))&&void 0!==o?o:0}});let E=(0,r.P1)([u,c],(e,t)=>e&&e[t.toLowerCase()]),m=(0,r.P1)(a,e=>e.conversionRates),h=(0,r.P1)([m,c],(e,t)=>e&&e[t]),p=(0,r.P1)(a,e=>e.instrumentStatuses||{});(0,r.P1)([p,c],(e,t)=>{var n,r;return{isOutOfTradingHours:null!==(r=null==e?void 0:null===(n=e[t])||void 0===n?void 0:n.isOutOfTradingHours)&&void 0!==r&&r}})},91433:function(e,t,n){n.d(t,{Fg:function(){return o},U$:function(){return a},Zb:function(){return c},c5:function(){return i},nP:function(){return s},te:function(){return u}});let r=(0,n(65938).oM)({name:"instruments",initialState:{tree:void 0,list:void 0,quotes:{},conversionRates:void 0,instrumentStatuses:{}},reducers:{setInstrumentTree:(e,t)=>
1{e.tree=t.payload},setInstrumentsList:(e,t)=>{e.list=t.payload},setConversionRates:(e,t)=>{e.conversionRates=t.payload},updateInstrumentQuote:(e,t)=>{e.quotes||(e.quotes={}),e.quotes[t.payload.symbol]=t.payload},updateInstrumentQuotes:(e,t)=>{e.quotes||(e.quotes={});let n=t.payload.quotes.reduce((e,t)=>(e[t.symbol]=t,e),{});e.quotes={...e.quotes,...n}},updateInstrumentStatuses:(e,t)=>{var n;(null===(n=t.payload)||void 0===n?void 0:n.instrumentStatuses)&&t.payload.instrumentStatuses.forEach(t=>{e.instrumentStatuses[t.symbol]={isOutOfTradingHours:t.isOutOfTradingHours}})}}}),{setInstrumentTree:o,updateInstrumentQuote:i,updateInstrumentQuotes:c,setInstrumentsList:a,setConversionRates:s,updateInstrumentStatuses:u}=r.actions;t.ZP=r.reducer},67995:function(e,t,n){n.d(t,{A5:function(){return f},OI:function(){return h},Pc:function(){return p},aC:function(){return d},hU:function(){return E},n1:function(){return _},u1:function(){return m},yV:function(){return l}});var r=n(12578),o=n(53408),i=n(87639),c=n.n(i),a=n(21231),s=n.n(a);let u=e=>e.user,l=(0,r.P1)(u,e=>e.userData),d=(0,r.P1)(u,e=>e.profile),f=(0,r.P1)(u,e=>e.authInitialized),_=(0,r.P1)(l,e=>e&&e.tradingAccounts&&c()(e.tradingAccounts,e=>e.type===o.Cs.LIVE)||null),E=e=>(0,r.P1)(l,t=>t&&t.tradingAccounts&&null!==e&&c()(t.tradingAccounts,t=>t.id===e)||null),m=(0,r.P1)(l,e=>e&&e.tradingAccounts?s()(e.tradingAccounts,e=>e.type===o.Cs.LIVE):[]);(0,r.P1)(l,e=>e&&e.tradingAccounts?e.tradingAccounts:[]);let h=(0,r.P1)(u,e=>e.currentTradingAccountId),p=(0,r.P1)(d,e=>!!e)},38158:function(e,t,n){var r,o,i,c,a,s,u,l,d,f,_,E;function m(e){switch(e){case 0:case"SWAP_DISABLED":return"SWAP_DISABLED";case 1:case"SWAP_BY_POINTS":return"SWAP_BY_POINTS";case 2:case"SWAP_BY_SYMBOL_CURRENCY":return"SWAP_BY_SYMBOL_CURRENCY";case 3:case"SWAP_BY_MARGIN_CURRENCY":return"SWAP_BY_MARGIN_CURRENCY";case 4:case"SWAP_BY_GROUP_CURRENCY":return"SWAP_BY_GROUP_CURRENCY";case 5:case"SWAP_BY_INTEREST_CURRENT":return"SWAP_BY_INTEREST_CURRENT";case 6:case"SWAP_BY_INTEREST_OPEN":return"SWAP_BY_INTEREST_OPEN";case 7:case"SWAP_REOPEN_BY_CLOSE_PRICE":return"SWAP_REOPEN_BY_CLOSE_PRICE";case 8:case"SWAP_REOPEN_BY_BID":return"SWAP_REOPEN_BY_BID";case 9:case"SWAP_BY_PROFIT_CURRENCY":return"SWAP_BY_PROFIT_CURRENCY";default:return"UNRECOGNIZED"}}n.d(t,{gX:function(){return m},jr:function(){return a}}),(u=r||(r={}))[u.BID=0]="BID",u[u.ASK=1]="ASK",u[u.UNRECOGNIZED=-1]="UNRECOGNIZED",(l=o||(o={}))[l.TRADE_DISABLED=0]="TRADE_DISABLED",l[l.TRADE_LONG_ONLY=1]="TRADE_LONG_ONLY",l[l.TRADE_SHORT_ONLY=2]="TRADE_SHORT_ONLY",l[l.TRADE_CLOSE_ONLY=3]="TRADE_CLOSE_ONLY",l[l.TRADE_FULL=4]="TRADE_FULL",l[l.TRADE_FIRST=5]="TRADE_FIRST",l[l.TRADE_LAST=6]="TRADE_LAST",l[l.UNRECOGNIZED=-1]="UNRECOGNIZED",(d=i||(i={}))[d.EXECUTION_REQUEST=0]="EXECUTION_REQUEST",d[d.EXECUTION_INSTANT=1]="EXECUTION_INSTANT",d[d.EXECUTION_MARKET=2]="EXECUTION_MARKET",d[d.EXECUTION_EXCHANGE=3]="EXECUTION_EXCHANGE",d[d.EXECUTION_FIRST=4]="EXECUTION_FIRST",d[d.EXECUTION_LAST=5]="EXECUTION_LAST",d[d.UNRECOGNIZED=-1]="UNRECOGNIZED",(f=c||(c={}))[f.MARGIN_FLAGS_NONE=0]="MARGIN_FLAGS_NONE",f[f.MARGIN_FLAGS_CHECK_PROCESS=1]="MARGIN_FLAGS_CHECK_PROCESS",f[f.MARGIN_FLAGS_CHECK_SLTP=2]="MARGIN_FLAGS_CHECK_SLTP",f[f.MARGIN_FLAGS_HEDGE_LARGE_LEG=4]="MARGIN_FLAGS_HEDGE_LARGE_LEG",f[f.MARGIN_FLAGS_EXCLUDE_PL=8]="MARGIN_FLAGS_EXCLUDE_PL",f[f.MARGIN_FLAGS_RECALC_RATES=10]="MARGIN_FLAGS_RECALC_RATES",f[f.UNRECOGNIZED=-1]="UNRECOGNIZED",(_=a||(a={})).SWAP_DISABLED="SWAP_DISABLED",_.SWAP_FIRST="SWAP_FIRST",_.SWAP_LAST="SWAP_LAST",_.SWAP_BY_POINTS="SWAP_BY_POINTS",_.SWAP_BY_SYMBOL_CURRENCY="SWAP_BY_SYMBOL_CURRENCY",_.SWAP_BY_MARGIN_CURRENCY="SWAP_BY_MARGIN_CURRENCY",_.SWAP_BY_GROUP_CURRENCY="SWAP_BY_GROUP_CURRENCY",_.SWAP_BY_INTEREST_CURRENT="SWAP_BY_INTEREST_CURRENT",_.SWAP_BY_INTEREST_OPEN="SWAP_BY_INTEREST_OPEN",_.SWAP_REOPEN_BY_CLOSE_PRICE="SWAP_REOPEN_BY_CLOSE_PRICE",_.SWAP_REOPEN_BY_BID="SWAP_REOPEN_BY_BID",_.SWAP_BY_PROFIT_CURRENCY="SWAP_BY_PROFIT_CURRENCY",_.UNRECOGNIZED="UNRECOGNIZED",(E=s||(s={})).MIN5="MIN5",E.HOUR="HOUR",E.DAY="DAY",E.WEEK="WEEK",E.MONTH="MONTH",E.YEAR="YEAR"},36653:function(e,t,n){var r,o,i,c,a,s,u,l;function d(e,t){return"".concat(e,":").concat(t)}n.d(t,{Hg:function(){return r},X0:function(){return o},jN:function(){return f}}),(a=r||(r={})).ChartHistory="/chart-history",a.PriceRange="/price-range",a.OrderFlow="/order-flow",a.EditOrderFlow="/edit-order-flow",a.EditPositionFlow="/edit-position-flow",a.Positions="/positions",a.Orders="/orders",a.Symbol="/symbol",a.AccountMetrics="/account-metrics",a.StateMachine="/state-machine",a.Notifications="/notifications",(s=o||(o={})).Connecting="Connecting",s.Open="Open",s.Closing="Closing",s.Closed="Closed",s.Uninstantiated="Uninstantiated",(u=i||(i={})).Auth="auth",u.Symbol="symbol",u.Positions="positions",u.Orders="orders",u.Chart="chart",u.OrderFlow="orderFlow",u.EditOrderFlow="editOrderFlow",u.EditPositionFlow="editPositionFlow",u.PriceRange="priceRange",u.AccountMetrics="accountMetrics",u.StateMachine="stateMachine",u.Notifications="notifications",(l=c||(c={})).Subscribe="subscribe",l.Unsubscribe="unsubscribe",l.Request="request",l.Data="data",l.Error="error",l.SubscriptionUpdate="subscriptionUpdate",l.StreamClosed="streamClosed",l.Refresh="refresh",l.AuthRefreshed="authRefreshed";let f={SymbolSubscribe:d("symbol","subscribe"),ChartUnsubscribe:d("chart","unsubscribe"),SymbolData:d("symbol","data"),SymbolError:d("symbol","error"),SymbolSubscriptionUpdate:d("symbol","subscriptionUpdate"),SymbolStreamClosed:d("symbol","streamClosed"),PositionsRequest:d("positions","request"),PositionsData:d("positions","data"),PositionsError:d("positions","error"),PositionsStreamClosed:d("positions","streamClosed"),OrdersRequest:d("orders","request"),OrdersData:d("orders","data"),OrdersError:d("orders","error"),OrdersStreamClosed:d("orders","streamClosed"),ChartSubscribe:d("chart","subscribe"),ChartData:d("chart","data"),ChartError:d("chart","error"),PriceRangeSubscribe:d("priceRange","subscribe"),PriceRangeError:d("priceRange","error"),PriceRangeData:d("priceRange","data"),PriceRangeStreamClosed:d("priceRange","streamClosed"),ChartSubscriptionUpdate:d("chart","subscriptionUpdate"),ChartStreamClosed:d("chart","streamClosed"),OrderFlowRequest:d("orderFlow","request"),OrderFlowData:d("orderFlow","data"),OrderFlowError:d("orderFlow","error"),OrderFlowStreamClosed:d("orderFlow","streamClosed"),EditOrderFlowRequest:d("editOrderFlow","request"),EditOrderFlowData:d("editOrderFlow","data"),EditOrderFlowError:d("editOrderFlow","error"),EditOrderFlowStreamClosed:d("editOrderFlow","streamClosed"),EditPositionFlowRequest:d("editPositionFlow","request"),EditPositionFlowData:d("editPositionFlow","data"),EditPositionFlowError:d("editPositionFlow","error"),EditPositionFlowStreamClosed:d("editPositionFlow","streamClosed"),AuthError:d("auth","error"),AuthRefresh:d("auth","refresh"),AuthRefreshed:d("auth","authRefreshed"),AccountMetricsSubscribe:d("accountMetrics","subscribe"),AccountMetricsSubscriptionUpdate:d("accountMetrics","subscriptionUpdate"),AccountMetricsData:d("accountMetrics","data"),AccountMetricsError:d("accountMetrics","error"),AccountMetricsStreamClosed:d("accountMetrics","streamClosed"),StateMachineData:d("stateMachine","data"),StateMachineError:d("stateMachine","error"),StateMachineStreamClosed:d("stateMachine","streamClosed"),NotificationsData:d("notifications","data"),NotificationsError:d("notifications","error"),NotificationsStreamClosed:d("notifications","streamClosed")}},95630:function(e,t,n){n.d(t,{l:function(){return r}});let r=[{id:1,title:"page.blocks.our_numbers.default.row.1.title",content:"10M+"},{id:2,title:"page.blocks.our_numbers.default.row.2.title",content:"$300M+"},{id:3,title:"page.blocks.our_numbers.default.row.3.title",content:"$2T+"}]},71055:function(e,t,n){n.d(t,{default:function(){return a}});var r=n(27573);n(7653);var o=n(50294),i=n(43014);let c=[{src:"/images/partners/investing.png",alt:"Investing Logo",width:182,height:38},{src:"/images/partners/trading-view.png",alt:"Trading View Logo",width:192,height:25},{src:"/images/partners/prime.png",alt:"Prime Logo",width:112,height:56},{src:"/images/partners/trading-central.png",alt:"Trading Central Logo",width:92,height:60}];function a(e){let{title:t,classNames:n}=e,{t:a}=(0,i.$G)();return(0,r.jsx)("section",{"data-block":"trustedPartners","data-slot":"base",className:null==n?void 0:n.base,children:(0,r.jsxs)("div",{"data-slot":"main-wrapper",className:null==n?void 0:n.mainWrapper,children:[t&&(0,r.jsx)("h2",{"data-slot":"title",className:null==n?void 0:n.title,children:a(t)}),(0,r.jsx)("div",{className:"flex flex-col lg:flex-row flex-wrap items-center justify-center gap-8 my-4 lg:mt-8",children:c.map(e=>{let{src:t,alt:n,width:i,height:c}=e;return(0,r.jsx)(o.default,{src:t,alt:n,width:i,height:c,className:"object-contain"},n)})})]})})}},61530:function(e,t,n){n.d(t,{Z:function(){return c}});var r=n(27573),o=n(7653),i=n(22541);
1function c(e){let{countries:t,when:n,children:c}=e,[a,s]=(0,o.useState)(null);return((0,o.useEffect)(()=>{(0,i.SG)().then(e=>s(e.toUpperCase()))},[]),null===a||t.includes(a)!==n)?null:(0,r.jsx)(r.Fragment,{children:c})}},39793:function(e,t,n){n.d(t,{Z:function(){return h}});var r=n(27573),o=n(7653),i=n(88146),c=n(43014),a=n(23957),s=n(49792),u=n(41940),l=n(1623);let d=(0,n(54698).h)({module:"services/experiments/exposure"}),f="abExperimentExposures",_=new Set;function E(){try{let e=JSON.parse(window.sessionStorage.getItem(f)||"[]");return Array.isArray(e)?e:[]}catch(e){return[]}}let m={signup:"lp/signup",join:"lp/join","join-bonus":"lp/join-bonus"};function h(e){let{label:t,children:n,onClick:h,joinTarget:p="signup",experiment:S,experimentTargets:g,...C}=e,{i18n:R}=(0,c.$G)(),{trackCTA:v}=(0,a.N)(),{variant:b}=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{trackExposure:n=!0}=t,{assignments:r,isReady:i}=(0,s.j)(),c=(0,u.q)(),a=e?l.tF[e]:void 0,m=e?r[e]:void 0,h=null!=m?m:null==a?void 0:a.defaultVariant;return(0,o.useEffect)(()=>{e&&n&&i&&c&&m&&(0,l.QD)(e)&&function(e,t,n){if(!e||!n||!(0,l.QD)(t))return;let r=(0,l.C2)(t),o=(0,l.q0)(t,n),i="".concat(r.mixpanelName,":").concat(o);_.has(i)||E().includes(i)||(_.add(i),function(e){try{let t=E();t.includes(e)||window.sessionStorage.setItem(f,JSON.stringify([...t,e]))}catch(e){}}(i),e.track("$experiment_started",{"Experiment name":r.mixpanelName,"Variant name":o}),e.people.set({[r.mixpanelName]:o}),r.registerSuperProperty&&e.register({["exp_".concat(r.mixpanelName)]:o}),window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"experiment_started",experiment_name:r.mixpanelName,variant_name:o}),d.info("[Experiments] exposure ".concat(r.mixpanelName," = ").concat(o)))}(c,e,m)},[e,m,i,c,n]),{variant:h,isReady:i,isControl:h===(null==a?void 0:a.defaultVariant)}}(S),N=S&&(null==g?void 0:g[b])||p,A="".concat("https://vcgmarkets.com","/").concat(R.language,"/").concat(m[N]);return(0,r.jsx)(i.default,{href:A,onClick:e=>{v(t),h&&h(e)},...C,children:n})}},50725:function(e,t,n){n.d(t,{Z:function(){return a}});var r=n(27573),o=n(7653),i=n(38158),c=n(2346);function a(e){let{value:t,swapMode:n,precision:a,currencyBase:s,currencyMargin:u,combinedValue:l}=e,d=(0,o.useCallback)(e=>a?(0,c.uf)(e,a):e,[a]),f=(0,o.useCallback)(function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=d(e);switch(n){case i.jr.SWAP_DISABLED:case i.jr.SWAP_FIRST:return"0";case i.jr.SWAP_BY_POINTS:return t?"".concat(r," points"):r;case i.jr.SWAP_BY_SYMBOL_CURRENCY:return t?"".concat(r," ").concat(s):r;case i.jr.SWAP_BY_MARGIN_CURRENCY:return t?"".concat(r," ").concat(u):r;case i.jr.SWAP_BY_GROUP_CURRENCY:case i.jr.SWAP_BY_PROFIT_CURRENCY:case i.jr.SWAP_LAST:return t?"$".concat(r):r;case i.jr.SWAP_BY_INTEREST_CURRENT:case i.jr.SWAP_BY_INTEREST_OPEN:return t?"".concat(r,"%"):r;case i.jr.SWAP_REOPEN_BY_CLOSE_PRICE:case i.jr.SWAP_REOPEN_BY_BID:return"reopen";default:return r}},[s,u,d,n]),_=f(t,void 0===l);if(void 0!==l){let e=f(l,!0);return(0,r.jsxs)(r.Fragment,{children:[_," ",(0,r.jsx)("span",{className:"text-content-disabled",children:" / "})," ",e]})}return(0,r.jsx)(r.Fragment,{children:_})}},23225:function(e,t,n){var r=n(27573),o=n(39793),i=n(14373);t.Z=e=>{let{children:t,className:n,label:c,joinTarget:a="join",...s}=e,u=c||("string"==typeof t?t:"CTA Click");return(0,r.jsx)(o.Z,{label:u,joinTarget:a,className:(0,i.cn)("flex items-center justify-center w-full lg:w-auto h-12","bg-gradient-to-r from-[#f4c532] to-[#fda20b]","rounded-full text-content-primary drop-shadow-[2px_2px_4px_rgba(0,0,0,0.25)]","transition-opacity hover:opacity-90",n),...s,children:t})}},2346:function(e,t,n){function r(e){return null==e?void 0:e.child.map(e=>e.category).filter(e=>(null==e?void 0:e.id)!=="crypto")}function o(e){return e&&"child"in e?e.child.reduce((e,t)=>(t.symbol&&!t.symbol.symbol.endsWith(".lv")?e.push(t.symbol):t.category&&"crypto"!==t.category.id&&e.push(...o(t.category)),e),[]).filter((e,t,n)=>t===n.findIndex(t=>t.symbol===e.symbol)):[]}function i(e,t){return o(null==e?void 0:e.child.map(e=>e.category).find(e=>(null==e?void 0:e.name)===t))}function c(e,t){return e?e.toFixed(t):null}n.d(t,{AZ:function(){return r},Gh:function(){return o},lv:function(){return i},uf:function(){return c}})},19431:function(e,t,n){n.d(t,{k:function(){return r}});function r(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:90,n=document.getElementById(e);n&&window.scrollTo({top:n.offsetTop-t,behavior:"smooth"})}}}]);
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.