"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5772],{32106:function(e,t,i){i.d(t,{L:function(){return $n}});var n=i(95235),a=i(82269),r=i(97729),o=i.n(r),s=i(2784),l=i(52322),d=i(7307),c=i(60126),p=i(35065),m=i(91383),u=i(53431),h=i(93559),g=i(46891),f=i(13980),x=i.n(f),v=i(52049),b=i(3517),w=i(29650),y=i(23357),j=i(65324),_=i(32899),k=i(47281),C=i(24282),I=i(72692),z=i(45269);const U=["text","tag","color","dangerous","textClassName","className"],R=["keyId"],N=["className","children"],S=["id","use","className"],M=["variant","showStatic","className","children"],E=["className"],T=["id"];function A(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function P(e){for(var t=1;t{let{theme:t}=e;return t.pmp.namespace}),F.weights.medium),B=(0,s.createContext)(),D=e=>{let{children:t}=e;const{0:i,1:n}=(0,s.useState)(!0),a={muted:i,setMuted:n};return(0,l.jsx)(B.Provider,{value:a,children:t})},Y=d.default.div.withConfig({componentId:"pmp-module__sc-vxdl42-0"})(["background-color:#847051;position:relative;height:12px;width:100%;&::before,&::after{content:'';}&::before{position:absolute;top:0;left:0;width:100%;height:3px;background-color:#bfa17c;}&::after{position:absolute;bottom:0;width:100%;left:0;height:3px;background-color:#a18463;}"]);var q=e=>{let{className:t}=e;return(0,l.jsx)(Y,{className:t})};const $=d.default.span.withConfig({componentId:"pmp-module__sc-q5nwxc-0"})(["filter:url('#cloud');z-index:1;color:#ff000000;"]),W=d.default.span.withConfig({componentId:"pmp-module__sc-q5nwxc-1"})(["z-index:2;opacity:0.8;"]),G=d.default.h2.withConfig({componentId:"pmp-module__sc-q5nwxc-2"})(["position:relative;overflow:visible;text-transform:uppercase;",",","{display:block;position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);padding:10px 0;pointer-events:none;width:100%;}",";",""],$,W,(e=>{let{$color:t}=e;return"green"===t&&(0,d.css)(["",",","{text-shadow:0 -1px 1px #33ff33;}","{text-shadow:0 -1px 1px #33ff33ff,0 -5px 5px #33ff3399,0 -9px 9px #33ff3366,0 -13px 13px #33ff3333,0 -20px 20px #33ff3355,0 -40px 20px #33ff3325;}"],$,W,$)}),(e=>{let{$color:t}=e;return"pink"===t&&(0,d.css)(["",",","{text-shadow:0 -1px 1px #e370ff;}","{text-shadow:0 -1px 1px #e370ffff,0 -5px 5px #e370ff99,0 -9px 9px #e370ff66,0 -13px 13px #e370ff33,0 -20px 20px #e370ff55,0 -40px 20px #e370ff25;}"],$,W,$)})),H=e=>{let t=e;const i=["Nintendo Switch\u2122"];for(const n of i){const i=new RegExp(n,"i");if(i.test(e)){t=e.replace(i,`${i.exec(e)[0]}`);break}}return t},X=e=>{let{text:t,tag:i,color:n,dangerous:r,textClassName:o,className:s}=e,d=(0,a.Z)(e,U);if(t)return(0,l.jsxs)(G,P(P({as:i,$color:n,className:(0,c.i)([s])},d),{},{children:[(0,l.jsx)("span",{dangerouslySetInnerHTML:{__html:H(t)}}),(0,l.jsx)($,{className:o,"aria-hidden":"true",dangerouslySetInnerHTML:{__html:H(t)}}),(0,l.jsx)(W,{className:o,"aria-hidden":"true",dangerouslySetInnerHTML:{__html:H(t)}})]}))};X.defaultProps={color:"green",tag:"h2",textClassName:"title-1"};var V=X;const Z=(0,d.keyframes)(["0%,100%{transform:translate(0,-50%) scale(1.4);}50%{transform:translate(0,-50%) scale(0);}"]),K=d.default.div.withConfig({componentId:"pmp-module__sc-q9fx7c-0"})(["@media ","{display:block;width:50%;aspect-ratio:1/1;border-radius:50%;background-color:#623b7c;filter:blur(2px) brightness(0.4);opacity:0.8;mix-blend-mode:plus-lighter;left:0;top:50%;z-index:1;transform:translate(0,-50%) scale(1.4);position:absolute;animation:"," "," ease-in-out;}"],(0,c.a)("largeUp"),Z,(0,g.d)(.5));var J=e=>{let{keyId:t}=e,i=(0,a.Z)(e,R);return(0,l.jsx)(K,P({},i),t)};const Q=d.default.div.withConfig({componentId:"pmp-module__sc-7eg1mt-0"})(["",";padding:0;position:relative;touch-action:pan-y;@media ","{padding:0;}.gallery{--item-width:100%;display:grid;grid-template:1fr var(--dot-size,1rem) / 1fr;grid-template-areas:'main';justify-items:center;}.gallery__main{grid-area:main;}"],u.w,(0,c.a)("largeUp")),ee=d.default.div.withConfig({componentId:"pmp-module__sc-7eg1mt-1"})(["align-items:center;color:#efefef;display:grid;padding:1rem;place-content:center;text-align:center;grid-template-areas:'image' 'content';@media ","{grid-template-columns:1fr 1fr;grid-template-areas:none;}",""],(0,c.a)("largeUp"),(e=>{let{active:t}=e;return t&&(0,d.css)(["",",","{opacity:1;}","{transform:scale(0.9);opacity:0.21;}"],pe,oe,ue)})),te=d.default.div.withConfig({componentId:"pmp-module__sc-7eg1mt-2"})(["display:flex;grid-area:main;inline-size:100%;justify-content:space-between;padding:0 0.5rem;pointer-events:none;z-index:10;height:0;padding-top:100%;position:relative;@media ","{grid-area:auto;padding-top:0;height:auto;inline-size:auto;gap:",";display:flex;width:calc(50% - var(--gutter-width));justify-content:center;margin-left:auto;margin-right:var(--gutter-width);transform:translateY(-35px);}@media ","{transform:translateY(-135px);}@media ","{transform:translateY(-165px);}"],(0,c.a)("largeUp"),(0,c.s)(3),(0,c.a)("xlargeUp"),(0,c.a)("xxlarge")),ie=(0,d.keyframes)(["0%{transform:rotate(0)}33%{transform:rotate(-8deg);}66%{transform:rotate(8deg);}100%{transform:rotate(0);}"]),ne=d.default.span.withConfig({componentId:"pmp-module__sc-7eg1mt-3"})(["--dimensions:38px;block-size:var(--dimensions);color:",";display:flex;font-size:var(--dimensions);pointer-events:all;position:absolute;top:50%;@media ","{--dimensions:40px;}@media ","{--dimensions:76px;position:relative;left:auto;right:auto;top:auto;}@media (hover:hover){&:hover{animation:"," "," ease-in-out infinite;}}"],(0,c.b)("green"),(0,c.a)("mediumUp"),(0,c.a)("largeUp"),ie,(0,g.d)(.5)),ae=(0,d.default)(ne).withConfig({componentId:"pmp-module__sc-7eg1mt-4"})(["left:0;"]),re=(0,d.default)(ne).withConfig({componentId:"pmp-module__sc-7eg1mt-5"})(["right:0;"]),oe=d.default.div.withConfig({componentId:"pmp-module__sc-7eg1mt-6"})(["grid-area:content;position:relative;opacity:0;transition:opacity ",";transition-delay:",";@media ","{grid-area:auto;}.title-wrapper{top:0;left:50%;transform:translate(-50%,-50%);position:absolute;max-width:calc(100% - 32px);z-index:1;@media ","{max-width:calc(100% - 76px);}@media ","{max-width:calc(100% - 88px);}}"],(0,g.d)(.5),(0,g.d)(.2),(0,c.a)("largeUp"),(0,c.a)("mediumUp"),(0,c.a)("largeUp")),se=d.default.div.withConfig({componentId:"pmp-module__sc-7eg1mt-7"})(["padding:14px 20px 16px 14px;clip-path:polygon(0% 0%,99% 0%,98.15% 100%,0.65% 98%);background:linear-gradient(0deg,#634b05 0%,#6e5c00 100%);box-shadow:0px 0px 4px 0px rgba(0,0,0,0.5) inset;"]),le=d.default.div.withConfig({componentId:"pmp-module__sc-7eg1mt-8"})(["&&{background-size:auto;}padding:40px 19px 40px 14px;box-shadow:0px 0px 4px 0px rgba(0,0,0,0.5) inset;@media ","{padding:39px 35px 39px 39px;}@media ","{padding:90px 40px 90px 48px;}"],(0,c.a)("mediumUp"),(0,c.a)("largeUp")),de=(0,d.keyframes)(["to{transform:translateY(10px)}"]),ce=d.default.div.withConfig({componentId:"pmp-module__sc-7eg1mt-9"})(["display:grid;grid-area:image;margin:0 auto;width:calc(4 / 6 * 100%);@media ","{grid-area:auto;width:100%;}"],(0,c.a)("largeUp")),pe=(0,d.default)(h.I).withConfig({componentId:"pmp-module__sc-7eg1mt-10"})(["grid-area:image;margin:0 auto;transition:opacity ",";transition-delay:",";opacity:0;"," "," ",""],(0,g.d)(.5),(0,g.d)(.2),(e=>{let{$isGhost:t}=e;return!t&&(0,d.css)(["width:calc(4 / 6 * 100%);@media ","{width:50%;}@media ","{grid-area:auto;width:100%;}"],(0,c.a)("mediumUp"),(0,c.a)("largeUp"))}),(e=>{let{$index:t}=e;return 1===t&&(0,d.css)(["z-index:1;"])}),(e=>{let{$animate:t,$index:i}=e;return t&&(0,d.css)(["animation:"," "," ease-in-out infinite alternate;"],de,(0,g.d)(1+.5*i))})),me=d.default.div.withConfig({componentId:"pmp-module__sc-7eg1mt-11"})(["display:none;@media ","{grid-area:main;grid-template-columns:1fr 1fr;inline-size:100%;position:relative;display:grid;}"],(0,c.a)("largeUp"));d.default.div.withConfig({componentId:"pmp-module__sc-7eg1mt-12"})(["@media ","{display:block;width:50%;aspect-ratio:1/1;border-radius:50%;background-color:rgba(255,255,255,0.1);filter:blur(5px);left:0;top:50%;z-index:1;transform:translate(0,-50%) scale(1.4);position:absolute;}"],(0,c.a)("largeUp"));const ue=d.default.div.withConfig({componentId:"pmp-module__sc-7eg1mt-13"})(["grid-area:image;aspect-ratio:1;inline-size:100%;border-radius:50%;background-color:#623b7c;filter:blur(2px) brightness(2.1);opacity:0;transform:scale(0);transition:opacity ",",transform ",";@media ","{display:none;}"],(0,g.d)(.1),(0,g.d)(.5),(0,c.a)("largeUp"));function he(e){let{items:t,ghosts:i}=e;const{text:n}=(0,_.i1)(),{0:a,1:r}=(0,s.useState)({uuid:Date.now()});return(0,l.jsx)(g.I,{as:Q,children:(0,l.jsxs)(I.ri,{items:t,ariaLiveText:n("Active gallery item: $i of $t."),startIndex:0,visibleRange:0,loop:!0,onChange:()=>{r({uuid:Date.now()})},children:[(0,l.jsx)(me,{animation:"pop",children:(0,l.jsx)(J,{keyId:a.uuid})}),(0,l.jsx)(I.nH,{renderGalleryItem:e=>{let{active:n,index:a,item:r}=e;return(0,l.jsx)(I.Lm,{index:a,active:n,children:(0,l.jsxs)(ee,{active:n,children:[(0,l.jsx)(ue,{}),a===t.length-1?(0,l.jsx)(ce,{children:i.map(((e,t)=>{let{assetPath:i,alt:a,id:r}=e;return(0,l.jsx)(pe,{assetPath:i,alt:a,lazyLoad:!1,$active:n,$animate:n,$index:t,$isGhost:!0},r)}))}):(0,l.jsx)(pe,{assetPath:r.asset.primary.assetPath,alt:r.asset.alt,lazyLoad:!1,$active:n}),(0,l.jsxs)(oe,{children:[(0,l.jsx)(ti,{className:"title-wrapper",children:(0,l.jsx)("h3",{className:"title-2",children:r.heading})}),(0,l.jsx)(se,{children:(0,l.jsx)(le,{className:"bg--wood-tile",children:(0,l.jsx)(g.e,{data:r.body})})})]})]})},r.heading)}}),(0,l.jsxs)(te,{children:[(0,l.jsx)(I.__,{direction:0,children:(0,l.jsxs)(g.b,{as:ae,$direction:"0",animation:"left",children:[(0,l.jsx)(Hi,{direction:"left",glowColor:"pink"}),(0,l.jsx)(m.S,{children:n("Previous gallery item")})]})}),(0,l.jsx)(I.__,{direction:1,children:(0,l.jsxs)(g.b,{as:re,$direction:"1",animation:"right",children:[(0,l.jsx)(Hi,{glowColor:"pink"}),(0,l.jsx)(m.S,{children:n("Next gallery item")})]})})]})]})})}he.defaultProps={items:x().array};const ge=d.default.div.withConfig({componentId:"pmp-module__sc-1bbqs3g-0"})([""]),fe=d.default.div.withConfig({componentId:"pmp-module__sc-1bbqs3g-1"})(["position:relative;padding-bottom:",";padding-top:",";@media ","{padding-bottom:",";padding-top:",";}@media ","{padding-bottom:",";padding-top:",";}&::before{",";content:'';background:rgba(0,0,0,0.3);z-index:1;}"],(0,c.s)(3),(0,c.s)(6),(0,c.a)("mediumUp"),(0,c.s)(4),(0,c.s)(7),(0,c.a)("largeUp"),(0,c.s)(4),(0,c.s)(12),c.f),xe=(0,d.default)(g.R).withConfig({componentId:"pmp-module__sc-1bbqs3g-2"})(["position:relative;z-index:1;"]);var ve=()=>{const{section:e,intro:t,ghosts:i}=(0,g.a)({section:"6314IKkpDORFFjcTSEP0zw",intro:"6bK92uykr5JweBh68rUakW",ghosts:"2AA6Edrj4A760CZhgvTHwV"}),n=i?(0,C.g)(i):[],a=(0,s.useMemo)((()=>e.modules.filter((e=>"modulePromoC"===e.__contentType&&e.asset))),[e]);return(0,l.jsxs)(ge,{children:[(0,l.jsx)(q,{}),(0,l.jsxs)(g.I,{as:fe,className:"bg--purple-tile",children:[(0,l.jsx)(xe,{children:(0,l.jsxs)(g.C,{span:10,children:[(0,l.jsx)(g.b,{as:V,text:t.heading,className:"title-1 color-white text-center",animation:"fade"}),(0,l.jsx)(g.b,{as:g.e,data:t.body,className:"color-white weight--medium text-center",animation:"shortUp",delay:.2})]})}),(0,l.jsx)(g.R,{children:(0,l.jsx)(g.C,{span:10,children:(0,l.jsx)(he,{items:a,ghosts:n})})})]})]})};const be=d.default.div.withConfig({componentId:"pmp-module__sc-xup1u8-0"})(["background:",";color:",";"],(0,c.b)("white"),(0,c.b)("black"));function we(){const{data:e}=(0,g.a)({data:"64nIL17GGcu7WzspWgmxPA"});return(0,l.jsx)(be,{className:"padding-top--5 padding-bottom--6",children:(0,l.jsx)(g.R,{children:(0,l.jsx)(g.C,{span:12,large:10,xxlarge:8,className:"child-spacing--1",children:(0,l.jsx)(g.e,{data:e.richText,className:"body--legal"})})})})}const ye=()=>{const e=(0,s.useContext)(B);if(!e)throw new Error("useAudio hook must be used within a AudioProvider.");return e},je=(0,d.keyframes)(["0%{bottom:var(--start-y-percent);}100%{bottom:calc(var(--delta-y-percent) + 100%);}"]),_e=(0,d.keyframes)(["0%{transform:translateX( calc(0 + var(--delta-x-pixels))) scale(0);opacity:0;}16%,48%{transform:translateX( calc(-10px + var(--delta-x-pixels))) scale(.65);opacity:.15;}33%,64%{transform:translateX( calc(10px + var(--delta-x-pixels))) scale(1.1);opacity:.7;}80%{transform:translateX( calc(5px + var(--delta-x-pixels))) scale(.5);opacity:.5;}100%{transform:translateX( calc(var(--delta-x-pixels))) scale(0);opacity:0;}"]),ke=d.default.div.withConfig({componentId:"pmp-module__sc-1o0lfee-0"})(["--particle-container-size:100px;width:var(--particle-container-size);aspect-ratio:1;overflow:visible;position:absolute;left:0;bottom:0;transform:translateX(-50%);"]),Ce=d.default.div.withConfig({componentId:"pmp-module__sc-1o0lfee-1"})(["width:var(--pixel-size);aspect-ratio:1;position:absolute;bottom:var(--start-y-percent);left:var(--start-x-percent);animation:"," "," ease-in-out "," infinite;&::before{content:'';",";background-color:#fff;display:block;border-radius:50%;filter:blur(2px);opacity:0;transform:translateX(0) scale(0);animation:"," "," ease-in-out "," infinite forwards;}"],je,(0,g.d)("var(--duration)"),(0,g.d)("var(--delay)"),c.f,_e,(0,g.d)("var(--duration)"),(0,g.d)("var(--delay)")),Ie=[{pixelSize:(0,k.r)(4,15),startYpercent:(0,k.r)(0,50),startXpercent:(0,k.r)(0,100),deltaYpercent:(0,k.r)(-15,15),deltaXpixels:(0,k.r)(0,30),duration:(0,k.r)(3,5),delay:(0,k.r)(1,3)},{pixelSize:(0,k.r)(4,15),startYpercent:(0,k.r)(0,30),startXpercent:(0,k.r)(0,100),deltaYpercent:(0,k.r)(-15,15),deltaXpixels:(0,k.r)(0,30),duration:(0,k.r)(3,5),delay:(0,k.r)(3,5)},{pixelSize:(0,k.r)(4,15),startYpercent:(0,k.r)(0,50),startXpercent:(0,k.r)(0,100),deltaYpercent:(0,k.r)(0,76),deltaXpixels:(0,k.r)(0,30),duration:(0,k.r)(5,8),delay:(0,k.r)(2,6)}];var ze=e=>{let{delayMultiplier:t,className:i}=e;return(0,l.jsx)(ke,{className:i,children:Ie.map(((e,i)=>{let{pixelSize:n,startYpercent:a,startXpercent:r,deltaYpercent:o,deltaXpixels:s,duration:d,delay:c}=e;return(0,l.jsx)(Ce,{style:{"--pixel-size":`${n}px`,"--start-y-percent":`${a}%`,"--start-x-percent":`${r}%`,"--delta-y-percent":`${o}%`,"--delta-x-pixels":`${s}px`,"--duration":d,"--delay":t?c*t:c}},i)}))})};const Ue=(0,d.keyframes)(["0%{transform:scale(1);opacity:1;}70%{opacity:0;transform:scale(.3);}100%{opacity:0;transform:scale(0);}"]),Re=(0,d.default)(ze).withConfig({componentId:"pmp-module__sc-1v98o18-0"})(["left:50%;"]),Ne=d.default.button.withConfig({componentId:"pmp-module__sc-1v98o18-1"})(["border:none;background:transparent;position:absolute;z-index:1;@media (hover:hover){cursor:pointer;}"," ",""],(e=>{let{clicked:t}=e;return t&&(0,d.css)(["pointer-events:none;","{opacity:0;visibility:hidden;}","{opacity:1;visibility:visible;animation:"," "," ease-in-out "," forwards;&::before{content:'';aspect-ratio:1;background:radial-gradient( 70.71% 70.71% at 50% 50%,rgba(255,255,255,0.5) 35%,rgba(245,233,63,0.5) 100% );border-radius:50%;display:block;filter:blur(10px);left:50%;position:absolute;top:50%;transform:translate(-50%,-50%);opacity:0.7;width:75%;z-index:-1;}}"],Te,Ae,Ue,(0,g.d)(1.5),(0,g.d)(.5))}),(e=>{let{groupIndex:t}=e;switch(t){case 1:return(0,d.css)(["width:",";top:0;right:0;--end-x:25%;--end-y:-25%;--start-x:25%;--start-y:-25%;@media ","{width:",";}@media ","{width:",";--end-x:0%;--end-y:-50%;--start-x:0%;--start-y:-50%;}"],(e=>{let{theme:t}=e;return(0,c.k)(t,6)}),(0,c.a)("mediumUp"),(e=>{let{theme:t}=e;return(0,c.k)(t,4)}),(0,c.a)("largeUp"),(e=>{let{theme:t}=e;return(0,c.k)(t,3)}));case 2:return(0,d.css)(["width:",";left:0;top:0;--end-x:-12.5%;--end-y:-30%;--start-x:-12.5%;--start-y:-30%;@media ","{width:",";}@media ","{width:",";--end-x:0%;--end-y:-50%;--start-x:0%;--start-y:-50%;}"],(e=>{let{theme:t}=e;return(0,c.k)(t,6)}),(0,c.a)("mediumUp"),(e=>{let{theme:t}=e;return(0,c.k)(t,4.5)}),(0,c.a)("largeUp"),(e=>{let{theme:t}=e;return(0,c.k)(t,3.5)}));case 3:return(0,d.css)(["width:",";top:100%;right:0;--end-x:37.5%;--end-y:-20%;--start-x:37.5%;--start-y:-20%;@media ","{width:",";--start-y:-25%;--end-y:-25%;}@media ","{width:29%;right:0;top:0;--end-x:25%;--end-y:-37.5%;--start-x:25%;--start-y:-37.5%;}","{bottom:25%;}"],(e=>{let{theme:t}=e;return(0,c.k)(t,6)}),(0,c.a)("mediumUp"),(e=>{let{theme:t}=e;return(0,c.k)(t,4)}),(0,c.a)("largeUp"),Re);default:return(0,d.css)(["width:",";left:100%;top:0;--end-x:-50%;--end-y:-25%;--start-x:0;--start-y:-25%;"],(e=>{let{theme:t}=e;return(0,c.k)(t,4)}))}})),Se=(0,d.keyframes)(["0%,100%{transform:translateY(0)}25%,75%{transform:translateY(-10px) rotate(0);}45%{transform:translateY(10px) rotate(-1deg);}60%{transform:translateY(-3px) rotate(1deg);}"]),Me=(0,d.keyframes)(["0%,100%{transform:rotate(0deg);}16%{transform:rotate(-5deg);}32%{transform:rotate(5deg);}50%,100%{transform:rotate(0deg);}"]),Ee=(0,d.default)(u.I).withConfig({componentId:"pmp-module__sc-1v98o18-2"})(["animation:"," "," ease-in-out infinite alternate;"],Me,(0,g.d)(1.5)),Te=d.default.img.withConfig({componentId:"pmp-module__sc-1v98o18-3"})(["visibility:visible;transition:visibility "," ease;animation:"," "," ease-in-out infinite;animation-delay:",";z-index:1;",""],(0,g.d)(0),Se,(0,g.d)(4),(e=>{let{$index:t}=e;return.5*t+"s"}),(e=>{let{$interacted:t}=e;return t&&(0,d.css)(["transition:opacity "," ease,visibility "," ease;"],(0,g.d)(1),(0,g.d)(0))})),Ae=(0,d.default)(u.a).withConfig({componentId:"pmp-module__sc-1v98o18-4"})(["visibility:hidden;opacity:0;transform:scale(1);transition:all "," ease;"],(0,g.d)(0)),Pe=d.default.img.withConfig({componentId:"pmp-module__sc-1v98o18-5"})([""]);var Fe=e=>{let{dimensions:t,ghostData:i,colorData:n,index:a}=e;const{muted:r}=ye(),{width:o,height:d,left:c,top:p}=t,{color:m}=n,{still:h,frozen:f}=i,x=(0,s.useRef)({});(0,s.useEffect)((()=>{x.current={green:new Audio("https://assets.nintendo.com/video/upload/v1717025463/Marketing/pmp-lm2-hd/audio/NormalGhost__fight_lose_loop__ahhh_2.mp3"),red:new Audio("https://assets.nintendo.com/video/upload/v1717025463/Marketing/pmp-lm2-hd/audio/Ghost_Bully_fight_lose_loop_6.mp3"),blue:new Audio("https://assets.nintendo.com/video/upload/v1717025463/Marketing/pmp-lm2-hd/audio/Ghost_Hider_Voc_fight_lose.mp3")}}),[]);const v=(0,s.useMemo)((()=>{switch(m){case"green":return x.current.green;case"red":return x.current.red;case"blue":return x.current.blue}}),[i]),{0:b,1:w}=(0,s.useState)(!1),{0:y,1:j}=(0,s.useState)(!1),_=(0,s.useRef)(0);return(0,s.useEffect)((()=>()=>{clearTimeout(_.current)}),[]),(0,l.jsx)(g.I,{children:(0,l.jsxs)(g.b,{as:Ne,groupIndex:a,animation:"fade",clicked:b,onClick:()=>{b||(j(!0),v.currentTime=0,w(!b),r||v.play(),_.current=setTimeout((()=>{w(!1)}),3e3))},children:[(0,l.jsxs)(Ee,{width:o,height:d,children:[(0,l.jsx)(u.a,{width:o,left:c,top:p,children:(0,l.jsx)(Te,{src:`https://assets.nintendo.com/image/upload/f_auto,q_auto/${h.primary.assetPath}`,alt:h.alt,$index:a,loading:"lazy",$interacted:y,clicked:b})}),(0,l.jsx)(Ae,{width:o,left:c,top:p,children:(0,l.jsx)(Pe,{src:`https://assets.nintendo.com/image/upload/f_auto,q_auto/${f.primary.assetPath}`,alt:f.alt,loading:"lazy",clicked:b})})]}),(0,l.jsx)(Re,{})]})})};const Oe=d.default.div.withConfig({componentId:"pmp-module__sc-5lvdbm-0"})(["width:100%;svg{width:100%;}"]),Le=d.default.div.withConfig({componentId:"pmp-module__sc-5lvdbm-1"})(["text-align:center;"]),Be=d.default.img.withConfig({componentId:"pmp-module__sc-5lvdbm-2"})(["width:var(--width);"]),De={default:49,largeUp:89};var Ye=e=>{let{className:t}=e;const i=(0,s.useRef)(),n=(0,s.useRef)(null),{0:a,1:r}=(0,s.useState)(0),{largeUp:o}=(0,g.u)(),d=(0,s.useCallback)((()=>{let e=n.current;e&&clearTimeout(e),e=setTimeout((()=>{const e=i.current.clientWidth;r(Math.floor(e/De[o?"largeUp":"default"]))}),200)}),[o]);return(0,s.useEffect)((()=>{const e=n.current;return window.addEventListener("resize",d),d(),()=>{window.removeEventListener("resize",d),clearTimeout(e)}}),[d]),(0,l.jsx)(Oe,{ref:i,className:t,style:{"--width":`${De[o?"largeUp":"default"]}px`},children:(0,l.jsx)(g.I,{as:Le,staggerChildren:{animation:"fade",stagger:.15},children:Array(a).fill().map(((e,t)=>(0,l.jsx)(Be,{src:"https://assets.nintendo.com/image/upload/Marketing/pmp-lm2-hd/graphics/brick-tile.svg",alt:""},t)))})})};const qe=(0,d.default)(ze).withConfig({componentId:"pmp-module__sc-u6s7dv-0"})([""]),$e=d.default.div.withConfig({componentId:"pmp-module__sc-u6s7dv-1"})(["",";background-color:",";padding-bottom:",";position:relative;&::before{content:'';display:block;width:100%;position:absolute;top:0;height:108px;left:0;background:linear-gradient( 0deg,rgba(0,0,0,0) -6.13%,#000 49.48%,rgba(0,0,0,0) 91.47% );transform:translateY(-50%);filter:blur(2px);}@media ","{padding-bottom:",";&::before{height:180px;}}@media ","{padding-bottom:",";&::before{height:320px;}}"],y.a,(0,c.b)("black"),(0,c.s)(9),(0,c.a)("mediumUp"),(0,c.s)(7),(0,c.a)("largeUp"),(0,c.s)(17.75)),We=(0,d.default)(g.R).withConfig({componentId:"pmp-module__sc-u6s7dv-2"})(["&:nth-child(even){margin-bottom:",";@media ","{margin-bottom:",";}@media ","{margin-bottom:",";}}&:nth-child(odd){margin-bottom:",";@media ","{margin-bottom:",";}@media ","{margin-bottom:",";}}&:last-child{margin-bottom:0;}","{z-index:1;&:first-of-type{bottom:100%;left:0%;transform:translate(-50%,50%);}&:nth-of-type(2){bottom:0;left:100%;transform:translate(-25%,100%);}@media ","{&:first-of-type{bottom:100%;left:100%;transform:translate(-25%,50%);}&:nth-of-type(2){bottom:0;left:0;transform:translate(-50%,50%);}}}"],(0,c.s)(8),(0,c.a)("mediumUp"),(0,c.s)(9),(0,c.a)("largeUp"),(0,c.s)(20),(0,c.s)(8),(0,c.a)("mediumUp"),(0,c.s)(9),(0,c.a)("largeUp"),(0,c.s)(25),qe,(0,c.a)("largeUp")),Ge=(0,d.default)(g.C).withConfig({componentId:"pmp-module__sc-u6s7dv-3"})(["position:relative;"]);d.default.svg.withConfig({componentId:"pmp-module__sc-u6s7dv-4"})([""]);const He=(0,d.default)(Ye).withConfig({componentId:"pmp-module__sc-u6s7dv-5"})(["margin-top:",";margin-bottom:",";@media ","{margin-top:",";margin-bottom:",";}@media ","{margin-top:",";margin-bottom:",";}"],(0,c.s)(4),(0,c.s)(5),(0,c.a)("mediumUp"),(0,c.s)(4),(0,c.s)(4),(0,c.a)("largeUp"),(0,c.s)(4),(0,c.s)(13)),Xe={solve:{width:180,height:180,left:0,top:0,color:"green"},battle:{width:200,height:180,left:0,top:0,color:"red"},treasures:{width:197,height:344,left:0,top:0,color:"blue"}},Ve={solve:{width:240,height:240,left:0,top:0,color:"green"},battle:{width:398,height:358,left:0,top:0,color:"red"},treasures:{width:295,height:514,left:0,top:0,color:"blue"}},Ze={solve:{width:360,height:360,left:0,top:0,color:"green"},battle:{width:529,height:476,left:0,top:0,color:"red"},treasures:{width:225,height:394,left:0,top:0,color:"blue"}};var Ke=()=>{const{modalOpen:e}=(0,g.c)(),t=(0,b.J)(),{section:i,howToPlay:n,items:a}=(0,g.a)({section:"2n54N5Uc44y4YgfHPV2G7t",howToPlay:"4DRJ06pVNgpoFPV4Dwd6nZ",items:{mission:{content:"75OHDzpfXBVFnOpiNUNWNs",video:"4aM2tHllwYZ2dsJvkZ01wB",poster:"6TVCOVVqEGD69QB5fOLA0T"},solve:{content:"1CRxeedHusE6RF5qC5rMyV",video:"3hy9f6aWJXW1x24WHroOHE",poster:"3sKr72TjbOAj6tbo2v6h6T",ghost:{still:"3L9DpyUHwujZcd1EVfJCxX",frozen:"nH8xFpGoswtfuoY505WXk"}},battle:{content:"66IdlyyTiFosGBOstC1QEm",video:"6vCPB2ApYFn6bUBlZva6ns",poster:"2ri9mHy8SKIsr16Yx1HbsV",ghost:{still:"4LUIpSfcgqFsptMEOJcS3p",frozen:"4FyJexUe7avpn4ErOVN1xB"}},treasures:{content:"1Q8WXDiMH6ebMOmZ8OD73F",video:"7Li9o9erFTKvKSLzzLWpe",poster:"7mFgbSl14LTL1wcMOfhlIr",ghost:{still:"3fMVRm0vZoRuBCRw2DZ7cH",frozen:"5vZJAgdSvLuzHTDivbyRlt"}}}}),{mediumUp:r,largeUp:o}=(0,g.u)(),{0:d,1:c}=(0,s.useState)(Xe);if((0,s.useEffect)((()=>{switch(!0){case o:c(Ze);break;case r:c(Ve);break;default:c(Xe)}}),[r,o]),i)return(0,l.jsxs)($e,{children:[(0,l.jsxs)(g.I,{children:[(0,l.jsxs)(g.R,{reverse:!0,verticalCenter:!0,children:[(0,l.jsx)(g.C,{span:10,large:7,children:(0,l.jsx)(g.b,{as:h.I,assetPath:n.asset.primary.assetPath,alt:n.asset.alt,animation:"left"})}),(0,l.jsxs)(g.C,{span:10,large:3,className:"text-center child-spacing--2",children:[(0,l.jsx)(g.b,{as:V,className:"title-1 color-white",color:"pink",text:n.heading,animation:"fade"}),n.body&&(0,l.jsx)(g.b,{as:g.e,className:"color-white weight--medium",data:n.body,animation:"shortUp",delay:.2})]})]}),(0,l.jsx)(g.R,{children:(0,l.jsx)(g.C,{span:10,children:(0,l.jsx)(He,{})})})]}),(0,l.jsx)(g.I,{children:Object.entries(a).map(((i,n)=>{let[a,r]=i;const{content:o,video:s,poster:c,ghost:p}=r,{heading:m,body:u}=o;return(0,l.jsxs)(We,{reverse:!(n%2===0),verticalCenter:!0,className:"relative",children:[(0,l.jsxs)(Ge,{span:10,large:5,children:[(0,l.jsx)(qe,{delayMultiplier:.5*(n+1)}),(0,l.jsx)(qe,{delayMultiplier:.25*(n+1)}),(0,l.jsx)(an,{animation:"pop",children:(0,l.jsx)(Qi,{variant:n%2===0?"green":"purple",animation:"pop",children:(0,l.jsx)(w.o,{src:s.heading,posterImg:c.heading,posterAlt:c.body?c.body.content[0].value:"",prefersReducedMotion:t,renderReducedMotionFallback:()=>(0,l.jsx)("img",{src:c.heading,alt:c.body?c.body.content[0].value:"",loading:"lazy"}),width:1600,height:900,aspectRatio:16/9,paused:e})})})]}),(0,l.jsx)(g.C,{span:10,large:5,className:"text-center margin-top-small--6 margin-top-medium--5",children:(0,l.jsxs)(an,{animation:"shortUp",stagger:.25,children:[(0,l.jsx)(V,{className:"title-2 color-white",color:n%2===0?"pink":"green",tag:"h3",text:m,textClassName:"title-2",animation:"fade"}),(0,l.jsx)(on,{}),(0,l.jsx)(g.e,{className:"color-white",data:u})]})}),p&&(0,l.jsx)(Fe,{dimensions:d[a],ghostData:p,index:n,colorData:d[a]})]},a)}))})]})};const Je=d.default.div.withConfig({componentId:"pmp-module__sc-4ktnpk-0"})(["width:100%;height:auto;display:grid;grid-template-areas:'image';"]),Qe=d.default.img.withConfig({componentId:"pmp-module__sc-4ktnpk-1"})(["grid-area:image;display:none;",""],(e=>{let{active:t}=e;return t&&(0,d.css)(["display:block;"])})),et=["https://assets.nintendo.com/image/upload/f_auto,q_auto/v1713571196/Marketing/pmp-lm2-hd/graphics/blinking-eyes-1","https://assets.nintendo.com/image/upload/f_auto,q_auto/v1713571194/Marketing/pmp-lm2-hd/graphics/blinking-eyes-2","https://assets.nintendo.com/image/upload/f_auto,q_auto/v1713571202/Marketing/pmp-lm2-hd/graphics/blinking-eyes-3","https://assets.nintendo.com/image/upload/f_auto,q_auto/v1713571199/Marketing/pmp-lm2-hd/graphics/blinking-eyes-4"],tt=(e,t)=>Math.floor((0,k.r)(e,t)),it=e=>{let{startIndex:t,delayMultiplier:i=1}=e;const{0:n,1:a}=(0,s.useState)(t||tt(0,et.length)),r=(0,s.useRef)(null);return(0,s.useEffect)((()=>{let e=r.current;return e&&clearInterval(e),e=setInterval((()=>{let e=tt(0,et.length);if(e===n)for(;e===n;)e=tt(0,et.length);a(e)}),5e3*i),()=>{clearInterval(e)}}),[i]),(0,l.jsx)(Je,{children:et.map(((e,t)=>(0,l.jsx)(Qe,{src:e,alt:"",active:t===n,loading:"lazy"},t)))})};var nt=it;it.defaultProps={delay:1},it.propTypes={delayMultiplier:x().number};const at=(0,d.default)(ze).withConfig({componentId:"pmp-module__sc-15zhad4-0"})([""]),rt=d.default.div.withConfig({componentId:"pmp-module__sc-15zhad4-1"})(["background-color:",";"],(0,c.b)("black")),ot=(0,d.default)(j.W).withConfig({componentId:"pmp-module__sc-15zhad4-2"})(["",";padding-bottom:198px;position:relative;@media ","{padding-bottom:150px;}@media ","{padding-bottom:161px;}"],y.a,(0,c.a)("mediumUp"),(0,c.a)("largeUp")),st=(0,d.default)(g.R).withConfig({componentId:"pmp-module__sc-15zhad4-3"})(["&&{margin-bottom:",";@media ","{margin-bottom:",";}@media ","{margin-bottom:",";}}"],(0,c.s)(5),(0,c.a)("mediumUp"),(0,c.s)(4),(0,c.a)("largeUp"),(0,c.s)(8)),lt=(0,d.default)(g.R).withConfig({componentId:"pmp-module__sc-15zhad4-4"})(["&&{margin-bottom:",";position:relative;@media ","{margin-bottom:",";}@media ","{margin-bottom:",";}}","{z-index:2;&:first-of-type{bottom:100%;left:0%;transform:translate(-50%,50%);}&:nth-of-type(2){bottom:0;left:100%;transform:translate(-25%,100%);}@media ","{&:first-of-type{bottom:100%;left:100%;transform:translate(-25%,50%);}&:nth-of-type(2){bottom:0;left:0;transform:translate(-50%,50%);}}}"],(0,c.s)(8),(0,c.a)("mediumUp"),(0,c.s)(9),(0,c.a)("largeUp"),(0,c.s)(10),at,(0,c.a)("largeUp")),dt=(0,d.default)(g.C).withConfig({componentId:"pmp-module__sc-15zhad4-5"})(["position:relative;"]);d.default.div.withConfig({componentId:"pmp-module__sc-15zhad4-6"})(["position:absolute;z-index:1;"," .ghost--still{visibility:visible;opacity:1;transition:all 1ms ease;}.ghost--frozen{visibility:hidden;opacity:0;transition:all 1ms ease;}&:hover{.ghost--still{opacity:0;visibility:hidden;}.ghost--frozen{opacity:1;visibility:visible;}}"],(e=>{let{groupIndex:t}=e;switch(t){case 1:return(0,d.css)(["width:",";@media ","{width:",";top:0;left:100%;--end-x:-50%;--end-y:-50%;--start-x:0;--start-y:-50%;}"],(e=>{let{theme:t}=e;return(0,c.k)(t,6)}),(0,c.a)("largeUp"),(e=>{let{theme:t}=e;return(0,c.k)(t,3)}));case 2:return(0,d.css)(["width:",";@media ","{width:",";left:0;top:0;--end-x:0%;--end-y:-50%;--start-x:-25%;--start-y:-50%;}"],(e=>{let{theme:t}=e;return(0,c.k)(t,8)}),(0,c.a)("largeUp"),(e=>{let{theme:t}=e;return(0,c.k)(t,3.5)}));case 3:return(0,d.css)(["width:",";@media ","{width:",";left:100%;top:0;--end-x:-50%;--end-y:-25%;--start-x:0;--start-y:-25%;}"],(e=>{let{theme:t}=e;return(0,c.k)(t,8)}),(0,c.a)("largeUp"),(e=>{let{theme:t}=e;return(0,c.k)(t,4)}));default:return(0,d.css)(["width:",";left:100%;top:0;--end-x:-50%;--end-y:-25%;--start-x:0;--start-y:-25%;"],(e=>{let{theme:t}=e;return(0,c.k)(t,4)}))}})),d.default.svg.withConfig({componentId:"pmp-module__sc-15zhad4-7"})([""]);const ct=d.default.div.withConfig({componentId:"pmp-module__sc-15zhad4-8"})(["display:none;@media ","{display:block;width:",";position:absolute;z-index:1;","}"],(0,c.a)("largeUp"),(e=>{let{theme:t}=e;return(0,c.k)(t,2)}),(e=>{let{$index:t}=e;switch(t){case 0:return(0,d.css)(["bottom:100%;left:0;transform:translateY(-100%);"]);case 1:return(0,d.css)(["right:0;top:100%;"]);case 2:return(0,d.css)(["left:50%;bottom:0;transform:translateY(50%);"]);case 3:return(0,d.css)(["left:25%;top:110%;transform:translateY(50%);"]);default:return(0,d.css)([""])}})),pt=d.default.div.withConfig({componentId:"pmp-module__sc-15zhad4-9"})(["position:absolute;width:",";"," @media ","{width:",";}@media ","{display:none;}"],(e=>{let{theme:t}=e;return(0,c.k)(t,4)}),(e=>{let{$index:t}=e;switch(t){case 1:return(0,d.css)(["bottom:0%;right:12.5%;transform:translateY(-400%);"]);case 2:return(0,d.css)(["bottom:0;left:0;transform:translateY(-310%);"]);case 3:return(0,d.css)(["bottom:0%;right:37%;transform:translateY(-250%);"]);default:return(0,d.css)(["bottom:0;left:52.5%;transform:translateY(-50%);"])}}),(0,c.a)("mediumUp"),(e=>{let{theme:t}=e;return(0,c.k)(t,3)}),(0,c.a)("largeUp"));var mt=()=>{const{modalOpen:e}=(0,g.c)(),t=(0,b.J)(),{section:i,intro:n,items:a}=(0,g.a)({section:"3CxqSr0TL59J4JlN7hBWpw",intro:"5is20ITwvnabkqUQxr4cEu",items:{poltergust:{content:"4pFQOroEPgMvleZokLjY1N",video:"1BgCWmW04xzKfxxCeb13Kj",poster:"2y5rg1R5edC2ke6BW3DTXF"},strobulb:{content:"6vk6Ip77OSB4pCZOUVRPkg",video:"7FpV2wMbcUyuYPC23vQOlo",poster:"2JDyyhTD15QJvHlQq4iVXH"},device:{content:"2b9BseJEUoR3VMhaNqlVw0",video:"6KQWEoG4q8AQDe5t2uI7m6",poster:"2835gYBAVcDwoQCK3dRvb0"},dualScream:{content:"5mIxFcwmIz8i1EOrfyRIFd",video:"378ZlprpRyekNvtd8nzSIC",poster:"3pTNWvldDdl2UY9tH62nap"}}}),{largeUp:r}=(0,g.u)();if(i)return(0,l.jsxs)(rt,{children:[(0,l.jsx)(q,{}),(0,l.jsxs)(ot,{children:[(0,l.jsx)(j.W,{children:(0,l.jsx)(an,{animation:"fade",delay:.2,children:(0,l.jsx)(h.I,{assetPath:n.asset.primary.assetPath,alt:n.asset.alt,lazyLoad:!1})})}),(0,l.jsx)(st,{reverse:!0,verticalCenter:!0,children:(0,l.jsx)(g.C,{span:10,large:4,className:"text-center child-spacing--1 child-spacing-large--2",children:(0,l.jsxs)(an,{animation:"shortUp",stagger:.05,children:[(0,l.jsx)(V,{text:n.heading,color:"pink",className:"title-1 color-white"}),(0,l.jsx)(g.e,{className:"color-white weight--medium",data:n.body})]})})}),Object.entries(a).map(((i,n)=>{let[a,o]=i;const{content:s,video:d,poster:c}=o,{heading:p,body:m}=s;return(0,l.jsxs)(lt,{verticalCenter:!0,className:"relative",children:[(0,l.jsxs)(dt,{span:10,large:5,children:[(0,l.jsx)(at,{delayMultiplier:.3*(n+1)}),(0,l.jsx)(at,{delayMultiplier:.67*(n+1)}),(0,l.jsx)(an,{animation:"pop",children:(0,l.jsx)(Qi,{variant:n%2===0?"green":"purple",children:(0,l.jsx)(w.o,{src:d.heading,posterImg:c.heading,posterAlt:c.body?c.body.content[0].value:"",prefersReducedMotion:t,renderReducedMotionFallback:()=>(0,l.jsx)("img",{src:c.heading,alt:c.body?c.body.content[0].value:"",loading:"lazy"}),width:1600,height:900,aspectRatio:16/9,paused:e})})})]}),(0,l.jsx)(g.C,{span:10,large:5,className:"text-center margin-top-small--6 margin-top-medium--5",children:(0,l.jsxs)(an,{animation:"shortUp",stagger:.05,children:[(0,l.jsx)(V,{tag:"h3",text:p,textClassName:"title-2",color:n%2===0?"pink":"green",className:"title-2 color-white"}),(0,l.jsx)(on,{}),(0,l.jsx)(g.e,{className:"color-white",data:m})]})}),r&&(0,l.jsx)(ct,{$index:n,children:(0,l.jsx)(nt,{startIndex:n})})]},a)})),!r&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(pt,{$index:0,children:(0,l.jsx)(nt,{delayMultiplier:1.5})}),(0,l.jsx)(pt,{$index:1,children:(0,l.jsx)(nt,{})}),(0,l.jsx)(pt,{$index:2,delayMultiplier:1.5,children:(0,l.jsx)(nt,{})}),(0,l.jsx)(pt,{$index:3,children:(0,l.jsx)(nt,{})})]})]})]})};var ut=class{constructor(){(0,n.Z)(this,"direction","right");let{pos:e,direction:t,angle:i}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.el=document.createElement("div"),this.el.className=`pawprint pawprint--${t}`,this.el.style.top=`${e.y}px`,this.el.style.left=`${e.x}px`,this.el.style.transform=`rotate(${i}rad)`,this}set opacity(e){e>.01?(this._opacity=e,this.el.style.opacity=e):this.shouldRemove=!this.shouldRemove}get opacity(){return this._opacity||1}set shouldRemove(e){this._shouldRemove=e}get shouldRemove(){return this._shouldRemove||!1}};const ht=(0,d.keyframes)(["from{filter:blur(0);}to{filter:blur(2px);}"]),gt=d.default.div.withConfig({componentId:"pmp-module__sc-1i7cbwm-0"})(["position:relative;&::before{content:'';display:block;width:100%;position:absolute;top:0;height:108px;left:0;background:linear-gradient( 0deg,rgba(0,0,0,0) -6.13%,#000 49.48%,rgba(0,0,0,0) 91.47% );transform:translateY(-50%);@media ","{height:180px;}@media ","{height:320px;}}.pawprint{width:40px;height:40px;position:absolute;z-index:0;animation:"," "," ease forwards;}.pawprint--right{background:url('https://assets.nintendo.com/image/upload/f_auto,q_auto/v1713854131/Marketing/pmp-lm2-hd/graphics/pawprint-1-right');background-size:contain;background-repeat:no-repeat;}.pawprint--left{background:url('https://assets.nintendo.com/image/upload/f_auto,q_auto/v1713854133/Marketing/pmp-lm2-hd/graphics/pawprint-2-left');background-size:contain;background-repeat:no-repeat;}"],(0,c.a)("mediumUp"),(0,c.a)("xxlarge"),ht,(0,g.d)(.5)),ft=d.default.div.withConfig({componentId:"pmp-module__sc-1i7cbwm-1"})(["display:none;position:absolute;top:0;left:0;z-index:999;height:5px;width:5px;background-color:red;"]),xt=d.default.div.withConfig({componentId:"pmp-module__sc-1i7cbwm-2"})(["background:url('https://assets.nintendo.com/image/upload/f_auto,q_auto/v1713563782/Marketing/pmp-lm2-hd/background-scenes/background-manor-2x');background-size:cover;background-position:center;padding-top:50px;padding-bottom:27px;@media ","{padding-top:42px;padding-bottom:0;}@media ","{padding-top:136px;}"],(0,c.a)("mediumUp"),(0,c.a)("xxlarge")),vt=(0,d.default)(g.C).withConfig({componentId:"pmp-module__sc-1i7cbwm-3"})(["position:relative;z-index:2;"]),bt=(0,d.default)(g.C).withConfig({componentId:"pmp-module__sc-1i7cbwm-4"})(["position:relative;z-index:1;@media ","{margin-left:",";}"],(0,c.a)("xxlarge"),(e=>{let{theme:t}=e;return(0,c.k)(t,-1)})),wt=d.default.div.withConfig({componentId:"pmp-module__sc-1i7cbwm-5"})(["padding:10px 20px 12px 11px;clip-path:polygon(0% 0%,99% 0%,98.15% 100%,0.65% 98%);background:linear-gradient(0deg,#634b05 0%,#6e5c00 100%);box-shadow:0px 0px 4px 0px rgba(0,0,0,0.5) inset;z-index:1;"]),yt=d.default.div.withConfig({componentId:"pmp-module__sc-1i7cbwm-6"})(["&&{background-size:auto;}align-items:center;box-shadow:0px 0px 4px 0px rgba(0,0,0,0.5) inset;display:flex;flex-direction:column;padding:51px 20px 36px 18px;@media ","{padding:54px 20px 51px 22px;}@media ","{padding:51px 46px 42px 48px;}"],(0,c.a)("mediumUp"),(0,c.a)("xxlarge")),jt=(0,d.keyframes)(["0%{transform:translateY(0)}50%{transform:translateY(-12px)}100%{transform:translateY(0)}"]),_t=(0,d.default)(h.I).withConfig({componentId:"pmp-module__sc-1i7cbwm-7"})(["margin-bottom:-12%;animation:"," "," infinite ease-in-out forwards;@media ","{margin-bottom:0;}"],jt,(0,g.d)(3),(0,c.a)("xxlarge")),kt=(0,d.default)(V).withConfig({componentId:"pmp-module__sc-1i7cbwm-8"})(["."," &&{margin:0 40px;@media ","{margin:0 60px;}@media ","{margin:0;width:auto;}}"],(e=>{let{theme:t}=e;return t.pmp.namespace}),(0,c.a)("mediumUp"),(0,c.a)("xxlarge")),Ct=(0,d.default)(g.R).withConfig({componentId:"pmp-module__sc-1i7cbwm-9"})(["@media ","{justify-content:flex-end;}"],(0,c.a)("xxlarge")),It=(0,d.default)(u.I).withConfig({componentId:"pmp-module__sc-1i7cbwm-10"})(["z-index:1;margin-top:-8%;margin-bottom:-29%;@media ","{margin-top:-10%;margin-bottom:-24%;}@media ","{margin-top:-39%;margin-bottom:auto;}"],(0,c.a)("mediumUp"),(0,c.a)("xxlarge")),zt=(0,d.default)(h.I).withConfig({componentId:"pmp-module__sc-1i7cbwm-11"})(["transform:translate(-3.5%,-12%);@media ","{transform:translate(12.5%,14%);}"],(0,c.a)("xxlarge")),Ut=(e,t)=>({x:e.x-t.x,y:e.y-t.y}),Rt=e=>Math.hypot(e.x,e.y),Nt=-40,St=-40;var Mt=()=>{const{section:e,content:t,polterpup:i}=(0,g.a)({section:"46rgGFDcNZioihhXFpkEOg",content:"5JtIZdB11SCHqo0J0bmRG9",polterpup:"66ecp7zpRM1K6dVe3dTa8n"}),[n,a,r]=(0,v.YD)(.6,!1,!1),o=(0,s.useRef)({x:Nt,y:St}),d=(0,s.useRef)({x:Nt,y:St}),c=(0,s.useRef)(null),p=(0,s.useRef)(!0),m=(0,s.useRef)([]),h=(0,s.useRef)(0);if((0,s.useEffect)((()=>{let e,t=p.current,i=m.current;const s=o.current;if(n&&a){const n=[{start:{x:-40,y:-40},end:{x:r.clientWidth+40,y:r.clientHeight+40}},{start:{x:r.clientWidth+40,y:40},end:{x:-40,y:r.clientHeight+40}}],a=d.current,o=60;let l=n[h.current];const p=()=>{const d=(e=>{const t=Rt(e);return{x:e.x/t,y:e.y/t}})(Ut(l.end,s)),m={x:s.x+3.5*d.x,y:s.y+3.5*d.y};s.x=m.x,s.y=m.y,c.current.style.left=`${s.x}px`,c.current.style.top=`${s.y}px`;const u=Ut(a,s),g=Rt(u),f=Ut(l.end,a),x=Rt(f);if(0===i.length&&xo){const e=Ut(s,a),n=(w=e,Math.atan2(w.y,w.x)+1.5708),o=((e,t)=>({x:e.x*Math.cos(t)-e.y*Math.sin(t),y:e.x*Math.sin(t)+e.y*Math.cos(t)}))({x:0,y:10},n+1.5708*(t?1:-1)),l=(b=o,{x:(v=s).x+b.x,y:v.y+b.y}),d=new ut({pos:l,direction:t?"right":"left",angle:n});r.appendChild(d.el),i.push(d),a.x=s.x,a.y=s.y,t=!t}var v,b,w;g&&i.forEach(((e,t)=>{e.opacity=.99*e.opacity,e.shouldRemove&&(r.removeChild(e.el),i.splice(t,1))})),e=requestAnimationFrame(p)};e=requestAnimationFrame(p)}return()=>{i=[],h.current=0,t=!0,s.x=Nt,s.y=St,d.current.x=Nt,d.current.y=St,cancelAnimationFrame(e)}}),[n,a]),e)return(0,l.jsxs)(gt,{ref:n,children:[(0,l.jsx)(ft,{ref:c}),(0,l.jsxs)(g.I,{as:xt,children:[(0,l.jsxs)(g.R,{verticalCenter:!0,children:[(0,l.jsx)(g.b,{as:vt,span:8,large:6,xxlarge:5,animation:"fade",children:(0,l.jsx)(_t,{assetPath:t.asset.primary.assetPath,alt:t.asset.alt?t.asset.alt:""})}),(0,l.jsx)(g.b,{as:bt,span:10,large:10,xlarge:9,xxlarge:5,className:"text-center",animation:"shortUp",delay:.2,children:(0,l.jsx)(wt,{children:(0,l.jsxs)(yt,{className:"bg--wood-tile",children:[(0,l.jsx)(kt,{text:t.heading,textClassName:"title-2",className:"color-white title-2 margin-bottom--1"}),(0,l.jsx)(g.e,{data:t.body,className:"color-white"})]})})})]}),(0,l.jsx)(Ct,{children:(0,l.jsx)(g.C,{span:6,large:4,children:(0,l.jsx)(g.b,{as:It,width:448,height:404,animation:"shortUp",delay:.4,children:(0,l.jsx)(u.a,{width:448,left:0,top:0,children:(0,l.jsx)(zt,{assetPath:i.primary.assetPath,alt:i.alt})})})})})]}),(0,l.jsx)(q,{})]})};const Et=d.default.div.withConfig({componentId:"pmp-module__sc-11dibn1-0"})(["background:url('https://assets.nintendo.com/image/upload/f_auto,q_auto/v1712945796/Marketing/pmp-lm2-hd/background-scenes/background-manor-landscape-2x.jpg');background-size:cover;background-position:center;"]),Tt=d.default.div.withConfig({componentId:"pmp-module__sc-11dibn1-1"})(["padding-bottom:",";padding-top:",";position:relative;@media ","{padding-bottom:",";}@media ","{padding-top:",";}@media ","{padding-bottom:",";}"],(0,c.s)(6),(0,c.s)(7),(e=>{let{theme:t}=e;return t.pmp.breakpoints.mediumUp}),(0,c.s)(4),(e=>{let{theme:t}=e;return t.pmp.breakpoints.largeUp}),(0,c.s)(6),(e=>{let{theme:t}=e;return t.pmp.breakpoints.xlargeUp}),(0,c.s)(1)),At=d.default.div.withConfig({componentId:"pmp-module__sc-11dibn1-2"})(["",""],(0,c.f)()),Pt=d.default.div.withConfig({componentId:"pmp-module__sc-11dibn1-3"})(["text-shadow:0 1px rgba(0,0,0,0.5);"]),Ft=(0,d.keyframes)(["0%,100%{transform:rotate(0deg);}16%{transform:rotate(-5deg);}32%{transform:rotate(5deg);}50%,100%{transform:rotate(0deg);}"]),Ot=d.default.button.withConfig({componentId:"pmp-module__sc-11dibn1-4"})(["background:transparent;border:none;width:100%;height:auto;@media (hover:hover){&:hover{cursor:pointer;}}"]),Lt=(0,d.default)(u.a).withConfig({componentId:"pmp-module__sc-11dibn1-5"})(["."," &&{pointer-events:auto;}"],(e=>{let{theme:t}=e;return t.pmp.namespace})),Bt=(0,d.default)(h.I).withConfig({componentId:"pmp-module__sc-11dibn1-6"})(["&&{animation:"," "," ease-in-out infinite alternate;img{transition:all 0.3s ease;@media (hover:hover){&:hover{--scale:1.2;transform:scale(var(--scale));}}}}"],Ft,(0,g.d)(1.5)),Dt={width:344,height:460,luigi:{width:344,left:-50,top:0},polterpup:{width:236,left:130,top:192}},Yt={width:414,height:424,luigi:{width:344,left:0,top:0},polterpup:{width:266,left:148,top:116}},qt={width:566,height:660,luigi:{width:448,left:0,top:0},polterpup:{width:330,left:236,top:252}};var $t=()=>{const{section:e,content:t,luigi:i,polterpup:n}=(0,g.a)({section:"3nYNh7nY5981mnehTycg0H",content:"hgYTvQRGT3vvgPR2qUpXb",luigi:"3z42ADan16k0fwekeIfJCx",polterpup:"6WUEqzG9XPZrygRJCG5F3e"}),{muted:a}=ye(),{breakpointName:r,mediumUp:o,largeUp:d}=(0,g.u)(),{0:c,1:p}=(0,s.useState)(Dt),m=(0,s.useRef)();(0,s.useEffect)((()=>{m.current=new Audio("https://assets.nintendo.com/video/upload/v1714777740/Marketing/pmp-lm2-hd/audio/Luigi_Dia_fright.mp3")}),[]);if((0,s.useEffect)((()=>{switch(!0){case d:p(qt);break;case o:p(Yt);break;default:p(Dt)}}),[o,d]),e)return(0,l.jsxs)(g.I,{as:Et,children:[(0,l.jsx)(q,{}),(0,l.jsxs)(Tt,{children:[(0,l.jsx)(At,{children:(0,l.jsx)(Yn,{})}),(0,l.jsxs)(g.R,{verticalCenter:!0,children:[(0,l.jsxs)(g.C,{span:10,large:5,className:"text-center child-spacing--2 child-spacing-large--1",children:[(0,l.jsx)(g.b,{animation:"shortUp",children:(0,l.jsx)(V,{tag:"h2",text:t.heading,className:"title-1 color-white",color:"pink"})}),(0,l.jsx)(g.b,{as:Pt,animation:"shortUp",delay:.2,children:(0,l.jsx)(g.e,{data:t.body,className:"color-white"})})]}),(0,l.jsx)(g.C,{span:10,large:5,children:(0,l.jsx)(Ot,{onClick:()=>{if(a)return;const e=m.current;e.currentTime=0,e.play()},disabled:a,children:(0,l.jsxs)(u.I,{width:c.width,height:c.height,maxWidth:"small"===r?"80%":void 0,className:"center",children:[(0,l.jsx)(g.b,{as:Lt,width:c.luigi.width,left:c.luigi.left,top:c.luigi.top,animation:"pop",delay:.3,children:(0,l.jsx)(Bt,{assetPath:i.primary.assetPath,alt:i.alt,loading:"lazy"})}),(0,l.jsx)(g.b,{as:u.a,width:c.polterpup.width,left:c.polterpup.left,top:c.polterpup.top,animation:"fade",delay:.6,children:(0,l.jsx)(h.I,{assetPath:n.primary.assetPath,alt:n.alt,loading:"lazy"})})]})})})]})]})]})};const Wt=d.default.div.withConfig({componentId:"pmp-module__sc-wds5l2-0"})(["padding-bottom:",";@media ","{padding-bottom:",";}"],(0,c.s)(8),(0,c.a)("largeUp"),(0,c.s)(11)),Gt=(0,d.default)(h.I).withConfig({componentId:"pmp-module__sc-wds5l2-1"})(["margin-top:-12.5%;"]),Ht=(0,d.default)(Ye).withConfig({componentId:"pmp-module__sc-wds5l2-2"})(["margin-top:",";@media ","{margin-top:",";margin-bottom:",";}@media ","{margin-bottom:",";}"],(0,c.s)(3),(0,c.a)("mediumUp"),(0,c.s)(4),(0,c.s)(1),(0,c.a)("largeUp"),(0,c.s)(6));var Xt=()=>{const{section:e,content:t,items:i}=(0,g.a)({section:"5w4TRfbR3Dd6uFwp52OVWJ",content:"1pWWPjOpxFttphwM7FUy35",items:{hunter:{content:"7lKXpZGKITXK2Gz3ruK452",video:"46NmCvkZtpZyINYkhse1cM",poster:"6MwMgdIxZcaN1bSt5pd7bi"},polterpup:{content:"2H8pi2esemySlhsWqaS7Bo",video:"3fAIAAte3rbJunFEGBNMfU",poster:"5ExptdXOfN0UEG4Np4fbXK"},rush:{content:"5yXLgHHwFwWbidgy7YseQB",video:"4uowapLmRIoI2SdqbtKBjT",poster:"dgpFQGIdg217jR34VSLVg"}}}),n=Object.entries(i).map((e=>{let[t,i]=e;return i}));if(e)return(0,l.jsxs)(g.I,{as:Wt,className:"bg--wood-tile",children:[(0,l.jsxs)(g.R,{verticalCenter:!0,children:[(0,l.jsx)(g.C,{span:10,large:6,children:(0,l.jsx)(g.b,{as:Gt,assetPath:t.asset.primary.assetPath,alt:t.asset.alt,animation:"right"})}),(0,l.jsxs)(g.C,{span:10,large:4,className:"text-center",children:[(0,l.jsx)(g.b,{as:V,text:t.heading,animation:"fade",className:"title-1 color-white margin-top-large--0 margin-top--2"}),(0,l.jsx)(g.b,{as:g.e,data:t.body,animation:"shortUp",delay:.2,className:"color-white margin-top-top-large--0 margin-top--1"})]})]}),(0,l.jsx)(g.R,{children:(0,l.jsx)(g.C,{span:10,children:(0,l.jsx)(Ht,{})})}),(0,l.jsx)(g.R,{children:(0,l.jsx)(g.C,{span:10,large:8,children:(0,l.jsx)(Bi,{items:n})})})]})};const Vt=d.default.div.withConfig({componentId:"pmp-module__sc-1yol67k-0"})(["background-color:",";position:relative;"],(0,c.b)("black")),Zt=d.default.div.withConfig({componentId:"pmp-module__sc-1yol67k-1"})([""]),Kt=(0,d.default)(h.I).withConfig({componentId:"pmp-module__sc-1yol67k-2"})(["position:relative;&::before{",";content:'';display:block;background-color:rgba(0,0,0,1);transition:background-color "," ease;}",""],(0,c.f)(),(0,g.d)(.3),(e=>{let{$animate:t}=e;return t&&(0,d.css)(["&:before{background-color:rgba(0,0,0,0);}"])}));var Jt=()=>{const{section:e,background:t}=(0,g.a)({section:"6RSQpwrX8xQbf6hnzhGuf1",background:"21687kR35up68IHn5dPFq0"}),[i,n]=(0,v.YD)(.8,!1,!0);if(e)return(0,l.jsxs)(Vt,{children:[(0,l.jsx)(q,{}),(0,l.jsx)(Zt,{ref:i,children:(0,l.jsx)(g.R,{children:(0,l.jsx)(g.C,{span:10,large:8,children:(0,l.jsx)(Kt,{assetPath:t.primary.assetPath,alt:t.alt,$animate:n})})})}),(0,l.jsx)(q,{})]})};const Qt=d.default.div.withConfig({componentId:"pmp-module__sc-1b37vr5-0"})(["clip-path:polygon(0 0,100% 1%,97% 98%,2% 92%);display:inline-flex;padding:5px;background:linear-gradient(180deg,#7eab29 50%,#2b7939 100%);"]),ei=d.default.div.withConfig({componentId:"pmp-module__sc-1b37vr5-1"})(["clip-path:polygon(0 0,100% 1%,97% 98%,2% 92%);background:linear-gradient(0deg,#7eab29 50%,#2b7939 100%);box-shadow:inset 0 0 10px 0 rgba(0,0,0,0.3);inline-size:100%;.title-1,.title-2,.title-3{text-align:center;text-transform:uppercase;line-height:1.1;padding:14px 56px 14px 54px;@media ","{padding:14px 26px 14px 24px;}}"],(0,c.a)("largeUp"));var ti=e=>{let{className:t,children:i}=e,n=(0,a.Z)(e,N);return(0,l.jsx)(Qt,P(P({className:t},n),{},{children:(0,l.jsx)(ei,{children:i})}))};const ii=d.default.div.withConfig({componentId:"pmp-module__sc-gpoe72-0"})(["background-color:",";position:relative;"],(0,c.b)("black")),ni=d.default.div.withConfig({componentId:"pmp-module__sc-gpoe72-1"})([""," position:relative;"],y.a),ai=(0,d.default)(q).withConfig({componentId:"pmp-module__sc-gpoe72-2"})(["z-index:2;"]),ri=(0,d.default)(j.W).withConfig({componentId:"pmp-module__sc-gpoe72-3"})(["&&{max-width:1440px;padding-left:0;padding-right:0;position:relative;&::before{content:'';display:block;height:100%;width:50px;top:0;position:absolute;left:0;transform:translateX(-50%);filter:blur(5px);background:linear-gradient( 90deg,rgba(0,0,0,100) 55%,rgba(0,0,0,0) 100% );z-index:1;}&::after{content:'';display:block;height:100%;width:50px;top:0;position:absolute;right:0;transform:translateX(50%);filter:blur(5px);background:linear-gradient( 270deg,rgba(0,0,0,100) 55%,rgba(0,0,0,0) 100% );z-index:1;}}"]),oi=(0,d.default)(ti).withConfig({componentId:"pmp-module__sc-gpoe72-4"})(["--start-x:-50%;--start-y:-35%;--end-x:-50%;--end-y:-50%;margin:0 auto;inline-size:min(80%,333px);position:absolute;top:0;left:50%;z-index:2;"]),si=d.default.h2.withConfig({componentId:"pmp-module__sc-gpoe72-5"})(["."," &&{padding-inline:2rem;@media ","{padding-inline:1rem;}}"],(e=>{let{theme:t}=e;return t.pmp.namespace}),(0,c.a)("largeUp"));var li=()=>{const{modalOpen:e}=(0,g.c)(),{section:t,content:i,preview:n,video:a,previewPoster:r,videoPoster:o}=(0,g.a)({section:"18BaUjaQsyrPSHcp6ove7k",content:"6KrCRUxdtt8cHBVFqOvVIX",preview:"6s5RoHeqS0PldJSRoPjIQM",video:"7JLGa4YdfTjLqKg9fTEVve",previewPoster:"79fYheP0JdG98C1Jbc2cCM",videoPoster:"1Vh0XPtMxufOBYQg5iacJU"}),s=(0,b.J)(),[d,c]=(0,v.YD)(0,!1,!1);if(t)return(0,l.jsxs)(g.I,{as:ii,children:[(0,l.jsx)(ai,{}),(0,l.jsx)(j.W,{children:(0,l.jsx)(g.b,{as:oi,animation:"shortUp",children:(0,l.jsx)(si,{className:"title-3 color-white",children:i.heading})})}),(0,l.jsxs)(ni,{ref:d,children:[(0,l.jsx)(ri,{children:(0,l.jsx)(w.o,{src:n.heading,posterImg:r.heading,posterAlt:r.body?r.body.content[0].value:"",prefersReducedMotion:s,renderReducedMotionFallback:()=>(0,l.jsx)("img",{src:r.heading,alt:r.body?r.body.content[0].value:"",loading:"lazy"}),width:1440,height:810,aspectRatio:16/9,paused:e||!c})}),(0,l.jsx)(cn,{assetPath:a.heading,posterPath:o.heading,posterAlt:o.body?o.body.content[0].value:"",dialogLabel:o.body?o.body.content[0].value:""})]})]})};const di=(0,d.keyframes)(["0%{transform:translateX(calc(var(--boo-size) * 1.75)) translateY(0);}100%{transform:translateX(-100%);}"]),ci=(0,d.keyframes)(["0%,100%{transform:translateY(0)}20%,60%{transform:translateY(-25%);}40%,80%{transform:translateY(25%);}"]),pi=(0,d.keyframes)(["0%,100%{transform:translateY(50%)}20%,60%{transform:translateY(35%);}40%,80%{transform:translateY(65%);}"]),mi=d.default.div.withConfig({componentId:"pmp-module__sc-139v8vo-0"})([""]),ui=d.default.div.withConfig({componentId:"pmp-module__sc-139v8vo-1"})(["position:relative;padding-bottom:",";padding-top:",";@media ","{padding-bottom:",";padding-top:",";}@media ","{padding-bottom:",";padding-top:",";}"],(0,c.s)(8),(0,c.s)(6),(0,c.a)("mediumUp"),(0,c.s)(7),(0,c.s)(8),(0,c.a)("largeUp"),(0,c.s)(10),(0,c.s)(10)),hi=d.default.div.withConfig({componentId:"pmp-module__sc-139v8vo-2"})(["--boo-size:220px;",";display:flex;justify-content:flex-end;pointer-events:none;z-index:11;",";"],c.f,(e=>{let{$animate:t}=e;return t&&(0,d.css)(["animation:"," 5s linear forwards;"],di)})),gi=(0,d.default)(h.I).withConfig({componentId:"pmp-module__sc-139v8vo-3"})(["animation:"," 8s ease-in-out infinite;pointer-events:none;width:var(--boo-size);&:nth-child(2){animation:"," 6s infinite ease-in-out;width:calc(var(--boo-size) * 0.75);}@media ","{--boo-size:660px;}"],ci,pi,(0,c.a)("largeUp"));var fi=()=>{const e=(0,b.J)(),{section:t,intro:i,items:n,icons:a}=(0,g.a)({section:"4yLmb6lOEFsC9ORkLtEdZ4",intro:"SWG5ngsS4ibJ25vVacX6y",items:{gloomyManor:{content:"37xUdvYVJXJYswd2peVBOM",video:"rrOqSNFV37qPAronGl1b3",poster:"2QLRc5aIFAwkXdvnRYAjQW"},hauntedTowers:{content:"5YIbnP0Lif7z0uEE3VtIQY",video:"7BHFQgicR6jEDEIfkBLTA",poster:"yaWlyevBOyGX5qUue1MMn"},oldClockworks:{content:"1PZxRS7RayWDZQOvZLK3By",video:"5fMS4LbQ5QXj0SNkrA8DEn",poster:"dln6jqCQin3qBApX4VBI4"},secretMine:{content:"61ixc8Yvuq2eFvuALalKkX",video:"4KfrUqsoCvefqS4aPmqjb3",poster:"4LVXJfVaSjnNlFGLS9zPIE"}},icons:"4yx7j8NkK2yp8vApOtO2tB"}),{deepLink:r}=t;(0,p.u)({id:r});const o=Object.entries(n).map((e=>{let[t,i]=e;return i})),s=(0,C.g)(a),[d,c]=(0,v.YD)(0,!0,!1);if(t)return(0,l.jsxs)(mi,{id:r,children:[(0,l.jsx)(q,{}),(0,l.jsxs)(g.I,{as:ui,className:"bg--green-tile",children:[(0,l.jsx)(g.R,{children:(0,l.jsxs)(g.C,{span:10,large:8,xlarge:12,xxlarge:10,className:"text-center",children:[(0,l.jsx)(g.b,{as:V,text:i.heading,animation:"fade",className:"title-1 color-white"}),(0,l.jsx)(g.b,{as:g.e,data:i.body,animation:"shortUp",delay:.2,className:"color-white weight--medium margin-top--2"})]})}),(0,l.jsx)(g.R,{children:(0,l.jsx)(g.C,{span:10,large:8,children:(0,l.jsx)(Bi,{items:o,paginationIcons:s,showStatic:!0})})}),!e&&(0,l.jsxs)(hi,{ref:d,$animate:c,children:[(0,l.jsx)(gi,{assetPath:i.asset.primary.assetPath,alt:i.asset.alt,$index:0}),(0,l.jsx)(gi,{assetPath:i.asset.primary.assetPath,alt:i.asset.alt,$index:1})]})]})]})};const xi=(0,d.keyframes)(["0%,100%{filter:drop-shadow(0px 0px 20px var(--glow-color));}50%{filter:drop-shadow(0px 0px 15px var(--glow-color));}"]),vi=d.default.div.withConfig({componentId:"pmp-module__sc-d4eest-0"})(["block-size:100vh;inline-size:100%;inset-block-start:0;inset-inline-start:0;pointer-events:none;position:absolute;visibility:hidden;"]),bi=d.default.div.withConfig({componentId:"pmp-module__sc-d4eest-1"})(["opacity:0;pointer-events:none;transition:opacity 0.4s;",""],(e=>{let{visible:t}=e;return t&&(0,d.css)(["pointer-events:all;opacity:1;"])})),wi=d.default.button.withConfig({componentId:"pmp-module__sc-d4eest-2"})(["--dimensions:60px;--glow-color:",";background:transparent;border:none;cursor:pointer;position:fixed;right:var(--gutter-width);bottom:calc(58px + 6rem);width:var(--dimensions);height:var(--dimensions);filter:drop-shadow(0px 0px 20px var(--glow-color));animation:"," "," ease infinite;z-index:10;@media ","{bottom:calc(58px + 2rem);}","{bottom:var(--gutter-width);}svg{height:auto;width:100%;}"],(0,c.b)("pink"),xi,(0,g.d)(1.2),(0,c.a)("mediumUp"),z.DK),yi=d.default.g.withConfig({componentId:"pmp-module__sc-d4eest-3"})(["opacity:",";transition:opacity "," ease;"],(e=>{let{$visible:t}=e;return t?1:0}),(0,g.d)(.3));var ji=()=>{const{muted:e,setMuted:t}=ye(),[i,n]=(0,v.YD)(.5,!1),{text:a}=(0,_.i1)();return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(vi,{ref:i}),(0,l.jsx)(bi,{visible:!n,children:(0,l.jsxs)(wi,{onClick:()=>{t((e=>!e))},children:[(0,l.jsxs)("svg",{width:"155",height:"146",viewBox:"0 0 155 146",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:[(0,l.jsx)("path",{d:"M155 64.7575C155 106.968 118.376 146 76.1717 146C33.9673 146 5.76944 126.299 0.484648 80.1706C-4.80014 34.042 33.9673 0 76.1717 0C118.376 0 155 22.5468 155 64.7575Z",fill:"url(#paint0_linear_191_14897)"}),(0,l.jsx)("path",{d:"M55.86 60.94L33 64.43V90.33C33 90.33 59.77 93.16 60.21 93.81C60.65 94.46 71.75 109.48 71.75 109.48H82.2L78.06 37L67.18 38.52L55.86 60.94Z",fill:"white"}),(0,l.jsxs)(yi,{$visible:e,children:[(0,l.jsx)("path",{d:"M118.88 63.1201L94.7202 87.9601",stroke:"white",strokeWidth:"10",strokeMiterlimit:"10"}),(0,l.jsx)("path",{d:"M119.22 87.62L94.3799 63.46",stroke:"white",strokeWidth:"10",strokeMiterlimit:"10"})]}),(0,l.jsxs)(yi,{$visible:!e,children:[(0,l.jsx)("path",{d:"M95.1802 60.3901C102.28 67.4901 102.28 79.0001 95.1802 86.0901",stroke:"white",strokeWidth:"10",strokeMiterlimit:"10"}),(0,l.jsx)("path",{d:"M107.6 47.27C121.73 61.4 121.73 84.32 107.6 98.46",stroke:"white",strokeWidth:"10",strokeMiterlimit:"10"})]}),(0,l.jsx)("defs",{children:(0,l.jsxs)("linearGradient",{id:"paint0_linear_191_14897",x1:"77.5",y1:"0",x2:"77.5",y2:"146",gradientUnits:"userSpaceOnUse",children:[(0,l.jsx)("stop",{stopColor:"#297235"}),(0,l.jsx)("stop",{offset:"1",stopColor:"#74A62B"})]})})]}),(0,l.jsx)(m.S,{children:a("Mute audio")})]})})]})};const _i=d.default.audio.withConfig({componentId:"pmp-module__sc-ue3kf4-0"})(["display:none;height:0;visibility:hidden;pointer-events:none;"]);var ki=()=>{const e=(0,s.useRef)(null),{muted:t}=ye();return(0,s.useEffect)((()=>{const i=e.current;t?i.pause():i.play()}),[t]),(0,l.jsx)(_i,{ref:e,loop:!0,children:(0,l.jsx)("source",{src:"https://assets.nintendo.com/video/upload/v1715718503/Marketing/pmp-lm2-hd/audio/MUS_Splashscreen_85-edit-50.mp3",type:"audio/mp3"})})};var Ci=()=>(0,l.jsx)(m.S,{children:(0,l.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",version:"1.1",style:{height:0,width:0,position:"absolute"},children:(0,l.jsx)("defs",{children:(0,l.jsxs)("filter",{id:"cloud",colorInterpolationFilters:"sRGB",x:"0%",y:"0%",height:"100%",width:"100%",children:[(0,l.jsx)("feTurbulence",{type:"fractalNoise",result:"noise",baseFrequency:".015",numOctaves:"3",seed:"0"}),(0,l.jsx)("feColorMatrix",{in:"noise",type:"hueRotate",values:"0",result:"cloud",children:(0,l.jsx)("animate",{attributeName:"values",from:"0",to:"360",dur:"2s",repeatCount:"indefinite"})}),(0,l.jsx)("feColorMatrix",{in:"cloud",result:"ghostly",type:"matrix",values:"1 0 1 0 -1 1 0 1 0 -1 1 0 1 0 -1 1 0 0 0 0"}),(0,l.jsx)("feGaussianBlur",{in:"SourceGraphic",stdDeviation:"4",result:"blur"}),(0,l.jsx)("feDisplacementMap",{in:"blur",in2:"ghostly",scale:"20"})]})})})});const Ii=d.default.div.withConfig({componentId:"pmp-module__sc-zrzrb7-0"})(["",";",";padding:"," 0 0;position:relative;touch-action:pan-y;@media ","{padding:"," 0 0;}.gallery{--item-width:100%;display:grid;gap:1.5rem;grid-template-rows:1fr;grid-template-areas:'main' 'pagination' 'body';justify-items:center;@media ","{gap:2.25rem;}}.gallery__pagination{align-items:center;grid-area:pagination;list-style:none;column-gap:12px;row-gap:12px;margin:0;padding:0;flex:1;@media ","{column-gap:20px;}}"],u.w,y.a,(0,c.s)(3),(0,c.a)("largeUp"),(0,c.s)(7),(0,c.a)("largeUp"),(0,c.a)("mediumUp")),zi=(0,d.keyframes)(["0%{transform:rotate(0)}33%{transform:rotate(-8deg);}66%{transform:rotate(8deg);}100%{transform:rotate(0);}"]),Ui=d.default.span.withConfig({componentId:"pmp-module__sc-zrzrb7-1"})(["--dimensions:38px;align-items:center;block-size:var(--dimensions);color:",";display:flex;font-size:var(--dimensions);pointer-events:all;@media ","{--dimensions:40px;}@media ","{--dimensions:76px;}svg{filter:drop-shadow(0px 0px 25px ",");}@media (hover:hover){&:hover{animation:"," "," ease-in-out infinite;}}"],(0,c.b)("green"),(0,c.a)("mediumUp"),(0,c.a)("largeUp"),(0,c.b)("green"),zi,(0,g.d)(.5)),Ri=d.default.div.withConfig({componentId:"pmp-module__sc-zrzrb7-2"})(["background-color:",";border-radius:50%;block-size:100%;inline-size:100%;cursor:pointer;",""],(e=>{let{active:t}=e;return t?(0,c.b)("green"):"#2b7939"}),(e=>{let{active:t}=e;return t&&(0,d.css)(["filter:drop-shadow(0px 0px 15px ",");"],(0,c.b)("green"))})),Ni=(0,d.default)(h.I).withConfig({componentId:"pmp-module__sc-zrzrb7-3"})(["opacity:",";"],(e=>{let{active:t}=e;return t?1:.4})),Si=d.default.div.withConfig({componentId:"pmp-module__sc-zrzrb7-4"})(["display:flex;flex:1 1 100%;gap:",";grid-area:main;inline-size:100%;.television{grid-area:frame;z-index:1;}"],(0,c.s)(3)),Mi=d.default.div.withConfig({componentId:"pmp-module__sc-zrzrb7-5"})(["flex:1 1 100%;display:grid;grid-template-areas:'frame';.gallery__main{grid-area:frame;display:grid;grid-template-areas:'content';transform:scale( 0.9 );// @TODO:temp! look into alt method of fitting content}"]),Ei=d.default.div.withConfig({componentId:"pmp-module__sc-zrzrb7-6"})(["grid-area:content;opacity:0;transform:none;transition:",";",""],(0,g.d)(.3),(e=>{let{active:t}=e;return t&&(0,d.css)(["opacity:1;"])})),Ti=d.default.div.withConfig({componentId:"pmp-module__sc-zrzrb7-7"})(["grid-area:pagination;display:flex;inline-size:100%;"]),Ai=d.default.div.withConfig({componentId:"pmp-module__sc-zrzrb7-8"})(["align-self:flex-start;grid-area:body;inline-size:100%;display:flex;justify-content:space-between;button{z-index:1;}"]),Pi=(0,d.default)(I.UD).withConfig({componentId:"pmp-module__sc-zrzrb7-9"})(["--dot-size:36px;",";aspect-ratio:1 / 1;inline-size:var(--dot-size,1rem);line-height:0;transition:transform ",";@media ","{--dot-size:72px;}@media ","{--dot-size:72px;}"," button{appearance:none;background:transparent;block-size:100%;border:0;display:block;font:inherit;inline-size:100%;padding:0;@media (hover:hover){&:hover{cursor:pointer;}}}"],(e=>{let{active:t}=e;return t&&(0,d.css)(["--end-scale:1.44;transform-style:preserve-3d;"])}),(0,g.d)(.3),(0,c.a)("mediumUp"),(0,c.a)("largeUp"),(e=>{let{$useDots:t}=e;return t&&(0,d.css)(["--dot-size:13px;@media ","{--dot-size:13px;}@media ","{--dot-size:13px;}"],(0,c.a)("mediumUp"),(0,c.a)("largeUp"))})),Fi=d.default.ul.withConfig({componentId:"pmp-module__sc-zrzrb7-10"})(["display:grid;grid-area:body;grid-template-areas:'item';list-style-type:none;margin:0;padding:0;@media ","{padding:0 10%;}"],(0,c.a)("largeUp")),Oi=d.default.li.withConfig({componentId:"pmp-module__sc-zrzrb7-11"})(["opacity:",";transition:opacity ",";grid-area:item;"],(e=>{let{active:t}=e;return t?1:0}),(0,g.d)(.3)),Li=d.default.div.withConfig({componentId:"pmp-module__sc-zrzrb7-12"})(["padding:0 ",";"],(0,c.s)(5));function Bi(e){let{items:t,paginationIcons:i,showStatic:n}=e;const{modalOpen:a}=(0,g.c)(),r=(0,b.J)(),{mediumUp:o}=(0,g.u)(),{0:d,1:c}=(0,s.useState)({oldIndex:0,newIndex:0}),{text:p}=(0,_.i1)();return(0,l.jsx)(g.I,{as:Ii,children:(0,l.jsxs)(I.ri,{items:t,ariaLiveText:p("Active gallery item: $i of $t."),onChange:c,startIndex:0,visibleRange:0,loop:!0,children:[(0,l.jsxs)(Si,{children:[o&&(0,l.jsx)(g.b,{as:I.__,direction:0,animation:"left",delay:.2,children:(0,l.jsxs)(Ui,{children:[(0,l.jsx)(Hi,{direction:"left"}),(0,l.jsx)(m.S,{children:p("Previous gallery item")})]})}),(0,l.jsxs)(g.b,{as:Mi,animation:"pop",children:[(0,l.jsx)(Qi,{variant:"tv",showStatic:n,className:"television"}),(0,l.jsx)(I.nH,{renderGalleryItem:e=>{let{active:t,activeIndex:i,index:n,item:o}=e;return(0,l.jsx)(Ei,{active:t,children:(0,l.jsx)(w.o,{src:o.video.heading,posterImg:o.poster.heading,posterAlt:o.poster.Arraybody?o.poster.Arraybody.content[0].value:"",prefersReducedMotion:r,renderReducedMotionFallback:()=>(0,l.jsx)("img",{src:o.poster.heading,alt:o.poster.body?o.poster.body.content[0].value:"",loading:"lazy"}),width:1600,height:900,aspectRatio:16/9,paused:a||n!==i})},o.content.heading)}})]}),o&&(0,l.jsx)(g.b,{as:I.__,direction:1,animation:"right",delay:.2,children:(0,l.jsxs)(Ui,{children:[(0,l.jsx)(Hi,{}),(0,l.jsx)(m.S,{children:p("Next gallery item")})]})})]}),i?(0,l.jsxs)(Ti,{children:[!o&&(0,l.jsx)(g.b,{as:I.__,direction:0,animation:"left",delay:.2,children:(0,l.jsxs)(Ui,{children:[(0,l.jsx)(Hi,{direction:"left"}),(0,l.jsx)(m.S,{children:p("Previous gallery item")})]})}),(0,l.jsx)(I.oL,{renderPaginationItem:e=>{let{active:t,index:n,item:a}=e;return(0,l.jsxs)(g.b,{as:Pi,index:n,active:t,animation:"pop",delay:.5,children:[(0,l.jsx)(Ni,{assetPath:i[n].assetPath,alt:"",active:t}),(0,l.jsx)(m.S,{children:`${p("Gallery item")}: ${a.content.heading}`})]},a.content.heading)}}),!o&&(0,l.jsx)(g.b,{as:I.__,direction:1,animation:"right",delay:.2,children:(0,l.jsxs)(Ui,{children:[(0,l.jsx)(Hi,{}),(0,l.jsx)(m.S,{children:p("Next gallery item")})]})})]}):(0,l.jsx)(I.oL,{renderPaginationItem:e=>{let{active:t,index:i,item:n}=e;return(0,l.jsxs)(Pi,{index:i,active:t,$useDots:!0,children:[(0,l.jsx)(Ri,{active:t}),(0,l.jsx)(m.S,{children:`${p("Gallery item")}: ${n.content.heading}`})]},n.content.heading)}}),!o&&!i&&(0,l.jsxs)(Ai,{children:[(0,l.jsx)(I.__,{direction:0,children:(0,l.jsxs)(Ui,{children:[(0,l.jsx)(Hi,{direction:"left"}),(0,l.jsx)(m.S,{children:p("Previous gallery item")})]})}),(0,l.jsx)(I.__,{direction:1,children:(0,l.jsxs)(Ui,{children:[(0,l.jsx)(Hi,{}),(0,l.jsx)(m.S,{children:p("Next gallery item")})]})})]}),t&&(0,l.jsx)(Fi,{children:t.map(((e,t)=>{let{content:i}=e;return(0,l.jsxs)(g.b,{as:Oi,"aria-hidden":t!==d.newIndex,active:t===d.newIndex,className:"text-center",animation:!0,staggerChildren:{animation:"fade",stagger:.2,duration:.6,delay:.3},children:[(0,l.jsx)(Li,{children:(0,l.jsx)(V,{tag:"h3",textClassName:"title-2",text:i.heading,className:"title-2 color-white"})}),(0,l.jsx)(on,{}),(0,l.jsx)(g.e,{data:i.body,className:"color-white"})]},i.__entryId)}))})]})})}const Di=d.default.svg.withConfig({componentId:"pmp-module__sc-mkv9er-0"})([""," "," ",""],(e=>{let{fillColor:t,theme:i}=e;return t&&(0,d.css)(["fill:",";"],i.pmp.colors[t])}),(e=>{let{strokeColor:t,theme:i}=e;return t&&(0,d.css)(["stroke:",";"],i.pmp.colors[t])}),(e=>{let{theme:t}=e;return(0,d.css)(["height:",";width:",";"],t.pmp.iconSize.inline,t.pmp.iconSize.inline)})),Yi=e=>{let{id:t,use:i,className:n}=e,r=(0,a.Z)(e,S);return i?(0,l.jsx)(Di,P(P({className:n},r),{},{"aria-hidden":"true",children:(0,l.jsx)("use",{xlinkHref:`#${c.N}-icon-${t}`,style:{width:"100%",height:"100%"}})})):pn(P({id:t,className:n,as:"svg","aria-hidden":!0},r))};Yi.defaultProps={use:!0},Yi.propTypes={id:f.string.isRequired,use:f.bool,fillColor:f.string,strokeColor:f.string,className:f.string};var qi=Yi;const $i=(0,d.keyframes)(["0%,100%{filter:drop-shadow(0px 0px 5px var(--glow-color));transform:scale(1);}50%{filter:drop-shadow(0px 0px 10px var(--glow-color));transform:scale(1.1);}"]),Wi=(0,d.default)(qi).withConfig({componentId:"pmp-module__sc-19w6loh-0"})(["",""],(e=>{let{glowColor:t}=e;return t&&(0,d.css)(["--glow-color:",";filter:drop-shadow(0px 0px 5px var(--glow-color));animation:"," "," ease infinite;"],(0,c.b)(t),$i,(0,g.d)(2))})),Gi=e=>{let{direction:t,glowColor:i,className:n}=e;return(0,l.jsx)(l.Fragment,{children:(0,l.jsx)(Wi,{id:`arrow-${t}`,glowColor:i,className:n})})};var Hi=Gi;Gi.defaultProps={direction:"right",glowColor:"green"},Gi.propTypes={direction:x().string,glowColor:x().string};const Xi=d.default.div.withConfig({componentId:"pmp-module__sc-um9l7b-0"})(["display:flex;position:relative;width:100%;"," svg{position:absolute;top:50%;left:50%;width:100%;transform:translate(-50%,-50%);}"],(e=>{let{variant:t}=e;switch(t){case"green":return(0,d.css)(["filter:drop-shadow(0px 0px 20px #e370ff);"]);case"purple":return(0,d.css)(["filter:drop-shadow(0px 0px 20px #4bff60);"]);default:return(0,d.css)([""])}})),Vi=d.default.img.withConfig({componentId:"pmp-module__sc-um9l7b-1"})(["width:100%;height:100%;position:absolute;top:0;left:0;opacity:1;visibility:visible;transition:all "," ease-out ",";"],(0,g.d)(.5),(0,g.d)(1)),Zi=d.default.div.withConfig({componentId:"pmp-module__sc-um9l7b-2"})(["padding-top:56.25%;transform:scale(0.88);width:100%;position:relative;"," "," ",""],(e=>{let{variant:t}=e;return"tv"===t?(0,d.css)(["transform:scale(0.9);"]):(0,d.css)(["transform:scale(0.88);"])}),(e=>{let{showStatic:t}=e;return t&&(0,d.css)(["&::after{content:'';position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(239,255,214,0.5);z-index:1;}&::after{opacity:1;visibility:visible;transition:all "," ease-out ",";}"],(0,g.d)(.5),(0,g.d)(1))}),(e=>{let{$animate:t}=e;return t&&(0,d.css)(["",",&::after{opacity:0;visibility:hidden;}"],Vi)})),Ki=d.default.div.withConfig({componentId:"pmp-module__sc-um9l7b-3"})(["",";"],c.f),Ji=e=>{let{variant:t}=e;switch(t){case"green":default:return(0,l.jsxs)("svg",{viewBox:"0 0 279.84 174",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:[(0,l.jsxs)("linearGradient",{id:"a",gradientUnits:"userSpaceOnUse",x1:"139.86",x2:"139.86",y1:"163.62",y2:"10.16",children:[(0,l.jsx)("stop",{offset:"0",stopColor:"#749d2d"}),(0,l.jsx)("stop",{offset:"1",stopColor:"#2d7a39"})]}),(0,l.jsx)("linearGradient",{id:"b",xlinkHref:"#a",y1:"2.62",y2:"171.16"}),(0,l.jsxs)("filter",{id:"c",filterUnits:"userSpaceOnUse",children:[(0,l.jsx)("feOffset",{dx:"0",dy:"0"}),(0,l.jsx)("feGaussianBlur",{result:"blur",stdDeviation:".85"}),(0,l.jsx)("feFlood",{floodOpacity:".3"}),(0,l.jsx)("feComposite",{in2:"blur",operator:"in"}),(0,l.jsx)("feComposite",{in:"SourceGraphic"})]}),(0,l.jsx)("path",{d:"m11.43 13.21 4.14 144.75 247.49 5.66 5.22-153.46zm247.97 140.92h-239.08v-134.48h239.08z",fill:"url(#a)"}),(0,l.jsx)("path",{d:"m2.61 8.28 4.57 156.72 260.77 6.15 9.15-168.53zm260.45 155.34-247.49-5.66-4.14-144.75 256.85-3.05z",fill:"url(#b)",filter:"url(#c)"})]});case"purple":return(0,l.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 279.84 174","aria-hidden":"true",children:[(0,l.jsxs)("defs",{children:[(0,l.jsxs)("linearGradient",{id:"linear-gradient",x1:"139.86",y1:"273.85",x2:"139.86",y2:"120.39",gradientTransform:"translate(279.71 284.04) rotate(-180)",gradientUnits:"userSpaceOnUse",children:[(0,l.jsx)("stop",{offset:"0",stopColor:"#48327a"}),(0,l.jsx)("stop",{offset:"1",stopColor:"#311660"})]}),(0,l.jsx)("linearGradient",{id:"linear-gradient-2",y1:"112.85",y2:"281.39",xlinkHref:"#linear-gradient"}),(0,l.jsxs)("filter",{id:"drop-shadow-3",filterUnits:"userSpaceOnUse",children:[(0,l.jsx)("feOffset",{dx:"0",dy:"0"}),(0,l.jsx)("feGaussianBlur",{result:"blur",stdDeviation:".85"}),(0,l.jsx)("feFlood",{floodColor:"#000",floodOpacity:".3"}),(0,l.jsx)("feComposite",{in2:"blur",operator:"in"}),(0,l.jsx)("feComposite",{in:"SourceGraphic"})]})]}),(0,l.jsx)("path",{strokeWidth:0,fill:"url(#linear-gradient)",d:"m268.28,160.6l-4.14-144.75L16.65,10.19l-5.22,153.46,256.85-3.05ZM20.32,19.68h239.08v134.48H20.32V19.68Z"}),(0,l.jsx)("path",{strokeWidth:0,fill:"url(#linear-gradient-2)",filter:"url(#drop-shadow-3)",d:"m277.1,165.53l-4.57-156.72L11.76,2.65,2.61,171.19l274.49-5.66ZM16.65,10.19l247.49,5.66,4.14,144.75-256.85,3.05L16.65,10.19Z"})]});case"tv":return(0,l.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 919.22 546.66","aria-hidden":"true",children:[(0,l.jsx)("defs",{children:(0,l.jsxs)("linearGradient",{id:"tv-gradient",x1:"0",y1:"273.33",x2:"919.22",y2:"273.33",gradientUnits:"userSpaceOnUse",children:[(0,l.jsx)("stop",{offset:"0",stopColor:"#c80000"}),(0,l.jsx)("stop",{offset:".34",stopColor:"#820000"}),(0,l.jsx)("stop",{offset:".5",stopColor:"#600"}),(0,l.jsx)("stop",{offset:".58",stopColor:"#6b0000"}),(0,l.jsx)("stop",{offset:".69",stopColor:"#7c0000"}),(0,l.jsx)("stop",{offset:".82",stopColor:"#980000"}),(0,l.jsx)("stop",{offset:".96",stopColor:"#be0000"}),(0,l.jsx)("stop",{offset:"1",stopColor:"#c00"})]})}),(0,l.jsx)("path",{strokeWidth:"0",fill:"url(#tv-gradient)",d:"m879.34,0L39.21,7.14C16.99,7.33-.72,25.8.02,48.01l14.95,447.4c.73,21.87,18.51,39.31,40.39,39.63l806.4,11.61c23.82.34,43.5-18.51,44.18-42.32l13.27-463.65C919.85,18.27,901.76-.19,879.34,0Zm7.17,50.55l-12.38,446.88c-.36,13.07-11.16,23.43-24.24,23.24l-782.15-11.17c-12.82-.18-23.21-10.45-23.55-23.27L32.72,54.6c-.36-13.4,10.37-24.47,23.77-24.54l806.01-4.07c13.51-.07,24.39,11.06,24.01,24.56Z"}),(0,l.jsx)("path",{strokeWidth:"0",fill:"#fff",d:"m862.49,25.98L56.49,30.06c-13.4.07-24.13,11.14-23.77,24.54l11.47,431.64c.34,12.82,10.73,23.08,23.55,23.27l782.15,11.17c13.07.19,23.87-10.17,24.24-23.24l12.38-446.88c.37-13.5-10.51-24.63-24.01-24.56Zm-1.75,450.63c0,10.69-8.67,19.35-19.35,19.35H77.83c-10.69,0-19.35-8.67-19.35-19.35V64.04c0-10.69,8.67-19.35,19.35-19.35h763.56c10.69,0,19.35,8.67,19.35,19.35v412.57Z"}),(0,l.jsxs)("g",{children:[(0,l.jsx)("circle",{strokeWidth:"0",fill:"#9d7f57",cx:"894.22",cy:"23.44",r:"7.75"}),(0,l.jsx)("circle",{strokeWidth:"0",fill:"#725434",cx:"893.6",cy:"23.92",r:"7.75"})]}),(0,l.jsxs)("g",{children:[(0,l.jsx)("circle",{strokeWidth:"0",fill:"#9d7f57",cx:"24.93",cy:"31.67",r:"7.75"}),(0,l.jsx)("circle",{strokeWidth:"0",fill:"#725434",cx:"24.31",cy:"32.15",r:"7.75"})]}),(0,l.jsxs)("g",{children:[(0,l.jsx)("circle",{strokeWidth:"0",fill:"#9d7f57",cx:"35.48",cy:"505.8",r:"7.75"}),(0,l.jsx)("circle",{strokeWidth:"0",fill:"#725434",cx:"34.86",cy:"506.27",r:"7.75"})]}),(0,l.jsxs)("g",{children:[(0,l.jsx)("circle",{strokeWidth:"0",fill:"#9d7f57",cx:"880.83",cy:"521.96",r:"7.75"}),(0,l.jsx)("circle",{strokeWidth:"0",fill:"#725434",cx:"880.21",cy:"522.44",r:"7.75"})]})]})}};var Qi=e=>{let{variant:t,showStatic:i,className:n,children:r}=e,o=(0,a.Z)(e,M);const[s,d]=(0,v.YD)(.5,!0,!0);return(0,l.jsxs)(Xi,P(P({className:n,variant:t},o),{},{children:[(0,l.jsxs)(Zi,{variant:t,showStatic:i,ref:s,$animate:d,children:[i&&(0,l.jsx)(Vi,{src:"https://assets.nintendo.com/image/upload/f_auto,q_auto/v1716928885/Marketing/pmp-lm2-hd/graphics/static-screen-optimized",alt:"",loading:"lazy"}),(0,l.jsx)(Ki,{children:r})]}),(0,l.jsx)(Ji,{variant:t})]}))};const en=(0,d.keyframes)(["0%,100%{filter:drop-shadow(0px 0px 20px var(--glow-color));}50%{filter:drop-shadow(0px 0px 15px var(--glow-color));}"]),tn=d.default.div.withConfig({componentId:"pmp-module__sc-1qne8wk-0"})(["--glow-color:",";align-items:center;display:flex;justify-content:center;color:",";filter:drop-shadow(0px 0px 20px var(--glow-color));animation:"," "," ease infinite;svg{height:auto;width:100%;}"],(0,c.b)("pink"),(0,c.b)("white"),en,(0,g.d)(1.2));var nn=e=>(0,l.jsx)(tn,{children:(0,l.jsxs)("svg",{width:"155",height:"146",viewBox:"0 0 155 146",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:[(0,l.jsx)("path",{d:"M155 64.7575C155 106.968 118.376 146 76.1717 146C33.9673 146 5.76944 126.299 0.484648 80.1706C-4.80014 34.042 33.9673 0 76.1717 0C118.376 0 155 22.5468 155 64.7575Z",fill:"url(#paint0_linear_221_19084)"}),(0,l.jsx)("g",{filter:"url(#filter0_d_221_19084)",children:(0,l.jsx)("path",{d:"M61.021 107.114L107.28 77.157L57.7572 39.5891L61.021 107.114Z",fill:"currentColor"})}),(0,l.jsxs)("defs",{children:[(0,l.jsxs)("filter",{id:"filter0_d_221_19084",x:"53.7572",y:"35.5889",width:"57.5223",height:"75.5244",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,l.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,l.jsx)("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),(0,l.jsx)("feOffset",{}),(0,l.jsx)("feGaussianBlur",{stdDeviation:"2"}),(0,l.jsx)("feComposite",{in2:"hardAlpha",operator:"out"}),(0,l.jsx)("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"}),(0,l.jsx)("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_221_19084"}),(0,l.jsx)("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_221_19084",result:"shape"})]}),(0,l.jsxs)("linearGradient",{id:"paint0_linear_221_19084",x1:"77.5",y1:"0",x2:"77.5",y2:"146",gradientUnits:"userSpaceOnUse",children:[(0,l.jsx)("stop",{stopColor:"#297235"}),(0,l.jsx)("stop",{offset:"1",stopColor:"#74A62B"})]})]})]})});var an=e=>{let{animation:t,stagger:i,delay:n,children:a}=e;return(0,l.jsx)(g.I,{staggerChildren:{animation:t,stagger:i,delay:n},children:a})};const rn=d.default.svg.withConfig({componentId:"pmp-module__sc-f6xk0q-0"})(["display:inline-flex;margin-bottom:6px;"]);var on=e=>{let{className:t}=e,i=(0,a.Z)(e,E);return(0,l.jsx)(rn,P(P({xmlns:"http://www.w3.org/2000/svg",width:"288",height:"3","aria-hidden":!0},i),{},{children:(0,l.jsx)("path",{fill:"#847051",d:"m285.71.94c-.72.07-1.46.03-2.22.05l-4.51.13-2.24.07c-.73.02-1.44-.08-2.24-.1-1.56,0-3.01.08-4.52.06-1.48.03-2.93-.25-4.56-.1-.82.13-1.43.23-2.17.19l-2.26-.05c-.75-.02-1.5-.03-2.21-.1-.71-.09-1.53-.19-2.28-.2l-2.25-.1c-.77-.02-1.51,0-2.24-.04-.74-.05-1.55-.06-2.29-.04-.74.03-1.44-.04-2.24-.06-1.55-.02-3.03.13-4.54.16-.79.02-1.56.19-2.26.23-.71.04-1.5.04-2.25.1-.74.05-1.5.09-2.21.08-.36,0-.69-.04-1.06-.11-.37-.06-.78-.12-1.18-.13-.77-.04-1.6,0-2.35.15-.69.13-1.41.11-2.12.06-.66-.05-1.43-.33-2.25-.36-.78-.05-1.55-.04-2.31,0-.73.05-1.45-.02-2.25,0-.83.04-1.5.19-2.22.16-.75,0-1.37-.09-2.15-.27-.81-.16-1.59-.13-2.31-.18-1.5-.11-3.06-.11-4.56-.01-.73.05-1.5.03-2.3.16-.76.15-1.41.2-2.18.22l-2.25.04c-.77.03-1.46.04-2.23,0-.78-.02-1.53-.01-2.33.09-.82.13-1.44.27-2.19.27-.73.05-1.34-.11-2.19-.21-.8-.06-1.57-.05-2.37.08-1.44.32-2.83.15-4.36-.05-.78-.08-1.53-.1-2.32-.08-.81.04-1.49.14-2.22.11-1.46-.03-3.01-.19-4.48-.23-.71-.04-1.47-.19-2.26-.21-.78-.02-1.52-.02-2.29,0l-2.24.06c-.72,0-1.51-.04-2.27,0-.78,0-1.61.21-2.27.28-.71.06-1.45.07-2.18.02-.78-.05-1.55-.04-2.33.02-.81.09-1.46.2-2.2.18-1.54,0-3.02.14-4.45-.02-.67-.07-1.46-.31-2.25-.34l-2.27-.08-4.51-.14c-1.5-.08-3.05-.01-4.51-.06-1.45.05-3.01-.02-4.51.06l-4.51.14-2.27.08c-.8.03-1.58.27-2.25.34-1.43.16-2.91.02-4.45.02-.74.02-1.39-.09-2.2-.18-.78-.06-1.55-.08-2.33-.02-.73.05-1.46.04-2.18-.02-.66-.07-1.49-.28-2.27-.28-.76-.04-1.55,0-2.27,0l-2.24-.06c-.77-.02-1.51-.02-2.29,0-.79.02-1.55.17-2.26.21-1.48.04-3.03.19-4.48.23-.74.03-1.41-.06-2.22-.11-.79-.02-1.54,0-2.32.08-1.53.2-2.92.37-4.36.05-.8-.13-1.57-.14-2.37-.08-.85.1-1.46.26-2.19.21-.75,0-1.37-.14-2.19-.27-.8-.1-1.55-.1-2.33-.09-.76.04-1.45.03-2.23,0l-2.25-.04c-.77-.01-1.42-.07-2.18-.22-.8-.13-1.57-.12-2.3-.16-1.5-.1-3.06-.1-4.56.01-.72.05-1.51.01-2.31.18-.77.18-1.4.27-2.15.27-.72.03-1.39-.11-2.22-.16-.81-.03-1.52.04-2.25,0-.75-.04-1.53-.05-2.31,0-.82.03-1.59.31-2.25.36-.71.06-1.43.07-2.12-.06-.75-.15-1.58-.19-2.35-.15-.39.02-.81.07-1.18.13-.37.06-.7.1-1.06.11-.71,0-1.47-.03-2.21-.08-.75-.06-1.54-.06-2.25-.1-.69-.04-1.47-.21-2.26-.23-1.51-.02-2.98-.18-4.54-.16-.79.02-1.5.08-2.24.06-.74-.02-1.55-.01-2.29.04-.73.04-1.47.02-2.24.04l-2.25.1c-.75,0-1.57.11-2.28.2-.71.07-1.46.08-2.21.1l-2.26.05c-.75.04-1.35-.06-2.17-.19-1.63-.15-3.08.13-4.56.1-1.51.02-2.96-.07-4.52-.06-.8.02-1.51.12-2.24.1l-2.24-.07-4.51-.13c-.76-.02-1.5.02-2.22-.05-.72-.08-1.53-.13-2.29-.1v.77c.75.04,1.42.18,2.19.3.78.11,1.54.14,2.28.17,1.49.09,3.02.13,4.5.18l2.27.07c.78.02,1.56-.09,2.27-.1,1.45,0,3,.08,4.5.06,1.53.03,3.08-.24,4.45-.1.67.11,1.56.25,2.31.19l2.25-.05c.75-.02,1.51-.02,2.29-.1.78-.1,1.46-.18,2.21-.19l2.25-.1c.73-.02,1.49,0,2.27-.04.77-.05,1.46-.06,2.22-.04.76.03,1.56-.04,2.27-.06,1.46-.02,2.98.13,4.48.15.72.01,1.42.17,2.23.23.79.05,1.51.04,2.25.1.76.05,1.51.09,2.3.08.39,0,.81-.05,1.19-.12.37-.06.71-.11,1.07-.12.74-.03,1.41,0,2.14.14.8.14,1.59.13,2.38.06.84-.08,1.52-.34,2.21-.35.72-.04,1.45-.04,2.2,0,.77.05,1.56-.02,2.26,0,.67.03,1.49.19,2.27.16.75.01,1.63-.12,2.32-.29.68-.14,1.41-.12,2.18-.16,1.5-.11,2.96-.11,4.46-.01.77.05,1.51.04,2.2.15.72.15,1.57.22,2.31.23l2.26.04c.73.03,1.55.04,2.28,0,.72-.02,1.48,0,2.17.08.67.11,1.53.29,2.29.28.78.06,1.66-.14,2.3-.21.7-.05,1.44-.04,2.13.07,1.52.34,3.18.15,4.62-.04.72-.07,1.47-.1,2.18-.07.69.04,1.51.14,2.28.11,1.55-.04,3-.19,4.53-.23.79-.05,1.52-.19,2.23-.21.72-.02,1.49-.02,2.22,0,.75.02,1.5.06,2.27.06.78,0,1.49-.04,2.24,0,.73,0,1.38.18,2.21.27.79.07,1.56.08,2.33.02.72-.05,1.46-.03,2.18.02.68.07,1.53.21,2.29.18,1.47,0,2.99.16,4.56,0,.83-.09,1.5-.3,2.21-.32l2.24-.06,4.51-.11c1.51-.07,2.93,0,4.48-.03,1.55.04,2.97-.04,4.48.03l4.51.11,2.24.06c.71.02,1.39.23,2.21.32,1.57.16,3.1,0,4.56,0,.76.03,1.61-.11,2.29-.18.72-.06,1.46-.07,2.18-.02.77.05,1.54.05,2.33-.02.83-.1,1.48-.27,2.21-.27.75-.04,1.45,0,2.24,0,.77,0,1.52-.04,2.27-.06.73-.02,1.5-.02,2.22,0,.71.01,1.44.16,2.23.21,1.53.04,2.98.19,4.53.23.77.03,1.59-.07,2.28-.11.71-.02,1.47,0,2.18.07,1.44.2,3.1.38,4.62.04.69-.11,1.43-.13,2.13-.07.64.07,1.52.28,2.3.21.76,0,1.62-.17,2.29-.28.69-.08,1.45-.1,2.17-.08.74.04,1.55.03,2.28,0l2.26-.04c.74,0,1.59-.08,2.31-.23.69-.12,1.43-.11,2.2-.15,1.5-.1,2.95-.1,4.46.01.78.05,1.51.02,2.18.16.69.17,1.57.3,2.32.29.79.03,1.6-.13,2.27-.16.7-.02,1.49.04,2.26,0,.75-.04,1.48-.05,2.2,0,.69.01,1.37.27,2.21.35.78.07,1.58.08,2.38-.06.73-.15,1.41-.17,2.14-.14.36.02.69.06,1.07.12.38.07.8.11,1.19.12.79,0,1.53-.03,2.3-.08.75-.06,1.46-.06,2.25-.1.81-.05,1.51-.21,2.23-.23,1.5-.02,3.02-.18,4.48-.15.71.01,1.51.08,2.27.06.76-.02,1.46-.01,2.22.04.77.04,1.53.02,2.27.04l2.25.1c.75.01,1.43.09,2.21.19.79.08,1.54.08,2.29.1l2.25.05c.76.05,1.65-.09,2.31-.19,1.37-.14,2.92.13,4.45.1,1.5.02,3.05-.07,4.5-.06.71.01,1.49.12,2.27.1l2.27-.07c1.48-.05,3.01-.1,4.5-.18.74-.04,1.51-.06,2.28-.17.77-.13,1.44-.26,2.19-.3v-.77c-.75-.03-1.56.02-2.29.1Z"})}))};const sn=d.default.div.withConfig({componentId:"pmp-module__sc-1ch28c4-0"})(["position:absolute;top:50%;left:50%;> button{width:100%;}.row{align-items:center;justify-content:center;}&:hover{.play-button{transform:translate(-50%,-50%) scale(1.1);}}"]),ln=d.default.div.withConfig({componentId:"pmp-module__sc-1ch28c4-1"})(["align-items:center;justify-content:center;display:flex;width:60px;height:60px;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transition:all "," ease;@media ","{width:96px;height:96px;}.circle{background-color:white;border-radius:50%;height:100%;width:100%;}"],(0,g.d)(.3),(0,c.a)("largeUp"));(0,d.default)(qi).withConfig({componentId:"pmp-module__sc-1ch28c4-2"})(["width:54px;height:54px;color:",";@media ","{width:96px;height:96px;}"],(0,c.b)("yellow"),(0,c.a)("largeUp")),(0,d.default)(qi).withConfig({componentId:"pmp-module__sc-1ch28c4-3"})(["width:12px;height:15px;color:",";position:absolute;top:50%;left:50%;transform:translate(calc(-50% + 2px),-50%);@media ","{width:22px;height:28px;}"],(0,c.b)("ivory"),(0,c.a)("largeUp"));const dn=e=>{let{assetPath:t,dialogLabel:i,lang:n,onClick:a,posterPath:r,posterAlt:o,posterDimensions:s,className:d,hashId:c,children:p}=e;const{text:u}=(0,_.i1)();return(0,l.jsx)(sn,{children:(0,l.jsxs)(g.V,{assetPath:t,dialogLabel:i,lang:n,onClick:a,posterPath:r,posterAlt:o,posterDimensions:s,className:d,hashId:c,children:[(0,l.jsxs)(ln,{className:"play-button",children:[(0,l.jsx)(nn,{}),(0,l.jsx)(m.S,{children:u("Play video")})]}),p]})})};var cn=dn;dn.propTypes={className:x().string,children:x().oneOfType([x().node,x().arrayOf(x().node)]),assetPath:x().string.isRequired,posterPath:x().string,posterAlt:x().string,posterDimensions:x().shape({width:x().number,height:x().number}),lang:x().oneOf(["en","es","fr","pt"]),dialogLabel:x().string.isRequired,onClick:x().func,hiddenText:x().string,color:x().oneOfType([x().string,x().func]),boxShadow:x().oneOf(["true","false"]),overflow:x().oneOf(["true","false"]),hashId:x().string};const pn=e=>{let{id:t}=e,i=(0,a.Z)(e,T);return{"arrow-left":(0,l.jsx)(c.g,P(P({},i),{},{id:"arrow-left",xmlns:"http://www.w3.org/2000/svg",width:69,height:54,children:(0,l.jsx)("polygon",{fill:"currentColor",strokeWidth:"0",points:"68.54 22.45 68 39.07 39.76 29.59 35.78 8.36 14.87 32.76 36.99 47.38 41.64 41.84 21.53 31.74 31.83 19.52 35.3 26.38 28.77 30.85 49.06 37.64 38.69 53.9 0 33.22 36.71 0 44.23 24.05 68.54 22.45"})})),"arrow-right":(0,l.jsx)(c.g,{id:"arrow-right",xmlns:"http://www.w3.org/2000/svg",width:69,height:54,children:(0,l.jsx)("polygon",{fill:"currentColor",strokeWidth:"0",points:"0 22.45 .54 39.07 28.77 29.59 32.76 8.36 53.67 32.76 31.54 47.38 26.9 41.84 47 31.74 36.71 19.52 33.24 26.38 39.76 30.85 19.48 37.64 29.84 53.9 68.54 33.22 31.83 0 24.3 24.05 0 22.45"})}),"chevron-left":(0,l.jsx)(c.g,P(P({},i),{},{id:"chevron-left",width:20,height:20,children:(0,l.jsx)("path",{d:"m10 17-7-7 7-7",strokeWidth:"3",stroke:"currentColor",fill:"none",fillRule:"evenodd",strokeLinecap:"round",strokeLinejoin:"round"})})),"chevron-right":(0,l.jsx)(c.g,P(P({},i),{},{id:"chevron-right",width:20,height:20,children:(0,l.jsx)("path",{d:"m10 3 7 7-7 7",strokeWidth:"3",stroke:"currentColor",fill:"none",fillRule:"evenodd",strokeLinecap:"round",strokeLinejoin:"round"})})),close:(0,l.jsx)(c.g,P(P({},i),{},{id:"close",width:28,height:28,children:(0,l.jsx)("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"4",d:"m2.444 2.444 23.112 23.112m0-23.112L2.444 25.556"})}))}[t]},mn=()=>(0,l.jsx)(m.S,{children:(0,l.jsx)("svg",{"aria-hidden":"true",children:(0,l.jsxs)("defs",{children:[pn({id:"arrow-left"}),pn({id:"arrow-right"}),pn({id:"chevron-right"}),pn({id:"chevron-left"}),pn({id:"close"})]})})}),un=(e,t,i)=>{const n=e.createShader(i);if(e.shaderSource(n,t),e.compileShader(n),!e.getShaderParameter(n,e.COMPILE_STATUS)){const t=e.getShaderInfoLog(n);throw new Error(t)}return n},hn=function(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.STATIC_DRAW,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.ARRAY_BUFFER;const a=e.createBuffer();return e.bindBuffer(n,a),e.bufferData(n,t,i),a};let gn;const fn=(e,t,i,n)=>{const a=un(e,t,e.VERTEX_SHADER),r=un(e,i,e.FRAGMENT_SHADER);if(gn=e.createProgram(),e.attachShader(gn,a),e.attachShader(gn,r),n){const t=[];for(let e in n)"transformFeedback"==n[e].component&&t.push(n[e].varying);e.transformFeedbackVaryings(gn,t,e.SEPARATE_ATTRIBS)}return gn},xn=e=>{if(e.linkProgram(gn),!e.getProgramParameter(gn,e.LINK_STATUS)){const t=e.getProgramInfoLog(gn);throw new Error(t)}return gn},vn=(e,t)=>{const i=e.getProgramParameter(t,e.ACTIVE_UNIFORMS),n={};for(let a=0;aObject.entries(e).reduce(((e,i)=>{let[n,a]=i;return a.component==t&&(e[n]=a),e}),{}),wn=function(e,t,i,n){let a,r,o,s=arguments.length>4&&void 0!==arguments[4]&&arguments[4];s?(a=[e.createVertexArray(),e.createVertexArray()],r=[e.createTransformFeedback(),e.createTransformFeedback()],o=[]):a=[e.createVertexArray()];const l=Object.keys(i);return a.forEach(((a,d)=>{e.bindVertexArray(a);const c=[],p={};for(let r=0;r{e.bindBufferBase(e.TRANSFORM_FEEDBACK_BUFFER,i,t)})),e.bindVertexArray(null),o.push(p))})),{vaos:a,tfbs:r,tfbBuffers:o,hasTFBs:s}},yn=function(e,t,i){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;if(!i)return null;const a=bn(i,"transformFeedback"),r=Object.keys(a).length>0,o=wn(e,t,i,n,r);return o},jn={size:1,type:5126,normalize:!1,stride:0,offset:0,buffer:null,data:null,usage:35044,buffertype:34962,index:null,component:"attribute"},_n=e=>{const t=Object.keys(e);for(let i=0;i1&&void 0!==arguments[1]?arguments[1]:{};!1!==e?.generateMips||e.minFilter||(e.minFilter=Cn),this.args=P(P({},Rn),e),this.autoUpdate=t,this.i=i,this.texture=null}bind(e){null==this.texture&&(e.activeTexture(e.TEXTURE0+this.i),this.texture=function(e){let{img:t,generateMips:i=!0,target:n=e.TEXTURE_2D,type:a=e.UNSIGNED_BYTE,format:r=e.RGBA,internalFormat:o=r,minFilter:s=(i?e.NEAREST_MIPMAP_LINEAR:e.LINEAR),magFilter:l=e.LINEAR,wrapS:d=e.CLAMP_TO_EDGE,wrapT:c=e.CLAMP_TO_EDGE,level:p=0}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const m=e.createTexture();return e.bindTexture(e.TEXTURE_2D,m),e.pixelStorei(e.UNPACK_FLIP_Y_WEBGL,!0),e.texImage2D(e.TEXTURE_2D,p,o,r,a,t),e.texParameteri(n,e.TEXTURE_MIN_FILTER,s),e.texParameteri(n,e.TEXTURE_MAG_FILTER,l),e.texParameteri(n,e.TEXTURE_WRAP_S,d),e.texParameteri(n,e.TEXTURE_WRAP_T,c),i&&e.generateMipmap(n),m}(e,this.args)),this.autoUpdate&&(e.activeTexture(e.TEXTURE0+this.i),e.texImage2D(e.TEXTURE_2D,this.args.level,this.args.internalFormat,this.args.format,this.args.type,this.args.img))}}const Sn=d.default.div.withConfig({componentId:"pmp-module__sc-mzmc8r-0"})(["width:100%;height:100%;canvas{height:100%;width:100%;}"]),Mn={frag:"#version 300 es\nprecision highp float;\nin vec2 v_uv;\nin vec3 v_colour;\nout vec4 colour;\nuniform vec2 u_resolution;\nuniform float u_time;\nvoid main() { \n colour = vec4(vec3(v_uv,1),1);\n}",vert:"#version 300 es\nin vec2 position;\nin vec2 uv;\nout vec2 v_uv;\nout vec3 v_colour;\nuniform vec2 u_resolution;\nuniform float u_time;\nvoid main() {\n v_uv = uv;\n gl_Position = vec4(position, 0,1);\n}"},En={dpr:2},Tn={alpha:!0,premultipliedAlpha:!0,preserveDrawingBuffer:!0},An={position:{data:new Float32Array([-1,-1,1,-1,1,1,1,1,-1,1,-1,-1]),size:2},uv:{data:new Float32Array([0,0,1,0,1,1,1,1,0,1,0,0]),size:2}},Pn=6,Fn=(e,t,i)=>{const{width:n,height:a}=t;e.width=n*i.dpr,e.height=a*i.dpr};function On(e){let{settings:t=En,attributes:i=An,count:n=Pn,webglSettings:a=Tn,shaders:r=Mn,uniforms:o,playing:d=null}=e;const c=(0,s.useRef)(null),p=(0,s.useRef)(null),m=(0,s.useRef)(null),u=(0,s.useRef)({}),h=(0,b.J)(),[g,f]=(0,v.YD)(null,!1),x=(0,s.useRef)();r=P(P({},Mn),r);const w=(0,s.useCallback)((function(e){const t=p.current,i=u.current;if(!i||!t)return;const{width:n,height:a}=t.canvas;if(o)for(const[r,s]of Object.entries(o))s instanceof Nn?(s.bind(t),i.bindUniform(r,s.i)):i.bindUniform(r,s);i.bindUniform("u_time",.001*e),i.bindUniform("u_resolution",[n,a]),i.bindUniform("u_prefersReducedMotion",h),i.render({width:n,height:a}),i.playing&&(m.current=requestAnimationFrame(w))}),[r,i,n,a]),y=(0,s.useCallback)((()=>{const e=c.current,t=p.current=e.getContext("webgl2",a),o=u.current=function(e){let{vert:t,frag:i,attributes:n,count:a,offset:r=0,mode:o=e.TRIANGLES,attributesOffset:s=0}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};_n(n),window.attributes=n;const l=fn(e,t,i,n),d=yn(e,l,n,s);let c=0;xn(e);const p=vn(e,l);return{uniforms:p,bindUniform(t,i){if(void 0===i)return;if(!p[t])return;const{type:n,location:a}=p[t];switch(n){case 5126:return i instanceof Array?e.uniform1fv(a,i):("number"===typeof i&&e.uniform1f(a,i),null);case 35664:return e.uniform2fv(a,i);case 35665:return e.uniform3fv(a,i);case 35666:return e.uniform4fv(a,i);case 35670:case 5124:case 35678:case 35680:return i?.length?e.uniform1iv(a,i):e.uniform1i(a,i);case 35671:case 35667:return e.uniform2iv(a,i);case 35672:case 35668:return e.uniform3iv(a,i);case 35673:case 35669:return e.uniform4iv(a,i);case 35674:return e.uniformMatrix2fv(a,!1,i);case 35675:return e.uniformMatrix3fv(a,!1,i);case 35676:if(null===i)return;return e.uniformMatrix4fv(a,!1,i)}},bindVAOs(){if(e.useProgram(l),d.hasTFBs){const t=(c+1)%2,i=d.vaos[c],n=d.tfbs[t],a=d.tfbBuffers[t];e.bindVertexArray(i),e.bindTransformFeedback(e.TRANSFORM_FEEDBACK,n);for(let r in a){const t=a[r];e.bindBufferBase(e.TRANSFORM_FEEDBACK_BUFFER,t.i,t.buffer)}c=t}else{const t=d.vaos[0];t&&e.bindVertexArray(t)}},render(){let{width:t=null,height:i=null,x:n=0,y:s=0}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.viewport(n,s,t||e.canvas.width,i||e.canvas.height),d.hasTFBs&&e.beginTransformFeedback(o),e.drawArrays(o,r,a),d.hasTFBs&&e.endTransformFeedback()}}}(t,P(P({},r),{},{attributes:i,count:n}));o.bindVAOs()}),[r,i,n,a]);(0,s.useEffect)((()=>{y();const e=c.current,i=e.getBoundingClientRect();Fn(e,i,t);const n=u.current;return f&&!h&&(m.current=requestAnimationFrame(w),n.playing=null===d||d),()=>{cancelAnimationFrame(m.current),n.playing=!1}}),[i,n,r,a,h]),(0,s.useEffect)((()=>{const e=u.current;cancelAnimationFrame(m.current),m.current=requestAnimationFrame(w),e.playing=f&&!h?null===d||d:null!==d&&d}),[f,o,h,w,d]);const j=(0,s.useCallback)((()=>{const e=c.current;e&&(clearTimeout(x.current),x.current=setTimeout((()=>{const i=c.current.getBoundingClientRect();Fn(e,i,t)}),50))}),[t]);return(0,s.useEffect)((()=>{window.addEventListener("resize",j),j();const e=c.current,t=e=>{e.preventDefault(),u.current.playing=!1},i=()=>{y(),u.current.playing=!0,requestAnimationFrame(w)};return e.addEventListener("webglcontextlost",t),e.addEventListener("webglcontextrestored",i),()=>{window.removeEventListener("resize",j),e.removeEventListener("webglcontextlost",t),e.removeEventListener("webglcontextrestored",i)}}),[t]),(0,l.jsx)(Sn,{ref:g,className:"shader-container",children:(0,l.jsx)("canvas",{ref:c})})}On.propTypes={settings:x().shape(En),attributes:x().shape(An),count:x().shape(Pn),webglSettings:x().shape(Tn),shaders:x().shape({frag:x().string,vertex:x().string}),uniforms:x().object,playing:x().oneOfType([null,x().oneOfType([x().bool])])};const Ln=d.default.div.withConfig({componentId:"pmp-module__sc-q7f16l-0"})(["width:100%;height:100%;position:relative;&::before{",";content:'';display:block;background:",";opacity:0.5;}"],c.f,(0,c.b)("black")),Bn=d.default.div.withConfig({componentId:"pmp-module__sc-q7f16l-1"})(["video,img{display:none;}"]),Dn={rootMargin:"-400px 0px 0px 0px",threshold:0};function Yn(e){const t=(0,s.useRef)(null),i=(0,s.useRef)(null),n=(0,s.useRef)({frag:"#version 300 es\nprecision highp float;\nin vec2 v_uv;\nin vec3 v_colour;\nout vec4 colour;\nuniform vec2 u_resolution;\nuniform float u_time;\nuniform sampler2D smoke;\nuniform sampler2D bg;\nuniform vec2 texResolution;\nuniform float frame;\n \nvec2 uvCover (vec2 uv, vec2 size, vec2 resolution) {\n vec2 coverUv = uv;\n vec2 s = resolution; // Screen\n vec2 i = size; // Image\n\n float rs = s.x / s.y;\n float ri = i.x / i.y;\n vec2 new = rs < ri ? vec2(i.x * s.y / i.y, s.y) : vec2(s.x, i.y * s.x / i.x);\n vec2 offset = (rs < ri ? vec2((new.x - s.x) / 2.0, 0.0) : vec2(0.0, (new.y - s.y) / 2.0)) / new;\n \n coverUv = coverUv * s / new + offset;\n\n return coverUv;\n}\nvec2 getScreenSpace() {\n vec2 uv = (gl_FragCoord.xy - 0.5 * u_resolution.xy) / u_resolution.y;\n return uv;\n}\n\nvec2 hash( vec2 p ) {\n\tp = vec2( dot(p,vec2(127.1,311.7)), dot(p,vec2(269.5,183.3)) );\n\treturn -1.0 + 2.0*fract(sin(p)*43758.5453123);\n}\n\nfloat noise( in vec2 p, in float t ) {\n const float K1 = 0.366025404; // (sqrt(3)-1)/2;\n const float K2 = 0.211324865; // (3-sqrt(3))/6;\n\n p += t;\n\tvec2 i = floor( p + (p.x+p.y)*K1 );\n vec2 a = p - i + (i.x+i.y)*K2;\n float m = step(a.y,a.x); \n vec2 o = vec2(m,1.0-m);\n vec2 b = a - o + K2;\n\tvec2 c = a - 1.0 + 2.0*K2;\n vec3 h = max( 0.5-vec3(dot(a,a), dot(b,b), dot(c,c) ), 0.0 );\n\tvec3 n = h*h*h*h*vec3( dot(a,hash(i+0.0)), dot(b,hash(i+o)), dot(c,hash(i+1.0)));\n return dot( n, vec3(70.0) );\n}\nvoid main() { \n vec2 uv = getScreenSpace();\n vec2 p = gl_FragCoord.xy/u_resolution;\n vec2 n = vec2(noise(uv*2.+10., u_time*-.1), noise(uv*2., u_time*-.1));\n float c = texture(smoke, uv-.5+n*.05).r;\n float g = smoothstep(.8, 0.1, p.y)+n.x*.1;\n c *= g;\n c += g * g * .4;\n p = uvCover(p, texResolution, u_resolution);\n vec3 lc = texture(bg, p+c*.03).rgb;\n colour = vec4(mix(lc, vec3(1), clamp(c-.25, 0., 1.)), 1);\n}"}),a=(0,s.useRef)(),r=(0,s.useRef)(),{0:o,1:d}=(0,s.useState)(!1),c=(0,s.useRef)({smoke:null,bg:null,frame:0}),{0:p,1:m}=(0,s.useState)(!1),{0:u,1:h}=(0,s.useState)(!1),{0:g,1:f}=(0,s.useState)(c.current),{0:x,1:v}=(0,s.useState)(!1),b=(0,s.useCallback)((e=>{e.forEach((e=>{d(e.isIntersecting)}))}),[]);(0,s.useEffect)((()=>{a.current=new IntersectionObserver(b,Dn),a.current.observe(r.current)}),[b]),(0,s.useEffect)((()=>{if(x)return;const e=c.current;p&&u&&e.smoke&&e.bg&&(f(c.current),v(!0))}),[p,x,g,u]);const w=(0,s.useCallback)((()=>{const e=t.current;e.play(),h(!0);const i=new Nn({img:e,generateMips:!1,wrapS:zn,wrapT:Un},{i:0,autoUpdate:!0});c.current.smoke=i}),[]),y=(0,s.useCallback)((()=>{const e=i.current,t=new Nn({img:e},{i:1});m(!0),c.current.bg=t,c.current.texResolution=[e.width,e.height]}),[]);return(0,s.useEffect)((()=>{const e=t.current,n=i.current;return e.readyState>=4?w():e.addEventListener("canplaythrough",w),n.complete?y():n.addEventListener("load",y),()=>{e.removeEventListener("canplaythrough",w),n.removeEventListener("load",y)}}),[y,w]),(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(Ln,{ref:r,children:(0,l.jsx)(On,P(P({},e),{},{shaders:n.current,uniforms:g,playing:o}))}),(0,l.jsxs)(Bn,{children:[(0,l.jsx)("img",{src:"https://assets.nintendo.com/image/upload/f_auto,q_auto/v1712945796/Marketing/pmp-lm2-hd/background-scenes/background-manor-landscape-2x",ref:i,crossOrigin:"anonymous"}),(0,l.jsx)("video",{ref:t,autoPlay:!0,muted:!0,crossOrigin:"true",loop:!0,src:"https://assets.nintendo.com/video/upload/f_auto:video,q_auto/v1713217321/Marketing/pmp-lm2-hd/videos/smoke"})]})]})}var qn={"Mute audio":{es:"Mute audio",fr:"Mute audio",pt:"Mute audio"}};var $n=e=>(0,l.jsxs)(c.P,{customTheme:O,pageProps:e,i18n:(0,p.m)(qn),children:[(0,l.jsx)(o(),{children:(0,l.jsx)("link",{rel:"stylesheet",href:"https://use.typekit.net/ydx6ydo.css"})}),(0,l.jsx)(L,{}),(0,l.jsx)(mn,{}),(0,l.jsx)(Ci,{}),(0,l.jsxs)(D,{children:[(0,l.jsx)(ki,{}),(0,l.jsx)($t,{}),(0,l.jsx)(li,{}),(0,l.jsx)(Ke,{}),(0,l.jsx)(fi,{}),(0,l.jsx)(mt,{}),(0,l.jsx)(ve,{}),(0,l.jsx)(Jt,{}),(0,l.jsx)(Xt,{}),(0,l.jsx)(Mt,{}),(0,l.jsx)(we,{}),(0,l.jsx)(ji,{})]})]})}}]);