1try{let 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]="6b031b81-876e-4a51-ae37-798e1aa0fcce",e._sentryDebugIdIdentifier="sentry-dbid-6b031b81-876e-4a51-ae37-798e1aa0fcce")}catch(e){}(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[556,4577,6502],{32238:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>eR});var n=r(350979),l=r(814795),i=r(769932),s=r(428089),a=r(796898),o=r(995315),d=r(887019),c=r(605641),p=r(990296),x=r(557423),h=r(672946),u=r(796147),m=r(905470),j=r(266283),g=r(680797),f=r(501823),b=r(25963);let A=(0,g.Ay)(s.Ay).withConfig({componentId:"sc-d7585b-0"})(["width:100%;height:",";background-color:",";border-radius:10px;"],e=>{let{$height:t}=e;return t},e=>{let{theme:t,$backgroundColor:r}=e;return t.colors[r]||r}),y=g.Ay.div.withConfig({componentId:"sc-d7585b-1"})(["width:","%;height:",";background-color:",";border-radius:10px;"],e=>{let{progress:t}=e;return t},e=>{let{$height:t}=e;return t},e=>{let{theme:t,$fillColor:r}=e;return t.colors[r]||r}),w=e=>{let{min:t=0,max:r=100,progress:l=0,backgroundColor:i="background",fillColor:s="primary",height:a="10px",...o}=e,d=(0,b.useMemo)(()=>(l-t)/(r-t)*100,[l,t,r]);return(0,n.jsx)(A,{$backgroundColor:i,$height:a,...o,children:(0,n.jsx)(y,{progress:d,$fillColor:s,$height:a})})};var C=r(456194),S=r(662928);let v=()=>(0,S.I)({queryKey:["burnStats"],queryFn:async()=>{let e=await fetch("https://burn-stats.pancakeswap.com/data.json");if(!e.ok)throw Error("Error while fetching burn statistics");return e.json()}}),k=e=>{if(e>=1e8&&e<=1e9)return 0},I=e=>e.reduce((e,t)=>t.total_supply>e?t.total_supply:e,0);var D=r(807543);let E=e=>{let{children:t,...r}=e;return(0,n.jsx)(D.A,{innerCardProps:{p:"16px"},...r,children:t})},$=e=>{let{children:t,...r}=e;return(0,n.jsx)(c.A,{fontSize:"18px",color:"secondary",bold:!0,...r,children:t})},T=e=>{let{t}=(0,i.A)(),{data:r}=v(),l=(null==r?void 0:r.total_supply)||0,a=(null==r?void 0:r.weekly_burn)||0,o=a/l*100;return(0,n.jsxs)(E,{...e,children:[(0,n.jsx)($,{children:t("Burn (In last 7d)")}),(0,n.jsxs)(j.k0,{mt:"8px",padding:"16px",children:[(0,n.jsxs)(c.A,{fontSize:"18px",bold:!0,children:[(0,C.e)(a,{precision:k(a)})," CAKE"]}),(0,n.jsxs)(c.A,{mt:"16px",color:"textSubtle",small:!0,children:[(0,n.jsxs)(s.Ay,{as:"span",color:"text",style:{fontWeight:600},children:[o.toFixed(2),"%"]})," ",t("of total CAKE supply")]}),(0,n.jsx)(w,{mt:"8px",min:0,max:100,progress:o,backgroundColor:"secondary20",fillColor:"success",height:"8px"}),(0,n.jsxs)(f.A,{mt:"8px",justifyContent:"space-between",children:[(0,n.jsx)(c.A,{color:"textSubtle",fontSize:"12px",children:"0%"}),(0,n.jsx)(c.A,{color:"textSubtle",fontSize:"12px",children:"100%"})]})]})]})};var B=r(838317),N=r(399832),U=r(979332),M=r(821410),z=r(494350),K=r(721745),F=r(406466),_=r(733775);let L=(0,g.I4)(s.Ay).withConfig({componentId:"sc-69eb52bd-0"})(["width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:thin;border:1px solid ",";border-radius:",";&::-webkit-scrollbar{height:8px;}&::-webkit-scrollbar-track{background:",";border-radius:4px;}&::-webkit-scrollbar-thumb{background:",";border-radius:4px;&:hover{background:",";}}"],e=>{let{theme:t}=e;return t.colors.cardBorder},e=>{let{theme:t}=e;return t.radii.card},e=>{let{theme:t}=e;return t.colors.backgroundAlt},e=>{let{theme:t}=e;return t.colors.primary},e=>{let{theme:t}=e;return t.colors.primaryBright}),O=(0,g.I4)(B.A).withConfig({componentId:"sc-69eb52bd-1"})(["width:100%;min-width:800px;background-color:",";padding:8px;border-radius:",";td,th{text-align:left;padding:16px;white-space:nowrap;}th{color:",";font-size:12px;text-transform:uppercase;font-weight:600;}tr{border-bottom:1px solid ",";&:last-child{border-bottom:none;}}"],e=>{let{theme:t}=e;return t.card.background},e=>{let{theme:t}=e;return t.radii.card},e=>{let{theme:t}=e;return t.colors.secondary},e=>{let{theme:t}=e;return t.colors.cardBorder}),R=(0,g.I4)(N.A).attrs({icon:(0,n.jsx)(n.Fragment,{})}).withConfig({componentId:"sc-69eb52bd-2"})([""]),H=g.I4.button.withConfig({componentId:"sc-69eb52bd-3"})(["background:none;border:none;color:",";padding:0 20px;cursor:pointer;display:flex;align-items:center;justify-content:center;&:disabled{cursor:not-allowed;opacity:0.5;}&:hover:not(:disabled){opacity:0.8;}"],e=>{let{theme:t}=e;return t.colors.primary}),W=(0,g.I4)(f.A).withConfig({componentId:"sc-69eb52bd-4"})(["align-items:center;justify-content:center;margin-top:16px;margin-bottom:16px;padding:0 16px;"]),Y=(0,g.I4)(U.A).withConfig({componentId:"sc-69eb52bd-5"})(["border-color:",";"],e=>{let{theme:t}=e;return t.colors.cardBorder}),P=e=>{let{t}=(0,i.A)(),{data:r}=v(),[l,a]=(0,b.useState)(1),o=(0,b.useMemo)(()=>(null==r?void 0:r.burnHistoryTable)||[],[null==r?void 0:r.burnHistoryTable]),d=(0,b.useMemo)(()=>0===o.length?1:Math.ceil(o.length/5),[o.length]),p=(0,b.useMemo)(()=>{let e=(l-1)*5;return o.slice(e,e+5)},[o,l]),x=(0,b.useCallback)(e=>(0,F.m)(new Date(e),{addSuffix:!0}),[]),h=(0,b.useCallback)(()=>{l>1&&a(l-1)},[l]),u=(0,b.useCallback)(()=>{l<d&&a(l+1)},[l,d]);return(0,n.jsxs)(s.Ay,{...e,children:[(0,n.jsx)(L,{children:(0,n.jsxs)(O,{children:[(0,n.jsx)("thead",{children:(0,n.jsxs)("tr",{children:[(0,n.jsx)("th",{children:t("Tx Hash")}),(0,n.jsx)("th",{children:t("Amount")}),(0,n.jsx)("th",{children:t("Timestamp")}),(0,n.jsx)("th",{children:t("From.sender")}),(0,n.jsx)("th",{children:t("To.recipient")}),(0,n.jsx)("th",{children:t("Type")})]})}),(0,n.jsx)("tbody",{children:p.length>0?p.map(e=>(0,n.jsxs)("tr",{children:[(0,n.jsx)("td",{children:(0,n.jsx)(R,{href:(0,_.Bz)(e.txHash,"transaction"),children:(0,n.jsx)(c.A,{color:"primary60",bold:!0,children:(0,K.A)(e.txHash,8,8)})})}),(0,n.jsx)("td",{children:(0,n.jsxs)(c.A,{children:[(0,C.e)(e.amount,{precision:k(e.amount)})," CAKE"]})}),(0,n.jsx)("td",{children:(0,n.jsx)(c.A,{children:x(e.timestamp)})}),(0,n.jsx)("td",{children:(0,n.jsx)(R,{href:(0,_.Bz)(e.from,"address"),children:(0,n.jsx)(c.A,{color:"primary60",bold:!0,children:(0,K.A)(e.from,6,6)})})}),(0,n.jsx)("td",{children:(0,n.jsx)(R,{href:(0,_.Bz)(e.to,"address"),children:(0,n.jsx)(c.A,{color:"primary60",bold:!0,children:(0,K.A)(e.to,6,6)})})}),(0,n.jsx)("td",{children:(0,n.jsx)(Y,{variant:"tertiary",children:e.type})})]},e.txHash)):(0,n.jsx)("tr",{children:(0,n.jsx)("td",{colSpan:6,children:(0,n.jsx)(c.A,{textAlign:"center",children:t("No burn history available")})})})})]})}),o.length>0&&(0,n.jsxs)(W,{children:[(0,n.jsx)(H,{onClick:h,disabled:1===l,"aria-label":t("Previous page"),children:(0,n.jsx)(M.A,{color:1===l?"textDisabled":"primary"})}),(0,n.jsx)(c.A,{children:t("Page %page% of %maxPage%",{page:l,maxPage:d})}),(0,n.jsx)(H,{onClick:u,disabled:l===d,"aria-label":t("Next page"),children:(0,n.jsx)(z.A,{color:l===d?"textDisabled":"primary"})})]})]})};var V=r(525033),Z=r(92292);let J=e=>{let{t}=(0,i.A)(),{data:r}=v(),l=I((null==r?void 0:r.totalSupplyTimeSeries)||[]),a=l-((null==r?void 0:r.total_supply)||0),d=l>0?a/l*100:0;return(0,n.jsxs)(E,{...e,children:[(0,n.jsxs)(o.A,{alignItems:"center",gap:"4px",children:[(0,n.jsx)($,{children:t("Total Deflation (Since peak supply)")}),(0,n.jsx)(V.tm,{text:t("Total Deflation = Peak CAKE Supply - Current CAKE Supply"),placement:"top",children:(0,n.jsx)(Z.A,{color:"textSubtle"})})]}),(0,n.jsxs)(j.k0,{mt:"8px",padding:"16px",children:[(0,n.jsxs)(c.A,{fontSize:"18px",bold:!0,children:[(0,C.e)(a,{precision:k(a)})," CAKE"]}),(0,n.jsxs)(c.A,{mt:"16px",color:"textSubtle",small:!0,children:[(0,n.jsxs)(s.Ay,{as:"span",color:"text",style:{fontWeight:600},children:[d.toFixed(2),"%"]})," ",t("of peak CAKE supply")]}),(0,n.jsx)(w,{mt:"8px",min:0,max:100,progress:d,backgroundColor:"secondary20",fillColor:"success",height:"8px"}),(0,n.jsxs)(f.A,{mt:"8px",justifyContent:"space-between",children:[(0,n.jsx)(c.A,{color:"textSubtle",fontSize:"12px",children:"0%"}),(0,n.jsx)(c.A,{color:"textSubtle",fontSize:"12px",children:"100%"})]})]})]})};var X=r(726889),q=r(300107),G=r.n(q),Q=r(218090),ee=r(632259),et=r(393851),er=r(227432),en=r(580771),el=r(561767);let ei=["#31D0AA","#2882CC","#ED4B9E","#7645D9","#FFB237","#1FC7D4","#02919D"],es=["#1FC7D4","#FFB237","#ED4B9E","#7645D9","#2882CC","#31D0AA","#02919D"],ea=(0,g.Ay)(j.k0).withConfig({componentId:"sc-ff387985-0"})(["padding:8px 16px;"]);var eo=r(227159);let ed={"3m":7776e6,"6m":15552e6,"1y":31536e6},ec=e=>{let{active:t,payload:r,isUSD:l}=e;if(t&&r&&r.length){let e=r.reduce((e,t)=>
1e+(t.value||0),0);return(0,n.jsxs)(ea,{children:[(0,n.jsxs)(o.A,{mb:"8px",justifyContent:"space-between",alignItems:"center",gap:"16px",children:[(0,n.jsx)(c.A,{small:!0,children:new Date(r[0].payload.timestamp).toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"})}),(0,n.jsx)(c.A,{color:"secondary",small:!0,bold:!0,children:l?`$${(0,C.e)(e,{precision:2})}`:(0,C.e)(e,{precision:k(e)})})]}),r.map(e=>(0,n.jsxs)(o.A,{justifyContent:"space-between",gap:"16px",children:[(0,n.jsxs)(o.A,{alignItems:"center",gap:"6px",mb:"4px",children:[(0,n.jsx)(X.A,{color:e.color,width:"8px",mt:"2px"}),(0,n.jsx)(c.A,{small:!0,children:e.name})]},e.name),(0,n.jsx)(c.A,{small:!0,bold:!0,children:e.value&&(l?`$${(0,C.e)(e.value,{precision:k(e.value)})}`:(0,C.e)(e.value,{precision:k(e.value)}))})]},e.name))]})}return null},ep=e=>{let{t}=(0,i.A)(),[r,l]=(0,b.useState)("3m"),[s,a]=(0,b.useState)("CAKE"),{data:d}=v(),{burnTimeSeries:p}=d||{},x=(0,b.useMemo)(()=>p?new Set(p.map(e=>{let{product:t}=e;return t})):new Set,[p]),h=(0,b.useMemo)(()=>{if(!p)return[];let e=Date.now(),t="Max"===r?0:e-(ed[r]||ed["3m"]),n=p.filter(e=>e.timestamp>=t);return Object.entries(G()(n,"timestamp")).map(e=>{let[t,n]=e,l={timestamp:Number(t),timestampFormatted:new Date(Number(t)).toLocaleDateString("en-US",{..."3m"!==r&&{year:"numeric"},month:"short",day:"Max"===r?void 0:"numeric"})};return n.forEach(e=>{let{product:t,burn:r,burnUSD:n}=e;l[t]="USD"===s?n:r}),l})},[p,r,s]),u=(0,b.useCallback)(e=>{l(e)},[]),m=(0,b.useCallback)(e=>{a(e)},[]);return(0,n.jsxs)(E,{...e,children:[(0,n.jsxs)(o.A,{mb:"16px",justifyContent:"space-between",alignItems:"center",flexWrap:"wrap",gap:"8px",children:[(0,n.jsxs)(o.A,{gap:"6px",alignItems:"center",children:[(0,n.jsx)($,{children:t("Weekly Burn")}),(0,n.jsx)(V.tm,{text:t("Weekly breakdown of CAKE burn by product"),placement:"top",children:(0,n.jsx)(Z.A,{color:"textSubtle"})})]}),(0,n.jsxs)(o.A,{gap:"8px",flexWrap:"wrap",children:[(0,n.jsx)(eo.r,{tabs:["CAKE","USD"],defaultTab:"CAKE",onTabChange:m}),(0,n.jsx)(eo.r,{tabs:["3m","6m","1y","Max"],defaultTab:"3m",onTabChange:u})]})]}),(0,n.jsx)(Q.u,{width:"100%",height:360,children:(0,n.jsxs)(ee.E,{data:h,barCategoryGap:"95%",barSize:20,children:[(0,n.jsx)(et.W,{dataKey:"timestampFormatted",fontSize:"12px",tick:{fill:"#9383B4"},tickLine:!1,axisLine:!1}),(0,n.jsx)(er.h,{fontSize:"12px",tick:{fill:"#9383B4"},tickLine:!1,axisLine:!1,tickFormatter:e=>{let t=(0,C.e)(e,{precision:k(e)})||"0";return"USD"===s?`$${t}`:t}}),(0,n.jsx)(en.m,{cursor:{fill:"transparent"},wrapperStyle:{outline:"none"},content:e=>(0,n.jsx)(ec,{...e,isUSD:"USD"===s})}),Array.from(x).map((e,t)=>(0,n.jsx)(el.y,{dataKey:e,fill:ei[t%ei.length],stackId:"stack",radius:0===t?[0,0,4,4]:t===x.size-1?[4,4,0,0]:void 0}))]})}),(0,n.jsx)(j.k0,{mx:"auto",padding:"8px 16px",width:"fit-content",height:"fit-content",children:(0,n.jsx)(o.A,{gap:"16px",flexWrap:"wrap",children:Array.from(x).map((e,t)=>(0,n.jsxs)(o.A,{alignItems:"center",gap:"4px",children:[(0,n.jsx)(X.A,{color:ei[t%ei.length],width:"12px"}),(0,n.jsx)(c.A,{color:"textSubtle",width:"max-content",small:!0,children:e})]},e))})})]})};var ex=r(885334);let eh=e=>{let{t}=(0,i.A)(),{data:r}=v(),l=(0,ex.T)(),s=null==r?void 0:r.deflationTimeSeries,a=(0,b.useMemo)(()=>{if(!s||0===s.length)return 0;let e=new Date(new Date().getFullYear(),0,1).getTime();return s.filter(t=>t.timestamp>=e).reduce((e,t)=>e+t.burn,0)},[s]),d=a*(Number(l)||0);return(0,n.jsxs)(E,{...e,children:[(0,n.jsxs)(o.A,{alignItems:"center",gap:"4px",children:[(0,n.jsx)($,{children:t("YTD Burn")}),(0,n.jsx)(V.tm,{text:t("Year-to-date (YTD) Burn: Absolute total (not the net amount) of CAKE burn since start of the year"),placement:"top",children:(0,n.jsx)(Z.A,{color:"textSubtle"})})]}),(0,n.jsxs)(c.A,{fontSize:"24px",bold:!0,children:[(0,C.e)(a,{precision:k(a)})," CAKE"]}),(0,n.jsxs)(c.A,{fontSize:"14px",color:"textSubtle",children:["~$",(0,C.e)(d,{precision:2})]})]})},eu=e=>{let{t}=(0,i.A)(),{data:r}=v(),l=(null==r?void 0:r.total_supply)||0,s=(0,b.useMemo)(()=>{var e;let t=(null==r?void 0:r.totalSupplyTimeSeries)||[];if(!t||0===t.length)return 0;let n=new Date().getFullYear(),l=new Date(n,0,1).getTime(),i=new Date(n-1,11,24).getTime(),s=t.filter(e=>e.timestamp>=i&&e.timestamp<l);if(s.length>0)return s.sort((e,t)=>
1t.timestamp-e.timestamp)[0].total_supply;let a=new Date(n,0,7).getTime(),o=t.filter(e=>e.timestamp>=l&&e.timestamp<=a);return o.length>0?o.sort((e,t)=>e.timestamp-t.timestamp)[0].total_supply:(null==(e=t[0])?void 0:e.total_supply)||0},[r]),a=(s-l)/s*100;return(0,n.jsxs)(E,{...e,children:[(0,n.jsx)($,{children:(0,n.jsxs)(o.A,{alignItems:"center",gap:"4px",children:[t("YTD Deflation"),(0,n.jsx)(V.tm,{text:t("Year-to-date (YTD) deflation: % decrease in CAKE supply since start of the year"),placement:"top",children:(0,n.jsx)(Z.A,{color:"textSubtle"})})]})}),(0,n.jsxs)(c.A,{fontSize:"24px",bold:!0,children:[a.toFixed(2),"%"]}),(0,n.jsx)(c.A,{fontSize:"14px",color:"textSubtle",children:t("of %amount% CAKE supply",{amount:(0,C.e)(s,{precision:k(s)})})})]})},em=e=>{let{t}=(0,i.A)(),{data:r}=v(),l=(null==r?void 0:r.weekly_mint)||0,s=(null==r?void 0:r.total_supply)||0;return(0,n.jsxs)(E,{...e,children:[(0,n.jsxs)($,{children:[t("Emissions"),"\xa0",(0,n.jsxs)("span",{style:{fontSize:"14px"},children:["(",t("In last 7d"),")"]})]}),(0,n.jsxs)(c.A,{fontSize:"24px",bold:!0,children:[(0,C.e)(l,{precision:k(l)})," CAKE"]}),(0,n.jsx)(c.A,{fontSize:"14px",color:"textSubtle",children:t("%percent%% of total CAKE supply",{percent:(l/s*100).toFixed(2)})})]})},ej={"3m":7776e6,"6m":15552e6,"1y":31536e6},eg=e=>{let{active:t,payload:r,isUSD:l}=e;if(!t||!(null==r?void 0:r.length))return null;let i=r.reduce((e,t)=>e+t.value,0),s=new Date(Number(r[0].payload.timestamp));return(0,n.jsxs)(ea,{children:[(0,n.jsxs)(o.A,{mb:"8px",justifyContent:"space-between",alignItems:"center",gap:"16px",children:[(0,n.jsx)(c.A,{small:!0,children:s.toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"})}),(0,n.jsx)(c.A,{color:"secondary",small:!0,bold:!0,children:l?`$${(0,C.e)(i,{precision:2})}`:(0,C.e)(i,{precision:k(i)})})]}),r.map(e=>(0,n.jsxs)(o.A,{justifyContent:"space-between",gap:"16px",children:[(0,n.jsxs)(o.A,{alignItems:"center",gap:"6px",mb:"4px",children:[(0,n.jsx)(X.A,{color:e.color,width:"8px",mt:"2px"}),(0,n.jsx)(c.A,{small:!0,children:e.name})]}),(0,n.jsx)(c.A,{small:!0,bold:!0,children:l?`$${(0,C.e)(e.value,{precision:2})}`:(0,C.e)(e.value,{precision:k(e.value)})})]},e.name))]})},ef=e=>{let{t}=(0,i.A)(),[r,l]=(0,b.useState)("CAKE"),[s,a]=(0,b.useState)("3m"),{data:d}=v(),p=null==d?void 0:d.mintTimeSeries,x=(0,b.useMemo)(()=>p?[...new Set(p.map(e=>e.product))]:[],[p]),h=(0,b.useCallback)(e=>new Date(e).toLocaleDateString("en-US",{month:"short",day:"Max"===s?void 0:"numeric",..."3m"!==s&&{year:"numeric"}}),[s]),u=(0,b.useMemo)(()=>{if(!p)return[];let e=G()(p,"timestamp"),t=Date.now();return Object.entries(e).filter(e=>{let[r]=e,n=t-Number(r);return"Max"===s||n<=ej[s]}).map(e=>{let[t,n]=e;return{timestamp:t,timestampFormatted:h(Number(t)),...n.reduce((e,t)=>{let n={...e},l="USD"===r?t.mintUSD:t.mint;return n[t.product]=l,n},{})}}).sort((e,t)=>Number(e.timestamp)-Number(t.timestamp))},[p,s,r,h]),m=(0,b.useMemo)(()=>(0,n.jsx)(j.k0,{padding:"8px 16px",width:"fit-content",height:"fit-content",children:(0,n.jsx)(o.A,{flexDirection:["row","row","row","row","column"],gap:"8px",flexWrap:"wrap",children:x.map((e,t)=>(0,n.jsxs)(o.A,{alignItems:"center",gap:"4px",children:[(0,n.jsx)(X.A,{color:es[t%es.length],width:"12px"}),(0,n.jsx)(c.A,{color:"textSubtle",width:"max-content",small:!0,children:e})]},e))})}),[x]);return(0,n.jsxs)(E,{...e,children:[(0,n.jsxs)(o.A,{justifyContent:"space-between",alignItems:"center",gap:"8px",flexWrap:"wrap",children:[(0,n.jsxs)(o.A,{gap:"6px",alignItems:"center",children:[(0,n.jsx)($,{children:t("Weekly Emissions Allocation")}),(0,n.jsx)(V.tm,{text:t("Weekly breakdown of CAKE emissions allocation by product"),placement:"top",children:(0,n.jsx)(Z.A,{color:"textSubtle"})})]}),(0,n.jsxs)(o.A,{gap:"6px",alignItems:"center",flexWrap:"wrap",children:[(0,n.jsx)(eo.r,{tabs:["CAKE","USD"],defaultTab:r,onTabChange:e=>l(e)}),(0,n.jsx)(eo.r,{tabs:["3m","6m","1y","Max"],defaultTab:s,onTabChange:e=>a(e)})]})]}),(0,n.jsxs)(o.A,{mt:"24px",height:"100%",flexWrap:["wrap","wrap","wrap","wrap","nowrap"],children:[(0,n.jsx)(Q.u,{width:"100%",height:"100%",minWidth:100,minHeight:300,children:(0,n.jsxs)(ee.E,{data:u,margin:{top:20,right:30,left:2
10,bottom:5},barSize:20,children:[x.map((e,t)=>(0,n.jsx)(el.y,{dataKey:e,fill:es[t%es.length],stackId:"stack",radius:0===t?[0,0,4,4]:t===x.length-1?[4,4,0,0]:void 0})),(0,n.jsx)(en.m,{content:(0,n.jsx)(eg,{isUSD:"USD"===r}),cursor:{fill:"transparent"},wrapperStyle:{outline:"none"}}),(0,n.jsx)(et.W,{dataKey:"timestampFormatted",fontSize:"12px",tick:{fill:"#9383B4"},tickLine:!1,axisLine:!1}),(0,n.jsx)(er.h,{fontSize:"12px",tick:{fill:"#9383B4"},tickLine:!1,axisLine:!1,tickFormatter:e=>"USD"===r?`$${(0,C.e)(e,{precision:2})}`:(0,C.e)(e,{precision:k(e)})||e})]})}),m]})]})},eb=e=>{let{t}=(0,i.A)(),r=(0,ex.T)(),{data:l}=v(),s=null==l?void 0:l.deflationTimeSeries,a=(0,b.useMemo)(()=>{if(!s||0===s.length)return 0;let e=new Date(new Date().getFullYear(),0,1).getTime();return s.filter(t=>t.timestamp>=e).reduce((e,t)=>e+t.actualMint,0)},[s]),d=a*(Number(r)||0);return(0,n.jsxs)(E,{...e,children:[(0,n.jsxs)(o.A,{alignItems:"center",gap:"4px",children:[(0,n.jsx)($,{children:t("YTD Emissions")}),(0,n.jsx)(V.tm,{text:t("Year-to-date (YTD) Emissions: Absolute total (not the net amount) of CAKE emissions since start of the year"),placement:"top",children:(0,n.jsx)(Z.A,{color:"textSubtle"})})]}),(0,n.jsxs)(c.A,{fontSize:"24px",bold:!0,children:[(0,C.e)(a,{precision:k(a)})," CAKE"]}),(0,n.jsxs)(c.A,{fontSize:"14px",color:"textSubtle",children:["~$",(0,C.e)(d,{precision:2})]})]})};var eA=r(179087),ey=r(530075),ew=r.n(ey),eC=r(984513),eS=r.n(eC),ev=r(261741),ek=r.n(ev),eI=r(486766),eD=r(894928),eE=r(220732);let e$=e=>{let{active:t,payload:r}=e,{t:l}=(0,i.A)();if(t&&r&&r.length&&!r[0].payload.isShadowValue){let e=r[0].payload;return(0,n.jsxs)(ea,{children:[(0,n.jsx)(c.A,{small:!0,children:new Date(e.timestamp).toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"})}),(0,n.jsxs)(o.A,{mt:"8px",flexDirection:"column",gap:"4px",children:[(0,n.jsxs)(o.A,{justifyContent:"space-between",gap:"16px",children:[(0,n.jsxs)(o.A,{alignItems:"center",gap:"6px",children:[(0,n.jsx)(X.A,{color:"#7645D9",width:"8px",mt:"1px"}),(0,n.jsx)(c.A,{small:!0,children:l("Total supply")})]}),(0,n.jsx)(c.A,{small:!0,bold:!0,children:(0,C.e)(e.totalSupply,{precision:k(e.totalSupply)})})]}),(0,n.jsxs)(o.A,{justifyContent:"space-between",gap:"16px",children:[(0,n.jsxs)(o.A,{alignItems:"center",gap:"6px",children:[(0,n.jsx)(X.A,{color:"#02919D",width:"8px",mt:"1px"}),(0,n.jsx)(c.A,{small:!0,children:l("Net Mint")})]}),(0,n.jsxs)(c.A,{small:!0,bold:!0,children:[e.deflation<0?"-":"",(0,C.e)(Math.abs(e.deflation),{precision:k(e.deflation)})]})]})]})]})}return null},eT=e=>{let{t}=(0,i.A)(),{isDark:r}=(0,eA.DP)(),{data:l}=v(),s=(0,b.useMemo)(()=>{let e=ew()(null==l?void 0:l.totalSupplyTimeSeries,"timestamp"),t=ew()(null==l?void 0:l.deflationTimeSeries,"timestamp"),r=eS()(e,t),n=ek()(r).map(e=>({timestamp:e.timestamp,timestampFormatted:new Date(e.timestamp).toLocaleDateString("en-US",{year:"numeric",month:"short"}),totalSupply:e.total_supply,deflation:e.deflation})),i=Math.min(...n.map(e=>e.deflation));return n[0]&&n.unshift({timestamp:n[0].timestamp,timestampFormatted:n[0].timestampFormatted,totalSupply:i,deflation:0,isShadowValue:!0}),n},[l]);return(0,n.jsxs)(E,{...e,children:[(0,n.jsx)(o.A,{mb:"24px",justifyContent:"space-between",flexWrap:"wrap",gap:"8px",children:(0,n.jsx)($,{children:(0,n.jsxs)(o.A,{alignItems:"center",gap:"8px",children:[t("Supply & Net Mint"),(0,n.jsx)(V.tm,{text:t("Weekly net mint added to CAKE supply and the corresponding CAKE supply"),placement:"top",children:(0,n.jsx)(Z.A,{color:"textSubtle"})})]})})}),(0,n.jsx)(Q.u,{width:"100%",height:300,children:(0,n.jsxs)(eI.X,{data:s,children:[(0,n.jsx)(eD.d,{vertical:!1,strokeDasharray:"3 3",stroke:r?"#35363C":"#F6F4FB"}),(0,n.jsx)(el.y,{dataKey:"deflation",fill:"#02919D",barSize:4,radius:[4,4,4,4],yAxisId:"right"}),(0,n.jsx)(eE.N,{type:"monotone",dataKey:"totalSupply",stroke:"#7645D9",strokeWidth:2,dot:!1,yAxisId:"left"}),(0,n.jsx)(en.m,{wrapperStyle:{outline:"none"},content:(0,n.jsx)(e$,{})}
1),(0,n.jsx)(et.W,{dataKey:"timestampFormatted",axisLine:!1,tickLine:!1,fontSize:12,tick:{fill:"#9383B4"}}),(0,n.jsx)(er.h,{yAxisId:"left",orientation:"left",axisLine:!1,tickLine:!1,fontSize:12,tick:{fill:"#9383B4"},tickFormatter:e=>`${e<0?"-":""}${(0,C.e)(Math.abs(e),{precision:k(e)})}`}),(0,n.jsx)(er.h,{yAxisId:"right",orientation:"right",axisLine:!1,tickLine:!1,fontSize:12,tick:{fill:"#9383B4"},tickFormatter:e=>`${e<0?"-":""}${(0,C.e)(Math.abs(e),{precision:k(e)})}`})]})}),(0,n.jsx)(j.k0,{padding:"8px 16px",width:"fit-content",mx:"auto",mt:"4px",children:(0,n.jsxs)(o.A,{alignItems:"center",gap:"16px",flexWrap:"wrap",children:[(0,n.jsxs)(o.A,{alignItems:"center",gap:"4px",children:[(0,n.jsx)(X.A,{color:"#7645D9",width:"12px"}),(0,n.jsx)(c.A,{color:"textSubtle",small:!0,children:t("Total supply")})]}),(0,n.jsxs)(o.A,{alignItems:"center",gap:"4px",children:[(0,n.jsx)(X.A,{color:"#02919D",width:"12px"}),(0,n.jsx)(c.A,{color:"textSubtle",small:!0,children:t("Net Mint")})]})]})})]})};var eB=r(713133),eN=r(766042),eU=r(84025);let eM=(0,g.Ay)(s.Ay).withConfig({componentId:"sc-ed14eff9-0"})(["position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);text-align:center;width:fit-content;"]),ez=(0,g.Ay)(s.Ay).withConfig({componentId:"sc-ed14eff9-1"})(["position:relative;display:flex;align-items:center;justify-content:center;width:100%;height:280px;"]),eK=e=>{let{t}=(0,i.A)(),{data:r}=v(),l=(null==r?void 0:r.total_supply)||0,s=I((null==r?void 0:r.totalSupplyTimeSeries)||[]),a=s-l,d=(0,C.e)(s,{precision:k(s)}),p=(0,C.e)(l,{precision:k(l)}),x=(0,C.e)(a,{precision:k(a)}),h=[{name:"Total CAKE Supply",value:l,formatted:p,color:"#1FC7D4"},{name:"Burned CAKE Supply",value:a,formatted:x,color:"#7645D9"}];return(0,n.jsxs)(E,{...e,children:[(0,n.jsxs)(o.A,{alignItems:"center",gap:"4px",children:[(0,n.jsx)($,{children:t("Total Supply")}),(0,n.jsx)(V.tm,{text:t("Peak Supply: Highest CAKE supply ever recorded"),placement:"top",children:(0,n.jsx)(Z.A,{color:"textSubtle"})})]}),(0,n.jsxs)(ez,{mt:"24px",children:[(0,n.jsxs)(eM,{children:[(0,n.jsx)(c.A,{small:!0,children:t("Total supply")}),(0,n.jsxs)(c.A,{fontSize:"24px",bold:!0,children:[p," CAKE"]}),(0,n.jsxs)(c.A,{fontSize:"14px",color:"secondary",bold:!0,children:[t("Burned")," ",x]}),(0,n.jsxs)(c.A,{fontSize:"12px",color:"textSubtle",children:[t("Peak Supply")," ",d]})]}),(0,n.jsx)(Q.u,{width:"100%",height:280,children:(0,n.jsxs)(eB.r,{width:280,height:280,children:[(0,n.jsx)(eN.F,{data:h,cx:"50%",cy:"50%",startAngle:210,endAngle:-150,cornerRadius:10,innerRadius:85,outerRadius:110,paddingAngle:2,dataKey:"value",children:h.map(e=>(0,n.jsx)(eU.f,{fill:e.color},`cell-${e.name}`))}),(0,n.jsx)(en.m,{wrapperStyle:{outline:"none"},content:(0,n.jsx)(e=>{let{active:t,payload:r}=e;if(t&&r&&r.length){let e=r[0].payload;return(0,n.jsx)(ea,{children:(0,n.jsxs)(o.A,{justifyContent:"space-between",gap:"8px",children:[(0,n.jsxs)(o.A,{alignItems:"center",gap:"4px",children:[(0,n.jsx)(X.A,{color:e.color,width:"12px"}),(0,n.jsx)(c.A,{small:!0,children:e.name})]}),(0,n.jsxs)(c.A,{small:!0,bold:!0,children:[e.formatted," CAKE"]})]})})}return null},{})})]})})]}),(0,n.jsxs)(j.k0,{mt:"auto",padding:"8px 16px",children:[(0,n.jsxs)(o.A,{gap:"8px",alignItems:"center",children:[(0,n.jsx)(X.A,{color:"#1FC7D4",width:"12px"}),(0,n.jsxs)(c.A,{small:!0,children:[t("Total CAKE Supply"),":"]}),(0,n.jsxs)(c.A,{fontSize:"14px",bold:!0,children:[p," CAKE"]})]}),(0,n.jsxs)(o.A,{mt:"8px",gap:"8px",alignItems:"center",children:[(0,n.jsx)(X.A,{color:"#7645D9",width:"12px"}),(0,n.jsxs)(c.A,{small:!0,children:[t("Burned CAKE Supply"),":"]}),(0,n.jsxs)(c.A,{fontSize:"14px",bold:!0,children:[x," CAKE"]})]})]})]})},eF=(0,g.Ay)(j.k0).withConfig({componentId:"sc-f0be7cb5-0"})(["background:",";padding:12px 16px;width:fit-content;"],e=>{let{theme:t}=e;return t.colors.gradientCardHeader}),e_=(0,g.Ay)(s.Ay).withConfig({componentId:"sc-f0be7cb5-1"})(["background:",";border-radius:",";height:100%;"],e=>{let{theme:t}=e;return t.colors.backgroundAlt},e=>{let{theme:t}=e;return t.radii.card}),eL=()=>{let{t:e}=(0,i.A)(),{isMobile:t}=(0,a.A)(),{data:r,isLoading:l,error:g}
1=v(),f=new Date((null==r?void 0:r.timestamp)||0).toLocaleString("en-US",{month:"short",day:"numeric",year:"numeric"});return(0,n.jsxs)("div",{className:"flex flex-col items-center justify-center h-screen",children:[(0,n.jsxs)(o.A,{mt:"24px",gap:"16px",justifyContent:"space-between",alignItems:"center",flexWrap:"wrap",children:[(0,n.jsxs)(o.A,{alignItems:"center",gap:"8px",flexWrap:"wrap",children:[(0,n.jsx)(d.A,{width:t?"40px":"60px",height:t?"40px":"60px"}),(0,n.jsx)(c.A,{fontSize:["32px","32px","56px"],color:"secondary",bold:!0,children:e("Burn Dashboard")})]}),(0,n.jsxs)(o.A,{alignItems:"center",gap:"8px",flexWrap:"wrap",children:[l?(0,n.jsx)(p.Ay,{width:"240px",height:"48px",borderRadius:"default"}):r&&(null==r?void 0:r.timestamp)?(0,n.jsx)(eF,{children:(0,n.jsx)(c.A,{bold:!0,children:e("Last updated on: %lastUpdatedAt%",{lastUpdatedAt:f})})}):null,(0,n.jsx)(m.Y,{to:"https://docs.pancakeswap.finance/governance-and-tokenomics/cake-tokenomics",target:"_blank",children:(0,n.jsx)(x.A,{variant:"subtle",width:"max-content",children:e("Learn More")})})]})]}),g&&!r&&(0,n.jsx)(j.k0,{mt:"16px",padding:"16px",children:(0,n.jsx)(c.A,{children:e("An error occurred while fetching the data. Please try again later.")})}),l?(0,n.jsxs)(s.Ay,{children:[(0,n.jsxs)(h.A,{mt:"24px",gridTemplateColumns:["1fr","1fr","1fr","1fr","1fr","4fr 3fr 2fr"],style:{gap:"24px"},children:[(0,n.jsx)(e_,{children:(0,n.jsx)(p.Ay,{width:"100%",height:"100%",minHeight:"400px",borderRadius:"card"})}),(0,n.jsxs)(u.mm,{gap:"24px",children:[(0,n.jsx)(e_,{children:(0,n.jsx)(p.Ay,{width:"100%",height:"200px",borderRadius:"card"})}),(0,n.jsx)(e_,{children:(0,n.jsx)(p.Ay,{width:"100%",height:"200px",borderRadius:"card"})})]}),(0,n.jsxs)(u.mm,{gap:"24px",children:[(0,n.jsx)(e_,{children:(0,n.jsx)(p.Ay,{width:"100%",height:"200px",borderRadius:"card"})}),(0,n.jsx)(e_,{children:(0,n.jsx)(p.Ay,{width:"100%",height:"200px",borderRadius:"card"})})]})]}),(0,n.jsx)(e_,{mt:"24px",children:(0,n.jsx)(p.Ay,{width:"100%",height:"300px",borderRadius:"card"})}),(0,n.jsx)(e_,{mt:"24px",children:(0,n.jsx)(p.Ay,{width:"100%",height:"300px",borderRadius:"card"})}),(0,n.jsx)(c.A,{mt:"40px",fontSize:"24px",bold:!0,children:e("Real-Time Burn History")}),(0,n.jsx)(e_,{mt:"24px",children:(0,n.jsx)(p.Ay,{width:"100%",height:"200px",borderRadius:"card"})}),(0,n.jsx)(c.A,{mt:"40px",fontSize:"24px",bold:!0,children:e("Emissions")}),(0,n.jsxs)(h.A,{mt:"24px",gridTemplateColumns:["1fr","1fr","1fr","1fr 1fr"],style:{gap:"24px"},children:[(0,n.jsx)(e_,{children:(0,n.jsx)(p.Ay,{width:"100%",height:"150px",borderRadius:"card"})}),(0,n.jsx)(e_,{children:(0,n.jsx)(p.Ay,{width:"100%",height:"150px",borderRadius:"card"})})]}),(0,n.jsx)(e_,{mt:"24px",children:(0,n.jsx)(p.Ay,{width:"100%",height:"300px",borderRadius:"card"})})]}):(0,n.jsxs)(s.Ay,{children:[(0,n.jsxs)(h.A,{mt:"24px",gridTemplateColumns:["1fr","1fr","1fr","1fr","1fr","4fr 3fr 2fr"],style:{gap:"24px"},children:[(0,n.jsx)(eK,{}),(0,n.jsxs)(u.mm,{gap:"24px",children:[(0,n.jsx)(T,{}),(0,n.jsx)(J,{})]}),(0,n.jsxs)(u.mm,{gap:"24px",children:[(0,n.jsx)(eh,{}),(0,n.jsx)(eu,{})]})]}),(0,n.jsx)(eT,{mt:"24px"}),(0,n.jsx)(ep,{mt:"24px"}),(0,n.jsx)(c.A,{mt:"40px",fontSize:"24px",bold:!0,children:e("Real-Time Burn History")}),(0,n.jsx)(P,{mt:"24px"}),(0,n.jsx)(c.A,{mt:"40px",fontSize:"24px",bold:!0,children:e("Emissions")}),(0,n.jsxs)(h.A,{mt:"24px",gridTemplateColumns:["1fr","1fr","1fr","1fr 1fr"],style:{gap:"24px"},children:[(0,n.jsx)(em,{}),(0,n.jsx)(eb,{})]}),(0,n.jsx)(ef,{mt:"24px"})]})]})},eO=()=>(0,n.jsx)(eL,{});eO.Layout=e=>{let{children:t}=e;return(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(l.A,{children:t})})},eO.chains=[];let eR=eO},166351:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(350979);r(25963);var l=r(257057);let i=e=>(0,n.jsx)(l.A,{viewBox:"0 0 18 18",...e,children:(0,n.jsx)("path",{d:"M4.10386 15.4522C3.67286 15.4522 3.30573 15.3006 3.00248 14.9974C2.69923 14.6941 2.54761 14.327 2.54761 13.896V4.10361C2.54761 3.67261 2.69923 3.30549 3.00248 3.00224C3.30573 2.69899 3.67286 2.54736 4.10386 2.54736H13.8962C14.3272 2.54736 14.6944 2.69899 14.9976 3.00224C15.3009 3.30549 15.4525 3.67261 15.4525 4.10361
1H9.45905C8.72692 4.10361 8.10136 4.36311 7.58236 4.88211C7.06336 5.40111 6.80386 6.02668 6.80386 6.7588V11.2498C6.80386 11.9819 7.06336 12.606 7.58236 13.122C8.10136 13.638 8.72692 13.896 9.45905 13.896H15.4525C15.4525 14.3307 15.3009 14.6988 14.9976 15.0002C14.6944 15.3016 14.3272 15.4522 13.8962 15.4522H4.10386ZM9.45905 12.5998C9.0908 12.5998 8.77223 12.4669 8.50336 12.201C8.23448 11.9351 8.10005 11.6181 8.10005 11.2498V6.7588C8.10005 6.39055 8.23448 6.07199 8.50336 5.80311C8.77223 5.53424 9.0908 5.3998 9.45905 5.3998H14.9935C15.3617 5.3998 15.6803 5.53424 15.9492 5.80311C16.218 6.07199 16.3525 6.39055 16.3525 6.7588V11.2498C16.3525 11.6181 16.218 11.9351 15.9492 12.201C15.6803 12.4669 15.3617 12.5998 14.9935 12.5998H9.45905ZM12.15 10.1248C12.4625 10.1248 12.7282 10.0154 12.9469 9.79668C13.1657 9.57793 13.275 9.3123 13.275 8.9998C13.275 8.6873 13.1657 8.42168 12.9469 8.20293C12.7282 7.98418 12.4625 7.8748 12.15 7.8748C11.8375 7.8748 11.5719 7.98418 11.3532 8.20293C11.1344 8.42168 11.025 8.6873 11.025 8.9998C11.025 9.3123 11.1344 9.57793 11.3532 9.79668C11.5719 10.0154 11.8375 10.1248 12.15 10.1248Z",fill:"currentColor"})})},227159:(e,t,r)=>{"use strict";r.d(t,{r:()=>p});var n=r(350979),l=r(769932),i=r(995315),s=r(557423),a=r(25963),o=r(680797);let d=(0,o.Ay)(i.A).attrs({flexWrap:"wrap",gap:"4px"}).withConfig({componentId:"sc-ef4f9161-0"})(["background-color:",";border-radius:",";padding:1px;width:fit-content;box-shadow:",";"],e=>{let{theme:t}=e;return t.colors.input},e=>{let{theme:t}=e;return t.radii.default},e=>{let{theme:t}=e;return t.shadows.inset}),c=(0,o.Ay)(s.A).attrs(e=>{let{$isActive:t,disabled:r}=e;return{scale:"sm",variant:t&&!r?"subtle":"light"}}).withConfig({componentId:"sc-ef4f9161-1"})(["height:32px;font-size:14px;padding:0 12px;",""],e=>{let{disabled:t}=e;return t&&(0,o.AH)(["opacity:0.5;cursor:not-allowed;background-color:transparent;&:hover{opacity:0.5;}"])}),p=e=>{let{tabs:t=["3m","6m","1Y","All"],defaultTab:r="3m",onTabChange:i,...s}=e,{t:o}=(0,l.A)(),[p,x]=(0,a.useState)(r),h=(0,a.useCallback)(e=>{x(e),null==i||i(e)},[i]);return(0,a.useEffect)(()=>{r&&r!==p&&x(r)},[r]),(0,n.jsx)(d,{role:"tablist","aria-label":o("Select a tab"),...s,children:t.map(e=>{var t;let r="object"==typeof e&&"object"==typeof p?e.value===p.value:e===p;return(0,n.jsx)(c,{role:"tab",id:`tab-${JSON.stringify(e)}`,$isActive:r,"aria-selected":r,"aria-controls":`tabpanel-${JSON.stringify(e)}`,onClick:()=>h(e),disabled:!!("object"==typeof e&&e.disabled),children:"string"==typeof e?e:null!=(t=e.label)?t:e.value},JSON.stringify(e))})})}},265449:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(350979);r(25963);var l=r(257057);let i=e=>(0,n.jsx)(l.A,{viewBox:"0 0 24 24",...e,children:(0,n.jsx)("path",{d:"M17.65 6.35C16.02 4.72 13.71 3.78 11.17 4.04C7.50002 4.41 4.48002 7.39 4.07002 11.06C3.52002 15.91 7.27002 20 12 20C15.19 20 17.93 18.13 19.21 15.44C19.53 14.77 19.05 14 18.31 14C17.94 14 17.59 14.2 17.43 14.53C16.3 16.96 13.59 18.5 10.63 17.84C8.41002 17.35 6.62002 15.54 6.15002 13.32C5.31002 9.44 8.26002 6 12 6C13.66 6 15.14 6.69 16.22 7.78L14.71 9.29C14.08 9.92 14.52 11 15.41 11H19C19.55 11 20 10.55 20 10V6.41C20 5.52 18.92 5.07 18.29 5.7L17.65 6.35Z"})})},274584:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(350979);r(25963);var l=r(257057);let i=e=>(0,n.jsx)(l.A,{viewBox:"0 0 24 24",...e,children:(0,n.jsx)("path",{d:"M4.47 20.9999H19.53C21.07 20.9999 22.03 19.3299 21.26 17.9999L13.73 4.98993C12.96 3.65993 11.04 3.65993 10.27 4.98993L2.74 17.9999C1.97 19.3299 2.93 20.9999 4.47 20.9999ZM12 13.9999C11.45 13.9999 11 13.5499 11 12.9999V10.9999C11 10.4499 11.45 9.99993 12 9.99993C12.55 9.99993 13 10.4499 13 10.9999V12.9999C13 13.5499 12.55 13.9999 12 13.9999ZM13 17.9999H11V15.9999H13V17.9999Z"})})},378385:(e,t,r)=>{"use strict";r.d(t,{x4:()=>h,Eg:()=>u,wO:()=>m,ZV:()=>x,zR:()=>d,_c:()=>c,MS:()=>o,cB:()=>p});var n=r(91168),l=r(659918),i=r(63544);function s(e,t){if(!e)return e;if(!t)return e.replace(/\s+$/,"");let r=RegExp(`[${t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}]+$`);return e.replace(r,"")}var a=r(442841);let o=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:18;return e.times((0,i.E)(t))},d=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:18;return e.dividedBy((0,i.E)(t))},c=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:18;return d(e||l.AH,t).toNumber()},p=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:18,r=arguments.length>2?arguments[2]:void 0,n=d(e,t).toFixed(r);return r?s(s(n,"0"),"."):n},x=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:2;
1return e.toLocaleString(void 0,{minimumFractionDigits:t,maximumFractionDigits:r})},h=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:18,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:18,n=e%10n**BigInt(r-t);return(0,a.J)(e-n,r)},u=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:18,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:18;return(+(0,a.J)(e,r)).toFixed(t)},m=(e,t)=>{let r=d(e,t);return r.lt(1e-5)&&r.gt(0)?"< 0.00001":r.toFixed(5,n.A.ROUND_DOWN)}},417460:(e,t,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/burn-dashboard",function(){return r(32238)}])},442841:(e,t,r)=>{"use strict";function n(e,t){let r=e.toString(),n=r.startsWith("-");n&&(r=r.slice(1));let[l,i]=[(r=r.padStart(t,"0")).slice(0,r.length-t),r.slice(r.length-t)];return i=i.replace(/(0+)$/,""),l=l||"0",`${n?"-":""}${l}${i?`.${i}`:""}`}r.d(t,{J:()=>n})},559180:(e,t,r)=>{"use strict";r.d(t,{H9:()=>x,k1:()=>g});var n=r(228876),l=r(311560),i=r(670420),s=r(760013),a=r.n(s),o=r(449229);let d={[n.nU.BSC]:"smartchain",[n.nU.ETHEREUM]:"ethereum",[n.nU.ARBITRUM_ONE]:"arbitrum",[n.nU.ZKSYNC]:"zksync",[n.nU.BASE]:"base",[n.nU.LINEA]:"linea",[n.nU.OPBNB]:"opbnb",[n.nU.MONAD_MAINNET]:"monad",[n.nU.ROBINHOOD]:"robinhood",[n.nU.ARC]:"arc"},c=a()(e=>e&&d[e.chainId]?`https://assets-cdn.trustwallet.com/blockchains/${d[e.chainId]}/assets/${(0,o.b)(e.address)}/logo.png`:null,e=>`${null==e?void 0:e.chainId}#${null==e?void 0:e.address}`),p=a()((e,t)=>e&&t&&d[t]?`https://assets-cdn.trustwallet.com/blockchains/${d[t]}/assets/${(0,o.b)(e)}/logo.png`:null,(e,t)=>`${t}#${e}`),x={[n.nU.BSC]:"",[n.nU.ETHEREUM]:"eth",[n.nU.ARBITRUM_ONE]:"arbitrum",[n.nU.ZKSYNC]:"zksync",[n.nU.LINEA]:"linea",[n.nU.BASE]:"base",[n.nU.OPBNB]:"opbnb",[n.nU.MONAD_MAINNET]:"monad",[n.nU.MONAD_TESTNET]:"monad-testnet",[n.nU.ROBINHOOD]:"robinhood",[n.nU.ARC]:"arc",[n.Cb.SOLANA]:"solana"},h=e=>{let t;if(!Object.keys(x).includes(String(e.chainId)))return null;if(e.chainId===n.Cb.SOLANA)t=e.address;else if(e.chainId===n.nU.ROBINHOOD)t=e.address.toLowerCase();else try{t=(0,o.b)(e.address)}catch{return null}return`https://tokens.pancakeswap.finance/images/${e.chainId===n.nU.BSC?"":`${x[e.chainId]}/`}${t}.png`},u=[i.E8.usdt,i.E8.usdc,i.x_.cake,i.x_.usdv,i.E8.wbtc,i.E8.weth,l.s6[n.nU.BSC],i.x_.busd,i.E8.dai].map(e=>{let{symbol:t}=e;return t}),m=a()(e=>j(null==e?void 0:e.symbol),e=>`logoUrls#${null==e?void 0:e.chainId}#${null==e?void 0:e.symbol}`),j=a()(e=>e&&u.includes(e)?`https://tokens.pancakeswap.finance/images/symbol/${e.toLocaleLowerCase()}.png`:void 0,e=>`logoUrls#symbol#${e}`);a()(function(e){let{useTrustWallet:t=!0}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=c(null==e?void 0:e.wrapped),n=e?h(e.wrapped):null;return[m(e),t?r:void 0,n].filter(e=>!!e)},(e,t)=>{var r;return`logoUrls#${null==e?void 0:e.chainId}#${null==e||null==(r=e.wrapped)?void 0:r.address}#${t?JSON.stringify(t):""}`});let g=a()(function(e){let{useTrustWallet:t=!0}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)return[];let{chainId:r,address:n,symbol:l}=e,i=p(n,r),s=r&&n?h({chainId:r,address:n}):null;return[j(l),t?i:void 0,s].filter(e=>!!e)},(e,t)=>`logoUrls#${null==e?void 0:e.chainId}#${null==e?void 0:e.symbol}#${null==e?void 0:e.address}#${t?JSON.stringify(t):""}`)},568187:(e,t,r)=>{"use strict";function n(e,t){let[r,n="0"]=e.split("."),l=r.startsWith("-");if(l&&(r=r.slice(1)),n=n.replace(/(0+)$/,""),0===t)1===Math.round(Number(`.${n}`))&&(r=`${BigInt(r)+1n}`),n="";else if(n.length>t){let[e,l,i]=[n.slice(0,t-1),n.slice(t-1,t),n.slice(t)],s=Math.round(Number(`${l}.${i}`));(n=s>9?`${BigInt(e)+BigInt(1)}0`.padStart(e.length+1,"0"):`${e}${s}`).length>t&&(n=n.slice(1),r=`${BigInt(r)+1n}`),n=n.slice(0,t)}else n=n.padEnd(t,"0");return BigInt(`${l?"-":""}${r}${n}`)}r.d(t,{X:()=>n})},569387:(e,t,r)=>{"use strict";r.d(t,{x:()=>s});var n=r(228876),l=r(223181),i=r.n(l);function s(e,t){let r=null==e?void 0:e.symbol;return(null==e?void 0:e.chainId)&&t&&(r=`${r} (${i()(n.Qk[e.chainId])})`),r}},726889:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(350979);r(25963);var l=r(257057);let i=e=>
1(0,n.jsx)(l.A,{viewBox:"0 0 8 8",...e,children:(0,n.jsx)("circle",{cx:"4",cy:"4",r:"4"})})}},e=>{e.O(0,[3821,5139,7578,3732,4306,4374,3892,7881,2259,2299,8527,9353,6335,4711,9818,7635,64,8269,6283,636,6593,8792],()=>e(e.s=417460)),_N_E=e.O()}]);
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.