subwayhouston 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/unity.js ADDED
@@ -0,0 +1 @@
1
+ ! function(n) {
2
  function e(o) {
1
3
  if (t[o]) return t[o].exports;
2
4
  var i = t[o] = {
3
5
  i: o,
4
6
  l: !1,
5
7
  exports: {}
6
8
  };
7
9
  return n[o].call(i.exports, i, i.exports, e), i.l = !0, i.exports
8
10
  }
9
11
  var t = {};
10
12
  e.m = n, e.c = t, e.d = function(n, t, o) {
11
13
  e.o(n, t) || Object.defineProperty(n, t, {
12
14
  configurable: !1,
13
15
  enumerable: !0,
14
16
  get: o
15
17
  })
16
18
  }, e.n = function(n) {
17
19
  var t = n && n.__esModule ? function() {
18
20
  return n.default
19
21
  } : function() {
20
22
  return n
21
23
  };
22
24
  return e.d(t, "a", t), t
23
25
  }, e.o = function(n, e) {
24
26
  return Object.prototype.hasOwnProperty.call(n, e)
25
27
  }, e.p = "", e(e.s = 2)
26
28
  "use strict";
27
29
  var o = {
28
30
  loader: "unity",
29
31
  maxRatio: 16 / 9,
30
32
  minRatio: 9 / 16,
31
33
  thumbnail: "",
32
34
  numScreenshots: 0,
33
35
  commentChangeTime: 5e3,
34
36
  spinnerRemoveDelay: 1e3,
35
37
  fullImageMaxWidth: .6,
36
38
  fullImageMaxHeight: .7,
37
39
  smallImageSizeOfFullImage: .8,
38
40
  animationTargetSizeOfSmallImage: .5,
39
41
  transitionDuration: .5,
40
42
  slideshowInterval: 5
41
43
  };
42
44
  window.config.title || console.error(new Error("No title on window.config"));
43
45
  var i = Object.assign(o, window.config);
44
46
  e.a = i
45
47
  "use strict";
46
48
  function o(n, e, t, o, i, r, a) {
47
49
  try {
48
50
  var s = n[r](a),
49
51
  c = s.value
50
52
  } catch (n) {
51
53
  return void t(n)
52
54
  }
53
55
  s.done ? e(c) : Promise.resolve(c).then(o, i)
54
56
  }
55
57
  function i(n) {
56
58
  return function() {
57
59
  var e = this,
58
60
  t = arguments;
59
61
  return new Promise(function(i, r) {
60
62
  function a(n) {
61
63
  o(c, i, r, a, s, "next", n)
62
64
  }
63
65
  function s(n) {
64
66
  o(c, i, r, a, s, "throw", n)
65
67
  }
66
68
  var c = n.apply(e, t);
67
69
  a(void 0)
68
70
  })
69
71
  }
70
72
  }
71
73
  function r() {
72
74
  return a.apply(this, arguments)
73
75
  }
74
76
  function a() {
75
77
  return a = i(x.a.mark(function n() {
76
78
  var e, t, o, i, r, a, c;
77
79
  return x.a.wrap(function(n) {
78
80
  for (;;) switch (n.prev = n.next) {
79
81
  case 0:
80
82
  return m = document.getElementById("slideshow"), p = document.getElementById("slideshow-top"), g = document.getElementById("slideshow-nav"), w = document.getElementById("slideshow-images"), p.className = "active", n.prev = 5, n.next = 8;
81
83
  case 8:
82
84
  e = n.sent, n.next = 16;
83
85
  break;
84
86
  case 11:
85
87
  return n.prev = 11, n.t0 = n.catch(5), n.next = 15;
86
88
  case 15:
87
89
  e = n.sent;
88
90
  case 16:
89
91
  for (t = h(), t.className = "".concat(L, " middle"), t.setAttribute("fullImageLoaded", !0), t.setAttribute("data-idx", 0), t.appendChild(e), w.appendChild(t), m.className = "active", v = e.width / e.height, y = document.createElement("style"), u(), document.body.appendChild(y), window.addEventListener("resize", u), o = 0; o <= S.a.numScreenshots - 1; o++) i = document.createElement("div"), i.className = "bullet".concat(0 === o ? " active" : ""), i.setAttribute("data-idx", o), g.appendChild(i);
90
92
  return n.next = 31;
91
93
  case 31:
92
94
  for (r = n.sent, t.querySelector("img").src = r.src, a = function(n) {
93
95
  var e = h(),
94
96
  t = new Image;
95
97
  t.src = "", e.appendChild(t), e.setAttribute("data-idx", n), 1 === n ? e.className = "".concat(L, " right") : n === S.a.numScreenshots - 1 ? e.className = "".concat(L, " left") : e.className = "".concat(L, " inactive"), w.appendChild(e)
96
98
  }, c = 1; c <= S.a.numScreenshots - 1; c++) a(c);
97
99
  s();
98
100
  case 36:
99
101
  case "end":
100
102
  return n.stop()
101
103
  }
102
104
  }, n, null, [
103
105
  [5, 11]
104
106
  ])
105
107
  })), a.apply(this, arguments)
106
108
  }
107
109
  function s() {
108
110
  return c.apply(this, arguments)
109
111
  }
110
112
  function c() {
111
113
  return c = i(x.a.mark(function n() {
112
114
  var e, t, o, i, r, a;
113
115
  return x.a.wrap(function(n) {
114
116
  for (;;) switch (n.prev = n.next) {
115
117
  case 0:
116
118
  if (e = 1e3 * S.a.slideshowInterval, t = w.querySelector("#slideshow-images .right"), o = t.getAttribute("data-idx") << 0, t.getAttribute("fullImageLoaded")) {
117
119
  n.next = 16;
118
120
  break
119
121
  }
120
122
  return i = Date.now(), n.next = 7;
121
123
  case 7:
122
124
  r = n.sent, t.querySelector("img").src = r.src, t.setAttribute("fullImageLoaded", !0), clearTimeout(window.slideShowMoveTransitionID), clearTimeout(window.slideShowTimeoutID), a = Date.now() - i, a > e ? l() : window.slideShowTimeoutID = window.setTimeout(l, e - a), n.next = 19;
123
125
  break;
124
126
  case 16:
125
127
  clearTimeout(window.slideShowMoveTransitionID), clearTimeout(window.slideShowTimeoutID), window.slideShowTimeoutID = window.setTimeout(l, e);
126
128
  case 19:
127
129
  case "end":
128
130
  return n.stop()
129
131
  }
130
132
  }, n)
131
133
  })), c.apply(this, arguments)
132
134
  }
133
135
  function l() {
134
136
  if (!E) {
135
137
  var n = k + 1;
136
138
  n > S.a.numScreenshots - 1 && (n = 0), d(n)
137
139
  }
138
140
  }
139
141
  function d(n) {
140
142
  k = n << 0;
141
143
  var e = k > 0 ? k - 1 : S.a.numScreenshots - 1,
142
144
  t = k < S.a.numScreenshots - 1 ? k + 1 : 0;
143
145
  w.querySelectorAll(".image").forEach(function(n) {
144
146
  n.className === "".concat(L, " left") && (n.className = "".concat(L, " fromLeft")), n.className === "".concat(L, " right") && (n.className = "".concat(L, " fromRight")), -1 === n.className.indexOf("inactive") && (n.className += " inactive")
145
147
  }), w.querySelector('[data-idx="'.concat(k, '"]')).className = "".concat(L, " middle"), w.querySelector('[data-idx="'.concat(e, '"]')).className = "".concat(L, " left"), w.querySelector('[data-idx="'.concat(t, '"]')).className = "".concat(L, " right"), g.querySelectorAll(".bullet").forEach(function(n, e) {
146
148
  n.className = "bullet", e === k && (n.className += " active")
147
149
  }), window.slideShowMoveTransitionID = window.setTimeout(function() {
148
150
  w.querySelectorAll(".inactive").forEach(function(n) {
149
151
  n.className = "".concat(L, " inactive fromRight")
150
152
  })
151
153
  }, 1e3 * S.a.transitionDuration), s()
152
154
  }
153
155
  function u() {
154
156
  var n = window.innerWidth / window.innerHeight,
155
157
  e = S.a.fullImageMaxWidth / v * n,
156
158
  t = S.a.fullImageMaxWidth;
157
159
  e > S.a.fullImageMaxHeight && (e = S.a.fullImageMaxHeight, t = e * v / n);
158
160
  var o = t * S.a.smallImageSizeOfFullImage,
159
161
  i = .5 - t / 2,
160
162
  r = t * S.a.animationTargetSizeOfSmallImage,
161
163
  a = -2 * r,
162
164
  s = 1 + r,
163
165
  c = (1 - t) / 4 - t / 2,
164
166
  l = .5 - .5 * t - (o + t) / 2,
165
167
  d = 1 - (1 - t) / 4 - t / 2,
166
168
  u = .5 + .5 * o,
167
169
  f = Math.min(c, l),
168
170
  h = Math.max(d, u);
169
171
  y.innerHTML = ""
170
172
  }
171
173
  function f(n) {
172
174
  return new Promise(function(e, t) {
173
175
  var o = new Image;
174
176
  o.addEventListener("load", function() {
175
177
  return e(o)
176
178
  }), o.addEventListener("error", function(n) {
177
179
  o.src.indexOf(".jpg") > 0 ? o.src = o.src.replace(".jpg", ".png") : t(n)
178
180
  }), o.src = n
179
181
  })
180
182
  }
181
183
  function h() {
182
184
  var n = document.createElement("div");
183
185
  return n.className = L, n
184
186
  }
185
187
  e.a = r;
186
188
  var m, p, g, w, v, y, b = t(10),
187
189
  x = t.n(b),
188
190
  S = t(0),
189
191
  L = "image",
190
192
  k = 0,
191
193
  E = !1,
192
194
  I = S.a.screenshotsVersion ? "?v".concat(S.a.screenshotsVersion) : "",
193
195
  C = window.location.pathname.substring(0, window.location.pathname.lastIndexOf("/")),
194
196
  T = window.location.hostname.endsWith("game-cdn.poki.com") || window.location.hostname.endsWith(".poki-gdn.com"),
195
197
  B = T ? "/cdn-cgi/image/f=auto,quality=78".concat(C, "/") : "";
196
198
  window.navigateNext = l, window.removeSlideshowEventListeners = function() {
197
199
  E = !0
198
200
  }
199
201
  n.exports = t(3)
200
202
  "use strict";
201
203
  function o(n) {
202
204
  var e = document.createElement("div");
203
205
  return e.id = n, e
204
206
  }
205
207
  Object.defineProperty(e, "__esModule", {
206
208
  value: !0
207
209
  });
208
210
  var i = t(4),
209
211
  r = (t.n(i), t(0)),
210
212
  a = (t(9), t(1), t(11)),
211
213
  s = (t.n(a), o("loader")),
212
214
  c = o("slideshow"),
213
215
  l = o("slideshow-top"),
214
216
  d = document.createElement("img");
215
217
  var u = o("slideshow-top-container"),
216
218
  f = o("game-title");
217
219
  f.innerText = r.a.title;
218
220
  var h = o("progress-spinner");
219
221
  h.innerHTML = '<div class="bounce0"></div><div class="bounce1"></div><div class="bounce2">', h.setAttribute("class", "spinner");
220
222
  var m = o("progress-container"),
221
223
  p = o("progress-bar"),
222
224
  g = o("progress-fill");
223
225
  g.style.width = "0%";
224
226
  var w = o("progress-amount");
225
227
  w.innerText = "0%";
226
228
  var v = o("progress-comment");
227
229
  v.innerText = "Loading";
228
230
  var y = o("slideshow-images"),
229
231
  b = o("slideshow-nav"),
230
232
  x = o("game-container"),
231
233
  S = o("game");
232
234
  s.appendChild(c), c.appendChild(l), c.appendChild(y), c.appendChild(b), l.appendChild(d), l.appendChild(u), u.appendChild(f), u.appendChild(h), u.appendChild(m), m.appendChild(p), m.appendChild(w), u.appendChild(v), p.appendChild(g), x.appendChild(S), document.body.appendChild(s), document.body.appendChild(x)
233
235
  var o = t(5);
234
236
  "string" == typeof o && (o = [
235
237
  [n.i, o, ""]
236
238
  ]);
237
239
  var i = {
238
240
  hmr: !0
239
241
  };
240
242
  i.transform = void 0, i.insertInto = void 0;
241
243
  t(7)(o, i);
242
244
  o.locals && (n.exports = o.locals)
243
245
  e = n.exports = t(6)(!1), e.push([n.i, "* {\n margin: 0;\n padding: 0;\n}\n\nhtml,\nbody {\n width: 100vw;\n height: 100vh;\n overflow: hidden;\n background: #002B50;\n font-family: Inter, Arial, Helvetica, sans-serif;\n color: #fff;\n}\n\n#game-container {\n position: absolute !important;\n left: 50%;\n top: 50%;\n display: none;\n}\n\n#game,\n#game canvas {\n width: 100%;\n height: 100%;\n}\n\n#loader {\n width: 100%;\n height: 100%;\n}\n\n/**\n * Slideshow\n */\n\n#slideshow {\n width: 100%;\n height: 100%;\n flex-direction: column;\n align-items: center;\n justify-content: space-evenly;\n display: flex;\n user-select: none;\n}\n\n@font-face {\n font-family: Inter;\n src:\n url('/fonts/Inter.var.woff2') format('woff2');\n font-style: bold;\n font-weight: 700;\n}\n\n/**\n * Slideshow - Top section\n */\n#progress-spinner{\n margin-left: 0;\n margin-top: 0;\n left: 0px;\n display:none;\n transform: translate(100%, -50%);\n width:10vh;\n}\n#progress-spinner >div{\n width:2vh;\n height:2vh;\n}\n\n\n#slideshow-top {\n display: flex;\n margin: 2.5vh 0;\n}\n\n#slideshow-top-container {\n display: flex;\n flex-direction: column;\n justify-content: center;\n flex-grow: 1;\n}\n\n#game-title, #progress-comment {\n display: flex;\n flex-grow: 1;\n align-items: center;\n font-size:2vh;\n}\n\n#progress-container {\n display: flex;\n align-items: center;\n flex-grow: 1;\n transition: 0.2s ease-out all;\n}\n\n#progress-container.done {\n opacity: 0;\n}\n\n#progress-bar {\n background: #fff;\n width: 100%;\n overflow: hidden;\n}\n\n#progress-fill {\n background: #3CF7DC;\n height: 100%;\n transition: 0.2s ease-out all;\n animation-name: fillColor;\n animation-duration: 3.5s;\n animation-iteration-count: infinite;\n animation-fill-mode: both;\n}\n\n@keyframes fillColor {\n 0% {\n background-color: #3CF7DC;\n }\n\n 25% {\n background-color: #FFA9BE;\n }\n\n 50% {\n background-color: #FFDC00;\n }\n\n 75% {\n background-color: #E0AEF5;\n }\n\n 100% {\n background-color: #3CF7DC;\n }\n}\n\n@media (orientation: portrait) {\n \n\n #game-title h1 {\n font-size: 2vh;\n }\n\n #slideshow-top {\n width: 70vw;\n }\n\n #progress-bar {\n height: 1vh;\n border-radius: 0.5vh;\n }\n\n #progress-fill {\n border-radius: 0.5vh;\n }\n\n \n\n #progress-amount {\n font-size: 2vh;\n margin-left: 1.5vh;\n width: 3vh;\n }\n}\n\n@media (orientation: landscape) {\n \n\n #game-title h1 {\n font-size: 3vh;\n }\n\n #slideshow-top {\n width: 50vw;\n }\n\n #progress-bar {\n height: 1.2vh;\n border-radius: 0.6vh;\n }\n\n #progress-fill {\n border-radius: 0.6vh;\n }\n\n \n\n #progress-amount {\n font-size: 2.5vh;\n margin-left: 1.875vh;\n width: 3.75vh;\n }\n}\n\n/**\n * Slideshow - Images section\n */\n\n#slideshow-images {\n width: 100vw;\n display: flex;\n justify-content: center;\n}\n\n#slideshow-images .image {\n position: absolute;\n box-shadow: 0 2.4vh 3.6vh rgba(0, 0, 0, 0.4);\n transition-property: transform;\n transition-timing-function: ease-in-out;\n perspective: 1000px;\n left: 0;\n overflow: hidden;\n /* border: 1vh solid; */\n}\n\n#slideshow-images .image img {\n width: 100%;\n height: 100%;\n}\n\n#slideshow-images .image:nth-of-type(1n) {\n border-color: #3BE8B0;\n}\n\n#slideshow-images .image:nth-of-type(2n) {\n border-color: #FF6D92;\n}\n\n#slideshow-images .image:nth-of-type(3n) {\n border-color: #A177FF;\n}\n\n#slideshow-images .image:nth-of-type(4n) {\n border-color: #FFD200;\n}\n\n#slideshow-images .left {\n z-index: 2;\n}\n#slideshow-images .right {\n z-index: 1;\n}\n\n#slideshow-images .middle {\n z-index: 3;\n}\n\n#slideshow-images .left img,\n#slideshow-images .right img {\n transform: scale(1.05);\n}\n\n#slideshow-images .left img,\n#slideshow-images .right img,\n#slideshow-images .fromLeft img,\n#slideshow-images .fromRight img {\n filter: blur(1vh);\n}\n\n#slideshow-images .inactive {\n display: none;\n}\n\n#slideshow-images .inactive.fromLeft,\n#slideshow-images .inactive.fromRight {\n display: block;\n}\n\n/**\n * Slideshow - Navigation section\n */\n\n#slideshow-nav {\n display: flex;\n justify-content: center;\n margin: 2.5vh 0;\n}\n\n#slideshow-nav .bullet {\n display: flex;\n justify-content: center;\n align-items: center;\n}\n\n#slideshow-nav .bullet:after {\n content: '';\n background: #fff;\n border-radius: 0.4vh;\n width: 0.8vh;\n height: 0.8vh;\n}\n\n#slideshow-nav .bullet.active:after {\n background: #009CFF;\n}\n\n#slideshow-nav .bullet {\n width: 2.5vh;\n height: 2.5vh;\n}\n\n#slideshow-nav .bullet:after {\n border-radius: 50%;\n width: 50%;\n height: 50%;\n}\n\n/**\n * Pop-in animation\n */\n\n#slideshow-nav,\n#slideshow-images {\n opacity: 0;\n transition: 0.4s all ease-out;\n transform: translateY(2vh);\n perspective: 1000px;\n transition-delay: 400ms;\n}\n\n#slideshow-nav {\n transition-delay: 600ms;\n}\n\n#slideshow.active #slideshow-images,\n#slideshow.active #slideshow-nav {\n opacity: 1;\n transform: translateY(0);\n}\n\n@keyframes bounceInDown {\n\n from,\n 60%,\n 75%,\n 90%,\n to {\n animation-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);\n }\n\n 0% {\n transform: translate3d(0, -100vh, 0);\n }\n\n 40% {\n transform: translate3d(0, 0.5vh, 0);\n }\n\n 65% {\n transform: translate3d(0, -0.2vh, 0);\n }\n\n 80% {\n transform: translate3d(0, 0.1vh, 0);\n }\n\n to {\n transform: translate3d(0, 0, 0);\n }\n}\n\n#slideshow-top {\n transform: translate3d(0, -20vh, 0);\n opacity: 0;\n}\n\n#slideshow-top.active {\n opacity: 1;\n transform: translate3d(0, 0, 0);\n animation-name: bounceInDown;\n animation-duration: 0.5s;\n}\n\n/**\n * Loading dots\n */\n.spinner {\n position: relative;\n left: -9999px;\n animation: dot-pulse 1.5s infinite linear;\n animation-delay: .25s;\n transform:translate(50vw, 50vh) translate(-130%, -130%);\n }\n\n .spinner:before, .spinner:after {\n content: '';\n display: inline-block;\n position: absolute;\n top: 0;\n width: 10px;\n height: 10px;\n border-radius: 5px;\n }\n .spinner, .spinner:before, .spinner:after{\n width: 10px;\n height: 10px;\n border-radius: 5px;\n }\n\n .spinner:before {\n animation: dot-pulse 1.5s infinite linear;\n animation-delay: 0s;\n left:-20px;\n }\n\n .spinner:after {\n animation: dot-pulse 1.5s infinite linear;\n animation-delay: .5s;\n left:20px;\n }\n\n @keyframes dot-pulse {\n 0% {\n box-shadow: 9999px 0 0 -5px #FFF;\n }\n 30% {\n box-shadow: 9999px 0 0 2px #FFF;\n }\n 60%,\n 100% {\n box-shadow: 9999px 0 0 -5px #FFF;\n }\n }\n", ""])
244
246
  "use strict";
245
247
  function o(n, e) {
246
248
  var t = n[1] || "",
247
249
  o = n[3];
248
250
  if (!o) return t;
249
251
  if (e && "function" == typeof btoa) {
250
252
  var r = i(o);
251
253
  return [t].concat(o.sources.map(function(n) {
252
254
  return "/*# sourceURL=" + o.sourceRoot + n + " */"
253
255
  })).concat([r]).join("\n")
254
256
  }
255
257
  return [t].join("\n")
256
258
  }
257
259
  function i(n) {
258
260
  return "/*# sourceMappingURL=data:application/json;charset=utf-8;base64," + btoa(unescape(encodeURIComponent(JSON.stringify(n)))) + " */"
259
261
  }
260
262
  n.exports = function(n) {
261
263
  var e = [];
262
264
  return e.toString = function() {
263
265
  return this.map(function(e) {
264
266
  var t = o(e, n);
265
267
  return e[2] ? "@media " + e[2] + "{" + t + "}" : t
266
268
  }).join("")
267
269
  }, e.i = function(n, t) {
268
270
  "string" == typeof n && (n = [
269
271
  [null, n, ""]
270
272
  ]);
271
273
  for (var o = {}, i = 0; i < this.length; i++) {
272
274
  var r = this[i][0];
273
275
  null != r && (o[r] = !0)
274
276
  }
275
277
  for (i = 0; i < n.length; i++) {
276
278
  var a = n[i];
277
279
  null != a[0] && o[a[0]] || (t && !a[2] ? a[2] = t : t && (a[2] = "(" + a[2] + ") and (" + t + ")"), e.push(a))
278
280
  }
279
281
  }, e
280
282
  }
281
283
  function o(n, e) {
282
284
  for (var t = 0; t < n.length; t++) {
283
285
  var o = n[t],
284
286
  i = p[o.id];
285
287
  if (i) {
286
288
  i.refs++;
287
289
  for (var r = 0; r < i.parts.length; r++) i.parts[r](o.parts[r]);
288
290
  for (; r < o.parts.length; r++) i.parts.push(u(o.parts[r], e))
289
291
  } else {
290
292
  for (var a = [], r = 0; r < o.parts.length; r++) a.push(u(o.parts[r], e));
291
293
  p[o.id] = {
292
294
  id: o.id,
293
295
  refs: 1,
294
296
  parts: a
295
297
  }
296
298
  }
297
299
  }
298
300
  }
299
301
  function i(n, e) {
300
302
  for (var t = [], o = {}, i = 0; i < n.length; i++) {
301
303
  var r = n[i],
302
304
  a = e.base ? r[0] + e.base : r[0],
303
305
  s = r[1],
304
306
  c = r[2],
305
307
  l = r[3],
306
308
  d = {
307
309
  css: s,
308
310
  media: c,
309
311
  sourceMap: l
310
312
  };
311
313
  o[a] ? o[a].parts.push(d) : t.push(o[a] = {
312
314
  id: a,
313
315
  parts: [d]
314
316
  })
315
317
  }
316
318
  return t
317
319
  }
318
320
  function r(n, e) {
319
321
  var t = v(n.insertInto);
320
322
  if (!t) throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");
321
323
  var o = x[x.length - 1];
322
324
  if ("top" === n.insertAt) o ? o.nextSibling ? t.insertBefore(e, o.nextSibling) : t.appendChild(e) : t.insertBefore(e, t.firstChild), x.push(e);
323
325
  else if ("bottom" === n.insertAt) t.appendChild(e);
324
326
  else {
325
327
  if ("object" != typeof n.insertAt || !n.insertAt.before) throw new Error("[Style Loader]\n\n Invalid value for parameter 'insertAt' ('options.insertAt') found.\n Must be 'top', 'bottom', or Object.\n (https://github.com/webpack-contrib/style-loader#insertat)\n");
326
328
  var i = v(n.insertAt.before, t);
327
329
  t.insertBefore(e, i)
328
330
  }
329
331
  }
330
332
  function a(n) {
331
333
  if (null === n.parentNode) return !1;
332
334
  n.parentNode.removeChild(n);
333
335
  var e = x.indexOf(n);
334
336
  e >= 0 && x.splice(e, 1)
335
337
  }
336
338
  function s(n) {
337
339
  var e = document.createElement("style");
338
340
  if (void 0 === n.attrs.type && (n.attrs.type = "text/css"), void 0 === n.attrs.nonce) {
339
341
  var t = d();
340
342
  t && (n.attrs.nonce = t)
341
343
  }
342
344
  return l(e, n.attrs), r(n, e), e
343
345
  }
344
346
  function c(n) {
345
347
  var e = document.createElement("link");
346
348
  return void 0 === n.attrs.type && (n.attrs.type = "text/css"), n.attrs.rel = "stylesheet", l(e, n.attrs), r(n, e), e
347
349
  }
348
350
  function l(n, e) {
349
351
  Object.keys(e).forEach(function(t) {
350
352
  n.setAttribute(t, e[t])
351
353
  })
352
354
  }
353
355
  function d() {
354
356
  return t.nc
355
357
  }
356
358
  function u(n, e) {
357
359
  var t, o, i, r;
358
360
  if (e.transform && n.css) {
359
361
  if (!(r = "function" == typeof e.transform ? e.transform(n.css) : e.transform.default(n.css))) return function() {};
360
362
  n.css = r
361
363
  }
362
364
  if (e.singleton) {
363
365
  var l = b++;
364
366
  t = y || (y = s(e)), o = f.bind(null, t, l, !1), i = f.bind(null, t, l, !0)
365
367
  } else n.sourceMap && "function" == typeof URL && "function" == typeof URL.createObjectURL && "function" == typeof URL.revokeObjectURL && "function" == typeof Blob && "function" == typeof btoa ? (t = c(e), o = m.bind(null, t, e), i = function() {
366
368
  a(t), t.href && URL.revokeObjectURL(t.href)
367
369
  }) : (t = s(e), o = h.bind(null, t), i = function() {
368
370
  a(t)
369
371
  });
370
372
  return o(n),
371
373
  function(e) {
372
374
  if (e) {
373
375
  if (e.css === n.css && e.media === n.media && e.sourceMap === n.sourceMap) return;
374
376
  o(n = e)
375
377
  } else i()
376
378
  }
377
379
  }
378
380
  function f(n, e, t, o) {
379
381
  var i = t ? "" : o.css;
380
382
  if (n.styleSheet) n.styleSheet.cssText = L(e, i);
381
383
  else {
382
384
  var r = document.createTextNode(i),
383
385
  a = n.childNodes;
384
386
  a[e] && n.removeChild(a[e]), a.length ? n.insertBefore(r, a[e]) : n.appendChild(r)
385
387
  }
386
388
  }
387
389
  function h(n, e) {
388
390
  var t = e.css,
389
391
  o = e.media;
390
392
  if (o && n.setAttribute("media", o), n.styleSheet) n.styleSheet.cssText = t;
391
393
  else {
392
394
  for (; n.firstChild;) n.removeChild(n.firstChild);
393
395
  n.appendChild(document.createTextNode(t))
394
396
  }
395
397
  }
396
398
  function m(n, e, t) {
397
399
  var o = t.css,
398
400
  i = t.sourceMap,
399
401
  r = void 0 === e.convertToAbsoluteUrls && i;
400
402
  (e.convertToAbsoluteUrls || r) && (o = S(o)), i && (o += "\n/*# sourceMappingURL=data:application/json;base64," + btoa(unescape(encodeURIComponent(JSON.stringify(i)))) + " */");
401
403
  var a = new Blob([o], {
402
404
  type: "text/css"
403
405
  }),
404
406
  s = n.href;
405
407
  n.href = URL.createObjectURL(a), s && URL.revokeObjectURL(s)
406
408
  }
407
409
  var p = {},
408
410
  g = function(n) {
409
411
  var e;
410
412
  return function() {
411
413
  return void 0 === e && (e = n.apply(this, arguments)), e
412
414
  }
413
415
  }(function() {
414
416
  return window && document && document.all && !window.atob
415
417
  }),
416
418
  w = function(n, e) {
417
419
  return e ? e.querySelector(n) : document.querySelector(n)
418
420
  },
419
421
  v = function(n) {
420
422
  var e = {};
421
423
  return function(n, t) {
422
424
  if ("function" == typeof n) return n();
423
425
  if (void 0 === e[n]) {
424
426
  var o = w.call(this, n, t);
425
427
  if (window.HTMLIFrameElement && o instanceof window.HTMLIFrameElement) try {
426
428
  o = o.contentDocument.head
427
429
  } catch (n) {
428
430
  o = null
429
431
  }
430
432
  e[n] = o
431
433
  }
432
434
  return e[n]
433
435
  }
434
436
  }(),
435
437
  y = null,
436
438
  b = 0,
437
439
  x = [],
438
440
  S = t(8);
439
441
  n.exports = function(n, e) {
440
442
  if ("undefined" != typeof DEBUG && DEBUG && "object" != typeof document) throw new Error("The style-loader cannot be used in a non-browser environment");
441
443
  e = e || {}, e.attrs = "object" == typeof e.attrs ? e.attrs : {}, e.singleton || "boolean" == typeof e.singleton || (e.singleton = g()), e.insertInto || (e.insertInto = "head"), e.insertAt || (e.insertAt = "bottom");
442
444
  var t = i(n, e);
443
445
  return o(t, e),
444
446
  function(n) {
445
447
  for (var r = [], a = 0; a < t.length; a++) {
446
448
  var s = t[a],
447
449
  c = p[s.id];
448
450
  c.refs--, r.push(c)
449
451
  }
450
452
  if (n) {
451
453
  o(i(n, e), e)
452
454
  }
453
455
  for (var a = 0; a < r.length; a++) {
454
456
  var c = r[a];
455
457
  if (0 === c.refs) {
456
458
  for (var l = 0; l < c.parts.length; l++) c.parts[l]();
457
459
  delete p[c.id]
458
460
  }
459
461
  }
460
462
  }
461
463
  };
462
464
  var L = function() {
463
465
  var n = [];
464
466
  return function(e, t) {
465
467
  return n[e] = t, n.filter(Boolean).join("\n")
466
468
  }
467
469
  }()
468
470
  n.exports = function(n) {
469
471
  var e = "undefined" != typeof window && window.location;
470
472
  if (!e) throw new Error("fixUrls requires window.location");
471
473
  if (!n || "string" != typeof n) return n;
472
474
  var t = e.protocol + "//" + e.host,
473
475
  o = t + e.pathname.replace(/\/[^\/]*$/, "/");
474
476
  return n.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi, function(n, e) {
475
477
  var i = e.trim().replace(/^"(.*)"$/, function(n, e) {
476
478
  return e
477
479
  }).replace(/^'(.*)'$/, function(n, e) {
478
480
  return e
479
481
  });
480
482
  if (/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(i)) return n;
481
483
  var r;
482
484
  return r = 0 === i.indexOf("//") ? i : 0 === i.indexOf("/") ? t + i : o + i.replace(/^\.\//, ""), "url(" + JSON.stringify(r) + ")"
483
485
  })
484
486
  }
485
487
  "use strict";
486
488
  function o() {
487
489
  var n = window.innerWidth,
488
490
  e = window.innerHeight,
489
491
  t = n / e;
490
492
  d.style.width = "".concat(n, "px"), d.style.height = "".concat(e, "px"), t > w.a.maxRatio ? d.style.width = "".concat(e * w.a.maxRatio, "px") : t < w.a.minRatio && (d.style.height = "".concat(n / w.a.minRatio, "px"));
491
493
  var o = d.getBoundingClientRect();
492
494
  d.style.marginLeft = "".concat(-.5 * o.width, "px"), d.style.marginTop = "".concat(-.5 * o.height, "px")
493
495
  }
494
496
  function i() {
495
497
  d = document.getElementById("game-container"), u = document.getElementById("loader"), f = document.getElementById("progress-container"), h = document.getElementById("progress-fill"), m = document.getElementById("progress-amount"), p = document.getElementById("progress-comment"), window.addEventListener("resize", o), window.addEventListener("focus", o), window.PokiSDK.init().then(function() {
496
498
  window.pokiBridge ? window.unityGame.SendMessage(window.pokiBridge, "ready") : window.pokiReady = !0
497
499
  }).catch(function() {
498
500
  window.pokiBridge ? window.unityGame.SendMessage(window.pokiBridge, "adblock") : window.pokiAdBlock = !0, console.info("AdBlocker active")
499
501
  }), window.PokiSDK.setDebug(w.a && w.a.debug)
500
502
  }
501
503
  function r() {
502
504
  d.style.display = "block", u.style.display = "none", o(), PokiSDK.gameLoadingFinished(), window.removeSlideshowEventListeners(), g && clearTimeout(g)
503
505
  }
504
506
  function a(n, e) {
505
507
  if (n.Module) {
506
508
  var t = 100 * e;
507
509
  h.style.width = "".concat(t, "%"), m.innerHTML = "".concat(t << 0, "%"), w.a.fileSize && (m.innerHTML += " of ".concat(w.a.fileSize, "MB"));
508
510
  var o = {
509
511
  percentageDone: t
510
512
  };
511
513
  PokiSDK.gameLoadingProgress(o), e >= 1 && "done" !== f.className && (f.className = "done", document.getElementById("progress-comment").innerHTML = "Preparing game...", document.getElementById("progress-spinner").style.display = "flex", g && clearTimeout(g))
512
514
  }
513
515
  }
514
516
  function s() {
515
517
  var n = w.a.loadingComments || ["Loading..."];
516
518
  n ? (p.innerHTML = n[y], y++, y >= n.length && (y = 0), g = setTimeout(s, w.a.commentChangeTime)) : p.innerHTML = ""
517
519
  }
518
520
  function c() {
519
521
  ! function() {
520
522
  var n = document.createElement("script");
521
523
  n.src = w.a.unityWebglLoaderUrl, n.addEventListener("load", function() {
522
524
  window.unityGame = window.UnityLoader.instantiate("game", w.a.unityWebglBuildUrl, {
523
525
  onProgress: a,
524
526
  Module: {
525
527
  onRuntimeInitialized: r
526
528
  }
527
529
  })
528
530
  }), document.body.appendChild(n)
529
531
  }(), PokiSDK.gameLoadingStart(), w.a.fileSize && (m.innerHTML += " of ".concat(w.a.fileSize, "MB"), m.style.width = "12vh", m.style.whiteSpace = "nowrap"), s()
530
532
  }
531
533
  function l() {
532
534
  window.setTimeout(function() {
533
535
  var n = document.getElementById("spinner");
534
536
  n && n.parentNode && n.parentNode.removeChild(n)
535
537
  }, w.a.spinnerRemoveDelay)
536
538
  }
537
539
  var d, u, f, h, m, p, g, w = t(0),
538
540
  v = t(1),
539
541
  y = 0;
540
542
  ! function() {
541
543
  var n = document.createElement("div");
542
544
  n.setAttribute("id", "spinner"), n.className = "spinner", document.body.appendChild(n)
543
545
  }(), window.onload = function() {
544
546
  i();
545
547
  try {
546
548
  Object(v.a)().then(function() {
547
549
  l()
548
550
  })
549
551
  } catch (n) {
550
552
  console.info("Slideshow loading error", n), l()
551
553
  }
552
554
  c()
553
555
  }
554
556
  var o = function(n) {
555
557
  "use strict";
556
558
  function e(n, e, t, i) {
557
559
  var r = e && e.prototype instanceof o ? e : o,
558
560
  a = Object.create(r.prototype),
559
561
  s = new f(i || []);
560
562
  return a._invoke = c(n, t, s), a
561
563
  }
562
564
  function t(n, e, t) {
563
565
  try {
564
566
  return {
565
567
  type: "normal",
566
568
  arg: n.call(e, t)
567
569
  }
568
570
  } catch (n) {
569
571
  return {
570
572
  type: "throw",
571
573
  arg: n
572
574
  }
573
575
  }
574
576
  }
575
577
  function o() {}
576
578
  function i() {}
577
579
  function r() {}
578
580
  function a(n) {
579
581
  ["next", "throw", "return"].forEach(function(e) {
580
582
  n[e] = function(n) {
581
583
  return this._invoke(e, n)
582
584
  }
583
585
  })
584
586
  }
585
587
  function s(n) {
586
588
  function e(o, i, r, a) {
587
589
  var s = t(n[o], n, i);
588
590
  if ("throw" !== s.type) {
589
591
  var c = s.arg,
590
592
  l = c.value;
591
593
  return l && "object" == typeof l && w.call(l, "__await") ? Promise.resolve(l.__await).then(function(n) {
592
594
  e("next", n, r, a)
593
595
  }, function(n) {
594
596
  e("throw", n, r, a)
595
597
  }) : Promise.resolve(l).then(function(n) {
596
598
  c.value = n, r(c)
597
599
  }, function(n) {
598
600
  return e("throw", n, r, a)
599
601
  })
600
602
  }
601
603
  a(s.arg)
602
604
  }
603
605
  function o(n, t) {
604
606
  function o() {
605
607
  return new Promise(function(o, i) {
606
608
  e(n, t, o, i)
607
609
  })
608
610
  }
609
611
  return i = i ? i.then(o, o) : o()
610
612
  }
611
613
  var i;
612
614
  this._invoke = o
613
615
  }
614
616
  function c(n, e, o) {
615
617
  var i = S;
616
618
  return function(r, a) {
617
619
  if (i === k) throw new Error("Generator is already running");
618
620
  if (i === E) {
619
621
  if ("throw" === r) throw a;
620
622
  return m()
621
623
  }
622
624
  for (o.method = r, o.arg = a;;) {
623
625
  var s = o.delegate;
624
626
  if (s) {
625
627
  var c = l(s, o);
626
628
  if (c) {
627
629
  if (c === I) continue;
628
630
  return c
629
631
  }
630
632
  }
631
633
  if ("next" === o.method) o.sent = o._sent = o.arg;
632
634
  else if ("throw" === o.method) {
633
635
  if (i === S) throw i = E, o.arg;
634
636
  o.dispatchException(o.arg)
635
637
  } else "return" === o.method && o.abrupt("return", o.arg);
636
638
  i = k;
637
639
  var d = t(n, e, o);
638
640
  if ("normal" === d.type) {
639
641
  if (i = o.done ? E : L, d.arg === I) continue;
640
642
  return {
641
643
  value: d.arg,
642
644
  done: o.done
643
645
  }
644
646
  }
645
647
  "throw" === d.type && (i = E, o.method = "throw", o.arg = d.arg)
646
648
  }
647
649
  }
648
650
  }
649
651
  function l(n, e) {
650
652
  var o = n.iterator[e.method];
651
653
  if (o === p) {
652
654
  if (e.delegate = null, "throw" === e.method) {
653
655
  if (n.iterator.return && (e.method = "return", e.arg = p, l(n, e), "throw" === e.method)) return I;
654
656
  e.method = "throw", e.arg = new TypeError("The iterator does not provide a 'throw' method")
655
657
  }
656
658
  return I
657
659
  }
658
660
  var i = t(o, n.iterator, e.arg);
659
661
  if ("throw" === i.type) return e.method = "throw", e.arg = i.arg, e.delegate = null, I;
660
662
  var r = i.arg;
661
663
  return r ? r.done ? (e[n.resultName] = r.value, e.next = n.nextLoc, "return" !== e.method && (e.method = "next", e.arg = p), e.delegate = null, I) : r : (e.method = "throw", e.arg = new TypeError("iterator result is not an object"), e.delegate = null, I)
662
664
  }
663
665
  function d(n) {
664
666
  var e = {
665
667
  tryLoc: n[0]
666
668
  };
667
669
  1 in n && (e.catchLoc = n[1]), 2 in n && (e.finallyLoc = n[2], e.afterLoc = n[3]), this.tryEntries.push(e)
668
670
  }
669
671
  function u(n) {
670
672
  var e = n.completion || {};
671
673
  e.type = "normal", delete e.arg, n.completion = e
672
674
  }
673
675
  function f(n) {
674
676
  this.tryEntries = [{
675
677
  tryLoc: "root"
676
678
  }], n.forEach(d, this), this.reset(!0)
677
679
  }
678
680
  function h(n) {
679
681
  if (n) {
680
682
  var e = n[y];
681
683
  if (e) return e.call(n);
682
684
  if ("function" == typeof n.next) return n;
683
685
  if (!isNaN(n.length)) {
684
686
  var t = -1,
685
687
  o = function e() {
686
688
  for (; ++t < n.length;)
687
689
  if (w.call(n, t)) return e.value = n[t], e.done = !1, e;
688
690
  return e.value = p, e.done = !0, e
689
691
  };
690
692
  return o.next = o
691
693
  }
692
694
  }
693
695
  return {
694
696
  next: m
695
697
  }
696
698
  }
697
699
  function m() {
698
700
  return {
699
701
  value: p,
700
702
  done: !0
701
703
  }
702
704
  }
703
705
  var p, g = Object.prototype,
704
706
  w = g.hasOwnProperty,
705
707
  v = "function" == typeof Symbol ? Symbol : {},
706
708
  y = v.iterator || "@@iterator",
707
709
  b = v.asyncIterator || "@@asyncIterator",
708
710
  x = v.toStringTag || "@@toStringTag";
709
711
  n.wrap = e;
710
712
  var S = "suspendedStart",
711
713
  L = "suspendedYield",
712
714
  k = "executing",
713
715
  E = "completed",
714
716
  I = {},
715
717
  C = {};
716
718
  C[y] = function() {
717
719
  return this
718
720
  };
719
721
  var T = Object.getPrototypeOf,
720
722
  B = T && T(T(h([])));
721
723
  B && B !== g && w.call(B, y) && (C = B);
722
724
  var j = r.prototype = o.prototype = Object.create(C);
723
725
  return i.prototype = j.constructor = r, r.constructor = i, r[x] = i.displayName = "GeneratorFunction", n.isGeneratorFunction = function(n) {
724
726
  var e = "function" == typeof n && n.constructor;
725
727
  return !!e && (e === i || "GeneratorFunction" === (e.displayName || e.name))
726
728
  }, n.mark = function(n) {
727
729
  return Object.setPrototypeOf ? Object.setPrototypeOf(n, r) : (n.__proto__ = r, x in n || (n[x] = "GeneratorFunction")), n.prototype = Object.create(j), n
728
730
  }, n.awrap = function(n) {
729
731
  return {
730
732
  __await: n
731
733
  }
732
734
  }, a(s.prototype), s.prototype[b] = function() {
733
735
  return this
734
736
  }, n.AsyncIterator = s, n.async = function(t, o, i, r) {
735
737
  var a = new s(e(t, o, i, r));
736
738
  return n.isGeneratorFunction(o) ? a : a.next().then(function(n) {
737
739
  return n.done ? n.value : a.next()
738
740
  })
739
741
  }, a(j), j[x] = "Generator", j[y] = function() {
740
742
  return this
741
743
  }, j.toString = function() {
742
744
  return "[object Generator]"
743
745
  }, n.keys = function(n) {
744
746
  var e = [];
745
747
  for (var t in n) e.push(t);
746
748
  return e.reverse(),
747
749
  function t() {
748
750
  for (; e.length;) {
749
751
  var o = e.pop();
750
752
  if (o in n) return t.value = o, t.done = !1, t
751
753
  }
752
754
  return t.done = !0, t
753
755
  }
754
756
  }, n.values = h, f.prototype = {
755
757
  constructor: f,
756
758
  reset: function(n) {
757
759
  if (this.prev = 0, this.next = 0, this.sent = this._sent = p, this.done = !1, this.delegate = null, this.method = "next", this.arg = p, this.tryEntries.forEach(u), !n)
758
760
  for (var e in this) "t" === e.charAt(0) && w.call(this, e) && !isNaN(+e.slice(1)) && (this[e] = p)
759
761
  },
760
762
  stop: function() {
761
763
  this.done = !0;
762
764
  var n = this.tryEntries[0],
763
765
  e = n.completion;
764
766
  if ("throw" === e.type) throw e.arg;
765
767
  return this.rval
766
768
  },
767
769
  dispatchException: function(n) {
768
770
  function e(e, o) {
769
771
  return r.type = "throw", r.arg = n, t.next = e, o && (t.method = "next", t.arg = p), !!o
770
772
  }
771
773
  if (this.done) throw n;
772
774
  for (var t = this, o = this.tryEntries.length - 1; o >= 0; --o) {
773
775
  var i = this.tryEntries[o],
774
776
  r = i.completion;
775
777
  if ("root" === i.tryLoc) return e("end");
776
778
  if (i.tryLoc <= this.prev) {
777
779
  var a = w.call(i, "catchLoc"),
778
780
  s = w.call(i, "finallyLoc");
779
781
  if (a && s) {
780
782
  if (this.prev < i.catchLoc) return e(i.catchLoc, !0);
781
783
  if (this.prev < i.finallyLoc) return e(i.finallyLoc)
782
784
  } else if (a) {
783
785
  if (this.prev < i.catchLoc) return e(i.catchLoc, !0)
784
786
  } else {
785
787
  if (!s) throw new Error("try statement without catch or finally");
786
788
  if (this.prev < i.finallyLoc) return e(i.finallyLoc)
787
789
  }
788
790
  }
789
791
  }
790
792
  },
791
793
  abrupt: function(n, e) {
792
794
  for (var t = this.tryEntries.length - 1; t >= 0; --t) {
793
795
  var o = this.tryEntries[t];
794
796
  if (o.tryLoc <= this.prev && w.call(o, "finallyLoc") && this.prev < o.finallyLoc) {
795
797
  var i = o;
796
798
  break
797
799
  }
798
800
  }
799
801
  i && ("break" === n || "continue" === n) && i.tryLoc <= e && e <= i.finallyLoc && (i = null);
800
802
  var r = i ? i.completion : {};
801
803
  return r.type = n, r.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, I) : this.complete(r)
802
804
  },
803
805
  complete: function(n, e) {
804
806
  if ("throw" === n.type) throw n.arg;
805
807
  return "break" === n.type || "continue" === n.type ? this.next = n.arg : "return" === n.type ? (this.rval = this.arg = n.arg, this.method = "return", this.next = "end") : "normal" === n.type && e && (this.next = e), I
806
808
  },
807
809
  finish: function(n) {
808
810
  for (var e = this.tryEntries.length - 1; e >= 0; --e) {
809
811
  var t = this.tryEntries[e];
810
812
  if (t.finallyLoc === n) return this.complete(t.completion, t.afterLoc), u(t), I
811
813
  }
812
814
  },
813
815
  catch: function(n) {
814
816
  for (var e = this.tryEntries.length - 1; e >= 0; --e) {
815
817
  var t = this.tryEntries[e];
816
818
  if (t.tryLoc === n) {
817
819
  var o = t.completion;
818
820
  if ("throw" === o.type) {
819
821
  var i = o.arg;
820
822
  u(t)
821
823
  }
822
824
  return i
823
825
  }
824
826
  }
825
827
  throw new Error("illegal catch attempt")
826
828
  },
827
829
  delegateYield: function(n, e, t) {
828
830
  return this.delegate = {
829
831
  iterator: h(n),
830
832
  resultName: e,
831
833
  nextLoc: t
832
834
  }, "next" === this.method && (this.arg = p), I
833
835
  }
834
836
  }, n
835
837
  }(n.exports);
836
838
  try {
837
839
  regeneratorRuntime = o
838
840
  } catch (n) {
839
841
  Function("r", "regeneratorRuntime = r")(o)
840
842
  }
841
843
  window.initPokiBridge = function(n) {
842
844
  window.pokiReady || window.pokiAdBlock ? window.pokiReady ? window.unityGame.SendMessage(n, "ready") : window.pokiAdBlock && window.unityGame.SendMessage(n, "adblock") : window.pokiBridge = n, window.commercialBreak = function() {
843
845
  PokiSDK.commercialBreak().then(function() {
844
846
  window.unityGame.SendMessage(n, "commercialBreakCompleted")
845
847
  })
846
848
  }, window.rewardedBreak = function() {
847
849
  PokiSDK.rewardedBreak().then(function(e) {
848
850
  window.unityGame.SendMessage(n, "rewardedBreakCompleted", e.toString())
849
851
  })
850
852
  }
851
853
  }