1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="91e80046-d80c-4823-985d-2ccec91690f7",e._sentryDebugIdIdentifier="sentry-dbid-91e80046-d80c-4823-985d-2ccec91690f7")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4331],{5252:(e,t,n)=>{n.d(t,{CO:()=>P,Ee:()=>N,Ey:()=>Y,G:()=>w,L$:()=>v,LR:()=>B,N_:()=>p,Nc:()=>M,Uo:()=>C,XM:()=>_,Yn:()=>O,ZV:()=>E,aJ:()=>b,cm:()=>R,jz:()=>G,mu:()=>H,n2:()=>z,q5:()=>m,r:()=>j,sz:()=>S,wE:()=>A,xG:()=>D});var r=n(93968),l=n(71052),o=n.n(l),i=n(42351),s=n.n(i),a=n(96483),c=n(8779),u=n.n(c),d=n(66121),h=n.n(d),x=n(30034),f=n.n(x);o().extend(s()),o().extend(f());let m=1e-4,g=new r.A(.5),p=86400,j=3600,v=(e,t,n)=>{if(null==e||"0"==e)return"0";try{let l=new r.A(e).dividedBy(Math.pow(10,t)),o=null!=n?n:L(t);return y(l,o)}catch(e){return"0"}},b=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:27,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e||0==e||"0"==e)return"0";try{let l=new r.A(e);return y(l,t,n)}catch(e){return"0"}},y=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],l=Math.max(Math.pow(10,-t),1e-4);if(e.abs().lt(l))return n?"0":"<".concat(l);let o=e.toDecimalPlaces(t,r.A.ROUND_HALF_UP),i=o.toString();return o.abs().gt(100)?u()(i).format("0,0"):u()(i).format("0,0.[0000]")},w=e=>null==e?"â":e>1e6?u()(e).format("$0.00a"):e>1e4?u()(e).format("$0,000a"):A(e),A=(e,t)=>null==e?"-":0==e?"$0":.01>Math.abs(e)?"<$0.01":(100>Math.abs(e)&&null==t&&(t="$0,0.00"),t=null!=t?t:"$0,0",u()(e).format(t)),N=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"0.0%";return 0==e||null==e?u()(0).format("0%"):Math.abs(e)<=m?"<".concat(100*m,"%"):Math.abs(e)>=1?u()(e).format("0%"):Math.abs(e)>=.1?u()(e).format("0%"):u()(e).format(t)},C=e=>{if(null==e||!Number.isFinite(e))return"0.00%";try{let t=new r.A(e).times(100);if(!t.isFinite()||t.abs().lt("0.005"))return"0.00%";return"".concat(t.toFixed(2),"%")}catch(e){return"0.00%"}},M=e=>{if(null==e||!Number.isFinite(e))return"0.00%";try{let t=new r.A(e).times(100);if(!t.isFinite())return"0.00%";if(t.gte(0)&&t.lt(g))return"<0.5%";return"".concat(t.toFixed(2),"%")}catch(e){return"0.00%"}},E=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"0,0[.][0]0";return 1e-6>Math.abs(e)?"0":u()(e).format(t)},S=e=>e>1e6?u()(e).format("0.00a"):e>1e4?u()(e).format("0,000a"):E(e,"0,0"),F=e=>e.replace("k","K").replace("m","M").replace("b","B").replace("t","T"),B=e=>null==e?"-":F(w(e)),O=(e,t)=>{if(null==e||"0"==e)return"0";try{let n=new r.A(e).dividedBy(Math.pow(10,t)).toNumber();return F(S(n))}catch(e){return"0"}},D=(e,t)=>{let n=e.substring(0,6);if(t)return n;let r=e.substring(e.length-4);return"".concat(n,"...").concat(r)},I=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;return k(o().duration(e,"seconds").asHours(),t).toString()},T=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;return k(o().duration(e,"seconds").asDays(),t).toString()},k=(e,t)=>{let n=Math.pow(10,t);return Math.round((e+Number.EPSILON)*n)/n},_=function(e){let t,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",l=!(arguments.length>2)||void 0===arguments[2]||arguments[2];return e>2*p?(t=T(e,0),n=l?h()(" day",Number(t)):" day"):(t=I(e,1),n=l?h()(" hour",Number(t)):" hour"),t+r+n},z=function(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];return o().unix(e).fromNow(t)},Y=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"MMM D, YYYY h:mma";return o().unix(e).format(t)},H=e=>o().unix(e).format("MMM D, YYYY")+" at "+o().unix(e).format("h:mma"),L=e=>e<=8?2:4,P=(e,t)=>(0,a.h)(e,t),R=(e,t)=>e.toLowerCase()===t.toLowerCase(),G=(e,t,n)=>null==e||null==t?"":"".concat(b(e,L(t))," ").concat(n)},13702:(e,t,n)=>{n.d(t,{A:()=>o});var r=n(73380),l=n(72725);n(93256);let o=e=>(0,r.jsx)(l.Divider,{borderColor:"gray.100",opacity:1,...e})},24331:(e,t,n)=>{n.r(t),n.d(t,{default:()=>R});var r=n(73380),l=n(6389),o=n(17677),i=n(51477),s=n(16176),a=n(93256),c=n(87205),u=n(30301),d=n(10499),h=n(72691),x=n(33558),f=n(95930),m=n(13702),g=n(36672),p=n(15735),j=n(65258),v=n(26874),b=n(71520),y=n(74464),w=n(40701),A=n(5252),N=n(54230);let C=function(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1],[n,r]=(0,a.useState)(void 0),l=null!=n?n:t?(0,A.xG)(e):e;return((0,a.useEffect)(()=>{let t=async()=>{let t,n=(0,N.Bm)(1);try{null!=n&&(t=await n.getEnsName({address:e}))}catch(e){console.warn("Error:",e)}null!=t&&r(t)};null!=e&&t()},[e]),null==e)?{hasFriendlyName:!1,ensName:null,friendlyName:null}:{hasFriendlyName:null!=n,ensName:n,friendlyName:l}},M=e=>{let{address:t}=(0,c.F)(),{hasFriendlyName:n,friendlyName:l}=C(t);return(0,r.jsx)(v.A,{fontWeight:"500",...e,children:((e,t,n)=>n?t:null!=e?(0,A.xG)(e):"-")(t,l,n)})};var E=n(60805);let S=e=>{let{logo:t,name:n,size:l,...o}=e;return(0,r.jsx)(E.A,{...o,alt:"".concat(n," logo"),height:l,src:"/images/chains/".concat(t),width:l})};var F=n(39051),B=n(57084),O=n(34700),D=n(13514),I=n(25603);let T=e=>{let{}=e,{chain:t}=(0,c.F)(),n=(0,D.A)(),i=(0,O.w9)(null==t?void 0:t.id),s=null!=i?(0,r.jsx)(S,{logo:null==i?void 0:i.logo,name:null==i?void 0:i.name,size:5}):(0,r.jsx)(B.A,{hasArrow:!0,isOpen:!0,label:"Unsupported chain",children:(0,r.jsx)(o.Box,{pb:"2px",children:(0,r.jsx)(F.vw7,{color:I.A.errorColor,size:20})})});return n?(0,r.jsx)(b.MenuButton,{as:y.Button,backgroundColor:"gray.50",borderRadius:"2xl",p:"2",variant:"ghost",children:(0,r.jsxs)(l.Flex,{alignItems:"center",children:[(0,r.jsx)(o.Box,{mr:"2",children:(0,r.jsx)(w.Center,{children:s})}),(0,r.jsx)(M,{})]})}):(0,r.jsx)(b.MenuButton,{as:y.Button,backgroundColor:"gray.50",borderRadius:"2xl",ml:"4",p:"4",variant:"ghost",children:(0,r.jsxs)(l.Flex,{alignItems:"center",children:[(0,r.jsx)(o.Box,{mr:"2",children:s}),(0,r.jsx)(M,{})]})})};var k=n(49561);let _=e=>{let{children:t,...n}=e;return(0,r.jsx)(k.MenuItem,{_hover:{bg:"gray.50"},_focus:{bg:"gray.50"},...n,children:t})};var z=n(91066),Y=n.n(z);let H=e=>{let{children:t,isLastInList:n=!1,onClick:l,...o}=e;return(0,r.jsx)(_,{borderBottomRadius:n?"lg":"inherit",className:Y().className,fontFamily:Y(),fontSize:"md",fontWeight:"400",onClick:l,px:4,py:3,...o,children:t})};var L=n(3200),P=n(63217);let R=e=>{let t,{}=e,{isConnected:n}
1=(0,c.F)(),{openConnectModal:b}=(0,d.Vx)(),{disconnect:y}=(0,u.u)(),{openChainModal:w}=(0,d.YG)(),{userPreferences:{acceptedTos:A}}=(0,P.A)(),N=(0,D.A)(),{onOpenAcceptTos:C}=(0,a.useContext)(j.w);return n?(0,r.jsx)(o.Box,{position:"relative",children:(0,r.jsxs)(i.Menu,{closeOnSelect:!1,computePositionOnMount:!0,children:[(0,r.jsx)(T,{}),(0,r.jsxs)(s.MenuList,{pt:2,pb:2,border:"0px",borderRadius:"8px",boxShadow:"lg",children:[(0,r.jsx)(v.A,{color:"gray.400",fontSize:"sm",fontWeight:"600",ml:"4",mt:"4",textTransform:"uppercase",children:"Connected"}),(0,r.jsx)(H,{onClick:(t=y,()=>{(0,L.sx)(L.XN.WalletDisconnected,{}),t()}),children:"Disconnect wallet"}),(0,r.jsx)(H,{onClick:w,children:"Switch chains"}),(0,r.jsx)(m.A,{my:"2"}),(0,r.jsx)(v.A,{color:"gray.400",fontSize:"sm",fontWeight:"600",ml:"4",mt:"4",textTransform:"uppercase",children:"Admin"}),(0,r.jsx)(p.A,{href:f.oI,isExternal:!0,children:(0,r.jsx)(H,{children:"Documentation"})})]})]})}):(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(l.Flex,{align:"center",children:(0,r.jsx)(h.A,{appButtonType:x.VQ.Secondary,px:"5",onClick:A?b:C,children:(0,r.jsxs)(l.Flex,{children:[(0,r.jsx)(o.Box,{mr:2,position:"relative",top:"4px",children:(0,r.jsx)(g.A,{dotColor:I.A.accentColor,dotWidth:10})}),(0,r.jsx)(v.A,{as:"span",children:N?"Connect":"Connect Wallet"})]})})})})}},26874:(e,t,n)=>{n.d(t,{A:()=>u,R:()=>a});var r=n(73380),l=n(10075),o=n(93256),i=n(91066),s=n.n(i);let a=e=>{if("lg"===e.fontSize)return{lineHeight:"150%",letterSpacing:"-0.015em"};if("md"===e.fontSize)return{lineHeight:"150%"};if("sm"===e.fontSize)return{lineHeight:"130%",letterSpacing:"-0.01em"};if("xs"===e.fontSize)return{lineHeight:"130%"};if(600===e.fontWeight)return{lineHeight:"130%",letterSpacing:"-0.015em"};else return{lineHeight:"140%",letterSpacing:"-0.015em"}},c=o.forwardRef((e,t)=>{let{children:n,...o}=e;return(0,r.jsx)(l.Text,{className:s().className,...a(o),...o,...t,children:n})});c.displayName="Text";let u=c},36672:(e,t,n)=>{n.d(t,{A:()=>o});var r=n(73380),l=n(17677);n(93256);let o=e=>{let{dotColor:t,innerColor:n,dotWidth:o=9,...i}=e,s=Number(o)/2;return(0,r.jsx)(l.Box,{...i,children:(0,r.jsxs)("svg",{width:o,height:o,children:[(0,r.jsx)("circle",{r:"".concat(s,"px"),cx:"".concat(s,"px"),cy:"".concat(s,"px"),fill:t}),(0,r.jsx)("circle",{r:"".concat(s-1.5,"px"),cx:"".concat(s,"px"),cy:"".concat(s,"px"),fill:null!=n?n:t})]})})}},57084:(e,t,n)=>{n.d(t,{A:()=>s});var r=n(73380),l=n(81148);n(93256);var o=n(91066),i=n.n(o);let s=e=>{let{children:t,...n}=e;return(0,r.jsx)(l.Tooltip,{borderRadius:"xl",className:i().className,px:"4",py:"3",...n,children:t})}},60805:(e,t,n)=>{n.d(t,{A:()=>o});var r=n(73380);n(93256);var l=n(17040);let o=e=>{let{alt:t,height:n,src:o,width:i,...s}=e;return(0,r.jsx)(l.default,{alt:t,height:4*n,src:o,width:4*i,...s})}},63217:(e,t,n)=>{n.d(t,{A:()=>i,m:()=>o});let r=(0,n(13319).A)("userPreferences"),l={acceptedTos:!1,dismissedHeaderBannerIds:[],informedUsersForPayoutListIds:[]},o=(e,t,n,r)=>()=>{e({...n,[t]:!r})},i=()=>{let[e,t]=r(l);return Object.keys(l).forEach(n=>{null==e[n]&&t({...e,[n]:l[n]})}),{userPreferences:e,setUserPreferences:t}}},65258:(e,t,n)=>{n.d(t,{B:()=>s,w:()=>i});var r=n(73380),l=n(93256),o=n(94890);let i=(0,l.createContext)({acceptTosIsOpen:!1,gasEstimateErrorIsOpen:!1,onCloseAcceptTos:()=>null,onCloseGasEstimateError:()=>null,onOpenAcceptTos:()=>null,onOpenGasEstimateError:void 0}),s=e=>{let{children:t}=e,{isOpen:n,onClose:l,onOpen:s}=(0,o.useDisclosure)(),{isOpen:c,onClose:u,onOpen:d}=(0,o.useDisclosure)();return(0,r.jsx)(i.Provider,{value:{acceptTosIsOpen:c,gasEstimateErrorIsOpen:n,onCloseAcceptTos:u,onCloseGasEstimateError:l,onOpenAcceptTos:d,onOpenGasEstimateError:a(s)},children:t})},a=e=>t=>{var n;let r=null==t||null==(n=t.message)?void 0:n.toLowerCase();null==r||r.includes("user rejected")||e()}}}]);
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.