Socket
Socket
Sign inDemoInstall

@goodgamestudios/cxf-banners

Package Overview
Dependencies
Maintainers
25
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@goodgamestudios/cxf-banners - npm Package Compare versions

Comparing version 1.28.0-qa.0 to 1.28.0

2

CHANGELOG.md

@@ -5,3 +5,3 @@ # Changelog

## [1.28.0-qa.0](https://gitlab.goodgamestudios.com/cxf/cxf-ad-banner/compare/v1.27.0...v1.28.0-qa.0) (2023-10-03)
## [1.28.0](https://gitlab.goodgamestudios.com/cxf/cxf-ad-banner/compare/v1.27.0...v1.28.0) (2023-10-04)

@@ -8,0 +8,0 @@

@@ -1,2 +0,2 @@

(()=>{function e(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}function t(e){return e&&e.__esModule?e.default:e}var n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},r={},o={},i=n.parcelRequire0a90;null==i&&((i=function(e){if(e in r)return r[e].exports;if(e in o){var t=o[e];delete o[e];var n={id:e,exports:{}};return r[e]=n,t.call(n.exports,n,n.exports),n.exports}var i=new Error("Cannot find module '"+e+"'");throw i.code="MODULE_NOT_FOUND",i}).register=function(e,t){o[e]=t},n.parcelRequire0a90=i),i.register("kI8SP",(function(t,n){var r,o;e(t.exports,"register",(()=>r),(e=>r=e)),e(t.exports,"resolve",(()=>o),(e=>o=e));var i={};r=function(e){for(var t=Object.keys(e),n=0;n<t.length;n++)i[t[n]]=e[t[n]]},o=function(e){var t=i[e];if(null==t)throw new Error("Could not resolve bundle with id "+e);return t}})),i.register("8s8WA",(function(e,t){e.exports=function(e){function t(e){let r,o,i,a=null;function s(...e){if(!s.enabled)return;const n=s,o=Number(new Date),i=o-(r||o);n.diff=i,n.prev=r,n.curr=o,r=o,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let a=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,((r,o)=>{if("%%"===r)return"%";a++;const i=t.formatters[o];if("function"==typeof i){const t=e[a];r=i.call(n,t),e.splice(a,1),a--}return r})),t.formatArgs.call(n,e);(n.log||t.log).apply(n,e)}return s.namespace=e,s.useColors=t.useColors(),s.color=t.selectColor(e),s.extend=n,s.destroy=t.destroy,Object.defineProperty(s,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==a?a:(o!==t.namespaces&&(o=t.namespaces,i=t.enabled(e)),i),set:e=>{a=e}}),"function"==typeof t.init&&t.init(s),s}function n(e,n){const r=t(this.namespace+(void 0===n?":":n)+e);return r.log=this.log,r}function r(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){const e=[...t.names.map(r),...t.skips.map(r).map((e=>"-"+e))].join(",");return t.enable(""),e},t.enable=function(e){let n;t.save(e),t.namespaces=e,t.names=[],t.skips=[];const r=("string"==typeof e?e:"").split(/[\s,]+/),o=r.length;for(n=0;n<o;n++)r[n]&&("-"===(e=r[n].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.slice(1)+"$")):t.names.push(new RegExp("^"+e+"$")))},t.enabled=function(e){if("*"===e[e.length-1])return!0;let n,r;for(n=0,r=t.skips.length;n<r;n++)if(t.skips[n].test(e))return!1;for(n=0,r=t.names.length;n<r;n++)if(t.names[n].test(e))return!0;return!1},t.humanize=i("4N8Pa"),t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach((n=>{t[n]=e[n]})),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let n=0;for(let t=0;t<e.length;t++)n=(n<<5)-n+e.charCodeAt(t),n|=0;return t.colors[Math.abs(n)%t.colors.length]},t.enable(t.load()),t}})),i.register("4N8Pa",(function(e,t){var n=1e3,r=60*n,o=60*r,i=24*o,a=7*i,s=365.25*i;function c(e,t,n,r){var o=t>=1.5*n;return Math.round(e/n)+" "+r+(o?"s":"")}e.exports=function(e,t){t=t||{};var l,d,u=typeof e;if("string"===u&&e.length>0)return function(e){if((e=String(e)).length>100)return;var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!t)return;var c=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return c*s;case"weeks":case"week":case"w":return c*a;case"days":case"day":case"d":return c*i;case"hours":case"hour":case"hrs":case"hr":case"h":return c*o;case"minutes":case"minute":case"mins":case"min":case"m":return c*r;case"seconds":case"second":case"secs":case"sec":case"s":return c*n;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return c;default:return}}(e);if("number"===u&&isFinite(e))return t.long?(l=e,(d=Math.abs(l))>=i?c(l,d,i,"day"):d>=o?c(l,d,o,"hour"):d>=r?c(l,d,r,"minute"):d>=n?c(l,d,n,"second"):l+" ms"):function(e){var t=Math.abs(e);return t>=i?Math.round(e/i)+"d":t>=o?Math.round(e/o)+"h":t>=r?Math.round(e/r)+"m":t>=n?Math.round(e/n)+"s":e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}})),i.register("hIarR",(function(t,n){var r;e(t.exports,"getBundleURL",(()=>r),(e=>r=e));var o={};function i(e){return(""+e).replace(/^((?:https?|file|ftp|(chrome|moz|safari-web)-extension):\/\/.+)\/[^/]+$/,"$1")+"/"}r=function(e){var t=o[e];return t||(t=function(){try{throw new Error}catch(t){var e=(""+t.stack).match(/(https?|file|ftp|(chrome|moz|safari-web)-extension):\/\/[^)\n]+/g);if(e)return i(e[2])}return"/"}(),o[e]=t),t}})),i.register("hsJ0L",(function(e,t){"use strict";var n=window&&window.CXF;e.exports=new Promise((function(e,t){if(window||t(),n)return e(n);window.addEventListener("cxf.initialized",(function(t){n=t.cxf,e(n)}),{capture:!0,once:!0,passive:!0})}))})),i("kI8SP").register(JSON.parse('{"ldGXu":"index.js","gL7Zm":"wooden_tile_light_background.e7588122.png","dEJUC":"amazon-aps-script.min.420b3b9e.js","2BbfJ":"prebid-script.min.7c6f2abc.js","bMJod":"ad-blocking-recovery-script.min.f6423de5.js","lzUYe":"error-protection-message-script.min.8bfafdb0.js"}'));var a,s,c={},l={},d=l={};function u(){throw new Error("setTimeout has not been defined")}function p(){throw new Error("clearTimeout has not been defined")}function f(e){if(a===setTimeout)return setTimeout(e,0);if((a===u||!a)&&setTimeout)return a=setTimeout,setTimeout(e,0);try{return a(e,0)}catch(t){try{return a.call(null,e,0)}catch(t){return a.call(this,e,0)}}}!function(){try{a="function"==typeof setTimeout?setTimeout:u}catch(e){a=u}try{s="function"==typeof clearTimeout?clearTimeout:p}catch(e){s=p}}();var g,h=[],m=!1,C=-1;function w(){m&&g&&(m=!1,g.length?h=g.concat(h):C=-1,h.length&&v())}function v(){if(!m){var e=f(w);m=!0;for(var t=h.length;t;){for(g=h,h=[];++C<t;)g&&g[C].run();C=-1,t=h.length}g=null,m=!1,function(e){if(s===clearTimeout)return clearTimeout(e);if((s===p||!s)&&clearTimeout)return s=clearTimeout,clearTimeout(e);try{return s(e)}catch(t){try{return s.call(null,e)}catch(t){return s.call(this,e)}}}(e)}}function y(e,t){this.fun=e,this.array=t}function b(){}d.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];h.push(new y(e,t)),1!==h.length||m||f(v)},y.prototype.run=function(){this.fun.apply(null,this.array)},d.title="browser",d.browser=!0,d.env={},d.argv=[],d.version="",d.versions={},d.on=b,d.addListener=b,d.once=b,d.off=b,d.removeListener=b,d.removeAllListeners=b,d.emit=b,d.prependListener=b,d.prependOnceListener=b,d.listeners=function(e){return[]},d.binding=function(e){throw new Error("process.binding is not supported")},d.cwd=function(){return"/"},d.chdir=function(e){throw new Error("process.chdir is not supported")},d.umask=function(){return 0},c.formatArgs=function(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+c.humanize(this.diff),!this.useColors)return;const t="color: "+this.color;e.splice(1,0,t,"color: inherit");let n=0,r=0;e[0].replace(/%[a-zA-Z%]/g,(e=>{"%%"!==e&&(n++,"%c"===e&&(r=n))})),e.splice(r,0,t)},c.save=function(e){try{e?c.storage.setItem("debug",e):c.storage.removeItem("debug")}catch(e){}},c.load=function(){let e;try{e=c.storage.getItem("debug")}catch(e){}!e&&void 0!==l&&"env"in l&&(e=void 0);return e},c.useColors=function(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type&&!window.process.__nwjs)||("undefined"==typeof navigator||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},c.storage=function(){try{return localStorage}catch(e){}}(),c.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),c.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],c.log=console.debug||console.log||(()=>{}),c=i("8s8WA")(c);const{formatters:E}=c;E.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}};var A=t(c)("CXF-AD-BANNER:");var I={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let _;const F=new Uint8Array(16);function S(){if(!_&&(_="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!_))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return _(F)}const R=[];for(let e=0;e<256;++e)R.push((e+256).toString(16).slice(1));function T(e,t=0){return(R[e[t+0]]+R[e[t+1]]+R[e[t+2]]+R[e[t+3]]+"-"+R[e[t+4]]+R[e[t+5]]+"-"+R[e[t+6]]+R[e[t+7]]+"-"+R[e[t+8]]+R[e[t+9]]+"-"+R[e[t+10]]+R[e[t+11]]+R[e[t+12]]+R[e[t+13]]+R[e[t+14]]+R[e[t+15]]).toLowerCase()}var x,N=function(e,t,n){if(I.randomUUID&&!t&&!e)return I.randomUUID();const r=(e=e||{}).random||(e.rng||S)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(let e=0;e<16;++e)t[n+e]=r[e];return t}return T(r)},P={},O=Object.create,L=Object.defineProperty,k=Object.getOwnPropertyDescriptor,D=Object.getOwnPropertyNames,M=Object.getPrototypeOf,z=Object.prototype.hasOwnProperty,B=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),U=(e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let o of D(t))!z.call(e,o)&&o!==n&&L(e,o,{get:()=>t[o],enumerable:!(r=k(t,o))||r.enumerable});return e},j=B(((e,t)=>{var n=1e3,r=60*n,o=60*r,i=24*o,a=7*i,s=365.25*i;function c(e,t,n,r){var o=t>=1.5*n;return Math.round(e/n)+" "+r+(o?"s":"")}t.exports=function(e,t){t=t||{};var l=typeof e;if("string"===l&&e.length>0)return function(e){if(e=String(e),!(e.length>100)){var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(t){var c=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return c*s;case"weeks":case"week":case"w":return c*a;case"days":case"day":case"d":return c*i;case"hours":case"hour":case"hrs":case"hr":case"h":return c*o;case"minutes":case"minute":case"mins":case"min":case"m":return c*r;case"seconds":case"second":case"secs":case"sec":case"s":return c*n;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return c;default:return}}}}(e);if("number"===l&&isFinite(e))return t.long?function(e){var t=Math.abs(e);return t>=i?c(e,t,i,"day"):t>=o?c(e,t,o,"hour"):t>=r?c(e,t,r,"minute"):t>=n?c(e,t,n,"second"):e+" ms"}(e):function(e){var t=Math.abs(e);return t>=i?Math.round(e/i)+"d":t>=o?Math.round(e/o)+"h":t>=r?Math.round(e/r)+"m":t>=n?Math.round(e/n)+"s":e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}})),G=B(((e,t)=>{t.exports=function(e){function t(e){let r,o,i,a=null;function s(...e){if(!s.enabled)return;let n=s,o=Number(new Date),i=o-(r||o);n.diff=i,n.prev=r,n.curr=o,r=o,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let a=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,((r,o)=>{if("%%"===r)return"%";a++;let i=t.formatters[o];if("function"==typeof i){let t=e[a];r=i.call(n,t),e.splice(a,1),a--}return r})),t.formatArgs.call(n,e),(n.log||t.log).apply(n,e)}return s.namespace=e,s.useColors=t.useColors(),s.color=t.selectColor(e),s.extend=n,s.destroy=t.destroy,Object.defineProperty(s,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==a?a:(o!==t.namespaces&&(o=t.namespaces,i=t.enabled(e)),i),set:e=>{a=e}}),"function"==typeof t.init&&t.init(s),s}function n(e,n){let r=t(this.namespace+(typeof n>"u"?":":n)+e);return r.log=this.log,r}function r(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){let e=[...t.names.map(r),...t.skips.map(r).map((e=>"-"+e))].join(",");return t.enable(""),e},t.enable=function(e){t.save(e),t.namespaces=e,t.names=[],t.skips=[];let n,r=("string"==typeof e?e:"").split(/[\s,]+/),o=r.length;for(n=0;n<o;n++)!r[n]||("-"===(e=r[n].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.slice(1)+"$")):t.names.push(new RegExp("^"+e+"$")))},t.enabled=function(e){if("*"===e[e.length-1])return!0;let n,r;for(n=0,r=t.skips.length;n<r;n++)if(t.skips[n].test(e))return!1;for(n=0,r=t.names.length;n<r;n++)if(t.names[n].test(e))return!0;return!1},t.humanize=j(),t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach((n=>{t[n]=e[n]})),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let n=0;for(let t=0;t<e.length;t++)n=(n<<5)-n+e.charCodeAt(t),n|=0;return t.colors[Math.abs(n)%t.colors.length]},t.enable(t.load()),t}})),H=B(((e,t)=>{e.formatArgs=function(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+t.exports.humanize(this.diff),!this.useColors)return;let n="color: "+this.color;e.splice(1,0,n,"color: inherit");let r=0,o=0;e[0].replace(/%[a-zA-Z%]/g,(e=>{"%%"!==e&&(r++,"%c"===e&&(o=r))})),e.splice(o,0,n)},e.save=function(t){try{t?e.storage.setItem("debug",t):e.storage.removeItem("debug")}catch{}},e.load=function(){let t;try{t=e.storage.getItem("debug")}catch{}return!t&&typeof l<"u"&&"env"in l&&(t=void 0),t},e.useColors=function(){return!(!(typeof window<"u"&&window.process)||"renderer"!==window.process.type&&!window.process.__nwjs)||!(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&(typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},e.storage=function(){try{return localStorage}catch{}}(),e.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),e.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],e.log=console.debug||console.log||(()=>{}),t.exports=G()(e);var{formatters:n}=t.exports;n.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}})),$={};((e,t)=>{for(var n in t)L(e,n,{get:t[n],enumerable:!0})})($,{AC_AD_POPUP_SHOP_LINK_CLICK:()=>he,AC_CATEGORY_CHANGE:()=>se,AC_CHECKOUT_INITIATED:()=>Q,AC_LEMONSTAND_CLOSE:()=>ce,AC_PACKAGE_SELECTED:()=>ee,AC_SUBSCRIPTION_CANCEL_ABORTED:()=>oe,AC_SUBSCRIPTION_CANCEL_CONFIRMED:()=>ie,AC_SUBSCRIPTION_CANCEL_INTENDED:()=>re,EventTracker:()=>me,ST_AD_LOADED:()=>fe,ST_AD_POPUP_SHOWN:()=>ge,ST_CATEGORY_LOADED:()=>ne,ST_OFFER_PURCHASED:()=>de,ST_OFFER_SEEN:()=>te,ST_RELOAD_AFTER_SUCCESS:()=>le,ST_SUBSCRIPTION_CANCEL_SUCCESS:()=>ae,ST_SUBSCRIPTION_PURCHASED:()=>ue,ST_TRANSLATION_BLANK:()=>X,ST_TRANSLATION_ERROR:()=>W,ST_TRANSLATION_MISSING:()=>Y,ST_TRANSLATION_RACE_CONDITION:()=>K}),x=$,P=U(L({},"__esModule",{value:!0}),x);var V=((e,t,n)=>(n=null!=e?O(M(e)):{},U(!t&&e&&e.__esModule?n:L(n,"default",{value:e,enumerable:!0}),e)))(H()),Z=(0,V.default)("PMT-UNIFIED-TRACKING");function J(e){return(t,n)=>({...t,eventId:1273,failureCause:e,textId:n})}function q(e){return(t,n)=>({...t,eventId:1182,actionId:e,type:n,unixtimeMS:t.date})}var W={decorate:J("ese_no_lookup")},Y={decorate:J("ese_no_lookup")},K={decorate:J("pe_race_condition")},X={decorate:J("pe_blank")},Q={decorate:q(2)},ee={decorate:q(1)},te={decorate:q(5)},ne={decorate:q(0)},re={decorate:q(10)},oe={decorate:q(11)},ie={decorate:q(12)},ae={decorate:q(13)},se={decorate:q(4)},ce={decorate:q(100)},le={decorate:q(3)},de={decorate:(e,t,n,r,o)=>({...e,eventId:1183,packageId:t,wodId:n,amount:r,type:o})},ue={decorate:(e,t,n)=>({...e,eventId:1090,expire_timestamp:t,type:n})};function pe(e){return(t,n,r)=>({...t,eventId:1290,action_id:e,popup_name:n,popup_detail:r})}var fe={decorate:(e,t,n,r,o,i,a,s)=>({...e,eventId:1167,timestamp:e.date,actionType:t,placementDetail:n,placement:r,player_level:o,impression_id:i,reward:a,amount:s})},ge={decorate:pe("popup_shown")},he={decorate:pe("link_clicked")},me=class{constructor(e,t){this.endpoint=e,this.logger=t||Z}async send(e){let t=window.navigator.sendBeacon(this.endpoint,JSON.stringify(e));this.logger({endpoint:this.endpoint,data:e,response:t})}};const Ce={HORIZONTAL_BANNER:"horizontal",VERTICAL_BANNER:"vertical"},we={EMPIRE:12,BIGFARM:15},ve={EMPIRE_VERTICAL:"/21812119314/Banner_Empire_160x600",EMPIRE_HORIZONTAL:"/21812119314/Banner_Empire_728x90",BIGFARM_VERTICAL:"/21812119314/Banner_BigFarm_160x600",BIGFARM_HORIZONTAL:"/21812119314/Banner_BigFarm_728x90"},ye={Token:"cxf.token",Login:"cxf.login",Signup:"cxf.signup",GameEventUpdate:"cxf.gameEvent.update",GameEventAdd:"cxf.gameEvent.add",GameEventRemove:"cxf.gameEvent.remove",XpChanged:"cxf.xp.changed",LevelChanged:"cxf.level.changed",LegendLevelChanged:"cxf.legendLevel.changed",Push:"cxf.push",OpenIGS:"cxf.igs.open",CloseIGS:"cxf.dialog.close",AdBannerStatus:"cxf.adBanner.status",JoinTempServer:"cxf.join.temp.server",Subscription:"cxf.subscription"},be={UPDATE_PAY:"PAYMENT_DATA"},Ee={UPDATE_PAY:"upi"},Ae={LOGIN:"login",UPDATE_PAY:"updatePay"},Ie="game",_e=1e3,Fe=1050,Se="fb17ae44-d7a8-4c56-8a84-156b9387a3da",Re={[ve.EMPIRE_HORIZONTAL]:"923928",[ve.EMPIRE_VERTICAL]:"923928",[ve.BIGFARM_HORIZONTAL]:"923929",[ve.BIGFARM_VERTICAL]:"923929"},Te={[ve.EMPIRE_HORIZONTAL]:"2764324",[ve.EMPIRE_VERTICAL]:"2764324",[ve.BIGFARM_HORIZONTAL]:"2764328",[ve.BIGFARM_VERTICAL]:"2764328"},xe={[ve.EMPIRE_HORIZONTAL]:"19027",[ve.EMPIRE_VERTICAL]:"19027",[ve.BIGFARM_HORIZONTAL]:"19028",[ve.BIGFARM_VERTICAL]:"19028"},Ne={[ve.EMPIRE_HORIZONTAL]:"559469885",[ve.EMPIRE_VERTICAL]:"559469886",[ve.BIGFARM_HORIZONTAL]:"559469887",[ve.BIGFARM_VERTICAL]:"559469888"},Pe={[ve.EMPIRE_HORIZONTAL]:"712245820",[ve.EMPIRE_VERTICAL]:"664756262",[ve.BIGFARM_HORIZONTAL]:"176932359",[ve.BIGFARM_VERTICAL]:"542226828"},Oe=new(0,P.EventTracker)("https://cxf-test-ct.goodgamestudios.com"),Le=N(),ke=[2866122916];let De,Me;const ze={BANNER_ACTIVE:"banner_active",BANNER_INACTIVE:"banner_inactive",BANNER_CLICKED:"banner_clicked",BANNER_REFRESHED:"banner_refreshed"},Be=new Map([[ze.BANNER_ACTIVE,16],[ze.BANNER_INACTIVE,17],[ze.BANNER_CLICKED,18],[ze.BANNER_REFRESHED,19]]),Ue=new Map([[ze.BANNER_ACTIVE,7],[ze.BANNER_INACTIVE,8],[ze.BANNER_CLICKED,9],[ze.BANNER_REFRESHED,10]]),je=new Map([[Ce.HORIZONTAL_BANNER,Be],[Ce.VERTICAL_BANNER,Ue]]),Ge="ggs_backfill",He=(e,t,n)=>{const r=je.get(t),o=r?.get(e)||-5,i=n&&n.impression_id;return Oe.send(P.ST_AD_LOADED.decorate(Me,o,void 0,void 0,void 0,i))},$e=()=>Oe.send(P.ST_AD_POPUP_SHOWN.decorate(Me,"google_adblocker")),Ve=e=>{const t={};return e.campaignId&&ke.includes(e.campaignId)&&(t.impression_id=Ge),t};var Ze;Ze=i("hIarR").getBundleURL("ldGXu")+i("kI8SP").resolve("gL7Zm");const Je=30,qe={backgroundImage:new URL(Ze),refreshTime:30,requirements:{minLevel:10,noPaymentDays:Je}},We=[{isGGSNetwork:[{var:["networkId"]},[1]]},{or:[{"==":[{var:"lastPaymentDate"},0]},{isExpired:[{var:"lastPaymentDate"},Je]}]},{"!=":[{var:"hasSubscription"},!0]},{"!":[{in:[{var:"originUrl"},{cat:["bigfarm.rtl.de ","bigfarm.rtl2-spiele.de ","empire.rtl.de ","empire.rtl2-spiele.de "]}]}]}],Ye={gameId:we.BIGFARM,banners:{horizontal:{rules:{loginData:{and:[...We,{and:[{or:[{in:[{var:"instanceId"},[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25]]},{">=":[{var:"instanceId"},251]}]},{">=":[{var:"level"},10]}]}]},paymentData:{or:[{"==":[{var:"lastPaymentTime"},0]},{isExpired:[{var:"lastPaymentTime"},Je]}]}}},vertical:{rules:{loginData:{and:[...We,{and:[{or:[{in:[{var:"instanceId"},[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25]]},{">=":[{var:"instanceId"},251]}]},{">=":[{var:"level"},10]}]}]},paymentData:{or:[{"==":[{var:"lastPaymentTime"},0]},{isExpired:[{var:"lastPaymentTime"},Je]}]}}}},adblocker:{rules:{and:[{">=":[{var:"level"},10]}]}},adSlotSettings:[{unitPath:ve.BIGFARM_HORIZONTAL,defaultAdSize:[728,90],sizeMap:new Map([[[1200,700],[[970,90],[728,90]]],[[728,700],[[728,90]]],[[0,0],[]]]),htmlElements:{adPlaceholder:{id:"ad-placeholder-horizontal",width:"calc(100% - 300px)",height:100,style:"\n width: calc(100% - 300px);\n height: 100px;\n position: absolute;\n top: 0px;\n display: block;\n min-width: 798px;\n min-height: 100px;\n align: center;"},adContainer:{id:"ad-container-horizontal",style:"\n width: fit-content;\n height: fit-content;\n display:inline-block;\n background: #fff;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n position: relative;\n max-height: 90px;"}}},{unitPath:ve.BIGFARM_VERTICAL,defaultAdSize:[160,600],sizeMap:new Map([[[1100,800],[[220,800],[160,600],[300,600],[300,250]]],[[1100,600],[[160,600],[300,600],[300,250]]],[[0,0],[]]]),htmlElements:{adPlaceholder:{id:"ad-placeholder-vertical",width:300,height:"100%",style:"\n width: 300px;\n height: 100%;\n position: absolute;\n right: 0px;\n top: 0px;\n display: block;\n min-width: 300px;\n min-height: 610px;\n align: center;"},adContainer:{id:"ad-container-vertical",style:"\n width: fit-content;\n height: fit-content;\n display:inline-block;\n background: #fff;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n position: relative;\n max-width: 300px;"}}}]},Ke={gameId:we.EMPIRE,banners:{horizontal:{rules:{loginData:{and:[...We,{showAdsReturnedPlayer:[{var:"dayWentBack"},7]},{and:[{or:[{in:[{var:"instanceId"},[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,32,33,34,35,36,37,38,43,46]]},{">=":[{var:"instanceId"},251]}]},{">=":[{var:"level"},10]}]}]},paymentData:{or:[{"==":[{var:"LPD"},0]},{isExpired:[{var:"LPD"},Je]}]}}},vertical:{rules:{loginData:{and:[...We,{showAdsReturnedPlayer:[{var:"dayWentBack"},7]},{and:[{or:[{in:[{var:"instanceId"},[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,32,33,34,35,36,37,38,43,46]]},{">=":[{var:"instanceId"},251]}]},{">=":[{var:"level"},10]}]}]},paymentData:{or:[{"==":[{var:"LPD"},0]},{isExpired:[{var:"LPD"},Je]}]}}}},adblocker:{rules:{and:[{">=":[{var:"level"},10]}]}},adSlotSettings:[{unitPath:ve.EMPIRE_HORIZONTAL,defaultAdSize:[728,90],sizeMap:new Map([[[1200,700],[[970,90],[728,90]]],[[728,700],[[728,90]]],[[0,0],[]]]),htmlElements:{adPlaceholder:{id:"ad-placeholder-horizontal",width:"calc(100% - 300px)",height:100,style:"\n width: calc(100% - 300px);\n height: 100px;\n position: absolute;\n top: 0px;\n display: block;\n min-width: 798px;\n min-height: 100px;\n align: center;"},adContainer:{id:"ad-container-horizontal",style:"\n width: fit-content;\n height: fit-content;\n display:inline-block;\n background: #fff;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n position: relative;\n max-height: 90px;"}}},{unitPath:ve.EMPIRE_VERTICAL,defaultAdSize:[160,600],sizeMap:new Map([[[1100,800],[[220,800],[160,600],[300,600],[300,250]]],[[1100,600],[[160,600],[300,600],[300,250]]],[[0,0],[]]]),htmlElements:{adPlaceholder:{id:"ad-placeholder-vertical",width:300,height:"100%",style:"\n width: 300px;\n height: 100%;\n position: absolute;\n right: 0px;\n top: 0px;\n display: block;\n min-width: 300px;\n min-height: 610px;\n align: center;"},adContainer:{id:"ad-container-vertical",style:"\n width: fit-content;\n height: fit-content;\n display:inline-block;\n background: #fff;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n position: relative;\n max-width: 300px;"}}}]},Xe=new Map([[`${we.BIGFARM}`,Ye],[`${we.EMPIRE}`,Ke]]),Qe=({gameId:e})=>{const t=Xe.get(e);if(!t)throw A(`Game '${e}' is not supported`),new Error(`Game '${e}' is not supported`);return{...qe,...t}};var et,tt="Expected a function",nt=NaN,rt="[object Symbol]",ot=/^\s+|\s+$/g,it=/^[-+]0x[0-9a-f]+$/i,at=/^0b[01]+$/i,st=/^0o[0-7]+$/i,ct=parseInt,lt="object"==typeof n&&n&&n.Object===Object&&n,dt="object"==typeof self&&self&&self.Object===Object&&self,ut=lt||dt||Function("return this")(),pt=Object.prototype.toString,ft=Math.max,gt=Math.min,ht=function(){return ut.Date.now()};function mt(e,t,n){var r,o,i,a,s,c,l=0,d=!1,u=!1,p=!0;if("function"!=typeof e)throw new TypeError(tt);function f(t){var n=r,i=o;return r=o=void 0,l=t,a=e.apply(i,n)}function g(e){var n=e-c;return void 0===c||n>=t||n<0||u&&e-l>=i}function h(){var e=ht();if(g(e))return m(e);s=setTimeout(h,function(e){var n=t-(e-c);return u?gt(n,i-(e-l)):n}(e))}function m(e){return s=void 0,p&&r?f(e):(r=o=void 0,a)}function C(){var e=ht(),n=g(e);if(r=arguments,o=this,c=e,n){if(void 0===s)return function(e){return l=e,s=setTimeout(h,t),d?f(e):a}(c);if(u)return s=setTimeout(h,t),f(c)}return void 0===s&&(s=setTimeout(h,t)),a}return t=wt(t)||0,Ct(n)&&(d=!!n.leading,i=(u="maxWait"in n)?ft(wt(n.maxWait)||0,t):i,p="trailing"in n?!!n.trailing:p),C.cancel=function(){void 0!==s&&clearTimeout(s),l=0,r=c=o=s=void 0},C.flush=function(){return void 0===s?a:m(ht())},C}function Ct(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function wt(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&pt.call(e)==rt}(e))return nt;if(Ct(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Ct(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(ot,"");var n=at.test(e);return n||st.test(e)?ct(e.slice(2),n?2:8):it.test(e)?nt:+e}et=function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new TypeError(tt);return Ct(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),mt(e,t,{leading:r,maxWait:t,trailing:o})};var vt,yt={};vt=function(){"use strict";Array.isArray||(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)});var e={},t={"==":function(e,t){return e==t},"===":function(e,t){return e===t},"!=":function(e,t){return e!=t},"!==":function(e,t){return e!==t},">":function(e,t){return e>t},">=":function(e,t){return e>=t},"<":function(e,t,n){return void 0===n?e<t:e<t&&t<n},"<=":function(e,t,n){return void 0===n?e<=t:e<=t&&t<=n},"!!":function(t){return e.truthy(t)},"!":function(t){return!e.truthy(t)},"%":function(e,t){return e%t},log:function(e){return console.log(e),e},in:function(e,t){return!(!t||void 0===t.indexOf)&&-1!==t.indexOf(e)},cat:function(){return Array.prototype.join.call(arguments,"")},substr:function(e,t,n){if(n<0){var r=String(e).substr(t);return r.substr(0,r.length+n)}return String(e).substr(t,n)},"+":function(){return Array.prototype.reduce.call(arguments,(function(e,t){return parseFloat(e,10)+parseFloat(t,10)}),0)},"*":function(){return Array.prototype.reduce.call(arguments,(function(e,t){return parseFloat(e,10)*parseFloat(t,10)}))},"-":function(e,t){return void 0===t?-e:e-t},"/":function(e,t){return e/t},min:function(){return Math.min.apply(this,arguments)},max:function(){return Math.max.apply(this,arguments)},merge:function(){return Array.prototype.reduce.call(arguments,(function(e,t){return e.concat(t)}),[])},var:function(e,t){var n=void 0===t?null:t,r=this;if(void 0===e||""===e||null===e)return r;for(var o=String(e).split("."),i=0;i<o.length;i++){if(null==r)return n;if(void 0===(r=r[o[i]]))return n}return r},missing:function(){for(var t=[],n=Array.isArray(arguments[0])?arguments[0]:arguments,r=0;r<n.length;r++){var o=n[r],i=e.apply({var:o},this);null!==i&&""!==i||t.push(o)}return t},missing_some:function(t,n){var r=e.apply({missing:n},this);return n.length-r.length>=t?[]:r}};return e.is_logic=function(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)&&1===Object.keys(e).length},e.truthy=function(e){return!(Array.isArray(e)&&0===e.length||!e)},e.get_operator=function(e){return Object.keys(e)[0]},e.get_values=function(t){return t[e.get_operator(t)]},e.apply=function(n,r){if(Array.isArray(n))return n.map((function(t){return e.apply(t,r)}));if(!e.is_logic(n))return n;var o,i,a,s,c,l=e.get_operator(n),d=n[l];if(Array.isArray(d)||(d=[d]),"if"===l||"?:"==l){for(o=0;o<d.length-1;o+=2)if(e.truthy(e.apply(d[o],r)))return e.apply(d[o+1],r);return d.length===o+1?e.apply(d[o],r):null}if("and"===l){for(o=0;o<d.length;o+=1)if(i=e.apply(d[o],r),!e.truthy(i))return i;return i}if("or"===l){for(o=0;o<d.length;o+=1)if(i=e.apply(d[o],r),e.truthy(i))return i;return i}if("filter"===l)return s=e.apply(d[0],r),a=d[1],Array.isArray(s)?s.filter((function(t){return e.truthy(e.apply(a,t))})):[];if("map"===l)return s=e.apply(d[0],r),a=d[1],Array.isArray(s)?s.map((function(t){return e.apply(a,t)})):[];if("reduce"===l)return s=e.apply(d[0],r),a=d[1],c=void 0!==d[2]?d[2]:null,Array.isArray(s)?s.reduce((function(t,n){return e.apply(a,{current:n,accumulator:t})}),c):c;if("all"===l){if(s=e.apply(d[0],r),a=d[1],!s.length)return!1;for(o=0;o<s.length;o+=1)if(!e.truthy(e.apply(a,s[o])))return!1;return!0}if("none"===l)return 0===e.apply({filter:d},r).length;if("some"===l)return e.apply({filter:d},r).length>0;if(d=d.map((function(t){return e.apply(t,r)})),t.hasOwnProperty(l)&&"function"==typeof t[l])return t[l].apply(r,d);if(l.indexOf(".")>0){var u=String(l).split("."),p=t;for(o=0;o<u.length;o++){if(!p.hasOwnProperty(u[o]))throw new Error("Unrecognized operation "+l+" (failed at "+u.slice(0,o+1).join(".")+")");p=p[u[o]]}return p.apply(r,d)}throw new Error("Unrecognized operation "+l)},e.uses_data=function(t){var n=[];if(e.is_logic(t)){var r=e.get_operator(t),o=t[r];Array.isArray(o)||(o=[o]),"var"===r?n.push(o[0]):o.map((function(t){n.push.apply(n,e.uses_data(t))}))}return function(e){for(var t=[],n=0,r=e.length;n<r;n++)-1===t.indexOf(e[n])&&t.push(e[n]);return t}(n)},e.add_operation=function(e,n){t[e]=n},e.rm_operation=function(e){delete t[e]},e.rule_like=function(t,n){if(n===t)return!0;if("@"===n)return!0;if("number"===n)return"number"==typeof t;if("string"===n)return"string"==typeof t;if("array"===n)return Array.isArray(t)&&!e.is_logic(t);if(e.is_logic(n)){if(e.is_logic(t)){var r=e.get_operator(n),o=e.get_operator(t);if("@"===r||r===o)return e.rule_like(e.get_values(t,!1),e.get_values(n,!1))}return!1}if(Array.isArray(n)){if(Array.isArray(t)){if(n.length!==t.length)return!1;for(var i=0;i<n.length;i+=1)if(!e.rule_like(t[i],n[i]))return!1;return!0}return!1}return!1},e},"function"==typeof define&&define.amd?define(vt):yt=vt();const bt=A.extend("Utils"),Et=(e,t)=>t.includes(Number.parseInt(e,10)),At=(e,t)=>!(-1!==e)||It(e,t),It=(e,t)=>("number"==typeof e&&/\d{10}/.test(`${e}`)&&(e*=1e3),Date.now()-e>=864e5*t),_t=e=>new Promise((function(t,n){const r=document.createElement("script");r.src=e,r.addEventListener("load",(function(){bt(`Script loaded: ${e}`),t()})),r.addEventListener("error",(function(t){bt(`Error loading script: ${e} %O`,t),n(t)})),document.head.append(r)})),Ft=A.extend("PREBID").extend("Amazon");var St={};function Rt(){Ft("Amazon ads is loading...");const e=new URL(St).toString();return _t(e).then((()=>{window.apstag.init({pubID:Se,adServer:"googletag",simplerGPT:!0})}))}St=i("hIarR").getBundleURL("ldGXu")+i("kI8SP").resolve("dEJUC");const Tt=A.extend("PREBID"),xt={config:{userSync:{iframeEnabled:!0,filterSettings:{iframe:{bidders:"*",filter:"include"}}}},bidderSettings:{ix:{storageAllowed:!0}}},Nt=e=>{if(Tt("Building partners config..."),!Object.values(ve).includes(e))throw new Error(`Invalid unit path ID: ${e}`);const t=[],{partners:n}=(e=>({partners:{ix:{params:{siteId:Re[e]}},pubmatic:{params:{publisherId:"162973"}},rubicon:{params:{accountId:"23558",siteId:"376420",zoneId:Te[e],position:"atf"}},underdogmedia:{params:{siteId:xe[e]}},openx:{params:{unit:Ne[e],delDomain:"goodgamestudios-d.openx.net"}},medianet:{params:{cid:"8CUW5Q486",crid:Pe[e]}}}}))(e);for(const[e,{params:r}]of Object.entries(n))t.push({bidder:e,params:r});return{bids:t}},Pt=A.extend("PREBID");var Ot;Ot=i("hIarR").getBundleURL("ldGXu")+i("kI8SP").resolve("2BbfJ");const Lt=e=>{Pt("Prebid is loading...");const t=new URL(Ot).toString();return _t(t).then((()=>{const{adUnits:t,config:n,bidderSettings:r}=Dt(e);window.pbjs=window.pbjs||{},window.pbjs.que=window.pbjs.que||[],window.pbjs.que.push((()=>{window.pbjs.addAdUnits(t),window.pbjs.setConfig(n),window.pbjs.bidderSettings=r,Pt("Prebid initiated")}))}))},kt=e=>{const t=[];for(const[n,r]of[...e].reverse())t.push({minViewPort:n,sizes:r});return t},Dt=({adSlotSettings:e})=>{const t=[],{config:n,bidderSettings:r}=xt;for(const{sizeMap:n,unitPath:r}of e){const e=kt(n),{bids:o}=Nt(r);t.push({code:r,bids:o,mediaTypes:{banner:{sizeConfig:e}}})}return{config:{bidderTimeout:_e,...n},adUnits:t,bidderSettings:r}},Mt=A.extend("PREBID").extend("Auction"),zt=async(e,t)=>{await Promise.all([Rt(),Lt(t)]),Bt(e)},Bt=e=>{jt([Gt(e),Ht()])},Ut=e=>{Mt("Refreshing bids: ",e),window.googletag.cmd.push((()=>{jt([Gt(e),Ht(e)],e)}))},jt=(e,t=[])=>{Promise.all(e).then((()=>{Mt("Bids requested successfully")})).catch((e=>{Mt("Requesting bids error: ",e)})).finally((()=>{window.googletag.cmd.push((()=>{Mt("Loading new ads..."),t.length>0?window.googletag.pubads().refresh(t):window.googletag.pubads().refresh()}))}))},Gt=e=>new Promise(((t,n)=>{window.apstag.fetchBids({slots:e,timeout:_e},(e=>{Mt("Aps bids",e),window.googletag.cmd.push((()=>{window.apstag.setDisplayBids(),t(e)}))})),setTimeout((()=>{n(new Error("Aps request timeout has exceeded 1050"))}),Fe)})),Ht=(e=[])=>{const t=e.map((e=>e.getAdUnitPath()));return new Promise(((e,n)=>{window.pbjs.que.push((()=>{window.pbjs.requestBids({timeout:_e,adUnitCodes:t,bidsBackHandler:()=>{window.googletag.cmd.push((()=>{t.length>0?window.pbjs.setTargetingForGPTAsync(t):window.pbjs.setTargetingForGPTAsync(),e()}))}})})),setTimeout((()=>{n(new Error("Prebid request timeout has exceeded 1050"))}),Fe)}))},$t=[],Vt={vertical:{},horizontal:{}},Zt=(e,t,n)=>{const r=document.querySelector(`#${Ie}`);return r.style.width=e,r.style.height=t,r.style.marginTop=`${n}px`,!0},Jt=e=>"number"==typeof e,qt=e=>{let t=0,n=0;for(const r of e){const{htmlElements:{adPlaceholder:{width:e,height:o}}}=r;Jt(e)&&e>t&&(t=e),Jt(o)&&o>n&&(n=o)}return{width:`calc(100vw - ${t}px)`,height:`calc(100vh - ${n}px)`,bannerWidth:t,bannerHeight:n}},Wt=e=>{const{htmlElements:t}=e;if(!document.querySelector(`#${t.adContainer.id}`)){const e=document.createElement("div");e.setAttribute("id",t.adPlaceholder.id),e.setAttribute("style",t.adPlaceholder.style);const n=document.createElement("div");n.setAttribute("id",t.adContainer.id),n.setAttribute("style",t.adContainer.style),e.append(n),document.body.append(e),$t.push(e)}},Yt=e=>{for(const t of e){const e=$t.find((e=>e.id.includes(t)));e&&(e.remove(),Vt[t].isShown=!1)}},Kt=e=>{for(const t of e){const e=$t.find((e=>e.id.includes(t)));e&&(document.body.append(e),Vt[t].isShown=!0)}};let Xt,Qt,en,tn,nn,rn,on,an,sn="100vw",cn="100vh";const ln=[],dn=()=>Vt.vertical.isShown?sn:"100vw",un=()=>Vt.horizontal.isShown?cn:"100vh",pn=()=>Vt.horizontal.isShown?`${Xt}px`:"0px";let fn,gn;const hn=(e,t=!1)=>{fn=setTimeout((()=>{Ut([ln[0]]),clearTimeout(fn)}),1e3*e),t&&Ut([ln[0]])},mn=(e,t=!1)=>{gn=setTimeout((()=>{Ut([ln[1]]),clearTimeout(gn)}),1e3*e),t&&Ut([ln[1]])},Cn=(e,t)=>{A("Creating ad slots"),window.googletag=window.googletag||{cmd:[]},window.googletag.cmd.push((()=>{try{for(const e of t){const t=window.googletag.sizeMapping();if(e.sizeMap)for(const[n,r]of e.sizeMap)t.addSize(n,r);const n=window.googletag.defineSlot(e.unitPath,e.defaultAdSize,e.htmlElements.adContainer.id);n?ln.push(n.addService(window.googletag.pubads()).defineSizeMapping(t.build())):A(`Error while creating ad slot: ${e.unitPath}`)}window.googletag.pubads().addEventListener("slotOnload",(e=>t=>{const n=t.slot.getSlotElementId();A(`Creative iframe load event has fired. slotId: ${n}`),n.includes("horizontal")?hn(e):n.includes("vertical")?mn(e):A("No slot to refresh")})(e)),window.googletag.pubads().addEventListener("slotVisibilityChanged",(e=>{0===e.inViewPercentage?bn():En()})),window.googletag.pubads().addEventListener("slotRenderEnded",(e=>{const t=e.slot.getSlotElementId(),n=On(t);He(ze.BANNER_REFRESHED,n,Ve(e)),A("Slot %s finished rendering. %O",t,{"Advertiser ID":e.advertiserId,"Campaign ID":e.campaignId,"Creative ID":e.creativeId,"Is empty?":e.isEmpty,"Line Item ID":e.lineItemId,Size:e.size,"Source Agnostic Creative ID":e.sourceAgnosticCreativeId,"Source Agnostic Line Item ID":e.sourceAgnosticLineItemId})})),window.googletag.pubads().enableSingleRequest(),window.googletag.pubads().disableInitialLoad(),window.googletag.enableServices();for(const e of t){const{htmlElements:{adContainer:t}}=e;window.googletag.display(t.id)}}catch(e){A("Error while setting up ad banners",e)}}))},wn=(e,t,n)=>{const r=document.querySelector(`#${Ie}`);return e&&(r.style.width=e),t&&(r.style.height=t),n&&(r.style.marginTop=n),!0},vn=e=>{A("pause banner ad",e),e.includes("horizontal")&&Vt.horizontal.isShown&&(Yt(["horizontal"]),wn(void 0,un(),pn()),clearTimeout(fn),He(ze.BANNER_INACTIVE,"horizontal"),A("Horizontal ad banner paused")),e.includes("vertical")&&Vt.vertical.isShown&&(Yt(["vertical"]),wn(dn()),clearTimeout(gn),He(ze.BANNER_INACTIVE,"vertical"),A("Vertical ad banner paused"))},yn=e=>{e.includes("horizontal")&&Vt.horizontal.isEnabled&&!Vt.horizontal.isShown&&(Kt(["horizontal"]),wn(void 0,un(),pn()),hn(an,!0),He(ze.BANNER_ACTIVE,"horizontal"),A("Horizontal ad banner resumed")),e.includes("vertical")&&Vt.vertical.isEnabled&&!Vt.vertical.isShown&&(Kt(["vertical"]),wn(dn()),mn(an,!0),He(ze.BANNER_ACTIVE,"vertical"),A("Vertical ad banner resumed"))},bn=()=>{Vt.isActiveTab&&(A("Stopping ads refreshment on passive tab"),Vt.isActiveTab=!1,clearTimeout(fn),clearTimeout(gn))},En=()=>{Vt.isActiveTab||(A("Resuming ads refreshment on active tab"),Vt.isActiveTab=!0,Vt.horizontal.isEnabled&&Vt.horizontal.isShown&&(A("Horizontal ad banner refreshing"),hn(an)),Vt.vertical.isEnabled&&Vt.vertical.isShown&&(A("Vertical ad banner refreshing"),mn(an)))},An=function(e){for(const t of e){const e=t.target.style;e.width!==dn()&&(e.width=dn())}},In=function(e){for(const t of e){const e=t.target.style;e.height!==un()&&(e.height=un(),e.marginTop=pn())}},_n=()=>{const{innerHeight:e,innerWidth:t}=window;t>=728&&e>=nn+on?yn(["horizontal"]):Vt.horizontal.isShown&&vn(["horizontal"]),t>=tn+rn&&e>=nn?yn(["vertical"]):Vt.vertical.isShown&&vn(["vertical"])},Fn=t(et)(_n,100),Sn=()=>{const e=document.querySelector(`#${Ie}`),t={attributes:!0,subtree:!1,childList:!1,attributeFilter:["style"]};en.observe(e,t),Qt.observe(e,t),_n(),window.addEventListener("resize",Fn)},Rn=({refreshTime:e,adSlotSettings:t},n)=>{try{A("Setting up banners");const{width:r,height:o,bannerWidth:i,bannerHeight:a}=qt(t);sn=r,cn=o,Xt=a,Zt(r,o,a),rn=i,on=a;for(const e of t)Wt(e);tn=Number.parseInt(document.querySelector(`#${Ie}`).style.minWidth,10)||800,nn=Number.parseInt(document.querySelector(`#${Ie}`).style.minHeight,10)||600,Qt=new MutationObserver(An),en=new MutationObserver(In),an=e,Cn(e,t),Vt.horizontal.isShown=!0,Vt.vertical.isShown=!0,Vt.horizontal.isEnabled=!0,Vt.vertical.isEnabled=!0,Sn(),n.includes("vertical")||(Vt.vertical.isEnabled=!1,vn(["vertical"])),n.includes("horizontal")||(Vt.horizontal.isEnabled=!1,vn(["horizontal"])),Vt.horizontal.isShown&&He(ze.BANNER_ACTIVE,"horizontal"),Vt.vertical.isShown&&He(ze.BANNER_ACTIVE,"vertical")}catch(e){A("Failed to load ads",e)}},Tn=async(e,t)=>{window.googletag?.apiReady?(A("Google publisher tag was already initialized."),Nn(t)):(await xn(),Rn(e,t),await zt(ln,e))},xn=()=>(A("Google publisher tag is loading..."),_t("https://securepubads.g.doubleclick.net/tag/js/gpt.js")),Nn=e=>{A("Enable ad: ",e),Vt.vertical.isEnabled=e.includes("vertical"),Vt.horizontal.isEnabled=e.includes("horizontal"),Sn(),e.includes("vertical")||vn(["vertical"]),e.includes("horizontal")||vn(["horizontal"])},Pn=e=>{A("Disabling banner ads:",e),e.includes("vertical")&&(Qt?.disconnect(),Vt.vertical.isEnabled=!1),e.includes("horizontal")&&(en?.disconnect(),Vt.horizontal.isEnabled=!1),vn(e),Vt.horizontal.isShown||Vt.vertical.isShown||window.removeEventListener("resize",Fn)},On=e=>{if(e.includes("horizontal"))return"horizontal";if(e.includes("vertical"))return"vertical";throw A(`Unknown slot type. ID: ${e}`),new Error(`Unknown slot type. ID: ${e}`)},Ln=A.extend("AD-BLOCK-DETECTION");let kn=!0;const Dn=()=>{window.googlefc=window.googlefc||{},window.googlefc.ccpa=window.googlefc.ccpa||{},window.googlefc.callbackQueue=window.googlefc.callbackQueue||[],window.googlefc.controlledMessagingFunction=e=>{kn&&($e(),kn=!1),e.proceed(!0)}};var Mn;Mn=i("hIarR").getBundleURL("ldGXu")+i("kI8SP").resolve("bMJod");var zn;zn=i("hIarR").getBundleURL("ldGXu")+i("kI8SP").resolve("lzUYe");const Bn=()=>{const e=document.createElement("script"),t=document.createElement("script"),n=document.createElement("script");e.async=!0,e.src="https://fundingchoicesmessages.google.com/i/pub-6694780994007094?ers=1",t.src=new URL(Mn).toString(),n.src=new URL(zn).toString(),document.head.append(e,t,n)},Un=e=>{history.pushState(null,""," "),window.addEventListener("hashchange",(t=>{t.newURL.includes("#store")&&!t.oldURL.includes("#store")&&(e.emit(ye.OpenIGS,{page:"dailybundles",sourceId:"adBlockPopupShopButton"}),jn.hide(),Oe.send(P.AC_AD_POPUP_SHOP_LINK_CLICK.decorate(Me,"google_adblocker","link_to_igs"))),e.once(ye.CloseIGS,(()=>{jn.show(),history.pushState(null,""," ")}))}),!1)};const jn=new class{constructor(e){this.status="",this.elementIdentifier=e}get element(){let[e]=document.querySelectorAll(this.elementIdentifier);return e||(Ln("Adblock consent modal not found, using fallback"),e=document.createElement("div")),e}show(){$e(),this.element.removeAttribute("style"),this.status="visible"}hide(){this.element.setAttribute("style","display: none!important"),this.status="hidden"}remove(){this.element.remove(),this.status="removed"}isShown(){return"visible"===this.status}isHidden(){return"hidden"===this.status}isRemoved(){return"removed"===this.status}}(".fc-ab-root");let Gn,Hn;let $n,Vn;const Zn=new Map([[we.EMPIRE,{registerCustomGameHandlers:(e,t)=>{A("EM - registerCustomGameHandlers"),$n=e,Vn=t,$n.on(Ee.UPDATE_PAY,(e=>{const[t]=e,n=t[1],r=JSON.parse(n);Vn(Ae.UPDATE_PAY,r)}))}}],[we.BIGFARM,{registerCustomGameHandlers:(e,t)=>{A("BF - registerCustomGameHandlers"),Gn=e,Hn=t,Gn.on("124",(()=>{})),Gn.on(be.UPDATE_PAY,(e=>{const[t]=e;Hn(Ae.UPDATE_PAY,t)}))}}]]),Jn=e=>{const t=Number.parseInt(e.gameId,10);if(!Zn.has(t))throw A(`Game controller is not registered for the game - [${t}]`),new Error(`Game controller is not registered for the game - [${t}]`);return Zn.get(t)},qn=(e,n)=>t(yt).apply(n,e);let Wn=!1,Yn=!0;const Kn=(e,t)=>{try{(e=>{A(`Waiting for ${ye.JoinTempServer} event`),e.on(ye.JoinTempServer,(e=>{A(`${ye.JoinTempServer} received`,{isTempServer:e}),Wn=e}))})(e),(e=>{A(`Waiting for ${ye.Subscription} event`),e.on(ye.Subscription,(e=>{A(`${ye.Subscription} received`),Yn=e}))})(e),e.on(ye.Login,(async e=>{var n;await(n=3e3,new Promise((e=>setTimeout(e,n))));const r={...e,hasSubscription:Yn,isTempServer:Wn};A("Ad banners login data",r),t(r)}))}catch(e){throw A("Error while waiting for login data: %O",e),new Error("Error while waiting for login data")}};let Xn,Qn,er,tr=[],nr=[],rr=null;const or=(t(yt).add_operation("isGGSNetwork",Et),t(yt).add_operation("showAdsReturnedPlayer",At),t(yt).add_operation("isExpired",It),qn),ir=new Map([[Ae.UPDATE_PAY,e=>{jn.remove(),dr(e,"paymentData"),Pn(nr)}]]),ar=e=>{var t;Xn=e,Qn=Jn(Xn),er=Qe(Xn),A("gameController: %O",Qn),pr(),(t=er.backgroundImage)?document.body.style.backgroundImage=`url(${t})`:document.body.style.backgroundColor="#fff"},sr=e=>{Me={get date(){return(new Date).toUTCString()},zoneId:De.zoneId,gameId:Number.parseInt(De.gameId,10),networkId:Number.parseInt(De.networkId,10),instanceId:De.instanceId,playerId:De.playerId,sessionId:Le},e.isTempServer?cr():lr(e)},cr=()=>{A("Temp server login detected!"),null!==rr?(rr&&Tn(er,tr),nr.length>0&&Pn(nr)):A("Error: first load logging in temp server!")},lr=e=>{const t={...e,originUrl:new URL(location.href).hostname};dr(t,"loginData");const n=or(e,er.adblocker.rules);var r;rr&&n&&(r=Xn,window.googlefc||(Ln("Google Funding Choices API and ad blocker loading..."),Dn(),Bn(),Un(r))),rr&&Tn(er,tr),nr.length>0&&Pn(nr),fr(rr,tr,nr)},dr=(e,t)=>{tr=[],nr=[];for(const[n,{rules:r}]of Object.entries(er.banners))or(e,r[t])?tr.push(n):(A("The %s banner does not comply with %s rules: %O",n,t,e),nr.push(n));rr=tr.length>0},ur=(e,t)=>{A(`triggerCallback - [${e}, ${t}]`),ir.has(e)||A(`Event ${e} is not registered in handlers map`);ir.get(e)(t)},pr=()=>{(async()=>{Kn(Xn,sr)})(),Qn.registerCustomGameHandlers(Xn,ur)},fr=(e,t,n)=>{setTimeout((()=>{Xn.emit(ye.AdBannerStatus,{areBannersAvailable:e,bannersDetails:{enabledBanners:t,disabledBanners:n}})}),5e3)},gr=e=>{var t;A("start initializing..."),A("tracking has been initialized %o",t=e),De=t,ar(e)};i("hsJ0L").then((e=>{gr(e)}))})();
(()=>{function e(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}function t(e){return e&&e.__esModule?e.default:e}var n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},r={},o={},i=n.parcelRequire0a90;null==i&&((i=function(e){if(e in r)return r[e].exports;if(e in o){var t=o[e];delete o[e];var n={id:e,exports:{}};return r[e]=n,t.call(n.exports,n,n.exports),n.exports}var i=new Error("Cannot find module '"+e+"'");throw i.code="MODULE_NOT_FOUND",i}).register=function(e,t){o[e]=t},n.parcelRequire0a90=i),i.register("kI8SP",(function(t,n){var r,o;e(t.exports,"register",(()=>r),(e=>r=e)),e(t.exports,"resolve",(()=>o),(e=>o=e));var i={};r=function(e){for(var t=Object.keys(e),n=0;n<t.length;n++)i[t[n]]=e[t[n]]},o=function(e){var t=i[e];if(null==t)throw new Error("Could not resolve bundle with id "+e);return t}})),i.register("8s8WA",(function(e,t){e.exports=function(e){function t(e){let r,o,i,a=null;function s(...e){if(!s.enabled)return;const n=s,o=Number(new Date),i=o-(r||o);n.diff=i,n.prev=r,n.curr=o,r=o,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let a=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,((r,o)=>{if("%%"===r)return"%";a++;const i=t.formatters[o];if("function"==typeof i){const t=e[a];r=i.call(n,t),e.splice(a,1),a--}return r})),t.formatArgs.call(n,e);(n.log||t.log).apply(n,e)}return s.namespace=e,s.useColors=t.useColors(),s.color=t.selectColor(e),s.extend=n,s.destroy=t.destroy,Object.defineProperty(s,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==a?a:(o!==t.namespaces&&(o=t.namespaces,i=t.enabled(e)),i),set:e=>{a=e}}),"function"==typeof t.init&&t.init(s),s}function n(e,n){const r=t(this.namespace+(void 0===n?":":n)+e);return r.log=this.log,r}function r(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){const e=[...t.names.map(r),...t.skips.map(r).map((e=>"-"+e))].join(",");return t.enable(""),e},t.enable=function(e){let n;t.save(e),t.namespaces=e,t.names=[],t.skips=[];const r=("string"==typeof e?e:"").split(/[\s,]+/),o=r.length;for(n=0;n<o;n++)r[n]&&("-"===(e=r[n].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.slice(1)+"$")):t.names.push(new RegExp("^"+e+"$")))},t.enabled=function(e){if("*"===e[e.length-1])return!0;let n,r;for(n=0,r=t.skips.length;n<r;n++)if(t.skips[n].test(e))return!1;for(n=0,r=t.names.length;n<r;n++)if(t.names[n].test(e))return!0;return!1},t.humanize=i("4N8Pa"),t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach((n=>{t[n]=e[n]})),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let n=0;for(let t=0;t<e.length;t++)n=(n<<5)-n+e.charCodeAt(t),n|=0;return t.colors[Math.abs(n)%t.colors.length]},t.enable(t.load()),t}})),i.register("4N8Pa",(function(e,t){var n=1e3,r=60*n,o=60*r,i=24*o,a=7*i,s=365.25*i;function c(e,t,n,r){var o=t>=1.5*n;return Math.round(e/n)+" "+r+(o?"s":"")}e.exports=function(e,t){t=t||{};var l,d,u=typeof e;if("string"===u&&e.length>0)return function(e){if((e=String(e)).length>100)return;var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!t)return;var c=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return c*s;case"weeks":case"week":case"w":return c*a;case"days":case"day":case"d":return c*i;case"hours":case"hour":case"hrs":case"hr":case"h":return c*o;case"minutes":case"minute":case"mins":case"min":case"m":return c*r;case"seconds":case"second":case"secs":case"sec":case"s":return c*n;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return c;default:return}}(e);if("number"===u&&isFinite(e))return t.long?(l=e,(d=Math.abs(l))>=i?c(l,d,i,"day"):d>=o?c(l,d,o,"hour"):d>=r?c(l,d,r,"minute"):d>=n?c(l,d,n,"second"):l+" ms"):function(e){var t=Math.abs(e);return t>=i?Math.round(e/i)+"d":t>=o?Math.round(e/o)+"h":t>=r?Math.round(e/r)+"m":t>=n?Math.round(e/n)+"s":e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}})),i.register("hIarR",(function(t,n){var r;e(t.exports,"getBundleURL",(()=>r),(e=>r=e));var o={};function i(e){return(""+e).replace(/^((?:https?|file|ftp|(chrome|moz|safari-web)-extension):\/\/.+)\/[^/]+$/,"$1")+"/"}r=function(e){var t=o[e];return t||(t=function(){try{throw new Error}catch(t){var e=(""+t.stack).match(/(https?|file|ftp|(chrome|moz|safari-web)-extension):\/\/[^)\n]+/g);if(e)return i(e[2])}return"/"}(),o[e]=t),t}})),i.register("hsJ0L",(function(e,t){"use strict";var n=window&&window.CXF;e.exports=new Promise((function(e,t){if(window||t(),n)return e(n);window.addEventListener("cxf.initialized",(function(t){n=t.cxf,e(n)}),{capture:!0,once:!0,passive:!0})}))})),i("kI8SP").register(JSON.parse('{"ldGXu":"index.js","gL7Zm":"wooden_tile_light_background.e7588122.png","dEJUC":"amazon-aps-script.min.420b3b9e.js","2BbfJ":"prebid-script.min.7c6f2abc.js","bMJod":"ad-blocking-recovery-script.min.f6423de5.js","lzUYe":"error-protection-message-script.min.8bfafdb0.js"}'));var a,s,c={},l={},d=l={};function u(){throw new Error("setTimeout has not been defined")}function p(){throw new Error("clearTimeout has not been defined")}function f(e){if(a===setTimeout)return setTimeout(e,0);if((a===u||!a)&&setTimeout)return a=setTimeout,setTimeout(e,0);try{return a(e,0)}catch(t){try{return a.call(null,e,0)}catch(t){return a.call(this,e,0)}}}!function(){try{a="function"==typeof setTimeout?setTimeout:u}catch(e){a=u}try{s="function"==typeof clearTimeout?clearTimeout:p}catch(e){s=p}}();var g,h=[],m=!1,C=-1;function w(){m&&g&&(m=!1,g.length?h=g.concat(h):C=-1,h.length&&v())}function v(){if(!m){var e=f(w);m=!0;for(var t=h.length;t;){for(g=h,h=[];++C<t;)g&&g[C].run();C=-1,t=h.length}g=null,m=!1,function(e){if(s===clearTimeout)return clearTimeout(e);if((s===p||!s)&&clearTimeout)return s=clearTimeout,clearTimeout(e);try{return s(e)}catch(t){try{return s.call(null,e)}catch(t){return s.call(this,e)}}}(e)}}function y(e,t){this.fun=e,this.array=t}function b(){}d.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];h.push(new y(e,t)),1!==h.length||m||f(v)},y.prototype.run=function(){this.fun.apply(null,this.array)},d.title="browser",d.browser=!0,d.env={},d.argv=[],d.version="",d.versions={},d.on=b,d.addListener=b,d.once=b,d.off=b,d.removeListener=b,d.removeAllListeners=b,d.emit=b,d.prependListener=b,d.prependOnceListener=b,d.listeners=function(e){return[]},d.binding=function(e){throw new Error("process.binding is not supported")},d.cwd=function(){return"/"},d.chdir=function(e){throw new Error("process.chdir is not supported")},d.umask=function(){return 0},c.formatArgs=function(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+c.humanize(this.diff),!this.useColors)return;const t="color: "+this.color;e.splice(1,0,t,"color: inherit");let n=0,r=0;e[0].replace(/%[a-zA-Z%]/g,(e=>{"%%"!==e&&(n++,"%c"===e&&(r=n))})),e.splice(r,0,t)},c.save=function(e){try{e?c.storage.setItem("debug",e):c.storage.removeItem("debug")}catch(e){}},c.load=function(){let e;try{e=c.storage.getItem("debug")}catch(e){}!e&&void 0!==l&&"env"in l&&(e=void 0);return e},c.useColors=function(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type&&!window.process.__nwjs)||("undefined"==typeof navigator||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},c.storage=function(){try{return localStorage}catch(e){}}(),c.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),c.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],c.log=console.debug||console.log||(()=>{}),c=i("8s8WA")(c);const{formatters:E}=c;E.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}};var A=t(c)("CXF-AD-BANNER:");var I={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let _;const F=new Uint8Array(16);function S(){if(!_&&(_="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!_))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return _(F)}const R=[];for(let e=0;e<256;++e)R.push((e+256).toString(16).slice(1));function T(e,t=0){return(R[e[t+0]]+R[e[t+1]]+R[e[t+2]]+R[e[t+3]]+"-"+R[e[t+4]]+R[e[t+5]]+"-"+R[e[t+6]]+R[e[t+7]]+"-"+R[e[t+8]]+R[e[t+9]]+"-"+R[e[t+10]]+R[e[t+11]]+R[e[t+12]]+R[e[t+13]]+R[e[t+14]]+R[e[t+15]]).toLowerCase()}var x,N=function(e,t,n){if(I.randomUUID&&!t&&!e)return I.randomUUID();const r=(e=e||{}).random||(e.rng||S)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(let e=0;e<16;++e)t[n+e]=r[e];return t}return T(r)},P={},O=Object.create,L=Object.defineProperty,k=Object.getOwnPropertyDescriptor,D=Object.getOwnPropertyNames,M=Object.getPrototypeOf,z=Object.prototype.hasOwnProperty,B=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),U=(e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let o of D(t))!z.call(e,o)&&o!==n&&L(e,o,{get:()=>t[o],enumerable:!(r=k(t,o))||r.enumerable});return e},j=B(((e,t)=>{var n=1e3,r=60*n,o=60*r,i=24*o,a=7*i,s=365.25*i;function c(e,t,n,r){var o=t>=1.5*n;return Math.round(e/n)+" "+r+(o?"s":"")}t.exports=function(e,t){t=t||{};var l=typeof e;if("string"===l&&e.length>0)return function(e){if(e=String(e),!(e.length>100)){var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(t){var c=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return c*s;case"weeks":case"week":case"w":return c*a;case"days":case"day":case"d":return c*i;case"hours":case"hour":case"hrs":case"hr":case"h":return c*o;case"minutes":case"minute":case"mins":case"min":case"m":return c*r;case"seconds":case"second":case"secs":case"sec":case"s":return c*n;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return c;default:return}}}}(e);if("number"===l&&isFinite(e))return t.long?function(e){var t=Math.abs(e);return t>=i?c(e,t,i,"day"):t>=o?c(e,t,o,"hour"):t>=r?c(e,t,r,"minute"):t>=n?c(e,t,n,"second"):e+" ms"}(e):function(e){var t=Math.abs(e);return t>=i?Math.round(e/i)+"d":t>=o?Math.round(e/o)+"h":t>=r?Math.round(e/r)+"m":t>=n?Math.round(e/n)+"s":e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}})),G=B(((e,t)=>{t.exports=function(e){function t(e){let r,o,i,a=null;function s(...e){if(!s.enabled)return;let n=s,o=Number(new Date),i=o-(r||o);n.diff=i,n.prev=r,n.curr=o,r=o,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let a=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,((r,o)=>{if("%%"===r)return"%";a++;let i=t.formatters[o];if("function"==typeof i){let t=e[a];r=i.call(n,t),e.splice(a,1),a--}return r})),t.formatArgs.call(n,e),(n.log||t.log).apply(n,e)}return s.namespace=e,s.useColors=t.useColors(),s.color=t.selectColor(e),s.extend=n,s.destroy=t.destroy,Object.defineProperty(s,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==a?a:(o!==t.namespaces&&(o=t.namespaces,i=t.enabled(e)),i),set:e=>{a=e}}),"function"==typeof t.init&&t.init(s),s}function n(e,n){let r=t(this.namespace+(typeof n>"u"?":":n)+e);return r.log=this.log,r}function r(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){let e=[...t.names.map(r),...t.skips.map(r).map((e=>"-"+e))].join(",");return t.enable(""),e},t.enable=function(e){t.save(e),t.namespaces=e,t.names=[],t.skips=[];let n,r=("string"==typeof e?e:"").split(/[\s,]+/),o=r.length;for(n=0;n<o;n++)!r[n]||("-"===(e=r[n].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.slice(1)+"$")):t.names.push(new RegExp("^"+e+"$")))},t.enabled=function(e){if("*"===e[e.length-1])return!0;let n,r;for(n=0,r=t.skips.length;n<r;n++)if(t.skips[n].test(e))return!1;for(n=0,r=t.names.length;n<r;n++)if(t.names[n].test(e))return!0;return!1},t.humanize=j(),t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach((n=>{t[n]=e[n]})),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let n=0;for(let t=0;t<e.length;t++)n=(n<<5)-n+e.charCodeAt(t),n|=0;return t.colors[Math.abs(n)%t.colors.length]},t.enable(t.load()),t}})),H=B(((e,t)=>{e.formatArgs=function(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+t.exports.humanize(this.diff),!this.useColors)return;let n="color: "+this.color;e.splice(1,0,n,"color: inherit");let r=0,o=0;e[0].replace(/%[a-zA-Z%]/g,(e=>{"%%"!==e&&(r++,"%c"===e&&(o=r))})),e.splice(o,0,n)},e.save=function(t){try{t?e.storage.setItem("debug",t):e.storage.removeItem("debug")}catch{}},e.load=function(){let t;try{t=e.storage.getItem("debug")}catch{}return!t&&typeof l<"u"&&"env"in l&&(t=void 0),t},e.useColors=function(){return!(!(typeof window<"u"&&window.process)||"renderer"!==window.process.type&&!window.process.__nwjs)||!(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&(typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},e.storage=function(){try{return localStorage}catch{}}(),e.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),e.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],e.log=console.debug||console.log||(()=>{}),t.exports=G()(e);var{formatters:n}=t.exports;n.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}})),$={};((e,t)=>{for(var n in t)L(e,n,{get:t[n],enumerable:!0})})($,{AC_AD_POPUP_SHOP_LINK_CLICK:()=>he,AC_CATEGORY_CHANGE:()=>se,AC_CHECKOUT_INITIATED:()=>Q,AC_LEMONSTAND_CLOSE:()=>ce,AC_PACKAGE_SELECTED:()=>ee,AC_SUBSCRIPTION_CANCEL_ABORTED:()=>oe,AC_SUBSCRIPTION_CANCEL_CONFIRMED:()=>ie,AC_SUBSCRIPTION_CANCEL_INTENDED:()=>re,EventTracker:()=>me,ST_AD_LOADED:()=>fe,ST_AD_POPUP_SHOWN:()=>ge,ST_CATEGORY_LOADED:()=>ne,ST_OFFER_PURCHASED:()=>de,ST_OFFER_SEEN:()=>te,ST_RELOAD_AFTER_SUCCESS:()=>le,ST_SUBSCRIPTION_CANCEL_SUCCESS:()=>ae,ST_SUBSCRIPTION_PURCHASED:()=>ue,ST_TRANSLATION_BLANK:()=>X,ST_TRANSLATION_ERROR:()=>W,ST_TRANSLATION_MISSING:()=>Y,ST_TRANSLATION_RACE_CONDITION:()=>K}),x=$,P=U(L({},"__esModule",{value:!0}),x);var V=((e,t,n)=>(n=null!=e?O(M(e)):{},U(!t&&e&&e.__esModule?n:L(n,"default",{value:e,enumerable:!0}),e)))(H()),Z=(0,V.default)("PMT-UNIFIED-TRACKING");function J(e){return(t,n)=>({...t,eventId:1273,failureCause:e,textId:n})}function q(e){return(t,n)=>({...t,eventId:1182,actionId:e,type:n,unixtimeMS:t.date})}var W={decorate:J("ese_no_lookup")},Y={decorate:J("ese_no_lookup")},K={decorate:J("pe_race_condition")},X={decorate:J("pe_blank")},Q={decorate:q(2)},ee={decorate:q(1)},te={decorate:q(5)},ne={decorate:q(0)},re={decorate:q(10)},oe={decorate:q(11)},ie={decorate:q(12)},ae={decorate:q(13)},se={decorate:q(4)},ce={decorate:q(100)},le={decorate:q(3)},de={decorate:(e,t,n,r,o)=>({...e,eventId:1183,packageId:t,wodId:n,amount:r,type:o})},ue={decorate:(e,t,n)=>({...e,eventId:1090,expire_timestamp:t,type:n})};function pe(e){return(t,n,r)=>({...t,eventId:1290,action_id:e,popup_name:n,popup_detail:r})}var fe={decorate:(e,t,n,r,o,i,a,s)=>({...e,eventId:1167,timestamp:e.date,actionType:t,placementDetail:n,placement:r,player_level:o,impression_id:i,reward:a,amount:s})},ge={decorate:pe("popup_shown")},he={decorate:pe("link_clicked")},me=class{constructor(e,t){this.endpoint=e,this.logger=t||Z}async send(e){let t=window.navigator.sendBeacon(this.endpoint,JSON.stringify(e));this.logger({endpoint:this.endpoint,data:e,response:t})}};const Ce={HORIZONTAL_BANNER:"horizontal",VERTICAL_BANNER:"vertical"},we={EMPIRE:12,BIGFARM:15},ve={EMPIRE_VERTICAL:"/21812119314/Banner_Empire_160x600",EMPIRE_HORIZONTAL:"/21812119314/Banner_Empire_728x90",BIGFARM_VERTICAL:"/21812119314/Banner_BigFarm_160x600",BIGFARM_HORIZONTAL:"/21812119314/Banner_BigFarm_728x90"},ye={Token:"cxf.token",Login:"cxf.login",Signup:"cxf.signup",GameEventUpdate:"cxf.gameEvent.update",GameEventAdd:"cxf.gameEvent.add",GameEventRemove:"cxf.gameEvent.remove",XpChanged:"cxf.xp.changed",LevelChanged:"cxf.level.changed",LegendLevelChanged:"cxf.legendLevel.changed",Push:"cxf.push",OpenIGS:"cxf.igs.open",CloseIGS:"cxf.dialog.close",AdBannerStatus:"cxf.adBanner.status",JoinTempServer:"cxf.join.temp.server",Subscription:"cxf.subscription"},be={UPDATE_PAY:"PAYMENT_DATA"},Ee={UPDATE_PAY:"upi"},Ae={LOGIN:"login",UPDATE_PAY:"updatePay"},Ie="game",_e=1e3,Fe=1050,Se="fb17ae44-d7a8-4c56-8a84-156b9387a3da",Re={[ve.EMPIRE_HORIZONTAL]:"923928",[ve.EMPIRE_VERTICAL]:"923928",[ve.BIGFARM_HORIZONTAL]:"923929",[ve.BIGFARM_VERTICAL]:"923929"},Te={[ve.EMPIRE_HORIZONTAL]:"2764324",[ve.EMPIRE_VERTICAL]:"2764324",[ve.BIGFARM_HORIZONTAL]:"2764328",[ve.BIGFARM_VERTICAL]:"2764328"},xe={[ve.EMPIRE_HORIZONTAL]:"19027",[ve.EMPIRE_VERTICAL]:"19027",[ve.BIGFARM_HORIZONTAL]:"19028",[ve.BIGFARM_VERTICAL]:"19028"},Ne={[ve.EMPIRE_HORIZONTAL]:"559469885",[ve.EMPIRE_VERTICAL]:"559469886",[ve.BIGFARM_HORIZONTAL]:"559469887",[ve.BIGFARM_VERTICAL]:"559469888"},Pe={[ve.EMPIRE_HORIZONTAL]:"712245820",[ve.EMPIRE_VERTICAL]:"664756262",[ve.BIGFARM_HORIZONTAL]:"176932359",[ve.BIGFARM_VERTICAL]:"542226828"},Oe=new(0,P.EventTracker)("https://cxf-ct.goodgamestudios.com"),Le=N(),ke=[2866122916];let De,Me;const ze={BANNER_ACTIVE:"banner_active",BANNER_INACTIVE:"banner_inactive",BANNER_CLICKED:"banner_clicked",BANNER_REFRESHED:"banner_refreshed"},Be=new Map([[ze.BANNER_ACTIVE,16],[ze.BANNER_INACTIVE,17],[ze.BANNER_CLICKED,18],[ze.BANNER_REFRESHED,19]]),Ue=new Map([[ze.BANNER_ACTIVE,7],[ze.BANNER_INACTIVE,8],[ze.BANNER_CLICKED,9],[ze.BANNER_REFRESHED,10]]),je=new Map([[Ce.HORIZONTAL_BANNER,Be],[Ce.VERTICAL_BANNER,Ue]]),Ge="ggs_backfill",He=(e,t,n)=>{const r=je.get(t),o=r?.get(e)||-5,i=n&&n.impression_id;return Oe.send(P.ST_AD_LOADED.decorate(Me,o,void 0,void 0,void 0,i))},$e=()=>Oe.send(P.ST_AD_POPUP_SHOWN.decorate(Me,"google_adblocker")),Ve=e=>{const t={};return e.campaignId&&ke.includes(e.campaignId)&&(t.impression_id=Ge),t};var Ze;Ze=i("hIarR").getBundleURL("ldGXu")+i("kI8SP").resolve("gL7Zm");const Je=30,qe={backgroundImage:new URL(Ze),refreshTime:30,requirements:{minLevel:10,noPaymentDays:Je}},We=[{isGGSNetwork:[{var:["networkId"]},[1]]},{or:[{"==":[{var:"lastPaymentDate"},0]},{isExpired:[{var:"lastPaymentDate"},Je]}]},{"!=":[{var:"hasSubscription"},!0]},{"!":[{in:[{var:"originUrl"},{cat:["bigfarm.rtl.de ","bigfarm.rtl2-spiele.de ","empire.rtl.de ","empire.rtl2-spiele.de "]}]}]}],Ye={gameId:we.BIGFARM,banners:{horizontal:{rules:{loginData:{and:[...We,{and:[{or:[{in:[{var:"instanceId"},[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25]]},{">=":[{var:"instanceId"},251]}]},{">=":[{var:"level"},10]}]}]},paymentData:{or:[{"==":[{var:"lastPaymentTime"},0]},{isExpired:[{var:"lastPaymentTime"},Je]}]}}},vertical:{rules:{loginData:{and:[...We,{and:[{or:[{in:[{var:"instanceId"},[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25]]},{">=":[{var:"instanceId"},251]}]},{">=":[{var:"level"},10]}]}]},paymentData:{or:[{"==":[{var:"lastPaymentTime"},0]},{isExpired:[{var:"lastPaymentTime"},Je]}]}}}},adblocker:{rules:{and:[{">=":[{var:"level"},10]}]}},adSlotSettings:[{unitPath:ve.BIGFARM_HORIZONTAL,defaultAdSize:[728,90],sizeMap:new Map([[[1200,700],[[970,90],[728,90]]],[[728,700],[[728,90]]],[[0,0],[]]]),htmlElements:{adPlaceholder:{id:"ad-placeholder-horizontal",width:"calc(100% - 300px)",height:100,style:"\n width: calc(100% - 300px);\n height: 100px;\n position: absolute;\n top: 0px;\n display: block;\n min-width: 798px;\n min-height: 100px;\n align: center;"},adContainer:{id:"ad-container-horizontal",style:"\n width: fit-content;\n height: fit-content;\n display:inline-block;\n background: #fff;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n position: relative;\n max-height: 90px;"}}},{unitPath:ve.BIGFARM_VERTICAL,defaultAdSize:[160,600],sizeMap:new Map([[[1100,800],[[220,800],[160,600],[300,600],[300,250]]],[[1100,600],[[160,600],[300,600],[300,250]]],[[0,0],[]]]),htmlElements:{adPlaceholder:{id:"ad-placeholder-vertical",width:300,height:"100%",style:"\n width: 300px;\n height: 100%;\n position: absolute;\n right: 0px;\n top: 0px;\n display: block;\n min-width: 300px;\n min-height: 610px;\n align: center;"},adContainer:{id:"ad-container-vertical",style:"\n width: fit-content;\n height: fit-content;\n display:inline-block;\n background: #fff;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n position: relative;\n max-width: 300px;"}}}]},Ke={gameId:we.EMPIRE,banners:{horizontal:{rules:{loginData:{and:[...We,{showAdsReturnedPlayer:[{var:"dayWentBack"},7]},{and:[{or:[{in:[{var:"instanceId"},[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,32,33,34,35,36,37,38,43,46]]},{">=":[{var:"instanceId"},251]}]},{">=":[{var:"level"},10]}]}]},paymentData:{or:[{"==":[{var:"LPD"},0]},{isExpired:[{var:"LPD"},Je]}]}}},vertical:{rules:{loginData:{and:[...We,{showAdsReturnedPlayer:[{var:"dayWentBack"},7]},{and:[{or:[{in:[{var:"instanceId"},[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,32,33,34,35,36,37,38,43,46]]},{">=":[{var:"instanceId"},251]}]},{">=":[{var:"level"},10]}]}]},paymentData:{or:[{"==":[{var:"LPD"},0]},{isExpired:[{var:"LPD"},Je]}]}}}},adblocker:{rules:{and:[{">=":[{var:"level"},10]}]}},adSlotSettings:[{unitPath:ve.EMPIRE_HORIZONTAL,defaultAdSize:[728,90],sizeMap:new Map([[[1200,700],[[970,90],[728,90]]],[[728,700],[[728,90]]],[[0,0],[]]]),htmlElements:{adPlaceholder:{id:"ad-placeholder-horizontal",width:"calc(100% - 300px)",height:100,style:"\n width: calc(100% - 300px);\n height: 100px;\n position: absolute;\n top: 0px;\n display: block;\n min-width: 798px;\n min-height: 100px;\n align: center;"},adContainer:{id:"ad-container-horizontal",style:"\n width: fit-content;\n height: fit-content;\n display:inline-block;\n background: #fff;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n position: relative;\n max-height: 90px;"}}},{unitPath:ve.EMPIRE_VERTICAL,defaultAdSize:[160,600],sizeMap:new Map([[[1100,800],[[220,800],[160,600],[300,600],[300,250]]],[[1100,600],[[160,600],[300,600],[300,250]]],[[0,0],[]]]),htmlElements:{adPlaceholder:{id:"ad-placeholder-vertical",width:300,height:"100%",style:"\n width: 300px;\n height: 100%;\n position: absolute;\n right: 0px;\n top: 0px;\n display: block;\n min-width: 300px;\n min-height: 610px;\n align: center;"},adContainer:{id:"ad-container-vertical",style:"\n width: fit-content;\n height: fit-content;\n display:inline-block;\n background: #fff;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n position: relative;\n max-width: 300px;"}}}]},Xe=new Map([[`${we.BIGFARM}`,Ye],[`${we.EMPIRE}`,Ke]]),Qe=({gameId:e})=>{const t=Xe.get(e);if(!t)throw A(`Game '${e}' is not supported`),new Error(`Game '${e}' is not supported`);return{...qe,...t}};var et,tt="Expected a function",nt=NaN,rt="[object Symbol]",ot=/^\s+|\s+$/g,it=/^[-+]0x[0-9a-f]+$/i,at=/^0b[01]+$/i,st=/^0o[0-7]+$/i,ct=parseInt,lt="object"==typeof n&&n&&n.Object===Object&&n,dt="object"==typeof self&&self&&self.Object===Object&&self,ut=lt||dt||Function("return this")(),pt=Object.prototype.toString,ft=Math.max,gt=Math.min,ht=function(){return ut.Date.now()};function mt(e,t,n){var r,o,i,a,s,c,l=0,d=!1,u=!1,p=!0;if("function"!=typeof e)throw new TypeError(tt);function f(t){var n=r,i=o;return r=o=void 0,l=t,a=e.apply(i,n)}function g(e){var n=e-c;return void 0===c||n>=t||n<0||u&&e-l>=i}function h(){var e=ht();if(g(e))return m(e);s=setTimeout(h,function(e){var n=t-(e-c);return u?gt(n,i-(e-l)):n}(e))}function m(e){return s=void 0,p&&r?f(e):(r=o=void 0,a)}function C(){var e=ht(),n=g(e);if(r=arguments,o=this,c=e,n){if(void 0===s)return function(e){return l=e,s=setTimeout(h,t),d?f(e):a}(c);if(u)return s=setTimeout(h,t),f(c)}return void 0===s&&(s=setTimeout(h,t)),a}return t=wt(t)||0,Ct(n)&&(d=!!n.leading,i=(u="maxWait"in n)?ft(wt(n.maxWait)||0,t):i,p="trailing"in n?!!n.trailing:p),C.cancel=function(){void 0!==s&&clearTimeout(s),l=0,r=c=o=s=void 0},C.flush=function(){return void 0===s?a:m(ht())},C}function Ct(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function wt(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&pt.call(e)==rt}(e))return nt;if(Ct(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Ct(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(ot,"");var n=at.test(e);return n||st.test(e)?ct(e.slice(2),n?2:8):it.test(e)?nt:+e}et=function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new TypeError(tt);return Ct(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),mt(e,t,{leading:r,maxWait:t,trailing:o})};var vt,yt={};vt=function(){"use strict";Array.isArray||(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)});var e={},t={"==":function(e,t){return e==t},"===":function(e,t){return e===t},"!=":function(e,t){return e!=t},"!==":function(e,t){return e!==t},">":function(e,t){return e>t},">=":function(e,t){return e>=t},"<":function(e,t,n){return void 0===n?e<t:e<t&&t<n},"<=":function(e,t,n){return void 0===n?e<=t:e<=t&&t<=n},"!!":function(t){return e.truthy(t)},"!":function(t){return!e.truthy(t)},"%":function(e,t){return e%t},log:function(e){return console.log(e),e},in:function(e,t){return!(!t||void 0===t.indexOf)&&-1!==t.indexOf(e)},cat:function(){return Array.prototype.join.call(arguments,"")},substr:function(e,t,n){if(n<0){var r=String(e).substr(t);return r.substr(0,r.length+n)}return String(e).substr(t,n)},"+":function(){return Array.prototype.reduce.call(arguments,(function(e,t){return parseFloat(e,10)+parseFloat(t,10)}),0)},"*":function(){return Array.prototype.reduce.call(arguments,(function(e,t){return parseFloat(e,10)*parseFloat(t,10)}))},"-":function(e,t){return void 0===t?-e:e-t},"/":function(e,t){return e/t},min:function(){return Math.min.apply(this,arguments)},max:function(){return Math.max.apply(this,arguments)},merge:function(){return Array.prototype.reduce.call(arguments,(function(e,t){return e.concat(t)}),[])},var:function(e,t){var n=void 0===t?null:t,r=this;if(void 0===e||""===e||null===e)return r;for(var o=String(e).split("."),i=0;i<o.length;i++){if(null==r)return n;if(void 0===(r=r[o[i]]))return n}return r},missing:function(){for(var t=[],n=Array.isArray(arguments[0])?arguments[0]:arguments,r=0;r<n.length;r++){var o=n[r],i=e.apply({var:o},this);null!==i&&""!==i||t.push(o)}return t},missing_some:function(t,n){var r=e.apply({missing:n},this);return n.length-r.length>=t?[]:r}};return e.is_logic=function(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)&&1===Object.keys(e).length},e.truthy=function(e){return!(Array.isArray(e)&&0===e.length||!e)},e.get_operator=function(e){return Object.keys(e)[0]},e.get_values=function(t){return t[e.get_operator(t)]},e.apply=function(n,r){if(Array.isArray(n))return n.map((function(t){return e.apply(t,r)}));if(!e.is_logic(n))return n;var o,i,a,s,c,l=e.get_operator(n),d=n[l];if(Array.isArray(d)||(d=[d]),"if"===l||"?:"==l){for(o=0;o<d.length-1;o+=2)if(e.truthy(e.apply(d[o],r)))return e.apply(d[o+1],r);return d.length===o+1?e.apply(d[o],r):null}if("and"===l){for(o=0;o<d.length;o+=1)if(i=e.apply(d[o],r),!e.truthy(i))return i;return i}if("or"===l){for(o=0;o<d.length;o+=1)if(i=e.apply(d[o],r),e.truthy(i))return i;return i}if("filter"===l)return s=e.apply(d[0],r),a=d[1],Array.isArray(s)?s.filter((function(t){return e.truthy(e.apply(a,t))})):[];if("map"===l)return s=e.apply(d[0],r),a=d[1],Array.isArray(s)?s.map((function(t){return e.apply(a,t)})):[];if("reduce"===l)return s=e.apply(d[0],r),a=d[1],c=void 0!==d[2]?d[2]:null,Array.isArray(s)?s.reduce((function(t,n){return e.apply(a,{current:n,accumulator:t})}),c):c;if("all"===l){if(s=e.apply(d[0],r),a=d[1],!s.length)return!1;for(o=0;o<s.length;o+=1)if(!e.truthy(e.apply(a,s[o])))return!1;return!0}if("none"===l)return 0===e.apply({filter:d},r).length;if("some"===l)return e.apply({filter:d},r).length>0;if(d=d.map((function(t){return e.apply(t,r)})),t.hasOwnProperty(l)&&"function"==typeof t[l])return t[l].apply(r,d);if(l.indexOf(".")>0){var u=String(l).split("."),p=t;for(o=0;o<u.length;o++){if(!p.hasOwnProperty(u[o]))throw new Error("Unrecognized operation "+l+" (failed at "+u.slice(0,o+1).join(".")+")");p=p[u[o]]}return p.apply(r,d)}throw new Error("Unrecognized operation "+l)},e.uses_data=function(t){var n=[];if(e.is_logic(t)){var r=e.get_operator(t),o=t[r];Array.isArray(o)||(o=[o]),"var"===r?n.push(o[0]):o.map((function(t){n.push.apply(n,e.uses_data(t))}))}return function(e){for(var t=[],n=0,r=e.length;n<r;n++)-1===t.indexOf(e[n])&&t.push(e[n]);return t}(n)},e.add_operation=function(e,n){t[e]=n},e.rm_operation=function(e){delete t[e]},e.rule_like=function(t,n){if(n===t)return!0;if("@"===n)return!0;if("number"===n)return"number"==typeof t;if("string"===n)return"string"==typeof t;if("array"===n)return Array.isArray(t)&&!e.is_logic(t);if(e.is_logic(n)){if(e.is_logic(t)){var r=e.get_operator(n),o=e.get_operator(t);if("@"===r||r===o)return e.rule_like(e.get_values(t,!1),e.get_values(n,!1))}return!1}if(Array.isArray(n)){if(Array.isArray(t)){if(n.length!==t.length)return!1;for(var i=0;i<n.length;i+=1)if(!e.rule_like(t[i],n[i]))return!1;return!0}return!1}return!1},e},"function"==typeof define&&define.amd?define(vt):yt=vt();const bt=A.extend("Utils"),Et=(e,t)=>t.includes(Number.parseInt(e,10)),At=(e,t)=>!(-1!==e)||It(e,t),It=(e,t)=>("number"==typeof e&&/\d{10}/.test(`${e}`)&&(e*=1e3),Date.now()-e>=864e5*t),_t=e=>new Promise((function(t,n){const r=document.createElement("script");r.src=e,r.addEventListener("load",(function(){bt(`Script loaded: ${e}`),t()})),r.addEventListener("error",(function(t){bt(`Error loading script: ${e} %O`,t),n(t)})),document.head.append(r)})),Ft=A.extend("PREBID").extend("Amazon");var St={};function Rt(){Ft("Amazon ads is loading...");const e=new URL(St).toString();return _t(e).then((()=>{window.apstag.init({pubID:Se,adServer:"googletag",simplerGPT:!0})}))}St=i("hIarR").getBundleURL("ldGXu")+i("kI8SP").resolve("dEJUC");const Tt=A.extend("PREBID"),xt={config:{userSync:{iframeEnabled:!0,filterSettings:{iframe:{bidders:"*",filter:"include"}}}},bidderSettings:{ix:{storageAllowed:!0}}},Nt=e=>{if(Tt("Building partners config..."),!Object.values(ve).includes(e))throw new Error(`Invalid unit path ID: ${e}`);const t=[],{partners:n}=(e=>({partners:{ix:{params:{siteId:Re[e]}},pubmatic:{params:{publisherId:"162973"}},rubicon:{params:{accountId:"23558",siteId:"376420",zoneId:Te[e],position:"atf"}},underdogmedia:{params:{siteId:xe[e]}},openx:{params:{unit:Ne[e],delDomain:"goodgamestudios-d.openx.net"}},medianet:{params:{cid:"8CUW5Q486",crid:Pe[e]}}}}))(e);for(const[e,{params:r}]of Object.entries(n))t.push({bidder:e,params:r});return{bids:t}},Pt=A.extend("PREBID");var Ot;Ot=i("hIarR").getBundleURL("ldGXu")+i("kI8SP").resolve("2BbfJ");const Lt=e=>{Pt("Prebid is loading...");const t=new URL(Ot).toString();return _t(t).then((()=>{const{adUnits:t,config:n,bidderSettings:r}=Dt(e);window.pbjs=window.pbjs||{},window.pbjs.que=window.pbjs.que||[],window.pbjs.que.push((()=>{window.pbjs.addAdUnits(t),window.pbjs.setConfig(n),window.pbjs.bidderSettings=r,Pt("Prebid initiated")}))}))},kt=e=>{const t=[];for(const[n,r]of[...e].reverse())t.push({minViewPort:n,sizes:r});return t},Dt=({adSlotSettings:e})=>{const t=[],{config:n,bidderSettings:r}=xt;for(const{sizeMap:n,unitPath:r}of e){const e=kt(n),{bids:o}=Nt(r);t.push({code:r,bids:o,mediaTypes:{banner:{sizeConfig:e}}})}return{config:{bidderTimeout:_e,...n},adUnits:t,bidderSettings:r}},Mt=A.extend("PREBID").extend("Auction"),zt=async(e,t)=>{await Promise.all([Rt(),Lt(t)]),Bt(e)},Bt=e=>{jt([Gt(e),Ht()])},Ut=e=>{Mt("Refreshing bids: ",e),window.googletag.cmd.push((()=>{jt([Gt(e),Ht(e)],e)}))},jt=(e,t=[])=>{Promise.all(e).then((()=>{Mt("Bids requested successfully")})).catch((e=>{Mt("Requesting bids error: ",e)})).finally((()=>{window.googletag.cmd.push((()=>{Mt("Loading new ads..."),t.length>0?window.googletag.pubads().refresh(t):window.googletag.pubads().refresh()}))}))},Gt=e=>new Promise(((t,n)=>{window.apstag.fetchBids({slots:e,timeout:_e},(e=>{Mt("Aps bids",e),window.googletag.cmd.push((()=>{window.apstag.setDisplayBids(),t(e)}))})),setTimeout((()=>{n(new Error("Aps request timeout has exceeded 1050"))}),Fe)})),Ht=(e=[])=>{const t=e.map((e=>e.getAdUnitPath()));return new Promise(((e,n)=>{window.pbjs.que.push((()=>{window.pbjs.requestBids({timeout:_e,adUnitCodes:t,bidsBackHandler:()=>{window.googletag.cmd.push((()=>{t.length>0?window.pbjs.setTargetingForGPTAsync(t):window.pbjs.setTargetingForGPTAsync(),e()}))}})})),setTimeout((()=>{n(new Error("Prebid request timeout has exceeded 1050"))}),Fe)}))},$t=[],Vt={vertical:{},horizontal:{}},Zt=(e,t,n)=>{const r=document.querySelector(`#${Ie}`);return r.style.width=e,r.style.height=t,r.style.marginTop=`${n}px`,!0},Jt=e=>"number"==typeof e,qt=e=>{let t=0,n=0;for(const r of e){const{htmlElements:{adPlaceholder:{width:e,height:o}}}=r;Jt(e)&&e>t&&(t=e),Jt(o)&&o>n&&(n=o)}return{width:`calc(100vw - ${t}px)`,height:`calc(100vh - ${n}px)`,bannerWidth:t,bannerHeight:n}},Wt=e=>{const{htmlElements:t}=e;if(!document.querySelector(`#${t.adContainer.id}`)){const e=document.createElement("div");e.setAttribute("id",t.adPlaceholder.id),e.setAttribute("style",t.adPlaceholder.style);const n=document.createElement("div");n.setAttribute("id",t.adContainer.id),n.setAttribute("style",t.adContainer.style),e.append(n),document.body.append(e),$t.push(e)}},Yt=e=>{for(const t of e){const e=$t.find((e=>e.id.includes(t)));e&&(e.remove(),Vt[t].isShown=!1)}},Kt=e=>{for(const t of e){const e=$t.find((e=>e.id.includes(t)));e&&(document.body.append(e),Vt[t].isShown=!0)}};let Xt,Qt,en,tn,nn,rn,on,an,sn="100vw",cn="100vh";const ln=[],dn=()=>Vt.vertical.isShown?sn:"100vw",un=()=>Vt.horizontal.isShown?cn:"100vh",pn=()=>Vt.horizontal.isShown?`${Xt}px`:"0px";let fn,gn;const hn=(e,t=!1)=>{fn=setTimeout((()=>{Ut([ln[0]]),clearTimeout(fn)}),1e3*e),t&&Ut([ln[0]])},mn=(e,t=!1)=>{gn=setTimeout((()=>{Ut([ln[1]]),clearTimeout(gn)}),1e3*e),t&&Ut([ln[1]])},Cn=(e,t)=>{A("Creating ad slots"),window.googletag=window.googletag||{cmd:[]},window.googletag.cmd.push((()=>{try{for(const e of t){const t=window.googletag.sizeMapping();if(e.sizeMap)for(const[n,r]of e.sizeMap)t.addSize(n,r);const n=window.googletag.defineSlot(e.unitPath,e.defaultAdSize,e.htmlElements.adContainer.id);n?ln.push(n.addService(window.googletag.pubads()).defineSizeMapping(t.build())):A(`Error while creating ad slot: ${e.unitPath}`)}window.googletag.pubads().addEventListener("slotOnload",(e=>t=>{const n=t.slot.getSlotElementId();A(`Creative iframe load event has fired. slotId: ${n}`),n.includes("horizontal")?hn(e):n.includes("vertical")?mn(e):A("No slot to refresh")})(e)),window.googletag.pubads().addEventListener("slotVisibilityChanged",(e=>{0===e.inViewPercentage?bn():En()})),window.googletag.pubads().addEventListener("slotRenderEnded",(e=>{const t=e.slot.getSlotElementId(),n=On(t);He(ze.BANNER_REFRESHED,n,Ve(e)),A("Slot %s finished rendering. %O",t,{"Advertiser ID":e.advertiserId,"Campaign ID":e.campaignId,"Creative ID":e.creativeId,"Is empty?":e.isEmpty,"Line Item ID":e.lineItemId,Size:e.size,"Source Agnostic Creative ID":e.sourceAgnosticCreativeId,"Source Agnostic Line Item ID":e.sourceAgnosticLineItemId})})),window.googletag.pubads().enableSingleRequest(),window.googletag.pubads().disableInitialLoad(),window.googletag.enableServices();for(const e of t){const{htmlElements:{adContainer:t}}=e;window.googletag.display(t.id)}}catch(e){A("Error while setting up ad banners",e)}}))},wn=(e,t,n)=>{const r=document.querySelector(`#${Ie}`);return e&&(r.style.width=e),t&&(r.style.height=t),n&&(r.style.marginTop=n),!0},vn=e=>{A("pause banner ad",e),e.includes("horizontal")&&Vt.horizontal.isShown&&(Yt(["horizontal"]),wn(void 0,un(),pn()),clearTimeout(fn),He(ze.BANNER_INACTIVE,"horizontal"),A("Horizontal ad banner paused")),e.includes("vertical")&&Vt.vertical.isShown&&(Yt(["vertical"]),wn(dn()),clearTimeout(gn),He(ze.BANNER_INACTIVE,"vertical"),A("Vertical ad banner paused"))},yn=e=>{e.includes("horizontal")&&Vt.horizontal.isEnabled&&!Vt.horizontal.isShown&&(Kt(["horizontal"]),wn(void 0,un(),pn()),hn(an,!0),He(ze.BANNER_ACTIVE,"horizontal"),A("Horizontal ad banner resumed")),e.includes("vertical")&&Vt.vertical.isEnabled&&!Vt.vertical.isShown&&(Kt(["vertical"]),wn(dn()),mn(an,!0),He(ze.BANNER_ACTIVE,"vertical"),A("Vertical ad banner resumed"))},bn=()=>{Vt.isActiveTab&&(A("Stopping ads refreshment on passive tab"),Vt.isActiveTab=!1,clearTimeout(fn),clearTimeout(gn))},En=()=>{Vt.isActiveTab||(A("Resuming ads refreshment on active tab"),Vt.isActiveTab=!0,Vt.horizontal.isEnabled&&Vt.horizontal.isShown&&(A("Horizontal ad banner refreshing"),hn(an)),Vt.vertical.isEnabled&&Vt.vertical.isShown&&(A("Vertical ad banner refreshing"),mn(an)))},An=function(e){for(const t of e){const e=t.target.style;e.width!==dn()&&(e.width=dn())}},In=function(e){for(const t of e){const e=t.target.style;e.height!==un()&&(e.height=un(),e.marginTop=pn())}},_n=()=>{const{innerHeight:e,innerWidth:t}=window;t>=728&&e>=nn+on?yn(["horizontal"]):Vt.horizontal.isShown&&vn(["horizontal"]),t>=tn+rn&&e>=nn?yn(["vertical"]):Vt.vertical.isShown&&vn(["vertical"])},Fn=t(et)(_n,100),Sn=()=>{const e=document.querySelector(`#${Ie}`),t={attributes:!0,subtree:!1,childList:!1,attributeFilter:["style"]};en.observe(e,t),Qt.observe(e,t),_n(),window.addEventListener("resize",Fn)},Rn=({refreshTime:e,adSlotSettings:t},n)=>{try{A("Setting up banners");const{width:r,height:o,bannerWidth:i,bannerHeight:a}=qt(t);sn=r,cn=o,Xt=a,Zt(r,o,a),rn=i,on=a;for(const e of t)Wt(e);tn=Number.parseInt(document.querySelector(`#${Ie}`).style.minWidth,10)||800,nn=Number.parseInt(document.querySelector(`#${Ie}`).style.minHeight,10)||600,Qt=new MutationObserver(An),en=new MutationObserver(In),an=e,Cn(e,t),Vt.horizontal.isShown=!0,Vt.vertical.isShown=!0,Vt.horizontal.isEnabled=!0,Vt.vertical.isEnabled=!0,Sn(),n.includes("vertical")||(Vt.vertical.isEnabled=!1,vn(["vertical"])),n.includes("horizontal")||(Vt.horizontal.isEnabled=!1,vn(["horizontal"])),Vt.horizontal.isShown&&He(ze.BANNER_ACTIVE,"horizontal"),Vt.vertical.isShown&&He(ze.BANNER_ACTIVE,"vertical")}catch(e){A("Failed to load ads",e)}},Tn=async(e,t)=>{window.googletag?.apiReady?(A("Google publisher tag was already initialized."),Nn(t)):(await xn(),Rn(e,t),await zt(ln,e))},xn=()=>(A("Google publisher tag is loading..."),_t("https://securepubads.g.doubleclick.net/tag/js/gpt.js")),Nn=e=>{A("Enable ad: ",e),Vt.vertical.isEnabled=e.includes("vertical"),Vt.horizontal.isEnabled=e.includes("horizontal"),Sn(),e.includes("vertical")||vn(["vertical"]),e.includes("horizontal")||vn(["horizontal"])},Pn=e=>{A("Disabling banner ads:",e),e.includes("vertical")&&(Qt?.disconnect(),Vt.vertical.isEnabled=!1),e.includes("horizontal")&&(en?.disconnect(),Vt.horizontal.isEnabled=!1),vn(e),Vt.horizontal.isShown||Vt.vertical.isShown||window.removeEventListener("resize",Fn)},On=e=>{if(e.includes("horizontal"))return"horizontal";if(e.includes("vertical"))return"vertical";throw A(`Unknown slot type. ID: ${e}`),new Error(`Unknown slot type. ID: ${e}`)},Ln=A.extend("AD-BLOCK-DETECTION");let kn=!0;const Dn=()=>{window.googlefc=window.googlefc||{},window.googlefc.ccpa=window.googlefc.ccpa||{},window.googlefc.callbackQueue=window.googlefc.callbackQueue||[],window.googlefc.controlledMessagingFunction=e=>{kn&&($e(),kn=!1),e.proceed(!0)}};var Mn;Mn=i("hIarR").getBundleURL("ldGXu")+i("kI8SP").resolve("bMJod");var zn;zn=i("hIarR").getBundleURL("ldGXu")+i("kI8SP").resolve("lzUYe");const Bn=()=>{const e=document.createElement("script"),t=document.createElement("script"),n=document.createElement("script");e.async=!0,e.src="https://fundingchoicesmessages.google.com/i/pub-6694780994007094?ers=1",t.src=new URL(Mn).toString(),n.src=new URL(zn).toString(),document.head.append(e,t,n)},Un=e=>{history.pushState(null,""," "),window.addEventListener("hashchange",(t=>{t.newURL.includes("#store")&&!t.oldURL.includes("#store")&&(e.emit(ye.OpenIGS,{page:"dailybundles",sourceId:"adBlockPopupShopButton"}),jn.hide(),Oe.send(P.AC_AD_POPUP_SHOP_LINK_CLICK.decorate(Me,"google_adblocker","link_to_igs"))),e.once(ye.CloseIGS,(()=>{jn.show(),history.pushState(null,""," ")}))}),!1)};const jn=new class{constructor(e){this.status="",this.elementIdentifier=e}get element(){let[e]=document.querySelectorAll(this.elementIdentifier);return e||(Ln("Adblock consent modal not found, using fallback"),e=document.createElement("div")),e}show(){$e(),this.element.removeAttribute("style"),this.status="visible"}hide(){this.element.setAttribute("style","display: none!important"),this.status="hidden"}remove(){this.element.remove(),this.status="removed"}isShown(){return"visible"===this.status}isHidden(){return"hidden"===this.status}isRemoved(){return"removed"===this.status}}(".fc-ab-root");let Gn,Hn;let $n,Vn;const Zn=new Map([[we.EMPIRE,{registerCustomGameHandlers:(e,t)=>{A("EM - registerCustomGameHandlers"),$n=e,Vn=t,$n.on(Ee.UPDATE_PAY,(e=>{const[t]=e,n=t[1],r=JSON.parse(n);Vn(Ae.UPDATE_PAY,r)}))}}],[we.BIGFARM,{registerCustomGameHandlers:(e,t)=>{A("BF - registerCustomGameHandlers"),Gn=e,Hn=t,Gn.on("124",(()=>{})),Gn.on(be.UPDATE_PAY,(e=>{const[t]=e;Hn(Ae.UPDATE_PAY,t)}))}}]]),Jn=e=>{const t=Number.parseInt(e.gameId,10);if(!Zn.has(t))throw A(`Game controller is not registered for the game - [${t}]`),new Error(`Game controller is not registered for the game - [${t}]`);return Zn.get(t)},qn=(e,n)=>t(yt).apply(n,e);let Wn=!1,Yn=!0;const Kn=(e,t)=>{try{(e=>{A(`Waiting for ${ye.JoinTempServer} event`),e.on(ye.JoinTempServer,(e=>{A(`${ye.JoinTempServer} received`,{isTempServer:e}),Wn=e}))})(e),(e=>{A(`Waiting for ${ye.Subscription} event`),e.on(ye.Subscription,(e=>{A(`${ye.Subscription} received`),Yn=e}))})(e),e.on(ye.Login,(async e=>{var n;await(n=3e3,new Promise((e=>setTimeout(e,n))));const r={...e,hasSubscription:Yn,isTempServer:Wn};A("Ad banners login data",r),t(r)}))}catch(e){throw A("Error while waiting for login data: %O",e),new Error("Error while waiting for login data")}};let Xn,Qn,er,tr=[],nr=[],rr=null;const or=(t(yt).add_operation("isGGSNetwork",Et),t(yt).add_operation("showAdsReturnedPlayer",At),t(yt).add_operation("isExpired",It),qn),ir=new Map([[Ae.UPDATE_PAY,e=>{jn.remove(),dr(e,"paymentData"),Pn(nr)}]]),ar=e=>{var t;Xn=e,Qn=Jn(Xn),er=Qe(Xn),A("gameController: %O",Qn),pr(),(t=er.backgroundImage)?document.body.style.backgroundImage=`url(${t})`:document.body.style.backgroundColor="#fff"},sr=e=>{Me={get date(){return(new Date).toUTCString()},zoneId:De.zoneId,gameId:Number.parseInt(De.gameId,10),networkId:Number.parseInt(De.networkId,10),instanceId:De.instanceId,playerId:De.playerId,sessionId:Le},e.isTempServer?cr():lr(e)},cr=()=>{A("Temp server login detected!"),null!==rr?(rr&&Tn(er,tr),nr.length>0&&Pn(nr)):A("Error: first load logging in temp server!")},lr=e=>{const t={...e,originUrl:new URL(location.href).hostname};dr(t,"loginData");const n=or(e,er.adblocker.rules);var r;rr&&n&&(r=Xn,window.googlefc||(Ln("Google Funding Choices API and ad blocker loading..."),Dn(),Bn(),Un(r))),rr&&Tn(er,tr),nr.length>0&&Pn(nr),fr(rr,tr,nr)},dr=(e,t)=>{tr=[],nr=[];for(const[n,{rules:r}]of Object.entries(er.banners))or(e,r[t])?tr.push(n):(A("The %s banner does not comply with %s rules: %O",n,t,e),nr.push(n));rr=tr.length>0},ur=(e,t)=>{A(`triggerCallback - [${e}, ${t}]`),ir.has(e)||A(`Event ${e} is not registered in handlers map`);ir.get(e)(t)},pr=()=>{(async()=>{Kn(Xn,sr)})(),Qn.registerCustomGameHandlers(Xn,ur)},fr=(e,t,n)=>{setTimeout((()=>{Xn.emit(ye.AdBannerStatus,{areBannersAvailable:e,bannersDetails:{enabledBanners:t,disabledBanners:n}})}),5e3)},gr=e=>{var t;A("start initializing..."),A("tracking has been initialized %o",t=e),De=t,ar(e)};i("hsJ0L").then((e=>{gr(e)}))})();
//# sourceMappingURL=index.js.map
{
"name": "@goodgamestudios/cxf-banners",
"version": "1.28.0-qa.0",
"version": "1.28.0",
"description": "Banners in GGS game frame",

@@ -5,0 +5,0 @@ "type": "module",

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc