New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@deriv-com/custom-scripts

Package Overview
Dependencies
Maintainers
0
Versions
165
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@deriv-com/custom-scripts - npm Package Compare versions

Comparing version 1.21.5 to 1.21.6

2

dist/js/footer_scripts.min.js

@@ -1,1 +0,1 @@

import{initializeApp as e}from"https://www.gstatic.com/firebasejs/10.8.1/firebase-app.js";import{getDatabase as o,ref as n,onValue as a}from"https://www.gstatic.com/firebasejs/10.8.1/firebase-database.js";function i(e,o,n,a){let i="";if(n){let e=new Date;e.setTime(e.getTime()+24*n*60*60*1e3),i="; expires="+e.toUTCString()}document.cookie=a?e+"="+(o||"")+i+`;domain=${a};path=/`:e+"="+(o||"")+i+";path=/"}function t(e){let o=document.cookie.split(";");for(let n=0;n<o.length;n++){let a=o[n].trim();if(a.startsWith(e+"="))return a.substring(e.length+1)}return null}function r(e,o){const n={};return e.split(";").forEach((e=>{const[o,a]=e.split("=").map((e=>e.trim()));n[o]=decodeURIComponent(a)})),n[o]}function d(e){i("webflow-user-language",e,30)}function s(e){document.cookie=e+"=; Max-Age=-99999999;"}window.emailRegex=/^[^\s@]+@[^\s@]+\.[^\s@]+$/,window.toggleErrorField=(e,o)=>{o?e.classList.remove("error-field"):e.classList.add("error-field")},window.disableButton=function(e){e.disabled=!0,e.style.opacity="0.5"},window.isEuRegion=function(e){const o=e.replace(/\/$/,"");return/^\/(?:[^\/]+\/)?eu(?:\/|$)/.test(o)},window.enableButton=function(e){e.disabled=!1,e.style.opacity="1"},window.getOauthUrl=function(){var e=window.location.href,o=new URL(e).hostname,n=["deriv.com","deriv.be","deriv.me"].find((e=>o.endsWith(e)));return n?`https://oauth.${n}`:"https://oauth.deriv.com"},window.getClientCountry=function(){var e;const o=r(document.cookie,"clients_country"),n=r(document.cookie,"client_information");return n&&(null==(e=JSON.parse(n))?void 0:e.residence)||o},window.deriv_com_url="deriv.com",window.deriv_me_url="deriv.me",window.deriv_be_url="deriv.be",window.webflow_domain="webflow.deriv.com",window.staging_url="staging.deriv.com",window.staging_deriv_be_url="staging.deriv.be",window.domain_list_app_id={[window.deriv_com_url]:"16929",[window.deriv_me_url]:"1411",[window.deriv_be_url]:"30767",[window.webflow_domain]:"53503",[window.staging_url]:"16303"},window.getDomain=()=>{var e=window.location.href;return new URL(e).hostname},window.getAppId=()=>{const e=window.getDomain(),o=new URLSearchParams(window.location.search||"").get("app_id");if(o)return o;const n=localStorage.getItem("config.app_id");if(n)return n;const a={[window.webflow_domain]:window.domain_list_app_id[window.webflow_domain],[window.deriv_be_url]:window.domain_list_app_id[window.deriv_be_url],[window.deriv_me_url]:window.domain_list_app_id[window.deriv_me_url],[window.staging_url]:window.domain_list_app_id[window.staging_url]};return a[e]?a[e]:window.domain_list_app_id[window.deriv_com_url]};const c=()=>{const e=localStorage.getItem("config.server_url"),o=r(document.cookie,"webflow-user-language");let n=o?o.toLowerCase():"en";"zh-cn"!==n&&"zh-tw"!==n||(n=n.replace("-","_"));const a=(e=>{let o="";return e&&Object.keys(e).forEach((n=>{o+=`&${n}=${e[n]}`})),o})((()=>{const e=r(document.cookie,"utm_data");if(e){const o=JSON.parse(e),n={};return["utm_source","utm_ad_id","utm_adgroup_id","utm_adrollclk_id","utm_campaign","utm_campaign_id","utm_content","utm_fbcl_id","utm_gl_client_id","utm_medium","utm_msclk_id","utm_term"].forEach((e=>{o.hasOwnProperty(e)&&(n[e]=o[e])})),n}return null})()),i=r(document.cookie,"affiliate_tracking"),t=i?`&affiliate_token=${i}`:"",d=void["mt5","bot","derivx"].filter((e=>window.location.pathname.includes(e)&&e))||"";return e&&/qa/.test(e)?`https://${e}/oauth2/authorize?app_id=${window.getAppId()}&l=${n}&brand=deriv${t}${a}&platform=${d}`:`${window.getOauthUrl()}/oauth2/authorize?app_id=${(()=>{const e=window.getDomain();return e===window.deriv_me_url?window.domain_list_app_id[window.deriv_me_url]:e===window.deriv_be_url?window.domain_list_app_id[window.deriv_be_url]:e===window.webflow_domain?window.domain_list_app_id[window.webflow_domain]:window.domain_list_app_id[window.deriv_com_url]})()}&l=${n}&brand=deriv${t}${a}&platform=${d}`};if(!!!r(document.cookie,"client_information")){var u=document.createElement("iframe");u.src=(()=>{const e=window.location.hostname;let o;switch(o="deriv.com"===e||"deriv.be"===e||"deriv.me"===e?"production":"staging.deriv.com"===e?"staging":"development",o){case"production":default:return"https://hub.deriv.com/tradershub/preload-helper";case"staging":return"https://staging-hub.deriv.com/tradershub/preload-helper"}})(),u.style.width="0",u.style.height="0",u.style.border="none",u.style.visibility="hidden",u.setAttribute("sandbox","allow-same-origin allow-scripts"),document.body.appendChild(u)}window.establishWebSocketConnection=()=>new Promise(((e,o)=>{const n=r(document.cookie,"webflow-user-language"),a=n?n.toLowerCase():"en",i=localStorage.getItem("config.server_url")||"green.derivws.com";window.websocket=new WebSocket(`wss://${i}/websockets/v3?app_id=${window.getAppId()}&l=${a||"en"}&brand=deriv`),window.websocket.addEventListener("open",(o=>{window.websocket.addEventListener("close",(()=>{window.websocket.close()})),window.websocket.addEventListener("message",(e=>{JSON.parse(e.data)})),e(window.websocket)})),window.websocket.addEventListener("error",(e=>{var n;null==(n=null==window?void 0:window.websocket)||n.close(),o(e)}))})),window.socketMessageSend=async(e,o)=>{var n;try{return(null==window?void 0:window.websocket)&&(null==(n=null==window?void 0:window.websocket)?void 0:n.readyState)===(null==WebSocket?void 0:WebSocket.OPEN)?(window.websocket.send(e),new Promise(((e,n)=>{window.websocket.addEventListener("message",(a=>{const i=JSON.parse(a.data);o===i.msg_type&&(i.error?n(i.error):e(i))}))}))):establishWebSocketConnection().then((()=>(websocket.send(e),new Promise(((e,n)=>{websocket.addEventListener("message",(a=>{const i=JSON.parse(a.data);o===i.msg_type&&(i.error?n(i.error):e(i))}))}))))).catch((e=>Promise.reject(e)))}catch(a){return Promise.reject(a)}};const l=[{id:"appgallery",selectors:[".footer_banner-badge.gallery.w-inline-block",".app-download_link-wrapper.appgallery.w-inline-block"],countries:["af","ax","al","dz","as","ad","ao","aq","am","au","at","az","bh","bd","by","be","bj","bm","bt","bo","ba","bw","bv","br","io","bn","bg","bf","bi","kh","cm","ca","cv","bq","cf","td","cn","cx","cc","km","cg","cd","ck","ci","hr","cu","cw","cy","cz","dk","dj","dm","eg","gq","er","ee","et","fk","fo","fj","fi","fr","pf","tf","ga","gm","ge","de","gh","gi","gr","gl","gu","gg","gn","gw","hm","va","hu","is","in","id","ir","iq","ie","im","il","it","jp","je","jo","kz","ke","ki","kr","kp","kw","kg","la","lv","lb","ls","lr","ly","li","lt","lu","mo","mk","mg","mw","my","mv","ml","mt","mh","mr","mu","yt","mx","fm","md","mc","mn","me","ma","mz","mm","na","nr","np","nl","nc","nz","ne","ng","nu","nf","mp","no","om","pk","pw","ps","pg","pe","ph","pn","pl","pt","qa","re","ro","ru","rw","sh","kn","pm","bl","mf","ws","sm","st","sa","sn","rs","sc","sl","sg","sx","sk","si","sb","so","gs","ss","es","lk","sd","sj","sz","se","ch","sy","tw","tj","tz","th","tl","tg","tk","to","tn","tr","tm","tc","tv","ug","ua","ae","gb","um","us","uz","vu","vi","wf","eh","ye","zm","zw"]},{id:"googlePlay",selectors:[".footer_banner-badge.google.w-inline-block",".app-download_link-wrapper.google.w-inline-block"],countries:["af","ax","as","ad","ai","aq","au","bb","bt","bv","io","bn","bi","ca","bq","cf","cx","cc","cg","cd","ck","cw","gq","et","fk","fo","gf","pf","tf","gl","gp","gu","gg","gy","hm","va","hk","ir","im","jp","je","ki","kp","ls","ly","mg","mw","mh","mq","mr","yt","fm","mn","me","ms","nr","nc","nz","ng","nu","nf","mp","pw","ps","pn","pr","re","sh","kn","lc","pm","vc","bl","mf","st","sg","sx","gs","ss","sj","sz","sy","tl","tk","tc","tv","um","us","vg","vi","wf","eh"]},{id:"appstore",selectors:[".footer_banner-badge.store.w-inline-block",".app-download_link-wrapper.appstore.w-inline-block"],countries:["ax","al","as","ad","aq","aw","au","at","bd","be","bv","io","bg","bi","ca","bq","cf","cx","cc","km","ck","hr","cu","cw","cy","cz","dk","dj","gq","er","ee","et","fk","fo","fi","fr","gf","pf","tf","de","gi","gr","gl","gp","gu","gg","gn","ht","hm","va","hk","hu","is","ir","iq","ie","im","il","it","je","ki","kp","lv","ls","ly","li","lt","lu","mt","mh","mq","yt","fm","me","nl","nc","nz","ng","nu","nf","mp","no","ps","pn","pl","pt","pr","re","ro","sh","pm","bl","mf","ws","sm","sg","sx","sk","si","so","gs","ss","es","sd","sj","se","ch","sy","tw","tl","tg","tk","tr","tv","gb","um","us","vu","vi","wf","eh"]},{id:"p2p",selectors:["#p2payment.accordion_toggle-block","#p2component.section_dp2p","#card_block_p2p.help_category"],countries:["as","au","at","be","bg","ca","hr","cy","cz","dk","ee","fi","fr","gr","gu","gg","hk","hu","ir","ie","im","il","it","je","ng","mm","sy","kp","lv","lt","lu","my","mt","nl","nz","mp","py","pl","pt","pr","ro","rw","sk","si","es","se","ae","gb","us","um","vu","vi","ky","cu","de"]},{id:"w-dyn-item-p2p",selectors:["div.w-dyn-item"],countries:["as","au","at","be","bg","ca","hr","cy","cz","dk","ee","fi","fr","gr","gu","gg","hk","hu","ir","ie","im","il","it","je","ng","mm","sy","kp","lv","lt","lu","my","mt","nl","nz","mp","py","pl","pt","pr","ro","rw","sk","si","es","se","ae","gb","us","um","vu","vi","ky","cu","de"]},{id:"hideRow",selectors:["#footer_social-icons_row","#footer_text_row",".footer_risk-warning.w-richtext"],countries:["br","uy","lk","ch","za","ec"]},{id:"hideDiel",selectors:["#footer_text_diel","#footer_social-icons_diel"],countries:["br","uy","lk","ch","za","ec"]}],p=[{id:"showElems",selectors:[".banner_disclaimer"],countries:["br","uy","lk","ch","za","ec"]}],w=()=>{const e=window.getClientCountry();l.forEach((o=>{const n="hideDiel"===o.id?!o.countries.includes(e):o.countries.includes(e);if(e&&n)return o.selectors.forEach((e=>{document.querySelectorAll(e).forEach((e=>{if(e)if("w-dyn-item-p2p"===o.id){e.querySelector("#card_block_p2p.help_category")&&(e.style.display="none")}else e.style.display="none"}))}));if(!n){const e=document.querySelector(".footer_social-icons.diel");e&&(e.style.display="flex")}})),p.forEach((o=>{e&&o.countries.includes(e)?o.selectors.forEach((e=>{document.querySelectorAll(e).forEach((o=>{if(o){const n=document.querySelector(".page-wrapper");".banner_disclaimer"===e?(n.classList.add("disclaimer-show"),o.classList.remove("hide-element")):o.style.display="block"}}))})):o.selectors.forEach((e=>{document.querySelectorAll(e).forEach((o=>{o&&(".banner_disclaimer"===e?o.classList.add("hide-element"):o.style.display="none")}))}))}))};document.addEventListener("DOMContentLoaded",(function(){const e=JSON.stringify({website_status:1});!async function(){try{const e=await fetch("https://www.cloudflare.com/cdn-cgi/trace"),o=await e.text(),n=Object.fromEntries(o.split("\n").map((e=>e.split("=",2)))).loc.toLowerCase();n!==r(document.cookie,"clients_country")&&(s("clients_country"),i("clients_country",n,30)),w()}catch(e){w()}}();r(document.cookie,"clients_country")||window.socketMessageSend(e,"website_status").then((e=>{r(document.cookie,"clients_country")!==e.website_status.clients_country&&(s("clients_country"),i("clients_country",e.website_status.clients_country,30)),w()})).catch((e=>{}))}));const h=["ar","bn","de","en","es","fr","it","ko","pl","pt","ru","si","sw","th","tr","vi","zh_cn","zh_tw","zh-cn","zh-tw"];function y(){let e,o=!1,n=!1;const a=()=>{n=!0,o=!!r(document.cookie,"client_information"),o&&clearInterval(e),document.dispatchEvent(new Event("authStatusChange"))};return a(),e=setInterval(a,800),{getLoggedInStatus:()=>o,getAuthCheckedStatus:()=>n,onAuthStatusChange:e=>document.addEventListener("authStatusChange",e)}}document.addEventListener("DOMContentLoaded",(function(){(()=>{var e;const o=window.location.pathname,n=window.location.hash,a=window.location.search,i=o.split("/"),t=i[1],s=h.includes(t||""),c=i.includes("careers")||i.includes("locations")||i.includes("derivtech")||i.includes("derivlife")||i.includes("trading-terms-glossary")||i.includes("eu-careers")||i.includes("our-locations")||i.includes("academy");s&&d(t);const u=(null==(e=r(document.cookie,"webflow-user-language"))?void 0:e.toLowerCase())||"en",l=s?t:u;if((s||"en"!==u)&&t!==u)if(s&&t!==u)d(l);else if(!c){const e=(s?i.map((e=>e===t?l:e)).join("/"):l+i.join("/"))+a+n;window.location.href="/"+e}})()})),document.addEventListener("DOMContentLoaded",(()=>{const e=y();e.onAuthStatusChange((()=>{if(e.getAuthCheckedStatus()&&e.getLoggedInStatus()){document.querySelectorAll(".logged-in-btn").forEach((e=>{e.classList.remove("hide-element")}));document.querySelectorAll(".logged-out-btn").forEach((e=>{e.classList.add("hide-element")}))}else if(e.getAuthCheckedStatus()&&!e.getLoggedInStatus()){document.querySelectorAll(".logged-out-btn").forEach((e=>{e.classList.remove("hide-element")}));document.querySelectorAll(".logged-in-btn").forEach((e=>{e.classList.add("hide-element")}))}}))})),document.addEventListener("DOMContentLoaded",(()=>{const e=window.location.href;if(["help-centre"].some((o=>e.includes(o)))){const n=new URL(e).searchParams;n.has("platform")&&"derivgo"===n.get("platform")&&(o=".derivgo-query-element",document.querySelectorAll(o).forEach((e=>{e.style.display="none"})))}var o}));const m=document.querySelector(".banner_disclaimer"),N=document.querySelector(".main-wrapper");if(m){new ResizeObserver((e=>{for(let o of e)if(o.target===m){let e=o.target.getBoundingClientRect();N&&(N.style.paddingTop=e.height+"px")}})).observe(m)}window.addEventListener("pageshow",(function(e){if(e.persisted){const e=document.querySelector(".w-nav-overlay");e&&(e.style.display="none",document.querySelector("body").click())}}));const Y=o(e({databaseURL:window.location.hostname.includes("staging")?"https://app-config-staging.firebaseio.com":"https://app-config-prod.firebaseio.com"}));let g=!1,f=!1;!function(){var e;const o=document.getElementById("live_chat-wrapper");try{const e=n(Y,"remote_config/deriv-com/chat");a(e,(e=>{const n=e.val();g=n.live_chat,f=n.whatsapp_chat;const a=document.querySelector(".whatsapp_chat"),i=document.querySelector(".livechatbtn");a&&(a.style.visibility=f?"visible":"hidden"),i&&(i.style.visibility=g?"visible":"hidden");const t=window.location.pathname.includes("/help-centre");if(window.location.pathname.includes("/deriv-prime")){o.style.flexDirection="column-reverse";document.querySelectorAll(".whatsapp_chat").forEach((e=>{e.style.visibility="hidden"}))}if(t){const e=document.querySelectorAll(".livechatbtn");g?e.forEach((e=>{e.style.visibility="visible"})):e.forEach((e=>{e.style.visibility="hidden"}));const o=document.querySelectorAll(".whatsapp_chat");f?o.forEach((e=>{e.style.visibility="visible"})):o.forEach((e=>{e.style.visibility="hidden"}))}window.addEventListener("scroll",(function(){var e,n;(g||f)&&(null==(e=null==o?void 0:o.classList)||e.remove("hide-element")),g||f||null==(n=null==o?void 0:o.classList)||n.add("hide-element")}))}),(e=>{var n;null==(n=null==o?void 0:o.classList)||n.remove("hide-element")}))}catch(i){null==(e=null==o?void 0:o.classList)||e.remove("hide-element")}}();new MutationObserver((function(e){for(const o of e)if(o.addedNodes.length)for(const e of o.addedNodes)e.nodeType===Node.ELEMENT_NODE&&"chat-widget-minimized"===e.id&&(e.style.opacity="0")})).observe(document.body,{childList:!0,subtree:!0});const v=window.getClientCountry();const b=[{country:"af",apple:"Yes",android:"N/A",huawei:"N/A"},{country:"ax",apple:"N/A",android:"N/A",huawei:"N/A"},{country:"al",apple:"No",android:"Yes",huawei:"No"},{country:"dz",apple:"Yes",android:"Yes",huawei:"No"},{country:"as",apple:"N/A",android:"No",huawei:"N/A"},{country:"ad",apple:"N/A",android:"N/A",huawei:"No"},{country:"ao",apple:"Yes",android:"Yes",huawei:"No"},{country:"ai",apple:"Yes",android:"N/A",huawei:"Yes"},{country:"aq",apple:"N/A",android:"N/A",huawei:"N/A"},{country:"ag",apple:"Yes",android:"Yes",huawei:"Yes"},{country:"ar",apple:"Yes",android:"Yes",huawei:"Yes"},{country:"am",apple:"Yes",android:"Yes",huawei:"No"},{country:"aw",apple:"N/A",android:"Yes",huawei:"Yes"},{country:"au",apple:"No",android:"No",huawei:"No"},{country:"at",apple:"No",android:"Yes",huawei:"No"},{country:"az",apple:"Yes",android:"Yes",huawei:"No"},{country:"bs",apple:"Yes",android:"Yes",huawei:"Yes"},{country:"bh",apple:"Yes",android:"Yes",huawei:"No"},{country:"bd",apple:"N/A",android:"Yes",huawei:"No"},{country:"bb",apple:"Yes",android:"N/A",huawei:"Yes"},{country:"by",apple:"Yes",android:"Yes",huawei:"No"},{country:"be",apple:"No",android:"Yes",huawei:"No"},{country:"bz",apple:"Yes",android:"Yes",huawei:"Yes"},{country:"bj",apple:"Yes",android:"Yes",huawei:"No"},{country:"bm",apple:"Yes",android:"Yes",huawei:"N/A"},{country:"bt",apple:"Yes",android:"N/A",huawei:"N/A"},{country:"bo",apple:"Yes",android:"Yes",huawei:"No"},{country:"ba",apple:"Yes",android:"Yes",huawei:"No"},{country:"bw",apple:"Yes",android:"Yes",huawei:"No"},{country:"bv",apple:"N/A",android:"N/A",huawei:"N/A"},{country:"br",apple:"Yes",android:"Yes",huawei:"No"},{country:"io",apple:"N/A",android:"N/A",huawei:"N/A"},{country:"bn",apple:"Yes",android:"N/A",huawei:"No"},{country:"bg",apple:"No",android:"Yes",huawei:"No"},{country:"bf",apple:"Yes",android:"Yes",huawei:"No"},{country:"bi",apple:"N/A",android:"N/A",huawei:"N/A"},{country:"kh",apple:"Yes",android:"Yes",huawei:"No"},{country:"cm",apple:"Yes",android:"Yes",huawei:"No"},{country:"ca",apple:"No",android:"No",huawei:"No"},{country:"cv",apple:"Yes",android:"Yes",huawei:"No"},{country:"bq",apple:"N/A",android:"N/A",huawei:"N/A"},{country:"ky",apple:"Yes",android:"Yes",huawei:"Yes"},{country:"cf",apple:"N/A",android:"N/A",huawei:"No"},{country:"td",apple:"Yes",android:"Yes",huawei:"No"},{country:"cl",apple:"Yes",android:"Yes",huawei:"Yes"},{country:"cn",apple:"Yes",android:"Yes",huawei:"No"},{country:"cx",apple:"N/A",android:"N/A",huawei:"N/A"},{country:"cc",apple:"N/A",android:"N/A",huawei:"N/A"},{country:"co",apple:"Yes",android:"Yes",huawei:"Yes"},{country:"km",apple:"N/A",android:"Yes",huawei:"N/A"},{country:"cg",apple:"Yes",android:"N/A",huawei:"No"},{country:"cd",apple:"Yes",android:"N/A",huawei:"No"},{country:"ck",apple:"N/A",android:"N/A",huawei:"No"},{country:"cr",apple:"Yes",android:"Yes",huawei:"Yes"},{country:"ci",apple:"Yes",android:"Yes",huawei:"No"},{country:"hr",apple:"No",android:"Yes",huawei:"No"},{country:"cu",apple:"N/A",android:"Yes",huawei:"N/A"},{country:"cw",apple:"N/A",android:"N/A",huawei:"N/A"},{country:"cy",apple:"No",android:"Yes",huawei:"No"},{country:"cz",apple:"No",android:"Yes",huawei:"No"},{country:"dk",apple:"No",android:"Yes",huawei:"No"},{country:"dj",apple:"N/A",android:"Yes",huawei:"No"},{country:"dm",apple:"Yes",android:"Yes",huawei:"N/A"},{country:"do",apple:"Yes",android:"Yes",huawei:"Yes"},{country:"ec",apple:"Yes",android:"Yes",huawei:"Yes"},{country:"eg",apple:"Yes",android:"Yes",huawei:"No"},{country:"sv",apple:"Yes",android:"Yes",huawei:"Yes"},{country:"gq",apple:"N/A",android:"N/A",huawei:"No"},{country:"er",apple:"N/A",android:"Yes",huawei:"No"},{country:"ee",apple:"No",android:"Yes",huawei:"No"},{country:"et",apple:"N/A",android:"N/A",huawei:"No"},{country:"fk",apple:"N/A",android:"N/A",huawei:"N/A"},{country:"fo",apple:"N/A",android:"N/A",huawei:"No"},{country:"fj",apple:"Yes",android:"Yes",huawei:"No"},{country:"fi",apple:"No",android:"Yes",huawei:"No"},{country:"fr",apple:"No",android:"Yes",huawei:"No"},{country:"gf",apple:"N/A",android:"N/A",huawei:"Yes"},{country:"pf",apple:"N/A",android:"N/A",huawei:"No"},{country:"tf",apple:"N/A",android:"N/A",huawei:"N/A"},{country:"ga",apple:"Yes",android:"Yes",huawei:"No"},{country:"gm",apple:"Yes",android:"Yes",huawei:"No"},{country:"ge",apple:"Yes",android:"Yes",huawei:"No"},{country:"de",apple:"No",android:"Yes",huawei:"No"},{country:"gh",apple:"Yes",android:"Yes",huawei:"No"},{country:"gi",apple:"N/A",android:"Yes",huawei:"No"},{country:"gr",apple:"No",android:"Yes",huawei:"No"},{country:"gl",apple:"N/A",android:"N/A",huawei:"No"},{country:"gd",apple:"Yes",android:"Yes",huawei:"Yes"},{country:"gp",apple:"N/A",android:"N/A",huawei:"Yes"},{country:"gu",apple:"N/A",android:"No",huawei:"N/A"},{country:"gt",apple:"Yes",android:"Yes",huawei:"Yes"},{country:"gg",apple:"N/A",android:"N/A",huawei:"N/A"},{country:"gn",apple:"N/A",android:"Yes",huawei:"No"},{country:"gw",apple:"Yes",android:"Yes",huawei:"No"},{country:"gy",apple:"Yes",android:"N/A",huawei:"Yes"},{country:"ht",apple:"N/A",android:"Yes",huawei:"Yes"},{country:"hm",apple:"N/A",android:"N/A",huawei:"N/A"},{country:"va",apple:"N/A",android:"N/A",huawei:"N/A"},{country:"hn",apple:"Yes",android:"Yes",huawei:"Yes"},{country:"hk",apple:"No",android:"No",huawei:"Yes"},{country:"hu",apple:"No",android:"Yes",huawei:"No"},{country:"is",apple:"No",android:"Yes",huawei:"No"},{country:"in",apple:"Yes",android:"Yes",huawei:"No"},{country:"id",apple:"Yes",android:"Yes",huawei:"No"},{country:"ir",apple:"N/A",android:"N/A",huawei:"N/A"},{country:"iq",apple:"No",android:"Yes",huawei:"N/A"},{country:"ie",apple:"No",android:"Yes",huawei:"No"},{country:"im",apple:"N/A",android:"N/A",huawei:"N/A"},{country:"il",apple:"No",android:"Yes",huawei:"No"},{country:"it",apple:"No",android:"Yes",huawei:"No"},{country:"jm",apple:"Yes",android:"Yes",huawei:"Yes"},{country:"jp",apple:"Yes",android:"No",huawei:"No"},{country:"je",apple:"N/A",android:"N/A",huawei:"N/A"},{country:"jo",apple:"Yes",android:"Yes",huawei:"No"},{country:"kz",apple:"Yes",android:"Yes",huawei:"No"},{country:"ke",apple:"Yes",android:"Yes",huawei:"No"},{country:"ki",apple:"N/A",android:"N/A",huawei:"N/A"},{country:"kr",apple:"Yes",android:"Yes",huawei:"N/A"},{country:"kp",apple:"N/A",android:"N/A",huawei:"N/A"},{country:"kw",apple:"Yes",android:"Yes",huawei:"No"},{country:"kg",apple:"Yes",android:"Yes",huawei:"No"},{country:"la",apple:"Yes",android:"Yes",huawei:"No"},{country:"lv",apple:"No",android:"Yes",huawei:"No"},{country:"lb",apple:"Yes",android:"Yes",huawei:"No"},{country:"ls",apple:"N/A",android:"N/A",huawei:"No"},{country:"lr",apple:"Yes",android:"Yes",huawei:"No"},{country:"ly",apple:"N/A",android:"N/A",huawei:"N/A"},{country:"li",apple:"N/A",android:"Yes",huawei:"No"},{country:"lt",apple:"No",android:"Yes",huawei:"No"},{country:"lu",apple:"No",android:"Yes",huawei:"No"},{country:"mo",apple:"Yes",android:"Yes",huawei:"No"},{country:"mk",apple:"Yes",android:"Yes",huawei:"No"},{country:"mg",apple:"Yes",android:"N/A",huawei:"No"},{country:"mw",apple:"Yes",android:"N/A",huawei:"No"},{country:"my",apple:"Yes",android:"Yes",huawei:"No"},{country:"mv",apple:"Yes",android:"Yes",huawei:"N/A"},{country:"ml",apple:"Yes",android:"Yes",huawei:"No"},{country:"mt",apple:"No",android:"Yes",huawei:"No"},{country:"mh",apple:"N/A",android:"N/A",huawei:"N/A"},{country:"mq",apple:"N/A",android:"N/A",huawei:"Yes"},{country:"mr",apple:"Yes",android:"N/A",huawei:"No"},{country:"mu",apple:"Yes",android:"Yes",huawei:"No"},{country:"yt",apple:"N/A",android:"N/A",huawei:"No"},{country:"mx",apple:"Yes",android:"Yes",huawei:"No"},{country:"fm",apple:"N/A",android:"N/A",huawei:"N/A"},{country:"md",apple:"Yes",android:"Yes",huawei:"No"},{country:"mc",apple:"Yes",android:"Yes",huawei:"No"},{country:"mn",apple:"Yes",android:"N/A",huawei:"No"},{country:"me",apple:"No",android:"N/A",huawei:"No"},{country:"ms",apple:"Yes",android:"N/A",huawei:"Yes"},{country:"ma",apple:"Yes",android:"Yes",huawei:"No"},{country:"mz",apple:"Yes",android:"Yes",huawei:"No"},{country:"mm",apple:"Yes",android:"Yes",huawei:"No"},{country:"na",apple:"Yes",android:"Yes",huawei:"No"},{country:"nr",apple:"Yes",android:"N/A",huawei:"No"},{country:"np",apple:"Yes",android:"Yes",huawei:"No"},{country:"nl",apple:"No",android:"Yes",huawei:"No"},{country:"nc",apple:"N/A",android:"N/A",huawei:"N/A"},{country:"nz",apple:"No",android:"No",huawei:"No"},{country:"ni",apple:"Yes",android:"Yes",huawei:"Yes"},{country:"ne",apple:"Yes",android:"Yes",huawei:"No"},{country:"ng",apple:"No",android:"No",huawei:"No"},{country:"nu",apple:"N/A",android:"N/A",huawei:"N/A"},{country:"nf",apple:"N/A",android:"N/A",huawei:"N/A"},{country:"mp",apple:"N/A",android:"No",huawei:"N/A"},{country:"no",apple:"No",android:"Yes",huawei:"No"},{country:"om",apple:"Yes",android:"Yes",huawei:"No"},{country:"pk",apple:"Yes",android:"Yes",huawei:"No"},{country:"pw",apple:"Yes",android:"No",huawei:"N/A"},{country:"ps",apple:"N/A",android:"N/A",huawei:"No"},{country:"pa",apple:"Yes",android:"Yes",huawei:"Yes"},{country:"pg",apple:"Yes",android:"Yes",huawei:"No"},{country:"py",apple:"Yes",android:"Yes",huawei:"Yes"},{country:"pe",apple:"Yes",android:"Yes",huawei:"No"},{country:"ph",apple:"Yes",android:"Yes",huawei:"No"},{country:"pn",apple:"N/A",android:"N/A",huawei:"N/A"},{country:"pl",apple:"No",android:"Yes",huawei:"No"},{country:"pt",apple:"No",android:"Yes",huawei:"No"},{country:"pr",apple:"N/A",android:"No",huawei:"Yes"},{country:"qa",apple:"Yes",android:"Yes",huawei:"No"},{country:"re",apple:"N/A",android:"N/A",huawei:"No"},{country:"ro",apple:"No",android:"Yes",huawei:"No"},{country:"ru",apple:"Yes",android:"Yes",huawei:"No"},{country:"rw",apple:"Yes",android:"Yes",huawei:"No"},{country:"sh",apple:"N/A",android:"N/A",huawei:"N/A"},{country:"kn",apple:"Yes",android:"N/A",huawei:"N/A"},{country:"lc",apple:"Yes",android:"N/A",huawei:"Yes"},{country:"pm",apple:"N/A",android:"N/A",huawei:"N/A"},{country:"vc",apple:"Yes",android:"N/A",huawei:"Yes"},{country:"bl",apple:"N/A",android:"N/A",huawei:"N/A"},{country:"mf",apple:"N/A",android:"N/A",huawei:"N/A"},{country:"ws",apple:"N/A",android:"Yes",huawei:"No"},{country:"sm",apple:"N/A",android:"Yes",huawei:"No"},{country:"st",apple:"Yes",android:"N/A",huawei:"No"},{country:"sa",apple:"Yes",android:"Yes",huawei:"No"},{country:"sn",apple:"Yes",android:"Yes",huawei:"No"},{country:"rs",apple:"Yes",android:"Yes",huawei:"No"},{country:"sc",apple:"Yes",android:"Yes",huawei:"N/A"},{country:"sl",apple:"Yes",android:"Yes",huawei:"No"},{country:"sg",apple:"No",android:"No",huawei:"No"},{country:"sx",apple:"N/A",android:"N/A",huawei:"N/A"},{country:"sk",apple:"No",android:"Yes",huawei:"No"},{country:"si",apple:"No",android:"Yes",huawei:"No"},{country:"sb",apple:"Yes",android:"Yes",huawei:"No"},{country:"so",apple:"N/A",android:"Yes",huawei:"N/A"},{country:"za",apple:"Yes",android:"Yes",huawei:"Yes"},{country:"gs",apple:"N/A",android:"N/A",huawei:"N/A"},{country:"ss",apple:"N/A",android:"N/A",huawei:"N/A"},{country:"es",apple:"No",android:"Yes",huawei:"No"},{country:"lk",apple:"Yes",android:"Yes",huawei:"No"},{country:"sd",apple:"N/A",android:"Yes",huawei:"N/A"},{country:"sr",apple:"Yes",android:"Yes",huawei:"Yes"},{country:"sj",apple:"N/A",android:"N/A",huawei:"N/A"},{country:"sz",apple:"Yes",android:"N/A",huawei:"No"},{country:"se",apple:"No",android:"Yes",huawei:"No"},{country:"ch",apple:"No",android:"Yes",huawei:"No"},{country:"sy",apple:"N/A",android:"N/A",huawei:"N/A"},{country:"tw",apple:"No",android:"Yes",huawei:"No"},{country:"tj",apple:"Yes",android:"Yes",huawei:"No"},{country:"tz",apple:"Yes",android:"Yes",huawei:"No"},{country:"th",apple:"Yes",android:"Yes",huawei:"No"},{country:"tl",apple:"N/A",android:"N/A",huawei:"N/A"},{country:"tg",apple:"N/A",android:"Yes",huawei:"No"},{country:"tk",apple:"N/A",android:"N/A",huawei:"N/A"},{country:"to",apple:"Yes",android:"Yes",huawei:"No"},{country:"tt",apple:"Yes",android:"Yes",huawei:"Yes"},{country:"tn",apple:"Yes",android:"Yes",huawei:"No"},{country:"tr",apple:"No",android:"Yes",huawei:"No"},{country:"tm",apple:"Yes",android:"Yes",huawei:"No"},{country:"tc",apple:"Yes",android:"N/A",huawei:"N/A"},{country:"tv",apple:"N/A",android:"N/A",huawei:"N/A"},{country:"ug",apple:"Yes",android:"Yes",huawei:"No"},{country:"ua",apple:"Yes",android:"Yes",huawei:"No"},{country:"ae",apple:"Yes",android:"Yes",huawei:"No"},{country:"gb",apple:"No",android:"Yes",huawei:"No"},{country:"um",apple:"N/A",android:"No",huawei:"N/A"},{country:"us",apple:"No",android:"No",huawei:"N/A"},{country:"uy",apple:"Yes",android:"Yes",huawei:"Yes"},{country:"uz",apple:"Yes",android:"Yes",huawei:"No"},{country:"vu",apple:"No",android:"Yes",huawei:"N/A"},{country:"ve",apple:"Yes",android:"Yes",huawei:"Yes"},{country:"vn",apple:"Yes",android:"Yes",huawei:"Yes"},{country:"vg",apple:"Yes",android:"N/A",huawei:"Yes"},{country:"vi",apple:"N/A",android:"No",huawei:"N/A"},{country:"wf",apple:"N/A",android:"N/A",huawei:"N/A"},{country:"eh",apple:"N/A",android:"N/A",huawei:"N/A"},{country:"ye",apple:"Yes",android:"Yes",huawei:"No"},{country:"zm",apple:"Yes",android:"Yes",huawei:"No"},{country:"zw",apple:"Yes",android:"Yes",huawei:"No"}].find((e=>e.country===v)),A=b?function(e){const{apple:o,android:n,huawei:a}=e;return"Yes"===o&&"Yes"===n&&"Yes"===a?"Android, iOS & Huawei":"Yes"===o&&"Yes"===n&&"Yes"!==a?"Android, and iOS":"Yes"===o&&"Yes"===a&&"Yes"!==n?"iOS, and Huawei":"Yes"===n&&"Yes"!==o&&"Yes"!==a?"Android":"Yes"===o&&"Yes"===a&&"Yes"!==n?"iOS, and Huawei":"Yes"===o&&"Yes"!==n&&"Yes"!==a?"iOS":"Yes"!==o&&"Yes"!==n&&"Yes"===a?"Huawei":""}(b):"",_=document.getElementById("app-download-heading");_&&(_.innerText=A);const k=document.querySelector(".redirection_background-wrapper"),L=document.getElementById("cancel-redirect"),E=document.getElementById("proceed-redirect"),S="tracking_status",q="tracking_status_decline",z=window.dataLayer,x=r(document.cookie,"client_information"),C=!!x,j=document.getElementById("accept-cookie"),O=document.getElementById("dont-accept-cookie"),I=document.querySelector(".cookies_background-wrapper");if(document.addEventListener("DOMContentLoaded",(()=>{z&&window.dataLayer.push({loggedIn:C,language:r(document.cookie,"webflow-user-language")||"en",...C&&{visitorId:null==x?void 0:x.loginid,currency:null==x?void 0:x.currency,email:null==x?void 0:x.email}}),!window.location.pathname.includes("eu")||t(S)||t(q)||(I.classList.remove("hide-element"),document.body.classList.add("show-cookie")),null==j||j.addEventListener("click",(()=>{i(S,!0),I.classList.add("hide-element"),document.body.classList.remove("show-cookie")})),null==O||O.addEventListener("click",(()=>{i(q,!0),i(S,!1),I.classList.add("hide-element"),document.body.classList.remove("show-cookie")}))})),window.isEuRegion(window.location.pathname)&&k&&L&&E){const e=["deriv.me","deriv.be","deriv.com","app.deriv.me","app.deriv.be","app.deriv.com","docs.deriv.com","community.deriv.com","deriv.statuspage.io","signup.deriv.com","login.deriv.com","api.deriv.com"];let o="",n="_self";document.querySelectorAll("a").forEach((function(a){const i=new URL(a.href,window.location.href),t=new URL(window.location.href);e.includes(i.host)||i.host===t.host||a.addEventListener("click",(function(e){e.preventDefault(),o=i.href,n=a.target||"_self",k.classList.remove("hide-element"),document.body.style.overflow="hidden"}))})),L.addEventListener("click",(function(){k.classList.add("hide-element"),document.body.style.overflow="auto",o=""})),E.addEventListener("click",(function(){o&&(window.open(o,n),o="",k.classList.add("hide-element"),document.body.style.overflow="auto")}))}document.addEventListener("DOMContentLoaded",(function(){document.querySelector(".banner_disclaimer")?document.body.classList.add("disclaimer-visible"):document.body.classList.remove("disclaimer-visible")}));const D=document.querySelectorAll(".navbar_accordion-item");function $(){const e=document.querySelector(".navbar_accordion-trigger.open");e&&e.scrollIntoView({behavior:"smooth",block:"start"})}D.forEach((e=>{e.querySelector(".navbar_accordion-trigger").classList.remove("open");const o=e.querySelector(".navbar_accordion-content");o.classList.remove("open"),o.style.maxHeight="0px",o.style.overflow="hidden",o.style.transition="max-height 0.3s ease-in, opacity 0.3s ease-in",o.style.opacity="0"})),D.forEach((e=>{const o=e.querySelector(".navbar_accordion-trigger");o.addEventListener("click",(function(){const e=o.classList.contains("open");if(D.forEach((e=>{e.querySelector(".navbar_accordion-trigger").classList.remove("open");const o=e.querySelector(".navbar_accordion-content");o.classList.remove("open"),o.style.maxHeight="0px",o.style.opacity="0"})),!e){o.classList.add("open");const e=o.nextElementSibling;e.classList.add("open"),e.style.maxHeight=e.scrollHeight+"px",e.style.opacity="1"}}))}));document.querySelectorAll(".navbar_accordion-trigger").forEach((e=>{e.addEventListener("click",(function(){setTimeout($,300)}))}));const M=new MutationObserver((e=>{e.forEach((e=>{if("class"===e.attributeName){const o=e.target;o.classList.contains("open")&&o.scrollIntoView({behavior:"smooth",block:"start"})}}))}));document.querySelectorAll(".navbar_accordion-item").forEach((e=>{M.observe(e,{attributes:!0})}));const R=new URL(window.location.href),B=new URLSearchParams(R.search),U=B.get("t");if(B.has("referrer")&&null!=U){r(document.cookie,"referrer_token")!==U&&(s("referrer_token"),i("referrer_token",U,365,".deriv.com"))}const P=document.getElementById("navbar-home_login");P&&P.addEventListener("click",(function(e){e.preventDefault(),window.location.href=c()}));const W=document.getElementById("res-navbar-home_login");W&&W.addEventListener("click",(function(e){e.preventDefault(),window.location.href=c()}));const H=document.getElementById("white-navbar_login");H&&H.addEventListener("click",(function(e){e.preventDefault(),window.location.href=c()}));const T=document.getElementById("res-white-navbar_login");T&&T.addEventListener("click",(function(e){e.preventDefault(),window.location.href=c()})),document.addEventListener("DOMContentLoaded",(function(){let e=document.querySelectorAll(".navbar_accordion-trigger"),o=document.querySelector(".navbar_menu-button");if(document.querySelector(".new-navbar_component")){const e=document.querySelector(".new-navbar_component");e.addEventListener("mouseenter",(()=>{window.innerWidth>991&&document.body.classList.add("disable-scroll")})),e.addEventListener("mouseleave",(()=>{window.innerWidth>991&&document.body.classList.remove("disable-scroll")}))}o&&o.addEventListener("click",(function(){let e=window.innerHeight,o=document.querySelector(".new-navbar_main-wrapper");if(o){let n=e-o.offsetHeight,a=document.querySelector(".new-navbar_menu");a&&(a.style.height=`${n}px`)}})),e.forEach((o=>{o.addEventListener("click",(function(){e.forEach((e=>e.classList.remove("current"))),this.classList.add("current")}))}));let n=document.querySelector(".navbar_accordion-link.w--current");if(n){let e=n.closest(".navbar_accordion-item");if(e){let o=e.querySelector(".navbar_accordion-trigger");o&&o.classList.add("current")}}})),document.addEventListener("DOMContentLoaded",(()=>{var e=window.location.pathname;["/careers","/locations","/derivtech","/derivlife","/eu-careers","/our-locations","/product-explorer","/academy","/trading-terms-glossary"].some((o=>e.includes(o)))&&document.head.querySelectorAll("link").forEach((function(e){e.hasAttribute("hreflang")&&"x-default"!==e.getAttribute("hreflang")&&e.remove()}))})),document.addEventListener("DOMContentLoaded",(function(){let e=document.querySelector(".locale > .new-navbar_dropdown-link.w--current");if(e){let o=e.getAttribute("hreflang"),n=document.querySelectorAll(".current-locale-iso-code");if(o&&n.length)for(let e of n)e.innerText=o}}));let J=document.querySelectorAll(".w-locales-items");if(J.length>0){J.forEach((function(e){e.querySelectorAll("a").forEach((function(e){e.addEventListener("click",(function(o){o.preventDefault(),i("webflow-user-language",e.getAttribute("hreflang"),30),window.location.href=e.href}))}))}));const e=e=>{let o=document.querySelector('a[hreflang="'+e+'"]');o&&window.location.pathname!==o.getAttribute("href")&&o.click()};window.setLanguageCookie=e=>{i("webflow-user-language",e,30)};let o=t("webflow-user-language"),n=["/careers","/locations","/derivtech","/derivlife","/eu-careers","/our-locations","/product-explorer","/academy","/trading-terms-glossary"],a=window.location.pathname,r=!1;n.some((e=>a.includes(e))),o&&r&&e(o)}document.addEventListener("DOMContentLoaded",(function(){const e=r(document.cookie,"webflow-user-language"),o=["as","au","at","be","bg","ca","hr","cy","cz","dk","ee","fi","fr","gr","gu","gg","hk","hu","ir","ie","im","il","it","je","ng","mm","sy","kp","lv","lt","lu","my","mt","nl","nz","mp","py","pl","pt","pr","ro","rw","sk","si","es","se","ae","gb","us","um","vu","vi","ky","cu","de"];if(window.location.pathname.endsWith("p2p")&&!window.location.pathname.startsWith("/blog")){const n=window.getClientCountry();n&&o.includes(n)&&("en"===e?window.location.replace("/404"):window.location.replace(`/${e}/404`))}})),document.addEventListener("DOMContentLoaded",(function(){let e=document.querySelector(".lang-mob");e&&e.addEventListener("click",(function(){let e=document.querySelector(".new-navbar_menu-wrapper");e&&e.scrollBy({top:-3e3})}))}));
import{initializeApp as e}from"https://www.gstatic.com/firebasejs/10.8.1/firebase-app.js";import{getDatabase as o,ref as n,onValue as a}from"https://www.gstatic.com/firebasejs/10.8.1/firebase-database.js";function i(e,o,n,a){let i="";if(n){let e=new Date;e.setTime(e.getTime()+24*n*60*60*1e3),i="; expires="+e.toUTCString()}document.cookie=a?e+"="+(o||"")+i+`;domain=${a};path=/`:e+"="+(o||"")+i+";path=/"}function t(e){let o=document.cookie.split(";");for(let n=0;n<o.length;n++){let a=o[n].trim();if(a.startsWith(e+"="))return a.substring(e.length+1)}return null}function r(e,o){const n={};return e.split(";").forEach((e=>{const[o,a]=e.split("=").map((e=>e.trim()));n[o]=decodeURIComponent(a)})),n[o]}function d(e){i("webflow-user-language",e,30)}function s(e){document.cookie=e+"=; Max-Age=-99999999;"}window.emailRegex=/^[^\s@]+@[^\s@]+\.[^\s@]+$/,window.toggleErrorField=(e,o)=>{o?e.classList.remove("error-field"):e.classList.add("error-field")},window.disableButton=function(e){e.disabled=!0,e.style.opacity="0.5"},window.isEuRegion=function(e){const o=e.replace(/\/$/,"");return/^\/(?:[^\/]+\/)?eu(?:\/|$)/.test(o)},window.enableButton=function(e){e.disabled=!1,e.style.opacity="1"},window.getOauthUrl=function(){var e=window.location.href,o=new URL(e).hostname,n=["deriv.com","deriv.be","deriv.me"].find((e=>o.endsWith(e)));return n?`https://oauth.${n}`:"https://oauth.deriv.com"},window.getClientCountry=function(){var e;const o=r(document.cookie,"clients_country"),n=r(document.cookie,"client_information");return n&&(null==(e=JSON.parse(n))?void 0:e.residence)||o},window.deriv_com_url="deriv.com",window.deriv_me_url="deriv.me",window.deriv_be_url="deriv.be",window.webflow_domain="webflow.deriv.com",window.staging_url="staging.deriv.com",window.staging_deriv_be_url="staging.deriv.be",window.domain_list_app_id={[window.deriv_com_url]:"16929",[window.deriv_me_url]:"1411",[window.deriv_be_url]:"30767",[window.webflow_domain]:"53503",[window.staging_url]:"16303"},window.getDomain=()=>{var e=window.location.href;return new URL(e).hostname},window.getAppId=()=>{const e=window.getDomain(),o=new URLSearchParams(window.location.search||"").get("app_id");if(o)return o;const n=localStorage.getItem("config.app_id");if(n)return n;const a={[window.webflow_domain]:window.domain_list_app_id[window.webflow_domain],[window.deriv_be_url]:window.domain_list_app_id[window.deriv_be_url],[window.deriv_me_url]:window.domain_list_app_id[window.deriv_me_url],[window.staging_url]:window.domain_list_app_id[window.staging_url]};return a[e]?a[e]:window.domain_list_app_id[window.deriv_com_url]};const c=()=>{const e=localStorage.getItem("config.server_url"),o=r(document.cookie,"webflow-user-language");let n=o?o.toLowerCase():"en";"zh-cn"!==n&&"zh-tw"!==n||(n=n.replace("-","_"));const a=(e=>{let o="";return e&&Object.keys(e).forEach((n=>{o+=`&${n}=${e[n]}`})),o})((()=>{const e=r(document.cookie,"utm_data");if(e){const o=JSON.parse(e),n={};return["utm_source","utm_ad_id","utm_adgroup_id","utm_adrollclk_id","utm_campaign","utm_campaign_id","utm_content","utm_fbcl_id","utm_gl_client_id","utm_medium","utm_msclk_id","utm_term"].forEach((e=>{o.hasOwnProperty(e)&&(n[e]=o[e])})),n}return null})()),i=r(document.cookie,"affiliate_tracking"),t=i?`&affiliate_token=${i}`:"",d=void["mt5","bot","derivx"].filter((e=>window.location.pathname.includes(e)&&e))||"";return e&&/qa/.test(e)?`https://${e}/oauth2/authorize?app_id=${window.getAppId()}&l=${n}&brand=deriv${t}${a}&platform=${d}`:`${window.getOauthUrl()}/oauth2/authorize?app_id=${(()=>{const e=window.getDomain();return e===window.deriv_me_url?window.domain_list_app_id[window.deriv_me_url]:e===window.deriv_be_url?window.domain_list_app_id[window.deriv_be_url]:e===window.webflow_domain?window.domain_list_app_id[window.webflow_domain]:window.domain_list_app_id[window.deriv_com_url]})()}&l=${n}&brand=deriv${t}${a}&platform=${d}`};window.establishWebSocketConnection=()=>new Promise(((e,o)=>{const n=r(document.cookie,"webflow-user-language"),a=n?n.toLowerCase():"en",i=localStorage.getItem("config.server_url")||"green.derivws.com";window.websocket=new WebSocket(`wss://${i}/websockets/v3?app_id=${window.getAppId()}&l=${a||"en"}&brand=deriv`),window.websocket.addEventListener("open",(o=>{window.websocket.addEventListener("close",(()=>{window.websocket.close()})),window.websocket.addEventListener("message",(e=>{JSON.parse(e.data)})),e(window.websocket)})),window.websocket.addEventListener("error",(e=>{var n;null==(n=null==window?void 0:window.websocket)||n.close(),o(e)}))})),window.socketMessageSend=async(e,o)=>{var n;try{return(null==window?void 0:window.websocket)&&(null==(n=null==window?void 0:window.websocket)?void 0:n.readyState)===(null==WebSocket?void 0:WebSocket.OPEN)?(window.websocket.send(e),new Promise(((e,n)=>{window.websocket.addEventListener("message",(a=>{const i=JSON.parse(a.data);o===i.msg_type&&(i.error?n(i.error):e(i))}))}))):establishWebSocketConnection().then((()=>(websocket.send(e),new Promise(((e,n)=>{websocket.addEventListener("message",(a=>{const i=JSON.parse(a.data);o===i.msg_type&&(i.error?n(i.error):e(i))}))}))))).catch((e=>Promise.reject(e)))}catch(a){return Promise.reject(a)}};const u=[{id:"appgallery",selectors:[".footer_banner-badge.gallery.w-inline-block",".app-download_link-wrapper.appgallery.w-inline-block"],countries:["af","ax","al","dz","as","ad","ao","aq","am","au","at","az","bh","bd","by","be","bj","bm","bt","bo","ba","bw","bv","br","io","bn","bg","bf","bi","kh","cm","ca","cv","bq","cf","td","cn","cx","cc","km","cg","cd","ck","ci","hr","cu","cw","cy","cz","dk","dj","dm","eg","gq","er","ee","et","fk","fo","fj","fi","fr","pf","tf","ga","gm","ge","de","gh","gi","gr","gl","gu","gg","gn","gw","hm","va","hu","is","in","id","ir","iq","ie","im","il","it","jp","je","jo","kz","ke","ki","kr","kp","kw","kg","la","lv","lb","ls","lr","ly","li","lt","lu","mo","mk","mg","mw","my","mv","ml","mt","mh","mr","mu","yt","mx","fm","md","mc","mn","me","ma","mz","mm","na","nr","np","nl","nc","nz","ne","ng","nu","nf","mp","no","om","pk","pw","ps","pg","pe","ph","pn","pl","pt","qa","re","ro","ru","rw","sh","kn","pm","bl","mf","ws","sm","st","sa","sn","rs","sc","sl","sg","sx","sk","si","sb","so","gs","ss","es","lk","sd","sj","sz","se","ch","sy","tw","tj","tz","th","tl","tg","tk","to","tn","tr","tm","tc","tv","ug","ua","ae","gb","um","us","uz","vu","vi","wf","eh","ye","zm","zw"]},{id:"googlePlay",selectors:[".footer_banner-badge.google.w-inline-block",".app-download_link-wrapper.google.w-inline-block"],countries:["af","ax","as","ad","ai","aq","au","bb","bt","bv","io","bn","bi","ca","bq","cf","cx","cc","cg","cd","ck","cw","gq","et","fk","fo","gf","pf","tf","gl","gp","gu","gg","gy","hm","va","hk","ir","im","jp","je","ki","kp","ls","ly","mg","mw","mh","mq","mr","yt","fm","mn","me","ms","nr","nc","nz","ng","nu","nf","mp","pw","ps","pn","pr","re","sh","kn","lc","pm","vc","bl","mf","st","sg","sx","gs","ss","sj","sz","sy","tl","tk","tc","tv","um","us","vg","vi","wf","eh"]},{id:"appstore",selectors:[".footer_banner-badge.store.w-inline-block",".app-download_link-wrapper.appstore.w-inline-block"],countries:["ax","al","as","ad","aq","aw","au","at","bd","be","bv","io","bg","bi","ca","bq","cf","cx","cc","km","ck","hr","cu","cw","cy","cz","dk","dj","gq","er","ee","et","fk","fo","fi","fr","gf","pf","tf","de","gi","gr","gl","gp","gu","gg","gn","ht","hm","va","hk","hu","is","ir","iq","ie","im","il","it","je","ki","kp","lv","ls","ly","li","lt","lu","mt","mh","mq","yt","fm","me","nl","nc","nz","ng","nu","nf","mp","no","ps","pn","pl","pt","pr","re","ro","sh","pm","bl","mf","ws","sm","sg","sx","sk","si","so","gs","ss","es","sd","sj","se","ch","sy","tw","tl","tg","tk","tr","tv","gb","um","us","vu","vi","wf","eh"]},{id:"p2p",selectors:["#p2payment.accordion_toggle-block","#p2component.section_dp2p","#card_block_p2p.help_category"],countries:["as","au","at","be","bg","ca","hr","cy","cz","dk","ee","fi","fr","gr","gu","gg","hk","hu","ir","ie","im","il","it","je","ng","mm","sy","kp","lv","lt","lu","my","mt","nl","nz","mp","py","pl","pt","pr","ro","rw","sk","si","es","se","ae","gb","us","um","vu","vi","ky","cu","de"]},{id:"w-dyn-item-p2p",selectors:["div.w-dyn-item"],countries:["as","au","at","be","bg","ca","hr","cy","cz","dk","ee","fi","fr","gr","gu","gg","hk","hu","ir","ie","im","il","it","je","ng","mm","sy","kp","lv","lt","lu","my","mt","nl","nz","mp","py","pl","pt","pr","ro","rw","sk","si","es","se","ae","gb","us","um","vu","vi","ky","cu","de"]},{id:"hideRow",selectors:["#footer_social-icons_row","#footer_text_row",".footer_risk-warning.w-richtext"],countries:["br","uy","lk","ch","za","ec"]},{id:"hideDiel",selectors:["#footer_text_diel","#footer_social-icons_diel"],countries:["br","uy","lk","ch","za","ec"]}],l=[{id:"showElems",selectors:[".banner_disclaimer"],countries:["br","uy","lk","ch","za","ec"]}],p=()=>{const e=window.getClientCountry();u.forEach((o=>{const n="hideDiel"===o.id?!o.countries.includes(e):o.countries.includes(e);if(e&&n)return o.selectors.forEach((e=>{document.querySelectorAll(e).forEach((e=>{if(e)if("w-dyn-item-p2p"===o.id){e.querySelector("#card_block_p2p.help_category")&&(e.style.display="none")}else e.style.display="none"}))}));if(!n){const e=document.querySelector(".footer_social-icons.diel");e&&(e.style.display="flex")}})),l.forEach((o=>{e&&o.countries.includes(e)?o.selectors.forEach((e=>{document.querySelectorAll(e).forEach((o=>{if(o){const n=document.querySelector(".page-wrapper");".banner_disclaimer"===e?(n.classList.add("disclaimer-show"),o.classList.remove("hide-element")):o.style.display="block"}}))})):o.selectors.forEach((e=>{document.querySelectorAll(e).forEach((o=>{o&&(".banner_disclaimer"===e?o.classList.add("hide-element"):o.style.display="none")}))}))}))};document.addEventListener("DOMContentLoaded",(function(){const e=JSON.stringify({website_status:1});!async function(){try{const e=await fetch("https://www.cloudflare.com/cdn-cgi/trace"),o=await e.text(),n=Object.fromEntries(o.split("\n").map((e=>e.split("=",2)))).loc.toLowerCase();n!==r(document.cookie,"clients_country")&&(s("clients_country"),i("clients_country",n,30)),p()}catch(e){p()}}();r(document.cookie,"clients_country")||window.socketMessageSend(e,"website_status").then((e=>{r(document.cookie,"clients_country")!==e.website_status.clients_country&&(s("clients_country"),i("clients_country",e.website_status.clients_country,30)),p()})).catch((e=>{}))}));const w=["ar","bn","de","en","es","fr","it","ko","pl","pt","ru","si","sw","th","tr","vi","zh_cn","zh_tw","zh-cn","zh-tw"];function h(){let e,o=!1,n=!1;const a=()=>{n=!0,o=!!r(document.cookie,"client_information"),o&&clearInterval(e),document.dispatchEvent(new Event("authStatusChange"))};return a(),e=setInterval(a,800),{getLoggedInStatus:()=>o,getAuthCheckedStatus:()=>n,onAuthStatusChange:e=>document.addEventListener("authStatusChange",e)}}document.addEventListener("DOMContentLoaded",(function(){(()=>{var e;const o=window.location.pathname,n=window.location.hash,a=window.location.search,i=o.split("/"),t=i[1],s=w.includes(t||""),c=i.includes("careers")||i.includes("locations")||i.includes("derivtech")||i.includes("derivlife")||i.includes("trading-terms-glossary")||i.includes("eu-careers")||i.includes("our-locations")||i.includes("academy");s&&d(t);const u=(null==(e=r(document.cookie,"webflow-user-language"))?void 0:e.toLowerCase())||"en",l=s?t:u;if((s||"en"!==u)&&t!==u)if(s&&t!==u)d(l);else if(!c){const e=(s?i.map((e=>e===t?l:e)).join("/"):l+i.join("/"))+a+n;window.location.href="/"+e}})()})),document.addEventListener("DOMContentLoaded",(()=>{const e=h();e.onAuthStatusChange((()=>{if(e.getAuthCheckedStatus()&&e.getLoggedInStatus()){document.querySelectorAll(".logged-in-btn").forEach((e=>{e.classList.remove("hide-element")}));document.querySelectorAll(".logged-out-btn").forEach((e=>{e.classList.add("hide-element")}))}else if(e.getAuthCheckedStatus()&&!e.getLoggedInStatus()){document.querySelectorAll(".logged-out-btn").forEach((e=>{e.classList.remove("hide-element")}));document.querySelectorAll(".logged-in-btn").forEach((e=>{e.classList.add("hide-element")}))}}))})),document.addEventListener("DOMContentLoaded",(()=>{const e=window.location.href;if(["help-centre"].some((o=>e.includes(o)))){const n=new URL(e).searchParams;n.has("platform")&&"derivgo"===n.get("platform")&&(o=".derivgo-query-element",document.querySelectorAll(o).forEach((e=>{e.style.display="none"})))}var o}));const y=document.querySelector(".banner_disclaimer"),m=document.querySelector(".main-wrapper");if(y){new ResizeObserver((e=>{for(let o of e)if(o.target===y){let e=o.target.getBoundingClientRect();m&&(m.style.paddingTop=e.height+"px")}})).observe(y)}window.addEventListener("pageshow",(function(e){if(e.persisted){const e=document.querySelector(".w-nav-overlay");e&&(e.style.display="none",document.querySelector("body").click())}}));const N=o(e({databaseURL:window.location.hostname.includes("staging")?"https://app-config-staging.firebaseio.com":"https://app-config-prod.firebaseio.com"}));let Y=!1,g=!1;!function(){var e;const o=document.getElementById("live_chat-wrapper");try{const e=n(N,"remote_config/deriv-com/chat");a(e,(e=>{const n=e.val();Y=n.live_chat,g=n.whatsapp_chat;const a=document.querySelector(".whatsapp_chat"),i=document.querySelector(".livechatbtn");a&&(a.style.visibility=g?"visible":"hidden"),i&&(i.style.visibility=Y?"visible":"hidden");const t=window.location.pathname.includes("/help-centre");if(window.location.pathname.includes("/deriv-prime")){o.style.flexDirection="column-reverse";document.querySelectorAll(".whatsapp_chat").forEach((e=>{e.style.visibility="hidden"}))}if(t){const e=document.querySelectorAll(".livechatbtn");Y?e.forEach((e=>{e.style.visibility="visible"})):e.forEach((e=>{e.style.visibility="hidden"}));const o=document.querySelectorAll(".whatsapp_chat");g?o.forEach((e=>{e.style.visibility="visible"})):o.forEach((e=>{e.style.visibility="hidden"}))}window.addEventListener("scroll",(function(){var e,n;(Y||g)&&(null==(e=null==o?void 0:o.classList)||e.remove("hide-element")),Y||g||null==(n=null==o?void 0:o.classList)||n.add("hide-element")}))}),(e=>{var n;null==(n=null==o?void 0:o.classList)||n.remove("hide-element")}))}catch(i){null==(e=null==o?void 0:o.classList)||e.remove("hide-element")}}();new MutationObserver((function(e){for(const o of e)if(o.addedNodes.length)for(const e of o.addedNodes)e.nodeType===Node.ELEMENT_NODE&&"chat-widget-minimized"===e.id&&(e.style.opacity="0")})).observe(document.body,{childList:!0,subtree:!0});const f=window.getClientCountry();const v=[{country:"af",apple:"Yes",android:"N/A",huawei:"N/A"},{country:"ax",apple:"N/A",android:"N/A",huawei:"N/A"},{country:"al",apple:"No",android:"Yes",huawei:"No"},{country:"dz",apple:"Yes",android:"Yes",huawei:"No"},{country:"as",apple:"N/A",android:"No",huawei:"N/A"},{country:"ad",apple:"N/A",android:"N/A",huawei:"No"},{country:"ao",apple:"Yes",android:"Yes",huawei:"No"},{country:"ai",apple:"Yes",android:"N/A",huawei:"Yes"},{country:"aq",apple:"N/A",android:"N/A",huawei:"N/A"},{country:"ag",apple:"Yes",android:"Yes",huawei:"Yes"},{country:"ar",apple:"Yes",android:"Yes",huawei:"Yes"},{country:"am",apple:"Yes",android:"Yes",huawei:"No"},{country:"aw",apple:"N/A",android:"Yes",huawei:"Yes"},{country:"au",apple:"No",android:"No",huawei:"No"},{country:"at",apple:"No",android:"Yes",huawei:"No"},{country:"az",apple:"Yes",android:"Yes",huawei:"No"},{country:"bs",apple:"Yes",android:"Yes",huawei:"Yes"},{country:"bh",apple:"Yes",android:"Yes",huawei:"No"},{country:"bd",apple:"N/A",android:"Yes",huawei:"No"},{country:"bb",apple:"Yes",android:"N/A",huawei:"Yes"},{country:"by",apple:"Yes",android:"Yes",huawei:"No"},{country:"be",apple:"No",android:"Yes",huawei:"No"},{country:"bz",apple:"Yes",android:"Yes",huawei:"Yes"},{country:"bj",apple:"Yes",android:"Yes",huawei:"No"},{country:"bm",apple:"Yes",android:"Yes",huawei:"N/A"},{country:"bt",apple:"Yes",android:"N/A",huawei:"N/A"},{country:"bo",apple:"Yes",android:"Yes",huawei:"No"},{country:"ba",apple:"Yes",android:"Yes",huawei:"No"},{country:"bw",apple:"Yes",android:"Yes",huawei:"No"},{country:"bv",apple:"N/A",android:"N/A",huawei:"N/A"},{country:"br",apple:"Yes",android:"Yes",huawei:"No"},{country:"io",apple:"N/A",android:"N/A",huawei:"N/A"},{country:"bn",apple:"Yes",android:"N/A",huawei:"No"},{country:"bg",apple:"No",android:"Yes",huawei:"No"},{country:"bf",apple:"Yes",android:"Yes",huawei:"No"},{country:"bi",apple:"N/A",android:"N/A",huawei:"N/A"},{country:"kh",apple:"Yes",android:"Yes",huawei:"No"},{country:"cm",apple:"Yes",android:"Yes",huawei:"No"},{country:"ca",apple:"No",android:"No",huawei:"No"},{country:"cv",apple:"Yes",android:"Yes",huawei:"No"},{country:"bq",apple:"N/A",android:"N/A",huawei:"N/A"},{country:"ky",apple:"Yes",android:"Yes",huawei:"Yes"},{country:"cf",apple:"N/A",android:"N/A",huawei:"No"},{country:"td",apple:"Yes",android:"Yes",huawei:"No"},{country:"cl",apple:"Yes",android:"Yes",huawei:"Yes"},{country:"cn",apple:"Yes",android:"Yes",huawei:"No"},{country:"cx",apple:"N/A",android:"N/A",huawei:"N/A"},{country:"cc",apple:"N/A",android:"N/A",huawei:"N/A"},{country:"co",apple:"Yes",android:"Yes",huawei:"Yes"},{country:"km",apple:"N/A",android:"Yes",huawei:"N/A"},{country:"cg",apple:"Yes",android:"N/A",huawei:"No"},{country:"cd",apple:"Yes",android:"N/A",huawei:"No"},{country:"ck",apple:"N/A",android:"N/A",huawei:"No"},{country:"cr",apple:"Yes",android:"Yes",huawei:"Yes"},{country:"ci",apple:"Yes",android:"Yes",huawei:"No"},{country:"hr",apple:"No",android:"Yes",huawei:"No"},{country:"cu",apple:"N/A",android:"Yes",huawei:"N/A"},{country:"cw",apple:"N/A",android:"N/A",huawei:"N/A"},{country:"cy",apple:"No",android:"Yes",huawei:"No"},{country:"cz",apple:"No",android:"Yes",huawei:"No"},{country:"dk",apple:"No",android:"Yes",huawei:"No"},{country:"dj",apple:"N/A",android:"Yes",huawei:"No"},{country:"dm",apple:"Yes",android:"Yes",huawei:"N/A"},{country:"do",apple:"Yes",android:"Yes",huawei:"Yes"},{country:"ec",apple:"Yes",android:"Yes",huawei:"Yes"},{country:"eg",apple:"Yes",android:"Yes",huawei:"No"},{country:"sv",apple:"Yes",android:"Yes",huawei:"Yes"},{country:"gq",apple:"N/A",android:"N/A",huawei:"No"},{country:"er",apple:"N/A",android:"Yes",huawei:"No"},{country:"ee",apple:"No",android:"Yes",huawei:"No"},{country:"et",apple:"N/A",android:"N/A",huawei:"No"},{country:"fk",apple:"N/A",android:"N/A",huawei:"N/A"},{country:"fo",apple:"N/A",android:"N/A",huawei:"No"},{country:"fj",apple:"Yes",android:"Yes",huawei:"No"},{country:"fi",apple:"No",android:"Yes",huawei:"No"},{country:"fr",apple:"No",android:"Yes",huawei:"No"},{country:"gf",apple:"N/A",android:"N/A",huawei:"Yes"},{country:"pf",apple:"N/A",android:"N/A",huawei:"No"},{country:"tf",apple:"N/A",android:"N/A",huawei:"N/A"},{country:"ga",apple:"Yes",android:"Yes",huawei:"No"},{country:"gm",apple:"Yes",android:"Yes",huawei:"No"},{country:"ge",apple:"Yes",android:"Yes",huawei:"No"},{country:"de",apple:"No",android:"Yes",huawei:"No"},{country:"gh",apple:"Yes",android:"Yes",huawei:"No"},{country:"gi",apple:"N/A",android:"Yes",huawei:"No"},{country:"gr",apple:"No",android:"Yes",huawei:"No"},{country:"gl",apple:"N/A",android:"N/A",huawei:"No"},{country:"gd",apple:"Yes",android:"Yes",huawei:"Yes"},{country:"gp",apple:"N/A",android:"N/A",huawei:"Yes"},{country:"gu",apple:"N/A",android:"No",huawei:"N/A"},{country:"gt",apple:"Yes",android:"Yes",huawei:"Yes"},{country:"gg",apple:"N/A",android:"N/A",huawei:"N/A"},{country:"gn",apple:"N/A",android:"Yes",huawei:"No"},{country:"gw",apple:"Yes",android:"Yes",huawei:"No"},{country:"gy",apple:"Yes",android:"N/A",huawei:"Yes"},{country:"ht",apple:"N/A",android:"Yes",huawei:"Yes"},{country:"hm",apple:"N/A",android:"N/A",huawei:"N/A"},{country:"va",apple:"N/A",android:"N/A",huawei:"N/A"},{country:"hn",apple:"Yes",android:"Yes",huawei:"Yes"},{country:"hk",apple:"No",android:"No",huawei:"Yes"},{country:"hu",apple:"No",android:"Yes",huawei:"No"},{country:"is",apple:"No",android:"Yes",huawei:"No"},{country:"in",apple:"Yes",android:"Yes",huawei:"No"},{country:"id",apple:"Yes",android:"Yes",huawei:"No"},{country:"ir",apple:"N/A",android:"N/A",huawei:"N/A"},{country:"iq",apple:"No",android:"Yes",huawei:"N/A"},{country:"ie",apple:"No",android:"Yes",huawei:"No"},{country:"im",apple:"N/A",android:"N/A",huawei:"N/A"},{country:"il",apple:"No",android:"Yes",huawei:"No"},{country:"it",apple:"No",android:"Yes",huawei:"No"},{country:"jm",apple:"Yes",android:"Yes",huawei:"Yes"},{country:"jp",apple:"Yes",android:"No",huawei:"No"},{country:"je",apple:"N/A",android:"N/A",huawei:"N/A"},{country:"jo",apple:"Yes",android:"Yes",huawei:"No"},{country:"kz",apple:"Yes",android:"Yes",huawei:"No"},{country:"ke",apple:"Yes",android:"Yes",huawei:"No"},{country:"ki",apple:"N/A",android:"N/A",huawei:"N/A"},{country:"kr",apple:"Yes",android:"Yes",huawei:"N/A"},{country:"kp",apple:"N/A",android:"N/A",huawei:"N/A"},{country:"kw",apple:"Yes",android:"Yes",huawei:"No"},{country:"kg",apple:"Yes",android:"Yes",huawei:"No"},{country:"la",apple:"Yes",android:"Yes",huawei:"No"},{country:"lv",apple:"No",android:"Yes",huawei:"No"},{country:"lb",apple:"Yes",android:"Yes",huawei:"No"},{country:"ls",apple:"N/A",android:"N/A",huawei:"No"},{country:"lr",apple:"Yes",android:"Yes",huawei:"No"},{country:"ly",apple:"N/A",android:"N/A",huawei:"N/A"},{country:"li",apple:"N/A",android:"Yes",huawei:"No"},{country:"lt",apple:"No",android:"Yes",huawei:"No"},{country:"lu",apple:"No",android:"Yes",huawei:"No"},{country:"mo",apple:"Yes",android:"Yes",huawei:"No"},{country:"mk",apple:"Yes",android:"Yes",huawei:"No"},{country:"mg",apple:"Yes",android:"N/A",huawei:"No"},{country:"mw",apple:"Yes",android:"N/A",huawei:"No"},{country:"my",apple:"Yes",android:"Yes",huawei:"No"},{country:"mv",apple:"Yes",android:"Yes",huawei:"N/A"},{country:"ml",apple:"Yes",android:"Yes",huawei:"No"},{country:"mt",apple:"No",android:"Yes",huawei:"No"},{country:"mh",apple:"N/A",android:"N/A",huawei:"N/A"},{country:"mq",apple:"N/A",android:"N/A",huawei:"Yes"},{country:"mr",apple:"Yes",android:"N/A",huawei:"No"},{country:"mu",apple:"Yes",android:"Yes",huawei:"No"},{country:"yt",apple:"N/A",android:"N/A",huawei:"No"},{country:"mx",apple:"Yes",android:"Yes",huawei:"No"},{country:"fm",apple:"N/A",android:"N/A",huawei:"N/A"},{country:"md",apple:"Yes",android:"Yes",huawei:"No"},{country:"mc",apple:"Yes",android:"Yes",huawei:"No"},{country:"mn",apple:"Yes",android:"N/A",huawei:"No"},{country:"me",apple:"No",android:"N/A",huawei:"No"},{country:"ms",apple:"Yes",android:"N/A",huawei:"Yes"},{country:"ma",apple:"Yes",android:"Yes",huawei:"No"},{country:"mz",apple:"Yes",android:"Yes",huawei:"No"},{country:"mm",apple:"Yes",android:"Yes",huawei:"No"},{country:"na",apple:"Yes",android:"Yes",huawei:"No"},{country:"nr",apple:"Yes",android:"N/A",huawei:"No"},{country:"np",apple:"Yes",android:"Yes",huawei:"No"},{country:"nl",apple:"No",android:"Yes",huawei:"No"},{country:"nc",apple:"N/A",android:"N/A",huawei:"N/A"},{country:"nz",apple:"No",android:"No",huawei:"No"},{country:"ni",apple:"Yes",android:"Yes",huawei:"Yes"},{country:"ne",apple:"Yes",android:"Yes",huawei:"No"},{country:"ng",apple:"No",android:"No",huawei:"No"},{country:"nu",apple:"N/A",android:"N/A",huawei:"N/A"},{country:"nf",apple:"N/A",android:"N/A",huawei:"N/A"},{country:"mp",apple:"N/A",android:"No",huawei:"N/A"},{country:"no",apple:"No",android:"Yes",huawei:"No"},{country:"om",apple:"Yes",android:"Yes",huawei:"No"},{country:"pk",apple:"Yes",android:"Yes",huawei:"No"},{country:"pw",apple:"Yes",android:"No",huawei:"N/A"},{country:"ps",apple:"N/A",android:"N/A",huawei:"No"},{country:"pa",apple:"Yes",android:"Yes",huawei:"Yes"},{country:"pg",apple:"Yes",android:"Yes",huawei:"No"},{country:"py",apple:"Yes",android:"Yes",huawei:"Yes"},{country:"pe",apple:"Yes",android:"Yes",huawei:"No"},{country:"ph",apple:"Yes",android:"Yes",huawei:"No"},{country:"pn",apple:"N/A",android:"N/A",huawei:"N/A"},{country:"pl",apple:"No",android:"Yes",huawei:"No"},{country:"pt",apple:"No",android:"Yes",huawei:"No"},{country:"pr",apple:"N/A",android:"No",huawei:"Yes"},{country:"qa",apple:"Yes",android:"Yes",huawei:"No"},{country:"re",apple:"N/A",android:"N/A",huawei:"No"},{country:"ro",apple:"No",android:"Yes",huawei:"No"},{country:"ru",apple:"Yes",android:"Yes",huawei:"No"},{country:"rw",apple:"Yes",android:"Yes",huawei:"No"},{country:"sh",apple:"N/A",android:"N/A",huawei:"N/A"},{country:"kn",apple:"Yes",android:"N/A",huawei:"N/A"},{country:"lc",apple:"Yes",android:"N/A",huawei:"Yes"},{country:"pm",apple:"N/A",android:"N/A",huawei:"N/A"},{country:"vc",apple:"Yes",android:"N/A",huawei:"Yes"},{country:"bl",apple:"N/A",android:"N/A",huawei:"N/A"},{country:"mf",apple:"N/A",android:"N/A",huawei:"N/A"},{country:"ws",apple:"N/A",android:"Yes",huawei:"No"},{country:"sm",apple:"N/A",android:"Yes",huawei:"No"},{country:"st",apple:"Yes",android:"N/A",huawei:"No"},{country:"sa",apple:"Yes",android:"Yes",huawei:"No"},{country:"sn",apple:"Yes",android:"Yes",huawei:"No"},{country:"rs",apple:"Yes",android:"Yes",huawei:"No"},{country:"sc",apple:"Yes",android:"Yes",huawei:"N/A"},{country:"sl",apple:"Yes",android:"Yes",huawei:"No"},{country:"sg",apple:"No",android:"No",huawei:"No"},{country:"sx",apple:"N/A",android:"N/A",huawei:"N/A"},{country:"sk",apple:"No",android:"Yes",huawei:"No"},{country:"si",apple:"No",android:"Yes",huawei:"No"},{country:"sb",apple:"Yes",android:"Yes",huawei:"No"},{country:"so",apple:"N/A",android:"Yes",huawei:"N/A"},{country:"za",apple:"Yes",android:"Yes",huawei:"Yes"},{country:"gs",apple:"N/A",android:"N/A",huawei:"N/A"},{country:"ss",apple:"N/A",android:"N/A",huawei:"N/A"},{country:"es",apple:"No",android:"Yes",huawei:"No"},{country:"lk",apple:"Yes",android:"Yes",huawei:"No"},{country:"sd",apple:"N/A",android:"Yes",huawei:"N/A"},{country:"sr",apple:"Yes",android:"Yes",huawei:"Yes"},{country:"sj",apple:"N/A",android:"N/A",huawei:"N/A"},{country:"sz",apple:"Yes",android:"N/A",huawei:"No"},{country:"se",apple:"No",android:"Yes",huawei:"No"},{country:"ch",apple:"No",android:"Yes",huawei:"No"},{country:"sy",apple:"N/A",android:"N/A",huawei:"N/A"},{country:"tw",apple:"No",android:"Yes",huawei:"No"},{country:"tj",apple:"Yes",android:"Yes",huawei:"No"},{country:"tz",apple:"Yes",android:"Yes",huawei:"No"},{country:"th",apple:"Yes",android:"Yes",huawei:"No"},{country:"tl",apple:"N/A",android:"N/A",huawei:"N/A"},{country:"tg",apple:"N/A",android:"Yes",huawei:"No"},{country:"tk",apple:"N/A",android:"N/A",huawei:"N/A"},{country:"to",apple:"Yes",android:"Yes",huawei:"No"},{country:"tt",apple:"Yes",android:"Yes",huawei:"Yes"},{country:"tn",apple:"Yes",android:"Yes",huawei:"No"},{country:"tr",apple:"No",android:"Yes",huawei:"No"},{country:"tm",apple:"Yes",android:"Yes",huawei:"No"},{country:"tc",apple:"Yes",android:"N/A",huawei:"N/A"},{country:"tv",apple:"N/A",android:"N/A",huawei:"N/A"},{country:"ug",apple:"Yes",android:"Yes",huawei:"No"},{country:"ua",apple:"Yes",android:"Yes",huawei:"No"},{country:"ae",apple:"Yes",android:"Yes",huawei:"No"},{country:"gb",apple:"No",android:"Yes",huawei:"No"},{country:"um",apple:"N/A",android:"No",huawei:"N/A"},{country:"us",apple:"No",android:"No",huawei:"N/A"},{country:"uy",apple:"Yes",android:"Yes",huawei:"Yes"},{country:"uz",apple:"Yes",android:"Yes",huawei:"No"},{country:"vu",apple:"No",android:"Yes",huawei:"N/A"},{country:"ve",apple:"Yes",android:"Yes",huawei:"Yes"},{country:"vn",apple:"Yes",android:"Yes",huawei:"Yes"},{country:"vg",apple:"Yes",android:"N/A",huawei:"Yes"},{country:"vi",apple:"N/A",android:"No",huawei:"N/A"},{country:"wf",apple:"N/A",android:"N/A",huawei:"N/A"},{country:"eh",apple:"N/A",android:"N/A",huawei:"N/A"},{country:"ye",apple:"Yes",android:"Yes",huawei:"No"},{country:"zm",apple:"Yes",android:"Yes",huawei:"No"},{country:"zw",apple:"Yes",android:"Yes",huawei:"No"}].find((e=>e.country===f)),A=v?function(e){const{apple:o,android:n,huawei:a}=e;return"Yes"===o&&"Yes"===n&&"Yes"===a?"Android, iOS & Huawei":"Yes"===o&&"Yes"===n&&"Yes"!==a?"Android, and iOS":"Yes"===o&&"Yes"===a&&"Yes"!==n?"iOS, and Huawei":"Yes"===n&&"Yes"!==o&&"Yes"!==a?"Android":"Yes"===o&&"Yes"===a&&"Yes"!==n?"iOS, and Huawei":"Yes"===o&&"Yes"!==n&&"Yes"!==a?"iOS":"Yes"!==o&&"Yes"!==n&&"Yes"===a?"Huawei":""}(v):"",b=document.getElementById("app-download-heading");b&&(b.innerText=A);const _=document.querySelector(".redirection_background-wrapper"),k=document.getElementById("cancel-redirect"),L=document.getElementById("proceed-redirect"),E="tracking_status",S="tracking_status_decline",q=window.dataLayer,z=r(document.cookie,"client_information"),x=!!z,j=document.getElementById("accept-cookie"),C=document.getElementById("dont-accept-cookie"),O=document.querySelector(".cookies_background-wrapper");if(document.addEventListener("DOMContentLoaded",(()=>{q&&window.dataLayer.push({loggedIn:x,language:r(document.cookie,"webflow-user-language")||"en",...x&&{visitorId:null==z?void 0:z.loginid,currency:null==z?void 0:z.currency,email:null==z?void 0:z.email}}),!window.location.pathname.includes("eu")||t(E)||t(S)||(O.classList.remove("hide-element"),document.body.classList.add("show-cookie")),null==j||j.addEventListener("click",(()=>{i(E,!0),O.classList.add("hide-element"),document.body.classList.remove("show-cookie")})),null==C||C.addEventListener("click",(()=>{i(S,!0),i(E,!1),O.classList.add("hide-element"),document.body.classList.remove("show-cookie")}))})),window.isEuRegion(window.location.pathname)&&_&&k&&L){const e=["deriv.me","deriv.be","deriv.com","app.deriv.me","app.deriv.be","app.deriv.com","docs.deriv.com","community.deriv.com","deriv.statuspage.io","signup.deriv.com","login.deriv.com","api.deriv.com"];let o="",n="_self";document.querySelectorAll("a").forEach((function(a){const i=new URL(a.href,window.location.href),t=new URL(window.location.href);e.includes(i.host)||i.host===t.host||a.addEventListener("click",(function(e){e.preventDefault(),o=i.href,n=a.target||"_self",_.classList.remove("hide-element"),document.body.style.overflow="hidden"}))})),k.addEventListener("click",(function(){_.classList.add("hide-element"),document.body.style.overflow="auto",o=""})),L.addEventListener("click",(function(){o&&(window.open(o,n),o="",_.classList.add("hide-element"),document.body.style.overflow="auto")}))}document.addEventListener("DOMContentLoaded",(function(){document.querySelector(".banner_disclaimer")?document.body.classList.add("disclaimer-visible"):document.body.classList.remove("disclaimer-visible")}));const I=document.querySelectorAll(".navbar_accordion-item");function D(){const e=document.querySelector(".navbar_accordion-trigger.open");e&&e.scrollIntoView({behavior:"smooth",block:"start"})}I.forEach((e=>{e.querySelector(".navbar_accordion-trigger").classList.remove("open");const o=e.querySelector(".navbar_accordion-content");o.classList.remove("open"),o.style.maxHeight="0px",o.style.overflow="hidden",o.style.transition="max-height 0.3s ease-in, opacity 0.3s ease-in",o.style.opacity="0"})),I.forEach((e=>{const o=e.querySelector(".navbar_accordion-trigger");o.addEventListener("click",(function(){const e=o.classList.contains("open");if(I.forEach((e=>{e.querySelector(".navbar_accordion-trigger").classList.remove("open");const o=e.querySelector(".navbar_accordion-content");o.classList.remove("open"),o.style.maxHeight="0px",o.style.opacity="0"})),!e){o.classList.add("open");const e=o.nextElementSibling;e.classList.add("open"),e.style.maxHeight=e.scrollHeight+"px",e.style.opacity="1"}}))}));document.querySelectorAll(".navbar_accordion-trigger").forEach((e=>{e.addEventListener("click",(function(){setTimeout(D,300)}))}));const $=new MutationObserver((e=>{e.forEach((e=>{if("class"===e.attributeName){const o=e.target;o.classList.contains("open")&&o.scrollIntoView({behavior:"smooth",block:"start"})}}))}));document.querySelectorAll(".navbar_accordion-item").forEach((e=>{$.observe(e,{attributes:!0})}));const M=new URL(window.location.href),R=new URLSearchParams(M.search),B=R.get("t");if(R.has("referrer")&&null!=B){r(document.cookie,"referrer_token")!==B&&(s("referrer_token"),i("referrer_token",B,365,".deriv.com"))}const U=document.getElementById("navbar-home_login");U&&U.addEventListener("click",(function(e){e.preventDefault(),window.location.href=c()}));const P=document.getElementById("res-navbar-home_login");P&&P.addEventListener("click",(function(e){e.preventDefault(),window.location.href=c()}));const W=document.getElementById("white-navbar_login");W&&W.addEventListener("click",(function(e){e.preventDefault(),window.location.href=c()}));const H=document.getElementById("res-white-navbar_login");H&&H.addEventListener("click",(function(e){e.preventDefault(),window.location.href=c()})),document.addEventListener("DOMContentLoaded",(function(){let e=document.querySelectorAll(".navbar_accordion-trigger"),o=document.querySelector(".navbar_menu-button");if(document.querySelector(".new-navbar_component")){const e=document.querySelector(".new-navbar_component");e.addEventListener("mouseenter",(()=>{window.innerWidth>991&&document.body.classList.add("disable-scroll")})),e.addEventListener("mouseleave",(()=>{window.innerWidth>991&&document.body.classList.remove("disable-scroll")}))}o&&o.addEventListener("click",(function(){let e=window.innerHeight,o=document.querySelector(".new-navbar_main-wrapper");if(o){let n=e-o.offsetHeight,a=document.querySelector(".new-navbar_menu");a&&(a.style.height=`${n}px`)}})),e.forEach((o=>{o.addEventListener("click",(function(){e.forEach((e=>e.classList.remove("current"))),this.classList.add("current")}))}));let n=document.querySelector(".navbar_accordion-link.w--current");if(n){let e=n.closest(".navbar_accordion-item");if(e){let o=e.querySelector(".navbar_accordion-trigger");o&&o.classList.add("current")}}})),document.addEventListener("DOMContentLoaded",(()=>{var e=window.location.pathname;["/careers","/locations","/derivtech","/derivlife","/eu-careers","/our-locations","/product-explorer","/academy","/trading-terms-glossary"].some((o=>e.includes(o)))&&document.head.querySelectorAll("link").forEach((function(e){e.hasAttribute("hreflang")&&"x-default"!==e.getAttribute("hreflang")&&e.remove()}))})),document.addEventListener("DOMContentLoaded",(function(){let e=document.querySelector(".locale > .new-navbar_dropdown-link.w--current");if(e){let o=e.getAttribute("hreflang"),n=document.querySelectorAll(".current-locale-iso-code");if(o&&n.length)for(let e of n)e.innerText=o}}));let T=document.querySelectorAll(".w-locales-items");if(T.length>0){T.forEach((function(e){e.querySelectorAll("a").forEach((function(e){e.addEventListener("click",(function(o){o.preventDefault(),i("webflow-user-language",e.getAttribute("hreflang"),30),window.location.href=e.href}))}))}));const e=e=>{let o=document.querySelector('a[hreflang="'+e+'"]');o&&window.location.pathname!==o.getAttribute("href")&&o.click()};window.setLanguageCookie=e=>{i("webflow-user-language",e,30)};let o=t("webflow-user-language"),n=["/careers","/locations","/derivtech","/derivlife","/eu-careers","/our-locations","/product-explorer","/academy","/trading-terms-glossary"],a=window.location.pathname,r=!1;n.some((e=>a.includes(e))),o&&r&&e(o)}document.addEventListener("DOMContentLoaded",(function(){const e=r(document.cookie,"webflow-user-language"),o=["as","au","at","be","bg","ca","hr","cy","cz","dk","ee","fi","fr","gr","gu","gg","hk","hu","ir","ie","im","il","it","je","ng","mm","sy","kp","lv","lt","lu","my","mt","nl","nz","mp","py","pl","pt","pr","ro","rw","sk","si","es","se","ae","gb","us","um","vu","vi","ky","cu","de"];if(window.location.pathname.endsWith("p2p")&&!window.location.pathname.startsWith("/blog")){const n=window.getClientCountry();n&&o.includes(n)&&("en"===e?window.location.replace("/404"):window.location.replace(`/${e}/404`))}})),document.addEventListener("DOMContentLoaded",(function(){let e=document.querySelector(".lang-mob");e&&e.addEventListener("click",(function(){let e=document.querySelector(".new-navbar_menu-wrapper");e&&e.scrollBy({top:-3e3})}))}));
{
"name": "@deriv-com/custom-scripts",
"version": "1.21.5",
"version": "1.21.6",
"private": false,

@@ -5,0 +5,0 @@ "publishConfig": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc