import{r as m,R as a}from"./index-56c1d501.js";import{c as _d}from"./clsx-e0889333.js";import{m as b,B as A,u as k,a as C,A as vd,c as fd,b as pd,d as hd,e as bd,t as yd,Q as kd,P as Ad}from"./redux-thunk-93cdf4f0.js";import{g as Cd,a as Zg}from"./ststistic-3f81b54e.js";import{u as R}from"./use-animation-894d55ea.js";import{_ as Ua,a as $a,b as Oa,c as Fa,d as Ka,e as za,f as Ha,g as Va,h as Ya,i as qa,j as Wa,k as Ja,l as Za,m as Xa,n as Qa,o as ae,p as ee,q as te,r as ie,s as se,t as ge,u as ne,v as oe,w as re,x as le,y as ce,z as de,A as me,B as ue,C as _e,D as ve,E as fe,F as pe,G as he,H as be,I as ye,J as ke,K as Ae,L as Ce,M as xe,N as Ee,O as Le,P as we,Q as Se,R as Ne,S as Be,T as Ge,U as Me,V as Te,W as Re,X as Pe,Y as Ie,Z as je,$ as De,a0 as Ue,a1 as $e,a2 as Oe,a3 as Fe,a4 as Ke,a5 as ze,a6 as He,a7 as Ve,a8 as Ye,a9 as qe,aa as We,ab as Je,ac as Ze,ad as Xe,ae as Qe,af as at,ag as et,ah as tt,ai as it,aj as st,ak as gt,al as nt,am as ot,an as rt,ao as lt,ap as ct,aq as dt,ar as mt,as as ut,at as _t,au as vt,av as ft,aw as pt,ax as ht,ay as bt,az as yt,aA as kt,aB as At,aC as Ct,aD as xt,aE as Et,aF as Lt,aG as wt,aH as St,aI as Nt,aJ as Bt,aK as Gt,aL as Mt,aM as Tt,aN as Rt,aO as Pt,aP as It,aQ as jt,aR as Dt,aS as Ut,aT as $t,aU as Ot,aV as Ft,aW as Kt,aX as zt,aY as Ht,aZ as Vt,a_ as Yt,a$ as qt,b0 as Wt,b1 as Jt,b2 as Zt,b3 as Xt,b4 as Qt,b5 as ai,b6 as ei,b7 as ti,b8 as ii,b9 as si,ba as gi,bb as ni,bc as oi,bd as ri,be as li,bf as ci,bg as di,bh as mi,bi as ui,bj as _i,bk as vi,bl as fi,bm as pi,bn as hi,bo as bi,bp as yi,bq as ki,br as Ai,bs as Ci,bt as xi,bu as Ei,bv as Li,bw as wi,bx as Si,by as Ni,bz as Bi,bA as Gi,bB as Mi,bC as Ti,bD as Ri,bE as Pi,bF as Ii,bG as ji,bH as Di,bI as Ui,bJ as $i,bK as Oi,bL as Fi,bM as Ki,bN as zi,bO as Hi,bP as Vi,bQ as Yi,bR as qi,bS as Wi,bT as Ji,bU as Zi,bV as Xi,bW as Qi,bX as as,bY as es,bZ as ts,b_ as is,b$ as ss,c0 as gs,c1 as ns,c2 as os,c3 as rs,c4 as ls,c5 as cs,c6 as ds,c7 as ms,c8 as us,c9 as _s,ca as vs,cb as fs,cc as ps,cd as hs,ce as bs,cf as ys,cg as ks,ch as As,ci as Cs,cj as xs,ck as Es,cl as Ls,cm as ws,cn as Ss,co as Ns,cp as Bs,cq as Gs,cr as Ms,cs as Ts,ct as Rs,cu as Ps,cv as Is,cw as js,cx as Ds,cy as Us,cz as $s,cA as Os,cB as Fs,cC as Ks,cD as zs,cE as Hs,cF as Vs,cG as Ys,cH as qs,cI as Ws,cJ as Js,cK as Zs,cL as Xs,cM as Qs,cN as ag,cO as eg,cP as tg,cQ as ig,cR as sg,cS as gg,cT as ng,cU as og,cV as rg,cW as lg,cX as cg,cY as dg,cZ as mg,c_ as ug,c$ as nn,d0 as on,d1 as rn,d2 as ln,d3 as cn,d4 as dn,d5 as mn,d6 as un,d7 as _n,d8 as vn,d9 as fn,da as pn,db as hn,dc as bn,dd as yn,de as kn,df as An,dg as Cn,dh as xn,di as En,dj as Ln,dk as wn,dl as Sn,dm as Nn,dn as Bn,dp as Gn,dq as Mn,dr as Tn,ds as Rn,dt as Pn,du as In,dv as jn,dw as Dn,dx as Un,dy as $n,dz as On,dA as Fn,dB as Kn,dC as zn,dD as Hn,dE as Vn,dF as Yn,dG as qn,dH as Wn,dI as Jn,dJ as Zn,dK as Xn,dL as Qn,dM as ao,dN as eo,dO as to,dP as io,dQ as so,dR as go,dS as no,dT as oo,dU as ro,dV as lo,dW as co,dX as mo,dY as uo,dZ as _o,d_ as vo,d$ as fo,e0 as po,e1 as ho,e2 as bo,e3 as yo,e4 as ko,e5 as Ao,e6 as Co,e7 as xo,e8 as Eo,e9 as Lo,ea as wo,eb as So,ec as No,ed as Bo,ee as Go,ef as Mo,eg as To,eh as Ro,ei as Po,ej as Io,ek as jo,el as Do,em as Uo,en as $o,eo as Oo,ep as Fo,eq as Ko,er as zo,es as Ho,et as Vo,eu as Yo,ev as qo,ew as Wo,ex as Jo,ey as Zo,ez as Xo,eA as Qo,eB as ar,eC as er,eD as tr,eE as ir,eF as sr,eG as gr,eH as nr,eI as or,eJ as rr,eK as lr,eL as cr,eM as dr,eN as mr,eO as ur,eP as _r,eQ as vr,eR as fr,eS as pr,eT as hr,eU as br,eV as yr,eW as kr,eX as Ar,eY as Cr,eZ as xr,e_ as Er,e$ as Lr,f0 as wr,f1 as Sr,f2 as Nr,f3 as Br,f4 as Gr,f5 as Mr,f6 as Tr,f7 as Rr,f8 as Pr,f9 as Ir,fa as jr,fb as Dr,fc as Ur,fd as $r,fe as Or,ff as Fr,fg as Kr,fh as zr,fi as Hr,fj as Vr,fk as Yr,fl as qr,fm as Wr,fn as Jr,fo as Zr,fp as Xr,fq as Qr,fr as al,fs as el,ft as tl,fu as il,fv as sl,fw as gl,fx as nl,fy as ol,fz as rl,fA as ll,fB as cl,fC as dl,fD as ml,fE as ul,fF as _l,fG as vl,fH as fl,fI as pl,fJ as hl,fK as bl,fL as yl,fM as kl,fN as Al,fO as Cl,fP as xl,fQ as El,fR as Ll,fS as wl,fT as Sl,fU as Nl,fV as Bl,fW as Gl,fX as Ml,fY as Tl,fZ as Rl,f_ as Pl,f$ as Il,g0 as jl,g1 as Dl,g2 as Ul,g3 as $l,g4 as Ol,g5 as Fl,g6 as Kl,g7 as zl,g8 as Hl,g9 as Vl,ga as Yl,gb as ql,gc as Wl,gd as Jl,ge as Zl,gf as Xl,gg as Ql,gh as ac,gi as ec,gj as tc,gk as ic,gl as sc,gm as gc,gn as nc,go as oc,gp as rc,gq as lc,gr as cc,gs as dc,gt as mc,gu as uc,gv as _c,gw as vc,gx as fc,gy as pc,gz as hc,gA as bc,gB as yc,gC as kc,gD as Ac,gE as Cc,gF as xc,gG as Ec,gH as Lc,gI as wc,gJ as Sc,gK as Nc,gL as Bc,gM as Gc,gN as Mc,gO as Tc,gP as Rc,gQ as Pc,gR as D,gS as U,gT as $,gU as O,gV as F,gW as K,gX as z,gY as H,gZ as V,g_ as Y,g$ as q,h0 as W,h1 as J,h2 as Z,h3 as X,h4 as Q,h5 as aa,h6 as ea,h7 as ta,h8 as ia,h9 as sa,ha as ga,hb as na,hc as oa,hd as ra,he as la,hf as ca,hg as da,hh as ma,hi as ua,hj as _a,hk as va,hl as fa,hm as pa,hn as ha,ho as ba,hp as ya,hq as ka,hr as Aa,hs as Ca,ht as xa,hu as Ea,hv as La,hw as wa,hx as Sa,hy as Na,hz as Ba,hA as Ga,hB as Ma,hC as Ta,hD as Ra,hE as Pa,hF as Ia,hG as ja,hH as Da,hI as pg,hJ as xd,hK as Ed,hL as Ld,hM as wd,hN as Sd,hO as Nd,hP as Bd,hQ as Gd,hR as Md,hS as Td,hT as Xg,hU as Rd,hV as Pd,hW as Id,hX as jd,hY as Dd}from"./1f4c8-7a9ac8f1.js";import{L as Ud}from"./index.es-0d31b279.js";import{S as $d}from"./index.esm-17cc0789.js";import{d as Od,p as Fd,a as Kd,P as zd}from"./index-bdb71453.js";import{a as Hd}from"./archive-99a00a53.js";import{_ as Vd}from"./preload-helper-f61836a9.js";import"./recaptcha-v3-f0e7cd4f.js";import"./fingerprint-374ab551.js";import"./use-motion-value-626d9b9f.js";import"./inheritsLoose-af5d6298.js";import"./index-f11686b8.js";const Ic="SET_COUNTRY_OF_TODAY",Bg="SET_SELECTED_GAME",jc="SET_COMPLETED_STATE",Dc="COUNTRY_GAME_COMPLETED",Uc="PATCH_GAME_FLAG_TILED",$c="NEIGHBOURS_GAME_COMPLETED",Oc="PATCH_GAME_NEIGHBOURS",Fc="CAPITAL_GAME_COMPLETED",Kc="PATCH_GAME_CAPITAL",zc="FLAG_GAME_COMPLETED",Hc="PATCH_GAME_FLAG",Vc="SPOKEN_LANGUAGE_GAME_COMPLETED",Yc="PATCH_GAME_SPOKEN_LANGUAGE",qc="POPULATION_GAME_COMPLETED",Wc="PATCH_GAME_POPULATION",Jc="CURRENCY_GAME_COMPLETED",Zc="PATCH_GAME_CURRENCY",Xc="POPULOUS_CITIES_GAME_COMPLETED",Qc="PATCH_GAME_POPULOUS_CITIES",ad="AREA_GAME_COMPLETED",ed="PATCH_GAME_AREA",td="SET_SETTINGS",Ig="PATCH_STATICS",Gg="country",Cg="neighbours",xg="capital",jg="flags",Eg="spokenLanguage",Lg="population",wg="currency",Sg="populousCites",Dg="area",Pg=document.getElementById("root").getAttribute("data-game-title").replaceAll("\\",""),Yd=document.getElementById("root").getAttribute("data-country").replaceAll("\\",""),qd=document.getElementById("root").getAttribute("data-neighbours").replaceAll("\\",""),Wd=document.getElementById("root").getAttribute("data-capital").replaceAll("\\",""),Jd=document.getElementById("root").getAttribute("data-flag").replaceAll("\\",""),Zd=document.getElementById("root").getAttribute("data-spoken-languages").replaceAll("\\",""),Xd=document.getElementById("root").getAttribute("data-population").replaceAll("\\",""),Qd=document.getElementById("root").getAttribute("data-currency").replaceAll("\\",""),am=document.getElementById("root").getAttribute("data-populous-cities").replaceAll("\\",""),em=document.getElementById("root").getAttribute("data-area").replaceAll("\\",""),tm=document.getElementById("root").getAttribute("data-home").replaceAll("\\",""),im=document.getElementById("root").getAttribute("data-give-up").replaceAll("\\",""),sm=document.getElementById("root").getAttribute("data-bonus-round").replaceAll("\\",""),gm=document.getElementById("root").getAttribute("data-next-bonus-round").replaceAll("\\",""),id=document.getElementById("root").getAttribute("data-country-territory").replaceAll("\\",""),nm=document.getElementById("root").getAttribute("data-unknown-country").replaceAll("\\",""),Mg=document.getElementById("root").getAttribute("data-guess").replaceAll("\\",""),om=document.getElementById("root").getAttribute("data-capital-city").replaceAll("\\",""),sd=document.getElementById("root").getAttribute("data-unknown-city").replaceAll("\\",""),gd=document.getElementById("root").getAttribute("data-show-map").replaceAll("\\",""),rm=document.getElementById("root").getAttribute("data-settings").replaceAll("\\",""),lm=document.getElementById("root").getAttribute("data-unit-of-distance").replaceAll("\\","");document.getElementById("root").getAttribute("data-language").replaceAll("\\","");const cm=document.getElementById("root").getAttribute("data-difficulty").replaceAll("\\",""),dm=document.getElementById("root").getAttribute("data-hide-country-image-for-more-of-a-challenge").replaceAll("\\",""),mm=document.getElementById("root").getAttribute("data-randomly-rotate-country-image").replaceAll("\\",""),um=document.getElementById("root").getAttribute("data-replace-proximity-percent-by-size-percent").replaceAll("\\",""),_m=document.getElementById("root").getAttribute("data-sort-neighbouring-countries-alphabetically").replaceAll("\\",""),vm=document.getElementById("root").getAttribute("data-statistics").replaceAll("\\",""),fm=document.getElementById("root").getAttribute("data-played").replaceAll("\\",""),pm=document.getElementById("root").getAttribute("data-win").replaceAll("\\",""),hm=document.getElementById("root").getAttribute("data-current-streak").replaceAll("\\",""),bm=document.getElementById("root").getAttribute("data-max-streak").replaceAll("\\",""),ym=document.getElementById("root").getAttribute("data-best-distances-average").replaceAll("\\",""),km=document.getElementById("root").getAttribute("data-guess-distribution").replaceAll("\\",""),G=document.getElementById("root").getAttribute("data-congratulations").replaceAll("\\",""),Am=document.getElementById("root").getAttribute("data-show-answer").replaceAll("\\","");document.getElementById("root").getAttribute("data-answer").replaceAll("\\","");const Cm=document.getElementById("root").getAttribute("data-please-try-again-tomorrow").replaceAll("\\",""),Ug=document.getElementById("root").getAttribute("data-you-already-guessed").replaceAll("\\",""),xm=document.getElementById("root").getAttribute("data-do-you-know-the-area-of-country").replaceAll("\\",""),Em=document.getElementById("root").getAttribute("data-do-you-know-the-capital-city-of-country").replaceAll("\\",""),Lm=document.getElementById("root").getAttribute("data-do-you-know-the-currency-used-in-country").replaceAll("\\",""),wm=document.getElementById("root").getAttribute("data-do-you-know-the-flag-for-country").replaceAll("\\",""),Sm=document.getElementById("root").getAttribute("data-do-you-know-neighbours-of-country").replaceAll("\\",""),Nm=document.getElementById("root").getAttribute("data-do-you-know-the-estimated-populatin-of-country").replaceAll("\\",""),Bm=document.getElementById("root").getAttribute("data-do-you-know-the-spoken-languages-in-country").replaceAll("\\",""),Gm=document.getElementById("root").getAttribute("data-how-to-play-title").replaceAll("\\",""),Mm=document.getElementById("root").getAttribute("data-how-to-play-description").replaceAll("<game-title>",Pg).replaceAll("\\",""),Tm=document.getElementById("root").getAttribute("data-examples-title").replaceAll("\\",""),Rm=document.getElementById("root").getAttribute("data-example1").replaceAll("\\",""),Pm=document.getElementById("root").getAttribute("data-example2").replaceAll("\\",""),Im=document.getElementById("root").getAttribute("data-example3").replaceAll("\\",""),jm=document.getElementById("root").getAttribute("data-do-you-know-this-flag").replaceAll("\\",""),Dm=document.getElementById("root").getAttribute("data-rules-app-title").replaceAll("\\",""),Um=document.getElementById("root").getAttribute("data-archive-app-title").replaceAll("\\",""),$m=document.getElementById("root").getAttribute("data-statistics-app-title").replaceAll("\\",""),Om=document.getElementById("root").getAttribute("data-settings-app-title").replaceAll("\\",""),Fm=document.getElementById("root").getAttribute("data-million").replaceAll("\\",""),w=JSON.parse(document.getElementById("root").getAttribute("data-archive")),Km=!!document.getElementById("root").getAttribute("data-is-archive-game"),zm=document.getElementById("root").getAttribute("data-you-want-to-play-archive-games").replaceAll("\\",""),Hm=document.getElementById("root").getAttribute("data-archive-link-name"),Vm=document.getElementById("root").getAttribute("data-play-archive").replaceAll("\\",""),Qg=document.getElementById("root").getAttribute("data-archive-url"),v=document.documentElement.lang,j={de:["Deutschland","Island","Ägypten"],en:["Germany","Iceland","Egypt"]},B={yesOrNo:[{imgSrc:new URL("/build/assets/274c-c22fd37e.png",self.location).href,imgAlt:"❌"},{imgSrc:new URL("/build/assets/2705-8f79f6b1.png",self.location).href,imgAlt:"✅"}],yellowGreen:[{imgSrc:new URL("/build/assets/2b1b-ce04d167.png",self.location).href,imgAlt:"⬛"},{imgSrc:new URL("/build/assets/1f7e8-23c5805b.png",self.location).href,imgAlt:"🟨"},{imgSrc:new URL("/build/assets/1f7e9-12edbb8a.png",self.location).href,imgAlt:"🟩"}],journeySvgs:[{imgSrc:new URL("/build/assets/plane-fb081388.svg",self.location).href,imgAlt:"🟩"},{imgSrc:new URL("/build/assets/train-e008bd60.svg",self.location).href,imgAlt:"🟩"},{imgSrc:new URL("/build/assets/car-59ab4bf2.svg",self.location).href,imgAlt:"🟩"},{imgSrc:new URL("/build/assets/run-d9c6bcb7.svg",self.location).href,imgAlt:"🟩"},{imgSrc:new URL("/build/assets/walk-d9a35650.svg",self.location).href,imgAlt:"🟩"}],directions:[{imgSrc:new URL("/build/assets/1f389-131d5e81.png",self.location).href,imgAlt:"🎉"},{imgSrc:new URL("/build/assets/2b06-1234430b.png",self.location).href,imgAlt:"⬆️"},{imgSrc:new URL("/build/assets/2197-2fba07c5.png",self.location).href,imgAlt:"↗️"},{imgSrc:new URL("/build/assets/27a1-f24e4481.png",self.location).href,imgAlt:"➡️"},{imgSrc:new URL("/build/assets/2198-fc60e1fb.png",self.location).href,imgAlt:"↘️"},{imgSrc:new URL("/build/assets/2b07-fda2895e.png",self.location).href,imgAlt:"⬇️"},{imgSrc:new URL("/build/assets/2199-c0fd8d5a.png",self.location).href,imgAlt:"↙️"},{imgSrc:new URL("/build/assets/2b05-826c6363.png",self.location).href,imgAlt:"⬅️"},{imgSrc:new URL("/build/assets/2196-562b73e3.png",self.location).href,imgAlt:"↖️"}],categories:[{key:Gg,label:Yd,imgSrcs:[new URL("/build/assets/1f389-131d5e81.png",self.location).href],imgAlts:["🎉"]},{key:Cg,label:qd,imgSrcs:[new URL("/build/assets/1f9ed-d2e50e39.png",self.location).href],imgAlts:["🧭"]},{key:xg,label:Wd,imgSrcs:[new URL("/build/assets/2b50-006b3d22.png",self.location).href],imgAlts:["⭐"]},{key:jg,label:Jd,imgSrcs:[new URL("/build/assets/1f6a9-64e8537c.png",self.location).href],imgAlts:["🚩"]},{key:Eg,label:Zd,imgSrcs:[new URL("/build/assets/1f524-45c8c4cd.png",self.location).href,new URL("/build/assets/1f5e3-140fffbe.png",self.location).href],imgAlts:["🔤","🗣️"]},{key:Lg,label:Xd,imgSrcs:[new URL("/build/assets/1f46b-5efbac8f.png",self.location).href],imgAlts:["👫"]},{key:wg,label:Qd,imgSrcs:[new URL("/build/assets/1fa99-ffb6297c.png",self.location).href],imgAlts:["🪙"]},{key:Sg,label:am,imgSrcs:[new URL("/build/assets/1f3d9-90310872.png",self.location).href],imgAlts:["🏙"]},{key:Dg,label:em,imgSrcs:[new URL("/build/assets/1f4d0-1864f277.png",self.location).href],imgAlts:["📐"]}]},Ym=e=>t=>{let i=[Gg,Cg,xg,jg,Eg,Lg,wg,Sg,Dg];const{borders:s,quiz:n,capital:g,currency_name:o,languages:r,cities:c}=e;(!s||s.length<1)&&(i=i.filter(l=>l!==Cg)),(!r||r.length<1)&&(i=i.filter(l=>l!==Eg)),n||(i=i.filter(l=>l!==Lg)),g||(i=i.filter(l=>l!==xg)),o||(i=i.filter(l=>l!==wg)),(!c||c.length<3)&&(i=i.filter(l=>l!==Sg)),i=B.categories.filter(l=>i.includes(l.key)).map((l,d)=>({...l,index:d})),t({type:Ic,countryOfToday:e,gamesOfToday:i})},nd=()=>(e,t)=>{const{gamesOfToday:i,selectedGame:s}=t().game;let n=i==null?void 0:i.findIndex(o=>o.key===(s==null?void 0:s.key)),g=s;n>=i.length-1?g=i[0]:g=i[n+1],e({type:Bg,target:g})},qm=()=>(e,t)=>{const{gamesOfToday:i,selectedGame:s}=t().game;let n=i==null?void 0:i.findIndex(o=>o.key===(s==null?void 0:s.key)),g=s;n<=0?g=i[i.length-1]:g=i[n-1],e({type:Bg,target:g})},Wm=e=>t=>{t({type:Bg,target:e})},Jm=()=>(e,t)=>{const{selectedGame:i}=t().game;e({type:jc,target:i})},Zm=()=>e=>{e({type:Dc})},an=e=>t=>{t({type:Uc,payload:e})},Xm=()=>e=>{e({type:$c})},en=e=>t=>{t({type:Oc,payload:e})},Qm=()=>e=>{e({type:Fc})},tn=e=>t=>{t({type:Kc,payload:e})},au=()=>e=>{e({type:zc})},eu=e=>t=>{t({type:Hc,payload:e})},tu=()=>e=>{e({type:Vc})},iu=e=>t=>{t({type:Yc,payload:e})},su=()=>e=>{e({type:qc})},gu=e=>t=>{t({type:Wc,payload:e})},nu=()=>e=>{e({type:Jc})},ou=e=>t=>{t({type:Zc,payload:e})},ru=()=>e=>{e({type:Xc})},lu=e=>t=>{t({type:Qc,payload:e})},cu=()=>e=>{e({type:ad})},du=e=>t=>{t({type:ed,payload:e})},x=({className:e="",disabled:t=!1,children:i,onClick:s=()=>{}})=>{const[n,g]=m.useState([]),o=m.useRef(null);return m.useEffect(()=>{const r=l=>{const d=o.current,{left:_,top:p}=d.getBoundingClientRect(),f=l.clientX-_,h=l.clientY-p,y=Math.max(d.clientWidth,d.clientHeight)*2/2,S={x:f,y:h,radius:y,id:Date.now()};g(E=>[...E,S]),setTimeout(()=>{g(E=>E.filter(M=>M.id!==S.id))},1e3)},c=o.current;return c.addEventListener("click",r),()=>{c.removeEventListener("click",r)}},[g]),a.createElement(b.button,{ref:o,type:"button",className:`relative overflow-hidden shadow ${e}`,disabled:t,onClick:s,whileHover:{scale:1.05},whileTap:{scale:.95}},i,n.map(r=>a.createElement("span",{key:r.id,className:"ripple",style:{left:r.x-r.radius+"px",top:r.y-r.radius+"px",width:r.radius*2+"px",height:r.radius*2+"px"}})))},mu=({element:e,value:t,handleListItemClick:i})=>{const s=e.name[v].toUpperCase(),n=s.indexOf(t),g=m.useRef();return a.createElement(b.li,{ref:g,onClick:()=>i(e),whileHover:{scale:.98},whileTap:{scale:.95}},a.createElement("div",{className:"flex cursor-pointer select-none flex-row items-center justify-start overflow-hidden border-b-2 bg-white hover:bg-majky-400 hover:text-white dark:bg-slate-800 dark:text-slate-100 dark:hover:bg-majky-500"},a.createElement("span",{className:"my-0.5 ml-4 h-7"},s.slice(0,n),a.createElement("strong",null,t),s.slice(n+t.length))))},uu=({rows:e,results:t,value:i,onChange:s,onGuess:n})=>{const[g,o]=m.useState(!1),[r,c]=m.useState(!1);m.useEffect(()=>{r&&Cd("flagle",w.date)},[r]);const l=()=>{const u=e.find(y=>y.name[v].toUpperCase()===i.toUpperCase());return u&&(t.map(y=>y.Alpha2Code).includes(u.Alpha2Code)?A.error(`${Ug.replaceAll("<country>",u.name[v].toUpperCase())}`):n(u),s(""),o(!1)),!u},d=u=>{o(!0),s(u.target.value.toUpperCase())},_=u=>{o(!1),s(u.name[v].toUpperCase())},p=u=>{u.key==="Enter"&&i!==""&&l()&&f.length>0&&(o(!1),s(f[0].name[v].toUpperCase()))},f=m.useCallback(()=>e==null?void 0:e.filter(u=>u.name[v].toUpperCase().indexOf(i)>-1).sort((u,y)=>u.name[v].toUpperCase().indexOf(i)-y.name[v].toUpperCase().indexOf(i)),[i,e])();m.useEffect(()=>{const u=()=>{o(!1)};return document.addEventListener("click",u),()=>document.removeEventListener("click",u)},[o]);const h=R();return m.useEffect(()=>{g?h.start({opacity:1,height:Math.min(200,f.length*36)}):h.start({opacity:0,height:0})},[h,g,f.length]),a.createElement("div",{className:"relative flex h-full w-full flex-row space-x-2"},a.createElement("div",{className:"h-full w-full flex-auto rounded"},a.createElement(b.ul,{initial:{opacity:0,height:0},animate:h,className:" absolute bottom-10 z-[99] my-0.5 w-full overflow-auto rounded-md border border-slate-800 bg-slate-300 dark:border-slate-100 dark:bg-slate-900 "},f==null?void 0:f.map(u=>a.createElement(mu,{key:`country-${u.Alpha2Code}`,element:u,value:i,handleListItemClick:_}))),a.createElement("div",{className:"flex w-full flex-row"},a.createElement("input",{type:"text",autoComplete:"off",className:`mx-1 grow rounded border-2 border-transparent bg-white p-1 px-2 outline-none transition-colors duration-300 hover:border-majky-400 hover:bg-majky-100 focus:border-majky-500 focus:ring focus:ring-majky-500/20 dark:bg-slate-800 dark:text-slate-100`,placeholder:id,value:i,onChange:d,onKeyDown:p,onClick:u=>{o(!0),c(!0),u.stopPropagation()}}),a.createElement(x,{className:`flex h-full basis-24 items-center justify-center rounded border-2 border-transparent bg-white p-1 px-5 font-bold outline-none transition-colors duration-300 hover:border-slate-400 hover:bg-majky-100 focus:border-majky-500 focus:ring focus:ring-majky-500/20 active:bg-white disabled:bg-slate-50 disabled:text-slate-300 dark:bg-slate-800 dark:text-slate-100 dark:hover:bg-majky-600 hover:dark:bg-slate-700 dark:active:bg-slate-600 disabled:dark:border-slate-500 disabled:dark:bg-slate-800 disabled:dark:text-slate-500 `,onClick:()=>{l()&&i!==""&&A.error(sd,{position:"top-center"})}},a.createElement("img",{alt:"🌎",src:new URL("/build/assets/1f30e-16905dd1.png",self.location).href,className:"mr-0.5 h-4 w-4 hidden xs:block"}),a.createElement("span",null,Mg)))))},$g=({results:e,rowTemplate:t})=>a.createElement("div",{className:"grid w-full grid-cols-7 gap-1 text-center"},e==null?void 0:e.map((i,s)=>a.createElement(t,{key:"guess-result-"+s,...i}))),Ng={distanceUnits:[{label:"KM",value:"km",square:"km²",rate2Km:1},{label:"Miles",value:"miles",square:"sqmi.",rate2Km:1.60934}],themes:[{value:"light",label:"Light"},{value:"dark",label:"Dark"}],languages:[{value:"co",label:"Corsu"},{value:"de",label:"Deutsch"},{value:"en",label:"English"},{value:"es",label:"Español"},{value:"eu",label:"Euskara"},{value:"fr",label:"Français"},{value:"hu",label:"Magyar"},{value:"ja",label:"日本語"},{value:"nl",label:"Nederlands"},{value:"pl",label:"Polski"},{value:"pt",label:"Português"}]},Og=(e=0,t="km",i=1)=>{let s=Ng.distanceUnits.find(({value:g})=>g===t),n=",";switch(v){case"de":n=".";break}return(e/s.rate2Km**i).toFixed(0).replace(/\B(?=(\d{3})+(?!\d))/g,n)+" "+(i===1?s.label:t==="km"?"km²":"sqmi.")},T=(e=0)=>{let t=",";switch(v){case"de":t=".";break}return e.toFixed(0).replace(/\B(?=(\d{3})+(?!\d))/g,t)},_u=(e=!1)=>{let t=localStorage.getItem("flagle-browserVisitId"+w.date);return(e||!t)&&(localStorage.removeItem("persist:"+localStorage.getItem("flagle-browserVisitId"+w.date)),t=Math.random().toString(36).substr(2,9),localStorage.setItem("flagle-browserVisitId"+w.date,t)),t},Tg=(e,t)=>e.Alpha2Code===(t==null?void 0:t.Alpha2Code),vu=(e,t)=>e.name===t.name,fu=(e,t)=>{const i=e.map(({Alpha2Code:n})=>n.toUpperCase());return t.map(n=>n.toUpperCase()).every(n=>i.includes(n))},Fg=(e,t)=>!!e&&!!(t!=null&&t.length)&&t.includes(e.toUpperCase()),pu=(e,t)=>t.map(i=>i.Alpha2Code).includes(e.Alpha2Code),hu=(e,t=[],i={},s=!1)=>{const n=pu(e,t),g=Tg(e,i);return(s||n)&&g?0:n&&!g?1:s&&!n&&!g?2:-1},Kg=(e,t=[],i={},s=!1)=>{const n=t.includes(e),g=e===i;return(s||n)&&g?0:n&&!g?1:s&&!n&&!g?2:-1},bu=(e,t=[],i=[],s=!1)=>{const n=t.includes(e),g=i.find(o=>o.language[v]===e[v]);return(s||n)&&g?0:n&&!g?1:s&&!n&&!g?2:-1},yu=(e="",t={},i=!1)=>{const s=e===t.name;return i&&s?0:i&&!s?1:-1},ku=(e,t)=>{const i=hg=>hg*(Math.PI/180),s=i(e.Latitude),n=i(e.Longitude),g=i(t.Latitude),o=i(t.Longitude),r=o-n,c=Math.sin(r)*Math.cos(g),l=Math.cos(s)*Math.sin(g)-Math.sin(s)*Math.cos(g)*Math.cos(r);let d=Math.atan2(c,l);d=d*180/Math.PI,d=(d+360)%360;let _=Math.floor((d+22.5)/45)%8+1;const p=6371,f=g-s,h=o-n,u=Math.sin(f/2)*Math.sin(f/2)+Math.cos(s)*Math.cos(g)*Math.sin(h/2)*Math.sin(h/2),y=2*Math.atan2(Math.sqrt(u),Math.sqrt(1-u)),S=p*y,E=Math.PI*p,M=100-S/E*100,P=t.area*100/e.area;return{bearing:d,direction:_,distance:S,percent:M,sizePercent:P}},Au=e=>e<2?1:e===3?3:e<5?2:e<9?3:4,Cu=(e,t,i=7)=>{const s=e.filter(g=>t!==g.Alpha2Code).sort(()=>Math.random()-.5).slice(0,i),n=e.find(g=>g.Alpha2Code===t);return[...s,n].sort(()=>Math.random()-.5)},xu=(e,t,i=3)=>[...e.filter(n=>!t.includes(n)).sort(()=>Math.random()-.5).slice(0,i-t.length),...t].sort(()=>Math.random()-.5),Eu=(e,t,i=3)=>{const s=e.filter(g=>!t.includes(g)).sort(()=>Math.random()-.5).slice(0,i-t.length),n=e.filter(g=>t.includes(g));return[...s,...n].sort(()=>Math.random()-.5)},Lu=(e,t)=>t.filter(i=>!e.includes(i.language)).length===0;function wu(e,t="km"){let i=Ng.distanceUnits.find(({value:d})=>d===t);const s=e/i.rate2Km**2,n=i.square,g=s<1?.001:s<1e3?1:s<1e6?1e3:1e6,o=s<1?"1E-3":s<1e3?"":s<1e6?"K":"M",r=250,c=Math.floor(s/(g*r))+1,l=[`< ${[T(r*1),o,n].join(" ")}`,`${[T(r*1),o,n].join(" ")} ~ ${[T(r*2),o,n].join(" ")}`,`${[T(r*2),o,n].join(" ")} ~ ${[T(r*3),o,n].join(" ")}`,`${[T(r*3),o,n].join(" ")} ~ ${[T(r*4),o,n].join(" ")}`];return{options:l,answer:l[c-1]}}const Su=e=>{const t="a".charCodeAt(0);if(e.length!==2)throw new Error("Seed must be exactly two letters");const[i,s]=e.toLowerCase().split(""),n=i.charCodeAt(0)-t+1,g=s.charCodeAt(0)-t+1;return n*26+g},Nu=(e,t)=>{const i=Bu(t);for(let s=e.length-1;s>0;s--){const n=Math.floor(i()*(s+1));[e[s],e[n]]=[e[n],e[s]]}return e},Bu=e=>()=>{let t=e+=1831565813;return t=Math.imul(t^t>>>15,t|1),t^=t+Math.imul(t^t>>>7,t|61),((t^t>>>14)>>>0)/4294967296},Gu=(e,t=2e3,i=50)=>{const[s,n]=m.useState(0);return m.useEffect(()=>{const g=Math.ceil(e/i);let o=0;const r=setInterval(()=>{o+=g,n(Math.min(o,e)),o>=e&&clearInterval(r)},t/i);return()=>clearInterval(r)},[e,t,i]),s},zg=()=>a.createElement(b.div,{initial:{opacity:1},animate:{opacity:0,transitionEnd:{display:"none"}},transition:{delay:2},className:"absolute left-0 top-0 z-50 flex h-full w-full items-center justify-evenly rounded bg-transparent text-2xl"},new Array(5).fill(0).map((e,t)=>{var i;return a.createElement(b.div,{key:"square-"+t,initial:{opacity:1},animate:{opacity:0,transition:{delay:1.5}},className:" overflow-hidden "},a.createElement(b.img,{initial:{opacity:0},animate:{opacity:1},transition:{delay:t*.3},className:"my-0.5 h-full w-8",alt:B.journeySvgs[t].imgAlt,src:(i=B.journeySvgs[t].imgSrc)==null?void 0:i.toLowerCase()}))})),Mu=({country:e,Alpha2Code:t,distance:i,direction:s,percent:n,sizePercent:g})=>{var l;const{showScale:o}=k(({user:d})=>d.settings),{settings:r}=k(({user:d})=>d),c=Gu(parseFloat(o?Math.min(g,999):n));return a.createElement(m.Fragment,null,a.createElement("div",{className:"relative col-span-6 grid h-fit grid-cols-6 gap-1"},a.createElement(b.div,{initial:{opacity:0},animate:{opacity:1},transition:{delay:2},className:"col-span-6 grid h-full grid-cols-6 gap-1"},a.createElement("div",{className:"animate-reveal col-span-3 flex h-full flex-row items-center justify-start rounded border-2"},a.createElement("p",{className:"flex-1 overflow-hidden text-ellipsis whitespace-pre-wrap text-center"},e[v]??e)),a.createElement("div",{className:"animate-reveal col-span-2 flex h-full items-center justify-center rounded border-2"},Og(i,r.distanceUnit)),a.createElement("div",{className:"animate-reveal col-span-1 flex h-full items-center justify-center rounded border-2 px-2"},a.createElement("img",{alt:B.directions[s].imgAlt,src:(l=B.directions[s].imgSrc)==null?void 0:l.toLowerCase(),className:"h-4 w-4"}))),a.createElement(zg,null)),a.createElement("div",{className:"animate-reveal animate-pop col-span-1 flex items-center justify-center rounded border-2 text-center"},c.toFixed(0)+" %"))},Hg=({count:e=0})=>a.createElement(m.Fragment,null,new Array(Math.max(e,0)).fill(0).map((t,i)=>a.createElement(b.div,{key:"blank-"+i,className:"mb-0 flex h-6 w-full items-center justify-center gap-1 rounded border border-dashed border-slate-300 bg-slate-200 bg-opacity-50 transition-all duration-300 dark:border-slate-700 dark:bg-slate-700",initial:{opacity:0,translateX:-20},animate:{opacity:1,translateX:0},exit:{opacity:0,translateX:-20},transition:{delay:i*.1+.2}}))),fg=[{name:{de:"Afghanistan",en:"Afghanistan"},Alpha2Code:"AF",Longitude:67.709953,Latitude:33.93911,area:652230},{name:{de:"Albanien",en:"Albania"},Alpha2Code:"AL",Longitude:20.168331,Latitude:41.153332,area:28748},{name:{de:"Algerien",en:"Algeria"},Alpha2Code:"DZ",Longitude:1.659626,Latitude:28.033886,area:2381741},{name:{de:"Amerikanisch-Samoa",en:"American Samoa"},Alpha2Code:"AS",Longitude:-170.132217,Latitude:-14.270972,area:199},{name:{de:"Andorra",en:"Andorra"},Alpha2Code:"AD",Longitude:1.601554,Latitude:42.546245,area:468},{name:{de:"Angola",en:"Angola"},Alpha2Code:"AO",Longitude:17.873887,Latitude:-11.202692,area:1246700},{name:{de:"Anguilla",en:"Anguilla"},Alpha2Code:"AI",Longitude:-63.068615,Latitude:18.220554,area:91},{name:{de:"Antarktis",en:"Antarctica"},Alpha2Code:"AQ",Longitude:-.071389,Latitude:-75.250973,area:14e6},{name:{de:"Antigua und Barbuda",en:"Antigua and Barbuda"},Alpha2Code:"AG",Longitude:-61.796428,Latitude:17.060816,area:442},{name:{de:"Argentinien",en:"Argentina"},Alpha2Code:"AR",Longitude:-63.616672,Latitude:-38.416097,area:2780400},{name:{de:"Armenien",en:"Armenia"},Alpha2Code:"AM",Longitude:45.038189,Latitude:40.069099,area:29743},{name:{de:"Aruba",en:"Aruba"},Alpha2Code:"AW",Longitude:-69.968338,Latitude:12.52111,area:180},{name:{de:"Australien",en:"Australia"},Alpha2Code:"AU",Longitude:133.775136,Latitude:-25.274398,area:7692024},{name:{de:"Österreich",en:"Austria"},Alpha2Code:"AT",Longitude:14.550072,Latitude:47.516231,area:83871},{name:{de:"Aserbaidschan",en:"Azerbaijan"},Alpha2Code:"AZ",Longitude:47.576927,Latitude:40.143105,area:86600},{name:{de:"Bahamas",en:"Bahamas"},Alpha2Code:"BS",Longitude:-77.39628,Latitude:25.03428,area:13880},{name:{de:"Bahrain",en:"Bahrain"},Alpha2Code:"BH",Longitude:50.637772,Latitude:25.930414,area:760},{name:{de:"Bangladesch",en:"Bangladesh"},Alpha2Code:"BD",Longitude:90.356331,Latitude:23.684994,area:147570},{name:{de:"Barbados",en:"Barbados"},Alpha2Code:"BB",Longitude:-59.543198,Latitude:13.193887,area:430},{name:{de:"Weißrussland",en:"Belarus"},Alpha2Code:"BY",Longitude:27.953389,Latitude:53.709807,area:207600},{name:{de:"Belgien",en:"Belgium"},Alpha2Code:"BE",Longitude:4.469936,Latitude:50.503887,area:30528},{name:{de:"Belize",en:"Belize"},Alpha2Code:"BZ",Longitude:-88.49765,Latitude:17.189877,area:22966},{name:{de:"Benin",en:"Benin"},Alpha2Code:"BJ",Longitude:2.315834,Latitude:9.30769,area:112622},{name:{de:"Bermuda",en:"Bermuda"},Alpha2Code:"BM",Longitude:-64.75737,Latitude:32.321384,area:54},{name:{de:"Bhutan",en:"Bhutan"},Alpha2Code:"BT",Longitude:90.433601,Latitude:27.514162,area:38394},{name:{de:"Bolivien",en:"Bolivia"},Alpha2Code:"BO",Longitude:-63.588653,Latitude:-16.290154,area:1098581},{name:{de:"Bosnien und Herzegowina",en:"Bosnia and Herzegovina"},Alpha2Code:"BA",Longitude:17.679076,Latitude:43.915886,area:51197},{name:{de:"Botswana",en:"Botswana"},Alpha2Code:"BW",Longitude:24.684866,Latitude:-22.328474,area:581730},{name:{de:"Bouvetinsel",en:"Bouvet Island"},Alpha2Code:"BV",Longitude:3.413194,Latitude:-54.423199,area:49},{name:{de:"Brasilien",en:"Brazil"},Alpha2Code:"BR",Longitude:-51.92528,Latitude:-14.235004,area:8515767},{name:{de:"Britisches Territorium des Indischen Ozeans",en:"British Indian Ocean Territory"},Alpha2Code:"IO",Longitude:71.876519,Latitude:-6.343194,area:54400},{name:{de:"Brunei Darussalam",en:"Brunei Darussalam"},Alpha2Code:"BN",Longitude:114.727669,Latitude:4.535277,area:5765},{name:{de:"Bulgarien",en:"Bulgaria"},Alpha2Code:"BG",Longitude:25.48583,Latitude:42.733883,area:110879},{name:{de:"Burkina Faso",en:"Burkina Faso"},Alpha2Code:"BF",Longitude:-1.561593,Latitude:12.238333,area:274200},{name:{de:"Burundi",en:"Burundi"},Alpha2Code:"BI",Longitude:29.918886,Latitude:-3.373056,area:27834},{name:{de:"Kambodscha",en:"Cambodia"},Alpha2Code:"KH",Longitude:104.990963,Latitude:12.565679,area:181035},{name:{de:"Kamerun",en:"Cameroon"},Alpha2Code:"CM",Longitude:12.354722,Latitude:7.369722,area:475442},{name:{de:"Kanada",en:"Canada"},Alpha2Code:"CA",Longitude:-106.346771,Latitude:56.130366,area:9984670},{name:{de:"Kap Verde",en:"Cape Verde"},Alpha2Code:"CV",Longitude:-24.013197,Latitude:16.002082,area:4033},{name:{de:"Kaimaninseln",en:"Cayman Islands"},Alpha2Code:"KY",Longitude:-80.566956,Latitude:19.513469,area:264},{name:{de:"Zentralafrikanische Republik",en:"Central African Republic"},Alpha2Code:"CF",Longitude:20.939444,Latitude:6.611111,area:622984},{name:{de:"Tschad",en:"Chad"},Alpha2Code:"TD",Longitude:18.732207,Latitude:15.454166,area:1284e3},{name:{de:"Chile",en:"Chile"},Alpha2Code:"CL",Longitude:-71.542969,Latitude:-35.675147,area:756102},{name:{de:"China",en:"China"},Alpha2Code:"CN",Longitude:104.195397,Latitude:35.86166,area:9596960},{name:{de:"Weihnachtsinsel",en:"Christmas Island"},Alpha2Code:"CX",Longitude:105.690449,Latitude:-10.447525,area:135},{name:{de:"Kokosinseln",en:"Cocos Islands"},Alpha2Code:"CC",Longitude:96.870956,Latitude:-12.164165,area:14},{name:{de:"Kolumbien",en:"Colombia"},Alpha2Code:"CO",Longitude:-74.297333,Latitude:4.570868,area:1141748},{name:{de:"Komoren",en:"Comoros"},Alpha2Code:"KM",Longitude:43.872219,Latitude:-11.875001,area:1862},{name:{de:"Kongo",en:"Congo"},Alpha2Code:"CG",Longitude:15.827659,Latitude:-.228021,area:342e3},{name:{de:"Demokratische Republik Kongo",en:"Democratic Republic of the Congo"},Alpha2Code:"CD",Longitude:21.758664,Latitude:-4.038333,area:2344858},{name:{de:"Cookinseln",en:"Cook Islands"},Alpha2Code:"CK",Longitude:-159.777671,Latitude:-21.236736,area:236},{name:{de:"Costa Rica",en:"Costa Rica"},Alpha2Code:"CR",Longitude:-83.753428,Latitude:9.748917,area:51100},{name:{de:"Elfenbeinküste",en:"Cote d'Ivoire"},Alpha2Code:"CI",Longitude:-5.54708,Latitude:7.539989,area:322463},{name:{de:"Kroatien",en:"Croatia"},Alpha2Code:"HR",Longitude:15.2,Latitude:45.1,area:56594},{name:{de:"Kuba",en:"Cuba"},Alpha2Code:"CU",Longitude:-77.781167,Latitude:21.521757,area:110860},{name:{de:"Curacao",en:"Curacao"},Alpha2Code:"CW",Longitude:-69.060087,Latitude:12.226079,area:444},{name:{de:"Zypern",en:"Cyprus"},Alpha2Code:"CY",Longitude:33.429859,Latitude:35.126413,area:9251},{name:{de:"Tschechien",en:"Czech Republic"},Alpha2Code:"CZ",Longitude:15.472962,Latitude:49.817492,area:78865},{name:{de:"Dänemark",en:"Denmark"},Alpha2Code:"DK",Longitude:9.501785,Latitude:56.26392,area:43094},{name:{de:"Dschibuti",en:"Djibouti"},Alpha2Code:"DJ",Longitude:42.590275,Latitude:11.825138,area:23200},{name:{de:"Dominica",en:"Dominica"},Alpha2Code:"DM",Longitude:-61.370976,Latitude:15.414999,area:751},{name:{de:"Dominikanische Republik",en:"Dominican Republic"},Alpha2Code:"DO",Longitude:-70.162651,Latitude:18.735693,area:48671},{name:{de:"Ecuador",en:"Ecuador"},Alpha2Code:"EC",Longitude:-78.183406,Latitude:-1.831239,area:276841},{name:{de:"Ägypten",en:"Egypt"},Alpha2Code:"EG",Longitude:30.802498,Latitude:26.820553,area:1002450},{name:{de:"El Salvador",en:"El Salvador"},Alpha2Code:"SV",Longitude:-88.89653,Latitude:13.794185,area:21041},{name:{de:"Äquatorialguinea",en:"Equatorial Guinea"},Alpha2Code:"GQ",Longitude:10.267895,Latitude:1.650801,area:28051},{name:{de:"Eritrea",en:"Eritrea"},Alpha2Code:"ER",Longitude:39.782334,Latitude:15.179384,area:117600},{name:{de:"Estland",en:"Estonia"},Alpha2Code:"EE",Longitude:25.013607,Latitude:58.595272,area:45227},{name:{de:"Äthiopien",en:"Ethiopia"},Alpha2Code:"ET",Longitude:40.489673,Latitude:9.145,area:1104300},{name:{de:"Falklandinseln",en:"Falkland Islands"},Alpha2Code:"FK",Longitude:-59.523613,Latitude:-51.796253,area:12173},{name:{de:"Färöer",en:"Faroe Islands"},Alpha2Code:"FO",Longitude:-6.911806,Latitude:61.892635,area:1393},{name:{de:"Fidschi",en:"Fiji"},Alpha2Code:"FJ",Longitude:179.414413,Latitude:-16.578193,area:18274},{name:{de:"Finnland",en:"Finland"},Alpha2Code:"FI",Longitude:25.748151,Latitude:61.92411,area:338424},{name:{de:"Frankreich",en:"France"},Alpha2Code:"FR",Longitude:2.213749,Latitude:46.227638,area:551695},{name:{de:"Französisch-Guayana",en:"French Guiana"},Alpha2Code:"GF",Longitude:-53.125782,Latitude:3.933889,area:83534},{name:{de:"Französisch-Polynesien",en:"French Polynesia"},Alpha2Code:"PF",Longitude:-149.406843,Latitude:-17.679742,area:4167},{name:{de:"Kerguelen Insel",en:"Kerguelen Islands"},Alpha2Code:"TF",Longitude:69.348557,Latitude:-49.280366,area:7747},{name:{de:"Gabun",en:"Gabon"},Alpha2Code:"GA",Longitude:11.609444,Latitude:-.803689,area:267668},{name:{de:"Gambia",en:"Gambia"},Alpha2Code:"GM",Longitude:-15.310139,Latitude:13.443182,area:11295},{name:{de:"Gaza",en:"Gaza"},Alpha2Code:"GZ",Longitude:34.308825,Latitude:31.354676,area:360},{name:{de:"Georgien",en:"Georgia"},Alpha2Code:"GE",Longitude:43.356892,Latitude:42.315407,area:69700},{name:{de:"Deutschland",en:"Germany"},Alpha2Code:"DE",Longitude:10.451526,Latitude:51.165691,area:357022},{name:{de:"Ghana",en:"Ghana"},Alpha2Code:"GH",Longitude:-1.023194,Latitude:7.946527,area:238533},{name:{de:"Gibraltar",en:"Gibraltar"},Alpha2Code:"GI",Longitude:-5.345374,Latitude:36.137741,area:6},{name:{de:"Griechenland",en:"Greece"},Alpha2Code:"GR",Longitude:21.824312,Latitude:39.074208,area:131957},{name:{de:"Grönland",en:"Greenland"},Alpha2Code:"GL",Longitude:-42.604303,Latitude:71.706936,area:2166086},{name:{de:"Grenada",en:"Grenada"},Alpha2Code:"GD",Longitude:-61.604171,Latitude:12.262776,area:344},{name:{de:"Guadeloupe",en:"Guadeloupe"},Alpha2Code:"GP",Longitude:-61.422873,Latitude:16.08663,area:1628},{name:{de:"Guam",en:"Guam"},Alpha2Code:"GU",Longitude:144.793731,Latitude:13.444304,area:549},{name:{de:"Guatemala",en:"Guatemala"},Alpha2Code:"GT",Longitude:-90.230759,Latitude:15.783471,area:108889},{name:{de:"Guernsey",en:"Guernsey"},Alpha2Code:"GG",Longitude:-2.585278,Latitude:49.465691,area:78},{name:{de:"Guinea",en:"Guinea"},Alpha2Code:"GN",Longitude:-9.696645,Latitude:9.945587,area:245857},{name:{de:"Guinea-Bissau",en:"Guinea-Bissau"},Alpha2Code:"GW",Longitude:-15.180413,Latitude:11.803749,area:36125},{name:{de:"Guyana",en:"Guyana"},Alpha2Code:"GY",Longitude:-58.93018,Latitude:4.860416,area:214969},{name:{de:"Haiti",en:"Haiti"},Alpha2Code:"HT",Longitude:-72.285215,Latitude:18.971187,area:27750},{name:{de:"Heard Insel und McDonald Inseln",en:"Heard Island and McDonald Islands"},Alpha2Code:"HM",Longitude:73.504158,Latitude:-53.08181,area:412},{name:{de:"Vatikanstadt",en:"Vatican City"},Alpha2Code:"VA",Longitude:12.453389,Latitude:41.902916,area:.44},{name:{de:"Honduras",en:"Honduras"},Alpha2Code:"HN",Longitude:-86.241905,Latitude:15.199999,area:112492},{name:{de:"Hong Kong",en:"Hong Kong"},Alpha2Code:"HK",Longitude:114.109497,Latitude:22.396428,area:1104},{name:{de:"Ungarn",en:"Hungary"},Alpha2Code:"HU",Longitude:19.503304,Latitude:47.162494,area:93028},{name:{de:"Island",en:"Iceland"},Alpha2Code:"IS",Longitude:-19.020835,Latitude:64.963051,area:103e3},{name:{de:"Indien",en:"India"},Alpha2Code:"IN",Longitude:78.96288,Latitude:20.593684,area:3287263},{name:{de:"Indonesien",en:"Indonesia"},Alpha2Code:"ID",Longitude:113.921327,Latitude:-.789275,area:1904569},{name:{de:"Iran",en:"Iran"},Alpha2Code:"IR",Longitude:53.688046,Latitude:32.427908,area:1648195},{name:{de:"Irak",en:"Iraq"},Alpha2Code:"IQ",Longitude:43.679291,Latitude:33.223191,area:438317},{name:{de:"Irland",en:"Ireland"},Alpha2Code:"IE",Longitude:-8.24389,Latitude:53.41291,area:70273},{name:{de:"Isle of Man",en:"Isle of Man"},Alpha2Code:"IM",Longitude:-4.548056,Latitude:54.236107,area:572},{name:{de:"Israel",en:"Israel"},Alpha2Code:"IL",Longitude:34.851612,Latitude:31.046051,area:22072},{name:{de:"Italien",en:"Italy"},Alpha2Code:"IT",Longitude:12.56738,Latitude:41.87194,area:301340},{name:{de:"Jamaica",en:"Jamaica"},Alpha2Code:"JM",Longitude:-77.297508,Latitude:18.109581,area:10991},{name:{de:"Japan",en:"Japan"},Alpha2Code:"JP",Longitude:138.252924,Latitude:36.204824,area:377930},{name:{de:"Jersey",en:"Jersey"},Alpha2Code:"JE",Longitude:-2.13125,Latitude:49.214439,area:116},{name:{de:"Jordanien",en:"Jordan"},Alpha2Code:"JO",Longitude:36.238414,Latitude:30.585164,area:89342},{name:{de:"Kasachstan",en:"Kazakhstan"},Alpha2Code:"KZ",Longitude:66.923684,Latitude:48.019573,area:2724900},{name:{de:"Kenia",en:"Kenya"},Alpha2Code:"KE",Longitude:37.906193,Latitude:-.023559,area:580367},{name:{de:"Kiribati",en:"Kiribati"},Alpha2Code:"KI",Longitude:-168.734039,Latitude:-3.370417,area:811},{name:{de:"Nordkorea",en:"North Korea"},Alpha2Code:"KP",Longitude:127.510093,Latitude:40.339852,area:120538},{name:{de:"Südkorea",en:"South Korea"},Alpha2Code:"KR",Longitude:127.766922,Latitude:35.907757,area:100210},{name:{de:"Kosovo",en:"Kosovo"},Alpha2Code:"XK",Longitude:20.902977,Latitude:42.602636,area:10887},{name:{de:"Kuwait",en:"Kuwait"},Alpha2Code:"KW",Longitude:47.481766,Latitude:29.31166,area:17818},{name:{de:"Kirgisistan",en:"Kyrgyzstan"},Alpha2Code:"KG",Longitude:74.766098,Latitude:41.20438,area:199951},{name:{de:"Laos",en:"Laos"},Alpha2Code:"LA",Longitude:102.495496,Latitude:19.85627,area:236800},{name:{de:"Lettland",en:"Latvia"},Alpha2Code:"LV",Longitude:24.603189,Latitude:56.879635,area:64559},{name:{de:"Libanon",en:"Lebanon"},Alpha2Code:"LB",Longitude:35.862285,Latitude:33.854721,area:10452},{name:{de:"Lesotho",en:"Lesotho"},Alpha2Code:"LS",Longitude:28.233608,Latitude:-29.609988,area:30355},{name:{de:"Liberia",en:"Liberia"},Alpha2Code:"LR",Longitude:-9.429499,Latitude:6.428055,area:111369},{name:{de:"Libyen",en:"Libya"},Alpha2Code:"LY",Longitude:17.228331,Latitude:26.3351,area:1759540},{name:{de:"Liechtenstein",en:"Liechtenstein"},Alpha2Code:"LI",Longitude:9.555373,Latitude:47.166,area:160},{name:{de:"Litauen",en:"Lithuania"},Alpha2Code:"LT",Longitude:23.881275,Latitude:55.169438,area:65300},{name:{de:"Luxemburg",en:"Luxembourg"},Alpha2Code:"LU",Longitude:6.129583,Latitude:49.815273,area:2586},{name:{de:"Macau",en:"Macao"},Alpha2Code:"MO",Longitude:113.543873,Latitude:22.198745,area:30},{name:{de:"Nordmazedonien",en:"North Macedonia"},Alpha2Code:"MK",Longitude:21.745275,Latitude:41.608635,area:25713},{name:{de:"Madagaskar",en:"Madagascar"},Alpha2Code:"MG",Longitude:46.869107,Latitude:-18.766947,area:587041},{name:{de:"Malawi",en:"Malawi"},Alpha2Code:"MW",Longitude:34.301525,Latitude:-13.254308,area:118484},{name:{de:"Malaysia",en:"Malaysia"},Alpha2Code:"MY",Longitude:109.091912,Latitude:4.040255,area:330803},{name:{de:"Malediven",en:"Maldives"},Alpha2Code:"MV",Longitude:73.22068,Latitude:3.202778,area:298},{name:{de:"Mali",en:"Mali"},Alpha2Code:"ML",Longitude:-3.996166,Latitude:17.570692,area:1240192},{name:{de:"Malta",en:"Malta"},Alpha2Code:"MT",Longitude:14.375416,Latitude:35.937496,area:316},{name:{de:"Marshallinseln",en:"Marshall Islands"},Alpha2Code:"MH",Longitude:171.1845,Latitude:7.1315,area:181.3},{name:{de:"Martinique",en:"Martinique"},Alpha2Code:"MQ",Longitude:-61.024174,Latitude:14.641528,area:1128},{name:{de:"Mauritanien",en:"Mauritania"},Alpha2Code:"MR",Longitude:-10.940835,Latitude:21.00789,area:1030700},{name:{de:"Mauritius",en:"Mauritius"},Alpha2Code:"MU",Longitude:57.552152,Latitude:-20.348404,area:2040},{name:{de:"Mayotte",en:"Mayotte"},Alpha2Code:"YT",Longitude:45.166244,Latitude:-12.8275,area:374},{name:{de:"Mexico",en:"Mexico"},Alpha2Code:"MX",Longitude:-102.552784,Latitude:23.634501,area:1964375},{name:{de:"Mikronesien",en:"Micronesia"},Alpha2Code:"FM",Longitude:150.550812,Latitude:7.425554,area:702},{name:{de:"Moldavien",en:"Moldova"},Alpha2Code:"MD",Longitude:28.369885,Latitude:47.411631,area:33846},{name:{de:"Monaco",en:"Monaco"},Alpha2Code:"MC",Longitude:7.412841,Latitude:43.750298,area:2},{name:{de:"Mongolei",en:"Mongolia"},Alpha2Code:"MN",Longitude:103.846656,Latitude:46.862496,area:1564116},{name:{de:"Montenegro",en:"Montenegro"},Alpha2Code:"ME",Longitude:19.37439,Latitude:42.708678,area:13812},{name:{de:"Montserrat",en:"Montserrat"},Alpha2Code:"MS",Longitude:-62.187366,Latitude:16.742498,area:102},{name:{de:"Marokko",en:"Morocco"},Alpha2Code:"MA",Longitude:-7.09262,Latitude:31.791702,area:446550},{name:{de:"Mosambik",en:"Mozambique"},Alpha2Code:"MZ",Longitude:35.529562,Latitude:-18.665695,area:801590},{name:{de:"Myanmar",en:"Myanmar"},Alpha2Code:"MM",Longitude:95.956223,Latitude:21.913965,area:676578},{name:{de:"Namibia",en:"Namibia"},Alpha2Code:"NA",Longitude:18.49041,Latitude:-22.95764,area:825615},{name:{de:"Nauru",en:"Nauru"},Alpha2Code:"NR",Longitude:166.931503,Latitude:-.522778,area:21},{name:{de:"Nepal",en:"Nepal"},Alpha2Code:"NP",Longitude:84.124008,Latitude:28.394857,area:147181},{name:{de:"Niederlande",en:"Netherlands"},Alpha2Code:"NL",Longitude:5.291266,Latitude:52.132633,area:42143},{name:{de:"Neukaledonien",en:"New Caledonia"},Alpha2Code:"NC",Longitude:165.618042,Latitude:-20.904305,area:18575},{name:{de:"Neuseeland",en:"New Zealand"},Alpha2Code:"NZ",Longitude:174.885971,Latitude:-40.900557,area:270467},{name:{de:"Nicaragua",en:"Nicaragua"},Alpha2Code:"NI",Longitude:-85.207229,Latitude:12.865416,area:130373},{name:{de:"Niger",en:"Niger"},Alpha2Code:"NE",Longitude:8.081666,Latitude:17.607789,area:1186408},{name:{de:"Nigeria",en:"Nigeria"},Alpha2Code:"NG",Longitude:8.675277,Latitude:9.081999,area:923768},{name:{de:"Niue",en:"Niue"},Alpha2Code:"NU",Longitude:-169.867233,Latitude:-19.054445,area:260},{name:{de:"Norfolkinsel",en:"Norfolk Island"},Alpha2Code:"NF",Longitude:167.954712,Latitude:-29.040835,area:36},{name:{de:"Nördliche Marianen",en:"Northern Mariana Islands"},Alpha2Code:"MP",Longitude:145.38469,Latitude:17.33083,area:464},{name:{de:"Norwegen",en:"Norway"},Alpha2Code:"NO",Longitude:8.468946,Latitude:60.472024,area:323802},{name:{de:"Oman",en:"Oman"},Alpha2Code:"OM",Longitude:55.923255,Latitude:21.512583,area:309500},{name:{de:"Pakistan",en:"Pakistan"},Alpha2Code:"PK",Longitude:69.345116,Latitude:30.375321,area:881912},{name:{de:"Palau",en:"Palau"},Alpha2Code:"PW",Longitude:134.58252,Latitude:7.51498,area:459},{name:{de:"Palästina",en:"Palestine"},Alpha2Code:"PS",Longitude:35.233154,Latitude:31.952162,area:6020},{name:{de:"Panama",en:"Panama"},Alpha2Code:"PA",Longitude:-80.782127,Latitude:8.537981,area:75417},{name:{de:"Papua-Neuguinea",en:"Papua New Guinea"},Alpha2Code:"PG",Longitude:143.95555,Latitude:-6.314993,area:462840},{name:{de:"Paraguay",en:"Paraguay"},Alpha2Code:"PY",Longitude:-58.443832,Latitude:-23.442503,area:406752},{name:{de:"Peru",en:"Peru"},Alpha2Code:"PE",Longitude:-75.015152,Latitude:-9.189967,area:1285216},{name:{de:"Philippinen",en:"Philippines"},Alpha2Code:"PH",Longitude:121.774017,Latitude:12.879721,area:3e5},{name:{de:"Pitcairn",en:"Pitcairn Islands"},Alpha2Code:"PN",Longitude:-127.439308,Latitude:-24.703615,area:47},{name:{de:"Polen",en:"Poland"},Alpha2Code:"PL",Longitude:19.145136,Latitude:51.919438,area:312685},{name:{de:"Portugal",en:"Portugal"},Alpha2Code:"PT",Longitude:-8.224454,Latitude:39.399872,area:92090},{name:{de:"Puerto Rico",en:"Puerto Rico"},Alpha2Code:"PR",Longitude:-66.590149,Latitude:18.220833,area:8870},{name:{de:"Katar",en:"Qatar"},Alpha2Code:"QA",Longitude:51.183884,Latitude:25.354826,area:11586},{name:{de:"Reunion",en:"Reunion"},Alpha2Code:"RE",Longitude:55.536384,Latitude:-21.115141,area:2511},{name:{de:"Rumänien",en:"Romania"},Alpha2Code:"RO",Longitude:24.96676,Latitude:45.943161,area:238391},{name:{de:"Russland",en:"Russia"},Alpha2Code:"RU",Longitude:105.318756,Latitude:61.52401,area:17098242},{name:{de:"Ruanda",en:"Rwanda"},Alpha2Code:"RW",Longitude:29.873888,Latitude:-1.940278,area:26338},{name:{de:"St. Helena",en:"St. Helena"},Alpha2Code:"SH",Longitude:-10.030696,Latitude:-24.143474,area:394},{name:{de:"St. Kitts und Nevis",en:"St. Kitts and Nevis"},Alpha2Code:"KN",Longitude:-62.782998,Latitude:17.357822,area:261},{name:{de:"St. Lucia",en:"St. Lucia"},Alpha2Code:"LC",Longitude:-60.978893,Latitude:13.909444,area:616},{name:{de:"St. Pierre und Miquelon",en:"St. Pierre and Miquelon"},Alpha2Code:"PM",Longitude:-56.27111,Latitude:46.941936,area:242},{name:{de:"St. Vincent und die Grenadinen",en:"St. Vincent and the Grenadines"},Alpha2Code:"VC",Longitude:-61.287228,Latitude:12.984305,area:389},{name:{de:"Samoa",en:"Samoa"},Alpha2Code:"WS",Longitude:-172.104629,Latitude:-13.759029,area:2831},{name:{de:"San Marino",en:"San Marino"},Alpha2Code:"SM",Longitude:12.457777,Latitude:43.94236,area:61},{name:{de:"São Tomé und Príncipe",en:"Sao Tome and Príncipe"},Alpha2Code:"ST",Longitude:6.613081,Latitude:.18636,area:964},{name:{de:"Saudi-Arabien",en:"Saudi Arabia"},Alpha2Code:"SA",Longitude:45.079162,Latitude:23.885942,area:2149690},{name:{de:"Senegal",en:"Senegal"},Alpha2Code:"SN",Longitude:-14.452362,Latitude:14.497401,area:196722},{name:{de:"Serbien",en:"Serbia"},Alpha2Code:"RS",Longitude:21.005859,Latitude:44.016521,area:88361},{name:{de:"Seychellen",en:"Seychelles"},Alpha2Code:"SC",Longitude:55.491977,Latitude:-4.679574,area:455},{name:{de:"Sierra Leone",en:"Sierra Leone"},Alpha2Code:"SL",Longitude:-11.779889,Latitude:8.460555,area:71740},{name:{de:"Singapur",en:"Singapore"},Alpha2Code:"SG",Longitude:103.819836,Latitude:1.352083,area:710},{name:{de:"Slowakei",en:"Slovakia"},Alpha2Code:"SK",Longitude:19.699024,Latitude:48.669026,area:49035},{name:{de:"Slovenien",en:"Slovenia"},Alpha2Code:"SI",Longitude:14.995463,Latitude:46.151241,area:20273},{name:{de:"Salomonen",en:"Solomon Islands"},Alpha2Code:"SB",Longitude:160.156194,Latitude:-9.64571,area:28896},{name:{de:"Somalia",en:"Somalia"},Alpha2Code:"SO",Longitude:46.199616,Latitude:5.152149,area:637657},{name:{de:"Südafrika",en:"South Africa"},Alpha2Code:"ZA",Longitude:22.937506,Latitude:-30.559482,area:1219090},{name:{de:"Südgeorgien",en:"South Georgia"},Alpha2Code:"GS",Longitude:-36.587909,Latitude:-54.429579,area:3903},{name:{de:"Südsudan",en:"South Sudan"},Alpha2Code:"SS",Longitude:30.659016,Latitude:6.85065,area:644329},{name:{de:"Spanien",en:"Spain"},Alpha2Code:"ES",Longitude:-3.74922,Latitude:40.463667,area:505992},{name:{de:"Sri Lanka",en:"Sri Lanka"},Alpha2Code:"LK",Longitude:80.771797,Latitude:7.873054,area:65610},{name:{de:"Sudan",en:"Sudan"},Alpha2Code:"SD",Longitude:30.7671933,Latitude:15.8905231,area:1861484},{name:{de:"Suriname",en:"Suriname"},Alpha2Code:"SR",Longitude:-56.027783,Latitude:3.919305,area:163820},{name:{de:"Spitzbergen und Jan Mayen",en:"Svalbard and Jan Mayen"},Alpha2Code:"SJ",Longitude:23.670272,Latitude:77.553604,area:62049},{name:{de:"Swasiland ",en:"Swaziland"},Alpha2Code:"SZ",Longitude:31.465866,Latitude:-26.522503,area:17364},{name:{de:"Schweden",en:"Sweden"},Alpha2Code:"SE",Longitude:18.643501,Latitude:60.128161,area:450295},{name:{de:"Schweiz",en:"Switzerland"},Alpha2Code:"CH",Longitude:8.227512,Latitude:46.818188,area:41284},{name:{de:"Syrien",en:"Syria"},Alpha2Code:"SY",Longitude:38.996815,Latitude:34.802075,area:185180},{name:{de:"Taiwan",en:"Taiwan"},Alpha2Code:"TW",Longitude:120.960515,Latitude:23.69781,area:36193},{name:{de:"Tadschikistan",en:"Tajikistan"},Alpha2Code:"TJ",Longitude:71.276093,Latitude:38.861034,area:143100},{name:{de:"Tansania",en:"Tanzania"},Alpha2Code:"TZ",Longitude:34.888822,Latitude:-6.369028,area:945087},{name:{de:"Thailand",en:"Thailand"},Alpha2Code:"TH",Longitude:100.992541,Latitude:15.870032,area:513120},{name:{de:"Timor-Leste",en:"Timor-Leste"},Alpha2Code:"TL",Longitude:125.727539,Latitude:-8.874217,area:14874},{name:{de:"Togo",en:"Togo"},Alpha2Code:"TG",Longitude:.824782,Latitude:8.619543,area:56785},{name:{de:"Tokelau",en:"Tokelau"},Alpha2Code:"TK",Longitude:-171.855881,Latitude:-8.967363,area:12},{name:{de:"Tonga",en:"Tonga"},Alpha2Code:"TO",Longitude:-175.198242,Latitude:-21.178986,area:747},{name:{de:"Trinidad und Tobago",en:"Trinidad and Tobago"},Alpha2Code:"TT",Longitude:-61.222503,Latitude:10.691803,area:5130},{name:{de:"Tunesien",en:"Tunisia"},Alpha2Code:"TN",Longitude:9.537499,Latitude:33.886917,area:163610},{name:{de:"Türkei",en:"Turkey"},Alpha2Code:"TR",Longitude:35.243322,Latitude:38.963745,area:783562},{name:{de:"Turkmenistan",en:"Turkmenistan"},Alpha2Code:"TM",Longitude:59.556278,Latitude:38.969719,area:488100},{name:{de:"Turks- und Caicosinseln",en:"Turks and Caicos Islands"},Alpha2Code:"TC",Longitude:-71.797928,Latitude:21.694025,area:948},{name:{de:"Tuvalu",en:"Tuvalu"},Alpha2Code:"TV",Longitude:177.64933,Latitude:-7.109535,area:26},{name:{de:"Uganda",en:"Uganda"},Alpha2Code:"UG",Longitude:32.290275,Latitude:1.373333,area:241038},{name:{de:"Ukraine",en:"Ukraine"},Alpha2Code:"UA",Longitude:31.16558,Latitude:48.379433,area:603550},{name:{de:"Vereinigte Arabische Emirate",en:"United Arab Emirates"},Alpha2Code:"AE",Longitude:53.847818,Latitude:23.424076,area:83600},{name:{de:"Vereinigtes Königreich",en:"United Kingdom"},Alpha2Code:"GB",Longitude:-3.435973,Latitude:55.378051,area:242900},{name:{de:"Vereinigte Staaten von Amerika (USA)",en:"United States"},Alpha2Code:"US",Longitude:-95.712891,Latitude:37.09024,area:9629613},{name:{de:"Uruguay",en:"Uruguay"},Alpha2Code:"UY",Longitude:-55.765835,Latitude:-32.522779,area:176215},{name:{de:"Usbekistan",en:"Uzbekistan"},Alpha2Code:"UZ",Longitude:64.585262,Latitude:41.377491,area:447400},{name:{de:"Vanuatu",en:"Vanuatu"},Alpha2Code:"VU",Longitude:166.959158,Latitude:-15.376706,area:12189},{name:{de:"Venezuela",en:"Venezuela"},Alpha2Code:"VE",Longitude:-66.58973,Latitude:6.42375,area:912050},{name:{de:"Vietnam",en:"Vietnam"},Alpha2Code:"VN",Longitude:108.277199,Latitude:14.058324,area:331689},{name:{de:"Britische Jungferninseln",en:"British Virgin Islands"},Alpha2Code:"VG",Longitude:-64.639968,Latitude:18.420695,area:151},{name:{de:"US Jungferninseln",en:"US Virgin Islands"},Alpha2Code:"VI",Longitude:-64.896335,Latitude:18.335765,area:347},{name:{de:"Wallis und Futuna",en:"Wallis and Futuna"},Alpha2Code:"WF",Longitude:-177.156097,Latitude:-13.768752,area:142},{name:{de:"Westsahara",en:"Western Sahara"},Alpha2Code:"EH",Longitude:-12.885834,Latitude:24.215527,area:266e3},{name:{de:"Jemen",en:"Yemen"},Alpha2Code:"YE",Longitude:48.516388,Latitude:15.552727,area:527968},{name:{de:"Sambia",en:"Zambia"},Alpha2Code:"ZM",Longitude:27.849332,Latitude:-13.133897,area:752612},{name:{de:"Zimbabwe",en:"Zimbabwe"},Alpha2Code:"ZW",Longitude:29.154857,Latitude:-19.015438,area:390757}],Vg=({distanceUnit:e,theme:t,language:i,showScale:s,noImage:n,rotationMode:g,sortNeighboursAlphabetically:o})=>r=>{r({type:td,payload:{distanceUnit:e,theme:t,language:i,showScale:s,noImage:n,rotationMode:g,sortNeighboursAlphabetically:o}})},Tu=()=>(e,t)=>{const{stats:i}=t().user,{guesses:s}=t().game.country;let n=0;s.forEach(({distance:r})=>{n+=r});const g=parseInt(n/s.length);let o=JSON.parse(JSON.stringify(i.guessDistributions));o[s.length-1]++,e({type:Ig,payload:{...i,played:i.played+1,won:i.won+1,currentStreak:i.currentStreak+1,maxStreak:Math.max(i.currentStreak+1,i.maxStreak),bestDistancesAverage:Math.min(i.bestDistancesAverage,g),guessDistributions:o}})},Ru=()=>(e,t)=>{const{stats:i}=t().user;e({type:Ig,payload:{...i,played:i.played+1,currentStreak:0}})},od=({label:e})=>a.createElement(b.div,{initial:{scaleY:0},animate:{scaleY:1},className:"absolute top-2 z-50 mt-2 flex w-full origin-top transform items-center justify-center transition-transform duration-500 "},a.createElement("div",{className:"text-md animate-slide-out items-center justify-center overflow-hidden overflow-ellipsis rounded border-2 border-majky-400 bg-majky-300 bg-opacity-80 px-1 py-1 text-center text-majky-900"},a.createElement("span",{className:"font-semibold"},e))),Pu=({header:e,Alpha2Code:t,label:i,completed:s,showClips:n})=>{const{settings:g}=k(({user:f})=>f),{guesses:o}=k(({game:f})=>f.neighbours),r=C(),c=R();m.useEffect(()=>{g.noImage?c.start({scale:0}):c.start({scale:1})},[g.noImage,c]);const l=Fg(t,o.map(({Alpha2Code:f})=>f.toUpperCase())),d=m.useRef([]),[_,p]=m.useState(Array.from({length:6},(f,h)=>h));return m.useEffect(()=>{if(t){const f=new Image;f.setAttribute("crossOrigin",""),f.src=new URL(Object.assign({"../../../../../image/countries/data/ad/flag.svg":Ua,"../../../../../image/countries/data/ae/flag.svg":$a,"../../../../../image/countries/data/af/flag.svg":Oa,"../../../../../image/countries/data/ag/flag.svg":Fa,"../../../../../image/countries/data/ai/flag.svg":Ka,"../../../../../image/countries/data/al/flag.svg":za,"../../../../../image/countries/data/am/flag.svg":Ha,"../../../../../image/countries/data/ao/flag.svg":Va,"../../../../../image/countries/data/aq/flag.svg":Ya,"../../../../../image/countries/data/ar/flag.svg":qa,"../../../../../image/countries/data/as/flag.svg":Wa,"../../../../../image/countries/data/at/flag.svg":Ja,"../../../../../image/countries/data/au/flag.svg":Za,"../../../../../image/countries/data/aw/flag.svg":Xa,"../../../../../image/countries/data/az/flag.svg":Qa,"../../../../../image/countries/data/ba/flag.svg":ae,"../../../../../image/countries/data/bb/flag.svg":ee,"../../../../../image/countries/data/bd/flag.svg":te,"../../../../../image/countries/data/be/flag.svg":ie,"../../../../../image/countries/data/bf/flag.svg":se,"../../../../../image/countries/data/bg/flag.svg":ge,"../../../../../image/countries/data/bh/flag.svg":ne,"../../../../../image/countries/data/bi/flag.svg":oe,"../../../../../image/countries/data/bj/flag.svg":re,"../../../../../image/countries/data/bm/flag.svg":le,"../../../../../image/countries/data/bn/flag.svg":ce,"../../../../../image/countries/data/bo/flag.svg":de,"../../../../../image/countries/data/br/flag.svg":me,"../../../../../image/countries/data/bs/flag.svg":ue,"../../../../../image/countries/data/bt/flag.svg":_e,"../../../../../image/countries/data/bv/flag.svg":ve,"../../../../../image/countries/data/bw/flag.svg":fe,"../../../../../image/countries/data/by/flag.svg":pe,"../../../../../image/countries/data/bz/flag.svg":he,"../../../../../image/countries/data/ca/flag.svg":be,"../../../../../image/countries/data/cc/flag.svg":ye,"../../../../../image/countries/data/cd/flag.svg":ke,"../../../../../image/countries/data/cf/flag.svg":Ae,"../../../../../image/countries/data/cg/flag.svg":Ce,"../../../../../image/countries/data/ch/flag.svg":xe,"../../../../../image/countries/data/ci/flag.svg":Ee,"../../../../../image/countries/data/ck/flag.svg":Le,"../../../../../image/countries/data/cl/flag.svg":we,"../../../../../image/countries/data/cm/flag.svg":Se,"../../../../../image/countries/data/cn/flag.svg":Ne,"../../../../../image/countries/data/co/flag.svg":Be,"../../../../../image/countries/data/cr/flag.svg":Ge,"../../../../../image/countries/data/cu/flag.svg":Me,"../../../../../image/countries/data/cv/flag.svg":Te,"../../../../../image/countries/data/cw/flag.svg":Re,"../../../../../image/countries/data/cx/flag.svg":Pe,"../../../../../image/countries/data/cy/flag.svg":Ie,"../../../../../image/countries/data/cz/flag.svg":je,"../../../../../image/countries/data/de/flag.svg":De,"../../../../../image/countries/data/dj/flag.svg":Ue,"../../../../../image/countries/data/dk/flag.svg":$e,"../../../../../image/countries/data/dm/flag.svg":Oe,"../../../../../image/countries/data/do/flag.svg":Fe,"../../../../../image/countries/data/dz/flag.svg":Ke,"../../../../../image/countries/data/ec/flag.svg":ze,"../../../../../image/countries/data/ee/flag.svg":He,"../../../../../image/countries/data/eg/flag.svg":Ve,"../../../../../image/countries/data/eh/flag.svg":Ye,"../../../../../image/countries/data/er/flag.svg":qe,"../../../../../image/countries/data/es/flag.svg":We,"../../../../../image/countries/data/et/flag.svg":Je,"../../../../../image/countries/data/fi/flag.svg":Ze,"../../../../../image/countries/data/fj/flag.svg":Xe,"../../../../../image/countries/data/fk/flag.svg":Qe,"../../../../../image/countries/data/fm/flag.svg":at,"../../../../../image/countries/data/fo/flag.svg":et,"../../../../../image/countries/data/fr/flag.svg":tt,"../../../../../image/countries/data/ga/flag.svg":it,"../../../../../image/countries/data/gb/flag.svg":st,"../../../../../image/countries/data/gd/flag.svg":gt,"../../../../../image/countries/data/ge/flag.svg":nt,"../../../../../image/countries/data/gf/flag.svg":ot,"../../../../../image/countries/data/gg/flag.svg":rt,"../../../../../image/countries/data/gh/flag.svg":lt,"../../../../../image/countries/data/gi/flag.svg":ct,"../../../../../image/countries/data/gl/flag.svg":dt,"../../../../../image/countries/data/gm/flag.svg":mt,"../../../../../image/countries/data/gn/flag.svg":ut,"../../../../../image/countries/data/gp/flag.svg":_t,"../../../../../image/countries/data/gq/flag.svg":vt,"../../../../../image/countries/data/gr/flag.svg":ft,"../../../../../image/countries/data/gs/flag.svg":pt,"../../../../../image/countries/data/gt/flag.svg":ht,"../../../../../image/countries/data/gu/flag.svg":bt,"../../../../../image/countries/data/gw/flag.svg":yt,"../../../../../image/countries/data/gy/flag.svg":kt,"../../../../../image/countries/data/gz/flag.svg":At,"../../../../../image/countries/data/hk/flag.svg":Ct,"../../../../../image/countries/data/hm/flag.svg":xt,"../../../../../image/countries/data/hn/flag.svg":Et,"../../../../../image/countries/data/hr/flag.svg":Lt,"../../../../../image/countries/data/ht/flag.svg":wt,"../../../../../image/countries/data/hu/flag.svg":St,"../../../../../image/countries/data/id/flag.svg":Nt,"../../../../../image/countries/data/ie/flag.svg":Bt,"../../../../../image/countries/data/il/flag.svg":Gt,"../../../../../image/countries/data/im/flag.svg":Mt,"../../../../../image/countries/data/in/flag.svg":Tt,"../../../../../image/countries/data/io/flag.svg":Rt,"../../../../../image/countries/data/iq/flag.svg":Pt,"../../../../../image/countries/data/ir/flag.svg":It,"../../../../../image/countries/data/is/flag.svg":jt,"../../../../../image/countries/data/it/flag.svg":Dt,"../../../../../image/countries/data/je/flag.svg":Ut,"../../../../../image/countries/data/jm/flag.svg":$t,"../../../../../image/countries/data/jo/flag.svg":Ot,"../../../../../image/countries/data/jp/flag.svg":Ft,"../../../../../image/countries/data/ke/flag.svg":Kt,"../../../../../image/countries/data/kg/flag.svg":zt,"../../../../../image/countries/data/kh/flag.svg":Ht,"../../../../../image/countries/data/ki/flag.svg":Vt,"../../../../../image/countries/data/km/flag.svg":Yt,"../../../../../image/countries/data/kn/flag.svg":qt,"../../../../../image/countries/data/kp/flag.svg":Wt,"../../../../../image/countries/data/kr/flag.svg":Jt,"../../../../../image/countries/data/kw/flag.svg":Zt,"../../../../../image/countries/data/ky/flag.svg":Xt,"../../../../../image/countries/data/kz/flag.svg":Qt,"../../../../../image/countries/data/la/flag.svg":ai,"../../../../../image/countries/data/lb/flag.svg":ei,"../../../../../image/countries/data/lc/flag.svg":ti,"../../../../../image/countries/data/li/flag.svg":ii,"../../../../../image/countries/data/lk/flag.svg":si,"../../../../../image/countries/data/lr/flag.svg":gi,"../../../../../image/countries/data/ls/flag.svg":ni,"../../../../../image/countries/data/lt/flag.svg":oi,"../../../../../image/countries/data/lu/flag.svg":ri,"../../../../../image/countries/data/lv/flag.svg":li,"../../../../../image/countries/data/ly/flag.svg":ci,"../../../../../image/countries/data/ma/flag.svg":di,"../../../../../image/countries/data/mc/flag.svg":mi,"../../../../../image/countries/data/md/flag.svg":ui,"../../../../../image/countries/data/me/flag.svg":_i,"../../../../../image/countries/data/mg/flag.svg":vi,"../../../../../image/countries/data/mh/flag.svg":fi,"../../../../../image/countries/data/mk/flag.svg":pi,"../../../../../image/countries/data/ml/flag.svg":hi,"../../../../../image/countries/data/mm/flag.svg":bi,"../../../../../image/countries/data/mn/flag.svg":yi,"../../../../../image/countries/data/mo/flag.svg":ki,"../../../../../image/countries/data/mp/flag.svg":Ai,"../../../../../image/countries/data/mq/flag.svg":Ci,"../../../../../image/countries/data/mr/flag.svg":xi,"../../../../../image/countries/data/ms/flag.svg":Ei,"../../../../../image/countries/data/mt/flag.svg":Li,"../../../../../image/countries/data/mu/flag.svg":wi,"../../../../../image/countries/data/mv/flag.svg":Si,"../../../../../image/countries/data/mw/flag.svg":Ni,"../../../../../image/countries/data/mx/flag.svg":Bi,"../../../../../image/countries/data/my/flag.svg":Gi,"../../../../../image/countries/data/mz/flag.svg":Mi,"../../../../../image/countries/data/na/flag.svg":Ti,"../../../../../image/countries/data/nc/flag.svg":Ri,"../../../../../image/countries/data/ne/flag.svg":Pi,"../../../../../image/countries/data/nf/flag.svg":Ii,"../../../../../image/countries/data/ng/flag.svg":ji,"../../../../../image/countries/data/ni/flag.svg":Di,"../../../../../image/countries/data/nl/flag.svg":Ui,"../../../../../image/countries/data/no/flag.svg":$i,"../../../../../image/countries/data/np/flag.svg":Oi,"../../../../../image/countries/data/nr/flag.svg":Fi,"../../../../../image/countries/data/nu/flag.svg":Ki,"../../../../../image/countries/data/nz/flag.svg":zi,"../../../../../image/countries/data/om/flag.svg":Hi,"../../../../../image/countries/data/pa/flag.svg":Vi,"../../../../../image/countries/data/pe/flag.svg":Yi,"../../../../../image/countries/data/pf/flag.svg":qi,"../../../../../image/countries/data/pg/flag.svg":Wi,"../../../../../image/countries/data/ph/flag.svg":Ji,"../../../../../image/countries/data/pk/flag.svg":Zi,"../../../../../image/countries/data/pl/flag.svg":Xi,"../../../../../image/countries/data/pm/flag.svg":Qi,"../../../../../image/countries/data/pn/flag.svg":as,"../../../../../image/countries/data/pr/flag.svg":es,"../../../../../image/countries/data/ps/flag.svg":ts,"../../../../../image/countries/data/pt/flag.svg":is,"../../../../../image/countries/data/pw/flag.svg":ss,"../../../../../image/countries/data/py/flag.svg":gs,"../../../../../image/countries/data/qa/flag.svg":ns,"../../../../../image/countries/data/re/flag.svg":os,"../../../../../image/countries/data/ro/flag.svg":rs,"../../../../../image/countries/data/rs/flag.svg":ls,"../../../../../image/countries/data/ru/flag.svg":cs,"../../../../../image/countries/data/rw/flag.svg":ds,"../../../../../image/countries/data/sa/flag.svg":ms,"../../../../../image/countries/data/sb/flag.svg":us,"../../../../../image/countries/data/sc/flag.svg":_s,"../../../../../image/countries/data/sd/flag.svg":vs,"../../../../../image/countries/data/se/flag.svg":fs,"../../../../../image/countries/data/sg/flag.svg":ps,"../../../../../image/countries/data/sh/flag.svg":hs,"../../../../../image/countries/data/si/flag.svg":bs,"../../../../../image/countries/data/sj/flag.svg":ys,"../../../../../image/countries/data/sk/flag.svg":ks,"../../../../../image/countries/data/sl/flag.svg":As,"../../../../../image/countries/data/sm/flag.svg":Cs,"../../../../../image/countries/data/sn/flag.svg":xs,"../../../../../image/countries/data/so/flag.svg":Es,"../../../../../image/countries/data/sr/flag.svg":Ls,"../../../../../image/countries/data/ss/flag.svg":ws,"../../../../../image/countries/data/st/flag.svg":Ss,"../../../../../image/countries/data/sv/flag.svg":Ns,"../../../../../image/countries/data/sy/flag.svg":Bs,"../../../../../image/countries/data/sz/flag.svg":Gs,"../../../../../image/countries/data/tc/flag.svg":Ms,"../../../../../image/countries/data/td/flag.svg":Ts,"../../../../../image/countries/data/tf/flag.svg":Rs,"../../../../../image/countries/data/tg/flag.svg":Ps,"../../../../../image/countries/data/th/flag.svg":Is,"../../../../../image/countries/data/tj/flag.svg":js,"../../../../../image/countries/data/tk/flag.svg":Ds,"../../../../../image/countries/data/tl/flag.svg":Us,"../../../../../image/countries/data/tm/flag.svg":$s,"../../../../../image/countries/data/tn/flag.svg":Os,"../../../../../image/countries/data/to/flag.svg":Fs,"../../../../../image/countries/data/tr/flag.svg":Ks,"../../../../../image/countries/data/tt/flag.svg":zs,"../../../../../image/countries/data/tv/flag.svg":Hs,"../../../../../image/countries/data/tw/flag.svg":Vs,"../../../../../image/countries/data/tz/flag.svg":Ys,"../../../../../image/countries/data/ua/flag.svg":qs,"../../../../../image/countries/data/ug/flag.svg":Ws,"../../../../../image/countries/data/us/flag.svg":Js,"../../../../../image/countries/data/uy/flag.svg":Zs,"../../../../../image/countries/data/uz/flag.svg":Xs,"../../../../../image/countries/data/va/flag.svg":Qs,"../../../../../image/countries/data/vc/flag.svg":ag,"../../../../../image/countries/data/ve/flag.svg":eg,"../../../../../image/countries/data/vg/flag.svg":tg,"../../../../../image/countries/data/vi/flag.svg":ig,"../../../../../image/countries/data/vn/flag.svg":sg,"../../../../../image/countries/data/vu/flag.svg":gg,"../../../../../image/countries/data/wf/flag.svg":ng,"../../../../../image/countries/data/ws/flag.svg":og,"../../../../../image/countries/data/xk/flag.svg":rg,"../../../../../image/countries/data/ye/flag.svg":lg,"../../../../../image/countries/data/yt/flag.svg":cg,"../../../../../image/countries/data/za/flag.svg":dg,"../../../../../image/countries/data/zm/flag.svg":mg,"../../../../../image/countries/data/zw/flag.svg":ug})[`../../../../../image/countries/data/${t==null?void 0:t.toLowerCase()}/flag.svg`],self.location).href,f.onload=()=>{d.current.forEach((u,y)=>{u.getContext("2d").drawImage(f,y%3*f.width/3,Math.floor(y/3)*(f.height/2),f.width/3,f.height/2,0,0,u.width,u.height)})};const h=Nu(Array.from({length:6},(u,y)=>y),Su(t));p(h)}},[t]),a.createElement(a.Fragment,null,a.createElement("span",{className:"relative mt-6 w-full text-center font-bold text-slate-800 dark:text-slate-100 "},e),a.createElement("div",{className:"my-4 w-full"},a.createElement(b.div,{key:"svg-map",className:"relative",initial:{opacity:0,translateX:20,translateY:20},animate:{opacity:1,translateX:0,translateY:0},transition:{delay:0*.1}},(s||l)&&a.createElement(od,{label:i}),!g.noImage||s?a.createElement(b.div,{initial:{scale:.8},animate:c,className:` relative flex aspect-[4/3] w-full transform items-center justify-center overflow-hidden rounded-lg p-4 transition-transform duration-500 ${l?"bg-pink-500 dark:bg-majky-500":"border-2 border-solid border-slate-500 "} flex-wrap`},Array.from({length:6}).map((f,h)=>a.createElement("canvas",{className:`h-1/2 w-1/3 transition-transform duration-500 ${_.slice(0,n+1).includes(h)||s?"scale-y-100 opacity-100":"scale-y-0 opacity-0"}`,key:h,ref:u=>d.current[h]=u}))):a.createElement("div",{className:"relative mt-4 flex min-h-20 w-full max-w-lg flex-col items-center justify-center"},a.createElement(x,{className:"z-4 absolute my-2 w-3/4 rounded border-2 p-1 py-4 font-bold uppercase hover:bg-majky-50 active:bg-white dark:hover:bg-majky-800 dark:active:bg-slate-700",onClick:()=>{r(Vg({...g,noImage:!1}))}},a.createElement("img",{alt:"🗺️",src:new URL("/build/assets/1f5fa-0ca6066d.png",self.location).href,className:"mr-1 inline-block h-6 w-6"}),gd)))))},Iu=({onChangeGameStatus:e})=>{var o;const t=C(),{country:i,countryOfToday:s}=k(({game:r})=>r),n=r=>{t(an({searchString:r}))},g=r=>{const c=Tg(r,s);if(c)Zg("flagle","success",w.date),t(Zm()),A.success(G),t(Tu());else{const{direction:d,distance:_,percent:p,sizePercent:f}=ku(r,s);i.guesses.length>=i.guessLimit-1&&(Zg("flagle","fail",w.date),A.info(s==null?void 0:s.name.toUpperCase()),A.warn(Cm),t(Ru())),i.guesses.length<i.guessLimit&&t(an({guesses:[...i.guesses,{Alpha2Code:r.Alpha2Code,country:r.name,distance:_,direction:d,percent:p,sizePercent:f}]}))}if(c||i.guesses.length>=i.guessLimit-1){let d="flagle";var l=new Date;let _=l.getFullYear()+(l.getMonth()+1<10?"-0":"-")+(l.getMonth()+1)+"-"+l.getDate();w&&(_=w.date);let p={};p[d]={};let f=0;localStorage.completedArchiveGames&&(p=JSON.parse(localStorage.completedArchiveGames),f=p.hasOwnProperty(d)?Object.keys(p[d]).length:0),(!p.hasOwnProperty(d)||Object.values(p[d]).indexOf(_)===-1)&&(p.hasOwnProperty(d)||(p[d]={}),p[d][f]=_),localStorage.setItem("completedArchiveGames",JSON.stringify(p)),e()}};return a.createElement(m.Fragment,null,a.createElement(Pu,{header:jm,Alpha2Code:s==null?void 0:s.Alpha2Code,label:s==null?void 0:s.name,showClips:(o=i.guesses)==null?void 0:o.length,completed:i.completed}),a.createElement($g,{results:i.guesses,limitRow:i.guessLimit,completed:i.completed,rowTemplate:Mu}),!i.completed&&a.createElement(a.Fragment,null,a.createElement("div",{className:"w-full cursor-pointer rounded bg-slate-300 p-1 transition-all duration-300 dark:bg-slate-600 dark:hover:bg-majky-500"},a.createElement(uu,{rows:fg,results:i.guesses,value:i.searchString,onChange:n,onGuess:g})),a.createElement(Hg,{count:i.guessLimit-i.guesses.length-1})))},Yg=({className:e,imageUrl:t,autoplay:i=!1,parentRef:s=null})=>{const n=m.useRef(null),[g,o]=m.useState(i);return m.useEffect(()=>{var r=null;const c=n.current,l=c.getContext("2d",{willReadFrequently:!0}),d=new Image;d.setAttribute("crossOrigin","");const _=()=>{const y=d.width/10;if(c.width=d.width,c.height=d.height+20*2,l.drawImage(d,0,20,d.width,d.height),g){const E=c.width,M=c.height,P=l.getImageData(0,0,E,M).data;r=setInterval(()=>{const hg=l.getImageData(0,0,E,M),bg=hg.data,md=new Date/200;for(let _g=0;_g<M;++_g){let Wg=0,yg=0;const ud=(_g-M/2)*0;for(let I=0;I<E;++I){const kg=(_g*E+I)*4,Jg=I/E,Rg=Math.sin(I/y-md)*20*Jg,Ag=((_g+(Rg+ud*Jg)<<0)*E+I)*4;yg=(Rg-Wg)*100,bg[kg]=P[Ag]+yg,bg[kg+1]=P[Ag+1]+yg,bg[kg+2]=P[Ag+2]+yg,bg[kg+3]=P[Ag+3],Wg=Rg}}l.putImageData(hg,0,0)},1e3/30)}};return d.addEventListener("load",_),d.src=t.toLowerCase(),()=>{clearInterval(r),d.removeEventListener("load",_)}},[t,g]),m.useEffect(()=>{const r=()=>{o(!0)},c=()=>{i||o(!1)},l=s==null?void 0:s.current,d=n==null?void 0:n.current;return l?(l==null||l.addEventListener("mouseenter",r),l==null||l.addEventListener("mouseleave",c)):d&&(d==null||d.addEventListener("mouseenter",r),d==null||d.addEventListener("mouseleave",c)),()=>{l&&(l==null||l.removeEventListener("mouseenter",r),l==null||l.removeEventListener("mouseleave",c)),d&&(d==null||d.removeEventListener("mouseenter",r),d==null||d.removeEventListener("mouseleave",c))}},[s,n,o,i]),a.createElement("canvas",{className:e||"w-[90%]",ref:n})},ju=({element:e,value:t,handleListItemClick:i})=>{var o,r;const s=e.name[v].toUpperCase(),n=s.indexOf(t),g=m.useRef();return a.createElement(b.li,{ref:g,onClick:()=>i(e),whileHover:{scale:.98},whileTap:{scale:.95}},a.createElement("div",{className:"flex cursor-pointer select-none flex-row items-center justify-start overflow-hidden border-b-2 bg-white hover:bg-majky-400 hover:text-white dark:bg-slate-800 dark:text-slate-100 dark:hover:bg-majky-500"},a.createElement("img",{className:"mx-2 my-0.5 h-7 w-8",alt:(o=e.Alpha2Code)==null?void 0:o.toUpperCase(),src:new URL(Object.assign({"../../../../../image/countries/data/ad/flag.svg":Ua,"../../../../../image/countries/data/ae/flag.svg":$a,"../../../../../image/countries/data/af/flag.svg":Oa,"../../../../../image/countries/data/ag/flag.svg":Fa,"../../../../../image/countries/data/ai/flag.svg":Ka,"../../../../../image/countries/data/al/flag.svg":za,"../../../../../image/countries/data/am/flag.svg":Ha,"../../../../../image/countries/data/ao/flag.svg":Va,"../../../../../image/countries/data/aq/flag.svg":Ya,"../../../../../image/countries/data/ar/flag.svg":qa,"../../../../../image/countries/data/as/flag.svg":Wa,"../../../../../image/countries/data/at/flag.svg":Ja,"../../../../../image/countries/data/au/flag.svg":Za,"../../../../../image/countries/data/aw/flag.svg":Xa,"../../../../../image/countries/data/az/flag.svg":Qa,"../../../../../image/countries/data/ba/flag.svg":ae,"../../../../../image/countries/data/bb/flag.svg":ee,"../../../../../image/countries/data/bd/flag.svg":te,"../../../../../image/countries/data/be/flag.svg":ie,"../../../../../image/countries/data/bf/flag.svg":se,"../../../../../image/countries/data/bg/flag.svg":ge,"../../../../../image/countries/data/bh/flag.svg":ne,"../../../../../image/countries/data/bi/flag.svg":oe,"../../../../../image/countries/data/bj/flag.svg":re,"../../../../../image/countries/data/bm/flag.svg":le,"../../../../../image/countries/data/bn/flag.svg":ce,"../../../../../image/countries/data/bo/flag.svg":de,"../../../../../image/countries/data/br/flag.svg":me,"../../../../../image/countries/data/bs/flag.svg":ue,"../../../../../image/countries/data/bt/flag.svg":_e,"../../../../../image/countries/data/bv/flag.svg":ve,"../../../../../image/countries/data/bw/flag.svg":fe,"../../../../../image/countries/data/by/flag.svg":pe,"../../../../../image/countries/data/bz/flag.svg":he,"../../../../../image/countries/data/ca/flag.svg":be,"../../../../../image/countries/data/cc/flag.svg":ye,"../../../../../image/countries/data/cd/flag.svg":ke,"../../../../../image/countries/data/cf/flag.svg":Ae,"../../../../../image/countries/data/cg/flag.svg":Ce,"../../../../../image/countries/data/ch/flag.svg":xe,"../../../../../image/countries/data/ci/flag.svg":Ee,"../../../../../image/countries/data/ck/flag.svg":Le,"../../../../../image/countries/data/cl/flag.svg":we,"../../../../../image/countries/data/cm/flag.svg":Se,"../../../../../image/countries/data/cn/flag.svg":Ne,"../../../../../image/countries/data/co/flag.svg":Be,"../../../../../image/countries/data/cr/flag.svg":Ge,"../../../../../image/countries/data/cu/flag.svg":Me,"../../../../../image/countries/data/cv/flag.svg":Te,"../../../../../image/countries/data/cw/flag.svg":Re,"../../../../../image/countries/data/cx/flag.svg":Pe,"../../../../../image/countries/data/cy/flag.svg":Ie,"../../../../../image/countries/data/cz/flag.svg":je,"../../../../../image/countries/data/de/flag.svg":De,"../../../../../image/countries/data/dj/flag.svg":Ue,"../../../../../image/countries/data/dk/flag.svg":$e,"../../../../../image/countries/data/dm/flag.svg":Oe,"../../../../../image/countries/data/do/flag.svg":Fe,"../../../../../image/countries/data/dz/flag.svg":Ke,"../../../../../image/countries/data/ec/flag.svg":ze,"../../../../../image/countries/data/ee/flag.svg":He,"../../../../../image/countries/data/eg/flag.svg":Ve,"../../../../../image/countries/data/eh/flag.svg":Ye,"../../../../../image/countries/data/er/flag.svg":qe,"../../../../../image/countries/data/es/flag.svg":We,"../../../../../image/countries/data/et/flag.svg":Je,"../../../../../image/countries/data/fi/flag.svg":Ze,"../../../../../image/countries/data/fj/flag.svg":Xe,"../../../../../image/countries/data/fk/flag.svg":Qe,"../../../../../image/countries/data/fm/flag.svg":at,"../../../../../image/countries/data/fo/flag.svg":et,"../../../../../image/countries/data/fr/flag.svg":tt,"../../../../../image/countries/data/ga/flag.svg":it,"../../../../../image/countries/data/gb/flag.svg":st,"../../../../../image/countries/data/gd/flag.svg":gt,"../../../../../image/countries/data/ge/flag.svg":nt,"../../../../../image/countries/data/gf/flag.svg":ot,"../../../../../image/countries/data/gg/flag.svg":rt,"../../../../../image/countries/data/gh/flag.svg":lt,"../../../../../image/countries/data/gi/flag.svg":ct,"../../../../../image/countries/data/gl/flag.svg":dt,"../../../../../image/countries/data/gm/flag.svg":mt,"../../../../../image/countries/data/gn/flag.svg":ut,"../../../../../image/countries/data/gp/flag.svg":_t,"../../../../../image/countries/data/gq/flag.svg":vt,"../../../../../image/countries/data/gr/flag.svg":ft,"../../../../../image/countries/data/gs/flag.svg":pt,"../../../../../image/countries/data/gt/flag.svg":ht,"../../../../../image/countries/data/gu/flag.svg":bt,"../../../../../image/countries/data/gw/flag.svg":yt,"../../../../../image/countries/data/gy/flag.svg":kt,"../../../../../image/countries/data/gz/flag.svg":At,"../../../../../image/countries/data/hk/flag.svg":Ct,"../../../../../image/countries/data/hm/flag.svg":xt,"../../../../../image/countries/data/hn/flag.svg":Et,"../../../../../image/countries/data/hr/flag.svg":Lt,"../../../../../image/countries/data/ht/flag.svg":wt,"../../../../../image/countries/data/hu/flag.svg":St,"../../../../../image/countries/data/id/flag.svg":Nt,"../../../../../image/countries/data/ie/flag.svg":Bt,"../../../../../image/countries/data/il/flag.svg":Gt,"../../../../../image/countries/data/im/flag.svg":Mt,"../../../../../image/countries/data/in/flag.svg":Tt,"../../../../../image/countries/data/io/flag.svg":Rt,"../../../../../image/countries/data/iq/flag.svg":Pt,"../../../../../image/countries/data/ir/flag.svg":It,"../../../../../image/countries/data/is/flag.svg":jt,"../../../../../image/countries/data/it/flag.svg":Dt,"../../../../../image/countries/data/je/flag.svg":Ut,"../../../../../image/countries/data/jm/flag.svg":$t,"../../../../../image/countries/data/jo/flag.svg":Ot,"../../../../../image/countries/data/jp/flag.svg":Ft,"../../../../../image/countries/data/ke/flag.svg":Kt,"../../../../../image/countries/data/kg/flag.svg":zt,"../../../../../image/countries/data/kh/flag.svg":Ht,"../../../../../image/countries/data/ki/flag.svg":Vt,"../../../../../image/countries/data/km/flag.svg":Yt,"../../../../../image/countries/data/kn/flag.svg":qt,"../../../../../image/countries/data/kp/flag.svg":Wt,"../../../../../image/countries/data/kr/flag.svg":Jt,"../../../../../image/countries/data/kw/flag.svg":Zt,"../../../../../image/countries/data/ky/flag.svg":Xt,"../../../../../image/countries/data/kz/flag.svg":Qt,"../../../../../image/countries/data/la/flag.svg":ai,"../../../../../image/countries/data/lb/flag.svg":ei,"../../../../../image/countries/data/lc/flag.svg":ti,"../../../../../image/countries/data/li/flag.svg":ii,"../../../../../image/countries/data/lk/flag.svg":si,"../../../../../image/countries/data/lr/flag.svg":gi,"../../../../../image/countries/data/ls/flag.svg":ni,"../../../../../image/countries/data/lt/flag.svg":oi,"../../../../../image/countries/data/lu/flag.svg":ri,"../../../../../image/countries/data/lv/flag.svg":li,"../../../../../image/countries/data/ly/flag.svg":ci,"../../../../../image/countries/data/ma/flag.svg":di,"../../../../../image/countries/data/mc/flag.svg":mi,"../../../../../image/countries/data/md/flag.svg":ui,"../../../../../image/countries/data/me/flag.svg":_i,"../../../../../image/countries/data/mg/flag.svg":vi,"../../../../../image/countries/data/mh/flag.svg":fi,"../../../../../image/countries/data/mk/flag.svg":pi,"../../../../../image/countries/data/ml/flag.svg":hi,"../../../../../image/countries/data/mm/flag.svg":bi,"../../../../../image/countries/data/mn/flag.svg":yi,"../../../../../image/countries/data/mo/flag.svg":ki,"../../../../../image/countries/data/mp/flag.svg":Ai,"../../../../../image/countries/data/mq/flag.svg":Ci,"../../../../../image/countries/data/mr/flag.svg":xi,"../../../../../image/countries/data/ms/flag.svg":Ei,"../../../../../image/countries/data/mt/flag.svg":Li,"../../../../../image/countries/data/mu/flag.svg":wi,"../../../../../image/countries/data/mv/flag.svg":Si,"../../../../../image/countries/data/mw/flag.svg":Ni,"../../../../../image/countries/data/mx/flag.svg":Bi,"../../../../../image/countries/data/my/flag.svg":Gi,"../../../../../image/countries/data/mz/flag.svg":Mi,"../../../../../image/countries/data/na/flag.svg":Ti,"../../../../../image/countries/data/nc/flag.svg":Ri,"../../../../../image/countries/data/ne/flag.svg":Pi,"../../../../../image/countries/data/nf/flag.svg":Ii,"../../../../../image/countries/data/ng/flag.svg":ji,"../../../../../image/countries/data/ni/flag.svg":Di,"../../../../../image/countries/data/nl/flag.svg":Ui,"../../../../../image/countries/data/no/flag.svg":$i,"../../../../../image/countries/data/np/flag.svg":Oi,"../../../../../image/countries/data/nr/flag.svg":Fi,"../../../../../image/countries/data/nu/flag.svg":Ki,"../../../../../image/countries/data/nz/flag.svg":zi,"../../../../../image/countries/data/om/flag.svg":Hi,"../../../../../image/countries/data/pa/flag.svg":Vi,"../../../../../image/countries/data/pe/flag.svg":Yi,"../../../../../image/countries/data/pf/flag.svg":qi,"../../../../../image/countries/data/pg/flag.svg":Wi,"../../../../../image/countries/data/ph/flag.svg":Ji,"../../../../../image/countries/data/pk/flag.svg":Zi,"../../../../../image/countries/data/pl/flag.svg":Xi,"../../../../../image/countries/data/pm/flag.svg":Qi,"../../../../../image/countries/data/pn/flag.svg":as,"../../../../../image/countries/data/pr/flag.svg":es,"../../../../../image/countries/data/ps/flag.svg":ts,"../../../../../image/countries/data/pt/flag.svg":is,"../../../../../image/countries/data/pw/flag.svg":ss,"../../../../../image/countries/data/py/flag.svg":gs,"../../../../../image/countries/data/qa/flag.svg":ns,"../../../../../image/countries/data/re/flag.svg":os,"../../../../../image/countries/data/ro/flag.svg":rs,"../../../../../image/countries/data/rs/flag.svg":ls,"../../../../../image/countries/data/ru/flag.svg":cs,"../../../../../image/countries/data/rw/flag.svg":ds,"../../../../../image/countries/data/sa/flag.svg":ms,"../../../../../image/countries/data/sb/flag.svg":us,"../../../../../image/countries/data/sc/flag.svg":_s,"../../../../../image/countries/data/sd/flag.svg":vs,"../../../../../image/countries/data/se/flag.svg":fs,"../../../../../image/countries/data/sg/flag.svg":ps,"../../../../../image/countries/data/sh/flag.svg":hs,"../../../../../image/countries/data/si/flag.svg":bs,"../../../../../image/countries/data/sj/flag.svg":ys,"../../../../../image/countries/data/sk/flag.svg":ks,"../../../../../image/countries/data/sl/flag.svg":As,"../../../../../image/countries/data/sm/flag.svg":Cs,"../../../../../image/countries/data/sn/flag.svg":xs,"../../../../../image/countries/data/so/flag.svg":Es,"../../../../../image/countries/data/sr/flag.svg":Ls,"../../../../../image/countries/data/ss/flag.svg":ws,"../../../../../image/countries/data/st/flag.svg":Ss,"../../../../../image/countries/data/sv/flag.svg":Ns,"../../../../../image/countries/data/sy/flag.svg":Bs,"../../../../../image/countries/data/sz/flag.svg":Gs,"../../../../../image/countries/data/tc/flag.svg":Ms,"../../../../../image/countries/data/td/flag.svg":Ts,"../../../../../image/countries/data/tf/flag.svg":Rs,"../../../../../image/countries/data/tg/flag.svg":Ps,"../../../../../image/countries/data/th/flag.svg":Is,"../../../../../image/countries/data/tj/flag.svg":js,"../../../../../image/countries/data/tk/flag.svg":Ds,"../../../../../image/countries/data/tl/flag.svg":Us,"../../../../../image/countries/data/tm/flag.svg":$s,"../../../../../image/countries/data/tn/flag.svg":Os,"../../../../../image/countries/data/to/flag.svg":Fs,"../../../../../image/countries/data/tr/flag.svg":Ks,"../../../../../image/countries/data/tt/flag.svg":zs,"../../../../../image/countries/data/tv/flag.svg":Hs,"../../../../../image/countries/data/tw/flag.svg":Vs,"../../../../../image/countries/data/tz/flag.svg":Ys,"../../../../../image/countries/data/ua/flag.svg":qs,"../../../../../image/countries/data/ug/flag.svg":Ws,"../../../../../image/countries/data/us/flag.svg":Js,"../../../../../image/countries/data/uy/flag.svg":Zs,"../../../../../image/countries/data/uz/flag.svg":Xs,"../../../../../image/countries/data/va/flag.svg":Qs,"../../../../../image/countries/data/vc/flag.svg":ag,"../../../../../image/countries/data/ve/flag.svg":eg,"../../../../../image/countries/data/vg/flag.svg":tg,"../../../../../image/countries/data/vi/flag.svg":ig,"../../../../../image/countries/data/vn/flag.svg":sg,"../../../../../image/countries/data/vu/flag.svg":gg,"../../../../../image/countries/data/wf/flag.svg":ng,"../../../../../image/countries/data/ws/flag.svg":og,"../../../../../image/countries/data/xk/flag.svg":rg,"../../../../../image/countries/data/ye/flag.svg":lg,"../../../../../image/countries/data/yt/flag.svg":cg,"../../../../../image/countries/data/za/flag.svg":dg,"../../../../../image/countries/data/zm/flag.svg":mg,"../../../../../image/countries/data/zw/flag.svg":ug})[`../../../../../image/countries/data/${(r=e.Alpha2Code)==null?void 0:r.toLowerCase()}/flag.svg`],self.location).href}),a.createElement("span",null,s.slice(0,n),a.createElement("strong",null,t),s.slice(n+t.length))))},Du=({rows:e,results:t,value:i,onChange:s,onGuess:n})=>{var h;const[g,o]=m.useState(!1),r=()=>{const u=e.find(y=>y.name[v].toUpperCase()===i.toUpperCase());return u&&(t.map(y=>y.Alpha2Code).includes(u.Alpha2Code)?A.error(`${Ug.replaceAll("<country>",u.name[v].toUpperCase())}`):n(u),s(""),o(!1)),!u},c=u=>{o(!0),s(u.target.value.toUpperCase())},l=u=>{o(!1),s(u.name[v].toUpperCase())},d=u=>{u.key==="Enter"&&i!==""&&r()&&_.length>0&&(o(!1),s(_[0].name[v].toUpperCase()))},_=m.useCallback(()=>e==null?void 0:e.filter(u=>u.name[v].toUpperCase().indexOf(i)>-1).sort((u,y)=>u.name[v].toUpperCase().indexOf(i)-y.name[v].toUpperCase().indexOf(i)),[i,e])();m.useEffect(()=>{const u=()=>{o(!1)};return document.addEventListener("click",u),()=>document.removeEventListener("click",u)},[o]);const p=e.find(u=>u.name[v].toUpperCase()===i.toUpperCase()),f=R();return m.useEffect(()=>{g?f.start({opacity:1,height:Math.min(200,_.length*36)}):f.start({opacity:0,height:0})},[f,g,_.length]),a.createElement("div",{className:"relative flex h-full w-full flex-row space-x-2"},a.createElement("div",{className:"h-full w-full flex-auto rounded"},a.createElement(b.ul,{initial:{opacity:0,height:0},animate:f,className:" absolute bottom-10 z-[99] my-0.5 w-full overflow-auto rounded-md border border-slate-800 bg-slate-300 dark:border-slate-100 dark:bg-slate-900 "},_==null?void 0:_.map(u=>a.createElement(ju,{key:`country-${u.Alpha2Code}`,element:u,value:i,handleListItemClick:l}))),a.createElement("div",{className:"flex w-full flex-row"},a.createElement("span",{className:"basis-12 rounded border-2 border-transparent bg-slate-100 px-1 outline-none transition-colors duration-300 dark:bg-slate-800 dark:text-slate-100 hidden xs:block"},p&&a.createElement(Yg,{imageUrl:new URL(Object.assign({"../../../../../image/countries/data/ad/flag.svg":Ua,"../../../../../image/countries/data/ae/flag.svg":$a,"../../../../../image/countries/data/af/flag.svg":Oa,"../../../../../image/countries/data/ag/flag.svg":Fa,"../../../../../image/countries/data/ai/flag.svg":Ka,"../../../../../image/countries/data/al/flag.svg":za,"../../../../../image/countries/data/am/flag.svg":Ha,"../../../../../image/countries/data/ao/flag.svg":Va,"../../../../../image/countries/data/aq/flag.svg":Ya,"../../../../../image/countries/data/ar/flag.svg":qa,"../../../../../image/countries/data/as/flag.svg":Wa,"../../../../../image/countries/data/at/flag.svg":Ja,"../../../../../image/countries/data/au/flag.svg":Za,"../../../../../image/countries/data/aw/flag.svg":Xa,"../../../../../image/countries/data/az/flag.svg":Qa,"../../../../../image/countries/data/ba/flag.svg":ae,"../../../../../image/countries/data/bb/flag.svg":ee,"../../../../../image/countries/data/bd/flag.svg":te,"../../../../../image/countries/data/be/flag.svg":ie,"../../../../../image/countries/data/bf/flag.svg":se,"../../../../../image/countries/data/bg/flag.svg":ge,"../../../../../image/countries/data/bh/flag.svg":ne,"../../../../../image/countries/data/bi/flag.svg":oe,"../../../../../image/countries/data/bj/flag.svg":re,"../../../../../image/countries/data/bm/flag.svg":le,"../../../../../image/countries/data/bn/flag.svg":ce,"../../../../../image/countries/data/bo/flag.svg":de,"../../../../../image/countries/data/br/flag.svg":me,"../../../../../image/countries/data/bs/flag.svg":ue,"../../../../../image/countries/data/bt/flag.svg":_e,"../../../../../image/countries/data/bv/flag.svg":ve,"../../../../../image/countries/data/bw/flag.svg":fe,"../../../../../image/countries/data/by/flag.svg":pe,"../../../../../image/countries/data/bz/flag.svg":he,"../../../../../image/countries/data/ca/flag.svg":be,"../../../../../image/countries/data/cc/flag.svg":ye,"../../../../../image/countries/data/cd/flag.svg":ke,"../../../../../image/countries/data/cf/flag.svg":Ae,"../../../../../image/countries/data/cg/flag.svg":Ce,"../../../../../image/countries/data/ch/flag.svg":xe,"../../../../../image/countries/data/ci/flag.svg":Ee,"../../../../../image/countries/data/ck/flag.svg":Le,"../../../../../image/countries/data/cl/flag.svg":we,"../../../../../image/countries/data/cm/flag.svg":Se,"../../../../../image/countries/data/cn/flag.svg":Ne,"../../../../../image/countries/data/co/flag.svg":Be,"../../../../../image/countries/data/cr/flag.svg":Ge,"../../../../../image/countries/data/cu/flag.svg":Me,"../../../../../image/countries/data/cv/flag.svg":Te,"../../../../../image/countries/data/cw/flag.svg":Re,"../../../../../image/countries/data/cx/flag.svg":Pe,"../../../../../image/countries/data/cy/flag.svg":Ie,"../../../../../image/countries/data/cz/flag.svg":je,"../../../../../image/countries/data/de/flag.svg":De,"../../../../../image/countries/data/dj/flag.svg":Ue,"../../../../../image/countries/data/dk/flag.svg":$e,"../../../../../image/countries/data/dm/flag.svg":Oe,"../../../../../image/countries/data/do/flag.svg":Fe,"../../../../../image/countries/data/dz/flag.svg":Ke,"../../../../../image/countries/data/ec/flag.svg":ze,"../../../../../image/countries/data/ee/flag.svg":He,"../../../../../image/countries/data/eg/flag.svg":Ve,"../../../../../image/countries/data/eh/flag.svg":Ye,"../../../../../image/countries/data/er/flag.svg":qe,"../../../../../image/countries/data/es/flag.svg":We,"../../../../../image/countries/data/et/flag.svg":Je,"../../../../../image/countries/data/fi/flag.svg":Ze,"../../../../../image/countries/data/fj/flag.svg":Xe,"../../../../../image/countries/data/fk/flag.svg":Qe,"../../../../../image/countries/data/fm/flag.svg":at,"../../../../../image/countries/data/fo/flag.svg":et,"../../../../../image/countries/data/fr/flag.svg":tt,"../../../../../image/countries/data/ga/flag.svg":it,"../../../../../image/countries/data/gb/flag.svg":st,"../../../../../image/countries/data/gd/flag.svg":gt,"../../../../../image/countries/data/ge/flag.svg":nt,"../../../../../image/countries/data/gf/flag.svg":ot,"../../../../../image/countries/data/gg/flag.svg":rt,"../../../../../image/countries/data/gh/flag.svg":lt,"../../../../../image/countries/data/gi/flag.svg":ct,"../../../../../image/countries/data/gl/flag.svg":dt,"../../../../../image/countries/data/gm/flag.svg":mt,"../../../../../image/countries/data/gn/flag.svg":ut,"../../../../../image/countries/data/gp/flag.svg":_t,"../../../../../image/countries/data/gq/flag.svg":vt,"../../../../../image/countries/data/gr/flag.svg":ft,"../../../../../image/countries/data/gs/flag.svg":pt,"../../../../../image/countries/data/gt/flag.svg":ht,"../../../../../image/countries/data/gu/flag.svg":bt,"../../../../../image/countries/data/gw/flag.svg":yt,"../../../../../image/countries/data/gy/flag.svg":kt,"../../../../../image/countries/data/gz/flag.svg":At,"../../../../../image/countries/data/hk/flag.svg":Ct,"../../../../../image/countries/data/hm/flag.svg":xt,"../../../../../image/countries/data/hn/flag.svg":Et,"../../../../../image/countries/data/hr/flag.svg":Lt,"../../../../../image/countries/data/ht/flag.svg":wt,"../../../../../image/countries/data/hu/flag.svg":St,"../../../../../image/countries/data/id/flag.svg":Nt,"../../../../../image/countries/data/ie/flag.svg":Bt,"../../../../../image/countries/data/il/flag.svg":Gt,"../../../../../image/countries/data/im/flag.svg":Mt,"../../../../../image/countries/data/in/flag.svg":Tt,"../../../../../image/countries/data/io/flag.svg":Rt,"../../../../../image/countries/data/iq/flag.svg":Pt,"../../../../../image/countries/data/ir/flag.svg":It,"../../../../../image/countries/data/is/flag.svg":jt,"../../../../../image/countries/data/it/flag.svg":Dt,"../../../../../image/countries/data/je/flag.svg":Ut,"../../../../../image/countries/data/jm/flag.svg":$t,"../../../../../image/countries/data/jo/flag.svg":Ot,"../../../../../image/countries/data/jp/flag.svg":Ft,"../../../../../image/countries/data/ke/flag.svg":Kt,"../../../../../image/countries/data/kg/flag.svg":zt,"../../../../../image/countries/data/kh/flag.svg":Ht,"../../../../../image/countries/data/ki/flag.svg":Vt,"../../../../../image/countries/data/km/flag.svg":Yt,"../../../../../image/countries/data/kn/flag.svg":qt,"../../../../../image/countries/data/kp/flag.svg":Wt,"../../../../../image/countries/data/kr/flag.svg":Jt,"../../../../../image/countries/data/kw/flag.svg":Zt,"../../../../../image/countries/data/ky/flag.svg":Xt,"../../../../../image/countries/data/kz/flag.svg":Qt,"../../../../../image/countries/data/la/flag.svg":ai,"../../../../../image/countries/data/lb/flag.svg":ei,"../../../../../image/countries/data/lc/flag.svg":ti,"../../../../../image/countries/data/li/flag.svg":ii,"../../../../../image/countries/data/lk/flag.svg":si,"../../../../../image/countries/data/lr/flag.svg":gi,"../../../../../image/countries/data/ls/flag.svg":ni,"../../../../../image/countries/data/lt/flag.svg":oi,"../../../../../image/countries/data/lu/flag.svg":ri,"../../../../../image/countries/data/lv/flag.svg":li,"../../../../../image/countries/data/ly/flag.svg":ci,"../../../../../image/countries/data/ma/flag.svg":di,"../../../../../image/countries/data/mc/flag.svg":mi,"../../../../../image/countries/data/md/flag.svg":ui,"../../../../../image/countries/data/me/flag.svg":_i,"../../../../../image/countries/data/mg/flag.svg":vi,"../../../../../image/countries/data/mh/flag.svg":fi,"../../../../../image/countries/data/mk/flag.svg":pi,"../../../../../image/countries/data/ml/flag.svg":hi,"../../../../../image/countries/data/mm/flag.svg":bi,"../../../../../image/countries/data/mn/flag.svg":yi,"../../../../../image/countries/data/mo/flag.svg":ki,"../../../../../image/countries/data/mp/flag.svg":Ai,"../../../../../image/countries/data/mq/flag.svg":Ci,"../../../../../image/countries/data/mr/flag.svg":xi,"../../../../../image/countries/data/ms/flag.svg":Ei,"../../../../../image/countries/data/mt/flag.svg":Li,"../../../../../image/countries/data/mu/flag.svg":wi,"../../../../../image/countries/data/mv/flag.svg":Si,"../../../../../image/countries/data/mw/flag.svg":Ni,"../../../../../image/countries/data/mx/flag.svg":Bi,"../../../../../image/countries/data/my/flag.svg":Gi,"../../../../../image/countries/data/mz/flag.svg":Mi,"../../../../../image/countries/data/na/flag.svg":Ti,"../../../../../image/countries/data/nc/flag.svg":Ri,"../../../../../image/countries/data/ne/flag.svg":Pi,"../../../../../image/countries/data/nf/flag.svg":Ii,"../../../../../image/countries/data/ng/flag.svg":ji,"../../../../../image/countries/data/ni/flag.svg":Di,"../../../../../image/countries/data/nl/flag.svg":Ui,"../../../../../image/countries/data/no/flag.svg":$i,"../../../../../image/countries/data/np/flag.svg":Oi,"../../../../../image/countries/data/nr/flag.svg":Fi,"../../../../../image/countries/data/nu/flag.svg":Ki,"../../../../../image/countries/data/nz/flag.svg":zi,"../../../../../image/countries/data/om/flag.svg":Hi,"../../../../../image/countries/data/pa/flag.svg":Vi,"../../../../../image/countries/data/pe/flag.svg":Yi,"../../../../../image/countries/data/pf/flag.svg":qi,"../../../../../image/countries/data/pg/flag.svg":Wi,"../../../../../image/countries/data/ph/flag.svg":Ji,"../../../../../image/countries/data/pk/flag.svg":Zi,"../../../../../image/countries/data/pl/flag.svg":Xi,"../../../../../image/countries/data/pm/flag.svg":Qi,"../../../../../image/countries/data/pn/flag.svg":as,"../../../../../image/countries/data/pr/flag.svg":es,"../../../../../image/countries/data/ps/flag.svg":ts,"../../../../../image/countries/data/pt/flag.svg":is,"../../../../../image/countries/data/pw/flag.svg":ss,"../../../../../image/countries/data/py/flag.svg":gs,"../../../../../image/countries/data/qa/flag.svg":ns,"../../../../../image/countries/data/re/flag.svg":os,"../../../../../image/countries/data/ro/flag.svg":rs,"../../../../../image/countries/data/rs/flag.svg":ls,"../../../../../image/countries/data/ru/flag.svg":cs,"../../../../../image/countries/data/rw/flag.svg":ds,"../../../../../image/countries/data/sa/flag.svg":ms,"../../../../../image/countries/data/sb/flag.svg":us,"../../../../../image/countries/data/sc/flag.svg":_s,"../../../../../image/countries/data/sd/flag.svg":vs,"../../../../../image/countries/data/se/flag.svg":fs,"../../../../../image/countries/data/sg/flag.svg":ps,"../../../../../image/countries/data/sh/flag.svg":hs,"../../../../../image/countries/data/si/flag.svg":bs,"../../../../../image/countries/data/sj/flag.svg":ys,"../../../../../image/countries/data/sk/flag.svg":ks,"../../../../../image/countries/data/sl/flag.svg":As,"../../../../../image/countries/data/sm/flag.svg":Cs,"../../../../../image/countries/data/sn/flag.svg":xs,"../../../../../image/countries/data/so/flag.svg":Es,"../../../../../image/countries/data/sr/flag.svg":Ls,"../../../../../image/countries/data/ss/flag.svg":ws,"../../../../../image/countries/data/st/flag.svg":Ss,"../../../../../image/countries/data/sv/flag.svg":Ns,"../../../../../image/countries/data/sy/flag.svg":Bs,"../../../../../image/countries/data/sz/flag.svg":Gs,"../../../../../image/countries/data/tc/flag.svg":Ms,"../../../../../image/countries/data/td/flag.svg":Ts,"../../../../../image/countries/data/tf/flag.svg":Rs,"../../../../../image/countries/data/tg/flag.svg":Ps,"../../../../../image/countries/data/th/flag.svg":Is,"../../../../../image/countries/data/tj/flag.svg":js,"../../../../../image/countries/data/tk/flag.svg":Ds,"../../../../../image/countries/data/tl/flag.svg":Us,"../../../../../image/countries/data/tm/flag.svg":$s,"../../../../../image/countries/data/tn/flag.svg":Os,"../../../../../image/countries/data/to/flag.svg":Fs,"../../../../../image/countries/data/tr/flag.svg":Ks,"../../../../../image/countries/data/tt/flag.svg":zs,"../../../../../image/countries/data/tv/flag.svg":Hs,"../../../../../image/countries/data/tw/flag.svg":Vs,"../../../../../image/countries/data/tz/flag.svg":Ys,"../../../../../image/countries/data/ua/flag.svg":qs,"../../../../../image/countries/data/ug/flag.svg":Ws,"../../../../../image/countries/data/us/flag.svg":Js,"../../../../../image/countries/data/uy/flag.svg":Zs,"../../../../../image/countries/data/uz/flag.svg":Xs,"../../../../../image/countries/data/va/flag.svg":Qs,"../../../../../image/countries/data/vc/flag.svg":ag,"../../../../../image/countries/data/ve/flag.svg":eg,"../../../../../image/countries/data/vg/flag.svg":tg,"../../../../../image/countries/data/vi/flag.svg":ig,"../../../../../image/countries/data/vn/flag.svg":sg,"../../../../../image/countries/data/vu/flag.svg":gg,"../../../../../image/countries/data/wf/flag.svg":ng,"../../../../../image/countries/data/ws/flag.svg":og,"../../../../../image/countries/data/xk/flag.svg":rg,"../../../../../image/countries/data/ye/flag.svg":lg,"../../../../../image/countries/data/yt/flag.svg":cg,"../../../../../image/countries/data/za/flag.svg":dg,"../../../../../image/countries/data/zm/flag.svg":mg,"../../../../../image/countries/data/zw/flag.svg":ug})[`../../../../../image/countries/data/${(h=p==null?void 0:p.Alpha2Code)==null?void 0:h.toLowerCase()}/flag.svg`],self.location).href,className:"w-8",autoplay:!0})),a.createElement("input",{type:"text",autoComplete:"off",className:`mx-1 grow rounded border-2 border-transparent bg-white p-1 px-2 outline-none transition-colors duration-300 hover:border-majky-400 hover:bg-majky-100 focus:border-majky-500 focus:ring focus:ring-majky-500/20 dark:bg-slate-800 dark:text-slate-100`,placeholder:id,value:i,onChange:c,onKeyDown:d,onClick:u=>{o(!0),u.stopPropagation()}}),a.createElement(x,{className:`flex h-full basis-24 items-center justify-center rounded border-2 border-transparent bg-white p-1 px-5 font-bold outline-none transition-colors duration-300 hover:border-slate-400 hover:bg-majky-100 focus:border-majky-500 focus:ring focus:ring-majky-500/20 active:bg-white disabled:bg-slate-50 disabled:text-slate-300 dark:bg-slate-800 dark:text-slate-100 dark:hover:bg-majky-600 hover:dark:bg-slate-700 dark:active:bg-slate-600 disabled:dark:border-slate-500 disabled:dark:bg-slate-800 disabled:dark:text-slate-500 `,onClick:()=>{r()&&i!==""&&A.error(nm,{position:"top-center"})}},a.createElement("img",{alt:"🌎",src:new URL("/build/assets/1f30e-16905dd1.png",self.location).href,className:"mr-0.5 h-4 w-4 hidden xs:block"}),a.createElement("span",null,Mg)))))},Uu=({name:e,Alpha2Code:t})=>{var n;const{borders:i}=k(({game:g})=>g.countryOfToday),s=m.useMemo(()=>Fg(t,i)?1:0,[t,i]);return a.createElement("div",{className:"relative col-span-7 grid h-fit grid-cols-7 gap-1"},a.createElement(b.div,{initial:{opacity:0},animate:{opacity:1},transition:{delay:2},className:"col-span-7 grid h-full grid-cols-7 gap-1"},a.createElement("div",{className:"animate-reveal col-span-1 flex h-full items-center justify-center rounded border-2 px-2"},a.createElement("img",{className:"mx-2 h-6 w-6",alt:t,src:new URL(Object.assign({"../../../../../image/countries/data/ad/flag.svg":Ua,"../../../../../image/countries/data/ae/flag.svg":$a,"../../../../../image/countries/data/af/flag.svg":Oa,"../../../../../image/countries/data/ag/flag.svg":Fa,"../../../../../image/countries/data/ai/flag.svg":Ka,"../../../../../image/countries/data/al/flag.svg":za,"../../../../../image/countries/data/am/flag.svg":Ha,"../../../../../image/countries/data/ao/flag.svg":Va,"../../../../../image/countries/data/aq/flag.svg":Ya,"../../../../../image/countries/data/ar/flag.svg":qa,"../../../../../image/countries/data/as/flag.svg":Wa,"../../../../../image/countries/data/at/flag.svg":Ja,"../../../../../image/countries/data/au/flag.svg":Za,"../../../../../image/countries/data/aw/flag.svg":Xa,"../../../../../image/countries/data/az/flag.svg":Qa,"../../../../../image/countries/data/ba/flag.svg":ae,"../../../../../image/countries/data/bb/flag.svg":ee,"../../../../../image/countries/data/bd/flag.svg":te,"../../../../../image/countries/data/be/flag.svg":ie,"../../../../../image/countries/data/bf/flag.svg":se,"../../../../../image/countries/data/bg/flag.svg":ge,"../../../../../image/countries/data/bh/flag.svg":ne,"../../../../../image/countries/data/bi/flag.svg":oe,"../../../../../image/countries/data/bj/flag.svg":re,"../../../../../image/countries/data/bm/flag.svg":le,"../../../../../image/countries/data/bn/flag.svg":ce,"../../../../../image/countries/data/bo/flag.svg":de,"../../../../../image/countries/data/br/flag.svg":me,"../../../../../image/countries/data/bs/flag.svg":ue,"../../../../../image/countries/data/bt/flag.svg":_e,"../../../../../image/countries/data/bv/flag.svg":ve,"../../../../../image/countries/data/bw/flag.svg":fe,"../../../../../image/countries/data/by/flag.svg":pe,"../../../../../image/countries/data/bz/flag.svg":he,"../../../../../image/countries/data/ca/flag.svg":be,"../../../../../image/countries/data/cc/flag.svg":ye,"../../../../../image/countries/data/cd/flag.svg":ke,"../../../../../image/countries/data/cf/flag.svg":Ae,"../../../../../image/countries/data/cg/flag.svg":Ce,"../../../../../image/countries/data/ch/flag.svg":xe,"../../../../../image/countries/data/ci/flag.svg":Ee,"../../../../../image/countries/data/ck/flag.svg":Le,"../../../../../image/countries/data/cl/flag.svg":we,"../../../../../image/countries/data/cm/flag.svg":Se,"../../../../../image/countries/data/cn/flag.svg":Ne,"../../../../../image/countries/data/co/flag.svg":Be,"../../../../../image/countries/data/cr/flag.svg":Ge,"../../../../../image/countries/data/cu/flag.svg":Me,"../../../../../image/countries/data/cv/flag.svg":Te,"../../../../../image/countries/data/cw/flag.svg":Re,"../../../../../image/countries/data/cx/flag.svg":Pe,"../../../../../image/countries/data/cy/flag.svg":Ie,"../../../../../image/countries/data/cz/flag.svg":je,"../../../../../image/countries/data/de/flag.svg":De,"../../../../../image/countries/data/dj/flag.svg":Ue,"../../../../../image/countries/data/dk/flag.svg":$e,"../../../../../image/countries/data/dm/flag.svg":Oe,"../../../../../image/countries/data/do/flag.svg":Fe,"../../../../../image/countries/data/dz/flag.svg":Ke,"../../../../../image/countries/data/ec/flag.svg":ze,"../../../../../image/countries/data/ee/flag.svg":He,"../../../../../image/countries/data/eg/flag.svg":Ve,"../../../../../image/countries/data/eh/flag.svg":Ye,"../../../../../image/countries/data/er/flag.svg":qe,"../../../../../image/countries/data/es/flag.svg":We,"../../../../../image/countries/data/et/flag.svg":Je,"../../../../../image/countries/data/fi/flag.svg":Ze,"../../../../../image/countries/data/fj/flag.svg":Xe,"../../../../../image/countries/data/fk/flag.svg":Qe,"../../../../../image/countries/data/fm/flag.svg":at,"../../../../../image/countries/data/fo/flag.svg":et,"../../../../../image/countries/data/fr/flag.svg":tt,"../../../../../image/countries/data/ga/flag.svg":it,"../../../../../image/countries/data/gb/flag.svg":st,"../../../../../image/countries/data/gd/flag.svg":gt,"../../../../../image/countries/data/ge/flag.svg":nt,"../../../../../image/countries/data/gf/flag.svg":ot,"../../../../../image/countries/data/gg/flag.svg":rt,"../../../../../image/countries/data/gh/flag.svg":lt,"../../../../../image/countries/data/gi/flag.svg":ct,"../../../../../image/countries/data/gl/flag.svg":dt,"../../../../../image/countries/data/gm/flag.svg":mt,"../../../../../image/countries/data/gn/flag.svg":ut,"../../../../../image/countries/data/gp/flag.svg":_t,"../../../../../image/countries/data/gq/flag.svg":vt,"../../../../../image/countries/data/gr/flag.svg":ft,"../../../../../image/countries/data/gs/flag.svg":pt,"../../../../../image/countries/data/gt/flag.svg":ht,"../../../../../image/countries/data/gu/flag.svg":bt,"../../../../../image/countries/data/gw/flag.svg":yt,"../../../../../image/countries/data/gy/flag.svg":kt,"../../../../../image/countries/data/gz/flag.svg":At,"../../../../../image/countries/data/hk/flag.svg":Ct,"../../../../../image/countries/data/hm/flag.svg":xt,"../../../../../image/countries/data/hn/flag.svg":Et,"../../../../../image/countries/data/hr/flag.svg":Lt,"../../../../../image/countries/data/ht/flag.svg":wt,"../../../../../image/countries/data/hu/flag.svg":St,"../../../../../image/countries/data/id/flag.svg":Nt,"../../../../../image/countries/data/ie/flag.svg":Bt,"../../../../../image/countries/data/il/flag.svg":Gt,"../../../../../image/countries/data/im/flag.svg":Mt,"../../../../../image/countries/data/in/flag.svg":Tt,"../../../../../image/countries/data/io/flag.svg":Rt,"../../../../../image/countries/data/iq/flag.svg":Pt,"../../../../../image/countries/data/ir/flag.svg":It,"../../../../../image/countries/data/is/flag.svg":jt,"../../../../../image/countries/data/it/flag.svg":Dt,"../../../../../image/countries/data/je/flag.svg":Ut,"../../../../../image/countries/data/jm/flag.svg":$t,"../../../../../image/countries/data/jo/flag.svg":Ot,"../../../../../image/countries/data/jp/flag.svg":Ft,"../../../../../image/countries/data/ke/flag.svg":Kt,"../../../../../image/countries/data/kg/flag.svg":zt,"../../../../../image/countries/data/kh/flag.svg":Ht,"../../../../../image/countries/data/ki/flag.svg":Vt,"../../../../../image/countries/data/km/flag.svg":Yt,"../../../../../image/countries/data/kn/flag.svg":qt,"../../../../../image/countries/data/kp/flag.svg":Wt,"../../../../../image/countries/data/kr/flag.svg":Jt,"../../../../../image/countries/data/kw/flag.svg":Zt,"../../../../../image/countries/data/ky/flag.svg":Xt,"../../../../../image/countries/data/kz/flag.svg":Qt,"../../../../../image/countries/data/la/flag.svg":ai,"../../../../../image/countries/data/lb/flag.svg":ei,"../../../../../image/countries/data/lc/flag.svg":ti,"../../../../../image/countries/data/li/flag.svg":ii,"../../../../../image/countries/data/lk/flag.svg":si,"../../../../../image/countries/data/lr/flag.svg":gi,"../../../../../image/countries/data/ls/flag.svg":ni,"../../../../../image/countries/data/lt/flag.svg":oi,"../../../../../image/countries/data/lu/flag.svg":ri,"../../../../../image/countries/data/lv/flag.svg":li,"../../../../../image/countries/data/ly/flag.svg":ci,"../../../../../image/countries/data/ma/flag.svg":di,"../../../../../image/countries/data/mc/flag.svg":mi,"../../../../../image/countries/data/md/flag.svg":ui,"../../../../../image/countries/data/me/flag.svg":_i,"../../../../../image/countries/data/mg/flag.svg":vi,"../../../../../image/countries/data/mh/flag.svg":fi,"../../../../../image/countries/data/mk/flag.svg":pi,"../../../../../image/countries/data/ml/flag.svg":hi,"../../../../../image/countries/data/mm/flag.svg":bi,"../../../../../image/countries/data/mn/flag.svg":yi,"../../../../../image/countries/data/mo/flag.svg":ki,"../../../../../image/countries/data/mp/flag.svg":Ai,"../../../../../image/countries/data/mq/flag.svg":Ci,"../../../../../image/countries/data/mr/flag.svg":xi,"../../../../../image/countries/data/ms/flag.svg":Ei,"../../../../../image/countries/data/mt/flag.svg":Li,"../../../../../image/countries/data/mu/flag.svg":wi,"../../../../../image/countries/data/mv/flag.svg":Si,"../../../../../image/countries/data/mw/flag.svg":Ni,"../../../../../image/countries/data/mx/flag.svg":Bi,"../../../../../image/countries/data/my/flag.svg":Gi,"../../../../../image/countries/data/mz/flag.svg":Mi,"../../../../../image/countries/data/na/flag.svg":Ti,"../../../../../image/countries/data/nc/flag.svg":Ri,"../../../../../image/countries/data/ne/flag.svg":Pi,"../../../../../image/countries/data/nf/flag.svg":Ii,"../../../../../image/countries/data/ng/flag.svg":ji,"../../../../../image/countries/data/ni/flag.svg":Di,"../../../../../image/countries/data/nl/flag.svg":Ui,"../../../../../image/countries/data/no/flag.svg":$i,"../../../../../image/countries/data/np/flag.svg":Oi,"../../../../../image/countries/data/nr/flag.svg":Fi,"../../../../../image/countries/data/nu/flag.svg":Ki,"../../../../../image/countries/data/nz/flag.svg":zi,"../../../../../image/countries/data/om/flag.svg":Hi,"../../../../../image/countries/data/pa/flag.svg":Vi,"../../../../../image/countries/data/pe/flag.svg":Yi,"../../../../../image/countries/data/pf/flag.svg":qi,"../../../../../image/countries/data/pg/flag.svg":Wi,"../../../../../image/countries/data/ph/flag.svg":Ji,"../../../../../image/countries/data/pk/flag.svg":Zi,"../../../../../image/countries/data/pl/flag.svg":Xi,"../../../../../image/countries/data/pm/flag.svg":Qi,"../../../../../image/countries/data/pn/flag.svg":as,"../../../../../image/countries/data/pr/flag.svg":es,"../../../../../image/countries/data/ps/flag.svg":ts,"../../../../../image/countries/data/pt/flag.svg":is,"../../../../../image/countries/data/pw/flag.svg":ss,"../../../../../image/countries/data/py/flag.svg":gs,"../../../../../image/countries/data/qa/flag.svg":ns,"../../../../../image/countries/data/re/flag.svg":os,"../../../../../image/countries/data/ro/flag.svg":rs,"../../../../../image/countries/data/rs/flag.svg":ls,"../../../../../image/countries/data/ru/flag.svg":cs,"../../../../../image/countries/data/rw/flag.svg":ds,"../../../../../image/countries/data/sa/flag.svg":ms,"../../../../../image/countries/data/sb/flag.svg":us,"../../../../../image/countries/data/sc/flag.svg":_s,"../../../../../image/countries/data/sd/flag.svg":vs,"../../../../../image/countries/data/se/flag.svg":fs,"../../../../../image/countries/data/sg/flag.svg":ps,"../../../../../image/countries/data/sh/flag.svg":hs,"../../../../../image/countries/data/si/flag.svg":bs,"../../../../../image/countries/data/sj/flag.svg":ys,"../../../../../image/countries/data/sk/flag.svg":ks,"../../../../../image/countries/data/sl/flag.svg":As,"../../../../../image/countries/data/sm/flag.svg":Cs,"../../../../../image/countries/data/sn/flag.svg":xs,"../../../../../image/countries/data/so/flag.svg":Es,"../../../../../image/countries/data/sr/flag.svg":Ls,"../../../../../image/countries/data/ss/flag.svg":ws,"../../../../../image/countries/data/st/flag.svg":Ss,"../../../../../image/countries/data/sv/flag.svg":Ns,"../../../../../image/countries/data/sy/flag.svg":Bs,"../../../../../image/countries/data/sz/flag.svg":Gs,"../../../../../image/countries/data/tc/flag.svg":Ms,"../../../../../image/countries/data/td/flag.svg":Ts,"../../../../../image/countries/data/tf/flag.svg":Rs,"../../../../../image/countries/data/tg/flag.svg":Ps,"../../../../../image/countries/data/th/flag.svg":Is,"../../../../../image/countries/data/tj/flag.svg":js,"../../../../../image/countries/data/tk/flag.svg":Ds,"../../../../../image/countries/data/tl/flag.svg":Us,"../../../../../image/countries/data/tm/flag.svg":$s,"../../../../../image/countries/data/tn/flag.svg":Os,"../../../../../image/countries/data/to/flag.svg":Fs,"../../../../../image/countries/data/tr/flag.svg":Ks,"../../../../../image/countries/data/tt/flag.svg":zs,"../../../../../image/countries/data/tv/flag.svg":Hs,"../../../../../image/countries/data/tw/flag.svg":Vs,"../../../../../image/countries/data/tz/flag.svg":Ys,"../../../../../image/countries/data/ua/flag.svg":qs,"../../../../../image/countries/data/ug/flag.svg":Ws,"../../../../../image/countries/data/us/flag.svg":Js,"../../../../../image/countries/data/uy/flag.svg":Zs,"../../../../../image/countries/data/uz/flag.svg":Xs,"../../../../../image/countries/data/va/flag.svg":Qs,"../../../../../image/countries/data/vc/flag.svg":ag,"../../../../../image/countries/data/ve/flag.svg":eg,"../../../../../image/countries/data/vg/flag.svg":tg,"../../../../../image/countries/data/vi/flag.svg":ig,"../../../../../image/countries/data/vn/flag.svg":sg,"../../../../../image/countries/data/vu/flag.svg":gg,"../../../../../image/countries/data/wf/flag.svg":ng,"../../../../../image/countries/data/ws/flag.svg":og,"../../../../../image/countries/data/xk/flag.svg":rg,"../../../../../image/countries/data/ye/flag.svg":lg,"../../../../../image/countries/data/yt/flag.svg":cg,"../../../../../image/countries/data/za/flag.svg":dg,"../../../../../image/countries/data/zm/flag.svg":mg,"../../../../../image/countries/data/zw/flag.svg":ug})[`../../../../../image/countries/data/${t==null?void 0:t.toLowerCase()}/flag.svg`],self.location).href})),a.createElement("div",{className:"animate-reveal col-span-5 flex h-full items-center justify-center rounded border-2 px-2"},e[v]??e),a.createElement("div",{className:"animate-reveal col-span-1 flex h-full items-center justify-center rounded border-2 px-2"},a.createElement("img",{alt:B.yesOrNo[s].imgAlt,src:(n=B.yesOrNo[s].imgSrc)==null?void 0:n.toLowerCase(),className:"h-4 w-4"}))),a.createElement(zg,null))},rd=({header:e,Alpha2Codes:t,completed:i,labels:s})=>{const{settings:n}=k(({user:_})=>_),{guesses:g}=k(({game:_})=>_.neighbours),o=C(),r=R();m.useEffect(()=>{n.noImage?r.start({scale:0}):r.start({scale:1})},[n.noImage,r]);const c=s?[...s]:t.map(_=>{var p;return(p=fg.filter(f=>(f==null?void 0:f.Alpha2Code)===(_==null?void 0:_.toUpperCase()))[0])==null?void 0:p.name[v]}),l=t.map(_=>Fg(_,g.map(({Alpha2Code:p})=>p.toUpperCase()))),d=["","grid-cols-1","grid-cols-2","grid-cols-3","grid-cols-4","grid-cols-5","grid-cols-6","grid-cols-7","grid-cols-8","grid-cols-9","grid-cols-10","grid-cols-11","grid-cols-12"][Au(t.length)];return a.createElement(a.Fragment,null,a.createElement("span",{className:"relative mt-6 w-full text-center font-bold text-slate-800 dark:text-slate-100 "},e),a.createElement("div",{className:`my-4 grid w-full gap-4 ${d}`},t.sort((_,p)=>{var f;return n.sortNeighboursAlphabetically?(f=_.name)==null?void 0:f.localeCompare(p.name[v]):1}).map((_,p)=>a.createElement(b.div,{key:`svg-map-${p}`,className:"relative",initial:{opacity:0,translateX:20,translateY:20},animate:{opacity:1,translateX:0,translateY:0},transition:{delay:p*.1}},(i||l[p])&&a.createElement(od,{label:c[p]}),!n.noImage||i?a.createElement(b.div,{initial:{scale:.8},animate:r,transition:{delay:.25*p},className:`min-h-68 relative flex w-full transform overflow-hidden rounded-lg p-4 transition-transform duration-500 ${l[p]?"bg-pink-500 invert dark:bg-majky-500 dark:invert-0":"border-2 border-solid border-slate-500 "}`},a.createElement(m.Suspense,{fallback:null},a.createElement("img",{className:"pointer-events-all m-auto h-full select-none transition-all duration-700 ease-in dark:invert",style:{transform:`rotate(${n.rotationMode?Math.floor(Math.random()*360):0}deg)`},alt:"country to guess",height:"208",width:"208",src:new URL(Object.assign({"../../../../../image/countries/data/ad/map.svg":nn,"../../../../../image/countries/data/ae/map.svg":on,"../../../../../image/countries/data/af/map.svg":rn,"../../../../../image/countries/data/ag/map.svg":ln,"../../../../../image/countries/data/ai/map.svg":cn,"../../../../../image/countries/data/al/map.svg":dn,"../../../../../image/countries/data/am/map.svg":mn,"../../../../../image/countries/data/ao/map.svg":un,"../../../../../image/countries/data/aq/map.svg":_n,"../../../../../image/countries/data/ar/map.svg":vn,"../../../../../image/countries/data/as/map.svg":fn,"../../../../../image/countries/data/at/map.svg":pn,"../../../../../image/countries/data/au/map.svg":hn,"../../../../../image/countries/data/aw/map.svg":bn,"../../../../../image/countries/data/az/map.svg":yn,"../../../../../image/countries/data/ba/map.svg":kn,"../../../../../image/countries/data/bb/map.svg":An,"../../../../../image/countries/data/bd/map.svg":Cn,"../../../../../image/countries/data/be/map.svg":xn,"../../../../../image/countries/data/bf/map.svg":En,"../../../../../image/countries/data/bg/map.svg":Ln,"../../../../../image/countries/data/bh/map.svg":wn,"../../../../../image/countries/data/bi/map.svg":Sn,"../../../../../image/countries/data/bj/map.svg":Nn,"../../../../../image/countries/data/bm/map.svg":Bn,"../../../../../image/countries/data/bn/map.svg":Gn,"../../../../../image/countries/data/bo/map.svg":Mn,"../../../../../image/countries/data/br/map.svg":Tn,"../../../../../image/countries/data/bs/map.svg":Rn,"../../../../../image/countries/data/bt/map.svg":Pn,"../../../../../image/countries/data/bv/map.svg":In,"../../../../../image/countries/data/bw/map.svg":jn,"../../../../../image/countries/data/by/map.svg":Dn,"../../../../../image/countries/data/bz/map.svg":Un,"../../../../../image/countries/data/ca/map.svg":$n,"../../../../../image/countries/data/cc/map.svg":On,"../../../../../image/countries/data/cd/map.svg":Fn,"../../../../../image/countries/data/cf/map.svg":Kn,"../../../../../image/countries/data/cg/map.svg":zn,"../../../../../image/countries/data/ch/map.svg":Hn,"../../../../../image/countries/data/ci/map.svg":Vn,"../../../../../image/countries/data/ck/map.svg":Yn,"../../../../../image/countries/data/cl/map.svg":qn,"../../../../../image/countries/data/cm/map.svg":Wn,"../../../../../image/countries/data/cn/map.svg":Jn,"../../../../../image/countries/data/co/map.svg":Zn,"../../../../../image/countries/data/cr/map.svg":Xn,"../../../../../image/countries/data/cu/map.svg":Qn,"../../../../../image/countries/data/cv/map.svg":ao,"../../../../../image/countries/data/cw/map.svg":eo,"../../../../../image/countries/data/cx/map.svg":to,"../../../../../image/countries/data/cy/map.svg":io,"../../../../../image/countries/data/cz/map.svg":so,"../../../../../image/countries/data/de/map.svg":go,"../../../../../image/countries/data/dj/map.svg":no,"../../../../../image/countries/data/dk/map.svg":oo,"../../../../../image/countries/data/dm/map.svg":ro,"../../../../../image/countries/data/do/map.svg":lo,"../../../../../image/countries/data/dz/map.svg":co,"../../../../../image/countries/data/ec/map.svg":mo,"../../../../../image/countries/data/ee/map.svg":uo,"../../../../../image/countries/data/eg/map.svg":_o,"../../../../../image/countries/data/eh/map.svg":vo,"../../../../../image/countries/data/er/map.svg":fo,"../../../../../image/countries/data/es/map.svg":po,"../../../../../image/countries/data/et/map.svg":ho,"../../../../../image/countries/data/fi/map.svg":bo,"../../../../../image/countries/data/fj/map.svg":yo,"../../../../../image/countries/data/fk/map.svg":ko,"../../../../../image/countries/data/fm/map.svg":Ao,"../../../../../image/countries/data/fo/map.svg":Co,"../../../../../image/countries/data/fr/map.svg":xo,"../../../../../image/countries/data/ga/map.svg":Eo,"../../../../../image/countries/data/gb/map.svg":Lo,"../../../../../image/countries/data/gd/map.svg":wo,"../../../../../image/countries/data/ge/map.svg":So,"../../../../../image/countries/data/gf/map.svg":No,"../../../../../image/countries/data/gg/map.svg":Bo,"../../../../../image/countries/data/gh/map.svg":Go,"../../../../../image/countries/data/gi/map.svg":Mo,"../../../../../image/countries/data/gl/map.svg":To,"../../../../../image/countries/data/gm/map.svg":Ro,"../../../../../image/countries/data/gn/map.svg":Po,"../../../../../image/countries/data/gp/map.svg":Io,"../../../../../image/countries/data/gq/map.svg":jo,"../../../../../image/countries/data/gr/map.svg":Do,"../../../../../image/countries/data/gs/map.svg":Uo,"../../../../../image/countries/data/gt/map.svg":$o,"../../../../../image/countries/data/gu/map.svg":Oo,"../../../../../image/countries/data/gw/map.svg":Fo,"../../../../../image/countries/data/gy/map.svg":Ko,"../../../../../image/countries/data/gz/map.svg":zo,"../../../../../image/countries/data/hk/map.svg":Ho,"../../../../../image/countries/data/hm/map.svg":Vo,"../../../../../image/countries/data/hn/map.svg":Yo,"../../../../../image/countries/data/hr/map.svg":qo,"../../../../../image/countries/data/ht/map.svg":Wo,"../../../../../image/countries/data/hu/map.svg":Jo,"../../../../../image/countries/data/id/map.svg":Zo,"../../../../../image/countries/data/ie/map.svg":Xo,"../../../../../image/countries/data/il/map.svg":Qo,"../../../../../image/countries/data/im/map.svg":ar,"../../../../../image/countries/data/in/map.svg":er,"../../../../../image/countries/data/io/map.svg":tr,"../../../../../image/countries/data/iq/map.svg":ir,"../../../../../image/countries/data/ir/map.svg":sr,"../../../../../image/countries/data/is/map.svg":gr,"../../../../../image/countries/data/it/map.svg":nr,"../../../../../image/countries/data/je/map.svg":or,"../../../../../image/countries/data/jm/map.svg":rr,"../../../../../image/countries/data/jo/map.svg":lr,"../../../../../image/countries/data/jp/map.svg":cr,"../../../../../image/countries/data/ke/map.svg":dr,"../../../../../image/countries/data/kg/map.svg":mr,"../../../../../image/countries/data/kh/map.svg":ur,"../../../../../image/countries/data/ki/map.svg":_r,"../../../../../image/countries/data/km/map.svg":vr,"../../../../../image/countries/data/kn/map.svg":fr,"../../../../../image/countries/data/kp/map.svg":pr,"../../../../../image/countries/data/kr/map.svg":hr,"../../../../../image/countries/data/kw/map.svg":br,"../../../../../image/countries/data/ky/map.svg":yr,"../../../../../image/countries/data/kz/map.svg":kr,"../../../../../image/countries/data/la/map.svg":Ar,"../../../../../image/countries/data/lb/map.svg":Cr,"../../../../../image/countries/data/lc/map.svg":xr,"../../../../../image/countries/data/li/map.svg":Er,"../../../../../image/countries/data/lk/map.svg":Lr,"../../../../../image/countries/data/lr/map.svg":wr,"../../../../../image/countries/data/ls/map.svg":Sr,"../../../../../image/countries/data/lt/map.svg":Nr,"../../../../../image/countries/data/lu/map.svg":Br,"../../../../../image/countries/data/lv/map.svg":Gr,"../../../../../image/countries/data/ly/map.svg":Mr,"../../../../../image/countries/data/ma/map.svg":Tr,"../../../../../image/countries/data/mc/map.svg":Rr,"../../../../../image/countries/data/md/map.svg":Pr,"../../../../../image/countries/data/me/map.svg":Ir,"../../../../../image/countries/data/mg/map.svg":jr,"../../../../../image/countries/data/mh/map.svg":Dr,"../../../../../image/countries/data/mk/map.svg":Ur,"../../../../../image/countries/data/ml/map.svg":$r,"../../../../../image/countries/data/mm/map.svg":Or,"../../../../../image/countries/data/mn/map.svg":Fr,"../../../../../image/countries/data/mo/map.svg":Kr,"../../../../../image/countries/data/mp/map.svg":zr,"../../../../../image/countries/data/mq/map.svg":Hr,"../../../../../image/countries/data/mr/map.svg":Vr,"../../../../../image/countries/data/ms/map.svg":Yr,"../../../../../image/countries/data/mt/map.svg":qr,"../../../../../image/countries/data/mu/map.svg":Wr,"../../../../../image/countries/data/mv/map.svg":Jr,"../../../../../image/countries/data/mw/map.svg":Zr,"../../../../../image/countries/data/mx/map.svg":Xr,"../../../../../image/countries/data/my/map.svg":Qr,"../../../../../image/countries/data/mz/map.svg":al,"../../../../../image/countries/data/na/map.svg":el,"../../../../../image/countries/data/nc/map.svg":tl,"../../../../../image/countries/data/ne/map.svg":il,"../../../../../image/countries/data/nf/map.svg":sl,"../../../../../image/countries/data/ng/map.svg":gl,"../../../../../image/countries/data/ni/map.svg":nl,"../../../../../image/countries/data/nl/map.svg":ol,"../../../../../image/countries/data/no/map.svg":rl,"../../../../../image/countries/data/np/map.svg":ll,"../../../../../image/countries/data/nr/map.svg":cl,"../../../../../image/countries/data/nu/map.svg":dl,"../../../../../image/countries/data/nz/map.svg":ml,"../../../../../image/countries/data/om/map.svg":ul,"../../../../../image/countries/data/pa/map.svg":_l,"../../../../../image/countries/data/pe/map.svg":vl,"../../../../../image/countries/data/pf/map.svg":fl,"../../../../../image/countries/data/pg/map.svg":pl,"../../../../../image/countries/data/ph/map.svg":hl,"../../../../../image/countries/data/pk/map.svg":bl,"../../../../../image/countries/data/pl/map.svg":yl,"../../../../../image/countries/data/pm/map.svg":kl,"../../../../../image/countries/data/pn/map.svg":Al,"../../../../../image/countries/data/pr/map.svg":Cl,"../../../../../image/countries/data/ps/map.svg":xl,"../../../../../image/countries/data/pt/map.svg":El,"../../../../../image/countries/data/pw/map.svg":Ll,"../../../../../image/countries/data/py/map.svg":wl,"../../../../../image/countries/data/qa/map.svg":Sl,"../../../../../image/countries/data/re/map.svg":Nl,"../../../../../image/countries/data/ro/map.svg":Bl,"../../../../../image/countries/data/rs/map.svg":Gl,"../../../../../image/countries/data/ru/map.svg":Ml,"../../../../../image/countries/data/rw/map.svg":Tl,"../../../../../image/countries/data/sa/map.svg":Rl,"../../../../../image/countries/data/sb/map.svg":Pl,"../../../../../image/countries/data/sc/map.svg":Il,"../../../../../image/countries/data/sd/map.svg":jl,"../../../../../image/countries/data/se/map.svg":Dl,"../../../../../image/countries/data/sg/map.svg":Ul,"../../../../../image/countries/data/sh/map.svg":$l,"../../../../../image/countries/data/si/map.svg":Ol,"../../../../../image/countries/data/sj/map.svg":Fl,"../../../../../image/countries/data/sk/map.svg":Kl,"../../../../../image/countries/data/sl/map.svg":zl,"../../../../../image/countries/data/sm/map.svg":Hl,"../../../../../image/countries/data/sn/map.svg":Vl,"../../../../../image/countries/data/so/map.svg":Yl,"../../../../../image/countries/data/sr/map.svg":ql,"../../../../../image/countries/data/ss/map.svg":Wl,"../../../../../image/countries/data/st/map.svg":Jl,"../../../../../image/countries/data/sv/map.svg":Zl,"../../../../../image/countries/data/sy/map.svg":Xl,"../../../../../image/countries/data/sz/map.svg":Ql,"../../../../../image/countries/data/tc/map.svg":ac,"../../../../../image/countries/data/td/map.svg":ec,"../../../../../image/countries/data/tf/map.svg":tc,"../../../../../image/countries/data/tg/map.svg":ic,"../../../../../image/countries/data/th/map.svg":sc,"../../../../../image/countries/data/tj/map.svg":gc,"../../../../../image/countries/data/tk/map.svg":nc,"../../../../../image/countries/data/tl/map.svg":oc,"../../../../../image/countries/data/tm/map.svg":rc,"../../../../../image/countries/data/tn/map.svg":lc,"../../../../../image/countries/data/to/map.svg":cc,"../../../../../image/countries/data/tr/map.svg":dc,"../../../../../image/countries/data/tt/map.svg":mc,"../../../../../image/countries/data/tv/map.svg":uc,"../../../../../image/countries/data/tw/map.svg":_c,"../../../../../image/countries/data/tz/map.svg":vc,"../../../../../image/countries/data/ua/map.svg":fc,"../../../../../image/countries/data/ug/map.svg":pc,"../../../../../image/countries/data/us/map.svg":hc,"../../../../../image/countries/data/uy/map.svg":bc,"../../../../../image/countries/data/uz/map.svg":yc,"../../../../../image/countries/data/va/map.svg":kc,"../../../../../image/countries/data/vc/map.svg":Ac,"../../../../../image/countries/data/ve/map.svg":Cc,"../../../../../image/countries/data/vg/map.svg":xc,"../../../../../image/countries/data/vi/map.svg":Ec,"../../../../../image/countries/data/vn/map.svg":Lc,"../../../../../image/countries/data/vu/map.svg":wc,"../../../../../image/countries/data/wf/map.svg":Sc,"../../../../../image/countries/data/ws/map.svg":Nc,"../../../../../image/countries/data/xk/map.svg":Bc,"../../../../../image/countries/data/ye/map.svg":Gc,"../../../../../image/countries/data/yt/map.svg":Mc,"../../../../../image/countries/data/za/map.svg":Tc,"../../../../../image/countries/data/zm/map.svg":Rc,"../../../../../image/countries/data/zw/map.svg":Pc})[`../../../../../image/countries/data/${_==null?void 0:_.toLowerCase()}/map.svg`],self.location).href}))):a.createElement("div",{className:"relative mt-4 flex min-h-20 w-full max-w-lg flex-col items-center justify-center"},a.createElement(x,{className:"z-4 absolute my-2 w-3/4 rounded border-2 p-1 py-4 font-bold uppercase hover:bg-majky-50 active:bg-white dark:hover:bg-majky-800 dark:active:bg-slate-700",onClick:()=>{o(Vg({...n,noImage:!1}))}},a.createElement("img",{alt:"🗺️",src:new URL("/build/assets/1f5fa-0ca6066d.png",self.location).href,className:"mr-1 inline-block h-6 w-6"}),gd))))))},$u=()=>{var g;const e=C(),{neighbours:t,countryOfToday:i}=k(({game:o})=>o),s=o=>{e(en({searchString:o}))},n=o=>{fu([...t.guesses,o],i.borders)&&(e(Xm()),A.success(G)),t.guesses.length<t.guessLimit&&e(en({guesses:[...t.guesses,o]}))};return a.createElement(m.Fragment,null,a.createElement(rd,{header:Sm.replaceAll("<count>",(g=i==null?void 0:i.borders)==null?void 0:g.length).replaceAll("<country>",i==null?void 0:i.name),Alpha2Codes:i==null?void 0:i.borders,completed:t.completed}),a.createElement($g,{results:t.guesses,limitRow:t.guessLimit,completed:t.completed,rowTemplate:Uu}),!t.completed&&a.createElement(a.Fragment,null,a.createElement("div",{className:"w-full cursor-pointer rounded bg-slate-300 p-1 transition-all duration-300 dark:bg-slate-600 dark:hover:bg-majky-500"},a.createElement(Du,{rows:fg,results:t.guesses,value:t.searchString,onChange:s,onGuess:n})),a.createElement(Hg,{count:t.guessLimit-t.guesses.length-1})))},qg=["tropical","dry","temperate","continental","polar"],ld=[{Alpha2Code:"AD",name:{de:"Andorra la Vella",en:"Andorra la Vella"},category:"",climate:2},{Alpha2Code:"AE",name:{de:"Abu Dhabi",en:"Abu Dhabi"},category:"Abud_Dabhi_United_Arab_Emirates_Zayed_Mosque",climate:1},{Alpha2Code:"AF",name:{de:"Kabul",en:"Kabul"},category:"",climate:3},{Alpha2Code:"AG",name:{de:"Saint John's",en:"Saint John's"},category:"",climate:0},{Alpha2Code:"AI",name:{de:"Das Tal",en:"The Valley"},category:"",climate:0},{Alpha2Code:"AL",name:{de:"Tirana",en:"Tirana"},category:"",climate:2},{Alpha2Code:"AM",name:{de:"Jerewan",en:"Yerevan"},category:"",climate:3},{Alpha2Code:"AO",name:{de:"Luanda",en:"Luanda"},category:"",climate:0},{Alpha2Code:"AR",name:{de:"Buenos Aires",en:"Buenos Aires"},category:"",climate:2},{Alpha2Code:"AS",name:{de:"Pago Pago",en:"Pago Pago"},category:"",climate:0},{Alpha2Code:"AT",name:{de:"Wien",en:"Vienna"},category:"Vienna_Austria_Schonbrunn_Palace",climate:2},{Alpha2Code:"AU",name:{de:"Canberra",en:"Canberra"},category:"Canberrra_Australia_Parliament",climate:2},{Alpha2Code:"AW",name:{de:"Oranjestad",en:"Oranjestad"},category:"",climate:0},{Alpha2Code:"AZ",name:{de:"Baku",en:"Baku"},category:"",climate:2},{Alpha2Code:"BA",name:{de:"Sarajevo",en:"Sarajevo"},category:"",climate:2},{Alpha2Code:"BB",name:{de:"Bridgetown",en:"Bridgetown"},category:"",climate:0},{Alpha2Code:"BD",name:{de:"Dhaka",en:"Dhaka"},category:"",climate:0},{Alpha2Code:"BE",name:{de:"Brüssel",en:"Brussels"},category:"",climate:2},{Alpha2Code:"BF",name:{de:"Ouagadougou",en:"Ouagadougou"},category:"",climate:0},{Alpha2Code:"BG",name:{de:"Sofia",en:"Sofia"},category:"",climate:2},{Alpha2Code:"BH",name:{de:"Manama",en:"Manama"},category:"",climate:1},{Alpha2Code:"BI",name:{de:"Gitega",en:"Gitega"},category:"",climate:0},{Alpha2Code:"BJ",name:{de:"Porto Novo",en:"Porto-Novo"},category:"",climate:0},{Alpha2Code:"BM",name:{de:"Hamilton",en:"Hamilton"},category:"",climate:0},{Alpha2Code:"BN",name:{de:"Bandar Seri Begawan",en:"Bandar Seri Begawan"},category:"",climate:0},{Alpha2Code:"BO",name:{de:"La Paz",en:"La Paz"},category:"",climate:2},{Alpha2Code:"BR",name:{de:"Brasilia",en:"Brasilia"},category:"Brasilia_Brazil_Catedral_Metropolitano",climate:0},{Alpha2Code:"BS",name:{de:"Nassau",en:"Nassau"},category:"",climate:0},{Alpha2Code:"BT",name:{de:"Thimphu",en:"Thimphu"},category:"",climate:2},{Alpha2Code:"BW",name:{de:"Gaborone",en:"Gaborone"},category:"",climate:1},{Alpha2Code:"BY",name:{de:"Minsk",en:"Minsk"},category:"",climate:2},{Alpha2Code:"BZ",name:{de:"Belmopan",en:"Belmopan"},category:"",climate:0},{Alpha2Code:"CA",name:{de:"Ottawa",en:"Ottawa"},category:"Ottawa_Canada_Parliament",climate:3},{Alpha2Code:"CC",name:{de:"Westinsel",en:"West Island"},category:"",climate:0},{Alpha2Code:"CD",name:{de:"Kinshasa",en:"Kinshasa"},category:"",climate:0},{Alpha2Code:"CF",name:{de:"Bangui",en:"Bangui"},category:"",climate:0},{Alpha2Code:"CG",name:{de:"Brazzaville",en:"Brazzaville"},category:"",climate:0},{Alpha2Code:"CH",name:{de:"Bern",en:"Bern"},category:"",climate:2},{Alpha2Code:"CI",name:{de:"Yamoussoukro",en:"Yamoussoukro"},category:"",climate:0},{Alpha2Code:"CK",name:{de:"Avarua",en:"Avarua"},category:"",climate:0},{Alpha2Code:"CL",name:{de:"Santiago de Chile",en:"Santiago"},category:"",climate:2},{Alpha2Code:"CM",name:{de:"Yaounde",en:"Yaounde"},category:"",climate:0},{Alpha2Code:"CN",name:{de:"Peking",en:"Beijing"},category:"Beijing_China_Forbidden_City",climate:2},{Alpha2Code:"CO",name:{de:"Bogota",en:"Bogota"},category:"",climate:0},{Alpha2Code:"CR",name:{de:"San Jose",en:"San Jose"},category:"",climate:0},{Alpha2Code:"CU",name:{de:"Havanna",en:"Havana"},category:"",climate:0},{Alpha2Code:"CV",name:{de:"Praia",en:"Praia"},category:"",climate:0},{Alpha2Code:"CW",name:{de:"Willemstad",en:"Willemstad"},category:"",climate:0},{Alpha2Code:"CX",name:{de:"Christmas Island",en:"Flying Fish Cove"},category:"",climate:0},{Alpha2Code:"CY",name:{de:"Nicosia",en:"Nicosia"},category:"",climate:2},{Alpha2Code:"CZ",name:{de:"Prag",en:"Prague"},category:"Prague_Czech_Republic_Prague_Castle",climate:2},{Alpha2Code:"DE",name:{de:"Berlin",en:"Berlin"},category:"Berlin_Germany_Brandenburg_Gate",climate:2},{Alpha2Code:"DJ",name:{de:"Dschibuti",en:"Djibouti"},category:"",climate:0},{Alpha2Code:"DK",name:{de:"Kopenhagen",en:"Copenhagen"},category:"",climate:2},{Alpha2Code:"DM",name:{de:"Roseau",en:"Roseau"},category:"",climate:0},{Alpha2Code:"DO",name:{de:"Santo Domingo",en:"Santo Domingo"},category:"",climate:0},{Alpha2Code:"DZ",name:{de:"Algier",en:"Algiers"},category:"",climate:2},{Alpha2Code:"EC",name:{de:"Quito",en:"Quito"},category:"",climate:0},{Alpha2Code:"EE",name:{de:"Tallinn",en:"Tallinn"},category:"",climate:2},{Alpha2Code:"EG",name:{de:"Kairo",en:"Cairo"},category:"Cairo_Egypt_Mosque_of_Muhammad_Ali",climate:1},{Alpha2Code:"EH",name:{de:"El Aaiún",en:"El Aaiún"},category:"",climate:1},{Alpha2Code:"ER",name:{de:"Asmara",en:"Asmara"},category:"",climate:0},{Alpha2Code:"ES",name:{de:"Madrid",en:"Madrid"},category:"Madrid_Spain_Royal_Palace",climate:2},{Alpha2Code:"ET",name:{de:"Addis Ababa",en:"Addis Ababa"},category:"",climate:0},{Alpha2Code:"FI",name:{de:"Helsinki",en:"Helsinki"},category:"Helsinki_Finland_Helsinki_Cathedral",climate:2},{Alpha2Code:"FJ",name:{de:"Suva",en:"Suva"},category:"",climate:0},{Alpha2Code:"FK",name:{de:"Stanley",en:"Stanley"},category:"",climate:4},{Alpha2Code:"FM",name:{de:"Palikir",en:"Palikir"},category:"",climate:0},{Alpha2Code:"FO",name:{de:"Tórshavn",en:"Tórshavn"},category:"",climate:4},{Alpha2Code:"FR",name:{de:"Paris",en:"Paris"},category:"Paris_France_Eiffel_Tower",climate:2},{Alpha2Code:"GA",name:{de:"Libreville",en:"Libreville"},category:"",climate:0},{Alpha2Code:"GB",name:{de:"London",en:"London"},category:"London_United_kingdom_Tower_Brigde",climate:2},{Alpha2Code:"GD",name:{de:"St. George's",en:"St. George's"},category:"",climate:0},{Alpha2Code:"GE",name:{de:"Tiflis",en:"Tbilisi"},category:"",climate:0},{Alpha2Code:"GF",name:{de:"Cayenne",en:"Cayenne"},category:"",climate:0},{Alpha2Code:"GG",name:{de:"Peter Port",en:"St. Peter Port"},category:"",climate:2},{Alpha2Code:"GH",name:{de:"Accra",en:"Accra"},category:"",climate:0},{Alpha2Code:"GI",name:{de:"Gibraltar",en:"Gibraltar"},category:"",climate:2},{Alpha2Code:"GL",name:{de:"Nuuk",en:"Nuuk"},category:"Nuuk_Greenland_Independence_sculpture",climate:4},{Alpha2Code:"GM",name:{de:"Banjul",en:"Banjul"},category:"",climate:0},{Alpha2Code:"GN",name:{de:"Conakry",en:"Conakry"},category:"",climate:0},{Alpha2Code:"GP",name:{de:"Basseterre",en:"Basse-Terre"},category:"",climate:0},{Alpha2Code:"GQ",name:{de:"Malabo",en:"Malabo"},category:"",climate:0},{Alpha2Code:"GR",name:{de:"Athen",en:"Athens"},category:"Athens_Greece_Acropolis",climate:2},{Alpha2Code:"GS",name:{de:"King Edward Point",en:"King Edward Point"},category:"",climate:4},{Alpha2Code:"GT",name:{de:"Guatemala-Stadt",en:"Guatemala City"},category:"",climate:2},{Alpha2Code:"GU",name:{de:"Hagatna",en:"Hagatna"},category:"",climate:0},{Alpha2Code:"GW",name:{de:"Bissau",en:"Bissau"},category:"",climate:0},{Alpha2Code:"GY",name:{de:"Georgetown",en:"Georgetown"},category:"",climate:0},{Alpha2Code:"HN",name:{de:"Tegucigalpa",en:"Tegucigalpa"},category:"",climate:0},{Alpha2Code:"HR",name:{de:"Zagreb",en:"Zagreb"},category:"",climate:2},{Alpha2Code:"HT",name:{de:"Port-au-Prince",en:"Port-au-Prince"},category:"",climate:0},{Alpha2Code:"HU",name:{de:"Budapest",en:"Budapest"},category:"Budapest_Hungary_Parliament_building",climate:2},{Alpha2Code:"ID",name:{de:"Jakarta",en:"Jakarta"},category:"Jakarta_Indonesia_Istiqlal_Mosque",climate:0},{Alpha2Code:"IE",name:{de:"Dublin",en:"Dublin"},category:"",climate:2},{Alpha2Code:"IL",name:{de:"Jerusalem",en:"Jerusalem"},category:"",climate:2},{Alpha2Code:"IM",name:{de:"Douglas",en:"Douglas"},category:"",climate:2},{Alpha2Code:"IN",name:{de:"Neu-Delhi",en:"New Delhi"},category:"New_Delhi_India_Humanyu_Tumb",climate:0},{Alpha2Code:"IQ",name:{de:"Bagdad",en:"Baghdad"},category:"",climate:1},{Alpha2Code:"IR",name:{de:"Teheran",en:"Tehran"},category:"Tehran_Iran_Azadi_Tower",climate:1},{Alpha2Code:"IS",name:{de:"Reykjavik",en:"Reykjavik"},category:"Reykjavik_Iceland_Hallgrimskirkj",climate:4},{Alpha2Code:"IT",name:{de:"Rom",en:"Rome"},category:"Rome_Italy_Colosseum",climate:2},{Alpha2Code:"JE",name:{de:"Saint Helier",en:"Saint Helier"},category:"",climate:2},{Alpha2Code:"JM",name:{de:"Kingston",en:"Kingston"},category:"",climate:0},{Alpha2Code:"JO",name:{de:"Amman",en:"Amman"},category:"",climate:2},{Alpha2Code:"JP",name:{de:"Tokio",en:"Tokyo"},category:"Tokyo_Japan_Tokyo_Tower",climate:2},{Alpha2Code:"KE",name:{de:"Nairobi",en:"Nairobi"},category:"",climate:0},{Alpha2Code:"KG",name:{de:"Bishkek",en:"Bishkek"},category:"",climate:3},{Alpha2Code:"KH",name:{de:"Phnom Penh",en:"Phnom Penh"},category:"",climate:0},{Alpha2Code:"KI",name:{de:"Tarawa",en:"Tarawa"},category:"",climate:0},{Alpha2Code:"KM",name:{de:"Moroni",en:"Moroni"},category:"",climate:0},{Alpha2Code:"KN",name:{de:"Basseterre",en:"Basseterre"},category:"",climate:0},{Alpha2Code:"KP",name:{de:"Pjöngjang",en:"Pyongyang"},category:"",climate:3},{Alpha2Code:"KR",name:{de:"Seoul",en:"Seoul"},category:"Seoul_South_Korea_N_Seoul_Tower",climate:2},{Alpha2Code:"KW",name:{de:"Kuwait",en:"Kuwait City"},category:"",climate:1},{Alpha2Code:"KY",name:{de:"Georgetown",en:"George Town"},category:"",climate:0},{Alpha2Code:"KZ",name:{de:"Astana",en:"Astana"},category:"",climate:3},{Alpha2Code:"LA",name:{de:"Vientiane",en:"Vientiane"},category:"",climate:0},{Alpha2Code:"LB",name:{de:"Beirut",en:"Beirut"},category:"",climate:2},{Alpha2Code:"LC",name:{de:"Castries",en:"Castries"},category:"",climate:0},{Alpha2Code:"LI",name:{de:"Vaduz",en:"Vaduz"},category:"",climate:3},{Alpha2Code:"LK",name:{de:"Colombo",en:"Colombo"},category:"",climate:0},{Alpha2Code:"LR",name:{de:"Monrovia",en:"Monrovia"},category:"",climate:0},{Alpha2Code:"LS",name:{de:"Maseru",en:"Maseru"},category:"",climate:0},{Alpha2Code:"LT",name:{de:"Vilnius",en:"Vilnius"},category:"",climate:2},{Alpha2Code:"LU",name:{de:"Luxemburg",en:"Luxembourg"},category:"",climate:2},{Alpha2Code:"LV",name:{de:"Riga",en:"Riga"},category:"",climate:2},{Alpha2Code:"LY",name:{de:"Tripolis",en:"Tripoli"},category:"",climate:2},{Alpha2Code:"MA",name:{de:"Rabat",en:"Rabat"},category:"",climate:2},{Alpha2Code:"MC",name:{de:"Monaco",en:"Monaco"},category:"",climate:2},{Alpha2Code:"MD",name:{de:"Chisinau",en:"Chisinau"},category:"",climate:3},{Alpha2Code:"ME",name:{de:"Podgorica",en:"Podgorica"},category:"",climate:2},{Alpha2Code:"MG",name:{de:"Antananarivo",en:"Antananarivo"},category:"",climate:0},{Alpha2Code:"MH",name:{de:"Majuro",en:"Majuro"},category:"",climate:0},{Alpha2Code:"MK",name:{de:"Skopje",en:"Skopje"},category:"",climate:3},{Alpha2Code:"ML",name:{de:"Bamako",en:"Bamako"},category:"",climate:0},{Alpha2Code:"MM",name:{de:"Naypyidaw",en:"Naypyidaw"},category:"",climate:0},{Alpha2Code:"MN",name:{de:"Ulan Bator",en:"Ulan Bator"},category:"",climate:3},{Alpha2Code:"MP",name:{de:"Saipan",en:"Saipan"},category:"",climate:0},{Alpha2Code:"MQ",name:{de:"Fort-de-France",en:"Fort-de-France"},category:"",climate:0},{Alpha2Code:"MR",name:{de:"Nouakchott",en:"Nouakchott"},category:"",climate:1},{Alpha2Code:"MS",name:{de:"Plymouth",en:"Plymouth"},category:"",climate:0},{Alpha2Code:"MT",name:{de:"Valletta",en:"Valletta"},category:"",climate:2},{Alpha2Code:"MU",name:{de:"Port Louis",en:"Port Louis"},category:"",climate:0},{Alpha2Code:"MV",name:{de:"Male",en:"Male"},category:"",climate:0},{Alpha2Code:"MW",name:{de:"Lilongwe",en:"Lilongwe"},category:"",climate:0},{Alpha2Code:"MX",name:{de:"Mexiko-Stadt",en:"Mexico City"},category:"Mexico_City_Mexico_Angel_de_la_Independencia",climate:0},{Alpha2Code:"MY",name:{de:"Kuala Lumpur",en:"Kuala Lumpur"},category:"Kuala_Lumpur_Malaysia_Petronas_Towers",climate:0},{Alpha2Code:"MZ",name:{de:"Maputo",en:"Maputo"},category:"",climate:0},{Alpha2Code:"NA",name:{de:"Windhoek",en:"Windhoek"},category:"",climate:1},{Alpha2Code:"NC",name:{de:"Noumea",en:"Noumea"},category:"",climate:0},{Alpha2Code:"NE",name:{de:"Niamey",en:"Niamey"},category:"",climate:1},{Alpha2Code:"NF",name:{de:"Kingston",en:"Kingston"},category:"",climate:0},{Alpha2Code:"NG",name:{de:"Abuja",en:"Abuja"},category:"",climate:0},{Alpha2Code:"NI",name:{de:"Managua",en:"Managua"},category:"",climate:0},{Alpha2Code:"NL",name:{de:"Amsterdam",en:"Amsterdam"},category:"Amsterdam_Netherlands_Canals_and_historic_houses",climate:2},{Alpha2Code:"NO",name:{de:"Oslo",en:"Oslo"},category:"Oslo_Norway_Nobel_Peace_Center",climate:2},{Alpha2Code:"NP",name:{de:"Kathmandu",en:"Kathmandu"},category:"",climate:0},{Alpha2Code:"NR",name:{de:"Yaren",en:"Yaren"},category:"",climate:0},{Alpha2Code:"NU",name:{de:"Alofi",en:"Alofi"},category:"",climate:0},{Alpha2Code:"NZ",name:{de:"Wellington",en:"Wellington"},category:"",climate:2},{Alpha2Code:"OM",name:{de:"Maskat",en:"Muscat"},category:"",climate:1},{Alpha2Code:"PA",name:{de:"Panama-Stadt",en:"Panama City"},category:"",climate:0},{Alpha2Code:"PE",name:{de:"Lima",en:"Lima"},category:"",climate:0},{Alpha2Code:"PF",name:{de:"Papeete",en:"Papeete"},category:"",climate:0},{Alpha2Code:"PG",name:{de:"Port Moresby",en:"Port Moresby"},category:"",climate:0},{Alpha2Code:"PH",name:{de:"Manila",en:"Manila"},category:"",climate:0},{Alpha2Code:"PK",name:{de:"Islamabad",en:"Islamabad"},category:"",climate:0},{Alpha2Code:"PL",name:{de:"Warschau",en:"Warsaw"},category:"",climate:2},{Alpha2Code:"PM",name:{de:"Saint-Pierre",en:"Saint-Pierre"},category:"",climate:4},{Alpha2Code:"PN",name:{de:"Adamstown",en:"Adamstown"},category:"",climate:2},{Alpha2Code:"PR",name:{de:"San Juan",en:"San Juan"},category:"",climate:0},{Alpha2Code:"PS",name:{de:"Ramallah",en:"Ramallah"},category:"",climate:2},{Alpha2Code:"PT",name:{de:"Lissabon",en:"Lisbon"},category:"Lisbon_Portugal_Torre_de_Belem",climate:2},{Alpha2Code:"PY",name:{de:"Asuncion",en:"Asuncion"},category:"",climate:0},{Alpha2Code:"QA",name:{de:"Doha",en:"Doha"},category:"",climate:1},{Alpha2Code:"RE",name:{de:"Saint-Denis",en:"Saint-Denis"},category:"",climate:0},{Alpha2Code:"RO",name:{de:"Bukarest",en:"Bucharest"},category:"",climate:2},{Alpha2Code:"RS",name:{de:"Belgrad",en:"Belgrade"},category:"",climate:3},{Alpha2Code:"RU",name:{de:"Moskau",en:"Moscow"},category:"Moscow_Russia_St._Basil's_Cathedral",climate:3},{Alpha2Code:"RW",name:{de:"Kigali",en:"Kigali"},category:"",climate:2},{Alpha2Code:"SA",name:{de:"Riad",en:"Riyadh"},category:"Riyadh_Saudi_Arabia_Kingdom_Centre",climate:1},{Alpha2Code:"SB",name:{de:"Honiara",en:"Honiara"},category:"",climate:0},{Alpha2Code:"SC",name:{de:"Victoria",en:"Victoria"},category:"",climate:0},{Alpha2Code:"SD",name:{de:"Khartum",en:"Khartoum"},category:"",climate:1},{Alpha2Code:"SE",name:{de:"Stockholm",en:"Stockholm"},category:"",climate:2},{Alpha2Code:"SG",name:{de:"Singapur",en:"Singapore"},category:"",climate:0},{Alpha2Code:"SH",name:{de:"Jamestown",en:"Jamestown"},category:"",climate:0},{Alpha2Code:"SI",name:{de:"Ljubljana",en:"Ljubljana"},category:"",climate:2},{Alpha2Code:"SJ",name:{de:"Longyearbyen",en:"Longyearbyen"},category:"",climate:4},{Alpha2Code:"SK",name:{de:"Bratislava",en:"Bratislava"},category:"",climate:2},{Alpha2Code:"SL",name:{de:"Freetown",en:"Freetown"},category:"",climate:0},{Alpha2Code:"SM",name:{de:"San Marino",en:"San Marino"},category:"",climate:2},{Alpha2Code:"SN",name:{de:"Dakar",en:"Dakar"},category:"",climate:0},{Alpha2Code:"SO",name:{de:"Mogadischu",en:"Mogadishu"},category:"",climate:0},{Alpha2Code:"SR",name:{de:"Paramaribo",en:"Paramaribo"},category:"",climate:0},{Alpha2Code:"SS",name:{de:"Juba",en:"Juba"},category:"",climate:0},{Alpha2Code:"ST",name:{de:"Sao Tome",en:"Sao Tome"},category:"",climate:0},{Alpha2Code:"SV",name:{de:"San Salvador",en:"San Salvador"},category:"",climate:0},{Alpha2Code:"SY",name:{de:"Damascus",en:"Damascus"},category:"",climate:2},{Alpha2Code:"SZ",name:{de:"Mbabane",en:"Mbabane"},category:"",climate:0},{Alpha2Code:"TC",name:{de:"Cockburn Town",en:"Cockburn Town"},category:"",climate:0},{Alpha2Code:"TD",name:{de:"N'Djamena",en:"N'Djamena"},category:"",climate:0},{Alpha2Code:"TF",name:{de:"Port-aux-Français",en:"Port-aux-Francais"},category:"",climate:4},{Alpha2Code:"TG",name:{de:"Lome",en:"Lome"},category:"",climate:0},{Alpha2Code:"TH",name:{de:"Bangkok",en:"Bangkok"},category:"Bangkok_Thailand_Wat_Arun_Temple_of_Dawn",climate:0},{Alpha2Code:"TJ",name:{de:"Duschanbe",en:"Dushanbe"},category:"",climate:3},{Alpha2Code:"TL",name:{de:"Dili",en:"Dili"},category:"",climate:0},{Alpha2Code:"TM",name:{de:"Aşgabat",en:"Ashgabat"},category:"",climate:1},{Alpha2Code:"TN",name:{de:"Tunis",en:"Tunis"},category:"",climate:2},{Alpha2Code:"TO",name:{de:"Nukuʻalofa",en:"Nuku'alofa"},category:"",climate:0},{Alpha2Code:"TR",name:{de:"Ankara",en:"Ankara"},category:"Ankara_Turkey_Kocatepe_Mosque",climate:2},{Alpha2Code:"TT",name:{de:"Port of Spain",en:"Port of Spain"},category:"",climate:0},{Alpha2Code:"TV",name:{de:"Funafuti",en:"Funafuti"},category:"",climate:0},{Alpha2Code:"TW",name:{de:"Taipei",en:"Taipei"},category:"",climate:0},{Alpha2Code:"TZ",name:{de:"Dodoma",en:"Dodoma"},category:"",climate:0},{Alpha2Code:"UA",name:{de:"Kiew",en:"Kyiv"},category:"",climate:3},{Alpha2Code:"UG",name:{de:"Kampala",en:"Kampala"},category:"",climate:0},{Alpha2Code:"US",name:{de:"Washington, D.C.",en:"Washington, D.C."},category:"Washington_DC_USA_Capitol",climate:2},{Alpha2Code:"UY",name:{de:"Montevideo",en:"Montevideo"},category:"",climate:0},{Alpha2Code:"UZ",name:{de:"Taschkent",en:"Tashkent"},category:"",climate:3},{Alpha2Code:"VA",name:{de:"Vatikanstadt",en:"Vatican City"},category:"",climate:2},{Alpha2Code:"VC",name:{de:"Kingstown",en:"Kingstown"},category:"",climate:0},{Alpha2Code:"VE",name:{de:"Caracas",en:"Caracas"},category:"",climate:0},{Alpha2Code:"VG",name:{de:"Road Town",en:"Road Town"},category:"",climate:0},{Alpha2Code:"VI",name:{de:"Charlotte Amalie",en:"Charlotte Amalie"},category:"",climate:0},{Alpha2Code:"VN",name:{de:"Hanoi",en:"Hanoi"},category:"",climate:0},{Alpha2Code:"VU",name:{de:"Port Vila",en:"Port Vila"},category:"",climate:0},{Alpha2Code:"WF",name:{de:"Mata-Utu",en:"Mata-Utu"},category:"",climate:0},{Alpha2Code:"WS",name:{de:"Apia",en:"Apia"},category:"",climate:0},{Alpha2Code:"XK",name:{de:"Pristina",en:"Pristina"},category:"",climate:3},{Alpha2Code:"YE",name:{de:"Sanaa",en:"Sanaa"},category:"",climate:1},{Alpha2Code:"YT",name:{de:"Mamoudzou",en:"Mamoudzou"},category:"",climate:0},{Alpha2Code:"ZA",name:{de:"Pretoria",en:"Pretoria"},category:"Cape_Town_South_Africa_Table_Mountain",climate:0},{Alpha2Code:"ZM",name:{de:"Lusaka",en:"Lusaka"},category:"",climate:0},{Alpha2Code:"ZW",name:{de:"Harare",en:"Harare"},category:"",climate:0}],Ou=({element:e,value:t,handleListItemClick:i})=>{const s=e.name[v].toUpperCase(),n=s.indexOf(t);return a.createElement(b.li,{whileHover:{scale:.98},whileTap:{scale:.95},onClick:()=>i(e)},a.createElement("div",{className:"flex cursor-pointer select-none flex-row items-center justify-start overflow-hidden border-b-2 bg-white hover:bg-majky-400 hover:text-white dark:bg-slate-800 dark:text-slate-100 dark:hover:bg-majky-500"},a.createElement(m.Suspense,{fallback:null},a.createElement("img",{className:"mx-2 my-0.5 h-7 w-7",alt:e.name[v],src:e.category!==""?new URL(Object.assign({"../../../../../image/countries/city/Abud_Dabhi_United_Arab_Emirates_Zayed_Mosque.svg":D,"../../../../../image/countries/city/Amsterdam_Netherlands_Canals_and_historic_houses.svg":U,"../../../../../image/countries/city/Ankara_Turkey_Kocatepe_Mosque.svg":$,"../../../../../image/countries/city/Athens_Greece_Acropolis.svg":O,"../../../../../image/countries/city/Bangkok_Thailand_Wat_Arun_Temple_of_Dawn.svg":F,"../../../../../image/countries/city/Barcelona_Spain_Sagrada_Familia.svg":K,"../../../../../image/countries/city/Beijing_China_Forbidden_City.svg":z,"../../../../../image/countries/city/Beijing_China_Temple_of_Heaven.svg":H,"../../../../../image/countries/city/Berlin_Germany_ Museums island.svg":V,"../../../../../image/countries/city/Berlin_Germany_Brandenburg_Gate.svg":Y,"../../../../../image/countries/city/Brasilia_Brazil_Catedral_Metropolitano.svg":q,"../../../../../image/countries/city/Budapest_Hungary_Parliament_building.svg":W,"../../../../../image/countries/city/Cairo_Egypt_Mosque_of_Muhammad_Ali.svg":J,"../../../../../image/countries/city/Cairo_Egypt_Pyramids_of_Giza.svg":Z,"../../../../../image/countries/city/Canberrra_Australia_Parliament.svg":X,"../../../../../image/countries/city/Cape_Town_South_Africa_Table_Mountain.svg":Q,"../../../../../image/countries/city/Dubai_United_Arab_Emirates_Burj_Khalifa.svg":aa,"../../../../../image/countries/city/Helsinki_Finland_Helsinki_Cathedral.svg":ea,"../../../../../image/countries/city/Istanbul_Turkey_Hagia_Sophia.svg":ta,"../../../../../image/countries/city/Jakarta_Indonesia_Istiqlal_Mosque.svg":ia,"../../../../../image/countries/city/Kuala_Lumpur_Malaysia_Petronas_Towers.svg":sa,"../../../../../image/countries/city/Lisbon_Portugal_Torre_de_Belem.svg":ga,"../../../../../image/countries/city/London_England_Big_Ben.svg":na,"../../../../../image/countries/city/London_United_kingdom_Tower_Brigde.svg":oa,"../../../../../image/countries/city/Madrid_Spain_Royal_Palace.svg":ra,"../../../../../image/countries/city/Mexico_City_Mexico_Angel_de_la_Independencia.svg":la,"../../../../../image/countries/city/Moscow_Russia_Kremlim.svg":ca,"../../../../../image/countries/city/Moscow_Russia_St._Basil's_Cathedral.svg":da,"../../../../../image/countries/city/Mumbai_India_Gateway_of_India.svg":ma,"../../../../../image/countries/city/New_Delhi_India_Humanyu_Tumb.svg":ua,"../../../../../image/countries/city/New_York_USA_Statue_of_Liberty.svg":_a,"../../../../../image/countries/city/Nuuk_Greenland_Independence_sculpture.svg":va,"../../../../../image/countries/city/Oslo_Norway_Nobel_Peace_Center.svg":fa,"../../../../../image/countries/city/Ottawa_Canada_Parliament.svg":pa,"../../../../../image/countries/city/Paris_France_Eiffel_Tower.svg":ha,"../../../../../image/countries/city/Paris_France_Triumph Arc.svg":ba,"../../../../../image/countries/city/Prague_Czech_Republic_Prague_Castle.svg":ya,"../../../../../image/countries/city/Reykjavik_Iceland_Hallgrimskirkj.svg":ka,"../../../../../image/countries/city/Rio_de_Janeiro_Brazil_Christ_the_Redeemer_statue_Cristo_Redentor.svg":Aa,"../../../../../image/countries/city/Riyadh_Saudi_Arabia_Kingdom_Centre.svg":Ca,"../../../../../image/countries/city/Rome_Italy_Colosseum.svg":xa,"../../../../../image/countries/city/Rome_Italy_Trevi_Fountain.svg":Ea,"../../../../../image/countries/city/San_Francisco_USA_Golden_Gate_Bridge.svg":La,"../../../../../image/countries/city/Seoul_South_Korea_N_Seoul_Tower.svg":wa,"../../../../../image/countries/city/Sydney_Australia_Opera_House.svg":Sa,"../../../../../image/countries/city/Tehran_Iran_Azadi_Tower.svg":Na,"../../../../../image/countries/city/Tokyo_Japan_Tokyo_Tower.svg":Ba,"../../../../../image/countries/city/Venice_Italy_Gondolas_and_Rialto_Bridge.svg":Ga,"../../../../../image/countries/city/Vienna_Austria_Schonbrunn_Palace.svg":Ma,"../../../../../image/countries/city/Washington_DC_USA_Capitol.svg":Ta,"../../../../../image/countries/city/continental.svg":Ra,"../../../../../image/countries/city/dry.svg":Pa,"../../../../../image/countries/city/polar.svg":Ia,"../../../../../image/countries/city/temperate.svg":ja,"../../../../../image/countries/city/tropical.svg":Da})[`../../../../../image/countries/city/${e.category}.svg`],self.location).href:new URL(Object.assign({"../../../../../image/countries/city/Abud_Dabhi_United_Arab_Emirates_Zayed_Mosque.svg":D,"../../../../../image/countries/city/Amsterdam_Netherlands_Canals_and_historic_houses.svg":U,"../../../../../image/countries/city/Ankara_Turkey_Kocatepe_Mosque.svg":$,"../../../../../image/countries/city/Athens_Greece_Acropolis.svg":O,"../../../../../image/countries/city/Bangkok_Thailand_Wat_Arun_Temple_of_Dawn.svg":F,"../../../../../image/countries/city/Barcelona_Spain_Sagrada_Familia.svg":K,"../../../../../image/countries/city/Beijing_China_Forbidden_City.svg":z,"../../../../../image/countries/city/Beijing_China_Temple_of_Heaven.svg":H,"../../../../../image/countries/city/Berlin_Germany_ Museums island.svg":V,"../../../../../image/countries/city/Berlin_Germany_Brandenburg_Gate.svg":Y,"../../../../../image/countries/city/Brasilia_Brazil_Catedral_Metropolitano.svg":q,"../../../../../image/countries/city/Budapest_Hungary_Parliament_building.svg":W,"../../../../../image/countries/city/Cairo_Egypt_Mosque_of_Muhammad_Ali.svg":J,"../../../../../image/countries/city/Cairo_Egypt_Pyramids_of_Giza.svg":Z,"../../../../../image/countries/city/Canberrra_Australia_Parliament.svg":X,"../../../../../image/countries/city/Cape_Town_South_Africa_Table_Mountain.svg":Q,"../../../../../image/countries/city/Dubai_United_Arab_Emirates_Burj_Khalifa.svg":aa,"../../../../../image/countries/city/Helsinki_Finland_Helsinki_Cathedral.svg":ea,"../../../../../image/countries/city/Istanbul_Turkey_Hagia_Sophia.svg":ta,"../../../../../image/countries/city/Jakarta_Indonesia_Istiqlal_Mosque.svg":ia,"../../../../../image/countries/city/Kuala_Lumpur_Malaysia_Petronas_Towers.svg":sa,"../../../../../image/countries/city/Lisbon_Portugal_Torre_de_Belem.svg":ga,"../../../../../image/countries/city/London_England_Big_Ben.svg":na,"../../../../../image/countries/city/London_United_kingdom_Tower_Brigde.svg":oa,"../../../../../image/countries/city/Madrid_Spain_Royal_Palace.svg":ra,"../../../../../image/countries/city/Mexico_City_Mexico_Angel_de_la_Independencia.svg":la,"../../../../../image/countries/city/Moscow_Russia_Kremlim.svg":ca,"../../../../../image/countries/city/Moscow_Russia_St._Basil's_Cathedral.svg":da,"../../../../../image/countries/city/Mumbai_India_Gateway_of_India.svg":ma,"../../../../../image/countries/city/New_Delhi_India_Humanyu_Tumb.svg":ua,"../../../../../image/countries/city/New_York_USA_Statue_of_Liberty.svg":_a,"../../../../../image/countries/city/Nuuk_Greenland_Independence_sculpture.svg":va,"../../../../../image/countries/city/Oslo_Norway_Nobel_Peace_Center.svg":fa,"../../../../../image/countries/city/Ottawa_Canada_Parliament.svg":pa,"../../../../../image/countries/city/Paris_France_Eiffel_Tower.svg":ha,"../../../../../image/countries/city/Paris_France_Triumph Arc.svg":ba,"../../../../../image/countries/city/Prague_Czech_Republic_Prague_Castle.svg":ya,"../../../../../image/countries/city/Reykjavik_Iceland_Hallgrimskirkj.svg":ka,"../../../../../image/countries/city/Rio_de_Janeiro_Brazil_Christ_the_Redeemer_statue_Cristo_Redentor.svg":Aa,"../../../../../image/countries/city/Riyadh_Saudi_Arabia_Kingdom_Centre.svg":Ca,"../../../../../image/countries/city/Rome_Italy_Colosseum.svg":xa,"../../../../../image/countries/city/Rome_Italy_Trevi_Fountain.svg":Ea,"../../../../../image/countries/city/San_Francisco_USA_Golden_Gate_Bridge.svg":La,"../../../../../image/countries/city/Seoul_South_Korea_N_Seoul_Tower.svg":wa,"../../../../../image/countries/city/Sydney_Australia_Opera_House.svg":Sa,"../../../../../image/countries/city/Tehran_Iran_Azadi_Tower.svg":Na,"../../../../../image/countries/city/Tokyo_Japan_Tokyo_Tower.svg":Ba,"../../../../../image/countries/city/Venice_Italy_Gondolas_and_Rialto_Bridge.svg":Ga,"../../../../../image/countries/city/Vienna_Austria_Schonbrunn_Palace.svg":Ma,"../../../../../image/countries/city/Washington_DC_USA_Capitol.svg":Ta,"../../../../../image/countries/city/continental.svg":Ra,"../../../../../image/countries/city/dry.svg":Pa,"../../../../../image/countries/city/polar.svg":Ia,"../../../../../image/countries/city/temperate.svg":ja,"../../../../../image/countries/city/tropical.svg":Da})[`../../../../../image/countries/city/${qg[e.climate]}.svg`],self.location).href})),a.createElement("span",null,s.slice(0,n),a.createElement("strong",null,t),s.slice(n+t.length))))},Fu=({rows:e,results:t,value:i,onChange:s,onGuess:n})=>{const[g,o]=m.useState(!1),r=()=>{const h=e.find(u=>u.name[v].toUpperCase()===i.toUpperCase());return h&&(t.map(u=>u.name[v]).includes(h.name[v])?A.error(`${Ug.replaceAll("<country>",h.name[v].toUpperCase())}`):n(h),s(""),o(!1)),!h},c=h=>{o(!0),s(h.target.value.toUpperCase())},l=h=>{o(!1),s(h.name[v].toUpperCase())},d=h=>{var u;h.key==="Enter"&&i!==""&&r()&&_.length>0&&(o(!1),s((u=_[0])==null?void 0:u.name[v].toUpperCase()))},_=m.useCallback(()=>e==null?void 0:e.filter(h=>h.name[v].toUpperCase().indexOf(i)>-1).sort((h,u)=>{var y,S;return((y=h.name[v])==null?void 0:y.toUpperCase().indexOf(i))-((S=u.name[v])==null?void 0:S.toUpperCase().indexOf(i))}),[i,e])();m.useEffect(()=>{const h=()=>{o(!1)};return document.addEventListener("click",h),()=>document.removeEventListener("click",h)},[o]);const p=e.find(h=>h.name[v].toUpperCase()===i.toUpperCase()),f=R();return m.useEffect(()=>{g?f.start({opacity:1,height:Math.min(200,_.length*36)}):f.start({opacity:0,height:0})},[f,g,_.length]),a.createElement("div",{className:"relative flex h-full w-full flex-row space-x-2"},a.createElement("div",{className:"h-full w-full flex-auto rounded"},a.createElement(b.ul,{initial:{opacity:0,height:0},animate:f,className:" absolute bottom-10 z-[99] my-0.5 w-full overflow-auto rounded-md border border-slate-800 bg-slate-300 dark:border-slate-100 dark:bg-slate-900 "},_==null?void 0:_.map(h=>a.createElement(Ou,{key:`city-${h.Alpha2Code}-${h.name[v]}`,element:h,value:i,handleListItemClick:l}))),a.createElement("div",{className:"flex w-full flex-row"},a.createElement("span",{className:"basis-12 rounded border-2 border-transparent bg-slate-100 px-1 outline-none transition-colors duration-300 dark:bg-slate-800 dark:text-slate-100 hidden xs:block"},p&&a.createElement(m.Suspense,{fallback:null},a.createElement("img",{className:"h-7 w-8",alt:"selected",src:p.category!==""?new URL(Object.assign({"../../../../../image/countries/city/Abud_Dabhi_United_Arab_Emirates_Zayed_Mosque.svg":D,"../../../../../image/countries/city/Amsterdam_Netherlands_Canals_and_historic_houses.svg":U,"../../../../../image/countries/city/Ankara_Turkey_Kocatepe_Mosque.svg":$,"../../../../../image/countries/city/Athens_Greece_Acropolis.svg":O,"../../../../../image/countries/city/Bangkok_Thailand_Wat_Arun_Temple_of_Dawn.svg":F,"../../../../../image/countries/city/Barcelona_Spain_Sagrada_Familia.svg":K,"../../../../../image/countries/city/Beijing_China_Forbidden_City.svg":z,"../../../../../image/countries/city/Beijing_China_Temple_of_Heaven.svg":H,"../../../../../image/countries/city/Berlin_Germany_ Museums island.svg":V,"../../../../../image/countries/city/Berlin_Germany_Brandenburg_Gate.svg":Y,"../../../../../image/countries/city/Brasilia_Brazil_Catedral_Metropolitano.svg":q,"../../../../../image/countries/city/Budapest_Hungary_Parliament_building.svg":W,"../../../../../image/countries/city/Cairo_Egypt_Mosque_of_Muhammad_Ali.svg":J,"../../../../../image/countries/city/Cairo_Egypt_Pyramids_of_Giza.svg":Z,"../../../../../image/countries/city/Canberrra_Australia_Parliament.svg":X,"../../../../../image/countries/city/Cape_Town_South_Africa_Table_Mountain.svg":Q,"../../../../../image/countries/city/Dubai_United_Arab_Emirates_Burj_Khalifa.svg":aa,"../../../../../image/countries/city/Helsinki_Finland_Helsinki_Cathedral.svg":ea,"../../../../../image/countries/city/Istanbul_Turkey_Hagia_Sophia.svg":ta,"../../../../../image/countries/city/Jakarta_Indonesia_Istiqlal_Mosque.svg":ia,"../../../../../image/countries/city/Kuala_Lumpur_Malaysia_Petronas_Towers.svg":sa,"../../../../../image/countries/city/Lisbon_Portugal_Torre_de_Belem.svg":ga,"../../../../../image/countries/city/London_England_Big_Ben.svg":na,"../../../../../image/countries/city/London_United_kingdom_Tower_Brigde.svg":oa,"../../../../../image/countries/city/Madrid_Spain_Royal_Palace.svg":ra,"../../../../../image/countries/city/Mexico_City_Mexico_Angel_de_la_Independencia.svg":la,"../../../../../image/countries/city/Moscow_Russia_Kremlim.svg":ca,"../../../../../image/countries/city/Moscow_Russia_St._Basil's_Cathedral.svg":da,"../../../../../image/countries/city/Mumbai_India_Gateway_of_India.svg":ma,"../../../../../image/countries/city/New_Delhi_India_Humanyu_Tumb.svg":ua,"../../../../../image/countries/city/New_York_USA_Statue_of_Liberty.svg":_a,"../../../../../image/countries/city/Nuuk_Greenland_Independence_sculpture.svg":va,"../../../../../image/countries/city/Oslo_Norway_Nobel_Peace_Center.svg":fa,"../../../../../image/countries/city/Ottawa_Canada_Parliament.svg":pa,"../../../../../image/countries/city/Paris_France_Eiffel_Tower.svg":ha,"../../../../../image/countries/city/Paris_France_Triumph Arc.svg":ba,"../../../../../image/countries/city/Prague_Czech_Republic_Prague_Castle.svg":ya,"../../../../../image/countries/city/Reykjavik_Iceland_Hallgrimskirkj.svg":ka,"../../../../../image/countries/city/Rio_de_Janeiro_Brazil_Christ_the_Redeemer_statue_Cristo_Redentor.svg":Aa,"../../../../../image/countries/city/Riyadh_Saudi_Arabia_Kingdom_Centre.svg":Ca,"../../../../../image/countries/city/Rome_Italy_Colosseum.svg":xa,"../../../../../image/countries/city/Rome_Italy_Trevi_Fountain.svg":Ea,"../../../../../image/countries/city/San_Francisco_USA_Golden_Gate_Bridge.svg":La,"../../../../../image/countries/city/Seoul_South_Korea_N_Seoul_Tower.svg":wa,"../../../../../image/countries/city/Sydney_Australia_Opera_House.svg":Sa,"../../../../../image/countries/city/Tehran_Iran_Azadi_Tower.svg":Na,"../../../../../image/countries/city/Tokyo_Japan_Tokyo_Tower.svg":Ba,"../../../../../image/countries/city/Venice_Italy_Gondolas_and_Rialto_Bridge.svg":Ga,"../../../../../image/countries/city/Vienna_Austria_Schonbrunn_Palace.svg":Ma,"../../../../../image/countries/city/Washington_DC_USA_Capitol.svg":Ta,"../../../../../image/countries/city/continental.svg":Ra,"../../../../../image/countries/city/dry.svg":Pa,"../../../../../image/countries/city/polar.svg":Ia,"../../../../../image/countries/city/temperate.svg":ja,"../../../../../image/countries/city/tropical.svg":Da})[`../../../../../image/countries/city/${p.category}.svg`],self.location).href:new URL(Object.assign({"../../../../../image/countries/city/Abud_Dabhi_United_Arab_Emirates_Zayed_Mosque.svg":D,"../../../../../image/countries/city/Amsterdam_Netherlands_Canals_and_historic_houses.svg":U,"../../../../../image/countries/city/Ankara_Turkey_Kocatepe_Mosque.svg":$,"../../../../../image/countries/city/Athens_Greece_Acropolis.svg":O,"../../../../../image/countries/city/Bangkok_Thailand_Wat_Arun_Temple_of_Dawn.svg":F,"../../../../../image/countries/city/Barcelona_Spain_Sagrada_Familia.svg":K,"../../../../../image/countries/city/Beijing_China_Forbidden_City.svg":z,"../../../../../image/countries/city/Beijing_China_Temple_of_Heaven.svg":H,"../../../../../image/countries/city/Berlin_Germany_ Museums island.svg":V,"../../../../../image/countries/city/Berlin_Germany_Brandenburg_Gate.svg":Y,"../../../../../image/countries/city/Brasilia_Brazil_Catedral_Metropolitano.svg":q,"../../../../../image/countries/city/Budapest_Hungary_Parliament_building.svg":W,"../../../../../image/countries/city/Cairo_Egypt_Mosque_of_Muhammad_Ali.svg":J,"../../../../../image/countries/city/Cairo_Egypt_Pyramids_of_Giza.svg":Z,"../../../../../image/countries/city/Canberrra_Australia_Parliament.svg":X,"../../../../../image/countries/city/Cape_Town_South_Africa_Table_Mountain.svg":Q,"../../../../../image/countries/city/Dubai_United_Arab_Emirates_Burj_Khalifa.svg":aa,"../../../../../image/countries/city/Helsinki_Finland_Helsinki_Cathedral.svg":ea,"../../../../../image/countries/city/Istanbul_Turkey_Hagia_Sophia.svg":ta,"../../../../../image/countries/city/Jakarta_Indonesia_Istiqlal_Mosque.svg":ia,"../../../../../image/countries/city/Kuala_Lumpur_Malaysia_Petronas_Towers.svg":sa,"../../../../../image/countries/city/Lisbon_Portugal_Torre_de_Belem.svg":ga,"../../../../../image/countries/city/London_England_Big_Ben.svg":na,"../../../../../image/countries/city/London_United_kingdom_Tower_Brigde.svg":oa,"../../../../../image/countries/city/Madrid_Spain_Royal_Palace.svg":ra,"../../../../../image/countries/city/Mexico_City_Mexico_Angel_de_la_Independencia.svg":la,"../../../../../image/countries/city/Moscow_Russia_Kremlim.svg":ca,"../../../../../image/countries/city/Moscow_Russia_St._Basil's_Cathedral.svg":da,"../../../../../image/countries/city/Mumbai_India_Gateway_of_India.svg":ma,"../../../../../image/countries/city/New_Delhi_India_Humanyu_Tumb.svg":ua,"../../../../../image/countries/city/New_York_USA_Statue_of_Liberty.svg":_a,"../../../../../image/countries/city/Nuuk_Greenland_Independence_sculpture.svg":va,"../../../../../image/countries/city/Oslo_Norway_Nobel_Peace_Center.svg":fa,"../../../../../image/countries/city/Ottawa_Canada_Parliament.svg":pa,"../../../../../image/countries/city/Paris_France_Eiffel_Tower.svg":ha,"../../../../../image/countries/city/Paris_France_Triumph Arc.svg":ba,"../../../../../image/countries/city/Prague_Czech_Republic_Prague_Castle.svg":ya,"../../../../../image/countries/city/Reykjavik_Iceland_Hallgrimskirkj.svg":ka,"../../../../../image/countries/city/Rio_de_Janeiro_Brazil_Christ_the_Redeemer_statue_Cristo_Redentor.svg":Aa,"../../../../../image/countries/city/Riyadh_Saudi_Arabia_Kingdom_Centre.svg":Ca,"../../../../../image/countries/city/Rome_Italy_Colosseum.svg":xa,"../../../../../image/countries/city/Rome_Italy_Trevi_Fountain.svg":Ea,"../../../../../image/countries/city/San_Francisco_USA_Golden_Gate_Bridge.svg":La,"../../../../../image/countries/city/Seoul_South_Korea_N_Seoul_Tower.svg":wa,"../../../../../image/countries/city/Sydney_Australia_Opera_House.svg":Sa,"../../../../../image/countries/city/Tehran_Iran_Azadi_Tower.svg":Na,"../../../../../image/countries/city/Tokyo_Japan_Tokyo_Tower.svg":Ba,"../../../../../image/countries/city/Venice_Italy_Gondolas_and_Rialto_Bridge.svg":Ga,"../../../../../image/countries/city/Vienna_Austria_Schonbrunn_Palace.svg":Ma,"../../../../../image/countries/city/Washington_DC_USA_Capitol.svg":Ta,"../../../../../image/countries/city/continental.svg":Ra,"../../../../../image/countries/city/dry.svg":Pa,"../../../../../image/countries/city/polar.svg":Ia,"../../../../../image/countries/city/temperate.svg":ja,"../../../../../image/countries/city/tropical.svg":Da})[`../../../../../image/countries/city/${qg[p.climate]}.svg`],self.location).href}))),a.createElement("input",{type:"text",autoComplete:"off",className:`mx-1 flex-1 rounded border-2 border-transparent bg-white p-1 px-2 outline-none transition-colors duration-300 hover:border-majky-400 hover:bg-majky-100 focus:border-majky-500 focus:ring focus:ring-majky-500/20 dark:bg-slate-800 dark:text-slate-100`,placeholder:om,value:i,onChange:c,onKeyDown:d,onClick:h=>{o(!0),h.stopPropagation()}}),a.createElement(x,{className:` flex h-full basis-24 items-center justify-center rounded border-2 border-transparent bg-white p-1 px-5 font-bold outline-none transition-colors duration-300 hover:border-slate-400 hover:bg-majky-100 focus:border-majky-500 focus:ring focus:ring-majky-500/20 active:bg-white disabled:bg-slate-50 disabled:text-slate-300 dark:bg-slate-800 dark:text-slate-100 dark:hover:bg-majky-600 hover:dark:bg-slate-700 dark:active:bg-slate-600 disabled:dark:border-slate-500 disabled:dark:bg-slate-800 disabled:dark:text-slate-500`,onClick:()=>{r()&&i!==""&&A.error(sd,{position:"top-center"})}},a.createElement("img",{alt:"🌎",src:new URL("/build/assets/1f30e-16905dd1.png",self.location).href,className:"mr-0.5 h-4 w-4 hidden xs:block"}),a.createElement("span",null,Mg)))))},Ku=({name:e,category:t,climate:i})=>{var n;const{capital:s}=k(({game:g})=>g.countryOfToday);return a.createElement("div",{className:"relative col-span-7 grid h-fit grid-cols-7 gap-1"},a.createElement(b.div,{initial:{opacity:0},animate:{opacity:1},transition:{delay:2},className:"col-span-7 grid h-full grid-cols-7 gap-1"},a.createElement("div",{className:"animate-reveal col-span-1 flex h-full items-center justify-center rounded border-2 px-2"},a.createElement("img",{alt:e,src:t!==""?new URL(Object.assign({"../../../../../image/countries/city/Abud_Dabhi_United_Arab_Emirates_Zayed_Mosque.svg":D,"../../../../../image/countries/city/Amsterdam_Netherlands_Canals_and_historic_houses.svg":U,"../../../../../image/countries/city/Ankara_Turkey_Kocatepe_Mosque.svg":$,"../../../../../image/countries/city/Athens_Greece_Acropolis.svg":O,"../../../../../image/countries/city/Bangkok_Thailand_Wat_Arun_Temple_of_Dawn.svg":F,"../../../../../image/countries/city/Barcelona_Spain_Sagrada_Familia.svg":K,"../../../../../image/countries/city/Beijing_China_Forbidden_City.svg":z,"../../../../../image/countries/city/Beijing_China_Temple_of_Heaven.svg":H,"../../../../../image/countries/city/Berlin_Germany_ Museums island.svg":V,"../../../../../image/countries/city/Berlin_Germany_Brandenburg_Gate.svg":Y,"../../../../../image/countries/city/Brasilia_Brazil_Catedral_Metropolitano.svg":q,"../../../../../image/countries/city/Budapest_Hungary_Parliament_building.svg":W,"../../../../../image/countries/city/Cairo_Egypt_Mosque_of_Muhammad_Ali.svg":J,"../../../../../image/countries/city/Cairo_Egypt_Pyramids_of_Giza.svg":Z,"../../../../../image/countries/city/Canberrra_Australia_Parliament.svg":X,"../../../../../image/countries/city/Cape_Town_South_Africa_Table_Mountain.svg":Q,"../../../../../image/countries/city/Dubai_United_Arab_Emirates_Burj_Khalifa.svg":aa,"../../../../../image/countries/city/Helsinki_Finland_Helsinki_Cathedral.svg":ea,"../../../../../image/countries/city/Istanbul_Turkey_Hagia_Sophia.svg":ta,"../../../../../image/countries/city/Jakarta_Indonesia_Istiqlal_Mosque.svg":ia,"../../../../../image/countries/city/Kuala_Lumpur_Malaysia_Petronas_Towers.svg":sa,"../../../../../image/countries/city/Lisbon_Portugal_Torre_de_Belem.svg":ga,"../../../../../image/countries/city/London_England_Big_Ben.svg":na,"../../../../../image/countries/city/London_United_kingdom_Tower_Brigde.svg":oa,"../../../../../image/countries/city/Madrid_Spain_Royal_Palace.svg":ra,"../../../../../image/countries/city/Mexico_City_Mexico_Angel_de_la_Independencia.svg":la,"../../../../../image/countries/city/Moscow_Russia_Kremlim.svg":ca,"../../../../../image/countries/city/Moscow_Russia_St._Basil's_Cathedral.svg":da,"../../../../../image/countries/city/Mumbai_India_Gateway_of_India.svg":ma,"../../../../../image/countries/city/New_Delhi_India_Humanyu_Tumb.svg":ua,"../../../../../image/countries/city/New_York_USA_Statue_of_Liberty.svg":_a,"../../../../../image/countries/city/Nuuk_Greenland_Independence_sculpture.svg":va,"../../../../../image/countries/city/Oslo_Norway_Nobel_Peace_Center.svg":fa,"../../../../../image/countries/city/Ottawa_Canada_Parliament.svg":pa,"../../../../../image/countries/city/Paris_France_Eiffel_Tower.svg":ha,"../../../../../image/countries/city/Paris_France_Triumph Arc.svg":ba,"../../../../../image/countries/city/Prague_Czech_Republic_Prague_Castle.svg":ya,"../../../../../image/countries/city/Reykjavik_Iceland_Hallgrimskirkj.svg":ka,"../../../../../image/countries/city/Rio_de_Janeiro_Brazil_Christ_the_Redeemer_statue_Cristo_Redentor.svg":Aa,"../../../../../image/countries/city/Riyadh_Saudi_Arabia_Kingdom_Centre.svg":Ca,"../../../../../image/countries/city/Rome_Italy_Colosseum.svg":xa,"../../../../../image/countries/city/Rome_Italy_Trevi_Fountain.svg":Ea,"../../../../../image/countries/city/San_Francisco_USA_Golden_Gate_Bridge.svg":La,"../../../../../image/countries/city/Seoul_South_Korea_N_Seoul_Tower.svg":wa,"../../../../../image/countries/city/Sydney_Australia_Opera_House.svg":Sa,"../../../../../image/countries/city/Tehran_Iran_Azadi_Tower.svg":Na,"../../../../../image/countries/city/Tokyo_Japan_Tokyo_Tower.svg":Ba,"../../../../../image/countries/city/Venice_Italy_Gondolas_and_Rialto_Bridge.svg":Ga,"../../../../../image/countries/city/Vienna_Austria_Schonbrunn_Palace.svg":Ma,"../../../../../image/countries/city/Washington_DC_USA_Capitol.svg":Ta,"../../../../../image/countries/city/continental.svg":Ra,"../../../../../image/countries/city/dry.svg":Pa,"../../../../../image/countries/city/polar.svg":Ia,"../../../../../image/countries/city/temperate.svg":ja,"../../../../../image/countries/city/tropical.svg":Da})[`../../../../../image/countries/city/${t}.svg`],self.location).href:new URL(Object.assign({"../../../../../image/countries/city/Abud_Dabhi_United_Arab_Emirates_Zayed_Mosque.svg":D,"../../../../../image/countries/city/Amsterdam_Netherlands_Canals_and_historic_houses.svg":U,"../../../../../image/countries/city/Ankara_Turkey_Kocatepe_Mosque.svg":$,"../../../../../image/countries/city/Athens_Greece_Acropolis.svg":O,"../../../../../image/countries/city/Bangkok_Thailand_Wat_Arun_Temple_of_Dawn.svg":F,"../../../../../image/countries/city/Barcelona_Spain_Sagrada_Familia.svg":K,"../../../../../image/countries/city/Beijing_China_Forbidden_City.svg":z,"../../../../../image/countries/city/Beijing_China_Temple_of_Heaven.svg":H,"../../../../../image/countries/city/Berlin_Germany_ Museums island.svg":V,"../../../../../image/countries/city/Berlin_Germany_Brandenburg_Gate.svg":Y,"../../../../../image/countries/city/Brasilia_Brazil_Catedral_Metropolitano.svg":q,"../../../../../image/countries/city/Budapest_Hungary_Parliament_building.svg":W,"../../../../../image/countries/city/Cairo_Egypt_Mosque_of_Muhammad_Ali.svg":J,"../../../../../image/countries/city/Cairo_Egypt_Pyramids_of_Giza.svg":Z,"../../../../../image/countries/city/Canberrra_Australia_Parliament.svg":X,"../../../../../image/countries/city/Cape_Town_South_Africa_Table_Mountain.svg":Q,"../../../../../image/countries/city/Dubai_United_Arab_Emirates_Burj_Khalifa.svg":aa,"../../../../../image/countries/city/Helsinki_Finland_Helsinki_Cathedral.svg":ea,"../../../../../image/countries/city/Istanbul_Turkey_Hagia_Sophia.svg":ta,"../../../../../image/countries/city/Jakarta_Indonesia_Istiqlal_Mosque.svg":ia,"../../../../../image/countries/city/Kuala_Lumpur_Malaysia_Petronas_Towers.svg":sa,"../../../../../image/countries/city/Lisbon_Portugal_Torre_de_Belem.svg":ga,"../../../../../image/countries/city/London_England_Big_Ben.svg":na,"../../../../../image/countries/city/London_United_kingdom_Tower_Brigde.svg":oa,"../../../../../image/countries/city/Madrid_Spain_Royal_Palace.svg":ra,"../../../../../image/countries/city/Mexico_City_Mexico_Angel_de_la_Independencia.svg":la,"../../../../../image/countries/city/Moscow_Russia_Kremlim.svg":ca,"../../../../../image/countries/city/Moscow_Russia_St._Basil's_Cathedral.svg":da,"../../../../../image/countries/city/Mumbai_India_Gateway_of_India.svg":ma,"../../../../../image/countries/city/New_Delhi_India_Humanyu_Tumb.svg":ua,"../../../../../image/countries/city/New_York_USA_Statue_of_Liberty.svg":_a,"../../../../../image/countries/city/Nuuk_Greenland_Independence_sculpture.svg":va,"../../../../../image/countries/city/Oslo_Norway_Nobel_Peace_Center.svg":fa,"../../../../../image/countries/city/Ottawa_Canada_Parliament.svg":pa,"../../../../../image/countries/city/Paris_France_Eiffel_Tower.svg":ha,"../../../../../image/countries/city/Paris_France_Triumph Arc.svg":ba,"../../../../../image/countries/city/Prague_Czech_Republic_Prague_Castle.svg":ya,"../../../../../image/countries/city/Reykjavik_Iceland_Hallgrimskirkj.svg":ka,"../../../../../image/countries/city/Rio_de_Janeiro_Brazil_Christ_the_Redeemer_statue_Cristo_Redentor.svg":Aa,"../../../../../image/countries/city/Riyadh_Saudi_Arabia_Kingdom_Centre.svg":Ca,"../../../../../image/countries/city/Rome_Italy_Colosseum.svg":xa,"../../../../../image/countries/city/Rome_Italy_Trevi_Fountain.svg":Ea,"../../../../../image/countries/city/San_Francisco_USA_Golden_Gate_Bridge.svg":La,"../../../../../image/countries/city/Seoul_South_Korea_N_Seoul_Tower.svg":wa,"../../../../../image/countries/city/Sydney_Australia_Opera_House.svg":Sa,"../../../../../image/countries/city/Tehran_Iran_Azadi_Tower.svg":Na,"../../../../../image/countries/city/Tokyo_Japan_Tokyo_Tower.svg":Ba,"../../../../../image/countries/city/Venice_Italy_Gondolas_and_Rialto_Bridge.svg":Ga,"../../../../../image/countries/city/Vienna_Austria_Schonbrunn_Palace.svg":Ma,"../../../../../image/countries/city/Washington_DC_USA_Capitol.svg":Ta,"../../../../../image/countries/city/continental.svg":Ra,"../../../../../image/countries/city/dry.svg":Pa,"../../../../../image/countries/city/polar.svg":Ia,"../../../../../image/countries/city/temperate.svg":ja,"../../../../../image/countries/city/tropical.svg":Da})[`../../../../../image/countries/city/${qg[i]}.svg`],self.location).href,className:"h-6 w-6"})),a.createElement("div",{className:"animate-reveal col-span-5 flex h-full items-center justify-center rounded border-2 px-2"},e[v]??e),a.createElement("div",{className:"animate-reveal col-span-1 flex h-full items-center justify-center rounded border-2 px-2"},a.createElement("img",{alt:B.yesOrNo[e===s.name[v]?1:0].imgAlt,src:(n=B.yesOrNo[e[v]===s.name[v]?1:0].imgSrc)==null?void 0:n.toLowerCase(),className:"h-4 w-4"}))),a.createElement(zg,null))},zu=()=>{var g;const e=C(),{capital:t,countryOfToday:i}=k(({game:o})=>o),s=o=>{e(tn({searchString:o}))},n=o=>{vu(o,i.capital)&&Tg(o,i.capital)?(e(Qm()),A.success(G)):t.guesses.length>=t.guessLimit-1&&A.info(i.capital.name[v].toUpperCase()),t.guesses.length<t.guessLimit&&e(tn({guesses:[...t.guesses,o]}))};return a.createElement(m.Fragment,null,a.createElement(rd,{header:Em.replaceAll("<country>",i==null?void 0:i.name),Alpha2Codes:[i==null?void 0:i.Alpha2Code].filter(Boolean),completed:t.completed,labels:[(g=i==null?void 0:i.capital)==null?void 0:g.name[v]]}),a.createElement($g,{results:t.guesses,rowTemplate:Ku}),!t.completed&&a.createElement(a.Fragment,null,a.createElement("div",{className:"w-full cursor-pointer rounded bg-slate-300 p-1 transition-all duration-300 dark:bg-slate-600 dark:hover:bg-majky-500"},a.createElement(Fu,{rows:ld,results:t.guesses,value:t.searchString,onChange:s,onGuess:n})),a.createElement(Hg,{count:t.guessLimit-t.guesses.length-1})))},Hu=({label:e,mode:t=-1})=>{const i=R();return m.useEffect(()=>{t!==-1?i.start({maxHeight:96}):i.start({maxHeight:0})},[t,i]),a.createElement(b.div,{initial:{maxHeight:0},animate:i,className:"flex w-full origin-bottom transform items-center justify-center overflow-hidden transition-all duration-500"},a.createElement("div",{className:"text-md mx-1 w-full items-center justify-center overflow-hidden overflow-ellipsis rounded px-2 py-1 text-center shadow"},a.createElement("span",{className:"font-semibold"},e)))},Vu=()=>{const e=C(),{flags:t,countryOfToday:i}=k(({game:g})=>g),s=g=>{Tg(g,i)&&(e(au()),A.success(G)),t.guesses.length<9&&e(eu({guesses:[...new Set([...t.guesses,g])]}))},n=m.useMemo(()=>{var g;return((g=i==null?void 0:i.flags)==null?void 0:g.map(o=>({...o,mode:hu(o,t==null?void 0:t.guesses,i,t.completed)})))||[]},[t,i]);return a.createElement(m.Fragment,null,a.createElement("span",{className:"relative mt-6 w-full text-center font-bold text-slate-800 dark:text-slate-100 "},wm.replaceAll("<country>",i==null?void 0:i.name)),a.createElement("div",{className:"my-4 grid w-full grid-cols-3 gap-2"},n==null?void 0:n.map((g,o)=>{var r;return a.createElement(b.div,{key:`svg-map-${o}`,initial:{opacity:0,translateX:-20,translateY:-20},animate:{opacity:1,translateX:0,translateY:0},transition:{delay:o*.1},className:`transition-color relative cursor-pointer overflow-hidden rounded-xl ${["border-2 border-solid border-majky-500 bg-majky-500 bg-opacity-50 ","border-2 border-solid border-red-500 bg-red-500 bg-opacity-50 ","border-2 border-solid border-blue-500 bg-blue-500 bg-opacity-50 "][g.mode]} ${g.mode===-1&&" bg-slate-200 "} flex select-none flex-col items-center justify-center `,onClick:()=>{!t.completed&&g.mode===-1&&s(g)}},a.createElement(Yg,{className:"w-[90%]",imageUrl:new URL(Object.assign({"../../../../../image/countries/data/ad/flag.svg":Ua,"../../../../../image/countries/data/ae/flag.svg":$a,"../../../../../image/countries/data/af/flag.svg":Oa,"../../../../../image/countries/data/ag/flag.svg":Fa,"../../../../../image/countries/data/ai/flag.svg":Ka,"../../../../../image/countries/data/al/flag.svg":za,"../../../../../image/countries/data/am/flag.svg":Ha,"../../../../../image/countries/data/ao/flag.svg":Va,"../../../../../image/countries/data/aq/flag.svg":Ya,"../../../../../image/countries/data/ar/flag.svg":qa,"../../../../../image/countries/data/as/flag.svg":Wa,"../../../../../image/countries/data/at/flag.svg":Ja,"../../../../../image/countries/data/au/flag.svg":Za,"../../../../../image/countries/data/aw/flag.svg":Xa,"../../../../../image/countries/data/az/flag.svg":Qa,"../../../../../image/countries/data/ba/flag.svg":ae,"../../../../../image/countries/data/bb/flag.svg":ee,"../../../../../image/countries/data/bd/flag.svg":te,"../../../../../image/countries/data/be/flag.svg":ie,"../../../../../image/countries/data/bf/flag.svg":se,"../../../../../image/countries/data/bg/flag.svg":ge,"../../../../../image/countries/data/bh/flag.svg":ne,"../../../../../image/countries/data/bi/flag.svg":oe,"../../../../../image/countries/data/bj/flag.svg":re,"../../../../../image/countries/data/bm/flag.svg":le,"../../../../../image/countries/data/bn/flag.svg":ce,"../../../../../image/countries/data/bo/flag.svg":de,"../../../../../image/countries/data/br/flag.svg":me,"../../../../../image/countries/data/bs/flag.svg":ue,"../../../../../image/countries/data/bt/flag.svg":_e,"../../../../../image/countries/data/bv/flag.svg":ve,"../../../../../image/countries/data/bw/flag.svg":fe,"../../../../../image/countries/data/by/flag.svg":pe,"../../../../../image/countries/data/bz/flag.svg":he,"../../../../../image/countries/data/ca/flag.svg":be,"../../../../../image/countries/data/cc/flag.svg":ye,"../../../../../image/countries/data/cd/flag.svg":ke,"../../../../../image/countries/data/cf/flag.svg":Ae,"../../../../../image/countries/data/cg/flag.svg":Ce,"../../../../../image/countries/data/ch/flag.svg":xe,"../../../../../image/countries/data/ci/flag.svg":Ee,"../../../../../image/countries/data/ck/flag.svg":Le,"../../../../../image/countries/data/cl/flag.svg":we,"../../../../../image/countries/data/cm/flag.svg":Se,"../../../../../image/countries/data/cn/flag.svg":Ne,"../../../../../image/countries/data/co/flag.svg":Be,"../../../../../image/countries/data/cr/flag.svg":Ge,"../../../../../image/countries/data/cu/flag.svg":Me,"../../../../../image/countries/data/cv/flag.svg":Te,"../../../../../image/countries/data/cw/flag.svg":Re,"../../../../../image/countries/data/cx/flag.svg":Pe,"../../../../../image/countries/data/cy/flag.svg":Ie,"../../../../../image/countries/data/cz/flag.svg":je,"../../../../../image/countries/data/de/flag.svg":De,"../../../../../image/countries/data/dj/flag.svg":Ue,"../../../../../image/countries/data/dk/flag.svg":$e,"../../../../../image/countries/data/dm/flag.svg":Oe,"../../../../../image/countries/data/do/flag.svg":Fe,"../../../../../image/countries/data/dz/flag.svg":Ke,"../../../../../image/countries/data/ec/flag.svg":ze,"../../../../../image/countries/data/ee/flag.svg":He,"../../../../../image/countries/data/eg/flag.svg":Ve,"../../../../../image/countries/data/eh/flag.svg":Ye,"../../../../../image/countries/data/er/flag.svg":qe,"../../../../../image/countries/data/es/flag.svg":We,"../../../../../image/countries/data/et/flag.svg":Je,"../../../../../image/countries/data/fi/flag.svg":Ze,"../../../../../image/countries/data/fj/flag.svg":Xe,"../../../../../image/countries/data/fk/flag.svg":Qe,"../../../../../image/countries/data/fm/flag.svg":at,"../../../../../image/countries/data/fo/flag.svg":et,"../../../../../image/countries/data/fr/flag.svg":tt,"../../../../../image/countries/data/ga/flag.svg":it,"../../../../../image/countries/data/gb/flag.svg":st,"../../../../../image/countries/data/gd/flag.svg":gt,"../../../../../image/countries/data/ge/flag.svg":nt,"../../../../../image/countries/data/gf/flag.svg":ot,"../../../../../image/countries/data/gg/flag.svg":rt,"../../../../../image/countries/data/gh/flag.svg":lt,"../../../../../image/countries/data/gi/flag.svg":ct,"../../../../../image/countries/data/gl/flag.svg":dt,"../../../../../image/countries/data/gm/flag.svg":mt,"../../../../../image/countries/data/gn/flag.svg":ut,"../../../../../image/countries/data/gp/flag.svg":_t,"../../../../../image/countries/data/gq/flag.svg":vt,"../../../../../image/countries/data/gr/flag.svg":ft,"../../../../../image/countries/data/gs/flag.svg":pt,"../../../../../image/countries/data/gt/flag.svg":ht,"../../../../../image/countries/data/gu/flag.svg":bt,"../../../../../image/countries/data/gw/flag.svg":yt,"../../../../../image/countries/data/gy/flag.svg":kt,"../../../../../image/countries/data/gz/flag.svg":At,"../../../../../image/countries/data/hk/flag.svg":Ct,"../../../../../image/countries/data/hm/flag.svg":xt,"../../../../../image/countries/data/hn/flag.svg":Et,"../../../../../image/countries/data/hr/flag.svg":Lt,"../../../../../image/countries/data/ht/flag.svg":wt,"../../../../../image/countries/data/hu/flag.svg":St,"../../../../../image/countries/data/id/flag.svg":Nt,"../../../../../image/countries/data/ie/flag.svg":Bt,"../../../../../image/countries/data/il/flag.svg":Gt,"../../../../../image/countries/data/im/flag.svg":Mt,"../../../../../image/countries/data/in/flag.svg":Tt,"../../../../../image/countries/data/io/flag.svg":Rt,"../../../../../image/countries/data/iq/flag.svg":Pt,"../../../../../image/countries/data/ir/flag.svg":It,"../../../../../image/countries/data/is/flag.svg":jt,"../../../../../image/countries/data/it/flag.svg":Dt,"../../../../../image/countries/data/je/flag.svg":Ut,"../../../../../image/countries/data/jm/flag.svg":$t,"../../../../../image/countries/data/jo/flag.svg":Ot,"../../../../../image/countries/data/jp/flag.svg":Ft,"../../../../../image/countries/data/ke/flag.svg":Kt,"../../../../../image/countries/data/kg/flag.svg":zt,"../../../../../image/countries/data/kh/flag.svg":Ht,"../../../../../image/countries/data/ki/flag.svg":Vt,"../../../../../image/countries/data/km/flag.svg":Yt,"../../../../../image/countries/data/kn/flag.svg":qt,"../../../../../image/countries/data/kp/flag.svg":Wt,"../../../../../image/countries/data/kr/flag.svg":Jt,"../../../../../image/countries/data/kw/flag.svg":Zt,"../../../../../image/countries/data/ky/flag.svg":Xt,"../../../../../image/countries/data/kz/flag.svg":Qt,"../../../../../image/countries/data/la/flag.svg":ai,"../../../../../image/countries/data/lb/flag.svg":ei,"../../../../../image/countries/data/lc/flag.svg":ti,"../../../../../image/countries/data/li/flag.svg":ii,"../../../../../image/countries/data/lk/flag.svg":si,"../../../../../image/countries/data/lr/flag.svg":gi,"../../../../../image/countries/data/ls/flag.svg":ni,"../../../../../image/countries/data/lt/flag.svg":oi,"../../../../../image/countries/data/lu/flag.svg":ri,"../../../../../image/countries/data/lv/flag.svg":li,"../../../../../image/countries/data/ly/flag.svg":ci,"../../../../../image/countries/data/ma/flag.svg":di,"../../../../../image/countries/data/mc/flag.svg":mi,"../../../../../image/countries/data/md/flag.svg":ui,"../../../../../image/countries/data/me/flag.svg":_i,"../../../../../image/countries/data/mg/flag.svg":vi,"../../../../../image/countries/data/mh/flag.svg":fi,"../../../../../image/countries/data/mk/flag.svg":pi,"../../../../../image/countries/data/ml/flag.svg":hi,"../../../../../image/countries/data/mm/flag.svg":bi,"../../../../../image/countries/data/mn/flag.svg":yi,"../../../../../image/countries/data/mo/flag.svg":ki,"../../../../../image/countries/data/mp/flag.svg":Ai,"../../../../../image/countries/data/mq/flag.svg":Ci,"../../../../../image/countries/data/mr/flag.svg":xi,"../../../../../image/countries/data/ms/flag.svg":Ei,"../../../../../image/countries/data/mt/flag.svg":Li,"../../../../../image/countries/data/mu/flag.svg":wi,"../../../../../image/countries/data/mv/flag.svg":Si,"../../../../../image/countries/data/mw/flag.svg":Ni,"../../../../../image/countries/data/mx/flag.svg":Bi,"../../../../../image/countries/data/my/flag.svg":Gi,"../../../../../image/countries/data/mz/flag.svg":Mi,"../../../../../image/countries/data/na/flag.svg":Ti,"../../../../../image/countries/data/nc/flag.svg":Ri,"../../../../../image/countries/data/ne/flag.svg":Pi,"../../../../../image/countries/data/nf/flag.svg":Ii,"../../../../../image/countries/data/ng/flag.svg":ji,"../../../../../image/countries/data/ni/flag.svg":Di,"../../../../../image/countries/data/nl/flag.svg":Ui,"../../../../../image/countries/data/no/flag.svg":$i,"../../../../../image/countries/data/np/flag.svg":Oi,"../../../../../image/countries/data/nr/flag.svg":Fi,"../../../../../image/countries/data/nu/flag.svg":Ki,"../../../../../image/countries/data/nz/flag.svg":zi,"../../../../../image/countries/data/om/flag.svg":Hi,"../../../../../image/countries/data/pa/flag.svg":Vi,"../../../../../image/countries/data/pe/flag.svg":Yi,"../../../../../image/countries/data/pf/flag.svg":qi,"../../../../../image/countries/data/pg/flag.svg":Wi,"../../../../../image/countries/data/ph/flag.svg":Ji,"../../../../../image/countries/data/pk/flag.svg":Zi,"../../../../../image/countries/data/pl/flag.svg":Xi,"../../../../../image/countries/data/pm/flag.svg":Qi,"../../../../../image/countries/data/pn/flag.svg":as,"../../../../../image/countries/data/pr/flag.svg":es,"../../../../../image/countries/data/ps/flag.svg":ts,"../../../../../image/countries/data/pt/flag.svg":is,"../../../../../image/countries/data/pw/flag.svg":ss,"../../../../../image/countries/data/py/flag.svg":gs,"../../../../../image/countries/data/qa/flag.svg":ns,"../../../../../image/countries/data/re/flag.svg":os,"../../../../../image/countries/data/ro/flag.svg":rs,"../../../../../image/countries/data/rs/flag.svg":ls,"../../../../../image/countries/data/ru/flag.svg":cs,"../../../../../image/countries/data/rw/flag.svg":ds,"../../../../../image/countries/data/sa/flag.svg":ms,"../../../../../image/countries/data/sb/flag.svg":us,"../../../../../image/countries/data/sc/flag.svg":_s,"../../../../../image/countries/data/sd/flag.svg":vs,"../../../../../image/countries/data/se/flag.svg":fs,"../../../../../image/countries/data/sg/flag.svg":ps,"../../../../../image/countries/data/sh/flag.svg":hs,"../../../../../image/countries/data/si/flag.svg":bs,"../../../../../image/countries/data/sj/flag.svg":ys,"../../../../../image/countries/data/sk/flag.svg":ks,"../../../../../image/countries/data/sl/flag.svg":As,"../../../../../image/countries/data/sm/flag.svg":Cs,"../../../../../image/countries/data/sn/flag.svg":xs,"../../../../../image/countries/data/so/flag.svg":Es,"../../../../../image/countries/data/sr/flag.svg":Ls,"../../../../../image/countries/data/ss/flag.svg":ws,"../../../../../image/countries/data/st/flag.svg":Ss,"../../../../../image/countries/data/sv/flag.svg":Ns,"../../../../../image/countries/data/sy/flag.svg":Bs,"../../../../../image/countries/data/sz/flag.svg":Gs,"../../../../../image/countries/data/tc/flag.svg":Ms,"../../../../../image/countries/data/td/flag.svg":Ts,"../../../../../image/countries/data/tf/flag.svg":Rs,"../../../../../image/countries/data/tg/flag.svg":Ps,"../../../../../image/countries/data/th/flag.svg":Is,"../../../../../image/countries/data/tj/flag.svg":js,"../../../../../image/countries/data/tk/flag.svg":Ds,"../../../../../image/countries/data/tl/flag.svg":Us,"../../../../../image/countries/data/tm/flag.svg":$s,"../../../../../image/countries/data/tn/flag.svg":Os,"../../../../../image/countries/data/to/flag.svg":Fs,"../../../../../image/countries/data/tr/flag.svg":Ks,"../../../../../image/countries/data/tt/flag.svg":zs,"../../../../../image/countries/data/tv/flag.svg":Hs,"../../../../../image/countries/data/tw/flag.svg":Vs,"../../../../../image/countries/data/tz/flag.svg":Ys,"../../../../../image/countries/data/ua/flag.svg":qs,"../../../../../image/countries/data/ug/flag.svg":Ws,"../../../../../image/countries/data/us/flag.svg":Js,"../../../../../image/countries/data/uy/flag.svg":Zs,"../../../../../image/countries/data/uz/flag.svg":Xs,"../../../../../image/countries/data/va/flag.svg":Qs,"../../../../../image/countries/data/vc/flag.svg":ag,"../../../../../image/countries/data/ve/flag.svg":eg,"../../../../../image/countries/data/vg/flag.svg":tg,"../../../../../image/countries/data/vi/flag.svg":ig,"../../../../../image/countries/data/vn/flag.svg":sg,"../../../../../image/countries/data/vu/flag.svg":gg,"../../../../../image/countries/data/wf/flag.svg":ng,"../../../../../image/countries/data/ws/flag.svg":og,"../../../../../image/countries/data/xk/flag.svg":rg,"../../../../../image/countries/data/ye/flag.svg":lg,"../../../../../image/countries/data/yt/flag.svg":cg,"../../../../../image/countries/data/za/flag.svg":dg,"../../../../../image/countries/data/zm/flag.svg":mg,"../../../../../image/countries/data/zw/flag.svg":ug})[`../../../../../image/countries/data/${(r=g.Alpha2Code)==null?void 0:r.toLowerCase()}/flag.svg`],self.location).href}),a.createElement(Hu,{label:g.name[v],mode:g.mode}))})))},Yu=({item:e,idx:t,completed:i,handleGuess:s})=>{var g;const n=m.useRef();return a.createElement(x,{className:`transition-color w-full cursor-pointer items-start justify-center overflow-hidden border-2 border-slate-300 bg-slate-200 px-2 py-1 text-left font-bold dark:border-slate-400 dark:bg-slate-600 ${[" !dark:bg-majky-700 !dark:border-majky-500 !border-majky-700 !bg-majky-700 !text-slate-100 "," !dark:bg-red-600 !dark:border-red-400 !border-red-600 !bg-red-600 !text-slate-100 "," !dark:bg-blue-600 !dark:border-blue-400 !border-blue-600 !bg-blue-600 !text-slate-100 "][e.mode]} rounded-md hover:bg-majky-400 hover:text-white active:text-white ${(i||e.mode!==-1)&&" pointer-events-none "} select-none`,onClick:()=>{s(e.language)}},a.createElement("div",{ref:n,className:" text-center "},a.createElement(Yg,{className:" h-24 w-full sm:h-32 ",imageUrl:new URL(Object.assign({"../../../../../image/countries/data/ad/flag.svg":Ua,"../../../../../image/countries/data/ae/flag.svg":$a,"../../../../../image/countries/data/af/flag.svg":Oa,"../../../../../image/countries/data/ag/flag.svg":Fa,"../../../../../image/countries/data/ai/flag.svg":Ka,"../../../../../image/countries/data/al/flag.svg":za,"../../../../../image/countries/data/am/flag.svg":Ha,"../../../../../image/countries/data/ao/flag.svg":Va,"../../../../../image/countries/data/aq/flag.svg":Ya,"../../../../../image/countries/data/ar/flag.svg":qa,"../../../../../image/countries/data/as/flag.svg":Wa,"../../../../../image/countries/data/at/flag.svg":Ja,"../../../../../image/countries/data/au/flag.svg":Za,"../../../../../image/countries/data/aw/flag.svg":Xa,"../../../../../image/countries/data/az/flag.svg":Qa,"../../../../../image/countries/data/ba/flag.svg":ae,"../../../../../image/countries/data/bb/flag.svg":ee,"../../../../../image/countries/data/bd/flag.svg":te,"../../../../../image/countries/data/be/flag.svg":ie,"../../../../../image/countries/data/bf/flag.svg":se,"../../../../../image/countries/data/bg/flag.svg":ge,"../../../../../image/countries/data/bh/flag.svg":ne,"../../../../../image/countries/data/bi/flag.svg":oe,"../../../../../image/countries/data/bj/flag.svg":re,"../../../../../image/countries/data/bm/flag.svg":le,"../../../../../image/countries/data/bn/flag.svg":ce,"../../../../../image/countries/data/bo/flag.svg":de,"../../../../../image/countries/data/br/flag.svg":me,"../../../../../image/countries/data/bs/flag.svg":ue,"../../../../../image/countries/data/bt/flag.svg":_e,"../../../../../image/countries/data/bv/flag.svg":ve,"../../../../../image/countries/data/bw/flag.svg":fe,"../../../../../image/countries/data/by/flag.svg":pe,"../../../../../image/countries/data/bz/flag.svg":he,"../../../../../image/countries/data/ca/flag.svg":be,"../../../../../image/countries/data/cc/flag.svg":ye,"../../../../../image/countries/data/cd/flag.svg":ke,"../../../../../image/countries/data/cf/flag.svg":Ae,"../../../../../image/countries/data/cg/flag.svg":Ce,"../../../../../image/countries/data/ch/flag.svg":xe,"../../../../../image/countries/data/ci/flag.svg":Ee,"../../../../../image/countries/data/ck/flag.svg":Le,"../../../../../image/countries/data/cl/flag.svg":we,"../../../../../image/countries/data/cm/flag.svg":Se,"../../../../../image/countries/data/cn/flag.svg":Ne,"../../../../../image/countries/data/co/flag.svg":Be,"../../../../../image/countries/data/cr/flag.svg":Ge,"../../../../../image/countries/data/cu/flag.svg":Me,"../../../../../image/countries/data/cv/flag.svg":Te,"../../../../../image/countries/data/cw/flag.svg":Re,"../../../../../image/countries/data/cx/flag.svg":Pe,"../../../../../image/countries/data/cy/flag.svg":Ie,"../../../../../image/countries/data/cz/flag.svg":je,"../../../../../image/countries/data/de/flag.svg":De,"../../../../../image/countries/data/dj/flag.svg":Ue,"../../../../../image/countries/data/dk/flag.svg":$e,"../../../../../image/countries/data/dm/flag.svg":Oe,"../../../../../image/countries/data/do/flag.svg":Fe,"../../../../../image/countries/data/dz/flag.svg":Ke,"../../../../../image/countries/data/ec/flag.svg":ze,"../../../../../image/countries/data/ee/flag.svg":He,"../../../../../image/countries/data/eg/flag.svg":Ve,"../../../../../image/countries/data/eh/flag.svg":Ye,"../../../../../image/countries/data/er/flag.svg":qe,"../../../../../image/countries/data/es/flag.svg":We,"../../../../../image/countries/data/et/flag.svg":Je,"../../../../../image/countries/data/fi/flag.svg":Ze,"../../../../../image/countries/data/fj/flag.svg":Xe,"../../../../../image/countries/data/fk/flag.svg":Qe,"../../../../../image/countries/data/fm/flag.svg":at,"../../../../../image/countries/data/fo/flag.svg":et,"../../../../../image/countries/data/fr/flag.svg":tt,"../../../../../image/countries/data/ga/flag.svg":it,"../../../../../image/countries/data/gb/flag.svg":st,"../../../../../image/countries/data/gd/flag.svg":gt,"../../../../../image/countries/data/ge/flag.svg":nt,"../../../../../image/countries/data/gf/flag.svg":ot,"../../../../../image/countries/data/gg/flag.svg":rt,"../../../../../image/countries/data/gh/flag.svg":lt,"../../../../../image/countries/data/gi/flag.svg":ct,"../../../../../image/countries/data/gl/flag.svg":dt,"../../../../../image/countries/data/gm/flag.svg":mt,"../../../../../image/countries/data/gn/flag.svg":ut,"../../../../../image/countries/data/gp/flag.svg":_t,"../../../../../image/countries/data/gq/flag.svg":vt,"../../../../../image/countries/data/gr/flag.svg":ft,"../../../../../image/countries/data/gs/flag.svg":pt,"../../../../../image/countries/data/gt/flag.svg":ht,"../../../../../image/countries/data/gu/flag.svg":bt,"../../../../../image/countries/data/gw/flag.svg":yt,"../../../../../image/countries/data/gy/flag.svg":kt,"../../../../../image/countries/data/gz/flag.svg":At,"../../../../../image/countries/data/hk/flag.svg":Ct,"../../../../../image/countries/data/hm/flag.svg":xt,"../../../../../image/countries/data/hn/flag.svg":Et,"../../../../../image/countries/data/hr/flag.svg":Lt,"../../../../../image/countries/data/ht/flag.svg":wt,"../../../../../image/countries/data/hu/flag.svg":St,"../../../../../image/countries/data/id/flag.svg":Nt,"../../../../../image/countries/data/ie/flag.svg":Bt,"../../../../../image/countries/data/il/flag.svg":Gt,"../../../../../image/countries/data/im/flag.svg":Mt,"../../../../../image/countries/data/in/flag.svg":Tt,"../../../../../image/countries/data/io/flag.svg":Rt,"../../../../../image/countries/data/iq/flag.svg":Pt,"../../../../../image/countries/data/ir/flag.svg":It,"../../../../../image/countries/data/is/flag.svg":jt,"../../../../../image/countries/data/it/flag.svg":Dt,"../../../../../image/countries/data/je/flag.svg":Ut,"../../../../../image/countries/data/jm/flag.svg":$t,"../../../../../image/countries/data/jo/flag.svg":Ot,"../../../../../image/countries/data/jp/flag.svg":Ft,"../../../../../image/countries/data/ke/flag.svg":Kt,"../../../../../image/countries/data/kg/flag.svg":zt,"../../../../../image/countries/data/kh/flag.svg":Ht,"../../../../../image/countries/data/ki/flag.svg":Vt,"../../../../../image/countries/data/km/flag.svg":Yt,"../../../../../image/countries/data/kn/flag.svg":qt,"../../../../../image/countries/data/kp/flag.svg":Wt,"../../../../../image/countries/data/kr/flag.svg":Jt,"../../../../../image/countries/data/kw/flag.svg":Zt,"../../../../../image/countries/data/ky/flag.svg":Xt,"../../../../../image/countries/data/kz/flag.svg":Qt,"../../../../../image/countries/data/la/flag.svg":ai,"../../../../../image/countries/data/lb/flag.svg":ei,"../../../../../image/countries/data/lc/flag.svg":ti,"../../../../../image/countries/data/li/flag.svg":ii,"../../../../../image/countries/data/lk/flag.svg":si,"../../../../../image/countries/data/lr/flag.svg":gi,"../../../../../image/countries/data/ls/flag.svg":ni,"../../../../../image/countries/data/lt/flag.svg":oi,"../../../../../image/countries/data/lu/flag.svg":ri,"../../../../../image/countries/data/lv/flag.svg":li,"../../../../../image/countries/data/ly/flag.svg":ci,"../../../../../image/countries/data/ma/flag.svg":di,"../../../../../image/countries/data/mc/flag.svg":mi,"../../../../../image/countries/data/md/flag.svg":ui,"../../../../../image/countries/data/me/flag.svg":_i,"../../../../../image/countries/data/mg/flag.svg":vi,"../../../../../image/countries/data/mh/flag.svg":fi,"../../../../../image/countries/data/mk/flag.svg":pi,"../../../../../image/countries/data/ml/flag.svg":hi,"../../../../../image/countries/data/mm/flag.svg":bi,"../../../../../image/countries/data/mn/flag.svg":yi,"../../../../../image/countries/data/mo/flag.svg":ki,"../../../../../image/countries/data/mp/flag.svg":Ai,"../../../../../image/countries/data/mq/flag.svg":Ci,"../../../../../image/countries/data/mr/flag.svg":xi,"../../../../../image/countries/data/ms/flag.svg":Ei,"../../../../../image/countries/data/mt/flag.svg":Li,"../../../../../image/countries/data/mu/flag.svg":wi,"../../../../../image/countries/data/mv/flag.svg":Si,"../../../../../image/countries/data/mw/flag.svg":Ni,"../../../../../image/countries/data/mx/flag.svg":Bi,"../../../../../image/countries/data/my/flag.svg":Gi,"../../../../../image/countries/data/mz/flag.svg":Mi,"../../../../../image/countries/data/na/flag.svg":Ti,"../../../../../image/countries/data/nc/flag.svg":Ri,"../../../../../image/countries/data/ne/flag.svg":Pi,"../../../../../image/countries/data/nf/flag.svg":Ii,"../../../../../image/countries/data/ng/flag.svg":ji,"../../../../../image/countries/data/ni/flag.svg":Di,"../../../../../image/countries/data/nl/flag.svg":Ui,"../../../../../image/countries/data/no/flag.svg":$i,"../../../../../image/countries/data/np/flag.svg":Oi,"../../../../../image/countries/data/nr/flag.svg":Fi,"../../../../../image/countries/data/nu/flag.svg":Ki,"../../../../../image/countries/data/nz/flag.svg":zi,"../../../../../image/countries/data/om/flag.svg":Hi,"../../../../../image/countries/data/pa/flag.svg":Vi,"../../../../../image/countries/data/pe/flag.svg":Yi,"../../../../../image/countries/data/pf/flag.svg":qi,"../../../../../image/countries/data/pg/flag.svg":Wi,"../../../../../image/countries/data/ph/flag.svg":Ji,"../../../../../image/countries/data/pk/flag.svg":Zi,"../../../../../image/countries/data/pl/flag.svg":Xi,"../../../../../image/countries/data/pm/flag.svg":Qi,"../../../../../image/countries/data/pn/flag.svg":as,"../../../../../image/countries/data/pr/flag.svg":es,"../../../../../image/countries/data/ps/flag.svg":ts,"../../../../../image/countries/data/pt/flag.svg":is,"../../../../../image/countries/data/pw/flag.svg":ss,"../../../../../image/countries/data/py/flag.svg":gs,"../../../../../image/countries/data/qa/flag.svg":ns,"../../../../../image/countries/data/re/flag.svg":os,"../../../../../image/countries/data/ro/flag.svg":rs,"../../../../../image/countries/data/rs/flag.svg":ls,"../../../../../image/countries/data/ru/flag.svg":cs,"../../../../../image/countries/data/rw/flag.svg":ds,"../../../../../image/countries/data/sa/flag.svg":ms,"../../../../../image/countries/data/sb/flag.svg":us,"../../../../../image/countries/data/sc/flag.svg":_s,"../../../../../image/countries/data/sd/flag.svg":vs,"../../../../../image/countries/data/se/flag.svg":fs,"../../../../../image/countries/data/sg/flag.svg":ps,"../../../../../image/countries/data/sh/flag.svg":hs,"../../../../../image/countries/data/si/flag.svg":bs,"../../../../../image/countries/data/sj/flag.svg":ys,"../../../../../image/countries/data/sk/flag.svg":ks,"../../../../../image/countries/data/sl/flag.svg":As,"../../../../../image/countries/data/sm/flag.svg":Cs,"../../../../../image/countries/data/sn/flag.svg":xs,"../../../../../image/countries/data/so/flag.svg":Es,"../../../../../image/countries/data/sr/flag.svg":Ls,"../../../../../image/countries/data/ss/flag.svg":ws,"../../../../../image/countries/data/st/flag.svg":Ss,"../../../../../image/countries/data/sv/flag.svg":Ns,"../../../../../image/countries/data/sy/flag.svg":Bs,"../../../../../image/countries/data/sz/flag.svg":Gs,"../../../../../image/countries/data/tc/flag.svg":Ms,"../../../../../image/countries/data/td/flag.svg":Ts,"../../../../../image/countries/data/tf/flag.svg":Rs,"../../../../../image/countries/data/tg/flag.svg":Ps,"../../../../../image/countries/data/th/flag.svg":Is,"../../../../../image/countries/data/tj/flag.svg":js,"../../../../../image/countries/data/tk/flag.svg":Ds,"../../../../../image/countries/data/tl/flag.svg":Us,"../../../../../image/countries/data/tm/flag.svg":$s,"../../../../../image/countries/data/tn/flag.svg":Os,"../../../../../image/countries/data/to/flag.svg":Fs,"../../../../../image/countries/data/tr/flag.svg":Ks,"../../../../../image/countries/data/tt/flag.svg":zs,"../../../../../image/countries/data/tv/flag.svg":Hs,"../../../../../image/countries/data/tw/flag.svg":Vs,"../../../../../image/countries/data/tz/flag.svg":Ys,"../../../../../image/countries/data/ua/flag.svg":qs,"../../../../../image/countries/data/ug/flag.svg":Ws,"../../../../../image/countries/data/us/flag.svg":Js,"../../../../../image/countries/data/uy/flag.svg":Zs,"../../../../../image/countries/data/uz/flag.svg":Xs,"../../../../../image/countries/data/va/flag.svg":Qs,"../../../../../image/countries/data/vc/flag.svg":ag,"../../../../../image/countries/data/ve/flag.svg":eg,"../../../../../image/countries/data/vg/flag.svg":tg,"../../../../../image/countries/data/vi/flag.svg":ig,"../../../../../image/countries/data/vn/flag.svg":sg,"../../../../../image/countries/data/vu/flag.svg":gg,"../../../../../image/countries/data/wf/flag.svg":ng,"../../../../../image/countries/data/ws/flag.svg":og,"../../../../../image/countries/data/xk/flag.svg":rg,"../../../../../image/countries/data/ye/flag.svg":lg,"../../../../../image/countries/data/yt/flag.svg":cg,"../../../../../image/countries/data/za/flag.svg":dg,"../../../../../image/countries/data/zm/flag.svg":mg,"../../../../../image/countries/data/zw/flag.svg":ug})[`../../../../../image/countries/data/${(g=e.Alpha2Code)==null?void 0:g.toLowerCase()}/flag.svg`],self.location).href,parentRef:n}),a.createElement("span",null,e.language[v])))},qu=()=>{const e=C(),{spokenLanguage:t,countryOfToday:i}=k(({game:g})=>g),s=g=>{Lu([...t.guesses,g],i.languages)&&(A.success(G),e(tu())),t.guesses.length<8&&e(iu({guesses:[...new Set([...t.guesses,g])]}))},n=m.useMemo(()=>{var g;return(g=i.languages_choices)==null?void 0:g.map((o,r)=>({...o,label:"ABCDEFGHIJKLMNOP"[r],mode:bu(o.language,t==null?void 0:t.guesses,i==null?void 0:i.languages,t.completed)}))},[i,t]);return a.createElement(m.Fragment,null,a.createElement("div",{className:"relative mt-6 flex w-full flex-row items-center justify-start text-center font-bold text-slate-800 dark:text-slate-100 "},a.createElement(pg,{className:"mr-2 w-24",src:new URL("/build/assets/language-4d9a82c9.svg",self.location).href}),Bm.replaceAll("<country>",i==null?void 0:i.name)),a.createElement("div",{className:"my-4 grid w-full grid-cols-3 items-center gap-2"},n==null?void 0:n.map((g,o)=>a.createElement(b.div,{key:`svg-button-${o}`,initial:{opacity:0,translateX:20,translateY:-20},animate:{opacity:1,translateX:0,translateY:0},transition:{delay:o*.1}},a.createElement(Yu,{item:g,idx:o,completed:t.completed,handleGuess:s})))))},Wu=["Afghani","Ariary","Baht","Balboa","Belarusian ruble","Birr","Bolivar Soberano","Boliviano","Cedi","Colon","Cordoba","Dalasi","Denar","Dinar","Dirham","Dobra","Dollar","Dong","Dram","Escudo","Euro","Florin","Forint","Franc","Gourde","Guarani","Hryvnia","Kina","Kip","Koruna","Krona","Krone","Kwacha","Kwanza","Kyat","Lari","Lek","Lempira","Leone","Leu","Lev","Lilangeni","Lira","Loti","Manat","Marka","Metical","Naira","Nakfa","Ngultrum","None","Ouguiya","Pa'anga","Pataca","Peso","Pound","Pula","Quetzal","Rand","Real","Rial","Riels","Ringgit","Riyal","Ruble","Rufiyaa","Rupee","Rupiah","Shekel","Shilling","Sol","Som","Somoni","Taka","Tala","Tenge","Tugrik","United States Dollar","Vatu","Won","Yen","Yuan Renminbi","Zloty"],Ju={AED:"Green",AFN:"Red",ALL:"Blue",AMD:"Brown",ANG:"Red",AOA:"Blue",AQD:"Blue",ARS:"Blue",AUD:"Blue",AWG:"Green",AZN:"Blue",BAM:"Blue",BBD:"Green",BDT:"Red",BGN:"Red",BHD:"Red",BIF:"Blue",BMD:"Green",BND:"Yellow",BOB:"Green",BRL:"Green",BSD:"Green",BTN:"Green",BWP:"Green",BYN:"Blue",BZD:"Green",CAD:"Blue",CDF:"Blue",CHF:"Red",CLP:"Blue",CNY:"Red",COP:"Blue",CRC:"Blue",CUP:"Green",CVE:"Green",CZK:"Blue",DJF:"Blue",DKK:"Red",DOP:"Green",DZD:"Green",EGP:"Green",ERN:"Green",ETB:"Green",EUR:"Blue",FJD:"Red",FKP:"Blue",GBP:"Green",GEL:"Red",GHS:"Red",GIP:"Red",GMD:"Red",GNF:"Green",GTQ:"Green",GYD:"Green",HKD:"Red",HNL:"Red",HTG:"Blue",HUF:"Red",IDR:"Red",ILS:"Red",INR:"Orange",IQD:"Blue",IRR:"Red",ISK:"Red",JEP:"Red",JMD:"Green",JOD:"Red",JPY:"Blue",KES:"Green",KGS:"Red",KHR:"Red",KMF:"Green",KPW:"Blue",KRW:"Green",KWD:"Red",KYD:"Red",KZT:"Blue",LAK:"Green",LBP:"Red",LKR:"Red",LRD:"Green",LSL:"Green",LYD:"Red",MAD:"Red",MDL:"Green",MGA:"Green",MKD:"Red",MMK:"Green",MNT:"Green",MOP:"Green",MRU:"Green",MUR:"Red",MVR:"Red",MWK:"Blue",MXN:"Blue",MYR:"Green",MZN:"Green",NAD:"Green",NGN:"Green",NIO:"Blue",NOK:"Red",NPR:"Red",NZD:"Blue",OMR:"Red",PAB:"Green",PEN:"Red",PGK:"Red",PHP:"Red",PKR:"Green",PLN:"Green",PYG:"Blue",QAR:"Green",RON:"Red",RSD:"Red",RUB:"Red",RWF:"Green",SAR:"Green",SBD:"Green",SCR:"Green",SDG:"Green",SEK:"Red",SGD:"Red",SHP:"Blue",SLL:"Green",SOS:"Green",SRD:"Green",SSP:"Blue",STN:"Green",SYP:"Green",SZL:"Green",THB:"Green",TJS:"Green",TMT:"Green",TND:"Green",TOP:"Green",TRY:"Green",TTD:"Green",TWD:"Green",TZS:"Green",UAH:"Blue",UGX:"Green",USD:"Green",UYU:"Green",UZS:"Green",VES:"Green",VND:"Red",VUV:"Green",WST:"Red",XAF:"Blue",XCD:"Green",XOF:"Blue",XPF:"Blue",YER:"Green",ZAR:"Green",ZMW:"Green",ZWL:"Blue"},Zu=()=>{const e=C(),{population:t,countryOfToday:i}=k(({game:g})=>g),s=g=>{g===i.quiz.answer&&(A.success(G),e(su())),t.guesses.length<4&&e(gu({guesses:[...new Set([...t.guesses,g])]}))},n=m.useMemo(()=>{var g,o,r,c;return[(g=i==null?void 0:i.quiz)==null?void 0:g.choice_1,(o=i==null?void 0:i.quiz)==null?void 0:o.choice_2,(r=i==null?void 0:i.quiz)==null?void 0:r.choice_3,(c=i==null?void 0:i.quiz)==null?void 0:c.choice_4].map((l,d)=>{var _;return{value:l,label:"ABCDEFGHIJKLMNOP"[d],mode:Kg(l,t==null?void 0:t.guesses,(_=i==null?void 0:i.quiz)==null?void 0:_.answer,t.completed)}})},[i,t]);return a.createElement(m.Fragment,null,a.createElement("span",{className:"relative mt-6 flex w-full flex-row items-center justify-start text-center font-bold text-slate-800 dark:text-slate-100 "},a.createElement(pg,{className:"mr-2 w-24",src:new URL("/build/assets/people-b33c42e5.svg",self.location).href}),Nm.replaceAll("<country>",i==null?void 0:i.name)),a.createElement("div",{className:"my-4 grid w-full grid-cols-2 gap-2"},n==null?void 0:n.map((g,o)=>a.createElement(b.div,{key:`svg-button-${o}`,initial:{opacity:0,translateY:-20},animate:{opacity:1,translateY:0},transition:{delay:o*.1}},a.createElement(x,{className:`transition-color flex min-h-24 w-full cursor-pointer flex-row items-center justify-between overflow-hidden border-2 border-slate-300 bg-slate-200 px-4 font-bold dark:border-slate-400 dark:bg-slate-600 ${[" !dark:bg-majky-700 !dark:border-majky-500 !border-majky-600 !bg-majky-200 !text-majky-600 dark:!bg-majky-950 "," !dark:bg-red-600 !dark:border-red-400 !border-red-600 !bg-red-200 !text-red-600 dark:!bg-red-950 "," !dark:bg-blue-600 !dark:border-blue-400 !border-blue-600 !bg-blue-200 !text-blue-600 dark:!bg-blue-950 "][g.mode]} select-none rounded-md hover:mr-0 hover:bg-blue-600 hover:font-bold hover:text-slate-100 dark:hover:!bg-blue-950 ${(t.completed||g.mode!==-1)&&" pointer-events-none "} select-none`,onClick:()=>{s(g.value)}},a.createElement("span",{className:"relative h-full"},a.createElement("img",{className:"h-full w-12 bg-transparent object-contain",src:new URL(Object.assign({"../../../../../image/countries/population1.png":xd,"../../../../../image/countries/population2.png":Ed,"../../../../../image/countries/population3.png":Ld,"../../../../../image/countries/population4.png":wd})[`../../../../../image/countries/population${o+1}.png`],self.location).href,alt:"population"}),a.createElement("span",{className:"absolute left-1/2 top-1/2 -ml-2 -mt-4 text-2xl text-majky-600"},g.label)),v==="de"?g.value.replaceAll("million",Fm):g.value)))),t.completed&&a.createElement("div",{className:"my-1 flex w-full flex-col items-center justify-center"},a.createElement("p",{className:"my-0 flex w-auto flex-row items-center justify-center space-x-3 rounded-lg border border-slate-500 p-2 px-10 text-base"},a.createElement("span",null,"Population:"),a.createElement("span",{className:"text-xl font-bold"},T(i.quiz.population)))))},Xu=()=>{const e=C(),{currency:t,countryOfToday:i}=k(({game:g})=>g),s=g=>{g===i.currency_name&&(A.success(G),e(nu())),t.guesses.length<4&&e(ou({guesses:[...new Set([...t.guesses,g])]}))},n=m.useMemo(()=>{var g;return(g=i==null?void 0:i.currency_choices)==null?void 0:g.map((o,r)=>({value:o,label:"ABCDEFGHIJKLMNOP"[r],mode:Kg(o,t==null?void 0:t.guesses,i==null?void 0:i.currency_name,t.completed)}))},[i,t]);return a.createElement(m.Fragment,null,a.createElement("span",{className:"relative mt-6 flex w-full flex-row items-center justify-start text-center font-bold text-slate-800 dark:text-slate-100 "},a.createElement(pg,{className:"mr-2 w-24",src:new URL("/build/assets/currency-eea8c7ee.svg",self.location).href}),Lm.replaceAll("<country>",i==null?void 0:i.name)),a.createElement("div",{className:"my-4 grid w-full grid-cols-2 gap-2"},n==null?void 0:n.map((g,o)=>a.createElement(b.div,{key:`svg-button-${o}`,initial:{opacity:0,translateX:20,translateY:20},animate:{opacity:1,translateX:0,translateY:0},transition:{delay:o*.1}},a.createElement(x,{className:`transition-color min-h-24 w-full cursor-pointer items-start justify-center overflow-hidden border-2 border-slate-300 bg-slate-200 p-2 pl-4 pr-2 font-bold dark:border-slate-400 dark:bg-slate-600 ${[" !dark:bg-majky-700 !dark:border-majky-500 !border-majky-600 !bg-majky-200 !text-majky-600 dark:!bg-majky-950 "," !dark:bg-red-600 !dark:border-red-400 !border-red-600 !bg-red-200 !text-red-600 dark:!bg-red-950 "," !dark:bg-blue-600 !dark:border-blue-400 !border-blue-600 !bg-blue-200 !text-blue-600 dark:!bg-blue-950 "][g.mode]} select-none rounded-md hover:mr-0 hover:bg-blue-600 hover:font-bold hover:text-slate-100 dark:hover:!bg-blue-950 ${(t.completed||g.mode!==-1)&&" pointer-events-none "} select-none`,onClick:()=>{s(g.value)}},g.value)))),t.completed&&a.createElement("div",{className:"my-1 flex w-full flex-col items-center justify-center"},a.createElement("p",{className:"my-0 flex w-auto flex-row items-center justify-center space-x-3 rounded-lg border border-slate-500 p-2 px-10 text-base"},a.createElement("span",null,a.createElement("img",{className:"md:w-18 w-12",src:new URL(Object.assign({"../../../../../image/countries/money/blue.png":Sd,"../../../../../image/countries/money/brown.png":Nd,"../../../../../image/countries/money/green.png":Bd,"../../../../../image/countries/money/orange.png":Gd,"../../../../../image/countries/money/red.png":Md,"../../../../../image/countries/money/yellow.png":Td})[`../../../../../image/countries/money/${Ju[i==null?void 0:i.currency_code].toLowerCase()}.png`],self.location).href,alt:"money"})),a.createElement("span",{className:"text-xl font-bold"},`${i==null?void 0:i.currency_name}(${i==null?void 0:i.currency_code})`))))},Qu=({cityName:e,completed:t=!1,correctAnswer:i,showAnswer:s})=>{const n=yu(e,i,t);return a.createElement(b.div,{whileHover:{scale:1.05},className:`transition-color mr-4 w-full cursor-pointer items-start justify-center overflow-hidden rounded-r-xl border-2 border-slate-300 bg-slate-200 p-2 pl-4 pr-2 text-left shadow dark:border-slate-400 dark:bg-slate-600 ${[" !dark:bg-majky-700 !dark:border-majky-500 pointer-events-none !border-majky-600 !bg-majky-200 !text-majky-600 dark:!bg-majky-950 "," !dark:bg-red-600 !dark:border-red-400 pointer-events-none !border-red-600 !bg-red-200 !text-red-600 dark:!bg-red-950 "][s?0:n]} select-none hover:border-blue-600 hover:bg-blue-200 hover:font-bold hover:text-blue-800 dark:hover:!bg-blue-950 hover:dark:text-slate-100 ${t&&"pointer-events-none"}`},t&&s?i.name:e)},vg=({id:e,checked:t,onChange:i})=>a.createElement("div",{className:"inline-flex items-center"},a.createElement("div",{className:"relative inline-block h-4 w-8 cursor-pointer rounded-full border"},a.createElement("input",{id:e,type:"checkbox",className:"peer absolute h-4 w-8 cursor-pointer appearance-none rounded-full bg-majky-100 transition-colors duration-300 checked:bg-majky-500 peer-checked:border-majky-500 peer-checked:before:bg-majky-500",checked:t,onChange:i}),a.createElement("label",{htmlFor:e,className:"before:content[''] before:bg-blue-slate-500 absolute -left-1 top-2/4 h-5 w-5 -translate-y-2/4 cursor-pointer rounded-full border border-majky-100 bg-white shadow-md transition-all duration-300 before:absolute before:left-2/4 before:top-2/4 before:block before:h-10 before:w-10 before:-translate-x-2/4 before:-translate-y-2/4 before:rounded-full before:opacity-0 before:transition-opacity hover:before:opacity-10 peer-checked:translate-x-full peer-checked:border-majky-500 peer-checked:before:bg-majky-500"},a.createElement("div",{className:"left-2/4 top-2/4 inline-block -translate-x-2/4 -translate-y-2/4 rounded-full p-5","data-ripple-dark":"true"})))),a0=({index:e,value:t,max:i})=>a.createElement("div",{className:`h-full w-40 rounded-l-xl border border-white py-1 pl-4 font-bold leading-10 text-slate-100 dark:bg-opacity-20 ${["bg-[#1a9850] dark:border-[#1a9850] dark:text-[#1a9850]","bg-[#50b15e] dark:border-[#50b15e] dark:text-[#50b15e]","bg-[#7fc865] dark:border-[#7fc865] dark:text-[#7fc865]","bg-[#abdb6d] dark:border-[#abdb6d] dark:text-[#abdb6d]","bg-[#ceea84] dark:border-[#ceea84] dark:text-[#ceea84]","bg-[#ebea8b] dark:border-[#ebea8b] dark:text-[#ebea8b]","bg-[#fdd682] dark:border-[#fdd682] dark:text-[#fdd682]","bg-[#fdb366] dark:border-[#fdb366] dark:text-[#fdb366]","bg-[#f78750] dark:border-[#f78750] dark:text-[#f78750]","bg-[#eb5a3a] dark:border-[#eb5a3a] dark:text-[#eb5a3a]","bg-[#ff0000] dark:border-[#ff0000] dark:text-[#ff0000]","bg-[#ff0000] dark:border-[#ff0000] dark:text-[#ff0000]"][Math.floor(t*10/i)]}`},"ABCDEFGHIJKLMNOPQRSTUVWXYZ"[e]+". "+t),e0=()=>{var r;const e=C(),{countryOfToday:t}=k(({game:c})=>c),{completed:i,guesses:s}=k(({game:c})=>c.populousCites),[n,g]=m.useState(!1),o=()=>{var l;((l=t==null?void 0:t.cities)==null?void 0:l.reduce((d,_,p)=>d&&_.name===s[p],!0))&&A.success(G),e(ru())};return a.createElement(m.Fragment,null,a.createElement("span",{className:"relative mt-6 flex w-full flex-row items-center justify-start font-bold text-slate-800 dark:text-slate-100 "},a.createElement(pg,{className:"mr-2 w-24",src:new URL("/build/assets/people-b33c42e5.svg",self.location).href}),"Arrange the cities in order to the population."),a.createElement("div",{className:"my-4 flex w-full flex-row"},a.createElement("div",null,(r=t==null?void 0:t.cities)==null?void 0:r.map((c,l)=>a.createElement(b.div,{initial:{opacity:0,translateX:-100},animate:{opacity:1,translateX:0},transition:{delay:l*.1},key:`city-label-${c==null?void 0:c.name}`,className:" h-12 "},a.createElement(a0,{index:l,value:c.population,max:t==null?void 0:t.cities[0].population})))),a.createElement("div",{className:"my-0.5 grow"},a.createElement(Xg.Group,{axis:"y",onReorder:c=>{e(lu({guesses:c}))},values:s},s.map((c,l)=>a.createElement(b.div,{initial:{opacity:0,translateX:100},animate:{opacity:1,translateX:0},transition:{delay:l*.1},key:`city-item-${c}`,className:" h-12 "},a.createElement(Xg.Item,{value:c,id:c},a.createElement(Qu,{cityName:c,completed:i,correctAnswer:t==null?void 0:t.cities[l],showAnswer:n}))))))),i?a.createElement("div",{className:"flex px-4 py-2"},a.createElement("label",{className:"mr-4 flex-1",htmlFor:"switch-showAnswer"},Am,":"),a.createElement(vg,{id:"switch-showAnswer",onChange:c=>{g(l=>!l)},checked:n})):a.createElement(x,{className:"text-md flex h-10 w-full items-center justify-center rounded-lg bg-majky-600 px-8 py-1 font-semibold text-white hover:bg-majky-700 active:bg-majky-700 md:w-fit",onClick:o},a.createElement("span",null,Mg)))},t0=()=>{var r;const e=C(),{settings:t}=k(({user:c})=>c),{area:i,countryOfToday:s}=k(({game:c})=>c),n=c=>{c===g.answer&&(A.success(G),e(cu())),i.guesses.length<4&&e(du({guesses:[...new Set([...i.guesses,c])]}))},g=m.useMemo(()=>wu(s==null?void 0:s.area,t==null?void 0:t.distanceUnit),[s==null?void 0:s.area,t==null?void 0:t.distanceUnit]),o=m.useMemo(()=>{var c;return(c=g==null?void 0:g.options)==null?void 0:c.map((l,d)=>({value:l,label:"ABCDEFGHIJKLMNOP"[d],mode:Kg(l,i==null?void 0:i.guesses,g==null?void 0:g.answer,i.completed)}))},[g,i]);return a.createElement(m.Fragment,null,a.createElement("span",{className:"relative mt-4 w-full text-center font-bold text-slate-800 dark:text-slate-100 "},xm.replaceAll("<country>",s==null?void 0:s.name)),a.createElement("div",{className:"w-full"},a.createElement(b.div,{initial:{scale:.8},animate:{scale:1},className:"relative flex h-48 w-full transform overflow-hidden rounded-lg p-4 transition-transform duration-500"},a.createElement("img",{className:"pointer-events-none m-auto h-full select-none transition-all duration-700 ease-in dark:invert",alt:"country to guess",height:"208",width:"208",src:new URL(Object.assign({"../../../../../image/countries/data/ad/map.svg":nn,"../../../../../image/countries/data/ae/map.svg":on,"../../../../../image/countries/data/af/map.svg":rn,"../../../../../image/countries/data/ag/map.svg":ln,"../../../../../image/countries/data/ai/map.svg":cn,"../../../../../image/countries/data/al/map.svg":dn,"../../../../../image/countries/data/am/map.svg":mn,"../../../../../image/countries/data/ao/map.svg":un,"../../../../../image/countries/data/aq/map.svg":_n,"../../../../../image/countries/data/ar/map.svg":vn,"../../../../../image/countries/data/as/map.svg":fn,"../../../../../image/countries/data/at/map.svg":pn,"../../../../../image/countries/data/au/map.svg":hn,"../../../../../image/countries/data/aw/map.svg":bn,"../../../../../image/countries/data/az/map.svg":yn,"../../../../../image/countries/data/ba/map.svg":kn,"../../../../../image/countries/data/bb/map.svg":An,"../../../../../image/countries/data/bd/map.svg":Cn,"../../../../../image/countries/data/be/map.svg":xn,"../../../../../image/countries/data/bf/map.svg":En,"../../../../../image/countries/data/bg/map.svg":Ln,"../../../../../image/countries/data/bh/map.svg":wn,"../../../../../image/countries/data/bi/map.svg":Sn,"../../../../../image/countries/data/bj/map.svg":Nn,"../../../../../image/countries/data/bm/map.svg":Bn,"../../../../../image/countries/data/bn/map.svg":Gn,"../../../../../image/countries/data/bo/map.svg":Mn,"../../../../../image/countries/data/br/map.svg":Tn,"../../../../../image/countries/data/bs/map.svg":Rn,"../../../../../image/countries/data/bt/map.svg":Pn,"../../../../../image/countries/data/bv/map.svg":In,"../../../../../image/countries/data/bw/map.svg":jn,"../../../../../image/countries/data/by/map.svg":Dn,"../../../../../image/countries/data/bz/map.svg":Un,"../../../../../image/countries/data/ca/map.svg":$n,"../../../../../image/countries/data/cc/map.svg":On,"../../../../../image/countries/data/cd/map.svg":Fn,"../../../../../image/countries/data/cf/map.svg":Kn,"../../../../../image/countries/data/cg/map.svg":zn,"../../../../../image/countries/data/ch/map.svg":Hn,"../../../../../image/countries/data/ci/map.svg":Vn,"../../../../../image/countries/data/ck/map.svg":Yn,"../../../../../image/countries/data/cl/map.svg":qn,"../../../../../image/countries/data/cm/map.svg":Wn,"../../../../../image/countries/data/cn/map.svg":Jn,"../../../../../image/countries/data/co/map.svg":Zn,"../../../../../image/countries/data/cr/map.svg":Xn,"../../../../../image/countries/data/cu/map.svg":Qn,"../../../../../image/countries/data/cv/map.svg":ao,"../../../../../image/countries/data/cw/map.svg":eo,"../../../../../image/countries/data/cx/map.svg":to,"../../../../../image/countries/data/cy/map.svg":io,"../../../../../image/countries/data/cz/map.svg":so,"../../../../../image/countries/data/de/map.svg":go,"../../../../../image/countries/data/dj/map.svg":no,"../../../../../image/countries/data/dk/map.svg":oo,"../../../../../image/countries/data/dm/map.svg":ro,"../../../../../image/countries/data/do/map.svg":lo,"../../../../../image/countries/data/dz/map.svg":co,"../../../../../image/countries/data/ec/map.svg":mo,"../../../../../image/countries/data/ee/map.svg":uo,"../../../../../image/countries/data/eg/map.svg":_o,"../../../../../image/countries/data/eh/map.svg":vo,"../../../../../image/countries/data/er/map.svg":fo,"../../../../../image/countries/data/es/map.svg":po,"../../../../../image/countries/data/et/map.svg":ho,"../../../../../image/countries/data/fi/map.svg":bo,"../../../../../image/countries/data/fj/map.svg":yo,"../../../../../image/countries/data/fk/map.svg":ko,"../../../../../image/countries/data/fm/map.svg":Ao,"../../../../../image/countries/data/fo/map.svg":Co,"../../../../../image/countries/data/fr/map.svg":xo,"../../../../../image/countries/data/ga/map.svg":Eo,"../../../../../image/countries/data/gb/map.svg":Lo,"../../../../../image/countries/data/gd/map.svg":wo,"../../../../../image/countries/data/ge/map.svg":So,"../../../../../image/countries/data/gf/map.svg":No,"../../../../../image/countries/data/gg/map.svg":Bo,"../../../../../image/countries/data/gh/map.svg":Go,"../../../../../image/countries/data/gi/map.svg":Mo,"../../../../../image/countries/data/gl/map.svg":To,"../../../../../image/countries/data/gm/map.svg":Ro,"../../../../../image/countries/data/gn/map.svg":Po,"../../../../../image/countries/data/gp/map.svg":Io,"../../../../../image/countries/data/gq/map.svg":jo,"../../../../../image/countries/data/gr/map.svg":Do,"../../../../../image/countries/data/gs/map.svg":Uo,"../../../../../image/countries/data/gt/map.svg":$o,"../../../../../image/countries/data/gu/map.svg":Oo,"../../../../../image/countries/data/gw/map.svg":Fo,"../../../../../image/countries/data/gy/map.svg":Ko,"../../../../../image/countries/data/gz/map.svg":zo,"../../../../../image/countries/data/hk/map.svg":Ho,"../../../../../image/countries/data/hm/map.svg":Vo,"../../../../../image/countries/data/hn/map.svg":Yo,"../../../../../image/countries/data/hr/map.svg":qo,"../../../../../image/countries/data/ht/map.svg":Wo,"../../../../../image/countries/data/hu/map.svg":Jo,"../../../../../image/countries/data/id/map.svg":Zo,"../../../../../image/countries/data/ie/map.svg":Xo,"../../../../../image/countries/data/il/map.svg":Qo,"../../../../../image/countries/data/im/map.svg":ar,"../../../../../image/countries/data/in/map.svg":er,"../../../../../image/countries/data/io/map.svg":tr,"../../../../../image/countries/data/iq/map.svg":ir,"../../../../../image/countries/data/ir/map.svg":sr,"../../../../../image/countries/data/is/map.svg":gr,"../../../../../image/countries/data/it/map.svg":nr,"../../../../../image/countries/data/je/map.svg":or,"../../../../../image/countries/data/jm/map.svg":rr,"../../../../../image/countries/data/jo/map.svg":lr,"../../../../../image/countries/data/jp/map.svg":cr,"../../../../../image/countries/data/ke/map.svg":dr,"../../../../../image/countries/data/kg/map.svg":mr,"../../../../../image/countries/data/kh/map.svg":ur,"../../../../../image/countries/data/ki/map.svg":_r,"../../../../../image/countries/data/km/map.svg":vr,"../../../../../image/countries/data/kn/map.svg":fr,"../../../../../image/countries/data/kp/map.svg":pr,"../../../../../image/countries/data/kr/map.svg":hr,"../../../../../image/countries/data/kw/map.svg":br,"../../../../../image/countries/data/ky/map.svg":yr,"../../../../../image/countries/data/kz/map.svg":kr,"../../../../../image/countries/data/la/map.svg":Ar,"../../../../../image/countries/data/lb/map.svg":Cr,"../../../../../image/countries/data/lc/map.svg":xr,"../../../../../image/countries/data/li/map.svg":Er,"../../../../../image/countries/data/lk/map.svg":Lr,"../../../../../image/countries/data/lr/map.svg":wr,"../../../../../image/countries/data/ls/map.svg":Sr,"../../../../../image/countries/data/lt/map.svg":Nr,"../../../../../image/countries/data/lu/map.svg":Br,"../../../../../image/countries/data/lv/map.svg":Gr,"../../../../../image/countries/data/ly/map.svg":Mr,"../../../../../image/countries/data/ma/map.svg":Tr,"../../../../../image/countries/data/mc/map.svg":Rr,"../../../../../image/countries/data/md/map.svg":Pr,"../../../../../image/countries/data/me/map.svg":Ir,"../../../../../image/countries/data/mg/map.svg":jr,"../../../../../image/countries/data/mh/map.svg":Dr,"../../../../../image/countries/data/mk/map.svg":Ur,"../../../../../image/countries/data/ml/map.svg":$r,"../../../../../image/countries/data/mm/map.svg":Or,"../../../../../image/countries/data/mn/map.svg":Fr,"../../../../../image/countries/data/mo/map.svg":Kr,"../../../../../image/countries/data/mp/map.svg":zr,"../../../../../image/countries/data/mq/map.svg":Hr,"../../../../../image/countries/data/mr/map.svg":Vr,"../../../../../image/countries/data/ms/map.svg":Yr,"../../../../../image/countries/data/mt/map.svg":qr,"../../../../../image/countries/data/mu/map.svg":Wr,"../../../../../image/countries/data/mv/map.svg":Jr,"../../../../../image/countries/data/mw/map.svg":Zr,"../../../../../image/countries/data/mx/map.svg":Xr,"../../../../../image/countries/data/my/map.svg":Qr,"../../../../../image/countries/data/mz/map.svg":al,"../../../../../image/countries/data/na/map.svg":el,"../../../../../image/countries/data/nc/map.svg":tl,"../../../../../image/countries/data/ne/map.svg":il,"../../../../../image/countries/data/nf/map.svg":sl,"../../../../../image/countries/data/ng/map.svg":gl,"../../../../../image/countries/data/ni/map.svg":nl,"../../../../../image/countries/data/nl/map.svg":ol,"../../../../../image/countries/data/no/map.svg":rl,"../../../../../image/countries/data/np/map.svg":ll,"../../../../../image/countries/data/nr/map.svg":cl,"../../../../../image/countries/data/nu/map.svg":dl,"../../../../../image/countries/data/nz/map.svg":ml,"../../../../../image/countries/data/om/map.svg":ul,"../../../../../image/countries/data/pa/map.svg":_l,"../../../../../image/countries/data/pe/map.svg":vl,"../../../../../image/countries/data/pf/map.svg":fl,"../../../../../image/countries/data/pg/map.svg":pl,"../../../../../image/countries/data/ph/map.svg":hl,"../../../../../image/countries/data/pk/map.svg":bl,"../../../../../image/countries/data/pl/map.svg":yl,"../../../../../image/countries/data/pm/map.svg":kl,"../../../../../image/countries/data/pn/map.svg":Al,"../../../../../image/countries/data/pr/map.svg":Cl,"../../../../../image/countries/data/ps/map.svg":xl,"../../../../../image/countries/data/pt/map.svg":El,"../../../../../image/countries/data/pw/map.svg":Ll,"../../../../../image/countries/data/py/map.svg":wl,"../../../../../image/countries/data/qa/map.svg":Sl,"../../../../../image/countries/data/re/map.svg":Nl,"../../../../../image/countries/data/ro/map.svg":Bl,"../../../../../image/countries/data/rs/map.svg":Gl,"../../../../../image/countries/data/ru/map.svg":Ml,"../../../../../image/countries/data/rw/map.svg":Tl,"../../../../../image/countries/data/sa/map.svg":Rl,"../../../../../image/countries/data/sb/map.svg":Pl,"../../../../../image/countries/data/sc/map.svg":Il,"../../../../../image/countries/data/sd/map.svg":jl,"../../../../../image/countries/data/se/map.svg":Dl,"../../../../../image/countries/data/sg/map.svg":Ul,"../../../../../image/countries/data/sh/map.svg":$l,"../../../../../image/countries/data/si/map.svg":Ol,"../../../../../image/countries/data/sj/map.svg":Fl,"../../../../../image/countries/data/sk/map.svg":Kl,"../../../../../image/countries/data/sl/map.svg":zl,"../../../../../image/countries/data/sm/map.svg":Hl,"../../../../../image/countries/data/sn/map.svg":Vl,"../../../../../image/countries/data/so/map.svg":Yl,"../../../../../image/countries/data/sr/map.svg":ql,"../../../../../image/countries/data/ss/map.svg":Wl,"../../../../../image/countries/data/st/map.svg":Jl,"../../../../../image/countries/data/sv/map.svg":Zl,"../../../../../image/countries/data/sy/map.svg":Xl,"../../../../../image/countries/data/sz/map.svg":Ql,"../../../../../image/countries/data/tc/map.svg":ac,"../../../../../image/countries/data/td/map.svg":ec,"../../../../../image/countries/data/tf/map.svg":tc,"../../../../../image/countries/data/tg/map.svg":ic,"../../../../../image/countries/data/th/map.svg":sc,"../../../../../image/countries/data/tj/map.svg":gc,"../../../../../image/countries/data/tk/map.svg":nc,"../../../../../image/countries/data/tl/map.svg":oc,"../../../../../image/countries/data/tm/map.svg":rc,"../../../../../image/countries/data/tn/map.svg":lc,"../../../../../image/countries/data/to/map.svg":cc,"../../../../../image/countries/data/tr/map.svg":dc,"../../../../../image/countries/data/tt/map.svg":mc,"../../../../../image/countries/data/tv/map.svg":uc,"../../../../../image/countries/data/tw/map.svg":_c,"../../../../../image/countries/data/tz/map.svg":vc,"../../../../../image/countries/data/ua/map.svg":fc,"../../../../../image/countries/data/ug/map.svg":pc,"../../../../../image/countries/data/us/map.svg":hc,"../../../../../image/countries/data/uy/map.svg":bc,"../../../../../image/countries/data/uz/map.svg":yc,"../../../../../image/countries/data/va/map.svg":kc,"../../../../../image/countries/data/vc/map.svg":Ac,"../../../../../image/countries/data/ve/map.svg":Cc,"../../../../../image/countries/data/vg/map.svg":xc,"../../../../../image/countries/data/vi/map.svg":Ec,"../../../../../image/countries/data/vn/map.svg":Lc,"../../../../../image/countries/data/vu/map.svg":wc,"../../../../../image/countries/data/wf/map.svg":Sc,"../../../../../image/countries/data/ws/map.svg":Nc,"../../../../../image/countries/data/xk/map.svg":Bc,"../../../../../image/countries/data/ye/map.svg":Gc,"../../../../../image/countries/data/yt/map.svg":Mc,"../../../../../image/countries/data/za/map.svg":Tc,"../../../../../image/countries/data/zm/map.svg":Rc,"../../../../../image/countries/data/zw/map.svg":Pc})[`../../../../../image/countries/data/${(r=s==null?void 0:s.Alpha2Code)==null?void 0:r.toLowerCase()}/map.svg`],self.location).href}),a.createElement("div",{className:"absolute inset-0 z-10 flex items-center justify-center text-slate-100"},a.createElement(pg,{className:"w-16",src:new URL(Object.assign({"../../../../../image/countries/sq_km.svg":Rd,"../../../../../image/countries/sq_miles.svg":Pd})[`../../../../../image/countries/sq_${t.distanceUnit}.svg`],self.location).href})))),a.createElement("div",{className:"grid w-full grid-cols-2 gap-2"},o==null?void 0:o.map((c,l)=>a.createElement(b.div,{key:`svg-button-${l}`,initial:{opacity:0,translateY:20},animate:{opacity:1,translateY:0},transition:{delay:l*.1}},a.createElement(x,{className:`transition-color min-h-16 w-full cursor-pointer items-start justify-center overflow-hidden border-2 border-slate-300 bg-slate-200 p-2 pl-4 pr-2 text-left font-bold dark:border-slate-400 dark:bg-slate-600 ${[" !dark:bg-majky-700 !dark:border-majky-500 !border-majky-600 !bg-majky-200 !text-majky-600 dark:!bg-majky-950 "," !dark:bg-red-600 !dark:border-red-400 !border-red-600 !bg-red-200 !text-red-600 dark:!bg-red-950 "," !dark:bg-blue-600 !dark:border-blue-400 !border-blue-600 !bg-blue-200 !text-blue-600 dark:!bg-blue-950 "][c.mode]} select-none rounded-md hover:mr-0 hover:bg-blue-600 hover:font-bold hover:text-slate-100 dark:hover:!bg-blue-950 ${(i.completed||c.mode!==-1)&&" pointer-events-none "} select-none`,onClick:()=>{n(c.value)}},a.createElement("span",{className:"mr-2"},c.label,".")," ",c.value)))),i.completed&&a.createElement("div",{className:"my-1 flex w-full flex-col items-center justify-center"},a.createElement("p",{className:"my-0 flex w-auto flex-row items-center justify-center space-x-3 rounded-lg border border-slate-500 p-2 px-10 text-base"},a.createElement("span",null,"Area:"),a.createElement("span",{className:"text-xl font-bold"},Og(s.area,t.distanceUnit,2)))))},i0=({className:e})=>a.createElement("svg",{className:e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24px",height:"24px"},a.createElement("path",{d:"M9 16.17 5.53 12.7a.9959.9959 0 0 0-1.41 0c-.39.39-.39 1.02 0 1.41l4.18 4.18c.39.39 1.02.39 1.41 0L20.29 7.71c.39-.39.39-1.02 0-1.41a.9959.9959 0 0 0-1.41 0z"})),sn=({className:e,isLeft:t=!0,disabled:i=!1,onClick:s=()=>{}})=>a.createElement(x,{className:e,disabled:i,onClick:s},a.createElement("svg",{focusable:"false",color:"gray","aria-hidden":"true",viewBox:"0 0 24 24",className:`transform ${t?"rotate-0":"rotate-180"}`},a.createElement("path",{d:"M14.71 6.71a.9959.9959 0 0 0-1.41 0L8.71 11.3c-.39.39-.39 1.02 0 1.41l4.59 4.59c.39.39 1.02.39 1.41 0 .39-.39.39-1.02 0-1.41L10.83 12l3.88-3.88c.39-.39.38-1.03 0-1.41"}))),s0=()=>{var r;const e=R(),t=C(),i=k(({game:c})=>c),{gamesOfToday:s,selectedGame:n}=i,[g,o]=m.useState(!1);return m.useEffect(()=>{const c=()=>{o(!1)};return document.addEventListener("click",c),()=>document.removeEventListener("click",c)},[o]),m.useEffect(()=>{g?e.start({height:Math.min((s==null?void 0:s.length)*38,340)}):e.start({height:0})},[e,g]),a.createElement("div",{className:"my-3 flex w-full flex-row items-center justify-center"},a.createElement(sn,{className:"w-10 items-center justify-center rounded-lg border fill-black p-1 active:bg-slate-200 disabled:bg-slate-200 dark:fill-slate-100 active:dark:bg-slate-500 disabled:dark:bg-slate-500 md:hover:bg-majky-200 md:hover:dark:bg-slate-500",isLeft:!0,onClick:()=>{t(qm())}}),a.createElement("div",{className:"relative mx-2 w-full max-w-72 px-2"},a.createElement(x,{className:"text-md translate my-0.5 flex h-10 w-full items-center justify-center gap-2 rounded-lg bg-majky-600 p-1 font-semibold text-white hover:bg-majky-700 active:bg-majky-700",onClick:c=>{o(!g),g||c.stopPropagation()}},(r=n==null?void 0:n.imgSrcs)==null?void 0:r.map((c,l)=>a.createElement("img",{key:`imgSrcs-${l}`,className:"mt-0.05 mr-1.5 inline-block h-4 w-4 align-middle",alt:n==null?void 0:n.imgAlts[l],src:c==null?void 0:c.toLowerCase()})),a.createElement("span",{className:"ml-2"},n==null?void 0:n.label),a.createElement("div",{className:`flex transform items-center transition-transform duration-500 ${g?"rotate-180":"rotate-0"}`},a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"white",width:"24px",height:"24px"},a.createElement("path",{d:"M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z"}),a.createElement("path",{d:"M0 0h24v24H0V0z",fill:"none"})))),a.createElement(b.div,{initial:{height:0},animate:e,className:"absolute left-2 right-2 z-[99] my-1 overflow-hidden rounded-lg bg-white drop-shadow-lg dark:bg-slate-600"},s==null?void 0:s.map((c,l)=>{var d;return a.createElement(b.div,{key:"nav-dropdown-"+l,whileTap:{scale:.8}},a.createElement("div",{className:"cursor-pointer px-2 py-2 text-sm transition-all duration-300 hover:bg-majky-400 hover:font-bold hover:dark:bg-majky-400",onClick:()=>{t(Wm(c)),setTimeout(()=>{o(!1)},300)}},a.createElement("div",{className:"flex w-full flex-row items-center justify-start"},a.createElement("span",{className:"flex w-12 flex-row items-center justify-start"},(d=c==null?void 0:c.imgSrcs)==null?void 0:d.map((_,p)=>a.createElement("img",{key:`imgSrcs-${p}`,className:"mt-0.05 mr-1.5 inline-block h-4 w-4 align-middle",alt:c.imgAlts[p],src:_==null?void 0:_.toLowerCase()}))),a.createElement("span",{className:"flex-1"},c.label),i[c.key].completed&&a.createElement(i0,{className:"fill-majky-600"}))),l<s.length-1&&a.createElement("div",{className:"mx-2 border-b border-slate-100 dark:border-slate-500"}))}))),a.createElement(sn,{className:"w-10 items-center justify-center rounded-lg border fill-black p-1 active:bg-slate-200 disabled:bg-slate-200 dark:fill-slate-100 active:dark:bg-slate-500 disabled:dark:bg-slate-500 md:hover:bg-majky-200 md:hover:dark:bg-slate-500",isLeft:!1,onClick:()=>{t(nd())}}))},g0=()=>{const e=C(),t=k(({game:s})=>s),{selectedGame:i}=t;return a.createElement("div",{className:"mt-4 flex w-full flex-col items-center justify-center gap-4 md:flex-row"},t[i.key].completed===!1&&i.key!==Gg&&a.createElement(x,{className:"flex h-10 w-full items-center justify-center whitespace-nowrap rounded-lg border px-4 py-1 text-center font-semibold hover:bg-majky-200 hover:dark:bg-slate-500 md:w-fit",onClick:()=>{e(Jm())}},a.createElement("span",{className:"mr-2 inline-block"},a.createElement("img",{alt:"🤷♀️",src:new URL("/build/assets/1f937-200d-2640-fe0f-d980e985.png",self.location).href,className:"mt-0.05 mr-1.5 inline h-4 w-4 align-middle"})),im),a.createElement(x,{className:"text-md flex h-10 w-full items-center justify-center rounded-lg bg-majky-600 px-4 py-1 font-semibold text-white hover:bg-majky-700 active:bg-majky-700 md:w-fit",onClick:()=>{e(nd())}},a.createElement("span",{className:"mr-2 inline-block"},a.createElement("img",{alt:"🎁",src:new URL("/build/assets/1f381-49d83ba9.png",self.location).href,className:"mt-0.05 mr-1.5 inline h-4 w-4 align-middle"})),i.key==="country"?sm:gm))},n0="5.6.5",o0=60,r0=0,l0=360,c0=1080,d0=1920,m0="symbolic-new-year",u0=1,_0=[{id:"comp_0",layers:[{ddd:0,ind:1,ty:0,nm:"Comp 1",refId:"comp_1",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:180,ix:10},p:{a:0,k:[540,1035,0],ix:2},a:{a:0,k:[540,960,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,w:1080,h:1920,ip:0,op:900,st:0,bm:0}]},{id:"comp_1",layers:[{ddd:0,ind:1,ty:4,nm:"Strip 4",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[540,960,0],ix:2},a:{a:0,k:[0,0,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[104,-228],[6,-170],[0,0]],o:[[0,0],[-104,228],[-6,170],[0,0]],v:[[-264,-560],[-320,-66],[-542,402],[-524,740]],c:!1},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[.831372608858,.921568687289,.231372563979,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:30,ix:5},lc:1,lj:1,ml:4,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Shape 1",np:3,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1},{ty:"tm",s:{a:1,k:[{i:{x:[.38],y:[1]},o:{x:[.28],y:[0]},t:20,s:[0]},{t:234,s:[100]}],ix:1},e:{a:1,k:[{i:{x:[.38],y:[1]},o:{x:[.28],y:[0]},t:0,s:[0]},{t:214,s:[100]}],ix:2},o:{a:0,k:0,ix:3},m:1,ix:2,nm:"Trim Paths 1",mn:"ADBE Vector Filter - Trim",hd:!1}],ip:0,op:298,st:0,bm:0},{ddd:0,ind:2,ty:4,nm:"Strip 3",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[540,960,0],ix:2},a:{a:0,k:[0,0,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[-363.988,-131.44],[0,-40]],o:[[0,0],[288,104],[0,40]],v:[[204,-564],[386,-120],[600,182]],c:!1},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[.231372563979,.921568687289,.611764705882,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:40,ix:5},lc:1,lj:1,ml:4,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Shape 1",np:3,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1},{ty:"tm",s:{a:1,k:[{i:{x:[.38],y:[1]},o:{x:[.28],y:[0]},t:28,s:[0]},{t:236,s:[100]}],ix:1},e:{a:1,k:[{i:{x:[.38],y:[1]},o:{x:[.28],y:[0]},t:0,s:[0]},{t:208,s:[100]}],ix:2},o:{a:0,k:0,ix:3},m:1,ix:2,nm:"Trim Paths 1",mn:"ADBE Vector Filter - Trim",hd:!1}],ip:0,op:298,st:0,bm:0},{ddd:0,ind:3,ty:4,nm:"Strip 2",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[540,960,0],ix:2},a:{a:0,k:[0,0,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[-75.296,-65.257],[0,54],[27.332,-8.541],[8,-186],[40.229,-25.33],[20,78],[-160,-278],[-38,0]],o:[[0,0],[90,78],[0,-54],[-64,20],[-8,186],[-54,34],[-20.263,-79.028],[160,278],[38,0]],v:[[-364,-540],[-302,-112],[-138,-168],[-216,-234],[-320,8],[-372,326],[-510,272],[-158,282],[138,690]],c:!1},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[.921568687289,.231372563979,.541176470588,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:5,ix:5},lc:1,lj:1,ml:4,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Shape 1",np:3,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1},{ty:"tm",s:{a:1,k:[{i:{x:[.38],y:[1]},o:{x:[.28],y:[0]},t:24,s:[0]},{t:244,s:[100]}],ix:1},e:{a:1,k:[{i:{x:[.38],y:[1]},o:{x:[.28],y:[0]},t:0,s:[0]},{t:220,s:[100]}],ix:2},o:{a:0,k:0,ix:3},m:1,ix:2,nm:"Trim Paths 1",mn:"ADBE Vector Filter - Trim",hd:!1}],ip:0,op:298,st:0,bm:0},{ddd:0,ind:4,ty:4,nm:"Strip 1",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[540,960,0],ix:2},a:{a:0,k:[0,0,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[2,-86],[0,26],[20,-10],[-26,-128],[42,-80],[74,-138],[0,0]],o:[[0,0],[-1.851,79.603],[0,-26],[-20,10],[26,128],[-78.252,149.052],[-57.102,106.487],[0,0]],v:[[310,-534],[34,-274],[224,-284],[146,-296],[48,-128],[72,188],[-184,418],[-272,642]],c:!1},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[.926715686275,.918710027956,.105007904651,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:5,ix:5},lc:1,lj:1,ml:4,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Shape 1",np:3,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1},{ty:"tm",s:{a:1,k:[{i:{x:[.37],y:[1]},o:{x:[.28],y:[0]},t:16,s:[0]},{t:212,s:[99]}],ix:1},e:{a:1,k:[{i:{x:[.37],y:[1]},o:{x:[.167],y:[0]},t:0,s:[0]},{i:{x:[.37],y:[1]},o:{x:[.28],y:[0]},t:6,s:[6]},{t:204,s:[100]}],ix:2},o:{a:0,k:0,ix:3},m:1,ix:2,nm:"Trim Paths 1",mn:"ADBE Vector Filter - Trim",hd:!1}],ip:0,op:298,st:0,bm:0},{ddd:0,ind:5,ty:0,nm:"Set 1",refId:"comp_2",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[540,960,0],ix:2},a:{a:0,k:[540,540,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,w:1080,h:1080,ip:0,op:286,st:0,bm:0}]},{id:"comp_2",layers:[{ddd:0,ind:1,ty:0,nm:"Confetti",refId:"comp_3",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[540,540,0],ix:2},a:{a:0,k:[540,540,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,w:1080,h:1080,ip:0,op:242,st:0,bm:0},{ddd:0,ind:2,ty:0,nm:"Confetti",refId:"comp_3",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[260,540,0],ix:2},a:{a:0,k:[540,540,0],ix:1},s:{a:0,k:[-100,100,100],ix:6}},ao:0,w:1080,h:1080,ip:44,op:286,st:44,bm:0},{ddd:0,ind:3,ty:0,nm:"Confetti",refId:"comp_3",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[560,540,0],ix:2},a:{a:0,k:[540,540,0],ix:1},s:{a:0,k:[-100,100,100],ix:6}},ao:0,w:1080,h:1080,ip:34,op:276,st:34,bm:0},{ddd:0,ind:4,ty:0,nm:"Confetti",refId:"comp_3",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[1006,540,0],ix:2},a:{a:0,k:[540,540,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,w:1080,h:1080,ip:18,op:260,st:18,bm:0}]},{id:"comp_3",layers:[{ddd:1,ind:1,ty:3,nm:"Red 5",sr:1,ks:{o:{a:0,k:0,ix:11},rx:{a:0,k:0,ix:8},ry:{a:0,k:0,ix:9},rz:{a:0,k:0,ix:10},or:{a:0,k:[0,0,0],ix:7},p:{a:0,k:[758.952,1037.79,33.47],ix:2},a:{a:0,k:[50,50,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,ip:20,op:222,st:20,bm:0},{ddd:1,ind:2,ty:4,nm:"Red 5",parent:1,sr:1,ks:{o:{a:0,k:100,ix:11},rx:{a:1,k:[{i:{x:[.31],y:[1]},o:{x:[.28],y:[0]},t:20,s:[-43]},{t:202,s:[728]}],ix:8},ry:{a:1,k:[{i:{x:[.37],y:[1]},o:{x:[.28],y:[0]},t:20,s:[0]},{t:202,s:[23]}],ix:9},rz:{a:0,k:0,ix:10},or:{a:0,k:[0,0,0],ix:7},p:{a:1,k:[{i:{x:.31,y:1},o:{x:.167,y:.237},t:20,s:[184.489,-1007.984,0],to:[-50.431,291.536,0],ti:[-28.166,-241.223,0]},{t:202,s:[135.077,158.106,0]}],ix:2},a:{a:0,k:[-104.754,-429.016,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ty:"rc",d:1,s:{a:0,k:[42.492,61.969],ix:2},p:{a:0,k:[0,0],ix:3},r:{a:0,k:0,ix:4},nm:"Rectangle Path 1",mn:"ADBE Vector Shape - Rect",hd:!1},{ty:"fl",c:{a:0,k:[.231372563979,.921568687289,.611764705882,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[-104.754,-429.016],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Rectangle 1",np:3,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:20,op:222,st:20,bm:0},{ddd:1,ind:3,ty:3,nm:"NULL Red 3",sr:1,ks:{o:{a:0,k:0,ix:11},rx:{a:0,k:0,ix:8},ry:{a:0,k:0,ix:9},rz:{a:0,k:0,ix:10},or:{a:0,k:[0,0,0],ix:7},p:{a:0,k:[189.887,161.151,33.47],ix:2},a:{a:0,k:[50,50,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,ip:42,op:208,st:-34,bm:0},{ddd:1,ind:4,ty:4,nm:"Red 3",parent:3,sr:1,ks:{o:{a:0,k:100,ix:11},rx:{a:1,k:[{i:{x:[.31],y:[1]},o:{x:[.28],y:[0]},t:42,s:[-43]},{t:184,s:[728]}],ix:8},ry:{a:1,k:[{i:{x:[.37],y:[1]},o:{x:[.28],y:[0]},t:42,s:[0]},{t:184,s:[23]}],ix:9},rz:{a:0,k:0,ix:10},or:{a:0,k:[0,0,0],ix:7},p:{a:1,k:[{i:{x:.31,y:1},o:{x:.167,y:.179},t:42,s:[41.359,-143.166,0],to:[-101.546,307.893,0],ti:[-156.977,-257.58,0]},{t:184,s:[124.848,1039.28,0]}],ix:2},a:{a:0,k:[-104.754,-429.016,0],ix:1},s:{a:0,k:[60,60,60],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ty:"rc",d:1,s:{a:0,k:[42.492,61.969],ix:2},p:{a:0,k:[0,0],ix:3},r:{a:0,k:0,ix:4},nm:"Rectangle Path 1",mn:"ADBE Vector Shape - Rect",hd:!1},{ty:"fl",c:{a:0,k:[.231372563979,.921568687289,.611764705882,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[-104.754,-429.016],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Rectangle 1",np:3,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:42,op:208,st:42,bm:0},{ddd:1,ind:5,ty:3,nm:"Red 4",sr:1,ks:{o:{a:0,k:0,ix:11},rx:{a:0,k:0,ix:8},ry:{a:0,k:0,ix:9},rz:{a:0,k:0,ix:10},or:{a:0,k:[0,0,0],ix:7},p:{a:0,k:[893.752,989.165,33.47],ix:2},a:{a:0,k:[50,50,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,ip:76,op:242,st:76,bm:0},{ddd:1,ind:6,ty:4,nm:"Red 4",parent:5,sr:1,ks:{o:{a:0,k:100,ix:11},rx:{a:1,k:[{i:{x:[.31],y:[1]},o:{x:[.28],y:[0]},t:76,s:[-43]},{t:258,s:[728]}],ix:8},ry:{a:1,k:[{i:{x:[.37],y:[1]},o:{x:[.28],y:[0]},t:76,s:[0]},{t:258,s:[23]}],ix:9},rz:{a:0,k:0,ix:10},or:{a:0,k:[0,0,0],ix:7},p:{a:1,k:[{i:{x:.31,y:1},o:{x:.167,y:.235},t:76,s:[184.489,-1007.984,0],to:[45.667,267,0],ti:[86.333,-231,0]},{t:258,s:[16.489,154.016,0]}],ix:2},a:{a:0,k:[-104.754,-429.016,0],ix:1},s:{a:0,k:[60,60,60],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ty:"rc",d:1,s:{a:0,k:[42.492,61.969],ix:2},p:{a:0,k:[0,0],ix:3},r:{a:0,k:0,ix:4},nm:"Rectangle Path 1",mn:"ADBE Vector Shape - Rect",hd:!1},{ty:"fl",c:{a:0,k:[.23085418402,.921553308824,.612960755591,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[-104.754,-429.016],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Rectangle 1",np:3,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:76,op:242,st:76,bm:0},{ddd:1,ind:7,ty:3,nm:"Red 2",sr:1,ks:{o:{a:0,k:0,ix:11},rx:{a:0,k:0,ix:8},ry:{a:0,k:0,ix:9},rz:{a:0,k:0,ix:10},or:{a:0,k:[0,0,0],ix:7},p:{a:0,k:[206.758,1025.968,33.47],ix:2},a:{a:0,k:[50,50,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,ip:76,op:242,st:76,bm:0},{ddd:1,ind:8,ty:4,nm:"Red 2",parent:7,sr:1,ks:{o:{a:0,k:100,ix:11},rx:{a:1,k:[{i:{x:[.31],y:[1]},o:{x:[.28],y:[0]},t:76,s:[-43]},{t:258,s:[728]}],ix:8},ry:{a:1,k:[{i:{x:[.37],y:[1]},o:{x:[.28],y:[0]},t:76,s:[0]},{t:258,s:[23]}],ix:9},rz:{a:0,k:0,ix:10},or:{a:0,k:[0,0,0],ix:7},p:{a:1,k:[{i:{x:.31,y:1},o:{x:.167,y:.235},t:76,s:[184.489,-1007.984,0],to:[45.667,267,0],ti:[86.333,-231,0]},{t:258,s:[16.489,154.016,0]}],ix:2},a:{a:0,k:[-104.754,-429.016,0],ix:1},s:{a:0,k:[60,60,60],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ty:"rc",d:1,s:{a:0,k:[42.492,61.969],ix:2},p:{a:0,k:[0,0],ix:3},r:{a:0,k:0,ix:4},nm:"Rectangle Path 1",mn:"ADBE Vector Shape - Rect",hd:!1},{ty:"fl",c:{a:0,k:[.831372608858,.921568687289,.231372563979,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[-104.754,-429.016],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Rectangle 1",np:3,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:76,op:242,st:76,bm:0},{ddd:1,ind:9,ty:3,nm:"Red 1",sr:1,ks:{o:{a:0,k:0,ix:11},rx:{a:0,k:0,ix:8},ry:{a:0,k:0,ix:9},rz:{a:0,k:0,ix:10},or:{a:0,k:[0,0,0],ix:7},p:{a:0,k:[566.758,1045.968,33.47],ix:2},a:{a:0,k:[50,50,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,ip:40,op:242,st:40,bm:0},{ddd:1,ind:10,ty:4,nm:"Red 1",parent:9,sr:1,ks:{o:{a:0,k:100,ix:11},rx:{a:1,k:[{i:{x:[.31],y:[1]},o:{x:[.28],y:[0]},t:40,s:[-43]},{t:222,s:[728]}],ix:8},ry:{a:1,k:[{i:{x:[.37],y:[1]},o:{x:[.28],y:[0]},t:40,s:[0]},{t:222,s:[23]}],ix:9},rz:{a:0,k:0,ix:10},or:{a:0,k:[0,0,0],ix:7},p:{a:1,k:[{i:{x:.31,y:1},o:{x:.167,y:.235},t:40,s:[184.489,-1007.984,0],to:[45.667,267,0],ti:[86.333,-231,0]},{t:222,s:[16.489,154.016,0]}],ix:2},a:{a:0,k:[-104.754,-429.016,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ty:"rc",d:1,s:{a:0,k:[42.492,61.969],ix:2},p:{a:0,k:[0,0],ix:3},r:{a:0,k:0,ix:4},nm:"Rectangle Path 1",mn:"ADBE Vector Shape - Rect",hd:!1},{ty:"fl",c:{a:0,k:[.921553308824,.23085418402,.541097603592,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[-104.754,-429.016],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Rectangle 1",np:3,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:40,op:242,st:40,bm:0},{ddd:1,ind:11,ty:4,nm:"Blue 2",parent:12,sr:1,ks:{o:{a:0,k:100,ix:11},rx:{a:1,k:[{i:{x:[.31],y:[1]},o:{x:[.28],y:[0]},t:0,s:[-43]},{t:182,s:[728]}],ix:8},ry:{a:1,k:[{i:{x:[.37],y:[1]},o:{x:[.28],y:[0]},t:0,s:[0]},{t:182,s:[23]}],ix:9},rz:{a:0,k:0,ix:10},or:{a:0,k:[0,0,0],ix:7},p:{a:1,k:[{i:{x:.31,y:1},o:{x:.167,y:.234},t:0,s:[50,50,0],to:[-46.333,277,0],ti:[-161.667,-185,0]},{t:182,s:[144,1212,0]}],ix:2},a:{a:0,k:[-104.754,-429.016,0],ix:1},s:{a:0,k:[60,60,60],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ty:"rc",d:1,s:{a:0,k:[42.492,61.969],ix:2},p:{a:0,k:[0,0],ix:3},r:{a:0,k:0,ix:4},nm:"Rectangle Path 1",mn:"ADBE Vector Shape - Rect",hd:!1},{ty:"fl",c:{a:0,k:[.829502419864,.921553308824,.23085418402,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[-104.754,-429.016],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Rectangle 1",np:3,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:242,st:0,bm:0},{ddd:1,ind:12,ty:3,nm:"Blue 2",sr:1,ks:{o:{a:0,k:0,ix:11},rx:{a:0,k:0,ix:8},ry:{a:0,k:0,ix:9},rz:{a:0,k:0,ix:10},or:{a:0,k:[0,0,0],ix:7},p:{a:0,k:[831.246,-12.016,0],ix:2},a:{a:0,k:[50,50,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,ip:0,op:242,st:0,bm:0},{ddd:1,ind:13,ty:4,nm:"Blue 1",sr:1,ks:{o:{a:0,k:100,ix:11},rx:{a:1,k:[{i:{x:[.31],y:[1]},o:{x:[.28],y:[0]},t:0,s:[-43]},{t:182,s:[728]}],ix:8},ry:{a:1,k:[{i:{x:[.37],y:[1]},o:{x:[.28],y:[0]},t:0,s:[0]},{t:182,s:[23]}],ix:9},rz:{a:0,k:0,ix:10},or:{a:0,k:[0,0,0],ix:7},p:{a:1,k:[{i:{x:.31,y:1},o:{x:.167,y:.235},t:0,s:[531.246,-12.016,0],to:[45.667,267,0],ti:[86.333,-231,0]},{t:182,s:[363.246,1149.984,0]}],ix:2},a:{a:0,k:[-104.754,-429.016,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ty:"rc",d:1,s:{a:0,k:[42.492,61.969],ix:2},p:{a:0,k:[0,0],ix:3},r:{a:0,k:0,ix:4},nm:"Rectangle Path 1",mn:"ADBE Vector Shape - Rect",hd:!1},{ty:"fl",c:{a:0,k:[.23085418402,.354194222245,.921553308824,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[-104.754,-429.016],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Rectangle 1",np:3,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:242,st:0,bm:0}]}],v0=[{ddd:0,ind:1,ty:3,nm:"Null 1",sr:1,ks:{o:{a:0,k:0,ix:11},r:{a:0,k:0,ix:10},p:{a:1,k:[{i:{x:.667,y:1},o:{x:.333,y:0},t:0,s:[540,2120,0],to:[0,-83.333,0],ti:[0,83.333,0]},{t:20,s:[540,1620,0]}],ix:2},a:{a:0,k:[0,0,0],ix:1},s:{a:0,k:[32,32,100],ix:6}},ao:0,ip:0,op:426,st:0,bm:0},{ddd:0,ind:2,ty:4,nm:"logo Outlines",parent:3,sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[431.875,84.384,0],ix:2},a:{a:0,k:[104.26,45.134,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0],[25.806,0],[.28,10.097],[0,0]],o:[[0,0],[-.281,10.097],[-25.803,0],[0,0],[0,0]],v:[[43.003,-10.865],[44.126,-8.237],[-.002,10.865],[-44.126,-8.237],[-43.002,-10.865]],c:!0},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[1,1,1,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[104.26,47.595],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Group 1",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1},{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[-1.307,-1.542],[0,0],[10.672,3.729],[48.293,-.181],[8.294,.65],[0,0],[-4.779,.469],[-.096,.009],[0,0],[-25.197,-2.385],[-.096,-.009]],o:[[0,0],[-9.493,-.486],[0,0],[-15.036,.057],[0,0],[1.307,-1.542],[.095,-.009],[25.199,-2.385],[0,0],[.097,.009],[4.778,.469]],v:[[58.537,-1.96],[66.674,7.643],[29.742,.104],[-31.514,7.474],[-66.674,6.29],[-59.684,-1.96],[-49.366,-5.231],[-49.08,-5.258],[-.572,-7.471],[47.933,-5.258],[48.22,-5.231]],c:!0},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[1,1,1,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[104.833,7.893],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Group 2",np:2,cix:2,bm:0,ix:2,mn:"ADBE Vector Group",hd:!1},{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[-.984,-2.281],[6.421,0],[.435,2.406],[-5.833,0]],o:[[1.037,2.406],[-6.422,0],[-.412,-2.281],[5.832,0]],v:[[10.756,-.205],[1.051,4.25],[-11.381,-.205],[-1.551,-4.25]],c:!0},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[1,1,1,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[131.583,24.634],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Group 3",np:2,cix:2,bm:0,ix:3,mn:"ADBE Vector Group",hd:!1},{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[-22.204,2.67],[22.204,2.67],[21.902,-2.67],[-19.899,-2.67]],c:!0},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[1,1,1,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[87.198,24.511],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Group 4",np:2,cix:2,bm:0,ix:4,mn:"ADBE Vector Group",hd:!1},{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[11.036,-7.993],[25.198,0],[12.676,9.177],[-5.635,8.27],[0,0],[-.016,.001],[0,0],[-3.877,0],[-.004,0],[0,0],[0,0],[-.562,0],[-21.518,-2.137],[0,0],[-.07,-.103]],o:[[5.636,8.27],[-12.673,9.178],[-25.217,0],[-11.037,-7.992],[0,0],[.07,-.103],[0,0],[21.519,-2.137],[.578,0],[0,0],[0,0],[.007,0],[3.877,0],[0,0],[.016,.001],[0,0]],v:[[66.947,-10.718],[59.587,14.699],[.02,29.537],[-59.582,14.698],[-66.947,-10.718],[-47.536,-39.201],[-47.119,-39.341],[-46.963,-39.357],[-1.173,-41.599],[-.277,-41.596],[.032,-41.594],[.294,-41.596],[1.174,-41.599],[46.963,-39.357],[47.119,-39.341],[47.536,-39.201]],c:!0},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ind:1,ty:"sh",ix:2,ks:{a:0,k:{i:[[4.778,.468],[.096,.009],[0,0],[25.199,-2.385],[.095,-.01],[1.307,-1.541],[0,0],[-72.015,0],[20.763,24.501],[0,0]],o:[[-.096,-.01],[-25.198,-2.385],[0,0],[-.096,.009],[-4.779,.468],[0,0],[-20.763,24.501],[71.976,0],[0,0],[-1.307,-1.541]],v:[[48.793,-42.471],[48.507,-42.499],[.001,-44.713],[-48.507,-42.499],[-48.793,-42.471],[-59.111,-39.201],[-83.247,-10.718],[.022,44.884],[83.247,-10.718],[59.11,-39.201]],c:!0},ix:2},nm:"Path 2",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"mm",mm:1,nm:"Merge Paths 1",mn:"ADBE Vector Filter - Merge",hd:!1},{ty:"fl",c:{a:0,k:[1,1,1,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[104.26,45.134],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Group 5",np:4,cix:2,bm:0,ix:5,mn:"ADBE Vector Group",hd:!1}],ip:0,op:432,st:0,bm:0},{ddd:0,ind:3,ty:4,nm:"tutup Outlines",parent:1,sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:51,s:[0]},{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:60,s:[-8]},{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:64,s:[0]},{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:74,s:[38]},{t:88,s:[-134]}],ix:10},p:{a:1,k:[{i:{x:.667,y:1},o:{x:.333,y:0},t:0,s:[0,262.228,0],to:[0,-4.5,0],ti:[0,0,0]},{i:{x:.667,y:1},o:{x:.333,y:0},t:6,s:[0,235.228,0],to:[0,0,0],ti:[0,-1.167,0]},{i:{x:.667,y:1},o:{x:.333,y:0},t:12,s:[0,262.228,0],to:[0,1.167,0],ti:[0,-1.333,0]},{i:{x:.667,y:1},o:{x:.333,y:0},t:20,s:[0,242.228,0],to:[0,1.333,0],ti:[0,-3.333,0]},{i:{x:.667,y:1},o:{x:.333,y:0},t:27,s:[0,270.228,0],to:[0,3.333,0],ti:[0,5.833,0]},{i:{x:.667,y:1},o:{x:.333,y:0},t:31,s:[0,262.228,0],to:[0,-5.833,0],ti:[0,0,0]},{i:{x:.667,y:1},o:{x:.333,y:0},t:37,s:[0,235.228,0],to:[0,0,0],ti:[0,-1.167,0]},{i:{x:.667,y:1},o:{x:.333,y:0},t:43,s:[0,262.228,0],to:[0,1.167,0],ti:[0,-1.333,0]},{i:{x:.667,y:1},o:{x:.333,y:0},t:51,s:[0,242.228,0],to:[0,1.333,0],ti:[0,1048.667,0]},{i:{x:.667,y:1},o:{x:.333,y:0},t:58,s:[0,270.228,0],to:[0,-1048.667,0],ti:[0,1053.333,0]},{t:91,s:[0,-6049.772,0]}],ix:2},a:{a:0,k:[436.249,143.184,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[-4.964,-93.906],[-435.999,2.718],[-1.741,93.906],[435.999,-3.688]],c:!0},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[.788000009574,.152999997606,.152999997606,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[436.249,94.156],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Group 1",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1},{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[218.87,-97.826],[-218.87,-.231],[-218.388,97.826],[216.559,-.271]],c:!0},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[.685999971278,.063000002094,.063000002094,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[653.378,188.293],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Group 2",np:2,cix:2,bm:0,ix:2,mn:"ADBE Vector Group",hd:!1},{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[-217.37,-94.623],[216.887,-3.434],[217.37,94.622],[-213.734,6.179]],c:!0},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[1,.219999994016,.2,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[217.62,191.496],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Group 3",np:2,cix:2,bm:0,ix:3,mn:"ADBE Vector Group",hd:!1}],ip:0,op:421,st:0,bm:0},{ddd:0,ind:4,ty:4,nm:"Layer 1 Outlines",parent:1,sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:1,k:[{i:{x:.667,y:1},o:{x:.333,y:0},t:65,s:[-4.38,518.98,0],to:[0,345,0],ti:[0,-345,0]},{t:81,s:[-4.38,2588.98,0]}],ix:2},a:{a:0,k:[382.679,304.498,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[193.404,-183.308],[-193.404,-264.686],[-193.404,187.445],[193.404,264.686]],c:!0},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[.902000038297,.063000002094,0,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[193.654,344.06],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Group 1",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1},{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[-189.025,-183.308],[189.025,-264.686],[189.025,187.445],[-189.025,264.686]],c:!0},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[.611999990426,.027000000898,0,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[576.083,344.06],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Group 2",np:2,cix:2,bm:0,ix:2,mn:"ADBE Vector Group",hd:!1},{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[193.404,183.308],[-193.404,264.686],[-193.404,-187.446],[193.404,-264.686]],c:!0},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[.936999990426,.426999978458,0,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[193.654,264.936],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Group 3",np:2,cix:2,bm:0,ix:3,mn:"ADBE Vector Group",hd:!1},{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[-189.025,183.308],[189.025,264.686],[189.025,-187.446],[-189.025,-264.686]],c:!0},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[.885999971278,.286000001197,0,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[576.083,264.936],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Group 4",np:2,cix:2,bm:0,ix:4,mn:"ADBE Vector Group",hd:!1}],ip:0,op:421,st:0,bm:0},{ddd:0,ind:5,ty:0,nm:"Render-Ok",refId:"comp_0",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[540,370,0],ix:2},a:{a:0,k:[540,960,0],ix:1},s:{a:0,k:[-95.37,100,100],ix:6}},ao:0,w:1080,h:1920,ip:73,op:373,st:73,bm:0},{ddd:0,ind:6,ty:0,nm:"Render-Ok",refId:"comp_0",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[540,1305,0],ix:2},a:{a:0,k:[540,960,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,w:1080,h:1920,ip:54,op:354,st:54,bm:0}],f0=[],p0={v:n0,fr:o0,ip:r0,op:l0,w:c0,h:d0,nm:m0,ddd:u0,assets:_0,layers:v0,markers:f0},h0=({trigger:e})=>{const[t,i]=m.useState(null),[s,n]=m.useState(!0),g=m.useRef(null);m.useEffect(()=>{i(p0)},[]),m.useEffect(()=>{var c,l;return e&&t&&((c=g==null?void 0:g.current)==null||c.setSpeed(1),(l=g==null?void 0:g.current)==null||l.goToAndPlay(0)),()=>{}},[e,t]);const o=()=>{n(!0)},r=()=>{n(!1)};return a.createElement("div",{className:`pointer-events-none fixed left-0 top-0 z-50 h-full w-full p-12 ${s||!e?"hidden":""}`},a.createElement(Ud,{className:"h-full w-full",animationData:t,lottieRef:g,onEnterFrame:r,onComplete:o,loop:!1,autoplay:!1}))},b0=({children:e})=>{var n;const t=k(({game:g})=>g),{country:i,selectedGame:s}=t;return a.createElement(m.Fragment,null,i.completed&&a.createElement(s0,null),a.createElement(vd,{mode:"wait"},a.createElement(b.div,{key:s!=null&&s.key?s.key:"country",initial:{opacity:0,scale:.7},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.7},transition:{duration:.2},className:"relative flex min-h-96 w-full flex-col items-center justify-center gap-2 px-2"},e,i.completed&&a.createElement(g0,null),a.createElement(h0,{trigger:(n=t[s.key])==null?void 0:n.isCorrect}))))},y0=({onChangeGameStatus:e})=>{const{selectedGame:t}=k(({game:s})=>s),i=s=>{switch(s){case Cg:return a.createElement($u,null);case xg:return a.createElement(zu,null);case jg:return a.createElement(Vu,null);case Eg:return a.createElement(qu,null);case Lg:return a.createElement(Zu,null);case wg:return a.createElement(Xu,null);case Sg:return a.createElement(e0,null);case Dg:return a.createElement(t0,null);case Gg:default:return a.createElement(Iu,{onChangeGameStatus:e})}};return a.createElement(b0,null,i(t.key))},k0=()=>a.createElement(b.div,{className:"z-1 relative flex w-full max-w-lg flex-col",initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1},exit:{opacity:0,scale:0},transition:{duration:.2,type:"spring",mass:1}},a.createElement("div",{className:"mt-4 space-y-3 px-2 text-justify md:px-0"},a.createElement("h3",{className:"mb-3 text-xl font-bold"},Gm),a.createElement("div",{className:"mb-3 space-y-3 border-b-2 border-slate-200 pb-3 text-justify",dangerouslySetInnerHTML:{__html:Mm}}),a.createElement("div",{className:"mb-3 space-y-3 border-b-2 border-slate-200 pb-3 text-justify"},a.createElement("div",{className:"font-bold"},Tm),a.createElement("div",null,a.createElement("div",null,a.createElement("div",{className:"grid grid-cols-7 gap-1 text-center"},a.createElement("div",{className:"animate-reveal col-span-3 flex h-8 items-center justify-center rounded border-2"},a.createElement("p",{className:"overflow-hidden text-ellipsis whitespace-nowrap"},j[v][0])),a.createElement("div",{className:"animate-reveal col-span-2 flex h-8 items-center justify-center rounded border-2"},"1,557km"),a.createElement("div",{className:"animate-reveal col-span-1 flex h-8 items-center justify-center rounded border-2"},a.createElement("span",null,a.createElement("img",{alt:"↗️",src:new URL("/build/assets/2197-2fba07c5.png",self.location).href,className:"m-0.125 mr-0.25 mb-0.125 mt-0.1 h-4 w-4"}))),a.createElement("div",{className:"animate-reveal animate-pop col-span-1 flex h-8 items-center justify-center rounded border-2"},"32%"))),a.createElement("div",{className:"my-2",dangerouslySetInnerHTML:{__html:Rm.replaceAll("<country>",j[v][0]).replaceAll("<km>","1,557km").replaceAll("<percent>","32%")}})),a.createElement("div",null,a.createElement("div",null,a.createElement("div",{className:"grid grid-cols-7 gap-1 text-center"},a.createElement("div",{className:"animate-reveal col-span-3 flex h-8 items-center justify-center rounded border-2"},a.createElement("p",{className:"overflow-hidden text-ellipsis whitespace-nowrap"},j[v][1])),a.createElement("div",{className:"animate-reveal col-span-2 flex h-8 items-center justify-center rounded border-2"},"102km"),a.createElement("div",{className:"animate-reveal col-span-1 flex h-8 items-center justify-center rounded border-2"},a.createElement("span",null,a.createElement("img",{alt:"↘️",src:new URL("/build/assets/2198-fc60e1fb.png",self.location).href,className:"m-0.125 mr-0.25 mb-0.125 mt-0.1 h-4 w-4"}))),a.createElement("div",{className:"animate-reveal animate-pop col-span-1 flex h-8 items-center justify-center rounded border-2"},"14%"))),a.createElement("div",{className:"my-2",dangerouslySetInnerHTML:{__html:Pm.replaceAll("<country>",j[v][1]).replaceAll("<km>","101km").replaceAll("<percent>","14%")}})),a.createElement("div",null,a.createElement("div",null,a.createElement("div",{className:"grid grid-cols-7 gap-1 text-center"},a.createElement("div",{className:"animate-reveal col-span-3 flex h-8 items-center justify-center rounded border-2"},a.createElement("p",{className:"overflow-hidden text-ellipsis whitespace-nowrap"},j[v][2])),a.createElement("div",{className:"animate-reveal col-span-2 flex h-8 items-center justify-center rounded border-2"},"0km"),a.createElement("div",{className:"animate-reveal col-span-1 flex h-8 items-center justify-center rounded border-2"},a.createElement("span",null,a.createElement("img",{alt:"🎉",src:new URL("/build/assets/1f389-131d5e81.png",self.location).href,className:"m-0.125 mr-0.25 mb-0.125 mt-0.1 h-4 w-4"}))),a.createElement("div",{className:"animate-reveal animate-pop col-span-1 flex h-8 items-center justify-center rounded border-2"},"100%"))),a.createElement("div",{className:"my-2",dangerouslySetInnerHTML:{__html:Im.replaceAll("<country>",j[v][2]).replaceAll("<km>","100km").replaceAll("<percent>","0%")}}))))),A0=()=>{const{stats:e,settings:t}=k(({user:i})=>i);return a.createElement("div",{className:"z-1 relative flex w-full max-w-lg flex-col"},a.createElement("div",{className:"mt-4 px-2 text-black dark:!text-white md:px-0"},a.createElement("h3",{className:"text-center text-xl font-bold"},vm),a.createElement("div",{className:"flex justify-center"},a.createElement("div",{className:"m-2 flex max-w-min flex-col"},a.createElement("p",{className:"text-center text-3xl font-bold"},e.played),a.createElement("p",{className:"text-center"},fm)),a.createElement("div",{className:"m-2 flex max-w-min flex-col"},a.createElement("p",{className:"text-center text-3xl font-bold"},(e.won*100/Math.max(e.played,1)).toFixed(0)),a.createElement("p",{className:"text-center"},pm," %")),a.createElement("div",{className:"m-2 flex max-w-min flex-col"},a.createElement("p",{className:"text-center text-3xl font-bold"},e.currentStreak),a.createElement("p",{className:"text-center"},hm)),a.createElement("div",{className:"m-2 flex max-w-min flex-col"},a.createElement("p",{className:"text-center text-3xl font-bold"},e.maxStreak),a.createElement("p",{className:"text-center"},bm))),a.createElement("div",{className:"m-6 flex justify-center"},a.createElement("div",{className:"m-2 flex flex-col"},a.createElement("p",{className:"text-center text-4xl font-bold"},Og(e.bestDistancesAverage,t.distanceUnit)),a.createElement("p",{className:"text-center text-lg"},ym))),a.createElement("div",null,a.createElement("h3",{className:"text-center text-xl font-bold"},km),a.createElement("ul",{className:"mx-1"},e.guessDistributions.map((i,s)=>a.createElement("li",{key:s,className:"my-2 flex"},a.createElement("div",{className:"mr-1 font-bold"},s+1),a.createElement("div",{className:"bg-slate-400",style:{flex:`0 1 ${parseInt(i/Math.max(...e.guessDistributions).toFixed(0))*100}%`}}),a.createElement("div",{className:"bg-slate-400 px-1 font-bold"},i)))))))},cd=()=>{const[e,t]=m.useState(localStorage.theme||"light"),i=e==="dark"?"light":"dark";return m.useEffect(()=>{const s=window.document.documentElement;s.classList.remove(i),s.classList.add(e),localStorage.setItem("theme",e)},[e,i]),[e,t]},C0=({id:e,value:t,onChange:i,options:s,placeholder:n})=>a.createElement($d,{classNames:{menu:"absolute z-10 w-full bg-white shadow-lg border border-slate-100 rounded py-1 mt-1.5 text-sm text-slate-700 dark:border-slate-800 dark:bg-slate-800 transition-all duration-300",menuButton:({isDisabled:g})=>"flex text-md text-slate-800 dark:text-slate-100 border border-slate-300 outline-none rounded shadow-sm transition-all duration-300 focus:outline-none bg-white hover:border-slate-400 focus:border-majky-500 focus:ring focus:ring-majky-500/20 dark:bg-slate-800"},id:e,value:t,primaryColor:"green",onChange:i,options:s,placeholder:n}),x0=()=>{const{settings:e}=k(({user:s})=>s),t=C(),i=(s,n)=>{t(Vg({...e,[s]:n}))};return cd(),a.createElement(b.div,{className:"z-1 relative flex w-full max-w-lg select-none flex-col",initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1},exit:{opacity:0,scale:0},transition:{duration:.2,type:"spring",mass:1}},a.createElement("div",{className:"relative flex w-full max-w-lg flex-grow flex-col"},a.createElement("div",{className:"mt-8 px-2 md:px-0"},a.createElement("h3",{className:"text-center text-xl font-bold"},rm),a.createElement("div",{className:"my-4 flex flex-col gap-2"},a.createElement("div",{className:"flex p-1"},a.createElement(C0,{id:"setting-distanceUnit",value:Ng.distanceUnits.find(s=>s.value===e.distanceUnit),onChange:s=>{i("distanceUnit",s.value)},options:Ng.distanceUnits}),a.createElement("label",{className:"ml-4 min-w-48 flex-1 leading-8",htmlFor:"setting-distanceUnit"},lm))),a.createElement("div",{className:"mt-4 flex flex-col gap-2"},a.createElement("header",{className:"my-4"},a.createElement("h3",{className:"text-center text-lg font-bold"},cm)),a.createElement("div",{className:"flex px-4 py-1"},a.createElement(vg,{id:"setting-noImage",onChange:s=>{i("noImage",s.target.checked)},checked:e.noImage}),a.createElement("label",{className:"ml-4 flex-1",htmlFor:"setting-noImage"},dm)),a.createElement("div",{className:"flex px-4 py-1"},a.createElement(vg,{id:"setting-rotationMode",onChange:s=>{i("rotationMode",s.target.checked)},checked:e.rotationMode}),a.createElement("label",{className:"ml-4 flex-1",htmlFor:"setting-rotationMode"},mm)),a.createElement("div",{className:"flex px-4 py-1"},a.createElement(vg,{id:"setting-showScale",onChange:s=>{i("showScale",s.target.checked)},checked:e.showScale}),a.createElement("label",{className:"ml-4 flex-1",htmlFor:"setting-showScale"},um)),a.createElement("div",{className:"flex px-4 py-1"},a.createElement(vg,{id:"setting-sortNeighboursAlphabetically",onChange:s=>{i("sortNeighboursAlphabetically",s.target.checked)},checked:e.sortNeighboursAlphabetically}),a.createElement("label",{className:"ml-4 flex-1",htmlFor:"setting-sortNeighboursAlphabetically"},_m))))))};function N(e=null){return{guessLimit:e,guesses:[],searchString:"",isCorrect:!1,completed:!1}}const L={countryOfToday:{},gamesOfToday:[],selectedGame:{},country:N(4),neighbours:N(3),capital:N(3),flags:N(),spokenLanguage:N(),population:N(),currency:N(),populousCites:N(),area:N()},E0=(e=L,t)=>{var i,s,n,g;switch(t.type){case Ic:return window.shouldUpdate?{...e,countryOfToday:t.countryOfToday,gamesOfToday:t.gamesOfToday,selectedGame:t.gamesOfToday[0],area:{...L.area},capital:{...L.capital},country:{...L.country},currency:{...L.currency},flags:{...L.flags},neighbours:{...L.neighbours},population:{...L.population},populousCites:{...L.populousCites},spokenLanguage:{...L.spokenLanguage}}:{...e,countryOfToday:t.countryOfToday,gamesOfToday:t.gamesOfToday,selectedGame:t.gamesOfToday[0],neighbours:{...e.neighbours,guessLimit:((i=t.countryOfToday.borders)==null?void 0:i.length)+L.neighbours.guessLimit},populousCites:{...L.populousCites,guesses:[...(s=t.countryOfToday)==null?void 0:s.cities.map(({name:r})=>r)].sort(()=>Math.random()-.5)??[]}};case Bg:return{...e,selectedGame:t.target};case jc:const{key:o}=t.target;return{...e,[o]:{...e[o],completed:!0}};case Dc:return{...e,country:{...e.country,completed:!0,isCorrect:!0,guesses:[...e.country.guesses,{Alpha2Code:(n=e.countryOfToday)==null?void 0:n.Alpha2Code,country:(g=e.countryOfToday)==null?void 0:g.name,distance:0,direction:0,percent:100,sizePercent:100}]}};case Uc:return{...e,country:{...e.country,...t.payload,completed:e.country.completed||e.country.guesses.length>=e.country.guessLimit}};case $c:return{...e,neighbours:{...e.neighbours,completed:!0,isCorrect:!0}};case Oc:return{...e,neighbours:{...e.neighbours,...t.payload,completed:e.neighbours.completed||e.neighbours.guesses.length>=e.neighbours.guessLimit}};case Fc:return{...e,capital:{...e.capital,completed:!0,isCorrect:!0}};case Kc:return{...e,capital:{...e.capital,...t.payload,completed:e.capital.completed||e.capital.guesses.length>=e.capital.guessLimit}};case zc:return{...e,flags:{...e.flags,completed:!0,isCorrect:!0}};case Hc:return{...e,flags:{...e.flags,...t.payload,completed:e.flags.completed||e.flags.guesses.length>=8}};case Vc:return{...e,spokenLanguage:{...e.spokenLanguage,completed:!0,isCorrect:!0}};case Yc:return{...e,spokenLanguage:{...e.spokenLanguage,...t.payload,completed:e.spokenLanguage.completed||e.spokenLanguage.guesses.length>=8}};case qc:return{...e,population:{...e.population,completed:!0,isCorrect:!0}};case Wc:return{...e,population:{...e.population,...t.payload}};case Jc:return{...e,currency:{...e.currency,completed:!0,isCorrect:!0}};case Zc:return{...e,currency:{...e.currency,...t.payload,completed:e.currency.completed||e.currency.guesses.length>=4}};case Xc:return{...e,populousCites:{...e.populousCites,completed:!0,isCorrect:!0}};case Qc:return{...e,populousCites:{...e.populousCites,...t.payload}};case ad:return{...e,area:{...e.area,completed:!0,isCorrect:!0}};case ed:return{...e,area:{...e.area,...t.payload,completed:e.area.completed||e.area.guesses.length>=4}};default:return e}},L0={settings:{distanceUnit:"km",language:"en",showScale:!1,noImage:!1,rotationMode:!1,sortNeighboursAlphabetically:!1},stats:{played:0,won:0,currentStreak:0,maxStreak:0,bestDistancesAverage:9999,guessDistributions:[0,0,0,0,0]}},w0=(e=L0,t)=>{switch(t.type){case td:return{...e,settings:t.payload};case Ig:return{...e,stats:{...e.stats,...t.payload}};default:return e}},S0=fd({game:E0,user:w0}),N0={key:_u(!1),storage:Od},B0=Fd(N0,S0),G0=bd,dd=pd(B0,G0(hd(yd))),M0=Kd(dd);const T0=()=>a.createElement("div",{className:"flex h-full w-full flex-auto items-center justify-center dark:bg-slate-900 dark:text-slate-100"}),gn=[{language:{en:"Albanian",de:"Albanisch"},Alpha2Code:"AL"},{language:{en:"Amharic",de:"Birmanisch"},Alpha2Code:"ET"},{language:{en:"Arabic",de:"Arabisch"},Alpha2Code:"SA"},{language:{en:"Armenian",de:"Armenisch"},Alpha2Code:"AM"},{language:{en:"Azerbaijani",de:"Aserbaidschanisch"},Alpha2Code:"AZ"},{language:{en:"Belarusian",de:"Belarussisch"},Alpha2Code:"BY"},{language:{en:"Bengali",de:"Bengali"},Alpha2Code:"BD"},{language:{en:"Bislama",de:"Bislama"},Alpha2Code:"VU"},{language:{en:"Bosnian",de:"Bosnisch"},Alpha2Code:"BA"},{language:{en:"Bulgarian",de:"Bulgarisch"},Alpha2Code:"BG"},{language:{en:"Burmese",de:"Burmesisch"},Alpha2Code:"MM"},{language:{en:"Catalan",de:"Katalanisch"},Alpha2Code:"ES"},{language:{en:"Chichewa",de:"Chichewa"},Alpha2Code:"MW"},{language:{en:"Chinese",de:"Chinesisch"},Alpha2Code:"CN"},{language:{en:"Comorian",de:"Komorisch"},Alpha2Code:"KM"},{language:{en:"Croatian",de:"Kroatisch"},Alpha2Code:"HR"},{language:{en:"Czech",de:"Tschechisch"},Alpha2Code:"CZ"},{language:{en:"Danish",de:"Dänisch"},Alpha2Code:"DK"},{language:{en:"Dhivehi",de:"Dhivehi"},Alpha2Code:"MV"},{language:{en:"Dutch",de:"Niederländisch"},Alpha2Code:"NL"},{language:{en:"Dzongkha",de:"Dzongkha"},Alpha2Code:"BT"},{language:{en:"English",de:"Englisch"},Alpha2Code:"GB"},{language:{en:"Estonian",de:"Estnisch"},Alpha2Code:"EE"},{language:{en:"Faroese",de:"Färöisch"},Alpha2Code:"FO"},{language:{en:"Filipino",de:"Filipino"},Alpha2Code:"PH"},{language:{en:"Finnish",de:"Finnisch"},Alpha2Code:"FI"},{language:{en:"French",de:"Französisch"},Alpha2Code:"FR"},{language:{en:"Georgian",de:"Georgisch"},Alpha2Code:"GE"},{language:{en:"German",de:"Deutsch"},Alpha2Code:"DE"},{language:{en:"Greek",de:"Griechisch"},Alpha2Code:"GR"},{language:{en:"Greenlandic",de:"Grönländisch"},Alpha2Code:"GL"},{language:{en:"Hebrew",de:"Hebräisch"},Alpha2Code:"IL"},{language:{en:"Hindi",de:"Hindi"},Alpha2Code:"IN"},{language:{en:"Hungarian",de:"Ungarisch"},Alpha2Code:"HU"},{language:{en:"Icelandic",de:"Isländisch"},Alpha2Code:"IS"},{language:{en:"Indonesian",de:"Indonesisch"},Alpha2Code:"ID"},{language:{en:"Irish",de:"Irisch"},Alpha2Code:"IE"},{language:{en:"Italian",de:"Italienisch"},Alpha2Code:"IT"},{language:{en:"Japanese",de:"Japanisch"},Alpha2Code:"JP"},{language:{en:"Kazakh",de:"Kasachisch"},Alpha2Code:"KZ"},{language:{en:"Khmer",de:"Khmer"},Alpha2Code:"KH"},{language:{en:"Kinyarwanda",de:"Kinyarwanda"},Alpha2Code:"RW"},{language:{en:"Kirundi",de:"Kirundi"},Alpha2Code:"BI"},{language:{en:"Korean",de:"Koreanisch"},Alpha2Code:"KR"},{language:{en:"Kyrgyz",de:"Kirgisisch"},Alpha2Code:"KG"},{language:{en:"Lao",de:"Laotisch"},Alpha2Code:"LA"},{language:{en:"Latvian",de:"Lettisch"},Alpha2Code:"LV"},{language:{en:"Libyan Arabic",de:"Libysches Arabisch"},Alpha2Code:"LY"},{language:{en:"Lithuanian",de:"Litauisch"},Alpha2Code:"LT"},{language:{en:"Luxembourgish",de:"Luxemburgisch"},Alpha2Code:"LU"},{language:{en:"Macedonian",de:"Mazedonisch"},Alpha2Code:"MK"},{language:{en:"Malagasy",de:"Madagassisch"},Alpha2Code:"MG"},{language:{en:"Malay",de:"Malaiisch"},Alpha2Code:"MY"},{language:{en:"Maltese",de:"Maltesisch"},Alpha2Code:"MT"},{language:{en:"Mandarin",de:"Mandarin"},Alpha2Code:"CN"},{language:{en:"Marshallese",de:"Marshallesisch"},Alpha2Code:"MH"},{language:{en:"Moldovan",de:"Moldawisch"},Alpha2Code:"MD"},{language:{en:"Mongolian",de:"Mongolisch"},Alpha2Code:"MN"},{language:{en:"Montenegrin",de:"Montenegrinisch"},Alpha2Code:"ME"},{language:{en:"Nauruan",de:"Nauruisch"},Alpha2Code:"NR"},{language:{en:"Nepali",de:"Nepalesisch"},Alpha2Code:"NP"},{language:{en:"Niuean",de:"Niueisch"},Alpha2Code:"NU"},{language:{en:"Norwegian",de:"Norwegisch"},Alpha2Code:"NO"},{language:{en:"Palauan",de:"Palauisch"},Alpha2Code:"PW"},{language:{en:"Pashto",de:"Paschtu"},Alpha2Code:"AF"},{language:{en:"Persian",de:"Persisch"},Alpha2Code:"IR"},{language:{en:"Polish",de:"Polnisch"},Alpha2Code:"PL"},{language:{en:"Portuguese",de:"Portugiesisch"},Alpha2Code:"PT"},{language:{en:"Romanian",de:"Rumänisch"},Alpha2Code:"RO"},{language:{en:"Russian",de:"Russisch"},Alpha2Code:"RU"},{language:{en:"Samoan",de:"Samoanisch"},Alpha2Code:"WS"},{language:{en:"Serbian",de:"Serbisch"},Alpha2Code:"RS"},{language:{en:"Sesotho",de:"Sesotho"},Alpha2Code:"LS"},{language:{en:"Seychellois Creole",de:"Seychellois Creole"},Alpha2Code:"SC"},{language:{en:"Sinhala",de:"Singhalesisch"},Alpha2Code:"LK"},{language:{en:"Slovak",de:"Slowakisch"},Alpha2Code:"SK"},{language:{en:"Slovenian",de:"Slowenisch"},Alpha2Code:"SI"},{language:{en:"Somali",de:"Somali"},Alpha2Code:"SO"},{language:{en:"Spanish",de:"Spanisch"},Alpha2Code:"ES"},{language:{en:"Swahili",de:"Suaheli"},Alpha2Code:"TZ"},{language:{en:"Swedish",de:"Schwedisch"},Alpha2Code:"SE"},{language:{en:"Tajik",de:"Tadschikisch"},Alpha2Code:"TJ"},{language:{en:"Tetum",de:"Tetum"},Alpha2Code:"TL"},{language:{en:"Thai",de:"Thai"},Alpha2Code:"TH"},{language:{en:"Tigrinya",de:"Tigrinya"},Alpha2Code:"ER"},{language:{en:"Tok Pisin",de:"Tok Pisin"},Alpha2Code:"PG"},{language:{en:"Tokelauan",de:"Tokelauanisch"},Alpha2Code:"TK"},{language:{en:"Tongan",de:"Tonganisch"},Alpha2Code:"TO"},{language:{en:"Turkish",de:"Türkisch"},Alpha2Code:"TR"},{language:{en:"Turkmen",de:"Turkmenisch"},Alpha2Code:"TM"},{language:{en:"Tuvaluan",de:"Tuvaluanisch"},Alpha2Code:"TV"},{language:{en:"Ukrainian",de:"Ukrainisch"},Alpha2Code:"UA"},{language:{en:"Urdu",de:"Urdu"},Alpha2Code:"PK"},{language:{en:"Uzbek",de:"Usbekisch"},Alpha2Code:"UZ"},{language:{en:"Vietnamese",de:"Vietnamesisch"},Alpha2Code:"VN"},{language:{en:"Zulu",de:"Zulu"},Alpha2Code:"ZA"}],R0=m.forwardRef((e,t)=>{k(({user:g})=>g);const i=k(({game:g})=>g),s=C();m.useImperativeHandle(t,()=>({fetchData:()=>{n(!0)}})),m.useEffect(()=>{n()},[s]);const n=async(g=!1)=>{try{const o=JSON.parse(w.data);g?window.shouldUpdate=!0:window.shouldUpdate=i.hasOwnProperty("countryOfToday")&&i.countryOfToday.hasOwnProperty("Alpha2Code")?i.countryOfToday.Alpha2Code!==o.Alpha2Code:!0;const r=fg.find(l=>l.Alpha2Code===o.Alpha2Code);r.capital=ld.find(l=>l.Alpha2Code===o.Alpha2Code),o.name=r.name[v];let c=[];o.languages.forEach(l=>{c.push(gn.find(d=>d.language.en===l))}),o.languages=c,o.flags=Cu(fg,o.Alpha2Code,8),o.currency_choices=xu(Wu,[o.currency_name],4),o.languages_choices=Eu(gn,o.languages,9),o.cities.sort(),s(Ym(o))}catch(o){A.error(new Error(o).message)}};return a.createElement(a.Fragment,null,a.createElement(kd,{position:"top-center",newestOnTop:!0,closeOnClick:!0,limit:1,stacked:!0,toastClassName:"bg-white dark:text-slate-100 dark:bg-slate-900"}),a.createElement("div",{className:"flex h-full w-full flex-auto flex-col items-center justify-start bg-white transition-all dark:bg-slate-900 dark:text-slate-100"},e.children))});function P0(){cd();const e=m.useRef(),[t,i]=m.useState("home"),[s,n]=m.useState(localStorage.completedArchiveGames?JSON.parse(localStorage.completedArchiveGames):{}),g=()=>{n(localStorage.completedArchiveGames?JSON.parse(localStorage.completedArchiveGames):{})},o=()=>{let r=s;r.flagle={};for(let[c,l]of Object.entries(s.flagle))l!==w.date&&(r[Object.entries(r).length]=l);localStorage.setItem("completedArchiveGames",JSON.stringify(r)),n(r),e.current.fetchData()};return a.createElement(Ad,{store:dd},a.createElement(zd,{loading:null,persistor:M0},a.createElement(m.Suspense,{fallback:a.createElement(T0,null)},a.createElement(R0,{ref:e},a.createElement("div",{className:"relative flex h-full w-full max-w-lg flex-col items-center justify-center px-2 py-8 mx-auto"},a.createElement("header",{className:"relative flex w-full flex-shrink items-center justify-center border-b-2 border-slate-200 px-3"},t!=="home"&&a.createElement("div",{className:"absolute -top-8 left-2 flex flex-row"},a.createElement("div",{className:"flex items-start"},a.createElement("button",{onClick:()=>{i("home")},className:"mt-4 text-black transition-all hover:text-majky-500 dark:text-white dark:hover:text-majky-500"},"↩ "+tm))),a.createElement("h1",{className:"my-1 flex-auto text-center text-3xl font-bold uppercase tracking-wide md:text-4xl"},a.createElement("span",{className:"inline-flex flex-row items-center justify-center"},a.createElement("span",{className:"text-majky-600"},Pg))),a.createElement("div",{className:"absolute -top-8 right-2 flex flex-row"},a.createElement("img",{onClick:()=>{i("rules")},title:Dm,alt:"❓",src:Id,className:"mt-4 mr-3 h-4 w-4 transition-all hover:mt-2 hover:h-6 hover:w-6 dark:invert"}),a.createElement("img",{onClick:()=>window.location.href=Qg,title:Um,alt:"🗃️",src:Hd,className:"mt-4 mr-3 text-xl h-4 w-4 transition-all hover:mt-2 hover:h-6 hover:w-6 dark:invert"}),a.createElement("img",{onClick:()=>{i("stats")},title:$m,alt:"📊",src:jd,className:"mt-4 mr-3 h-4 w-4 transition-all hover:mt-2 hover:h-6 hover:w-6 dark:invert"}),a.createElement("img",{onClick:()=>{i("settings")},title:Om,alt:"⚙️",src:Dd,className:"mt-4 h-4 w-4 transition-all hover:mt-2 hover:h-6 hover:w-6 dark:invert"}))),t==="home"&&a.createElement(y0,{onChangeGameStatus:g}),t==="rules"&&a.createElement(k0,null),t==="stats"&&a.createElement(A0,null),t==="settings"&&a.createElement(x0,null)),t==="home"&&s.hasOwnProperty("flagle")&&Object.values(s.flagle).indexOf(w.date)>-1&&a.createElement("div",{className:"my-12 text-center"},a.createElement("p",{className:"font-bold mb-5"},zm.replaceAll("<name>",Pg)),a.createElement("a",{className:"underline",href:Qg},Hm),Km&&a.createElement("button",{onClick:o,className:"block mt-5 mx-auto hover:no-underline border-[1px] border-black rounded-full px-4 py-2 text-center text-sm"},Vm))))))}const I0=e=>{e&&e instanceof Function&&Vd(()=>import("./web-vitals-23d6d37b.js"),[]).then(({getCLS:t,getFID:i,getFCP:s,getLCP:n,getTTFB:g})=>{t(e),i(e),s(e),n(e),g(e)})},j0=_d.createRoot(document.getElementById("root"));j0.render(a.createElement(a.StrictMode,null,a.createElement(P0,null)));I0();