-
Notifications
You must be signed in to change notification settings - Fork 0
/
route-profile.chunk.85d28.js
1 lines (1 loc) · 14 KB
/
route-profile.chunk.85d28.js
1
(window.webpackJsonp=window.webpackJsonp||[]).push([[6],{"38Gp":function(t,n,e){"use strict";e.r(n),function(t){var i=e("+mXV"),o=e("Xjb4"),a=e("obyI"),r=e("C+Gs"),s=e("O1lG"),l=(e("ucLl"),e("f/Gm"),e("a/8j")),c=(e("6WUA"),e("4WT4")),u=e("YfLz"),d=e("gPBw"),f=(e("M72+"),e("YzSL"),e("Vzl/")),v=e("q9Eb"),p=(e("fHzH"),Object(o.b)(Object(r.a)({icon:{"& svg":{verticalAlign:"middle",height:"1.25em",fill:"#333"},marginRight:"1.5em"},publicHeader:{textOverflow:"ellipsis",overflow:"hidden",margin:"0 !important",maxWidth:"75vw"},privateHeader:{textOverflow:"ellipsis",overflow:"hidden",margin:"0 !important",maxWidth:"30vw"},"@media (max-width: 804px)":{privateHeader:{maxWidth:"75vw"}},wrapper:{display:"flex",justifyContent:"space-between",paddingTop:"15px",paddingBottom:"5px"}},(function(n){var e=n.name,i=n.score,o=n.division,a=n.divisionPlace,r=n.globalPlace,s=n.ctftimeId,l=n.classes;return t("div",{class:"card"},t("div",{class:"content"},t("div",{class:l.wrapper},t("h5",{class:"title "+l.publicHeader,title:e},e),s&&t("a",{href:"https://ctftime.org/team/"+s,target:"_blank",rel:"noopener noreferrer"},t(v.a,{style:"height: 20px;"}))),t("div",{class:"action-bar"},t("p",null,t("span",{class:"icon "+l.icon},t(u.a,null)),0===i?"No points earned":i+" total points"),t("p",null,t("span",{class:"icon "+l.icon},t(f.a,null)),0===i?"Unranked":a+" in the "+o+" division"),t("p",null,t("span",{class:"icon "+l.icon},t(f.a,null)),0===i?"Unranked":r+" across all teams"),t("p",null,t("span",{class:"icon "+l.icon},t(d.a,null)),o," division"))))}))));n.default=Object(r.a)({root:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(384px, 1fr))",width:"100%",maxWidth:"1500px",margin:"auto","& .card":{background:"#222",marginBottom:"20px"},"& input, & select, & option":{background:"#111",color:"#fff !important"}},col:{margin:"0 auto",width:"calc(100% - 20px)",marginLeft:"10px"},privateCol:{width:"calc(100% - 20px)",marginLeft:"10px"},errorCard:{background:"#222"}},(function(n){var e=n.uuid,o=n.classes,r=Object(i.j)(!1),u=r[0],d=r[1],f=Object(i.j)(null),v=f[0],h=f[1],m=Object(i.j)({}),g=m[0],b=m[1],w=g.name,x=g.score,y=g.solves,z=g.ctftimeId,k=a.a.divisions[g.division],C=c.a.placementString(g.divisionPlace),j=c.a.placementString(g.globalPlace);return Object(i.d)((function(){d(!1),Object(s.a)(e).then((function(t){var n=t.data;t.error?h("Profile not found"):b(n),d(!0)}))}),[e]),Object(i.d)((function(){document.title="Profile | "+a.a.ctfName}),[]),u?null!==v?t("div",{class:"row u-center"},t("div",{class:"col-4"},t("div",{class:"card "+o.errorCard},t("div",{class:"content"},t("p",{class:"title"},"There was an error"),t("p",{class:"font-thin"},v))))):t("div",{class:o.root},t("div",{class:o.col},t(p,{name:w,score:x,division:k,divisionPlace:C,globalPlace:j,ctftimeId:z}),t(l.a,{solves:y}))):null}))}.call(this,e("sL3o").h)},"4WT4":function(t,n,e){"use strict";e.d(n,"a",(function(){return i}));var i={};e.r(i),e.d(i,"placementString",(function(){return o}));var o=function(t){var n=String(t);if(t>=11&&t<=13)n+="th place";else switch(t%10){case 1:n+="st place";break;case 2:n+="nd place";break;case 3:n+="rd place";break;default:n+="th place"}return n}},"6WUA":function(t,n,e){"use strict";(function(t){function n(){return(n=Object.assign||function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t}).apply(this,arguments)}var i=e("C+Gs");Object(i.a)({quote:{fontSize:"small",overflowWrap:"break-word",userSelect:"all",fontFamily:"monospace !important",cursor:"pointer",background:"#111"}},(function(e){var i=e.classes,o=e.token,a=function(t,n){if(null==t)return{};var e,i,o={},a=Object.keys(t);for(i=0;i<a.length;i++)n.indexOf(e=a[i])>=0||(o[e]=t[e]);return o}(e,["classes","token"]);return t("blockquote",n({class:i.quote},a),o)}))}).call(this,e("sL3o").h)},"FrX+":function(t,n,e){"use strict";function i(t){return Object(o.h)(c.a,{...t,glyph:"clock",viewBox:"0 0 24 24"})}e.d(n,"a",(function(){return i}));var o=e("sL3o"),a=e("ziER"),r=e.n(a),s=e("5JeM"),l=e.n(s),c=e("VXtC");const u=new r.a({id:"clock",use:"clock-usage",viewBox:"0 0 24 24",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="#ffffff" id="clock"><path d="M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z" /><path d="M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z" /></symbol>'});l.a.add(u)},JltG:function(t,n,e){"use strict";e.d(n,"a",(function(){return o})),e.d(n,"b",(function(){return a}));var i=function(t){var n=new Date(t);return n.toLocaleDateString()+" "+n.toLocaleTimeString()},o=function(t){var n=new Date(t).getTimezoneOffset(),e=String(Math.floor(Math.abs(n)/60)).padStart(2,"0"),o=String(Math.abs(n)%60).padStart(2,"0"),a=n>0?"-":"+";return i(t)+" UTC"+a+e+":"+o},a=function(t){var n=Date.now()-t,e=Math.floor(n/1e3);if(e<60)return"just now";var o=Math.floor(e/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 r=Math.floor(a/24);return r<7?r+" day"+(1===r?"":"s")+" ago":i(t)}},"M72+":function(t,n,e){"use strict";e("sL3o");var i=e("ziER"),o=e.n(i),a=e("5JeM"),r=e.n(a);e("VXtC");const s=new o.a({id:"user-circle",use:"user-circle-usage",viewBox:"0 0 496 512",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 496 512" fill="#ffffff" id="user-circle"><path d="M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm0 96c48.6 0 88 39.4 88 88s-39.4 88-88 88-88-39.4-88-88 39.4-88 88-88zm0 344c-58.7 0-111.3-26.6-146.5-68.2 18.8-35.4 55.6-59.8 98.5-59.8 2.4 0 4.8.4 7.1 1.1 13 4.2 26.6 6.9 40.9 6.9 14.3 0 28-2.7 40.9-6.9 2.3-.7 4.7-1.1 7.1-1.1 42.9 0 79.7 24.4 98.5 59.8C359.3 421.4 306.7 448 248 448z" /></symbol>'});r.a.add(s)},O1lG:function(t,n,e){"use strict";e.d(n,"a",(function(){return i}));var i=function(t){return new Promise((function(n,e){return Promise.resolve(fetch("/json/users/"+t+".json")).then((function(t){try{return n(t.json())}catch(t){return e(t)}}),e)}))}},VXtC:function(t,n,e){"use strict";(function(t){function i(){return(i=Object.assign||function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t}).apply(this,arguments)}function o(n){var e=n.glyph,o=n.viewBox,a=function(t,n){if(null==t)return{};var e,i,o={},a=Object.keys(t);for(i=0;i<a.length;i++)n.indexOf(e=a[i])>=0||(o[e]=t[e]);return o}(n,["glyph","viewBox"]);return t("svg",i({},a,{viewBox:o,xmlns:"http://www.w3.org/2000/svg"}),t("use",{xlinkHref:"#"+e}))}e.d(n,"a",(function(){return o}))}).call(this,e("sL3o").h)},"Vzl/":function(t,n,e){"use strict";function i(t){return Object(o.h)(c.a,{...t,glyph:"rank",viewBox:"0 0 24 24"})}e.d(n,"a",(function(){return i}));var o=e("sL3o"),a=e("ziER"),r=e.n(a),s=e("5JeM"),l=e.n(s),c=e("VXtC");const u=new r.a({id:"rank",use:"rank-usage",viewBox:"0 0 24 24",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="#ffffff" id="rank"><path d="M0 0h24v24H0z" fill="none" /><path d="M10 20h4V4h-4v16zm-6 0h4v-8H4v8zM16 9v11h4V9h-4z" /></symbol>'});l.a.add(u)},YfLz:function(t,n,e){"use strict";function i(t){return Object(o.h)(c.a,{...t,glyph:"trophy",viewBox:"0 0 576 512"})}e.d(n,"a",(function(){return i}));var o=e("sL3o"),a=e("ziER"),r=e.n(a),s=e("5JeM"),l=e.n(s),c=e("VXtC");const u=new r.a({id:"trophy",use:"trophy-usage",viewBox:"0 0 576 512",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512" fill="#ffffff" id="trophy"><path d="M552 64H448V24c0-13.3-10.7-24-24-24H152c-13.3 0-24 10.7-24 24v40H24C10.7 64 0 74.7 0 88v56c0 35.7 22.5 72.4 61.9 100.7 31.5 22.7 69.8 37.1 110 41.7C203.3 338.5 240 360 240 360v72h-48c-35.3 0-64 20.7-64 56v12c0 6.6 5.4 12 12 12h296c6.6 0 12-5.4 12-12v-12c0-35.3-28.7-56-64-56h-48v-72s36.7-21.5 68.1-73.6c40.3-4.6 78.6-19 110-41.7 39.3-28.3 61.9-65 61.9-100.7V88c0-13.3-10.7-24-24-24zM99.3 192.8C74.9 175.2 64 155.6 64 144v-16h64.2c1 32.6 5.8 61.2 12.8 86.2-15.1-5.2-29.2-12.4-41.7-21.4zM512 144c0 16.1-17.7 36.1-35.3 48.8-12.5 9-26.7 16.2-41.8 21.4 7-25 11.8-53.6 12.8-86.2H512v16z" /></symbol>'});l.a.add(u)},YzSL:function(t,n,e){"use strict";e("sL3o");var i=e("ziER"),o=e.n(i),a=e("5JeM"),r=e.n(a);e("VXtC");const s=new o.a({id:"envelope-open",use:"envelope-open-usage",viewBox:"0 0 512 512",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" fill="#ffffff" id="envelope-open"><path d="M512 464c0 26.51-21.49 48-48 48H48c-26.51 0-48-21.49-48-48V200.724a48 48 0 0 1 18.387-37.776c24.913-19.529 45.501-35.365 164.2-121.511C199.412 29.17 232.797-.347 256 .003c23.198-.354 56.596 29.172 73.413 41.433 118.687 86.137 139.303 101.995 164.2 121.512A48 48 0 0 1 512 200.724V464zm-65.666-196.605c-2.563-3.728-7.7-4.595-11.339-1.907-22.845 16.873-55.462 40.705-105.582 77.079-16.825 12.266-50.21 41.781-73.413 41.43-23.211.344-56.559-29.143-73.413-41.43-50.114-36.37-82.734-60.204-105.582-77.079-3.639-2.688-8.776-1.821-11.339 1.907l-9.072 13.196a7.998 7.998 0 0 0 1.839 10.967c22.887 16.899 55.454 40.69 105.303 76.868 20.274 14.781 56.524 47.813 92.264 47.573 35.724.242 71.961-32.771 92.263-47.573 49.85-36.179 82.418-59.97 105.303-76.868a7.998 7.998 0 0 0 1.839-10.967l-9.071-13.196z" /></symbol>'});r.a.add(s)},"a/8j":function(t,n,e){"use strict";(function(t){e.d(n,"a",(function(){return l}));var i=e("sL3o"),o=e("C+Gs"),a=e("JltG"),r=e("FrX+"),s=function(n){var e;return Object(o.a)(((e={root:{display:"grid",padding:"20px",paddingTop:"0",gridTemplateColumns:"repeat(4, minmax(max-content, 1fr))","& div":{margin:"auto",padding:"10px"}},title:{gridColumn:"1 / -1",margin:"20px auto !important"},label:{borderBottom:"1px solid #fff",width:"100%",textAlign:"center"},inlineLabel:{display:"none"},icon:{width:"60px",margin:"auto !important"}})["@media (max-width: "+(n?"1500px":"800px")+")"]={inlineLabel:{display:"initial",borderRight:"1px solid #fff"},root:{gridTemplateColumns:"repeat(2, minmax(max-content, 1fr))","& div":{margin:"0"}},label:{display:"none"},category:{borderTop:"1px solid #fff"}},e),(function(n){var e=n.classes,o=n.solves;return t("div",{class:"card "+e.root},0===o.length?t("div",{class:e.title},t("div",{class:e.icon},t(r.a,null)),t("h5",null,"This team has no solves.")):t(i.Fragment,null,t("h5",{class:"title "+e.title},"Solves"),t("div",{class:e.label},"Category"),t("div",{class:e.label},"Challenge"),t("div",{class:e.label},"Solve time"),t("div",{class:e.label},"Points"),o.map((function(n){return t(i.Fragment,{key:n.id},t("div",{class:e.inlineLabel+" "+e.category},"Category"),t("div",{class:e.category},n.category),t("div",{class:e.inlineLabel},"Name"),t("div",null,n.name),t("div",{class:e.inlineLabel},"Solve time"),t("div",null,Object(a.b)(n.createdAt)),t("div",{class:e.inlineLabel},"Points"),t("div",null,n.points))}))))}))},l=s(!1);s(!0)}).call(this,e("sL3o").h)},"f/Gm":function(t,n,e){"use strict";(function(t){var n=e("C+Gs");Object(n.a)({root:{padding:"25px"},submit:{marginTop:"25px"},icon:{"& svg":{verticalAlign:"middle",height:"16px",fill:"#333"}}},(function(n){var e=n.classes,i=n.disabled,o=n.buttonText,a=n.errors;return t("form",{onSubmit:n.onSubmit,class:n.class},[].concat(n.children).map((function(n){if(void 0!==n.props){if(!n.props.name)return n;var i=n.props,o=i.icon,r=i.error,s=i.name;void 0!==a&&void 0!==s&&(r=r||a[s]);var l=void 0!==r;return n.props.class+=" input-contains-icon",l&&(n.props.class+=" input-error"),t("div",{class:"form-section",key:s},l&&t("label",{class:"text-danger info font-light"},r),t("div",{class:e.input+" input-control"},n,t("span",{class:"icon"},void 0!==o&&t("div",{class:"icon "+e.icon},o))))}})),t("button",{disabled:i,class:e.submit+" btn-info u-center",name:"btn",value:"submit",type:"submit"},o),t("span",{class:"fg-danger info"}))}))}).call(this,e("sL3o").h)},fHzH:function(t,n,e){"use strict";(function(t){e("obyI");var n=e("C+Gs");e("+mXV"),Object(n.a)({root:{fontSize:"12px",textAlign:"center"},link:{display:"inline",padding:"0"}},(function(n){var e=n.classes;return t("div",{class:e.root},"This site is protected by reCAPTCHA.",t("br",null),"The Google"," ",t("a",{class:e.link,href:"https://policies.google.com/privacy",target:"_blank",rel:"noopener noreferrer"},"Privacy Policy")," ","and"," ",t("a",{class:e.link,href:"https://policies.google.com/terms",target:"_blank",rel:"noopener noreferrer"},"Terms of Service")," ","apply.")}))}).call(this,e("sL3o").h)},gPBw:function(t,n,e){"use strict";function i(t){return Object(o.h)(c.a,{...t,glyph:"address-book",viewBox:"0 0 448 512"})}e.d(n,"a",(function(){return i}));var o=e("sL3o"),a=e("ziER"),r=e.n(a),s=e("5JeM"),l=e.n(s),c=e("VXtC");const u=new r.a({id:"address-book",use:"address-book-usage",viewBox:"0 0 448 512",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512" fill="#ffffff" id="address-book"><path d="M436 160c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12h-20V48c0-26.5-21.5-48-48-48H48C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h320c26.5 0 48-21.5 48-48v-48h20c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12h-20v-64h20c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12h-20v-64h20zm-228-32c35.3 0 64 28.7 64 64s-28.7 64-64 64-64-28.7-64-64 28.7-64 64-64zm112 236.8c0 10.6-10 19.2-22.4 19.2H118.4C106 384 96 375.4 96 364.8v-19.2c0-31.8 30.1-57.6 67.2-57.6h5c12.3 5.1 25.7 8 39.8 8s27.6-2.9 39.8-8h5c37.1 0 67.2 25.8 67.2 57.6v19.2z" /></symbol>'});l.a.add(u)},obyI:function(t,n){"use strict";var e=JSON.parse(document.head.querySelector("meta[name=rctf-config]").content);n.a=e},q9Eb:function(t,n,e){"use strict";function i(t){return Object(o.h)(c.a,{...t,glyph:"ctftime",viewBox:"0 0 283 80"})}e.d(n,"a",(function(){return i}));var o=e("sL3o"),a=e("ziER"),r=e.n(a),s=e("5JeM"),l=e.n(s),c=e("VXtC");const u=new r.a({id:"ctftime",use:"ctftime-usage",viewBox:"0 0 283 80",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 283 80" id="ctftime"><path fill="#e3000b" d="M0 80h283V0H0l33 40z" /><path fill="#fff" d="M62 58h18v-6H69V28h11v-7H62zm24-30h6v30h7V28h5v-7H86zm24 30h8V43h9v-6h-9v-9h11v-7h-19zm73-33h5v33h5V25h5v-4h-15zm20-4h4v37h-4zm21 14l-5-14h-4v37h4V32l5 13 5-13v26h5V21h-5zm21 19V42h7v-5h-7V25h12l1-4h-18v37h18l-1-4zM136 21v37h39V21zm34 32h-29V26h29v27m-16-14l-6 6 4 4 9-9-16-16h-7z" /></symbol>'});l.a.add(u)}}]);