From b79b4128ec3a5b4002f80308b578634d58aef111 Mon Sep 17 00:00:00 2001 From: KavetiRohith Date: Thu, 14 Sep 2023 19:59:42 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20KavetiRo?= =?UTF-8?q?hith/GameHub@beb81b169387ba364f26f6ffe6641f66801b5764=20?= =?UTF-8?q?=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/{index-c246ef2a.js => index-8c1de0ce.js} | 2 +- index.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) rename assets/{index-c246ef2a.js => index-8c1de0ce.js} (98%) diff --git a/assets/index-c246ef2a.js b/assets/index-8c1de0ce.js similarity index 98% rename from assets/index-c246ef2a.js rename to assets/index-8c1de0ce.js index 065d38b..61e92fd 100644 --- a/assets/index-c246ef2a.js +++ b/assets/index-8c1de0ce.js @@ -367,4 +367,4 @@ and limitations under the License. Pull Down To Refresh functionality will not work as expected. Check README.md for usage'`)},t.prototype.componentWillUnmount=function(){this.el&&(this.el.removeEventListener("scroll",this.throttledOnScrollListener),this.props.pullDownToRefresh&&(this.el.removeEventListener("touchstart",this.onStart),this.el.removeEventListener("touchmove",this.onMove),this.el.removeEventListener("touchend",this.onEnd),this.el.removeEventListener("mousedown",this.onStart),this.el.removeEventListener("mousemove",this.onMove),this.el.removeEventListener("mouseup",this.onEnd)))},t.prototype.componentDidUpdate=function(n){this.props.dataLength!==n.dataLength&&(this.actionTriggered=!1,this.setState({showLoader:!1}))},t.getDerivedStateFromProps=function(n,r){var o=n.dataLength!==r.prevDataLength;return o?Gs(Gs({},r),{prevDataLength:n.dataLength}):null},t.prototype.isElementAtTop=function(n,r){r===void 0&&(r=.8);var o=n===document.body||n===document.documentElement?window.screen.availHeight:n.clientHeight,i=x1(r);return i.unit===ki.Pixel?n.scrollTop<=i.value+o-n.scrollHeight+1:n.scrollTop<=i.value/100+o-n.scrollHeight+1},t.prototype.isElementAtBottom=function(n,r){r===void 0&&(r=.8);var o=n===document.body||n===document.documentElement?window.screen.availHeight:n.clientHeight,i=x1(r);return i.unit===ki.Pixel?n.scrollTop+o>=n.scrollHeight-i.value:n.scrollTop+o>=i.value/100*n.scrollHeight},t.prototype.render=function(){var n=this,r=Gs({height:this.props.height||"auto",overflow:"auto",WebkitOverflowScrolling:"touch"},this.props.style),o=this.props.hasChildren||!!(this.props.children&&this.props.children instanceof Array&&this.props.children.length),i=this.props.pullDownToRefresh&&this.props.height?{overflow:"auto"}:{};return nt.createElement("div",{style:i,className:"infinite-scroll-component__outerdiv"},nt.createElement("div",{className:"infinite-scroll-component "+(this.props.className||""),ref:function(s){return n._infScroll=s},style:r},this.props.pullDownToRefresh&&nt.createElement("div",{style:{position:"relative"},ref:function(s){return n._pullDown=s}},nt.createElement("div",{style:{position:"absolute",left:0,right:0,top:-1*this.maxPullDownDistance}},this.state.pullToRefreshThresholdBreached?this.props.releaseToRefreshContent:this.props.pullDownToRefreshContent)),this.props.children,!this.state.showLoader&&!o&&this.props.hasMore&&this.props.loader,this.state.showLoader&&this.props.hasMore&&this.props.loader,!this.props.hasMore&&this.props.endMessage))},t}(b.Component);function sk(e,t){return function(){return e.apply(t,arguments)}}const{toString:Yj}=Object.prototype,{getPrototypeOf:ag}=Object,qc=(e=>t=>{const n=Yj.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Fn=e=>(e=e.toLowerCase(),t=>qc(t)===e),Qc=e=>t=>typeof t===e,{isArray:Gi}=Array,Ea=Qc("undefined");function Xj(e){return e!==null&&!Ea(e)&&e.constructor!==null&&!Ea(e.constructor)&&an(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const ak=Fn("ArrayBuffer");function qj(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&ak(e.buffer),t}const Qj=Qc("string"),an=Qc("function"),lk=Qc("number"),Zc=e=>e!==null&&typeof e=="object",Zj=e=>e===!0||e===!1,au=e=>{if(qc(e)!=="object")return!1;const t=ag(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Jj=Fn("Date"),eF=Fn("File"),tF=Fn("Blob"),nF=Fn("FileList"),rF=e=>Zc(e)&&an(e.pipe),oF=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||an(e.append)&&((t=qc(e))==="formdata"||t==="object"&&an(e.toString)&&e.toString()==="[object FormData]"))},iF=Fn("URLSearchParams"),sF=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Wa(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),Gi(e))for(r=0,o=e.length;r0;)if(o=n[r],t===o.toLowerCase())return o;return null}const ck=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),dk=e=>!Ea(e)&&e!==ck;function th(){const{caseless:e}=dk(this)&&this||{},t={},n=(r,o)=>{const i=e&&uk(t,o)||o;au(t[i])&&au(r)?t[i]=th(t[i],r):au(r)?t[i]=th({},r):Gi(r)?t[i]=r.slice():t[i]=r};for(let r=0,o=arguments.length;r(Wa(t,(o,i)=>{n&&an(o)?e[i]=sk(o,n):e[i]=o},{allOwnKeys:r}),e),lF=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),uF=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},cF=(e,t,n,r)=>{let o,i,s;const a={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)s=o[i],(!r||r(s,e,t))&&!a[s]&&(t[s]=e[s],a[s]=!0);e=n!==!1&&ag(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},dF=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},fF=e=>{if(!e)return null;if(Gi(e))return e;let t=e.length;if(!lk(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},pF=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&ag(Uint8Array)),hF=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=r.next())&&!o.done;){const i=o.value;t.call(e,i[0],i[1])}},mF=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},gF=Fn("HTMLFormElement"),vF=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),S1=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),yF=Fn("RegExp"),fk=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Wa(n,(o,i)=>{let s;(s=t(o,i,e))!==!1&&(r[i]=s||o)}),Object.defineProperties(e,r)},bF=e=>{fk(e,(t,n)=>{if(an(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(an(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},xF=(e,t)=>{const n={},r=o=>{o.forEach(i=>{n[i]=!0})};return Gi(e)?r(e):r(String(e).split(t)),n},SF=()=>{},wF=(e,t)=>(e=+e,Number.isFinite(e)?e:t),xf="abcdefghijklmnopqrstuvwxyz",w1="0123456789",pk={DIGIT:w1,ALPHA:xf,ALPHA_DIGIT:xf+xf.toUpperCase()+w1},kF=(e=16,t=pk.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function CF(e){return!!(e&&an(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const EF=e=>{const t=new Array(10),n=(r,o)=>{if(Zc(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[o]=r;const i=Gi(r)?[]:{};return Wa(r,(s,a)=>{const l=n(s,o+1);!Ea(l)&&(i[a]=l)}),t[o]=void 0,i}}return r};return n(e,0)},_F=Fn("AsyncFunction"),TF=e=>e&&(Zc(e)||an(e))&&an(e.then)&&an(e.catch),M={isArray:Gi,isArrayBuffer:ak,isBuffer:Xj,isFormData:oF,isArrayBufferView:qj,isString:Qj,isNumber:lk,isBoolean:Zj,isObject:Zc,isPlainObject:au,isUndefined:Ea,isDate:Jj,isFile:eF,isBlob:tF,isRegExp:yF,isFunction:an,isStream:rF,isURLSearchParams:iF,isTypedArray:pF,isFileList:nF,forEach:Wa,merge:th,extend:aF,trim:sF,stripBOM:lF,inherits:uF,toFlatObject:cF,kindOf:qc,kindOfTest:Fn,endsWith:dF,toArray:fF,forEachEntry:hF,matchAll:mF,isHTMLForm:gF,hasOwnProperty:S1,hasOwnProp:S1,reduceDescriptors:fk,freezeMethods:bF,toObjectSet:xF,toCamelCase:vF,noop:SF,toFiniteNumber:wF,findKey:uk,global:ck,isContextDefined:dk,ALPHABET:pk,generateString:kF,isSpecCompliantForm:CF,toJSONObject:EF,isAsyncFn:_F,isThenable:TF};function se(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}M.inherits(se,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:M.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const hk=se.prototype,mk={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{mk[e]={value:e}});Object.defineProperties(se,mk);Object.defineProperty(hk,"isAxiosError",{value:!0});se.from=(e,t,n,r,o,i)=>{const s=Object.create(hk);return M.toFlatObject(e,s,function(l){return l!==Error.prototype},a=>a!=="isAxiosError"),se.call(s,e.message,t,n,r,o),s.cause=e,s.name=e.name,i&&Object.assign(s,i),s};const PF=null;function nh(e){return M.isPlainObject(e)||M.isArray(e)}function gk(e){return M.endsWith(e,"[]")?e.slice(0,-2):e}function k1(e,t,n){return e?e.concat(t).map(function(o,i){return o=gk(o),!n&&i?"["+o+"]":o}).join(n?".":""):t}function AF(e){return M.isArray(e)&&!e.some(nh)}const RF=M.toFlatObject(M,{},null,function(t){return/^is[A-Z]/.test(t)});function Jc(e,t,n){if(!M.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=M.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(y,w){return!M.isUndefined(w[y])});const r=n.metaTokens,o=n.visitor||c,i=n.dots,s=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&M.isSpecCompliantForm(t);if(!M.isFunction(o))throw new TypeError("visitor must be a function");function u(m){if(m===null)return"";if(M.isDate(m))return m.toISOString();if(!l&&M.isBlob(m))throw new se("Blob is not supported. Use a Buffer instead.");return M.isArrayBuffer(m)||M.isTypedArray(m)?l&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function c(m,y,w){let g=m;if(m&&!w&&typeof m=="object"){if(M.endsWith(y,"{}"))y=r?y:y.slice(0,-2),m=JSON.stringify(m);else if(M.isArray(m)&&AF(m)||(M.isFileList(m)||M.endsWith(y,"[]"))&&(g=M.toArray(m)))return y=gk(y),g.forEach(function(v,S){!(M.isUndefined(v)||v===null)&&t.append(s===!0?k1([y],S,i):s===null?y:y+"[]",u(v))}),!1}return nh(m)?!0:(t.append(k1(w,y,i),u(m)),!1)}const d=[],f=Object.assign(RF,{defaultVisitor:c,convertValue:u,isVisitable:nh});function p(m,y){if(!M.isUndefined(m)){if(d.indexOf(m)!==-1)throw Error("Circular reference detected in "+y.join("."));d.push(m),M.forEach(m,function(g,h){(!(M.isUndefined(g)||g===null)&&o.call(t,g,M.isString(h)?h.trim():h,y,f))===!0&&p(g,y?y.concat(h):[h])}),d.pop()}}if(!M.isObject(e))throw new TypeError("data must be an object");return p(e),t}function C1(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function lg(e,t){this._pairs=[],e&&Jc(e,this,t)}const vk=lg.prototype;vk.append=function(t,n){this._pairs.push([t,n])};vk.toString=function(t){const n=t?function(r){return t.call(this,r,C1)}:C1;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function MF(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function yk(e,t,n){if(!t)return e;const r=n&&n.encode||MF,o=n&&n.serialize;let i;if(o?i=o(t,n):i=M.isURLSearchParams(t)?t.toString():new lg(t,n).toString(r),i){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class $F{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){M.forEach(this.handlers,function(r){r!==null&&t(r)})}}const E1=$F,bk={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},OF=typeof URLSearchParams<"u"?URLSearchParams:lg,zF=typeof FormData<"u"?FormData:null,LF=typeof Blob<"u"?Blob:null,DF=(()=>{let e;return typeof navigator<"u"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),IF=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),bn={isBrowser:!0,classes:{URLSearchParams:OF,FormData:zF,Blob:LF},isStandardBrowserEnv:DF,isStandardBrowserWebWorkerEnv:IF,protocols:["http","https","file","blob","url","data"]};function jF(e,t){return Jc(e,new bn.classes.URLSearchParams,Object.assign({visitor:function(n,r,o,i){return bn.isNode&&M.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function FF(e){return M.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function BF(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r=n.length;return s=!s&&M.isArray(o)?o.length:s,l?(M.hasOwnProp(o,s)?o[s]=[o[s],r]:o[s]=r,!a):((!o[s]||!M.isObject(o[s]))&&(o[s]=[]),t(n,r,o[s],i)&&M.isArray(o[s])&&(o[s]=BF(o[s])),!a)}if(M.isFormData(e)&&M.isFunction(e.entries)){const n={};return M.forEachEntry(e,(r,o)=>{t(FF(r),o,n,0)}),n}return null}function NF(e,t,n){if(M.isString(e))try{return(t||JSON.parse)(e),M.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const ug={transitional:bk,adapter:bn.isNode?"http":"xhr",transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,i=M.isObject(t);if(i&&M.isHTMLForm(t)&&(t=new FormData(t)),M.isFormData(t))return o&&o?JSON.stringify(xk(t)):t;if(M.isArrayBuffer(t)||M.isBuffer(t)||M.isStream(t)||M.isFile(t)||M.isBlob(t))return t;if(M.isArrayBufferView(t))return t.buffer;if(M.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return jF(t,this.formSerializer).toString();if((a=M.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return Jc(a?{"files[]":t}:t,l&&new l,this.formSerializer)}}return i||o?(n.setContentType("application/json",!1),NF(t)):t}],transformResponse:[function(t){const n=this.transitional||ug.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(t&&M.isString(t)&&(r&&!this.responseType||o)){const s=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(a){if(s)throw a.name==="SyntaxError"?se.from(a,se.ERR_BAD_RESPONSE,this,null,this.response):a}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:bn.classes.FormData,Blob:bn.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};M.forEach(["delete","get","head","post","put","patch"],e=>{ug.headers[e]={}});const cg=ug,VF=M.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),HF=e=>{const t={};let n,r,o;return e&&e.split(` `).forEach(function(s){o=s.indexOf(":"),n=s.substring(0,o).trim().toLowerCase(),r=s.substring(o+1).trim(),!(!n||t[n]&&VF[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},_1=Symbol("internals");function fs(e){return e&&String(e).trim().toLowerCase()}function lu(e){return e===!1||e==null?e:M.isArray(e)?e.map(lu):String(e)}function WF(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const UF=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Sf(e,t,n,r,o){if(M.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!M.isString(t)){if(M.isString(r))return t.indexOf(r)!==-1;if(M.isRegExp(r))return r.test(t)}}function GF(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function KF(e,t){const n=M.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(o,i,s){return this[r].call(this,t,o,i,s)},configurable:!0})})}let ed=class{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function i(a,l,u){const c=fs(l);if(!c)throw new Error("header name must be a non-empty string");const d=M.findKey(o,c);(!d||o[d]===void 0||u===!0||u===void 0&&o[d]!==!1)&&(o[d||l]=lu(a))}const s=(a,l)=>M.forEach(a,(u,c)=>i(u,c,l));return M.isPlainObject(t)||t instanceof this.constructor?s(t,n):M.isString(t)&&(t=t.trim())&&!UF(t)?s(HF(t),n):t!=null&&i(n,t,r),this}get(t,n){if(t=fs(t),t){const r=M.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return WF(o);if(M.isFunction(n))return n.call(this,o,r);if(M.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=fs(t),t){const r=M.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Sf(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function i(s){if(s=fs(s),s){const a=M.findKey(r,s);a&&(!n||Sf(r,r[a],a,n))&&(delete r[a],o=!0)}}return M.isArray(t)?t.forEach(i):i(t),o}clear(t){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const i=n[r];(!t||Sf(this,this[i],i,t,!0))&&(delete this[i],o=!0)}return o}normalize(t){const n=this,r={};return M.forEach(this,(o,i)=>{const s=M.findKey(r,i);if(s){n[s]=lu(o),delete n[i];return}const a=t?GF(i):String(i).trim();a!==i&&delete n[i],n[a]=lu(o),r[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return M.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&M.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` -`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(o=>r.set(o)),r}static accessor(t){const r=(this[_1]=this[_1]={accessors:{}}).accessors,o=this.prototype;function i(s){const a=fs(s);r[a]||(KF(o,s),r[a]=!0)}return M.isArray(t)?t.forEach(i):i(t),this}};ed.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);M.reduceDescriptors(ed.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});M.freezeMethods(ed);const or=ed;function wf(e,t){const n=this||cg,r=t||n,o=or.from(r.headers);let i=r.data;return M.forEach(e,function(a){i=a.call(n,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function Sk(e){return!!(e&&e.__CANCEL__)}function Ua(e,t,n){se.call(this,e??"canceled",se.ERR_CANCELED,t,n),this.name="CanceledError"}M.inherits(Ua,se,{__CANCEL__:!0});function YF(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new se("Request failed with status code "+n.status,[se.ERR_BAD_REQUEST,se.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const XF=bn.isStandardBrowserEnv?function(){return{write:function(n,r,o,i,s,a){const l=[];l.push(n+"="+encodeURIComponent(r)),M.isNumber(o)&&l.push("expires="+new Date(o).toGMTString()),M.isString(i)&&l.push("path="+i),M.isString(s)&&l.push("domain="+s),a===!0&&l.push("secure"),document.cookie=l.join("; ")},read:function(n){const r=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return r?decodeURIComponent(r[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function qF(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function QF(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function wk(e,t){return e&&!qF(t)?QF(e,t):t}const ZF=bn.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function o(i){let s=i;return t&&(n.setAttribute("href",s),s=n.href),n.setAttribute("href",s),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=o(window.location.href),function(s){const a=M.isString(s)?o(s):s;return a.protocol===r.protocol&&a.host===r.host}}():function(){return function(){return!0}}();function JF(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function eB(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,i=0,s;return t=t!==void 0?t:1e3,function(l){const u=Date.now(),c=r[i];s||(s=u),n[o]=l,r[o]=u;let d=i,f=0;for(;d!==o;)f+=n[d++],d=d%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),u-s{const i=o.loaded,s=o.lengthComputable?o.total:void 0,a=i-n,l=r(a),u=i<=s;n=i;const c={loaded:i,total:s,progress:s?i/s:void 0,bytes:a,rate:l||void 0,estimated:l&&s&&u?(s-i)/l:void 0,event:o};c[t?"download":"upload"]=!0,e(c)}}const tB=typeof XMLHttpRequest<"u",nB=tB&&function(e){return new Promise(function(n,r){let o=e.data;const i=or.from(e.headers).normalize(),s=e.responseType;let a;function l(){e.cancelToken&&e.cancelToken.unsubscribe(a),e.signal&&e.signal.removeEventListener("abort",a)}M.isFormData(o)&&(bn.isStandardBrowserEnv||bn.isStandardBrowserWebWorkerEnv?i.setContentType(!1):i.setContentType("multipart/form-data;",!1));let u=new XMLHttpRequest;if(e.auth){const p=e.auth.username||"",m=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.set("Authorization","Basic "+btoa(p+":"+m))}const c=wk(e.baseURL,e.url);u.open(e.method.toUpperCase(),yk(c,e.params,e.paramsSerializer),!0),u.timeout=e.timeout;function d(){if(!u)return;const p=or.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders()),y={data:!s||s==="text"||s==="json"?u.responseText:u.response,status:u.status,statusText:u.statusText,headers:p,config:e,request:u};YF(function(g){n(g),l()},function(g){r(g),l()},y),u=null}if("onloadend"in u?u.onloadend=d:u.onreadystatechange=function(){!u||u.readyState!==4||u.status===0&&!(u.responseURL&&u.responseURL.indexOf("file:")===0)||setTimeout(d)},u.onabort=function(){u&&(r(new se("Request aborted",se.ECONNABORTED,e,u)),u=null)},u.onerror=function(){r(new se("Network Error",se.ERR_NETWORK,e,u)),u=null},u.ontimeout=function(){let m=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const y=e.transitional||bk;e.timeoutErrorMessage&&(m=e.timeoutErrorMessage),r(new se(m,y.clarifyTimeoutError?se.ETIMEDOUT:se.ECONNABORTED,e,u)),u=null},bn.isStandardBrowserEnv){const p=(e.withCredentials||ZF(c))&&e.xsrfCookieName&&XF.read(e.xsrfCookieName);p&&i.set(e.xsrfHeaderName,p)}o===void 0&&i.setContentType(null),"setRequestHeader"in u&&M.forEach(i.toJSON(),function(m,y){u.setRequestHeader(y,m)}),M.isUndefined(e.withCredentials)||(u.withCredentials=!!e.withCredentials),s&&s!=="json"&&(u.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&u.addEventListener("progress",T1(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&u.upload&&u.upload.addEventListener("progress",T1(e.onUploadProgress)),(e.cancelToken||e.signal)&&(a=p=>{u&&(r(!p||p.type?new Ua(null,e,u):p),u.abort(),u=null)},e.cancelToken&&e.cancelToken.subscribe(a),e.signal&&(e.signal.aborted?a():e.signal.addEventListener("abort",a)));const f=JF(c);if(f&&bn.protocols.indexOf(f)===-1){r(new se("Unsupported protocol "+f+":",se.ERR_BAD_REQUEST,e));return}u.send(o||null)})},uu={http:PF,xhr:nB};M.forEach(uu,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const kk={getAdapter:e=>{e=M.isArray(e)?e:[e];const{length:t}=e;let n,r;for(let o=0;oe instanceof or?e.toJSON():e;function Ni(e,t){t=t||{};const n={};function r(u,c,d){return M.isPlainObject(u)&&M.isPlainObject(c)?M.merge.call({caseless:d},u,c):M.isPlainObject(c)?M.merge({},c):M.isArray(c)?c.slice():c}function o(u,c,d){if(M.isUndefined(c)){if(!M.isUndefined(u))return r(void 0,u,d)}else return r(u,c,d)}function i(u,c){if(!M.isUndefined(c))return r(void 0,c)}function s(u,c){if(M.isUndefined(c)){if(!M.isUndefined(u))return r(void 0,u)}else return r(void 0,c)}function a(u,c,d){if(d in t)return r(u,c);if(d in e)return r(void 0,u)}const l={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(u,c)=>o(A1(u),A1(c),!0)};return M.forEach(Object.keys(Object.assign({},e,t)),function(c){const d=l[c]||o,f=d(e[c],t[c],c);M.isUndefined(f)&&d!==a||(n[c]=f)}),n}const Ck="1.5.0",dg={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{dg[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const R1={};dg.transitional=function(t,n,r){function o(i,s){return"[Axios v"+Ck+"] Transitional option '"+i+"'"+s+(r?". "+r:"")}return(i,s,a)=>{if(t===!1)throw new se(o(s," has been removed"+(n?" in "+n:"")),se.ERR_DEPRECATED);return n&&!R1[s]&&(R1[s]=!0,console.warn(o(s," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,s,a):!0}};function rB(e,t,n){if(typeof e!="object")throw new se("options must be an object",se.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],s=t[i];if(s){const a=e[i],l=a===void 0||s(a,i,e);if(l!==!0)throw new se("option "+i+" must be "+l,se.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new se("Unknown option "+i,se.ERR_BAD_OPTION)}}const rh={assertOptions:rB,validators:dg},br=rh.validators;let Ju=class{constructor(t){this.defaults=t,this.interceptors={request:new E1,response:new E1}}request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Ni(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:i}=n;r!==void 0&&rh.assertOptions(r,{silentJSONParsing:br.transitional(br.boolean),forcedJSONParsing:br.transitional(br.boolean),clarifyTimeoutError:br.transitional(br.boolean)},!1),o!=null&&(M.isFunction(o)?n.paramsSerializer={serialize:o}:rh.assertOptions(o,{encode:br.function,serialize:br.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let s=i&&M.merge(i.common,i[n.method]);i&&M.forEach(["delete","get","head","post","put","patch","common"],m=>{delete i[m]}),n.headers=or.concat(s,i);const a=[];let l=!0;this.interceptors.request.forEach(function(y){typeof y.runWhen=="function"&&y.runWhen(n)===!1||(l=l&&y.synchronous,a.unshift(y.fulfilled,y.rejected))});const u=[];this.interceptors.response.forEach(function(y){u.push(y.fulfilled,y.rejected)});let c,d=0,f;if(!l){const m=[P1.bind(this),void 0];for(m.unshift.apply(m,a),m.push.apply(m,u),f=m.length,c=Promise.resolve(n);d{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](o);r._listeners=null}),this.promise.then=o=>{let i;const s=new Promise(a=>{r.subscribe(a),i=a}).then(o);return s.cancel=function(){r.unsubscribe(i)},s},t(function(i,s,a){r.reason||(r.reason=new Ua(i,s,a),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new Ek(function(o){t=o}),cancel:t}}};const iB=oB;function sB(e){return function(n){return e.apply(null,n)}}function aB(e){return M.isObject(e)&&e.isAxiosError===!0}const oh={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(oh).forEach(([e,t])=>{oh[t]=e});const lB=oh;function _k(e){const t=new cu(e),n=sk(cu.prototype.request,t);return M.extend(n,cu.prototype,t,{allOwnKeys:!0}),M.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return _k(Ni(e,o))},n}const He=_k(cg);He.Axios=cu;He.CanceledError=Ua;He.CancelToken=iB;He.isCancel=Sk;He.VERSION=Ck;He.toFormData=Jc;He.AxiosError=se;He.Cancel=He.CanceledError;He.all=function(t){return Promise.all(t)};He.spread=sB;He.isAxiosError=aB;He.mergeConfig=Ni;He.AxiosHeaders=or;He.formToJSON=e=>xk(M.isHTMLForm(e)?new FormData(e):e);He.getAdapter=kk.getAdapter;He.HttpStatusCode=lB;He.default=He;const Tk=He,{Axios:FB,AxiosError:BB,CanceledError:uB,isCancel:NB,CancelToken:VB,VERSION:HB,all:WB,Cancel:UB,isAxiosError:GB,spread:KB,toFormData:YB,AxiosHeaders:XB,HttpStatusCode:qB,formToJSON:QB,getAdapter:ZB,mergeConfig:JB}=Tk,cB=Tk.create({baseURL:"https://api.rawg.io/api",params:{key:"48105d50b8744f30a984fcfaeee838b4"}}),fg=(e,t,n,r=!1)=>{const[o,i]=b.useState([]),[s,a]=b.useState(""),[l,u]=b.useState(-1),[c,d]=b.useState(!1);return b.useEffect(()=>{const f=new AbortController;return r||i([]),a(""),d(!0),cB.get(e,{signal:f.signal,...t}).then(p=>{i(r?[...o,...p.data.results]:p.data.results),d(!1),u(p.data.count)}).catch(p=>{p instanceof uB||(a(p.message),d(!1))}),()=>{f.abort()}},n?[...n]:[]),{data:o,count:l,error:s,isLoading:c}},dB=e=>{var i,s;const{data:t,count:n,isLoading:r,error:o}=fg("/games",{params:{genres:(i=e.genre)==null?void 0:i.id,parent_platforms:(s=e.platform)==null?void 0:s.id,ordering:e.sortOrder,search:e.searchQuery,page:e.page}},[e],e.page!==1);return{games:t,gameCount:n,error:o,isLoading:r}};function fB(e){return kn({tag:"svg",attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M420.55,301.93a24,24,0,1,1,24-24,24,24,0,0,1-24,24m-265.1,0a24,24,0,1,1,24-24,24,24,0,0,1-24,24m273.7-144.48,47.94-83a10,10,0,1,0-17.27-10h0l-48.54,84.07a301.25,301.25,0,0,0-246.56,0L116.18,64.45a10,10,0,1,0-17.27,10h0l47.94,83C64.53,202.22,8.24,285.55,0,384H576c-8.24-98.45-64.54-181.78-146.85-226.55"}}]})(e)}function pB(e){return kn({tag:"svg",attr:{viewBox:"0 0 384 512"},child:[{tag:"path",attr:{d:"M318.7 268.7c-.2-36.7 16.4-64.4 50-84.8-18.8-26.9-47.2-41.7-84.7-44.6-35.5-2.8-74.3 20.7-88.5 20.7-15 0-49.4-19.7-76.4-19.7C63.3 141.2 4 184.8 4 273.5q0 39.3 14.4 81.2c12.8 36.7 59 126.7 107.2 125.2 25.2-.6 43-17.9 75.8-17.9 31.8 0 48.3 17.9 76.4 17.9 48.6-.7 90.4-82.5 102.6-119.3-65.2-30.7-61.7-90-61.7-91.9zm-56.6-164.2c27.3-32.4 24.8-61.9 24-72.5-24.1 1.4-52 16.4-67.9 34.9-17.5 19.8-27.8 44.3-25.6 71.9 26.1 2 49.9-11.4 69.5-34.3z"}}]})(e)}function hB(e){return kn({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M220.8 123.3c1 .5 1.8 1.7 3 1.7 1.1 0 2.8-.4 2.9-1.5.2-1.4-1.9-2.3-3.2-2.9-1.7-.7-3.9-1-5.5-.1-.4.2-.8.7-.6 1.1.3 1.3 2.3 1.1 3.4 1.7zm-21.9 1.7c1.2 0 2-1.2 3-1.7 1.1-.6 3.1-.4 3.5-1.6.2-.4-.2-.9-.6-1.1-1.6-.9-3.8-.6-5.5.1-1.3.6-3.4 1.5-3.2 2.9.1 1 1.8 1.5 2.8 1.4zM420 403.8c-3.6-4-5.3-11.6-7.2-19.7-1.8-8.1-3.9-16.8-10.5-22.4-1.3-1.1-2.6-2.1-4-2.9-1.3-.8-2.7-1.5-4.1-2 9.2-27.3 5.6-54.5-3.7-79.1-11.4-30.1-31.3-56.4-46.5-74.4-17.1-21.5-33.7-41.9-33.4-72C311.1 85.4 315.7.1 234.8 0 132.4-.2 158 103.4 156.9 135.2c-1.7 23.4-6.4 41.8-22.5 64.7-18.9 22.5-45.5 58.8-58.1 96.7-6 17.9-8.8 36.1-6.2 53.3-6.5 5.8-11.4 14.7-16.6 20.2-4.2 4.3-10.3 5.9-17 8.3s-14 6-18.5 14.5c-2.1 3.9-2.8 8.1-2.8 12.4 0 3.9.6 7.9 1.2 11.8 1.2 8.1 2.5 15.7.8 20.8-5.2 14.4-5.9 24.4-2.2 31.7 3.8 7.3 11.4 10.5 20.1 12.3 17.3 3.6 40.8 2.7 59.3 12.5 19.8 10.4 39.9 14.1 55.9 10.4 11.6-2.6 21.1-9.6 25.9-20.2 12.5-.1 26.3-5.4 48.3-6.6 14.9-1.2 33.6 5.3 55.1 4.1.6 2.3 1.4 4.6 2.5 6.7v.1c8.3 16.7 23.8 24.3 40.3 23 16.6-1.3 34.1-11 48.3-27.9 13.6-16.4 36-23.2 50.9-32.2 7.4-4.5 13.4-10.1 13.9-18.3.4-8.2-4.4-17.3-15.5-29.7zM223.7 87.3c9.8-22.2 34.2-21.8 44-.4 6.5 14.2 3.6 30.9-4.3 40.4-1.6-.8-5.9-2.6-12.6-4.9 1.1-1.2 3.1-2.7 3.9-4.6 4.8-11.8-.2-27-9.1-27.3-7.3-.5-13.9 10.8-11.8 23-4.1-2-9.4-3.5-13-4.4-1-6.9-.3-14.6 2.9-21.8zM183 75.8c10.1 0 20.8 14.2 19.1 33.5-3.5 1-7.1 2.5-10.2 4.6 1.2-8.9-3.3-20.1-9.6-19.6-8.4.7-9.8 21.2-1.8 28.1 1 .8 1.9-.2-5.9 5.5-15.6-14.6-10.5-52.1 8.4-52.1zm-13.6 60.7c6.2-4.6 13.6-10 14.1-10.5 4.7-4.4 13.5-14.2 27.9-14.2 7.1 0 15.6 2.3 25.9 8.9 6.3 4.1 11.3 4.4 22.6 9.3 8.4 3.5 13.7 9.7 10.5 18.2-2.6 7.1-11 14.4-22.7 18.1-11.1 3.6-19.8 16-38.2 14.9-3.9-.2-7-1-9.6-2.1-8-3.5-12.2-10.4-20-15-8.6-4.8-13.2-10.4-14.7-15.3-1.4-4.9 0-9 4.2-12.3zm3.3 334c-2.7 35.1-43.9 34.4-75.3 18-29.9-15.8-68.6-6.5-76.5-21.9-2.4-4.7-2.4-12.7 2.6-26.4v-.2c2.4-7.6.6-16-.6-23.9-1.2-7.8-1.8-15 .9-20 3.5-6.7 8.5-9.1 14.8-11.3 10.3-3.7 11.8-3.4 19.6-9.9 5.5-5.7 9.5-12.9 14.3-18 5.1-5.5 10-8.1 17.7-6.9 8.1 1.2 15.1 6.8 21.9 16l19.6 35.6c9.5 19.9 43.1 48.4 41 68.9zm-1.4-25.9c-4.1-6.6-9.6-13.6-14.4-19.6 7.1 0 14.2-2.2 16.7-8.9 2.3-6.2 0-14.9-7.4-24.9-13.5-18.2-38.3-32.5-38.3-32.5-13.5-8.4-21.1-18.7-24.6-29.9s-3-23.3-.3-35.2c5.2-22.9 18.6-45.2 27.2-59.2 2.3-1.7.8 3.2-8.7 20.8-8.5 16.1-24.4 53.3-2.6 82.4.6-20.7 5.5-41.8 13.8-61.5 12-27.4 37.3-74.9 39.3-112.7 1.1.8 4.6 3.2 6.2 4.1 4.6 2.7 8.1 6.7 12.6 10.3 12.4 10 28.5 9.2 42.4 1.2 6.2-3.5 11.2-7.5 15.9-9 9.9-3.1 17.8-8.6 22.3-15 7.7 30.4 25.7 74.3 37.2 95.7 6.1 11.4 18.3 35.5 23.6 64.6 3.3-.1 7 .4 10.9 1.4 13.8-35.7-11.7-74.2-23.3-84.9-4.7-4.6-4.9-6.6-2.6-6.5 12.6 11.2 29.2 33.7 35.2 59 2.8 11.6 3.3 23.7.4 35.7 16.4 6.8 35.9 17.9 30.7 34.8-2.2-.1-3.2 0-4.2 0 3.2-10.1-3.9-17.6-22.8-26.1-19.6-8.6-36-8.6-38.3 12.5-12.1 4.2-18.3 14.7-21.4 27.3-2.8 11.2-3.6 24.7-4.4 39.9-.5 7.7-3.6 18-6.8 29-32.1 22.9-76.7 32.9-114.3 7.2zm257.4-11.5c-.9 16.8-41.2 19.9-63.2 46.5-13.2 15.7-29.4 24.4-43.6 25.5s-26.5-4.8-33.7-19.3c-4.7-11.1-2.4-23.1 1.1-36.3 3.7-14.2 9.2-28.8 9.9-40.6.8-15.2 1.7-28.5 4.2-38.7 2.6-10.3 6.6-17.2 13.7-21.1.3-.2.7-.3 1-.5.8 13.2 7.3 26.6 18.8 29.5 12.6 3.3 30.7-7.5 38.4-16.3 9-.3 15.7-.9 22.6 5.1 9.9 8.5 7.1 30.3 17.1 41.6 10.6 11.6 14 19.5 13.7 24.6zM173.3 148.7c2 1.9 4.7 4.5 8 7.1 6.6 5.2 15.8 10.6 27.3 10.6 11.6 0 22.5-5.9 31.8-10.8 4.9-2.6 10.9-7 14.8-10.4s5.9-6.3 3.1-6.6-2.6 2.6-6 5.1c-4.4 3.2-9.7 7.4-13.9 9.8-7.4 4.2-19.5 10.2-29.9 10.2s-18.7-4.8-24.9-9.7c-3.1-2.5-5.7-5-7.7-6.9-1.5-1.4-1.9-4.6-4.3-4.9-1.4-.1-1.8 3.7 1.7 6.5z"}}]})(e)}function mB(e){return kn({tag:"svg",attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M570.9 372.3c-11.3 14.2-38.8 24.3-38.8 24.3L327 470.2v-54.3l150.9-53.8c17.1-6.1 19.8-14.8 5.8-19.4-13.9-4.6-39.1-3.3-56.2 2.9L327 381.1v-56.4c23.2-7.8 47.1-13.6 75.7-16.8 40.9-4.5 90.9.6 130.2 15.5 44.2 14 49.2 34.7 38 48.9zm-224.4-92.5v-139c0-16.3-3-31.3-18.3-35.6-11.7-3.8-19 7.1-19 23.4v347.9l-93.8-29.8V32c39.9 7.4 98 24.9 129.2 35.4C424.1 94.7 451 128.7 451 205.2c0 74.5-46 102.8-104.5 74.6zM43.2 410.2c-45.4-12.8-53-39.5-32.3-54.8 19.1-14.2 51.7-24.9 51.7-24.9l134.5-47.8v54.5l-96.8 34.6c-17.1 6.1-19.7 14.8-5.8 19.4 13.9 4.6 39.1 3.3 56.2-2.9l46.4-16.9v48.8c-51.6 9.3-101.4 7.3-153.9-10z"}}]})(e)}function gB(e){return kn({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M0 93.7l183.6-25.3v177.4H0V93.7zm0 324.6l183.6 25.3V268.4H0v149.9zm203.8 28L448 480V268.4H203.8v177.9zm0-380.6v180.1H448V32L203.8 65.7z"}}]})(e)}function vB(e){return kn({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M369.9 318.2c44.3 54.3 64.7 98.8 54.4 118.7-7.9 15.1-56.7 44.6-92.6 55.9-29.6 9.3-68.4 13.3-100.4 10.2-38.2-3.7-76.9-17.4-110.1-39C93.3 445.8 87 438.3 87 423.4c0-29.9 32.9-82.3 89.2-142.1 32-33.9 76.5-73.7 81.4-72.6 9.4 2.1 84.3 75.1 112.3 109.5zM188.6 143.8c-29.7-26.9-58.1-53.9-86.4-63.4-15.2-5.1-16.3-4.8-28.7 8.1-29.2 30.4-53.5 79.7-60.3 122.4-5.4 34.2-6.1 43.8-4.2 60.5 5.6 50.5 17.3 85.4 40.5 120.9 9.5 14.6 12.1 17.3 9.3 9.9-4.2-11-.3-37.5 9.5-64 14.3-39 53.9-112.9 120.3-194.4zm311.6 63.5C483.3 127.3 432.7 77 425.6 77c-7.3 0-24.2 6.5-36 13.9-23.3 14.5-41 31.4-64.3 52.8C367.7 197 427.5 283.1 448.2 346c6.8 20.7 9.7 41.1 7.4 52.3-1.7 8.5-1.7 8.5 1.4 4.6 6.1-7.7 19.9-31.3 25.4-43.5 7.4-16.2 15-40.2 18.6-58.7 4.3-22.5 3.9-70.8-.8-93.4zM141.3 43C189 40.5 251 77.5 255.6 78.4c.7.1 10.4-4.2 21.6-9.7 63.9-31.1 94-25.8 107.4-25.2-63.9-39.3-152.7-50-233.9-11.7-23.4 11.1-24 11.9-9.4 11.2z"}}]})(e)}function yB(e){return kn({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M15.5 1h-8A2.5 2.5 0 005 3.5v17A2.5 2.5 0 007.5 23h8a2.5 2.5 0 002.5-2.5v-17A2.5 2.5 0 0015.5 1zm-4 21c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5zm4.5-4H7V4h9v14z"}}]})(e)}function bB(e){return kn({tag:"svg",attr:{role:"img",viewBox:"0 0 24 24"},child:[{tag:"title",attr:{},child:[]},{tag:"path",attr:{d:"M0 .6h7.1l9.85 15.9V.6H24v22.8h-7.04L7.06 7.5v15.9H0V.6"}}]})(e)}const xB=({platforms:e})=>{const t={pc:gB,playstation:mB,xbox:vB,nintendo:bB,mac:pB,linux:hB,android:fB,ios:yB,web:Nj};return k.jsx(Lo,{marginY:1,children:e.map(n=>k.jsx(zo,{as:t[n.slug],color:"gray.500"},n.id))})},SB=({score:e})=>{const t=e>75?"green":e>60?"yellow":"";return k.jsx(F2,{fontSize:"14px",paddingX:"2",borderRadius:"4px",colorScheme:t,children:e})},wB="data:image/webp;base64,UklGRlQNAABXRUJQVlA4TEcNAAAvr8THAI9AJm3jX+/udDbIpG38y92/FDJpG/+Cdzab/9gW3iW6QwRIwANFXQiEw7htI0da99/15NkL34iYADi/GTcDSKqVcTVN3AER2RY88i29WwjACRuyGYa3ICaVHcE7LnD+L7bLt2zbdVvbtlVwvxFAxf9/7rhaBCqAOhgxIvo/AUCB+PuPIiIdSZLbNgCYM/7/Yt+ANXSI6H+M//vff//9999///3333///ffff//9999///3333///ffff//9999///3333///ffff//9999///3333///ffff//9999///3333///fdfmFKvJafovXPWGpNEJOVSW+tjzH31O0StJG81flBy7XPdLw/VHJ3G76c69vvetBwMXs25zfOVoSc5hUnmvvTrUpPBbKXO91WhEjQmLW3p56Qli8mnfj4kPRkskevSLwhli5Xm8b4dVBzWm8b7bL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uv0J6QNB+ZnzQFgb+guHI8nbGNLSCvEPEk7lsMVCXu+fK85lVUMiBLbor/pgUHpmFIjs+iuOJm8jupJZtBxGNEwgA6HNz2NUaQMCxHZxGZnOvgzBPV0G9TCvQnRflwGZdaRlV3YaAucshPdwGiyxLUB8X6dBN6ZlyO/kNajCsgoJ3r0GJIZ1JcLouA2euEUGMlzUbbDELA8p3vwG3ViVIMe336AKowoEuajfgMSmClFePYfApK5kGS3PwRKHyECYs3oOujHIQZxX10E97IkQ6Mt1QGZOgkRn9R0SazJkenUePGMeSPXpPFjiSlNijdV50I0nXUOuF+9BVY6QgWSf3gMKP8hCtPNzHxI3yEK4F/8hMMNBvE//wREnPOQ7P//BdD4ESPjiQOjGhQAZPx0I9fAgQsizB4HMgYhvxbS+iK/FsLqI70VLSwv4YjR9YQHfjLotK+CrUT2L8vhwzCsii0/HuB4y+HgMq2kan4+WllIVPiBNX0hR+ITUdRkJX5GqLMLjQzKvgCw+JcP8qsbHpKPJZXxPmj4zCvii1G1ezeCbUpVZZXxXpimRx5elp/kUjW9L0ydDHp+Xuk6lKHxh5nmQx0empzlQUvjMNG0GReNTM7+uWnxt2v6q6vHBqdJ7HoePTl3eUQw+PHXsv9aTxtenLfQ7lB0+QVUo9AtUgsKHqE31b55k8T2qXMyV/jN6crT4MtXWh5BSzinG4K3C//3vv//++++///7777///vvvv//++++///7777///vvvv//++++///7777///vvvv//++++///7777///vvvv//++++///7777///vvvv///iwkA",Pk=e=>{if(!e)return wB;const t="media/",n=e.indexOf(t)+t.length;return e.slice(0,n)+"crop/600/400/"+e.slice(n)},kB=({game:e})=>k.jsxs(k2,{children:[k.jsx(Hc,{src:Pk(e.background_image)}),k.jsxs(w2,{children:[k.jsxs(Lo,{justifyContent:"space-between",marginBottom:3,children:[k.jsx(xB,{platforms:e.parent_platforms.map(t=>t.platform)}),k.jsx(SB,{score:e.metacritic})]}),k.jsx(Yc,{fontSize:"2xl",children:e.name})]})]}),CB=()=>k.jsxs(k2,{children:[k.jsx(sg,{height:"200px"}),k.jsx(w2,{children:k.jsx(tk,{})})]}),M1=({children:e})=>k.jsx(wa,{borderRadius:10,overflow:"hidden",children:e}),EB=({gameQuery:e,next:t})=>{const{games:n,gameCount:r,error:o}=dB(e);return o?k.jsx(Sa,{children:o}):k.jsx(Kj,{dataLength:n.length,next:t,hasMore:n.length!==r,loader:k.jsx(Yp,{columns:{sm:1,md:2,lg:3,xl:4},spacing:6,padding:"10px",children:[0,1,2,3,4,5].map(i=>k.jsx(M1,{children:k.jsx(CB,{})},i))}),endMessage:k.jsx(Sa,{textAlign:"center",children:"Yay! You have seen it all"}),children:k.jsx(Yp,{columns:{sm:1,md:2,lg:3,xl:4},spacing:6,padding:"10px",children:n.map(i=>k.jsx(M1,{children:k.jsx(kB,{game:i})},i.id))})})},_B=()=>{const{data:e,isLoading:t,error:n}=fg("/genres");return{genres:e,error:n,isLoading:t}},TB=({onSelectGenre:e,selectedGenre:t})=>{const{genres:n,isLoading:r,error:o}=_B();return r?k.jsx(Vc,{}):k.jsxs(k.Fragment,{children:[k.jsx(Yc,{fontSize:"2xl",marginBottom:3,children:"Genres"}),o&&k.jsx(Sa,{children:o}),k.jsx(Gc,{children:n.map(i=>k.jsx(z2,{paddingY:"5px",children:k.jsxs(Lo,{children:[k.jsx(Hc,{src:Pk(i.image_background),boxSize:"32px",borderRadius:"8px",objectFit:"cover"}),k.jsx(Wc,{onClick:()=>e(i),fontSize:"lg",variant:"link",fontWeight:i.id===(t==null?void 0:t.id)?"bold":"normal",whiteSpace:"normal",textAlign:"left",children:i.name})]})},i.id))})]})},PB=()=>fg("/platforms/lists/parents"),AB=({selectedPlatform:e,onSelectPlatform:t})=>{const{data:n,error:r}=PB();return r?null:k.jsxs(ng,{children:[k.jsx(ig,{as:Wc,rightIcon:k.jsx(ik,{}),children:(e==null?void 0:e.name)||"Platforms"}),k.jsx(og,{children:n.map(o=>k.jsx(rg,{onClick:()=>t(o),children:o.name},o.id))})]})},RB=({sortOrder:e,onSelectSortOrder:t})=>{const n=[{value:"",label:"Relevance"},{value:"-added",label:"Date added"},{value:"name",label:"Name"},{value:"-released",label:"Release date"},{value:"-metacritic",label:"Popularity"},{value:"-rating",label:"Average rating"}],r=n.find(o=>o.value===e);return k.jsxs(ng,{children:[k.jsxs(ig,{as:Wc,rightIcon:k.jsx(ik,{}),children:["Order By: ",r==null?void 0:r.label]}),k.jsx(og,{children:n.map(o=>k.jsx(rg,{onClick:()=>t(o.value),children:o.label},o.label))})]})},MB=({gameQuery:e})=>{var n,r;const t=`${((n=e.platform)==null?void 0:n.name)||""} ${((r=e.genre)==null?void 0:r.name)||""} Games`;return k.jsx(Yc,{as:"h1",marginY:5,fontSize:"5xl",children:t})};function $B(){const[e,t]=b.useState({page:1}),{colorMode:n}=$a();return k.jsxs(Ym,{templateAreas:{base:'"nav" "main"',lg:'"nav nav" "aside main"'},templateColumns:{base:"1fr",lg:"200px 1fr"},children:[k.jsx(iu,{area:"nav",children:k.jsx(wa,{position:"fixed",top:"0",width:"100%",zIndex:"sticky",backgroundColor:n==="dark"?"gray.900":"white",children:k.jsx(Wj,{onSearch:r=>t({searchQuery:r,page:1})})})}),k.jsx(N2,{above:"lg",children:k.jsx(iu,{area:"aside",paddingX:5,marginTop:20,children:k.jsx(TB,{onSelectGenre:r=>t({...e,genre:r,page:1}),selectedGenre:e.genre})})}),k.jsxs(iu,{area:"main",children:[k.jsxs(wa,{paddingLeft:3,marginTop:20,children:[k.jsx(MB,{gameQuery:e}),k.jsxs(Lo,{spacing:5,marginBottom:5,children:[k.jsx(AB,{selectedPlatform:e.platform,onSelectPlatform:r=>t({...e,platform:r,page:1})}),k.jsx(RB,{sortOrder:e.sortOrder,onSelectSortOrder:r=>t({...e,sortOrder:r,page:1})})]})]}),k.jsx(EB,{gameQuery:e,next:()=>{t({...e,page:e.page+1})}})]})]})}const OB={initialColorMode:"dark",useSystemColorMode:!1},$1=u$({config:OB,colors:{gray:{50:"#f9f9f9",100:"#ededed",200:"#d3d3d3",300:"#b3b3b3",400:"#a0a0a0",500:"#898989",600:"#6c6c6c",700:"#202020",800:"#121212",900:"#111"}}});Cf.createRoot(document.getElementById("root")).render(k.jsx(nt.StrictMode,{children:k.jsxs(ED,{theme:$1,children:[k.jsx(vT,{initialColorMode:$1.config.initialColorMode}),k.jsx($B,{})]})})); +`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(o=>r.set(o)),r}static accessor(t){const r=(this[_1]=this[_1]={accessors:{}}).accessors,o=this.prototype;function i(s){const a=fs(s);r[a]||(KF(o,s),r[a]=!0)}return M.isArray(t)?t.forEach(i):i(t),this}};ed.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);M.reduceDescriptors(ed.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});M.freezeMethods(ed);const or=ed;function wf(e,t){const n=this||cg,r=t||n,o=or.from(r.headers);let i=r.data;return M.forEach(e,function(a){i=a.call(n,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function Sk(e){return!!(e&&e.__CANCEL__)}function Ua(e,t,n){se.call(this,e??"canceled",se.ERR_CANCELED,t,n),this.name="CanceledError"}M.inherits(Ua,se,{__CANCEL__:!0});function YF(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new se("Request failed with status code "+n.status,[se.ERR_BAD_REQUEST,se.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const XF=bn.isStandardBrowserEnv?function(){return{write:function(n,r,o,i,s,a){const l=[];l.push(n+"="+encodeURIComponent(r)),M.isNumber(o)&&l.push("expires="+new Date(o).toGMTString()),M.isString(i)&&l.push("path="+i),M.isString(s)&&l.push("domain="+s),a===!0&&l.push("secure"),document.cookie=l.join("; ")},read:function(n){const r=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return r?decodeURIComponent(r[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function qF(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function QF(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function wk(e,t){return e&&!qF(t)?QF(e,t):t}const ZF=bn.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function o(i){let s=i;return t&&(n.setAttribute("href",s),s=n.href),n.setAttribute("href",s),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=o(window.location.href),function(s){const a=M.isString(s)?o(s):s;return a.protocol===r.protocol&&a.host===r.host}}():function(){return function(){return!0}}();function JF(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function eB(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,i=0,s;return t=t!==void 0?t:1e3,function(l){const u=Date.now(),c=r[i];s||(s=u),n[o]=l,r[o]=u;let d=i,f=0;for(;d!==o;)f+=n[d++],d=d%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),u-s{const i=o.loaded,s=o.lengthComputable?o.total:void 0,a=i-n,l=r(a),u=i<=s;n=i;const c={loaded:i,total:s,progress:s?i/s:void 0,bytes:a,rate:l||void 0,estimated:l&&s&&u?(s-i)/l:void 0,event:o};c[t?"download":"upload"]=!0,e(c)}}const tB=typeof XMLHttpRequest<"u",nB=tB&&function(e){return new Promise(function(n,r){let o=e.data;const i=or.from(e.headers).normalize(),s=e.responseType;let a;function l(){e.cancelToken&&e.cancelToken.unsubscribe(a),e.signal&&e.signal.removeEventListener("abort",a)}M.isFormData(o)&&(bn.isStandardBrowserEnv||bn.isStandardBrowserWebWorkerEnv?i.setContentType(!1):i.setContentType("multipart/form-data;",!1));let u=new XMLHttpRequest;if(e.auth){const p=e.auth.username||"",m=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.set("Authorization","Basic "+btoa(p+":"+m))}const c=wk(e.baseURL,e.url);u.open(e.method.toUpperCase(),yk(c,e.params,e.paramsSerializer),!0),u.timeout=e.timeout;function d(){if(!u)return;const p=or.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders()),y={data:!s||s==="text"||s==="json"?u.responseText:u.response,status:u.status,statusText:u.statusText,headers:p,config:e,request:u};YF(function(g){n(g),l()},function(g){r(g),l()},y),u=null}if("onloadend"in u?u.onloadend=d:u.onreadystatechange=function(){!u||u.readyState!==4||u.status===0&&!(u.responseURL&&u.responseURL.indexOf("file:")===0)||setTimeout(d)},u.onabort=function(){u&&(r(new se("Request aborted",se.ECONNABORTED,e,u)),u=null)},u.onerror=function(){r(new se("Network Error",se.ERR_NETWORK,e,u)),u=null},u.ontimeout=function(){let m=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const y=e.transitional||bk;e.timeoutErrorMessage&&(m=e.timeoutErrorMessage),r(new se(m,y.clarifyTimeoutError?se.ETIMEDOUT:se.ECONNABORTED,e,u)),u=null},bn.isStandardBrowserEnv){const p=(e.withCredentials||ZF(c))&&e.xsrfCookieName&&XF.read(e.xsrfCookieName);p&&i.set(e.xsrfHeaderName,p)}o===void 0&&i.setContentType(null),"setRequestHeader"in u&&M.forEach(i.toJSON(),function(m,y){u.setRequestHeader(y,m)}),M.isUndefined(e.withCredentials)||(u.withCredentials=!!e.withCredentials),s&&s!=="json"&&(u.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&u.addEventListener("progress",T1(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&u.upload&&u.upload.addEventListener("progress",T1(e.onUploadProgress)),(e.cancelToken||e.signal)&&(a=p=>{u&&(r(!p||p.type?new Ua(null,e,u):p),u.abort(),u=null)},e.cancelToken&&e.cancelToken.subscribe(a),e.signal&&(e.signal.aborted?a():e.signal.addEventListener("abort",a)));const f=JF(c);if(f&&bn.protocols.indexOf(f)===-1){r(new se("Unsupported protocol "+f+":",se.ERR_BAD_REQUEST,e));return}u.send(o||null)})},uu={http:PF,xhr:nB};M.forEach(uu,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const kk={getAdapter:e=>{e=M.isArray(e)?e:[e];const{length:t}=e;let n,r;for(let o=0;oe instanceof or?e.toJSON():e;function Ni(e,t){t=t||{};const n={};function r(u,c,d){return M.isPlainObject(u)&&M.isPlainObject(c)?M.merge.call({caseless:d},u,c):M.isPlainObject(c)?M.merge({},c):M.isArray(c)?c.slice():c}function o(u,c,d){if(M.isUndefined(c)){if(!M.isUndefined(u))return r(void 0,u,d)}else return r(u,c,d)}function i(u,c){if(!M.isUndefined(c))return r(void 0,c)}function s(u,c){if(M.isUndefined(c)){if(!M.isUndefined(u))return r(void 0,u)}else return r(void 0,c)}function a(u,c,d){if(d in t)return r(u,c);if(d in e)return r(void 0,u)}const l={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(u,c)=>o(A1(u),A1(c),!0)};return M.forEach(Object.keys(Object.assign({},e,t)),function(c){const d=l[c]||o,f=d(e[c],t[c],c);M.isUndefined(f)&&d!==a||(n[c]=f)}),n}const Ck="1.5.0",dg={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{dg[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const R1={};dg.transitional=function(t,n,r){function o(i,s){return"[Axios v"+Ck+"] Transitional option '"+i+"'"+s+(r?". "+r:"")}return(i,s,a)=>{if(t===!1)throw new se(o(s," has been removed"+(n?" in "+n:"")),se.ERR_DEPRECATED);return n&&!R1[s]&&(R1[s]=!0,console.warn(o(s," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,s,a):!0}};function rB(e,t,n){if(typeof e!="object")throw new se("options must be an object",se.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],s=t[i];if(s){const a=e[i],l=a===void 0||s(a,i,e);if(l!==!0)throw new se("option "+i+" must be "+l,se.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new se("Unknown option "+i,se.ERR_BAD_OPTION)}}const rh={assertOptions:rB,validators:dg},br=rh.validators;let Ju=class{constructor(t){this.defaults=t,this.interceptors={request:new E1,response:new E1}}request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Ni(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:i}=n;r!==void 0&&rh.assertOptions(r,{silentJSONParsing:br.transitional(br.boolean),forcedJSONParsing:br.transitional(br.boolean),clarifyTimeoutError:br.transitional(br.boolean)},!1),o!=null&&(M.isFunction(o)?n.paramsSerializer={serialize:o}:rh.assertOptions(o,{encode:br.function,serialize:br.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let s=i&&M.merge(i.common,i[n.method]);i&&M.forEach(["delete","get","head","post","put","patch","common"],m=>{delete i[m]}),n.headers=or.concat(s,i);const a=[];let l=!0;this.interceptors.request.forEach(function(y){typeof y.runWhen=="function"&&y.runWhen(n)===!1||(l=l&&y.synchronous,a.unshift(y.fulfilled,y.rejected))});const u=[];this.interceptors.response.forEach(function(y){u.push(y.fulfilled,y.rejected)});let c,d=0,f;if(!l){const m=[P1.bind(this),void 0];for(m.unshift.apply(m,a),m.push.apply(m,u),f=m.length,c=Promise.resolve(n);d{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](o);r._listeners=null}),this.promise.then=o=>{let i;const s=new Promise(a=>{r.subscribe(a),i=a}).then(o);return s.cancel=function(){r.unsubscribe(i)},s},t(function(i,s,a){r.reason||(r.reason=new Ua(i,s,a),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new Ek(function(o){t=o}),cancel:t}}};const iB=oB;function sB(e){return function(n){return e.apply(null,n)}}function aB(e){return M.isObject(e)&&e.isAxiosError===!0}const oh={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(oh).forEach(([e,t])=>{oh[t]=e});const lB=oh;function _k(e){const t=new cu(e),n=sk(cu.prototype.request,t);return M.extend(n,cu.prototype,t,{allOwnKeys:!0}),M.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return _k(Ni(e,o))},n}const He=_k(cg);He.Axios=cu;He.CanceledError=Ua;He.CancelToken=iB;He.isCancel=Sk;He.VERSION=Ck;He.toFormData=Jc;He.AxiosError=se;He.Cancel=He.CanceledError;He.all=function(t){return Promise.all(t)};He.spread=sB;He.isAxiosError=aB;He.mergeConfig=Ni;He.AxiosHeaders=or;He.formToJSON=e=>xk(M.isHTMLForm(e)?new FormData(e):e);He.getAdapter=kk.getAdapter;He.HttpStatusCode=lB;He.default=He;const Tk=He,{Axios:FB,AxiosError:BB,CanceledError:uB,isCancel:NB,CancelToken:VB,VERSION:HB,all:WB,Cancel:UB,isAxiosError:GB,spread:KB,toFormData:YB,AxiosHeaders:XB,HttpStatusCode:qB,formToJSON:QB,getAdapter:ZB,mergeConfig:JB}=Tk,cB=Tk.create({baseURL:"https://api.rawg.io/api",params:{key:"48105d50b8744f30a984fcfaeee838b4"}}),fg=(e,t,n,r=!1)=>{const[o,i]=b.useState([]),[s,a]=b.useState(""),[l,u]=b.useState(-1),[c,d]=b.useState(!1);return b.useEffect(()=>{const f=new AbortController;return r||i([]),a(""),d(!0),cB.get(e,{signal:f.signal,...t}).then(p=>{i(r?[...o,...p.data.results]:p.data.results),d(!1),u(p.data.count)}).catch(p=>{p instanceof uB||(a(p.message),d(!1))}),()=>{f.abort()}},n?[...n]:[]),{data:o,count:l,error:s,isLoading:c}},dB=e=>{var i,s;const{data:t,count:n,isLoading:r,error:o}=fg("/games",{params:{genres:(i=e.genre)==null?void 0:i.id,parent_platforms:(s=e.platform)==null?void 0:s.id,ordering:e.sortOrder,search:e.searchQuery,page:e.page}},[e],e.page!==1);return{games:t,gameCount:n,error:o,isLoading:r}};function fB(e){return kn({tag:"svg",attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M420.55,301.93a24,24,0,1,1,24-24,24,24,0,0,1-24,24m-265.1,0a24,24,0,1,1,24-24,24,24,0,0,1-24,24m273.7-144.48,47.94-83a10,10,0,1,0-17.27-10h0l-48.54,84.07a301.25,301.25,0,0,0-246.56,0L116.18,64.45a10,10,0,1,0-17.27,10h0l47.94,83C64.53,202.22,8.24,285.55,0,384H576c-8.24-98.45-64.54-181.78-146.85-226.55"}}]})(e)}function pB(e){return kn({tag:"svg",attr:{viewBox:"0 0 384 512"},child:[{tag:"path",attr:{d:"M318.7 268.7c-.2-36.7 16.4-64.4 50-84.8-18.8-26.9-47.2-41.7-84.7-44.6-35.5-2.8-74.3 20.7-88.5 20.7-15 0-49.4-19.7-76.4-19.7C63.3 141.2 4 184.8 4 273.5q0 39.3 14.4 81.2c12.8 36.7 59 126.7 107.2 125.2 25.2-.6 43-17.9 75.8-17.9 31.8 0 48.3 17.9 76.4 17.9 48.6-.7 90.4-82.5 102.6-119.3-65.2-30.7-61.7-90-61.7-91.9zm-56.6-164.2c27.3-32.4 24.8-61.9 24-72.5-24.1 1.4-52 16.4-67.9 34.9-17.5 19.8-27.8 44.3-25.6 71.9 26.1 2 49.9-11.4 69.5-34.3z"}}]})(e)}function hB(e){return kn({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M220.8 123.3c1 .5 1.8 1.7 3 1.7 1.1 0 2.8-.4 2.9-1.5.2-1.4-1.9-2.3-3.2-2.9-1.7-.7-3.9-1-5.5-.1-.4.2-.8.7-.6 1.1.3 1.3 2.3 1.1 3.4 1.7zm-21.9 1.7c1.2 0 2-1.2 3-1.7 1.1-.6 3.1-.4 3.5-1.6.2-.4-.2-.9-.6-1.1-1.6-.9-3.8-.6-5.5.1-1.3.6-3.4 1.5-3.2 2.9.1 1 1.8 1.5 2.8 1.4zM420 403.8c-3.6-4-5.3-11.6-7.2-19.7-1.8-8.1-3.9-16.8-10.5-22.4-1.3-1.1-2.6-2.1-4-2.9-1.3-.8-2.7-1.5-4.1-2 9.2-27.3 5.6-54.5-3.7-79.1-11.4-30.1-31.3-56.4-46.5-74.4-17.1-21.5-33.7-41.9-33.4-72C311.1 85.4 315.7.1 234.8 0 132.4-.2 158 103.4 156.9 135.2c-1.7 23.4-6.4 41.8-22.5 64.7-18.9 22.5-45.5 58.8-58.1 96.7-6 17.9-8.8 36.1-6.2 53.3-6.5 5.8-11.4 14.7-16.6 20.2-4.2 4.3-10.3 5.9-17 8.3s-14 6-18.5 14.5c-2.1 3.9-2.8 8.1-2.8 12.4 0 3.9.6 7.9 1.2 11.8 1.2 8.1 2.5 15.7.8 20.8-5.2 14.4-5.9 24.4-2.2 31.7 3.8 7.3 11.4 10.5 20.1 12.3 17.3 3.6 40.8 2.7 59.3 12.5 19.8 10.4 39.9 14.1 55.9 10.4 11.6-2.6 21.1-9.6 25.9-20.2 12.5-.1 26.3-5.4 48.3-6.6 14.9-1.2 33.6 5.3 55.1 4.1.6 2.3 1.4 4.6 2.5 6.7v.1c8.3 16.7 23.8 24.3 40.3 23 16.6-1.3 34.1-11 48.3-27.9 13.6-16.4 36-23.2 50.9-32.2 7.4-4.5 13.4-10.1 13.9-18.3.4-8.2-4.4-17.3-15.5-29.7zM223.7 87.3c9.8-22.2 34.2-21.8 44-.4 6.5 14.2 3.6 30.9-4.3 40.4-1.6-.8-5.9-2.6-12.6-4.9 1.1-1.2 3.1-2.7 3.9-4.6 4.8-11.8-.2-27-9.1-27.3-7.3-.5-13.9 10.8-11.8 23-4.1-2-9.4-3.5-13-4.4-1-6.9-.3-14.6 2.9-21.8zM183 75.8c10.1 0 20.8 14.2 19.1 33.5-3.5 1-7.1 2.5-10.2 4.6 1.2-8.9-3.3-20.1-9.6-19.6-8.4.7-9.8 21.2-1.8 28.1 1 .8 1.9-.2-5.9 5.5-15.6-14.6-10.5-52.1 8.4-52.1zm-13.6 60.7c6.2-4.6 13.6-10 14.1-10.5 4.7-4.4 13.5-14.2 27.9-14.2 7.1 0 15.6 2.3 25.9 8.9 6.3 4.1 11.3 4.4 22.6 9.3 8.4 3.5 13.7 9.7 10.5 18.2-2.6 7.1-11 14.4-22.7 18.1-11.1 3.6-19.8 16-38.2 14.9-3.9-.2-7-1-9.6-2.1-8-3.5-12.2-10.4-20-15-8.6-4.8-13.2-10.4-14.7-15.3-1.4-4.9 0-9 4.2-12.3zm3.3 334c-2.7 35.1-43.9 34.4-75.3 18-29.9-15.8-68.6-6.5-76.5-21.9-2.4-4.7-2.4-12.7 2.6-26.4v-.2c2.4-7.6.6-16-.6-23.9-1.2-7.8-1.8-15 .9-20 3.5-6.7 8.5-9.1 14.8-11.3 10.3-3.7 11.8-3.4 19.6-9.9 5.5-5.7 9.5-12.9 14.3-18 5.1-5.5 10-8.1 17.7-6.9 8.1 1.2 15.1 6.8 21.9 16l19.6 35.6c9.5 19.9 43.1 48.4 41 68.9zm-1.4-25.9c-4.1-6.6-9.6-13.6-14.4-19.6 7.1 0 14.2-2.2 16.7-8.9 2.3-6.2 0-14.9-7.4-24.9-13.5-18.2-38.3-32.5-38.3-32.5-13.5-8.4-21.1-18.7-24.6-29.9s-3-23.3-.3-35.2c5.2-22.9 18.6-45.2 27.2-59.2 2.3-1.7.8 3.2-8.7 20.8-8.5 16.1-24.4 53.3-2.6 82.4.6-20.7 5.5-41.8 13.8-61.5 12-27.4 37.3-74.9 39.3-112.7 1.1.8 4.6 3.2 6.2 4.1 4.6 2.7 8.1 6.7 12.6 10.3 12.4 10 28.5 9.2 42.4 1.2 6.2-3.5 11.2-7.5 15.9-9 9.9-3.1 17.8-8.6 22.3-15 7.7 30.4 25.7 74.3 37.2 95.7 6.1 11.4 18.3 35.5 23.6 64.6 3.3-.1 7 .4 10.9 1.4 13.8-35.7-11.7-74.2-23.3-84.9-4.7-4.6-4.9-6.6-2.6-6.5 12.6 11.2 29.2 33.7 35.2 59 2.8 11.6 3.3 23.7.4 35.7 16.4 6.8 35.9 17.9 30.7 34.8-2.2-.1-3.2 0-4.2 0 3.2-10.1-3.9-17.6-22.8-26.1-19.6-8.6-36-8.6-38.3 12.5-12.1 4.2-18.3 14.7-21.4 27.3-2.8 11.2-3.6 24.7-4.4 39.9-.5 7.7-3.6 18-6.8 29-32.1 22.9-76.7 32.9-114.3 7.2zm257.4-11.5c-.9 16.8-41.2 19.9-63.2 46.5-13.2 15.7-29.4 24.4-43.6 25.5s-26.5-4.8-33.7-19.3c-4.7-11.1-2.4-23.1 1.1-36.3 3.7-14.2 9.2-28.8 9.9-40.6.8-15.2 1.7-28.5 4.2-38.7 2.6-10.3 6.6-17.2 13.7-21.1.3-.2.7-.3 1-.5.8 13.2 7.3 26.6 18.8 29.5 12.6 3.3 30.7-7.5 38.4-16.3 9-.3 15.7-.9 22.6 5.1 9.9 8.5 7.1 30.3 17.1 41.6 10.6 11.6 14 19.5 13.7 24.6zM173.3 148.7c2 1.9 4.7 4.5 8 7.1 6.6 5.2 15.8 10.6 27.3 10.6 11.6 0 22.5-5.9 31.8-10.8 4.9-2.6 10.9-7 14.8-10.4s5.9-6.3 3.1-6.6-2.6 2.6-6 5.1c-4.4 3.2-9.7 7.4-13.9 9.8-7.4 4.2-19.5 10.2-29.9 10.2s-18.7-4.8-24.9-9.7c-3.1-2.5-5.7-5-7.7-6.9-1.5-1.4-1.9-4.6-4.3-4.9-1.4-.1-1.8 3.7 1.7 6.5z"}}]})(e)}function mB(e){return kn({tag:"svg",attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M570.9 372.3c-11.3 14.2-38.8 24.3-38.8 24.3L327 470.2v-54.3l150.9-53.8c17.1-6.1 19.8-14.8 5.8-19.4-13.9-4.6-39.1-3.3-56.2 2.9L327 381.1v-56.4c23.2-7.8 47.1-13.6 75.7-16.8 40.9-4.5 90.9.6 130.2 15.5 44.2 14 49.2 34.7 38 48.9zm-224.4-92.5v-139c0-16.3-3-31.3-18.3-35.6-11.7-3.8-19 7.1-19 23.4v347.9l-93.8-29.8V32c39.9 7.4 98 24.9 129.2 35.4C424.1 94.7 451 128.7 451 205.2c0 74.5-46 102.8-104.5 74.6zM43.2 410.2c-45.4-12.8-53-39.5-32.3-54.8 19.1-14.2 51.7-24.9 51.7-24.9l134.5-47.8v54.5l-96.8 34.6c-17.1 6.1-19.7 14.8-5.8 19.4 13.9 4.6 39.1 3.3 56.2-2.9l46.4-16.9v48.8c-51.6 9.3-101.4 7.3-153.9-10z"}}]})(e)}function gB(e){return kn({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M0 93.7l183.6-25.3v177.4H0V93.7zm0 324.6l183.6 25.3V268.4H0v149.9zm203.8 28L448 480V268.4H203.8v177.9zm0-380.6v180.1H448V32L203.8 65.7z"}}]})(e)}function vB(e){return kn({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M369.9 318.2c44.3 54.3 64.7 98.8 54.4 118.7-7.9 15.1-56.7 44.6-92.6 55.9-29.6 9.3-68.4 13.3-100.4 10.2-38.2-3.7-76.9-17.4-110.1-39C93.3 445.8 87 438.3 87 423.4c0-29.9 32.9-82.3 89.2-142.1 32-33.9 76.5-73.7 81.4-72.6 9.4 2.1 84.3 75.1 112.3 109.5zM188.6 143.8c-29.7-26.9-58.1-53.9-86.4-63.4-15.2-5.1-16.3-4.8-28.7 8.1-29.2 30.4-53.5 79.7-60.3 122.4-5.4 34.2-6.1 43.8-4.2 60.5 5.6 50.5 17.3 85.4 40.5 120.9 9.5 14.6 12.1 17.3 9.3 9.9-4.2-11-.3-37.5 9.5-64 14.3-39 53.9-112.9 120.3-194.4zm311.6 63.5C483.3 127.3 432.7 77 425.6 77c-7.3 0-24.2 6.5-36 13.9-23.3 14.5-41 31.4-64.3 52.8C367.7 197 427.5 283.1 448.2 346c6.8 20.7 9.7 41.1 7.4 52.3-1.7 8.5-1.7 8.5 1.4 4.6 6.1-7.7 19.9-31.3 25.4-43.5 7.4-16.2 15-40.2 18.6-58.7 4.3-22.5 3.9-70.8-.8-93.4zM141.3 43C189 40.5 251 77.5 255.6 78.4c.7.1 10.4-4.2 21.6-9.7 63.9-31.1 94-25.8 107.4-25.2-63.9-39.3-152.7-50-233.9-11.7-23.4 11.1-24 11.9-9.4 11.2z"}}]})(e)}function yB(e){return kn({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M15.5 1h-8A2.5 2.5 0 005 3.5v17A2.5 2.5 0 007.5 23h8a2.5 2.5 0 002.5-2.5v-17A2.5 2.5 0 0015.5 1zm-4 21c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5zm4.5-4H7V4h9v14z"}}]})(e)}function bB(e){return kn({tag:"svg",attr:{role:"img",viewBox:"0 0 24 24"},child:[{tag:"title",attr:{},child:[]},{tag:"path",attr:{d:"M0 .6h7.1l9.85 15.9V.6H24v22.8h-7.04L7.06 7.5v15.9H0V.6"}}]})(e)}const xB=({platforms:e=[]})=>{const t={pc:gB,playstation:mB,xbox:vB,nintendo:bB,mac:pB,linux:hB,android:fB,ios:yB,web:Nj};return k.jsx(Lo,{marginY:1,children:e.map(n=>k.jsx(zo,{as:t[n.slug],color:"gray.500"},n.id))})},SB=({score:e})=>{const t=e>75?"green":e>60?"yellow":"";return k.jsx(F2,{fontSize:"14px",paddingX:"2",borderRadius:"4px",colorScheme:t,children:e})},wB="data:image/webp;base64,UklGRlQNAABXRUJQVlA4TEcNAAAvr8THAI9AJm3jX+/udDbIpG38y92/FDJpG/+Cdzab/9gW3iW6QwRIwANFXQiEw7htI0da99/15NkL34iYADi/GTcDSKqVcTVN3AER2RY88i29WwjACRuyGYa3ICaVHcE7LnD+L7bLt2zbdVvbtlVwvxFAxf9/7rhaBCqAOhgxIvo/AUCB+PuPIiIdSZLbNgCYM/7/Yt+ANXSI6H+M//vff//9999///3333///ffff//9999///3333///ffff//9999///3333///ffff//9999///3333///ffff//9999///3333///fdfmFKvJafovXPWGpNEJOVSW+tjzH31O0StJG81flBy7XPdLw/VHJ3G76c69vvetBwMXs25zfOVoSc5hUnmv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ExXncFqWIKXzD5A+CFTVrAdiWvW/8ziK6RpFWk7B/lnCYeRlk4OkTn9UcR67RQmyuv0J6QNB+ZnzQFgb+guHI8nbGNLSCvEPEk7lsMVCXu+fK85lVUMiBLbor/pgUHpmFIjs+iuOJm8jupJZtBxGNEwgA6HNz2NUaQMCxHZxGZnOvgzBPV0G9TCvQnRflwGZdaRlV3YaAucshPdwGiyxLUB8X6dBN6ZlyO/kNajCsgoJ3r0GJIZ1JcLouA2euEUGMlzUbbDELA8p3vwG3ViVIMe336AKowoEuajfgMSmClFePYfApK5kGS3PwRKHyECYs3oOujHIQZxX10E97IkQ6Mt1QGZOgkRn9R0SazJkenUePGMeSPXpPFjiSlNijdV50I0nXUOuF+9BVY6QgWSf3gMKP8hCtPNzHxI3yEK4F/8hMMNBvE//wREnPOQ7P//BdD4ESPjiQOjGhQAZPx0I9fAgQsizB4HMgYhvxbS+iK/FsLqI70VLSwv4YjR9YQHfjLotK+CrUT2L8vhwzCsii0/HuB4y+HgMq2kan4+WllIVPiBNX0hR+ITUdRkJX5GqLMLjQzKvgCw+JcP8qsbHpKPJZXxPmj4zCvii1G1ezeCbUpVZZXxXpimRx5elp/kUjW9L0ydDHp+Xuk6lKHxh5nmQx0empzlQUvjMNG0GReNTM7+uWnxt2v6q6vHBqdJ7HoePTl3eUQw+PHXsv9aTxtenLfQ7lB0+QVUo9AtUgsKHqE31b55k8T2qXMyV/jN6crT4MtXWh5BSzinG4K3C//3vv//++++///7777///vvvv//++++///7777///vvvv//++++///7777///vvvv//++++///7777///vvvv//++++///7777///vvvv///iwkA",Pk=e=>{if(!e)return wB;const t="media/",n=e.indexOf(t)+t.length;return e.slice(0,n)+"crop/600/400/"+e.slice(n)},kB=({game:e})=>{var t;return k.jsxs(k2,{children:[k.jsx(Hc,{src:Pk(e.background_image)}),k.jsxs(w2,{children:[k.jsxs(Lo,{justifyContent:"space-between",marginBottom:3,children:[k.jsx(xB,{platforms:(t=e.parent_platforms)==null?void 0:t.map(n=>n.platform)}),k.jsx(SB,{score:e.metacritic})]}),k.jsx(Yc,{fontSize:"2xl",children:e.name})]})]})},CB=()=>k.jsxs(k2,{children:[k.jsx(sg,{height:"200px"}),k.jsx(w2,{children:k.jsx(tk,{})})]}),M1=({children:e})=>k.jsx(wa,{borderRadius:10,overflow:"hidden",children:e}),EB=({gameQuery:e,next:t})=>{const{games:n,gameCount:r,error:o}=dB(e);return o?k.jsx(Sa,{children:o}):k.jsx(Kj,{dataLength:n.length,next:t,hasMore:n.length!==r,loader:k.jsx(Yp,{columns:{sm:1,md:2,lg:3,xl:4},spacing:6,padding:"10px",children:[0,1,2,3,4,5].map(i=>k.jsx(M1,{children:k.jsx(CB,{})},i))}),endMessage:k.jsx(Sa,{textAlign:"center",children:"Yay! You have seen it all"}),children:k.jsx(Yp,{columns:{sm:1,md:2,lg:3,xl:4},spacing:6,padding:"10px",children:n.map(i=>k.jsx(M1,{children:k.jsx(kB,{game:i})},i.id))})})},_B=()=>{const{data:e,isLoading:t,error:n}=fg("/genres");return{genres:e,error:n,isLoading:t}},TB=({onSelectGenre:e,selectedGenre:t})=>{const{genres:n,isLoading:r,error:o}=_B();return r?k.jsx(Vc,{}):k.jsxs(k.Fragment,{children:[k.jsx(Yc,{fontSize:"2xl",marginBottom:3,children:"Genres"}),o&&k.jsx(Sa,{children:o}),k.jsx(Gc,{children:n.map(i=>k.jsx(z2,{paddingY:"5px",children:k.jsxs(Lo,{children:[k.jsx(Hc,{src:Pk(i.image_background),boxSize:"32px",borderRadius:"8px",objectFit:"cover"}),k.jsx(Wc,{onClick:()=>e(i),fontSize:"lg",variant:"link",fontWeight:i.id===(t==null?void 0:t.id)?"bold":"normal",whiteSpace:"normal",textAlign:"left",children:i.name})]})},i.id))})]})},PB=()=>fg("/platforms/lists/parents"),AB=({selectedPlatform:e,onSelectPlatform:t})=>{const{data:n,error:r}=PB();return r?null:k.jsxs(ng,{children:[k.jsx(ig,{as:Wc,rightIcon:k.jsx(ik,{}),children:(e==null?void 0:e.name)||"Platforms"}),k.jsx(og,{children:n.map(o=>k.jsx(rg,{onClick:()=>t(o),children:o.name},o.id))})]})},RB=({sortOrder:e,onSelectSortOrder:t})=>{const n=[{value:"",label:"Relevance"},{value:"-added",label:"Date added"},{value:"name",label:"Name"},{value:"-released",label:"Release date"},{value:"-metacritic",label:"Popularity"},{value:"-rating",label:"Average rating"}],r=n.find(o=>o.value===e);return k.jsxs(ng,{children:[k.jsxs(ig,{as:Wc,rightIcon:k.jsx(ik,{}),children:["Order By: ",r==null?void 0:r.label]}),k.jsx(og,{children:n.map(o=>k.jsx(rg,{onClick:()=>t(o.value),children:o.label},o.label))})]})},MB=({gameQuery:e})=>{var n,r;const t=`${((n=e.platform)==null?void 0:n.name)||""} ${((r=e.genre)==null?void 0:r.name)||""} Games`;return k.jsx(Yc,{as:"h1",marginY:5,fontSize:"5xl",children:t})};function $B(){const[e,t]=b.useState({page:1}),{colorMode:n}=$a();return k.jsxs(Ym,{templateAreas:{base:'"nav" "main"',lg:'"nav nav" "aside main"'},templateColumns:{base:"1fr",lg:"200px 1fr"},children:[k.jsx(iu,{area:"nav",children:k.jsx(wa,{position:"fixed",top:"0",width:"100%",zIndex:"sticky",backgroundColor:n==="dark"?"gray.900":"white",children:k.jsx(Wj,{onSearch:r=>t({searchQuery:r,page:1})})})}),k.jsx(N2,{above:"lg",children:k.jsx(iu,{area:"aside",paddingX:5,marginTop:20,children:k.jsx(TB,{onSelectGenre:r=>t({...e,genre:r,page:1}),selectedGenre:e.genre})})}),k.jsxs(iu,{area:"main",children:[k.jsxs(wa,{paddingLeft:3,marginTop:20,children:[k.jsx(MB,{gameQuery:e}),k.jsxs(Lo,{spacing:5,marginBottom:5,children:[k.jsx(AB,{selectedPlatform:e.platform,onSelectPlatform:r=>t({...e,platform:r,page:1})}),k.jsx(RB,{sortOrder:e.sortOrder,onSelectSortOrder:r=>t({...e,sortOrder:r,page:1})})]})]}),k.jsx(EB,{gameQuery:e,next:()=>{t({...e,page:e.page+1})}})]})]})}const OB={initialColorMode:"dark",useSystemColorMode:!1},$1=u$({config:OB,colors:{gray:{50:"#f9f9f9",100:"#ededed",200:"#d3d3d3",300:"#b3b3b3",400:"#a0a0a0",500:"#898989",600:"#6c6c6c",700:"#202020",800:"#121212",900:"#111"}}});Cf.createRoot(document.getElementById("root")).render(k.jsx(nt.StrictMode,{children:k.jsxs(ED,{theme:$1,children:[k.jsx(vT,{initialColorMode:$1.config.initialColorMode}),k.jsx($B,{})]})})); diff --git a/index.html b/index.html index 6994af4..a332181 100644 --- a/index.html +++ b/index.html @@ -5,7 +5,7 @@ GameHub - +