1;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="fdcabd93-220b-c474-62cd-0009ff80692a")}catch(e){}}(); 2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,826451,273909,308647,230571,e=>{"use strict";var t,r=e.i(371075);function s(e){return e.trim().toLowerCase().split(":")[0]}function n(e){return Array.from(new Set(["onemoreguess.com","www.onemoreguess.com",...(r.default.env.ONE_MORE_GUESS_DOMAINS??"").split(",").map(s).filter(Boolean)])).includes(s(e))}function i(e){return e.trim().toLowerCase().split(":")[0]}function o(e){return n(e)||(r.default.env.VISUAL_MYSTERY_DOMAINS??"").split(",").map(i).filter(Boolean).includes(i(e))}e.s(["canShowOneMoreGuessCrossPromo",0,function(e,t){return!t&&["1jour1film.fr","www.1jour1film.fr"].includes(s(e))},"getOneMoreGuessPixelPosterUrl",0,function(e){let t=new URLSearchParams({from:"1jour1film",utm_source:"1jour1film",utm_medium:"cross_promo",utm_content:e});return`https://onemoreguess.com/?${t.toString()}`},"isOneMoreGuessDomain",0,n],273909),e.s(["isVisualMysteryDomain",0,o],308647);let a="https://1jour1film.fr",l="https://onemoreguess.com";function u(e,t){return"CLASSIC"===e&&"MOVIE"===t?a:l}let c={MOVIE:"movies",SERIES:"series",VIDEO_GAME:"video-games",POKEMON:"pokemon",SONG:"songs",WINE:"wines",WORLDCUP:"world-cup",WATCH:"watches",ACTOR:"actors",MTG:"magic",ANIME:"anime",MANGA:"manga",POKEMON_TCG:"pokemon-cards",BOOK:"books",RECORD:"albums",FOOTBALL_PLAYER:"football-players",FOOTBALL_TEAM:"football-teams",FOOTBALL_EVENT:"football-matches",BASKETBALL_PLAYER:"basketball-players",BASKETBALL_TEAM:"basketball-teams",BASKETBALL_EVENT:"basketball-matches",MOVIE_US:"movies-u
2s",CITY:"cities"};function h(e,t){return`/${"CLASSIC"===e?"classic":"pixel-poster"}/${c[t]}`}function p(e,t){let r=u(e,t);return r===a?r:`${r}${h(e,t)}`}function d(e){return p("CLASSIC",e)}function m(e,t,r){if(u(e,t)===a)return r;let s=new URL(r,l),n=s.pathname,i="/"===n?"":"/jouer"===n?"/play":"/jouer/aujourd-hui"===n?"/daily":"/user/me"===n?"/profile":n.replace(/^\/game(?=\/|$)/,"/battle").replace(/^\/challenge(?=\/|$)/,"/challenges").replace(/^\/rating-leaderboard(?=\/|$)/,"/league");return`${h(e,t)}${i}${s.search}${s.hash}`}function f(e){if(/^\/classic\/movies(?:[/?#]|$)/.test(e)){let t,r=new URL(e,a);return t=r.pathname.replace(/^\/classic\/movies(?=\/|$)/,""),r.pathname=t&&"/"!==t?"/play"===t?"/jouer":"/daily"===t?"/jouer/aujourd-hui":"/profile"===t?"/user/me":"/league"===t?"/rating-leaderboard":t.replace(/^\/battle(?=\/|$)/,"/game").replace(/^\/challenges(?=\/|$)/,"/challenge"):"/",r.toString()}return new URL(e,l).toString()}e.s(["getClassicUniverseUrl",0,d,"getExperiencePublicPath",0,m,"getExperienceRouteUrl",0,function(e,t,r,s){let n=s?new URL(s).hostname:"",i=s&&("localhost"===n||"127.0.0.1"===n||n.endsWith(".vercel.app"))?s:u(e,t);return new URL(m(e,t,r),i).toString()},"getExperienceUrl",0,p,"getOwnedPublicHref",0,function(e){return f(e)},"getOwnedPublicUrl",0,f],230571);var y=((t={}).MOVIE="MOVIE",t.SERIES="SERIES",t.VIDEO_GAME="VIDEO_GAME",t.POKEMON="POKEMON",t.SONG="SONG",t.WINE="WINE",t.WORLDCUP="WORLDCUP",t.WATCH="WATCH",t.ACTOR="ACTOR",t.MTG="MTG",t.ANIME="ANIME",t.MANGA="MANGA",t.POKEMON_TCG="POKEMON_TCG",t.BOOK="BOOK",t.RECORD="RECORD",t.FOOTBALL_PLAYER="FOOTBALL_PLAYER",t.FOOTBALL_TEAM="FOOTBALL_TEAM",t.FOOTBALL_EVENT="FOOTBALL_EVENT",t.BASKETBALL_PLAYER="BASKETBALL_PLAYER",t.BASKETBALL_TEAM="BASKETBALL_TEAM",t.BASKETBALL_EVENT="BASKETBALL_EVENT",t.CITY="CITY",t.MOVIE_US="MOVIE_US",t);function T(e){return"SONG"===e||"RECORD"===e||"FOOTBALL_PLAYER"===e||"BASKETBALL_PLAYER"===e||"FOOTBALL_TEAM"===e||"BASKETBALL_TEAM"===e}let E={"1jour1film.fr":"MOVIE","1jour1serie.fr":"SERIES","1jour1jeuvideo.jolatefri.com":"VIDEO_GAME","1jour1pokemon.jolatefri.com":"POKEMON","1jour1chanson.jolatefri.com":"SONG","1jour1vin.jolatefri.com":"WINE","1jour1mondial.jolatefri.com":"WORLDCUP","1jour1montre.jolatefri.com":"WATCH","1jour1star.jolatefri.com":"ACTOR","1jour1magic.jolatefri.com":"MTG","1jour1anime.jolatefri.com":"ANIME","1jour1manga.jolatefri.com":"MANGA","1jour1cartepokemon.jolatefri.com":"POKEMON_TCG","1jour1livre.jolatefri.com":"BOOK","1jour1album.jolatefri.com":"RECORD","footballplayer.jolatefri.com":"FOOTBALL_PLAYER","footballteam.jolatefri.com":"FOOTBALL_TEAM","footballmatch.jolatefri.com":"FOOTBALL_EVENT","basketballplayer.jolatefri.com":"BASKETBALL_PLAYER","basketballteam.jolatefri.com":"BASKETBALL_TEAM","basketballmatch.jolatefri.com":"BASKETBALL_EVENT","1jour1joueurdefoot.jolatefri.com":"FOOTBALL_PLAYER","1jour1equipedefoot.jolatefri.com":"FOOTBALL_TEAM","1jour1matchdefoot.jolatefri.com":"FOOTBALL_EVENT","1jour1joueurdebasket.jolatefri.com":"BASKETBALL_PLAYER","1jour1equipedebasket.jolatefri.com":"BASKETBALL_TEAM","1jour1matchdebasket.jolatefri.com":"BASKETBALL_EVENT","moviemaster.jolatefri.com":"MOVIE","moviestreak.com":"MOVIE_US",localhost:"MOVIE"},O={"1jour1film.fr":"fr","1jour1serie.fr":"fr","moviestreak.com":"en","1jour1joueurdefoot.jolatefri.com":"fr","1jour1equipedefoot.jolatefri.com":"fr","1jour1matchdefoot.jolatefri.com":"fr","1jour1joueurdebasket.jolatefri.com":"fr","1jour1equipedebasket.jolatefri.com":"fr","1jour1matchdebasket.jolatefri.com":"fr"},b=Object.fromEntries(Object.entries({MOVIE:{emoji:"ð¿",label:"1jour1film",url:"https://1jour1film.fr"},SERIES:{emoji:"ðº",label:"1jour1serie",url:"https://1jour1serie.fr"},VIDEO_GAME:{emoji:"ð¹ï¸",label:"1jour1jeuvideo",url:"https://1jour1jeuvideo.jolatefri.com"},POKEMON:{emoji:"ð¥",label:"1jour1pokemon",url:"https://1jour1pokemon.jolatefri.com"},SONG:{emoji:"ðµ",label:"1jour1chanson",url:"https://1jour1chanson.jolatefri.com"},WINE:{emoji:"ð·",label:"1jour1vin",url:"https://1jour1vin.jolatefri.com"},WORLDCUP:{emoji:"â½",label:"1jour1mondial",url:"https://1jour1mondial.jolatefri.com"},WATCH:{emoji:"â",label:"1jour1montre",url:"https://1jour1montre.jolatefri.com"},ACTOR:{emoji:"â",label:"1jour1star",url:"https://1jour1star.jolatefri.com"},MTG:{emoji:"ð",label:"1jour1magic",url:"https://1jour1magic.jolatefri.com"},ANIME:{emoji:"ð",label:"1jour1anime",url:"https://1jour1anime.jolatefri.com"},MANGA:{emoji:"ð",label:"1jour1manga",url:"https://1jour1manga.jolatefri.com"},POKEMON_TCG:{emoji:"ð´",label:"1jour1cartepokemon",url:"https://1jour1cartepokemon.jolatefri.com"},BOOK:{emoji:"ð",label:"1jour1livre",url:"https://1jour1livre.jolatefri.com"},RECORD:{emoji:"ð¿",label:"1jour1album",url:"https://1jour1album.jolatefri.com"},MOVIE_US:{emoji:"ð¬",label:"Movie Streak",url:"https://moviestreak.com"},FOOTBALL_PLAYER:{emoji:"â½",label:"1jour1joueurdefoot",url:"https://footballplayer.jolatefri.com"},FOOTBALL_TEAM:{emoji:"ð¡ï¸",label:"1jour1equipedefoot",url:"https://footballteam.jolatefri.com"},FOOTBALL_EVENT:{emoji:"ðï¸",label:"1jour1matchdefoot",url:"https://footballmatch.jolatefri.com"},BASKETBALL_PLAYER:{emoji:"ð",label:"1jour1joueurdebasket",url:"https://basketballplayer.jolatefri.com"},BASKETBALL_TEAM:{emoji:"ð",label:"1jour1equipedebasket",url:"https://basketballteam.jolatefri.com"},BASKETBALL_EVENT:{emoji:"â¹ï¸",label:"1jour1matchdebasket",url:"https://basketballmatch.jolatefri.com"},CITY:{emoji:"ð",label:"Ville",url:"https://city.invalid"}}).map(([e,t])=>[e,{...t,url:d(e)}])),g=Object.fromEntries(Object.entries({MOVIE:{title:"1jour1film",hashtag:"1jour1film",url:"https://1jour1film.fr"},SERIES:{title:"1jour1serie",hashtag:"1jour1serie",url:"https://1jour1serie.fr"},VIDEO_GAME:{title:"1jour1jeuvideo",hashtag:"1jour1jeuvideo",url:"https://1jour1jeuvideo.jolatefri.com"},POKEMON:{title:"1jour1pokemon",hashtag:"1jour1pokemon",url:"https://1jour1pokemon.jolatefri.com"},SONG:{title:"1jour1chanson",hashtag:"1jour1chanson",url:"https://1jour1chanson.jolatefri.com"},WINE:{title:"1jour1vin",hashtag:"1jour1vin",url:"https://1jour1vin.jolatefri.com"},WORLDCUP:{title:"1jour1mondial",hashtag:"1jour1mondial",url:"https://1jour1mondial.jolatefri.com"},WATCH:{title:"1jour1montre",hashtag:"1jour1montre",url:"https://1jour1montre.jolatefri.com"},ACTOR:{title:"1jour1star",hashtag:"1jour1star",url:"https://1jour1star.jolatefri.com"},MTG:{title:"1jour1magic",hashtag:"1jour1magic",url:"https://1jour1magic.jolatefri.com"},ANIME:{title:"1jour1anime",hashtag:"1jour1anime",url:"https://1jour1anime.jolatefri.com"}
2,MANGA:{title:"1jour1manga",hashtag:"1jour1manga",url:"https://1jour1manga.jolatefri.com"},POKEMON_TCG:{title:"1jour1cartepokemon",hashtag:"1jour1cartepokemon",url:"https://1jour1cartepokemon.jolatefri.com"},BOOK:{title:"1jour1livre",hashtag:"1jour1livre",url:"https://1jour1livre.jolatefri.com"},RECORD:{title:"1jour1album",hashtag:"1jour1album",url:"https://1jour1album.jolatefri.com"},MOVIE_US:{title:"Movie Streak",hashtag:"MovieStreak",url:"https://moviestreak.com"},FOOTBALL_PLAYER:{title:"1jour1joueurdefoot",hashtag:"1jour1joueurdefoot",url:"https://footballplayer.jolatefri.com"},FOOTBALL_TEAM:{title:"1jour1equipedefoot",hashtag:"1jour1equipedefoot",url:"https://footballteam.jolatefri.com"},FOOTBALL_EVENT:{title:"1jour1matchdefoot",hashtag:"1jour1matchdefoot",url:"https://footballmatch.jolatefri.com"},BASKETBALL_PLAYER:{title:"1jour1joueurdebasket",hashtag:"1jour1joueurdebasket",url:"https://basketballplayer.jolatefri.com"},BASKETBALL_TEAM:{title:"1jour1equipedebasket",hashtag:"1jour1equipedebasket",url:"https://basketballteam.jolatefri.com"},BASKETBALL_EVENT:{title:"1jour1matchdebasket",hashtag:"1jour1matchdebasket",url:"https://basketballmatch.jolatefri.com"},CITY:{title:"Ville",hashtag:"",url:"https://city.invalid"}}).map(([e,t])=>[e,{...t,url:d(e)}])),v={facebook:"https://www.facebook.com/people/1-Jour-1-Film/100089130201448/",twitter:"https://twitter.com/1jour1filmfr",discord:"https://discord.gg/uF4Utf8FPs"};e.s(["CONTENT_TYPE_CONFIGS",0,{MOVIE:{contentType:"MOVIE",mainPersons:{label:"Acteurs",key:"actors"},secondaryPersons:{label:"Réalisateurs",key:"directors"}},SERIES:{contentType:"SERIES",mainPersons:{label:"Acteurs",key:"actors"},secondaryPersons:{label:"Créateurs",key:"creators"}},VIDEO_GAME:{contentType:"VIDEO_GAME",mainPersons:{label:"Consoles",key:"platforms"},secondaryPersons:{label:"Ãditeurs",key:"publishers"}},POKEMON:{contentType:"POKEMON",mainPersons:{label:"Talents",key:"talents"},secondaryPersons:{label:"Ãvolutions",key:"evolutions"}},SONG:{contentType:"SONG",mainPersons:{label:"Artistes",key:"artists"},secondaryPersons:{label:"Albums",key:"albums"}},WINE:{contentType:"WINE",mainPersons:{label:"Cépages",key:"grapes"},secondaryPersons:{label:"Second vin",key:"secondWine"}},WORLDCUP:{contentType:"WORLDCUP",mainPersons:{label:"Joueurs vedettes",key:"players"},secondaryPersons:{label:"Sélectionneur",key:"coach"}},WATCH:{contentType:"WATCH",mainPersons:{label:"Marque",key:"brand"},secondaryPersons:{label:"Collection",key:"collection"}},ACTOR:{contentType:"ACTOR",mainPersons:{label:"Films",key:"films"},secondaryPersons:{label:"Réalisateurs",key:"directors"}},MTG:{contentType:"MTG",mainPersons:{label:"Couleurs",key:"actors"},secondaryPersons:{label:"Illustrateur",key:"directors"},certificationKind:"label"},ANIME:{contentType:"ANIME",mainPersons:{label:"Studios",key:"actors"},secondaryPersons:{label:"Åuvre d'origine",key:"creators"},certificationKind:"label"},MANGA:{contentType:"MANGA",mainPersons:{label:"Auteurs",key:"authors"},secondaryPersons:{label:"Dessinateurs",key:"illustrators"},certificationKind:"label"},POKEMON_TCG:{contentType:"POKEMON_TCG",mainPersons:{label:"Attaques",key:"actors"},secondaryPersons:{label:"Illustrateur",key:"directors"},certificationKind:"label"},BOOK:{contentType:"BOOK",mainPersons:{label:"Auteurs",key:"actors"},secondaryPersons:{label:"Ãditeur",key:"directors"}},RECORD:{contentType:"RECORD",mainPersons:{label:"Artistes",key:"artists"},secondaryPersons:{label:"Label",key:"directors"}},FOOTBALL_PLAYER:{contentType:"FOOTBALL_PLAYER",mainPersons:{label:"Club",key:"productions"},secondaryPersons:{label:"Club",key:"productions"},certificationKind:"label"},FOOTBALL_TEAM:{contentType:"FOOTBALL_TEAM",mainPersons:{label:"Ãquipe",key:"productions"},secondaryPersons:{label:"Ãquipe",key:"productions"},certificationKind:"label"},FOOTBALL_EVENT:{contentType:"FOOTBALL_EVENT",mainPersons:{label:"Ãquipes",key:"productions"},secondaryPersons:{label:"Ãquipes",key:"productions"},certificationKind:"label"},BASKETBALL_PLAYER:{contentType:"BASKETBALL_PLAYER",mainPersons:{label:"Ãquipe",key:"productions"},secondaryPersons:{label:"Ãquipe",key:"productions"},certificationKind:"label"},BASKETBALL_TEAM:{contentType:"BASKETBALL_TEAM",mainPersons:{label:"Ãquipe",key:"productions"},secondaryPersons:{label:"Ãquipe",key:"productions"},certificationKind:"label"},BASKETBALL_EVENT:{contentType:"BASKETBALL_EVENT",mainPersons:{label:"Ãquipes",key:"productions"},secondaryPersons:{label:"Ãquipes",key:"productions"},certificationKind:"label"},CITY:{contentType:"CITY",mainPersons:{label:"Géographie",key:"productions"},secondaryPersons:{label:"Contexte",key:"productions"},certificationKind:"label"},MOVIE_US:{contentType:"MOVIE_US",mainPersons:{label:"Cast",key:"actors"},secondaryPersons:{label:"Directors",key:"directors"}}},"CONTENT_TYPE_FOOTER_LINKS",0,b,"ContentType",()=>y,"DOMAIN_CONTENT_TYPE_MAP",0,E,"PREVIEW_CONTENT_TYPE_COOKIE",0,"mm_preview_content_type","PRICE_TIER_ORDER",0,["< 5kâ¬","5-20kâ¬","20kâ¬+"],"getArtworkAspectRatio",0,function(e){return T(e)?"1 / 1":"2 / 3"}
2,"getBackgroundImageForContentType",0,function(e,t="small"){return`/api/background?layout=artwork-v7&contentType=${encodeURIComponent(e)}${"FOOTBALL_TEAM"===e?"&sport=football-team-marks-v7":"BASKETBALL_TEAM"===e?"&sport=basketball-team-marks-v7":""}${"large"===t?"&poster=large":""}`},"getContentTypeFromDomain",0,function(e){let t=e.split(":")[0];if(o(t))return"MOVIE";if(E[t])return E[t];let r=t.split(".");if(r.length>=2){let e=r.slice(-2).join(".");if(E[e])return E[e]}return"MOVIE"},"getFooterLinkConfig",0,function(e){return b[e]},"getLocaleFromDomain",0,function(e){let t=e.split(":")[0];if(O[t])return O[t];let r=t.split(".");if(r.length>=2){let e=r.slice(-2).join(".");if(O[e])return O[e]}return null},"getShareConfig",0,function(e){return g[e]},"getSocialLinks",0,function(){return v},"isSquareArtworkContentType",0,T,"isThemeContentType",0,function(e){return"MOVIE"===e||"MOVIE_US"===e||"SERIES"===e||"MANGA"===e}],826451)},390044,e=>{"use strict";e.i(826451);var t,r=e.i(308647),s=((t={}).CLASSIC="CLASSIC",t.PIXEL_POSTER="PIXEL_POSTER",t.CHRONO="CHRONO",t);e.s(["GameType",()=>s,"PREVIEW_GAME_TYPE_COOKIE",0,"mm_preview_game_type","getGameTypeFromDomain",0,function(e){return(0,r.isVisualMysteryDomain)(e)?"PIXEL_POSTER":"CLASSIC"}])},80440,(e,t,r)=>{t.exports=e.r(802670)},694907,381454,e=>{"use strict";var t=e.i(826451),r=e.i(390044);let s={[t.ContentType.MOVIE]:"live",[t.ContentType.SERIES]:"live",[t.ContentType.POKEMON]:"live",[t.ContentType.SONG]:"live",[t.ContentType.ACTOR]:"live",[t.ContentType.VIDEO_GAME]:"live",[t.ContentType.WINE]:"hidden",[t.ContentType.WORLDCUP]:"hidden",[t.ContentType.WATCH]:"hidden",[t.ContentType.MTG]:"hidden",[t.ContentType.ANIME]:"live",[t.ContentType.MANGA]:"live",[t.ContentType.POKEMON_TCG]:"live",[t.ContentType.BOOK]:"live",[t.ContentType.RECORD]:"live",[t.ContentType.MOVIE_US]:"hidden",[t.ContentType.FOOTBALL_PLAYER]:"live",[t.ContentType.FOOTBALL_TEAM]:"hidden",[t.ContentType.FOOTBALL_EVENT]:"hidden",[t.ContentType.BASKETBALL_PLAYER]:"live",[t.ContentType.BASKETBALL_TEAM]:"hidden",[t.ContentType.BASKETBALL_EVENT]:"hidden",[t.ContentType.CITY]:"live"},n={[t.ContentType.MOVIE]:"games_tagline_movie",[t.ContentType.SERIES]:"games_tagline_series",[t.ContentType.VIDEO_GAME]:"games_tagline_videogame",[t.ContentType.POKEMON]:"games_tagline_pokemon",[t.ContentType.SONG]:"games_tagline_song",[t.ContentType.WINE]:"games_tagline_wine",[t.ContentType.WORLDCUP]:"games_tagline_worldcup",[t.ContentType.WATCH]:"games_tagline_watch",[t.ContentType.ACTOR]:"games_tagline_actor",[t.ContentType.MTG]:"games_tagline_mtg",[t.ContentType.ANIME]:"games_tagline_anime",[t.ContentType.MANGA]:"games_tagline_manga",[t.ContentType.POKEMON_TCG]:"games_tagline_pokemon_tcg",[t.ContentType.BOOK]:"games_tagline_book",[t.ContentType.RECORD]:"games_tagline_record",[t.ContentType.MOVIE_US]:"games_tagline_movie_us",[t.ContentType.FOOTBALL_PLAYER]:"games_tagline_football_player",[t.ContentType.FOOTBALL_TEAM]:"games_tagline_football_team",[t.ContentType.FOOTBALL_EVENT]:"games_tagline_football_event",[t.ContentType.BASKETBALL_PLAYER]:"games_tagline_basketball_player",[t.ContentType.BASKETBALL_TEAM]:"games_tagline_basketball_team",[t.ContentType.BASKETBALL_EVENT]:"games_tagline_basketball_event",[t.ContentType.CITY]:"games_tagline_city"},i={[t.ContentType.MANGA]:"new",[t.ContentType.FOOTBALL_PLAYER]:"new",[t.ContentType.BASKETBALL_PLAYER]:"new"},o=Object.fromEntries(Object.values(t.ContentType).map(e=>[e,{contentType:e,emoji:t.CONTENT_TYPE_FOOTER_LINKS[e].emoji,label:t.CONTENT_TYPE_FOOTER_LINKS[e].label,url:t.CONTENT_TYPE_FOOTER_LINKS[e].url,taglineKey:n[e],status:s[e],badge:i[e]}]));function a(e){return o[e]}let l={contentType:t.ContentType.MOVIE,gameType:r.GameType.PIXEL_POSTER,emoji:"ðª",logo:"/assets/onemoreguess/v3/icon-192.png",label:"One More Guess",url:"https://onemoreguess.com/",taglineKey:"games_tagline_pixel_poster",status:"live",badge:"new"};e.s(["getGameEntry",0,a,"getPromotableGames",0,function(e,s=r.GameType.CLASSIC){return[...Object.values(t.ContentType).map(e=>o[e]).filter(e=>"live"===e.status),l].filter(t=>!function(e,t,s=r.GameType.CLASSIC){return s===r.GameType.PIXEL_POSTER?e.gameType===r.GameType.PIXEL_POSTER:e.contentType===t&&(e.gameType??r.GameType.CLASSIC)===s}(t,e,s))}],381454);let u=[{slug:"classic",gameType:r.GameType.CLASSIC},{slug:"pixel-poster",gameType:r.GameType.PIXEL_POSTER},{slug:"chrono",gameType:r.GameType.CHRONO}],c=[{slug:"movies",contentType:t.ContentType.MOVIE},{slug:"series",contentType:t.ContentType.SERIES},{slug:"video-games",contentType:t.ContentType.VIDEO_GAME},{slug:"pokemon",contentType:t.ContentType.POKEMON},{slug:"songs",contentType:t.ContentType.SONG},{slug:"wines",contentType:t.ContentType.WINE},{slug:"watches",contentType:t.ContentType.WATCH},{slug:"anime",contentType:t.ContentType.ANIME},{slug:"manga",contentType:t.ContentType.MANGA},{slug:"books",contentType:t.ContentType.BOOK},{slug:"albums",contentType:t.ContentType.RECORD},{slug:"actors",contentType:t.ContentType.ACTOR},{slug:"magic",contentType:t.ContentType.MTG},{slug:"pokemon-cards",contentType:t.ContentType.POKEMON_TCG},{slug:"football-players",contentType:t.ContentType.FOOTBALL_PLAYER},{slug:"basketball-players",contentType:t.ContentType.BASKETBALL_PLAYER}
2,{slug:"movies-us",contentType:t.ContentType.MOVIE_US}],h={[r.GameType.CLASSIC]:[t.ContentType.MOVIE,t.ContentType.SERIES,t.ContentType.VIDEO_GAME,t.ContentType.POKEMON,t.ContentType.SONG,t.ContentType.WINE,t.ContentType.WATCH,t.ContentType.ANIME,t.ContentType.MANGA,t.ContentType.BOOK,t.ContentType.RECORD,t.ContentType.ACTOR,t.ContentType.MTG,t.ContentType.POKEMON_TCG,t.ContentType.FOOTBALL_PLAYER,t.ContentType.BASKETBALL_PLAYER,t.ContentType.MOVIE_US],[r.GameType.PIXEL_POSTER]:[t.ContentType.MOVIE,t.ContentType.SERIES,t.ContentType.ANIME,t.ContentType.MANGA,t.ContentType.VIDEO_GAME,t.ContentType.RECORD],[r.GameType.CHRONO]:[t.ContentType.MOVIE,t.ContentType.VIDEO_GAME,t.ContentType.RECORD]},p={[t.ContentType.MOVIE]:"movies",[t.ContentType.VIDEO_GAME]:"video-games",[t.ContentType.RECORD]:"albums"},d=new Map(Object.entries(p).flatMap(([e,t])=>t?[[`/chrono/${t}`,e]]:[])),m=new Map(c.map(({slug:e,contentType:t})=>[e,t])),f=new Map(c.map(({slug:e,contentType:t})=>[t,e])),y=new Map(u.map(({slug:e,gameType:t})=>[e,t])),T=new Map(u.map(({slug:e,gameType:t})=>[t,e]));function E(e,t){return h[e].includes(t)&&(e===r.GameType.CHRONO||"live"===a(t).status)}e.s(["getOneMoreGuessExperienceRoot",0,function(e,t){if(e===r.GameType.CHRONO){let r=p[t];return r&&E(e,t)?`/chrono/${r}`:null}let s=T.get(e),n=f.get(t)??null;return s&&n&&E(e,t)?`/${s}/${n}`:null},"getOneMoreGuessUniversesForGame",0,function(e){return c.filter(({contentType:t})=>E(e,t))},"resolveChronoExperienceRoot",0,function(e){let t=e.length>1?e.replace(/\/$/,""):e,s=d.get(t);return s?{root:t,gameType:r.GameType.CHRONO,contentType:s}:null},"resolveOneMoreGuessUniverseRoute",0,function(e){let t,s=e.split("/").filter(Boolean);if(!s.length||"chrono"===s[0])return null;let n=y.get(s[0]),i=!n,o=n??r.GameType.PIXEL_POSTER,a=n?s[1]:s[0];if(!a)return null;let l=m.get(a);if(!l||!E(o,l))return null;let u=i?`/${a}`:`/${s[0]}/${a}`,c=n?s.slice(2):s.slice(1),h=c.length?`/${c.join("/")}`:"";if(""===h||"/"===h)t="/";else if("/play"===h||"/play/"===h)t="/jouer";else if("/daily"===h||"/daily/"===h)t="/jouer/aujourd-hui";else if("/solo"===h||"/solo/"===h)t="/solo";else if(h.startsWith("/solo/"))t=h;else if("/battle"===h||"/battle/"===h)t="/game";else if(h.startsWith("/battle/"))t=`/game/${h.slice(8)}`;else if("/challenges"===h||"/challenges/"===h)t="/challenge";else if(h.startsWith("/challenges/"))t=`/challenge/${h.slice(12)}`;else if("/leaderboard"===h||"/leaderboard/"===h)t="/leaderboard";else if("/league"===h||"/league/"===h)t="/rating-leaderboard";else if(h.startsWith("/league/"))t=`/rating-leaderboard/${h.slice(8)}`;else if("/matches"===h||"/matches/"===h)t="/matches";else if(h.startsWith("/user/")){let e=h.slice(6);if(!e||e.includes("/"))return null;t=`/user/${e}`}else if("/profile"===h||"/profile/"===h)t="/user/me";else{if(!/^\/(?:themes|history|jouer)(?:\/|$)/.test(h))return null;t=h}return{contentType:l,gameType:o,publicPathname:e,internalPathname:t,internalCacheKey:`${o}:${l}`,root:u,legacy:i}},"withVisualMysteryContentType",0,function(e,t){let[r,s=""]=e.split("#",2),n=r.includes("?")?"&":"?",i=`${r}${n}contentType=${encodeURIComponent(t)}`;return s?`${i}#${s}`:i}],694907)},305484,e=>{"use strict";var t=e.i(347500),r=e.i(45216),s=t.createContext(void 0);e.s(["QueryClientProvider",0,({client:e,children:n})=>(t.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),(0,r.jsx)(s.Provider,{value:e,children:n})),"useQueryClient",0,e=>{let r=t.useContext(s);if(e)return e;if(!r)throw Error("No QueryClient set, use QueryClientProvider to set one");return r}])},882756,e=>{"use strict";var t={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},r=new class{#e=t;#t=!1;setTimeoutProvider(e){this.#e=e}setTimeout(e,t){return this.#e.setTimeout(e,t)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,t){return this.#e.setInterval(e,t)}clearInterval(e){this.#e.clearInterval(e)}};e.s(["systemSetTimeoutZero",0,function(e){setTimeout(e,0)},"timeoutManager",0,r])},813723,e=>{"use strict";var t=e.i(882756),r="u"<typeof window||"Deno"in globalThis;function s(e,t){return(t?.queryKeyHashFn||n)(e)}function n(e){return JSON.stringify(e,(e,t)=>l(t)?Object.keys(t).sort().reduce((e,r)=>(e[r]=t[r],e),{}):t)}function i(e,t){return e===t||typeof e==typeof t&&!!e&&!!t&&"object"==typeof e&&"object"==typeof t&&Object.keys(t).every(r=>i(e[r],t[r]))}var o=Object.prototype.hasOwnProperty;function a(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function l(e){if(!u(e))return!1;let t=e.constructor;if(void 0===t)return!0;let r=t.prototype;return!!u(r)&&!!r.hasOwnProperty("isPrototypeOf")&&Object.getPrototypeOf(e)===Object.prototype}function u(e){return"[object Object]"===Object.prototype.toString.call(e)}var c=Symbol();e.s(["addConsumeAwareSignal",0,function(e,t,r){let s,n=!1;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(s??=t(),n||(n=!0,s.aborted?r():s.addEventListener("abort",r,{once:!0})),s)}),e},"addToEnd",0,function(e,t,r=0){let s=[...e,t];return r&&s.length>r?s.slice(1):s},"addToStart",0,function(e,t,r=0){let s=[t,...e];return r&&s.length>r?s.slice(0,-1):s},"ensureQueryFn",0,function(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:e.queryFn&&e.queryFn!==c?e.queryFn:()=>Promise.reject(Error(`Missing queryFn: '${e.queryHash}'`))},"functionalUpdate",0,function(e,t){return"function"==typeof e?e(t):e},"hashKey",0,n,"hashQueryKeyByOptions",0,s,"isServer",0,r,"isValidTimeout",0,function(e){return"number"==typeof e&&e>=0&&e!==1/0},"keepPreviousData",0,function(e){return e},"matchMutation",0,function(e,t){let{exact:r,status:s,predicate:o,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(r){if(n(t.options.mutationKey)!==n(a))return!1}else if(!i(t.options.mutationKey,a))return!1}return(!s||t.state.status===s)&&(!o||!!o(t))},"matchQuery",0,function(e,t){let{type:r="all",exact:n,fetchStatus:o,predicate:a,queryKey:l,stale:u}=e;if(l){if(n){if(t.queryHash!==s(l,t.options))return!1}else if(!i(t.queryKey,l))return!1}if("all"!==r){let e=t.isActive();if("active"===r&&!e||"inactive"===r&&e)return!1}return("boolean"!=typeof u||t.isStale()===u)&&(!o||o===t.state.fetchStatus)&&(!a||!!a(t))},"noop",0,function(){},"partialMatchKey",0,i,"replaceData",0,function(e,t,r){return"function"==typeof r.structuralSharing?r.structuralSharing(e,t):!1!==r.structuralSharing?function e(t,r,s=0){if(t===r)return t;if(s>500)return r;let n=a(t)&&a(r);if(!n&&!(l(t)&&l(r)))return r;let i=(n?t:Object.keys(t)).length,u=n?r:Object.keys(r),c=u.length,h=n?Array(c):{},p=0;for(let a=0;a<c;a++){let l=n?a:u[a],c=t[l],d=r[l];if(c===d){h[l]=c,(n?a<i:o.call(t,l))&&p++;continue}if(null===c||null===d||"object"!=typeof c||"object"!=typeof d){h[l]=d;continue}let m=e(c,d,s+1);h[l]=m,m===c&&p++}return i===c&&p===i?t:h}(e,t):t},"resolveQueryBoolean",0,function(e,t){return"function"==typeof e?e(t):e},"resolveStaleTime",0,function(e,t){return"function"==typeof e?e(t):e},"shallowEqualObjects",0,function(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(let r in e)if(e[r]!==t[r])return!1;return!0},"shouldThrowError",0,function(e,t){return"function"==typeof e?e(...t):!!e},"skipToken",0,c,"sleep",0,function(e){return new Promise(r=>{t.timeoutManager.setTimeout(r,e)})},"timeUntilStale",0,function(e,t){return Math.max(e+(t||0)-Date.now(),0)}])},869753,e=>{"use strict";let t,r,s,n,i,o;var a=e.i(882756).systemSetTimeoutZero,l=(t=[],r=0,s=e=>{e()},n=e=>{e()},i=a,{batch:e=>{let o;r++;try{o=e()}finally{let e;--r||(e=t,t=[],e.length&&i(()=>{n(()=>
2{e.forEach(e=>{s(e)})})}))}return o},batchCalls:e=>(...t)=>{o(()=>{e(...t)})},schedule:o=e=>{r?t.push(e):i(()=>{s(e)})},setNotifyFunction:e=>{s=e},setBatchNotifyFunction:e=>{n=e},setScheduler:e=>{i=e}});e.s(["notifyManager",0,l])},646689,473620,e=>{"use strict";var t=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}};e.s(["Subscribable",0,t],473620);var r=new class extends t{#r;#s;#n;constructor(){super(),this.#n=e=>{if("u">typeof window&&window.addEventListener){let t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#s||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#s?.(),this.#s=void 0)}setEventListener(e){this.#n=e,this.#s?.(),this.#s=e(e=>{"boolean"==typeof e?this.setFocused(e):this.onFocus()})}setFocused(e){this.#r!==e&&(this.#r=e,this.onFocus())}onFocus(){let e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return"boolean"==typeof this.#r?this.#r:globalThis.document?.visibilityState!=="hidden"}};e.s(["focusManager",0,r],646689)},361221,e=>{"use strict";let t;var r=e.i(813723),s=(t=()=>r.isServer,{isServer:()=>t(),setIsServer(e){t=e}});e.s(["environmentManager",0,s])},968597,926498,848011,e=>{"use strict";var t=e.i(646689),r=e.i(473620),s=new class extends r.Subscribable{#i=!0;#s;#n;constructor(){super(),this.#n=e=>{if("u">typeof window&&window.addEventListener){let t=()=>e(!0),r=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",r)}}}}onSubscribe(){this.#s||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#s?.(),this.#s=void 0)}setEventListener(e){this.#n=e,this.#s?.(),this.#s=e(this.setOnline.bind(this))}setOnline(e){this.#i!==e&&(this.#i=e,this.listeners.forEach(t=>{t(e)}))}isOnline(){return this.#i}};e.s(["onlineManager",0,s],926498);var n=e.i(813723);function i(){let e,t,r=new Promise((r,s)=>{e=r,t=s});function s(e){Object.assign(r,e),delete r.resolve,delete r.reject}return r.status="pending",r.catch(()=>{}),r.resolve=t=>{s({status:"fulfilled",value:t}),e(t)},r.reject=e=>{s({status:"rejected",reason:e}),t(e)},r}e.s(["pendingThenable",0,i],848011);var o=e.i(361221);function a(e){return Math.min(1e3*2**e,3e4)}function l(e){return(e??"online")!=="online"||s.isOnline()}var u=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};e.s(["CancelledError",0,u,"canFetch",0,l,"createRetryer",0,function(e){let r,c=!1,h=0,p=i(),d=()=>t.focusManager.isFocused()&&("always"===e.networkMode||s.isOnline())&&e.canRun(),m=()=>l(e.networkMode)&&e.canRun(),f=e=>{"pending"===p.status&&(r?.(),p.resolve(e))},y=e=>{"pending"===p.status&&(r?.(),p.reject(e))},T=()=>new Promise(t=>{r=e=>{("pending"!==p.status||d())&&t(e)},e.onPause?.()}).then(()=>{r=void 0,"pending"===p.status&&e.onContinue?.()}),E=()=>{let t;if("pending"!==p.status)return;let r=0===h?e.initialPromise:void 0;try{t=r??e.fn()}catch(e){t=Promise.reject(e)}Promise.resolve(t).then(f).catch(t=>{if("pending"!==p.status)return;let r=e.retry??3*!o.environmentManager.isServer(),s=e.retryDelay??a,i="function"==typeof s?s(h,t):s,l=!0===r||"number"==typeof r&&h<r||"function"==typeof r&&r(h,t);c||!l?y(t):(h++,e.onFail?.(h,t),(0,n.sleep)(i).then(()=>d()?void 0:T()).then(()=>{c?y(t):E()}))})};return{promise:p,status:()=>p.status,cancel:t=>{if("pending"===p.status){let r=new u(t);y(r),e.onCancel?.(r)}},continue:()=>(r?.(),p),cancelRetry:()=>{c=!0},continueRetry:()=>{c=!1},canStart:m,start:()=>(m()?E():T().then(E),p)}}],968597)},469706,e=>{"use strict";var t=e.i(882756),r=e.i(361221),s=e.i(813723),n=class{#o;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),(0,s.isValidTimeout)(this.gcTime)&&(this.#o=t.timeoutManager.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(r.environmentManager.isServer()?1/0:3e5))}clearGcTimeout(){void 0!==this.#o&&(t.timeoutManager.clearTimeout(this.#o),this.#o=void 0)}};e.s(["Removable",0,n])},972692,143515,e=>{"use strict";e.i(371075);var t=e.i(813723),r=e.i(869753),s=e.i(968597),n=e.i(469706);function i(e){return{onFetch:(r,s)=>
2{let n=r.options,i=r.fetchOptions?.meta?.fetchMore?.direction,l=r.state.data?.pages||[],u=r.state.data?.pageParams||[],c={pages:[],pageParams:[]},h=0,p=async()=>{let s=!1,p=(0,t.ensureQueryFn)(r.options,r.fetchOptions),d=async(e,n,i)=>{let o;if(s)return Promise.reject(r.signal.reason);if(null==n&&e.pages.length)return Promise.resolve(e);let a=(o={client:r.client,queryKey:r.queryKey,pageParam:n,direction:i?"backward":"forward",meta:r.options.meta},(0,t.addConsumeAwareSignal)(o,()=>r.signal,()=>s=!0),o),l=await p(a),{maxPages:u}=r.options,c=i?t.addToStart:t.addToEnd;return{pages:c(e.pages,l,u),pageParams:c(e.pageParams,n,u)}};if(i&&l.length){let e="backward"===i,t={pages:l,pageParams:u},r=(e?a:o)(n,t);c=await d(t,r,e)}else{let t=e??l.length;do{let e=0===h?u[0]??n.initialPageParam:o(n,c);if(h>0&&null==e)break;c=await d(c,e),h++}while(h<t)}return c};r.options.persister?r.fetchFn=()=>r.options.persister?.(p,{client:r.client,queryKey:r.queryKey,meta:r.options.meta,signal:r.signal},s):r.fetchFn=p}}}function o(e,{pages:t,pageParams:r}){let s=t.length-1;return t.length>0?e.getNextPageParam(t[s],t,r[s],r):void 0}function a(e,{pages:t,pageParams:r}){return t.length>0?e.getPreviousPageParam?.(t[0],t,r[0],r):void 0}e.s(["hasNextPage",0,function(e,t){return!!t&&null!=o(e,t)},"hasPreviousPage",0,function(e,t){return!!t&&!!e.getPreviousPageParam&&null!=a(e,t)},"infiniteQueryBehavior",0,i],143515);var l=class extends n.Removable{#a;#l;#u;#c;#h;#p;#d;#m;constructor(e){super(),this.#m=!1,this.#d=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#h=e.client,this.#c=this.#h.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#l=h(this.options),this.state=e.state??this.#l,this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return this.#a}get promise(){return this.#p?.promise}setOptions(e){if(this.options={...this.#d,...e},e?._type&&(this.#a=e._type),this.updateGcTime(this.options.gcTime),this.state&&void 0===this.state.data){let e=h(this.options);void 0!==e.data&&(this.setState(c(e.data,e.dataUpdatedAt)),this.#l=e)}}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.#c.remove(this)}setData(e,r){let s=(0,t.replaceData)(this.state.data,e,this.options);return this.#f({data:s,type:"success",dataUpdatedAt:r?.updatedAt,manual:r?.manual}),s}setState(e){this.#f({type:"setState",state:e})}cancel(e){let r=this.#p?.promise;return this.#p?.cancel(e),r?r.then(t.noop).catch(t.noop):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#l}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(e=>!1!==(0,t.resolveQueryBoolean)(e.options.enabled,this))}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===t.skipToken||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0&&this.observers.some(e=>"static"===(0,t.resolveStaleTime)(e.options.staleTime,this))}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):void 0===this.state.data||this.state.isInvalidated}isStaleByTime(e=0){return void 0===this.state.data||"static"!==e&&(!!this.state.isInvalidated||!(0,t.timeUntilStale)(this.state.dataUpdatedAt,e))}onFocus(){let e=this.observers.find(e=>e.shouldFetchOnWindowFocus());e?.refetch({cancelRefetch:!1}),this.#p?.continue()}onOnline(){let e=this.observers.find(e=>e.shouldFetchOnReconnect());e?.refetch({cancelRefetch:!1}),this.#p?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#c.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#p&&(this.#m||this.#y()?this.#p.cancel({revert:!0}):this.#p.cancelRetry()),this.scheduleGc()),this.#c.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}#y(){return"paused"===this.state.fetchStatus&&"pending"===this.state.status}invalidate(){this.state.isInvalidated||this.#f({type:"invalidate"})}async fetch(e,r){let n;if("idle"!==this.state.fetchStatus&&this.#p?.status()!=="rejected"){if(void 0!==this.state.data&&r?.cancelRefetch)this.cancel({silent:!0});else if(this.#p)return this.#p.continueRetry(),this.#p.promise}if(e&&this.setOptions(e),!this.options.queryFn){let e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}let o=new AbortController,a=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(this.#m=!0,o.signal)}
2)},l=()=>{let e,s=(0,t.ensureQueryFn)(this.options,r),n=(a(e={client:this.#h,queryKey:this.queryKey,meta:this.meta}),e);return(this.#m=!1,this.options.persister)?this.options.persister(s,n,this):s(n)},u=(a(n={fetchOptions:r,options:this.options,queryKey:this.queryKey,client:this.#h,state:this.state,fetchFn:l}),n),c="infinite"===this.#a?i(this.options.pages):this.options.behavior;c?.onFetch(u,this),this.#u=this.state,("idle"===this.state.fetchStatus||this.state.fetchMeta!==u.fetchOptions?.meta)&&this.#f({type:"fetch",meta:u.fetchOptions?.meta}),this.#p=(0,s.createRetryer)({initialPromise:r?.initialPromise,fn:u.fetchFn,onCancel:e=>{e instanceof s.CancelledError&&e.revert&&this.setState({...this.#u,fetchStatus:"idle"}),o.abort()},onFail:(e,t)=>{this.#f({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#f({type:"pause"})},onContinue:()=>{this.#f({type:"continue"})},retry:u.options.retry,retryDelay:u.options.retryDelay,networkMode:u.options.networkMode,canRun:()=>!0});try{let e=await this.#p.start();if(void 0===e)throw Error(`${this.queryHash} data is undefined`);return this.setData(e),this.#c.config.onSuccess?.(e,this),this.#c.config.onSettled?.(e,this.state.error,this),e}catch(e){if(e instanceof s.CancelledError){if(e.silent)return this.#p.promise;else if(e.revert){if(void 0===this.state.data)throw e;return this.state.data}}throw this.#f({type:"error",error:e}),this.#c.config.onError?.(e,this),this.#c.config.onSettled?.(this.state.data,e,this),e}finally{this.scheduleGc()}}#f(e){let t=t=>{switch(e.type){case"failed":return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...t,fetchStatus:"paused"};case"continue":return{...t,fetchStatus:"fetching"};case"fetch":return{...t,...u(t.data,this.options),fetchMeta:e.meta??null};case"success":let r={...t,...c(e.data,e.dataUpdatedAt),dataUpdateCount:t.dataUpdateCount+1,...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#u=e.manual?r:void 0,r;case"error":let s=e.error;return{...t,error:s,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:s,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}};this.state=t(this.state),r.notifyManager.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate()}),this.#c.notify({query:this,type:"updated",action:e})})}};function u(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:(0,s.canFetch)(t.networkMode)?"fetching":"paused",...void 0===e&&{error:null,status:"pending"}}}function c(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function h(e){let t="function"==typeof e.initialData?e.initialData():e.initialData,r=void 0!==t,s=r?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?s??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}e.s(["Query",0,l,"fetchState",0,u],972692)},969717,100091,879527,e=>{"use strict";let t;var r=e.i(646689),s=e.i(361221),n=e.i(869753),i=e.i(972692),o=e.i(473620),a=e.i(848011),l=e.i(813723),u=e.i(882756),c=class extends o.Subscribable{constructor(e,t){super(),this.options=t,this.#h=e,this.#T=null,this.#E=(0,a.pendingThenable)(),this.bindMethods(),this.setOptions(t)}#h;#O=void 0;#b=void 0;#g=void 0;#v;#A;#E;#T;#C;#j;#S;#L;#R;#_;#P=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.#O.addObserver(this),h(this.#O,this.options)?this.#M():this.updateResult(),this.#I())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return p(this.#O,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return p(this.#O,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#B(),this.#k(),this.#O.removeObserver(this)}setOptions(e){let t=this.options,r=this.#O;if(this.options=this.#h.defaultQueryOptions(e),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled&&"function"!=typeof this.options.enabled&&"boolean"!=typeof(0,l.resolveQueryBoolean)(this.options.enabled,this.#O))throw Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#N(),this.#O.setOptions(this.options),t._defaulted&&!(0,l.shallowEqualObjects)(this.options,t)&&this.#h.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#O,observer:this});let s=this.hasListeners();s&&d(this.#O,r,this.options,t)&&this.#M(),this.updateResult(),s&&(this.#O!==r||(0,l.resolveQueryBoolean)(this.options.enabled,this.#O)!==(0,l.resolveQueryBoolean)(t.enabled,this.#O)||(0,l.resolveStaleTime)(this.options.staleTime,this.#O)!==(0,l.resolveStaleTime)(t.staleTime,this.#O))&&this.#w();let n=this.#F();s&&(this.#O!==r||(0,l.resolveQueryBoolean)(this.options.enabled,this.#O)!==(0,l.resolveQueryBoolean)(t.enabled,this.#O)||n!==this.#_)&&this.#K(n)}getOptimisticResult(e){var t,r;let s=this.#h.getQueryCache().build(this.#h,e),n=this.createResult(s,e);return t=this,r=n,(0,l.shallowEqualObjects)(t.getCurrentResult(),r)||(this.#g=n,this.#A=this.options,this.#v=this.#O.state),n}getCurrentResult(){return this.#g}trackResult(e,t){return new Proxy(e,{get:(e,r)=>(this.trackProp(r),t?.(r),"promise"===r&&(this.trackProp("data"),this.options.experimental_prefetchInRender||"pending"!==this.#E.status||this.#E.reject(Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(e,r))})}trackProp(e){this.#P.add(e)}getCurrentQuery(){return this.#O}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){let t=this.#h.defaultQueryOptions(e),r=this.#h.getQueryCache().build(this.#h,t);return r.fetch().then(()=>this.createResult(r,t))}fetch(e){return this.#M({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#g))}#M(e){this.#N();let t=this.#O.fetch(this.options,e);return e?.throwOnError||(t=t.catch(l.noop)),t}#w(){this.#B();let e=(0,l.resolveStaleTime)(this.options.staleTime,this.#O);if(s.environmentManager.isServer()||this.#g.isStale||!(0,l.isValidTimeout)(e))return;let t=(0,l.timeUntilStale)(this.#g.dataUpdatedAt,e);this.#L=u.timeoutManager.setTimeout(()=>{this.#g.isStale||this.updateResult()},t+1)}#F(){return("function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.#O):this.options.refetchInterval)??!1}#K(e){this.#k(),this.#_=e,!s.environmentManager.isServer()&&!1!==(0,l.resolveQueryBoolean)(this.options.enabled,this.#O)&&(0,l.isValidTimeout)(this.#_)&&0!==this.#_&&(this.#R=u.timeoutManager.setInterval(()=>
2{(this.options.refetchIntervalInBackground||r.focusManager.isFocused())&&this.#M()},this.#_))}#I(){this.#w(),this.#K(this.#F())}#B(){void 0!==this.#L&&(u.timeoutManager.clearTimeout(this.#L),this.#L=void 0)}#k(){void 0!==this.#R&&(u.timeoutManager.clearInterval(this.#R),this.#R=void 0)}createResult(e,t){let r,s=this.#O,n=this.options,o=this.#g,u=this.#v,c=this.#A,p=e!==s?e.state:this.#b,{state:f}=e,y={...f},T=!1;if(t._optimisticResults){let r=this.hasListeners(),o=!r&&h(e,t),a=r&&d(e,s,t,n);(o||a)&&(y={...y,...(0,i.fetchState)(f.data,e.options)}),"isRestoring"===t._optimisticResults&&(y.fetchStatus="idle")}let{error:E,errorUpdatedAt:O,status:b}=y;r=y.data;let g=!1;if(void 0!==t.placeholderData&&void 0===r&&"pending"===b){let e;o?.isPlaceholderData&&t.placeholderData===c?.placeholderData?(e=o.data,g=!0):e="function"==typeof t.placeholderData?t.placeholderData(this.#S?.state.data,this.#S):t.placeholderData,void 0!==e&&(b="success",r=(0,l.replaceData)(o?.data,e,t),T=!0)}if(t.select&&void 0!==r&&!g)if(o&&r===u?.data&&t.select===this.#C)r=this.#j;else try{this.#C=t.select,r=t.select(r),r=(0,l.replaceData)(o?.data,r,t),this.#j=r,this.#T=null}catch(e){this.#T=e}this.#T&&(E=this.#T,r=this.#j,O=Date.now(),b="error");let v="fetching"===y.fetchStatus,A="pending"===b,C="error"===b,j=A&&v,S=void 0!==r,L={status:b,fetchStatus:y.fetchStatus,isPending:A,isSuccess:"success"===b,isError:C,isInitialLoading:j,isLoading:j,data:r,dataUpdatedAt:y.dataUpdatedAt,error:E,errorUpdatedAt:O,failureCount:y.fetchFailureCount,failureReason:y.fetchFailureReason,errorUpdateCount:y.errorUpdateCount,isFetched:e.isFetched(),isFetchedAfterMount:y.dataUpdateCount>p.dataUpdateCount||y.errorUpdateCount>p.errorUpdateCount,isFetching:v,isRefetching:v&&!A,isLoadingError:C&&!S,isPaused:"paused"===y.fetchStatus,isPlaceholderData:T,isRefetchError:C&&S,isStale:m(e,t),refetch:this.refetch,promise:this.#E,isEnabled:!1!==(0,l.resolveQueryBoolean)(t.enabled,e)};if(this.options.experimental_prefetchInRender){let t=void 0!==L.data,r="error"===L.status&&!t,n=e=>{r?e.reject(L.error):t&&e.resolve(L.data)},i=()=>{n(this.#E=L.promise=(0,a.pendingThenable)())},o=this.#E;switch(o.status){case"pending":e.queryHash===s.queryHash&&n(o);break;case"fulfilled":(r||L.data!==o.value)&&i();break;case"rejected":r&&L.error===o.reason||i()}}return L}updateResult(){let e=this.#g,t=this.createResult(this.#O,this.options);if(this.#v=this.#O.state,this.#A=this.options,void 0!==this.#v.data&&(this.#S=this.#O),(0,l.shallowEqualObjects)(t,e))return;this.#g=t;let r=()=>{if(!e)return!0;let{notifyOnChangeProps:t}=this.options,r="function"==typeof t?t():t;if("all"===r||!r&&!this.#P.size)return!0;let s=new Set(r??this.#P);return this.options.throwOnError&&s.add("error"),Object.keys(this.#g).some(t=>this.#g[t]!==e[t]&&s.has(t))};this.#G({listeners:r()})}#N(){let e=this.#h.getQueryCache().build(this.#h,this.options);if(e===this.#O)return;let t=this.#O;this.#O=e,this.#b=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#I()}#G(e){n.notifyManager.batch(()=>{e.listeners&&this.listeners.forEach(e=>{e(this.#g)}),this.#h.getQueryCache().notify({query:this.#O,type:"observerResultsUpdated"})})}};function h(e,t){return!1!==(0,l.resolveQueryBoolean)(t.enabled,e)&&void 0===e.state.data&&("error"!==e.state.status||!1!==(0,l.resolveQueryBoolean)(t.retryOnMount,e))||void 0!==e.state.data&&p(e,t,t.refetchOnMount)}function p(e,t,r){if(!1!==(0,l.resolveQueryBoolean)(t.enabled,e)&&"static"!==(0,l.resolveStaleTime)(t.staleTime,e)){let s="function"==typeof r?r(e):r;return"always"===s||!1!==s&&m(e,t)}return!1}function d(e,t,r,s){return(e!==t||!1===(0,l.resolveQueryBoolean)(s.enabled,e))&&(!r.suspense||"error"!==e.state.status)&&m(e,r)}function m(e,t){return!1!==(0,l.resolveQueryBoolean)(t.enabled,e)&&e.isStaleByTime((0,l.resolveStaleTime)(t.staleTime,e))}e.s(["QueryObserver",0,c],100091),e.i(371075);var f=e.i(347500),y=e.i(305484);e.i(45216);var T=f.createContext((t=!1,{clearReset:()=>{t=!1},reset:()=>{t=!0},isReset:()=>t})),E=f.createContext(!1);E.Provider;var O=(e,t,r)=>t.fetchOptimistic(e).catch(()=>{r.clearReset()});function b(e,t,r){let i,o=f.useContext(E),a=f.useContext(T),u=(0,y.useQueryClient)(r),c=u.defaultQueryOptions(e);u.getDefaultOptions().queries?._experimental_beforeQuery?.(c);let h=u.getQueryCache().get(c.queryHash);if(c._optimisticResults=o?"isRestoring":"optimistic",c.suspense){let e=e=>"static"===e?e:Math.max(e??1e3,1e3),t=c.staleTime;c.staleTime="function"==typeof t?(...r)=>e(t(...r)):e(t),"number"==typeof c.gcTime&&(c.gcTime=Math.max(c.gcTime,1e3))}i=h?.state.error&&"function"==typeof c.throwOnError?(0,l.shouldThrowError)(c.throwOnError,[h.state.error,h]):c.throwOnError,(c.suspense||c.experimental_prefetchInRender||i)&&!a.isReset()&&(c.retryOnMount=!1),f.useEffect(()=>{a.clearReset()},[a]);let p=!u.getQueryCache().get(c.queryHash),[d]=f.useState(()=>new t(u,c)),m=d.getOptimisticResult(c),b=!o&&!1!==e.subscribed;if(f.useSyncExternalStore(f.useCallback(e=>{let t=b?d.subscribe(n.notifyManager.batchCalls(e)):l.noop;return d.updateResult(),t},[d,b]),()=>d.getCurrentResult(),()=>d.getCurrentResult()),f.useEffect(()=>{d.setOptions(c)},[c,d]),c?.suspense&&m.isPending)throw O(c,d,a);if((({result:e,errorResetBoundary:t,throwOnError:r,query:s,suspense:n})=>e.isError&&!t.isReset()&&!e.isFetching&&s&&(n&&void 0===e.data||(0,l.shouldThrowError)(r,[e.error,s])))({result:m,errorResetBoundary:a,throwOnError:c.throwOnError,query:h,suspense:c.suspense}))throw m.error;if(u.getDefaultOptions().queries?._experimental_afterQuery?.(c,m),c.experimental_prefetchInRender&&!s.environmentManager.isServer()&&m.isLoading&&m.isFetching&&!o){let e=p?O(c,d,a):h?.promise;e?.catch(l.noop).finally(()=>{d.updateResult()})}return c.notifyOnChangeProps?m:d.trackResult(m)}e.s(["useBaseQuery",0,b],879527),e.s(["useQuery",0,function(e,t){return b(e,c,t)}],969717)}]); 3 4//# debugId=fdcabd93-220b-c474-62cd-0009ff80692a 5//# sourceMappingURL=0-dmu_jl~w24x.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.