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]="d371db3c-0c2a-46d1-9194-4d8dec9be03e",e._sentryDebugIdIdentifier="sentry-dbid-d371db3c-0c2a-46d1-9194-4d8dec9be03e")}catch(e){}"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6335],{10031:(e,t,r)=>{r.d(t,{A:()=>l});var i=r(350979);r(25963);var n=r(257057);let l=e=>(0,i.jsxs)(n.A,{viewBox:"0 0 15 15",...e,children:[(0,i.jsx)("path",{d:"M8.34588 13.6273C8.0575 13.8656 7.63823 13.7399 7.49172 13.3958L6.78828 11.7438C7.73587 11.3939 8.62311 10.9234 9.44396 10.3744C9.44396 10.3744 9.66966 11.6436 9.38982 12.3723C9.20938 12.8421 8.73469 13.3061 8.34588 13.6273ZM3.25141 8.2087L1.60451 7.50815C1.25825 7.36086 1.1335 6.93831 1.37577 6.6505C1.69974 6.26564 2.16489 5.79794 2.63298 5.61886C3.35861 5.34125 4.62149 5.55437 4.62149 5.55437C4.07225 6.3748 3.60147 7.26158 3.25141 8.2087ZM12.8903 2.10977C12.8903 2.10977 9.90266 0.830267 6.4865 4.2453C5.1647 5.56643 4.37403 7.02028 3.861 8.29315C3.69201 8.7456 3.80668 9.24027 4.13864 9.57809L5.42423 10.857C5.75619 11.1948 6.25111 11.3034 6.70378 11.1345C8.22388 10.5552 9.6041 9.66087 10.7537 8.51033C14.1699 5.09589 12.8903 2.10977 12.8903 2.10977ZM8.62311 6.3748C8.15233 5.90426 8.15233 5.13812 8.62311 4.66758C9.09389 4.19704 9.86042 4.19704 10.3312 4.66758C10.7959 5.13812 10.802 5.90426 10.3312 6.3748C9.86042 6.84534 9.09389 6.84534 8.62311 6.3748Z"}),(0,i.jsx)("path",{d:"M3.77609 10.3019C3.54971 10.0756 3.23604 9.92849 2.92949 10.0208C2.22706 10.2322 1.71542 10.8838 1.71542 11.6548L1.71542 13.361H3.42253C4.19392 13.361 4.84581 12.8496 5.05736 12.1476C5.14968 11.8412 5.00246 11.5277 4.77608 11.3014L3.77609 10.3019Z"})]})},48902:(e,t,r)=>{r.d(t,{e:()=>o,m:()=>d});var i=r(432222),n=r(680797),l=r(913688),s=r(59678),a=r(428089);let o=n.I4.div.withConfig({shouldForwardProp:i.Ay}).withConfig({componentId:"sc-a4a8b395-0"})(["background:",";border-radius:",";color:",";overflow:hidden;position:relative;"," padding:1px 1px 3px 1px;",""],e=>{let{isActive:t,isSuccess:r,isWarning:i,borderBackground:n,theme:l}=e;return n||(i?l.colors.warning:r?l.colors.success:t?`linear-gradient(180deg, ${l.colors.primaryBright}, ${l.colors.secondary})`:l.colors.cardBorder)},e=>{let{theme:t}=e;return t.radii.card},e=>{let{theme:t,isDisabled:r}=e;return t.colors[r?"textDisabled":"text"]},e=>{let{isActive:t}=e;return t&&(0,n.AH)(["animation:"," 3s ease infinite;background-size:400% 400%;"],s.fd)},l.xe),d=(0,n.I4)(a.Ay).withConfig({componentId:"sc-a4a8b395-1"})(["width:100%;height:100%;overflow:",";background:",";border-radius:",";"],e=>{let{hasCustomBorder:t}=e;return t?"initial":"inherit"},e=>{let{theme:t,background:r}=e;return null!=r?r:t.card.background},e=>{let{theme:t}=e;return t.radii.card});o.defaultProps={isActive:!1,isSuccess:!1,isWarning:!1,isDisabled:!1}},71307:(e,t,r)=>{r.d(t,{A:()=>l});var i=r(350979);r(25963);var n=r(257057);let l=e=>(0,i.jsx)(n.A,{viewBox:"0 0 24 24",...e,children:(0,i.jsx)("path",{d:"M15.0701 1.01H9.07007V3.01H15.0701V1.01ZM11.0701 14.01H13.0701V8.01H11.0701V14.01ZM19.1001 7.39L20.5201 5.97C20.0901 5.46 19.6201 4.98 19.1101 4.56L17.6901 5.98C16.1401 4.74 14.1901 4 12.0701 4C7.10007 4 3.07007 8.03 3.07007 13C3.07007 17.97 7.09007 22 12.0701 22C17.0501 22 21.0701 17.97 21.0701 13C21.0701 10.89 20.3301 8.94 19.1001 7.39ZM12.0701 20.01C8.20007 20.01 5.07007 16.88 5.07007 13.01C5.07007 9.14 8.20007 6.01 12.0701 6.01C15.9401 6.01 19.0701 9.14 19.0701 13.01C19.0701 16.88 15.9401 20.01 12.0701 20.01Z"})})},76273:(e,t,r)=>{r.d(t,{A:()=>l});var i=r(350979);r(25963);var n=r(257057);let l=e=>(0,i.jsx)(n.A,{viewBox:"0 0 40 40",...e,children:(0,i.jsx)("path",{fill:"#F1BA0D",d:"M14.2487 9.59637L10.7888 7.58546L20.1999 2.08337L29.6387 7.58546L26.1787 9.59637L20.1999 6.13313L14.2487 9.59637ZM32.1022 13.0596V17.1094L35.5622 15.0985V11.0487L32.1022 9.00986L28.6422 11.0208L32.1022 13.0596ZM16.7399 11.0487L20.1999 13.0596L23.6599 11.0487L20.1999 9.00986L16.7399 11.0487ZM29.6387 14.5119L26.1787 12.501L20.1999 15.9643L14.2487 12.501L10.7888 14.5119V18.5617L16.7399 22.0249V28.9514L20.1999 30.9623L23.6599 28.9514V22.0249L29.6387 18.5617V14.5119ZM32.1022 26.9405L26.1511 30.4038V34.4535L35.5899 28.9514V17.9752L32.1022 20.014V26.9405ZM26.1511 27.527L29.611 25.5161V21.4384L26.1511 23.4493V27.527ZM16.7399 31.8561V35.9058L20.1999 37.9168L23.6599 35.9058V31.8561L20.1999 33.867L16.7399 31.8561ZM4.80992 15.0985L8.2699 17.1094V13.0596L11.7299 11.0487L8.29758 9.00986L4.8376 11.0208V15.0985H4.80992ZM8.29758 20.014L4.8376 18.0031V28.9794L14.2764 34.4814V30.4317L8.29758 26.9405V20.014ZM14.2487 23.4773L10.7888 21.4664V25.5161L14.2487 27.527V23.4773Z"})})},107600:(e,t,r)=>{r.d(t,{Ay:()=>w,Cc:()=>j,Cj:()=>m,NT:()=>u,Tv:()=>f,ju:()=>L,w$:()=>g});var i=r(350979),n=r(769932),l=r(25963),s=r(680797),a=r(428089),o=r
1(501823),d=r(28192),c=r(727353),x=r(127243),p=r(360839),C=r(605641),h=r(446271);let u=1e6,g=1e12,m=(0,s.I4)(a.Ay).withConfig({componentId:"sc-b837f6f3-0"})(["background:linear-gradient(180deg,#53dee9,#7645d9);padding:1px;width:100%;border-radius:",";"],e=>{let{theme:t}=e;return t.radii.default}),f=(0,s.I4)(a.Ay).withConfig({componentId:"sc-b837f6f3-1"})(["min-height:120px;padding:24px;border-radius:",";background:",";"],e=>{let{theme:t}=e;return t.radii.default},e=>{let{theme:t}=e;return t.colors.gradientBubblegum}),A=(0,s.I4)(a.Ay).withConfig({componentId:"sc-b837f6f3-2"})(['position:relative;& > input{padding-left:28px;max-width:70%;}&:before{position:absolute;content:"$";color:',";left:16px;top:8px;}"],e=>{let{theme:t}=e;return t.colors.textSubtle}),j=(0,s.I4)(o.A).withConfig({componentId:"sc-b837f6f3-3"})(["max-width:82%;margin-right:8px;"]),L=(0,s.I4)(C.A).withConfig({componentId:"sc-b837f6f3-4"})(["position:relative;overflow-x:auto;&::-webkit-scrollbar{height:0px;}",""],e=>{let{fadeOut:t,theme:r}=e;return t&&` 2 &:after { 3 background: linear-gradient( 4 to right, 5 ${r.colors.background}00, 6 ${r.colors.background}E6 7 ); 8 content: ''; 9 height: 100%; 10 pointer-events: none; 11 position: absolute; 12 right: 0; 13 top: 0; 14 width: 40px; 15 } 16 `}),w=e=>{let{calculatorState:t,setTargetRoi:r,setCalculatorMode:s}=e,[a,w]=(0,l.useState)(""),v=(0,l.useRef)(null),{roiUSD:y,roiPercentage:b}=t.data,{mode:M}=t.controls,{t:V}=(0,n.A)();(0,l.useEffect)(()=>{M===h.Or.PRINCIPAL_BASED_ON_ROI&&v.current&&v.current.focus()},[M]);let S=()=>{s&&s(h.Or.PRINCIPAL_BASED_ON_ROI),w(y.toLocaleString("en",{minimumFractionDigits:y>u?0:2,maximumFractionDigits:y>u?0:2}))};return(0,i.jsx)(m,{children:(0,i.jsxs)(f,{children:[(0,i.jsx)(C.A,{fontSize:"12px",color:"secondary",bold:!0,textTransform:"uppercase",children:V("ROI at current rates")}
16),(0,i.jsx)(o.A,{justifyContent:"space-between",mt:"4px",height:"36px",children:M===h.Or.PRINCIPAL_BASED_ON_ROI?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(A,{children:(0,i.jsx)(c.A,{ref:v,type:"text",inputMode:"decimal",pattern:"^[0-9]+[.,]?[0-9]*$",scale:"sm",value:a,placeholder:"0.0",onChange:e=>{if(e.currentTarget.validity.valid){let t=e.target.value.replace(/,/g,".");r&&r(t),w(t)}}})}),(0,i.jsx)(d.A,{scale:"sm",variant:"text",onClick:()=>{s&&s(h.Or.ROI_BASED_ON_PRINCIPAL)},children:(0,i.jsx)(x.A,{color:"primary"})})]}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(j,{onClick:S,children:[(0,i.jsx)(C.A,{fontSize:"24px",bold:!0,children:"$"}),(0,i.jsx)(L,{fontSize:"24px",bold:!0,fadeOut:y>g,children:y.toLocaleString("en",{minimumFractionDigits:y>u?0:2,maximumFractionDigits:y>u?0:2})})]}),r&&s?(0,i.jsx)(d.A,{scale:"sm",variant:"text",onClick:S,children:(0,i.jsx)(p.A,{color:"primary"})}):null]})}),(0,i.jsx)(C.A,{fontSize:"12px",color:"textSubtle",children:(0,i.jsx)(C.A,{fontSize:"12px",color:"textSubtle",ml:"3px",display:"inline-block",maxWidth:"100%",style:{lineBreak:"anywhere"},children:`${b.toLocaleString("en",{minimumFractionDigits:2,maximumFractionDigits:2})}%`})})]})})}},127243:(e,t,r)=>{r.d(t,{A:()=>l});var i=r(350979);r(25963);var n=r(257057);let l=e=>(0,i.jsx)(n.A,{viewBox:"0 0 24 24",...e,children:(0,i.jsx)("path",{d:"M9.00012 16.2L5.50012 12.7C5.11012 12.31 4.49012 12.31 4.10012 12.7C3.71012 13.09 3.71012 13.71 4.10012 14.1L8.29012 18.29C8.68012 18.68 9.31012 18.68 9.70012 18.29L20.3001 7.70001C20.6901 7.31001 20.6901 6.69001 20.3001 6.30001C19.9101 5.91001 19.2901 5.91001 18.9001 6.30001L9.00012 16.2Z"})})},178714:(e,t,r)=>{r.d(t,{A:()=>l});var i=r(350979);r(25963);var n=r(257057);let l=e=>(0,i.jsxs)(n.A,{width:14,height:14,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[(0,i.jsx)("path",{d:"M5.75618 0.975363L0.639582 3.93065C0.445059 4.04295 0.283523 4.2045 0.17125 4.39905C0.0589767 4.59359 -7.94044e-05 4.81426 8.01286e-08 5.03888L0.00320378 10.9559C0.00334742 11.1802 0.062449 11.4005 0.174588 11.5947C0.286727 11.7889 0.447956 11.9503 0.642112 12.0625L5.76469 15.0238C5.95914 15.136 6.1797 15.1951 6.40424 15.1951C6.62878 15.1951 6.84937 15.136 7.04382 15.0238L12.1604 12.0694C12.355 11.957 12.5165 11.7955 12.6288 11.601C12.741 11.4064 12.8001 11.1857 12.8 10.9611L12.7968 5.04406C12.7967 4.81981 12.7375 4.59954 12.6254 4.40534C12.5132 4.21114 12.352 4.04983 12.1579 3.93759L7.03534 0.976245C6.84089 0.863976 6.6203 0.804871 6.39576 0.804871C6.17122 0.804871 5.95063 0.863976 5.75618 0.976245V0.975363Z",fill:"white"}),(0,i.jsx)("path",{d:"M4.06716 13.024C4.07505 12.9854 4.0923 12.9494 4.11742 12.9191C5.64799 10.322 7.17885 7.72496 8.70993 5.12806C8.73121 5.092 8.75094 5.05495 8.76903 5.02264C8.75557 4.99915 8.74025 5.004 8.72724 5.004C8.07311 5.00632 7.41897 5.01051 6.7644 5.00974C6.73643 5.00924 6.70898 5.01732 6.68573 5.0329C6.66249 5.04847 6.64457 5.07079 6.63439 5.09686C6.14097 5.91287 5.64689 6.72865 5.15222 7.54422C4.10427 9.27321 3.05621 11.0022 2.00804 12.7311C1.99878 12.7464 1.98907 12.7614 1.9808 12.7772C1.96227 12.8129 1.94122 12.8185 1.90361 12.7967C1.74096 12.7006 1.57655 12.6077 1.40376 12.5083L6.06826 5.02727C6.05822 4.99683 6.03759 5.00445 6.02171 5.0039C5.77172 4.9964 5.52165 4.98559 5.27188 4.98339C4.921 4.97299 4.57132 5.02934 4.24148 5.14945C3.94109 5.26069 3.68581 5.46795 3.51523 5.73908C2.66298 7.06836 1.8075 8.3956 0.948779 9.72077C0.935325 9.74172 0.920998 9.76223 0.907104 9.78296C0.857922 9.78296 0.865185 9.74238 0.860664 9.71404C0.856312 9.67136 0.855299 9.62841 0.857594 9.58558C0.857594 8.11984 0.862665 6.65411 0.853072 5.18849C0.845369 5.0622 0.875722 4.93651 0.940244 4.82767C1.00477 4.71884 1.10049 4.63187 1.21498 4.57803C2.34207 3.93547 3.46187 3.27969 4.58532 2.63063C5.08673 2.34095 5.58968 2.05402 6.08745 1.75827C6.18108 1.69545 6.29127 1.6619 6.40403 1.6619C6.51678 1.6619 6.62699 1.69545 6.72063 1.75827C7.63588 2.2954 8.55928 2.82007 9.47928 3.3496C10.1732 3.74915 10.8674 4.148 11.562 4.54616C11.6117 4.5745 11.6601 4.60482 11.7101 4.63272C11.7913 4.67588 11.8585 4.74139 11.9036 4.82151C11.9488 4.90162 11.9701 4.993 11.965 5.08484C11.9663 6.67922 11.9663 8.2736 11.965 9.86798C11.9683 9.9072 11.964 9.94669 11.9524 9.98431C11.8973 10.0376 11.8774 9.97781 11.8573 9.94947C11.7746 9.83313 11.7004 9.71062 11.6235 9.59021C11.0081 8.6268 10.3905 7.66468 9.77095 6.70385C9.56275 6.3791 9.35192 6.05567 9.14593 5.72959C9.09785 5.6535 9.08915 5.6524 9.04107 5.73412C8.73025 6.26004 8.41962 6.78607 8.10917 7.31221C8.09214 7.34146 8.08479 7.37535 8.0882 7.40902C8.09161 7.4427 8.10558 7.47443 8.12812 7.49967C8.3841 7.91268 8.63959 8.32598 8.89462 8.73957L10.2021 10.8546C10.3786 11.1404 10.5553 11.426 10.7323 11.7113C10.7652 11.7495 10.783
166 11.798 10.7846 11.8485C10.7492 11.9188 10.6754 11.9386 10.614 11.9705C10.5132 12.0433 10.4024 12.1012 10.285 12.1422C10.2218 12.1265 10.1994 12.0693 10.1694 12.0226C9.76456 11.3912 9.36494 10.7565 8.96278 10.1236C8.54915 9.47298 8.13751 8.81995 7.72212 8.17001C7.66886 8.08665 7.66035 8.0861 7.61028 8.17001C7.24892 8.77794 6.89253 9.38874 6.53029 9.99601C6.51177 10.0245 6.50265 10.058 6.50425 10.0919C6.50586 10.1259 6.5181 10.1584 6.53923 10.185C7.02718 10.9371 7.50388 11.6957 7.98665 12.4515C8.12129 12.6622 8.25692 12.872 8.38913 13.0842C8.41494 13.1254 8.45023 13.1665 8.42685 13.2223C8.30011 13.3209 8.16336 13.4059 8.01885 13.476C7.56791 13.7383 7.11676 14.0003 6.66538 14.262C6.59308 14.3087 6.50882 14.3335 6.42276 14.3335C6.3367 14.3335 6.25247 14.3087 6.18017 14.262C5.51531 13.8774 4.84924 13.4944 4.18195 13.1133C4.13598 13.095 4.09616 13.064 4.06716 13.024Z",fill:"#2D374B"}),(0,i.jsx)("path",{d:"M11.9336 9.99962C11.9349 10.3137 11.9419 10.6282 11.9348 10.9418C11.9368 11.0153 11.9183 11.0878 11.8816 11.1515C11.8448 11.2151 11.7912 11.2674 11.7265 11.3024C11.4103 11.4815 11.0997 11.6707 10.7806 11.8449C10.6537 11.6133 10.5071 11.3928 10.3684 11.1678C9.64796 10.0001 8.92673 8.8331 8.20467 7.66672C8.16144 7.5968 8.12183 7.52425 8.07354 7.45819C8.05782 7.43924 8.04922 7.41539 8.04922 7.39076C8.04922 7.36614 8.05782 7.34228 8.07354 7.32333C8.24589 7.03508 8.4154 6.74518 8.58599 6.45571L9.05949 5.65249C9.0679 5.6334 9.08266 5.6178 9.10128 5.60838C9.18365 5.73531 9.26668 5.86333 9.3496 5.99147C9.84774 6.76704 10.3458 7.54263 10.8437 8.3182C11.1813 8.84442 11.519 9.37068 11.8565 9.89697C11.8751 9.93602 11.9013 9.97094 11.9336 9.99962Z",fill:"white"}),(0,i.jsx)("path",{opacity:"0.8",d:"M10.0615 14.1952L13.1589 18.9581L16.0201 17.3335L11.9523 11.0518L10.0615 14.1952Z"}),(0,i.jsx)("path",{d:"M10.2834 12.1329C10.0777 12.2679 9.85962 12.3827 9.64768 12.5079C9.26338 12.7338 8.87666 12.9556 8.49104 13.179C8.46898 13.1914 8.44693 13.2031 8.42564 13.2152C8.42076 13.1795 8.40542 13.1461 8.38154 13.1191C8.03816 12.5794 7.69473 12.0399 7.35127 11.5004C7.06905 11.0574 6.786 10.6149 6.50216 10.1728C6.48294 10.1498 6.4718 10.1212 6.47045 10.0913C6.46909 10.0614 6.47761 10.0319 6.49468 10.0073C6.87408 9.36836 7.25192 8.72842 7.62816 8.08752C7.6371 8.07274 7.64426 8.05554 7.66642 8.0508C7.6973 8.05774 7.70479 8.08862 7.71946 8.11167C8.40314 9.18858 9.08684 10.2656 9.77052 11.3426C9.91597 11.5719 10.0608 11.8017 10.2071 12.0305C10.2257 12.0692 10.2515 12.1041 10.2832 12.1332L10.2834 12.1329Z",fill:"white"})]})},188480:(e,t,r)=>{r.d(t,{A:()=>l});var i=r(350979);r(25963);var n=r(257057);let l=e=>(0,i.jsxs)(n.A,{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[(0,i.jsxs)("g",{clipPath:"url(#clip0_1401_32485)",children:[(0,i.jsx)("path",{d:"M8 16C12.4183 16 16 12.4183 16 8C16 3.58172 12.4183 0 8 0C3.58172 0 0 3.58172 0 8C0 12.4183 3.58172 16 8 16Z",fill:"black"}),(0,i.jsx)("path",{d:"M10.7653 11.6562L14.4375 7.98472L10.7653 4.3125V7.06681L7.09375 9.82047H10.7653V11.6562Z",fill:"white"}),(0,i.jsx)("path",{d:"M5.23472 4.3125L1.5625 7.98472L5.23472 11.6562V8.90259L8.90625 6.14894H5.23472V4.3125Z",fill:"white"})]}),(0,i.jsx)("defs",{children:(0,i.jsx)("clipPath",{id:"clip0_1401_32485",children:(0,i.jsx)("rect",{width:"16",height:"16",fill:"white"})})})]})},202463:(e,t,r)=>{r.d(t,{A:()=>l});var i=r(350979);r(25963);var n=r(257057);let l=e=>(0,i.jsxs)(n.A,{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[(0,i.jsx)("path",{fill:"white",fillRule:"evenodd",clipRule:"evenodd",d:"M10 16.25C13.4518 16.25 16.25 13.4518 16.25 10C16.25 6.54822 13.4518 3.75 10 3.75C6.54822 3.75 3.75 6.54822 3.75 10C3.75 13.4518 6.54822 16.25 10 16.25ZM10 20C15.5228 20 20 15.5228 20 10C20 4.47715 15.5228 0 10 0C4.47715 0 0 4.47715 0 10C0 15.5228 4.47715 20 10 20Z"}),(0,i.jsx)("path",{fill:"white",fillRule:"evenodd",clipRule:"evenodd",d:"M11.875 10.625H0V9.375H11.875V10.625Z"})]})},208553:(e,t,r)=>{r.d(t,{A:()=>a});var i=r(350979),n=r(25963),l=r(270361),s=r(605641);let a=e=>{let{value:t,color:r="text",decimals:a=3,isDisabled:o=!1,unit:d,prefix:c,onClick:x,str
16ikeThrough:p,startFromValue:C=!1,...h}=e,u=(0,n.useMemo)(()=>c?{prefix:c}:{},[c]),g=(0,n.useMemo)(()=>d?{suffix:d}:{},[d]),m=(0,n.useMemo)(()=>t%1!=0,[t]);return(0,i.jsx)(l.Ay,{start:C?t:0,preserveValue:!0,delay:0,end:t,...u,...g,decimals:m?a:0,duration:1,separator:",",children:e=>{let{countUpRef:t}=e;return(0,i.jsx)(s.A,{color:o?"textDisabled":r,style:p?{textDecoration:"line-through"}:void 0,onClick:x,...h,children:(0,i.jsx)("span",{ref:t})})}})}},217784:(e,t,r)=>{r.d(t,{A:()=>l});var i=r(350979);r(25963);var n=r(257057);let l=e=>(0,i.jsx)(n.A,{viewBox:"0 0 24 24",...e,children:(0,i.jsx)("path",{d:"M2 21.8966H12C12.55 21.8966 13 22.3466 13 22.8966C13 23.4466 12.55 23.8966 12 23.8966H2C1.45 23.8966 1 23.4466 1 22.8966C1 22.3466 1.45 21.8966 2 21.8966ZM5.24 8.96661L8.07 6.13661L20.8 18.8666C21.58 19.6466 21.58 20.9166 20.8 21.6966C20.02 22.4766 18.75 22.4766 17.97 21.6966L5.24 8.96661ZM13.73 3.30661L16.56 6.13661C17.34 6.91661 17.34 8.18661 16.56 8.96661L15.14 10.3866L9.49 4.72661L10.9 3.31661C11.68 2.52661 12.95 2.52661 13.73 3.30661ZM3.83 10.3766L9.49 16.0366L8.08 17.4466C7.3 18.2266 6.03 18.2266 5.25 17.4466L2.42 14.6166C1.64 13.8366 1.64 12.5666 2.42 11.7866L3.83 10.3766Z"})})},294381:(e,t,r)=>{r.d(t,{Y:()=>c});var i=r(350979),n=r(680797),l=r(769932),s=r(673115),a=r(605641);let o=(0,n.I4)(a.A).withConfig({componentId:"sc-4f9f0e79-0"})(["display:inline;"]),d=(0,n.I4)(s.A).withConfig({componentId:"sc-4f9f0e79-1"})(["display:inline-block;margin:0 4px;"]),c=e=>{let{farmCakePerSecond:t,totalMultipliers:r}=e,{t:n}=(0,l.A)();return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(a.A,{bold:!0,children:[n("Farmâs CAKE Per Second:"),(0,i.jsx)(o,{marginLeft:2,children:t})]}),(0,i.jsxs)(a.A,{bold:!0,children:[n("Total Multipliers:"),(0,i.jsx)(o,{marginLeft:2,children:r})]}),(0,i.jsx)(a.A,{my:"24px",children:n("The Farm Multiplier represents the proportion of CAKE rewards each farm receives as a proportion of its farm group.")}),(0,i.jsx)(a.A,{my:"24px",children:n("For example, if a 1x farm received 1 CAKE per block, a 40x farm would receive 40 CAKE per block.")}),(0,i.jsxs)(a.A,{children:[n("Different farm groups have different sets of multipliers."),(0,i.jsx)(d,{mt:"8px",display:"inline",href:"https://docs.pancakeswap.finance/products/yield-farming/faq#why-a-2x-farm-in-v3-has-less-apr-than-a-1x-farm-in-v2",external:!0,children:n("Learn More")})]})]})}},294643:(e,t,r)=>{r.d(t,{Z:()=>o,d:()=>d});var i=r(350979);r(25963);var n=r(703082),l=r(258213),s=r(557423),a=r(28192);let o=e=>{let{onClick:t,expanded:r,children:s,...o}=e;return(0,i.jsxs)(a.A,{"aria-label":"Hide or show expandable content",onClick:t,...o,children:[s,r?(0,i.jsx)(n.A,{color:"invertedContrast"}):(0,i.jsx)(l.A,{color:"invertedContrast"})]})};o.defaultProps={expanded:!1};let d=e=>{let{onClick:t,expanded:r,children:a,iconColor:o="primary",iconSize:d,...c}=e;return(0,i.jsx)(s.A,{pr:0,variant:"text","aria-label":"Hide or show expandable content",onClick:t,endIcon:r?(0,i.jsx)(n.A,{width:d,height:d,color:o}):(0,i.jsx)(l.A,{width:d,height:d,color:o}),...c,children:a})};d.defaultProps={expanded:!1}},326763:(e,t,r)=>{r.d(t,{A:()=>d});var i=r(350979);r(25963);var n=r(501823),l=r(428089),s=r(599876),a=r(605641),o=r(948001);let d=e=>{let{value:t,placeholder:r="0.0",onUserInput:d,currencyValue:c,inputProps:x,innerRef:p,isWarning:C=!1,decimals:h=18,unit:u,appendComponent:g,switchEditingUnits:m,...f}=e;return(0,i.jsx)(o.OB,{isWarning:C,...f,children:(0,i.jsxs)(n.A,{justifyContent:"flex-end",children:[(0,i.jsxs)(n.A,{width:"100%",children:[g,(0,i.jsxs)(l.Ay,{width:"100%",children:[(0,i.jsxs)(n.A,{alignItems:"center",children:[(0,i.jsx)(o.sQ,{pattern:`^[0-9]*[.,]?[0-9]{0,${h}}$`,inputMode:"decimal",min:"0",value:t,onChange:e=>{e.currentTarget.validity.valid&&d(e.currentTarget.value.replace(/,/g,"."))},placeholder:r,ref:p,...x}),u&&(0,i.jsx)(o.cw,{children:u})]}),c&&(0,i.jsx)(a.A,{fontSize:"12px",textAlign:"right",color:"textSubtle",children:c})]})]}),m&&(0,i.jsx)(n.A,{alignItems:"center",pl:"12px",children:(0,i.jsx)(o.Yl,{scale:"sm",variant:"text",onClick:m,children:(0,i.jsx)(s.A,{color:"textSubtle"})})})]})})}},348221:(e,t,r)=>{r.d(t,{A:()=>l});var i=r(350979);r(25963);var n=r(257057);let l=e=>(0,i.jsx)(n.A,{width:16,height:16,viewBox:"0 0 16 16",fill:"none",...e,children:(0,i.jsx)("path",{d:"M7.99996 11.3334C8.73329 11.3334 9.33329 10.7334 9.33329 10.
160001C9.33329 9.26675 8.73329 8.66675 7.99996 8.66675C7.26663 8.66675 6.66663 9.26675 6.66663 10.0001C6.66663 10.7334 7.26663 11.3334 7.99996 11.3334ZM12 5.33342H11.3333V4.00008C11.3333 2.16008 9.83996 0.666748 7.99996 0.666748C6.15996 0.666748 4.66663 2.16008 4.66663 4.00008V5.33342H3.99996C3.26663 5.33342 2.66663 5.93341 2.66663 6.66675V13.3334C2.66663 14.0667 3.26663 14.6667 3.99996 14.6667H12C12.7333 14.6667 13.3333 14.0667 13.3333 13.3334V6.66675C13.3333 5.93341 12.7333 5.33342 12 5.33342ZM5.93329 4.00008C5.93329 2.86008 6.85996 1.93341 7.99996 1.93341C9.13996 1.93341 10.0666 2.86008 10.0666 4.00008V5.33342H5.93329V4.00008ZM12 13.3334H3.99996V6.66675H12V13.3334Z",fill:"currentColor"})})},360839:(e,t,r)=>{r.d(t,{A:()=>l});var i=r(350979);r(25963);var n=r(257057);let l=e=>(0,i.jsx)(n.A,{viewBox:"0 0 19 19",...e,children:(0,i.jsx)("path",{d:"M0 15.46V18.5C0 18.78 0.22 19 0.5 19H3.54C3.67 19 3.8 18.95 3.89 18.85L14.81 7.94L11.06 4.19L0.15 15.1C0.0500001 15.2 0 15.32 0 15.46ZM17.71 5.04C18.1 4.65 18.1 4.02 17.71 3.63L15.37 1.29C14.98 0.899998 14.35 0.899998 13.96 1.29L12.13 3.12L15.88 6.87L17.71 5.04Z"})})},424396:(e,t,r)=>{r.d(t,{A:()=>l});var i=r(350979);r(25963);var n=r(257057);let l=e=>(0,i.jsxs)(n.A,{viewBox:"0 0 10 14",fill:"none",...e,children:[(0,i.jsx)("path",{d:"M4.99103 0.174805V5.13368L9.18211 7.00671L4.99103 0.174805Z",fillOpacity:"0.602"}),(0,i.jsx)("path",{d:"M4.99083 0.174805L0.799744 7.00671L4.99083 5.13368V0.174805Z"}),(0,i.jsx)("path",{d:"M4.99103 10.2201V13.5896L9.18456 7.78711L4.99103 10.2201Z",fillOpacity:"0.602"}),(0,i.jsx)("path",{d:"M4.99083 13.5896V10.2201L0.799744 7.78711L4.99083 13.5896Z"}),(0,i.jsx)("path",{d:"M4.99103 9.4398L9.18211 7.00682L4.99103 5.13379V9.4398Z",fillOpacity:"0.2"}),(0,i.jsx)("path",{d:"M0.799744 7.00682L4.99083 9.4398V5.13379L0.799744 7.00682Z",fillOpacity:"0.602"})]})},446271:(e,t,r)=>{r.d(t,{Ay:()=>C,Or:()=>c,s$:()=>d,sq:()=>h});var i=r(25963),n=r(984513),l=r.n(n),s=r(91168),a=r(503387);let o={0:1,1:.142857142,2:.071428571,3:.033333333};var d=function(e){return e[e.TOKEN=0]="TOKEN",e[e.USD=1]="USD",e}({}),c=function(e){return e[e.ROI_BASED_ON_PRINCIPAL=0]="ROI_BASED_ON_PRINCIPAL",e[e.PRINCIPAL_BASED_ON_ROI=1]="PRINCIPAL_BASED_ON_ROI",e}({});let x={controls:{compounding:!0,compoundingFrequency:1,activeCompoundingIndex:0,stakingDuration:3,mode:0,editingCurrency:1},data:{principalAsToken:"0.00",principalAsUSD:"",roiUSD:0,roiTokens:0,roiPercentage:0}},p=(e,t)=>{switch(t.type){case"setStakingDuration":{let r={...e.controls,stakingDuration:t.payload};return{...e,controls:r}}case"toggleCompounding":{let t=!e.controls.compounding,r={...e.controls,compounding:t};return{...e,controls:r}}case"setCompoundingFrequency":{let{index:r,autoCompoundFrequency:i}=t.payload;if(i)return{...e,controls:{...e.controls,compoundingFrequency:i}};let n=o[r],l={...e.controls,compoundingFrequency:n,activeCompoundingIndex:r};return{...e,controls:l}}case"setPrincipal":{let{principalAsUSD:r,principalAsToken:i}=t.payload,n={...e.data,principalAsUSD:r,principalAsToken:i};return{controls:{...e.controls,mode:0},data:n}}case"setPrincipalForTargetRoi":{let{principalAsUSD:r,principalAsToken:i,roiPercentage:n}=t.payload,l={...e.data,principalAsUSD:r,principalAsToken:i,roiPercentage:n};return{...e,data:l}}case"setCalculatorMode":{let r=t.payload,i={...e.controls,mode:r};if(1===r){let t=parseFloat(e.data.roiUSD.toFixed(2));return{controls:i,data:{...e.data,roiUSD:t}}}return{...e,controls:i}}case"setRoi":{let r={...e.data,...t.payload};return{...e,data:r}}case"setTargetRoi":{let{roiUSD:r,roiTokens:i}=t.payload,n={...e.data,roiUSD:r,roiTokens:i};return{controls:{...e.controls,mode:1},data:n}}case"toggleEditingCurrency":{let t=+(1!==e.controls.editingCurrency),r={...e.controls,editingCurrency:t};return{...e,controls:r}}default:return e}},C=(e,t)=>{let{stakingTokenPrice:r,earningTokenPrice:n,autoCompoundFrequency:a}=e,[o,d]=(0,i.useReducer)(p,l()(x,t));return(0,i.useEffect)(()=>{a>0&&d({type:"setCompoundingFrequency",payload:{autoCompoundFrequency:a}})},[a]),{state:o,setPrincipalFromUSDValue:e=>{let t=new s.A(e).div(r);d({type:"setPrincipal",payload:{principalAsUSD:e,principalAsToken:t.gt(0)?t.toFixed(10):"0.00"}})},setPrincipalFromTokenValue:(0,i.useCallback)(e=>{let t=new s.A(e).times(r);d({type:"setPrincipal",payload:{principalAsUSD:t.gt(0)?t.toFixed(2):"0.00",principalAsToken:e}})},[r]),setStakingDuration:e=>{d({type:"setStakingDuration",payload:e})},toggleCompounding:()=>{d({type:"toggleCompounding"})},toggleEditingCurrency:()=>{d({type:"toggleEditingCurrency"})},setCompoundingFrequency:e=>{d({type:"setCompoundingFrequency",payload:{index:e}})},setCalculatorMode:e=>{d({type:"setCalculatorMode",payload:e})},setTargetRoi:e=>{let t=new s.A(e).div(n);d({type:"setTargetRoi",payload:{roiUSD:+e,roiTokens:t.isNaN()?0:t.toNumber()}})},dispatch:d}};function h(e){let{state:t,apr:r=0,earningTokenPrice:n,stakingTokenPrice:l,performanceFee:o,dispatch:d}=e,{principalAsUSD:c,roiUSD:x}=t.data,{compounding:p,compoundingFrequency:C,stakingDuration:h,mode:u}=t.controls;return(0,i.useEffect)(()=>
16{if(0===u){let e=parseFloat(c),t=p?C:0,i=(0,a.Qn)({principalInUSD:e,apr:r,earningTokenPrice:n,compoundFrequency:t,performanceFee:o}),l=!Number.isNaN(i[h]),s=l?i[h]:0,x=l?s*n:0,u=l?(0,a.HO)({amountEarned:x,amountInvested:e}):0;d({type:"setRoi",payload:{roiUSD:x,roiTokens:s,roiPercentage:u}})}},[c,r,h,n,o,p,C,u,d]),(0,i.useEffect)(()=>{if(1===u){let e=(0,a.O2)(x,r,p?C:0,o),t=Number.isNaN(e[h])?0:e[h],i=new s.A(t).div(l),n=(0,a.HO)({amountEarned:x,amountInvested:t});d({type:"setPrincipalForTargetRoi",payload:{principalAsUSD:t.toFixed(2),principalAsToken:i.toFixed(10),roiPercentage:n}})}},[h,r,p,C,u,x,l,o,d]),null}},503387:(e,t,r)=>{r.d(t,{HO:()=>a,O2:()=>l,Qn:()=>n,xq:()=>s});let i=[1,7,30,365,1825],n=e=>{let{principalInUSD:t,apr:r,earningTokenPrice:n,compoundFrequency:l=1,performanceFee:s=0}=e,a=365*l,o=r/100,d=Math.round(n/1e3)>0?5:3;return i.map(e=>{let r=t/n,i=r*o*(e/365);if(0!==a&&(i=r*(1+o/a)**(e/365*a)-r,s)){let e=s/100*i;i-=e}return parseFloat(i.toFixed(d))})},l=function(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;return i.map(i=>parseFloat((e/s(t,r,i,n)).toFixed(2)))},s=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:365,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,n=r/365,l=365*t,s=e/100*n;if(l>0&&(s=(1+e/100/l)**(l*n)-1),i){let e=i/100*s;s-=e}return s},a=e=>{let{amountEarned:t,amountInvested:r}=e;return 0===r?0:t/r*100}},534410:(e,t,r)=>{r.d(t,{A:()=>l});var i=r(350979);r(25963);var n=r(257057);let l=e=>(0,i.jsxs)(n.A,{width:15,height:16,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[(0,i.jsxs)("g",{clipPath:"url(#clip0_5853_692)",children:[(0,i.jsx)("mask",{id:"mask0_5853_692",maskUnits:"userSpaceOnUse",x:"0",y:"1",width:"15",height:"15",children:(0,i.jsx)("path",{d:"M14.3237 1.57031H0.32373V15.5703H14.3237V1.57031Z",fill:"white"})}),(0,i.jsx)("g",{mask:"url(#mask0_5853_692)",children:(0,i.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.5737 4.97582V3.35864C12.5739 3.34185 12.5788 3.3254 12.588 3.31101C12.5972 3.29661 12.6103 3.28478 12.626 3.27675L14.1734 2.45793C14.1886 2.44965 14.2059 2.4453 14.2236 2.44531C14.2412 2.44533 14.2585 2.44971 14.2738 2.45801C14.289 2.46632 14.3017 2.47825 14.3104 2.49261C14.3192 2.50697 14.3238 2.52326 14.3237 2.53981V4.15699C14.3236 4.17354 14.3189 4.18976 14.3101 4.20411C14.3013 4.21845 14.2887 4.23042 14.2736 4.23887L12.7241 5.0577C12.7088 5.06598 12.6915 5.07033 12.6739 5.07031C12.6563 5.0703 12.6389 5.06592 12.6237 5.05762C12.6084 5.04931 12.5958 5.03738 12.587 5.02302C12.5782 5.00865 12.5737 4.99237 12.5737 4.97582ZM12.1851 5.34331C11.2683 7.47471 9.76868 9.29656 7.86283 10.5943C5.95698 11.892 3.72439 12.6115 1.42796 12.668C0.9527 11.9533 0.621208 11.1508 0.45242 10.3063C0.283633 9.46191 0.280853 8.59211 0.444238 7.74661C0.607624 6.90111 0.933975 6.09647 1.40466 5.3786C1.87535 4.66072 2.48115 4.0437 3.18748 3.56275C3.8938 3.0818 4.68682 2.74635 5.52128 2.57554C6.35568 2.40474 7.21518 2.40192 8.05073 2.56726C8.88623 2.7326 9.68138 3.06286 10.3908 3.53917C11.1001 4.01549 11.7099 4.62853 12.1851 5.34331ZM12.05 12.7744C12.8375 11.6603 13.2609 10.3248 13.2609 8.95501C13.2613 7.94551 13.0301 6.94971 12.5856 6.04598C10.5605 8.69411 9.27688 11.845 8.86943 15.168C10.1504 14.7254 11.2625 13.8885 12.05 12.7744Z",fill:"url(#paint0_linear_5853_692)"})})]}),(0,i.jsxs)("defs",{children:[(0,i.jsxs)("linearGradient",{id:"paint0_linear_5853_692",x1:"-5.33247",y1:"6.29551",x2:"13.9326",y2:"16.2001",gradientUnits:"userSpaceOnUse",children:[(0,i.jsx)("stop",{stopColor:"#C040FC"}),(0,i.jsx)("stop",{offset:"1",stopColor:"#4B3CFF"})]}),(0,i.jsx)("clipPath",{id:"clip0_5853_692",children:(0,i.jsx)("rect",{width:"14.1519",height:"15.1406",fill:"white",transform:"translate(0.171875 0.429688)"})})]})]})},599876:(e,t,r)=>{r.d(t,{A:()=>l});var i=r(350979);r(25963);var n=r(257057);let l=e=>(0,i.jsx)(n.A,{viewBox:"0 0 24 25",...e,children:(0,i.jsx)("path",{d:"M16 17.01V11C16 10.45 15.55 10 15 10C14.45 10 14 10.45 14 11V17.01H12.21C11.76 17.01 11.54 17.55 11.86 17.86L14.65 20.64C14.85 20.83 15.16 20.83 15.36 20.64L18.15 17.86C18.47 17.55 18.24 17.01 17.8 17.01H16ZM8.65003 3.35002L5.86003 6.14002C5.54003 6.45002 5.76003 6.99002 6.21003 6.99002H8.00003V13C8.00003 13.55 8.45003 14 9.00003 14C9.55003 14 10 13.55 10 13V6.99002H11.79C12.24 6.99002 12.46 6.45002 12.14 6.14002L9.35003 3.35002C9.16003 3.16002 8.84003 3.16002 8.65003 3.35002Z"})})},634892:(e,t,r)=>{r.d(t,{A:()=>l});var i=r(350979);r(25963);var n=r(257057);let l=e=>
16(0,i.jsxs)(n.A,{viewBox:"0 0 24 24",...e,children:[(0,i.jsx)("path",{d:"M19 3H5C3.9 3 3 3.9 3 5V19C3 20.1 3.9 21 5 21H19C20.1 21 21 20.1 21 19V5C21 3.9 20.1 3 19 3ZM19 19H5V5H19V19Z"}),(0,i.jsx)("path",{d:"M11.25 7.72H6.25V9.22H11.25V7.72Z"}),(0,i.jsx)("path",{d:"M18 15.75H13V17.25H18V15.75Z"}),(0,i.jsx)("path",{d:"M18 13.25H13V14.75H18V13.25Z"}),(0,i.jsx)("path",{d:"M8 18H9.5V16H11.5V14.5H9.5V12.5H8V14.5H6V16H8V18Z"}),(0,i.jsx)("path",{d:"M14.09 10.95L15.5 9.54L16.91 10.95L17.97 9.89L16.56 8.47L17.97 7.06L16.91 6L15.5 7.41L14.09 6L13.03 7.06L14.44 8.47L13.03 9.89L14.09 10.95Z"})]})},654168:(e,t,r)=>{r.d(t,{A:()=>l});var i=r(350979);r(25963);var n=r(257057);let l=e=>(0,i.jsx)(n.A,{viewBox:"0 0 24 24",...e,children:(0,i.jsx)("path",{d:"M12 6V7.79C12 8.24 12.54 8.46 12.85 8.14L15.64 5.35C15.84 5.15 15.84 4.84 15.64 4.64L12.85 1.85C12.54 1.54 12 1.76 12 2.21V4C7.58 4 4 7.58 4 12C4 13.04 4.2 14.04 4.57 14.95C4.84 15.62 5.7 15.8 6.21 15.29C6.48 15.02 6.59 14.61 6.44 14.25C6.15 13.56 6 12.79 6 12C6 8.69 8.69 6 12 6ZM17.79 8.71C17.52 8.98 17.41 9.4 17.56 9.75C17.84 10.45 18 11.21 18 12C18 15.31 15.31 18 12 18V16.21C12 15.76 11.46 15.54 11.15 15.86L8.36 18.65C8.16 18.85 8.16 19.16 8.36 19.36L11.15 22.15C11.46 22.46 12 22.24 12 21.8V20C16.42 20 20 16.42 20 12C20 10.96 19.8 9.96 19.43 9.05C19.16 8.38 18.3 8.2 17.79 8.71Z"})})},795904:(e,t,r)=>{r.d(t,{A:()=>l});var i=r(350979);r(25963);var n=r(257057);let l=e=>(0,i.jsx)(n.A,{viewBox:"0 0 24 24",...e,children:(0,i.jsx)("path",{d:"M18 13H6C5.45 13 5 12.55 5 12C5 11.45 5.45 11 6 11H18C18.55 11 19 11.45 19 12C19 12.55 18.55 13 18 13Z"})})},807543:(e,t,r)=>{r.d(t,{A:()=>l});var i=r(350979);r(25963);var n=r(48902);let l=e=>{let{ribbon:t,children:r,background:l,innerCardProps:s,...a}=e;return(0,i.jsx)(n.e,{...a,children:(0,i.jsxs)(n.m,{...s,background:l,hasCustomBorder:!!a.borderBackground,children:[t,r]})})}},814401:(e,t,r)=>{r.d(t,{A:()=>l});var i=r(350979);r(25963);var n=r(257057);let l=e=>(0,i.jsx)(n.A,{viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,i.jsx)("path",{fill:"white",d:"M10.3944 9.53278L13.7152 7.61529C13.8912 7.51343 14 7.32455 14 7.12182V3.28683C14 3.0841 13.8912 2.89522 13.7152 2.79337L10.3944 0.875873C10.2184 0.774016 9.99986 0.775005 9.82481 0.875873L6.50406 2.79337C6.32803 2.89522 6.21925 3.0841 6.21925 3.28683V10.14L3.89037 11.4839L1.56149 10.14V7.45113L3.89037 6.1072L5.42614 6.99425V5.19048L4.17517 4.46759C4.08914 4.41814 3.99025 4.39144 3.89037 4.39144C3.79049 4.39144 3.6916 4.41814 3.60556 4.46759L0.284806 6.38508C0.10878 6.48694 0 6.67582 0 6.87855V10.7135C0 10.9163 0.10878 11.1051 0.284806 11.207L3.60556 13.1245C3.78159 13.2254 3.99915 13.2254 4.17517 13.1245L7.49593 11.207C7.67196 11.1051 7.78074 10.9163 7.78074 10.7135V3.8604L7.82227 3.83666L10.1086 2.51647L12.4375 3.8604V6.54924L10.1086 7.89317L8.57483 7.0081V8.81187L9.82383 9.53278C9.99986 9.63365 10.2184 9.63365 10.3934 9.53278H10.3944Z"})})},814455:(e,t,r)=>{r.d(t,{A:()=>l});var i=r(350979);r(25963);var n=r(257057);let l=e=>(0,i.jsx)(n.A,{viewBox:"0 0 24 24",...e,children:(0,i.jsx)("path",{d:"M4 13C5.1 13 6 12.1 6 11C6 9.9 5.1 9 4 9C2.9 9 2 9.9 2 11C2 12.1 2.9 13 4 13ZM5.13 14.1C4.76 14.04 4.39 14 4 14C3.01 14 2.07 14.21 1.22 14.58C0.48 14.9 0 15.62 0 16.43V17C0 17.5523 0.447715 18 1 18H4.5V16.39C4.5 15.56 4.73 14.78 5.13 14.1ZM20 13C21.1 13 22 12.1 22 11C22 9.9 21.1 9 20 9C18.9 9 18 9.9 18 11C18 12.1 18.9 13 20 13ZM24 16.43C24 15.62 23.52 14.9 22.78 14.58C21.93 14.21 20.99 14 20 14C19.61 14 19.24 14.04 18.87 14.1C19.27 14.78 19.5 15.56 19.5 16.39V18H23C23.5523 18 24 17.5523 24 17V16.43ZM16.24 13.65C15.07 13.13 13.63 12.75 12 12.75C10.37 12.75 8.93 13.14 7.76 13.65C6.68 14.13 6 15.21 6 16.39V17C6 17.5523 6.44772 18 7 18H17C17.5523 18 18 17.5523 18 17V16.39C18 15.21 17.32 14.13 16.24 13.65ZM8.07 16C8.16 15.77 8.2 15.61 8.98 15.31C9.95 14.93 10.97 14.75 12 14.75C13.03 14.75 14.05 14.93 15.02 15.31C15.79 15.61 15.83 15.77 15.93 16H8.07ZM12 8C12.55 8 13 8.45 13 9C13 9.55 12.55 10 12 10C11.45 10 11 9.55 11 9C11 8.45 11.45 8 12 8ZM12 6C10.34 6 9 7.34 9 9C9 10.66 10.34 12 12 12C13.66 12 15 10.66 15 9C15 7.34 13.66 6 12 6Z"})})},820004:(e,t,r)=>{r.d(t,{A:()=>l});var i=r(350979);r(25963);var n=r(257057);let l=e=>
16(0,i.jsx)(n.A,{viewBox:"0 0 24 24",...e,children:(0,i.jsx)("path",{d:"M23 12L20.56 9.21L20.9 5.52L17.29 4.7L15.4 1.5L12 2.96L8.6 1.5L6.71 4.69L3.1 5.5L3.44 9.2L1 12L3.44 14.79L3.1 18.49L6.71 19.31L8.6 22.5L12 21.03L15.4 22.49L17.29 19.3L20.9 18.48L20.56 14.79L23 12ZM9.38 16.01L7 13.61C6.61 13.22 6.61 12.59 7 12.2L7.07 12.13C7.46 11.74 8.1 11.74 8.49 12.13L10.1 13.75L15.25 8.59C15.64 8.2 16.28 8.2 16.67 8.59L16.74 8.66C17.13 9.05 17.13 9.68 16.74 10.07L10.82 16.01C10.41 16.4 9.78 16.4 9.38 16.01Z"})})},884018:(e,t,r)=>{r.d(t,{N:()=>V,A:()=>k});var i=r(350979),n=r(769932),l=r(378385),s=r(25963),a=r(680797),o=r(579518),d=r(282304),c=r(326763),x=r(501823),p=r(557423),C=r(812297),h=r(819324),u=r(310085),g=r(865109),m=r(605641),f=r(446271),A=r(49563),j=r(633900);let L=(0,a.i7)(["0%{transform:scale(1);stroke-width:0;}50%{transform:scale(1.3);stroke-width:2;}100%{transform:scale(1);stroke-width:0;}"]),w=(0,a.I4)(x.A).withConfig({componentId:"sc-528ff372-0"})(["& > svg{animation:0.2s "," linear;stroke:",";stroke-width:0;}"],L,e=>{let{theme:t}=e;return`${t.colors.primary3D}`}),v=e=>{let{calculatorState:t}=e,[r,n]=(0,s.useState)("roiArrow-0"),{mode:l}=t.controls;return(0,s.useEffect)(()=>{n(e=>{let t=parseInt(e.split("-")[1],10);return`roiArrow-${t+1}`})},[t]),(0,i.jsx)(w,{justifyContent:"center",my:"24px",children:l===f.Or.ROI_BASED_ON_PRINCIPAL?(0,i.jsx)(A.A,{width:"24px",height:"24px",color:"textSubtle"}):(0,i.jsx)(j.A,{width:"24px",height:"24px",color:"textSubtle"})},r)};var y=r(912131),b=r(107600);let M=(0,a.I4)(d.Ay).withConfig({componentId:"sc-14fb99fa-0"})(["& > :nth-child(2){padding:0;}","{width:380px;}"],e=>{let{theme:t}=e;return t.mediaQueries.md}),V=a.I4.div.withConfig({componentId:"sc-14fb99fa-1"})(["padding:24px;max-height:500px;overflow-x:hidden;overflow-y:auto;","{max-height:none;}"],e=>{let{theme:t}=e;return t.mediaQueries.sm}),S=(0,a.I4)(C.A).withConfig({componentId:"sc-14fb99fa-2"})(["width:100%;& > button{width:100%;}opacity:",";"],e=>{let{disabled:t}=e;return t?.5:1}),k=e=>{let{account:t,earningTokenPrice:r,apr:a,apy:d,displayApr:C,linkLabel:A,linkHref:j,stakingTokenBalance:L,stakingTokenSymbol:w,stakingTokenPrice:k,multiplier:I,initialValue:Z,earningTokenSymbol:H="CAKE",autoCompoundFrequency:F=0,performanceFee:_=0,isFarm:P=!1,initialState:D,strategy:R,header:O,children:B,stakingTokenDecimals:N,rewardCakePerSecond:T,onBack:E,onDismiss:$,bCakeCalculatorSlot:U,isLocked:z=!1,stableSwapAddress:K,stableLpFee:q,farmCakePerSecond:Y,totalMultipliers:Q,dualTokenRewardApr:W,lpRewardsApr:G}=e,{t:J}=(0,n.A)(),X=(0,s.useRef)(null),{state:ee,setPrincipalFromUSDValue:et,setPrincipalFromTokenValue:er,setStakingDuration:ei,toggleCompounding:en,toggleEditingCurrency:el,setCompoundingFrequency:es,setCalculatorMode:ea,setTargetRoi:eo,dispatch:ed}=(0,f.Ay)({stakingTokenPrice:k,earningTokenPrice:r,autoCompoundFrequency:F},D),{compounding:ec,activeCompoundingIndex:ex,stakingDuration:ep,editingCurrency:eC}=ee.controls,{principalAsUSD:eh,principalAsToken:eu}=ee.data;(0,s.useEffect)(()=>{X.current&&X.current.focus()},[]),(0,s.useEffect)(()=>{Z&&er(Z)},[Z,er]);
16let{targetRef:eg,tooltip:em,tooltipVisible:ef}=(0,o.A)(P?J("âMy Balanceâ here includes both LP Tokens in your wallet, and LP Tokens already staked in this farm."):J("âMy Balanceâ here includes both %assetSymbol% in your wallet, and %assetSymbol% already staked in this pool.",{assetSymbol:w}),{placement:"top-end",tooltipOffset:[20,10]}),eA=eC===f.s$.TOKEN?w:"USD",ej=eC===f.s$.TOKEN?eu:eh,eL=eC===f.s$.TOKEN?"USD":w,ew=eC===f.s$.TOKEN?eh:eu,ev=eC===f.s$.TOKEN?er:et,ey=(0,s.useMemo)(()=>[J("1D"),J("7D"),J("30D"),J("1Y"),J("5Y")],[J]),eb=(0,s.useMemo)(()=>!Number.isFinite(k)||!L.isFinite()||L.lte(0)||!t,[t,L,k]);return(0,i.jsxs)(M,{title:J("ROI Calculator"),onDismiss:E||$,onBack:E,headerBackground:"gradientCardHeader",children:[(0,i.jsxs)(V,{children:[R?R(ee,ed):(0,i.jsx)(f.sq,{state:ee,apr:null!=d?d:a,dispatch:ed,earningTokenPrice:r,performanceFee:_,stakingTokenPrice:k}),O,(0,i.jsxs)(x.A,{flexDirection:"column",mb:"8px",children:[(0,i.jsx)(m.A,{color:"secondary",bold:!0,fontSize:"12px",textTransform:"uppercase",children:J("%asset% staked",{asset:w})}),(0,i.jsx)(c.A,{inputProps:{scale:"sm"},currencyValue:`${ew} ${eL}`,innerRef:X,placeholder:"0.00",value:ej,unit:eA,decimals:N,onUserInput:ev,switchEditingUnits:el,onFocus:()=>{ea(f.Or.ROI_BASED_ON_PRINCIPAL)}}),(0,i.jsxs)(x.A,{justifyContent:"space-between",mt:"8px",children:[(0,i.jsx)(p.A,{scale:"xs",p:"4px 16px",width:"68px",variant:"tertiary",onClick:()=>et("100"),children:"$100"}),(0,i.jsx)(p.A,{scale:"xs",p:"4px 16px",width:"68px",variant:"tertiary",onClick:()=>et("1000"),children:"$1000"}),(0,i.jsx)(p.A,{scale:"xs",p:"4px 16px",width:"128px",variant:"tertiary",style:{textTransform:"uppercase"},disabled:eb,onClick:()=>et((0,l._c)(L.times(k),N).toString()),children:J("My Balance")}),(0,i.jsx)("span",{ref:eg,children:(0,i.jsx)(g.A,{width:"16px",height:"16px",color:"textSubtle"})}),ef&&em]}),B||(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(m.A,{mt:"24px",color:"secondary",bold:!0,fontSize:"12px",textTransform:"uppercase",children:J("Staked for")}),(0,i.jsx)(S,{activeIndex:ep,onItemClick:ei,scale:"sm",children:ey.map(e=>(0,i.jsx)(h.A,{variant:"tertiary",children:e},e))})]}),U&&U(eu),0===F&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(m.A,{mt:"24px",color:"secondary",bold:!0,fontSize:"12px",textTransform:"uppercase",children:J("Compounding every")}),(0,i.jsxs)(x.A,{alignItems:"center",children:[(0,i.jsx)(x.A,{flex:"1",children:(0,i.jsx)(u.A,{scale:"sm",checked:ec,onChange:en})}),(0,i.jsx)(x.A,{flex:"6",children:(0,i.jsxs)(S,{scale:"sm",disabled:!ec,activeIndex:ex,onItemClick:es,children:[(0,i.jsx)(h.A,{children:J("1D")}),(0,i.jsx)(h.A,{children:J("7D")}),(0,i.jsx)(h.A,{children:J("14D")}),(0,i.jsx)(h.A,{children:J("30D")})]})})]})]})]}),(0,i.jsx)(v,{calculatorState:ee}),(0,i.jsx)(x.A,{children:(0,i.jsx)(b.Ay,{calculatorState:ee,earningTokenSymbol:H,setTargetRoi:eo,setCalculatorMode:ea})})]}),(0,i.jsx)(y.Ay,{isFarm:P,apr:a,lpRewardsApr:G,apy:d,displayApr:C,autoCompoundFrequency:F,multiplier:I,linkLabel:A,linkHref:j,performanceFee:_,rewardCakePerSecond:T,isLocked:z,stableSwapAddress:K,stableLpFee:q,farmCakePerSecond:Y,totalMultipliers:Q,dualTokenRewardApr:W})]})}},892977:(e,t,r)=>{r.d(t,{A:()=>l});var i=r(350979);r(25963);var n=r(257057);let l=e=>(0,i.jsx)(n.A,{viewBox:"0 0 24 24",...e,children:(0,i.jsx)("path",{d:"M18 13H13V18C13 18.55 12.55 19 12 19C11.45 19 11 18.55 11 18V13H6C5.45 13 5 12.55 5 12C5 11.45 5.45 11 6 11H11V6C11 5.45 11.45 5 12 5C12.55 5 13 5.45 13 6V11H18C18.55 11 19 11.45 19 12C19 12.55 18.55 13 18 13Z"})})},912131:(e,t,r)=>{r.d(t,{Ay:()=>w,Rg:()=>L,wi:()=>j});var i=r(350979),n=r(769932),l=r(503387),s=r(91168),a=r(25963),o=r(680797),d=r(659918),c=r(579518),x=r(501823),p=r(428089),C=r(672946),h=r(294643),u=r(673115),g=r(430586),m=r(865109),f=r(605641),A=r(294381);let j=(0,o.I4)(x.A).withConfig({componentId:"sc-c8b2e869-0"})(["width:100%;background:",";"],e=>{let{theme:t}=e;return t.colors.dropdown}),L=o.I4.ul.withConfig({componentId:"sc-c8b2e869-1"})([`list-style-type:none;margin-top:16px;padding:0;li{margin:0;padding:0;}li::before{content:"â¢";margin-right:4px;color:`,";}li::marker{font-size:12px;}"],e=>{let{theme:t}=e;return t.colors.textSubtle}),w=e=>{let{isFarm:t,apr:r=0,apy:o=0,displayApr:w,autoCompoundFrequency:v,multiplier:y,linkLabel:b,linkHref:M,performanceFee:V,rewardCakePerSecond:S,isLocked:k=!1,stableSwapAddress:I,stableLpFee:Z,farmCakePerSecond:H,totalMultipliers:F,dualTokenRewardApr:_,lpRewardsApr:P}=e,[D,R]=(0,a.useState)(!1),{t:O}=(0,n.A)(),B=(0,A.Y)({farmCakePerSecond:null!=H?H:"-",totalMultipliers:null!=F?F:"-"}
16),{targetRef:N,tooltip:T,tooltipVisible:E}=(0,c.A)(B,{placement:"top-end",tooltipOffset:[20,10]}),$=t?4:2,U=(0,a.useMemo)(()=>{let e=new s.A(r);return void 0!==_&&(e=new s.A(r).minus(Number(null!=_?_:0)).minus(null!=P?P:0)),e.toNumber()},[r,_,P]),z=(0,a.useMemo)(()=>t&&P?Math.max(P).toFixed(2):null,[t,P]);return(0,i.jsxs)(j,{p:"16px",flexDirection:"column",children:[(0,i.jsx)(h.d,{expanded:D,onClick:()=>R(e=>!e),children:O(D?"Hide":"Details")}),D&&(0,i.jsxs)(p.Ay,{px:"8px",children:[(0,i.jsxs)(C.A,{gridTemplateColumns:"2.5fr 1fr",gridRowGap:"8px",gridTemplateRows:`repeat(${$}, auto)`,children:[!t&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(f.A,{color:"textSubtle",small:!0,children:O(Number.isFinite(o)&&0!==o&&!k?"APY":"APR")}),(0,i.jsxs)(f.A,{small:!0,textAlign:"right",children:[Number.isFinite(o)&&0!==o?o.toFixed(2):null==r?void 0:r.toFixed(2),"%"]})]}),t&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(f.A,{color:"textSubtle",small:!0,children:O("APR (incl. LP rewards)")}),(0,i.jsxs)(f.A,{small:!0,textAlign:"right",children:[w,"%"]}),(0,i.jsx)(f.A,{color:"textSubtle",small:!0,children:`*${O("Base APR (CAKE yield only)")}`}),(0,i.jsx)(f.A,{small:!0,textAlign:"right",children:`${null==U?void 0:U.toLocaleString("en-US",{maximumFractionDigits:2})}%`}),Number(_)>0&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(f.A,{color:"textSubtle",small:!0,children:`*${O("Base APR (APT yield only)")}`}),(0,i.jsx)(f.A,{small:!0,textAlign:"right",children:`${null==_?void 0:_.toLocaleString("en-US",{maximumFractionDigits:2})}%`})]}),(0,i.jsxs)(f.A,{color:"textSubtle",small:!0,children:["*",O("LP Rewards APR")]}),(0,i.jsxs)(f.A,{small:!0,textAlign:"right",children:["0"!==z&&z?z:"-","%"]})]}),!Number.isFinite(o)&&(0,i.jsx)(f.A,{color:"textSubtle",small:!0,children:O("APY (%compoundTimes%x daily compound)",{compoundTimes:v>0?v:1})}),!Number.isFinite(o)&&(0,i.jsxs)(f.A,{small:!0,textAlign:"right",children:[(100*(0,l.xq)(r,v>0?v:1,365,V)).toFixed(2),"%"]}),t&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(f.A,{color:"textSubtle",small:!0,children:O("Farm Multiplier")}),(0,i.jsxs)(x.A,{justifyContent:"flex-end",alignItems:"flex-end",children:[(0,i.jsx)(f.A,{small:!0,textAlign:"right",mr:"4px",children:y}),(0,i.jsx)("span",{ref:N,children:(0,i.jsx)(m.A,{color:"textSubtle",width:"16px",height:"16px"})}),E&&T]})]})]}),(0,i.jsxs)(L,{children:[(0,i.jsx)("li",{children:(0,i.jsx)(f.A,{fontSize:"12px",textAlign:"center",color:"textSubtle",display:"inline",lineHeight:1.1,children:O("Calculated based on current rates.")})}),t&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("li",{children:(0,i.jsx)(f.A,{fontSize:"12px",textAlign:"center",color:"textSubtle",display:"inline",children:O("LP rewards: %percent%% trading fees, distributed proportionally among LP token holders.",{percent:I&&Z?d.xU.times(Z).toNumber():.17})})}),(0,i.jsx)("li",{children:!0===S?(0,i.jsx)(f.A,{fontSize:"12px",textAlign:"center",color:"textSubtle",display:"inline",children:O("To provide stable estimates, APR figures are calculated and updated daily using volume data from CoinMarketCap")}):(0,i.jsxs)(f.A,{fontSize:"12px",textAlign:"center",color:"textSubtle",display:"inline",children:[O("To provide stable estimates, APR figures are calculated once per day on the farm page. For real time APR, please visit the"),(0,i.jsx)(u.A,{style:{display:"inline-block"},fontSize:"12px",ml:"3px",href:`/info${I?`/pairs/${I}?type=stableSwap`:""}`,children:O("Info Page")})]})})]}),(0,i.jsx)("li",{children:(0,i.jsx)(f.A,{fontSize:"12px",textAlign:"center",color:"textSubtle",display:"inline",lineHeight:1.1,children:O("All figures are estimates provided for your convenience only, and by no means represent guaranteed returns.")})}),V>0&&(0,i.jsx)("li",{children:(0,i.jsx)(f.A,{mt:"14px",fontSize:"12px",textAlign:"center",color:"textSubtle",display:"inline",children:O("All estimated rates take into account this poolâs %fee%% performance fee",{fee:V})})})]}),M&&(0,i.jsx)(x.A,{justifyContent:"center",mt:"24px",children:(0,i.jsx)(g.A,{href:M,children:b})})]})]})}},917451:(e,t,r)=>{r.d(t,{A:()=>l});var i=r(350979);r(25963);var n=r(257057);let l=e=>(0,i.jsxs)(n.A,{width:14,height:14,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[(0,i.jsxs)("g",{clipPath:"url(#clip0_1475_1361)",children:[(0,i.jsx)("mask",{id:"mask0_1475_1361",maskUnits:"userSpaceOnUse",x:"2",y:"1",width:"12",height:"13",children:(0,i.jsx)("path",{d:"M13.4495 1.64818H2.5V13.1194H13.4495V1.64818Z",fill:"white"})}),(0,i.jsxs)("g",{mask:"url(#mask0_1475_1361)",children:[(0,i.jsx)("path",{d:"M11.5935 13.1195H2.5V3.50959H4.58062V11.257H11.5935V13.1184V13.1195Z",fill:"white"}),(0,i.jsx)("path",{d:"M11.5936 5.37101C12.6186 5.37101 13.4495 4.53762 13.4495 3.50959C13.4495 2.48156 12.6186 1.64818 11.5936 1.64818C10.5686 1.64818 9.73764 2.48156 9.73764 3.50959C9.73764 4.53762 10.5686 5.37101 11.5936 5.37101Z",fill:"white"})]})]}),(0,i.jsx)("defs",{children:(0,i.jsx)("clipPath",{id:"clip0_1475_1361",children:(0,i.jsx)("rect",{width:"11",height:"11.5238",fill:"white",transform:"translate(2.5 1.61905)"})})})]})},948001:(e,t,r)=>{r.d(t,{OB:()=>c,Yl:()=>
16o,cw:()=>d,sQ:()=>x});var i=r(680797),n=r(428089),l=r(727353),s=r(605641),a=r(28192);let o=(0,i.I4)(a.A).withConfig({componentId:"sc-f2be72df-0"})(["width:16px;"]),d=(0,i.I4)(s.A).withConfig({componentId:"sc-f2be72df-1"})(["margin-left:4px;text-align:right;color:",";white-space:nowrap;"],e=>{let{theme:t}=e;return t.colors.textSubtle}),c=(0,i.I4)(n.Ay).withConfig({componentId:"sc-f2be72df-2"})(["background-color:",";border:1px solid ",";border-radius:16px;box-shadow:",";padding:8px 16px;"],e=>{let{theme:t}=e;return t.colors.input},e=>{let{theme:t}=e;return t.colors.inputSecondary},e=>{let{theme:t,isWarning:r}=e;return t.shadows[r?"warning":"inset"]}),x=(0,i.I4)(l.A).withConfig({componentId:"sc-f2be72df-3"})(["background:transparent;border-radius:0;box-shadow:none;padding-left:0;padding-right:0;text-align:",";border:none;::placeholder{color:",";}&:focus:not(:disabled){box-shadow:none;}"],e=>{let{textAlign:t="right"}=e;return t},e=>{let{theme:t}=e;return t.colors.textSubtle})}}]);
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.