Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
RishiRecon
GitHub Repository: RishiRecon/exploits
Path: blob/main/misc/vex4/cdn.jsdelivr.net/npm/@orange-games/[email protected]/build/phaser-ads.min.js
49384 views
1
/*!
2
* phaser-ads - version 2.2.7
3
* A Phaser plugin for providing nice ads integration in your phaser.io game
4
*
5
* OrangeGames
6
* Build at 07-08-2018
7
* Released under MIT License
8
*/
9
10
var __extends = this && this.__extends || function() {
11
var a = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(a, b) { a.__proto__ = b } || function(a, b) { for (var c in b) b.hasOwnProperty(c) && (a[c] = b[c]) };
12
return function(b, c) {
13
function d() { this.constructor = b } a(b, c), b.prototype = null === c ? Object.create(c) : (d.prototype = c.prototype, new d)
14
}
15
}(),
16
PhaserAds;
17
! function(a) {
18
var b;
19
! function(a) { a[a.start = 0] = "start", a[a.firstQuartile = 1] = "firstQuartile", a[a.midPoint = 2] = "midPoint", a[a.thirdQuartile = 3] = "thirdQuartile", a[a.complete = 4] = "complete" }(b = a.AdEvent || (a.AdEvent = {}));
20
var c;
21
! function(a) { a[a.interstitial = 0] = "interstitial", a[a.rewarded = 1] = "rewarded", a[a.banner = 2] = "banner", a[a.video = 3] = "video" }(c = a.AdType || (a.AdType = {}));
22
var d = function(a) {
23
function b(b, c) { var d = a.call(this, b, c) || this; return d.onContentPaused = new Phaser.Signal, d.onContentResumed = new Phaser.Signal, d.onAdProgression = new Phaser.Signal, d.onAdsDisabled = new Phaser.Signal, d.onAdClicked = new Phaser.Signal, d.onAdRewardGranted = new Phaser.Signal, d.onBannerShown = new Phaser.Signal, d.onBannerHidden = new Phaser.Signal, d.bannerActive = !1, d.provider = null, d.wasMuted = !1, Object.defineProperty(b, "ads", { value: d }), d }
24
return __extends(b, a), b.prototype.setAdProvider = function(a) { this.provider = a, this.provider.setManager(this) }, b.prototype.showAd = function() {
25
for (var a = [], b = 0; b < arguments.length; b++) a[b] = arguments[b];
26
if (null === this.provider) throw new Error("Can not request an ad without an provider, please attach an ad provider!");
27
a[0] !== c.banner && (this.wasMuted = this.game.sound.mute, this.game.sound.mute = !0), this.provider.showAd.apply(this.provider, a)
28
}, b.prototype.preloadAd = function() {
29
for (var a = [], b = 0; b < arguments.length; b++) a[b] = arguments[b];
30
if (null === this.provider) throw new Error("Can not preload an ad without an provider, please attach an ad provider!");
31
this.provider.preloadAd.apply(this.provider, a)
32
}, b.prototype.destroyAd = function() {
33
for (var a = [], b = 0; b < arguments.length; b++) a[b] = arguments[b];
34
if (null === this.provider) throw new Error("Can not destroy an ad without an provider, please attach an ad provider!");
35
this.provider.destroyAd.apply(this.provider, a)
36
}, b.prototype.hideAd = function() {
37
for (var a = [], b = 0; b < arguments.length; b++) a[b] = arguments[b];
38
if (null === this.provider) throw new Error("Can not hide an ad without an provider, please attach an ad provider!");
39
this.unMuteAfterAd(), this.provider.hideAd.apply(this.provider, a)
40
}, b.prototype.adsEnabled = function() { return this.provider.adsEnabled }, b.prototype.unMuteAfterAd = function() { this.wasMuted || (this.game.sound.mute = !1) }, b
41
}(Phaser.Plugin);
42
a.AdManager = d
43
}(PhaserAds || (PhaserAds = {}));
44
var PhaserAds;
45
! function(a) {
46
var b;
47
! function(b) {
48
var c;
49
! function(a) { a[a.AdMob = 0] = "AdMob", a[a.MoPub = 1] = "MoPub", a[a.Chartboost = 2] = "Chartboost", a[a.Heyzap = 3] = "Heyzap" }(c = b.CocoonProvider || (b.CocoonProvider = {}));
50
var d = function() {
51
function b(a, b, d) {
52
if (this.adsEnabled = !1, this.banner = null, this.bannerShowable = !1, this.interstitial = null, this.interstitialShowable = !1, this.rewarded = null, this.rewardedShowable = !1, (a.device.cordova || a.device.crosswalk) && Cocoon && Cocoon.Ad) {
53
switch (this.adsEnabled = !0, b) {
54
default:
55
case c.AdMob:
56
this.cocoonProvider = Cocoon.Ad.AdMob;
57
break;
58
case c.Chartboost:
59
this.cocoonProvider = Cocoon.Ad.Chartboost;
60
break;
61
case c.Heyzap:
62
this.cocoonProvider = Cocoon.Ad.Heyzap;
63
break;
64
case c.MoPub:
65
this.cocoonProvider = Cocoon.Ad.MoPub
66
}
67
this.cocoonProvider.configure(d)
68
}
69
}
70
return b.prototype.setManager = function(a) { this.adManager = a }, b.prototype.showAd = function(b) {
71
if (!this.adsEnabled) return this.adManager.unMuteAfterAd(), void(b !== a.AdType.banner && this.adManager.onContentResumed.dispatch());
72
if (b === a.AdType.banner) {
73
if (!this.bannerShowable || null === this.banner) return void this.adManager.unMuteAfterAd();
74
this.adManager.onBannerShown.dispatch(this.banner.width, this.banner.height), this.adManager.bannerActive = !0, this.banner.show()
75
}
76
if (b === a.AdType.interstitial) {
77
if (!this.interstitialShowable || null === this.interstitial) return this.adManager.unMuteAfterAd(), void this.adManager.onContentResumed.dispatch(a.AdType.interstitial);
78
this.interstitial.show()
79
}
80
if (b === a.AdType.rewarded) {
81
if (!this.rewardedShowable || null === this.rewarded) return this.adManager.unMuteAfterAd(), void this.adManager.onContentResumed.dispatch(a.AdType.rewarded);
82
this.rewarded.show()
83
}
84
}, b.prototype.preloadAd = function(b, c, d) {
85
var e = this;
86
this.adsEnabled && (this.destroyAd(b), b === a.AdType.banner && (this.banner = this.cocoonProvider.createBanner(c), d && this.banner.setLayout(d), this.banner.on("load", function() { e.bannerShowable = !0 }), this.banner.on("fail", function() { e.bannerShowable = !1, e.banner = null }), this.banner.on("click", function() { e.adManager.onAdClicked.dispatch(a.AdType.banner) }), this.banner.on("show", function() {}), this.banner.on("dismiss", function() {}), this.banner.load()), b === a.AdType.interstitial && (this.interstitial = this.cocoonProvider.createInterstitial(c), this.interstitial.on("load", function() { e.interstitialShowable = !0 }), this.interstitial.on("fail", function() { e.interstitialShowable = !1, e.interstitial = null }), this.interstitial.on("click", function() { e.adManager.onAdClicked.dispatch(a.AdType.interstitial) }), this.interstitial.on("show", function() { e.adManager.onContentPaused.dispatch(a.AdType.interstitial) }), this.interstitial.on("dismiss", function() { e.adManager.unMuteAfterAd(), e.adManager.onContentResumed.dispatch(a.AdType.interstitial), e.interstitialShowable = !1, e.interstitial = null }), this.interstitial.load()), b === a.AdType.rewarded && (this.rewarded = this.cocoonProvider.createRewardedVideo(c), this.rewarded.on("load", function() { e.rewardedShowable = !0 }), this.rewarded.on("fail", function() { e.rewardedShowable = !1, e.rewarded = null }), this.rewarded.on("click", function() { e.adManager.onAdClicked.dispatch(a.AdType.rewarded) }), this.rewarded.on("show", function() { e.adManager.onContentPaused.dispatch(a.AdType.rewarded) }), this.rewarded.on("dismiss", function() { e.adManager.unMuteAfterAd(), e.adManager.onContentResumed.dispatch(a.AdType.rewarded), e.rewardedShowable = !1, e.rewarded = null }), this.rewarded.on("reward", function() { e.adManager.unMuteAfterAd(), e.adManager.onAdRewardGranted.dispatch(a.AdType.rewarded), e.rewardedShowable = !1, e.rewarded = null }), this.rewarded.load()))
87
}, b.prototype.destroyAd = function(b) { if (this.adsEnabled) { if (b === a.AdType.banner && null !== this.banner) { try { this.cocoonProvider.releaseBanner(this.banner) } catch (a) {} this.banner = null, this.bannerShowable = !1 } b === a.AdType.interstitial && null !== this.interstitial && (this.cocoonProvider.releaseInterstitial(this.interstitial), this.interstitial = null, this.interstitialShowable = !1) } }, b.prototype.hideAd = function(b) { this.adsEnabled && (b === a.AdType.interstitial && null !== this.interstitial && this.interstitial.hide(), b === a.AdType.banner && null !== this.banner && (this.adManager.bannerActive && (this.adManager.bannerActive = !1, this.adManager.onBannerHidden.dispatch(this.banner.width, this.banner.height)), this.banner.hide()), b === a.AdType.rewarded && null !== this.rewarded && this.rewarded.hide()) }, b
88
}();
89
b.CocoonAds = d
90
}(b = a.AdProvider || (a.AdProvider = {}))
91
}(PhaserAds || (PhaserAds = {}));
92
var PhaserAds;
93
! function(a) {
94
var b;
95
! function(a) {
96
var b = function() {
97
function a(a, b, c, d) { void 0 === d && (d = !1), this.adsEnabled = !1, void 0 === cordova.plugins || void 0 !== cordova.plugins && void 0 === cordova.plugins.gdApi || (d && cordova.plugins.gdApi.enableTestAds(), this.setAdListeners(), cordova.plugins.gdApi.init([b, c], function(a) {}, function(a) {})) }
98
return a.prototype.setAdListeners = function() {
99
var a = this;
100
cordova.plugins.gdApi.setAdListener(function(b) {
101
switch (b.event) {
102
case "BANNER_STARTED":
103
a.adManager.onContentPaused.dispatch();
104
break;
105
case "API_IS_READY":
106
a.adsEnabled = !0;
107
break;
108
case "API_ALREADY_INITIALIZED":
109
break;
110
case "BANNER_CLOSED":
111
case "API_NOT_READY":
112
case "BANNER_FAILED":
113
a.adManager.onContentResumed.dispatch()
114
}
115
}, function(b) { a.adsEnabled = !1 })
116
}, a.prototype.setManager = function(a) { this.adManager = a }, a.prototype.showAd = function(a) {
117
var b = this;
118
this.adsEnabled ? cordova.plugins.gdApi.showBanner(function(a) {}, function(a) { b.adManager.onContentResumed.dispatch() }) : this.adManager.onContentResumed.dispatch()
119
}, a.prototype.preloadAd = function() {}, a.prototype.destroyAd = function() {}, a.prototype.hideAd = function() {}, a
120
}();
121
a.CordovaGameDistribution = b
122
}(b = a.AdProvider || (a.AdProvider = {}))
123
}(PhaserAds || (PhaserAds = {}));
124
var PhaserAds;
125
! function(a) {
126
var b;
127
! function(a) {
128
var b;
129
! function(a) { a[a.Interstitial = 0] = "Interstitial", a[a.Video = 1] = "Video", a[a.Rewarded = 2] = "Rewarded", a[a.Banner = 3] = "Banner" }(b = a.HeyzapAdTypes || (a.HeyzapAdTypes = {}));
130
var c = function() {
131
function a(a, b) {
132
var c = this;
133
this.adsEnabled = !1, (a.device.cordova || a.device.crosswalk) && (this.adsEnabled = !0, HeyzapAds.start(b).then(function() {}, function(a) { c.adsEnabled = !1 }))
134
}
135
return a.prototype.setManager = function(a) { this.adManager = a }, a.prototype.showAd = function(a, c) {
136
var d = this;
137
switch (this.adsEnabled || (this.adManager.unMuteAfterAd(), this.adManager.onContentResumed.dispatch()), a) {
138
case b.Interstitial:
139
HeyzapAds.InterstitialAd.addEventListener(HeyzapAds.InterstitialAd.Events.HIDE, function() { d.adManager.unMuteAfterAd(), d.adManager.onContentResumed.dispatch(HeyzapAds.InterstitialAd.Events.HIDE) }), HeyzapAds.InterstitialAd.addEventListener(HeyzapAds.InterstitialAd.Events.SHOW_FAILED, function() { d.adManager.unMuteAfterAd(), d.adManager.onContentResumed.dispatch(HeyzapAds.InterstitialAd.Events.SHOW_FAILED) }), HeyzapAds.InterstitialAd.addEventListener(HeyzapAds.InterstitialAd.Events.CLICKED, function() { d.adManager.onAdClicked.dispatch(HeyzapAds.InterstitialAd.Events.CLICKED) }), HeyzapAds.InterstitialAd.show().then(function() { d.adManager.onContentPaused.dispatch() }, function(a) { d.adManager.unMuteAfterAd(), d.adManager.onContentResumed.dispatch() });
140
break;
141
case b.Video:
142
HeyzapAds.VideoAd.addEventListener(HeyzapAds.VideoAd.Events.HIDE, function() { d.adManager.unMuteAfterAd(), d.adManager.onContentResumed.dispatch(HeyzapAds.VideoAd.Events.HIDE) }), HeyzapAds.VideoAd.addEventListener(HeyzapAds.VideoAd.Events.SHOW_FAILED, function() { d.adManager.unMuteAfterAd(), d.adManager.onContentResumed.dispatch(HeyzapAds.VideoAd.Events.SHOW_FAILED) }), HeyzapAds.VideoAd.addEventListener(HeyzapAds.VideoAd.Events.CLICKED, function() { d.adManager.onAdClicked.dispatch(HeyzapAds.VideoAd.Events.CLICKED) }), HeyzapAds.VideoAd.show().then(function() { d.adManager.onContentPaused.dispatch() }, function(a) { d.adManager.unMuteAfterAd(), d.adManager.onContentResumed.dispatch() });
143
break;
144
case b.Rewarded:
145
HeyzapAds.IncentivizedAd.addEventListener(HeyzapAds.IncentivizedAd.Events.HIDE, function() { d.adManager.unMuteAfterAd(), d.adManager.onContentResumed.dispatch(HeyzapAds.IncentivizedAd.Events.HIDE) }), HeyzapAds.IncentivizedAd.addEventListener(HeyzapAds.IncentivizedAd.Events.SHOW_FAILED, function() { d.adManager.unMuteAfterAd(), d.adManager.onContentResumed.dispatch(HeyzapAds.IncentivizedAd.Events.SHOW_FAILED) }), HeyzapAds.IncentivizedAd.addEventListener(HeyzapAds.IncentivizedAd.Events.CLICKED, function() { d.adManager.onAdClicked.dispatch(HeyzapAds.IncentivizedAd.Events.CLICKED) }), HeyzapAds.IncentivizedAd.show().then(function() { d.adManager.onContentPaused.dispatch() }, function(a) { d.adManager.unMuteAfterAd(), d.adManager.onContentResumed.dispatch() });
146
break;
147
case b.Banner:
148
HeyzapAds.BannerAd.show(c).then(function() {}, function(a) {})
149
}
150
}, a.prototype.preloadAd = function(a) { this.adsEnabled && a === b.Rewarded && HeyzapAds.IncentivizedAd.fetch().then(function() {}, function(a) {}) }, a.prototype.destroyAd = function(a) { this.adsEnabled && a === b.Banner && HeyzapAds.BannerAd.destroy().then(function() {}, function(a) {}) }, a.prototype.hideAd = function(a) { this.adsEnabled && a === b.Banner && HeyzapAds.BannerAd.hide().then(function() {}, function(a) {}) }, a
151
}();
152
a.CordovaHeyzap = c
153
}(b = a.AdProvider || (a.AdProvider = {}))
154
}(PhaserAds || (PhaserAds = {}));
155
var PhaserAds;
156
! function(a) {
157
var b;
158
! function(a) {
159
var b;
160
! function(a) { a[a.preroll = 0] = "preroll", a[a.midroll = 1] = "midroll" }(b = a.GameDistributionAdType || (a.GameDistributionAdType = {}));
161
var c = function() {
162
function a(a, b, c) {
163
void 0 === c && (c = "");
164
var d = this;
165
this.adsEnabled = !0, this.areAdsEnabled(), GD_OPTIONS = {
166
gameId: b,
167
userId: c,
168
advertisementSettings: { autoplay: !1 },
169
onEvent: function(a) {
170
switch (a.name) {
171
case "SDK_GAME_START":
172
"undefined" != typeof gdApi && gdApi.play(), d.adManager.unMuteAfterAd(), d.adManager.onContentResumed.dispatch();
173
break;
174
case "SDK_GAME_PAUSE":
175
d.adManager.onContentPaused.dispatch();
176
break;
177
case "SDK_READY":
178
break;
179
case "SDK_ERROR":
180
}
181
}
182
},
183
function(a, b, c) {
184
var d, e = a.getElementsByTagName(b)[0];
185
a.getElementById(c) || (d = a.createElement(b), d.id = c, d.src = "//htmi.api.gamedistribution.com/main.min.js", e.parentNode.insertBefore(d, e))
186
}(document, "script", "gamedistribution-jssdk")
187
}
188
return a.prototype.setManager = function(a) { this.adManager = a }, a.prototype.showAd = function() {
189
if (this.adsEnabled) {
190
if ("undefined" == typeof gdApi || gdApi && "undefined" == typeof gdApi.showBanner) return this.adsEnabled = !1, this.adManager.unMuteAfterAd(), void this.adManager.onContentResumed.dispatch();
191
gdApi.showBanner()
192
}
193
else this.adManager.unMuteAfterAd(), this.adManager.onContentResumed.dispatch()
194
}, a.prototype.preloadAd = function() {}, a.prototype.destroyAd = function() {}, a.prototype.hideAd = function() {}, a.prototype.areAdsEnabled = function() {
195
var a = this,
196
b = document.createElement("div");
197
b.innerHTML = "&nbsp;", b.className = "adsbox", b.style.position = "absolute", b.style.fontSize = "10px", document.body.appendChild(b);
198
var c = function() { var a = !0; return 0 === b.offsetHeight && (a = !1), b.parentNode.removeChild(b), a };
199
window.setTimeout(function() { a.adsEnabled = c() }, 100)
200
}, a
201
}();
202
a.GameDistributionAds = c
203
}(b = a.AdProvider || (a.AdProvider = {}))
204
}(PhaserAds || (PhaserAds = {}));
205
var PhaserAds;
206
! function(a) {
207
var b;
208
! function(b) {
209
var c = function() {
210
function b(a, b) { this.adsManager = null, this.googleEnabled = !1, this.adsEnabled = !0, this.adTagUrl = "", this.adRequested = !1, this.adManager = null, this.resizeListener = null, this.areAdsEnabled(), "undefined" != typeof google && (this.googleEnabled = !0, this.gameContent = "string" == typeof a.parent ? document.getElementById(a.parent) : a.parent, this.gameContent.style.position = "absolute", this.gameContent.style.width = "100%", this.adContent = this.gameContent.parentNode.appendChild(document.createElement("div")), this.adContent.id = "phaser-ad-container", this.adContent.style.position = "absolute", this.adContent.style.zIndex = "9999", this.adContent.style.display = "none", this.adContent.style.top = "0", this.adContent.style.left = "0", this.adContent.style.width = "100%", this.adContent.style.height = "100%", this.adContent.style.overflow = "hidden", this.adTagUrl = b, this.game = a, this.adDisplay = new google.ima.AdDisplayContainer(this.adContent), google.ima.settings.setVpaidMode(google.ima.ImaSdkSettings.VpaidMode.ENABLED), google.ima.settings.setLocale("nl"), this.adLoader = new google.ima.AdsLoader(this.adDisplay), this.adLoader.addEventListener(google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED, this.onAdManagerLoader, !1, this), this.adLoader.addEventListener(google.ima.AdErrorEvent.Type.AD_ERROR, this.onAdError, !1, this)) }
211
return b.prototype.setManager = function(a) { this.adManager = a }, b.prototype.showAd = function(a) {
212
if (!this.adRequested) {
213
if (this.adsEnabled || this.adManager.onAdsDisabled.dispatch(!0), !this.googleEnabled) return void this.onContentResumeRequested();
214
this.adDisplay.initialize();
215
var b = new google.ima.AdsRequest;
216
b.adTagUrl = this.adTagUrl + this.parseCustomParams(a);
217
var c = window.innerWidth,
218
d = window.innerHeight;
219
this.game.scale.isFullScreen && document.body.clientHeight < window.innerHeight && (d = document.body.clientHeight, c = document.body.clientWidth), b.linearAdSlotWidth = c, b.linearAdSlotHeight = d, b.nonLinearAdSlotWidth = c, b.nonLinearAdSlotHeight = d, b.forceNonLinearFullSlot = !0;
220
try { this.adRequested = !0, this.adLoader.requestAds(b) }
221
catch (a) { this.onContentResumeRequested() }
222
}
223
}, b.prototype.preloadAd = function() {}, b.prototype.destroyAd = function() {}, b.prototype.hideAd = function() {}, b.prototype.onAdManagerLoader = function(a) {
224
var b = this,
225
c = new google.ima.AdsRenderingSettings;
226
c.restoreCustomPlaybackStateOnAdBreakComplete = !0;
227
var d = a.getAdsManager(this.gameContent, c);
228
this.adsManager = d, d.addEventListener(google.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED, this.onContentPauseRequested, !1, this), d.addEventListener(google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED, this.onContentResumeRequested, !1, this), d.addEventListener(google.ima.AdErrorEvent.Type.AD_ERROR, this.onAdError, !1, this), [google.ima.AdEvent.Type.ALL_ADS_COMPLETED, google.ima.AdEvent.Type.CLICK, google.ima.AdEvent.Type.COMPLETE, google.ima.AdEvent.Type.FIRST_QUARTILE, google.ima.AdEvent.Type.LOADED, google.ima.AdEvent.Type.MIDPOINT, google.ima.AdEvent.Type.PAUSED, google.ima.AdEvent.Type.STARTED, google.ima.AdEvent.Type.THIRD_QUARTILE].forEach(function(a) { d.addEventListener(a, b.onAdEvent, !1, b) });
229
try {
230
this.adContent.style.display = "block";
231
var e = window.innerWidth,
232
f = window.innerHeight;
233
this.adsManager.init(e, f, google.ima.ViewMode.NORMAL), this.adsManager.start(), this.resizeListener = function() { null !== b.adsManager && b.adsManager.resize(window.innerWidth, window.innerHeight, google.ima.ViewMode.NORMAL) }, window.addEventListener("resize", this.resizeListener)
234
}
235
catch (a) { this.onAdError(a) }
236
}, b.prototype.onAdEvent = function(b) {
237
switch (b.type) {
238
case google.ima.AdEvent.Type.CLICK:
239
this.adManager.onAdClicked.dispatch();
240
break;
241
case google.ima.AdEvent.Type.LOADED:
242
this.adRequested = !1;
243
var c = b.getAd();
244
c.isLinear() || this.onContentResumeRequested();
245
break;
246
case google.ima.AdEvent.Type.STARTED:
247
this.adManager.onAdProgression.dispatch(a.AdEvent.start);
248
break;
249
case google.ima.AdEvent.Type.FIRST_QUARTILE:
250
this.adManager.onAdProgression.dispatch(a.AdEvent.firstQuartile);
251
break;
252
case google.ima.AdEvent.Type.MIDPOINT:
253
this.adManager.onAdProgression.dispatch(a.AdEvent.midPoint);
254
break;
255
case google.ima.AdEvent.Type.THIRD_QUARTILE:
256
this.adManager.onAdProgression.dispatch(a.AdEvent.thirdQuartile);
257
break;
258
case google.ima.AdEvent.Type.COMPLETE:
259
this.adManager.onAdProgression.dispatch(a.AdEvent.complete);
260
break;
261
case google.ima.AdEvent.Type.ALL_ADS_COMPLETED:
262
this.onContentResumeRequested()
263
}
264
}, b.prototype.onAdError = function(a) { null !== this.adsManager && (this.adsManager.destroy(), this.adsManager = null, null !== this.resizeListener && (window.removeEventListener("resize", this.resizeListener), this.resizeListener = null)), this.adRequested && (this.adRequested = !1), this.onContentResumeRequested() }, b.prototype.onContentPauseRequested = function() { this.adManager.onContentPaused.dispatch() }, b.prototype.onContentResumeRequested = function() { return "undefined" == typeof google ? (this.adManager.unMuteAfterAd(), void this.adManager.onContentResumed.dispatch()) : (this.adContent.style.display = "none", this.adManager.unMuteAfterAd(), void this.adManager.onContentResumed.dispatch()) }, b.prototype.parseCustomParams = function(a) {
265
if (void 0 !== a) {
266
var b = "";
267
for (var c in a)
268
if (a.hasOwnProperty(c)) {
269
b.length > 0 && (b += "&");
270
var d = Array.isArray(a[c]) ? a[c].join(",") : a[c];
271
b += c + "=" + d
272
}
273
return "&cust_params=" + encodeURIComponent(b)
274
}
275
return ""
276
}, b.prototype.areAdsEnabled = function() {
277
var a = this,
278
b = document.createElement("div");
279
b.innerHTML = "&nbsp;", b.className = "adsbox", b.style.position = "absolute", b.style.fontSize = "10px", document.body.appendChild(b);
280
var c = function() { var a = !0; return 0 === b.offsetHeight && (a = !1), b.parentNode.removeChild(b), a };
281
window.setTimeout(function() { a.adsEnabled = c() }, 100)
282
}, b
283
}();
284
b.Ima3 = c
285
}(b = a.AdProvider || (a.AdProvider = {}))
286
}(PhaserAds || (PhaserAds = {}));
287
288