PageSourceSearch

https://noahark.pro/_next/static/chunks/9858-d9a18677810d0a2d.js

js noahark.pro collected 2026-10-06 16:17:34 UTC 41,694 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9858],{38144:function(n,r,e){e.d(r,{Z:function(){return b}});var t=e(26042),i=e(69396),o=e(99534),a=e(85893);e(67294);var u=e(7297),c=e(94589),s=e(57247),d=e(44850);function l(){var n=(0,u.Z)(["\n  0% {\n    background-position: 50% 0%;\n  }\n  50% {\n    background-position: 50% 100%;\n  }\n  100% {\n    background-position: 50% 0%;\n  }\n"]);return l=function(){return n},n}function f(){var n=(0,u.Z)(["\n      animation: "," 3s ease infinite;\n      background-size: 400% 400%;\n    "]);return f=function(){return n},n}function p(){var n=(0,u.Z)(["\n  background: ",";\n  border-radius: ",";\n  color: ",";\n  overflow: hidden;\n  position: relative;\n\n  ","\n\n  /* padding: 1px 1px 3px 1px; */\n\n  ","\n"]);return p=function(){return n},n}function h(){var n=(0,u.Z)(["\n  width: 100%;\n  height: 100%;\n  overflow: ",";\n  background: ",";\n  border-radius: ",";\n"]);return h=function(){return n},n}var m=(0,c.F4)(l()),v=function(n){var r=n.isActive,e=n.isSuccess,t=n.isWarning,i=n.borderBackground,o=n.theme;return i||(t?o.colors.warning:e?o.colors.success:r?"linear-gradient(180deg, ".concat(o.colors.primaryBright,", ").concat(o.colors.secondary,")"):"rgba(255, 255, 255, 0.2)")},x=c.ZP.div.withConfig({componentId:"sc-da971217-0"}).withConfig({componentId:"sc-73b1267d-0"})(p(),v,function(n){return n.theme.radii.card},function(n){var r=n.theme,e=n.isDisabled;return r.colors[e?"textDisabled":"text"]},function(n){return n.isActive&&(0,c.iv)(f(),m)},s.Dh),g=(0,c.ZP)(d.Z).withConfig({componentId:"sc-da971217-1"}).withConfig({componentId:"sc-73b1267d-1"})(h(),function(n){return n.hasCustomBorder?"initial":"inherit"},function(n){var r=n.background;return null!=r?r:"rgba(255, 255, 255, 0.2)"},function(n){return n.theme.radii.card});x.defaultProps={isActive:!1,isSuccess:!1,isWarning:!1,isDisabled:!1};var b=function(n){var r=n.ribbon,e=n.children,u=n.background,c=(0,o.Z)(n,["ribbon","children","background"]);return(0,a.jsx)(x,(0,i.Z)((0,t.Z)({},c),{children:(0,a.jsxs)(g,{background:u,hasCustomBorder:!!c.borderBackground,children:[r,e]})}))}},19731:function(n,r,e){e.d(r,{Z:function(){return s}});var t=e(7297),i=e(94589),o={SM:"sm",MD:"md"};function a(){var n=(0,t.Z)(["\n  appearance: none;\n  overflow: hidden;\n  cursor: pointer;\n  position: relative;\n  display: inline-block;\n  height: ",";\n  width: ",";\n  vertical-align: middle;\n  transition: background-color 0.2s ease-in-out;\n  border: 0;\n  border-radius: 8px;\n  background-color: ",";\n  box-shadow: ",';\n\n  &:after {\n    content: "";\n    position: absolute;\n    border-bottom: 2px solid;\n    border-left: 2px solid;\n    border-color: transparent;\n    top: 30%;\n    left: 0;\n    right: 0;\n    width: 50%;\n    height: 25%;\n    margin: auto;\n    transform: rotate(-50deg);\n    transition: border-color 0.2s ease-in-out;\n  }\n\n  &:hover:not(:disabled):not(:checked) {\n    box-shadow: ',";\n  }\n\n  &:focus {\n    outline: none;\n    box-shadow: ",";\n  }\n\n  &:checked {\n    background-color: ",";\n    &:after {\n      border-color: white;\n    }\n  }\n\n  &:disabled {\n    cursor: default;\n    opacity: 0.6;\n  }\n"]);return a=function(){return n},n}var u=function(n){var r=n.scale;
1switch(r){case o.SM:return"24px";case o.MD:default:return"32px"}},c=i.ZP.input.attrs({type:"checkbox"}).withConfig({componentId:"sc-11bd21f1-0"}).withConfig({componentId:"sc-d4d20c70-0"})(a(),u,u,function(n){return n.theme.colors.input},function(n){return n.theme.shadows.inset},function(n){return n.theme.shadows.focus},function(n){return n.theme.shadows.focus},function(n){return n.theme.colors.success});c.defaultProps={scale:o.MD};var s=c},5324:function(n,r,e){var t=e(7297),i=e(94589),o=e(39112);function a(){var n=(0,t.Z)(["\n  // background-color: ",";\n  border-radius: 16px;\n  // box-shadow: ",";\n  color: ",";\n  display: block;\n  font-size: 16px;\n  height: ",";\n  outline: 0;\n  padding: 0 16px;\n  width: 100%;\n  // border: 1px solid ",";\n  border: none;\n  font-weight: 600;\n\n  &::placeholder {\n    /* color: ","; */\n    color: #999;\n  }\n\n  &:disabled {\n    background-color: ",";\n    box-shadow: none;\n    color: ",";\n    cursor: not-allowed;\n  }\n\n  &:focus:not(:disabled) {\n    box-shadow: ",";\n    box-shadow: none;\n  }\n"]);return a=function(){return n},n}var u=function(n){var r=n.isSuccess,e=n.isWarning,t=n.theme;return void 0!==e&&e?t.shadows.warning:void 0!==r&&r?t.shadows.success:t.shadows.inset},c=function(n){var r=n.scale,e=void 0===r?o.Q.MD:r;switch(e){case o.Q.SM:return"32px";case o.Q.LG:return"48px";case o.Q.MD:default:return"40px"}},s=i.ZP.input.withConfig({componentId:"sc-996b64d7-0"}).withConfig({componentId:"sc-de4b360c-0"})(a(),function(n){return n.theme.colors.input},u,function(n){return n.theme.colors.text},c,function(n){return n.theme.colors.inputSecondary},function(n){return n.theme.colors.textSubtle},function(n){return n.theme.colors.backgroundDisabled},function(n){return n.theme.colors.textDisabled},function(n){var r=n.theme,e=n.isWarning,t=n.isSuccess;return e?r.shadows.warning:t?r.shadows.success:r.shadows.focus});s.defaultProps={scale:o.Q.MD,isSuccess:!1,isWarning:!1},r.Z=s},39112:function(n,r,e){e.d(r,{Q:function(){return t}});var t={SM:"sm",MD:"md",LG:"lg"}},45341:function(n,r,e){var t=e(99534),i=e(7297),o=e(85893),a=e(67294),u=e(94589);function c(){var n=(0,i.Z)(["\n  display: inline-flex;\n  position: relative;\n"]);return c=function(){return n},n}function s(){var n=(0,i.Z)(["\n  display: ",";\n  position: absolute;\n  top: 0;\n  right: 0;\n  width: 10px;\n  height: 10px;\n  pointer-events: none;\n  border: 2px solid ",";\n  border-radius: 50%;\n  background-color: ",";\n"]);return s=function(){return n},n}var d=u.ZP.span.withConfig({componentId:"sc-a93f15de-0"}).withConfig({componentId:"sc-c1ffb375-0"})(c()),l=u.ZP.span.withConfig({componentId:"sc-a93f15de-1"}).withConfig({componentId:"sc-c1ffb375-1"})(s(),function(n){return n.show?"inline-flex":"none"},function(n){return n.theme.colors.invertedContrast},function(n){var r=n.theme,e=n.color;return r.colors[e]}),f=function(n){var r=n.show,e=n.color,i=n.children,u=(0,t.Z)(n,["show","color","children"]);return(0,o.jsxs)(d,{children:[a.Children.map(i,function(n){return(0,a.cloneElement)(n,u)}),(0,o.jsx)(l,{show:void 0!==r&&r,color:void 0===e?"failure":e})]})};r.Z=f},20508:function(n,r,e){e.d(r,{Z:function(){return b}});var t=e(26042),i=e(69396),o=e(99534),a=e(85893);e(67294);var u=e(4318),c=e(7297),s=e(94589),d={SM:"sm",MD:"md",LG:"lg"};function l(){var n=(0,c.Z)(["\n  // background-color: ",";\n  background-color: ",";\n  border-radius: 50%;\n  cursor: pointer;\n  height: ",";\n  left: ",";\n  position: absolute;\n  top: ",";\n  transition: left 200ms ease-in;\n  width: ",";\n  z-index: 1;\n"]);return l=function(){return n},n}function f(){var n=(0,c.Z)(["\n  cursor: pointer;\n  opacity: 0;\n  height: 100%;\n  position: absolute;\n  width: 100%;\n  z-index: 3;\n  &:checked + "," {\n    left: ",";\n  }\n\n  // &:focus + "," {\n  //   box-shadow: ",";\n  // }\n\n  // &:hover + ",":not(:disabled):not(:checked) {\n  //   box-shadow: ",";\n  // }\n"]);return f=function(){return n},n}function p(){var n=(0,c.Z)(["\n  align-items: center;\n  background-color: ",";\n  border-radius: 24px;\n  // box-shadow: ",";\n  border: 1px solid #000;\n  cursor: pointer;\n  display: inline-flex;\n  height: ",";\n  position: relative;\n  transition: background-color 200ms;\n  width: ",";\n"]);return p=function(){return n},n}var h={sm:{handleHeight:"16px",handleWidth:"16px",handleLeft:"2px",handleTop:"1px",checkedLeft:"calc(100% - 18px)",toggleHeight:"20px",toggleWidth:"36px"},md:{handleHeight:"26px",handleWidth:"26px",handleLeft:"3px",handleTop:"3px",checkedLeft:"calc(100% - 30px)",toggleHeight:"32px",toggleWidth:"56px"},lg:{handleHeight:"32px",handleWidth:"32px",handleLeft:"4px",handleTop:"4px",checkedLeft:"calc(100% - 36px)",toggleHeight:"40px",toggleWidth:"72px"}},m=function(n){return function(r){var e=r.scale;return h[void 0===e?d.LG:e][n]}},v=s.ZP.div.withConfig({componentId:"sc-6f7dd37e-0"}).withConfig({componentId:"sc-ab43b288-0"}
1)(l(),function(n){return n.theme.toggle.handleBackground},function(n){var r=n.theme;return n.$checked?r.toggle.handleBackground:"#7F7F7F"},m("handleHeight"),m("handleLeft"),m("handleTop"),m("handleWidth")),x=s.ZP.input.withConfig({componentId:"sc-6f7dd37e-1"}).withConfig({componentId:"sc-ab43b288-1"})(f(),v,m("checkedLeft"),v,function(n){return n.theme.shadows.focus},v,function(n){return n.theme.shadows.focus}),g=s.ZP.div.withConfig({componentId:"sc-6f7dd37e-2"}).withConfig({componentId:"sc-ab43b288-2"})(p(),function(n){var r=n.theme,e=n.$checked,t=n.$checkedColor,i=n.$defaultColor;return r.colors[e?t:i]},function(n){return n.theme.shadows.inset},m("toggleHeight"),m("toggleWidth")),b=function(n){var r=n.checked,e=n.defaultColor,c=n.checkedColor,s=n.scale,l=void 0===s?d.LG:s,f=n.startIcon,p=n.endIcon,h=(0,o.Z)(n,["checked","defaultColor","checkedColor","scale","startIcon","endIcon"]),m=!!r;return(0,a.jsxs)(g,{$checked:m,$checkedColor:void 0===c?"primary":c,$defaultColor:void 0===e?"input":e,scale:l,children:[(0,a.jsx)(x,(0,i.Z)((0,t.Z)({checked:r,scale:l},h),{type:"checkbox"})),f&&p?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(v,{scale:l,$checked:m,children:(0,a.jsx)(u.Z,{height:"100%",alignItems:"center",justifyContent:"center",children:r?p(r):f(!r)})}),(0,a.jsxs)(u.Z,{width:"100%",height:"100%",justifyContent:"space-around",alignItems:"center",children:[f(),p()]})]}):(0,a.jsx)(v,{scale:l,$checked:m})]})}},72609:function(n,r,e){e.d(r,{j:function(){return D},t:function(){return w}});var t=e(828),i=e(7297),o=e(85893),a=e(94589),u=e(4318),c=e(5527),s=e(69508),d=e(59750),l=e(45341),f=e(96293),p=e(97114),h=e(68605),m=e(8742),v=e(41664),x=e.n(v),g=e(65208),b=e(45061),Z=e(47431);function y(){var n=(0,i.Z)(["\n  align-items: center;\n  justify-content: space-between;\n  padding: 24px;\n  width: 100%;\n  /* border-bottom: 1px solid ","; */\n"]);return y=function(){return n},n}var I=(0,a.ZP)(u.Z).withConfig({componentId:"sc-8ef6e4b6-0"})(y(),function(n){return n.theme.colors.cardBorder}),w=function(n){var r=n.title,e=n.subtitle,i=n.helper,a=n.backTo,v=n.noConfig,y=n.type,w=void 0!==y&&y,k=(0,t.Z)((0,h.DG)(),1)[0],j=(0,g.$G)().t;return(0,t.Z)((0,h.$2)(),1)[0],(0,o.jsx)(I,{children:(0,o.jsxs)(u.Z,{alignItems:"center",width:"100%",style:{gap:"16px"},children:[a&&("string"==typeof a?(0,o.jsx)(x(),{passHref:!0,href:a,children:(0,o.jsx)(c.Z,{as:"a",scale:"sm",children:(0,o.jsx)(s.Z,{width:"32px"})})}):(0,o.jsx)(c.Z,{scale:"sm",variant:"text",onClick:a,children:(0,o.jsx)(s.Z,{width:"32px"})})),(0,o.jsxs)(u.Z,{flexDirection:"column",width:"100%",children:[(0,o.jsxs)(u.Z,{alignItems:"center",justifyContent:"space-between",children:[(0,o.jsx)(d.Z,{as:"h2",children:r}),!(void 0!==v&&v)&&(0,o.jsxs)(u.Z,{alignItems:"center",children:[!w&&(0,o.jsx)(l.Z,{show:k,children:(0,o.jsx)(m.Z,{mode:Z.a.SWAP_LIQUIDITY})}),w&&(0,o.jsx)(x(),{href:"/find",passHref:!0,children:(0,o.jsx)(f.Z,{id:"import-pool-link",scale:"sm",as:"a",style:{background:"transparent"},children:j("noah110")})})]})]}),(0,o.jsxs)(u.Z,{alignItems:"center",children:[i&&(0,o.jsx)(b.Z,{text:i,mr:"4px",placement:"top-start"}),(0,o.jsx)(p.Z,{color:"textSubtle",fontSize:"14px",children:e})]})]})]})})},k=e(38144);function j(){var n=(0,i.Z)(["\n  border-radius: 24px;\n  max-width: ",";\n  width: 100%;\n  z-index: 1;\n"]);return j=function(){return n},n}var C=(0,a.ZP)(k.Z).withConfig({componentId:"sc-b1a3e9f5-0"})(j(),function(n){return n.noMaxWidth?"none":"440px"});function D(n){var r=n.children,e=n.noMaxWidth;return(0,o.jsx)(C,{noMaxWidth:e,children:r})}},39475:function(n,r,e){e.d(r,{BA:function(){return p},DA:function(){return h},m0:function(){return f}});var t=e(7297),i=e(94589),o=e(44850);function a(){var n=(0,t.Z)(["\n  width: ",";\n  display: flex;\n  align-items: ",";\n  justify-content: ",";\n  padding: ",";\n  border: ",";\n  border-radius: ",";\n"]);return a=function(){return n},n}function u(){var n=(0,t.Z)(["\n  justify-content: space-between;\n"]);return u=function(){return n},n}function c(){var n=(0,t.Z)(["\n  display: flex;\n  align-items: flex-end;\n"]);return c=function(){return n},n}function s(){var n=(0,t.Z)(["\n  flex-wrap: wrap;\n  margin: ",";\n  justify-content: ",";\n\n  & > * {\n    margin: "," !important;\n  }\n"]);return s=function(){return n},n}function d(){var n=(0,t.Z)(["\n  width: fit-content;\n  margin: ",";\n\n  & > * {\n    margin: "," !important;\n  }\n"]);return d=function(){return n},n}var l=(0,i.ZP)(o.Z).withConfig({componentId:"sc-bc277a35-0"})(a(),function(n){var r=n.width;return null!=r?r:"100%"},function(n){var r=n.align;return null!=r?r:"center"},function(n){var r=n.justify;return null!=r?r:"flex-start"},function(n){var r=n.padding;return null!=r?r:"0"},function(n){return n.border},function(n){return n.borderRadius}),f=(0,i.ZP)(l).withConfig({componentId:"sc-bc277a35-1"})(u());i.ZP.div.withConfig({componentId:"sc-bc277a35-2"})(c());var p=(0,i.ZP)(l).withConfig({componentId:"sc-bc277a35-3"})(s(),function(n){var r=n.gap;return r&&"-".concat(r)},function(n){return n.justify},function(n){return n.gap}),h=(0,i.ZP)(l).withConfig({componentId:"sc-bc277a35-4"})(d(),function(n){var r=n.gap;return r&&"-".concat(r)},function(n){return n.gap});r.ZP=l},34966:function(n,r,e){e.d(r,{Z:function(){return d}});var t=e(7297),i=e(85893),o=e(94589),a=e(64011),u=e(79350);function c(){var n=(0,t.Z)(["\n  width: ",";\n  height: ",";\n  border-radius: 50%;\n"]);return c=function(){return n},n}var s=(0,o.ZP)(u.Z).withConfig({componentId:"sc-3deedc91-0"})(c(),function(n){return n.size},function(n){return n.size});function d(n){var r,e=n.currency,t=n.size,o=n.style,u=(0,a.Z)().chainId,c=[];return(null==e?void 0:e.symbol)==="EOS"||(null==e?void 0:e.symbol)==="WEOS"?c=["https://s3.ap-northeast-1.amazonaws.com/1noahark.io/image/17777-0xc00592aa41d32d137dc480d9f6d0df19b860104f-eos.png",]:(null==e?void 0:e.symbol)==="BTC"?c=["/images/small-img/btc.svg"]:(null==e?void 0:e.symbol)==="XBTC"?c=["https://s3.ap-northeast-1.amazonaws.com/1noahark.io/image/7200-0x4aa4365da82acd46e378a6f3c92a863f3e763d34-xbtc.png",]:(null==e?void 0:e.address)&&(null==e?void 0:e.symbol)&&(c=["https://s3.ap-northeast-1.amazonaws.com/1noahark.io/image/".concat(u,"-").concat(null==e?void 0:e.address.toLowerCase(),"-").concat(null==e?void 0:e.symbol.toLowerCase(),".png"),]),(0,i.jsx)(s,{size:void 0===t?"24px":t,srcs:c,alt:"".concat(null!==(r=null==e?void 0:e.symbol)&&void 0!==r?r:"token"," logo"),style:o})}},79350:function(n,r,e){e.d(r,{X:function(){return c}});var t=e(26042),i=e(69396),o=e(99534),a=e(85893),u=e(67294),c={},s=function(n){var r=n.srcs,e=n.alt,s=(0,o.Z)(n,["srcs","alt"]),d=(0,u.useState)(0)[1],l=r.find(function(n){return!c[n]});return l?(0,a.jsx)("img",(0,i.Z)((0,t.Z)({},s),{alt:e,src:l,onError:function(){l&&(c[l]=!0),d(function(n){return n+1})}})):(0,a.jsx)("img",(0,i.Z)((0,t.Z)({},s),{src:"/images/small-img/default-icon.png",alt:""}))};r.Z=s},98956:function(n,r,e){e.d(r,{Xw:function(){return t.Z},ge:function(){return s},_r:function(){return m}});var t=e(34966),i=e(7297),o=e(85893),a=e(94589);function u(){var n=(0,i.Z)(["\n  display: flex;\n  flex-direction: row;\n  margin-right: ",";\n"]);return u=function(){return n},n}var c=a.ZP.div.withConfig({componentId:"sc-d4ab4b9b-0"})(u(),function(n){return n.margin&&"4px"});function s(n){var r=n.currency0,e=n.currency1,i=n.size,a=void 0===i?20:i,u=n.margin;return(0,o.jsxs)(c,{margin:void 0!==u&&u,children:[r&&(0,o.jsx)(t.Z,{currency:r,size:"".concat(a.toString(),"px"),style:{marginRight:"-5px"}}),e&&(0,o.jsx)(t.Z,{currency:e,size:"".concat(a.toString(),"px")})]})}var d=e(67294),l=e(90570),f=e(79350);function p(){var n=(0,i.Z)(["\n  width: ",";\n  height: ",";\n"]);return p=function(){return n},n}var h=(0,a.ZP)(f.Z).withConfig({componentId:"sc-60793395-0"})(p(),function(n){return n.size},function(n){return n.size});function m(n){var r,e=n.logoURI,t=n.style,i=n.size,a=n.alt,u=(0,d.useMemo)(function(){return e?(0,l.Z)(e):[]},[e]);return(0,o.jsx)(h,{alt:a,size:void 0===i?"24px":i,srcs:u,style:t})}},8742:function(n,r,e){e.d(r,{Z:function(){return M}});var t,i,o,a,u=e(828),c=e(85893),s=e(65528),d=e(4318),l=e(5527),f=e(7297),p=e(67294),h=e(94589),m=e(90452),v=e(97114),x=e(20508),g=e(68605),b=e(65208),Z=e(25628),y=e(45061),I=e(93293),w=e(96293),k=e(44850),j=e(5324);(o=t||(t={}
1)).InvalidInput="InvalidInput",o.RiskyLow="RiskyLow",o.RiskyHigh="RiskyHigh",(a=i||(i={})).InvalidInput="InvalidInput";var C=RegExp("^\\d*(?:\\\\[.])?\\d*$"),D=function(){var n,r,e=(0,u.Z)((0,g.$2)(),2),o=e[0],a=e[1],s=(0,u.Z)((0,g.A6)(),2),l=s[0],f=s[1],h=(0,p.useState)((o/100).toFixed(2)||""),m=h[0],x=h[1],Z=(0,p.useState)(""),D=Z[0],S=Z[1],T=(0,b.$G)().t,E=""===m||(o/100).toFixed(2)===Number.parseFloat(m).toFixed(2),N=""===D||(l/60).toString()===D;n=""===m||E?E&&o<50?t.RiskyLow:E&&o>500?t.RiskyHigh:void 0:t.InvalidInput,r=""===D||N?void 0:i.InvalidInput;var A=function(n){if(""===n||C.test((0,I.hr)(n))){x(n);try{var r=Number.parseInt((100*Number.parseFloat(n)).toString());!Number.isNaN(r)&&r<5e3&&a(r)}catch(e){console.error(e)}}},P=function(n){S(n);try{var e=60*Number.parseInt(n);!Number.isNaN(e)&&e>60&&e<259200?f(e):r=i.InvalidInput}catch(t){console.error(t)}};return(0,c.jsxs)(d.Z,{flexDirection:"column",children:[(0,c.jsxs)(d.Z,{flexDirection:"column",mb:"24px",children:[(0,c.jsxs)(d.Z,{mb:"12px",alignItems:"center",children:[(0,c.jsx)(v.Z,{fontSize:"16px",children:T("noah16")}),(0,c.jsx)(y.Z,{text:T("noah20"),placement:"top-start",ml:"4px"})]}),(0,c.jsxs)(d.Z,{flexWrap:"wrap",children:[(0,c.jsx)(w.Z,{mt:"4px",mr:"10px",ml:"0px",scale:"sm",border:!0,onClick:function(){x(""),a(50)},variant:50===o?"primary":"tertiary",children:"0.5%"}),(0,c.jsx)(w.Z,{mr:"10px",mt:"4px",scale:"sm",border:!0,onClick:function(){x(""),a(100)},variant:100===o?"primary":"tertiary",children:"1.0%"}),(0,c.jsx)(w.Z,{mt:"4px",scale:"sm",border:!0,onClick:function(){x(""),a(300)},variant:300===o?"primary":"tertiary",children:"3.0%"}),(0,c.jsx)(k.Z,{width:"132px",mt:"4px",style:{border:"1px solid #eee",borderRadius:6},children:(0,c.jsxs)(d.Z,{alignItems:"center",children:[(0,c.jsx)(j.Z,{inputMode:"decimal",pattern:"^[0-9]*[.,]?[0-9]{0,2}$",placeholder:"0.100",value:m,onBlur:function(){A((o/100).toFixed(2))},onChange:function(n){n.currentTarget.validity.valid&&A(n.target.value.replace(/,/g,"."))},isWarning:!E,isSuccess:![10,50,100].includes(o)}),(0,c.jsx)(v.Z,{bold:!0,ml:"2px",mr:"6px",children:"%"})]})})]}),!!n&&(0,c.jsx)(v.Z,{fontSize:"14px",color:n===t.InvalidInput?"red":"#F3841E",mt:"8px",children:T(n===t.InvalidInput?"Enter a valid slippage percentage":n===t.RiskyLow?"Your transaction may fail":"Your transaction may be frontrun")})]}),(0,c.jsxs)(d.Z,{justifyContent:"space-between",alignItems:"center",mb:"24px",children:[(0,c.jsxs)(d.Z,{alignItems:"center",children:[(0,c.jsx)(v.Z,{fontSize:"16px",children:T("Tx deadline (mins)")}),(0,c.jsx)(y.Z,{text:T("noah21"),placement:"top-start",ml:"4px"})]}),(0,c.jsx)(d.Z,{children:(0,c.jsx)(k.Z,{width:"70px",mt:"4px",style:{border:"1px solid #eee",borderRadius:6},children:(0,c.jsx)(j.Z,{inputMode:"numeric",pattern:"^[0-9]+$",isWarning:!!r,onBlur:function(){P((l/60).toString())},placeholder:(l/60).toString(),value:D,onChange:function(n){n.currentTarget.validity.valid&&P(n.target.value)}})})})]})]})},S=e(67334),T=e(19731),E=function(n){var r=n.setShowConfirmExpertModal,e=n.setShowExpertModeAcknowledgement,t=(0,u.Z)((0,g.DG)(),2)[1],i=(0,p.useState)(!1),o=i[0],a=i[1],s=(0,b.$G)().t;return(0,c.jsxs)(m.Z,{title:s("Expert Mode"),onBack:function(){return r(!1)},onDismiss:function(){return r(!1)},headerBackground:"gradients.cardHeader",style:{width:"418px"},children:[(0,c.jsx)(S.Z,{variant:"warning",mb:"24px",children:(0,c.jsx)(v.Z,{children:s("Expert mode turns off the 'Confirm' transaction prompt, and allows high slippage trades that often result in bad rates and lost funds.")})}),(0,c.jsx)(v.Z,{mb:"24px",children:s("Only use this mode if you know what you’re doing.")}),(0,c.jsxs)(d.Z,{alignItems:"center",mb:"24px",children:[(0,c.jsx)(T.Z,{name:"confirmed",type:"checkbox",checked:o,onChange:function(){return a(!o)},scale:"sm"}),(0,c.jsx)(v.Z,{ml:"10px",color:"textSubtle",style:{userSelect:"none"},children:s("Don’t show this again")})]}),(0,c.jsx)(w.Z,{mb:"8px",id:"confirm-expert-mode",onClick:function(){"confirm"===window.prompt('Please type the word "confirm" to enable expert mode.')&&(t(),r(!1),o&&e(!1))},children:s("Turn On Expert Mode")}),(0,c.jsx)(w.Z,{variant:"secondary",onClick:function(){r(!1)},children:s("Cancel")})]})},N=e(45101),A=e(64011),P=function(){var n=(0,b.$G)().t;(0,A.Z)().chainId;var r=(0,u.Z)((0,g.nF)(),2),e=r[0],t=r[1],i=(0,g.e7)();return console.log("defaultGasPrice",i),(0,c.jsxs)(d.Z,{flexDirection:"column",children:[(0,c.jsxs)(d.Z,{mb:"12px",alignItems:"center",children:[(0,c.jsx)(v.Z,{children:n("noah220")}),(0,c.jsx)(y.Z,{text:n("noah219"),placement:"top-start",ml:"4px"})]}),(0,c.jsxs)(d.Z,{flexWrap:"wrap",children:[(0,c.jsx)(w.Z,{mt:"4px",mr:"4px",border:!0,scale:"sm",onClick:function(){t(N.j4.rpcDefault)},variant:e===N.j4.rpcDefault?"primary":"tertiary",children:n("noah216")+" "+Number(i)/1e9+" Gwei"}),(0,c.jsx)(w.Z,{mt:"4px",mr:"4px",border:!0,scale:"sm",onClick:function(){t((Number(i)+.03*Number(i)).toString())},variant:e===(Number(i)+.03*Number(i)).toString()?"primary":"tertiary",children:(Number(i)+.03*Number(i))/1e9+" Gwei"}),(0,c.jsx)(w.Z,{mr:"4px",mt:"4px",border:!0,scale:"sm",onClick:function(){t((Number(i)+.06*Number(i)).toString())},variant:e===(Number(i)+.06*Number(i)).toString()?"primary":"tertiary",children:(Number(i)+.06*Number(i))/1e9+" Gwei"})]})]})},U=e(47431);function B(){var n=(0,f.Z)(["\n  flex-direction: column;\n  height: auto;\n  "," {\n    max-height: 90vh;\n  }\n  "," {\n    max-height: none;\n  }\n"]);return B=function(){return n},n}var O=(0,h.ZP)(d.Z).withConfig({componentId:"sc-d05b5a3f-0"})(B(),function(n){return n.theme.mediaQueries.xs},function(n){return n.theme.mediaQueries.md}),L=function(n){var r=n.onDismiss,e=n.mode,t=(0,p.useState)(!1),i=t[0],o=t[1],a=(0,u.Z)((0,g.wX)(),2),s=(a[0],a[1]),l=(0,u.Z)((0,g.RO)(),2),f=l[0],h=l[1],I=(0,b.$G)().t,w=(0,Z.ZP)();return(w.isDark,w.setTheme,i)?(0,c.jsx)(E,{setShowConfirmExpertModal:o,onDismiss:r,setShowExpertModeAcknowledgement:s}):(0,c.jsx)(m.Z,{title:I("noah15"),onDismiss:r,bodyPadding:"0 24px 24px 24px",children:(0,c.jsxs)(O,{style:{paddingTop:0},children:[(0,c.jsx)(c.Fragment,{children:(0,c.jsx)(d.Z,{pb:"24px",flexDirection:"column",children:(0,c.jsx)(P,{})})}),e===U.a.SWAP_LIQUIDITY&&(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(d.Z,{pt:"0",flexDirection:"column",children:(0,c.jsx)(D,{})}),(0,c.jsxs)(d.Z,{justifyContent:"space-between",alignItems:"center",mb:"24px",children:[(0,c.jsxs)(d.Z,{alignItems:"center",children:[(0,c.jsx)(v.Z,{fontSize:"16px",children:I("noah18")}),(0,c.jsx)(y.Z,{text:I("noah22"),placement:"top-start",ml:"4px"})]}),(0,c.jsx)(x.Z,{id:"toggle-disable-multihop-button",checked:f,scale:"sm",onChange:function(){h(!f)}})]})]})]})})},M=function(n){n.color;var r=n.mr,e=n.mode,t=(0,u.Z)((0,s.Z)((0,c.jsx)(L,{mode:e})),1)[0];return(0,c.jsx)(d.Z,{children:(0,c.jsx)(l.Z,{onClick:t,variant:"text",scale:"sm",mr:void 0===r?"8px":r,id:"open-settings-dialog-button-".concat(e),children:(0,c.jsx)("img",{src:"/images/small-img/setting.png",width:20,height:20,alt:"setting"})})})}},47431:function(n,r,e){var t,i;e.d(r,{a:function(){return t}}),(i=t||(t={})).GLOBAL="GLOBAL",i.SWAP_LIQUIDITY="SWAP_LIQUIDITY"},4003:function(n,r,e){e.d(r,{Bq:function(){return t},Tb:function(){return i},si:function(){return o}});var t=86400,i=3600,o=10},23715:function(n,r,e){e.d(r,{mP:function(){return y},uK:function(){return I},AU:function(){return b},in:function(){return Z}});var t=e(26042),i=e(828),o=e(29815),a=e(19838);function u(n,r){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:a.fI;if(n&&!r)return!1;if(r&&!n)return!0;
1if(n&&r){if(n.tradeType!==r.tradeType||!n.inputAmount.currency.equals(r.inputAmount.currency)||!n.outputAmount.currency.equals(r.outputAmount.currency))throw Error("Trades are not comparable");return e.equalTo(a.fI)?n.executionPrice.lessThan(r.executionPrice):n.executionPrice.asFraction.multiply(e.add(a.yC)).lessThan(r.executionPrice)}}var c=e(79331),s=e(94654),d=e.n(s),l=e(67294),f=e(64011),p=e(68605),h=e(84915),m=e(53854),v=e(86435),x=e(44797);function g(n,r,e){var u=(0,f.Z)().chainId,c=(0,i.Z)(u?[(0,m.pu)(n,u),(0,m.pu)(r,u)]:[void 0,void 0],2),s=c[0],p=c[1],v=(0,x.Z)(),g=(0,t.Z)({},e,v),b=["0xc00592aA41D32D137dC480d9f6d0Df19b860104F","0x2a3b2d64960036de519dC4a45CAfd532Bfa99Ff0","0x33B57dC70014FD7AA6e1ed3080eeD2B619632B8e","0xfA9343C3897324496A05fC75abeD6bAC29f8A40f","0x818ec0A7Fe18Ff94269904fCED6AE3DaE6d6dC0b","0x765277EebeCA2e31912C9946eAe1021199B39C61",].reduce(function(n,r){return g[r]&&(n[r]=g[r]),n},{}),Z=Object.keys(b).map(function(n){return b[n]}),y=(0,l.useMemo)(function(){if(!u)return[];var n,r,e,t,i=s&&null!==(e=null===(n=a.ck[u])||void 0===n?void 0:n[s.address])&&void 0!==e?e:[],c=p&&null!==(t=null===(r=a.ck[u])||void 0===r?void 0:r[p.address])&&void 0!==t?t:[];return(0,o.Z)(null!=Z?Z:[]).concat((0,o.Z)(i),(0,o.Z)(c))},[u,s,p]),I=(0,l.useMemo)(function(){return d()(y,function(n){return y.map(function(r){return[n,r]})})},[y]),w=(0,l.useMemo)(function(){return s&&p?[[s,p],].concat((0,o.Z)(y.map(function(n){return[s,n]})),(0,o.Z)(y.map(function(n){return[p,n]})),(0,o.Z)(I)).filter(function(n){return Boolean(n[0]&&n[1])}).filter(function(n){var r=(0,i.Z)(n,2),e=r[0],t=r[1];return e.address!==t.address}).filter(function(n){var r=(0,i.Z)(n,2),e=r[0],t=r[1];if(!u)return!0;var o=a.IP[u],c=null==o?void 0:o[e.address],s=null==o?void 0:o[t.address];return!c&&!s||(!c||!!c.find(function(n){return t.equals(n)}))&&(!s||!!s.find(function(n){return e.equals(n)}))}):[]},[s,p,y,I,u]),k=(0,h.z$)(w);return(0,l.useMemo)(function(){return Object.values(k.filter(function(n){return Boolean(n[0]===h._G.EXISTS&&n[1])}).reduce(function(n,r){var e,t=(0,i.Z)(r,2)[1];return n[t.liquidityToken.address]=null!==(e=n[t.liquidityToken.address])&&void 0!==e?e:t,n},{}))},[k])}function b(n,r,e){var t=g(null==n?void 0:n.currency,r,e),o=(0,i.Z)((0,p.RO)(),1)[0];return(0,l.useMemo)(function(){if(n&&r&&t.length>0){if(o){var e;return null!==(e=c.ho.bestTradeExactIn(t,n,r,{maxHops:1,maxNumResults:1})[0])&&void 0!==e?e:null}for(var i=null,s=1;s<=3;s++){var d,l=null!==(d=c.ho.bestTradeExactIn(t,n,r,{maxHops:s,maxNumResults:1})[0])&&void 0!==d?d:null;u(i,l,a.Ru)&&(i=l)}return i}return null},[t,n,r,o])}function Z(n,r,e){var t=g(n,null==r?void 0:r.currency,e),o=(0,i.Z)((0,p.RO)(),1)[0];return(0,l.useMemo)(function(){if(n&&r&&t.length>0){if(o){var e;return null!==(e=c.ho.bestTradeExactOut(t,n,r,{maxHops:1,maxNumResults:1})[0])&&void 0!==e?e:null}for(var i=null,s=1;s<=3;s++){var d,l=null!==(d=c.ho.bestTradeExactOut(t,n,r,{maxHops:s,maxNumResults:1})[0])&&void 0!==d?d:null;u(i,l,a.Ru)&&(i=l)}return i}return null},[n,r,t,o])}function y(n,r){var e=(0,v.l6)(),t=(0,f.Z)().chainId,i=(0,m.pu)(n,t),o=(0,m.pu)(r,t);return!!(e&&(i&&Object.keys(e).includes(i.address)||o&&Object.keys(e).includes(o.address)))}function I(n,r){var e=(0,v.zd)(),t=(0,f.Z)().chainId,i=(0,m.pu)(n,t),o=(0,m.pu)(r,t);return!!(e&&(i&&Object.keys(e).includes(i.address)||o&&Object.keys(e).includes(o.address)))}},84915:function(n,r,e){e.d(r,{_G:function(){return t},yX:function(){return m},z$:function(){return h}});var t,i,o=e(828),a=e(79331),u=e(67294),c=e(87191),s=e(8198),d=e(64011),l=e(91001),f=e(53854),p=new s.vU(c);function h(n){var r=(0,d.Z)().chainId,e=(0,u.useMemo)(function(){return n.map(function(n){var e=(0,o.Z)(n,2),t=e[0],i=e[1];return[(0,f.pu)(t,r),(0,f.pu)(i,r),]})},[r,n]),i=(0,u.useMemo)(function(){return e.map(function(n){var r=(0,o.Z)(n,2),e=r[0],t=r[1];try{return e&&t&&!e.equals(t)?a.sO.getAddress(e,t):void 0}catch(i){console.error(i.msg,"- pairAddresses: ".concat(null==e?void 0:e.address,"-").concat(null==t?void 0:t.address),"chainId: ".concat(null==e?void 0:e.chainId));return}})},[e]),c=(0,l._Y)(i,p,"getReserves");return(0,u.useMemo)(function(){return c.map(function(n,r){var i=n.result,u=n.loading,c=e[r][0],s=e[r][1];if(u)return[t.LOADING,null];if(!c||!s||c.equals(s))return[t.INVALID,null];if(!i)return[t.NOT_EXISTS,null];var d=i.reserve0,l=i.reserve1,f=(0,o.Z)(c.sortsBefore(s)?[c,s]:[s,c],2),p=f[0],h=f[1];return[t.EXISTS,new a.sO(a.ih.fromRawAmount(p,d.toString()),a.ih.fromRawAmount(h,l.toString())),]})},[c,e])}function m(n,r){return h((0,u.useMemo)(function(){return[[n,r]]},[n,r]))[0]}(i=t||(t={}))[i.LOADING=0]="LOADING",i[i.NOT_EXISTS=1]="NOT_EXISTS",i[i.EXISTS=2]="EXISTS",i[i.INVALID=3]="INVALID"},12788:function(n,r,e){e.d(r,{jj:function(){return nS},SM:function(){return nj},aT:function(){return nT},dU:function(){return nI}});var t,i,o,a=e(47568),u=e(14924),c=e(828),s=e(70655),d=e(67539),l=e(79331),f=e(67294),p=e(68274),h=e(19838),m=e(49770),v=e(9473),x=e(64
1011),g=e(23715),b=e(11163),Z=e(65208),y=e(93293),I=e(70176),w=e(42658);e(32323);var k=e(97938),j=e(81002),C=e(71900),D=e(70193),S=e(68605),T=function(n,r,e){var t=arguments.length>3&&void 0!==arguments[3]?arguments[3]:3e4;return Promise.race([e?n.request(r,e):n.request(r),new Promise(function(n,r){setTimeout(function(){r(Error("Request timed out after ".concat(t," milliseconds")))},t)}),])},E=e(85906),N=e(28687),A=e(34155),P=function(n){if(n===E.JY)return{"X-Sf":A.env.NEXT_PUBLIC_SF_HEADER||window.sfHeader}},U=new N.GraphQLClient(E.JY,{headers:P(E.JY)});new N.GraphQLClient(E.JY,{headers:{"X-Sf":A.env.SF_HEADER},timeout:5e3}),new N.GraphQLClient("",{headers:{"X-API-KEY":A.env.BIT_QUERY_HEADER},timeout:5e3});var B=e(7297);function O(){var n=(0,B.Z)(["\n  query lastPairDayId($pairId: String) {\n    pairDayDatas(first: 1, where: { pairAddress: $pairId }, orderBy: date, orderDirection: desc) {\n      id\n    }\n  }\n"]);return O=function(){return n},n}var L=(0,N.gql)(O());function M(){var n=(0,B.Z)(["\n  query pairHourDatas($pairId: String, $first: Int) {\n    pairHourDatas(first: $first, where: { pair: $pairId }, orderBy: hourStartUnix, orderDirection: desc) {\n      id\n      hourStartUnix\n      reserve0\n      reserve1\n      reserveUSD\n      pair {\n        token0 {\n          id\n        }\n        token1 {\n          id\n        }\n      }\n    }\n  }\n"]);return M=function(){return n},n}var $=(0,N.gql)(M());function H(){var n=(0,B.Z)(["\n  query pairDayDatasByIdsQuery($pairIds: [String]) {\n    pairDayDatas(where: { id_in: $pairIds }, orderBy: date, orderDirection: desc) {\n      id\n      date\n      reserve0\n      reserve1\n      reserveUSD\n      pairAddress {\n        token0 {\n          id\n        }\n        token1 {\n          id\n        }\n      }\n    }\n  }\n"]);return H=function(){return n},n}var R,_=(0,N.gql)(H());(R=t||(t={}))[R.DAY=0]="DAY",R[R.WEEK=1]="WEEK",R[R.MONTH=2]="MONTH",R[R.YEAR=3]="YEAR";var F=(i={},(0,u.Z)(i,t.DAY,24),(0,u.Z)(i,t.WEEK,28),(0,u.Z)(i,t.MONTH,30),(0,u.Z)(i,t.YEAR,24),i),W=(o={},(0,u.Z)(o,t.DAY,null),(0,u.Z)(o,t.WEEK,6),(0,u.Z)(o,t.MONTH,1),(0,u.Z)(o,t.YEAR,15),o),q=e(98913),G=e.n(q),Y=function(n){var r=n.id,e=n.pairId;return r.replace("".concat(e,"-"),"")},z=function(n){var r=n.pairAddress,e=n.pairLastId,i=n.timeWindow,o=n.idsCount,a=Number(e);return i===t.DAY?[]:G()(o,function(n){return"".concat(r,"-").concat(a-n*W[i])})};function Q(){var n=(0,B.Z)(["\n  query pairDayDatas($pairId: String, $first: Int) {\n    pairDayDatas(first: $first, where: { pairAddress: $pairId }, orderBy: date, orderDirection: desc) {\n      id\n      date\n      reserve0\n      reserve1\n      reserveUSD\n      pairAddress {\n        token0 {\n          id\n        }\n        token1 {\n          id\n        }\n      }\n    }\n  }\n"]);return Q=function(){return n},n}var X=(0,N.gql)(Q());function K(){var n=(0,B.Z)(["\n  query pairHourDatasByIds($pairIds: [String]) {\n    pairHourDatas(where: { id_in: $pairIds }, orderBy: hourStartUnix, orderDirection: desc) {\n      id\n      hourStartUnix\n      reserve0\n      reserve1\n      reserveUSD\n      pair {\n        token0 {\n          id\n        }\n        token1 {\n          id\n        }\n      }\n    }\n  }\n"]);return K=function(){return n},n}var J=(0,N.gql)(K());function V(){var n=(0,B.Z)(["\n  query lastPairHourId($pairId: String) {\n    pairHourDatas(first: 1, where: { pair: $pairId }, orderBy: hourStartUnix, orderDirection: desc) {\n      id\n    }\n  }\n"]);return V=function(){return n},n}var nn,nr=(0,N.gql)(V());(0,a.Z)(function(n){var r,e,i,o,a,u,c,d,l,f,p,h,m,v,x,g,b,Z;return(0,s.__generator)(this,function(o){switch(o.label){case 0:r=n.pairId,e=n.timeWindow,i=U,o.label=1;case 1:switch(o.trys.push([1,14,,15]),e){case t.DAY:return[3,2];case t.WEEK:return[3,4];case t.MONTH:return[3,7];case t.YEAR:return[3,9]}return[3,12];case 2:return[4,T(i,$,{pairId:r,first:F[e]})];case 3:case 6:case 8:case 11:return[2,{data:o.sent(),error:!1}];case 4:return[4,T(i,nr,{pairId:r})];case 5:if(!(c=(null==(u=o.sent())?void 0:u.pairHourDatas)?null===(a=u.pairHourDatas[0])||void 0===a?void 0:a.id:null))return[2,{data:{pairHourDatas:[]},error:!1}];return d=Y({id:c,pairId:r}),l=z({pairAddress:r,pairLastId:d,timeWindow:e,idsCount:F[e]}),[4,T(i,J,{pairIds:l})];case 7:return[4,T(i,X,{pairId:r,first:F[e]})];case 9:return[4,T(i,L,{pairId:r})];case 10:if(!(v=(null==(m=o.sent())?void 0:m.pairDayDatas)?null===(h=m.pairDayDatas[0])||void 0===h?void 0:h.id:null))return[2,{data:{pairDayDatas:[]},error:!1}];return x=Y({id:v,pairId:r}),g=z({pairAddress:r,pairLastId:x,timeWindow:e,idsCount:F[e]}),[4,T(i,_,{pairIds:g})];case 12:return[2,{data:null,error:!1}];case 13:return[3,15];case 14:return Z=o.sent(),console.error("Failed to fetch price chart data",Z),[2,{error:!0}];case 15:return[2]}})}),e(27361);var ne,nt=e(75472),ni=e.n(nt),no=e(4003),na=e(26042),nu=(ne=(0,a.Z)(function(n,r,e){var t,i,o,a,u,c,d,l,f,p=arguments;return(0,s.__generator)(this,function(s){switch(s.label){case 0:t=p.length>3&&void 0!==p[3]?p[3]:1e3,i={},o=!1,a=0,u=new N.GraphQLClient(e,{headers:P(e)}),s.label=1;case 1:if(s.trys.push([1,4,,5]),o)return[3,3];return c=r.length,a+t<r.length&&(c=a+t),[4,T(u,n(r.slice(a,c)))];case 2:return l=s.sent(),i=(0,na.Z)({},i,l),o=Object.keys(l).length<t||a+t>r.length,a+=t,[3,1];case 3:return[2,i];case 4:return f=s.sent(),console.error("Failed to fetch info data",f),[2,null];case 5:return[2]}})}),function(n,r,e){return ne.apply(this,arguments)});function nc(){var n=(0,B.Z)(["query blocks {\n    ","\n  }"]);return nc=function(){return n},n}var ns,nd=function(n){return(0,N.gql)(nc(),n)},nl=(ns=(0,a.Z)(function(n){var r,e,t,i,o,a,u,c,d,l,f=arguments;return(0,s.__generator)(this,function(s){switch(s.label){case 0:var p;if(r=f.length>1&&void 0!==f[1]?f[1]:"desc",e=f.length>2&&void 0!==f[2]?f[2]:500,(null==n?void 0:n.length)===0)return[2,[]];return[4,nu(nd,n.map(function(n){return"t".concat(n,":blocks(first: 1, orderBy: timestamp, orderDirection: desc, where: { timestamp_gt: ").concat(n,", timestamp_lt: ").concat(n+600," }) {\n      number\n    }")}),E.I0,e)];case 1:if(t=s.sent(),i=[],t){o=!0,a=!1,u=void 0;try{for(c=Object.keys(t)[Symbol.iterator]();!(o=(d=c.next()).done);o=!0)t[l=d.value].length>0&&i.push({timestamp:l.split("t")[1],number:parseInt(t[l][0].number,10)})}catch(h){a=!0,u=h}finally{try{o||null==c.return||c.return()}finally{if(a)throw u}}return[2,ni()(i,function(n){return n.number},r)]}return[2,i]}})}),function(n){return ns.apply(this,arguments)}),nf=e(28401),np=e(12383),nh=e(55777);function nm(){var n=(0,B.Z)(["\n      query derivedTokenPriceData {\n        ","\n      }\n    "]);return nm=function(){return n},n}var nv,nx,ng=function(n){return(0,N.gql)(nm(),n)},nb=(nv=(0,a.Z)(function(n,r){var e,t;return(0,s.__generator)(this,function(i){switch(i.label){case 0:var o,a;return[4,nu(ng,r.map(function(r){return"\n    t".concat(r.timestamp,':token(id:"').concat(n,'", block: { number: ').concat(r.number," }) { \n        derivedEOS\n      }\n    ")}),E.JY,200)];case 1:if(!(e=i.sent()))return console.error("Price data failed to load"),[2,null];return t=[],Object.keys(e).forEach(function(r){var i,o=r.split("t")[1];o&&t.push({tokenAddress:n,timestamp:o,derivedEOS:(null===(i=e[r])||void 0===i?void 0:i.derivedEOS)?parseFloat(e[r].derivedEOS):0})}),[2,ni()(t,function(n){return parseInt(n.timestamp,10)})]}})}),function(n,r){return nv.apply(this,arguments)}),nZ=function(n){switch(n){case t.DAY:return no.Tb;case t.WEEK:return 4*no.Tb;case t.MONTH:return no.Bq;
1case t.YEAR:return 15*no.Bq;default:return 4*no.Tb}},ny=function(n){switch(n){case t.DAY:return 1;case t.WEEK:return 7;case t.MONTH:return 30;case t.YEAR:return 365;default:return 7}};function nI(){return(0,v.v9)(function(n){return n.swap})}(0,a.Z)(function(n,r,e){var t,i,o,a,u,d,l,f,p,h;return(0,s.__generator)(this,function(s){switch(s.label){case 0:for(t=nZ(e),i=(0,nf.Z)(new Date),o=(0,nf.Z)((0,np.Z)((0,nh.Z)(1e3*i,{days:ny(e)}))),a=[],u=o;u<=i;)a.push(u),u+=t;s.label=1;case 1:return s.trys.push([1,4,,5]),[4,nl(a,"asc",500)];case 2:if(!(d=s.sent())||0===d.length)return console.error("Error fetching blocks for timestamps",a),[2,null];return[4,Promise.all([nb(n,d),nb(r,d)])];case 3:return[2,{token0DerivedEos:f=(l=c.Z.apply(void 0,[s.sent(),2]))[0],token1DerivedEos:l[1]}];case 4:return h=s.sent(),console.error("Failed to fetched derived price data for chart",h),[2,null];case 5:return[2]}})});var nw=["0x5C69bEe701ef814a2B6a3EDD4B1652CB9cc5aA6f","0xf164fC0Ec4E93095b804a4795bBe1e041497b92a","0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D"];function nk(n,r){return n.route.path.some(function(n){return n.address===r})||n.route.pairs.some(function(n){return n.liquidityToken.address===r})}function nj(n,r,e,t,i,o){var a,s,l,f,p,h=(0,d.Ge)().account,m=(0,Z.$G)().t,v=null!==(a=null===i?h:(0,y.UJ)(i)||null)&&void 0!==a?a:null,x=(0,C.K5)(null!=h?h:void 0,[null!=e?e:void 0,null!=t?t:void 0,]),b=n===D.gN.INPUT,I=(0,k.Z)(r,null!==(s=b?e:t)&&void 0!==s?s:void 0),j=(0,g.AU)(b?I:void 0,null!=t?t:void 0,o),T=(0,g.in)(null!=e?e:void 0,b?void 0:I,o),E=b?j:T,N=(l={},(0,u.Z)(l,D.gN.INPUT,x[0]),(0,u.Z)(l,D.gN.OUTPUT,x[1]),l),A=(f={},(0,u.Z)(f,D.gN.INPUT,null!=e?e:void 0),(0,u.Z)(f,D.gN.OUTPUT,null!=t?t:void 0),f);h||(p=m("noah1")),I||(p=null!=p?p:m("noah144")),A[D.gN.INPUT]&&A[D.gN.OUTPUT]||(p=null!=p?p:m("noah142"));var P=(0,y.UJ)(v);v&&P?(-1!==nw.indexOf(P)||j&&nk(j,P)||T&&nk(T,P))&&(p=null!=p?p:m("Invalid recipient")):p=null!=p?p:m("Enter a recipient");var U=(0,c.Z)((0,S.$2)(),1)[0],B=E&&U&&(0,w.b5)(E,U),O=[N[D.gN.INPUT],B?B[D.gN.INPUT]:null,],L=O[0],M=O[1];return L&&M&&L.lessThan(M)&&(p=m("Insufficient %symbol% balance",{symbol:M.currency.symbol})),{currencies:A,currencyBalances:N,parsedAmount:I,v2Trade:null!=E?E:void 0,inputError:p,listData:o}}function nC(n){if("string"==typeof n){var r=(0,y.UJ)(n);if(r)return r;if("EOS"===n.toUpperCase()||!1===r)return"EOS"}return""}var nD=/^0x[a-fA-F0-9]{40}$/;function nS(){var n=(0,x.Z)().chainId,r=(0,j.TL)(),e=(0,I.Z)(),t=(0,b.useRouter)().query,i=(0,f.useState)(),o=i[0],a=i[1];return(0,f.useEffect)(function(){if(n&&e){var i,o,c,s,d,l,f,p,m,v=(o=e.symbol,d=nC(t.inputCurrency)||(null!=o?o:h.VN),l=nC(t.outputCurrency)||"",d===l&&("string"==typeof t.outputCurrency?d="":l=""),f=function(n){if("string"!=typeof n)return null;var r=(0,y.UJ)(n);return r||(nD.test(n)?n:null)}(t.recipient),s={},(0,u.Z)(s,D.gN.INPUT,{currencyId:d}),(0,u.Z)(s,D.gN.OUTPUT,{currencyId:l}),(0,u.Z)(s,"typedValue","string"!=typeof(p=t.exactAmount)||Number.isNaN(parseFloat(p))?"":p),(0,u.Z)(s,"independentField","string"==typeof(m=t.exactField)&&"output"===m.toLowerCase()?D.gN.OUTPUT:D.gN.INPUT),(0,u.Z)(s,"recipient",f),(0,u.Z)(s,"pairDataById",{}),(0,u.Z)(s,"derivedPairDataById",{}),s);r((0,D.mV)({typedValue:v.typedValue,field:v.independentField,inputCurrencyId:v[D.gN.INPUT].currencyId,outputCurrencyId:v[D.gN.OUTPUT].currencyId,recipient:null})),a({inputCurrencyId:v[D.gN.INPUT].currencyId,outputCurrencyId:v[D.gN.OUTPUT].currencyId})}},[r,n,t,e]),o}var nT=function(n){return(0,m.Z)(n&&n.chainId===l.a_.EVM?["LP7dApr",n.liquidityToken.address]:null,(0,a.Z)(function(){return(0,s.__generator)(this,function(n){return[2,null]})}),{refreshInterval:p.KI}).data}},28996:function(n,r,e){function t(n){var r;if(null==n?void 0:n.isNative)return null===(r=n.symbol)||void 0===r?void 0:r.toUpperCase();if(null==n?void 0:n.isToken)return n.address;throw Error("invalid currency")}e.d(r,{H:function(){return t}}),r.Z=t},32323:function(n,r,e){e(79331),e(93293)},97938:function(n,r,e){var t=e(61744),i=e(79331);r.Z=function(n,r){if(n&&r)try{var e=(0,t.parseUnits)(n,r.decimals).toString();if("0"!==e)return i.ih.fromRawAmount(r,i.QA.BigInt(e))}catch(o){console.debug('Failed to parse input amount: "'.concat(n,'"'),o)}}},90570:function(n,r,e){e.d(r,{Z:function(){return t}});function t(n){var r=n.split(":")[0].toLowerCase();switch(r){case"https":return[n];case"http":return["https".concat(n.substring(4)),n];case"ipfs":var e,t=null===(e=n.match(/^ipfs:(\/\/)?(.*)$/i))||void 0===e?void 0:e[2];return["https://cloudflare-ipfs.com/ipfs/".concat(t,"/"),"https://ipfs.io/ipfs/".concat(t,"/")];case"ipns":var i,o=null===(i=n.match(/^ipns:(\/\/)?(.*)$/i))||void 0===i?void 0:i[2];return["https://cloudflare-ipfs.com/ipns/".concat(o,"/"),"https://ipfs.io/ipns/".concat(o,"/")];default:return[]}}},53854:function(n,r,e){e.d(r,{Bv:function(){return o},pu:function(){return i}});var t=e(79331);function i(n,r){return r&&(null==n?void 0:n.isNative)?t.FX[r]:(null==n?void 0:n.isToken)?n:void 0}
1function o(n){return n.equals(t.FX[n.chainId])?t._r.onChain(n.chainId):n}}}]);
2//# sourceMappingURL=9858-d9a18677810d0a2d.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.