PageSourceSearch

https://wuwadle.app/_next/static/chunks/112x74d4o-jcy.js

js wuwadle.app collected 2026-09-25 22:30:21 UTC 33,881 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,3053,(e,t,s)=>{t.exports={banners:[{key:"convene-shore",label:"Wuthering Waves",sublabel:"Key visual",file:"/wuwa-banners/convene-shore.jpg",focus:"50% 48%"}]}},33851,e=>{"use strict";var t=e.i(43476),s=e.i(22016),a=e.i(71645),i=e.i(46932),n=e.i(98951),r=e.i(56563),l=e.i(75535),o=e.i(7670);let d={sm:"text-xl",md:"text-3xl",lg:"text-5xl","2xl":"text-[clamp(2.5rem,11.5vw,4.5rem)] sm:text-7xl md:text-8xl"};function c({as:e="span",size:s="md",tone:a="ink",className:i}){return(0,t.jsxs)(e,{className:(0,o.clsx)("font-display font-bold uppercase tracking-[0.08em]","light"===a?"text-[#eef4fb]":"text-ink",d[s],i),children:[(0,t.jsx)("span",{children:"WuWa"}),(0,t.jsx)("span",{className:"text-gold",children:"dle"})]})}var x=e.i(88653);let m=e.i(3053).default.banners??[],u=[...m];var h=e.i(70071);let f="(max-width: 767px)";function p({dim:e=!1}){let[s,r]=(0,a.useState)(null),[l,o]=(0,a.useState)(0);(0,a.useEffect)(()=>{r((0,n.dayString)())},[]);let d=(0,a.useMemo)(()=>s?function(e){let t=[...m],s=function(e){let t=0x811c9dc5;for(let s=0;s<e.length;s++)t^=e.charCodeAt(s),t=t+((t<<1)+(t<<4)+(t<<7)+(t<<8)+(t<<24))>>>0;return t>>>0}(`wuwadle:banner:${e}`)||1;for(let e=t.length-1;e>0;e--){let a=(s=16807*s%0x7fffffff)%(e+1);[t[e],t[a]]=[t[a],t[e]]}return t}(s):u,[s]);(0,a.useEffect)(()=>{if(d.length<2)return;let e=setInterval(()=>o(e=>(e+1)%d.length),1e4);return()=>clearInterval(e)},[d.length]);let c=d[l%Math.max(1,d.length)];return(0,t.jsxs)("div",{className:"absolute inset-0 overflow-hidden bg-canvas",children:[c&&(0,t.jsx)(x.AnimatePresence,{mode:"sync",initial:!1,children:(0,t.jsx)(i.motion.div,{initial:{opacity:0}
1,animate:{opacity:1},exit:{opacity:0},transition:{duration:1.4,ease:"easeOut"},className:"absolute inset-0",children:(0,t.jsx)("div",{className:"absolute inset-0",children:(0,t.jsx)(g,{banner:c})})},c.file)}),(0,t.jsx)("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-0",style:{background:"linear-gradient(to bottom, rgba(6,10,22,0) 0%, rgba(6,10,22,0) 55%, rgba(6,10,22,0.10) 66%, rgba(6,10,22,0.30) 80%, rgba(6,10,22,0.30) 90%, rgba(6,10,22,0) 100%)"}}),(0,t.jsx)("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-0",style:{background:"radial-gradient(85% 80% at 18% 74%, rgba(6,10,22,0.55) 0%, rgba(6,10,22,0.30) 40%, rgba(6,10,22,0) 74%)"}}),(0,t.jsx)("div",{"aria-hidden":!0,className:`pointer-events-none absolute inset-0 transition-opacity duration-700 ${e?"opacity-100":"opacity-0"}`,style:{background:"linear-gradient(to bottom, rgba(6,10,22,0.78) 0%, rgba(6,10,22,0.68) 45%, rgba(6,10,22,0.68) 78%, rgba(6,10,22,0.50) 90%, rgba(6,10,22,0) 100%)"}}),(0,t.jsx)("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-0",style:{background:"linear-gradient(to bottom, rgba(248,250,252,0) 0%, rgba(248,250,252,0) 88
1%, rgba(248,250,252,0.08) 92%, rgba(248,250,252,0.45) 97%, var(--bg-base) 100%)"}})]})}function g({banner:e}){let s,a,i=(s=e.file.replace(/\.(jpg|jpeg|png|webp)$/i,""),a="?v=2",{mobileAvif:`${s}.mobile.avif${a}`,mobileWebp:`${s}.mobile.webp${a}`,desktopAvif:`${s}.desktop.avif${a}`,desktopWebp:`${s}.desktop.webp${a}`,desktop2xAvif:`${s}.desktop2x.avif${a}`,desktop2xWebp:`${s}.desktop2x.webp${a}`});return(0,t.jsxs)("picture",{children:[(0,t.jsx)("source",{type:"image/avif",media:f,srcSet:(0,h.media)(i.mobileAvif)}),(0,t.jsx)("source",{type:"image/webp",media:f,srcSet:(0,h.media)(i.mobileWebp)}),(0,t.jsx)("source",{type:"image/avif",srcSet:`${(0,h.media)(i.desktopAvif)} 1x, ${(0,h.media)(i.desktop2xAvif)} 2x`}),(0,t.jsx)("source",{type:"image/webp",srcSet:`${(0,h.media)(i.desktopWebp)} 1x, ${(0,h.media)(i.desktop2xWebp)} 2x`}),(0,t.jsx)("img",{src:`${(0,h.media)(e.file)}?v=2`,alt:"",className:"block h-full w-full object-cover",style:{objectPosition:e.focus??"center"},loading:"eager",decoding:"async",fetchPriority:"high"})]})}let b=[{q:"What is WuWadle?",a:"WuWadle is a free daily Wuthering Waves guessing game, basically Wordle but for Resonators. There's a new puzzle every day, and everyone gets the same one that day so you can compare with friends."},{q:"How do you play WuWadle?",a:"You just type in a Resonator and WuWadle tells you how close you are. Classic mode gives you six attribute tiles (Rarity, Attribute, Weapon, Gender, Region, Version) that turn green, yellow, or red, and you keep guessing until you land on the right one."},{q:"What game modes does WuWadle have?",a:"Five modes right now. Classic is the six-tile attribute grid, Weapon zooms into a 5-star weapon icon that pulls back with every miss, Banner shows a slice of convene art, Forte shows a Resonator's skill glyph, and Quote gives you one of their voice lines. Sound mode is on the way."},{q:"When does a new WuWadle puzzle come out?",a:"A new puzzle goes up every day at 2:15am Pacific. Each mode has its own answer for the day and it stays the same for everybody until the next reset."}];function v(){return(0,t.jsxs)("section",{className:"mx-auto max-w-3xl px-6 pb-20 pt-4",children:[(0,t.jsx)("div",{className:"mb-6 border-b border-line pb-3",children:(0,t.jsx)("h2",{className:"font-display text-2xl font-bold text-ink",children:"Frequently asked questions"})}),(0,t.jsx)("ul",{className:"flex flex-col gap-px border border-line bg-line",children:b.map(({q:e,a:s})=>(0,t.jsx)("li",{children:(0,t.jsxs)("details",{className:"group bg-canvas",children:[(0,t.jsxs)("summary",{className:"flex cursor-pointer list-none items-center justify-between gap-4 px-5 py-4 transition-colors hover:bg-muted [&::-webkit-details-marker]:hidden",children:[(0,t.jsx)("h3",{className:"font-display text-lg font-semibold text-ink",children:e}),(0,t.jsx)("svg",{"aria-hidden":!0,width:"14",height:"14",viewBox:"0 0 14 14",className:"shrink-0 text-ink-faint transition-transform duration-200 group-open:rotate-45",children:(0,t.jsx)("path",{d:"M7 1 V13 M1 7 H13",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"square"})})]}),(0,t.jsx)("div",{className:"px-5 pb-5 pt-0",children:(0,t.jsx)("p",{className:"max-w-2xl text-sm leading-relaxed text-ink-soft",children:s})})]})},e))})]})}e.i(47167);let j="wuwadle:requested-games",y="data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg'/%3E";function w(e){if(!e)return null;let t=e.match(/^(\d{4})/);return t?t[1]:null}function k(){let e=(0,a.useId)(),s=`${e}-listbox`,[i,n]=(0,a.useState)(""),[r,l]=(0,a.useState)([]),[d,c]=(0,a.useState)(!1),[x,m]=(0,a.useState)(!1),[u,h]=(0,a.useState)(0),[f,p]=(0,a.useState)(null),[g,b]=(0,a.useState)({tag:"idle"}),[v,k]=(0,a.useState)([]),[S,W]=(0,a.useState)(null),C=function(){let[e,t]=(0,a.useState)(null);return(0,a.useEffect)(()=>{let e=()=>{let e,s,a,i,n,r=Date.now();t((s=Math.floor((e=Math.max(0,Math.floor(((Math.floor(r/1728e5)+1)*1728e5-r)/1e3)))/86400),a=Math.floor(e%86400/3600),i=Math.floor(e%3600/60),n=e%60,s>0?`${s}d ${a}h ${i}m`:a>0?`${a}h ${i}m ${n}s`:i>0?`${i}m ${n}s`:`${n}s`))};e();let s=setInterval(e,1e3);return()=>clearInterval(s)},[]),e}(),$=(0,a.useRef)(null),D=(0,a.useRef)(null),_=(0,a.useRef)(0),L=(0,a.useRef)(null),M=(0,a.useCallback)(async(e=!1)=>{let t=[];try{let s=await fetch(e?`/api/leaderboard?t=${Date.now()}`:"/api/leaderboard");if(!s.ok)return void W(t);let a=(await s.json()).results??[];W(0===a.length?t:a)}catch{W(t)}},[]);(0,a.useEffect)(()=>{k(function(){try{let e=window.localStorage.getItem(j);if(!e)return[];let t=JSON.parse(e);return Array.isArray(t)?t.filter(e=>"string"==typeof e):[]}catch{return[]}}()),M()},[M]);let E=(0,a.useCallback)(async e=>{let t=++_.current;if(e.trim().length<2){l([]),c(!1);return}c(!0);try{let s=await fetch(`/api/search?q=${encodeURIComponent(e)}`);
1if(t!==_.current)return;if(!s.ok)return void l([]);let a=await s.json();l(a.results??[]),h(0)}catch{t===_.current&&l([])}finally{t===_.current&&c(!1)}},[]);(0,a.useEffect)(()=>{if(D.current&&clearTimeout(D.current),!f)return D.current=setTimeout(()=>E(i),250),()=>{D.current&&clearTimeout(D.current)}},[i,E,f]),(0,a.useEffect)(()=>{if(!x)return;let e=e=>{L.current?.contains(e.target)||m(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[x]);let I=e=>{p(e),m(!1),n(e.name),l([])},z=()=>{p(null),n(""),l([]),b({tag:"idle"}),m(!1),requestAnimationFrame(()=>$.current?.focus())},B=async()=>{if(f){b({tag:"submitting"});try{let e=await fetch("/api/vote",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({id:f.id,name:f.name,image:f.image,released:f.released})});if(!e.ok)return void(429===e.status?b({tag:"error",message:"Too many votes from this network. Try again tomorrow."}):b({tag:"error",message:"Couldn't submit. Please try again in a moment."}));let t=Array.from(new Set([...v,f.id]));k(t);try{window.localStorage.setItem(j,JSON.stringify(t))}catch{}b({tag:"submitted",game:f}),M(!0)}catch{b({tag:"error",message:"Network error. Please try again."})}}},A="submitted"===g.tag;return(0,t.jsxs)("div",{ref:L,className:"flex h-full flex-col",children:[A?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("p",{className:"text-xs font-semibold text-correct",children:"✓ Vote recorded"}),(0,t.jsx)("h3",{className:"mt-2 font-display text-xl font-bold text-ink sm:text-2xl",children:"Thanks, your pick is in."}),(0,t.jsxs)("p",{className:"mt-2 text-sm text-ink-soft",children:["You voted for"," ",(0,t.jsx)("span",{className:"text-ink",children:g.game.name}),w(g.game.released)?` (${w(g.game.released)})`:"",". Vote for another below."]}),C?(0,t.jsxs)("p",{className:"mt-3 text-xs font-medium text-ink-faint",children:["Vote again in"," ",(0,t.jsx)("span",{className:"tabular-nums text-info",children:C})]}):null,(0,t.jsx)("div",{className:"mt-5",children:(0,t.jsx)("button",{type:"button",onClick:z,className:"inline-flex items-center gap-2 rounded-(--radius-pill) border border-line bg-canvas px-4 py-2 text-xs font-semibold text-ink transition-colors hover:border-edge hover:text-accent-soft",children:"Vote again →"})})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("p",{className:"text-sm font-medium text-info",children:"Request the next game"}),(0,t.jsx)("h3",{className:"mt-1.5 font-display text-lg font-bold text-ink sm:text-xl",children:"Which game should I work on next?"}),C?(0,t.jsxs)("p",{className:"mt-1.5 text-xs font-medium text-ink-faint",children:["Vote again in"," ",(0,t.jsx)("span",{className:"tabular-nums text-info",children:C})]}):null,(0,t.jsxs)("div",{className:"relative mt-3",children:[(0,t.jsxs)("div",{className:(0,o.default)("flex items-stretch overflow-hidden rounded-(--radius-card) border bg-inset transition-colors",f?"border-accent":x?"border-edge":"border-line focus-within:border-edge"),children:[(0,t.jsx)("input",{ref:$,id:e,type:"text",autoComplete:"off",spellCheck:!1,value:i,disabled:"submitting"===g.tag,onChange:e=>{n(e.target.value),p(null),b({tag:"idle"}),m(!0)},onFocus:()=>{!f&&r.length>0&&m(!0)},onKeyDown:e=>{if(!f)if("ArrowDown"===e.key)e.preventDefault(),m(!0),h(e=>Math.min(e+1,r.length-1));else if("ArrowUp"===e.key)e.preventDefault(),h(e=>Math.max(e-1,0));else if("Enter"===e.key){e.preventDefault();let t=r[u];t&&I(t)}else"Escape"===e.key&&m(!1)},placeholder:"Search games…",role:"combobox","aria-expanded":x,"aria-autocomplete":"list","aria-controls":s,"aria-activedescendant":x&&r[u]?`${s}-${r[u].id}`:void 0,className:"flex-1 bg-transparent px-3.5 py-1.5 font-sans text-sm text-ink placeholder:text-ink-faint disabled:opacity-50"}),f?(0,t.jsx)("button",{type:"button",onClick:z,className:"border-l border-line px-3 text-base leading-none text-ink-soft transition-colors hover:text-ink","aria-label":"Clear selection",children:"×"}):d?(0,t.jsx)("span",{className:"flex items-center px-3 text-sm text-ink-faint",children:"…"}):null,(0,t.jsx)("button",{type:"button",onClick:B,disabled:!f||"submitting"===g.tag||f&&v.includes(f.id),className:(0,o.default)("my-1 mr-1 inline-flex shrink-0 self-center items-center rounded-full px-3 py-1 font-display text-xs font-bold transition-colors duration-150",f&&!v.includes(f.id)?"btn-primary":"cursor-not-allowed border border-line bg-canvas/60 text-ink-faint"),children:"submitting"===g.tag?"Sending…":f&&v.includes(f.id)?"Already voted":"Submit vote"})]}),x&&!f&&r.length>0?(0,t.jsx)("ul",{id:s,role:"listbox",className:"absolute z-30 mt-1 max-h-72 w-full overflow-auto rounded-(--radius-card) border border-edge bg-surface shadow-card-hover",children:r.map((e,a)=>{let i=v.includes(e.id),n=a===u;return(0,t.jsxs)("li",{id:`${s}-${e.id}`,role:"option","aria-selected":n,ref:e=>{n&&e&&e.scrollIntoView({block:"nearest"})},onMouseEnter:()=>h(a),onMouseDown:t=>{t.preventDefault(),i||I(e)},className:(0,o.default)("flex cursor-pointer items-center gap-3 px-3 py-2 transition-colors",n&&!i&&"bg-muted",i&&"cursor-not-allowed opacity-50"),children:[(0,t.jsx)("img",{src:e.image??y,alt:"",className:"h-8 w-12 shrink-0 border border-line bg-inset object-cover",loading:"lazy"}),(0,t.jsxs)("span",{className:"min-w-0 flex-1",children:[(0,t.jsx)("span",{className:"block truncate text-sm text-ink",children:e.name}),(0,t.jsxs)("span",{className:"block text-[11px] text-ink-faint",children:[w(e.released)??"—",i?" · already voted":""]})]})]},e.id)})}):null,x&&!f&&!d&&i.trim().length>=2&&0===r.length?(0,t.jsx)("div",{className:"absolute z-30 mt-1 w-full rounded-(--radius-card) border border-line bg-surface px-3 py-3 text-xs text-ink-faint",children:"No matches."}):null]}),"error"===g.tag?(0,t.jsx)("p",{className:"mt-2 text-right text-xs font-medium text-far",children:g.message}):null]}),(0,t.jsx)(N,{data:S}
1)]})}function N({data:e}){return(0,t.jsxs)("div",{className:"mt-4 border-t border-line pt-3",children:[(0,t.jsx)("p",{className:"text-xs font-medium text-info",children:"Current top picks"}),null===e?(0,t.jsx)("p",{className:"mt-2 text-xs text-ink-faint",children:"Loading…"}):0===e.length?(0,t.jsx)("p",{className:"mt-2 text-sm text-ink-soft",children:"No votes yet. Be the first to weigh in."}):(0,t.jsx)("div",{className:"mt-2 grid grid-cols-2 gap-1.5 px-6",children:e.map((e,s)=>(0,t.jsx)(S,{rank:s+1,entry:e,hero:0===s},e.game_id))})]})}function S({rank:e,entry:s,hero:a}){return(0,t.jsx)("div",{className:(0,o.default)("relative overflow-hidden rounded-(--radius-card) border border-line bg-inset",a&&"col-span-2"),children:(0,t.jsxs)("div",{className:(0,o.default)("relative",a?"aspect-[3.3/1]":"aspect-[2.5/1]"),children:[(0,t.jsx)("img",{src:s.game_image??y,alt:"",className:"absolute inset-0 h-full w-full object-cover",loading:"lazy"}),(0,t.jsx)("span",{"aria-hidden":!0,className:"pointer-events-none absolute inset-x-0 bottom-0 h-2/3 bg-gradient-to-t from-black/85 via-black/40 to-transparent"}),(0,t.jsx)("span",{className:(0,o.default)("absolute left-2 top-2 inline-flex items-center rounded-full border bg-canvas/85 px-1.5 py-0.5 text-[10px] font-semibold tabular-nums backdrop-blur-sm",1===e?"border-accent text-accent":e<=3?"border-accent-soft text-accent-soft":"border-line text-ink-faint"),children:String(e).padStart(2,"0")}),(0,t.jsx)("p",{className:(0,o.default)("absolute inset-x-0 bottom-0 truncate px-3 py-1.5 font-display font-semibold text-white [text-shadow:0_1px_3px_rgba(0,0,0,0.65)]",a?"text-base sm:text-lg":"text-xs sm:text-sm"),children:s.game_name})]})})}var W=e.i(53135);function C({username:e}){let[s,i]=(0,a.useState)(!1),[n,r]=(0,a.useState)(!1),[l,o]=(0,a.useState)(!1),d=(0,a.useRef)(null);return(0,a.useEffect)(()=>{let e=d.current;e&&(s&&!e.open?(e.showModal(),r(!0)):!s&&e.open&&e.close())},[s]),(0,a.useEffect)(()=>{if(s){let e=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=e}}},[s]),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("button",{type:"button",onClick:()=>i(!0),className:"inline-block cursor-pointer border-0 bg-transparent p-0 transition-transform duration-200 ease-[cubic-bezier(0.22,1,0.36,1)] hover:scale-[1.04] active:scale-[0.98]","aria-label":"Open Ko-fi tip panel",children:(0,t.jsx)("img",{src:"https://storage.ko-fi.com/cdn/kofi3.png?v=3",alt:"Support me on Ko-fi",width:297,height:58,style:{display:"block",border:0,height:58,width:297}})}),(0,t.jsxs)("dialog",{ref:d,onClose:()=>i(!1),onClick:e=>{e.target===d.current&&i(!1)},className:"m-auto w-[min(440px,92vw)] max-h-[90vh] max-w-[92vw] border border-line bg-surface p-0 text-ink backdrop:bg-black/70 backdrop:backdrop-blur-sm",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between border-b border-line px-4 py-3",children:[(0,t.jsx)("p",{className:"text-xs font-medium text-info",children:"Tip on Ko-fi"}),(0,t.jsx)("button",{type:"button",onClick:()=>i(!1),className:"-mr-1 px-2 py-1 text-base leading-none text-ink-soft transition-colors hover:text-ink","aria-label":"Close",children:"×"})]}),(0,t.jsxs)("div",{className:"relative h-[680px] max-h-[78vh]",children:[n&&!l?(0,t.jsx)("div",{className:"absolute inset-0 z-10 flex items-center justify-center bg-surface text-xs font-medium text-ink-faint",children:"Loading Ko-fi…"}):null,n?(0,t.jsx)("iframe",{title:`Support ${e} on Ko-fi`,src:`https://ko-fi.com/${e}/?hidefeed=true&widget=true&embed=true&preview=true`,onLoad:()=>o(!0),style:{border:"none",width:"100%",height:"100%",background:"#f9f9f9"}}):null]})]})]})}let $=`https://twitter.com/intent/tweet?text=${encodeURIComponent("Playing WuWadle, the daily Wuthering Waves quiz. Guess the Resonator.")}&url=${encodeURIComponent("https://wuwadle.app")}`;function D(){return(0,t.jsxs)("div",{className:"flex h-full flex-col justify-center",children:[(0,t.jsx)("h3",{className:"font-display text-2xl text-ink sm:text-3xl",children:"Support me :D"}),(0,t.jsxs)("p",{className:"mt-2 text-sm text-ink-soft",children:["Daily puzzles take time. If WuWadle made your day, slide a coffee my way ",'( ๑‾̀◡‾́)σ"']}),(0,t.jsxs)("div",{className:"mt-7 flex flex-col items-center gap-6",children:[(0,t.jsxs)("div",{className:"flex items-center gap-5",children:[(0,t.jsxs)("div",{className:"group relative shrink-0",children:[(0,t.jsx)("a",{href:"https://www.instagram.com/hiamyush/",target:"_blank",rel:"noopener noreferrer","aria-label":"Creator's Instagram",className:"block rounded-full transition-transform duration-200 ease-[
1cubic-bezier(0.22,1,0.36,1)] hover:scale-[1.04] active:scale-[0.98]",children:(0,t.jsx)("img",{src:"/kofi-avatar.jpg?v=2",alt:"",width:112,height:112,className:"h-28 w-28 rounded-full border border-line object-cover"})}),(0,t.jsxs)("div",{role:"tooltip",className:"pointer-events-none absolute bottom-full left-1/2 z-10 mb-3 w-48 origin-bottom-left scale-90 rounded-2xl border border-line bg-ink px-3 py-2 text-center font-sans text-xs leading-snug text-canvas opacity-0 shadow-[0_6px_16px_-4px_rgba(0,0,0,0.45)] transition-all duration-200 ease-[cubic-bezier(0.22,1,0.36,1)] group-hover:scale-100 group-hover:opacity-100 group-focus-within:scale-100 group-focus-within:opacity-100",children:["hi im yush! I like playing games and building fun things for me & my friends ^_^",(0,t.jsx)("span",{"aria-hidden":!0,className:"absolute left-4 top-full -mt-1.5 h-3 w-3 rotate-45 border-b border-r border-line bg-ink"})]})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"font-display text-2xl text-ink leading-none",children:"yush"}),(0,t.jsx)("p",{className:"mt-2 text-base text-ink-soft",children:"ko-fi.com/yushoo"}),(0,t.jsxs)("div",{className:"-mx-1.5 mt-1 flex items-center gap-1",children:[(0,t.jsx)("a",{href:"https://x.com/hiamYush",target:"_blank",rel:"noopener noreferrer","aria-label":"Creator on X",className:"inline-flex items-center justify-center p-1.5 text-ink-soft transition-colors hover:text-info",children:(0,t.jsx)(L,{})}),(0,t.jsx)("a",{href:"https://www.instagram.com/hiamyush/",target:"_blank",rel:"noopener noreferrer","aria-label":"Creator on Instagram",className:"inline-flex items-center justify-center p-1.5 transition-opacity hover:opacity-80",children:(0,t.jsx)(M,{})})]})]})]}),(0,t.jsx)(C,{username:"yushoo"}),(0,t.jsxs)("a",{href:$,target:"_blank",rel:"noopener noreferrer",className:"-mt-1 inline-flex items-center gap-1.5 text-xs font-medium text-ink-soft transition-colors hover:text-info",children:[(0,t.jsx)(_,{}),"Share on X"]})]})]})}function _(){return(0,t.jsx)("svg",{width:"10",height:"10",viewBox:"0 0 24 24","aria-hidden":!0,children:(0,t.jsx)("path",{d:"M3 3h6v2H5v14h14v-4h2v6H3z M14 3h7v7h-2V6.4L11.4 14 10 12.6 17.6 5H14z",fill:"currentColor"})})}function L(){return(0,t.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 24 24","aria-hidden":!0,children:(0,t.jsx)("path",{d:"M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z",fill:"currentColor"})})}function M(){return(0,t.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 24 24","aria-hidden":!0,fill:"none",children:[(0,t.jsx)("defs",{children:(0,t.jsxs)("linearGradient",{id:"instagram-brand-gradient",x1:"0%",y1:"0%",x2:"100%",y2:"100%",children:[(0,t.jsx)("stop",{offset:"0%",stopColor:"#515BD4"}),(0,t.jsx)("stop",{offset:"25%",stopColor:"#833AB4"}),(0,t.jsx)("stop",{offset:"50%",stopColor:"#DD2A7B"}),(0,t.jsx)("stop",{offset:"75%",stopColor:"#FD1D1D"}),(0,t.jsx)("stop",{offset:"100%",stopColor:"#FCAF45"})]})}),(0,t.jsx)("rect",{x:"2.5",y:"2.5",width:"19",height:"19",rx:"5",stroke:"url(#instagram-brand-gradient)",strokeWidth:"1.8"}),(0,t.jsx)("circle",{cx:"12",cy:"12",r:"4.2",stroke:"url(#instagram-brand-gradient)",strokeWidth:"1.8"}),(0,t.jsx)("circle",{cx:"17.6",cy:"6.4",r:"1.1",fill:"url(#instagram-brand-gradient)"})]})}var E=e.i(3981),I=e.i(95898),z=e.i(74742),B=e.i(4494),A=e.i(20605),U=e.i(48312),T=e.i(42);function O(){return(0,t.jsxs)("div",{style:{textShadow:"0 1px 16px rgba(8,12,24,0.6), 0 1px 3px rgba(8,12,24,0.65)"},children:[(0,t.jsx)(c,{as:"h1",size:"2xl",tone:"light",className:"leading-[0.95]"}),(0,t.jsx)("p",{className:"mt-6 max-w-xl text-lg text-white/85",children:"Your daily Wuthering Waves guessing game. Five modes, fresh every day."}),(0,t.jsx)("div",{className:"mt-8",children:(0,t.jsx)(R,{})})]})}function R(){return(0,t.jsx)(s.default,{href:"/classic/",className:"group relative inline-flex","aria-label":"Begin",children:(0,t.jsxs)("span",{className:"btn-primary relative inline-flex items-center gap-3.5 rounded-(--radius-pill) px-9 py-4 font-display text-lg font-bold tracking-[0.04em] group-active:translate-y-
1px",children:[(0,t.jsx)("svg",{"aria-hidden":!0,width:"10",height:"12",viewBox:"0 0 10 12",className:"relative shrink-0 text-on-accent",children:(0,t.jsx)("polygon",{points:"0,0 10,6 0,12",fill:"currentColor"})}),(0,t.jsx)("span",{className:"relative",children:"Begin"}),(0,t.jsx)("svg",{"aria-hidden":!0,width:"18",height:"12",viewBox:"0 0 18 12",className:"relative shrink-0 text-on-accent transition-transform duration-200 group-hover:translate-x-1",children:(0,t.jsx)("path",{d:"M0 6 L16 6 M11 1 L17 6 L11 11",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"square",strokeLinejoin:"miter"})})]})})}function H({day:e,modeCount:s,wonCount:a,totalGuesses:n,results:r,totalHints:l}){let o=a===s,d=r.filter(e=>"pending"!==e.outcome),x=d.length>0?(0,U.dailyShareLinks)({day:e,results:d,hints:l}):null;return(0,t.jsxs)(i.motion.div,{initial:{opacity:0},animate:{opacity:1},transition:{duration:.4},className:"flex flex-col items-center gap-10 sm:flex-row sm:items-center sm:gap-14",children:[(0,t.jsx)(G,{modeCount:s,wonCount:a,totalGuesses:n}),(0,t.jsxs)("div",{className:"flex-1 text-center sm:text-left",style:{textShadow:"0 1px 16px rgba(8,12,24,0.6), 0 1px 3px rgba(8,12,24,0.65)"},children:[(0,t.jsx)(c,{as:"h1",size:"2xl",tone:"light",className:"leading-[0.95]"}),(0,t.jsxs)("p",{className:"mt-6 max-w-md text-lg text-white/85",children:[o?(0,t.jsxs)(t.Fragment,{children:["You swept all ",(0,t.jsx)("span",{className:"text-white",children:s})," ","modes today in"," ",(0,t.jsx)("span",{className:"text-white",children:n})," total guesses."]}):(0,t.jsxs)(t.Fragment,{children:["You won ",(0,t.jsx)("span",{className:"text-white",children:a})," of"," ",(0,t.jsx)("span",{className:"text-white",children:s})," modes today in"," ",(0,t.jsx)("span",{className:"text-white",children:n})," total guesses."]})," ","New puzzles arrive at"," ",(0,t.jsx)("span",{className:"text-white",children:"2:15am Pacific"}),"."]}),(0,t.jsx)(W.StreakBadge,{variant:"hero"}),(0,t.jsx)("div",{className:"mt-4 max-w-md",children:(0,t.jsx)(A.DailyTextShare,{day:e,results:r,totalHints:l,onDark:!0,share:x?(0,t.jsx)(B.ShareButton,{url:x.url,ogImageUrl:x.ogImageUrl,filename:`wuwadle-daily-${e}.png`,surface:"daily_complete",dailyId:e}):void 0})})]})]})}function G({modeCount:e,wonCount:s,totalGuesses:a}){return(0,t.jsxs)(i.motion.div,{initial:{scale:.78,opacity:0,rotate:-8},animate:{scale:1,opacity:1,rotate:0},transition:{duration:.7,delay:.1,ease:[.34,1.56,.64,1]},className:"relative shrink-0",style:{width:220,height:252},children:[(0,t.jsxs)("svg",{viewBox:"0 0 220 252",className:"absolute inset-0 h-full w-full","aria-hidden":!0,children:[(0,t.jsx)("polygon",{points:"110,4 215,63 215,189 110,248 5,189 5,63",fill:"rgba(74,222,128,0.06)",stroke:"var(--tile-correct)",strokeWidth:"1.75"}),(0,t.jsx)("polygon",{points:"110,16 203,68 203,184 110,236 17,184 17,68",fill:"none",stroke:"rgba(74,222,128,0.35)",strokeWidth:"0.9"})]}),(0,t.jsxs)("div",{className:"relative flex h-full flex-col items-center justify-center px-6 text-center",children:[(0,t.jsx)(i.motion.div,{initial:{scale:0,rotate:-120},animate:{scale:1,rotate:0},transition:{duration:.55,delay:.5,ease:[.34,1.56,.64,1]},"aria-hidden":!0,children:(0,t.jsx)("svg",{width:"56",height:"56",viewBox:"0 0 56 56",className:"text-correct",children:(0,t.jsx)("path",{d:"M10 28 L24 42 L46 16",fill:"none",stroke:"currentColor",strokeWidth:"5",strokeLinecap:"square",strokeLinejoin:"miter"})})}),(0,t.jsx)(i.motion.div,{initial:{opacity:0,y:4},animate:{opacity:1,y:0},transition:{duration:.4,delay:.7},className:"mt-4 font-display display-headline text-[11px] text-[#eef4fb]",children:"Daily complete"}),(0,t.jsx)("div",{className:"mt-3 h-px w-10 bg-correct/45"}),(0,t.jsxs)(i.motion.div,{initial:{opacity:0,y:4},animate:{opacity:1,y:0},transition:{duration:.4,delay:.78},className:"mt-3 font-display text-4xl leading-none text-correct tabular-nums",children:[s,(0,t.jsx)("span",{className:"text-white/60",children:"/"}),e]}),(0,t.jsxs)(i.motion.div,{initial:{opacity:0,y:4},animate:{opacity:1,y:0},transition:{duration:.4,delay:.86},className:"mt-2 text-xs font-medium text-info",children:[a," guesses"]})]})]})}let V={liberation:"/liberation/"};function q({mode:e,status:a}){let i;if(!e.built){let a=l.IS_DEV_BUILD?V[e.slug]:void 0;return a?(0,t.jsx)(s.default,{href:a,className:"group relative flex h-full flex-col rounded-(--radius-card) bg-surface p-4 shadow-card transition-[transform,box-shadow] sm:p-5 duration-200 ease-[var(--ease-spring)] hover:-translate-y-0.5 hover:shadow-card-hover focus-visible:-translate-y-0.5 focus-visible:shadow-card-hover",children:(0,t.jsx)(F,{label:e.label,blurb:e.blurb,tag:(0,t.jsxs)("span",{className:"inline-flex items-center gap-1 text-xs font-semibold text-accent-soft",children:[(0,t.jsx)("span",{className:"text-accent-soft",children:"[dev]"})," Preview"]}),showArrow:!0})}):(0,t.jsx)("div",{className:"relative flex h-full flex-col rounded-(--radius-card) bg-surface p-4 opacity-60 shadow-card sm:p-5","aria-disabled":"true",children:(0,t.jsx)(F,{label:e.label,blurb:e.blurb,tag:(0,t.jsx)("span",{className:"text-xs font-medium text-info",children:"Soon"})})})}let n=a?.won?"won":a?.failed?"failed":a&&a.guesses>0?"resume":"fresh";return i="won"===n?(0,t.jsxs)("span",{className:"inline-flex items-center gap-1 text-xs font-semibold text-correct",children:[(0,t.jsx)("span",{"aria-hidden":!0,
1children:"✓"})," in ",a.guesses]}):"failed"===n?(0,t.jsxs)("span",{className:"inline-flex items-center gap-1 text-xs font-semibold text-far",children:[(0,t.jsx)("span",{"aria-hidden":!0,children:"✕"})," Missed"]}):"resume"===n?(0,t.jsxs)("span",{className:"text-xs font-medium text-info",children:[a.guesses," ",1===a.guesses?"guess":"guesses"," · Resume"]}):(0,t.jsx)("span",{className:"text-xs font-semibold text-accent-soft",children:"Play"}),(0,t.jsx)(s.default,{href:`/${e.slug}/`,className:"group relative flex h-full flex-col rounded-(--radius-card) bg-surface p-4 shadow-card transition-[transform,box-shadow] sm:p-5 duration-200 ease-[var(--ease-spring)] hover:-translate-y-0.5 hover:shadow-card-hover focus-visible:-translate-y-0.5 focus-visible:shadow-card-hover",children:(0,t.jsx)(F,{label:e.label,blurb:e.blurb,tag:i,showArrow:!0})})}function F({label:e,blurb:s,tag:a,showArrow:i=!1}){return(0,t.jsxs)("div",{className:"relative flex h-full flex-col",children:[(0,t.jsxs)("div",{className:"flex items-baseline justify-between gap-3",children:[(0,t.jsx)("h3",{className:"font-display text-xl leading-tight text-ink",children:e}),a]}),(0,t.jsx)("p",{className:"mt-1.5 line-clamp-2 text-[13px] leading-relaxed text-ink-soft",children:s}),i&&(0,t.jsx)("span",{"aria-hidden":!0,className:"mt-3 hidden items-center text-xs font-medium text-accent-soft opacity-0 transition-opacity group-hover:opacity-100 sm:inline-flex",children:"Play →"})]})}e.s(["HomeContent",0,function(){let[e,i]=(0,a.useState)(null),[o,d]=(0,a.useState)({}),[c,x]=(0,a.useState)(!1);(0,T.useShareLinkVisit)("home"),(0,a.useEffect)(()=>{let e=(0,n.dayString)();i(e);let t={};for(let s of l.BUILT_MODE_SLUGS){let a=(0,r.loadModeState)(s,e);t[s]={won:!0===a.won,failed:!0===a.failed,guesses:a.guesses.length,hints:"classic"===s?a.hintsUsed?.length??0:void 0}}d(t)},[]);let m=e=>null!=o[e]&&(o[e].won||o[e].failed),u=null!=e&&l.BUILT_MODE_SLUGS.every(m),h=l.BUILT_MODE_SLUGS.filter(m).length,f=l.BUILT_MODE_SLUGS.filter(e=>o[e]?.won).length,g=l.BUILT_MODE_SLUGS.reduce((e,t)=>e+(o[t]?.guesses??0),0),b=l.BUILT_MODE_SLUGS.map(e=>({slug:e,outcome:o[e]?.won?"won":o[e]?.failed?"lost":"pending",guesses:o[e]?.guesses??0})),j=o.classic?.hints??0;return(0,t.jsxs)("main",{className:"flex-1",children:[(0,t.jsx)(z.SiteGreeter,{}),(0,t.jsxs)("section",{className:"relative isolate flex min-h-[56svh] items-end overflow-hidden border-b border-line sm:min-h-[min(72vh,720px)]",children:[(0,t.jsx)(p,{dim:u}),(0,t.jsx)("div",{className:"relative mx-auto w-full max-w-6xl px-6 pb-12 pt-20 sm:pb-20 sm:pt-32",children:u?(0,t.jsx)(H,{day:e,modeCount:l.BUILT_MODE_SLUGS.length,wonCount:f,totalGuesses:g,results:b,totalHints:j}):(0,t.jsx)(O,{})})]}),(0,t.jsxs)("section",{className:"mx-auto max-w-6xl px-6 pt-12 pb-12 sm:pt-16",children:[(0,t.jsxs)("div",{className:"mb-5 flex items-baseline justify-between",children:[(0,t.jsx)("h2",{className:"font-display text-lg font-semibold text-ink",children:"Modes"}),(0,t.jsx)("span",{className:"text-sm text-ink-faint tabular-nums",children:e?`${h} / ${l.BUILT_MODE_SLUGS.length} done`:`${l.BUILT_MODE_SLUGS.length} live`})]}),(0,t.jsx)("ul",{className:"grid gap-3 sm:grid-cols-2 sm:gap-4 lg:grid-cols-3",children:l.HOME_MODES.map(e=>(0,t.jsx)("li",{children:(0,t.jsx)(q,{mode:e,status:e.built?o[e.slug]:void 0})},e.slug))}),l.IS_DEV_BUILD&&l.ARCHIVED_MODES.length>0&&(0,t.jsxs)("div",{className:"mt-8 border-t border-dashed border-line/60 pt-5",children:[(0,t.jsxs)("button",{type:"button",onClick:()=>x(e=>!e),"aria-expanded":c,className:"text-xs font-medium text-ink-faint transition-colors hover:text-info",children:[(0,t.jsx)("span",{className:"text-accent-soft",children:"[dev]"})," ",c?"Hide":"Show"," archive · ",l.ARCHIVED_MODES.length," ",1===l.ARCHIVED_MODES.length?"mode":"modes"]}),c&&(0,t.jsx)("ul",{className:"mt-4 grid gap-4 sm:grid-cols-2 lg:grid-cols-3",children:l.ARCHIVED_MODES.map(e=>(0,t.jsx)("li",{children:(0,t.jsx)(q,{mode:e,status:e.built?o[e.slug]:void 0})},e.slug))})]})]}),(0,t.jsx)("section",{className:"mx-auto max-w-3xl px-6 pb-12 pt-4",children:(0,t.jsxs)("div",{className:"border-l-2 border-accent/40 pl-6",children:[(0,t.jsx)("h2",{className:"text-sm font-medium text-info",children:"About"}),(0,t.jsx)("h3",{className:"mt-3 font-display text-2xl text-ink",children:"What is WuWadle?"}),(0,t.jsxs)("p",{className:"mt-3 text-base leading-relaxed text-ink-soft",children:[(0,t.jsx)("strong",{className:"text-ink",children:"WuWadle"})," is the daily Wordle-style quiz for"," ",(0,t.jsx)("a",{href:"https://wutheringwaves.kurogames.com/",className:"text-accent underline-offset-2 hover:underline",children:"Wuthering Waves"}),". Classic is a six attribute deduction grid over the full Resonator roster. The other modes hand you a single clue to work from: a zoomed-in 5-star weapon icon, a slice of convene art, a Forte glyph, or one of a Resonator's voice lines. New puzzles arrive at 2:15am Pacific, and your board waits where you left it. Solve one, come back later, take your time."]}),(0,t.jsxs)(s.default,{href:"/guides/",className:"mt-6 inline-flex items-center gap-2.5 rounded-(--radius-pill) border border-edge bg-muted px-6 py-3 text-sm font-semibold text-accent-soft shadow-card transition-[background-color,box-shadow,transform] duration-200 hover:bg-inset hover:text-ink hover:shadow-card-hover",children:["Guides",(0,t.jsx)("span",{"aria-hidden":!0,
1children:"→"})]})]})}),(0,t.jsx)("section",{className:"mx-auto max-w-6xl border-t border-line px-6 pt-12 pb-12 sm:pt-14",children:(0,t.jsxs)("div",{className:"grid gap-y-14 md:grid-cols-5 md:gap-y-0 md:divide-x md:divide-line",children:[(0,t.jsx)("div",{className:"md:col-span-3 md:pr-10 lg:pr-14",children:(0,t.jsx)(k,{})}),(0,t.jsx)("div",{className:"md:col-span-2 md:pl-10 lg:pl-14",children:(0,t.jsx)(D,{})})]})}),(0,t.jsxs)("section",{className:"mx-auto flex max-w-3xl flex-wrap items-stretch justify-center gap-4 px-6 pb-12 pt-4",children:[(0,t.jsx)(E.TryOWdleCard,{}),(0,t.jsx)(I.TryDeadlockleCard,{})]}),(0,t.jsx)(v,{})]})}],33851)}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.