!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=41)}([function(e,t,n){"use strict";var r=n(4),o=Object.prototype.toString;function i(e){return"[object Array]"===o.call(e)}function a(e){return void 0===e}function s(e){return null!==e&&"object"==typeof e}function c(e){return"[object Function]"===o.call(e)}function u(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),i(e))for(var n=0,r=e.length;n0?o(t)+s(e.toFixed(2)):void 0},a=function(e){return Number(e.toFixed(3).slice(0,-1))},s=function(e){return(e+="").includes(".")||(e+="."),e.replace(/(\d)(?=(\d{3})+\.)/g,(function(e,t){return t+","})).replace(/\.$/,"")}},function(e,t,n){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r=200&&e<300}};c.headers={common:{Accept:"application/json, text/plain, */*"}},r.forEach(["delete","get","head"],(function(e){c.headers[e]={}})),r.forEach(["post","put","patch"],(function(e){c.headers[e]=r.merge(i)})),e.exports=c}).call(this,n(23))},function(e,t,n){"use strict";var r=n(0),o=n(25),i=n(5),a=n(27),s=n(30),c=n(31),u=n(9);e.exports=function(e){return new Promise((function(t,l){var d=e.data,p=e.headers;r.isFormData(d)&&delete p["Content-Type"];var m=new XMLHttpRequest;if(e.auth){var f=e.auth.username||"",h=e.auth.password||"";p.Authorization="Basic "+btoa(f+":"+h)}var C=a(e.baseURL,e.url);if(m.open(e.method.toUpperCase(),i(C,e.params,e.paramsSerializer),!0),m.timeout=e.timeout,m.onreadystatechange=function(){if(m&&4===m.readyState&&(0!==m.status||m.responseURL&&0===m.responseURL.indexOf("file:"))){var n="getAllResponseHeaders"in m?s(m.getAllResponseHeaders()):null,r={data:e.responseType&&"text"!==e.responseType?m.response:m.responseText,status:m.status,statusText:m.statusText,headers:n,config:e,request:m};o(t,l,r),m=null}},m.onabort=function(){m&&(l(u("Request aborted",e,"ECONNABORTED",m)),m=null)},m.onerror=function(){l(u("Network Error",e,null,m)),m=null},m.ontimeout=function(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),l(u(t,e,"ECONNABORTED",m)),m=null},r.isStandardBrowserEnv()){var y=n(32),g=(e.withCredentials||c(C))&&e.xsrfCookieName?y.read(e.xsrfCookieName):void 0;g&&(p[e.xsrfHeaderName]=g)}if("setRequestHeader"in m&&r.forEach(p,(function(e,t){void 0===d&&"content-type"===t.toLowerCase()?delete p[t]:m.setRequestHeader(t,e)})),r.isUndefined(e.withCredentials)||(m.withCredentials=!!e.withCredentials),e.responseType)try{m.responseType=e.responseType}catch(t){if("json"!==e.responseType)throw t}"function"==typeof e.onDownloadProgress&&m.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&m.upload&&m.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then((function(e){m&&(m.abort(),l(e),m=null)})),void 0===d&&(d=null),m.send(d)}))}},function(e,t,n){"use strict";var r=n(26);e.exports=function(e,t,n,o,i){var a=new Error(e);return r(a,t,n,o,i)}},function(e,t,n){"use strict";var r=n(0);e.exports=function(e,t){t=t||{};var n={},o=["url","method","params","data"],i=["headers","auth","proxy"],a=["baseURL","url","transformRequest","transformResponse","paramsSerializer","timeout","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","maxContentLength","validateStatus","maxRedirects","httpAgent","httpsAgent","cancelToken","socketPath"];r.forEach(o,(function(e){void 0!==t[e]&&(n[e]=t[e])})),r.forEach(i,(function(o){r.isObject(t[o])?n[o]=r.deepMerge(e[o],t[o]):void 0!==t[o]?n[o]=t[o]:r.isObject(e[o])?n[o]=r.deepMerge(e[o]):void 0!==e[o]&&(n[o]=e[o])})),r.forEach(a,(function(r){void 0!==t[r]?n[r]=t[r]:void 0!==e[r]&&(n[r]=e[r])}));var s=o.concat(i).concat(a),c=Object.keys(t).filter((function(e){return-1===s.indexOf(e)}));return r.forEach(c,(function(r){void 0!==t[r]?n[r]=t[r]:void 0!==e[r]&&(n[r]=e[r])})),n}},function(e,t,n){"use strict";function r(e){this.message=e}r.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},r.prototype.__CANCEL__=!0,e.exports=r},function(e,t){function n(e,t,n,r,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,o)}e.exports=function(e){return function(){var t=this,r=arguments;return new Promise((function(o,i){var a=e.apply(t,r);function s(e){n(a,o,i,s,c,"next",e)}function c(e){n(a,o,i,s,c,"throw",e)}s(void 0)}))}}},function(e,t,n){e.exports=n(18)},function(e,t,n){"use strict";t.a={development:{url:{api:"api",widgetApi:"/widget-api"}},production:{url:{api:"https://3rdparty-apis.coinmarketcap.com/v1/cryptocurrency/top",widgetApi:"https://3rdparty-apis.coinmarketcap.com/v1/cryptocurrency/widget"}}}},function(e,t,n){var r=function(e){"use strict";var t,n=Object.prototype,r=n.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function c(e,t,n,r){var o=t&&t.prototype instanceof h?t:h,i=Object.create(o.prototype),a=new E(r||[]);return i._invoke=function(e,t,n){var r=l;return function(o,i){if(r===p)throw new Error("Generator is already running");if(r===m){if("throw"===o)throw i;return M()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var s=q(a,n);if(s){if(s===f)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===l)throw r=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=p;var c=u(e,t,n);if("normal"===c.type){if(r=n.done?m:d,c.arg===f)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r=m,n.method="throw",n.arg=c.arg)}}}(e,n,a),i}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var l="suspendedStart",d="suspendedYield",p="executing",m="completed",f={};function h(){}function C(){}function y(){}var g={};g[i]=function(){return this};var v=Object.getPrototypeOf,b=v&&v(v(S([])));b&&b!==n&&r.call(b,i)&&(g=b);var k=y.prototype=h.prototype=Object.create(g);function w(e){["next","throw","return"].forEach((function(t){e[t]=function(e){return this._invoke(t,e)}}))}function x(e,t){var n;this._invoke=function(o,i){function a(){return new t((function(n,a){!function n(o,i,a,s){var c=u(e[o],e,i);if("throw"!==c.type){var l=c.arg,d=l.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){l.value=e,a(l)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}(o,i,n,a)}))}return n=n?n.then(a,a):a()}}function q(e,n){var r=e.iterator[n.method];if(r===t){if(n.delegate=null,"throw"===n.method){if(e.iterator.return&&(n.method="return",n.arg=t,q(e,n),"throw"===n.method))return f;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return f}var o=u(r,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,f;var i=o.arg;return i?i.done?(n[e.resultName]=i.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,f):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,f)}function L(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function _(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function E(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(L,this),this.reset(!0)}function S(e){if(e){var n=e[i];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function n(){for(;++o=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(c&&u){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),_(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;_(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:S(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),f}},e}(e.exports);try{regeneratorRuntime=r}catch(e){Function("r","regeneratorRuntime = r")(r)}},function(e,t,n){"use strict";var r,o=function(){return void 0===r&&(r=Boolean(window&&document&&document.all&&!window.atob)),r},i=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),a=[];function s(e){for(var t=-1,n=0;n1)for(var n=1;n=0)return;a[t]="set-cookie"===t?(a[t]?a[t]:[]).concat([n]):a[t]?a[t]+", "+n:n}})),a):a}},function(e,t,n){"use strict";var r=n(0);e.exports=r.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function o(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=o(window.location.href),function(t){var n=r.isString(t)?o(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0}},function(e,t,n){"use strict";var r=n(0);e.exports=r.isStandardBrowserEnv()?{write:function(e,t,n,o,i,a){var s=[];s.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),r.isString(o)&&s.push("path="+o),r.isString(i)&&s.push("domain="+i),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},function(e,t,n){"use strict";var r=n(11);function o(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;e((function(e){n.reason||(n.reason=new r(e),t(n.reason))}))}o.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},o.source=function(){var e;return{token:new o((function(t){e=t})),cancel:e}},e.exports=o},function(e,t,n){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},,,,,,,function(e,t,n){"use strict";n.r(t);var r=n(2),o=n.n(r),i=n(12),a=n.n(i),s=(n(42),n(13)),c=n.n(s),u=n(3),l=n(14),d=n(1),p=function(){document.querySelector(".coin-marquee-container__skeleton").remove()},m=function(e,t){var n=document.createElement("div");n.setAttribute("class","coin-marquee-wrapper coin-marquee-wrapper--".concat(e," ").concat(t?"coin-marquee-wrapper--transparent":""));var r="\n \n
\n ").concat(function(){var e=document.createElement("div");e.className="coin-marquee-container__skeleton";for(var t=document.createDocumentFragment(),n=0;n<3;n++){var r=document.createElement("div");r.setAttribute("class","coin-marquee-item"),r.innerHTML="\n
\n
\n
\n
\n
\n
\n
\n ",t.appendChild(r)}return e.appendChild(t),e.outerHTML}(),"\n
\n ");return n.innerHTML=r,n},f=function(e,t,n){var r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=arguments.length>4?arguments[4]:void 0,i=document.createElement("div");i.className="coin-marquee-container__inner";for(var a=document.createDocumentFragment(),s=r?2*e.length:e.length,c=0;c\n \n \n "):"",m="\n \n ").concat(p,"\n
\n
\n
").concat(o,"
\n
").concat(l,"
\n
\n
\n
").concat(i,"
\n
\n ").concat(c,"%\n
\n
\n
\n
\n ");return d.innerHTML=m,d};function C(){return y.apply(this,arguments)}function y(){return(y=a()(o.a.mark((function e(){var t,n,r,i,a,s,u,h,C,y,g,v,b,k,w,x,q;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=Object.values(d.a),n=document.getElementById("coinmarketcap-widget-marquee"),r=n.getAttribute("coins"),i=n.getAttribute("currency"),void 0===(a=t.find((function(e){return e.symbol.toUpperCase()===i})))&&(a=t[0]),s=n.getAttribute("theme"),u="true"===n.getAttribute("transparent"),h="true"===n.getAttribute("show-symbol-logo"),n.appendChild(m(s,u)),e.next=12,c.a.get("".concat(l.a.production.url.widgetApi,"?id=").concat(r,"&convert_id=").concat(a.id));case 12:C=e.sent,y=Object.values(C.data.data),220,g=y.length,100,b=(v=220*g)/100,k=n.querySelector("#coin-marquee-container"),w=k.getBoundingClientRect(),x=v>=w.width,q=f(y,a,h,x,b),k.appendChild(q),p();case 25:case"end":return e.stop()}}),e)})))).apply(this,arguments)}window&&(window.__WIDGET_INIT=C),document.addEventListener("DOMContentLoaded",(function(){C()}))},function(e,t,n){var r=n(16),o=n(43);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]);var i={insert:"head",singleton:!1};r(o,i);e.exports=o.locals||{}},function(e,t,n){(t=n(17)(!1)).push([e.i,'.coin-marquee{-webkit-text-size-adjust:none}.coin-marquee div{box-sizing:border-box}.coin-marquee-wrapper{display:flex;align-items:center;background:#fff;border-top:1px solid #eff2f5;border-bottom:1px solid #eff2f5;overflow:hidden}.coin-marquee-wrapper--dark{background:#171924;border-top:1px solid #222531;border-bottom:1px solid #222531}.coin-marquee-wrapper--dark .coin-marquee-header-signature{border-right:1px solid #40424e}.coin-marquee-wrapper--dark .coin-marquee-header-signature__power-by{color:#808a9d}.coin-marquee-wrapper--dark .coin-marquee-item::after{background-color:#40424e}.coin-marquee-wrapper--dark .coin-marquee-item-inner{color:#fff}.coin-marquee-wrapper--dark .coin-marquee-item-symbol{color:#a1a7bb}.coin-marquee-wrapper--dark .coin-marquee-item .coin-marquee-item--skeleton .coin-marquee-item__icon,.coin-marquee-wrapper--dark .coin-marquee-item .coin-marquee-item--skeleton .coin-marquee-item-info__row{background-color:#323546}.coin-marquee-wrapper--transparent{background:transparent !important}.coin-marquee-header{float:left;width:141px}.coin-marquee-header-signature{overflow:hidden;width:141px;padding:12px 16px;box-sizing:border-box;border-right:1px solid #eff2f5}.coin-marquee-header-signature svg,.coin-marquee-header-signature div{float:left}.coin-marquee-header-signature svg{height:18px}.coin-marquee-header-signature div{height:17px;display:inline-block;line-height:18x;font-weight:400;font-size:9px;line-height:18px;color:#808a9d}.coin-marquee-container{display:flex;width:calc(100% - 141px);overflow:hidden;white-space:nowrap}.coin-marquee-container__inner{position:relative;display:inline-block;font-size:0;line-height:0;-webkit-animation-play-state:running;animation-play-state:running}.coin-marquee-container__inner:hover{-webkit-animation-play-state:paused;animation-play-state:paused}.coin-marquee-item{position:relative;min-width:220px;display:inline-block;box-sizing:border-box;padding:0 16px}.coin-marquee-item:hover,.coin-marquee-item:focus{color:inherit}.coin-marquee-item::after{content:"";position:absolute;top:20px;right:0;display:inline-block;background-color:#eff2f5;width:1px;height:20px}.coin-marquee-item-inner{padding:16px 0;display:flex;width:100%;align-items:center;text-decoration:none;color:#000}.coin-marquee-item-inner:hover{color:inherit}.coin-marquee-item-inner:hover .coin-marquee-item-name{opacity:.6}.coin-marquee-item__icon{margin-right:8px;display:inline-block;line-height:1;min-width:20px;max-width:20px;height:20px}.coin-marquee-item__icon img{width:100%;height:100%}.coin-marquee-item-info{width:100%}.coin-marquee-item-info__row{display:flex;align-items:center;justify-content:space-between;line-height:1}.coin-marquee-item-info__row:last-of-type{margin-top:2px}.coin-marquee-item-name{margin-right:12px;transition:.1s}.coin-marquee-item-name,.coin-marquee-item-price{font-size:12px;line-height:1;font-weight:600}.coin-marquee-item-symbol{font-size:11px;color:#58667e;transform-origin:left;transform:scale(0.9)}.coin-marquee-item-changes{font-size:11px;font-weight:600}.coin-marquee-item-changes__icon{width:0;height:0;position:relative;margin-right:3px;border-left:4px solid transparent;border-right:4px solid transparent}.coin-marquee-item-changes--up{color:#16c784}.coin-marquee-item-changes--up .coin-marquee-item-changes__icon{top:-8px;border-bottom:5px solid #16c784}.coin-marquee-item-changes--down{color:#ea3943}.coin-marquee-item-changes--down .coin-marquee-item-changes__icon{top:10px;border-top:5px solid #ea3943}.coin-marquee-item--skeleton .coin-marquee-item__icon{background-color:#eaeff5;border-radius:50%}.coin-marquee-item--skeleton .coin-marquee-item-info__row{width:40px;height:10px;background-color:#eaeff5}.coin-marquee-item--skeleton .coin-marquee-item-info__row:first-of-type{width:80px}@-webkit-keyframes marquee-scroll{from{transform:translateX(0%)}to{transform:translateX(-50%)}}@keyframes marquee-scroll{from{transform:translateX(0%)}to{transform:translateX(-50%)}}',""]),e.exports=t}]);