(() => { var e = { 564: (e, t, i) => { var n, r, o; ! function(i, a) { if (i) { var s = {}, d = i.TraceKit, A = [].slice, c = "?", l = /^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/; s.noConflict = function() { return i.TraceKit = d, s }, s.wrap = function(e) { return function() { try { return e.apply(this, arguments) } catch (e) { throw s.report(e), e } } }, s.report = function() { var e, t, n, r, o = [], a = null, d = null; function A(e, t, i) { var n = null; if (!t || s.collectWindowErrors) { for (var r in o) if (u(o, r)) try { o[r](e, t, i) } catch (e) { n = e } if (n) throw n } } function c(t, i, n, r, o) { if (d) s.computeStackTrace.augmentStackTraceWithInitialElement(d, i, n, t), h(); else if (o) A(s.computeStackTrace(o), !0, o); else { var a, c = { url: i, line: n, column: r }, u = t; if ("[object String]" === {}.toString.call(t)) { var p = t.match(l); p && (a = p[1], u = p[2]) } c.func = s.computeStackTrace.guessFunctionName(c.url, c.line), c.context = s.computeStackTrace.gatherContext(c.url, c.line), A({ name: a, message: u, mode: "onerror", stack: [c] }, !0, null) } return !!e && e.apply(this, arguments) } function p(e) { A(s.computeStackTrace(e.reason), !0, e.reason) } function h() { var e = d, t = a; d = null, a = null, A(e, !1, t) } function m(e) { if (d) { if (a === e) return; h() } var t = s.computeStackTrace(e); throw d = t, a = e, setTimeout((function() { a === e && h() }), t.incomplete ? 2e3 : 0), e } return m.subscribe = function(a) { ! function() { if (!0 === t) return; e = i.onerror, i.onerror = c, t = !0 }(), function() { if (!0 === r) return; n = i.onunhandledrejection, i.onunhandledrejection = p, r = !0 }(), o.push(a) }, m.unsubscribe = function(a) { for (var s = o.length - 1; s >= 0; --s) o[s] === a && o.splice(s, 1); 0 === o.length && (t && (i.onerror = e, t = !1), r && (i.onunhandledrejection = n, r = !1)) }, m }(), s.computeStackTrace = function() { var e = !1, t = {}; function n(e) { if ("string" != typeof e) return []; if (!u(t, e)) { var n = "", r = ""; try { r = i.document.domain } catch (e) {} var o = /(.*)\:\/\/([^:\/]+)([:\d]*)\/{0,1}([\s\S]*)/.exec(e); o && o[2] === r && (n = function(e) { if (!s.remoteFetching) return ""; try { var t = function() { try { return new i.XMLHttpRequest } catch (e) { return new i.ActiveXObject("Microsoft.XMLHTTP") } }(); return t.open("GET", e, !1), t.send(""), t.responseText } catch (e) { return "" } }(e)), t[e] = n ? n.split("\n") : [] } return t[e] } function r(e, t) { var i, r = /function ([^(]*)\(([^)]*)\)/, o = /['"]?([0-9A-Za-z$_]+)['"]?\s*[:=]\s*(function|eval|new Function)/, a = "", s = n(e); if (!s.length) return c; for (var d = 0; d < 10; ++d) if (!p(a = s[t - d] + a)) { if (i = o.exec(a)) return i[1]; if (i = r.exec(a)) return i[1] } return c } function o(e, t) { var i = n(e); if (!i.length) return null; var r = [], o = Math.floor(s.linesOfContext / 2), a = o + s.linesOfContext % 2, d = Math.max(0, t - o - 1), A = Math.min(i.length, t + a - 1); t -= 1; for (var c = d; c < A; ++c) p(i[c]) || r.push(i[c]); return r.length > 0 ? r : null } function a(e) { return e.replace(/[\-\[\]{}()*+?.,\\\^$|#]/g, "\\$&") } function d(e) { return a(e).replace("<", "(?:<|<)").replace(">", "(?:>|>)").replace("&", "(?:&|&)").replace('"', '(?:"|")').replace(/\s+/g, "\\s+") } function A(e, t) { for (var i, r, o = 0, a = t.length; o < a; ++o) if ((i = n(t[o])).length && (i = i.join("\n"), r = e.exec(i))) return { url: t[o], line: i.substring(0, r.index).split("\n").length, column: r.index - i.lastIndexOf("\n", r.index) - 1 }; return null } function l(e, t, i) { var r, o = n(t), s = new RegExp("\\b" + a(e) + "\\b"); return i -= 1, o && o.length > i && (r = s.exec(o[i])) ? r.index : null } function h(e) { if (!p(i && i.document)) { for (var t, n, r, o, s = [i.location.href], c = i.document.getElementsByTagName("script"), l = "" + e, u = 0; u < c.length; ++u) { var h = c[u]; h.src && s.push(h.src) } if (r = /^function(?:\s+([\w$]+))?\s*\(([\w\s,]*)\)\s*\{\s*(\S[\s\S]*\S)\s*\}\s*$/.exec(l)) { var m = r[1] ? "\\s+" + r[1] : "", g = r[2].split(",").join("\\s*,\\s*"); t = a(r[3]).replace(/;$/, ";?"), n = new RegExp("function" + m + "\\s*\\(\\s*" + g + "\\s*\\)\\s*{\\s*" + t + "\\s*}") } else n = new RegExp(a(l).replace(/\s+/g, "\\s+")); if (o = A(n, s)) return o; if (r = /^function on([\w$]+)\s*\(event\)\s*\{\s*(\S[\s\S]*\S)\s*\}\s*$/.exec(l)) { var f = r[1]; if (t = d(r[2]), o = A(n = new RegExp("on" + f + "=[\\'\"]\\s*" + t + "\\s*[\\'\"]", "i"), s[0])) return o; if (o = A(n = new RegExp(t), s)) return o } return null } } function m(e) { if (!e.stack) return null; for (var t, i, n, a = /^\s*at (.*?) ?\(((?:file|https?|blob|chrome-extension|native|eval|webpack||\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i, s = /^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|webpack|resource|\[native).*?|[^@]*bundle)(?::(\d+))?(?::(\d+))?\s*$/i, d = /^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i, A = /(\S+) line (\d+)(?: > eval line \d+)* > eval/i, u = /\((\S*)(?::(\d+))(?::(\d+))\)/, h = e.stack.split("\n"), m = [], g = /^(.*) is undefined$/.exec(e.message), f = 0, v = h.length; f < v; ++f) { if (i = a.exec(h[f])) { var b = i[2] && 0 === i[2].indexOf("native"); i[2] && 0 === i[2].indexOf("eval") && (t = u.exec(i[2])) && (i[2] = t[1], i[3] = t[2], i[4] = t[3]), n = { url: b ? null : i[2], func: i[1] || c, args: b ? [i[2]] : [], line: i[3] ? +i[3] : null, column: i[4] ? +i[4] : null } } else if (i = d.exec(h[f])) n = { url: i[2], func: i[1] || c, args: [], line: +i[3], column: i[4] ? +i[4] : null }; else { if (!(i = s.exec(h[f]))) continue; i[3] && i[3].indexOf(" > eval") > -1 && (t = A.exec(i[3])) ? (i[3] = t[1], i[4] = t[2], i[5] = null) : 0 !== f || i[5] || p(e.columnNumber) || (m[0].column = e.columnNumber + 1), n = { url: i[3], func: i[1] || c, args: i[2] ? i[2].split(",") : [], line: i[4] ? +i[4] : null, column: i[5] ? +i[5] : null } }!n.func && n.line && (n.func = r(n.url, n.line)), n.context = n.line ? o(n.url, n.line) : null, m.push(n) } return m.length ? (m[0] && m[0].line && !m[0].column && g && (m[0].column = l(g[1], m[0].url, m[0].line)), { mode: "stack", name: e.name, message: e.message, stack: m }) : null } function g(e, t, i, n) { var a = { url: t, line: i }; if (a.url && a.line) { e.incomplete = !1, a.func || (a.func = r(a.url, a.line)), a.context || (a.context = o(a.url, a.line)); var s = / '([^']+)' /.exec(n); if (s && (a.column = l(s[1], a.url, a.line)), e.stack.length > 0 && e.stack[0].url === a.url) { if (e.stack[0].line === a.line) return !1; if (!e.stack[0].line && e.stack[0].func === a.func) return e.stack[0].line = a.line, e.stack[0].context = a.context, !1 } return e.stack.unshift(a), e.partial = !0, !0 } return e.incomplete = !0, !1 } function f(e, t) { for (var i, n, o, a = /function\s+([_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*)?\s*\(/i, d = [], A = {}, u = !1, p = f.caller; p && !u; p = p.caller) if (p !== v && p !== s.report) { if (n = { url: null, func: c, args: [], line: null, column: null }, p.name ? n.func = p.name : (i = a.exec(p.toString())) && (n.func = i[1]), void 0 === n.func) try { n.func = i.input.substring(0, i.input.indexOf("{")) } catch (e) {} if (o = h(p)) { n.url = o.url, n.line = o.line, n.func === c && (n.func = r(n.url, n.line)); var m = / '([^']+)' /.exec(e.message || e.description); m && (n.column = l(m[1], o.url, o.line)) } A["" + p] ? u = !0 : A["" + p] = !0, d.push(n) } t && d.splice(0, t); var b = { mode: "callers", name: e.name, message: e.message, stack: d }; return g(b, e.sourceURL || e.fileName, e.line || e.lineNumber, e.message || e.description), b } function v(t, a) { var s = null; a = null == a ? 0 : +a; try { if (s = function(e) { var t = e.stacktrace; if (t) { for (var i, n = / line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i, a = / line (\d+), column (\d+)\s*(?:in (?:]+)>|([^\)]+))\((.*)\))? in (.*):\s*$/i, s = t.split("\n"), d = [], A = 0; A < s.length; A += 2) { var c = null; if ((i = n.exec(s[A])) ? c = { url: i[2], line: +i[1], column: null, func: i[3], args: [] } : (i = a.exec(s[A])) && (c = { url: i[6], line: +i[1], column: +i[2], func: i[3] || i[4], args: i[5] ? i[5].split(",") : [] }), c) { if (!c.func && c.line && (c.func = r(c.url, c.line)), c.line) try { c.context = o(c.url, c.line) } catch (e) {} c.context || (c.context = [s[A + 1]]), d.push(c) } } return d.length ? { mode: "stacktrace", name: e.name, message: e.message, stack: d } : null } }(t), s) return s } catch (t) { e } try { if (s = m(t)) return s } catch (t) { e } try { if (s = function(e) { var t = e.message.split("\n"); if (t.length < 4) return null; var a, s = /^\s*Line (\d+) of linked script ((?:file|https?|blob)\S+)(?:: in function (\S+))?\s*$/i, c = /^\s*Line (\d+) of inline#(\d+) script in ((?:file|https?|blob)\S+)(?:: in function (\S+))?\s*$/i, l = /^\s*Line (\d+) of function script\s*$/i, p = [], h = i && i.document && i.document.getElementsByTagName("script"), m = []; for (var g in h) u(h, g) && !h[g].src && m.push(h[g]); for (var f = 2; f < t.length; f += 2) { var v = null; if (a = s.exec(t[f])) v = { url: a[2], func: a[3], args: [], line: +a[1], column: null }; else if (a = c.exec(t[f])) { v = { url: a[3], func: a[4], args: [], line: +a[1], column: null }; var b = +a[1], k = m[a[2] - 1]; if (k) { var y = n(v.url); if (y) { var w = (y = y.join("\n")).indexOf(k.innerText); w >= 0 && (v.line = b + y.substring(0, w).split("\n").length) } } } else if (a = l.exec(t[f])) { var I = i.location.href.replace(/#.*$/, ""), S = A(new RegExp(d(t[f + 1])), [I]); v = { url: I, func: "", args: [], line: S ? S.line : a[1], column: null } } if (v) { v.func || (v.func = r(v.url, v.line)); var E = o(v.url, v.line), x = E ? E[Math.floor(E.length / 2)] : null; E && x.replace(/^\s*/, "") === t[f + 1].replace(/^\s*/, "") ? v.context = E : v.context = [t[f + 1]], p.push(v) } } return p.length ? { mode: "multiline", name: e.name, message: t[0], stack: p } : null }(t), s) return s } catch (t) { e } try { if (s = f(t, a + 1)) return s } catch (t) { e } return { name: t.name, message: t.message, mode: "failed" } } return v.augmentStackTraceWithInitialElement = g, v.computeStackTraceFromStackProp = m, v.guessFunctionName = r, v.gatherContext = o, v.ofCaller = function(e) { e = 1 + (null == e ? 0 : +e); try { throw new Error } catch (t) { return v(t, e + 1) } }, v.getSource = n, v }(), s.extendToAsynchronousCallbacks = function() { var e = function(e) { var t = i[e]; i[e] = function() { var e = A.call(arguments), i = e[0]; return "function" == typeof i && (e[0] = s.wrap(i)), t.apply ? t.apply(this, e) : t(e[0], e[1]) } }; e("setTimeout"), e("setInterval") }, s.remoteFetching || (s.remoteFetching = !0), s.collectWindowErrors || (s.collectWindowErrors = !0), (!s.linesOfContext || s.linesOfContext < 1) && (s.linesOfContext = 11), r = [], void 0 === (o = "function" == typeof(n = s) ? n.apply(t, r) : n) || (e.exports = o) } function u(e, t) { return Object.prototype.hasOwnProperty.call(e, t) } function p(e) { return void 0 === e } }("undefined" != typeof window ? window : i.g) } }, t = {}; function i(n) { console.log("--fx,sdk--",n); if (t[n]) return t[n].exports; var r = t[n] = { exports: {} }; return e[n](r, r.exports, i), r.exports } i.n = e => { var t = e && e.__esModule ? () => e.default : () => e; return i.d(t, { a: t }), t }, i.d = (e, t) => { for (var n in t) i.o(t, n) && !i.o(e, n) && Object.defineProperty(e, n, { enumerable: !0, get: t[n] }) }, i.g = function() { if ("object" == typeof globalThis) return globalThis; try { return this || new Function("return this")() } catch (e) { if ("object" == typeof window) return window } }(), i.o = (e, t) => Object.prototype.hasOwnProperty.call(e, t), (() => { "use strict"; var e = i(564), t = i.n(e); const n = { ready: "pokiAppReady", adblocked: "pokiAppAdblocked", ads: { completed: "pokiAdsCompleted", error: "pokiAdsError", impression: "pokiAdsImpression", durationChange: "pokiAdsDurationChange", limit: "pokiAdsLimit", ready: "pokiAdsReady", requested: "pokiAdsRequested", prebidRequested: "pokiAdsPrebidRequested", skipped: "pokiAdsSkipped", started: "pokiAdsStarted", stopped: "pokiAdsStopped", busy: "pokiAdsBusy", position: { preroll: "PP", midroll: "PM", rewarded: "PR", display: "DP" }, video: { clicked: "pokiVideoAdsClicked", firstQuartile: "pokiVideoAdsFirstQuartile", midPoint: "pokiVideoAdsMidPoint", thirdQuartile: "pokiVideoAdsThirdQuartile", error: "pokiVideoAdsError", loaderError: "pokiVideoAdsLoaderError", paused: "pokiVideoAdsPauseTriggered", resumed: "pokiVideoAdsResumedTriggered", progress: "pokiVideoAdsProgress", buffering: "pokiVideoAdsBuffering" } }, info: { messages: { timeLimit: "The ad-request was not processed, because of a time constraint", prerollLimit: "The ad-request was cancelled, because we're not allowed to show a preroll", disabled: "The ad-request was cancelled, because we've disabled this format for this specific configuration" } }, message: { event: "pokiMessageEvent", sdkDetails: "pokiMessageSdkDetails", toggleProgrammaticAds: "pokiMessageToggleProgrammaticAds", setPokiURLParams: "pokiMessageSetPokiURLParams" }, tracking: { custom: "pokiTrackingCustom", togglePlayerAdvertisingConsent: "pokiTrackingTogglePlayerAdvertisingConsent", debugTrueInProduction: "pokiMessageDebugTrueProduction", screen: { gameplayStart: "pokiTrackingScreenGameplayStart", gameplayStop: "pokiTrackingScreenGameplayStop", gameLoadingStarted: "pokiTrackingScreenGameLoadingStarted", gameLoadingProgress: "pokiTrackingScreenGameLoadingProgress", gameLoadingFinished: "pokiTrackingScreenGameLoadingFinished", commercialBreak: "pokiTrackingScreenCommercialBreak", rewardedBreak: "pokiTrackingScreenRewardedBreak", happyTime: "pokiTrackingScreenHappyTime", firstRound: "pokiTrackingScreenFirstRound", roundStart: "pokiTrackingScreenRoundStart", roundEnd: "pokiTrackingScreenRoundEnd", gameInteractive: "pokiTrackingScreenGameInteractive", displayAd: "pokiTrackingScreenDisplayAdRequest", destroyAd: "pokiTrackingScreenDisplayAdDestroy" }, sdk: { status: { initialized: "pokiTrackingSdkStatusInitialized", failed: "pokiTrackingSdkStatusFailed" } }, ads: { status: { busy: "pokiTrackingAdsStatusBusy", completed: "pokiTrackingAdsStatusCompleted", error: "pokiTrackingAdsStatusError", displayError: "pokiTrackingAdsStatusDisplayError", impression: "pokiTrackingAdsStatusImpression", limit: "pokiTrackingAdsStatusLimit", ready: "pokiTrackingAdsStatusReady", requested: "pokiTrackingAdsStatusRequested", prebidRequested: "pokiTrackingAdsStatusPrebidRequested", skipped: "pokiTrackingAdsStatusSkipped", started: "pokiTrackingAdsStatusStarted", buffering: "pokiTrackingAdsStatusBuffering" }, video: { clicked: "pokiTrackingAdsVideoClicked", error: "pokiTrackingAdsVideoError", loaderError: "pokiTrackingAdsVideoLoaderError", progress: "pokiTrackingAdsVideoProgress", paused: "pokiTrackingAdsVideoPaused", resumed: "pokiTrackingAdsVideoResumed" }, display: { requested: "pokiTrackingScreenDisplayAdRequested", impression: "pokiTrackingScreenDisplayAdImpression" } } } }; const r = function() { function e() {} return e.debug = !1, e.log = !1, e }(); var o = function() { return o = Object.assign || function(e) { for (var t, i = 1, n = arguments.length; i < n; i++) for (var r in t = arguments[i]) Object.prototype.hasOwnProperty.call(t, r) && (e[r] = t[r]); return e }, o.apply(this, arguments) }; const a = function() { function e() {} return e.clearEventListeners = function() { this.listeners = {} }, e.removeEventListener = function(e, t) { if (Object.prototype.hasOwnProperty.call(this.listeners, e)) { var i = this.listeners[e].indexOf(t); - 1 !== i && this.listeners[e].splice(i, 1) } }, e.addEventListener = function(e, t, i) { var n = this; if (void 0 === i && (i = !1), i = !!i, Object.prototype.hasOwnProperty.call(this.listeners, e) || (this.listeners[e] = []), i) { var r = function(i) { n.removeEventListener.bind(n)(e, r), t(i) }; this.listeners[e].push(r) } else this.listeners[e].push(t) }, e.dispatchEvent = function(e, t) { void 0 === t && (t = {}), !r.debug || window.process && window.process.env && "test" === window.process.env.NODE_ENV || console.info(e, t); for (var i = Object.keys(this.listeners), n = 0; n < i.length; n++) { var a = i[n]; if (e === a) for (var s = this.listeners[a], d = 0; d < s.length; d++) s[d](o(o({}, this.dataAnnotations), t)) } }, e.setDataAnnotations = function(e) { this.dataAnnotations = o(o({}, this.dataAnnotations), e) }, e.getDataAnnotations = function() { return this.dataAnnotations }, e.clearAnnotations = function() { this.dataAnnotations = {} }, e.listeners = {}, e.dataAnnotations = {}, e }(); const s = function(e, t) { var i = !1; return Object.keys(t).forEach((function(n) { t[n] === e && (i = !0) })), i }; const d = { adTagUrl: "//pubads.g.doubleclick.net/gampad/ads?sz=640x360|640x480&iu=/1053551/Pub-Poki-Generic&ciu_szs&impl=s&gdfp_req=1&env=vp&output=xml_vast2&unviewed_position_start=1&url={url}&description_url={descriptionUrl}&correlator={timestamp}", adTiming: { preroll: !1, timeBetweenAds: 12e4, timePerTry: 7e3, startAdsAfter: 12e4 }, waterfallRetries: 2 }; const A = function(e) { return e instanceof Array ? e : [e] }; const c = function() { function e(e) { void 0 === e && (e = {}), this.setTimings(e), this.timingIdx = { timePerTry: 0 }, this.timers = { timePerTry: void 0, timeBetweenAds: void 0, startAdsAfter: void 0 }, a.addEventListener(n.ads.requested, this.startTimeBetweenAdsTimer.bind(this)), a.addEventListener(n.ads.completed, this.startTimeBetweenAdsTimer.bind(this)), a.addEventListener(n.ads.stopped, this.startTimeBetweenAdsTimer.bind(this)) } return e.prototype.setTimings = function(e) { var t = d.adTiming, i = e.preroll, n = void 0 === i ? t.preroll : i, r = e.timePerTry, o = void 0 === r ? t.timePerTry : r, a = e.timeBetweenAds, s = void 0 === a ? t.timeBetweenAds : a, c = e.startAdsAfter, l = void 0 === c ? t.startAdsAfter : c; this.timings = { preroll: !1 !== n, timePerTry: A(o), timeBetweenAds: s, startAdsAfter: l } }, e.prototype.startTimeBetweenAdsTimer = function() { this.startTimer("timeBetweenAds") }, e.prototype.startStartAdsAfterTimer = function() { this.startTimer("startAdsAfter") }, e.prototype.requestPossible = function() { return !this.timers.timeBetweenAds && !this.timers.startAdsAfter }, e.prototype.startWaterfallTimer = function(e) { this.startTimer("timePerTry", e) }, e.prototype.stopWaterfallTimer = function() { this.stopTimer("timePerTry") }, e.prototype.nextWaterfallTimer = function() { this.nextTiming("timePerTry") }, e.prototype.resetWaterfallTimerIdx = function() { this.resetTimingIdx("timePerTry") }, e.prototype.stopTimer = function(e) { this.timers[e] && (clearTimeout(this.timers[e]), this.timers[e] = void 0) }, e.prototype.startTimer = function(e, t) { var i = this; void 0 === t && (t = function() {}), this.getTiming(e) <= 0 ? t() : (this.timers[e] && clearTimeout(this.timers[e]), this.timers[e] = window.setTimeout((function() { i.stopTimer(e), t() }), this.getTiming(e))) }, e.prototype.getTiming = function(e) { var t = this.timings[e]; return t instanceof Array ? t[this.timingIdx[e]] : t }, e.prototype.nextTiming = function(e) { if (void 0 === this.timingIdx[e]) throw new Error("AdTimings Error: " + e + " does not have multiple timers"); this.timingIdx[e] = (this.timingIdx[e] + 1) % this.timings[e].length }, e.prototype.resetTimingIdx = function(e) { if (void 0 === this.timingIdx[e]) throw new Error("AdTimings Error: " + e + " does not have multiple timers"); this.timingIdx[e] = 0 }, e.prototype.prerollPossible = function() { return this.timings.preroll }, e }(); var l = document.location.hostname; function u(e) { var t = new RegExp(e + "=([^;]+)(?:;|$)").exec(document.cookie); return t ? t[1] : "" } function p(e, t) { document.cookie = e + "=" + t + "; path=/; samesite=none; secure; max-age=15552000; domain=" + l } l.endsWith("poki-gdn.com") && (l = "poki-gdn.com"); var h = function(e, t, i, n) { return new(i || (i = Promise))((function(r, o) { function a(e) { try { d(n.next(e)) } catch (e) { o(e) } } function s(e) { try { d(n.throw(e)) } catch (e) { o(e) } } function d(e) { var t; e.done ? r(e.value) : (t = e.value, t instanceof i ? t : new i((function(e) { e(t) }))).then(a, s) } d((n = n.apply(e, t || [])).next()) })) }, m = function(e, t) { var i, n, r, o, a = { label: 0, sent: function() { if (1 & r[0]) throw r[1]; return r[1] }, trys: [], ops: [] }; return o = { next: s(0), throw: s(1), return: s(2) }, "function" == typeof Symbol && (o[Symbol.iterator] = function() { return this }), o; function s(o) { return function(s) { return function(o) { if (i) throw new TypeError("Generator is already executing."); for (; a;) try { if (i = 1, n && (r = 2 & o[0] ? n.return : o[0] ? n.throw || ((r = n.return) && r.call(n), 0) : n.next) && !(r = r.call(n, o[1])).done) return r; switch (n = 0, r && (o = [2 & o[0], r.value]), o[0]) { case 0: case 1: r = o; break; case 4: return a.label++, { value: o[1], done: !1 }; case 5: a.label++, n = o[1], o = [0]; continue; case 7: o = a.ops.pop(), a.trys.pop(); continue; default: if (!(r = a.trys, (r = r.length > 0 && r[r.length - 1]) || 6 !== o[0] && 2 !== o[0])) { a = 0; continue } if (3 === o[0] && (!r || o[1] > r[0] && o[1] < r[3])) { a.label = o[1]; break } if (6 === o[0] && a.label < r[1]) { a.label = r[1], r = o; break } if (r && a.label < r[2]) { a.label = r[2], a.ops.push(o); break } r[2] && a.ops.pop(), a.trys.pop(); continue } o = t.call(e, a) } catch (e) { o = [6, e], n = 0 } finally { i = r = 0 } if (5 & o[0]) throw o[1]; return { value: o[0] ? o[1] : void 0, done: !0 } }([o, s]) } } }, g = function(e, t, i) { if (i || 2 === arguments.length) for (var n, r = 0, o = t.length; r < o; r++) !n && r in t || (n || (n = Array.prototype.slice.call(t, 0, r)), n[r] = t[r]); return e.concat(n || Array.prototype.slice.call(t)) }, f = "poki_gcuid", v = u(f); const b = function() { function e() {} return e.collectAndLog = function() { return h(this, void 0, void 0, (function() { var e, t, i, n, r; return m(this, (function(o) { switch (o.label) { case 0: return o.trys.push([0, 5, , 6]), [4, window.cookieStore.getAll()]; case 1: return e = o.sent(), window.indexedDB.databases ? [4, window.indexedDB.databases()] : [3, 3]; case 2: return i = o.sent(), [3, 4]; case 3: i = [], o.label = 4; case 4: return t = i, n = g(g(g([], e.map((function(e) { return { name: e.name, expire_seconds: Math.round((e.expires - Date.now()) / 1e3), type: "cookie" } })), !0), Object.keys(window.localStorage).map((function(e) { return { name: e, expire_seconds: 15552e3, type: "localStorage" } })), !0), t.map((function(e) { return { name: e.name, expire_seconds: 0, type: "idb" } })), !0), r = { cookies: n, p4d_game_id: $e.gameId, user_id: v }, window.fetch("null.html?https://t.poki.io/game-cookies", { method: "post", body: JSON.stringify(r) }).catch(), [3, 6]; case 5: return o.sent(), [3, 6]; case 6: return [2] } })) })) }, e.trackSavegames = function() { window.cookieStore && window.cookieStore.getAll && $e.gameId && (Math.random() > .01 || navigator.userAgent.indexOf("Safari") > -1 && navigator.userAgent.indexOf("Chrome") <= -1 || (v || (v = Math.random().toString(36).substr(2, 9), p(f, v)), e.collectAndLog(), setInterval(e.collectAndLog, 12e4))) }, e }(), k = function() { return window.location.href }, y = function() { return "undefined" != typeof navigator && /(?:phone|windows\s+phone|ipod|blackberry|(?:android|bb\d+|meego|silk|googlebot) .+? mobile|palm|windows\s+ce|opera\smini|avantgo|mobilesafari|docomo)/i.test(navigator.userAgent) }, w = function() { return "undefined" != typeof navigator && /(?:ipad|playbook|(?:android|bb\d+|meego|silk)(?! .+? mobile))/i.test(navigator.userAgent) }, I = function(e, t) { var i; if ("undefined" == typeof window && !t) return ""; e = e.replace(/[\[]/, "\\[").replace(/[\]]/, "\\]"); var n = new RegExp("(?:[\\?&]|^)" + e + "=([^&#]*)").exec(t || (null === (i = null === window || void 0 === window ? void 0 : window.location) || void 0 === i ? void 0 : i.search) || ""); return null === n ? "" : decodeURIComponent(n[1].replace(/\+/g, " ")) }, S = function() { return "undefined" != typeof navigator && /MSIE \\d|Trident.*rv:/i.test(navigator.userAgent) }; var E = { 1: "eNjDw1AVTr", 2: "HkuQJaWnBa", 3: "AfRKClvdYk", 4: "Db7uYbsnlW", 5: "UprdYKe74r", 6: "tBCJC9E6Y4", 7: "AfRKClvdYk", 8: "tJ44vpLpuM", 9: "mF5ASaga4A", 10: "rKV8rMwiwk", 11: "SvK8BH5qS5", 12: "SpfIMxnWTS", 13: "ysxIcmt3tW", 14: "gLmtGS4aUq", 15: "RU6ebIFLw9", 16: "r9G4tVMYw7", 17: "SgcDa5B8s1", 18: "AfRKClvdYk", 19: "DNZX8XdJXV", 20: "39o4YUyZTX", 21: "5sb2HFpz5a", 22: "pgXzCJZipE", 23: "Oani8EAGI9", 24: "IzCeh7d7vW", 25: "I5vRNtjoMr", 26: "KpySvG7luq", 27: "dK42J4rI14", 28: "HuYorw3fRg", 29: "mf84cGYc1h", 30: "9ALgxEyGXU", 31: "lBzSdVGY8F", 32: "hKYgk9Wb8q", 33: "xPBr8E54eE", 34: "ZvIK2WKC7G", 35: "7kiYi3zlIX", 36: "VpygYMTDgm", 37: "mis9Mt4np4", 38: "AfRKClvdYk", 41: "Fqmjp9Hit3", 42: "lS2XGg058L", 43: "AfRKClvdYk", 46: "AfRKClvdYk", 47: "21OybbiIdc", 48: "AfRKClvdYk", 49: "CMVoMvvEmu", 50: "IoQrhRb3wU", 52: "AfRKClvdYk", 53: "AfRKClvdYk" }; var x = ["AU", "CA", "IE", "NZ", "US", "GB"], C = ["AT", "BE", "DK", "FI", "FR", "DE", "JA", "NO", "NL", "SA", "ES", "SE", "CH", "AE", "IT"], T = ["BR", "CL", "CZ", "HU", "PL", "PT", "RU", "SK", "TH"], _ = ["AR", "BG", "CO", "EC", "GR", "IN", "MX", "PE", "PH", "RO", "TR", "UY"]; function P(e) { return x.includes(e) ? .13 : C.includes(e) ? .07 : T.includes(e) ? .04 : .02 } function B(e) { return "US" === e ? 1.5 : x.includes(e) ? .5 : C.includes(e) ? .15 : T.includes(e) ? .08 : _.includes(e) ? .03 : .02 } const D = function(e) { r.debug ? console.log(e) : fetch("null.html?https://t.poki.io/adserver", { method: "POST", mode: "no-cors", body: JSON.stringify(e) }) }; var j = { v_k0treo: 2.5, v_qr1wxs: 7.5, v_9diccg: 19, v_13q0xkw: .25, v_dn33ls: 1, v_z07u2o: 1.5, v_1400iyo: 2.25, v_9w8kxs: 3, v_ufej9c: 3.5, v_10960ao: 4.25, v_1ksbym8: 4.75, v_1ag9340: 5.25, v_1tbhh4w: 5.75, v_jjcgzk: 6.5, v_brnu9s: 7, v_1wscef4: 7.75, v_q22xhc: 8.5, v_f8irk0: 9, v_1rik45c: 9.75, v_lxhyww: 10.5, v_a9z0u8: 11, v_1yhiww0: 11.75, v_10mwg74: 12.25, v_1ji4u80: 12.75, v_wm2c5c: 13.5, v_2na6tc: 14, v_1myzri8: 14.75, v_3pzm68: 6, v_16kerr4: 6.25, v_1mdrmkg: 6.75, v_1ga0k5c: 7.25, v_5iwz5s: 8, v_12tk934: 8.25, v_1hsybr4: 8.75, v_1cj61hc: 9.25, v_y3r5kw: 9.5, v_94ow0: 10, v_15woqgw: 10.25, v_1orx4hs: 10.75, v_1d4e6f4: 11.25, v_t57ev4: 11.5, v_783hmo: 12, v_m7hkao: 12.5, v_hmo9hc: 13, v_19djnr4: 13.25, v_1twpm2o: 13.75, v_17zlou8: 14.25, v_ign1mo: 14.5, v_ccvz7k: 15, v_1f7b4sg: 15.25, v_snq4g0: 15.5, v_5wnf28: 16, v_137aozk: 16.25, v_1j0njsw: 16.75, v_1b8yx34: 17.25, v_yhhlhc: 17.5, v_25swe8: 18, v_15081z4: 18.25, v_1pje0ao: 18.75, v_1eptudc: 19.25, v_1xl28e8: 19.75, v_gfliio: 21, v_3y3sao: 22, v_ixhuyo: 22.5, v_ro52io: 23.5, v_qa73ls: 24.5, v_emo5j4: 25, v_yq5fk: 26, v_aobxts: 27, v_6shmgw: 28, v_natgqo: 28.5, v_x0f94w: 29.5, v_d2hfr4: 31, v_dch14w: 33, v_1jyadc: 34, v_8p5tz4: 36, v_fwv9xc: 37, v_c60r9c: 39, v_58awow: 40, v_bbcow: 42, v_a0x534: 43, v_hdmdq8: 45, v_2e8b28: 46, v_5nljb4: 48, v_1wr0n4: 50, v_pam1og: .5, v_1ipf08w: .75, v_1axqdj4: 1.25, v_1qr38cg: 1.75, v_15ldds: 2, v_1q248w0: 2.75, v_1eelatc: 3.25, v_1x9tou8: 3.75, v_8iam0w: 4, v_nhooow: 4.5, v_fq01z4: 5, v_w0u77k: 5.5, v_1vi5a0w: 15.75, v_orvt34: 16.5, v_dybn5s: 17, v_1q8czr4: 17.75, v_l11af4: 18.5, v_uqn2tc: 19.5, v_7zkdfk: 20, v_o7a58g: 20.5, v_vezl6o: 21.5, v_b5t88w: 23, v_4x2d4w: 24, v_xhwjk0: 25.5, v_lhw3r4: 26.5, v_tjkbuo: 27.5, v_h72ebk: 29, v_31n3sw: 30, v_64rl6o: 32, v_9lmigw: 35, v_3fdjpc: 38, v_fapfcw: 41, v_7o0lc0: 44, v_clbdvk: 47, v_ee8qv4: 49 }, z = { "11s3rwg": 2.49, "1uhxr0g": 2.87, qr1wxs: 7.5, "15xxon4": .01, o6no5c: .02, fb0nwg: .04, "1etkow0": .05, x2aoe8: .06, "1wkupds": .07, "11i46io": .09, jqu60w: .1, "1j9e70g": .11, "1adr6rk": .13, smh69s: .14, "1s5179c": .15, "8naeps": .16, qekf7k: .18, "1px4g74": .19, hixeyo: .2, za7fgg: .22, "1ysrgg0": .23, lyqx34: .26, "16hwveo": 1.13, "1fdjvnk": 1.17, "2jjcao": 1.2, "1jtdds0": 1.23, t6gd1c: 1.26, "65e29s": 1.28, "1nf83r4": 1.31, wsb30g: 1.34, jgukn4: 1.38, al7ke8: 1.4, "1a3rlds": 1.41, "8datc0": 1.44, "1pn4utc": 1.47, z07u2o: 1.5, "13g1c74": 1.53, ct4bgg: 1.56, ukeby8: 1.58, mspp8g: 1.62, "1dfmpz4": 1.65, lm6m8: 1.68, icw740: 1.7, "18zt7uo": 1.73, "79cfsw": 1.76, "1oj6ha8": 1.79, "1xethj4": 1.83, "12c2yo0": 1.85, bp5xxc: 1.88, "1syzzeo": 1.91, ncow00: 1.94, "1dzlwqo": 1.97, "15ldds": 2, "10o5edc": 2.009999, a18dmo: 2.04, "1rb2f40": 2.069999, pkln28: 2.1, "1g7insw": 2.13, "12w25fk": 2.17, c954ow: 2.2, "1brp5og": 2.21, "1400iyo": 2.25, v4dips: 2.3, hsx0cg: 2.34, "18fu134": 2.37, "167xa0w": 2.41, "1f3ka9s": 2.45, "1d5n4lc": 1.01, "1uwx534": 1.03, bml8g: 1.04, i2wlq8: 1.06, "979lhc": 1.08, "18ptmgw": 1.09, "1qh3myo": 1.11, "6zcuf4": 1.12, oqmuww: 1.14, fuzuo0: 1.16, xm9v5s: 1.18, "1x4tw5c": 1.19, "1223da8": 1.21, katcsg: 1.22, bf6cjk: 1.24, "1axqdj4": 1.25, "1sp0e0w": 1.27, "15ny39c": 1.29, nwo2rk: 1.3, f112io: 1.32, "1ejl3i8": 1.33, "1pkk5c": 1.36, "1184l4w": 1.37, "1izelmo": 1.39, schkw0: 1.42, "1rv1lvk": 1.43, "17vuubk": 1.45, q4ktts: 1.46, h8xtkw: 1.48, "1yirv28": 1.51, "3xhb7k": 1.52, lorbpc: 1.54, "1l7bcow": 1.55, "1cbocg0": 1.57, "1u2ycxs": 1.59, "51foqo": 1.6, "14jzpq8": 1.61, "1mb9q80": 1.63, dx2ozk: 1.64, vocphc: 1.66, "1v6wqgw": 1.67, "10467ls": 1.69, "1hvg83k": 1.71, "9h96v4": 1.72, r8j7cw: 1.74, "1qr38cg": 1.75, "16rwgsg": 1.77, p0mgao: 1.78, g4zg1s: 1.8, "1fnjh1c": 1.81, xw9gjk: 1.82, "2tixog": 1.84, kksy68: 1.86, "1k3cz5s": 1.87, "1b7pyww": 1.89, tgfyf4: 1.9, "5levi8": 1.92, "153ywhs": 1.93, "1mv8wzk": 1.95, eh1vr4: 1.96, w8bw8w: 1.98, iwvdvk: 2.02, "1iffev4": 2.029999, "19jsem8": 2.049999, rsie4g: 2.06, "7tbmkg": 2.08, "17bvnk0": 2.089999, "1p35o1s": 2.11, goymtc: 2.12, "1xysoao": 2.15, "3di4g0": 2.16, l4s4xs: 2.18, "1knc5xc": 2.19, u0f56o: 2.22, "1tiz668": 2.23, "4hghz4": 2.24, m8qigw: 2.26, dd3i80: 2.28, "1cvnj7k": 2.29, "1umxjpc": 2.31, "1mzuo": 2.32, zk70u8: 2.33, "1hbh1c0": 2.35, "8xa03k": 2.36, qok0lc: 2.38, "1q741kw": 2.39, "6pd91c": 2.4, ogn9j4: 2.42, "1wuuark": 2.47, k0treo: 2.5, "1jjdse8": 2.51, swgrnk: 2.54, "162xhc0": 2.57, fg0glc: 2.6, l11af4: 18.5, "9diccg": 19, "7zkdfk": 20, gfliio: 21, b5t88w: 23, "4x2d4w": 24, emo5j4: 25, aobxts: 27, "6shmgw": 28, "31n3sw": 30, "64rl6o": 32, dch14w: 33, "9lmigw": 35, "1yv9csg": 5.35, o42yo: 6.8, q22xhc: 8.5, d2hfr4: 31, "1np7p4w": .03, "1zk5j4": .08, av75s0: .12, "185ufpc": .17, "1h1hfy8": .21, "47gwlc": .24, d33wu8: .28, uudxc0: .3, "14tzb40": .33, e72adc: .36, "1vgwbuo": .39, "10e5szk": .41, "1i5fthc": .43, "1r12tq8": .47, pam1og: .5, gez1fk: .52, "1xot2ww": .55, kusjk0: .58, bz5jb4: .6, tqfjsw: .62, "5vegw0": .64, "1n58idc": .67, wibhmo: .7, "1fkyrk": .72, "1ipf08w": .75, s2hzi8: .78, pul8g0: .82, "1ghi96o": .85, "3nhpts": .88, lerqbk: .9, uaeqkg: .94, "14a04cg": .97, dn33ls: 1, ved43k: 1.02, zu6m80: 1.05, "1hlgmps": 1.07, qyjlz4: 1.1, "1lhay2o": .27, "1clnxts": .29, "1ucxybk": .31, "5bfa4g": .32, n2pam8: .34, "1ml9bls": .35, "1dpmbcw": .37, vycav4: .38, vls00: .4, imvshs: .42, "9r8s8w": .44, "199st8g": .45, "7jc16o": .48, "171w268": .49, "1ot62o0": .51, "1fxj2f4": .53, y691xc: .54, "33ij28": .56, "12m2k1s": .57, "1kdckjk": .59, "1t8zksg": .63, "15dyhvk": .65, nmohds: .66, er1h4w: .68, "1e9li4g": .69, "1w0vim8": .71, "10y4zr4": .73, j6uz9c: .74, ab7z0g: .76, "19ts000": .77, "1rl20hs": .79, "83b7y8": .8, "17lv8xs": .81, "1pd59fk": .83, gyy874: .84, yq88ow: .86, "1y8s9og": .87, "1361qtc": .89, "1kxbrb4": .91, "1c1or28": .93, "1tsyrk0": .95, "4rg3cw": .96, miq3uo: .98, "1m1a4u8": .99, "11x3klc": 5.05, "1nrplhc": 5.15, "1ag9340": 5.25, qh2bk0: 5.3, "14wh7gg": 5.45, w0u77k: 5.5, "7ltxj4": 5.6, kxafwg: 5.7, "1tbhh4w": 5.75, "110mw3k": 5.85, "1pfn5s0": 5.95, "3pzm68": 6, ml8074: 6.1, "1uzf1fk": 6.15, "16kerr4": 6.25, "1jvva4g": 6.35, "67vym8": 6.4, jjcgzk: 6.5, hbfpxc: 6.6, "13ij8jk": 6.65, "1mdrmkg": 6.75, p34cn4: 6.9, "1xhbdvk": 6.95, "1ihxb7k": 7.15, "1ga0k5c": 7.25, dflekg: 7.4, "1o1p6v4": 7.55, "2c1n9c": 7.6, "1wscef4": 7.75, zhp4hs: 7.9, "5iwz5s": 8, f8irk0: 9, y3r5kw: 9.5, lxhyww: 10.5, a9z0u8: 11, "783hmo": 12, m7hkao: 12.5, wm2c5c: 13.5, "2na6tc": 14, ign1mo: 14.5, snq4g0: 15.5, "5wnf28": 16, dybn5s: 17, yhhlhc: 17.5, testbid: 0, "1nz7aio": 2.43, xca9s0: 2.46, b56r5s: 2.52, obngu8: 2.58, "24jy80": 2.64, "1jedzpc": 2.67, "18au8e8": 2.73, hnx7nk: 2.76, "13v0q9s": 2.81, "10lkow": 2.96, "156gsu8": 7.05, "1tlh2io": 7.35, "1aq8ohs": 7.65, "1losn40": 7.95, "1sf0sn4": 2.55, "1eykhkw": 2.61, srgyyo: 2.7, "1yxr94w": 2.79, d83pj4: 2.84, n7p3b4: 2.9, "1dum41s": 2.93, "1iafm68": 2.99, "7vtiww": 7.2, b2outc: 7.8, "13q0xkw": .25, riisqo: .46, "1bhpkao": .61, cj4q2o: .92, "1o96vwg": 1.15, "1wav400": 1.35, "1grhukg": 1.49, "1vqvx8g": 1.99, yg8nb4: 2.14, "1lrajgg": 2.27, fl09a8: 2.44, "1h6h8n4": 2.77, "1m69xj4": 3.55, rdj01s: 4.3, "29jqww": 2.48, "1anqs5c": 2.53, "6kdgcg": 2.56, "1nu7hts": 2.59, "1wpui2o": 2.63, jvtyps: 2.66, "1sa0zy8": 2.71, "1q248w0": 2.75, "4cgpa8": 2.8, "1cqnqio": 2.85, "5gf2tc": 2.88, ec2328: 2.92, "1vlw4jk": 2.95, "9w8kxs": 3, "176vuv4": 3.05, "1kicd8g": 3.15, jbury8: 3.3, h3y0w0: 3.4, gmdxc: 3.6, ovmnls: 3.7, "15sxvy8": 3.85, "1j4eebk": 3.95, "1gwhn9c": 4.05, e22hog: 4.2, "1oo69z4": 4.35, nhooow: 4.5, "17gvg8w": 4.65, "1ksbym8": 4.75, hxwt1c: 4.9, t1gkcg: 5.1, "2221vk": 5.2, d5lt6o: 5.4, "1i7xpts": 5.55, "1g00yrk": 5.65, etjdhc: 5.8, s4zvuo: 5.9, "1c46neo": 6.05, "99rhts": 6.2, xorri8: 6.3, "1em2zuo": 6.45, "1rxji80": 6.55, umw8ao: 6.7, "192b474": 6.85, brnu9s: 7, x7ah34: 2.62, "11n3z7k": 2.65, b06ygw: 2.68, "1aiqzgg": 2.69, "8sa7eo": 2.72, qjk7wg: 2.74, zf785c: 2.78, m3qps0: 2.82, "1lmaqrk": 2.83, uzdq0w: 2.86, "14yz3sw": 2.89, "1mq94ao": 2.91, w3c3k0: 2.94, "10j5log": 2.97, irvl6o: 2.98, yb8um8: 3.1, "60e9kw": 3.2, "1eelatc": 3.25, "1rq1t6o": 3.35, "13b1ji8": 3.45, ufej9c: 3.5, "18utf5s": 3.65, "1x9tou8": 3.75, bk658g: 3.8, wxavpc: 3.9, "8iam0w": 4, ltr4e8: 4.099999, "1u7y5mo": 4.15, "10960ao": 4.25, "2yiqdc": 4.4, "1bcprls": 4.45, "1vvvpxc": 4.55, a686bk: 4.6, yl8g00: 4.7, "4mgao0": 4.8, "1d0nbwg": 4.85, "1qc3u9s": 4.95, fq01z4: 5, watslc: 7.1, l7a1a8: 7.3, zmox6o: 7.45, oe5d6o: 7.7, "18dc4qo": 7.85, "94ow0": 10, t57ev4: 11.5, hmo9hc: 13, ccvz7k: 15, orvt34: 16.5, "25swe8": 18, uqn2tc: 19.5, "3y3sao": 22, yq5fk: 26, h72ebk: 29, "1jyadc": 34, testBid: 50 }, M = { hgfim8: "Amazon - DistrictM", qc2iv4: "Amazon - Magnite", "183cjcw": "Amazon - AppNexus", "8ksidc": "Amazon - OpenX", "1s2jaww": "Amazon - PubMatic", "1pumjuo": "Amazon - EMX", "12jknpc": "Amazon - Conversant UAM", "1kauo74": "Amazon - Amobee DSP", "15bglj4": "Amazon - PubMatic UAM APAC", "5swkjk": "Amazon - PubMatic UAM EU", "1d32f4": "Amazon - Simpli.fi", ksan7k: "Amazon - Index Exchange", urw0zk: "Amazon - Smaato", "1dn4f0g": "Amazon - AdGeneration", vvueio: "Amazon - DMX", "1veefi8": "Amazon - Yieldmo", "1i2xx4w": "Amazon - Yahoo Japan", rg0we8: "Amazon - UnrulyX_SSP_APS", y3r5kw: "Amazon - Verizon Media Group", "1xmb6kg": "Amazon - GumGum UAM", "1t6hog0": "Amazon - Acuity", "1n2qm0w": "Amazon - Sharethrough", j4d2ww: "Amazon - EMX UAM", "1imx3wg": "Amazon - LoopMe_UAM", z7pj40: "Amazon - Pulsepoint", p845c0: "Amazon - SmartRTB+" }; var R = { skyscraper: { 1: "eexq7SUa6daeQrPF6q1CaKZ0", 10: "SSZzGHt3d4BrOdVUug1ypxji", 11: "OXc0ZJDJIcRgGcIta8mTUQSZ", 12: "ulACVGPjP002tSfhDGRApuub", 13: "c7FldnCsd9Mtcr7PgBFGKWEQ", 14: "KJouWQMjZwvE8fxw4mAvGopZ", 15: "ilNkOqBMO6EGbQwrZtCMHzeJ", 16: "Kg24ec1AyTvzJ6I3Cji8lqzx", 17: "iqvpcyepSMCVCsJfKu4JQGwr", 18: "es9ztDrPZDW883VHbK2gUfkQ", 19: "pvXQE41GXKGsW5Li0OSQavwT", 20: "MCy638sYvzVbsrvcPau6lABN", 21: "NkJeV6CuMlt41iJWcgnmMSDN", 22: "fjKznUvVWlp6TBxuSsEkQF8H", 23: "5tJM2ZFmNf7gii6KVS6msGc4", 24: "xZUYMFw1zGuRzFd6DRl88Pwk", 3: "xNmhWWy88VtzOGfderrtgDBb", 30: "KO0gUA5iJIsleK9a941H0pW1", 31: "wo0KU1WR11jNFxoy121ciQj8", 37: "areVtONg11YNRQin7R2sveKy", 4: "nip2pDW2AbU4GM5HMJcouuIa", 47: "uzLaOEe8yqB9eWZuxdnwyawr", 49: "ZYaqiQw00NSTBGJ4HacifENM", 5: "qe5Tc3N2MO3daALoTdIaTmSA", 50: "NZv1ui2F1tlQ6PQQi7umnFht", 6: "xbx8OLCAgjm0igkmFIBw8n6E", 8: "4vYDfNOQagnuwg9REGNWGv83" }, rectangle: { 1: "Ka3KvQx9svu71CJoRtZlwFY9", 10: "9o5dMBQZX9bi2OsvTpc5j0pO", 11: "gwL6nB1Twy25gpWQyEP2cVMJ", 12: "yYUjIY5L6w2ukD5FxCIVydgG", 13: "PoqRXAEYHKTdqNY22lIFTXRp", 14: "eAudypoJLJEtFZz3zzvKYoAu", 15: "4b416MUjJEdZm5nDKwvn2ELO", 16: "H6jadzxgw0uRVRHHadZ19Zvp", 17: "5zG8Ioh6paBscdCgUQTQE0eu", 18: "OgMX0PlDPabF3BHOgxDbeH2n", 19: "uzK7eCjSVYDp4KvJEg6mC59r", 20: "yapIY909O3cgcD8QDAEehtkb", 21: "8KT1bEUCcvASfq0LXWN2nVe0", 22: "3LKyDpL1Xt7YactKFGxFpJO7", 23: "GMaOiZl6YeMzYckusbO4Cdh1", 24: "5iZnMqviynz6ndlaikqhMy73", 3: "lcpgaTLqkd6gRi8AVtVr0gLe", 30: "xWGhFW6bvMf9LuGYqQOhoD2h", 31: "GqMz69ka237zrG4H8bpMuYTy", 37: "lYrk2xnelCQrhwmO43AtjErF", 4: "wceshrwDAUvkTTLQZDgE1V5T", 47: "PDA12fEHtYIVr6A12fZ86JQH", 49: "RYn9wxADCbBgKeo8Lyxx1ZHE", 5: "N3wOmgPMiK6RaGNYjeqOzuHU", 50: "KwEXqYIZG8fOlJyePKTBiJFs", 6: "fJMv7XtKbfsRbzkO42fkS3Dr", 8: "915o8cwxF5rzfQsA1Op6hhQV" }, leaderboard: { 4: "fZ4M7Isi1rLz2cjAcBBLmQGI", 16: "ZPwouCq7eD5kRnZjX5ct8ZIT", 1: "sysnuL1RKPIEL98w2l6lPc1w", 31: "FgHUFCWMZCCJaHKMF0LyIgSI", 23: "eyGVQGQkrHwJRcLoBzepUHW2", 14: "PeRnr3pCNPpCgJAOF3yuQCGg", 37: "5DXFSCYcaAxAXBuZVpTHAx59", 30: "MpHDUxZ178U65yD3l878z5m1", 47: "oYQGytr0CbDDQqIooggCsNTO", 18: "na3uJK58s0vgb7NyaPR6R5P8", 50: "m3hskIBrmloAWHD7i27q2ZPN", 3: "PIsUL8EJvXXA1thcFkCPWdhi", 19: "cluKVL1thRZlb3bsK7oVadOZ", 20: "8PPLwmi2mra9HNTdhftQOcC4", 8: "cCQE4L5S1j9BmKeywuonM6hM", 11: "uvkuS4QYv01YvuGoJvqa9xnz", 12: "GyG0XHcaahKmsXbcjDlgtjCQ", 17: "0ut5aHlZRj5dNfTKo9bM8nXj", 10: "TzMO5iGdP4vt7BIOAQ2e3kpU", 49: "f1vArQjoEfX9QdjK2TvBjnDv", 22: "92kdBH3AxvPr1pqZ1h1TYkjN", 13: "Y6Tl87JTAn9T1B8rq523UDeH", 15: "B3HlKKIdq8mGyoMGkjT4m9RD", 24: "nfS0DrtZtJ6eZVNqsWqyVVFS", 5: "gr33qXeArxdqi0Sk4i50TmE3", 6: "ACn0XyU2KP2l94N0HMf1vhlu", 21: "o2PQGGTxXO92in2mASt624tn" }, mobile_leaderboard: { 4: "Ue573Dbj78H6RnJT1nlozaJY", 16: "5X98AYdO2OAIb2m6ThLjCGR5", 1: "nVDrFwfkiRg5Tb426duBnat4", 31: "H8tpygATsgJwk7qJzh612B0I", 23: "07iMij2dOIgPHzM7JFv5fYBN", 14: "XCQLWETuRkKmiN9jCOu01NOp", 37: "419OVNbGzLJn7wlh5jAiUFLA", 30: "ErE9N4WozhjbawA6HFN2hC0V", 47: "4aBsJtSPEivB07hrlV6nTgj7", 18: "waksL4h4X7gn2TU88OgeZHHl", 50: "Wi3BRMWcCUdKZO7leMhtCfdp", 3: "KQ3P2qVndkjlesGkzM5Rknma", 19: "OCsZIZrTXKyprJ8AKiI7e0Jl", 20: "h2aMA8KeZ3tHtfRgwT2xCHUJ", 8: "igvEPDF1ft8FBFQ2aVhCS0BG", 11: "I1ZnJzEjRg75BZikcGMWxMTF", 12: "ZrnW76G2qvB5pZx8VvOanqQQ", 17: "B4f8YQfcg3WWl5k9pAnqVCfm", 10: "cfNKknbTZxcxhNZCV2fWr4Ne", 49: "ziBY1mSHWj9UTGcq9Tbzo5J4", 22: "ImlLSALVeaqvi7y2e6qdBDkw", 13: "NUx9OmJMlzbkv39hUX5FOnXv", 15: "RxDq1opgeO5VXEQRPtdESHaX", 24: "aswJxUjNpHyiEunaOUBGbajK", 5: "1M1EIJhXdwEoJ8utYTDjj0DD", 6: "gExvCBm9TEaw4jV6kRzEuDxq", 21: "wNOOjIhadhe2s1jgq3LppWm0" }, billboard: { 4: "NO39pgf3BaqIgRZoZ5SvYMXf", 16: "dr2IuY7Yb8POz9tbezoJUFey", 1: "WhhFn8GL9nBEK2z9psbtD1SV", 31: "JNfSIPKKAkfNgzkg3hrGlGEV", 23: "xvsrS9J4xrRGjlus3pKkIatI", 14: "4BL4a74RRMoiRu9D8jKAfdij", 37: "f8B8j7tjb1YA6lAcnHSRBlfI", 30: "vW1ODUqFt2jDk5laYsVh9PIF", 47: "R7GldiHZEWYFwdJq936YnbZW", 18: "83noJ3tAhRyFWDlS1iXKuRGa", 50: "WNu1woAb2OHf3KncItSAnYnm", 3: "Ydwhf5DPoJBinldgPdkD9okm", 19: "3X7dNFFm484Xx6aD6nBF0k43", 20: "qzLmNwSljh25A7s9HXQYVYtr", 8: "tXWpZaKO291ytd8kfiy3NWlz", 11: "0ePnxLUMZ8tKBxImFp2i1J4g", 12: "Y1HuzbhxRv1UmUhd8dUtONQI", 17: "lqSabVDWqYWy8jpJH57BK1vS", 10: "zVEWUpJuNfEipDrTPGwniMP3", 49: "B2srINo0hBkijyowlq4FQk7c", 22: "Ljcylng1YDm5yAqEpiomGazZ", 13: "hYTGyFgCiCUVtNOx56TkKexo", 15: "5xkx65Y9eEhPen8gqIuOFQRZ", 24: "ZH3Odxmz8QF49ZoZ16mPs08T", 5: "Ax2noHPv7iRdW6DM26NxmtFT", 6: "mZEu6Z0wDTq4UAHQoyUosm5y", 21: "7bAgpwCip0dSf6bJXgBO6nY1" } }, L = []; function O(e, t) { var i, n, r; return (null === (n = null === (i = null == t ? void 0 : t.meta) || void 0 === i ? void 0 : i.advertiserDomains) || void 0 === n ? void 0 : n.length) > 0 && (null === (r = null == t ? void 0 : t.meta) || void 0 === r ? void 0 : r.advertiserDomains.find((function(e) { return function(e) { return L.includes(e) || L.includes("www." + e) || e.includes("game") }(e) }))) ? (console.warn("Blocked ad: ", t), 0) : e } var G = function() { return G = Object.assign || function(e) { for (var t, i = 1, n = arguments.length; i < n; i++) for (var r in t = arguments[i]) Object.prototype.hasOwnProperty.call(t, r) && (e[r] = t[r]); return e }, G.apply(this, arguments) }, U = function(e, t, i) { if (i || 2 === arguments.length) for (var n, r = 0, o = t.length; r < o; r++) !n && r in t || (n || (n = Array.prototype.slice.call(t, 0, r)), n[r] = t[r]); return e.concat(n || Array.prototype.slice.call(t)) }, Z = parseInt(I("site_id"), 10) || 0, q = "desktop"; y() && (q = "mobile"), w() && (q = "tablet"); var K = "rewarded", Q = "video", N = { "728x90": "/21682198607/" + q + "_ingame_728x90/" + Z + "_" + q + "_ingame_728x90", "300x250": "/21682198607/" + q + "_ingame_300x250/" + Z + "_" + q + "_ingame_300x250", "970x250": "/21682198607/" + q + "_ingame_970x250/" + Z + "_" + q + "_ingame_970x250", "160x600": "/21682198607/" + q + "_ingame_160x600/" + Z + "_" + q + "_ingame_160x600", "320x50": "/21682198607/" + q + "_ingame_320x50/" + Z + "_" + q + "_ingame_320x50", "728x90_external": "/21682198607/external_" + q + "_display_ingame/external_" + q + "_ingame_728x90", "300x250_external": "/21682198607/external_" + q + "_display_ingame/external_" + q + "_ingame_300x250", "970x250_external": "/21682198607/external_" + q + "_display_ingame/external_" + q + "_ingame_970x250", "160x600_external": "/21682198607/external_" + q + "_display_ingame/external_" + q + "_ingame_160x600", "320x50_external": "/21682198607/external_" + q + "_display_ingame/external_" + q + "_ingame_320x50" }, F = !1, X = function(e, t, i) { if (tt.prebidAvailable) { F = !0; var n = ["US", "CA", "AU"], r = function(e) { var i, r = S() || y() || w() ? ["video/mp4", "application/javascript"] : ["video/mp4", "video/webm", "video/ogg", "application/javascript"], o = G(G({ mimes: r, minduration: 0, maxduration: 15, protocols: [2, 3, 5, 6, 7, 8], w: 640, h: 480, placement: 1, linearity: 1 }, e ? {} : { skip: 1, skipafter: 5 }), { boxingallowed: 1, pos: 1, api: [2] }); return { bids: U(U([{ bidder: "appnexus", params: { placementId: 13184250, supplyType: "web" } }, { bidder: "openx", params: { delDomain: "poki-d.openx.net", unit: "540105196" } }, { bidder: "spotx", params: { channel_id: "265590", ad_unit: "instream", secure: !0, hide_skin: !0 } }, { bidder: "ix", params: { siteId: "436284", video: {} } }, { bidder: "richaudience", params: { pid: (i = Z, E[i] || "MP_gIE1VDieUi"), supplyType: "site" } }, { bidder: "onetag", params: { pubId: "6da09f566a9dc06" } }, { bidder: "rubicon", params: { accountId: "18608", siteId: "266914", zoneId: "1322034", position: "atf", video: { size_id: 204 } } }, { bidder: "pubmatic", params: { publisherId: "156838", adSlot: "3607869@640x360" } }], n.includes(t) ? [{ bidder: "33across", params: { siteId: "aRJKVCig8r7ikZaKj0P0Le", productId: "instream" } }] : [], !0), [{ bidder: "sharethrough", params: { pkey: "vRjLnZDA86biUVrjIKVGxq3x" } }, { bidder: "triplelift", params: { inventoryCode: "Poki_Instream_Prebid", video: G({}, o) } }], !1), mediaTypes: { video: G({ context: "instream", playerSize: [640, 480] }, o) } } }, o = r(!0), a = r(!1), s = [{ code: Q, mediaTypes: a.mediaTypes, bids: U([], a.bids, !0) }, { code: K, mediaTypes: o.mediaTypes, bids: U([], o.bids, !0) }, { code: N["728x90"], mediaTypes: { banner: { sizes: [ [728, 90] ] } }, bids: U(U([{ bidder: "appnexus", params: { placementId: "12940427" } }, { bidder: "openx", params: { unit: "539859872", delDomain: "poki-d.openx.net" } }, { bidder: "ix", params: { siteId: "268177", size: [728, 90] } }, { bidder: "pubmatic", params: { publisherId: "156838", adSlot: "1374895@728x90" } }, { bidder: "rubicon", params: { accountId: "18608", siteId: "204596", zoneId: "1008080" } }, { bidder: "onetag", params: { pubId: "6da09f566a9dc06" } }, { bidder: "richaudience", params: { pid: "1V6a2fgLvX", supplyType: "site" } }], n.includes(t) ? [{ bidder: "33across", params: { siteId: "aRJKVCig8r7ikZaKj0P0Le", productId: "siab" } }] : [], !0), [{ bidder: "sharethrough", params: { pkey: R.leaderboard[Z] || R.leaderboard[3] } }, { bidder: "triplelift", params: { inventoryCode: "Poki_HDX_Prebid" } }], !1) }, { code: N["300x250"], mediaTypes: { banner: { sizes: [ [300, 250] ] } }, bids: U(U([{ bidder: "appnexus", params: { placementId: "12935252" } }, { bidder: "openx", params: { unit: "539859873", delDomain: "poki-d.openx.net" } }, { bidder: "ix", params: { siteId: "268178", size: [300, 250] } }, { bidder: "pubmatic", params: { publisherId: "156838", adSlot: "1374896@300x250" } }, { bidder: "rubicon", params: { accountId: "18608", siteId: "204596", zoneId: "1008080" } }, { bidder: "onetag", params: { pubId: "6da09f566a9dc06" } }, { bidder: "richaudience", params: { pid: "pKqNt5LyvF", supplyType: "site" } }], n.includes(t) ? [{ bidder: "33across", params: { siteId: "aRJKVCig8r7ikZaKj0P0Le", productId: "siab" } }] : [], !0), [{ bidder: "sharethrough", params: { pkey: R.skyscraper[Z] || R.skyscraper[3] } }, { bidder: "triplelift", params: { inventoryCode: "Poki_300x250_Prebid" } }], !1) }, { code: N["970x250"], mediaTypes: { banner: { sizes: [ [970, 250] ] } }, bids: U(U([{ bidder: "appnexus", params: { placementId: "20595278" } }, { bidder: "openx", params: { unit: "543540497", delDomain: "poki-d.openx.net" } }, { bidder: "ix", params: { siteId: "597527", size: [970, 250] } }, { bidder: "pubmatic", params: { publisherId: "156838", adSlot: "3344351@970x250" } }, { bidder: "onetag", params: { pubId: "6da09f566a9dc06" } }, { bidder: "richaudience", params: { pid: "yYyae7vnIh", supplyType: "site" } }], n.includes(t) ? [{ bidder: "33across", params: { siteId: "aRJKVCig8r7ikZaKj0P0Le", productId: "siab" } }] : [], !0), [{ bidder: "sharethrough", params: { pkey: R.rectangle[Z] || R.rectangle[3] } }, { bidder: "triplelift", params: { inventoryCode: "Poki_970x250_Prebid" } }], !1) }, { code: N["160x600"], mediaTypes: { banner: { sizes: [ [160, 600] ] } }, bids: U(U([{ bidder: "appnexus", params: { placementId: "12940425" } }, { bidder: "openx", params: { unit: "539859871", delDomain: "poki-d.openx.net" } }, { bidder: "ix", params: { siteId: "268175", size: [160, 600] } }, { bidder: "pubmatic", params: { publisherId: "156838", adSlot: "1374893@160x600" } }, { bidder: "rubicon", params: { accountId: "18608", siteId: "204596", zoneId: "1008080" } }, { bidder: "onetag", params: { pubId: "6da09f566a9dc06" } }, { bidder: "richaudience", params: { pid: "rAEnPimPzC", supplyType: "site" } }], n.includes(t) ? [{ bidder: "33across", params: { siteId: "aRJKVCig8r7ikZaKj0P0Le", productId: "siab" } }] : [], !0), [{ bidder: "sharethrough", params: { pkey: R.billboard[Z] || R.billboard[3] } }, { bidder: "triplelift", params: { inventoryCode: "Poki_HDX_Prebid" } }], !1) }, { code: N["320x50"], mediaTypes: { banner: { sizes: [ [320, 50] ] } }, bids: U(U([{ bidder: "appnexus", params: { placementId: "20595224" } }, { bidder: "openx", params: { unit: "543540495", delDomain: "poki-d.openx.net" } }, { bidder: "ix", params: { siteId: "597529", size: [320, 50] } }, { bidder: "pubmatic", params: { publisherId: "156838", adSlot: "3344350@320x50" } }, { bidder: "rubicon", params: { accountId: "18608", siteId: "204596", zoneId: "1008080" } }, { bidder: "onetag", params: { pubId: "6da09f566a9dc06" } }, { bidder: "richaudience", params: { pid: "1DP5EtcOip", supplyType: "site" } }], n.includes(t) ? [{ bidder: "33across", params: { siteId: "aRJKVCig8r7ikZaKj0P0Le", productId: "siab" } }] : [], !0), [{ bidder: "sharethrough", params: { pkey: R.skyscraper[Z] || R.skyscraper[3] } }, { bidder: "triplelift", params: { inventoryCode: "Poki_HDX_Prebid" } }], !1) }, { code: N["728x90_external"], mediaTypes: { banner: { sizes: [ [728, 90] ] } }, bids: U(U([{ bidder: "appnexus", params: { placementId: "20973406" } }, { bidder: "openx", params: { unit: "543885656", delDomain: "poki-d.openx.net" } }, { bidder: "ix", params: { siteId: "268177", placementId: "625562", size: [728, 90] } }, { bidder: "pubmatic", params: { publisherId: "156838", adSlot: "3457872" } }, { bidder: "rubicon", params: { accountId: "18608", siteId: "362566", zoneId: "1962680-2" } }, { bidder: "onetag", params: { pubId: "6da09f566a9dc06" } }, { bidder: "richaudience", params: { pid: "MP_gIE1VDieUi", supplyType: "site" } }], n.includes(t) ? [{ bidder: "33across", params: { siteId: "aRJKVCig8r7ikZaKj0P0Le", productId: "siab" } }] : [], !0), [{ bidder: "sharethrough", params: { pkey: R.billboard[Z] || R.billboard[3] } }, { bidder: "triplelift", params: { inventoryCode: "Poki_HDX_Prebid" } }], !1) }, { code: N["300x250_external"], mediaTypes: { banner: { sizes: [ [300, 250] ] } }, bids: U(U([{ bidder: "appnexus", params: { placementId: "20973408" } }, { bidder: "openx", params: { unit: "543885657", delDomain: "poki-d.openx.net" } }, { bidder: "ix", params: { siteId: "625564", size: [300, 250] } }, { bidder: "pubmatic", params: { publisherId: "156838", adSlot: "3457874" } }, { bidder: "rubicon", params: { accountId: "18608", siteId: "362566", zoneId: "1962680-15" } }, { bidder: "onetag", params: { pubId: "6da09f566a9dc06" } }, { bidder: "richaudience", params: { pid: "MP_gIE1VDieUi", supplyType: "site" } }], n.includes(t) ? [{ bidder: "33across", params: { siteId: "aRJKVCig8r7ikZaKj0P0Le", productId: "siab" } }] : [], !0), [{ bidder: "sharethrough", params: { pkey: R.mobile_leaderboard[Z] || R.mobile_leaderboard[3] } }, { bidder: "triplelift", params: { inventoryCode: "Poki_300x250_Prebid" } }], !1) }, { code: N["970x250_external"], mediaTypes: { banner: { sizes: [ [970, 250] ] } }, bids: U(U([{ bidder: "appnexus", params: { placementId: "20973415" } }, { bidder: "openx", params: { unit: "543885650", delDomain: "poki-d.openx.net" } }, { bidder: "ix", params: { siteId: "625560", size: [970, 250] } }, { bidder: "pubmatic", params: { publisherId: "156838", adSlot: "3457879" } }, { bidder: "rubicon", params: { accountId: "18608", siteId: "362566", zoneId: "1962680-57" } }, { bidder: "onetag", params: { pubId: "6da09f566a9dc06" } }, { bidder: "richaudience", params: { pid: "MP_gIE1VDieUi", supplyType: "site" } }], n.includes(t) ? [{ bidder: "33across", params: { siteId: "aRJKVCig8r7ikZaKj0P0Le", productId: "siab" } }] : [], !0), [{ bidder: "sharethrough", params: { pkey: R.leaderboard[Z] || R.leaderboard[3] } }, { bidder: "triplelift", params: { inventoryCode: "Poki_970x250_Prebid" } }], !1) }, { code: N["160x600_external"], mediaTypes: { banner: { sizes: [ [160, 600] ] } }, bids: U(U([{ bidder: "appnexus", params: { placementId: "20973407" } }, { bidder: "openx", params: { unit: "543885653", delDomain: "poki-d.openx.net" } }, { bidder: "ix", params: { siteId: "625563", size: [160, 600] } }, { bidder: "pubmatic", params: { publisherId: "156838", adSlot: "3457877" } }, { bidder: "rubicon", params: { accountId: "18608", siteId: "362566", zoneId: "1962680-9" } }, { bidder: "onetag", params: { pubId: "6da09f566a9dc06" } }, { bidder: "richaudience", params: { pid: "MP_gIE1VDieUi", supplyType: "site" } }], n.includes(t) ? [{ bidder: "33across", params: { siteId: "aRJKVCig8r7ikZaKj0P0Le", productId: "siab" } }] : [], !0), [{ bidder: "sharethrough", params: { pkey: R.rectangle[Z] || R.rectangle[3] } }, { bidder: "triplelift", params: { inventoryCode: "Poki_HDX_Prebid" } }], !1) }, { code: N["320x50_external"], mediaTypes: { banner: { sizes: [ [320, 50] ] } }, bids: U(U([{ bidder: "appnexus", params: { placementId: "20973413" } }, { bidder: "openx", params: { unit: "543885649", delDomain: "poki-d.openx.net" } }, { bidder: "ix", params: { siteId: "625559", size: [320, 50] } }, { bidder: "pubmatic", params: { publisherId: "156838", adSlot: "3457875" } }, { bidder: "rubicon", params: { accountId: "18608", siteId: "362566", zoneId: "1962680-43" } }, { bidder: "onetag", params: { pubId: "6da09f566a9dc06" } }, { bidder: "richaudience", params: { pid: "MP_gIE1VDieUi", supplyType: "site" } }], n.includes(t) ? [{ bidder: "33across", params: { siteId: "aRJKVCig8r7ikZaKj0P0Le", productId: "siab" } }] : [], !0), [{ bidder: "sharethrough", params: { pkey: R.mobile_leaderboard[Z] || R.mobile_leaderboard[3] } }, { bidder: "triplelift", params: { inventoryCode: "Poki_HDX_Prebid" } }], !1) }], d = { debug: !1, enableSendAllBids: !0, usePrebidCache: !0, bidderTimeout: 1500, priceGranularity: { buckets: [{ precision: 2, min: .01, max: 3, increment: .01 }, { precision: 2, min: 3, max: 8, increment: .05 }, { precision: 2, min: 8, max: 20, increment: .5 }, { precision: 2, min: 20, max: 45, increment: 1 }] }, currency: { adServerCurrency: "EUR", defaultRates: { EUR: { EUR: 1, GBP: .86408, USD: 1.2212 }, GBP: { EUR: 1.157300249976854, GBP: 1, USD: 1.4132950652717342 }, USD: { EUR: .8188666885031116, GBP: .7075663282017687, USD: 1 } } }, cache: { url: "null.html?https://prebid.adnxs.com/pbc/v1/cache" }, targetingControls: { allowTargetingKeys: ["BIDDER", "AD_ID", "PRICE_BUCKET", "SIZE", "DEAL", "SOURCE", "FORMAT", "UUID", "CACHE_ID", "CACHE_HOST", "ADOMAIN"], allowSendAllBidsTargetingKeys: ["BIDDER", "AD_ID", "PRICE_BUCKET", "SIZE", "DEAL", "SOURCE", "FORMAT", "UUID", "CACHE_ID", "CACHE_HOST", "ADOMAIN"] }, userSync: { filterSettings: { all: { bidders: "*", filter: "include" } }, syncsPerBidder: 1e3, syncDelay: 100, userIds: [{ name: "pubCommonId", storage: { type: "cookie", name: "poki_pubcid", expires: 180 } }] } }; window.pbjs.que.push((function() { var n = G(G({ floors: { data: { currency: "EUR", schema: { fields: ["mediaType"] }, values: { banner: P(t), video: B(t) } } } }, d), e.config); window.pbjs.addAdUnits(function(e, t, i) { var n, r; i = i.toUpperCase(); var o = null == t ? void 0 : t[i]; if (!o) return e; for (var a = 0; a <= e.length; a++) for (var s = e[a], d = o[(null === (n = null == s ? void 0 : s.mediaTypes) || void 0 === n ? void 0 : n.video) ? "video" : "display"] || {}, A = (null === (r = null == s ? void 0 : s.bids) || void 0 === r ? void 0 : r.length) - 1; A >= 0; A--) { var c = s.bids[A], l = Math.random(); d[c.bidder] && l > d[c.bidder] && e[a].bids.splice(A, 1) } return e }(e.adUnits || s, i, t)), window.pbjs.setConfig(n), window.pbjs.bidderSettings = { appnexus: { bidCpmAdjustment: O }, openx: { bidCpmAdjustment: O }, spotx: { bidCpmAdjustment: O }, ix: { bidCpmAdjustment: O }, richaudience: { bidCpmAdjustment: O }, onetag: { bidCpmAdjustment: O }, rubicon: { bidCpmAdjustment: O }, pubmatic: { bidCpmAdjustment: O }, "33across": { bidCpmAdjustment: O }, sharethrough: { bidCpmAdjustment: O }, triplelift: { bidCpmAdjustment: O } } })) } }, H = !1, V = function(e, t, i, n) { window.apstag && window.apstag.init(e.settings || G({ pubID: "e32f1423-28bc-43ed-8ab0-5ae6b4449cf8", adServer: "googletag", videoAdServer: "GAM" }, i ? { gdpr: { cmpTimeout: 1e4 } } : {}), (function() { H = ! function(e, t) { var i, n; t = t.toUpperCase(); var r = null === (n = null === (i = null == e ? void 0 : e[t]) || void 0 === i ? void 0 : i.video) || void 0 === n ? void 0 : n.amazon; return !!r && Math.random() > r }(n, t), e.callback && e.callback() })) }, W = function() { ! function() { if (!window.__tcfapi) { var e = window.top, t = {}; window.__tcfapi = function(i, n, r, o) { var a = "" + Math.random(), s = { __tcfapiCall: { command: i, parameter: o, version: n, callId: a } }; t[a] = r, e.postMessage(s, "*") }, window.addEventListener("message", (function(e) { var i = {}; try { i = "string" == typeof e.data ? JSON.parse(e.data) : e.data } catch (e) {} var n = i.__tcfapiReturn; n && "function" == typeof t[n.callId] && (t[n.callId](n.returnValue, n.success), t[n.callId] = null) }), !1) } }(), window.pbjs.que.push((function() { window.pbjs.setConfig({ consentManagement: { gdpr: { cmpApi: "iab", timeout: 8e3, defaultGdprScope: !0 } } }) })) }, J = function() { ! function() { if (!window.__uspapi) { var e = window.top, t = {}; window.__uspapi = function(i, n, r) { var o = "" + Math.random(), a = { __uspapiCall: { command: i, version: n, callId: o } }; t[o] = r, e.postMessage(a, "*") }, window.addEventListener("message", (function(e) { var i = e && e.data && e.data.__uspapiReturn; i && i.callId && "function" == typeof t[i.callId] && (t[i.callId](i.returnValue, i.success), t[i.callId] = null) }), !1) } }(), window.pbjs.que.push((function() { window.pbjs.setConfig({ consentManagement: { usp: { cmpApi: "iab", timeout: 8e3 } } }) })) }; function Y(e, t, i, r, o, s, d) { var A = s ? "nope" : t; if (window.pbjs && window.pbjs.que && window.pbjs.getConfig) { var c, l = k().split("?"), u = encodeURIComponent(l[0]), p = r ? K : Q, h = a.getDataAnnotations(), m = 0, g = function() { var r, l, g; if (!(--m > 0)) try { a.dispatchEvent(n.ads.prebidRequested); var f = window.pbjs.adUnits.filter((function(e) { return e.code === p }))[0]; if ("undefined" === f) return console.error("Video-ad-unit not found, did you give it the adunit.code='video' value?"), void e.requestAd(A); var v = window.pbjs.adServers.dfp.buildVideoUrl({ adUnit: f, params: { iu: I("iu", t), sz: "640x360|640x480", output: "vast", cust_params: i, description_url: u } }), b = window.pbjs.getHighestCpmBids(p), k = void 0; b.length > 0 && (k = b[0]), window.pbjs.markWinningBidAsUsed({ adUnitCode: p }), c && (v = v.replace("cust_params=", "cust_params=" + c + "%26")), k && (null === (l = null === (r = null == k ? void 0 : k.meta) || void 0 === r ? void 0 : r.advertiserDomains) || void 0 === l ? void 0 : l.length) > 0 && a.setDataAnnotations({ adDomain: k.meta.advertiserDomains.join(",") }); var y = !1; if (s) { if (c) { var w = function(e) { var t = decodeURIComponent(e), i = I("amznbid", t); if (!i) return null; var n = j[i]; return n ? { bid: n, vast: "null.html?https://aax.amazon-adsystem.com/e/dtb/vast?b=" + I("amzniid", t) + "&rnd=" + Math.round(1e10 * Math.random()) + "&pp=" + i } : null }(c); w && (!k || !k.videoCacheKey || k.cpm < w.bid) && (k = { cpm: w.bid, vast: w.vast, bidder: "amazon", videoCacheKey: "amazon" }) } if (1 !== d && (!k || !k.videoCacheKey || k.cpm < B(o))) { var S = 5; "ninja.io" === (null === (g = null === window || void 0 === window ? void 0 : window.location) || void 0 === g ? void 0 : g.hostname) && (S = function(e) { return "US" === e ? 6.1 : x.includes(e) ? .5 : C.includes(e) ? .15 : T.includes(e) ? .08 : _.includes(e) ? .03 : .02 }(o)), k = { cpm: S, vast: "null.html?https://api.poki.com/ads/houseads/video/vast" + ("" === $e.gameId ? "" : "?game_id=" + $e.gameId), bidder: "poki", videoCacheKey: "poki" } } if (!k || !k.videoCacheKey) return void a.dispatchEvent(1 === d ? n.ads.video.error : n.ads.completed); switch (k.bidder) { case "onetag": v = "null.html?https://onetag-sys.com/invocation/?key=" + k.videoCacheKey; break; case "rubicon": v = "null.html?https://prebid-server.rubiconproject.com/cache?uuid=" + k.videoCacheKey; break; case "spotx": v = "null.html?https://search.spotxchange.com/ad/vast.html?key=" + k.videoCacheKey; break; case "amazon": case "poki": v = k.vast; break; default: v = "null.html?https://prebid.adnxs.com/pbc/v1/cache?uuid=" + k.videoCacheKey } D({ event: "video-ready", size: "640x360v", opportunityId: null == h ? void 0 : h.opportunityId, adUnitPath: null == h ? void 0 : h.adUnitPath, p4d_game_id: $e.gameId, p4d_version_id: $e.versionId, bidder: null == k ? void 0 : k.bidder, bid: null == k ? void 0 : k.cpm }), y = !0, a.setDataAnnotations({ p4d_game_id: $e.gameId, p4d_version_id: $e.versionId, bidder: null == k ? void 0 : k.bidder, bid: null == k ? void 0 : k.cpm }) } a.setDataAnnotations({ vhbOnlyMode: y, adTagUrl: v }), k ? a.setDataAnnotations({ prebidBidder: null == k ? void 0 : k.bidder, prebidBid: null == k ? void 0 : k.cpm }) : a.setDataAnnotations({ prebidBidder: void 0, prebidBid: void 0 }), e.requestAd(v) } catch (t) { e.requestAd(A) } }; H && m++, F && m++, H && window.apstag.fetchBids({ slots: [{ slotID: r ? "Rewarded" : "Midroll", mediaType: "video" }], timeout: 1500 }, (function(e) { e.length > 0 && (c = e[0].encodedQsParams), g() })), s && D({ event: "video-request", size: "640x360v", opportunityId: null == h ? void 0 : h.opportunityId, adUnitPath: null == h ? void 0 : h.adUnitPath, p4d_game_id: $e.gameId, p4d_version_id: $e.versionId }), F && window.pbjs.que.push((function() { window.pbjs.requestBids({ adUnitCodes: [p], bidsBackHandler: function() { g() } }) })) } else e.requestAd(A) } function $() { var e, t = (null === (e = null === window || void 0 === window ? void 0 : window.location) || void 0 === e ? void 0 : e.hostname) || ""; return "yes" === I("poki-ad-server") ? (console.log("DEBUG: Only running Poki-ad-server"), !0) : "localhost" !== t && "game-cdn.poki.com" !== t && !t.endsWith(".poki-gdn.com") && ("ninja.io" === t ? Math.random() <= .5 : "venge.io" === t ? Math.random() <= .05 : "makeitmeme.com" === t) } var ee = function() { function e(e, t) { void 0 === t && (t = {}), this.retries = 0, this.running = !1, this.ima = e, this.siteID = t.siteID || 3, this.country = t.country || "ZZ", this.usePokiAdserver = $(), this.totalRetries = t.totalRetries || d.waterfallRetries || 1, this.timing = t.timing || new c(d.adTiming), a.addEventListener(n.ads.video.error, this.moveThroughWaterfall.bind(this)), a.addEventListener(n.ads.video.loaderError, this.moveThroughWaterfall.bind(this)), a.addEventListener(n.ads.ready, this.timing.stopWaterfallTimer.bind(this.timing)), a.addEventListener(n.ads.started, this.stopWaterfall.bind(this)) } return e.prototype.moveThroughWaterfall = function() { if (!1 !== this.running) { var e = this.totalRetries; if (this.timing.stopWaterfallTimer(), this.retries < e) return this.timing.nextWaterfallTimer(), void this.requestAd(); this.running = !1, this.timing.resetWaterfallTimerIdx(), a.dispatchEvent(n.ads.error, { message: "No ads", rewardAllowed: !0 }) } }, e.prototype.cutOffWaterfall = function() { this.ima.tearDown(), this.moveThroughWaterfall() }, e.prototype.buildAdUnitPaths = function(e) { if (r.debug) { var t = "/21682198607/debug-video/"; return e === n.ads.position.rewarded ? [t + "debug-video-rewarded"] : e === n.ads.position.preroll ? [t + "debug-video-preroll"] : [t + "debug-video-midroll"] } var i = "desktop", o = "midroll"; y() ? i = "mobile" : w() && (i = "tablet"), e === n.ads.position.rewarded && (o = "rewarded"); var a = "/21682198607/"; return tt.GetIsPokiIFrame() ? ["" + a + i + "_ingame_" + o + "_1/" + this.siteID + "_" + i + "_ingame_" + o + "_1", "" + a + i + "_ingame_" + o + "_2/" + this.siteID + "_" + i + "_ingame_" + o + "_2"] : [a + "external_" + i + "_video_1/external_" + i + "_ingame_" + o + "_1", a + "external_" + i + "_video_2/external_" + i + "_ingame_" + o + "_2"] }, e.prototype.start = function(e, t) { void 0 === e && (e = {}), this.running = !0, this.retries = 0, this.criteria = e, this.timing.resetWaterfallTimerIdx(), this.rewarded = t === n.ads.position.rewarded, this.adUnitPaths = this.buildAdUnitPaths(t), this.requestAd() }, e.prototype.requestAd = function() { this.timing.startWaterfallTimer(this.cutOffWaterfall.bind(this)), this.retries++, this.criteria.waterfall = this.retries; var e = (this.retries - 1) % this.adUnitPaths.length, t = this.adUnitPaths[e], i = "https://securepubads.g.doubleclick.net/gampad/ads?sz=640x360|640x480&iu=" + t + "&ciu_szs&impl=s&gdfp_req=1&env=vp&output=vast&unviewed_position_start=1&url={url}&description_url={descriptionUrl}&correlator={timestamp}"; tt.consentString && tt.consentString.length > 0 && (this.criteria.consent_string = tt.consentString); var r = Math.max(document.documentElement.clientWidth || 0, window.innerWidth || 0) > 970; this.criteria.billboards_fit = r ? "yes" : "no"; var o, s, d = function(e) { var t = k().split("?"), i = encodeURIComponent(t[0]); return (e = e.split("{descriptionUrl}").join(i)).split("{timestamp}").join((new Date).getTime().toString()) }(i) + (o = this.criteria, s = "", Object.keys(o).forEach((function(e) { if (Object.prototype.hasOwnProperty.call(o, e)) { var t = o[e]; Array.isArray(t) && (t = t.join()), s += e + "=" + t + "&" } })), "&cust_params=" + (s = encodeURIComponent(s)) + "&"); tt.childDirected && (d += "&tfcd=1"), tt.nonPersonalized && (d += "&npa=1"), a.setDataAnnotations({ adUnitPath: t, adTagUrl: d, waterfall: this.retries }), a.dispatchEvent(n.ads.requested), this.usePokiAdserver ? (console.debug("adRequest started with Prebid Video enabled (" + this.retries + "/" + this.totalRetries + ")"), Y(this.ima, d, this.criteria, this.rewarded, this.country, !0, this.retries)) : 1 === this.retries ? (console.debug("adRequest started with Prebid Video enabled (" + this.retries + "/" + this.totalRetries + ")"), Y(this.ima, d, this.criteria, this.rewarded, this.country, !1, this.retries)) : (console.debug("adRequest started in plain mode (" + this.retries + "/" + this.totalRetries + ")"), this.ima.requestAd(d)) }, e.prototype.isRunning = function() { return true; //return this.running }, e.prototype.stopWaterfall = function() { this.running = !1, this.timing.stopWaterfallTimer(), this.timing.resetWaterfallTimerIdx() }, e }(); const te = ee; var ie = "pokiSdkContainer", ne = "pokiSdkFixed", re = "pokiSdkOverlay", oe = "pokiSdkHidden", ae = "pokiSdkInsideContainer", se = "pokiSdkPauseButton", de = "pokiSdkPauseButtonBG", Ae = "pokiSdkStartAdButton", ce = "pokiSdkProgressBar", le = "pokiSdkProgressContainer", ue = "pokiSdkSpinnerContainer", pe = "pokiSdkVideoContainer", he = "pokiSdkVisible", me = "pokiSDKAdContainer"; var ge = function(e, t, i) { if (i || 2 === arguments.length) for (var n, r = 0, o = t.length; r < o; r++) !n && r in t || (n || (n = Array.prototype.slice.call(t, 0, r)), n[r] = t[r]); return e.concat(n || Array.prototype.slice.call(t)) }; const fe = function() { function e(e) { var t = this; if (this.hideElement = function(e) { e.classList.add(oe), e.classList.remove(he) }, this.showElement = function(e) { e.classList.add(he), e.classList.remove(oe) }, this.progressFaker = new ve((function(e) { return t.updateProgressBar(e) })), this.progressFaker.queueFakeProgress(10, 1e3, n.ads.prebidRequested), this.progressFaker.queueFakeProgress(20, 2e3, n.ads.started), this.createElements(e.wrapper), "undefined" != typeof window && document) { var i = document.createElement("style"); i.innerHTML = "\n.pokiSdkContainer {\n\toverflow: hidden;\n\tposition: absolute;\n\tleft: 0;\n\ttop: 0;\n\twidth: 100%;\n\theight: 100%;\n\tz-index: 1000;\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n}\n\n.pokiSdkContainer.pokiSdkFixed {\n\tposition: fixed;\n}\n\n.pokiSdkContainer.pokiSdkVisible {\n\tdisplay: block;\n}\n\n.pokiSdkContainer.pokiSdkHidden,\n.pokiSdkSpinnerContainer.pokiSdkHidden {\n\tdisplay: none;\n}\n\n.pokiSdkContainer.pokiSdkHidden,\n.pokiSdkSpinnerContainer {\n\tpointer-events: none;\n}\n\n.pokiSdkSpinnerContainer {\n\tz-index: 10;\n\tposition: absolute;\n\ttop: 0;\n\tleft: 0;\n\twidth: 100%;\n\theight: 100%;\n\tbackground: url('https://a.poki.com/images/thumb_anim_2x.gif') 50% 50% no-repeat;\n\tuser-select: none;\n}\n\n.pokiSdkInsideContainer {\n\tbackground: #000;\n\tposition: relative;\n\tz-index: 1;\n\twidth: 100%;\n\theight: 100%;\n\tdisplay: flex;\n\tflex-direction: column;\n\n\topacity: 0;\n\t-webkit-transition: opacity 0.5s ease-in-out;\n\t-moz-transition: opacity 0.5s ease-in-out;\n\t-ms-transition: opacity 0.5s ease-in-out;\n\t-o-transition: opacity 0.5s ease-in-out;\n\ttransition: opacity 0.5s ease-in-out;\n}\n\n.pokiSdkContainer.pokiSdkVisible .pokiSdkInsideContainer {\n\topacity: 1;\n}\n\n.pokiSDKAdContainer, .pokiSdkVideoContainer {\n\tposition: absolute;\n\twidth: 100%;\n\theight: 100%;\n}\n\n.pokiSdkStartAdButton {\n\tposition: absolute;\n\tz-index: 9999;\n\ttop: 0;\n\n\tpadding-top: 10%;\n\twidth: 100%;\n\theight: 100%;\n\ttext-align: center;\n\tcolor: #FFF;\n\n\tfont: 700 15pt 'Arial', sans-serif;\n\tfont-weight: bold;\n\tletter-spacing: 1px;\n\ttransition: 0.1s ease-in-out;\n\tline-height: 1em;\n}\n\n.pokiSdkPauseButton {\n\tcursor:pointer;\n position: absolute;\n top: 50%;\n left: 50%;\n z-index: 1;\n}\n\n.pokiSdkPauseButton:before {\n\tcontent: '';\n\tposition: absolute;\n\twidth: 100px;\n\theight: 100px;\n\tdisplay: block;\n\tborder: 2px solid #fff;\n\tborder-radius: 50%;\n\tuser-select: none;\n\tbackground-color: rgba(0, 0, 0, 0.6);\n\ttransition: background-color 0.5s ease;\n\tanimation: 1s linear infinite pulse;\n}\n\n.pokiSdkPauseButton:after {\n\tcontent: '';\n\tposition: absolute;\n\tdisplay: block;\n\tbox-sizing: border-box;\n\tborder-color: transparent transparent transparent #fff;\n\tborder-style: solid;\n\tborder-width: 26px 0 26px 40px;\n\tpointer-events: none;\n\tanimation: 1s linear infinite pulse;\n\tleft: 6px;\n}\n.pokiSdkPauseButtonBG {\n position: fixed;\n top: 0;\n left: 0;\n display: block;\n content: '';\n background: rgba(0, 43, 80, 0.5);\n width: 100%;\n height: 100%;\n}\n\n.pokiSdkPauseButtonBG:hover{\n\tbackground: rgba(0, 43, 80, 0.7);\n}\n\n@keyframes pulse {\n\t0% {\n\t\ttransform: translate(-50%, -50%) scale(0.95);\n\t}\n\t70% {\n\t\ttransform: translate(-50%, -50%) scale(1.1);\n\t}\n\t100% {\n\t\ttransform: translate(-50%, -50%) scale(0.95);\n\t}\n}\n\n.pokiSdkProgressContainer {\n\tbackground: #B8C7DD;\n\twidth: 100%;\n\theight: 5px;\n\tposition: absolute;\n\tbottom: 0;\n\tz-index: 9999;\n}\n\n.pokiSdkProgressBar {\n\tposition:relative;\n\tbottom:0px;\n\tbackground: #FFDC00;\n\theight: 100%;\n\twidth: 0%;\n\ttransition: width 0.5s;\n\ttransition-timing-function: linear;\n}\n\n.pokiSdkProgressBar.pokiSdkVisible, .pokiSdkPauseButton.pokiSdkVisible, .pokiSdkStartAdButton.pokiSdkVisible {\n\tdisplay: block;\n\tpointer-events: auto;\n}\n\n.pokiSdkProgressBar.pokiSdkHidden, .pokiSdkPauseButton.pokiSdkHidden, .pokiSdkStartAdButton.pokiSdkHidden {\n\tdisplay: none;\n\tpointer-events: none;\n}\n", document.head.appendChild(i) } } return e.prototype.updateProgressBar = function(e) { this.progressBar.style.width = e + "%" }, e.prototype.setupEvents = function(e) { this.internalSDK = e }, e.prototype.hide = function() { this.hideElement(this.containerDiv), this.hideElement(this.progressContainer), this.hidePauseButton(), this.hideElement(this.startAdButton), this.containerDiv.classList.remove(re), this.progressBar.style.width = "0%", this.progressFaker.reset() }, e.prototype.hideSpinner = function() { this.hideElement(this.spinnerContainer) }, e.prototype.show = function() { this.containerDiv.classList.add(re), this.showElement(this.containerDiv), this.showElement(this.spinnerContainer), this.showElement(this.progressContainer), this.progressFaker.start() }, e.prototype.getVideoBounds = function() { return this.adContainer.getBoundingClientRect() }, e.prototype.getAdContainer = function() { return this.adContainer }, e.prototype.getVideoContainer = function() { return this.videoContainer }, e.prototype.showPauseButton = function() { this.showElement(this.pauseButton), this.internalSDK && this.pauseButton.addEventListener("click", this.internalSDK.resumeAd.bind(this.internalSDK)) }, e.prototype.hidePauseButton = function() { this.hideElement(this.pauseButton), this.internalSDK && this.pauseButton.removeEventListener("click", this.internalSDK.resumeAd.bind(this.internalSDK)) }, e.prototype.showStartAdButton = function() { this.showElement(this.startAdButton), this.internalSDK && this.startAdButton.addEventListener("click", this.internalSDK.startAdClicked.bind(this.internalSDK)) }, e.prototype.hideStartAdButton = function() { this.hideElement(this.startAdButton), this.internalSDK && this.startAdButton.removeEventListener("click", this.internalSDK.startAdClicked.bind(this.internalSDK)) }, e.prototype.createElements = function(e) { var t = this; this.containerDiv = document.createElement("div"), this.insideContainer = document.createElement("div"), this.pauseButton = document.createElement("div"), this.pauseButtonBG = document.createElement("div"), this.startAdButton = document.createElement("div"), this.progressBar = document.createElement("div"), this.progressContainer = document.createElement("div"), this.spinnerContainer = document.createElement("div"), this.adContainer = document.createElement("div"), this.videoContainer = document.createElement("video"), this.adContainer.id = "pokiSDKAdContainer", this.videoContainer.id = "pokiSDKVideoContainer", this.containerDiv.className = ie, this.insideContainer.className = ae, this.pauseButton.className = se, this.pauseButtonBG.className = de, this.pauseButton.appendChild(this.pauseButtonBG), this.startAdButton.className = Ae, this.startAdButton.innerHTML = "Tap anywhere to play ad", this.progressBar.className = ce, this.progressContainer.className = le, this.spinnerContainer.className = ue, this.adContainer.className = me, this.videoContainer.className = pe, this.hide(), this.videoContainer.setAttribute("playsinline", "playsinline"), this.videoContainer.setAttribute("muted", "muted"), this.containerDiv.appendChild(this.insideContainer), this.containerDiv.appendChild(this.spinnerContainer), this.insideContainer.appendChild(this.progressContainer), this.insideContainer.appendChild(this.videoContainer), this.insideContainer.appendChild(this.adContainer), this.containerDiv.appendChild(this.pauseButton), this.containerDiv.appendChild(this.startAdButton), this.progressContainer.appendChild(this.progressBar); var i = e || null, n = function() { if (i || (i = document.body), i) if (i.appendChild(t.containerDiv), i === document.body) t.containerDiv.classList.add(ne); else { var e = window.getComputedStyle(i).position; e && -1 !== ["absolute", "fixed", "relative"].indexOf(e) || (i.style.position = "relative") } else window.requestAnimationFrame(n) }; !i || i instanceof HTMLElement || (i = null, console.error("POKI-SDK: wrapper is not a HTMLElement, falling back to document.body")), n() }, e }(); var ve = function() { function e(e) { var t = this; this.storedQueue = [], this.progressCallback = e, this.reset(), a.addEventListener(n.ads.video.progress, (function(e) { var i = 100 - t.currentProgress, n = e.currentTime / e.duration * i; n < i && t.progressCallback(t.currentProgress + n) })), this.initializeNoProgressFix() } return e.prototype.queueFakeProgress = function(e, t, i) { var n = this; this.storedQueue.push({ progressToFake: e, duration: t, stopEvent: i }), a.addEventListener(i, (function() { n.eventWatcher[i] = !0, n.currentProgress = n.startProgress + e, n.startProgress = n.currentProgress, n.progressCallback(n.currentProgress), n.activeQueue.shift(), n.activeQueue.length > 0 ? n.continue() : n.pause() })) }, e.prototype.fakeProgress = function(e, t, i) { this.activeQueue.push({ progressToFake: e, duration: t, stopEvent: i }), this.fakeProgressEvents = !0, this.continue() }, e.prototype.start = function() { this.activeQueue.length > 0 || (this.activeQueue = ge([], this.storedQueue, !0), this.active = !0, this.continue()) }, e.prototype.continue = function() { if (this.activeQueue.length > 0 && !this.tickInterval) { this.startTime = Date.now(); this.tickInterval = window.setInterval(this.tick.bind(this), 50), this.active = !0 } }, e.prototype.pause = function() { this.clearInterval() }, e.prototype.tick = function() { var e = this.activeQueue[0], t = Date.now() - this.startTime, i = Math.min(t / e.duration, 1); this.currentProgress = this.startProgress + e.progressToFake * i, this.fakeProgressEvents && a.dispatchEvent(n.ads.video.progress, { duration: e.duration / 1e3, currentTime: t / 1e3 }), this.progressCallback(this.currentProgress), (this.eventWatcher[e.stopEvent] || 1 === i) && this.pause() }, e.prototype.clearInterval = function() { this.tickInterval && (clearInterval(this.tickInterval), this.tickInterval = 0) }, e.prototype.initializeNoProgressFix = function() { var e = this; a.addEventListener(n.ads.started, (function(t) { e.progressWatcherTimeout = window.setTimeout((function() { if (e.active) { var i = 100 - e.currentProgress, r = 1e3 * t.duration - 1e3; e.fakeProgress(i, r, n.ads.completed) } }), 1e3) })), a.addEventListener(n.ads.video.progress, (function() { e.progressWatcherTimeout && (clearTimeout(e.progressWatcherTimeout), e.progressWatcherTimeout = 0) })) }, e.prototype.reset = function() { this.eventWatcher = {}, this.startProgress = 0, this.startTime = 0, this.currentProgress = 0, this.activeQueue = [], this.active = !1, this.fakeProgressEvents = !1, this.clearInterval() }, e }(), be = !0, ke = {}; function ye() { if (document.body && document.body.appendChild) { var e = document.createElement("iframe"); if (e.style.display = "none", document.body.appendChild(e), e.contentWindow && (window.pokiKeysChanged = new Map, e.contentWindow.document.open(), e.contentWindow.document.write("