-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
8173.ac33dfb7da9de58.js.download
1 lines (1 loc) · 19.5 KB
/
8173.ac33dfb7da9de58.js.download
1
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8173,54382],{8173:function(n,e,t){t.d(e,{vc:function(){return Y},xm:function(){return z},Np:function(){return K},U4:function(){return J},$f:function(){return Q},sy:function(){return A},sL:function(){return V}});var r=t(62230),i=t(85244),o=t(75190),c=t(52322),a=t(2784),l=t(82740),d=t(54382),s=t(98240),u=t(49106),h=t(71610),f=t(68434),v=t(83434),p=t(38789),x={display:"inline-block",fontWeight:p.fontWeight500,fontSize:p.fontSize50},g={color:p.colorTextSecondary},m=function(n){var e=n.label,t=n.children,o=n.dir,l=void 0===o?"":o,d=n.hiddenWhenCut,p=(0,s.Z)(n,["label","children","dir","hiddenWhenCut"]),m=a.useRef(null),b=(0,h.Z)(m,d,{threshold:1}),Z=e?(0,c.jsxs)(v.Z,{sx:g,textType:"body-xs",fontWeight:"inherit",children:[e,":"]}):null,y=(0,a.useMemo)((function(){return(0,u.Z)({},x,{direction:null!==l&&void 0!==l?l:"auto",visibility:d?b?void 0:"hidden":void 0})}),[l,b]);return(0,c.jsxs)(f.Z,(0,i.Z)((0,r.Z)({__css:y},p),{ref:d?m:void 0,children:[Z,Z&&t?(0,c.jsx)(c.Fragment,{children:"\xa0"}):null,t]}))},b=a.memo(m);function Z(){var n=(0,o.Z)(["\n background-color: ",";\n color: ",";\n font-weight: 500;\n font-size: 11px;\n display: block;\n margin-left: ",";\n margin-right: ",";\n padding-top: ",";\n padding-bottom: ",";\n padding-left: ",";\n padding-right: ",";\n line-height: 18px;\n"]);return Z=function(){return n},n}var y={color:p.colorTextHyperlink,fontWeights:"inherit"},w={verticalAlign:"middle"},j={display:"inline-block"},N={paddingTop:p.space150,paddingBottom:p.space150,".gas-table + .gas-powerby-info":{marginTop:p.space100}},C=(0,l.ZP)(v.Z).withConfig({componentId:"sc-80e7d0db-0"})(Z(),p.colorGray100,p.colorTextSecondary,p.space150,p.space150,p.space50,p.space50,p.space100,p.space100),M=t(11493),k=t(29101),S=t(46924),T=t(99363),P=t(79322),F=t(20194),E=t(8354),L=t(55790);function I(){var n=(0,o.Z)(["\n font-size: 6px;\n margin-inline-start: 4px;\n vertical-align: middle;\n"]);return I=function(){return n},n}function G(){var n=(0,o.Z)(["\n min-width: 296px;\n\n th,\n td {\n color: var(--color-light-neutral-6);\n font-weight: 400;\n padding: 0 16px;\n text-align: start;\n width: 33.33%;\n }\n\n th {\n font-size: 12px;\n line-height: 18px;\n }\n\n td {\n font-size: 11px;\n line-height: 18px;\n }\n\n td.gasPrice {\n color: var(--color-primary-black);\n font-weight: 600;\n font-size: 14px;\n line-height: 21px;\n margin-bottom: 4px;\n border-inline-end: 1px solid var(--color-light-neutral-2);\n\n &:last-of-type {\n border-inline-end: none;\n }\n }\n"]);return G=function(){return n},n}function H(){var n=(0,o.Z)(["\n display: inline-block;\n line-height: 11px;\n"]);return H=function(){return n},n}function O(){var n=(0,o.Z)(["\n margin-left: 2px;\n color: ",";\n"]);return O=function(){return n},n}function R(){var n=(0,o.Z)(["\n transition: transform 1s;\n transform: rotate(",")\n translateY(",");\n"]);return R=function(){return n},n}var _=l.ZP.span.withConfig({componentId:"sc-59e437b5-0"})(I()),W=l.ZP.table.withConfig({componentId:"sc-59e437b5-1"})(G()),D=l.ZP.div.withConfig({componentId:"sc-59e437b5-2"})(H()),$=l.ZP.span.withConfig({componentId:"sc-59e437b5-3"})(O(),(function(n){return n.color})),q=l.ZP.svg.withConfig({componentId:"sc-59e437b5-4"})(R(),(function(n){return"up"===n.direction?"0deg":"180deg"}),(function(n){return"up"===n.direction?"-2px":"2px"})),B=function(n){var e=n.direction,t=n.value,r=(0,a.useMemo)((function(){return"up"===e?"var(--c-color-positive)":"var(--c-color-negative)"}),[e]);return"NaN"===t?null:(0,c.jsxs)(D,{style:{marginLeft:6},children:[(0,c.jsx)(q,{direction:e,width:"8",height:"4",viewBox:"0 0 8 4",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,c.jsx)("path",{d:"M7.02831 4H0.971678C0.552295 4 0.342275 3.48908 0.638817 3.19028L3.66714 0.138917C3.85096 -0.0463058 4.14903 -0.0463058 4.33286 0.138917L7.36117 3.19028C7.65774 3.48908 7.44769 4 7.02831 4Z",fill:r})}),(0,c.jsx)($,{color:r,children:"".concat(t,"%")})]})};function V(){var n=(0,F.Z)().t;(0,k.xf)().numCryptocurrencies;return(0,c.jsx)(b,{label:n("Cryptos"),className:"glo-stat-item",children:(0,c.jsx)(M.Z,{forceRefresh:!0,href:"/",children:"2.2M+"})})}function z(){var n=(0,F.Z)().t,e=(0,k.xf)().activeExchanges;return(0,c.jsx)(b,{label:n("Exchanges"),className:"glo-stat-item",children:(0,c.jsx)(M.Z,{forceRefresh:!0,href:"/rankings/exchanges/",children:(0,L.Z)((function(){return null===e||void 0===e?void 0:e.toLocaleString()}),null===e||void 0===e?void 0:e.toString())})})}function A(){var n=(0,F.Z)().t,e=(0,k.xf)(),t=e.marketCap,r=e.marketCapChange,i=(0,T.$)(t,{decimal:2,abbreviate:!0});return(0,c.jsx)(b,{label:n("Market Cap"),className:"glo-stat-item",children:(0,c.jsxs)(D,{children:[(0,c.jsx)(M.Z,{forceRefresh:!0,href:"/charts/#market-cap",children:i}),(0,c.jsx)(B,{direction:r<0?"down":"up",value:Math.abs(r).toFixed(2)})]})})}function Y(){var n=(0,F.Z)().t,e=(0,k.xf)(),t=e.totalVol,r=void 0===t?0:t,i=e.totalVolChange,o=(0,T.$)(Math.abs(r),{decimal:2,abbreviate:!0});return(0,c.jsx)(b,{label:n("24h Vol"),className:"glo-stat-item",children:(0,c.jsxs)(D,{children:[(0,c.jsx)(M.Z,{forceRefresh:!0,href:"/charts/#volume-24h",children:o}),(0,c.jsx)(B,{direction:i<0?"down":"up",value:Math.abs(i).toFixed(2)})]})})}function K(){var n=(0,F.Z)().t,e=(0,k.xf)(),t=e.btcDominance,r=void 0===t?0:t,i=e.ethDominance,o=void 0===i?0:i,a=(0,T.O)(r,{decimals:1}),l=(0,T.O)(o,{decimals:1});return(0,c.jsx)(b,{label:n("Dominance"),className:"glo-stat-item",children:(0,c.jsxs)(M.Z,{forceRefresh:!0,href:"/charts/#bitcoin-dominance",children:[n("BTC"),": ",a,"\xa0",n("ETH"),": ",l]})})}var U=function(n){var e=n.etherscanGas,t=n.t,r=function(n){return isNaN(Number(n))?"--":"".concat(n," ").concat(t("Gwei"))},i=function(n){return isNaN(Number(n))?"--":"~".concat(n," ").concat(t("secs"))};return(0,c.jsxs)(f.Z,{__css:N,children:[(0,c.jsxs)(W,{className:"gas-table",children:[(0,c.jsx)("thead",{children:(0,c.jsxs)("tr",{children:[(0,c.jsx)("th",{children:(0,c.jsx)(v.Z,{textType:"body-sm",children:t("Slow")})}),(0,c.jsx)("th",{children:(0,c.jsx)(v.Z,{textType:"body-sm",children:t("Standard")})}),(0,c.jsx)("th",{children:(0,c.jsx)(v.Z,{textType:"body-sm",children:t("Fast")})})]})}),(0,c.jsxs)("tbody",{children:[(0,c.jsxs)("tr",{children:[(0,c.jsx)("td",{className:"gasPrice",children:(0,c.jsx)(v.Z,{textType:"body-md",sx:{fontWeight:"inherit"},children:r(null===e||void 0===e?void 0:e.slowPrice)})}),(0,c.jsx)("td",{className:"gasPrice",children:(0,c.jsx)(v.Z,{textType:"body-md",sx:{fontWeight:"inherit"},children:r(null===e||void 0===e?void 0:e.standardPrice)})}),(0,c.jsx)("td",{className:"gasPrice",children:(0,c.jsx)(v.Z,{textType:"body-md",sx:{fontWeight:"inherit"},children:r(null===e||void 0===e?void 0:e.fastPrice)})})]}),(0,c.jsxs)("tr",{children:[(0,c.jsx)("td",{children:(0,c.jsx)(v.Z,{textType:"body-xs",children:i(null===e||void 0===e?void 0:e.slowConfirmationTime)})}),(0,c.jsx)("td",{children:(0,c.jsx)(v.Z,{textType:"body-xs",children:i(null===e||void 0===e?void 0:e.standardConfirmationTime)})}),(0,c.jsx)("td",{children:(0,c.jsx)(v.Z,{textType:"body-xs",children:i(null===e||void 0===e?void 0:e.fastConfirmationTime)})})]})]})]}),(0,c.jsx)(C,{className:"gas-powerby-info",children:t("Powered by Etherscan")})]})};function J(){var n=(0,F.Z)().t,e=(0,k.xf)().etherscanGas,t=(0,l.Fg)(),o=(0,S.bd)().deviceInfo.isMobile,s=t.rtl?"rtl":"auto",u=(0,c.jsxs)(a.Fragment,{children:[(0,c.jsx)(f.Z,{__css:w,as:"em",className:"icon-Gas-Filled"}),"\xa0",n("ETH Gas")]});return(0,c.jsx)(b,{label:u,dir:s,className:"glo-stat-item",hiddenWhenCut:!0,children:(0,c.jsx)(d.default,(0,i.Z)((0,r.Z)({},o?{visible:!1}:{}),{content:(0,c.jsx)(U,{etherscanGas:e,t:n}),children:(0,c.jsx)(f.Z,{sx:j,children:(0,c.jsxs)(v.Z,{textType:"body-xs",sx:y,as:"a",children:[null===e||void 0===e?void 0:e.standardPrice," ",n("Gwei"),o?null:(0,c.jsx)(_,{className:"icon-Chevron-down"})]})})}))})}function Q(){var n,e=(0,F.Z)().t,t=(0,S.bd)().fearGreedIndexData;if((0,E.Z)(t))return null;var r=(0,P.Z)(),i=(0,c.jsxs)(c.Fragment,{children:["\xa0",e("commonheader_fear&greed_web",{defaultValue:"Fear & Greed"})]});return(0,c.jsx)(b,{label:i,dir:r?"rtl":"auto",className:"glo-stat-item",hiddenWhenCut:!0,children:(0,c.jsx)(f.Z,{sx:j,children:(0,c.jsx)(M.Z,{forceRefresh:!0,href:"/charts/#fear-and-greed-index",children:(0,c.jsxs)(v.Z,{textType:"body-xs",sx:y,children:[null===(n=null===t||void 0===t?void 0:t.currentIndex.score)||void 0===n?void 0:n.toFixed(0),"/",null===t||void 0===t?void 0:t.currentIndex.maxScore]})})})})}},11493:function(n,e,t){var r=t(95210),i=t(51012),o=t(62230),c=t(85244),a=t(98240),l=t(47998),d=t(52322),s=t(2784),u=t(72779),h=t.n(u),f=t(39097),v=t.n(f),p=t(27801),x=t(1284),g=t(15754),m=t(16091),b=t(64846),Z=t.n(b),y=t(15798),w=t.n(y),j=t(29101),N=t(68434),C=t(68183),M=function(n){(0,i.Z)(t,n);var e=(0,l.Z)(t);function t(){return(0,r.Z)(this,t),e.apply(this,arguments)}return t.prototype.render=function(){var n=this.props,e=n.children,t=n.className,r=n.onClick,i=n.forwardRef,l=n.relOverride,s=n.title,u=n.style,f=n.scroll,b=void 0===f||f,y=n.isDisableLanguagePrefix,j=void 0!==y&&y,M=(n.prefetch,n.forceRefresh),k=void 0===M||M,S=n.shallow,T=void 0!==S&&S,P=n.href,F=(0,a.Z)(n,["children","className","onClick","forwardRef","relOverride","title","style","scroll","isDisableLanguagePrefix","prefetch","forceRefresh","shallow","href"]),E=this.context.language,L=P;!j&&(0,p.Z)(L,"/")&&"en"!==E&&(L="/".concat(E).concat(L));var I=this.props,G=I.target,H=I.rel,O=void 0===H?[]:H;(0,x.Z)(O)&&(O=[O]);var R=Z()(L,!0).hostname;if(!G&&R&&!(0,C.Z)(R)){var _=!1;(0,g.Z)(w().links.referrerOk,(function(n){if((0,m.Z)(R,n))return _=!0,!1})),O.push("noopener nofollow"),_||O.push("noreferrer"),G="_blank"}var W={};l?W.rel=l:O&&O.length>0&&(W.rel=O.join(" "));var D=(0,d.jsx)(N.Z,(0,c.Z)((0,o.Z)({as:"a",ref:i,onClick:r,target:G,title:s,style:u,href:L,className:h()(t,{"cmc-link":!0}),"data-qa-id":this.props["data-qa-id"]},W,F),{children:e}));return!k&&L&&"/"===L[0]?(0,d.jsx)(v(),{href:L,scroll:b,shallow:T,children:D}):D},t}(s.PureComponent);M.contextType=j.Zy,e.Z=M},99363:function(n,e,t){t.d(e,{$:function(){return d},O:function(){return s}});var r=t(62230),i=t(85244),o=t(2784),c=t(77241),a=t(29101),l=t(25614),d=function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},c=(0,o.useContext)(a.Zy).currency,d=(0,o.useState)((0,l.ZO)(n,{id:null===c||void 0===c?void 0:c.id,abbreviate:e.abbreviate,decimal:"number"===typeof e.decimal?e.decimal:void 0})),s=d[0],u=d[1],h=(0,o.useState)(!0),f=h[0],v=h[1];return(0,o.useEffect)((function(){Promise.all([t.e(25151),t.e(36860)]).then(t.bind(t,36860)).then((function(t){var o=t.useCurrencyFormatter(n,(0,i.Z)((0,r.Z)({},e),{useHooks:!1}));v(!1),u(o)}))}),[c,e,n]),(f?"$":"")+s},s=c.g},71610:function(n,e,t){var r=t(22386),i=t(2784),o=t(15798);e.Z=function(n,e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},c=arguments.length>3?arguments[3]:void 0,a=(0,i.useState)(void 0===c?e:c),l=a[0],d=a[1];return o.isServer||(0,i.useLayoutEffect)((function(){if(e&&!o.isServer&&window.IntersectionObserver&&n.current){var i=new IntersectionObserver((function(n){var e=(0,r.Z)(n,1)[0];d(e.isIntersecting)}),t);return i.observe(n.current),function(){return i.disconnect()}}}),[e]),l}},79322:function(n,e,t){var r=t(57472),i=t(20194);e.Z=function(){var n=(0,i.Z)().i18n.language;return(0,r.yx)(n)}},25614:function(n,e,t){t.d(e,{$T:function(){return x},ZO:function(){return g},oB:function(){return p}});var r=t(22386),i=t(2784),o=t(49948),c=t(15798),a=t.n(c),l=t(63082),d=t(31544),s=t(64626),u=t(14016),h=t(34406),f=function(n,e){var t=Math.abs(n);if(0===t)return 0;if(t<1){if(t<1e-18)return 4+(0,u.lf)(t);var r=Math.min(4+(0,u.lf)(t),18),i=t.toFixed(r).match(/0+$/);return r-(i?i[0].length:0)}return t<10&&e?4:2},v=function(n,e,t,r,i){return i?e+n+" "+(r?t.toUpperCase():""):e+(r?t:"")+n};function p(n){var e,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:2781,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(!(0,u.pG)(n))return"-";var c=o.abbreviate,l=o.useSymbol,s=void 0===l||l,h=o.decimal,p=o.comma,x=void 0===p||p,g=o.usePriceAbbreviation,m=void 0!==g&&g,b=o.converted,Z=o.usePrefix,y=o.displayingCurrency,w=o.currency,j=o.decimal,N=a().currencies.map[i],C=a().currencies.isCrypto(w||i),M=w||(null===(e=a().currencies.map[N.id])||void 0===e?void 0:e.token),k=(null===N||void 0===N?void 0:N.symbol)===y?1:b?n:n/t,S=Z?n>=0?"+ ":"- ":"";if(m&&Math.abs(k)<d.Y$&&0!==k){var T=Math.sign(k),P={1:"","-1":"-"};return k=C?"<".concat(P[T],"0.0\u202600001 ").concat(M):"<".concat(P[T]).concat(s?M:"","0.0\u202600001"),v(k,"","",!1,!1)}if(j="number"===typeof h?h:"function"===typeof h?h(k,C):f(k,C),c)k=(0,u.DH)(k,j);else if(k=k.toFixed(j),x){var F=(0,r.Z)(k.split("."),2),E=F[0],L=F[1],I=void 0===L?"":L;k=E.replace(/\B(?=(\d{3})+(?!\d))/g,",")+(I?".".concat(I):"")}var G=Z?String(k).replace("-",""):k;return m&&(0===Number(G)?G="< 0.0\u202600001":Number(G)<d.Sp&&(G=G.slice(0,3)+"..."+G.slice(-5))),v(G,S,M,s,C)}function x(n){var e,t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},c=h.env.GRAVITY_APP?null===(e=(0,i.useContext)(l.fL))||void 0===e?void 0:e.currency:(0,o.useSelector)((function(n){return n.app.currency})),a=r.currencyId,d=a||(null===c||void 0===c?void 0:c.id)||2781,u=null===(t=s.C.get(d))||void 0===t?void 0:t.p;return p(n,u,d,r)}var g=function(n,e){var t=e.id,r=e.symbol,i=e.decimal,o=e.abbreviate,c=void 0!==o&&o,l=a().currencies.isCrypto(t),d=null!==i&&void 0!==i?i:f(n,l),s=r?" "+r:"";return c?(0,u.DH)(n,i,!0)+s:(0,u.q1)(n,d)+s}},31544:function(n,e,t){t.d(e,{Sp:function(){return i},V8:function(){return o},Y$:function(){return r}});var r=1e-18,i=1e-12,o="<0.000000000001"},51516:function(n,e,t){t.d(e,{l:function(){return r}});var r=function(n){if(isNaN(Number(n)))return 0;var e=Math.abs(Number(n));if(e>=1||0===e)return 0;for(var t=0,r=e%=1;r>=e;)t++,r=e%(1/Math.pow(10,t));return Math.max(t-1,0)}},30463:function(n,e,t){t.d(e,{DH:function(){return d},js:function(){return f},pC:function(){return u},q1:function(){return s},qh:function(){return h}});var r=t(22386),i=t(51516),o=Math.pow(10,12),c=Math.pow(10,9),a=Math.pow(10,6),l=Math.pow(10,3);function d(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,t=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],d="",u=n;return n>=o?(u=n/o,d="T"):n>=c?(u=n/c,d="B"):n>=a?(u=n/a,d="M"):n>=l&&r&&(u=n/l,d="K"),t?s(u,e):(i?u.toFixed(e).toString():(Math.round(u*Math.pow(10,e))/Math.pow(10,e)).toString())+d}function s(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;if(Number(n)<1)return Number(n).toFixed(e);var t=(0,r.Z)(Number(Number(n).toFixed(e)).toString().split("."),2),i=t[0],o=t[1],c=void 0===o?"":o;return i.replace(/\B(?=(\d{3})+(?!\d))/g,",")+(c?"."+c:"")}var u=function(n,e){var t=Math.abs(n);if(0===t)return 0;if(t<1){var r=Math.min(4+(0,i.l)(t),12),o=t.toFixed(r).match(/0+$/);return r-(o?o[0].length:0)}return t<10&&e?4:2},h=function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1/0;return"number"===typeof n&&!Number.isNaN(n)&&n>=e},f=function(n){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],t=n%10,r=n%100,i=r-t;return 1===t&&10!==i?(e?n:"")+"st":2===t&&10!==i?(e?n:"")+"nd":3===t&&10!==i?(e?n:"")+"rd":(e?n:"")+"th"}},77241:function(n,e,t){t.d(e,{g:function(){return i}});var r=t(30463),i=function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=e.decimals,i=void 0===t?1:t;return(0,r.qh)(n)?Number(n).toFixed(i)+"%":"--"}},14016:function(n,e,t){t.d(e,{DH:function(){return l},lf:function(){return u},pG:function(){return s},q1:function(){return d}});var r=t(22386),i=Math.pow(10,12),o=Math.pow(10,9),c=Math.pow(10,6),a=Math.pow(10,3);function l(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,t=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],l=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],s="",u=n;return n>=i?(u=n/i,s="T"):n>=o?(u=n/o,s="B"):n>=c?(u=n/c,s="M"):n>=a&&r&&(u=n/a,s="K"),t?"".concat(d(u,e)).concat(s):(l?u.toFixed(e).toString():(Math.round(u*Math.pow(10,e))/Math.pow(10,e)).toString())+s}function d(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;if(Number(n)<1)return Number(n).toFixed(e);var t=(0,r.Z)(Number(Number(n).toFixed(e)).toString().split("."),2),i=t[0],o=t[1],c=void 0===o?"":o;return i.replace(/\B(?=(\d{3})+(?!\d))/g,",")+(c?"."+c:"")}var s=function(n){var e=Math.abs(n);return!isNaN(e)&&e!==1/0&&null!==n},u=function(n){if(isNaN(Number(n)))return 0;var e=Math.abs(Number(n));if(e>=1||0===e)return 0;for(var t=0,r=e%=1;r>=e;)t++,r=e%(1/Math.pow(10,t));return Math.max(t-1,0)}},54382:function(n,e,t){t.r(e);var r=t(62230),i=t(85244),o=t(98240),c=t(22386),a=t(81541),l=t(52322),d=t(39721),s=t(2784),u=t(66582),h=t(82740),f=t(8112),v={strategy:"fixed",modifiers:[{name:"computeStyles",options:{adaptive:!1}}]},p=function(n){var e,t,o=(0,s.useState)(!1),c=o[0],u=o[1],f=(0,h.Fg)(),p={fn:function(){return{onShow:function(){return u(!0)},onHidden:function(){return u(!1)}}}},x=(0,i.Z)((0,r.Z)({},n),{className:"cmc-uikit-tippy "+(null!==(e=n.className)&&void 0!==e?e:"")+" "+(f.isDay?"cmc-uikit-theme-day":"cmc-uikit-theme-night")});(x.popperOptions=v,x.plugins=[p].concat((0,a.Z)(n.plugins||[])),n.render)?x.render=function(){for(var e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];return c&&n.render?(t=n).render.apply(t,(0,a.Z)(r)):""}:x.content=c?n.content:"";return(0,l.jsx)(l.Fragment,{children:(0,l.jsx)(d.ZP,(0,r.Z)({},x))})},x="popover-state";e.default=function(n){var e=n.placement,t=void 0===e?"bottom":e,a=n.content,d=n.children,h=n.singletonTarget,v=n.trigger,g=void 0===v?"mouseenter focus":v,m=n.onShown,b=n.onHidden,Z=n.setVisible,y=n.hideOnClick,w=(0,o.Z)(n,["placement","content","children","singletonTarget","trigger","onShown","onHidden","setVisible","hideOnClick"]),j=(0,c.Z)((0,f.$G)(),1)[0],N=(0,s.useRef)(null),C=(0,s.useRef)(null),M=function(n,e){e&&(n.stopPropagation(),e.hide(),Z&&Z(!1))},k=function(n){if(window.innerWidth<768){var e;document.body.style.overflow="hidden",window.history.pushState(x,""),C.current=function(e){e.state!==x&&M(e,n)},window.addEventListener("popstate",C.current),N.current=function(e){return M(e,n)},null===(e=n.popper)||void 0===e||e.addEventListener("click",N.current);var t=n.popper.querySelector(".tippy-box");if(t&&!t.querySelector(".close-button")){var r=document.createElement("button");r.textContent=j("Close"),r.classList.add("close-button"),r.addEventListener("click",N.current),t.appendChild(r),t.addEventListener("click",(function(n){n.stopPropagation()}))}}m&&m(n)},S=function(n){var e;window.innerWidth<768&&(document.body.style.overflow="",window.history.state===x&&window.history.back(),window.removeEventListener("popstate",C.current),null===(e=n.popper)||void 0===e||e.removeEventListener("click",N.current));b&&b(n)};return"undefined"!==typeof w.visible?(0,l.jsx)(p,(0,i.Z)((0,r.Z)({content:a,singleton:h,placement:t},w),{onShown:k,onHidden:S,children:d})):(0,l.jsx)(p,(0,i.Z)((0,r.Z)({content:a,singleton:h,trigger:"".concat(g," ").concat(u.tq?"click":""),placement:t,hideOnClick:y},w),{onShown:k,onHidden:S,children:d}))}},16091:function(n,e,t){var r=t(43867),i=t(79200),o=t(33286),c=t(25186);e.Z=function(n,e,t){n=(0,c.Z)(n),e=(0,i.Z)(e);var a=n.length,l=t=void 0===t?a:(0,r.Z)((0,o.Z)(t),0,a);return(t-=e.length)>=0&&n.slice(t,l)==e}}}]);