Advertisement
Guest User

Untitled

a guest
Jan 22nd, 2019
1,115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 50.13 KB | None | 0 0
  1. !(function(e) {
  2. if ("object" == typeof exports && "undefined" != typeof module)
  3. module.exports = e();
  4. else if ("function" == typeof define && define.amd) define([], e);
  5. else {
  6. var t;
  7. (t =
  8. "undefined" != typeof window
  9. ? window
  10. : "undefined" != typeof global
  11. ? global
  12. : "undefined" != typeof self
  13. ? self
  14. : this),
  15. (t.qwest = e());
  16. }
  17. })(function() {
  18. var e;
  19. return (function t(e, n, a) {
  20. function o(i, u) {
  21. if (!n[i]) {
  22. if (!e[i]) {
  23. var s = "function" == typeof require && require;
  24. if (!u && s) return s(i, !0);
  25. if (r) return r(i, !0);
  26. var c = new Error("Cannot find module '" + i + "'");
  27. throw ((c.code = "MODULE_NOT_FOUND"), c);
  28. }
  29. var d = (n[i] = { exports: {} });
  30. e[i][0].call(
  31. d.exports,
  32. function(t) {
  33. var n = e[i][1][t];
  34. return o(n ? n : t);
  35. },
  36. d,
  37. d.exports,
  38. t,
  39. e,
  40. n,
  41. a
  42. );
  43. }
  44. return n[i].exports;
  45. }
  46. for (
  47. var r = "function" == typeof require && require, i = 0;
  48. i < a.length;
  49. i++
  50. )
  51. o(a[i]);
  52. return o;
  53. })(
  54. {
  55. 1: [
  56. function(t, n) {
  57. !(function(t) {
  58. "use strict";
  59. var a = function(e) {
  60. var t = function(e, t, n) {
  61. (n =
  62. "function" == typeof n
  63. ? n()
  64. : null === n
  65. ? ""
  66. : void 0 === n
  67. ? ""
  68. : n),
  69. (e[e.length] =
  70. encodeURIComponent(t) + "=" + encodeURIComponent(n));
  71. },
  72. n = function(e, a, o) {
  73. var r, i, u;
  74. if ("[object Array]" === Object.prototype.toString.call(a))
  75. for (r = 0, i = a.length; i > r; r++)
  76. n(
  77. e + "[" + ("object" == typeof a[r] ? r : "") + "]",
  78. a[r],
  79. o
  80. );
  81. else if (a && "[object Object]" === a.toString())
  82. for (u in a)
  83. a.hasOwnProperty(u) &&
  84. (e
  85. ? n(e + "[" + u + "]", a[u], o, t)
  86. : n(u, a[u], o, t));
  87. else if (e) t(o, e, a);
  88. else for (u in a) t(o, u, a[u]);
  89. return o;
  90. };
  91. return n("", e, [])
  92. .join("&")
  93. .replace(/%20/g, "+");
  94. };
  95. "object" == typeof n && "object" == typeof n.exports
  96. ? (n.exports = a)
  97. : "function" == typeof e && e.amd
  98. ? e([], function() {
  99. return a;
  100. })
  101. : (t.param = a);
  102. })(this);
  103. },
  104. {}
  105. ],
  106. 2: [
  107. function(e, t) {
  108. !(function(e) {
  109. function t(e) {
  110. return "function" == typeof e;
  111. }
  112. function n(e) {
  113. return "object" == typeof e;
  114. }
  115. function a(e) {
  116. "undefined" != typeof setImmediate
  117. ? setImmediate(e)
  118. : "undefined" != typeof process && process.nextTick
  119. ? process.nextTick(e)
  120. : setTimeout(e, 0);
  121. }
  122. var o;
  123. e[0][e[1]] = function r(e) {
  124. var i,
  125. u = [],
  126. s = [],
  127. c = function(e, t) {
  128. return (
  129. null == i &&
  130. null != e &&
  131. ((i = e),
  132. (u = t),
  133. s.length &&
  134. a(function() {
  135. for (var e = 0; e < s.length; e++) s[e]();
  136. })),
  137. i
  138. );
  139. };
  140. return (
  141. (c.then = function(c, d) {
  142. var l = r(e),
  143. f = function() {
  144. function e(a) {
  145. var r,
  146. i = 0;
  147. try {
  148. if (a && (n(a) || t(a)) && t((r = a.then))) {
  149. if (a === l) throw new TypeError();
  150. r.call(
  151. a,
  152. function() {
  153. i++ || e.apply(o, arguments);
  154. },
  155. function(e) {
  156. i++ || l(!1, [e]);
  157. }
  158. );
  159. } else l(!0, arguments);
  160. } catch (u) {
  161. i++ || l(!1, [u]);
  162. }
  163. }
  164. try {
  165. var a = i ? c : d;
  166. t(a) ? e(a.apply(o, u || [])) : l(i, u);
  167. } catch (r) {
  168. l(!1, [r]);
  169. }
  170. };
  171. return null != i ? a(f) : s.push(f), l;
  172. }),
  173. e && (c = e(c)),
  174. c
  175. );
  176. };
  177. })("undefined" == typeof t ? [window, "pinkySwear"] : [t, "exports"]);
  178. },
  179. {}
  180. ],
  181. qwest: [
  182. function(e, t) {
  183. t.exports = (function() {
  184. var t = "undefined" != typeof window ? window : self,
  185. n = e("pinkyswear"),
  186. a = e("jquery-param"),
  187. o = {},
  188. r = "json",
  189. i = "post",
  190. u = null,
  191. s = 0,
  192. c = [],
  193. d = t.XMLHttpRequest
  194. ? function() {
  195. return new t.XMLHttpRequest();
  196. }
  197. : function() {
  198. return new ActiveXObject("Microsoft.XMLHTTP");
  199. },
  200. l = "" === d().responseType,
  201. f = function(e, f, p, h, m) {
  202. (e = e.toUpperCase()),
  203. (p = void 0 === p ? null : p),
  204. (h = h || {});
  205. for (var g in o)
  206. if (!(g in h))
  207. if ("object" == typeof o[g] && "object" == typeof h[g])
  208. for (var y in o[g]) h[g][y] = o[g][y];
  209. else h[g] = o[g];
  210. var v,
  211. w,
  212. b,
  213. T,
  214. _,
  215. E = !1,
  216. L = !1,
  217. M = !1,
  218. x = 0,
  219. P = {},
  220. k = {
  221. text: "*/*",
  222. xml: "text/xml",
  223. json: "application/json",
  224. post: "application/x-www-form-urlencoded",
  225. document: "text/html"
  226. },
  227. S = {
  228. text: "*/*",
  229. xml: "application/xml; q=1.0, text/xml; q=0.8, */*; q=0.1",
  230. json: "application/json; q=1.0, text/*; q=0.8, */*; q=0.1"
  231. },
  232. q = !1,
  233. j = n(function(n) {
  234. return (
  235. (n.abort = function() {
  236. M ||
  237. (w && 4 != w.readyState && w.abort(),
  238. q && (--s, (q = !1)),
  239. (M = !0));
  240. }),
  241. (n.send = function() {
  242. if (!q) {
  243. if (s == u) return void c.push(n);
  244. if (M) return void (c.length && c.shift().send());
  245. if (
  246. (++s,
  247. (q = !0),
  248. (w = d()),
  249. v &&
  250. ("withCredentials" in w ||
  251. !t.XDomainRequest ||
  252. ((w = new XDomainRequest()),
  253. (L = !0),
  254. "GET" != e && "POST" != e && (e = "POST"))),
  255. L
  256. ? w.open(e, f)
  257. : (w.open(e, f, h.async, h.user, h.password),
  258. l &&
  259. h.async &&
  260. (w.withCredentials = h.withCredentials)),
  261. !L)
  262. )
  263. for (var a in P)
  264. P[a] && w.setRequestHeader(a, P[a]);
  265. if (l && "auto" != h.responseType)
  266. try {
  267. (w.responseType = h.responseType),
  268. (E = w.responseType == h.responseType);
  269. } catch (o) {}
  270. l || L
  271. ? ((w.onload = C),
  272. (w.onerror = O),
  273. L && (w.onprogress = function() {}))
  274. : (w.onreadystatechange = function() {
  275. 4 == w.readyState && C();
  276. }),
  277. h.async
  278. ? "timeout" in w
  279. ? ((w.timeout = h.timeout), (w.ontimeout = R))
  280. : (b = setTimeout(R, h.timeout))
  281. : L && (w.ontimeout = function() {}),
  282. "auto" != h.responseType &&
  283. "overrideMimeType" in w &&
  284. w.overrideMimeType(k[h.responseType]),
  285. m && m(w),
  286. L
  287. ? setTimeout(function() {
  288. w.send("GET" != e ? p : null);
  289. }, 0)
  290. : w.send("GET" != e ? p : null);
  291. }
  292. }),
  293. n
  294. );
  295. }),
  296. C = function() {
  297. var e;
  298. if (
  299. ((q = !1),
  300. clearTimeout(b),
  301. c.length && c.shift().send(),
  302. !M)
  303. ) {
  304. --s;
  305. try {
  306. if (E) {
  307. if ("response" in w && null === w.response)
  308. throw "The request response is empty";
  309. _ = w.response;
  310. } else {
  311. if (((e = h.responseType), "auto" == e))
  312. if (L) e = r;
  313. else {
  314. var n = w.getResponseHeader("Content-Type") || "";
  315. e =
  316. n.indexOf(k.json) > -1
  317. ? "json"
  318. : n.indexOf(k.xml) > -1
  319. ? "xml"
  320. : "text";
  321. }
  322. switch (e) {
  323. case "json":
  324. if (w.responseText.length)
  325. try {
  326. _ =
  327. "JSON" in t
  328. ? JSON.parse(w.responseText)
  329. : new Function(
  330. "return (" + w.responseText + ")"
  331. )();
  332. } catch (a) {
  333. throw "Error while parsing JSON body : " + a;
  334. }
  335. break;
  336. case "xml":
  337. try {
  338. t.DOMParser
  339. ? (_ = new DOMParser().parseFromString(
  340. w.responseText,
  341. "text/xml"
  342. ))
  343. : ((_ = new ActiveXObject(
  344. "Microsoft.XMLDOM"
  345. )),
  346. (_.async = "false"),
  347. _.loadXML(w.responseText));
  348. } catch (a) {
  349. _ = void 0;
  350. }
  351. if (
  352. !_ ||
  353. !_.documentElement ||
  354. _.getElementsByTagName("parsererror").length
  355. )
  356. throw "Invalid XML";
  357. break;
  358. default:
  359. _ = w.responseText;
  360. }
  361. }
  362. if ("status" in w && !/^2|1223/.test(w.status))
  363. throw w.status + " (" + w.statusText + ")";
  364. j(!0, [w, _]);
  365. } catch (a) {
  366. j(!1, [a, w, _]);
  367. }
  368. }
  369. },
  370. O = function(e) {
  371. M ||
  372. ((e = "string" == typeof e ? e : "Connection aborted"),
  373. j.abort(),
  374. j(!1, [new Error(e), w, null]));
  375. },
  376. R = function() {
  377. M ||
  378. (h.attempts && ++x == h.attempts
  379. ? O("Timeout (" + f + ")")
  380. : (w.abort(), (q = !1), j.send()));
  381. };
  382. if (
  383. ((h.async = !("async" in h && !h.async)),
  384. (h.cache = "cache" in h && !!h.cache),
  385. (h.dataType = "dataType" in h ? h.dataType.toLowerCase() : i),
  386. (h.responseType =
  387. "responseType" in h
  388. ? h.responseType.toLowerCase()
  389. : "auto"),
  390. (h.user = h.user || ""),
  391. (h.password = h.password || ""),
  392. (h.withCredentials = !!h.withCredentials),
  393. (h.timeout = "timeout" in h ? parseInt(h.timeout, 10) : 3e4),
  394. (h.attempts = "attempts" in h ? parseInt(h.attempts, 10) : 1),
  395. (T = f.match(/\/\/(.+?)\//)),
  396. (v = T && !!T[1] && T[1] != location.host),
  397. "ArrayBuffer" in t && p instanceof ArrayBuffer
  398. ? (h.dataType = "arraybuffer")
  399. : "Blob" in t && p instanceof Blob
  400. ? (h.dataType = "blob")
  401. : "Document" in t && p instanceof Document
  402. ? (h.dataType = "document")
  403. : "FormData" in t &&
  404. p instanceof FormData &&
  405. (h.dataType = "formdata"),
  406. null !== p)
  407. )
  408. switch (h.dataType) {
  409. case "json":
  410. p = JSON.stringify(p);
  411. break;
  412. case "post":
  413. p = a(p);
  414. }
  415. if (h.headers) {
  416. var D = function(e, t, n) {
  417. return t + n.toUpperCase();
  418. };
  419. for (T in h.headers)
  420. P[T.replace(/(^|-)([^-])/g, D)] = h.headers[T];
  421. }
  422. return (
  423. "Content-Type" in P ||
  424. "GET" == e ||
  425. (h.dataType in k &&
  426. k[h.dataType] &&
  427. (P["Content-Type"] = k[h.dataType])),
  428. P.Accept ||
  429. (P.Accept =
  430. h.responseType in S ? S[h.responseType] : "*/*"),
  431. v ||
  432. "X-Requested-With" in P ||
  433. (P["X-Requested-With"] = "XMLHttpRequest"),
  434. h.cache ||
  435. "Cache-Control" in P ||
  436. (P["Cache-Control"] = "no-cache"),
  437. "GET" == e &&
  438. p &&
  439. "string" == typeof p &&
  440. (f += (/\?/.test(f) ? "&" : "?") + p),
  441. h.async && j.send(),
  442. j
  443. );
  444. },
  445. p = function(e) {
  446. var t = [],
  447. a = 0,
  448. o = [];
  449. return n(function(n) {
  450. var r = -1,
  451. i = function(e) {
  452. return function(i, u, s, c) {
  453. var d = ++r;
  454. return (
  455. ++a,
  456. t.push(
  457. f(e, n.base + i, u, s, c).then(
  458. function() {
  459. (o[d] = arguments),
  460. --a || n(!0, 1 == o.length ? o[0] : [o]);
  461. },
  462. function() {
  463. n(!1, arguments);
  464. }
  465. )
  466. ),
  467. n
  468. );
  469. };
  470. };
  471. (n.get = i("GET")),
  472. (n.post = i("POST")),
  473. (n.put = i("PUT")),
  474. (n["delete"] = i("DELETE")),
  475. (n["catch"] = function(e) {
  476. return n.then(null, e);
  477. }),
  478. (n.complete = function(e) {
  479. var t = function() {
  480. e();
  481. };
  482. return n.then(t, t);
  483. }),
  484. (n.map = function(e, t, n, a, o) {
  485. return i(e.toUpperCase()).call(this, t, n, a, o);
  486. });
  487. for (var u in e) u in n || (n[u] = e[u]);
  488. return (
  489. (n.send = function() {
  490. for (var e = 0, a = t.length; a > e; ++e) t[e].send();
  491. return n;
  492. }),
  493. (n.abort = function() {
  494. for (var e = 0, a = t.length; a > e; ++e) t[e].abort();
  495. return n;
  496. }),
  497. n
  498. );
  499. });
  500. },
  501. h = {
  502. base: "",
  503. get: function() {
  504. return p(h).get.apply(this, arguments);
  505. },
  506. post: function() {
  507. return p(h).post.apply(this, arguments);
  508. },
  509. put: function() {
  510. return p(h).put.apply(this, arguments);
  511. },
  512. delete: function() {
  513. return p(h)["delete"].apply(this, arguments);
  514. },
  515. map: function() {
  516. return p(h).map.apply(this, arguments);
  517. },
  518. xhr2: l,
  519. limit: function(e) {
  520. return (u = e), h;
  521. },
  522. setDefaultOptions: function(e) {
  523. return (o = e), h;
  524. },
  525. setDefaultXdrResponseType: function(e) {
  526. return (r = e.toLowerCase()), h;
  527. },
  528. setDefaultDataType: function(e) {
  529. return (i = e.toLowerCase()), h;
  530. },
  531. getOpenRequests: function() {
  532. return s;
  533. }
  534. };
  535. return h;
  536. })();
  537. },
  538. { "jquery-param": 1, pinkyswear: 2 }
  539. ]
  540. },
  541. {},
  542. [1, 2]
  543. )("qwest");
  544. });
  545. try {
  546. var ce = new window.CustomEvent("test");
  547. if ((ce.preventDefault(), ce.defaultPrevented !== !0))
  548. throw new Error("Could not prevent default");
  549. } catch (e) {
  550. var CustomEvent = function(e, t) {
  551. var n, a;
  552. return (
  553. (t = t || { bubbles: !1, cancelable: !1, detail: void 0 }),
  554. (n = document.createEvent("CustomEvent")),
  555. n.initCustomEvent(e, t.bubbles, t.cancelable, t.detail),
  556. (a = n.preventDefault),
  557. (n.preventDefault = function() {
  558. a.call(this);
  559. try {
  560. Object.defineProperty(this, "defaultPrevented", {
  561. get: function() {
  562. return !0;
  563. }
  564. });
  565. } catch (e) {
  566. this.defaultPrevented = !0;
  567. }
  568. }),
  569. n
  570. );
  571. };
  572. (CustomEvent.prototype = window.Event.prototype),
  573. (window.CustomEvent = CustomEvent);
  574. }
  575. !(function(e) {
  576. var t = function() {
  577. try {
  578. return !!Symbol.iterator;
  579. } catch (e) {
  580. return !1;
  581. }
  582. },
  583. n = t(),
  584. a = function(e) {
  585. var t = {
  586. next: function() {
  587. var t = e.shift();
  588. return { done: void 0 === t, value: t };
  589. }
  590. };
  591. return (
  592. n &&
  593. (t[Symbol.iterator] = function() {
  594. return t;
  595. }),
  596. t
  597. );
  598. },
  599. o = function(e) {
  600. return encodeURIComponent(e).replace(/%20/g, "+");
  601. },
  602. r = function(e) {
  603. return decodeURIComponent(e).replace(/\+/g, " ");
  604. },
  605. i = function() {
  606. var t = function(e) {
  607. if (
  608. (Object.defineProperty(this, "_entries", {
  609. writable: !0,
  610. value: {}
  611. }),
  612. "string" == typeof e)
  613. )
  614. "" !== e && this._fromString(e);
  615. else if (e instanceof t) {
  616. var n = this;
  617. e.forEach(function(e, t) {
  618. n.append(t, e);
  619. });
  620. }
  621. },
  622. i = t.prototype;
  623. (i.append = function(e, t) {
  624. e in this._entries
  625. ? this._entries[e].push(t.toString())
  626. : (this._entries[e] = [t.toString()]);
  627. }),
  628. (i["delete"] = function(e) {
  629. delete this._entries[e];
  630. }),
  631. (i.get = function(e) {
  632. return e in this._entries ? this._entries[e][0] : null;
  633. }),
  634. (i.getAll = function(e) {
  635. return e in this._entries ? this._entries[e].slice(0) : [];
  636. }),
  637. (i.has = function(e) {
  638. return e in this._entries;
  639. }),
  640. (i.set = function(e, t) {
  641. this._entries[e] = [t.toString()];
  642. }),
  643. (i.forEach = function(e, t) {
  644. var n;
  645. for (var a in this._entries)
  646. if (this._entries.hasOwnProperty(a)) {
  647. n = this._entries[a];
  648. for (var o = 0; o < n.length; o++) e.call(t, n[o], a, this);
  649. }
  650. }),
  651. (i.keys = function() {
  652. var e = [];
  653. return (
  654. this.forEach(function(t, n) {
  655. e.push(n);
  656. }),
  657. a(e)
  658. );
  659. }),
  660. (i.values = function() {
  661. var e = [];
  662. return (
  663. this.forEach(function(t) {
  664. e.push(t);
  665. }),
  666. a(e)
  667. );
  668. }),
  669. (i.entries = function() {
  670. var e = [];
  671. return (
  672. this.forEach(function(t, n) {
  673. e.push([n, t]);
  674. }),
  675. a(e)
  676. );
  677. }),
  678. n && (i[Symbol.iterator] = i.entries),
  679. (i.toString = function() {
  680. var e = [];
  681. return (
  682. this.forEach(function(t, n) {
  683. e.push(o(n) + "=" + o(t));
  684. }),
  685. e.join("&")
  686. );
  687. }),
  688. Object.defineProperty(i, "_fromString", {
  689. enumerable: !1,
  690. configurable: !1,
  691. writable: !1,
  692. value: function(e) {
  693. (this._entries = {}), (e = e.replace(/^\?/, ""));
  694. for (var t, n = e.split("&"), a = 0; a < n.length; a++)
  695. (t = n[a].split("=")),
  696. this.append(r(t[0]), t.length > 1 ? r(t[1]) : "");
  697. }
  698. }),
  699. (e.URLSearchParams = t);
  700. };
  701. ("URLSearchParams" in e &&
  702. "a=1" === new URLSearchParams("?a=1").toString()) ||
  703. i(),
  704. "function" != typeof URLSearchParams.prototype.sort &&
  705. (URLSearchParams.prototype.sort = function() {
  706. var e = this,
  707. t = [];
  708. this.forEach(function(n, a) {
  709. t.push([a, n]), e._entries || e["delete"](a);
  710. }),
  711. t.sort(function(e, t) {
  712. return e[0] < t[0] ? -1 : e[0] > t[0] ? 1 : 0;
  713. }),
  714. e._entries && (e._entries = {});
  715. for (var n = 0; n < t.length; n++) this.append(t[n][0], t[n][1]);
  716. });
  717. })(
  718. "undefined" != typeof global
  719. ? global
  720. : "undefined" != typeof window
  721. ? window
  722. : "undefined" != typeof self
  723. ? self
  724. : this
  725. ),
  726. (function(e) {
  727. var t = function() {
  728. try {
  729. var e = new URL("b", "http://a");
  730. return (
  731. (e.pathname = "c%20d"),
  732. "http://a/c%20d" === e.href && e.searchParams
  733. );
  734. } catch (t) {
  735. return !1;
  736. }
  737. },
  738. n = function() {
  739. var t = e.URL,
  740. n = function(t, n) {
  741. "string" != typeof t && (t = String(t));
  742. var a,
  743. o = document;
  744. if (n && (void 0 === e.location || n !== e.location.href)) {
  745. (o = document.implementation.createHTMLDocument("")),
  746. (a = o.createElement("base")),
  747. (a.href = n),
  748. o.head.appendChild(a);
  749. try {
  750. if (0 !== a.href.indexOf(n)) throw new Error(a.href);
  751. } catch (r) {
  752. throw new Error("URL unable to set base " + n + " due to " + r);
  753. }
  754. }
  755. var i = o.createElement("a");
  756. if (
  757. ((i.href = t),
  758. a && (o.body.appendChild(i), (i.href = i.href)),
  759. ":" === i.protocol || !/:/.test(i.href))
  760. )
  761. throw new TypeError("Invalid URL");
  762. Object.defineProperty(this, "_anchorElement", { value: i });
  763. var u = new URLSearchParams(this.search),
  764. s = !0,
  765. c = !0,
  766. d = this;
  767. ["append", "delete", "set"].forEach(function(e) {
  768. var t = u[e];
  769. u[e] = function() {
  770. t.apply(u, arguments),
  771. s && ((c = !1), (d.search = u.toString()), (c = !0));
  772. };
  773. }),
  774. Object.defineProperty(this, "searchParams", {
  775. value: u,
  776. enumerable: !0
  777. });
  778. var l = void 0;
  779. Object.defineProperty(this, "_updateSearchParams", {
  780. enumerable: !1,
  781. configurable: !1,
  782. writable: !1,
  783. value: function() {
  784. this.search !== l &&
  785. ((l = this.search),
  786. c &&
  787. ((s = !1),
  788. this.searchParams._fromString(this.search),
  789. (s = !0)));
  790. }
  791. });
  792. },
  793. a = n.prototype,
  794. o = function(e) {
  795. Object.defineProperty(a, e, {
  796. get: function() {
  797. return this._anchorElement[e];
  798. },
  799. set: function(t) {
  800. this._anchorElement[e] = t;
  801. },
  802. enumerable: !0
  803. });
  804. };
  805. ["hash", "host", "hostname", "port", "protocol"].forEach(function(e) {
  806. o(e);
  807. }),
  808. Object.defineProperty(a, "search", {
  809. get: function() {
  810. return this._anchorElement.search;
  811. },
  812. set: function(e) {
  813. (this._anchorElement.search = e), this._updateSearchParams();
  814. },
  815. enumerable: !0
  816. }),
  817. Object.defineProperties(a, {
  818. toString: {
  819. get: function() {
  820. var e = this;
  821. return function() {
  822. return e.href;
  823. };
  824. }
  825. },
  826. href: {
  827. get: function() {
  828. return this._anchorElement.href.replace(/\?$/, "");
  829. },
  830. set: function(e) {
  831. (this._anchorElement.href = e), this._updateSearchParams();
  832. },
  833. enumerable: !0
  834. },
  835. pathname: {
  836. get: function() {
  837. return this._anchorElement.pathname.replace(/(^\/?)/, "/");
  838. },
  839. set: function(e) {
  840. this._anchorElement.pathname = e;
  841. },
  842. enumerable: !0
  843. },
  844. origin: {
  845. get: function() {
  846. var e = { "http:": 80, "https:": 443, "ftp:": 21 }[
  847. this._anchorElement.protocol
  848. ],
  849. t =
  850. this._anchorElement.port != e &&
  851. "" !== this._anchorElement.port;
  852. return (
  853. this._anchorElement.protocol +
  854. "//" +
  855. this._anchorElement.hostname +
  856. (t ? ":" + this._anchorElement.port : "")
  857. );
  858. },
  859. enumerable: !0
  860. },
  861. password: {
  862. get: function() {
  863. return "";
  864. },
  865. set: function() {},
  866. enumerable: !0
  867. },
  868. username: {
  869. get: function() {
  870. return "";
  871. },
  872. set: function() {},
  873. enumerable: !0
  874. }
  875. }),
  876. (n.createObjectURL = function() {
  877. return t.createObjectURL.apply(t, arguments);
  878. }),
  879. (n.revokeObjectURL = function() {
  880. return t.revokeObjectURL.apply(t, arguments);
  881. }),
  882. (e.URL = n);
  883. };
  884. if ((t() || n(), void 0 !== e.location && !("origin" in e.location))) {
  885. var a = function() {
  886. return (
  887. e.location.protocol +
  888. "//" +
  889. e.location.hostname +
  890. (e.location.port ? ":" + e.location.port : "")
  891. );
  892. };
  893. try {
  894. Object.defineProperty(e.location, "origin", { get: a, enumerable: !0 });
  895. } catch (o) {
  896. setInterval(function() {
  897. e.location.origin = a();
  898. }, 100);
  899. }
  900. }
  901. })(
  902. "undefined" != typeof global
  903. ? global
  904. : "undefined" != typeof window
  905. ? window
  906. : "undefined" != typeof self
  907. ? self
  908. : this
  909. ),
  910. (function(e) {
  911. function t(e, t) {
  912. return e.filter(function(e) {
  913. return (
  914. 0 ===
  915. t.filter(function(t) {
  916. return t.id === e.id;
  917. }).length
  918. );
  919. });
  920. }
  921. function n(t) {
  922. t.forEach(function(t) {
  923. var n = document.querySelector(
  924. '[data-announcement-item-id="' + t.id + '"]'
  925. );
  926. e.util.fade(n, "out", 500, function() {
  927. n.parentNode.removeChild(n);
  928. });
  929. });
  930. }
  931. function a(t, n) {
  932. var a,
  933. r = document.querySelector(".announcement-content"),
  934. i = e.announcementManager.data;
  935. t.forEach(function(t, u) {
  936. var s = document.querySelector(
  937. '[data-announcement-item-id="' + t.id + '"]'
  938. );
  939. s
  940. ? ((a = i.filter(function(e) {
  941. return e.id === t.id;
  942. })[0]),
  943. a.text[e.announcementManager.locale] !== t.text[n] &&
  944. e.util.fade(s, "out", 500, function() {
  945. (s.innerHTML = t.text[n]), e.util.fade(s, "in", 500);
  946. }))
  947. : ((s = o(t, n)),
  948. (s =
  949. 0 === u
  950. ? r.insertAdjacentHTML("afterbegin", s)
  951. : r
  952. .querySelector(".announcement-item:nth-child(" + u + ")")
  953. .insertAdjacentHTML("afterend", s)),
  954. (s = document.querySelector(
  955. '[data-announcement-item-id="' + t.id + '"]'
  956. )),
  957. e.util.fade(s, "out", 500, function() {
  958. e.util.fade(s, "in", 500);
  959. }));
  960. });
  961. }
  962. function o(e, t) {
  963. return [
  964. '<div class="announcement-item" data-announcement-item-id="',
  965. e.id,
  966. '">',
  967. e.text[t],
  968. "</div>"
  969. ].join("");
  970. }
  971. function r() {
  972. var o = e.queueData.content.announcements,
  973. r = e.langManager.locale;
  974. if (0 !== o.length || 0 !== e.announcementManager.data.length) {
  975. var i = t(e.announcementManager.data, o);
  976. i.length > 0 && n(i),
  977. a(o, r),
  978. (e.announcementManager.data = o),
  979. (e.announcementManager.locale = r);
  980. }
  981. }
  982. e.announcementManager = { data: [], locale: "", renderAnnouncements: r };
  983. })(window.PL),
  984. (function(e) {
  985. function t(e, t) {
  986. -1 !== t.indexOf(s) &&
  987. ((e.innerHTML = t.replace(s, "<countdown></countdown>")),
  988. (u = e.querySelector("countdown")),
  989. r(),
  990. (i = setInterval(r, 200)));
  991. }
  992. function n(t, n) {
  993. return e.langManager.translate(t, n);
  994. }
  995. function a() {
  996. var t = e.queueData.start_date,
  997. n = new Date(t).getTime() - new Date().getTime();
  998. return Math.floor(Math.max(n, 0) / 1e3);
  999. }
  1000. function o() {
  1001. var e,
  1002. t,
  1003. o,
  1004. r,
  1005. i,
  1006. u,
  1007. s = [],
  1008. c = " ",
  1009. d = ", ",
  1010. l = c + n("and") + c;
  1011. return (
  1012. (r = a()),
  1013. (i = r),
  1014. (e = Math.floor(r / 86400)),
  1015. i >= 86400 && s.push(e + c + n("day", e)),
  1016. (r -= 86400 * e),
  1017. (t = Math.floor(r / 3600) % 24),
  1018. i >= 3600 && s.push(t + c + n("hour", t)),
  1019. (r -= 3600 * t),
  1020. (o = Math.floor(r / 60) % 60),
  1021. i >= 60 && s.push(o + c + n("minute", o)),
  1022. (r -= 60 * o),
  1023. 0 === e && s.push(r + c + n("second", r)),
  1024. (u = s.pop()),
  1025. s.length ? s.join(d) + l + u : u
  1026. );
  1027. }
  1028. function r() {
  1029. u.innerHTML = o();
  1030. }
  1031. var i = null,
  1032. u = null,
  1033. s = "{countdown}";
  1034. document.addEventListener("page-changed", function(e) {
  1035. var n = e.detail;
  1036. clearInterval(i),
  1037. "not_started" === n.pageName && t(n.element, n.pageHtml);
  1038. });
  1039. })(window.PL),
  1040. (function(e, t) {
  1041. t.isMobileBrowser =
  1042. /(android|bb\d+|meego).+mobile|android|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od|ad)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(
  1043. e
  1044. ) ||
  1045. /1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(
  1046. e.substr(0, 4)
  1047. );
  1048. })(navigator.userAgent || navigator.vendor || window.opera, window.PL),
  1049. (function(e) {
  1050. function t(e) {
  1051. var t = new window.URL(e),
  1052. n = new window.URL(window.location.href),
  1053. a = new window.URLSearchParams(n.hash.slice(1));
  1054. n.searchParams.forEach(function(e, n) {
  1055. t.searchParams.has(n) || t.searchParams.set(n, e);
  1056. }),
  1057. a.has("pld") &&
  1058. !t.searchParams.has("pld") &&
  1059. t.searchParams.set("pld", a.get("pld")),
  1060. (document.location.href = t.toString());
  1061. }
  1062. e.foManager = { loadRedirectURL: t };
  1063. })(window.PL),
  1064. (function(e) {
  1065. function t(e, t) {
  1066. _gaq.push([
  1067. "paylogic._trackTiming",
  1068. "Permanent Queue",
  1069. "AJAX update",
  1070. e,
  1071. t,
  1072. 20
  1073. ]);
  1074. }
  1075. function n(t) {
  1076. o.forEach(function(n) {
  1077. _gaq.push([
  1078. n + "._trackPageview",
  1079. (e.eventName || "default") + "/" + t
  1080. ]);
  1081. });
  1082. }
  1083. function a() {
  1084. o.forEach(function(e) {
  1085. _gaq.push([e + "._trackEvent", "Permanent Queue", "Ping"]);
  1086. });
  1087. }
  1088. var o = [];
  1089. (e.gaManager = { sendGAPage: n, sendGATiming: t }),
  1090. e.analytics.paylogic_tracker_id &&
  1091. (o.push("paylogic"),
  1092. _gaq.push(["paylogic._setAccount", e.analytics.paylogic_tracker_id])),
  1093. e.analytics.event_tracker_id &&
  1094. (o.push("event"),
  1095. _gaq.push(["event._setAccount", e.analytics.event_tracker_id])),
  1096. setInterval(a, 3e5),
  1097. n("landing");
  1098. })(window.PL),
  1099. (function(e) {
  1100. function t() {
  1101. n(o.value), document.dispatchEvent(new CustomEvent("lang-changed"));
  1102. }
  1103. function n(t) {
  1104. (e.langManager.locale = t), o && o.value !== t && (o.value = t);
  1105. }
  1106. function a(t, n) {
  1107. return (
  1108. "number" == typeof n && 1 !== n && (t += "s"),
  1109. e.translations[e.langManager.locale][t]
  1110. );
  1111. }
  1112. var o = document.querySelector("#lang");
  1113. o && o.addEventListener("change", t),
  1114. (e.langManager = { locale: null, setLocale: n, translate: a });
  1115. })(window.PL),
  1116. (function(e) {
  1117. function t(t, n) {
  1118. var a = n[t];
  1119. return a[e.langManager.locale] || a[n.enabled_languages[0]];
  1120. }
  1121. function n(e) {
  1122. return !e || new Date().getTime() >= new Date(e).getTime();
  1123. }
  1124. function a() {
  1125. var a = e.queueData.content,
  1126. o = e.langManager.locale,
  1127. s = "not_started",
  1128. c = t("not_started_page", a);
  1129. n(e.queueData.start_date) &&
  1130. ((s = a.active_page_name), (c = t("active_page", a))),
  1131. (s !== r || o !== i) &&
  1132. (e.util.fade(u, "out", r ? 500 : 0, function() {
  1133. var t = { detail: { element: u, pageHtml: c, pageName: s } };
  1134. (u.innerHTML = c),
  1135. document.dispatchEvent(new CustomEvent("page-changed", t)),
  1136. e.util.fade(u, "in", 500);
  1137. }),
  1138. (r = s),
  1139. (i = o));
  1140. }
  1141. function o() {
  1142. (r = "loading"),
  1143. (u.innerHTML = '<h2 class="loading">Loading…</h2>'),
  1144. e.util.fade(u, "in", 500);
  1145. }
  1146. var r = null,
  1147. i = null,
  1148. u = document.querySelector(".template-content");
  1149. e.pageManager = { renderPage: a, loadingMessage: o };
  1150. })(window.PL),
  1151. (function(e) {
  1152. function t(e) {
  1153. var t =
  1154. e &&
  1155. e.match(/^.*(?:youtu.be\/|v\/|e\/|u\/\w+\/|embed\/|v=)([^#&?]*).*/);
  1156. return t ? t[1] : void 0;
  1157. }
  1158. function n() {
  1159. var e = document.querySelectorAll(".yt-player-control"),
  1160. t = document.querySelector("#un-mute"),
  1161. n = document.querySelector("#pause-play");
  1162. (t.checked = c),
  1163. t.addEventListener("change", o),
  1164. (n.checked = !1),
  1165. n.addEventListener("change", r),
  1166. Array.prototype.forEach.call(e, function(e) {
  1167. e.classList.remove("hide");
  1168. });
  1169. }
  1170. function a() {
  1171. u.getPlayerState() === window.YT.PlayerState.CUED && u.playVideo(),
  1172. u.setVolume(5),
  1173. n(),
  1174. i(),
  1175. window.addEventListener("resize", i);
  1176. }
  1177. function o(e) {
  1178. var t = e.target.checked;
  1179. t ? u.mute() : u.unMute();
  1180. }
  1181. function r(e) {
  1182. var t = e.target.checked;
  1183. t ? u.pauseVideo() : u.playVideo();
  1184. }
  1185. function i() {
  1186. var e,
  1187. t = {},
  1188. n = {},
  1189. a = document.querySelector(".bg-media"),
  1190. o = document.querySelector(".bg-media iframe");
  1191. (t.width = a.offsetWidth),
  1192. (t.height = a.offsetHeight),
  1193. (n.width = t.width),
  1194. (n.height = Math.ceil(Math.ceil(t.width * (9 / 16)))),
  1195. (n.marginTop = -((n.height - t.height) / 2)),
  1196. (n.marginLeft = 0),
  1197. (e = n.height < t.height),
  1198. e &&
  1199. ((n.height = t.height),
  1200. (n.width = Math.floor(Math.floor(t.height * (16 / 9)))),
  1201. (n.marginTop = 0),
  1202. (n.marginLeft = -((n.width - t.width) / 2))),
  1203. (o.style.width = n.width + "px"),
  1204. (o.style.height = n.height + "px"),
  1205. (o.style.marginTop = n.marginTop + "px"),
  1206. (o.style.marginLeft = n.marginLeft + "px");
  1207. }
  1208. var u,
  1209. s = t(e.media.youtube_url),
  1210. c = Boolean(navigator.userAgent.match("Chrome/"));
  1211. s &&
  1212. !e.isMobileBrowser &&
  1213. window.setTimeout(function() {
  1214. var e = document.createElement("script");
  1215. (e.src = "https://www.youtube.com/iframe_api"),
  1216. document.body.appendChild(e);
  1217. }, 500),
  1218. (window.onYouTubeIframeAPIReady = function() {
  1219. u = new window.YT.Player("bgMediaFrame", {
  1220. width: "100%",
  1221. height: "100%",
  1222. playerVars: {
  1223. autoplay: 1,
  1224. controls: 0,
  1225. disablekb: 1,
  1226. loop: 1,
  1227. modestbranding: 1,
  1228. mute: Number(c),
  1229. showinfo: 0,
  1230. rel: 0,
  1231. playlist: s
  1232. },
  1233. videoId: s,
  1234. events: { onReady: a }
  1235. });
  1236. });
  1237. })(window.PL),
  1238. (function(e) {
  1239. function t() {
  1240. var t,
  1241. r = document.createDocumentFragment();
  1242. if (
  1243. e.media.images &&
  1244. 0 !== e.media.images.length &&
  1245. (!e.media.youtube_url || e.isMobileBrowser)
  1246. ) {
  1247. for (var s = 0, c = e.media.images.length; c > s; s++)
  1248. (t = document.createElement("div")),
  1249. t.classList.add("bg-slide"),
  1250. r.appendChild(t),
  1251. u.push(t);
  1252. document.querySelector(".bg-media").appendChild(r),
  1253. n(0),
  1254. (o = setInterval(a, i)),
  1255. a();
  1256. }
  1257. }
  1258. function n(t) {
  1259. var a = new Image();
  1260. t !== e.media.images.length &&
  1261. (a.addEventListener("load", function() {
  1262. var e = u[t];
  1263. (e.style.backgroundImage = ["url(", this.src, ")"].join("")),
  1264. e.classList.add("loaded"),
  1265. n(++t);
  1266. }),
  1267. (a.src = e.media.images[t]));
  1268. }
  1269. function a() {
  1270. var t = document.querySelector(".bg-slide.active");
  1271. return (
  1272. t && t.classList.toggle("active"),
  1273. u[r].classList.toggle("active"),
  1274. 1 === e.media.images.length
  1275. ? void clearInterval(o)
  1276. : (r++, void (r === e.media.images.length && (r = 0)))
  1277. );
  1278. }
  1279. var o,
  1280. r = 0,
  1281. i = 8e3,
  1282. u = [];
  1283. t();
  1284. })(window.PL),
  1285. (function(e) {
  1286. function t(e) {
  1287. var t = document.createElement("iframe");
  1288. return (
  1289. (t.src = "https://open.spotify.com/embed?uri=" + encodeURIComponent(e)),
  1290. t.setAttribute("allow", "encrypted-media"),
  1291. t.setAttribute("allowtransparency", "true"),
  1292. t.setAttribute("frameborder", "0"),
  1293. t.classList.add("pl-spotify"),
  1294. t
  1295. );
  1296. }
  1297. var n, a;
  1298. (a && a === e.media.spotify_embed) ||
  1299. ((a = e.media.spotify_embed),
  1300. n && document.body.removeChild(n),
  1301. a &&
  1302. ((n = t(a)), document.querySelector(".pl-body-footer").appendChild(n)));
  1303. })(window.PL),
  1304. (function(e) {
  1305. e.translations = {
  1306. nl: {
  1307. second: "seconde",
  1308. seconds: "seconden",
  1309. minute: "minuut",
  1310. minutes: "minuten",
  1311. hour: "uur",
  1312. hours: "uur",
  1313. day: "dag",
  1314. days: "dagen",
  1315. and: "en"
  1316. },
  1317. en: {
  1318. second: "second",
  1319. seconds: "seconds",
  1320. minute: "minute",
  1321. minutes: "minutes",
  1322. hour: "hour",
  1323. hours: "hours",
  1324. day: "day",
  1325. days: "days",
  1326. and: "and"
  1327. },
  1328. de: {
  1329. second: "Sekunde",
  1330. seconds: "Sekunden",
  1331. minute: "Minute",
  1332. minutes: "Minuten",
  1333. hour: "Stunde",
  1334. hours: "Stunden",
  1335. day: "Tag",
  1336. days: "Tage",
  1337. and: "und"
  1338. },
  1339. fr: {
  1340. second: "seconde",
  1341. seconds: "secondes",
  1342. minute: "minute",
  1343. minutes: "minutes",
  1344. hour: "heure",
  1345. hours: "heures",
  1346. day: "jour",
  1347. days: "jours",
  1348. and: "et"
  1349. },
  1350. es: {
  1351. second: "segundo",
  1352. seconds: "segundos",
  1353. minute: "minuto",
  1354. minutes: "minutos",
  1355. hour: "hora",
  1356. hours: "horas",
  1357. day: "día",
  1358. days: "días",
  1359. and: "y"
  1360. },
  1361. pt: {
  1362. second: "segundo",
  1363. seconds: "segundos",
  1364. minute: "minuto",
  1365. minutes: "minutos",
  1366. hour: "hora",
  1367. hours: "horas",
  1368. day: "dia",
  1369. days: "dias",
  1370. and: "e"
  1371. }
  1372. };
  1373. })(window.PL),
  1374. (function(e) {
  1375. function t() {
  1376. n(), (l = setTimeout(i, Math.random()));
  1377. }
  1378. function n() {
  1379. var e = new window.URL(window.location.href),
  1380. t = e.searchParams.get("token");
  1381. null !== t &&
  1382. "" !== t &&
  1383. (o(t),
  1384. e.searchParams["delete"]("token"),
  1385. history.replaceState(null, document.title, e.toString()));
  1386. }
  1387. function a(e) {
  1388. var t;
  1389. clearTimeout(p),
  1390. e &&
  1391. ((t = new Date(e).getTime() - new Date().getTime()),
  1392. t > 0 && (p = setTimeout(c, t)));
  1393. }
  1394. function o(e) {
  1395. var t = new Date();
  1396. (h = e),
  1397. t.setMinutes(t.getMinutes() + 10),
  1398. (document.cookie = "token=" + e + "; expires=" + t.toUTCString()),
  1399. r() || (document.cookie = "token=" + e);
  1400. }
  1401. function r() {
  1402. for (
  1403. var e = document.cookie.split(";"), t = 0, n = e.length;
  1404. n > t;
  1405. t++
  1406. ) {
  1407. var a = e[t],
  1408. o = a.substr(0, a.indexOf("="));
  1409. if ("token" == o.replace(/ /g, "")) return a.substr(a.indexOf("=") + 1);
  1410. }
  1411. return h;
  1412. }
  1413. function i() {
  1414. var t = r(),
  1415. n = { now: new Date().getTime() };
  1416. t && (n.token = t),
  1417. e.queueData || (f = setTimeout(e.pageManager.loadingMessage, 1500)),
  1418. qwest
  1419. .get(e.refreshUrl, n)
  1420. .then(function(e, t) {
  1421. clearTimeout(f);
  1422. try {
  1423. d(t, u(n.now));
  1424. } catch (a) {
  1425. s(12e4);
  1426. }
  1427. })
  1428. ["catch"](function() {
  1429. e.gaManager.sendGATiming(u(n.now), "failed"), s();
  1430. });
  1431. }
  1432. function u(e) {
  1433. return new Date().getTime() - e;
  1434. }
  1435. function s(e) {
  1436. clearTimeout(l), (l = setTimeout(i, e || 2e4 * Math.random()));
  1437. }
  1438. function c() {
  1439. e.pageManager.renderPage(), e.announcementManager.renderAnnouncements();
  1440. }
  1441. function d(t, n) {
  1442. 0 === Object.keys(t).length
  1443. ? (e.gaManager.sendGATiming(n, "no data"), s())
  1444. : ((e.queueData = t),
  1445. t.redirect
  1446. ? (o(""),
  1447. e.gaManager.sendGATiming(n, "redirect"),
  1448. e.foManager.loadRedirectURL(t.redirect))
  1449. : (o(t.token || ""),
  1450. a(t.start_date),
  1451. e.gaManager.sendGATiming(n, "success"),
  1452. null === e.langManager.locale &&
  1453. e.langManager.setLocale(t.content.locale),
  1454. c(),
  1455. s(
  1456. t.refresh_seconds
  1457. ? 1e3 * t.refresh_seconds
  1458. : 3e4 + 6e4 * Math.random()
  1459. )));
  1460. }
  1461. var l = null,
  1462. f = null,
  1463. p = null,
  1464. h = null;
  1465. qwest.setDefaultOptions({ responseType: "json", timeout: 6e4, cache: !0 }),
  1466. document.addEventListener("lang-changed", c),
  1467. document.addEventListener("page-changed", function() {
  1468. e.gaManager.sendGAPage(e.queueData.content.active_page_name);
  1469. }),
  1470. t();
  1471. })(window.PL),
  1472. (function(e) {
  1473. function t(e, t, n, a) {
  1474. function o() {
  1475. (i = r ? i + s : i - s),
  1476. (e.style.opacity = i),
  1477. 0 >= i && (e.style.display = "none"),
  1478. (0 >= i || i >= 1) && (clearInterval(c), a && a.call(this));
  1479. }
  1480. var r = "in" === t,
  1481. i = r ? 0 : 1,
  1482. u = 16,
  1483. s = u / n;
  1484. r && ((e.style.display = "block"), (e.style.opacity = i));
  1485. var c = setInterval(o, u);
  1486. }
  1487. e.util = { fade: t };
  1488. })(window.PL);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement