Advertisement
Guest User

Untitled

a guest
Nov 15th, 2018
223
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ! function(e) {
  2.     if ("object" == typeof exports && "undefined" != typeof module) module.exports = e();
  3.     else if ("function" == typeof define && define.amd) define([], e);
  4.     else {
  5.         var n;
  6.         n = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof self ? self : this, n.qwest = e()
  7.     }
  8. }(function() {
  9.     var e;
  10.     return function n(e, t, a) {
  11.         function o(i, u) {
  12.             if (!t[i]) {
  13.                 if (!e[i]) {
  14.                     var s = "function" == typeof require && require;
  15.                     if (!u && s) return s(i, !0);
  16.                     if (r) return r(i, !0);
  17.                     var c = new Error("Cannot find module '" + i + "'");
  18.                     throw c.code = "MODULE_NOT_FOUND", c
  19.                 }
  20.                 var d = t[i] = {
  21.                     exports: {}
  22.                 };
  23.                 e[i][0].call(d.exports, function(n) {
  24.                     var t = e[i][1][n];
  25.                     return o(t ? t : n)
  26.                 }, d, d.exports, n, e, t, a)
  27.             }
  28.             return t[i].exports
  29.         }
  30.         for (var r = "function" == typeof require && require, i = 0; i < a.length; i++) o(a[i]);
  31.         return o
  32.     }({
  33.         1: [function(n, t) {
  34.             ! function(n) {
  35.                 "use strict";
  36.                 var a = function(e) {
  37.                     var n = function(e, n, t) {
  38.                             t = "function" == typeof t ? t() : null === t ? "" : void 0 === t ? "" : t, e[e.length] = encodeURIComponent(n) + "=" + encodeURIComponent(t)
  39.                         },
  40.                         t = function(e, a, o) {
  41.                             var r, i, u;
  42.                             if ("[object Array]" === Object.prototype.toString.call(a))
  43.                                 for (r = 0, i = a.length; i > r; r++) t(e + "[" + ("object" == typeof a[r] ? r : "") + "]", a[r], o);
  44.                             else if (a && "[object Object]" === a.toString())
  45.                                 for (u in a) a.hasOwnProperty(u) && (e ? t(e + "[" + u + "]", a[u], o, n) : t(u, a[u], o, n));
  46.                             else if (e) n(o, e, a);
  47.                             else
  48.                                 for (u in a) n(o, u, a[u]);
  49.                             return o
  50.                         };
  51.                     return t("", e, []).join("&").replace(/%20/g, "+")
  52.                 };
  53.                 "object" == typeof t && "object" == typeof t.exports ? t.exports = a : "function" == typeof e && e.amd ? e([], function() {
  54.                     return a
  55.                 }) : n.param = a
  56.             }(this)
  57.         }, {}],
  58.         2: [function(e, n) {
  59.             ! function(e) {
  60.                 function n(e) {
  61.                     return "function" == typeof e
  62.                 }
  63.  
  64.                 function t(e) {
  65.                     return "object" == typeof e
  66.                 }
  67.  
  68.                 function a(e) {
  69.                     "undefined" != typeof setImmediate ? setImmediate(e) : "undefined" != typeof process && process.nextTick ? process.nextTick(e) : setTimeout(e, 0)
  70.                 }
  71.                 var o;
  72.                 e[0][e[1]] = function r(e) {
  73.                     var i, u = [],
  74.                         s = [],
  75.                         c = function(e, n) {
  76.                             return null == i && null != e && (i = e, u = n, s.length && a(function() {
  77.                                 for (var e = 0; e < s.length; e++) s[e]()
  78.                             })), i
  79.                         };
  80.                     return c.then = function(c, d) {
  81.                         var l = r(e),
  82.                             f = function() {
  83.                                 function e(a) {
  84.                                     var r, i = 0;
  85.                                     try {
  86.                                         if (a && (t(a) || n(a)) && n(r = a.then)) {
  87.                                             if (a === l) throw new TypeError;
  88.                                             r.call(a, function() {
  89.                                                 i++ || e.apply(o, arguments)
  90.                                             }, function(e) {
  91.                                                 i++ || l(!1, [e])
  92.                                             })
  93.                                         } else l(!0, arguments)
  94.                                     } catch (u) {
  95.                                         i++ || l(!1, [u])
  96.                                     }
  97.                                 }
  98.                                 try {
  99.                                     var a = i ? c : d;
  100.                                     n(a) ? e(a.apply(o, u || [])) : l(i, u)
  101.                                 } catch (r) {
  102.                                     l(!1, [r])
  103.                                 }
  104.                             };
  105.                         return null != i ? a(f) : s.push(f), l
  106.                     }, e && (c = e(c)), c
  107.                 }
  108.             }("undefined" == typeof n ? [window, "pinkySwear"] : [n, "exports"])
  109.         }, {}],
  110.         qwest: [function(e, n) {
  111.             n.exports = function() {
  112.                 var n = "undefined" != typeof window ? window : self,
  113.                     t = e("pinkyswear"),
  114.                     a = e("jquery-param"),
  115.                     o = {},
  116.                     r = "json",
  117.                     i = "post",
  118.                     u = null,
  119.                     s = 0,
  120.                     c = [],
  121.                     d = n.XMLHttpRequest ? function() {
  122.                         return new n.XMLHttpRequest
  123.                     } : function() {
  124.                         return new ActiveXObject("Microsoft.XMLHTTP")
  125.                     },
  126.                     l = "" === d().responseType,
  127.                     f = function(e, f, p, m, g) {
  128.                         e = e.toUpperCase(), p = void 0 === p ? null : p, m = m || {};
  129.                         for (var h in o)
  130.                             if (!(h in m))
  131.                                 if ("object" == typeof o[h] && "object" == typeof m[h])
  132.                                     for (var y in o[h]) m[h][y] = o[h][y];
  133.                                 else m[h] = o[h];
  134.                         var v, w, b, T, M, x = !1,
  135.                             k = !1,
  136.                             q = !1,
  137.                             L = 0,
  138.                             E = {},
  139.                             _ = {
  140.                                 text: "*/*",
  141.                                 xml: "text/xml",
  142.                                 json: "application/json",
  143.                                 post: "application/x-www-form-urlencoded",
  144.                                 document: "text/html"
  145.                             },
  146.                             j = {
  147.                                 text: "*/*",
  148.                                 xml: "application/xml; q=1.0, text/xml; q=0.8, */*; q=0.1",
  149.                                 json: "application/json; q=1.0, text/*; q=0.8, */*; q=0.1"
  150.                             },
  151.                             C = !1,
  152.                             D = t(function(t) {
  153.                                 return t.abort = function() {
  154.                                     q || (w && 4 != w.readyState && w.abort(), C && (--s, C = !1), q = !0)
  155.                                 }, t.send = function() {
  156.                                     if (!C) {
  157.                                         if (s == u) return void c.push(t);
  158.                                         if (q) return void(c.length && c.shift().send());
  159.                                         if (++s, C = !0, w = d(), v && ("withCredentials" in w || !n.XDomainRequest || (w = new XDomainRequest, k = !0, "GET" != e && "POST" != e && (e = "POST"))), k ? w.open(e, f) : (w.open(e, f, m.async, m.user, m.password), l && m.async && (w.withCredentials = m.withCredentials)), !k)
  160.                                             for (var a in E) E[a] && w.setRequestHeader(a, E[a]);
  161.                                         if (l && "auto" != m.responseType) try {
  162.                                             w.responseType = m.responseType, x = w.responseType == m.responseType
  163.                                         } catch (o) {}
  164.                                         l || k ? (w.onload = P, w.onerror = S, k && (w.onprogress = function() {})) : w.onreadystatechange = function() {
  165.                                             4 == w.readyState && P()
  166.                                         }, m.async ? "timeout" in w ? (w.timeout = m.timeout, w.ontimeout = O) : b = setTimeout(O, m.timeout) : k && (w.ontimeout = function() {}), "auto" != m.responseType && "overrideMimeType" in w && w.overrideMimeType(_[m.responseType]), g && g(w), k ? setTimeout(function() {
  167.                                             w.send("GET" != e ? p : null)
  168.                                         }, 0) : w.send("GET" != e ? p : null)
  169.                                     }
  170.                                 }, t
  171.                             }),
  172.                             P = function() {
  173.                                 var e;
  174.                                 if (C = !1, clearTimeout(b), c.length && c.shift().send(), !q) {
  175.                                     --s;
  176.                                     try {
  177.                                         if (x) {
  178.                                             if ("response" in w && null === w.response) throw "The request response is empty";
  179.                                             M = w.response
  180.                                         } else {
  181.                                             if (e = m.responseType, "auto" == e)
  182.                                                 if (k) e = r;
  183.                                                 else {
  184.                                                     var t = w.getResponseHeader("Content-Type") || "";
  185.                                                     e = t.indexOf(_.json) > -1 ? "json" : t.indexOf(_.xml) > -1 ? "xml" : "text"
  186.                                                 } switch (e) {
  187.                                                 case "json":
  188.                                                     if (w.responseText.length) try {
  189.                                                         M = "JSON" in n ? JSON.parse(w.responseText) : new Function("return (" + w.responseText + ")")()
  190.                                                     } catch (a) {
  191.                                                         throw "Error while parsing JSON body : " + a
  192.                                                     }
  193.                                                     break;
  194.                                                 case "xml":
  195.                                                     try {
  196.                                                         n.DOMParser ? M = (new DOMParser).parseFromString(w.responseText, "text/xml") : (M = new ActiveXObject("Microsoft.XMLDOM"), M.async = "false", M.loadXML(w.responseText))
  197.                                                     } catch (a) {
  198.                                                         M = void 0
  199.                                                     }
  200.                                                     if (!M || !M.documentElement || M.getElementsByTagName("parsererror").length) throw "Invalid XML";
  201.                                                     break;
  202.                                                 default:
  203.                                                     M = w.responseText
  204.                                             }
  205.                                         }
  206.                                         if ("status" in w && !/^2|1223/.test(w.status)) throw w.status + " (" + w.statusText + ")";
  207.                                         D(!0, [w, M])
  208.                                     } catch (a) {
  209.                                         D(!1, [a, w, M])
  210.                                     }
  211.                                 }
  212.                             },
  213.                             S = function(e) {
  214.                                 q || (e = "string" == typeof e ? e : "Connection aborted", D.abort(), D(!1, [new Error(e), w, null]))
  215.                             },
  216.                             O = function() {
  217.                                 q || (m.attempts && ++L == m.attempts ? S("Timeout (" + f + ")") : (w.abort(), C = !1, D.send()))
  218.                             };
  219.                         if (m.async = !("async" in m && !m.async), m.cache = "cache" in m && !!m.cache, m.dataType = "dataType" in m ? m.dataType.toLowerCase() : i, m.responseType = "responseType" in m ? m.responseType.toLowerCase() : "auto", m.user = m.user || "", m.password = m.password || "", m.withCredentials = !!m.withCredentials, m.timeout = "timeout" in m ? parseInt(m.timeout, 10) : 3e4, m.attempts = "attempts" in m ? parseInt(m.attempts, 10) : 1, T = f.match(/\/\/(.+?)\//), v = T && !!T[1] && T[1] != location.host, "ArrayBuffer" in n && p instanceof ArrayBuffer ? m.dataType = "arraybuffer" : "Blob" in n && p instanceof Blob ? m.dataType = "blob" : "Document" in n && p instanceof Document ? m.dataType = "document" : "FormData" in n && p instanceof FormData && (m.dataType = "formdata"), null !== p) switch (m.dataType) {
  220.                             case "json":
  221.                                 p = JSON.stringify(p);
  222.                                 break;
  223.                             case "post":
  224.                                 p = a(p)
  225.                         }
  226.                         if (m.headers) {
  227.                             var A = function(e, n, t) {
  228.                                 return n + t.toUpperCase()
  229.                             };
  230.                             for (T in m.headers) E[T.replace(/(^|-)([^-])/g, A)] = m.headers[T]
  231.                         }
  232.                         return "Content-Type" in E || "GET" == e || m.dataType in _ && _[m.dataType] && (E["Content-Type"] = _[m.dataType]), E.Accept || (E.Accept = m.responseType in j ? j[m.responseType] : "*/*"), v || "X-Requested-With" in E || (E["X-Requested-With"] = "XMLHttpRequest"), m.cache || "Cache-Control" in E || (E["Cache-Control"] = "no-cache"), "GET" == e && p && "string" == typeof p && (f += (/\?/.test(f) ? "&" : "?") + p), m.async && D.send(), D
  233.                     },
  234.                     p = function(e) {
  235.                         var n = [],
  236.                             a = 0,
  237.                             o = [];
  238.                         return t(function(t) {
  239.                             var r = -1,
  240.                                 i = function(e) {
  241.                                     return function(i, u, s, c) {
  242.                                         var d = ++r;
  243.                                         return ++a, n.push(f(e, t.base + i, u, s, c).then(function() {
  244.                                             o[d] = arguments, --a || t(!0, 1 == o.length ? o[0] : [o])
  245.                                         }, function() {
  246.                                             t(!1, arguments)
  247.                                         })), t
  248.                                     }
  249.                                 };
  250.                             t.get = i("GET"), t.post = i("POST"), t.put = i("PUT"), t["delete"] = i("DELETE"), t["catch"] = function(e) {
  251.                                 return t.then(null, e)
  252.                             }, t.complete = function(e) {
  253.                                 var n = function() {
  254.                                     e()
  255.                                 };
  256.                                 return t.then(n, n)
  257.                             }, t.map = function(e, n, t, a, o) {
  258.                                 return i(e.toUpperCase()).call(this, n, t, a, o)
  259.                             };
  260.                             for (var u in e) u in t || (t[u] = e[u]);
  261.                             return t.send = function() {
  262.                                 for (var e = 0, a = n.length; a > e; ++e) n[e].send();
  263.                                 return t
  264.                             }, t.abort = function() {
  265.                                 for (var e = 0, a = n.length; a > e; ++e) n[e].abort();
  266.                                 return t
  267.                             }, t
  268.                         })
  269.                     },
  270.                     m = {
  271.                         base: "",
  272.                         get: function() {
  273.                             return p(m).get.apply(this, arguments)
  274.                         },
  275.                         post: function() {
  276.                             return p(m).post.apply(this, arguments)
  277.                         },
  278.                         put: function() {
  279.                             return p(m).put.apply(this, arguments)
  280.                         },
  281.                         "delete": function() {
  282.                             return p(m)["delete"].apply(this, arguments)
  283.                         },
  284.                         map: function() {
  285.                             return p(m).map.apply(this, arguments)
  286.                         },
  287.                         xhr2: l,
  288.                         limit: function(e) {
  289.                             return u = e, m
  290.                         },
  291.                         setDefaultOptions: function(e) {
  292.                             return o = e, m
  293.                         },
  294.                         setDefaultXdrResponseType: function(e) {
  295.                             return r = e.toLowerCase(), m
  296.                         },
  297.                         setDefaultDataType: function(e) {
  298.                             return i = e.toLowerCase(), m
  299.                         },
  300.                         getOpenRequests: function() {
  301.                             return s
  302.                         }
  303.                     };
  304.                 return m
  305.             }()
  306.         }, {
  307.             "jquery-param": 1,
  308.             pinkyswear: 2
  309.         }]
  310.     }, {}, [1, 2])("qwest")
  311. });
  312. try {
  313.     var ce = new window.CustomEvent("test");
  314.     if (ce.preventDefault(), ce.defaultPrevented !== !0) throw new Error("Could not prevent default")
  315. } catch (e) {
  316.     var CustomEvent = function(e, n) {
  317.         var t, a;
  318.         return n = n || {
  319.             bubbles: !1,
  320.             cancelable: !1,
  321.             detail: void 0
  322.         }, t = document.createEvent("CustomEvent"), t.initCustomEvent(e, n.bubbles, n.cancelable, n.detail), a = t.preventDefault, t.preventDefault = function() {
  323.             a.call(this);
  324.             try {
  325.                 Object.defineProperty(this, "defaultPrevented", {
  326.                     get: function() {
  327.                         return !0
  328.                     }
  329.                 })
  330.             } catch (e) {
  331.                 this.defaultPrevented = !0
  332.             }
  333.         }, t
  334.     };
  335.     CustomEvent.prototype = window.Event.prototype, window.CustomEvent = CustomEvent
  336. }! function(e) {
  337.     function n(e, n) {
  338.         return e.filter(function(e) {
  339.             return 0 === n.filter(function(n) {
  340.                 return n.id === e.id
  341.             }).length
  342.         })
  343.     }
  344.  
  345.     function t(n) {
  346.         n.forEach(function(n) {
  347.             var t = document.querySelector('[data-announcement-item-id="' + n.id + '"]');
  348.             e.util.fade(t, "out", 500, function() {
  349.                 t.parentNode.removeChild(t)
  350.             })
  351.         })
  352.     }
  353.  
  354.     function a(n, t) {
  355.         var a, r = document.querySelector(".announcement-content"),
  356.             i = e.announcementManager.data;
  357.         n.forEach(function(n, u) {
  358.             var s = document.querySelector('[data-announcement-item-id="' + n.id + '"]');
  359.             s ? (a = i.filter(function(e) {
  360.                 return e.id === n.id
  361.             })[0], a.text[e.announcementManager.locale] !== n.text[t] && e.util.fade(s, "out", 500, function() {
  362.                 s.innerHTML = n.text[t], e.util.fade(s, "in", 500)
  363.             })) : (s = o(n, t), s = 0 === u ? r.insertAdjacentHTML("afterbegin", s) : r.querySelector(".announcement-item:nth-child(" + u + ")").insertAdjacentHTML("afterend", s), s = document.querySelector('[data-announcement-item-id="' + n.id + '"]'), e.util.fade(s, "out", 500, function() {
  364.                 e.util.fade(s, "in", 500)
  365.             }))
  366.         })
  367.     }
  368.  
  369.     function o(e, n) {
  370.         return ['<div class="announcement-item" data-announcement-item-id="', e.id, '">', e.text[n], "</div>"].join("")
  371.     }
  372.  
  373.     function r() {
  374.         var o = e.queueData.content.announcements,
  375.             r = e.langManager.locale;
  376.         if (0 !== o.length || 0 !== e.announcementManager.data.length) {
  377.             var i = n(e.announcementManager.data, o);
  378.             i.length > 0 && t(i), a(o, r), e.announcementManager.data = o, e.announcementManager.locale = r
  379.         }
  380.     }
  381.     e.announcementManager = {
  382.         data: [],
  383.         locale: "",
  384.         renderAnnouncements: r
  385.     }
  386. }(window.PL),
  387. function(e) {
  388.     function n(e, n) {
  389.         -1 !== n.indexOf(s) && (e.innerHTML = n.replace(s, "<countdown></countdown>"), u = e.querySelector("countdown"), r(), i = setInterval(r, 200))
  390.     }
  391.  
  392.     function t(n, t) {
  393.         return e.langManager.translate(n, t)
  394.     }
  395.  
  396.     function a() {
  397.         var n = e.queueData.start_date,
  398.             t = new Date(n).getTime() - (new Date).getTime();
  399.         return Math.floor(Math.max(t, 0) / 1e3)
  400.     }
  401.  
  402.     function o() {
  403.         var e, n, o, r, i, u, s = [],
  404.             c = " ",
  405.             d = ", ",
  406.             l = c + t("and") + c;
  407.         return r = a(), i = r, e = Math.floor(r / 86400), i >= 86400 && s.push(e + c + t("day", e)), r -= 86400 * e, n = Math.floor(r / 3600) % 24, i >= 3600 && s.push(n + c + t("hour", n)), r -= 3600 * n, o = Math.floor(r / 60) % 60, i >= 60 && s.push(o + c + t("minute", o)), r -= 60 * o, 0 === e && s.push(r + c + t("second", r)), u = s.pop(), s.length ? s.join(d) + l + u : u
  408.     }
  409.  
  410.     function r() {
  411.         u.innerHTML = o()
  412.     }
  413.     var i = null,
  414.         u = null,
  415.         s = "{countdown}";
  416.     document.addEventListener("page-changed", function(e) {
  417.         var t = e.detail;
  418.         clearInterval(i), "not_started" === t.pageName && n(t.element, t.pageHtml)
  419.     })
  420. }(window.PL),
  421. function(e, n) {
  422.     n.isMobileBrowser = /(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(e) || /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(e.substr(0, 4))
  423. }(navigator.userAgent || navigator.vendor || window.opera, window.PL),
  424. function(e) {
  425.     function n() {
  426.         var e = {};
  427.         return window.location.search.replace(/([^?=&]+)(=([^&]*))?/g, function(n, t, a, o) {
  428.             e[t] = o
  429.         }), e
  430.     }
  431.  
  432.     function t(e) {
  433.         return delete e.event_id, delete e.point_of_sale_id, delete e.token, e
  434.     }
  435.  
  436.     function a(e) {
  437.         var n, t = "";
  438.         for (n in e) t += "&" + n + "=" + e[n];
  439.         return t
  440.     }
  441.  
  442.     function o(e) {
  443.         var o, r = t(n());
  444.         r = i(r), o = a(r), e += o, document.location.href = e
  445.     }
  446.     e.foManager = {
  447.         loadFrontoffice: o
  448.     };
  449.     var r = function(e) {
  450.             var n = {};
  451.             return e.replace(/([^#&]+)/g, function(e) {
  452.                 var t = e.split(/=(.+)?/),
  453.                     a = t[0],
  454.                     o = t[1];
  455.                 n[a] = o
  456.             }), n
  457.         },
  458.         i = function(e) {
  459.             var n = r(window.location.hash);
  460.             return e.pld = n.pld, e
  461.         }
  462. }(window.PL),
  463. function(e) {
  464.     function n(e, n) {
  465.         _gaq.push(["paylogic._trackTiming", "Permanent Queue", "AJAX update", e, n, 20])
  466.     }
  467.  
  468.     function t(n) {
  469.         o.forEach(function(t) {
  470.             _gaq.push([t + "._trackPageview", (e.eventName || "default") + "/" + n])
  471.         })
  472.     }
  473.  
  474.     function a() {
  475.         o.forEach(function(e) {
  476.             _gaq.push([e + "._trackEvent", "Permanent Queue", "Ping"])
  477.         })
  478.     }
  479.     var o = [];
  480.     e.gaManager = {
  481.         sendGAPage: t,
  482.         sendGATiming: n
  483.     }, e.analytics.paylogic_tracker_id && (o.push("paylogic"), _gaq.push(["paylogic._setAccount", e.analytics.paylogic_tracker_id])), e.analytics.event_tracker_id && (o.push("event"), _gaq.push(["event._setAccount", e.analytics.event_tracker_id])), setInterval(a, 3e5), t("landing")
  484. }(window.PL),
  485. function(e) {
  486.     function n() {
  487.         t(o.value), document.dispatchEvent(new CustomEvent("lang-changed"))
  488.     }
  489.  
  490.     function t(n) {
  491.         e.langManager.locale = n, o && o.value !== n && (o.value = n)
  492.     }
  493.  
  494.     function a(n, t) {
  495.         return "number" == typeof t && 1 !== t && (n += "s"), e.translations[e.langManager.locale][n]
  496.     }
  497.     var o = document.querySelector("#lang");
  498.     o && o.addEventListener("change", n), e.langManager = {
  499.         locale: null,
  500.         setLocale: t,
  501.         translate: a
  502.     }
  503. }(window.PL),
  504. function(e) {
  505.     function n(n, t) {
  506.         var a = t[n];
  507.         return a[e.langManager.locale] || a[t.enabled_languages[0]]
  508.     }
  509.  
  510.     function t(e) {
  511.         return !e || (new Date).getTime() >= new Date(e).getTime()
  512.     }
  513.  
  514.     function a() {
  515.         var a = e.queueData.content,
  516.             o = e.langManager.locale,
  517.             s = "not_started",
  518.             c = n("not_started_page", a);
  519.         t(e.queueData.start_date) && (s = a.active_page_name, c = n("active_page", a)), (s !== r || o !== i) && (e.util.fade(u, "out", r ? 500 : 0, function() {
  520.             var n = {
  521.                 detail: {
  522.                     element: u,
  523.                     pageHtml: c,
  524.                     pageName: s
  525.                 }
  526.             };
  527.             u.innerHTML = c, document.dispatchEvent(new CustomEvent("page-changed", n)), e.util.fade(u, "in", 500)
  528.         }), r = s, i = o)
  529.     }
  530.  
  531.     function o() {
  532.         r = "loading", u.innerHTML = '<h2 class="loading">Loading…</h2>', e.util.fade(u, "in", 500)
  533.     }
  534.     var r = null,
  535.         i = null,
  536.         u = document.querySelector(".template-content");
  537.     e.pageManager = {
  538.         renderPage: a,
  539.         loadingMessage: o
  540.     }
  541. }(window.PL),
  542. function(e) {
  543.     function n(e) {
  544.         var n = e && e.match(/^.*(?:youtu.be\/|v\/|e\/|u\/\w+\/|embed\/|v=)([^#&?]*).*/);
  545.         return n ? n[1] : void 0
  546.     }
  547.  
  548.     function t() {
  549.         var e = document.querySelectorAll(".yt-player-control"),
  550.             n = document.querySelector("#un-mute"),
  551.             t = document.querySelector("#pause-play");
  552.         n.checked = c, n.addEventListener("change", o), t.checked = !1, t.addEventListener("change", r), Array.prototype.forEach.call(e, function(e) {
  553.             e.classList.remove("hide")
  554.         })
  555.     }
  556.  
  557.     function a() {
  558.         u.getPlayerState() === window.YT.PlayerState.CUED && u.playVideo(), u.setVolume(5), t(), i(), window.addEventListener("resize", i)
  559.     }
  560.  
  561.     function o(e) {
  562.         var n = e.target.checked;
  563.         n ? u.mute() : u.unMute()
  564.     }
  565.  
  566.     function r(e) {
  567.         var n = e.target.checked;
  568.         n ? u.pauseVideo() : u.playVideo()
  569.     }
  570.  
  571.     function i() {
  572.         var e, n = {},
  573.             t = {},
  574.             a = document.querySelector(".bg-media"),
  575.             o = document.querySelector(".bg-media iframe");
  576.         n.width = a.offsetWidth, n.height = a.offsetHeight, t.width = n.width, t.height = Math.ceil(Math.ceil(n.width * (9 / 16))), t.marginTop = -((t.height - n.height) / 2), t.marginLeft = 0, e = t.height < n.height, e && (t.height = n.height, t.width = Math.floor(Math.floor(n.height * (16 / 9))), t.marginTop = 0, t.marginLeft = -((t.width - n.width) / 2)), o.style.width = t.width + "px", o.style.height = t.height + "px", o.style.marginTop = t.marginTop + "px", o.style.marginLeft = t.marginLeft + "px"
  577.     }
  578.     var u, s = n(e.media.youtube_url),
  579.         c = Boolean(navigator.userAgent.match("Chrome/"));
  580.     s && !e.isMobileBrowser && window.setTimeout(function() {
  581.         var e = document.createElement("script");
  582.         e.src = "https://www.youtube.com/iframe_api", document.body.appendChild(e)
  583.     }, 500), window.onYouTubeIframeAPIReady = function() {
  584.         u = new window.YT.Player("bgMediaFrame", {
  585.             width: "100%",
  586.             height: "100%",
  587.             playerVars: {
  588.                 autoplay: 1,
  589.                 controls: 0,
  590.                 disablekb: 1,
  591.                 loop: 1,
  592.                 modestbranding: 1,
  593.                 mute: Number(c),
  594.                 showinfo: 0,
  595.                 rel: 0,
  596.                 playlist: s
  597.             },
  598.             videoId: s,
  599.             events: {
  600.                 onReady: a
  601.             }
  602.         })
  603.     }
  604. }(window.PL),
  605. function(e) {
  606.     function n() {
  607.         var n, r = document.createDocumentFragment();
  608.         if (e.media.images && 0 !== e.media.images.length && (!e.media.youtube_url || e.isMobileBrowser)) {
  609.             for (var s = 0, c = e.media.images.length; c > s; s++) n = document.createElement("div"), n.classList.add("bg-slide"), r.appendChild(n), u.push(n);
  610.             document.querySelector(".bg-media").appendChild(r), t(0), o = setInterval(a, i), a()
  611.         }
  612.     }
  613.  
  614.     function t(n) {
  615.         var a = new Image;
  616.         n !== e.media.images.length && (a.addEventListener("load", function() {
  617.             var e = u[n];
  618.             e.style.backgroundImage = ["url(", this.src, ")"].join(""), e.classList.add("loaded"), t(++n)
  619.         }), a.src = e.media.images[n])
  620.     }
  621.  
  622.     function a() {
  623.         var n = document.querySelector(".bg-slide.active");
  624.         return n && n.classList.toggle("active"), u[r].classList.toggle("active"), 1 === e.media.images.length ? void clearInterval(o) : (r++, void(r === e.media.images.length && (r = 0)))
  625.     }
  626.     var o, r = 0,
  627.         i = 8e3,
  628.         u = [];
  629.     n()
  630. }(window.PL),
  631. function(e) {
  632.     e.translations = {
  633.         nl: {
  634.             second: "seconde",
  635.             seconds: "seconden",
  636.             minute: "minuut",
  637.             minutes: "minuten",
  638.             hour: "uur",
  639.             hours: "uur",
  640.             day: "dag",
  641.             days: "dagen",
  642.             and: "en"
  643.         },
  644.         en: {
  645.             second: "second",
  646.             seconds: "seconds",
  647.             minute: "minute",
  648.             minutes: "minutes",
  649.             hour: "hour",
  650.             hours: "hours",
  651.             day: "day",
  652.             days: "days",
  653.             and: "and"
  654.         },
  655.         de: {
  656.             second: "Sekunde",
  657.             seconds: "Sekunden",
  658.             minute: "Minute",
  659.             minutes: "Minuten",
  660.             hour: "Stunde",
  661.             hours: "Stunden",
  662.             day: "Tag",
  663.             days: "Tage",
  664.             and: "und"
  665.         },
  666.         fr: {
  667.             second: "seconde",
  668.             seconds: "secondes",
  669.             minute: "minute",
  670.             minutes: "minutes",
  671.             hour: "heure",
  672.             hours: "heures",
  673.             day: "jour",
  674.             days: "jours",
  675.             and: "et"
  676.         },
  677.         es: {
  678.             second: "segundo",
  679.             seconds: "segundos",
  680.             minute: "minuto",
  681.             minutes: "minutos",
  682.             hour: "hora",
  683.             hours: "horas",
  684.             day: "día",
  685.             days: "días",
  686.             and: "y"
  687.         },
  688.         pt: {
  689.             second: "segundo",
  690.             seconds: "segundos",
  691.             minute: "minuto",
  692.             minutes: "minutos",
  693.             hour: "hora",
  694.             hours: "horas",
  695.             day: "dia",
  696.             days: "dias",
  697.             and: "e"
  698.         }
  699.     }
  700. }(window.PL),
  701. function(e) {
  702.     function n(e) {
  703.         var n;
  704.         clearTimeout(l), e && (n = new Date(e).getTime() - (new Date).getTime(), n > 0 && (l = setTimeout(u, n)))
  705.     }
  706.  
  707.     function t(e) {
  708.         var n = new Date;
  709.         f = e, n.setMinutes(n.getMinutes() + 10), document.cookie = "token=" + e + "; expires=" + n.toUTCString(), a() || (document.cookie = "token=" + e)
  710.     }
  711.  
  712.     function a() {
  713.         for (var e = document.cookie.split(";"), n = 0, t = e.length; t > n; n++) {
  714.             var a = e[n],
  715.                 o = a.substr(0, a.indexOf("="));
  716.             if ("token" == o.replace(/ /g, "")) return a.substr(a.indexOf("=") + 1)
  717.         }
  718.         return f
  719.     }
  720.  
  721.     function o() {
  722.         var n = a(),
  723.             t = {
  724.                 now: (new Date).getTime()
  725.             };
  726.         n && (t.token = n), e.queueData || (d = setTimeout(e.pageManager.loadingMessage, 1500)), qwest.get(e.refreshUrl, t).then(function(e, n) {
  727.             clearTimeout(d);
  728.             try {
  729.                 s(n, r(t.now))
  730.             } catch (a) {
  731.                 i(12e4)
  732.             }
  733.         })["catch"](function() {
  734.             e.gaManager.sendGATiming(r(t.now), "failed"), i()
  735.         })
  736.     }
  737.  
  738.     function r(e) {
  739.         return (new Date).getTime() - e
  740.     }
  741.  
  742.     function i(e) {
  743.         clearTimeout(c), c = setTimeout(o, e || 2e4 * Math.random())
  744.     }
  745.  
  746.     function u() {
  747.         e.pageManager.renderPage(), e.announcementManager.renderAnnouncements()
  748.     }
  749.  
  750.     function s(a, o) {
  751.         0 === Object.keys(a).length ? (e.gaManager.sendGATiming(o, "no data"), i()) : (e.queueData = a, a.redirect ? (t(""), e.gaManager.sendGATiming(o, "redirect"), e.foManager.loadFrontoffice(a.redirect)) : (t(a.token || ""), n(a.start_date), e.gaManager.sendGATiming(o, "success"), null === e.langManager.locale && e.langManager.setLocale(a.content.locale), u(), i(a.refresh_seconds ? 1e3 * a.refresh_seconds : 3e4 + 6e4 * Math.random())))
  752.     }
  753.     var c = null,
  754.         d = null,
  755.         l = null,
  756.         f = null;
  757.     qwest.setDefaultOptions({
  758.         responseType: "json",
  759.         timeout: 6e4,
  760.         cache: !0
  761.     }), c = setTimeout(o, Math.random()), document.addEventListener("lang-changed", u), document.addEventListener("page-changed", function() {
  762.         e.gaManager.sendGAPage(e.queueData.content.active_page_name)
  763.     })
  764. }(window.PL),
  765. function(e) {
  766.     function n(e, n, t, a) {
  767.         function o() {
  768.             i = r ? i + s : i - s, e.style.opacity = i, 0 >= i && (e.style.display = "none"), (0 >= i || i >= 1) && (clearInterval(c), a && a.call(this))
  769.         }
  770.         var r = "in" === n,
  771.             i = r ? 0 : 1,
  772.             u = 16,
  773.             s = u / t;
  774.         r && (e.style.display = "block", e.style.opacity = i);
  775.         var c = setInterval(o, u)
  776.     }
  777.     e.util = {
  778.         fade: n
  779.     }
  780. }(window.PL);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement