felt/frontend/build/_app/immutable/entry/app.DWnDWHgs.js
Mikkel Georgsen 47e1f19edd feat(01-10): SvelteKit frontend scaffold with Catppuccin theme and clients
- SvelteKit SPA with adapter-static, prerender, SSR disabled
- Catppuccin Mocha/Latte theme CSS with semantic color tokens
- WebSocket client with auto-reconnect and exponential backoff
- HTTP API client with JWT auth and 401 handling
- Auth state store with localStorage persistence (Svelte 5 runes)
- Tournament state store handling all WS message types (Svelte 5 runes)
- PIN login page with numpad, 48px touch targets
- Updated Makefile frontend target for real SvelteKit build

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-01 03:54:29 +01:00

2 lines
7.5 KiB
JavaScript

const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../nodes/0.CNxjQThJ.js","../chunks/B6M6q2Zo.js","../chunks/Ym0WvvUy.js","../chunks/Da6yQRl8.js","../assets/0.LvVNMuLM.css","../nodes/1.DQmxvu2E.js","../chunks/De6rLmuB.js","../chunks/dTRRgeF-.js","../chunks/giww_vF6.js","../chunks/Bfwrz3i4.js","../nodes/2.CwK2tdGg.js","../chunks/B9dvBo0E.js","../chunks/DMqvp7vx.js","../assets/2.lCQ6RyE1.css","../nodes/3.BjUxkFGX.js","../assets/3.C7Q2VT44.css"])))=>i.map(i=>d[i]);
var z=t=>{throw TypeError(t)};var H=(t,e,r)=>e.has(t)||z("Cannot "+r);var v=(t,e,r)=>(H(t,e,"read from private field"),r?r.call(t):e.get(t)),C=(t,e,r)=>e.has(t)?z("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,r),j=(t,e,r,o)=>(H(t,e,"write to private field"),o?o.call(t,r):e.set(t,r),r);import{h as W,c as ae,b as se,E as ne,r as ie,e as oe,f as ce,i as X,H as ue,j as fe,aL as le,X as de,F as K,_ as _e,aM as Q,aN as me,aO as ve,aP as he,g as E,aQ as ge,a as w,aR as ye,O as Ee,aS as Pe,aT as Re,M as be,aU as Se,aV as Oe,K as Ae,ay as Te,aW as we,aX as J,aY as Ie,ak as Le,aC as xe,u as De,C as ke,D as Ce,aZ as je,v as L,x as Be,w as Ne,s as B,y as Ue,z as Ye,A as Me,a_ as N}from"../chunks/Ym0WvvUy.js";import{h as Ve,m as qe,u as Fe,s as ze}from"../chunks/dTRRgeF-.js";import{a as A,c as U,f as p,t as He}from"../chunks/B6M6q2Zo.js";import{o as We}from"../chunks/Bfwrz3i4.js";import{i as Y}from"../chunks/B9dvBo0E.js";import{B as Xe}from"../chunks/Da6yQRl8.js";function M(t,e,r){var o;W&&(o=fe,ae());var i=new Xe(t);se(()=>{var n=e()??null;if(W){var s=ie(o),a=s===ue,f=n!==null;if(a!==f){var P=oe();ce(P),i.anchor=P,X(!1),i.ensure(n,n&&(c=>r(c,n))),X(!0);return}}i.ensure(n,n&&(c=>r(c,n)))},ne)}function Z(t,e){return t===e||(t==null?void 0:t[Q])===e}function V(t={},e,r,o){return le(()=>{var i,n;return de(()=>{i=n,n=[],K(()=>{t!==r(...n)&&(e(t,...n),i&&Z(r(...i),t)&&e(null,...i))})}),()=>{_e(()=>{n&&Z(r(...n),t)&&e(null,...n)})}}),t}let x=!1;function Ze(t){var e=x;try{return x=!1,[t(),x]}finally{x=e}}function q(t,e,r,o){var b;var i=!be||(r&Se)!==0,n=(r&Re)!==0,s=(r&we)!==0,a=o,f=!0,P=()=>(f&&(f=!1,a=s?K(o):o),a),c;if(n){var R=Q in t||J in t;c=((b=me(t,e))==null?void 0:b.set)??(R&&e in t?u=>t[e]=u:void 0)}var h,T=!1;n?[h,T]=Ze(()=>t[e]):h=t[e],h===void 0&&o!==void 0&&(h=P(),c&&(i&&ve(),c(h)));var d;if(i?d=()=>{var u=t[e];return u===void 0?P():(f=!0,u)}:d=()=>{var u=t[e];return u!==void 0&&(a=void 0),u===void 0?a:u},i&&(r&he)===0)return d;if(c){var l=t.$$legacy;return(function(u,m){return arguments.length>0?((!i||!m||l||T)&&c(m?d():u),u):d()})}var _=!1,g=((r&Oe)!==0?Ae:Te)(()=>(_=!1,d()));n&&E(g);var O=Ee;return(function(u,m){if(arguments.length>0){const k=m?E(g):i&&n?ge(u):u;return w(g,k),_=!0,a!==void 0&&(a=k),u}return ye&&_||(O.f&Pe)!==0?g.v:E(g)})}function Ge(t){return class extends Ke{constructor(e){super({component:t,...e})}}}var S,y;class Ke{constructor(e){C(this,S);C(this,y);var n;var r=new Map,o=(s,a)=>{var f=xe(a,!1,!1);return r.set(s,f),f};const i=new Proxy({...e.props||{},$$events:{}},{get(s,a){return E(r.get(a)??o(a,Reflect.get(s,a)))},has(s,a){return a===J?!0:(E(r.get(a)??o(a,Reflect.get(s,a))),Reflect.has(s,a))},set(s,a,f){return w(r.get(a)??o(a,f),f),Reflect.set(s,a,f)}});j(this,y,(e.hydrate?Ve:qe)(e.component,{target:e.target,anchor:e.anchor,props:i,context:e.context,intro:e.intro??!1,recover:e.recover,transformError:e.transformError})),(!((n=e==null?void 0:e.props)!=null&&n.$$host)||e.sync===!1)&&Ie(),j(this,S,i.$$events);for(const s of Object.keys(v(this,y)))s==="$set"||s==="$destroy"||s==="$on"||Le(this,s,{get(){return v(this,y)[s]},set(a){v(this,y)[s]=a},enumerable:!0});v(this,y).$set=s=>{Object.assign(i,s)},v(this,y).$destroy=()=>{Fe(v(this,y))}}$set(e){v(this,y).$set(e)}$on(e,r){v(this,S)[e]=v(this,S)[e]||[];const o=(...i)=>r.call(this,...i);return v(this,S)[e].push(o),()=>{v(this,S)[e]=v(this,S)[e].filter(i=>i!==o)}}$destroy(){v(this,y).$destroy()}}S=new WeakMap,y=new WeakMap;const Qe="modulepreload",Je=function(t,e){return new URL(t,e).href},G={},D=function(e,r,o){let i=Promise.resolve();if(r&&r.length>0){let s=function(c){return Promise.all(c.map(R=>Promise.resolve(R).then(h=>({status:"fulfilled",value:h}),h=>({status:"rejected",reason:h}))))};const a=document.getElementsByTagName("link"),f=document.querySelector("meta[property=csp-nonce]"),P=(f==null?void 0:f.nonce)||(f==null?void 0:f.getAttribute("nonce"));i=s(r.map(c=>{if(c=Je(c,o),c in G)return;G[c]=!0;const R=c.endsWith(".css"),h=R?'[rel="stylesheet"]':"";if(!!o)for(let l=a.length-1;l>=0;l--){const _=a[l];if(_.href===c&&(!R||_.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${c}"]${h}`))return;const d=document.createElement("link");if(d.rel=R?"stylesheet":Qe,R||(d.as="script"),d.crossOrigin="",d.href=c,P&&d.setAttribute("nonce",P),document.head.appendChild(d),R)return new Promise((l,_)=>{d.addEventListener("load",l),d.addEventListener("error",()=>_(new Error(`Unable to preload CSS for ${c}`)))})}))}function n(s){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=s,window.dispatchEvent(a),!a.defaultPrevented)throw s}return i.then(s=>{for(const a of s||[])a.status==="rejected"&&n(a.reason);return e().catch(n)})},ut={};var pe=p('<div id="svelte-announcer" aria-live="assertive" aria-atomic="true" style="position: absolute; left: 0; top: 0; clip: rect(0 0 0 0); clip-path: inset(50%); overflow: hidden; white-space: nowrap; width: 1px; height: 1px"><!></div>'),$e=p("<!> <!>",1);function et(t,e){De(e,!0);let r=q(e,"components",23,()=>[]),o=q(e,"data_0",3,null),i=q(e,"data_1",3,null);ke(()=>e.stores.page.set(e.page)),Ce(()=>{e.stores,e.page,e.constructors,r(),e.form,o(),i(),e.stores.page.notify()});let n=B(!1),s=B(!1),a=B(null);We(()=>{const l=e.stores.page.subscribe(()=>{E(n)&&(w(s,!0),je().then(()=>{w(a,document.title||"untitled page",!0)}))});return w(n,!0),l});const f=N(()=>e.constructors[1]);var P=$e(),c=L(P);{var R=l=>{const _=N(()=>e.constructors[0]);var g=U(),O=L(g);M(O,()=>E(_),(b,u)=>{V(u(b,{get data(){return o()},get form(){return e.form},get params(){return e.page.params},children:(m,k)=>{var F=U(),ee=L(F);M(ee,()=>E(f),(te,re)=>{V(re(te,{get data(){return i()},get form(){return e.form},get params(){return e.page.params}}),I=>r()[1]=I,()=>{var I;return(I=r())==null?void 0:I[1]})}),A(m,F)},$$slots:{default:!0}}),m=>r()[0]=m,()=>{var m;return(m=r())==null?void 0:m[0]})}),A(l,g)},h=l=>{const _=N(()=>e.constructors[0]);var g=U(),O=L(g);M(O,()=>E(_),(b,u)=>{V(u(b,{get data(){return o()},get form(){return e.form},get params(){return e.page.params}}),m=>r()[0]=m,()=>{var m;return(m=r())==null?void 0:m[0]})}),A(l,g)};Y(c,l=>{e.constructors[1]?l(R):l(h,!1)})}var T=Be(c,2);{var d=l=>{var _=pe(),g=Ue(_);{var O=b=>{var u=He();Me(()=>ze(u,E(a))),A(b,u)};Y(g,b=>{E(s)&&b(O)})}Ye(_),A(l,_)};Y(T,l=>{E(n)&&l(d)})}A(t,P),Ne()}const ft=Ge(et),lt=[()=>D(()=>import("../nodes/0.CNxjQThJ.js"),__vite__mapDeps([0,1,2,3,4]),import.meta.url),()=>D(()=>import("../nodes/1.DQmxvu2E.js"),__vite__mapDeps([5,1,2,6,7,8,9]),import.meta.url),()=>D(()=>import("../nodes/2.CwK2tdGg.js"),__vite__mapDeps([10,1,2,6,9,7,11,3,12,8,13]),import.meta.url),()=>D(()=>import("../nodes/3.BjUxkFGX.js"),__vite__mapDeps([14,1,2,9,7,11,3,12,8,15]),import.meta.url)],dt=[],_t={"/":[2],"/login":[3]},$={handleError:(({error:t})=>{console.error(t)}),reroute:(()=>{}),transport:{}},tt=Object.fromEntries(Object.entries($.transport).map(([t,e])=>[t,e.decode])),mt=Object.fromEntries(Object.entries($.transport).map(([t,e])=>[t,e.encode])),vt=!1,ht=(t,e)=>tt[t](e);export{ht as decode,tt as decoders,_t as dictionary,mt as encoders,vt as hash,$ as hooks,ut as matchers,lt as nodes,ft as root,dt as server_loads};