1(function(t){typeof define=="function"&&define.amd?define(t):t()})(function(){"use strict";function _createForOfIteratorHelper(t,o){var r=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=_unsupportedIterableToArray(t))||o&&t&&typeof t.length=="number"){r&&(t=r);var d=0,m=function(){};return{s:m,n:function(){return d>=t.length?{done:!0}:{done:!1,value:t[d++]}},e:function(f){throw f},f:m}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. 2In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var v,y=!0,h=!1;return{s:function(){r=r.call(t)},n:function(){var f=r.next();return y=f.done,f},e:function(f){h=!0,v=f},f:function(){try{y||r.return==null||r.return()}finally{if(h)throw v}}}}function _unsupportedIterableToArray(t,o){if(t){if(typeof t=="string")return _arrayLikeToArray(t,o);var r={}.toString.call(t).slice(8,-1);return r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set"?Array.from(t):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_arrayLikeToArray(t,o):void 0}}function _arrayLikeToArray(t,o){(o==null||o>t.length)&&(o=t.length);for(var r=0,d=Array(o);r<o;r++)d[r]=t[r];return d}function _typeof(t){"@babel/helpers - typeof";return _typeof=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(t)}var t="production",o="v0.14.5",r={development:{widgetBaseUrl:"http://localhost:3000/widgets"},staging:{widgetBaseUrl:"https://ansta-predictions-widget.3ona.co/widgets"},production:{widgetBaseUrl:"https://widgets.crypto.com/widgets"}},d="crypto-com-prediction-event-widget",m="crypto-com-prediction-widget-rendered";function v(e){var i=e?.trim();return i&&(i.startsWith("http://")||i.startsWith("https://"))?i:null}function y(){var e=document.querySelectorAll(".".concat(d)),i=[];return e.forEach(function(n){var u,l=n.dataset.predictionEventSlug;if(l){var a=v(n.dataset.urlPrefix);i.push({element:n,slug:l,theme:"dark",type:"single-prediction-event",urlPrefix:a,utmCampaign:(u=n.dataset.utmCampaign)!==null&&u!==void 0?u:null})}}),i}var h={"single-prediction-event":"prediction-event-widget"};function s(e,i,n){var u=e.slug,l=e.theme,a=e.type,c=e.urlPrefix,p=e.utmCampaign,S=e.utmSource,x=h[a],C=r[i].widgetBaseUrl,T=".html",P="".concat(C,"/").concat(x).concat(T),g=new URLSearchParams({slug:u,theme:l,v:n});return c&&g.set("url_prefix",c),p&&g.set("utm_campaign",p),S&&g.set("utm_source",S),"".concat(P,"?").concat(g.toString())}function f(e){return _typeof(e)==="object"&&e!==null&&"type"in e&&e.type==="PREDICTION_WIDGET_RESIZE"&&"width"in e&&"height"in e&&typeof e.width=="number"&&typeof e.height=="number"}function b(e){e.forEach(function(i){var n=document.createElement("iframe"),u=null;try{u=window.location.hostname}catch{u=null}var l=s({slug:i.slug,theme:i.theme,type:i.type,urlPrefix:i.urlPrefix,utmCampaign:i.utmCampaign,utmSource:u},t,o);n.src=l,n.setAttribute("frameborder","0"),n.style.width="100%",n.style.height="491px",n.style.border="none",n.style.borderRadius="0.5rem";var a=document.createElement("div");a.className=m,a.style.display="flex",a.style.maxWidth="392px",a.style.width="100%",a.style.marginTop="10px",a.style.marginBottom="10px";var c=i.element;n.onerror=function(){a.replaceWith(c)},a.appendChild(n),c.replaceWith(a)})}function _(){window.addEventListener("message",function(e){if(f(e.data)){var i=e.data.height,n=document.querySelectorAll(".".concat(m)),u=_createForOfIteratorHelper(n),l;try{for(u.s();!(l=u.n()).done;){var a=l.value,c=a.querySelector("iframe");if(c&&c.contentWindow===e.source){c.style.height="".concat(i,"px");break}}}catch(p){u.e(p)}finally{u.f()}}})}function w(e){var i=new IntersectionObserver(function(n,u){n.forEach(function(l){if(l.isIntersecting){var a=l.target,c=e.find(function(p){return p.element===a});c&&(b([c]),u.unobserve(a))}})},{rootMargin:"500px 0px 500px 0px"});e.forEach(function(n){return i.observe(n.element)})}var I=15;
2function E(){if(!window.__CDC_PREDICTIONS_WIDGET__){window.__CDC_PREDICTIONS_WIDGET__={version:function(){return o}},_();var e=y();if(e.length!==0){var i="IntersectionObserver"in window,n=i&&e.length>I;n?w(e):b(e)}}}document.readyState==="loading"?window.addEventListener("DOMContentLoaded",E):E()});
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.