!function(){"use strict";var n=function(){return function(){try{if(window.top.location.href)return!0}catch(n){return!1}}()?window.top:window.self},e={default:"\n      background: #222;\n      color: #bada55;\n      border-radius: 4px 0 0 4px;\n      padding: 3px 4px 2px;\n      font-weight: normal;\n  ",reset:"\n      background: transparent;\n      color: inherit;\n      border-radius: 0;\n      padding: 0;\n      font-weight: normal;\n  ",debug:"\n      background: palegreen;\n      color: darkgreen;\n      border-radius: 0 4px 4px 0;\n      padding: 3px 4px 2px;\n      margin-right: 10px;\n      font-weight: normal;\n  ",info:"\n      background: lightsteelblue;\n      color: midnightblue;\n      border-radius: 0 4px 4px 0;\n      padding: 3px 4px 2px;\n      margin-right: 10px;\n      font-weight: normal;\n  ",trace:"\n      background: plum;\n      color: indigo;\n      border-radius: 0 4px 4px 0;\n      padding: 3px 4px 2px;\n      margin-right: 10px;\n      font-weight: normal;\n  ",warn:"\n      background: lightcoral;\n      color: moccasin;\n      border-radius: 0 4px 4px 0;\n      padding: 3px 4px 2px;\n      margin-right: 10px;\n      font-weight: normal;\n  ",error:"\n      background: firebrick;\n      color: gainsboro;\n      border-radius: 0 4px 4px 0;\n      padding: 3px 4px 2px;\n      margin-right: 10px;\n      font-weight: normal;\n  ",table:"\n    background: lightsteelblue;\n    color: midnightblue;\n    border-radius: 0 4px 4px 0;\n    padding: 3px 4px 2px;\n    margin-right: 10px;\n    font-weight: normal;\n  "},t=function(n){n=n||"debug";for(var t=arguments.length,a=new Array(t>1?t-1:0),o=1;o<t;o++)a[o-1]=arguments[o];var r;"string"==typeof a[0]?a[1]?(console.log("%cADG%c".concat(n.toUpperCase()," %c%s"),e.default,e[n],e.reset,a[0]),a.shift(),a.map((function(n){console.log(n)}))):console.log("%cADG%c".concat(n.toUpperCase()," %c%s"),e.default,e[n],e.reset,a[0]):(r=console).log.apply(r,["%cADG%c".concat(n.toUpperCase()),e.default,e[n]].concat(a))},a=function(){var e=n();return e&&e.localStorage&&e.localStorage.getItem("ADAGIO_DEV_DEBUG")},o=function(){if(a()){for(var n=arguments.length,e=new Array(n),o=0;o<n;o++)e[o]=arguments[o];t.apply(void 0,["debug"].concat(e))}};!function(){if(!n().navigator.userAgent.match(/(MSIE|Trident)/)){try{!function(){var e=n();if(e===window.top)o("load cleanAd in window.top");else{var t=function(n){try{return Object.getOwnPropertyNames(n.parent.location).indexOf("toString")>-1}catch(n){return!1}}(e)&&e.frameElement&&e.frameElement.id?e.frameElement.id:"unknown frame id";o("load cleanAd in iframe: ".concat(t))}if(e.ADAGIO=e.ADAGIO||{},e.ADAGIO.cleanAdIsLoading=e.ADAGIO.cleanAdIsLoading||!1,e.ADAGIO.cleanAdIsLoaded=e.ADAGIO.cleanAdIsLoaded||!1,e.ADAGIO.cleanAdIsLoading||e.ADAGIO.cleanAdIsLoaded)o("cleanAd script is already loading or initialized");else{o("cleanAd script is trying to be loaded"),e.ADAGIO.cleanAdIsLoading=!0;var a=e.document.createElement("script");a.src="https://cadmus.script.ac/dahhc4ozyvjm6/script.js",a.async=!0,a.setAttribute("data-client-key","7d1ed67e-10ef-4c22-b165-710c6bfa1345"),a.setAttribute("data-api-integration-mode","prebid");var r=function n(){a.removeEventListener("load",n),e.document.head.contains(a)?o("cleanAd script has been loaded but not initialized"):(e.ADAGIO.cleanAdIsLoaded=!0,e.ADAGIO.cleanAdIsLoading=!1,o("cleanAd script has been initialized"))};a.addEventListener("load",r),setTimeout((function(){e.ADAGIO.cleanAdIsLoaded||(o("cleanAd script failed to initialize in time"),a.removeEventListener("load",r),e.document.head.removeChild(a)),e.ADAGIO.cleanAdIsLoading=!1}),1e3),e.document.head.appendChild(a)}}()}catch(n){console.error(n)}fetch("https://script.4dex.io/adagio.js").then((function(n){return n.text()})).then((function(e){var t=n();t.localStorage.getItem("adagioScript")||(t.ADAGIO=t.ADAGIO||{},t.ADAGIO.late=!0,Function(e)()),t.localStorage.setItem("adagioScript",e)})).catch((function(n){console.log(n)}))}}()}();
