diff --git a/CNAME b/CNAME new file mode 100644 index 0000000..370d76b --- /dev/null +++ b/CNAME @@ -0,0 +1 @@ +homemaker.sdavis.online diff --git a/assets/deck_the_halls-1wdxGM7B.mp3 b/assets/deck_the_halls-1wdxGM7B.mp3 new file mode 100644 index 0000000..388428c Binary files /dev/null and b/assets/deck_the_halls-1wdxGM7B.mp3 differ diff --git a/assets/index-1LhIrAc9.js b/assets/index-1LhIrAc9.js new file mode 100644 index 0000000..deb9908 --- /dev/null +++ b/assets/index-1LhIrAc9.js @@ -0,0 +1 @@ +(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))s(r);new MutationObserver(r=>{for(const i of r)if(i.type==="childList")for(const l of i.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&s(l)}).observe(document,{childList:!0,subtree:!0});function n(r){const i={};return r.integrity&&(i.integrity=r.integrity),r.referrerPolicy&&(i.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?i.credentials="include":r.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function s(r){if(r.ep)return;r.ep=!0;const i=n(r);fetch(r.href,i)}})();const Ue=(e,t)=>e===t,H=Symbol("solid-proxy"),ke=Symbol("solid-track"),Q={equals:Ue};let Ne=Te;const $=1,X=2,Oe={owned:null,cleanups:null,context:null,owner:null};var h=null;let ee=null,g=null,y=null,x=null,W=0;function P(e,t){const n=g,s=h,r=e.length===0,i=t===void 0?s:t,l=r?Oe:{owned:null,cleanups:null,context:i?i.context:null,owner:i},o=r?e:()=>e(()=>B(()=>Y(l)));h=l,g=null;try{return K(o,!0)}finally{g=n,h=s}}function Le(e,t){t=t?Object.assign({},Q,t):Q;const n={value:e,observers:null,observerSlots:null,comparator:t.equals||void 0},s=r=>(typeof r=="function"&&(r=r(n.value)),Ie(n,r));return[_e.bind(n),s]}function j(e,t,n){const s=ae(e,t,!1,$);F(s)}function q(e,t,n){Ne=ze;const s=ae(e,t,!1,$);(!n||!n.render)&&(s.user=!0),x?x.push(s):F(s)}function k(e,t,n){n=n?Object.assign({},Q,n):Q;const s=ae(e,t,!0,0);return s.observers=null,s.observerSlots=null,s.comparator=n.equals||void 0,F(s),_e.bind(s)}function B(e){if(g===null)return e();const t=g;g=null;try{return e()}finally{g=t}}function Be(e){return h===null||(h.cleanups===null?h.cleanups=[e]:h.cleanups.push(e)),e}function _e(){if(this.sources&&this.state)if(this.state===$)F(this);else{const e=y;y=null,K(()=>J(this),!1),y=e}if(g){const e=this.observers?this.observers.length:0;g.sources?(g.sources.push(this),g.sourceSlots.push(e)):(g.sources=[this],g.sourceSlots=[e]),this.observers?(this.observers.push(g),this.observerSlots.push(g.sources.length-1)):(this.observers=[g],this.observerSlots=[g.sources.length-1])}return this.value}function Ie(e,t,n){let s=e.value;return(!e.comparator||!e.comparator(s,t))&&(e.value=t,e.observers&&e.observers.length&&K(()=>{for(let r=0;r1e6)throw y=[],new Error},!1)),t}function F(e){if(!e.fn)return;Y(e);const t=W;Fe(e,e.value,t)}function Fe(e,t,n){let s;const r=h,i=g;g=h=e;try{s=e.fn(t)}catch(l){return e.pure&&(e.state=$,e.owned&&e.owned.forEach(Y),e.owned=null),e.updatedAt=n+1,je(l)}finally{g=i,h=r}(!e.updatedAt||e.updatedAt<=n)&&(e.updatedAt!=null&&"observers"in e?Ie(e,s):e.value=s,e.updatedAt=n)}function ae(e,t,n,s=$,r){const i={fn:e,state:s,updatedAt:null,owned:null,sources:null,sourceSlots:null,cleanups:null,value:t,owner:h,context:h?h.context:null,pure:n};return h===null||h!==Oe&&(h.owned?h.owned.push(i):h.owned=[i]),i}function G(e){if(e.state===0)return;if(e.state===X)return J(e);if(e.suspense&&B(e.suspense.inFallback))return e.suspense.effects.push(e);const t=[e];for(;(e=e.owner)&&(!e.updatedAt||e.updatedAt=0;n--)if(e=t[n],e.state===$)F(e);else if(e.state===X){const s=y;y=null,K(()=>J(e,t[0]),!1),y=s}}function K(e,t){if(y)return e();let n=!1;t||(y=[]),x?n=!0:x=[],W++;try{const s=e();return Ke(n),s}catch(s){n||(x=null),y=null,je(s)}}function Ke(e){if(y&&(Te(y),y=null),e)return;const t=x;x=null,t.length&&K(()=>Ne(t),!1)}function Te(e){for(let t=0;t=0;t--)Y(e.owned[t]);e.owned=null}if(e.cleanups){for(t=e.cleanups.length-1;t>=0;t--)e.cleanups[t]();e.cleanups=null}e.state=0}function Ve(e){return e instanceof Error?e:new Error(typeof e=="string"?e:"Unknown error",{cause:e})}function je(e,t=h){throw Ve(e)}const He=Symbol("fallback");function me(e){for(let t=0;t1?[]:null;return Be(()=>me(i)),()=>{let a=e()||[],f,c;return a[ke],B(()=>{let d=a.length,m,w,E,O,L,b,S,A,_;if(d===0)l!==0&&(me(i),i=[],s=[],r=[],l=0,o&&(o=[])),n.fallback&&(s=[He],r[0]=P(Me=>(i[0]=Me,n.fallback())),l=1);else if(l===0){for(r=new Array(d),c=0;c=b&&A>=b&&s[S]===a[A];S--,A--)E[A]=r[S],O[A]=i[S],o&&(L[A]=o[S]);for(m=new Map,w=new Array(A+1),c=A;c>=b;c--)_=a[c],f=m.get(_),w[c]=f===void 0?-1:f,m.set(_,c);for(f=b;f<=S;f++)_=s[f],c=m.get(_),c!==void 0&&c!==-1?(E[c]=r[f],O[c]=i[f],o&&(L[c]=o[f]),c=w[c],m.set(_,c)):i[f]();for(c=b;ce(t||{}))}function V(){return!0}const se={get(e,t,n){return t===H?n:e.get(t)},has(e,t){return t===H?!0:e.has(t)},set:V,deleteProperty:V,getOwnPropertyDescriptor(e,t){return{configurable:!0,enumerable:!0,get(){return e.get(t)},set:V,deleteProperty:V}},ownKeys(e){return e.keys()}};function te(e){return(e=typeof e=="function"?e():e)?e:{}}function Xe(){for(let e=0,t=this.length;e=0;l--){const o=te(e[l])[i];if(o!==void 0)return o}},has(i){for(let l=e.length-1;l>=0;l--)if(i in te(e[l]))return!0;return!1},keys(){const i=[];for(let l=0;l=0;i--){const l=e[i];if(!l)continue;const o=Object.getOwnPropertyNames(l);for(let a=0,f=o.length;au.value):n[c]===void 0&&(n[c]=u.value)}}}return n}function ue(e,...t){if(H in e){const r=new Set(t.length>1?t.flat():t[0]),i=t.map(l=>new Proxy({get(o){return l.includes(o)?e[o]:void 0},has(o){return l.includes(o)&&o in e},keys(){return l.filter(o=>o in e)}},se));return i.push(new Proxy({get(l){return r.has(l)?void 0:e[l]},has(l){return r.has(l)?!1:l in e},keys(){return Object.keys(e).filter(l=>!r.has(l))}},se)),i}const n={},s=t.map(()=>({}));for(const r of Object.getOwnPropertyNames(e)){const i=Object.getOwnPropertyDescriptor(e,r),l=!i.get&&!i.set&&i.enumerable&&i.writable&&i.configurable;let o=!1,a=0;for(const f of t)f.includes(r)&&(o=!0,l?s[a][r]=i.value:Object.defineProperty(s[a],r,i)),++a;o||(l?n[r]=i.value:Object.defineProperty(n,r,i))}return[...s,n]}function ye(e){const t="fallback"in e&&{fallback:()=>e.fallback};return k(Qe(()=>e.each,e.children,t||void 0))}const qe=["allowfullscreen","async","autofocus","autoplay","checked","controls","default","disabled","formnovalidate","hidden","indeterminate","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","seamless","selected"],Ge=new Set(["className","value","readOnly","formNoValidate","isMap","noModule","playsInline",...qe]),Je=new Set(["innerHTML","textContent","innerText","children"]),We=Object.assign(Object.create(null),{className:"class",htmlFor:"for"}),Ye=Object.assign(Object.create(null),{class:"className",formnovalidate:{$:"formNoValidate",BUTTON:1,INPUT:1},ismap:{$:"isMap",IMG:1},nomodule:{$:"noModule",SCRIPT:1},playsinline:{$:"playsInline",VIDEO:1},readonly:{$:"readOnly",INPUT:1,TEXTAREA:1}});function Ze(e,t){const n=Ye[e];return typeof n=="object"?n[t]?n.$:void 0:n}const et=new Set(["beforeinput","click","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"]),tt={xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace"};function nt(e,t,n){let s=n.length,r=t.length,i=s,l=0,o=0,a=t[r-1].nextSibling,f=null;for(;lc-o){const w=t[l];for(;o{r=i,t===document?e():p(t,e(),t.firstChild?null:void 0,n)},s.owner),()=>{r(),t.textContent=""}}function Z(e,t,n){let s;const r=()=>{const l=document.createElement("template");return l.innerHTML=e,n?l.content.firstChild.firstChild:l.content.firstChild},i=t?()=>B(()=>document.importNode(s||(s=r()),!0)):()=>(s||(s=r())).cloneNode(!0);return i.cloneNode=i,i}function z(e,t=window.document){const n=t[pe]||(t[pe]=new Set);for(let s=0,r=e.length;sr.call(e,n[1],i))}else e.addEventListener(t,n)}function lt(e,t,n={}){const s=Object.keys(t||{}),r=Object.keys(n);let i,l;for(i=0,l=r.length;ir.children=M(e,t.children,r.children)),j(()=>t.ref&&t.ref(e)),j(()=>ct(e,t,n,!0,r,!0)),r}function p(e,t,n,s){if(n!==void 0&&!s&&(s=[]),typeof t!="function")return M(e,t,s,n);j(r=>M(e,t(),r,n),s)}function ct(e,t,n,s,r={},i=!1){t||(t={});for(const l in r)if(!(l in t)){if(l==="children")continue;r[l]=be(e,l,null,r[l],n,i)}for(const l in t){if(l==="children"){s||M(e,t.children);continue}const o=t[l];r[l]=be(e,l,o,r[l],n,i)}}function at(e){return e.toLowerCase().replace(/-([a-z])/g,(t,n)=>n.toUpperCase())}function we(e,t,n){const s=t.trim().split(/\s+/);for(let r=0,i=s.length;r-1&&tt[t.split(":")[0]];u?it(e,u,t,n):ie(e,We[t]||t,n)}return n}function ft(e){const t=`$$${e.type}`;let n=e.composedPath&&e.composedPath()[0]||e.target;for(e.target!==n&&Object.defineProperty(e,"target",{configurable:!0,value:n}),Object.defineProperty(e,"currentTarget",{configurable:!0,get(){return n||document}});n;){const s=n[t];if(s&&!n.disabled){const r=n[`${t}Data`];if(r!==void 0?s.call(n,r,e):s.call(n,e),e.cancelBubble)return}n=n._$host||n.parentNode||n.host}}function M(e,t,n,s,r){for(;typeof n=="function";)n=n();if(t===n)return n;const i=typeof t,l=s!==void 0;if(e=l&&n[0]&&n[0].parentNode||e,i==="string"||i==="number")if(i==="number"&&(t=t.toString()),l){let o=n[0];o&&o.nodeType===3?o.data=t:o=document.createTextNode(t),n=I(e,n,s,o)}else n!==""&&typeof n=="string"?n=e.firstChild.data=t:n=e.textContent=t;else if(t==null||i==="boolean")n=I(e,n,s);else{if(i==="function")return j(()=>{let o=t();for(;typeof o=="function";)o=o();n=M(e,o,n,s)}),()=>n;if(Array.isArray(t)){const o=[],a=n&&Array.isArray(n);if(re(o,t,n,r))return j(()=>n=M(e,o,n,s,!0)),()=>n;if(o.length===0){if(n=I(e,n,s),l)return n}else a?n.length===0?Se(e,o,s):nt(e,n,o):(n&&I(e),Se(e,o));n=o}else if(t.nodeType){if(Array.isArray(n)){if(l)return n=I(e,n,s,t);I(e,n,null,t)}else n==null||n===""||!e.firstChild?e.appendChild(t):e.replaceChild(t,e.firstChild);n=t}}return n}function re(e,t,n,s){let r=!1;for(let i=0,l=t.length;i=0;l--){const o=t[l];if(r!==o){const a=o.parentNode===e;!i&&!l?a?e.replaceChild(r,o):e.insertBefore(r,n):a&&o.remove()}else i=!0}}else e.insertBefore(r,n);return[r]}const ut="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKAAAAAQCAYAAACRBXRYAAAAAXNSR0IArs4c6QAAAOdJREFUaIHtmUEOwyAMBHH//2d6QmpXuDE2qR2xc981FiMUKdJb6+1gpDXJPoOLDvcmN+wxZni7DXmhgA8TEMVDdokYFdyYp4BPEfBKPCQiojbL2rmQp4DVBVQus8OpRbvFwMs1Znx1X/Ut5ilgVQGN4iEhESfyTHu1LkeeAlYT0CkesiziD3mmndjjzFPAKgJuEg8xiWiQZ9o3OgJ5Clh0+6h4iGVP60yty5OngMW23y0eEpVH6/HmKWCR7e8WD/nc2zt7dETyxwtIcnllH4CcDQUkqcjyL57N/Pvbh9SCLyBJhQKSVN7kSnAL1fgLCgAAAABJRU5ErkJggg==",ge=[{filename:"floor.0",frame:{x:0,y:0,w:32,h:16},rotated:!1,trimmed:!1,spriteSourceSize:{x:0,y:0,w:32,h:16},sourceSize:{w:32,h:16},duration:100},{filename:"center.0",frame:{x:32,y:0,w:32,h:16},rotated:!1,trimmed:!1,spriteSourceSize:{x:0,y:0,w:32,h:16},sourceSize:{w:32,h:16},duration:100},{filename:"roof.0",frame:{x:64,y:0,w:32,h:16},rotated:!1,trimmed:!1,spriteSourceSize:{x:0,y:0,w:32,h:16},sourceSize:{w:32,h:16},duration:100},{filename:"roof.1",frame:{x:96,y:0,w:32,h:16},rotated:!1,trimmed:!1,spriteSourceSize:{x:0,y:0,w:32,h:16},sourceSize:{w:32,h:16},duration:100},{filename:"roof.2",frame:{x:128,y:0,w:32,h:16},rotated:!1,trimmed:!1,spriteSourceSize:{x:0,y:0,w:32,h:16},sourceSize:{w:32,h:16},duration:100}],he={app:"http://www.aseprite.org/",version:"1.3.2-dev",image:"home.png",format:"RGBA8888",size:{w:160,h:16},scale:"1",frameTags:[],layers:[{name:"floor",opacity:255,blendMode:"normal"},{name:"center",opacity:255,blendMode:"normal"},{name:"roof",opacity:255,blendMode:"normal"}],slices:[]},dt="/assets/deck_the_halls-1wdxGM7B.mp3",gt="/assets/jingle_bells-ysqZDY6X.mp3",ht="/assets/we_wish_you_a_merry_christmas-Qevo196e.mp3",ne=[dt,gt,ht],D=he.layers.reverse().map(e=>e.name),le=he.size.w,oe=he.size.h,mt=ge.length,yt=le/mt,pt=oe,wt=Object.fromEntries(D.map(e=>[e,ge.filter(t=>t.filename.startsWith(e)).length]));function bt(e,t){var s;const n=`${e}.${t}`;return(s=ge.find(r=>r.filename===n))==null?void 0:s.frame}const Ae={Red:new Uint8ClampedArray([255,0,0,255]),Green:new Uint8ClampedArray([0,255,0,255]),Blue:new Uint8ClampedArray([0,0,255,255])};function St(e){return typeof e=="function"}function R(e,t){if(t==null)throw new Error(`${e} is undefined`);return t}function At(e,t){try{R(e,t)}catch(n){console.error(n)}return t}var T=(e=>(e[e.New=0]="New",e[e.Playing=1]="Playing",e[e.Paused=2]="Paused",e[e.Ended=3]="Ended",e))(T||{});const v=4;function N(e,t){const{persistenceKey:n,setter:s,...r}=t??{},[i,l]=Le(e,r),o=s===void 0?l:a=>l(f=>St(a)?s(a(f),f):s(a,f));return typeof n=="string"&&(n in localStorage&&o(JSON.parse(localStorage.getItem(n))),q(()=>localStorage.setItem(n,JSON.stringify(i())))),[i,o]}function xe(e){const t=new Uint8ClampedArray(v);for(let n=0;n<3;n++){const s=n*2+1;t[n]=parseInt(e.slice(s,s+2),16)}return t[3]=255,t}function Re(e,t){return Number.isInteger(t)?(t+e)%e:0}function Ce(e,t){return Object.fromEntries(t.map(n=>[n,e(n)]))}function xt(e,t,n=.1){n*=255;for(let s=0;s{i.every((l,o)=>{const a=e[s+o];return l-n<=a&&l+n>=a})&&r.forEach((l,o)=>e[s+o]=l)})}function Ct(e,t=0,n=0,s=e.width,r=e.height){let i=new Uint8ClampedArray(v*s*r);for(let l=0;l{const e=N("#FFFFFF",{persistenceKey:"primary"}),[t]=e,n=N("#000000",{persistenceKey:"secondary"}),[s]=n,r=k(()=>{const i=new Map;return i.set(Ae.Red,xe(t())),i.set(Ae.Green,xe(s())),i});return{primary:e,secondary:n,getReplacements:r}}),$e=P(()=>{const[e,t]=N(void 0),n=Ce(i=>{const l=document.createElement("canvas");l.width=yt,l.height=pt,l.style.setProperty("--width",l.width.toString()),l.style.setProperty("--height",l.height.toString());const o=l.getContext("2d");if(!o)throw new Error(`Could not initialize context for ${i} canvas.`);return o},D),s=Ce(i=>N(0,{equals:!1,setter:l=>Re(wt[i],l),persistenceKey:`${i}-frame`}),D);function r(){var c;const i=At("sprite sheet context",e());if(!i)return;const l=ce.getReplacements(),{width:o,height:a}=i.canvas,f=i.getImageData(0,0,o,a);xt(f.data,l);for(const u of D){const d=R(`${u} frame`,(c=s[u])==null?void 0:c[0]()),m=R(`frame ${d} of ${u}`,bt(u,d)),w=R(`${u} context`,n[u]),E=Ct(f,m.x,m.y,m.w,m.h);requestAnimationFrame(function(){const{width:O,height:L}=w.canvas;w.clearRect(0,0,O,L),w.putImageData(E,0,0)})}}return $t().then(t),q(r),{callback:r,contexts:n,frames:s}}),U=P(()=>{const e=N(0,{persistenceKey:"songIndex",setter:c=>Re(ne.length,c),equals:!1}),[t]=e,[n,s]=N(T.New),r=N(0,{persistenceKey:"volume",setter:c=>Math.max(0,Math.min(1,c))}),[i]=r,l=k(()=>n()===T.Playing),o=k(()=>ne[t()].split("/").pop().split("_").map(c=>`${c[0].toUpperCase()}${c.slice(1)}`).join(" ").replace(/[.\-].*$/,"")),a=new Et;return a.addEventListener("ended",()=>s(T.Ended)),a.addEventListener("pause",()=>s(T.Paused)),a.addEventListener("play",()=>s(T.Playing)),q(()=>{a.volume=i()}),q(async()=>{const c=t();a.src=ne[c],await a.play()}),{index:e,getSongName:o,getIsPlaying:l,togglePlaying:()=>l()?a.pause():a.play(),volume:r}}),Pt=Z("