ThatGravyBoat

Untitled

Jan 15th, 2020
757
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 136.01 KB | None | 0 0
  1. var __awaiter = this && this.__awaiter || function (t, e, i, n) {
  2. function r(t) {
  3. return t instanceof i ? t : new i((function (e) {
  4. e(t)
  5. }))
  6. }
  7. return new(i || (i = Promise))((function (i, o) {
  8. function a(t) {
  9. try {
  10. c(n.next(t))
  11. } catch (e) {
  12. o(e)
  13. }
  14. }
  15.  
  16. function s(t) {
  17. try {
  18. c(n["throw"](t))
  19. } catch (e) {
  20. o(e)
  21. }
  22. }
  23.  
  24. function c(t) {
  25. t.done ? i(t.value) : r(t.value).then(a, s)
  26. }
  27. c((n = n.apply(t, e || [])).next())
  28. }))
  29. };
  30. var __generator = this && this.__generator || function (t, e) {
  31. var i = {
  32. label: 0,
  33. sent: function () {
  34. if (o[0] & 1) throw o[1];
  35. return o[1]
  36. },
  37. trys: [],
  38. ops: []
  39. },
  40. n, r, o, a;
  41. return a = {
  42. next: s(0),
  43. throw: s(1),
  44. return: s(2)
  45. }, typeof Symbol === "function" && (a[Symbol.iterator] = function () {
  46. return this
  47. }), a;
  48.  
  49. function s(t) {
  50. return function (e) {
  51. return c([t, e])
  52. }
  53. }
  54.  
  55. function c(a) {
  56. if (n) throw new TypeError("Generator is already executing.");
  57. while (i) try {
  58. if (n = 1, r && (o = a[0] & 2 ? r["return"] : a[0] ? r["throw"] || ((o = r["return"]) && o.call(r), 0) : r.next) && !(o = o.call(r, a[1])).done) return o;
  59. if (r = 0, o) a = [a[0] & 2, o.value];
  60. switch (a[0]) {
  61. case 0:
  62. case 1:
  63. o = a;
  64. break;
  65. case 4:
  66. i.label++;
  67. return {
  68. value: a[1], done: false
  69. };
  70. case 5:
  71. i.label++;
  72. r = a[1];
  73. a = [0];
  74. continue;
  75. case 7:
  76. a = i.ops.pop();
  77. i.trys.pop();
  78. continue;
  79. default:
  80. if (!(o = i.trys, o = o.length > 0 && o[o.length - 1]) && (a[0] === 6 || a[0] === 2)) {
  81. i = 0;
  82. continue
  83. }
  84. if (a[0] === 3 && (!o || a[1] > o[0] && a[1] < o[3])) {
  85. i.label = a[1];
  86. break
  87. }
  88. if (a[0] === 6 && i.label < o[1]) {
  89. i.label = o[1];
  90. o = a;
  91. break
  92. }
  93. if (o && i.label < o[2]) {
  94. i.label = o[2];
  95. i.ops.push(a);
  96. break
  97. }
  98. if (o[2]) i.ops.pop();
  99. i.trys.pop();
  100. continue
  101. }
  102. a = e.call(t, i)
  103. } catch (s) {
  104. a = [6, s];
  105. r = 0
  106. } finally {
  107. n = o = 0
  108. }
  109. if (a[0] & 5) throw a[1];
  110. return {
  111. value: a[0] ? a[1] : void 0,
  112. done: true
  113. }
  114. }
  115. };
  116. var __spreadArrays = this && this.__spreadArrays || function () {
  117. for (var t = 0, e = 0, i = arguments.length; e < i; e++) t += arguments[e].length;
  118. for (var n = Array(t), r = 0, e = 0; e < i; e++)
  119. for (var o = arguments[e], a = 0, s = o.length; a < s; a++, r++) n[r] = o[a];
  120. return n
  121. };
  122. System.register(["./core-8f5176b6.system.js", "./auction-manager-199f80ed.system.js", "./socket-manager-0ce610bf.system.js", "./spectator-currency-type-a95804df.system.js", "./streamer-game-state-79b4ad30.system.js", "./auction-model-9ca8ce76.system.js", "./start-vote-message-08b1a80a.system.js", "./zones-b8af3060.system.js"], (function (t) {
  123. "use strict";
  124. var e, i, n, r, o, a, s, c, l, u, p, h, d, f, m;
  125. return {
  126. setters: [function (t) {
  127. e = t.r;
  128. i = t.h;
  129. n = t.c;
  130. r = t.g
  131. }, function (t) {
  132. o = t.d;
  133. a = t.v;
  134. s = t.A;
  135. c = t.a
  136. }, function (t) {
  137. l = t.a;
  138. u = t.S
  139. }, function (t) {
  140. p = t.S
  141. }, function (t) {
  142. h = t.S
  143. }, function (t) {
  144. d = t.A
  145. }, function (t) {
  146. f = t.V
  147. }, function (t) {
  148. m = t.I
  149. }],
  150. execute: function () {
  151. var g = function () {
  152. function t() {
  153. this.callbacks = new Array
  154. }
  155. t.prototype.subscribe = function (t) {
  156. this.callbacks.push(t)
  157. };
  158. t.prototype.dispatch = function () {
  159. this.callbacks.forEach((function (t) {
  160. t()
  161. }))
  162. };
  163. return t
  164. }();
  165. var v = function () {
  166. function t() {
  167. this.onProfileLoaded = new g;
  168. this.onWalletUpdated = new g
  169. }
  170. return t
  171. }();
  172. var y = function () {
  173. function t(t) {
  174. this.pubSub = t;
  175. this.callbacksMap = new Map
  176. }
  177. t.prototype.initialize = function (t, e) {
  178. var i = this;
  179. this.pubSub.listen(t, e, (function (t) {
  180. i.dispatchMessage(t)
  181. }))
  182. };
  183. t.prototype.registerCallback = function (t, e) {
  184. var i = this.callbacksMap.get(t);
  185. if (i) {
  186. i.push(e)
  187. } else {
  188. this.callbacksMap.set(t, [e])
  189. }
  190. };
  191. t.prototype.dispatchMessage = function (t) {
  192. var e = JSON.parse(t);
  193. o.group("Received Message: " + e.type);
  194. o.log("Received Message: ", e);
  195. o.groupEnd();
  196. var i = this.callbacksMap.get(e.type);
  197. if (Array.isArray(i)) {
  198. i.forEach((function (t) {
  199. t(e)
  200. }))
  201. } else {
  202. o.log("Cannot find a callback from message:", e)
  203. }
  204. };
  205. return t
  206. }();
  207. var b = function () {
  208. function t() {
  209. this.dev = false
  210. }
  211. t.prototype.getUser = function (t) {
  212. return __awaiter(this, void 0, void 0, (function () {
  213. var e, i, n;
  214. return __generator(this, (function (r) {
  215. switch (r.label) {
  216. case 0:
  217. if (this.dev) {
  218. return [2, Promise.resolve({
  219. id: t,
  220. display_name: t,
  221. profile_image_url: "assets/images/player-thumb-default.png"
  222. })]
  223. }
  224. r.label = 1;
  225. case 1:
  226. r.trys.push([1, 3, , 4]);
  227. return [4, l.get("https://api.twitch.tv/helix/users?id=" + t, {
  228. headers: {
  229. "Client-ID": "y0io0scnvisnnlyga0j0bo5vdxkxgv"
  230. }
  231. })];
  232. case 2:
  233. e = r.sent();
  234. return [3, 4];
  235. case 3:
  236. i = r.sent();
  237. o.error("Http Error:", i.response);
  238. return [2, Promise.resolve({})];
  239. case 4:
  240. n = e.data;
  241. if (n.data.length == 0) {
  242. return [2, Promise.resolve({})]
  243. } else {
  244. return [2, Promise.resolve(n.data[0])]
  245. }
  246. return [2]
  247. }
  248. }))
  249. }))
  250. };
  251. return t
  252. }();
  253. var w;
  254. (function (t) {
  255. t[t["undefined"] = 0] = "undefined";
  256. t[t["local"] = 1] = "local";
  257. t[t["testing"] = 2] = "testing";
  258. t[t["hosted_test"] = 3] = "hosted_test";
  259. t[t["approved"] = 4] = "approved";
  260. t[t["ready_for_review"] = 5] = "ready_for_review";
  261. t[t["in_review"] = 6] = "in_review";
  262. t[t["pending_action"] = 7] = "pending_action";
  263. t[t["uploading"] = 8] = "uploading"
  264. })(w || (w = {}));
  265. var C = function () {
  266. function t() {
  267. this.extensionState = w.undefined;
  268. this.urlParams = new URLSearchParams(window.location.search);
  269. this.extensionState = w[this.urlParams.get("state") || ""];
  270. this.userId = this.urlParams.get("user") || "";
  271. this.streamer = this.urlParams.get("streamer") || ""
  272. }
  273. t.prototype.isLocalEnv = function () {
  274. return this.extensionState == w.local
  275. };
  276. return t
  277. }();
  278. var _;
  279. (function (t) {
  280. t["broadcaster"] = "broadcaster";
  281. t["moderator"] = "moderator";
  282. t["viewer"] = "viewer";
  283. t["external"] = "external"
  284. })(_ || (_ = {}));
  285. var M = function () {
  286. function t(t, e, i, n, r) {
  287. var s = this;
  288. this.urlManager = t;
  289. this.authManager = e;
  290. this.twitchServiceClient = i;
  291. this.profileManager = n;
  292. this.messageDispatcher = r;
  293. this.setupUrls();
  294. if (this.urlManager.isLocalEnv()) {
  295. document.body.style.backgroundColor = "DodgerBlue";
  296. this.twitchServiceClient.dev = true
  297. }
  298. this.authManager.onAuthorized((function (t) {
  299. s.onAuthorized(t);
  300. o.log("onAuthorized:", t)
  301. }));
  302. if (Twitch && Twitch.ext) {
  303. Twitch.ext.onContext((function (t, e) {
  304. a.twitchContext = t
  305. }))
  306. }
  307. setInterval((function () {
  308. if (a.spectatorProfile && a.spectatorProfile.options && a.spectatorProfile.options.pingNavigation) {
  309. new u(a.spectatorProfile.options.pingNavigation.clientHttpUrl).ping()
  310. }
  311. }), 5e3)
  312. }
  313. t.prototype.requestTwitchUserIdShare = function () {
  314. if (!a.twitchJwtClaims || !a.twitchJwtClaims.user_id || a.twitchJwtClaims.user_id.length == 0) {
  315. if (Twitch && Twitch.ext && Twitch.ext.actions) {
  316. Twitch.ext.actions.requestIdShare()
  317. }
  318. return false
  319. }
  320. return true
  321. };
  322. t.prototype.parseJwt = function (t) {
  323. var e = t.split(".")[1];
  324. if (!e) {
  325. return {}
  326. }
  327. var i = e.replace(/-/g, "+").replace(/_/g, "/");
  328. return JSON.parse(window.atob(i))
  329. };
  330. t.prototype.setupUrls = function () {
  331. return __awaiter(this, void 0, void 0, (function () {
  332. var t;
  333. return __generator(this, (function (e) {
  334. t = localStorage.getItem("darwin:env");
  335. switch (this.urlManager.extensionState) {
  336. case w.local:
  337. this.baseUrlConfig("http://localhost:5000");
  338. o.enabled = true;
  339. break;
  340. case w.testing:
  341. if (t) {
  342. this.envToogle(t)
  343. } else {
  344. this.baseUrlConfig("https://pc-devel.api.darwinproject.ca")
  345. }
  346. o.enabled = true;
  347. break;
  348. case w.hosted_test:
  349. case w.approved:
  350. case w.ready_for_review:
  351. case w.in_review:
  352. case w.pending_action:
  353. case w.uploading:
  354. if (t) {
  355. this.envToogle(t)
  356. } else {
  357. this.baseUrlConfig("https://pc-devel.api.darwinproject.ca")
  358. }
  359. o.enabled = true;
  360. break;
  361. default:
  362. this.baseUrlConfig("https://pc-live.api.darwinproject.ca");
  363. o.enabled = false;
  364. break
  365. }
  366. return [2]
  367. }))
  368. }))
  369. };
  370. t.prototype.onAuthorized = function (t) {
  371. o.log("onAuthorized:", t);
  372. a.twitchAuth = t;
  373. if (this.urlManager.extensionState == w.local) {
  374. a.twitchJwtClaims = JSON.parse(decodeURI(t.token));
  375. a.twitchJwtClaims.role = a.twitchJwtClaims.channel_id == a.twitchJwtClaims.user_id ? _.broadcaster : _.viewer
  376. } else {
  377. a.twitchJwtClaims = this.parseJwt(t.token)
  378. }
  379. o.log(a.twitchJwtClaims);
  380. if (this.requestTwitchUserIdShare()) {
  381. this.profileManager.getProfile()
  382. }
  383. this.messageDispatcher.initialize(a.twitchAuth.userId, a.twitchAuth.channelId)
  384. };
  385. t.prototype.setConfigs = function (t) {
  386. a.serviceUrl = t.serviceUrl;
  387. a.spectatorShopUrl = t.spectatorShopUrl;
  388. a.spectatorProfileServiceUrl = t.spectatorProfileServiceUrl;
  389. a.spectatorLeaderboardUrl = t.spectatorLeaderboardUrl;
  390. a.auctionUrl = t.auctionUrl;
  391. a.spectatorTournamentUrl = t.spectatorTournamentUrl;
  392. o.enabled = t.dev
  393. };
  394. t.prototype.baseUrlConfig = function (t) {
  395. a.serviceUrl = t;
  396. a.spectatorShopUrl = t + "/spectatorshop";
  397. a.spectatorProfileServiceUrl = t + "/spectatorprofile";
  398. a.spectatorLeaderboardUrl = t + "/spectatorleaderboard";
  399. a.auctionUrl = t + "/auction";
  400. a.spectatorTournamentUrl = t + "/spectatortournament"
  401. };
  402. t.prototype.envToogle = function (t) {
  403. switch (t) {
  404. case "local":
  405. this.baseUrlConfig("http://localhost:5000");
  406. break;
  407. case "dev":
  408. this.baseUrlConfig("https://pc-devel.api.darwinproject.ca");
  409. break;
  410. case "staging":
  411. this.baseUrlConfig("https://pc-staging.api.darwinproject.ca");
  412. break;
  413. case "prod":
  414. this.baseUrlConfig("https://pc-live.api.darwinproject.ca");
  415. break;
  416. default:
  417. this.baseUrlConfig("https://pc-live.api.darwinproject.ca");
  418. break
  419. }
  420. };
  421. return t
  422. }();
  423. var P = function () {
  424. function t() {
  425. this.lastMessageId = 0
  426. }
  427. t.prototype.listen = function (t, e, i) {
  428. var n = this;
  429. this.twitchUserId = t;
  430. setInterval((function () {
  431. if (!a.twitchAuth) {
  432. return
  433. }
  434. l.get("http://localhost:5000/twitchlocal/messages?lastMessageId=" + n.lastMessageId + "&userJwt=" + a.twitchAuth.token).then((function (t) {
  435. if (t.data) {
  436. if (t.data.length == 0) {
  437. return
  438. }
  439. for (var e = 0; e < t.data.length; e++) {
  440. var r = t.data[e];
  441. if (r.id > n.lastMessageId) {
  442. n.lastMessageId = r.id;
  443. if (r.target == "broadcast" || "whisper-" + n.twitchUserId) {
  444. i(r.message)
  445. }
  446. }
  447. }
  448. }
  449. }))
  450. }), 1e3)
  451. };
  452. return t
  453. }();
  454. var I = function () {
  455. function t() {}
  456. t.prototype.listen = function (t, e, i) {
  457. if (Twitch && Twitch.ext) {
  458. Twitch.ext.listen("whisper-" + t, (function (e, n, r) {
  459. o.group("Received Whisper: " + t);
  460. o.log(e, n, r);
  461. o.groupEnd();
  462. i(r)
  463. }));
  464. Twitch.ext.listen("broadcast", (function (e, n, r) {
  465. o.group("Received broadcast" + t);
  466. o.log(e, n, r);
  467. o.groupEnd();
  468. i(r)
  469. }));
  470. Twitch.ext.listen("channel-bits-events-v1." + e, (function (t, n, r) {
  471. o.group("Listening/Cheers: channel-bits-events-v1." + e);
  472. o.log(t, n, r);
  473. o.groupEnd();
  474. i(r)
  475. }))
  476. }
  477. };
  478. return t
  479. }();
  480. var k = function () {
  481. function t(t) {
  482. this.urlManager = t
  483. }
  484. t.prototype.onAuthorized = function (t) {
  485. var e = this.urlManager.userId;
  486. var i = this.urlManager.streamer;
  487. var n = new URLSearchParams(window.location.search).get("role") || "viewer";
  488. if (!Object.values(_).includes(_[n])) {
  489. n = "viewer"
  490. }
  491. var r = {
  492. pubsub_perms: {
  493. listen: [],
  494. send: []
  495. },
  496. is_unlinked: true,
  497. exp: Math.floor((new Date).getTime() / 1e3) + 86400,
  498. role: n,
  499. opaque_user_id: e,
  500. user_id: e,
  501. channel_id: i
  502. };
  503. var o = {
  504. userId: e,
  505. token: JSON.stringify(r),
  506. channelId: "",
  507. clientId: ""
  508. };
  509. t(o)
  510. };
  511. return t
  512. }();
  513. var S = function () {
  514. function t() {}
  515. t.prototype.onAuthorized = function (t) {
  516. if (Twitch && Twitch.ext) {
  517. Twitch.ext.onAuthorized((function (e) {
  518. t(e)
  519. }))
  520. }
  521. };
  522. return t
  523. }();
  524. var T = function () {
  525. function t(t, e, i, n) {
  526. var r = this;
  527. this.twitchServiceClient = t;
  528. this.eventManager = e;
  529. this.messageDispatcher = i;
  530. this.spectatorInteraction = n;
  531. i.registerCallback("enterLobbyMessage", (function (t) {
  532. r.onEnterLobby(t)
  533. }));
  534. i.registerCallback("streamerDestroyedMessage", (function () {
  535. r.onStreamerDestroyed()
  536. }));
  537. setInterval((function () {
  538. if (r.spectatorInteraction && a.spectatorProfile) {
  539. r.spectatorInteraction.displayCurrency = a.spectatorProfile.options.isCurrencyEnabled;
  540. r.spectatorInteraction.displayPremiumCurrency = a.spectatorProfile.options.isPremiumCurrencyEnabled;
  541. r.spectatorInteraction.displayLeaderboard = a.spectatorProfile.options.isLeaderboardEnabled;
  542. r.spectatorInteraction.premiumCurrency = a.spectatorProfile.wallet.premiumCurrency
  543. }
  544. }), 5e3)
  545. }
  546. t.prototype.onEnterLobby = function (t) {
  547. if (t.tournamentId) {
  548. var e = {
  549. tournamentId: t.tournamentId
  550. };
  551. a.spectatorProfile.pendingTournament = e
  552. } else {
  553. a.spectatorProfile.pendingTournament = undefined
  554. }
  555. if (t.options.joinSessionLink) {
  556. this.displayJoinMatchInteraction(t.options.joinSessionLink)
  557. }
  558. };
  559. t.prototype.onStreamerDestroyed = function () {
  560. if (a.twitchJwtClaims.role != _.broadcaster) {
  561. a.spectatorProfile.pendingTournament = undefined
  562. }
  563. };
  564. t.prototype.getProfile = function () {
  565. return __awaiter(this, void 0, void 0, (function () {
  566. var t, e, i, n, r, c, l, u;
  567. var p = this;
  568. return __generator(this, (function (d) {
  569. switch (d.label) {
  570. case 0:
  571. d.trys.push([0, 4, , 5]);
  572. t = window.localStorage.getItem("twitch_user_id");
  573. e = window.localStorage.getItem("twitch_display_name");
  574. i = window.localStorage.getItem("twitch_icon_url");
  575. if (t !== a.twitchJwtClaims.user_id) {
  576. window.localStorage.removeItem("twitch_user_id");
  577. window.localStorage.removeItem("twitch_display_name");
  578. window.localStorage.removeItem("twitch_icon_url");
  579. i = null;
  580. e = null
  581. }
  582. if (!(e == null || i == null)) return [3, 2];
  583. return [4, this.twitchServiceClient.getUser(a.twitchJwtClaims.user_id)];
  584. case 1:
  585. n = d.sent();
  586. e = n.display_name;
  587. i = n.profile_image_url;
  588. window.localStorage.setItem("twitch_user_id", a.twitchJwtClaims.user_id);
  589. if (e) {
  590. window.localStorage.setItem("twitch_display_name", e)
  591. }
  592. if (i) {
  593. window.localStorage.setItem("twitch_icon_url", i)
  594. }
  595. d.label = 2;
  596. case 2:
  597. return [4, (new s).getProfile(a.spectatorProfileServiceUrl, e, i, a.twitchAuth.token)];
  598. case 3:
  599. r = d.sent();
  600. c = r.data;
  601. if (c) {
  602. o.log("Profile:", c);
  603. a.spectatorProfile = c;
  604. if (c.displayName) {
  605. window.localStorage.setItem("twitch_display_name", c.displayName)
  606. }
  607. if (c.iconUrl) {
  608. window.localStorage.setItem("twitch_icon_url", c.iconUrl)
  609. }
  610. if (c.options.joinSessionLink && c.streamerGameState === h.Lobby) {
  611. l = c.options.joinSessionLink;
  612. setTimeout((function () {
  613. p.displayJoinMatchInteraction(l)
  614. }), 2e3)
  615. }
  616. }
  617. this.eventManager.onProfileLoaded.dispatch();
  618. this.eventManager.onWalletUpdated.dispatch();
  619. return [3, 5];
  620. case 4:
  621. u = d.sent();
  622. o.error(u);
  623. return [3, 5];
  624. case 5:
  625. return [2]
  626. }
  627. }))
  628. }))
  629. };
  630. t.prototype.refreshWallet = function () {
  631. this.eventManager.onWalletUpdated.dispatch()
  632. };
  633. t.prototype.getWallet = function () {
  634. return this.getMainWallet()
  635. };
  636. t.prototype.getPremiumCurrency = function () {
  637. return a.spectatorProfile.wallet.premiumCurrency
  638. };
  639. t.prototype.getCurrencyByType = function (t) {
  640. if (t === p[p.Premium]) {
  641. return this.getPremiumCurrency()
  642. } else {
  643. return this.getWallet()
  644. }
  645. };
  646. t.prototype.updateCurrencyByType = function (t, e) {
  647. if (t === p[p.Premium]) {
  648. this.updatePremiumCurrency(e)
  649. } else {
  650. this.updateWallet(e)
  651. }
  652. };
  653. t.prototype.getMainWallet = function () {
  654. if (a.spectatorProfile.wallet) {
  655. return a.spectatorProfile.wallet.inStreamCurrency
  656. } else {
  657. return 0
  658. }
  659. };
  660. t.prototype.getTournamentWallet = function () {
  661. if (!a.spectatorProfile.pendingTournament) {
  662. return undefined
  663. }
  664. var t = a.spectatorProfile.pendingTournament.tournamentId;
  665. var e = a.spectatorProfile.wallet.tournamentInStreamCurrencies.get(t);
  666. if (!e && a.spectatorProfile.options.tournamentSettings) {
  667. e = a.spectatorProfile.options.tournamentSettings.inStreamCurrencyStartAmount;
  668. a.spectatorProfile.wallet.tournamentInStreamCurrencies.set(t, e)
  669. }
  670. return e
  671. };
  672. t.prototype.updatePremiumCurrency = function (t) {
  673. a.spectatorProfile.wallet.premiumCurrency = t;
  674. this.eventManager.onWalletUpdated.dispatch()
  675. };
  676. t.prototype.updateWallet = function (t) {
  677. if (a.spectatorProfile.pendingTournament) {
  678. this.updateTournamentWallet(t)
  679. } else {
  680. this.updateMainWallet(t)
  681. }
  682. };
  683. t.prototype.updateMainWallet = function (t) {
  684. if (t) {
  685. a.spectatorProfile.wallet.inStreamCurrency = t;
  686. this.eventManager.onWalletUpdated.dispatch()
  687. } else {
  688. o.error("Undefined inStreamCurrency @updateMainWallet")
  689. }
  690. };
  691. t.prototype.displayJoinMatchInteraction = function (t) {
  692. var e = {
  693. title: "Join Match",
  694. component: "join-interaction",
  695. props: {
  696. text: "Join Match",
  697. icon: "",
  698. url: t
  699. },
  700. uniqueKey: "joinMatch"
  701. };
  702. this.spectatorInteraction.addPanel(e)
  703. };
  704. t.prototype.updateTournamentWallet = function (t) {
  705. if (!a.spectatorProfile.pendingTournament) {
  706. return false
  707. }
  708. var e = a.spectatorProfile.pendingTournament.tournamentId;
  709. a.spectatorProfile.wallet.tournamentInStreamCurrencies.set(e, t);
  710. this.eventManager.onWalletUpdated.dispatch();
  711. return true
  712. };
  713. return t
  714. }();
  715. var x = function () {
  716. function t(t, e, i) {
  717. var n = this;
  718. this.messageDispatcher = t;
  719. this.auctionManager = e;
  720. this.spectatorInteraction = i;
  721. this.interactionProps = {
  722. manager: this.auctionManager,
  723. joinSessionLink: ""
  724. };
  725. t.registerCallback("refreshAuctionMessage", (function (t) {
  726. n.refreshAuction(t)
  727. }));
  728. t.registerCallback("refreshAuctionItemMessage", (function (t) {
  729. n.refreshAuctionItem(t)
  730. }));
  731. t.registerCallback("endAuctionMessage", (function (t) {
  732. n.endAuction(t)
  733. }));
  734. t.registerCallback("sendPowerInfoMessage", (function (t) {
  735. n.sendPowerInfo(t)
  736. }));
  737. t.registerCallback("joinSessionInvitationMessage", (function (t) {
  738. n.receiveJoinInvitation(t)
  739. }));
  740. t.registerCallback("startMatchMessage", (function (t) {
  741. n.cleanup(t);
  742. n.auctionManager.notificationManager.flush()
  743. }));
  744. t.registerCallback("cleanupAuctionMessage", (function (t) {
  745. n.cleanup(t);
  746. n.auctionManager.clear()
  747. }));
  748. t.registerCallback("streamerDestroyedMessage", (function (t) {
  749. n.cleanup(t);
  750. n.auctionManager.clear()
  751. }));
  752. t.registerCallback("endMatchMessage", (function (t) {
  753. n.cleanup(t), n.auctionManager.clear()
  754. }));
  755. t.registerCallback("enterLobbyMessage", (function (t) {
  756. n.cleanup(t), n.auctionManager.clear()
  757. }))
  758. }
  759. t.prototype.refreshAuctionItem = function (t) {
  760. this.auctionManager.auctionItemWon(t)
  761. };
  762. t.prototype.refreshAuction = function (t) {
  763. this.auctionManager.update(t.auctionGroup, t);
  764. this.interactionProps.manager = this.auctionManager;
  765. var e = {
  766. timeout: this.makeTimeout(t.auctionRefreshTime),
  767. title: "Spectator Shop",
  768. component: "spectator-shop-interaction",
  769. props: this.interactionProps,
  770. uniqueKey: "spectator-shop-interaction"
  771. };
  772. this.spectatorInteraction.addPanel(e)
  773. };
  774. t.prototype.endAuction = function (t) {
  775. this.auctionManager.end(t)
  776. };
  777. t.prototype.sendPowerInfo = function (t) {
  778. this.auctionManager.sendPowerInfo(t)
  779. };
  780. t.prototype.receiveJoinInvitation = function (t) {
  781. var e = this;
  782. o.log("Session Invitation Message Received", t);
  783. this.auctionManager.saveJoinLink(t.auctionId, t.navigationUrl);
  784. if (u.clientAvailable) {
  785. l.get(t.joinByInvitationNavigation.clientHttpUrl)
  786. } else {
  787. open(t.navigationUrl, "_blank")
  788. }
  789. if (t.auctionGroupType === d.Hero) {
  790. open(t.navigationUrl, "_blank")
  791. }
  792. if (t.auctionGroupType === d.Inmate) {
  793. this.auctionManager.saveJoinLink(t.auctionId, t.navigationUrl);
  794. this.interactionProps.joinSessionLink = t.navigationUrl;
  795. localStorage.setItem("inmate session link received:", t.navigationUrl);
  796. localStorage.setItem("auction:" + t.auctionId, t.navigationUrl);
  797. var i = {
  798. title: "YOU WON",
  799. component: "invade-interaction",
  800. uniqueKey: "invade",
  801. props: {
  802. text: "Join Now!",
  803. icon: "",
  804. url: t.navigationUrl
  805. }
  806. };
  807. this.spectatorInteraction.addPanel(i);
  808. setTimeout((function () {
  809. e.spectatorInteraction.removePanel(i)
  810. }), 3e4)
  811. }
  812. };
  813. t.prototype.cleanup = function (t) {
  814. var e = {
  815. title: "Spectator Shop",
  816. component: "spectator-shop-interaction",
  817. uniqueKey: "spectator-shop-interaction"
  818. };
  819. this.spectatorInteraction.removePanel(e)
  820. };
  821. t.prototype.makeTimeout = function (t) {
  822. return (new Date).getTime() / 1e3 + t + 1 + a.spectatorProfile.options.autoCloseDelay
  823. };
  824. return t
  825. }();
  826. var U;
  827. (function (t) {
  828. t[t["Undefined"] = 0] = "Undefined";
  829. t[t["Active"] = 1] = "Active";
  830. t[t["Complete"] = 2] = "Complete"
  831. })(U || (U = {}));
  832. var E;
  833. (function (t) {
  834. t[t["Undefined"] = 0] = "Undefined";
  835. t[t["English"] = 1] = "English";
  836. t[t["Dutch"] = 2] = "Dutch"
  837. })(E || (E = {}));
  838. var L;
  839. (function (t) {
  840. t[t["Undefined"] = 0] = "Undefined";
  841. t[t["MatchWinner"] = 1] = "MatchWinner";
  842. t[t["FirstBlood"] = 2] = "FirstBlood";
  843. t[t["Damage"] = 3] = "Damage";
  844. t[t["MatchWinnerSalty"] = 4] = "MatchWinnerSalty"
  845. })(L || (L = {}));
  846. var A;
  847. (function (t) {
  848. t[t["Undefined"] = 0] = "Undefined";
  849. t[t["FreeForAll"] = 1] = "FreeForAll";
  850. t[t["BloodPact"] = 2] = "BloodPact";
  851. t[t["PlayerVersusAI"] = 3] = "PlayerVersusAI";
  852. t[t["Playground"] = 4] = "Playground";
  853. t[t["BattleRoyale"] = 5] = "BattleRoyale";
  854. t[t["All"] = 2147483647] = "All"
  855. })(A || (A = {}));
  856.  
  857. function D(t, e, i) {
  858. var n = "";
  859. if (i) {
  860. var r = new Date;
  861. r.setTime(r.getTime() + i * 24 * 60 * 60 * 1e3);
  862. n = "; expires=" + r.toUTCString()
  863. }
  864. document.cookie = t + "=" + (e || "") + n + "; path=/"
  865. }
  866.  
  867. function j(t) {
  868. var e = t + "=";
  869. var i = document.cookie.split(";");
  870. for (var n = 0; n < i.length; n++) {
  871. var r = i[n];
  872. while (r.charAt(0) == " ") r = r.substring(1, r.length);
  873. if (r.indexOf(e) == 0) return r.substring(e.length, r.length)
  874. }
  875. return null
  876. }
  877.  
  878. function H(t) {
  879. document.cookie = t + "=; Max-Age=-99999999;"
  880. }
  881. var W = function () {
  882. function t(t, e, i, n, r) {
  883. var o = this;
  884. this.messageDispatcher = t;
  885. this.eventManager = e;
  886. this.profileManager = i;
  887. this.spectatorInteraction = n;
  888. this.spectatorNotification = r;
  889. this.betChoices = [];
  890. e.onProfileLoaded.subscribe((function () {
  891. o.reloadBet()
  892. }));
  893. t.registerCallback("getBetResultMessage", (function (t) {
  894. o.createBetResultNotification(t)
  895. }));
  896. t.registerCallback("startBetMessage", (function (t) {
  897. o.startBet(t)
  898. }))
  899. }
  900. t.prototype.placeSaltyBet = function (t, e, i) {
  901. (new s).placeSaltyBet(t, e, a.twitchAuth.token, i)
  902. };
  903. t.prototype.startBet = function (t) {
  904. var e = this;
  905. var i = (new Date).getTime() / 1e3 + t.betDuration + 1;
  906. var n = {
  907. title: "Bet",
  908. component: "betting-interaction",
  909. timeout: i,
  910. uniqueKey: t.betId,
  911. props: Object.assign(Object.assign({}, t), {
  912. inStreamCurrency: this.profileManager.getWallet(),
  913. timeout: i,
  914. isLegacy: false,
  915. callback: function (i, n, r, o) {
  916. if (n > e.profileManager.getWallet()) {
  917. o();
  918. return
  919. }(new s).placeBet(t.betServiceUrl, t.betId, i[0].id, n, a.twitchAuth.token, {}).then((function () {
  920. var r = i.map((function (t) {
  921. return {
  922. name: t.description,
  923. icon: t.iconUrl
  924. }
  925. }));
  926. e.betChoices.push({
  927. betId: t.betId,
  928. team: i[0].id,
  929. amount: n,
  930. oddValue: i[0].oddsValue,
  931. players: r
  932. });
  933. D("current-bets", JSON.stringify(e.betChoices), false);
  934. if (t.betType == L.MatchWinner) {
  935. a.spectatorProfile["pendingBetId"] = t.betId;
  936. e.profileManager.updateWallet(e.profileManager.getWallet() - n);
  937. e.reloadBet()
  938. }
  939. }));
  940. r()
  941. }
  942. })
  943. };
  944. this.spectatorInteraction.addPanel(n)
  945. };
  946. t.prototype.createBetResultNotification = function (t) {
  947. var e = this.betChoices.find((function (e) {
  948. return t.betId == e.betId
  949. }));
  950. if (!e) {
  951. return
  952. }
  953. var i = this.betChoices.indexOf(e);
  954. if (i !== -1) {
  955. this.betChoices.splice(i, 1)
  956. }
  957. var n = (new Date).getTime() / 1e3;
  958. if (t.optionId === e.team && t.isWinner) {
  959. var r = {
  960. timeoutStamp: n + a.spectatorProfile.options.autoCloseDelay,
  961. component: "simple-notification",
  962. props: {
  963. text: "You won " + e.amount * e.oddValue + " from your bet on " + e.players[0].name,
  964. icon: e.players[0].icon
  965. }
  966. };
  967. this.spectatorNotification.push(r);
  968. this.profileManager.updateWallet(this.profileManager.getWallet() + e.amount * e.oddValue)
  969. } else if (t.optionId !== e.team && t.isWinner) {
  970. var r = {
  971. timeoutStamp: n + a.spectatorProfile.options.autoCloseDelay,
  972. component: "simple-notification",
  973. props: {
  974. text: "You lost your bet on " + e.players[0].name,
  975. icon: e.players[0].icon
  976. }
  977. };
  978. this.spectatorNotification.push(r)
  979. }
  980. };
  981. t.prototype.reloadBet = function () {
  982. if (j("current-bets")) {
  983. this.betChoices = JSON.parse(j("current-bets") || "[]");
  984. this.betChoices.forEach((function (t) {
  985. if (a.spectatorProfile["pendingBetId"] == t.betId) {
  986. var e = document.createElement("pending-bet");
  987. e.details = {
  988. players: t.players,
  989. reward: t.amount * 3
  990. }
  991. }
  992. }))
  993. } else {
  994. H("current-bets")
  995. }
  996. };
  997. return t
  998. }();
  999. var N = function () {
  1000. function t(t, e, i, n) {
  1001. var r = this;
  1002. this.messageDispatcher = t;
  1003. this.eventManager = e;
  1004. this.profileManager = i;
  1005. this.spectatorNotification = n;
  1006. e.onProfileLoaded.subscribe((function () {}));
  1007. t.registerCallback("notificationMessage", (function (t) {
  1008. r.createNotification(t)
  1009. }))
  1010. }
  1011. t.prototype.createNotification = function (t) {
  1012. var e = (new Date).getTime() / 1e3;
  1013. var i = {
  1014. timeoutStamp: e + a.spectatorProfile.options.autoCloseDelay,
  1015. props: {
  1016. text: t.content
  1017. },
  1018. component: "simple-notification"
  1019. };
  1020. this.spectatorNotification.push(i)
  1021. };
  1022. return t
  1023. }();
  1024. var O = function () {
  1025. function t(t, e, i, n) {
  1026. var r = this;
  1027. this.spectatorInteraction = t;
  1028. this.shop = e;
  1029. this.profileManager = i;
  1030. this.eventManager = n;
  1031. this.loopback = false;
  1032. t.shopCallback = function (t) {
  1033. r.openShop(t)
  1034. };
  1035. n.onWalletUpdated.subscribe((function () {
  1036. r.shop.wallet = a.spectatorProfile.wallet.inStreamCurrency;
  1037. r.shop.premiumCurrency = a.spectatorProfile.wallet.premiumCurrency
  1038. }));
  1039. Twitch.ext.bits.onTransactionComplete((function (t) {
  1040. o.log("onTransactionComplete", t);
  1041. var e = t.product.sku;
  1042. if (!e) {
  1043. e = t["product_data"]["sku"]
  1044. }
  1045. var i = (new s).twitchPurchaseClaim(a.spectatorShopUrl, e, a.twitchAuth.token, t);
  1046. i.then((function (t) {
  1047. o.log("twitchPurchaseClaim:", t);
  1048. r.profileManager.getProfile()
  1049. }))
  1050. }));
  1051. Twitch.ext.bits.onTransactionCancelled((function () {
  1052. o.log("onTransactionCancelled")
  1053. }))
  1054. }
  1055. t.prototype.openShop = function (t) {
  1056. if (t === void 0) {
  1057. t = ""
  1058. }
  1059. return __awaiter(this, void 0, void 0, (function () {
  1060. var e = this;
  1061. return __generator(this, (function (i) {
  1062. this.shop.context = t;
  1063. this.shop.displayName = a.spectatorProfile.displayName;
  1064. this.shop.wallet = a.spectatorProfile.wallet.inStreamCurrency;
  1065. this.shop.premiumCurrency = a.spectatorProfile.wallet.premiumCurrency;
  1066. this.shop.products = [];
  1067. this.shop.addEventListener("hoverEvent", (function () {
  1068. if (Twitch.ext) {
  1069. Twitch.ext.bits.showBitsBalance()
  1070. }
  1071. }));
  1072. this.shop.callback = function (t) {
  1073. return __awaiter(e, void 0, void 0, (function () {
  1074. return __generator(this, (function (e) {
  1075. if (this.loopback) {
  1076. Twitch.ext.bits.setUseLoopback = true
  1077. }
  1078. if (Twitch.ext) {
  1079. Twitch.ext.bits.useBits(t)
  1080. }
  1081. return [2]
  1082. }))
  1083. }))
  1084. };
  1085. if (this.shop.products.length === 0) {
  1086. this.loadProducts()
  1087. }
  1088. this.shop.open();
  1089. return [2]
  1090. }))
  1091. }))
  1092. };
  1093. t.prototype.loadProducts = function () {
  1094. return __awaiter(this, void 0, void 0, (function () {
  1095. var t, e;
  1096. return __generator(this, (function (i) {
  1097. switch (i.label) {
  1098. case 0:
  1099. i.trys.push([0, 2, , 3]);
  1100. return [4, (new s).primaryShopItems(a.spectatorShopUrl, a.twitchAuth.token)];
  1101. case 1:
  1102. t = i.sent();
  1103. this.shop.products = t.data;
  1104. return [3, 3];
  1105. case 2:
  1106. e = i.sent();
  1107. o.error("HTTP ERROR: ", e);
  1108. return [3, 3];
  1109. case 3:
  1110. return [2]
  1111. }
  1112. }))
  1113. }))
  1114. };
  1115. return t
  1116. }();
  1117. var B = function () {
  1118. function t(t, e) {
  1119. var i = this;
  1120. this._messageDispatcher = t;
  1121. this.spectatorInteraction = e;
  1122. this.duration = 0;
  1123. this.startTime = 0;
  1124. this.thankYouDuration = 0;
  1125. t.registerCallback("startVoteMessage", (function (t) {
  1126. i.startVote(t)
  1127. }));
  1128. t.registerCallback("endVoteMessage", (function (t) {
  1129. i.endVote(t)
  1130. }))
  1131. }
  1132. t.prototype.endVote = function (t) {
  1133. var e = {
  1134. title: "Vote",
  1135. component: "vote-interaction",
  1136. uniqueKey: t.voteId,
  1137. props: {}
  1138. };
  1139. this.spectatorInteraction.removePanel(e)
  1140. };
  1141. t.prototype.startVote = function (t) {
  1142. var e = this;
  1143. var i = (new Date).getTime() / 1e3 + 1 + t.voteDuration;
  1144. var n = {
  1145. inverted: m.includes(t.voteType) ? true : false,
  1146. powerIcon: t.voteIcon,
  1147. powerTitle: t.voteTitle,
  1148. targets: t.voteOptions,
  1149. type: f.FavoritePlayer,
  1150. family: t.voteFamily,
  1151. callback: function (i) {
  1152. e.sendVote(t.voteServiceUrl, t.voteId, i)
  1153. },
  1154. cancelLabel: "skip",
  1155. timer: t.voteDuration,
  1156. cancelCallback: function () {},
  1157. timeout: i,
  1158. targetInfo: t.targetInfo
  1159. };
  1160. var r = {
  1161. title: "Vote",
  1162. component: "vote-interaction",
  1163. uniqueKey: t.voteId,
  1164. props: Object.assign({}, n),
  1165. timeout: i
  1166. };
  1167. this.spectatorInteraction.addPanel(r)
  1168. };
  1169. t.prototype.sendVote = function (t, e, i) {
  1170. (new s).sendVote(t, e, i, a.twitchAuth.token)
  1171. };
  1172. return t
  1173. }();
  1174. var J = function () {
  1175. function t() {}
  1176. t.prototype.openShop = function () {
  1177. return this.shop.openShop()
  1178. };
  1179. t.prototype.powerSelection = function () {};
  1180. return t
  1181. }();
  1182. var z = function () {
  1183. function t(t, e, i) {
  1184. var n = this;
  1185. this.messageDispatcher = t;
  1186. this.profileManager = e;
  1187. this.eventManager = i;
  1188. this.state = h.Undefined;
  1189. this.subscriptions = [];
  1190. t.registerCallback("streamerDestroyedMessage", (function (t) {
  1191. n.state = h.Undefined;
  1192. n.emit()
  1193. }));
  1194. t.registerCallback("startMatchMessage", (function (t) {
  1195. n.state = h.Match;
  1196. n.emit()
  1197. }));
  1198. t.registerCallback("enterLobbyMessage", (function (t) {
  1199. n.state = h.Lobby;
  1200. n.emit()
  1201. }));
  1202. i.onProfileLoaded.subscribe((function () {
  1203. n.onProfileLoaded()
  1204. }))
  1205. }
  1206. t.prototype.onProfileLoaded = function () {
  1207. this.state = a.spectatorProfile.streamerGameState;
  1208. this.emit()
  1209. };
  1210. t.prototype.getState = function () {
  1211. return this.state
  1212. };
  1213. t.prototype.subscribe = function (t) {
  1214. this.subscriptions.push(t)
  1215. };
  1216. t.prototype.emit = function () {
  1217. var t = this;
  1218. this.subscriptions.map((function (e) {
  1219. e(t.state)
  1220. }))
  1221. };
  1222. return t
  1223. }();
  1224. var R = function () {
  1225. function t() {
  1226. this.notifElements = new Map
  1227. }
  1228. t.prototype.create = function (t, e, i) {
  1229. var n = document.createElement("spectator-shop-notification");
  1230. n.power = e;
  1231. n.rect = i;
  1232. var r = document.body.appendChild(n);
  1233. if (this.notifElements.has(t)) {
  1234. this.notifElements.get(t).push(r)
  1235. } else {
  1236. this.notifElements.set(t, []);
  1237. this.notifElements.get(t).push(r)
  1238. }
  1239. };
  1240. t.prototype.flush = function (t) {
  1241. if (t) {
  1242. if (this.notifElements.has(t)) {
  1243. this.notifElements.get(t).forEach((function (t) {
  1244. document.body.removeChild(t)
  1245. }));
  1246. this.notifElements.delete(t)
  1247. }
  1248. } else {
  1249. var e = document.body.querySelectorAll("spectator-shop-notification");
  1250. e.forEach((function (t) {
  1251. document.body.removeChild(t)
  1252. }));
  1253. this.notifElements = new Map
  1254. }
  1255. };
  1256. return t
  1257. }();
  1258. var q = t("app_twitch", function () {
  1259. function t(t) {
  1260. e(this, t);
  1261. this.urlManager = new C;
  1262. if (this.urlManager.isLocalEnv()) {
  1263. this.pubsub = new P;
  1264. this.authManager = new k(this.urlManager)
  1265. } else {
  1266. this.pubsub = new I;
  1267. this.authManager = new S
  1268. }
  1269. this.panelManager = new J;
  1270. this.eventManager = new v;
  1271. this.messageDispatcher = new y(this.pubsub);
  1272. this.twitchServiceClient = new b;
  1273. this.notificationManager = new R;
  1274. this.profileManager = new T(this.twitchServiceClient, this.eventManager, this.messageDispatcher, this.spectatorInteraction);
  1275. this.twitchExtension = new M(this.urlManager, this.authManager, this.twitchServiceClient, this.profileManager, this.messageDispatcher);
  1276. this.gameStateManager = new z(this.messageDispatcher, this.profileManager, this.eventManager);
  1277. this.auctionManager = new c(this.eventManager, this.profileManager, this.panelManager, this.gameStateManager, this.notificationManager)
  1278. }
  1279. t.prototype.componentDidLoad = function () {
  1280. var t = this;
  1281. this.panelManager.notification = new N(this.messageDispatcher, this.eventManager, this.profileManager, this.spectatorNotification);
  1282. this.panelManager.gambling = new W(this.messageDispatcher, this.eventManager, this.profileManager, this.spectatorInteraction, this.spectatorNotification);
  1283. this.panelManager.shop = new O(this.spectatorInteraction, this.premiumShop, this.profileManager, this.eventManager);
  1284. this.panelManager.auction = new x(this.messageDispatcher, this.auctionManager, this.spectatorInteraction);
  1285. this.panelManager.vote = new B(this.messageDispatcher, this.spectatorInteraction);
  1286. this.panelManager.spectatorInteraction = this.spectatorInteraction;
  1287. this.panelManager.spectatorNotificationInteraction = this.spectatorNotification;
  1288. this.panelManager.premiumShop = this.premiumShop;
  1289. this.spectatorInteraction.helpCallback = function () {
  1290. t.helpWindow.display = true
  1291. };
  1292. this.profileManager.spectatorInteraction = this.spectatorInteraction
  1293. };
  1294. t.prototype.render = function () {
  1295. var t = this;
  1296. return i("div", null, i("help-window", {
  1297. ref: function (e) {
  1298. t.helpWindow = e
  1299. }
  1300. }), i("premium-shop", {
  1301. ref: function (e) {
  1302. t.premiumShop = e
  1303. }
  1304. }), i("spectator-notification", {
  1305. ref: function (e) {
  1306. t.spectatorNotification = e
  1307. }
  1308. }), i("div", {
  1309. class: "position"
  1310. }, i("spectator-interaction", {
  1311. ref: function (e) {
  1312. t.spectatorInteraction = e
  1313. }
  1314. })), i("draggable-box", null, i("div", {
  1315. id: "power-card-container"
  1316. })))
  1317. };
  1318. Object.defineProperty(t, "style", {
  1319. get: function () {
  1320. return "\@-webkit-keyframes pulse{0%{-webkit-transform:scale(1);transform:scale(1)}50%{-webkit-transform:scale(1.02);transform:scale(1.02)}to{-webkit-transform:scale(1);transform:scale(1)}}\@keyframes pulse{0%{-webkit-transform:scale(1);transform:scale(1)}50%{-webkit-transform:scale(1.02);transform:scale(1.02)}to{-webkit-transform:scale(1);transform:scale(1)}}\@-webkit-keyframes shake{0%,to{-webkit-transform:translateZ(0);transform:translateZ(0)}10%,30%,50%,70%,90%{-webkit-transform:translate3d(-10px,0,0);transform:translate3d(-10px,0,0)}20%,40%,60%,80%{-webkit-transform:translate3d(10px,0,0);transform:translate3d(10px,0,0)}}\@keyframes shake{0%,to{-webkit-transform:translateZ(0);transform:translateZ(0)}10%,30%,50%,70%,90%{-webkit-transform:translate3d(-10px,0,0);transform:translate3d(-10px,0,0)}20%,40%,60%,80%{-webkit-transform:translate3d(10px,0,0);transform:translate3d(10px,0,0)}}.shake{-webkit-animation-name:shake;animation-name:shake}\@-webkit-keyframes bounceIn{0%,20%,40%,60%,80%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}20%{-webkit-transform:scale3d(1.1,1.1,1.1);transform:scale3d(1.1,1.1,1.1)}40%{-webkit-transform:scale3d(.9,.9,.9);transform:scale3d(.9,.9,.9)}60%{opacity:1;-webkit-transform:scale3d(1.03,1.03,1.03);transform:scale3d(1.03,1.03,1.03)}80%{-webkit-transform:scale3d(.97,.97,.97);transform:scale3d(.97,.97,.97)}to{opacity:1;-webkit-transform:scaleX(1);transform:scaleX(1)}}\@keyframes bounceIn{0%,20%,40%,60%,80%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}20%{-webkit-transform:scale3d(1.1,1.1,1.1);transform:scale3d(1.1,1.1,1.1)}40%{-webkit-transform:scale3d(.9,.9,.9);transform:scale3d(.9,.9,.9)}60%{opacity:1;-webkit-transform:scale3d(1.03,1.03,1.03);transform:scale3d(1.03,1.03,1.03)}80%{-webkit-transform:scale3d(.97,.97,.97);transform:scale3d(.97,.97,.97)}to{opacity:1;-webkit-transform:scaleX(1);transform:scaleX(1)}}.bounceIn{-webkit-animation-duration:.75s;animation-duration:.75s;-webkit-animation-name:bounceIn;animation-name:bounceIn}\@font-face{font-family:industry;font-style:normal;font-weight:400;src:url(assets/fonts/industry-medium-italic-webfont.woff2) format(\"woff2\"),url(assets/fonts/industry-medium-italic-webfont.woff) format(\"woff\")}\@font-face{font-family:industry_ultra;font-style:normal;font-weight:400;src:url(assets/fonts/industry-ultra-italic-webfont.woff2) format(\"woff2\"),url(assets/fonts/industry-ultra-italic-webfont.woff) format(\"woff\")}\@font-face{font-family:industry_medium;font-style:normal;font-weight:400;src:url(\"assets/fonts/Industry Medium Italic.otf\") format(\"opentype\")}\@font-face{font-family:rift;font-style:normal;font-weight:400;src:url(assets/fonts/rift-soft-bold-italic.otf) format(\"opentype\")}a,abbr,acronym,address,applet,article,aside,audio,b,big,blockquote,body,canvas,caption,center,cite,code,dd,del,details,dfn,div,dl,dt,em,embed,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,header,hgroup,html,i,iframe,img,ins,kbd,label,legend,li,mark,menu,nav,object,ol,output,p,pre,q,ruby,s,samp,section,small,span,strike,strong,sub,summary,sup,table,tbody,td,tfoot,th,thead,time,tr,tt,u,ul,var,video{border:0;font:inherit;font-size:100%;margin:0;padding:0;vertical-align:baseline}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}body{font-family:industry_ultra;line-height:1}ol,ul{list-style:none}div{margin:0}\@-webkit-keyframes titlebg{0%{background-position-x:0}to{background-position-x:200%}}\@keyframes titlebg{0%{background-position-x:0}to{background-position-x:200%}}app-twitch{font-family:rift}\@media (min-height:601px){.position{top:5rem}}\@media (min-height:100px) and (max-height:600px){.position{top:0}}.position{position:absolute;right:0;-webkit-transition:all 1s;transition:all 1s}#power-card-container{display:-ms-inline-flexbox;display:inline-flex}"
  1321. },
  1322. enumerable: true,
  1323. configurable: true
  1324. });
  1325. return t
  1326. }());
  1327. var V = t("connection_required_window", function () {
  1328. function t(t) {
  1329. e(this, t)
  1330. }
  1331. t.prototype.openLink = function () {
  1332. var t = open("steam://store/544920");
  1333. setTimeout((function () {
  1334. if (t && t.window !== null) {
  1335. open("https://store.steampowered.com/app/544920/Darwin_Project/", "_black")
  1336. }
  1337. t && t.close()
  1338. }), 1e3)
  1339. };
  1340. t.prototype.render = function () {
  1341. var t = this;
  1342. return i("div", {
  1343. class: "connection-required-window-container"
  1344. }, i("p", {
  1345. class: "content"
  1346. }, "Have Darwin Project OPEN to particate in the Auction"), i("p", null, i("ul", {
  1347. class: "list"
  1348. }, i("li", null, "- Bid to play in exclusive matches."))), i("p", {
  1349. class: "link"
  1350. }, i("a", {
  1351. onClick: function () {
  1352. t.openLink()
  1353. }
  1354. }, "download, install & run darwin project", i("br", null), " today to get started!")))
  1355. };
  1356. Object.defineProperty(t, "style", {
  1357. get: function () {
  1358. return "\@-webkit-keyframes pulse{0%{-webkit-transform:scale(1);transform:scale(1)}50%{-webkit-transform:scale(1.02);transform:scale(1.02)}to{-webkit-transform:scale(1);transform:scale(1)}}\@keyframes pulse{0%{-webkit-transform:scale(1);transform:scale(1)}50%{-webkit-transform:scale(1.02);transform:scale(1.02)}to{-webkit-transform:scale(1);transform:scale(1)}}\@-webkit-keyframes shake{0%,to{-webkit-transform:translateZ(0);transform:translateZ(0)}10%,30%,50%,70%,90%{-webkit-transform:translate3d(-10px,0,0);transform:translate3d(-10px,0,0)}20%,40%,60%,80%{-webkit-transform:translate3d(10px,0,0);transform:translate3d(10px,0,0)}}\@keyframes shake{0%,to{-webkit-transform:translateZ(0);transform:translateZ(0)}10%,30%,50%,70%,90%{-webkit-transform:translate3d(-10px,0,0);transform:translate3d(-10px,0,0)}20%,40%,60%,80%{-webkit-transform:translate3d(10px,0,0);transform:translate3d(10px,0,0)}}.shake{-webkit-animation-name:shake;animation-name:shake}\@-webkit-keyframes bounceIn{0%,20%,40%,60%,80%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}20%{-webkit-transform:scale3d(1.1,1.1,1.1);transform:scale3d(1.1,1.1,1.1)}40%{-webkit-transform:scale3d(.9,.9,.9);transform:scale3d(.9,.9,.9)}60%{opacity:1;-webkit-transform:scale3d(1.03,1.03,1.03);transform:scale3d(1.03,1.03,1.03)}80%{-webkit-transform:scale3d(.97,.97,.97);transform:scale3d(.97,.97,.97)}to{opacity:1;-webkit-transform:scaleX(1);transform:scaleX(1)}}\@keyframes bounceIn{0%,20%,40%,60%,80%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}20%{-webkit-transform:scale3d(1.1,1.1,1.1);transform:scale3d(1.1,1.1,1.1)}40%{-webkit-transform:scale3d(.9,.9,.9);transform:scale3d(.9,.9,.9)}60%{opacity:1;-webkit-transform:scale3d(1.03,1.03,1.03);transform:scale3d(1.03,1.03,1.03)}80%{-webkit-transform:scale3d(.97,.97,.97);transform:scale3d(.97,.97,.97)}to{opacity:1;-webkit-transform:scaleX(1);transform:scaleX(1)}}.bounceIn{-webkit-animation-duration:.75s;animation-duration:.75s;-webkit-animation-name:bounceIn;animation-name:bounceIn}\@font-face{font-family:industry;font-style:normal;font-weight:400;src:url(assets/fonts/industry-medium-italic-webfont.woff2) format(\"woff2\"),url(assets/fonts/industry-medium-italic-webfont.woff) format(\"woff\")}\@font-face{font-family:industry_ultra;font-style:normal;font-weight:400;src:url(assets/fonts/industry-ultra-italic-webfont.woff2) format(\"woff2\"),url(assets/fonts/industry-ultra-italic-webfont.woff) format(\"woff\")}\@font-face{font-family:industry_medium;font-style:normal;font-weight:400;src:url(\"assets/fonts/Industry Medium Italic.otf\") format(\"opentype\")}\@font-face{font-family:rift;font-style:normal;font-weight:400;src:url(assets/fonts/rift-soft-bold-italic.otf) format(\"opentype\")}a,abbr,acronym,address,applet,article,aside,audio,b,big,blockquote,body,canvas,caption,center,cite,code,dd,del,details,dfn,div,dl,dt,em,embed,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,header,hgroup,html,i,iframe,img,ins,kbd,label,legend,li,mark,menu,nav,object,ol,output,p,pre,q,ruby,s,samp,section,small,span,strike,strong,sub,summary,sup,table,tbody,td,tfoot,th,thead,time,tr,tt,u,ul,var,video{border:0;font:inherit;font-size:100%;margin:0;padding:0;vertical-align:baseline}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}body{font-family:industry_ultra;line-height:1}ol,ul{list-style:none}div{margin:0}\@-webkit-keyframes titlebg{0%{background-position-x:0}to{background-position-x:200%}}\@keyframes titlebg{0%{background-position-x:0}to{background-position-x:200%}}connection-required-window .connection-required-window-container{font-family:rift;font-size:25px;color:#fff;padding:20px}connection-required-window p{padding:10px 0}connection-required-window a{color:#fff;text-decoration:none;-webkit-transition:.2s;transition:.2s}connection-required-window a:hover{color:#fd9300}"
  1359. },
  1360. enumerable: true,
  1361. configurable: true
  1362. });
  1363. return t
  1364. }());
  1365. var Y = t("draggable_box", function () {
  1366. function t(t) {
  1367. e(this, t);
  1368. this.pos = {
  1369. x: 0,
  1370. y: 0,
  1371. dx: 0,
  1372. dy: 0
  1373. }
  1374. }
  1375. t.prototype.componentDidLoad = function () {
  1376. this.container.style.top = window.innerHeight - (this.container.offsetHeight + 150) + "px";
  1377. this.container.style.left = window.innerWidth - (this.container.offsetWidth + 150) + "px";
  1378. this.initDrag()
  1379. };
  1380. t.prototype.elementDrag = function (t) {
  1381. t = t || window.event;
  1382. t.preventDefault();
  1383. this.pos.x = this.pos.dx - t.clientX;
  1384. this.pos.y = this.pos.dy - t.clientY;
  1385. this.pos.dx = t.clientX;
  1386. this.pos.dy = t.clientY;
  1387. this.container.style.top = this.container.offsetTop - this.pos.y + "px";
  1388. this.container.style.left = this.container.offsetLeft - this.pos.x + "px"
  1389. };
  1390. t.prototype.initDrag = function () {
  1391. var t = this;
  1392. if (this.dragButton) {
  1393. this.dragButton.onmousedown = function (e) {
  1394. t.dragMouseDown(e)
  1395. }
  1396. } else {
  1397. this.container.onmousedown = function (e) {
  1398. t.dragMouseDown(e)
  1399. }
  1400. }
  1401. };
  1402. t.prototype.closeDragElement = function () {
  1403. document.onmouseup = null;
  1404. document.onmousemove = null
  1405. };
  1406. t.prototype.dragMouseDown = function (t) {
  1407. var e = this;
  1408. t = t || window.event;
  1409. t.preventDefault();
  1410. this.pos.dx = t.clientX;
  1411. this.pos.dy = t.clientY;
  1412. document.onmouseup = function () {
  1413. e.closeDragElement()
  1414. };
  1415. document.onmousemove = function (t) {
  1416. e.elementDrag(t)
  1417. }
  1418. };
  1419. t.prototype.render = function () {
  1420. var t = this;
  1421. return i("div", {
  1422. class: "draggable-box-container",
  1423. ref: function (e) {
  1424. t.container = e
  1425. }
  1426. }, i("slot", null), i("button", {
  1427. class: "draggable-box-button",
  1428. ref: function (e) {
  1429. t.dragButton = e
  1430. }
  1431. }, "Drag"))
  1432. };
  1433. Object.defineProperty(t, "style", {
  1434. get: function () {
  1435. return "\@-webkit-keyframes pulse{0%{-webkit-transform:scale(1);transform:scale(1)}50%{-webkit-transform:scale(1.02);transform:scale(1.02)}to{-webkit-transform:scale(1);transform:scale(1)}}\@keyframes pulse{0%{-webkit-transform:scale(1);transform:scale(1)}50%{-webkit-transform:scale(1.02);transform:scale(1.02)}to{-webkit-transform:scale(1);transform:scale(1)}}\@-webkit-keyframes shake{0%,to{-webkit-transform:translateZ(0);transform:translateZ(0)}10%,30%,50%,70%,90%{-webkit-transform:translate3d(-10px,0,0);transform:translate3d(-10px,0,0)}20%,40%,60%,80%{-webkit-transform:translate3d(10px,0,0);transform:translate3d(10px,0,0)}}\@keyframes shake{0%,to{-webkit-transform:translateZ(0);transform:translateZ(0)}10%,30%,50%,70%,90%{-webkit-transform:translate3d(-10px,0,0);transform:translate3d(-10px,0,0)}20%,40%,60%,80%{-webkit-transform:translate3d(10px,0,0);transform:translate3d(10px,0,0)}}.shake{-webkit-animation-name:shake;animation-name:shake}\@-webkit-keyframes bounceIn{0%,20%,40%,60%,80%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}20%{-webkit-transform:scale3d(1.1,1.1,1.1);transform:scale3d(1.1,1.1,1.1)}40%{-webkit-transform:scale3d(.9,.9,.9);transform:scale3d(.9,.9,.9)}60%{opacity:1;-webkit-transform:scale3d(1.03,1.03,1.03);transform:scale3d(1.03,1.03,1.03)}80%{-webkit-transform:scale3d(.97,.97,.97);transform:scale3d(.97,.97,.97)}to{opacity:1;-webkit-transform:scaleX(1);transform:scaleX(1)}}\@keyframes bounceIn{0%,20%,40%,60%,80%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}20%{-webkit-transform:scale3d(1.1,1.1,1.1);transform:scale3d(1.1,1.1,1.1)}40%{-webkit-transform:scale3d(.9,.9,.9);transform:scale3d(.9,.9,.9)}60%{opacity:1;-webkit-transform:scale3d(1.03,1.03,1.03);transform:scale3d(1.03,1.03,1.03)}80%{-webkit-transform:scale3d(.97,.97,.97);transform:scale3d(.97,.97,.97)}to{opacity:1;-webkit-transform:scaleX(1);transform:scaleX(1)}}.bounceIn{-webkit-animation-duration:.75s;animation-duration:.75s;-webkit-animation-name:bounceIn;animation-name:bounceIn}\@font-face{font-family:industry;font-style:normal;font-weight:400;src:url(assets/fonts/industry-medium-italic-webfont.woff2) format(\"woff2\"),url(assets/fonts/industry-medium-italic-webfont.woff) format(\"woff\")}\@font-face{font-family:industry_ultra;font-style:normal;font-weight:400;src:url(assets/fonts/industry-ultra-italic-webfont.woff2) format(\"woff2\"),url(assets/fonts/industry-ultra-italic-webfont.woff) format(\"woff\")}\@font-face{font-family:industry_medium;font-style:normal;font-weight:400;src:url(\"assets/fonts/Industry Medium Italic.otf\") format(\"opentype\")}\@font-face{font-family:rift;font-style:normal;font-weight:400;src:url(assets/fonts/rift-soft-bold-italic.otf) format(\"opentype\")}a,abbr,acronym,address,applet,article,aside,audio,b,big,blockquote,body,canvas,caption,center,cite,code,dd,del,details,dfn,div,dl,dt,em,embed,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,header,hgroup,html,i,iframe,img,ins,kbd,label,legend,li,mark,menu,nav,object,ol,output,p,pre,q,ruby,s,samp,section,small,span,strike,strong,sub,summary,sup,table,tbody,td,tfoot,th,thead,time,tr,tt,u,ul,var,video{border:0;font:inherit;font-size:100%;margin:0;padding:0;vertical-align:baseline}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}body{font-family:industry_ultra;line-height:1}ol,ul{list-style:none}div{margin:0}\@-webkit-keyframes titlebg{0%{background-position-x:0}to{background-position-x:200%}}\@keyframes titlebg{0%{background-position-x:0}to{background-position-x:200%}}draggable-box .draggable-box-container{position:absolute;text-align:center;background-color:rgba(0,0,0,.2);padding:10px 0 0 0;border-radius:10px}draggable-box .draggable-box-button{width:100%;cursor:move;border-radius:0 0 10px 10px;border:none}"
  1436. },
  1437. enumerable: true,
  1438. configurable: true
  1439. });
  1440. return t
  1441. }());
  1442. var K = t("help_window", function () {
  1443. function t(t) {
  1444. e(this, t);
  1445. this.display = false
  1446. }
  1447. t.prototype.closeClickHandler = function () {
  1448. this.display = false
  1449. };
  1450. t.prototype.render = function () {
  1451. var t = this;
  1452. if (!this.display) {
  1453. return
  1454. }
  1455. return [i("div", {
  1456. class: "help-window-container"
  1457. }, i("div", {
  1458. class: "help-window-toolbar"
  1459. }, i("div", {
  1460. class: "help-window-toolbar-left"
  1461. }, i("div", {
  1462. class: "help-window-toolbar-text"
  1463. })), i("div", {
  1464. class: "help-window-toolbar-right"
  1465. }, i("div", {
  1466. class: "help-window-button",
  1467. onClick: function () {
  1468. t.closeClickHandler()
  1469. }
  1470. }, i("img", {
  1471. class: "help-window-icon hover-icon close-icon",
  1472. src: "assets/images/shop.svg"
  1473. })))), i("div", {
  1474. class: "help-window-title"
  1475. }, "Join The Auction"), i("div", {
  1476. class: "help-window-content"
  1477. }, i("connection-required-window", null))), i("div", {
  1478. class: "light-box",
  1479. onClick: function () {
  1480. t.closeClickHandler()
  1481. }
  1482. })]
  1483. };
  1484. Object.defineProperty(t, "style", {
  1485. get: function () {
  1486. return "\@-webkit-keyframes pulse{0%{-webkit-transform:scale(1);transform:scale(1)}50%{-webkit-transform:scale(1.02);transform:scale(1.02)}to{-webkit-transform:scale(1);transform:scale(1)}}\@keyframes pulse{0%{-webkit-transform:scale(1);transform:scale(1)}50%{-webkit-transform:scale(1.02);transform:scale(1.02)}to{-webkit-transform:scale(1);transform:scale(1)}}\@-webkit-keyframes shake{0%,to{-webkit-transform:translateZ(0);transform:translateZ(0)}10%,30%,50%,70%,90%{-webkit-transform:translate3d(-10px,0,0);transform:translate3d(-10px,0,0)}20%,40%,60%,80%{-webkit-transform:translate3d(10px,0,0);transform:translate3d(10px,0,0)}}\@keyframes shake{0%,to{-webkit-transform:translateZ(0);transform:translateZ(0)}10%,30%,50%,70%,90%{-webkit-transform:translate3d(-10px,0,0);transform:translate3d(-10px,0,0)}20%,40%,60%,80%{-webkit-transform:translate3d(10px,0,0);transform:translate3d(10px,0,0)}}.shake{-webkit-animation-name:shake;animation-name:shake}\@-webkit-keyframes bounceIn{0%,20%,40%,60%,80%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}20%{-webkit-transform:scale3d(1.1,1.1,1.1);transform:scale3d(1.1,1.1,1.1)}40%{-webkit-transform:scale3d(.9,.9,.9);transform:scale3d(.9,.9,.9)}60%{opacity:1;-webkit-transform:scale3d(1.03,1.03,1.03);transform:scale3d(1.03,1.03,1.03)}80%{-webkit-transform:scale3d(.97,.97,.97);transform:scale3d(.97,.97,.97)}to{opacity:1;-webkit-transform:scaleX(1);transform:scaleX(1)}}\@keyframes bounceIn{0%,20%,40%,60%,80%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}20%{-webkit-transform:scale3d(1.1,1.1,1.1);transform:scale3d(1.1,1.1,1.1)}40%{-webkit-transform:scale3d(.9,.9,.9);transform:scale3d(.9,.9,.9)}60%{opacity:1;-webkit-transform:scale3d(1.03,1.03,1.03);transform:scale3d(1.03,1.03,1.03)}80%{-webkit-transform:scale3d(.97,.97,.97);transform:scale3d(.97,.97,.97)}to{opacity:1;-webkit-transform:scaleX(1);transform:scaleX(1)}}.bounceIn{-webkit-animation-duration:.75s;animation-duration:.75s;-webkit-animation-name:bounceIn;animation-name:bounceIn}\@font-face{font-family:industry;font-style:normal;font-weight:400;src:url(assets/fonts/industry-medium-italic-webfont.woff2) format(\"woff2\"),url(assets/fonts/industry-medium-italic-webfont.woff) format(\"woff\")}\@font-face{font-family:industry_ultra;font-style:normal;font-weight:400;src:url(assets/fonts/industry-ultra-italic-webfont.woff2) format(\"woff2\"),url(assets/fonts/industry-ultra-italic-webfont.woff) format(\"woff\")}\@font-face{font-family:industry_medium;font-style:normal;font-weight:400;src:url(\"assets/fonts/Industry Medium Italic.otf\") format(\"opentype\")}\@font-face{font-family:rift;font-style:normal;font-weight:400;src:url(assets/fonts/rift-soft-bold-italic.otf) format(\"opentype\")}a,abbr,acronym,address,applet,article,aside,audio,b,big,blockquote,body,canvas,caption,center,cite,code,dd,del,details,dfn,div,dl,dt,em,embed,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,header,hgroup,html,i,iframe,img,ins,kbd,label,legend,li,mark,menu,nav,object,ol,output,p,pre,q,ruby,s,samp,section,small,span,strike,strong,sub,summary,sup,table,tbody,td,tfoot,th,thead,time,tr,tt,u,ul,var,video{border:0;font:inherit;font-size:100%;margin:0;padding:0;vertical-align:baseline}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}body{font-family:industry_ultra;line-height:1}ol,ul{list-style:none}div{margin:0}\@-webkit-keyframes titlebg{0%{background-position-x:0}to{background-position-x:200%}}\@keyframes titlebg{0%{background-position-x:0}to{background-position-x:200%}}help-window{text-align:center}help-window .light-box{background:rgba(0,0,0,.4);cursor:pointer;height:100%;left:0;position:fixed;top:0;width:100%;z-index:3}help-window .content-img{width:100%}help-window .help-window-container{left:50%;max-width:90%;position:absolute;top:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);z-index:10}help-window .help-window-title{background:-webkit-gradient(linear,left top,right top,from(#a531f6),color-stop(#3b1b9b),to(#a531f6));background:linear-gradient(90deg,#a531f6,#3b1b9b,#a531f6);background-size:200% 100%;color:#fff;font-size:28px;padding:5px;font-family:rift;text-transform:uppercase;-webkit-animation:titlebg 5s linear infinite;animation:titlebg 5s linear infinite;margin-top:-1px;padding:10px}help-window .help-window-toolbar{background:-webkit-gradient(linear,right top,left top,from(rgba(165,49,246,.9)),color-stop(50%,rgba(59,27,155,.9))),#000;background:linear-gradient(270deg,rgba(165,49,246,.9),rgba(59,27,155,.9) 50%),#000;border-radius:5px 5px 0 0;color:#fff;display:-ms-flexbox;display:flex;font-family:rift;padding:5px 0}help-window .help-window-toolbar-right{display:-ms-inline-flexbox;display:inline-flex;margin-left:auto}help-window .help-window-toolbar-right>*{margin:0 2px}help-window .help-window-toolbar-left{display:-ms-inline-flexbox;display:inline-flex}help-window .help-window-toolbar-left>*{margin:0 10px}help-window .hover-icon{cursor:pointer;-webkit-filter:opacity(50%);filter:opacity(50%)}help-window .hover-icon:hover{-webkit-filter:opacity(100%);filter:opacity(100%)}help-window .close-icon{-webkit-transform:rotate(45deg);transform:rotate(45deg)}help-window .help-window-icon{height:15px;width:15px}help-window .help-window-content{background:rgba(59,27,155,.9);border-radius:0 0 5px 5px}"
  1487. },
  1488. enumerable: true,
  1489. configurable: true
  1490. });
  1491. return t
  1492. }());
  1493. var X = t("premium_shop", function () {
  1494. function t(t) {
  1495. e(this, t);
  1496. this.premiumCurrency = 0;
  1497. this.wallet = 0;
  1498. this.displayName = "";
  1499. this.products = [];
  1500. this.context = "";
  1501. this.display = false;
  1502. this.hoverEvent = n(this, "hoverEvent", 7)
  1503. }
  1504. t.prototype.hoverHandler = function (t) {
  1505. this.hoverEvent.emit(t)
  1506. };
  1507. t.prototype.open = function (t) {
  1508. if (t === void 0) {
  1509. t = ""
  1510. }
  1511. return __awaiter(this, void 0, void 0, (function () {
  1512. return __generator(this, (function (t) {
  1513. this.confirmProduct = null;
  1514. this.display = true;
  1515. this.context = this.context;
  1516. if (this.products.length = 0) {
  1517. if (this.loadProducts) {
  1518. this.loadProducts()
  1519. }
  1520. }
  1521. return [2]
  1522. }))
  1523. }))
  1524. };
  1525. t.prototype.closeClickHandler = function () {
  1526. this.display = false
  1527. };
  1528. t.prototype.clickHandler = function (t) {
  1529. if (this.callback && typeof this.callback === "function") {
  1530. this.callback(t.productId)
  1531. }
  1532. };
  1533. t.prototype.confirmView = function (t) {
  1534. this.confirmProduct = t
  1535. };
  1536. t.prototype.renderInstream = function () {
  1537. return [i("div", null, this.wallet), i("div", null, i("img", {
  1538. class: "premium-shop-icon",
  1539. src: "assets/images/coin.svg"
  1540. }))]
  1541. };
  1542. t.prototype.renderMoreCoins = function () {
  1543. return [i("div", {
  1544. class: "premium-shop-title"
  1545. }, "You don't have enough coins"), i("div", {
  1546. class: "premium-shop-content"
  1547. }, i("div", {
  1548. class: "premium-shop-more-coins"
  1549. }, i("p", null, "Scav coins allow you to interact"), i("p", null, "directly with Darwin Project"), i("p", null, "scav coins are linked to your account and can be used on any channel using", i("br", null), "the darwin project extension"), i("div", null, i("button", {
  1550. class: "shop-button"
  1551. }, "Get Bits"), i("button", {
  1552. class: "shop-button"
  1553. }, "back"))))]
  1554. };
  1555. t.prototype.renderConfirm = function () {
  1556. var t = this;
  1557. if (!this.confirmProduct) {
  1558. return
  1559. }
  1560. return [i("div", {
  1561. class: "premium-shop-title"
  1562. }, "Confirm Exchange"), i("div", {
  1563. class: "premium-shop-content"
  1564. }, i("div", {
  1565. class: "premium-shop-confirm-container"
  1566. }, i("div", {
  1567. class: "premium-shop-confirm-product"
  1568. }, i("div", {
  1569. class: "premium-shop-product hover"
  1570. }, i("p", {
  1571. class: "premium-shop-product-description"
  1572. }, this.confirmProduct.description), i("div", {
  1573. class: "premium-shop-product-value-container"
  1574. }, i("p", {
  1575. class: "premium-shop-product-value"
  1576. }, this.confirmProduct.premiumCurrencyAmount), i("img", {
  1577. class: "premium-shop-icon",
  1578. src: "assets/images/scav.svg",
  1579. alt: "$scav"
  1580. })), i("div", {
  1581. class: "premium-shop-image-container"
  1582. }, i("img", {
  1583. class: "premium-shop-image",
  1584. src: this.confirmProduct.iconUrl || "assets/images/gem.svg"
  1585. })), i("div", {
  1586. class: "premium-shop-product-price-button"
  1587. }, i("img", {
  1588. class: "bit-icon",
  1589. src: "assets/images/bit.png",
  1590. alt: "bits"
  1591. }), i("span", {
  1592. class: "premium-shop-product-price"
  1593. }, this.confirmProduct.price)))), i("div", {
  1594. class: "confirm-text-container"
  1595. }, i("p", {
  1596. class: "confirm-text"
  1597. }, "Scav coins allow you to interact"), i("p", {
  1598. class: "confirm-text"
  1599. }, "directly with Darwin Project"), i("ul", null, i("li", null, i("p", null, "scav coins are linked to your account and can be used on any channel using", i("br", null), "the darwin project extension"))), i("div", null, i("button", {
  1600. class: "shop-button",
  1601. onClick: function () {
  1602. t.clickHandler(t.confirmProduct)
  1603. }
  1604. }, "Yes"), i("button", {
  1605. class: "shop-button",
  1606. onClick: function () {
  1607. t.confirmProduct = null
  1608. }
  1609. }, "no")))))]
  1610. };
  1611. t.prototype.renderShopList = function () {
  1612. var t = this;
  1613. if (this.confirmProduct) {
  1614. return
  1615. }
  1616. return [i("div", {
  1617. class: "premium-shop-title"
  1618. }, "exchange for scav coins"), i("div", {
  1619. class: "premium-shop-content"
  1620. }, i("div", {
  1621. class: "premium-shop-product-list"
  1622. }, this.products.map((function (e) {
  1623. return i("div", {
  1624. class: "premium-shop-product",
  1625. onMouseOver: function () {
  1626. t.hoverHandler(e)
  1627. },
  1628. onClick: function () {
  1629. t.confirmView(e)
  1630. }
  1631. }, i("p", {
  1632. class: "premium-shop-product-description"
  1633. }, e.description), i("div", {
  1634. class: "premium-shop-product-value-container"
  1635. }, i("p", {
  1636. class: "premium-shop-product-value"
  1637. }, e.premiumCurrencyAmount), i("img", {
  1638. class: "premium-shop-icon",
  1639. src: "assets/images/scav.svg",
  1640. alt: "$scav"
  1641. })), i("div", {
  1642. class: "premium-shop-image-container"
  1643. }, i("img", {
  1644. class: "premium-shop-image",
  1645. src: e.iconUrl || "assets/images/gem.svg"
  1646. })), i("div", {
  1647. class: "premium-shop-product-price-button"
  1648. }, i("img", {
  1649. class: "bit-icon",
  1650. src: "assets/images/bit.png",
  1651. alt: "bits"
  1652. }), i("span", {
  1653. class: "premium-shop-product-price"
  1654. }, e.price)))
  1655. }))))]
  1656. };
  1657. t.prototype.render = function () {
  1658. var t = this;
  1659. if (!this.display) {
  1660. return
  1661. }
  1662. return [i("div", {
  1663. class: "premium-shop-container"
  1664. }, i("div", {
  1665. class: "premium-shop-toolbar"
  1666. }, i("div", {
  1667. class: "premium-shop-toolbar-left"
  1668. }, i("p", {
  1669. class: "premium-shop-welcome-text"
  1670. }, "Welcome ", this.displayName)), i("div", {
  1671. class: "premium-shop-toolbar-right"
  1672. }, i("div", null, this.premiumCurrency), i("div", null, i("img", {
  1673. class: "premium-shop-icon",
  1674. src: "assets/images/scav.svg"
  1675. })), i("div", {
  1676. class: "premium-shop-button",
  1677. onClick: function () {
  1678. t.closeClickHandler()
  1679. }
  1680. }, i("img", {
  1681. class: "premium-shop-icon hover-icon close-icon",
  1682. src: "assets/images/shop.svg"
  1683. })))), this.renderShopList(), this.renderConfirm()), i("div", {
  1684. class: "light-box",
  1685. onClick: function () {
  1686. t.closeClickHandler()
  1687. }
  1688. })]
  1689. };
  1690. Object.defineProperty(t, "style", {
  1691. get: function () {
  1692. return "\@-webkit-keyframes pulse{0%{-webkit-transform:scale(1);transform:scale(1)}50%{-webkit-transform:scale(1.02);transform:scale(1.02)}to{-webkit-transform:scale(1);transform:scale(1)}}\@keyframes pulse{0%{-webkit-transform:scale(1);transform:scale(1)}50%{-webkit-transform:scale(1.02);transform:scale(1.02)}to{-webkit-transform:scale(1);transform:scale(1)}}\@-webkit-keyframes shake{0%,to{-webkit-transform:translateZ(0);transform:translateZ(0)}10%,30%,50%,70%,90%{-webkit-transform:translate3d(-10px,0,0);transform:translate3d(-10px,0,0)}20%,40%,60%,80%{-webkit-transform:translate3d(10px,0,0);transform:translate3d(10px,0,0)}}\@keyframes shake{0%,to{-webkit-transform:translateZ(0);transform:translateZ(0)}10%,30%,50%,70%,90%{-webkit-transform:translate3d(-10px,0,0);transform:translate3d(-10px,0,0)}20%,40%,60%,80%{-webkit-transform:translate3d(10px,0,0);transform:translate3d(10px,0,0)}}.shake{-webkit-animation-name:shake;animation-name:shake}\@-webkit-keyframes bounceIn{0%,20%,40%,60%,80%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}20%{-webkit-transform:scale3d(1.1,1.1,1.1);transform:scale3d(1.1,1.1,1.1)}40%{-webkit-transform:scale3d(.9,.9,.9);transform:scale3d(.9,.9,.9)}60%{opacity:1;-webkit-transform:scale3d(1.03,1.03,1.03);transform:scale3d(1.03,1.03,1.03)}80%{-webkit-transform:scale3d(.97,.97,.97);transform:scale3d(.97,.97,.97)}to{opacity:1;-webkit-transform:scaleX(1);transform:scaleX(1)}}\@keyframes bounceIn{0%,20%,40%,60%,80%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}20%{-webkit-transform:scale3d(1.1,1.1,1.1);transform:scale3d(1.1,1.1,1.1)}40%{-webkit-transform:scale3d(.9,.9,.9);transform:scale3d(.9,.9,.9)}60%{opacity:1;-webkit-transform:scale3d(1.03,1.03,1.03);transform:scale3d(1.03,1.03,1.03)}80%{-webkit-transform:scale3d(.97,.97,.97);transform:scale3d(.97,.97,.97)}to{opacity:1;-webkit-transform:scaleX(1);transform:scaleX(1)}}.bounceIn{-webkit-animation-duration:.75s;animation-duration:.75s;-webkit-animation-name:bounceIn;animation-name:bounceIn}\@font-face{font-family:industry;font-style:normal;font-weight:400;src:url(assets/fonts/industry-medium-italic-webfont.woff2) format(\"woff2\"),url(assets/fonts/industry-medium-italic-webfont.woff) format(\"woff\")}\@font-face{font-family:industry_ultra;font-style:normal;font-weight:400;src:url(assets/fonts/industry-ultra-italic-webfont.woff2) format(\"woff2\"),url(assets/fonts/industry-ultra-italic-webfont.woff) format(\"woff\")}\@font-face{font-family:industry_medium;font-style:normal;font-weight:400;src:url(\"assets/fonts/Industry Medium Italic.otf\") format(\"opentype\")}\@font-face{font-family:rift;font-style:normal;font-weight:400;src:url(assets/fonts/rift-soft-bold-italic.otf) format(\"opentype\")}a,abbr,acronym,address,applet,article,aside,audio,b,big,blockquote,body,canvas,caption,center,cite,code,dd,del,details,dfn,div,dl,dt,em,embed,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,header,hgroup,html,i,iframe,img,ins,kbd,label,legend,li,mark,menu,nav,object,ol,output,p,pre,q,ruby,s,samp,section,small,span,strike,strong,sub,summary,sup,table,tbody,td,tfoot,th,thead,time,tr,tt,u,ul,var,video{border:0;font:inherit;font-size:100%;margin:0;padding:0;vertical-align:baseline}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}body{font-family:industry_ultra;line-height:1}ol,ul{list-style:none}div{margin:0}premium-shop .premium-shop-title{background:-webkit-gradient(linear,left top,right top,from(#a531f6),color-stop(#3b1b9b),to(#a531f6));background:linear-gradient(90deg,#a531f6,#3b1b9b,#a531f6);background-size:200% 100%;color:#fff;font-size:28px;padding:5px;font-family:rift;text-transform:uppercase;-webkit-animation:titlebg 5s linear infinite;animation:titlebg 5s linear infinite}\@-webkit-keyframes titlebg{0%{background-position-x:0}to{background-position-x:200%}}\@keyframes titlebg{0%{background-position-x:0}to{background-position-x:200%}}premium-shop{text-align:center}premium-shop .premium-shop-container{left:50%;max-width:90%;position:absolute;top:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);z-index:10}premium-shop .premium-shop-toolbar{background:-webkit-gradient(linear,right top,left top,from(rgba(165,49,246,.9)),color-stop(50%,rgba(59,27,155,.9))),#000;background:linear-gradient(270deg,rgba(165,49,246,.9),rgba(59,27,155,.9) 50%),#000;border-radius:5px 5px 0 0;color:#fff;display:-ms-flexbox;display:flex;font-family:rift;padding:5px 0}premium-shop .premium-shop-context{font-family:rift;color:#35188c;font-size:22px;margin-top:22px}premium-shop .premium-shop-title{margin-top:-1px}premium-shop .premium-shop-toolbar-right{display:-ms-inline-flexbox;display:inline-flex;margin-left:auto}premium-shop .premium-shop-toolbar-right>*{margin:0 2px}premium-shop .premium-shop-toolbar-left{display:-ms-inline-flexbox;display:inline-flex}premium-shop .premium-shop-toolbar-left>*{margin:0 10px}premium-shop .hover-icon{cursor:pointer;-webkit-filter:opacity(50%);filter:opacity(50%)}premium-shop .hover-icon:hover{-webkit-filter:opacity(100%);filter:opacity(100%)}premium-shop .close-icon{-webkit-transform:rotate(45deg);transform:rotate(45deg)}premium-shop .premium-shop-icon{height:15px;width:15px}premium-shop .premium-shop-content{background:repeating-linear-gradient(-45deg,hsla(0,0%,100%,.8),hsla(0,0%,100%,.7),hsla(0,0%,100%,.8) 2px);overflow-x:auto}premium-shop .premium-shop-welcome-text{text-transform:uppercase}premium-shop .premium-shop-product-list{display:-ms-inline-flexbox;display:inline-flex;margin:15px 15px}premium-shop .light-box{background:rgba(0,0,0,.4);cursor:pointer;height:100%;left:0;position:fixed;top:0;width:100%;z-index:2}premium-shop .premium-shop-product{padding:10px;background-color:#fff;background:-webkit-gradient(linear,left top,left bottom,from(hsla(0,0%,100%,.8)),to(hsla(0,0%,100%,.4)));background:linear-gradient(hsla(0,0%,100%,.8),hsla(0,0%,100%,.4));border-radius:5px;cursor:pointer;margin:0 5px;-webkit-transition:all .5s;transition:all .5s;-webkit-box-shadow:0 0 0 2px transparent;box-shadow:0 0 0 2px transparent}premium-shop .premium-shop-product.hover,premium-shop .premium-shop-product:hover{background:-webkit-gradient(linear,left top,left bottom,from(#fff),to(#fff));background:linear-gradient(#fff,#fff);-webkit-box-shadow:0 0 0 2px #3b1b9b;box-shadow:0 0 0 2px #3b1b9b}premium-shop .premium-shop-product.hover .premium-shop-image-container,premium-shop .premium-shop-product:hover .premium-shop-image-container{-webkit-transform:translateY(-5px) scale(1.2);transform:translateY(-5px) scale(1.2)}premium-shop .premium-shop-image,premium-shop .premium-shop-image-container{-webkit-transition:-webkit-transform .2s ease-in-out;transition:-webkit-transform .2s ease-in-out;transition:transform .2s ease-in-out;transition:transform .2s ease-in-out,-webkit-transform .2s ease-in-out}premium-shop .premium-shop-image{padding:5px 0;width:90px;height:90px}premium-shop .premium-shop-product-description{font-size:20px}premium-shop .premium-shop-product-value-container{display:-ms-inline-flexbox;display:inline-flex;margin:5px}premium-shop .premium-shop-product-value{font-size:18px;padding:0 5px}premium-shop .premium-shop-product-price-button{width:100%}premium-shop .premium-shop-product-price-button .premium-shop-product-price{margin-right:5px}premium-shop .bit-icon{height:20px;vertical-align:middle;width:20px}premium-shop .warning{width:100%;border-radius:0 0 5px 5px;padding:5px 0;color:#000;background:-webkit-gradient(linear,left top,right top,from(#f2b90c),to(#f2690c));background:linear-gradient(90deg,#f2b90c,#f2690c);-webkit-box-shadow:0 0 10px inset rgba(0,0,0,.2);box-shadow:inset 0 0 10px rgba(0,0,0,.2)}premium-shop .warning-text{display:inline-block;text-align:left;color:#333}premium-shop .warning-icon{height:30px;margin:0 5px;-webkit-filter:brightness(.25);filter:brightness(.25)}premium-shop .shop-button{width:100px;padding:2px 0;margin:10px 10px 10px 0;font-size:20px;border-radius:5px;border:none;font-family:rift;cursor:pointer;-webkit-box-shadow:0 0 5px rgba(0,0,0,.2);box-shadow:0 0 5px rgba(0,0,0,.2);background-color:#fff;background:#fff}premium-shop .shop-button:hover{color:#fff;background:-webkit-gradient(linear,left top,left bottom,from(#a531f6),to(#3b1b9b));background:linear-gradient(180deg,#a531f6 0,#3b1b9b)}premium-shop .number{font-size:18px;font-family:monospace;font-weight:700;font-style:italic}premium-shop .premium-shop-confirm-product{width:130px;margin:10px 15px}premium-shop .premium-shop-confirm-container{display:-ms-inline-flexbox;display:inline-flex;padding:10px}premium-shop .confirm-text-container{text-align:left;margin:20px}premium-shop .confirm-text{font-size:20px}premium-shop ul{margin:10px 0;list-style:disc;list-style-type:disc}premium-shop ul li{margin:10px}"
  1693. },
  1694. enumerable: true,
  1695. configurable: true
  1696. });
  1697. return t
  1698. }());
  1699. var F = t("spectator_interaction", function () {
  1700. function t(t) {
  1701. var i = this;
  1702. e(this, t);
  1703. this.panels = [];
  1704. this.selected = 0;
  1705. this.minimized = false;
  1706. this.displayTabs = false;
  1707. this.wallet = 0;
  1708. this.premiumCurrency = 0;
  1709. this.displayCurrency = false;
  1710. this.displayPremiumCurrency = true;
  1711. this.displayLeaderboard = false;
  1712. this.position = {
  1713. x: 0,
  1714. y: 0
  1715. };
  1716. this.panelIntervalHandle = setInterval((function () {
  1717. i.panels.forEach((function (t, e) {
  1718. if (t.timeout && (new Date).getTime() / 1e3 > t.timeout) {
  1719. i.closeTabHandler(e, null)
  1720. }
  1721. }))
  1722. }), 1e3);
  1723. this.minimizeIntervalHandle = setInterval((function () {
  1724. if (i.panels.length === 0) {
  1725. i.minimized = true
  1726. }
  1727. }), 1e3)
  1728. }
  1729. t.prototype.openHelpWindow = function () {
  1730. if (this.helpCallback) {
  1731. this.helpCallback()
  1732. }
  1733. };
  1734. t.prototype.componentWillLoad = function () {
  1735. var t = this;
  1736. var e = new MutationObserver((function (i, n) {
  1737. var r = i.some((function (t) {
  1738. return t.attributeName === "data-hmr"
  1739. }));
  1740. if (!r) {
  1741. return
  1742. }
  1743. clearInterval(t.panelIntervalHandle);
  1744. clearInterval(t.minimizeIntervalHandle);
  1745. e.disconnect()
  1746. }));
  1747. e.observe(this.el, {
  1748. attributes: true,
  1749. childList: false,
  1750. subtree: false
  1751. });
  1752. this.resize();
  1753. window.onresize = this.resize.bind(this)
  1754. };
  1755. t.prototype.resize = function () {
  1756. var t = this.el.firstElementChild;
  1757. if (t) {
  1758. this.currentHeight = window.innerHeight
  1759. }
  1760. };
  1761. t.prototype.componentDidRender = function () {
  1762. var t = this;
  1763. setTimeout((function () {
  1764. t.resize()
  1765. }), 500)
  1766. };
  1767. t.prototype.addPanel = function (t, e) {
  1768. return __awaiter(this, void 0, void 0, (function () {
  1769. var i;
  1770. return __generator(this, (function (n) {
  1771. if (Array.isArray(t)) {
  1772. this.panels = this.panels.concat(t)
  1773. } else {
  1774. if (t.uniqueKey) {
  1775. i = this.findUniqueInstanceIndex(t);
  1776. if (i > -1) {
  1777. this.panels[i] = t;
  1778. this.panels = __spreadArrays(this.panels)
  1779. } else {
  1780. if (e) {
  1781. this.panels = __spreadArrays([t], this.panels);
  1782. this.selected = 0
  1783. } else {
  1784. this.panels = __spreadArrays(this.panels, [t])
  1785. }
  1786. }
  1787. } else {
  1788. if (e) {
  1789. this.panels = __spreadArrays([t], this.panels);
  1790. this.selected = 0
  1791. } else {
  1792. this.panels = __spreadArrays(this.panels, [t])
  1793. }
  1794. }
  1795. }
  1796. this.minimized = false;
  1797. return [2]
  1798. }))
  1799. }))
  1800. };
  1801. t.prototype.removePanel = function (t) {
  1802. return __awaiter(this, void 0, void 0, (function () {
  1803. var e;
  1804. return __generator(this, (function (i) {
  1805. e = this.findUniqueInstanceIndex(t);
  1806. if (e > -1) {
  1807. this.closeTabHandler(e, null)
  1808. }
  1809. return [2]
  1810. }))
  1811. }))
  1812. };
  1813. t.prototype.findUniqueInstanceIndex = function (t) {
  1814. return this.panels.findIndex((function (e) {
  1815. if (e.uniqueKey) {
  1816. return e.uniqueKey === t.uniqueKey
  1817. } else {
  1818. return false
  1819. }
  1820. }))
  1821. };
  1822. t.prototype.closeTabEventListener = function (t) {
  1823. this.closeTabHandler(t.detail.index, t)
  1824. };
  1825. t.prototype.clickTabHandler = function (t) {
  1826. this.selected = t
  1827. };
  1828. t.prototype.closeTabHandler = function (t, e) {
  1829. this.selected = 0;
  1830. this.panels.splice(t, 1);
  1831. this.panels = __spreadArrays(this.panels);
  1832. if (e) {
  1833. e.stopPropagation()
  1834. }
  1835. };
  1836. t.prototype.selectComponent = function () {
  1837. if (this.selected > -1 && this.panels.length && this.panels[this.selected]) {
  1838. return this.panels[this.selected]["component"]
  1839. } else {
  1840. return null
  1841. }
  1842. };
  1843. t.prototype.getComponentProps = function () {
  1844. if (this.selected > -1 && this.panels.length && this.panels[this.selected]) {
  1845. if (this.panels[this.selected]["props"]) {
  1846. return Object.assign({}, this.panels[this.selected]["props"])
  1847. } else {
  1848. throw "No props available"
  1849. }
  1850. }
  1851. throw "No panel available"
  1852. };
  1853. t.prototype.hasWarning = function () {
  1854. if (this.selected > -1 && this.panels.length && this.panels[this.selected]) {
  1855. if (this.panels[this.selected]["warning"]) {
  1856. return true
  1857. } else {
  1858. return false
  1859. }
  1860. }
  1861. };
  1862. t.prototype.leaderboardClickHandler = function () {
  1863. if (this.leaderboardCallback && typeof this.leaderboardCallback === "function") {
  1864. this.leaderboardCallback()
  1865. }
  1866. };
  1867. t.prototype.minimizeClickHandler = function () {
  1868. this.minimized = !this.minimized
  1869. };
  1870. t.prototype.shopClickHandler = function () {
  1871. if (this.shopCallback && typeof this.shopCallback === "function") {
  1872. this.shopCallback()
  1873. }
  1874. };
  1875. t.prototype.renderWarning = function (t) {
  1876. var e = t.warning || this.panels[this.selected].warning;
  1877. if (e) {
  1878. return i("div", {
  1879. class: "spectator-interaction-warning-container"
  1880. }, i("span", {
  1881. class: "spectator-interaction-warning-icon-container"
  1882. }, i("img", {
  1883. class: "spectator-interaction-warning-icon",
  1884. src: "assets/images/warning-icon.svg",
  1885. alt: "Alert-icon"
  1886. })), i("p", {
  1887. class: "spectator-interaction-warning-text"
  1888. }, e))
  1889. }
  1890. };
  1891. t.prototype.renderLeaderboard = function () {
  1892. var t = this;
  1893. if (!this.displayLeaderboard) {
  1894. return
  1895. }
  1896. if (!this.leaderboardCallback) {
  1897. return
  1898. }
  1899. return i("div", {
  1900. class: "spectator-interaction-leaderboard-button",
  1901. onClick: function () {
  1902. t.leaderboardClickHandler()
  1903. }
  1904. }, i("img", {
  1905. class: "spectator-interaction-icon hover-icon",
  1906. src: "assets/images/leaderboard-list.svg"
  1907. }))
  1908. };
  1909. t.prototype.renderInstream = function () {
  1910. if (!this.displayCurrency) {
  1911. return
  1912. }
  1913. return [i("div", null, this.wallet), i("div", null, i("img", {
  1914. class: "spectator-interaction-icon ",
  1915. src: "assets/images/coin.svg"
  1916. }))]
  1917. };
  1918. t.prototype.renderPremiumCurrency = function () {
  1919. var t = this;
  1920. if (!this.displayPremiumCurrency) {
  1921. return
  1922. }
  1923. return [i("div", null, this.premiumCurrency), i("div", null, i("img", {
  1924. class: "spectator-interaction-icon",
  1925. src: "assets/images/scav.svg"
  1926. })), i("div", {
  1927. class: "spectator-interaction-shop-button",
  1928. onClick: function () {
  1929. t.shopClickHandler()
  1930. }
  1931. }, i("img", {
  1932. class: "spectator-interaction-icon hover-icon",
  1933. src: "assets/images/shop.svg"
  1934. }))]
  1935. };
  1936. t.prototype.render = function () {
  1937. var t = this;
  1938. var e = this.selectComponent();
  1939. return i("div", {
  1940. class: "spectator-interaction-container " + (this.minimized ? "minimized" : "")
  1941. }, i("div", {
  1942. class: "spectator-interaction-toolbar"
  1943. }, i("div", {
  1944. class: "spectator-interaction-toolbar-left"
  1945. }, this.panels.length && false ? i("div", {
  1946. class: "spectator-interaction-minimise-button",
  1947. onClick: function () {
  1948. t.minimizeClickHandler()
  1949. }
  1950. }, i("img", {
  1951. class: "spectator-interaction-icon hover-icon " + (this.minimized ? "flip" : ""),
  1952. src: "assets/images/minimize-arrow.svg"
  1953. })) : "", this.panels.length > 0 ? i("div", {
  1954. class: "spectator-interaction-minimise-button",
  1955. onClick: function () {
  1956. var e = t.panels.shift();
  1957. if (e.props && e.props["cancelCallback"]) {
  1958. e.props["cancelCallback"]()
  1959. }
  1960. t.panels = __spreadArrays(t.panels)
  1961. }
  1962. }, i("img", {
  1963. class: "spectator-interaction-tab-close-icon spectator-interaction-icon hover-icon",
  1964. src: "assets/images/closing_cross.svg"
  1965. })) : "", this.minimized ? this.renderPremiumCurrency() : "", this.renderLeaderboard()), i("div", {
  1966. class: "spectator-interaction-toolbar-right spectator-interaction-currency-control"
  1967. }, this.renderInstream(), this.renderPremiumCurrency())), this.displayTabs ? i("div", {
  1968. class: "spectator-interaction-tabs-container"
  1969. }, this.panels.map((function (e, n) {
  1970. return i("span", {
  1971. class: "spectator-interaction-tab " + (t.selected == n ? "active-tab" : ""),
  1972. onClick: function () {
  1973. return t.clickTabHandler(n)
  1974. }
  1975. }, i("span", {
  1976. class: "spectator-interaction-tab-close",
  1977. onClick: function (e) {
  1978. return t.closeTabHandler(n, e)
  1979. }
  1980. }, i("img", {
  1981. class: "spectator-interaction-tab-close-icon",
  1982. src: "assets/images/closing_cross.svg",
  1983. alt: "X"
  1984. })), i("span", {
  1985. class: "spectator-interaction-tab-title"
  1986. }, e.title))
  1987. }))) : "", e ? [i("div", {
  1988. class: "spectator-interaction-panels-container " + (this.hasWarning() ? "flat-bottom" : ""),
  1989. ref: function (e) {
  1990. t.panelContainer = e
  1991. },
  1992. style: {
  1993. maxHeight: this.currentHeight + "px"
  1994. }
  1995. }, i(e, Object.assign({}, {
  1996. props: this.getComponentProps(),
  1997. index: this.selected
  1998. }))), this.renderWarning(this.getComponentProps())] : i("div", {
  1999. class: "spectator-interaction-empty-panel"
  2000. }))
  2001. };
  2002. Object.defineProperty(t.prototype, "el", {
  2003. get: function () {
  2004. return r(this)
  2005. },
  2006. enumerable: true,
  2007. configurable: true
  2008. });
  2009. Object.defineProperty(t, "style", {
  2010. get: function () {
  2011. return "\@-webkit-keyframes pulse{0%{-webkit-transform:scale(1);transform:scale(1)}50%{-webkit-transform:scale(1.02);transform:scale(1.02)}to{-webkit-transform:scale(1);transform:scale(1)}}\@keyframes pulse{0%{-webkit-transform:scale(1);transform:scale(1)}50%{-webkit-transform:scale(1.02);transform:scale(1.02)}to{-webkit-transform:scale(1);transform:scale(1)}}\@-webkit-keyframes shake{0%,to{-webkit-transform:translateZ(0);transform:translateZ(0)}10%,30%,50%,70%,90%{-webkit-transform:translate3d(-10px,0,0);transform:translate3d(-10px,0,0)}20%,40%,60%,80%{-webkit-transform:translate3d(10px,0,0);transform:translate3d(10px,0,0)}}\@keyframes shake{0%,to{-webkit-transform:translateZ(0);transform:translateZ(0)}10%,30%,50%,70%,90%{-webkit-transform:translate3d(-10px,0,0);transform:translate3d(-10px,0,0)}20%,40%,60%,80%{-webkit-transform:translate3d(10px,0,0);transform:translate3d(10px,0,0)}}.shake{-webkit-animation-name:shake;animation-name:shake}\@-webkit-keyframes bounceIn{0%,20%,40%,60%,80%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}20%{-webkit-transform:scale3d(1.1,1.1,1.1);transform:scale3d(1.1,1.1,1.1)}40%{-webkit-transform:scale3d(.9,.9,.9);transform:scale3d(.9,.9,.9)}60%{opacity:1;-webkit-transform:scale3d(1.03,1.03,1.03);transform:scale3d(1.03,1.03,1.03)}80%{-webkit-transform:scale3d(.97,.97,.97);transform:scale3d(.97,.97,.97)}to{opacity:1;-webkit-transform:scaleX(1);transform:scaleX(1)}}\@keyframes bounceIn{0%,20%,40%,60%,80%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}20%{-webkit-transform:scale3d(1.1,1.1,1.1);transform:scale3d(1.1,1.1,1.1)}40%{-webkit-transform:scale3d(.9,.9,.9);transform:scale3d(.9,.9,.9)}60%{opacity:1;-webkit-transform:scale3d(1.03,1.03,1.03);transform:scale3d(1.03,1.03,1.03)}80%{-webkit-transform:scale3d(.97,.97,.97);transform:scale3d(.97,.97,.97)}to{opacity:1;-webkit-transform:scaleX(1);transform:scaleX(1)}}.bounceIn{-webkit-animation-duration:.75s;animation-duration:.75s;-webkit-animation-name:bounceIn;animation-name:bounceIn}\@font-face{font-family:industry;font-style:normal;font-weight:400;src:url(assets/fonts/industry-medium-italic-webfont.woff2) format(\"woff2\"),url(assets/fonts/industry-medium-italic-webfont.woff) format(\"woff\")}\@font-face{font-family:industry_ultra;font-style:normal;font-weight:400;src:url(assets/fonts/industry-ultra-italic-webfont.woff2) format(\"woff2\"),url(assets/fonts/industry-ultra-italic-webfont.woff) format(\"woff\")}\@font-face{font-family:industry_medium;font-style:normal;font-weight:400;src:url(\"assets/fonts/Industry Medium Italic.otf\") format(\"opentype\")}\@font-face{font-family:rift;font-style:normal;font-weight:400;src:url(assets/fonts/rift-soft-bold-italic.otf) format(\"opentype\")}a,abbr,acronym,address,applet,article,aside,audio,b,big,blockquote,body,canvas,caption,center,cite,code,dd,del,details,dfn,div,dl,dt,em,embed,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,header,hgroup,html,i,iframe,img,ins,kbd,label,legend,li,mark,menu,nav,object,ol,output,p,pre,q,ruby,s,samp,section,small,span,strike,strong,sub,summary,sup,table,tbody,td,tfoot,th,thead,time,tr,tt,u,ul,var,video{border:0;font:inherit;font-size:100%;margin:0;padding:0;vertical-align:baseline}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}body{font-family:industry_ultra;line-height:1}ol,ul{list-style:none}div{margin:0}\@-webkit-keyframes titlebg{0%{background-position-x:0}to{background-position-x:200%}}\@keyframes titlebg{0%{background-position-x:0}to{background-position-x:200%}}spectator-interaction .spectator-interaction-container{overflow:hidden;position:absolute;-webkit-transition:right .5s,opacity .5s;transition:right .5s,opacity .5s;z-index:3}\@media (min-width:601px){spectator-interaction .spectator-interaction-container{right:7rem}}\@media (min-width:100px) and (max-width:600px){spectator-interaction .spectator-interaction-container{right:0}}spectator-interaction .spectator-interaction-container.minimized{right:-220px;opacity:0}spectator-interaction .spectator-interaction-panels-container{-webkit-animation:scaleIn .5s;animation:scaleIn .5s;background:repeating-linear-gradient(-45deg,hsla(0,0%,100%,.8),hsla(0,0%,100%,.7),hsla(0,0%,100%,.8) 2px);border-radius:0 0 10px 10px;color:#7e858c;overflow:hidden;-webkit-transition:flex .3s ease-out;transition:flex .3s ease-out;transition:flex .3s ease-out,-ms-flex .3s ease-out;width:400px}spectator-interaction .spectator-interaction-panels-container:empty{display:none}spectator-interaction .spectator-interaction-empty-panel{background-color:hsla(0,0%,100%,.8);border-radius:0 0 10px 10px;color:#7e858c;font-family:rift;padding:5px 0;text-transform:uppercase;width:400px}spectator-interaction .flat-bottom{border-radius:0}spectator-interaction .spectator-interaction-toolbar{background:-webkit-gradient(linear,right top,left top,from(rgba(165,49,246,.9)),color-stop(50%,rgba(59,27,155,.9))),#000;background:linear-gradient(270deg,rgba(165,49,246,.9),rgba(59,27,155,.9) 50%),#000;border-radius:10px 10px 0 0;color:#fff;display:-ms-flexbox;display:flex;font-family:rift;padding:5px}spectator-interaction .spectator-interaction-toolbar .spectator-interaction-toolbar-right{display:-ms-inline-flexbox;display:inline-flex;margin-left:auto}spectator-interaction .spectator-interaction-toolbar .spectator-interaction-toolbar-right>*{margin:0 2px}spectator-interaction .spectator-interaction-toolbar .spectator-interaction-toolbar-left{display:-ms-inline-flexbox;display:inline-flex}spectator-interaction .spectator-interaction-toolbar .spectator-interaction-toolbar-left>*{margin:0 2px}spectator-interaction .spectator-interaction-icon{width:15px}spectator-interaction .hover-icon{cursor:pointer;-webkit-filter:opacity(50%);filter:opacity(50%)}spectator-interaction .hover-icon:hover{-webkit-filter:opacity(100%);filter:opacity(100%)}spectator-interaction .flip{-webkit-transform:scaleX(-1);transform:scaleX(-1)}spectator-interaction .close-icon{stroke:#000;width:12px}spectator-interaction .close-icon:hover{fill:#000}spectator-interaction .spectator-interaction-tabs-container{display:block;left:-23px;position:absolute;-webkit-transform:rotate(270deg) translateX(-100%);transform:rotate(270deg) translateX(-100%);-webkit-transform-origin:top left;transform-origin:top left}spectator-interaction .spectator-interaction-tab{background-color:hsla(0,0%,100%,.8);border-radius:5px 5px 0 0;-webkit-box-shadow:-2px -2px 2px rgba(0,0,0,.2);box-shadow:-2px -2px 2px rgba(0,0,0,.2);color:#7e858c;font-family:rift;padding:5px 15px 5px 10px;text-transform:uppercase;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}spectator-interaction .spectator-interaction-tab:hover .spectator-interaction-tab-title{color:#000f1c;cursor:pointer}spectator-interaction .active-tab{background-color:#3b1b9b;color:#7e858c}spectator-interaction .active-tab:hover .spectator-interaction-tab-title{color:#fff}spectator-interaction .active-tab .spectator-interaction-tab-close-icon:hover{-webkit-filter:brightness(10000%);filter:brightness(10000%)}spectator-interaction .spectator-interaction-tab-title{margin-left:10px;-webkit-transition:all .2s;transition:all .2s}spectator-interaction .spectator-interaction-tab-close{-webkit-transition:all .2s;transition:all .2s}spectator-interaction .spectator-interaction-tab-close:hover{color:#000f1c;cursor:pointer}spectator-interaction .spectator-interaction-tab-close-icon{width:12px}spectator-interaction .spectator-interaction-tab-close-icon:hover{-webkit-filter:brightness(10000%);filter:brightness(10000%)}spectator-interaction .spectator-interaction-warning-container{background:-webkit-gradient(linear,left top,right top,from(#fb0039),to(#fb540a));background:linear-gradient(90deg,#fb0039,#fb540a);border-radius:0 0 5px 5px;-webkit-box-shadow:0 0 10px inset rgba(0,0,0,.2);box-shadow:inset 0 0 10px rgba(0,0,0,.2);color:#fff;display:-ms-inline-flexbox;display:inline-flex;font-family:rift;text-transform:uppercase;width:100%}spectator-interaction .spectator-interaction-warning-container .spectator-interaction-warning-icon-container{padding:10px 10px}spectator-interaction .spectator-interaction-warning-container .spectator-interaction-warning-icon-container .spectator-interaction-warning-icon{width:25px}spectator-interaction .spectator-interaction-warning-container .spectator-interaction-warning-text{margin:auto;text-align:center}\@-webkit-keyframes slideInRight{0%{-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0);visibility:visible}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}\@keyframes slideInRight{0%{-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0);visibility:visible}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}.slideInRight{-webkit-animation-name:slideInRight;animation-name:slideInRight}\@-webkit-keyframes slideInUp{0%{-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0);visibility:visible}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}\@-webkit-keyframes scaleIn{0%{flex:0}to{flex:1}}\@keyframes scaleIn{0%{-ms-flex:0;flex:0}to{-ms-flex:1;flex:1}}\@keyframes slideInUp{0%{-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0);visibility:visible}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}.slideInUp{-webkit-animation-name:slideInUp;animation-name:slideInUp}::-webkit-scrollbar{width:8px}::-webkit-scrollbar-track{background:rgba(0,0,0,.05)}::-webkit-scrollbar-thumb{border-radius:5px}::-webkit-scrollbar-thumb,::-webkit-scrollbar-thumb:hover{background:-webkit-gradient(linear,left bottom,left top,from(#4f2faf),to(#b945ff));background:linear-gradient(0deg,#4f2faf,#b945ff)}"
  2012. },
  2013. enumerable: true,
  2014. configurable: true
  2015. });
  2016. return t
  2017. }());
  2018. var G = t("spectator_notification", function () {
  2019. function t(t) {
  2020. e(this, t);
  2021. this.notifications = [];
  2022. this.createInterval()
  2023. }
  2024. t.prototype.createInterval = function () {
  2025. var t = this;
  2026. setInterval((function () {
  2027. if (t.notifications.length) {
  2028. t.activeNotifications = t.notifications.shift()
  2029. } else {
  2030. t.activeNotifications = undefined
  2031. }
  2032. }), 3e3)
  2033. };
  2034. t.prototype.push = function (t) {
  2035. return __awaiter(this, void 0, void 0, (function () {
  2036. return __generator(this, (function (e) {
  2037. this.notifications.push(t);
  2038. return [2]
  2039. }))
  2040. }))
  2041. };
  2042. t.prototype.singleNotification = function () {
  2043. if (this.activeNotifications) {
  2044. if (this.activeNotifications.component === "spectator-shop-notification") {
  2045. return i(this.activeNotifications.component, Object.assign({}, this.activeNotifications.props))
  2046. }
  2047. return i("div", {
  2048. class: "spectator-notification-instance"
  2049. }, i(this.activeNotifications.component, Object.assign({}, this.activeNotifications.props)))
  2050. }
  2051. };
  2052. t.prototype.render = function () {
  2053. return i("div", {
  2054. class: "spectator-notification-container"
  2055. }, this.singleNotification())
  2056. };
  2057. Object.defineProperty(t, "style", {
  2058. get: function () {
  2059. return "\@-webkit-keyframes pulse{0%{-webkit-transform:scale(1);transform:scale(1)}50%{-webkit-transform:scale(1.02);transform:scale(1.02)}to{-webkit-transform:scale(1);transform:scale(1)}}\@keyframes pulse{0%{-webkit-transform:scale(1);transform:scale(1)}50%{-webkit-transform:scale(1.02);transform:scale(1.02)}to{-webkit-transform:scale(1);transform:scale(1)}}\@-webkit-keyframes shake{0%,to{-webkit-transform:translateZ(0);transform:translateZ(0)}10%,30%,50%,70%,90%{-webkit-transform:translate3d(-10px,0,0);transform:translate3d(-10px,0,0)}20%,40%,60%,80%{-webkit-transform:translate3d(10px,0,0);transform:translate3d(10px,0,0)}}\@keyframes shake{0%,to{-webkit-transform:translateZ(0);transform:translateZ(0)}10%,30%,50%,70%,90%{-webkit-transform:translate3d(-10px,0,0);transform:translate3d(-10px,0,0)}20%,40%,60%,80%{-webkit-transform:translate3d(10px,0,0);transform:translate3d(10px,0,0)}}.shake{-webkit-animation-name:shake;animation-name:shake}\@-webkit-keyframes bounceIn{0%,20%,40%,60%,80%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}20%{-webkit-transform:scale3d(1.1,1.1,1.1);transform:scale3d(1.1,1.1,1.1)}40%{-webkit-transform:scale3d(.9,.9,.9);transform:scale3d(.9,.9,.9)}60%{opacity:1;-webkit-transform:scale3d(1.03,1.03,1.03);transform:scale3d(1.03,1.03,1.03)}80%{-webkit-transform:scale3d(.97,.97,.97);transform:scale3d(.97,.97,.97)}to{opacity:1;-webkit-transform:scaleX(1);transform:scaleX(1)}}\@keyframes bounceIn{0%,20%,40%,60%,80%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}20%{-webkit-transform:scale3d(1.1,1.1,1.1);transform:scale3d(1.1,1.1,1.1)}40%{-webkit-transform:scale3d(.9,.9,.9);transform:scale3d(.9,.9,.9)}60%{opacity:1;-webkit-transform:scale3d(1.03,1.03,1.03);transform:scale3d(1.03,1.03,1.03)}80%{-webkit-transform:scale3d(.97,.97,.97);transform:scale3d(.97,.97,.97)}to{opacity:1;-webkit-transform:scaleX(1);transform:scaleX(1)}}.bounceIn{-webkit-animation-duration:.75s;animation-duration:.75s;-webkit-animation-name:bounceIn;animation-name:bounceIn}\@font-face{font-family:industry;font-style:normal;font-weight:400;src:url(assets/fonts/industry-medium-italic-webfont.woff2) format(\"woff2\"),url(assets/fonts/industry-medium-italic-webfont.woff) format(\"woff\")}\@font-face{font-family:industry_ultra;font-style:normal;font-weight:400;src:url(assets/fonts/industry-ultra-italic-webfont.woff2) format(\"woff2\"),url(assets/fonts/industry-ultra-italic-webfont.woff) format(\"woff\")}\@font-face{font-family:industry_medium;font-style:normal;font-weight:400;src:url(\"assets/fonts/Industry Medium Italic.otf\") format(\"opentype\")}\@font-face{font-family:rift;font-style:normal;font-weight:400;src:url(assets/fonts/rift-soft-bold-italic.otf) format(\"opentype\")}a,abbr,acronym,address,applet,article,aside,audio,b,big,blockquote,body,canvas,caption,center,cite,code,dd,del,details,dfn,div,dl,dt,em,embed,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,header,hgroup,html,i,iframe,img,ins,kbd,label,legend,li,mark,menu,nav,object,ol,output,p,pre,q,ruby,s,samp,section,small,span,strike,strong,sub,summary,sup,table,tbody,td,tfoot,th,thead,time,tr,tt,u,ul,var,video{border:0;font:inherit;font-size:100%;margin:0;padding:0;vertical-align:baseline}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}body{font-family:industry_ultra;line-height:1}ol,ul{list-style:none}div{margin:0}\@-webkit-keyframes titlebg{0%{background-position-x:0}to{background-position-x:200%}}\@keyframes titlebg{0%{background-position-x:0}to{background-position-x:200%}}spectator-notification .spectator-notification-instance{-webkit-animation:slideInAndOut 3s;animation:slideInAndOut 3s;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;margin:5px 0}\@-webkit-keyframes slideInAndOut{0%{-webkit-transform:translate3d(110%,0,0);transform:translate3d(110%,0,0);visibility:visible}10%{-webkit-transform:translateZ(0);transform:translateZ(0)}90%{-webkit-transform:translateZ(0);transform:translateZ(0)}to{-webkit-transform:translate3d(110%,0,0);transform:translate3d(110%,0,0)}}\@keyframes slideInAndOut{0%{-webkit-transform:translate3d(110%,0,0);transform:translate3d(110%,0,0);visibility:visible}10%{-webkit-transform:translateZ(0);transform:translateZ(0)}90%{-webkit-transform:translateZ(0);transform:translateZ(0)}to{-webkit-transform:translate3d(110%,0,0);transform:translate3d(110%,0,0)}}\@-webkit-keyframes slideOut{0%{-webkit-transform:translate3d(110%,0,0);transform:translate3d(110%,0,0);visibility:visible}to{-webkit-transform:translate3d(110%,0,0);transform:translate3d(110%,0,0)}}\@keyframes slideOut{0%{-webkit-transform:translate3d(110%,0,0);transform:translate3d(110%,0,0);visibility:visible}to{-webkit-transform:translate3d(110%,0,0);transform:translate3d(110%,0,0)}}.slideOut{-webkit-animation-name:slideOut;animation-name:slideOut}.slideInRight{-webkit-animation-name:slideInRight;animation-name:slideInRight}"
  2060. },
  2061. enumerable: true,
  2062. configurable: true
  2063. });
  2064. return t
  2065. }())
  2066. }
  2067. }
  2068. }));
Advertisement
Add Comment
Please, Sign In to add comment