!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]="4564542c-6bbf-449e-a9d8-0c3ae1e48da5",e._sentryDebugIdIdentifier="sentry-dbid-4564542c-6bbf-449e-a9d8-0c3ae1e48da5")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9117],{60207:function(e,t,n){n.d(t,{C:function(){return h}});var r=n(95235),o=n(82269),i=n(13980),a=n.n(i),s=n(82731),c=n(30736),u=n(52322),d=n(60597);const l=["entryId","anchorOffset","children","className"];function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e){for(var t=1;t(0,a.css)(["appearance:none;background:none;border-radius:0;border:none;color:inherit;cursor:pointer;display:inline-block;font-family:inherit;font-size:100%;font:inherit;line-height:1.15;margin:0;padding:0;"]),l=a.default.button.withConfig({componentId:"pmp-module__sc-s2evg1-0"})(["",";font:inherit;"],d()),f=a.default.div.withConfig({componentId:"pmp-module__sc-s2evg1-1"})(["border-radius:",";overflow:hidden;text-align:center;width:min(90vw,120vh);"],(e=>{let{theme:t}=e;return t.borderRadius}));var p=e=>{let{assetPath:t,posterPath:n,dialogLabel:a,onClick:d,className:p,children:m,hashId:h,assetEntry:g,lang:b="en"}=e;const{setModalOpen:v}=(0,c.c)(),{0:y,1:w}=(0,r.useState)(!1),x=(0,r.useRef)();if(g){const e=(0,c.r)(g);e||console.log('Asset is undefinded, Please check the "assetEntry"'),t=e}const _=(0,r.useCallback)((()=>{d&&d(),w(!0),v(!0)}),[d,v]);return(0,r.useEffect)((()=>{if(!h)return;const{hash:e}=window.location;e===`#${h}`&&(document.getElementById(h)?.scrollIntoView(),setTimeout((()=>{_()}),100))}),[h,_]),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(l,{ref:x,onClick:_,className:p,children:m}),!u&&(0,s.jsx)(o.M,{visible:y,lang:b,dialogLabel:a,onClose:()=>{w(!1),v(!1)},containChildren:!1,children:(0,s.jsx)(f,{className:"text-center",children:y&&(0,s.jsx)(i.V,{assetPath:t,posterPath:n,lang:b})})})]})}},89787:function(e,t,n){function r(){const e=navigator.userAgent;return/Safari/.test(e)&&/AppleWebKit/.test(e)&&!/Chrome/.test(e)}n.d(t,{i:function(){return r}})},99411:function(e,t,n){n.d(t,{r:function(){return i}});var r=n(2771),o=n(34406);function i(e){let{url:t,isVideo:n}=e;if(!t)return"";const i="https://assets.nintendo.com",a=/\.[0-9a-z]+$/i,s=`${i}/image/upload/`,c=`${i}/image/upload/f_auto,q_auto/`,u=`${i}/video/upload/f_auto:video,q_auto/`,d=t.toLowerCase().indexOf("marketing");if(-1===d)return t;const l=t.slice(d).trim();return"true"===o.env.LOCAL_IMAGES||!0===o.env.LOCAL_IMAGES?`${r.S}/${l}`:n?`${u}${l}`:l.endsWith(".svg")?`${s}${l}`:a.test(l)?`${c}${l.replace(a,"")}`:`${c}${l}`}},93196:function(e,t,n){n.d(t,{w:function(){return r}});var r=".marquee{position:relative;white-space:nowrap}@keyframes scroll{0%{transform:translate(0)}to{transform:translate(calc(var(--marquee-width) * -1px))}}.marquee__slide{display:inline-block;width:max-content}.marquee--ready{animation:scroll var(--duration) linear infinite var(--animation-state, running)}.marquee--reverse{animation-direction:reverse}\n"},64758:function(e,t,n){n.d(t,{u:function(){return s}});var r=n(2784),o=n(2771);const i=new Map([["S",[1,"small"]],["M",[2,"medium"]],["L",[3,"large"]],["XL",[4,"xlarge"]],["XXL",[5,"xxlarge"]]]),a=[...i].reduce(((e,t)=>{const n=t[1][1];return e[n]=n,e}),{}),s=()=>{const{0:e,1:t}=(0,r.useState)([null,null]),n=e[0],s=(0,r.useCallback)((()=>{t(i.get(window.getComputedStyle(document.querySelector(`.${o.N}`),"::after").content.replace(/'|"/gi,"")))}),[]);return(0,r.useEffect)((()=>(window.addEventListener("resize",s),s(),()=>{window.removeEventListener("resize",s)})),[]),{breakpoint:n,breakpointName:e[1],mediumUp:n>1,mediumDown:n<3,largeUp:n>2,xlargeUp:n>3,BREAKPOINTS:a}}},60597:function(e,t,n){n.d(t,{u:function(){return o}});var r=n(2784);const o=e=>{let{id:t,margin:n=100}=e;(0,r.useEffect)((()=>{if(!t)return;const e=document.querySelector(`#${t}`),r=window.location.hash;if(!e||r!==`#${t}`)return;const o=setTimeout((()=>{let t=e,r=0;for(;t.offsetParent!==document.body;)r+=t.offsetTop,t=t.parentElement;t.offsetParent===document.body&&(r+=t.offsetTop),e.tabindex=-1,e.focus({preventScroll:!0}),e.removeAttribute("tabindex"),window.scroll(0,r-n)}),500);return()=>{clearTimeout(o)}}),[])}},30553:function(e,t,n){n.d(t,{R:function(){return a}});var r=n(52322),o=n(2784);function i(e=[]){if(!e||!Array.isArray(e)||!e.length)return;const t=[];return e.forEach((e=>{"string"==typeof e&&t.push(e)})),t.flat().join(" ")}function a({speed:e=50,reducedMotionSpeed:t=20,prefersReducedMotion:n=!1,playing:a=!0,reverse:c,children:u,className:d,...l}){const[f,p]=(0,o.useState)(0),[m,h]=(0,o.useState)(0),[g,b]=(0,o.useState)(1),v=(0,o.useRef)(null),y=(0,o.useRef)(null),w=(0,o.useRef)(),x=(0,o.useCallback)((()=>{var r,o;const i=(null==(r=v.current)?void 0:r.clientWidth)||0,a=(null==(o=y.current)?void 0:o.clientWidth)||0,s=n?t:e;let c=2*Math.ceil(i/a)-1;(c<1||isNaN(c))&&(c=1),b(c),p(a),h(a{x();const e=()=>{w.current&&clearTimeout(w.current),w.current=setTimeout(x,200)};window.addEventListener("resize",e);const t=w.current;return()=>{clearTimeout(t),window.removeEventListener("resize",e)}}),[x]),(0,r.jsxs)("div",{...l,ref:v,className:i(["marquee",f>0&&"marquee--ready",c&&"marquee--reverse",d]),style:{"--marquee-width":f,"--duration":m+"s","--animation-state":a?"running":"paused"},children:[(0,r.jsx)("div",{ref:y,className:"marquee__slide",children:u}),(0,r.jsx)(s,{neededAmount:g,children:u})]})}function s({children:e,neededAmount:t}){return(0,r.jsx)(r.Fragment,{children:Array.from({length:t}).map(((t,n)=>(0,r.jsx)("div",{className:"marquee__slide",children:e},n)))})}}}]); //# sourceMappingURL=9117.52883ff3ae118177.js.map