1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,130860,(e,t,a)=>{"use strict";var l=function(e){var t,a,l;return!!(t=e)&&"object"==typeof t&&(a=e,"[object RegExp]"!==(l=Object.prototype.toString.call(a))&&"[object Date]"!==l&&a.$$typeof!==r)},r="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function i(e,t){return!1!==t.clone&&t.isMergeableObject(e)?d(Array.isArray(e)?[]:{},e,t):e}function s(e,t,a){return e.concat(t).map(function(e){return i(e,a)})}function n(e){return Object.keys(e).concat(Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[])}function o(e,t){try{return t in e}catch(e){return!1}}function d(e,t,a){(a=a||{}).arrayMerge=a.arrayMerge||s,a.isMergeableObject=a.isMergeableObject||l,a.cloneUnlessOtherwiseSpecified=i;var r,c,u=Array.isArray(t);return u!==Array.isArray(e)?i(t,a):u?a.arrayMerge(e,t,a):(c={},(r=a).isMergeableObject(e)&&n(e).forEach(function(t){c[t]=i(e[t],r)}),n(t).forEach(function(a){o(e,a)&&!(Object.hasOwnProperty.call(e,a)&&Object.propertyIsEnumerable.call(e,a))||(o(e,a)&&r.isMergeableObject(t[a])?c[a]=(function(e,t){if(!t.customMerge)return d;var a=t.customMerge(e);return"function"==typeof a?a:d})(a,r)(e[a],t[a],r):c[a]=i(t[a],r))}),c)}d.all=function(e,t){if(!Array.isArray(e))throw Error("first argument should be an array");return e.reduce(function(e,a){return d(e,a,t)},{})},t.exports=d},321192,e=>{"use strict";var t=e.i(271645),a=e.i(618566),l=e.i(902750),r=e.i(241089);e.s(["default",0,(e={pageType:"page",author:"",vertical:"",category:"",tags:"",wordCount:"",isLoggedIn:null,section:"",isDarkTheme:!1,articleType:"",utm_articleid:"",articleid:""},i=r.DataLayerEvent.PAGE_VIEW)=>{let s=(0,a.usePathname)(),n=null!==e.isLoggedIn;e.theme=e.isDarkTheme?"dark":"light",delete e.isDarkTheme,(0,t.useEffect)(()=>{n&&(0,l.sendEventToDataLayer)(i,e,s||"/")},[,n])}])},726489,e=>{"use strict";var t,a,l=e.i(271645);function r(){return(r=Object.assign.bind()).apply(null,arguments)}e.s(["default",0,function(e){return l.createElement("svg",r({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 22 24"},e),t||(t=l.createElement("path",{d:"M14.738 5H7.272c-1.252.001-2.266 1.026-2.267 2.291v9.957c0 .631.336 1.214.88 1.525a1.72 1.72 0 0 0 1.745-.022l3.375-2.048 3.375 2.047a1.72 1.72 0 0 0 1.745.023c.544-.311.88-.894.88-1.525V7.29C17.003 6.026 15.99 5.001 14.738 5m.934 12.248c0 .145-.078.28-.203.352a.4.4 0 0 1-.403-.005l-3.444-2.088.001-.001c-.38-.23-.855-.23-1.236 0l-3.444 2.088h.001a.4.4 0 0 1-.403.006.4.4 0 0 1-.203-.352V7.29a.94.94 0 0 1 .933-.943h7.467a.94.94 0 0 1 .934.943z"})),a||(a=l.createElement("path",{d:"M13.672 7.696h-4.8a.67.67 0 0 0-.667.674.67.67 0 0 0 .667.674h4.8a.67.67 0 0 0 .667-.674.67.67 0 0 0-.667-.674"})))}])},413380,e=>{"use strict";var t,a=e.i(271645);function l(){return(l=Object.assign.bind()).apply(null,arguments)}e.s(["default",0,function(e){return a.createElement("svg",l({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24"},e),t||(t=a.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M2 12C2 6.47 6.47 2 12 2s10 4.47 10 10-4.47 10-10 10S2 17.53 2 12m6.016.258 2.071 2.207 5.897-6.279a.58.58 0 0 1 .42-.186c.159 0 .31.067.421.186a.663.663 0 0 1 0 .897l-6.314 6.73a.57.57 0 0 1-.842 0l-2.494-2.658a.663.663 0 0 1 0-.897.58.58 0 0 1 .42-.186c.158 0 .31.067.421.186",clipRule:"evenodd"})))}])},649035,e=>{"use strict";var t=e.i(843476),a=e.i(271645),l=e.i(919056),r=e.i(566798),i=e.i(261053),s=e.i(457755),n=e.i(959288),o=e.i(900791),d=e.i(527748),c=e.i(902750),u=e.i(241089),m=e.i(545259),g=e.i(705394),h=e.i(726489),f=e.i(413380);e.s(["BookmarkButton",0,({articleId:e,className:p,isWikiPage:E=!1,gtmSaveArticleType:x,gtmSaveArticleCategory:A,gtmSaveArticleVertical:S,gtmPageType:y,gtmComponentSource:v})=>{let{addSavedItem:b,removeSavedItem:N,isSavedItem:C}=(0,a.useContext)(n.default),[_,I]=(0,a.useState)(!1),{toggleModal:w}=(0,a.useContext)(s.default),{setAlert:O}=(0,d.default)(),L=(0,m.default)(),{isLoggedIn:T}=(0,a.useContext)(o.default),R=async t=>{if(t.preventDefault(),t.stopPropagation(),!T)return void w("save_for_later",y);let a=e?.toString();if(a)try{I(!0),C(a)?await N(a):await b({id:a,type:"wiki"});let e=C(a)?"remove":"add";(0,c.sendEventToDataLayer)(u.DataLayerEvent.SAVE_FOR_LATER,{action:e,s
1aveArticleType:x,saveArticleCategory:A,saveArticleVertical:S,pageType:y,componentSource:v})}catch(e){O(L["failed-save-article"],"error"),console.error("Save operation failed in BookmarkButton, GTM event not sent:",e)}finally{I(!1)}};return(0,t.jsxs)(r.default,{className:(0,l.twJoin)("size-[40px] rounded-br-[5px] rounded-tl-[5px]","bg-neutral-black/40 hover:bg-neutral-black p-0","flex items-center justify-center",p),onClick:R,children:[!_&&(C(e?.toString()||"")?(0,t.jsx)(f.default,{className:(0,g.classMerge)("text-status-success size-[22px]",E&&"text-neutral-white")}):(0,t.jsx)(h.default,{className:"text-neutral-white size-[22px]"})),_&&(0,t.jsx)(i.default,{className:"text-neutral-white size-[22px]"})]})}])},842419,e=>{"use strict";var t,a=e.i(271645);function l(){return(l=Object.assign.bind()).apply(null,arguments)}e.s(["default",0,function(e){return a.createElement("svg",l({fill:"#fff","aria-hidden":"true",className:"VideoPlay_svg__ScIconSVG-sc-1q25cff-1 VideoPlay_svg__jpczqG",viewBox:"0 0 20 20",width:"1em",height:"1em"},e),t||(t=a.createElement("path",{d:"M5 17.066V2.934a.5.5 0 0 1 .777-.416L17 10 5.777 17.482A.5.5 0 0 1 5 17.066"})))}])},442638,863471,e=>{"use strict";var t=e.i(843476),a=e.i(271645),l=e.i(919056),r=e.i(877611);let i={small:{title:"text-title-7",category:"text-label-2",meta:"text-label-2",gap:"gap-2"},medium:{title:"text-title-5",category:"text-label-0",meta:"text-label-0",gap:"gap-2"},large:{title:"text-title-3",category:"text-title-5",meta:"text-label-0",gap:"gap-3"},long:{title:"text-button-1",category:"text-button-2",meta:"text-label-0",gap:"gap-3"}};e.s(["CARD_SIZES",0,i],863471);var s=e.i(38082);e.s(["default",0,({authorName:e,authorUrl:n,modificationDate:o,responsiveSize:d={sm:"medium",md:"medium",lg:"medium"},isLongVariant:c=!1})=>{let[u,m]=(0,a.useState)("");(0,a.useEffect)(()=>{m((0,s.timeAgo)(o))},[o]);let g=(0,l.twMerge)("font-display font-medium",c?i.long.meta:i[d.sm||"medium"].meta,c?`md:${i.long.meta}`:`md:${i[d.md||"medium"].meta}`,c?`lg:${i.long.meta}`:`lg:${i[d.lg||"medium"].meta}`);return(0,t.jsxs)("div",{className:(0,l.twMerge)("flex w-full items-center justify-between",g),children:[(0,t.jsx)(r.default,{className:(0,l.twJoin)("text-neutral-black dark:text-neutral-white hover:underline","external:text-custom-content-primary-text"),href:n,children:e}),(0,t.jsx)("div",{className:(0,l.twJoin)("text-neutral-grey-70 dark:text-neutral-grey-15","external:text-custom-content-secondary-text"),children:u})]})}],442638)},21060,461018,546103,949970,547693,e=>{"use strict";var t=e.i(843476),a=e.i(919056),l=e.i(21382),r=e.i(877611),i=e.i(442638);let s=()=>(0,t.jsxs)("div",{className:"flex items-center gap-x-2",children:[(0,t.jsx)("div",{className:"bg-neutral-grey-15 dark:bg-neutral-grey-70 h-4 w-[70px] animate-pulse rounded-[5px]"}),(0,t.jsx)("div",{className:"bg-neutral-grey-15 dark:bg-neutral-grey-70 size-1.5 animate-pulse rounded-full"}),(0,t.jsx)("div",{className:"bg-neutral-grey-15 dark:bg-neutral-grey-70 h-4 w-16 animate-pulse rounded-[5px]"})]});e.s(["default",0,s],461018);let n=({className:e})=>(0,t.jsx)("div",{className:e,children:(0,t.jsx)("div",{className:"aspect-16/9 bg-neutral-grey-15 dark:bg-neutral-grey-70 relative h-fit w-full animate-pulse overflow-hidden rounded-[5px]"})});e.s(["default",0,n],546103);let o=()=>(0,t.jsxs)("div",{className:"flex gap-x-4 pt-3",children:[(0,t.jsx)("div",{className:"bg-neutral-grey-15 dark:bg-neutral-grey-70 h-4 w-24 animate-pulse rounded-[5px]"}),(0,t.jsx)("div",{className:"bg-neutral-grey-15 dark:bg-neutral-grey-70 h-4 w-24 animate-pulse rounded-[5px]"})]});e.s(["default",0,o],949970);let d=()=>(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)("div",{className:"bg-neutral-grey-15 dark:bg-neutral-grey-70 h-5 w-full animate-pulse rounded-[5px]"}),(0,t.jsx)("div",{className:"bg-neutral-grey-15 dark:bg-neutral-grey-70 h-5 w-3/4 animate-pulse rounded-[5px]"})]});e.s(["default",0,d],547693);var c=e.i(649035),u=e.i(703998),m=e.i(863471),g=e.i(418494);let h=({categoryName:e,categoryUrl:l,categoryColor:i,titleText:s,titleUrl:n,responsiveSize:o={sm:"medium",md:"medium",lg:"medium"},linkPrefetch:d,isLongVariant:c=!1,titleOpensInNewTab:h=!1})=>{let f=(0,a.twMerge)("font-display font-bold text-neutral-black dark:text-neutral-white hover:text-neutral-grey-70 dark:hover:underline",c?m.CARD_SIZES.long.title:m.CARD_SIZES[o.sm||"medium"].title,`md:${c?m.CARD_SIZES.long.title:m.CARD_SIZES[o.md||"medium"].title}`,`lg:${c?m.CARD_SIZES.long.title:m.CARD_SIZES[o.lg||"medium"].title}`,"external:text-custom-content-primary-text"),p=(0,a.twMerge)("font-body p-0 h-fit",c?m.CARD_SIZES.long.category:m.CARD_SIZES[o.sm||"medium"].category,`md:${c?m.CARD_SIZES.long.category:m.CARD_SIZES[o.md||"medium"].category}`,`lg:${c?m.CARD_SIZES.long.category:m.CARD_SIZES[o.lg||"medium"].category}`);return(0,t.jsxs)("div",{className:"mb-2 flex w-full flex-col gap-[5px]",children:[e&&l&&(0,t.jsx)(g.default,{href:l,style:(0,u.getVerticalStyles)(i||""),className:p,children:e}),h?(0,t.jsx)("a",{href:n,target:"_blank",rel:"noopener noreferrer",className:f,children:s}):(0,t.jsx)(r.default,{href:n,className:f,prefetch:d,children:s})]})};var f=e.i(705394),p=e.i(842419);let E=(e,t,a,l)=>l.includes(e)?a&&a[e]||"medium":t[e]||"medium";e.s(["default",0,({articleTitle:e,articleUrl:u,articleId:g,authorName:x,authorUrl:A,categoryColor:S,categoryName:y,categoryUrl:v,modificationDate:b,isBookmarkButton:N=!1,imageDescription:C,imageSrc:_,imageSizes:I,excerpt:w,excerptClassName:O,stackOn:L=[],responsiveSize:T={sm:"medium",md:"medium",lg:"medium"},stackedSize:R,responsiveImageWidth:k={sm:"1/2",md:"1/3",lg:"1/3"},onImageLoad:M,onClick:j,onImageClick:D,isLoading:P,linkPrefetch:G,isVideoVariant:B=!1,isVideoShort:U=!1,videoUrl:V,videoLength:z,containerClassName:$,imageWrapperClassName:H,imageClassName:K,articleLinkExternal:F=!1})=>{let W={sm:E("sm",T,R,L),md:E("md",T,R,L),lg:E("lg",T,R,L)},Y=Object.values(W).some(e=>"long"===e),Z=Y?{sm:"long",md:"long",lg:"long"}:W,X=Y?["sm","md","lg"]:L,J=Y?{sm:"full",md:"full",lg:"full"}
1:k,q={base:X.includes("sm")?"flex-col":"",md:X.includes("md")?"md:flex-col":"md:flex-row",lg:X.includes("lg")?"lg:flex-col":"lg:flex-row"},Q={base:m.CARD_SIZES[Z.sm].gap,md:`md:${m.CARD_SIZES[Z.md].gap}`,lg:`lg:${m.CARD_SIZES[Z.lg].gap}`},ee={"1/3":{base:"w-1/3",md:"md:w-1/3",lg:"lg:w-1/3"},"1/2":{base:"w-1/2",md:"md:w-1/2",lg:"lg:w-1/2"},"2/3":{base:"w-2/3",md:"md:w-2/3",lg:"lg:w-2/3"},full:{base:"w-full",md:"md:w-full",lg:"lg:w-full"}},et=ee.full,ea={base:(ee[J.sm||"full"]??et).base,md:(ee[J.md||J.sm||"full"]??et).md,lg:(ee[J.lg||J.md||"full"]??et).lg},el={base:X.includes("sm")?"w-full min-w-full":"",md:X.includes("md")?"md:w-full md:min-w-full":"",lg:X.includes("lg")?"lg:w-full lg:min-w-full":""},er=(0,a.twMerge)("relative shrink-0",!X.includes("sm")&&ea.base,!X.includes("md")&&ea.md,!X.includes("lg")&&ea.lg,el.base,el.md,el.lg),ei=(0,a.twMerge)("flex w-full flex-col justify-between",!X.includes("sm")&&"flex-1",!X.includes("md")&&"md:flex-1",!X.includes("lg")&&"lg:flex-1"),es=(0,a.twMerge)("flex w-full",Q.base,Q.md,Q.lg,q.base,q.md,q.lg,Y&&"w-60"),en=Y?"w-60 h-[426px] rounded-[5px] overflow-hidden":"aspect-16/9 h-fit w-full rounded-[5px]";return P?(0,t.jsxs)("div",{className:es,children:[(0,t.jsx)(n,{className:(0,a.twMerge)(er,Y&&"w-60 h-[426px]")}),(0,t.jsxs)("div",{className:ei,children:[(0,t.jsxs)("div",{className:"flex flex-col gap-y-3",children:[(0,t.jsx)(s,{}),(0,t.jsx)(d,{})]}),(x||A||b)&&(0,t.jsx)(o,{})]})]}):(0,t.jsxs)("div",{className:(0,a.twMerge)(es,"group",$),onClick:j,children:[(0,t.jsx)("div",{className:(0,a.twMerge)(er,H),children:(0,t.jsxs)(l.default,{shouldZoomOnHover:!0,className:(0,a.twMerge)(en,K),alt:C,src:_,href:U?"#":u||"",onLoad:M,sizes:I,linkPrefetch:G,onClick:D,opensInNewTab:F&&!U,children:[N&&(0,t.jsx)(c.BookmarkButton,{articleId:g,className:"absolute z-50"}),B&&V&&!D&&(0,t.jsx)(r.default,{href:V,className:"absolute inset-0 z-40 flex items-center justify-center","aria-label":"Play video",prefetch:G,children:(0,t.jsx)("div",{className:"bg-neutral-black/20 group-hover:bg-neutral-black/40 flex size-16 items-center justify-center rounded-full transition-all duration-200 group-hover:scale-110",children:(0,t.jsx)(p.default,{className:"text-neutral-white size-6 fill-current"})})}),B&&D&&(0,t.jsx)("button",{onClick:D,className:"absolute inset-0 z-40 flex cursor-pointer items-center justify-center border-none bg-transparent","aria-label":"Play video",children:(0,t.jsx)("div",{className:"bg-neutral-black/20 group-hover:bg-neutral-black/40 flex size-16 items-center justify-center rounded-full transition-all duration-200 group-hover:scale-110",children:(0,t.jsx)(p.default,{className:"text-neutral-white size-6 fill-current"})})}),B&&!V&&!D&&(0,t.jsx)("div",{className:"pointer-events-none absolute inset-0 z-40 flex items-center justify-center",children:(0,t.jsx)("div",{className:"bg-neutral-black/20 group-hover:bg-neutral-black/40 flex size-16 items-center justify-center rounded-full transition-all duration-200 group-hover:scale-110",children:(0,t.jsx)(p.default,{className:"text-neutral-white size-6 fill-current"})})}),z&&(0,t.jsx)("span",{className:"bg-neutral-black/50 text-neutral-white text-label-4 absolute bottom-2 right-2 rounded px-2 py-1 font-medium",children:z})]})}),(0,t.jsxs)("div",{className:ei,children:[(0,t.jsx)(h,{categoryName:y,categoryUrl:v,categoryColor:S,titleText:e,titleUrl:u,responsiveSize:Z,linkPrefetch:G,isLongVariant:Y,titleOpensInNewTab:F}),w&&(0,t.jsx)("p",{className:(0,f.classMerge)("font-body font-medium text-title-6 external:text-custom-player-text",O),children:w}),x&&A&&b&&!Y&&(0,t.jsx)(i.default,{authorName:x,authorUrl:A,modificationDate:b,responsiveSize:Z,isLongVariant:Y})]})]})}],21060)},335519,e=>{"use strict";e.i(247167);let t=/\/wp-content\/uploads\/.*/;e.s(["default",0,(e,a,l=75,r="auto")=>{if(!e)return null;let i="https://www.charlieintel.com",s="/cdn-image";if(e.includes(`${i}${s}`))return e;let n=a?`?width=${a}&quality=${l}&format=${r}`:"",o=e.match(t)?.[0];return o?`${i}${s}${o}${n||""}`:`${i}/cdn-cgi/image/${n?n+"/":""}${e}`}],335519)},885108,e=>{"use strict";e.s(["default",0,e=>e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,'"').replace(/'/g,"'").replace(/'/g,"'").replace(/
1/g," ")])},201202,e=>{"use strict";var t=e.i(678594);e.s(["formatVideoLength",0,e=>{try{let a,l,r,i,s;if(isNaN(e)||e<=0)return"";let{hours:n,minutes:o,seconds:d}=(a=e,l=Math.floor(a/t.secondsIn.day),r=Math.floor((a-=l*t.secondsIn.day)/t.secondsIn.hour),i=Math.floor((a-=r*t.secondsIn.hour)/t.secondsIn.minute),s=Math.floor((a-=i*t.secondsIn.minute)/t.secondsIn.second),{days:l,hours:r,minutes:i,seconds:s}),c=String(o),u=c.padStart(2,"0"),m=String(d).padStart(2,"0");if(n&&n>0)return`${n}:${u}:${m}`;return`${c}:${m}`}catch(e){return console.error("Error formatting video length",e),""}}],201202)},541133,e=>{"use strict";e.s(["MAX_PAGINATION_PAGES",0,9,"MAX_POSTS_PER_PAGE",0,10,"MAX_POSTS_PER_PAGE_REDESIGN",0,15])},447800,e=>{"use strict";e.s(["BLACK_PIXEL",0,"data:image/gif;base64,R0lGODlhAQABAIAAAAUEBAAAACwAAAAAAQABAAACAkQBADs=","MAX_POSTS_PER_SECTION",0,5,"MIN_POSTS_PER_PAGE",0,10])},862907,13135,e=>{"use strict";(t={}).STEAM="STEAM",t.GIANTBOMB="GIANTBOMB",t.GOG="GOG",t.YOUTUBE="YOUTUBE",t.MICROSOFT="MICROSOFT",t.APPLE="APPLE",t.TWITCH="TWITCH",t.ANDROID="ANDROID",t.AMAZON="AMAZON",t.AMAZON_LUNA="AMAZON_LUNA",t.AMAZON_ADG="AMAZON_ADG",t.EPIC_GAMES_STORE="EPIC_GAMES_STORE",t.OCULUS="OCULUS",t.UTOMIK="UTOMIK",t.ITCHIO="ITCHIO",t.XBOX_MARKETPLACE="XBOX_MARKETPLACE",t.KARTRIDGE="KARTRIDGE",t.PLAYSTATION_STORE_US="PLAYSTATION_STORE_US",t.FOCUS_ENTERTAINMENT="FOCUS_ENTERTAINMENT",t.XBOX_GAME_PASS_ULTIMATE_CLOUD="XBOX_GAME_PASS_ULTIMATE_CLOUD",t.GAMEJOLT="GAMEJOLT",t.IGDB="IGDB";var t,a,l,r,i,s,n,o,d,c,u,m,g=((a={}).AND="AND",a.OR="OR",a);(l={}).CONSOLE="CONSOLE",l.ARCADE="ARCADE",l.PLATFORM="PLATFORM",l.OPERATING_SYSTEM="OPERATING_SYSTEM",l.PORTABLE_CONSOLE="PORTABLE_CONSOLE",l.COMPUTER="COMPUTER";var h=((r={}).MAIN_GAME="MAIN_GAME",r.DLC_ADDON="DLC_ADDON",r.EXPANSION="EXPANSION",r.BUNDLE="BUNDLE",r.STANDALONE_EXPANSION="STANDALONE_EXPANSION",r.MOD="MOD",r.EPISODE="EPISODE",r.SEASON="SEASON",r.REMAKE="REMAKE",r.REMASTER="REMASTER",r.EXPANDED_GAME="EXPANDED_GAME",r.PORT="PORT",r.FORK="FORK",r.PACK="PACK",r.UPDATE="UPDATE",r);(i={}).ALPHA="ALPHA",i.BETA="BETA",i.EARLY_ACCESS="EARLY_ACCESS",i.OFFLINE="OFFLINE",i.CANCELLED="CANCELLED",i.FULL_RELEASE="FULL_RELEASE",i.ADVANCED_ACCESS="ADVANCED_ACCESS",i.DIGITAL_COMPATIBILITY_RELEASE="DIGITAL_COMPATIBILITY_RELEASE",(s={}).OFFICIAL_WEBSITE="OFFICIAL_WEBSITE",s.COMMUNITY_WIKI="COMMUNITY_WIKI",s.WIKIPEDIA="WIKIPEDIA",s.FACEBOOK="FACEBOOK",s.TWITTER="TWITTER",s.TWITCH="TWITCH",s.INSTAGRAM="INSTAGRAM",s.YOUTUBE="YOUTUBE",s.APP_STORE_IPHONE="APP_STORE_IPHONE",s.APP_STORE_IPAD="APP_STORE_IPAD",s.GOOGLE_PLAY="GOOGLE_PLAY",s.STEAM="STEAM",s.SUBREDDIT="SUBREDDIT",s.ITCH="ITCH",s.EPIC="EPIC",s.GOG="GOG",s.DISCORD="DISCORD",s.BLUESKY="BLUESKY",(n={}).MALE="MALE",n.FEMALE="FEMALE",n.OTHER="OTHER",(o={}).HUMAN="HUMAN",o.ALIEN="ALIEN",o.ANIMAL="ANIMAL",o.ANDROID="ANDROID",o.UNKNOWN="UNKNOWN",(d={}).CONTINENT="CONTINENT",d.LOCALE="LOCALE",(c={}).ESRB_RP="ESRB_RP",c.ESRB_EC="ESRB_EC",c.ESRB_E="ESRB_E",c.ESRB_E10PLUS="ESRB_E10PLUS",c.ESRB_T="ESRB_T",c.ESRB_M="ESRB_M",c.ESRB_AO="ESRB_AO",c.PEGI_3="PEGI_3",c.PEGI_7="PEGI_7",c.PEGI_12="PEGI_12",c.PEGI_16="PEGI_16",c.PEGI_18="PEGI_18",c.CERO_A="CERO_A",c.CERO_B="CERO_B",c.CERO_C="CERO_C",c.CERO_D="CERO_D",c.CERO_Z="CERO_Z",c.USK_0="USK_0",c.USK_6="USK_6",c.USK_12="USK_12",c.USK_16="USK_16",c.USK_18="USK_18",c.CLASSIND_L="CLASSIND_L",c.CLASSIND_12PLUS="CLASSIND_12PLUS",c.CLASSIND_15PLUS="CLASSIND_15PLUS",c.CLASSIND_18PLUS="CLASSIND_18PLUS",c.CLASSIND_TESTING="CLASSIND_TESTING",c.CLASSIND_10="CLASSIND_10",c.CLASSIND_12="CLASSIND_12",c.CLASSIND_14="CLASSIND_14",c.CLASSIND_16="CLASSIND_16",c.CLASSIND_18="CLASSIND_18",c.ACB_G="ACB_G",c.ACB_PG="ACB_PG",c.ACB_M="ACB_M",c.ACB_MA15="ACB_MA15",c.ACB_R18="ACB_R18",c.ACB_RC="ACB_RC",(u={}).VIOLENCE="VIOLENCE",u.LANGUAGE="LANGUAGE",u.SEXUAL_CONTENT="SEXUAL_CONTENT",u.DRUG_USE="DRUG_USE",u.GAMBLING="GAMBLING",u.SIMULATED_GAMBLING="SIMULATED_GAMBLING",u.MILD_VIOLENCE="MILD_VIOLENCE",u.INTENSE_VIOLENCE="INTENSE_VIOLENCE",u.BLOOD="BLOOD",u.GORE="GORE",u.PARTIAL_NUDITY="PARTIAL_NUDITY",u.NUDITY="NUDITY",u.STRONG_LANGUAGE="STRONG_LANGUAGE",u.MILD_LANGUAGE="MILD_LANGUAGE",u.ALCOHOL_USE="ALCOHOL_USE",u.TOBACCO_USE="TOBACCO_USE",u.ONLINE_INTERACTIONS="ONLINE_INTERACTIONS",u.USERS_INTERACT_ONLINE="USERS_INTERACT_ONLINE",u.SHARES_INFO="SHARES_INFO",u.SHARES_LOCATION="SHARES_LOCATION",u.MUSIC_DOWNLOADS="MUSIC_DOWNLOADS",(m={}).POPULARITY="popularity",m.ALPHA_ASC="alpha_asc",m.ALPHA_DESC="alph
1a_desc",m.RELEASE_DATE_ASC="release_date_asc",m.RELEASE_DATE_DESC="release_date_desc",m.RATING_DESC="rating_desc",m.RATING_ASC="rating_asc",e.s(["FeaturesAndOrOption",()=>g,"GameCategory",()=>h],13135),e.s([],862907)},347744,534435,e=>{"use strict";var t=e.i(711006),a=e.i(271645),l=e.i(357770),r=e.i(326019),i=e.i(305441);let s=` 2 query GetGameBySlugOrId($slug: String, $id: Int) { 3 getGameBySlugOrId(slug: $slug, id: $id) { 4 id 5 name 6 slug 7 summary 8 storyline 9 url 10 aggregatedRating 11 aggregatedRatingCount 12 rating 13 ratingCount 14 totalRating 15 totalRatingCount 16 firstReleaseDate 17 category 18 hypes 19 cover { 20 id 21 imageId 22 url 23 width 24 height 25 } 26 screenshots { 27 id 28 imageId 29 url 30 width 31 height 32 } 33 artworks { 34 id 35 imageId 36 url 37 width 38 height 39 } 40 videos { 41 id 42 name 43 videoId 44 url 45 } 46 genres { 47 id 48 name 49 slug 50 } 51 gameModes { 52 id 53 name 54 slug 55 } 56 platforms { 57 id 58 name 59 slug 60 abbreviation 61 } 62 themes { 63 id 64 name 65 slug 66 } 67 keywords { 68 id 69 name 70 slug 71 } 72 playerPerspectives { 73 id 74 name 75 slug 76 } 77 involvedCompanies { 78 id 79 developer 80 publisher 81 porting 82 supporting 83 company { 84 id 85 name 86 slug 87 } 88 } 89 franchises { 90 id 91 name 92 slug 93 } 94 collections { 95 id 96 name 97 slug 98 } 99 similarGames { 100 id 101 name 102 slug 103 cover { 104 id 105 imageId 106 url 107 } 108 } 109 releaseDates { 110 id 111 date 112 human 113 status 114 platform { 115 id 116 name 117 abbreviation 118 } 119 region { 120 id 121 name 122 category 123 identifier 124 } 125 } 126 ageRatings { 127 id 128 category 129 rating 130 ratingCategory 131 synopsis 132 contentDescriptions { 133 id 134 category 135 description 136 } 137 ratingCoverUrl 138 ratingCategoryObject { 139 rating 140 } 141 organization { 142 id 143 name 144 } 145 } 146 websites { 147 id 148 category 149 trusted 150 url 151 } 152 multiplayerModes { 153 id 154 campaignCoop 155 dropIn 156 lanCoop 157 offlineCoop 158 offlineCoopMax 159 offlineMax 160 onlineCoop 161 onlineCoopMax 162 onlineMax 163 splitScreen 164 platform { 165 id 166 name 167 } 168 } 169 gameTimeToBeats { 170 completely 171 completelyHours 172 hastily 173 hastilyHours 174 normally 175 normallyHours 176 } 177 dlcs { 178 id 179 name 180 slug 181 summary 182 } 183 gameEngines { 184 name 185 id 186 description 187 } 188 } 189 } 190`,n=` 191 query GetGamesByIds($ids: [Int!]!) { 192 getGamesByIds(ids: $ids) { 193 id 194 name 195 slug 196 aggregatedRating 197 aggregatedRatingCount 198 firstReleaseDate 199 category 200 url 201 summary 202 cover { 203 id 204 imageId 205 url 206 width 207 height 208 } 209 genres { 210 id 211 name 212 slug 213 } 214 gameModes { 215 id 216 name 217 slug 218 } 219 platforms { 220 id 221 name 222 slug 223 abbreviation 224 } 225 } 226 } 227`;var o=e.i(965326),d=e.i(32880);(0,a.cache)(async e=>{let a=async()=>{let a=await (0,t.polydexClient)({query:o.SEARCH_GAMES,variables:e,next:{revalidate:300}});return(0,d.handleGraphQLResponse)(a).searchGames};return(0,d.retryWithBackoff)(a,2,500)});let c=(0,a.cache)(async()=>{let e=async()=>{let e=await (0,t.polydexClient)({query:i.GET_ALL_GAME_PLATFORMS,next:{revalidate:3600}});return(0,d.handleGraphQLResponse)(e).getAllGamePlatforms};return(0,d.retryWithBackoff)(e,2,500)}),u=(0,a.cache)(async()=>{let e=async()=>{let e=await (0,t.polydexClient)({query:l.GET_ALL_GAME_GENRES,next:{revalidate:3600}});return(0,d.handleGraphQLResponse)(e).getAllGameGenres};return(0,d.retryWithBackoff)(e,2,500)}),m=(0,a.cache)(async()=>{let e=async()=>{let e=await (0,t.polydexClient)({query:r.GET_ALL_GAME_MODES,next:{revalidate:3600}});return(0,d.handleGraphQLResponse)(e).getAllGameModes};return(0,d.retryWithBackoff)(e,2,500)});(0,a.cache)(async()=>{let[e,t,a]=await Promise.all([c(),u(),m()]);return{platforms:e,genres:t,gameModes:a}}),(0,a.cache)(async e=>{let a=async()=>{let a=await (0,t.polydexClient)({query:o.SEARCH_CROSS_ENTITIES,variables:e,next:{revalidate:300}});return(0,d.handleGraphQLResponse)(a).searchCrossEntities};return(0,d.retryWithBackoff)(a,2,500)}),(0,a.cache)(async e=>{let a=async()=>{let a=await (0,t.polydexClient)({query:s,variables:e,next:{revalidate:600}});return(0,d.handleGraphQLResponse)(a).getGameBySlugOrId};return(0,d.retryWithBackoff)(a,2,500)});let g=(0,a.cache)(async e=>{let a=async()=>{let a=await (0,t.polydexClient)({query:n,variables:e,next:{revalidate:600}});return(0,d.handleGraphQLResponse)(a).getGamesByIds};return(0,d.retryWithBackoff)(a,2,500)});e.s(["getGamesByIds",0,g],534435),e.i(862907),e.i(803770),e.i(388171),e.i(237913),e.s([],347744)},41880,e=>{"use strict";var t=e.i(271645);e.s(["default",0,(e,a)=>{(0,t.useEffect)(()=>
227{if(e&&a){let e=window.scrollY;return document.body.style.position="fixed",document.body.style.top=`-${e}px`,document.body.style.width="100%",document.body.style.overflow="hidden",document.body.style.touchAction="none",()=>{document.body.style.position="",document.body.style.top="",document.body.style.width="",document.body.style.overflow="",document.body.style.touchAction="",window.scrollTo(0,e)}}},[e,a])}])},75526,e=>{"use strict";e.s(["default",0,({trackedElementName:e,articleHeading:t})=>({elementId:e.replace(/\s+/g,"-").toLowerCase(),elementName:`${e.split(" ").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" ")}: ${t}`})],75526)},421168,961815,256377,987280,e=>{"use strict";var t=e.i(271645);e.s(["default",0,({initialVideoIndex:e=0}={})=>{let[a,l]=(0,t.useState)(!1),[r,i]=(0,t.useState)(e);return{isOpen:a,openModal:(0,t.useCallback)(e=>{void 0!==e&&i(e),l(!0)},[]),closeModal:(0,t.useCallback)(()=>{l(!1)},[]),currentVideoIndex:r,setCurrentVideoIndex:i}}],421168);let a=e=>e.filter(e=>e.isVideoShort&&e.cloudflareStreamId).map(e=>({id:e.id,cloudflareStreamId:e.cloudflareStreamId,title:e.heading,description:e.description,duration:e.videoLength?l(e.videoLength):void 0,thumbnail:e.img?.src,creator:e.author?{name:e.author.name}:void 0,metadata:{createdAt:e.timePublished?new Date(e.timePublished):void 0}})),l=e=>{let t=e.split(":").map(Number);return 2===t.length?60*t[0]+t[1]:0};e.s(["convertToVideoData",0,a],961815),e.i(269731);var r=e.i(578453),i=e.i(95187);let s=(0,i.createServerReference)("402e5955b7f20462e49395c1b26e7d08d63ae7b3cb",i.callServer,void 0,i.findSourceMapURL,"default");e.s(["default",0,({initialVideos:e,currentIndex:l,threshold:i=3,carouselTitle:n,initialEndCursor:o,initialHasNextPage:d=!0,pageId:c="video",enableInfiniteScroll:u=!0,maxVideos:m=50})=>{let[g,h]=(0,t.useState)(e),[f,p]=(0,t.useState)(!1),[E,x]=(0,t.useState)(d),[A,S]=(0,t.useState)(o||null),y=(0,t.useRef)(!1),v=(0,t.useCallback)(async()=>{if(!y.current&&E){y.current=!0,p(!0);try{let e;if(n)e=await s({pageId:c,carouselTitle:n,after:A,size:10,method:"GET",next:{revalidate:600}});else{let t=await (0,r.fetchArticles)({size:20,articleType:"video-short",after:A,method:"GET",next:{revalidate:600}});e={articleListItems:t.articleListItems,endCursor:t.endCursor,hasNextPage:t.hasNextPage}}if(e.articleListItems.length>0){let t=a(e.articleListItems);h(e=>{let a=[...e,...t];return a.length>m?a.slice(a.length-m):a}),S(e.endCursor||null),x(e.hasNextPage)}else x(!1)}catch(e){console.error("Error loading more video shorts:",e),x(!1)}finally{p(!1),y.current=!1}}},[A,E,n,c,m]);return(0,t.useEffect)(()=>{!u||0===g.length||y.current||!E||l>=g.length-i&&v()},[l,g.length,i,E,v,u]),(0,t.useEffect)(()=>{g.map(e=>e.id).join(",")!==e.map(e=>e.id).join(",")&&(h(e),S(o||null),x(d))},[e]),{videos:g,isLoading:f,hasMore:E,loadMore:v}}],256377);var n=e.i(843476),o=e.i(174080),d=e.i(919056),c=e.i(41880),u=e.i(873638),m=e.i(149938),g=e.i(705394);let h=({onClick:e,className:t})=>(0,n.jsx)("div",{className:(0,g.classMerge)("absolute inset-0 bg-neutral-black/30 backdrop-blur-sm md:backdrop-blur-md",t),onClick:()=>{window.innerWidth>=768&&e&&e()}});var f=e.i(788218),p=e.i(545259);let E=({onRetry:e})=>(0,n.jsx)("div",{className:"absolute inset-0 flex items-center justify-center bg-black/80",children:(0,n.jsxs)("div",{className:"text-center text-white",children:[(0,n.jsx)("p",{className:"mb-4",children:(0,p.default)()["video-load-error"]}),(0,n.jsx)("button",{onClick:t=>{t.stopPropagation(),e()},className:"rounded-lg bg-white/20 px-4 py-2 transition-colors hover:bg-white/30",children:(0,p.default)().retry})]})}),x=(0,t.forwardRef)(({video:e,videoState:t,setVideoState:a,shouldPlay:l,hasError:r,onRetry:i,onDurationChange:s,style:o},d)=>{var c;let u=(c=e.cloudflareStreamId).startsWith("http://")||c.startsWith("https://")?c:`https://customer-7k5v5hcr3ie5hhse.cloudflarestream.com/${c}/manifest/video.m3u8`;return(0,n.jsx)("div",{className:"absolute inset-0",style:o,children:(0,n.jsxs)("div",{className:"relative flex size-full items-center justify-center overflow-hidden md:rounded-xl",children:[(0,n.jsx)("div",{className:"relative size-full md:aspect-ratio-9-16 md:h-full md:w-auto [&>div]:size-full [&_video]:size-full [&_video]:object-cover",children:(0,n.jsx)(f.default,{ref:l?d:void 0,src:u,poster:!t.playing&&l?e.thumbnail:void 0,muted:t.muted,state:l?t:{...t,playing:!1},setState:e=>{e.duration>0&&e.duration!==t.duration&&s?.(e.duration),l&&a(e)},isStickyVideoVisible:!1,disableLightMode:!0})}),l&&r&&(0,n.jsx)(E,{onRetry:i})]})})});x.displayName="VideoContainer";let A={modal:"aria-video-modal",playButton:"aria-play-pause",muteButton:"aria-mute-unmute",volumeSlider:"aria-volume-control",progressBar:"aria-video-progress",closeButton:"aria-close-video",videoPlayer:"aria-video-player",nextVideo:"aria-next-video",previousVideo:"aria-previous-video",fullscreenButton:"aria-toggle-fullscreen"},S=e=>{let t=A[e];return(0,p.default)()[t]||t};var y=e.i(842419);let v=e=>{let t=Math.floor(e/60),a=Math.floor(e%60);return`${t}:${a.toString().padStart(2,"0")}`},b=({isPlaying:e,currentTime:a,duration:l,onPlayPause:r,onSeek:i,title:s,description:o,visible:c})=>{let u=(0,t.useCallback)(e=>{e.stopPropagation();let t=e.currentTarget.getBoundingClientRect();i((("touches"in e?e.touches[0].clientX:e.clientX)-t.left)/t.width*l)},[l,i]);return(0,n.jsxs)(n.Fragment,{children:[!e&&(0,n.jsx)("div",{className:"pointer-events-none absolute inset-0 z-10 flex items-center justify-center",children:(0,n.jsx)("button",{onClick:e=>{e.stopPropagation(),r()},className:"pointer-events-auto rounded-full bg-white/20 p-6 backdrop-blur-sm transition-transform hover:scale-110","aria-label":S("playButton"),children:(0,n.jsx)(y.default,{className:"size-16 text-white"})})}),(0,n.jsx)("div",{className:(0,d.twJoin)("absolute bottom-0 left-0 right-0 z-20 bg-gradient-to-t from-black/60 via-black/30 to-transparent pb-safe transition-opacity duration-300",c?"opacity-100":"opacity-0 pointer-events-none"),onClick:e=>{e.stopPropagation()},children:(0,n.jsxs)("div",{className:"px-4 pb-4",children:[(s||o)&&(0,n.jsxs)("div",{className:"text-neutral-white mb-4 md:hidden",children:[s&&(0,n.jsx)("h2",{className:"mb-1 line-clamp-2 font-semibold",children:s}),o&&(0,n.jsx)("p",{className:"line-clamp-2 opacity-90",children:o})]}),(0,n.jsxs)("div",{className:"space-y-2",children:[(0,n.jsx)("div",{className:"group relative h-1 cursor-pointer overflow-hidden rounded-full bg-white/30",onClick:u,onTouchEnd:u,role:"slider","aria-label":S("progressBar"),"aria-valuemin":0,"aria-valuemax":l,"aria-valuenow":a,children:(0,n.jsx)("div",{className:"absolute left-0 top-0 h-full bg-white transition-all",style:{width:`${a/l*100}%`}})}),(0,n.jsxs)("div",{className:"text-neutral-white flex justify-between ",children:[(0,n.jsx)("span",{children:v(a)}),(0,n.jsx)("span",{children:v(l)})]})]})]})})]})};e.s(["default",0,({isOpen:e,onClose:a,videos:l,initialVideoIndex:r=0,onVideoChange:i,autoPlay:s=!0,showControls:g=!0,enableKeyboardNav:f=!0,enableSwipeGestures:p=!0})=>{let[E,A]=(0,t.useState)(!1),[y,v]=(0,t.useState)(!0),[N,C]=(0,t.useState)(!1),[_,I
227]=(0,t.useState)(!1),[w,O]=(0,t.useState)(!1),[L,T]=(0,t.useState)({playing:!1,volume:1,progress:{playedSeconds:0},duration:0,muted:!1}),[R,k]=(0,t.useState)({}),M=(0,t.useRef)(!1),j=(0,t.useRef)(null),{currentVideoIndex:D,setCurrentVideoIndex:P,translateY:G,isTransitioning:B,containerRef:U,handleNextVideo:V,handlePreviousVideo:z}=(({videos:e,onVideoChange:a})=>{let[l,r]=(0,t.useState)(0),[i,s]=(0,t.useState)(0),[n,o]=(0,t.useState)(!1),d=(0,t.useRef)(null),c=(0,t.useCallback)(t=>{t>=0&&t<e.length&&t!==l&&(r(t),a?.(t))},[e.length,a,l]),u=(0,t.useCallback)(()=>{if(l<e.length-1){let e=d.current?.clientHeight||window.innerHeight;o(!0),s(-e),setTimeout(()=>{c(l+1),s(0),o(!1)},300)}},[l,c,e.length]),m=(0,t.useCallback)(()=>{if(l>0){let e=d.current?.clientHeight||window.innerHeight;o(!0),s(e),setTimeout(()=>{c(l-1),s(0),o(!1)},300)}},[l,c]);return{currentVideoIndex:l,setCurrentVideoIndex:r,translateY:i,setTranslateY:s,isTransitioning:n,setIsTransitioning:o,containerRef:d,handleNextVideo:u,handlePreviousVideo:m}})({videos:l,onVideoChange:i}),{showControls:$,setShowControls:H,showControlsTemporarily:K,hideControlsWithDelay:F}=((e,a)=>{let[l,r]=(0,t.useState)(!0),i=(0,t.useRef)(void 0),s=(0,t.useCallback)(()=>{i.current&&clearTimeout(i.current),i.current=setTimeout(()=>{e&&!a&&r(!1)},3e3)},[e,a]),n=(0,t.useCallback)(()=>{r(!0),s()},[s]);return(0,t.useEffect)(()=>{e&&l&&!a&&s()},[e,l,s,a]),(0,t.useEffect)(()=>()=>{i.current&&clearTimeout(i.current)},[]),{showControls:l,setShowControls:r,showControlsTemporarily:n,hideControlsWithDelay:s}})(L.playing,_);(0,c.default)(e,E);let W=l[D];(0,t.useEffect)(()=>{if(W){let e=R[W.id];e?T(t=>({...t,duration:e})):T(e=>({...e,duration:0}))}},[D,W?.id]);let Y=(0,t.useCallback)(()=>{T(e=>({...e,playing:!e.playing})),L.playing?H(!0):F()},[L.playing,F,H]),Z=(0,t.useCallback)(()=>{T(e=>({...e,muted:!e.muted}))},[]),X=(0,t.useCallback)(()=>{v(!0),C(!1),M.current=!1,V(),setTimeout(()=>{T({playing:s,volume:1,progress:{playedSeconds:0},duration:0,muted:!1})},50)},[V,s]),J=(0,t.useCallback)(()=>{v(!0),C(!1),M.current=!1,z(),setTimeout(()=>{T({playing:s,volume:1,progress:{playedSeconds:0},duration:0,muted:!1})},50)},[z,s]);(({enabled:e,isOpen:a,onClose:l,onPlayPause:r,onPreviousVideo:i,onNextVideo:s,onToggleMute:n})=>{let o=(0,t.useCallback)(t=>{if(e&&a)switch(t.key){case"Escape":l();break;case" ":t.preventDefault(),r();break;case"ArrowUp":t.preventDefault(),i();break;case"ArrowDown":t.preventDefault(),s();break;case"m":n()}},[e,a,l,r,i,s,n]);(0,t.useEffect)(()=>{if(a)return window.addEventListener("keydown",o),()=>{window.removeEventListener("keydown",o)}},[a,o])})({enabled:f,isOpen:e,onClose:a,onPlayPause:Y,onPreviousVideo:J,onNextVideo:X,onToggleMute:Z}),(({enabled:e,isOpen:a,onPreviousVideo:l,onNextVideo:r,onClose:i,currentVideoIndex:s,totalVideos:n})=>{let o=(0,t.useRef)(0),d=(0,t.useRef)(0),c=(0,t.useRef)(!1),u=(0,t.useCallback)(t=>{e&&a&&1===t.touches.length&&(o.current=t.touches[0].clientY,d.current=Date.now(),c.current=!1)},[e,a]),m=(0,t.useCallback)(t=>{e&&a&&1===t.touches.length&&(Math.abs(t.touches[0].clientY-o.current)>10&&!c.current&&(c.current=!0),c.current&&t.preventDefault())},[e,a]),g=(0,t.useCallback)(t=>{if(!e||!a)return;let u=Date.now()-d.current,m=t.changedTouches.length>0?t.changedTouches[0].clientY-o.current:0,g=Math.abs(m);(c.current=!1,m>150&&o.current<100)?i():(g>50||g/u>.3)&&(m>0&&s>0?l():m<0&&s<n-1&&r())},[e,a,l,r,i,s,n]);(0,t.useEffect)(()=>{if(a)return window.addEventListener("touchstart",u,{passive:!0}),window.addEventListener("touchmove",m,{passive:!1}),window.addEventListener("touchend",g,{passive:!0}),()=>{window.removeEventListener("touchstart",u),window.removeEventListener("touchmove",m),window.removeEventListener("touchend",g)}},[a,u,m,g])})({enabled:p,isOpen:e,onPreviousVideo:J,onNextVideo:X,onClose:a,currentVideoIndex:D,totalVideos:l.length}),(0,t.useEffect)(()=>(A(!0),()=>A(!1)),[]),(0,t.useEffect)(()=>{P(r)},[r,P]),(0,t.useEffect)(()=>{e?(v(!0),C(!1),H(!0),T(e=>({...e,playing:s,muted:!1,volume:1}))):(T({playing:!1,volume:1,progress:{playedSeconds:0},duration:0,muted:!1}),k({}),M.current=!1)},[e,H,s]),(0,t.useEffect)(()=>{L.playing&&L.progress.playedSeconds>0&&(v(!1),I(!1))},[L.playing,L.progress.playedSeconds]),(0,t.useEffect)(()=>
227{if(L.duration<=0)return;let e=L.progress.playedSeconds>=L.duration-1,t=D<l.length-1;e&&t&&!M.current&&(M.current=!0,X())},[L.duration,L.progress.playedSeconds,D,W?.id,l.length,X]),(0,t.useEffect)(()=>{if(y&&W){let e=setTimeout(()=>{v(!1)},2e3);return()=>clearTimeout(e)}},[y,W]);let q=(0,t.useCallback)(e=>{j.current&&j.current.seekTo(e)},[]),Q=(0,t.useCallback)(e=>{T(t=>({...t,volume:e,muted:0===e}))},[]),ee=(0,t.useCallback)(()=>{C(!1),v(!0)},[]),et=(0,t.useCallback)(e=>{e.target===e.currentTarget&&window.matchMedia("(min-width: 768px)").matches&&a()},[a]),ea=w||!L.playing;return W&&E&&e?(0,o.createPortal)((0,n.jsxs)("div",{className:"fixed inset-0 z-[4000002] overflow-hidden",children:[(0,n.jsx)(h,{onClick:a}),(0,n.jsx)("button",{onClick:a,className:"absolute right-4 top-4 z-[4000003] flex size-10 items-center justify-center rounded-full bg-black/50 dark:bg-white/10 backdrop-blur-sm transition-all hover:bg-black/70 text-neutral-white","aria-label":S("closeButton"),children:(0,n.jsx)(m.default,{className:"dark:text-neutral-white size-6"})}),(0,n.jsxs)("div",{ref:U,className:"relative size-full md:flex md:items-center md:justify-center",style:{touchAction:"pan-y"},onClick:et,children:[(0,n.jsxs)("div",{className:"relative size-full bg-black md:aspect-ratio-9-16 md:max-h-[80vh] md:w-auto md:overflow-hidden md:rounded-xl",onClick:e=>e.stopPropagation(),onMouseMove:K,onMouseEnter:()=>O(!0),onMouseLeave:()=>O(!1),role:"dialog","aria-label":S("modal"),children:[l.map((e,t)=>{let a,l=Math.abs(t-D);if(l>2)return null;let r=t===D;return l<=2?(0,n.jsx)(x,{ref:r?j:void 0,video:e,videoState:L,setVideoState:T,shouldPlay:r,hasError:N&&t===D,onRetry:ee,onDurationChange:t=>{k(a=>({...a,[e.id]:t})),r&&e.id===W?.id&&T(e=>({...e,duration:t}))},style:(a=(t-D)*(U.current?.clientHeight||window.innerHeight),{transform:`translateY(${a+G}px)`,transition:B?"transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94)":"none"})},e.id):null}),(0,n.jsxs)("div",{"aria-hidden":!ea,className:(0,d.twJoin)("pointer-events-none absolute inset-0 hidden transition-opacity duration-300 md:block",ea?"opacity-100":"opacity-0"),children:[(0,n.jsx)("div",{className:"glass-overlay absolute inset-0"}),(W.title||W.description)&&(0,n.jsxs)("div",{className:"text-neutral-white absolute inset-x-0 top-0 p-6",children:[W.title&&(0,n.jsx)("h2",{className:"mb-2 line-clamp-2 font-semibold drop-shadow-md",children:W.title}),W.description&&(0,n.jsx)("p",{className:"line-clamp-3 opacity-90 drop-shadow-md",children:W.description})]})]})]}),(0,n.jsxs)("div",{className:"absolute right-[calc(30%)] top-1/2 z-30 hidden -translate-y-1/2 flex-col gap-3 md:flex",children:[(0,n.jsx)("button",{onClick:J,disabled:0===D,className:(0,d.twJoin)("flex size-10 items-center justify-center rounded bg-white/10 transition-all",0===D?"cursor-not-allowed opacity-40":"hover:bg-white/20"),"aria-label":"Previous video",children:(0,n.jsx)(u.default,{className:"dark:text-neutral-white size-5 -rotate-90"})}),(0,n.jsx)("button",{onClick:X,disabled:D===l.length-1,className:(0,d.twJoin)("flex size-10 items-center justify-center rounded bg-white/10 transition-all",D===l.length-1?"cursor-not-allowed opacity-40":"hover:bg-white/20"),"aria-label":"Next video",children:(0,n.jsx)(u.default,{className:"dark:text-neutral-white size-5 rotate-90"})})]}),g&&W&&(0,n.jsx)(b,{isPlaying:L.playing,isMuted:L.muted,currentTime:L.progress.playedSeconds,duration:L.duration,volume:L.volume,onPlayPause:Y,onMute:Z,onSeek:q,onVolumeChange:Q,title:W.title,description:W.description,visible:$&&!0,hasNext:D<l.length-1,hasPrevious:D>0,onNext:X,onPrevious:J,isLoading:y,isBuffering:_})]})]}),document.body):null}],987280)},17357,e=>{"use strict";var t=e.i(843476),a=e.i(271645),l=e.i(919056),r=e.i(877611),i=e.i(421168),s=e.i(256377
227),n=e.i(729423),o=e.i(21060),d=e.i(987280),c=e.i(75526),u=e.i(325915),m=e.i(545259),g=e.i(705394),h=e.i(961815),f=e.i(873638);let p="hover:bg-neutral-grey-4 dark:text-neutral-white dark:hover:text-neutral-white dark:hover:bg-neutral-grey-70 absolute top-1/2 z-10 -translate-y-1/2 rounded-full p-3.5 cursor-pointer";e.s(["ContentCardCarousel",0,({articles:e,tabs:E,carouselTitle:x,onTabClick:A,onCardClick:S,areTabsLoading:y,direction:v="horizontal",className:b,trackedElementName:N,showMeta:C=!0,numCardsDisplay:_=5,carouselStyle:I="default",moreLink:w,endCursor:O,hasNextPage:L,pageId:T="video",...R})=>{let k=(0,m.default)(),M=(0,a.useMemo)(()=>({name:k.all,slug:"all",taxonomy:""}),[k.all]),[j,D]=(0,a.useState)(M),[P,G]=(0,a.useState)(e),B=(0,a.useRef)(null),[U,V]=(0,a.useState)({}),[z,$]=(0,a.useState)(!1),[H,K]=(0,a.useState)(!1),F=(0,a.useMemo)(()=>[M,...E??[]],[M,E]),W=(0,a.useMemo)(()=>(0,h.convertToVideoData)(P),[P]),{isOpen:Y,openModal:Z,closeModal:X,currentVideoIndex:J,setCurrentVideoIndex:q}=(0,i.default)({videos:[]}),Q=W.length>0,{videos:ee}=(0,s.default)({initialVideos:Q&&Y?W:[],currentIndex:J,threshold:3,..."tall"===I&&{carouselTitle:x,initialEndCursor:O,initialHasNextPage:L,pageId:T}}),et=Y&&Q?ee:W;(0,a.useEffect)(()=>{G(e)},[e]);let ea=(0,a.useCallback)(async t=>{if(A)if(D(t),"all"===t.slug)G(e);else try{let e=await A(t);Array.isArray(e)&&G(e)}catch(e){console.error("Error fetching articles:",e)}},[e,A]),el=(0,a.useCallback)(e=>{let t=x||"Carousel",{elementName:a,elementId:l}=(0,c.default)({trackedElementName:`Homepage ${t} Carousel`,articleHeading:e});return{elementId:l,elementType:"link",elementName:a}},[x]),er=(0,a.useCallback)((e,t)=>{if((0,u.default)(el(e.heading)),S)return void S(e,t);if(e.isVideoShort){t?.preventDefault(),t?.stopPropagation();let a=et.findIndex(t=>t.id===e.id);-1!==a&&Z(a)}},[el,S,et,Z]),ei=(0,a.useCallback)(()=>{let e=B.current;e?requestAnimationFrame(()=>{let t=window.getComputedStyle(e).overflowX;if("auto"!==t&&"scroll"!==t){$(!1),K(!1),V({});return}let a=window.innerWidth<1024,{scrollLeft:l,scrollWidth:r,clientWidth:i}=e,s=l>0,n=!a&&l<r-i-1;$(e=>e!==s?s:e),K(e=>e!==n?n:e);let o="";s&&n?o="linear-gradient(to right, transparent 0%, black 20%, black 80%, transparent 100%)":s?o="linear-gradient(to right, transparent 0%, black 20%, black 100%)":n&&(o="linear-gradient(to right, black 0%, black 80%, transparent 100%)");let d=o?{maskImage:o,WebkitMaskImage:o}:{};V(e=>(e.maskImage||"")!==(d.maskImage||"")?d:e)}):($(!1),K(!1),V({}))},[]);(0,a.useEffect)(()=>{ei();let e=B.current;return e&&e.addEventListener("scroll",ei),()=>{e&&e.removeEventListener("scroll",ei)}},[P,ei,x]);let es=(0,a.useCallback)(()=>{if(P?.length===0)return(0,t.jsx)("h2",{className:"text-display-4 dark:text-neutral-white font-display py-5 font-bold uppercase",children:k["no-articles"]});let e=_&&_>0?_:5,a=P.length>e,r="tall"===I||a&&"vertical"!==v,i=e=>{if(B.current){let t="tall"===I?300:600;B.current.scrollBy({left:"left"===e?-t:t,behavior:"smooth"}),ei()}},s=(()=>{if(!_||_<=0)return;let e=_-1;return`calc((100% - ${20*e}px) / ${_})`})(),n="horizontal"===v||"tall"===I||r,d=r&&("tall"===I||n&&a),c=s?{"--carousel-card-width":s,...d?U:{}}:{...d?U:{}},u=(0,t.jsx)("div",{ref:r?B:void 0,className:(0,l.twJoin)("flex gap-5","tall"===I?"flex-row overflow-x-auto remove-scrollbar":"flex-col","lg:min-h-[234px]",P?.length===0&&"lg:min-h-fit","vertical"===v&&"tall"!==I&&"lg:flex-col lg:gap-y-5",n&&a&&"lg:overflow-x-auto remove-scrollbar",n&&!a&&"lg:flex-row lg:gap-x-5",n&&a&&"lg:flex-row lg:gap-x-5",r&&"lg:will-change-scroll lg:transform-gpu"),style:{...c,...r&&{backfaceVisibility:"hidden",perspective:"1000px",transform:"translateZ(0)"}},onScroll:r?ei:void 0,children:P?.map(e=>(0,t.jsx)("div",{className:(0,l.twJoin)("tall"===I&&"w-2/3 min-w-[160px] shrink-0 md:w-1/4 md:min-w-[200px]","tall"!==I&&"w-full",!s&&"tall"!==I&&"lg:w-[240px] lg:shrink-0",s&&"tall"!==I&&"lg:shrink-0",s&&"tall"!==I&&"lg:[width:var(--carousel-card-width)] lg:[min-width:var(--carousel-card-width)]","tall"===I&&"lg:w-[240px] lg:min-w-[240px] lg:shrink-0",r&&"lg:transform-gpu"),style:r?{contain:"layout style paint",transform:"translateZ(0)"}:void 0,onClick:e.isVideoShort?void 0:t=>er(e,t),children:(0,t.jsx)(o.default,{articleId:e.id,articleTitle:e.heading,articleUrl:e.href,categoryName:e.category?.name||"",categoryColor:e.vertical?.colors?.primary,categoryUrl:`/${e.category?.slug}`,imageSrc:e.img?.src||"",imageDescription:e.img?.alt,stackOn:["lg"],authorName:C&&e.author?.name?e.author?.name:void 0,authorUrl:C&&e.author?.href?e.author?.href:void 0,modificationDate:C&&e.timeUpdated?e.timeUpdated:void 0,responsiveSize:"tall"===I?{sm:"long",md:"long",lg:"long"}:{sm:"medium",md:"large",lg:"large"},isLoading:y,onClick:e.isVideoShort?void 0:t=>er(e,t),onImageClick:e.isVideoShort?t=>er(e,t):void 0,isVideoVariant:e.isVideo||e.isVideoShort,isVideoShort:e.isVideoShort,videoUrl:e.isVideo?e.href:void 0,videoLength:e.videoLe
227ngth})},e.id))});return r?(0,t.jsxs)("div",{className:"relative flex items-center",children:[z&&(0,t.jsx)("button",{onClick:()=>i("left"),className:(0,l.twJoin)(p,"left-2","tall"===I?"hidden md:block":"hidden lg:block"),"aria-label":"Scroll left",children:(0,t.jsx)(f.default,{className:"size-8 rotate-180"})}),u,H&&(0,t.jsx)("button",{onClick:()=>i("right"),className:(0,l.twJoin)(p,"right-2","tall"===I?"hidden md:block":"hidden lg:block"),"aria-label":"Scroll right",children:(0,t.jsx)(f.default,{className:"size-8"})})]}):u},[y,P,v,k,C,er,_,I,U,z,H,ei]);return(0,t.jsxs)("div",{...R,className:(0,g.classMerge)("flex flex-col gap-y-5 overflow-hidden",b),children:[(0,t.jsxs)("div",{className:"flex items-end justify-between",children:[(0,t.jsxs)("div",{className:(0,g.classMerge)("flex flex-col gap-y-5",E&&"overflow-x-auto"),children:[(0,t.jsx)("h2",{className:(0,l.twJoin)("font-display text-neutral-grey dark:text-neutral-white text-display-6 font-bold uppercase","external:text-custom-content-primary-text"),children:x}),E&&A&&(0,t.jsx)("ul",{className:"remove-scrollbar flex gap-x-4 overflow-x-auto",children:F.map(e=>(0,t.jsx)("li",{children:(0,t.jsx)(n.default,{className:(0,l.twJoin)("hover:bg-primary-accent hover:text-neutral-grey bg-neutral-black text-neutral-white min-w-[150px] capitalize",j.name===e.name?"bg-primary-accent text-neutral-grey external:text-custom-filter-active-button-text external:bg-custom-filter-active-button-background":"bg-neutral-black text-neutral-white external:text-custom-filter-inactive-button-text external:bg-custom-filter-inactive-button-background"),onClick:()=>ea(e),children:e.name})},e.slug))})]}),w&&(0,t.jsx)(r.default,{className:(0,l.twJoin)("dark:text-neutral-white font-display text-link-5 dark:hover:text-primary-accent","font-extrabold underline underline-offset-4 external:text-custom-content-primary-text"),href:w?.url??"",...w?.target&&{target:w.target},children:w.title&&""!==w.title.trim()?w.title:k["view-all-carousel"]})]}),es(),(0,t.jsx)(d.default,{isOpen:Y,onClose:X,videos:et,initialVideoIndex:J,onVideoChange:q,autoPlay:!0,showControls:!0,enableKeyboardNav:!0,enableSwipeGestures:!0})]})}])}]);
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.