-
Notifications
You must be signed in to change notification settings - Fork 0
/
bundled.js
1 lines (1 loc) · 15.1 KB
/
bundled.js
1
(()=>{"use strict";var e,t,n,r={911:(e,t,n)=>{n.d(t,{A:()=>s});var r=n(601),i=n.n(r),o=n(314),a=n.n(o)()(i());a.push([e.id,".icon.down-chevron {\n height: 10px;\n width: 10px;\n position: relative;\n}\n.icon.down-chevron:after,\n.icon.down-chevron:before {\n content: '';\n position: absolute;\n background: #ececec;\n width: 10px;\n height: 2px;\n}\n.icon.down-chevron:after {\n transform: rotate(45deg);\n}\n.icon.down-chevron:before {\n transform: rotate(-45deg);\n left: 6px;\n}\n::selection {\n background: rgba(236, 236, 236, 0.1);\n}\nbody {\n margin: 0;\n font-family: 'Space Grotesk', sans-serif;\n width: 100%;\n position: absolute;\n background: #222222;\n}\nh1,\nh2,\nh3,\nh4,\nh5,\nh6 {\n text-shadow: 0 0 6px currentColor;\n}\na,\na:visited {\n color: #5a8add;\n}\n.body-wrapper {\n background: rgba(31, 31, 31, 0.6);\n background: linear-gradient(90deg, rgba(11, 11, 47, 0.6) 0%, rgba(0, 32, 92, 0.6) 100%);\n color: #ececec;\n width: 100%;\n height: 100%;\n}\n/* ====== canvas ===== */\ncanvas {\n position: fixed;\n top: 0;\n left: 0;\n z-index: -1;\n}\n/* ====== pages ====== */\n.page-container {\n width: 100%;\n flex: 1;\n position: relative;\n}\n.page-content {\n padding: 50px;\n}\n/* ====== home ====== */\n#home {\n height: 100vh;\n width: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n.next-page {\n cursor: pointer;\n position: absolute;\n bottom: 0;\n padding: 10px;\n}\n.next-page .icon {\n position: relative;\n left: 50%;\n transform: translateX(-50%);\n}\n.next-page p {\n margin: 5px;\n}\n.card,\n.filled-page {\n background: rgba(104, 104, 104, 0.2);\n backdrop-filter: blur(6px);\n}\n.card {\n text-align: center;\n max-width: 250px;\n padding: 50px;\n border-radius: 5px;\n}\n.links img {\n width: 2em;\n height: 2em;\n margin: 10px;\n}\n.songs {\n display: block;\n margin: 0 auto;\n}\n.songs .songs-container {\n text-align: center;\n}\n.songs .song {\n display: inline-block;\n margin: 10px;\n}\n.me-mask {\n border-radius: 50%;\n width: 50%;\n margin: auto;\n}\n.me-mask .me {\n max-width: 100%;\n border-radius: 6px;\n}\n.on-top {\n position: fixed;\n pointer-events: none;\n z-index: 100;\n top: 0;\n left: 0;\n width: 100vw;\n height: 100vh;\n}\n.on-top .pw {\n position: absolute;\n right: 0;\n bottom: 0;\n text-align: right;\n padding: 10px;\n letter-spacing: 1.1em;\n color: white;\n}\n",""]);const s=a},314:e=>{e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",r=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),r&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),r&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,r,i,o){"string"==typeof e&&(e=[[null,e,void 0]]);var a={};if(r)for(var s=0;s<this.length;s++){var c=this[s][0];null!=c&&(a[c]=!0)}for(var d=0;d<e.length;d++){var l=[].concat(e[d]);r&&a[l[0]]||(void 0!==o&&(void 0===l[5]||(l[1]="@layer".concat(l[5].length>0?" ".concat(l[5]):""," {").concat(l[1],"}")),l[5]=o),n&&(l[2]?(l[1]="@media ".concat(l[2]," {").concat(l[1],"}"),l[2]=n):l[2]=n),i&&(l[4]?(l[1]="@supports (".concat(l[4],") {").concat(l[1],"}"),l[4]=i):l[4]="".concat(i)),t.push(l))}},t}},601:e=>{e.exports=function(e){return e[1]}},72:e=>{var t=[];function n(e){for(var n=-1,r=0;r<t.length;r++)if(t[r].identifier===e){n=r;break}return n}function r(e,r){for(var o={},a=[],s=0;s<e.length;s++){var c=e[s],d=r.base?c[0]+r.base:c[0],l=o[d]||0,h="".concat(d," ").concat(l);o[d]=l+1;var u=n(h),p={css:c[1],media:c[2],sourceMap:c[3],supports:c[4],layer:c[5]};if(-1!==u)t[u].references++,t[u].updater(p);else{var f=i(p,r);r.byIndex=s,t.splice(s,0,{identifier:h,updater:f,references:1})}a.push(h)}return a}function i(e,t){var n=t.domAPI(t);return n.update(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;n.update(e=t)}else n.remove()}}e.exports=function(e,i){var o=r(e=e||[],i=i||{});return function(e){e=e||[];for(var a=0;a<o.length;a++){var s=n(o[a]);t[s].references--}for(var c=r(e,i),d=0;d<o.length;d++){var l=n(o[d]);0===t[l].references&&(t[l].updater(),t.splice(l,1))}o=c}}},659:e=>{var t={};e.exports=function(e,n){var r=function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}(e);if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(n)}},540:e=>{e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},56:(e,t,n)=>{e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},825:e=>{e.exports=function(e){var t=e.insertStyleElement(e);return{update:function(n){!function(e,t,n){var r="";n.supports&&(r+="@supports (".concat(n.supports,") {")),n.media&&(r+="@media ".concat(n.media," {"));var i=void 0!==n.layer;i&&(r+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),r+=n.css,i&&(r+="}"),n.media&&(r+="}"),n.supports&&(r+="}");var o=n.sourceMap;o&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),t.styleTagTransform(r,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},113:e=>{e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},986:()=>{document.addEventListener("DOMContentLoaded",(()=>{const e=document.querySelector("canvas");if(!e)return void console.warn("Could not get canvas");const t=()=>{e.width=window.innerWidth,e.height=window.innerHeight};window.addEventListener("resize",t),t()}))},386:function(e,t,n){var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))};r(void 0,void 0,void 0,(function*(){if(!crypto)return;const e=crypto.subtle,t=document.querySelector(".pw"),i=document.querySelector(".details");let o="",a=!1;const s=()=>t.innerText=o;document.addEventListener("keyup",(t=>r(void 0,void 0,void 0,(function*(){if(!a)return"Backspace"===t.key?(o=o.slice(0,-1),s()):"Enter"===t.key?(a=yield(c=o,r(void 0,void 0,void 0,(function*(){o="Loading…",s();const t=(yield n.e(616).then(n.t.bind(n,616,19))).default,a=(new TextEncoder).encode(t.iv),d=yield((t,n)=>r(void 0,void 0,void 0,(function*(){const r=yield e.importKey("raw",(new TextEncoder).encode(t),{name:"PBKDF2"},!1,["deriveKey"]);return yield e.deriveKey({name:"PBKDF2",salt:(new TextEncoder).encode(n),iterations:1e5,hash:"SHA-256"},r,{name:"AES-GCM",length:256},!1,["decrypt"])})))(c,t.salt);try{const n=yield e.decrypt({name:"AES-GCM",iv:a},d,(l=t.data,new Uint8Array(l.match(/../g).map((e=>parseInt(e,16))))));i.innerText=(new TextDecoder).decode(n)}catch(e){return!1}var l;return!0}))),o="",void s()):void(o.length>32||1===t.key.length&&(o+=t.key,s()));var c}))))}))},575:()=>{document.addEventListener("DOMContentLoaded",(()=>{document.querySelectorAll(".next-page").forEach((e=>{e.addEventListener("click",(e=>{e.preventDefault();const t=document.querySelector("#detail-page");t?t.scrollIntoView({behavior:"smooth"}):window.location.href="#detail-page"}))}))}))}},i={};function o(e){var t=i[e];if(void 0!==t)return t.exports;var n=i[e]={id:e,exports:{}};return r[e].call(n.exports,n,n.exports,o),n.exports}o.m=r,o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,o.t=function(n,r){if(1&r&&(n=this(n)),8&r)return n;if("object"==typeof n&&n){if(4&r&&n.__esModule)return n;if(16&r&&"function"==typeof n.then)return n}var i=Object.create(null);o.r(i);var a={};e=e||[null,t({}),t([]),t(t)];for(var s=2&r&&n;"object"==typeof s&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach((e=>a[e]=()=>n[e]));return a.default=()=>n,o.d(i,a),i},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.f={},o.e=e=>Promise.all(Object.keys(o.f).reduce(((t,n)=>(o.f[n](e,t),t)),[])),o.u=e=>e+".bundled.js",o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n={},o.l=(e,t,r,i)=>{if(n[e])n[e].push(t);else{var a,s;if(void 0!==r)for(var c=document.getElementsByTagName("script"),d=0;d<c.length;d++){var l=c[d];if(l.getAttribute("src")==e){a=l;break}}a||(s=!0,(a=document.createElement("script")).charset="utf-8",a.timeout=120,o.nc&&a.setAttribute("nonce",o.nc),a.src=e),n[e]=[t];var h=(t,r)=>{a.onerror=a.onload=null,clearTimeout(u);var i=n[e];if(delete n[e],a.parentNode&&a.parentNode.removeChild(a),i&&i.forEach((e=>e(r))),t)return t(r)},u=setTimeout(h.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=h.bind(null,a.onerror),a.onload=h.bind(null,a.onload),s&&document.head.appendChild(a)}},o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;o.g.importScripts&&(e=o.g.location+"");var t=o.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");if(n.length)for(var r=n.length-1;r>-1&&(!e||!/^http(s?):/.test(e));)e=n[r--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),o.p=e})(),(()=>{var e={792:0};o.f.j=(t,n)=>{var r=o.o(e,t)?e[t]:void 0;if(0!==r)if(r)n.push(r[2]);else{var i=new Promise(((n,i)=>r=e[t]=[n,i]));n.push(r[2]=i);var a=o.p+o.u(t),s=new Error;o.l(a,(n=>{if(o.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var i=n&&("load"===n.type?"missing":n.type),a=n&&n.target&&n.target.src;s.message="Loading chunk "+t+" failed.\n("+i+": "+a+")",s.name="ChunkLoadError",s.type=i,s.request=a,r[1](s)}}),"chunk-"+t,t)}};var t=(t,n)=>{var r,i,[a,s,c]=n,d=0;if(a.some((t=>0!==e[t]))){for(r in s)o.o(s,r)&&(o.m[r]=s[r]);c&&c(o)}for(t&&t(n);d<a.length;d++)i=a[d],o.o(e,i)&&e[i]&&e[i][0](),e[i]=0},n=self.webpackChunk=self.webpackChunk||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})(),o.nc=void 0;var a={};(()=>{o.r(a);var e=o(72),t=o.n(e),n=o(825),r=o.n(n),i=o(659),s=o.n(i),c=o(56),d=o.n(c),l=o(540),h=o.n(l),u=o(113),p=o.n(u),f=o(911),m={};m.styleTagTransform=p(),m.setAttributes=d(),m.insert=s().bind(null,"head"),m.domAPI=r(),m.insertStyleElement=h(),t()(f.A,m),f.A&&f.A.locals&&f.A.locals,o(575),o(986);class v{constructor(e,t,n=0){this.canvas=e,this.ctx=t,this.spf=n,this.objs=[],this.lastTime=Date.now(),this.firstDraw=!0}drawHandler(e){this.ctx.clearRect(0,0,this.canvas.width,this.canvas.height),this.objs.forEach((t=>t.draw(this.ctx,e)))}addObject(e){this.objs.push(e)}removeObject(e){this.objs=this.objs.filter((t=>t!=e))}setupAnimFrame(){const e=()=>{const t=Date.now(),n=(t-this.lastTime)/1e3;if(this.spf>0&&n<this.spf&&!this.firstDraw)return requestAnimationFrame(e);this.firstDraw=!1,this.drawHandler(n),this.lastTime=t,requestAnimationFrame(e)};e()}}const g={height:7,width:7,frameTime:1,frames:[[0,0,0,4294961104,0,0,0,0,0,0,4294965490,0,0,0,0,0,4294965490,4294966779,4294965490,0,0,4294961104,4294965490,4294966779,4294966779,4294966779,4294965490,4294961104,0,0,4294965490,4294966779,4294965490,0,0,0,0,0,4294965490,0,0,0,0,0,0,4294961104,0,0,0],[0,0,0,4294961104,0,0,0,0,0,0,4294965490,0,0,0,0,0,4294965490,4294966779,4294965490,0,0,4294961104,4294965490,4294966779,4294966779,4294966779,4294965490,4294961104,0,0,4294965490,4294966779,4294965490,0,0,0,0,0,4294965490,0,0,0,0,0,0,4294961104,0,0,0],[0,0,0,4294961104,0,0,0,0,0,0,4294965490,0,0,0,0,0,4294965490,4294966779,4294965490,0,0,4294961104,4294965490,4294966779,4294965490,4294966779,4294965490,4294961104,0,0,4294965490,4294966779,4294965490,0,0,0,0,0,4294965490,0,0,0,0,0,0,4294961104,0,0,0],[0,0,0,4294958524,0,0,0,0,0,0,4294961104,0,0,0,0,0,4294965490,4294966779,4294965490,0,0,4294958524,4294961104,4294966779,4294966779,4294966779,4294961104,4294958524,0,0,4294965490,4294966779,4294965490,0,0,0,0,0,4294961104,0,0,0,0,0,0,4294958524,0,0,0]]};class y{constructor(){}}class b extends y{constructor(e,t){super(),this.position=e,this.sprite=t}draw(e,t){for(let t=0;t<this.sprite.height;t++)for(let n=0;n<this.sprite.width;n++){const r=this.sprite.imgData[n+t*this.sprite.width];this.drawPixel(e,r,{x:this.position.x+n,y:this.position.y+t})}}drawPixel(e,t,n){const r=255&t,i=t>>8&255,o=t>>16&255,a=t>>24&255;e.fillStyle="#"+r.toString(16)+i.toString(16)+o.toString(16)+a.toString(16),e.fillRect(n.x*b.pixelSize,n.y*b.pixelSize,b.pixelSize,b.pixelSize)}}b.pixelSize=5;class w extends b{constructor(e,t){super(e,w.fromAnimatedToStatic(t,0)),this.animatedSprite=t,this.currentFrame=0,this.beforeNextFrame=0,this.nbFrames=t.frames.length}draw(e,t){this.beforeNextFrame++,this.beforeNextFrame>=this.animatedSprite.frameTime&&(this.currentFrame=(this.currentFrame+1)%this.nbFrames,this.beforeNextFrame=0),this.sprite=w.fromAnimatedToStatic(this.animatedSprite,this.currentFrame),super.draw(e,t)}static fromAnimatedToStatic(e,t){return{height:e.height,width:e.width,imgData:e.frames[t]}}}class x extends b{constructor(e){super(e,w.fromAnimatedToStatic(g,0)),this.oldPositions=[],this.speed={x:3,y:-.3},this.acceleration={x:12,y:2}}draw(e,t){this.oldPositions.push(Object.assign({},this.position)),this.position.x+=this.speed.x*t,this.position.y+=this.speed.y*t,this.speed.x+=this.acceleration.x*t,this.speed.y+=this.acceleration.y*t,this.oldPositions=this.oldPositions.slice(-100);let n=238;for(const t of this.oldPositions)n-=10,this.drawPixel(e,n<<24|16771024,{x:t.x+this.sprite.width/2,y:t.y+this.sprite.height/2});super.draw(e,t)}}const S=[g,{height:1,width:1,frameTime:1,frames:[[4294966779],[4294961104],[4294958524],[4294965490]]}];class T extends w{constructor(e){super(e,S[Math.floor(Math.random()*S.length)])}draw(e,t){super.draw(e,t)}}class j extends v{constructor(e,t){super(e,t,0),this.createStars()}createStars(){const e=Math.floor(20*Math.random())+15;Array(e).fill(0).map((e=>new T(this.randomPosition()))).forEach((e=>this.addObject(e))),this.createFallingStar()}createFallingStar(){let e;this.addObject(e=new x({x:-10,y:Math.random()*this.canvas.height})),setTimeout((()=>this.removeObject(e)),15e3),setTimeout((()=>this.createFallingStar()),2e3)}randomPosition(){return{x:Math.floor(Math.random()*this.canvas.width)/b.pixelSize,y:Math.floor(Math.random()*this.canvas.height)/b.pixelSize}}}document.addEventListener("DOMContentLoaded",(()=>(()=>{const e=document.querySelector("canvas");if(!e)return void console.error("Could not find canvas.");const t=e.getContext("2d");t?new j(e,t).setupAnimFrame():console.error("Could not get drawing context for canvas.")})())),o(386)})();var s=window;for(var c in a)s[c]=a[c];a.__esModule&&Object.defineProperty(s,"__esModule",{value:!0})})();