1try{!function(){var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="f776d8d6-d5a9-42cb-8438-dfd4b90db3ce",e._sentryDebugIdIdentifier="sentry-dbid-f776d8d6-d5a9-42cb-8438-dfd4b90db3ce")}()}catch(e){}"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7320],{53:(e,t,r)=>{function i(e,t){if(!e)return"/";if(!t)return e;let r=e.split("/").filter(Boolean);if(!r.length)return"/";let i=Object.entries(t),a=i.flatMap(e=>{let[t,r]=e;return Array.isArray(r)&&r.length>0?[[t,r]]:[]}),n=i.flatMap(e=>{let[t,r]=e;return"string"==typeof r&&r.length>0?[[t,r]]:[]}),l=[];for(let e=0;e<r.length;e++){let t=r[e];if(!t)continue;let i=a.find(t=>{let[,i]=t;if(e+i.length>r.length)return!1;for(let t=0;t<i.length;t++){let a=r[e+t],n=i[t];if(!a||!n||a!==n)return!1}return!0});if(i){let[t,r]=i;l.push("[...".concat(t,"]")),e+=r.length-1;continue}let s=n.find(e=>{let[,r]=e;return r===t});if(s){l.push("[".concat(s[0],"]"));continue}l.push(t)}return"/".concat(l.join("/"))}r.d(t,{D:()=>i,f:()=>n});let a={price:["slug"],spot:["slug"],futures:["slug"],event:["eventName"],invite:["hash"],"price-prediction":["slug"],"how-to-buy":["slug"]};function n(e,t){if(!e)return"";try{let r=new URL(e);if(r.origin!==t)return r.origin;return function(e){let t=e.split("/").filter(Boolean);if(!t.length)return"/";let[r,...i]=t;if(!r||!i.length)return r?"/[locale]":"/";if("events"===i[0]&&"activities"===i[1]&&i[2])return"/[locale]/events/activities/[activityId]";let n=["[locale]"];for(let e=0;e<i.length;e++){let t=i[e];if(!t)continue;n.push(t);let r=a[t];if(r)for(let t of r){if(!i[e+1])break;n.push("[".concat(t,"]")),e+=1}}return"/".concat(n.join("/"))}(r.pathname)}catch(e){return""}}},6378:(e,t,r)=>{r.d(t,{VY:()=>S,FK:()=>k,MS:()=>N,Bd:()=>j,ZV:()=>T});var i=r(98273),a=r(79237),n=r(38113),l=r(65375);let s=n.forwardRef((e,t)=>(0,a.jsx)(l.B,{ref:t,viewBox:"0 0 1024 1024",color:"#000000",...e,children:(0,a.jsx)("path",{d:"M512 63.744a150.698667 150.698667 0 0 1 150.698667 150.656A150.442667 150.442667 0 0 1 599.424 337.066667l91.818667 170.24 110.037333-84.181334a93.44 93.44 0 1 1 96.853333 60.16l-70.570666 441.088a42.709333 42.709333 0 0 1-42.112 35.968H238.506667c-20.906667 0-38.826667-15.274667-42.112-35.968L125.824 483.2a93.482667 93.482667 0 1 1 102.954667-93.013333c0 11.605333-2.218667 22.698667-6.101334 32.938666l109.994667 84.181334L424.533333 337.066667a150.698667 150.698667 0 0 1 87.466667-273.28zM274.858667 874.965333h169.386666l-131.882666-275.754666-93.013334-71.168 55.466667 346.88z m436.608-275.754666l-131.84 275.754666h169.386666l55.466667-346.922666-93.013333 71.168zM512 365.098667c-1.92 0-3.797333-0.085333-5.632-0.128l-112 207.786666 117.589333 245.888 117.589334-245.845333-112-207.829333-5.546667 0.128z",fill:"currentColor"})}));s.displayName="AVipProgramIcon";let o=n.forwardRef((e,t)=>(0,a.jsx)(l.B,{ref:t,viewBox:"0 0 1024 1024",...e,children:(0,a.jsx)("path",{d:"M512 42.666667a687.061333 687.061333 0 0 0 461.781333 412.544l7.552 2.005333a491.136 491.136 0 0 0-428.586666 366.165333L512 981.333333l-40.746667-157.952A491.136 491.136 0 0 0 42.666667 457.216l7.552-2.005333A687.061333 687.061333 0 0 0 512 42.666667z m0 197.034666a781.226667 781.226667 0 0 1-213.248 206.08A585.386667 585.386667 0 0 1 512 670.976a585.429333 585.429333 0 0 1 213.205333-225.194667A781.269333 781.269333 0 0 1 512 239.701333z"})}));o.displayName="AVippointsIcon";let c=n.forwardRef((e,t)=>(0,a.jsx)(l.B,{ref:t,viewBox:"0 0 1024 1024",color:"#000000",...e,children:(0,a.jsx)("path",{d:"M471.68 74.794667a51.285333 51.285333 0 0 1 80.64 0l4.053333 5.973333 82.090667 142.378667 204.885333-59.690667 6.101334-1.365333a51.2 51.2 0 0 1 59.392 50.56v196.778666a51.2 51.2 0 0 1-51.2 51.2h-21.888l57.6 102.4a42.666667 42.666667 0 0 1-6.784 50.773334l-344.106667 351.061333a42.666667 42.666667 0 0 1-60.928 0l-344.106667-351.104a42.666667 42.666667 0 0 1-6.784-50.773333l57.6-102.4H166.4a51.2 51.2 0 0 1-51.2-51.157334V212.650667c0-32 28.8-55.594667 59.392-50.56l6.144 1.365333L385.536 223.146667l82.133333-142.336 4.010667-5.973334z m-185.514667 385.792l-65.408 116.309333L512 874.026667l291.2-297.
1130667-65.365333-116.309333H286.165333z m428.586667 140.629333l-172.245333 175.701333a42.752 42.752 0 0 1-60.970667 0L309.333333 601.216l60.928-59.733333L512 686.08l141.781333-144.64 60.970667 59.733333zM425.941333 323.84L200.533333 258.133333v117.162667h623.018667V258.133333L630.186667 314.453333l-32.170667 9.386667L512 174.592 425.941333 323.84z",fill:"currentColor"})}));c.displayName="AVipEventcenterIcon";var d=r(59749),u=r(66960),p=r(37566),h=r(29265);function m(e){return{title:e("Spot"),href:"/spot",trackingTabName:"spot"}}function f(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{includeCopyTrading:r=!0}=t,a=[{title:e("USDT Perpetual"),mobileVisible:!0,icon:i.VC,href:"/futures",trackingTabName:"crypto_perpetuals"},{title:e("USDT Perpetual Demo"),icon:i.oS,href:"/futures/demo-trading",trackingTabName:"usdt_perpetual_demo"}];return r&&a.push({title:e("Copy Trading"),icon:i.F2,href:"/copy-trading",trackingTabName:"copy_trading"}),{title:e("Derivatives"),href:"/futures",trackingTabName:"crypto_perpetuals",mobileVisible:!0,children:a}}function g(e){return{title:e("Earn"),icon:i.HW,href:"/earn",trackingTabName:"earn"}}function b(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{useLegacyProgram:r=!1}=t,a=r?{mobileVisible:!0}:{};return{title:"VIP",...a,children:[{title:e("VIP Program"),...a,icon:i.Ow,href:"/vip",openInNewTab:!0,trackingTabName:"vip_program"},{title:e("VIP Points Store"),...a,icon:i.Md,href:"/redeem",openInNewTab:!0,trackingTabName:"vip_points_store"},{title:e("VIP Event Center"),...a,icon:i.zH,href:"/event/vip-center",openInNewTab:!0,trackingTabName:"vip_event_center"}]}}function x(e){return{title:e("More"),children:[{title:e("Welcome Bonus"),icon:i.mX,href:"/rewards",trackingTabName:"welcome_bonus"},{title:e("Affiliate Program"),icon:i.c1,href:"/affiliate",trackingTabName:"affiliate_program"}]}}let v=e=>[{name:"system",title:e("System Notification"),icon:i.R7,type:"system",href:"/messages/system",trackingTabName:"system_notification"},{name:"user",title:e("My Message"),icon:i.wW,type:"user",href:"/messages/user",trackingTabName:"my_message"},{name:"trader",title:e("Copy Trade Message"),icon:i.z1,type:"trader",href:"/messages/trader",trackingTabName:"copy_trade_message"}],w=e=>({title:e("Orders"),children:[[{title:e("Spot Orders"),icon:i.UH,href:"/spot/orders/current",trackingTabName:"spot_orders"},{title:e("USDT Perpetual Orders"),icon:i.BS,href:"/futures/orders/trading/current",trackingTabName:"usdt_perpetual_orders"},{title:e("Earn History"),icon:i.do,href:"/earn/flexiable/deposit",trackingTabName:"earn_history"},{title:e("Fiat History"),icon:i.Nl,href:"/buy-sell-crypto/orders/buy",trackingTabName:"fiat_history"}]]}),y=e=>[{title:e("Markets"),href:"/markets",trackingTabName:"markets"},{title:e("Futures"),children:[{title:e("USDT Perpetual"),href:"/futures?symbol=BTC-USDT",trackingTabName:"crypto_perpetuals"}]},{title:e("Square"),children:[{title:e("Blog"),href:"https://blog.tapbit.com/",trackingTabName:"blog"},{title:e("News"),href:"/news",trackingTabName:"news"},{title:e("Announcements"),href:"https://tapbitcex.zendesk.com/hc/{zendeskCode}",isZendesk:!0,trackingTabName:"announcements"},{title:e("Learn"),href:"/learn",trackingTabName:"learn"}]},{title:"VIP",children:[{title:e("VIP Program"),icon:s,href:"/vip",openInNewTab:!0,trackingTabName:"vip_program"},{title:e("VIP Points Store"),icon:o,href:"/redeem",openInNewTab:!0,trackingTabName:"vip_points_store"},{title:e("VIP Event Center"),icon:c,href:"/event/vip-center",openInNewTab:!0,trackingTabName:"vip_event_center"}]},{title:e("Download App"),href:"/download",trackingTabName:"download_app"},{title:e("Chat Support"),isCustomerService:!0,trackingTabName:"chat_support"}];function _(e){let{$t:t,locale:r}=(0,u.B)();return(0,n.useMemo)(()=>e(t),[e,t,r])}function k(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default",{$t:t,locale:r}=(0,u.B)();return(0,n.useMemo)(()=>{if("contract"===e)return[f(t,{includeCopyTrading:!1}),{title:t("Copy Trading"),href:"/copy-trading"},m(t),{title:t("Info_r_1"),children:[{title:t("Guide"),icon:i.$q,href:"//tapbitcex.zendesk.com/hc/{zendeskCode}
1/sections/12198535312399-USDT-Perpetual-Guide",isZendesk:!0},{title:t("Position Tiers"),icon:i.hX,href:"/futures/data/position-tiers"}]},g(t),b(t,{useLegacyProgram:!0}),x(t)];return[{title:t("Markets"),href:"/markets",trackingTabName:"markets"},m(t),f(t),g(t),b(t),x(t)]},[t,r,e])}function N(){return _(v)}function T(){let{$t:e,locale:t}=(0,u.B)(),r=(0,d.e)(),a=(0,p.td)(),[l,s]=(0,h.I2)(),[o,c]=(0,h.zm)();return(0,n.useMemo)(()=>{var t,n;return t={title:e("Assets"),children:[[{title:e("Overview"),mobileVisible:!0,icon:i.g4,href:"/wallet/overview",trackingTabName:"asset_overview"},{title:e("Spot"),icon:i.C$,href:"/wallet/spot",trackingTabName:"asset_spot"},{title:e("Futures"),mobileVisible:!0,icon:i.VC,href:"/wallet/futures",trackingTabName:"asset_futures"},{title:e("Earn"),icon:i.HW,href:"/wallet/financial",trackingTabName:"asset_earn"}],[{title:e("Address Book"),icon:i.Sv,href:"/wallet/address",trackingTabName:"address_book"},{title:e("History"),icon:i.$U,href:"/records/deposit",trackingTabName:"history"}],[{title:e("Deposit"),href:"/personal/deposit",linkType:"legacy",trackingTabName:"deposit"},{title:e("Withdraw"),href:"/personal/withdrawal",linkType:"legacy",trackingTabName:"withdraw"},{title:e("Transfer"),href:"/personal/management/transfer",linkType:"legacy",trackingTabName:"transfer"}]]},n={depositHref:r(),withdrawalHref:a()},{...t,children:t.children.map(e=>e.map(e=>"/personal/deposit"===e.href?{...e,href:n.depositHref,linkType:void 0}:"/personal/withdrawal"===e.href?{...e,href:n.withdrawalHref,linkType:void 0}:e))}},[e,t,r,a,l,s,o,c])}function j(){return _(w)}function S(){return _(y)}},7248:(e,t,r)=>{r.d(t,{default:()=>H});var i=r(79237),a=r(19125),n=r(66960),l=r(29265),s=r(90477),o=r(13647),c=r(66248),d=r(62300),u=r(51025),p=r(12407),h=r(38113),m=r(86538);function f(e){let{isTransparent:t,setShouldBeTransparent:r}=e,[i,a]=(0,h.useState)(!1),n=(0,h.useCallback)((0,m.A)(()=>{var e;a((null==(e=window)?void 0:e.scrollY)>0)},100),[]);return(0,h.useEffect)(()=>(window.addEventListener("scroll",n),n(),()=>{window.removeEventListener("scroll",n)}),[n]),(0,h.useEffect)(()=>{n()},[]),(0,h.useEffect)(()=>{r(!i&&t)},[i,t]),null}var g=r(4637),b=r(78712);function x(e){let{title:t}=e;return(0,i.jsxs)("div",{className:"bg-bg1 text-t1 relative w-full",style:{paddingTop:"".concat(20,"px")},children:[(0,i.jsx)(g.F,{onClick:()=>{(0,b.bE)().then(()=>{(0,b.px)("navigator.closeWebApp")}).catch(()=>{})},className:"absolute bottom-[11px] left-[15px] h-[22px] w-[22px]"}),(0,i.jsx)("div",{className:"min-h-[44px] text-center text-base leading-[44px] font-medium",children:t})]})}var v=r(27737),w=r(74116),y=r(77382),_=r(13847);function k(e){let{title:t,href:r="",children:l=[],target:s="_self",linkType:o,isintl:c,isZendesk:d,nofollow:u,openInNewTab:p,trackingTabName:h}=e,{locale:m}=(0,n.B)(),f=(0,a.q)(),g=(0,w.W)();return l&&l.length?(0,i.jsx)(()=>{let e={href:r,linkType:o,isintl:c,isZendesk:d,nofollow:u,openInNewTab:p,target:s},a=(0,y.iC)(e);return(0,i.jsxs)(v.DropdownMenu,{trigger:"hover",children:[(0,i.jsx)(v.DropdownMenuTrigger,{className:"px-3",triggerClassName:"flex-nowrap flex flex-row items-center gap-s2",asChild:!0,showIcon:!0,children:(0,i.jsx)("div",{className:"group flex h-full cursor-pointer items-center",children:r?(0,i.jsx)("a",{className:"text-t1 cursor-pointer text-sm font-medium",href:(0,y.J_)(e,f,m)||"javascript:void(0)",onClick:()=>{h&&g(h)},...a,children:t}):(0,i.jsx)("div",{className:"text-t1 text-sm font-medium",children:t})})}),(0,i.jsx)(v.DropdownMenuContent,{className:"z-250 !py-0",side:"bottom",align:"start",children:(0,i.jsx)(T,{children:l})})]})},{}):(0,i.jsx)(()=>{let e={href:r,linkType:o,isintl:c,isZendesk:d,nofollow:u,openInNewTab:p,target:s},a=(0,y.iC)(e);return(0,i.jsx)("a",{className:"flex h-full cursor-pointer items-center px-3",href:(0,y.J_)(e,f,m)||"javascript:void(0)",onClick:()=>{h&&g(h)},...a,children:(0,i.jsx)("div",{className:"text-t1 text-sm font-medium",children:t})})},{})}function N(e){let{item:t,target:r,hasChildren:a=!1,onMouseEnter:n}=e;return(0,i.jsx)(_.q,{title:t.title,href:t.href||"",icon:t.icon,target:r,linkType:t.linkType,isintl:t.isintl,isZendesk:t.isZendesk,nofollow:t.nofollow,openInNewTab:t.openInNewTab,trackingTabName:t.trackingTabName,hasChildren:a,onMouseEnter:n})}let T=e=>{let{children:t=[]}=e,[r,a]=(0,h.useState)([]);return(0,i.jsxs)("div",{className:"flex",onMouseLeave:()=>{a([])},children:[(0,i.jsx)("div",{className:"max-w-[400px] min-w-[200px]",children:t.map((e,t)=>{var r;let n=e.target||"_self";return(0,i.jsx)(N,{item:e,target:n,hasChildren:!!(null==(r=e.children)?void 0:r.length),onMouseEnter:()=>{a(e.children||[])}},t)})}),r.length?(0,i.jsx)("div",{className:"border-l1 max-w-[400px] min-w-[200px] border-l",children:r.map((e,t)=>(0,i.jsx)(N,{item:e,target:e.target||"_self"},t))}):null]})};var j=r(6378),S=r(93924),C=r(41793),I=r(27966),D=r(11038);async function R(e){try{let t=await (0,C.g_)({locale:e,params:{type:"config"}}
1);t&&200===t.code&&(0,I.fY)((null==t?void 0:t.data)||{})}catch(e){console.error("initActivityConfig error",e),(0,I.fY)({})}}let W=async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en";try{let r=await (0,C.ez)({locale:t});if(r&&200===r.code){let t=r.data||{},i=e.map(e=>{var r;return{type:e.type,title:e.title,href:e.href,icon:e.icon,list:(null==(r=t["".concat(e.type,"MessageVo")])?void 0:r.list)||[]}});(0,D.MX)(i)}else(0,S.toast)({type:"error",title:(null==r?void 0:r.message)||"Failed to load messages"})}catch(e){console.error("Failed to load messages:",e)}};function P(){let{user:e}=(0,u.k)(),{locale:t}=(0,n.B)(),r=(0,j.MS)();return(0,h.useEffect)(()=>{!(null==e?void 0:e.userId)||(0,o.bf)()||W(r,t)},[null==e?void 0:e.userId,r,t]),(0,h.useEffect)(()=>{(0,o.bf)()||R(t)},[t]),null}let A=(0,p.default)(()=>Promise.all([r.e(9799),r.e(6851),r.e(7595),r.e(1073),r.e(9946),r.e(1225)]).then(r.bind(r,37726)),{loadableGenerated:{webpack:()=>[37726]},ssr:!1}),M=(0,p.default)(()=>Promise.all([r.e(7595),r.e(9946),r.e(0)]).then(r.bind(r,96293)),{loadableGenerated:{webpack:()=>[96293]},ssr:!1});function H(e){let{$t:t,locale:r}=(0,n.B)(),{p2pWhite:a}=(0,d.Ft)(),{isTransparent:l=!1,hideInApp:p=!1,className:m,bgClassName:g,fgClassName:b,variant:v="default"}=e,[w,y]=(0,h.useState)(l),_=(0,u.k)(e=>e.user),k=(0,u.k)(e=>e.userLoadFromStorage),N=(0,c.p)(e=>e.navTheme),[T,S]=(0,h.useState)(!1),[C,I]=(0,h.useState)(!1),D=(0,j.FK)(v),R=(0,j.ZV)(),W=(0,j.Bd)(),H=(0,h.useMemo)(()=>D.map(e=>{var t;if(!U(e))return null;let r=null==(t=e.children)?void 0:t.map(e=>U(e)?e.children?{...e,children:e.children.filter(e=>U(e))}:e:null).filter(Boolean);return{...e,children:r}}).filter(Boolean),[D,C,a]),E=(0,h.useMemo)(()=>F(R),[R,C,a]),z=(0,h.useMemo)(()=>F(W),[W,C,a]);function F(e){return{...e,children:(e.children||[]).map(e=>e.filter(e=>U(e)))}}function U(e){return null==e||!e.isP2P||!!C&&a}let q=(0,h.useMemo)(()=>k?(null==_?void 0:_.userId)?(0,i.jsx)(A,{navbarWallet:E,navbarOrders:z}):(0,i.jsx)(M,{}):null,[z,E,null==_?void 0:_.userId,k]);return((0,h.useEffect)(()=>{S((0,o.bf)()),I(!0)},[]),p&&T)?null:T?(0,i.jsx)(x,{title:t("Home")}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(f,{setShouldBeTransparent:y,isTransparent:l}),(0,i.jsxs)("header",{className:(0,s.Q)("sticky top-0 z-200 h-14",m),"data-theme":N,children:[(0,i.jsx)("div",{className:(0,s.Q)("absolute inset-0",w?"transparent-nav bg-transparent":"bg-bg1 fixed-nav",g,N?"tapbit-".concat(N,"-nav-bg"):"")}),(0,i.jsx)("div",{className:(0,s.Q)("absolute inset-0",b,N?"tapbit-".concat(N,"-nav-fg"):"")}),(0,i.jsxs)("div",{className:"px-s4 relative z-1 flex h-full items-center justify-between",children:[(0,i.jsx)(L,{leftMenus:H,text:t("TURNS 4"),locale:r,navTheme:N}),q]})]}),(0,i.jsx)(P,{})]})}function L(e){let{leftMenus:t}=e,r=(0,a.q)(),[n]=(0,l.hD)();return t?(0,i.jsxs)("div",{className:"flex h-full flex-wrap items-center overflow-hidden",children:[(0,i.jsx)("a",{className:"mr-3 flex cursor-pointer items-center",href:r("/"),children:(0,i.jsx)("span",{"aria-hidden":"true",className:(0,s.Q)("h-[24px] w-[85px]","bg-contain bg-center bg-no-repeat","bg-[url('https://cdn.tapbit.mobi/common/logo/light-new.png')]","dark:bg-[url('https://cdn.tapbit.mobi/common/logo/dark-new.png')]")})}),t.map((e,t)=>(0,i.jsx)("div",{className:"hidden h-full items-center leading-6 md:flex",children:(0,i.jsx)(k,{...e})},t)),n&&(0,i.jsx)("a",{className:"hidden h-10.5 cursor-pointer md:flex",href:r("/event/world-cup?User_from=header"),children:(0,i.jsx)("img",{className:"h-full w-auto",alt:"world cup",src:"".concat("https://cdn.tapbit.mobi","/next-web/event/world-cup/header-bg-light.png")})})]}):null}},7608:(e,t,r)=>{r.d(t,{default:()=>g});var i=r(79237),a=r(91405),n=r(34071),l=r(13647),s=r(60173);let o=["/denied","/im","/non-official","/recaptcha","/reset-google","/to-app","/download"],c=[];function d(e,t){return t.some(t=>t instanceof RegExp?t.test(e):e===t||e.startsWith("".concat(t,"/")))}var u=r(98705),p=r(12407),h=r(77222),m=r(38113);let f=(0,p.default)(()=>r.e(5462).then(r.bind(r,35462)),{loadableGenerated:{webpack:()=>[35462]},ssr:!1,loading:()=>(0,i.jsx)(b,{})});function g(e){let{disabled:t=!1}=e,r=(0,n.q)(),u=(0,a.no)(),p=(0,h.usePathname)(),g=(0,m.useMemo)(()=>(0,l.bf)(),[]),x=(0,m.useMemo)(()=>(function(e){let t=function(e){let t=(0,s.Eq)(e);return(t?e.slice("/".concat(t).length):e)||"/"}(e);return c.length>0?d(t,c):!d(t,o)})(p),[p]);return t||!x?null:r?!u||g?null:(0,i.jsx)(f,{}):(0,i.jsx)(b,{})}function b(){return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{className:"bg-bg7 hidden max-md:block ".concat(u.Sm)}),(0,i.jsx)("div",{className:"bg-bg7 fixed bottom-0 left-0 z-[200] hidden w-full max-md:block ".concat(u.Sm," shadow-[0px_-0.5px_0px_0px_var(--color-l1)]")})]})}},8918:(e,t,r)=>{r.d(t,{default:()=>l});var i=r(79237),a=r(81742),n=r(38113);function l(e){let{children:t,theme:r}
1=e,[l,s]=(0,n.useState)(r),o=(0,n.useCallback)(e=>{s(e),document.documentElement.dataset.theme=e},[]),c=(0,n.useMemo)(()=>({theme:l,setTheme:o}),[l,o]);return(0,i.jsx)(a.D.Provider,{value:c,children:t})}},11038:(e,t,r)=>{r.d(t,{MX:()=>a,oz:()=>i});let i=(0,r(41809).v)()(e=>({messageList:[],clearMessage:()=>e({messageList:[]}),updateMessageList:t=>{e({messageList:t})}})),a=e=>{i.getState().updateMessageList(e)}},13067:(e,t,r)=>{r.d(t,{Dd:()=>l,Dq:()=>i,bg:()=>o,jP:()=>a,yD:()=>s});let i={ko_KR:"https://t.me/TapBit_KR",tr_TR:"https://t.me/TapbitTurkish",ja_JP:"https://t.me/TapbitJapanese",ru_RU:"https://t.me/TapbitCIS",es_ES:"https://t.me/TapbitSpanish",pt_BR:"https://t.me/TapbitPortuguese",fr_FR:"https://t.me/TapbitFrench",de_DE:"https://t.me/TapbitDutch",it_IT:"https://t.me/TapbitItalian"},a="https://t.me/TapbitGlobalOfficial",n=e=>({thirdparty:[{url:"https://cdn.tapbit.mobi/static/trustpilot.png","dark-url":"https://cdn.tapbit.mobi/common/thirdparty/trustpolot-dark.png","light-url":"https://cdn.tapbit.mobi/common/thirdparty/trustpolot-light.png",href:"https://uk.trustpilot.com/review/www.tapbit.com",height:60,width:120},{url:"https://cdn.tapbit.mobi/static/facebook.png","dark-url":"https://cdn.tapbit.mobi/common/thirdparty/facebook-dark.png","light-url":"https://cdn.tapbit.mobi/common/thirdparty/facebook-light.png",href:"https://www.facebook.com/Tapbitglobal/reviews",height:60,width:120}],links:[{title:e("About Us"),data:[{title:e("About Tapbit"),href:"/about",linkType:"internal",trackingName:"about_tapbit"},{title:e("Tapbit Proof of Reserves"),href:"/proof-of-reserves",linkType:"internal",trackingName:"proof_of_reserves"},{title:e("Tapbit Blog"),href:"https://blog.tapbit.com/",openInNewTab:!0,trackingName:"blog"},{title:e("Announcements"),href:"https://tapbitcex.zendesk.com/hc/en-us",isintl:!0,openInNewTab:!0,trackingName:"announcements"},{title:e("News"),href:"/news",openInNewTab:!0,trackingName:"news"},{title:e("Join Us"),href:"mailto:[email protected]",nofollow:!0,trackingName:"join_us"},{title:e("Media Kit"),href:"https://drive.google.com/drive/folders/1kT9rLekhF-GY4HdLZ8KwjCnr53_hFYsC",nofollow:!0,openInNewTab:!0,trackingName:"media_kit"}]},{title:e("Products"),data:[{title:e("Exchange"),href:"/",trackingName:"exchange"},{title:e("Spot Trade"),href:"/spot",linkType:"internal",trackingName:"spot_trade"},{title:e("Derivatives"),href:"/futures",linkType:"internal",trackingName:"futures"},{title:e("Earn"),href:"/earn",linkType:"internal",trackingName:"earn"},{title:e("P2P Trading"),href:"/p2p-trading",linkType:"internal",isP2P:!0,trackingName:"p2p_trading"},{title:e("Third-party payment"),href:"/buy-sell-crypto",linkType:"internal",trackingName:"third_party_payment"},{title:e("New Functions"),href:"https://tapbitcex.zendesk.com/hc/en-us/sections/12192523931023-New-function-updates",isintl:!0,openInNewTab:!0,trackingName:"new_functions"},{title:e("Crypto Prices"),href:"/price",trackingName:"crypto_prices"},{title:e("Price Prediction"),href:"/price-prediction",trackingName:"price_prediction"},{title:e("How to Buy Crypto"),href:"/how-to-buy",trackingName:"how_to_buy"},{title:e("Learn"),href:"/learn",trackingName:"learn"}]},{title:e("Support"),data:[{title:e("Beginner's Guide"),href:"https://tapbitcex.zendesk.com/hc/en-us/categories/12190730039311",isintl:!0,openInNewTab:!0,trackingName:"beginners_guide"},{title:e("Support Center"),href:"https://tapbitcex.zendesk.com/hc/en-us",isintl:!0,openInNewTab:!0,trackingName:"support_center"},{title:e("Tapbit Verify"),href:"/verify",trackingName:"tapbit_verify"},{title:e("Device Information Check"),href:"/device",trackingName:"device_check"},{title:e("Spot API Document"),href:"/openapi-docs/spot_v2/",linkType:"legacy",nofollow:!0,openInNewTab:!0,trackingName:"spot_api_doc"},{title:e("Contract API Document"),href:"/openapi-docs/usdt_perpetual/",linkType:"legacy",nofollow:!0,openInNewTab:!0,trackingName:"contract_api_doc"}]},{title:e("FAQ"),stackWith:"previous",data:[{title:e("Instant answers in FAQ"),isFAQ:!0,href:"",trackingName:"faq"}]},{title:e("Legal"),data:[{title:e("Terms of Use"),href:"/terms-of-services",linkType:"internal",trackingName:"terms"},{title:e("Privacy Policy"),href:"/privacy",linkType:"internal",trackingName:"privacy"},{title:e("Regulations"),href:"https://tapbitcex.zendesk.com/hc/en-us/articles/12197851945359-Jurisdiction-regulations-licensing-and-practices",isintl:!0,openInNewTab:!0,trackingName:"regulations"},{title:e("Location Restrictions"),href:"https://tapbitcex.zendesk.com/hc/en-us/articles/12197830391439-Location-Restrictions",isintl:!0,openInNewTab:!0,trackingName:"location_restrictions"}]},{title:e("Business"),stackWith:"previous",data:[{title:e("Tapbit VIP"),href:"/vip",linkType:"internal",trackingName:"vip"},{title:e("Affiliate Program"),href:"/affiliate",linkType:"internal",trackingName:"affiliate"},{title:e("Listing Application"),href:"https://forms.gle/diKPFXLdGqwaiMcU8",nofollow:!0,openInNewTab:!0,trackingName:"listing_application"},{title:e("Business Cooperation"),href:"https://forms.gle/mqGT5PULCdoEodmDA",nofollow:!0,openInNewTab:!0,trackingName:"business_cooperation"},{title:e("Fees"),href:"https://tapbitcex.zendesk.com/hc/en-us/articles/12198533844879",isintl:!0,openInNewTab:!0,trackingName:"fees"}]},{title:e("Contact Info"),data:[{title:e("Customer Services"),subTitle:"[email protected]",href:"mailto:[email protected]",nofollow:!0,trackingName:"social_email"},{title:e("Contact Us"),subTitle:"[email protected]",href:"mailto:[email protected]",nofollow:!0,trackingName:"social_email"}]}],followLinks:[{title:"twitter",iconfont:"TwitterIcon",href:"https://x.com/Tapbitglobal",nofollow:!0,trackingName:"social_x"},{title:"telegram",iconfont:"TelegramIcon",href:a,nofollow:!0,trackingName:"social_telegram",locales:i,data:[{title:"English Telegram",href:"https://t.me/TapbitGlobalOfficial",nofollow:!0},{title:"Turkish Telegram",href:"https://t.me/TapbitTurkish",nofollow:!0},{title:"Japanese Telegram",href:"https://t.me/TapbitJapanese",nofollow:!0},{title:"Korean Telegram",href:"https://t.me/TapBit_KR",nofollow:!0},{title:"Russia Telegram",href:"https://t.me/TapbitCIS",nofollow:!0},{title:"Portuguese Telegram",href:"https://t.me/TapbitPortuguese",nofollow:!0},{title:"Spanish Telegram",href:"https://t.me/TapbitSpanish",nofollow:!0},{title:"Vietnam Telegram",href:"https://t.me/TapbitVietnam",nofollow:!0},{title:"Bangladeshi Telegram",href:"https://t.me/TapbitBangladeshi",nofollow:!0},{title:"Italian Telegram",href:"https://t.me/TapbitItalian",nofollow:!0},{title:"Indonesian Telegram",href:"https://t.me/TapbitIndonesian",nofollow:!0},{title:"French Telegram",href:"https://t.me/TapbitFrench",nofollow:!0},{title:"Dutch Telegram",href:"https://t.me/TapbitDutch",nofollow:!0},{title:"Arabic Telegram",href:"https://t.me/TapbitArabic",nofollow:!0},{title:"German Telegram",href:"https://t.me/TapbitGerman",nofollow:!0}]},{title:"kakao",iconfont:"KakaoIcon",href:"https://open.kakao.com/o/gIhOHv
1jd",nofollow:!0,showInLang:"ko_KR"},{title:"facebook",iconfont:"FacebookIcon",href:"https://www.facebook.com/Tapbitglobal",nofollow:!0,trackingName:"social_facebook"},{title:"instagram",iconfont:"InstagramIcon",href:"https://www.instagram.com/tapbitofficial",nofollow:!0,trackingName:"social_instagram"},{title:"youtube",iconfont:"YoutubeIcon",href:"https://www.youtube.com/c/Tapbitglobal",nofollow:!0,trackingName:"social_youtube"},{title:"linkedin",iconfont:"LinkedinIcon",href:"https://www.linkedin.com/company/tapbit",nofollow:!0,trackingName:"social_linkedin"}],limited:"\xa92025 Tapbit LLC. All rights reserved."}),l=e=>n(e).links,s=e=>n(e).followLinks,o=e=>n(e).thirdparty},13847:(e,t,r)=>{r.d(t,{q:()=>c,t:()=>d});var i=r(79237),a=r(76562),n=r(19125),l=r(66960),s=r(74116),o=r(77382);function c(e){let{title:t="",href:r="",icon:c,afterNode:d=null,downNode:u=null,handleClick:p,onClick:h,hasChildren:m=!1,target:f,linkType:g,isintl:b,isZendesk:x,nofollow:v,openInNewTab:w,trackingTabName:y,..._}=e,{locale:k}=(0,l.B)(),N=(0,n.q)(),T=(0,s.W)(),j={href:r,linkType:g,isintl:b,isZendesk:x,nofollow:v,openInNewTab:w,target:f},S=(0,o.J_)(j,N,k),C=(0,o.iC)(j);return(0,i.jsxs)("a",{className:"hover:bg-bg2 flex cursor-pointer px-4 py-3 ".concat(u?"items-start":"items-center"),href:S||void 0,...C,..._,onClick:e=>{y&&T(y),p&&(e.preventDefault(),e.stopPropagation(),p(e)),null==h||h(e)},children:[c?(0,i.jsx)(c,{className:"text-t1 h-5 w-5 shrink-0"}):null,(0,i.jsxs)("div",{className:"".concat(c?"ml-3":""," flex-1 leading-4"),children:[(0,i.jsxs)("div",{className:"flex",children:[(0,i.jsx)("div",{className:"text-t1 text-sm font-medium whitespace-nowrap",children:t}),d]}),u]}),m&&(0,i.jsx)(a.Y,{className:"text-t1 w-3"})]})}function d(e){let{children:t}=e;return(0,i.jsx)("div",{className:"border-l1 border-b last:border-b-0",children:t})}r(38113)},13973:(e,t,r)=>{r.d(t,{s:()=>a});var i=r(59786);function a(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0;(0,i.ED)(e,t,r)}},18897:(e,t,r)=>{r.d(t,{Je:()=>s,Qz:()=>o});var i=r(14298),a=r(69534),n=r(41809),l=r(91474);let s=(0,n.v)()((0,l.Zr)(e=>({lang:null,updateLang:t=>{let r=i.Z6[null!=t?t:"en"]||"en_US";a.Ay.setItem("langList",{MAIN:r}),e({lang:t})}}),{name:"lang-storage"})),o=()=>s.getState().lang},26485:(e,t,r)=>{r.d(t,{default:()=>l});var i=r(85071),a=r(77222),n=r(38113);function l(){let e=(0,a.usePathname)(),t=(0,a.useSearchParams)().toString();return(0,n.useEffect)(()=>{(0,i.DE)(t)},[e,t]),null}},27737:(e,t,r)=>{r.r(t),r.d(t,{DropdownMenu:()=>D,DropdownMenuCheckboxItem:()=>F,DropdownMenuContent:()=>E,DropdownMenuGroup:()=>W,DropdownMenuItem:()=>z,DropdownMenuLabel:()=>q,DropdownMenuMobile:()=>I,DropdownMenuPortal:()=>P,DropdownMenuRadioGroup:()=>M,DropdownMenuRadioItem:()=>U,DropdownMenuSeparator:()=>B,DropdownMenuShortcut:()=>V,DropdownMenuSub:()=>A,DropdownMenuSubContent:()=>L,DropdownMenuSubTrigger:()=>H,DropdownMenuTrigger:()=>R});var i=r(79237),a=r(91405),n=r(34071),l=r(90477),s=r(37292),o=r(38113),c=r(47776),d=r(76562),u=r(55872),p=r(61058),h=r(51924),m=r(84980),f=r(82586);let g=s.l9.displayName||"DropdownMenuTrigger",b=s.UC.displayName||"DropdownMenuContent",x=s.q7.displayName||"DropdownMenuItem",v=s.H_.displayName||"DropdownMenuCheckboxItem",w=s.hN.displayName||"DropdownMenuRadioItem",y=s.z6.displayName||"DropdownMenuRadioGroup",_=s.YJ.displayName||"DropdownMenuGroup",k=s.JU.displayName||"DropdownMenuLabel",N=s.wv.displayName||"DropdownMenuSeparator",T=e=>o.isValidElement(e),j=e=>{var t,r;return T(e)&&((null==(t=e.type)?void 0:t.displayName)||(null==(r=e.type)?void 0:r.name))||""},S=e=>"string"==typeof e||"number"==typeof e?String(e):Array.isArray(e)?e.map(S).join(""):T(e)?S(e.props.children):"",C=e=>{let{icon:t,content:r,subText:a,selected:n,disabled:s}=e,o=(0,l.Q)("text-b14 leading-[1.4]",s?"text-t5":n&&!t?"text-p1-dark":"text-t1");return t||a||"string"==typeof r||"number"==typeof r?(0,i.jsxs)(i.Fragment,{children:[t?(0,i.jsx)("span",{className:"flex size-5 shrink-0 items-center justify-center",children:t}):null,(0,i.jsxs)("span",{className:"flex min-w-0 flex-1 flex-col",children:[(0,i.jsx)("span",{className:(0,l.Q)("truncate",o),children:r}),a?(0,i.jsx)("span",{className:(0,l.Q)("text-c12 truncate",s?"text-t5":"text-t2"),children:a}):null]})]}):(0,i.jsx)("div",{className:(0,l.Q)("gap-s2 flex min-w-0 flex-1 items-center",s&&"text-t5"),children:r})},I=e=>{let{children:t,open:r,defaultOpen:a=!1,onOpenChange:n,onVisibleChange:s,title:d,modal:I=!0,...D}=e,[R,W]=o.useState(a),P=void 0!==r,A=P?r:R,{trigger:M,content:H}=o.useMemo(()=>(e=>{let t=null,r=null;
1return o.Children.forEach(e,e=>{if(!T(e))return;let i=j(e);if(i===g){t=e;return}i===b&&(r=e)}),{trigger:t,content:r}})(t),[t]),L=H?H.props.children:void 0,E=o.useMemo(()=>((e,t)=>{let r=[],i=(e,t)=>{o.Children.forEach(e,e=>{var a,n,l,s,o,c,d;if(!T(e))return;let u=j(e);if(u===x){let t=null!=(n=e.props.displayText)?n:S(e.props.children);r.push({type:"item",value:String(null!=(l=e.props.value)?l:t),text:t,content:e.props.children,disabled:!!e.props.disabled,icon:e.props.icon,subText:e.props.subText,selected:!!e.props.selected,onClick:e.props.onClick,onSelect:e.props.onSelect,closeOnSelect:e.props.closeOnSelect});return}if(u===v){let t=null!=(s=e.props.displayText)?s:S(e.props.children);r.push({type:"checkbox",value:String(null!=(o=e.props.value)?o:t),text:t,content:e.props.children,disabled:!!e.props.disabled,checked:!!e.props.checked,onCheckedChange:e.props.onCheckedChange,onClick:e.props.onClick,onSelect:e.props.onSelect});return}if(u===w){let i=null!=(c=e.props.displayText)?c:S(e.props.children),a=String(null!=(d=e.props.value)?d:i);r.push({type:"radio",value:a,text:i,content:e.props.children,disabled:!!e.props.disabled,checked:(null==t?void 0:t.value)===a,onValueChange:null==t?void 0:t.onValueChange,onClick:e.props.onClick,onSelect:e.props.onSelect});return}return u===k?void r.push({type:"label",text:S(e.props.children),content:e.props.children}):u===N?void r.push({type:"separator"}):u===y?void i(e.props.children,{value:e.props.value,onValueChange:e.props.onValueChange}):u===_?void i(e.props.children,t):void((null==(a=e.props)?void 0:a.children)&&i(e.props.children,t))})};return i(e,t),r})(L),[L]),z=o.useCallback(e=>{e&&(e=>!!e&&(!!e.props.disabled||e.props.asChild&&T(e.props.children)&&!!e.props.children.props.disabled))(M)||(P||W(e),null==n||n(e),null==s||s(e))},[P,n,s,M]),F=o.useCallback((e,t)=>{var r,i,a,n;if(e.disabled)return;let l=(()=>{let e=!1;return{event:{preventDefault:()=>{e=!0},get defaultPrevented(){return e}},isDefaultPrevented:()=>e}})();if(null==(r=e.onSelect)||r.call(e,l.event),null==(i=e.onClick)||i.call(e,t),"checkbox"===e.type){null==(a=e.onCheckedChange)||a.call(e,!e.checked);return}if("radio"===e.type){null==(n=e.onValueChange)||n.call(e,e.value);return}!1===e.closeOnSelect||l.isDefaultPrevented()||z(!1)},[z]);return(0,i.jsxs)(m.DrawerRoot,{open:A,onOpenChange:z,modal:I,disablePreventScroll:!0,repositionInputs:!1,...D,children:[M?(0,i.jsx)(m.DrawerTrigger,{asChild:!0,children:(e=>{if(!e)return null;let{className:t,triggerClassName:r,children:a,showIcon:n=!0,asChild:s=!1,...d}=e.props,u=(0,i.jsxs)("div",{className:(0,l.Q)("cursor-pointer",r),children:[a,n&&(0,i.jsx)(c.C,{className:"text-t1 size-3 shrink-0 opacity-50 transition-transform duration-200"})]});if(s){if(T(a)){let e=a.props;return o.cloneElement(a,{...d,className:(0,l.Q)("group",t,e.className)},(0,i.jsxs)("span",{className:(0,l.Q)("gap-s2 inline-flex items-center",r),children:[e.children,n?(0,i.jsx)(c.C,{className:"text-t1 size-3 shrink-0 opacity-50 transition-transform duration-200"}):null]}))}return u}return(0,i.jsx)("button",{type:"button",className:(0,l.Q)("gap-s2 group flex items-center",t),...d,children:u})})(M)}):null,(0,i.jsx)(m.DrawerContent,{overlayClassName:"z-1000",className:'px-s6 pb-s6 z-1001 min-h-0 border-none bg-transparent shadow-none max-md:[&[data-vaul-drawer-direction="bottom"]]:min-h-0',"aria-describedby":void 0,children:(0,i.jsxs)("div",{className:"shadow-3 border-l1 bg-m1 gap-s2 rounded-r4 mx-auto flex max-h-[670px] w-full max-w-[420px] flex-col overflow-hidden border","data-vaul-no-drag":"",children:[(0,i.jsx)(p.bL,{children:(0,i.jsx)(m.DrawerTitle,{showClose:!1,children:null!=d?d:"Dropdown menu"})}),(0,i.jsxs)("div",{className:"gap-s3 px-s6 flex h-10 w-full items-end justify-between",children:[(0,i.jsx)("div",{className:"text-t1 flex-1 truncate text-[16px] leading-5 font-semibold",children:d}),(0,i.jsx)("button",{type:"button","aria-label":"Close",className:"text-t3 flex size-5 shrink-0 items-center justify-center",onClick:()=>z(!1),children:(0,i.jsx)(h.U,{className:"size-5"})})]}),(0,i.jsx)(f.ScrollArea,{className:"min-h-0 flex-1",viewportClassName:"pb-[calc(env(safe-area-inset-bottom)+8px)]",showScrollBar:!0,children:(0,i.jsx)("div",{className:"pb-s2 flex min-h-0 flex-1 flex-col",children:E.map((e,t)=>{if("separator"===e.type)return(0,i.jsx)("div",{className:"bg-l1 mx-s2 my-1 h-px shrink-0"},"separator-".concat(t));if("label"===e.type)return(0,i.jsx)("div",{className:"text-t2 text-b14 mx-s2 px-s2 py-[10px] font-semibold",children:e.content},"label-".concat(t));let r="item"===e.type?!!e.selected:("checkbox"===e.type||"radio"===e.type)&&!!e.checked;return(0,i.jsx)("div",{className:"px-s2 flex h-14 w-full items-center",children:(0,i.jsxs)("button",{type:"button",disabled:e.disabled,className:(0,l.Q)("gap-s2 rounded-r2 px-s2 flex h-full w-full items-center py-[10px] text-left transition-colors","active:bg-bg2",e.disabled&&"text-t5 pointer-events-none"),onClick:t=>F(e,t),children:["checkbox"===e.type?(0,i.jsx)("span",{className:(0,l.Q)("border-t4 flex size-4 shrink-0 items-center justify-center rounded-[4px] border-2 transition-colors",r&&"bg-p1 border-p1"),children:r?(0,i.jsx)(u.S,{className:"text-tr1 size-3"}):null}):null,"radio"===e.type?(0,i.jsx)("span",{className:"border-t5 relative flex size-4 shrink-0 items-center justify-center rounded-full border",children:r?(0,i.jsx)("span",{className:"bg-p1 size-2.5 rounded-full"}):null}):null,(0,i.jsx)(C,{icon:"item"===e.type?e.icon:void 0,subText:"item"===e.type?e.subText:void 0,selected:r,disabled:e.disabled,content:e.content}),"item"===e.type&&r?(0,i.jsx)(u.S,{className:"text-p1-dark size-4 shrink-0"}):null]})},"".concat(e.type,"-").concat(e.value,"-").concat(t))})})})]})})]})},D=e=>
1{let{trigger:t="click",children:r,onVisibleChange:l,onOpenChange:c,responsive:d=!1,title:u,...p}=e,h=(0,n.q)(),m=(0,a.no)(),[f,g]=o.useState(!1),b=o.useRef(void 0),x=o.useCallback(()=>{b.current&&(clearTimeout(b.current),b.current=void 0),g(!0),null==c||c(!0),null==l||l(!0)},[c,l]),v=o.useCallback(()=>{b.current=setTimeout(()=>{g(!1),null==c||c(!1),null==l||l(!1)},150)},[c,l]);return(o.useEffect(()=>()=>{b.current&&clearTimeout(b.current)},[]),d&&h&&m)?(0,i.jsx)(I,{onVisibleChange:l,onOpenChange:c,title:u,...p,children:r}):"hover"===t?(0,i.jsx)("div",{onMouseEnter:x,onMouseLeave:v,children:(0,i.jsx)(s.bL,{modal:!1,open:f,onOpenChange:e=>{g(e),null==c||c(e)},...p,children:r})}):(0,i.jsx)(s.bL,{onOpenChange:c,...p,children:r})};D.displayName="DropdownMenu";let R=o.forwardRef((e,t)=>{let{className:r,triggerClassName:a,children:o,showIcon:d=!0,...u}=e,p=(0,n.q)(),h=(0,i.jsxs)("div",{className:(0,l.Q)("cursor-pointer",a),children:[o,d&&(0,i.jsx)(c.C,{className:"text-t1 size-3 shrink-0 opacity-50 transition-transform duration-200 group-data-[state=open]:rotate-180"})]});return p?(0,i.jsx)(s.l9,{ref:t,className:(0,l.Q)("gap-s2 group flex items-center",r),...u,children:h}):(0,i.jsx)("div",{className:(0,l.Q)("gap-s2 group flex items-center",r),children:h})});R.displayName=s.l9.displayName;let W=s.YJ,P=s.ZL,A=s.Pb,M=s.z6,H=o.forwardRef((e,t)=>{let{className:r,inset:a,children:n,...o}=e;return(0,i.jsxs)(s.ZP,{ref:t,className:(0,l.Q)("gap-s2 rounded-r2 px-s2 flex cursor-pointer items-center py-[10px] outline-none select-none","text-t1 text-b14","hover:bg-bg2 hover:rounded-r1","focus:bg-bg2","data-[state=open]:bg-bg2","data-[disabled]:text-t5 data-[disabled]:pointer-events-none",a&&"pl-8 rtl:pr-8 rtl:pl-0",r),...o,children:[n,(0,i.jsx)(d.Y,{className:"ml-auto size-4 rtl:mr-auto rtl:ml-0 rtl:rotate-180"})]})});H.displayName=s.ZP.displayName;let L=o.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,i.jsx)(s.G5,{ref:t,className:(0,l.Q)("rounded-r3 border-l1 bg-m3 py-s2 shadow-2 z-350 min-w-[200px] overflow-hidden border p-0","data-[state=open]:animate-in data-[state=closed]:animate-out","data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0","data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95","data-[side=bottom]:slide-in-from-top-2","data-[side=left]:slide-in-from-right-2","data-[side=right]:slide-in-from-left-2","data-[side=top]:slide-in-from-bottom-2",r),...a})});L.displayName=s.G5.displayName;let E=o.forwardRef((e,t)=>{let{className:r,sideOffset:a=4,...n}=e;return(0,i.jsx)(s.ZL,{children:(0,i.jsx)(s.UC,{ref:t,sideOffset:a,className:(0,l.Q)("rounded-r3 border-l1 bg-m3 py-s2 shadow-2 z-350 min-w-[200px] overflow-hidden border p-0","data-[state=open]:animate-in data-[state=closed]:animate-out","data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0","data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95","data-[side=bottom]:slide-in-from-top-2","data-[side=left]:slide-in-from-right-2","data-[side=right]:slide-in-from-left-2","data-[side=top]:slide-in-from-bottom-2",r),...n})})});E.displayName=s.UC.displayName;let z=o.forwardRef((e,t)=>{let{className:r,inset:a,icon:n,subText:o,selected:c=!1,displayText:d,closeOnSelect:p,children:h,...m}=e;return(0,i.jsxs)(s.q7,{ref:t,className:(0,l.Q)("gap-s2 rounded-r2 px-s2 relative flex cursor-pointer items-center py-[10px] transition-colors outline-none select-none","mx-s2","text-t1 text-b14","hover:bg-bg2 hover:rounded-r1","focus:bg-bg2 focus:rounded-r1","data-[disabled]:text-t5 data-[disabled]:pointer-events-none",a&&"pl-8 rtl:pr-8 rtl:pl-0",r),...m,children:[n||o||"string"==typeof h||"number"==typeof h?(0,i.jsxs)(i.Fragment,{children:[n?(0,i.jsx)("span",{className:"flex size-5 shrink-0 items-center justify-center",children:n}):null,(0,i.jsxs)("span",{className:"flex min-w-0 flex-1 flex-col",children:[(0,i.jsx)("span",{className:(0,l.Q)("truncate",c&&!n?"text-p1-dark":""),children:h}),o?(0,i.jsx)("span",{className:"text-t2 text-c12 truncate",children:o}):null]})]}):(0,i.jsx)("div",{className:"gap-s2 flex min-w-0 flex-1 items-center",children:h}),c?(0,i.jsx)(u.S,{className:"text-p1-dark size-4 shrink-0"}):null]})});z.displayName=s.q7.displayName;let F=o.forwardRef((e,t)=>
1{let{className:r,children:a,checked:n,onSelect:o,...c}=e;return(0,i.jsxs)(s.H_,{ref:t,className:(0,l.Q)("gap-s2 rounded-r2 px-s2 relative flex cursor-pointer items-center py-[10px] transition-colors outline-none select-none","mx-s2","text-t1 text-b14","hover:bg-bg2 hover:rounded-r1","focus:bg-bg2 focus:rounded-r1","data-[disabled]:text-t5 data-[disabled]:pointer-events-none",r),checked:n,onSelect:e=>{e.preventDefault(),null==o||o(e)},...c,children:[(0,i.jsx)("span",{className:(0,l.Q)("border-t4 flex size-4 shrink-0 items-center justify-center rounded-[4px] border-2 transition-colors",n&&"bg-p1 border-p1"),children:(0,i.jsx)(s.VF,{className:"text-tr1 flex items-center justify-center",children:(0,i.jsx)(u.S,{})})}),a]})});F.displayName=s.H_.displayName;let U=o.forwardRef((e,t)=>{let{className:r,children:a,onSelect:n,...o}=e;return(0,i.jsxs)(s.hN,{ref:t,className:(0,l.Q)("gap-s2 rounded-r2 px-s2 relative flex cursor-pointer items-center py-[10px] transition-colors outline-none select-none","mx-s2","text-t1 text-b14","hover:bg-bg2 hover:rounded-r1","focus:bg-bg2 focus:rounded-r1","data-[disabled]:text-t5 data-[disabled]:pointer-events-none",r),onSelect:e=>{e.preventDefault(),null==n||n(e)},...o,children:[(0,i.jsx)("span",{className:"border-t5 relative flex size-4 shrink-0 items-center justify-center rounded-full border",children:(0,i.jsx)(s.VF,{className:"flex items-center justify-center",children:(0,i.jsx)("div",{className:"bg-p1 size-2.5 rounded-full"})})}),a]})});U.displayName=s.hN.displayName;let q=o.forwardRef((e,t)=>{let{className:r,inset:a,...n}=e;return(0,i.jsx)(s.JU,{ref:t,className:(0,l.Q)("px-s2 mx-s2 text-t2 text-b14 py-[10px] font-semibold",a&&"pl-8 rtl:pr-8 rtl:pl-0",r),...n})});q.displayName=s.JU.displayName;let B=o.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,i.jsx)(s.wv,{ref:t,className:(0,l.Q)("bg-l1 -mx-1 my-1 h-px",r),...a})});B.displayName=s.wv.displayName;let V=e=>{let{className:t,...r}=e;return(0,i.jsx)("span",{className:(0,l.Q)("text-t3 text-c12 ml-auto tracking-widest rtl:mr-auto rtl:ml-0",t),...r})};V.displayName="DropdownMenuShortcut"},27966:(e,t,r)=>{r.d(t,{e7:()=>i,fY:()=>a});let i=(0,r(41809).v)()(e=>({navbarActivityConfig:{},clearActivity:()=>e({navbarActivityConfig:{}}),updateNavbarActivityConfig:t=>{e({navbarActivityConfig:t})}})),a=e=>{i.getState().updateNavbarActivityConfig(e)}},29265:(e,t,r)=>{r.d(t,{B:()=>o,E5:()=>d,En:()=>p,I2:()=>u,XT:()=>s,bF:()=>l,fj:()=>n,hD:()=>c,zm:()=>a});var i=r(53117);function a(){let e=(0,i.Y3)(e=>e.hasFlag),t=(0,i.Y3)(e=>e.loading);return[e("tapbit.feature.wallet.withdrawal"),t]}function n(){let e=(0,i.Y3)(e=>e.hasFlag),t=(0,i.Y3)(e=>e.loading);return[e("tapbit.feature.signup.banner"),t]}function l(){let e=(0,i.Y3)(e=>e.hasFlag),t=(0,i.Y3)(e=>e.loading);return[e("tapbit.feature.auth.oauth-login"),t]}function s(){let e=(0,i.Y3)(e=>e.hasFlag),t=(0,i.Y3)(e=>e.loading);return[e("tapbit.feature.auth.passkey"),t]}function o(){let e=(0,i.Y3)(e=>e.hasFlag),t=(0,i.Y3)(e=>e.loading);return[e("tapbit.feature.pwa.guide"),t]}function c(){let e=(0,i.Y3)(e=>e.hasFlag),t=(0,i.Y3)(e=>e.loading);return[e("tapbit.feature.navbar.worldCup"),t]}let d="tapbit.feature.wallet.deposit";function u(){let e=(0,i.Y3)(e=>e.hasFlag),t=(0,i.Y3)(e=>e.loading);return[e(d),t]}function p(){let e=(0,i.Y3)(e=>e.hasFlag),t=(0,i.Y3)(e=>e.loading);return[e("tapbit.feature.tradingbot"),t]}},31806:(e,t,r)=>{let i;r.d(t,{S:()=>o});var a=r(2662),n=r(20324),l=r(59475);function s(){return new a.E({defaultOptions:{queries:{staleTime:6e4},dehydrate:{shouldDehydrateQuery:e=>(0,n.XS)(e)||"pending"===e.state.status}}})}function o(){return l.S$?s():(i||(i=s()),i)}},34071:(e,t,r)=>{r.d(t,{q:()=>a});var i=r(38113);function a(){let[e,t]=(0,i.useState)(!1);return(0,i.useEffect)(()=>{t(!0)},[]),e}},34381:(e,t,r)=>{r.d(t,{Zu:()=>p,cn:()=>c});var i=r(69534),a=r(47582),n=r(41809),l=r(91474);let s=null,o=()=>({currencyRatesCurrent:"USD",currencyRatesList:[],currencyRatesRawList:[],fetchedAt:null,loading:!1,error:null}),c=(0,n.v)()((0,l.Zr)((e,t)=>({...o(),setCurrency:t=>e(e=>({...e,...t})),clearCurrency:()=>e({...o()}),updateCurrencyRateCurrent:t=>{i.xM.setItem("CURRENCY_RATES_CURRENT",t),e({currencyRatesCurrent:t})},updateCurrencyRatesList:t=>{e({currencyRatesList:t})},isCurrencyRatesFresh:()=>{let e=t().fetchedAt;return!!e&&Date.now()-e<3e5},fetchCurrencyRates:async r=>{let i=!!(null==r?void 0:r.force),{currencyRatesRawList:n,fetchedAt:l}=t();return!i&&n.length&&l&&Date.now()-l<3e5?n:s||(e({loading:!0,error:null}),s=(async()=>{try{var t;let r=await (0,a.tv)(),i=null!=(t=null==r?void 0:r.data)?t:[];return e({currencyRatesRawList:i,fetchedAt:Date.now(),loading:!1,error:null}),i}catch(t){return e({loading:!1,error:t instanceof Error?t.message:"unknown error"}),[]}finally{s=null}})())}}),{name:"currency-storage",storage:(0,l.KU)(()=>localStorage),partialize:e=>({currencyRatesCurrent:e.currencyRatesCurrent,currencyRatesRawList:e.currencyRatesRawList,fetchedAt:e.fetchedAt})})),d=()=>c.getState(),u=e=>{c.getState().setCurrency(e)},p=e=>{let t=d().currencyRatesRawList,r=e?t:t.filter(e=>"KRW"!==e.name);return u({currencyRatesList:r}),"KRW"!==d().currencyRatesCurrent||e||u({currencyRatesCurrent:"USD"}),r}},37566:(e,t,r)=>{r.d(t,{WE:()=>l,td:()=>s});var i=r(19125),a=r(29265),n=r(21083);let l="/wallet/withdrawal";function s(){let e=(0,i.q)(),[t,r]=(0,a.zm)();return(0,n.A)(function(){var i;let a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l;return(null==a||null==(i=a.split("?")[0])?void 0:i.split("#")[0])!==l||r||t?e(a):"".concat("/personal/withdrawal").concat(a.slice(l.length))})}},41793:(e,t,r)=>{r.d(t,{$4:()=>H,D7:()=>u,GI:()=>v,HG:()=>M,HO:()=>f,HZ:()=>D,Hs:()=>C,IV:()=>h,Js:()=>N,Kv:()=>g,Lo:()=>W,NU:()=>R,O7:()=>S,QX:()=>c,Sw:()=>T,T7:()=>P,V0:()=>w,W5:()=>b,XS:()=>x,YW:()=>A,ZG:()=>I,b4:()=>k,bl:()=>m,ci:()=>d,db:()=>_,e4:()=>p,ez:()=>o,gG:()=>y,g_:()=>s,jJ:()=>l,jo:()=>j,z1:()=>n});var i=r(59292),a=r(10935);let n=()=>i.request.get("/activities/public/getvaspinfo"),l=e=>i.request.get("/activities/shufti/start",e),s=e=>i.request.get("/activities/public/homepage-activities",e),o=e=>i.request.get("/activities/notify/allMessage",e),c=e=>i.request.get("/activities/notify/userMessage",e),d=(e,t)=>i.request.get("/api/usdt-rouse-api/activity-page/getActPage?actId=".concat(e),t),u=(e,t)=>
1i.request.get("/api/usdt-rouse-api/activity-page/public/getActPage?actId=".concat(e),t),p=(e,t)=>i.request.post("/api/usdt-rouse-api/activity-page/enroll?actId=".concat(e),t),h=e=>i.request.get("/activities/notify/promotion/switch-info",e),m=(e,t)=>i.request.post("/activities/notify/promotion/switch-settings",{body:{type:e,flag:t},requestType:a.Yw.JsonString}),f=(e,t)=>i.request.post("/activities/public/promotion/mail-unsubscribe",{body:{operationNumber:e},requestType:a.Yw.JsonString,...t}),g=e=>i.request.get("/activities/public/checkchannel",e),b=e=>i.request.get("/api/usdt-rouse-api/activities/info",e),x=e=>i.request.get("/api/usdt-rouse-api/public/activities/info",e),v=e=>i.request.post("/api/usdt-rouse-api/activities/join",{body:{activityNo:e},requestType:a.Yw.Json}),w=e=>i.request.post("/api/usdt-rouse-api/activities/predict/change",{...e,requestType:a.Yw.Json}),y=e=>i.request.get("/api/usdt-rouse-api/activities/detail",e),_=e=>i.request.get("/api/usdt-rouse-api/activities/reward/list",e),k=e=>i.request.get("/api/usdt-rouse-api/activities/points/list",e),N=e=>i.request.get("/api/usdt-rouse-api/activities/points/ranking",e),T=e=>i.request.get("/api/usdt-rouse-api/public/activities/points/ranking",e),j=e=>i.request.get("/api/usdt-rouse-api/activities/list",e),S=e=>i.request.get("/api/usdt-rouse-api/public/activities/list",e),C=e=>i.request.get("/api/usdt-rouse-api/public/activities/featured/cards",e),I=e=>i.request.post("/api/usdt-rouse-api/activities/claim",{body:e,requestType:a.Yw.Json}),D=e=>i.request.get("/api/usdt-rouse-api/activities/invite/invitee/list",e),R=e=>i.request.get("/api/usdt-rouse-api/activities/reward/list",e),W=e=>i.request.get("/api/usdt-rouse-api/activity/channel/public/rankingList",e),P=e=>i.request.get("/api/usdt-rouse-api/activity/channel/myPerformance",e),A=e=>i.request.get("/api/usdt-rouse-api/activity/channel/public/activityInfo",e),M=e=>i.request.post("/api/usdt-rouse-api/activity/trading-race/join",{requestType:a.Yw.Json,params:{activityId:e}}),H=e=>i.request.get("/api/usdt-rouse-api/activity/trading-race/join-status",e)},44017:(e,t,r)=>{r.d(t,{$7:()=>f,Cr:()=>v,F2:()=>T,Ft:()=>_,IM:()=>d,O5:()=>x,Ov:()=>k,RO:()=>u,XQ:()=>j,Z9:()=>c,bj:()=>w,cT:()=>s,jN:()=>N,jU:()=>y,k0:()=>g,m8:()=>h,mv:()=>m,oV:()=>p,pO:()=>b,zI:()=>o});var i=r(13973);function a(e){return{banner_id:void 0===e.id||null===e.id?void 0:String(e.id),url:e.link_url||void 0,position:String(e.index+1)}}function n(e){return{banner_id:void 0===e.id||null===e.id?void 0:String(e.id),position:String(e.index+1)}}function l(e){var t;return{page_type:"modal",popup_id:String(e.popupId),popup_type:null==(t=e.popupType)?void 0:({1:"system",2:"new_user",3:"coupon",4:"campaign",5:"vip"})[t],related_id:void 0===e.relatedId||null===e.relatedId?void 0:String(e.relatedId)}}function s(e){(0,i.s)("home_banner_view",a(e))}function o(e){(0,i.s)("home_banner_click",a(e))}function c(e){(0,i.s)("hero_banner_view",n(e))}function d(e){(0,i.s)("hero_banner_click",n(e),{transport:"beacon"})}function u(e){(0,i.s)("home_hero_click",{element_name:e},{transport:"beacon"})}function p(e){(0,i.s)("home_footer_click",{element_name:e},{transport:"beacon"})}function h(e,t){(0,i.s)("home_announce_click",{element_name:e,content:t})}function m(e){(0,i.s)("homev2_hero_app_click",{page_name:"home",element_name:e},{transport:"beacon"})}function f(e,t,r){(0,i.s)("homev2_market_click",{page_name:"home",element_name:e,tab_name:t,symbol:r})}function g(e){(0,i.s)("popup_view",l(e))}function b(e,t){(0,i.s)("popup_click",{...l(e),element_name:t},{transport:"beacon"})}function x(){(0,i.s)("pwa_install_popup_view",{page_type:"modal"})}function v(){(0,i.s)("pwa_install_result",{page_type:"modal"})}function w(){(0,i.s)("pwa_install_app_click",{page_type:"modal"})}function y(){(0,i.s)("pwa_add_home_click",{page_type:"modal"})}function _(){(0,i.s)("pwa_guide_popup_view",{page_type:"modal"})}function k(e){(0,i.s)("pwa_guide_popup_click",{page_type:"modal",element_name:e})}function N(){(0,i.s)("pwa_install_success_view",{page_type:"modal"})}function T(e){return{page_name:"home",module_name:e}}function j(){return"homev2_module_view"}},47355:(e,t,r)=>{r.d(t,{I18nProvider:()=>u});var i=r(79237),a=r(14298),n=r(55441),l=r(70925);let s="translation",o={};var c=r(38113),d=r(68454);function u(e){let{children:t,locale:r,resources:u}=e,{i18n:p}=(0,c.useMemo)(()=>((e,t)=>{if(o[e]){let r=o[e];
1return Object.entries(t).forEach(e=>{let[t,i]=e;Object.entries(null!=i?i:{}).forEach(e=>{let[i,a]=e;r.addResourceBundle(t,i,a,!0,!0)})}),{i18n:r,$t:r.t}}let r=(0,n.Q_)();return r.use(l.r).init({lng:e,resources:t,fallbackLng:e,supportedLngs:a.Ay.locales,defaultNS:s,fallbackNS:s,ns:[s],interpolation:{prefix:"{",suffix:"}",escapeValue:!1}}),o[e]=r,{i18n:r,$t:r.t}})(r,u),[r,u]);return(0,i.jsx)(d.xC,{i18n:p,children:t})}},47362:(e,t,r)=>{r.d(t,{default:()=>n});var i=r(79237),a=r(38113);function n(e){let{children:t,fallback:r=null}=e,[n,l]=(0,a.useState)(!1);return(0,a.useEffect)(()=>{l(!0)},[]),n?(0,i.jsx)(i.Fragment,{children:t}):(0,i.jsx)(i.Fragment,{children:r})}},47582:(e,t,r)=>{r.d(t,{AB:()=>u,Fu:()=>c,Zd:()=>s,dw:()=>h,m6:()=>d,qM:()=>p,tv:()=>l,wI:()=>o});var i=r(59292),a=r(10935),n=r(4390);let l=e=>i.request.get("/market/v2/currency-rates",e),s=e=>i.request.get("/market/asset/latestPrice",e),o=e=>(0,n.useQuery)({queryKey:["getFear",e],queryFn:()=>i.request.get("/market/v3/greed/fear/index",e),staleTime:12e4}),c=e=>i.request.get("/market/v3/current/datetime",e),d=e=>i.request.get("/market/v3/site/tradepair/webgroup",e),u=e=>i.request.get("/market/v3/site/tradepair/webgroup",e),p=e=>i.request.get("/user/favorite/list",e),h=e=>i.request.post("/user/favorite/toggle",{...e,requestType:a.Yw.JsonString})},50324:(e,t,r)=>{r.d(t,{$E:()=>s,Sn:()=>o,X9:()=>l,XH:()=>d,rG:()=>c,st:()=>a,ut:()=>n});var i=r(57032);let a=e=>({[i.C.WALLET]:e("Capital Account"),[i.C.SPOT]:e("Spot"),[i.C.FUTURES_BTC]:e("Crypto Contract"),[i.C.FUTURES_USDT]:e("Derivatives")}),n=e=>({[i.u.SUSPEND]:e("Suspend"),[i.u.SUSPEND_OUT]:e("Suspend out"),[i.u.SUSPEND_IN]:e("Suspend in")}),l={wallet:i.C.WALLET,spot:i.C.SPOT,futures_btc:i.C.FUTURES_BTC,futures_usdt:i.C.FUTURES_USDT},s=5,o={ALL_ASSETS:"/api/exchange-account-center-api/asset",TRANSFER_INFO:"/api/exchange-account-center-api/asset/transfer/info",TRANSFER:"/api/exchange-account-center-api/asset/transfer",GRANTS_BALANCE:"/api/usdt-rouse-api/bonus/trans/alarm"},c={asset:"USDT",fromProduct:i.C.SPOT,toProduct:i.C.FUTURES_USDT,fromSubProduct:"",toSubProduct:"",amount:null},d={assetDisabled:!1,useSymbol:!1,disabledProduct:null,status:i.u.AVAILABLE,close:!1}},50697:(e,t,r)=>{r.d(t,{F9:()=>a}),r(79237),r(38113);var i=r(62564);function a(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{values:t,customData:r,onSuccess:a}=e,{openDialog:n,setOnSuccess:l}=i.Q.getState();a&&l(a),n(t,r)}},53117:(e,t,r)=>{r.d(t,{Y3:()=>l});var i=r(15698),a=r(41809);let n={enabledFlags:[],loading:!1,countryCode:"unknown"},l=(0,a.v)((e,t)=>({...n,hasFlag:e=>!!e&&t().enabledFlags.includes(e),loadGrayFlags:async()=>{e({loading:!0});let t=[],r="unknown";try{let e=await fetch("/api/gray",{method:"GET",cache:"no-store",headers:{accept:"application/json"}});if(!e.ok)throw Error("Request /api/gray failed with status ".concat(e.status));let i=await e.json();t=Array.isArray(i.flags)?i.flags:[],r=i.countryCode||"unknown"}catch(t){let e=function(e){return e instanceof Error?e.message:String(e)}(t);e.includes("Load failed")?i.wd(e,{level:"warning",tags:{module:"gray-store"}}):i.Cp(t,{tags:{module:"gray-store"}})}e({enabledFlags:t,countryCode:r,loading:!1})}}))},53578:(e,t,r)=>{r.d(t,{Bs:()=>f,Cb:()=>v,Fe:()=>g,Ng:()=>m,PA:()=>x,ZE:()=>_,ht:()=>w,if:()=>b,nF:()=>y});var i=r(78712),a=r(29265),n=r(14298),l=r(60173),s=r(78063),o=r(13647),c=r(53117),d=r(51025),u=r(50697),p=r(50324);function h(){var e;return null!=(e=(0,l.Eq)(window.location.pathname))?e:n.Xn}function m(e){(0,o.bf)()?(0,i.bE)().then(()=>{(0,i.px)("user.login").then(e=>{e&&e.token?(0,s.gV)(e):(0,s.a1)(),window.location.reload(),"scrollRestoration"in window.history&&(window.history.scrollRestoration="manual")}).catch(()=>{console.error("callApi user.login failed")})}).catch(()=>{console.error("bridgeReady failed")}):(0,s.jG)(void 0,e)}function f(e,t){(0,o.bf)()?(0,i.bE)().then(()=>{(0,i.px)("user.register").then(e=>{e&&e.token?(0,s.gV)(e):(0,s.a1)(),window.location.reload()}).catch(()=>{})}).catch(()=>{}):(0,s.z_)(e,t)}function g(){if((0,o.bf)())window.location.href="ida://kyc";else{let e=d.k.getState().user;(null==e?void 0:e.userId)?window.location.href=(0,l.Xt)("/settings/profile",h()):m()}}function b(){if((0,o.bf)())window.location.href="ida://Recharge?asset=USDT";else{let e=d.k.getState().user;if(null==e?void 0:e.userId){let e=c.Y3.getState();window.location.href=e.loading||e.hasFlag(a.E5)?(0,l.wf)("/wallet/deposit",h()):"/personal/deposit"}else m()}}function x(){(0,o.bf)()?window.location.href="ida://Transfer?from=coin&to=contract&asset=USDT":(0,u.F9)({values:{asset:"USDT",fromProduct:p.X9.spot,toProduct:p.X9.futures_usdt},onSuccess:()=>window.location.reload()})}function v(){(0,o.bf)()?window.location.href="ida://trade?symbol=BTC-SWAP":window.location.href=(0,l.wf)("/contract/futures/BTC-SWAP",h())}function w(){if((0,o.bf)()){let e=d.k.getState().user;(null==e?void 0:e.userId)?(0,i.px)("native.openWebview",{params:{url:"".concat("https://www.tapbit.net","/").concat(h(),"/coupon?auth=true")}}).catch(()=>{console.error("callApi native.openWebview failed")}):m()}else window.location.href="/".concat(h(),"/coupon")}function y(){(0,o.bf)()?window.location.href="ida://copytrade/home":window.location.href=(0,l.wf)("/copy-trading",h())}
1function _(e){let t=h(),r=new URLSearchParams({grantsId:String(e)}),a="/".concat(t,"/deposit-reward?").concat(r.toString());if((0,o.bf)()){let e=d.k.getState().user;(null==e?void 0:e.userId)?(0,i.px)("native.openWebview",{params:{url:"".concat("https://www.tapbit.net").concat(a,"&auth=true")}}).catch(()=>{console.error("callApi native.openWebview failed")}):m()}else window.location.href=a}},57032:(e,t,r)=>{r.d(t,{C:()=>i,u:()=>a});var i=function(e){return e[e.WALLET=1]="WALLET",e[e.SPOT=2]="SPOT",e[e.FUTURES_BTC=3]="FUTURES_BTC",e[e.FUTURES_USDT=4]="FUTURES_USDT",e}({}),a=function(e){return e[e.SUSPEND=0]="SUSPEND",e[e.SUSPEND_OUT=1]="SUSPEND_OUT",e[e.SUSPEND_IN=2]="SUSPEND_IN",e[e.AVAILABLE=3]="AVAILABLE",e}({})},59502:(e,t,r)=>{r.d(t,{s:()=>l});var i=r(38113),a=r(13973);let n={};function l(e){var t,r,l,s;let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n,c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},d=null!=(t=c.trigger)?t:"mount",u="mount"===d&&"trackingKey"in c?c.trackingKey:void 0,p="mount"===d&&"dedupeByTrackingKeyOnly"in c&&!0===c.dedupeByTrackingKeyOnly,h=(0,i.useRef)(""),m=(0,i.useRef)(!1),f=(0,i.useRef)(void 0),g=(0,i.useRef)(null),b=(0,i.useRef)(()=>void 0),x=(0,i.useRef)(o),v=(0,i.useRef)(void 0),w=(0,i.useRef)(!1);x.current=o;let y="active"===c.trigger&&c.active,_="active"===c.trigger?c.trackingKey:void 0,k="visible"===c.trigger&&Number.isFinite(c.minVisibleDurationMs)?Math.max(0,null!=(r=c.minVisibleDurationMs)?r:1e3):1e3,N="visible"!==c.trigger||null==(l=c.once)||l,T="visible"===c.trigger&&Number.isFinite(c.threshold)?Math.min(1,Math.max(0,null!=(s=c.threshold)?s:.5)):.5,j="visible"===c.trigger?c.trackingKey:void 0;return(0,i.useEffect)(()=>{if("mount"!==d)return;let t=JSON.stringify(p&&void 0!==u?[e,u]:[e,o,u]);h.current!==t&&(h.current=t,(0,a.s)(e,o))},[p,e,o,u,d]),(0,i.useEffect)(()=>{if("active"!==d){m.current=!1,f.current=void 0;return}y&&(!m.current||f.current!==_)&&(0,a.s)(e,o),m.current=y,f.current=y?_:void 0},[y,_,e,o,d]),(0,i.useEffect)(()=>()=>{b.current()},[]),(0,i.useCallback)(t=>{let r;if(b.current(),b.current=()=>void 0,v.current!==j&&(v.current=j,w.current=!1),"visible"!==d||!t||"undefined"==typeof IntersectionObserver||N&&w.current)return;let i=!1,n=!1,l=!1,s=()=>{void 0!==r&&(window.clearTimeout(r),r=void 0)},o=()=>{var e;l||(l=!0,s(),null==(e=g.current)||e.disconnect(),g.current=null,document.removeEventListener("visibilitychange",u))},c=()=>{!l&&i&&!n&&((0,a.s)(e,x.current),n=!0,N&&(w.current=!0,o()))};function u(){!l&&t&&(i=!1,n=!1,s(),"visible"===document.visibilityState&&g.current&&(g.current.unobserve(t),g.current.observe(t)))}g.current=new IntersectionObserver(e=>{if(l)return;let t=e.some(e=>e.isIntersecting&&e.intersectionRatio>=T);if(i=t,!t){n=!1,s();return}(()=>{if(!l&&void 0===r&&i&&!n&&"visible"===document.visibilityState){if(0===k)return c();r=window.setTimeout(()=>{r=void 0,c()},k)}})()},{threshold:T}),document.addEventListener("visibilitychange",u),g.current.observe(t),b.current=o},[e,k,N,T,d,j])}},59749:(e,t,r)=>{r.d(t,{e:()=>s});var i=r(19125),a=r(29265),n=r(21083);let l="/wallet/deposit";function s(){let e=(0,i.q)(),[t,r]=(0,a.I2)();return(0,n.A)(function(){var i;let a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l;return(null==a||null==(i=a.split("?")[0])?void 0:i.split("#")[0])!==l||r||t?e(a):"".concat("/personal/deposit").concat(a.slice(l.length))})}},62300:(e,t,r)=>{r.d(t,{Ft:()=>s});var i=r(51025),a=r(73404),n=r(41809),l=r(5676);let s=(0,n.v)()(e=>({koreaIP:!1,p2pWhite:!1,kycWhite:!1,koreanWhite:!1,accessReady:!1,setRegionAccess:t=>e(e=>({...e,...t})),clearRegionAccess:()=>e({koreaIP:!1,p2pWhite:!1,kycWhite:!1,koreanWhite:!1,accessReady:!1}),updateKoreaIP:t=>{e({koreaIP:t})},updateWhitelist:t=>{e(e=>({...e,...t}))},syncFromDeps:()=>{let t=(()=>{let e=a.t.getState(),t=i.k.getState(),r=!1,n=!1,l=!1,s=!1,o=e.vaspInfo,
1c=t.user;if(!o||!e.fetchedAt||!t.userLoadFromStorage)return{koreaIP:r,p2pWhite:n,kycWhite:l,koreanWhite:s,accessReady:!1};r="ko_KR"===o.lang;let d=1===o.vaspSwitch,u=!!(null==c?void 0:c.userId);if(r)if(u){let e=null==c?void 0:c.userAct;n=(null==e?void 0:e.p2p)===1,l=(null==e?void 0:e.kycWhite)===1,s=(null==e?void 0:e.ko_KR)===1}else n=d,l=d,s=d;else n=!0,l=!0,s=u;return{koreaIP:r,p2pWhite:n,kycWhite:l,koreanWhite:s,accessReady:!0}})();e(e=>{let r={koreaIP:e.koreaIP,p2pWhite:e.p2pWhite,kycWhite:e.kycWhite,koreanWhite:e.koreanWhite,accessReady:e.accessReady};return(0,l.x)(r,t)?e:{...e,...t}})}})),o=!1;o=!0,i.k.subscribe(()=>{s.getInitialState().syncFromDeps()}),a.t.subscribe(()=>{s.getInitialState().syncFromDeps()}),s.getInitialState().syncFromDeps()},62564:(e,t,r)=>{r.d(t,{Q:()=>c});var i=r(93924),a=r(59292),n=r(10935),l=r(88503),s=r(41809),o=r(50324);let c=(0,s.v)((e,t)=>({values:{...o.rG},customData:{...o.XH},transferInfo:null,grantsBalance:null,allAssets:[],loading:!1,transferInfoLoading:!1,grantsBalanceLoading:!1,dialogOpen:!1,bonusDialogOpen:!1,onSuccess:void 0,updateV
1alues:t=>{e(e=>({values:{...e.values,...t}}))},updateCustomData:t=>{e(e=>({customData:{...e.customData,...t}}))},setOnSuccess:t=>{e({onSuccess:t})},fetchAllAssets:async()=>{try{let t=await a.request.get(o.Sn.ALL_ASSETS);if(t&&200===t.code){let r=t.data||[];e({allAssets:r})}}catch(e){console.error("Failed to fetch all assets:",e)}},fetchTransferInfo:async r=>{let n=t(),l=r?{...n.values,...r}:n.values;e({transferInfoLoading:!0});try{let t=await a.request.get(o.Sn.TRANSFER_INFO,{params:l});t&&200===t.code&&e({transferInfo:t.data})}catch(e){console.error("Failed to fetch transfer info:",e),(0,i.toast)({title:"Failed to check balance",type:"error"})}finally{e({transferInfoLoading:!1})}},fetchGrantsBalance:async t=>{e({grantsBalanceLoading:!0});try{let r=await a.request.get(o.Sn.GRANTS_BALANCE,{params:{transferType:t}});if(r&&200===r.code){let t=r.data;return e({grantsBalance:t}),t}return}catch(e){console.error("Failed to fetch grants balance:",e);return}finally{e({grantsBalanceLoading:!1})}},checkAndSubmit:async e=>{let r=t(),i=4===r.values.fromProduct?"OUT":"IN",a=await r.fetchGrantsBalance(i);a&&a.status&&a.message?r.openBonusDialog():await r.finalSubmit(e)},finalSubmit:async r=>{let i=t();e({loading:!0});try{let e={asset:i.values.asset,fromProduct:i.values.fromProduct,toProduct:i.values.toProduct,amount:i.values.amount||"0"};i.values.fromSubProduct&&(e.fromSubProduct=i.values.fromSubProduct),i.values.toSubProduct&&(e.toSubProduct=i.values.toSubProduct);let t=await (0,l.u)("account_transfer_submit",()=>a.request.post(o.Sn.TRANSFER,{body:e,requestType:n.Yw.JsonString}));t&&200===t.code&&(null==r||r(),i.updateValues({amount:null}),await i.fetchTransferInfo(),i.onSuccess&&i.onSuccess(),i.closeDialog())}catch(e){console.error("Failed to submit transfer:",e)}finally{e({loading:!1})}},openDialog:(r,i)=>{let a=t();r&&a.updateValues(r),i&&a.updateCustomData(i),a.fetchTransferInfo(),0===a.allAssets.length&&a.fetchAllAssets(),e({dialogOpen:!0})},closeDialog:()=>{e({dialogOpen:!1}),setTimeout(()=>{t().reset()},300)},openBonusDialog:()=>{e({bonusDialogOpen:!0})},closeBonusDialog:()=>{e({bonusDialogOpen:!1})},reset:()=>{e({values:{...o.rG},customData:{...o.XH},transferInfo:null,grantsBalance:null,onSuccess:void 0})}}))},66248:(e,t,r)=>{r.d(t,{p:()=>i});let i=(0,r(41809).v)()(e=>({setNavTheme:t=>e({navTheme:t})}))},73404:(e,t,r)=>{r.d(t,{t:()=>s});var i=r(41793),a=r(41809),n=r(91474);let l=null,s=(0,a.v)()((0,n.Zr)((e,t)=>({vaspInfo:null,fetchedAt:null,loading:!1,error:null,clearVaspInfo:()=>e({vaspInfo:null,fetchedAt:null,loading:!1,error:null}),isVaspInfoFresh:()=>{let e=t().fetchedAt;return!!e&&Date.now()-e<6e4},fetchVaspInfo:async r=>{let a=!!(null==r?void 0:r.force),{vaspInfo:n,fetchedAt:s}=t();return!a&&n&&s&&Date.now()-s<6e4?n:l||(e({loading:!0,error:null}),l=(async()=>{try{var t;let r=await (0,i.z1)(),a=null!=(t=null==r?void 0:r.data)?t:null;return e({vaspInfo:a,fetchedAt:Date.now(),loading:!1,error:null}),a}catch(t){return e({loading:!1,error:t instanceof Error?t.message:"unknown error"}),null}finally{l=null}})())}}),{name:"vasp-info-storage",storage:(0,n.KU)(()=>localStorage),partialize:e=>({vaspInfo:e.vaspInfo,fetchedAt:e.fetchedAt})}))},74116:(e,t,r)=>{r.d(t,{W:()=>n});var i=r(38113),a=r(13973);function n(){return(0,i.useCallback)((e,t)=>{(0,a.s)("web_top_navigation_click",{tab_name:e},{...t,transport:"beacon"})},[])}},76543:(e,t,r)=>{r.d(t,{HW:()=>o,Ij:()=>s,qR:()=>l});var i=r(69534);let a="first_referrer";function n(){let e=i.xM.getItem(a);return!e||"string"!=typeof e.domain||!e.domain||"number"!=typeof e.capturedAt||Date.now()-e.capturedAt>2592e6?null:e}function l(e){let t=function(e){if(e)try{let{hostname:t}=new URL(e);return t||void 0}catch(e){return}}(e);t&&(n()||i.xM.setItem(a,{domain:t,capturedAt:Date.now()}))}function s(){var e;return null==(e=n())?void 0:e.domain}function o(){i.xM.removeItem(a)}},77382:(e,t,r)=>{r.d(t,{J_:()=>o,iC:()=>c});var i=r(60173),a=r(9238);let n=["/personal/","/contract/","/spot/exchange","/spot/markets","/m/#/","/m/index.html#/"],l=/^[a-z][a-z\d+.-]*:/i;function s(e){if(e.linkType)return e.linkType;if(e.isintl||e.isZendesk)return"zendesk";let t=e.href||"";return l.test(t)||t.startsWith("//")?"external":n.some(e=>
1t.startsWith(e))?"legacy":"internal"}function o(e,t,r){let n=e.href;if(!n)return n;let l=s(e);return"internal"===l?(0,i.Eq)(n)?n:t(n):"zendesk"===l?function(e,t){let r=(0,a.FQ)(t);return e.includes("{zendeskCode}")?e.replaceAll("{zendeskCode}",r):e.replace(/\/hc\/[^/?#]+/,"/hc/".concat(r))}(n,r):n}function c(e){var t;let r=s(e),i=null!=(t=e.openInNewTab)?t:"_blank"===e.target||"external"===r||"zendesk"===r,a=[e.nofollow?"nofollow":"",i?"noopener noreferrer":""].filter(Boolean);return{...i?{target:"_blank"}:{},...a.length?{rel:a.join(" ")}:{}}}},78425:(e,t,r)=>{r.d(t,{$:()=>a,G:()=>i});let i=()=>{try{window.top&&window.top.location.hostname!=window.location.hostname&&(window.top.location.href=window.location.href)}catch(e){window.location.href="about:blank"}},a=(e,t)=>{if(!window.parent||window.parent===window)return void console.warn("safePostMessage: 没æç¶çªå£ï¼è·³è¿æ¶æ¯åé");let r=t||window.location.origin;try{window.parent.postMessage(e,r)}catch(e){console.error("safePostMessage: åéæ¶æ¯å¤±è´¥",e)}}},81315:(e,t,r)=>{r.d(t,{default:()=>ee});var i=r(79237),a=r(66960),n=r(13647),l=r(62300),s=r(38113),o=r(47776),c=r(65375);let d=s.forwardRef((e,t)=>(0,i.jsx)(c.B,{ref:t,viewBox:"0 0 1024 1024",...e,children:(0,i.jsx)("path",{d:"M886.784 783.616a95.936 95.936 0 0 1-32.64 27.264c-8.384 4.288-19.52 7.232-38.912 8.832-19.712 1.6-45.056 1.664-81.408 1.664H290.048c-36.352 0-61.76-0.064-81.472-1.664-19.328-1.6-30.464-4.544-38.912-8.832a96 96 0 0 1-32.64-27.264l255.488-230.784 22.72 15.936c26.048 18.24 45.824 32.64 68.352 38.272 18.56 4.672 38.08 4.672 56.704 0 22.528-5.568 42.24-20.096 68.288-38.272l22.656-16 255.552 230.848zM338.688 515.2l-220.8 199.36c-0.64-17.28-0.64-38.464-0.64-65.984V360.128l221.44 155.072zM906.56 375.488v273.088c0 27.52 0 48.768-0.768 65.984L685.056 515.2l221.44-155.072 0.064 15.36zM733.824 202.688c36.352 0 61.696 0 81.408 1.6 19.392 1.6 30.528 4.544 38.976 8.832 18.048 9.216 32.704 23.936 41.92 41.984 3.456 6.848 5.952 15.488 7.68 28.8L571.904 516.352c-30.4 21.312-38.912 26.624-47.104 28.672a53.44 53.44 0 0 1-25.792 0c-8.192-2.048-16.64-7.424-46.976-28.672l-332.096-232.32c1.728-13.376 4.288-22.016 7.744-28.8 9.216-18.112 23.936-32.832 41.984-42.048 8.448-4.288 19.584-7.232 38.912-8.832 19.712-1.6 45.12-1.6 81.472-1.6h443.776z"})}));d.displayName="Mail02Icon";let u=s.forwardRef((e,t)=>(0,i.jsx)(c.B,{ref:t,viewBox:"0 0 1024 1024",...e,children:(0,i.jsx)("path",{d:"M457.15456 541.85984L293.35552 333.4144H423.1168l101.08928 128.8192 108.05248-128.2048h71.43424l-144.91648 172.19584 171.8272 218.89024H601.2928l-109.48608-139.264-116.85888 138.89536H303.06304l154.09152-182.92736z m162.93888 144.71168L372.89984 372.08064h31.3344l246.86592 314.49088h-31.00672z"})}));u.displayName="TwitterIcon";let p=s.forwardRef((e,t)=>(0,i.jsx)(c.B,{ref:t,viewBox:"0 0 1024 1024",...e,children:(0,i.jsx)("path",{d:"M647.5776 719.79008l67.95264-320.14336c6.02112-28.0576-10.19904-39.23968-28.71296-32.5632l-399.11424 153.88672c-27.36128 10.69056-26.86976 25.88672-4.66944 32.89088l102.15424 31.86688 237.03552-149.21728c11.01824-7.3728 21.17632-3.15392 12.86144 4.17792l-191.81568 173.2608-7.33184 105.34912c10.6496 0 15.36-4.7104 20.8896-10.24l49.88928-48.04608 103.50592 76.30848c18.8416 10.6496 32.3584 5.16096 37.35552-17.53088z"})}));p.displayName="TelegramIcon";let h=s.forwardRef((e,t)=>(0,i.jsxs)(c.B,{ref:t,viewBox:"0 0 1024 1024",...e,children:[(0,i.jsx)("path",{d:"M511.95904 284.4672c-143.64672 0-260.096 94.45376-260.096 210.98496 0 74.05568 47.104 139.14112 118.29248 176.82432l-19.6608 103.71072 112.47616-73.3184c16.22016 2.4576 32.60416 3.6864 48.98816 3.6864 143.68768 0 260.21888-94.4128 260.21888-210.944-0.08192-116.49024-116.5312-210.944-260.21888-210.944z m-131.8912 273.408a11.264 11.264 0 0 1-6.71744 10.28096 10.97728 10.97728 0 0 1-4.17792 0.86016h-2.4576a10.89536 10.89536 0 0 1-7.7824-3.2768 11.264 11.264 0 0 1-3.19488-7.82336v-92.32384h-26.66496a11.75552 11.75552 0 0 1-6.144-1.72032 10.56768 10.56768 0 0 1-3.97312-4.5056 9.70752 9.70752 0 0 1-0.86016-3.97312c0-2.78528 1.2288-5.3248 3.23584-7.20896a11.264 11.264 0 0 1 7.74144-2.99008h77.37344c2.21184 0 4.34176 0.57344 6.144 1.72032a9.91232 9.91232 0 0 1 4.014
108 12.45184 11.34592 11.34592 0 0 1-10.15808 6.22592H380.1088v92.28288h-0.04096z m129.67936 5.7344a10.8544 10.8544 0 0 1-4.7104 4.17792l-2.2528 1.06496a10.8544 10.8544 0 0 1-14.49984-5.5296l-8.92928-20.0704H428.68736l-8.88832 19.94752a10.89536 10.89536 0 0 1-14.5408 5.5296l-2.21184-1.024a11.42784 11.42784 0 0 1-5.44768-14.78656l43.90912-98.18112 0.36864-0.94208a11.50976 11.50976 0 0 1 2.21184-4.38272 10.77248 10.77248 0 0 1 9.25696-5.12l1.76128 0.08192a10.97728 10.97728 0 0 1 8.192 4.25984c1.47456 1.51552 2.4576 3.39968 2.90816 5.40672l46.6944 104.40704-3.19488 5.12v0.04096z m93.30688-0.28672a10.11712 10.11712 0 0 1-2.048 2.70336 11.38688 11.38688 0 0 1-7.7824 2.99008h-65.00352a11.8784 11.8784 0 0 1-4.9152-1.72032 10.52672 10.52672 0 0 1-3.76832-3.8912l-1.10592-1.8432v-105.2672a11.264 11.264 0 0 1 6.79936-10.28096 10.89536 10.89536 0 0 1 4.17792-0.8192h2.49856c2.8672 0 5.65248 1.10592 7.70048 3.23584 2.048 2.048 3.23584 4.9152 3.23584 7.86432v92.48768h50.3808c3.2768 0 6.30784 1.39264 8.51968 3.76832l4.3008 4.95616-2.99008 5.81632z m102.23616-1.92512a10.89536 10.89536 0 0 1-3.35872 4.01408l-1.96608 1.47456a11.0592 11.0592 0 0 1-11.34592 0.98304 11.22304 11.22304 0 0 1-3.93216-3.35872l-34.44736-47.84128-14.45888 15.31904v25.92768a11.22304 11.22304 0 0 1-6.7584 10.24 10.97728 10.97728 0 0 1-4.21888 0.86016h-2.4576a10.93632 10.93632 0 0 1-9.58464-5.7344l-1.35168-2.53952v-104.448c0-2.99008 1.14688-5.81632 3.19488-7.90528a10.8544 10.8544 0 0 1 7.7824-3.2768h2.4576a10.81344 10.81344 0 0 1 7.70048 3.2768c2.048 2.12992 3.2768 4.9152 3.2768 7.86432v39.81312l44.76928-47.59552a10.69056 10.69056 0 0 1 9.91232-3.15392 11.0592 11.0592 0 0 1 5.57056 2.8672l1.80224 1.72032a11.10016 11.10016 0 0 1 3.35872 8.06912c0 2.8672-1.10592 5.61152-3.072 7.70048l-30.76096 32.68608 36.94592 51.4048a11.0592 11.0592 0 0 1 0.90112 11.55072v0.04096l0.04096 0.04096z"}),(0,i.jsx)("path",{d:"M435.85536 518.22592h41.24672l-20.6848-46.03904-20.56192 46.03904z"})]}));h.displayName="KakaoIcon";let m=s.forwardRef((e,t)=>(0,i.jsx)(c.B,{ref:t,viewBox:"0 0 1024 1024",...e,children:(0,i.jsx)("path",{d:"M389.5296 530.14528v-87.2448h53.4528V390.06208c0-71.18848 21.2992-122.4704 99.20512-122.4704H634.88V354.7136h-65.24928c-32.68608 0-40.1408 21.7088-40.1408 44.48256v43.66336h100.59776l-13.7216 87.2448h-86.8352v263.20896h-86.54848v-263.168H389.5296z"})}));m.displayName="FacebookIcon";let f=s.forwardRef((e,t)=>(0,i.jsx)(c.B,{ref:t,viewBox:"0 0 1024 1024",...e,children:(0,i.jsx)("path",{d:"M512 426.88512a103.34208 103.34208 0 1 0 0 206.68416 103.34208 103.34208 0 0 0 0-206.68416z m0 172.2368a68.85376 68.85376 0 1 1 0-137.74848 68.85376 68.85376 0 0 1 0 137.74848z m103.34208-292.78208H408.65792a120.66816 120.66816 0 0 0-120.54528 120.54528v206.68416a120.66816 120.66816 0 0 0 120.54528 120.54528h206.68416a120.66816 120.66816 0 0 0 120.54528-120.54528v-206.68416a120.70912 120.70912 0 0 0-120.58624-120.54528z m86.09792 327.22944a86.09792 86.09792 0 0 1-86.09792 86.09792H408.65792a86.09792 86.09792 0 0 1-86.09792-86.09792v-206.68416A86.09792 86.09792 0 0 1 408.65792 340.7872h206.68416a86.09792 86.09792 0 0 1 86.09792 86.09792v206.68416z m-51.69152-215.28576a25.8048 25.8048 0 1 1-51.65056 0 25.8048 25.8048 0 0 1 51.65056 0z"})}));f.displayName="InstagramIcon";let g=s.forwardRef((e,t)=>(0,i.jsx)(c.B,{ref:t,viewBox:"0 0 1024 1024",...e,children:(0,i.jsx)("path",{d:"M469.56544 601.7024V458.752l127.34464 71.68-127.3856 71.2704z m268.86144-170.1888s-4.99712-34.03776-20.23424-49.02912c-19.37408-19.6608-41.08288-19.74272-51.03616-20.8896-71.2704-4.99712-155.07456-4.99712-155.07456-4.99712h-0.2048s-83.7632 0-155.0336 4.99712c-9.95328 1.14688-31.66208 1.2288-51.03616 20.8896-15.27808 14.99136-20.23424 49.02912-20.23424 49.02912s-5.12 39.89504-5.12 79.872v37.4784c0 39.936 5.12 79.91296 5.12 79.91296s4.95616 33.9968 20.23424 48.98816c19.37408 19.6608 44.81024 19.0464 56.15616 21.13536 40.7552 3.80928 150.03648 4.95616 150.03648 4.95616s83.88608-0.16384 155.15648-5.12c9.95328-1.18784 31.66208-1.2288 51.03616-20.93056 15.27808-14.99136 20.23424-49.02912 20.23424-49.02912s5.12-39.936 5.12-79.872v-37.4784c0-39.97696-5.12-79.95392-5.12-79.95392z"})}));g.displayName="YoutubeIcon";let b=s.forwardRef((e,t)=>
1(0,i.jsx)(c.B,{ref:t,viewBox:"0 0 1024 1024",...e,children:(0,i.jsx)("path",{d:"M383.5904 723.68128H294.01088v-286.76096h89.57952v286.72zM336.4864 400.9984H335.872c-32.44032 0-53.4528-21.9136-53.4528-49.68448 0-28.30336 21.62688-49.80736 54.72256-49.80736 33.05472 0 53.37088 21.42208 54.02624 49.72544 0 27.77088-20.97152 49.7664-54.6816 49.7664z m405.58592 322.64192h-101.5808v-148.39808c0-38.83008-15.89248-65.3312-50.83136-65.3312-26.74688 0-41.5744 17.85856-48.5376 35.10272-2.58048 6.18496-2.17088 14.78656-2.17088 23.42912v155.19744h-100.63872s1.26976-262.88128 0-286.76096h100.63872v44.97408c5.9392-19.6608 38.0928-47.7184 89.45664-47.7184 63.65184 0 113.664 41.24672 113.664 130.048v159.45728z"})}));b.displayName="LinkedinIcon";var x=r(70659),v=r(46540),w=r(19125),y=r(91405),_=r(34071),k=r(44017),N=r(59502),T=r(53),j=r(78063),S=r(53578),C=r(77222),I=r(40760),D=r(47362),R=r(95468),W=r(77382);function P(e){let{item:t,className:r="",children:n}=e,{locale:l}=(0,a.B)(),s=(0,w.q)(),o=(0,W.J_)(t,s,l),c=(0,W.iC)(t);return(0,i.jsx)("a",{href:o,...c,"data-home-footer-element":t.trackingName,className:r,children:null!=n?n:t.title})}function A(e){let{item:t,className:r="",children:n}=e,{locale:l}=(0,a.B)(),s=(0,w.q)();if((null==t?void 0:t.title)==="Tapbit VIP")return(0,i.jsx)(P,{item:t,className:r,children:null!=n?n:t.title});let o=t.isFAQ?{...t,href:"".concat((0,R.j0)(),"/hc/{zendeskCode}/categories/12190730039311"),linkType:"zendesk"}:t,c=(0,W.J_)(o,s,l),d=(0,W.iC)(o);return(0,i.jsx)("a",{href:c,...d,"data-home-footer-element":t.trackingName,className:r,children:null!=n?n:t.title})}var M=r(83125);function H(e){let{thirdparty:t=[],className:r="",itemGapClassName:a,imageClassName:n}=e;if(!t.length)return null;let l=null!=a?a:"mr-6 lg:mr-8",s=null!=n?n:"h-12";return(0,i.jsx)(D.default,{children:(0,i.jsx)("div",{className:"flex flex-wrap items-center ".concat(r),children:t.map((e,r)=>{let a=e["light-url"]||e.url||e["dark-url"],n=e["dark-url"]||e.url||e["light-url"],o=r!==t.length-1?l:"",c=a===n;return(0,i.jsx)("a",{href:e.href,target:"_blank",rel:"nofollow noopener noreferrer",className:"inline-block last:mr-0 ".concat(o),children:c?(0,i.jsx)(M.Image,{unoptimized:!0,className:s,src:a,alt:"",dpi:2,loading:"lazy",width:e.width,height:e.height}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(M.Image,{unoptimized:!0,className:"".concat(s," dark:hidden"),src:a,alt:"",dpi:2,loading:"lazy",width:e.width,height:e.height}),(0,i.jsx)(M.Image,{unoptimized:!0,className:"".concat(s," hidden dark:block"),src:n,alt:"",dpi:2,loading:"lazy",width:e.width,height:e.height,"aria-hidden":"true"})]})},"".concat(e.href,"-").concat(r))})})})}let L=new Set(["/[locale]","/[locale]/home"]);function E(e){let t=[];for(let r of e)"previous"===r.stackWith&&t.length>0?t[t.length-1].push(r):t.push([r]);return t}function z(e){let{rootId:t,showMobileFooter:r=!1,links:a=[],followLinks:n=[],thirdparty:l=[],texts:o}=e,c=(0,C.usePathname)(),d=(0,C.useParams)(),u=(0,_.q)(),p=function(e){let{mounted:t,isH5:r,route:i}=e;return t&&!r&&L.has(i||"")}({mounted:u,isH5:(0,y.no)(),route:(0,s.useMemo)(()=>(0,T.D)(c,d),[d,c])}),h=(0,N.s)((0,k.XQ)(),(0,k.F2)("footer"),{trigger:"visible"}),m=(0,s.useCallback)(e=>{h(p?e:null)},[h,p]),f=(0,s.useCallback)(e=>{if(!p||!(e.target instanceof Element))return;let t=e.target.closest("[data-home-footer-element]"),r=null==t?void 0:t.dataset.homeFooterElement;r&&(0,k.oV)(r)},[p]),g=a[a.length-1]||{data:[]},b=a.slice(0,-1),x=g.data||[];return(0,i.jsx)("footer",{ref:m,id:t,onClick:f,className:"bg-bg1 relative z-10",children:(0,i.jsxs)("div",{className:"mx-auto max-w-[1248px] px-4 md:px-6",children:[(0,i.jsx)(F,{showMobileFooter:r,groups:a,followLinks:n,thirdparty:l,texts:o}),(0,i.jsx)(U,{groups:b,followLinks:n,contactLinks:x,thirdparty:l,texts:o}),(0,i.jsx)(q,{groups:b,contactLinks:x,followLinks:n,thirdparty:l,texts:o})]})})}function F(e){let{showMobileFooter:t,groups:r,followLinks:a,thirdparty:n,texts:l}=e;return t&&r.length?(0,i.jsx)("div",{className:"md:hidden",children:(0,i.jsxs)("div",{className:"pt-2 pb-8",children:[(0,i.jsx)(B,{groups:r}),(0,i.jsxs)("div",{children:[(0,i.jsx)("div",{className:"text-t1 mb-6 text-[16px] leading-[18px] font-semibold",children:l.followUs}),(0,i.jsx)("div",{className:"mb-6 flex items-center",children:a.map((e,t)=>(0,i.jsx)(J,{link:e,className:t!==a.length-1?"mr-3":""},"".concat(e.title,"-").concat(t)))}),(0,i.jsx)(H,{thirdparty:n,className:"mt-6",itemGapClassName:"mr-6",imageClassName:"h-12"})]}),(0,i.jsx)(X,{label:l.copyright,className:"border-l1 mt-8 border-t pt-6 text-center text-[14px] leading-[16
1px]"})]})}):null}function U(e){let{groups:t,followLinks:r,contactLinks:a,thirdparty:n,texts:l}=e;return t.length?(0,i.jsx)("div",{className:"hidden md:block lg:hidden",children:(0,i.jsxs)("div",{className:"py-6",children:[(0,i.jsx)(V,{groups:t}),(0,i.jsx)(Y,{followLinks:r,contactLinks:a,texts:l}),(0,i.jsx)(G,{thirdparty:n,texts:l})]})}):null}function q(e){let{groups:t,contactLinks:r,followLinks:a,thirdparty:n,texts:l}=e;return t.length?(0,i.jsx)("div",{className:"hidden lg:block",children:(0,i.jsxs)("div",{className:"py-7",children:[(0,i.jsx)(O,{groups:t,followLinks:a,contactLinks:r,texts:l}),(0,i.jsx)(G,{thirdparty:n,texts:l})]})}):null}function B(e){let{groups:t}=e;return(0,i.jsx)("div",{className:"pb-6",children:t.map(e=>(0,i.jsxs)("details",{className:"group",children:[(0,i.jsxs)("summary",{className:"text-t1 relative h-[50px] cursor-pointer list-none text-[16px] leading-[50px] font-medium outline-none",children:[e.title,(0,i.jsx)(o.C,{className:"absolute top-1/2 right-2 h-4 w-4 -translate-y-1/2 transition-transform duration-300 group-open:rotate-180"})]}),(0,i.jsx)("div",{className:"py-1",children:(0,i.jsx)(Z,{links:e.data||[],variant:"mobile"})})]},e.title))})}function V(e){let{groups:t}=e,r=E(t);return(0,i.jsx)("div",{className:"flex flex-wrap justify-between gap-6 py-6 pb-10",children:r.map(e=>(0,i.jsx)("div",{children:e.map(e=>(0,i.jsxs)("div",{className:"mb-6 last:mb-0",children:[(0,i.jsx)("div",{className:"text-t1 mb-4 text-[18px] leading-[22px] font-semibold",children:e.title}),(0,i.jsx)(Z,{links:e.data||[],variant:"tablet"})]},e.title))},e.map(e=>e.title).join("-")))})}function O(e){let{groups:t,followLinks:r,contactLinks:n,texts:l}=e,o=(0,w.q)(),[c,u]=(0,s.useState)(""),{$t:p}=(0,a.B)();(0,s.useEffect)(()=>{u("".concat(window.location.origin).concat(o("/download"),"?").concat(Math.ceil(Date.now()/60/3/1e3)))},[o]);let[h,m]=(0,s.useState)(!1);return(0,s.useEffect)(()=>{m((0,j.Yj)())},[]),(0,i.jsxs)("div",{children:[(0,i.jsxs)("div",{className:"flex flex-wrap justify-between gap-6 py-6 pb-10",children:[E(t).map(e=>(0,i.jsx)("div",{children:e.map(e=>(0,i.jsxs)("div",{className:"mb-6 last:mb-0",children:[(0,i.jsx)("div",{className:"text-t1 mb-4 text-[18px] leading-[22px] font-semibold",children:e.title}),(0,i.jsx)(Z,{links:e.data||[],variant:"desktop"})]},e.title))},e.map(e=>e.title).join("-"))),(0,i.jsxs)("div",{className:"flex h-full w-[220px] flex-col",children:[(0,i.jsx)("div",{className:"text-t1 mb-4 text-center text-[18px] leading-[22px] font-semibold",children:p("Trade with Tapbit")}),(0,i.jsxs)("div",{className:"flex w-full flex-col items-center",children:[(0,i.jsx)(x.$,{className:"text-mm14 mb-6 h-10 w-[140px] !rounded-[48px]",onClick:()=>{(0,k.oV)(h?"trade":"sign_up"),h?(0,S.Cb)():(0,S.Bs)("",{User_from:"footer_signup"})},children:p(h?"Trade":"Sign Up")}),(0,i.jsx)("div",{className:"rounded-rb4 bg-bg1 border-l1 h-[120px] w-[120px] border p-[10px]",children:(0,i.jsx)(D.default,{children:(0,i.jsx)(I.Ay,{value:c,size:100,level:"H",imageSettings:{excavate:!0,src:"https://cdn.tapbit.mobi/common/logo/qrcode.png",height:24,width:24}})})}),(0,i.jsx)("div",{className:"text-t2 mt-3 text-center text-xs",children:p("Scan to Download APP")})]})]})]}),(0,i.jsxs)("div",{className:"mb-6 flex",children:[(0,i.jsx)("div",{className:"text-t1 mr-6 text-[18px] leading-[22px] font-semibold",children:l.followUs}),(0,i.jsxs)("div",{className:"flex",children:[(0,i.jsx)("div",{className:"flex",children:r.map((e,t)=>(0,i.jsx)(J,{link:e,className:"mr-3"},"".concat(e.title,"-").concat(t)))}),(0,i.jsx)(v.Tooltip,{content:(0,i.jsx)(K,{contactLinks:n}),side:"top",align:"center",children:(0,i.jsx)("button",{"data-home-footer-element":"social_email",className:"text-t1 bg-bg2 hover:text-p1 mr-3 flex h-6 w-6 cursor-pointer items-center justify-center overflow-hidden rounded-full",children:(0,i.jsx)(d,{className:"size-4"})})})]})]})]})}function Y(e){let{followLinks:t,contactLinks:r,texts:a}=e;return(0,i.jsx)("div",{className:"pb-6",children:(0,i.jsxs)("div",{className:"flex",children:[(0,i.jsx)("div",{className:"text-t1 mr-6 text-[18px] leading-[22px] font-semibold",children:a.followUs}),(0,i.jsxs)("div",{className:"flex",children:[(0,i.jsx)("div",{className:"flex",children:t.map((e,t)=>(0,i.jsx)(J,{link:e,className:"mr-3"},"".concat(e.title,"-").concat(t)))}),(0,i.jsx)(v.Tooltip,{content:(0,i.jsx)(Q,{contactLinks:r}),side:"top",align:"center",children:(0,i.jsx)("button",{"data-home-footer-element":"social_email",className:"text-t1 bg-bg2 hover:text-p1 mr-3 flex h-6 w-6 cursor-pointer items-center justify-center overflow-hidden rounded-full",children:(0,i.jsx)(d,{className:"size-4"})})})]})]})})}function G(e){let{thirdparty:t,texts:r}=e;return(0,i.jsxs)("div",{className:"border-l1 flex items-center justify-between border-t py-[14px]",children:[(0,i.jsx)(X,{label:r.copyright,className:"text-[14px] leading-[22px]"}),(0,i.jsx)(H,{thirdparty:t,itemGapClassName:"mr-8",imageClassName:"h-15"})]})}
1function Q(e){let{contactLinks:t}=e;return t.length?(0,i.jsx)("div",{className:"flex flex-col",children:t.map((e,r)=>(0,i.jsxs)("div",{className:"last:mr-0 ".concat(r!==t.length-1?"mr-3":""),children:[(0,i.jsx)("div",{className:"text-t1 mb-0.5 text-[14px] leading-[17px] font-medium",children:e.title}),(0,i.jsx)(A,{item:e,className:"text-t2 hover:text-t1 text-[12px] leading-[22px]",children:e.subTitle||e.title})]},e.title))}):null}function K(e){let{contactLinks:t}=e;return t.length?(0,i.jsx)("div",{children:t.map(e=>(0,i.jsxs)("div",{className:"mb-3 last:mb-0",children:[(0,i.jsx)("div",{className:"text-t1 mb-0.5 text-[14px] leading-[17px] font-medium",children:e.title}),(0,i.jsx)(A,{item:e,className:"text-t2 hover:text-t1 text-[12px] leading-[22px]",children:e.subTitle||e.title})]},e.title))}):null}function J(e){let{link:t,className:r=""}=e,a={TwitterIcon:u,TelegramIcon:p,KakaoIcon:h,FacebookIcon:m,InstagramIcon:f,YoutubeIcon:g,LinkedinIcon:b}[t.iconfont];return(0,i.jsx)("a",{className:"text-t1 bg-bg05 hover:text-p1 flex h-6 w-6 cursor-pointer items-center justify-center overflow-hidden rounded-full ".concat(r),target:"_blank",rel:"nofollow noopener noreferrer","data-home-footer-element":t.trackingName,href:t.href,children:a?(0,i.jsx)(a,{className:"size-6"}):null})}function Z(e){let{links:t,variant:r}=e;return t.length?(0,i.jsx)("div",{children:t.map(e=>e.subTitle&&"mobile"===r?(0,i.jsxs)("div",{className:"mb-4 last:mb-0",children:[(0,i.jsx)("div",{className:"text-t2 mb-1 text-[12px] leading-[14px]",children:e.title}),(0,i.jsx)(A,{item:e,className:"text-t1 hover:text-p1 text-[14px] leading-[17px] hover:underline",children:e.subTitle})]},"".concat(e.title,"-").concat(e.href)):(0,i.jsx)("div",{className:"mobile"===r?"mb-4 last:mb-0":"mb-2 last:mb-0",children:(0,i.jsx)(A,{item:e,className:"mobile"===r?"text-t2 hover:text-t1 text-[14px] leading-[17px]":"text-t2 hover:text-t1 text-[14px] leading-[22px]"})},"".concat(e.title,"-").concat(e.href)))}):null}function X(e){let{className:t="",label:r}=e;return(0,i.jsxs)("div",{className:"text-t2 ".concat(t),children:["\xa9",new Date().getFullYear()," ",r]})}var $=r(13067);function ee(e){var t,r,o,c;let{hideInApp:d=!0,showMobileFooter:u=!1}=e,{$t:p,locale:h}=(0,a.B)(),[m,f]=(0,s.useState)(!1),{p2pWhite:g}=(0,l.Ft)(),b=(t=(0,$.Dd)(p),r=g,t.map(e=>({...e,data:e.data?e.data.filter(e=>!e.isP2P||void 0===r||r).map(e=>({...e})):[]})));if((0,s.useEffect)(()=>{f((0,n.bf)())},[]),d&&m)return null;let x=(o=(0,$.yD)(p),c=h,o.filter(e=>(!e.showInLang||e.showInLang===c)&&(!e.notShowInlang||e.notShowInlang!==c)).map(e=>{var t;return{...e,href:(null==(t=e.locales)?void 0:t[c||"en"])||e.href}})),v=(0,$.bg)(p),w={followUs:p("Follow Us"),copyright:p("Tapbit LLC. All rights reserved.")};return(0,i.jsx)(z,{showMobileFooter:u,links:b,followLinks:x,thirdparty:v,texts:w})}},84361:(e,t,r)=>{r.d(t,{default:()=>l});var i=r(79237),a=r(31806),n=r(14275);function l(e){let t=(0,a.S)();return(0,i.jsx)(n.QueryClientProvider,{client:t,children:e.children})}},85071:(e,t,r)=>{r.d(t,{DE:()=>o,ch:()=>c});var i=r(69534);let a="tapbit_register_utm",n=/^[a-z0-9_]+$/;function l(e,t,r){var i;let a=e.getAll(t);if(0===a.length)return r?{valid:!1}:{valid:!0};if(1!==a.length)return{valid:!1};let l=null==(i=a[0])?void 0:i.toLowerCase();return l&&!(l.length>50)&&n.test(l)?{valid:!0,value:l}:{valid:!1}}function s(e){return"string"==typeof e&&e.length>0&&e.length<=50&&n.test(e)}function o(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Date.now(),r=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Date.now();if(!Number.isFinite(t)||t<=0)return;let r=new URLSearchParams(e),i=l(r,"utm_source",!0),a=l(r,"utm_medium",!0),n=l(r,"utm_campaign",!0),s=l(r,"utm_content",!1);if(i.valid&&i.value&&a.valid&&a.value&&n.valid&&n.value&&s.valid)return{utmSource:i.value,utmMedium:a.value,utmCampaign:n.value,...s.value?{utmContent:s.value}:{},utmTouchTime:t}}(e,t);if(r)return i.xM.setItem(a,r),r}function c(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Date.now(),t=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Date.now(),t=i.xM.getItem(a);if(function(e,t){if(!e||"object"!=typeof e)return!1;let r=e.utmTouchTime;return s(e.utmSource)&&s(e.utmMedium)&&s(e.utmCampaign)&&(void 0===e.utmC
1ontent||s(e.utmContent))&&"number"==typeof r&&Number.isFinite(r)&&r>0&&r<=t&&t-r<=7776e6}(t,e))return{utmSource:t.utmSource,utmMedium:t.utmMedium,utmCampaign:t.utmCampaign,...t.utmContent?{utmContent:t.utmContent}:{},utmTouchTime:t.utmTouchTime};i.xM.removeItem(a)}(e);if(t)return{utmSource:t.utmSource,utmMedium:t.utmMedium,utmCampaign:t.utmCampaign,...t.utmContent?{utmContent:t.utmContent}:{}}}},88503:(e,t,r)=>{r.d(t,{u:()=>a});var i=r(85028);function a(e,t){return(0,i.trackBusinessOperation)({domain:"wallet",operation:e,execute:t})}},94180:(e,t,r)=>{r.d(t,{default:()=>C});var i=r(59786),a=r(76543),n=r(53),l=r(34875),s=r(13647),o=r(47582),c=r(31508);async function d(e){if(!(0,s.bf)())try{await (0,o.Fu)({locale:e,params:{type:"config"}})}catch(e){if((0,c.d)(e)){var t;(null==e||null==(t=e.data)?void 0:t.code)!==1405||window.location.href.includes("/denied")||window.location.replace("/denied")}}}var u=r(69534);let p="fingerprint",h=null;var m=r(18897),f=r(46411),g=r(65810);let b=async()=>{window.dataLayer=window.dataLayer||[],window.gtag=function(){for(var e,t=arguments.length,r=Array(t),i=0;i<t;i++)r[i]=arguments[i];null==(e=window.dataLayer)||e.push(r)},window.gtag("js",new Date),window.gtag("config","G-1PDG4WWK34"),await (0,g.Z)({id:"tapbit-gtag-loader",src:"https://www.googletagmanager.com/gtag/js?id=G-1PDG4WWK34"})};var x=r(78425),v=r(34381),w=r(53117),y=r(62300),_=r(51025),k=r(60189),N=r(73404),T=r(15698),j=r(77222),S=r(38113);function C(e){let{locale:t,allowIframe:o}=e,c=(0,m.Je)(e=>e.updateLang),g=(0,_.k)(e=>e.completeUserInit),C=(0,_.k)(e=>e.refreshUser),I=(0,_.k)(e=>{var t;return null==(t=e.user)?void 0:t.userId}),D=(0,w.Y3)(e=>e.loadGrayFlags),R=(0,w.Y3)(e=>e.countryCode),W=(0,N.t)(e=>e.fetchVaspInfo),P=(0,v.cn)(e=>e.fetchCurrencyRates),{koreanWhite:A,accessReady:M}=(0,y.Ft)(),H=(0,j.useParams)(),L=(0,j.usePathname)(),E=(0,S.useMemo)(()=>(0,n.D)(L,H),[L,H]),z=(0,S.useRef)(E),F=(0,S.useRef)((0,n.f)(document.referrer,window.location.origin)),U=z.current===E?F.current:z.current,q=(0,S.useMemo)(()=>(0,i.ox)({route:E,referPageRoute:U,locale:t}),[t,U,E]),B=(0,S.useRef)(Date.now()),V=(0,S.useRef)(null),O=(0,S.useRef)(!1),Y=(0,S.useRef)(!1);return(0,S.useEffect)(()=>{let e=(0,s.bf)(),i="ko"===t&&!e&&!M,a="ko"===t&&M&&!A&&!e;if(i)return;if(a){Y.current=!0,null!==V.current&&(window.clearTimeout(V.current),V.current=null),window.location.href=window.location.href.replace("/ko","/en");return}if(Y.current||O.current)return;let n=()=>{var i,a;V.current=null,Y.current||O.current||(O.current=!0,(0,l.KU)(),function(){if(u.Ay.getItem(p))return Promise.resolve();if(!h)try{let e=new Promise(e=>{setTimeout(e,200)}),t=r.e(9920).then(r.bind(r,63901)).then(e=>{let{load:t}=e;return t()}).then(e=>e.get()).then(e=>{var t;u.Ay.setItem(p,null!=(t=null==e?void 0:e.visitorId)?t:"")}).catch(e=>{console.error("initFingerprint error",e)});h=Promise.race([t,e])}catch(e){return console.error("initFingerprint error",e),Promise.resolve()}}(),f.slsTracker.setup({route:E,locale:t,country:w.Y3.getState().countryCode,userId:"".concat(null!=(a=null==(i=_.k.getState().user)?void 0:i.userId)?a:0),uuid:(0,k.G)()}),b(),d(t),"serviceWorker"in navigator&&"https:"===window.location.protocol&&navigator.serviceWorker.register("/sw.js").catch(e=>{let t=e instanceof Error?e.message:String(e);T.wd(t,{level:"warning",fingerprint:["service-worker-register-error"],tags:{module:"global-config"}})}),o||(0,x.G)(),e||P())},c=Math.max(200-(Date.now()-B.current),0);return 0===c?void n():(V.current=window.setTimeout(n,c),()=>{null!==V.current&&(window.clearTimeout(V.current),V.current=null)})},[M,o,P,A,t,E]),(0,S.useLayoutEffect)(()=>{(0,i.WT)(q)},[q]),(0,S.useEffect)(()=>{(0,a.qR)(document.referrer)},[]),(0,S.useEffect)(()=>{z.current!==E&&(F.current=z.current,z.current=E)},[E]),(0,S.useEffect)(()=>{c(t);let e=(0,s.bf)(),r=e?null:u.Ay.getItem("user");e||g(r),(0,k.G)(),D(),(null==r?void 0:r.userId)&&T.gV({id:String(r.userId)}),(null==r?void 0:r.userId)&&!e&&C(),e||W()},[g,W,D,t,C,c]),(0,S.useEffect)(()=>{(0,v.Zu)(A)},[A]),(0,S.useEffect)(()=>{f.slsTracker.updateTags({route:E,locale:t,country:R,userId:"".concat(null!=I?I:0)})},[E,t,R,I]),null}},97120:(e,t,r)=>{r.d(t,{default:()=>d});var i=r(78712),a=r(13647),n=r(51025),l=r(15698),s=r(38113);let o=[1e3,3e3],c=null;function d(){let e=(0,n.k)(e=>e.completeUserInit);return(0,s.useEffect)(()=>{let t;if(!(0,a.bf)())return;let r=!1,n=0,s=null,d=async(t,a)=>{try{var c;await (0,i.bE)();let a=null!=(c=await (0,i.px)("user.getUser"))?c:{};if(r||t!==n)return;(t=>{if((null==t?void 0:t.userId)&&t.token){e(t),l.gV({id:String(t.userId)});return}l.gV(null),e(null)})(a)}catch(c){if(r||t!==n)return;let i=o[a];if("number"!=typeof i){console.error("sync app user retry exhausted"),l.gV(null),e(null);return}s=window.setTimeout(()=>{s=null,d(t,a+1)},i)}},u=()=>{n+=1,null!==s&&(window.clearTimeout(s),s=null),d(n,0)};return u(),c=u,(0,i.bE)().then(()=>{r||(t=(0,i.MN)("appCallBack",()=>{null==c||c()}))}).catch(()=>{console.error("register appCallBack error")}),()=>{r=!0,c===u&&(c=null),null==t||t(),null!==s&&(window.clearTimeout(s),s=null)}},[e]),null}},98273:(e,t,r)=>{r.d(t,{Sv:()=>l,c1:()=>s,hx:()=>o,z1:()=>c,F2:()=>d,KP:()=>u,YY:()=>p,HW:()=>h,do:()=>m,Nl:()=>f,$q:()=>g,$U:()=>b,dt:()=>x,TJ:()=>v,TC:()=>w,wW:()=>y,G9:()=>_,g4:()=>k,BS:()=>N,hX:()=>T,Wt:()=>j,OR:()=>S,UH:()=>C,C$:()=>I,R7:()=>D,yA:()=>R,qR:()=>W,oS:()=>A,VC:()=>P,zH:()=>M,Md:()=>H,Ow:()=>L,mX:()=>E,qA:()=>z});var i=r(79237),a=r(81742);function n(e,t){return function(r){var n;let{className:l}=r,{theme:s}=(0,a.W)();return(0,i.jsx)("img",{"aria-hidden":"true",alt:"",className:l,height:24,src:"string"==typeof(n="dark"===s?t:e)?n:n.src,width:24})}}let l=n({src:"/_next_app/price/0.1.227/_next/static/media/address-book-light.81b03475.svg",height:24,width:24,blurWidth:0,blurHeight:0},{src:"/_next_app/price/0.1.227/_next/static/media/address-book-dark.bbf0e835.svg",height:24,width:24,blurWidth:0,blurHeight:0}),s=n({src:"/_next_app/price/0.1.227/_next/static/media/affiliate-program-light.bb85077b.svg",height:24,width:24,blurWidth:0,blurHeight:0},{src:"/_next_app/price/0.1.227/_next/static/media/affiliate-program-dark.3c68dc67.svg",height:24,width:24,blurWidth:0,blurHeight:0}),o=n({src:"/_next_app/price/0.1.227/_next/static/media/api-light.839fa554.svg",height:24,width:24,blurWidth:0,blurHeight:0},{src:"/_next_app/price/0.1.227/_next/static/media/api-dark.7e22e79f.svg",height:24,width:24,blurWidth:0,blurHeight:0});n({src:"/_next_app/price/0.1.227/_next/static/media/buy-crypto-light.c7abd206.svg",height:24,width:24,blurWidth:0,blurHeight:0},{src:"/_next_app/price/0.1.227/_next/static/media/buy-crypto-dark.5d80bd8f.svg",height:24,width:24,blurWidth:0,blurHeight:0});let c=n({src:"/_next_app/price/0.1.227/_next/static/media/copy-trade-message-light.53203aae.svg",height:24,width:24,blurWidth:0,blurHeight:0},{src:"/_next_app/price/0.1.227/_next/static/media/copy-trade-message-dark.74dc5ed8.svg",height:24,width:24,blurWidth:0,blurHeight:0}),d=n({src:"/_next_app/price/0.1.227/_next/static/media/copy-trading-light.74
16b0942.svg",height:24,width:24,blurWidth:0,blurHeight:0},{src:"/_next_app/price/0.1.227/_next/static/media/copy-trading-dark.63761301.svg",height:24,width:24,blurWidth:0,blurHeight:0}),u=n({src:"/_next_app/price/0.1.227/_next/static/media/coupon-center-light.267be0d1.svg",height:24,width:24,blurWidth:0,blurHeight:0},{src:"/_next_app/price/0.1.227/_next/static/media/coupon-center-dark.d77006c4.svg",height:24,width:24,blurWidth:0,blurHeight:0}),p=n({src:"/_next_app/price/0.1.227/_next/static/media/deposits-light.fd6e59e3.svg",height:24,width:24,blurWidth:0,blurHeight:0},{src:"/_next_app/price/0.1.227/_next/static/media/deposits-dark.f8ddbfdc.svg",height:24,width:24,blurWidth:0,blurHeight:0}),h=n({src:"/_next_app/price/0.1.227/_next/static/media/earn-light.7a7e8fa3.svg",height:24,width:24,blurWidth:0,blurHeight:0},{src:"/_next_app/price/0.1.227/_next/static/media/earn-dark.76434290.svg",height:24,width:24,blurWidth:0,blurHeight:0}),m=n({src:"/_next_app/price/0.1.227/_next/static/media/earn-history-light.98ec4297.svg",height:24,width:24,blurWidth:0,blurHeight:0},{src:"/_next_app/price/0.1.227/_next/static/media/earn-history-dark.a94e896e.svg",height:24,width:24,blurWidth:0,blurHeight:0}),f=n({src:"/_next_app/price/0.1.227/_next/static/media/fiat-history-light.791b1e5d.svg",height:24,width:24,blurWidth:0,blurHeight:0},{src:"/_next_app/price/0.1.227/_next/static/media/fiat-history-dark.36d147e4.svg",height:24,width:24,blurWidth:0,blurHeight:0}),g=n({src:"/_next_app/price/0.1.227/_next/static/media/guide-light.f470c79c.svg",height:24,width:24,blurWidth:0,blurHeight:0},{src:"/_next_app/price/0.1.227/_next/static/media/guide-dark.b461db8c.svg",height:24,width:24,blurWidth:0,blurHeight:0}),b=n({src:"/_next_app/price/0.1.227/_next/static/media/history-light.8527f68c.svg",height:24,width:24,blurWidth:0,blurHeight:0},{src:"/_next_app/price/0.1.227/_next/static/media/history-dark.9954cc77.svg",height:24,width:24,blurWidth:0,blurHeight:0}),x=n({src:"/_next_app/price/0.1.227/_next/static/media/id-verification-light.ebc52b79.svg",height:24,width:24,blurWidth:0,blurHeight:0},{src:"/_next_app/price/0.1.227/_next/static/media/id-verification-dark.00243a87.svg",height:24,width:24,blurWidth:0,blurHeight:0}),v=n({src:"/_next_app/price/0.1.227/_next/static/media/invite-friends-light.396cd6bc.svg",height:24,width:24,blurWidth:0,blurHeight:0},{src:"/_next_app/price/0.1.227/_next/static/media/invite-friends-dark.2202c531.svg",height:24,width:24,blurWidth:0,blurHeight:0});n({src:"/_next_app/price/0.1.227/_next/static/media/learn-light.ac2ea4fa.svg",height:24,width:24,blurWidth:0,blurHeight:0},{src:"/_next_app/price/0.1.227/_next/static/media/learn-dark.9456719f.svg",height:24,width:24,blurWidth:0,blurHeight:0});let w=n({src:"/_next_app/price/0.1.227/_next/static/media/log-out-light.af9eb05a.svg",height:24,width:24,blurWidth:0,blurHeight:0},{src:"/_next_app/price/0.1.227/_next/static/media/log-out-dark.369cffbb.svg",height:24,width:24,blurWidth:0,blurHeight:0}),y=n({src:"/_next_app/price/0.1.227/_next/static/media/my-message-light.d841ec81.svg",height:24,width:24,blurWidth:0,blurHeight:0},{src:"/_next_app/price/0.1.227/_next/static/media/my-message-dark.b18137da.svg",height:24,width:24,blurWidth:0,blurHeight:0}),_=n({src:"/_next_app/price/0.1.227/_next/static/media/notification-setting-light.d59352f1.svg",height:24,width:24,blurWidth:0,blurHeight:0},{src:"/_next_app/price/0.1.227/_next/static/media/notification-setting-dark.dadea555.svg",height:24,width:24,blurWidth:0,blurHeight:0}),k=n({src:"/_next_app/price/0.1.227/_next/static/media/overview-light.90cde4ac.svg",height:24,width:24,blurWidth:0,blurHeight:0},{src:"/_next_app/price/0.1.227/_next/static/media/overview-dark.bf7d4643.svg",height:24,width:24,blurWidth:0,blurHeight:0}),N=n({src:"/_next_app/price/0.1.227/_next/static/media/perp-orders-light.2bbfd976.svg",height:24,width:24,blurWidth:0,blurHeight:0},{src:"/_next_app/price/0.1.227/_next/static/media/perp-orders-dark.10dc3f59.svg",height:24,width:24,blurWidth:0,blurHeight:0}),T=n({src:"/_next_app/price/0.1.227/_next/static/media/position-tiers-light.236a726d.svg",height:24,width:24,blurWidth:0,blurHeight:0},{src:"/_next_app/price/0.1.227/_next/static/media/position-tiers-dark.8c574bbe.svg",height:24,width:24,blurWidth:0,blurHeight:0}),j=n({src:"/_next_app/price/0.1.227/_next/static/media/proof-of-identity-light.f1e59f2e.svg",height:24,width:24,blurWidth:0,blurHeight:0},{src:"/_next_app/price/0.1.227/_next/static/media/proof-of-identity-dark.5e7c7aaa.svg",height:24,width:24,blurWidth:0,blurHeight:0});n({src:"/_next_app/price/0.1.227/_next/static/media/proof-of-reserves-light.8af0a5d0.svg",height:24,width:24,blurWidth:0,blurHeight:0},{src:"/_next_app/price/0.1.227/_next/static/media/proof-of-reserves-dark.66bc96c2.svg",height:24,width:24,blurWidth:0,blurHeight:0});let S=n({src:"/_next_app/price/0.1.227/_next/static/media/security-center-light.d1b32a47.svg",height:24,width:24,blurWidth:0,blurHeight:0},{src:"/_next_app/price/0.1.227/_next/static/media/security-center-dark.185d9bb2.svg",height:24,width:24,blurWidth:0,blurHeight:0}),C=n({src:"/_next_app/price/0.1.227/_next/static/media/spot-orders-light.d34bb054.svg",height:24,width:24,blurWidth:0,blurHeight:0},{src:"/_next_app/price/0.1.227/_next/static/media/spot-orders-dark.cd63afe4.svg",height:24,width:24,blurWidth:0,blurHeight:0}),I=n({src:"/_next_app/price/0.1.227/_next/static/media/spots-light.27eeb2c5.svg",height:24,width:24,blurWidth:0,blurHeight:0},{src:"/_next_app/price/0.1.227/_next/static/media/spots-dark.e9343985.svg",height:24,width:24,blurWidth:0,blurHeight:0}),D=n({src:"/_next_app/price/0.1.227/_next/static/media/system-notification-light.54aa5528.svg",height:24,width:24,blurWidth:0,blurHeight:0},{src:"/_next_app/price/0.1.227/_next/static/media/system-notification-dark.9a807bec.svg",height:24,width:24,blurWidth:0,blurHeight:0}),R=n({src:"/_next_app/price/0.1.227/_next/static/media/trading-fees-vol-light.5bedd806.svg",height:24,width:24,blurWidth:0,blurHeight:0},{src:"/_next_app/price/0.1.227/_next/static/media/trading-fees-vol-dark.56c90268.svg",height:24,width:24,blurWidth:0,blurHeight:0}),W=n({src:"/_next_app/price/0.1.227/_next/static/media/transfer-light.675799f7.svg",height:24,width:24,blurWidth:0,blurHeight:0},{src:"/_next_app/price/0.1.227/_next/static/media/transfer-dark.d72ceacf.svg",height:24,width:24,blurWidth:0,blurHeight:0}),P=n({src:"/_next_app/price/0.1.227/_next/static/media/usdt-perpetual-light.6249770b.svg",height:24,width:24,blurWidth:0,blurHeight:0},{src:"/_next_app/price/0.1.227/_next/static/media/usdt-perpetual-dark.5dbb063a.svg",height:24,width:24,blurWidth:0,blurHeight:0}),A=n({src:"/_next_app/price/0.1.227/_next/static/media/usdt-perpetual-demo-light.9a2f7910.svg",height:24,width:24,blurWidth:0,blurHeight:0},{src:"/_next_app/price/0.1.227/_next/static/media/usdt-perpetual-demo-dark.fb2e4621.svg",height:24,width:24,blurWidth:0,blurHeight:0}),M=n({src:"/_next_app/price/0.1.227/_next/static/media/vip-event-center-light.9d3ab4ef.svg",height:24,width:24,blurWidth:0,blurHeight:0},{src:"/_next_app/price/0.1.227/_next/static/media/vip-event-center-dark.4b520435.svg",height:24,width:24,blurWidth:0,blurHeight:0}),H=n({src:"/_next_app/price/0.1.227/_next/static/media/vip-points-store-light.fcc400f9.svg",height:24,width:24,blurWidth:0,blurHeight:0},{src:"/_next_app/price/0.1.227/_next/static/media/vip-points-store-dark.4593bbdc.svg",height:24,width:24,blurWidth:0,blurHeight:0}),L=n({src:"/_next_app/price/0.1.227/_next/static/media/vip-program-light.6c6d86f0.svg",height:24,width:24,blurWidth:0,blurHeight:0},{src:"/_next_app/price/0.1.227/_next/static/media/vip-program-dark.4cfcee39.svg",height:24,width:24,blurWidth:0,blurHeight:0}),E=n({src:"/_next_app/price/0.1.227/_next/static/media/welcome-bonus-light.863330b9.svg",height:24,width:24,blurWidth:0,blurHeight:0},{src:"/_next_app/price/0.1.227/_next/static/media/welcome-bonus-dark.f97c8487.svg",height:24,width:24,blurWidth:0,blurHeight:0}),z=n({src:"/_next_app/price/0.1.227/_next/static/media/withdraws-light.0759b8c9.svg",height:24,width:24,blurWidth:0,blurHeight:0},{src:"/_next_app/price/0.1.227/_next/static/media/withdraws-dark.c548b1c4.svg",height:24,width:24,blurWidth:0,blurHeight:0})},98705:(e,t,r)=>{r.d(t,{Sm:()=>i,mH:()=>a});let i="h-[calc(59px+env(safe-area-inset-bottom,0px))]",a="h-[59px]"}}]);
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.