-
Notifications
You must be signed in to change notification settings - Fork 0
/
route-home.chunk.b9ddd.js
1 lines (1 loc) · 11.7 KB
/
route-home.chunk.b9ddd.js
1
(window.webpackJsonp=window.webpackJsonp||[]).push([[5],{"4x8c":function(t,e,r){function n(t,e,r){var n=e.split("."),o=t.__lsc||(t.__lsc={});return o[e+r]||(o[e+r]=function(e){for(var o=e&&e.target||this,a={},i=a,s="string"==typeof r?function(t,e,r,n){for(n=0,e=e.split?e.split("."):e;t&&n<e.length;)t=t[e[n++]];return void 0===t?r:t}(e,r):o.nodeName?o.type.match(/^che|rad/)?o.checked:o.value:e,c=0;c<n.length-1;c++)i=i[n[c]]||(i[n[c]]=!c&&t.state[n[c]]||{});i[n[c]]=s,t.setState(a)})}r("sL3o").Component.prototype.linkState=function(t,e){return n(this,t,e)},t.exports=n},"810C":function(t,e,r){"use strict";(function(t){var n=r("obyI"),o=r("C+Gs"),a=r("+mXV"),i=r("JltG"),s=Object(o.a)({card:{background:"#222",margin:"auto"},section:{display:"inline"},content:{display:"grid",gridTemplateColumns:"repeat(4, 1fr)",columnGap:"20px",margin:"20px 40px",textAlign:"center"},time:{fontSize:"40px"},absolute:{gridColumn:"span 4",fontSize:"15px",color:"#bbb"},sub:{gridColumn:"span 4",marginTop:"10px",fontSize:"20px"},over:{margin:"20px 40px",fontSize:"20px",textAlign:"center"}},(function(e){var r=e.classes,o=Object(a.j)(Date.now()),s=o[0],c=o[1];if(Object(a.d)((function(){var t=setInterval((function(){return c(Date.now())}),1e3);return function(){return clearInterval(t)}}),[]),s>n.a.endTime)return t("div",{class:"row"},t("div",{class:"card "+r.card},t("div",{class:r.over},"The CTF is over.")));var l=s>n.a.startTime,p=l?n.a.endTime:n.a.startTime,u=p-s,f=Math.floor(u/864e5),m=Math.floor(u/36e5)%24,d=Math.floor(u/6e4)%60,h=Math.floor(u/1e3)%60;return t("div",{class:"row"},t("div",{class:"card "+r.card},t("div",{class:r.content},t("span",{class:r.time},f),t("span",{class:r.time},m),t("span",{class:r.time},d),t("span",{class:r.time},h),t("span",null,"Days"),t("span",null,"Hours"),t("span",null,"Minutes"),t("span",null,"Seconds"),t("span",{class:r.sub},"until ",n.a.ctfName," ",l?"ends":"starts"),t("span",{class:r.absolute},Object(i.a)(p)))))}));e.a=s}).call(this,r("sL3o").h)},BHE3:function(t,e){"use strict";function r(t){return t.replace(RegExp("^"+(t.match(/^(\t| )+/)||"")[0],"gm"),"")}function n(t){return(t+"").replace(/"/g,""").replace(/</g,"<").replace(/>/g,">")}var o={"":["<em>","</em>"],_:["<strong>","</strong>"],"\n":["<br />"]," ":["<br />"],"-":["<hr />"]};e.a=function t(e){function a(t){var e=o[t.replace(/\*/g,"_")[1]||""],r=m[m.length-1]==t;return e?e[1]?(m[r?"pop":"push"](t),e[0|r]):e[0]:t}function i(){for(var t="";m.length;)t+=a(m[m.length-1]);return t}var s,c,l,p,u,f=/((?:^|\n+)(?:\n---+|\* \*(?: \*)+)\n)|(?:^```(\w*)\n([\s\S]*?)\n```$)|((?:(?:^|\n+)(?:\t| {2,}).+)+\n*)|((?:(?:^|\n)([>*+-]|\d+\.)\s+.*)+)|(?:\!\[([^\]]*?)\]\(([^\)]+?)\))|(\[)|(\](?:\(([^\)]+?)\))?)|(?:(?:^|\n+)([^\s].*)\n(\-{3,}|={3,})(?:\n+|$))|(?:(?:^|\n+)(#{1,3})\s*(.+)(?:\n+|$))|(?:`([^`].*?)`)|( \n\n*|\n{2,}|__|\*\*|[_*])/gm,m=[],d="",h=0,v={};for(e=e.replace(/^\[(.+?)\]:\s*(.+)$/gm,(function(t,e,r){return v[e.toLowerCase()]=r,""})).replace(/^\n+|\n+$/g,"");l=f.exec(e);)c=e.substring(h,l.index),h=f.lastIndex,s=l[0],c.match(/[^\\](\\\\)*\\$/)||(l[3]||l[4]?s='<pre class="code '+(l[4]?"poetry":l[2].toLowerCase())+'">'+r(n(l[3]||l[4]).replace(/^\n+|\n+$/g,""))+"</pre>":l[6]?((u=l[6]).match(/\./)&&(l[5]=l[5].replace(/^\d+/gm,"")),p=t(r(l[5].replace(/^\s*[>*+.-]/gm,""))),">"===u?u="blockquote":(u=u.match(/\./)?"ol":"ul",p=p.replace(/^(.*)(\n|$)/gm,"<li>$1</li>")),s="<"+u+">"+p+"</"+u+">"):l[8]?s='<img src="'+n(l[8])+'" alt="'+n(l[7])+'">':l[10]?(d=d.replace("<a>",'<a href="'+n(l[11]||v[c.toLowerCase()])+'">'),s=i()+"</a>"):l[9]?s="<a>":l[12]||l[14]?s="<"+(u="h"+(l[14]?l[14].length:"="===l[13][0]?1:2))+">"+t(l[12]||l[15])+"</"+u+">":l[16]?s="<code>"+n(l[16])+"</code>":(l[17]||l[1])&&(s=a(l[17]||"--"))),d+=c,d+=s;return(d+e.substring(h)+i()).trim()}},CoLn:function(t,e,r){"use strict";(function(t){function n(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function o(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?n(Object(r),!0).forEach((function(e){a(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function a(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var i=r("BHE3"),s=r("y713"),c=r("810C"),l=r("ZUSA"),p=r("ngDR");e.a=function(e){var r,n=e.components;return t(s.a,{type:"html",trim:!1,markup:(r=e.content,r.split(/(?:\r?\n){2,}/).map((function(t){return[" ","\t","#","-","*"].some((function(e){return t.startsWith(e)}))?Object(i.a)(t):"<p>"+Object(i.a)(t)+"</p>"})).join("\n\n")),components:o({Timer:c.a,Sponsors:l.a,ActionButton:p.a},n)})}}).call(this,r("sL3o").h)},JltG:function(t,e,r){"use strict";r.d(e,"a",(function(){return o})),r.d(e,"b",(function(){return a}));var n=function(t){var e=new Date(t);return e.toLocaleDateString()+" "+e.toLocaleTimeString()},o=function(t){var e=new Date(t).getTimezoneOffset(),r=String(Math.floor(Math.abs(e)/60)).padStart(2,"0"),o=String(Math.abs(e)%60).padStart(2,"0"),a=e>0?"-":"+";return n(t)+" UTC"+a+r+":"+o},a=function(t){var e=Date.now()-t,r=Math.floor(e/1e3);if(r<60)return"just now";var o=Math.floor(r/60);if(o<60)return o+" minute"+(1===o?"":"s")+" ago";var a=Math.floor(o/60);if(a<24)return a+" hour"+(1===a?"":"s")+" ago";var i=Math.floor(a/24);return i<7?i+" day"+(1===i?"":"s")+" ago":n(t)}},Yu8N:function(t,e,r){"use strict";r.r(e),function(t){var n=r("sL3o"),o=r("obyI"),a=(r("4x8c"),r("CoLn")),i=r("C+Gs");e.default=Object(i.a)({content:{"& a":{display:"inline",padding:"0"},"& h1, & h2, & h3":{margin:"32px 0 16px 0"}}},function(e){function r(){return e.apply(this,arguments)||this}var n,i;i=e,(n=r).prototype=Object.create(i.prototype),n.prototype.constructor=n,n.__proto__=i;var s=r.prototype;return s.componentDidMount=function(){document.title=o.a.ctfName},s.render=function(e){return t("div",{class:"row u-center"},t("div",{class:"col-6 "+e.classes.content},t(a.a,{content:o.a.homeContent})))},r}(n.Component))}.call(this,r("sL3o").h)},ZUSA:function(t,e,r){"use strict";(function(t){var n=r("obyI"),o=(r("4x8c"),r("CoLn")),a=r("C+Gs");e.a=Object(a.a)({icon:{padding:"10px",margin:"20px 0",background:"#fff",borderRadius:"10px","& img":{height:"6.250em",width:"auto"}},description:{"& a":{display:"inline",padding:"0"}},row:{marginBottom:"1.5em"},card:{background:"#222"}},(function(e){var r=e.classes;return t("div",{class:"row"},n.a.sponsors.map((function(e){var n="card "+r.card;return e.small||(n+=" u-flex u-flex-column h-100"),t("div",{class:"col-6 "+r.row,key:e.name},t("div",{class:n},t("div",{class:"content"},e.icon&&t("figure",{class:"u-center "+r.icon},t("img",{src:e.icon})),t("p",{class:"title level"},e.name),t("small",{class:r.description},t(o.a,{content:e.description})))))})))}))}).call(this,r("sL3o").h)},ngDR:function(t,e,r){"use strict";(function(t){function n(){return(n=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t}).apply(this,arguments)}var o=r("C+Gs"),a=Object(o.a)({button:{padding:"16px !important",color:"#fff",background:"#222",boxShadow:"rgba(250,250,250,0.6) 0px 0px 1rem 0px",fontSize:"20px",borderRadius:"1rem",textAlign:"center",transition:"box-shadow ease-in-out 0.2s, transform ease-in-out 0.2s",margin:"20px auto","&:hover":{boxShadow:"rgba(250,250,250,0.6) 0px 0px 1.1rem 0px",transform:"scale(1.1)",color:"#fff"},"& svg":{height:"1em",position:"relative",top:"0.125em"}}},(function(e){var r=e.classes,o=function(t,e){if(null==t)return{};var r,n,o={},a=Object.keys(t);for(n=0;n<a.length;n++)e.indexOf(r=a[n])>=0||(o[r]=t[r]);return o}(e,["classes"]);return t("div",{class:"row u-center"},t("a",n({class:r.button},o)))}));e.a=a}).call(this,r("sL3o").h)},obyI:function(t,e){"use strict";var r=JSON.parse(document.head.querySelector("meta[name=rctf-config]").content);e.a=r},y713:function(t,e,r){"use strict";function n(t,e,r){if(3===t.nodeType){var o="textContent"in t?t.textContent:t.nodeValue||"";if(!1!==n.options.trim){var a=0===e||e===r.length-1;if((!(o=o.match(/^[\s\n]+$/g)&&"all"!==n.options.trim?" ":o.replace(/(^[\s\n]+|[\s\n]+$)/g,"all"===n.options.trim||a?"":" "))||" "===o)&&r.length>1&&a)return null}return o}if(1!==t.nodeType)return null;var i=String(t.nodeName).toLowerCase();if("script"===i&&!n.options.allowScripts)return null;var s,c,p=n.h(i,function(t){var e=t&&t.length;if(!e)return null;for(var r={},o=0;o<e;o++){var a=t[o],i=a.name,s=a.value;""===s&&(s=!0),"on"===i.substring(0,2)&&n.options.allowEvents&&(s=new Function(s)),r[i]=s}return r}(t.attributes),(c=(s=t.childNodes)&&Array.prototype.map.call(s,n).filter(l))&&c.length?c:null);return n.visitor&&n.visitor(p),p}function o(t){var e=(t.type||"").toLowerCase(),r=o.map;r&&r.hasOwnProperty(e)?(t.type=r[e],t.props=Object.keys(t.props||{}).reduce((function(e,r){var n;return e[(n=r,n.replace(/-(.)/g,(function(t,e){return e.toUpperCase()})))]=t.props[r],e}),{})):t.type=e.replace(/[^a-z0-9-]/i,"")}var a,i,s=r("sL3o"),c={},l=function(t){return t},p={};e.a=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.setReviver=function(t){i=t},e.prototype.shouldComponentUpdate=function(t){var e=this.props;return t.wrap!==e.wrap||t.type!==e.type||t.markup!==e.markup},e.prototype.setComponents=function(t){if(this.map={},t)for(var e in t)if(t.hasOwnProperty(e)){var r=e.replace(/([A-Z]+)([A-Z][a-z0-9])|([a-z0-9]+)([A-Z])/g,"$1$3-$2$4").toLowerCase();this.map[r]=t[e]}},e.prototype.render=function(t){var e=t.wrap;void 0===e&&(e=!0);var r,l=t.type,u=t.markup,f=t.components,m=t.reviver,d=t.onError,h=t["allow-scripts"],v=t["allow-events"],g=t.trim,b=function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&-1===e.indexOf(n)&&(r[n]=t[n]);return r}(t,["wrap","type","markup","components","reviver","onError","allow-scripts","allow-events","trim"]),y=m||this.reviver||this.constructor.prototype.reviver||i||s.h;this.setComponents(f);var w={allowScripts:h,allowEvents:v,trim:g};try{r=function(t,e,r,i,s){var l=function(t,e){var r,n,o,i,s="html"===e?"text/html":"application/xml";"html"===e?(i="body",o="<!DOCTYPE html>\n<html><body>"+t+"</body></html>"):(i="xml",o='<?xml version="1.0" encoding="UTF-8"?>\n<xml>'+t+"</xml>");try{r=(new DOMParser).parseFromString(o,s)}catch(t){n=t}if(r||"html"!==e||((r=a||(a=function(){if(document.implementation&&document.implementation.createHTMLDocument)return document.implementation.createHTMLDocument("");var t=document.createElement("iframe");return t.style.cssText="position:absolute; left:0; top:-999em; width:1px; height:1px; overflow:hidden;",t.setAttribute("sandbox","allow-forms"),document.body.appendChild(t),t.contentWindow.document}())).open(),r.write(o),r.close()),r){var c=r.getElementsByTagName(i)[0],l=c.firstChild;return t&&!l&&(c.error="Document parse failed."),l&&"parsererror"===String(l.nodeName).toLowerCase()&&(l.removeChild(l.firstChild),l.removeChild(l.lastChild),c.error=l.textContent||l.nodeValue||n||"Unknown error",c.removeChild(l)),c}}(t,e);if(l&&l.error)throw new Error(l.error);var u=l&&l.body||l;o.map=i||p;var f=u&&function(t,e,r,o){return n.visitor=e,n.h=r,n.options=o||c,n(t)}(u,o,r,s);return o.map=null,f&&f.props&&f.props.children||null}(u,l,y,this.map,w)}catch(t){d?d({error:t}):"undefined"!=typeof console&&console.error&&console.error("preact-markup: "+t)}if(!1===e)return r&&r[0]||null;var x=b.hasOwnProperty("className")?"className":"class",O=b[x];return O?O.splice?O.splice(0,0,"markup"):"string"==typeof O?b[x]+=" markup":"object"==typeof O&&(O.markup=!0):b[x]="markup",y("div",b,r||null)},e}(s.Component)}}]);