@rango-dev/ui 0.14.1-next.0 → 0.15.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (63) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/dist/index.js +6 -6
  3. package/dist/index.js.map +4 -4
  4. package/dist/widget/ui/src/components/ColorPicker/ColorPicker.d.ts.map +1 -1
  5. package/dist/widget/ui/src/components/index.d.ts +0 -5
  6. package/dist/widget/ui/src/components/index.d.ts.map +1 -1
  7. package/dist/widget/ui/src/containers/ConfirmSwap/ConfirmSwap.stories.d.ts.map +1 -1
  8. package/dist/widget/ui/src/containers/index.d.ts +0 -2
  9. package/dist/widget/ui/src/containers/index.d.ts.map +1 -1
  10. package/dist/widget/ui/src/types/meta.d.ts +0 -7
  11. package/dist/widget/ui/src/types/meta.d.ts.map +1 -1
  12. package/dist/widget/ui/src/types/wallet.d.ts +0 -23
  13. package/dist/widget/ui/src/types/wallet.d.ts.map +1 -1
  14. package/package.json +2 -2
  15. package/src/components/ColorPicker/ColorPicker.tsx +3 -4
  16. package/src/components/index.ts +0 -5
  17. package/src/containers/ConfirmSwap/ConfirmSwap.stories.tsx +174 -5
  18. package/src/containers/index.ts +0 -2
  19. package/src/helper/index.ts +1 -1
  20. package/src/types/meta.ts +0 -9
  21. package/src/types/wallet.ts +0 -25
  22. package/dist/widget/ui/src/components/HeaderLayout/HeaderLayout.d.ts +0 -14
  23. package/dist/widget/ui/src/components/HeaderLayout/HeaderLayout.d.ts.map +0 -1
  24. package/dist/widget/ui/src/components/HeaderLayout/index.d.ts +0 -2
  25. package/dist/widget/ui/src/components/HeaderLayout/index.d.ts.map +0 -1
  26. package/dist/widget/ui/src/components/PercentageChange/PercentageChange.d.ts +0 -8
  27. package/dist/widget/ui/src/components/PercentageChange/PercentageChange.d.ts.map +0 -1
  28. package/dist/widget/ui/src/components/PercentageChange/index.d.ts +0 -2
  29. package/dist/widget/ui/src/components/PercentageChange/index.d.ts.map +0 -1
  30. package/dist/widget/ui/src/components/RoutesOverview/RoutesOverview.d.ts +0 -120
  31. package/dist/widget/ui/src/components/RoutesOverview/RoutesOverview.d.ts.map +0 -1
  32. package/dist/widget/ui/src/components/RoutesOverview/index.d.ts +0 -2
  33. package/dist/widget/ui/src/components/RoutesOverview/index.d.ts.map +0 -1
  34. package/dist/widget/ui/src/components/SwapDetailsPlaceholder/SwapDetailsPlaceholder.d.ts +0 -120
  35. package/dist/widget/ui/src/components/SwapDetailsPlaceholder/SwapDetailsPlaceholder.d.ts.map +0 -1
  36. package/dist/widget/ui/src/components/SwapDetailsPlaceholder/index.d.ts +0 -2
  37. package/dist/widget/ui/src/components/SwapDetailsPlaceholder/index.d.ts.map +0 -1
  38. package/dist/widget/ui/src/components/TokenPreview/TokenPreview.d.ts +0 -20
  39. package/dist/widget/ui/src/components/TokenPreview/TokenPreview.d.ts.map +0 -1
  40. package/dist/widget/ui/src/components/TokenPreview/index.d.ts +0 -2
  41. package/dist/widget/ui/src/components/TokenPreview/index.d.ts.map +0 -1
  42. package/dist/widget/ui/src/containers/HomePanel/HomePanel.d.ts +0 -47
  43. package/dist/widget/ui/src/containers/HomePanel/HomePanel.d.ts.map +0 -1
  44. package/dist/widget/ui/src/containers/HomePanel/index.d.ts +0 -2
  45. package/dist/widget/ui/src/containers/HomePanel/index.d.ts.map +0 -1
  46. package/dist/widget/ui/src/containers/TokenInfo/TokenInfo.d.ts +0 -34
  47. package/dist/widget/ui/src/containers/TokenInfo/TokenInfo.d.ts.map +0 -1
  48. package/dist/widget/ui/src/containers/TokenInfo/index.d.ts +0 -2
  49. package/dist/widget/ui/src/containers/TokenInfo/index.d.ts.map +0 -1
  50. package/src/components/HeaderLayout/HeaderLayout.tsx +0 -88
  51. package/src/components/HeaderLayout/index.ts +0 -1
  52. package/src/components/PercentageChange/PercentageChange.tsx +0 -21
  53. package/src/components/PercentageChange/index.ts +0 -1
  54. package/src/components/RoutesOverview/RoutesOverview.tsx +0 -56
  55. package/src/components/RoutesOverview/index.ts +0 -1
  56. package/src/components/SwapDetailsPlaceholder/SwapDetailsPlaceholder.tsx +0 -47
  57. package/src/components/SwapDetailsPlaceholder/index.ts +0 -1
  58. package/src/components/TokenPreview/TokenPreview.tsx +0 -183
  59. package/src/components/TokenPreview/index.ts +0 -1
  60. package/src/containers/HomePanel/HomePanel.tsx +0 -228
  61. package/src/containers/HomePanel/index.ts +0 -1
  62. package/src/containers/TokenInfo/TokenInfo.tsx +0 -308
  63. package/src/containers/TokenInfo/index.ts +0 -1
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- var Er=Object.defineProperty;var r=(o,e)=>Er(o,"name",{value:e,configurable:!0});import Hr,{useEffect as _r}from"react";import{i18n as Be}from"@lingui/core";import{I18nProvider as jr}from"@lingui/react";var Wt=JSON.parse('{" Error connecting server, please reload the app and try again.":" Error connecting server, please reload the app and try again.","Transaction cost (fee)":"Transaction cost (fee)","Time estimate":"Time estimate","No routes found":"No routes found","Powered By":"Powered By","Change Slippage":"Change Slippage","Refresh":"Refresh","Transactions History":"Transactions History","Settings":"Settings","Connect Wallet":"Connect Wallet","Bridges":"Bridges","Exchanges":"Exchanges","Swap Details":"Swap Details","Chain":"Chain","Token":"Token","Connect Wallets":"Connect Wallets","SWAP":"SWAP","Slippage tolerance":"Slippage tolerance","Custom":"Custom","Theme":"Theme","Dark":"Dark","Light":"Light","Auto":"Auto","Infinite Approval":"Infinite Approval","Liquidity Sources":"Liquidity Sources","Balance":"Balance","Insufficent Balance:":"Insufficent Balance:","From":"From","To":"To","Proceed anyway!":"Proceed anyway!","Confirm swap!":"Confirm swap!","Select Wallet":"Select Wallet","Finding Best Route...":"Finding Best Route...","Enter an amount":"Enter an amount","Swap":"Swap","Limit Error":"Limit Error","Price impact is too high!":"Price impact is too high!","USD price is unknown, price impact might be high!":"USD price is unknown, price impact might be high!","The route goes through Ethereum. Continue?":"The route goes through Ethereum. Continue?","highSlippage":[" Caution, your slippage is high (=",["selectedSlippage"],"). Your trade may be front run."],"swap from":"From","maximum amount of asset":"Max","swapNotFound":["Swap with request ID = $",["requestId"]," not found."],"swap to":"To","increaseSlippage":["We recommend you to increase slippage to at least ",["minRequiredSlippage"]," for this route."]}');var Mt=JSON.parse('{" Error connecting server, please reload the app and try again.":" Error connecting server, please reload the app and try again.","Transaction cost (fee)":"Transaction cost (fee)","Time estimate":"Time estimate","No routes found":"No routes found","Powered By":"Powered By","Change Slippage":"Change Slippage","Refresh":"Refresh","Transactions History":"Transactions History","Settings":"Settings","Connect Wallet":"Connect Wallet","Bridges":"Bridges","Exchanges":"Exchanges","Swap Details":"Swap Details","Chain":"Chain","Token":"Token","Connect Wallets":"Connect Wallets","SWAP":"SWAP","Slippage tolerance":"Slippage tolerance","Custom":"Custom","Theme":"Theme","Dark":"Dark","Light":"Light","Auto":"Auto","Infinite Approval":"Infinite Approval","Liquidity Sources":"Liquidity Sources","Balance":"Balance","Insufficent Balance:":"Insufficent Balance:","From":"From","To":"To","Proceed anyway!":"Proceed anyway!","Confirm swap!":"Confirm swap!","Select Wallet":"Select Wallet","Finding Best Route...":"Finding Best Route...","Enter an amount":"Enter an amount","Swap":"Swap","Limit Error":"Limit Error","Price impact is too high!":"Price impact is too high!","USD price is unknown, price impact might be high!":"USD price is unknown, price impact might be high!","The route goes through Ethereum. Continue?":"The route goes through Ethereum. Continue?","highSlippage":[" Caution, your slippage is high (=",["selectedSlippage"],"). Your trade may be front run."],"swap from":"From","maximum amount of asset":"Max","swapNotFound":["Swap with request ID = $",["requestId"]," not found."],"swap to":"To","increaseSlippage":["We recommend you to increase slippage to at least ",["minRequiredSlippage"]," for this route."]}');var Ft=JSON.parse('{" Error connecting server, please reload the app and try again.":" Error connecting server, please reload the app and try again.","Transaction cost (fee)":"Transaction cost (fee)","Time estimate":"Time estimate","No routes found":"No routes found","Powered By":"Powered By","Change Slippage":"Change Slippage","Refresh":"Refresh","Transactions History":"Transactions History","Settings":"Settings","Connect Wallet":"Connect Wallet","Bridges":"Bridges","Exchanges":"Exchanges","Swap Details":"Swap Details","Chain":"Chain","Token":"Token","Connect Wallets":"Connect Wallets","SWAP":"SWAP","Slippage tolerance":"Slippage tolerance","Custom":"Custom","Theme":"Theme","Dark":"Dark","Light":"Light","Auto":"Auto","Infinite Approval":"Infinite Approval","Liquidity Sources":"Liquidity Sources","Balance":"Balance","Insufficent Balance:":"Insufficent Balance:","From":"From","To":"To","Proceed anyway!":"Proceed anyway!","Confirm swap!":"Confirm swap!","Select Wallet":"Select Wallet","Finding Best Route...":"Finding Best Route...","Enter an amount":"Enter an amount","Swap":"Swap","Limit Error":"Limit Error","Price impact is too high!":"Price impact is too high!","USD price is unknown, price impact might be high!":"USD price is unknown, price impact might be high!","The route goes through Ethereum. Continue?":"The route goes through Ethereum. Continue?","highSlippage":[" Caution, your slippage is high (=",["selectedSlippage"],"). Your trade may be front run."],"swap from":"From","maximum amount of asset":"Max","swapNotFound":["Swap with request ID = $",["requestId"]," not found."],"swap to":"To","increaseSlippage":["We recommend you to increase slippage to at least ",["minRequiredSlippage"]," for this route."]}');var At=JSON.parse('{" Error connecting server, please reload the app and try again.":" Error connecting server, please reload the app and try again.","Transaction cost (fee)":"Transaction cost (fee)","Time estimate":"Time estimate","No routes found":"No routes found","Powered By":"Powered By","Change Slippage":"Change Slippage","Refresh":"Refresh","Transactions History":"Transactions History","Settings":"Settings","Connect Wallet":"Connect Wallet","Bridges":"Bridges","Exchanges":"Exchanges","Swap Details":"Swap Details","Chain":"Chain","Token":"Token","Connect Wallets":"Connect Wallets","SWAP":"SWAP","Slippage tolerance":"Slippage tolerance","Custom":"Custom","Theme":"Theme","Dark":"Dark","Light":"Light","Auto":"Auto","Infinite Approval":"Infinite Approval","Liquidity Sources":"Liquidity Sources","Balance":"Balance","Insufficent Balance:":"Insufficent Balance:","From":"From","To":"To","Proceed anyway!":"Proceed anyway!","Confirm swap!":"Confirm swap!","Select Wallet":"Select Wallet","Finding Best Route...":"Finding Best Route...","Enter an amount":"Enter an amount","Swap":"Swap","Limit Error":"Limit Error","Price impact is too high!":"Price impact is too high!","USD price is unknown, price impact might be high!":"USD price is unknown, price impact might be high!","The route goes through Ethereum. Continue?":"The route goes through Ethereum. Continue?","highSlippage":[" Caution, your slippage is high (=",["selectedSlippage"],"). Your trade may be front run."],"swap from":"From","maximum amount of asset":"Max","swapNotFound":["Swap with request ID = $",["requestId"]," not found."],"swap to":"To","increaseSlippage":["We recommend you to increase slippage to at least ",["minRequiredSlippage"]," for this route."]}');var qr="en",Zr={en:Wt,es:Mt,jp:Ft,fr:At};Be.load(Zr);function Vr(o){return _r(()=>{Be.activate(o?.language||qr)},[o?.language]),Hr.createElement(jr,{i18n:Be},o.children)}r(Vr,"I18nManager");import j from"react";import*as We from"react";import{createStitches as Or}from"@stitches/react";var Gr={colors:{primary:"#5FA425",primary100:"#9FC87C",primary200:"#8FBF66",primary300:"#7FB651",primary400:"#6FAD3B",primary500:"#5FA425",primary600:"#4C831E",primary700:"#396216",primary800:"#26420F",primary900:"#132107",surface:"#fff",neutral100:"#f3f3f3",neutral200:"#FAFAFA",neutral300:"#EAEAEA",neutral400:"#999999",neutral500:"#888888",neutral600:"#666666",neutral700:"#444444",neutral800:"#333333",neutral900:"#111111",background:"#fff",foreground:"#000",success:"#0070F3",success100:"#D3E5FF",success300:"#3291FF",success500:"#0070F3",success700:"#0761D1",warning:"#F5A623",warning100:"#FFEFCF",warning300:"#F7B955",warning500:"#F5A623",warning700:"#AB570A",error:"#FF0000",error100:"#F7D4D6",error300:"#FF3333",error500:"#FF0000",error700:"#E60000",white:"#fff"},space:{2:"2px",4:"4px",6:"6px",8:"8px",10:"10px",12:"12px",16:"16px",20:"20px",24:"24px",28:"28px",30:"30px",32:"32px"},fontSizes:{10:"10px",12:"12px",14:"14px",16:"16px",18:"18px",20:"20px",24:"24px",32:"32px",36:"36px",40:"40px",48:"48px"},fonts:{},fontWeights:{400:"400",500:"500",600:"600",700:"700"},lineHeights:{},letterSpacings:{},sizes:{4:"4px",6:"6px",8:"8px",12:"12px",16:"16px",20:"20px",24:"24px",28:"28px",32:"32px",36:"36px",40:"40px",48:"48px"},borderWidths:{},borderStyles:{},radii:{5:"8px",10:"12px"},shadows:{s:"0px 3px 5px 3px #f0f2f5, 0px 6px 10px 3px #f0f2f5, 0px 1px 18px 3px #f0f2f5"},zIndices:{},transitions:{}},Ur={sm:"(min-width: 640px)",md:"(min-width: 768px)",lg:"(min-width: 1024px)"},Yr={bc:o=>({backgroundColor:o})},Jr=Or,{styled:i,css:ds,createTheme:Nt,keyframes:Mo,globalCss:cs,config:ms}=Jr({media:Ur,theme:Gr,utils:Yr}),gs=Nt({}),ro=Nt({colors:{surface:"#000",neutral900:"#f3f3f3",neutral800:"#FAFAFA",neutral700:"#EAEAEA",neutral600:"#999999",neutral500:"#888888",neutral400:"#666666",neutral300:"#444444",neutral200:"#333333",neutral100:"#111111",foreground:"#fff",background:"#000"},shadows:{s:"0px 3px 5px 3px #222, 0px 6px 10px 3px #222, 0px 1px 18px 3px #222"}});var g=i("svg",{stroke:"$foreground",variants:{color:{primary:{stroke:"$primary"},error:{stroke:"$error"},warning:{stroke:"$warning"},success:{stroke:"$success"},black:{$$color:"$colors$foreground",[`.${ro} &`]:{$$color:"$colors$background"},stroke:"$$color"},white:{$$color:"$colors$background",[`.${ro} &`]:{$$color:"$colors$foreground"},stroke:"$$color"}},disabled:{true:{stroke:"$neutral400"}}}}),F=i("svg",{fill:"$foreground",variants:{color:{primary:{fill:"$primary"},error:{fill:"$error"},warning:{fill:"$warning"},success:{fill:"$success"},black:{$$color:"$colors$foreground",[`.${ro} &`]:{$$color:"$colors$background"},fill:"$$color"},white:{$$color:"$colors$background",[`.${ro} &`]:{$$color:"$colors$foreground"},fill:"$$color"}},disabled:{true:{stroke:"$neutral400"}}}});var zt=r(({size:o=16,color:e,...t})=>We.createElement(g,{width:o,height:o,viewBox:"0 0 24 24",color:e,fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"_icon",...t},We.createElement("path",{d:"M12 22c5.5 0 10-4.5 10-10S17.5 2 12 2 2 6.5 2 12s4.5 10 10 10ZM9.17 14.83l5.66-5.66M14.83 14.83 9.17 9.17",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),"DeleteCircleIcon");zt.toString=()=>"._icon";import*as Ro from"react";var Dt=r(({size:o=16,color:e,...t})=>Ro.createElement(g,{width:o,height:o,viewBox:"0 0 24 24",color:e,fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"_icon",...t},Ro.createElement("path",{d:"M9 22h6c5 0 7-2 7-7V9c0-5-2-7-7-7H9C4 2 2 4 2 9v6c0 5 2 7 7 7Z",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),Ro.createElement("path",{d:"m7.75 12 2.83 2.83 5.67-5.66",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),"CheckSquareIcon");Dt.toString=()=>"._icon";import*as Me from"react";var oe=r(({size:o=16,color:e,...t})=>Me.createElement(g,{width:o,height:o,viewBox:"0 0 24 24",color:e,fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"_icon",...t},Me.createElement("path",{d:"M6 12h12M12 18V6",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),"AddIcon");oe.toString=()=>"._icon";import*as ee from"react";var Y=r(({size:o=16,color:e,...t})=>ee.createElement(F,{width:o,height:o,viewBox:"0 0 24 24",color:e,fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"_icon",...t},ee.createElement("path",{d:"M12 22c5.5 0 10-4.5 10-10S17.5 2 12 2 2 6.5 2 12s4.5 10 10 10ZM12 8v5",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",stroke:"#fff"}),ee.createElement("path",{d:"M11.994 16h.01",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",stroke:"#fff"})),"InfoCircleIcon");Y.toString=()=>"._icon";import*as Fe from"react";var Et=r(({size:o=16,color:e,...t})=>Fe.createElement(g,{width:o,height:o,viewBox:"0 0 24 24",color:e,fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"_icon",...t},Fe.createElement("path",{d:"M12 22c5.5 0 10-4.5 10-10S17.5 2 12 2 2 6.5 2 12s4.5 10 10 10ZM8 12h8M12 16V8",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),"AddCircleIcon");Et.toString=()=>"._icon";import*as Ae from"react";var Ht=r(({size:o=16,color:e,...t})=>Ae.createElement(g,{width:o,height:o,viewBox:"0 0 24 24",color:e,fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"_icon",...t},Ae.createElement("path",{d:"M11.92 22c5.5 0 10-4.5 10-10s-4.5-10-10-10-10 4.5-10 10 4.5 10 10 10ZM7.92 12h8",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),"MinusCircleIcon");Ht.toString=()=>"._icon";import*as te from"react";var Fo=r(({size:o=16,color:e,...t})=>te.createElement(F,{width:o,height:o,viewBox:"0 0 24 24",color:e,fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"_icon",...t},te.createElement("path",{d:"M12 22c5.5 0 10-4.5 10-10S17.5 2 12 2 2 6.5 2 12s4.5 10 10 10Z",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round",stroke:"#fff"}),te.createElement("path",{d:"m7.75 12 2.83 2.83 5.67-5.66",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round",stroke:"#fff"})),"CheckCircleIcon");Fo.toString=()=>"._icon";import*as Ne from"react";var re=r(({size:o=16,color:e,...t})=>Ne.createElement(F,{width:o,height:o,viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:e,className:"_icon",...t},Ne.createElement("path",{d:"M11.4669 3.72684C11.7558 3.91574 11.8369 4.30308 11.648 4.59198L7.39799 11.092C7.29783 11.2452 7.13556 11.3467 6.95402 11.3699C6.77247 11.3931 6.58989 11.3355 6.45446 11.2124L3.70446 8.71241C3.44905 8.48022 3.43023 8.08494 3.66242 7.82953C3.89461 7.57412 4.28989 7.55529 4.5453 7.78749L6.75292 9.79441L10.6018 3.90792C10.7907 3.61902 11.178 3.53795 11.4669 3.72684Z",fillRule:"evenodd",clipRule:"evenodd"})),"CheckIcon");re.toString=()=>"._icon";import*as ze from"react";var _t=r(({size:o=16,color:e,...t})=>ze.createElement(g,{width:o,height:o,viewBox:"0 0 24 24",color:e,fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"_icon",...t},ze.createElement("path",{d:"M12 22c5.52 0 10-4.48 10-10S17.52 2 12 2 2 6.48 2 12s4.48 10 10 10ZM18.9 5l-14 14",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"})),"BanIcon");_t.toString=()=>"._icon";import*as ie from"react";var ne=r(({size:o=16,color:e,...t})=>ie.createElement(g,{width:o,height:o,viewBox:"0 0 24 24",color:e,fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"_icon",...t},ie.createElement("path",{d:"M12 9v5M12 21.41H5.94c-3.47 0-4.92-2.48-3.24-5.51l3.12-5.62L8.76 5c1.78-3.21 4.7-3.21 6.48 0l2.94 5.29 3.12 5.62c1.68 3.03.22 5.51-3.24 5.51H12v-.01Z",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),ie.createElement("path",{d:"M11.994 17h.01",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),"WarningIcon");ne.toString=()=>"._icon";import*as So from"react";var ae=r(({size:o=16,color:e,...t})=>So.createElement(g,{width:o,height:o,viewBox:"0 0 24 24",color:e,fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",xmlns:"http://www.w3.org/2000/svg",className:"_icon",...t},So.createElement("path",{d:"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"}),So.createElement("polyline",{points:"14 2 14 8 20 8"}),So.createElement("line",{x1:"16",y1:"13",x2:"8",y2:"13"}),So.createElement("line",{x1:"16",y1:"17",x2:"8",y2:"17"}),So.createElement("polyline",{points:"10 9 9 9 8 9"})),"HistoryIcon");ae.toString=()=>"._icon";import*as le from"react";var po=r(({size:o=16,color:e,...t})=>le.createElement(g,{width:o,height:o,viewBox:"0 0 24 24",color:e,fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"_icon",...t},le.createElement("path",{d:"M4 22V5c0-2 1.34-3 3-3h8c1.66 0 3 1 3 3v17H4ZM2.5 22h17",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),le.createElement("path",{d:"M8.89 10h4.23c1.04 0 1.89-.5 1.89-1.89V6.88c0-1.39-.85-1.89-1.89-1.89H8.89C7.85 4.99 7 5.49 7 6.88v1.23C7 9.5 7.85 10 8.89 10ZM7 13h3M18 16.01l4.5-.01v-6l-2-1",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),"GasIcon");po.toString=()=>"._icon";import*as se from"react";var pe=r(({size:o=16,color:e,...t})=>se.createElement(g,{width:o,height:o,viewBox:"0 0 24 24",color:e,stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"_icon",...t},se.createElement("circle",{cx:"12",cy:"12",r:"3"}),se.createElement("path",{d:"M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z"})),"SettingsIcon");pe.toString=()=>"._icon";import*as De from"react";var jt=r(({size:o=16,color:e,...t})=>De.createElement(g,{width:o,height:o,viewBox:"0 0 24 24",color:e,fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"_icon",...t},De.createElement("path",{d:"M21.5 5.98c-3.33-.33-6.68-.5-10.02-.5-1.98 0-3.96.1-5.94.3l-2.04.2M9 4.97l.22-1.31C9.38 2.71 9.5 2 11.19 2h2.62c1.69 0 1.82.75 1.97 1.67l.22 1.3M19.35 9.14l-.65 10.07c-.11 1.57-.2 2.79-2.99 2.79H9.29c-2.79 0-2.88-1.22-2.99-2.79L5.65 9.14M10.83 16.5h3.33M10 12.5h5",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),"TrashIcon");jt.toString=()=>"._icon";import*as Ee from"react";var qt=r(({size:o=16,color:e,...t})=>Ee.createElement(g,{width:o,height:o,viewBox:"0 0 24 24",color:e,fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"_icon",...t},Ee.createElement("path",{d:"M9 11.7h5M11.5 21a9.5 9.5 0 1 0 0-19 9.5 9.5 0 0 0 0 19ZM22 22l-2-2",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),"SearchMinusIcon");qt.toString=()=>"._icon";import*as He from"react";var de=r(({size:o=16,color:e,...t})=>He.createElement(g,{width:o,height:o,viewBox:"0 0 24 24",color:e,fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"_icon",...t},He.createElement("path",{d:"M11.5 21a9.5 9.5 0 1 0 0-19 9.5 9.5 0 0 0 0 19ZM22 22l-2-2",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),"SearchIcon");de.toString=()=>"._icon";import*as _e from"react";var ce=r(({size:o=16,color:e,...t})=>_e.createElement(g,{width:o,height:o,fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",color:e,className:"_icon",...t},_e.createElement("path",{d:"m8.91 19.92 6.52-6.52c.77-.77.77-2.03 0-2.8L8.91 4.08",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"})),"AngleRightIcon");ce.toString=()=>"._icon";import*as je from"react";var Zt=r(({size:o=16,color:e,...t})=>je.createElement(g,{width:o,height:o,fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",color:e,className:"_icon",...t},je.createElement("path",{d:"M19.92 15.05 13.4 8.53c-.77-.77-2.03-.77-2.8 0l-6.52 6.52",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"})),"AngleUpIcon");Zt.toString=()=>"._icon";import Vt from"react";var Ao=r(({size:o=16,color:e,...t})=>Vt.createElement(g,{width:o,height:o,viewBox:"0 0 24 24",color:e,fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"_icon",...t},Vt.createElement("path",{d:"m19.92 8.95-6.52 6.52c-.77.77-2.03.77-2.8 0L4.08 8.95",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"})),"AngleDownIcon");Ao.toString=()=>"._icon";import*as qe from"react";var Ze=r(({size:o=16,color:e,...t})=>qe.createElement(g,{width:o,height:o,fill:"none",viewBox:"0 0 24 24",color:e,xmlns:"http://www.w3.org/2000/svg",className:"_icon",...t},qe.createElement("path",{d:"M15 19.92 8.48 13.4c-.77-.77-.77-2.03 0-2.8L15 4.08",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"})),"AngleLeftIcon");Ao.toString=()=>"._icon";import*as me from"react";var ge=r(({size:o=16,color:e,...t})=>me.createElement(g,{width:o,height:o,viewBox:"0 0 24 24",color:e,fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"_icon",...t},me.createElement("path",{d:"M16.44 8.9c3.6.31 5.07 2.16 5.07 6.21v.13c0 4.47-1.79 6.26-6.26 6.26H8.74c-4.47 0-6.26-1.79-6.26-6.26v-.13c0-4.02 1.45-5.87 4.99-6.2M12 2v12.88",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),me.createElement("path",{d:"M15.35 12.65 12 16l-3.35-3.35",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),"DownloadIcon");ge.toString=()=>"._icon";import*as Zo from"react";var ue=Zo.forwardRef(({color:o="black",size:e=16,...t},n)=>Zo.createElement(g,{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,color:o,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"_icon",...t,ref:n},Zo.createElement("polyline",{points:"9 18 15 12 9 6"})));ue.toString=()=>"._icon";import*as he from"react";var fe=r(({size:o=16,color:e,...t})=>he.createElement(g,{width:o,height:o,viewBox:"0 0 24 24",color:e,fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",xmlns:"http://www.w3.org/2000/svg",className:"_icon",...t},he.createElement("line",{x1:"5",y1:"12",x2:"19",y2:"12"}),he.createElement("polyline",{points:"12 5 19 12 12 19"})),"ArrowRightIcon");fe.toString=()=>"._icon";import*as Ve from"react";var Ot=r(({size:o=16,color:e,...t})=>Ve.createElement(g,{width:o,height:o,viewBox:"0 0 24 24",color:e,fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"_icon",...t},Ve.createElement("path",{d:"M14.89 5.08c-.87-.26-1.83-.43-2.89-.43-4.79 0-8.67 3.88-8.67 8.67C3.33 18.12 7.21 22 12 22s8.67-3.88 8.67-8.67c0-1.78-.54-3.44-1.46-4.82M16.13 5.32 13.24 2M16.13 5.32l-3.37 2.46",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),"RetryRightIcon");Ot.toString=()=>"._icon";import*as Oe from"react";var Gt=r(({size:o=16,color:e,...t})=>Oe.createElement(g,{width:o,height:o,viewBox:"0 0 24 24",color:e,fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"_icon",...t},Oe.createElement("path",{d:"M9.11 5.08c.87-.26 1.83-.43 2.89-.43 4.79 0 8.67 3.88 8.67 8.67s-3.88 8.67-8.67 8.67-8.67-3.88-8.67-8.67c0-1.78.54-3.44 1.46-4.82M7.87 5.32 10.76 2M7.87 5.32l3.37 2.46",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),"RetryLeftIcon");Gt.toString=()=>"._icon";import*as Ge from"react";var Ut=r(({size:o=16,color:e,...t})=>Ge.createElement(g,{width:o,height:o,viewBox:"0 0 24 24",color:e,fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"_icon",...t},Ge.createElement("path",{d:"M22 12c0 5.52-4.48 10-10 10s-8.89-5.56-8.89-5.56m0 0h4.52m-4.52 0v5M2 12C2 6.48 6.44 2 12 2c6.67 0 10 5.56 10 5.56m0 0v-5m0 5h-4.44",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),"TryAgainIcon");Ut.toString=()=>"._icon";import*as ye from"react";var Yt=r(({size:o=16,color:e,...t})=>ye.createElement(g,{width:o,height:o,viewBox:"0 0 24 24",color:e,fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"_icon",...t},ye.createElement("path",{d:"m13.82 6.85 3.04 3.04M13.82 17.15V6.85M10.18 17.15l-3.04-3.04M10.18 6.85v10.3",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),ye.createElement("path",{d:"M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10Z",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),"VerticalSwapIcon");Yt.toString=()=>"._icon";import*as xe from"react";var Jt=r(({size:o=16,color:e,...t})=>xe.createElement(g,{width:o,height:o,viewBox:"0 0 24 24",color:e,fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"_icon",...t},xe.createElement("path",{d:"m17.15 13.82-3.04 3.04M6.85 13.82h10.3M6.85 10.18l3.04-3.04M17.15 10.18H6.85",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),xe.createElement("path",{d:"M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10Z",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),"HorizontalSwapIcon");Jt.toString=()=>"._icon";import*as No from"react";var Ce=No.forwardRef(({color:o="black",size:e=16,...t},n)=>No.createElement(g,{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,color:o,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"_icon",...t,ref:n},No.createElement("polyline",{points:"23 4 23 10 17 10"}),No.createElement("path",{d:"M20.49 15a9 9 0 1 1-2.12-9.36L23 10"})));Ce.toString=()=>"._icon";import*as Vo from"react";var Xt=r(({size:o=16,color:e,...t})=>Vo.createElement(F,{width:o,height:o,viewBox:"0 0 24 24",color:e,fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"_icon",...t},Vo.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.51 7.205a3.018 3.018 0 0 0-3.01 3.01v6.73a3.018 3.018 0 0 0 3.01 3.01h11.48a3.018 3.018 0 0 0 3.01-3.01v-.44h-1.15c-1.41 0-2.778-1.03-2.907-2.553a2.758 2.758 0 0 1 .816-2.227 2.743 2.743 0 0 1 1.971-.82H19v-.69a3.018 3.018 0 0 0-3.01-3.01H4.51ZM0 10.215a4.518 4.518 0 0 1 4.51-4.51h11.48a4.518 4.518 0 0 1 4.51 4.51v1.44a.75.75 0 0 1-.75.75h-2.02c-.36 0-.675.14-.903.373l-.013.014c-.266.26-.415.63-.377 1.022v.009c.053.635.664 1.182 1.413 1.182h1.9a.75.75 0 0 1 .75.75v1.19a4.518 4.518 0 0 1-4.51 4.51H4.51A4.518 4.518 0 0 1 0 16.945v-6.73Z"}),Vo.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.35 2.655a1.15 1.15 0 0 0-1.554-1.079l-7.94 3A2.098 2.098 0 0 0 1.5 6.547v4.569a.75.75 0 1 1-1.5 0v-4.57c0-1.5.922-2.84 2.325-3.371l7.94-3s-.001 0 0 0c1.732-.657 3.585.629 3.585 2.481v3.8a.75.75 0 0 1-1.5 0v-3.8ZM17.729 12.405c-.36 0-.675.14-.903.373l-.013.014c-.266.26-.415.63-.377 1.022v.009c.053.635.664 1.182 1.413 1.182h1.943a.276.276 0 0 0 .267-.27v-2.06a.276.276 0 0 0-.267-.27h-2.063Zm-1.97-.68a2.743 2.743 0 0 1 1.97-.82h2.107a1.777 1.777 0 0 1 1.723 1.77v2.06a1.777 1.777 0 0 1-1.75 1.77h-1.96c-1.41 0-2.778-1.03-2.907-2.553a2.759 2.759 0 0 1 .816-2.227Z"}),Vo.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.5 10.705a.75.75 0 0 1 .75-.75h7a.75.75 0 0 1 0 1.5h-7a.75.75 0 0 1-.75-.75Z"})),"WalletIcon");Xt.toString=()=>"._icon";import*as ko from"react";var ve=r(({size:o=16,color:e,...t})=>ko.createElement(F,{width:o,height:o,viewBox:"0 0 24 24",color:e,fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"_icon",...t},ko.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.569 7.205a3.018 3.018 0 0 0-3.01 3.01v3.076a4.749 4.749 0 0 1 6.5 4.414c0 .808-.206 1.579-.574 2.25h8.564a3.018 3.018 0 0 0 3.01-3.01v-.44h-1.15c-1.41 0-2.778-1.03-2.907-2.553a2.758 2.758 0 0 1 .816-2.227 2.743 2.743 0 0 1 1.97-.82h1.27v-.69a3.018 3.018 0 0 0-3.01-3.01H6.569Zm-4.51 3.01a4.518 4.518 0 0 1 4.51-4.51h11.48a4.518 4.518 0 0 1 4.51 4.51v1.44a.75.75 0 0 1-.75.75h-2.02c-.36 0-.675.14-.903.373l-.014.014c-.266.26-.414.63-.377 1.022l.001.009c.053.635.664 1.182 1.413 1.182h1.9a.75.75 0 0 1 .75.75v1.19a4.518 4.518 0 0 1-4.51 4.51H7.939a.75.75 0 0 1-.482-1.324c.243-.204.457-.457.624-.744l.01-.015a3.17 3.17 0 0 0 .468-1.667 3.249 3.249 0 0 0-5.283-2.533.75.75 0 0 1-1.217-.587v-4.37Z"}),ko.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.409 2.655a1.15 1.15 0 0 0-1.555-1.078l-7.94 3a2.098 2.098 0 0 0-1.355 1.968v4.57a.75.75 0 0 1-1.5 0v-4.57c0-1.5.921-2.84 2.324-3.371l7.94-3c1.733-.657 3.586.629 3.586 2.481v3.8a.75.75 0 0 1-1.5 0v-3.8ZM19.787 12.405c-.359 0-.674.14-.902.374l-.014.013c-.266.26-.414.63-.377 1.022v.01c.054.634.664 1.181 1.413 1.181h1.943a.276.276 0 0 0 .267-.27v-2.06a.276.276 0 0 0-.267-.27h-2.063Zm-1.97-.68a2.743 2.743 0 0 1 1.97-.82h2.107a1.777 1.777 0 0 1 1.723 1.77v2.06a1.777 1.777 0 0 1-1.75 1.77h-1.96c-1.41 0-2.777-1.03-2.907-2.553a2.759 2.759 0 0 1 .817-2.227Z"}),ko.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.559 10.705a.75.75 0 0 1 .75-.75h7a.75.75 0 0 1 0 1.5h-7a.75.75 0 0 1-.75-.75ZM5.309 14.455c-.762 0-1.469.267-2.033.717h-.001a3.22 3.22 0 0 0-1.216 2.533c0 .61.17 1.184.468 1.667l.006.01a3.22 3.22 0 0 0 2.776 1.573 3.155 3.155 0 0 0 2.148-.824c.243-.204.457-.457.624-.744l.01-.015a3.17 3.17 0 0 0 .468-1.667 3.249 3.249 0 0 0-3.25-3.25Zm-2.967-.457a4.749 4.749 0 0 1 7.717 3.707c0 .888-.248 1.73-.687 2.446-.25.427-.57.808-.941 1.12a4.656 4.656 0 0 1-3.122 1.184 4.72 4.72 0 0 1-4.062-2.301 4.671 4.671 0 0 1-.688-2.449 4.72 4.72 0 0 1 1.783-3.707Z"}),ko.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.07 17.685a.75.75 0 0 1 .75-.75H6.8a.75.75 0 0 1 0 1.5H3.82a.75.75 0 0 1-.75-.75Z"}),ko.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.309 15.475a.75.75 0 0 1 .75.75v2.99a.75.75 0 0 1-1.5 0v-2.99a.75.75 0 0 1 .75-.75Z"})),"AddWalletIcon");ve.toString=()=>"._icon";import*as wo from"react";var Kt=r(({size:o=16,color:e,...t})=>wo.createElement(F,{width:o,height:o,viewBox:"0 0 24 24",color:e,fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"_icon",...t},wo.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.627 7.205a3.018 3.018 0 0 0-3.01 3.01v3.076a4.749 4.749 0 0 1 6.5 4.414c0 .808-.205 1.579-.573 2.25h8.563a3.018 3.018 0 0 0 3.01-3.01v-.44h-1.15c-1.41 0-2.777-1.03-2.907-2.553a2.759 2.759 0 0 1 .817-2.227 2.743 2.743 0 0 1 1.97-.82h1.27v-.69a3.018 3.018 0 0 0-3.01-3.01H6.627Zm-4.51 3.01a4.518 4.518 0 0 1 4.51-4.51h11.48a4.518 4.518 0 0 1 4.51 4.51v1.44a.75.75 0 0 1-.75.75h-2.02c-.359 0-.675.14-.902.373l-.014.014c-.266.26-.415.63-.377 1.022v.009c.054.635.664 1.182 1.413 1.182h1.9a.75.75 0 0 1 .75.75v1.19a4.518 4.518 0 0 1-4.51 4.51H7.997a.75.75 0 0 1-.482-1.325c.243-.203.457-.456.624-.743l.01-.016a3.17 3.17 0 0 0 .468-1.666 3.249 3.249 0 0 0-5.282-2.533.75.75 0 0 1-1.218-.587v-4.37Z"}),wo.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.467 2.655a1.15 1.15 0 0 0-1.554-1.079l-7.94 3a2.098 2.098 0 0 0-1.356 1.97v4.569a.75.75 0 1 1-1.5 0v-4.57c0-1.5.922-2.84 2.325-3.371l7.94-3c1.732-.657 3.585.629 3.585 2.481v3.8a.75.75 0 0 1-1.5 0v-3.8ZM19.846 12.405c-.359 0-.675.14-.903.373l-.013.014c-.266.26-.415.63-.377 1.022v.009c.053.635.664 1.182 1.413 1.182h1.943a.276.276 0 0 0 .267-.27v-2.06a.276.276 0 0 0-.267-.27h-2.063Zm-1.97-.68a2.743 2.743 0 0 1 1.97-.82h2.107a1.777 1.777 0 0 1 1.723 1.77v2.06a1.777 1.777 0 0 1-1.75 1.77h-1.96c-1.41 0-2.778-1.03-2.907-2.553a2.759 2.759 0 0 1 .816-2.227Z"}),wo.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.617 10.705a.75.75 0 0 1 .75-.75h7a.75.75 0 0 1 0 1.5h-7a.75.75 0 0 1-.75-.75ZM5.367 14.455c-.761 0-1.468.267-2.032.717h-.002a3.22 3.22 0 0 0-1.216 2.533c0 .61.17 1.183.469 1.666l.006.01a3.22 3.22 0 0 0 2.775 1.574 3.155 3.155 0 0 0 2.148-.825c.243-.203.457-.456.624-.743l.01-.016a3.17 3.17 0 0 0 .468-1.666 3.249 3.249 0 0 0-3.25-3.25ZM2.4 13.998a4.749 4.749 0 0 1 7.717 3.707 4.67 4.67 0 0 1-.687 2.446c-.25.427-.57.808-.94 1.12a4.655 4.655 0 0 1-3.123 1.184 4.72 4.72 0 0 1-4.061-2.301 4.67 4.67 0 0 1-.689-2.449A4.72 4.72 0 0 1 2.4 13.998Z"}),wo.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.785 16.106a.75.75 0 0 1 1.06-.003l2.12 2.11a.75.75 0 1 1-1.058 1.064l-2.12-2.11a.75.75 0 0 1-.002-1.061Z"}),wo.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.948 16.136a.75.75 0 0 1-.002 1.06l-2.12 2.11a.75.75 0 0 1-1.058-1.063l2.12-2.11a.75.75 0 0 1 1.06.003Z"})),"DeleteWalletIcon");Kt.toString=()=>"._icon";import*as zo from"react";var Qt=r(({size:o=16,color:e,...t})=>zo.createElement(F,{width:o,height:o,viewBox:"0 0 24 24",color:e,fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"_icon",...t},zo.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.686 7.205a3.018 3.018 0 0 0-3.01 3.01v3.076a4.749 4.749 0 0 1 6.5 4.414c0 .808-.205 1.579-.573 2.25h8.563a3.018 3.018 0 0 0 3.01-3.01v-.44h-1.15c-1.41 0-2.778-1.03-2.907-2.553a2.758 2.758 0 0 1 .816-2.227 2.743 2.743 0 0 1 1.97-.82h1.27v-.69a3.018 3.018 0 0 0-3.01-3.01H6.686Zm-4.51 3.01a4.518 4.518 0 0 1 4.51-4.51h11.48a4.518 4.518 0 0 1 4.51 4.51v1.44a.75.75 0 0 1-.75.75h-2.02c-.36 0-.675.14-.903.373l-.013.014c-.266.26-.415.63-.378 1.022l.001.009c.053.635.664 1.182 1.413 1.182h1.9a.75.75 0 0 1 .75.75v1.19a4.518 4.518 0 0 1-4.51 4.51H8.056a.75.75 0 0 1-.482-1.324c.243-.204.457-.457.624-.744l.01-.015a3.17 3.17 0 0 0 .468-1.667 3.249 3.249 0 0 0-5.283-2.533.75.75 0 0 1-1.217-.587v-4.37Z"}),zo.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.526 2.655a1.15 1.15 0 0 0-1.554-1.078l-7.94 3a2.098 2.098 0 0 0-1.356 1.968v4.57a.75.75 0 0 1-1.5 0v-4.57c0-1.5.921-2.84 2.324-3.371l7.94-3c1.733-.657 3.586.629 3.586 2.481v3.8a.75.75 0 0 1-1.5 0v-3.8ZM19.905 12.405c-.36 0-.675.14-.903.374l-.014.013c-.265.26-.414.63-.377 1.022l.001.01c.053.634.664 1.181 1.413 1.181h1.942a.276.276 0 0 0 .268-.27v-2.06a.276.276 0 0 0-.268-.27h-2.062Zm-1.971-.68a2.743 2.743 0 0 1 1.97-.82h2.107a1.777 1.777 0 0 1 1.724 1.77v2.06a1.777 1.777 0 0 1-1.75 1.77h-1.96c-1.41 0-2.778-1.03-2.907-2.553a2.758 2.758 0 0 1 .816-2.227Z"}),zo.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.676 10.705a.75.75 0 0 1 .75-.75h7a.75.75 0 0 1 0 1.5h-7a.75.75 0 0 1-.75-.75ZM5.426 14.455c-.762 0-1.469.267-2.033.717h-.001a3.22 3.22 0 0 0-1.216 2.533c0 .61.17 1.184.468 1.667l.006.01a3.22 3.22 0 0 0 2.776 1.573 3.155 3.155 0 0 0 2.148-.824c.243-.204.457-.457.624-.744l.01-.015a3.17 3.17 0 0 0 .468-1.667 3.249 3.249 0 0 0-3.25-3.25Zm-2.967-.457a4.749 4.749 0 0 1 7.717 3.707c0 .888-.248 1.73-.687 2.446-.25.427-.57.808-.941 1.12a4.656 4.656 0 0 1-3.122 1.184 4.72 4.72 0 0 1-4.062-2.301 4.671 4.671 0 0 1-.688-2.449 4.72 4.72 0 0 1 1.783-3.707Z"}),zo.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.538 16.215a.75.75 0 0 1-.042 1.06l-2.13 1.97a.75.75 0 0 1-1.04-.02l-.99-.99a.75.75 0 1 1 1.062-1.06l.48.48 1.6-1.48a.75.75 0 0 1 1.06.04Z"})),"CheckWalletIcon");Qt.toString=()=>"._icon";import*as bo from"react";var Rt=r(({size:o=16,color:e,...t})=>bo.createElement(F,{width:o,height:o,viewBox:"0 0 24 24",color:e,fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"_icon",...t},bo.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.244 7.205a3.018 3.018 0 0 0-3.01 3.01v1.73a.75.75 0 0 1-1.5 0v-1.73a4.518 4.518 0 0 1 4.51-4.51h11.48a4.518 4.518 0 0 1 4.51 4.51v1.44a.75.75 0 0 1-.75.75h-2.02c-.359 0-.674.14-.902.373l-.014.014c-.266.26-.414.63-.377 1.022v.009c.054.635.664 1.182 1.413 1.182h1.9a.75.75 0 0 1 .75.75v1.19a4.518 4.518 0 0 1-4.51 4.51h-5.48a.75.75 0 0 1 0-1.5h5.48a3.018 3.018 0 0 0 3.01-3.01v-.44h-1.15c-1.41 0-2.777-1.03-2.907-2.553a2.758 2.758 0 0 1 .817-2.227 2.743 2.743 0 0 1 1.97-.82h1.27v-.69a3.018 3.018 0 0 0-3.01-3.01H5.244Z"}),bo.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.084 2.655a1.15 1.15 0 0 0-1.554-1.078l-7.94 3a2.098 2.098 0 0 0-1.356 1.968v4.57a.75.75 0 0 1-1.5 0v-4.57c0-1.5.922-2.84 2.325-3.371l7.94-3c1.732-.657 3.585.629 3.585 2.481v3.8a.75.75 0 0 1-1.5 0v-3.8ZM18.463 12.405c-.359 0-.675.14-.902.374l-.014.013c-.266.26-.415.63-.377 1.022v.01c.053.634.664 1.181 1.413 1.181h1.943a.276.276 0 0 0 .267-.27v-2.06a.276.276 0 0 0-.267-.27h-2.063Zm-1.97-.68a2.743 2.743 0 0 1 1.97-.82h2.107a1.777 1.777 0 0 1 1.723 1.77v2.06a1.777 1.777 0 0 1-1.75 1.77h-1.96c-1.41 0-2.777-1.03-2.907-2.553a2.758 2.758 0 0 1 .816-2.227Z"}),bo.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.234 10.705a.75.75 0 0 1 .75-.75h7a.75.75 0 0 1 0 1.5h-7a.75.75 0 0 1-.75-.75ZM1.234 15.205a.75.75 0 0 1 .75-.75h5.34a1.91 1.91 0 0 1 1.91 1.91v1.28a.75.75 0 0 1-1.5 0v-1.28a.41.41 0 0 0-.41-.41h-5.34a.75.75 0 0 1-.75-.75Z"}),bo.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.735 13.455a.75.75 0 0 1 0 1.06l-.69.69.69.69a.75.75 0 1 1-1.061 1.06l-1.22-1.22a.75.75 0 0 1 0-1.06l1.22-1.22a.75.75 0 0 1 1.06 0ZM1.984 17.296a.75.75 0 0 1 .75.75v1.28c0 .225.185.41.41.41h5.34a.75.75 0 0 1 0 1.5h-5.34a1.91 1.91 0 0 1-1.91-1.91v-1.28a.75.75 0 0 1 .75-.75Z"}),bo.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.735 18.735a.75.75 0 0 1 1.061 0l1.22 1.22a.75.75 0 0 1 0 1.061l-1.22 1.22a.75.75 0 1 1-1.06-1.06l.689-.69-.69-.69a.75.75 0 0 1 0-1.06Z"})),"SwapWalletIcon");Rt.toString=()=>"._icon";import*as $o from"react";var Se=$o.forwardRef(({color:o="black",size:e=16,...t},n)=>$o.createElement(g,{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,color:o,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"_icon",...t,ref:n},$o.createElement("path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4"}),$o.createElement("polyline",{points:"16 17 21 12 16 7"}),$o.createElement("line",{x1:"21",y1:"12",x2:"9",y2:"12"})));Se.toString=()=>"._icon";import*as co from"react";var or=r(({size:o=16,color:e,...t})=>co.createElement(g,{width:o,height:o,viewBox:"0 0 32 32",color:e,fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"_icon",...t},co.createElement("g",{clipPath:"url(#a)",strokeWidth:1.5},co.createElement("path",{d:"M9.333 9.333V4.8a.8.8 0 0 1 .8-.8h11.734a.8.8 0 0 1 .8.8v4.533M13.333 4v5.333M16 4v5.333m9.333 17.334H6.667A2.667 2.667 0 0 1 4 24V12a2.667 2.667 0 0 1 2.667-2.667h18.666A2.667 2.667 0 0 1 28 12v12a2.667 2.667 0 0 1-2.667 2.667Z"}),co.createElement("path",{d:"M22 18.666a.667.667 0 1 1 0-1.334.667.667 0 0 1 0 1.334Z",fill:e,strokeLinecap:"round",strokeLinejoin:"round"})),co.createElement("defs",null,co.createElement("clipPath",{id:"a"},co.createElement("path",{fill:e,d:"M0 0h32v32H0z"})))),"BagIcon");or.toString=()=>"._icon";import*as Do from"react";var ke=Do.forwardRef(({size:o=16,...e},t)=>Do.createElement(g,{width:o,height:o,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"_icon",...e,ref:t},Do.createElement("circle",{cx:10,cy:10,r:7.25,strokeWidth:1.5}),Do.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.134 6.6a.6.6 0 0 0-1.2 0v4.27a.6.6 0 0 0 .28.507c.009.01.018.019.029.028l2.59 2.373a.472.472 0 0 0 .753-.109.763.763 0 0 0-.133-.919l-2.319-2.123V6.6Z"})));ke.toString=()=>"._icon";var mo=i(oe,{transform:"rotate(45deg)",cursor:"pointer"});mo.toString=()=>"._icon";import*as Ue from"react";var er=r(({size:o=16,color:e,...t})=>Ue.createElement(F,{width:o,height:o,color:e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 122.88 107.95",xmlSpace:"preserve",className:"_icon",...t},Ue.createElement("path",{d:"M82.19 0c1.22-.01 2.27.4 3.18 1.27l13.27 12.7c.86.82 1.28 1.91 1.3 3.11.02 1.22-.34 2.33-1.18 3.18l-7.06 7.35L72.09 8.67l6.99-7.28C79.94.5 80.98.02 82.19 0zM20.08 68.29a4.536 4.536 0 1 1 2.67 8.67c-6.98 2.14-11.66 6.28-13.21 10.17-.41 1.04-.55 1.99-.39 2.77.12.59.48 1.13 1.07 1.56 2.55 1.86 8.04 2.34 17.26.1 5.46-1.33 11.31-3.13 16.49-4.73 5.29-1.63 9.91-3.06 13.12-3.66 5.92-1.1 11.83-1.85 16.6-1.61 6.26.31 10.96 2.32 12.57 7.13 1.04 3.11.75 5.81.49 8.23-.09.87-.18 1.68-.14 2.21 0 .02.95-.05 5.53-.41 5.3-.42 10.79-2.51 16.21-4.58 2.78-1.06 5.54-2.11 8.67-3.07 2.4-.73 4.93.63 5.65 3.02.73 2.4-.63 4.93-3.02 5.65-2.43.74-5.24 1.82-8.06 2.89-6.04 2.3-12.14 4.63-18.74 5.15-12.07.95-14.87-2.46-15.3-7.95-.1-1.29.03-2.54.17-3.88.16-1.5.34-3.18-.07-4.39-.18-.54-1.89-.82-4.39-.94-3.99-.2-9.22.48-14.54 1.47-2.65.49-7.05 1.85-12.09 3.41-5.27 1.63-11.22 3.46-17.02 4.87-12.14 2.95-20.21 1.7-24.73-1.6-2.54-1.85-4.05-4.27-4.63-7-.54-2.54-.23-5.28.85-8 2.46-6.14 9.23-12.5 18.98-15.48zm21.19-19.84L53.3 60.02l-14.71 3.95c-.53.1-.74-.11-.65-.6l3.33-14.92zm24.6-33.34 19.59 18.87L58.7 62.23l-23.98 6.43c-.86.17-1.2-.17-1.06-.98l5.43-24.31 26.78-28.26z",style:{fillRule:"evenodd",clipRule:"evenodd"}})),"SignatureIcon");er.toString=()=>"._icon";import*as go from"react";var tr=r(({size:o=16,color:e,...t})=>go.createElement(F,{width:o,height:o,viewBox:"0 0 64 64",color:e,xmlns:"http://www.w3.org/2000/svg",className:"_icon",...t},go.createElement("g",{id:"Text-files"},go.createElement("path",{d:`M53.9791489,9.1429005H50.010849c-0.0826988,0-0.1562004,0.0283995-0.2331009,0.0469999V5.0228
1
+ var sr=Object.defineProperty;var r=(o,e)=>sr(o,"name",{value:e,configurable:!0});import lr,{useEffect as pr}from"react";import{i18n as ve}from"@lingui/core";import{I18nProvider as cr}from"@lingui/react";var dt=JSON.parse('{" Error connecting server, please reload the app and try again.":" Error connecting server, please reload the app and try again.","Transaction cost (fee)":"Transaction cost (fee)","Time estimate":"Time estimate","No routes found":"No routes found","Powered By":"Powered By","Change Slippage":"Change Slippage","Refresh":"Refresh","Transactions History":"Transactions History","Settings":"Settings","Bridges":"Bridges","Exchanges":"Exchanges","Connect Wallets":"Connect Wallets","Slippage tolerance":"Slippage tolerance","Custom":"Custom","Theme":"Theme","Dark":"Dark","Light":"Light","Auto":"Auto","Infinite Approval":"Infinite Approval","Liquidity Sources":"Liquidity Sources","Insufficent Balance:":"Insufficent Balance:","Connect Wallet":"Connect Wallet","Swap Details":"Swap Details","Balance":"Balance","Chain":"Chain","Token":"Token","From":"From","To":"To","Proceed anyway!":"Proceed anyway!","Confirm swap!":"Confirm swap!","SWAP":"SWAP","Select Wallet":"Select Wallet","Finding Best Route...":"Finding Best Route...","Enter an amount":"Enter an amount","Swap":"Swap","Limit Error":"Limit Error","Price impact is too high!":"Price impact is too high!","USD price is unknown, price impact might be high!":"USD price is unknown, price impact might be high!","The route goes through Ethereum. Continue?":"The route goes through Ethereum. Continue?","swap from":"From","maximum amount of asset":"Max","swapNotFound":["Swap with request ID = $",["requestId"]," not found."],"swap to":"To","highSlippage":[" Caution, your slippage is high (=",["selectedSlippage"],"). Your trade may be front run."],"increaseSlippage":["We recommend you to increase slippage to at least ",["minRequiredSlippage"]," for this route."]}');var mt=JSON.parse('{" Error connecting server, please reload the app and try again.":" Error connecting server, please reload the app and try again.","Transaction cost (fee)":"Transaction cost (fee)","Time estimate":"Time estimate","No routes found":"No routes found","Powered By":"Powered By","Change Slippage":"Change Slippage","Refresh":"Refresh","Transactions History":"Transactions History","Settings":"Settings","Bridges":"Bridges","Exchanges":"Exchanges","Connect Wallets":"Connect Wallets","Slippage tolerance":"Slippage tolerance","Custom":"Custom","Theme":"Theme","Dark":"Dark","Light":"Light","Auto":"Auto","Infinite Approval":"Infinite Approval","Liquidity Sources":"Liquidity Sources","Insufficent Balance:":"Insufficent Balance:","Connect Wallet":"Connect Wallet","Swap Details":"Swap Details","Balance":"Balance","Chain":"Chain","Token":"Token","From":"From","To":"To","Proceed anyway!":"Proceed anyway!","Confirm swap!":"Confirm swap!","SWAP":"SWAP","Select Wallet":"Select Wallet","Finding Best Route...":"Finding Best Route...","Enter an amount":"Enter an amount","Swap":"Swap","Limit Error":"Limit Error","Price impact is too high!":"Price impact is too high!","USD price is unknown, price impact might be high!":"USD price is unknown, price impact might be high!","The route goes through Ethereum. Continue?":"The route goes through Ethereum. Continue?","swap from":"From","maximum amount of asset":"Max","swapNotFound":["Swap with request ID = $",["requestId"]," not found."],"swap to":"To","highSlippage":[" Caution, your slippage is high (=",["selectedSlippage"],"). Your trade may be front run."],"increaseSlippage":["We recommend you to increase slippage to at least ",["minRequiredSlippage"]," for this route."]}');var gt=JSON.parse('{" Error connecting server, please reload the app and try again.":" Error connecting server, please reload the app and try again.","Transaction cost (fee)":"Transaction cost (fee)","Time estimate":"Time estimate","No routes found":"No routes found","Powered By":"Powered By","Change Slippage":"Change Slippage","Refresh":"Refresh","Transactions History":"Transactions History","Settings":"Settings","Bridges":"Bridges","Exchanges":"Exchanges","Connect Wallets":"Connect Wallets","Slippage tolerance":"Slippage tolerance","Custom":"Custom","Theme":"Theme","Dark":"Dark","Light":"Light","Auto":"Auto","Infinite Approval":"Infinite Approval","Liquidity Sources":"Liquidity Sources","Insufficent Balance:":"Insufficent Balance:","Connect Wallet":"Connect Wallet","Swap Details":"Swap Details","Balance":"Balance","Chain":"Chain","Token":"Token","From":"From","To":"To","Proceed anyway!":"Proceed anyway!","Confirm swap!":"Confirm swap!","SWAP":"SWAP","Select Wallet":"Select Wallet","Finding Best Route...":"Finding Best Route...","Enter an amount":"Enter an amount","Swap":"Swap","Limit Error":"Limit Error","Price impact is too high!":"Price impact is too high!","USD price is unknown, price impact might be high!":"USD price is unknown, price impact might be high!","The route goes through Ethereum. Continue?":"The route goes through Ethereum. Continue?","swap from":"From","maximum amount of asset":"Max","swapNotFound":["Swap with request ID = $",["requestId"]," not found."],"swap to":"To","highSlippage":[" Caution, your slippage is high (=",["selectedSlippage"],"). Your trade may be front run."],"increaseSlippage":["We recommend you to increase slippage to at least ",["minRequiredSlippage"]," for this route."]}');var ht=JSON.parse('{" Error connecting server, please reload the app and try again.":" Error connecting server, please reload the app and try again.","Transaction cost (fee)":"Transaction cost (fee)","Time estimate":"Time estimate","No routes found":"No routes found","Powered By":"Powered By","Change Slippage":"Change Slippage","Refresh":"Refresh","Transactions History":"Transactions History","Settings":"Settings","Bridges":"Bridges","Exchanges":"Exchanges","Connect Wallets":"Connect Wallets","Slippage tolerance":"Slippage tolerance","Custom":"Custom","Theme":"Theme","Dark":"Dark","Light":"Light","Auto":"Auto","Infinite Approval":"Infinite Approval","Liquidity Sources":"Liquidity Sources","Insufficent Balance:":"Insufficent Balance:","Connect Wallet":"Connect Wallet","Swap Details":"Swap Details","Balance":"Balance","Chain":"Chain","Token":"Token","From":"From","To":"To","Proceed anyway!":"Proceed anyway!","Confirm swap!":"Confirm swap!","SWAP":"SWAP","Select Wallet":"Select Wallet","Finding Best Route...":"Finding Best Route...","Enter an amount":"Enter an amount","Swap":"Swap","Limit Error":"Limit Error","Price impact is too high!":"Price impact is too high!","USD price is unknown, price impact might be high!":"USD price is unknown, price impact might be high!","The route goes through Ethereum. Continue?":"The route goes through Ethereum. Continue?","swap from":"From","maximum amount of asset":"Max","swapNotFound":["Swap with request ID = $",["requestId"]," not found."],"swap to":"To","highSlippage":[" Caution, your slippage is high (=",["selectedSlippage"],"). Your trade may be front run."],"increaseSlippage":["We recommend you to increase slippage to at least ",["minRequiredSlippage"]," for this route."]}');var dr="en",mr={en:dt,es:mt,jp:gt,fr:ht};ve.load(mr);function gr(o){return pr(()=>{ve.activate(o?.language||dr)},[o?.language]),lr.createElement(cr,{i18n:ve},o.children)}r(gr,"I18nManager");import D from"react";import*as Se from"react";import{createStitches as hr}from"@stitches/react";var ur={colors:{primary:"#5FA425",primary100:"#9FC87C",primary200:"#8FBF66",primary300:"#7FB651",primary400:"#6FAD3B",primary500:"#5FA425",primary600:"#4C831E",primary700:"#396216",primary800:"#26420F",primary900:"#132107",surface:"#fff",neutral100:"#f3f3f3",neutral200:"#FAFAFA",neutral300:"#EAEAEA",neutral400:"#999999",neutral500:"#888888",neutral600:"#666666",neutral700:"#444444",neutral800:"#333333",neutral900:"#111111",background:"#fff",foreground:"#000",success:"#0070F3",success100:"#D3E5FF",success300:"#3291FF",success500:"#0070F3",success700:"#0761D1",warning:"#F5A623",warning100:"#FFEFCF",warning300:"#F7B955",warning500:"#F5A623",warning700:"#AB570A",error:"#FF0000",error100:"#F7D4D6",error300:"#FF3333",error500:"#FF0000",error700:"#E60000",white:"#fff"},space:{2:"2px",4:"4px",6:"6px",8:"8px",10:"10px",12:"12px",16:"16px",20:"20px",24:"24px",28:"28px",30:"30px",32:"32px"},fontSizes:{10:"10px",12:"12px",14:"14px",16:"16px",18:"18px",20:"20px",24:"24px",32:"32px",36:"36px",40:"40px",48:"48px"},fonts:{},fontWeights:{400:"400",500:"500",600:"600",700:"700"},lineHeights:{},letterSpacings:{},sizes:{4:"4px",6:"6px",8:"8px",12:"12px",16:"16px",20:"20px",24:"24px",28:"28px",32:"32px",36:"36px",40:"40px",48:"48px"},borderWidths:{},borderStyles:{},radii:{5:"8px",10:"12px"},shadows:{s:"0px 3px 5px 3px #f0f2f5, 0px 6px 10px 3px #f0f2f5, 0px 1px 18px 3px #f0f2f5"},zIndices:{},transitions:{}},fr={sm:"(min-width: 640px)",md:"(min-width: 768px)",lg:"(min-width: 1024px)"},yr={bc:o=>({backgroundColor:o})},xr=hr,{styled:i,css:cs,createTheme:ut,keyframes:ko,globalCss:ds,config:ms}=xr({media:fr,theme:ur,utils:yr}),gs=ut({}),X=ut({colors:{surface:"#000",neutral900:"#f3f3f3",neutral800:"#FAFAFA",neutral700:"#EAEAEA",neutral600:"#999999",neutral500:"#888888",neutral400:"#666666",neutral300:"#444444",neutral200:"#333333",neutral100:"#111111",foreground:"#fff",background:"#000"},shadows:{s:"0px 3px 5px 3px #222, 0px 6px 10px 3px #222, 0px 1px 18px 3px #222"}});var g=i("svg",{stroke:"$foreground",variants:{color:{primary:{stroke:"$primary"},error:{stroke:"$error"},warning:{stroke:"$warning"},success:{stroke:"$success"},black:{$$color:"$colors$foreground",[`.${X} &`]:{$$color:"$colors$background"},stroke:"$$color"},white:{$$color:"$colors$background",[`.${X} &`]:{$$color:"$colors$foreground"},stroke:"$$color"}},disabled:{true:{stroke:"$neutral400"}}}}),I=i("svg",{fill:"$foreground",variants:{color:{primary:{fill:"$primary"},error:{fill:"$error"},warning:{fill:"$warning"},success:{fill:"$success"},black:{$$color:"$colors$foreground",[`.${X} &`]:{$$color:"$colors$background"},fill:"$$color"},white:{$$color:"$colors$background",[`.${X} &`]:{$$color:"$colors$foreground"},fill:"$$color"}},disabled:{true:{stroke:"$neutral400"}}}});var ft=r(({size:o=16,color:e,...t})=>Se.createElement(g,{width:o,height:o,viewBox:"0 0 24 24",color:e,fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"_icon",...t},Se.createElement("path",{d:"M12 22c5.5 0 10-4.5 10-10S17.5 2 12 2 2 6.5 2 12s4.5 10 10 10ZM9.17 14.83l5.66-5.66M14.83 14.83 9.17 9.17",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),"DeleteCircleIcon");ft.toString=()=>"._icon";import*as Go from"react";var yt=r(({size:o=16,color:e,...t})=>Go.createElement(g,{width:o,height:o,viewBox:"0 0 24 24",color:e,fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"_icon",...t},Go.createElement("path",{d:"M9 22h6c5 0 7-2 7-7V9c0-5-2-7-7-7H9C4 2 2 4 2 9v6c0 5 2 7 7 7Z",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),Go.createElement("path",{d:"m7.75 12 2.83 2.83 5.67-5.66",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),"CheckSquareIcon");yt.toString=()=>"._icon";import*as we from"react";var Oo=r(({size:o=16,color:e,...t})=>we.createElement(g,{width:o,height:o,viewBox:"0 0 24 24",color:e,fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"_icon",...t},we.createElement("path",{d:"M6 12h12M12 18V6",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),"AddIcon");Oo.toString=()=>"._icon";import*as Uo from"react";var bo=r(({size:o=16,color:e,...t})=>Uo.createElement(I,{width:o,height:o,viewBox:"0 0 24 24",color:e,fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"_icon",...t},Uo.createElement("path",{d:"M12 22c5.5 0 10-4.5 10-10S17.5 2 12 2 2 6.5 2 12s4.5 10 10 10ZM12 8v5",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",stroke:"#fff"}),Uo.createElement("path",{d:"M11.994 16h.01",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",stroke:"#fff"})),"InfoCircleIcon");bo.toString=()=>"._icon";import*as ke from"react";var xt=r(({size:o=16,color:e,...t})=>ke.createElement(g,{width:o,height:o,viewBox:"0 0 24 24",color:e,fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"_icon",...t},ke.createElement("path",{d:"M12 22c5.5 0 10-4.5 10-10S17.5 2 12 2 2 6.5 2 12s4.5 10 10 10ZM8 12h8M12 16V8",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),"AddCircleIcon");xt.toString=()=>"._icon";import*as be from"react";var Ct=r(({size:o=16,color:e,...t})=>be.createElement(g,{width:o,height:o,viewBox:"0 0 24 24",color:e,fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"_icon",...t},be.createElement("path",{d:"M11.92 22c5.5 0 10-4.5 10-10s-4.5-10-10-10-10 4.5-10 10 4.5 10 10 10ZM7.92 12h8",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),"MinusCircleIcon");Ct.toString=()=>"._icon";import*as Yo from"react";var $o=r(({size:o=16,color:e,...t})=>Yo.createElement(I,{width:o,height:o,viewBox:"0 0 24 24",color:e,fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"_icon",...t},Yo.createElement("path",{d:"M12 22c5.5 0 10-4.5 10-10S17.5 2 12 2 2 6.5 2 12s4.5 10 10 10Z",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round",stroke:"#fff"}),Yo.createElement("path",{d:"m7.75 12 2.83 2.83 5.67-5.66",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round",stroke:"#fff"})),"CheckCircleIcon");$o.toString=()=>"._icon";import*as $e from"react";var Jo=r(({size:o=16,color:e,...t})=>$e.createElement(I,{width:o,height:o,viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:e,className:"_icon",...t},$e.createElement("path",{d:"M11.4669 3.72684C11.7558 3.91574 11.8369 4.30308 11.648 4.59198L7.39799 11.092C7.29783 11.2452 7.13556 11.3467 6.95402 11.3699C6.77247 11.3931 6.58989 11.3355 6.45446 11.2124L3.70446 8.71241C3.44905 8.48022 3.43023 8.08494 3.66242 7.82953C3.89461 7.57412 4.28989 7.55529 4.5453 7.78749L6.75292 9.79441L10.6018 3.90792C10.7907 3.61902 11.178 3.53795 11.4669 3.72684Z",fillRule:"evenodd",clipRule:"evenodd"})),"CheckIcon");Jo.toString=()=>"._icon";import*as Te from"react";var vt=r(({size:o=16,color:e,...t})=>Te.createElement(g,{width:o,height:o,viewBox:"0 0 24 24",color:e,fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"_icon",...t},Te.createElement("path",{d:"M12 22c5.52 0 10-4.48 10-10S17.52 2 12 2 2 6.48 2 12s4.48 10 10 10ZM18.9 5l-14 14",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"})),"BanIcon");vt.toString=()=>"._icon";import*as Xo from"react";var Ko=r(({size:o=16,color:e,...t})=>Xo.createElement(g,{width:o,height:o,viewBox:"0 0 24 24",color:e,fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"_icon",...t},Xo.createElement("path",{d:"M12 9v5M12 21.41H5.94c-3.47 0-4.92-2.48-3.24-5.51l3.12-5.62L8.76 5c1.78-3.21 4.7-3.21 6.48 0l2.94 5.29 3.12 5.62c1.68 3.03.22 5.51-3.24 5.51H12v-.01Z",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),Xo.createElement("path",{d:"M11.994 17h.01",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),"WarningIcon");Ko.toString=()=>"._icon";import*as po from"react";var Qo=r(({size:o=16,color:e,...t})=>po.createElement(g,{width:o,height:o,viewBox:"0 0 24 24",color:e,fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",xmlns:"http://www.w3.org/2000/svg",className:"_icon",...t},po.createElement("path",{d:"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"}),po.createElement("polyline",{points:"14 2 14 8 20 8"}),po.createElement("line",{x1:"16",y1:"13",x2:"8",y2:"13"}),po.createElement("line",{x1:"16",y1:"17",x2:"8",y2:"17"}),po.createElement("polyline",{points:"10 9 9 9 8 9"})),"HistoryIcon");Qo.toString=()=>"._icon";import*as Ro from"react";var To=r(({size:o=16,color:e,...t})=>Ro.createElement(g,{width:o,height:o,viewBox:"0 0 24 24",color:e,fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"_icon",...t},Ro.createElement("path",{d:"M4 22V5c0-2 1.34-3 3-3h8c1.66 0 3 1 3 3v17H4ZM2.5 22h17",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),Ro.createElement("path",{d:"M8.89 10h4.23c1.04 0 1.89-.5 1.89-1.89V6.88c0-1.39-.85-1.89-1.89-1.89H8.89C7.85 4.99 7 5.49 7 6.88v1.23C7 9.5 7.85 10 8.89 10ZM7 13h3M18 16.01l4.5-.01v-6l-2-1",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),"GasIcon");To.toString=()=>"._icon";import*as oe from"react";var ee=r(({size:o=16,color:e,...t})=>oe.createElement(g,{width:o,height:o,viewBox:"0 0 24 24",color:e,stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"_icon",...t},oe.createElement("circle",{cx:"12",cy:"12",r:"3"}),oe.createElement("path",{d:"M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z"})),"SettingsIcon");ee.toString=()=>"._icon";import*as Ie from"react";var St=r(({size:o=16,color:e,...t})=>Ie.createElement(g,{width:o,height:o,viewBox:"0 0 24 24",color:e,fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"_icon",...t},Ie.createElement("path",{d:"M21.5 5.98c-3.33-.33-6.68-.5-10.02-.5-1.98 0-3.96.1-5.94.3l-2.04.2M9 4.97l.22-1.31C9.38 2.71 9.5 2 11.19 2h2.62c1.69 0 1.82.75 1.97 1.67l.22 1.3M19.35 9.14l-.65 10.07c-.11 1.57-.2 2.79-2.99 2.79H9.29c-2.79 0-2.88-1.22-2.99-2.79L5.65 9.14M10.83 16.5h3.33M10 12.5h5",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),"TrashIcon");St.toString=()=>"._icon";import*as Pe from"react";var wt=r(({size:o=16,color:e,...t})=>Pe.createElement(g,{width:o,height:o,viewBox:"0 0 24 24",color:e,fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"_icon",...t},Pe.createElement("path",{d:"M9 11.7h5M11.5 21a9.5 9.5 0 1 0 0-19 9.5 9.5 0 0 0 0 19ZM22 22l-2-2",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),"SearchMinusIcon");wt.toString=()=>"._icon";import*as Le from"react";var te=r(({size:o=16,color:e,...t})=>Le.createElement(g,{width:o,height:o,viewBox:"0 0 24 24",color:e,fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"_icon",...t},Le.createElement("path",{d:"M11.5 21a9.5 9.5 0 1 0 0-19 9.5 9.5 0 0 0 0 19ZM22 22l-2-2",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),"SearchIcon");te.toString=()=>"._icon";import*as We from"react";var re=r(({size:o=16,color:e,...t})=>We.createElement(g,{width:o,height:o,fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",color:e,className:"_icon",...t},We.createElement("path",{d:"m8.91 19.92 6.52-6.52c.77-.77.77-2.03 0-2.8L8.91 4.08",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"})),"AngleRightIcon");re.toString=()=>"._icon";import*as Be from"react";var kt=r(({size:o=16,color:e,...t})=>Be.createElement(g,{width:o,height:o,fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",color:e,className:"_icon",...t},Be.createElement("path",{d:"M19.92 15.05 13.4 8.53c-.77-.77-2.03-.77-2.8 0l-6.52 6.52",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"})),"AngleUpIcon");kt.toString=()=>"._icon";import bt from"react";var ie=r(({size:o=16,color:e,...t})=>bt.createElement(g,{width:o,height:o,viewBox:"0 0 24 24",color:e,fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"_icon",...t},bt.createElement("path",{d:"m19.92 8.95-6.52 6.52c-.77.77-2.03.77-2.8 0L4.08 8.95",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"})),"AngleDownIcon");ie.toString=()=>"._icon";import*as Me from"react";var Fe=r(({size:o=16,color:e,...t})=>Me.createElement(g,{width:o,height:o,fill:"none",viewBox:"0 0 24 24",color:e,xmlns:"http://www.w3.org/2000/svg",className:"_icon",...t},Me.createElement("path",{d:"M15 19.92 8.48 13.4c-.77-.77-.77-2.03 0-2.8L15 4.08",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"})),"AngleLeftIcon");ie.toString=()=>"._icon";import*as ne from"react";var ae=r(({size:o=16,color:e,...t})=>ne.createElement(g,{width:o,height:o,viewBox:"0 0 24 24",color:e,fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"_icon",...t},ne.createElement("path",{d:"M16.44 8.9c3.6.31 5.07 2.16 5.07 6.21v.13c0 4.47-1.79 6.26-6.26 6.26H8.74c-4.47 0-6.26-1.79-6.26-6.26v-.13c0-4.02 1.45-5.87 4.99-6.2M12 2v12.88",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),ne.createElement("path",{d:"M15.35 12.65 12 16l-3.35-3.35",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),"DownloadIcon");ae.toString=()=>"._icon";import*as Do from"react";var $t=Do.forwardRef(({color:o="black",size:e=16,...t},n)=>Do.createElement(g,{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,color:o,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"_icon",...t,ref:n},Do.createElement("polyline",{points:"9 18 15 12 9 6"})));$t.toString=()=>"._icon";import*as se from"react";var le=r(({size:o=16,color:e,...t})=>se.createElement(g,{width:o,height:o,viewBox:"0 0 24 24",color:e,fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",xmlns:"http://www.w3.org/2000/svg",className:"_icon",...t},se.createElement("line",{x1:"5",y1:"12",x2:"19",y2:"12"}),se.createElement("polyline",{points:"12 5 19 12 12 19"})),"ArrowRightIcon");le.toString=()=>"._icon";import*as Ae from"react";var Tt=r(({size:o=16,color:e,...t})=>Ae.createElement(g,{width:o,height:o,viewBox:"0 0 24 24",color:e,fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"_icon",...t},Ae.createElement("path",{d:"M14.89 5.08c-.87-.26-1.83-.43-2.89-.43-4.79 0-8.67 3.88-8.67 8.67C3.33 18.12 7.21 22 12 22s8.67-3.88 8.67-8.67c0-1.78-.54-3.44-1.46-4.82M16.13 5.32 13.24 2M16.13 5.32l-3.37 2.46",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),"RetryRightIcon");Tt.toString=()=>"._icon";import*as Ne from"react";var It=r(({size:o=16,color:e,...t})=>Ne.createElement(g,{width:o,height:o,viewBox:"0 0 24 24",color:e,fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"_icon",...t},Ne.createElement("path",{d:"M9.11 5.08c.87-.26 1.83-.43 2.89-.43 4.79 0 8.67 3.88 8.67 8.67s-3.88 8.67-8.67 8.67-8.67-3.88-8.67-8.67c0-1.78.54-3.44 1.46-4.82M7.87 5.32 10.76 2M7.87 5.32l3.37 2.46",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),"RetryLeftIcon");It.toString=()=>"._icon";import*as De from"react";var Pt=r(({size:o=16,color:e,...t})=>De.createElement(g,{width:o,height:o,viewBox:"0 0 24 24",color:e,fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"_icon",...t},De.createElement("path",{d:"M22 12c0 5.52-4.48 10-10 10s-8.89-5.56-8.89-5.56m0 0h4.52m-4.52 0v5M2 12C2 6.48 6.44 2 12 2c6.67 0 10 5.56 10 5.56m0 0v-5m0 5h-4.44",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),"TryAgainIcon");Pt.toString=()=>"._icon";import*as pe from"react";var Lt=r(({size:o=16,color:e,...t})=>pe.createElement(g,{width:o,height:o,viewBox:"0 0 24 24",color:e,fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"_icon",...t},pe.createElement("path",{d:"m13.82 6.85 3.04 3.04M13.82 17.15V6.85M10.18 17.15l-3.04-3.04M10.18 6.85v10.3",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),pe.createElement("path",{d:"M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10Z",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),"VerticalSwapIcon");Lt.toString=()=>"._icon";import*as ce from"react";var Wt=r(({size:o=16,color:e,...t})=>ce.createElement(g,{width:o,height:o,viewBox:"0 0 24 24",color:e,fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"_icon",...t},ce.createElement("path",{d:"m17.15 13.82-3.04 3.04M6.85 13.82h10.3M6.85 10.18l3.04-3.04M17.15 10.18H6.85",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),ce.createElement("path",{d:"M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10Z",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),"HorizontalSwapIcon");Wt.toString=()=>"._icon";import*as Io from"react";var de=Io.forwardRef(({color:o="black",size:e=16,...t},n)=>Io.createElement(g,{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,color:o,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"_icon",...t,ref:n},Io.createElement("polyline",{points:"23 4 23 10 17 10"}),Io.createElement("path",{d:"M20.49 15a9 9 0 1 1-2.12-9.36L23 10"})));de.toString=()=>"._icon";import*as zo from"react";var Bt=r(({size:o=16,color:e,...t})=>zo.createElement(I,{width:o,height:o,viewBox:"0 0 24 24",color:e,fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"_icon",...t},zo.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.51 7.205a3.018 3.018 0 0 0-3.01 3.01v6.73a3.018 3.018 0 0 0 3.01 3.01h11.48a3.018 3.018 0 0 0 3.01-3.01v-.44h-1.15c-1.41 0-2.778-1.03-2.907-2.553a2.758 2.758 0 0 1 .816-2.227 2.743 2.743 0 0 1 1.971-.82H19v-.69a3.018 3.018 0 0 0-3.01-3.01H4.51ZM0 10.215a4.518 4.518 0 0 1 4.51-4.51h11.48a4.518 4.518 0 0 1 4.51 4.51v1.44a.75.75 0 0 1-.75.75h-2.02c-.36 0-.675.14-.903.373l-.013.014c-.266.26-.415.63-.377 1.022v.009c.053.635.664 1.182 1.413 1.182h1.9a.75.75 0 0 1 .75.75v1.19a4.518 4.518 0 0 1-4.51 4.51H4.51A4.518 4.518 0 0 1 0 16.945v-6.73Z"}),zo.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.35 2.655a1.15 1.15 0 0 0-1.554-1.079l-7.94 3A2.098 2.098 0 0 0 1.5 6.547v4.569a.75.75 0 1 1-1.5 0v-4.57c0-1.5.922-2.84 2.325-3.371l7.94-3s-.001 0 0 0c1.732-.657 3.585.629 3.585 2.481v3.8a.75.75 0 0 1-1.5 0v-3.8ZM17.729 12.405c-.36 0-.675.14-.903.373l-.013.014c-.266.26-.415.63-.377 1.022v.009c.053.635.664 1.182 1.413 1.182h1.943a.276.276 0 0 0 .267-.27v-2.06a.276.276 0 0 0-.267-.27h-2.063Zm-1.97-.68a2.743 2.743 0 0 1 1.97-.82h2.107a1.777 1.777 0 0 1 1.723 1.77v2.06a1.777 1.777 0 0 1-1.75 1.77h-1.96c-1.41 0-2.778-1.03-2.907-2.553a2.759 2.759 0 0 1 .816-2.227Z"}),zo.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.5 10.705a.75.75 0 0 1 .75-.75h7a.75.75 0 0 1 0 1.5h-7a.75.75 0 0 1-.75-.75Z"})),"WalletIcon");Bt.toString=()=>"._icon";import*as co from"react";var Mt=r(({size:o=16,color:e,...t})=>co.createElement(I,{width:o,height:o,viewBox:"0 0 24 24",color:e,fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"_icon",...t},co.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.569 7.205a3.018 3.018 0 0 0-3.01 3.01v3.076a4.749 4.749 0 0 1 6.5 4.414c0 .808-.206 1.579-.574 2.25h8.564a3.018 3.018 0 0 0 3.01-3.01v-.44h-1.15c-1.41 0-2.778-1.03-2.907-2.553a2.758 2.758 0 0 1 .816-2.227 2.743 2.743 0 0 1 1.97-.82h1.27v-.69a3.018 3.018 0 0 0-3.01-3.01H6.569Zm-4.51 3.01a4.518 4.518 0 0 1 4.51-4.51h11.48a4.518 4.518 0 0 1 4.51 4.51v1.44a.75.75 0 0 1-.75.75h-2.02c-.36 0-.675.14-.903.373l-.014.014c-.266.26-.414.63-.377 1.022l.001.009c.053.635.664 1.182 1.413 1.182h1.9a.75.75 0 0 1 .75.75v1.19a4.518 4.518 0 0 1-4.51 4.51H7.939a.75.75 0 0 1-.482-1.324c.243-.204.457-.457.624-.744l.01-.015a3.17 3.17 0 0 0 .468-1.667 3.249 3.249 0 0 0-5.283-2.533.75.75 0 0 1-1.217-.587v-4.37Z"}),co.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.409 2.655a1.15 1.15 0 0 0-1.555-1.078l-7.94 3a2.098 2.098 0 0 0-1.355 1.968v4.57a.75.75 0 0 1-1.5 0v-4.57c0-1.5.921-2.84 2.324-3.371l7.94-3c1.733-.657 3.586.629 3.586 2.481v3.8a.75.75 0 0 1-1.5 0v-3.8ZM19.787 12.405c-.359 0-.674.14-.902.374l-.014.013c-.266.26-.414.63-.377 1.022v.01c.054.634.664 1.181 1.413 1.181h1.943a.276.276 0 0 0 .267-.27v-2.06a.276.276 0 0 0-.267-.27h-2.063Zm-1.97-.68a2.743 2.743 0 0 1 1.97-.82h2.107a1.777 1.777 0 0 1 1.723 1.77v2.06a1.777 1.777 0 0 1-1.75 1.77h-1.96c-1.41 0-2.777-1.03-2.907-2.553a2.759 2.759 0 0 1 .817-2.227Z"}),co.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.559 10.705a.75.75 0 0 1 .75-.75h7a.75.75 0 0 1 0 1.5h-7a.75.75 0 0 1-.75-.75ZM5.309 14.455c-.762 0-1.469.267-2.033.717h-.001a3.22 3.22 0 0 0-1.216 2.533c0 .61.17 1.184.468 1.667l.006.01a3.22 3.22 0 0 0 2.776 1.573 3.155 3.155 0 0 0 2.148-.824c.243-.204.457-.457.624-.744l.01-.015a3.17 3.17 0 0 0 .468-1.667 3.249 3.249 0 0 0-3.25-3.25Zm-2.967-.457a4.749 4.749 0 0 1 7.717 3.707c0 .888-.248 1.73-.687 2.446-.25.427-.57.808-.941 1.12a4.656 4.656 0 0 1-3.122 1.184 4.72 4.72 0 0 1-4.062-2.301 4.671 4.671 0 0 1-.688-2.449 4.72 4.72 0 0 1 1.783-3.707Z"}),co.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.07 17.685a.75.75 0 0 1 .75-.75H6.8a.75.75 0 0 1 0 1.5H3.82a.75.75 0 0 1-.75-.75Z"}),co.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.309 15.475a.75.75 0 0 1 .75.75v2.99a.75.75 0 0 1-1.5 0v-2.99a.75.75 0 0 1 .75-.75Z"})),"AddWalletIcon");Mt.toString=()=>"._icon";import*as mo from"react";var Ft=r(({size:o=16,color:e,...t})=>mo.createElement(I,{width:o,height:o,viewBox:"0 0 24 24",color:e,fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"_icon",...t},mo.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.627 7.205a3.018 3.018 0 0 0-3.01 3.01v3.076a4.749 4.749 0 0 1 6.5 4.414c0 .808-.205 1.579-.573 2.25h8.563a3.018 3.018 0 0 0 3.01-3.01v-.44h-1.15c-1.41 0-2.777-1.03-2.907-2.553a2.759 2.759 0 0 1 .817-2.227 2.743 2.743 0 0 1 1.97-.82h1.27v-.69a3.018 3.018 0 0 0-3.01-3.01H6.627Zm-4.51 3.01a4.518 4.518 0 0 1 4.51-4.51h11.48a4.518 4.518 0 0 1 4.51 4.51v1.44a.75.75 0 0 1-.75.75h-2.02c-.359 0-.675.14-.902.373l-.014.014c-.266.26-.415.63-.377 1.022v.009c.054.635.664 1.182 1.413 1.182h1.9a.75.75 0 0 1 .75.75v1.19a4.518 4.518 0 0 1-4.51 4.51H7.997a.75.75 0 0 1-.482-1.325c.243-.203.457-.456.624-.743l.01-.016a3.17 3.17 0 0 0 .468-1.666 3.249 3.249 0 0 0-5.282-2.533.75.75 0 0 1-1.218-.587v-4.37Z"}),mo.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.467 2.655a1.15 1.15 0 0 0-1.554-1.079l-7.94 3a2.098 2.098 0 0 0-1.356 1.97v4.569a.75.75 0 1 1-1.5 0v-4.57c0-1.5.922-2.84 2.325-3.371l7.94-3c1.732-.657 3.585.629 3.585 2.481v3.8a.75.75 0 0 1-1.5 0v-3.8ZM19.846 12.405c-.359 0-.675.14-.903.373l-.013.014c-.266.26-.415.63-.377 1.022v.009c.053.635.664 1.182 1.413 1.182h1.943a.276.276 0 0 0 .267-.27v-2.06a.276.276 0 0 0-.267-.27h-2.063Zm-1.97-.68a2.743 2.743 0 0 1 1.97-.82h2.107a1.777 1.777 0 0 1 1.723 1.77v2.06a1.777 1.777 0 0 1-1.75 1.77h-1.96c-1.41 0-2.778-1.03-2.907-2.553a2.759 2.759 0 0 1 .816-2.227Z"}),mo.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.617 10.705a.75.75 0 0 1 .75-.75h7a.75.75 0 0 1 0 1.5h-7a.75.75 0 0 1-.75-.75ZM5.367 14.455c-.761 0-1.468.267-2.032.717h-.002a3.22 3.22 0 0 0-1.216 2.533c0 .61.17 1.183.469 1.666l.006.01a3.22 3.22 0 0 0 2.775 1.574 3.155 3.155 0 0 0 2.148-.825c.243-.203.457-.456.624-.743l.01-.016a3.17 3.17 0 0 0 .468-1.666 3.249 3.249 0 0 0-3.25-3.25ZM2.4 13.998a4.749 4.749 0 0 1 7.717 3.707 4.67 4.67 0 0 1-.687 2.446c-.25.427-.57.808-.94 1.12a4.655 4.655 0 0 1-3.123 1.184 4.72 4.72 0 0 1-4.061-2.301 4.67 4.67 0 0 1-.689-2.449A4.72 4.72 0 0 1 2.4 13.998Z"}),mo.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.785 16.106a.75.75 0 0 1 1.06-.003l2.12 2.11a.75.75 0 1 1-1.058 1.064l-2.12-2.11a.75.75 0 0 1-.002-1.061Z"}),mo.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.948 16.136a.75.75 0 0 1-.002 1.06l-2.12 2.11a.75.75 0 0 1-1.058-1.063l2.12-2.11a.75.75 0 0 1 1.06.003Z"})),"DeleteWalletIcon");Ft.toString=()=>"._icon";import*as Po from"react";var At=r(({size:o=16,color:e,...t})=>Po.createElement(I,{width:o,height:o,viewBox:"0 0 24 24",color:e,fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"_icon",...t},Po.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.686 7.205a3.018 3.018 0 0 0-3.01 3.01v3.076a4.749 4.749 0 0 1 6.5 4.414c0 .808-.205 1.579-.573 2.25h8.563a3.018 3.018 0 0 0 3.01-3.01v-.44h-1.15c-1.41 0-2.778-1.03-2.907-2.553a2.758 2.758 0 0 1 .816-2.227 2.743 2.743 0 0 1 1.97-.82h1.27v-.69a3.018 3.018 0 0 0-3.01-3.01H6.686Zm-4.51 3.01a4.518 4.518 0 0 1 4.51-4.51h11.48a4.518 4.518 0 0 1 4.51 4.51v1.44a.75.75 0 0 1-.75.75h-2.02c-.36 0-.675.14-.903.373l-.013.014c-.266.26-.415.63-.378 1.022l.001.009c.053.635.664 1.182 1.413 1.182h1.9a.75.75 0 0 1 .75.75v1.19a4.518 4.518 0 0 1-4.51 4.51H8.056a.75.75 0 0 1-.482-1.324c.243-.204.457-.457.624-.744l.01-.015a3.17 3.17 0 0 0 .468-1.667 3.249 3.249 0 0 0-5.283-2.533.75.75 0 0 1-1.217-.587v-4.37Z"}),Po.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.526 2.655a1.15 1.15 0 0 0-1.554-1.078l-7.94 3a2.098 2.098 0 0 0-1.356 1.968v4.57a.75.75 0 0 1-1.5 0v-4.57c0-1.5.921-2.84 2.324-3.371l7.94-3c1.733-.657 3.586.629 3.586 2.481v3.8a.75.75 0 0 1-1.5 0v-3.8ZM19.905 12.405c-.36 0-.675.14-.903.374l-.014.013c-.265.26-.414.63-.377 1.022l.001.01c.053.634.664 1.181 1.413 1.181h1.942a.276.276 0 0 0 .268-.27v-2.06a.276.276 0 0 0-.268-.27h-2.062Zm-1.971-.68a2.743 2.743 0 0 1 1.97-.82h2.107a1.777 1.777 0 0 1 1.724 1.77v2.06a1.777 1.777 0 0 1-1.75 1.77h-1.96c-1.41 0-2.778-1.03-2.907-2.553a2.758 2.758 0 0 1 .816-2.227Z"}),Po.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.676 10.705a.75.75 0 0 1 .75-.75h7a.75.75 0 0 1 0 1.5h-7a.75.75 0 0 1-.75-.75ZM5.426 14.455c-.762 0-1.469.267-2.033.717h-.001a3.22 3.22 0 0 0-1.216 2.533c0 .61.17 1.184.468 1.667l.006.01a3.22 3.22 0 0 0 2.776 1.573 3.155 3.155 0 0 0 2.148-.824c.243-.204.457-.457.624-.744l.01-.015a3.17 3.17 0 0 0 .468-1.667 3.249 3.249 0 0 0-3.25-3.25Zm-2.967-.457a4.749 4.749 0 0 1 7.717 3.707c0 .888-.248 1.73-.687 2.446-.25.427-.57.808-.941 1.12a4.656 4.656 0 0 1-3.122 1.184 4.72 4.72 0 0 1-4.062-2.301 4.671 4.671 0 0 1-.688-2.449 4.72 4.72 0 0 1 1.783-3.707Z"}),Po.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.538 16.215a.75.75 0 0 1-.042 1.06l-2.13 1.97a.75.75 0 0 1-1.04-.02l-.99-.99a.75.75 0 1 1 1.062-1.06l.48.48 1.6-1.48a.75.75 0 0 1 1.06.04Z"})),"CheckWalletIcon");At.toString=()=>"._icon";import*as go from"react";var Nt=r(({size:o=16,color:e,...t})=>go.createElement(I,{width:o,height:o,viewBox:"0 0 24 24",color:e,fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"_icon",...t},go.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.244 7.205a3.018 3.018 0 0 0-3.01 3.01v1.73a.75.75 0 0 1-1.5 0v-1.73a4.518 4.518 0 0 1 4.51-4.51h11.48a4.518 4.518 0 0 1 4.51 4.51v1.44a.75.75 0 0 1-.75.75h-2.02c-.359 0-.674.14-.902.373l-.014.014c-.266.26-.414.63-.377 1.022v.009c.054.635.664 1.182 1.413 1.182h1.9a.75.75 0 0 1 .75.75v1.19a4.518 4.518 0 0 1-4.51 4.51h-5.48a.75.75 0 0 1 0-1.5h5.48a3.018 3.018 0 0 0 3.01-3.01v-.44h-1.15c-1.41 0-2.777-1.03-2.907-2.553a2.758 2.758 0 0 1 .817-2.227 2.743 2.743 0 0 1 1.97-.82h1.27v-.69a3.018 3.018 0 0 0-3.01-3.01H5.244Z"}),go.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.084 2.655a1.15 1.15 0 0 0-1.554-1.078l-7.94 3a2.098 2.098 0 0 0-1.356 1.968v4.57a.75.75 0 0 1-1.5 0v-4.57c0-1.5.922-2.84 2.325-3.371l7.94-3c1.732-.657 3.585.629 3.585 2.481v3.8a.75.75 0 0 1-1.5 0v-3.8ZM18.463 12.405c-.359 0-.675.14-.902.374l-.014.013c-.266.26-.415.63-.377 1.022v.01c.053.634.664 1.181 1.413 1.181h1.943a.276.276 0 0 0 .267-.27v-2.06a.276.276 0 0 0-.267-.27h-2.063Zm-1.97-.68a2.743 2.743 0 0 1 1.97-.82h2.107a1.777 1.777 0 0 1 1.723 1.77v2.06a1.777 1.777 0 0 1-1.75 1.77h-1.96c-1.41 0-2.777-1.03-2.907-2.553a2.758 2.758 0 0 1 .816-2.227Z"}),go.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.234 10.705a.75.75 0 0 1 .75-.75h7a.75.75 0 0 1 0 1.5h-7a.75.75 0 0 1-.75-.75ZM1.234 15.205a.75.75 0 0 1 .75-.75h5.34a1.91 1.91 0 0 1 1.91 1.91v1.28a.75.75 0 0 1-1.5 0v-1.28a.41.41 0 0 0-.41-.41h-5.34a.75.75 0 0 1-.75-.75Z"}),go.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.735 13.455a.75.75 0 0 1 0 1.06l-.69.69.69.69a.75.75 0 1 1-1.061 1.06l-1.22-1.22a.75.75 0 0 1 0-1.06l1.22-1.22a.75.75 0 0 1 1.06 0ZM1.984 17.296a.75.75 0 0 1 .75.75v1.28c0 .225.185.41.41.41h5.34a.75.75 0 0 1 0 1.5h-5.34a1.91 1.91 0 0 1-1.91-1.91v-1.28a.75.75 0 0 1 .75-.75Z"}),go.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.735 18.735a.75.75 0 0 1 1.061 0l1.22 1.22a.75.75 0 0 1 0 1.061l-1.22 1.22a.75.75 0 1 1-1.06-1.06l.689-.69-.69-.69a.75.75 0 0 1 0-1.06Z"})),"SwapWalletIcon");Nt.toString=()=>"._icon";import*as ho from"react";var me=ho.forwardRef(({color:o="black",size:e=16,...t},n)=>ho.createElement(g,{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,color:o,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"_icon",...t,ref:n},ho.createElement("path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4"}),ho.createElement("polyline",{points:"16 17 21 12 16 7"}),ho.createElement("line",{x1:"21",y1:"12",x2:"9",y2:"12"})));me.toString=()=>"._icon";import*as oo from"react";var Dt=r(({size:o=16,color:e,...t})=>oo.createElement(g,{width:o,height:o,viewBox:"0 0 32 32",color:e,fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"_icon",...t},oo.createElement("g",{clipPath:"url(#a)",strokeWidth:1.5},oo.createElement("path",{d:"M9.333 9.333V4.8a.8.8 0 0 1 .8-.8h11.734a.8.8 0 0 1 .8.8v4.533M13.333 4v5.333M16 4v5.333m9.333 17.334H6.667A2.667 2.667 0 0 1 4 24V12a2.667 2.667 0 0 1 2.667-2.667h18.666A2.667 2.667 0 0 1 28 12v12a2.667 2.667 0 0 1-2.667 2.667Z"}),oo.createElement("path",{d:"M22 18.666a.667.667 0 1 1 0-1.334.667.667 0 0 1 0 1.334Z",fill:e,strokeLinecap:"round",strokeLinejoin:"round"})),oo.createElement("defs",null,oo.createElement("clipPath",{id:"a"},oo.createElement("path",{fill:e,d:"M0 0h32v32H0z"})))),"BagIcon");Dt.toString=()=>"._icon";import*as Lo from"react";var ge=Lo.forwardRef(({size:o=16,...e},t)=>Lo.createElement(g,{width:o,height:o,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"_icon",...e,ref:t},Lo.createElement("circle",{cx:10,cy:10,r:7.25,strokeWidth:1.5}),Lo.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.134 6.6a.6.6 0 0 0-1.2 0v4.27a.6.6 0 0 0 .28.507c.009.01.018.019.029.028l2.59 2.373a.472.472 0 0 0 .753-.109.763.763 0 0 0-.133-.919l-2.319-2.123V6.6Z"})));ge.toString=()=>"._icon";var eo=i(Oo,{transform:"rotate(45deg)",cursor:"pointer"});eo.toString=()=>"._icon";import*as ze from"react";var zt=r(({size:o=16,color:e,...t})=>ze.createElement(I,{width:o,height:o,color:e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 122.88 107.95",xmlSpace:"preserve",className:"_icon",...t},ze.createElement("path",{d:"M82.19 0c1.22-.01 2.27.4 3.18 1.27l13.27 12.7c.86.82 1.28 1.91 1.3 3.11.02 1.22-.34 2.33-1.18 3.18l-7.06 7.35L72.09 8.67l6.99-7.28C79.94.5 80.98.02 82.19 0zM20.08 68.29a4.536 4.536 0 1 1 2.67 8.67c-6.98 2.14-11.66 6.28-13.21 10.17-.41 1.04-.55 1.99-.39 2.77.12.59.48 1.13 1.07 1.56 2.55 1.86 8.04 2.34 17.26.1 5.46-1.33 11.31-3.13 16.49-4.73 5.29-1.63 9.91-3.06 13.12-3.66 5.92-1.1 11.83-1.85 16.6-1.61 6.26.31 10.96 2.32 12.57 7.13 1.04 3.11.75 5.81.49 8.23-.09.87-.18 1.68-.14 2.21 0 .02.95-.05 5.53-.41 5.3-.42 10.79-2.51 16.21-4.58 2.78-1.06 5.54-2.11 8.67-3.07 2.4-.73 4.93.63 5.65 3.02.73 2.4-.63 4.93-3.02 5.65-2.43.74-5.24 1.82-8.06 2.89-6.04 2.3-12.14 4.63-18.74 5.15-12.07.95-14.87-2.46-15.3-7.95-.1-1.29.03-2.54.17-3.88.16-1.5.34-3.18-.07-4.39-.18-.54-1.89-.82-4.39-.94-3.99-.2-9.22.48-14.54 1.47-2.65.49-7.05 1.85-12.09 3.41-5.27 1.63-11.22 3.46-17.02 4.87-12.14 2.95-20.21 1.7-24.73-1.6-2.54-1.85-4.05-4.27-4.63-7-.54-2.54-.23-5.28.85-8 2.46-6.14 9.23-12.5 18.98-15.48zm21.19-19.84L53.3 60.02l-14.71 3.95c-.53.1-.74-.11-.65-.6l3.33-14.92zm24.6-33.34 19.59 18.87L58.7 62.23l-23.98 6.43c-.86.17-1.2-.17-1.06-.98l5.43-24.31 26.78-28.26z",style:{fillRule:"evenodd",clipRule:"evenodd"}})),"SignatureIcon");zt.toString=()=>"._icon";import*as to from"react";var Et=r(({size:o=16,color:e,...t})=>to.createElement(I,{width:o,height:o,viewBox:"0 0 64 64",color:e,xmlns:"http://www.w3.org/2000/svg",className:"_icon",...t},to.createElement("g",{id:"Text-files"},to.createElement("path",{d:`M53.9791489,9.1429005H50.010849c-0.0826988,0-0.1562004,0.0283995-0.2331009,0.0469999V5.0228
2
2
  C49.7777481,2.253,47.4731483,0,44.6398468,0h-34.422596C7.3839517,0,5.0793519,2.253,5.0793519,5.0228v46.8432999
3
3
  c0,2.7697983,2.3045998,5.0228004,5.1378999,5.0228004h6.0367002v2.2678986C16.253952,61.8274002,18.4702511,64,21.1954517,64
4
4
  h32.783699c2.7252007,0,4.9414978-2.1725998,4.9414978-4.8432007V13.9861002
@@ -8,13 +8,13 @@ var Er=Object.defineProperty;var r=(o,e)=>Er(o,"name",{value:e,configurable:!0})
8
8
  M56.8888474,59.1567993c0,1.550602-1.3055,2.8115005-2.9096985,2.8115005h-32.783699
9
9
  c-1.6042004,0-2.9097996-1.2608986-2.9097996-2.8115005v-2.2678986h26.3541946
10
10
  c2.8333015,0,5.1379013-2.2530022,5.1379013-5.0228004V11.1275997c0.0769005,0.0186005,0.1504021,0.0469999,0.2331009,0.0469999
11
- h3.9682999c1.6041985,0,2.9096985,1.2609005,2.9096985,2.8115005V59.1567993z`}),go.createElement("path",{d:`M38.6031494,13.2063999H16.253952c-0.5615005,0-1.0159006,0.4542999-1.0159006,1.0158005
11
+ h3.9682999c1.6041985,0,2.9096985,1.2609005,2.9096985,2.8115005V59.1567993z`}),to.createElement("path",{d:`M38.6031494,13.2063999H16.253952c-0.5615005,0-1.0159006,0.4542999-1.0159006,1.0158005
12
12
  c0,0.5615997,0.4544001,1.0158997,1.0159006,1.0158997h22.3491974c0.5615005,0,1.0158997-0.4542999,1.0158997-1.0158997
13
- C39.6190491,13.6606998,39.16465,13.2063999,38.6031494,13.2063999z`}),go.createElement("path",{d:`M38.6031494,21.3334007H16.253952c-0.5615005,0-1.0159006,0.4542999-1.0159006,1.0157986
13
+ C39.6190491,13.6606998,39.16465,13.2063999,38.6031494,13.2063999z`}),to.createElement("path",{d:`M38.6031494,21.3334007H16.253952c-0.5615005,0-1.0159006,0.4542999-1.0159006,1.0157986
14
14
  c0,0.5615005,0.4544001,1.0159016,1.0159006,1.0159016h22.3491974c0.5615005,0,1.0158997-0.454401,1.0158997-1.0159016
15
- C39.6190491,21.7877007,39.16465,21.3334007,38.6031494,21.3334007z`}),go.createElement("path",{d:`M38.6031494,29.4603004H16.253952c-0.5615005,0-1.0159006,0.4543991-1.0159006,1.0158997
15
+ C39.6190491,21.7877007,39.16465,21.3334007,38.6031494,21.3334007z`}),to.createElement("path",{d:`M38.6031494,29.4603004H16.253952c-0.5615005,0-1.0159006,0.4543991-1.0159006,1.0158997
16
16
  s0.4544001,1.0158997,1.0159006,1.0158997h22.3491974c0.5615005,0,1.0158997-0.4543991,1.0158997-1.0158997
17
- S39.16465,29.4603004,38.6031494,29.4603004z`}),go.createElement("path",{d:`M28.4444485,37.5872993H16.253952c-0.5615005,0-1.0159006,0.4543991-1.0159006,1.0158997
17
+ S39.16465,29.4603004,38.6031494,29.4603004z`}),to.createElement("path",{d:`M28.4444485,37.5872993H16.253952c-0.5615005,0-1.0159006,0.4543991-1.0159006,1.0158997
18
18
  s0.4544001,1.0158997,1.0159006,1.0158997h12.1904964c0.5615025,0,1.0158005-0.4543991,1.0158005-1.0158997
19
- S29.0059509,37.5872993,28.4444485,37.5872993z`}))),"CopyIcon");tr.toString=()=>"._icon";import Xr from"react";var Kr=i("span",{margin:0,display:"inline-block",variants:{variant:{h1:{fontSize:"$36",fontWeight:"$700","@md":{fontSize:"$40"},"@lg":{fontSize:"$48"}},h2:{fontSize:"$32",fontWeight:"$700","@md":{fontSize:"$36"},"@lg":{fontSize:"$40"}},h3:{fontSize:"$20",fontWeight:"$700","@md":{fontSize:"$24"},"@lg":{fontSize:"$32"}},h4:{fontSize:"$18",fontWeight:"$600","@md":{fontSize:"$20"},"@lg":{fontSize:"$24"}},h5:{fontSize:"$16",fontWeight:"$600"},h6:{fontSize:"$14",fontWeight:"$500","@md":{fontSize:"$16"},"@lg":{fontSize:"$18"}},title:{fontSize:"$14",fontWeight:"$500","@md":{fontSize:"$15"}},body1:{fontSize:"$14",fontWeight:"$400","@md":{fontSize:"$16"},"@lg":{fontSize:"$18"}},body2:{fontSize:"$14",fontWeight:"$400"},body3:{fontSize:"$12",fontWeight:"$400"},caption:{fontSize:"$10",fontWeight:"$400","@lg":{fontSize:"$12"}}},align:{center:{textAlign:"center"},left:{textAlign:"left"},right:{textAlign:"right"}},noWrap:{true:{whiteSpace:"nowrap"}},ml:{2:{marginLeft:"$2"},4:{marginLeft:"$4"},8:{marginLeft:"$8"},12:{marginLeft:"$12"}},mt:{2:{marginTop:"$2"},4:{marginTop:"$4"},8:{marginTop:"$8"},12:{marginTop:"$12"}},mr:{2:{marginRight:"$2"},4:{marginRight:"$4"},8:{marginRight:"$8"},12:{marginRight:"$12"}},mb:{2:{marginBottom:"$2"},4:{marginBottom:"$4"},8:{marginBottom:"$8"},12:{marginBottom:"$12"}}}});function s({children:o,className:e,color:t,...n}){let a=t?{color:t.startsWith("$")?t:`$${t}`}:{color:"$foreground"};return Xr.createElement(Kr,{className:`_typography _text ${e||""}`,css:a,...n},o)}r(s,"Typography");s.toString=()=>"._typography";import Qr from"react";var Rr=i("div",{variants:{size:{4:{},8:{},12:{},16:{},18:{},20:{},24:{},32:{}},direction:{vertical:{},horizontal:{}}},compoundVariants:[{size:4,direction:"horizontal",css:{width:"$4"}},{size:4,direction:"vertical",css:{height:"$4"}},{size:8,direction:"horizontal",css:{width:"$8"}},{size:8,direction:"vertical",css:{height:"$8"}},{size:12,direction:"horizontal",css:{width:"$12"}},{size:12,direction:"vertical",css:{height:"$12"}},{size:16,direction:"horizontal",css:{width:"$16"}},{size:16,direction:"vertical",css:{height:"$16"}},{size:18,direction:"horizontal",css:{width:"$18"}},{size:18,direction:"vertical",css:{height:"$18"}},{size:20,direction:"horizontal",css:{width:"$20"}},{size:20,direction:"vertical",css:{height:"$20"}},{size:24,direction:"horizontal",css:{width:"$24"}},{size:24,direction:"vertical",css:{height:"$24"}},{size:32,direction:"horizontal",css:{width:"$32"}},{size:32,direction:"vertical",css:{height:"$32"}}]});function y({size:o=12,direction:e="vertical"}){return Qr.createElement(Rr,{size:o,direction:e})}r(y,"Divider");var oi=i("div",{width:"100%",padding:"$16",borderRadius:"$5",backgroundColor:"$neutral100",color:"$neutral800",".main":{display:"flex",alignItems:"center"},".footer":{paddingTop:"$8"},"&.hasIcon .footer":{paddingLeft:"$32"},variants:{type:{primary:{color:"$primary200"},secondary:{color:"$foreground"},success:{color:"$success300"},warning:{color:"$warning500"},error:{color:"$error300"}}}});function M(o){let{type:e,children:t,title:n}=o,a=["error","success","warning"].includes(e);return j.createElement(oi,{type:e,className:a?"hasIcon":""},j.createElement("div",{className:"main"},a&&j.createElement(j.Fragment,null,j.createElement("div",{style:{width:"32px",display:"flex",justifyContent:"center",alignItems:"center"}},e==="success"&&j.createElement(Fo,{color:e,size:24}),e==="warning"&&j.createElement(ne,{color:e,size:24}),e==="error"&&j.createElement(Y,{color:e,size:24}),j.createElement(y,{size:4,direction:"horizontal"}))),j.createElement("div",{style:{display:"flex",justifyContent:"center",alignItems:"start",flexDirection:"column",width:"100%"}},n&&j.createElement(j.Fragment,null,j.createElement(s,{className:"title",variant:"title",color:e},n),!!t&&j.createElement(y,{size:4})),t)),o.footer?j.createElement("div",{className:"footer"},o.footer):null)}r(M,"Alert");import ei from"react";import{i18n as ti}from"@lingui/core";function uo(){return ei.createElement(M,{type:"error",title:ti.t(" Error connecting server, please reload the app and try again.")})}r(uo,"LoadingFailedAlert");import ri from"react";function J(o){let{catergory:e,searchedFor:t}=o;return ri.createElement(M,{type:"secondary",title:`${e} ${t?"'"+t+"'":""} not found.`})}r(J,"NotFoundAlert");import T,{Fragment as Si}from"react";import{i18n as Xe}from"@lingui/core";import X from"react";var ii=i("div",{position:"relative",width:"$28",height:"$28",variants:{direction:{vertical:{margin:"auto"},horizontal:{}}}}),ni=i("img",{width:"$28",height:"$28",borderRadius:"50%"}),ai=i("div",{position:"absolute",right:-4,bottom:-4,width:"$16",height:"$16",padding:"$2",borderRadius:"50%",backgroundColor:"$background",border:"1px solid $neutral400",img:{width:"100%",display:"block"}}),li=i("div",{display:"flex",variants:{direction:{horizontal:{alignItems:"center"},vertical:{flexDirection:"column",textAlign:"center",justifyContent:"center"}},success:{true:{filter:"none"},false:{filter:"grayscale(100%)"}}}}),si=i("div",{variants:{pl:{true:{paddingLeft:"$4","@lg":{paddingLeft:"$8"}},false:{paddingTop:"$8"}}}}),pi=i(s,{color:"$neutral600",display:"block",paddingLeft:"$8"});function To(o){let{logo:e,chainLogo:t,amount:n,symbol:a,blockchain:l,estimatedAmount:d,success:p=!0,direction:c="horizontal"}=o;return X.createElement(li,{direction:c,success:p},X.createElement(ii,{direction:c},X.createElement(ni,{src:e,alt:a}),X.createElement(ai,null,X.createElement("img",{src:t,alt:l}))),X.createElement(si,{pl:c==="horizontal"},n&&X.createElement(s,{noWrap:!0,variant:c==="vertical"?"body2":"title"},n),!n&&d&&X.createElement(s,{noWrap:!0,variant:c==="vertical"?"body2":"title",color:"$neutral600"},d),"\xA0",X.createElement(s,{variant:c==="vertical"?"body2":"title",noWrap:!0},a),X.createElement(pi,{noWrap:!0,variant:"caption",color:"$neutral800"},"on ",l)))}r(To,"StepDetail");import di from"react";var ci=Mo({"0%":{backgroundPosition:"-468px 0"},"100%":{backgroundPosition:"468px 0"}}),mi=i("div",{borderRadius:"$5",backgroundColor:"$neutral100",background:"linear-gradient(to right, rgba(130, 130, 130, 0.2) 8%, rgba(130, 130, 130, 0.3) 18%, rgba(130, 130, 130, 0.2) 33%)",backgroundSize:"800px 100px",animation:`${ci} 2s infinite ease-out`,variants:{width:{16:{width:"$16"},20:{width:"$20"},24:{width:"$24"},36:{width:"$36"},48:{width:"$48"}},height:{16:{height:"$16"},20:{height:"$20"},24:{height:"$24"},36:{height:"$36"},48:{height:"$48"},94:{height:94}}}});function Ye({width:o=20,height:e=20}){return di.createElement(mi,{width:o,height:e})}r(Ye,"Skeleton");import gi from"react";var ui=Mo({"100%":{transform:"rotate(360deg)"}}),hi=i("div",{borderRadius:"50%",position:"relative",border:"2px solid $neutral100",borderRight:"2px solid",animation:`${ui} 1.5s linear infinite`,margin:"0px $8",variants:{color:{primary:{borderRightColor:"$primary"},error:{borderRightColor:"$error"},warning:{borderRightColor:"$warning"},success:{borderRightColor:"$success"},black:{borderRightColor:"$black"},white:{borderRightColor:"$white"}},size:{16:{width:"$16",height:"$16"},20:{width:"$20",height:"$20"},24:{width:"$24",height:"$24"}}}});function L({size:o=16,color:e="primary"}){return gi.createElement(hi,{size:o,color:e})}r(L,"Spinner");import*as Z from"@radix-ui/react-tooltip";import Io from"react";var fi=i(Z.Trigger,{border:0,padding:0,backgroundColor:"transparent"}),yi=i(Z.Content,{borderRadius:"$5",padding:"$4 $8",fontSize:"$14",animationDuration:"400ms",animationTimingFunction:"cubic-bezier(0.16, 1, 0.3, 1)",willChange:"transform, opacity",variants:{color:{primary:{backgroundColor:"$primary",color:"$white"},error:{backgroundColor:"$error",color:"$white"},warning:{backgroundColor:"$warning",color:"$white"},success:{backgroundColor:"$success",color:"$white"},gray:{backgroundColor:"$neutral100",color:"$black"},black:{backgroundColor:"$black",color:"$white"},white:{backgroundColor:"$white",color:"$black"}}}}),xi=i(Z.Arrow,{variants:{color:{primary:{fill:"$primary"},error:{fill:"$error"},warning:{fill:"$warning"},success:{fill:"$success"},gray:{fill:"$neutral100"},black:{fill:"$black"},white:{fill:"$white"}}}}),Ci=i("div",{display:"inline-block"});function ho({children:o,content:e,side:t="top",color:n="gray"}){return Io.createElement(Z.Provider,null,Io.createElement(Z.Root,null,Io.createElement(fi,{asChild:!0},Io.createElement(Ci,null,o)),Io.createElement(Z.Portal,null,Io.createElement(yi,{color:n,side:t,sideOffset:5},e,Io.createElement(xi,{color:n})))))}r(ho,"Tooltip");var Je=i("span",{width:"10px",height:"10px",backgroundColor:"$primary",borderRadius:"99999px"});import rr from"react";var vi=i("div",{display:"flex",justifyContent:"center",alignItems:"center",".image":{width:"100%",height:"100%",objectFit:"contain"}});function I(o){let{size:e,...t}=o;return rr.createElement(vi,{css:{width:e+"px",height:e+"px"}},rr.createElement("img",{className:"image",...t}))}r(I,"Image");var ki=i("div",{borderRadius:"$5",border:"1px solid $neutral100",display:"flex",alignItems:"center",minHeight:126,justifyContent:"space-between",backgroundColor:"$surface"}),wi=i(s,{color:"$error"}),bi=i("div",{display:"flex",alignItems:"center",margin:"0 auto",overflowX:"auto",overflowY:"hidden",alignSelf:"stretch",padding:"$4","@md":{padding:"$8"}}),ir=i("div",{height:"0",width:"$20",border:"1px dashed $foreground",borderRadius:"inherit","@lg":{width:"$32"}}),$i=i("hr",{width:"100%",border:"1px solid $neutral400",margin:"$8 0"}),Ti=i("div",{position:"relative"}),Ii=i("div",{width:"$6",height:"$6",backgroundColor:"$foreground",position:"absolute",top:"45%",right:-5,marginLeft:"$8",borderRadius:"50%","@md":{width:"$8",height:"$8",right:-8,top:"45%"}}),Pi=i("div",{width:"0px",height:"0px",borderTop:"5px solid transparent",borderBottom:"5px solid transparent",borderLeft:"5px solid $foreground"}),Ke=Mo({"0%":{opacity:1},"50%":{opacity:.3},"100%":{opacity:1}}),Li=i("div",{backgroundColor:"$neutral100",borderRadius:"5px",margin:"$4",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",padding:"$4","@md":{padding:"$8",margin:"$8"}}),nr=i("div",{display:"flex",flexDirection:"column",alignItems:"center",variants:{warning:{true:{animation:`${Ke} 2s ease-in-out infinite`}}}}),Bi=i(s,{variants:{warning:{true:{color:"$warning300"}}}}),Wi=i("div",{padding:"$4","@md":{padding:"$8"}}),Mi=i("div",{display:"flex",justifyContent:"center",alignItems:"center"});function Qe(o){let{data:e,loading:t,error:n,totalFee:a,feeWarning:l,totalTime:d}=o;return T.createElement(ki,null,t?T.createElement(Wi,null,T.createElement(Ye,{width:48,height:94})):T.createElement(Li,null,T.createElement(ho,{content:Xe.t("Transaction cost (fee)")},T.createElement(nr,{warning:l},T.createElement(po,{size:20,color:l?"warning":void 0}),T.createElement(Bi,{mt:4,align:"center",variant:"caption",warning:l},n&&"-",!!e&&`$${a}`))),T.createElement($i,null),T.createElement(ho,{content:Xe.t("Time estimate")},T.createElement(nr,{warning:l},T.createElement(ke,{size:20}),T.createElement(s,{mt:4,align:"center",variant:"caption"},n&&"-",!!e&&`~${d}m`)))),T.createElement(bi,null,t&&T.createElement(L,{color:"primary"}),n&&T.createElement(wi,{variant:"caption"},n),!!e&&e.result?.swaps.map((p,c)=>T.createElement(Si,{key:c},c===0&&T.createElement(Ti,null,T.createElement(To,{direction:"vertical",logo:p.from.logo,symbol:p.from.symbol,chainLogo:p.from.blockchainLogo,blockchain:p.from.blockchain,amount:p.fromAmount}),T.createElement(Ii,null)),T.createElement(Mi,null,T.createElement(ir,null),T.createElement(I,{src:p.swapperLogo,alt:p.swapperId,size:20}),T.createElement(ir,null)),c+1===e.result?.swaps.length&&T.createElement(Pi,null),T.createElement(To,{direction:"vertical",logo:p.to.logo,symbol:p.to.symbol,chainLogo:p.to.blockchainLogo,blockchain:p.to.blockchain,amount:p.toAmount}))),!!e&&!e?.result&&T.createElement(s,{variant:"body2"},Xe.t("No routes found"))))}r(Qe,"BestRoute");import K from"react";import{i18n as Fi}from"@lingui/core";var Ai=i("div",{display:"flex",width:"100%",justifyContent:"end",alignItems:"center",paddingTop:"$16"}),Ni=i("svg",{fill:"$foreground",width:"$24",margin:"0 $8 0 $16"}),zi=i("a",{display:"flex",justifyContent:"center",alignItems:"center",textDecoration:"none"});function Re(){return K.createElement(Ai,null,K.createElement(s,{variant:"caption",color:"$neutral600"},Fi.t("Powered By")),K.createElement(zi,{href:"https://rango.exchange",target:"_blank"},K.createElement(Ni,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 33.68 29"},K.createElement("defs",null),K.createElement("g",{id:"Layer_2","data-name":"Layer 2"},K.createElement("g",{id:"Layer_1-2","data-name":"Layer 1"},K.createElement("path",{d:"M33.68,18.05A17.93,17.93,0,0,0,28.34,5.29,18.31,18.31,0,0,0,15.45,0H13.54V7.41L6.07,0H.69L9.83,9.07H0V11A17.93,17.93,0,0,0,5.34,23.71,18.32,18.32,0,0,0,18.24,29h1.9V21.59l7.38,7.31h5.39l-9-9h9.82ZM17.37,16.16H12.49a1.93,1.93,0,0,0-1.35.55,1.89,1.89,0,0,0-.56,1.34,1.85,1.85,0,0,0,.56,1.33,1.93,1.93,0,0,0,1.35.55h3.84V25.1A14.43,14.43,0,0,1,8,21a14.21,14.21,0,0,1-4.1-8.2H21.2a1.86,1.86,0,0,0,.74-.13,1.92,1.92,0,0,0,.64-.4,2,2,0,0,0,.43-.62,1.88,1.88,0,0,0,0-1.47,2,2,0,0,0-.43-.62,1.92,1.92,0,0,0-.64-.4,1.86,1.86,0,0,0-.74-.13H17.35V3.9A14.43,14.43,0,0,1,25.64,8a14.19,14.19,0,0,1,4.11,8.2Zm2.12-5.27a1.43,1.43,0,0,1,.26-.83,1.52,1.52,0,0,1,.67-.56,1.55,1.55,0,0,1,.88-.08,1.51,1.51,0,0,1,.77.4,1.54,1.54,0,0,1,.42.77,1.41,1.41,0,0,1-.09.86,1.47,1.47,0,0,1-.55.68,1.56,1.56,0,0,1-.84.25,1.52,1.52,0,0,1-1.52-1.49Z"}),K.createElement("path",{d:"M21.7,11.57a.68.68,0,0,0-.12-.38.64.64,0,0,0-.31-.25.68.68,0,0,0-.75.15.61.61,0,0,0-.19.35.62.62,0,0,0,0,.4.67.67,0,0,0,.25.3.69.69,0,0,0,.39.12.7.7,0,0,0,.49-.2A.68.68,0,0,0,21.7,11.57Z"})))),K.createElement(s,{variant:"body2"},"RANGO")))}r(Re,"BottomLogo");import ot from"react";var Di=i("button",{borderRadius:"$5",fontSize:"$16",fontWeight:"$400",cursor:"pointer",padding:"0 $12",display:"flex",alignItems:"center",justifyContent:"center",transition:"all 0.35s",border:"0","&:active":{transform:"scale(0.95)"},variants:{align:{start:{display:"flex",width:"100%"},grow:{display:"flex",width:"100%"}},size:{compact:{},free:{},small:{height:"$32"},medium:{height:"$40"},large:{height:"$48"}},variant:{contained:{backgroundColor:"$neutral100",color:"$foreground",border:0,"&:hover":{backgroundColor:"$neutral200"},"&:disabled":{background:"$neutral400"},"&:disabled:hover":{background:"$neutral400",transform:"unset"}},outlined:{backgroundColor:"$surface",border:1,borderStyle:"solid",borderColor:"$neutral400",color:"$foreground","&:hover":{borderColor:"$neutral600"},"&:disabled":{borderColor:"$neutral400",color:"$neutral400"}},ghost:{color:"$foreground","&:hover":{backgroundColor:"$neutral200"},"&:disabled":{color:"$neutral400"},background:"transparent",border:0,[`& ${s}`]:{color:"inherit"}}},fullWidth:{true:{width:"100%"}},loading:{true:{}},type:{primary:{},error:{},warning:{},success:{}}},compoundVariants:[{type:"primary",variant:"contained",css:{background:"$primary",color:"$white","&:hover":{background:"$primary700"},"&:visited":{background:"$primary900"},"&:focus":{background:"$primary600"}}},{type:"primary",variant:"outlined",css:{color:"$primary",borderColor:"$primary","&:hover":{color:"$primary700",borderColor:"$primary700"},"&:visited":{color:"$primary900",borderColor:"$primary900"},"&:focus":{color:"$primary600",borderColor:"$primary600"}}},{type:"primary",variant:"ghost",css:{color:"$primary","&:hover":{color:"$primary700"},"&:visited":{color:"$primary900"},"&:focus":{color:"$primary600"}}},{type:"error",variant:"contained",css:{background:"$error",$$color:"$colors$background",[`.${ro} &`]:{$$color:"$colors$foreground"},color:"$$color","&:hover":{background:"$error300"},"&:visited":{background:"$error700"},"&:focus":{background:"$error700"}}},{type:"error",variant:"outlined",css:{color:"$error",borderColor:"$error","&:hover":{color:"$error300",borderColor:"$error300"},"&:visited":{color:"$error700",borderColor:"$error700"},"&:focus":{color:"$error700",borderColor:"$error700"}}},{type:"error",variant:"ghost",css:{color:"$error","&:hover":{color:"$error300"},"&:visited":{color:"$error700"},"&:focus":{color:"$error700"}}},{type:"warning",variant:"contained",css:{background:"$warning",$$color:"$colors$background",[`.${ro} &`]:{$$color:"$colors$foreground"},color:"$$color","&:hover":{background:"$warning300"},"&:visited":{background:"$warning700"},"&:focus":{background:"$warning700"}}},{type:"warning",variant:"outlined",css:{color:"$warning",borderColor:"$warning","&:hover":{color:"$warning300",borderColor:"$warning300"},"&:visited":{color:"$warning700",borderColor:"$warning700"},"&:focus":{color:"$warning700",borderColor:"$warning700"}}},{type:"warning",variant:"ghost",css:{color:"$warning","&:hover":{color:"$warning300"},"&:visited":{color:"$warning700"},"&:focus":{color:"$warning700"}}},{type:"success",variant:"contained",css:{background:"$success",$$color:"$colors$background",[`.${ro} &`]:{$$color:"$colors$foreground"},color:"$$color","&:hover":{background:"$success300"},"&:visited":{background:"$success700"},"&:focus":{background:"$success700"}}},{type:"success",variant:"outlined",css:{color:"$success",borderColor:"$success","&:hover":{color:"$success300",borderColor:"$success300"},"&:visited":{color:"$success700",borderColor:"$success700"},"&:focus":{color:"$success700",borderColor:"$success700"}}},{type:"success",variant:"ghost",css:{color:"$success","&:hover":{color:"$success300"},"&:visited":{color:"$success700"},"&:focus":{color:"$success700"}}},{size:"compact",css:{padding:"$2 $4",fontSize:"$12"}}],defaultVariants:{size:"medium",variant:"contained"}}),Ei=i("div",{flex:1,variants:{align:{start:{textAlign:"left"},grow:{textAlign:"center"}},ml:{true:{marginLeft:"$8"}},mr:{true:{marginRight:"$8"}},flexContent:{true:{display:"flex",alignItems:"center"}}}});function u({children:o,loading:e,disabled:t,prefix:n,suffix:a,align:l,flexContent:d,...p}){return ot.createElement(Di,{disabled:e||t,...p,align:l},n,o&&ot.createElement(Ei,{align:l,ml:!!n,mr:!!a&&!e,flexContent:d,className:"_text"},o),e&&ot.createElement(L,{size:16,color:p.type}),a)}r(u,"Button");import Hi from"react";import{i18n as _i}from"@lingui/core";function Oo(o){let{onClick:e}=o;return Hi.createElement(u,{type:"primary",variant:"outlined",size:"small",onClick:e},_i.t("Change Slippage"))}r(Oo,"ChangeSlippageButton");import Go from"react";import*as we from"@radix-ui/react-checkbox";var ji=i("div",{display:"flex",alignItems:"center"}),qi=i(we.Root,{borderRadius:"5px",width:20,padding:0,height:20,border:"1px solid $foreground",display:"flex",alignItems:"center",justifyContent:"center",marginRight:"$2",backgroundColor:"$neutral-100",cursor:"pointer"}),Zi=i("label",{color:"$foreground",fontSize:"$m",marginLeft:"$8",cursor:"pointer"});function et({label:o,id:e,...t}){return Go.createElement(ji,null,Go.createElement(qi,{id:e,...t},Go.createElement(we.Indicator,null,Go.createElement(re,{size:20}))),Go.createElement(Zi,{className:"_text",htmlFor:e},o))}r(et,"Checkbox");import Vi from"react";var Oi=i("div",{display:"inline-flex",justifyContent:"center",alignItems:"center",borderRadius:"$5",padding:"$4 $8",height:"32",fontSize:"$14",cursor:"pointer",transition:"all 0.35s",color:"$foreground","&:hover":{backgroundColor:"$success700",color:"$background"},variants:{selected:{true:{backgroundColor:"$success",color:"$background"},false:{backgroundColor:"$surface"}}}});function tt(o){let{label:e,selected:t,prefix:n,suffix:a,onClick:l,style:d}=o;return Vi.createElement(Oi,{selected:t,onClick:l,style:d},n||null,e,a||null)}r(tt,"Chip");import io,{useState as Gi}from"react";import Ui from"rgb-hex";import Yi from"react-color";var{ChromePicker:Ji}=Yi,Xi=i("div",{position:"relative"}),Ki=i("div",{border:"1px solid $neutral100",borderRadius:"$5",width:"$32",height:"$32"}),Qi=i("div",{position:"fixed",top:"0px",right:"0px",bottom:"0px",left:"0px"}),Ri=i("div",{position:"absolute",zIndex:"2",variants:{place:{top:{top:"-241px"},bottom:{},left:{top:"-50%",left:"-225px"},right:{top:"-50%",right:"-225px"}}}}),on=i("label",{display:"inline-block",fontSize:"$14",marginBottom:"$4",color:"$foreground"});function en({color:o,onChangeColor:e,label:t,place:n,placeholder:a}){let[l,d]=Gi(!1);return io.createElement(Xi,null,io.createElement(on,{className:"_text"},t),io.createElement(u,{variant:"outlined",prefix:io.createElement(Ki,{style:{backgroundColor:o}}),fullWidth:!0,align:"start",size:"large",suffix:o&&io.createElement("div",{onClick:p=>{p.stopPropagation(),e(void 0)}},io.createElement(mo,{size:20})),onClick:()=>d(p=>!p)},o||a),l&&io.createElement(Ri,{place:n},io.createElement(Qi,{onClick:()=>d(!1)}),io.createElement(Ji,{color:o,onChange:p=>{let c="#"+Ui(p.rgb.r,p.rgb.g,p.rgb.b,p.rgb.a);e(c)}})))}r(en,"ColorPicker");import no from"react";import{createPortal as tn}from"react-dom";var rn=i("div",{position:"absolute",top:"0",left:"0",width:"100%",height:"100%",zIndex:9999999,backgroundColor:"rgba(0,0,0,.1)",borderRadius:"$10"}),nn=i("div",{position:"absolute",boxShadow:"$s",background:"$background",padding:"$20",display:"flex",flexDirection:"column",justifyContent:"space-between",zIndex:9999999,borderRadius:"$10",variants:{anchor:{left:{top:0,left:0,height:"100%",minWidth:"300px",maxWidth:"90%"},right:{top:0,right:0,height:"100%",minWidth:"300px",maxWidth:"90%"},bottom:{bottom:0,width:"100%",maxHeight:"90%"},top:{top:0,width:"100%",maxHeight:"90%"}}}}),an=i("div",{display:"flex",justifyContent:"space-between",alignItems:"center",position:"relative",marginBottom:"$16"}),ln=i("div",{overflowY:"auto",height:"100%"}),sn=i("footer",{width:"100%",marginTop:"$28"});function rt(o){let{title:e,content:t,open:n,onClose:a,containerStyle:l,anchor:d="bottom",showClose:p=!1,footer:c,container:f}=o;return no.createElement(no.Fragment,null,n&&f&&tn(no.createElement(rn,{onClick:r($=>{$.target===$.currentTarget&&a()},"handleBackDropClick")},no.createElement(nn,{anchor:d,style:l},no.createElement(an,null,no.createElement(s,{variant:"h6"},e),p&&no.createElement(mo,{size:24,onClick:a})),no.createElement(ln,null,t),no.createElement(sn,null,c))),f))}r(rt,"Drawer");import Uo from"react";var pn=i("div",{display:"flex",justifyContent:"space-between",alignItems:"center",padding:"$8 0",position:"relative"}),dn=i(u,{padding:"$8"});function Yo(o){return Uo.createElement(pn,null,o.onBack?Uo.createElement(dn,{variant:"ghost",size:"small",onClick:o.onBack},Uo.createElement(Ze,{size:24})):null,o.prefix,Uo.createElement(s,{variant:"h4"},o.title),o.suffix||Uo.createElement("div",null))}r(Yo,"Header");import Q from"react";import{i18n as it}from"@lingui/core";var cn=i("div",{display:"flex"});function nt(o){let{onClickRefresh:e,onClickHistory:t,onClickSettings:n}=o;return Q.createElement(cn,null,Q.createElement(ho,{content:it.t("Refresh")},Q.createElement(u,{variant:"ghost",onClick:e,disabled:!e},Q.createElement(Ce,{size:24,disabled:!e}))),Q.createElement(ho,{content:it.t("Transactions History")},Q.createElement(u,{variant:"ghost",onClick:t},Q.createElement(ae,{size:24}))),Q.createElement(ho,{content:it.t("Settings")},Q.createElement(u,{variant:"ghost",onClick:n},Q.createElement(pe,{size:24}))))}r(nt,"HeaderButtons");import O from"react";import{i18n as mn}from"@lingui/core";var gn=i("div",{display:"flex",width:"100%",justifyContent:"end",".balance":{display:"flex"}}),un=i("div",{display:"flex",paddingLeft:"12px"}),hn=i("div",{marginLeft:-15,marginRight:"$6","& img":{borderRadius:"50%"}});function fn({connectedWalletsImages:o,loadingStatus:e,connectedWallets:t,totalBalance:n,fetchingBalance:a,onClick:l,children:d}){return O.createElement(O.Fragment,null,O.createElement(gn,null,O.createElement(u,{size:"small",suffix:O.createElement(ve,{size:20}),variant:"ghost",flexContent:!0,loading:e==="loading",disabled:e==="failed",onClick:l,prefix:o?.length?O.createElement(un,null,o.map((p,c)=>O.createElement(hn,{key:c},O.createElement(I,{src:p,size:24})))):null},O.createElement("div",{className:"balance"},O.createElement(s,{variant:"body2"},t?.length?`$${n||0}`:mn.t("Connect Wallet")),a&&O.createElement(L,null)))),d)}r(fn,"HeaderLayout");import fo,{useEffect as yn}from"react";import{createPortal as xn}from"react-dom";var Cn=i("div",{position:"fixed",display:"flex",justifyContent:"center",alignItems:"center",top:"0",left:"0",width:"100vw",height:"100vh",backgroundColor:"rgba(0,0,0,.1)",zIndex:10}),vn=i("div",{backgroundColor:"$background",borderRadius:"$10",padding:"$16 $16",display:"flex",flexDirection:"column",zIndex:20}),Sn=i("div",{display:"flex",alignItems:"center"}),kn=i("div",{display:"flex",justifyContent:"space-between",alignItems:"center",position:"relative",marginBottom:"$16"});function at(o){let{title:e,content:t,open:n,onClose:a,containerStyle:l,action:d}=o,p=r(c=>{c.target===c.currentTarget&&a()},"handleBackDropClick");return yn(()=>{n?document.body.style.overflow="hidden":document.body.style.overflow="unset"},[n]),fo.createElement(fo.Fragment,null,n&&xn(fo.createElement(Cn,{onClick:p},fo.createElement(vn,{css:l},fo.createElement(kn,null,fo.createElement(s,{variant:"h4"},e),fo.createElement(Sn,null,d,fo.createElement(mo,{size:24,onClick:a}))),t)),document.body))}r(at,"Modal");import lt from"react";function st(o){let{percentageChange:e,showPercentageChange:t}=o;return lt.createElement(lt.Fragment,null,t&&lt.createElement(s,{variant:"caption",color:"$error500"},`(${e}%)`))}r(st,"PercentageChange");import Po from"react";import*as Eo from"@radix-ui/react-radio-group";var wn=i(Eo.Root,{variants:{direction:{horizontal:{display:"flex",flexDirection:"row",flexWrap:"wrap"},vertical:{display:"grid",gridGap:"$24"}}}}),bn=i("div",{display:"flex",alignItems:"center",marginRight:"$8"}),$n=i(Eo.Item,{padding:"0",width:"20px",height:"20px",borderRadius:"100%",cursor:"pointer",backgroundColor:"$background",border:"1px solid $neutral400","&:hover":{borderColor:"$neutral600"}}),Tn=i("div",{display:"flex"}),In=i(Eo.Indicator,{display:"flex",alignItems:"center",justifyContent:"center",width:"100%",height:"100%",position:"relative","&::after":{content:"",display:"block",width:"10px",height:"10px",borderRadius:"50%",backgroundColor:"$success"}}),Pn=i("label",{paddingLeft:"$8",cursor:"pointer",color:"$foreground"});function pt(o){let{value:e,onChange:t,direction:n="vertical",style:a}=o;return Po.createElement(Tn,null,Po.createElement(wn,{onValueChange:t,value:e,direction:n,style:a},o.options.map((l,d)=>Po.createElement(bn,{key:d},Po.createElement($n,{value:l.value,id:l.value},Po.createElement(In,null)),Po.createElement(Pn,{className:"_text",htmlFor:l.value},Po.createElement(s,{variant:"body2"},l.label))))))}r(pt,"Radio");import R from"react";var Ln=i("div",{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"$8",borderRadius:"$5",backgroundColor:"$neutral100",color:"$neutral800",fontSize:"$12",".routes":{display:"flex",alignItems:"center"},".fee":{display:"flex",alignItems:"center"}});function Bn(o){if(!o.routes)return null;let e=o.routes.result?.swaps;return R.createElement(Ln,null,R.createElement("div",{className:"routes"},e?.map((t,n)=>{let a=n+1==e.length;return R.createElement(R.Fragment,{key:n},R.createElement("div",{className:"route"},t.from.symbol),R.createElement(ue,{size:12}),a?R.createElement("div",{className:"route"},t.to.symbol):null)})),o.totalFee?R.createElement("div",{className:"fee"},R.createElement(po,{size:12}),R.createElement(y,{size:4,direction:"horizontal"}),"$",o.totalFee):null)}r(Bn,"RoutesOverview");import yo,{useState as An}from"react";import Ho from"react";var Wn=i("div",{backgroundColor:"$surface",padding:"1px",boxSizing:"border-box",border:"1px solid $neutral400",borderRadius:"$5",height:"$48",display:"flex",flexGrow:1,position:"relative",alignItems:"center",color:"$foreground",overflowX:"hidden",transition:"border-color ease .3s","&:focus-within":{borderColor:"$success",outline:"1px solid $success"},variants:{size:{small:{"& input":{fontSize:"$14"},height:"$32"},medium:{"& input":{fontSize:"$15"},height:"$40"},large:{"& input":{fontSize:"$16"},height:"$48"}},disabled:{true:{backgroundColor:"$neutral100",cursor:"not-allowed",filter:"grayscale(100%)"}},prefix:{true:{paddingLeft:"$16"},false:{paddingLeft:"$0"}},suffix:{true:{paddingRight:"$16"},false:{paddingRight:"$0"}}},defaultVariants:{size:"medium"}}),Mn=i("input",{color:"$foreground",paddingLeft:"$16",paddingRight:"$16",flexGrow:1,width:"100%",border:"none",borderRadius:"$5",outline:"none",backgroundColor:"transparent","-webkit-appearance":"none",margin:0,"&:disabled":{cursor:"not-allowed"},"&::-webkit-outer-spin-button, &::-webkit-inner-spin-button":{"-webkit-appearance":"none",margin:0},'&[type="number"]':{"-moz-appearance":"textfield"}}),Fn=i("label",{display:"inline-block",fontSize:"$14",color:"$foreground",marginBottom:"$4"}),ao=Ho.forwardRef((o,e)=>{let{label:t,prefix:n,suffix:a,children:l,size:d,style:p,...c}=o;return Ho.createElement(Ho.Fragment,null,t&&Ho.createElement(Fn,{className:"_text",...c.id&&{htmlFor:c.id}},t),Ho.createElement(Wn,{disabled:c.disabled,prefix:!!n,suffix:!!a,size:d,style:p,className:"_text"},n||null,Ho.createElement(Mn,{className:"_text",...c,spellCheck:!1,ref:e}),a||null))});var Nn=i("div",{overflow:"hidden",display:"flex",flexDirection:"column",flex:"1",padding:"0 $4"}),zn=i("div",{padding:"1px"});function _(o){let{title:e,Footer:t,TopButton:n,onBack:a,hasHeader:l=!0}=o,[d,p]=An("");return yo.createElement(yo.Fragment,null,l&&yo.createElement(Yo,{onBack:a,title:e||"",suffix:n}),yo.createElement(Nn,null,o.textField&&yo.createElement(zn,null,yo.createElement(ao,{size:"large",prefix:yo.createElement(de,{size:24}),placeholder:o.textFieldPlaceholder,onChange:c=>p(c.target.value),value:d,autoFocus:!0}),yo.createElement(y,{size:16})),o.textField&&o.children?.(d),!o.textField&&o.children),t)}r(_,"SecondaryPage");import Lo,{useEffect as _n,useState as jn}from"react";function q(o,e){return o.toLowerCase().indexOf(e.toLowerCase())>-1}r(q,"containsText");function ar(o,e=8,t=3){if(!o)return null;if(o.length<2*e+t)return o;let n=Math.ceil((o.length-e)/2),a=o.length-e;return`${o.substr(n,e)}${".".repeat(t)}${o.substr(a)}`}r(ar,"getConciseAddress");function be(o,e=4){let t=parseFloat(o);if(isNaN(t))return o;{let n=Math.pow(10,e);return(Math.round(t*n)/n).toString()}}r(be,"limitDecimalPlaces");var lr=r(o=>(e=>e.length===3?e.split("").map(t=>parseInt(t.repeat(2),16)):(e.match(/.{1,2}/g)||[]).map(t=>parseInt(t,16)))(o.replace("#","")),"hexToRgb"),Dn=r(o=>(([e,t,n])=>.2126*e+.7152*t+.0722*n<40)(lr(o)),"isHexTooDark"),En=r(o=>(([e,t,n])=>(e*299+t*587+n*114)/1e3>155)(lr(o)),"isHexTooLight"),Jo=r((o,e)=>{o=o.replace(/^#/,""),o.length===3&&(o=o[0]+o[0]+o[1]+o[1]+o[2]+o[2]);let[t,n,a]=o.match(/.{2}/g);[t,n,a]=[parseInt(t,16)+e,parseInt(n,16)+e,parseInt(a,16)+e],t=Math.max(Math.min(255,t),0).toString(16),n=Math.max(Math.min(255,n),0).toString(16),a=Math.max(Math.min(255,a),0).toString(16);let l=(t.length<2?"0":"")+t,d=(n.length<2?"0":"")+n,p=(a.length<2?"0":"")+a;return`#${l}${d}${p}`},"colorShade"),Hn=r((o,e,t)=>{let n={[o]:t};if(t){let a=t;if(Dn(t)||e==="dark")for(let l=1;l<10;l++)n={...n,[o+l*100]:o==="neutral"?Jo(a,l*15):Jo(t,l*5)};if(En(t)||e==="light")for(let l=1;l<10;l++)a=Jo(a,-(l*5)),n={...n,[o+l*100]:Jo(o==="neutral"?a:t,-(l*5))}}return n},"generateRangeColors");var qn=i("div",{display:"flex",flexWrap:"wrap"}),Zn=i("div",{width:12,height:12,borderRadius:6,border:"1px solid $neutral400",position:"absolute",top:12,right:12,variants:{checked:{true:{borderColor:"$success"},false:{borderColor:"$neutral400"}}}}),Vn=i("div",{width:6,margin:"20% auto",height:6,borderRadius:3,variants:{checked:{true:{backgroundColor:"$success"},false:{backgroundColor:"$neutral400"}}}}),On=i("div",{border:"1.5px solid",borderRadius:"$5",padding:"$12",flexBasis:"calc(33.33% - 10px)",margin:5,display:"flex",flexDirection:"column",justifyContent:"space-between",width:124,height:92,cursor:"pointer",position:"relative",variants:{checked:{true:{borderColor:"$success",color:"$success"},false:{borderColor:"$neutral400",color:"$neutral400"}}}});function dt({list:o,onChange:e}){let[t,n]=jn(o.find(l=>l.selected)?.walletType||""),a=r(l=>{n(l.walletType),e(l)},"onClick");return _n(()=>{n(o.find(l=>l.selected)?.walletType||"")},[o]),Lo.createElement(qn,null,o.map((l,d)=>{let p=t===l.walletType;return Lo.createElement(On,{checked:p,onClick:a.bind(null,l),key:d},Lo.createElement(I,{src:l.image,alt:l.walletType,size:24}),Lo.createElement(s,{variant:"body2"},l.name),Lo.createElement(s,{variant:"caption"},ar(l.address)),Lo.createElement(Zn,{checked:p},p&&Lo.createElement(Vn,{checked:p})))}))}r(dt,"SelectableWalletList");import Gn from"react";var Un=i("div",{position:"relative",display:"flex",flexDirection:"column",borderRadius:"$10",boxShadow:"$s",width:"100%",minWidth:"375px",maxWidth:"512px",padding:"$16",boxSizing:"border-box",backgroundColor:"$background",overflow:"hidden","& *":{boxSizing:"border-box",listStyleType:"none","&::-webkit-scrollbar":{width:"$8",height:"$8"},"&::-webkit-scrollbar-thumb":{backgroundColor:"$neutral400",borderRadius:"$10"},"&::-webkit-scrollbar-thumb:hover":{backgroundColor:"$neutral500"},"&::-webkit-scrollbar-track":{backgroundColor:"$neutral100"}},variants:{fixedHeight:{true:{height:"595px",maxHeight:"595px"},false:{height:"auto"}}}});function Yn(o){let{children:e,style:t,fixedHeight:n=!0}=o;return Gn.createElement(Un,{style:t,id:"swap-box",fixedHeight:n},e)}r(Yn,"SwapContainer");import oo from"react";import lo from"react";var Jn=i("div",{display:"flex",alignItems:"center",width:"160px","& .amount":{fontWeight:"bold"},"& .estimated":{color:"$neutral600"}}),Xn=i("div",{position:"relative",img:{borderRadius:"50%"},".overlay":{position:"absolute",right:-4,bottom:-4,width:"$16",height:"$16",padding:"$2",borderRadius:"50%",display:"flex",justifyContent:"center",alignItems:"center",backgroundColor:"$background",border:"1px solid $neutral400"}});function ct(o){let{data:{token:e,blockchain:t,amount:n,estimatedAmount:a}}=o;return lo.createElement(Jn,null,lo.createElement(Xn,null,lo.createElement(I,{src:e.logo,alt:"",size:24}),lo.createElement("div",{className:"overlay"},lo.createElement(I,{src:t.logo,alt:t.name,size:12}))),lo.createElement(y,{size:8,direction:"horizontal"}),!!n&&lo.createElement("span",{className:"amount"},o.data.amount),!n&&a&&lo.createElement("span",{className:"amount estimated"},o.data.estimatedAmount),lo.createElement(y,{size:4,direction:"horizontal"}),e.symbol)}r(ct,"Token");var Kn=i("div",{position:"relative",display:"flex",justifyContent:"space-between",alignItems:"center",padding:"$16 0",borderBottom:"1px solid $neutral100","& > .info":{display:"flex",alignItems:"center"},".status":{textTransform:"uppercase",fontWeight:"bold",fontSize:"$12"},"&.failed .status":{color:"$error"},"&.success .status":{color:"$success"}});function mt({swap:o,status:e,onClick:t}){let n=o.steps[0],a=o.steps[o.steps.length-1];return oo.createElement(u,{variant:"ghost",size:"free",fullWidth:!0,onClick:t.bind(null,o.requestId)},oo.createElement(Kn,{className:`${e}`},oo.createElement("div",{className:"info"},oo.createElement(ct,{data:{token:{logo:n.fromLogo,symbol:n.fromSymbol},blockchain:{logo:n.fromBlockchainLogo||"",name:n.fromBlockchain},amount:be(o.inputAmount)}}),oo.createElement(y,{size:12,direction:"horizontal"}),oo.createElement(fe,{size:12}),oo.createElement(y,{size:12,direction:"horizontal"}),oo.createElement(ct,{data:{token:{logo:a.toLogo,symbol:a.toSymbol},blockchain:{logo:a.toBlockchainLogo||"",name:a.toBlockchain},amount:be(a.outputAmount||""),estimatedAmount:be(a.expectedOutputAmountHumanReadable||"")}})),oo.createElement("div",{className:"status"},e==="running"?oo.createElement(L,{size:24,color:"primary"}):e)))}r(mt,"SwapDetail");import Xo from"react";import{i18n as sr}from"@lingui/core";var Qn=i("div",{height:"450px"}),Rn=i("div",{display:"flex",justifyContent:"center",width:"100%",paddingTop:"33%",flex:1});function oa(o){let{requestId:e,loading:t,onBack:n}=o;return Xo.createElement(_,{title:sr.t("Swap Details"),textField:!1,onBack:n},Xo.createElement(Qn,null,t?Xo.createElement(Rn,null,Xo.createElement(L,{size:24})):Xo.createElement(M,{type:"secondary",title:sr.t("swapNotFound",{requestId:e},{message:"Swap with request ID = ${requestId} not found."})})))}r(oa,"SwapDetailsPlaceholder");import pr from"react";import*as $e from"@radix-ui/react-switch";var ea=i($e.Root,{boxSizing:"border-box",boxShadow:"none",borderStyle:"solid",width:"42px",height:"22px",backgroundColor:"$neutral600",borderColor:"$neutral600",borderRadius:"99999px",position:"relative",padding:"0",cursor:"pointer",'&[data-state="checked"]':{backgroundColor:"$success",borderColor:"$success"},"-webkit-tap-highlight-color":"rgba(0, 0, 0, 0)"}),ta=i($e.Thumb,{position:"absolute",top:"0",boxSizing:"border-box",display:"block",width:"18px",height:"18px",backgroundColor:"$white",transition:" transform 300ms",borderRadius:"999999px",willChange:"transform",'&[data-state="checked"]':{transform:"translateX(20px)"}});function Ko(o){let{checked:e,onChange:t}=o;return pr.createElement(ea,{checked:e,onCheckedChange:t},pr.createElement(ta,null))}r(Ko,"Switch");import gt,{forwardRef as pa,useEffect as mr,useState as ut}from"react";import Te from"react";import{VariableSizeList as ra}from"react-window";import ia from"react-window-infinite-loader";import na from"react-virtualized-auto-sizer";function dr(o){let{itemCount:e,hasNextPage:t,loadNextPage:n,Item:a,innerElementType:l,size:d}=o,p=r(c=>!t||c<e,"isItemLoaded");return Te.createElement(na,null,({width:c,height:f})=>Te.createElement(ia,{isItemLoaded:p,itemCount:t?e+1:e,loadMoreItems:n,threshold:1},({onItemsRendered:b,ref:$})=>Te.createElement(ra,{innerElementType:l,ref:$,itemSize:()=>d,itemCount:e,height:f||0,width:c||0,onItemsRendered:b},({index:h,style:W})=>p(h)?Te.createElement(a,{index:h,style:W}):null)))}r(dr,"VirtualizedList");import eo from"react";var aa=i("div",{paddingRight:"$16"}),la=i("div",{display:"flex",flexDirection:"column"}),sa=i("div",{display:"flex",flexDirection:"column",alignItems:"flex-end"});function cr(o){let{token:e,style:t,onClick:n,selected:a}=o;return eo.createElement("div",{style:{display:"flex",alignItems:"center",width:"100%",...t,height:"48px",top:`${parseFloat(t?.top)+0}px`,padding:"0 4px"}},eo.createElement(u,{variant:"outlined",size:"large",align:"start",onClick:n.bind(null,e),type:a?"primary":void 0,prefix:eo.createElement(aa,null,eo.createElement(I,{src:e.image,size:32})),suffix:e.balance?.amount&&eo.createElement(sa,null,eo.createElement(s,{variant:"body2"},e.balance.amount),eo.createElement(s,{variant:"caption"},`${e.balance.usdValue}$`))},eo.createElement(la,null,eo.createElement(s,{variant:"body1"},e.symbol),eo.createElement(s,{variant:"caption",color:"neutral600"},e.name))))}r(cr,"TokenItem");var gr=20;function ht(o){let{list:e,searchedText:t,onChange:n,multiSelect:a,selectedList:l}=o,[d,p]=ut(o.selected),c=r(w=>{p(w),n(w)},"changeSelected"),f=r(w=>a&&l?l.map(C=>C.symbol+C.address).indexOf(w.symbol+w.address)>-1:d?.symbol===w.symbol&&d?.address===w.address,"isSelected"),[b,$]=ut(!0),[h,W]=ut(e),P=r(()=>{W(e.slice(0,h.length+gr))},"loadNextPage");mr(()=>{W(e.slice(0,gr))},[t,e]),mr(()=>{$(e.length>h.length)},[h.length]);let D=pa(({style:w,...C},H)=>gt.createElement("div",{ref:H,style:{...w,height:`${parseFloat(w?.height)+8*2}px`},...C}));return gt.createElement(dr,{Item:({index:w,style:C})=>gt.createElement(cr,{token:h[w],style:C,onClick:c,selected:f(h[w])}),hasNextPage:b,itemCount:h.length,loadNextPage:P,innerElementType:D,size:56})}r(ht,"TokenList");import A from"react";import{i18n as ur}from"@lingui/core";var da=i("div",{display:"flex",flexDirection:"column",width:"100%",overflow:"hidden"}),ca=i("div",{boxSizing:"border-box",borderRadius:"$5",padding:"$8 $16 $16 $16",variants:{type:{filled:{backgroundColor:"$neutral100"},outlined:{border:"1px solid $neutral100"}}},defaultVariants:{type:"filled"},".head":{display:"flex",justifyContent:"space-between",alignItems:"center",minHeight:"32px",".usd-value":{paddingLeft:"$8"}},".form":{display:"flex",width:"100%",padding:"$2 0",".selectors":{width:"35%","._text":{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"}},".amount":{width:"30%"}}}),hr=i("span",{width:"24px",height:"24px",backgroundColor:"$neutral100",borderRadius:"99999px"}),ma=i("div",{windth:"100%",height:"$48",borderRadius:"$5",backgroundColor:"$surface",border:"1px solid transparent",position:"relative",display:"flex",alignItems:"center",paddingLeft:"$8",paddingRight:"$8"});function ga(o){let{chain:e,token:t,loadingStatus:n,percentageChange:a}=o,l=A.createElement("div",{style:{display:"flex",justifyContent:"center",alignItems:"center"}},n==="failed"&&A.createElement(Y,{color:"error",size:24}));return A.createElement(da,null,A.createElement(ca,{type:"outlined"},A.createElement("div",{className:"head"},A.createElement(s,{variant:"body2",color:"neutral800"},o.label),A.createElement("div",null,a,o.usdValue&&A.createElement(s,{variant:"caption",color:"neutral600",className:"usd-value"},`$${o.usdValue}`))),A.createElement("div",{className:"form"},A.createElement(u,{className:"selectors",variant:"outlined",loading:n==="loading",prefix:n==="success"&&e?A.createElement(I,{src:e.logo,size:24}):A.createElement(hr,null),suffix:l,align:"start",size:"large"},n==="success"&&e?e.displayName:ur.t("Chain")),A.createElement(y,{size:12,direction:"horizontal"}),A.createElement(u,{className:"selectors",variant:"outlined",loading:n==="loading",prefix:n==="success"&&t?A.createElement(I,{src:t.image,size:24}):A.createElement(hr,null),suffix:l,size:"large",align:"start"},n==="success"&&t?t.symbol:ur.t("Token")),A.createElement(y,{size:12,direction:"horizontal"}),A.createElement("div",{className:"amount"},A.createElement(ma,null,A.createElement(s,{variant:"h4"},o.amount))))))}r(ga,"TokenPreview");import{detectInstallLink as ya}from"@rango-dev/wallets-shared";import Bo from"react";var ft=(a=>(a.NOT_INSTALLED="not installed",a.DISCONNECTED="disconnected",a.CONNECTING="connecting",a.CONNECTED="connected",a))(ft||{});import _o,{Fragment as ua}from"react";import{detectInstallLink as ha}from"@rango-dev/wallets-shared";var fa=i("span",{display:"flex",justifyContent:"center",alignItems:"center"}),fr=r(({walletState:o,installLink:e})=>_o.createElement(ua,null,o!=="disconnected"&&_o.createElement(fa,null,o==="not installed"&&_o.createElement("a",{href:ha(e),target:"_blank"},_o.createElement(ge,{size:24,color:"success"})),o==="connecting"&&_o.createElement(L,null),o==="connected"&&_o.createElement(Se,null))),"State");var xa=i("div",{paddingRight:"$12","& img":{borderRadius:"50%"}}),Ca=i("div",{display:"flex",flexDirection:"column"}),va=i(u,{variants:{type:{primary:{outline:"1px solid $primary",borderColor:"$primary","&:hover":{borderColor:"$primary"}}}}});function yr(o){let{name:e,type:t,image:n,state:a,onClick:l,installLink:d}=o;return Bo.createElement(va,{type:a==="connected"?"primary":void 0,disabled:a=="connecting",onClick:()=>{a==="not installed"?window.open(ya(d),"_blank"):l(t)},align:"start",variant:"outlined",size:"large",prefix:Bo.createElement(xa,null,Bo.createElement(I,{src:n,size:24})),suffix:Bo.createElement(fr,{walletState:a,installLink:d})},Bo.createElement(Ca,null,Bo.createElement(s,{variant:"h5",noWrap:!1},e),a==="connected"?Bo.createElement(s,{variant:"caption",noWrap:!1,color:"primary"},"Connected"):null))}r(yr,"Wallet");import x from"react";var Sa=i("div",{overflowY:"auto"}),ka=i("div",{paddingBottom:"$32",marginBottom:"$32",borderBottom:"1px solid $neutral400"}),wa=i("div",{display:"flex",alignItems:"center"}),xr=i("div",{padding:"$16 0"}),ba=i(u,{marginTop:"$16"}),$a=i("div",{paddingBottom:"$24",".title":{paddingBottom:"$8",display:"flex",alignItems:"center"},".num":{backgroundColor:"$neutral100",display:"inline-flex",width:"24px",height:"24px",color:"$neutral800",borderRadius:"50%",fontSize:"$14",border:"1px solid $neutral400",justifyContent:"center",alignItems:"center"}}),Ta=i("div",{paddingBottom:"$16"});function Ia(o){let{onBack:e,loading:t,onConfirm:n,requiredWallets:a,selectableWallets:l,onChange:d,confirmDisabled:p,isExperimentalChain:c,handleConnectChain:f,confirmButtonTitle:b,errors:$,warnings:h,extraMessages:W,customDestination:P,setCustomDestination:D,checkedDestination:w,setDestinationChain:C,customDestinationEnabled:H=!0,isValidCustomDestination:so,isWalletRequired:Co}=o;return x.createElement(_,{textField:!1,title:"Confirm Swap",onBack:e,Footer:x.createElement(wa,null,x.createElement(ba,{fullWidth:!0,loading:t,type:"primary",variant:"contained",onClick:n,disabled:p||!!P&&!so(a[a.length-1],P)},b))},x.createElement(Sa,null,x.createElement("div",null,W||null,x.createElement(Ta,null,$?.map((S,E)=>x.createElement(x.Fragment,{key:E},x.createElement(y,null),x.createElement(M,{type:"error",key:E,...typeof S=="string"?{title:S}:{children:S}}))),h?.map((S,E)=>x.createElement(x.Fragment,{key:E},x.createElement(y,null),x.createElement(M,{type:"warning",key:E,...typeof S=="string"?{title:S}:{children:S}}))))),o.previewInputs||o.previewRoutes?x.createElement(ka,null,o.previewInputs,o.previewRoutes?x.createElement(y,{size:16}):null,o.previewRoutes):null,a.map((S,E)=>{let vo=l.filter(V=>S===V.chain);return x.createElement($a,{key:E},x.createElement("div",{className:"title"},x.createElement("div",{className:"num"},E+1),x.createElement(y,{size:8,direction:"horizontal"}),x.createElement(s,{variant:"body2"},"Your ",S," Wallet")),vo.length===0&&(Co||!Co&&!w)&&x.createElement(x.Fragment,null,x.createElement(xr,null,x.createElement(M,{type:"error"},"You need to connect a compatible wallet with ",S,".")),c?.(S)&&x.createElement(u,{variant:"contained",type:"primary",align:"grow",onClick:()=>f?.(S)},`Add ${S} chain to Cosmos wallets`)),vo.length!=0&&x.createElement(dt,{list:vo,onChange:V=>{d(V),C(""),D("")}}),E===a.length-1&&H&&x.createElement(x.Fragment,null,x.createElement(y,null),x.createElement(et,{label:`Choose a custom ${S} address`,checked:w,onCheckedChange:V=>{V?C(S):(C(""),D(""),vo.length&&d(vo[0]))},id:"custom_destination"}),x.createElement(y,null),w&&x.createElement(x.Fragment,null,x.createElement(ao,{placeholder:"Your destination address",value:P,onChange:V=>{D(V.target.value)}}),!!P&&!so(S,P)&&x.createElement(xr,null,x.createElement(M,{type:"error"},"Not a valid ",S," address.")))))})))}r(Ia,"ConfirmSwap");import to from"react";import G from"react";var Pa=i("div",{".group-title":{textTransform:"uppercase"}});function yt(o){let{list:e,onSwapClick:t,groupBy:n}=o,a=n?n(e):[{title:"History",swaps:e}];return G.createElement(G.Fragment,null,a.filter(l=>l.swaps.length>0).map((l,d)=>G.createElement(G.Fragment,{key:d},G.createElement(Pa,null,G.createElement(s,{variant:"body2",color:"neutral600",className:"group-title"},l.title),l.swaps.map(p=>G.createElement(G.Fragment,{key:p.requestId},G.createElement(mt,{swap:p,status:p.status,onClick:t}),G.createElement(y,{size:12})))),G.createElement(y,{size:24}))))}r(yt,"SwapsGroup");import jo from"react";var Qo=i("div",{display:"flex",justifyContent:"center",width:"100%",paddingTop:"33%",flex:1}),La=r((o,e)=>o.filter(t=>q(t.symbol,e)||q(t.address||"",e)||q(t.name||"",e)),"filterTokens");function Ba(o){let{list:e,type:t,selected:n,hasHeader:a,onChange:l,onBack:d,loadingStatus:p}=o;return jo.createElement(_,{textField:!0,hasHeader:a,title:`Select ${t} token`,onBack:d,textFieldPlaceholder:"Search tokens by name"},c=>{let f=La(e,c);return p==="loading"?jo.createElement(Qo,null,jo.createElement(L,{size:24})):p==="failed"?jo.createElement(uo,null):f.length?jo.createElement(ht,{searchedText:c,list:f,selected:n,onChange:l}):jo.createElement(J,{catergory:"Token",searchedFor:c})})}r(Ba,"TokenSelector");var Wa=i("div",{overflowY:"auto"}),Ma=r((o,e)=>o.filter(t=>{let n=t.steps[0],a=t.steps[t.steps.length-1];return q(n.fromBlockchain,e)||q(n.fromSymbol,e)||q(a.toBlockchain,e)||q(a.toSymbol,e)||q(t.requestId,e)}),"filteredHistory");function Fa(o){let{list:e=[],onBack:t,onSwapClick:n,groupBy:a,loading:l}=o;return to.createElement(_,{onBack:t,textField:!0,textFieldPlaceholder:"Search by blockchain, token or request Id",title:"Swaps"},d=>{let p=Ma(e,d);return to.createElement(to.Fragment,null,l&&to.createElement(Qo,null,to.createElement(L,{size:24})),to.createElement(Wa,null,!l&&to.createElement(to.Fragment,null,p.length?to.createElement(yt,{list:p,onSwapClick:n,groupBy:a}):to.createElement(J,{catergory:"Swap"}))))})}r(Fa,"History");import N from"react";import{i18n as Aa}from"@lingui/core";var Na=i("div",{display:"flex",flexDirection:"column"}),za=i("div",{position:"relative",paddingBottom:"$12"}),Da=i("div",{width:"100%",paddingTop:"$16"}),Ea=i("div",{width:"100%",paddingTop:"$16"}),Ha=i("div",{display:"flex",flexDirection:"column",width:"100%",paddingTop:"$16"});function _a({bestRoute:o,bestRouteError:e,fetchBestRoute:t,onClickHistory:n,onClickSettings:a,fromChain:l,toChain:d,fromToken:p,toToken:c,setInputAmount:f,outputAmount:b,inputAmount:$,loadingStatus:h,showBestRoute:W,fetchingBestRoute:P,outputUsdValue:D,inputUsdValue:w,swapButtonTitle:C,swapButtonDisabled:H,swapButtonClick:so,onChainClick:Co,onTokenClick:S,connectedWallets:E,highFee:vo,errorMessage:V,hasLimitError:It,swap:Pt,fromAmountRangeError:Lr,recommendation:Br,totalFeeInUsd:Wr,swithFromAndToComponent:Mr,percentageChange:Fr,tokenBalanceReal:Lt,tokenBalance:Bt,totalTime:Ar,bestRouteData:Nr,swapFromAmount:zr,showPercentageChange:Dr}){return N.createElement(Na,null,N.createElement(Yo,{title:Aa.t("SWAP"),suffix:N.createElement(nt,{onClickRefresh:o||e?t:void 0,onClickHistory:n,onClickSettings:a})}),N.createElement(za,null,N.createElement(N.Fragment,null,N.createElement(Ie,{type:"From",chain:l,token:p,onAmountChange:f,inputAmount:$,fromChain:l,toChain:d,loadingStatus:h,inputUsdValue:w,fromToken:p,setInputAmount:f,connectedWallets:E,bestRoute:o,fetchingBestRoute:P,onChainClick:()=>Co("from-chain"),onTokenClick:()=>S("from-token"),tokenBalanceReal:Lt,tokenBalance:Bt}),Mr)),N.createElement(Ie,{type:"To",chain:d,token:c,outputAmount:b,percentageChange:Fr,outputUsdValue:D,fromChain:l,toChain:d,loadingStatus:h,inputUsdValue:w,fromToken:p,setInputAmount:f,connectedWallets:E,inputAmount:$,bestRoute:o,fetchingBestRoute:P,onChainClick:()=>Co("to-chain"),onTokenClick:()=>S("to-token"),tokenBalanceReal:Lt,tokenBalance:Bt,showPercentageChange:Dr}),W&&N.createElement(Da,null,N.createElement(Qe,{error:e,loading:P,data:Nr,totalFee:Wr,feeWarning:vo,totalTime:Ar})),(V||It(o))&&N.createElement(Ea,null,V&&N.createElement(M,{type:"error"},V),It(o)&&N.createElement(M,{type:"error",title:`${Pt?.swapperId} Limit`},N.createElement(N.Fragment,null,N.createElement(s,{variant:"body2"},`${Lr}, Yours: ${zr} ${Pt?.from.symbol}`),N.createElement(s,{variant:"body2"},Br)))),N.createElement(Ha,null,N.createElement(u,{type:"primary",align:"grow",size:"large",disabled:H,onClick:so},C),N.createElement(Re,null)))}r(_a,"HomePanel");import m,{useState as Va}from"react";import z,{useState as ja}from"react";var qa=r(o=>!o||o==="info"?"secondary":o,"getAlertType"),Za=i("div",{width:"90%",overflowWrap:"break-word",color:"$error500 !important"}),xt=i(s,{color:"$success500 !important"}),Cr=r(o=>{let{shortMessage:e,detailedMessage:t,currentStepBlockchain:n,type:a,lastConvertedTokenInFailedSwap:l}=o,[d,p]=ja(!1),c=t.long?0:150,f=!d&&t.content.length>c;return z.createElement(M,{type:qa(a),title:e,...f&&{footer:z.createElement(u,{variant:"outlined",type:"primary",onClick:p.bind(null,b=>!b)},"Show more details")},...!!o.switchNetwork&&{footer:z.createElement(u,{variant:"outlined",type:"primary",onClick:()=>{o?.switchNetwork&&o.switchNetwork().catch(()=>{})}},"Change network to ",n)}},t.content?z.createElement(Za,null,z.createElement(s,{variant:"body2"},f&&!d?t.content.substring(0,c)+(c>0?"...":""):t.content)):null,!!l&&z.createElement(z.Fragment,null,z.createElement("p",null,z.createElement(s,{variant:"body2"},"Don't worry, your fund is\xA0"),z.createElement(xt,{variant:"body2"},z.createElement("b",null,"Safe"))),z.createElement("p",null,z.createElement(s,{variant:"body2"},"It is converted to \xA0",z.createElement("u",null,l.outputAmount),"\xA0"),z.createElement(xt,{variant:"body2"},z.createElement("b",null,l.symbol,"\xA0")),z.createElement(s,{variant:"body2"},"on your\xA0"),z.createElement(xt,{variant:"body2"},z.createElement("b",null,l.blockchain,"\xA0")),z.createElement(s,{variant:"body2"},"wallet"))))},"SwapMessages");var Oa=i("div",{display:"flex",alignItems:"center",paddingLeft:"$4",variants:{created:{true:{filter:"grayscale(100%)"}},running:{true:{animation:`${Ke} 2s ease-in-out infinite`}}}}),tf=i("div",{height:"100%",display:"flex",justifyContent:"center",alignItems:"center"}),rf=i(s,{color:"$error"}),Ga=i("div",{paddingLeft:"$16",color:"$neutral800"}),Ua=i("div",{display:"flex",alignItems:"center"}),Ya=i("div",{position:"relative"}),nf=i("div",{display:"flex",alignItems:"center"}),Ja=i("div",{width:"$8",height:"$8",backgroundColor:"$foreground",borderRadius:"4px",marginLeft:"11px"}),Xa=i("div",{width:"0px",height:"0px",borderLeft:"5px solid transparent",borderRight:"5px solid transparent",borderTop:"5px solid $foreground",marginLeft:"$10"}),Ka=i("a",{color:"$primary",fontWeight:"$600"}),Qa=i("div",{display:"flex",flexDirection:"column",paddingBottom:"$16",borderBottom:"1px solid $neutral100"}),Ra=i("div",{display:"flex",".details":{padding:"$8 0"}}),vr=i("div",{display:"flex",margin:"$12 0 $12 $20"}),Sr=i("div",{display:"flex",alignItems:"center"}),kr=i(s,{color:"$success",paddingLeft:"$4"}),wr=i("div",{width:"0",minHeight:"$16",marginLeft:"14px",border:"1px dashed $foreground",borderRadius:"inherit"}),ol=i("div",{display:"flex",justifyContent:"space-between",alignItems:"center",fontSize:"$14",padding:"$8 0",".name":{color:"$neutral600"},".value":{display:"flex",alignItems:"center",color:"$neutral800",justifyContent:"flex-end"},".status":{fontWeight:"bold",textTransform:"uppercase"},".status.failed":{color:"$error"},".status.success":{color:"$success"}}),el=i("div",{width:"150px",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis","@md":{width:"auto"}}),tl=i("div",{padding:"0",color:"$neutral600",fontSize:"$10"}),rl=i("div",{overflowY:"auto",padding:"$8 $4 $2 $4"});function il(o){let{pendingSwap:e,onBack:t,onCopy:n,isCopied:a,onCancel:l,date:d,onRetry:p,previewInputs:c,...f}=o,[b,$]=Va(!1);return m.createElement(_,{title:"Swap Details",textField:!1,onBack:t,Footer:m.createElement(m.Fragment,null,e?.status==="running"&&m.createElement(u,{variant:"outlined",fullWidth:!0,type:"error",onClick:$.bind(null,!0)},"Cancel"),!!p&&m.createElement(u,{variant:"contained",fullWidth:!0,type:"primary",onClick:p},"Try again"))},m.createElement("div",null,m.createElement(Qa,null,m.createElement(ol,null,m.createElement("div",{className:"name"},"Request Id:",m.createElement("span",{className:"value requestId",onClick:n.bind(null,e?.requestId)},m.createElement(el,null,e?.requestId),m.createElement(y,{size:4,direction:"horizontal"}),m.createElement(u,{type:"primary",variant:"ghost",size:"compact"},a?"Copied!":"Copy"))),m.createElement("div",{className:"name"},m.createElement("span",{className:`value status ${e?.status||""}`},e?.status,e?.status==="running"&&m.createElement(L,{size:16,color:"primary"})),m.createElement(tl,null,d))))),m.createElement(rl,null,f.shortMessage&&m.createElement(Cr,{...f}),m.createElement(y,{size:16}),e?.steps.map((h,W)=>m.createElement("div",{key:W},W===0&&m.createElement(Ya,null,m.createElement(To,{logo:h.fromLogo,symbol:h.fromSymbol,chainLogo:h.fromBlockchainLogo||"",blockchain:h.fromBlockchain,amount:e.inputAmount}),m.createElement(Ja,null)),m.createElement(wr,null),m.createElement(Oa,{created:h.status==="created",running:!["created","success","failed"].includes(h.status)},m.createElement(I,{src:h.swapperLogo||"",alt:h.swapperId,size:20}),m.createElement(Ga,null,m.createElement(s,{variant:"body2"},h.swapperType==="DEX"?"Swap":"Bridge"," via"," ",h.swapperId),m.createElement(Ua,null,m.createElement(po,null),m.createElement(s,{variant:"body2"},"\xA0 $",h.feeInUsd," estimated gas fee")))),m.createElement("div",{style:{display:"flex"}},m.createElement(Ra,null,m.createElement(wr,null),m.createElement("div",{className:"details"},!!h.explorerUrl&&m.createElement("div",null,h.explorerUrl.map((P,D)=>m.createElement(vr,{key:D},m.createElement(Sr,null,m.createElement(y,{size:4}),m.createElement(Fo,{color:"primary"}),m.createElement(kr,{variant:"body2"},m.createElement(Ka,{href:P.url,target:"_blank",rel:"noreferrer",key:D},P.description?m.createElement("b",null,P.description.substring(0,1).toUpperCase(),P.description.substring(1)," Tx"):m.createElement("b",null,"View transaction"))))))),h.status==="failed"&&m.createElement(vr,null,m.createElement(Sr,null,m.createElement(Y,{color:"error"}),m.createElement(kr,{variant:"body2",color:"$error500"},"Step failed")))))),W+1===e.steps.length&&m.createElement(Xa,null),m.createElement(To,{logo:h.toLogo,symbol:h.toSymbol,chainLogo:h.toBlockchainLogo||"",blockchain:h.toBlockchain,amount:h.outputAmount||"",estimatedAmount:h.expectedOutputAmountHumanReadable||"",success:h.status==="success"}))),m.createElement(y,{size:32})),m.createElement(rt,{onClose:$.bind(null,!1),open:b,showClose:!0,anchor:"bottom",title:"Cancel Progress",content:m.createElement(M,{type:"warning"},m.createElement(s,{variant:"body2"},"Warning: Cancel ",m.createElement("u",null,"doesn't revert")," your transaction if you've already signed and sent a transaction to the blockchain. It only stops next steps from being executed.")),footer:m.createElement("div",{style:{display:"flex",justifyContent:"center",alignItems:"center"}},m.createElement(u,{variant:"contained",type:"success",onClick:$.bind(null,!1)},"Skip"),m.createElement(y,{size:16,direction:"horizontal"}),m.createElement(u,{variant:"contained",type:"error",onClick:()=>{l(e.requestId),$(!1)}},"Cancel progress")),container:document.getElementById("swap-box")}))}r(il,"SwapHistory");import U from"react";import qo,{useState as nl}from"react";var al=i("div",{display:"grid",gap:".5rem",gridTemplateColumns:" repeat(2, minmax(0, 1fr))",alignContent:"baseline",width:"100%",height:"100%"}),ll=i("div",{paddingRight:"$4"});function Ct(o){let{list:e,onChange:t,multiSelect:n,selectedList:a}=o,[l,d]=nl(o.selected),p=r(f=>{d(f),t(f)},"changeSelectedBlockchain"),c=r(f=>n&&a?a==="all"||a.findIndex(b=>f===b.name)>-1:f===l?.name,"isSelect");return qo.createElement(al,null,e.map((f,b)=>qo.createElement(u,{type:c(f.name)?"primary":void 0,variant:"outlined",size:"large",prefix:qo.createElement(ll,null,qo.createElement(I,{size:24,src:f.logo})),suffix:c(f.name)?qo.createElement(Je,null):void 0,align:"start",onClick:p.bind(null,f),key:b},qo.createElement(s,{variant:"body2"},f.displayName))))}r(Ct,"BlockchainsList");var sl=i("div",{overflowY:"auto",padding:"0 $4"}),pl=r((o,e)=>o.filter(t=>q(t.name,e)||q(t.displayName,e)),"filterBlockchains");function dl(o){let{type:e,list:t,onChange:n,selected:a,onBack:l,loadingStatus:d,hasHeader:p,listContainerStyle:c,multiSelect:f,selectedList:b}=o;return U.createElement(_,{textField:!0,hasHeader:p,textFieldPlaceholder:"Search blockchains by name",title:`Select ${e} Blockchain`,onBack:l},$=>{let h=pl(t,$);return U.createElement(U.Fragment,null,d==="loading"&&U.createElement(Qo,null,U.createElement(L,{size:24})),U.createElement(sl,{style:c,key:"1"},d==="failed"&&U.createElement(uo,null),d==="success"&&U.createElement(U.Fragment,null,h.length?U.createElement(Ct,{list:h,selected:a,multiSelect:f,selectedList:b,onChange:n}):U.createElement(J,{catergory:"Blockchain",searchedFor:$}))))})}r(dl,"BlockchainSelector");import vt from"react";import{i18n as cl}from"@lingui/core";var ml=i("div",{display:"grid",gap:"$8",gridTemplateColumns:"repeat(2, minmax(0, 1fr))",overflow:"auto"});function gl(o){let{open:e,list:t,onSelect:n,onClose:a}=o,l=vt.createElement(ml,null,t.map((d,p)=>vt.createElement(yr,{...d,key:p,onClick:n})));return vt.createElement(at,{title:cl.t("Connect Wallets"),open:e,content:l,onClose:a,containerStyle:{width:"75%",maxWidth:"30rem",height:"60%"}})}r(gl,"ConnectWalletsModal");import kt from"react";import k,{useEffect as ul,useState as hl}from"react";import{i18n as br}from"@lingui/core";var fl=r(o=>({bridge:o.filter(e=>e.type==="BRIDGE"||e.type==="AGGREGATOR"),exchange:o.filter(e=>e.type==="DEX")}),"groupLiquiditySources"),yl=i("div",{variants:{loaded:{true:{overflowY:"auto",padding:"0 $4"}}}}),$r=i("div",{position:"sticky",display:"flex",justifyContent:"space-between",alignItems:"center",top:"0",backgroundColor:"$background",zIndex:"9999",paddingTop:"$8",paddingBottom:"$8"}),xl=i("div",{paddingRight:"$16"}),Tr=i("div",{display:"flex",justifyContent:"center"});function St(o){let{list:e,onChange:t,listContainerStyle:n,loadingStatus:a,searchedFor:l}=o,[d,p]=hl(e.filter(C=>C.selected)),c=r(C=>{C.selected=!C.selected,p(H=>C.selected?[...H,C]:H.filter(so=>so.title!=C.title)),t(C)},"changeLiquiditySources"),f=r(C=>!!d.find(H=>C.title===H.title),"isSelected");ul(()=>{p(e.filter(C=>C.selected))},[e]);let b=fl(e),$=b.bridge,h=b.exchange,W=$.length,P=h.length,D=$.filter(f).length,w=h.filter(f).length;return k.createElement(yl,{style:n,loaded:a==="success"},k.createElement("div",null,k.createElement($r,null,k.createElement(s,{variant:"h5"},br.t("Bridges")),k.createElement(s,{variant:"body1",color:"neutral800"},D===W?W:`${D} / ${W}`)),k.createElement(y,{size:12}),a==="loading"&&k.createElement(Tr,null,k.createElement(L,{size:24})),a==="failed"&&k.createElement(uo,null),a==="success"&&k.createElement(k.Fragment,null,W?$.map((C,H)=>k.createElement(Ir,{liquiditySource:C,key:H,selected:f(C),onChange:c})):k.createElement(J,{catergory:"Bridge",searchedFor:l}))),k.createElement("div",null,k.createElement($r,null,k.createElement(s,{variant:"h5"},br.t("Exchanges")),k.createElement(s,{variant:"body1",color:"neutral800"},w===P?P:`${w} / ${P}`)),k.createElement(y,{size:12}),a==="loading"&&k.createElement(Tr,null,k.createElement(L,{size:24})),a==="failed"&&k.createElement(uo,null),a=="success"&&k.createElement(k.Fragment,null,P?h.map((C,H)=>k.createElement(Ir,{liquiditySource:C,key:H,selected:f(C),onChange:c})):k.createElement(J,{catergory:"Exchange",searchedFor:l}))))}r(St,"LiquiditySourceList");var Ir=r(({liquiditySource:o,selected:e,onChange:t})=>k.createElement(u,{size:"large",align:"start",variant:"outlined",prefix:k.createElement(xl,null,k.createElement(I,{src:o.logo,size:20})),suffix:k.createElement(Ko,{checked:e}),style:{marginBottom:"12px"},onClick:t.bind(null,o)},k.createElement(s,{variant:"body1"},o.title)),"LiquiditySourceItem");var Cl=r((o,e)=>o.filter(t=>q(t.title,e||"")),"filterLiquiditySources");function vl(o){let{list:e,onChange:t,onBack:n,hasHeader:a,listContainerStyle:l,toggleAll:d,loadingStatus:p}=o;return kt.createElement(_,{textField:!0,textFieldPlaceholder:"Search by name",title:"Liquidity Sources",TopButton:kt.createElement(u,{variant:"ghost",type:"primary",onClick:d},e.find(c=>c.selected)?"Deselect all":"Select all"),hasHeader:a,onBack:n},c=>kt.createElement(St,{listContainerStyle:l,list:Cl(e,c),onChange:t,loadingStatus:p,searchedFor:c}))}r(vl,"LiquiditySourcesSelector");import v from"react";import{Trans as wt}from"@lingui/react";import{i18n as bt}from"@lingui/core";var Sl=i("div",{display:"flex",flexDirection:"column",width:"100%",overflow:"hidden"}),kl=i("div",{boxSizing:"border-box",borderRadius:"$5",padding:"$8 $16 $16 $16",variants:{type:{filled:{backgroundColor:"$neutral100"},outlined:{border:"1px solid $neutral100",backgroundColor:"$surface"}}},defaultVariants:{type:"filled"},".head":{display:"flex",justifyContent:"space-between",alignItems:"center",minHeight:"32px"},".form":{display:"flex",width:"100%",padding:"$2 0",".selectors":{width:"35%","._text":{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"}},".amount":{width:"30%"}},".output-usd":{display:"flex",div:{display:"flex",paddingLeft:"$8"}}}),wl=i("div",{display:"flex",justifyContent:"flex-end",".balance":{display:"flex",alignItems:"center"}}),Pr=i("span",{width:"24px",height:"24px",backgroundColor:"$neutral100",borderRadius:"99999px"}),bl=i("div",{windth:"100%",height:"$48",borderRadius:"$5",backgroundColor:"$surface",border:"1px solid transparent",position:"relative",display:"flex",alignItems:"center",paddingLeft:"$8",paddingRight:"$8"});function Ie(o){let{type:e,chain:t,token:n,loadingStatus:a,fromChain:l,toChain:d,fromToken:p,setInputAmount:c,inputUsdValue:f,inputAmount:b,bestRoute:$,fetchingBestRoute:h,onChainClick:W,onTokenClick:P,tokenBalanceReal:D,tokenBalance:w}=o,C=v.createElement("div",{style:{display:"flex",justifyContent:"center",alignItems:"center"}},a==="failed"&&v.createElement(Y,{color:"error",size:24}),v.createElement(Ao,null));return v.createElement(Sl,null,v.createElement(kl,{type:e==="From"?"filled":"outlined"},v.createElement("div",{className:"head"},v.createElement(s,{variant:"body2",color:"neutral800"},e==="From"?v.createElement(wt,{id:"swap from",message:"From"}):v.createElement(wt,{id:"swap to",message:"To"})),e==="From"?v.createElement(wl,null,v.createElement("div",{className:"balance",onClick:()=>{w!=="0"&&c(D.split(",").join(""))}},v.createElement(s,{variant:"body3",color:"neutral600"},bt.t("Balance"),": ",w," ",p?.symbol||""),v.createElement(y,{size:4}),v.createElement(u,{type:"primary",variant:"ghost",size:"compact"},v.createElement(wt,{id:"maximum amount of asset",message:"Max"})))):v.createElement("div",{className:"output-usd"},v.createElement(st,{percentageChange:o.percentageChange,showPercentageChange:o.showPercentageChange}),v.createElement("div",null,v.createElement(s,{variant:"caption",color:"neutral600"},`$${o.outputUsdValue}`)))),v.createElement("div",{className:"form"},v.createElement(u,{className:"selectors",onClick:W,variant:"outlined",disabled:a==="failed",loading:a==="loading",prefix:a==="success"&&t?v.createElement(I,{src:t.logo,size:24}):v.createElement(Pr,null),suffix:C,align:"start",size:"large"},a==="success"&&t?t.displayName:bt.t("Chain")),v.createElement(y,{size:12,direction:"horizontal"}),v.createElement(u,{className:"selectors",onClick:P,variant:"outlined",disabled:a==="failed"||e==="From"&&!l||e==="To"&&!d,loading:a==="loading",prefix:a==="success"&&n?v.createElement(I,{src:n.image,size:24}):v.createElement(Pr,null),suffix:C,size:"large",align:"start"},a==="success"&&n?n.symbol:bt.t("Token")),v.createElement(y,{size:12,direction:"horizontal"}),v.createElement("div",{className:"amount"},e==="From"?v.createElement(ao,{type:"number",size:"large",autoFocus:!0,placeholder:"0",style:{position:"relative",backgroundColor:"$background !important"},suffix:v.createElement("span",{style:{position:"absolute",right:"4px",bottom:"2px"}},v.createElement(s,{variant:"caption",color:"neutral800"},`$${f}`)),value:b||"",min:0,onChange:e==="From"?H=>{o.onAmountChange(H.target.value)}:void 0}):v.createElement(bl,null,v.createElement(s,{variant:"h4"},h&&"?",!!$?.result&&`\u2248 ${o.outputAmount}`,(!b||b==="0")&&"0"))))))}r(Ie,"TokenInfo");import B,{useState as $l}from"react";import{i18n as xo}from"@lingui/core";var Pe=i("div",{borderRadius:"$5",backgroundColor:"$neutral100",padding:"$16"}),Tl=i(s,{marginBottom:"$16"}),Il=i("div",{display:"grid",rowGap:"$16",gridTemplateColumns:"repeat(auto-fill, 64px)"}),Pl=i(Pe,{display:"flex",justifyContent:"space-between",marginTop:"$16",cursor:"pointer"}),Ll=i(Pe,{display:"flex",justifyContent:"space-between",marginTop:"$16"}),Bl=i(ce,{marginLeft:"$8"}),Wl=i("div",{display:"flex",alignItems:"center",justifyContent:"center"}),Ml=i(Pe,{marginTop:"$16"}),Fl=i("div",{display:"flex",justifyContent:"space-between",alignItems:"center",paddingBottom:"$16"});function Al(o){let{slippages:e,selectedLiquiditySources:t,liquiditySources:n,onSlippageChange:a,onLiquiditySourcesClick:l,onBack:d,customSlippage:p,onCustomSlippageChange:c,maxSlippage:f,minSlippage:b,selectedTheme:$,onThemeChange:h,toggleInfiniteApprove:W,infiniteApprove:P,loadingStatus:D,singleTheme:w}=o,[C,H]=$l(o.selectedSlippage),so=r(S=>{H(S),a(S)},"changeSlippage"),Co=B.createElement(B.Fragment,null,B.createElement(Pe,null,B.createElement(Fl,null,B.createElement(s,{variant:"body2"},xo.t("Slippage tolerance")),p?B.createElement(s,{variant:"caption",color:"error"},p,"% ",xo.t("Custom")):void 0),B.createElement(Il,null,e.map((S,E)=>B.createElement(tt,{key:E,onClick:()=>{p&&c(null),so(S)},selected:!p&&S===C,label:`${S.toString()}%`,style:{marginRight:"8px"}})),B.createElement(ao,{type:"number",value:p||"",onChange:S=>{let E=parseFloat(S.target.value);(!E||E>=b&&E<=f)&&c(E)},suffix:p&&B.createElement(s,{variant:"body2"},"%"),size:"small",placeholder:"Custom %",style:{width:"128px",flexGrow:"initial"}}))),!w&&B.createElement(Ml,null,B.createElement(Tl,{variant:"body2"},xo.t("Theme")),B.createElement(pt,{value:$,options:[{value:"dark",label:`${xo.t("Dark")}`},{value:"light",label:`${xo.t("Light")}`},{value:"auto",label:`${xo.t("Auto")}`}],onChange:S=>h(S),direction:"horizontal",style:{marginTop:"$24"}})),B.createElement(Ll,null,B.createElement(s,{variant:"body2"},xo.t("Infinite Approval")),B.createElement(Ko,{checked:P,onChange:W})),B.createElement(Pl,null,B.createElement(u,{onClick:l,align:"start",variant:"ghost",loading:D==="loading",suffix:B.createElement(Wl,null,D==="success"&&B.createElement(s,{variant:"body2",color:"neutral800"},n.length!==t.length?`${t.length} / ${n.length}`:n.length),D==="failed"&&B.createElement(s,{variant:"body2",color:"$error500"},"Loading failed"),B.createElement(Bl,null))},B.createElement(s,{variant:"body2"},xo.t("Liquidity Sources")))));return B.createElement(_,{title:"Settings",textField:!1,onBack:d},Co)}r(Al,"Settings");import Le from"react";import{i18n as Nl}from"@lingui/core";function zl(o){let{highSlippage:e,selectedSlippage:t,changeSlippage:n}=o;return Le.createElement(Le.Fragment,null,e&&Le.createElement(M,{type:"warning",footer:Le.createElement(Oo,{onClick:n})},Nl.t("highSlippage",{selectedSlippage:t},{message:" Caution, your slippage is high (={selectedSlippage}). Your trade may be front run."})))}r(zl,"HighSlippageWarning");import $t from"react";import{i18n as Dl}from"@lingui/core";var El=i(s,{color:"$error500 !important"});function Hl({minRequiredSlippage:o,changeSlippage:e}){return $t.createElement(El,{variant:"body2"},Dl.t("increaseSlippage",{minRequiredSlippage:o},{message:"We recommend you to increase slippage to at least {minRequiredSlippage} for this route."}),$t.createElement(y,{size:8}),$t.createElement(Oo,{onClick:e}))}r(Hl,"MinRequiredSlippage");import Wo from"react";import{i18n as _l}from"@lingui/core";var jl=i("ul",{padding:0,margin:0,variants:{showListStyle:{true:{paddingLeft:"$24"}}}}),ql=i("li",{variants:{showListStyle:{true:{listStyleType:"disc",listStylePosition:"outside"}}}}),Zl=i(s,{display:"block"});function Vl({messages:o}){let e=o.length>1;return Wo.createElement(Wo.Fragment,null,Wo.createElement(s,{className:"title",variant:"title",color:"error"},_l.t("Insufficent Balance:")),Wo.createElement(y,{size:8}),Wo.createElement(jl,{showListStyle:e},o.map((t,n)=>Wo.createElement(ql,{showListStyle:e,key:n},Wo.createElement(Zl,{variant:"body2"},t)))))}r(Vl,"BalanceErrors");import Tt from"react";import Ol from"copy-to-clipboard";function Gl(o){let[e,t]=Tt.useState(!1),n=Tt.useCallback(a=>{Ol(a.toString()),t(!0)},[]);return Tt.useEffect(()=>{let a;return e&&o&&(a=setTimeout(()=>t(!1),o)),()=>{clearTimeout(a)}},[e,o]),[e,n]}r(Gl,"useCopyToClipboard");export{Et as AddCircleIcon,oe as AddIcon,ve as AddWalletIcon,M as Alert,Ao as AngleDownIcon,Ze as AngleLeftIcon,ce as AngleRightIcon,Zt as AngleUpIcon,fe as ArrowRightIcon,or as BagIcon,Vl as BalanceErrors,_t as BanIcon,Qe as BestRoute,dl as BlockchainSelector,Re as BottomLogo,u as Button,Oo as ChangeSlippageButton,Fo as CheckCircleIcon,re as CheckIcon,Dt as CheckSquareIcon,Qt as CheckWalletIcon,et as Checkbox,ue as ChevronRightIcon,tt as Chip,mo as CloseIcon,en as ColorPicker,Ia as ConfirmSwap,gl as ConnectWalletsModal,tr as CopyIcon,zt as DeleteCircleIcon,Kt as DeleteWalletIcon,Se as DisconnectIcon,y as Divider,ge as DownloadIcon,rt as Drawer,Je as FilledCircle,po as GasIcon,Yo as Header,nt as HeaderButtons,fn as HeaderLayout,zl as HighSlippageWarning,Fa as History,ae as HistoryIcon,_a as HomePanel,Jt as HorizontalSwapIcon,Vr as I18nManager,I as Image,Y as InfoCircleIcon,vl as LiquiditySourcesSelector,uo as LoadingFailedAlert,Hl as MinRequiredSlippage,Ht as MinusCircleIcon,at as Modal,J as NotFoundAlert,st as PercentageChange,pt as Radio,Ce as RetryIcon,Gt as RetryLeftIcon,Ot as RetryRightIcon,Bn as RoutesOverview,de as SearchIcon,qt as SearchMinusIcon,_ as SecondaryPage,dt as SelectableWalletList,Al as Settings,pe as SettingsIcon,er as SignatureIcon,L as Spinner,To as StepDetail,Yn as SwapContainer,mt as SwapDetail,oa as SwapDetailsPlaceholder,il as SwapHistory,Rt as SwapWalletIcon,yt as SwapsGroup,Ko as Switch,ao as TextField,ke as TimeIcon,Ie as TokenInfo,ht as TokenList,ga as TokenPreview,Ba as TokenSelector,ho as Tooltip,jt as TrashIcon,Ut as TryAgainIcon,s as Typography,Yt as VerticalSwapIcon,yr as Wallet,Xt as WalletIcon,ft as WalletState,ne as WarningIcon,ms as config,Nt as createTheme,ds as css,ro as darkTheme,Hn as generateRangeColors,cs as globalCss,Mo as keyframes,gs as lightTheme,i as styled,Gl as useCopyToClipboard};
19
+ S29.0059509,37.5872993,28.4444485,37.5872993z`}))),"CopyIcon");Et.toString=()=>"._icon";import Cr from"react";var vr=i("span",{margin:0,display:"inline-block",variants:{variant:{h1:{fontSize:"$36",fontWeight:"$700","@md":{fontSize:"$40"},"@lg":{fontSize:"$48"}},h2:{fontSize:"$32",fontWeight:"$700","@md":{fontSize:"$36"},"@lg":{fontSize:"$40"}},h3:{fontSize:"$20",fontWeight:"$700","@md":{fontSize:"$24"},"@lg":{fontSize:"$32"}},h4:{fontSize:"$18",fontWeight:"$600","@md":{fontSize:"$20"},"@lg":{fontSize:"$24"}},h5:{fontSize:"$16",fontWeight:"$600"},h6:{fontSize:"$14",fontWeight:"$500","@md":{fontSize:"$16"},"@lg":{fontSize:"$18"}},title:{fontSize:"$14",fontWeight:"$500","@md":{fontSize:"$15"}},body1:{fontSize:"$14",fontWeight:"$400","@md":{fontSize:"$16"},"@lg":{fontSize:"$18"}},body2:{fontSize:"$14",fontWeight:"$400"},body3:{fontSize:"$12",fontWeight:"$400"},caption:{fontSize:"$10",fontWeight:"$400","@lg":{fontSize:"$12"}}},align:{center:{textAlign:"center"},left:{textAlign:"left"},right:{textAlign:"right"}},noWrap:{true:{whiteSpace:"nowrap"}},ml:{2:{marginLeft:"$2"},4:{marginLeft:"$4"},8:{marginLeft:"$8"},12:{marginLeft:"$12"}},mt:{2:{marginTop:"$2"},4:{marginTop:"$4"},8:{marginTop:"$8"},12:{marginTop:"$12"}},mr:{2:{marginRight:"$2"},4:{marginRight:"$4"},8:{marginRight:"$8"},12:{marginRight:"$12"}},mb:{2:{marginBottom:"$2"},4:{marginBottom:"$4"},8:{marginBottom:"$8"},12:{marginBottom:"$12"}}}});function p({children:o,className:e,color:t,...n}){let a=t?{color:t.startsWith("$")?t:`$${t}`}:{color:"$foreground"};return Cr.createElement(vr,{className:`_typography _text ${e||""}`,css:a,...n},o)}r(p,"Typography");p.toString=()=>"._typography";import Sr from"react";var wr=i("div",{variants:{size:{4:{},8:{},12:{},16:{},18:{},20:{},24:{},32:{}},direction:{vertical:{},horizontal:{}}},compoundVariants:[{size:4,direction:"horizontal",css:{width:"$4"}},{size:4,direction:"vertical",css:{height:"$4"}},{size:8,direction:"horizontal",css:{width:"$8"}},{size:8,direction:"vertical",css:{height:"$8"}},{size:12,direction:"horizontal",css:{width:"$12"}},{size:12,direction:"vertical",css:{height:"$12"}},{size:16,direction:"horizontal",css:{width:"$16"}},{size:16,direction:"vertical",css:{height:"$16"}},{size:18,direction:"horizontal",css:{width:"$18"}},{size:18,direction:"vertical",css:{height:"$18"}},{size:20,direction:"horizontal",css:{width:"$20"}},{size:20,direction:"vertical",css:{height:"$20"}},{size:24,direction:"horizontal",css:{width:"$24"}},{size:24,direction:"vertical",css:{height:"$24"}},{size:32,direction:"horizontal",css:{width:"$32"}},{size:32,direction:"vertical",css:{height:"$32"}}]});function x({size:o=12,direction:e="vertical"}){return Sr.createElement(wr,{size:o,direction:e})}r(x,"Divider");var kr=i("div",{width:"100%",padding:"$16",borderRadius:"$5",backgroundColor:"$neutral100",color:"$neutral800",".main":{display:"flex",alignItems:"center"},".footer":{paddingTop:"$8"},"&.hasIcon .footer":{paddingLeft:"$32"},variants:{type:{primary:{color:"$primary200"},secondary:{color:"$foreground"},success:{color:"$success300"},warning:{color:"$warning500"},error:{color:"$error300"}}}});function A(o){let{type:e,children:t,title:n}=o,a=["error","success","warning"].includes(e);return D.createElement(kr,{type:e,className:a?"hasIcon":""},D.createElement("div",{className:"main"},a&&D.createElement(D.Fragment,null,D.createElement("div",{style:{width:"32px",display:"flex",justifyContent:"center",alignItems:"center"}},e==="success"&&D.createElement($o,{color:e,size:24}),e==="warning"&&D.createElement(Ko,{color:e,size:24}),e==="error"&&D.createElement(bo,{color:e,size:24}),D.createElement(x,{size:4,direction:"horizontal"}))),D.createElement("div",{style:{display:"flex",justifyContent:"center",alignItems:"start",flexDirection:"column",width:"100%"}},n&&D.createElement(D.Fragment,null,D.createElement(p,{className:"title",variant:"title",color:e},n),!!t&&D.createElement(x,{size:4})),t)),o.footer?D.createElement("div",{className:"footer"},o.footer):null)}r(A,"Alert");import br from"react";import{i18n as $r}from"@lingui/core";function ro(){return br.createElement(A,{type:"error",title:$r.t(" Error connecting server, please reload the app and try again.")})}r(ro,"LoadingFailedAlert");import Tr from"react";function Z(o){let{catergory:e,searchedFor:t}=o;return Tr.createElement(A,{type:"secondary",title:`${e} ${t?"'"+t+"'":""} not found.`})}r(Z,"NotFoundAlert");import w,{Fragment as Vr}from"react";import{i18n as _e}from"@lingui/core";import V from"react";var Ir=i("div",{position:"relative",width:"$28",height:"$28",variants:{direction:{vertical:{margin:"auto"},horizontal:{}}}}),Pr=i("img",{width:"$28",height:"$28",borderRadius:"50%"}),Lr=i("div",{position:"absolute",right:-4,bottom:-4,width:"$16",height:"$16",padding:"$2",borderRadius:"50%",backgroundColor:"$background",border:"1px solid $neutral400",img:{width:"100%",display:"block"}}),Wr=i("div",{display:"flex",variants:{direction:{horizontal:{alignItems:"center"},vertical:{flexDirection:"column",textAlign:"center",justifyContent:"center"}},success:{true:{filter:"none"},false:{filter:"grayscale(100%)"}}}}),Br=i("div",{variants:{pl:{true:{paddingLeft:"$4","@lg":{paddingLeft:"$8"}},false:{paddingTop:"$8"}}}}),Mr=i(p,{color:"$neutral600",display:"block",paddingLeft:"$8"});function uo(o){let{logo:e,chainLogo:t,amount:n,symbol:a,blockchain:s,estimatedAmount:c,success:l=!0,direction:m="horizontal"}=o;return V.createElement(Wr,{direction:m,success:l},V.createElement(Ir,{direction:m},V.createElement(Pr,{src:e,alt:a}),V.createElement(Lr,null,V.createElement("img",{src:t,alt:s}))),V.createElement(Br,{pl:m==="horizontal"},n&&V.createElement(p,{noWrap:!0,variant:m==="vertical"?"body2":"title"},n),!n&&c&&V.createElement(p,{noWrap:!0,variant:m==="vertical"?"body2":"title",color:"$neutral600"},c),"\xA0",V.createElement(p,{variant:m==="vertical"?"body2":"title",noWrap:!0},a),V.createElement(Mr,{noWrap:!0,variant:"caption",color:"$neutral800"},"on ",s)))}r(uo,"StepDetail");import Fr from"react";var Ar=ko({"0%":{backgroundPosition:"-468px 0"},"100%":{backgroundPosition:"468px 0"}}),Nr=i("div",{borderRadius:"$5",backgroundColor:"$neutral100",background:"linear-gradient(to right, rgba(130, 130, 130, 0.2) 8%, rgba(130, 130, 130, 0.3) 18%, rgba(130, 130, 130, 0.2) 33%)",backgroundSize:"800px 100px",animation:`${Ar} 2s infinite ease-out`,variants:{width:{16:{width:"$16"},20:{width:"$20"},24:{width:"$24"},36:{width:"$36"},48:{width:"$48"}},height:{16:{height:"$16"},20:{height:"$20"},24:{height:"$24"},36:{height:"$36"},48:{height:"$48"},94:{height:94}}}});function Ee({width:o=20,height:e=20}){return Fr.createElement(Nr,{width:o,height:e})}r(Ee,"Skeleton");import Dr from"react";var zr=ko({"100%":{transform:"rotate(360deg)"}}),Er=i("div",{borderRadius:"50%",position:"relative",border:"2px solid $neutral100",borderRight:"2px solid",animation:`${zr} 1.5s linear infinite`,margin:"0px $8",variants:{color:{primary:{borderRightColor:"$primary"},error:{borderRightColor:"$error"},warning:{borderRightColor:"$warning"},success:{borderRightColor:"$success"},black:{borderRightColor:"$black"},white:{borderRightColor:"$white"}},size:{16:{width:"$16",height:"$16"},20:{width:"$20",height:"$20"},24:{width:"$24",height:"$24"}}}});function P({size:o=16,color:e="primary"}){return Dr.createElement(Er,{size:o,color:e})}r(P,"Spinner");import*as _ from"@radix-ui/react-tooltip";import fo from"react";var Hr=i(_.Trigger,{border:0,padding:0,backgroundColor:"transparent"}),_r=i(_.Content,{borderRadius:"$5",padding:"$4 $8",fontSize:"$14",animationDuration:"400ms",animationTimingFunction:"cubic-bezier(0.16, 1, 0.3, 1)",willChange:"transform, opacity",variants:{color:{primary:{backgroundColor:"$primary",color:"$white"},error:{backgroundColor:"$error",color:"$white"},warning:{backgroundColor:"$warning",color:"$white"},success:{backgroundColor:"$success",color:"$white"},gray:{backgroundColor:"$neutral100",color:"$black"},black:{backgroundColor:"$black",color:"$white"},white:{backgroundColor:"$white",color:"$black"}}}}),qr=i(_.Arrow,{variants:{color:{primary:{fill:"$primary"},error:{fill:"$error"},warning:{fill:"$warning"},success:{fill:"$success"},gray:{fill:"$neutral100"},black:{fill:"$black"},white:{fill:"$white"}}}}),jr=i("div",{display:"inline-block"});function io({children:o,content:e,side:t="top",color:n="gray"}){return fo.createElement(_.Provider,null,fo.createElement(_.Root,null,fo.createElement(Hr,{asChild:!0},fo.createElement(jr,null,o)),fo.createElement(_.Portal,null,fo.createElement(_r,{color:n,side:t,sideOffset:5},e,fo.createElement(qr,{color:n})))))}r(io,"Tooltip");var He=i("span",{width:"10px",height:"10px",backgroundColor:"$primary",borderRadius:"99999px"});import Ht from"react";var Zr=i("div",{display:"flex",justifyContent:"center",alignItems:"center",".image":{width:"100%",height:"100%",objectFit:"contain"}});function B(o){let{size:e,...t}=o;return Ht.createElement(Zr,{css:{width:e+"px",height:e+"px"}},Ht.createElement("img",{className:"image",...t}))}r(B,"Image");var Gr=i("div",{borderRadius:"$5",border:"1px solid $neutral100",display:"flex",alignItems:"center",minHeight:126,justifyContent:"space-between",backgroundColor:"$surface"}),Or=i(p,{color:"$error"}),Ur=i("div",{display:"flex",alignItems:"center",margin:"0 auto",overflowX:"auto",overflowY:"hidden",alignSelf:"stretch",padding:"$4","@md":{padding:"$8"}}),_t=i("div",{height:"0",width:"$20",border:"1px dashed $foreground",borderRadius:"inherit","@lg":{width:"$32"}}),Yr=i("hr",{width:"100%",border:"1px solid $neutral400",margin:"$8 0"}),Jr=i("div",{position:"relative"}),Xr=i("div",{width:"$6",height:"$6",backgroundColor:"$foreground",position:"absolute",top:"45%",right:-5,marginLeft:"$8",borderRadius:"50%","@md":{width:"$8",height:"$8",right:-8,top:"45%"}}),Kr=i("div",{width:"0px",height:"0px",borderTop:"5px solid transparent",borderBottom:"5px solid transparent",borderLeft:"5px solid $foreground"}),qe=ko({"0%":{opacity:1},"50%":{opacity:.3},"100%":{opacity:1}}),Qr=i("div",{backgroundColor:"$neutral100",borderRadius:"5px",margin:"$4",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",padding:"$4","@md":{padding:"$8",margin:"$8"}}),qt=i("div",{display:"flex",flexDirection:"column",alignItems:"center",variants:{warning:{true:{animation:`${qe} 2s ease-in-out infinite`}}}}),Rr=i(p,{variants:{warning:{true:{color:"$warning300"}}}}),oi=i("div",{padding:"$4","@md":{padding:"$8"}}),ei=i("div",{display:"flex",justifyContent:"center",alignItems:"center"});function ti(o){let{data:e,loading:t,error:n,totalFee:a,feeWarning:s,totalTime:c}=o;return w.createElement(Gr,null,t?w.createElement(oi,null,w.createElement(Ee,{width:48,height:94})):w.createElement(Qr,null,w.createElement(io,{content:_e.t("Transaction cost (fee)")},w.createElement(qt,{warning:s},w.createElement(To,{size:20,color:s?"warning":void 0}),w.createElement(Rr,{mt:4,align:"center",variant:"caption",warning:s},n&&"-",!!e&&`$${a}`))),w.createElement(Yr,null),w.createElement(io,{content:_e.t("Time estimate")},w.createElement(qt,{warning:s},w.createElement(ge,{size:20}),w.createElement(p,{mt:4,align:"center",variant:"caption"},n&&"-",!!e&&`~${c}m`)))),w.createElement(Ur,null,t&&w.createElement(P,{color:"primary"}),n&&w.createElement(Or,{variant:"caption"},n),!!e&&e.result?.swaps.map((l,m)=>w.createElement(Vr,{key:m},m===0&&w.createElement(Jr,null,w.createElement(uo,{direction:"vertical",logo:l.from.logo,symbol:l.from.symbol,chainLogo:l.from.blockchainLogo,blockchain:l.from.blockchain,amount:l.fromAmount}),w.createElement(Xr,null)),w.createElement(ei,null,w.createElement(_t,null),w.createElement(B,{src:l.swapperLogo,alt:l.swapperId,size:20}),w.createElement(_t,null)),m+1===e.result?.swaps.length&&w.createElement(Kr,null),w.createElement(uo,{direction:"vertical",logo:l.to.logo,symbol:l.to.symbol,chainLogo:l.to.blockchainLogo,blockchain:l.to.blockchain,amount:l.toAmount}))),!!e&&!e?.result&&w.createElement(p,{variant:"body2"},_e.t("No routes found"))))}r(ti,"BestRoute");import G from"react";import{i18n as ri}from"@lingui/core";var ii=i("div",{display:"flex",width:"100%",justifyContent:"end",alignItems:"center",paddingTop:"$16"}),ni=i("svg",{fill:"$foreground",width:"$24",margin:"0 $8 0 $16"}),ai=i("a",{display:"flex",justifyContent:"center",alignItems:"center",textDecoration:"none"});function si(){return G.createElement(ii,null,G.createElement(p,{variant:"caption",color:"$neutral600"},ri.t("Powered By")),G.createElement(ai,{href:"https://rango.exchange",target:"_blank"},G.createElement(ni,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 33.68 29"},G.createElement("defs",null),G.createElement("g",{id:"Layer_2","data-name":"Layer 2"},G.createElement("g",{id:"Layer_1-2","data-name":"Layer 1"},G.createElement("path",{d:"M33.68,18.05A17.93,17.93,0,0,0,28.34,5.29,18.31,18.31,0,0,0,15.45,0H13.54V7.41L6.07,0H.69L9.83,9.07H0V11A17.93,17.93,0,0,0,5.34,23.71,18.32,18.32,0,0,0,18.24,29h1.9V21.59l7.38,7.31h5.39l-9-9h9.82ZM17.37,16.16H12.49a1.93,1.93,0,0,0-1.35.55,1.89,1.89,0,0,0-.56,1.34,1.85,1.85,0,0,0,.56,1.33,1.93,1.93,0,0,0,1.35.55h3.84V25.1A14.43,14.43,0,0,1,8,21a14.21,14.21,0,0,1-4.1-8.2H21.2a1.86,1.86,0,0,0,.74-.13,1.92,1.92,0,0,0,.64-.4,2,2,0,0,0,.43-.62,1.88,1.88,0,0,0,0-1.47,2,2,0,0,0-.43-.62,1.92,1.92,0,0,0-.64-.4,1.86,1.86,0,0,0-.74-.13H17.35V3.9A14.43,14.43,0,0,1,25.64,8a14.19,14.19,0,0,1,4.11,8.2Zm2.12-5.27a1.43,1.43,0,0,1,.26-.83,1.52,1.52,0,0,1,.67-.56,1.55,1.55,0,0,1,.88-.08,1.51,1.51,0,0,1,.77.4,1.54,1.54,0,0,1,.42.77,1.41,1.41,0,0,1-.09.86,1.47,1.47,0,0,1-.55.68,1.56,1.56,0,0,1-.84.25,1.52,1.52,0,0,1-1.52-1.49Z"}),G.createElement("path",{d:"M21.7,11.57a.68.68,0,0,0-.12-.38.64.64,0,0,0-.31-.25.68.68,0,0,0-.75.15.61.61,0,0,0-.19.35.62.62,0,0,0,0,.4.67.67,0,0,0,.25.3.69.69,0,0,0,.39.12.7.7,0,0,0,.49-.2A.68.68,0,0,0,21.7,11.57Z"})))),G.createElement(p,{variant:"body2"},"RANGO")))}r(si,"BottomLogo");import je from"react";var li=i("button",{borderRadius:"$5",fontSize:"$16",fontWeight:"$400",cursor:"pointer",padding:"0 $12",display:"flex",alignItems:"center",justifyContent:"center",transition:"all 0.35s",border:"0","&:active":{transform:"scale(0.95)"},variants:{align:{start:{display:"flex",width:"100%"},grow:{display:"flex",width:"100%"}},size:{compact:{},free:{},small:{height:"$32"},medium:{height:"$40"},large:{height:"$48"}},variant:{contained:{backgroundColor:"$neutral100",color:"$foreground",border:0,"&:hover":{backgroundColor:"$neutral200"},"&:disabled":{background:"$neutral400"},"&:disabled:hover":{background:"$neutral400",transform:"unset"}},outlined:{backgroundColor:"$surface",border:1,borderStyle:"solid",borderColor:"$neutral400",color:"$foreground","&:hover":{borderColor:"$neutral600"},"&:disabled":{borderColor:"$neutral400",color:"$neutral400"}},ghost:{color:"$foreground","&:hover":{backgroundColor:"$neutral200"},"&:disabled":{color:"$neutral400"},background:"transparent",border:0,[`& ${p}`]:{color:"inherit"}}},fullWidth:{true:{width:"100%"}},loading:{true:{}},type:{primary:{},error:{},warning:{},success:{}}},compoundVariants:[{type:"primary",variant:"contained",css:{background:"$primary",color:"$white","&:hover":{background:"$primary700"},"&:visited":{background:"$primary900"},"&:focus":{background:"$primary600"}}},{type:"primary",variant:"outlined",css:{color:"$primary",borderColor:"$primary","&:hover":{color:"$primary700",borderColor:"$primary700"},"&:visited":{color:"$primary900",borderColor:"$primary900"},"&:focus":{color:"$primary600",borderColor:"$primary600"}}},{type:"primary",variant:"ghost",css:{color:"$primary","&:hover":{color:"$primary700"},"&:visited":{color:"$primary900"},"&:focus":{color:"$primary600"}}},{type:"error",variant:"contained",css:{background:"$error",$$color:"$colors$background",[`.${X} &`]:{$$color:"$colors$foreground"},color:"$$color","&:hover":{background:"$error300"},"&:visited":{background:"$error700"},"&:focus":{background:"$error700"}}},{type:"error",variant:"outlined",css:{color:"$error",borderColor:"$error","&:hover":{color:"$error300",borderColor:"$error300"},"&:visited":{color:"$error700",borderColor:"$error700"},"&:focus":{color:"$error700",borderColor:"$error700"}}},{type:"error",variant:"ghost",css:{color:"$error","&:hover":{color:"$error300"},"&:visited":{color:"$error700"},"&:focus":{color:"$error700"}}},{type:"warning",variant:"contained",css:{background:"$warning",$$color:"$colors$background",[`.${X} &`]:{$$color:"$colors$foreground"},color:"$$color","&:hover":{background:"$warning300"},"&:visited":{background:"$warning700"},"&:focus":{background:"$warning700"}}},{type:"warning",variant:"outlined",css:{color:"$warning",borderColor:"$warning","&:hover":{color:"$warning300",borderColor:"$warning300"},"&:visited":{color:"$warning700",borderColor:"$warning700"},"&:focus":{color:"$warning700",borderColor:"$warning700"}}},{type:"warning",variant:"ghost",css:{color:"$warning","&:hover":{color:"$warning300"},"&:visited":{color:"$warning700"},"&:focus":{color:"$warning700"}}},{type:"success",variant:"contained",css:{background:"$success",$$color:"$colors$background",[`.${X} &`]:{$$color:"$colors$foreground"},color:"$$color","&:hover":{background:"$success300"},"&:visited":{background:"$success700"},"&:focus":{background:"$success700"}}},{type:"success",variant:"outlined",css:{color:"$success",borderColor:"$success","&:hover":{color:"$success300",borderColor:"$success300"},"&:visited":{color:"$success700",borderColor:"$success700"},"&:focus":{color:"$success700",borderColor:"$success700"}}},{type:"success",variant:"ghost",css:{color:"$success","&:hover":{color:"$success300"},"&:visited":{color:"$success700"},"&:focus":{color:"$success700"}}},{size:"compact",css:{padding:"$2 $4",fontSize:"$12"}}],defaultVariants:{size:"medium",variant:"contained"}}),pi=i("div",{flex:1,variants:{align:{start:{textAlign:"left"},grow:{textAlign:"center"}},ml:{true:{marginLeft:"$8"}},mr:{true:{marginRight:"$8"}},flexContent:{true:{display:"flex",alignItems:"center"}}}});function f({children:o,loading:e,disabled:t,prefix:n,suffix:a,align:s,flexContent:c,...l}){return je.createElement(li,{disabled:e||t,...l,align:s},n,o&&je.createElement(pi,{align:s,ml:!!n,mr:!!a&&!e,flexContent:c,className:"_text"},o),e&&je.createElement(P,{size:16,color:l.type}),a)}r(f,"Button");import ci from"react";import{i18n as di}from"@lingui/core";function Eo(o){let{onClick:e}=o;return ci.createElement(f,{type:"primary",variant:"outlined",size:"small",onClick:e},di.t("Change Slippage"))}r(Eo,"ChangeSlippageButton");import Ho from"react";import*as he from"@radix-ui/react-checkbox";var mi=i("div",{display:"flex",alignItems:"center"}),gi=i(he.Root,{borderRadius:"5px",width:20,padding:0,height:20,border:"1px solid $foreground",display:"flex",alignItems:"center",justifyContent:"center",marginRight:"$2",backgroundColor:"$neutral-100",cursor:"pointer"}),hi=i("label",{color:"$foreground",fontSize:"$m",marginLeft:"$8",cursor:"pointer"});function Ze({label:o,id:e,...t}){return Ho.createElement(mi,null,Ho.createElement(gi,{id:e,...t},Ho.createElement(he.Indicator,null,Ho.createElement(Jo,{size:20}))),Ho.createElement(hi,{className:"_text",htmlFor:e},o))}r(Ze,"Checkbox");import ui from"react";var fi=i("div",{display:"inline-flex",justifyContent:"center",alignItems:"center",borderRadius:"$5",padding:"$4 $8",height:"32",fontSize:"$14",cursor:"pointer",transition:"all 0.35s",color:"$foreground","&:hover":{backgroundColor:"$success700",color:"$background"},variants:{selected:{true:{backgroundColor:"$success",color:"$background"},false:{backgroundColor:"$surface"}}}});function Ve(o){let{label:e,selected:t,prefix:n,suffix:a,onClick:s,style:c}=o;return ui.createElement(fi,{selected:t,onClick:s,style:c},n||null,e,a||null)}r(Ve,"Chip");import K,{useState as yi}from"react";import{ChromePicker as xi}from"react-color";import Ci from"rgb-hex";var vi=i("div",{position:"relative"}),Si=i("div",{border:"1px solid $neutral100",borderRadius:"$5",width:"$32",height:"$32"}),wi=i("div",{position:"fixed",top:"0px",right:"0px",bottom:"0px",left:"0px"}),ki=i("div",{position:"absolute",zIndex:"2",variants:{place:{top:{top:"-241px"},bottom:{},left:{top:"-50%",left:"-225px"},right:{top:"-50%",right:"-225px"}}}}),bi=i("label",{display:"inline-block",fontSize:"$14",marginBottom:"$4",color:"$foreground"});function $i({color:o,onChangeColor:e,label:t,place:n,placeholder:a}){let[s,c]=yi(!1);return K.createElement(vi,null,K.createElement(bi,{className:"_text"},t),K.createElement(f,{variant:"outlined",prefix:K.createElement(Si,{style:{backgroundColor:o}}),fullWidth:!0,align:"start",size:"large",suffix:o&&K.createElement("div",{onClick:l=>{l.stopPropagation(),e(void 0)}},K.createElement(eo,{size:20})),onClick:()=>c(l=>!l)},o||a),s&&K.createElement(ki,{place:n},K.createElement(wi,{onClick:()=>c(!1)}),K.createElement(xi,{color:o,onChange:l=>{let m="#"+Ci(l.rgb.r,l.rgb.g,l.rgb.b,l.rgb.a);e(m)}})))}r($i,"ColorPicker");import Q from"react";import{createPortal as Ti}from"react-dom";var Ii=i("div",{position:"absolute",top:"0",left:"0",width:"100%",height:"100%",zIndex:9999999,backgroundColor:"rgba(0,0,0,.1)",borderRadius:"$10"}),Pi=i("div",{position:"absolute",boxShadow:"$s",background:"$background",padding:"$20",display:"flex",flexDirection:"column",justifyContent:"space-between",zIndex:9999999,borderRadius:"$10",variants:{anchor:{left:{top:0,left:0,height:"100%",minWidth:"300px",maxWidth:"90%"},right:{top:0,right:0,height:"100%",minWidth:"300px",maxWidth:"90%"},bottom:{bottom:0,width:"100%",maxHeight:"90%"},top:{top:0,width:"100%",maxHeight:"90%"}}}}),Li=i("div",{display:"flex",justifyContent:"space-between",alignItems:"center",position:"relative",marginBottom:"$16"}),Wi=i("div",{overflowY:"auto",height:"100%"}),Bi=i("footer",{width:"100%",marginTop:"$28"});function Ge(o){let{title:e,content:t,open:n,onClose:a,containerStyle:s,anchor:c="bottom",showClose:l=!1,footer:m,container:u}=o;return Q.createElement(Q.Fragment,null,n&&u&&Ti(Q.createElement(Ii,{onClick:r(b=>{b.target===b.currentTarget&&a()},"handleBackDropClick")},Q.createElement(Pi,{anchor:c,style:s},Q.createElement(Li,null,Q.createElement(p,{variant:"h6"},e),l&&Q.createElement(eo,{size:24,onClick:a})),Q.createElement(Wi,null,t),Q.createElement(Bi,null,m))),u))}r(Ge,"Drawer");import _o from"react";var Mi=i("div",{display:"flex",justifyContent:"space-between",alignItems:"center",padding:"$8 0",position:"relative"}),Fi=i(f,{padding:"$8"});function Oe(o){return _o.createElement(Mi,null,o.onBack?_o.createElement(Fi,{variant:"ghost",size:"small",onClick:o.onBack},_o.createElement(Fe,{size:24})):null,o.prefix,_o.createElement(p,{variant:"h4"},o.title),o.suffix||_o.createElement("div",null))}r(Oe,"Header");import O from"react";import{i18n as Ue}from"@lingui/core";var Ai=i("div",{display:"flex"});function Ni(o){let{onClickRefresh:e,onClickHistory:t,onClickSettings:n}=o;return O.createElement(Ai,null,O.createElement(io,{content:Ue.t("Refresh")},O.createElement(f,{variant:"ghost",onClick:e,disabled:!e},O.createElement(de,{size:24,disabled:!e}))),O.createElement(io,{content:Ue.t("Transactions History")},O.createElement(f,{variant:"ghost",onClick:t},O.createElement(Qo,{size:24}))),O.createElement(io,{content:Ue.t("Settings")},O.createElement(f,{variant:"ghost",onClick:n},O.createElement(ee,{size:24}))))}r(Ni,"HeaderButtons");import no,{useEffect as Di}from"react";import{createPortal as zi}from"react-dom";var Ei=i("div",{position:"fixed",display:"flex",justifyContent:"center",alignItems:"center",top:"0",left:"0",width:"100vw",height:"100vh",backgroundColor:"rgba(0,0,0,.1)",zIndex:10}),Hi=i("div",{backgroundColor:"$background",borderRadius:"$10",padding:"$16 $16",display:"flex",flexDirection:"column",zIndex:20}),_i=i("div",{display:"flex",alignItems:"center"}),qi=i("div",{display:"flex",justifyContent:"space-between",alignItems:"center",position:"relative",marginBottom:"$16"});function Ye(o){let{title:e,content:t,open:n,onClose:a,containerStyle:s,action:c}=o,l=r(m=>{m.target===m.currentTarget&&a()},"handleBackDropClick");return Di(()=>{n?document.body.style.overflow="hidden":document.body.style.overflow="unset"},[n]),no.createElement(no.Fragment,null,n&&zi(no.createElement(Ei,{onClick:l},no.createElement(Hi,{css:s},no.createElement(qi,null,no.createElement(p,{variant:"h4"},e),no.createElement(_i,null,c,no.createElement(eo,{size:24,onClick:a}))),t)),document.body))}r(Ye,"Modal");import yo from"react";import*as Wo from"@radix-ui/react-radio-group";var ji=i(Wo.Root,{variants:{direction:{horizontal:{display:"flex",flexDirection:"row",flexWrap:"wrap"},vertical:{display:"grid",gridGap:"$24"}}}}),Zi=i("div",{display:"flex",alignItems:"center",marginRight:"$8"}),Vi=i(Wo.Item,{padding:"0",width:"20px",height:"20px",borderRadius:"100%",cursor:"pointer",backgroundColor:"$background",border:"1px solid $neutral400","&:hover":{borderColor:"$neutral600"}}),Gi=i("div",{display:"flex"}),Oi=i(Wo.Indicator,{display:"flex",alignItems:"center",justifyContent:"center",width:"100%",height:"100%",position:"relative","&::after":{content:"",display:"block",width:"10px",height:"10px",borderRadius:"50%",backgroundColor:"$success"}}),Ui=i("label",{paddingLeft:"$8",cursor:"pointer",color:"$foreground"});function Je(o){let{value:e,onChange:t,direction:n="vertical",style:a}=o;return yo.createElement(Gi,null,yo.createElement(ji,{onValueChange:t,value:e,direction:n,style:a},o.options.map((s,c)=>yo.createElement(Zi,{key:c},yo.createElement(Vi,{value:s.value,id:s.value},yo.createElement(Oi,null)),yo.createElement(Ui,{className:"_text",htmlFor:s.value},yo.createElement(p,{variant:"body2"},s.label))))))}r(Je,"Radio");import ao,{useState as Ki}from"react";import Bo from"react";var Yi=i("div",{backgroundColor:"$surface",padding:"1px",boxSizing:"border-box",border:"1px solid $neutral400",borderRadius:"$5",height:"$48",display:"flex",flexGrow:1,position:"relative",alignItems:"center",color:"$foreground",overflowX:"hidden",transition:"border-color ease .3s","&:focus-within":{borderColor:"$success",outline:"1px solid $success"},variants:{size:{small:{"& input":{fontSize:"$14"},height:"$32"},medium:{"& input":{fontSize:"$15"},height:"$40"},large:{"& input":{fontSize:"$16"},height:"$48"}},disabled:{true:{backgroundColor:"$neutral100",cursor:"not-allowed",filter:"grayscale(100%)"}},prefix:{true:{paddingLeft:"$16"},false:{paddingLeft:"$0"}},suffix:{true:{paddingRight:"$16"},false:{paddingRight:"$0"}}},defaultVariants:{size:"medium"}}),Ji=i("input",{color:"$foreground",paddingLeft:"$16",paddingRight:"$16",flexGrow:1,width:"100%",border:"none",borderRadius:"$5",outline:"none",backgroundColor:"transparent","-webkit-appearance":"none",margin:0,"&:disabled":{cursor:"not-allowed"},"&::-webkit-outer-spin-button, &::-webkit-inner-spin-button":{"-webkit-appearance":"none",margin:0},'&[type="number"]':{"-moz-appearance":"textfield"}}),Xi=i("label",{display:"inline-block",fontSize:"$14",color:"$foreground",marginBottom:"$4"}),xo=Bo.forwardRef((o,e)=>{let{label:t,prefix:n,suffix:a,children:s,size:c,style:l,...m}=o;return Bo.createElement(Bo.Fragment,null,t&&Bo.createElement(Xi,{className:"_text",...m.id&&{htmlFor:m.id}},t),Bo.createElement(Yi,{disabled:m.disabled,prefix:!!n,suffix:!!a,size:c,style:l,className:"_text"},n||null,Bo.createElement(Ji,{className:"_text",...m,spellCheck:!1,ref:e}),a||null))});var Qi=i("div",{overflow:"hidden",display:"flex",flexDirection:"column",flex:"1",padding:"0 $4"}),Ri=i("div",{padding:"1px"});function z(o){let{title:e,Footer:t,TopButton:n,onBack:a,hasHeader:s=!0}=o,[c,l]=Ki("");return ao.createElement(ao.Fragment,null,s&&ao.createElement(Oe,{onBack:a,title:e||"",suffix:n}),ao.createElement(Qi,null,o.textField&&ao.createElement(Ri,null,ao.createElement(xo,{size:"large",prefix:ao.createElement(te,{size:24}),placeholder:o.textFieldPlaceholder,onChange:m=>l(m.target.value),value:c,autoFocus:!0}),ao.createElement(x,{size:16})),o.textField&&o.children?.(c),!o.textField&&o.children),t)}r(z,"SecondaryPage");import Co,{useEffect as rn,useState as nn}from"react";function E(o,e){return o.toLowerCase().indexOf(e.toLowerCase())>-1}r(E,"containsText");function jt(o,e=8,t=3){if(!o)return null;if(o.length<2*e+t)return o;let n=Math.ceil((o.length-e)/2),a=o.length-e;return`${o.substr(n,e)}${".".repeat(t)}${o.substr(a)}`}r(jt,"getConciseAddress");function ue(o,e=4){let t=parseFloat(o);if(isNaN(t))return o;{let n=Math.pow(10,e);return(Math.round(t*n)/n).toString()}}r(ue,"limitDecimalPlaces");var Zt=r(o=>(e=>e.length===3?e.split("").map(t=>parseInt(t.repeat(2),16)):(e.match(/.{1,2}/g)||[]).map(t=>parseInt(t,16)))(o.replace("#","")),"hexToRgb"),on=r(o=>(([e,t,n])=>.2126*e+.7152*t+.0722*n<40)(Zt(o)),"isHexTooDark"),en=r(o=>(([e,t,n])=>(e*299+t*587+n*114)/1e3>155)(Zt(o)),"isHexTooLight"),qo=r((o,e)=>{o=o.replace(/^#/,""),o.length===3&&(o=o[0]+o[0]+o[1]+o[1]+o[2]+o[2]);let[t,n,a]=o.match(/.{2}/g);[t,n,a]=[parseInt(t,16)+e,parseInt(n,16)+e,parseInt(a,16)+e],t=Math.max(Math.min(255,t),0).toString(16),n=Math.max(Math.min(255,n),0).toString(16),a=Math.max(Math.min(255,a),0).toString(16);let s=(t.length<2?"0":"")+t,c=(n.length<2?"0":"")+n,l=(a.length<2?"0":"")+a;return`#${s}${c}${l}`},"colorShade"),tn=r((o,e,t)=>{let n={[o]:t};if(t){let a=t;if(on(t)||e==="dark")for(let s=1;s<10;s++)n={...n,[o+s*100]:o==="neutral"?qo(a,s*15):qo(t,s*5)};if(en(t)||e==="light")for(let s=1;s<10;s++)a=qo(a,-(s*5)),n={...n,[o+s*100]:qo(o==="neutral"?a:t,-(s*5))}}return n},"generateRangeColors");var an=i("div",{display:"flex",flexWrap:"wrap"}),sn=i("div",{width:12,height:12,borderRadius:6,border:"1px solid $neutral400",position:"absolute",top:12,right:12,variants:{checked:{true:{borderColor:"$success"},false:{borderColor:"$neutral400"}}}}),ln=i("div",{width:6,margin:"20% auto",height:6,borderRadius:3,variants:{checked:{true:{backgroundColor:"$success"},false:{backgroundColor:"$neutral400"}}}}),pn=i("div",{border:"1.5px solid",borderRadius:"$5",padding:"$12",flexBasis:"calc(33.33% - 10px)",margin:5,display:"flex",flexDirection:"column",justifyContent:"space-between",width:124,height:92,cursor:"pointer",position:"relative",variants:{checked:{true:{borderColor:"$success",color:"$success"},false:{borderColor:"$neutral400",color:"$neutral400"}}}});function Xe({list:o,onChange:e}){let[t,n]=nn(o.find(s=>s.selected)?.walletType||""),a=r(s=>{n(s.walletType),e(s)},"onClick");return rn(()=>{n(o.find(s=>s.selected)?.walletType||"")},[o]),Co.createElement(an,null,o.map((s,c)=>{let l=t===s.walletType;return Co.createElement(pn,{checked:l,onClick:a.bind(null,s),key:c},Co.createElement(B,{src:s.image,alt:s.walletType,size:24}),Co.createElement(p,{variant:"body2"},s.name),Co.createElement(p,{variant:"caption"},jt(s.address)),Co.createElement(sn,{checked:l},l&&Co.createElement(ln,{checked:l})))}))}r(Xe,"SelectableWalletList");import cn from"react";var dn=i("div",{position:"relative",display:"flex",flexDirection:"column",borderRadius:"$10",boxShadow:"$s",width:"100%",minWidth:"375px",maxWidth:"512px",padding:"$16",boxSizing:"border-box",backgroundColor:"$background",overflow:"hidden","& *":{boxSizing:"border-box",listStyleType:"none","&::-webkit-scrollbar":{width:"$8",height:"$8"},"&::-webkit-scrollbar-thumb":{backgroundColor:"$neutral400",borderRadius:"$10"},"&::-webkit-scrollbar-thumb:hover":{backgroundColor:"$neutral500"},"&::-webkit-scrollbar-track":{backgroundColor:"$neutral100"}},variants:{fixedHeight:{true:{height:"595px",maxHeight:"595px"},false:{height:"auto"}}}});function mn(o){let{children:e,style:t,fixedHeight:n=!0}=o;return cn.createElement(dn,{style:t,id:"swap-box",fixedHeight:n},e)}r(mn,"SwapContainer");import U from"react";import R from"react";var gn=i("div",{display:"flex",alignItems:"center",width:"160px","& .amount":{fontWeight:"bold"},"& .estimated":{color:"$neutral600"}}),hn=i("div",{position:"relative",img:{borderRadius:"50%"},".overlay":{position:"absolute",right:-4,bottom:-4,width:"$16",height:"$16",padding:"$2",borderRadius:"50%",display:"flex",justifyContent:"center",alignItems:"center",backgroundColor:"$background",border:"1px solid $neutral400"}});function Ke(o){let{data:{token:e,blockchain:t,amount:n,estimatedAmount:a}}=o;return R.createElement(gn,null,R.createElement(hn,null,R.createElement(B,{src:e.logo,alt:"",size:24}),R.createElement("div",{className:"overlay"},R.createElement(B,{src:t.logo,alt:t.name,size:12}))),R.createElement(x,{size:8,direction:"horizontal"}),!!n&&R.createElement("span",{className:"amount"},o.data.amount),!n&&a&&R.createElement("span",{className:"amount estimated"},o.data.estimatedAmount),R.createElement(x,{size:4,direction:"horizontal"}),e.symbol)}r(Ke,"Token");var un=i("div",{position:"relative",display:"flex",justifyContent:"space-between",alignItems:"center",padding:"$16 0",borderBottom:"1px solid $neutral100","& > .info":{display:"flex",alignItems:"center"},".status":{textTransform:"uppercase",fontWeight:"bold",fontSize:"$12"},"&.failed .status":{color:"$error"},"&.success .status":{color:"$success"}});function Qe({swap:o,status:e,onClick:t}){let n=o.steps[0],a=o.steps[o.steps.length-1];return U.createElement(f,{variant:"ghost",size:"free",fullWidth:!0,onClick:t.bind(null,o.requestId)},U.createElement(un,{className:`${e}`},U.createElement("div",{className:"info"},U.createElement(Ke,{data:{token:{logo:n.fromLogo,symbol:n.fromSymbol},blockchain:{logo:n.fromBlockchainLogo||"",name:n.fromBlockchain},amount:ue(o.inputAmount)}}),U.createElement(x,{size:12,direction:"horizontal"}),U.createElement(le,{size:12}),U.createElement(x,{size:12,direction:"horizontal"}),U.createElement(Ke,{data:{token:{logo:a.toLogo,symbol:a.toSymbol},blockchain:{logo:a.toBlockchainLogo||"",name:a.toBlockchain},amount:ue(a.outputAmount||""),estimatedAmount:ue(a.expectedOutputAmountHumanReadable||"")}})),U.createElement("div",{className:"status"},e==="running"?U.createElement(P,{size:24,color:"primary"}):e)))}r(Qe,"SwapDetail");import Vt from"react";import*as fe from"@radix-ui/react-switch";var fn=i(fe.Root,{boxSizing:"border-box",boxShadow:"none",borderStyle:"solid",width:"42px",height:"22px",backgroundColor:"$neutral600",borderColor:"$neutral600",borderRadius:"99999px",position:"relative",padding:"0",cursor:"pointer",'&[data-state="checked"]':{backgroundColor:"$success",borderColor:"$success"},"-webkit-tap-highlight-color":"rgba(0, 0, 0, 0)"}),yn=i(fe.Thumb,{position:"absolute",top:"0",boxSizing:"border-box",display:"block",width:"18px",height:"18px",backgroundColor:"$white",transition:" transform 300ms",borderRadius:"999999px",willChange:"transform",'&[data-state="checked"]':{transform:"translateX(20px)"}});function jo(o){let{checked:e,onChange:t}=o;return Vt.createElement(fn,{checked:e,onCheckedChange:t},Vt.createElement(yn,null))}r(jo,"Switch");import Re,{forwardRef as bn,useEffect as Ut,useState as ot}from"react";import ye from"react";import{VariableSizeList as xn}from"react-window";import Cn from"react-window-infinite-loader";import vn from"react-virtualized-auto-sizer";function Gt(o){let{itemCount:e,hasNextPage:t,loadNextPage:n,Item:a,innerElementType:s,size:c}=o,l=r(m=>!t||m<e,"isItemLoaded");return ye.createElement(vn,null,({width:m,height:u})=>ye.createElement(Cn,{isItemLoaded:l,itemCount:t?e+1:e,loadMoreItems:n,threshold:1},({onItemsRendered:T,ref:b})=>ye.createElement(xn,{innerElementType:s,ref:b,itemSize:()=>c,itemCount:e,height:u||0,width:m||0,onItemsRendered:T},({index:h,style:M})=>l(h)?ye.createElement(a,{index:h,style:M}):null)))}r(Gt,"VirtualizedList");import Y from"react";var Sn=i("div",{paddingRight:"$16"}),wn=i("div",{display:"flex",flexDirection:"column"}),kn=i("div",{display:"flex",flexDirection:"column",alignItems:"flex-end"});function Ot(o){let{token:e,style:t,onClick:n,selected:a}=o;return Y.createElement("div",{style:{display:"flex",alignItems:"center",width:"100%",...t,height:"48px",top:`${parseFloat(t?.top)+0}px`,padding:"0 4px"}},Y.createElement(f,{variant:"outlined",size:"large",align:"start",onClick:n.bind(null,e),type:a?"primary":void 0,prefix:Y.createElement(Sn,null,Y.createElement(B,{src:e.image,size:32})),suffix:e.balance?.amount&&Y.createElement(kn,null,Y.createElement(p,{variant:"body2"},e.balance.amount),Y.createElement(p,{variant:"caption"},`${e.balance.usdValue}$`))},Y.createElement(wn,null,Y.createElement(p,{variant:"body1"},e.symbol),Y.createElement(p,{variant:"caption",color:"neutral600"},e.name))))}r(Ot,"TokenItem");var Yt=20;function et(o){let{list:e,searchedText:t,onChange:n,multiSelect:a,selectedList:s}=o,[c,l]=ot(o.selected),m=r($=>{l($),n($)},"changeSelected"),u=r($=>a&&s?s.map(C=>C.symbol+C.address).indexOf($.symbol+$.address)>-1:c?.symbol===$.symbol&&c?.address===$.address,"isSelected"),[T,b]=ot(!0),[h,M]=ot(e),W=r(()=>{M(e.slice(0,h.length+Yt))},"loadNextPage");Ut(()=>{M(e.slice(0,Yt))},[t,e]),Ut(()=>{b(e.length>h.length)},[h.length]);let N=bn(({style:$,...C},H)=>Re.createElement("div",{ref:H,style:{...$,height:`${parseFloat($?.height)+8*2}px`},...C}));return Re.createElement(Gt,{Item:({index:$,style:C})=>Re.createElement(Ot,{token:h[$],style:C,onClick:m,selected:u(h[$])}),hasNextPage:T,itemCount:h.length,loadNextPage:W,innerElementType:N,size:56})}r(et,"TokenList");import{detectInstallLink as Pn}from"@rango-dev/wallets-shared";import vo from"react";var tt=(a=>(a.NOT_INSTALLED="not installed",a.DISCONNECTED="disconnected",a.CONNECTING="connecting",a.CONNECTED="connected",a))(tt||{});import Mo,{Fragment as $n}from"react";import{detectInstallLink as Tn}from"@rango-dev/wallets-shared";var In=i("span",{display:"flex",justifyContent:"center",alignItems:"center"}),Jt=r(({walletState:o,installLink:e})=>Mo.createElement($n,null,o!=="disconnected"&&Mo.createElement(In,null,o==="not installed"&&Mo.createElement("a",{href:Tn(e),target:"_blank"},Mo.createElement(ae,{size:24,color:"success"})),o==="connecting"&&Mo.createElement(P,null),o==="connected"&&Mo.createElement(me,null))),"State");var Ln=i("div",{paddingRight:"$12","& img":{borderRadius:"50%"}}),Wn=i("div",{display:"flex",flexDirection:"column"}),Bn=i(f,{variants:{type:{primary:{outline:"1px solid $primary",borderColor:"$primary","&:hover":{borderColor:"$primary"}}}}});function Xt(o){let{name:e,type:t,image:n,state:a,onClick:s,installLink:c}=o;return vo.createElement(Bn,{type:a==="connected"?"primary":void 0,disabled:a=="connecting",onClick:()=>{a==="not installed"?window.open(Pn(c),"_blank"):s(t)},align:"start",variant:"outlined",size:"large",prefix:vo.createElement(Ln,null,vo.createElement(B,{src:n,size:24})),suffix:vo.createElement(Jt,{walletState:a,installLink:c})},vo.createElement(Wn,null,vo.createElement(p,{variant:"h5",noWrap:!1},e),a==="connected"?vo.createElement(p,{variant:"caption",noWrap:!1,color:"primary"},"Connected"):null))}r(Xt,"Wallet");import y from"react";var Mn=i("div",{overflowY:"auto"}),Fn=i("div",{paddingBottom:"$32",marginBottom:"$32",borderBottom:"1px solid $neutral400"}),An=i("div",{display:"flex",alignItems:"center"}),Kt=i("div",{padding:"$16 0"}),Nn=i(f,{marginTop:"$16"}),Dn=i("div",{paddingBottom:"$24",".title":{paddingBottom:"$8",display:"flex",alignItems:"center"},".num":{backgroundColor:"$neutral100",display:"inline-flex",width:"24px",height:"24px",color:"$neutral800",borderRadius:"50%",fontSize:"$14",border:"1px solid $neutral400",justifyContent:"center",alignItems:"center"}}),zn=i("div",{paddingBottom:"$16"});function En(o){let{onBack:e,loading:t,onConfirm:n,requiredWallets:a,selectableWallets:s,onChange:c,confirmDisabled:l,isExperimentalChain:m,handleConnectChain:u,confirmButtonTitle:T,errors:b,warnings:h,extraMessages:M,customDestination:W,setCustomDestination:N,checkedDestination:$,setDestinationChain:C,customDestinationEnabled:H=!0,isValidCustomDestination:wo,isWalletRequired:Vo}=o;return y.createElement(z,{textField:!1,title:"Confirm Swap",onBack:e,Footer:y.createElement(An,null,y.createElement(Nn,{fullWidth:!0,loading:t,type:"primary",variant:"contained",onClick:n,disabled:l||!!W&&!wo(a[a.length-1],W)},T))},y.createElement(Mn,null,y.createElement("div",null,M||null,y.createElement(zn,null,b?.map((S,F)=>y.createElement(y.Fragment,{key:F},y.createElement(x,null),y.createElement(A,{type:"error",key:F,...typeof S=="string"?{title:S}:{children:S}}))),h?.map((S,F)=>y.createElement(y.Fragment,{key:F},y.createElement(x,null),y.createElement(A,{type:"warning",key:F,...typeof S=="string"?{title:S}:{children:S}}))))),o.previewInputs||o.previewRoutes?y.createElement(Fn,null,o.previewInputs,o.previewRoutes?y.createElement(x,{size:16}):null,o.previewRoutes):null,a.map((S,F)=>{let No=s.filter(lo=>S===lo.chain);return y.createElement(Dn,{key:F},y.createElement("div",{className:"title"},y.createElement("div",{className:"num"},F+1),y.createElement(x,{size:8,direction:"horizontal"}),y.createElement(p,{variant:"body2"},"Your ",S," Wallet")),No.length===0&&(Vo||!Vo&&!$)&&y.createElement(y.Fragment,null,y.createElement(Kt,null,y.createElement(A,{type:"error"},"You need to connect a compatible wallet with ",S,".")),m?.(S)&&y.createElement(f,{variant:"contained",type:"primary",align:"grow",onClick:()=>u?.(S)},`Add ${S} chain to Cosmos wallets`)),No.length!=0&&y.createElement(Xe,{list:No,onChange:lo=>{c(lo),C(""),N("")}}),F===a.length-1&&H&&y.createElement(y.Fragment,null,y.createElement(x,null),y.createElement(Ze,{label:`Choose a custom ${S} address`,checked:$,onCheckedChange:lo=>{lo?C(S):(C(""),N(""),No.length&&c(No[0]))},id:"custom_destination"}),y.createElement(x,null),$&&y.createElement(y.Fragment,null,y.createElement(xo,{placeholder:"Your destination address",value:W,onChange:lo=>{N(lo.target.value)}}),!!W&&!wo(S,W)&&y.createElement(Kt,null,y.createElement(A,{type:"error"},"Not a valid ",S," address.")))))})))}r(En,"ConfirmSwap");import J from"react";import q from"react";var Hn=i("div",{".group-title":{textTransform:"uppercase"}});function rt(o){let{list:e,onSwapClick:t,groupBy:n}=o,a=n?n(e):[{title:"History",swaps:e}];return q.createElement(q.Fragment,null,a.filter(s=>s.swaps.length>0).map((s,c)=>q.createElement(q.Fragment,{key:c},q.createElement(Hn,null,q.createElement(p,{variant:"body2",color:"neutral600",className:"group-title"},s.title),s.swaps.map(l=>q.createElement(q.Fragment,{key:l.requestId},q.createElement(Qe,{swap:l,status:l.status,onClick:t}),q.createElement(x,{size:12})))),q.createElement(x,{size:24}))))}r(rt,"SwapsGroup");import Fo from"react";var Zo=i("div",{display:"flex",justifyContent:"center",width:"100%",paddingTop:"33%",flex:1}),_n=r((o,e)=>o.filter(t=>E(t.symbol,e)||E(t.address||"",e)||E(t.name||"",e)),"filterTokens");function qn(o){let{list:e,type:t,selected:n,hasHeader:a,onChange:s,onBack:c,loadingStatus:l}=o;return Fo.createElement(z,{textField:!0,hasHeader:a,title:`Select ${t} token`,onBack:c,textFieldPlaceholder:"Search tokens by name"},m=>{let u=_n(e,m);return l==="loading"?Fo.createElement(Zo,null,Fo.createElement(P,{size:24})):l==="failed"?Fo.createElement(ro,null):u.length?Fo.createElement(et,{searchedText:m,list:u,selected:n,onChange:s}):Fo.createElement(Z,{catergory:"Token",searchedFor:m})})}r(qn,"TokenSelector");var jn=i("div",{overflowY:"auto"}),Zn=r((o,e)=>o.filter(t=>{let n=t.steps[0],a=t.steps[t.steps.length-1];return E(n.fromBlockchain,e)||E(n.fromSymbol,e)||E(a.toBlockchain,e)||E(a.toSymbol,e)||E(t.requestId,e)}),"filteredHistory");function Vn(o){let{list:e=[],onBack:t,onSwapClick:n,groupBy:a,loading:s}=o;return J.createElement(z,{onBack:t,textField:!0,textFieldPlaceholder:"Search by blockchain, token or request Id",title:"Swaps"},c=>{let l=Zn(e,c);return J.createElement(J.Fragment,null,s&&J.createElement(Zo,null,J.createElement(P,{size:24})),J.createElement(jn,null,!s&&J.createElement(J.Fragment,null,l.length?J.createElement(rt,{list:l,onSwapClick:n,groupBy:a}):J.createElement(Z,{catergory:"Swap"}))))})}r(Vn,"History");import d,{useState as Yn}from"react";import L,{useState as Gn}from"react";var On=r(o=>!o||o==="info"?"secondary":o,"getAlertType"),Un=i("div",{width:"90%",overflowWrap:"break-word",color:"$error500 !important"}),it=i(p,{color:"$success500 !important"}),Qt=r(o=>{let{shortMessage:e,detailedMessage:t,currentStepBlockchain:n,type:a,lastConvertedTokenInFailedSwap:s}=o,[c,l]=Gn(!1),m=t.long?0:150,u=!c&&t.content.length>m;return L.createElement(A,{type:On(a),title:e,...u&&{footer:L.createElement(f,{variant:"outlined",type:"primary",onClick:l.bind(null,T=>!T)},"Show more details")},...!!o.switchNetwork&&{footer:L.createElement(f,{variant:"outlined",type:"primary",onClick:()=>{o?.switchNetwork&&o.switchNetwork().catch(()=>{})}},"Change network to ",n)}},t.content?L.createElement(Un,null,L.createElement(p,{variant:"body2"},u&&!c?t.content.substring(0,m)+(m>0?"...":""):t.content)):null,!!s&&L.createElement(L.Fragment,null,L.createElement("p",null,L.createElement(p,{variant:"body2"},"Don't worry, your fund is\xA0"),L.createElement(it,{variant:"body2"},L.createElement("b",null,"Safe"))),L.createElement("p",null,L.createElement(p,{variant:"body2"},"It is converted to \xA0",L.createElement("u",null,s.outputAmount),"\xA0"),L.createElement(it,{variant:"body2"},L.createElement("b",null,s.symbol,"\xA0")),L.createElement(p,{variant:"body2"},"on your\xA0"),L.createElement(it,{variant:"body2"},L.createElement("b",null,s.blockchain,"\xA0")),L.createElement(p,{variant:"body2"},"wallet"))))},"SwapMessages");var Jn=i("div",{display:"flex",alignItems:"center",paddingLeft:"$4",variants:{created:{true:{filter:"grayscale(100%)"}},running:{true:{animation:`${qe} 2s ease-in-out infinite`}}}}),sh=i("div",{height:"100%",display:"flex",justifyContent:"center",alignItems:"center"}),lh=i(p,{color:"$error"}),Xn=i("div",{paddingLeft:"$16",color:"$neutral800"}),Kn=i("div",{display:"flex",alignItems:"center"}),Qn=i("div",{position:"relative"}),ph=i("div",{display:"flex",alignItems:"center"}),Rn=i("div",{width:"$8",height:"$8",backgroundColor:"$foreground",borderRadius:"4px",marginLeft:"11px"}),oa=i("div",{width:"0px",height:"0px",borderLeft:"5px solid transparent",borderRight:"5px solid transparent",borderTop:"5px solid $foreground",marginLeft:"$10"}),ea=i("a",{color:"$primary",fontWeight:"$600"}),ta=i("div",{display:"flex",flexDirection:"column",paddingBottom:"$16",borderBottom:"1px solid $neutral100"}),ra=i("div",{display:"flex",".details":{padding:"$8 0"}}),Rt=i("div",{display:"flex",margin:"$12 0 $12 $20"}),or=i("div",{display:"flex",alignItems:"center"}),er=i(p,{color:"$success",paddingLeft:"$4"}),tr=i("div",{width:"0",minHeight:"$16",marginLeft:"14px",border:"1px dashed $foreground",borderRadius:"inherit"}),ia=i("div",{display:"flex",justifyContent:"space-between",alignItems:"center",fontSize:"$14",padding:"$8 0",".name":{color:"$neutral600"},".value":{display:"flex",alignItems:"center",color:"$neutral800",justifyContent:"flex-end"},".status":{fontWeight:"bold",textTransform:"uppercase"},".status.failed":{color:"$error"},".status.success":{color:"$success"}}),na=i("div",{width:"150px",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis","@md":{width:"auto"}}),aa=i("div",{padding:"0",color:"$neutral600",fontSize:"$10"}),sa=i("div",{overflowY:"auto",padding:"$8 $4 $2 $4"});function la(o){let{pendingSwap:e,onBack:t,onCopy:n,isCopied:a,onCancel:s,date:c,onRetry:l,previewInputs:m,...u}=o,[T,b]=Yn(!1);return d.createElement(z,{title:"Swap Details",textField:!1,onBack:t,Footer:d.createElement(d.Fragment,null,e?.status==="running"&&d.createElement(f,{variant:"outlined",fullWidth:!0,type:"error",onClick:b.bind(null,!0)},"Cancel"),!!l&&d.createElement(f,{variant:"contained",fullWidth:!0,type:"primary",onClick:l},"Try again"))},d.createElement("div",null,d.createElement(ta,null,d.createElement(ia,null,d.createElement("div",{className:"name"},"Request Id:",d.createElement("span",{className:"value requestId",onClick:n.bind(null,e?.requestId)},d.createElement(na,null,e?.requestId),d.createElement(x,{size:4,direction:"horizontal"}),d.createElement(f,{type:"primary",variant:"ghost",size:"compact"},a?"Copied!":"Copy"))),d.createElement("div",{className:"name"},d.createElement("span",{className:`value status ${e?.status||""}`},e?.status,e?.status==="running"&&d.createElement(P,{size:16,color:"primary"})),d.createElement(aa,null,c))))),d.createElement(sa,null,u.shortMessage&&d.createElement(Qt,{...u}),d.createElement(x,{size:16}),e?.steps.map((h,M)=>d.createElement("div",{key:M},M===0&&d.createElement(Qn,null,d.createElement(uo,{logo:h.fromLogo,symbol:h.fromSymbol,chainLogo:h.fromBlockchainLogo||"",blockchain:h.fromBlockchain,amount:e.inputAmount}),d.createElement(Rn,null)),d.createElement(tr,null),d.createElement(Jn,{created:h.status==="created",running:!["created","success","failed"].includes(h.status)},d.createElement(B,{src:h.swapperLogo||"",alt:h.swapperId,size:20}),d.createElement(Xn,null,d.createElement(p,{variant:"body2"},h.swapperType==="DEX"?"Swap":"Bridge"," via"," ",h.swapperId),d.createElement(Kn,null,d.createElement(To,null),d.createElement(p,{variant:"body2"},"\xA0 $",h.feeInUsd," estimated gas fee")))),d.createElement("div",{style:{display:"flex"}},d.createElement(ra,null,d.createElement(tr,null),d.createElement("div",{className:"details"},!!h.explorerUrl&&d.createElement("div",null,h.explorerUrl.map((W,N)=>d.createElement(Rt,{key:N},d.createElement(or,null,d.createElement(x,{size:4}),d.createElement($o,{color:"primary"}),d.createElement(er,{variant:"body2"},d.createElement(ea,{href:W.url,target:"_blank",rel:"noreferrer",key:N},W.description?d.createElement("b",null,W.description.substring(0,1).toUpperCase(),W.description.substring(1)," Tx"):d.createElement("b",null,"View transaction"))))))),h.status==="failed"&&d.createElement(Rt,null,d.createElement(or,null,d.createElement(bo,{color:"error"}),d.createElement(er,{variant:"body2",color:"$error500"},"Step failed")))))),M+1===e.steps.length&&d.createElement(oa,null),d.createElement(uo,{logo:h.toLogo,symbol:h.toSymbol,chainLogo:h.toBlockchainLogo||"",blockchain:h.toBlockchain,amount:h.outputAmount||"",estimatedAmount:h.expectedOutputAmountHumanReadable||"",success:h.status==="success"}))),d.createElement(x,{size:32})),d.createElement(Ge,{onClose:b.bind(null,!1),open:T,showClose:!0,anchor:"bottom",title:"Cancel Progress",content:d.createElement(A,{type:"warning"},d.createElement(p,{variant:"body2"},"Warning: Cancel ",d.createElement("u",null,"doesn't revert")," your transaction if you've already signed and sent a transaction to the blockchain. It only stops next steps from being executed.")),footer:d.createElement("div",{style:{display:"flex",justifyContent:"center",alignItems:"center"}},d.createElement(f,{variant:"contained",type:"success",onClick:b.bind(null,!1)},"Skip"),d.createElement(x,{size:16,direction:"horizontal"}),d.createElement(f,{variant:"contained",type:"error",onClick:()=>{s(e.requestId),b(!1)}},"Cancel progress")),container:document.getElementById("swap-box")}))}r(la,"SwapHistory");import j from"react";import Ao,{useState as pa}from"react";var ca=i("div",{display:"grid",gap:".5rem",gridTemplateColumns:" repeat(2, minmax(0, 1fr))",alignContent:"baseline",width:"100%",height:"100%"}),da=i("div",{paddingRight:"$4"});function nt(o){let{list:e,onChange:t,multiSelect:n,selectedList:a}=o,[s,c]=pa(o.selected),l=r(u=>{c(u),t(u)},"changeSelectedBlockchain"),m=r(u=>n&&a?a==="all"||a.findIndex(T=>u===T.name)>-1:u===s?.name,"isSelect");return Ao.createElement(ca,null,e.map((u,T)=>Ao.createElement(f,{type:m(u.name)?"primary":void 0,variant:"outlined",size:"large",prefix:Ao.createElement(da,null,Ao.createElement(B,{size:24,src:u.logo})),suffix:m(u.name)?Ao.createElement(He,null):void 0,align:"start",onClick:l.bind(null,u),key:T},Ao.createElement(p,{variant:"body2"},u.displayName))))}r(nt,"BlockchainsList");var ma=i("div",{overflowY:"auto",padding:"0 $4"}),ga=r((o,e)=>o.filter(t=>E(t.name,e)||E(t.displayName,e)),"filterBlockchains");function ha(o){let{type:e,list:t,onChange:n,selected:a,onBack:s,loadingStatus:c,hasHeader:l,listContainerStyle:m,multiSelect:u,selectedList:T}=o;return j.createElement(z,{textField:!0,hasHeader:l,textFieldPlaceholder:"Search blockchains by name",title:`Select ${e} Blockchain`,onBack:s},b=>{let h=ga(t,b);return j.createElement(j.Fragment,null,c==="loading"&&j.createElement(Zo,null,j.createElement(P,{size:24})),j.createElement(ma,{style:m,key:"1"},c==="failed"&&j.createElement(ro,null),c==="success"&&j.createElement(j.Fragment,null,h.length?j.createElement(nt,{list:h,selected:a,multiSelect:u,selectedList:T,onChange:n}):j.createElement(Z,{catergory:"Blockchain",searchedFor:b}))))})}r(ha,"BlockchainSelector");import at from"react";import{i18n as ua}from"@lingui/core";var fa=i("div",{display:"grid",gap:"$8",gridTemplateColumns:"repeat(2, minmax(0, 1fr))",overflow:"auto"});function ya(o){let{open:e,list:t,onSelect:n,onClose:a}=o,s=at.createElement(fa,null,t.map((c,l)=>at.createElement(Xt,{...c,key:l,onClick:n})));return at.createElement(Ye,{title:ua.t("Connect Wallets"),open:e,content:s,onClose:a,containerStyle:{width:"75%",maxWidth:"30rem",height:"60%"}})}r(ya,"ConnectWalletsModal");import lt from"react";import v,{useEffect as xa,useState as Ca}from"react";import{i18n as rr}from"@lingui/core";var va=r(o=>({bridge:o.filter(e=>e.type==="BRIDGE"||e.type==="AGGREGATOR"),exchange:o.filter(e=>e.type==="DEX")}),"groupLiquiditySources"),Sa=i("div",{variants:{loaded:{true:{overflowY:"auto",padding:"0 $4"}}}}),ir=i("div",{position:"sticky",display:"flex",justifyContent:"space-between",alignItems:"center",top:"0",backgroundColor:"$background",zIndex:"9999",paddingTop:"$8",paddingBottom:"$8"}),wa=i("div",{paddingRight:"$16"}),nr=i("div",{display:"flex",justifyContent:"center"});function st(o){let{list:e,onChange:t,listContainerStyle:n,loadingStatus:a,searchedFor:s}=o,[c,l]=Ca(e.filter(C=>C.selected)),m=r(C=>{C.selected=!C.selected,l(H=>C.selected?[...H,C]:H.filter(wo=>wo.title!=C.title)),t(C)},"changeLiquiditySources"),u=r(C=>!!c.find(H=>C.title===H.title),"isSelected");xa(()=>{l(e.filter(C=>C.selected))},[e]);let T=va(e),b=T.bridge,h=T.exchange,M=b.length,W=h.length,N=b.filter(u).length,$=h.filter(u).length;return v.createElement(Sa,{style:n,loaded:a==="success"},v.createElement("div",null,v.createElement(ir,null,v.createElement(p,{variant:"h5"},rr.t("Bridges")),v.createElement(p,{variant:"body1",color:"neutral800"},N===M?M:`${N} / ${M}`)),v.createElement(x,{size:12}),a==="loading"&&v.createElement(nr,null,v.createElement(P,{size:24})),a==="failed"&&v.createElement(ro,null),a==="success"&&v.createElement(v.Fragment,null,M?b.map((C,H)=>v.createElement(ar,{liquiditySource:C,key:H,selected:u(C),onChange:m})):v.createElement(Z,{catergory:"Bridge",searchedFor:s}))),v.createElement("div",null,v.createElement(ir,null,v.createElement(p,{variant:"h5"},rr.t("Exchanges")),v.createElement(p,{variant:"body1",color:"neutral800"},$===W?W:`${$} / ${W}`)),v.createElement(x,{size:12}),a==="loading"&&v.createElement(nr,null,v.createElement(P,{size:24})),a==="failed"&&v.createElement(ro,null),a=="success"&&v.createElement(v.Fragment,null,W?h.map((C,H)=>v.createElement(ar,{liquiditySource:C,key:H,selected:u(C),onChange:m})):v.createElement(Z,{catergory:"Exchange",searchedFor:s}))))}r(st,"LiquiditySourceList");var ar=r(({liquiditySource:o,selected:e,onChange:t})=>v.createElement(f,{size:"large",align:"start",variant:"outlined",prefix:v.createElement(wa,null,v.createElement(B,{src:o.logo,size:20})),suffix:v.createElement(jo,{checked:e}),style:{marginBottom:"12px"},onClick:t.bind(null,o)},v.createElement(p,{variant:"body1"},o.title)),"LiquiditySourceItem");var ka=r((o,e)=>o.filter(t=>E(t.title,e||"")),"filterLiquiditySources");function ba(o){let{list:e,onChange:t,onBack:n,hasHeader:a,listContainerStyle:s,toggleAll:c,loadingStatus:l}=o;return lt.createElement(z,{textField:!0,textFieldPlaceholder:"Search by name",title:"Liquidity Sources",TopButton:lt.createElement(f,{variant:"ghost",type:"primary",onClick:c},e.find(m=>m.selected)?"Deselect all":"Select all"),hasHeader:a,onBack:n},m=>lt.createElement(st,{listContainerStyle:s,list:ka(e,m),onChange:t,loadingStatus:l,searchedFor:m}))}r(ba,"LiquiditySourcesSelector");import k,{useState as $a}from"react";import{i18n as so}from"@lingui/core";var xe=i("div",{borderRadius:"$5",backgroundColor:"$neutral100",padding:"$16"}),Ta=i(p,{marginBottom:"$16"}),Ia=i("div",{display:"grid",rowGap:"$16",gridTemplateColumns:"repeat(auto-fill, 64px)"}),Pa=i(xe,{display:"flex",justifyContent:"space-between",marginTop:"$16",cursor:"pointer"}),La=i(xe,{display:"flex",justifyContent:"space-between",marginTop:"$16"}),Wa=i(re,{marginLeft:"$8"}),Ba=i("div",{display:"flex",alignItems:"center",justifyContent:"center"}),Ma=i(xe,{marginTop:"$16"}),Fa=i("div",{display:"flex",justifyContent:"space-between",alignItems:"center",paddingBottom:"$16"});function Aa(o){let{slippages:e,selectedLiquiditySources:t,liquiditySources:n,onSlippageChange:a,onLiquiditySourcesClick:s,onBack:c,customSlippage:l,onCustomSlippageChange:m,maxSlippage:u,minSlippage:T,selectedTheme:b,onThemeChange:h,toggleInfiniteApprove:M,infiniteApprove:W,loadingStatus:N,singleTheme:$}=o,[C,H]=$a(o.selectedSlippage),wo=r(S=>{H(S),a(S)},"changeSlippage"),Vo=k.createElement(k.Fragment,null,k.createElement(xe,null,k.createElement(Fa,null,k.createElement(p,{variant:"body2"},so.t("Slippage tolerance")),l?k.createElement(p,{variant:"caption",color:"error"},l,"% ",so.t("Custom")):void 0),k.createElement(Ia,null,e.map((S,F)=>k.createElement(Ve,{key:F,onClick:()=>{l&&m(null),wo(S)},selected:!l&&S===C,label:`${S.toString()}%`,style:{marginRight:"8px"}})),k.createElement(xo,{type:"number",value:l||"",onChange:S=>{let F=parseFloat(S.target.value);(!F||F>=T&&F<=u)&&m(F)},suffix:l&&k.createElement(p,{variant:"body2"},"%"),size:"small",placeholder:"Custom %",style:{width:"128px",flexGrow:"initial"}}))),!$&&k.createElement(Ma,null,k.createElement(Ta,{variant:"body2"},so.t("Theme")),k.createElement(Je,{value:b,options:[{value:"dark",label:`${so.t("Dark")}`},{value:"light",label:`${so.t("Light")}`},{value:"auto",label:`${so.t("Auto")}`}],onChange:S=>h(S),direction:"horizontal",style:{marginTop:"$24"}})),k.createElement(La,null,k.createElement(p,{variant:"body2"},so.t("Infinite Approval")),k.createElement(jo,{checked:W,onChange:M})),k.createElement(Pa,null,k.createElement(f,{onClick:s,align:"start",variant:"ghost",loading:N==="loading",suffix:k.createElement(Ba,null,N==="success"&&k.createElement(p,{variant:"body2",color:"neutral800"},n.length!==t.length?`${t.length} / ${n.length}`:n.length),N==="failed"&&k.createElement(p,{variant:"body2",color:"$error500"},"Loading failed"),k.createElement(Wa,null))},k.createElement(p,{variant:"body2"},so.t("Liquidity Sources")))));return k.createElement(z,{title:"Settings",textField:!1,onBack:c},Vo)}r(Aa,"Settings");import Ce from"react";import{i18n as Na}from"@lingui/core";function Da(o){let{highSlippage:e,selectedSlippage:t,changeSlippage:n}=o;return Ce.createElement(Ce.Fragment,null,e&&Ce.createElement(A,{type:"warning",footer:Ce.createElement(Eo,{onClick:n})},Na.t("highSlippage",{selectedSlippage:t},{message:" Caution, your slippage is high (={selectedSlippage}). Your trade may be front run."})))}r(Da,"HighSlippageWarning");import pt from"react";import{i18n as za}from"@lingui/core";var Ea=i(p,{color:"$error500 !important"});function Ha({minRequiredSlippage:o,changeSlippage:e}){return pt.createElement(Ea,{variant:"body2"},za.t("increaseSlippage",{minRequiredSlippage:o},{message:"We recommend you to increase slippage to at least {minRequiredSlippage} for this route."}),pt.createElement(x,{size:8}),pt.createElement(Eo,{onClick:e}))}r(Ha,"MinRequiredSlippage");import So from"react";import{i18n as _a}from"@lingui/core";var qa=i("ul",{padding:0,margin:0,variants:{showListStyle:{true:{paddingLeft:"$24"}}}}),ja=i("li",{variants:{showListStyle:{true:{listStyleType:"disc",listStylePosition:"outside"}}}}),Za=i(p,{display:"block"});function Va({messages:o}){let e=o.length>1;return So.createElement(So.Fragment,null,So.createElement(p,{className:"title",variant:"title",color:"error"},_a.t("Insufficent Balance:")),So.createElement(x,{size:8}),So.createElement(qa,{showListStyle:e},o.map((t,n)=>So.createElement(ja,{showListStyle:e,key:n},So.createElement(Za,{variant:"body2"},t)))))}r(Va,"BalanceErrors");import ct from"react";import Ga from"copy-to-clipboard";function Oa(o){let[e,t]=ct.useState(!1),n=ct.useCallback(a=>{Ga(a.toString()),t(!0)},[]);return ct.useEffect(()=>{let a;return e&&o&&(a=setTimeout(()=>t(!1),o)),()=>{clearTimeout(a)}},[e,o]),[e,n]}r(Oa,"useCopyToClipboard");export{xt as AddCircleIcon,Oo as AddIcon,Mt as AddWalletIcon,A as Alert,ie as AngleDownIcon,Fe as AngleLeftIcon,re as AngleRightIcon,kt as AngleUpIcon,le as ArrowRightIcon,Dt as BagIcon,Va as BalanceErrors,vt as BanIcon,ti as BestRoute,ha as BlockchainSelector,si as BottomLogo,f as Button,Eo as ChangeSlippageButton,$o as CheckCircleIcon,Jo as CheckIcon,yt as CheckSquareIcon,At as CheckWalletIcon,Ze as Checkbox,$t as ChevronRightIcon,Ve as Chip,eo as CloseIcon,$i as ColorPicker,En as ConfirmSwap,ya as ConnectWalletsModal,Et as CopyIcon,ft as DeleteCircleIcon,Ft as DeleteWalletIcon,me as DisconnectIcon,x as Divider,ae as DownloadIcon,Ge as Drawer,He as FilledCircle,To as GasIcon,Oe as Header,Ni as HeaderButtons,Da as HighSlippageWarning,Vn as History,Qo as HistoryIcon,Wt as HorizontalSwapIcon,gr as I18nManager,B as Image,bo as InfoCircleIcon,ba as LiquiditySourcesSelector,ro as LoadingFailedAlert,Ha as MinRequiredSlippage,Ct as MinusCircleIcon,Ye as Modal,Z as NotFoundAlert,Je as Radio,de as RetryIcon,It as RetryLeftIcon,Tt as RetryRightIcon,te as SearchIcon,wt as SearchMinusIcon,z as SecondaryPage,Xe as SelectableWalletList,Aa as Settings,ee as SettingsIcon,zt as SignatureIcon,P as Spinner,uo as StepDetail,mn as SwapContainer,Qe as SwapDetail,la as SwapHistory,Nt as SwapWalletIcon,rt as SwapsGroup,jo as Switch,xo as TextField,ge as TimeIcon,et as TokenList,qn as TokenSelector,io as Tooltip,St as TrashIcon,Pt as TryAgainIcon,p as Typography,Lt as VerticalSwapIcon,Xt as Wallet,Bt as WalletIcon,tt as WalletState,Ko as WarningIcon,ms as config,ut as createTheme,cs as css,X as darkTheme,tn as generateRangeColors,ds as globalCss,ko as keyframes,gs as lightTheme,i as styled,Oa as useCopyToClipboard};
20
20
  //# sourceMappingURL=index.js.map