Files
to_session/text/3.65.22_0/scripts/ui/chunk-FVJO2JSC.js
Administrator a0720d80dc fefdwef
2025-11-12 12:54:37 +08:00

8 lines
19 KiB
JavaScript

import{b as Yt,e as ee,f as re,g as se,h as oe,i as ne,j as g}from"./chunk-NWVG2MAV.js";import{a as I}from"./chunk-X2NMQEET.js";import{b as Jt}from"./chunk-6FDARXB6.js";import{b as $t,c as Qt,d as Zt}from"./chunk-JWQKG6DL.js";import{c as L}from"./chunk-UJIS6BFS.js";import{c as Xt,h as Gt,i as jt,j as zt,l as O,n as b,o as G}from"./chunk-GRAP3YP7.js";import{a as te}from"./chunk-46YG4TCM.js";import{a as qt}from"./chunk-WYIQIGDJ.js";import{b as tt}from"./chunk-XC6ELVTG.js";import{a as N,e as Ft,u as B}from"./chunk-TVUCEIYF.js";import{$b as Q,A as It,Ac as vt,Bc as wt,Cc as Z,Dc as kt,Ec as Pt,Fb as $,Fc as Ut,Gc as Bt,Hb as _t,Ia as S,L as J,Lc as Ht,Mb as u,Ob as bt,R as U,Tb as Lt,Wb as Rt,Yb as yt,ac as Nt,fd as Kt,ga as Ct,ha as E,ia as x,lc as xt,ld as Vt,mc as Ot,nc as Dt,oc as Mt,sb as _,zc as Wt}from"./chunk-MYNBMTR4.js";import{E as At,G as St,a as Tt,c as P,ca as T,d as ht,i as ft,k as y,n as Et,r as gt}from"./chunk-TQQZZJXW.js";import{a as Le}from"./chunk-RL2JAB2F.js";import{D as pt,j as C,la as k,ra as V}from"./chunk-GSIHKWLV.js";import{b as X}from"./chunk-BF2V36QE.js";import{f as w,h as r,n as process,o as n,q as a}from"./chunk-QTLWQ5AJ.js";n();a();n();a();n();a();n();a();var ae=w(X());function Re({children:o,...t}){return ae.default.createElement(At,{fetchConfig:Vt.fetchConfig,...t},o)}n();a();n();a();V();n();a();var Y=[_.BTC_MAINNET,_.TON_MAINNET];n();a();var ie=(o,t)=>{let e=o.split(".").map(Number),s=t.split(".").map(Number),i=Math.max(e.length,s.length);for(let c=0;c<i;c++){let d=e[c]||0,m=s[c]||0;if(d>m)return 1;if(d<m)return-1}return 0};var H=class{constructor(){r(this,"commonStore",null);r(this,"userForbiddenWithBridge",J);r(this,"setUserForbiddenBridge",t=>{this.userForbiddenWithBridge=t});r(this,"defaultWalletConfig",_t);r(this,"walletConfig",this.defaultWalletConfig);r(this,"hasInitWalletInfo",!1);r(this,"chainId",I);r(this,"setChainId",t=>{this.chainId=t});r(this,"fromChainId",I);r(this,"setFromChainId",t=>{this.fromChainId=t});r(this,"addressType","");r(this,"setAddressType",t=>{this.addressType=t});r(this,"walletSupportMev",!1);r(this,"setWalletSupportMev",t=>{this.walletSupportMev=t});r(this,"checkOkxVersion",async()=>{let t="2.82.31",e=this.walletConfig.isOkxWallet;if(this.isConnectedWallet&&e&&window?.okxwallet?.getVersion){let s=await window.okxwallet.getVersion(),c=ie(s,t)>=0;this.setWalletSupportMev(c)}else this.setWalletSupportMev(!1)});r(this,"signWalletChainId",_.ETHEREUM_MAINNET)}getDeviceId(){}getChainId(){}get scanAppType(){throw new Error("scanAppType is not defined")}get walletType(){throw new Error("walletType is not defined")}get address(){return I}get computedForbiddenBridge(){let{computedIsCrossChain:t}=C(this.rootStore,"fromToStore",{});return t?this.userForbiddenWithBridge:J}get computedAccountId(){let{walletConfig:t}=this;return t.walletId}setWalletConfig(t={}){this.walletConfig=t}getAddressByChainId(){}get isConnectedWallet(){return!!this.walletConfig.walletId}get computedNonsupportChain(){return!this.isConnectedWallet||!B(this.fromChainId)?!1:!this.address}get computedAccountWalletAddresses(){return k(C(this,"walletConfig.address",[])).join(",")||this.address}get computedAccountWalletAddressesArray(){return k(C(this,"walletConfig.address",[]))||[this.address]}get computedMultiAddresses(){let t=[],e=[];return Y.forEach(s=>{let i=this.getAddressByChainId(s);i&&(t.push(s),e.push(i))}),{targetChainId:t.join(),targetWalletAddress:e.join()}}setSignWalletChainId(t){this.signWalletChainId=t}get computedSignWalletAddress(){let t=this.computedAccountWalletAddressesArray;return t?.length===1?t[0]:this.getAddressByChainId(this.signWalletChainId)}cleanWalletConfig(){this.walletConfig=this.defaultWalletConfig,this.hasInitWalletInfo=!1}};n();a();n();a();function K(o=[],t=[]){let e={};o.forEach(i=>{e[i]=P});let s={};return t.forEach(i=>{s[i]=ht}),{...e,...s}}var ce=K(["walletConfig","chainId","hasInitWalletInfo","fromChainId","addressType"],["computedAccountId","isConnectedWallet","computedNonsupportChain","computedAccountWalletAddresses","computedAccountWalletAddressesArray","address","computedMultiAddresses"]);var et=class extends H{constructor(e){super();r(this,"formatWalletType",()=>{let{walletInfo:e}=T,{isHARDWARE:s,isMNEMONIC:i,isMPC:c,isPRIVATE:d}=e?.walletType||{};return s?U.HARDWARE:i?U.MNEMONIC:c?U.MPC:d?U.PRIVATE_KEY:null});r(this,"formatWalletAccount",e=>{let s=Object.values(e.account);return{...e,OKXWalletType:this.formatWalletType(),address:s}});r(this,"keyringIdentityTypeEnum",{});r(this,"walletList",[]);r(this,"addressBookList",[]);r(this,"hasInitWalletInfo",!1);r(this,"getAddressByChainId",e=>{if(!B(e))return I;let s=this.getWalletChainName(e);return this.walletConfig.account?.[s]||I});this.rootStore=e,this.commonStore=e.commonStore,y(this,ce)}async getDeviceId(){let{devid:e}=await T.localStore.get("devid");return e}getCurrentChainAddress(e){let s=this.rootStore?.fromToStore.from.chainId;if(!B(s))return I;let i=this.getWalletChainName(s);return e.account[i]}getWalletChainName(e){return T.getNetWorkName(e)}replaceAddressByType(e){if(this.addressType){let s={};return Y.forEach(i=>{let c=this.getWalletChainName(i);if(e.account?.[c]){let m=e.accountsMap?.[c]?.[this.addressType]?.address;m&&(s[c]=m)}}),{...e,account:{...e.account,...s}}}return e}setWalletConfig(e){this.walletConfig=this.formatWalletAccount(this.replaceAddressByType(e)),this.hasInitWalletInfo=!0}webSwapHistoryDetailViewMore(){}setAddressBookList(e){this.addressBookList=e}setWalletList(e){this.walletList=e.map(s=>s.walletId===this.computedAccountId?this.replaceAddressByType(s):s)}setKeyringIdentityTypeEnum(e){this.keyringIdentityTypeEnum=e}get address(){return this.getAddressByChainId(this.fromChainId)}},Wr=et;n();a();n();a();var st=w(X());V();n();a();var Br={FROM:"FROM",TO:"TO"},Hr={COMMON:"COMMON",COLLECTION:"COLLECTION"},A={COLLECT_LIST:"COLLECT_LIST",ALL_NETWORK:"ALL_NETWORK",CHAIN_LIST:"CHAIN_LIST",SEARCH:"SEARCH",ALL_TOKENS:"ALL_TOKENS",HISTORY_LIST:"HISTORY_LIST"},ye={[A.COLLECT_LIST]:{[u.SWAP]:Z,[u.LIMIT_ORDER]:Z,[u.BRIDGE]:kt},[A.ALL_NETWORK]:{[u.SWAP]:vt,[u.LIMIT_ORDER]:Wt,[u.BRIDGE]:wt},[A.SEARCH]:{[u.SWAP]:Ut,[u.LIMIT_ORDER]:Pt,[u.BRIDGE]:Bt},[A.CHAIN_LIST]:{[u.SWAP]:Ot,[u.LIMIT_ORDER]:Mt,[u.BRIDGE]:Dt},[A.ALL_TOKENS]:{[u.SWAP]:Q,[u.LIMIT_ORDER]:Q,[u.BRIDGE]:Nt},[A.HISTORY_LIST]:{[u.SWAP]:Lt,[u.LIMIT_ORDER]:Rt,[u.BRIDGE]:yt}},rt=(o,t)=>ye[o]?.[t]??"";var F=class{constructor(t){r(this,"watchTopDomRef",(0,st.createRef)());r(this,"watchBottomDomRef",(0,st.createRef)());r(this,"rootStore",null);r(this,"userUniqueId",Xt.initUniqueId());r(this,"chainListFreshCount",0);r(this,"chainList",[]);r(this,"setChainList",t=>{this.chainList=t,this.chainListFreshCount+=1});r(this,"transactionLoading",!1);r(this,"setTransactionLoading",t=>{this.transactionLoading=t});r(this,"nowCurrencyUnit",{});r(this,"tokenModalVisible",!1);r(this,"safemoonSlippage",0);r(this,"getChainListUrl",({isHistory:t,currentTab:e})=>{let s=rt(A.CHAIN_LIST,this.currentTab||e);return t&&(s=rt(A.CHAIN_LIST,e||this.currentTab)),s});r(this,"fetchChainList",async({businessLine:t=1,isLimit:e=!1,isHistory:s=!1,currentTab:i,chainIdConfig:c={}})=>{if(Et())return[];let d=this.getChainListUrl({isHistory:s,isLimit:e,currentTab:i}),m=await L.get(d,{params:{businessLine:e?bt.LIMIT_ORDER:t,...c}});return!s&&this.setChainList(m?.data),this.setCurrentTabChainList({[i||this.currentTab]:m?.data}),m?.data});r(this,"currentTabChainList",{});r(this,"setCurrentTabChainList",t=>{this.currentTabChainList={...this.currentTabChainList,...t}});r(this,"getTradeType",()=>this.rootStore?.fromToStore?.computedIsCrossChain?$.MULTI:$.SINGLE);r(this,"globalMessages",null);r(this,"setGlobalMessage",t=>{this.globalMessages=t});r(this,"cleanGlobalMessage",()=>{this.globalMessages=null});r(this,"socketStatus",!1);r(this,"balancePushSocketStatus",!1);r(this,"resetFromToByTabChange",!1);r(this,"setResetFromToByTabChange",t=>{this.resetFromToByTabChange=t});r(this,"portal",E.DEX);r(this,"setPortal",t=>{this.portal=t});r(this,"currencyConversion",t=>{let{usdToThisRate:e}=this.nowCurrencyUnit,s=N.BigNumber(t);return!e||s.isNaN()?"":s.multipliedBy(e)});r(this,"currencyReConversion",t=>{let{usdToThisRate:e}=this.nowCurrencyUnit,s=N.BigNumber(t);return!e||s.isNaN()?"":s.dividedBy(e).toString()});r(this,"isSensitiveChain",t=>this.computedSensitiveChainIds.some(e=>String(e)===String(t)));r(this,"getTokenAddress",t=>$t(t,this.isSensitiveChain(t?.chainId)));r(this,"equalsChainId",(t,e)=>Qt(t,e));r(this,"equalsToken",(t,e)=>{let s=this.isSensitiveChain(t?.chainId);return Zt(t,e,s)});r(this,"fromFillToken",!1);r(this,"currentTab","");r(this,"setCurrentTab",(t,e)=>{this.currentTab!==t&&(this.setResetFromToByTabChange(!0),this.rootStore?.fromToStore?.clearFromTo()),this.currentTab=t,this.fromFillToken=!!e});r(this,"forceUpdateFromToByHash",0);r(this,"forceUpdateFromTo",()=>{this.forceUpdateFromToByHash+=1});r(this,"isFirstInit",!0);r(this,"visibleAddFunds",!1);r(this,"setAddFundsVisible",t=>{this.visibleAddFunds=t});r(this,"currencyConversionWithSymbol",(t,e={})=>{let s=this.currencyConversion(t).toString(),i=this.computedNowCurrencySymbol;return Ft(s,i,e)});r(this,"disclaimerVisible",Yt());r(this,"setDisclaimerVisible",t=>{this.disclaimerVisible=t});this.rootStore=t,Jt&&this.setPortal(E.LEDGER)}setChainType(){}get computedReserveGas(){let{chainList:t}=this,e=C(this.rootStore,"fromToStore.from.chainId");return t.find(i=>Number(i.chainId)===Number(e))?.reserveGas||""}getChainByID(t){return this.chainList.find(e=>(this.computedCurrentTabIsLimit||e.chainUsed)&&e.chainId===Number(t))}getUserUnit(){}get computedRealSlippageValue(){return C(this,"rootStore.slippageStore",{}).computedRealSlippageValue||0}setSocketStatus(t){this.socketStatus=t}setBalanceSocketStatus(t){this.balancePushSocketStatus=t}get computedIsWalletEnv(){return this.portal===E.OKX_WALLET_EXTENSION}get computedIsWalletDashBoard(){return this.portal===E.WALLET_DASHBOARD}get computedIsMarket(){return this.portal===E.MARKET}get computedNotThirdBiz(){return this.portal===E.OKX_WALLET_EXTENSION||this.portal===E.DEX||this.portal===E.MARKET}get computedNowCurrencySymbol(){return this.nowCurrencyUnit.symbol||""}get computedSensitiveChainIds(){return this.chainList.map(t=>Number(t.isSensitive)===It.YES?t.chainId:null).filter(Boolean)}get computedCurrentTabIsLimit(){return this.currentTab===u.LIMIT_ORDER}get computedIsUrlFillSwap(){return this.computedIsWalletDashBoard||this.computedIsWalletEnv}setIsFirstInit(t){this.isFirstInit=t}};n();a();var le=K(["userUniqueId","chainList","transactionLoading","nowCurrencyUnit","tokenModalVisible","safemoonSlippage","globalMessages","socketStatus","balancePushSocketStatus","portal","currentTab","currentTabChainList","forceUpdateFromToByHash","isFirstInit","visibleAddFunds","disclaimerVisible"],["computedReserveGas","computedNowCurrencySymbol","computedSensitiveChainIds","computedIsWalletEnv","computedCurrentTabIsLimit"]);var ot=class extends F{constructor(e){super(e);r(this,"swapCollapse",!1);r(this,"setSwapCollapse",e=>{this.swapCollapse=e});r(this,"chainListLoadError",!1);r(this,"setChainListLoadError",e=>{this.chainListLoadError=e});y(this,{...le,swapCollapse:P,chainListLoadError:P}),this.setPortal(Ct)}getUserUnit(e){this.nowCurrencyUnit=e}};n();a();n();a();var nt=async(...o)=>T.global?.signAndSubmitTransaction(...o);var de=(o,t)=>T.global.signTypedDataV4(t,o),As=(o,t)=>{let{calldataParams:e}=o;return Promise.all(t.map(s=>T.global.signSolanaCommonTransaction({fromAddress:e.userWalletAddress,instanceType:s.payload.version,serializedMessage:s.inputData,needToReplaceRecentBlockhash:!1})))};n();a();var at=class{constructor(t){r(this,"updateTxHash",t=>(b.info(O.UPDATE_HASH,{...t,tags:{orderId:t.orderId,status:t?.status||1}}),L.post(xt,t).catch(e=>{b.info(O.UPDATE_HASH_ERROR,{...t,error:e,tags:{orderId:t.orderId}})})));r(this,"cancelOrder",t=>(b.info(O.CANCEL_ORDER,{tags:{orderId:t}}),L.get(Ht,{params:{id:t}})));r(this,"cancelLimitOrder",()=>{});this.rootStore=t}},me=at;var it=class extends me{constructor(){super(...arguments);r(this,"sendTransaction",async(...e)=>nt(...e));r(this,"sendTransactionEnhance",async(...e)=>nt(...e));r(this,"signTransaction",async(e,s)=>{let[i,c]=await St(de(s,e));return[i,c]})}},Ws=it;n();a();var z=w(X());n();a();var j=w(Le());async function Ne(o,t){let{devid:e}=await o.get("devid");return(s,i)=>{j.setDeviceId(e);let c=j.newInstance({site:"okex",product:s});return c.setApiEndpoint(`${t}/amplitude`),c.setCommonParams(G()),i(c),c}}async function ct(o,t){(await Ne(o,t))("web3_trade",te)}var xe=()=>{let[o,t]=(0,z.useState)(!1);return(0,z.useEffect)(()=>{let{getApiHostname:e}=T.global;ct(T.localStore,e()).then(()=>t(!0)).catch(()=>{})},[]),{initialized:o}},Gs=xe;n();a();var ue=Symbol(),pe=Object.prototype,Oe=(o,t,e)=>{if(ft(o))throw new Error("Target must not be observable");let s=o[ue];if(s){let i={};for(let c in o)s[c]&&(i[c]=s[c]);s=i}else{s={};let i=o;for(;i&&i!==pe;)Reflect.ownKeys(i).forEach(d=>{d===Tt||d==="constructor"||(s[d]=t&&d in t?t[d]:!0)}),i=Object.getPrototypeOf(i);let c=Object.getPrototypeOf(o);c&&c!==pe&&Object.defineProperty(c,ue,{value:s})}return y(o,s,e)},Qs=Oe;n();a();n();a();var Te=async()=>await import("./index.browser.esm-2CINXYGS.js"),q=async()=>{let{default:o}=await import("./bs58-XRPXB6CH.js");return o};n();a();var he=async o=>{let t=await Te(),e=await q(),s,i;try{s=t.Transaction.from(e.decode(o)),i="transaction"}catch{s=t.VersionedTransaction.deserialize(e.decode(o)),i="versionedTransaction"}return{transaction:s,version:i}};var De=o=>{if(!o)return"0";let{BigNumber:t}=N,e=new t("365.25").div(2).multipliedBy(2);return new t("19.055441478439427").multipliedBy(o).multipliedBy(e).div(10**9).toFixed(9)},fe=async o=>{let{data:t,accountLength:e,bizType:s,bizId:i,from:c,to:d}=o,{transaction:m,version:f}=await he(t),p=De(e);return{payload:{bizType:s,bizId:i,transaction:m,version:f},inputData:t,from:c,to:d,rent:p}};var Ee=async(o,t)=>{let{isMemeMode:e=!1,isWidgetEnv:s=!1,isWallet:i=!1}=t||{},c=await q(),d=[],m=[];return o.map(p=>{if(e&&i||s){let{serializedTransaction:R,signature:v}=p;return{txHash:v,signedTx:R}}let M=p?.signature||p?.signatures[0],W=c.encode(M),h=c.encode(p.serialize());return{txHash:W,signedTx:h}}).forEach(p=>{d.push(p.signedTx),m.push(p.txHash)}),{signedTx:d,transactionHash:m}},ge=o=>{let t="0";return o.forEach(e=>{t=N.add(t,e.rent,{returnString:!0})}),t};n();a();n();a();var Ae=()=>{if(x()){let e={home:qt()?S.TGAPP:S.PLUGIN,coinDetail:S.WALLET,bot:S.COMMAND,coin_info_dialog:S.COIN_INFO_DIALOG},s=tt.get("pageSource");return{orderSource:e[s]}}let t=G()?.source;if(t===S.MARKET){let e=tt.get(jt);t=zt[e]||S.MARKET}return{orderSource:t}};var Me=o=>{let t=o[0];return{fromAdr:t.from,toAdr:t.to,inputData:t.inputData}},We=async({walletId:o,swapParams:t,signedTransactions:e,txArray:s,enableJito:i,isMemeMode:c=!1})=>{let d=s.length>1,{signedTx:m,transactionHash:f}=await Ee(e,{isMemeMode:c,isWidgetEnv:Gt(),isWallet:x()}),p="";d?p=JSON.stringify(m):p=m[0];let D=f[0],M=d?{mev:"Jito",jitoHash:f[1]}:{},W=Me(s),h=ge(s),R={...t,enableJito:i,...Ae()};return i&&(R.mevInfo="jito"),{updateMultiOrderInfo:{transactionHash:D,walletTxData:{extJson:JSON.stringify({...M,rent:h,txSource:3,feeType:4,multiTag:0,isMainTx:!1,coinAmount:0,serviceCharge:0,signedTx:d?JSON.parse(p):p}),isMainTx:!1,serviceCharge:0,txHash:D,walletId:o,txSource:3,coinAmount:0,walletType:2,signedTx:p,...W}},dexMultiMetaSaveOrderParam:R}},vo=async({signedTransactions:o,swapParams:t,walletId:e,txArray:s,enableJito:i})=>{let c=await We({walletId:e,signedTransactions:o,swapParams:t,txArray:s,enableJito:i});return L.post(Kt,c)};n();a();V();var lt=class{constructor(){r(this,"txData",async t=>{let e;return pt(t)?e=JSON.parse(t):e=t,fe(e)})}};r(lt,"chainId",_.SOLANA_MAINNET);n();a();V();n();a();var dt=class extends ne{constructor(){super(...arguments);this.connectedFnsList=new Set}connectedCallback(){super.connectedCallback(),re(this.connectedFnsList,{disconnected:this.disconnected})}addListenerConnected(e){return se(this.connectedFnsList,e)}getWsUrl(){let e=localStorage.getItem("dev_ct_wsPress"),s="";return x()?process.env.ASSETS_BUILD_TYPE==="dev"||process.env.ASSETS_BUILD_TYPE==="daily"?s="wss://wsdexpre.coinall.ltd:8443":s=`wss://${T.global?.getWssHostname()}`:s=gt.socketBaseUrls?.dex,e||`${s||""}/ws/v5/ipublic`}},Se=new dt;var on=({isPri:o=!1,subscribeParams:t,onSubscribeSuccess:e,onListenData:s,onListenError:i,onListenReconnected:c,needLogin:d=!1})=>{let m=o?g:Se,f=oe(t);if(f.length<=0||!t)return()=>{};m.subscribe(f,{needLogin:d});let D=k(f.map(h=>h.channel)).map((h,R)=>{let v=!1;return m.addListenerData(h,Ce=>{let{data:ut,event:_e,arg:be}=Ce;if(_e===ee.SUBSCRIBE){!v&&e?.(h),v=!0;return}!ut||!v||s?.(ut,be)},{argsParam:f[R]})}),M=m.addListenerError(h=>{i?.(h)}),W=m.addListenerConnected(()=>{c?.()});return()=>{m.unsubscribe(f),D.forEach(h=>{h?.()}),M(),W()}};var nn=o=>{let t=()=>{g.tokens="",g.logout(o)};return o===g.tokens||(g.tokens=o,g.connect(),g.isConnected()&&g.connectedCallback()),t};n();a();var dn={DEX_MARKET_CHANNEL:"dex-market",DEX_MARKET_TX_CHANNEL:"dex-market-v3",DEX_MARKET_HOLDER_CHANNEL_V2:"dex-market-holder-v2",DEX_MARKET_TRANSACTION_HISTORY_CHANNEL:"dex-market-trade-history",DEX_MARKET_TRANSACTION_HISTORY_CHANNEL_PUB:"dex-market-trade-history-pub",DEX_MARKET_ADDRESS_SWAP_HISTORY:"dex-market-address-swap-history",DEX_MARKET_POOL_CHANGES_CHANNEL:"dex-market-pool-history",DEX_MARKET_PNL_LATEST:"dex-market-pnl-latest",DEX_MARKET_PNL_HISTORY:"dex-market-pnl-history",DEX_MARKET_TOKEN_KLINE_BAR:"dex-token-candle{bar}",DEX_MARKET_KLINE_HOLDER_BS:"dex-market-kline-bs",DEX_MARKET_HOLDER_TRADE_STATISTICS:"dex-market-trade-history-statistics",DEX_MARKET_SM_PLATFORM_SIGNAL:"dex-market-sm-platform-signal",DEX_MARKET_SM_PLATFORM_SIGNAL_OVERVIEW:"dex-market-sm-signal-overview",DEX_MARKET_PNL_LATEST_PUB:"dex-market-pnl-latest-pub",DEX_MARKET_TRADER_CHANNEL_V1:"dex-market-trader-v1",DEX_MARKET_TOKEN_EARLY_BUYER:"dex-market-token-early-buyer",DEX_MARKET_TRACKER_SM_ACTIVITY:"dex-market-tracker-sm-activity",DEX_MARKET_TOP_POOL_CHANNEL:"dex-market-v3-topPool",DEX_MARKET_ADDRESS_RADAR:"dex-market-address-radar",DEX_MARKET_SM_SIGNAL_STATUS:"dex-market-sm-signal-status"},mn={DEX_PUSH_ENGINE:"dex-across-order-info",WALLET_ASSET:"wallet-asset",DEX_MARKET_TRACKER_ACTIVITY:"dex-market-tracker-activity",DEX_MARKET_TRACKER_TRENDS:"dex-market-tracker-trends",DEX_MARKET_TRACKER_RANKING:"dex-market-tracker-ranking",SM_RANKING:"dex-market-sm-ranking",DEX_STRATEGY_BALANCE:"dex-strategy-balance"};n();a();var Ie=w(X());var mt=class extends Ie.PureComponent{constructor(t){super(t),this.state={hasError:!1,error:void 0,errorInfo:{}}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(t,e){this.setState({error:t,errorInfo:e}),this.props.isMainEntry?b.error("fatal rendering error",{error:t,errorInfo:e,level:"fatal"}):b.error(O.ERROR_BOUNDARY,{error:t,errorInfo:e}),this.props.onError&&this.props.onError(t,e)}onRetry(){this.setState({hasError:!1})}render(){let{error:t,errorInfo:e,hasError:s}=this.state;return s?this.props.fallbackComponent({error:t,errorInfo:e,onRetry:()=>this.onRetry()}):this.props.children}};export{Re as a,K as b,Wr as c,Br as d,Hr as e,A as f,rt as g,ot as h,Qs as i,As as j,Ws as k,Ae as l,ge as m,We as n,vo as o,lt as p,Gs as q,on as r,nn as s,dn as t,mn as u,mt as v};
window.inOKXExtension = true;
window.inMiniApp = false;
window.ASSETS_BUILD_TYPE = "publish";
//# sourceMappingURL=chunk-FVJO2JSC.js.map