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]="70d0f1d6-d132-467a-a664-10f62f07cebd",e._sentryDebugIdIdentifier="sentry-dbid-70d0f1d6-d132-467a-a664-10f62f07cebd")}catch(e){}("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{}).SENTRY_RELEASE={id:"d2911879bc35c39df91a8e85b8eeba45c19f4ad7"},(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[398],{91521:function(e,t,n){"use strict";function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}t.Z=function(e,t){var o=e.action,i=e.initialData,a=e.onSuccess,u=e.onError,l=e.sentry,c=void 0!==l&&l,s=_slicedToArray((0,r.useState)(!1),2),f=s[0],d=s[1],p=_slicedToArray((0,r.useState)(),2),b=p[0],y=p[1],m=_slicedToArray((0,r.useState)(i),2),g=m[0],h=m[1];return[(0,r.useCallback)(function(){return d(!0),o.apply(void 0,arguments).then(function(e){var t=(null==e?void 0:e.data)||e;return y(),h(t),d(!1),a&&a(t),t}).catch(function(e){y(e),h(i),d(!1),u&&u(e),c&&Promise.resolve().then(function(){return function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==_typeof(e)&&"function"!=typeof e)return{default:e};var n=_getRequireWildcardCache(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}(n(71817))}).then(function(t){return(0,t.captureException)(e)})})},t),g,f,b]};var r=n(67294);function _getRequireWildcardCache(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(_getRequireWildcardCache=function(e){return e?n:t})(e)}function _slicedToArray(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,u=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(u.push(r.value),u.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return u}}(e,t)||function(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}},91296:function(e,t,n){var r=0/0,o=/^\s+|\s+$/g,i=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,u=/^0o[0-7]+$/i,l=parseInt,c="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,s="object"==typeof self&&self&&self.Object===Object&&self,f=c||s||Function("return this")(),d=Object.prototype.toString,p=Math.max,b=Math.min,now=function(){return f.Date.now()};function isObject(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function toNumber(e){if("number"==typeof e)return e;if("symbol"==typeof(t=e)||t&&"object"==typeof t&&"[object Symbol]"==d.call(t))return r;if(isObject(e)){var t,n="function"==typeof e.valueOf?e.valueOf():e;e=isObject(n)?n+"":n}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(o,"");var c=a.test(e);return c||u.test(e)?l(e.slice(2),c?2:8):i.test(e)?r:+e}e.exports=function(e,t,n){var r,o,i,a,u,l,c=0,s=!1,f=!1,d=!0;if("function"!=typeof e)throw TypeError("Expected a function");function invokeFunc(t){var n=r,i=o;return r=o=void 0,c=t,a=e.apply(i,n)}function shouldInvoke(e){var n=e-l,r=e-c;return void 0===l||n>=t||n<0||f&&r>=i}function timerExpired(){var e,n,r,o=now();if(shouldInvoke(o))return trailingEdge(o);u=setTimeout(timerExpired,(e=o-l,n=o-c,r=t-e,f?b(r,i-n):r))}function trailingEdge(e){return(u=void 0,d&&r)?invokeFunc(e):(r=o=void 0,a)}function debounced(){var e,n=now(),i=shouldInvoke(n);if(r=arguments,o=this,l=n,i){if(void 0===u)return c=e=l,u=setTimeout(timerExpired,t),s?invokeFunc(e):a;if(f)return u=setTimeout(timerExpired,t),invokeFunc(l)}return void 0===u&&(u=setTimeout(timerExpired,t)),a}return t=toNumber(t)||0,isObject(n)&&(s=!!n.leading,i=(f="maxWait"in n)?p(toNumber(n.maxWait)||0,t):i,d="trailing"in n?!!n.trailing:d),debounced.cancel=function(){void 0!==u&&clearTimeout(u),c=0,r=l=o=u=void 0},debounced.flush=function(){return void 0===u?a:trailingEdge(now())},debounced}},64616:function(e,t,n){"use strict";n.d(t,{Z:function(){return Container}}
1);var r=n(85893),o=n(6984),i=n(25009),a=n(94200),u=n(57670),l=n(1958),c=n(81379);function Container(e){let{onClose:t,title:n,theme:s="dark",children:f,...d}=e,p=(0,c.default)(),b="dark"===s;return(0,r.jsxs)(i.m,{full:!p,animation:"fadeIn",background:b?"#26272C":"#F9F9F9",gap:"small",onClickOutside:t,onEsc:t,children:[(0,r.jsxs)(a.x,{direction:"row",justify:n?"between":"end",align:"center",flex:!1,children:[n&&(0,r.jsx)(u.X,{level:"2",size:p?"small":"medium",margin:{left:"medium",vertical:"none"},children:n}),(0,r.jsx)(l.z,{alignSelf:"end",icon:(0,r.jsx)(o.n,{color:b?"white":"#A0A0A0",size:"large",onClick:t})})]}),(0,r.jsx)(a.x,{overflow:{vertical:"auto"},...d,children:f})]})}},80398:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return SearchOverlay}});var r=n(85893),o=n(38017),i=n(64616);function SearchOverlay(e){let{onClose:t}=e;return(0,r.jsx)(i.Z,{pad:"small",onClose:t,children:(0,r.jsx)(o.Z,{width:"100%",size:"large",autoFocus:!0})})}},56982:function(e,t,n){"use strict";n.d(t,{Z:function(){return Coin}});var r=n(82729),o=n(85893),i=n(63829),a=n(94200),u=n(18087),l=n(70714);function _templateObject(){let e=(0,r._)(["\n flex-shrink: 0;\n"]);return _templateObject=function(){return e},e}let c=(0,l.default)(i.q).withConfig({componentId:"sc-9d13e2be-0"})(_templateObject());function Coin(e){let{icon:t,name:n,symbol:r,slug:i,size:l,isLast:s,...f}=e;return(0,o.jsxs)(a.x,{direction:"row",align:"center",gap:"small",border:!s&&{color:"#EBE9E9",side:"bottom"},pad:"small",elevation:"",...f,children:[(0,o.jsx)(c,{size:"small"===l?"small":"32px",src:t}),(0,o.jsxs)(a.x,{children:[(0,o.jsx)(u.x,{size:"small",truncate:!0,children:n}),(0,o.jsxs)(u.x,{color:"#676C79",size:"xsmall",truncate:!0,children:["$",r,"ã»",i]})]})]})}},38017:function(e,t,n){"use strict";n.d(t,{Z:function(){return Search}});var r=n(82729),o=n(85893),i=n(6154),a=n(94200),u=n(59459),l=n(24372),c=n(91296),s=n.n(c),f=n(11163),d=n(67294),p=n(70714),b=n(91521),y=n(24057),m=n(19147),g=n(56982);function _templateObject(){let e=(0,r._)(["\n &:focus-within {\n border-color: #798197;\n }\n /* background: #313239; */\n ","\n\n input::placeholder {\n color: #b6adad;\n }\n input {\n padding: 13px 32px 13px 24px;\n }\n"]);return _templateObject=function(){return e},e}let h=[],v=(0,m.Z)({duration:"0.6s"}),x=(0,p.default)(a.x).attrs({border:{side:"all",color:"#2E364D"},round:"large",justify:"center"}).withConfig({componentId:"sc-348e5b78-0"})(_templateObject(),e=>{let{isLoading:t}=e;return t&&v}),makeSuggestion=e=>{let{coin:{icon:t,name:n,symbol:r,slug:i},isLast:a,includeSlug:u}=e;return{label:(0,o.jsx)(g.Z,{icon:t,name:n,symbol:r,slug:i,isLast:a,includeSlug:u}),value:i}};function Search(e){let{value:t="",onChange:n,autoFocus:r,disabled:a,includeSlug:c=!1,...p}=e,m=(0,f.useRouter)(),[g,v]=(0,d.useState)(t),[j,w,O]=(0,b.Z)({action:e=>i.Z.get("/api/search?q=".concat(e).concat(c?"&include=slug":"")),initialData:h},[]),_=(0,d.useMemo)(()=>s()(e=>{e.length>2&&j(e),(0,y.LN)("search","typed",e)},400),[]),k=(0,d.useMemo)(()=>w.map((e,t)=>makeSuggestion({coin:e,isLast:t===w.length-1,includeSlug:c})),[w]),S=(0,d.useCallback)(e=>{let{value:t}=e.target;v(t),_(t)},[]),E=(0,d.useCallback)(e=>{let t=e.suggestion.value;if(n)return n(w.find(e=>e.slug===t));m.push("/coin/".concat(t)),(0,y.LN)("search","selected",t)},[w]);return(0,o.jsx)(x,{width:{width:"100%",max:"380px"},isLoading:O,...p,children:(0,o.jsx)(u.o,{dropProps:{elevation:"none",background:"white",border:{side:"bottom"},round:"xsmall",stretch:!0,margin:{top:"xsmall"},zIndex:200},disabled:a,autoFocus:r,icon:(0,o.jsx)(l.o,{size:"16px",color:"#2E364D"}),placeholder:"Search coin, symbol".concat(c?", slug":"","..."),plain:!0,value:g,onChange:S,suggestions:k,onSelect:E,size:"small",reverse:!0})})}}}]); 2//# sourceMappingURL=398.f78043bd570c57c8.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.