-
Notifications
You must be signed in to change notification settings - Fork 4
/
server-response.423d32b49e34e8d243b8.bundle.js
1 lines (1 loc) · 2.27 KB
/
server-response.423d32b49e34e8d243b8.bundle.js
1
!function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=3)}([,,,function(e,t,r){"use strict";r.r(t);r(4);function n(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)))return;var r=[],n=!0,o=!1,a=void 0;try{for(var i,u=e[Symbol.iterator]();!(n=(i=u.next()).done)&&(r.push(i.value),!t||r.length!==t);n=!0);}catch(e){o=!0,a=e}finally{try{n||null==u.return||u.return()}finally{if(o)throw a}}return r}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}window.addEventListener("load",(function(){var e,t=document.getElementById("container"),r=new URLSearchParams(window.location.search.slice(1));if(r.get("type")){switch(r.get("type")){case"error":e=a("error-template");break;case"player-registered":e=a("player-registered-template");break;case"team-registered":e=a("team-registered-template");break;case"joined-team":e=a("joined-team-template")}r.delete("type"),o(e,r),t.appendChild(e)}else t.innerHTML="<h1>Too lazy to add a meaning full easter egg</h1>"}));var o=function(e,t){var r=!0,o=!1,a=void 0;try{for(var i,u=t[Symbol.iterator]();!(r=(i=u.next()).done);r=!0){var l=n(i.value,2),c=l[0],f=l[1];e.getElementById(c).innerText=f}}catch(e){o=!0,a=e}finally{try{r||null==u.return||u.return()}finally{if(o)throw a}}};function a(e){return document.importNode(document.getElementById(e).content,!0)}},function(e,t,r){}]);