!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="b9c44411-6ea9-4b12-be71-628b2d10af82",e._sentryDebugIdIdentifier="sentry-dbid-b9c44411-6ea9-4b12-be71-628b2d10af82")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4589],{86933:function(e,t,i){i.d(t,{L:function(){return Gn}});var n=i(95235),r=i(82269),a=i(97729),o=i.n(a),s=i(2784),l=i(52322),d=i(7307),c=i(69549),p=i(84100),m=i(9046),u=i(98046),h=i(9358),g=i(43992),f=i(13980),x=i.n(f),v=i(52049),b=i(3517),w=i(29650),y=i(55249),j=i(89152),_=i(82091),k=i(68054),C=i(60597),I=i(32151),z=i(72692),U=i(33197),R=i(60014);const S=["text","tag","color","dangerous","textClassName","className"],N=["keyId"],E=["className","children"],M=["id","use","className"],T=["variant","showStatic","className","children"],A=["className"],P=["id"];function F(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 O(e){for(var t=1;t{let{theme:t}=e;return t.pmp.namespace}),L.weights.medium),Y=(0,s.createContext)(),q=e=>{let{children:t}=e;const{0:i,1:n}=(0,s.useState)(!0),r={muted:i,setMuted:n};return(0,l.jsx)(Y.Provider,{value:r,children:t})},$=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 W=e=>{let{className:t}=e;return(0,l.jsx)($,{className:t})};const G=d.default.span.withConfig({componentId:"pmp-module__sc-q5nwxc-0"})(["filter:url('#cloud');z-index:1;color:#ff000000;"]),H=d.default.span.withConfig({componentId:"pmp-module__sc-q5nwxc-1"})(["z-index:2;opacity:0.8;"]),X=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%;}",";",""],G,H,(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;}"],G,H,G)}),(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;}"],G,H,G)})),V=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},Z=e=>{let{text:t,tag:i,color:n,dangerous:a,textClassName:o,className:s}=e,d=(0,r.Z)(e,S);if(t)return(0,l.jsxs)(X,O(O({as:i,$color:n,className:(0,c.g)([s])},d),{},{children:[(0,l.jsx)("span",{dangerouslySetInnerHTML:{__html:V(t)}}),(0,l.jsx)(G,{className:o,"aria-hidden":"true",dangerouslySetInnerHTML:{__html:V(t)}}),(0,l.jsx)(H,{className:o,"aria-hidden":"true",dangerouslySetInnerHTML:{__html:V(t)}})]}))};Z.defaultProps={color:"green",tag:"h2",textClassName:"title-1"};var K=Z;const J=(0,d.keyframes)(["0%,100%{transform:translate(0,-50%) scale(1.4);}50%{transform:translate(0,-50%) scale(0);}"]),Q=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.t)("largeUp"),J,(0,g.d)(.5));var ee=e=>{let{keyId:t}=e,i=(0,r.Z)(e,N);return(0,l.jsx)(Q,O({},i),t)};const te=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.t)("largeUp")),ie=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.t)("largeUp"),(e=>{let{active:t}=e;return t&&(0,d.css)(["",",","{opacity:1;}","{transform:scale(0.9);opacity:0.21;}"],ue,le,ge)})),ne=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:9;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.t)("largeUp"),(0,c.s)(3),(0,c.t)("xlargeUp"),(0,c.t)("xxlarge")),re=(0,d.keyframes)(["0%{transform:rotate(0)}33%{transform:rotate(-8deg);}66%{transform:rotate(8deg);}100%{transform:rotate(0);}"]),ae=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.a)("green"),(0,c.t)("mediumUp"),(0,c.t)("largeUp"),re,(0,g.d)(.5)),oe=(0,d.default)(ae).withConfig({componentId:"pmp-module__sc-7eg1mt-4"})(["left:0;"]),se=(0,d.default)(ae).withConfig({componentId:"pmp-module__sc-7eg1mt-5"})(["right:0;"]),le=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.t)("largeUp"),(0,c.t)("mediumUp"),(0,c.t)("largeUp")),de=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;"]),ce=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.t)("mediumUp"),(0,c.t)("largeUp")),pe=(0,d.keyframes)(["to{transform:translateY(10px)}"]),me=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.t)("largeUp")),ue=(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.t)("mediumUp"),(0,c.t)("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;"],pe,(0,g.d)(1+.5*i))})),he=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.t)("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.t)("largeUp"));const ge=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.t)("largeUp"));function fe(e){let{items:t,ghosts:i}=e;const{text:n}=(0,_.useLocalizer)(),{0:r,1:a}=(0,s.useState)({uuid:Date.now()});return(0,l.jsx)(g.I,{as:te,children:(0,l.jsxs)(z.ri,{items:t,ariaLiveText:n("Active gallery item: $i of $t."),startIndex:0,visibleRange:0,loop:!0,onChange:()=>{a({uuid:Date.now()})},children:[(0,l.jsx)(he,{animation:"pop",children:(0,l.jsx)(ee,{keyId:r.uuid})}),(0,l.jsx)(z.nH,{renderGalleryItem:e=>{let{active:n,index:r,item:a}=e;return(0,l.jsx)(z.Lm,{index:r,active:n,children:(0,l.jsxs)(ie,{active:n,children:[(0,l.jsx)(ge,{}),r===t.length-1?(0,l.jsx)(me,{children:i.map(((e,t)=>{let{assetPath:i,alt:r,id:a}=e;return(0,l.jsx)(ue,{assetPath:i,alt:r,lazyLoad:!1,$active:n,$animate:n,$index:t,$isGhost:!0},a)}))}):(0,l.jsx)(ue,{assetPath:a.asset.primary.assetPath,alt:a.asset.alt,lazyLoad:!1,$active:n}),(0,l.jsxs)(le,{children:[(0,l.jsx)(ni,{className:"title-wrapper",children:(0,l.jsx)("h3",{className:"title-2",children:a.heading})}),(0,l.jsx)(de,{children:(0,l.jsx)(ce,{className:"bg--wood-tile",children:(0,l.jsx)(g.e,{data:a.body})})})]})]})},a.heading)}}),(0,l.jsxs)(ne,{children:[(0,l.jsx)(z.__,{direction:0,children:(0,l.jsxs)(g.b,{as:oe,$direction:"0",animation:"left",children:[(0,l.jsx)(Vi,{direction:"left",glowColor:"pink"}),(0,l.jsx)(m.S,{children:n("Previous gallery item")})]})}),(0,l.jsx)(z.__,{direction:1,children:(0,l.jsxs)(g.b,{as:se,$direction:"1",animation:"right",children:[(0,l.jsx)(Vi,{glowColor:"pink"}),(0,l.jsx)(m.S,{children:n("Next gallery item")})]})})]})]})})}fe.defaultProps={items:x().array};const xe=d.default.div.withConfig({componentId:"pmp-module__sc-1bbqs3g-0"})([""]),ve=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.t)("mediumUp"),(0,c.s)(4),(0,c.s)(7),(0,c.t)("largeUp"),(0,c.s)(4),(0,c.s)(12),c.f),be=(0,d.default)(g.R).withConfig({componentId:"pmp-module__sc-1bbqs3g-2"})(["position:relative;z-index:1;"]);var we=()=>{const{section:e,intro:t,ghosts:i}=(0,g.a)({section:"6314IKkpDORFFjcTSEP0zw",intro:"6bK92uykr5JweBh68rUakW",ghosts:"2AA6Edrj4A760CZhgvTHwV"}),n=i?(0,I.g)(i):[],r=(0,s.useMemo)((()=>e.modules.filter((e=>"modulePromoC"===e.__contentType&&e.asset))),[e]);return(0,l.jsxs)(xe,{children:[(0,l.jsx)(W,{}),(0,l.jsxs)(g.I,{as:ve,className:"bg--purple-tile",children:[(0,l.jsx)(be,{children:(0,l.jsxs)(g.C,{span:10,children:[(0,l.jsx)(g.b,{as:K,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)(fe,{items:r,ghosts:n})})})]})]})};const ye=d.default.div.withConfig({componentId:"pmp-module__sc-xup1u8-0"})(["background:",";color:",";"],(0,c.a)("white"),(0,c.a)("black"));function je(){const{data:e}=(0,g.a)({data:"64nIL17GGcu7WzspWgmxPA"});return(0,l.jsx)(ye,{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 _e=()=>{const e=(0,s.useContext)(Y);if(!e)throw new Error("useAudio hook must be used within a AudioProvider.");return e},ke=(0,d.keyframes)(["0%{bottom:var(--start-y-percent);}100%{bottom:calc(var(--delta-y-percent) + 100%);}"]),Ce=(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;}"]),Ie=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%);"]),ze=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;}"],ke,(0,g.d)("var(--duration)"),(0,g.d)("var(--delay)"),c.f,Ce,(0,g.d)("var(--duration)"),(0,g.d)("var(--delay)")),Ue=[{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 Re=e=>{let{delayMultiplier:t,className:i}=e;return(0,l.jsx)(Ie,{className:i,children:Ue.map(((e,i)=>{let{pixelSize:n,startYpercent:r,startXpercent:a,deltaYpercent:o,deltaXpixels:s,duration:d,delay:c}=e;return(0,l.jsx)(ze,{style:{"--pixel-size":`${n}px`,"--start-y-percent":`${r}%`,"--start-x-percent":`${a}%`,"--delta-y-percent":`${o}%`,"--delta-x-pixels":`${s}px`,"--duration":d,"--delay":t?c*t:c}},i)}))})};const Se=(0,d.keyframes)(["0%{transform:scale(1);opacity:1;}70%{opacity:0;transform:scale(.3);}100%{opacity:0;transform:scale(0);}"]),Ne=(0,d.default)(Re).withConfig({componentId:"pmp-module__sc-1v98o18-0"})(["left:50%;"]),Ee=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;}}"],Pe,Fe,Se,(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.i)(t,6)}),(0,c.t)("mediumUp"),(e=>{let{theme:t}=e;return(0,c.i)(t,4)}),(0,c.t)("largeUp"),(e=>{let{theme:t}=e;return(0,c.i)(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.i)(t,6)}),(0,c.t)("mediumUp"),(e=>{let{theme:t}=e;return(0,c.i)(t,4.5)}),(0,c.t)("largeUp"),(e=>{let{theme:t}=e;return(0,c.i)(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.i)(t,6)}),(0,c.t)("mediumUp"),(e=>{let{theme:t}=e;return(0,c.i)(t,4)}),(0,c.t)("largeUp"),Ne);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.i)(t,4)}))}})),Me=(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);}"]),Te=(0,d.keyframes)(["0%,100%{transform:rotate(0deg);}16%{transform:rotate(-5deg);}32%{transform:rotate(5deg);}50%,100%{transform:rotate(0deg);}"]),Ae=(0,d.default)(u.I).withConfig({componentId:"pmp-module__sc-1v98o18-2"})(["animation:"," "," ease-in-out infinite alternate;"],Te,(0,g.d)(1.5)),Pe=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),Me,(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))})),Fe=(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)),Oe=d.default.img.withConfig({componentId:"pmp-module__sc-1v98o18-5"})([""]);var Le=e=>{let{dimensions:t,ghostData:i,colorData:n,index:r}=e;const{muted:a}=_e(),{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:Ee,groupIndex:r,animation:"fade",clicked:b,onClick:()=>{b||(j(!0),v.currentTime=0,w(!b),a||v.play(),_.current=setTimeout((()=>{w(!1)}),3e3))},children:[(0,l.jsxs)(Ae,{width:o,height:d,children:[(0,l.jsx)(u.a,{width:o,left:c,top:p,children:(0,l.jsx)(Pe,{src:`https://assets.nintendo.com/image/upload/f_auto,q_auto/${h.primary.assetPath}`,alt:h.alt,$index:r,loading:"lazy",$interacted:y,clicked:b})}),(0,l.jsx)(Fe,{width:o,left:c,top:p,children:(0,l.jsx)(Oe,{src:`https://assets.nintendo.com/image/upload/f_auto,q_auto/${f.primary.assetPath}`,alt:f.alt,loading:"lazy",clicked:b})})]}),(0,l.jsx)(Ne,{})]})})};const Be=d.default.div.withConfig({componentId:"pmp-module__sc-5lvdbm-0"})(["width:100%;svg{width:100%;}"]),De=d.default.div.withConfig({componentId:"pmp-module__sc-5lvdbm-1"})(["text-align:center;"]),Ye=d.default.img.withConfig({componentId:"pmp-module__sc-5lvdbm-2"})(["width:var(--width);"]),qe={default:49,largeUp:89};var $e=e=>{let{className:t}=e;const i=(0,s.useRef)(),n=(0,s.useRef)(null),{0:r,1:a}=(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;a(Math.floor(e/qe[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)(Be,{ref:i,className:t,style:{"--width":`${qe[o?"largeUp":"default"]}px`},children:(0,l.jsx)(g.I,{as:De,staggerChildren:{animation:"fade",stagger:.15},children:Array(r).fill().map(((e,t)=>(0,l.jsx)(Ye,{src:"https://assets.nintendo.com/image/upload/Marketing/pmp-lm2-hd/graphics/brick-tile.svg",alt:""},t)))})})};const We=(0,d.default)(Re).withConfig({componentId:"pmp-module__sc-u6s7dv-0"})([""]),Ge=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.a)("black"),(0,c.s)(9),(0,c.t)("mediumUp"),(0,c.s)(7),(0,c.t)("largeUp"),(0,c.s)(17.75)),He=(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.t)("mediumUp"),(0,c.s)(9),(0,c.t)("largeUp"),(0,c.s)(20),(0,c.s)(8),(0,c.t)("mediumUp"),(0,c.s)(9),(0,c.t)("largeUp"),(0,c.s)(25),We,(0,c.t)("largeUp")),Xe=(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 Ve=(0,d.default)($e).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.t)("mediumUp"),(0,c.s)(4),(0,c.s)(4),(0,c.t)("largeUp"),(0,c.s)(4),(0,c.s)(13)),Ze={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"}},Ke={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"}},Je={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 Qe=()=>{const{modalOpen:e}=(0,g.c)(),t=(0,b.J)(),{section:i,howToPlay:n,items:r}=(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:a,largeUp:o}=(0,g.u)(),{0:d,1:c}=(0,s.useState)(Ze);if((0,s.useEffect)((()=>{switch(!0){case o:c(Je);break;case a:c(Ke);break;default:c(Ze)}}),[a,o]),i)return(0,l.jsxs)(Ge,{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:K,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)(Ve,{})})})]}),(0,l.jsx)(g.I,{children:Object.entries(r).map(((i,n)=>{let[r,a]=i;const{content:o,video:s,poster:c,ghost:p}=a,{heading:m,body:u}=o;return(0,l.jsxs)(He,{reverse:!(n%2===0),verticalCenter:!0,className:"relative",children:[(0,l.jsxs)(Xe,{span:10,large:5,children:[(0,l.jsx)(We,{delayMultiplier:.5*(n+1)}),(0,l.jsx)(We,{delayMultiplier:.25*(n+1)}),(0,l.jsx)(on,{animation:"pop",children:(0,l.jsx)(tn,{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)(on,{animation:"shortUp",stagger:.25,children:[(0,l.jsx)(K,{className:"title-2 color-white",color:n%2===0?"pink":"green",tag:"h3",text:m,textClassName:"title-2",animation:"fade"}),(0,l.jsx)(ln,{}),(0,l.jsx)(g.e,{className:"color-white",data:u})]})}),p&&(0,l.jsx)(Le,{dimensions:d[r],ghostData:p,index:n,colorData:d[r]})]},r)}))})]})};const et=d.default.div.withConfig({componentId:"pmp-module__sc-4ktnpk-0"})(["width:100%;height:auto;display:grid;grid-template-areas:'image';"]),tt=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;"])})),it=["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"],nt=(e,t)=>Math.floor((0,k.r)(e,t)),rt=e=>{let{startIndex:t,delayMultiplier:i=1}=e;const{0:n,1:r}=(0,s.useState)(t||nt(0,it.length)),a=(0,s.useRef)(null);return(0,s.useEffect)((()=>{let e=a.current;return e&&clearInterval(e),e=setInterval((()=>{let e=nt(0,it.length);if(e===n)for(;e===n;)e=nt(0,it.length);r(e)}),5e3*i),()=>{clearInterval(e)}}),[i]),(0,l.jsx)(et,{children:it.map(((e,t)=>(0,l.jsx)(tt,{src:e,alt:"",active:t===n,loading:"lazy"},t)))})};var at=rt;rt.defaultProps={delay:1},rt.propTypes={delayMultiplier:x().number};const ot=(0,d.default)(Re).withConfig({componentId:"pmp-module__sc-15zhad4-0"})([""]),st=d.default.div.withConfig({componentId:"pmp-module__sc-15zhad4-1"})(["background-color:",";"],(0,c.a)("black")),lt=(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.t)("mediumUp"),(0,c.t)("largeUp")),dt=(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.t)("mediumUp"),(0,c.s)(4),(0,c.t)("largeUp"),(0,c.s)(8)),ct=(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.t)("mediumUp"),(0,c.s)(9),(0,c.t)("largeUp"),(0,c.s)(10),ot,(0,c.t)("largeUp")),pt=(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.i)(t,6)}),(0,c.t)("largeUp"),(e=>{let{theme:t}=e;return(0,c.i)(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.i)(t,8)}),(0,c.t)("largeUp"),(e=>{let{theme:t}=e;return(0,c.i)(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.i)(t,8)}),(0,c.t)("largeUp"),(e=>{let{theme:t}=e;return(0,c.i)(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.i)(t,4)}))}})),d.default.svg.withConfig({componentId:"pmp-module__sc-15zhad4-7"})([""]);const mt=d.default.div.withConfig({componentId:"pmp-module__sc-15zhad4-8"})(["display:none;@media ","{display:block;width:",";position:absolute;z-index:1;","}"],(0,c.t)("largeUp"),(e=>{let{theme:t}=e;return(0,c.i)(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)([""])}})),ut=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.i)(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.t)("mediumUp"),(e=>{let{theme:t}=e;return(0,c.i)(t,3)}),(0,c.t)("largeUp"));var ht=()=>{const{modalOpen:e}=(0,g.c)(),t=(0,b.J)(),{section:i,intro:n,items:r}=(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:a}=(0,g.u)();if(i)return(0,l.jsxs)(st,{children:[(0,l.jsx)(W,{}),(0,l.jsxs)(lt,{children:[(0,l.jsx)(j.W,{children:(0,l.jsx)(on,{animation:"fade",delay:.2,children:(0,l.jsx)(h.I,{assetPath:n.asset.primary.assetPath,alt:n.asset.alt,lazyLoad:!1})})}),(0,l.jsx)(dt,{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)(on,{animation:"shortUp",stagger:.05,children:[(0,l.jsx)(K,{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(r).map(((i,n)=>{let[r,o]=i;const{content:s,video:d,poster:c}=o,{heading:p,body:m}=s;return(0,l.jsxs)(ct,{verticalCenter:!0,className:"relative",children:[(0,l.jsxs)(pt,{span:10,large:5,children:[(0,l.jsx)(ot,{delayMultiplier:.3*(n+1)}),(0,l.jsx)(ot,{delayMultiplier:.67*(n+1)}),(0,l.jsx)(on,{animation:"pop",children:(0,l.jsx)(tn,{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)(on,{animation:"shortUp",stagger:.05,children:[(0,l.jsx)(K,{tag:"h3",text:p,textClassName:"title-2",color:n%2===0?"pink":"green",className:"title-2 color-white"}),(0,l.jsx)(ln,{}),(0,l.jsx)(g.e,{className:"color-white",data:m})]})}),a&&(0,l.jsx)(mt,{$index:n,children:(0,l.jsx)(at,{startIndex:n})})]},r)})),!a&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(ut,{$index:0,children:(0,l.jsx)(at,{delayMultiplier:1.5})}),(0,l.jsx)(ut,{$index:1,children:(0,l.jsx)(at,{})}),(0,l.jsx)(ut,{$index:2,delayMultiplier:1.5,children:(0,l.jsx)(at,{})}),(0,l.jsx)(ut,{$index:3,children:(0,l.jsx)(at,{})})]})]})]})};var gt=class{constructor(){let{pos:e,direction:t,angle:i}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,n.Z)(this,"direction","right"),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 ft=(0,d.keyframes)(["from{filter:blur(0);}to{filter:blur(2px);}"]),xt=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.t)("mediumUp"),(0,c.t)("xxlarge"),ft,(0,g.d)(.5)),vt=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;"]),bt=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.t)("mediumUp"),(0,c.t)("xxlarge")),wt=(0,d.default)(g.C).withConfig({componentId:"pmp-module__sc-1i7cbwm-3"})(["position:relative;z-index:2;"]),yt=(0,d.default)(g.C).withConfig({componentId:"pmp-module__sc-1i7cbwm-4"})(["position:relative;z-index:1;@media ","{margin-left:",";}"],(0,c.t)("xxlarge"),(e=>{let{theme:t}=e;return(0,c.i)(t,-1)})),jt=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;"]),_t=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.t)("mediumUp"),(0,c.t)("xxlarge")),kt=(0,d.keyframes)(["0%{transform:translateY(0)}50%{transform:translateY(-12px)}100%{transform:translateY(0)}"]),Ct=(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;}"],kt,(0,g.d)(3),(0,c.t)("xxlarge")),It=(0,d.default)(K).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.t)("mediumUp"),(0,c.t)("xxlarge")),zt=(0,d.default)(g.R).withConfig({componentId:"pmp-module__sc-1i7cbwm-9"})(["@media ","{justify-content:flex-end;}"],(0,c.t)("xxlarge")),Ut=(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.t)("mediumUp"),(0,c.t)("xxlarge")),Rt=(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.t)("xxlarge")),St=(e,t)=>({x:e.x-t.x,y:e.y-t.y}),Nt=e=>Math.hypot(e.x,e.y),Et=-40,Mt=-40;var Tt=()=>{const{section:e,content:t,polterpup:i}=(0,g.a)({section:"46rgGFDcNZioihhXFpkEOg",content:"5JtIZdB11SCHqo0J0bmRG9",polterpup:"66ecp7zpRM1K6dVe3dTa8n"}),[n,r,a]=(0,v.YD)(.6,!1,!1),o=(0,s.useRef)({x:Et,y:Mt}),d=(0,s.useRef)({x:Et,y:Mt}),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&&r){const n=[{start:{x:-40,y:-40},end:{x:a.clientWidth+40,y:a.clientHeight+40}},{start:{x:a.clientWidth+40,y:40},end:{x:-40,y:a.clientHeight+40}}],r=d.current,o=60;let l=n[h.current];const p=()=>{const d=(e=>{const t=Nt(e);return{x:e.x/t,y:e.y/t}})(St(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=St(r,s),g=Nt(u),f=St(l.end,r),x=Nt(f);if(0===i.length&&xo){const e=St(s,r),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 gt({pos:l,direction:t?"right":"left",angle:n});a.appendChild(d.el),i.push(d),r.x=s.x,r.y=s.y,t=!t}var v,b,w;g&&i.forEach(((e,t)=>{e.opacity=.99*e.opacity,e.shouldRemove&&(a.removeChild(e.el),i.splice(t,1))})),e=requestAnimationFrame(p)};e=requestAnimationFrame(p)}return()=>{i=[],h.current=0,t=!0,s.x=Et,s.y=Mt,d.current.x=Et,d.current.y=Mt,cancelAnimationFrame(e)}}),[n,r]),e)return(0,l.jsxs)(xt,{ref:n,children:[(0,l.jsx)(vt,{ref:c}),(0,l.jsxs)(g.I,{as:bt,children:[(0,l.jsxs)(g.R,{verticalCenter:!0,children:[(0,l.jsx)(g.b,{as:wt,span:8,large:6,xxlarge:5,animation:"fade",children:(0,l.jsx)(Ct,{assetPath:t.asset.primary.assetPath,alt:t.asset.alt?t.asset.alt:""})}),(0,l.jsx)(g.b,{as:yt,span:10,large:10,xlarge:9,xxlarge:5,className:"text-center",animation:"shortUp",delay:.2,children:(0,l.jsx)(jt,{children:(0,l.jsxs)(_t,{className:"bg--wood-tile",children:[(0,l.jsx)(It,{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)(zt,{children:(0,l.jsx)(g.C,{span:6,large:4,children:(0,l.jsx)(g.b,{as:Ut,width:448,height:404,animation:"shortUp",delay:.4,children:(0,l.jsx)(u.a,{width:448,left:0,top:0,children:(0,l.jsx)(Rt,{assetPath:i.primary.assetPath,alt:i.alt})})})})})]}),(0,l.jsx)(W,{})]})};const At=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;"]),Pt=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)),Ft=d.default.div.withConfig({componentId:"pmp-module__sc-11dibn1-2"})(["",""],(0,c.f)()),Ot=d.default.div.withConfig({componentId:"pmp-module__sc-11dibn1-3"})(["text-shadow:0 1px rgba(0,0,0,0.5);"]),Lt=(0,d.keyframes)(["0%,100%{transform:rotate(0deg);}16%{transform:rotate(-5deg);}32%{transform:rotate(5deg);}50%,100%{transform:rotate(0deg);}"]),Bt=d.default.button.withConfig({componentId:"pmp-module__sc-11dibn1-4"})(["background:transparent;border:none;width:100%;height:auto;@media (hover:hover){&:hover{cursor:pointer;}}"]),Dt=(0,d.default)(u.a).withConfig({componentId:"pmp-module__sc-11dibn1-5"})(["."," &&{pointer-events:auto;}"],(e=>{let{theme:t}=e;return t.pmp.namespace})),Yt=(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));}}}}"],Lt,(0,g.d)(1.5)),qt={width:344,height:460,luigi:{width:344,left:-50,top:0},polterpup:{width:236,left:130,top:192}},$t={width:414,height:424,luigi:{width:344,left:0,top:0},polterpup:{width:266,left:148,top:116}},Wt={width:566,height:660,luigi:{width:448,left:0,top:0},polterpup:{width:330,left:236,top:252}};var Gt=()=>{const{section:e,content:t,luigi:i,polterpup:n}=(0,g.a)({section:"3nYNh7nY5981mnehTycg0H",content:"hgYTvQRGT3vvgPR2qUpXb",luigi:"3z42ADan16k0fwekeIfJCx",polterpup:"6WUEqzG9XPZrygRJCG5F3e"}),{muted:r}=_e(),{breakpointName:a,mediumUp:o,largeUp:d}=(0,g.u)(),{0:c,1:p}=(0,s.useState)(qt),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(Wt);break;case o:p($t);break;default:p(qt)}}),[o,d]),e)return(0,l.jsxs)(g.I,{as:At,children:[(0,l.jsx)(W,{}),(0,l.jsxs)(Pt,{children:[(0,l.jsx)(Ft,{children:(0,l.jsx)($n,{})}),(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)(K,{tag:"h2",text:t.heading,className:"title-1 color-white",color:"pink"})}),(0,l.jsx)(g.b,{as:Ot,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)(Bt,{onClick:()=>{if(r)return;const e=m.current;e.currentTime=0,e.play()},disabled:r,children:(0,l.jsxs)(u.I,{width:c.width,height:c.height,maxWidth:"small"===a?"80%":void 0,className:"center",children:[(0,l.jsx)(g.b,{as:Dt,width:c.luigi.width,left:c.luigi.left,top:c.luigi.top,animation:"pop",delay:.3,children:(0,l.jsx)(Yt,{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 Ht=d.default.div.withConfig({componentId:"pmp-module__sc-wds5l2-0"})(["padding-bottom:",";@media ","{padding-bottom:",";}"],(0,c.s)(8),(0,c.t)("largeUp"),(0,c.s)(11)),Xt=(0,d.default)(h.I).withConfig({componentId:"pmp-module__sc-wds5l2-1"})(["margin-top:-12.5%;"]),Vt=(0,d.default)($e).withConfig({componentId:"pmp-module__sc-wds5l2-2"})(["margin-top:",";@media ","{margin-top:",";margin-bottom:",";}@media ","{margin-bottom:",";}"],(0,c.s)(3),(0,c.t)("mediumUp"),(0,c.s)(4),(0,c.s)(1),(0,c.t)("largeUp"),(0,c.s)(6));var Zt=()=>{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:Ht,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:Xt,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:K,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)(Vt,{})})}),(0,l.jsx)(g.R,{children:(0,l.jsx)(g.C,{span:10,large:8,children:(0,l.jsx)(Yi,{items:n})})})]})};const Kt=d.default.div.withConfig({componentId:"pmp-module__sc-1yol67k-0"})(["background-color:",";position:relative;"],(0,c.a)("black")),Jt=d.default.div.withConfig({componentId:"pmp-module__sc-1yol67k-1"})([""]),Qt=(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 ei=()=>{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)(Kt,{children:[(0,l.jsx)(W,{}),(0,l.jsx)(Jt,{ref:i,children:(0,l.jsx)(g.R,{children:(0,l.jsx)(g.C,{span:10,large:8,children:(0,l.jsx)(Qt,{assetPath:t.primary.assetPath,alt:t.alt,$animate:n})})})}),(0,l.jsx)(W,{})]})};const ti=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%);"]),ii=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.t)("largeUp"));var ni=e=>{let{className:t,children:i}=e,n=(0,r.Z)(e,E);return(0,l.jsx)(ti,O(O({className:t},n),{},{children:(0,l.jsx)(ii,{children:i})}))};const ri=d.default.div.withConfig({componentId:"pmp-module__sc-gpoe72-0"})(["background-color:",";position:relative;"],(0,c.a)("black")),ai=d.default.div.withConfig({componentId:"pmp-module__sc-gpoe72-1"})([""," position:relative;"],y.a),oi=(0,d.default)(W).withConfig({componentId:"pmp-module__sc-gpoe72-2"})(["z-index:2;"]),si=(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;}}"]),li=(0,d.default)(ni).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;"]),di=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.t)("largeUp"));var ci=()=>{const{modalOpen:e}=(0,g.c)(),{section:t,content:i,preview:n,video:r,previewPoster:a,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:ri,children:[(0,l.jsx)(oi,{}),(0,l.jsx)(j.W,{children:(0,l.jsx)(g.b,{as:li,animation:"shortUp",children:(0,l.jsx)(di,{className:"title-3 color-white",children:i.heading})})}),(0,l.jsxs)(ai,{ref:d,children:[(0,l.jsx)(si,{children:(0,l.jsx)(w.o,{src:n.heading,posterImg:a.heading,posterAlt:a.body?a.body.content[0].value:"",prefersReducedMotion:s,renderReducedMotionFallback:()=>(0,l.jsx)("img",{src:a.heading,alt:a.body?a.body.content[0].value:"",loading:"lazy"}),width:1440,height:810,aspectRatio:16/9,paused:e||!c})}),(0,l.jsx)(mn,{assetPath:r.heading,posterPath:o.heading,posterAlt:o.body?o.body.content[0].value:"",dialogLabel:o.body?o.body.content[0].value:""})]})]})};const pi=(0,d.keyframes)(["0%{transform:translateX(calc(var(--boo-size) * 1.75)) translateY(0);}100%{transform:translateX(-100%);}"]),mi=(0,d.keyframes)(["0%,100%{transform:translateY(0)}20%,60%{transform:translateY(-25%);}40%,80%{transform:translateY(25%);}"]),ui=(0,d.keyframes)(["0%,100%{transform:translateY(50%)}20%,60%{transform:translateY(35%);}40%,80%{transform:translateY(65%);}"]),hi=d.default.div.withConfig({componentId:"pmp-module__sc-139v8vo-0"})([""]),gi=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.t)("mediumUp"),(0,c.s)(7),(0,c.s)(8),(0,c.t)("largeUp"),(0,c.s)(10),(0,c.s)(10)),fi=d.default.div.withConfig({componentId:"pmp-module__sc-139v8vo-2"})(["--boo-size:220px;",";display:flex;justify-content:flex-end;pointer-events:none;z-index:9;",";"],c.f,(e=>{let{$animate:t}=e;return t&&(0,d.css)(["animation:"," 5s linear forwards;"],pi)})),xi=(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;}"],mi,ui,(0,c.t)("largeUp"));var vi=()=>{const e=(0,b.J)(),{section:t,intro:i,items:n,icons:r}=(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:a}=t;(0,C.u)({id:a});const o=Object.entries(n).map((e=>{let[t,i]=e;return i})),s=(0,I.g)(r),[d,c]=(0,v.YD)(0,!0,!1);if(t)return(0,l.jsxs)(hi,{id:a,children:[(0,l.jsx)(W,{}),(0,l.jsxs)(g.I,{as:gi,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:K,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)(Yi,{items:o,paginationIcons:s,showStatic:!0})})}),!e&&(0,l.jsxs)(fi,{ref:d,$animate:c,children:[(0,l.jsx)(xi,{assetPath:i.asset.primary.assetPath,alt:i.asset.alt,$index:0}),(0,l.jsx)(xi,{assetPath:i.asset.primary.assetPath,alt:i.asset.alt,$index:1})]})]})]})};const bi=(0,d.keyframes)(["0%,100%{filter:drop-shadow(0px 0px 20px var(--glow-color));}50%{filter:drop-shadow(0px 0px 15px var(--glow-color));}"]),wi=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;"]),yi=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;"])})),ji=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.a)("pink"),bi,(0,g.d)(1.2),(0,c.t)("mediumUp"),R.DK),_i=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 ki=()=>{const{muted:e,setMuted:t}=_e(),[i,n]=(0,v.YD)(.5,!1),{text:r}=(0,_.useLocalizer)();return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(wi,{ref:i}),(0,l.jsx)(yi,{visible:!n,children:(0,l.jsxs)(ji,{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)(_i,{$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)(_i,{$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:r("Mute audio")})]})})]})};const Ci=d.default.audio.withConfig({componentId:"pmp-module__sc-ue3kf4-0"})(["display:none;height:0;visibility:hidden;pointer-events:none;"]);var Ii=()=>{const e=(0,s.useRef)(null),{muted:t}=_e();return(0,s.useEffect)((()=>{const i=e.current;t?i.pause():i.play()}),[t]),(0,l.jsx)(Ci,{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 zi=()=>(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 Ui=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.t)("largeUp"),(0,c.s)(7),(0,c.t)("largeUp"),(0,c.t)("mediumUp")),Ri=(0,d.keyframes)(["0%{transform:rotate(0)}33%{transform:rotate(-8deg);}66%{transform:rotate(8deg);}100%{transform:rotate(0);}"]),Si=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.a)("green"),(0,c.t)("mediumUp"),(0,c.t)("largeUp"),(0,c.a)("green"),Ri,(0,g.d)(.5)),Ni=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.a)("green"):"#2b7939"}),(e=>{let{active:t}=e;return t&&(0,d.css)(["filter:drop-shadow(0px 0px 15px ",");"],(0,c.a)("green"))})),Ei=(0,d.default)(h.I).withConfig({componentId:"pmp-module__sc-zrzrb7-3"})(["opacity:",";"],(e=>{let{active:t}=e;return t?1:.4})),Mi=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)),Ti=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}"]),Ai=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;"])})),Pi=d.default.div.withConfig({componentId:"pmp-module__sc-zrzrb7-7"})(["grid-area:pagination;display:flex;inline-size:100%;"]),Fi=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;}"]),Oi=(0,d.default)(z.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.t)("mediumUp"),(0,c.t)("largeUp"),(e=>{let{$useDots:t}=e;return t&&(0,d.css)(["--dot-size:13px;@media ","{--dot-size:13px;}@media ","{--dot-size:13px;}"],(0,c.t)("mediumUp"),(0,c.t)("largeUp"))})),Li=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.t)("largeUp")),Bi=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)),Di=d.default.div.withConfig({componentId:"pmp-module__sc-zrzrb7-12"})(["padding:0 ",";"],(0,c.s)(5));function Yi(e){let{items:t,paginationIcons:i,showStatic:n}=e;const{modalOpen:r}=(0,g.c)(),a=(0,b.J)(),{mediumUp:o}=(0,g.u)(),{0:d,1:c}=(0,s.useState)({oldIndex:0,newIndex:0}),{text:p}=(0,_.useLocalizer)();return(0,l.jsx)(g.I,{as:Ui,children:(0,l.jsxs)(z.ri,{items:t,ariaLiveText:p("Active gallery item: $i of $t."),onChange:c,startIndex:0,visibleRange:0,loop:!0,children:[(0,l.jsxs)(Mi,{children:[o&&(0,l.jsx)(g.b,{as:z.__,direction:0,animation:"left",delay:.2,children:(0,l.jsxs)(Si,{children:[(0,l.jsx)(Vi,{direction:"left"}),(0,l.jsx)(m.S,{children:p("Previous gallery item")})]})}),(0,l.jsxs)(g.b,{as:Ti,animation:"pop",children:[(0,l.jsx)(tn,{variant:"tv",showStatic:n,className:"television"}),(0,l.jsx)(z.nH,{renderGalleryItem:e=>{let{active:t,activeIndex:i,index:n,item:o}=e;return(0,l.jsx)(Ai,{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:a,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:r||n!==i})},o.content.heading)}})]}),o&&(0,l.jsx)(g.b,{as:z.__,direction:1,animation:"right",delay:.2,children:(0,l.jsxs)(Si,{children:[(0,l.jsx)(Vi,{}),(0,l.jsx)(m.S,{children:p("Next gallery item")})]})})]}),i?(0,l.jsxs)(Pi,{children:[!o&&(0,l.jsx)(g.b,{as:z.__,direction:0,animation:"left",delay:.2,children:(0,l.jsxs)(Si,{children:[(0,l.jsx)(Vi,{direction:"left"}),(0,l.jsx)(m.S,{children:p("Previous gallery item")})]})}),(0,l.jsx)(z.oL,{renderPaginationItem:e=>{let{active:t,index:n,item:r}=e;return(0,l.jsxs)(g.b,{as:Oi,index:n,active:t,animation:"pop",delay:.5,children:[(0,l.jsx)(Ei,{assetPath:i[n].assetPath,alt:"",active:t}),(0,l.jsx)(m.S,{children:`${p("Gallery item")}: ${r.content.heading}`})]},r.content.heading)}}),!o&&(0,l.jsx)(g.b,{as:z.__,direction:1,animation:"right",delay:.2,children:(0,l.jsxs)(Si,{children:[(0,l.jsx)(Vi,{}),(0,l.jsx)(m.S,{children:p("Next gallery item")})]})})]}):(0,l.jsx)(z.oL,{renderPaginationItem:e=>{let{active:t,index:i,item:n}=e;return(0,l.jsxs)(Oi,{index:i,active:t,$useDots:!0,children:[(0,l.jsx)(Ni,{active:t}),(0,l.jsx)(m.S,{children:`${p("Gallery item")}: ${n.content.heading}`})]},n.content.heading)}}),!o&&!i&&(0,l.jsxs)(Fi,{children:[(0,l.jsx)(z.__,{direction:0,children:(0,l.jsxs)(Si,{children:[(0,l.jsx)(Vi,{direction:"left"}),(0,l.jsx)(m.S,{children:p("Previous gallery item")})]})}),(0,l.jsx)(z.__,{direction:1,children:(0,l.jsxs)(Si,{children:[(0,l.jsx)(Vi,{}),(0,l.jsx)(m.S,{children:p("Next gallery item")})]})})]}),t&&(0,l.jsx)(Li,{children:t.map(((e,t)=>{let{content:i}=e;return(0,l.jsxs)(g.b,{as:Bi,"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)(Di,{children:(0,l.jsx)(K,{tag:"h3",textClassName:"title-2",text:i.heading,className:"title-2 color-white"})}),(0,l.jsx)(ln,{}),(0,l.jsx)(g.e,{data:i.body,className:"color-white"})]},i.__entryId)}))})]})})}const qi=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)})),$i=e=>{let{id:t,use:i,className:n}=e,a=(0,r.Z)(e,M);return i?(0,l.jsx)(qi,O(O({className:n},a),{},{"aria-hidden":"true",children:(0,l.jsx)("use",{xlinkHref:`#${c.N}-icon-${t}`,style:{width:"100%",height:"100%"}})})):un(O({id:t,className:n,as:"svg","aria-hidden":!0},a))};$i.defaultProps={use:!0},$i.propTypes={id:f.string.isRequired,use:f.bool,fillColor:f.string,strokeColor:f.string,className:f.string};var Wi=$i;const Gi=(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);}"]),Hi=(0,d.default)(Wi).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.a)(t),Gi,(0,g.d)(2))})),Xi=e=>{let{direction:t,glowColor:i,className:n}=e;return(0,l.jsx)(l.Fragment,{children:(0,l.jsx)(Hi,{id:`arrow-${t}`,glowColor:i,className:n})})};var Vi=Xi;Xi.defaultProps={direction:"right",glowColor:"green"},Xi.propTypes={direction:x().string,glowColor:x().string};const Zi=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)([""])}})),Ki=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)),Ji=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;}"],Ki)})),Qi=d.default.div.withConfig({componentId:"pmp-module__sc-um9l7b-3"})(["",";"],c.f),en=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 tn=e=>{let{variant:t,showStatic:i,className:n,children:a}=e,o=(0,r.Z)(e,T);const[s,d]=(0,v.YD)(.5,!0,!0);return(0,l.jsxs)(Zi,O(O({className:n,variant:t},o),{},{children:[(0,l.jsxs)(Ji,{variant:t,showStatic:i,ref:s,$animate:d,children:[i&&(0,l.jsx)(Ki,{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)(Qi,{children:a})]}),(0,l.jsx)(en,{variant:t})]}))};const nn=(0,d.keyframes)(["0%,100%{filter:drop-shadow(0px 0px 20px var(--glow-color));}50%{filter:drop-shadow(0px 0px 15px var(--glow-color));}"]),rn=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.a)("pink"),(0,c.a)("white"),nn,(0,g.d)(1.2));var an=e=>{let{}=e;return(0,l.jsx)(rn,{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 on=e=>{let{animation:t,stagger:i,delay:n,children:r}=e;return(0,l.jsx)(g.I,{staggerChildren:{animation:t,stagger:i,delay:n},children:r})};const sn=d.default.svg.withConfig({componentId:"pmp-module__sc-f6xk0q-0"})(["display:inline-flex;margin-bottom:6px;"]);var ln=e=>{let{className:t}=e,i=(0,r.Z)(e,A);return(0,l.jsx)(sn,O(O({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 dn=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);}}"]),cn=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.t)("largeUp"));(0,d.default)(Wi).withConfig({componentId:"pmp-module__sc-1ch28c4-2"})(["width:54px;height:54px;color:",";@media ","{width:96px;height:96px;}"],(0,c.a)("yellow"),(0,c.t)("largeUp")),(0,d.default)(Wi).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.a)("ivory"),(0,c.t)("largeUp"));const pn=e=>{let{assetPath:t,dialogLabel:i,lang:n,onClick:r,posterPath:a,posterAlt:o,posterDimensions:s,className:d,hashId:c,children:p}=e;const{text:u}=(0,_.useLocalizer)();return(0,l.jsx)(dn,{children:(0,l.jsxs)(g.V,{assetPath:t,dialogLabel:i,lang:n,onClick:r,posterPath:a,posterAlt:o,posterDimensions:s,className:d,hashId:c,children:[(0,l.jsxs)(cn,{className:"play-button",children:[(0,l.jsx)(an,{}),(0,l.jsx)(m.S,{children:u("Play video")})]}),p]})})};var mn=pn;pn.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 un=e=>{let{id:t}=e,i=(0,r.Z)(e,P);return{"arrow-left":(0,l.jsx)(c.S,O(O({},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.S,{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.S,O(O({},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.S,O(O({},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.S,O(O({},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]},hn=()=>(0,l.jsx)(m.S,{children:(0,l.jsx)("svg",{"aria-hidden":"true",children:(0,l.jsxs)("defs",{children:[un({id:"arrow-left"}),un({id:"arrow-right"}),un({id:"chevron-right"}),un({id:"chevron-left"}),un({id:"close"})]})})}),gn=(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},fn=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 r=e.createBuffer();return e.bindBuffer(n,r),e.bufferData(n,t,i),r};let xn;const vn=(e,t,i,n)=>{const r=gn(e,t,e.VERTEX_SHADER),a=gn(e,i,e.FRAGMENT_SHADER);if(xn=e.createProgram(),e.attachShader(xn,r),e.attachShader(xn,a),n){const t=[];for(let e in n)"transformFeedback"==n[e].component&&t.push(n[e].varying);e.transformFeedbackVaryings(xn,t,e.SEPARATE_ATTRIBS)}return xn},bn=e=>{if(e.linkProgram(xn),!e.getProgramParameter(xn,e.LINK_STATUS)){const t=e.getProgramInfoLog(xn);throw new Error(t)}return xn},wn=(e,t)=>{const i=e.getProgramParameter(t,e.ACTIVE_UNIFORMS),n={};for(let r=0;rObject.entries(e).reduce(((e,i)=>{let[n,r]=i;return r.component==t&&(e[n]=r),e}),{}),jn=function(e,t,i,n){let r,a,o,s=arguments.length>4&&void 0!==arguments[4]&&arguments[4];s?(r=[e.createVertexArray(),e.createVertexArray()],a=[e.createTransformFeedback(),e.createTransformFeedback()],o=[]):r=[e.createVertexArray()];const l=Object.keys(i);return r.forEach(((r,d)=>{e.bindVertexArray(r);const c=[],p={};for(let a=0;a{e.bindBufferBase(e.TRANSFORM_FEEDBACK_BUFFER,i,t)})),e.bindVertexArray(null),o.push(p))})),{vaos:r,tfbs:a,tfbBuffers:o,hasTFBs:s}},_n=function(e,t,i){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;if(!i)return null;const r=yn(i,"transformFeedback"),a=Object.keys(r).length>0,o=jn(e,t,i,n,a);return o},kn={size:1,type:5126,normalize:!1,stride:0,offset:0,buffer:null,data:null,usage:35044,buffertype:34962,index:null,component:"attribute"},Cn=e=>{const t=Object.keys(e);for(let i=0;i1&&void 0!==arguments[1]?arguments[1]:{};!1!==e?.generateMips||e.minFilter||(e.minFilter=zn),this.args=O(O({},Nn),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:r=e.UNSIGNED_BYTE,format:a=e.RGBA,internalFormat:o=a,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,a,r,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 Mn=d.default.div.withConfig({componentId:"pmp-module__sc-mzmc8r-0"})(["width:100%;height:100%;canvas{height:100%;width:100%;}"]),Tn={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}"},An={dpr:2},Pn={alpha:!0,premultipliedAlpha:!0,preserveDrawingBuffer:!0},Fn={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}},On=6,Ln=(e,t,i)=>{const{width:n,height:r}=t;e.width=n*i.dpr,e.height=r*i.dpr};function Bn(e){let{settings:t=An,attributes:i=Fn,count:n=On,webglSettings:r=Pn,shaders:a=Tn,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)();a=O(O({},Tn),a);const w=(0,s.useCallback)((function(e){const t=p.current,i=u.current;if(!i||!t)return;const{width:n,height:r}=t.canvas;if(o)for(const[a,s]of Object.entries(o))s instanceof En?(s.bind(t),i.bindUniform(a,s.i)):i.bindUniform(a,s);i.bindUniform("u_time",.001*e),i.bindUniform("u_resolution",[n,r]),i.bindUniform("u_prefersReducedMotion",h),i.render({width:n,height:r}),i.playing&&(m.current=requestAnimationFrame(w))}),[a,i,n,r]),y=(0,s.useCallback)((()=>{const e=c.current,t=p.current=e.getContext("webgl2",r),o=u.current=function(e){let{vert:t,frag:i,attributes:n,count:r,offset:a=0,mode:o=e.TRIANGLES,attributesOffset:s=0}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Cn(n),window.attributes=n;const l=vn(e,t,i,n),d=_n(e,l,n,s);let c=0;bn(e);const p=wn(e,l);return{uniforms:p,bindUniform(t,i){if(void 0===i)return;if(!p[t])return;const{type:n,location:r}=p[t];switch(n){case 5126:return i instanceof Array?e.uniform1fv(r,i):("number"===typeof i&&e.uniform1f(r,i),null);case 35664:return e.uniform2fv(r,i);case 35665:return e.uniform3fv(r,i);case 35666:return e.uniform4fv(r,i);case 35670:case 5124:case 35678:case 35680:return i?.length?e.uniform1iv(r,i):e.uniform1i(r,i);case 35671:case 35667:return e.uniform2iv(r,i);case 35672:case 35668:return e.uniform3iv(r,i);case 35673:case 35669:return e.uniform4iv(r,i);case 35674:return e.uniformMatrix2fv(r,!1,i);case 35675:return e.uniformMatrix3fv(r,!1,i);case 35676:if(null===i)return;return e.uniformMatrix4fv(r,!1,i)}},bindVAOs(){if(e.useProgram(l),d.hasTFBs){const t=(c+1)%2,i=d.vaos[c],n=d.tfbs[t],r=d.tfbBuffers[t];e.bindVertexArray(i),e.bindTransformFeedback(e.TRANSFORM_FEEDBACK,n);for(let a in r){const t=r[a];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,a,r),d.hasTFBs&&e.endTransformFeedback()}}}(t,O(O({},a),{},{attributes:i,count:n}));o.bindVAOs()}),[a,i,n,r]);(0,s.useEffect)((()=>{y();const e=c.current,i=e.getBoundingClientRect();Ln(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,a,r,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();Ln(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)(Mn,{ref:g,className:"shader-container",children:(0,l.jsx)("canvas",{ref:c})})}Bn.propTypes={settings:x().shape(An),attributes:x().shape(Fn),count:x().shape(On),webglSettings:x().shape(Pn),shaders:x().shape({frag:x().string,vertex:x().string}),uniforms:x().object,playing:x().oneOfType([null,x().oneOfType([x().bool])])};const Dn=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.a)("black")),Yn=d.default.div.withConfig({componentId:"pmp-module__sc-q7f16l-1"})(["video,img{display:none;}"]),qn={rootMargin:"-400px 0px 0px 0px",threshold:0};function $n(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}"}),r=(0,s.useRef)(),a=(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)((()=>{r.current=new IntersectionObserver(b,qn),r.current.observe(a.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 En({img:e,generateMips:!1,wrapS:Rn,wrapT:Sn},{i:0,autoUpdate:!0});c.current.smoke=i}),[]),y=(0,s.useCallback)((()=>{const e=i.current,t=new En({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)(Dn,{ref:a,children:(0,l.jsx)(Bn,O(O({},e),{},{shaders:n.current,uniforms:g,playing:o}))}),(0,l.jsxs)(Yn,{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 Wn={"Mute audio":{es:"Mute audio",fr:"Mute audio",pt:"Mute audio"}};var Gn=e=>(0,l.jsxs)(c.P,{customTheme:B,pageProps:e,i18n:(0,p.m)(Wn),children:[(0,l.jsx)(o(),{children:(0,l.jsx)("link",{rel:"stylesheet",href:"https://use.typekit.net/ydx6ydo.css"})}),(0,l.jsx)(D,{}),(0,l.jsx)(hn,{}),(0,l.jsx)(zi,{}),(0,l.jsxs)(q,{children:[(0,l.jsx)(Ii,{}),(0,l.jsx)(Gt,{}),(0,l.jsx)(ci,{}),(0,l.jsx)(Qe,{}),(0,l.jsx)(vi,{}),(0,l.jsx)(ht,{}),(0,l.jsx)(we,{}),(0,l.jsx)(ei,{}),(0,l.jsx)(Zt,{}),(0,l.jsx)(Tt,{}),(0,l.jsx)(je,{}),(0,l.jsx)(ki,{})]})]})}}]); //# sourceMappingURL=73d4e853.2af5c4afd08e0dc8.js.map